1 2013-11-17 Uros Bizjak <ubizjak@gmail.com>
4 * config/i386/i386.c (ix86_address_subreg_operand): Do not
5 reject non-integer subregs.
6 (ix86_decompose_address): Do not reject invalid CONST_INT RTXes.
7 Move check for invalid x32 constant addresses ...
8 (ix86_legitimate_address_p): ... here.
10 2011-11-17 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
12 * config/rs6000/rs6000.c (rs6000_frame_related): Add split_reg
13 parameter and use it in REG_FRAME_RELATED_EXPR note.
14 (emit_frame_save): Call rs6000_frame_related with extra NULL_RTX
16 (rs6000_emit_prologue): Likewise, but for little endian VSX
17 stores, pass the source register of the store instead.
19 2013-11-17 Andrew MacLeod <amacleod@redhat.com>
21 * gimple.h: Reorder prototypes to match .c declaration order, and
22 remove protyotypes for functions not in gimple.c.
23 (LABEL): Move to tree-into-ssa.c.
24 * gimple.c: Remove unused prototypes.
25 (get_base_address): Move to tree.c.
26 * tree.c (get_base_address): Relocate from gimple.c.
27 * builtins.h (validate_gimple_arglist): Add prototype.
28 * trans-mem.h (compute_transaction_bits, is_tm_ending): Add prototype.
29 * cfgexpand.h: New File.
30 (gimple_assign_rhs_to_tree, estimated_stack_frame_size): Add protoype.
31 * tree.h (build_addr): Move to tree-nested.h.
32 * tree-nested.h: New File.
33 (build_addr, lower_nested_functions, insert_field_into_struct): Add
35 * tree-inline.h (estimated_stack_frame_size): Remove prototype.
36 * ipa-inline-analysis.c: Include cfgexpand.h.
37 * cgraphunit.c: Include tree-nested.h.
38 * omp-low.c: Likewise.
39 * tree-parloops.c: Likewise.
40 * gimple-low.h: Likewise.
41 * tree-profile.h: Likewise.
42 * expr.c: Include cfgexpand.h.
43 * tree-affine.c: Likewise.
44 * tree-ssa.c: Likewise.
45 * tree-ssa-loop-im.c: Include trans-mem.h.
46 * tree-ssa-tail-merge.c: Likewise.
47 * value-prof.c: Include builtins.h and tree-nested.h.
48 * tree-into-ssa.c (LABEL): Define here.
50 2013-11-16 Joern Rennecke <joern.rennecke@embecosm.com>
52 * config/arc/arc.c (arc_predicate_delay_insns): New function.
53 (pass_data_arc_predicate_delay_insns): New pass_data instance.
54 (pass_arc_predicate_delay_insns): New subclass of rtl_opt_class.
55 (make_pass_arc_predicate_delay_insns): New function.
56 (arc_init): Register pass_arc_predicate_delay_insns if
57 flag_delayed_branch is active.
59 2013-11-16 Joern Rennecke <joern.rennecke@embecosm.com>
61 * config/arc/constraints.md (Rcq): Simplify register number test.
63 2013-11-15 Aldy Hernandez <aldyh@redhat.com>
65 * gimple.h (enum gf_mask): Change the ordering of GF_OMP_* bits.
67 2013-11-15 Kaz Kojima <kkojima@gcc.gnu.org>
69 * config/sh/sh.c (barrier_align): Return 0 when barrier_or_label
72 2013-11-15 Aldy Hernandez <aldyh@redhat.com>
74 * Makefile.in (C_COMMON_OBJS): Depend on c-cilkplus.o.
75 * gimple-pretty-print.c (dump_omp_for): Add case for
76 GF_OMP_FOR_KIND_CILKSIMD.
77 * gimple.h (enum gf_mask): Restructure entries to add
78 GF_OMP_FOR_KIND_CILKSIMD.
79 * gimplify.c (is_gimple_stmt): Add case for CILK_SIMD.
80 (gimplify_omp_for): Handle CILK_SIMD.
81 (gimplify_expr): Add ccase for CILK_SIMD.
82 * omp-low.c (extract_omp_for_data): Handle CILK_SIMD.
83 (build_outer_var_ref): Same.
84 (check_omp_nesting_restrictions): Same.
85 (lower_rec_input_clauses): Same.
86 (lower_lastprivate_clauses): Same.
87 (expand_omp_for): Same.
88 (execute_expand_omp): Check flag_enable_cilkplus.
89 (execute_lower_omp): Same.
90 (diagnose_sb_0): Handle CILK_SIMD.
91 (diagnose_omp_structured_block_errors): Check flag_enable_cilkplus.
92 (setjmp_or_longjmp_p): New.
93 (scan_omp_1_stmt): Error on setjmp/longjmp in a simd construct.
94 * tree-pretty-print.c (dump_generic_node): Add case for CILK_SIMD.
95 * tree.def: Add tree code for CILK_SIMD.
97 2013-11-15 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
99 * config/rs6000/altivec.md (UNSPEC_VPERM_X, UNSPEC_VPERM_UNS_X):
101 (altivec_vperm_<mode>): Revert earlier little endian change.
102 (*altivec_vperm_<mode>_internal): Remove.
103 (altivec_vperm_<mode>_uns): Revert earlier little endian change.
104 (*altivec_vperm_<mode>_uns_internal): Remove.
105 * config/rs6000/vector.md (vec_realign_load_<mode>): Revise commentary.
107 2013-11-15 Jeff Law <law@redhat.com>
109 * basic-block.h (has_abnormal_or_eh_outgoing_edge): Renamed from
110 has_abnormal_or_outgoing_edge. Check for EH edges as well.
111 * gimple-ssa-isolate-paths.c
112 (find_implicit_erroneous_behaviour): Corresponding changes.
113 Do not check stmt_ends_bb_p or GIMPLE_RETURN anymore.
114 (find_explicit_erroneous_behaviour): Likewise.
116 2013-11-15 Jeff Law <law@redhat.com>
118 * ifcvt.c (find_cond_trap): Properly handle case where
121 2013-11-15 Andreas Schwab <schwab@linux-m68k.org>
123 * configure: Regenerate.
125 2013-11-15 James Greenhalgh <james.greenhalgh@arm.com>
127 * config/aarch64/aarch64-simd.md: Remove simd_type from all patterns.
128 * config/aarch64/aarch64.md: Likewise, correct "type" attribute
129 where it is incorrect or missing.
131 2013-11-15 Richard Sandiford <rdsandiford@googlemail.com>
133 * dwarf2out.c (gen_enumeration_type_die): Remove unnecessary
135 * tree-vect-patterns.c (vect_recog_divmod_pattern): Likewise.
136 Use TREE_INT_CST_LOW rather than tree_low_cst when reading the
138 * fold-const.c (fold_binary_loc): Replace a host_integerp/tree_low_cst
139 pair with a TREE_CODE test and TREE_INT_CST_LOW.
140 * tree-vect-generic.c (expand_vector_divmod): Likewise.
142 2013-11-15 Richard Biener <rguenther@suse.de>
144 PR tree-optimization/50262
145 * tree-ssa-alias.h (struct pt_solution): Split
146 vars_contains_global into vars_contains_nonlocal,
147 vars_contains_escaped and vars_contains_escaped_heap.
148 * tree-ssa-structalias.c (label_visit): Expand comment.
149 (handle_lhs_call): Adjust comment.
150 (set_uids_in_ptset): Set the new flags appropriately.
151 (pt_solution_set): Adjust.
152 (pt_solution_set_var): Likewise.
153 (pt_solution_ior_into): Likewise.
154 (pt_solution_includes_global): Likewise.
155 (pt_solutions_intersect_1): Optimize escaped handling.
156 (compute_points_to_sets): Remove heap variable globalization.
157 (ipa_escaped_pt): Adjust initializer.
158 (pass_data_ipa_pta): Do not run TODO_update_ssa.
159 * gimple-pretty-print.c (pp_points_to_solution): Print split flags.
160 * tree-ssa-alias.c (dump_points_to_solution): Likewise.
162 2013-11-15 Richard Biener <rguenther@suse.de>
164 * tree-loop-distribution.c (tree_loop_distribution): Make sure
165 to distribute all stores.
167 2013-11-15 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
169 * doc/invoke.texi (-mabi=elfv1, -mabi=elfv2): Document.
171 2013-11-15 Joseph Myers <joseph@codesourcery.com>
173 * acinclude.m4 (GCC_GLIBC_VERSION_GTE_IFELSE): New configure macro.
174 * configure.ac: Determine target_header_dir earlier.
175 (--with-glibc-version): New configure option.
176 Use GCC_GLIBC_VERSION_GTE_IFELSE in enable_gnu_unique_object,
177 gcc_cv_libc_provides_ssp and gcc_cv_target_ldbl128 tests.
178 * configure: Regenerate.
179 * doc/install.texi (--enable-gnu-unique-object): Don't refer to
180 native toolchains for default.
181 (--with-glibc-version): Document.
183 2013-11-15 Eric Botcazou <ebotcazou@adacore.com>
185 * fold-const.c (fold_binary_loc) <comparisons>: Reuse local variable.
187 2013-11-15 Uros Bizjak <ubizjak@gmail.com>
189 * lto-streamer-in.c (input function): Call cgraph_create_node if
190 cgraph_get_node failed.
192 2013-11-14 Olivier Hainque <hainque@adacore.com>
194 * cfgexpand.c (defer_stack_allocation): When optimization is enabled,
195 defer allocation of DECL_IGNORED_P variables at toplevel unless really
196 small. Factorize size threshold computation from the existing one.
197 (expand_used_vars): Refine comment.
199 2013-11-14 Cong Hou <congh@google.com>
201 * tree-vectorizer.h (struct dr_with_seg_len): Remove the base
202 address field as it can be obtained from dr. Rename the struct.
203 * tree-vect-data-refs.c (comp_dr_with_seg_len_pair): Consider
204 steps of data references during sort.
205 (vect_prune_runtime_alias_test_list): Adjust with the change to
206 struct dr_with_seg_len.
207 * tree-vect-loop-manip.c (vect_create_cond_for_alias_checks):
208 Adjust with the change to struct dr_with_seg_len.
210 2013-11-14 Jeff Law <law@redhat.com>
213 * basic-block.h (has_abnormal_outgoing_edge_p): Moved here from...
214 * tree-inline.c (has_abnormal_outgoing_edge_p): Remove.
215 * gimple-ssa-isolate-paths.c: Include tree-cfg.h.
216 (find_implicit_erroneous_behaviour): If a block has abnormal outgoing
217 edges, then ignore it. If the statement exhibiting erroneous
218 behaviour ends basic blocks, with the exception of GIMPLE_RETURNs,
219 then we can not optimize.
220 (find_explicit_erroneous_behaviour): Likewise.
222 2013-11-14 Andrew MacLeod <amacleod@redhat.com>
224 * gimplify-me.h: New file. Add prototypes.
225 * gimplify.h: Don't include gimple.h.
226 (struct gimplify_hasher, struct gimplify_ctx, is_gimple_sizepos):
227 Relocate from gimple.h.
228 * gimple.h (struct gimplify_hasher, struct gimplify_ctx,
229 is_gimple_sizepos): Move to gimplify.h.
230 (gimplify_hasher::hash, gimplify_hasher::equal): Move to gimplify.c.
231 (enum gsi_iterator_update): Move to gimple-iterator.h.
232 * gimple-iterator.h (enum gsi_iterator_update): Relocate from gimple.h.
233 * gimplify-me.c: New File.
234 (force_gimple_operand_1, force_gimple_operand,
235 force_gimple_operand_gsi_1, force_gimple_operand_gsi,
236 gimple_regimplify_operands): Relocate from gimplify.c.
237 * gimplify.c (force_gimple_operand_1, force_gimple_operand,
238 force_gimple_operand_gsi_1, force_gimple_operand_gsi,
239 gimple_regimplify_operands): Move to gimplify-me.c.
240 (gimplify_hasher::hash, gimplify_hasher::equal): Relocate
242 * Makefile.in (OBJS): Add gimplify-me.o
243 * asan.c: Include only gimplify.h, gimplify-me.h, and/or gimple.h as
245 * cfgloopmanip.c: Likewise.
246 * cgraphunit.c: Likewise.
247 * cilk-common.c: Likewise.
248 * fold-const.c: Likewise.
249 * function.c: Likewise.
250 * gimple-expr.c: Likewise.
251 * gimple-fold.c: Likewise.
252 * gimple-ssa-strength-reduction.c: Likewise.
253 * gimple.c: Likewise.
254 * graphite-clast-to-gimple.c: Likewise.
255 * graphite-sese-to-poly.c: Likewise.
256 * ipa-prop.c: Likewise.
257 * ipa-split.c: Likewise.
259 * langhooks.c: Likewise.
260 * omp-low.c: Likewise.
262 * stor-layout.c: Likewise.
263 * targhooks.c: Likewise.
264 * trans-mem.c: Likewise.
265 * tree-affine.c: Likewise.
266 * tree-cfg.c: Likewise.
267 * tree-cfgcleanup.c: Likewise.
268 * tree-complex.c: Likewise.
269 * tree-if-conv.c: Likewise.
270 * tree-inline.c: Likewise.
271 * tree-loop-distribution.c: Likewise.
272 * tree-nested.c: Likewise.
273 * tree-parloops.c: Likewise.
274 * tree-predcom.c: Likewise.
275 * tree-profile.c: Likewise.
276 * tree-scalar-evolution.c: Likewise.
277 * tree-sra.c: Likewise.
278 * tree-ssa-address.c: Likewise.
279 * tree-ssa-ccp.c: Likewise.
280 * tree-ssa-dce.c: Likewise.
281 * tree-ssa-forwprop.c: Likewise.
282 * tree-ssa-ifcombine.c: Likewise.
283 * tree-ssa-loop-im.c: Likewise.
284 * tree-ssa-loop-ivopts.c: Likewise.
285 * tree-ssa-loop-manip.c: Likewise.
286 * tree-ssa-loop-niter.c: Likewise.
287 * tree-ssa-loop-prefetch.c: Likewise.
288 * tree-ssa-loop-unswitch.c: Likewise.
289 * tree-ssa-math-opts.c: Likewise.
290 * tree-ssa-phiopt.c: Likewise.
291 * tree-ssa-phiprop.c: Likewise.
292 * tree-ssa-pre.c: Likewise.
293 * tree-ssa-propagate.c: Likewise.
294 * tree-ssa-reassoc.c: Likewise.
295 * tree-ssa-sccvn.c: Likewise.
296 * tree-ssa-strlen.c: Likewise.
297 * tree-ssa.c: Likewise.
298 * tree-switch-conversion.c: Likewise.
299 * tree-tailcall.c: Likewise.
300 * tree-vect-data-refs.c: Likewise.
301 * tree-vect-generic.c: Likewise.
302 * tree-vect-loop-manip.c: Likewise.
303 * tree-vect-loop.c: Likewise.
304 * tree-vect-patterns.c: Likewise.
305 * tree-vect-stmts.c: Likewise.
308 * value-prof.c: Likewise.
309 * config/aarch64/aarch64.c: Likewise.
310 * config/alpha/alpha.c: Likewise.
311 * config/darwin.c: Likewise.
312 * config/i386/i386.c: Likewise.
313 * config/ia64/ia64.c: Likewise.
314 * config/mep/mep.c: Likewise.
315 * config/mips/mips.c: Likewise.
316 * config/rs6000/rs6000.c: Likewise.
317 * config/s390/s390.c: Likewise.
318 * config/sh/sh.c: Likewise.
319 * config/sparc/sparc.c: Likewise.
320 * config/spu/spu.c: Likewise.
321 * config/stormy16/stormy16.c: Likewise.
322 * config/tilegx/tilegx.c: Likewise.
323 * config/tilepro/tilepro.c: Likewise.
324 * config/xtensa/xtensa.c: Likewise.
326 2013-11-14 Joern Rennecke <joern.rennecke@embecosm.com>
328 * config/arc/arc.md (doloop_begin_i): Remove extra alignment;
331 2013-11-14 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
333 * config/rs6000/sysv4le.h (LINUX64_DEFAULT_ABI_ELFv2): Define.
335 2013-11-14 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
336 Alan Modra <amodra@gmail.com>
338 * config/rs6000/rs6000.h (RS6000_SAVE_AREA): Handle ABI_ELFv2.
339 (RS6000_SAVE_TOC): Remove.
340 (RS6000_TOC_SAVE_SLOT): New macro.
341 * config/rs6000/rs6000.c (rs6000_parm_offset): New function.
342 (rs6000_parm_start): Use it.
343 (rs6000_function_arg_advance_1): Likewise.
344 (rs6000_emit_prologue): Use RS6000_TOC_SAVE_SLOT.
345 (rs6000_emit_epilogue): Likewise.
346 (rs6000_call_aix): Likewise.
347 (rs6000_output_function_prologue): Do not save/restore r11
348 around calling _mcount for ABI_ELFv2.
350 2013-11-14 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
351 Alan Modra <amodra@gmail.com>
353 * config/rs6000/rs6000-protos.h (rs6000_reg_parm_stack_space):
355 * config/rs6000/rs6000.h (RS6000_REG_SAVE): Remove.
356 (REG_PARM_STACK_SPACE): Call rs6000_reg_parm_stack_space.
357 * config/rs6000/rs6000.c (rs6000_parm_needs_stack): New function.
358 (rs6000_function_parms_need_stack): Likewise.
359 (rs6000_reg_parm_stack_space): Likewise.
360 (rs6000_function_arg): Do not replace BLKmode by Pmode when
361 returning a register argument.
363 2013-11-14 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
364 Michael Gschwind <mkg@us.ibm.com>
366 * config/rs6000/rs6000.h (FP_ARG_MAX_RETURN): New macro.
367 (ALTIVEC_ARG_MAX_RETURN): Likewise.
368 (FUNCTION_VALUE_REGNO_P): Use them.
369 * config/rs6000/rs6000.c (TARGET_RETURN_IN_MSB): Define.
370 (rs6000_return_in_msb): New function.
371 (rs6000_return_in_memory): Handle ELFv2 homogeneous aggregates.
372 Handle aggregates of up to 16 bytes for ELFv2.
373 (rs6000_function_value): Handle ELFv2 homogeneous aggregates.
375 2013-11-14 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
376 Michael Gschwind <mkg@us.ibm.com>
378 * config/rs6000/rs6000.h (AGGR_ARG_NUM_REG): Define.
379 * config/rs6000/rs6000.c (rs6000_aggregate_candidate): New function.
380 (rs6000_discover_homogeneous_aggregate): Likewise.
381 (rs6000_function_arg_boundary): Handle homogeneous aggregates.
382 (rs6000_function_arg_advance_1): Likewise.
383 (rs6000_function_arg): Likewise.
384 (rs6000_arg_partial_bytes): Likewise.
385 (rs6000_psave_function_arg): Handle BLKmode arguments.
387 2013-11-14 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
388 Michael Gschwind <mkg@us.ibm.com>
390 * config/rs6000/rs6000.h (AGGR_ARG_NUM_REG): Define.
391 * config/rs6000/rs6000.c (rs6000_aggregate_candidate): New function.
392 (rs6000_discover_homogeneous_aggregate): Likewise.
393 (rs6000_function_arg_boundary): Handle homogeneous aggregates.
394 (rs6000_function_arg_advance_1): Likewise.
395 (rs6000_function_arg): Likewise.
396 (rs6000_arg_partial_bytes): Likewise.
397 (rs6000_psave_function_arg): Handle BLKmode arguments.
399 2013-11-14 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
401 * config/rs6000/rs6000.c (machine_function): New member
403 (rs6000_emit_prologue): Set r2_setup_needed if necessary.
404 (rs6000_output_mi_thunk): Set r2_setup_needed.
405 (rs6000_output_function_prologue): Output global entry point
406 prologue and local entry point marker if needed for ABI_ELFv2.
407 Output -mprofile-kernel code here.
408 (output_function_profiler): Do not output -mprofile-kernel
409 code here; moved to rs6000_output_function_prologue.
410 (rs6000_file_start): Output ".abiversion 2" for ABI_ELFv2.
412 (rs6000_emit_move): Do not handle dot symbols for ABI_ELFv2.
413 (rs6000_output_function_entry): Likewise.
414 (rs6000_assemble_integer): Likewise.
415 (rs6000_elf_encode_section_info): Likewise.
416 (rs6000_elf_declare_function_name): Do not create dot symbols
417 or .opd section for ABI_ELFv2.
419 (rs6000_trampoline_size): Update for ABI_ELFv2 trampolines.
420 (rs6000_trampoline_init): Likewise.
421 (rs6000_elf_file_end): Call file_end_indicate_exec_stack for ABI_ELFv2.
423 (rs6000_call_aix): Handle ELFv2 indirect calls. Do not check
424 for function descriptors in ABI_ELFv2.
426 * config/rs6000/rs6000.md ("*call_indirect_aix<mode>"): Support
427 on ABI_AIX only, not ABI_ELFv2.
428 ("*call_value_indirect_aix<mode>"): Likewise.
429 ("*call_indirect_elfv2<mode>"): New pattern.
430 ("*call_value_indirect_elfv2<mode>"): Likewise.
432 * config/rs6000/predicates.md ("symbol_ref_operand"): Do not
433 check for function descriptors in ABI_ELFv2.
434 ("current_file_function_operand"): Likewise.
436 * config/rs6000/ppc-asm.h [__powerpc64__ && _CALL_ELF == 2]:
438 (FUNC_NAME): Define ELFv2 variant.
439 (JUMP_TARGET): Likewise.
440 (FUNC_START): Likewise.
441 (HIDDEN_FUNC): Likewise.
442 (FUNC_END): Likeiwse.
444 2013-11-14 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
446 * config.gcc [powerpc*-*-* | rs6000-*-*]: Support --with-abi=elfv1
447 and --with-abi=elfv2.
448 * config/rs6000/option-defaults.h (OPTION_DEFAULT_SPECS): Add "abi".
449 * config/rs6000/rs6000.opt (mabi=elfv1): New option.
450 (mabi=elfv2): Likewise.
451 * config/rs6000/rs6000-opts.h (enum rs6000_abi): Add ABI_ELFv2.
452 * config/rs6000/linux64.h (DEFAULT_ABI): Do not hard-code to AIX_ABI
454 (ELFv2_ABI_CHECK): New macro.
455 (SUBSUBTARGET_OVERRIDE_OPTIONS): Use it to decide whether to set
456 rs6000_current_abi to ABI_AIX or ABI_ELFv2.
457 (GLIBC_DYNAMIC_LINKER64): Support ELFv2 ld.so version.
458 * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Predefine
459 _CALL_ELF and __STRUCT_PARM_ALIGN__ if appropriate.
461 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Handle ABI_ELFv2.
462 (debug_stack_info): Likewise.
463 (rs6000_file_start): Treat ABI_ELFv2 the same as ABI_AIX.
464 (rs6000_legitimize_tls_address): Likewise.
465 (rs6000_conditional_register_usage): Likewise.
466 (rs6000_emit_move): Likewise.
467 (init_cumulative_args): Likewise.
468 (rs6000_function_arg_advance_1): Likewise.
469 (rs6000_function_arg): Likewise.
470 (rs6000_arg_partial_bytes): Likewise.
471 (rs6000_output_function_entry): Likewise.
472 (rs6000_assemble_integer): Likewise.
473 (rs6000_savres_strategy): Likewise.
474 (rs6000_stack_info): Likewise.
475 (rs6000_function_ok_for_sibcall): Likewise.
476 (rs6000_emit_load_toc_table): Likewise.
477 (rs6000_savres_routine_name): Likewise.
478 (ptr_regno_for_savres): Likewise.
479 (rs6000_emit_prologue): Likewise.
480 (rs6000_emit_epilogue): Likewise.
481 (rs6000_output_function_epilogue): Likewise.
482 (output_profile_hook): Likewise.
483 (output_function_profiler): Likewise.
484 (rs6000_trampoline_size): Likewise.
485 (rs6000_trampoline_init): Likewise.
486 (rs6000_elf_output_toc_section_asm_op): Likewise.
487 (rs6000_elf_encode_section_info): Likewise.
488 (rs6000_elf_reloc_rw_mask): Likewise.
489 (rs6000_elf_declare_function_name): Likewise.
490 (rs6000_function_arg_boundary): Treat ABI_ELFv2 the same as ABI_AIX,
491 except that rs6000_compat_align_parm is always assumed false.
492 (rs6000_gimplify_va_arg): Likewise.
493 (rs6000_call_aix): Update comment.
494 (rs6000_sibcall_aix): Likewise.
495 * config/rs6000/rs6000.md ("tls_gd_aix<TLSmode:tls_abi_suffix>"):
496 Treat ABI_ELFv2 the same as ABI_AIX.
497 ("*tls_gd_call_aix<TLSmode:tls_abi_suffix>"): Likewise.
498 ("tls_ld_aix<TLSmode:tls_abi_suffix>"): Likewise.
499 ("*tls_ld_call_aix<TLSmode:tls_abi_suffix>"): Likewise.
500 ("load_toc_aix_si"): Likewise.
501 ("load_toc_aix_di"): Likewise.
503 ("call_value"): Likewise.
504 ("*call_local_aix<mode>"): Likewise.
505 ("*call_value_local_aix<mode>"): Likewise.
506 ("*call_nonlocal_aix<mode>"): Likewise.
507 ("*call_value_nonlocal_aix<mode>"): Likewise.
508 ("*call_indirect_aix<mode>"): Likewise.
509 ("*call_value_indirect_aix<mode>"): Likewise.
510 ("sibcall"): Likewise.
511 ("sibcall_value"): Likewise.
512 ("*sibcall_aix<mode>"): Likewise.
513 ("*sibcall_value_aix<mode>"): Likewise.
514 * config/rs6000/predicates.md ("symbol_ref_operand"): Likewise.
515 ("current_file_function_operand"): Likewise.
517 2013-11-14 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
519 * config/rs6000/rs6000.c (rs6000_arg_partial_bytes): Simplify logic
520 by making use of the fact that for vector / floating point arguments
521 passed both in VRs/FPRs and in the fixed parameter area, the partial
522 bytes mechanism is in fact not used.
524 2013-11-14 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
526 * config/rs6000/rs6000.c (rs6000_psave_function_arg): New function.
527 (rs6000_finish_function_arg): Likewise.
528 (rs6000_function_arg): Use rs6000_psave_function_arg and
529 rs6000_finish_function_arg to handle both vector and floating
530 point arguments that are also passed in GPRs / the stack.
532 2013-11-14 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
534 * config/rs6000/rs6000.c (USE_FP_FOR_ARG_P): Remove TYPE argument.
535 (USE_ALTIVEC_FOR_ARG_P): Likewise.
536 (rs6000_darwin64_record_arg_advance_recurse): Update uses.
537 (rs6000_function_arg_advance_1):Likewise.
538 (rs6000_darwin64_record_arg_recurse): Likewise.
539 (rs6000_function_arg): Likewise.
540 (rs6000_arg_partial_bytes): Likewise.
542 2013-11-14 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
544 * config/rs6000/rs6000.c (rs6000_option_override_internal): Replace
545 "DEFAULT_ABI != ABI_AIX" test by testing for ABI_V4 or ABI_DARWIN.
546 (rs6000_savres_strategy): Likewise.
547 (rs6000_return_addr): Likewise.
548 (rs6000_emit_load_toc_table): Replace "DEFAULT_ABI != ABI_AIX" by
549 testing for ABI_V4 (since ABI_DARWIN is impossible here).
550 (rs6000_emit_prologue): Likewise.
551 (legitimate_lo_sum_address_p): Simplify DEFAULT_ABI test.
552 (rs6000_elf_declare_function_name): Remove duplicated test.
553 * config/rs6000/rs6000.md ("load_toc_v4_PIC_1"): Explicitly test
554 for ABI_V4 (instead of "DEFAULT_ABI != ABI_AIX" test).
555 ("load_toc_v4_PIC_1_normal"): Likewise.
556 ("load_toc_v4_PIC_1_476"): Likewise.
557 ("load_toc_v4_PIC_1b"): Likewise.
558 ("load_toc_v4_PIC_1b_normal"): Likewise.
559 ("load_toc_v4_PIC_1b_476"): Likewise.
560 ("load_toc_v4_PIC_2"): Likewise.
561 ("load_toc_v4_PIC_3b"): Likewise.
562 ("load_toc_v4_PIC_3c"): Likewise.
563 * config/rs6000/rs6000.h (RS6000_REG_SAVE): Simplify DEFAULT_ABI test.
564 (RS6000_SAVE_AREA): Likewise.
565 (FP_ARG_MAX_REG): Likewise.
566 (RETURN_ADDRESS_OFFSET): Likewise.
567 * config/rs6000/sysv.h (TARGET_TOC): Test for ABI_V4 instead
569 (SUBTARGET_OVERRIDE_OPTIONS): Likewise.
570 (MINIMAL_TOC_SECTION_ASM_OP): Likewise.
572 2013-11-14 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
574 * config/rs6000/rs6000.c (rs6000_call_indirect_aix): Rename to ...
575 (rs6000_call_aix): ... this. Handle both direct and indirect calls.
576 Create call insn directly instead of via various gen_... routines.
577 Mention special registers used by the call in CALL_INSN_FUNCTION_USAGE.
578 (rs6000_sibcall_aix): New function.
579 * config/rs6000/rs6000.md (TOC_SAVE_OFFSET_32BIT): Remove.
580 (TOC_SAVE_OFFSET_64BIT): Likewise.
581 (AIX_FUNC_DESC_TOC_32BIT): Likewise.
582 (AIX_FUNC_DESC_TOC_64BIT): Likewise.
583 (AIX_FUNC_DESC_SC_32BIT): Likewise.
584 (AIX_FUNC_DESC_SC_64BIT): Likewise.
585 ("call" expander): Call rs6000_call_aix.
586 ("call_value" expander): Likewise.
587 ("call_indirect_aix<ptrsize>"): Replace this pattern ...
588 ("call_indirect_aix<ptrsize>_nor11"): ... and this pattern ...
589 ("*call_indirect_aix<mode>"): ... by this insn pattern.
590 ("call_value_indirect_aix<ptrsize>"): Replace this pattern ...
591 ("call_value_indirect_aix<ptrsize>_nor11"): ... and this pattern ...
592 ("*call_value_indirect_aix<mode>"): ... by this insn pattern.
593 ("*call_nonlocal_aix32", "*call_nonlocal_aix64"): Replace by ...
594 ("*call_nonlocal_aix<mode>"): ... this pattern.
595 ("*call_value_nonlocal_aix32", "*call_value_nonlocal_aix64"): Replace
596 ("*call_value_nonlocal_aix<mode>"): ... by this pattern.
597 ("*call_local_aix<mode>"): New insn pattern.
598 ("*call_value_local_aix<mode>"): Likewise.
599 ("sibcall" expander): Call rs6000_sibcall_aix.
600 ("sibcall_value" expander): Likewise. Move earlier in file.
601 ("*sibcall_nonlocal_aix<mode>"): Replace by ...
602 ("*sibcall_aix<mode>"): ... this pattern.
603 ("*sibcall_value_nonlocal_aix<mode>"): Replace by ...
604 ("*sibcall_value_aix<mode>"): ... this pattern.
605 * config/rs6000/rs6000-protos.h (rs6000_call_indirect_aix): Remove.
606 (rs6000_call_aix): Add prototype.
607 (rs6000_sibcall_aix): Likewise.
609 2013-11-14 Jakub Jelinek <jakub@redhat.com>
612 * asan.c (asan_emit_stack_protection): Ensure -fsection-anchors
613 isn't confused by the artificial decl.
615 2013-11-14 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
617 * config/rs6000/rs6000.c (rs6000_emit_prologue): Do not place a
618 RTX_FRAME_RELATED_P marker on the UNSPEC_MOVESI_FROM_CR insn.
619 Instead, add USEs of all modified call-saved CR fields to the
620 insn storing the result to the stack slot, and provide an
621 appropriate REG_FRAME_RELATED_EXPR for that insn.
622 * config/rs6000/rs6000.md ("*crsave"): New insn pattern.
623 * config/rs6000/predicates.md ("crsave_operation"): New predicate.
625 2013-11-14 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
626 Alan Modra <amodra@gmail.com>
628 * function.c (assign_parms): Use all.reg_parm_stack_space instead
629 of re-evaluating REG_PARM_STACK_SPACE target macro.
630 (locate_and_pad_parm): New parameter REG_PARM_STACK_SPACE. Use it
631 instead of evaluating target macro REG_PARM_STACK_SPACE every time.
632 (assign_parm_find_entry_rtl): Update call.
633 * calls.c (initialize_argument_information): Update call.
634 (emit_library_call_value_1): Likewise.
635 * expr.h (locate_and_pad_parm): Update prototype.
637 2013-11-14 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
639 * calls.c (store_unaligned_arguments_into_pseudos): Skip PARALLEL
642 2013-11-14 DJ Delorie <dj@redhat.com>
644 * config/rx/rx.c (rx_mode_dependent_address_p): Allow offsets up
647 2013-11-14 Jeff Law <law@redhat.com>
649 * tree-ssa-threadedge.c (thread_through_normal_block): Only push the
650 EDGE_START_JUMP_THREAD marker if the jump threading path is empty.
652 2013-11-14 James Greenhalgh <james.greenhalgh@arm.com>
654 * doc/invoke.texi: Update documentation for AArch64's -mcpu
657 2013-11-14 James Greenhalgh <james.greenhalgh@arm.com>
659 * config/aarch64/aarch64-cores.def (example-1): Remove.
660 (example-2): Likewise.
661 * config/aarch64/aarch64-tune.md: Regenerate.
662 * config/aarch64/aarch64.md: Do not include "large.md" or "small.md".
663 (generic_sched): Remove "large", "small".
664 * config/aarch64/large.md: Delete.
665 * config/aarch64/small.md: Delete.
667 2013-11-14 James Greenhalgh <james.greenhalgh@arm.com>
669 * config/aarch64/aarch64-cores.def (cortex-a57): Tune for cortexa15.
670 * config/aarch64/aarch64-tune.md: Regenerate.
671 * config/aarch64/aarch64.md: Include cortex-a15 pipeline model.
672 (generic_sched): "no" if we are tuning for cortexa15.
673 * config/arm/cortex-a15.md: Include cortex-a15-neon.md by
676 2013-11-14 James Greenhalgh <james.greenhalgh@arm.com>
678 * config/aarch64/aarch64-arches.def (armv8-a): Tune for cortex-a53.
679 * config/aarch64/aarch64.md: Do not include aarch64-generic.md.
680 * config/aarch64/aarch64.c (aarch64_tune): Initialize to cortexa53.
681 (all_cores): Use cortexa53 when tuning for "generic".
682 (aarch64_override_options): Fix comment.
683 * config/aarch64/aarch64.h (TARGET_CPU_DEFAULT): Set to cortexa53.
684 * config/aarch64/aarch64-generic.md: Delete.
686 2013-11-14 James Greenhalgh <james.greenhalgh@arm.com>
688 * config/aarch64/aarch64.c (all_architectures): Remove "generic".
690 2013-11-14 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
692 * config/aarch64/aarch64.c: Include aarch-cost-tables.h.
693 (generic_rtx_cost_table): Remove.
694 (aarch64_rtx_costs): Use fields from cpu_cost_table.
695 * config/aarch64/aarch64-protos.h (tune_params): Use cpu_cost_table for
697 (cpu_rtx_cost_table): Remove.
699 2013-11-14 Julian Brown <julian@codesourcery.com>
700 Joey Ye <joey.ye@arm.com>
702 * config/arm/arm.c (arm_cortex_m_branch_cost): New.
704 (arm_slowmul_tune, arm_fastmul_tune, arm_strongarm_tune, arm_9e_tune,
705 arm_v6t2_tune, arm_cortex_tune, arm_cortex_a15_tune,
706 arm_cortex_a5_tune, arm_v6m_tune): Add comments for Sched adj cost.
707 * config/arm/arm-cores.def (cortex-m4, cortex-m3): Use arm_v7m_tune.
709 2013-11-14 Kirill Yukhin <kirill.yukhin@intel.com>
712 * config/ia64/ia64.c (ia64_split_tmode_move): Relax `dead'
715 2013-11-14 Jakub Jelinek <jakub@redhat.com>
716 Uros Bizjak <ubizjak@gmail.com>
719 * config/i386/i386.md (*anddi_2): Only allow CCZmode if
720 operands[2] satisfies_constraint_Z that might have bit 31 set.
722 2013-11-13 Jeff Law <law@redhat.com>
724 PR tree-optimization/59102
725 * gimple-ssa-isolate-paths.c
726 (insert_trap_and_remove_trailing_statments): Ensure STMT is a
727 gimple assignment before looking at gimple_assign_lhs.
729 2013-11-13 Vladimir Makarov <vmakarov@redhat.com>
731 * ira.c: Add comment about threads at the top of file.
733 2013-11-13 Vladimir Makarov <vmakarov@redhat.com>
735 * ira-color.c (coalesce_allocnos): Don't allocate and free
738 2013-11-14 Tom de Vries <tom@codesourcery.com>
740 * tree-ssa-tail-merge.c (gimple_equal_p): Add test for structural
741 equality for GIMPLE_ASSIGN.
743 2013-11-14 Tom de Vries <tom@codesourcery.com>
745 * tree-ssa-tail-merge.c (gimple_operand_equal_value_p): Factor new
747 (gimple_equal_p): ... here.
749 2013-11-14 Tom de Vries <tom@codesourcery.com>
751 * trans-mem.c (is_tm_ending): New function.
752 * gimple.h (is_tm_ending): Declare.
753 * tree-ssa-tail-merge.c (gimple_equal_p): Remove test on
755 (find_duplicate): Use is_tm_ending instead of is_tm_ending_fndecl.
757 2013-11-14 Tom de Vries <tom@codesourcery.com>
759 * tree-ssa-tail-merge.c (gimple_equal_p): Remove equal variable.
761 2013-11-13 Andrew MacLeod <amacleod@redhat.com>
763 * gimple-walk.h: New File. Relocate prototypes from gimple.h.
764 (struct walk_stmt_info): Relocate here from gimple.h.
765 * gimple-iterator.h: New File. Relocate prototypes from gimple.h.
766 (struct gimple_stmt_iterator_d): Relocate here from gimple.h.
767 (gsi_start_1, gsi_none, gsi_start_bb, gsi_last_1, gsi_last_bb,
768 gsi_end_p, gsi_one_before_end_p, gsi_next, gsi_prev, gsi_stmt,
769 gsi_after_labels, gsi_next_nondebug, gsi_prev_nondebug,
770 gsi_start_nondebug_bb, gsi_start_nondebug_after_labels_bb,
771 gsi_last_nondebug_bb, gsi_bb, gsi_seq): Relocate here from gimple.h.
772 * gimple.h (struct gimple_stmt_iterator_d): Move to gimple-iterator.h.
773 (gsi_start_1, gsi_none, gsi_start_bb, gsi_last_1, gsi_last_bb,
774 gsi_end_p, gsi_one_before_end_p, gsi_next, gsi_prev, gsi_stmt,
775 gsi_after_labels, gsi_next_nondebug, gsi_prev_nondebug,
776 gsi_start_nondebug_bb, gsi_start_nondebug_after_labels_bb,
777 gsi_last_nondebug_bb, gsi_bb, gsi_seq): Move to gimple-iterator.h.
778 (struct walk_stmt_info): Move to gimple-walk.h.
779 (gimple_seq_set_location): Move to gimple.c
780 * gimple-walk.c: New File.
781 (walk_gimple_seq_mod, walk_gimple_seq, walk_gimple_asm, walk_gimple_op,
782 walk_gimple_stmt, get_base_loadstore, walk_stmt_load_store_addr_ops,
783 walk_stmt_load_store_ops): Relocate here from gimple.c.
784 * gimple-iterator.c: Include gimple-iterator.h.
785 * gimple.c (walk_gimple_seq_mod, walk_gimple_seq, walk_gimple_asm,
786 walk_gimple_op, walk_gimple_stmt, get_base_loadstore,
787 walk_stmt_load_store_addr_ops, walk_stmt_load_store_ops): Move to
789 (gimple_seq_set_location): Relocate from gimple.h.
790 * tree-phinodes.h (set_phi_nodes): Move to tree-phinodes.c.
791 * tree-phinodes.c (set_phi_nodes): Relocate from tree-phinodes.h.
792 * gengtype.c (open_base_files): Add gimple-iterator.h to include list.
793 * Makefile.in (OBJS): Add gimple-walk.o
794 * asan.c: Update Include list as required for gimple-iterator.h and
796 * cfgexpand.c: Likewise.
797 * cfgloop.c: Likewise.
798 * cfgloopmanip.c: Likewise.
799 * cgraph.c: Likewise.
800 * cgraphbuild.c: Likewise.
801 * cgraphunit.c: Likewise.
802 * gimple-fold.c: Likewise.
803 * gimple-low.c: Likewise.
804 * gimple-pretty-print.c: Likewise.
805 * gimple-ssa-isolate-paths.c: Likewise.
806 * gimple-ssa-strength-reduction.c: Likewise.
807 * gimple-streamer-in.c: Likewise.
808 * gimple-streamer-out.c: Likewise.
809 * gimplify.c: Likewise.
810 * graphite-blocking.c: Likewise.
811 * graphite-clast-to-gimple.c: Likewise.
812 * graphite-dependences.c: Likewise.
813 * graphite-interchange.c: Likewise.
814 * graphite-optimize-isl.c: Likewise.
815 * graphite-poly.c: Likewise.
816 * graphite-scop-detection.c: Likewise.
817 * graphite-sese-to-poly.c: Likewise.
818 * graphite.c: Likewise.
819 * ipa-inline-analysis.c: Likewise.
820 * ipa-profile.c: Likewise.
821 * ipa-prop.c: Likewise.
822 * ipa-pure-const.c: Likewise.
823 * ipa-split.c: Likewise.
824 * lto-streamer-in.c: Likewise.
825 * lto-streamer-out.c: Likewise.
826 * omp-low.c: Likewise.
827 * predict.c: Likewise.
828 * profile.c: Likewise.
830 * tracer.c: Likewise.
831 * trans-mem.c: Likewise.
832 * tree-call-cdce.c: Likewise.
833 * tree-cfg.c: Likewise.
834 * tree-cfgcleanup.c: Likewise.
835 * tree-complex.c: Likewise.
836 * tree-data-ref.c: Likewise.
837 * tree-dfa.c: Likewise.
838 * tree-eh.c: Likewise.
839 * tree-emutls.c: Likewise.
840 * tree-if-conv.c: Likewise.
841 * tree-inline.c: Likewise.
842 * tree-into-ssa.c: Likewise.
843 * tree-loop-distribution.c: Likewise.
844 * tree-nested.c: Likewise.
845 * tree-nrv.c: Likewise.
846 * tree-object-size.c: Likewise.
847 * tree-outof-ssa.c: Likewise.
848 * tree-parloops.c: Likewise.
849 * tree-predcom.c: Likewise.
850 * tree-profile.c: Likewise.
851 * tree-scalar-evolution.c: Likewise.
852 * tree-sra.c: Likewise.
853 * tree-ssa-ccp.c: Likewise.
854 * tree-ssa-coalesce.c: Likewise.
855 * tree-ssa-copy.c: Likewise.
856 * tree-ssa-copyrename.c: Likewise.
857 * tree-ssa-dce.c: Likewise.
858 * tree-ssa-dom.c: Likewise.
859 * tree-ssa-dse.c: Likewise.
860 * tree-ssa-forwprop.c: Likewise.
861 * tree-ssa-ifcombine.c: Likewise.
862 * tree-ssa-live.c: Likewise.
863 * tree-ssa-loop-ch.c: Likewise.
864 * tree-ssa-loop-im.c: Likewise.
865 * tree-ssa-loop-ivcanon.c: Likewise.
866 * tree-ssa-loop-ivopts.c: Likewise.
867 * tree-ssa-loop-manip.c: Likewise.
868 * tree-ssa-loop-niter.c: Likewise.
869 * tree-ssa-loop-prefetch.c: Likewise.
870 * tree-ssa-loop.c: Likewise.
871 * tree-ssa-math-opts.c: Likewise.
872 * tree-ssa-phiopt.c: Likewise.
873 * tree-ssa-phiprop.c: Likewise.
874 * tree-ssa-pre.c: Likewise.
875 * tree-ssa-propagate.c: Likewise.
876 * tree-ssa-reassoc.c: Likewise.
877 * tree-ssa-sink.c: Likewise.
878 * tree-ssa-strlen.c: Likewise.
879 * tree-ssa-structalias.c: Likewise.
880 * tree-ssa-tail-merge.c: Likewise.
881 * tree-ssa-ter.c: Likewise.
882 * tree-ssa-threadedge.c: Likewise.
883 * tree-ssa-threadupdate.c: Likewise.
884 * tree-ssa-uncprop.c: Likewise.
885 * tree-ssa-uninit.c: Likewise.
886 * tree-ssa.c: Likewise.
887 * tree-stdarg.c: Likewise.
888 * tree-switch-conversion.c: Likewise.
889 * tree-tailcall.c: Likewise.
890 * tree-vect-data-refs.c: Likewise.
891 * tree-vect-generic.c: Likewise.
892 * tree-vect-loop-manip.c: Likewise.
893 * tree-vect-loop.c: Likewise.
894 * tree-vect-patterns.c: Likewise.
895 * tree-vect-slp.c: Likewise.
896 * tree-vect-stmts.c: Likewise.
897 * tree-vectorizer.c: Likewise.
898 * tree-vrp.c: Likewise.
901 * value-prof.c: Likewise.
902 * vtable-verify.c: Likewise.
904 2013-11-13 Steven Bosscher <steven@gcc.gnu.org>
906 * gimple-ssa-isolate-paths.c (pass_isolate_erroneous_paths): Comment
909 2013-11-13 Jeff Law <law@redhat.com>
911 * PR middle-end/59119
912 * gimple-ssa-isolate-paths.c (find_implicit_erroneous_behaviour): New
913 function, extracted from gimple_ssa_isolate_erroneous_paths.
914 (find_explicit_erroneous_behaviour): Similarly.
915 (insert_trap_and_remove_trailing_statements): Remove statements
918 2013-11-13 Steven Bosscher <steven@gcc.gnu.org>
920 * cfgrtl.c (can_fallthru): Reorder code to move tablejump check up.
921 Make that check explicit. BB_HEAD cannot be NULL, remove check for it.
922 * haifa-sched.c (ready_remove_first_dispatch): Check INSN_P before
923 looking at INSN_CODE.
924 * reload1.c (delete_dead_insn) Do not expect JUMP_TABLE_DATA to be an
925 active_insn_p object, respect basic block boundaries.
926 * reorg.c (follow_jumps): Use invariant that JUMP_TABLE_DATA always
927 follows immediately after the jump table data label.
928 * config/nds32/nds32.c (nds32_output_casesi_pc_relative): Likewise.
929 * config/sh/sh.c (barrier_align): Likewise. Rearrange code such
930 that JUMP_TABLE_DATA is not expected to be an active_insn_p object.
932 2013-11-13 Teresa Johnson <tejohnson@google.com>
935 * predict.c (drop_profile): Error is currently too strict.
936 (handle_missing_profiles): Pass call_count to drop_profile.
938 2013-11-13 Teresa Johnson <tejohnson@google.com>
941 * ipa-inline.c (edge_badness): Fix overflow.
943 2013-11-13 Vladimir Makarov <vmakarov@redhat.com>
945 PR rtl-optimization/59036
946 * ira-color.c (struct allocno_color_data): Add new members
947 first_thread_allocno, next_thread_allocno, thread_freq.
948 (sorted_copies): New static var.
949 (allocnos_conflict_by_live_ranges_p, copy_freq_compare_func): Move up.
950 (allocno_thread_conflict_p, merge_threads)
951 (form_threads_from_copies, form_threads_from_bucket)
952 (form_threads_from_colorable_allocno, init_allocno_threads): New
954 (bucket_allocno_compare_func): Add comparison by thread frequency
956 (add_allocno_to_ordered_bucket): Rename to
957 add_allocno_to_ordered_colorable_bucket. Remove parameter.
958 (push_only_colorable): Call form_threads_from_bucket.
959 (color_pass): Call init_allocno_threads. Use
960 consideration_allocno_bitmap instead of coloring_allocno_bitmap
961 for nuillify allocno color data.
962 (ira_initiate_assign, ira_finish_assign): Allocate/free sorted_copies.
963 (coalesce_allocnos): Use static sorted copies.
965 2013-11-13 Jakub Jelinek <jakub@redhat.com>
967 * passes.c (execute_todo): Don't call do_per_function if
969 (execute_one_ipa_transform_pass, execute_one_pass): Don't call
970 execute_function_dump if dump_file is NULL.
972 2013-11-13 Martin Jambor <mjambor@suse.cz>
974 * cgraph.c (cgraph_get_create_node): Do what
975 cgraph_get_create_real_symbol_node used to do.
976 (cgraph_get_create_real_symbol_node): Removed. Changed all users to
977 call cgraph_get_create_node.
978 * cgraph.h (cgraph_get_create_real_symbol_node): Removed.
979 * lto-streamer-in.c (input_function): Call cgraph_get_node instead of
980 cgraph_get_create_node. Assert we get a node.
982 2013-11-13 Tejas Belagod <tejas.belagod@arm.com>
984 * config/aarch64/aarch64-simd.md (vec_extract): New.
986 2013-11-13 Tejas Belagod <tejas.belagod@arm.com>
988 * config/aarch64/aarch64-simd.md (vec_set<mode>): Add w -> w option to
991 2013-11-13 Eric Botcazou <ebotcazou@adacore.com>
993 * cfgexpand.c (expand_used_vars): Allocate space for partitions based
994 on PARM_DECLs or RESULT_DECLs only if they are ignored for debug info
995 or if optimization is enabled.
996 * tree-ssa-coalesce.c (coalesce_ssa_name): If optimization is disabled,
997 require that all the names based on a PARM_DECL or a RESULT_DECL that
998 isn't ignored for debug info be coalesced.
1000 2013-11-13 Jan-Benedict Glaw <jbglaw@lug-owl.de>
1002 * config/c6x/c6x.c: Include "gimple-expr.h".
1004 2013-11-13 Richard Biener <rguenther@suse.de>
1006 * gimple-streamer-out.c (output_gimple_stmt): Also wrap
1007 decls in ADDR_EXPR operands inside a MEM_REF and optimize that.
1008 * gimple-streamer-in.c (input_gimple_stmt): Remove now dead code
1009 dealing with type mismatches inside component reference chains.
1011 2013-11-13 Marc Glisse <marc.glisse@inria.fr>
1013 PR tree-optimization/59077
1014 * ipa-pure-const.c (better_state): Update *state.
1016 2013-11-13 Christophe Lyon <christophe.lyon@linaro.org>
1018 * config/aarch64/aarch64.h (FRAME_GROWS_DOWNWARD): Define to 1.
1019 * config/aarch64/aarch64.c (aarch64_initial_elimination_offset):
1020 Update offset calculations.
1022 2013-11-13 Eric Botcazou <ebotcazou@adacore.com>
1025 * dwarf2out.c (add_byte_size_attribute): Also use int_size_in_bytes
1026 for fields. Do not add the attribute if the size is negative.
1028 2013-11-13 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
1030 * config/arm/arm.c: Include aarch-cost-tables.h.
1031 (generic_extra_costs): Move from here...
1032 * config/arm/aarch-cost-tables.h: ... To here. New file.
1034 2013-11-13 Alexander Ivchenko <alexander.ivchenko@intel.com>
1035 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
1036 Sergey Lega <sergey.s.lega@intel.com>
1037 Anna Tikhonova <anna.tikhonova@intel.com>
1038 Ilya Tocar <ilya.tocar@intel.com>
1039 Andrey Turetskiy <andrey.turetskiy@intel.com>
1040 Ilya Verbin <ilya.verbin@intel.com>
1041 Kirill Yukhin <kirill.yukhin@intel.com>
1042 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
1044 * config/i386/i386.c (ix86_print_operand): Support z-masking.
1045 * config/i386/predicate.md (const_0_to_4_operand): New.
1046 (const_0_to_5_operand): Ditto.
1047 * config/i386/sse.md (UNSPEC_COMPRESS): New.
1048 (UNSPEC_COMPRESS_STORE): Ditto.
1049 (UNSPEC_EXPAND): Ditto.
1050 (UNSPEC_EMBEDDED_ROUNDING): Ditto.
1051 (define_mode_attr ssescalarsize): Ditto.
1052 (avx512f_load<mode>_mask): Ditto.
1053 (avx512f_store<mode>_mask): Ditto.
1054 (avx512f_storedqu<mode>_mask): Ditto.
1055 (avx512f_vmcmp<mode>3_mask): Ditto.
1056 (avx512f_fmadd_<mode>_mask): Ditto.
1057 (avx512f_fmadd_<mode>_mask3): Ditto.
1058 (avx512f_fmsub_<mode>_mask): Ditto.
1059 (avx512f_fmsub_<mode>_mask3): Ditto.
1060 (avx512f_fnmadd_<mode>_mask): Ditto.
1061 (avx512f_fnmadd_<mode>_mask3): Ditto.
1062 (avx512f_fnmsub_<mode>_mask): Ditto.
1063 (avx512f_fnmsub_<mode>_mask3): Ditto.
1064 (avx512f_fmaddsub_<mode>_mask): Ditto.
1065 (avx512f_fmaddsub_<mode>_mask3): Ditto.
1066 (avx512f_fmsubadd_<mode>_mask): Ditto.
1067 (avx512f_fmsubadd_<mode>_mask3): Ditto.
1068 (vec_unpacku_float_lo_v16si): Ditto.
1069 (avx512f_vextract<shuffletype>32x4_mask): Ditto.
1070 (avx512f_vextract<shuffletype>32x4_1_maskm): Ditto.
1071 (avx512f_vextract<shuffletype>64x4_mask): Ditto.
1072 (vec_extract_lo_<mode>_maskm): Ditto.
1073 (vec_extract_hi_<mode>_maskm): Ditto.
1074 (avx512f_vternlog<mode>_mask): Ditto.
1075 (avx512f_shufps512_mask): Ditto.
1076 (avx512f_fixupimm<mode>_mask): Ditto.
1077 (avx512f_shufpd512_mask): Ditto.
1078 (avx512f_<code><pmov_src_lower><mode>2_mask): Ditto.
1079 (avx512f_<code>v8div16qi2_mask/trunc): Ditto.
1080 (*avx512f_<code>v8div16qi2_store_mask): Ditto.
1081 (ashr<mode>3<mask_name>): Ditto.
1082 (avx512f_vinsert<shuffletype>32x4_mask): Ditto.
1083 (avx512f_vinsert<shuffletype>64x4_mask): Ditto.
1084 (avx512f_shuf_<shuffletype>64x2_mask): Ditto.
1085 (avx512f_shuf_<shuffletype>32x4_mask): Ditto.
1086 (avx512f_pshufdv3_mask): Ditto.
1087 (avx512f_perm<mode>_mask): Ditto.
1088 (avx512f_vpermi2var<mode>3_mask): Ditto.
1089 (avx512f_vpermt2var<mode>3_mask): Ditto.
1090 (avx512f_compress<mode>_mask): Ditto.
1091 (avx512f_compressstore<mode>_mask): Ditto.
1092 (avx512f_expand<mode>_mask): Ditto.
1093 (<sse>_loadu<ssemodesuffix><avxsizesuffix><mask_name>): Extend
1095 (avx512f_storeu<ssemodesuffix>512_mask): Ditto.
1096 (<plusminus_insn><mode>3<mask_name>): Ditto.
1097 (*<plusminus_insn><mode>3<mask_name>): Ditto.
1098 (mul<mode>3<mask_name>): Ditto.
1099 (*mul<mode>3<mask_name>): Ditto.
1100 (<sse>_div<mode>3<mask_name>): Ditto.
1101 (<mask_codefor>rcp14<mode><mask_name>): Ditto.
1102 (<sse>_sqrt<mode>2<mask_name>): Ditto.
1103 (<mask_codefor>rsqrt14<mode><mask_name>): Ditto.
1104 (<code><mode>3<mask_name>/smaxmin): Ditto.
1105 (*<code><mode>3_finite<mask_name>/smaxmin): Ditto.
1106 (*<code><mode>3<mask_name>/smaxmin): Ditto.
1107 (float<sseintvecmodelower><mode>2<mask_name>): Ditto.
1108 (ufloatv16siv16sf2<mask_name>): Ditto.
1109 (<mask_codefor>avx512f_fix_notruncv16sfv16si<mask_name>): Ditto.
1110 (<mask_codefor>avx512f_ufix_notruncv16sfv16si<mask_name>): Ditto.
1111 (<fixsuffix>fix_truncv16sfv16si2<mask_name>): Ditto.
1112 (float<si2dfmodelower><mode>2<mask_name>): Ditto.
1113 (ufloatv8siv8df<mask_name>): Ditto.
1114 (<mask_codefor>avx512f_cvtpd2dq512<mask_name>): Ditto.
1115 (avx512f_ufix_notruncv8dfv8si<mask_name>): Ditto.
1116 (<fixsuffix>fix_truncv8dfv8si2<mask_name>): Ditto.
1117 (<mask_codefor>avx512f_cvtpd2ps512<mask_name>): Ditto.
1118 (<sse2_avx_avx512f>_cvtps2pd<avxsizesuffix><mask_name>): Ditto.
1119 (<mask_codefor>avx512f_unpckhps512<mask_name>): Ditto.
1120 (<mask_codefor>avx512f_unpcklps512<mask_name>): Ditto.
1121 (<mask_codefor>avx512f_movshdup512<mask_name>): Ditto.
1122 (<mask_codefor>avx512f_movsldup512<mask_name>): Ditto.
1123 (<mask_codefor>avx512f_vextract<shuffletype>32x4_1<mask_name>): Ditto.
1124 (vec_extract_lo_<mode><mask_name>): Ditto.
1125 (vec_extract_hi_<mode><mask_name>): Ditto.
1126 (<mask_codefor>avx512f_unpckhpd512<mask_name>): Ditto.
1127 (avx512f_movddup512<mask_name>): Ditto.
1128 (avx512f_unpcklpd512<mask_name>): Ditto.
1129 (*avx512f_unpcklpd512<mask_name>): Ditto.
1130 (*avx512f_vmscalef<mode>): Ditto.
1131 (avx512f_scalef<mode><mask_name>): Ditto.
1132 (avx512f_getexp<mode><mask_name>): Ditto.
1133 (<mask_codefor>avx512f_align<mode><mask_name>): Ditto.
1134 (avx512f_rndscale<mode><mask_name>): Ditto.
1135 (avx512f_shufps512_1<mask_name>): Ditto.
1136 (avx512f_shufpd512_1<mask_name>): Ditto.
1137 (<plusminus_insn><mode>3<mask_name>): Ditto.
1138 (*<plusminus_insn><mode>3<mask_name>): Ditto.
1139 (vec_widen_umult_even_v16si<mask_name>): Ditto.
1140 (*vec_widen_umult_even_v16si<mask_name>): Ditto.
1141 (vec_widen_smult_even_v16si<mask_name>): Ditto.
1142 (*vec_widen_smult_even_v16si<mask_name>): Ditto.
1143 (mul<mode>3<mask_name>): Ditto.
1144 (*<sse4_1_avx2>_mul<mode>3<mask_name>): Ditto.
1145 (<shift_insn><mode>3<mask_name>): Ditto.
1146 (avx512f_<rotate>v<mode><mask_name>/rotate): Ditto.
1147 (avx512f_<rotate><mode><mask_name>): Ditto.
1148 (<code><mode>3<mask_name>/maxmin): Ditto.
1149 (*avx2_<code><mode>3<mask_name>/maxmin): Ditto.
1150 (<sse2_avx2>_andnot<mode>3<mask_name>): Ditto.
1151 (*andnot<mode>3<mask_name>): Ditto.
1152 (<mask_codefor><code><mode>3<mask_name>/any_logic): Ditto.
1153 (<mask_codefor>avx512f_interleave_highv16si<mask_name>): Ditto.
1154 (<mask_codefor>avx512f_interleave_lowv16si<mask_name>): Ditto.
1155 (<mask_codefor>avx512f_vinsert<shuffletype>32x4_1<mask_name>): Ditto.
1156 (vec_set_lo_<mode><mask_name>): Ditto.
1157 (vec_set_hi_<mode><mask_name>): Ditto.
1158 (avx512f_shuf_<shuffletype>64x2_1<mask_name>): Ditto.
1159 (avx512f_shuf_<shuffletype>32x4_1<mask_name>): Ditto.
1160 (avx512f_pshufd_1<mask_name>): Ditto.
1161 (<mask_codefor>abs<mode>2<mask_name>): Ditto.
1162 (<mask_codefor>avx512f_<code>v16qiv16si2<mask_name>): Ditto.
1163 (avx512f_<code>v16hiv16si2<mask_name>/any_extend): Ditto.
1164 (avx512f_<code>v8qiv8di2<mask_name>/any_extend): Ditto.
1165 (avx512f_<code>v8hiv8di2<mask_name>/any_extend): Ditto.
1166 (avx512f_<code>v8siv8di2<mask_name>/any_extend): Ditto.
1167 (avx512er_exp2<mode><mask_name>): Ditto.
1168 (<mask_codefor>avx512er_rcp28<mode><mask_name>): Ditto.
1169 (<mask_codefor>avx512er_rsqrt28<mode><mask_name>): Ditto.
1170 (<avx2_avx512f>_permvar<mode><mask_name>): Ditto.
1171 (<avx2_avx512f>_perm<mode>_1<mask_name>): Ditto.
1172 (<mask_codefor>avx512f_vec_dup<mode><mask_name>): Ditto.
1173 (<mask_codefor>avx512f_broadcast<mode><mask_name>/V16FI): Ditto.
1174 (<mask_codefor>avx512f_broadcast<mode><mask_name>/V8FI): Ditto.
1175 (<mask_codefor>avx512f_vec_dup_gpr<mode><mask_name>): Ditto.
1176 (<mask_codefor>avx512f_vec_dup_mem<mode><mask_name>): Ditto.
1177 (<sse2_avx_avx512f>_vpermil<mode><mask_name>/VF2): Ditto.
1178 (<sse2_avx_avx512f>_vpermil<mode><mask_name>/VF1): Ditto.
1179 (*<sse2_avx_avx512f>_vpermilp<mode><mask_name>): Ditto.
1180 (<sse2_avx_avx512f>_vpermilvar<mode>3<mask_name>): Ditto.
1181 (<avx2_avx512f>_ashrv<mode><mask_name>): Ditto.
1182 (<avx2_avx512f>_<shift_insn>v<mode><mask_name>): Ditto.
1183 (<mask_codefor>avx512f_vcvtph2ps512<mask_name>): Ditto.
1184 (<mask_codefor>avx512f_vcvtps2ph512<mask_name>): Ditto.
1185 (avx512f_getmant<mode><mask_name>): Ditto.
1186 (clz<mode>2<mask_name>): Ditto.
1187 (<mask_codefor>conflict<mode><mask_name>): Ditto.
1188 (*srcp14<mode>): Remove visibility.
1189 (*rsqrt14<mode>): Ditto.
1190 (*fma_fmsub_<mode>): Ditto.
1191 (*fma_fnmadd_<mode>): Ditto.
1192 (*avx512f_rndscale<mode>): Ditto.
1193 * config/i386/subst.md: New file.
1195 2013-11-13 Joseph Myers <joseph@codesourcery.com>
1197 * doc/extend.texi (Statement Exprs, Typeof): Discuss __auto_type.
1198 * ginclude/stdatomic.h (kill_dependency, atomic_store_explicit)
1199 (atomic_load_explicit, atomic_exchange_explicit)
1200 (atomic_compare_exchange_strong_explicit)
1201 (atomic_compare_exchange_weak_explicit): Use __auto_type to
1202 declare variable initialized with PTR argument.
1204 2013-11-12 Jeff Law <law@redhat.com>
1206 * tree-ssa-threadedge.c (thread_around_empty_blocks): New argument
1207 backedge_seen_p. Set, use and pass it to children appropriately.
1208 (thread_through_normal_block): Similarly.
1209 (thread_across_edge): Similarly.
1211 * gimple-ssa-isolate-paths.c (check_loadstore): Mark discovered
1212 memory references as volatile.
1213 (insert_trap_and_remove_trailing_statements): Fix comment.
1215 2013-11-12 Vladimir Makarov <vmakarov@redhat.com>
1218 * ira-costs.c (record_operand_costs): Check operands number for
1221 2013-11-12 Michael Meissner <meissner@linux.vnet.ibm.com>
1224 * config/rs6000/rs6000.md (movdi_internal32): Eliminate
1225 constraints that would allow DImode into the traditional Altivec
1226 registers, but cause undesirable code generation when loading 0 as
1228 (movdi_internal64): Likewise.
1229 (cmp<mode>_fpr): Do not use %x for CR register output.
1230 (extendsfdf2_fpr): Fix constraints when -mallow-upper-df and
1231 -mallow-upper-sf debug switches are used.
1233 2013-11-12 Andrew MacLeod <amacleod@redhat.com>
1235 * gimple-expr.h (create_tmp_var_name, create_tmp_var_raw,
1236 create_tmp_var, create_tmp_reg, mark_addressable, is_gimple_reg_rhs):
1237 Relocate prototypes from gimple.h.
1238 * gimplify.h: New File. Relocate some prototypes from gimple.h here.
1239 (gimple_predicate, enum fallback, enum gimplify_status): Relocate
1241 * gimple.h: Move some prototypes to gimplify.h.
1242 (gimple_predicate, enum fallback, enum gimplify_status): Move to
1244 (gimple_do_not_emit_location_p, gimple_set_do_not_emit_location):
1245 Relocate from gimpify.c.
1246 * gimple-expr.c (remove_suffix, tmp_var_id_num, create_tmp_var_name,
1247 create_tmp_var_raw, create_tmp_var, create_tmp_reg, mark_addressable,
1248 is_gimple_reg_rhs) Relocate from gimplify.c.
1249 * gimplify.c (mark_addressable): Move to gimple-expr.c.
1250 (gimple_seq_add_stmt_without_update): Move to gimple.c.
1251 (remove_suffix, tmp_var_id_num, create_tmp_var_name,
1252 create_tmp_var_raw, create_tmp_var, create_tmp_reg,
1253 is_gimple_reg_rhs): Move to gimple-expr.c.
1254 (should_carry_location_p): Move to gimple.c.
1255 (gimple_do_not_emit_location_p, gimple_set_do_not_emit_location): Move
1257 (annotate_one_with_location, annotate_all_with_location_after,
1258 annotate_all_with_location): Move to gimple.c.
1259 (compare_case_labels, sort_case_labels,
1260 preprocess_case_label_vec_for_gimple): Move to gimple.c.
1261 (rhs_predicate_for): Make static.
1262 (gimplify_assign): Relocate from gimple.c.
1263 * gimple.c (gimplify_assign): Move to gimplify.c.
1264 (gimple_seq_add_stmt_without_update, should_carry_location_p,
1265 annotate_one_with_location, annotate_all_with_location_after,
1266 annotate_all_with_location, compare_case_labels, sort_case_labels,
1267 preprocess_case_label_vec_for_gimple): Relocate from gimplify.c.
1268 * tree.h (unshare_expr, unshare_expr_without_location,
1269 mark_addressable): Move prototypes to gimplify.h.
1270 * Makefile.in (GTFILES): gimple-expr.c now has the GTY tag for
1272 * asan.c: Include gimplify.h rather than gimple.h.
1273 * cfgloopmanip.c: Likewise.
1274 * cgraphunit.c: Likewise.
1275 * cilk-common.c: Likewise.
1276 * dwarf2out.c: Dont include gimple.h.
1277 * fold-const.c: Include gimplify.h rather than gimple.h.
1278 * function.c: Likewise.
1279 * gimple-fold.c: Likewise.
1280 * gimple-ssa-strength-reduction.c: Likewise.
1281 * graphite-clast-to-gimple.c: Likewise.
1282 * graphite-sese-to-poly.c: Likewise.
1283 * ipa-prop.c: Likewise.
1284 * ipa-split.c: Likewise.
1286 * langhooks.c: Dont include gimple.h.
1287 * loop-init.c: Include gimplify.h rather than gimple.h.
1288 * omp-low.c: Likewise.
1290 * stor-layout.c: Likewise.
1291 * targhooks.c: Likewise.
1292 * trans-mem.c: Likewise.
1293 * tree-affine.c: Likewise.
1294 * tree-cfg.c: Likewise.
1295 * tree-cfgcleanup.c: Likewise.
1296 * tree-complex.c: Likewise.
1297 * tree-if-conv.c: Likewise.
1298 * tree-inline.c: Likewise.
1299 * tree-iterator.c: Likewise.
1300 * tree-loop-distribution.c: Likewise.
1301 * tree-nested.c: Likewise.
1302 * tree-parloops.c: Likewise.
1303 * tree-predcom.c: Likewise.
1304 * tree-profile.c: Likewise.
1305 * tree-scalar-evolution.c: Likewise.
1306 * tree-sra.c: Likewise.
1307 * tree-ssa-address.c: Likewise.
1308 * tree-ssa-ccp.c: Likewise.
1309 * tree-ssa-dce.c: Likewise.
1310 * tree-ssa-forwprop.c: Likewise.
1311 * tree-ssa-ifcombine.c: Likewise.
1312 * tree-ssa-loop-im.c: Likewise.
1313 * tree-ssa-loop-ivopts.c: Likewise.
1314 * tree-ssa-loop-manip.c: Likewise.
1315 * tree-ssa-loop-niter.c: Likewise.
1316 * tree-ssa-loop-prefetch.c: Likewise.
1317 * tree-ssa-loop-unswitch.c: Likewise.
1318 * tree-ssa-math-opts.c: Likewise.
1319 * tree-ssa-phiopt.c: Likewise.
1320 * tree-ssa-phiprop.c: Likewise.
1321 * tree-ssa-pre.c: Likewise.
1322 * tree-ssa-propagate.c: Likewise.
1323 * tree-ssa-reassoc.c: Likewise.
1324 * tree-ssa-sccvn.c: Likewise.
1325 * tree-ssa-strlen.c: Likewise.
1326 * tree-ssa.c: Likewise.
1327 * tree-switch-conversio: Likewise.n.c
1328 * tree-tailcall.c: Likewise.
1329 * tree-vect-data-refs.c: Likewise.
1330 * tree-vect-generic.c: Likewise.
1331 * tree-vect-loop-manip.c: Likewise.
1332 * tree-vect-loop.c: Likewise.
1333 * tree-vect-patterns.c: Likewise.
1334 * tree-vect-stmts.c: Likewise.
1336 * value-prof.c: Likewise.
1337 * config/aarch64/aarch64.c: Include gimplify.h instead of gimple.h.
1338 * config/alpha/alpha.c: Likewise.
1339 * config/darwin.c: Likewise.
1340 * config/i386/i386.c: Likewise.
1341 * config/ia64/ia64.c: Likewise.
1342 * config/mep/mep.c: Likewise.
1343 * config/mips/mips.c: Likewise.
1344 * config/rs6000/rs6000.c: Likewise.
1345 * config/s390/s390.c: Likewise.
1346 * config/sh/sh.c: Likewise.
1347 * config/sparc/sparc.c: Likewise.
1348 * config/spu/spu.c: Likewise.
1349 * config/stormy16/stormy16.c: Likewise.
1350 * config/tilegx/tilegx.c: Likewise.
1351 * config/tilepro/tilepro.c: Likewise.
1352 * config/xtensa/xtensa.c: Likewise.
1354 2013-11-12 Adam Butcher <adam@jessamine.co.uk>
1356 * tree.c (grow_tree_vec_stat): New function ...
1357 * tree.h (grow_tree_vec_stat) (grow_tree_vec): ... and its declaration
1358 and macro front-end.
1360 2013-11-12 Marek Polacek <polacek@redhat.com>
1362 * final.c (update_alignments): Initialize label to NULL_RTX.
1364 2013-11-12 Jeff Law <law@redhat.com>
1366 * gimple-ssa-isolate-paths.c (check_loadstore): New function.
1367 (insert_trap_and_remove_trailing_statements): New argument OP which
1368 is the NULL pointer. Emit the trap after the load/store through
1369 the NULL pointer. Simplify the RHS of a store through a NULL pointer
1370 when trivial to do so.
1371 (isolate_path): Corresponding changes.
1372 (gimple_ssa_isolate_erroneous_path): Likewise.
1374 2013-11-12 Teresa Johnson <tejohnson@google.com>
1375 Jan Hubicka <jh@suse.cz>
1377 * predict.c (drop_profile): New function.
1378 (handle_missing_profiles): Ditto.
1379 (counts_to_freqs): Don't overwrite estimated frequencies
1380 when function has no profile counts.
1381 * predict.h (handle_missing_profiles): Declare.
1382 * tree-inline.c (freqs_to_counts): New function.
1383 (copy_cfg_body): Invoke freqs_to_counts as needed.
1384 * tree-profile.c (tree_profiling): Invoke handle_missing_profiles.
1386 2013-11-12 H.J. Lu <hongjiu.lu@intel.com>
1389 * config/i386/x86-tune.def (X86_TUNE_SSE_UNALIGNED_LOAD_OPTIMAL):
1391 (X86_TUNE_SSE_UNALIGNED_STORE_OPTIMAL): Set for m_HASWELL.
1393 2013-11-12 H.J. Lu <hongjiu.lu@intel.com>
1396 * config/i386/i386.c (ix86_option_override_internal): Check
1397 X86_TUNE_AVX256_UNALIGNED_LOAD_OPTIMAL and
1398 X86_TUNE_AVX256_UNALIGNED_STORE_OPTIMAL for
1399 MASK_AVX256_SPLIT_UNALIGNED_LOAD and
1400 MASK_AVX256_SPLIT_UNALIGNED_STORE.
1402 * config/i386/x86-tune.def (X86_TUNE_AVX256_UNALIGNED_LOAD_OPTIMAL):
1403 Clear m_COREI7_AVX and update comments.
1404 (X86_TUNE_AVX256_UNALIGNED_STORE_OPTIMAL): Likewise.
1406 2013-11-12 Martin Jambor <mjambor@suse.cz>
1408 PR rtl-optimization/10474
1409 * ira.c (interesting_dest_for_shprep): New function.
1410 (split_live_ranges_for_shrink_wrap): Likewise.
1411 (find_moveable_pseudos): Move calculation of dominance info,
1412 df_analysios and the final anlyses to...
1413 (ira): ...here, call split_live_ranges_for_shrink_wrap.
1415 2013-11-12 Bin Cheng <bin.cheng@arm.com>
1417 * tree-ssa-loop-ivopts.c (force_expr_to_var_cost): Refactor the code.
1418 Handle type conversion.
1420 2013-11-11 Martin Liska <marxin.liska@gmail.com>
1421 Jan Hubicka <jh@suse.cz>
1423 * cgraph.c (dump_cgraph_node): Profile dump added.
1424 * cgraph.h (struct cgraph_node): New time profile variable added.
1425 * cgraphclones.c (cgraph_clone_node): Time profile is cloned.
1426 * gcov-io.h (gcov_type): New profiler type introduced.
1427 * ipa-profile.c (lto_output_node): Streaming for time profile added.
1428 (input_node): Time profiler is read from LTO stream.
1429 * predict.c (maybe_hot_count_p): Hot prediction changed.
1430 * profile.c (instrument_values): New case for time profiler added.
1431 (compute_value_histograms): Read of time profile.
1432 * tree-pretty-print.c (dump_function_header): Time profiler is dumped.
1433 * tree-profile.c (init_ic_make_global_vars): Time profiler
1435 (gimple_init_edge_profiler): TP function instrumentation.
1436 (gimple_gen_time_profiler): New.
1437 * value-prof.c (gimple_add_histogram_value): Support for time profiler
1439 (dump_histogram_value): TP type added to dumps.
1440 (visit_hist): More sensitive check that takes TP into account.
1441 (gimple_find_values_to_profile): TP instrumentation.
1442 * value-prof.h (hist_type): New histogram type added.
1443 (struct histogram_value_t): Pointer to struct function added.
1444 * libgcc/Makefile.in: New GCOV merge function for TP added.
1445 * libgcov.c: function_counter variable introduced.
1446 (_gcov_merge_time_profile): New.
1447 (_gcov_time_profiler): New.
1449 2013-11-11 Marc Glisse <marc.glisse@inria.fr>
1450 Jeff Law <law@redhat.com>
1452 * tree-ssa-alias.c (stmt_kills_ref_p_1): Use
1453 ao_ref_init_from_ptr_and_size for builtins.
1455 2013-11-11 Uros Bizjak <ubizjak@gmail.com>
1456 H.J. Lu <hongjiu.lu@intel.com>
1459 * config/i386/x86-tune.def
1460 (X86_TUNE_MISALIGNED_MOVE_STRING_PRO_EPILOGUES): Rename from
1461 TARGET_MISALIGNED_MOVE_STRING_PROLOGUES.
1462 * config/i386/i386.h
1463 (TARGET_MISALIGNED_MOVE_STRING_PRO_EPILOGUES): Rename from
1464 TARGET_MISALIGNED_MOVE_STRING_PROLOGUES_EPILOGUES. Update for renamed
1465 X86_TUNE_MISALIGNED_MOVE_STRING_PRO_EPILOGUES.
1466 * config/i386/i386.c (ix86_expand_set_or_movmem): Use
1467 TARGET_MISALIGNED_MOVE_STRING_PRO_EPILOGUES to calculate
1468 misaligned_prologue_used. Check that
1469 desired_aling <= epilogue_size_needed.
1471 2013-11-11 Cong Hou <congh@google.com>
1473 PR tree-optimization/59050
1474 * tree-vect-data-refs.c (comp_dr_addr_with_seg_len_pair): Bug fix.
1476 2013-11-11 Joern Rennecke <joern.rennecke@embecosm.com>
1479 * expmed.c (emit_store_flag): Fail for const-const comparison.
1481 2013-11-11 Tristan Gingold <gingold@adacore.com>
1482 Eric Botcazou <ebotcazou@adacore.com>
1484 * tree.h (CONSTRUCTOR_NO_CLEARING): Define.
1485 * tree-core.h (CONSTRUCTOR_NO_CLEARING): Document it.
1486 * tree.def (CONSTRUCTOR): Likewise.
1487 * doc/generic.texi (CONSTRUCTOR): Likewise. Update description.
1488 * gimplify.c (gimplify_init_constructor): Do not clear the object when
1489 the constructor is incomplete and CONSTRUCTOR_NO_CLEARING is set.
1491 2013-11-11 Basile Starynkevitch <basile@starynkevitch.net>
1493 * toplev.c (toplev_main): Move PLUGIN_FINISH invocation before
1496 2013-11-11 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
1498 * config/arm/arm.c (arm_new_rtx_costs): Return after handling
1501 2013-11-11 Joern Rennecke <joern.rennecke@embecosm.com>
1503 * config/arc/arc.h (LOGICAL_OP_NON_SHORT_CIRCUIT): Define.
1505 2013-11-08 Jeff Law <law@redhat.com>
1507 * tree-ssa-threadupdate.c (mark_threaded_blocks): Truncate jump
1508 threading paths first, then perform PHI node checks if applicable.
1510 2013-11-10 Karlson2k <k2k@narod.ru>
1511 Kai Tietz <ktietz@redhat.com>
1514 * configure.ac: Adding for exported symbols check
1515 and for rdynamic-check executable-extension.
1516 * configure: Regenerated.
1518 2013-11-10 Uros Bizjak <ubizjak@gmail.com>
1520 * mode-switching.c (optimize_mode_switching): Mark block as
1521 nontransparent, if last_mode at block exit is different from no_mode.
1523 2013-11-09 Jan-Benedict Glaw <jbglaw@lug-owl.de>
1525 * function.c (NAME__MAIN): Move to...
1526 * cfgexpand.c (NAME__MAIN): ...here.
1528 2013-11-09 Richard Sandiford <rdsandiford@googlemail.com>
1530 * target.def (can_use_doloop_p): New hook.
1531 * doc/tm.texi.in (TARGET_CAN_USE_DOLOOP_P): Add.
1532 * doc/tm.texi: Regenerate.
1533 * doc/md.texi (doloop_begin, doloop_end): Update documentation.
1534 * hooks.h (hook_bool_dint_dint_uint_true): Declare.
1535 * hooks.c (hook_bool_dint_dint_uint_true): New function.
1536 * targhooks.h (can_use_doloop_if_innermost): Declare.
1537 * targhooks.c (can_use_doloop_if_innermost): New function.
1538 * target.h: Include double-int.h.
1539 * loop-doloop.c (doloop_optimize): Call targetm.can_use_doloop_p.
1540 Remove iteration count, maximum iteration count, loop depth and
1541 enter-at-top inputs from doloop_begin and doloop_end.
1542 * config/arc/arc.md (doloop_begin, doloop_end): Update for new
1544 * config/arc/arc.c (arc_can_use_doloop_p): New function.
1545 (TARGET_CAN_USE_DOLOOP_P): Define.
1546 * config/arm/thumb2.md (doloop_end): Update for new interface.
1547 * config/arm/arm.c (TARGET_CAN_USE_DOLOOP_P): Define.
1548 * config/bfin/bfin.md (doloop_end): Update for new interface.
1549 * config/bfin/bfin.c (bfin_can_use_doloop_p): New function.
1550 (TARGET_CAN_USE_DOLOOP_P): Define.
1551 * config/c6x/c6x.md (doloop_end): Update for new interface.
1552 * config/ia64/ia64.md (doloop_end): Update for new interface.
1553 * config/ia64/ia64.c (TARGET_CAN_USE_DOLOOP_P): Define.
1554 * config/mep/mep.md (doloop_begin, doloop_end): Update for new
1556 * config/mep/mep.c (mep_emit_doloop): Likewise.
1557 (TARGET_CAN_USE_DOLOOP_P): Define.
1558 * config/rs6000/rs6000.md (doloop_end): Update for new interface.
1559 * config/rs6000/rs6000.c (TARGET_CAN_USE_DOLOOP_P): Define.
1560 * config/s390/s390.md (doloop_end): Update for new interface.
1561 * config/sh/sh.md (doloop_end): Likewise.
1562 * config/spu/spu.md (doloop_end): Likewise.
1563 * config/spu/spu.c (TARGET_CAN_USE_DOLOOP_P): Define.
1564 * config/tilegx/tilegx.md (doloop_end): Update for new interface.
1565 * config/tilegx/tilegx.c (TARGET_CAN_USE_DOLOOP_P): Define.
1566 * config/tilepro/tilepro.md (doloop_end): Update for new interface.
1567 * config/tilepro/tilepro.c (TARGET_CAN_USE_DOLOOP_P): Define.
1568 * config/v850/v850.md (doloop_begin, doloop_end): Update for new
1570 * config/v850/v850.c (TARGET_CAN_USE_DOLOOP_P): Define.
1572 2013-11-08 H.J. Lu <hongjiu.lu@intel.com>
1575 * doc/extend.texi: Move Cilk Plus Builtins node before Other
1578 2013-11-08 Andrew MacLeod <amacleod@redhat.com>
1579 Joseph Myers <joseph@codesourcery.com>
1581 * ginclude/stdatomic.h: New file.
1582 * Makefile.in (USER_H): Add stdatomic.h.
1584 2013-11-08 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
1586 * config/arm/arm.c (arm_new_rtx_costs): Break after handling
1589 2013-11-08 Jeff Law <law@redhat.com>
1591 * tree-ssa-threadupdate.h (delete_thread_path): Declare.
1592 * tree-ssa-threadupdate.c (delete_thread_path): New function.
1593 (ssa_redirect_edges, thread_block_1): Use it.
1594 (thread_through_loop_header, mark_threaded_blocks): Likewise.
1595 (thread_through_all_blocks, register_jump_thread): Likewise.
1596 * tree-ssa-threadedge.c (thread_across_edge): Likewise.
1598 2013-11-08 James Greenhalgh <james.greenhalgh@arm.com>
1600 * config/arm/aarch-common.c
1601 (search_term): New typedef.
1602 (shift_rtx_costs): New array.
1603 (arm_rtx_shift_left_p): New.
1604 (arm_find_sub_rtx_with_search_term): Likewise.
1605 (arm_find_sub_rtx_with_code): Likewise.
1606 (arm_early_load_addr_dep): Add sanity checking.
1607 (arm_no_early_alu_shift_dep): Likewise.
1608 (arm_no_early_alu_shift_value_dep): Likewise.
1609 (arm_no_early_mul_dep): Likewise.
1610 (arm_no_early_store_addr_dep): Likewise.
1612 2013-11-08 Richard Biener <rguenther@suse.de>
1614 PR tree-optimization/59047
1615 * tree-predcom.c (ref_at_iteration): Handle bitfield accesses properly.
1617 2013-11-08 Ilya Enkovich <ilya.enkovich@intel.com>
1619 * common.opt (fcheck-pointer-bounds): Move to ...
1620 * c-family/c.opt: ... here.
1621 * langhooks-def.h (LANG_HOOKS_CHKP_SUPPORTED): Remove.
1622 (LANG_HOOKS_INITIALIZER): Remove LANG_HOOKS_CHKP_SUPPORTED.
1623 * langhooks.h (lang_hooks): Remove chkp_supported field.
1624 * toplev.c (process_options): Remove chkp_supported check.
1626 2013-11-08 Richard Biener <rguenther@suse.de>
1628 PR tree-optimization/59038
1629 PR tree-optimization/58955
1630 * tree-loop-distribution.c (pg_add_dependence_edges): Revert
1631 previous change. Handle known dependences correctly.
1633 2013-11-08 Tom de Vries <tom@codesourcery.com>
1635 * config/rs6000/t-xilinx: Remove duplicate contents.
1637 2013-11-07 Andrew MacLeod <amacleod@redhat.com>
1638 Joseph Myers <joseph@codesourcery.com>
1640 * tree-core.h (enum cv_qualifier): Add TYPE_QUAL_ATOMIC.
1641 (enum tree_index): Add TI_ATOMICQI_TYPE, TI_ATOMICHI_TYPE,
1642 TI_ATOMICSI_TYPE, TI_ATOMICDI_TYPE and TI_ATOMICTI_TYPE.
1643 (struct tree_base): Add atomic_flag field.
1644 * tree.h (TYPE_ATOMIC): New accessor macro.
1645 (TYPE_QUALS, TYPE_QUALS_NO_ADDR_SPACE): Add TYPE_QUAL_ATOMIC.
1646 (TYPE_QUALS_NO_ADDR_SPACE_NO_ATOMIC): New macro.
1647 (atomicQI_type_node, atomicHI_type_node, atomicSI_type_node)
1648 (atomicDI_type_node, atomicTI_type_node): New macros for type nodes.
1649 * tree.c (set_type_quals): Set TYPE_ATOMIC.
1650 (find_atomic_core_type): New function.
1651 (build_qualified_type): Adjust alignment for qualified types.
1652 (build_atomic_base): New function
1653 (build_common_tree_nodes): Build atomicQI_type_node,
1654 atomicHI_type_node, atomicSI_type_node, atomicDI_type_node and
1656 * print-tree.c (print_node): Print atomic qualifier.
1657 * tree-pretty-print.c (dump_generic_node): Print atomic type attribute.
1658 * target.def (atomic_assign_expand_fenv): New hook.
1659 * doc/tm.texi.in (TARGET_ATOMIC_ASSIGN_EXPAND_FENV): New @hook.
1660 * doc/tm.texi: Regenerate.
1661 * targhooks.c (default_atomic_assign_expand_fenv): New function.
1662 * targhooks.h (default_atomic_assign_expand_fenv): Declare.
1663 * sync-builtins.def (__atomic_feraiseexcept): New built-in function.
1664 * config/i386/i386-builtin-types.def (VOID_FTYPE_PUSHORT): New
1666 * config/i386/i386.c (enum ix86_builtins): Add
1667 IX86_BUILTIN_FNSTENV, IX86_BUILTIN_FLDENV, IX86_BUILTIN_FNSTSW and
1668 IX86_BUILTIN_FNCLEX.
1669 (bdesc_special_args): Add __builtin_ia32_fnstenv,
1670 __builtin_ia32_fldenv, __builtin_ia32_fnstsw and __builtin_ia32_fnclex.
1671 (ix86_expand_builtin): Handle the new built-in functions.
1672 (ix86_atomic_assign_expand_fenv): New function.
1673 (TARGET_ATOMIC_ASSIGN_EXPAND_FENV): New macro.
1674 * config/i386/i386.md (UNSPECV_FNSTENV, UNSPECV_FLDENV)
1675 (UNSPECV_FNSTSW, UNSPECV_FNCLEX): New unspecs.
1676 (fnstenv, fldenv, fnstsw, fnclex): New insns.
1678 2013-11-07 Steve Ellcey <sellcey@mips.com>
1680 * config/mips/mti-linux.h (SYSROOT_SUFFIX_SPEC): Add fp64 directory.
1681 * config/mips/t-mti-linux (MULTILIB_OPTIONS): Add -mfp64 flag.
1682 (MULTILIB_DIRNAMES): Add fp64 directory.
1683 (MULTILIB_EXCEPTIONS): Add new exclusions.
1685 2013-11-07 Aldy Hernandez <aldyh@redhat.com>
1687 * gimplify.c (gimple_regimplify_operands): Do not set
1689 * graphite-sese-to-poly.c (remove_simple_copy_phi): Same.
1690 (rewrite_close_phi_out_of_ssa): Same.
1691 (rewrite_phi_out_of_ssa): Same.
1692 (rewrite_degenerate_phi): Same.
1693 (handle_scalar_deps_crossing_scop_limits): Same.
1694 * tree-if-conv.c (predicate_scalar_phi): Same.
1695 * tree-parloops.c (create_loads_for_reductions): Same.
1696 (create_final_loads_for_reduction): Same.
1697 (create_loads_and_stores_for_name): Same.
1698 (transform_to_exit_first_loop): Same.
1699 (create_parallel_loop): Same.
1700 * tree-ssa-loop-im.c
1701 (move_computations_dom_walker::before_dom_children): Same.
1702 * tree-ssa-loop-manip.c (rewrite_phi_with_iv): Same.
1703 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children): Same.
1704 * tree-ssa-propagate.c (substitute_and_fold): Same.
1705 * tree-vect-loop.c (vect_finalize_reduction): Same.
1706 * tree-vect-stmts.c (vectorizable_call): Same.
1708 2013-11-07 Mike Stump <mikestump@comcast.net>
1710 * config/pdp11/pdp11.c: Include dbxout.h.
1711 * config/picochip/picochip.c: Likewise.
1713 2013-11-07 Cong Hou <congh@google.com>
1715 PR tree-optimization/56764
1716 * tree-vect-loop-manip.c (vect_create_cond_for_alias_checks):
1717 Combine alias checks if it is possible to amortize the runtime
1718 overhead. Return the number of alias checks after merging.
1719 * tree-vect-data-refs.c (vect_prune_runtime_alias_test_list):
1720 Use the function vect_create_cond_for_alias_checks () to check
1721 the number of alias checks.
1723 2013-11-07 Jeff Law <law@redhat.com>
1725 * varpool.c (ctor_for_folding): Fix typo in comment.
1727 2013-11-07 Joern Rennecke <joern.rennecke@embecosm.com>
1729 * config/arc/arc.c (arc_ifcvt): Use commutativity, e.g.:
1730 reg_a := reg_b + reg_a ==> reg_a := reg_a + reg_b
1732 2013-11-07 Jeff Law <law@redhat.com>
1734 * doc/invoke.texi (-fisolate-erroneous-paths): Document.
1736 * gimple-ssa-isolate-paths.c (gate_isolate_erroneous_paths):
1737 No longer check if we have __builtin_trap, assume it's available.
1739 2013-11-07 Diego Novillo <dnovillo@google.com>
1741 * attribs.c (lookup_scoped_attribute_spec): Make static.
1742 (get_attribute_namespace): Likewise.
1743 * builtins.c (more_const_call_expr_args_p): Move from tree.h.
1744 (validate_arglist): Move earlier in the file. Make static.
1745 (expand_stack_restore): Move from stmt.c
1746 (expand_stack_save): Move from stmt.c
1747 (rewrite_call_expr_array): Move earlier in the file.
1748 (rewrite_call_expr_valist): Likewise.
1749 * cfgexpand.c: Include hard-reg-set.h before tree.h
1752 (expand_asm_loc): Move from stmt.c.
1753 (n_occurrences): Move from stmt.c.
1754 (check_operand_nalternatives): Move from stmt.c.
1755 (tree_conflicts_with_clobbers_p): Move from stmt.c.
1756 (expand_asm_operands): Move from stmt.c
1757 (expand_asm_stmt): Move from stmt.c
1758 (expand_computed_goto): Move from stmt.c
1759 (expand_goto): Move from stmt.c
1760 (expand_null_return_1): Move from stmt.c
1761 (expand_null_return): Move from stmt.c
1762 (expand_value_return): Move from stmt.c
1763 (expand_return): Move from stmt.c
1764 (expand_main_function): Move from function.c
1765 (stack_protect_prologue): Move from function.c
1766 * cgraphclones.c (build_function_type_skip_args): Move from tree.c.
1767 (build_function_decl_skip_args): Move from tree.c.
1768 * explow.c (tree_expr_size): Move from tree.c.
1769 * expr.c (addr_expr_of_non_mem_decl_p): Remove.
1770 (fields_length): Move from tree.c.
1771 * fold-const.c (size_low_cst): Move from tree.c.
1772 (tree_expr_nonzero_warnv_p): Make static. Move earlier in the file.
1773 (tree_expr_nonzero_p): Make static. Move earlier in the file.
1774 (fold_build3_initializer_loc): Remove.
1775 (tree_invalid_nonnegative_warnv_p): Make static.
1776 * function.c (expand_main_function): Move to cfgexpand.c.
1777 (stack_protect_prologue): Move to cfgexpand.c.
1778 (set_insn_locations): Move earlier in the file.
1779 * gimple-fold.c: Include langhooks.h.
1780 (truth_type_for): Move from tree.c.
1781 * print-tree.c (print_vec_tree): Remove.
1782 * stmt.c (expand_computed_goto): Move to cfgexpand.c.
1783 (expand_goto): Move to cfgexpand.c.
1784 (n_occurrences): Move to cfgexpand.c.
1785 (expand_asm_loc): Move to cfgexpand.c
1786 (tree_conflicts_with_clobbers_p): Move to cfgexpand.c.
1787 (expand_asm_operands): Move to cfgexpand.c.
1788 (expand_asm_stmt): Move to cfgexpand.c.
1789 (check_operand_nalternatives): Move to cfgexpand.c
1790 (expand_null_return): Move to cfgexpand.c.
1791 (expand_value_return): Move to cfgexpand.c.
1792 (expand_null_return_1): Move to cfgexpand.c.
1793 (expand_return): Move to cfgexpand.c.
1794 (expand_stack_save): Move to builtins.c.
1795 (expand_stack_restore): Move to builtins.c
1796 * symtab.c: Include output.h.
1797 (decl_assembler_name_hash): Move from tree.c.
1798 (decl_assembler_name_equal): Move from tree.c.
1799 * trans-mem.c (is_tm_safe_or_pure): Move from tree.h.
1800 * tree-eh.c (in_array_bounds_p): Move from tree.c.
1801 (range_in_array_bounds_p): Move from tree.c.
1802 * tree-object-size.c (fini_object_sizes): Make static.
1803 * tree-ssa-dom.c (iterative_hash_exprs_commutative): Move from tree.h.
1804 * tree-vrp.c (ssa_name_nonnegative_p): Remove.
1805 * tree.c (decl_assembler_name_equal): Move to symtab.c.
1806 (tree_expr_size): Move to explow.c.
1807 (decl_assembler_name_hash): Move to symtab.c.
1808 (real_twop): Remove.
1809 (tree_expr_size): Move to explow.c.
1810 (stabilize_reference_1): Move earlier in the file. Make static.
1811 (omp_remove_redundant_declare_simd_attrs): Remove.
1812 (simple_cst_list_equal): Move earlier in the file. Make static.
1813 (size_low_cst): Move to fold-const.c.
1814 (build_type_no_quals): Remove.
1815 (build_function_type_skip_args): Move to cgraphclones.c.
1816 (build_function_decl_skip_args): Move to cgraphclones.c.
1817 (in_array_bounds_p): Move to tree-eh.c.
1818 (range_in_array_bounds_p): Move to tree-eh.c.
1819 (truth_type_for): Move to gimple-fold.c.
1820 (list_equal_p): Remove.
1821 * tree.h (decl_assembler_name_equal): Remove.
1822 (decl_assembler_name_hash): Remove.
1823 (truth_type_for): Remove.
1824 (build_type_no_quals): Remove.
1825 (build_function_decl_skip_args): Remove.
1826 (in_array_bounds_p): Remove.
1827 (range_in_array_bounds_p): Remove.
1828 (size_low_cst): Remove.
1829 (omp_remove_redundant_declare_simd_attrs): Remove.
1830 (tree_expr_size): Remove.
1831 (fields_length): Remove.
1832 (stabilize_reference_1): Remove.
1833 (expand_goto): Remove.
1834 (expand_stack_save): Remove.
1835 (expand_stack_restore): Remove.
1836 (expand_return): Remove.
1837 (fold_build3_initializer_loc): Remove.
1838 (tree_expr_nonzero_p): Remove.
1839 (tree_invalid_nonnegative_warnv_p): Remove.
1840 (tree_expr_nonzero_warnv_p): Remove.
1841 (fold_builtin_snprintf_chk): Remove.
1842 (validate_arglist): Remove.
1843 (iterative_hash_exprs_commutative): Move to tree-ssa-dom.c.
1844 (simple_cst_list_equal): Remove.
1845 (real_twop): Remove.
1846 (expand_main_function): Remove.
1847 (stack_protect_prologue): Remove.
1848 (print_vec_tree): Remove.
1849 (lookup_scoped_attribute_spec): Remove.
1850 (get_attribute_namespace): Remove.
1851 (expand_computed_goto): Remove.
1852 (expand_asm_stmt): Remove.
1853 (list_equal_p): Remove.
1854 (ssa_name_nonnegative_p): Remove.
1855 (fini_object_sizes): Remove.
1856 (addr_expr_of_non_mem_decl_p): Remove.
1857 (is_tm_safe_or_pure): Move to trans-mem.c.
1858 (more_const_call_expr_args_p): Remove.
1859 (save_vtable_map_decl): Remove.
1861 2013-11-07 Thomas Schwinge <thomas@codesourcery.com>
1863 * doc/sourcebuild.texi (Top Level) <lto-plugin>: GNU ld can use
1864 linker plugins, too.
1866 * config/arc/arc.h (LINK_COMMAND_SPEC): For -ftree-parallelize-loops=*,
1867 link to libgomp and its dependencies.
1868 * config/ia64/hpux.h (LIB_SPEC): Likewise.
1869 * config/pa/pa-hpux11.h (LIB_SPEC): Likewise.
1870 * config/pa/pa64-hpux.h (LIB_SPEC): Likewise.
1871 * gcc.c (GOMP_SELF_SPECS): Update comment about libgomp's dependencies.
1873 2013-11-07 Jakub Jelinek <jakub@redhat.com>
1875 * tree-ssa-loop-niter.c: Include tree-ssanames.h.
1876 (determine_value_range): Add loop argument. Use get_range_info to
1878 (bound_difference): Adjust caller.
1880 2013-11-07 Richard Biener <rguenther@suse.de>
1881 Jakub Jelinek <jakub@redhat.com>
1883 * tree-vrp.c (find_assert_locations): Pre-seed live bitmaps for loop
1884 latches from header PHI arguments from the latch edge.
1886 2013-11-07 Paolo Carlini <paolo.carlini@oracle.com>
1889 * varasm.c (output_constant): Handle NULLPTR_TYPE.
1891 2013-11-07 H.J. Lu <hongjiu.lu@intel.com>
1893 * config/i386/i386.c (ix86_expand_set_or_movmem): Don't set
1894 misaligned_prologue_used when it has been set.
1896 2013-11-07 Yury Gribov <y.gribov@samsung.com>
1897 Jakub Jelinek <jakub@redhat.com>
1900 * asan.c (get_mem_refs_of_builtin_call): Allow
1901 integer literals as addresses in instrumented builtins.
1903 2013-11-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
1905 * config/aarch64/aarch64.c (aarch64_legitimize_reload_address):
1906 Explain why plus_constant is not used.
1908 2013-11-07 Richard Biener <rguenther@suse.de>
1910 * tree-ssa-ccp.c (canonicalize_float_value): Rename to ...
1911 (canonicalize_value): ... this. Also handle stripping of
1913 (get_value, set_lattice_value, get_value_for_expr): Adjust.
1914 * gimple-fold.c (canonicalize_constructor_val): Strip TREE_OVERFLOW.
1915 * tree-ssa-threadedge.c (set_ssa_name_value): Likewise.
1917 2013-11-07 Richard Biener <rguenther@suse.de>
1919 * tree-dfa.c (get_ref_base_and_extent): Fix casting.
1921 2013-11-07 H.J. Lu <hongjiu.lu@intel.com>
1924 * config/i386/i386.md (push peepholer/splitter): Use Pmode
1925 with stack_pointer_rtx.
1927 2013-11-07 Bin Cheng <bin.cheng@arm.com>
1929 * tree-ssa-loop-ivopts.c (get_shiftadd_cost): Check equality
1930 using operand_equal_p.
1932 2013-11-07 Bin Cheng <bin.cheng@arm.com>
1934 * tree-ssa-loop-ivopts.c (alloc_iv): Lower address expressions.
1935 * tree-affine.c (get_inner_reference_aff): Return base.
1936 * tree-affine.h (get_inner_reference_aff): Change prototype.
1938 2013-11-06 Tobias Burnus <burnus@net-b.de>
1940 * doc/invoke.texi (Wdate-time): Fix typo.
1942 2013-11-06 Oleg Endo <olegendo@gcc.gnu.org>
1944 * config/sh/sh.md (addsf3, divsf3, divsf3_i, rsqrtsf2, cmpgtdf_t,
1945 cmpeqdf_t, *ieee_ccmpeqdf_t, negdf2, sqrtdf2, absdf2): Use
1946 fp_arith_reg_operand instead of arith_reg_operand.
1948 2013-11-06 Oleg Endo <olegendo@gcc.gnu.org>
1950 * config/sh/sh.md (adddi3): Remove empty constraints.
1951 Remove can_create_pseudo_p and arith_reg_operand check.
1952 (adddi3_compact, subdi3_compact, *negdi2): Remove constraints.
1953 Split before reload.
1955 2013-11-06 Jeff Law <law@redhat.com>
1956 Tom Tromey <tromey@redhat.com>
1958 * gdbinit.in: Disable strict type checking.
1960 2013-11-06 Vladimir Makarov <vmakarov@redhat.com>
1962 * tree-pass.h (make_pass_live_range_shrinkage): New external.
1963 * timevar.def (TV_LIVE_RANGE_SHRINKAGE): New.
1964 * sched-rgn.c (gate_handle_live_range_shrinkage): New.
1965 (rest_of_handle_live_range_shrinkage): Ditto
1966 (class pass_live_range_shrinkage): Ditto.
1967 (pass_data_live_range_shrinkage): Ditto.
1968 (make_pass_live_range_shrinkage): Ditto.
1969 * sched-int.h (initialize_live_range_shrinkage): New prototype.
1970 (finish_live_range_shrinkage): Ditto.
1971 * sched-deps.c (create_insn_reg_set): Make void return value.
1972 * passes.def: Add pass_live_range_shrinkage.
1973 * ira.c (update_equiv_regs): Don't move if flag_live_range_shrinkage.
1974 * haifa-sched.c (live_range_shrinkage_p): New.
1975 (initialize_live_range_shrinkage, finish_live_range_shrinkage):
1977 (rank_for_schedule): Add code for pressure relief through live
1979 (schedule_insn): Print more debug info.
1980 (sched_init): Setup SCHED_PRESSURE_WEIGHTED for pressure relief
1981 through live range shrinkage.
1982 * doc/invoke.texi (-flive-range-shrinkage): New.
1983 * common.opt (flive-range-shrinkage): New.
1985 2013-11-06 Uros Bizjak <ubizjak@gmail.com>
1988 * config/i386/i386.c (ix86_avx_u128_mode_needed): Require
1989 AVX_U128_DIRTY mode for call_insn RTXes that use AVX256 registers.
1990 (ix86_avx_u128_mode_needed): Return AVX_U128_DIRTY mode for call_insn
1991 RTXes that return in AVX256 register.
1993 2013-11-06 Richard Biener <rguenther@suse.de>
1995 PR tree-optimization/58653
1996 * tree-predcom.c (ref_at_iteration): Rewrite to generate a MEM_REF.
1997 (prepare_initializers_chain): Adjust.
1999 2013-11-06 Andrew MacLeod <amacleod@redhat.com>
2001 * gimple.h (block_in_transaction): Move to basic-block.h and rename.
2002 (gimple_in_transaction): Use bb_in_transaction.
2003 * basic-block.h (bb_in_transaction): Relocate here and rename.
2004 * tree-ssa-loop-im.c (execute_sm): Use bb_in_transaction.
2006 2013-11-06 Richard Biener <rguenther@suse.de>
2008 * tree.c (drop_tree_overflow): New function.
2009 * tree.h (drop_tree_overflow): Declare.
2010 * gimplify.c (gimplify_expr): Drop TREE_OVERFLOW.
2011 * tree-vrp.c (range_int_cst_singleton_p): Use
2012 is_overflow_infinity instead of testing TREE_OVERFLOW.
2013 (extract_range_from_assert): Likewise.
2014 (zero_nonzero_bits_from_vr): Likewise.
2015 (extract_range_basic): Likewise.
2016 (register_new_assert_for): Use drop_tree_overflow.
2017 (vrp_visit_phi_node): Likewise.
2019 2013-11-06 Eric Botcazou <ebotcazou@adacore.com>
2021 * config/i386/i386.c (ix86_expand_prologue): Optimize stack
2022 checking for leaf functions without dynamic stack allocation.
2023 * config/ia64/ia64.c (ia64_emit_probe_stack_range): Adjust.
2024 (ia64_expand_prologue): Likewise.
2025 * config/mips/mips.c (mips_expand_prologue): Likewise.
2026 * config/rs6000/rs6000.c (rs6000_emit_prologue): Likewise.
2027 * config/sparc/sparc.c (sparc_expand_prologue): Likewise.
2028 (sparc_flat_expand_prologue): Likewise.
2030 2013-11-06 James Greenhalgh <james.greenhalgh@arm.com>
2032 * config/aarch64/arm_neon.h (__ST2_LANE_FUNC): Better model data size.
2033 (__ST3_LANE_FUNC): Likewise.
2034 (__ST4_LANE_FUNC): Likewise.
2036 2013-11-06 Nick Clifton <nickc@redhat.com>
2038 * config/msp430/msp430.h (TARGET_CPU_CPP_BUILTINS): Define the
2039 name returned by msp430_mcu_name.
2040 (LIB_SPEC): If a -T option has not been specified then set a
2041 default, mcu-specific, linker script.
2042 * config/msp430/t-msp430 (MULTILIB_MATCHES): Add more mcu names.
2043 * config/msp430/msp430.c (msp430x_names): Likewise.
2044 Alpha sort the names for ease of comparison.
2045 (msp430_mcu_name): New function: Returns a string suitable for
2046 use as a C preprocessor symbol based upon the name of the MCU
2048 (msp430_option_override): Accept msp430x and msp430xv2 as generic
2050 * config/msp430/msp430-protos.h (msp430_mcu_name): Prototype.
2052 * gcc.c (do_spec_1): Do not insert a space after a %* substitution
2053 unless it is the last part of a spec substring.
2054 * doc/invoke.texi (Spec Files): Document space insertion
2057 2013-11-06 Christian Bruel <christian.bruel@st.com>
2059 * config/sh/sh-mem.cc (sh_expand_cmpnstr, sh_expand_cmpstr):
2060 Factorize probabilities, Use adjust_address instead of
2061 adjust_automodify_address when possible. Enable for optimize.
2062 (sh_expand_strlen): New function.
2063 * config/sh/sh-protos.h (sh_expand_strlen): Declare.
2064 * config/sh/sh.md (strlensi): New pattern.
2065 (UNSPEC_BUILTIN_STRLEN): Define.
2067 2013-11-06 Jakub Jelinek <jakub@redhat.com>
2070 * expr.c (get_bit_range): Handle *offset == NULL_TREE.
2071 (expand_assignment): If *bitpos is negative, set *offset
2072 and adjust *bitpos, so that it is not negative.
2074 2013-11-06 Ganesh Gopalasubramanian <Ganesh.Gopalasubramanian@amd.com>
2076 * config/i386/bdver3.md : Added two additional decoder units
2077 to support issue rate of 4 and remodeled vector unit.
2078 * config/i386/i386.c (ix86_issue_rate): Issue rate for BD
2079 architectures is set to 4.
2080 * config/i386/i386.c (ia32_multipass_dfa_lookahead): DFA
2081 lookahead is set to 4 for BD architectures.
2083 2013-11-05 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
2085 * config/rs6000/rs6000.c (rs6000_option_override_internal):
2086 Remove restriction against use of VSX instructions when generating
2087 code for little endian mode.
2089 2013-11-05 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
2091 * config/rs6000/altivec.md (mulv4si3): Ensure we generate vmulouh
2092 for both big and little endian.
2093 (mulv8hi3): Swap input operands for merge high and merge low
2094 instructions for little endian.
2096 2013-11-05 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
2098 * config/rs6000/altivec.md (vec_widen_umult_even_v16qi): Change
2099 define_insn to define_expand that uses even patterns for big
2100 endian and odd patterns for little endian.
2101 (vec_widen_smult_even_v16qi): Likewise.
2102 (vec_widen_umult_even_v8hi): Likewise.
2103 (vec_widen_smult_even_v8hi): Likewise.
2104 (vec_widen_umult_odd_v16qi): Likewise.
2105 (vec_widen_smult_odd_v16qi): Likewise.
2106 (vec_widen_umult_odd_v8hi): Likewise.
2107 (vec_widen_smult_odd_v8hi): Likewise.
2108 (altivec_vmuleub): New define_insn.
2109 (altivec_vmuloub): Likewise.
2110 (altivec_vmulesb): Likewise.
2111 (altivec_vmulosb): Likewise.
2112 (altivec_vmuleuh): Likewise.
2113 (altivec_vmulouh): Likewise.
2114 (altivec_vmulesh): Likewise.
2115 (altivec_vmulosh): Likewise.
2117 2013-11-05 Mike Stump <mikestump@comcast.net>
2119 * Makefile.in (mostlyclean): Remove c-family objects.
2121 2013-11-05 Ian Lance Taylor <iant@google.com>
2123 * config/i386/sync.md (atomic_compare_and_swap<dwi>_doubleword):
2124 If possible, add .cfi directives to record change to bx.
2125 * config/i386/i386.c (ix86_emit_cfi): New function.
2126 * config/i386/i386-protos.h (ix86_emit_cfi): Declare.
2128 2013-11-05 Steven Bosscher <steven@gcc.gnu.org>
2130 * rtlanal.c (tablejump_p): Expect a JUMP_TABLE_DATA to always follow
2131 immediately after a label for a tablejump pattern.
2133 * config/arm/arm.c (is_jump_table): Remove.
2134 (create_fix_barrier): Use tablejump_p instead.
2135 (arm_reorg): Likewise.
2136 (thumb1_output_casesi): Expect JUMP_TABLE_DATA to always be NEXT_INSN.
2137 (thumb2_output_casesi): Likewise.
2138 * config/aarch64/aarch64.c (aarch64_output_casesi): Likewise.
2139 * config/sh/sh.md (casesi_worker_1, casesi_worker_2,
2140 casesi_shift_media, casesi_load_media): Likewise.
2141 * config/iq2000/iq2000.md: Likewise (in anonymous define_insn).
2142 * config/microblaze/microblaze.md: Likewise.
2144 2013-11-05 Tobias Burnus <burnus@net-b.de>
2146 * doc/invoke.texi (-Wdate-time): Document.
2148 2013-11-05 Richard Sandiford <rdsandiford@googlemail.com>
2150 * double-int.c (lshift_double, rshift_double): Remove
2151 SHIFT_COUNT_TRUNCATED handling.
2153 2013-11-05 Jeff Law <law@redhat.com>
2155 * Makefile.in (OBJS): Add gimple-ssa-isolate-paths.o
2156 * common.opt (-fisolate-erroneous-paths): Add option and documentation.
2157 * gimple-ssa-isolate-paths.c: New file.
2158 * gimple.c (check_loadstore): New function.
2159 (infer_nonnull_range): Moved into gimple.c from tree-vrp.c
2160 Verify OP is in the argument list and the argument corresponding
2161 to OP is a pointer type. Use operand_equal_p rather than
2162 pointer equality when testing if OP is on the nonnull list.
2163 Use check_loadstore rather than count_ptr_derefs. Handle
2164 GIMPLE_RETURN statements.
2165 * tree-vrp.c (infer_nonnull_range): Remove.
2166 * gimple.h (infer_nonnull_range): Declare.
2167 * opts.c (default_options_table): Add OPT_fisolate_erroneous_paths.
2168 * passes.def: Add pass_isolate_erroneous_paths.
2169 * timevar.def (TV_ISOLATE_ERRONEOUS_PATHS): New timevar.
2170 * tree-pass.h (make_pass_isolate_erroneous_paths): Declare.
2171 * tree-ssa.c (struct count_ptr_d): Remove.
2172 (count_ptr_derefs, count_uses_and_derefs): Remove.
2173 * tree-ssa.h (count_uses_and_derefs): Remove.
2175 2013-11-05 Jakub Jelinek <jakub@redhat.com>
2177 PR rtl-optimization/58997
2178 * loop-iv.c (iv_subreg): For IV_UNKNOWN_EXTEND, expect
2179 get_iv_value to be in iv->mode rather than iv->extend_mode.
2180 (iv_extend): Likewise. Otherwise, if iv->extend != extend,
2181 use lowpart_subreg on get_iv_value before calling simplify_gen_unary.
2182 * loop-unswitch.c (may_unswitch_on): Make sure op[i] is in the right
2185 2013-11-05 Andrew MacLeod <amacleod@redhat.com>
2187 * gimple.h: Move some prototypes to gimple-expr.h and add to include
2189 (extract_ops_from_tree, gimple_call_addr_fndecl, is_gimple_reg_type):
2190 Move to gimple-expr.h.
2191 * gimple-expr.h: New file. Relocate some prototypes from gimple.h.
2192 (types_compatible_p, is_gimple_reg_type, is_gimple_variable,
2193 is_gimple_id, virtual_operand_p, is_gimple_addressable,
2194 is_gimple_constant, extract_ops_from_tree, gimple_call_addr_fndecl):
2196 * gimple.c (extract_ops_from_tree_1, gimple_cond_get_ops_from_tree,
2197 gimple_set_body, gimple_body, gimple_has_body_p, is_gimple_lvalue,
2198 is_gimple_condexpr, is_gimple_addressable, is_gimple_constant,
2199 is_gimple_address, is_gimple_invariant_address,
2200 is_gimple_ip_invariant_address, is_gimple_min_invariant,
2201 is_gimple_ip_invariant, is_gimple_variable, is_gimple_id,
2202 virtual_operand_p, is_gimple_reg, is_gimple_val, is_gimple_asm_val,
2203 is_gimple_min_lval, is_gimple_call_addr, is_gimple_mem_ref_addr,
2204 gimple_decl_printable_name, useless_type_conversion_p,
2205 types_compatible_p, gimple_can_coalesce_p, copy_var_decl): Move to
2207 * gimple-expr.c: New File.
2208 (useless_type_conversion_p, gimple_set_body, gimple_body,
2209 gimple_has_body_p, gimple_decl_printable_name, copy_var_decl,
2210 gimple_can_coalesce_p, extract_ops_from_tree_1,
2211 gimple_cond_get_ops_from_tree, is_gimple_lvalue, is_gimple_condexpr,
2212 is_gimple_address, is_gimple_invariant_address,
2213 is_gimple_ip_invariant_address, is_gimple_min_invariant,
2214 is_gimple_ip_invariant, is_gimple_reg, is_gimple_val,
2215 is_gimple_asm_val, is_gimple_min_lval, is_gimple_call_addr,
2216 is_gimple_mem_ref_addr): Relocate here.
2217 * Makefile.in (OBJS): Add gimple-expr.o.
2219 2013-11-05 David Malcolm <dmalcolm@redhat.com>
2221 * gengtype-parse.c (struct_field_seq): Support empty structs.
2223 2013-11-05 Uros Bizjak <ubizjak@gmail.com>
2225 * config/i386/t-rtems (MULTILIB_MATCHES): Fix option typos.
2227 2013-11-05 Uros Bizjak <ubizjak@gmail.com>
2229 * config/i386/i386-c.c (ix86_target_macros): Define _SOFT_FLOAT
2231 * config/i386/rtemself.h (TARGET_OS_CPP_BUILTINS): Do not define
2233 (LONG_DOUBLE_TYPE_SIZE): New define.
2234 (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Ditto.
2236 2013-11-05 Paolo Carlini <paolo.carlini@oracle.com>
2239 * doc/extend.texi [visibility ("visibility_type")]: Add example
2240 about visibility attribute on namespace declaration.
2242 2013-11-05 Richard Biener <rguenther@suse.de>
2245 * passes.def (all_passes): Start with pass_fixup_cfg again.
2247 2013-11-05 Richard Biener <rguenther@suse.de>
2249 PR tree-optimization/58955
2250 * tree-loop-distribution.c (pg_add_dependence_edges): Fix
2253 2013-11-05 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
2255 * config/rs6000/vector.md (vec_pack_sfix_trunc_v2df): Adjust for
2257 (vec_pack_ufix_trunc_v2df): Likewise.
2259 2013-11-05 H.J. Lu <hongjiu.lu@intel.com>
2262 * doc/md.texi (@code{movmem@var{m}}): Specify Pmode as mode of
2263 pattern, instead of word_mode.
2265 * expr.c (emit_block_move_via_movmem): Don't use mode wider than
2267 (set_storage_via_setmem): Likewise.
2269 2013-11-05 Andrew MacLeod <amacleod@redhat.com>
2271 * tree-outof-ssa.c (queue_phi_copy_p): Combine phi_ssa_name_p from
2272 gimple.h and the rest of the condition in eliminate_build.
2273 (eliminate_build): Call new routine.
2274 * gimple.h (phi_ssa_name_p): Delete.
2276 2013-11-05 Trevor Saunders <tsaunders@mozilla.com>
2278 * vec.c (vec_prefix::calculate_allocation): Don't try to handle the
2279 case of no prefix and reserving zero slots, because when that's the
2280 case we'll never get here.
2281 * vec.h (va_heap::reserve): Don't try and handle
2282 vec_prefix::calculate_allocation returning zero because that should
2285 2013-11-05 Richard Biener <rguenther@suse.de>
2288 * tree-dfa.c (get_ref_base_and_extent): Merge common code
2289 in MEM_REF and TARGET_MEM_REF handling. Make sure to
2290 process trailing array detection before diving into the
2291 view-converted object (and possibly apply some extra offset).
2293 2013-11-05 Joseph Myers <joseph@codesourcery.com>
2295 * config/i386/i386.c (ix86_float_exceptions_rounding_supported_p):
2297 (TARGET_FLOAT_EXCEPTIONS_ROUNDING_SUPPORTED_P): Define.
2299 2013-11-05 Marc Glisse <marc.glisse@inria.fr>
2301 PR tree-optimization/58958
2302 * tree-ssa-alias.c (ao_ref_init_from_ptr_and_size): Use
2303 get_addr_base_and_unit_offset instead of get_ref_base_and_extent.
2305 2013-11-05 Marc Glisse <marc.glisse@inria.fr>
2307 * tree-ssa-alias.h (ranges_overlap_p): Handle negative offsets.
2308 * tree-ssa-alias.c (ao_ref_init_from_ptr_and_size): Likewise.
2310 2013-11-05 Jakub Jelinek <jakub@redhat.com>
2312 PR tree-optimization/58984
2313 * ipa-prop.c (ipa_load_from_parm_agg_1): Add SIZE_P argument,
2314 set *SIZE_P if non-NULL on success.
2315 (ipa_load_from_parm_agg, ipa_analyze_indirect_call_uses): Adjust
2317 (ipcp_transform_function): Likewise. Punt if size of access
2318 is different from TYPE_SIZE on v->value's type.
2320 2013-11-05 Tobias Burnus <burnus@net-b.de>
2322 * doc/invoke.texi (-fopenmp-simd): Document new option.
2323 * gimplify.c (gimplify_body): Accept -fopenmp-simd.
2324 * omp-low.c (execute_expand_omp, execute_lower_omp): Ditto.
2325 * tree.c (attribute_value_equal): Ditto.
2327 2013-11-04 Wei Mi <wmi@google.com>
2329 * sched-rgn.c (add_branch_dependences): Keep insns in
2330 a SCHED_GROUP at the end of BB to remain their location.
2332 2013-11-04 Wei Mi <wmi@google.com>
2334 * config/i386/i386.c (memory_address_length): Extract a part
2335 of code to rip_relative_addr_p.
2336 (rip_relative_addr_p): New Function.
2337 (ix86_macro_fusion_p): Ditto.
2338 (ix86_macro_fusion_pair_p): Ditto.
2339 * config/i386/i386.h: Add new tune features about macro-fusion.
2340 * config/i386/x86-tune.def (DEF_TUNE): Ditto.
2341 * doc/tm.texi: Generated.
2342 * doc/tm.texi.in: Ditto.
2343 * haifa-sched.c (try_group_insn): New Function.
2344 (group_insns_for_macro_fusion): Ditto.
2345 (sched_init): Call group_insns_for_macro_fusion.
2346 * target.def: Add two hooks: macro_fusion_p and
2347 macro_fusion_pair_p.
2349 2013-11-04 Kostya Serebryany <kcc@google.com>
2351 Update to match the changed asan API.
2352 * asan.c (asan_function_start): New function.
2353 (asan_emit_stack_protection): Update the string stored in the
2354 stack red zone to match new API. Store the PC of the current
2355 function in the red zone.
2356 (asan_global_struct): Update the __asan_global definition to match
2358 (asan_add_global): Ditto.
2359 * asan.h (asan_function_start): New prototype.
2360 * final.c (final_start_function): Call asan_function_start.
2361 * sanitizer.def (BUILT_IN_ASAN_INIT): Rename __asan_init_v1
2364 2013-11-04 Wei Mi <wmi@google.com>
2366 * config/i386/i386-c.c (ix86_target_macros_internal): Separate
2367 PROCESSOR_COREI7_AVX out from PROCESSOR_COREI7.
2368 * config/i386/i386.c (ix86_option_override_internal): Ditto.
2369 (ix86_issue_rate): Ditto.
2370 (ix86_adjust_cost): Ditto.
2371 (ia32_multipass_dfa_lookahead): Ditto.
2372 (ix86_sched_init_global): Ditto.
2373 (get_builtin_code_for_version): Ditto.
2374 * config/i386/i386.h (enum target_cpu_default): Ditto.
2375 (enum processor_type): Ditto.
2376 * config/i386/x86-tune.def (DEF_TUNE): Ditto.
2378 2013-11-04 Vladimir Makarov <vmakarov@redhat.com>
2380 PR rtl-optimization/58967
2381 * config/rs6000/rs6000.c (legitimate_lo_sum_address_p): Remove
2382 !lra_in_progress for mode sizes bigger word.
2384 2013-11-04 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
2386 * config/rs6000/altivec.md (vec_widen_umult_hi_v16qi): Swap
2387 arguments to merge instruction for little endian.
2388 (vec_widen_umult_lo_v16qi): Likewise.
2389 (vec_widen_smult_hi_v16qi): Likewise.
2390 (vec_widen_smult_lo_v16qi): Likewise.
2391 (vec_widen_umult_hi_v8hi): Likewise.
2392 (vec_widen_umult_lo_v8hi): Likewise.
2393 (vec_widen_smult_hi_v8hi): Likewise.
2394 (vec_widen_smult_lo_v8hi): Likewise.
2396 2013-11-04 Ian Lance Taylor <iant@google.com>
2398 * builtins.def (ATTR_NOTHROWCALL_LEAF_LIST): Define.
2399 * sync-builtins.def: Use ATTR_NOTHROWCALL_LEAF_LIST for all sync
2400 builtins that take pointers.
2401 * lto-opts.c (lto_write_options): Write -fnon-call-exceptions if set.
2402 * lto-wrapper.c (merge_and_complain): Collect OPT_fnon_call_exceptions.
2403 (run_gcc): Pass -fnon-call-exceptions.
2405 2013-11-04 Jakub Jelinek <jakub@redhat.com>
2407 * optabs.c (expand_vec_perm): Revert one incorrect line from
2410 PR tree-optimization/58978
2411 * tree-vrp.c (all_imm_uses_in_stmt_or_feed_cond): Don't modify
2412 use_stmt by single_imm_use directly. Only call single_imm_use
2415 2013-11-04 Vladimir Makarov <vmakarov@redhat.com>
2417 PR rtl-optimization/58968
2418 * lra-spills.c (return_regno_p): New function.
2419 (lra_final_code_change): Use it.
2421 2013-11-04 Joseph Myers <joseph@codesourcery.com>
2423 * doc/cpp.texi (__GCC_IEC_559, __GCC_IEC_559_COMPLEX): Document macros.
2424 * target.def (float_exceptions_rounding_supported_p): New hook.
2425 * targhooks.c (default_float_exceptions_rounding_supported_p): New
2427 * targhooks.h (default_float_exceptions_rounding_supported_p): Declare.
2428 * doc/tm.texi.in (TARGET_FLOAT_EXCEPTIONS_ROUNDING_SUPPORTED_P):
2430 * doc/tm.texi: Regenerate.
2431 * config.gcc (powerpc*-*-linux*): Set extra_objs.
2432 * config/rs6000/rs6000-linux.c: New file.
2433 * config/rs6000/rs6000-protos.h
2434 (rs6000_linux_float_exceptions_rounding_supported_p): Declare.
2435 * config/rs6000/linux.h
2436 (TARGET_FLOAT_EXCEPTIONS_ROUNDING_SUPPORTED_P): New macro.
2437 * config/rs6000/linux64.h
2438 (TARGET_FLOAT_EXCEPTIONS_ROUNDING_SUPPORTED_P): Likewise.
2439 * config/rs6000/t-linux (rs6000-linux.o): New rule.
2440 * config/rs6000/t-linux64 (rs6000-linux.o): Likewise.
2442 2013-11-04 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
2444 * config/rs6000/vsx.md (*vsx_le_perm_store_<mode> for VSX_D):
2445 Replace the define_insn_and_split with a define_insn and two
2446 define_splits, with the split after reload re-permuting the source
2447 register to its original value.
2448 (*vsx_le_perm_store_<mode> for VSX_W): Likewise.
2449 (*vsx_le_perm_store_v8hi): Likewise.
2450 (*vsx_le_perm_store_v16qi): Likewise.
2452 2013-11-04 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
2454 * config/rs6000/vector.md (vec_pack_trunc_v2df): Adjust for
2457 2013-11-04 Jakub Jelinek <jakub@redhat.com>
2459 PR tree-optimization/58946
2460 * tree-ssa-reassoc.c (maybe_optimize_range_tests): Update all
2461 bbs with bbinfo[idx].op != NULL before all blocks with
2462 bbinfo[idx].op == NULL.
2464 2013-11-04 Richard Sandiford <rdsandiford@googlemail.com>
2466 * config/avr/avr-log.c (avr_double_int_pop_digit): Delete.
2467 (avr_dump_double_int_hex): Likewise.
2468 (avr_log_vadump): Remove %D and %X handling.
2469 * config/avr/avr.c (avr_double_int_push_digit): Delete.
2470 (avr_map_op_t): Change map from double_int to unsigned int.
2471 (avr_map_op): Update accordingly.
2472 (avr_map, avr_map_metric, avr_has_nibble_0xf, avr_map_decompose)
2473 (avr_move_bits, avr_out_insert_bits, avr_fold_builtin): Operate on
2474 unsigned ints rather than double_ints.
2476 2013-11-03 Marek Polacek <polacek@redhat.com>
2478 Implement -fsanitize=vla-bound.
2479 * opts.c (common_handle_option): Handle vla-bound.
2480 * sanitizer.def (BUILT_IN_UBSAN_HANDLE_VLA_BOUND_NOT_POSITIVE): Define.
2481 * flag-types.h (enum sanitize_code): Add SANITIZE_VLA.
2482 * asan.c (initialize_sanitizer_builtins): Build BT_FN_VOID_PTR_PTR.
2484 2013-11-02 Bill Schmidt <wschmidt@vnet.linux.ibm.com>
2486 * config/rs6000/rs6000.c (rs6000_expand_vector_set): Adjust for
2489 2013-11-02 Uros Bizjak <ubizjak@gmail.com>
2491 * config/i386/constraints.md (Ts, Tv): New address constrains.
2492 * config/i386/i386.md (*lea<mode>, *<mode>_<bndcheck>): Use Ts
2493 constraint for address_no_seg_operand.
2494 * config/i386/sse.md (*avx512pf_gatherpf<mode>_mask)
2495 (*avx512pf_gatherpf<mode>, *avx512pf_scatterpf<mode>_mask)
2496 (*avx512pf_scatterpf<mode>, *avx2_gathersi<mode>)
2497 (*avx2_gathersi<mode>_2, *avx2_gatherdi<mode>, *avx2_gatherdi<mode>_2)
2498 (*avx2_gatherdi<mode>_3, *avx2_gatherdi<mode>_4)
2499 (*avx512f_gathersi<mode>, *avx512f_gathersi<mode>_2)
2500 (*avx512f_gatherdi<mode>, *avx512f_gatherdi<mode>_2)
2501 (*avx512f_scattersi<mode> *avx512f_scatterdi<mode>): Use Tv
2502 constraint for vsib_address_operand.
2504 2013-11-02 Steven Bosscher <steven@gcc.gnu.org>
2506 * gcse.c (pre_delete): Remove references to regmove from comments.
2507 * recog.c: (validate_replace_rtx_1): Likewise.
2508 * config/rl78/rl78.c: Likewise.
2509 * config/v850/v850.h: Likewise, and remove unused ENABLE_REGMOVE_PASS.
2510 * common/config/m32r/m32r-common.c: Don't manipulate OPT_fregmove.
2511 * common/config/mmix/mmix-common.c: Likewise.
2513 2013-11-01 Trevor Saunders <tsaunders@mozilla.com>
2515 * function.c (reorder_blocks): Convert block_stack to a stack_vec.
2516 * gimplify.c (gimplify_compound_lval): Likewise.
2517 * graphite-clast-to-gimple.c (gloog): Likewise.
2518 * graphite-dependences.c (loop_is_parallel_p): Likewise.
2519 * graphite-scop-detection.c (scopdet_basic_block_info): Likewise.
2520 (limit_scop); Likewise.
2521 (build_scops): Likewise.
2522 (dot_scop): Likewise.
2523 * graphite-sese-to-poly.c (sese_dom_walker): Likewise.
2524 (build_scop_drs): Likewise.
2525 (insert_stmts): Likewise.
2526 (insert_out_of_ssa_copy): Likewise.
2527 (remove_phi): Likewise.
2528 (rewrite_commutative_reductions_out_of_ssa_close_phi): Likewise.
2529 * hw-doloop.c (discover_loop): Likewise.
2530 * tree-call-cdce.c (shrink_wrap_one_built_in_call): Likewise.
2531 * tree-dfa.c (dump_enumerated_decls): Likewise.
2532 * tree-if-conv.c (if_convertable_loop_p): Likewise.
2533 * tree-inline.c (tree_function_versioning): Likewise.
2534 * tree-loop-distribution.c (build_rdg): Likewise.
2535 (rdg_flag_vertex_and_dependent): Likewise.
2536 (distribute_loop): Likewise.
2537 * tree-parloops.c (loop_parallel_p): Likewise.
2538 (eliminate_local_variables): Likewise.
2539 (separate_decls_in_region): Likewise.
2540 * tree-predcom.c (tree_predictive_commoning_loop): Likewise.
2541 * tree-ssa-phiopt.c (cond_if_else_store_replacement): Likewise.
2542 * tree-ssa-uncprop.c (uncprop_dom_walker): Likewise.
2543 * tree-vect-loop.c (vect_analyze_scaler_cycles_1): Likewise.
2544 * tree-vect-patterns.c (vect_pattern_recog): Likewise.
2545 * tree-vect-stmts.c (vect_mark_stmts_to_be_vectorized): Likewise.
2546 (vectorizable_condition): Likewise.
2548 2013-11-01 Uros Bizjak <ubizjak@gmail.com>
2550 * configure.ac (HAVE_AS_IX86_INTERUNIT_MOVQ): Always define as 0/1.
2551 * configure: Regenerate.
2552 * config/i386/i386.md (*movdi_internal): Change
2553 HAVE_AS_IX86_INTERUNIT_MOVQ to runtime check.
2554 (*movdf_internal): Ditto.
2555 * config/i386/mmx.md (*mov<mode>_internal): Ditto.
2556 * config/i386/sse.md (vec_concatv2di): Output interunit movq
2557 for HAVE_AS_IX86_INTERUNIT_MOVQ targets.
2559 2013-10-31 Robert Suchanek <Robert.Suchanek@imgtec.com>
2561 * lra-spills.c (assign_spill_hard_regs): Remove statement terminator
2564 2013-10-31 David Malcolm <dmalcolm@redhat.com>
2566 Automated part of renaming of symtab_node_base to symtab_node.
2568 Patch autogenerated by rename_symtab.py from
2569 https://github.com/davidmalcolm/gcc-refactoring-scripts
2570 revision 58bb219cc090b2f4516a9297d868c245495ee622
2571 with ChangeLog entry fixed up by hand.
2573 * cgraph.c (x_cgraph_nodes_queue): Rename symtab_node_base to
2575 (cgraph_node_for_asm): Likewise.
2576 * cgraph.h (symtab_node_base): Likewise.
2577 (cgraph_node): Likewise.
2578 (varpool_node): Likewise.
2579 (is_a_helper <cgraph_node>::test): Likewise.
2580 (is_a_helper <varpool_node>::test): Likewise.
2581 (symtab_nodes): Likewise.
2582 (symtab_register_node): Likewise.
2583 (symtab_unregister_node): Likewise.
2584 (symtab_remove_node): Likewise.
2585 (symtab_get_node): Likewise.
2586 (symtab_node_for_asm): Likewise.
2587 (symtab_node_asm_name): Likewise.
2588 (symtab_node_name): Likewise.
2589 (symtab_insert_node_to_hashtable): Likewise.
2590 (symtab_add_to_same_comdat_group): Likewise.
2591 (symtab_dissolve_same_comdat_group_list): Likewise.
2592 (dump_symtab_node): Likewise.
2593 (debug_symtab_node): Likewise.
2594 (dump_symtab_base): Likewise.
2595 (verify_symtab_node): Likewise.
2596 (verify_symtab_base): Likewise.
2597 (symtab_used_from_object_file_p): Likewise.
2598 (symtab_alias_ultimate_target): Likewise.
2599 (symtab_resolve_alias): Likewise.
2600 (fixup_same_cpp_alias_visibility): Likewise.
2601 (symtab_for_node_and_aliases): Likewise.
2602 (symtab_nonoverwritable_alias): Likewise.
2603 (availability symtab_node_availability): Likewise.
2604 (symtab_semantically_equivalent_p): Likewise.
2605 (fixup_same_cpp_alias_visibility): Likewise.
2606 (symtab_prevail_in_asm_name_hash): Likewise.
2608 (varpool): Likewise.
2609 (varpool_first_variable): Likewise.
2610 (varpool_next_variable): Likewise.
2611 (varpool_first_static_initializer): Likewise.
2612 (varpool_next_static_initializer): Likewise.
2613 (varpool_first_defined_variable): Likewise.
2614 (varpool_next_defined_variable): Likewise.
2615 (cgraph_first_defined_function): Likewise.
2616 (cgraph_next_defined_function): Likewise.
2617 (cgraph_first_function): Likewise.
2618 (cgraph_next_function): Likewise.
2619 (cgraph_first_function_with_gimple_body): Likewise.
2620 (cgraph_next_function_with_gimple_body): Likewise.
2621 (symtab_alias_target): Likewise.
2622 (symtab_real_symbol_p): Likewise.
2623 (symtab_can_be_discarded): Likewise.
2624 * cgraphbuild.c (mark_address): Likewise.
2625 (mark_load): Likewise.
2626 (mark_store): Likewise.
2627 * cgraphunit.c (decide_is_symbol_needed): Likewise.
2629 (enqueue_node): Likewise.
2630 (referred_to_p): Likewise.
2631 (cgraph_process_same_body_aliases): Likewise.
2632 (analyze_functions): Likewise.
2633 (handle_alias_pairs): Likewise.
2634 (output_weakrefs): Likewise.
2635 (compile): Likewise.
2636 * gimple-fold.c (can_refer_decl_in_current_unit_p): Likewise.
2637 * ipa-inline-analysis.c (inline_write_summary): Likewise.
2638 * ipa-prop.c (remove_described_reference): Likewise.
2639 (try_decrement_rdesc_refcount): Likewise.
2640 (ipa_edge_duplication_hook): Likewise.
2641 * ipa-ref.c (ipa_record_reference): Likewise.
2642 (ipa_maybe_record_reference): Likewise.
2643 (ipa_clone_ref): Likewise.
2644 (ipa_clone_references): Likewise.
2645 (ipa_clone_referring): Likewise.
2646 (ipa_find_reference): Likewise.
2647 (ipa_remove_stmt_references): Likewise.
2648 (ipa_clear_stmts_in_references): Likewise.
2649 * ipa-ref.h (symtab_node_base): Likewise.
2650 (ipa_ref): Likewise.
2651 (ipa_record_reference): Likewise.
2652 (ipa_maybe_record_reference): Likewise.
2653 (ipa_clone_references): Likewise.
2654 (ipa_clone_referring): Likewise.
2655 (ipa_clone_ref): Likewise.
2656 (ipa_find_reference): Likewise.
2657 (ipa_remove_stmt_references): Likewise.
2658 (ipa_clear_stmts_in_references): Likewise.
2659 * ipa-reference.c (ipa_reference_write_optimization_summary):
2661 * ipa.c (enqueue_node): Likewise.
2662 (process_references): Likewise.
2663 (walk_polymorphic_call_targets): Likewise.
2664 (symtab_remove_unreachable_nodes): Likewise.
2665 (address_taken_from_non_vtable_p): Likewise.
2666 (comdat_can_be_unshared_p_1): Likewise.
2667 (comdat_can_be_unshared_p): Likewise.
2668 (can_replace_by_local_alias): Likewise.
2669 (function_and_variable_visibility): Likewise.
2670 * is-a.h: Likewise (within example in comment).
2671 * lto-cgraph.c (input_cgraph_opt_summary): Likewise.
2672 (lto_symtab_encoder_encode): Likewise.
2673 (lto_symtab_encoder_delete_node): Likewise.
2674 (lto_symtab_encoder_in_partition_p): Likewise.
2675 (lto_set_symtab_encoder_in_partition): Likewise.
2676 (output_refs): Likewise.
2677 (compute_ltrans_boundary): Likewise.
2678 (output_symtab): Likewise.
2679 (input_node): Likewise.
2680 (input_ref): Likewise.
2681 (input_edge): Likewise.
2682 (input_cgraph_1): Likewise.
2683 (input_refs): Likewise.
2684 (output_cgraph_opt_summary): Likewise.
2685 (input_node_opt_summary): Likewise.
2686 (input_cgraph_opt_section): Likewise.
2687 * lto-section-in.c (lto_free_function_in_decl_state_for_node):
2689 * lto-streamer-out.c (lto_output): Likewise.
2690 (output_symbol_p): Likewise.
2691 (produce_symtab): Likewise.
2692 * lto-streamer.h (lto_encoder_entry): Likewise.
2693 (lto_free_function_in_decl_state_for_node): Likewise.
2694 (lto_symtab_encoder_encode): Likewise.
2695 (lto_symtab_encoder_delete_node): Likewise.
2696 (lto_symtab_encoder_in_partition_p): Likewise.
2697 (lto_set_symtab_encoder_in_partition): Likewise.
2698 (lto_symtab_encoder_lookup): Likewise.
2699 (lsei_node): Likewise.
2700 (lto_symtab_encoder_deref): Likewise.
2701 * symtab.c (symtab_hash): Likewise.
2702 (assembler_name_hash): Likewise.
2703 (symtab_nodes): Likewise.
2704 (hash_node): Likewise.
2705 (eq_node): Likewise.
2706 (hash_node_by_assembler_name): Likewise.
2707 (eq_assembler_name): Likewise.
2708 (insert_to_assembler_name_hash): Likewise.
2709 (unlink_from_assembler_name_hash): Likewise.
2710 (symtab_prevail_in_asm_name_hash): Likewise.
2711 (symtab_register_node): Likewise.
2712 (symtab_insert_node_to_hashtable): Likewise.
2713 (symtab_unregister_node): Likewise.
2714 (symtab_get_node): Likewise.
2715 (symtab_remove_node): Likewise.
2716 (symtab_initialize_asm_name_hash): Likewise.
2717 (symtab_node_for_asm): Likewise.
2718 (symtab_add_to_same_comdat_group): Likewise.
2719 (symtab_dissolve_same_comdat_group_list): Likewise.
2720 (symtab_node_asm_name): Likewise.
2721 (symtab_node_name): Likewise.
2722 (dump_symtab_base): Likewise.
2723 (dump_symtab_node): Likewise.
2724 (dump_symtab): Likewise.
2725 (debug_symtab_node): Likewise.
2726 (verify_symtab_base): Likewise.
2727 (verify_symtab_node): Likewise.
2728 (verify_symtab): Likewise.
2729 (symtab_used_from_object_file_p): Likewise.
2730 (symtab_node_availability): Likewise.
2731 (symtab_alias_ultimate_target): Likewise.
2732 (fixup_same_cpp_alias_visibility): Likewise.
2733 (symtab_resolve_alias): Likewise.
2734 (symtab_for_node_and_aliases): Likewise.
2735 (symtab_for_node_and_aliases): Likewise.
2736 (symtab_nonoverwritable_alias_1): Likewise.
2737 (symtab_nonoverwritable_alias): Likewise.
2738 (symtab_semantically_equivalent_p): Likewise.
2739 * value-prof.c (init_node_map): Likewise.
2740 * varasm.c (find_decl): Likewise.
2741 * varpool.c (varpool_node_for_asm): Likewise.
2742 (varpool_remove_unreferenced_decls): Likewise.
2744 2013-10-31 David Malcolm <dmalcolm@redhat.com>
2746 Manual part of renaming of symtab_node_base to symtab_node.
2748 * ipa-ref.h (symtab_node): Remove typedef to pointer type, as it
2749 clashes with the preferred name for the base class.
2750 (const_symtab_node): Remove redundant typedef.
2752 2013-10-31 Jakub Jelinek <jakub@redhat.com>
2754 * optabs.c (expand_vec_perm): Avoid vector mode punning
2755 SUBREGs in SET_DEST.
2756 * expmed.c (store_bit_field_1): Likewise.
2757 * config/i386/sse.md (movdi_to_sse, vec_pack_sfix_trunc_v2df,
2758 vec_pack_sfix_v2df, vec_shl_<mode>, vec_shr_<mode>,
2759 vec_interleave_high<mode>, vec_interleave_low<mode>): Likewise.
2760 * config/i386/i386.c (ix86_expand_vector_move_misalign,
2761 ix86_expand_sse_movcc, ix86_expand_int_vcond, ix86_expand_vec_perm,
2762 ix86_expand_sse_unpack, ix86_expand_args_builtin,
2763 ix86_expand_vector_init_duplicate, ix86_expand_vector_set,
2764 emit_reduc_half, expand_vec_perm_blend, expand_vec_perm_pshufb,
2765 expand_vec_perm_interleave2, expand_vec_perm_pshufb2,
2766 expand_vec_perm_vpshufb2_vpermq,
2767 expand_vec_perm_vpshufb2_vpermq_even_odd, expand_vec_perm_even_odd_1,
2768 expand_vec_perm_broadcast_1, expand_vec_perm_vpshufb4_vpermq2,
2769 ix86_expand_sse2_mulv4si3, ix86_expand_pinsr): Likewise.
2770 (expand_vec_perm_palignr): Likewise. Modify a copy of *d rather
2773 2013-10-31 Uros Bizjak <ubizjak@gmail.com>
2775 * config/i386/i386.c (ix86_expand_sse2_abs): Rename function arguments.
2776 Use gcc_unreachable for unhandled modes. Do not check results of
2777 expand_simple_binop. If not expanded to target, move the result.
2779 2013-10-31 Chung-Ju Wu <jasonwucj@gmail.com>
2780 Shiva Chen <shiva0217@gmail.com>
2782 * config.gcc (nds32*-*-*): Add nds32 target.
2783 * config/nds32/nds32.c: New file.
2784 * config/nds32/nds32.h: New file.
2785 * config/nds32/nds32.md: New file.
2786 * config/nds32/constants.md: New file.
2787 * config/nds32/constraints.md: New file.
2788 * config/nds32/iterators.md: New file.
2789 * config/nds32/nds32-doubleword.md: New file.
2790 * config/nds32/nds32-intrinsic.md: New file.
2791 * config/nds32/nds32_intrinsic.h: New file.
2792 * config/nds32/nds32-modes.def: New file.
2793 * config/nds32/nds32-multiple.md: New file.
2794 * config/nds32/nds32.opt: New file.
2795 * config/nds32/nds32-opts.h: New file.
2796 * config/nds32/nds32-protos.h: New file.
2797 * config/nds32/nds32-peephole2.md: New file.
2798 * config/nds32/pipelines.md: New file.
2799 * config/nds32/predicates.md: New file.
2800 * config/nds32/t-mlibs: New file.
2801 * common/config/nds32: New directory and files.
2803 * doc/invoke.texi (NDS32 options): Document nds32 specific options.
2804 * doc/md.texi (NDS32 family): Document nds32 specific constraints.
2805 * doc/install.texi (Cross-Compiler-Specific Options): Document
2806 --with-nds32-lib for nds32 target.
2807 * doc/extend.texi (Function Attributes, Target Builtins): Document
2808 nds32 specific attributes.
2810 2013-10-31 Vladimir Makarov <vmakarov@redhat.com>
2812 * lra-constraints (process_alt_operands): Use the result
2813 elimination register for operand when matching constraints.
2815 2013-10-31 Jakub Jelinek <jakub@redhat.com>
2817 * tree-vrp.c (maybe_set_nonzero_bits): New function.
2818 (remove_range_assertions): Call it.
2820 * tree.c (tree_ctz): New function.
2821 * tree.h (tree_ctz): New prototype.
2822 * tree-ssanames.h (get_range_info, get_nonzero_bits): Change
2823 first argument from tree to const_tree.
2824 * tree-ssanames.c (get_range_info, get_nonzero_bits): Likewise.
2825 * tree-vectorizer.h (vect_generate_tmps_on_preheader): New prototype.
2826 * tree-vect-loop-manip.c (vect_generate_tmps_on_preheader): No longer
2828 * expr.c (highest_pow2_factor): Reimplemented using tree_ctz.
2829 * tree-vect-loop.c (vect_analyze_loop_operations,
2830 vect_transform_loop): Don't force scalar loop for bound just because
2831 number of iterations is unknown, only do it if it is not known to be
2832 a multiple of vectorization_factor.
2833 * builtins.c (get_object_alignment_2): Use tree_ctz on offset.
2835 * gimple-pretty-print.c (dump_ssaname_info): Print newline also
2836 in case of VR_VARYING. Print get_nonzero_bits if not all ones.
2837 * tree-ssanames.h (struct range_info_def): Add nonzero_bits field.
2838 (set_nonzero_bits, get_nonzero_bits): New prototypes.
2839 * tree-ssa-ccp.c (get_default_value): Use get_range_info to see if
2840 a default def isn't partially constant.
2841 (ccp_finalize): If after IPA, set_range_info if integral SSA_NAME
2842 is known to be partially zero.
2843 (evaluate_stmt): If we'd return otherwise VARYING, use get_range_info
2844 to see if a default def isn't partially constant.
2845 * tree-ssanames.c (set_range_info): Initialize nonzero_bits upon
2846 creation of a range, if VR_RANGE, try to improve nonzero_bits from
2848 (set_nonzero_bits, get_nonzero_bits): New functions.
2850 * tree-cfg.c (assert_unreachable_fallthru_edge_p): New function.
2851 * tree-cfg.h (assert_unreachable_fallthru_edge_p): New prototype.
2852 * tree-vrp.c (all_imm_uses_in_stmt_or_feed_cond): New function.
2853 (remove_range_assertions): If ASSERT_EXPR_VAR has no other immediate
2854 uses but in the condition and ASSERT_EXPR and the other successor of
2855 the predecessor bb is __builtin_unreachable (), set_range_info of the
2856 ASSERT_EXPR_VAR to the range info of the ASSERT_EXPR's lhs.
2858 2013-10-31 Martin Jambor <mjambor@suse.cz>
2860 PR rtl-optimization/58934
2862 2013-10-30 Martin Jambor <mjambor@suse.cz>
2863 PR rtl-optimization/10474
2864 * ira.c (find_moveable_pseudos): Do not calculate dominance info
2866 (interesting_dest_for_shprep): New function.
2867 (split_live_ranges_for_shrink_wrap): Likewise.
2868 (ira): Calculate dominance info and df analysis. Call
2869 split_live_ranges_for_shrink_wrap.
2871 2013-10-31 Richard Sandiford <rsandifo@linux.vnet.ibm.com>
2872 Yury Gribov <y.gribov@samsung.com>
2875 * asan.c (asan_clear_shadow): Allocate a new vreg for temporary
2876 shadow pointer to avoid clobbering the main one.
2878 2013-10-31 Zhenqiang Chen <zhenqiang.chen@linaro.org>
2880 * lower-subreg.c (resolve_simple_move): Copy REG_INC note.
2882 2013-10-30 Vladimir Makarov <vmakarov@redhat.com>
2885 * ira-color.c (update_costs_from_copies): Add new parameter. Use
2886 it for calling update_costs_from_allocno.
2887 (assign_hard_reg): Call restore_costs_from_copies only for
2888 !retry_p. Pass new argument to update_costs_from_copies.
2889 (color_pass): Pass new argument to update_costs_from_copies.
2890 (ira_mark_allocation_change): Ditto.
2892 2013-10-30 Sharad Singhai <singhai@google.com>
2895 * opts.c (common_handle_option): Remove deprecated option
2896 -ftree-vectorizer-verbose.
2897 * doc/invoke.texi (Debugging Options): Ditto.
2898 * opts-global.c (handle_common_deferred_options): Ditto.
2899 (dump_remap_tree_vectorizer_verbose): Delete.
2900 * common.opt: Set -ftree-vectorizer-verbose as an ignored option.
2902 2013-10-30 DJ Delorie <dj@redhat.com>
2904 * config/rx/rx.c (ADD_RX_BUILTIN0): New macro, used for builtins
2905 that take no arguments.
2907 2013-10-30 Joern Rennecke <joern.rennecke@embecosm.com>
2910 * reload1.c (update_eliminables_and_spill): New function, broken
2912 (reload): Use it. Check for frame size change after frame size
2913 alignment, and call update_eliminables_and_spill first if continue-ing.
2915 2013-10-30 Cong Hou <congh@google.com>
2918 * config/i386/i386-protos.h (ix86_expand_sse2_abs): New function.
2919 * config/i386/i386.c (ix86_expand_sse2_abs): New function.
2920 * config/i386/sse.md: Add SSE2 support to abs (8/16/32-bit-int).
2922 2013-10-18 Mikael Pettersson <mikpelinux@gmail.com>
2924 PR rtl-optimization/58369
2925 * reload1.c (compute_reload_subreg_offset): New function.
2926 (choose_reload_regs): Use it to pass endian-correct
2927 offset to subreg_regno_offset.
2929 2013-10-30 Tobias Burnus <burnus@net-b.de>
2932 * tree-cfg.c (replace_loop_annotate): Replace warning by
2935 2013-10-30 Jason Merrill <jason@redhat.com>
2937 * configure.ac (loose_warn): Add -Wno-format if
2938 --disable-build-format-warnings.
2940 2013-10-30 David Malcolm <dmalcolm@redhat.com>
2942 * cgraphunit.c (analyze_functions): Split symtab_node declarations
2943 onto multiple lines to make things easier for rename_symtab.py.
2945 * symtab.c (symtab_dissolve_same_comdat_group_list): Likewise.
2946 (symtab_semantically_equivalent_p): Likewise.
2948 2013-10-30 Vladimir Makarov <vmakarov@redhat.com>
2951 * lra.c (check_rtl): Remove address check before LRA work.
2953 2013-10-30 Marc Glisse <marc.glisse@inria.fr>
2955 * tree-ssa-alias.c (ao_ref_init_from_ptr_and_size): Look for a
2956 POINTER_PLUS_EXPR in the defining statement.
2958 2013-10-30 Vladimir Makarov <vmakarov@redhat.com>
2960 * regmove.c: Remove.
2961 * tree-pass.h (make_pass_regmove): Remove.
2962 * timevar.def (TV_REGMOVE): Remove.
2963 * passes.def (pass_regmove): Remove.
2964 * opts.c (default_options_table): Remove entry for regmove.
2965 * doc/passes.texi: Remove regmove pass description.
2966 * doc/invoke.texi (-foptimize-register-move, -fregmove): Remove
2968 (-fdump-rtl-regmove): Ditto.
2969 * common.opt (foptimize-register-move, fregmove): Ignore.
2970 * Makefile.in (OBJS): Remove regmove.o.
2971 * regmove.c: Remove.
2972 * ira-int.h (struct ira_allocno_pref, ira_pref_t): New structure
2974 (struct ira_allocno) New member allocno_prefs.
2975 (ALLOCNO_PREFS): New macro.
2976 (ira_prefs, ira_prefs_num): New external vars.
2977 (ira_setup_alts, ira_get_dup_out_num, ira_debug_pref): New prototypes.
2978 (ira_debug_prefs, ira_debug_allocno_prefs, ira_create_pref): Ditto.
2979 (ira_add_allocno_pref, ira_remove_pref, ira_remove_allocno_prefs):
2981 (ira_add_allocno_copy_to_list): Remove prototype.
2982 (ira_swap_allocno_copy_ends_if_necessary): Ditto.
2983 (ira_pref_iterator): New type.
2984 (ira_pref_iter_init, ira_pref_iter_cond): New functions.
2985 (FOR_EACH_PREF): New macro.
2986 * ira.c (commutative_constraint_p): Move from ira-conflicts.c.
2987 (ira_get_dup_out_num): Ditto. Rename from get_dup_num. Modify the
2989 (ira_setup_alts): New function.
2990 (decrease_live_ranges_number): New function.
2991 (ira): Call the above function.
2992 * ira-build.c (ira_prefs, ira_prefs_num): New global vars.
2993 (ira_create_allocno): Initialize allocno prefs.
2994 (pref_pool, pref_vec): New static vars.
2995 (initiate_prefs, find_allocno_pref, ira_create_pref): New
2997 (add_allocno_pref_to_list, ira_add_allocno_pref, print_pref): Ditto.
2998 (ira_debug_pref, print_prefs, ira_debug_prefs): Ditto.
2999 (print_allocno_prefs, ira_debug_allocno_prefs, finish_pref): Ditto.
3000 (ira_remove_pref, ira_remove_allocno_prefs, finish_prefs): Ditto.
3001 (ira_add_allocno_copy_to_list): Make static. Rename to
3002 add_allocno_copy_to_list.
3003 (ira_swap_allocno_copy_ends_if_necessary): Make static. Rename to
3004 swap_allocno_copy_ends_if_necessary.
3005 (remove_unnecessary_allocnos, remove_low_level_allocnos): Call
3006 ira_remove_allocno_prefs.
3007 (ira_flattening): Ditto.
3008 (ira_build): Call initiate_prefs, print_prefs.
3009 (ira_destroy): Call finish_prefs.
3010 * ira-color.c (struct update_cost_record): New.
3011 (struct allocno_color_data): Add new member update_cost_records.
3012 (update_cost_record_pool): New static var.
3013 (init_update_cost_records, get_update_cost_record): New functions.
3014 (free_update_cost_record_list, finish_update_cost_records): Ditto.
3015 (struct update_cost_queue_elem): Add member from.
3016 (initiate_cost_update): Call init_update_cost_records.
3017 (finish_cost_update): Call finish_update_cost_records.
3018 (queue_update_cost, get_next_update_cost): Add new param from.
3019 (Update_allocno_cost, update_costs_from_allocno): New functions.
3020 (update_costs_from_prefs): Ditto.
3021 (update_copy_costs): Rename to update_costs_from_copies.
3022 (restore_costs_from_copies): New function.
3023 (update_conflict_hard_regno_costs): Don't go back.
3024 (assign_hard_reg): Call restore_costs_from_copies. Add printing
3026 (pop_allocnos): Add priniting more debug info.
3027 (color_allocnos): Remove prefs for conflicting hard regs.
3028 Call update_costs_from_prefs.
3029 * ira-conflicts.c (commutative_constraint_p): Move to ira.c
3030 (get_dup_num): Rename, modify, and move to ira.c
3031 (process_regs_for_copy): Add prefs.
3032 (add_insn_allocno_copies): Put src as first arg of
3033 process_regs_for_copy. Remove dead code. Call ira_setup_alts.
3034 * ira-costs.c (record_reg_classes): Modify and move code into
3035 record_operands_costs.
3036 (find_costs_and_classes): Create prefs for the hard reg of small
3038 (process_bb_node_for_hard_reg_moves): Add prefs.
3040 2013-10-30 Richard Biener <rguenther@suse.de>
3043 * basic-block.h (pre_and_rev_post_order_compute_fn): New function.
3044 * cfganal.c (pre_and_rev_post_order_compute_fn): New function
3046 (pre_and_rev_post_order_compute): ... which now wraps it.
3047 * graph.c (draw_cfg_nodes_no_loops): Use
3048 pre_and_rev_post_order_compute_fn to avoid ICEing and dependence
3051 2013-10-30 Christian Bruel <christian.bruel@st.com>
3053 * config/sh/sh-mem.cc (sh_expand_cmpnstr): New function.
3054 (sh_expand_cmpstr): Handle known align and schedule improvements.
3055 * config/sh/sh-protos.h (sh_expand_cmpstrn): Declare.
3056 * config/sh/sh.md (cmpstrnsi): New pattern.
3058 2013-10-30 Martin Jambor <mjambor@suse.cz>
3060 PR rtl-optimization/10474
3061 * ira.c (find_moveable_pseudos): Do not calculate dominance info
3063 (interesting_dest_for_shprep): New function.
3064 (split_live_ranges_for_shrink_wrap): Likewise.
3065 (ira): Calculate dominance info and df analysis. Call
3066 split_live_ranges_for_shrink_wrap.
3068 2013-10-30 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
3071 * config/arm/arm.c (arm_expand_epilogue_apcs_frame): Emit blockage.
3073 2013-10-30 Ilya Enkovich <ilya.enkovich@intel.com>
3075 * tree-core.h (tree_index): Add TI_POINTER_BOUNDS_TYPE.
3076 * tree.h (POINTER_BOUNDS_P): New.
3077 (BOUNDED_TYPE_P): New.
3079 (pointer_bounds_type_node): New.
3080 * tree.c (build_common_tree_nodes): Initialize
3081 pointer_bounds_type_node.
3082 * gimple.h (gimple_call_get_nobnd_arg_index): New.
3083 (gimple_call_num_nobnd_args): New.
3084 (gimple_call_nobnd_arg): New.
3085 (gimple_return_retbnd): New.
3086 (gimple_return_set_retbnd): New
3087 * gimple.c (gimple_build_return): Increase number of ops
3088 for return statement.
3089 (gimple_call_get_nobnd_arg_index): New.
3090 * gimple-pretty-print.c (dump_gimple_return): Print second op.
3092 2013-10-30 Ilya Enkovich <ilya.enkovich@intel.com>
3094 * ipa.c (cgraph_build_static_cdtor_1): Support contructors
3095 with "chkp ctor" and "bnd_legacy" attributes.
3096 * gimplify.c (gimplify_init_constructor): Avoid infinite
3097 loop during gimplification of bounds initializer.
3099 2013-10-30 Ilya Enkovich <ilya.enkovich@intel.com>
3101 * c-family/c-common.c (handle_bnd_variable_size_attribute): New.
3102 (handle_bnd_legacy): New.
3103 (c_common_attribute_table): Add bnd_variable_size and bnd_legacy.
3104 * doc/extend.texi: Document bnd_variable_size and bnd_legacy
3107 2013-10-29 Ilya Enkovich <ilya.enkovich@intel.com>
3109 * builtin-types.def (BT_FN_VOID_CONST_PTR): New.
3110 (BT_FN_PTR_CONST_PTR): New.
3111 (BT_FN_CONST_PTR_CONST_PTR): New.
3112 (BT_FN_PTR_CONST_PTR_SIZE): New.
3113 (BT_FN_PTR_CONST_PTR_CONST_PTR): New.
3114 (BT_FN_VOID_PTRPTR_CONST_PTR): New.
3115 (BT_FN_VOID_CONST_PTR_SIZE): New.
3116 (BT_FN_PTR_CONST_PTR_CONST_PTR_SIZE): New.
3117 * chkp-builtins.def: New.
3118 * builtins.def: include chkp-builtins.def.
3119 (DEF_CHKP_BUILTIN): New.
3120 * builtins.c (expand_builtin): Support BUILT_IN_CHKP_INIT_PTR_BOUNDS,
3121 BUILT_IN_CHKP_NULL_PTR_BOUNDS, BUILT_IN_CHKP_COPY_PTR_BOUNDS,
3122 BUILT_IN_CHKP_CHECK_PTR_LBOUNDS, BUILT_IN_CHKP_CHECK_PTR_UBOUNDS,
3123 BUILT_IN_CHKP_CHECK_PTR_BOUNDS, BUILT_IN_CHKP_SET_PTR_BOUNDS,
3124 BUILT_IN_CHKP_NARROW_PTR_BOUNDS, BUILT_IN_CHKP_STORE_PTR_BOUNDS,
3125 BUILT_IN_CHKP_GET_PTR_LBOUND, BUILT_IN_CHKP_GET_PTR_UBOUND,
3126 BUILT_IN_CHKP_BNDMK, BUILT_IN_CHKP_BNDSTX, BUILT_IN_CHKP_BNDCL,
3127 BUILT_IN_CHKP_BNDCU, BUILT_IN_CHKP_BNDLDX, BUILT_IN_CHKP_BNDRET,
3128 BUILT_IN_CHKP_INTERSECT, BUILT_IN_CHKP_ARG_BND, BUILT_IN_CHKP_NARROW,
3129 BUILT_IN_CHKP_EXTRACT_LOWER, BUILT_IN_CHKP_EXTRACT_UPPER.
3130 * common.opt (fcheck-pointer-bounds): New.
3131 * toplev.c (process_options): Check Pointer Bounds Checker is
3133 * doc/extend.texi: Document Pointer Bounds Checker built-in functions.
3135 2013-10-30 Ilya Enkovich <ilya.enkovich@intel.com>
3137 * target.def (builtin_chkp_function): New.
3138 (chkp_bound_type): New.
3139 (chkp_bound_mode): New.
3140 (fn_abi_va_list_bounds_size): New.
3141 (load_bounds_for_arg): New.
3142 (store_bounds_for_arg): New.
3143 * targhooks.h (default_load_bounds_for_arg): New.
3144 (default_store_bounds_for_arg): New.
3145 (default_fn_abi_va_list_bounds_size): New.
3146 (default_chkp_bound_type): New.
3147 (default_chkp_bound_mode): New.
3148 (default_builtin_chkp_function): New.
3149 * targhooks.c (default_load_bounds_for_arg): New.
3150 (default_store_bounds_for_arg): New.
3151 (default_fn_abi_va_list_bounds_size): New.
3152 (default_chkp_bound_type): New.
3153 (default_chkp_bound_mode); New.
3154 (default_builtin_chkp_function): New.
3155 * doc/tm.texi.in (TARGET_FN_ABI_VA_LIST_BOUNDS_SIZE): New.
3156 (TARGET_LOAD_BOUNDS_FOR_ARG): New.
3157 (TARGET_STORE_BOUNDS_FOR_ARG): New.
3158 (TARGET_BUILTIN_CHKP_FUNCTION): New.
3159 (TARGET_CHKP_BOUND_TYPE): New.
3160 (TARGET_CHKP_BOUND_MODE): New.
3161 * doc/tm.texi: Regenerated.
3162 * langhooks.h (lang_hooks): Add chkp_supported field.
3163 * langhooks-def.h (LANG_HOOKS_CHKP_SUPPORTED): New.
3164 (LANG_HOOKS_INITIALIZER); Add LANG_HOOKS_CHKP_SUPPORTED.
3166 2013-10-29 Andrew Pinski <apinski@cavium.com>
3168 * tree-ssa-ifcombine.c: Include rtl.h and tm_p.h.
3169 (ifcombine_ifandif): Handle cases where maybe_fold_and_comparisons
3170 fails, combining the branches anyways.
3171 (tree_ssa_ifcombine): Inverse the order of the basic block walk,
3172 increases the number of combinings.
3173 * gimple.h (gsi_start_nondebug_after_labels_bb): New function.
3175 2013-10-29 Mike Stump <mikestump@comcast.net>
3177 * machmode.def (PARTIAL_INT_MODE): Add precision and name.
3178 * genmodes.c (PARTIAL_INT_MODE): Add precision and name.
3179 (make_vector_mode): Increase namebuf to 16.
3180 (emit_insn_modes_h): When processing BImode, don't
3181 also match partial int modes.
3182 (emit_class_narrowest_mode): Likewise.
3184 * config/bfin/bfin-modes.def: Add precision to PDI.
3185 * config/m32c/m32c-modes.def: Add precision to PSI.
3186 * config/msp430/msp430-modes.def: Add precision to PSI.
3187 * config/rs6000/rs6000-modes.def: Add precision to PTI.
3188 * config/sh/sh-modes.def: Add precision to PSI and PDI.
3190 2013-10-29 Oleg Endo <olegendo@gcc.gnu.org>
3193 * config/sh/sh.md (*addc): Rename existing variations to ...
3194 (*addc_r_r_1, *addc_2r_1, *addc_r_1): ... these.
3195 (*addc_r_lsb, *addc_r_r_lsb, *addc_r_lsb_r, *addc_2r_lsb, *addc_r_msb,
3196 *addc_r_r_msb, *addc_2r_msb): New insn_and_split patterns.
3197 * config/sh/sh.c (addsubcosts): Handle some addc special cases.
3199 2013-10-29 Teresa Johnson <tejohnson@google.com>
3202 * tree-ssa-tail-merge.c (replace_block_by): Tolerate profile
3203 insanities when updating probabilities.
3205 2013-10-29 David Malcolm <dmalcolm@redhat.com>
3207 * gdbhooks.py (CGraphNodePrinter.to_string): Update gdb
3208 prettyprinter for cgraph_node to reflect the conversion of the
3209 symtable types to a C++ class hierarchy: it now *is* a
3210 symtab_node_base, rather than having one (named "symbol").
3212 2013-10-29 Balaji V. Iyer <balaji.v.iyer@intel.com>
3214 * builtins.c (is_builtin_name): Added a check for __cilkrts_detach and
3215 __cilkrts_pop_frame. If matched, then return true for built-in
3217 (expand_builtin): Added BUILT_IN_CILK_DETACH and
3218 BUILT_IN_CILK_POP_FRAME case.
3219 * langhooks-def.h (lhd_install_body_with_frame_cleanup): New prototype.
3220 (lhs_cilk_detect_spawn): Likewise.
3221 (LANG_HOOKS_DECLS): Added LANG_HOOKS_CILKPLUS.
3222 (LANG_HOOKS_CILKPLUS_DETECT_SPAWN_AND_UNWRAP): New #define.
3223 (LANG_HOOKS_CILKPLUS_FRAME_CLEANUP): Likewise.
3224 (LANG_HOOKS_CILKPLUS_GIMPLIFY_SPAWN): Likewise.
3225 (LANG_HOOKS_CILKPLUS): Likewise.
3226 * tree.h (CILK_SPAWN_FN): Likewise.
3227 * builtin.def (DEF_CILK_BUILTIN_STUB): Likewise.
3228 * Makefile.in (C_COMMON_OBJS): Added c-family/cilk.o.
3229 (OBJS): Added cilk-common.o.
3230 (BUILTINS_DEF): Added cilk-builtins.def.
3231 * langhooks.c (lhd_install_body_with_frame_cleanup): New function.
3232 (lhd_cilk_detect_spawn): Likewise.
3233 * langhooks.h (lang_hooks_for_cilkplus): New struct.
3234 (struct lang_hooks): Added new field called "cilkplus."
3235 * cilk-common.c: New file.
3237 * cilk-builtins.def: Likewise.
3238 * cppbuiltin.c (define_builtin_macros_for_compilation_flags): Added
3239 "__cilk" macro and set it to 200.
3240 * function.h (struct function::cilk_frame_decl): New field.
3241 (struct function::is_cilk_function): Likewise.
3242 (struct function::calls_cilk_spawn): Likewise.
3243 * gimplify.c (gimplify_call_expr): Added a check if the function call
3244 being gimplified is a spawn detach point. If so, then add pop_frame
3245 and detach function calls.
3246 (gimplify_expr): Added a CILK_SPAWN_STMT and CILK_SYNC_STMT case
3247 for gimplifying _Cilk_spawn and _Cilk_sync statements.
3248 (gimplify_return_expr): Added a check for _Cilk_spawn usage in
3249 function. If so, added a _Cilk_sync and gimplified it.
3250 (gimplify_modify_expr): Added a check for _Cilk_spawn in MODIFY and
3251 INIT_EXPRs. If so, then call gimplify_cilk_spawn.
3252 * ipa-inline-analysis (initialize_inline_failed): Prevent inlining of
3254 (can_inline_edge_p): Prevent inling of spawnee function.
3255 * ira.c (ira_setup_eliminable_regset): Force usage of frame pointer
3256 for functions that use Cilk keywords.
3257 * tree-inline.h (struct copy_body_data::remap_var_for_cilk): New field.
3258 * tree-pretty-print.c (dump_generic_node): Added CILK_SPAWN_STMT and
3259 CILK_SYNC_STMT cases.
3260 * tree.def (DEFTREECODE): Added CILK_SPAWN_STMT and CILK_SYNC_STMT
3262 * generic.texi (CILK_SPAWN_STMT): Added documentation for _Cilk_spawn.
3263 (CILK_SYNC_STMT): Added documentation for _Cilk_sync.
3264 * passes.texi (Cilk Keywords): New section that describes the compiler
3265 code changes for handling Cilk Keywords.
3267 2013-10-29 David Malcolm <dmalcolm@redhat.com>
3269 Patch autogenerated by refactor_symtab.py from
3270 https://github.com/davidmalcolm/gcc-refactoring-scripts
3271 revision 58bb219cc090b2f4516a9297d868c245495ee622
3273 * asan.c (asan_finish_file): Update for conversion of symtab types to
3274 a true class hierarchy.
3275 * cfgexpand.c (estimated_stack_frame_size): Likewise.
3276 * cgraph.c (cgraph_get_body): Likewise.
3277 (cgraph_get_create_real_symbol_node): Likewise.
3278 (verify_cgraph_node): Likewise.
3279 (verify_edge_corresponds_to_fndecl): Likewise.
3280 (verify_edge_count_and_frequency): Likewise.
3281 (cgraph_will_be_removed_from_program_if_no_direct_calls): Likewise.
3282 (cgraph_can_remove_if_no_direct_calls_p): Likewise.
3283 (cgraph_can_remove_if_no_direct_calls_and_refs_p): Likewise.
3284 (cgraph_node_cannot_return): Likewise.
3285 (cgraph_set_pure_flag_1): Likewise.
3286 (cgraph_set_const_flag_1): Likewise.
3287 (cgraph_set_nothrow_flag_1): Likewise.
3288 (cgraph_make_node_local_1): Likewise.
3289 (cgraph_for_node_and_aliases): Likewise.
3290 (cgraph_for_node_thunks_and_aliases): Likewise.
3291 (cgraph_node_can_be_local_p): Likewise.
3292 (cgraph_node_cannot_be_local_p_1): Likewise.
3293 (cgraph_function_body_availability): Likewise.
3294 (dump_cgraph_node): Likewise.
3295 (cgraph_rtl_info): Likewise.
3296 (cgraph_mark_address_taken_node): Likewise.
3297 (cgraph_remove_node): Likewise.
3298 (cgraph_release_function_body): Likewise.
3299 (cgraph_update_edges_for_call_stmt_node): Likewise.
3300 (cgraph_redirect_edge_call_stmt_to_callee): Likewise.
3301 (cgraph_make_edge_direct): Likewise.
3302 (cgraph_resolve_speculation): Likewise.
3303 (cgraph_speculative_call_info): Likewise.
3304 (cgraph_turn_edge_to_speculative): Likewise.
3305 (cgraph_create_edge_1): Likewise.
3306 (cgraph_set_call_stmt): Likewise.
3307 (cgraph_node_for_asm): Likewise.
3308 (cgraph_add_thunk): Likewise.
3309 (cgraph_same_body_alias): Likewise.
3310 (cgraph_create_function_alias): Likewise.
3311 (cgraph_create_node): Likewise.
3312 (cgraph_create_empty_node): Likewise.
3313 (record_function_versions): Likewise.
3314 (used_from_object_file_p): Likewise.
3315 * cgraph.h (symtab_can_be_discarded): Likewise.
3316 (symtab_real_symbol_p): Likewise.
3317 (cgraph_mark_force_output_node): Likewise.
3318 (cgraph_edge_recursive_p): Likewise.
3319 (symtab_alias_target): Likewise.
3320 (varpool_all_refs_explicit_p): Likewise.
3321 (varpool_can_remove_if_no_refs): Likewise.
3322 (cgraph_only_called_directly_or_aliased_p): Likewise.
3323 (cgraph_next_function_with_gimple_body): Likewise.
3324 (cgraph_first_function_with_gimple_body): Likewise.
3325 (cgraph_function_with_gimple_body_p): Likewise.
3326 (cgraph_next_function): Likewise.
3327 (cgraph_first_function): Likewise.
3328 (cgraph_next_defined_function): Likewise.
3329 (cgraph_first_defined_function): Likewise.
3330 (varpool_next_defined_variable): Likewise.
3331 (varpool_first_defined_variable): Likewise.
3332 (varpool_next_static_initializer): Likewise.
3333 (varpool_first_static_initializer): Likewise.
3334 (varpool_next_variable): Likewise.
3335 (varpool_first_variable): Likewise.
3336 (varpool_node_name): Likewise.
3337 (varpool): Likewise.
3339 (is_a_helper <varpool_node>::test): Likewise.
3340 (is_a_helper <cgraph_node>::test): Likewise.
3341 (varpool_variable_node): Likewise.
3342 (cgraph_function_or_thunk_node): Likewise.
3343 (varpool_alias_target): Likewise.
3344 (cgraph_alias_target): Likewise.
3345 (cgraph_node_name): Likewise.
3346 (varpool_node_asm_name): Likewise.
3347 (cgraph_node_asm_name): Likewise.
3348 * cgraphbuild.c (remove_cgraph_callee_edges): Likewise.
3349 (cgraph_rebuild_references): Likewise.
3350 (rebuild_cgraph_edges): Likewise.
3351 (record_eh_tables): Likewise.
3352 (build_cgraph_edges): Likewise.
3353 (mark_store): Likewise.
3354 (mark_load): Likewise.
3355 (mark_address): Likewise.
3356 (record_type_list): Likewise.
3357 (record_reference): Likewise.
3358 * cgraphclones.c (cgraph_materialize_all_clones): Likewise.
3359 (cgraph_materialize_clone): Likewise.
3360 (cgraph_function_versioning): Likewise.
3361 (cgraph_copy_node_for_versioning): Likewise.
3362 (update_call_expr): Likewise.
3363 (cgraph_find_replacement_node): Likewise.
3364 (cgraph_create_virtual_clone): Likewise.
3365 (cgraph_clone_node): Likewise.
3366 * cgraphunit.c (compile): Likewise.
3367 (output_weakrefs): Likewise.
3368 (output_in_order): Likewise.
3369 (expand_function): Likewise.
3370 (assemble_thunks_and_aliases): Likewise.
3371 (expand_thunk): Likewise.
3372 (mark_functions_to_output): Likewise.
3373 (handle_alias_pairs): Likewise.
3374 (analyze_functions): Likewise.
3375 (walk_polymorphic_call_targets): Likewise.
3376 (varpool_finalize_decl): Likewise.
3377 (process_function_and_variable_attributes): Likewise.
3378 (cgraph_process_same_body_aliases): Likewise.
3379 (analyze_function): Likewise.
3380 (cgraph_add_new_function): Likewise.
3381 (cgraph_finalize_function): Likewise.
3382 (referred_to_p): Likewise.
3383 (cgraph_reset_node): Likewise.
3384 (cgraph_process_new_functions): Likewise.
3385 (enqueue_node): Likewise.
3386 (decide_is_symbol_needed): Likewise.
3387 * coverage.c (coverage_compute_profile_id): Likewise.
3388 * dbxout.c (dbxout_expand_expr): Likewise.
3389 * dwarf2out.c (premark_types_used_by_global_vars_helper): Likewise.
3390 (reference_to_unused): Likewise.
3391 * gimple-fold.c (can_refer_decl_in_current_unit_p): Likewise.
3392 * gimplify.c (unvisit_body): Likewise.
3393 (unshare_body): Likewise.
3394 * ipa-cp.c (ipcp_generate_summary): Likewise.
3395 (ipcp_decision_stage): Likewise.
3396 (identify_dead_nodes): Likewise.
3397 (decide_whether_version_node): Likewise.
3398 (decide_about_value): Likewise.
3399 (perhaps_add_new_callers): Likewise.
3400 (create_specialized_node): Likewise.
3401 (update_profiling_info): Likewise.
3402 (ipcp_propagate_stage): Likewise.
3403 (estimate_local_effects): Likewise.
3404 (good_cloning_opportunity_p): Likewise.
3405 (devirtualization_time_bonus): Likewise.
3406 (propagate_constants_accross_call): Likewise.
3407 (initialize_node_lattices): Likewise.
3408 (ipcp_cloning_candidate_p): Likewise.
3409 (determine_versionability): Likewise.
3410 (print_all_lattices): Likewise.
3411 (print_lattice): Likewise.
3412 (ipcp_discover_new_direct_edges): Likewise.
3413 * ipa-devirt.c (ipa_devirt): Likewise.
3414 (likely_target_p): Likewise.
3415 (update_type_inheritance_graph): Likewise.
3416 (possible_polymorphic_call_target_p): Likewise.
3417 (dump_possible_polymorphic_call_targets): Likewise.
3418 (devirt_variable_node_removal_hook): Likewise.
3419 (record_binfo): Likewise.
3420 (maybe_record_node): Likewise.
3421 (build_type_inheritance_graph): Likewise.
3422 * ipa-inline-analysis.c (inline_write_summary): Likewise.
3423 (inline_generate_summary): Likewise.
3424 (inline_analyze_function): Likewise.
3425 (do_estimate_growth): Likewise.
3426 (simple_edge_hints): Likewise.
3427 (estimate_node_size_and_time): Likewise.
3428 (estimate_edge_devirt_benefit): Likewise.
3429 (compute_inline_parameters): Likewise.
3430 (estimate_function_body_sizes): Likewise.
3431 (compute_bb_predicates): Likewise.
3432 (initialize_inline_failed): Likewise.
3433 (dump_inline_summary): Likewise.
3434 (dump_inline_edge_summary): Likewise.
3435 * ipa-inline-transform.c (inline_transform): Likewise.
3436 (preserve_function_body_p): Likewise.
3437 (save_inline_function_body): Likewise.
3438 (inline_call): Likewise.
3439 (clone_inlined_nodes): Likewise.
3440 (can_remove_node_now_p): Likewise.
3441 (can_remove_node_now_p_1): Likewise.
3442 * ipa-inline.c (early_inliner): Likewise.
3443 (early_inline_small_functions): Likewise.
3444 (inline_always_inline_functions): Likewise.
3445 (ipa_inline): Likewise.
3446 (flatten_function): Likewise.
3447 (inline_small_functions): Likewise.
3448 (speculation_useful_p): Likewise.
3449 (recursive_inlining): Likewise.
3450 (update_caller_keys): Likewise.
3451 (reset_edge_caches): Likewise.
3452 (update_edge_key): Likewise.
3453 (edge_badness): Likewise.
3454 (relative_time_benefit): Likewise.
3455 (want_inline_self_recursive_call_p): Likewise.
3456 (want_inline_small_function_p): Likewise.
3457 (want_early_inline_function_p): Likewise.
3458 (num_calls): Likewise.
3459 (can_early_inline_edge_p): Likewise.
3460 (can_inline_edge_p): Likewise.
3461 (report_inline_failed_reason): Likewise.
3462 * ipa-profile.c (ipa_profile): Likewise.
3463 (ipa_propagate_frequency): Likewise.
3464 (ipa_propagate_frequency_1): Likewise.
3465 (ipa_profile_generate_summary): Likewise.
3466 * ipa-prop.c (ipcp_transform_function): Likewise.
3467 (read_replacements_section): Likewise.
3468 (ipa_prop_read_section): Likewise.
3469 (ipa_modify_call_arguments): Likewise.
3470 (ipa_print_node_params): Likewise.
3471 (propagate_controlled_uses): Likewise.
3472 (update_indirect_edges_after_inlining): Likewise.
3473 (remove_described_reference): Likewise.
3474 (ipa_make_edge_direct_to_target): Likewise.
3475 (ipa_analyze_node): Likewise.
3476 (ipa_analyze_params_uses): Likewise.
3477 (ipa_compute_jump_functions): Likewise.
3478 (ipa_get_callee_param_type): Likewise.
3479 (ipa_print_node_jump_functions): Likewise.
3480 (ipa_initialize_node_params): Likewise.
3481 (ipa_populate_param_decls): Likewise.
3482 (ipa_func_spec_opts_forbid_analysis_p): Likewise.
3483 (write_agg_replacement_chain): Likewise.
3484 (ipa_write_node_info): Likewise.
3485 (ipa_edge_duplication_hook): Likewise.
3486 (try_decrement_rdesc_refcount): Likewise.
3487 * ipa-pure-const.c (propagate_nothrow): Likewise.
3488 (propagate_pure_const): Likewise.
3489 (pure_const_read_summary): Likewise.
3490 (pure_const_write_summary): Likewise.
3491 (analyze_function): Likewise.
3492 * ipa-ref-inline.h (ipa_ref_referred_ref_list): Likewise.
3493 (ipa_ref_referring_ref_list): Likewise.
3494 * ipa-ref.c (ipa_clear_stmts_in_references): Likewise.
3495 (ipa_remove_stmt_references): Likewise.
3496 (ipa_find_reference): Likewise.
3497 (ipa_dump_referring): Likewise.
3498 (ipa_dump_references): Likewise.
3499 (ipa_record_reference): Likewise.
3500 * ipa-reference.c (ipa_reference_read_optimization_summary): Likewise.
3501 (ipa_reference_write_optimization_summary): Likewise.
3502 (write_node_summary_p): Likewise.
3503 (propagate): Likewise.
3504 (read_write_all_from_decl): Likewise.
3505 (generate_summary): Likewise.
3506 (analyze_function): Likewise.
3507 (propagate_bits): Likewise.
3508 (ipa_reference_get_not_written_global): Likewise.
3509 (ipa_reference_get_not_read_global): Likewise.
3510 * ipa-split.c (execute_split_functions): Likewise.
3511 (split_function): Likewise.
3512 * ipa-utils.c (ipa_merge_profiles): Likewise.
3513 (dump_cgraph_node_set): Likewise.
3514 (ipa_reverse_postorder): Likewise.
3515 (ipa_edge_within_scc): Likewise.
3516 (ipa_get_nodes_in_cycle): Likewise.
3517 (ipa_free_postorder_info): Likewise.
3518 (ipa_reduced_postorder): Likewise.
3519 (searchc): Likewise.
3520 (recursive_call_p): Likewise.
3521 * ipa.c (ipa_cdtor_merge): Likewise.
3522 (record_cdtor_fn): Likewise.
3523 (function_and_variable_visibility): Likewise.
3524 (varpool_externally_visible_p): Likewise.
3525 (cgraph_externally_visible_p): Likewise.
3526 (comdat_can_be_unshared_p): Likewise.
3527 (comdat_can_be_unshared_p_1): Likewise.
3528 (address_taken_from_non_vtable_p): Likewise.
3529 (ipa_discover_readonly_nonaddressable_vars): Likewise.
3530 (symtab_remove_unreachable_nodes): Likewise.
3531 (walk_polymorphic_call_targets): Likewise.
3532 (process_references): Likewise.
3533 (enqueue_node): Likewise.
3534 (has_addr_references_p): Likewise.
3535 (cgraph_non_local_node_p_1): Likewise.
3536 * is-a.h (varpool_analyze_node): Likewise.
3537 * lto-cgraph.c (input_symtab): Likewise.
3538 (merge_profile_summaries): Likewise.
3539 (input_cgraph_1): Likewise.
3540 (input_edge): Likewise.
3541 (input_varpool_node): Likewise.
3542 (input_node): Likewise.
3543 (input_overwrite_node): Likewise.
3544 (compute_ltrans_boundary): Likewise.
3545 (output_refs): Likewise.
3546 (lto_output_varpool_node): Likewise.
3547 (lto_output_node): Likewise.
3548 (reachable_from_other_partition_p): Likewise.
3549 (referenced_from_other_partition_p): Likewise.
3550 (lto_output_edge): Likewise.
3551 (output_node_opt_summary): Likewise.
3552 (add_node_to): Likewise.
3553 (reachable_from_this_partition_p): Likewise.
3554 (lto_set_symtab_encoder_in_partition): Likewise.
3555 (lto_symtab_encoder_in_partition_p): Likewise.
3556 (lto_set_symtab_encoder_encode_initializer): Likewise.
3557 (lto_symtab_encoder_encode_initializer_p): Likewise.
3558 (lto_set_symtab_encoder_encode_body): Likewise.
3559 (lto_symtab_encoder_encode_body_p): Likewise.
3560 * lto-section-in.c (lto_free_function_in_decl_state_for_node):
3562 * lto-streamer-in.c (lto_read_body): Likewise.
3563 (fixup_call_stmt_edges): Likewise.
3564 (fixup_call_stmt_edges_1): Likewise.
3565 * lto-streamer-out.c (produce_symtab): Likewise.
3566 (output_symbol_p): Likewise.
3567 (write_symbol): Likewise.
3568 (lto_output): Likewise.
3569 (copy_function): Likewise.
3570 (output_function): Likewise.
3571 * passes.c (function_called_by_processed_nodes_p): Likewise.
3572 (ipa_write_optimization_summaries): Likewise.
3573 (ipa_write_summaries): Likewise.
3574 (do_per_function_toporder): Likewise.
3575 (do_per_function): Likewise.
3576 (dump_passes): Likewise.
3577 * symtab.c (symtab_semantically_equivalent_p): Likewise.
3578 (symtab_nonoverwritable_alias): Likewise.
3579 (symtab_nonoverwritable_alias_1): Likewise.
3580 (symtab_for_node_and_aliases): Likewise.
3581 (symtab_resolve_alias): Likewise.
3582 (fixup_same_cpp_alias_visibility): Likewise.
3583 (symtab_alias_ultimate_target): Likewise.
3584 (symtab_used_from_object_file_p): Likewise.
3585 (verify_symtab_base): Likewise.
3586 (dump_symtab_base): Likewise.
3587 (symtab_node_name): Likewise.
3588 (symtab_node_asm_name): Likewise.
3589 (symtab_dissolve_same_comdat_group_list): Likewise.
3590 (symtab_add_to_same_comdat_group): Likewise.
3591 (symtab_unregister_node): Likewise.
3592 (symtab_insert_node_to_hashtable): Likewise.
3593 (symtab_register_node): Likewise.
3594 (unlink_from_assembler_name_hash): Likewise.
3595 (insert_to_assembler_name_hash): Likewise.
3596 (eq_assembler_name): Likewise.
3597 (hash_node_by_assembler_name): Likewise.
3598 (eq_node): Likewise.
3599 (hash_node): Likewise.
3600 * toplev.c (wrapup_global_declaration_2): Likewise.
3601 * trans-mem.c (ipa_tm_execute): Likewise.
3602 (ipa_tm_transform_clone): Likewise.
3603 (ipa_tm_transform_transaction): Likewise.
3604 (ipa_tm_transform_calls_redirect): Likewise.
3605 (ipa_tm_insert_gettmclone_call): Likewise.
3606 (ipa_tm_insert_irr_call): Likewise.
3607 (ipa_tm_create_version): Likewise.
3608 (ipa_tm_create_version_alias): Likewise.
3609 (ipa_tm_mark_forced_by_abi_node): Likewise.
3610 (ipa_tm_mark_force_output_node): Likewise.
3611 (ipa_tm_diagnose_tm_safe): Likewise.
3612 (ipa_tm_mayenterirr_function): Likewise.
3613 (ipa_tm_scan_irr_function): Likewise.
3614 (ipa_tm_note_irrevocable): Likewise.
3615 (ipa_tm_scan_calls_clone): Likewise.
3616 (get_cg_data): Likewise.
3617 * tree-eh.c (tree_could_trap_p): Likewise.
3618 * tree-emutls.c (ipa_lower_emutls): Likewise.
3619 (create_emultls_var): Likewise.
3620 (lower_emutls_function_body): Likewise.
3621 (gen_emutls_addr): Likewise.
3622 (emutls_decl): Likewise.
3623 (new_emutls_decl): Likewise.
3624 * tree-inline.c (tree_function_versioning): Likewise.
3625 (optimize_inline_calls): Likewise.
3626 (expand_call_inline): Likewise.
3627 (estimate_num_insns): Likewise.
3628 (copy_bb): Likewise.
3629 (delete_unreachable_blocks_update_callgraph): Likewise.
3630 * tree-nested.c (gimplify_all_functions): Likewise.
3631 (create_nesting_tree): Likewise.
3632 (check_for_nested_with_variably_modified): Likewise.
3633 * tree-pretty-print.c (dump_function_header): Likewise.
3634 * tree-profile.c (tree_profiling): Likewise.
3635 * tree-sra.c (ipa_sra_preliminary_function_checks): Likewise.
3636 (modify_function): Likewise.
3637 (convert_callers): Likewise.
3638 (convert_callers_for_node): Likewise.
3639 * tree-ssa-structalias.c (ipa_pta_execute): Likewise.
3640 (associate_varinfo_to_alias): Likewise.
3641 (create_variable_info_for): Likewise.
3642 (get_constraint_for_ssa_var): Likewise.
3643 * tree-vectorizer.c (increase_alignment): Likewise.
3644 * tree.c (find_decls_types_in_var): Likewise.
3645 (find_decls_types_in_node): Likewise.
3646 (free_lang_data_in_decl): Likewise.
3647 * value-prof.c (gimple_ic_transform): Likewise.
3648 (gimple_ic): Likewise.
3649 (check_ic_target): Likewise.
3650 (init_node_map): Likewise.
3651 * varasm.c (decl_binds_to_current_def_p): Likewise.
3652 (default_binds_local_p_1): Likewise.
3653 (dump_tm_clone_pairs): Likewise.
3654 (assemble_alias): Likewise.
3655 (find_decl): Likewise.
3656 (mark_decl_referenced): Likewise.
3657 * varpool.c (varpool_for_node_and_aliases): Likewise.
3658 (varpool_extra_name_alias): Likewise.
3659 (varpool_create_variable_alias): Likewise.
3660 (add_new_static_var): Likewise.
3661 (varpool_finalize_named_section_flags): Likewise.
3662 (varpool_remove_unreferenced_decls): Likewise.
3663 (enqueue_node): Likewise.
3664 (varpool_assemble_decl): Likewise.
3665 (assemble_aliases): Likewise.
3666 (varpool_analyze_node): Likewise.
3667 (cgraph_variable_initializer_availability): Likewise.
3668 (varpool_add_new_variable): Likewise.
3669 (ctor_for_folding): Likewise.
3670 (dump_varpool_node): Likewise.
3671 (varpool_remove_initializer): Likewise.
3672 (varpool_remove_node): Likewise.
3673 (varpool_node_for_decl): Likewise.
3674 (varpool_create_empty_node): Likewise.
3675 * config/i386/i386.c (ix86_generate_version_dispatcher_body): Likewise.
3676 (ix86_get_function_versions_dispatcher): Likewise.
3678 2013-10-29 David Malcolm <dmalcolm@redhat.com>
3680 * cgraph.h (symtab_node_base): Convert to a class;
3681 add GTY((desc ("%h.type"), tag ("SYMTAB_SYMBOL"))), and take
3682 chain_next/prev from symtab_node_def.
3683 (cgraph_node): Inherit from symtab_node; add GTY option
3684 tag ("SYMTAB_FUNCTION").
3685 (varpool_node): Inherit from symtab_node; add GTY option
3686 tag ("SYMTAB_VARIABLE").
3687 (symtab_node_def): Remove.
3688 (is_a_helper <cgraph_node>::test (symtab_node_def *)): Convert to...
3689 (is_a_helper <cgraph_node>::test (symtab_node_base *)): ...this.
3690 (is_a_helper <varpool_node>::test (symtab_node_def *)): Convert to...
3691 (is_a_helper <varpool_node>::test (symtab_node_base *)): ...this.
3693 * ipa-ref.h (symtab_node_def): Drop.
3694 (symtab_node): Change underlying type from symtab_node_def to
3696 (const_symtab_node): Likwise.
3698 * is-a.h: Update examples in comment.
3700 * symtab.c (symtab_hash): Change symtab_node_def to symtab_node_base.
3701 (assembler_name_hash): Likewise.
3703 2013-10-29 Martin Liska <marxin.liska@gmail.com>
3705 * doc/tree-ssa.texi (gimple_phi_result): Document.
3706 (gimple_phi_num_args, gimple_phi_arg): Likewise.
3707 (gimple_phi_arg_edge, gimple_phi_arg_def): Likewise.
3708 (PHI_RESULT, PHI_NUM_ARGS): Remove.
3709 (PHI_ARG_ELT, PHI_ARG_EDGE, PHI_ARG_DEF): Likewise.
3711 2013-10-29 Andrew MacLeod <amacleod@redhat.com>
3713 * expr.h: Revert change and include tree-core.h.
3714 * rtl.h: Revert change and don't include tree-core.h.
3716 2013-10-29 Andrew MacLeod <amacleod@redhat.com>
3718 * config/darwin.c: Include gimple.h.
3719 * config/i386/winnt.c: Likewise.
3721 2013-10-29 Marc Glisse <marc.glisse@inria.fr>
3723 PR tree-optimization/19831
3724 * tree-ssa-alias.c (stmt_kills_ref_p_1): Handle BUILT_IN_FREE.
3726 2013-10-29 Andrew MacLeod <amacleod@redhat.com>
3728 * tree-outof-ssa.h: Remove include files.
3729 * tree-outof-ssa.c: Add required include files from tree-outof-ssa.h.
3731 * tree-ssa-coalesce.c: Likewise.
3732 * cfgexpand.c: Likewise.
3733 * tree-ssa-ter.c: Likewise.
3734 * ipa-prop.h: Remove gimple.h and tree-core.h from include list.
3735 * lto-streamer.h: Likewise.
3736 * cgraphbuild.c: Add gimple.h to include list.
3737 * data-streamer-in.c: Likewise.
3738 * ipa-cp.c: Likewise.
3739 * tree-streamer.c: Likewise.
3740 * lto-compress.c: Likewise.
3741 * ipa-reference.c: Likewise.
3742 * data-streamer-out.c: Likewise.
3743 * lto-cgraph.c: Likewise.
3744 * cgraphclones.c: Likewise.
3745 * ipa-utils.c: Likewise.
3746 * data-streamer.c: Likewise.
3747 * ipa-split.c: Likewise.
3748 * lto-section-in.c: Likewise.
3749 * tree-streamer-out.c: Likewise.
3750 * ipa-prop.c: Likewise.
3751 * tree-streamer-in.c: Likewise.
3752 * symtab.c: Likewise.
3753 * opts-global.c: Likewise.
3754 * lto-opts.c: Likewise.
3755 * lto-section-out.c: Likewise.
3756 * lto-streamer.c: Likewise.
3757 * rtl.h: Add tree-core.h to include list.
3758 * expr.h: Remove tree-core.h from include list.
3759 * gimple.h: Likewise.
3760 * ipa-utils.h: Likewise.
3761 * streamer-hooks.h: Likewise.
3762 * streamer-hooks.c: Include input.h.
3764 2013-10-29 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3766 * config/arm/arm.c (cortexa7_extra_costs): New table.
3767 (arm_cortex_a7_tune): New.
3768 * config/arm/arm-cores.def: Use cortex_a7 tuning for cortex-a7.
3770 2013-10-29 Eric Botcazou <ebotcazou@adacore.com>
3772 * expr.c (expand_expr_real_1) <MEM_EXPR>: Eliminate small redundancy.
3774 2013-10-29 David Malcolm <dmalcolm@redhat.com>
3776 * doc/gty.texi ("Inheritance and GTY"): Make it clear that
3777 to use autogenerated markers for a class-hierarchy, every class
3778 must have a GTY marker.
3779 * gengtype.h (struct type): Add linked list of subclasses to
3780 the "s" member of the union.
3781 (add_subclass): New decl.
3782 * gengtype-state.c (read_state_struct_type): Set up subclass
3784 * gengtype.c (get_ultimate_base_class): New.
3785 (add_subclass): New.
3786 (new_structure): Set up subclass linked list.
3787 (set_gc_used_type): Propagate usage information to subclasses.
3788 (output_mangled_typename): Use get_ultimate_base_class.
3789 (walk_subclasses): Use the subclass linked list, avoiding an
3790 O(N^2) when writing out all types.
3791 (walk_type): Issue an error if the base class is missing a tag,
3792 rather than generating bogus C code. Add a gcc_unreachable
3793 default case, in case people omit tags from concrete subclasses,
3794 or get the values wrong.
3795 (write_func_for_structure): Issue an error for subclasses for
3796 which the base doesn't have a "desc", since otherwise the
3797 autogenerated routines for the base would silently fail to visit
3798 any subclass fields.
3799 (write_root): Use get_ultimate_base_class, tweaking constness of
3800 tp to match that function's signature.
3802 2013-10-29 David Malcolm <dmalcolm@redhat.com>
3804 * doc/gty.texi (GTY Options): Add note about inheritance to
3805 description of desc and tag.
3806 (Inheritance and GTY): New.
3808 2013-10-29 David Malcolm <dmalcolm@redhat.com>
3810 * gengtype-parse.c (opts_have): Drop "static" so that
3811 we can use this from gengtype.c.
3812 * gengtype.c (set_gc_used_type): Mark any base class as used;
3813 update field traversal to visit inherited fields.
3814 (output_mangled_typename): Convert references to classes within
3815 an inheritance hierarchy to reference the ultimate base class,
3816 since only it will have gt_ functions.
3817 (get_string_option): New.
3818 (walk_subclasses): New.
3819 (walk_type): Treat GTY structs that have a "desc" as being the
3820 root of an inheritance hierarchy. Generate a switch on it
3821 within the marking function which walks all subclasses, adding
3822 cases for them via walk_subclasses. For subclasses, visit all
3823 fields of the type (including inherited ones).
3824 (write_func_for_structure): Don't write fns for subclasses, only
3825 for the ultimate base class within an inheritance hierarchy.
3826 Subclasses-marking will be handled by the base class marking functions.
3827 (write_types): Likewise.
3828 (write_local_func_for_structure): Likewise.
3829 (USED_BY_TYPED_GC_P): Emit allocators for subclasses that have
3830 a "tag" option (and are thus concrete subclasses).
3831 (write_root): Use the marker function for the ultimate base class.
3832 * gengtype.h (FOR_ALL_INHERITED_FIELDS): New.
3833 (opts_have): Add declaration.
3835 2013-10-28 Vladimir Makarov <vmakarov@redhat.com>
3837 * lra-spills.c (lra_final_code_change): Remove useless move insns
3838 originated from moves of pseudos.
3840 2013-10-28 Jeff Law <law@redhat.com>
3842 * lower-subreg.c (resolve_simple_move): Fix comment typo.
3844 2013-10-28 Trevor Saunders <tsaunders@mozilla.com>
3846 * df-scan.c (df_collection_rec): Adjust.
3847 (copy_defs): New constant.
3848 (copy_uses): Likewise.
3849 (copy_eq_uses): Likewise.
3850 (copy_mw): Likewise.
3851 (copy_all): Likewise.
3852 (df_insn_rescan): Adjust.
3853 (df_notes_rescan): Likewise.
3854 (df_swap_refs): Likewise.
3855 (df_sort_and_compress_refs): Likewise.
3856 (df_sort_and_compress_mws): Likewise.
3857 (df_install_refs): Likewise.
3858 (df_install_mws): Likewise.
3859 (df_refs_add_to_chains): Add flags parameter controlling which vectors
3861 (df_bb_refs_record): Adjust.
3862 (df_record_entry_block_defs): Likewise.
3863 (df_record_exit_block_defs): Likewise.
3864 (df_refs_verify): Likewise.
3865 (df_mws_verify): Likewise.
3866 (df_insn_refs_verify): Likewise.
3867 (df_bb_verify): Likewise.
3868 * ipa-pure-const.c (finish_state): Remove.
3869 (propagate): Adjust.
3870 * tree-data-ref.c tree-ssa-alias.c tree-ssa-loop-ivcanon.c
3871 tree-ssa-threadedge.c tree-vect-loop-manip.c tree-vect-slp.c
3872 var-tracking.c: Adjust.
3873 * vec.c (stack_vecs): Remove.
3874 (register_stack_vec): Likewise.
3875 (stack_vec_register_index): Likewise.
3876 (unregister_stack_vec): Likewise.
3877 * vec.h (struct va_stack): Remove.
3878 (struct vec<T, A, vl_ptr>): Specialize as
3879 struct vec<T, va_heap, vl_ptr> instead since va_heap is the only
3880 allocation strategy compatable with the vl_ptr layout.
3881 (struct vec<T, va_gc, vl_ptr>): Remove because it now gets an empty
3882 specialization anyway.
3883 (class stack_vec): New class.
3884 (vec_stack_alloc): Remove.
3885 (vec<T, va_heap, vl_ptr>::using_auto_storage): New method.
3887 2013-10-28 Alexander Ivchenko <alexander.ivchenko@intel.com>
3888 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
3889 Sergey Lega <sergey.s.lega@intel.com>
3890 Anna Tikhonova <anna.tikhonova@intel.com>
3891 Ilya Tocar <ilya.tocar@intel.com>
3892 Andrey Turetskiy <andrey.turetskiy@intel.com>
3893 Ilya Verbin <ilya.verbin@intel.com>
3894 Kirill Yukhin <kirill.yukhin@intel.com>
3895 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
3897 * config/i386/i386.md (prefetch): Allow TARGET_AVX512PF.
3898 (*prefetch_avx512pf_<mode>): New.
3899 * config/i386/sse.md (avx512f_vmcmp<mode>3): Ditto.
3900 (avx512f_maskcmp<mode>3): Ditto.
3901 (vashrv16si3): Ditto.
3903 2013-10-28 Alexander Ivchenko <alexander.ivchenko@intel.com>
3904 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
3905 Sergey Lega <sergey.s.lega@intel.com>
3906 Anna Tikhonova <anna.tikhonova@intel.com>
3907 Ilya Tocar <ilya.tocar@intel.com>
3908 Andrey Turetskiy <andrey.turetskiy@intel.com>
3909 Ilya Verbin <ilya.verbin@intel.com>
3910 Kirill Yukhin <kirill.yukhin@intel.com>
3911 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
3913 * config/i386/i386.md (any_truncate): New.
3914 (trunsuffix): Ditto.
3915 * config/i386/predicates.md (const_8_to_9_operand): New.
3916 (const_10_to_11_operand): Ditto.
3917 (const_12_to_13_operand): Ditto.
3918 (const_14_to_15_operand): Ditto.
3919 (const_16_to_19_operand): Ditto.
3920 (const_20_to_23_operand): Ditto.
3921 (const_24_to_27_operand): Ditto.
3922 (const_28_to_31_operand): Ditto.
3923 * config/i386/sse.md (unspec): Add UNSPEC_UNSIGNED_FIX_NOTRUNC.
3924 (cvtusi2<ssescalarmodesuffix>32): New.
3925 (cvtusi2<ssescalarmodesuffix>64): Ditto.
3926 (ufloatv16siv16sf2): Ditto.
3927 (avx512f_fix_notruncv16sfv16si): Ditto.
3928 (avx512f_ufix_notruncv16sfv16si): Ditto.
3929 (avx512f_vcvtss2usi): Ditto.
3930 (avx512f_vcvtss2usiq): Ditto.
3931 (avx512f_vcvttss2usi): Ditto.
3932 (avx512f_vcvttss2usiq): Ditto.
3933 (avx512f_vcvtsd2usi): Ditto.
3934 (avx512f_vcvtsd2usiq): Ditto.
3935 (avx512f_vcvttsd2usi): Ditto.
3936 (avx512f_vcvttsd2usiq): Ditto.
3937 (ufloatv8siv8df): Ditto.
3938 (avx512f_cvtdq2pd512_2): Ditto.
3939 (avx512f_cvtpd2dq512): Ditto.
3940 (avx512f_ufix_notruncv8dfv8si): Ditto.
3941 (avx512f_cvtpd2ps512): Ditto.
3942 (vec_unpacks_lo_v16sf): Ditto.
3943 (vec_unpacks_hi_v16sf): Ditto.
3944 (vec_unpacks_float_hi_v16si): Ditto.
3945 (vec_unpacks_float_lo_v16si): Ditto.
3946 (avx512f_unpckhps512): Ditto.
3947 (avx512f_unpcklps512): Ditto.
3948 (avx512f_movshdup512): Ditto.
3949 (avx512f_movsldup512): Ditto.
3950 (vec_extract_lo_v32hi): Ditto.
3951 (vec_extract_hi_v32hi): Ditto.
3952 (vec_extract_lo_v64qi): Ditto.
3953 (vec_extract_hi_v64qi): Ditto.
3954 (avx512f_unpckhpd512): Ditto.
3955 (avx512f_movddup512): Ditto.
3956 (avx512f_unpcklpd512): Ditto.
3957 (*avx512f_unpcklpd512): Ditto.
3958 (avx512f_shufps512_1): Ditto.
3959 (avx512f_shufpd512_1): Ditto.
3960 (avx512f_interleave_highv8di): Ditto.
3961 (avx512f_interleave_lowv8di): Ditto.
3962 (PMOV_DST_MODE): Ditto.
3963 (pmov_src_mode): Ditto.
3964 (pmov_src_lower): Ditto.
3966 (*avx512f_<code><pmov_src_lower><mode>2): Ditto.
3967 (*avx512f_<code>v8div16qi2): Ditto.
3968 (*avx512f_<code>v8div16qi2_store): Ditto.
3969 (vec_widen_umult_even_v16si): Ditto.
3970 (*vec_widen_umult_even_v16si): Ditto.
3971 (vec_widen_smult_even_v16si): Ditto.
3972 (*vec_widen_smult_even_v16si): Ditto.
3973 (avx512f_interleave_highv16si): Ditto.
3974 (avx512f_interleave_lowv16si): Ditto.
3975 (avx512f_<code>v16qiv16si2): Ditto.
3976 (avx512f_<code>v16hiv16si2): Ditto.
3977 (avx512f_<code>v8qiv8di2): Ditto.
3978 (avx512f_<code>v8hiv8di2): Ditto.
3979 (avx512f_<code>v8siv8di2): Ditto.
3980 (avx512cd_maskb_vec_dupv8di): Ditto.
3981 (avx512cd_maskw_vec_dupv16si): Ditto.
3982 (avx512f_vcvtph2ps512): Ditto.
3983 (avx512f_vcvtps2ph512): Ditto.
3984 (VEC_EXTRACT_MODE): Extened with wider modes.
3985 (VEC_PERM_AVX2): Ditto.
3986 (VEC_PERM_CONST): Ditto.
3988 2013-10-28 Joern Rennecke <joern.rennecke@embecosm.com>
3990 * config/arc/arc.c (arc_ccfsm_post_advance):
3991 Add comment about TYPE_RETURN.
3993 2013-10-28 Bin Cheng <bin.cheng@arm.com>
3995 * tree-ssa-loop-ivopts.c (strip_offset_1): Change parameter type.
3996 Count DECL_FIELD_BIT_OFFSET for COMPONENT_REF.
3997 (strip_offset): Convert offset to unsigned number.
3999 2013-10-27 Tom de Vries <tom@codesourcery.com>
4001 * cfgexpand.c (gimple_expand_cfg): Remove test for parm_birth_insn.
4002 Don't commit insertions after NOTE_INSN_FUNCTION_BEG.
4004 2013-10-27 Oleg Endo <olegendo@gcc.gnu.org>
4006 * config/sh/sh.c (MSW, LSW): Move and rename macros to...
4007 * config/sh/sh.h (SH_REG_MSW_OFFSET, SH_REG_LSW_OFFSET): ... here.
4008 (TARGET_BIG_ENDIAN): New macro.
4009 * config/sh/sh.md: Use it instead of !TARGET_LITTLE_ENDIAN.
4010 Use SH_REG_MSW_OFFSET and SH_REG_LSW_OFFSET.
4011 * config/sh/sh.c: Likewise.
4012 * config/sh/sh.h: Likewise.
4014 2013-10-27 Hans-Peter Nilsson <hp@axis.com>
4016 * config/cris/cris.c (cris_emit_trap_for_misalignment): Replace the
4017 removed PRED_MUDFLAP with PRED_NORETURN. Correct file-path in comment.
4019 2013-10-26 Oleg Endo <olegendo@gcc.gnu.org>
4021 * config/sh/sh.md (movmemsi): Remove empty constraints and predicates.
4023 (cmpstr_t, cmpstrsi): Fix formatting.
4025 2013-10-26 Oleg Endo <olegendo@gcc.gnu.org>
4028 * config/sh/predicates.md (general_movdst_operand): Allow reg+reg
4029 addressing, do not use general_operand for memory operands.
4031 2013-10-26 Vladimir Makarov <vmakarov@redhat.com>
4034 2013-10-25 Vladimir Makarov <vmakarov@redhat.com>
4035 * lra-spills.c (lra_final_code_change): Remove useless move insns.
4037 2013-10-26 Jeff Law <law@redhat.com>
4039 * predict.c (PRED_MUDFLAP): Remove.
4040 * targhooks.c (build_va_arg_indirect_ref): Remove mudflap support.
4042 * Makefile.in (C_COMMON_OBJS): Remove tree-mudflap.
4043 (OBJS): Remove tree-nomudflap.o
4044 (GTFILES): Remove tree-mudflap.c
4045 * builtins.c (expand_builtin_alloc): Remove mudflap support.
4046 * gcc.c (MFWRAP_SPEC, MFLIB_SPEC): Likewise.
4047 (mfwrap_spec, mflib_spec): Likewise.
4048 (cpp_unique_options, cc1_options, static_specs): Likewise.
4049 * gimplify (gimplify_vla_decl, build_va_arg_indirect_ref): Likewise.
4050 * passes.def: Likewise.
4051 * toplev.c (compile_file, process_options): Likewise.
4052 * tree-inline.c (copy_tree_r): Likewise.
4053 * tree-pass.,h (make_pass_mudflap_1, make_pass_mudflap_2): Likewise.
4054 * varasm.c (make_decl_rtl, make_decl_rtl_for_debug): Likewise.
4055 (build_constant_desc, output_constant_def_contents): Likewise.
4056 (categorize_decl_for_section): Likewise.
4057 * tree-mudflap.c: Removed.
4058 * tree-mudflap.h: Removed.
4059 * tree-nomudflap.c: Removed.
4060 * bfin/uclinux.h (MFWRAP_SPEC): Remove.
4061 * moxie/uclinux.h (MFWRAP_SPEC): Likewise.
4062 * rs6000/aix.h (MFWRAP_SPEC, MFLIB_SPEC): Likewise.
4063 * config/sol2.h (MFLIB_SPEC): Likewise.
4064 * doc/install.texi: Remove mudflap references.
4065 * doc/passes.texi: Similarly.
4066 * doc/sourcebuild.texi: Similarly.
4067 * doc/invoke.texi: Remove mudlfap related options.
4069 2013-10-25 Vladimir Makarov <vmakarov@redhat.com>
4071 PR rtl-optimization/58759
4072 * lra-constraints.c (lra_constraints): Remove wrong condition to
4073 remove insn setting up an equivalent pseudo.
4075 2013-10-25 Vladimir Makarov <vmakarov@redhat.com>
4077 * config/rs6000/rs6000-protos.h
4078 (rs6000_secondary_memory_needed_mode): New prototype.
4079 * config/rs6000/rs6000.c: Include ira.h.
4080 (TARGET_LRA_P): Redefine.
4081 (rs6000_legitimate_offset_address_p): Call
4082 legitimate_constant_pool_address_p in strict mode for LRA.
4083 (rs6000_legitimate_address_p): Ditto.
4084 (legitimate_lo_sum_address_p): Add code for LRA. Use lra_in_progress.
4085 (rs6000_emit_move): Add LRA version of code to generate load/store
4087 (rs6000_secondary_memory_needed_mode): New.
4088 (rs6000_alloc_sdmode_stack_slot): Do nothing for LRA.
4089 (rs6000_secondary_reload_class): Return NO_REGS for LRA for
4090 constants, memory, and FP registers.
4091 (rs6000_lra_p): New.
4092 * config/rs6000/rs6000.h (SECONDARY_MEMORY_NEEDED_MODE): New macro.
4093 * config/rs6000/rs6000.opt (mlra): New option.
4094 * lra-spills.c (lra_final_code_change): Remove useless move insns.
4096 2013-10-25 Yufeng Zhang <yufeng.zhang@arm.com>
4098 * tree-ssa-math-opts.c (convert_plusminus_to_widen): Call
4099 has_single_use () and not do the conversion if has_single_use ()
4100 returns false for the multiplication result.
4102 2013-10-25 David Malcolm <dmalcolm@redhat.com>
4104 * tree.h (EXCEPTIONAL_CLASS_P): Rename parameter from "CODE"
4105 to "NODE", since this works on a "tree", not an
4107 (CONSTANT_CLASS_P): Likewise.
4110 (INDIRECT_REF_P): Likewise.
4111 (REFERENCE_CLASS_P): Likewise.
4112 (COMPARISON_CLASS_P): Likewise.
4113 (UNARY_CLASS_P): Likewise.
4114 (BINARY_CLASS_P): Likewise.
4115 (STATEMENT_CLASS_P): Likewise.
4116 (VL_EXP_CLASS_P): Likewise.
4117 (EXPRESSION_CLASS_P): Likewise.
4118 (IS_TYPE_OR_DECL_P): Likewise.
4120 2013-10-25 Marc Glisse <marc.glisse@inria.fr>
4122 * tree-ssa-alias.c (ao_ref_init_from_ptr_and_size): Look for an
4123 ADDR_EXPR in the defining statement.
4125 2013-10-25 Richard Biener <rguenther@suse.de>
4127 PR tree-optimization/58626
4128 * tree-loop-distribution.c (enum rdg_dep_type): Remove
4129 anti_dd, output_dd and input_dd.
4130 (struct rdg_edge): Remove level and relation members.
4131 (RDGE_LEVEL, RDGE_RELATION): Remove.
4132 (dot_rdg_1): Adjust.
4133 (create_rdg_edge_for_ddr): Remove.
4134 (create_rdg_edges_for_scalar): Adjust.
4135 (create_edge_for_control_dependence): Likewise.
4136 (create_rdg_edges): Split into ...
4137 (create_rdg_flow_edges): ... this
4138 (create_rdg_cd_edges): ... and this.
4140 (build_rdg): Likewise, do not compute data dependences or
4142 (pg_add_dependence_edges): New function.
4144 (distribute_loop): First apply all non-dependence based
4145 partition mergings. Then compute dependences between partitions
4146 and merge and order partitions according to them.
4148 2013-10-25 Eric Botcazou <ebotcazou@adacore.com>
4150 PR rtl-optimization/58831
4151 * alias.c (init_alias_analysis): At the beginning of each iteration,
4152 set the reg_seen[N] bit if static_reg_base_value[N] is non-null.
4154 2013-10-25 Eric Botcazou <ebotcazou@adacore.com>
4156 * recog.c (search_ofs): New static variable moved from...
4157 (peep2_find_free_register): ...here.
4158 (peephole2_optimize): Initialize it.
4160 2013-10-25 Tobias Burnus <burnus@net-b.de>
4162 * doc/invoke.texi (fopenmp): Change supported OpenMP version to 4.0.
4164 2013-10-25 Uros Bizjak <ubizjak@gmail.com>
4166 * config/i386/i386.h (TARGET_MPX): New define.
4167 (TARGET_MPX_P): Ditto.
4169 2013-10-24 Ilya Enkovich <ilya.enkovich@intel.com>
4171 * config/i386/constraints.md (B): New.
4174 * config/i386/i386-c.c (ix86_target_macros_internal): Add __MPX__.
4175 * config/i386/i386-modes.def (BND32): New.
4177 * config/i386/i386-protos.h (ix86_bnd_prefixed_insn_p): New.
4178 * config/i386/i386.c (isa_opts): Add mmpx.
4179 (regclass_map): Add bound registers.
4180 (dbx_register_map): Likewise.
4181 (dbx64_register_map): Likewise.
4182 (svr4_dbx_register_map): Likewise.
4184 (ix86_option_override_internal): Support MPX ISA.
4185 (ix86_conditional_register_usage): Support bound registers.
4186 (print_reg): Likewise.
4187 (ix86_code_end): Add MPX bnd prefix.
4188 (output_set_got): Likewise.
4189 (ix86_output_call_insn): Likewise.
4190 (ix86_print_operand): Add '!' (MPX bnd) print prefix support.
4191 (ix86_print_operand_punct_valid_p): Likewise.
4192 (ix86_print_operand_address): Support UNSPEC_BNDMK_ADDR and
4194 (ix86_class_likely_spilled_p): Add bound regs support.
4195 (ix86_hard_regno_mode_ok): Likewise.
4196 (x86_order_regs_for_local_alloc): Likewise.
4197 (ix86_bnd_prefixed_insn_p): New.
4198 * config/i386/i386.h (FIRST_PSEUDO_REGISTER): Fix to new value.
4199 (FIXED_REGISTERS): Add bound registers.
4200 (CALL_USED_REGISTERS): Likewise.
4201 (REG_ALLOC_ORDER): Likewise.
4202 (HARD_REGNO_NREGS): Likewise.
4204 (VALID_BND_REG_MODE): New.
4205 (FIRST_BND_REG): New.
4206 (LAST_BND_REG): New.
4207 (reg_class): Add BND_REGS.
4208 (REG_CLASS_NAMES): Likewise.
4209 (REG_CLASS_CONTENTS): Likewise.
4211 (ANY_BND_REG_P): New.
4213 (HI_REGISTER_NAMES): Add bound registers.
4214 * config/i386/i386.md (UNSPEC_BNDMK): New.
4215 (UNSPEC_BNDMK_ADDR): New.
4216 (UNSPEC_BNDSTX): New.
4217 (UNSPEC_BNDLDX): New.
4218 (UNSPEC_BNDLDX_ADDR): New.
4219 (UNSPEC_BNDCL): New.
4220 (UNSPEC_BNDCU): New.
4221 (UNSPEC_BNDCN): New.
4222 (UNSPEC_MPX_FENCE): New.
4225 (type): Add mpxmov, mpxmk, mpxchk, mpxld, mpxst.
4226 (length_immediate): Likewise.
4227 (prefix_0f): Likewise.
4229 (prefix_rep): Check for bnd prefix.
4230 (length_nobnd): New.
4231 (length): Use length_nobnd if specified.
4236 (*jcc_1): Add bnd prefix and rename length attr to length_nobnd.
4239 (simple_return_internal): Likewise.
4240 (simple_return_pop_internal): Likewise.
4241 (*indirect_jump): Add MPX bnd prefix.
4242 (*tablejump_1): Likewise.
4243 (simple_return_internal_long): Likewise.
4244 (simple_return_indirect_internal): Likewise.
4248 (*mov<mode>_internal_mpx): New.
4249 (<mode>_<bndcheck>): New.
4250 (*<mode>_<bndcheck>): New.
4255 * config/i386/predicates.md (lea_address_operand): Rename to...
4256 (address_no_seg_operand): ... this.
4257 (address_mpx_no_base_operand): New.
4258 (address_mpx_no_index_operand): New.
4259 (bnd_mem_operator): New.
4260 * config/i386/i386.opt (mmpx): New.
4261 * doc/invoke.texi: Add documentation for the flags -mmpx, -mno-mpx.
4262 * doc/rtl.texi Add documentation for BND32mode and BND64mode.
4264 2013-10-24 Ilya Enkovich <ilya.enkovich@intel.com>
4266 * mode-classes.def (MODE_POINTER_BOUNDS): New.
4267 * tree.def (POINTER_BOUNDS_TYPE): New.
4268 * genmodes.c (complete_mode): Support MODE_POINTER_BOUNDS.
4269 (POINTER_BOUNDS_MODE): New.
4270 (make_pointer_bounds_mode): New.
4271 * machmode.h (POINTER_BOUNDS_MODE_P): New.
4272 * stor-layout.c (int_mode_for_mode): Support MODE_POINTER_BOUNDS.
4273 (layout_type): Support POINTER_BOUNDS_TYPE.
4274 * tree-pretty-print.c (dump_generic_node): Support POINTER_BOUNDS_TYPE.
4275 * tree.c (build_int_cst_wide): Support POINTER_BOUNDS_TYPE.
4276 (type_contains_placeholder_1): Likewise.
4277 * tree.h (POINTER_BOUNDS_TYPE_P): New.
4278 * varasm.c (output_constant): Support POINTER_BOUNDS_TYPE.
4279 * doc/rtl.texi (MODE_POINTER_BOUNDS): New.
4281 2013-10-24 Igor Shevlyakov <igor.shevlyakov@gmail.com>
4283 * expr.c (expand_expr_real_1): Use mode of memory reference rather than
4284 mode of address computation when calling memory_address_addr_space.
4286 2013-08-24 Richard Henderson <rth@twiddle.net>
4289 * optabs.c (maybe_emit_atomic_exchange): Use create_input_operand
4290 instead of create_convert_operand_to.
4291 (maybe_emit_sync_lock_test_and_set): Likewise.
4292 (expand_atomic_compare_and_swap): Likewise.
4293 (maybe_emit_compare_and_swap_exchange_loop): Don't convert_modes.
4295 2013-08-24 Sriraman Tallam <tmsriram@google.com>
4297 * cgraph.c (cgraph_fnver_htab): Move GTY((...)) to be before htab_t.
4298 Change param_is to use the struct and not the pointer to the struct.
4300 2013-10-24 Andrew MacLeod <amacleod@redhat.com>
4302 * builtins.c (dummy_object, gimplify_va_arg_expr): Move to gimplify.c.
4303 * gimplify.c (build_va_arg_indirect_ref, std_gimplify_va_arg_expr):
4304 Move to targhooks.c.
4305 (dummy_object, gimplify_va_arg_expr): Relocate from builtins.c.
4306 * targhooks.c (build_va_arg_indirect_ref, std_gimplify_va_arg_expr):
4307 Relocate from gimplify.c.
4308 * targhooks.h: Add 2 prototypes.
4309 * tree.h: Delete 2 prototypes.
4311 2013-10-24 Igor Shevlyakov <igor.shevlyakov@gmail.com>
4313 * tree-ssa-loop-ivopts.c (multiplier_allowed_in_address_p ): Check both
4314 [reg+mult*reg] and [mult*reg] to determine if multiplier is allowed.
4316 2013-10-24 Cong Hou <congh@google.com>
4318 * convert.c (convert_to_real): Guard those unsafe math function
4319 convertions with flag_unsafe_math_optimizations. Handle sqrt()
4322 2013-10-24 Markus Trippelsdorf <markus@trippelsdorf.de>
4325 * cgraph.c (cgraph_create_edge_1): Add indirect_unknown_callee
4327 (cgraph_create_edge): Use the new argument.
4328 (cgraph_create_indirect_edge): Likewise.
4330 2013-10-24 Joern Rennecke <joern.rennecke@embecosm.com>
4332 * config/arc/arc.c (arc_ccfsm_post_advance): Also handle
4334 (arc_ifcvt) <case 1 and 2>: Check that arc_ccfsm_post_advance
4335 changes statep->state.
4337 2013-10-24 Tobias Burnus <burnus@net-b.de>
4340 * tree-cfg.c (replace_loop_annotate): New function.
4341 (execute_build_cfg): Call it.
4342 * gimplify.c (gimple_boolify, gimplify_expr): Handle ANNOTATE_EXPR.
4343 * internal-fn.c (expand_ANNOTATE): New function.
4344 * internal-fn.def (ANNOTATE): Define as new internal function.
4345 * tree-core.h (tree_node_kind): Add annot_expr_ivdep_kind.
4346 * tree-pretty-print.c (dump_generic_node): Handle ANNOTATE_EXPR.
4347 * tree.def (ANNOTATE_EXPR): New DEFTREECODE.
4348 * doc/extend.texi (Pragmas): Document #pragma ivdep.
4349 * doc/generic.texi (Expressions): Document ANNOTATE_EXPR.
4351 2013-10-17 Ian Bolton <ian.bolton@arm.com>
4352 Marcus Shawcroft <marcus.shawcroft@arm.com>
4354 * config/aarch64/aarch64.c (aarch64_preferred_reload_class):
4355 Special case reload SP+C into none GENERAL_REGS.
4357 2013-10-24 Michael Matz <matz@suse.de>
4359 * gengtype.c (is_file_equal): Check that files will be same length.
4361 2013-10-25 Christian Bruel <christian.bruel@st.com>
4363 * config.gcc (sh-*): Add sh-mem.o to extra_obj.
4364 * config/sh/t-sh (sh-mem.o): New rule.
4365 * config/sh/sh-mem.cc (expand_block_move): Moved here.
4366 (sh_expand_cmpstr): New function.
4367 * config/sh/sh.c (force_into, expand_block_move): Move to sh-mem.c.
4368 * config/sh/sh-protos.h (sh_expand_cmpstr): Declare.
4369 * config/sh/sh.md (cmpstrsi, cmpstr_t): New patterns.
4370 (rotlhi3_8): Rename.
4372 2013-10-24 Jan-Benedict Glaw <jbglaw@lug-owl.de>
4374 * configure.ac (ZW_PROG_COMPILER_DEPENDENCIES): Use CXX instead of CC.
4375 * Makefile.in (CXXDEPMODE): Assign and change users.
4376 (CCDEPMODE): Delete.
4377 * configure: Regenerate.
4379 2013-10-23 David Malcolm <dmalcolm@redhat.com>
4381 * gengtype-parse.c (require_without_advance): New.
4382 (type): For GTY-marked types that are not GTY((user)), parse any
4383 base classes, requiring them to be single-inheritance, and not
4384 be templates. For non-GTY-marked types and GTY((user)),
4385 continue to skip over any C++ inheritance specification.
4386 * gengtype-state.c (state_writer::write_state_struct_type):
4387 Write base class of type (if any).
4388 (read_state_struct_type): Read base class of type (if any).
4389 * gengtype.c (new_structure): Add a "base_class" parameter.
4390 (create_optional_field_): Update for new parameter to new_structure.
4391 (adjust_field_rtx_def): Likewise.
4392 (adjust_field_tree_exp): Likewise.
4393 * gengtype.h (struct type): Add "base_class" field to the s
4395 (new_structure): Add "base" parameter.
4397 2013-10-23 Sriraman Tallam <tmsriram@google.com>
4400 * config/i386/i386.c (ix86_option_override_internal):
4401 Change TARGET_SSE2 to TARGET_SSE2_P (opts->...)
4402 (ix86_valid_target_attribute_tree):
4403 Change TARGET_64BIT to TARGET_64BIT_P (opts->...)
4404 Change TARGET_SSE to TARGET_SSE_P (opts->...)
4406 2013-10-23 Andrew MacLeod <amacleod@redhat.com>
4408 * tree-ssa-loop.h: Remove include files.
4409 * gengtype.c (open_base_files): Adjust include list for gtype-desc.c.
4410 * cfgloopmanip.c: Move required includes from tree-ssa-loop.h.
4411 * graphite-clast-to-gimple.c: Likewise.
4412 * graphite-scop-detection.c: Likewise.
4413 * graphite-sese-to-poly.c: Likewise.
4414 * ipa-inline-analysis.c: Likewise.
4415 * ipa-pure-const.c: Likewise.
4416 * loop-init.c: Likewise.
4417 * passes.c: Likewise.
4418 * predict.c: Likewise.
4419 * tree-cfg.c: Likewise.
4420 * tree-cfgcleanup.c: Likewise.
4421 * tree-chrec.c: Likewise.
4422 * tree-data-ref.c: Likewise.
4423 * tree-loop-distribution.c: Likewise.
4424 * tree-parloops.c: Likewise.
4425 * tree-predcom.c: Likewise.
4426 * tree-scalar-evolution.c: Likewise.
4427 * tree-ssa-address.c: Likewise.
4428 * tree-ssa.c: Likewise.
4429 * tree-ssa-dce.c: Likewise.
4430 * tree-ssa-loop.c: Likewise.
4431 * tree-ssa-loop-im.c: Likewise.
4432 * tree-ssa-loop-ivcanon.c: Likewise.
4433 * tree-ssa-loop-ivopts.c: Likewise.
4434 * tree-ssa-loop-manip.c: Likewise.
4435 * tree-ssa-loop-niter.c: Likewise.
4436 * tree-ssa-loop-prefetch.c: Likewise.
4437 * tree-ssa-loop-unswitch.c: Likewise.
4438 * tree-ssa-reassoc.c: Likewise.
4439 * tree-vect-data-refs.c: Likewise.
4440 * tree-vect-loop.c: Likewise.
4441 * tree-vect-loop-manip.c: Likewise.
4442 * tree-vectorizer.c: Likewise.
4443 * tree-vect-stmts.c: Likewise.
4444 * tree-vrp.c: Likewise.
4446 2013-10-23 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
4448 * config/rs6000/altivec.md (mulv8hi3): Adjust for little endian.
4450 2013-10-23 Jakub Jelinek <jakub@redhat.com>
4452 PR tree-optimization/58775
4453 PR tree-optimization/58791
4454 * tree-ssa-reassoc.c (reassoc_stmt_dominates_stmt_p): New function.
4455 (insert_stmt_after): Rewritten, don't move the stmt, but really
4457 (get_stmt_uid_with_default): Remove.
4458 (build_and_add_sum): Use insert_stmt_after and
4459 reassoc_stmt_dominates_stmt_p. Fix up uid if bb contains only labels.
4460 (update_range_test): Set uid on stmts added by
4461 force_gimple_operand_gsi. Don't immediately modify statements
4462 in inter-bb optimization, just update oe->op values.
4463 (optimize_range_tests): Return bool whether any changed have been made.
4464 (update_ops): New function.
4465 (struct inter_bb_range_test_entry): New type.
4466 (maybe_optimize_range_tests): Perform statement changes here.
4467 (not_dominated_by, appears_later_in_bb, get_def_stmt,
4468 ensure_ops_are_available): Remove.
4469 (find_insert_point): Rewritten.
4470 (rewrite_expr_tree): Remove MOVED argument, add CHANGED argument,
4471 return LHS of the (new resp. old) stmt. Don't call
4472 ensure_ops_are_available, don't reuse SSA_NAMEs, recurse first
4473 instead of last, move new stmt at the right place.
4474 (linearize_expr, repropagate_negates): Don't reuse SSA_NAMEs.
4475 (negate_value): Likewise. Set uids.
4476 (break_up_subtract_bb): Initialize uids.
4477 (reassociate_bb): Adjust rewrite_expr_tree caller.
4478 (do_reassoc): Don't call renumber_gimple_stmt_uids.
4480 2013-10-23 David Edelsohn <dje.gcc@gmail.com>
4483 * config/rs6000/rs6000.md (mulsi3_internal1 and splitter): Add
4484 TARGET_32BIT final condition.
4485 (mulsi3_internal2 and splitter): Same.
4487 2013-10-23 Jeff Law <law@redhat.com>
4489 * tree-ssa-threadedge.c (thread_across_edge): Do not allow threading
4490 through joiner blocks with abnormal outgoing edges.
4492 * tree-ssa-threadupdate.c (thread_block_1): Renamed from thread_block.
4493 Add parameter JOINERS, to allow/disallow threading through joiner
4495 (thread_block): New. Call thread_block_1.
4496 (mark_threaded_blocks): Remove code to filter out certain cases
4497 of threading through joiner blocks.
4498 (thread_through_all_blocks): Document how we can have a dangling
4499 edge AUX field and clear it.
4501 2013-10-23 Ian Lance Taylor <iant@google.com>
4503 * doc/invoke.texi (Option Summary): Remove -fno-default-inline.
4504 (C++ Dialect Options): Likewise.
4505 (Optimize Options): Likewise.
4507 2013-10-23 Tom de Vries <tom@codesourcery.com>
4509 PR tree-optimization/58805
4510 * tree-ssa-tail-merge.c (stmt_local_def): Add gimple_vdef check.
4512 2013-10-23 Jakub Jelinek <jakub@redhat.com>
4514 * tree-vect-patterns.c (vect_recog_divmod_pattern): Optimize
4515 sequence based on get_range_info returned range.
4517 2013-10-23 Andrew MacLeod <amacleod@redhat.com>
4519 * tree-ssa.h: Remove all #include's
4520 * gengtype.c (open_base_files): Adjust include list for gtype-desc.c.
4521 * alias.c: Move required includes from tree-ssa.h.
4523 * builtins.c: Likewise.
4524 * calls.c: Likewise.
4525 * cfgexpand.c: Likewise.
4526 * cfghooks.c: Likewise.
4527 * cfgloop.c: Likewise.
4528 * cfgloopmanip.c: Likewise.
4529 * cgraph.c: Likewise.
4530 * cgraphbuild.c: Likewise.
4531 * cgraphclones.c: Likewise.
4532 * cgraphunit.c: Likewise.
4534 * except.c: Likewise.
4536 * final.c: Likewise.
4537 * fold-const.c: Likewise.
4538 * ggc-page.c: Likewise.
4539 * gimple-builder.c: Likewise.
4540 * gimple-fold.c: Likewise.
4541 * gimple-iterator.c: Likewise.
4542 * gimple-low.c: Likewise.
4543 * gimple-pretty-print.c: Likewise.
4544 * gimple-ssa-strength-reduction.c: Likewise.
4545 * gimple-streamer-in.c: Likewise.
4546 * gimple-streamer-out.c: Likewise.
4547 * gimplify.c: Likewise.
4548 * graphite-blocking.c: Likewise.
4549 * graphite-clast-to-gimple.c: Likewise.
4550 * graphite-dependences.c: Likewise.
4551 * graphite-interchange.c: Likewise.
4552 * graphite-optimize-isl.c: Likewise.
4553 * graphite-poly.c: Likewise.
4554 * graphite-scop-detection.c: Likewise.
4555 * graphite-sese-to-poly.c: Likewise.
4556 * graphite.c: Likewise.
4557 * ipa-cp.c: Likewise.
4558 * ipa-inline-analysis.c: Likewise.
4559 * ipa-inline-transform.c: Likewise.
4560 * ipa-inline.c: Likewise.
4561 * ipa-prop.c: Likewise.
4562 * ipa-pure-const.c: Likewise.
4563 * ipa-reference.c: Likewise.
4564 * ipa-split.c: Likewise.
4565 * ipa-utils.c: Likewise.
4566 * loop-init.c: Likewise.
4567 * lto-cgraph.c: Likewise.
4568 * lto-section-in.c: Likewise.
4569 * lto-section-out.c: Likewise.
4570 * lto-streamer-in.c: Likewise.
4571 * lto-streamer-out.c: Likewise.
4572 * lto-streamer.c: Likewise.
4573 * omp-low.c: Likewise.
4574 * passes.c: Likewise.
4575 * predict.c: Likewise.
4576 * print-tree.c: Likewise.
4577 * profile.c: Likewise.
4579 * targhooks.c: Likewise.
4580 * tracer.c: Likewise.
4581 * trans-mem.c: Likewise.
4582 * tree-call-cdce.c: Likewise.
4583 * tree-cfg.c: Likewise.
4584 * tree-cfgcleanup.c: Likewise.
4585 * tree-chrec.c: Likewise.
4586 * tree-complex.c: Likewise.
4587 * tree-data-ref.c: Likewise.
4588 * tree-dfa.c: Likewise.
4589 * tree-eh.c: Likewise.
4590 * tree-emutls.c: Likewise.
4591 * tree-if-conv.c: Likewise.
4592 * tree-inline.c: Likewise.
4593 * tree-into-ssa.c: Likewise.
4594 * tree-loop-distribution.c: Likewise.
4595 * tree-mudflap.c: Likewise.
4596 * tree-nested.c: Likewise.
4597 * tree-nrv.c: Likewise.
4598 * tree-object-size.c: Likewise.
4599 * tree-outof-ssa.c: Likewise.
4600 * tree-parloops.c: Likewise.
4601 * tree-phinodes.c: Likewise.
4602 * tree-predcom.c: Likewise.
4603 * tree-pretty-print.c: Likewise.
4604 * tree-profile.c: Likewise.
4605 * tree-scalar-evolution.c: Likewise.
4606 * tree-sra.c: Likewise.
4607 * tree-ssa-address.c: Likewise.
4608 * tree-ssa-alias.c: Likewise.
4609 * tree-ssa-ccp.c: Likewise.
4610 * tree-ssa-coalesce.c: Likewise.
4611 * tree-ssa-copy.c: Likewise.
4612 * tree-ssa-copyrename.c: Likewise.
4613 * tree-ssa-dce.c: Likewise.
4614 * tree-ssa-dom.c: Likewise.
4615 * tree-ssa-dse.c: Likewise.
4616 * tree-ssa-forwprop.c: Likewise.
4617 * tree-ssa-ifcombine.c: Likewise.
4618 * tree-ssa-live.c: Likewise.
4619 * tree-ssa-loop-ch.c: Likewise.
4620 * tree-ssa-loop-im.c: Likewise.
4621 * tree-ssa-loop-ivcanon.c: Likewise.
4622 * tree-ssa-loop-ivopts.c: Likewise.
4623 * tree-ssa-loop-manip.c: Likewise.
4624 * tree-ssa-loop-niter.c: Likewise.
4625 * tree-ssa-loop-prefetch.c: Likewise.
4626 * tree-ssa-loop-unswitch.c: Likewise.
4627 * tree-ssa-loop.c: Likewise.
4628 * tree-ssa-math-opts.c: Likewise.
4629 * tree-ssa-operands.c: Likewise.
4630 * tree-ssa-phiopt.c: Likewise.
4631 * tree-ssa-phiprop.c: Likewise.
4632 * tree-ssa-pre.c: Likewise.
4633 * tree-ssa-propagate.c: Likewise.
4634 * tree-ssa-reassoc.c: Likewise.
4635 * tree-ssa-sccvn.c: Likewise.
4636 * tree-ssa-sink.c: Likewise.
4637 * tree-ssa-strlen.c: Likewise.
4638 * tree-ssa-structalias.c: Likewise.
4639 * tree-ssa-tail-merge.c: Likewise.
4640 * tree-ssa-ter.c: Likewise.
4641 * tree-ssa-threadedge.c: Likewise.
4642 * tree-ssa-threadupdate.c: Likewise.
4643 * tree-ssa-uncprop.c: Likewise.
4644 * tree-ssa-uninit.c: Likewise.
4645 * tree-ssa.c: Likewise.
4646 * tree-ssanames.c: Likewise.
4647 * tree-stdarg.c: Likewise.
4648 * tree-streamer-in.c: Likewise.
4649 * tree-switch-conversion.c: Likewise.
4650 * tree-tailcall.c: Likewise.
4651 * tree-vect-data-refs.c: Likewise.
4652 * tree-vect-generic.c: Likewise.
4653 * tree-vect-loop-manip.c: Likewise.
4654 * tree-vect-loop.c: Likewise.
4655 * tree-vect-patterns.c: Likewise.
4656 * tree-vect-slp.c: Likewise.
4657 * tree-vect-stmts.c: Likewise.
4658 * tree-vectorizer.c: Likewise.
4659 * tree-vrp.c: Likewise.
4662 * value-prof.c: Likewise.
4663 * var-tracking.c: Likewise.
4664 * varpool.c: Likewise.
4665 * vtable-verify.c: Likewise.
4667 2013-10-23 Jan-Benedict Glaw <jbglaw@lug-owl.de>
4669 * config/tilegx/tilegx.c: Include "tree.h".
4671 2013-10-23 Jakub Jelinek <jakub@redhat.com>
4673 * gimple-pretty-print.c (dump_ssaname_info): Always print "# " before
4674 the info, not after it.
4675 (gump_gimple_phi): Add COMMENT argument, if true, print "# " after
4676 dump_ssaname_info call.
4677 (pp_gimple_stmt_1): Adjust caller.
4678 (dump_phi_nodes): Likewise. Don't print "# " here.
4680 2013-10-22 Jan Hubicka <jh@suse.cz>
4682 * i386.h (TARGET_MISALIGNED_MOVE_STRING_PROLOGUES_EPILOGUES): New
4684 * x86-tune.def (TARGET_MISALIGNED_MOVE_STRING_PROLOGUES): Define it.
4685 * i386.c (expand_small_movmem_or_setmem): New function.
4686 (expand_set_or_movmem_prologue_epilogue_by_misaligned_moves): New
4688 (alg_usable_p): Add support for value ranges; cleanup.
4689 (ix86_expand_set_or_movmem): Add support for misaligned moves.
4691 2013-10-22 Sterling Augustine <saugustine@google.com>
4693 * doc/invoke.texi: Document -ggnu-pubnames.
4694 * common.opt: Add new option -ggnu-pubnames and modify -gpubnames
4696 * dwarf2out.c: Include gdb/gdb-index.h.
4697 (DEBUG_PUBNAMES_SECTION, DEBUG_PUBTYPES_SECTION): Handle
4698 debug_generate_pub_sections.
4699 (is_java, output_pubtables, output_pubname): New functions.
4700 (include_pubname_in_output): Handle debug_generate_pub_sections at
4702 (size_of_pubnames): Use new local space_for_flags based on
4703 debug_generate_pub_sections.
4704 (output_pubnames): Unify pubnames and pubtypes output logic.
4705 Genericize comments. Call output_pubname.
4706 (dwarf2out_finish): Move logic to output_pubnames and call it.
4708 2013-10-22 Uros Bizjak <ubizjak@gmail.com>
4711 * config/i386/i386.c (put_condition_code) <case GTU, case LEU>:
4712 Remove CCCmode handling.
4713 <case LTU>: Return 'c' suffix for CCCmode.
4714 <case GEU>: Return 'nc' suffix for CCCmode.
4715 (ix86_cc_mode) <case GTU, case LEU>: Do not generate overflow checks.
4716 * config/i386/i386.md (*sub<mode>3_cconly_overflow): Remove.
4717 (*sub<mode>3_cc_overflow): Ditto.
4718 (*subsi3_zext_cc_overflow): Ditto.
4720 2013-10-22 Steve Ellcey <sellcey@mips.com>
4722 * config/mips/mips.c (mips_rtx_costs): Fix cost estimate for nor
4723 (AND (NOT OP1) (NOT OP2)).
4725 2013-10-22 Bill Schmidt <wschmidt@vnet.ibm.com>
4727 * config/rs6000/rs6000.c (altivec_expand_vec_perm_const): Reverse
4728 meaning of merge-high and merge-low masks for little endian; avoid
4729 use of vector-pack masks for little endian for mismatched modes.
4731 2013-10-22 Jan-Benedict Glaw <jbglaw@lug-owl.de>
4733 * config/tilepro/tilepro.c: Include "tree.h".
4735 2013-10-22 Andreas Schwab <schwab@suse.de>
4737 * config/m68k/m68k.c (notice_update_cc): Handle register conflict
4740 2013-10-22 Paolo Carlini <paolo.carlini@oracle.com>
4742 * doc/contrib.texi ([Fran@,{c}ois Dumont], [Tim Shen],
4743 [Ed Smith-Rowland]): New entries.
4744 ([Stephen M. Webb]): Update.
4746 2013-10-22 Andrew MacLeod <amacleod@redhat.com>
4748 * tree-ssa-ter.h: Remove duplicate copy of file contents.
4750 2013-10-21 Marek Polacek <polacek@redhat.com>
4753 * fold-const.c (fold_range_test): Return 0 if the type is not
4756 2013-10-21 Richard Sandiford <rdsandiford@googlemail.com>
4758 * system.h: Move hwint.h include further down.
4759 * hwint.h (sext_hwi, zext_hwi): Define unconditionally. Add
4760 gcc_checking_asserts.
4761 * hwint.c (sext_hwi, zext_hwi): Delete ENABLE_CHECKING versions.
4763 2013-10-21 Bernd Edlinger <bernd.edlinger@hotmail.de>
4765 Fix volatile issues in optimize_bit_field_compare.
4766 * fold-const.c (optimize_bit_field_compare): Bail out if
4767 lvolatilep or rvolatilep.
4769 2013-10-21 Bernd Edlinger <bernd.edlinger@hotmail.de>
4771 Fix DECL_BIT_FIELD depencency on flag_strict_volatile_bitfields
4772 and get_inner_reference returning different pmode for non-volatile
4773 bit-field members dependent on flag_strict_volatile_bitfields.
4774 * stor-layout.c (layout_decl): Remove special handling of
4775 flag_strict_volatile_bitfields.
4776 * expr.c (get_inner_reference): Don't use DECL_BIT_FIELD
4777 if flag_strict_volatile_bitfields > 0 and TREE_THIS_VOLATILE.
4779 2013-10-21 Paulo Matos <pmatos@broadcom.com>
4781 * ipa-inline.c (edge_badness): Cap edge->count at max_count for badness
4784 2013-10-21 Jeff Law <law@redhat.com>
4786 * tree-ssa-threadedge.c (thread_through_normal_block): New
4787 argument VISITED. Remove VISISTED as a local variable. When we
4788 have a threadable jump, verify the destination of the jump has not
4790 (thread_across_edge): Allocate VISITED bitmap once at function
4791 scope and use it throughout. Make sure to set appropriate bits in
4792 VISITED for E (start of jump thread path).
4793 * tree-ssa-threadupdate.c (mark_threaded_blocks): Reject threading
4794 through a joiner if any edge on the path has a recorded jump thread.
4796 2013-10-21 Ian Lance Taylor <iant@google.com>
4798 * doc/invoke.texi (Optimize Options): For -fno-toplevel-reorder,
4799 don't imply that attributes can solve all problems.
4800 (Directory Options): Fix typo.
4802 2013-10-21 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
4804 * config/arm/arm.c (cortexa9_extra_costs): Update mult costs for
4805 extend and extend_add.
4807 2013-10-21 Richard Biener <rguenther@suse.de>
4809 PR tree-optimization/58794
4810 * fold-const.c (operand_equal_p): Compare FIELD_DECL operand
4811 of COMPONENT_REFs with OEP_CONSTANT_ADDRESS_OF left in place.
4813 2013-10-21 Richard Biener <rguenther@suse.de>
4816 * fold-const.c (fold_binary_loc): Fold ((T) (X /[ex] C)) * C
4817 to (T) X for sign-changing conversions (or no conversion).
4819 2013-10-20 Uros Bizjak <ubizjak@gmail.com>
4821 * config/i386/i386.md (kxnor<mode>): Add FLAGS_REG clobber.
4823 2013-10-20 Jan Hubicka <jh@suse.cz>
4825 * config/i386/i386-tune.def: Add comment; organize into categories
4827 2013-10-21 Michael Zolotukhin <michael.v.zolotukhin@gmail.com>
4829 * config/i386/i386.c (expand_set_or_movmem_via_loop): Add issetmem
4830 argument. Update function comment.
4831 (expand_set_or_movmem_via_rep): New function combining
4832 expand_movmem_via_rep_mov and expand_setmem_via_rep_stos.
4833 (expand_movmem_via_rep_mov): Remove.
4834 expand_setmem_via_rep_stos): Remove.
4835 (expand_movmem_epilogue): Update calls correspondingly.
4836 (expand_setmem_epilogue_via_loop): Likewise.
4838 (expand_setmem_epilogue): Add VEC_VALUE argument, refactor.
4839 (expand_set_or_movmem_prologue): New function combining
4840 expand_movmem_prologue and expand_setmem_prologue.
4841 (expand_movmem_prologue): Remove.
4842 (expand_setmem_prologue): Remove.
4843 (expand_set_or_movmem_constant_prologue): New function combining
4844 expand_constant_movmem_prologue and expand_constant_setmem_prologue.
4845 (expand_constant_movmem_prologue): Remove.
4846 (expand_constant_setmem_prologue): Remove.
4847 (promote_duplicated_reg): Allow vector-const0 value.
4848 (ix86_expand_set_or_movmem): New function combining ix86_expand_movmem
4849 and ix86_expand_setmem.
4850 (ix86_expand_movmem): Call ix86_expand_set_or_movmem.
4851 (ix86_expand_setmem): Call ix86_expand_set_or_movmem.
4853 2013-10-21 Diego Novillo <dnovillo@google.com>
4855 * asan.c: Include tree.h
4856 * bb-reorder.c: Likewise.
4857 * cfgcleanup.c: Likewise.
4858 * cfgloopmanip.c: Likewise.
4859 * data-streamer-in.c: Likewise.
4860 * data-streamer-out.c: Likewise.
4861 * data-streamer.c: Likewise.
4862 * dwarf2cfi.c: Likewise.
4863 * graphite-blocking.c: Likewise.
4864 * graphite-clast-to-gimple.c: Likewise.
4865 * graphite-dependences.c: Likewise.
4866 * graphite-interchange.c: Likewise.
4867 * graphite-optimize-isl.c: Likewise.
4868 * graphite-poly.c: Likewise.
4869 * graphite-scop-detection.c: Likewise.
4870 * graphite-sese-to-poly.c: Likewise.
4871 * graphite.c: Likewise.
4872 * ipa-devirt.c: Likewise.
4873 * ipa-profile.c: Likewise.
4876 * loop-init.c: Likewise.
4877 * loop-unroll.c: Likewise.
4878 * lower-subreg.c: Likewise.
4879 * lto/lto-object.c: Likewise.
4880 * recog.c: Likewise.
4881 * reginfo.c: Likewise.
4882 * tree-loop-distribution.c: Likewise.
4883 * tree-parloops.c: Likewise.
4884 * tree-ssa-strlen.c: Likewise.
4885 * tree-streamer.c: Likewise.
4886 * value-prof.c: Likewise.
4887 * target-globals.c: Likewise.
4888 * expr.h: Include tree-core.h instead of tree.h.
4889 * gimple.h: Likewise.
4890 * ipa-prop.h: Likewise.
4891 * ipa-utils.h: Likewise.
4892 * lto-streamer.h: Likewise.
4893 * streamer-hooks.h: Likewise.
4894 * ipa-reference.h: Include cgraph.h instead of tree.h.
4895 * cgraph.h: Include basic-block.h instead of tree.h.
4896 * tree-streamer.h: Do not include tree.h.
4897 * genattrtab.c (write_header): Generate inclusion of tree.h.
4898 * genautomata.c (main): Likewise.
4899 * genemit.c: Likewise.
4900 * genopinit.c: Likewise.
4901 * genoutput.c (output_prologue): Likewise.
4902 * genpeep.c: Likewise.
4904 2013-10-20 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
4906 * config/rs6000/altivec.md (vec_unpacku_hi_v16qi): Adjust for
4908 (vec_unpacku_hi_v8hi): Likewise.
4909 (vec_unpacku_lo_v16qi): Likewise.
4910 (vec_unpacku_lo_v8hi): Likewise.
4912 2013-10-20 Jan Hubicka <jh@suse.cz>
4914 * config/i386/x86-tune.def (X86_TUNE_SLOW_IMUL_IMM32_MEM,
4915 X86_TUNE_SLOW_IMUL_IMM8): Keep enabled only for K8 and AMDFAM10.
4916 (X86_TUNE_USE_VECTOR_FP_CONVERTS): Disable for generic.
4918 2013-10-20 Richard Sandiford <rdsandiford@googlemail.com>
4920 * config/mips/mips.h (ISA_HAS_WSBH): Define.
4921 * config/mips/mips.md (UNSPEC_WSBH, UNSPEC_DSBH, UNSPEC_DSHD): New
4923 (bswaphi2, bswapsi2, bswapdi2, wsbh, dsbh, dshd): New patterns.
4925 2013-10-19 John David Anglin <danglin@gcc.gnu.org>
4928 * system.h: Undef m_slot.
4930 2013-10-19 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
4932 * config/rs6000/rs6000.c (vspltis_constant): Make sure we check
4933 all elements for both endian flavors.
4935 2013-10-19 Uros Bizjak <ubizjak@gmail.com>
4938 * config/i386/i386.c (ix86_function_value_regno): Add DX_REG,
4939 ST1_REG and XMM1_REG for 32bit and 64bit targets. Also add DI_REG
4940 and SI_REG for 64bit SYSV ABI targets.
4942 2013-10-19 Uros Bizjak <ubizjak@gmail.com>
4944 * mode-switching.c (create_pre_exit): Rename maybe_builtin_apply
4945 to multi_reg_return. Clarify that we are skipping USEs of multiple
4946 return registers. Use bool type where appropriate.
4948 2013-10-18 Jan Hubicka <jh@suse.cz>
4950 * config/i386/i386.h (ACCUMULATE_OUTGOING_ARGS): Disable accumulation
4952 * x86-tune.def (X86_TUNE_USE_LEAVE): Update comment.
4953 (X86_TUNE_PUSH_MEMORY): Likewise.
4954 (X86_TUNE_AVX256_UNALIGNED_LOAD_OPTIMAL,
4955 X86_TUNE_AVX256_UNALIGNED_STORE_OPTIMAL): New.
4956 (X86_TUNE_ACCUMULATE_OUTGOING_ARGS, X86_TUNE_ALWAYS_FANCY_MATH_387):
4958 * i386.c (x86_accumulate_outgoing_args, x86_arch_always_fancy_math_387,
4959 x86_avx256_split_unaligned_load, x86_avx256_split_unaligned_store):
4961 (ix86_option_override_internal): Update to use tune features instead
4964 2013-10-18 Cong Hou <congh@google.com>
4966 PR tree-optimization/58508
4967 * tree-vect-loop-manip.c (vect_loop_versioning): Hoist loop invariant
4968 statement that contains data refs with zero-step.
4970 2013-10-18 Andrew MacLeod <amacleod@redhat.com>
4972 * tree-ssa.h: Don't include gimple-low.h, tree-ssa-address.h,
4973 sbitmap.h, tree-ssa-threadedge.h, tree-ssa-dom.h and tree-cfgcleanup.h.
4974 * gimple-low.c (gimple_check_call_arg,
4975 gimple_check_call_matching_types): Move to cgraph.c.
4976 * gimple-low.h: Remove prototype.
4977 * cgraph.c: (gimple_check_call_arg, gimple_check_call_matching_types):
4978 Relocate from gimple-low.c.
4979 * cgraph.h: Add prototype. Don't include basic-block.h.
4980 * gimplify.c: Add gimple-low to include list.
4981 * omp-low.c: Add gimple-low and tree-cfgcleanup.h to include list.
4982 * tree-eh.c: Add gimple-low to include list.
4983 * tree-nested.c: Likewise.
4984 * cfgexpand.c: Add tree-ssa-address.h to include list.
4986 * gimple-fold.c: Likewise.
4987 * gimple-ssa-strength-reduction.c: Likewise.
4988 * trans-mem.c: Likewise.
4989 * tree-mudflap.c: Likewise.
4990 * tree-ssa-loop-ivopts.c: Likewise.
4991 * tree-ssa-dom.c: Include tree-ssa-threadedge.h and tree-ssa-dom.h.
4992 (degenerate_phi_result): Move to tree-phinodes.c.
4993 * tree-ssa-loop-ch.c: Include tree-ssa-threadedge.h.
4994 * tree-ssa-threadedge.c: Likewise.
4995 * tree-vrp.c: Likewise.
4996 * tree-phinodes.c (degenerate_phi_result): Relocate here.
4997 * tree-ssa-dom.h (degenerate_phi_result): Remove Prototype.
4998 * tree-phinodes.h (degenerate_phi_result): Add prototype.
4999 * tree-ssa-copy.c: Include tree-ssa-dom.h.
5000 * tree-ssa-forwprop.c: Likewise.
5001 * tree-cfgcleanup.c (execute_cleanup_cfg_post_optimizing,
5002 pass_data_cleanup_cfg_post_optimizing,
5003 make_pass_cleanup_cfg_post_optimizing): Relocate from tree-optimize.c.
5004 * tree-optimize.c: Delete File.
5005 * graphite.c: Include tree-cfgcleanup.h.
5006 * passes.c: Likewise.
5007 * tree-cfg.c: Likewise.
5008 * tree-profile.c: Likewise.
5009 * tree-ssa-dse.c: Likewise.
5010 * tree-ssa-loop-ivcanon.c: Likewise.
5011 * tree-switch-conversion.c: Don't include tree-ssa-operands.h.
5012 * tree-outof-ssa.c: Include sbitmap.h.
5013 * tree-ssa-live.c: Likewise.
5014 * tree-ssa-propagate.c: Likewise.
5015 * tree-ssa-structalias.c: Likewise.
5016 * tree-stdarg.c: Likewise.
5017 * Makefile.in (OBJS): Delete tree-optimize.o.
5018 * basic-block.h (gcov_type, gcov_type_unsigned): Move to coretypes.h.
5019 * coretypes.h (gcov_type, gcov_type_unsigned): Relocate here.
5020 * varasm.c: Include basic-block.h.
5021 * cfgloop.h: Include function.h instead of basic-block.h
5022 (bb_loop_depth): Move to cfgloop.c.
5023 * cfgloop.c (bb_loop_depth): Relocate from cfgloop.h.
5025 2013-10-18 Teresa Johnson <tejohnson@google.com>
5027 * predict.c (probably_never_executed): Compare frequency-based
5028 count to number of training runs.
5029 * params.def (UNLIKELY_BB_COUNT_FRACTION): New parameter.
5031 2013-10-18 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
5033 * config/arm/arm.c (cortexa9_extra_costs): New table.
5034 (arm_cortex_a9_tune): Use cortexa9_extra_costs.
5036 2013-10-18 Jeff Law <law@redhat.com>
5038 * tree-ssa-threadupdate.c: Do not include "tm.h" or "tm_p.h".
5040 * tree-ssa-threadupdate.c: Include "dbgcnt.h".
5041 (register_jump_thread): Add "registered_jump_thread" debug
5043 * dbgcnt.def (registered_jump_thread): New debug counter.
5045 2013-10-18 Andrew MacLeod <amacleod@redhat.com>
5047 * config/rs6000/rs6000.c: Include cgraph.h.
5049 2013-10-18 Teresa Johnson <tejohnson@google.com>
5051 * tree-ssa-tail-merge.c (replace_block_by): Update edge
5052 weights during merging.
5054 2013-10-18 Andrew MacLeod <amacleod@redhat.com>
5056 * tree-cfg.h: Rename from tree-flow.h. Remove #includes.
5057 * tree-ssa.h: Relocate required #includes from tree-cfg.h.
5058 * tree-ssa-operands.h: Remove prototype.
5059 * tree-ssa-operands.c (virtual_operand_p): Move to gimple.c.
5060 * gimple.c (virtual_operand_p): Relocate from gimple.c.
5061 * gimple.h: Add prototype.
5062 * gimple-ssa.h: Include tree-ssa-operands.h.
5063 * tree-dump.c: Add tree-cfg.h to include list.
5064 * tree-ssa-alias.c: Add ipa-reference.h to include list.
5065 * config/alpha/alpha.c: Include gimple-ssa.h instead of tree-flow.h.
5066 * config/i386/i386.c: Don't include tree-flow.h.
5067 * config/rs6000/rs6000.c: Likewise.
5069 2013-10-18 Jan-Benedict Glaw <jbglaw@lug-owl.de>
5071 * config/frv/frv.c (frv_init_cumulative_args): Fix wrong cast.
5073 2013-10-18 Richard Biener <rguenther@suse.de>
5075 * stor-layout.c (layout_type): Do not change TYPE_PRECISION
5076 or TYPE_UNSIGNED of integral types.
5077 (set_min_and_max_values_for_integral_type): Leave TYPE_MIN/MAX_VALUE
5078 NULL_TREE for zero-precision integral types.
5080 2013-10-18 James Greenhalgh <james.greenhalgh@arm.com>
5082 * config/aarch64/arm_neon.h
5083 (vcvt<ds>_n_<fsu><32,64>_<fsu><32,64>): Correct argument types.
5085 2013-10-17 Sriraman Tallam <tmsriram@google.com>
5088 * opth-gen.awk: Define target_flags_explicit.
5090 2013-10-17 Michael Meissner <meissner@linux.vnet.ibm.com>
5092 * config/rs6000/rs6000.c (enum rs6000_reload_reg_type): Add new
5093 fields to the reg_addr array that describes the valid addressing
5094 mode for any register, general purpose registers, floating point
5095 registers, and Altivec registers.
5096 (FIRST_RELOAD_REG_CLASS): Likewise.
5097 (LAST_RELOAD_REG_CLASS): Likewise.
5098 (struct reload_reg_map_type): Likewise.
5099 (reload_reg_map_type): Likewise.
5100 (RELOAD_REG_VALID): Likewise.
5101 (RELOAD_REG_MULTIPLE): Likewise.
5102 (RELOAD_REG_INDEXED): Likewise.
5103 (RELOAD_REG_OFFSET): Likewise.
5104 (RELOAD_REG_PRE_INCDEC): Likewise.
5105 (RELOAD_REG_PRE_MODIFY): Likewise.
5106 (reg_addr): Likewise.
5107 (mode_supports_pre_incdec_p): New helper functions to say whether
5108 a given mode supports PRE_INC, PRE_DEC, and PRE_MODIFY.
5109 (mode_supports_pre_modify_p): Likewise.
5110 (rs6000_debug_vector_unit): Rearrange the -mdebug=reg output to
5111 print the valid address mode bits for each mode.
5112 (rs6000_debug_print_mode): Likewise.
5113 (rs6000_debug_reg_global): Likewise.
5114 (rs6000_setup_reg_addr_masks): New function to set up the address
5115 mask bits for each type.
5116 (rs6000_init_hard_regno_mode_ok): Use memset to clear arrays.
5117 Call rs6000_setup_reg_addr_masks to set up the address mask bits.
5118 (rs6000_legitimate_address_p): Use mode_supports_pre_incdec_p and
5119 mode_supports_pre_modify_p to determine if PRE_INC, PRE_DEC, and
5120 PRE_MODIFY are supported.
5121 (rs6000_output_move_128bit): Change to use {src,dest}_vmx_p for altivec
5122 registers, instead of {src,dest}_av_p.
5123 (rs6000_print_options_internal): Tweak the debug output slightly.
5125 2013-10-17 Uros Bizjak <ubizjak@gmail.com>
5127 * config/i386/sse.md (*vec_widen_smult_even_v8si): Remove
5130 2013-10-17 Andrew MacLeod <amacleod@redhat.com>
5132 * tree-flow.h (struct omp_region): Move to omp-low.c.
5133 Remove omp_ prototypes and variables.
5134 * gimple.h (omp_reduction_init): Move prototype to omp-low.h.
5135 (copy_var_decl): Relocate prototype from tree-flow.h.
5136 * gimple.c (copy_var_decl): Relocate from omp-low.c.
5137 * tree.h: Move prototype to omp-low.h.
5138 * omp-low.h: New File. Relocate prototypes here.
5139 * omp-low.c (struct omp_region): Make local here.
5140 (root_omp_region): Make static.
5141 (copy_var_decl) Move to gimple.c.
5142 (new_omp_region): Make static.
5143 (make_gimple_omp_edges): New. Refactored from tree-cfg.c make_edges.
5144 * tree-cfg.c: Include omp-low.h.
5145 (make_edges): Factor out OMP specific bits to make_gimple_omp_edges.
5146 * gimplify.c: Include omp-low.h.
5147 * tree-parloops.c: Likewise.
5149 2013-10-17 Uros Bizjak <ubizjak@gmail.com>
5151 * config/i386/i386.c (ix86_fixup_binary_operands): When both source
5152 operands are in memory, prefer to force non-matched operand 1 to
5155 2013-10-17 Michael Meissner <meissner@linux.vnet.ibm.com>
5158 * config/rs6000/rs6000.c (rs6000_legitimate_address_p): Only
5159 restrict TImode addresses to single indirect registers if both
5160 -mquad-memory and -mvsx-timode are used.
5161 (rs6000_output_move_128bit): Use quad_load_store_p to determine if
5162 we should emit load/store quad. Remove using %y for quad memory
5165 * config/rs6000/rs6000.md (mov<mode>_ppc64, TI/PTImode): Add
5166 constraints to allow load/store quad on machines where TImode is
5167 not allowed in VSX registers. Use 'n' instead of 'F' constraint
5168 for TImode to load integer constants.
5170 2013-10-17 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
5172 * config/aarch64/aarch64.c (aarch64_print_operand): Handle 'c'.
5174 2013-10-17 Marcus Shawcroft <marcus.shawcroft@arm.com>
5176 * config/aarch64/aarch64.c (aarch64_preferred_reload_class): Adjust
5177 handling of STACK_REG.
5179 2013-10-17 Richard Biener <rguenther@suse.de>
5181 PR tree-optimization/58143
5182 * tree-ssa-loop-im.c (arith_code_with_undefined_signed_overflow):
5184 (rewrite_to_defined_overflow): Likewise.
5185 (move_computations_dom_walker::before_dom): Rewrite stmts
5186 with undefined signed overflow that are not always executed
5187 into unsigned arithmetic.
5189 2013-10-16 Michael Meissner <meissner@linux.vnet.ibm.com>
5192 * config/rs6000/rs6000.opt (rs6000_isa_flags_explicit): Move the
5193 explicit isa flag to be an options variable, instead of using
5194 global_options_set. Remove define from rs6000.h.
5195 * config/rs6000/rs6000.h (rs6000_isa_flags_explicit): Likewise.
5197 * config/rs6000/rs6000.c (rs6000_option_override_internal):
5198 Initialize rs6000_isa_flags_explicit.
5199 (rs6000_function_specific_save): Add gcc_options* parameter, so
5200 that the powerpc builds after the 2013-10-15 changes.
5201 (rs6000_function_specific_restore): Likewise.
5203 2013-10-16 DJ Delorie <dj@redhat.com>
5205 * config/rl78/rl78.c (rl78_alloc_address_registers_macax): Verify
5206 op is a REG before checking REGNO.
5207 (rl78_alloc_physical_registers): Verify pattern is a SET before
5210 2013-10-16 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
5212 * config/rs6000/vector.md (vec_unpacks_hi_v4sf): Correct for
5214 (vec_unpacks_lo_v4sf): Likewise.
5215 (vec_unpacks_float_hi_v4si): Likewise.
5216 (vec_unpacks_float_lo_v4si): Likewise.
5217 (vec_unpacku_float_hi_v4si): Likewise.
5218 (vec_unpacku_float_lo_v4si): Likewise.
5220 2013-10-16 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
5222 * config/rs6000/vsx.md (vsx_concat_<mode>): Adjust output for LE.
5223 (vsx_concat_v2sf): Likewise.
5225 2013-10-16 James Greenhalgh <james.greenhalgh@arm.com>
5227 * config/aarch64/aarch64.md
5228 (*mov<mode>_aarch64): Fix output template for DUP (element) Scalar.
5230 2013-10-16 Andrew MacLeod <amacleod@redhat.com>
5232 PR tree-optimization/58697
5233 * cfgloop.c (get_estimated_loop_iterations_int): Rename from
5234 estimated_loop_iterations_int.
5235 (max_stmt_executions_int): Call get_max_loop_iterations_int.
5236 (get_max_loop_iterations_int): New. HWINT version of
5237 get_max_loop_iterations.
5238 * cfgloop.h: Add prototypes.
5239 * loop-iv.c (find_simple_exit): call get_estimated_loop_iterations_int.
5240 * loop-unroll.c (decide_peel_once_rolling): Call
5241 get_estimated_loop_iterations_int.
5242 * tree-ssa-loop-niter.c (estimated_loop_iterations_int): Add back.
5243 * tree-ssa-loop-niter.h: Tweak prototypes.
5245 2013-10-16 David Malcolm <dmalcolm@redhat.com>
5247 * gengtype-parse.c (struct_field_seq): Ignore access-control
5248 keywords ("public:" etc).
5250 2013-10-16 Marcus Shawcroft <marcus.shawcroft@arm.com>
5252 * config/aarch64/aarch64.c (aarch64_regno_regclass): Classify
5253 FRAME_POINTER_REGNUM and ARG_POINTER_REGNUM as POINTER_REGS.
5255 2013-10-16 Yvan Roux <yvan.roux@linaro.org>
5257 * config/arm/arm.opt (mlra): New option.
5258 * config/arm/arm.c (arm_lra_p): New function.
5259 (TARGET_LRA_P): Define.
5261 2013-10-16 Paulo Matos <pmatos@broadcom.com>
5263 * tree-core.h (tree_code_name): Remove.
5264 * tree.h (get_tree_code_name): New prototype.
5265 * tree.c (tree_code_name): Make static.
5266 (get_tree_code_name): New function.
5267 (dump_tree_statistics, tree_check_failed, tree_not_check_failed,
5268 tree_class_check_failed, tree_range_check_failed,
5269 tree_not_class_check_failed, omp_clause_check_failed,
5270 tree_contains_struct_check_failed, tree_operand_check_failed): Use new
5271 wrapper get_tree_code_name instead of calling tree_code_name directly.
5272 * tree-vrp.c (dump_asserts_for): Likewise.
5273 * tree-dump.c (dequeue_and_dump): Likewise.
5274 * tree-pretty-print.c (do_niy, dump_generic_node): Likewise.
5275 * tree-pretty-print.h (pp_unsupported_tree): Likewise.
5276 * lto-streamer-out.c (lto_write_tree, DFS_write_tree): Likewise.
5277 * tree-ssa-dom.c (print_expr_hash_elt): Likewise.
5278 * gimple-pretty-print.c (dump_unary_rhs, dump_binary_rhs,
5279 dump_ternary_rhs, dump_gimple_assign, dump_gimple_cond,
5280 dump_gimple_omp_for): Likewise.
5281 * tree-vect-data-refs.c (vect_create_data_ref_ptr): Likewise.
5282 * tree-ssa-pre.c (print_pre_expr): Likewise.
5283 * ipa-prop.c (ipa_print_node_jump_functions_for_edge): Likewise.
5284 * print-tree.c (print_node_brief, print_node): Likewise.
5285 * gimple.c (gimple_check_failed): Likewise.
5286 * lto-streamer.c (lto_tag_name, print_lto_report): Likewise.
5287 * config/frv/frv.c (frv_init_cumulative_args): Likewise.
5288 * config/mep/mep.c (mep_validate_vliw): Likewise.
5289 * config/iq2000/iq2000.c (init_cumulative_args): Likewise.
5290 * config/rs6000/rs6000.c (init_cumulative_args): Likewise.
5292 2013-10-16 Ganesh Gopalasubramanian <Ganesh.Gopalasubramanian@amd.com>
5294 * config/i386/i386.c (ix86_option_override_internal): Enable FMA4
5297 2013-10-16 Hans-Peter Nilsson <hp@axis.com>
5299 * config/cris/t-elfmulti (MULTILIB_OPTIONS, MULTILIB_DIRNAMES)
5300 (MULTILIB_MATCHES): Add multilib for -march=v8.
5302 2013-10-15 Sriraman Tallam <tmsriram@google.com>
5305 * optc-save-gen.awk: Add extra parameter to the save and restore
5307 * opth-gen.awk: Generate new TARGET_* macros to accept a parameter.
5308 * tree.c (build_optimization_node): New parameter. Add extra parameter
5309 to call to cl_optimization_save.
5310 (build_target_option_node): New parameter. Add extra parameter
5311 to call to cl_target_option_save.
5312 * tree.h (build_optimization_node): New parameter.
5313 (build_target_option_node): New parameter.
5314 * c-family/c-common.c (handle_optimize_attribute): Fix calls to
5315 build_optimization_node and build_target_option_node.
5316 * c-family/c-pragma.c (handle_pragma_optimize): Ditto.
5317 (handle_pragma_push_options): Ditto.
5318 * toplev.c (process_options): Ditto.
5319 * opts.c (init_options_struct): Check for opts_set non-null.
5320 * target.def (target_option.save): New parameter.
5321 (target_option.restore): New parameter.
5322 * tm.texi: Generate.
5323 * config/i386/i386-c.c (ix86_target_macros_internal): Ditto.
5324 (ix86_pragma_target_parse): Ditto.
5325 * config/i386/i386-protos.h (ix86_valid_target_attribute_tree): New
5327 * config/rs6000/rs6000.c (rs6000_option_override_internal): Fix calls
5328 to build_optimization_node and build_target_option_node.
5329 (rs6000_valid_attribute_p): Ditto.
5330 (rs6000_pragma_target_parse): Ditto.
5331 * config/i386/i386.opt (x_ix86_target_flags_explicit): New TargetSave
5333 * config/i386/i386.h:
5334 TARGET_64BIT_P: New Macro
5335 TARGET_MMX_P: New Macro.
5336 TARGET_3DNOW_P: New Macro.
5337 TARGET_3DNOW_A_P: New Macro.
5338 TARGET_SSE_P: New Macro.
5339 TARGET_SSE2_P: New Macro.
5340 TARGET_SSE3_P: New Macro.
5341 TARGET_SSSE3_P: New Macro.
5342 TARGET_SSE4_1_P: New Macro.
5343 TARGET_SSE4_2_P: New Macro.
5344 TARGET_AVX_P: New Macro.
5345 TARGET_AVX2_P: New Macro.
5346 TARGET_AVX512F_P: New Macro.
5347 TARGET_AVX512PF_P: New Macro.
5348 TARGET_AVX512ER_P: New Macro.
5349 TARGET_AVX512CD_P: New Macro.
5350 TARGET_FMA_P: New Macro.
5351 TARGET_SSE4A_P: New Macro.
5352 TARGET_FMA4_P: New Macro.
5353 TARGET_XOP_P: New Macro.
5354 TARGET_LWP_P: New Macro.
5355 TARGET_ABM_P: New Macro.
5356 TARGET_BMI_P: New Macro.
5357 TARGET_BMI2_P: New Macro.
5358 TARGET_LZCNT_P: New Macro.
5359 TARGET_TBM_P: New Macro.
5360 TARGET_POPCNT_P: New Macro.
5361 TARGET_SAHF_P: New Macro.
5362 TARGET_MOVBE_P: New Macro.
5363 TARGET_CRC32_P: New Macro.
5364 TARGET_AES_P: New Macro.
5365 TARGET_PCLMUL_P: New Macro.
5366 TARGET_CMPXCHG16B_P: New Macro.
5367 TARGET_FSGSBASE_P: New Macro.
5368 TARGET_RDRND_P: New Macro.
5369 TARGET_F16C_P: New Macro.
5370 TARGET_RTM_P: New Macro.
5371 TARGET_HLE_P: New Macro.
5372 TARGET_RDSEED_P: New Macro.
5373 TARGET_PRFCHW_P: New Macro.
5374 TARGET_ADX_P: New Macro.
5375 TARGET_FXSR_P: New Macro.
5376 TARGET_XSAVE_P: New Macro.
5377 TARGET_XSAVEOPT_P: New Macro.
5378 TARGET_LP64_P: New Macro.
5379 TARGET_X32_P: New Macro.
5380 TARGET_FPMATH_DEFAULT_P: New Macro.
5381 TARGET_FLOAT_RETURNS_IN_80387_P: New Macro.
5382 * config/i386/i386.c (ix86_option_override_internal): New parameters.
5384 Change ix86_tune_string to access opts->x_ix86_tune_string.
5385 Change ix86_isa_flags to access opts->x_ix86_isa_flags.
5386 Change ix86_arch_string to access opts->x_ix86_arch_string.
5387 Change ix86_stringop_alg to access opts->x_ix86_stringop_alg.
5388 Change ix86_pmode to access opts->x_ix86_pmode.
5389 Change ix86_abi to access opts->x_ix86_abi.
5390 Change ix86_cmodel to access opts->x_ix86_cmodel.
5391 Change ix86_asm_dialect to access opts->x_ix86_asm_dialect.
5392 Change ix86_isa_flags_explicit to access
5393 opts->x_ix86_isa_flags_explicit.
5394 Change ix86_dump_tunes to access opts->x_ix86_dump_tunes.
5395 Change ix86_regparm to access opts->x_ix86_regparm.
5396 Change ix86_branch_cost to access opts->x_ix86_branch_cost.
5397 Change ix86_preferred_stack_boundary_arg to access
5398 opts->x_ix86_preferred_stack_boundary_arg.
5399 Change ix86_force_align_arg_pointer to access
5400 opts->x_ix86_force_align_arg_pointer.
5401 Change ix86_incoming_stack_boundar_arg to access
5402 opts->x_ix86_incoming_stack_boundar_arg.
5403 Change ix86_fpmath to access opts->x_ix86_fpmath.
5404 Change ix86_veclibabi_type to access opts->x_ix86_veclibabi_type.
5405 Change ix86_recip_name to access opts->x_ix86_recip_name.
5406 Change ix86_stack_protector_guard to access
5407 opts->x_ix86_stack_protector_guard.
5408 Change ix86_tune_memcpy_strategy to access
5409 opts->x_ix86_tune_memcpy_strategy.
5410 Change ix86_tune_memset_strategy to access
5411 opts->x_ix86_tune_memset_strategy.
5412 Change global_options to access opts.
5413 Change global_options_set to access opts_set.
5414 Change TARGET_64BIT to TARGET_64BIT_P (opts->...).
5415 Change TARGET_MMX to TARGET_MMX_P (opts->...).
5416 Change TARGET_3DNOW to TARGET_3DNOW_P (opts->...).
5417 Change TARGET_3DNOW_A to TARGET_3DNOW_A_P (opts->...).
5418 Change TARGET_SSE to TARGET_SSE_P (opts->...).
5419 Change TARGET_SSE2 to TARGET_SSE2_P (opts->...).
5420 Change TARGET_SSE3 to TARGET_SSE3_P (opts->...).
5421 Change TARGET_SSSE3 to TARGET_SSSE3_P (opts->...).
5422 Change TARGET_SSE4_1 to TARGET_SSE4_1_P (opts->...).
5423 Change TARGET_SSE4_2 to TARGET_SSE4_2_P (opts->...).
5424 Change TARGET_AVX to TARGET_AVX_P (opts->...).
5425 Change TARGET_AVX2 to TARGET_AVX2_P (opts->...).
5426 Change TARGET_AVX512F to TARGET_AVX512F_P (opts->...).
5427 Change TARGET_AVX512PF to TARGET_AVX512PF_P (opts->...).
5428 Change TARGET_AVX512ER to TARGET_AVX512ER_P (opts->...).
5429 Change TARGET_AVX512CD to TARGET_AVX512CD_P (opts->...).
5430 Change TARGET_FMA to TARGET_FMA_P (opts->...).
5431 Change TARGET_SSE4A to TARGET_SSE4A_P (opts->...).
5432 Change TARGET_FMA4 to TARGET_FMA4_P (opts->...).
5433 Change TARGET_XOP to TARGET_XOP_P (opts->...).
5434 Change TARGET_LWP to TARGET_LWP_P (opts->...).
5435 Change TARGET_ABM to TARGET_ABM_P (opts->...).
5436 Change TARGET_BMI to TARGET_BMI_P (opts->...).
5437 Change TARGET_BMI2 to TARGET_BMI2_P (opts->...).
5438 Change TARGET_LZCNT to TARGET_LZCNT_P (opts->...).
5439 Change TARGET_TBM to TARGET_TBM_P (opts->...).
5440 Change TARGET_POPCNT to TARGET_POPCNT_P (opts->...).
5441 Change TARGET_SAHF to TARGET_SAHF_P (opts->...).
5442 Change TARGET_MOVBE to TARGET_MOVBE_P (opts->...).
5443 Change TARGET_CRC32 to TARGET_CRC32_P (opts->...).
5444 Change TARGET_AES to TARGET_AES_P (opts->...).
5445 Change TARGET_PCLMUL to TARGET_PCLMUL_P (opts->...).
5446 Change TARGET_CMPXCHG16B to TARGET_CMPXCHG16B_P (opts->...).
5447 Change TARGET_FSGSBASE to TARGET_FSGSBASE_P (opts->...).
5448 Change TARGET_RDRND to TARGET_RDRND_P (opts->...).
5449 Change TARGET_F16C to TARGET_F16C_P (opts->...).
5450 Change TARGET_RTM to TARGET_RTM_P (opts->...).
5451 Change TARGET_HLE to TARGET_HLE_P (opts->...).
5452 Change TARGET_RDSEED to TARGET_RDSEED_P (opts->...).
5453 Change TARGET_PRFCHW to TARGET_PRFCHW_P (opts->...).
5454 Change TARGET_ADX to TARGET_ADX_P (opts->...).
5455 Change TARGET_FXSR to TARGET_FXSR_P (opts->...).
5456 Change TARGET_XSAVE to TARGET_XSAVE_P (opts->...).
5457 Change TARGET_XSAVEOPT to TARGET_XSAVEOPT_P (opts->...).
5458 Change TARGET_LP64 to TARGET_LP64_P (opts->...).
5459 Change TARGET_X32 to TARGET_X32_P (opts->...).
5460 Change TARGET_FPMATH_DEFAULT to TARGET_FPMATH_DEFAULT_P (opts->...).
5461 Change TARGET_FLOAT_RETURNS_IN_80387 to
5462 TARGET_FLOAT_RETURNS_IN_80387_P (opts->...).
5463 (ix86_function_specific_save): New parameter. Use opts-> fields
5464 to replace global fields.
5465 (ix86_function_specific_restore): Ditto.
5466 (ix86_valid_target_attribute_inner_p): New parameters.
5468 Fix call to ix86_handle_option and set_option.
5469 (ix86_valid_target_attribute_tree): New parameters.
5470 Change global_options to access opts.
5471 Change global_options_set to access opts_set.
5472 Fix call to ix86_valid_target_attribute_inner_p.
5473 Change ix86_tune_string to access opts->x_ix86_tune_string.
5474 Change ix86_arch_string to access opts->x_ix86_arch_string.
5475 Change ix86_fpmath to access opts->x_ix86_fpmath
5476 Fix call to ix86_option_override_internal.
5477 Fix call to ix86_add_new_builtins.
5478 Fix calls to build_optimization_node and build_target_option_node.
5479 (ix86_valid_target_attribute_p): Remove access to global_options.
5480 Use new gcc_options structure func_options.
5481 Fix call to ix86_valid_target_attribute_tree.
5482 Fix call to build_optimization_node.
5483 (get_builtin_code_for_version): Fix call to
5484 ix86_valid_target_attribute_tree.
5486 2013-10-15 David Malcolm <dmalcolm@redhat.com>
5488 * Makefile.in (PICFLAG): New.
5489 (enable_host_shared): New.
5490 (INTERNAL_CFLAGS): Use PICFLAG.
5491 (LIBIBERTY): Use pic build of libiberty.a if configured with
5492 --enable-host-shared.
5493 * configure.ac: Add --enable-host-shared, setting up new
5495 * configure: Regenerate.
5496 * doc/install.texi (--enable-shared): Add note contrasting it with ...
5497 (--enable-host-shared): New option.
5499 2013-10-15 Richard Biener <rguenther@suse.de>
5501 * tree-tailcall.c (find_tail_calls): Don't use tail-call recursion
5502 for built-in functions.
5504 2013-10-15 Zhenqiang Chen <zhenqiang.chen@arm.com>
5506 * tree-ssa-reassoc.c: Include rtl.h and tm_p.h.
5507 (optimize_range_tests_1): New function,
5508 extracted from optimize_range_tests.
5509 (optimize_range_tests_xor): Similarly.
5510 (optimize_range_tests_diff): New function.
5511 (optimize_range_tests): Use optimize_range_tests_1.
5513 2013-10-15 Cong Hou <congh@google.com>
5515 * tree-vect-loop.c (vect_is_simple_reduction_1): Relax the
5516 requirement of the reduction pattern so that one operand of the
5517 reduction operation can come from outside of the loop.
5519 2013-10-15 James Greenhalgh <james.greenhalgh@arm.com>
5521 * config/arm/neon-schedgen.ml: Remove.
5522 * config/arm/cortex-a9-neon.md: Remove comment regarding
5525 2013-10-15 James Greenhalgh <james.greenhalgh@arm.com>
5527 * config/arm/types: Remove old neon types.
5529 2013-10-15 James Greenhalgh <james.greenhalgh@arm.com>
5531 * config/arm/cortex-a7.md
5532 (cortex_a7_neon_type): New.
5533 (cortex_a7_neon_mul): Update for new types.
5534 (cortex_a7_neon_mla): Likewise.
5535 (cortex_a7_neon): Likewise.
5537 2013-10-15 James Greenhalgh <james.greenhalgh@arm.com>
5539 * config/arm/cortex-a15-neon.md
5540 (cortex_a15_neon_type): New,
5542 (cortex_a15_neon_int_1): Remove.
5543 (cortex_a15_neon_int_2): Likewise.
5544 (cortex_a15_neon_int_3): Likewise.
5545 (cortex_a15_neon_int_4): Likewise.
5546 (cortex_a15_neon_int_5): Likewise.
5547 (cortex_a15_neon_vqneg_vqabs): Likewise.
5548 (cortex_a15_neon_vmov): Likewise.
5549 (cortex_a15_neon_vaba): Likewise.
5550 (cortex_a15_neon_vaba_qqq): Likewise.
5551 (cortex_a15_neon_mul_ddd_8_16_qdd_16_8_long_32_16_long): Likewise.
5552 (cortex_a15_neon_mul_qqq_8_16_32_ddd_32): Likewise.
5553 (cortex_a15_neon_mul_qdd_64_32_long_qqd_16_ddd_32_scalar_64_32_long_scalar):
5555 (cortex_a15_neon_mla_ddd_8_16_qdd_16_8_long_32_16_long): Likewise.
5556 (cortex_a15_neon_mla_qqq_8_16): Likewise.
5557 (cortex_a15_neon_mla_ddd_32_qqd_16_ddd_32_scalar): Likewise.
5558 (cortex_a15_neon_mla_qqq_32_qqd_32_scalar): Likewise.
5559 (cortex_a15_neon_mul_ddd_16_scalar_32_16_long_scalar): Likewise.
5560 (cortex_a15_neon_mul_qqd_32_scalar): Likewise.
5561 (cortex_a15_neon_mla_ddd_16_scalar_qdd_32_16_long_scalar): Likewise.
5562 (cortex_a15_neon_shift_1): Likewise.
5563 (cortex_a15_neon_shift_2): Likewise.
5564 (cortex_a15_neon_shift_3): Likewise.
5565 (cortex_a15_neon_vshl_ddd): Likewise.
5566 (cortex_a15_neon_vqshl_vrshl_vqrshl_qqq): Likewise.
5567 (cortex_a15_neon_vsra_vrsra): Likewise.
5568 (cortex_a15_neon_fp_vmla_ddd_scalar): Likewise.
5569 (cortex_a15_neon_fp_vmla_qqq_scalar): Likewise.
5570 (cortex_a15_neon_bp_3cycle): Likewise.
5571 (cortex_a15_neon_ldm_2): Likewise.
5572 (cortex_a15_neon_stm_2): Likewise.
5573 (cortex_a15_neon_mcr): Likewise.
5574 (cortex_a15_neon_mrc): Likewise.
5575 (cortex_a15_neon_fp_vadd_ddd_vabs_dd): Likewise.
5576 (cortex_a15_neon_fp_vadd_qqq_vabs_qq): Likewise.
5577 (cortex_a15_neon_fp_vmul_ddd): Likewise.
5578 (cortex_a15_neon_fp_vmul_qqd): Likewise.
5579 (cortex_a15_neon_fp_vmla_ddd): Likewise.
5580 (cortex_a15_neon_fp_vmla_qqq): Likewise.
5581 (cortex_a15_neon_fp_vmla_ddd_scalar): Likewise.
5582 (cortex_a15_neon_fp_vmla_qqq_scalar): Likewise.
5583 (cortex_a15_neon_fp_vrecps_vrsqrts_ddd): Likewise.
5584 (cortex_a15_neon_fp_vrecps_vrsqrts_qqq): Likewise.
5585 (cortex_a15_neon_bp_simple): Likewise.
5586 (cortex_a15_neon_bp_2cycle): Likewise.
5587 (cortex_a15_neon_bp_3cycle): Likewise.
5588 (cortex_a15_neon_vld1_1_2_regs): Likewise.
5589 (cortex_a15_neon_vld1_3_4_regs): Likewise.
5590 (cortex_a15_neon_vld2_2_regs_vld1_vld2_all_lanes): Likewise.
5591 (cortex_a15_neon_vld2_4_regs): Likewise.
5592 (cortex_a15_neon_vld3_vld4): Likewise.
5593 (cortex_a15_neon_vst1_1_2_regs_vst2_2_regs): Likewise.
5594 (cortex_a15_neon_vst1_3_4_regs): Likewise.
5595 (cortex_a15_neon_vst2_4_regs_vst3_vst4): Rename to...
5596 (cortex_a15_neon_vst2_4_regs_vst3): ...This, update for new attributes.
5597 (cortex_a15_neon_vst3_vst4): Rename to...
5598 (cortex_a15_neon_vst4): This, update for new attributes.
5599 (cortex_a15_neon_vld1_vld2_lane): Update for new attributes.
5600 (cortex_a15_neon_vld3_vld4_lane): Likewise.
5601 (cortex_a15_neon_vst1_vst2_lane): Likewise.
5602 (cortex_a15_neon_vst3_vst4_lane): Likewise.
5603 (cortex_a15_neon_vld3_vld4_all_lanes): Likewise.
5604 (cortex_a15_neon_ldm_2): Likewise.
5605 (cortex_a15_neon_stm_2): Likewise.
5606 (cortex_a15_neon_mcr): Likewise.
5607 (cortex_a15_neon_mcr_2_mcrr): Likewise.
5608 (cortex_a15_neon_mrc): Likewise.
5609 (cortex_a15_neon_mrrc): Likewise.
5611 (cortex_a15_neon_abd): New.
5612 (cortex_a15_neon_abd_q): Likewise.
5613 (cortex_a15_neon_aba): Likewise.
5614 (cortex_a15_neon_aba_q): Likewise.
5615 (cortex_a15_neon_acc): Likewise.
5616 (cortex_a15_neon_acc_q): Likewise.
5617 (cortex_a15_neon_arith_basic): Likewise.
5618 (cortex_a15_neon_arith_complex): Likewise.
5619 (cortex_a15_neon_multiply): Likewise.
5620 (cortex_a15_neon_multiply_q): Likewise.
5621 (cortex_a15_neon_mla): Likewise.
5622 (cortex_a15_neon_mla_q): Likewise.
5623 (cortex_a15_neon_sat_mla_long): Likewise.
5624 (cortex_a15_neon_shift_acc): Likewise.
5625 (cortex_a15_neon_shift_imm_basic): Likewise.
5626 (cortex_a15_neon_shift_imm_complex): Likewise.
5627 (cortex_a15_neon_shift_reg_basic): Likewise.
5628 (cortex_a15_neon_shift_reg_basic_q): Likewise.
5629 (cortex_a15_neon_shift_reg_complex): Likewise.
5630 (cortex_a15_neon_shift_reg_complex_q): Likewise.
5631 (cortex_a15_neon_fp_negabs): Likewise
5632 (cortex_a15_neon_fp_arith): Likewise
5633 (cortex_a15_neon_fp_arith_q): Likewise
5634 (cortex_a15_neon_fp_cvt_int): Likewise
5635 (cortex_a15_neon_fp_cvt_int_q): Likewise
5636 (cortex_a15_neon_fp_cvt_16): Likewise
5637 (cortex_a15_neon_fp_mul): Likewise
5638 (cortex_a15_neon_fp_mul_q): Likewise
5639 (cortex_a15_neon_fp_mla): Likewise
5640 (cortex_a15_neon_fp_mla_q): Likewise
5641 (cortex_a15_neon_fp_recps_rsqrte): Likewise.
5642 (cortex_a15_neon_fp_recps_rsqrte_q): Likewise.
5643 (cortex_a15_neon_bitops): Likewise.
5644 (cortex_a15_neon_bitops_q): Likewise.
5645 (cortex_a15_neon_from_gp): Likewise.
5646 (cortex_a15_neon_from_gp_q): Likewise.
5647 (cortex_a15_neon_tbl3_tbl4): Likewise.
5648 (cortex_a15_neon_zip_q): Likewise.
5649 (cortex_a15_neon_to_gp): Likewise.
5650 (cortex_a15_neon_load_a): Likewise.
5651 (cortex_a15_neon_load_b): Likewise.
5652 (cortex_a15_neon_load_c): Likewise.
5653 (cortex_a15_neon_load_d): Likewise.
5654 (cortex_a15_neon_load_e): Likewise.
5655 (cortex_a15_neon_load_f): Likewise.
5656 (cortex_a15_neon_store_a): Likewise.
5657 (cortex_a15_neon_store_b): Likewise.
5658 (cortex_a15_neon_store_c): Likewise.
5659 (cortex_a15_neon_store_d): Likewise.
5660 (cortex_a15_neon_store_e): Likewise.
5661 (cortex_a15_neon_store_f): Likewise.
5662 (cortex_a15_neon_store_g): Likewise.
5663 (cortex_a15_neon_store_h): Likewise.
5664 (cortex_a15_vfp_to_from_gp): Likewise.
5666 2013-10-15 James Greenhalgh <james.greenhalgh@arm.com>
5668 * config/arm/cortex-a9-neon.md (cortex_a9_neon_type): New.
5670 (cortex_a9_neon_vshl_ddd): Remove.
5671 (cortex_a9_neon_vst3_vst4): Likewise.
5672 (cortex_a9_neon_vld3_vld4_all_lanes): Likewise.
5674 (cortex_a9_neon_bit_ops_q): New.
5676 (cortex_a9_neon_int_1): Use cortex_a8_neon_type.
5677 (cortex_a9_neon_int_2): Likewise.
5678 (cortex_a9_neon_int_3): Likewise.
5679 (cortex_a9_neon_int_4): Likewise.
5680 (cortex_a9_neon_int_5): Likewise.
5681 (cortex_a9_neon_vqneg_vqabs): Likewise.
5682 (cortex_a9_neon_vmov): Likewise.
5683 (cortex_a9_neon_vaba): Likewise.
5684 (cortex_a9_neon_vaba_qqq): Likewise.
5685 (cortex_a9_neon_shift_1): Likewise.
5686 (cortex_a9_neon_shift_2): Likewise.
5687 (cortex_a9_neon_shift_3): Likewise.
5688 (cortex_a9_neon_vqshl_vrshl_vqrshl_qqq): Likewise.
5689 (cortex_a9_neon_vsra_vrsra): Likewise.
5690 (cortex_a9_neon_mul_ddd_8_16_qdd_16_8_long_32_16_long): Likewise.
5691 (cortex_a9_neon_mul_qqq_8_16_32_ddd_32): Likewise.
5692 (cortex_a9_neon_mul_qdd_64_32_long_qqd_16_ddd_32_scalar_64_32_long_scalar):
5694 (cortex_a9_neon_mla_ddd_8_16_qdd_16_8_long_32_16_long): Likewise.
5695 (cortex_a9_neon_mla_qqq_8_16): Likewise.
5696 (cortex_a9_neon_mla_ddd_32_qqd_16_ddd_32_scalar_qdd_64_32_long_scalar_qdd_64_32_long):
5698 (cortex_a9_neon_mla_qqq_32_qqd_32_scalar): Likewise.
5699 (cortex_a9_neon_mul_ddd_16_scalar_32_16_long_scalar): Likewise.
5700 (cortex_a9_neon_mul_qqd_32_scalar): Likewise.
5701 (cortex_a9_neon_mla_ddd_16_scalar_qdd_32_16_long_scalar): Likewise.
5702 (cortex_a9_neon_fp_vadd_ddd_vabs_dd): Likewise.
5703 (cortex_a9_neon_fp_vadd_qqq_vabs_qq): Likewise.
5704 (cortex_a9_neon_fp_vsum): Likewise.
5705 (cortex_a9_neon_fp_vmul_ddd): Likewise.
5706 (cortex_a9_neon_fp_vmul_qqd): Likewise.
5707 (cortex_a9_neon_fp_vmla_ddd): Likewise.
5708 (cortex_a9_neon_fp_vmla_qqq): Likewise.
5709 (cortex_a9_neon_fp_vmla_ddd_scalar): Likewise.
5710 (cortex_a9_neon_fp_vmla_qqq_scalar): Likewise.
5711 (cortex_a9_neon_fp_vrecps_vrsqrts_ddd): Likewise.
5712 (cortex_a9_neon_fp_vrecps_vrsqrts_qqq): Likewise.
5713 (cortex_a9_neon_bp_simple): Likewise.
5714 (cortex_a9_neon_bp_2cycle): Likewise.
5715 (cortex_a9_neon_bp_3cycle): Likewise.
5716 (cortex_a9_neon_ldr): Likewise.
5717 (cortex_a9_neon_str): Likewise.
5718 (cortex_a9_neon_vld1_1_2_regs): Likewise.
5719 (cortex_a9_neon_vld1_3_4_regs): Likewise.
5720 (cortex_a9_neon_vld2_2_regs_vld1_vld2_all_lanes): Likewise.
5721 (cortex_a9_neon_vld2_4_regs): Likewise.
5722 (cortex_a9_neon_vld3_vld4): Likewise.
5723 (cortex_a9_neon_vld1_vld2_lane): Likewise.
5724 (cortex_a9_neon_vld3_vld4_lane): Likewise.
5725 (cortex_a9_neon_vld3_vld4_all_lanes): Likewise.
5726 (cortex_a9_neon_vst1_1_2_regs_vst2_2_regs): Likewise.
5727 (cortex_a9_neon_vst1_3_4_regs): Likewise.
5728 (cortex_a9_neon_vst2_4_regs_vst3_vst4): Likewise.
5729 (cortex_a9_neon_vst1_vst2_lane): Likewise.
5730 (cortex_a9_neon_vst3_vst4_lane): Likewise.
5731 (cortex_a9_neon_mcr): Likewise.
5732 (cortex_a9_neon_mcr_2_mcrr): Likewise.
5733 (cortex_a9_neon_mrc): Likewise.
5734 (cortex_a9_neon_mrrc): Likewise.
5736 2013-10-15 James Greenhalgh <james.greenhalgh@arm.com>
5738 * config/arm/cortex-a8-neon.md (cortex_a8_neon_type): New.
5740 (cortex_a8_neon_vshl_ddd): Remove.
5741 (cortex_a8_neon_vst3_vst4): Likewise.
5742 (cortex_a8_neon_vld3_vld4_all_lanes): Likewise.
5744 (cortex_a8_neon_bit_ops_q): New.
5746 (cortex_a8_neon_int_1): Use cortex_a8_neon_type.
5747 (cortex_a8_neon_int_2): Likewise..
5748 (cortex_a8_neon_int_3): Likewise.
5749 (cortex_a8_neon_int_5): Likewise.
5750 (cortex_a8_neon_vqneg_vqabs): Likewise.
5751 (cortex_a8_neon_int_4): Likewise.
5752 (cortex_a8_neon_vaba): Likewise.
5753 (cortex_a8_neon_vaba_qqq): Likewise.
5754 (cortex_a8_neon_shift_1): Likewise.
5755 (cortex_a8_neon_shift_2): Likewise.
5756 (cortex_a8_neon_shift_3): Likewise.
5757 (cortex_a8_neon_vqshl_vrshl_vqrshl_qqq): Likewise.
5758 (cortex_a8_neon_vsra_vrsra): Likewise.
5759 (cortex_a8_neon_mul_ddd_8_16_qdd_16_8_long_32_16_long): Likewise.
5760 (cortex_a8_neon_mul_qqq_8_16_32_ddd_32): Likewise.
5761 (cortex_a8_neon_mul_qdd_64_32_long_qqd_16_ddd_32_scalar_64_32_long_scalar):
5763 (cortex_a8_neon_mla_ddd_8_16_qdd_16_8_long_32_16_long): Likewise.
5764 (cortex_a8_neon_mla_qqq_8_16): Likewise.
5765 (cortex_a8_neon_mla_ddd_32_qqd_16_ddd_32_scalar_qdd_64_32_long_scalar_qdd_64_32_long):
5767 (cortex_a8_neon_mla_qqq_32_qqd_32_scalar): Likewise.
5768 (cortex_a8_neon_mul_ddd_16_scalar_32_16_long_scalar): Likewise.
5769 (cortex_a8_neon_mul_qqd_32_scalar): Likewise.
5770 (cortex_a8_neon_mla_ddd_16_scalar_qdd_32_16_long_scalar): Likewise.
5771 (cortex_a8_neon_fp_vadd_ddd_vabs_dd): Likewise.
5772 (cortex_a8_neon_fp_vadd_qqq_vabs_qq): Likewise.
5773 (cortex_a8_neon_fp_vsum): Likewise.
5774 (cortex_a8_neon_fp_vmul_ddd): Likewise.
5775 (cortex_a8_neon_fp_vmul_qqd): Likewise.
5776 (cortex_a8_neon_fp_vmla_ddd): Likewise.
5777 (cortex_a8_neon_fp_vmla_qqq): Likewise.
5778 (cortex_a8_neon_fp_vmla_ddd_scalar): Likewise.
5779 (cortex_a8_neon_fp_vmla_qqq_scalar): Likewise.
5780 (cortex_a8_neon_fp_vrecps_vrsqrts_ddd): Likewise.
5781 (cortex_a8_neon_fp_vrecps_vrsqrts_qqq): Likewise.
5782 (cortex_a8_neon_bp_simple): Likewise.
5783 (cortex_a8_neon_bp_2cycle): Likewise.
5784 (cortex_a8_neon_bp_3cycle): Likewise.
5785 (cortex_a8_neon_ldr): Likewise.
5786 (cortex_a8_neon_str): Likewise.
5787 (cortex_a8_neon_vld1_1_2_regs): Likewise.
5788 (cortex_a8_neon_vld1_3_4_regs): Likewise.
5789 (cortex_a8_neon_vld2_2_regs_vld1_vld2_all_lanes): Likewise.
5790 (cortex_a8_neon_vld2_4_regs): Likewise.
5791 (cortex_a8_neon_vld3_vld4): Likewise.
5792 (cortex_a8_neon_vld1_vld2_lane): Likewise.
5793 (cortex_a8_neon_vld3_vld4_lane): Likewise.
5794 (cortex_a8_neon_vst1_1_2_regs_vst2_2_regs): Likewise.
5795 (cortex_a8_neon_vst1_3_4_regs): Likewise.
5796 (cortex_a8_neon_vst2_4_regs_vst3_vst4): Likewise.
5797 (cortex_a8_neon_vst1_vst2_lane): Likewise.
5798 (cortex_a8_neon_vst3_vst4_lane): Likewise.
5799 (cortex_a8_neon_mcr): Likewise.
5800 (cortex_a8_neon_mcr_2_mcrr): Likewise.
5801 (cortex_a8_neon_mrc): Likewise.
5802 (cortex_a8_neon_mrrc): Likewise.
5804 2013-10-15 James Greenhalgh <james.greenhalgh@arm.com>
5806 * config/aarch64/iterators.md (Vetype): Add SF and DF modes.
5808 * config/aarch64/aarch64-simd.md (neon_type): Remove.
5809 (aarch64_simd_dup<mode>): Add "type" attribute.
5810 (aarch64_dup_lane<mode>): Likewise.
5811 (aarch64_dup_lane_<vswap_width_name><mode>): Likewise.
5812 (*aarch64_simd_mov<mode>): Likewise.
5813 (aarch64_simd_mov_from_<mode>low): Likewise.
5814 (aarch64_simd_mov_from_<mode>high): Likewise.
5815 (orn<mode>3): Likewise.
5816 (bic<mode>3): Likewise.
5817 (add<mode>3): Likewise.
5818 (sub<mode>3): Likewise.
5819 (mul<mode>3): Likewise.
5820 (*aarch64_mul3_elt<mode>): Likewise.
5821 (*aarch64_mul3_elt_<vswap_width_name><mode>): Likewise.
5822 (*aarch64_mul3_elt_to_128df): Likewise.
5823 (*aarch64_mul3_elt_to_64v2df): Likewise.
5824 (neg<mode>2): Likewise.
5825 (abs<mode>2): Likewise.
5826 (abd<mode>_3): Likewise.
5827 (aba<mode>_3): Likewise.
5828 (fabd<mode>_3): Likewise.
5829 (*fabd_scalar<mode>3): Likewise.
5830 (and<mode>3): Likewise.
5831 (ior<mode>3): Likewise.
5832 (xor<mode>3): Likewise.
5833 (one_cmpl<mode>2): Likewise.
5834 (aarch64_simd_vec_set<mode>): Likewise.
5835 (aarch64_simd_lshr<mode>): Likewise.
5836 (aarch64_simd_ashr<mode>): Likewise.
5837 (aarch64_simd_imm_shl<mode>): Likewise.
5838 (aarch64_simd_reg_sshl<mode): Likewise.
5839 (aarch64_simd_reg_shl<mode>_unsigned): Likewise.
5840 (aarch64_simd_reg_shl<mode>_signed): Likewise.
5841 (aarch64_simd_vec_setv2di): Likewise.
5842 (aarch64_simd_vec_set<mode>): Likewise.
5843 (aarch64_mla<mode>): Likewise.
5844 (*aarch64_mla_elt<mode>): Likewise.
5845 (*aarch64_mla_elt_<vswap_width_name><mode>): Likewise.
5846 (aarch64_mls<mode>): Likewise.
5847 (*aarch64_mls_elt<mode>): Likewise.
5848 (*aarch64_mls_elt_<vswap_width_name><mode>): Likewise.
5849 (<su><maxmin><mode>3): Likewise.
5850 (move_lo_quad_<mode>): Likewise.
5851 (aarch64_simd_move_hi_quad_<mode>): Likewise.
5852 (aarch64_simd_vec_pack_trunc_<mode>): Likewise.
5853 (vec_pack_trunc_<mode>): Likewise.
5854 (aarch64_simd_vec_unpack<su>_lo_<mode>): Likewise.
5855 (aarch64_simd_vec_unpack<su>_hi_<mode>): Likewise.
5856 (*aarch64_<su>mlal_lo<mode>): Likewise.
5857 (*aarch64_<su>mlal_hi<mode>): Likewise.
5858 (*aarch64_<su>mlsl_lo<mode>): Likewise.
5859 (*aarch64_<su>mlsl_hi<mode>): Likewise.
5860 (*aarch64_<su>mlal<mode>): Likewise.
5861 (*aarch64_<su>mlsl<mode>): Likewise.
5862 (aarch64_simd_vec_<su>mult_lo_<mode>): Likewise.
5863 (aarch64_simd_vec_<su>mult_hi_<mode>): Likewise.
5864 (add<mode>3): Likewise.
5865 (sub<mode>3): Likewise.
5866 (mul<mode>3): Likewise.
5867 (div<mode>3): Likewise.
5868 (neg<mode>2): Likewise.
5869 (abs<mode>2): Likewise.
5870 (fma<mode>4): Likewise.
5871 (*aarch64_fma4_elt<mode>): Likewise.
5872 (*aarch64_fma4_elt_<vswap_width_name><mode>): Likewise.
5873 (*aarch64_fma4_elt_to_128df): Likewise.
5874 (*aarch64_fma4_elt_to_64v2df): Likewise.
5875 (fnma<mode>4): Likewise.
5876 (*aarch64_fnma4_elt<mode>): Likewise.
5877 (*aarch64_fnma4_elt_<vswap_width_name><mode>
5878 (*aarch64_fnma4_elt_to_128df): Likewise.
5879 (*aarch64_fnma4_elt_to_64v2df): Likewise.
5880 (<frint_pattern><mode>2): Likewise.
5881 (l<fcvt_pattern><su_optab><VDQF:mode><fcvt_target>2): Likewise.
5882 (<optab><fcvt_target><VDQF:VDQF:mode>2): Likewise.
5883 (vec_unpacks_lo_v4sf): Likewise.
5884 (aarch64_float_extend_lo_v2df): Likewise.
5885 (vec_unpacks_hi_v4sf): Likewise.
5886 (aarch64_float_truncate_lo_v2sf): Likewise.
5887 (aarch64_float_truncate_hi_v4sf): Likewise.
5888 (aarch64_vmls<mode>): Likewise.
5889 (<su><maxmin><mode>3): Likewise.
5890 (<maxmin_uns><mode>3): Likewise.
5891 (reduc_<sur>plus_<mode>): Likewise.
5892 (reduc_<sur>plus_v2di): Likewise.
5893 (reduc_<sur>plus_v2si): Likewise.
5894 (reduc_<sur>plus_<mode>): Likewise.
5895 (aarch64_addpv4sf): Likewise.
5896 (clz<mode>2): Likewise.
5897 (reduc_<maxmin_uns>_<mode>): Likewise.
5898 (reduc_<maxmin_uns>_v2di): Likewise.
5899 (reduc_<maxmin_uns>_v2si): Likewise.
5900 (reduc_<maxmin_uns>_<mode>): Likewise.
5901 (reduc_<maxmin_uns>_v4sf): Likewise.
5902 (aarch64_simd_bsl<mode>_internal): Likewise.
5903 (*aarch64_get_lane_extend<GPI:mode><VDQQH:mode>): Likewise.
5904 (*aarch64_get_lane_zero_extendsi<mode>): Likewise.
5905 (aarch64_get_lane<mode>): Likewise.
5906 (*aarch64_combinez<mode>): Likewise.
5907 (aarch64_combine<mode>): Likewise.
5908 (aarch64_simd_combine<mode>): Likewise.
5909 (aarch64_<ANY_EXTEND:su><ADDSUB:optab>l<mode>_hi_internal): Likewise.
5910 (aarch64_<ANY_EXTEND:su><ADDSUB:optab>l<mode>_lo_internal): Likewise.
5911 (aarch64_<ANY_EXTEND:su><ADDSUB:optab>l<mode>): Likewise.
5912 (aarch64_<ANY_EXTEND:su><ADDSUB:optab>w<mode>): Likewise.
5913 (aarch64_<ANY_EXTEND:su><ADDSUB:optab>w2<mode>_internal): Likewise.
5914 (aarch64_<sur>h<addsub><mode>): Likewise.
5915 (aarch64_<sur><addsub>hn<mode>): Likewise.
5916 (aarch64_<sur><addsub>hn2<mode>): Likewise.
5917 (aarch64_pmul<mode>): Likewise.
5918 (aarch64_<su_optab><optab><mode>): Likewise.
5919 (aarch64_<sur>qadd<mode>): Likewise.
5920 (aarch64_sqmovun<mode>): Likewise.
5921 (aarch64_<sur>qmovn<mode>): Likewise.
5922 (aarch64_s<optab><mode>): Likewise.
5923 (aarch64_sq<r>dmulh<mode>): Likewise.
5924 (aarch64_sq<r>dmulh_lane<mode>): Likewise.
5925 (aarch64_sq<r>dmulh_laneq<mode>): Likewise.
5926 (aarch64_sq<r>dmulh_lane<mode>): Likewise.
5927 (aarch64_sqdml<SBINQOPS:as>l<mode>): Likewise.
5928 (aarch64_sqdml<SBINQOPS:as>l_lane<mode>_internal): Likewise.
5929 (aarch64_sqdml<SBINQOPS:as>l_lane<mode>_internal): Likewise.
5930 (aarch64_sqdml<SBINQOPS:as>l_n<mode>): Likewise.
5931 (aarch64_sqdml<SBINQOPS:as>l2<mode>_internal): Likewise.
5932 (aarch64_sqdml<SBINQOPS:as>l2_lane<mode>_internal): Likewise.
5933 (aarch64_sqdml<SBINQOPS:as>l2_n<mode>_internal): Likewise.
5934 (aarch64_sqdmull<mode>): Likewise.
5935 (aarch64_sqdmull_lane<mode>_internal): Likewise.
5936 (aarch64_sqdmull_n<mode>): Likewise.
5937 (aarch64_sqdmull2<mode>_internal): Likewise.
5938 (aarch64_sqdmull2_lane<mode>_internal): Likewise.
5939 (aarch64_sqdmull2_n<mode>_internal): Likewise.
5940 (aarch64_<sur>shl<mode>): Likewise.
5941 (aarch64_<sur>q<r>shl<mode>
5942 (aarch64_<sur>shll_n<mode>): Likewise.
5943 (aarch64_<sur>shll2_n<mode>): Likewise.
5944 (aarch64_<sur>shr_n<mode>): Likewise.
5945 (aarch64_<sur>sra_n<mode>): Likewise.
5946 (aarch64_<sur>s<lr>i_n<mode>): Likewise.
5947 (aarch64_<sur>qshl<u>_n<mode>): Likewise.
5948 (aarch64_<sur>q<r>shr<u>n_n<mode>): Likewise.
5949 (aarch64_cm<optab><mode>): Likewise.
5950 (aarch64_cm<optab>di): Likewise.
5951 (aarch64_cm<optab><mode>): Likewise.
5952 (aarch64_cm<optab>di): Likewise.
5953 (aarch64_cmtst<mode>): Likewise.
5954 (aarch64_cmtstdi): Likewise.
5955 (aarch64_cm<optab><mode>): Likewise.
5956 (*aarch64_fac<optab><mode>): Likewise.
5957 (aarch64_addp<mode>): Likewise.
5958 (aarch64_addpdi): Likewise.
5959 (sqrt<mode>2): Likewise.
5960 (vec_load_lanesoi<mode>): Likewise.
5961 (vec_store_lanesoi<mode>): Likewise.
5962 (vec_load_lanesci<mode>): Likewise.
5963 (vec_store_lanesci<mode>): Likewise.
5964 (vec_load_lanesxi<mode>): Likewise.
5965 (vec_store_lanesxi<mode>): Likewise.
5966 (*aarch64_mov<mode>): Likewise.
5967 (aarch64_ld2<mode>_dreg): Likewise.
5968 (aarch64_ld2<mode>_dreg): Likewise.
5969 (aarch64_ld3<mode>_dreg): Likewise.
5970 (aarch64_ld3<mode>_dreg): Likewise.
5971 (aarch64_ld4<mode>_dreg): Likewise.
5972 (aarch64_ld4<mode>_dreg): Likewise.
5973 (aarch64_tbl1<mode>): Likewise.
5974 (aarch64_tbl2v16qi): Likewise.
5975 (aarch64_combinev16qi): Likewise.
5976 (aarch64_<PERMUTE:perm_insn><PERMUTE:perm_hilo><mode>): Likewise.
5977 (aarch64_st2<mode>_dreg): Likewise.
5978 (aarch64_st2<mode>_dreg): Likewise.
5979 (aarch64_st3<mode>_dreg): Likewise.
5980 (aarch64_st3<mode>_dreg): Likewise.
5981 (aarch64_st4<mode>_dreg): Likewise.
5982 (aarch64_st4<mode>_dreg): Likewise.
5983 (*aarch64_simd_ld1r<mode>): Likewise.
5984 (aarch64_frecpe<mode>): Likewise.
5985 (aarch64_frecp<FRECP:frecp_suffix><mode>): Likewise.
5986 (aarch64_frecps<mode>): Likewise.
5988 2013-10-15 James Greenhalgh <james.greenhalgh@arm.com>
5990 * config/arm/iterators.md (V_elem_ch): New.
5992 (VQH_type): Likewise.
5993 * config/arm/arm.md (is_neon_type): New.
5994 (conds): Use is_neon_type.
5995 (anddi3_insn): Update type attribute.
5996 (xordi3_insn): Likewise.
5997 (one_cmpldi2): Likewise.
5998 * config/arm/vfp.md (movhf_vfp_neon): Update type attribute.
5999 * config/arm/neon.md (neon_mov): Update type attribute.
6000 (*movmisalign<mode>_neon_store): Likewise.
6001 (*movmisalign<mode>_neon_load): Likewise.
6002 (vec_set<mode>_internal): Likewise.
6003 (vec_set<mode>_internal): Likewise.
6004 (vec_setv2di_internal): Likewise.
6005 (vec_extract<mode>): Likewise.
6006 (vec_extract<mode>): Likewise.
6007 (vec_extractv2di): Likewise.
6008 (*add<mode>3_neon): Likewise.
6009 (adddi3_neon): Likewise.
6010 (*sub<mode>3_neon): Likewise.
6011 (subdi3_neon): Likewise.
6012 (fma<VCVTF:mode>4): Likewise.
6013 (fma<VCVTF:mode>4_intrinsic): Likewise.
6014 (*fmsub<VCVTF:mode>4): Likewise.
6015 (fmsub<VCVTF:mode>4_intrinsic): Likewise.
6016 (neon_vrint<NEON_VRINT:nvrint_variant><VCVTF:mode>): Likewise.
6017 (ior<mode>3): Likewise.
6018 (and<mode>3): Likewise.
6019 (orn<mode>3_neon): Likewise.
6020 (orndi3_neon): Likewise.
6021 (bic<mode>3_neon): Likewise.
6022 (bicdi3_neon): Likewise.
6023 (xor<mode>3): Likewise.
6024 (one_cmpl<mode>2): Likewise.
6025 (abs<mode>2): Likewise.
6026 (neg<mode>2): Likewise.
6027 (negdi2_neon): Likewise.
6028 (*umin<mode>3_neon): Likewise.
6029 (*umax<mode>3_neon): Likewise.
6030 (*smin<mode>3_neon): Likewise.
6031 (*smax<mode>3_neon): Likewise.
6032 (vashl<mode>3): Likewise.
6033 (vashr<mode>3_imm): Likewise.
6034 (vlshr<mode>3_imm): Likewise.
6035 (ashl<mode>3_signed): Likewise.
6036 (ashl<mode>3_unsigned): Likewise.
6037 (neon_load_count): Likewise.
6038 (ashldi3_neon_noclobber): Likewise.
6039 (ashldi3_neon): Likewise.
6040 (signed_shift_di3_neon): Likewise.
6041 (unsigned_shift_di3_neon): Likewise.
6042 (ashrdi3_neon_imm_noclobber): Likewise.
6043 (lshrdi3_neon_imm_noclobber): Likewise.
6044 (<shift>di3_neon): Likewise.
6045 (widen_ssum<mode>3): Likewise.
6046 (widen_usum<mode>3): Likewise.
6047 (quad_halves_<code>v4si): Likewise.
6048 (quad_halves_<code>v4sf): Likewise.
6049 (quad_halves_<code>v8hi): Likewise.
6050 (quad_halves_<code>v16qi): Likewise.
6051 (reduc_splus_v2di): Likewise.
6052 (neon_vpadd_internal<mode>): Likewise.
6053 (neon_vpsmin<mode>): Likewise.
6054 (neon_vpsmax<mode>): Likewise.
6055 (neon_vpumin<mode>): Likewise.
6056 (neon_vpumax<mode>): Likewise.
6057 (*ss_add<mode>_neon): Likewise.
6058 (*us_add<mode>_neon): Likewise.
6059 (*ss_sub<mode>_neon): Likewise.
6060 (*us_sub<mode>_neon): Likewise.
6061 (neon_vadd<mode>_unspec): Likewise.
6062 (neon_vaddl<mode>): Likewise.
6063 (neon_vaddw<mode>): Likewise.
6064 (neon_vhadd<mode>): Likewise.
6065 (neon_vqadd<mode>): Likewise.
6066 (neon_vaddhn<mode>): Likewise.
6067 (neon_vmul<mode>): Likewise.
6068 (neon_vfms<VCVTF:mode>): Likewise.
6069 (neon_vmlal<mode>): Likewise.
6070 (neon_vmls<mode>): Likewise.
6071 (neon_vmlsl<mode>): Likewise.
6072 (neon_vqdmulh<mode>): Likewise.
6073 (neon_vqdmlal<mode>): Likewise.
6074 (neon_vqdmlsl<mode>): Likewise.
6075 (neon_vmull<mode>): Likewise.
6076 (neon_vqdmull<mode>): Likewise.
6077 (neon_vsub<mode>_unspec): Likewise.
6078 (neon_vsubl<mode>): Likewise.
6079 (neon_vsubw<mode>): Likewise.
6080 (neon_vqsub<mode>): Likewise.
6081 (neon_vhsub<mode>): Likewise.
6082 (neon_vsubhn<mode>): Likewise.
6083 (neon_vceq<mode>): Likewise.
6084 (neon_vcge<mode>): Likewise.
6085 (neon_vcgeu<mode>): Likewise.
6086 (neon_vcgt<mode>): Likewise.
6087 (neon_vcgtu<mode>): Likewise.
6088 (neon_vcle<mode>): Likewise.
6089 (neon_vclt<mode>): Likewise.
6090 (neon_vcage<mode>): Likewise.
6091 (neon_vcagt<mode>): Likewise.
6092 (neon_vtst<mode>): Likewise.
6093 (neon_vabd<mode>): Likewise.
6094 (neon_vabdl<mode>): Likewise.
6095 (neon_vaba<mode>): Likewise.
6096 (neon_vabal<mode>): Likewise.
6097 (neon_vmax<mode>): Likewise.
6098 (neon_vmin<mode>): Likewise.
6099 (neon_vpaddl<mode>): Likewise.
6100 (neon_vpadal<mode>): Likewise.
6101 (neon_vpmax<mode>): Likewise.
6102 (neon_vpmin<mode>): Likewise.
6103 (neon_vrecps<mode>): Likewise.
6104 (neon_vrsqrts<mode>): Likewise.
6105 (neon_vqabs<mode>): Likewise.
6106 (neon_vqneg<mode>): Likewise.
6107 (neon_vcls<mode>): Likewise.
6108 (clz<mode>2): Likewise.
6109 (popcount<mode>2): Likewise.
6110 (neon_vrecpe<mode>): Likewise.
6111 (neon_vrsqrte<mode>): Likewise.
6112 (neon_vget_lane<mode>_sext_internal): Likewise.
6113 (neon_vget_lane<mode>_zext_internal): Likewise.
6114 (neon_vdup_n<mode>): Likewise.
6115 (neon_vdup_n<mode>): Likewise.
6116 (neon_vdup_nv2di): Likewise.
6117 (neon_vdup_lane<mode>_interal): Likewise.
6118 (*neon_vswp<mode>): Likewise.
6119 (neon_vcombine<mode>): Likewise.
6120 (float<mode><V_cvtto>2): Likewise.
6121 (floatuns<mode><V_cvtto>2): Likewise.
6122 (fix_trunc<mode><V_cvtto>2): Likewise.
6123 (fixuns_trunc<mode><V_cvtto>2
6124 (neon_vcvt<mode>): Likewise.
6125 (neon_vcvt<mode>): Likewise.
6126 (neon_vcvtv4sfv4hf): Likewise.
6127 (neon_vcvtv4hfv4sf): Likewise.
6128 (neon_vcvt_n<mode>): Likewise.
6129 (neon_vcvt_n<mode>): Likewise.
6130 (neon_vmovn<mode>): Likewise.
6131 (neon_vqmovn<mode>): Likewise.
6132 (neon_vqmovun<mode>): Likewise.
6133 (neon_vmovl<mode>): Likewise.
6134 (neon_vmul_lane<mode>): Likewise.
6135 (neon_vmul_lane<mode>): Likewise.
6136 (neon_vmull_lane<mode>): Likewise.
6137 (neon_vqdmull_lane<mode>): Likewise.
6138 (neon_vqdmulh_lane<mode>): Likewise.
6139 (neon_vqdmulh_lane<mode>): Likewise.
6140 (neon_vmla_lane<mode>): Likewise.
6141 (neon_vmla_lane<mode>): Likewise.
6142 (neon_vmlal_lane<mode>): Likewise.
6143 (neon_vqdmlal_lane<mode>): Likewise.
6144 (neon_vmls_lane<mode>): Likewise.
6145 (neon_vmls_lane<mode>): Likewise.
6146 (neon_vmlsl_lane<mode>): Likewise.
6147 (neon_vqdmlsl_lane<mode>): Likewise.
6148 (neon_vext<mode>): Likewise.
6149 (neon_vrev64<mode>): Likewise.
6150 (neon_vrev32<mode>): Likewise.
6151 (neon_vrev16<mode>): Likewise.
6152 (neon_vbsl<mode>_internal): Likewise.
6153 (neon_vshl<mode>): Likewise.
6154 (neon_vqshl<mode>): Likewise.
6155 (neon_vshr_n<mode>): Likewise.
6156 (neon_vshrn_n<mode>): Likewise.
6157 (neon_vqshrn_n<mode>): Likewise.
6158 (neon_vqshrun_n<mode>): Likewise.
6159 (neon_vshl_n<mode>): Likewise.
6160 (neon_vqshl_n<mode>): Likewise.
6161 (neon_vqshlu_n<mode>): Likewise.
6162 (neon_vshll_n<mode>): Likewise.
6163 (neon_vsra_n<mode>): Likewise.
6164 (neon_vsri_n<mode>): Likewise.
6165 (neon_vsli_n<mode>): Likewise.
6166 (neon_vtbl1v8qi): Likewise.
6167 (neon_vtbl2v8qi): Likewise.
6168 (neon_vtbl3v8qi): Likewise.
6169 (neon_vtbl4v8qi): Likewise.
6170 (neon_vtbl1v16qi): Likewise.
6171 (neon_vtbl2v16qi): Likewise.
6172 (neon_vcombinev16qi): Likewise.
6173 (neon_vtbx1v8qi): Likewise.
6174 (neon_vtbx2v8qi): Likewise.
6175 (neon_vtbx3v8qi): Likewise.
6176 (neon_vtbx4v8qi): Likewise.
6177 (*neon_vtrn<mode>_insn): Likewise.
6178 (*neon_vzip<mode>_insn): Likewise.
6179 (*neon_vuzp<mode>_insn): Likewise.
6180 (neon_vld1<mode>): Likewise.
6181 (neon_vld1_lane<mode>): Likewise.
6182 (neon_vld1_lane<mode>): Likewise.
6183 (neon_vld1_dup<mode>): Likewise.
6184 (neon_vld1_dup<mode>): Likewise.
6185 (neon_vld1_dupv2di): Likewise.
6186 (neon_vst1<mode>): Likewise.
6187 (neon_vst1_lane<mode>): Likewise.
6188 (neon_vst1_lane<mode>): Likewise.
6189 (neon_vld2<mode>): Likewise.
6190 (neon_vld2<mode>): Likewise.
6191 (neon_vld2_lane<mode>): Likewise.
6192 (neon_vld2_lane<mode>): Likewise.
6193 (neon_vld2_dup<mode>): Likewise.
6194 (neon_vst2<mode>): Likewise.
6195 (neon_vst2<mode>): Likewise.
6196 (neon_vst2_lane<mode>): Likewise.
6197 (neon_vst2_lane<mode>): Likewise.
6198 (neon_vld3<mode>): Likewise.
6199 (neon_vld3qa<mode>): Likewise.
6200 (neon_vld3qb<mode>): Likewise.
6201 (neon_vld3_lane<mode>): Likewise.
6202 (neon_vld3_lane<mode>): Likewise.
6203 (neon_vld3_dup<mode>): Likewise.
6204 (neon_vst3<mode>): Likewise.
6205 (neon_vst3qa<mode>): Likewise.
6206 (neon_vst3qb<mode>): Likewise.
6207 (neon_vst3_lane<mode>): Likewise.
6208 (neon_vst3_lane<mode>): Likewise.
6209 (neon_vld4<mode>): Likewise.
6210 (neon_vld4qa<mode>): Likewise.
6211 (neon_vld4qb<mode>): Likewise.
6212 (neon_vld4_lane<mode>): Likewise.
6213 (neon_vld4_lane<mode>): Likewise.
6214 (neon_vld4_dup<mode>): Likewise.
6215 (neon_vst4<mode>): Likewise.
6216 (neon_vst4qa<mode>): Likewise.
6217 (neon_vst4qb<mode>): Likewise.
6218 (neon_vst4_lane<mode>): Likewise.
6219 (neon_vst4_lane<mode>): Likewise.
6220 (neon_vec_unpack<US>_lo_<mode>): Likewise.
6221 (neon_vec_unpack<US>_hi_<mode>): Likewise.
6222 (neon_vec_<US>mult_lo_<mode>): Likewise.
6223 (neon_vec_<US>mult_hi_<mode>): Likewise.
6224 (neon_vec_<US>shiftl_<mode>): Likewise.
6225 (neon_unpack<US>_<mode>): Likewise.
6226 (neon_vec_<US>mult_<mode>): Likewise.
6227 (vec_pack_trunc_<mode>): Likewise.
6228 (neon_vec_pack_trunc_<mode>): Likewise.
6229 (neon_vabd<mode>_2): Likewise.
6230 (neon_vabd<mode>_3): Likewise.
6232 2013-10-15 James Greenhalgh <james.greenhalgh@arm.com>
6234 * config/aarch64/aarch64.md (movtf_aarch64): Update type attribute.
6235 (load_pair): Update type attribute.
6236 (store_pair): Update type attribute.
6237 * config/aarch64/iterators.md (q): New.
6239 2013-10-15 James Greenhalgh <james.greenhalgh@arm.com>
6241 * config/arm/types.md: Add new types for Neon insns.
6243 2013-10-15 Alexander Ivchenko <alexander.ivchenko@intel.com>
6244 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
6245 Sergey Lega <sergey.s.lega@intel.com>
6246 Anna Tikhonova <anna.tikhonova@intel.com>
6247 Ilya Tocar <ilya.tocar@intel.com>
6248 Andrey Turetskiy <andrey.turetskiy@intel.com>
6249 Ilya Verbin <ilya.verbin@intel.com>
6250 Kirill Yukhin <kirill.yukhin@intel.com>
6251 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
6253 * config/i386/sse.md (unspec): Add UNSPEC_RCP14, UNSPEC_RSQRT14,
6254 UNSPEC_FIXUPIMM, UNSPEC_SCALEF, UNSPEC_GETEXP, UNSPEC_GETMANT,
6255 UNSPEC_EXP2, UNSPEC_RCP28, UNSPEC_RSQRT28.
6257 (srcp14<mode>): Ditto.
6258 (rsqrt14<mode>): Ditto.
6259 (rsqrt14<mode>): Ditto.
6260 (avx512f_vmscalef<mode>): Ditto.
6261 (avx512f_scalef<mode>): Ditto.
6262 (avx512f_getexp<mode>): Ditto.
6263 (avx512f_sgetexp<mode>): Ditto.
6264 (avx512f_fixupimm<mode>): Ditto.
6265 (avx512f_sfixupimm<mode>): Ditto.
6266 (avx512f_rndscale<mode>): Ditto.
6267 (*avx512er_exp2<mode>): Ditto.
6268 (*avx512er_rcp28<mode>): Ditto.
6269 (avx512er_rsqrt28<mode>): Ditto.
6270 (avx512f_getmant<mode>): Ditto.
6271 (avx512f_getmant<mode>): Ditto.
6272 (avx512f_rndscale<mode>): Fix formatting.
6274 2013-10-15 Martin Jambor <mjambor@suse.cz>
6276 * ipa-utils.h (ipa_edge_within_scc): Declare.
6277 * ipa-cp.c (edge_within_scc): Moved...
6278 * ipa-utils.c (ipa_edge_within_scc): ...here. Updated all callers.
6280 2013-10-15 Alexander Ivchenko <alexander.ivchenko@intel.com>
6281 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
6282 Sergey Lega <sergey.s.lega@intel.com>
6283 Anna Tikhonova <anna.tikhonova@intel.com>
6284 Ilya Tocar <ilya.tocar@intel.com>
6285 Andrey Turetskiy <andrey.turetskiy@intel.com>
6286 Ilya Verbin <ilya.verbin@intel.com>
6287 Kirill Yukhin <kirill.yukhin@intel.com>
6288 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
6290 * config/i386/predicates.md (const_8_to_15_operand): New.
6291 (const_16_to_31_operand): Ditto.
6292 * config/i386/sse.md (V8FI): New.
6294 (reduc_splus_v8df): Ditto.
6295 (reduc_splus_v16sf): Ditto.
6296 (avx512f_vextract<shuffletype>32x4_1): Ditto.
6297 (vec_extract_hi_<mode>): Ditto.
6298 (avx512f_vinsert<shuffletype>32x4_1): Ditto.
6299 (vec_set_lo_<mode>): Ditto.
6300 (vec_set_hi_<mode>): Ditto.
6301 (avx512f_shuf_<shuffletype>64x2_1): Ditto.
6302 (avx512f_shuf_<shuffletype>32x4_1): Ditto.
6303 (avx512f_pshufd_1): Ditto.
6304 (avx512f_broadcast<mode>): Ditto.
6305 (avx512f_broadcast<mode>): Ditto.
6306 (define_split): Split vec_extract_lo into move.
6307 (ssequartermode): Ditto.
6308 (ssedoublemode): Extened with wider modes.
6309 (vec_extract_lo_<mode>): Ditto.
6311 2013-10-15 Alexander Ivchenko <alexander.ivchenko@intel.com>
6312 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
6313 Sergey Lega <sergey.s.lega@intel.com>
6314 Anna Tikhonova <anna.tikhonova@intel.com>
6315 Ilya Tocar <ilya.tocar@intel.com>
6316 Andrey Turetskiy <andrey.turetskiy@intel.com>
6317 Ilya Verbin <ilya.verbin@intel.com>
6318 Kirill Yukhin <kirill.yukhin@intel.com>
6319 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
6321 * config/i386/predicates.md (register_or_constm1_operand): New.
6322 * config/i386/sse.md (unspec): Add UNSPEC_UNSIGNED_PCMP, UNSPEC_TESTM,
6323 UNSPEC_TESTNM, UNSPEC_VTERNLOG, UNSPEC_ALIGN, UNSPEC_CONFLICT,
6324 UNSPEC_MASKED_EQ, UNSPEC_MASKED_GT, UNSPEC_GATHER_PREFETCH,
6325 UNSPEC_SCATTER_PREFETCH
6327 (avx512f_ucmp<mode>3): Ditto.
6328 (avx512f_vternlog<mode>): Ditto.
6329 (avx512f_align<mode>): Ditto.
6330 (<shift_insn><mode>3): Ditto.
6331 (avx512f_<rotate>v<mode>): Ditto.
6332 (avx512f_<rotate><mode>): Ditto.
6333 (avx512f_eq<mode>3): Ditto.
6334 (avx512f_eq<mode>3_1): Ditto.
6335 (avx512f_gt<mode>3): Ditto.
6336 (avx512f_testm<mode>3): Ditto.
6337 (avx512f_testnm<mode>3): Ditto.
6338 (avx512pf_gatherpf<mode>): Ditto.
6339 (*avx512pf_gatherpf<mode>_mask): Ditto.
6340 (*avx512pf_gatherpf<mode>): Ditto.
6341 (avx512pf_scatterpf<mode>): Ditto.
6342 (*avx512pf_scatterpf<mode>_mask): Ditto.
6343 (*avx512pf_scatterpf<mode>): Ditto.
6344 (avx512f_vec_dup_gpr<mode>): Ditto.
6345 (clz<mode>2): Ditto.
6346 (conflict<mode>): Ditto.
6347 (REDUC_SMINMAX_MODE): Extened with wider modes.
6348 (reduc_<code>_<mode>): Ditto.
6349 (vlshr<mode>3): Ditto.
6350 (vashl<mode>3): Ditto.
6352 2013-10-15 Alexander Ivchenko <alexander.ivchenko@intel.com>
6353 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
6354 Sergey Lega <sergey.s.lega@intel.com>
6355 Anna Tikhonova <anna.tikhonova@intel.com>
6356 Ilya Tocar <ilya.tocar@intel.com>
6357 Andrey Turetskiy <andrey.turetskiy@intel.com>
6358 Ilya Verbin <ilya.verbin@intel.com>
6359 Kirill Yukhin <kirill.yukhin@intel.com>
6360 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
6362 * config/i386/sse.md (unspec): Added UNSPEC_VPERMI2, UNSPEC_VPERMT2,
6365 (avx512fmaskmode): Ditto.
6366 (bcstscalarsuff): Ditto.
6367 (avx512f_blendm<mode>): Ditto.
6368 (cmp_imm_predicate): Ditto.
6369 (avx512f_cmp<mode>3): Ditto.
6370 (avx512f_vec_dup<mode>): Ditto.
6371 (avx512f_vec_dup_mem<mode>): Ditto.
6372 (avx512f_vpermi2var<mode>3): Ditto.
6373 (avx512f_vpermt2var<mode>3): Ditto.
6374 (vec_init<mode>): Ditto.
6375 (avx512f_gathersi<mode>): Ditto.
6376 (*avx512f_gathersi<mode>): Ditto.
6377 (*avx512f_gathersi<mode>_2): Ditto.
6378 (avx512f_gatherdi<mode>): Ditto.
6379 (*avx512f_gatherdi<mode>): Ditto.
6380 (*avx512f_gatherdi<mode>_2): Ditto.
6381 (avx512f_scattersi<mode>): Ditto.
6382 (*avx512f_scattersi<mode>): Ditto.
6383 (avx512f_scatterdi<mode>): Ditto.
6384 (*avx512f_scatterdi<mode>): Ditto.
6385 (sseintprefix): Extened with wider modes.
6386 (VEC_GATHER_IDXSI): Ditto.
6387 (VEC_GATHER_IDXDI): Ditto.
6388 (VEC_GATHER_SRCDI): Ditto.
6390 2013-10-15 Matthew Gretton-Dann <matthew.gretton-dann@arm.com>
6391 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
6393 * config/arm/t-aprofile: New file.
6394 * config.gcc: Handle --with-multilib-list option.
6396 2013-10-15 Bernd Schmidt <bernds@codesourcery.com>
6398 * reload1.c (reloads_unique_chain_p): Ensure that r1 is
6401 2013-10-15 Richard Biener <rguenther@suse.de>
6403 * tree-loop-distribution.c (build_empty_rdg): Inline into
6405 (rdg_flag_vertex): Inline into single user.
6406 (rdg_flag_vertex_and_dependent): Likewise.
6407 (build_rdg_partition_for_vertex): Remove processed bitmap.
6408 (rdg_build_partitions): Simplify.
6410 2013-10-15 Richard Biener <rguenther@suse.de>
6412 * tree-ssa-forwprop.c (forward_propagate_addr_expr_1):
6413 Restructure forwarding through conversions and copies to
6414 avoid performing copy-propagation the wrong way. Adjust
6415 recursion invocations.
6416 (forward_propagate_addr_expr): Add argument stating if we
6417 are recursing from a single-use.
6418 (ssa_forward_propagate_and_combine): Adjust.
6420 2013-10-14 David Malcolm <dmalcolm@redhat.com>
6422 * dumpfile.h (gcc::dump_manager): New class, to hold state
6423 relating to dumpfile management.
6424 (get_dump_file_name): Remove in favor of method of dump_manager.
6425 (dump_initialized_p): Likewise.
6426 (dump_start): Likewise.
6427 (dump_finish): Likewise.
6428 (dump_switch_p): Likewise.
6429 (dump_register): Likewise.
6430 (get_dump_file_info): Likewise.
6431 * context.c (gcc::context::context): Construct the dump_manager
6433 * context.h (gcc::context::get_dumps): New.
6434 (gcc::context::m_dumps): New.
6435 * coverage.c (coverage_init): Port to dump_manager API.
6436 * dumpfile.c (extra_dump_files): Convert to field of gcc::dump_manager.
6437 (extra_dump_files_in_use): Likewise.
6438 (extra_dump_files_alloced): Likewise.
6439 (gcc::dump_manager::dump_manager): New.
6440 (dump_register): Convert to...
6441 (gcc::dump_manager::dump_register): ...method, replacing
6442 function-static next_dump with m_next_dump field.
6443 (get_dump_file_info): Convert to...
6444 (gcc::dump_manager::get_dump_file_info): ...method.
6445 (get_dump_file_name): Convert to...
6446 (gcc::dump_manager::get_dump_file_name): ...method.
6447 (dump_start): Convert to...
6448 (gcc::dump_manager::dump_start): ...method.
6449 (dump_finish): Convert to...
6450 (gcc::dump_manager::dump_finish): ...method.
6451 (dump_begin): Replace body with...
6452 (gcc::dump_manager::dump_begin): ...new method.
6453 (dump_phase_enabled_p): Convert to...
6454 (gcc::dump_manager::dump_phase_enabled_p): ...method.
6455 (dump_phase_enabled_p): Convert to...
6456 (gcc::dump_manager::dump_phase_enabled_p): ...method.
6457 (dump_initialized_p): Convert to...
6458 (gcc::dump_manager::dump_initialized_p): ...method.
6459 (dump_flag_name): Replace body with...
6460 (gcc::dump_manager::dump_flag_name): ...new method.
6461 (dump_enable_all): Convert to...
6462 (gcc::dump_manager::dump_enable_all): ...new method.
6463 (opt_info_enable_passes): Convert to...
6464 (gcc::dump_manager::opt_info_enable_passes): ...new method.
6465 (dump_switch_p_1): Convert to...
6466 (gcc::dump_manager::dump_switch_p_1): ...new method.
6467 (dump_switch_p): Convert to...
6468 (gcc::dump_manager::dump_switch_p): ...new method.
6469 (opt_info_switch_p): Port to dump_manager API.
6470 (enable_rtl_dump_file): Likewise.
6471 * opts-global.c (handle_common_deferred_options): Port to new
6473 * passes.c (pass_manager::finish_optimization_passes): Likewise.
6474 (pass_manager::register_one_dump_file): Likewise.
6475 (pass_manager::register_pass): Likewise.
6476 (pass_init_dump_file): Likewise.
6477 (pass_fini_dump_file): Likewise.
6478 * statistics.c (statistics_early_init): Likewise.
6480 2013-10-14 Richard Biener <rguenther@suse.de>
6482 * gimple.c (gimple_canonical_types, canonical_type_hash_cache,
6483 iterative_hash_canonical_type, gimple_canonical_type_hash,
6484 gimple_canonical_types_compatible_p, gimple_canonical_type_eq,
6485 gimple_register_canonical_type, print_gimple_types_stats,
6486 free_gimple_type_tables): Move to lto/lto.c
6487 (gt-gimple.h): Do not include.
6488 * gimple.h (gimple_register_canonical_type,
6489 print_gimple_types_stats, free_gimple_type_tables): Remove.
6490 * Makefile.in (GTFILES): Remove gimple.c.
6492 2013-10-14 Travis Snoozy <quandary@remstate.com>
6495 * config/msp430/msp430.c (msp430_option_override): Correct thinko
6496 scanning for msp430x targets.
6498 2013-10-14 Eric Botcazou <ebotcazou@adacore.com>
6501 * config/sparc/sparc-protos.h (widen_mem_for_ldd_peep): Declare.
6502 (registers_ok_for_ldd_peep): Move around.
6503 * config/sparc/sparc.c (widen_mem_for_ldd_peep): New.
6504 * config/sparc/sparc.md (widening peepholes): Use it.
6506 2013-10-14 Richard Biener <rguenther@suse.de>
6510 * gimple.c (iterative_hash_canonical_type): Make sure to
6511 record the hash into the correct hashtable slot.
6513 2013-10-13 Eric Botcazou <ebotcazou@adacore.com>
6515 PR rtl-optimization/58662
6516 * combine.c (try_combine): Take into account death nodes on I2 when
6517 splitting a PARALLEL of two independent SETs. Fix dump message.
6519 2013-10-12 Oleg Endo <olegendo@gcc.gnu.org>
6522 * config/sh/sh_treg_combine.cc: New SH specific RTL pass.
6523 * config.gcc (SH extra_objs): Add sh_ifcvt.o.
6524 * config/sh/t-sh (sh_treg_combine.o): New entry.
6525 * config/sh/sh.c (sh_fixed_condition_code_regs): New function that
6526 implements the target hook TARGET_FIXED_CONDITION_CODE_REGS.
6527 (register_sh_passes): New function. Register sh_treg_combine pass.
6528 (sh_option_override): Invoke it.
6529 (sh_canonicalize_comparison): Handle op0_preserve_value.
6530 * sh.md (*cbranch_t"): Do not try to optimize missed test and branch
6531 opportunities. Canonicalize branch condition.
6532 (nott): Allow only if pseudos can be created for non-SH2A.
6534 2013-10-12 H.J. Lu <hongjiu.lu@intel.com>
6537 * config/i386/i386.c (ix86_copy_addr_to_reg): New function.
6538 (ix86_expand_movmem): Replace copy_addr_to_reg with
6539 ix86_copy_addr_to_reg.
6540 (ix86_expand_setmem): Likewise.
6542 2013-10-12 Alexander Monakov <amonakov@ispras.ru>
6544 * config/i386/i386.c (ix86_expand_sse_compare_and_jump): Use mode
6545 provided by ix86_fp_compare_mode instead of CCFPUmode.
6547 2013-10-12 James Greenhalgh <james.greenhalgh@arm.com>
6549 * config/aarch64/arm_neon.h
6550 (vtbx<1,3>_<psu>8): Fix register constriants.
6552 2013-10-11 Jeff Law <law@redhat.com>
6554 PR tree-optimization/58640
6555 * tree-ssa-threadupdate.c (mark_threaded_blocks): Truncate jump
6556 threading paths that cross over two loop entry points.
6558 2013-10-11 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
6560 * config/rs6000/vsx.md (*vsx_le_perm_load_v2di): Generalize to
6561 handle vector float as well.
6562 (*vsx_le_perm_load_v4si): Likewise.
6563 (*vsx_le_perm_store_v2di): Likewise.
6564 (*vsx_le_perm_store_v4si): Likewise.
6566 2013-10-11 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
6568 * config/rs6000/vector.md (vec_realign_load<mode>): Generate vperm
6569 directly to circumvent subtract from splat{31} workaround.
6570 * config/rs6000/rs6000-protos.h (altivec_expand_vec_perm_le): New
6572 * config/rs6000/rs6000.c (altivec_expand_vec_perm_le): New.
6573 * config/rs6000/altivec.md (define_c_enum "unspec"): Add
6574 UNSPEC_VPERM_X and UNSPEC_VPERM_UNS_X.
6575 (altivec_vperm_<mode>): Convert to define_insn_and_split to
6576 separate big and little endian logic.
6577 (*altivec_vperm_<mode>_internal): New define_insn.
6578 (altivec_vperm_<mode>_uns): Convert to define_insn_and_split to
6579 separate big and little endian logic.
6580 (*altivec_vperm_<mode>_uns_internal): New define_insn.
6581 (vec_permv16qi): Add little endian logic.
6583 2013-10-11 Marc Glisse <marc.glisse@inria.fr>
6585 * doc/extend.texi (returns_nonnull): Remove arguments.
6587 2013-10-11 Alexander Ivchenko <alexander.ivchenko@intel.com>
6588 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
6589 Sergey Lega <sergey.s.lega@intel.com>
6590 Anna Tikhonova <anna.tikhonova@intel.com>
6591 Ilya Tocar <ilya.tocar@intel.com>
6592 Andrey Turetskiy <andrey.turetskiy@intel.com>
6593 Ilya Verbin <ilya.verbin@intel.com>
6594 Kirill Yukhin <kirill.yukhin@intel.com>
6595 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
6597 * config/i386/sse.md (VI48F_256_512): New.
6598 (avx2_permvar<mode>): Change to ...
6599 (<avx2_avx512f>_permvar<mode>): This.
6601 2013-10-11 Alexander Ivchenko <alexander.ivchenko@intel.com>
6602 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
6603 Sergey Lega <sergey.s.lega@intel.com>
6604 Anna Tikhonova <anna.tikhonova@intel.com>
6605 Ilya Tocar <ilya.tocar@intel.com>
6606 Andrey Turetskiy <andrey.turetskiy@intel.com>
6607 Ilya Verbin <ilya.verbin@intel.com>
6608 Kirill Yukhin <kirill.yukhin@intel.com>
6609 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
6611 * config/i386/i386.c (bdesc_args): Change corresponding pattern for
6612 __builtin_ia32_cvtps2dq, __builtin_ia32_cvtps2dq256.
6613 * config/i386/sse.md (VI4_AVX): New.
6614 (sf2simodelower): Ditto.
6615 (sse2_cvtps2dq): Change to ...
6616 (<sse2_avx_avx512f>_fix_notrunc<sf2simodelower><mode>): This.
6618 2013-10-11 Alexander Ivchenko <alexander.ivchenko@intel.com>
6619 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
6620 Sergey Lega <sergey.s.lega@intel.com>
6621 Anna Tikhonova <anna.tikhonova@intel.com>
6622 Ilya Tocar <ilya.tocar@intel.com>
6623 Andrey Turetskiy <andrey.turetskiy@intel.com>
6624 Ilya Verbin <ilya.verbin@intel.com>
6625 Kirill Yukhin <kirill.yukhin@intel.com>
6626 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
6628 * config/i386/sse.md (V_512): New.
6630 (vcond<V_512:mode><VF_512:mode>): Ditto.
6631 (vcond<V_512:mode><VI_512:mode>): Ditto.
6632 (vcondu<V_512:mode><VI_512:mode>): Ditto.
6634 2013-10-11 Alexander Ivchenko <alexander.ivchenko@intel.com>
6635 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
6636 Sergey Lega <sergey.s.lega@intel.com>
6637 Anna Tikhonova <anna.tikhonova@intel.com>
6638 Ilya Tocar <ilya.tocar@intel.com>
6639 Andrey Turetskiy <andrey.turetskiy@intel.com>
6640 Ilya Verbin <ilya.verbin@intel.com>
6641 Kirill Yukhin <kirill.yukhin@intel.com>
6642 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
6644 * config/i386/i386.c (ix86_rtx_costs): Enable fma for TARGET_AVX512F.
6645 * config/i386/sse.md (FMAMODEM): Changed modes and conditions.
6647 (fma<mode>4): Removed condition.
6648 (fms<mode>4): Ditto.
6649 (fnma<mode>4): Ditto.
6650 (fnms<mode>4): Ditto.
6651 (fma4i_fmadd_<mode>): Ditto.
6652 (*fma_fmadd_<mode>): Ditto.
6653 (*fma_fmsub_<mode>): Ditto.
6654 (*fma_fnmadd_<mode>): Ditto.
6655 (*fma_fnmsub_<mode>): Ditto.
6656 (fmaddsub_<mode>): Allow for TARGET_AVX512F.
6657 (*fma_fmaddsub_<mode>): Ditto.
6658 (*fma_fmsubadd_<mode>): Ditto.
6659 (*fmai_fmadd_<mode>): Ditto.
6660 (*fmai_fmsub_<mode>): Ditto.
6661 (*fmai_fnmadd_<mode>): Ditto.
6662 (*fmai_fnmsub_<mode>): Ditto.
6664 2013-10-11 Alexander Ivchenko <alexander.ivchenko@intel.com>
6665 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
6666 Sergey Lega <sergey.s.lega@intel.com>
6667 Anna Tikhonova <anna.tikhonova@intel.com>
6668 Ilya Tocar <ilya.tocar@intel.com>
6669 Andrey Turetskiy <andrey.turetskiy@intel.com>
6670 Ilya Verbin <ilya.verbin@intel.com>
6671 Kirill Yukhin <kirill.yukhin@intel.com>
6672 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
6674 * config/i386/sse.md (VI248_AVX2_8_AVX512F): New.
6675 (VI124_256): Changed to ...
6676 (VI124_256_48_512): This.
6677 (ssepackmode): Extended with wider modes.
6678 (<code><mode>3): Changed iterator.
6679 (*avx2_<code><mode>3): Ditto.
6680 (vec_pack_trunc_<mode>): Ditto.
6682 2013-10-11 Alexander Ivchenko <alexander.ivchenko@intel.com>
6683 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
6684 Sergey Lega <sergey.s.lega@intel.com>
6685 Anna Tikhonova <anna.tikhonova@intel.com>
6686 Ilya Tocar <ilya.tocar@intel.com>
6687 Andrey Turetskiy <andrey.turetskiy@intel.com>
6688 Ilya Verbin <ilya.verbin@intel.com>
6689 Kirill Yukhin <kirill.yukhin@intel.com>
6690 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
6692 * config/i386/sse.md (VI124_AVX2_48_AVX512F): New.
6693 (VI8F_256_512): Ditto.
6694 (abs<mode>2): Changed iterator.
6695 (avx2_perm<mode>): Changed to ...
6696 (<avx2_avx512f>_perm<mode>): This.
6697 (avx2_perm<mode>_1): Changed to ...
6698 (<avx2_avx512f>_perm<mode>_1): This.
6700 2013-10-11 Alexander Ivchenko <alexander.ivchenko@intel.com>
6701 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
6702 Sergey Lega <sergey.s.lega@intel.com>
6703 Anna Tikhonova <anna.tikhonova@intel.com>
6704 Ilya Tocar <ilya.tocar@intel.com>
6705 Andrey Turetskiy <andrey.turetskiy@intel.com>
6706 Ilya Verbin <ilya.verbin@intel.com>
6707 Kirill Yukhin <kirill.yukhin@intel.com>
6708 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
6710 * config/i386/sse.md (VI48_AVX512F): New.
6711 (VI48_AVX2): Changed to ...
6712 (VI48_AVX2_48_AVX512F): This.
6713 (avx2_ashrv<mode>): Changed to ...
6714 (<avx2_avx512f>_ashrv<mode>): This.
6715 (avx2_<shift_insn>v<mode>): Changed to ...
6716 (<avx2_avx512f>_<shift_insn>v<mode>): This.
6718 2013-10-11 Alexander Ivchenko <alexander.ivchenko@intel.com>
6719 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
6720 Sergey Lega <sergey.s.lega@intel.com>
6721 Anna Tikhonova <anna.tikhonova@intel.com>
6722 Ilya Tocar <ilya.tocar@intel.com>
6723 Andrey Turetskiy <andrey.turetskiy@intel.com>
6724 Ilya Verbin <ilya.verbin@intel.com>
6725 Kirill Yukhin <kirill.yukhin@intel.com>
6726 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
6728 * config/i386/sse.md (VI4_AVX512F): New.
6729 (VI8_AVX2_AVX512F): Ditto.
6730 (mul<mode>3): Extended with wider modes.
6731 (*<sse4_1_avx2>_mul<mode>3): Ditto.
6732 (mul<mode>3): Ditto.
6733 (vec_widen_<s>mult_odd_<mode>): Ditto.
6735 2013-10-11 Alexander Ivchenko <alexander.ivchenko@intel.com>
6736 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
6737 Sergey Lega <sergey.s.lega@intel.com>
6738 Anna Tikhonova <anna.tikhonova@intel.com>
6739 Ilya Tocar <ilya.tocar@intel.com>
6740 Andrey Turetskiy <andrey.turetskiy@intel.com>
6741 Ilya Verbin <ilya.verbin@intel.com>
6742 Kirill Yukhin <kirill.yukhin@intel.com>
6743 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
6745 * config/i386/sse.md (VI2_AVX512F): New.
6746 (VI124_AVX512F): Ditto.
6747 (sseunpackmode): Extended with wider modes.
6748 (sseunpackfltmode): Ditto.
6749 (vec_unpacks_float_hi_<mode>): Ditto.
6750 (vec_unpacks_float_lo_<mode>): Ditto.
6751 (vec_unpacku_float_hi_<mode>): Ditto.
6752 (vec_unpacku_float_lo_<mode>): Ditto.
6753 (vec_unpacks_lo_<mode>): Ditto.
6754 (vec_unpacks_hi_<mode>): Ditto.
6755 (vec_unpacku_lo_<mode>): Ditto.
6756 (vec_unpacku_hi_<mode>): Ditto.
6758 2013-10-11 Alexander Ivchenko <alexander.ivchenko@intel.com>
6759 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
6760 Sergey Lega <sergey.s.lega@intel.com>
6761 Anna Tikhonova <anna.tikhonova@intel.com>
6762 Ilya Tocar <ilya.tocar@intel.com>
6763 Andrey Turetskiy <andrey.turetskiy@intel.com>
6764 Ilya Verbin <ilya.verbin@intel.com>
6765 Kirill Yukhin <kirill.yukhin@intel.com>
6766 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
6768 * config/i386/i386.md (multdiv): New.
6769 (multdiv_mnemonic): Ditto.
6770 * config/i386/sse.md (<sse>_vmmul<mode>3): Changed to...
6771 (<sse>_vm<multdiv_mnemonic><mode>3): This.
6772 (<sse>_vmdiv<mode>3): Removed.
6774 2013-10-11 Alexander Ivchenko <alexander.ivchenko@intel.com>
6775 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
6776 Sergey Lega <sergey.s.lega@intel.com>
6777 Anna Tikhonova <anna.tikhonova@intel.com>
6778 Ilya Tocar <ilya.tocar@intel.com>
6779 Andrey Turetskiy <andrey.turetskiy@intel.com>
6780 Ilya Verbin <ilya.verbin@intel.com>
6781 Kirill Yukhin <kirill.yukhin@intel.com>
6782 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
6784 * config/i386/sse.md (V): Extended with wider modes.
6786 (ssehalfvecmode): Ditto.
6788 (ssepackfltmode): Ditto.
6789 (avx_vec_concat<mode>): Ditto.
6790 (V_256_512): New iterator.
6791 (VF2_512_256): Ditto.
6792 (si2dfmode): New attribute.
6793 (si2dfmodelower): Ditto.
6795 (concat_tg_mode): Ditto.
6796 (floatv4siv4df2): Changed to ...
6797 (float<si2dfmodelower><mode>2): This.
6798 (avx_cvtps2pd256): Changed to ...
6799 (<sse2_avx_avx512f>_cvtps2pd<avxsizesuffix>): This.
6800 (vec_pack_trunc_v4df): Changed to ...
6801 (vec_pack_trunc_<mode>): This.
6802 (avx_vpermil<mode>): Changed to ...
6803 (<sse2_avx_avx512f>_vpermil<mode>): This.
6804 (<fixsuffix>fix_truncv8dfv8si2): New.
6805 (vec_pack_sfix_trunc_v8df): Ditto.
6806 (avx512f_rndscale<mode>): Ditto.
6807 (avx512f_roundpd512): Ditto.
6808 (vec_pack_ufix_trunc_<mode>): Updated iterator.
6810 2013-10-11 Alexander Ivchenko <alexander.ivchenko@intel.com>
6811 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
6812 Sergey Lega <sergey.s.lega@intel.com>
6813 Anna Tikhonova <anna.tikhonova@intel.com>
6814 Ilya Tocar <ilya.tocar@intel.com>
6815 Andrey Turetskiy <andrey.turetskiy@intel.com>
6816 Ilya Verbin <ilya.verbin@intel.com>
6817 Kirill Yukhin <kirill.yukhin@intel.com>
6818 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
6820 * config/i386/i386.md (any_fix): New iterator.
6821 (fixsuffix): New attribute.
6822 * config/i386/sse.md (VF1): Extened with wider modes.
6826 (sseintvecmodelower): Ditto.
6827 (ssescalarmode): Ditto.
6828 (ssescalarnum): Ditto.
6830 (ssexmmmode): Ditto.
6831 (<fixsuffix>fix_truncv16sfv16si2): Ditto.
6832 (<sse>_rcp<mode>2): Change iterator.
6833 (rsqrt<mode>2): Ditto.
6834 (<sse>_rsqrt<mode>2): Ditto.
6835 (avx2_vec_dup<mode>): Ditto.
6836 (<sse4_1>_round<ssemodesuffix>_sfix<avxsizesuffix>): Ditto.
6837 (round<mode>2_sfix): Ditto.
6838 (avx2_pbroadcast<mode>): Ditto.
6839 (*andnot<mode>3): Handle XI mode.
6840 (*<code><mode>3): Ditto.
6841 (AVXTOSSEMODE): Removed.
6842 (avx_vpermil<mode>): Changed to ...
6843 (<sse2_avx_avx512f>_vpermil<mode>): This.
6845 2013-10-11 Alexander Ivchenko <alexander.ivchenko@intel.com>
6846 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
6847 Sergey Lega <sergey.s.lega@intel.com>
6848 Anna Tikhonova <anna.tikhonova@intel.com>
6849 Ilya Tocar <ilya.tocar@intel.com>
6850 Andrey Turetskiy <andrey.turetskiy@intel.com>
6851 Ilya Verbin <ilya.verbin@intel.com>
6852 Kirill Yukhin <kirill.yukhin@intel.com>
6853 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
6855 * config/i386/sse.md (<sse2>_movnt<mode>): Update constraint to "v".
6856 (<sse>_comi): Ditto.
6857 (<sse>_ucomi): Ditto.
6858 (sse_cvtss2siq_2): Ditto.
6859 (sse2_cvtsd2si): Ditto.
6860 (sse2_cvtsd2siq): Ditto.
6861 (sse2_cvttsd2si): Ditto.
6862 (sse2_cvttsd2siq): Ditto.
6863 (<shift_insn><mode>3): Ditto.
6864 (sse2_cvtsi2sdq): Update constraint and prefix.
6865 (sse_cvtsi2ss): Update prefix.
6866 (sse_cvtsi2ssq): Ditto.
6868 2013-10-11 Jakub Jelinek <jakub@redhat.com>
6870 * tree-vrp.c (infer_nonnull_range): Use is_gimple_call,
6871 ignore internal calls.
6873 2013-10-11 Richard Biener <rguenther@suse.de>
6875 * tree-pretty-print.c (dump_generic_node): Allow to dump both (D)
6876 and (ab) for SSA_NAMEs. Mark INTEGER_CSTs with (OVF) if
6877 TREE_OVERFLOW is set.
6879 2013-10-11 Thomas Schwinge <thomas@codesourcery.com>
6881 * tree.h (OMP_CLAUSE_CODE): Remove duplicate definition.
6883 * gimple.c: GIMPLE statements have subcodes, not sub-codes.
6884 * gimple.h: Likewise.
6886 * doc/generic.texi (OpenMP): OMP_CLAUSE_* are subcodes, not sub-codes.
6888 * doc/generic.texi (Adding new DECL node types): Explain *_CHECK
6891 * doc/gimple.texi (is_gimple_omp): Move into the correct section.
6893 * acinclude.m4 (gcc_GAS_FLAGS): Add more gcc_cv_as_flags overrides.
6894 * configure: Regenerate.
6896 2013-10-11 Jakub Jelinek <jakub@redhat.com>
6898 * tree-pretty-print.c (dump_omp_clause): Handle OMP_CLAUSE__LOOPTEMP_
6899 and new OpenMP 4.0 clauses, handle UDR OMP_CLAUSE_REDUCTION,
6900 formatting fixes, use pp_colon instead of pp_character (..., ':'),
6901 similarly pp_right_paren.
6902 (dump_generic_node): Handle OMP_DISTRIBUTE, OMP_TEAMS,
6903 OMP_TARGET_DATA, OMP_TARGET, OMP_TARGET_UPDATE, OMP_TASKGROUP,
6904 allow OMP_FOR_INIT to be NULL, handle OMP_ATOMIC_SEQ_CST.
6905 * tree.c (omp_clause_num_ops, omp_clause_code_name): Add OpenMP 4.0
6907 (omp_declare_simd_clauses_equal,
6908 omp_remove_redundant_declare_simd_attrs): New functions.
6909 (attribute_value_equal): Use omp_declare_simd_clauses_equal.
6910 (walk_tree_1): Handle new OpenMP 4.0 clauses.
6911 * tree.h (OMP_LOOP_CHECK): Define.
6912 (OMP_FOR_BODY, OMP_FOR_CLAUSES, OMP_FOR_INIT, OMP_FOR_COND,
6913 OMP_FOR_INCR, OMP_FOR_PRE_BODY): Use it.
6914 (OMP_TASKGROUP_BODY, OMP_TEAMS_BODY, OMP_TEAMS_CLAUSES,
6915 OMP_TARGET_DATA_BODY, OMP_TARGET_DATA_CLAUSES, OMP_TARGET_BODY,
6916 OMP_TARGET_CLAUSES, OMP_TARGET_UPDATE_CLAUSES, OMP_CLAUSE_SIZE,
6917 OMP_ATOMIC_SEQ_CST, OMP_CLAUSE_DEPEND_KIND, OMP_CLAUSE_MAP_KIND,
6918 OMP_CLAUSE_MAP_ZERO_BIAS_ARRAY_SECTION, OMP_CLAUSE_PROC_BIND_KIND,
6919 OMP_CLAUSE_REDUCTION_OMP_ORIG_REF, OMP_CLAUSE_ALIGNED_ALIGNMENT,
6920 OMP_CLAUSE_NUM_TEAMS_EXPR, OMP_CLAUSE_THREAD_LIMIT_EXPR,
6921 OMP_CLAUSE_DEVICE_ID, OMP_CLAUSE_DIST_SCHEDULE_CHUNK_EXPR,
6922 OMP_CLAUSE_SIMDLEN_EXPR): Define.
6923 (OMP_CLAUSE_DECL): Change range up to OMP_CLAUSE__LOOPTEMP_.
6924 (omp_remove_redundant_declare_simd_attrs): New prototype.
6925 * gimple.def (GIMPLE_OMP_TASKGROUP, GIMPLE_OMP_TARGET,
6926 GIMPLE_OMP_TEAMS): New codes.
6927 (GIMPLE_OMP_RETURN): Use GSS_OMP_ATOMIC_STORE instead of GSS_BASE.
6928 * omp-low.c (struct omp_context): Add cancel_label and cancellable
6930 (target_nesting_level): New variable.
6931 (extract_omp_for_data): Handle GF_OMP_FOR_KIND_DISTRIBUTE and
6932 OMP_CLAUSE_DIST_SCHEDULE. Don't fallback to library implementation
6933 for collapse > 1 static schedule unless ordered.
6934 (get_ws_args_for): Add par_stmt argument. Handle combined loops.
6935 (determine_parallel_type): Adjust get_ws_args_for caller.
6936 (install_var_field): Handle mask & 4 for double indirection.
6937 (scan_sharing_clauses): Ignore shared clause on teams construct.
6938 Handle OMP_CLAUSE__LOOPTEMP_ and new OpenMP 4.0 clauses.
6939 (create_omp_child_function): If inside target or declare target
6940 constructs, set "omp declare target" attribute on the child function.
6941 (find_combined_for): New function.
6942 (scan_omp_parallel): Handle combined loops.
6943 (scan_omp_target, scan_omp_teams): New functions.
6944 (check_omp_nesting_restrictions): Check new OpenMP 4.0 nesting
6945 restrictions and set ctx->cancellable for cancellable constructs.
6946 (scan_omp_1_stmt): Call check_omp_nesting_restrictions also on
6947 selected builtin calls. Handle GIMPLE_OMP_TASKGROUP,
6948 GIMPLE_OMP_TARGET, GIMPLE_OMP_TEAMS.
6949 (build_omp_barrier): Add lhs argument, return gimple rather than tree.
6950 (omp_clause_aligned_alignment): New function.
6951 (lower_rec_simd_input_clauses): Only call SET_DECL_VALUE_EXPR on decls.
6952 (lower_rec_input_clauses): Add FD argument. Ignore shared clauses
6953 on teams constructs. Handle user defined reductions and new
6955 (lower_reduction_clauses): Don't set placeholder to address of ref
6956 if it has already the right type.
6957 (lower_send_clauses): Handle OMP_CLAUSE__LOOPTEMP_.
6958 (expand_parallel_call): Use the new non-_start suffixed builtins,
6959 handle OMP_CLAUSE_PROC_BIND, don't call the outlined function
6960 and GOMP_parallel_end after the call.
6961 (expand_task_call): Handle OMP_CLAUSE_DEPEND.
6962 (expand_omp_for_init_counts): Handle combined loops.
6963 (expand_omp_for_init_vars): Add inner_stmt argument, handle combined
6965 (expand_omp_for_generic): Likewise. Use GOMP_loop_end_cancel at the
6966 end of cancellable loops.
6967 (expand_omp_for_static_nochunk, expand_omp_for_static_chunk):
6968 Likewise. Handle collapse > 1 loops.
6969 (expand_omp_simd): Handle combined loops.
6970 (expand_omp_for): Add inner_stmt argument, adjust callers of
6971 expand_omp_for* functions, use expand_omp_for_static*chunk even
6972 for collapse > 1 unless ordered.
6973 (expand_omp_sections): Use GOMP_sections_end_cancel at the end
6974 of cancellable sections.
6975 (expand_omp_single): Remove need_barrier variable, just rely on
6976 gimple_omp_return_nowait_p. Adjust build_omp_barrier caller.
6977 (expand_omp_synch): Allow GIMPLE_OMP_TASKGROUP and GIMPLE_OMP_TEAMS.
6978 (expand_omp_atomic_load, expand_omp_atomic_store,
6979 expand_omp_atomic_fetch_op): Handle gimple_omp_atomic_seq_cst_p.
6980 (expand_omp_target): New function.
6981 (expand_omp): Handle combined loops. Handle GIMPLE_OMP_TASKGROUP,
6982 GIMPLE_OMP_TEAMS, GIMPLE_OMP_TARGET.
6983 (build_omp_regions_1): Immediately close region for
6984 GF_OMP_TARGET_KIND_UPDATE.
6985 (maybe_add_implicit_barrier_cancel): New function.
6986 (lower_omp_sections): Adjust lower_rec_input_clauses caller. Handle
6988 (lower_omp_single): Likewise. Add clobber after the barrier.
6989 (lower_omp_taskgroup): New function.
6990 (lower_omp_for): Handle combined loops. Adjust
6991 lower_rec_input_clauses caller. Handle cancellation.
6992 (lower_depend_clauses): New function.
6993 (lower_omp_taskreg): Lower depend clauses. Adjust
6994 lower_rec_input_clauses caller. Add clobber after the call. Handle
6996 (lower_omp_target, lower_omp_teams): New functions.
6997 (lower_omp_1): Handle cancellation. Handle GIMPLE_OMP_TASKGROUP,
6998 GIMPLE_OMP_TARGET, GIMPLE_OMP_TEAMS and GOMP_barrier, GOMP_cancel
6999 and GOMP_cancellation_point calls.
7000 (lower_omp): Fold stmts inside of target region.
7001 (diagnose_sb_1, diagnose_sb_2): Handle GIMPLE_OMP_TASKGROUP,
7002 GIMPLE_OMP_TARGET and GIMPLE_OMP_TEAMS.
7003 * builtin-types.def (DEF_FUNCTION_TYPE_8): Document.
7004 (BT_FN_VOID_OMPFN_PTR_UINT,
7005 BT_FN_VOID_OMPFN_PTR_UINT_LONG_LONG_LONG,
7006 BT_FN_VOID_OMPFN_PTR_UINT_LONG_LONG_LONG_LONG,
7007 BT_FN_VOID_OMPFN_PTR_OMPCPYFN_LONG_LONG_BOOL_UINT): Remove.
7008 (BT_FN_VOID_OMPFN_PTR_UINT_UINT_UINT,
7009 BT_FN_VOID_OMPFN_PTR_UINT_LONG_LONG_LONG_UINT,
7010 BT_FN_VOID_OMPFN_PTR_UINT_LONG_LONG_LONG_LONG_UINT,
7011 BT_FN_BOOL_INT, BT_FN_BOOL_INT_BOOL, BT_FN_VOID_UINT_UINT,
7012 BT_FN_VOID_INT_PTR_SIZE_PTR_PTR_PTR,
7013 BT_FN_VOID_INT_OMPFN_PTR_SIZE_PTR_PTR_PTR,
7014 BT_FN_VOID_OMPFN_PTR_OMPCPYFN_LONG_LONG_BOOL_UINT_PTR): New.
7015 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1,
7016 call_may_clobber_ref_p_1): Handle BUILT_IN_GOMP_BARRIER_CANCEL,
7017 BUILT_IN_GOMP_TASKGROUP_END, BUILT_IN_GOMP_LOOP_END_CANCEL,
7018 BUILT_IN_GOMP_SECTIONS_END_CANCEL. Don't handle
7019 BUILT_IN_GOMP_PARALLEL_END.
7020 * gimple-low.c (lower_stmt): Handle GIMPLE_OMP_TASKGROUP,
7021 GIMPLE_OMP_TARGET and GIMPLE_OMP_TEAMS.
7022 * gimple-pretty-print.c (dump_gimple_omp_for): Handle
7023 GF_OMP_FOR_KIND_DISTRIBUTE.
7024 (dump_gimple_omp_target, dump_gimple_omp_teams): New functions.
7025 (dump_gimple_omp_block): Handle GIMPLE_OMP_TASKGROUP.
7026 (dump_gimple_omp_return): Print lhs if it has any.
7027 (dump_gimple_omp_atomic_load, dump_gimple_omp_atomic_store): Handle
7028 gimple_omp_atomic_seq_cst_p.
7029 (pp_gimple_stmt_1): Handle GIMPLE_OMP_TASKGROUP, GIMPLE_OMP_TARGET
7030 and GIMPLE_OMP_TEAMS.
7031 * langhooks.c (lhd_omp_mappable_type): New function.
7032 * tree-vectorizer.c (struct simd_array_to_simduid): Fix up comment.
7033 * langhooks.h (struct lang_hooks_for_types): Add omp_mappable_type
7035 * gimplify.c (enum gimplify_omp_var_data): Add GOVD_MAP,
7036 GOVD_ALIGNED and GOVD_MAP_TO_ONLY.
7037 (enum omp_region_type): Add ORT_TEAMS, ORT_TARGET_DATA and ORT_TARGET.
7038 (struct gimplify_omp_ctx): Add combined_loop field.
7039 (gimplify_call_expr, gimplify_modify_expr): Don't call fold_stmt
7040 on stmts inside of target region.
7041 (is_gimple_stmt): Return true for OMP_DISTRIBUTE and OMP_TASKGROUP.
7042 (omp_firstprivatize_variable): Handle GOVD_MAP, GOVD_ALIGNED,
7043 ORT_TARGET and ORT_TARGET_DATA.
7044 (omp_add_variable): Avoid checks on readding var for GOVD_ALIGNED.
7046 (omp_notice_threadprivate_variable): Complain about threadprivate
7047 variables in target region.
7048 (omp_notice_variable): Complain about vars with non-mappable type
7049 in target region. Handle ORT_TEAMS, ORT_TARGET and ORT_TARGET_DATA.
7050 (omp_check_private): Ignore ORT_TARGET* regions.
7051 (gimplify_scan_omp_clauses, gimplify_adjust_omp_clauses_1,
7052 gimplify_adjust_omp_clauses): Handle new OpenMP 4.0 clauses.
7053 (find_combined_omp_for): New function.
7054 (gimplify_omp_for): Handle gimplification of combined loops.
7055 (gimplify_omp_workshare): Gimplify also OMP_TARGET, OMP_TARGET_DATA,
7057 (gimplify_omp_target_update): New function.
7058 (gimplify_omp_atomic): Handle OMP_ATOMIC_SEQ_CST.
7059 (gimplify_expr): Handle OMP_DISTRIBUTE, OMP_TARGET, OMP_TARGET_DATA,
7060 OMP_TARGET_UPDATE, OMP_TEAMS, OMP_TASKGROUP.
7061 (gimplify_body): If fndecl has "omp declare target" attribute, add
7062 implicit ORT_TARGET context around it.
7063 * tree.def (OMP_DISTRIBUTE, OMP_TEAMS, OMP_TARGET_DATA, OMP_TARGET,
7064 OMP_TASKGROUP, OMP_TARGET_UPDATE): New tree codes.
7065 * tree-nested.c (convert_nonlocal_reference_stmt,
7066 convert_local_reference_stmt, convert_gimple_call): Handle
7067 GIMPLE_OMP_TARGET, GIMPLE_OMP_TEAMS and GIMPLE_OMP_TASKGROUP.
7068 * omp-builtins.def (BUILT_IN_GOMP_TASK): Use
7069 BT_FN_VOID_OMPFN_PTR_OMPCPYFN_LONG_LONG_BOOL_UINT_PTR
7070 instead of BT_FN_VOID_OMPFN_PTR_OMPCPYFN_LONG_LONG_BOOL_UINT.
7071 (BUILT_IN_GOMP_TARGET, BUILT_IN_GOMP_TARGET_DATA,
7072 BUILT_IN_GOMP_TARGET_END_DATA, BUILT_IN_GOMP_TARGET_UPDATE,
7073 BUILT_IN_GOMP_TEAMS, BUILT_IN_BARRIER_CANCEL,
7074 BUILT_IN_GOMP_LOOP_END_CANCEL,
7075 BUILT_IN_GOMP_SECTIONS_END_CANCEL, BUILT_IN_OMP_GET_TEAM_NUM,
7076 BUILT_IN_OMP_GET_NUM_TEAMS, BUILT_IN_GOMP_TASKGROUP_START,
7077 BUILT_IN_GOMP_TASKGROUP_END, BUILT_IN_GOMP_PARALLEL_LOOP_STATIC,
7078 BUILT_IN_GOMP_PARALLEL_LOOP_DYNAMIC,
7079 BUILT_IN_GOMP_PARALLEL_LOOP_GUIDED,
7080 BUILT_IN_GOMP_PARALLEL_LOOP_RUNTIME, BUILT_IN_GOMP_PARALLEL,
7081 BUILT_IN_GOMP_PARALLEL_SECTIONS, BUILT_IN_GOMP_CANCEL,
7082 BUILT_IN_GOMP_CANCELLATION_POINT): New built-ins.
7083 (BUILT_IN_GOMP_PARALLEL_LOOP_STATIC_START,
7084 BUILT_IN_GOMP_PARALLEL_LOOP_DYNAMIC_START,
7085 BUILT_IN_GOMP_PARALLEL_LOOP_GUIDED_START,
7086 BUILT_IN_GOMP_PARALLEL_LOOP_RUNTIME_START,
7087 BUILT_IN_GOMP_PARALLEL_START, BUILT_IN_GOMP_PARALLEL_END,
7088 BUILT_IN_GOMP_PARALLEL_SECTIONS_START): Remove.
7089 * tree-inline.c (remap_gimple_stmt, estimate_num_insns):
7090 Handle GIMPLE_OMP_TARGET, GIMPLE_OMP_TEAMS and GIMPLE_OMP_TASKGROUP.
7091 * gimple.c (gimple_build_omp_taskgroup, gimple_build_omp_target,
7092 gimple_build_omp_teams): New functions.
7093 (walk_gimple_op): Handle GIMPLE_OMP_TARGET, GIMPLE_OMP_TEAMS and
7094 GIMPLE_OMP_TASKGROUP. Walk optional lhs on GIMPLE_OMP_RETURN.
7095 (walk_gimple_stmt, gimple_copy): Handle GIMPLE_OMP_TARGET,
7096 GIMPLE_OMP_TEAMS and GIMPLE_OMP_TASKGROUP.
7097 * gimple.h (enum gf_mask): GF_OMP_FOR_KIND_DISTRIBUTE,
7098 GF_OMP_FOR_COMBINED, GF_OMP_FOR_COMBINED_INTO,
7099 GF_OMP_TARGET_KIND_MASK, GF_OMP_TARGET_KIND_REGION,
7100 GF_OMP_TARGET_KIND_DATA, GF_OMP_TARGET_KIND_UPDATE,
7101 GF_OMP_ATOMIC_SEQ_CST): New.
7102 (gimple_build_omp_taskgroup, gimple_build_omp_target,
7103 gimple_build_omp_teams): New prototypes.
7104 (gimple_has_substatements): Handle GIMPLE_OMP_TARGET,
7105 GIMPLE_OMP_TEAMS and GIMPLE_OMP_TASKGROUP.
7106 (gimple_omp_subcode): Use GIMPLE_OMP_TEAMS instead of
7107 GIMPLE_OMP_SINGLE as end of range.
7108 (gimple_omp_return_set_lhs, gimple_omp_return_lhs,
7109 gimple_omp_return_lhs_ptr, gimple_omp_atomic_seq_cst_p,
7110 gimple_omp_atomic_set_seq_cst, gimple_omp_for_combined_p,
7111 gimple_omp_for_set_combined_p, gimple_omp_for_combined_into_p,
7112 gimple_omp_for_set_combined_into_p, gimple_omp_target_clauses,
7113 gimple_omp_target_clauses_ptr, gimple_omp_target_set_clauses,
7114 gimple_omp_target_kind, gimple_omp_target_set_kind,
7115 gimple_omp_target_child_fn, gimple_omp_target_child_fn_ptr,
7116 gimple_omp_target_set_child_fn, gimple_omp_target_data_arg,
7117 gimple_omp_target_data_arg_ptr, gimple_omp_target_set_data_arg,
7118 gimple_omp_teams_clauses, gimple_omp_teams_clauses_ptr,
7119 gimple_omp_teams_set_clauses): New inlines.
7120 (CASE_GIMPLE_OMP): Add GIMPLE_OMP_TARGET, GIMPLE_OMP_TEAMS
7121 and GIMPLE_OMP_TASKGROUP.
7122 * tree-core.h (enum omp_clause_code): Add new OpenMP 4.0 clause codes.
7123 (enum omp_clause_depend_kind, enum omp_clause_map_kind,
7124 enum omp_clause_proc_bind_kind): New.
7125 (union omp_clause_subcode): Add depend_kind, map_kind and
7126 proc_bind_kind fields.
7127 * tree-cfg.c (make_edges): Handle GIMPLE_OMP_TARGET,
7128 GIMPLE_OMP_TEAMS and GIMPLE_OMP_TASKGROUP.
7129 * langhooks-def.h (lhd_omp_mappable_type): New prototype.
7130 (LANG_HOOKS_OMP_MAPPABLE_TYPE): Define.
7131 (LANG_HOOKS_FOR_TYPES_INITIALIZER): Add it.
7133 2013-10-10 Teresa Johnson <tejohnson@google.com>
7135 * predict.c (tree_estimate_probability): Add new parameter
7136 for estimate_bb_frequencies.
7137 (estimate_bb_frequencies): Add new parameter to force estimation.
7138 (rebuild_frequencies): When max frequency in function is small,
7139 recompute counts from frequencies.
7140 * predict.h (estimate_bb_frequencies): New parameter.
7142 2013-10-10 David Malcolm <dmalcolm@redhat.com>
7144 * ipa-inline.c (ipa_inline): Fix leak of "order" when
7145 optimizations are disabled.
7147 2013-10-10 David Malcolm <dmalcolm@redhat.com>
7149 * coverage.c (coverage_finish): Fix leak of da_file_name.
7151 2013-10-10 Jan Hubicka <jh@suse.cz>
7153 * config/i386/x86-tune.def: Enable X86_TUNE_SSE_TYPELESS_STORES
7154 for generic, enable X86_TUNE_SSE_LOAD0_BY_PXOR for Bulldozer,
7157 2013-10-10 Jakub Jelinek <jakub@redhat.com>
7160 * stmt.c (expand_asm_operands): Add FALLTHRU_BB argument,
7161 if any labels are in FALLTHRU_BB, use a special label emitted
7162 immediately after the asm goto insn rather than label_rtx
7164 (expand_asm_stmt): Adjust caller.
7165 * cfgrtl.c (commit_one_edge_insertion): Force splitting of
7166 edge if the last insn in predecessor is a jump with single successor,
7167 but it isn't simplejump_p.
7169 2013-10-10 Richard Biener <rguenther@suse.de>
7171 PR tree-optimization/58656
7172 * tree-ssa-pre.c (phi_translate): Do not cache failed translations.
7174 2013-10-10 Andrew MacLeod <amacleod@redhat.com>
7176 * gimplify.c: Include expr.h and tm_p.h for targets with special
7177 va-arg padding requirements.
7179 2013-10-10 Andrew MacLeod <amacleod@redhat.com>
7181 * tree-flow.h: Move some prototypes to gimple.h.
7182 (gimple_fold_indirect_ref): Move prototype to gimple-fold.h.
7183 * gimple.h: Relocate some prototypes from tree-flow.h
7184 * builtins.c (std_gimplify_va_arg_expr, build_va_arg_indirect_ref):
7186 * gimplify.c (gimple_fold_indirect_ref): Move to gimple-fold.c.
7187 (build_va_arg_indirect_ref): Relocate and make static.
7188 (std_gimplify_va_arg_expr): Relocate here.
7189 * gimple-fold.c (gimple_fold_indirect_ref): Relocate here.
7190 * gimple-fold.h (gimple_fold_indirect_ref): Add prototype.
7192 2013-10-10 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
7194 * doc/md.texi: Document the mnemonic attribute.
7196 2013-10-10 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
7199 * gensupport.c (gen_mnemonic_attr): Handle (set (attr x) y) and
7200 (set_attr_alternative x ...) when searching for user defined
7203 2013-10-10 Andrew MacLeod <amacleod@redhat.com>
7205 * config/aplha/alpha.c: Add gimple-ssa.h to include list.
7207 2013-10-09 Easwaran Raman <eraman@google.com>
7209 * params.def (PARAM_MIN_SIZE_FOR_STACK_SHARING): New param...
7210 * cfgexpand.c (defer_stack_allocation): ...use here
7211 * doc/invoke.texi: Add documentation for min-size-for-stack-sharing.
7213 2013-10-09 Zhenqiang Chen <zhenqiang.chen@arm.com>
7215 * tree-ssa-phiopts.c (rhs_is_fed_for_value_replacement): New function.
7216 (operand_equal_for_value_replacement): New function, extracted from
7217 value_replacement and enhanced to catch more cases.
7218 (value_replacement): Use operand_equal_for_value_replacement.
7220 2013-10-09 Andrew MacLeod <amacleod@redhat.com>
7222 * loop-doloop.c (doloop_modify, doloop_optimize): Use
7223 get_max_loop_iterations.
7225 2013-10-09 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
7227 * config/arm/aarch-common.c (arm_early_load_addr_dep):
7228 Place comment above function.
7230 2013-10-09 Andrew MacLeod <amacleod@redhat.com>
7232 * tree-flow.h: Remove all remaining prototypes, enums and structs that
7233 are not related to tree-cfg.c.
7234 * tree-ssa-address.h: New file. Relocate prototypes.
7235 * tree-ssa-address.c: (struct mem_address): Relocate from tree-flow.h.
7236 (addr_for_mem_ref): New. Combine call to get_address_description and
7237 return addr_for_mem_ref.
7238 * expr.c (expand_expr_real_1): Use new addr_for_mem_ref routine.
7239 * tree-ssa-live.h: Adjust prototypes.
7240 * passes.c: Include tree-ssa-live.h.
7241 * gimple-pretty-print.h (gimple_dump_bb): Add prototype.
7242 * graphite.c (graphite_transform_loops): Make static.
7243 (graphite_transforms, gate_graphite_transforms, pass_data_graphite,
7244 make_pass_graphite, pass_data_graphite_transforms,
7245 make_pass_graphite_transforms): Relocate here from tree-ssa-loop.c.
7246 * ipa-pure-const.c (warn_function_noreturn): Make static.
7247 (execute_warn_function_noreturn, gate_warn_function_noreturn,
7248 class pass_warn_function_noreturn, make_pass_warn_function_noreturn):
7249 Relocate from tree-cfg.c
7250 * tree-cfg.c (tree_node_can_be_shared, gimple_empty_block_p): Make
7252 (execute_warn_function_noreturn, gate_warn_function_noreturn,
7253 class pass_warn_function_noreturn, make_pass_warn_function_noreturn):
7254 Move to ipa-pure-const.c.
7255 (execute_fixup_cfg, class pass_fixup_cfg, make_pass_fixup_cfg):
7256 Relocate from tree-optimize.c.
7257 * tree-optimize.c (execute_fixup_cfg, class pass_fixup_cfg,
7258 make_pass_fixup_cfg): Move to tree-cfg.c.
7259 * tree-chrec.h: (enum ev_direction): Relocate here from tree-flow.h.
7260 Relocate some prototypes.
7261 * tree-data-ref.h (tree_check_data_deps) Add prototype.
7262 * tree-dump.c (dump_function_to_file): Remove prototype.
7263 Add tree-flow.h to the include file.
7264 * tree-dump.h: Remove prototype.
7265 * tree-parloops.h: New File. Add prototypes.
7266 * tree-parloops.c (gate_tree_parallelize_loops, tree_parallelize_loops,
7267 pass_data_parallelize_loops, make_pass_parallelize_loops): Relocate
7268 from tree-ssa-loop.c.
7269 * tree-predcom.c (run_tree_predictive_commoning,
7270 gate_tree_predictive_commoning, pass_data_predcom, make_pass_predcom):
7271 Relocate here from tree-ssa-loop.c.
7272 * tree-ssa-dom.c (tree_ssa_dominator_optimize) Don't call
7273 ssa_name_values.release ().
7274 * tree-ssa-threadedge.h: New File. Relocate prototypes here.
7275 (ssa_name_values): Relocate from tree-flow.h.
7276 * tree-ssa.h: Include tree-ssa-threadedge.h and tree-ssa-address.h.
7277 * tree-ssa-loop.c (run_tree_predictive_commoning,
7278 gate_tree_predictive_commoning, pass_data_predcom, make_pass_predcom,
7279 graphite_transforms, gate_graphite_transforms, pass_data_graphite,
7280 make_pass_graphite, pass_data_graphite_transforms,
7281 make_pass_graphite_transforms, gate_tree_parallelize_loops,
7282 tree_parallelize_loops, pass_data_parallelize_loops,
7283 make_pass_parallelize_loops): Move to other files.
7284 * tree-vectorizer.h (lpeel_tree_duplicate_loop_to_edge_cfg): Prototype
7286 * tree.h: Remove prototypes from tree-address.c.
7288 2013-10-09 Andrew MacLeod <amacleod@redhat.com>
7290 * tree-flow.h (tm_restart_node, gimple_df): Move to gimple-ssa.h.
7291 (struct int_tree_map): Move to tree-hasher.h
7292 (SCALE, LABEL, PERCENT): Move to gimple.h
7293 * tree-flow-inline.h: Delete. Move functions to other files.
7294 (unmodifiable_var_p, ref_contains_array_ref): Unused, so delete.
7295 * gimple-ssa.h (tm_restart_node, gimple_df): Relocate from tree-flow.h.
7296 (gimple_in_ssa_p, gimple_vop): Relocate from tree-flow-inline.h
7297 * gimple.h (imple_stmt_max_uid, set_gimple_stmt_max_uid,
7298 inc_gimple_stmt_max_uid, get_lineno): Relocate from tree-flow-inline.h.
7299 (SCALE, LABEL, PERCENT): Relocate from tree-flow.h
7300 * tree-hasher.h: Don't include tree-flow.h.
7301 (struct int_tree_map): Relocate from tree-flow.h.
7302 * tree-sra.c (contains_view_convert_expr_p): Relocate from
7303 tree-flow-inline.h and make static.
7304 * tree-ssa-alias.h (ranges_overlap_p): Relocate from
7306 * tree-ssa-operands.c (gimple_ssa_operands): Relocate from
7307 tree-flow-inline.h and make static.
7308 * tree.h (is_global_var, may_be_aliased): Relocate from
7310 * Makefile.in (GTFILES): Remove tree-flow.h and add gimple-ssa.h.
7311 * value-prof.c: No longer include tree-flow-inline.h.
7312 * tree-switch-conversion.c: No longer include tree-flow-inline.h.
7314 2013-10-09 Andrew MacLeod <amacleod@redhat.com>
7316 * tree-flow.h: Move some protoypes. Include new tree-ssa-loop.h.
7317 (struct affine_iv, struct tree_niter_desc): Move to tree-ssa-loop.h.
7318 (enum move_pos): Move to tree-ssa-loop-im.h
7319 * cfgloop.h: Move some prototypes.
7320 (gcov_type_to_double_int): relocate from tree-ssa-loop.niter.c.
7321 * tree-flow-inline.h (loop_containing_stmt): Move to tree-ssa-loop.h.
7322 * tree-ssa-loop.h: New File. Include other tree-ssa-loop-*.h files.
7323 (struct affine_iv, struct tree_niter_desc): Relocate from tree-flow.h.
7324 (loop_containing_stmt): Relocate from tree-flow-inline.h.
7325 * tree-ssa-loop-ch.c: (do_while_loop_p): Make static.
7326 * tree-ssa-loop-im.c (for_each_index): Move to tree-ssa-loop.c.
7327 (enum move_pos): Relocate here.
7328 (lsm_tmp_name_add, gen_lsm_tmp_name, get_lsm_tmp_name): Move to
7330 (execute_sm_if_changed_flag_set): Change get_lsm_tmp_name call.
7331 (tree_ssa_loop_im, gate_tree_ssa_loop_im, pass_data_lim,
7332 make_pass_lim): Relocate here from tree-ssa-loop.c.
7333 * tree-ssa-loop-ivcanon.c (tree_num_loop_insns): Move to
7335 (loop_edge_to_cancel, unloop_loops): Make static.
7336 (tree_ssa_loop_ivcanon, gate_tree_ssa_loop_ivcanon, pass_data_iv_canon,
7337 make_pass_iv_canon): Relocate from tree-ssa-loop.c.
7338 (tree_complete_unroll, gate_tree_complete_unroll,
7339 pass_data_complete_unroll, make_pass_complete_unroll): Relocate here.
7340 (tree_complete_unroll_inner, gate_tree_complete_unroll_inner,
7341 pass_data_complete_unrolli, make_pass_complete_unrolli): Relocate here.
7342 * tree-ssa-loop-ivopts.c: Remove local prototypes.
7343 (stmt_invariant_in_loop_p): Remove unused function.
7344 * tree-ssa-loop-ivopts.h: New file. Add prototypes.
7345 * tree-ssa-loop-manip.h: New file. Add prototypes.
7346 * tree-ssa-loop-niter.c (record_niter_bound): Move to cfgloop.c.
7347 (gcov_type_to_double_int): Move to cfgloop.h.
7348 (double_int_cmp, bound_index,
7349 estimate_numbers_of_iterations_loop): Make static.
7350 (estimated_loop_iterations): Factor out get_estimated_loop_iterations.
7351 (max_loop_iterations): Factor out get_max_loop_iterations.
7352 (estimated_loop_iterations_int, max_stmt_executions_int): Move to
7354 * tree-ssa-loop-niter.h: New file. Add prototypes.
7355 * tree-ssa-loop-prefetch.c (tree_ssa_loop_prefetch,
7356 gate_tree_ssa_loop_prefetch, pass_data_loop_prefetch,
7357 make_pass_loop_prefetch): Relocate from tree-ssa-loop.c.
7358 * tree-ssa-loop-unswitch.c (tree_ssa_loop_unswitch,
7359 gate_tree_ssa_loop_unswitch, pass_data_tree_unswitch,
7360 make_pass_tree_unswitch): Relocate from tree-ssa-loop.c.
7361 * tree-ssa-loop.c (tree_ssa_loop_im, gate_tree_ssa_loop_im,
7362 pass_data_lim, make_pass_lim): Move to tree-ssa-loop-im.c.
7363 (tree_ssa_loop_unswitch, gate_tree_ssa_loop_unswitch,
7364 pass_data_tree_unswitch, make_pass_tree_unswitch): Move.
7365 (tree_ssa_loop_ivcanon, gate_tree_ssa_loop_ivcanon, pass_data_iv_canon,
7366 make_pass_iv_canon, tree_complete_unroll, gate_tree_complete_unroll,
7367 pass_data_complete_unroll, make_pass_complete_unroll,
7368 tree_complete_unroll_inner, gate_tree_complete_unroll_inner,
7369 pass_data_complete_unrolli, make_pass_complete_unrolli): Move to
7370 tree-ssa-loop-ivcanon.c.
7371 (tree_ssa_loop_prefetch, gate_tree_ssa_loop_prefetch,
7372 pass_data_loop_prefetch, make_pass_loop_prefetch): Move to
7373 tree-ssa-loop-prefetch.c.
7374 (for_each_index, lsm_tmp_name_add, gen_lsm_tmp_name): Relocate from
7376 (get_lsm_tmp_name): Relocate and add suffix parameter.
7377 (tree_num_loop_insns): Relocate from tree-ssa-ivcanon.c.
7378 * tree-scalar-evolution.h (simple_iv): Don't use affive_iv typedef.
7379 * cfgloop.c (record_niter_bound, estimated_loop_iterations_int,
7380 max_stmt_executions_int): Move from tree-ssa-loop-niter.c.
7381 (get_estimated_loop_iterations): Factor out accessor from
7382 estimated_loop_iterations in tree-ssa-loop-niter.c.
7383 (get_max_loop_iterations): Factor out accessor from
7384 _max_loop_iterations in tree-ssa-niter.c.
7385 * loop-unroll.c (decide_unroll_constant_iterations,
7386 decide_unroll_runtime_iterations, decide_peel_simple,
7387 decide_unroll_stupid): Use new get_* accessors.
7389 2013-10-09 Marc Glisse <marc.glisse@inria.fr>
7391 PR tree-optimization/20318
7392 * doc/extend.texi (returns_nonnull): New function attribute.
7393 * fold-const.c (tree_expr_nonzero_warnv_p): Look for returns_nonnull
7395 * tree-vrp.c (gimple_stmt_nonzero_warnv_p): Likewise.
7396 (stmt_interesting_for_vrp): Accept all GIMPLE_CALL.
7398 2013-10-09 Eric Botcazou <ebotcazou@adacore.com>
7401 * tree-ssa-alias.c (nonoverlapping_component_refs_of_decl_p): Return
7402 false if both components are bitfields.
7404 2013-10-09 Alex Velenko <Alex.Velenko@arm.com>
7406 * config/aarch64/arm_neon.h (vclz_s8, vclz_s16, vclz_s32)
7407 (vclzq_s8, vclzq_s16, vclzq_s32, vclz_u8, vclz_u16, vclz_u32)
7408 (vclzq_u8, vclzq_u16, vclzq_u32): Replace ASM with C.
7409 * config/aarch64/aarch64.h
7410 (CLZ_DEFINED_VALUE_AT_ZERO): Macro fixed for clz.
7411 * config/aarch64/aarch64-simd-builtins.def
7412 (VAR1 (UNOP, clz, 0, v4si)): Replaced with iterator.
7414 2013-10-09 Alex Velenko <Alex.Velenko@arm.com>
7416 * config/aarch64/arm_neon.h (vadd_f64, vsub_f64): Implementation added.
7418 2013-10-09 Alex Velenko <Alex.Velenko@arm.com>
7420 * config/aarch64/arm_neon.h (vdiv_f64): Added.
7422 2013-10-09 Alex Velenko <Alex.Velenko@arm.com>
7424 * config/aarch64/arm_neon.h (vneg_f32): Asm replaced with C.
7425 (vneg_f64): New intrinsic.
7426 (vneg_s8): Asm replaced with C.
7427 (vneg_s16): Likewise.
7428 (vneg_s32): Likewise.
7429 (vneg_s64): New intrinsic.
7430 (vnegq_f32): Asm replaced with C.
7431 (vnegq_f64): Likewise.
7432 (vnegq_s8): Likewise.
7433 (vnegq_s16): Likewise.
7434 (vnegq_s32): Likewise.
7435 (vnegq_s64): Likewise.
7437 2013-10-09 Renlin Li <Renlin.Li@arm.com>
7439 * config/arm/arm.c (arm_output_mi_thunk): Use plus_constant.
7441 2013-10-09 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
7443 * config/s390/s390.c (s390_register_info_stdarg_fpr): Remove
7444 packed stack special handling.
7445 (s390_frame_info, s390_emit_prologue, s390_emit_epilogue): Switch
7446 back to fixed stack slots for FPRs saved due to stdarg.
7448 2013-10-09 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
7450 * config/s390/s390.c (s390_frame_info): Restructure function.
7452 2013-10-09 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
7454 * config/s390/s390.c (struct s390_frame_layout): New field
7456 (cfun_save_arg_fprs_p, cfun_gpr_save_slot): New macros.
7457 (s390_reg_clobbered_rtx, s390_regs_ever_clobbered): Change type of
7458 regs_ever_clobbered to char*.
7459 (s390_regs_ever_clobbered): Check crtl->saves_all_registers instead
7460 of cfun->has_nonlocal_label. Ignore frame related restore INSNs.
7461 (s390_register_info): Enable FPR save slots. Move/Copy some
7462 functionality into ...
7463 (s390_register_info_gprtofpr, s390_register_info_stdarg_fpr)
7464 (s390_register_info_stdarg_gpr, s390_optimize_register_info): New
7466 (s390_frame_info): Do gpr slot allocation here now. stdarg does
7467 not imply a stack frame.
7468 (s390_init_frame_layout): Remove variable clobbered_regs.
7469 (s390_update_register_info): Remove function.
7470 (s390_hard_regno_rename_ok): Call-saved regs without a save slot
7471 cannot be used for register renaming.
7472 (s390_hard_regno_scratch_ok): New function.
7473 (TARGET_HARD_REGNO_SCRATCH_OK): Define target hook.
7474 (s390_initial_elimination_offset): Change offset calculation of
7475 the return address pointer.
7476 (save_gprs): Deal with only r6 being saved from the call-saved regs.
7477 (restore_gprs): Set frame related flag.
7478 (s390_save_gprs_to_fprs, s390_restore_gprs_from_fprs): New functions.
7479 (s390_emit_prologue): Call s390_register_info instead of
7480 s390_update_frame_layout. Call s390_save_gprs_to_fprs.
7481 (s390_emit_epilogue): Call s390_restore_gprs_from_fprs.
7482 (s390_optimize_prologue): Call s390_optimize_register_info.
7483 Try to remove also FPR slot save/restore INSNs. Remove frame
7484 related flags from restore INSNs.
7486 2013-10-08 DJ Delorie <dj@redhat.com>
7488 * config/rl78/rl78-expand.md (movqi): use operands[] not operandN.
7491 * config/rl78/rl78.c (rl78_print_operand_1): Change %c to %C to
7492 avoid conflict with the MI use of %c.
7493 * config/rl78/rl78-real.md: change %c to %C throughout.
7494 * config/rl78/rl78-virt.md: Likewise.
7496 2013-10-08 Jan Hubicka <jh@suse.cz>
7498 * config/i386/i386.c (ix86_option_override_internal): Switch
7499 to SSE math for -ffast-math when target ISA supports SSE2.
7501 2013-10-08 Andrew MacLeod <amacleod@redhat.com>
7503 * tree-flow.h: Remove some prototypes.
7504 * tree.h: Remove some protypes, add a couple.
7505 * tree.c (using_eh_for_cleanups_flag, using_eh_for_cleanups,
7506 using_eh_for_cleanups_p): Add interface routines for front ends.
7507 * tree-eh.h: New file. Add protoptyes.
7508 * tree-eh.c (using_eh_for_cleanups_p, using_eh_for_cleanups): Delete.
7509 (add_stmt_to_eh_lp_fn): Make static.
7510 (lower_try_finally): Use new using_eh_for_cleanups_p.
7511 * emit-rtl.c: Include tree-eh.h.
7512 * gimple.h: Include tree-eh.h.
7514 2013-10-08 Marc Glisse <marc.glisse@inria.fr>
7516 PR tree-optimization/58480
7517 * tree-vrp.c (infer_nonnull_range): New function.
7518 (infer_value_range): Call infer_nonnull_range.
7520 2013-10-08 Dehao Chen <dehao@google.com>
7522 PR tree-optimization/58619
7523 * tree-inline.c (copy_phis_for_bb): Combine location data
7526 2013-10-08 Zhenqiang Chen <zhenqiang.chen@linaro.org>
7529 * config/arm/arm.c (arm_emit_ldrd_pop): Attach
7530 RTX_FRAME_RELATED_P on INSN.
7532 2013-10-07 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
7534 * config/rs6000/rs6000.c (altivec_expand_vec_perm_const_le): New.
7535 (altivec_expand_vec_perm_const): Call it.
7537 2013-10-07 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
7539 * config/rs6000/vector.md (mov<mode>): Emit permuted move
7540 sequences for LE VSX loads and stores at expand time.
7541 * config/rs6000/rs6000-protos.h (rs6000_emit_le_vsx_move): New
7543 * config/rs6000/rs6000.c (rs6000_const_vec): New.
7544 (rs6000_gen_le_vsx_permute): New.
7545 (rs6000_gen_le_vsx_load): New.
7546 (rs6000_gen_le_vsx_store): New.
7547 (rs6000_gen_le_vsx_move): New.
7548 * config/rs6000/vsx.md (*vsx_le_perm_load_v2di): New.
7549 (*vsx_le_perm_load_v4si): New.
7550 (*vsx_le_perm_load_v8hi): New.
7551 (*vsx_le_perm_load_v16qi): New.
7552 (*vsx_le_perm_store_v2di): New.
7553 (*vsx_le_perm_store_v4si): New.
7554 (*vsx_le_perm_store_v8hi): New.
7555 (*vsx_le_perm_store_v16qi): New.
7556 (*vsx_xxpermdi2_le_<mode>): New.
7557 (*vsx_xxpermdi4_le_<mode>): New.
7558 (*vsx_xxpermdi8_le_V8HI): New.
7559 (*vsx_xxpermdi16_le_V16QI): New.
7560 (*vsx_lxvd2x2_le_<mode>): New.
7561 (*vsx_lxvd2x4_le_<mode>): New.
7562 (*vsx_lxvd2x8_le_V8HI): New.
7563 (*vsx_lxvd2x16_le_V16QI): New.
7564 (*vsx_stxvd2x2_le_<mode>): New.
7565 (*vsx_stxvd2x4_le_<mode>): New.
7566 (*vsx_stxvd2x8_le_V8HI): New.
7567 (*vsx_stxvd2x16_le_V16QI): New.
7569 2013-10-07 Renlin Li <Renlin.Li@arm.com>
7571 * config/arm/arm-cores.def (cortex-a53): Use cortex tuning.
7573 2013-10-07 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
7575 * config/s390/s390.c (s390_register_info): Make the call-saved FPR
7576 loop to work also for 31bit ABI.
7577 Save the stack pointer for frame_size > 0.
7579 2013-10-07 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
7581 * config/s390/s390.md ("tbegin", "tbegin_nofloat", "tbegin_retry")
7582 ("tbegin_retry_nofloat", "tend", "tabort", "tx_assist"): Remove
7583 constraint letters from expanders.
7584 ("tbegin_retry", "tbegin_retry_nofloat"): Change predicate of the
7585 retry count to general_operand.
7586 ("tabort"): Give operand 0 a mode.
7587 ("tabort_1"): Add mode and constraint letter for operand 0.
7588 * doc/extend.texi: Fix protoype of __builtin_non_tx_store.
7590 2013-10-04 Jeff Law <law@redhat.com>
7592 * tree-ssa-threadedge.c: Fix some trailing whitespace problems.
7594 * tree-ssa-threadedge.c (thread_through_normal_block): Broken
7596 (thread_across_edge): Here. Call it.
7598 2013-10-04 Cary Coutant <ccoutant@google.com>
7600 * dwarf2out.c (dw_sra_loc_expr): Release addr_table entries when
7601 discarding a location list expression (or a piece of one).
7603 2013-10-03 Jan Hubicka <jh@suse.cz>
7605 * config/i386/i386.c (ix86_issue_rate): Pentium4, Nocona has issue
7606 rate of 2. Core2, Corei7 and Haswell has issue rate of 4.
7607 (ix86_adjust_cost): Remove Atom case; fix core2/corei7/Haswell case.
7609 2013-10-03 Jan Hubicka <jh@suse.cz>
7611 * config/i386/i386.c (ix86_option_override_internal): Do not enable
7612 accumulate-outgoing-args when producing unwind info.
7614 2013-10-03 Wei Mi <wmi@google.com>
7616 * lra-constraints.c (insert_move_for_subreg): New function
7617 extracted from simplify_operand_subreg.
7618 (simplify_operand_subreg): Add reload for paradoxical subreg.
7620 2013-10-03 Rong Xu <xur@google.com>
7622 * ipa-inline-analysis.c (find_foldable_builtin_expect): Find
7623 the candidate of builtin_expect such that we should fix the
7624 size/time estimation.
7625 (estimate_function_body_sizes): Do the acutally size/time fix-up
7628 2013-10-03 Rong Xu <xur@google.com>
7630 * predict.c (tree_predict_by_opcode): Get the probability
7631 for builtin_expect from param builtin_expect_probability.
7632 * params.def (BUILTIN_EXPECT_PROBABILITY): New parameter.
7633 * predict.def (PRED_BUILTIN_EXPECT_RELAXED): Fix comments.
7634 * doc/invoke.texi: Add documentation for builtin-expect-probability.
7636 2013-10-03 Marc Glisse <marc.glisse@inria.fr>
7639 * common.opt (fcheck-new): Moved from c.opt. Make it 'Common'.
7640 * calls.c (alloca_call_p): Use get_callee_fndecl.
7641 * fold-const.c (tree_expr_nonzero_warnv_p): Handle operator new.
7642 * tree-vrp.c (gimple_stmt_nonzero_warnv_p, stmt_interesting_for_vrp):
7644 (vrp_visit_stmt): Remove duplicated code.
7646 2013-10-03 Michael Meissner <meissner@linux.vnet.ibm.com>
7648 * config/rs6000/rs6000-builtin.def (XSRDPIM): Use floatdf2,
7649 ceildf2, btruncdf2, instead of vsx_* name.
7651 * config/rs6000/vsx.md (vsx_add<mode>3): Change arithmetic
7652 iterators to only do V2DF and V4SF here. Move the DF code to
7653 rs6000.md where it is combined with SF mode. Replace <VSv> with
7654 just 'v' since only vector operations are handled with these insns
7655 after moving the DF support to rs6000.md.
7656 (vsx_sub<mode>3): Likewise.
7657 (vsx_mul<mode>3): Likewise.
7658 (vsx_div<mode>3): Likewise.
7659 (vsx_fre<mode>2): Likewise.
7660 (vsx_neg<mode>2): Likewise.
7661 (vsx_abs<mode>2): Likewise.
7662 (vsx_nabs<mode>2): Likewise.
7663 (vsx_smax<mode>3): Likewise.
7664 (vsx_smin<mode>3): Likewise.
7665 (vsx_sqrt<mode>2): Likewise.
7666 (vsx_rsqrte<mode>2): Likewise.
7667 (vsx_fms<mode>4): Likewise.
7668 (vsx_nfma<mode>4): Likewise.
7669 (vsx_copysign<mode>3): Likewise.
7670 (vsx_btrunc<mode>2): Likewise.
7671 (vsx_floor<mode>2): Likewise.
7672 (vsx_ceil<mode>2): Likewise.
7673 (vsx_smaxsf3): Delete scalar ops that were moved to rs6000.md.
7674 (vsx_sminsf3): Likewise.
7675 (vsx_fmadf4): Likewise.
7676 (vsx_fmsdf4): Likewise.
7677 (vsx_nfmadf4): Likewise.
7678 (vsx_nfmsdf4): Likewise.
7679 (vsx_cmpdf_internal1): Likewise.
7681 * config/rs6000/rs6000.h (TARGET_SF_SPE): Define macros to make it
7682 simpler to select whether a target has SPE or traditional floating
7683 point support in iterators.
7684 (TARGET_DF_SPE): Likewise.
7685 (TARGET_SF_FPR): Likewise.
7686 (TARGET_DF_FPR): Likewise.
7687 (TARGET_SF_INSN): Macros to say whether floating point support
7688 exists for a given operation for expanders.
7689 (TARGET_DF_INSN): Likewise.
7691 * config/rs6000/rs6000.c (Ftrad): New mode attributes to allow
7692 combining of SF/DF mode operations, using both traditional and VSX
7700 (abs<mode>2): Combine SF/DF modes using traditional floating point
7701 instructions. Add support for using the upper DF registers with
7702 VSX support, and SF registers with power8-vector support. Update
7703 expanders for operations supported by both the SPE and traditional
7704 floating point units.
7705 (abs<mode>2_fpr): Likewise.
7706 (nabs<mode>2): Likewise.
7707 (nabs<mode>2_fpr): Likewise.
7708 (neg<mode>2): Likewise.
7709 (neg<mode>2_fpr): Likewise.
7710 (add<mode>3): Likewise.
7711 (add<mode>3_fpr): Likewise.
7712 (sub<mode>3): Likewise.
7713 (sub<mode>3_fpr): Likewise.
7714 (mul<mode>3): Likewise.
7715 (mul<mode>3_fpr): Likewise.
7716 (div<mode>3): Likewise.
7717 (div<mode>3_fpr): Likewise.
7718 (sqrt<mode>3): Likewise.
7719 (sqrt<mode>3_fpr): Likewise.
7720 (fre<Fs>): Likewise.
7721 (rsqrt<mode>2): Likewise.
7722 (cmp<mode>_fpr): Likewise.
7723 (smax<mode>3): Likewise.
7724 (smin<mode>3): Likewise.
7725 (smax<mode>3_vsx): Likewise.
7726 (smin<mode>3_vsx): Likewise.
7727 (negsf2): Delete SF operations that are merged with DF.
7734 (fmasf4_fpr): Likewise.
7735 (fmssf4_fpr): Likewise.
7736 (nfmasf4_fpr): Likewise.
7737 (nfmssf4_fpr): Likewise.
7738 (sqrtsf2): Likewise.
7739 (rsqrtsf_internal1): Likewise.
7740 (smaxsf3): Likewise.
7741 (sminsf3): Likewise.
7742 (cmpsf_internal1): Likewise.
7743 (copysign<mode>3_fcpsgn): Add VSX/power8-vector support.
7744 (negdf2): Delete DF operations that are merged with SF.
7746 (nabsdf2): Likewise.
7752 (rsqrtdf_internal1): Likewise.
7753 (fmadf4_fpr): Likewise.
7754 (fmsdf4_fpr): Likewise.
7755 (nfmadf4_fpr): Likewise.
7756 (nfmsdf4_fpr): Likewise.
7757 (sqrtdf2): Likewise.
7758 (smaxdf3): Likewise.
7759 (smindf3): Likewise.
7760 (cmpdf_internal1): Likewise.
7761 (lrint<mode>di2): Use TARGET_<MODE>_FPR macro.
7762 (btrunc<mode>2): Delete separate expander, and combine with the
7763 insn and add VSX instruction support. Use TARGET_<MODE>_FPR.
7764 (btrunc<mode>2_fpr): Likewise.
7765 (ceil<mode>2): Likewise.
7766 (ceil<mode>2_fpr): Likewise.
7767 (floor<mode>2): Likewise.
7768 (floor<mode>2_fpr): Likewise.
7769 (fma<mode>4_fpr): Combine SF and DF fused multiply/add support.
7770 Add support for using the upper registers with VSX and
7771 power8-vector. Move insns to be closer to the define_expands. On
7772 VSX systems, prefer the traditional form of FMA over the VSX
7773 version, since the traditional form allows the target not to
7774 overlap with the inputs.
7775 (fms<mode>4_fpr): Likewise.
7776 (nfma<mode>4_fpr): Likewise.
7777 (nfms<mode>4_fpr): Likewise.
7779 2013-10-03 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
7780 Richard Earnshaw <richard.earnshaw@arm.com>
7782 * config/arm/aarch-common-protos.h (struct alu_cost_table): New.
7783 (struct mult_cost_table): Likewise.
7784 (struct mem_cost_table): Likewise.
7785 (struct fp_cost_table): Likewise.
7786 (struct vector_cost_table): Likewise.
7787 (cpu_cost_table): Likewise.
7788 * config/arm/arm.opt (mold-rts-costs): New option.
7789 (mnew-generic-costs): Likewise.
7790 * config/arm/arm.c (generic_extra_costs): New table.
7791 (cortexa15_extra_costs): Likewise.
7792 (arm_slowmul_tune): Use NULL as new costs.
7793 (arm_fastmul_tune): Likewise.
7794 (arm_strongarm_tune): Likewise.
7795 (arm_xscale_tune): Likewise.
7796 (arm_9e_tune): Likewise.
7797 (arm_v6t2_tune): Likewise.
7798 (arm_cortex_a5_tune): Likewise.
7799 (arm_cortex_a9_tune): Likewise.
7800 (arm_v6m_tune): Likewise.
7801 (arm_fa726te_tune): Likewise.
7802 (arm_cortex_a15_tune): Use cortex15_extra_costs.
7803 (arm_cortex_tune): Use generict_extra_costs.
7804 (shifter_op_p): New function.
7805 (arm_unspec_cost): Likewise.
7806 (LIBCALL_COST): Define.
7807 (arm_new_rtx_costs): New function.
7808 (arm_rtx_costs): Use arm_new_rtx_costs when core-specific
7809 table is available. Use old costs otherwise unless mnew-generic-costs
7811 * config/arm/arm-protos.h (tune_params): Add insn_extra_cost field.
7812 (cpu_cost_table): Declare.
7814 2013-10-03 Marcus Shawcroft <marcus.shawcroft@arm.com>
7817 * config/aarch64/aarch64.md (*adds_mul_imm_<mode>)
7818 (*subs_mul_imm_<mode>)
7819 (*add_<shift>_<mode>, *add_<shift>_si_uxtw,*add_mul_imm_<mode>)
7820 (*sub_<shift>_<mode>)
7821 (*sub_<shift>_si_uxtw,*sub_mul_imm_<mode>, *sub_mul_imm_si_uxtw):
7822 Remove k constraint.
7824 2013-10-03 Ian Bolton <ian.bolton@arm.com>
7826 * config/aarch64/aarch64.c (aarch64_secondary_reload): Remove legacy
7828 * config/aarch64/aarch64.md (reload_sp_immediate): Likewise.
7830 2013-10-02 Teresa Johnson <tejohnson@google.com>
7832 * predict.c (probably_never_executed): New function.
7833 (probably_never_executed_bb_p): Invoke probably_never_executed.
7834 (probably_never_executed_edge_p): Ditto.
7835 * bb-reorder.c (find_rarely_executed_basic_blocks_and_crossing_edges):
7836 Treat profile insanities conservatively.
7838 2013-10-02 John David Anglin <danglin@gcc.gnu.org>
7840 * config.gcc (hppa*64*-*-linux*): Don't add pa/t-linux to tmake_file.
7842 2013-10-02 Vladimir Makarov <vmakarov@redhat.com>
7844 * lra-constraints.c (process_alt_operand): Calculate scratch_p and
7845 use it. Use smaller increase for scratch. Don't increase reject
7846 for early clobber scratch.
7847 * lra-eliminations.c (eliminate_regs_in_insn): Remove all insns
7848 setting eliminated regs except setting fp from hfp.
7849 (lra_eliminate): Check lra_insn_recog_data on NULL.
7851 2013-10-02 Michael Meissner <meissner@linux.vnet.ibm.com>
7854 * config/rs6000/rs6000-cpus.def (ISA_2_6_MASKS_SERVER): Turn off
7855 setting -mvsx-timode by default until the underlying problem is fixed.
7856 (RS6000_CPU, power7 defaults): Likewise.
7858 2013-10-02 Uros Bizjak <ubizjak@gmail.com>
7860 * config/x-linux (host-linux.o): Remove header dependencies.
7861 Use $(COMPILE) and $(POSTCOMPILE).
7862 * config/t-linux-android (linux-android.o): Ditto.
7864 2013-10-02 Uros Bizjak <ubizjak@gmail.com>
7866 * Makefile.in (expmed.o-warn): Remove.
7868 2013-10-02 Andrew MacLeod <amacleod@redhat.com>
7870 * graphite-scop-detection.c: Include tree-ssa-propagate,h.
7871 * graphite-sese-to-poly.c: Include tree-ssa-propagate.h.
7873 2013-10-02 Teresa Johnson <tejohnson@google.com>
7875 * dojump.c (do_jump_1): Divide probability between
7876 both conditions of a TRUTH_ANDIF_EXPR/TRUTH_ORIF_EXPR.
7878 2013-10-02 Tom Tromey <tromey@redhat.com>
7880 * Makefile.in (DRIVER_DEFINES): Use $(if), not $(and).
7882 2013-10-02 Andrew MacLeod <amacleod@redhat.com>
7884 * tree-flow.h: Remove some prototypes.
7885 * tree-ssa-dce.c (mark_virtual_operand_for_renaming,
7886 mark_virtual_phi_result_for_renaming): Move to tree-into-ssa.c.
7887 * tree-into-ssa.c (mark_virtual_operand_for_renaming,
7888 mark_virtual_phi_result_for_renaming): Relocate here.
7889 * tree-into-ssa.h: Add prototypes.
7890 * tree-ssa-phiopt.c: (tree_ssa_phiopt_worker) Use
7891 single_pred_before_succ_order.
7892 (blocks_in_phiopt_order): Rename and move to cfganal.c.
7893 (nonfreeing_call_p) Move to gimple.c.
7894 * cfganal.c (single_pred_before_succ_order): Move and renamed from
7896 * basic-block.h (single_pred_before_succ_order): Add prototype.
7897 * gimple.c (nonfreeing_call_p): Relocate here.
7898 * gimple.h: Add prototype.
7899 * tree-ssa-ifcombine.c: Include tree-ssa-phiopt.h.
7900 * tree-ssa-dom.h: New file. Relocate prototypes here.
7901 * tree-ssa.h: Include tree-ssa-dom.h.
7903 2013-10-02 Uros Bizjak <ubizjak@gmail.com>
7905 * config/i386/x-i386 (driver-i386.o): Remove header dependencies.
7906 Use $(COMPILE) and $(POSTCOMPILE).
7908 * config/alpha/x-alpha (driver-alpha.o): Ditto.
7910 2013-10-02 Andrew MacLeod <amacleod@redhat.com>
7912 * tree-flow.h: Remove some prototypes.
7913 * gimple-fold.h: Add prototypes from gimple.h and tree-flow.h.
7914 * tree-ssa-propagate.h: Relocate prototypes from tree-flow.h.
7915 * tree-ssa-copy.c (may_propagate*, propagate_value, replace_exp,
7916 propagate_tree_value*): Move from here to...
7917 * tree-ssa-propagate.c (may_propagate*, propagate_value, replace_exp,
7918 propagate_tree_value*): Relocate here.
7919 * tree-ssa-propagate.h: Relocate prototypes from tree-flow.h.
7920 * gimple.h: Include gimple-fold.h, move prototypes into gimple-fold.h.
7921 * gimple-fold.c: Remove gimple-fold.h from include list.
7922 * tree-vrp.c: Remove gimple-fold.h from include list.
7923 * tree-ssa-sccvn.c: Remove gimple-fold.h from include list.
7924 * tree-ssa-ccp.c: Remove gimple-fold.h from include list.
7925 * tree-scalar-evolution.c: Add tree-ssa-propagate.h to include list.
7926 * tree-ssa-pre.c: Add tree-ssa-propagate.h to include list.
7927 * sese.c: Add tree-ssa-propagate.h to include list.
7929 2013-10-02 Richard Biener <rguenther@suse.de>
7931 * tree-loop-distribution.c: Include tree-vectorizer.h for
7933 (enum partition_kind): Remove PKIND_REDUCTION.
7934 (struct partition_s): Remove has_writes member, add reduction_p member.
7935 (partition_alloc): Adjust.
7936 (partition_builtin_p): Likewise.
7937 (partition_has_writes): Remove.
7938 (partition_reduction_p): New function.
7939 (partition_merge_into): Likewise.
7940 (generate_code_for_partition): Commonize builtin partition
7942 (rdg_cannot_recompute_vertex_p): Remove.
7943 (already_processed_vertex_p): Likewise.
7944 (rdg_flag_vertex): Do not set has_writes.
7945 (classify_partition): Adjust.
7946 (rdg_build_partitions): Do not set has_writes, treat all
7947 partitions as useful.
7948 (distribute_loop): Record number of library calls generated. Adjust.
7949 (tree_loop_distribution): Report number of loops and library
7950 calls generated as opt-info.
7952 2013-10-02 Andrew MacLeod <amacleod@redhat.com>
7954 * tree-flow.h: Include new .h files. Move prototypes.
7955 * tree-cfgcleanup.h: New file. Add prototypes from tree-flow.h.
7956 * tree-dfa.h: New File. Add prototypes from tree-flow.h.
7957 (get_addr_base_and_unit_offset_1) Move from tree-flow-inline.h.
7958 * tree-pretty-print.h: Add prototypes from tree-flow.h.
7959 * tree-into-ssa.h: New File. Add prototypes from tree-flow.h.
7960 ({debug|dump}*): Move debugging prototypes out of tree-into-ssa.c.
7961 * tree-into-ssa.c ({debug|dump}*): Move prototypes to header file.
7962 * tree.h (get_ref_base_and_extent): Move prototype out.
7963 * tree-flow-inline.h (get_addr_base_and_unit_offset_1): Move to
7965 * gimple-low.h: New File. Add prototypes from tree-flow.h.
7966 * gimple-low.c (try_catch_may_fallthru, block_may_fallthru): Move to...
7967 * tree.c (try_catch_may_fallthru, block_may_fallthru): Here.
7968 * tree-scalar-evolution.c: Include tree.h.
7969 * sese.c: Include tree.h.
7970 * dumpfile.c: Move gimple-pretty-print.h include after tree.h.
7971 * dwarf2out.c: Include tree-dfa.h.
7972 * tree-chrec.c: Include tree.h.
7973 * tree-data-ref.c: Include tree.h.
7975 2013-10-02 Yufeng Zhang <yufeng.zhang@arm.com>
7977 * gimple-ssa-strength-reduction.c (backtrace_base_for_ref):
7980 2013-10-02 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7982 * config/t-sol2 (sol2-c.o): Remove header dependencies.
7983 Use $(COMPILE) and $(POSTCOMPILE).
7984 (sol2-cxx.o): Likewise.
7985 (sol2-stubs.o): Likewise.
7987 * config/x-solaris (host-solaris.o): Likewise.
7989 * config/sparc/t-sparc (sparc.o): Remove.
7990 (sparc-c.o): Remove header dependencies.
7991 Use $(COMPILE) and $(POSTCOMPILE).
7992 * config/sparc/x-sparc: Likewise.
7994 2013-10-02 Joern Rennecke <joern.rennecke@embecosm.com>
7996 * config/arc/arc-opts.h: Add 2013 to Copyright years.
7997 * config/arc/arc700.md: Likewise.
7998 * config/arc/arc-modes.def: Likewise.
7999 * config/arc/arc-simd.h: Likewise.
8000 * config/arc/t-arc-uClibc: Likewise.
8001 * config/arc/t-arc-newlib: Likewise.
8003 2013-10-02 Renlin Li <renlin.li@arm.com>
8005 * config/aarch64/aarch64.c (aarch64_expand_prologue): Use
8007 (aarch64_expand_epilogue): Likewise.
8009 2013-10-02 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
8010 Yufeng Zhang <yufeng.zhang@arm.com>
8012 * gimple-ssa-strength-reduction.c (legal_cast_p_1): Forward
8014 (backtrace_base_for_ref): Call get_unwidened with 'base_in' if
8015 'base_in' represent a conversion and legal_cast_p_1 holds; set
8016 'base_in' with the returned value from get_unwidened.
8018 2013-10-02 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
8020 * config/arm/arm.c (arm_legitimize_reload_address): Explain why
8021 plus_constant is not used.
8023 2013-10-01 Wei Mi <wmi@google.com>
8025 * config/i386/x86-tune.def (DEF_TUNE): Remove m_CORE_ALL.
8026 * config/i386/i386.md: Add define_peephole2 to
8027 break partial reg stall for cvtss2sd/cvtsd2ss.
8029 2013-10-01 Joern Rennecke <joern.rennecke@embecosm.com>
8031 * config/arc/arc.c (pass_arc_ifcvt::clone):
8032 Update for ctxt_ -> m_ctxt change.
8034 2013-10-01 Jeff Law <law@redhat.com>
8036 * tree-ssa-threadupdate.c (struct redirection_data): Delete
8037 outgoing_edge and intermediate_edge fields. Instead store the path.
8038 (redirection_data::hash): Hash on the last edge's destination index.
8039 (redirection_data::equal): Check the entire thread path.
8040 (lookup_redirectio_data): Corresponding changes.
8041 (create_edge_and_update_destination_phis): Likewise.
8042 (thread_single_edge): Likewise.
8044 2013-10-01 Joern Rennecke <joern.rennecke@embecosm.com>
8045 Diego Novillo <dnovillo@google.com>
8047 * config/arc/simdext.md (UNSPEC_ARC_SIMD_VLD32WH): Delete.
8048 (UNSPEC_ARC_SIMD_VLD32WL): Likewise.
8049 (vld32wh_insn, vld32wl_insn): Delete commented-out old
8050 versions of these patterns.
8052 * doc/extend.texi (long_call/medium_call/short_call): Typo fix.
8053 (__builtin_arc_aligned): Likewise.
8055 * config/arc/arc.md: Expand adc_0 comment stating the intended
8056 purpose and why it isn't ready.
8057 Replace commented out call_value_via_label_mixed with a
8058 plain comment about bl_s.
8060 * config/arc/arc.c (stdio.h): Don't include directly.
8061 (arc_expand_epilogue): Remove [0]: Remove fp_restored_p.
8062 Remove if (1) condition.
8063 (arc_encode_section_info): Fix comment.
8065 2013-10-01 Joern Rennecke <joern.rennecke@embecosm.com>
8067 * config/arc/arc.c (arc_conditional_register_usage):
8068 Use ARC_FIRST_SIMD_VR_REG / ARC_LAST_SIMD_VR_REG.
8069 Also set reg_alloc_order for DMA config regs.
8071 2013-10-01 Joern Rennecke <joern.rennecke@embecosm.com>
8072 Jeremy Bennett <jeremy.bennett@embecosm.com>
8074 * doc/install.texi (--with-cpu): Mention ARC.
8075 (arc-*-elf32): New paragraph.
8076 (arc-linux-uclibc): Likewise.
8077 * doc/md.texi (Machine Constraints): Add ARC part.
8078 * doc/invoke.texi: (menu): Add ARC Options.
8079 (Machine Dependent Options) <ARC Options>: Add synopsis.
8080 (node ARC Options): Add.
8081 * doc/extend.texi (long_call / short_call attribute): Add ARC.
8082 (ARC Built-in Functions): New section defining
8083 generic ARC built-in functions.
8084 (ARC SIMD Built-in Functions): New section defining SIMD specific
8086 (Declaring Attributes of Functions): Extended
8087 description of short_call and long_call attributes for ARC and
8088 added index entries.
8090 2013-10-01 Saurabh Verma <saurabh.verma@codito.com>
8091 Ramana Radhakrishnan <ramana.radhakrishnan@codito.com>
8092 Joern Rennecke <joern.rennecke@embecosm.com>
8093 Muhammad Khurram Riaz <khurram.riaz@arc.com>
8094 Brendan Kehoe <brendan@zen.org>
8095 Michael Eager <eager@eagercon.com>
8096 Simon Cook <simon.cook@embecosm.com>
8097 Jeremy Bennett <jeremy.bennett@embecosm.com>
8099 * config/arc, common/config/arc: New directories.
8101 2013-10-01 Joern Rennecke <joern.rennecke@embecosm.com>
8102 Brendan Kehoe <brendan@zen.org>
8103 Simon Cook <simon.cook@embecosm.com>
8105 * config.gcc (arc*-*-elf*, arc*-*-linux-uclibc*): New configurations.
8107 2013-10-01 Andrew MacLeod <amacleod@redhat.com>
8109 * tree-ssa-live.h (coalesce_ssa_name): Move Prototype to...
8110 * tree-ssa-coalesce.h: New. Move prototype to here.
8111 * tree-outof-ssa.h: Include tree-ssa-coalesce.h.
8112 * tree-ssa-coalesce.c: Include tree-outof-ssa.h.
8113 (gimple_can_coalesce_p): Move to...
8114 * gimple.c (gimple_can_coalesce_p): Here.
8116 2013-10-01 Andrew MacLeod <amacleod@redhat.com>
8118 * tree-into-ssa.c (enum need_phi_state): Relocate from tree-flow.h.
8119 (dump_decl_set): Move to gimple.c.
8120 * gimple.h: Don't include tree-ssa-operands.h.
8121 (dump_decl_set): Add prototype.
8122 (gimple_vuse_op, gimple_vdef_op, update_stmt, update_stmt_if_modified):
8123 Move to gimple-ssa.h.
8124 (phi_ssa_name_p, phi_nodes, phi_nodes_ptr, gimple_phi_arg_def,
8125 gimple_phi_arg_def_ptr, gimple_phi_arg_edge, gimple_phi_arg_location,
8126 gimple_phi_arg_location_from_edge, gimple_phi_arg_set_location,
8127 gimple_phi_arg_has_location): Relocate from tree-flow-inline.h
8128 * gimple.c (walk_stmt_load_store_ops): Use gimple_phi_arg_def rather
8130 (dump_decl_set): Relocate here.
8131 * gimple-ssa.h: New file.
8132 (gimple_vuse_op, gimple_vdef_op, update_stmt, update_stmt_if_modified):
8133 Relocate from gimple.h.
8134 * tree-cfg.c (has_zero_uses_1, single_imm_use_1): Move to...
8135 * tree-ssa-operands.c (swap_ssa_operands): Rename from
8136 swap_tree_operands and remove non-ssa path.
8137 (has_zero_uses_1, single_imm_use_1): Relocate from tree-cfg.c.
8138 * tree-ssa-reassoc.c (linearize_expr_tree, repropagate_negates): Use
8140 * tree-vect-loop.c (destroy_loop_vec_info, vect_is_slp_reduction,
8141 vect_is_simple_reduction_1): Use swap_ssa_operands.
8142 * tree-flow.h: Move various prototypes to tree-phinodes.h.
8143 (enum need_phi_state): Move to tree-into-ssa.c.
8144 (struct immediate_use_iterator_d, FOR_EACH_IMM_*,
8145 BREAK_FROM_IMM_USE_STMT): Move to ssa-iterators.h.
8146 (swap_tree_operands): Rename and move prototype to tree-ssa-operands.h.
8147 * tree-flow-inline.h (delink_imm_use, link_imm_use_to_list,
8148 link_imm_use, set_ssa_use_from_ptr, link_imm_use_stmt, relink_imm_use,
8149 relink_imm_use_stmt, end_readonly_imm_use_p, first_readonly_imm_use,
8150 next_readonly_imm_use, has_zero_uses, has_single_use, single_imm_use,
8151 num_imm_uses): Move to ssa-iterators.h.
8152 (get_use_from_ptr, get_def_from_ptr): Move to tree-ssa-operands.h
8153 (gimple_phi_arg_imm_use_ptr, phi_arg_index_from_use): Move to
8155 (op_iter_done, op_iter_next_def, op_iter_next_tree,
8156 clear_and_done_ssa_iter, op_iter_init, op_iter_init_use,
8157 op_iter_init_def, op_iter_init_tree, single_ssa_tree_operand,
8158 single_ssa_use_operand, single_ssa_def_operand, zero_ssa_operands,
8159 num_ssa_operands, delink_stmt_imm_use, single_phi_def,
8160 op_iter_init_phiuse, op_iter_init_phidef, end_imm_use_stmt_p,
8161 end_imm_use_stmt_traverse, move_use_after_head, link_use_stmts_after,
8162 first_imm_use_stmt, next_imm_use_stmt, first_imm_use_on_stmt,
8163 end_imm_use_on_stmt_p, next_imm_use_on_stmt): Move to ssa-iterators.h.
8164 (gimple_phi_arg_def, gimple_phi_arg_def_ptr, gimple_phi_arg_edge,
8165 gimple_phi_arg_location, gimple_phi_arg_location_from_edge,
8166 gimple_phi_arg_set_location, gimple_phi_arg_has_location, phi_nodes,
8167 phi_nodes_ptr, phi_ssa_name_p): Move to gimple.h.
8168 (set_phi_nodes): Move to tree-phinodes.h.
8169 * tree-ssa-operands.h (enum ssa_op_iter_type,
8170 struct ssa_operand_iterator_d, SSA_OP*, FOR_EACH_SSA*, SINGLE_SSA*,
8171 ZERO_SSA_OPERANDS, NUM_SSA_OPERANDS): Move to ssa-iterators.h.
8172 (dump_decl_set): Remove prototype.
8173 (get_use_from_ptr, get_def_from_ptr): Relocate from tree-flow.h.
8174 * tree-phinodes.h: New file. Move some prototypes from tree-flow.h.
8175 (set_phi_nodes): Relocate from tree-flow-inline.h.
8176 (gimple_phi_arg_imm_use_ptr, phi_arg_index_from_use): Relocate from
8178 * tree-ssa.h: Add tree-phinodes.h, gimple-ssa.h, ssa-iterators.h to
8179 include list. Temporarily add gimple.h to include list.
8180 * ssa-iterators.h: New file.
8181 (struct immediate_use_iterator_d, FOR_EACH_IMM_*,
8182 BREAK_FROM_IMM_USE_STMT): Relocate from tree-flow.h.
8183 (enum ssa_op_iter_type, struct ssa_operand_iterator_d, SSA_OP*,
8184 FOR_EACH_SSA*, SINGLE_SSA*, ZERO_SSA_OPERANDS, NUM_SSA_OPERANDS):
8185 Relocate from tree-ssa-operands.h.
8186 (delink_imm_use, link_imm_use_to_list, link_imm_use,
8187 set_ssa_use_from_ptr, link_imm_use_stmt, relink_imm_use,
8188 relink_imm_use_stmt, end_readonly_imm_use_p, first_readonly_imm_use,
8189 next_readonly_imm_use, has_zero_uses, has_single_use, single_imm_use,
8190 num_imm_uses, get_use_from_ptr, get_def_from_ptr,
8191 phi_arg_index_from_use, op_iter_done, op_iter_next_def,
8192 op_iter_next_tree, clear_and_done_ssa_iter, op_iter_init,
8193 op_iter_init_use, op_iter_init_def, op_iter_init_tree,
8194 single_ssa_tree_operand, single_ssa_use_operand, single_ssa_def_operand,
8195 zero_ssa_operands, num_ssa_operands, delink_stmt_imm_use,
8196 single_phi_def, op_iter_init_phiuse, op_iter_init_phidef,
8197 end_imm_use_stmt_p, end_imm_use_stmt_traverse, move_use_after_head,
8198 link_use_stmts_after, first_imm_use_stmt, next_imm_use_stmt,
8199 first_imm_use_on_stmt, end_imm_use_on_stmt_p, next_imm_use_on_stmt):
8200 Relocate from tree-flow-inline.h.
8201 * tree-outof-ssa.h: Change _SSAEXPAND_H macro to GCC_TREE_OUTOF_SSA_H.
8203 2013-10-01 Vidya Praveen <vidyapraveen@arm.com>
8206 (aarch64_<ANY_EXTEND:su><ADDSUB:optab>l2<mode>_internal): Rename to ...
8207 (aarch64_<ANY_EXTEND:su><ADDSUB:optab>l<mode>_hi_internal): ... this;
8208 Insert '\t' to output template.
8209 (aarch64_<ANY_EXTEND:su><ADDSUB:optab>l<mode>_lo_internal): New.
8210 (aarch64_saddl2<mode>, aarch64_uaddl2<mode>): Modify to call
8211 gen_aarch64_<ANY_EXTEND:su><ADDSUB:optab>l<mode>_hi_internal() instead.
8212 (aarch64_ssubl2<mode>, aarch64_usubl2<mode>): Ditto.
8214 2013-10-01 Uros Bizjak <ubizjak@gmail.com>
8216 * doc/install.texi (Host/target specific installation notes for GCC):
8217 Put @anchor before @heading.
8218 * doc/gcc.texi (titlepage): Use @uref and http:// prefix for website.
8219 Use @email for email addresses.
8221 2013-10-01 Jeff Law <law@redhat.com>
8223 * tree-ssa-threadedge.c (thread_across_edge): Make path a pointer to
8224 a vec. Only delete the path if we create one without successfully
8225 registering a jump thread.
8226 * tree-ssa-threadupdate.h (register_jump_thread): Pass in path vector
8228 * tree-ssa-threadupdate.c (threaded_edges): Remove. No longer used
8229 (paths): New vector of jump threading paths.
8230 (THREAD_TARGET, THREAD_TARGET2): Remove accessor macros.
8231 (THREAD_PATH): New accessor macro for the entire thread path.
8232 (lookup_redirection_data): Get intermediate and final outgoing edge
8233 from the thread path.
8234 (create_edge_and_update_destination_phis): Copy the threading path.
8235 (ssa_fix_duplicate_block_edges): Get edges and block types from the
8236 jump threading path.
8237 (ssa_redirect_edges): Get edges and block types from the jump threading
8238 path. Free the path vector.
8239 (thread_block): Get edges from the jump threading path. Look at the
8240 entire path to see if we thread to a loop exit. If we cancel a jump
8241 thread request, then free the path vector.
8242 (thread_single_edge): Get edges and block types from the jump threading
8243 path. Free the path vector.
8244 (thread_through_loop_header): Get edges and block types from the jump
8245 threading path. Free the path vector.
8246 (mark_threaded_blocks): Iterate over the vector of paths and store
8247 the path on the appropriate edge. Get edges and block types from the
8248 jump threading path.
8249 (mark_threaded_blocks): Get edges and block types from the jump
8250 threading path. Free the path vector.
8251 (thread_through_all_blocks): Use the vector of paths rather than
8252 a vector of 3-edge sets.
8253 (register_jump_thread): Accept pointer to a path vector rather
8254 than the path vector itself. Store the path vector for later use.
8257 2013-10-01 Jakub Jelinek <jakub@redhat.com>
8258 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
8261 * config/s390/s390.c (s390_split_branches): Modify check for table
8263 (s390_chunkify_start): Rearrange table jump insn check in order to
8264 deal with compare and branch insns correctly.
8266 2013-10-01 Kugan Vivekanandarajah <kuganv@linaro.org>
8270 2013-04-05 Greta Yorsh <Greta.Yorsh@arm.com>
8271 * config/arm/arm.md (arm_ashldi3_1bit): define_insn into
8272 define_insn_and_split.
8273 (arm_ashrdi3_1bit,arm_lshrdi3_1bit): Likewise.
8274 (shiftsi3_compare): New pattern.
8276 * config/arm/unspecs.md (UNSPEC_RRX): New.
8278 2013-10-01 Alan Modra <amodra@gmail.com>
8280 * stmt.c (expand_asm_operands): Revert part of 2013-09-24 special
8281 casing inout operands.
8283 2013-10-01 Richard Biener <rguenther@suse.de>
8285 PR tree-optimization/58553
8286 * tree-loop-distribution.c (struct partition_s): Add niter member.
8287 (classify_partition): Populate niter member for the partition
8288 and properly identify whether the relevant store happens before
8289 or after the loop exit.
8290 (generate_memset_builtin): Use niter member from the partition.
8291 (generate_memcpy_builtin): Likewise.
8293 2013-09-30 Richard Sandiford <rdsandiford@googlemail.com>
8295 * vec.h (vec_prefix, vec): Prefix member names with "m_".
8296 * vec.c (vec_prefix::calculate_allocation): Update accordingly.
8298 2013-09-30 Richard Sandiford <rdsandiford@googlemail.com>
8300 * basic-block.h (edge_list): Prefix member names with "m_".
8301 * context.h (context): Likewise.
8302 * domwalk.h (dom_walker): Likewise.
8303 * gengtype-state.c (s_expr_writer, state_writer): Likewise.
8304 * graphite-sese-to-poly.c (sese_dom_walker): Likewise.
8305 * hash-table.h (hash_table): Likewise.
8306 * machmode.h (bit_field_mode_iterator): Likewise.
8307 * pass_manager.h (pass_list): Likewise.
8308 * tree-into-ssa.c (mark_def_dom_walker): Likewise.
8309 * tree-pass.h (pass_data): Likewise.
8310 * tree-ssa-dom.c (dom_opt_dom_walker): Likewise.
8311 * tree-ssa-phiopt.c (nontrapping_dom_walker): Likewise,
8312 * tree-ssa-uncprop.c (uncprop_dom_walker): Likewise.
8313 * asan.c (pass_data_asan): Update accordingly.
8314 * cfganal.c (control_dependences::find_control_dependence): Likewise.
8315 (control_dependences::control_dependences): Likewise.
8316 (control_dependences::~control_dependences): Likewise.
8317 (control_dependences::~control_dependences): Likewise.
8318 (control_dependences::get_edges_dependent_on): Likewise.
8319 * cgraphbuild.c (pass_data_rebuild_cgraph_edges::clone): Likewise.
8320 (pass_data_remove_cgraph_callee_edges::clone): Likewise.
8321 * context.c (gcc::context::context): Likewise.
8322 * cprop.c (pass_rtl_cprop::clone): Likewise.
8323 * domwalk.c (dom_walker::walk): Likewise.
8324 * ipa-inline-analysis.c (pass_inline_parameters::clone): Likewise.
8325 * ipa-pure-const.c (pass_local_pure_const::clone): Likewise.
8326 * mode-switching.c (pass_mode_switching::clone): Likewise.
8327 * passes.c (opt_pass::opt_pass): Likewise.
8328 (pass_manager::pass_manager): Likewise.
8329 * predict.c (pass_strip_predict_hints::clone): Likewise.
8330 * recog.c (pass_data pass_data_peephole2::clone): Likewise.
8331 (pass_split_all_insns::clone): Likewise.
8332 * stor-layout.c (bit_field_mode_iterator::bit_field_mode_iterator):
8334 (bit_field_mode_iterator::next_mode): Likewise.
8335 (bit_field_mode_iterator::prefer_smaller_modes): Likewise.
8336 * tree-cfg.c (pass_split_crit_edges::clone): Likewise.
8337 * tree-cfgcleanup.c (pass_merge_phi::clone): Likewise.
8338 * tree-complex.c (pass_lower_complex::clone): Likewise.
8339 * tree-eh.c (pass_cleanup_eh::clone): Likewise.
8340 * tree-object-size.c (pass_object_sizes::clone): Likewise.
8341 * tree-optimize.c (pass_fixup_cfg::clone): Likewise.
8342 * tree-ssa-ccp.c (pass_data_ccp::clone): Likewise.
8343 (pass_fold_builtins::clone): Likewise.
8344 * tree-ssa-copy.c (pass_data_copy_prop::clone): Likewise.
8345 * tree-ssa-copyrename.c (pass_rename_ssa_copies::clone): Likewise.
8346 * tree-ssa-dce.c (pass_dce::clone, pass_dce_loop::clone): Likewise.
8347 (pass_cd_dce::clone): Likewise.
8348 * tree-ssa-dom.c (pass_dominator::clone): Likewise.
8349 (pass_phi_only_cprop::clone): Likewise.
8350 * tree-ssa-dse.c (pass_dse::clone): Likewise.
8351 * tree-ssa-forwprop.c (pass_forwprop::clone): Likewise.
8352 * tree-ssa-loop.c (pass_lim::clone): Likewise.
8353 * tree-ssa-phiopt.c (pass_phiopt::clone): Likewise.
8354 * tree-ssa-pre.c (pass_fre::clone): Likewise.
8355 * tree-ssa-reassoc.c (pass_reassoc::clone): Likewise.
8356 * tree-ssa-uninit.c (pass_late_warn_uninitialized::clone): Likewise.
8357 * tree-tailcall.c (pass_tail_recursion::clone): Likewise.
8358 * tree-vect-generic.c (pass_lower_vector_ssa::clone): Likewise.
8359 * tree-vrp.c (pass_vrp::clone): Likewise.
8360 * tsan.c (pass_tsan::clone): Likewise.
8362 2013-09-30 Jakub Jelinek <jakub@redhat.com>
8365 * fold-const.c (tree_unary_nonnegative_warnv_p): Use
8366 INTEGRAL_TYPE_P (t) instead of TREE_CODE (t) == INTEGER_TYPE.
8369 * fold-const.c (fold_ternary_loc): For A < 0 : <sign bit of A> : 0
8370 optimization, punt if sign_bit_p looked through any zero extension.
8372 2013-09-30 Teresa Johnson <tejohnson@google.com>
8374 * tree-ssa-threadupdate.c (ssa_fix_duplicate_block_edges):
8375 Update redirected out edge count in joiner case.
8376 (ssa_redirect_edges): Common the joiner and non-joiner cases
8377 so that joiner case gets profile updates.
8379 2013-09-30 Richard Biener <rguenther@suse.de>
8381 PR tree-optimization/58554
8382 * tree-loop-distribution.c (classify_partition): Require
8383 unconditionally executed stores for memcpy and memset recognition.
8384 (tree_loop_distribution): Calculate dominance info.
8386 2013-09-30 Venkataramanan Kumar <venkataramanan.kumar@linaro.org>
8388 * config/aarch64/aarch64.h (MCOUNT_NAME): Define.
8389 (NO_PROFILE_COUNTERS): Likewise.
8390 (PROFILE_HOOK): Likewise.
8391 (FUNCTION_PROFILER): Likewise.
8392 * config/aarch64/aarch64.c (aarch64_function_profiler): Remove.
8394 2013-09-30 Iain Sandoe <iain@codesourcery.com>
8396 * config/rs6000/darwin.md (load_macho_picbase_si): Wrap machopic
8397 calls and defines in TARGET_MACHO conditional.
8398 (load_macho_picbase_di): Likewise.
8399 (reload_macho_picbase): Likewise.
8400 (reload_macho_picbase_si): Likewise.
8401 (reload_macho_picbase_di): Likewise.
8402 (nonlocal_goto_receiver): Likewise.
8404 2013-09-30 Nick Clifton <nickc@redhat.com>
8406 * config/msp430/msp430.c (msp430x_names): New array. Lists MCUs
8407 that use the MSP430X ISA.
8408 (msp430_option_override): Scan -mmcu command line option for any
8409 MCU name that supports the MSP430X ISA.
8410 * config/msp430/t-msp430 (MULTILIB_MATCHES): Add matches for known
8411 -mmcu options which enable the MSP430X ISA.
8413 2013-09-30 Richard Biener <rguenther@suse.de>
8416 * tree-cfg.c (make_abnormal_goto_edges): Skip debug statements
8417 before looking for setjmp-like calls.
8419 2013-09-29 Iain Sandoe <iain@codesourcery.com>
8422 * config/darwin-protos.h (machopic_get_function_picbase): New.
8423 * config/darwin.c (machopic_get_function_picbase): New.
8424 * config/rs6000/darwin.md (load_macho_picbase_si): Update picbase
8425 label for a new func. (load_macho_picbase_di): Likewise.
8426 (reload_macho_picbase): New expand.
8427 (reload_macho_picbase_si): New insn.
8428 (reload_macho_picbase_di): New insn.
8429 (nonlocal_goto_receiver): New define and split.
8430 * config/rs6000/rs6000.md (unspec enum): Add UNSPEC_RELD_MPIC.
8431 (unspecv enum): Add UNSPECV_NLGR.
8433 2013-09-29 Iain Sandoe <iain@codesourcery.com>
8435 * config/rs6000/rs6000.c (rs6000_init_dwarf_reg_sizes_extra): Ensure
8436 that altivec registers are correctly sized on Darwin.
8438 2013-09-29 Iain Sandoe <iain@codesourcery.com>
8440 * config/t-darwin (darwin.o, darwin-c.o, darwin-f.o,
8441 darwin-driver.o): Use COMPILE and POSTCOMPILE.
8442 * config/x-darwin (host-darwin.o): Likewise.
8443 * config/i386/x-darwin (host-i386-darwin.o): Likewise.
8444 * config/rs6000/x-darwin (host-ppc-darwin.o): Likewise.
8445 * config/rs6000/x-darwin64 (host-ppc64-darwin.o): Likewise.
8447 2013-09-29 Uros Bizjak <ubizjak@gmail.com>
8449 * doc/invoke.texi: Fix usage of @tie{} command.
8451 2013-09-29 Eric Botcazou <ebotcazou@adacore.com>
8453 * config/sparc/sync.md: Add peephole for consecutive memory barriers.
8455 2013-09-28 Jan Hubicka <jh@suse.cz>
8457 * config/i386/x86-tune.def: Add documentation for each of the options;
8460 2013-09-28 Jan Hubicka <jh@suse.cz>
8462 * x86-tune.def (X86_TUNE_SSE_UNALIGNED_LOAD_OPTIMAL): Enable for
8464 (X86_TUNE_SSE_UNALIGNED_STORE_OPTIMAL): Likewise.
8465 (X86_TUNE_FOUR_JUMP_LIMIT): Drop for generic and buldozer.
8466 (X86_TUNE_PAD_RETURNS): Drop for buldozer chips.
8467 (X86_TUNE_AVOID_VECTOR_DECODE): Drop for generic.
8468 (X86_TUNE_REASSOC_FP_TO_PARALLEL): Enable for generic.
8470 2013-09-28 Richard Sandiford <rdsandiford@googlemail.com>
8472 * alloc-pool.c, asan.c, auto-inc-dec.c, basic-block.h, bb-reorder.c,
8473 bitmap.c, bitmap.h, bt-load.c, builtins.c, calls.c, cfgcleanup.c,
8474 cfgexpand.c, cfghooks.c, cfgloop.c, cfgloopmanip.c, cfgrtl.c, cgraph.c,
8475 cgraph.h, cgraphbuild.c, cgraphclones.c, cgraphunit.c, collect2.c,
8476 combine-stack-adj.c, combine.c, compare-elim.c, context.c, context.h,
8477 cprop.c, cse.c, cselib.c, dbxout.c, dce.c, defaults.h, df-core.c,
8478 df-problems.c, df-scan.c, df.h, diagnostic.c, double-int.c, dse.c,
8479 dumpfile.c, dwarf2asm.c, dwarf2cfi.c, dwarf2out.c, emit-rtl.c,
8480 errors.c, except.c, expmed.c, expr.c, file-find.c, final.c,
8481 fixed-value.c, fold-const.c, function.c, fwprop.c, gcc-ar.c, gcc.c,
8482 gcov-io.c, gcov-io.h, gcov.c, gcse.c, genattr-common.c, genattr.c,
8483 genattrtab.c, genautomata.c, genconfig.c, genemit.c, genextract.c,
8484 genflags.c, gengenrtl.c, gengtype-state.c, gengtype.c, genmodes.c,
8485 genopinit.c, genoutput.c, genpeep.c, genpreds.c, genrecog.c,
8486 gensupport.c, ggc-common.c, ggc-page.c, gimple-fold.c, gimple-low.c,
8487 gimple-pretty-print.c, gimple-ssa-strength-reduction.c, gimple.c,
8488 gimple.h, godump.c, graphite-clast-to-gimple.c,
8489 graphite-optimize-isl.c, graphite-poly.h, graphite-sese-to-poly.c,
8490 graphite.c, haifa-sched.c, hash-table.c, hash-table.h, hwint.c,
8491 hwint.h, ifcvt.c, incpath.c, init-regs.c, input.h, intl.c, intl.h,
8492 ipa-cp.c, ipa-devirt.c, ipa-inline-analysis.c, ipa-inline.c,
8493 ipa-profile.c, ipa-pure-const.c, ipa-reference.c, ipa-split.c,
8494 ipa-utils.c, ipa.c, ira-build.c, ira.c, jump.c, loop-doloop.c,
8495 loop-init.c, loop-invariant.c, loop-iv.c, lower-subreg.c, lto-cgraph.c,
8496 lto-streamer-in.c, lto-streamer-out.c, lto-wrapper.c, mcf.c,
8497 mode-switching.c, modulo-sched.c, omp-low.c, optabs.c, opts.c,
8498 pass_manager.h, passes.c, plugin.c, postreload-gcse.c, postreload.c,
8499 predict.c, prefix.c, pretty-print.c, print-rtl.c, print-tree.c,
8500 profile.c, read-md.c, real.c, real.h, recog.c, ree.c, reg-stack.c,
8501 regcprop.c, reginfo.c, regmove.c, regrename.c, regs.h, regstat.c,
8502 reload1.c, reorg.c, rtl.c, rtl.h, rtlanal.c, sbitmap.c, sched-rgn.c,
8503 sdbout.c, sel-sched-ir.c, sel-sched.c, sparseset.c, stack-ptr-mod.c,
8504 statistics.c, stmt.c, stor-layout.c, store-motion.c, streamer-hooks.h,
8505 system.h, target-hooks-macros.h, targhooks.c, targhooks.h, toplev.c,
8506 tracer.c, trans-mem.c, tree-browser.c, tree-call-cdce.c, tree-cfg.c,
8507 tree-cfgcleanup.c, tree-complex.c, tree-data-ref.c, tree-data-ref.h,
8508 tree-eh.c, tree-emutls.c, tree-flow.h, tree-if-conv.c, tree-into-ssa.c,
8509 tree-iterator.c, tree-loop-distribution.c, tree-mudflap.c,
8510 tree-nested.c, tree-nomudflap.c, tree-nrv.c, tree-object-size.c,
8511 tree-optimize.c, tree-pass.h, tree-pretty-print.c, tree-profile.c,
8512 tree-scalar-evolution.c, tree-sra.c, tree-ssa-ccp.c,
8513 tree-ssa-coalesce.c, tree-ssa-copy.c, tree-ssa-copyrename.c,
8514 tree-ssa-dce.c, tree-ssa-dom.c, tree-ssa-dse.c, tree-ssa-forwprop.c,
8515 tree-ssa-ifcombine.c, tree-ssa-live.c, tree-ssa-loop-ch.c,
8516 tree-ssa-loop-im.c, tree-ssa-loop-ivopts.c, tree-ssa-loop-prefetch.c,
8517 tree-ssa-loop.c, tree-ssa-math-opts.c, tree-ssa-operands.c,
8518 tree-ssa-phiopt.c, tree-ssa-phiprop.c, tree-ssa-pre.c,
8519 tree-ssa-reassoc.c, tree-ssa-sink.c, tree-ssa-strlen.c,
8520 tree-ssa-structalias.c, tree-ssa-threadedge.c, tree-ssa-threadupdate.c,
8521 tree-ssa-uncprop.c, tree-ssa-uninit.c, tree-ssa.c, tree-ssanames.c,
8522 tree-stdarg.c, tree-switch-conversion.c, tree-tailcall.c,
8523 tree-vect-data-refs.c, tree-vect-generic.c, tree-vect-loop-manip.c,
8524 tree-vect-stmts.c, tree-vectorizer.c, tree-vectorizer.h, tree-vrp.c,
8525 tree.c, tree.h, tsan.c, tsystem.h, value-prof.c, var-tracking.c,
8526 varasm.c, vec.h, vmsdbgout.c, vtable-verify.c, web.c: Add missing
8527 whitespace before "(".
8529 2013-09-28 Sandra Loosemore <sandra@codesourcery.com>
8531 * expr.h (extract_bit_field): Remove packedp parameter.
8532 * expmed.c (extract_fixed_bit_field): Remove packedp parameter
8533 from forward declaration.
8534 (store_split_bit_field): Remove packedp arg from calls to
8535 extract_fixed_bit_field.
8536 (extract_bit_field_1): Remove packedp parameter and packedp
8537 argument from recursive calls and calls to extract_fixed_bit_field.
8538 (extract_bit_field): Remove packedp parameter and corresponding
8539 arg to extract_bit_field_1.
8540 (extract_fixed_bit_field): Remove packedp parameter. Remove code
8542 (extract_split_bit_field): Remove packedp arg from call to
8543 extract_fixed_bit_field.
8544 * expr.c (emit_group_load_1): Adjust calls to extract_bit_field.
8545 (copy_blkmode_from_reg): Likewise.
8546 (copy_blkmode_to_reg): Likewise.
8547 (read_complex_part): Likewise.
8548 (store_field): Likewise.
8549 (expand_expr_real_1): Likewise.
8550 * calls.c (store_unaligned_arguments_into_pseudos): Adjust call
8551 to extract_bit_field.
8552 * config/tilegx/tilegx.c (tilegx_expand_unaligned_load): Adjust
8553 call to extract_bit_field.
8554 * config/tilepro/tilepro.c (tilepro_expand_unaligned_load): Adjust
8555 call to extract_bit_field.
8556 * doc/invoke.texi (Code Gen Options): Remove mention of warnings
8557 and special packedp behavior from -fstrict-volatile-bitfields
8560 2013-09-27 Jan-Benedict Glaw <jbglaw@lug-owl.de>
8562 * lra-eliminations.c (init_elim_table): Guard value_p.
8564 2013-09-27 Michael Meissner <meissner@linux.vnet.ibm.com>
8566 * config/rs6000/rs6000.c (rs6000_hard_regno_mode_ok): Allow
8567 DFmode, DImode, and SFmode in the upper VSX registers based on the
8568 -mupper-regs-{df,sf} flags. Fix wu constraint to be ALTIVEC_REGS
8569 if -mpower8-vector. Combine -mvsx-timode handling with the rest
8570 of the VSX register handling.
8572 * config/rs6000/rs6000.md (f32_lv): Use %x0 for VSX regsters.
8574 (zero_extendsidi2_lfiwzx): Add support for loading into the
8575 Altivec registers with -mpower8-vector. Use wu/wv constraints to
8576 only do VSX memory options on Altivec registers.
8577 (extendsidi2_lfiwax): Likewise.
8578 (extendsfdf2_fpr): Likewise.
8579 (mov<mode>_hardfloat, SF/SD modes): Likewise.
8580 (mov<mode>_hardfloat32, DF/DD modes): Likewise.
8581 (mov<mode>_hardfloat64, DF/DD modes): Likewise.
8582 (movdi_internal64): Likewise.
8584 2013-09-27 Xinliang David Li <davidxl@google.com>
8586 * opts.c (finish_options): Adjust parameters
8587 according to vect cost model.
8588 (common_handle_option): Set dynamic vect cost
8590 targhooks.c (default_add_stmt_cost): Compute stmt cost
8592 * tree-vect-loop.c (vect_estimate_min_profitable_iters):
8593 Use helper function.
8594 * tree-vectorizer.h (unlimited_cost_model): New function.
8595 * tree-vect-slp.c (vect_slp_analyze_bb_1): Use helper function.
8596 * tree-vect-data-refs.c (vect_peeling_hash_insert): Use helper
8598 (vect_enhance_data_refs_alignment): Ditto.
8599 * flag-types.h: New enum.
8600 * common/config/i386/i386-common.c (ix86_option_init_struct):
8601 No need to initialize vect_cost_model flag.
8602 * config/i386/i386.c (ix86_add_stmt_cost): Compute stmt cost
8605 2013-09-27 Diego Novillo <dnovillo@google.com>
8607 * gimple.h (enum ssa_mode): Remove.
8609 2013-09-27 Paulo Matos <pmatos@broadcom.com>
8611 * cfgloop.h (number_of_loops): Fix typo in check for null.
8613 2013-09-27 Jakub Jelinek <jakub@redhat.com>
8616 * tree-cfg.c (move_sese_region_to_fn): Also move loops that
8617 are children of outermost saved_cfun's loop, and set it up to
8618 be moved to dest_cfun's outermost loop. Fix up num_nodes adjustments
8619 if loop != loop0 and SESE region contains bbs that belong to loop0.
8621 2013-09-27 Richard Sandiford <rdsandiford@googlemail.com>
8623 * rtlanal.c (must_be_base_p, must_be_index_p): Delete.
8624 (binary_scale_code_p, get_base_term, get_index_term): New functions.
8625 (set_address_segment, set_address_base, set_address_index)
8626 (set_address_disp): Accept the argument unconditionally.
8627 (baseness): Remove must_be_base_p and must_be_index_p checks.
8628 (decompose_normal_address): Classify as much as possible in the
8631 2013-09-27 Richard Sandiford <rdsandiford@googlemail.com>
8633 * cse.c (count_reg_usage): Handle INT_LIST.
8634 * lra-eliminations.c (lra_eliminate_regs_1): Likewise.
8635 * reginfo.c (reg_scan_mark_refs): Likewise.
8636 * reload1.c (eliminate_regs_1): Likewise.
8638 2013-09-27 Iain Sandoe <iain@codesourcery.com>
8641 * rtlanal.c (lsb_bitfield_op_p): Make both parts of the comparison
8644 2013-09-27 Richard Biener <rguenther@suse.de>
8646 PR tree-optimization/58459
8647 * tree-ssa-forwprop.c (forward_propagate_addr_expr): Remove
8648 restriction not propagating into loops.
8650 2013-09-26 Florian Weimer <fw@deneb.enyo.de>
8652 * tree-ssa.h (walk_use_def_chains_fn, walk_use_def_chains): Delete.
8653 * tree-ssa.c (walk_use_def_chains_1, walk_use_def_chains): Delete.
8654 * doc/tree-ssa.texi (Walking use-def chains): Delete.
8656 2013-09-26 Richard Biener <rguenther@suse.de>
8658 * tree-into-ssa.c (rewrite_into_ssa): Make more SSA names to anonymous.
8660 2013-09-26 Richard Biener <rguenther@suse.de>
8662 * alias.h (component_uses_parent_alias_set): Rename to ...
8663 (component_uses_parent_alias_set_from): ... this.
8664 * alias.c (component_uses_parent_alias_set): Rename to ...
8665 (component_uses_parent_alias_set_from): ... this and return
8667 (reference_alias_ptr_type_1): Use the result from
8668 component_uses_parent_alias_set_from instead of stripping
8669 components one at a time.
8670 * emit-rtl.c (set_mem_attributes_minus_bitpos): Adjust.
8672 2013-09-26 Andrew MacLeod <amacleod@redhat.com>
8674 * tree-ssa-live.h (find_replaceable_exprs, dump_replaceable_exprs):
8675 Move prototypes to...
8676 * tree-ssa-ter.h: New File. Move prototypes here.
8677 * tree-flow.h (stmt_is_replaceable_p): Remove prototype.
8678 * tree-outof-ssa.h: New. Rename ssaexpand.h, include tree-ssa-ter.h.
8679 * tree-outof-ssa.c (ssa_is_replaceable_p): New. Refactor common bits
8680 from is_replaceable_p.
8681 * tree-ssa-ter.c (is_replaceable_p, stmt_is_replaceable_p): Delete.
8682 (ter_is_replaceable_p): New. Use new refactored ssa_is_replaceable_p.
8683 (process_replaceable): Use ter_is_replaceable_p.
8684 (find_replaceable_in_bb): Use ter_is_replaceable_p.
8685 * expr.c (stmt_is_replaceable_p): Relocate from tree-ssa-ter.c. Use
8686 newly refactored ssa_is_replaceable_p.
8687 * cfgexpand.c: Include tree-outof-ssa.h.
8688 * ssaexpand.h: Delete.
8690 2013-09-26 Andrew MacLeod <amacleod@redhat.com>
8692 * gimple.c (gimple_replace_lhs): Move to tree-ssa.c and rename.
8693 (struct count_ptr_d, count_ptr_derefs, count_uses_and_derefs): Move to
8695 (create_gimple_tmp): Delete.
8696 (get_expr_type, build_assign, build_type_cast): Move to...
8697 * gimple-builder.c: New File.
8698 (get_expr_type): Relocate from gimple.c.
8699 (build_assign, build_type_cast): Change to only create ssanames.
8700 * gimple.h: Move prototypes to...
8701 * gimple-builder.h: New File. Here.
8702 * tree-ssa.h: And here.
8703 * tree-ssa.c (struct count_ptr_d, count_ptr_derefs,
8704 count_uses_and_derefs): Relocate from gimple.c.
8705 (gimple_replace_ssa_lhs): Renamed gimple_replace_ssa from gimple.c
8706 * tree-ssa-reassoc.c (repropagate_negates): Use gimple_replace_ssa_lhs.
8707 * tree-ssa-math-opts (execute_cse_reciprocals): Use
8708 gimple_replace_ssa_lhs.
8709 * asan.c: Include gimple-builder.h.
8710 * Makefile.in: Add gimple-builder.o.
8712 2013-09-26 Richard Biener <rguenther@suse.de>
8714 * tree-ssa-live.c (var_map_base_init): Handle SSA names with
8715 DECL_IGNORED_P base VAR_DECLs like anonymous SSA names.
8716 (loe_visit_block): Use gcc_checking_assert.
8717 * tree-ssa-coalesce.c (create_outofssa_var_map): Use
8718 gimple_assign_ssa_name_copy_p.
8719 (gimple_can_coalesce_p): Adjust according to the var_map_base_init
8722 2013-09-26 David Edelsohn <dje.gcc@gmail.com>
8724 * config/rs6000/t-rs6000 (rs6000.o): Remove.
8725 (rs6000-c.o): Use COMPILE and POSTCOMPILE.
8727 2013-09-26 Richard Biener <rguenther@suse.de>
8729 PR tree-optimization/58539
8730 * tree-vect-loop.c (vect_create_epilog_for_reduction): Honor
8731 the fact that debug statements are not taking part in loop-closed
8734 2013-09-26 Nick Clifton <nickc@redhat.com>
8736 * config/msp430/msp430.c (msp430_expand_epilogue): Fix compile
8737 time warning message.
8738 (msp430_print_operand_raw): Delete unused letter parameter.
8739 (TARGET_PRINT_OPERAND_ADDRESS): Define.
8740 (msp430_print_operand_address): New function.
8741 (msp430_print_operand): Move address printing code from here to
8743 * config/msp430/msp430.md (movsipsi2): Add comment in generated
8745 (zero_extendpsisi2): Likewise.
8746 (extendpsisi2): New pattern.
8747 (andneghi3): New pattern.
8749 2013-09-26 Yvan Roux <yvan.roux@linaro.org>
8751 * config/aarch64/aarch64.opt (mlra): New option.
8752 * config/aarch64/aarch64.c (aarch64_lra_p): New function.
8753 (TARGET_LRA_P): Define.
8755 2013-09-26 Eric Botcazou <ebotcazou@adacore.com>
8757 * expr.c (expand_assignment): Remove obsolete comment.
8759 2013-09-25 Jeff Law <law@redhat.com>
8761 * tree-flow.h (thread_through_all_blocks): Prototype moved into
8762 tree-ssa-threadupdate.h.
8763 (register_jump_thread): Similarly.
8764 * tree-ssa-threadupdate.h: New header file.
8765 * tree-ssa-dom.c: Include tree-ssa-threadupdate.h.
8766 * tree-vrp.c: Likewise.
8767 * tree-ssa-threadedge.c: Include tree-ssa-threadupdate.h.
8768 (thread_around_empty_blocks): Change type of path vector argument to
8769 an edge,type pair from just an edge. Initialize both elements when
8770 appending to a jump threading path. Tweak references to elements
8772 (thread_across_edge): Similarly. Release memory for the elements
8774 * tree-ssa-threadupdate.c: Include tree-ssa-threadupdate.h.
8775 (dump_jump_thread_path): New function broken out from
8776 register_jump_thread.
8777 (register_jump_thread): Use dump_jump_thread_path. Change type of
8778 path vector entries. Search the path for NULL edges and dump
8779 the path if one is found. Tweak the conversion of path to 3-edge
8780 form to use the block copy type information embedded in the path.
8782 2013-09-25 Yvan Roux <yvan.roux@linaro.org>
8784 * lra.c (update_inc_notes): Remove all REG_DEAD and REG_UNUSED notes.
8786 2013-09-25 Yvan Roux <yvan.roux@linaro.org>
8787 Vladimir Makarov <vmakarov@redhat.com>
8789 * rtlanal.c (lsb_bitfield_op_p): New predicate for bitfield operations
8790 from the least significant bit.
8791 (strip_address_mutations): Add bitfield operations handling.
8792 (must_be_index_p): Add shifting and rotate operations handling.
8793 (set_address_base): Use must_be_base_p predicate.
8794 (set_address_index): Use must_be_index_p predicate.
8796 2013-09-25 Alexander Ivchenko <alexander.ivchenko@intel.com>
8797 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
8798 Sergey Lega <sergey.s.lega@intel.com>
8799 Anna Tikhonova <anna.tikhonova@intel.com>
8800 Ilya Tocar <ilya.tocar@intel.com>
8801 Andrey Turetskiy <andrey.turetskiy@intel.com>
8802 Ilya Verbin <ilya.verbin@intel.com>
8803 Kirill Yukhin <kirill.yukhin@intel.com>
8804 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
8806 * config/i386/i386.c (ix86_avx256_split_vector_move_misalign):
8808 (ix86_expand_vector_move_misalign): Support new unaligned load and
8809 stores and use new names.
8810 (CODE_FOR_sse2_storedqu): Rename to ...
8811 (CODE_FOR_sse2_storedquv16qi): ... this.
8812 (CODE_FOR_sse2_loaddqu): Rename to ...
8813 (CODE_FOR_sse2_loaddquv16qi): ... this.
8814 (CODE_FOR_avx_loaddqu256): Rename to ...
8815 (CODE_FOR_avx_loaddquv32qi): ... this.
8816 (CODE_FOR_avx_storedqu256): Rename to ...
8817 (CODE_FOR_avx_storedquv32qi): ... this.
8818 * config/i386/i386.md (fpint_logic): New.
8819 * config/i386/sse.md (VMOVE): Extend for AVX512.
8823 (VI_UNALIGNED_LOADSTORE): Ditto.
8824 (sse2_avx_avx512f): Ditto.
8825 (sse2_avx2): Extend for AVX512.
8826 (sse4_1_avx2): Ditto.
8827 (avx2_avx512f): New.
8828 (sse): Extend for AVX512.
8831 (avxsizesuffix): Ditto.
8832 (sseintvecmode): Ditto.
8834 (<sse>_loadu<ssemodesuffix><avxsizesuffix>): Ditto.
8835 (<sse>_storeu<ssemodesuffix><avxsizesuffix>): Ditto.
8836 (<sse2>_loaddqu<avxsizesuffix>): Extend for AVX512 and rename to ...
8837 (<sse2_avx_avx512f>_loaddqu<mode>): ... this.
8838 (<sse2>_storedqu<avxsizesuffix>): Extend for AVX512 and rename to ...
8839 (<sse2_avx_avx512f>_storedqu<mode): ... this.
8840 (<sse>_movnt<mode>): Replace constraint "x" with "v".
8841 (STORENT_MODE): Extend for AVX512.
8842 (*absneg<mode>2): Replace constraint "x" with "v".
8843 (*mul<mode>3): Ditto.
8844 (*ieee_smin<mode>3): Ditto.
8845 (*ieee_smax<mode>3): Ditto.
8846 (avx_cmp<mode>3): Replace VF with VF_128_256.
8847 (*<sse>_maskcmp<mode>3_comm): Ditto.
8848 (<sse>_maskcmp<mode>3): Ditto.
8849 (<sse>_andnot<mode>3): Extend for AVX512.
8850 (<code><mode>3, anylogic): Replace VF with VF_128_256.
8851 (<code><mode>3, fpint_logic): New.
8852 (*<code><mode>3): Extend for AVX512.
8853 (avx512flogicsuff): New.
8854 (avx512f_<logic><mode>): Ditto.
8855 (<sse>_movmsk<ssemodesuffix><avxsizesuffix>): Replace VF with
8857 (<sse4_1>_blend<ssemodesuffix><avxsizesuffix>): Ditto.
8858 (<sse4_1>_blendv<ssemodesuffix><avxsizesuffix>): Ditto.
8859 (<sse4_1>_dp<ssemodesuffix><avxsizesuffix>): Ditto.
8860 (avx_vtest<ssemodesuffix><avxsizesuffix>): Ditto.
8861 (<sse4_1>_round<ssemodesuffix><avxsizesuffix>): Ditto.
8862 (xop_vpermil2<mode>3): Ditto.
8863 (*avx_vpermilp<mode>): Extend for AVX512 and rename to ...
8864 (*<sse2_avx_avx512f>_vpermilp<mode>): ... this.
8865 (avx_vpermilvar<mode>3): Extend for AVX512 and rename to ...
8866 (<sse2_avx_avx512f>_vpermilvar<mode>3): ... this.
8868 2013-09-25 Tom Tromey <tromey@redhat.com>
8870 * Makefile.in (PARTITION_H, LTO_SYMTAB_H, COMMON_TARGET_DEF_H)
8871 (RTL_ERROR_H, TRANS_MEM_H, COVERAGE_H, DEMANGLE_H, ALIAS_H)
8872 (SCHED_INT_H, SEL_SCHED_IR_H, SEL_SCHED_DUMP_H, VALTRACK_H, DDG_H)
8873 (GGC_INTERNAL_H, DECNUM_H, BACKTRACE_H, MKDEPS_H, TREE_HASHER_H)
8874 (TREE_SSA_LIVE_H, SSAEXPAND_H, DWARF2OUT_H, SCEV_H, OMEGA_H)
8875 (TREE_DATA_REF_H, IRA_INT_H, LRA_INT_H, DBGCNT_H, DATA_STREAMER_H)
8876 (GIMPLE_STREAMER_H, TREE_STREAMER_H, STREAMER_HOOKS_H)
8877 (TREE_VECTORIZER_H, IPA_INLINE_H, GSTAB_H, LIBFUNCS_H)
8878 (GRAPHITE_HTAB_H): Remove.
8880 2013-09-25 Tom Tromey <tromey@redhat.com>
8882 * config/mcore/t-mcore (CROSS_FLOAT_H): Remove.
8884 2013-09-25 Tom Tromey <tromey@redhat.com>
8886 * config/t-glibc (glibc-c.o): Use COMPILE and POSTCOMPILE.
8888 2013-09-25 Tom Tromey <tromey@redhat.com>
8890 * config/i386/t-i386 (i386.o): Remove.
8891 (i386-c.o): Use COMPILE and POSTCOMPILE.
8893 2013-09-25 Tom Tromey <tromey@redhat.com>
8895 * Makefile.in ($(out_object_file)): Use COMPILE and POSTCOMPILE.
8897 2013-09-25 Tom Tromey <tromey@redhat.com>
8899 * Makefile.in (graph.o, sbitmap.o, sparseset.o, gcc-ar.o)
8900 (gcc-ranlib.o, gcc-nm.o, collect2.o, collect2-aix.o, tlink.o)
8901 (lto-wrapper.o, default-c.o, attribs.o, incpath.o, prefix.o)
8902 (gcc.o, options.o, options-save.o, version.o, gtype-desc.o)
8903 (trans-mem.o, ggc-common.o, ggc-page.o, ggc-none.o, stringpool.o)
8904 (convert.o, double-int.o, lto-compress.o, data-streamer-in.o)
8905 (data-streamer-out.o, data-streamer.o, gimple-streamer-in.o)
8906 (gimple-streamer-out.o, tree-streamer.o, tree-streamer-in.o)
8907 (tree-streamer-out.o, streamer-hooks.o, lto-cgraph.o)
8908 (lto-streamer-in.o, lto-streamer-out.o, lto-section-in.o)
8909 (lto-section-out.o, lto-opts.o, lto-streamer.o, langhooks.o)
8910 (test-dump.o, tree.o, tree-dump.o, tree-inline.o, print-tree.o)
8911 (stor-layout.o, asan.o, tsan.o, ubsan.o, tree-ssa-tail-merge.o)
8912 (tree-ssa-structalias.o, tree-ssa-uninit.o, tree-ssa.o)
8913 (tree-into-ssa.o, tree-ssa-ter.o, tree-ssa-coalesce.o)
8914 (tree-outof-ssa.o, tree-ssa-dse.o, tree-ssa-forwprop.o)
8915 (tree-ssa-phiprop.o, tree-ssa-ifcombine.o, tree-ssa-phiopt.o)
8916 (tree-nrv.o, tree-ssa-copy.o, tree-ssa-propagate.o)
8917 (tree-ssa-dom.o, tree-ssa-uncprop.o, tree-ssa-threadedge.o)
8918 (tree-ssa-threadupdate.o, tree-ssanames.o, tree-phinodes.o)
8919 (domwalk.o, tree-ssa-live.o, tree-ssa-copyrename.o)
8920 (tree-ssa-pre.o, tree-ssa-sccvn.o)
8921 (gimple-ssa-strength-reduction.o, tree-vrp.o, tree-cfg.o)
8922 (tree-cfgcleanup.o, tree-tailcall.o, tree-ssa-sink.o)
8923 (tree-nested.o, tree-if-conv.o, tree-iterator.o, tree-dfa.o)
8924 (tree-ssa-operands.o, tree-eh.o, tree-ssa-loop.o)
8925 (tree-ssa-loop-unswitch.o, tree-ssa-address.o)
8926 (tree-ssa-loop-niter.o, tree-ssa-loop-ivcanon.o)
8927 (tree-ssa-loop-ch.o, tree-ssa-loop-prefetch.o, tree-predcom.o)
8928 (tree-ssa-loop-ivopts.o, tree-affine.o, tree-ssa-loop-manip.o)
8929 (tree-ssa-loop-im.o, tree-ssa-math-opts.o, tree-ssa-alias.o)
8930 (tree-ssa-reassoc.o, tree-optimize.o, gimplify.o)
8931 (gimple-iterator.o, gimple-fold.o, gimple-low.o, omp-low.o)
8932 (tree-browser.o, omega.o, tree-chrec.o, tree-scalar-evolution.o)
8933 (tree-data-ref.o, sese.o, graphite.o, graphite-blocking.o)
8934 (graphite-clast-to-gimple.o, graphite-dependences.o)
8935 (graphite-interchange.o, graphite-poly.o)
8936 (graphite-scop-detection.o, graphite-sese-to-poly.o)
8937 (graphite-optimize-isl.o, tree-vect-loop.o)
8938 (tree-vect-loop-manip.o, tree-vect-patterns.o, tree-vect-slp.o)
8939 (tree-vect-stmts.o, tree-vect-data-refs.o, tree-vectorizer.o)
8940 (vtable-verify.o, tree-loop-distribution.o, tree-parloops.o)
8941 (tree-stdarg.o, tree-object-size.o, internal-fn.o, gimple.o)
8942 (gimple-pretty-print.o, tree-mudflap.o, tree-nomudflap.o)
8943 (tree-pretty-print.o, tree-diagnostic.o, fold-const.o)
8944 (diagnostic.o, diagnostic-color.o, opts.o, opts-global.o)
8945 (opts-common.o, targhooks.o, common/common-targhooks.o, input.o)
8946 (toplev.o, hwint.o, passes.o, plugin.o, main.o, host-default.o)
8947 (rtl-error.o, rtl.o, print-rtl.o, rtlanal.o, varasm.o, function.o)
8948 (statistics.o, stmt.o, except.o, expr.o, dojump.o, builtins.o)
8949 (calls.o, expmed.o, explow.o, optabs.o, dbxout.o, debug.o)
8950 (sdbout.o, dwarf2out.o, dwarf2cfi.o, dwarf2asm.o, vmsdbgout.o)
8951 (xcoffout.o, godump.o, emit-rtl.o, real.o, realmpfr.o, dfp.o)
8952 (fixed-value.o, jump.o, simplify-rtx.o, symtab.o, cgraph.o)
8953 (cgraphunit.o, cgraphclones.o, cgraphbuild.o, varpool.o, ipa.o)
8954 (ipa-profile.o, ipa-devirt.o, ipa-prop.o, ipa-ref.o, ipa-cp.o)
8955 (ipa-split.o, ipa-inline.o, ipa-inline-analysis.o)
8956 (ipa-inline-transform.o, ipa-utils.o, ipa-reference.o)
8957 (ipa-pure-const.o, coverage.o, cselib.o, cse.o, dce.o, dumpfile.o)
8958 (dse.o, fwprop.o, web.o, ree.o, cprop.o, gcse.o, store-motion.o)
8959 (resource.o, lcm.o, mode-switching.o, tree-ssa-dce.o)
8960 (tree-call-cdce.o, tree-ssa-ccp.o, tree-ssa-strlen.o, tree-sra.o)
8961 (tree-switch-conversion.o, tree-complex.o, tree-emutls.o)
8962 (tree-vect-generic.o, df-core.o, df-problems.o, df-scan.o)
8963 (regstat.o, valtrack.o, var-tracking.o, profile.o, mcf.o)
8964 (tree-profile.o, value-prof.o, loop-doloop.o, alloc-pool.o)
8965 (auto-inc-dec.o, cfg.o, cfghooks.o, cfgexpand.o, cfgrtl.o)
8966 (cfganal.o, cfgbuild.o, cfgcleanup.o, cfgloop.o, cfgloopanal.o)
8967 (graphds.o, loop-iv.o, loop-invariant.o, cfgloopmanip.o)
8968 (loop-init.o, loop-unswitch.o, loop-unroll.o, dominance.o)
8969 (et-forest.o, combine.o, reginfo.o, bitmap.o, vec.o, hash-table.o)
8970 (reload.o, reload1.o, rtlhooks.o, postreload.o, postreload-gcse.o)
8971 (caller-save.o, bt-load.o, reorg.o, alias.o, stack-ptr-mod.o)
8972 (init-regs.o, ira-build.o, ira-costs.o, ira-conflicts.o)
8973 (ira-color.o, ira-emit.o, ira-lives.o, ira.o, lra.o)
8974 (lra-assigns.o, lra-coalesce.o, lra-constraints.o)
8975 (lra-eliminations.o, lra-lives.o, lra-spills.o, regmove.o)
8976 (combine-stack-adj.o, compare-elim.o, ddg.o, modulo-sched.o)
8977 (haifa-sched.o, sched-deps.o, sched-rgn.o, sched-ebb.o)
8978 (sched-vis.o, sel-sched.o, sel-sched-dump.o, sel-sched-ir.o)
8979 (final.o, recog.o, reg-stack.o, sreal.o, predict.o, lists.o)
8980 (bb-reorder.o, tracer.o, timevar.o, regcprop.o, regrename.o)
8981 (ifcvt.o, params.o, pointer-set.o, hooks.o, pretty-print.o)
8982 (errors.o, dbgcnt.o, lower-subreg.o, target-globals.o)
8983 (hw-doloop.o, file-find.o, context.o, $(common_out_object_file))
8984 (insn-attrtab.o, insn-automata.o, insn-dfatab.o, insn-emit.o)
8985 (insn-enums.o, insn-extract.o, insn-latencytab.o, insn-modes.o)
8986 (insn-opinit.o, insn-output.o, insn-peep.o, insn-preds.o)
8987 (insn-recog.o, intl.o, cppbuiltin.o, cppdefault.o, gcov.o)
8988 (gcov-dump.o): Remove.
8989 (default-c.o): Use COMPILE and POSTCOMPILE.
8990 (CFLAGS-gcc.o): New variable.
8991 ($(common_out_object_file)): Use COMPILE and POSTCOMPILE.
8993 2013-09-25 Tom Tromey <tromey@redhat.com>
8995 * Makefile.in (c-family/cppspec.o, c-family/c-common.o)
8996 (c-family/c-cppbuiltin.o, c-family/c-dump.o, c-family/c-format.o)
8997 (c-family/c-gimplify.o, c-family/c-lex.o, c-family/c-omp.o)
8998 (c-family/c-opts.o, c-family/c-pch.o, c-family/c-ppoutput.o)
8999 (c-family/c-pragma.o, c-family/c-pretty-print.o)
9000 (c-family/c-semantics.o, c-family/c-ada-spec.o)
9001 (c-family/array-notation-common.o, c-family/stub-objc.o)
9002 (c-family/c-ubsan.o): Remove.
9004 2013-09-25 Tom Tromey <tromey@redhat.com>
9006 * Makefile.in (C_TREE_H): Reference c/c-tree.h.
9008 2013-09-25 Tom Tromey <tromey@redhat.com>
9010 * Makefile.in (DRIVER_DEFINES): Use $(and), not shell code,
9011 to add -DENABLE_SHARED_LIBGCC.
9012 (gcc.o): Don't use subshell.
9014 2013-09-25 Tom Tromey <tromey@redhat.com>
9016 * Makefile.in (OUTPUT_OPTION): Define as "-o $@".
9017 * configure.ac: Don't invoke AM_PROG_CC_C_O.
9018 (NO_MINUS_C_MINUS_O, OUTPUT_OPTION): Don't subst.
9019 * configure, config.in: Rebuild.
9021 2013-09-25 Tom Tromey <tromey@redhat.com>
9023 * Makefile.in (CCDEPMODE, DEPDIR, depcomp, COMPILE.base)
9024 (COMPILE, POSTCOMPILE): New variables.
9025 (.cc.o .c.o): Use COMPILE, POSTCOMPILE.
9026 (DEPFILES): New variable.
9027 Include ".Po" files.
9028 * configure.ac: Add checks for dependency checking.
9029 * configure, aclocal.m4: Regenerate.
9031 2013-09-25 Tom Tromey <tromey@redhat.com>
9033 * Makefile.in (ALL_HOST_BACKEND_OBJS): Add lto-wrapper.o.
9034 ($(ALL_HOST_OBJS)): Move order-only dependency to end of file.
9036 2013-09-25 Tom Tromey <tromey@redhat.com>
9038 * Makefile.in (generated_files): Add options.h,
9039 target-hooks-def.h, insn-opinit.h,
9040 common/common-target-hooks-def.h, pass-instances.def,
9041 c-family/c-target-hooks-def.h.
9043 2013-09-25 Jeff Law <law@redhat.com>
9045 * tree-ssa-threadedge.c (thread_across_edge): Use foo.last () rather
9046 than foo[foo.length () - 1] to access last member in a vec.
9047 * tree-ssa-threadupdate.c (register_jump_thread): Similarly.
9049 2013-09-25 Richard Biener <rguenther@suse.de>
9052 * tree.c (iterative_hash_expr): Remove MEM_REF special handling.
9054 2013-09-25 Jan Hubicka <jh@suse.cz>
9056 * cgraph.c (cgraph_resolve_speculation): Use semantical equivalency
9059 2013-09-25 Marek Polacek <polacek@redhat.com>
9062 * ubsan.c (ubsan_type_descriptor): Handle IDENTIFIER_NODEs
9063 when determining the type name.
9065 2013-09-24 Oleg Endo <olegendo@gcc.gnu.org>
9067 * config/sh/sh.md: Fix formatting.
9069 2013-09-24 Xinliang David Li <davidxl@google.com>
9071 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment): Check
9072 max peel iterations parameter.
9073 * param.def: New parameter.
9074 * doc/invoke.texi: Document New parameter.
9076 2013-09-24 Christophe Lyon <christophe.lyon@linaro.org>
9078 * gimple-pretty-print.c: Various whitespace tweaks.
9079 * tree-core.h: Likewise.
9080 * tree-pretty-print.c: Likewise.
9081 * tree-ssa-alias.c: Likewise.
9082 * tree-ssa-copy.c: Likewise.
9083 * tree-ssanames.c: Likewise.
9084 * tree-ssanames.h: Likewise.
9085 * tree-vrp.c: Likewise.
9087 2013-09-24 Alan Modra <amodra@gmail.com>
9091 * stmt.c (expand_asm_operands): Call expand_expr with EXPAND_MEMORY
9092 for output operands that disallow regs. Don't use EXPAND_WRITE on
9095 2013-09-24 Richard Biener <rguenther@suse.de>
9098 * tree.c (reference_alias_ptr_type): Move ...
9099 * alias.c (reference_alias_ptr_type): ... here and implement
9100 in terms of the new reference_alias_ptr_type_1.
9101 (ref_all_alias_ptr_type_p): New helper.
9102 (get_deref_alias_set_1): Drop flag_strict_aliasing here,
9103 use ref_all_alias_ptr_type_p.
9104 (get_deref_alias_set): Add flag_strict_aliasing check here.
9105 (reference_alias_ptr_type_1): New function, split out from ...
9106 (get_alias_set): ... here.
9107 (alias_ptr_types_compatible_p): New function.
9108 * alias.h (reference_alias_ptr_type): Declare.
9109 (alias_ptr_types_compatible_p): Likewise.
9110 * tree.h (reference_alias_ptr_type): Remove.
9111 * fold-const.c (operand_equal_p): Use alias_ptr_types_compatible_p
9112 to compare MEM_REF alias types.
9114 2013-09-24 Richard Biener <rguenther@suse.de>
9116 * tree-vrp.c (vrp_finalize): Check for SSA name presence.
9118 2013-09-23 Michael Meissner <meissner@linux.vnet.ibm.com>
9120 * config/rs6000/rs6000.c (rs6000_vector_reload): Delete, combine
9121 reload helper function arrays into a single array reg_addr.
9122 (reload_fpr_gpr): Likewise.
9123 (reload_gpr_vsx): Likewise.
9124 (reload_vsx_gpr): Likewise.
9125 (struct rs6000_reg_addr): Likewise.
9126 (reg_addr): Likewise.
9127 (rs6000_debug_reg_global): Change rs6000_vector_reload,
9128 reload_fpr_gpr, reload_gpr_vsx, reload_vsx_gpr uses to reg_addr.
9129 (rs6000_init_hard_regno_mode_ok): Likewise.
9130 (rs6000_secondary_reload_direct_move): Likewise.
9131 (rs6000_secondary_reload): Likewise.
9133 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Add new
9134 constraints: wu, ww, and wy. Repurpose wv constraint added during
9135 power8 changes. Put wg constraint in alphabetical order.
9137 * config/rs6000/rs6000.opt (-mvsx-scalar-float): New debug switch
9138 for future work to add ISA 2.07 VSX single precision support.
9139 (-mvsx-scalar-double): Change default from -1 to 1, update
9140 documentation comment.
9141 (-mvsx-scalar-memory): Rename debug switch to -mupper-regs-df.
9142 (-mupper-regs-df): New debug switch to control whether DF values
9143 can go in the traditional Altivec registers.
9144 (-mupper-regs-sf): New debug switch to control whether SF values
9145 can go in the traditional Altivec registers.
9147 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Print wu, ww,
9149 (rs6000_init_hard_regno_mode_ok): Use ssize_t instead of int for
9150 loop variables. Rename -mvsx-scalar-memory to -mupper-regs-df.
9151 Add new constraints, wu/ww/wy. Repurpose wv constraint.
9152 (rs6000_debug_legitimate_address_p): Print if we are running
9153 before, during, or after reload.
9154 (rs6000_secondary_reload): Add a comment.
9155 (rs6000_opt_masks): Add -mupper-regs-df, -mupper-regs-sf.
9157 * config/rs6000/constraints.md (wa constraint): Sort w<x>
9158 constraints. Update documentation string.
9159 (wd constraint): Likewise.
9160 (wf constraint): Likewise.
9161 (wg constraint): Likewise.
9162 (wn constraint): Likewise.
9163 (ws constraint): Likewise.
9164 (wt constraint): Likewise.
9165 (wx constraint): Likewise.
9166 (wz constraint): Likewise.
9167 (wu constraint): New constraint for ISA 2.07 SFmode scalar
9169 (ww constraint): Likewise.
9170 (wy constraint): Likewise.
9171 (wv constraint): Repurpose ISA 2.07 constraint that we did not use
9172 in the previous submissions.
9173 * doc/md.texi (PowerPC and IBM RS6000): Likewise.
9175 2013-09-23 Richard Sandiford <rdsandiford@googlemail.com>
9177 * doc/rtl.texi (REG_NOTES): Say that int_list can also be used.
9178 (REG_BR_PROB): Say that the probability is stored in an int_list.
9179 * reg-notes.def: Update commentary to mention INT_LIST.
9180 * rtl.def (EXPR_LIST, INSN_LIST): Capitalize comments.
9181 (INT_LIST): New rtx.
9182 * rtl.h (add_int_reg_note, add_shallow_copy_of_reg_note): Declare.
9183 * rtlanal.c (int_reg_note_p): New function.
9184 (alloc_reg_note): Assert that the note does not have an int argument.
9185 (add_int_reg_note, add_shallow_copy_of_reg_note): New functions.
9186 * combine.c (distribute_notes): Use add_shallow_copy_of_rtx.
9187 * cse.c (cse_process_notes_1): Expect REG_EQUAL to be an EXPR_LIST
9188 rather than an INSN_LIST. Handle INT_LIST.
9189 * ifcvt.c (cond_exec_process_insns): Take the probability as an int
9190 rather than an rtx. Use gen_rtx_INT_LIST to create a REG_BR_PROB note.
9191 (cond_exec_process_if_block): Use XINT to extract REG_BR_PROB values.
9192 Manipulate them as ints rather than rtxes.
9193 * reg-stack.c (subst_asm_stack_regs): Only handle EXPR_LIST notes.
9194 * regmove.c (copy_src_to_dest): Likewise.
9195 * sched-vis.c (print_insn_with_notes): Handle INT_LIST.
9197 * config/i386/winnt.c (i386_pe_seh_unwind_emit): Sink pat assignment
9198 into the cases that need it.
9199 * config/arm/arm.c (arm_unwind_emit): Likewise.
9201 * asan.c (asan_clear_shadow): Use add_int_reg_note for REG_BR_PROB.
9202 * emit-rtl.c (try_split, emit_copy_of_insn_after): Likewise.
9203 * loop-doloop.c (add_test, doloop_modify): Likewise.
9204 * loop-unswitch.c (compare_and_jump_seq): Likewise.
9205 * optabs.c (emit_cmp_and_jump_insn_1): Likewise.
9206 * predict.c (combine_predictions_for_insn): Likewise.
9207 * print-rtl.c (print_rtx): Handle INT_LIST.
9208 * config/aarch64/aarch64.c (aarch64_emit_unlikely_jump): Likewise.
9209 * config/alpha/alpha.c (emit_unlikely_jump): Likewise.
9210 * config/arm/arm.c (emit_unlikely_jump): Likewise.
9211 * config/i386/i386.c (ix86_expand_split_stack_prologue): Likewise.
9212 (ix86_split_fp_branch, predict_jump): Likewise.
9213 * config/rs6000/rs6000.c (emit_unlikely_jump): Likewise.
9214 * config/sh/sh.c (expand_cbranchsi4): Likewise.
9215 * config/spu/spu.c (ea_load_store_inline): Likewise.
9217 * cfgbuild.c (compute_outgoing_frequencies): Use XINT to access the
9218 value of a REG_BR_PROB note.
9219 * cfgrtl.c (force_nonfallthru_and_redirect): Likewise.
9220 (update_br_prob_note, rtl_verify_edges, purge_dead_edges): Likewise.
9221 * emit-rtl.c (try_split): Likewise.
9222 * predict.c (br_prob_note_reliable_p): Likewise.
9223 (invert_br_probabilities, combine_predictions_for_insn): Likewise.
9224 * reorg.c (mostly_true_jump): Likewise.
9225 * config/bfin/bfin.c (cbranch_predicted_taken_p): Likewise.
9226 * config/frv/frv.c (frv_print_operand_jump_hint): Likewise.
9227 * config/i386/i386.c (ix86_print_operand): Likewise.
9228 * config/ia64/ia64.c (ia64_print_operand): Likewise.
9229 * config/mmix/mmix.c (mmix_print_operand): Likewise.
9230 * config/rs6000/rs6000.c (output_cbranch): Likewise.
9231 * config/s390/s390.c (s390_expand_tbegin): Likewise.
9232 * config/sh/sh.c (sh_print_operand, sh_adjust_cost): Likewise.
9233 * config/sparc/sparc.c (output_cbranch): Likewise.
9234 * config/spu/spu.c (get_branch_target): Likewise.
9235 * config/tilegx/tilegx.c (cbranch_predicted_p): Likewise.
9236 * config/tilepro/tilepro.c (cbranch_predicted_p): Likewise.
9238 2013-09-23 Jan Hubicka <jh@suse.cz>
9240 * ipa-cp.c (ipa_get_indirect_edge_target_1): Add sanity check
9242 * ipa-utils.h (possible_polymorphic_call_target_p): New function.
9243 * ipa-devirt.c (possible_polymorphic_call_target_p): Be tolerant
9245 * gimple-fold.c: Include ipa-utils.h and gimple-pretty-print.h
9246 (gimple_fold_call): Dump inconsistent devirtualizations; add
9247 sanity check for type based devirtualizations.
9248 * ipa-prop.c: Include ipa-utils.h
9249 (ipa_intraprocedural_devirtualization): Add sanity check.
9250 (try_make_edge_direct_virtual_call): Likewise.
9252 2013-09-23 Eric Botcazou <ebotcazou@adacore.com>
9254 * tree-ssa-ccp.c (insert_clobber_before_stack_restore): Recurse on copy
9255 assignment statements.
9257 2013-09-23 Kugan Vivekanandarajah <kuganv@linaro.org>
9259 * gimple-pretty-print.c (dump_ssaname_info): New function.
9260 (dump_gimple_phi): Call it.
9261 (pp_gimple_stmt_1): Likewise.
9262 * tree-core.h (tree_ssa_name): New union ssa_name_info_type field.
9263 (range_info_def): Declare.
9264 * tree-pretty-print.c (pp_double_int): New function.
9265 (dump_generic_node): Call it.
9266 * tree-pretty-print.h (pp_double_int): Declare.
9267 * tree-ssa-alias.c (dump_alias_info): Check pointer type.
9268 * tree-ssanames.h (range_info_def): New structure.
9269 (value_range_type): Move definition here.
9270 (set_range_info, value_range_type, duplicate_ssa_name_range_info):
9272 * tree-ssanames.c (make_ssa_name_fn): Check pointer type at
9274 (set_range_info): New function.
9275 (get_range_info): Likewise.
9276 (duplicate_ssa_name_range_info): Likewise.
9277 (duplicate_ssa_name_fn): Check pointer type and call
9278 duplicate_ssa_name_range_info.
9279 * tree-ssa-copy.c (fini_copy_prop): Likewise.
9280 * tree-vrp.c (value_range_type): Remove definition, now in
9282 (vrp_finalize): Call set_range_info to update value range of SSA_NAMEs.
9283 * tree.h (SSA_NAME_PTR_INFO): Macro changed to access via union.
9284 (SSA_NAME_RANGE_INFO): New macro.
9286 2013-09-23 Richard Biener <rguenther@suse.de>
9288 PR tree-optimization/58464
9289 * tree-ssa-pre.c (phi_trans_lookup): Remove.
9290 (phi_trans_add): Change to add conditionally on being not present.
9291 (phi_translate_1): Remove recursion detection here.
9292 (phi_translate): Pre-seed the cache with NULL to catch
9293 recursion here in a more generic way.
9294 (bitmap_find_leader): Adjust comment.
9295 (get_representative_for): Dump value-numbers.
9296 (create_expression_by_pieces): Likewise.
9297 (insert_into_preds_of_block): Likewise.
9299 2013-09-23 Christian Bruel <christian.bruel@st.com>
9302 * config/sh/sh.md (movsf_ie): Allow fpul_operand.
9303 * config/sh/predicate.md (arith_reg_operand): Disallow FPUL_REG.
9305 2013-09-23 James Greenhalgh <james.greenhalgh@arm.com>
9308 2013-09-20 Renlin Li <renlin.li@arm.com>
9310 * config/aarch64/aarch64.c (aarch64_expand_prologue): Use
9312 (aarch64_expand_epilogue): Likewise.
9313 (aarch64_legitimize_reload_address): Likewise.
9315 2013-09-22 Eric Botcazou <ebotcazou@adacore.com>
9317 * gimplify.c (gimplify_asm_expr): Reset the TREE_CHAIN of clobbers to
9318 NULL_TREE before pushing them onto the vector. Likewise for labels.
9320 2013-09-21 Eric Botcazou <ebotcazou@adacore.com>
9322 * config/ia64/predicates.md (ia64_cbranch_operator): Accept unordered
9323 comparison operators when -fno-trapping-math is in effect.
9324 * config/ia64/ia64.c (ia64_expand_compare): Add support for unordered
9325 comparison operators in TFmode and assert that unsupported operators
9327 (ia64_print_operand): Likewise.
9329 2013-09-21 Jan Hubicka <jh@suse.cz>
9331 * x86-tune.def (partial_reg_stall): Disable for CoreI7 and newer.
9332 (sse_typeless_stores): Enable for core
9333 (sse_load0_by_pxor): Likewise.
9334 (four_jump_limit): Disable for core.
9335 (pad_returns): Likewise.
9336 (avoid_vector_decode): Likewise.
9337 (fuse_cmp_and_branch): Enable for cores.
9338 * i386.c (x86_accumulate_outgoing_args): Disable for cores.
9340 2013-09-20 John David Anglin <danglin@gcc.gnu.org>
9343 * config/pa/pa.c (pa_option_override): Disable auto increment and
9344 decrement instructions until reload is completed.
9346 * config/pa/pa-linux.h (TARGET_OS_CPP_BUILTINS): Define
9347 __GCC_HAVE_SYNC_COMPARE_AND_SWAP_1, __GCC_HAVE_SYNC_COMPARE_AND_SWAP_2,
9348 and __GCC_HAVE_SYNC_COMPARE_AND_SWAP_4.
9350 2013-09-20 DJ Delorie <dj@redhat.com>
9351 Nick Clifton <nickc@redhat.com>
9353 * config/rl78/rl78.c: Various whitespace and comment tweaks.
9354 (need_to_save): Save bank 0 on interrupts.
9355 (characterize_address): Strip far address wrappers.
9356 (rl78_as_legitimate_address): Likewise.
9357 (transcode_memory_rtx): Likewise.
9358 (rl78_peep_movhi_p): Disable this peephole after devirt.
9359 (rl78_propogate_register_origins): Forget all origins when a
9361 * config/rl78/rl78-virt.md: Various whitespace tweaks.
9362 * config/rl78/rl78-real.md: Various whitespace tweaks. Additional
9364 * config/rl78/rl78.md (sel_rb): Disable for G10 just in case.
9365 * config/rl78/rl78-expand.md (movqi): Check for subregs of consts.
9366 * config/rl78/rl78.h (LINK_SPEC): Pass -gc-sections unless
9368 * config/rl78/constraints.md: Various whitespace and paren tweaks.
9370 2013-09-20 John David Anglin <danglin@gcc.gnu.org>
9372 * config/pa/pa.md: In "scc" insn patterns, change output template to
9373 handle const0_rtx in reg_or_0_operand operands.
9375 2013-09-20 Martin Husemann <martin@NetBSD.org>
9378 * config/vax/vax.c (vax_output_int_move): Use D format specifier.
9379 * config/vax/vax.md (ashldi3, <unnamed>): Ditto.
9381 2013-09-20 Richard Biener <rguenther@suse.de>
9384 * tree-scalar-evolution.c (struct scev_info_str): Shrink by
9385 remembering SSA name version and block index.
9386 (new_scev_info_str): Adjust.
9387 (hash_scev_info): Likewise. Also hash the block index.
9388 (eq_scev_info): Adjust.
9389 (find_var_scev_info): Likewise.
9390 (struct instantiate_cache_entry): Remove.
9391 (struct instantiate_cache_type): Use a htab to map name, block
9393 (instantiate_cache_type::~instantiate_cache_type): Adjust.
9394 (get_instantiated_value_entry): Likewise.
9395 (hash_idx_scev_info, eq_idx_scev_info): New functions.
9396 (instantiate_scev_name): Adjust.
9398 2013-09-20 Jeff Law <law@redhat.com>
9400 * tree-ssa-dom.c (record_temporary_equivalences): Add comment.
9402 2013-09-20 Yufeng Zhang <yufeng.zhang@arm.com>
9404 * config/aarch64/aarch64-builtins.c (aarch64_simd_expand_args):
9405 Call aarch64_simd_expand_args to update op[argc].
9407 2013-09-20 Basile Starynkevitch <basile@starynkevitch.net>
9409 * plugin.c (parse_plugin_arg_opt): Accept equal sign inside
9412 2013-09-20 Basile Starynkevitch <basile@starynkevitch.net>
9414 * gengtype.c (file_rules): Added rule for *.cc files.
9415 (get_output_file_with_visibility): Give fatal message when no
9418 2013-09-20 Renlin Li <renlin.li@arm.com>
9420 * config/aarch64/aarch64.c (aarch64_expand_prologue): Use plus_constant.
9421 (aarch64_expand_epilogue): Likewise.
9422 (aarch64_legitimize_reload_address): Likewise.
9424 2013-09-20 Bernd Edlinger <bernd.edlinger@hotmail.de>
9427 * expr.c (expand_assignment): Remove misalignp code path.
9429 2013-09-20 Marek Polacek <polacek@redhat.com>
9432 * ubsan.c (get_ubsan_type_info_for_type): Use TYPE_SIZE instead of
9433 TYPE_PRECISION. Add asserts.
9435 2013-09-20 Richard Biener <rguenther@suse.de>
9437 PR tree-optimization/58453
9438 * tree-loop-distribution.c (distribute_loop): Apply the cost
9439 model for -ftree-loop-distribute-patterns, too.
9441 2013-09-20 Richard Biener <rguenther@suse.de>
9444 * tree-chrec.h (build_polynomial_chrec): Use gcc_checking_assert,
9445 make type comparison less strict.
9447 2013-09-20 Alan Modra <amodra@gmail.com>
9449 * configure: Regenerate.
9450 * aclocal.m4: Regenerate.
9452 2013-09-20 Marek Polacek <polacek@redhat.com>
9455 * doc/extend.texi: Document that attribute used is meant to be used
9456 on variables with static storage duration.
9458 2013-09-19 Jakub Jelinek <jakub@redhat.com>
9460 PR tree-optimization/58472
9461 * tree-vect-stmts.c (vectorizable_store, vectorizable_load): For
9462 simd_lane_access set inv_p = false.
9463 * omp-low.c (lower_rec_input_clauses): Set TREE_NO_WARNING on
9464 the simduid magic VAR_DECL.
9466 2013-09-19 Jan Hubicka <jh@suse.cz>
9468 * i386.c (generic_memcpy, generic_memset): Fix 32bit template.
9470 2013-09-17 Jeff Law <law@redhat.com>
9472 * tree-ssa-dom.c (record_temporary_equivalences): New function
9473 split out of dom_opt_dom_walker::after_dom_children.
9474 (dom_opt_dom_walker::thread_across_edge): Move common code
9475 in here from dom_opt_dom_walker::after_dom_children.
9476 (dom_opt_dom_walker::after_dom_children): Corresponding simplifictions.
9478 2013-09-19 Jan Hubicka <jh@suse.cz>
9480 * i386.h (TARGET_GENERIC32, TARGET_GENERIC64): Remove.
9481 (TARGET_GENERIC): Use PROCESOR_GENERIC
9482 (enum processor_type): Unify generic32 and 64.
9483 * i386.md (cpu): Likewise.
9484 * x86-tune.def (use_leave): Enable for generic32.
9485 (avoid_vector_decode, slow_imul_imm32_mem, slow_imul_imm8): Likewise.
9486 * athlon.md: Change generic64 to generic in all occurences.
9487 * i386-c.c (ix86_target_macros_internal): Unify generic64 and 32.
9488 (ix86_target_macros_internal): Likewise.
9489 * driver-i386.c (host_detect_local_cpu): Likewise.
9490 * i386.c (generic64_memcpy, generic64_memset, generic64_cost): Rename
9492 (generic_memcpy, generic_memset, generic_cost): This one.
9493 (generic32_memcpy, generic32_memset, generic32_cost): Remove.
9494 (m_GENERIC32, m_GENERIC64): Remove.
9495 (m_GENERIC): Turn into one flag.
9496 (processor_target): Unify generic tunnings.
9497 (ix86_option_override_internal): Replace generic32/64 by generic.
9498 (ix86_issue_rate): Likewise.
9499 (ix86_adjust_cost): Likewise.
9501 2013-09-19 Jan Hubicka <jh@suse.cz>
9503 * cgraph.c (cgraph_create_edge_1): Avoid uninitialized read
9504 of speculative flag.
9506 2013-09-19 Jakub Jelinek <jakub@redhat.com>
9508 * omp-low.c (expand_omp_sections): Always pass len - 1 to
9509 GOMP_sections_start, even if !exit_reachable.
9511 2013-09-18 Vladimir Makarov <vmakarov@redhat.com>
9513 * lra-constraints.c (need_for_all_save_p): Use macro
9514 HARD_REGNO_CALL_PART_CLOBBERED.
9515 * lra-lives.c (check_pseudos_live_through_calls): Use the macro to
9516 set up pseudo conflict hard regs.
9518 2013-09-18 Michael Meissner <meissner@linux.vnet.ibm.com>
9521 * config/rs6000/paired.md (movmisalignv2sf): Fix to allow memory
9524 2013-09-18 Vladimir Makarov <vmakarov@redhat.com>
9526 PR rtl-optimization/58438
9527 * lra.c (lra): Clear lra_optional_reload_pseudos in upper loop.
9528 * lra-constraints.c (undo_optional_reloads): Keep optional reloads
9529 from previous subpasses.
9531 2013-09-18 Richard Earnshaw <rearnsha@arm.com>
9533 * arm.c (arm_get_frame_offsets): Validate architecture supports
9534 LDRD/STRD before accepting the tuning preference.
9535 (arm_expand_prologue): Likewise.
9536 (arm_expand_epilogue): Likewise.
9538 2013-09-18 Richard Biener <rguenther@suse.de>
9540 PR tree-optimization/58417
9541 * tree-chrec.c (chrec_fold_plus_1): Assert that we do not
9542 have chrecs with symbols defined in the loop as operands.
9543 (chrec_fold_multiply): Likewise.
9544 * tree-scalar-evolution.c (interpret_rhs_expr): Instantiate
9545 parameters before folding binary operations.
9546 (struct instantiate_cache_entry_hasher): Remove.
9547 (struct instantiate_cache_type): Use a pointer-map.
9548 (instantiate_cache_type::instantiate_cache_type): New function.
9549 (instantiate_cache_type::get): Likewise.
9550 (instantiate_cache_type::set): Likewise.
9551 (instantiate_cache_type::~instantiate_cache_type): Adjust.
9552 (get_instantiated_value_entry): Likewise.
9553 (global_cache): New global.
9554 (instantiate_scev_r, instantiate_scev_poly, instantiate_scev_binary,
9555 instantiate_array_ref, instantiate_scev_convert, instantiate_scev_3,
9556 instantiate_scev_2, instantiate_scev_1): Do not pass along cache.
9557 (instantiate_scev_name): Adjust.
9558 (instantiate_scev): Construct global instead of local cache.
9559 (resolve_mixers): Likewise.
9561 2013-09-18 Daniel Morris <danielm@ecoscentric.com>
9562 Paolo Carlini <paolo.carlini@oracle.com>
9565 * doc/implement-cxx.texi: Fix references to the C++ standards.
9567 2013-09-18 Jakub Jelinek <jakub@redhat.com>
9569 * omp-low.c (copy_var_decl): Copy DECL_ATTRIBUTES.
9570 * tree-vect-data-refs.c (vect_analyze_data_refs): For
9571 simd_lane_access drs, update also DR_ALIGNED_TO.
9573 2013-09-18 Marek Polacek <polacek@redhat.com>
9576 * doc/extend.texi: Document no_sanitize_undefined attribute.
9577 * builtins.c (fold_builtin_0): Don't sanitize function if it has the
9578 no_sanitize_undefined attribute.
9580 2013-09-18 Nick Clifton <nickc@redhat.com>
9582 * config/msp430/msp430.h (ASM_SPEC): Pass -md on to the assembler.
9583 (ASM_DECLARE_FUNCTION_NAME): Define.
9585 2013-09-17 Trevor Saunders <tsaunders@mozilla.com>
9587 * compare-elim.c (find_comparison_dom_walker): New class
9588 (find_comparisons_in_bb): Rename to
9589 find_comparison_dom_walker::before_dom_children
9590 (find_comparisons): Adjust
9591 * domwalk.c (walk_dominator_tree): Rename to dom_walker::walk, and
9593 (init_walk_dominator_tree, fini_walk_dominator_tree): Remove
9594 * domwalk.h (dom_walk_data): Convert it To a class dom_walker.
9595 (init_walk_dominator_tree): Remove declaration.
9596 (fini_walk_dominator_tree): Remove declaration.
9597 * fwprop.c (single_def_use_dom_walker): New class
9598 (single_def_use_enter_block): Convert to
9599 single_def_use_dom_walker::before_dom_children.
9600 (single_def_use_leave_block): Convert to
9601 single_def_use_dom_walker::after_dom_children.
9602 (build_single_def_use_links): Adjust.
9603 * gimple-ssa-strength-reduction.c (find_candidates_dom_walker): New
9605 (find_candidates_in_block): Convert to
9606 find_candidates_dom_walker::before_dom_children.
9607 (execute_strength_reduction): Adjust.
9608 * graphite-sese-to-poly.c (struct bsc, build_sese_conditions): Remove.
9609 (sese_dom_walker): New class.
9610 (sese_dom_walker::sese_dom_walker): New constructor.
9611 (sese_dom_walker::~sese_dom_walker): New destructor.
9612 (build_sese_conditions_before): Convert to
9613 sese_dom_walker::before_dom_children.
9614 (build_sese_conditions_after): Convert to
9615 sese_dom_walker::after_dom_children.
9616 (build_poly_scop): Adjust
9617 * tree-into-ssa.c (rewrite_dom_walker): New class
9618 (rewrite_enter_block): Convert to
9619 rewrite_dom_walker::before_dom_children.
9620 (rewrite_leave_block): Convert to
9621 rewrite_dom_walker::after_dom_children.
9622 (rewrite_update_dom_walker): New class.
9623 (rewrite_update_enter_block): Convert to
9624 rewrite_update_dom_walker::before_dom_children.
9625 (rewrite_update_leave_block): Convert to
9626 rewrite_update_dom_walker::after_dom_children.
9627 (rewrite_blocks, rewrite_into_ssa): Adjust.
9628 (mark_def_dom_walker): New class.
9629 (mark_def_dom_walker::mark_def_dom_walker): New constructor.
9630 (mark_def_dom_walker::~mark_def_dom_walker): New destructor.
9631 (mark_def_sites_blocks): Convert to
9632 mark_def_dom_walker::before_dom_children.
9633 (mark_def_site_blocks): Remove.
9634 * tree-ssa-dom.c (dom_opt_dom_walker): New class.
9635 (tree_ssa_dominator_optimize): Adjust.
9636 (dom_thread_across_edge): Convert to method
9637 dom_opt_dom_walker::thread_across_edge.
9638 (dom_opt_enter_block): Convert to member function
9639 dom_opt_dom_walker::before_dom_children.
9640 (dom_opt_leave_block): Convert to member function
9641 dom_opt_dom_walker::after_dom_children.
9642 * tree-ssa-dse.c (dse_dom_walker): New class.
9643 (dse_enter_block): Convert to member function
9644 dse_dom_walker::before_dom_children.
9645 (tree_ssa_dse): Adjust.
9646 * tree-ssa-loop-im.c (invariantness_dom_walker): New class.
9647 (determine_invariantness_stmt): Convert to method
9648 invariantness_dom_walker::before_dom_children.
9649 (determine_invariantness): Remove
9650 (move_computations_dom_walker): New class.
9651 (move_computations_stmt): Convert to method
9652 move_computations_dom_walker::before_dom_children.
9653 (move_computations, tree_ssa_lim): Adjust.
9654 * tree-ssa-phiopt.c (nontrapping_dom_walker): New class.
9655 (nt_init_block): Convert to method
9656 notrappping_dom_walker::before_dom_children.
9657 (nt_fini_block): Convert to method
9658 method nontrapping_dom_walker::after_dom_children.
9659 (get_non_trapping): Adjust.
9660 * tree-ssa-pre.c (eliminate_dom_walker): New class.
9661 (eliminate_bb): Convert to method
9662 eliminate_dom_walker::before_dom_children.
9663 (eliminate_leave_block): Convert to method
9664 eliminate_dom_walker::after_dom_children.
9665 (eliminate): Adjust.
9666 * tree-ssa-strlen.c (strlen_dom_walker): New class.
9667 (strlen_enter_block): Convert to method
9668 strlen_dom_walker::before_dom_children.
9669 (strlen_leave_block): Convert to method
9670 method strlen_dom_walker::after_dom_children.
9671 (tree_ssa_strlen): Adjust.
9672 * tree-ssa-uncprop.c (uncprop_dom_walker): New class.
9673 (tree_ssa_uncprop): Adjust.
9674 (uncprop_leave_block): Convert to method
9675 uncprop_dom_walker::after_dom_children.
9676 (uncprop_leave_block): Convert to method
9677 uncprop_dom_walker::before_dom_children.
9679 2013-09-18 Bin Cheng <bin.cheng@arm.com>
9681 * config/arm/arm.c (thumb1_reorg): Search for flag setting insn before
9682 branch in same basic block. Check both src and dest of the move insn.
9684 2013-09-17 Nick Clifton <nickc@redhat.com>
9686 * config/rl78/rl78-real.md (bf): New pattern.
9688 * config/rl78/rl78.c (rl78_print_operand_1): Handle %B.
9689 (rl78_print_operand): Do not put a # before a %B.
9690 * config/rl78/rl78.opt: Tweak doc strings.
9692 2013-09-17 DJ Delorie <dj@redhat.com>
9694 * config/rl78/constraints.md (Wcv): Allow up to $r31.
9695 * config/rl78/rl78.c (rl78_asm_file_start: Likewise.
9696 (rl78_option_override): Likewise, if -mallregs.
9697 (is_virtual_register): Likewise.
9698 * config/rl78/rl78.h (reg_class): Extend VREGS to $r31.
9699 (REGNO_OK_FOR_BASE_P): Likewise.
9700 * config/rl78/rl78.opt (-mallregs): New.
9702 2013-09-17 Nick Clifton <nickc@redhat.com>
9704 * config/rl78/rl78.c (need_to_save): Change return type to bool.
9705 For interrupt functions: save all call clobbered registers if the
9706 interrupt handler is not a leaf function.
9707 (rl78_expand_prologue): Always recompute the frame information.
9708 For interrupt functions: only select bank 0 if one of the bank 0
9709 registers is going to be psuhed.
9711 2013-09-17 DJ Delorie <dj@redhat.com>
9713 * config/rl78/constraints.md: For each W* constraint, rename to C*
9714 and create a W* constraint that checks for an optional ES: prefix
9716 * config/rl78/rl78.md (UNS_ES_ADDR): New.
9717 (es_addr): New. Used to wrap far addresses.
9718 * config/rl78/rl78-protos.h (rl78_es_addr): New.
9719 (rl78_es_base): New.
9720 * config/rl78/rl78.c (rl78_as_legitimate_address): Accept "unspec"
9721 wrapped far addresses.
9722 (rl78_print_operand_1): Unwrap far addresses before processing.
9723 (rl78_lo16): Wrap far addresses in unspecs.
9724 (rl78_es_addr): New.
9725 (rl78_es_base): New.
9726 (insn_ok_now): Check for not-yet-wrapped far addresses.
9727 (transcode_memory_rtx): Properly re-wrap far addresses.
9729 2013-09-17 Sebastian Huber <sebastian.huber@embedded-brains.de>
9731 * config/sparc/t-rtems: Add leon3 multilibs.
9733 2013-09-17 Cong Hou <congh@google.com>
9735 * tree-vect-patterns.c (vect_recog_dot_prod_pattern): Fix a bug
9736 when checking the dot production pattern. The type of rhs operand
9737 of multiply is now checked correctly.
9739 2013-09-17 Jeff Law <law@redhat.com>
9741 * tree-ssa-dom.c (cprop_into_successor_phis): Also propagate
9742 edge implied equivalences into successor phis.
9743 * tree-ssa-threadupdate.c (phi_args_equal_on_edges): Moved into
9744 here from tree-ssa-threadedge.c.
9745 (mark_threaded_blocks): When threading through a joiner, if both
9746 successors of the joiner's clone reach the same block, verify the
9747 PHI arguments are equal. If not, cancel the jump threading request.
9748 * tree-ssa-threadedge.c (phi_args_equal_on_edges): Moved into
9749 tree-ssa-threadupdate.c
9750 (thread_across_edge): Don't check PHI argument equality when
9751 threading through joiner block here.
9753 2013-09-17 Andrew MacLeod <amacleod@redhat.com>
9755 * tree-flow.h (ssa_undefined_value_p): Remove prototype.
9756 * tree-ssa.c (ssa_undefined_value_p): Move pass independent parts here.
9757 (warn_uninit, warn_uninitialized_vars,
9758 execute_early_warn_uninitialized, make_pass_early_warn_uninitialized):
9759 Move to tree-ssa-uninit.c.
9760 * tree-ssa-uninit.c (ssa_undefined_value_p): Move to tree-ssa.c.
9761 (has_undefined_value_p): New. Pass dependant parts of
9762 ssa_undefined_value_p.
9763 (uninit_undefined_value_p): Use has_undefined_value_p.
9764 (warn_uninit, warn_uninitialized_vars,
9765 execute_early_warn_uninitialized, make_pass_early_warn_uninitialized):
9766 Move from tree-ssa.c.
9767 * tree-ssa.h: Adjust prototypes.
9769 2013-09-17 Jan Hubicka <jh@suse.cz>
9772 * cif-code.def (FUNCTION_NOT_OPTIMIZED): New CIF code.
9773 * ipa-inline.c (can_inline_edge_p): Do not downgrade
9774 FUNCTION_NOT_OPTIMIZED.
9775 * ipa-inline-analysis.c (compute_inline_parameters): Function
9776 not optimized is not inlinable unless it is alwaysinline.
9777 (inline_analyze_function): Force calls in not optimized
9778 function not inlinable.
9780 2013-09-17 Jan Hubicka <jh@suse.cz>
9783 * ipa-devirt.c (ipa_devirt): Be ready for symtab_nonoverwritable_alias
9785 * ipa.c (function_and_variable_visibility): Likewise.
9786 * ipa-profile.c (ipa_profile): Likewise.
9788 2013-09-17 Bernd Edlinger <bernd.edlinger@hotmail.de>
9791 * cgraph.c (cgraph_function_body_availability): Check for ifunc
9792 attribute, and don't inline the resolver in this case.
9794 2013-09-17 Teresa Johnson <tejohnson@google.com>
9796 * coverage.c (get_coverage_counts): Add missing newline.
9798 2013-09-17 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
9800 PR tree-optimization/58088
9801 * fold-const.c (mask_with_trailing_zeros): New function.
9802 (fold_binary_loc): Make sure we don't recurse infinitely
9803 when the X in (X & C1) | C2 is a tree of the form (Y * K1) & K2.
9804 Use mask_with_trailing_zeros where appropriate.
9806 2013-09-17 Yuri Rumyantsev <ysrumyan@gmail.com>
9808 * config/i386/i386.c (distance_agu_use_in_bb) : Proper initialization
9809 of 'prev' var to get better distance estimation.
9811 2013-09-17 Eric Botcazou <ebotcazou@adacore.com>
9813 * tree-inline.h (struct copy_body_data): Add transform_parameter.
9814 * tree-inline.c (is_parameter_of): New predicate.
9815 (remap_gimple_op_r): Do not propagate TREE_THIS_NOTRAP on MEM_REF if
9816 a parameter has been remapped.
9817 (copy_tree_body_r): Likewise on INDIRECT_REF and MEM_REF.
9818 (optimize_inline_calls): Initialize transform_parameter.
9819 (copy_gimple_seq_and_replace_locals): Likewise.
9820 (tree_function_versioning): Likewise.
9821 (maybe_inline_call_in_expr): Likewise.
9823 2013-09-17 Nick Clifton <nickc@redhat.com>
9825 * config/msp430/msp430-protos.h: Add prototypes for new functions.
9826 * config/msp430/msp430.c (msp430_preserve_reg_p): Add support for
9828 (is_attr_func): New function.
9829 (msp430_is_interrupt_func): New function.
9830 (is_naked_func): New function.
9831 (is_reentrant_func): New function.
9832 (is_critical_func): New function.
9833 (msp430_start_function): Add annotations for function attributes.
9834 (msp430_attr): New function.
9835 (msp430_attribute_table): New.
9836 (msp430_function_section): New function.
9837 (TARGET_ASM_FUNCTION_SECTION): Define.
9838 (msp430_builtin): New enum.
9839 (msp430_init_builtins): New function.
9840 (msp430_builtin_devl): New function.
9841 (msp430_expand_builtin): New function.
9842 (TARGET_INIT_BUILTINS): Define.
9843 (TARGET_EXPAND_BUILTINS): Define.
9844 (TARGET_BUILTIN_DECL): Define.
9845 (msp430_expand_prologue): Add support for naked, interrupt,
9846 critical and reentrant functions.
9847 (msp430_expand_epilogue): Likewise.
9848 (msp430_print_operand): Handle 'O' character.
9849 * config/msp430/msp430.h (TARGET_CPU_CPP_BUILTINS): Define
9851 * config/msp430/msp430.md (unspec): Add UNS_DINT, UNS_EINT,
9852 UNS_PUSH_INTR, UNS_POP_INTR, UNS_BIC_SR, UNS_BIS_SR.
9853 (pushm): Use a 'n' rather than an 'i' constraint.
9854 (msp_return): Add generation of the interrupt return instruction.
9855 (disable_interrupts): New pattern.
9856 (enable_interrupts): New pattern.
9857 (push_intr_state): New pattern.
9858 (pop_intr_state): New pattern.
9859 (bic_SR): New pattern.
9860 (bis_SR): New pattern.
9861 * doc/extend.texi: Document MSP430 function attributes and builtin
9864 2013-09-17 Richard Biener <rguenther@suse.de>
9866 PR tree-optimization/58432
9867 * tree-loop-distribution.c (tree_loop_distribution): Also
9868 scan PHIs for outside loop uses and seed a partition from them.
9870 2013-09-17 Bin Cheng <bin.cheng@arm.com>
9872 * gimple-ssa-strength-reduction.c (backtrace_base_for_ref): New.
9873 (restructure_reference): Call backtrace_base_for_ref.
9875 2013-09-17 Alan Modra <amodra@gmail.com>
9878 * config/rs6000/driver-rs6000.c (elf_platform): Revert 2013-06-11
9881 2013-09-16 DJ Delorie <dj@redhat.com>
9883 * config/rl78/rl78.c (rl78_asm_file_start): Specify alternate
9884 vregs location for RL78/G10.
9885 (rl78_expand_prologue): Avoid SEL on G10.
9886 (rl78_expand_epilogue): Likewise.
9887 (rl78_peep_movhi_p): Can't move a constant to memory in HImode.
9888 * config/rl78/rl78.h (TARGET_CPU_CPP_BUILTINS): Define
9889 __RL78_G10__ when appropriate.
9890 (ASM_SPEC): Pass -mg10 along to the assembler.
9891 * config/rl78/rl78.md (sel_rb): Disable for G10.
9892 * config/rl78/rl78.opt: Add -mg10 option.
9893 * config/rl78/t-rl78: Add -mg10 multilib.
9895 2013-09-16 Xinliang David Li <davidxl@google.com>
9897 * tree-if-conv.c (main_tree_if_conversion): Check new flag.
9898 * omp-low.c (omp_max_vf): Ditto.
9899 (expand_omp_simd): Ditto.
9900 * tree-vectorizer.c (vectorize_loops): Ditto.
9901 (gate_vect_slp): Ditto.
9902 (gate_increase_alignment): Ditto.
9903 * tree-ssa-pre.c (inhibit_phi_insertion): Ditto.
9904 * tree-ssa-loop.c (gate_tree_vectorize): Ditto.
9905 (gate_tree_vectorize): Name change.
9906 (tree_vectorize): Ditto.
9907 (pass_vectorize::gate): Call new function.
9908 (pass_vectorize::execute): Ditto.
9909 * opts.c: O3 default setting change.
9910 (finish_options): Check new flag.
9911 * doc/invoke.texi: Document new flags.
9912 * common.opt: New flags.
9914 2013-09-16 Andreas Schwab <schwab@linux-m68k.org>
9916 * doc/tm.texi.in (Cond Exec Macros): Remove node.
9917 (Condition Code): Don't reference it.
9918 * doc/tm.texi: Regenerate.
9920 2013-09-16 Vladimir Makarov <vmakarov@redhat.com>
9923 * lra-constraints.c (undo_optional_reloads): Consider all optional
9924 reload even if it did not get a hard reg.
9926 2013-09-16 Teresa Johnson <tejohnson@google.com>
9928 * dumpfile.c (dump_loc): Remove newline emission.
9929 * tree-vect-data-refs.c (vect_lanes_optab_supported_p): Add newline
9930 emission to dump_printf_loc calls where missing.
9931 (vect_mark_for_runtime_alias_test): Ditto.
9932 (vect_analyze_data_ref_dependence): Ditto.
9933 (vect_analyze_data_ref_dependences): Ditto.
9934 (vect_slp_analyze_data_ref_dependence): Ditto.
9935 (vect_slp_analyze_data_ref_dependences): Ditto.
9936 (vect_compute_data_ref_alignment): Ditto.
9937 (vect_update_misalignment_for_peel): Ditto.
9938 (vect_verify_datarefs_alignment): Ditto.
9939 (vector_alignment_reachable_p): Ditto.
9940 (vect_get_data_access_cost): Ditto.
9941 (vect_enhance_data_refs_alignment): Ditto.
9942 (vect_find_same_alignment_drs): Ditto.
9943 (vect_analyze_data_refs_alignment): Ditto.
9944 (vect_analyze_group_access): Ditto.
9945 (vect_analyze_data_ref_access): Ditto.
9946 (vect_analyze_data_ref_accesses): Ditto.
9947 (vect_prune_runtime_alias_test_list): Ditto.
9948 (vect_analyze_data_refs): Ditto.
9949 (vect_create_addr_base_for_vector_ref): Ditto.
9950 (vect_create_data_ref_ptr): Ditto.
9951 (vect_grouped_store_supported): Ditto.
9952 (vect_grouped_load_supported): Ditto.
9953 * value-prof.c (check_counter): Ditto.
9954 (check_ic_target): Ditto.
9955 * tree-vect-patterns.c (vect_recog_dot_prod_pattern): Ditto.
9956 (vect_recog_widen_mult_pattern): Ditto.
9957 (vect_recog_widen_sum_pattern): Ditto.
9958 (vect_recog_over_widening_pattern): Ditto.
9959 (vect_recog_widen_shift_pattern): Ditto.
9960 (vect_recog_rotate_pattern): Ditto.
9961 (vect_recog_vector_vector_shift_pattern): Ditto.
9962 (vect_recog_divmod_pattern): Ditto.
9963 (vect_recog_mixed_size_cond_pattern): Ditto.
9964 (vect_recog_bool_pattern): Ditto.
9965 (vect_pattern_recog_1): Ditto.
9966 (vect_pattern_recog): Ditto.
9967 * tree-vect-loop.c (vect_determine_vectorization_factor): Ditto.
9968 (vect_is_simple_iv_evolution): Ditto.
9969 (vect_analyze_scalar_cycles_1): Ditto.
9970 (vect_get_loop_niters): Ditto.
9971 (vect_analyze_loop_1): Ditto.
9972 (vect_analyze_loop_form): Ditto.
9973 (vect_analyze_loop_operations): Ditto.
9974 (vect_analyze_loop_2): Ditto.
9975 (vect_analyze_loop): Ditto.
9976 (report_vect_op): Ditto.
9977 (vect_is_slp_reduction): Ditto.
9978 (vect_is_simple_reduction_1): Ditto.
9979 (vect_get_known_peeling_cost): Ditto.
9980 (vect_estimate_min_profitable_iters): Ditto.
9981 (vect_model_reduction_cost): Ditto.
9982 (vect_model_induction_cost): Ditto.
9983 (get_initial_def_for_induction): Ditto.
9984 (vect_create_epilog_for_reduction): Ditto.
9985 (vectorizable_reduction): Ditto.
9986 (vectorizable_induction): Ditto.
9987 (vectorizable_live_operation): Ditto.
9988 (vect_loop_kill_debug_uses): Ditto.
9989 (vect_transform_loop): Ditto.
9990 * tree-vect-stmts.c (vect_mark_relevant): Ditto.
9991 (vect_stmt_relevant_p): Ditto.
9992 (process_use): Ditto.
9993 (vect_mark_stmts_to_be_vectorized): Ditto.
9994 (vect_model_simple_cost): Ditto.
9995 (vect_model_promotion_demotion_cost): Ditto.
9996 (vect_model_store_cost): Ditto.
9997 (vect_get_store_cost): Ditto.
9998 (vect_model_load_cost): Ditto.
9999 (vect_get_load_cost): Ditto.
10000 (vect_init_vector_1): Ditto.
10001 (vect_get_vec_def_for_operand): Ditto.
10002 (vect_finish_stmt_generation): Ditto.
10003 (vectorizable_call): Ditto.
10004 (vectorizable_conversion): Ditto.
10005 (vectorizable_assignment): Ditto.
10006 (vectorizable_shift): Ditto.
10007 (vectorizable_operation): Ditto.
10008 (vectorizable_store): Ditto.
10009 (vectorizable_load): Ditto.
10010 (vectorizable_condition): Ditto.
10011 (vect_analyze_stmt): Ditto.
10012 (vect_transform_stmt): Ditto.
10013 (vect_is_simple_use): Ditto.
10014 * tree-vect-loop-manip.c (slpeel_make_loop_iterate_ntimes): Ditto.
10015 (vect_can_advance_ivs_p): Ditto.
10016 (vect_update_ivs_after_vectorizer): Ditto.
10017 (vect_do_peeling_for_loop_bound): Ditto.
10018 (vect_gen_niters_for_prolog_loop): Ditto.
10019 (vect_update_inits_of_drs): Ditto.
10020 (vect_create_cond_for_alias_checks): Ditto.
10021 * tree-vect-slp.c (vect_get_and_check_slp_defs): Ditto.
10022 (vect_build_slp_tree_1): Ditto.
10023 (vect_supported_load_permutation_p): Ditto.
10024 (vect_analyze_slp_instance): Ditto.
10025 (vect_analyze_slp): Ditto.
10026 (vect_make_slp_decision): Ditto.
10027 (vect_detect_hybrid_slp): Ditto.
10028 (vect_bb_vectorization_profitable_p): Ditto.
10029 (vect_slp_analyze_bb_1): Ditto.
10030 (vect_update_slp_costs_according_to_vf): Ditto.
10031 (vect_get_mask_element): Ditto.
10032 (vect_transform_slp_perm_load): Ditto.
10033 (vect_schedule_slp_instance): Ditto.
10034 (vect_schedule_slp): Ditto.
10035 (vect_slp_transform_bb): Ditto.
10036 * profile.c (read_profile_edge_counts): Ditto.
10037 (compute_branch_probabilities): Ditto.
10038 * coverage.c (get_coverage_counts): Ditto.
10040 2013-09-16 Diego Novillo <dnovillo@google.com>
10042 * tree-core.h: Add missing comment lines from refactoring of tree.h.
10044 2013-09-16 Jan Hubicka <jh@suse.cz>
10046 * gimple-fold.c (can_refer_decl_in_current_unit_p): Do not accept
10047 abstract functions; for static functions check the presence of body.
10049 2013-09-16 James Greenhalgh <james.greenhalgh@arm.com>
10051 * config/aarch64/aarch64-simd-builtins.def (fma): New.
10052 * config/aarch64/aarch64-simd.md
10053 (aarch64_mla_elt<mode>): New.
10054 (aarch64_mla_elt_<vswap_width_name><mode>): Likewise.
10055 (aarch64_mls_elt<mode>): Likewise.
10056 (aarch64_mls_elt_<vswap_width_name><mode>): Likewise.
10057 (aarch64_fma4_elt<mode>): Likewise.
10058 (aarch64_fma4_elt_<vswap_width_name><mode>): Likewise.
10059 (aarch64_fma4_elt_to_128v2df): Likewise.
10060 (aarch64_fma4_elt_to_64df): Likewise.
10061 (fnma<mode>4): Likewise.
10062 (aarch64_fnma4_elt<mode>): Likewise.
10063 (aarch64_fnma4_elt_<vswap_width_name><mode>): Likewise.
10064 (aarch64_fnma4_elt_to_128v2df): Likewise.
10065 (aarch64_fnma4_elt_to_64df): Likewise.
10066 * config/aarch64/iterators.md (VDQSF): New.
10067 * config/aarch64/arm_neon.h
10068 (vfm<as><sdq>_lane<q>_f<32, 64>): Convert to C implementation.
10069 (vml<sa><q>_lane<q>_<fsu><16, 32, 64>): Likewise.
10071 2013-09-16 James Greenhalgh <james.greenhalgh@arm.com>
10073 * config/aarch64/aarch64-simd.md (aarch64_mul3_elt<mode>): New.
10074 (aarch64_mul3_elt_<vswap_width_name><mode>): Likewise.
10075 (aarch64_mul3_elt_to_128df): Likewise.
10076 (aarch64_mul3_elt_to_64v2df): Likewise.
10077 * config/aarch64/iterators.md (VEL): Also handle DFmode.
10079 (VMUL_CHANGE_NLANES) Likewise.
10082 * config/aarch64/arm_neon.h
10083 (vmul<q>_lane<q>_<suf><16,32,64>): Convert to C implementation.
10085 2013-09-16 James Greenhalgh <james.greenhalgh@arm.com>
10087 * config/aarch64/arm_neon.h
10088 (vcvtx_high_f32_f64): Fix parameters.
10090 2013-09-16 Jan-Benedict Glaw <jbglaw@lug-owl.de>
10091 Uros Bizjak <ubizjak@gmail.com>
10093 * config/alpha.c: Include tree-ssanames.h.
10095 2013-09-16 Richard Biener <rguenther@suse.de>
10097 * tree-loop-distribution.c (enum rdg_dep_type): Add control_dd.
10098 (dot_rdg_1): Handle control_dd.
10099 (create_edge_for_control_dependence): New function.
10100 (create_rdg_edges): Add control dependences if asked for.
10101 (build_rdg): Likewise.
10102 (generate_loops_for_partition): If there are not necessary
10103 control stmts remove all their dependencies.
10104 (collect_condition_stmts, rdg_flag_loop_exits): Remove.
10105 (distribute_loop): Pass on control dependences.
10106 (tree_loop_distribution): Compute control dependences and remove
10107 restriction on number of loop nodes.
10109 2013-09-16 Jakub Jelinek <jakub@redhat.com>
10111 * ipa-prop.c (ipa_compute_jump_functions_for_edge): Return early
10112 for internal calls.
10114 2013-09-16 Richard Sandiford <rdsandiford@googlemail.com>
10116 * cse.c (try_const_anchors): Punt on CC modes.
10118 2013-09-15 Jan-Benedict Glaw <jbglaw@lug-owl.de>
10120 * config/vax/constraints.md (T): Add missing CONSTANT_P check.
10122 2013-09-14 John David Anglin <danglin@gcc.gnu.org>
10125 * config/pa/pa.c (pa_expand_prologue): Change mode in gen_rtx_POST_INC
10126 calls to word_mode.
10128 2013-09-14 Iain Sandoe <iain@codesourcery.com>
10131 * config/darwin.c (darwin_objc2_section): Note if ObjC Metadata is
10133 (darwin_objc1_section): Likewise.
10134 (darwin_file_end): Emit Image Info section when required.
10136 2013-09-14 Jan Hubicka <jh@suse.cz>
10138 * tree-into-ssa.c (gate_into_ssa): New.
10139 (pass_data_build_ssa): Use it.
10140 * cgraph.h (expand_thunk): Update prototype.
10141 * cgraphunit.c (analyze_function): Expand thunks early.
10142 (expand_thunk): Fix DECL_CONTEXT of reust_decl;
10143 build proper cgraph; set in_ssa_p; clear bogus TREE_ASM_WRITTEN;
10144 set lowered flag; do not add new function.
10145 (assemble_thunks_and_aliases): Update.
10146 * tree-ssa.c (gate_init_datastructures): New gate.
10147 (pass_data_init_datastructures): Use it.
10149 2013-09-14 Iain Sandoe <iain@codesourcery.com>
10152 * config/i386/i386.c (ix86_function_arg_regno_p): Make Darwin use the
10153 xmm register set described in the psABI.
10155 2013-09-13 Evgeny Gavrin <e.gavrin@samsung.com>
10157 * dwarf2out.c (should_emit_struct_debug): Add check
10158 for type_decl variable is not NULL.
10160 2013-09-13 Jacek Caban <jacek@codeweavers.com>
10162 * config.gcc: Use new winnt-c.c target hooks
10163 * config/t-winnt: New file
10164 * config/winnt-c.c: New file
10165 * doc/tm.texi.in: Document new hook
10166 * doc/tm.texi: Regenerated
10168 2013-09-13 Jan Hubicka <jh@suse.cz>
10170 PR middle-end/58094
10171 * ipa-inline.c (check_callers): New function.
10172 (check_caller_edge): Remove.
10173 (want_inline_function_to_all_callers_p): Also permit alises that are
10175 (inline_to_all_callers): Terminate the walk when devirtualization
10176 introduce new calls.
10178 2013-09-13 Jan Hubicka <jh@suse.cz>
10180 * ipa-inline-analysis.c (struct growth_data): Add node.
10181 (do_estimate_growth_1): Fix detection of recursion.
10183 2013-09-13 Jakub Jelinek <jakub@redhat.com>
10185 PR tree-optimization/58392
10186 * tree-cfg.c (move_sese_region_to_fn): Rename loop variable
10187 to avoid shadowing of outer loop variable. If
10188 saved_cfun->has_simduid_loops or saved_cfun->has_force_vect_loops,
10189 replace_by_duplicate_decl simduid of loops that have it set and
10190 set dest_cfun->has_simduid_loops and/or
10191 dest_cfun->has_force_vect_loops.
10192 * omp-low.c (build_outer_var_ref): Call maybe_lookup_decl_in_outer_ctx
10193 instead of maybe_lookup_decl.
10194 * tree-inline.c (copy_loops): Change blocks_to_copy argument to id.
10195 Use id->blocks_to_copy instead of blocks_to_copy. Adjust recursive
10196 call. Copy over force_vect and copy and remap simduid. Set
10197 cfun->has_simduid_loops and/or cfun->has_force_vect_loops.
10198 (copy_cfg_body): Remove blocks_to_copy argument. Use
10199 id->blocks_to_copy instead of blocks_to_copy. Adjust copy_loops
10200 caller. Don't set cfun->has_simduid_loops and/or
10201 cfun->has_force_vect_loops here.
10202 (copy_body): Remove blocks_to_copy argument. Adjust copy_cfg_body
10204 (expand_call_inline, tree_function_versioning): Adjust copy_body
10207 2013-09-13 Martin Jambor <mjambor@suse.cz>
10210 * ipa-prop.c (try_make_edge_direct_simple_call): Be less strict in
10211 the assert if the edge was a speculative one.
10213 2013-09-13 Richard Biener <rguenther@suse.de>
10215 * tree-data-ref.h (known_dependences_p): Move here ...
10216 * tree-loop-distribution.c (known_dependences_p): ... from here.
10217 (dump_rdg_component, debug_rdg_component): Remove.
10218 (dump_rdg): Adjust.
10219 (generate_loops_for_partition): Use gimple_uid instead of
10220 relying on matching stmt visit order.
10221 (rdg_build_partitions): Take starting stmt vector.
10222 (ldist_gen): Merge into ...
10223 (distribute_loop): ... this function. Do not compute starting
10225 * tree-cfg.c (gimple_duplicate_bb): Copy UID for PHIs.
10227 2013-09-13 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
10229 * config/arm/arm.md (arm_cmpsi_insn): Split rI alternative.
10230 Set type attribute correctly. Set predicable_short_it attribute.
10231 (cmpsi_shiftsi): Remove %? from output template.
10233 2013-09-13 Richard Biener <rguenther@suse.de>
10235 * tree-loop-distribution.c (struct rdg_component,
10236 rdg_defs_used_in_other_loops_p, free_rdg_components,
10237 rdg_build_components): Remove.
10238 (stmts_from_loop): Do not record virtual PHIs.
10239 (generate_loops_for_partition): Skip virtual PHIs.
10240 (build_rdg_partition_for_component): Rename to ...
10241 (build_rdg_partition_for_vertex): ... this and adjust.
10242 (rdg_build_partitions): Take a vector of starting vertices
10243 instead of components. Remove unnecessary leftover handling.
10244 (ldist_gen): Do not build components or record other stores.
10245 (distribute_loop): Do not distribute loops containing stmts
10248 2013-09-13 Christian Bruel <christian.bruel@st.com>
10251 * config/sh/sh.md (mov<mode>_reg_reg): Allow memory reloads.
10253 2013-09-13 Kai Tietz <ktietz@redhat.com>
10255 * config.gcc: Separate cases for mingw and cygwin targets,
10256 and add 64-bit cygwin target case.
10258 * config/i386/winnt-cxx.c (i386_pe_type_dllexport_p): Don't
10259 dll-export inline-functions.
10260 * config/i386/winnt.c (i386_pe_determine_dllexport_p): Likewise.
10262 2013-09-13 Jeff Law <law@redhat.com>
10264 PR middle-end/58387
10266 2013-09-06 Jeff Law <law@redhat.com>
10268 * tree-ssa-dom.c (cprop_into_successor_phis): Also propagate
10269 edge implied equivalences into successor phis.
10271 2013-09-12 DJ Delorie <dj@redhat.com>
10273 * config/rl78/rl78-virt.md: Change from | to \; for asm line
10276 2013-09-12 Brooks Moses <bmoses@google.com>
10279 * Makefile.in: Do not install driver binaries in $(target)/bin.
10281 2013-09-12 DJ Delorie <dj@redhat.com>
10283 * config/rl78/rl78.opt (mrelax): New.
10284 * config/rl78/rl78.h (ASM_SPEC): New, pass on -mrelax to gas.
10285 * config/rl78/rl78.h (LINK_SPEC): New, pass on -mrelax to ld.
10287 * config/rl78/rl78.c (rl78_expand_prologue): Use AX to copy
10289 (rl78_expand_epilogue): Likewise.
10291 2013-09-12 Vladimir Makarov <vmakarov@redhat.com>
10293 PR middle-end/58335
10294 * lra-eliminations.c (remove_reg_equal_offset_note): New.
10295 (eliminate_regs_in_insn): Rewrite frame pointer to hard frame
10296 pointer elimination with using remove_reg_equal_offset_note.
10298 2013-09-12 DJ Delorie <dj@redhat.com>
10300 * config/msp430/: New port.
10301 * config.gcc (msp430): Added.
10302 * doc/invoke.texi: Document MSP430 options.
10303 * doc/install.texi: Document msp430-elf
10304 * doc/md.texi: Document msp430-elf
10305 * doc/contrib.texi: Document msp430-elf
10307 * cfgexpand.c (expand_debug_expr): Avoid sign-extending SImode to
10310 2013-09-12 Martin Jambor <mjambor@suse.cz>
10313 * ipa-prop.c (remove_described_reference): Give up if the edge in the
10314 reference descriptor is NULL.
10315 (ipa_edge_removal_hook): If owning a reference descriptor, set its
10318 2013-09-12 Andrew MacLeod <amacleod@redhat.com>
10320 * tree-flow.h (FREE_SSANAMES): Move to tree-ssanames.c
10321 (SSANAMES, MODIFIED_NORETURN_CALLS, DEFAULT_DEFS, ptr_info_def,
10322 num_ssa_names, ssa_name): Move to tree-ssanames.h + prototypes.
10323 * tree-flow-inline.h (make_ssa_name, copy_ssa_name, duplicate_ssa_name,
10324 make_temp_ssa_name): move to tree-ssanames.h
10325 * tree-ssa-alias.h: Move prototype.
10326 * tree-ssa.h: Include tree-ssanames.h.
10327 * tree-ssanames.c (FREE_SSANAMES): Move to here.
10328 * tree-ssanames.h: New. Move items from tree-flow*.h
10329 * Makefile.in (tree-ssanames.h): Add to tree-ssanames.o and GTFILES.
10331 2013-09-12 Richard Biener <rguenther@suse.de>
10333 PR tree-optimization/58404
10334 * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Also
10335 propagate non-invariant addresses into dereferences wrapped
10336 in component references.
10338 2013-09-12 Richard Biener <rguenther@suse.de>
10340 PR tree-optimization/58402
10341 * passes.def: Move pass_late_warn_uninitialized later.
10343 2013-09-12 Andrew MacLeod <amacleod@redhat.com>
10345 * tree-ssa.h: New. Move content from tree-flow.h and
10346 tree-flow-inline.h.
10347 * tree-flow.h (_edge_var_map, edge_var_map_vector): Move to tree-ssa.h.
10348 Move prototypes belonging to tree-ssa.c.
10349 * tree-flow-inline.h (redirect_edge_var_map_def,
10350 redirect_edge_var_map_result, redirect_edge_var_map_location): Move to
10352 * gimple.h: Adjust prototypes.
10353 * tree-ssa.c (useless_type_conversion_p, types_compatible_p): Move
10355 * gimple.c (useless_type_conversion_p, types_compatible_p): Here.
10356 * tree.h: Move prototype to tree-ssa.h.
10357 * gengtype.c (open_base_files): Replace tree-flow.h with tree-ssa.h.
10358 * Makefile.in: (TREE_SSA_H, TREE_FLOW_H): Adjust dependencies.
10359 * alias.c, asan.c, builtins.c, calls.c, cfgexpand.c, cfghooks.c,
10360 cfgloop.c, cfgloopmanip.c, cgraph.c, cgraphbuild.c, cgraphclones.c,
10361 cgraphunit.c, dse.c, except.c, expr.c, final.c, fold-const.c,
10362 ggc-page.c, gimple-fold.c, gimple-iterator.c, gimple-low.c,
10363 gimple-pretty-print.c, gimple-ssa-strength-reduction.c,
10364 gimple-streamer-in.c, gimple-streamer-out.c, gimple.c, gimplify.c,
10365 graphite-blocking.c, graphite-clast-to-gimple.c,
10366 graphite-dependences.c, graphite-interchange.c,
10367 graphite-optimize-isl.c, graphite-poly.c, graphite-scop-detection.c,
10368 graphite-sese-to-poly.c, graphite.c, ipa-cp.c, ipa-inline-analysis.c,
10369 ipa-inline-transform.c, ipa-inline.c, ipa-prop.c, ipa-pure-const.c,
10370 ipa-reference.c, ipa-split.c, ipa-utils.c,
10371 loop-init.c, lto-cgraph.c, lto-section-in.c, lto-section-out.c,
10372 lto-streamer-in.c, lto-streamer-out.c, lto-streamer.c, omp-low.c,
10373 passes.c, predict.c, print-tree.c, profile.c, sese.c, targhooks.c,
10374 tracer.c, trans-mem.c, tree-call-cdce.c, tree-cfg.c, tree-cfgcleanup.c,
10375 tree-chrec.c, tree-complex.c, tree-data-ref.c, tree-dfa.c, tree-eh.c,
10376 tree-emutls.c, tree-if-conv.c, tree-inline.c, tree-into-ssa.c,
10377 tree-loop-distribution.c, tree-mudflap.c, tree-nested.c, tree-nrv.c,
10378 tree-object-size.c, tree-optimize.c, tree-outof-ssa.c, tree-parloops.c,
10379 tree-phinodes.c, tree-predcom.c, tree-pretty-print.c, tree-profile.c,
10380 tree-scalar-evolution.c, tree-sra.c, tree-ssa*.c, tree-stdarg.c,
10381 tree-streamer-in.c, tree-switch-conversion.c, tree-tailcall.c,
10382 tree-vect-data-refs.c, tree-vect-generic.c, tree-vect-loop-manip.c,
10383 tree-vect-loop.c, tree-vect-patterns.c, tree-vect-slp.c,
10384 tree-vect-stmts.c, tree-vectorizer.c, tree-vrp.c, tsan.c,
10385 value-prof.c, var-tracking.c,
10386 varpool.c, vtable-verify.c: Replace tree-flow.h with tree-ssa.h
10388 2013-09-12 Richard Biener <rguenther@suse.de>
10390 PR tree-optimization/58396
10391 * tree-loop-distribution.c (create_rdg_edges): Free unused DDRs.
10392 (build_rdg): Take a loop-nest parameter, fix memleaks.
10393 (distribute_loop): Compute loop-nest here and pass it to build_rdg.
10395 2013-09-12 Yuri Rumyantsev <ysrumyan@gmail.com>
10397 * config/i386/x86-tune.def: Turn on X86_TUNE_AVOID_MEM_OPND_FOR_CMOVE
10400 2013-09-12 Cameron McInally <cameron.mcinally@nyu.edu>
10402 * doc/extend.texi: Fix errors in x86 FMA builtin naming.
10403 The FMA instruction names should have a 'v' prefix.
10405 2013-09-12 Richard Biener <rguenther@suse.de>
10407 * tree-loop-distribution.c (dot_rdg_1): Make graph prettier.
10408 (dot_rdg): Use popen instead of system in optional code.
10409 (remaining_stmts, upstream_mem_writes): Remove global bitmaps.
10410 (already_processed_vertex_p): Adjust.
10411 (has_anti_or_output_dependence, predecessor_has_mem_write,
10412 mark_nodes_having_upstream_mem_writes, has_upstream_mem_writes,
10413 rdg_flag_uses): Remove.
10414 (rdg_flag_vertex): Simplify.
10415 (rdg_flag_vertex_and_dependent): Rely on a correct RDG and
10417 (build_rdg_partition_for_component): Process the first vertex
10418 of a component only.
10419 (ldist_gen): Do not compute remaining_stmts or upstream_mem_writes.
10421 2013-09-12 Alan Modra <amodra@gmail.com>
10423 * config/rs6000/rs6000.c (toc_relative_expr_p): Use add_cint_operand.
10425 2013-09-11 DJ Delorie <dj@redhat.com>
10426 Nick Clifton <nickc@redhat.com>
10428 * config/rl78/predicates.md (rl78_cmp_operator_signed): New.
10429 (rl78_stack_based_mem): New.
10430 * config/rl78/constraints.md (Iv08): New.
10439 * config/rl78/rl78-expand.md (movqi): Reject more SUBREG operands.
10441 (movsi): Change from expand to insn-and-split.
10442 (ashrsi3): Clobber AX.
10446 * config/rl78/rl78.md (CC_REG): Fix.
10447 (addsi3): Allow memory and immediate operands.
10448 (addsi3_internal): Split into...
10449 (addsi3_internal_virt): ...new, and ...
10450 (addsi3_internal_real): ...new.
10452 (subsi3_internal_virt): New.
10453 (subsi3_internal_real): New.
10454 (mulsi3): Add memory operand.
10455 (mulsi3_rl78): Likewise.
10456 (mulsi3_g13): Likewise.
10457 * config/rl78/rl78-real.md (cbranchqi4_real_signed): New.
10458 (cbranchqi4_real): Add more constraint options.
10459 (cbranchhi4_real): Expand pattern.
10460 (cbranchhi4_real_signed): New.
10461 (cbranchhi4_real_inverted): New.
10462 (cbranchsi4_real_lt): New.
10463 (cbranchsi4_real_ge): New.
10464 (cbranchsi4_real_signed): New.
10465 (cbranchsi4_real): New.
10467 * config/rl78/rl78-virt.md (ashrsi3_virt): Add custom cases for
10469 (lshrsi3_virt): Likewise.
10470 (ashlsi3_virt): Likewise.
10471 (cbranchqi4_virt_signed): New.
10472 (cbranchhi4_virt_signed): New.
10473 (cbranchsi4_virt): New.
10474 * config/rl78/rl78.c: Whitespace fixes throughout.
10475 (move_elim_pass): New.
10476 (pass_data_rl78_move_elim): New.
10477 (pass_rl78_move_elim): New.
10478 (make_pass_rl78_move_elim): New.
10479 (rl78_devirt_info): Run devirt earlier.
10480 (rl78_move_elim_info): New.
10481 (rl78_asm_file_start): Register it.
10482 (rl78_split_movsi): New.
10483 (rl78_as_legitimate_address): Allow virtual base registers when
10485 (rl78_addr_space_convert): Remove spurious debug stuff.
10486 (rl78_print_operand_1): Add z,s,S,r,E modifiers.
10487 (rl78_print_operand): More cases for not printing '#'.
10488 (rl78_expand_compare): Remove most of the logic.
10489 (content_memory): New.
10490 (clear_content_memory): New.
10491 (get_content_index): New.
10492 (get_content_name): New.
10493 (display_content_memory): New.
10494 (update_content): New.
10495 (record_content): New.
10496 (already_contains): New.
10497 (insn_ok_now): Re-recog insns with virtual registers.
10498 (add_postponed_content_update): New.
10499 (process_postponed_content_update): New.
10500 (gen_and_emit_move): New.
10501 (transcode_memory_rtx): Record new location content.
10502 Use gen_and_emit_move.
10503 (force_into_acc): New.
10504 (move_to_acc): Use gen_and_emit_move.
10505 (move_from_acc): Likewise.
10506 (move_acc_to_reg): Likewise.
10507 (move_to_x): Likewise.
10508 (move_to_hl): Likewise.
10509 (move_to_de): Likewise.
10510 (rl78_alloc_physical_registers_op1): Record location content.
10511 (has_constraint): New.
10512 (rl78_alloc_physical_registers_op2): Record location content.
10513 Optimize use of HL.
10514 (rl78_alloc_physical_registers_ro1): Likewise.
10515 (rl78_alloc_physical_registers_cmp): Likewise.
10516 (rl78_alloc_physical_registers_umul): Likewise.
10517 (rl78_alloc_address_registers_macax): New.
10518 (rl78_alloc_physical_registers): Initialize and set location
10519 content memory as needed.
10520 (rl78_reorg): Make sure split2 is called.
10521 (rl78_rtx_costs): New.
10523 2013-09-11 Richard Sandiford <rdsandiford@googlemail.com>
10525 * simplify-rtx.c (simplify_unary_operation_1): Use simplify_gen_binary
10526 for (not (neg ...)) and (neg (not ...)) cases.
10528 2013-09-11 Richard Biener <rguenther@suse.de>
10530 PR middle-end/58377
10531 * passes.def: Split critical edges before late uninit warning passes.
10532 * tree-cfg.c (pass_split_crit_edges): Implement clone method.
10534 2013-09-11 Jakub Jelinek <jakub@redhat.com>
10536 PR tree-optimization/58385
10537 * fold-const.c (build_range_check): If both low and high are NULL,
10538 use omit_one_operand_loc to preserve exp side-effects.
10540 2013-09-11 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
10542 * config/arm/arm.md (arm_shiftsi3): New alternative l/l/M.
10544 2013-09-11 Richard Biener <rguenther@suse.de>
10546 * tree-data-ref.c (dump_rdg_vertex, debug_rdg_vertex,
10547 dump_rdg_component, debug_rdg_component, dump_rdg, debug_rdg,
10548 dot_rdg_1, dot_rdg, rdg_vertex_for_stmt, create_rdg_edge_for_ddr,
10549 create_rdg_edges_for_scalar, create_rdg_edges, create_rdg_vertices,
10550 stmts_from_loop, known_dependences_p, build_empty_rdg,
10551 build_rdg, free_rdg, rdg_defs_used_in_other_loops_p): Move ...
10552 * tree-loop-distribution.c: ... here.
10553 * tree-data-ref.h (struct rdg_vertex, RDGV_STMT, RDGV_DATAREFS,
10554 RDGV_HAS_MEM_WRITE, RDGV_HAS_MEM_READS, RDG_STMT, RDG_DATAREFS,
10555 RDG_MEM_WRITE_STMT, RDG_MEM_READS_STMT, enum rdg_dep_type,
10556 struct rdg_edge, RDGE_TYPE, RDGE_LEVEL, RDGE_RELATION): Move ...
10557 * tree-loop-distribution.c: ... here.
10558 * tree-loop-distribution.c: Include gimple-pretty-print.h.
10559 (struct partition_s): Add loops member.
10560 (partition_alloc, partition_free, rdg_flag_uses, rdg_flag_vertex,
10561 rdg_flag_vertex_and_dependent, rdg_flag_loop_exits,
10562 build_rdg_partition_for_component, rdg_build_partitions): Adjust.
10564 2013-09-11 Alexander Ivchenko <alexander.ivchenko@intel.com>
10565 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
10566 Sergey Lega <sergey.s.lega@intel.com>
10567 Anna Tikhonova <anna.tikhonova@intel.com>
10568 Ilya Tocar <ilya.tocar@intel.com>
10569 Andrey Turetskiy <andrey.turetskiy@intel.com>
10570 Ilya Verbin <ilya.verbin@intel.com>
10571 Kirill Yukhin <kirill.yukhin@intel.com>
10572 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
10574 * config/i386/constraints.md (k): New.
10576 * config/i386/i386.c (const regclass_map): Add new mask registers.
10577 (dbx_register_map): Ditto.
10578 (dbx64_register_map): Ditto.
10579 (svr4_dbx_register_map): Ditto.
10580 (ix86_conditional_register_usage): Squash mask registers if AVX512F is
10582 (ix86_preferred_reload_class): Disable constants for mask registers.
10583 (ix86_secondary_reload): Do spill of mask register using 32-bit insn.
10584 (ix86_hard_regno_mode_ok): Support new mask registers.
10585 (x86_order_regs_for_local_alloc): Ditto.
10586 * config/i386/i386.h (FIRST_PSEUDO_REGISTER): Update.
10587 (FIXED_REGISTERS): Add new mask registers.
10588 (CALL_USED_REGISTERS): Ditto.
10589 (REG_ALLOC_ORDER): Ditto.
10590 (VALID_MASK_REG_MODE): New.
10591 (FIRST_MASK_REG): Ditto.
10592 (LAST_MASK_REG): Ditto.
10593 (reg_class): Add MASK_EVEX_REGS, MASK_REGS.
10594 (MAYBE_MASK_CLASS_P): New.
10595 (REG_CLASS_NAMES): Add MASK_EVEX_REGS, MASK_REGS.
10596 (REG_CLASS_CONTENTS): Ditto.
10597 (MASK_REGNO_P): New.
10598 (ANY_MASK_REG_P): Ditto.
10599 (HI_REGISTER_NAMES): Add new mask registers.
10600 * config/i386/i386.md (MASK0_REG, MASK1_REG, MASK2_REG, MASK3_REG,
10601 MASK4_REG, MASK5_REG, MASK6_REG, MASK7_REG): Constants for new
10603 (attribute "type"): Add mskmov, msklog.
10604 (attribute "length_immediate"): Support them.
10605 (attribute "memory"): Ditto.
10606 (attribute "prefix_0f"): Ditto.
10607 (*movhi_internal): Support new mask registers.
10608 (*movqi_internal): Ditto.
10609 (define_split): Split out clobber pattern is a logic
10610 insn on mask registers.
10611 (*k<logic><mode>): New.
10612 (*andhi_1): Extend to support mask regs.
10613 (*andqi_1): Extend to support mask regs.
10614 (kandn<mode>): New.
10615 (define_split): Split and-not to and and not if operands
10617 (*<code><mode>_1): Separate HI mode to new pattern...
10618 (*<code>hi_1): This.
10619 (*<code>qi_1): Extend to support mask regs.
10620 (kxnor<mode>): New.
10621 (kortestzhi): Ditto.
10622 (kortestchi): Ditto.
10624 (*one_cmpl<mode>2_1): Remove HImode and handle it...
10625 (*one_cmplhi2_1): ...Here, now with mask registers support.
10626 (*one_cmplqi2_1): Support new mask registers.
10627 (HI/QImode arithmetics splitter): Don't split if mask registers
10629 (HI/QImode not splitter): Ditto.
10630 * config/i386/predicated.md (mask_reg_operand): New.
10631 (general_reg_operand): Ditto.
10633 2013-09-11 Alexander Ivchenko <alexander.ivchenko@intel.com>
10635 * doc/invoke.texi: Document fxsr, xsave and xsaveopt options.
10636 * doc/extend.texi: Document fxsr, xsave and xsaveopt builtins.
10638 2013-09-10 Jeff Law <law@redhat.com>
10640 PR tree-optimization/58380
10641 * tree-ssa-threadupdate.c (thread_block): Recognize another case
10642 of threading through a buried loop header.
10644 * tree-ssa-threadedge.c (thread_around_empty_blocks): Correct
10645 return value for single successor case.
10647 2013-09-10 Jan Hubicka <jh@suse.cz>
10649 * ipa-devirt.c (ipa_devirt): Enable with LTO.
10651 2013-09-10 Richard Earnshaw <rearnsha@arm.com>
10654 * arm/vfp.md (combine_vcvt_f32_<FCVTI32typename>): Fix pattern to
10655 support conditional execution.
10656 (combine_vcvt_f64_<FCVTI32typename>): Likewise.
10658 2013-09-10 Vladimir Makarov <vmakarov@redhat.com>
10660 * lra.c (lra): Clear lra_optional_reload_pseudos before every
10662 * lra-constraints.c (curr_insn_transform): Switch on optional reloads.
10663 Check destination too to check move insn.
10664 (undo_optional_reloads): Add check that the original peudo did not
10665 changed its allocation and the optional reload was inherited on last
10666 inheritance pass. Break loop after deciding to keep optional reload.
10667 (lra_undo_inheritance): Add check that inherited pseudo still in
10670 2013-09-10 James Greenhalgh <james.greenhalgh@arm.com>
10672 * config/aarch64/aarch64.md (generic_sched): New.
10673 * config/aarch64/aarch64-generic.md (load): Make conditional
10674 on generic_sched attribute.
10675 (nonload): Likewise.
10677 2013-09-10 Jan Hubicka <jh@suse.cz>
10679 * lto-cgraph.c: Include ipa-utils.h.
10680 (compute_ltrans_boundary): Also add possible targets into the boundary.
10682 2013-09-10 Jan Hubicka <jh@suse.cz>
10684 * gimple-fold.c (gimple_get_virt_method_for_binfo): Pass real
10685 VAR_DECL of vtable rather than full expression.
10687 2013-09-10 Jan Hubicka <jh@suse.cz>
10688 Paolo Carlini <paolo.carlini@oracle.com>
10690 * cgraphunit.c (analyze_functions): Save input_location, set it
10691 to UNKNOWN_LOCATION and restore it at the end.
10693 2013-09-10 Martin Jambor <mjambor@suse.cz>
10695 * ipa-cp.c (propagate_constants_topo): Do not ignore SCC
10696 represented by a thunk.
10698 2013-09-10 Jeff Law <law@redhat.com>
10700 PR tree-optimization/58343
10701 * tree-ssa-threadupdate.c (thread_block): Identify and disable
10702 jump threading requests through loop headers buried in the middle
10703 of a jump threading path.
10705 * tree-ssa-threadedge.c (thread_around_empty_blocks): Fix thinko
10706 in return value/type.
10708 2013-09-10 Jakub Jelinek <jakub@redhat.com>
10710 PR rtl-optimization/58365
10711 * cfgcleanup.c (merge_memattrs): Also clear MEM_READONLY_P
10712 resp. MEM_NOTRAP_P if they differ, or set MEM_VOLATILE_P if
10715 2013-09-10 Richard Biener <rguenther@suse.de>
10717 * tree-data-ref.h (build_rdg): Drop all parameters but loop.
10718 * tree-data-ref.c (create_rdg_vertices): Collect all data
10719 references, signal failure to the caller, use data-ref API.
10720 (build_rdg): Compute data references only once. Maintain lifetime
10721 of data references and data dependences from within RDG.
10722 (free_rdg): Free dependence relations.
10723 * tree-loop-distribution.c (rdg_flag_uses): Drop weird code
10724 inventing extra dependences.
10725 (distribute_loop): Update for RDG API changes.
10727 2013-09-10 Kai Tietz <ktietz@redhat.com>
10729 * doc/invoke.texi (fms-extensions): Document changed
10730 behavior for ms-abi targets.
10731 * config/i386/i386.c (ix86_option_override_internal):
10732 Set default value of option -fms-extension for ms-abi targets.
10734 2013-09-10 Michael Zolotukhin <michael.v.zolotukhin@gmail.com>
10736 * config/i386/i386.c (ix86_expand_movmem): Fix epilogue generation.
10738 2013-09-10 Alan Modra <amodra@gmail.com>
10741 * config/rs6000/rs6000.md (bswapdi2_64bit): Disable for volatile mems.
10743 2013-09-10 Alan Modra <amodra@gmail.com>
10745 * config/rs6000/predicates.md (add_cint_operand): New.
10746 (reg_or_add_cint_operand, small_toc_ref): Use add_cint_operand.
10747 * config/rs6000/rs6000.md (largetoc_high_plus): Restrict offset
10748 using add_cint_operand.
10749 (largetoc_high_plus_aix): Likewise.
10751 2013-09-09 Jakub Jelinek <jakub@redhat.com>
10753 PR tree-optimization/58364
10754 * tree-ssa-reassoc.c (init_range_entry): For BIT_NOT_EXPR on
10755 BOOLEAN_TYPE, only invert in_p and continue with arg0 if
10756 the current range can't be an unconditional true or false.
10758 2013-09-09 James Greenhalgh <james.greenhalgh@arm.com>
10760 * config/aarch64/arm_neon.h (vrsqrte_f64): Fix parameter type.
10762 2013-09-09 Uros Bizjak <ubizjak@gmail.com>
10764 * ipa-prop.c (ipa_modify_call_arguments): Initialize deref_align.
10766 2013-09-09 Paolo Carlini <paolo.carlini@oracle.com>
10769 * doc/invoke.texi (-Wdelete-incomplete): Document it.
10771 2013-09-09 Ian Bolton <ian.bolton@arm.com>
10773 * config/aarch64/aarch64.c (aarch64_preferred_reload_class): Return
10774 NO_REGS for immediate that can't be moved directly into FP_REGS.
10776 2013-09-09 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
10778 * config/aarch64/aarch64.c (aarch64_select_cc_mode): Return CC_SWP for
10779 comparison with negated operand.
10780 * config/aarch64/aarch64.md (compare_neg<mode>): Match canonical
10783 2013-09-09 Richard Biener <rguenther@suse.de>
10785 PR middle-end/58326
10786 * cfgloopmanip.c (fix_bb_placements): When fixing the placement
10787 of a subloop record all its block as affecting loop-closed SSA form.
10789 2013-09-09 Richard Sandiford <rdsandiford@googlemail.com>
10791 * expmed.c (lshift_value): Take an unsigned HOST_WIDE_INT instead
10792 of an rtx/bitpos pair.
10793 (store_fixed_bit_field): Update accordingly.
10795 2013-09-09 Richard Sandiford <rdsandiford@googlemail.com>
10797 * asan.c (asan_emit_stack_protection): Use gen_int_mode instead of
10799 * builtins.c (expand_errno_check): Likewise.
10800 * dwarf2cfi.c (init_return_column_size): Likewise.
10801 * except.c (sjlj_mark_call_sites): Likewise.
10802 * expr.c (move_by_pieces_1, store_by_pieces_2): Likewise.
10803 * lra-constraints.c (emit_inc): Likewise.
10804 * ree.c (combine_set_extension): Likewise.
10805 * regmove.c (fixup_match_2): Likewise.
10806 * reload1.c (inc_for_reload): Likewise.
10808 2013-09-09 Richard Sandiford <rdsandiford@googlemail.com>
10810 * combine.c (simplify_set, expand_field_assignment, extract_left_shift)
10811 (force_to_mode, simplify_shift_const_1, simplify_comparison):
10812 Use gen_int_mode with the mode of the associated simplify_* call.
10813 * explow.c (probe_stack_range, anti_adjust_stack_and_probe): Likewise.
10814 * expmed.c (expand_shift_1): Likewise.
10815 * function.c (instantiate_virtual_regs_in_insn): Likewise.
10816 * loop-iv.c (iv_number_of_iterations): Likewise.
10817 * loop-unroll.c (unroll_loop_runtime_iterations): Likewise.
10818 * simplify-rtx.c (simplify_binary_operation_1): Likewise.
10820 2013-09-09 Richard Sandiford <rdsandiford@googlemail.com>
10822 * asan.c (asan_clear_shadow): Use gen_int_mode with the mode
10823 of the associated expand_* call.
10824 (asan_emit_stack_protection): Likewise.
10825 * builtins.c (round_trampoline_addr): Likewise.
10826 * explow.c (allocate_dynamic_stack_space, probe_stack_range): Likewise.
10827 * expmed.c (expand_smod_pow2, expand_sdiv_pow2, expand_divmod)
10828 (emit_store_flag): Likewise.
10829 * expr.c (emit_move_resolve_push, push_block, emit_single_push_insn_1)
10830 (emit_push_insn, optimize_bitfield_assignment_op, expand_expr_real_1):
10832 * function.c (instantiate_virtual_regs_in_insn): Likewise.
10833 * ifcvt.c (noce_try_store_flag_constants): Likewise.
10834 * loop-unroll.c (unroll_loop_runtime_iterations): Likewise.
10835 * modulo-sched.c (generate_prolog_epilog): Likewise.
10836 * optabs.c (expand_binop, widen_leading, expand_doubleword_clz)
10837 (expand_ctz, expand_ffs, expand_unop): Likewise.
10839 2013-09-09 Richard Sandiford <rdsandiford@googlemail.com>
10841 * alias.c (addr_side_effect_eval): Use gen_int_mode with the mode
10842 of the associated gen_rtx_* call.
10843 * caller-save.c (init_caller_save): Likewise.
10844 * combine.c (find_split_point, make_extraction): Likewise.
10845 (make_compound_operation): Likewise.
10846 * dwarf2out.c (mem_loc_descriptor): Likewise.
10847 * explow.c (plus_constant, probe_stack_range): Likewise.
10848 * expmed.c (expand_mult_const): Likewise.
10849 * expr.c (emit_single_push_insn_1, do_tablejump): Likewise.
10850 * reload1.c (init_reload): Likewise.
10851 * valtrack.c (cleanup_auto_inc_dec): Likewise.
10852 * var-tracking.c (adjust_mems): Likewise.
10853 * modulo-sched.c (sms_schedule): Likewise, but use gen_rtx_GT
10854 rather than gen_rtx_fmt_ee.
10856 2013-09-09 Jan Hubicka <jh@suse.cz>
10858 PR middle-end/58294
10859 * value-prof.c (gimple_ic): Copy also abnormal edges.
10861 2013-09-09 Richard Sandiford <rdsandiford@googlemail.com>
10863 * asan.c (asan_shadow_cst): Use gen_int_mode.
10865 2013-09-08 Jan Hubicka <jh@suse.cz>
10867 * ipa-profile.c: Add toplevel comment.
10868 (ipa_propagate_frequency_1): Be more conservative when profile is read.
10869 (contains_hot_call_p): New function.
10870 (ipa_propagate_frequency): Set frequencies based on counts when
10872 * predict.c (compute_function_frequency): Use PROFILE_READ gueard for
10873 profile; do not tamper with profile after inlining if it is read.
10875 2013-09-08 Jan Hubicka <jh@suse.cz>
10877 * ipa-prop.c (try_make_edge_direct_simple_call): Do not special case
10880 2013-09-08 Jan Hubicka <jh@suse.cz>
10882 * ipa.c (walk_polymorphic_call_targets): Fix redirection before IPA
10883 summary generation.
10885 2013-09-08 Jeff Law <law@redhat.com>
10888 * tree-ssa-threadedge.c (thread_across_edge): Fix initialization
10891 2013-09-08 Andi Kleen <ak@linux.intel.com>
10893 * tree-inline.c (estimate_num_insns): Limit asm cost to 1000.
10895 2013-09-08 Jan Hubicka <jh@suse.cz>
10897 * ipa.c (walk_polymorphic_call_targets): Fix inliner summary update.
10899 2013-09-08 Richard Sandiford <rdsandiford@googlemail.com>
10901 * ira.c (update_equiv_regs): Only call set_paradoxical_subreg
10902 for non-debug insns.
10903 * lra.c (new_insn_reg): Take the containing insn as a parameter.
10904 Only modify lra_reg_info[].biggest_mode if it's non-debug insn.
10905 (collect_non_operand_hard_regs, add_regs_to_insn_regno_info): Update
10908 2013-09-08 Jan Hubicka <jh@suse.cz>
10910 * cgraphunit.c (walk_polymorphic_call_targets): Permit 0 possible
10911 targets and devirtualize to BUILT_IN_UNREACHABLE.
10912 * timevar.def (TV_IPA_UNREACHABLE): New timevar.
10913 * ipa.c (walk_polymorphic_call_targets): New function.
10914 (symtab_remove_unreachable_nodes): Use it; do not keep all virtual
10915 functions; use the new timevar.
10916 * ipa-devirt.c (maybe_record_node): Do not insert static nodes that
10917 was removed from the program.
10918 (record_binfo): If BINFO corresponds to an anonymous namespace, we may
10919 not consider it in the walk when its vtable is dead.
10920 (possible_polymorphic_call_targets_1): Pass anonymous flag to
10922 (devirt_variable_node_removal_hook): New function.
10923 (possible_polymorphic_call_targets): Also register
10924 devirt_variable_node_removal_hook.
10925 (ipa_devirt): Do not do non-speculative devirtualization.
10926 (gate_ipa_devirt): One execute if devirtualizing speculatively.
10928 2013-09-08 Jan Hubicka <jh@suse.cz>
10930 * cgraph.h (varpool_node_hook, varpool_node_hook_list,
10931 varpool_add_node_removal_hook, varpool_add_variable_insertion_hook,
10932 varpool_remove_variable_insertion_hook): Declare.
10933 * varpool.c (varpool_node_hook_list): New structure.
10934 (first_varpool_node_removal_hook,
10935 first_varpool_variable_insertion_hook): New variables.
10936 (varpool_add_node_removal_hook, varpool_remove_node_removal_hook,
10937 varpool_call_node_removal_hooks, varpool_add_variable_insertion_hook,
10938 varpool_remove_variable_insertion_hook,
10939 varpool_call_variable_insertion_hooks): New functions.
10940 (varpool_remove_node): Use it.
10942 2013-09-08 Paolo Carlini <paolo.carlini@oracle.com>
10945 * diagnostic.c (diagnostic_build_prefix): When s.file is
10946 "<built-in>" don't output line and column numbers.
10948 2013-09-06 Jan Hubicka <jh@suse.cz>
10950 * cgraphunit.c (expand_thunk): Get body before touching arguments.
10951 * lto-streamer-out.c: Stream thunks, too.
10952 * lto-streamer-in.c (input_function): Pop cfun here
10953 (lto_read_body): Instead of here.
10955 2013-09-06 Caroline Tice <cmtice@google.com>
10957 * doc/install.texi: Add documentation for the --enable-vtable-verify
10958 and the --disable-libvtv configure options.
10960 2013-09-06 Jeff Law <law@redhat.com>
10962 * tree-ssa-dom.c (cprop_into_successor_phis): Also propagate
10963 edge implied equivalences into successor phis.
10965 2013-09-06 Joern Rennecke <joern.rennecke@embecosm.com>
10967 * resource.c (mark_referenced_resources): Handle COND_EXEC.
10969 2013-09-06 Claudiu Zissulescu <claziss@synopsys.com>
10971 * resource.c (mark_target_live_regs): Compute resources taking
10972 into account if a call is predicated or not.
10974 2013-09-06 Eric Botcazou <ebotcazou@adacore.com>
10976 * toplev.c (output_stack_usage): Be prepared for suffixes created by
10977 the compiler in the function names.
10979 2013-09-06 Jan Hubicka <jh@suse.cz>
10981 PR middle-end/58094
10982 * ipa-inline.c (has_caller_p): New function.
10983 (want_inline_function_to_all_callers_p): Use it.
10984 (sum_callers, inline_to_all_callers): Break out from ...
10985 (ipa_inline): ... here.
10987 2013-09-06 Jan Hubicka <jh@suse.cz>
10989 * config/i386/i386.c (ix86_hard_regno_mode_ok): AVX modes are valid
10990 only when AVX is enabled.
10992 2013-09-06 James Greenhalgh <james.greenhalgh@arm.com>
10994 * config/aarch64/aarch64.md
10995 (*movtf_aarch64): Use neon_<ls>dm_2 as type where v8type
10996 is fpsimd_<load/store>2.
10997 (load_pair<mode>): Likewise.
10998 (store_pair<mode>): Likewise.
11000 2013-09-06 James Greenhalgh <james.greenhalgh@arm.com>
11002 * config/arm/types.md (type): Add "mrs" type.
11003 * config/aarch64/aarch64.md
11004 (aarch64_load_tp_hard): Make type "mrs".
11005 * config/arm/arm.md
11006 (load_tp_hard): Make type "mrs".
11007 * config/arm/cortex-a15.md: Update with new attributes.
11008 * config/arm/cortex-a5.md: Update with new attributes.
11009 * config/arm/cortex-a53.md: Update with new attributes.
11010 * config/arm/cortex-a7.md: Update with new attributes.
11011 * config/arm/cortex-a8.md: Update with new attributes.
11012 * config/arm/cortex-a9.md: Update with new attributes.
11013 * config/arm/cortex-m4.md: Update with new attributes.
11014 * config/arm/cortex-r4.md: Update with new attributes.
11015 * config/arm/fa526.md: Update with new attributes.
11016 * config/arm/fa606te.md: Update with new attributes.
11017 * config/arm/fa626te.md: Update with new attributes.
11018 * config/arm/fa726te.md: Update with new attributes.
11020 2013-09-06 James Greenhalgh <james.greenhalgh@arm.com>
11022 * config/aarch64/aarch64.md
11023 (*movti_aarch64): Use "multiple" for type where v8type is "move2".
11024 (*movtf_aarch64): Likewise.
11025 * config/arm/arm.md
11026 (thumb1_movdi_insn): Use "multiple" for type where more than one
11027 instruction is used for a move.
11028 (*arm32_movhf): Likewise.
11029 (*thumb_movdf_insn): Likewise.
11031 2013-09-06 James Greenhalgh <james.greenhalgh@arm.com>
11033 * config/arm/types.md (type): Rename fcpys to fmov.
11034 * config/arm/vfp.md
11035 (*arm_movsi_vfp): Rename type fcpys as fmov.
11036 (*thumb2_movsi_vfp): Likewise
11037 (*movhf_vfp_neon): Likewise
11038 (*movhf_vfp): Likewise
11039 (*movsf_vfp): Likewise
11040 (*thumb2_movsf_vfp): Likewise
11041 (*movsfcc_vfp): Likewise
11042 (*thumb2_movsfcc_vfp): Likewise
11043 * config/aarch64/aarch64-simd.md
11044 (move_lo_quad_<mode>): Replace type mov_reg with fmovs.
11045 * config/aarch64/aarch64.md
11046 (*movsi_aarch64): Replace type mov_reg with fmovs.
11047 (*movdi_aarch64): Likewise
11048 (*movsf_aarch64): Likewise
11049 (*movdf_aarch64): Likewise
11051 (cortexa7_older_only): Rename TYPE_FCPYS to TYPE_FMOV.
11052 * config/arm/iwmmxt.md
11053 (*iwmmxt_movsi_insn): Rename type fcpys as fmov.
11054 * config/arm/arm1020e.md: Update with new attributes.
11055 * config/arm/cortex-a15-neon.md: Update with new attributes.
11056 * config/arm/cortex-a5.md: Update with new attributes.
11057 * config/arm/cortex-a53.md: Update with new attributes.
11058 * config/arm/cortex-a7.md: Update with new attributes.
11059 * config/arm/cortex-a8-neon.md: Update with new attributes.
11060 * config/arm/cortex-a9.md: Update with new attributes.
11061 * config/arm/cortex-m4-fpu.md: Update with new attributes.
11062 * config/arm/cortex-r4f.md: Update with new attributes.
11063 * config/arm/marvell-pj4.md: Update with new attributes.
11064 * config/arm/vfp11.md: Update with new attributes.
11066 2013-09-06 James Greenhalgh <james.greenhalgh@arm.com>
11068 * config/aarch64/aarch64.md
11069 (*madd<mode>): Fix type attribute.
11070 (*maddsi_uxtw): Likewise.
11071 (*msub<mode>): Likewise.
11072 (*msubsi_uxtw): Likewise.
11073 (<su_optab>maddsidi4): Likewise.
11074 (<su_optab>msubsidi4): Likewise.
11076 2013-09-06 James Greenhalgh <james.greenhalgh@arm.com>
11078 * config/arm/types.md: Split fdiv<sd> as fsqrt<sd>, fdiv<sd>.
11079 * config/arm/arm.md (core_cycles): Remove fdiv.
11080 * config/arm/vfp.md:
11081 (*sqrtsf2_vfp): Update for attribute changes.
11082 (*sqrtdf2_vfp): Likewise.
11083 * config/aarch64/aarch64.md:
11084 (sqrt<mode>2): Update for attribute changes.
11085 * config/arm/arm1020e.md: Update with new attributes.
11086 * config/arm/cortex-a15-neon.md: Update with new attributes.
11087 * config/arm/cortex-a5.md: Update with new attributes.
11088 * config/arm/cortex-a53.md: Update with new attributes.
11089 * config/arm/cortex-a7.md: Update with new attributes.
11090 * config/arm/cortex-a8-neon.md: Update with new attributes.
11091 * config/arm/cortex-a9.md: Update with new attributes.
11092 * config/arm/cortex-m4-fpu.md: Update with new attributes.
11093 * config/arm/cortex-r4f.md: Update with new attributes.
11094 * config/arm/marvell-pj4.md: Update with new attributes.
11095 * config/arm/vfp11.md: Update with new attributes.
11097 2013-09-06 James Greenhalgh <james.greenhalgh@arm.com>
11099 * config/arm/types.md
11100 (type): Split f_cvt as f_cvt, f_cvtf2i, f_cvti2f.
11101 * config/aarch64/aarch64.md
11102 (l<fcvt_pattern><su_optab><GPF:mode><GPI:mode>2): Update with
11104 (fix_trunc<GPF:mode><GPI:mode>2): Likewise.
11105 (fixuns_trunc<GPF:mode><GPI:mode>2): Likewise.
11106 (float<GPI:mode><GPF:mode>2): Likewise.
11107 * config/arm/vfp.md
11108 (*truncsisf2_vfp): Update with new attributes.
11109 (*truncsidf2_vfp): Likewise.
11110 (fixuns_truncsfsi2): Likewise.
11111 (fixuns_truncdfsi2): Likewise.
11112 (*floatsisf2_vfp): Likewise.
11113 (*floatsidf2_vfp): Likewise.
11114 (floatunssisf2): Likewise.
11115 (floatunssidf2): Likewise.
11116 (*combine_vcvt_f32_<FCVTI32typename>): Likewise.
11117 (*combine_vcvt_f64_<FCVTI32typename>): Likewise.
11118 * config/arm/arm1020e.md: Update with new attributes.
11119 * config/arm/cortex-a15-neon.md: Update with new attributes.
11120 * config/arm/cortex-a5.md: Update with new attributes.
11121 * config/arm/cortex-a53.md: Update with new attributes.
11122 * config/arm/cortex-a7.md: Update with new attributes.
11123 * config/arm/cortex-a8-neon.md: Update with new attributes.
11124 * config/arm/cortex-a9.md: Update with new attributes.
11125 * config/arm/cortex-m4-fpu.md: Update with new attributes.
11126 * config/arm/cortex-r4f.md: Update with new attributes.
11127 * config/arm/marvell-pj4.md: Update with new attributes.
11128 * config/arm/vfp11.md: Update with new attributes.
11130 2013-09-06 James Greenhalgh <james.greenhalgh@arm.com>
11132 * config/aarch64/arm_neon.h
11133 (vqtbl<1,2,3,4><q>_s8): Fix control vector parameter type.
11134 (vqtbx<1,2,3,4><q>_s8): Likewise.
11136 2013-09-06 James Greenhalgh <james.greenhalgh@arm.com>
11138 * config/arm/types.md: Add "no_insn", "multiple" and "untyped" types.
11139 * config/arm/arm-fixed.md: Add type attribute to all insn patterns.
11140 (add<mode>3): Add type attribute.
11141 (add<mode>3): Likewise.
11142 (usadd<mode>3): Likewise.
11143 (ssadd<mode>3): Likewise.
11144 (sub<mode>3): Likewise.
11145 (sub<mode>3): Likewise.
11146 (ussub<mode>3): Likewise.
11147 (sssub<mode>3): Likewise.
11148 (ssmulsa3): Likewise.
11149 (usmulusa3): Likewise.
11150 (arm_usatsihi): Likewise.
11151 * config/arm/vfp.md
11152 (*movdi_vfp): Add types for all instructions.
11153 (*movdi_vfp_cortexa8): Likewise.
11154 (*movhf_vfp_neon): Likewise.
11155 (*movhf_vfp): Likewise.
11156 (*movdf_vfp): Likewise.
11157 (*thumb2_movdf_vfp): Likewise.
11158 (*thumb2_movdfcc_vfp): Likewise.
11159 * config/arm/arm.md: Add type attribute to all insn patterns.
11160 (*thumb1_adddi3): Add type attribute.
11161 (*arm_adddi3): Likewise.
11162 (*adddi_sesidi_di): Likewise.
11163 (*adddi_zesidi_di): Likewise.
11164 (*thumb1_addsi3): Likewise.
11165 (addsi3_compare0): Likewise.
11166 (*addsi3_compare0_scratch): Likewise.
11167 (*compare_negsi_si): Likewise.
11168 (cmpsi2_addneg): Likewise.
11169 (*addsi3_carryin_<optab>): Likewise.
11170 (*addsi3_carryin_alt2_<optab>): Likewise.
11171 (*addsi3_carryin_clobercc_<optab>): Likewise.
11172 (*subsi3_carryin): Likewise.
11173 (*subsi3_carryin_const): Likewise.
11174 (*subsi3_carryin_compare): Likewise.
11175 (*subsi3_carryin_compare_const): Likewise.
11176 (*arm_subdi3): Likewise.
11177 (*thumb_subdi3): Likewise.
11178 (*subdi_di_zesidi): Likewise.
11179 (*subdi_di_sesidi): Likewise.
11180 (*subdi_zesidi_di): Likewise.
11181 (*subdi_sesidi_di): Likewise.
11182 (*subdi_zesidi_ze): Likewise.
11183 (thumb1_subsi3_insn): Likewise.
11184 (*arm_subsi3_insn): Likewise.
11185 (*anddi3_insn): Likewise.
11186 (*anddi_zesidi_di): Likewise.
11187 (*anddi_sesdi_di): Likewise.
11188 (*ne_zeroextracts): Likewise.
11189 (*ne_zeroextracts): Likewise.
11190 (*ite_ne_zeroextr): Likewise.
11191 (*ite_ne_zeroextr): Likewise.
11192 (*anddi_notdi_di): Likewise.
11193 (*anddi_notzesidi): Likewise.
11194 (*anddi_notsesidi): Likewise.
11195 (andsi_notsi_si): Likewise.
11196 (thumb1_bicsi3): Likewise.
11197 (*iordi3_insn): Likewise.
11198 (*iordi_zesidi_di): Likewise.
11199 (*iordi_sesidi_di): Likewise.
11200 (*thumb1_iorsi3_insn): Likewise.
11201 (*xordi3_insn): Likewise.
11202 (*xordi_zesidi_di): Likewise.
11203 (*xordi_sesidi_di): Likewise.
11204 (*arm_xorsi3): Likewise.
11205 (*andsi_iorsi3_no): Likewise.
11206 (*smax_0): Likewise.
11207 (*smax_m1): Likewise.
11208 (*arm_smax_insn): Likewise.
11209 (*smin_0): Likewise.
11210 (*arm_smin_insn): Likewise.
11211 (*arm_umaxsi3): Likewise.
11212 (*arm_uminsi3): Likewise.
11213 (*minmax_arithsi): Likewise.
11214 (*minmax_arithsi_): Likewise.
11215 (*satsi_<SAT:code>): Likewise.
11216 (arm_ashldi3_1bit): Likewise.
11217 (arm_ashrdi3_1bit): Likewise.
11218 (arm_lshrdi3_1bit): Likewise.
11219 (*arm_negdi2): Likewise.
11220 (*thumb1_negdi2): Likewise.
11221 (*arm_negsi2): Likewise.
11222 (*thumb1_negsi2): Likewise.
11223 (*negdi_extendsid): Likewise.
11224 (*negdi_zero_extend): Likewise.
11225 (*arm_abssi2): Likewise.
11226 (*thumb1_abssi2): Likewise.
11227 (*arm_neg_abssi2): Likewise.
11228 (*thumb1_neg_abss): Likewise.
11229 (one_cmpldi2): Likewise.
11230 (extend<mode>di2): Likewise.
11231 (*compareqi_eq0): Likewise.
11232 (*arm_extendhisi2addsi): Likewise.
11233 (*arm_movdi): Likewise.
11234 (*thumb1_movdi_insn): Likewise.
11235 (*arm_movt): Likewise.
11236 (*thumb1_movsi_insn): Likewise.
11237 (pic_add_dot_plus_four): Likewise.
11238 (pic_add_dot_plus_eight): Likewise.
11239 (tls_load_dot_plus_eight): Likewise.
11240 (*thumb1_movhi_insn): Likewise.
11241 (*thumb1_movsf_insn): Likewise.
11242 (*movdf_soft_insn): Likewise.
11243 (*thumb_movdf_insn): Likewise.
11244 (cbranchsi4_insn): Likewise.
11245 (cbranchsi4_scratch): Likewise.
11246 (*negated_cbranchsi4): Likewise.
11247 (*tbit_cbranch): Likewise.
11248 (*tlobits_cbranch): Likewise.
11249 (*tstsi3_cbranch): Likewise.
11250 (*cbranchne_decr1): Likewise.
11251 (*addsi3_cbranch): Likewise.
11252 (*addsi3_cbranch_scratch): Likewise.
11253 (*arm_cmpdi_insn): Likewise.
11254 (*arm_cmpdi_unsig): Likewise.
11255 (*arm_cmpdi_zero): Likewise.
11256 (*thumb_cmpdi_zero): Likewise.
11257 (*deleted_compare): Likewise.
11258 (*mov_scc): Likewise.
11259 (*mov_negscc): Likewise.
11260 (*mov_notscc): Likewise.
11261 (*cstoresi_eq0_thumb1_insn): Likewise.
11262 (cstoresi_nltu_thumb1): Likewise.
11263 (cstoresi_ltu_thu): Likewise.
11264 (thumb1_addsi3_addgeu): Likewise.
11265 (*arm_jump): Likewise.
11266 (*thumb_jump): Likewise.
11267 (*check_arch2): Likewise.
11268 (arm_casesi_internal): Likewise.
11269 (thumb1_casesi_dispatch): Likewise.
11270 (*arm_indirect_jump): Likewise.
11271 (*thumb1_indirect_jump): Likewise.
11273 (*and_scc): Likewise.
11274 (*ior_scc): Likewise.
11275 (*compare_scc): Likewise.
11276 (*cond_move): Likewise.
11277 (*cond_arith): Likewise.
11278 (*cond_sub): Likewise.
11279 (*cmp_ite0): Likewise.
11280 (*cmp_ite1): Likewise.
11281 (*cmp_and): Likewise.
11282 (*cmp_ior): Likewise.
11283 (*ior_scc_scc): Likewise.
11284 (*ior_scc_scc_cmp): Likewise.
11285 (*and_scc_scc): Likewise.
11286 (*and_scc_scc_cmp): Likewise.
11287 (*and_scc_scc_nod): Likewise.
11288 (*negscc): Likewise.
11289 (movcond_addsi): Likewise.
11290 (movcond): Likewise.
11291 (*ifcompare_plus_move): Likewise.
11292 (*if_plus_move): Likewise.
11293 (*ifcompare_move_plus): Likewise.
11294 (*if_move_plus): Likewise.
11295 (*ifcompare_arith_arith): Likewise.
11296 (*if_arith_arith): Likewise.
11297 (*ifcompare_arith_move): Likewise.
11298 (*if_arith_move): Likewise.
11299 (*ifcompare_move_arith): Likewise.
11300 (*if_move_arith): Likewise.
11301 (*ifcompare_move_not): Likewise.
11302 (*if_move_not): Likewise.
11303 (*ifcompare_not_move): Likewise.
11304 (*if_not_move): Likewise.
11305 (*ifcompare_shift_move): Likewise.
11306 (*if_shift_move): Likewise.
11307 (*ifcompare_move_shift): Likewise.
11308 (*if_move_shift): Likewise.
11309 (*ifcompare_shift_shift): Likewise.
11310 (*ifcompare_not_arith): Likewise.
11311 (*ifcompare_arith_not): Likewise.
11312 (*if_arith_not): Likewise.
11313 (*ifcompare_neg_move): Likewise.
11314 (*if_neg_move): Likewise.
11315 (*ifcompare_move_neg): Likewise.
11316 (*if_move_neg): Likewise.
11317 (prologue_thumb1_interwork): Likewise.
11318 (*cond_move_not): Likewise.
11319 (*sign_extract_onebit): Likewise.
11320 (*not_signextract_onebit): Likewise.
11321 (stack_tie): Likewise.
11322 (align_4): Likewise.
11323 (align_8): Likewise.
11324 (consttable_end): Likewise.
11325 (consttable_1): Likewise.
11326 (consttable_2): Likewise.
11327 (consttable_4): Likewise.
11328 (consttable_8): Likewise.
11329 (consttable_16): Likewise.
11330 (*thumb1_tablejump): Likewise.
11331 (prefetch): Likewise.
11332 (force_register_use): Likewise.
11333 (thumb_eh_return): Likewise.
11334 (load_tp_hard): Likewise.
11335 (load_tp_soft): Likewise.
11336 (tlscall): Likewise.
11337 (*arm_movtas_ze): Likewise.
11338 (*arm_rev): Likewise.
11339 (*arm_revsh): Likewise.
11340 (*arm_rev16): Likewise.
11341 * config/arm/thumb2.md
11342 (*thumb2_smaxsi3): Likewise.
11343 (*thumb2_sminsi3): Likewise.
11344 (*thumb32_umaxsi3): Likewise.
11345 (*thumb2_uminsi3): Likewise.
11346 (*thumb2_negdi2): Likewise.
11347 (*thumb2_abssi2): Likewise.
11348 (*thumb2_neg_abss): Likewise.
11349 (*thumb2_movsi_insn): Likewise.
11350 (tls_load_dot_plus_four): Likewise.
11351 (*thumb2_movhi_insn): Likewise.
11352 (*thumb2_mov_scc): Likewise.
11353 (*thumb2_mov_negs): Likewise.
11354 (*thumb2_mov_negs): Likewise.
11355 (*thumb2_mov_nots): Likewise.
11356 (*thumb2_mov_nots): Likewise.
11357 (*thumb2_movsicc_): Likewise.
11358 (*thumb2_movsfcc_soft_insn): Likewise.
11359 (*thumb2_indirect_jump): Likewise.
11360 (*thumb2_and_scc): Likewise.
11361 (*thumb2_ior_scc): Likewise.
11362 (*thumb2_ior_scc_strict_it): Likewise.
11363 (*thumb2_cond_move): Likewise.
11364 (*thumb2_cond_arith): Likewise.
11365 (*thumb2_cond_ari): Likewise.
11366 (*thumb2_cond_sub): Likewise.
11367 (*thumb2_negscc): Likewise.
11368 (*thumb2_movcond): Likewise.
11369 (thumb2_casesi_internal): Likewise.
11370 (thumb2_casesi_internal_pic): Likewise.
11371 (*thumb2_alusi3_short): Likewise.
11372 (*thumb2_mov<mode>_shortim): Likewise.
11373 (*thumb2_addsi_short): Likewise.
11374 (*thumb2_subsi_short): Likewise.
11375 (thumb2_addsi3_compare0): Likewise.
11376 (*thumb2_cbz): Likewise.
11377 (*thumb2_cbnz): Likewise.
11378 (*thumb2_one_cmplsi2_short): Likewise.
11379 (*thumb2_negsi2_short): Likewise.
11380 (*orsi_notsi_si): Likewise.
11381 * config/arm/arm1020e.md: Update with new attributes.
11382 * config/arm/arm1026ejs.md: Update with new attributes.
11383 * config/arm/arm1136jfs.md: Update with new attributes.
11384 * config/arm/arm926ejs.md: Update with new attributes.
11385 * config/arm/cortex-a15.md: Update with new attributes.
11386 * config/arm/cortex-a5.md: Update with new attributes.
11387 * config/arm/cortex-a53.md: Update with new attributes.
11388 * config/arm/cortex-a7.md: Update with new attributes.
11389 * config/arm/cortex-a8.md: Update with new attributes.
11390 * config/arm/cortex-a9.md: Update with new attributes.
11391 * config/arm/cortex-m4.md: Update with new attributes.
11392 * config/arm/cortex-r4.md: Update with new attributes.
11393 * config/arm/fa526.md: Update with new attributes.
11394 * config/arm/fa606te.md: Update with new attributes.
11395 * config/arm/fa626te.md: Update with new attributes.
11396 * config/arm/fa726te.md: Update with new attributes.
11398 2013-09-06 James Greenhalgh <james.greenhalgh@arm.com>
11400 * config/aarch64/aarch64-simd.md
11401 (aarch64_sqdml<SBINQOPS:as>l_n<mode>_internal): Use
11402 <vwx> iterator to ensure correct register choice.
11403 (aarch64_sqdml<SBINQOPS:as>l2_n<mode>_internal): Likewise.
11404 (aarch64_sqdmull_n<mode>): Likewise.
11405 (aarch64_sqdmull2_n<mode>_internal): Likewise.
11406 * config/aarch64/arm_neon.h
11407 (vml<as><q>_lane<q>_<su>16): Use 'x' constraint for element vector.
11408 (vml<as><q>_n_<su>16): Likewise.
11409 (vml<as>l_high_lane<q>_<su>16): Likewise.
11410 (vml<as>l_high_n_<su>16): Likewise.
11411 (vml<as>l_lane<q>_<su>16): Likewise.
11412 (vml<as>l_n_<su>16): Likewise.
11413 (vmul<q>_lane<q>_<su>16): Likewise.
11414 (vmul<q>_n_<su>16): Likewise.
11415 (vmull_lane<q>_<su>16): Likewise.
11416 (vmull_n_<su>16): Likewise.
11417 (vmull_high_lane<q>_<su>16): Likewise.
11418 (vmull_high_n_<su>16): Likewise.
11419 (vqrdmulh<q>_n_s16): Likewise.
11421 2013-09-06 Tejas Belagod <tejas.belagod@arm.com>
11423 * config/aarch64/arm_neon.h: Fix all vdup<bhsd_lane<q> intrinsics to
11424 have the correct lane parameter.
11426 2013-09-06 Richard Biener <rguenther@suse.de>
11428 * cfganal.c (control_dependences::~control_dependences):
11429 Properly free all of the vector.
11431 2013-09-06 Kirill Yukhin <kirill.yukhin@intel.com>
11434 * config/i386/i386.c (ix86_conditional_register_usage):
11435 Proper initialize extended SSE registers.
11437 2013-09-06 Jan Hubicka <jh@suse.cz>
11439 PR tree-optimization/58311
11440 * ipa-devirt.c (gate_ipa_devirt): Only execute when optimizing.
11442 2013-09-06 Jan Hubicka <jh@suse.cz>
11444 * Makefile.in (tree-sra.o): Update dependencies.
11445 * tree-sra.c: Include ipa-utils.h
11446 (scan_function): Use recursive_call_p.
11447 (has_caller_p): New function.
11448 (cgraph_for_node_and_aliases): Count also callers of aliases.
11450 2013-09-06 Jan Hubicka <jh@suse.cz>
11452 PR middle-end/58094
11453 * cgraph.h (symtab_semantically_equivalent_p): Declare.
11454 * tree-tailcall.c: Include ipa-utils.h.
11455 (find_tail_calls): Use it.
11456 * ipa-pure-const.c (check_call): Likewise.
11457 * ipa-utils.c (recursive_call_p): New function.
11458 * ipa-utils.h (recursive_call_p): Dclare.
11459 * symtab.c (symtab_nonoverwritable_alias): Fix formatting.
11460 (symtab_semantically_equivalent_p): New function.
11461 * Makefile.in (tree-tailcall.o): Update dependencies.
11463 2013-09-06 Eric Botcazou <ebotcazou@adacore.com>
11465 * ipa-split.c (split_function): Set DECL_NO_INLINE_WARNING_P on the
11466 non-inlinable part.
11468 2013-09-06 Richard Biener <rguenther@suse.de>
11470 * lto-streamer.h (lto_global_var_decls): Remove.
11471 * Makefile.in (OBJS): Remove lto-symtab.o.
11472 (lto-symtab.o): Remove.
11473 (GTFILES): Remove lto-symtab.c
11474 * lto-symtab.c: Move to lto/
11476 2013-09-06 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
11478 * config/s390/s390.md (UNSPEC_FPINT_FLOOR, UNSPEC_FPINT_BTRUNC)
11479 (UNSPEC_FPINT_ROUND, UNSPEC_FPINT_CEIL, UNSPEC_FPINT_NEARBYINT)
11480 (UNSPEC_FPINT_RINT): New constant definitions.
11481 (FPINT, fpint_name, fpint_roundingmode): New integer iterator
11482 definition with 2 attributes.
11483 ("<FPINT:fpint_name><BFP:mode>2", "rint<BFP:mode>2")
11484 ("<FPINT:fpint_name><DFP:mode>2", "rint<DFP:mode>2"): New pattern
11487 2013-09-06 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
11489 * config/s390/s390.md: Add "bcr_flush" value to mnemonic attribute.
11490 ("mem_thread_fence_1"): Use bcr 14,0 for z196 and later.
11491 Set the mnemonic attribute to "bcr_flush". Set the "z196prop"
11492 attribute to "z196_alone".
11493 * config/s390/2827.md: Add "bcr_flush" to "ooo_groupalone" and
11496 2013-09-06 Richard Biener <rguenther@suse.de>
11498 * basic-block.h (class control_dependences): New.
11499 * tree-ssa-dce.c (control_dependence_map): Remove.
11501 (EXECUTE_IF_CONTROL_DEPENDENT): Remove.
11502 (set_control_dependence_map_bit, clear_control_dependence_bitmap,
11503 find_pdom, find_control_dependence, find_all_control_dependences):
11505 (mark_control_dependent_edges_necessary,
11506 find_obviously_necessary_stmts, propagate_necessity, tree_dce_init,
11507 tree_dce_done, perform_tree_ssa_dce): Adjust.
11508 * cfganal.c (set_control_dependence_map_bit,
11509 clear_control_dependence_bitmap, find_pdom, find_control_dependence,
11510 find_all_control_dependences): Move from tree-ssa-dce.c and
11511 implement as methods of control_dependences class.
11512 (control_dependences::control_dependences): New.
11513 (control_dependences::~control_dependences): Likewise.
11514 (control_dependences::get_edges_dependent_on): Likewise.
11515 (control_dependences::get_edge): Likewise.
11517 2013-09-04 Jan Hubicka <jh@suse.cz>
11519 * tree.c (types_same_for_odr): Drop overactive check.
11520 * ipa-devirt.c (hash_type_name): Likewise.
11522 2013-09-04 Jan Hubicka <jh@suse.cz>
11524 * cgraphunit.c (walk_polymorphic_call_targets): Break out from ...
11525 (analyze_functions): ... here.
11527 2013-09-04 Jan Hubicka <jh@suse.cz>
11529 PR middle-end/58201
11530 * cgraphunit.c (analyze_functions): Clear AUX fields
11531 after processing; initialize assembler name has.
11533 2013-09-05 Jeff Law <law@redhat.com>
11535 * tree-ssa-threadedge.c (thread_around_empty_blocks): Renamed
11536 from thread_around_empty_block. Record threading path into PATH.
11537 Recurse if threading through the initial block is successful.
11538 (thread_across_edge): Corresponding changes to slightly simplify.
11540 2013-09-05 James Greenhalgh <james.greenhalgh@arm.com>
11542 * config/aarch64/aarch64.md
11543 (type): Remove frecpe, frecps, frecpx.
11544 (aarch64_frecp<FRECP:frecp_suffix><mode>): Move to aarch64-simd.md,
11545 fix to be a TARGET_SIMD instruction.
11546 (aarch64_frecps): Remove.
11547 * config/aarch64/aarch64-simd.md
11548 (aarch64_frecp<FRECP:frecp_suffix><mode>): New, moved from aarch64.md
11549 (aarch64_frecps<mode>): Handle all float/vector of float modes.
11551 2013-09-05 James Greenhalgh <james.greenhalgh@arm.com>
11552 Sofiane Naci <sofiane.naci@arm.com>
11554 * config/arm/types.md (define_attr "type"): Expand "arlo_imm"
11555 into "adr", "alu_imm", "alus_imm", "logic_imm", "logics_imm".
11556 Expand "arlo_reg" into "adc_reg", "adc_imm", "adcs_reg", "adcs_imm",
11557 "alu_ext", "alu_reg", "alus_ext", "alus_reg", "bfm", "csel",
11558 "logic_reg", "logics_reg", "rev". Expand "arlo_shift" into
11559 "alu_shift_imm", "alus_shift_imm", "logic_shift_imm",
11560 "logics_shift_imm". Expand "arlo_shift_reg" into "alu_shift_reg",
11561 "alus_shift_reg", "logic_shift_reg", "logics_shift_reg". Expand "clz"
11562 into "clz, "rbit". Rename "shift" to "shift_imm".
11563 * config/arm/arm.md (define_attr "core_cycles"): Update for attribute
11564 changes. Update for attribute changes all occurrences of arlo_* and
11566 * config/arm/arm-fixed.md: Update for attribute changes
11567 all occurrences of arlo_* types.
11568 * config/arm/thumb2.md: Update for attribute changes all occurrences
11570 * config/arm/arm.c (xscale_sched_adjust_cost): (rtx insn, rtx
11571 (cortexa7_older_only): Likewise.
11572 (cortexa7_younger): Likewise.
11573 * config/arm/arm1020e.md (1020alu_op): Update for attribute changes.
11574 (1020alu_shift_op): Likewise.
11575 (1020alu_shift_reg_op): Likewise.
11576 * config/arm/arm1026ejs.md (alu_op): Update for attribute changes.
11577 (alu_shift_op): Likewise.
11578 (alu_shift_reg_op): Likewise.
11579 * config/arm/arm1136jfs.md (11_alu_op): Update for attribute changes.
11580 (11_alu_shift_op): Likewise.
11581 (11_alu_shift_reg_op): Likewise.
11582 * config/arm/arm926ejs.md (9_alu_op): Update for attribute changes.
11583 (9_alu_shift_reg_op): Likewise.
11584 * config/arm/cortex-a15.md (cortex_a15_alu): Update for
11586 (cortex_a15_alu_shift): Likewise.
11587 (cortex_a15_alu_shift_reg): Likewise.
11588 * config/arm/cortex-a5.md (cortex_a5_alu): Update for
11590 (cortex_a5_alu_shift): Likewise.
11591 * config/arm/cortex-a53.md (cortex_a53_alu): Update for
11593 (cortex_a53_alu_shift): Likewise.
11594 * config/arm/cortex-a7.md (cortex_a7_alu_imm): Update for
11596 (cortex_a7_alu_reg): Likewise.
11597 (cortex_a7_alu_shift): Likewise.
11598 * config/arm/cortex-a8.md (cortex_a8_alu): Update for
11600 (cortex_a8_alu_shift): Likewise.
11601 (cortex_a8_alu_shift_reg): Likewise.
11602 * config/arm/cortex-a9.md (cortex_a9_dp): Update for attribute changes.
11603 (cortex_a9_dp_shift): Likewise.
11604 * config/arm/cortex-m4.md (cortex_m4_alu): Update for
11606 * config/arm/cortex-r4.md
11607 (cortex_r4_alu): Update for attribute changes.
11608 (cortex_r4_mov): Likewise.
11609 (cortex_r4_alu_shift_reg): Likewise.
11610 * config/arm/fa526.md (526_alu_op): Update for attribute changes.
11611 (526_alu_shift_op): Likewise.
11612 * config/arm/fa606te.md (606te_alu_op): Update for attribute changes.
11613 * config/arm/fa626te.md (626te_alu_op): Update for attribute changes.
11614 (626te_alu_shift_op): Likewise.
11615 * config/arm/fa726te.md (726te_alu_op): Update for attribute changes.
11616 (726te_alu_shift_op): Likewise.
11617 (726te_alu_shift_reg_op): Likewise.
11618 * config/arm/fmp626.md (mp626_alu_op): Update for attribute changes.
11619 (mp626_alu_shift_op): Likewise.
11620 * config/arm/marvell-pj4.md (pj4_alu): Update for attribute changes.
11621 (pj4_alu_conds): Likewise.
11622 (pj4_shift): Likewise.
11623 (pj4_shift_conds): Likewise.
11624 (pj4_alu_shift): Likewise.
11625 (pj4_alu_shift_conds): Likewise.
11626 * config/aarch64/aarch64.md: Update for attribute change
11627 all occurrences of arlo_* and shift* types.
11629 2013-09-05 Mike Stump <mikestump@comcast.net>
11631 * tree.h: Move documentation for tree_function_decl to tree-core.h
11632 with the declaration.
11634 2013-09-05 Peter Bergner <bergner@vnet.ibm.com>
11637 * reginfo.c (choose_hard_reg_mode): Scan through all mode classes
11638 looking for widest mode.
11640 2013-09-05 Eric Botcazou <ebotcazou@adacore.com>
11642 * config.gcc (*-*-vxworks*): Do not override an existing extra_objs.
11644 2013-09-05 Richard Biener <rguenther@suse.de>
11646 PR tree-optimization/58137
11647 * tree-vect-stmts.c (get_vectype_for_scalar_type_and_size):
11648 Do not create vectors of pointers.
11649 * tree-vect-loop.c (get_initial_def_for_induction): Use proper
11650 types for the components of the vector initializer.
11651 * tree-cfg.c (verify_gimple_assign_binary): Remove special-casing
11652 allowing pointer vectors with PLUS_EXPR/MINUS_EXPR.
11654 2013-09-05 Martin Jambor <mjambor@suse.cz>
11656 * ipa-prop.c (remove_described_reference): Accept missing references,
11657 return false if that hppens, otherwise return true.
11658 (cgraph_node_for_jfunc): New function.
11659 (try_decrement_rdesc_refcount): Likewise.
11660 (try_make_edge_direct_simple_call): Use them.
11661 (ipa_edge_removal_hook): Remove references from rdescs.
11662 (ipa_edge_duplication_hook): Clone rdescs and their references
11663 when the new edge has the same caller as the old one.
11664 * cgraph.c (cgraph_resolve_speculation): Remove speculative
11665 reference before removing any edges.
11667 2013-09-05 Richard Earnshaw <rearnsha@arm.com>
11669 * arm.c (thumb2_emit_strd_push): Rewrite to use pre-decrement on
11671 * thumb2.md (thumb2_storewb_parisi): New pattern.
11673 2013-09-05 Yufeng Zhang <yufeng.zhang@arm.com>
11675 * config/aarch64/aarch64-option-extensions.def: Add
11676 AARCH64_OPT_EXTENSION of 'crc'.
11677 * config/aarch64/aarch64.h (AARCH64_FL_CRC): New define.
11678 (AARCH64_ISA_CRC): Ditto.
11679 * doc/invoke.texi (-march and -mcpu feature modifiers): Add
11680 description of the CRC extension.
11682 2013-09-05 Alexander Ivchenko <alexander.ivchenko@intel.com>
11684 * config/rs6000/linux64.h: Define OPTION_BIONIC and OPTION_UCLIBC.
11685 * config/rs6000/linux.h: Ditto.
11686 * alpha/linux.h: Ditto.
11687 * config/bfin/uclinux.h: Define TARGET_LIBC_HAS_FUNCTION as
11688 no_c99_libc_has_function.
11689 * config/c6x/uclinux-elf.h: Ditto.
11690 * config/lm32/uclinux-elf.h: Ditto.
11691 * config/m68k/uclinux.h: Ditto.
11692 * config/moxie/uclinux.h: Ditto.
11693 * config.gcc (bfin*-linux-uclibc*): Add t-linux-android to tmake_file.
11694 (crisv32-*-linux*, cris-*-linux*): Ditto.
11695 * config/bfin/bfin.c: Include "tm_p.h".
11697 2013-09-05 Richard Biener <rguenther@suse.de>
11699 * tree-vect-loop.c (vect_analyze_loop_operations): Properly
11700 check for a definition without a basic-block.
11702 2013-09-05 James Greenhalgh <james.greenhalgh@arm.com>
11703 Sofiane Naci <sofiane.naci@arm.com>
11705 * config/aarch64/aarch64.md
11706 (*movti_aarch64): Rename r_2_f and f_2_r.
11707 (*movsf_aarch64): Likewise.
11708 (*movdf_aarch64): Likewise.
11709 (*movtf_aarch64): Likewise.
11710 (aarch64_movdi_<mode>low): Likewise.
11711 (aarch64_movdi_<mode>high): Likewise.
11712 (aarch64_mov<mode>high_di): Likewise.
11713 (aarch64_mov<mode>low_di): Likewise.
11714 (aarch64_movtilow_tilow): Likewise.
11715 * config/arm/arm.md (attribute "neon_type"): Delete. Move attribute
11716 values to config/arm/types.md
11717 (attribute "conds"): Update for attribute change.
11718 (anddi3_insn): Likewise.
11719 (iordi3_insn): Likewise.
11720 (xordi3_insn): Likewise.
11721 (one_cmpldi2): Likewise.
11722 * config/arm/types.md (type): Add Neon types.
11723 * config/arm/neon.md (neon_mov<mode>): Remove "neon_type" attribute,
11724 use "type" attribute.
11725 (movmisalign<mode>_neon_store): Likewise.
11726 (movmisalign<mode>_neon_load): Likewise.
11727 (vec_set<mode>_internal): Likewise.
11728 (vec_setv2di_internal): Likewise.
11729 (vec_extract<mode>): Likewise.
11730 (vec_extractv2di): Likewise.
11731 (add<mode>3_neon): Likewise.
11732 (adddi3_neon): Likewise.
11733 (sub<mode>3_neon): Likewise.
11734 (subdi3_neon): Likewise.
11735 (mul<mode>3_neon): Likewise.
11736 (mul<mode>3add<mode>_neon): Likewise.
11737 (mul<mode>3neg<mode>add<mode>_neon): Likewise.
11738 (fma<VCVTF:mode>4)): Likewise.
11739 (fma<VCVTF:mode>4_intrinsic): Likewise.
11740 (fmsub<VCVTF:mode>4)): Likewise.
11741 (fmsub<VCVTF:mode>4_intrinsic): Likewise.
11742 (neon_vrint<NEON_VRINT:nvrint_variant><VCVTF:mode>): Likewise.
11743 (ior<mode>3): Likewise.
11744 (and<mode>3): Likewise.
11745 (anddi3_neon): Likewise.
11746 (orn<mode>3_neon): Likewise.
11747 (orndi3_neon): Likewise.
11748 (bic<mode>3_neon): Likewise.
11749 (bicdi3_neon): Likewise.
11750 (xor<mode>3): Likewise.
11751 (one_cmpl<mode>2): Likewise.
11752 (abs<mode>2): Likewise.
11753 (neg<mode>2): Likewise.
11754 (umin<mode>3_neon): Likewise.
11755 (umax<mode>3_neon): Likewise.
11756 (smin<mode>3_neon): Likewise.
11757 (smax<mode>3_neon): Likewise.
11758 (vashl<mode>3): Likewise.
11759 (vashr<mode>3_imm): Likewise.
11760 (vlshr<mode>3_imm): Likewise.
11761 (ashl<mode>3_signed): Likewise.
11762 (ashl<mode>3_unsigned): Likewise.
11763 (neon_load_count): Likewise.
11764 (ashldi3_neon_noclobber): Likewise.
11765 (signed_shift_di3_neon): Likewise.
11766 (unsigned_shift_di3_neon): Likewise.
11767 (ashrdi3_neon_imm_noclobber): Likewise.
11768 (lshrdi3_neon_imm_noclobber): Likewise.
11769 (widen_ssum<mode>3): Likewise.
11770 (widen_usum<mode>3): Likewise.
11771 (quad_halves_<code>v4si): Likewise.
11772 (quad_halves_<code>v4sf): Likewise.
11773 (quad_halves_<code>v8hi): Likewise.
11774 (quad_halves_<code>v16qi): Likewise.
11775 (reduc_splus_v2di): Likewise.
11776 (neon_vpadd_internal<mode>): Likewise.
11777 (neon_vpsmin<mode>): Likewise.
11778 (neon_vpsmax<mode>): Likewise.
11779 (neon_vpumin<mode>): Likewise.
11780 (neon_vpumax<mode>): Likewise.
11781 (ss_add<mode>_neon): Likewise.
11782 (us_add<mode>_neon): Likewise.
11783 (ss_sub<mode>_neon): Likewise.
11784 (us_sub<mode>_neon): Likewise.
11785 (neon_vadd<mode>_unspec): Likewise.
11786 (neon_vaddl<mode>): Likewise.
11787 (neon_vaddw<mode>): Likewise.
11788 (neon_vhadd<mode>): Likewise.
11789 (neon_vqadd<mode>): Likewise.
11790 (neon_vaddhn<mode>): Likewise.
11791 (neon_vmul<mode>): Likewise.
11792 (neon_vmla<mode>): Likewise.
11793 (neon_vmlal<mode>): Likewise.
11794 (neon_vmls<mode>): Likewise.
11795 (neon_vmlsl<mode>): Likewise.
11796 (neon_vqdmulh<mode>): Likewise.
11797 (neon_vqdmlal<mode>): Likewise.
11798 (neon_vqdmlsl<mode>): Likewise.
11799 (neon_vmull<mode>): Likewise.
11800 (neon_vqdmull<mode>): Likewise.
11801 (neon_vsub<mode>_unspec): Likewise.
11802 (neon_vsubl<mode>): Likewise.
11803 (neon_vsubw<mode>): Likewise.
11804 (neon_vqsub<mode>): Likewise.
11805 (neon_vhsub<mode>): Likewise.
11806 (neon_vsubhn<mode>): Likewise.
11807 (neon_vceq<mode>): Likewise.
11808 (neon_vcge<mode>): Likewise.
11809 (neon_vcgeu<mode>): Likewise.
11810 (neon_vcgt<mode>): Likewise.
11811 (neon_vcgtu<mode>): Likewise.
11812 (neon_vcle<mode>): Likewise.
11813 (neon_vclt<mode>): Likewise.
11814 (neon_vcage<mode>): Likewise.
11815 (neon_vcagt<mode>): Likewise.
11816 (neon_vtst<mode>): Likewise.
11817 (neon_vabd<mode>): Likewise.
11818 (neon_vabdl<mode>): Likewise.
11819 (neon_vaba<mode>): Likewise.
11820 (neon_vabal<mode>): Likewise.
11821 (neon_vmax<mode>): Likewise.
11822 (neon_vmin<mode>): Likewise.
11823 (neon_vpaddl<mode>): Likewise.
11824 (neon_vpadal<mode>): Likewise.
11825 (neon_vpmax<mode>): Likewise.
11826 (neon_vpmin<mode>): Likewise.
11827 (neon_vrecps<mode>): Likewise.
11828 (neon_vrsqrts<mode>): Likewise.
11829 (neon_vqabs<mode>): Likewise.
11830 (neon_vqneg<mode>): Likewise.
11831 (neon_vcls<mode>): Likewise.
11832 (clz<mode>2): Likewise.
11833 (popcount<mode>2): Likewise.
11834 (neon_vrecpe): Likewise.
11835 (neon_vrsqrte): Likewise.
11836 (neon_vget_lane<mode>_sext_internal): Likewise.
11837 (neon_vget_lane<mode>_zext_internal): Likewise.
11838 (neon_vdup_n<mode>): Likewise.
11839 (neon_vdup_nv2di): Likewise.
11840 (neon_vdpu_lane<mode>_internal): Likewise.
11841 (neon_vswp<mode>): Likewise.
11842 (float<mode><V_cvtto>2): Likewise.
11843 (floatuns<mode><V_cvtto>2): Likewise.
11844 (fix_trunc<mode><V_cvtto>)2): Likewise
11845 (fixuns_trunc<mode><V_cvtto)2): Likewise.
11846 (neon_vcvt<mode>): Likewise.
11847 (neon_vcvtv4sfv4hf): Likewise.
11848 (neon_vcvtv4hfv4sf): Likewise.
11849 (neon_vcvt_n<mode>): Likewise.
11850 (neon_vmovn<mode>): Likewise.
11851 (neon_vqmovn<mode>): Likewise.
11852 (neon_vqmovun<mode>): Likewise.
11853 (neon_vmovl<mode>): Likewise.
11854 (neon_vmul_lane<mode>): Likewise.
11855 (neon_vmull_lane<mode>): Likewise.
11856 (neon_vqdmull_lane<mode>): Likewise.
11857 (neon_vqdmulh_lane<mode>): Likewise.
11858 (neon_vmla_lane<mode>): Likewise.
11859 (neon_vmlal_lane<mode>): Likewise.
11860 (neon_vqdmlal_lane<mode>): Likewise.
11861 (neon_vmls_lane<mode>): Likewise.
11862 (neon_vmlsl_lane<mode>): Likewise.
11863 (neon_vqdmlsl_lane<mode>): Likewise.
11864 (neon_vext<mode>): Likewise.
11865 (neon_vrev64<mode>): Likewise.
11866 (neon_vrev32<mode>): Likewise.
11867 (neon_vrev16<mode>): Likewise.
11868 (neon_vbsl<mode>_internal): Likewise.
11869 (neon_vshl<mode>): Likewise.
11870 (neon_vqshl<mode>): Likewise.
11871 (neon_vshr_n<mode>): Likewise.
11872 (neon_vshrn_n<mode>): Likewise.
11873 (neon_vqshrn_n<mode>): Likewise.
11874 (neon_vqshrun_n<mode>): Likewise.
11875 (neon_vshl_n<mode>): Likewise.
11876 (neon_vqshl_n<mode>): Likewise.
11877 (neon_vqshlu_n<mode>): Likewise.
11878 (neon_vshll_n<mode>): Likewise.
11879 (neon_vsra_n<mode>): Likewise.
11880 (neon_vsri_n<mode>): Likewise.
11881 (neon_vsli_n<mode>): Likewise.
11882 (neon_vtbl1v8qi): Likewise.
11883 (neon_vtbl2v8qi): Likewise.
11884 (neon_vtbl3v8qi): Likewise.
11885 (neon_vtbl4v8qi): Likewise.
11886 (neon_vtbx1v8qi): Likewise.
11887 (neon_vtbx2v8qi): Likewise.
11888 (neon_vtbx3v8qi): Likewise.
11889 (neon_vtbx4v8qi): Likewise.
11890 (neon_vtrn<mode>_internal): Likewise.
11891 (neon_vzip<mode>_internal): Likewise.
11892 (neon_vuzp<mode>_internal): Likewise.
11893 (neon_vld1<mode>): Likewise.
11894 (neon_vld1_lane<mode>): Likewise.
11895 (neon_vld1_dup<mode>): Likewise.
11896 (neon_vld1_dupv2di): Likewise.
11897 (neon_vst1<mode>): Likewise.
11898 (neon_vst1_lane<mode>): Likewise.
11899 (neon_vld2<mode>): Likewise.
11900 (neon_vld2_lane<mode>): Likewise.
11901 (neon_vld2_dup<mode>): Likewise.
11902 (neon_vst2<mode>): Likewise.
11903 (neon_vst2_lane<mode>): Likewise.
11904 (neon_vld3<mode>): Likewise.
11905 (neon_vld3qa<mode>): Likewise.
11906 (neon_vld3qb<mode>): Likewise.
11907 (neon_vld3_lane<mode>): Likewise.
11908 (neon_vld3_dup<mode>): Likewise.
11909 (neon_vst3<mode>): Likewise.
11910 (neon_vst3qa<mode>): Likewise.
11911 (neon_vst3qb<mode>): Likewise.
11912 (neon_vst3_lane<mode>): Likewise.
11913 (neon_vld4<mode>): Likewise.
11914 (neon_vld4qa<mode>): Likewise.
11915 (neon_vld4qb<mode>): Likewise.
11916 (neon_vld4_lane<mode>): Likewise.
11917 (neon_vld4_dup<mode>): Likewise.
11918 (neon_vst4<mode>): Likewise.
11919 (neon_vst4qa<mode>): Likewise.
11920 (neon_vst4qb<mode>): Likewise.
11921 (neon_vst4_lane<mode>): Likewise.
11922 (neon_vec_unpack<US>_lo_<mode>): Likewise.
11923 (neon_vec_unpack<US>_hi_<mode>): Likewise.
11924 (neon_vec_<US>mult_lo_<mode>): Likewise.
11925 (neon_vec_<US>mult_hi_<mode>): Likewise.
11926 (neon_vec_<US>shiftl_<mode>): Likewise.
11927 (neon_unpack<US>_<mode>): Likewise.
11928 (neon_vec_<US>mult_<mode>): Likewise.
11929 (vec_pack_trunc_<mode>): Likewise.
11930 (neon_vec_pack_trunk_<mode>): Likewise.
11931 (neon_vabd<mode>_2): Likewise.
11932 (neon_vabd<mode>_3): Likewise.
11933 * config/arm/vfp.md (arm_movsi_vfp): Update for attribute changes.
11934 (thumb2_movsi_vfp): Likewise.
11935 (movdi_vfp): Likewise.
11936 (movdi_vfp_cortexa8): Likewise.
11937 (movhf_vfp_neon): Likewise.
11938 (movhf_vfp): Likewiwse.
11939 (movsf_vfp): Likewiwse.
11940 (thumb2_movsf_vfp): Likewiwse.
11941 (movdf_vfp): Likewise.
11942 (thumb2_movdf_vfp): Likewise.
11943 (movsfcc_vfp): Likewise.
11944 (thumb2_movsfcc_vfp): Likewise.
11945 (movdfcc_vfp): Likewise.
11946 (thumb2_movdfcc_vfp): Likewise.
11947 * config/arm/arm.c (cortexa7_older_only): Update for attribute change.
11948 * config/arm/arm1020e.md (v10_c2v): Update for attribute change.
11949 (v10_v2c): Likewise.
11950 * config/arm/cortex-a15-neon.md (cortex_a15_neon_int_1): Update for
11952 (cortex_a15_neon_int_2): Likewise.
11953 (cortex_a15_neon_int_3): Likewise.
11954 (cortex_a15_neon_int_4): Likewise.
11955 (cortex_a15_neon_int_5): Likewise.
11956 (cortex_a15_neon_vqneg_vqabs): Likewise.
11957 (cortex_a15_neon_vmov): Likewise.
11958 (cortex_a15_neon_vaba): Likewise.
11959 (cortex_a15_neon_vaba_qqq): Likewise.
11960 (cortex_a15_neon_mul_ddd_8_16_qdd_16_8_long_32_16_long): Likewise.
11961 (cortex_a15_neon_mul_qqq_8_16_32_ddd_32): Likewise.
11962 (cortex_a15_neon_mul_qdd_64_32_long_qqd_16_ddd_32_\
11963 scalar_64_32_long_scalar): Likewise.
11964 (cortex_a15_neon_mla_ddd_8_16_qdd_16_8_long_32_16_long): Likewise.
11965 (cortex_a15_neon_mla_qqq_8_16): Likewise.
11966 (cortex_a15_neon_mla_ddd_32_qqd_16_ddd_32_scalar_qdd_64_32_\
11967 lotype_qdd_64_32_long): Likewise.
11968 (cortex_a15_neon_mla_qqq_32_qqd_32_scalar): Likewise.
11969 (cortex_a15_neon_mul_ddd_16_scalar_32_16_long_scalar): Likewise.
11970 (cortex_a15_neon_mul_qqd_32_scalar): Likewise.
11971 (cortex_a15_neon_mla_ddd_16_scalar_qdd_32_16_long_scalar): Likewise.
11972 (cortex_a15_neon_shift_1): Likewise.
11973 (cortex_a15_neon_shift_2): Likewise.
11974 (cortex_a15_neon_shift_3): Likewise.
11975 (cortex_a15_neon_vshl_ddd): Likewise.
11976 (cortex_a15_neon_vqshl_vrshl_vqrshl_qqq): Likewise.
11977 (cortex_a15_neon_vsra_vrsra): Likewise.
11978 (cortex_a15_neon_fp_vadd_ddd_vabs_dd): Likewise.
11979 (cortex_a15_neon_fp_vadd_qqq_vabs_qq): Likewise.
11980 (cortex_a15_neon_fp_vmul_ddd): Likewise.
11981 (cortex_a15_neon_fp_vmul_qqd): Likewise.
11982 (cortex_a15_neon_fp_vmla_ddd): Likewise.
11983 (cortex_a15_neon_fp_vmla_qqq): Likewise.
11984 (cortex_a15_neon_fp_vmla_ddd_scalar): Likewise.
11985 (cortex_a15_neon_fp_vmla_qqq_scalar): Likewise.
11986 (cortex_a15_neon_fp_vrecps_vrsqrts_ddd): Likewise.
11987 (cortex_a15_neon_fp_vrecps_vrsqrts_qqq): Likewise.
11988 (cortex_a15_neon_bp_simple): Likewise.
11989 (cortex_a15_neon_bp_2cycle): Likewise.
11990 (cortex_a15_neon_bp_3cycle): Likewise.
11991 (cortex_a15_neon_vld1_1_2_regs): Likewise.
11992 (cortex_a15_neon_vld1_3_4_regs): Likewise.
11993 (cortex_a15_neon_vld2_2_regs_vld1_vld2_all_lanes): Likewise.
11994 (cortex_a15_neon_vld2_4_regs): Likewise.
11995 (cortex_a15_neon_vld3_vld4): Likewise.
11996 (cortex_a15_neon_vst1_1_2_regs_vst2_2_regs): Likewise.
11997 (cortex_a15_neon_vst1_3_4_regs): Likewise.
11998 (cortex_a15_neon_vst2_4_regs_vst3_vst4): Likewise.
11999 (cortex_a15_neon_vst3_vst4): Likewise.
12000 (cortex_a15_neon_vld1_vld2_lane): Likewise.
12001 (cortex_a15_neon_vld3_vld4_lane" 10
12002 (cortex_a15_neon_vst1_vst2_lane): Likewise.
12003 (cortex_a15_neon_vst3_vst4_lane): Likewise.
12004 (cortex_a15_neon_vld3_vld4_all_lanes): Likewise.
12005 (cortex_a15_neon_ldm_2): Likewise.0
12006 (cortex_a15_neon_stm_2): Likewise.
12007 (cortex_a15_neon_mcr): Likewise.
12008 (cortex_a15_neon_mcr_2_mcrr): Likewise.
12009 (cortex_a15_neon_mrc): Likewise.
12010 (cortex_a15_neon_mrrc): Likewise.
12011 * config/arm/cortex-a15.md (cortex_a15_alu): Update for attribute
12013 (cortex_a15_alu_shift): Likewise.
12014 (cortex_a15_alu_shift_reg): Likewise.
12015 (cortex_a15_mult32): Likewise.
12016 (cortex_a15_mult64): Likewise.
12017 (cortex_a15_block): Likewise.
12018 (cortex_a15_branch): Likewise.
12019 (cortex_a15_load1): Likewise.
12020 (cortex_a15_load3): Likewise.
12021 (cortex_a15_store1): Likewise.
12022 (cortex_a15_store3): Likewise.
12023 (cortex_a15_call): Likewise.
12024 * config/arm/cortex-a5.md (cortex_a5_r2f): Update for attribute change.
12025 (cortex_a5_f2r): Likewise.
12026 * config/arm/cortex-a53.md (cortex_a53_r2f): Update for attribute
12028 (cortex_a53_f2r): Likewise.
12029 * config/arm/cortex-a7.md
12030 (cortex_a7_branch): Update for attribute change.
12031 (cortex_a7_call): Likewise.
12032 (cortex_a7_alu_imm): Likewise.
12033 (cortex_a7_alu_reg): Likewise.
12034 (cortex_a7_alu_shift): Likewise.
12035 (cortex_a7_mul): Likewise.
12036 (cortex_a7_load1): Likewise.
12037 (cortex_a7_store1): Likewise.
12038 (cortex_a7_load2): Likewise.
12039 (cortex_a7_store2): Likewise.
12040 (cortex_a7_load3): Likewise.
12041 (cortex_a7_store3): Likewise.
12042 (cortex_a7_load4): Likewise.
12043 (cortex_a7_store4): Likewise.
12044 (cortex_a7_fpalu): Likewise.
12045 (cortex_a7_fconst): Likewise.
12046 (cortex_a7_fpmuls): Likewise.
12047 (cortex_a7_neon_mul): Likewise.
12048 (cortex_a7_fpmacs): Likewise.
12049 (cortex_a7_neon_mla: Likewise.
12050 (cortex_a7_fpmuld: Likewise.
12051 (cortex_a7_fpmacd: Likewise.
12052 (cortex_a7_fpfmad: Likewise.
12053 (cortex_a7_fdivs: Likewise.
12054 (cortex_a7_fdivd: Likewise.
12055 (cortex_a7_r2f: Likewise.
12056 (cortex_a7_f2r: Likewise.
12057 (cortex_a7_f_flags: Likewise.
12058 (cortex_a7_f_loads: Likewise.
12059 (cortex_a7_f_loadd: Likewise.
12060 (cortex_a7_f_stores: Likewise.
12061 (cortex_a7_f_stored: Likewise.
12062 (cortex_a7_neon): Likewise.
12063 * config/arm/cortex-a8-neon.md
12064 (cortex_a8_neon_mrc): Update for attribute change.
12065 (cortex_a8_neon_mrrc): Likewise.
12066 (cortex_a8_neon_int_1): Likewise.
12067 (cortex_a8_neon_int_2): Likewise.
12068 (cortex_a8_neon_int_3): Likewise.
12069 (cortex_a8_neon_int_4): Likewise.
12070 (cortex_a8_neon_int_5): Likewise.
12071 (cortex_a8_neon_vqneg_vqabs): Likewise.
12072 (cortex_a8_neon_vmov): Likewise.
12073 (cortex_a8_neon_vaba): Likewise.
12074 (cortex_a8_neon_vaba_qqq): Likewise.
12075 (cortex_a8_neon_vsma): Likewise.
12076 (cortex_a8_neon_mul_ddd_8_16_qdd_16_8_long_32_16_long): Likewise.
12077 (cortex_a8_neon_mul_qqq_8_16_32_ddd_32): Likewise.
12078 (cortex_a8_neon_mul_qdd_64_32_long_qqd_16_ddd_32_scalar_64_32_\
12079 long_scalar): Likewise.
12080 (cortex_a8_neon_mla_ddd_8_16_qdd_16_8_long_32_16_long): Likewise.
12081 (cortex_a8_neon_mla_qqq_8_16): Likewise.
12082 (cortex_a8_neon_mla_ddd_32_qqd_16_ddd_32_scalar_qdd_64_32_\
12083 long_scalar_qdd_64_32_long): Likewise.
12084 (cortex_a8_neon_mla_qqq_32_qqd_32_scalar): Likewise.
12085 (cortex_a8_neon_mul_ddd_16_scalar_32_16_long_scalar): Likewise.
12086 (cortex_a8_neon_mul_qqd_32_scalar): Likewise.
12087 (cortex_a8_neon_mla_ddd_16_scalar_qdd_32_16_long_scalar): Likewise.
12088 (cortex_a8_neon_shift_1): Likewise.
12089 (cortex_a8_neon_shift_2): Likewise.
12090 (cortex_a8_neon_shift_3): Likewise.
12091 (cortex_a8_neon_vshl_ddd): Likewise.
12092 (cortex_a8_neon_vqshl_vrshl_vqrshl_qqq): Likewise.
12093 (cortex_a8_neon_vsra_vrsra): Likewise.
12094 (cortex_a8_neon_fp_vadd_ddd_vabs_dd): Likewise.
12095 (cortex_a8_neon_fp_vadd_qqq_vabs_qq): Likewise.
12096 (cortex_a8_neon_fp_vsum): Likewise.
12097 (cortex_a8_neon_fp_vmul_ddd): Likewise.
12098 (cortex_a8_neon_fp_vmul_qqd): Likewise.
12099 (cortex_a8_neon_fp_vmla_ddd): Likewise.
12100 (cortex_a8_neon_fp_vmla_qqq): Likewise.
12101 (cortex_a8_neon_fp_vmla_ddd_scalar): Likewise.
12102 (cortex_a8_neon_fp_vmla_qqq_scalar): Likewise.
12103 (cortex_a8_neon_fp_vrecps_vrsqrts_ddd): Likewise.
12104 (cortex_a8_neon_fp_vrecps_vrsqrts_qqq): Likewise.
12105 (cortex_a8_neon_bp_simple): Likewise.
12106 (cortex_a8_neon_bp_2cycle): Likewise.
12107 (cortex_a8_neon_bp_3cycle): Likewise.
12108 (cortex_a8_neon_ldr): Likewise.
12109 (cortex_a8_neon_str): Likewise.
12110 (cortex_a8_neon_vld1_1_2_regs): Likewise.
12111 (cortex_a8_neon_vld1_3_4_regs): Likewise.
12112 (cortex_a8_neon_vld2_2_regs_vld1_vld2_all_lanes): Likewise.
12113 (cortex_a8_neon_vld2_4_regs): Likewise.
12114 (cortex_a8_neon_vld3_vld4): Likewise.
12115 (cortex_a8_neon_vst1_1_2_regs_vst2_2_regs): Likewise.
12116 (cortex_a8_neon_vst1_3_4_regs): Likewise.
12117 (cortex_a8_neon_vst2_4_regs_vst3_vst4): Likewise.
12118 (cortex_a8_neon_vst3_vst4): Likewise.
12119 (cortex_a8_neon_vld1_vld2_lane): Likewise.
12120 (cortex_a8_neon_vld3_vld4_lane): Likewise.
12121 (cortex_a8_neon_vst1_vst2_lane): Likewise.
12122 (cortex_a8_neon_vst3_vst4_lane): Likewise.
12123 (cortex_a8_neon_vld3_vld4_all_lanes): Likewise.
12124 (cortex_a8_neon_mcr): Likewise.
12125 (cortex_a8_neon_mcr_2_mcrr): Likewise.
12126 * config/arm/cortex-a8.md (cortex_a8_alu): Update for attribute change.
12127 * config/arm/cortex-a9-neon.md (ca9_neon_mrc): Update for attribute
12129 (ca9_neon_mrrc): Likewise.
12130 (cortex_a9_neon_int_1): Likewise.
12131 (cortex_a9_neon_int_2): Likewise.
12132 (cortex_a9_neon_int_3): Likewise.
12133 (cortex_a9_neon_int_4): Likewise.
12134 (cortex_a9_neon_int_5): Likewise.
12135 (cortex_a9_neon_vqneg_vqabs): Likewise.
12136 (cortex_a9_neon_vmov): Likewise.
12137 (cortex_a9_neon_vaba): Likewise.
12138 (cortex_a9_neon_vaba_qqq): Likewise.
12139 (cortex_a9_neon_vsma): Likewise.
12140 (cortex_a9_neon_mul_ddd_8_16_qdd_16_8_long_32_16_long): Likewise.
12141 (cortex_a9_neon_mul_qqq_8_16_32_ddd_32): Likewise.
12142 (cortex_a9_neon_mul_qdd_64_32_long_qqd_16_ddd_32_scalar_64_32_\
12143 long_scalar): Likewise.
12144 (cortex_a9_neon_mla_ddd_8_16_qdd_16_8_long_32_16_long): Likewise.
12145 (cortex_a9_neon_mla_qqq_8_16): Likewise.
12146 (cortex_a9_neon_mla_ddd_32_qqd_16_ddd_32_scalar_qdd_64_32_\
12147 long_scalar_qdd_64_32_long): Likewise.
12148 (cortex_a9_neon_mla_qqq_32_qqd_32_scalar): Likewise.
12149 (cortex_a9_neon_mul_ddd_16_scalar_32_16_long_scalar): Likewise.
12150 (cortex_a9_neon_mul_qqd_32_scalar): Likewise.
12151 (cortex_a9_neon_mla_ddd_16_scalar_qdd_32_16_long_scalar): Likewise.
12152 (cortex_a9_neon_shift_1): Likewise.
12153 (cortex_a9_neon_shift_2): Likewise.
12154 (cortex_a9_neon_shift_3): Likewise.
12155 (cortex_a9_neon_vshl_ddd): Likewise.
12156 (cortex_a9_neon_vqshl_vrshl_vqrshl_qqq): Likewise.
12157 (cortex_a9_neon_vsra_vrsra): Likewise.
12158 (cortex_a9_neon_fp_vadd_ddd_vabs_dd): Likewise.
12159 (cortex_a9_neon_fp_vadd_qqq_vabs_qq): Likewise.
12160 (cortex_a9_neon_fp_vsum): Likewise.
12161 (cortex_a9_neon_fp_vmul_ddd): Likewise.
12162 (cortex_a9_neon_fp_vmul_qqd): Likewise.
12163 (cortex_a9_neon_fp_vmla_ddd): Likewise.
12164 (cortex_a9_neon_fp_vmla_qqq): Likewise.
12165 (cortex_a9_neon_fp_vmla_ddd_scalar): Likewise.
12166 (cortex_a9_neon_fp_vmla_qqq_scalar): Likewise.
12167 (cortex_a9_neon_fp_vrecps_vrsqrts_ddd): Likewise.
12168 (cortex_a9_neon_fp_vrecps_vrsqrts_qqq): Likewise.
12169 (cortex_a9_neon_bp_simple): Likewise.
12170 (cortex_a9_neon_bp_2cycle): Likewise.
12171 (cortex_a9_neon_bp_3cycle): Likewise.
12172 (cortex_a9_neon_ldr): Likewise.
12173 (cortex_a9_neon_str): Likewise.
12174 (cortex_a9_neon_vld1_1_2_regs): Likewise.
12175 (cortex_a9_neon_vld1_3_4_regs): Likewise.
12176 (cortex_a9_neon_vld2_2_regs_vld1_vld2_all_lanes): Likewise.
12177 (cortex_a9_neon_vld2_4_regs): Likewise.
12178 (cortex_a9_neon_vld3_vld4): Likewise.
12179 (cortex_a9_neon_vst1_1_2_regs_vst2_2_regs): Likewise.
12180 (cortex_a9_neon_vst1_3_4_regs): Likewise.
12181 (cortex_a9_neon_vst2_4_regs_vst3_vst4): Likewise.
12182 (cortex_a9_neon_vst3_vst4): Likewise.
12183 (cortex_a9_neon_vld1_vld2_lane): Likewise.
12184 (cortex_a9_neon_vld3_vld4_lane): Likewise.
12185 (cortex_a9_neon_vst1_vst2_lane): Likewise.
12186 (cortex_a9_neon_vst3_vst4_lane): Likewise.
12187 (cortex_a9_neon_vld3_vld4_all_lanes): Likewise.
12188 (cortex_a9_neon_mcr): Likewise.
12189 (cortex_a9_neon_mcr_2_mcrr): Likewise.
12190 * config/arm/cortex-a9.md (cortex_a9_dp): Update for attribute change.
12191 (cortex_a9_fps): Likewise.
12192 * config/arm/cortex-m4-fpu.md (cortex_m4_vmov_2): Update for attribute
12194 (cortex_m4_fmuls): Likewise.
12195 * config/arm/cortex-r4f.md (cortex_r4_mcr): Update for attribute
12197 (cortex_r4_mrc): Likewise.
12198 * config/arm/iterators.md: Update comment referring to neon_type.
12199 * config/arm/iwmmxt.md (iwmmxt_arm_movdi): Update for attribute change.
12200 (iwmmxt_movsi_insn): Likewise.
12201 * config/arm/marvell-pj4.md (pj4_vfp_to_core): Update for
12203 (pj4_core_to_vfp): Likewise.
12204 * config/arm/neon-schedgen.ml (emit_insn_reservations): Update for
12206 * config/arm/vfp11.md (vfp_fload): Update for attribute change.
12207 (vfp_fstore): Likewise.
12208 * doc/md.texi: Change references to neon_type to refer to type.
12210 2013-09-04 Dodji Seketeli <dodji@redhat.com>
12212 * tree.h (DECL_BUILT_IN): Fix typo in comment.
12214 2013-09-04 David Edelsohn <dje.gcc@gmail.com>
12216 * config/rs6000/rs6000.h (ASM_OUTPUT_DEF_FROM_DECLS): Only emit
12217 lglobl if not weak.
12219 2013-09-04 Easwaran Raman <eraman@google.com>
12221 PR middle-end/57370
12222 * tree-ssa-reassoc.c (get_stmt_uid_with_default): New function,
12223 (build_and_add_sum): Use it.
12224 (appears_later_in_bb): Simplify code.
12226 2013-09-04 Teresa Johnson <tejohnson@google.com>
12228 * dumpfile.c (dump_finish): Don't close stderr/stdout.
12230 2013-09-04 James Greenhalgh <james.greenhalgh@arm.com>
12232 * config/aarch64/arm_neon.h (vaddvq_<su>64): Fix return types.
12234 2013-09-04 Jan Hubicka <jh@suse.cz>
12236 * Makefile.in (ipa-devirt.o): Add dependency on diagnostic.h
12237 * ipa-devirt.c: Include diganostic.h
12238 (odr_type_d): Add types and types_set.
12239 (hash_type_name): Work for types with vtables during LTO.
12240 (odr_hasher::remove): Fix comment; destroy types_set.
12241 (add_type_duplicate): New function,
12242 (get_odr_type): Use it.
12243 (dump_type_inheritance_graph): Dump type duplicates.
12244 * ipa.c (symtab_remove_unreachable_nodes): Build type inheritance
12246 * tree.c (types_same_for_odr): Give exact answers on types with
12249 2013-09-04 Dodji Seketeli <dodji@redhat.com>
12251 * tree.h (DECL_BUILT_IN, DECL_IS_BUILTIN): Add more comments
12252 explaining their differences.
12254 2013-09-04 Sandeep Kumar Singh<Sandeep.Singh2@kpitcummins.com>
12256 * config/rx/rx.h: Add option -mcpu for target variants RX100 and RX200.
12258 2013-09-03 Jeff Law <law@redhat.com>
12260 * tree-ssa-threadedge.c (thread_across_edge): Record entire path
12261 when not threading through a joiner block. Pass joiner/no joiner
12262 state to register_jump_thread.
12263 * tree-ssa-threadupdate.c (register_jump_thread): Get joiner/no joiner
12264 state from argument rather than implying on path length.
12265 Dump the entire jump thread path into debugging dump.
12266 * tree-flow.h (register_jump_thread): Update prototype.
12268 2013-08-29 Xinliang David Li <davidxl@google.com>
12270 * tree-vect-data-refs.c (vect_compute_data_ref_alignment):
12271 Remove a trivial gcc_assert.
12273 2013-08-29 Xinliang David Li <davidxl@google.com>
12275 * tree-vect-slp.c (destroy_bb_vec_info): Data ref cleanup.
12276 * tree-vect-loop.c (destroy_bb_vec_info): Ditto.
12277 * tree-vect-data-refs.c (vect_compute_data_ref_alignment):
12278 Delay base decl alignment adjustment.
12279 * tree-vectorizer.c (vect_destroy_datarefs): New function.
12280 * tree-vectorizer.h: New data structure.
12281 (set_dr_misalignment): New function.
12282 (dr_misalignment): Ditto.
12283 * tree-vect-stmts.c (vectorizable_store): Ensure alignment.
12284 (vectorizable_load): Ditto.
12285 (ensure_base_align): New function.
12286 (vectorize_loops): Add dbg_cnt support.
12287 (execute_vect_slp): Ditto.
12288 * dbgcnt.def: New debug counter.
12289 * Makefile: New dependency.
12291 2013-09-03 Meador Inge <meadori@codesourcery.com>
12295 2013-08-30 Meador Inge <meadori@codesourcery.com>
12297 * tree-vrp.c (check_array_ref): Bail out on zero-length arrays.
12299 2013-09-03 David Edelsohn <dje.gcc@gmail.com>
12301 * config/rs6000/rs6000.h (ASM_OUTPUT_DEF_FROM_DECLS): Emit lglobl for
12302 function descriptor.
12304 2013-09-03 Richard Biener <rguenther@suse.de>
12306 * tree-affine.c (add_elt_to_tree): Fix association issue,
12307 avoid useless converts and make sure to always return a
12308 properly typed result.
12310 2013-09-03 Richard Biener <rguenther@suse.de>
12312 PR middle-end/57656
12313 * fold-const.c (negate_expr_p): Fix division case.
12314 (negate_expr): Likewise.
12316 2013-09-03 Richard Biener <rguenther@suse.de>
12319 * tree-streamer-out.c: Include tm.h.
12320 * Makefile.in (tree-streamer-out.o): Depend on $(TM_H).
12322 2013-09-03 Jan Hubicka <jh@suse.cz>
12324 * tree-profile.c (tree_profiling): Cleanup CFG when done.
12326 2013-09-03 Alan Modra <amodra@gmail.com>
12328 * config.gcc (powerpc*-*-linux*): Add support for little-endian
12329 multilibs to big-endian target and vice versa.
12330 * config/rs6000/t-linux64: Use := assignment on all vars.
12331 (MULTILIB_EXTRA_OPTS): Remove fPIC.
12332 (MULTILIB_OSDIRNAMES): Specify using mapping from multilib_options.
12333 * config/rs6000/t-linux64le: New file.
12334 * config/rs6000/t-linux64bele: New file.
12335 * config/rs6000/t-linux64lebe: New file.
12337 2013-09-02 Jan Hubicka <jh@suse.cz>
12339 * ipa-inline-transform.c (inline_transform): Do not
12340 optimize_inline_calls when not optimizing.
12342 2013-09-02 Jan Hubicka <jh@suse.cz>
12344 * lto-symtab.c (lto_symtab_merge_symbols): Add comments; merge
12345 duplicated nodes for assembler names.
12346 * symtab.c (symtab_unregister_node): Do not attempt to unlink
12347 hard registers from assembler name hash.
12349 2013-09-02 Jan Hubicka <jh@suse.cz>
12351 * ipa-split.c (execute_split_functions): Split externally visible
12352 functions called once.
12354 2013-09-02 Martin Jambor <mjambor@suse.cz>
12357 * ipa-prop.c (ipa_edge_duplication_hook): Always put new rdesc to the
12358 linked list. When finding the correct duplicate, also consider also
12359 the caller in additon to its inlined_to node.
12361 2013-09-02 James Greenhalgh <james.greenhalgh@arm.com>
12363 * config/aarch64/aarch64-simd-builtins.def
12364 (dup_lane_scalar): Remove.
12365 * config/aarch64/aarch64-simd.md
12366 (aarch64_simd_dup): Add 'w->w' alternative.
12367 (aarch64_dup_lane<mode>): Allow for VALL.
12368 (aarch64_dup_lane_scalar<mode>): Remove.
12369 (aarch64_dup_lane_<vswap_width_name><mode>): New.
12370 (aarch64_get_lane_signed<mode>): Add w->w altenative.
12371 (aarch64_get_lane_unsigned<mode>): Likewise.
12372 (aarch64_get_lane<mode>): Likewise.
12373 * config/aarch64/aarch64.c (aarch64_evpc_dup): New.
12374 (aarch64_expand_vec_perm_const_1): Use aarch64_evpc_dup.
12375 * config/aarch64/iterators.md (VSWAP_WIDTH): New.
12376 (VCON): Change container of V2SF.
12377 (vswap_width_name): Likewise.
12378 * config/aarch64/arm_neon.h
12379 (__aarch64_vdup_lane_any): New.
12380 (__aarch64_vdup<q>_lane<q>_<fpsu><8,16,32,64>): Likewise.
12381 (vdup<q>_n_<psuf><8,16,32,64>): Convert to C implementation.
12382 (vdup<q>_lane<q>_<fpsu><8,16,32,64>): Likewise.
12384 2013-09-02 Eric Botcazou <ebotcazou@adacore.com>
12386 PR middle-end/56382
12387 * expr.c (emit_move_complex): Do not move complex FP values as parts if
12388 the source or the destination is a single hard register.
12390 2013-09-02 Richard Biener <rguenther@suse.de>
12392 PR middle-end/57511
12393 * tree-scalar-evolution.c (instantiate_scev_name): Allow
12396 2013-09-02 Richard Biener <rguenther@suse.de>
12398 * tree-affine.c (add_elt_to_tree): Avoid converting all pointer
12399 arithmetic to sizetype.
12401 2013-09-02 Bin Cheng <bin.cheng@arm.com>
12403 * tree-ssa-loop-ivopts.c (set_autoinc_for_original_candidates):
12404 Find auto-increment use both before and after candidate.
12406 2013-09-02 Marek Polacek <polacek@redhat.com>
12408 * Makefile.in (ubsan.o): Add $(TM_P_H) dependency.
12410 2013-09-01 Jan Hubicka <jh@suse.cz>
12412 * Makefile.in: Add ipa-profile.o
12413 (ipa.o, ipa-devrit.o, ipa-inline-analysis.o): Adjust dependencies.
12414 * cgraph.c (struct cgraph_propagate_frequency_data,
12415 cgraph_propagate_frequency_1, cgraph_propagate_frequency): Move to
12416 ipa-profile.c; replace cgraph_ by ipa_ prefix.
12417 * cgraph.h (cgraph_propagate_frequency): Remove.
12418 * ipa-inline-analysis.c: Include ipa-utils.h;
12419 drop duplicated cfgloop.h.
12420 (inline_update_callee_summaries): Update.
12421 * ipa-profile.c: New file.
12422 * ipa-utils.h (ipa_propagate_frequency): Declare.
12423 * ipa.c: Do not include pointer-set.h, hash-table.h, lto-streamer.h,
12424 data-streamer.h, value-prof.h.
12425 (symtab_remove_unreachable_nodes): Update profile.
12426 (struct histogram_entry, histogram, histogram_pool, histogram_hash,
12427 account_time_size, cmp_counts, dump_histogram,
12428 ipa_profile_generate_summary, ipa_profile_write_summary,
12429 ipa_profile_read_summary, ipa_profile, gate_ipa_profile,
12430 pass_data_ipa_profile, pass_ipa_profile, make_pass_ipa_profile):
12431 Move to ipa-profile.c.
12433 2013-09-01 John David Anglin <danglin@gcc.gnu.org>
12435 * config/pa/pa.md: Allow "const 0" operand 1 in "scc" insns.
12437 2013-09-01 Jan Hubicka <jh@suse.cz>
12439 * common.opt (fdevirtualize-speculatively): New function.
12440 * invoke.texi (fdevirtualize-speculatively): Document.
12441 * ipa-devirt.c: Include ipa-inline.h
12442 (likely_target_p): New function.
12443 (ipa_devirt): New function.
12444 (gate_ipa_devirt): New function.
12445 (pass_data_ipa_devirt): New static var.
12446 (pass_ipa_devirt): Likewise.
12447 (make_pass_ipa_devirt): New function.
12448 * opts.c (default_options): Add OPT_fdevirtualize_speculatively.
12449 (common_handle_option): Disable devirtualization when
12450 value range profiling is available.
12451 * passes.def (pass_ipa_devirt): Add.
12452 * timever.def (TV_IPA_DEVIRT): New timevar.
12453 * tree-pass.h (make_pass_ipa_devirt):
12455 2013-09-01 Iain Sandoe <iain@codesourcery.com>
12457 * config/darwin.h (LINK_COMMAND_SPEC_A): Revise sanitizer specs to
12458 include sanitize(undefined).
12460 2013-08-31 Diego Novillo <dnovillo@google.com>
12462 * Makefile.in (TREE_CORE_H): Define.
12464 (GTFILES): Add tree-core.h.
12465 * builtins.c (built_in_class_names): Use BUILT_IN_LAST to
12467 * tree-core.h: New file.
12468 Move all data structures, enum, typedefs, global
12469 declarations and constants from ...
12470 * tree.h: ... here.
12472 2013-08-31 Jan Hubicka <jh@suse.cz>
12474 * bulitins.c (expand_builtin): Do not early exit for gcov
12475 instrumented functions.
12477 2013-08-31 Marek Polacek <polacek@redhat.com>
12479 * ubsan.c: Include tm_p.h.
12481 2013-08-31 Jan Hubicka <jh@suse.cz>
12483 * gimple-streamer-in.c (input_gimple_stmt): Silence parameter unused
12486 * cgraph.c (cgraph_get_body): Update call of lto_input_function_body.
12487 * gimple-streamer-in.c (input_gimple_stmt): Move sanity check to ...
12488 * tree-cfg.c (verify_gimple_label): ... here.
12489 * ipa-utils.c: Include lto-streamer.h, ipa-inline.h
12490 (ipa_merge_profiles): New function.
12491 * lto-streamer-in.c (lto_read_body): Take node instead of fn_decl.
12492 (lto_input_function_body): Likewise.
12493 * ipa-utils.h (ipa_merge_profiles): Declare.
12494 * lto-streamer.h (lto_input_function_body): Update prototype.
12495 (emit_label_in_global_context_p): Remove.
12496 * lto-symtab.c: Include ipa-utils.h
12497 (lto_cgraph_replace_node): Use ipa_merge_profiles.
12499 2013-08-31 Jan Hubicka <jh@suse.cz>
12501 * cgraph.c (cgraph_speculative_call_info): Fix ref lookup
12503 2013-08-31 Jan Hubicka <jh@suse.cz>
12505 * basic-block.h (apply_scale): Make scale parmeter gcov_type.
12507 2013-08-31 Uros Bizjak <ubizjak@gmail.com>
12509 * config/alpha/alpha.c (alpha_emit_conditional_move): Update
12510 "cmp" RTX before signed_comparison_operator check to account
12511 for "code" changes.
12513 2013-08-30 Jan Hubicka <jh@suse.cz>
12515 * ipa-prop.c (ipa_set_jf_known_type): Check that we add only records.
12516 (detect_type_change_1): Rename to ...
12517 (detect_type_change): ... this one; early return on non-polymorphic
12519 (detect_type_change_ssa): Add comp_type parameter; update
12520 use of detect_type_change.
12521 (compute_complex_assign_jump_func): Add param_type parameter;
12522 update use of detect_type_change_ssa.
12523 (compute_complex_ancestor_jump_func): Likewise.
12524 (ipa_get_callee_param_type): New function.
12525 (ipa_compute_jump_functions_for_edge): Compute parameter type;
12526 update calls to the jump function computation functions.
12528 2013-08-30 Teresa Johnson <tejohnson@google.com>
12529 Steven Bosscher <steven@gcc.gnu.org>
12531 * cfgrtl.c (fixup_new_cold_bb): New routine.
12532 (commit_edge_insertions): Invoke fixup_partitions.
12533 (find_partition_fixes): New routine.
12534 (fixup_partitions): Ditto.
12535 (verify_hot_cold_block_grouping): Update comments.
12536 (rtl_verify_edges): Invoke find_partition_fixes.
12537 (rtl_verify_bb_pointers): Update comments.
12538 (rtl_verify_bb_layout): Ditto.
12539 * basic-block.h (probably_never_executed_edge_p): Declare.
12540 (fixup_partitions): Ditto.
12541 * cfgcleanup.c (try_optimize_cfg): Invoke fixup_partitions.
12542 * bb-reorder.c (sanitize_hot_paths): New function.
12543 (find_rarely_executed_basic_blocks_and_crossing_edges): Invoke
12544 sanitize_hot_paths.
12545 * predict.c (probably_never_executed_edge_p): New routine.
12546 * cfg.c (check_bb_profile): Add partition insanity warnings.
12548 2013-08-30 Meador Inge <meadori@codesourcery.com>
12550 * tree-vrp.c (check_array_ref): Bail out on zero-length arrays.
12552 2013-08-30 Marek Polacek <polacek@redhat.com>
12554 * Makefile.in (ubsan.o): Add.
12555 (c-family/c-ubsan.o): Add.
12556 (builtins.o): Add ubsan.h dependency.
12557 * ubsan.h: New file.
12558 * ubsan.c: New file.
12559 * common.opt: Add -fsanitize=undefined option.
12560 (flag_sanitize): Add variable.
12561 (fsanitize=): Add option. Add Driver.
12562 (fsanitize=thread): Remove option.
12563 (fsanitize=address): Likewise.
12564 (static-libubsan): New option.
12565 * doc/invoke.texi: Document the new flag and -static-libubsan.
12566 * sanitizer.def (DEF_SANITIZER_BUILTIN): Define.
12567 (BUILT_IN_UBSAN_HANDLE_BUILTIN_UNREACHABLE): Define.
12568 * builtin-attrs.def (ATTR_COLD): Define.
12569 (ATTR_COLD_NOTHROW_LEAF_LIST): Define.
12570 * builtins.def (BUILT_IN_UBSAN_HANDLE_DIVREM_OVERFLOW,
12571 BUILT_IN_UBSAN_HANDLE_SHIFT_OUT_OF_BOUNDS): Define.
12572 * flag-types.h (sanitize_code): New enum.
12573 * opts.c (common_handle_option): Parse command line arguments
12574 of -fsanitize=. Add -fsanitize=unreachable option.
12575 * varasm.c (get_variable_section): Adjust.
12576 (assemble_noswitch_variable): Likewise.
12577 (assemble_variable): Likewise.
12578 (output_constant_def_contents): Likewise.
12579 (categorize_decl_for_section): Likewise.
12580 (place_block_symbol): Likewise.
12581 (output_object_block): Likewise.
12582 * builtins.def: Likewise.
12583 * toplev.c (compile_file): Likewise.
12584 (process_options): Likewise.
12585 * cppbuiltin.c: Likewise.
12586 * tsan.c (tsan_pass): Likewise.
12587 (tsan_gate): Likewise.
12588 (tsan_gate_O0): Likewise.
12589 * cfgexpand.c (partition_stack_vars): Likewise.
12590 (expand_stack_vars): Likewise.
12591 (defer_stack_allocation): Likewise.
12592 (expand_used_vars): Likewise.
12593 * cfgcleanup.c (old_insns_match_p): Likewise.
12594 * asan.c (asan_finish_file): Likewise.
12595 (asan_instrument): Likewise.
12596 (gate_asan): Likewise.
12597 (initialize_sanitizer_builtins): Build BT_FN_VOID_PTR_PTR_PTR.
12598 (ATTR_COLD_NOTHROW_LEAF_LIST): Define.
12599 (asan_global_struct): Use pointer_sized_int_node instead
12600 calling build_nonstandard_integer_type.
12601 (initialize_sanitizer_builtins): Likewise.
12602 (asan_finish_file): Likewise.
12603 * gcc.c: Document %{%:function(args):X}.
12604 (static_spec_functions): Add sanitize.
12605 (handle_spec_function): Add retval_nonnull argument and if non-NULL,
12606 store funcval != NULL there.
12607 (do_spec_1): Adjust handle_spec_function caller.
12608 (handle_braces): Allow %:function(args) as condition.
12609 (sanitize_spec_function): New function.
12610 (ADD_STATIC_LIBUBSAN_LIBS): Define.
12611 (LIBUBSAN_SPEC): Likewise.
12612 (LIBUBSAN_EARLY_SPEC): Likewise.
12613 (SANITIZER_SPEC): Handle libubsan.
12614 (SANITIZER_EARLY_SPEC): Likewise.
12615 * config/darwin.h (LINK_COMMAND_SPEC_A): Use %:sanitize(address)
12616 instead of fsanitize=address.
12617 * config/arm/linux-eabi.h (ASAN_CC1_SPEC): Use %:sanitize(address)
12618 instead of fsanitize=address*.
12619 * builtins.c: Include ubsan.h.
12620 (fold_builtin_0): Instrument __builtin_unreachable.
12621 * config/rs6000/rs6000.h (FRAME_GROWS_DOWNWARD): Use flag_sanitize
12622 instead of flag_asan.
12623 * tree.h (enum tree_index): Add TI_POINTER_SIZED_TYPE.
12624 (pointer_sized_int_node): Define.
12625 * tree.c (build_common_tree_nodes): Initialize pointer_sized_int_node.
12627 2013-08-30 Mike Stump <mikestump@comcast.net>
12629 * doc/install.texi (Prerequisites): Note regression in Tcl 8.6
12632 2013-08-29 Jan Hubicka <jh@suse.cz>
12634 * cgraph.c (cgraph_function_body_availability): Handle weakref
12636 * passes.def: Remove pass_fixup_cfg.
12637 * ipa-inline.c (ipa_inline): When not optimizing, do not inline;
12638 track when we need to remove functions.
12639 (gate_ipa_inline): Execute inlining always; add comment why.
12640 (pass_data_ipa_inline): Remove TODO_remove_functions.
12641 * ipa-inline-analysis.c (inline_generate_summary): When not optimizing
12642 do not produce summaries.
12643 * symtab.c (change_decl_assembler_name): Handle renaming of weakrefs.
12644 (symtab_nonoverwritable_alias): Assert we are not called on weakref.
12645 * varpool.c (cgraph_variable_initializer_availability): Fix weakrefs,
12646 constant pool and vtable.
12648 2013-08-30 Tejas Belagod <tejas.belagod@arm.com>
12650 * config/aarch64/arm_neon.h (__AARCH64_UINT64_C, __AARCH64_INT64_C):
12651 New arm_neon.h's internal macros to specify 64-bit constants.
12652 Avoid using stdint.h's macros.
12654 2013-08-30 Joern Rennecke <joern.rennecke@embecosm.com>
12656 * recog.c (verify_changes): Verify that changes[i].old is non-zero
12657 before applying REG_P.
12659 2013-08-30 Jakub Jelinek <jakub@redhat.com>
12661 PR tree-optimization/58277
12662 * tree-ssa-strlen.c (strlen_enter_block): If do_invalidate gave up
12663 after seeing too many stmts with vdef in between dombb and current
12664 bb, invalidate everything.
12666 2013-08-30 Richard Biener <rguenther@suse.de>
12668 * fold-const.c (fold_single_bit_test): Fix overflow test.
12670 2013-08-30 Eric Botcazou <ebotcazou@adacore.com>
12672 * function.c (assign_parm_setup_reg): For a parameter passed by pointer
12673 and which can live in a register, always retrieve the value on entry.
12674 * var-tracking.c (add_stores): Treat the copy on entry for a parameter
12675 passed by invisible reference specially.
12676 (emit_notes_in_bb) <MO_VAL_USE>: Emit notes before the instruction.
12677 (vt_add_function_parameter): Correctly deal with a parameter passed by
12678 invisible reference.
12680 2013-08-30 Jan Hubicka <jh@suse.cz>
12682 * tree.c (set_call_expr_flags): Fix handling of TM_PURE.
12684 2013-08-30 Richard Biener <rguenther@suse.de>
12686 PR tree-optimization/58228
12687 * tree-vect-data-refs.c (vect_analyze_data_ref_access): Do not
12688 allow invariant loads in nested loop vectorization.
12690 2013-08-30 Richard Biener <rguenther@suse.de>
12692 PR tree-optimization/58223
12693 * tree-loop-distribution.c (has_anti_dependence): Rename to ...
12694 (has_anti_or_output_dependence): ... this and adjust to also
12695 look for output dependences.
12696 (mark_nodes_having_upstream_mem_writes): Adjust.
12697 (rdg_flag_uses): Likewise.
12699 2013-08-30 Richard Biener <rguenther@suse.de>
12701 PR tree-optimization/58010
12702 * tree-vect-loop.c (vect_create_epilog_for_reduction): Remove
12703 assert that we have a loop-closed PHI.
12705 2013-08-29 Jan Hubicka <jh@suse.cz>
12707 * lto-symtab.c (lto_cgraph_replace_node): Free decl_in_state.
12708 * cgraph.c (cgraph_release_function_body): Free decl_in_state.
12709 * lto-section-in.c (lto_free_function_in_decl_state): New function.
12710 (lto_free_function_in_decl_state_for_node): New function.
12712 2013-08-29 Xinliang David Li <davidxl@google.com>
12714 * loop-unroll.c (report_unroll_peel): Minor message change.
12715 * tree-vect-loop-manip.c (vect_do_peeling_for_alignment):
12716 Emit alignment peeling message with default -fopt-info.
12717 (vect_loop_versioning): Emit loop version info message.
12718 * tree-vectorizer.c (vectorize_loops): Minor message change.
12719 (execute_vect_slp): Ditto.
12721 2013-08-29 Eric Botcazou <ebotcazou@adacore.com>
12723 * cgraphclones.c (cgraph_create_virtual_clone): Compute the DECL_NAME
12724 of the clone from the DECL_NAME of the original function.
12726 2013-08-29 Oleg Endo <olegendo@gcc.gnu.org>
12728 * passes.c (register_pass): Add overload.
12729 * tree-pass.h (register_pass): Forward declare it. Add comment.
12731 2013-08-29 Jan Hubicka <jh@suse.cz>
12733 * lto-streamer-out.c (hash_tree): Stream DECL_FINAL_P,
12734 DECL_CXX_CONSTRUCTOR_P, DECL_CXX_DESTRUCTOR_P and TYPE_FINAL_P.
12735 * lto-streamer-in.c (unpack_ts_decl_with_vis_value_fields): Stream
12736 DECL_FINAL_P, DECL_CXX_CONSTRUCTOR_P and DECL_CXX_DESTRUCTOR_P.
12737 (unpack_ts_type_common_value_fields): Stream TYPE_FINAL_P.
12738 * tree-streamer-out.c (pack_ts_decl_with_vis_value_fields):
12739 Add DECL_FINAL_P, DECL_CXX_CONSTRUCTOR_P and DECL_CXX_DESTRUCTOR_P.
12740 (pack_ts_type_common_value_fields): Add TYPE_FINAL_P.
12742 2013-08-29 Teresa Johnson <tejohnson@google.com>
12744 * dumpfile.c (dump_loc): Output column number.
12745 * dumpfile.h (OPTGROUP_OTHER): Add and enable under OPTGROUP_ALL.
12746 * doc/invoke.texi: Document optall -fopt-info flag.
12747 * profile.c (read_profile_edge_counts): Use new dump framework.
12748 (compute_branch_probabilities): Ditto.
12749 * passes.c (pass_manager::register_one_dump_file): Use OPTGROUP_OTHER
12750 when pass not in any opt group.
12751 * pass_manager.h (pass_manager::get_pass_profile): New method.
12752 * value-prof.c (check_counter): Use new dump framework.
12753 (check_ic_target): Ditto.
12754 * coverage.c (get_coverage_counts): Ditto.
12755 (coverage_init): Setup new dump framework.
12757 2013-08-29 Richard Biener <rguenther@suse.de>
12759 PR tree-optimization/58246
12760 * tree-ssa-dce.c (mark_aliased_reaching_defs_necessary_1): Properly
12761 handle the dominance check inside a basic-block.
12763 2013-08-29 Richard Biener <rguenther@suse.de>
12765 PR middle-end/57287
12766 * tree-ssa-copy.c (may_propagate_copy): Allow propagating
12767 of default defs that appear in abnormal PHI nodes.
12769 2013-08-29 Richard Biener <rguenther@suse.de>
12771 PR tree-optimization/57685
12772 * tree-vrp.c (register_edge_assert_for_1): Recurse only for
12773 single-use operands to avoid exponential complexity.
12775 2013-08-28 Dehao Chen <dehao@google.com>
12777 * ipa-inline.c (edge_badness): Fix integer underflow.
12779 2013-08-28 Uros Bizjak <ubizjak@gmail.com>
12781 * gtm-builtins.def (_ITM_free): Declare leaf.
12783 2013-08-28 Jakub Jelinek <jakub@redhat.com>
12786 * config/i386/i386.md (*tls_global_dynamic_64_largepic): New insn.
12787 (*tls_local_dynamic_base_64_largepic): Likewise.
12788 (tls_global_dynamic_64_<mode>, tls_local_dynamic_base_64_<mode>):
12789 Remove predicate from call operand.
12790 * config/i386/i386.c (ix86_tls_get_addr): For -mcmodel=large -fpic
12791 return sum of pic_offset_table_rtx and UNSPEC_PLTOFF of the symbol.
12793 2013-08-28 Jeff Law <law@redhat.com>
12795 * tree-ssa-threadedge.c (thread_around_empty_block): Remove
12796 checks for the number of predecessors and successors allowed.
12797 * tree-ssa-threadupdate.c (mark_threaded_blocks): Ignore requests
12798 which require copying a joiner block if there is a request which
12799 is a subpath that requires no joiner block copying.
12801 2013-08-28 Jan Hubicka <jh@suse.cz>
12803 * lto-streamer-out.c (DFS_write_tree_body): Drop
12804 BINFO_INHERITANCE_CHAIN, BINFO_SUBVTT_INDEX and BINFO_VPTR_INDEX.
12805 (hash_tree): Do not hash DECL_DEFER_OUTPUT, BINFO_INHERITANCE_CHAIN,
12806 BINFO_SUBVTT_INDEX, BINFO_VPTR_INDEX, DECL_IN_TEXT_SECTION.
12807 * tree-streamer-in.c (unpack_ts_decl_common_value_fields):
12808 Do not read DECL_ERROR_ISSUED.
12809 (unpack_ts_decl_with_vis_value_fields): Do not read
12811 (lto_input_ts_binfo_tree_pointers): Do not read
12812 BINFO_INHERITANCE_CHAIN, BINFO_SUBVTT_INDEX, BINFO_VPTR_INDEX
12813 * tree-streamer-out.c (pack_ts_decl_common_value_fields): Do not
12814 write DECL_ERROR_ISSUED..
12815 (pack_ts_decl_with_vis_value_fields): Do not write
12817 (write_ts_binfo_tree_pointers): Do not read BINFO_INHERITANCE_CHAIN,
12818 BINFO_SUBVTT_INDEX, BINFO_VPTR_INDEX.
12819 * print-tree.c (print_node): Do not print DECL_ERROR_ISSUED.
12820 * tree.h (tree_decl_common): Update comment.
12821 (DECL_ERROR_ISSUED): Remove.
12823 2013-08-28 Jakub Jelinek <jakub@redhat.com>
12825 PR middle-end/58257
12826 * omp-low.c (copy_var_decl): Copy over TREE_NO_WARNING flag.
12828 2013-08-28 Jan Hubicka <jh@suse.cz>
12830 * builtins.def (free): Declare leaf.
12832 2013-08-27 David Malcolm <dmalcolm@redhat.com>
12834 * gdbhooks.py: New.
12835 * configure.ac (gdbinit.in): Add import of gcc/gdbhooks.py.
12836 * configure: Regenerate.
12838 2013-08-27 Martin Jambor <mjambor@suse.cz>
12840 * ipa-prop.h (ipa_pass_through_data): New field type_preserved.
12841 (ipa_ancestor_jf_data): Likewise.
12842 (ipa_get_jf_pass_through_agg_preserved): Fix comment typo.
12843 (ipa_get_jf_pass_through_type_preserved): New function.
12844 (ipa_get_jf_ancestor_agg_preserved): Fix comment typo.
12845 (ipa_get_jf_ancestor_type_preserved): New function.
12846 * ipa-cp.c (ipa_get_jf_pass_through_result): Honor type_preserved flag.
12847 (ipa_get_jf_ancestor_result): Likewise.
12848 (propagate_vals_accross_pass_through): Use
12849 ipa_get_jf_pass_through_result to do all the value mappings.
12850 * ipa-prop.c (ipa_print_node_jump_functions_for_edge): Dump the
12851 type_preserved flag.
12852 (ipa_set_jf_cst_copy): New function.
12853 (ipa_set_jf_simple_pass_through): Set the type_preserved flag.
12854 (ipa_set_jf_arith_pass_through): Likewise.
12855 (ipa_set_ancestor_jf): Likewise.
12856 (compute_complex_assign_jump_func): Set type_preserved instead of
12858 (ipa_compute_jump_functions_for_edge): Likewise.
12859 (combine_known_type_and_ancestor_jfs): Honor type_preserved.
12860 (update_jump_functions_after_inlining): Update type_preserved.
12861 Explicitely create jump functions when combining one with pass_through.
12862 (ipa_write_jump_function): Stream the type_preserved flags.
12863 (ipa_read_jump_function): Likewise.
12865 2013-08-27 Jakub Jelinek <jakub@redhat.com>
12866 Aldy Hernandez <aldyh@redhat.com>
12868 * Makefile.in (omp-low.o): Depend on $(TARGET_H).
12869 * cfgloop.h (struct loop): Add safelen, force_vect, simduid.
12870 * function.h (struct function): Add has_force_vect_loops and
12872 * gimple-pretty-print.c (dump_gimple_omp_for): Handle GF_OMP_FOR_KIND*.
12873 * gimple.c (gimple_build_omp_critical): Add KIND argument and
12875 * gimple.def: Update CLAUSES comments.
12876 * gimple.h (enum gf_mask): Add GF_OMP_FOR_KIND_{FOR,SIMD}.
12877 (gimple_build_omp_for): Add argument to prototype.
12878 (gimple_omp_for_kind): New.
12879 (gimple_omp_for_set_kind): New.
12880 * gimplify.c (enum gimplify_omp_var_data): Add GOVD_LINEAR to
12881 GOVD_DATA_SHARE_CLASS.
12882 (enum omp_region_type): Add ORT_SIMD.
12883 (gimple_add_tmp_var): Handle ORT_SIMD.
12884 (gimplify_var_or_parm_decl): Same.
12885 (is_gimple_stmt): Same.
12886 (omp_firstprivatize_variable): Same.
12887 (omp_add_variable): Only use splay_tree_insert if lookup failed.
12888 (omp_notice_variable): Handle ORT_SIMD.
12889 (omp_is_private): Add SIMD argument and handle it as well as ORT_SIMD.
12890 (omp_check_private): Handle ORT_SIMD.
12891 (gimplify_scan_omp_clauses): Handle OMP_CLAUSE_LINEAR and
12892 OMP_CLAUSE_SAFELEN.
12893 (gimplify_adjust_omp_clauses_1): Handle GOVD_LINEAR.
12894 Handle OMP_CLAUSE_LASTPRIVATE.
12895 (gimplify_adjust_omp_clauses): Handle OMP_CLAUSE_LINEAR and
12896 OMP_CLAUSE_SAFELEN.
12897 (gimplify_omp_for): Handle OMP_SIMD and OMP_CLAUSE_LINEAR.
12898 (gimplify_expr): Handle OMP_SIMD.
12899 * internal-fn.c (expand_GOMP_SIMD_LANE): New.
12900 (expand_GOMP_SIMD_VF): New.
12901 (expand_GOMP_SIMD_LAST_LANE): New.
12902 * internal-fn.def (GOMP_SIMD_LANE): New.
12903 (GOMP_SIMD_VF): New.
12904 (GOMP_SIMD_LAST_LANE): New.
12905 * omp-low.c: Include target.h.
12906 (extract_omp_for_data): Handle OMP_SIMD, OMP_CLAUSE_LINEAR,
12907 OMP_CLAUSE_SAFELEN.
12908 (check_omp_nesting_restrictions): Same.
12910 (lower_rec_simd_input_clauses): New.
12911 (lower_rec_input_clauses): Handle OMP_SIMD, GF_OMP_FOR_KIND_SIMD,
12913 (lower_lastprivate_clauses): Handle OMP_CLAUSE_LINEAR,
12914 GF_OMP_FOR_KIND_SIMD, OMP_SIMD.
12915 (expand_omp_build_assign): New.
12916 (expand_omp_for_init_counts): New.
12917 (expand_omp_for_init_vars): New.
12918 (extract_omp_for_update_vars): New.
12919 (expand_omp_for_generic): Use expand_omp_for_{init,update}_vars
12920 and rewrite accordingly.
12921 (expand_omp_simd): New.
12922 (expand_omp_for): Use expand_omp_simd.
12923 (lower_omp_for_lastprivate): Unshare vinit when appropriate.
12924 (lower_omp_for): Do not lower the body.
12925 * tree-data-ref (get_references_in_stmt): Allow IFN_GOMP_SIMD_LANE
12926 in their own loops.
12927 * tree-flow.h (find_omp_clause): Remove prototype.
12928 * tree-if-conv.c (main_tree_if_conversion): Run if doing if conversion,
12929 forcing vectorization of the loop, or if flag_tree_vectorize.
12930 (gate_tree_if_conversion): Similarly.
12931 * tree-inline.c (remap_gimple_stmt): Pass for kind argument to
12932 gimple_build_omp_for.
12933 (copy_cfg_body): set has_force_vect_loops and has_simduid_loops.
12934 * tree-parloops (create_parallel_loop): Pass kind argument to
12935 gimple_build_omp_for.
12936 * tree-pretty-print.c (dump_omp_clause): Add cases for
12937 OMP_CLAUSE_UNIFORM, OMP_CLAUSE_LINEAR, OMP_CLAUSE_SAFELEN,
12938 OMP_CLAUSE__SIMDUID_.
12939 (dump_generic_node): Handle OMP_SIMD.
12940 * tree-ssa-ccp.c (likely_value): Handle IFN_GOMP_SIMD*.
12941 * tree-ssa-loop-ivcanon.c (tree_unroll_loops_completely_1): Do not
12942 unroll OMP_SIMD loops here.
12943 * tree-ssa-loop.c (gate_tree_vectorize): Run if has_force_vect_loops.
12944 * tree-vect-data-refs.c (vect_analyze_data_ref_dependence): Handle
12946 (vect_analyze_data_refs): Handle simd loops.
12947 * tree-vect-loop.c (vectorizable_live_operation): Handle
12949 * tree-vect-stmts.c (vectorizable_call): Handle IFN_GOMP_SIMD_LANE.
12950 (vectorizable_store): Handle STMT_VINFO_SIMD_LANE_ACCESS_P.
12951 (vectorizable_load): Same.
12952 * tree-vectorizer.c: Include hash-table.h and tree-ssa-propagate.h.
12953 (struct simduid_to_vf): New.
12954 (simduid_to_vf::hash): New.
12955 (simduid_to-vf::equal): New.
12956 (struct simd_array_to_simduid): New.
12957 (simd_array_to_simduid::hash): New.
12958 (simd_array_to_simduid::equal): New.
12959 (adjust_simduid_builtins): New.
12960 (struct note_simd_array_uses_struct): New.
12961 (note_simd_array_uses_cb): New.
12962 (note_simd_array_uses): New.
12963 (vectorize_loops): Handle simd hints and adjust simd builtins
12965 * tree-vectorizer.h (struct _stmt_vec_info): Add
12966 simd_lane_access_p field.
12967 (STMT_VINFO_SIMD_LANE_ACCESS_P): New macro.
12968 * tree.c (omp_clause_num_ops): Add entries for OMP_CLAUSE_LINEAR,
12969 OMP_CLAUSE_SAFELEN, OMP_CLAUSE__SIMDUID_, OMP_CLAUSE_UNIFORM.
12970 (omp_clause_code_name): Same.
12971 (walk_tree_1): Handle OMP_CLAUSE_UNIFORM, OMP_CLAUSE_SAFELEN,
12972 OMP_CLAUSE__SIMDUID_, OMP_CLAUSE_LINEAR.
12973 * tree.def (OMP_SIMD): New entry.
12974 * tree.h (enum omp_clause_code): Add entries for OMP_CLAUSE_LINEAR,
12975 OMP_CLAUSE_UNIFORM, OMP_CLAUSE_SAFELEN, OMP_CLAUSE__SIMDUID_.
12976 (OMP_CLAUSE_DECL): Adjust range for new clauses.
12977 (OMP_CLAUSE_LINEAR_NO_COPYIN): New.
12978 (OMP_CLAUSE_LINEAR_NO_COPYOUT): New.
12979 (OMP_CLAUSE_LINEAR_STEP): New.
12980 (OMP_CLAUSE_SAFELEN_EXPR): New.
12981 (OMP_CLAUSE__SIMDUID__DECL): New.
12982 (find_omp_clause): New prototype.
12984 2013-08-27 H.J. Lu <hongjiu.lu@intel.com>
12986 * config/i386/driver-i386.c (host_detect_local_cpu): Update
12987 Haswell processor detection.
12989 2013-08-27 Christian Widmer <shadow@umbrox.de>
12992 * config/i386/driver-i386.c (host_detect_local_cpu): Add detection
12993 of Ivy Bridge and Haswell processors. Assume core-avx2 for unknown
12994 AVX2 capable processors.
12996 2013-08-27 Tejas Belagod <tejas.belagod@arm.com>
12998 * config/aarch64/arm_neon.h: Replace all inline asm implementations
12999 of vget_low_* with implementations in terms of other intrinsics.
13001 2013-08-27 Marc Glisse <marc.glisse@inria.fr>
13003 PR middle-end/57219
13004 * doc/extend.texi (__builtin_isinf_sign): Restrict the return
13005 values to -1, 0 and 1.
13007 2013-08-27 Vidya Praveen <vidyapraveen@arm.com>
13009 * config/aarch64/aarch64.md (unspec): Add UNSPEC_SISD_SSHL,
13010 UNSPEC_SISD_USHL, UNSPEC_USHL_2S, UNSPEC_SSHL_2S, UNSPEC_SISD_NEG.
13011 (<optab><mode>3_insn): Remove.
13012 (aarch64_ashl_sisd_or_int_<mode>3): New Pattern.
13013 (aarch64_lshr_sisd_or_int_<mode>3): Likewise.
13014 (aarch64_ashr_sisd_or_int_<mode>3): Likewise.
13015 (define_split for aarch64_lshr_sisd_or_int_di3): Likewise.
13016 (define_split for aarch64_lshr_sisd_or_int_si3): Likewise.
13017 (define_split for aarch64_ashr_sisd_or_int_di3): Likewise.
13018 (define_split for aarch64_ashr_sisd_or_int_si3): Likewise.
13019 (aarch64_sisd_ushl, aarch64_sisd_sshl): Likewise.
13020 (aarch64_ushl_2s, aarch64_sshl_2s, aarch64_sisd_neg_qi): Likewise.
13021 (ror<mode>3_insn): Likewise.
13022 * config/aarch64/predicates.md (aarch64_simd_register): New.
13024 2013-08-27 Richard Biener <rguenther@suse.de>
13026 PR tree-optimization/57521
13027 * tree-if-conv.c (if_convertible_bb_p): Verify that at least
13028 one edge is non-critical.
13029 (find_phi_replacement_condition): Make sure to use a non-critical
13030 edge. Cleanup and remove old bug workarounds.
13031 (bb_postdominates_preds): Remove.
13032 (if_convertible_loop_p_1): Do not compute post-dominators.
13033 (combine_blocks): Do not free post-dominators.
13034 (main_tree_if_conversion): Likewise.
13035 (pass_data_if_conversion): Add TODO_verify_ssa.
13037 2013-08-27 DJ Delorie <dj@redhat.com>
13039 * config/i386/djgpp.h (ASM_DECLARE_FUNCTION_NAME): New.
13041 2013-08-27 Yufeng Zhang <yufeng.zhang@arm.com>
13043 * function.c (assign_parm_find_data_types): Set passed_mode and
13044 nominal_mode to the TYPE_MODE of nominal_type for the built
13045 pointer type in case of the struct-pass-by-reference.
13047 2013-08-26 Joern Rennecke <joern.rennecke@embecosm.com>
13049 * config/avr/avr-stdint.h (INT16_TYPE): Change default to "int".
13050 (UINT16_TYPE): Change default to "unsigned int".
13052 * config/avr/avr.opt (mfract-convert-truncate): New option.
13053 * config/avr/avr.c (avr_out_fract): Unless TARGET_FRACT_CONV_TRUNC
13054 is set, round negative fractional integers according to n1169
13055 when converting to integer types.
13057 2013-08-26 Jan Hubicka <jh@suse.cz>
13059 * cgraph.c (cgraph_propagate_frequency): Do not assume that virtual
13060 methods can not be called indirectly when their address is not taken.
13062 2013-08-26 Jan Hubicka <jh@suse.cz>
13064 * gimple-fold.c (gimple_get_virt_method_for_binfo): Use
13067 2013-08-26 Jan Hubicka <jh@suse.cz>
13069 * ipa.c (comdat_can_be_unshared_p_1): C++ constructors and destructors
13072 2013-08-26 Joern Rennecke <joern.rennecke@embecosm.com>
13074 * reload.c (find_valid_class): Allow classes that do not include
13075 FIRST_PSEUDO_REGISTER - 1.
13077 2013-08-26 Jan Hubicka <jh@suse.cz>
13079 * cgraph.c (cgraph_redirect_edge_call_stmt_to_callee): Fix formatting;
13080 fix edge count/frequency when speculation failed; fix type check
13081 for the direct call.
13083 2013-08-26 Jan Hubicka <jh@suse.cz>
13085 * ipa-prop.c (ipa_print_node_params): Do not ICE during WPA.
13087 2013-08-26 Jan Hubicka <jh@suse.cz>
13089 * ipa-inline-transform.c (inline_transform): Be ready for basic block
13090 to be changed by edge redirection.
13092 2013-08-26 Jan Hubicka <jh@suse.cz>
13094 * cgraph.c (cgraph_speculative_call_info): Fix parameter order and
13095 formating; add sanity check.
13096 (cgraph_resolve_speculation): Add FIXME about scaling profiles.
13097 (cgraph_redirect_edge_call_stmt_to_callee): Fix ICE in debug dump.
13098 * ipa-inline.c (heap_edge_removal_hook): Reset node growth cache.
13099 (resolve_noninline_speculation): Update callee keys, too.
13101 2013-08-26 Jan Hubicka <jh@suse.cz>
13103 * tree.h (tree_decl_with_vis): Add cxx_constructor, cxx_destructor.
13104 (DECL_CXX_CONSTRUCTOR_P, DECL_CXX_DESTRUCTOR_P): New macros.
13106 2013-08-26 Joern Rennecke <joern.rennecke@embecosm.com>
13108 * config/i386/i386.c (x86_64_elf_select_section): Put ATTRIBUTE_UNUSED
13111 2013-08-26 Uros Bizjak <ubizjak@gmail.com>
13113 * config/i386/i386.c (ix86_debug_options): Remove prototype.
13114 (x86_64_elf_select_section): Ditto.
13115 (ix86_handle_tm_regparm_attribute): Remove ATTRIBUTE_UNUSED on used
13117 (ix86_pass_by_reference): Ditto.
13118 (output_set_got): Ditto.
13119 (ix86_unary_operator_ok): Ditto.
13120 (ix86_expand_builtin): Ditto.
13122 2013-08-23 Jan Hubicka <jh@suse.cz>
13124 * cgraph.c (cgraph_turn_edge_to_speculative): Fix debug output.
13126 2013-08-23 Jan Hubicka <jh@suse.cz>
13128 * tree.h (TYPE_FINAL_P, DECL_FINAL_P): New macros.
13129 (tree_decl_with_vis): Add FINAL field.
13131 2013-08-23 Jeff Law <law@redhat.com>
13133 * tree-ssa-pre.c (do_regular_insertion): Include the expression in
13134 the debugging dump when the expression is fully redundant.
13136 2013-08-23 Gabriel Dos Reis <gdr@integrable-solutions.net>
13138 * diagnostic.c (diagnostic_set_caret_max_width): Use pp_buffer.
13139 * gimple-pretty-print.c (gimple_dump_bb_buff): Likewise.
13140 * pretty-print.c (pp_formatted_text_data): Likewise.
13141 (pp_write_text_to_stream): Likewise.
13142 (pp_write_text_as_dot_label_to_stream): Likewise.
13143 (pp_append_r): Likewise.
13144 (pp_format): Likewise.
13145 (pp_flush): Likewise.
13146 (pp_clear_output_area): Likewise.
13147 (pp_append_text): Likewise.
13148 (pp_formatted_text): Likewise.
13149 (pp_remaining_character_count_for_line): Likewise.
13150 (pp_newline): Likewise.
13151 (pp_character): Likewise.
13152 (output_buffer::~output_buffer): Define.
13153 (pretty_printer::~pretty_printer): Destruct output buffer.
13154 * pretty-print.h (output_buffer::~output_buffer): Declare.
13155 (pretty_printer::~pretty_printer): Declare virtual.
13157 2013-08-24 Marc Glisse <marc.glisse@inria.fr>
13160 * hwint.h (HOST_WIDE_INT_UC, HOST_WIDE_INT_1U, HOST_WIDE_INT_M1,
13161 HOST_WIDE_INT_M1U): New macros.
13162 * fold-const.c (sign_bit_p, build_range_check, fold_unary_loc,
13163 fold_binary_loc, fold_ternary_loc): Use the new macros. Use an
13164 unsigned -1 for lshift.
13165 * cse.c (cse_insn): Likewise.
13166 * double-int.c (rshift_double, lshift_double): Likewise.
13167 * builtins.c (fold_builtin_bitop): Likewise.
13168 * combine.c (force_to_mode): Likewise.
13169 * tree.c (integer_pow2p, tree_log2, tree_floor_log2): Likewise.
13170 * simplify-rtx.c (simplify_const_unary_operation,
13171 simplify_const_binary_operation): Likewise.
13172 * tree-stdarg.c (va_list_counter_bump, va_list_ptr_read,
13173 check_va_list_escapes): Likewise.
13174 * rtlanal.c (nonzero_bits1): Likewise.
13175 * expmed.c (expand_smod_pow2): Likewise.
13176 * tree-ssa-structalias.c (UNKNOWN_OFFSET): Use HOST_WIDE_INT_MIN.
13178 2013-08-23 Jan Hubicka <jh@suse.cz>
13180 * cgraph.c (cgraph_turn_edge_to_speculative): Mark target node
13181 as having address taken.
13183 2013-08-23 Jan Hubicka <jh@suse.cz>
13185 * ipa-utils.h (method_class_type): Declare.
13186 * ipa-devirt.c (method_class_type): Export.
13188 * cgraphunit.c (analyze_functions): Do basic devirtualization;
13189 do not walk base classes of anonymous types.
13191 2013-08-23 Kaz Kojima <kkojima@gcc.gnu.org>
13193 PR rtl-optimization/58220
13194 PR regression/58221
13195 * final.c (reemit_insn_block_notes): Use NEXT_INSN to
13196 handle SEQUENCE insns properly.
13198 2013-08-23 Gabriel Dos Reis <gdr@integrable-solutions.net>
13200 * pretty-print.h (pp_newline_and_flush): Declare. Remove macro
13202 (pp_newline_and_indent): Likewise.
13203 (pp_separate_with): Likewise.
13204 * pretty-print.c (pp_newline_and_flush): Define.
13205 (pp_newline_and_indent): Likewise.
13206 (pp_separate_with): Likewise.
13208 2013-08-23 Jakub Jelinek <jakub@redhat.com>
13211 * config/i386/x86-64.h (TARGET_SECTION_TYPE_FLAGS): Define.
13212 * config/i386/i386.c (x86_64_elf_section_type_flags): New function.
13214 2013-08-23 Kirill Yukhin <kirill.yukhin@intel.com>
13216 * config/i386/predicates.md (ext_sse_reg_operand): New.
13217 * config/i386/i386.md (*movti_internal): Use
13218 predicate to determine if EVEX is needed.
13219 (*movsi_internal): Ditto.
13220 (*movdf_internal): Ditto.
13221 (*movsf_internal): Ditto.
13222 * config/i386/mmx.md (*mov<mode>_internal): Ditto.
13224 2013-08-23 Jakub Jelinek <jakub@redhat.com>
13226 PR tree-optimization/58209
13227 * tree-tailcall.c (process_assignment): Handle POINTER_PLUS_EXPR.
13228 (find_tail_calls): Give up for pointer result types if m is non-NULL.
13229 (adjust_return_value_with_ops): For PLUS_EXPR and pointer result type
13230 emit POINTER_PLUS_EXPR.
13231 (create_tailcall_accumulator): For pointer result type accumulate in
13234 2013-08-22 Paolo Carlini <paolo.carlini@oracle.com>
13236 * configure.ac: Add backslashes missing from the last change.
13237 * configure: Regenerate.
13239 2013-08-22 Jan Hubicka <jh@susue.cz>
13241 * ipa.c (function_and_variable_visibility): First remember function
13242 was global and then make it local.
13244 2013-08-22 Julian Brown <julian@codesourcery.com>
13246 * configure.ac: Add aarch64 to list of arches which use "nop" in
13248 * configure: Regenerate.
13250 2013-08-22 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
13252 * config/s390/linux.h (TARGET_LIBC_HAS_FUNCTION): Define as
13253 gnu_libc_has_function.
13254 * config/s390/tpf.h: Likewise.
13256 2013-08-22 Jan Hubicka <jh@susue.cz>
13258 * timevar.c (validate_phases): Add cast.
13260 2013-08-22 Jan Hubicka <jh@susue.cz>
13262 * timevar.c (validate_phases): Use size_t for memory.
13263 * timevar.h (struct timevar_time_def): Use size_t for ggc_mem.
13265 2013-08-22 Gabriel Dos Reis <gdr@integrable-solutions.net>
13267 * pretty-print.h (output_buffer::output_buffer): Declare.
13268 (pretty_printer::pretty_printer): Likewise.
13269 (pp_construct): Remove.
13270 * pretty-print.c (output_buffer::output_buffer): Define.
13271 (pretty_printer::pretty_printer): Rename from pp_construct. Simplify.
13272 * gimple-pretty-print.c (print_gimple_stmt): Do not call pp_construct.
13273 (print_gimple_expr): Likewise.
13274 (print_gimple_seq): Likewise.
13275 (gimple_dump_bb): Likewise.
13276 * sched-vis.c (dump_value_slim): Likewise.
13277 (dump_insn_slim): Likewise.
13278 (dump_rtl_slim): Likewise.
13279 (str_pattern_slim): Likewise.
13280 * tree-mudflap.c (mf_varname_tree): Likewise.
13281 * graph.c (print_graph_cfg): Likewise.
13282 (start_graph_dump): Likewise.
13283 * tree-pretty-print.c (maybe_init_pretty_print): Likewise. Use
13285 * diagnostic.c (diagnostic_initialize): Simplify early diagnostic
13286 pretty printer initialization.
13287 * coretypes.h (diagnostic_context): Remove superflous type alias
13289 (pretty_printer): Likewise. Declare directly as a class.
13290 (pretty_print_info): Remove declaration as class.
13291 * asan.c (asan_emit_stack_protection): Remove call to pp_construct
13292 and pp_clear_output_area.
13293 (asan_add_global): Likewise.
13295 2013-08-22 Jan Hubicka <jh@suse.cz>
13297 * cgraphunit.c (analyze_functions) Use update_type_inheritance_graph.
13298 * ipa-utils.h (update_type_inheritance_graph): Declare.
13299 (possible_polymorphic_call_target_p): Declare.
13300 (possible_polymorphic_call_target_p): New.
13301 * ipa-devirt.c: Update toplevel comments.
13302 (cached_polymorphic_call_targets): Move up.
13303 (odr_type_d): Move ID down.
13304 (polymorphic_type_binfo_p): Update comment.
13305 (odr_hasher::remove): Likewise;
13306 (get_odr_type): Set anonymous_namespace.
13307 (dump_odr_type): Dump it.
13308 (dump_type_inheritance_graph): Do not ICE when there are no ODR types.
13309 (maybe_record_node): Record node in cached_polymorphic_call_targets.
13310 (record_binfo): Add comment.
13311 (free_polymorphic_call_targets_hash): Do not ICE when cache is not
13313 (devirt_node_removal_hook): Do not iCE when cache is freed.
13314 (possible_polymorphic_call_target_p): New predicate.
13315 (update_type_inheritance_graph): New function.
13317 2013-08-22 Alexander Ivchenko <alexander.ivchenko@intel.com>
13318 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
13319 Sergey Lega <sergey.s.lega@intel.com>
13320 Anna Tikhonova <anna.tikhonova@intel.com>
13321 Ilya Tocar <ilya.tocar@intel.com>
13322 Andrey Turetskiy <andrey.turetskiy@intel.com>
13323 Ilya Verbin <ilya.verbin@intel.com>
13324 Kirill Yukhin <kirill.yukhin@intel.com>
13325 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
13327 * common/config/i386/i386-common.c (OPTION_MASK_ISA_AVX512F_SET): New.
13328 (OPTION_MASK_ISA_AVX512CD_SET): Ditto.
13329 (OPTION_MASK_ISA_AVX512PF_SET): Ditto.
13330 (OPTION_MASK_ISA_AVX512ER_SET): Ditto.
13331 (OPTION_MASK_ISA_AVX2_UNSET): Update.
13332 (OPTION_MASK_ISA_AVX512F_UNSET): New.
13333 (OPTION_MASK_ISA_AVX512CD_UNSET): Ditto.
13334 (OPTION_MASK_ISA_AVX512PF_UNSET): Ditto.
13335 (OPTION_MASK_ISA_AVX512ER_UNSET): Ditto.
13336 (ix86_handle_option): Handle OPT_mavx512f, OPT_mavx512cd,
13337 OPT_mavx512pf, OPT_mavx512er cases.
13338 * config/i386/constraints.md (v): New constraint.
13339 (Yi, Yj): Replace SSE_REGS with ALL_SSE_REGS.
13340 * config/i386/cpuid.h (bit_AVX512F, bit_AVX512PF, bit_AVX512ER)
13341 (bit_AVX512CD): New.
13342 * config/i386/driver-i386.c (host_detect_local_cpu): Detect
13343 AVX512F, AVX512ER, AVX512PF, AVX512CD features.
13344 * config/i386/i386-c.c (ix86_target_macros_internal):
13345 Conditionally define __AVX512F__, __AVX512ER__, __AVX512CD__,
13347 * config/i386/i386-modes.def (VECTOR_MODES (INT, 128))
13348 (VECTOR_MODES (FLOAT, 128), INT_MODE (XI, 64)): New modes.
13349 * config/i386/i386.c (regclass_map, dbx_register_map)
13350 (dbx64_register_map, svr4_dbx_register_map): Add new SSE registers.
13351 (gate_insert_vzeroupper): Disable vzeroupper for TARGET_AVX512F.
13352 (ix86_target_string): Define -mavx512f, -mavx512er, -mavx512cd,
13353 -mavx512pf options.
13354 (ix86_option_override_internal): Define PTA_AVX512F, PTA_AVX512ER,
13355 PTA_AVX512PF, PTA_AVX512CD. Handle -mavx512f, -mavx512er, -mavx512cd,
13356 -mavx512pf options. Fix formatting.
13357 (ix86_conditional_register_usage): Squash EXT_REX_SSE_REGs for 32-bit
13358 targets. Squash EVEX_SSE_REGS if AVX512F is disabled.
13359 (ix86_valid_target_attribute_inner_p): Handle -mavx512f, -mavx512er,
13360 -mavx512cd, -mavx512pf options.
13361 (standard_sse_constant_opcode): Add vpternlogd for 512-bit modes.
13362 (print_reg, ix86_print_operand): Handle 'g' to output 512-bit operands.
13363 (ix86_preferred_output_reload_class): Replace SSE_REGS with
13365 (ix86_hard_regno_mode_ok): Support 512-bit registers.
13366 (ix86_set_reg_reg_cost): Ditto.
13367 (x86_order_regs_for_local_alloc): Ditto.
13368 (MAX_VECT_LEN): Extend to 64-byte.
13369 (ix86_spill_class): Replace SSE_REGS with ALL_SSE_REGS.
13370 * config/i386/i386.h (TARGET_AVX512F, TARGET_AVX512PF)
13371 (TARGET_AVX512ER, TARGET_AVX512CD): New.
13372 (BIGGEST_ALIGNMENT): Extend to 512-bits.
13373 (FIRST_PSEUDO_REGISTER, FIXED_REGISTERS): Add new registers.
13374 (CALL_USED_REGISTERS, REG_ALLOC_ORDER): Likewise.
13375 (VALID_AVX512F_SCALAR_MODE, VALID_AVX512F_REG_MODE): New.
13376 (SSE_REG_MODE_P): Support new modes.
13377 (FIRST_MMX_REG, FIRST_REX_INT_REG, FIRST_REX_SSE_REG): Add comments.
13378 (FIRST_EXT_REX_SSE_REG, LAST_EXT_REX_SSE_REG): New.
13379 (reg_class, REG_CLASS_NAMES): Add EVEX_SSE_REGS, ALL_SSE_REGS.
13380 (SSE_CLASS_P, MAYBE_SSE_CLASS_P): Replace SSE_REGS with ALL_SSE_REGS.
13381 (REG_CLASS_CONTENTS): Add new registers.
13382 (SSE_REGNO_P, SSE_REGNO, HARD_REGNO_RENAME_OK): Support new registers.
13383 (EXT_REX_SSE_REGNO_P): New.
13384 (HI_REGISTER_NAMES): Add new registers.
13385 * config/i386/i386.md: Define constants for new registers.
13386 (mode): Add new 512-bit modes.
13387 (prefix): Support evex prefix.
13388 (isa): Support avx512f, noavx512f, fma_avx512f.
13389 (ssemodesuffix): Add new 512-bit modes.
13391 (*movxi_internal_avx512f): Ditto.
13392 (*movdi_internal): Replace constraint "x" with the new constraint "v".
13394 (*movsi_internal): Likewise.
13395 (*movdf_internal): Likewise.
13396 (*movsf_internal): Likewise.
13397 (*fop_<mode>_comm_sse): Replace constraint "x" with new constraint "v".
13398 (<code><mode>3): Likewise.
13399 * config/i386/i386.opt (mavx512f, mavx512pf, mavx512er, mavx512cd):
13401 * config/i386/mmx.md (*mov<mode>_internal): Replace constraint "x"
13402 with the new constraint "v".
13403 * config/i386/sse.md (*mov<mode>_internal): Support new registers and
13405 (<sse>_loadu<ssemodesuffix><avxsizesuffix>): Replace constraint "x"
13406 with the new constraint "v".
13407 (<sse2>_loaddqu<avxsizesuffix>): Likewise.
13408 (<sse2>_storedqu<avxsizesuffix>): Likewise.
13409 (*<plusminus_insn><mode>3): Likewise.
13410 (<sse>_vm<plusminus_insn><mode>3): Likewise.
13411 (*mul<mode>3): Likewise.
13412 (<sse>_vmmul<mode>3): Likewise.
13413 (<sse>_div<mode>3): Likewise.
13414 (<sse>_vmdiv<mode>3): Likewise.
13415 (<sse>_sqrt<mode>2): Likewise.
13416 (<sse>_vmsqrt<mode>2): Likewise.
13417 (*<code><mode>3_finite): Likewise.
13418 (*<code><mode>3) <smaxmin>: Likewise.
13419 (<sse>_vm<code><mode>3): Likewise.
13420 (*<code><mode>3) <any_logic>: Likewise.
13421 (*fma_fmadd_<mode>): Likewise.
13422 (*fma_fmsub_<mode>): Likewise.
13423 (*fma_fnmadd_<mode>): Likewise.
13424 (*fma_fnmsub_<mode>): Likewise.
13425 (*fma_fmaddsub_<mode>): Likewise.
13426 (*fma_fmsubadd_<mode>): Likewise.
13427 (*fmai_fmadd_<mode>): Likewise.
13428 (*fmai_fmsub_<mode>): Likewise.
13429 (*fmai_fnmadd_<mode>): Likewise.
13430 (*fmai_fnmsub_<mode>): Likewise.
13431 (sse_cvtsi2ss): Likewise.
13432 (sse_cvtsi2ssq): Likewise.
13433 (sse_cvtss2si): Likewise.
13434 (sse_cvtss2si_2): Likewise.
13435 (sse_cvtss2siq): Likewise.
13436 (sse_cvtss2siq_2): Likewise.
13437 (sse_cvttss2si): Likewise.
13438 (sse_cvtss2siq_2): Likewise.
13439 (float<sseintvecmodelower><mode>2): Likewise.
13440 (sse2_cvtsd2si_2): Likewise.
13441 (sse2_cvtsd2siq_2): Likewise.
13442 (*<plusminus_insn><mode>3): Likewise.
13443 (*<sse2_avx2>_<plusminus_insn><mode>3): Likewise.
13444 (*<sse4_1_avx2>_mul<mode>3): Likewise.
13445 (ashr<mode>3): Likewise.
13446 (<shift_insn><mode>3): Likewise.
13447 (avx2_<code><mode>3): Likewise.
13448 (*avx2_<code><mode>3): Likewise.
13449 (*andnot<mode>3): Likewise.
13450 (*<code><mode>3) <any_logic>: Likewise.
13451 (abs<mode>2): Likewise.
13452 (avx2_permvar<mode>): Likewise.
13453 (avx2_perm<mode>_1): Likewise.
13454 (*avx_vpermilp<mode>): Likewise.
13455 (avx_vpermilvar<mode>3): Likewise.
13456 (avx2_ashrv<mode>): Likewise.
13457 (avx2_<shift_insn>v<mode>): Likewise.
13458 * doc/invoke.texi: Document -mavx512f, -mavx512pf, -mavx512er,
13460 * doc/rtl.texi: Document XImode.
13462 2013-08-21 Jeff Law <law@redhat.com>
13464 * tree-flow.h (register_jump_thread): Pass vector of edges
13465 instead of each important edge.
13466 * tree-ssa-threadedge.c (thread_across_edge): Build the jump
13467 thread path into a vector and pass that to register_jump_thread.
13468 * tree-ssa-threadupdate.c (register_jump_thread): Conver the
13469 passed in edge vector to the current 3-edge form.
13472 2013-08-20 Alexey Makhalov <makhaloff@gmail.com>
13474 * dce.c (fini_dce): Call df_analyze again just in case
13475 delete_unmarked_insns removed anything.
13477 2013-08-21 Joern Rennecke <joern.rennecke@embecosm.com>
13479 * reload.h (struct reg_equivs): Rename to ..
13480 (struct reg_equivs_s): .. this.
13482 2013-08-20 Martin Liska <marxin.liska@gmail.com>
13484 * ipa.c (ipa_profile_read_summary): Fix buffer overflow.
13486 2013-08-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
13488 * config/sol2-10.h (TARGET_LIBC_HAS_FUNCTION): Don't nest comment.
13490 2013-08-21 Jeff Law <law@redhat.com>
13492 * tree-vrp.c (simplify_stmt_for_jump_threading): Try to
13493 simplify assignments too. If the RHS collapses to a singleton
13494 range, then return the value for the range.
13496 2013-08-21 Kirill Yukhin <kirill.yukhin@intel.com>
13498 * config/i386/sse.md (V16): Rename to...
13500 (mov<mode>): Update iterator name.
13501 (*mov<mode>_internal): Ditto.
13502 (push<mode>1): Ditto.
13503 (movmisalign<mode>): Ditto.
13505 2013-08-20 Jan Hubicka <jh@suse.cz>
13508 * cgraph.c (cgraph_add_edge_to_call_site_hash): Overwrite hash
13509 entry for direct edges.
13510 (cgraph_turn_edge_to_speculative): Fix setting of can_throw_external.
13512 2013-08-20 David Malcolm <dmalcolm@redhat.com>
13514 Revert my last two changes, r201865 and r201864:
13517 2013-08-20 David Malcolm <dmalcolm@redhat.com>
13519 Make opt_pass and gcc::pass_manager be GC-managed, so that pass
13520 instances can own GC refs.
13522 * Makefile.in (GTFILES): Add pass_manager.h and tree-pass.h.
13523 * context.c (gcc::context::gt_ggc_mx): Traverse passes_.
13524 (gcc::context::gt_pch_nx): Likewise.
13525 (gcc::context::gt_pch_nx): Likewise.
13526 * ggc.h (gt_ggc_mx <T>): New.
13527 (gt_pch_nx_with_op <T>): New.
13528 (gt_pch_nx <T>): New.
13529 * passes.c (opt_pass::gt_ggc_mx): New.
13530 (opt_pass::gt_pch_nx): New.
13531 (opt_pass::gt_pch_nx_with_op): New.
13532 (pass_manager::gt_ggc_mx): New.
13533 (pass_manager::gt_pch_nx): New.
13534 (pass_manager::gt_pch_nx_with_op): New.
13535 (pass_manager::operator new): Use
13536 ggc_internal_cleared_alloc_stat rather than xcalloc.
13537 * pass_manager.h (class pass_manager): Add GTY((user)) marking.
13538 (pass_manager::gt_ggc_mx): New.
13539 (pass_manager::gt_pch_nx): New.
13540 (pass_manager::gt_pch_nx_with_op): New.
13541 * tree-pass.h (class opt_pass): Add GTY((user)) marking.
13542 (opt_pass::operator new): New.
13543 (opt_pass::gt_ggc_mx): New.
13544 (opt_pass::gt_pch_nx): New.
13545 (opt_pass::gt_pch_nx_with_op): New.
13548 2013-08-20 David Malcolm <dmalcolm@redhat.com>
13550 * Makefile.in (GTFILES): Add context.h.
13551 * context.c (gcc::context::operator new): New.
13552 (gcc::context::gt_ggc_mx): New.
13553 (gcc::context::gt_pch_nx): New.
13554 (gcc::context::gt_pch_nx): New.
13555 * context.h (gcc::context): Add GTY((user)) marking.
13556 (gcc::context::operator new): New.
13557 (gcc::context::gt_ggc_mx): New.
13558 (gcc::context::gt_pch_nx): New.
13559 (gcc::context::gt_pch_nx): New.
13560 (g): Add GTY marking.
13561 (gt_ggc_mx (gcc::context *)): New.
13562 (gt_pch_nx (gcc::context *)): New.
13563 (gt_pch_nx (gcc::context *ctxt, gt_pointer_operator op,
13564 void *cookie)): New.
13565 * gengtype.c (open_base_files) <ifiles>: Add context.h.
13567 2013-08-20 Alexey Makhalov <makhaloff@gmail.com>
13569 * dce.c (fini_dce): Call df_analyze again just in case
13570 delete_unmarked_insns removed anything.
13572 2013-08-20 Teresa Johnson <tejohnson@google.com>
13574 PR rtl-optimizations/57451
13575 * final.c (reemit_insn_block_notes): Prevent lexical blocks
13576 from crossing split section boundaries.
13578 2013-08-20 Matthew Gretton-Dann <matthew.gretton-dann@linaro.org>
13580 * config/arm/linux-elf.h (MULTILIB_DEFAULTS): Remove definition.
13581 * config/arm/t-linux-eabi (MULTILIB_OPTIONS): Document association
13582 with MULTLIB_DEFAULTS.
13584 2013-08-20 Nick Clifton <nickc@redhat.com>
13586 * target.def (narrow_volatile_bitfield): Note that the default
13587 value is false, not !TARGET_STRICT_ALIGN.
13588 * doc/tm.texi: Regenerate.
13590 2013-08-20 Pavel Chupin <pavel.v.chupin@intel.com>
13592 Fix LIB_SPEC for systems without libpthread.
13594 * config/gnu-user.h: Introduce GNU_USER_TARGET_NO_PTHREADS_LIB_SPEC.
13595 * config/arm/linux-eabi.h: Use GNU_USER_TARGET_NO_PTHREADS_LIB_SPEC
13597 * config/i386/linux-common.h: Likewise.
13598 * config/mips/linux-common.h: Likewise.
13600 2013-08-20 Zhouyi Zhou <yizhouzhou@ict.ac.cn>
13602 * tree-ssa-ccp.c (get_default_value): Remove redundant condition
13605 2013-08-20 David Malcolm <dmalcolm@redhat.com>
13607 Make opt_pass and gcc::pass_manager be GC-managed, so that pass
13608 instances can own GC refs.
13610 * Makefile.in (GTFILES): Add pass_manager.h and tree-pass.h.
13611 * context.c (gcc::context::gt_ggc_mx): Traverse passes_.
13612 (gcc::context::gt_pch_nx): Likewise.
13613 (gcc::context::gt_pch_nx): Likewise.
13614 * ggc.h (gt_ggc_mx <T>): New.
13615 (gt_pch_nx_with_op <T>): New.
13616 (gt_pch_nx <T>): New.
13617 * passes.c (opt_pass::gt_ggc_mx): New.
13618 (opt_pass::gt_pch_nx): New.
13619 (opt_pass::gt_pch_nx_with_op): New.
13620 (pass_manager::gt_ggc_mx): New.
13621 (pass_manager::gt_pch_nx): New.
13622 (pass_manager::gt_pch_nx_with_op): New.
13623 (pass_manager::operator new): Use
13624 ggc_internal_cleared_alloc_stat rather than xcalloc.
13625 * pass_manager.h (class pass_manager): Add GTY((user)) marking.
13626 (pass_manager::gt_ggc_mx): New.
13627 (pass_manager::gt_pch_nx): New.
13628 (pass_manager::gt_pch_nx_with_op): New.
13629 * tree-pass.h (class opt_pass): Add GTY((user)) marking.
13630 (opt_pass::operator new): New.
13631 (opt_pass::gt_ggc_mx): New.
13632 (opt_pass::gt_pch_nx): New.
13633 (opt_pass::gt_pch_nx_with_op): New.
13635 2013-08-20 David Malcolm <dmalcolm@redhat.com>
13637 * Makefile.in (GTFILES): Add context.h.
13638 * context.c (gcc::context::operator new): New.
13639 (gcc::context::gt_ggc_mx): New.
13640 (gcc::context::gt_pch_nx): New.
13641 (gcc::context::gt_pch_nx): New.
13642 * context.h (gcc::context): Add GTY((user)) marking.
13643 (gcc::context::operator new): New.
13644 (gcc::context::gt_ggc_mx): New.
13645 (gcc::context::gt_pch_nx): New.
13646 (gcc::context::gt_pch_nx): New.
13647 (g): Add GTY marking.
13648 (gt_ggc_mx (gcc::context *)): New.
13649 (gt_pch_nx (gcc::context *)): New.
13650 (gt_pch_nx (gcc::context *ctxt, gt_pointer_operator op,
13651 void *cookie)): New.
13652 * gengtype.c (open_base_files) <ifiles>: Add context.h.
13654 2013-08-20 Alan Modra <amodra@gmail.com>
13657 * config/rs6000/rs6000.c (rs6000_emit_prologue): Correct ool_adjust.
13658 (rs6000_emit_epilogue): Likewise.
13660 2013-08-19 Dehao Chen <dehao@google.com>
13662 * value-prof.c (gimple_ic): Fix the bug of adding EH edge.
13664 2013-08-19 Peter Bergner <bergner@vnet.ibm.com>
13665 Jakub Jelinek <jakub@redhat.com>
13667 * builtins.def (BUILT_IN_FABSD32): New DFP ABS builtin.
13668 (BUILT_IN_FABSD64): Likewise.
13669 (BUILT_IN_FABSD128): Likewise.
13670 * builtins.c (expand_builtin): Add support for new DFP ABS builtins.
13671 (fold_builtin_1): Likewise.
13672 * config/rs6000/dfp.md (*negtd2_fpr): Handle non-overlapping
13673 destination and source operands.
13674 (*abstd2_fpr): Likewise.
13675 (*nabstd2_fpr): Likewise.
13677 2013-08-19 Richard Sandiford <rdsandiford@googlemail.com>
13679 * config/mips/mips.c (mips_adjust_insn_length): Add checks for
13682 2013-08-19 Aldy Hernandez <aldyh@redhat.com>
13684 * doc/invoke.texi (-fcilkplus): Clarify that implementation is
13687 2013-08-19 Alexander Ivchenko <alexander.ivchenko@intel.com>
13689 * target.def (TARGET_LIBC_HAS_FUNCTION): New target hook.
13690 * builtins.c (default_libc_has_function): New.
13691 (gnu_libc_has_function): Ditto.
13692 (no_c99_libc_has_function): Ditto.
13693 (expand_builtin_cexpi): Using new target hook TARGET_LIBC_HAS_FUNCTION
13694 instead of TARGET_HAS_SINCOS and TARGET_C99_FUNCTIONS.
13695 (fold_builtin_sincos): Likewise.
13696 (fold_builtin_cexp): Likewise.
13697 * builtins.def (DEF_C94_BUILTIN): Likewise.
13698 (DEF_C99_BUILTIN): Likewise.
13699 (DEF_C99_C90RES_BUILTIN): Likewise.
13700 (DEF_C99_COMPL_BUILTIN): New define. Change all complex c99 builtin
13701 definitions to using this define.
13702 * config/darwin-protos.h (darwin_libc_has_function): New.
13703 * config/darwin.c (darwin_libc_has_function): Ditto.
13704 * config/alpha/linux.h: Remove TARGET_C99_FUNCTIONS and
13705 TARGET_HAS_SINCOS. Redefine TARGET_LIBC_HAS_FUNCTION.
13706 * config/darwin.h: Ditto.
13707 * config/elfos.h: Ditto.
13708 * config/freebsd.h: Ditto.
13709 * config/i386/cygming.h: Ditto.
13710 * config/i386/djgpp.h: Ditto.
13711 * config/i386/i386-interix.h: Ditto.
13712 * config/microblaze/microblaze.h: Ditto.
13713 * config/mmix/mmix.h: Ditto.
13714 * config/gnu-user.h: Ditto.
13715 * config/ia64/hpux.h: Ditto.
13716 * config/pa/pa-hpux.h: Ditto.
13717 * config/pdp11/pdp11.h: Ditto.
13718 * config/picochip/picochip.h: Ditto.
13719 * config/linux.h: Ditto.
13720 * config/netbsd.h: Ditto.
13721 * config/openbsd.h: Ditto.
13722 * config/rs6000/aix43.h: Ditto.
13723 * config/rs6000/aix51.h: Ditto.
13724 * config/rs6000/aix52.h: Ditto.
13725 * config/rs6000/aix53.h: Ditto.
13726 * config/rs6000/aix61.h: Ditto.
13727 * config/rs6000/darwin.h: Ditto.
13728 * config/rs6000/linux.h: Ditto.
13729 * config/rs6000/linux64.h: Ditto.
13730 * config/s390/tpf.h: Ditto.
13731 * config/sol2-10.h: Ditto.
13732 * config/sol2.h: Ditto.
13733 * config/vms/vms.h: Ditto.
13734 * config/vxworks.h: Ditto.
13735 * config/linux-android.c (linux_android_libc_has_function):
13736 New linux-specific implementation of TARGET_LIBC_HAS_FUNCTION.
13737 * config/linux-protos.h (linux_android_libc_has_function):
13739 * config/i386/i386.c (ix86_libc_has_function): New.
13740 * config/i386/i386-protos.h
13741 (ix86_libc_has_function): New declaration.
13742 * config/i386/i386.md
13743 ("isinfxf2"): Change condition for TARGET_LIBC_HAS_FUNCTION.
13744 ("isinf<mode>2): Likewise.
13745 * convert.c (convert_to_integer): Using new target hook
13746 TARGET_LIBC_HAS_FUNCTION istead of TARGET_HAS_SINCOS and
13747 TARGET_C99_FUNCTIONS.
13748 * fortran/f95-lang.c (gfc_init_builtin_functions): Ditto.
13749 * tree-ssa-math-opts.c (execute_cse_sincos): Ditto.
13750 * coretypes.h (function_class): New enum for different
13751 classes of functions.
13752 * defaults.h: Remove TARGET_C99_FUNCTIONS and TARGET_HAS_SINCOS.
13753 * doc/tm.texi.in (TARGET_C99_FUNCTIONS): Remove documentation.
13754 (TARGET_HAS_SINCOS): Likewise.
13755 (TARGET_LIBC_HAS_FUNCTION): New.
13756 * doc/tm.texi: Regenerated.
13757 * targhooks.h (default_libc_has_function): New declaration.
13758 (no_c99_libc_has_function): Ditto.
13759 (gnu_libc_has_function): Ditto.
13760 * system.h: Add the poisoning of TARGET_C99_FUNCTIONS
13761 and TARGET_HAS_SINCOS.
13763 2013-08-18 Jan Hubicka <jh@suse.cz>
13765 * Makeifle-in (ipa-devirt.o): New.
13766 (GTFILES): Add ipa-utils.h and ipa-devirt.c
13767 * cgraphunit.c (decide_is_symbol_needed): Do not care about virtuals.
13768 (analyze_functions): Look into possible targets of polymorphic call.
13769 * dumpfile.c (dump_files): Add type-inheritance dump.
13770 * dumpfile.h (TDI_inheritance): New.
13771 * ipa-devirt.c: New file.
13772 * ipa-utils.h (odr_type_d): Forward declare.
13773 (odr_type): New type.
13774 (build_type_inheritance_graph): Declare.
13775 (possible_polymorphic_call_targets): Declare and introduce inline
13776 variant when only edge is pased.
13777 (dump_possible_polymorphic_call_targets): Likewise.
13778 * timevar.def (TV_IPA_INHERITANCE, TV_IPA_VIRTUAL_CALL): New.
13779 * tree.c (type_in_anonymous_namespace_p): Break out from ...
13780 (types_same_for_odr): ... here.
13781 * tree.h (type_in_anonymous_namespace_p): Declare.
13783 2013-08-18 Jakub Jelinek <jakub@redhat.com>
13785 PR tree-optimization/58006
13786 * tree-parloops.c (take_address_of): Don't ICE if get_name
13788 (eliminate_local_variables_stmt): Remove clobber stmts.
13790 2013-08-18 Eric Botcazou <ebotcazou@adacore.com>
13792 * cgraphunit.c (handle_alias_pairs): Reset the alias flag after the
13793 error message is issued for an alias to undefined symbol.
13795 2013-08-18 Jan Hubicka <jh@suse.cz>
13797 * cgraph.c (cgraph_create_indirect_edge): Discover
13798 polymorphic calls and record basic info into indirect_info.
13799 * gimple-fold.c (gimple_fold_call): When doing BINFO based
13800 devirtualization, ignore objc function calls.
13801 * ipa-cp.c (initialize_node_lattices): Be ready for polymorphic
13802 call with no parm index info.
13803 * ipa-prop.c (ipa_analyze_call_uses): Likewise.
13804 * tree.c (virtual_method_call_p): New function.
13805 * tree.h (virtual_method_call_p): Declare.
13807 2013-08-16 Jan Hubicka <jh@suse.cz>
13809 PR middle-end/58179
13810 * tree.c (obj_type_ref_class): Do not ICE on non-method calls.
13812 2013-08-16 David Edelsohn <dje.gcc@gmail.com>
13814 * config/rs6000/rs6000.md (rs6000_get_timebase_ppc32): Add length
13817 2013-08-16 David Malcolm <dmalcolm@redhat.com>
13819 * gengtype.c (type_for_name): Add special-case support for
13820 locating types within the "gcc::" namespace.
13821 (open_base_files): Emit a "using namespace gcc" directive.
13823 2013-08-16 Michael Meissner <meissner@linux.vnet.ibm.com>
13826 * config/rs6000/predicates.md (fusion_gpr_mem_load): Allow the
13827 memory rtx to contain ZERO_EXTEND and SIGN_EXTEND.
13829 * config/rs6000/rs6000-protos.h (fusion_gpr_load_p): Pass operands
13830 array instead of each individual operand as a separate argument.
13831 (emit_fusion_gpr_load): Likewise.
13832 (expand_fusion_gpr_load): Add new function declaration.
13834 * config/rs6000/rs6000.c (fusion_gpr_load_p): Change the calling
13835 signature to have the operands passed as an array, instead of as
13836 separate arguments. Allow ZERO_EXTEND to be in the memory
13837 address, and also SIGN_EXTEND if -mpower8-fusion-sign. Do not
13838 depend on the register live/dead flags when peepholes are run.
13839 (expand_fusion_gpr_load): New function to be called from the
13840 peephole2 pass, to change the register that addis sets to be the
13842 (emit_fusion_gpr_load): Change the calling signature to have the
13843 operands passed as an array, instead of as separate arguments.
13844 Allow ZERO_EXTEND to be in the memory address, and also
13845 SIGN_EXTEND if -mpower8-fusion-sign.
13847 * config/rs6000/rs6000.md (UNSPEC_FUSION_GPR): Delete unused
13848 unspec enumeration.
13849 (power8 fusion peephole/peephole2): Rework the fusion peepholes to
13850 adjust the register addis loads up in the peephole2 pass. Do not
13851 depend on the register live/dead state when the peephole pass is done.
13853 2013-08-16 David Malcolm <dmalcolm@redhat.com>
13855 * gengtype.c (create_user_defined_type): Ensure that the kind
13856 is set to TYPE_USER_STRUCT, fixing a bug seen when an incomplete
13857 declaration is seen before the GTY((user)) marking.
13859 2013-08-16 Bernd Edlinger <bernd.edlinger@hotmail.de>
13862 * config/i386/i386.c (make_resolver_func): Set DECL_UNINLINABLE.
13864 2013-08-16 Jan Hubicka <jh@suse.cz>
13866 * gimple-fold.c (gimple_extract_devirt_binfo_from_cst): Add new
13867 arugment expected_type.
13868 (gimple_fold_call): Use it.
13869 * gimple.h (gimple_extract_devirt_binfo_from_cst): Update prototype.
13870 * ipa-cp.c (ipa_get_indirect_edge_target_1): Update.
13871 * ipa-prop.c (ipa_analyze_virtual_call_uses): Use obj_type_ref_class.
13872 (try_make_edge_direct_virtual_call): Likewise.
13873 * tree.c (obj_type_ref_class): New.
13874 * tree.h (obj_type_ref_class): Use it.
13876 2013-08-16 Gabriel Dos Reis <gdr@integrable-solutions.net>
13878 * sched-vis.c (rtl_slim_pp_initialized): Remove.
13879 (rtl_slim_pp): Likewise.
13880 (init_rtl_slim_pretty_print): Likewise.
13881 (dump_value_slim): Don't call it. Use local pretty printer.
13882 (dump_insn_slim): Likewise.
13883 (dump_rtl_slim): Likewise.
13884 (str_pattern_slim): Likewise.
13885 * tree-mudflap.c (mf_varname_tree): Use local pretty printer.
13888 2013-08-16 Jakub Jelinek <jakub@redhat.com>
13890 PR tree-optimization/58164
13891 * gimple.c (walk_stmt_load_store_addr_ops): For visit_addr
13892 walk gimple_goto_dest of GIMPLE_GOTO.
13894 PR tree-optimization/58165
13895 * tree-call-cdce.c (shrink_wrap_one_built_in_call): If
13896 bi_call must be the last stmt in a bb, don't split_block, instead
13897 use fallthru edge from it and give up if there is none.
13898 Release conds vector when returning early.
13900 2013-08-14 Xinliang David Li <davidxl@google.com>
13902 * config/i386/i386.c (ix86_option_override_internal):
13903 Remove unused variable and field.
13905 2013-08-14 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
13908 * doc/invoke.texi: Add documentation of mcompat-align-parm option.
13909 * config/rs6000/rs6000.opt: Add mcompat-align-parm option.
13910 * config/rs6000/rs6000.c (rs6000_function_arg_boundary): For AIX
13911 and Linux, correct BLKmode alignment when 128-bit alignment is
13912 required and compatibility flag is not set.
13913 (rs6000_gimplify_va_arg): For AIX and Linux, honor specified alignment
13914 for zero-size arguments when compatibility flag is not set.
13916 2013-08-14 Jakub Jelinek <jakub@redhat.com>
13918 PR tree-optimization/58145
13919 * tree-sra.c (build_ref_for_offset): If prev_base has
13920 TREE_THIS_VOLATILE or TREE_SIDE_EFFECTS, propagate it to MEM_REF.
13922 2013-08-14 Xinliang David Li <davidxl@google.com>
13924 * config/i386/i386.c (ix86_option_override_internal):
13925 Fix uninitialized variable error.
13927 2013-08-14 Xinliang David Li <davidxl@google.com>
13929 * config/i386/i386.opt: Define two new options.
13930 * config/i386/x86-tune.def: Add arch selector field in macros.
13931 * config/i386/i386.h: Adjust macro definition.
13932 * config/i386/i386.c (ix86_option_override_internal):
13934 (parse_mtune_ctrl_str): New function.
13935 (set_ix86_tune_features): New function.
13936 (ix86_function_specific_restore): Call the new helper function.
13938 2013-08-14 Andrey Belevantsev <abel@ispras.ru>
13940 PR rtl-optimization/57662
13941 * sel-sched.c (code_motion_process_successors): When the current insn
13942 is removed after the recursive traversal, break from the loop.
13943 Add comments and debug printouts.
13945 2013-08-14 Jakub Jelinek <jakub@redhat.com>
13946 Alexandre Oliva <aoliva@redhat.com>
13949 * config/i386/i386.c (ix86_delegitimize_address): For CM_MEDIUM_PIC
13950 and CM_LARGE_PIC ix86_cmodel fall thru into the -m32 code, handle
13951 there also UNSPEC_PLTOFF.
13953 2013-08-14 Marek Polacek <polacek@redhat.com>
13955 * ipa-inline-analysis.c (add_clause): Avoid shifting integer
13956 NUM_CONDITIONS bit positions.
13958 2013-08-13 Cary Coutant <ccoutant@google.com>
13960 * dwarf2out.c (CHECKSUM_BLOCK): New macro.
13961 (attr_checksum): Hash vector contents instead of pointer.
13962 (attr_checksum_ordered): Likewise.
13964 2013-08-13 Uros Bizjak <ubizjak@gmail.com>
13966 * config/i386/sse.md (*sse2_maskmovdqu): Emit addr32 prefix
13967 when Pmode != word_mode. Add length_address attribute.
13968 (sse3_monitor_<mode>): Merge from sse3_monitor and
13969 sse3_monitor64_<mode> insn patterns. Emit addr32 prefix when
13970 Pmode != word_mode. Update insn length attribute.
13971 * config/i386/i386.c (ix86_option_override_internal): Update
13972 ix86_gen_monitor selection for merged sse3_monitor insn.
13974 2013-08-13 Julian Brown <julian@codesourcery.com>
13976 * config/rs6000/rs6000.c (rs6000_legitimize_reload_address): Don't
13977 perform invalid legitimization on greater-than-word-size modes for
13978 TARGET_E500_DOUBLE.
13980 2013-08-13 Vladimir Makarov <vmakarov@redhat.com>
13982 * ira.c (setup_class_translate_array): Use aclass instead of cl
13983 for classes not fully covered by allocno classes.
13985 2013-08-13 Jakub Jelinek <jakub@redhat.com>
13987 PR tree-optimization/57661
13988 * tree-inline.h (struct copy_body_data): Add blocks_to_copy field.
13989 * tree-inline.c (tree_function_versioning): Initialize it.
13990 (remap_gimple_stmt): Return GIMPLE_NOP for MEM_REF lhs clobber stmts
13991 if id->blocks_to_copy and MEM_REF's SSA_NAME is defined in a block
13992 that is not being copied.
13995 * asan.c (instrument_strlen_call): Fix typo in comment.
13996 Use char * type even for the lhs of POINTER_PLUS_EXPR.
13998 2013-08-13 Steve Ellcey <sellcey@mips.com>
14000 * config/mips/mips.md (prefetch): Use lw instead of ld on
14001 loongson in 32bit mode.
14003 2013-08-13 Nick Clifton <nickc@redhat.com>
14005 * config.gcc: (avr-linux): Allow for tmake_file not being empty.
14007 2013-08-13 Jan Hubicka <jh@suse.cz>
14009 * cgraph.c (cgraph_turn_edge_to_speculative): Return newly
14010 introduced edge; fix typo in sanity check.
14011 (cgraph_resolve_speculation): Export; improve diagnostic.
14012 (cgraph_redirect_edge_call_stmt_to_callee): Better diagnostic; cancel
14013 speculation at type mismatch.
14014 * cgraph.h (cgraph_turn_edge_to_speculative): Update.
14015 (cgraph_resolve_speculation): Declare.
14016 (symtab_can_be_discarded): New function.
14017 * value-prof.c (gimple_ic_transform): Remove actual transform code.
14018 * ipa-inline-transform.c (speculation_removed): New global var.
14019 (clone_inlined_nodes): See if speculation can be removed.
14020 (inline_call): If speculations was removed, we growths may not match.
14021 * ipa-inline.c (can_inline_edge_p): Add DISREGARD_LIMITS parameter.
14022 (speculation_useful_p): New function.
14023 (resolve_noninline_speculation): New function.
14024 (inline_small_functions): Resolve useless speculations.
14025 * ipa-inline.h (speculation_useful_p): Declare
14026 * ipa.c (can_replace_by_local_alias): Simplify.
14027 (ipa_profile): Produce speculative calls in non-lto, too;
14028 add simple cost model; produce local aliases.
14030 2013-08-13 David Malcolm <dmalcolm@redhat.com>
14032 * config/i386/t-i386 (i386.o): Rename stray PIPELINE_H to
14035 2013-08-12 Paolo Carlini <paolo.carlini@oracle.com>
14037 * config/i386/i386.c (ix86_function_versions): Use error + inform.
14039 2013-08-12 Uros Bizjak <ubizjak@gmail.com>
14041 * config/i386/i386.md (floatunssi<mode>2 expand): Use MODEF mode
14042 iterator instead of X87MODEF.
14044 2013-08-12 Perez Read <netfirewall@gmail.com>
14047 * config/i386/i386.md (*movabs<mode>_1): Add <ptrsize> PTR before
14048 operand 0 for intel asm alternative.
14049 (*movabs<mode>_2): Ditto for operand 1.
14051 2013-08-12 James Greenhalgh <james.greenhalgh@arm.com>
14053 * config/aarch64/arm_none.h
14054 (vdup<bhsd>_lane_<su><8,16,32,64>): Fix macro call.
14056 2013-08-12 Nick Clifton <nickc@redhat.com>
14058 * config.gcc (m32r-linux): Allow for tmake_file not being empty.
14060 2013-08-12 Yuri Rumyantsev <ysrumyan@gmail.com>
14062 * config/i386/i386.md (floatunssi<mode>2 expand): Add new
14063 expand for QI/HImode operand to produce more effictive code for
14064 unsigned char(short) --> float(double) conversion.
14066 2013-08-12 Alexander Monakov <amonakov@ispras.ru>
14068 * doc/invoke.texi: Mention that -ftls-model does not force the final
14071 2013-08-12 Marek Polacek <polacek@redhat.com>
14072 Marc Glisse <marc.glisse@inria.fr>
14074 PR tree-optimization/57980
14075 * tree-tailcall.c (process_assignment): Call build_minus_one_cst
14076 when creating -1 constant.
14078 2013-08-10 Jan Hubicka <jh@suse.cz>
14080 Workaround binutils PR14342.
14081 * tree-profile.c (init_ic_make_global_vars): Add LTO path.
14082 (gimple_init_edge_profiler): Likewise.
14083 (gimple_gen_ic_func_profiler): Likewise.
14085 2013-08-09 Jan Hubicka <jh@suse.cz>
14087 * cgraph.c (cgraph_create_edge_1): Clear speculative flag.
14089 2013-08-09 Xinliang David Li <davidxl@google.com>
14091 * config/i386/stringop.def: New file.
14092 * config/i386/stringop.opt: New file.
14093 * config/i386/i386-opts.h: Include stringopt.def.
14094 * config/i386/i386.opt: Include stringopt.opt.
14095 * config/i386/i386.c (ix86_option_override_internal):
14096 Override default size based stringop inline strategies with options.
14097 * config/i386/i386.c (ix86_parse_stringop_strategy_string):
14100 2013-08-09 Jan Hubicka <jh@suse.cz>
14102 * ipa-ref.c (ipa_clear_stmts_in_references): Clear lto_stmt_uid, too.
14104 2013-08-09 Jan Hubicka <jh@suse.cz>
14106 * cgraph.c (cgraph_resolve_speculation): Cut frequency to
14108 (dump_cgraph_node): Dump profile-id.
14109 * cgraph.h (cgraph_indirect_call_info): Add common_target_id
14110 and common_target_probability.
14111 * lto-cgraph.c (lto_output_edge): Stream common targets.
14112 (lto_output_node): Stream profile ids.
14113 (input_node): Stream profile ids.
14114 (input_edge): Stream common targets.
14115 * lto-streamer-in.c (fixup_call_stmt_edges_1): Fix formatting.
14116 * ipa.c: Include value-prof.h
14117 (ipa_profile_generate_summary): Turn indirect call statement histograms
14118 into common targets.
14119 (ipa_profile): Turn common targets into speculative edges.
14121 2013-08-09 Jan Hubicka <jh@suse.cz>
14123 * cgraph.h (cgraph_node): Add profile_id.
14124 * value-prof.c (cgraph_node_map): Turn into pointer_map.
14125 (init_node_map): Rewrite to handle hashes increas of incremental IDs.
14126 (del_node_map): Update.
14127 (find_func_by_funcdef_no): Replace by ...
14128 (find_func_by_profile_id): ... this one.
14129 (gimple_ic_transform): Do not remove useful histograms when
14130 speculation is not done; dump info when indirect call removal
14132 * value-prof.h (find_func_by_profile_id, gimple_ic): Declare.
14133 * gcov-io.h (__gcov_indirect_call_profiler): Replace by ...
14134 (__gcov_indirect_call_profiler_v2): .. this one.
14135 * profile.h (init_node_map): Update.
14136 * coverage.c (coverage_compute_profile_id): New function.
14137 * coverage.h (coverage_compute_profile_id): Declare.
14138 * tree-profile.c (init_ic_make_global_vars): Make
14139 __gcov_indirect_call_callee and __gcov_indirect_call_counters global.
14140 (gimple_init_edge_profiler): Update prototype of
14141 __gcov_indirect_call_profiler.
14142 (gimple_gen_ic_func_profiler): Simplify.
14143 (tree_profiling): Use init_node_map
14145 2013-08-09 Jan Hubicka <jh@suse.cz>
14147 * cgraphbuild.c (cgraph_rebuild_references): Rebuild only
14148 non-speculative refs.
14149 * cgraph.c (cgraph_update_edge_in_call_site_hash): New function.
14150 (cgraph_add_edge_to_call_site_hash): Deal with speculative calls.
14151 (cgraph_set_call_stmt): Likewise.
14152 (cgraph_create_edge_1): Fix release checking compilatoin;
14153 clear lto_stmt_uid.
14154 (cgraph_free_edge): Free indirect info.
14155 (cgraph_turn_edge_to_speculative): New function.
14156 (cgraph_speculative_call_info): New function.
14157 (cgraph_make_edge_direct): Return direct edge; handle speculation.
14158 (cgraph_redirect_edge_call_stmt_to_callee): Expand speculative edges.
14159 (dump_cgraph_node): Dump speculation.
14160 (verify_edge_count_and_frequency): Accept speculative edges.
14161 (verify_edge_corresponds_to_fndecl): Handle partitioned cgraph.
14162 (verify_cgraph_node): Handle speculation.
14163 * cgraph.h (cgraph_edge): Add SPECULATIVE flag.
14164 (cgraph_set_call_stmt): Update prototype.
14165 (cgraph_make_edge_direct): Update prototype.
14166 (cgraph_speculative_call_info): Declare.
14167 * ipa-cp.c (ipcp_discover_new_direct_edges): Be ready for edge
14168 to change; update call of ipa_find_references.
14169 * ipa-ref.c (ipa_record_reference): Fix return value; clear
14170 lto_stmt_uid and speculative flags.
14171 (ipa_dump_references): Dump speculation.
14172 (ipa_clone_references): Clone speculative flag.
14173 (ipa_clone_referring): Likewise.
14174 (ipa_clone_ref): New function.
14175 (ipa_find_reference): Look into lto_stmt_uids
14176 (ipa_clear_stmts_in_references): Do not clear speculative calls.
14177 * ipa-ref.h (ipa_ref): Add lto_stmt_uid and speculative flags.
14178 (ipa_find_reference): Update declaration.
14179 (ipa_clone_ref): Declare.
14180 * lto-cgraph.c (lto_output_edge): Make lto_stmt_uids start from 0;
14181 stream speculative flag.
14182 (lto_output_ref): Stream statements uids and speculation.
14183 (input_ref): Likewise.
14184 (input_edge): Stream speuclation.
14185 * cgraphclones.c (cgraph_clone_edge): Clone speculation.
14186 (cgraph_set_call_stmt_including_clones): Handle speculation.
14187 * ipa-inline.c (heap_edge_removal_hook): New function.
14188 (inline_small_functions): Register it.
14189 * lto-streamer-in.c (fixup_call_stmt_edges_1): Bounds checking;
14190 also initialize refs.
14191 * ipa-prop.c (ipa_make_edge_direct_to_target): Be ready for
14193 (try_make_edge_direct_simple_call): Likewise.
14194 (try_make_edge_direct_simple_call): Likewise.
14195 (update_indirect_edges_after_inlining): Likewise.
14196 (remove_described_reference): Look proper lto_stmt_uid.
14197 (propagate_controlled_uses): Likewise.
14198 (propagate_controlled_uses): Liekwise.
14199 * tree-inline.c (copy_bb): Copy speculative edges.
14200 (redirect_all_calls): New function.
14201 (copy_cfg_body): Do redirection after loop info is updated.
14202 (delete_unreachable_blocks_update_callgraph): Updadte speculation.
14204 2013-08-09 Jan Hubicka <jh@suse.cz>
14206 * lto-streamer-out.c (output_function): Renumber PHIs.
14207 * lto-streamer-in.c (input_function): Likewise.
14209 2013-08-09 James Greenhalgh <james.greenhalgh@arm.com>
14211 * config/aarch64/aarch64-simd-builtins.def (get_lane_signed): Remove.
14212 (get_lane_unsigned): Likewise.
14213 (dup_lane_scalar): Likewise.
14214 (get_lane): enable for VALL.
14215 * config/aarch64/aarch64-simd.md
14216 (aarch64_dup_lane_scalar<mode>): Remove.
14217 (aarch64_get_lane_signed<mode>): Likewise.
14218 (aarch64_get_lane_unsigned<mode>): Likewise.
14219 (aarch64_get_lane_extend<GPI:mode><VDQQH:mode>): New.
14220 (aarch64_get_lane_zero_extendsi<mode>): Likewise.
14221 (aarch64_get_lane<mode>): Enable for all vector modes.
14222 (aarch64_get_lanedi): Remove misleading constraints.
14223 * config/aarch64/arm_neon.h
14224 (__aarch64_vget_lane_any): Define.
14225 (__aarch64_vget<q>_lane_<fpsu><8,16,32,64>): Likewise.
14226 (vget<q>_lane_<fpsu><8,16,32,64>): Use __aarch64_vget_lane macros.
14227 (vdup<bhsd>_lane_<su><8,16,32,64>): Likewise.
14228 * config/aarch64/iterators.md (VDQQH): New.
14229 (VDQQHS): Likewise.
14230 (vwcore): Likewise.
14232 2013-08-09 Eric Botcazou <ebotcazou@adacore.com>
14234 * configure.ac: Add GAS check for LEON instructions on SPARC.
14235 * configure: Regenerate.
14236 * config.in: Likewise.
14237 * config.gcc (with_cpu): Remove sparc-leon*-* and deal with LEON in the
14239 * config/sparc/sparc.opt (LEON, LEON3): New masks.
14240 * config/sparc/sparc.h (ASM_CPU32_DEFAULT_SPEC): Set to AS_LEON_FLAG
14242 (ASM_CPU_SPEC): Pass AS_LEON_FLAG if -mcpu=leon or -mcpu=leon3.
14243 (AS_LEON_FLAG): New macro.
14244 * config/sparc/sparc.c (sparc_option_override): Set MASK_LEON for leon
14245 and MASK_LEON3 for leon3 and unset them if HAVE_AS_LEON is not defined.
14246 Deal with LEON and LEON3 for the memory model.
14247 * config/sparc/sync.md (atomic_compare_and_swap<mode>): Enable if LEON3
14248 (atomic_compare_and_swap<mode>_1): Likewise.
14249 (*atomic_compare_and_swap<mode>_1): Likewise.
14251 2013-08-09 Zhenqiang Chen <zhenqiang.chen@linaro.org>
14253 * config/arm/neon.md (vcond): Fix floating-point vector
14254 comparisons against 0.
14256 2013-08-08 Vladimir Makarov <vmakarov@redhat.com>
14258 * lra-constraints.c (emit_spill_move): Remove assert.
14259 (process_alt_operands): Add more debugging
14260 output. Increase reject for spilling into memory. Decrease
14261 reject for reloading scratch.
14262 (split_reg): Use HARD_REGNO_CALLER_SAVE_MODE.
14264 2013-08-08 Steve Ellcey <sellcey@mips.com>
14266 * config/mips/mti-linux.h (SYSROOT_SUFFIX_SPEC): Add nan2008.
14267 * config/mips/t-mti-elf (MULTILIB_OPTIONS): Make mips16 and
14268 micromips incompatible. Add nan2008.
14269 (MULTILIB_DIRNAMES): Add nan2008.
14270 (MULTILIB_EXCEPTIONS): Remove mips16/micromips entry.
14271 * config/mips/t-mti-linux (MULTILIB_OPTIONS): Make mips16
14272 and micromips incompatible. Add nan2008.
14273 (MULTILIB_DIRNAMES): Add nan2008.
14274 (MULTILIB_EXCEPTIONS): Remove mips16/micromips entry.
14276 2013-08-08 Richard Sandiford <rdsandiford@googlemail.com>
14278 PR rtl-optimization/58079
14279 * combine.c (combine_simplify_rtx): Avoid using SUBST if
14280 simplify_comparison has widened a comparison with an integer.
14282 2013-08-08 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
14284 * config/arm/neon.md (movmisalign<mode>): Disable when we
14285 don't allow unaligned accesses.
14286 (*movmisalign<mode>_neon_store): Likewise.
14287 (*movmisalign<mode>_neon_load): Likewise.
14288 (*movmisalign<mode>_neon_store): Likewise.
14289 (*movmisalign<mode>_neon_load): Likewise.
14291 2013-08-08 Jan Hubicka <jh@suse.cz>
14293 * cgraphbuild.c (build_cgraph_edges): Do not walk into debugs.
14294 (make_pass_rebuild_cgraph_edges): Also clear references.
14295 * cgraph.c (verify_cgraph_node): Add basic ipa-ref verifier.
14296 * ipa-inline-transform.c (inline_transform): Remove all references
14298 * cgraphunit.c (expand_function): Remove all references after
14300 * ipa-ref.c (ipa_ref_has_aliases_p): Fix formatting.
14301 (ipa_find_reference): Rewrite to iterator.
14302 (remove_stmt_references): Likewise.
14303 (ipa_clear_stmts_in_references): New function.
14304 * ipa-ref.h (ipa_clear_stmts_in_references): Declare.
14305 * cgraphclones.c (cgraph_materialize_all_clones): Remove or
14307 * ipa-split.c (split_function): Remove references in split function.
14309 2013-08-08 Richard Earnshaw <rearnsha@arm.com>
14312 * config/arm/arm/neon.md (neon_vld1_dupdi): New expand pattern.
14313 (neon_vld1_dup<mode> VD iterator): Iterate over VD not VDX.
14315 2013-08-08 Richard Earnshaw <rearnsha@arm.com>
14318 * config/arm/arm.c (aapcs_vfp_allocate): Decompose the argument if the
14319 suggested mode for the assignment isn't compatible with the
14320 registers required.
14322 2013-08-08 Bernd Edlinger <bernd.edlinger@hotmail.de>
14325 * config/arm/arm.h (MALLOC_ABI_ALIGNMENT): Define.
14327 2013-08-07 Xinliang David Li <davidxl@google.com>
14329 * config/i386/i386.opt: New option -mtune-ctrl=.
14330 * config/i386/x86-tune.def: New file.
14331 * config/i386/i386.h: include x86-tune.def.
14332 * config/i386/i386.c (ix86_option_override_internal):
14333 Parsing -mtune-ctrl= option and set tune features.
14335 2013-08-07 Oleg Endo <olegendo@gcc.gnu.org>
14338 * config/rs6000/rs6000.c (gen_2arg_fn_t): Remove typedef.
14339 (rs6000_emit_swdiv, rs6000_emit_swrsqrt): Don't cast result of GEN_FCN
14342 2013-08-07 Eric Botcazou <ebotcazou@adacore.com>
14344 * rtl.h (update_alignments): Declare.
14345 * final.c (grow_label_align): New function extracted from...
14346 (shorten_branches): ...here. Call it.
14347 (update_alignments): New function.
14348 * reorg.c (sibling_labels): New variable.
14349 (get_label_before): Add SIBLING parameter. If it is non-zero, push
14350 the new label along with it onto the sibling_labels vector.
14351 (fill_simple_delay_slots): Adjust call to get_label_before.
14352 (fill_slots_from_thread): Likewise.
14353 (relax_delay_slots): Likewise.
14354 (make_return_insns): Likewise.
14355 (dbr_schedule): Invoke update_alignment on the sibling_labels vector.
14357 2013-08-07 Eric Botcazou <ebotcazou@adacore.com>
14359 * diagnostic.c (diagnostic_classify_diagnostic): Accept zero index and
14360 document its semantics.
14361 (diagnostic_report_diagnostic): Adjust accordingly.
14363 2013-08-07 David Malcolm <dmalcolm@redhat.com>
14365 * config/sparc/sparc.c (insert_pass_work_around_errata): Move into...
14366 (sparc_option_override): ...and port to new C++ pass API.
14367 * config/sparc/t-sparc (sparc.o): Add dep on CONTEXT_H
14369 2013-08-07 Peter Bergner <bergner@vnet.ibm.com>
14371 * config/rs6000/rs6000.c (htm_expand_builtin) <case 0>: Remove.
14373 2013-08-06 Caroline Tice <cmtice@google.com>
14375 * gcc.c (VTABLE_VERIFICATION_SPEC): New definition.
14376 (LINK_COMMAND_SPEC): Add VTABLE_VERIFICATION_SPEC.
14377 * tree-pass.h: Add pass_vtable_verify.
14378 * varasm.c (assemble_variable): Add code to properly set the comdat
14379 section and name for the .vtable_map_vars section.
14380 (assemble_vtyv_preinit_initializer): New function.
14381 (default_sectin_type_flags): Make sure .vtable_map_vars section has
14383 * output.h: Add function decl for assemble_vtv_preinit_initializer.
14384 * vtable-verify.c: New file.
14385 * vtable-verify.h: New file.
14386 * flag-types.h (enum vtv_priority): Defintions for flag_vtable_verify
14387 initialiation levels.
14388 * timevar.def (TV_VTABLE_VERIFICATION): New definition.
14389 * passes.def: Insert pass_vtable_verify.
14390 * aclocal.m4: Reorder includes.
14391 * doc/invoke.texi: Document the -fvtable-verify=, -fvtv-debug, and
14392 -fvtv-counts options.
14393 * config/gnu-user.h (GNU_USER_TARGET_STARTFILE_SPEC): Add vtv_start*.o,
14394 as appropriate, if -fvtable-verify=... is used.
14395 (GNU_USER_TARGET_ENDFILE_SPEC): Add vtv_end*.o as appropriate, if
14396 -fvtable-verify=... is used.
14397 * Makefile.in (OBJS): Add vtable-verify.o to list.
14398 (vtable-verify.o): Add new build rule.
14399 (GTFILES): Add vtable-verify.c to list.
14400 * common.opt (fvtable-verify=): New flag.
14401 (vtv_priority): Values for fvtable-verify= flag.
14402 (fvtv-counts): New flag.
14403 (fvtv-debug): New flag.
14404 * tree.h (save_vtable_map_decl): New extern function decl.
14406 2013-08-07 David Malcolm <dmalcolm@redhat.com>
14408 * config/rl78/rl78.c (rl78_devirt_pass): Convert from a struct to...
14409 (pass_rl78_devirt): ...new subclass of rtl_opt_pass along with...
14410 (pass_data_rl78_devirt): ...new pass_data instance and...
14411 (make_pass_rl78_devirt): ...new function.
14412 (rl78_asm_file_start): Port pass registration to new C++ API.
14414 2013-08-07 David Malcolm <dmalcolm@redhat.com>
14416 * coretypes.h (rtl_opt_pass): Add.
14417 (gcc::context): Add.
14418 * config/epiphany/epiphany.c (pass_mode_switch_use): New.
14419 (epiphany_init): Port to new C++ pass API.
14420 (epiphany_optimize_mode_switching): Likewise.
14421 * pass_manager.h (pass_manager::get_pass_split_all_insns): New.
14422 (pass_manager::get_pass_mode_switching): New.
14423 (pass_manager::get_pass_peephole2): New.
14424 * mode-switching.c (pass_mode_switching): Add clone method.
14425 * recog.c (pass_peephole2): Add clone method.
14426 (pass_split_all_insns): Add clone method.
14428 2013-08-06 David Malcolm <dmalcolm@redhat.com>
14430 * config/mips/mips.c (insert_pass_mips_machine_reorg2): Move into...
14431 (mips_option_override): ...here, porting to new C++ API for passes.
14433 2013-08-06 Jan Hubicka <jh@suse.cz>
14435 * cgraph.c (cgraph_get_body): New function based on lto.c
14437 * cgraph.h (cgraph_get_body): Declare.
14438 * cgraphclones.c (cgraph_create_virtual_clone): Commonize WPA and
14440 * cgraphunit.c (expand_function): Get body prior expanding.
14441 * ipa.c (function_and_variable_visibility): Use gimple_has_body_p test.
14442 * lto-cgraph.c (lto_output_node): Do not stream bodies we don't
14444 * passes.c (do_per_function_toporder): Get body.
14445 * tree-inline.c (expand_call_inline): Get body prior inlining it.
14446 * tree-ssa-structalias.c (ipa_pta_execute): Get body; skip clones.
14448 2013-08-06 Martin Jambor <mjambor@suse.cz>
14451 * cgraphunit.c (cgraph_finalize_function): Assert that nested function
14452 is not re-finalized. Rename second parameter to no_collect.
14454 2013-08-06 Martin Jambor <mjambor@suse.cz>
14456 PR middle-end/58041
14457 * gimple-ssa-strength-reduction.c (replace_ref): Make sure built
14458 MEM_REF has proper alignment information.
14460 2013-08-05 Oleg Endo <olegendo@gcc.gnu.org>
14463 * recog.h (rtx (*insn_gen_fn) (rtx, ...)): Replace typedef with new
14465 * expr.c (move_by_pieces_1, store_by_pieces_2): Replace argument
14466 rtx (*) (rtx, ...) with insn_gen_fn.
14467 * genoutput.c (output_insn_data): Cast gen_? function pointers to
14468 insn_gen_fn::stored_funcptr. Add initializer braces.
14470 2013-08-05 David Malcolm <dmalcolm@redhat.com>
14472 Rewrite how instances of passes are cloned to remove assumptions
14473 about their sizes (thus allowing pass subclasses to have
14474 additional data fields, albeit non-GC-managed ones at this point).
14476 * passes.c (make_pass_instance): Now that passes have clone
14477 methods, rewrite this function to eliminate XNEW and memcpy
14478 calls that used hardcoded sizes. Since this function no longer
14479 creates pass instances, rename it to...
14480 (add_pass_instance): ...this. Document the old way that passes were
14481 numbered and flagged, and rework this function to continue using it.
14482 (next_pass_1): Add an initial_pass argument for use by
14484 (position_pass): When adding multiple instances of a pass, use
14485 the pass's clone method, rather than relying on the XNEW/memcpy
14486 within the former make_pass_instance (now add_pass_instance).
14487 (pass_manager::pass_manager): When invoking next_pass_1, also supply
14488 the initial instance of the current pass within the pass manager.
14490 2013-08-05 David Malcolm <dmalcolm@redhat.com>
14492 This is the automated part of the conversion of passes from C
14493 structs to C++ classes.
14495 Patch autogenerated by refactor_passes.py from
14496 https://github.com/davidmalcolm/gcc-refactoring-scripts
14497 revision 03fe39476a4c4ea450b49e087cfa817b5f92021e
14499 * asan.c (pass_asan): Convert from a global struct to a subclass of
14500 gimple_opt_pass along with...
14501 (pass_data_asan): ...new pass_data instance and...
14502 (make_pass_asan): ...new function.
14503 (pass_asan_O0): Convert from a global struct to a subclass of
14504 gimple_opt_pass along with...
14505 (pass_data_asan_O0): ...new pass_data instance and...
14506 (make_pass_asan_O0): ...new function.
14507 * auto-inc-dec.c (pass_inc_dec): Convert from a global struct to a
14508 subclass of rtl_opt_pass along with...
14509 (pass_data_inc_dec): ...new pass_data instance and...
14510 (make_pass_inc_dec): ...new function.
14511 * bb-reorder.c (pass_reorder_blocks): Convert from a global struct to
14512 a subclass of rtl_opt_pass along with...
14513 (pass_data_reorder_blocks): ...new pass_data instance and...
14514 (make_pass_reorder_blocks): ...new function.
14515 (pass_duplicate_computed_gotos): Convert from a global struct to a
14516 subclass of rtl_opt_pass along with...
14517 (pass_data_duplicate_computed_gotos): ...new pass_data instance and...
14518 (make_pass_duplicate_computed_gotos): ...new function.
14519 (pass_partition_blocks): Convert from a global struct to a subclass of
14520 rtl_opt_pass along with...
14521 (pass_data_partition_blocks): ...new pass_data instance and...
14522 (make_pass_partition_blocks): ...new function.
14523 * bt-load.c (pass_branch_target_load_optimize1): Convert from a global
14524 struct to a subclass of rtl_opt_pass along with...
14525 (pass_data_branch_target_load_optimize1): ...new pass_data instance
14527 (make_pass_branch_target_load_optimize1): ...new function.
14528 (pass_branch_target_load_optimize2): Convert from a global struct to a
14529 subclass of rtl_opt_pass along with...
14530 (pass_data_branch_target_load_optimize2): ...new pass_data instance
14532 (make_pass_branch_target_load_optimize2): ...new function.
14533 * cfgcleanup.c (pass_jump): Convert from a global struct to a subclass
14534 of rtl_opt_pass along with...
14535 (pass_data_jump): ...new pass_data instance and...
14536 (make_pass_jump): ...new function.
14537 (pass_jump2): Convert from a global struct to a subclass of
14538 rtl_opt_pass along with...
14539 (pass_data_jump2): ...new pass_data instance and...
14540 (make_pass_jump2): ...new function.
14541 * cfgexpand.c (pass_expand): Convert from a global struct to a
14542 subclass of rtl_opt_pass along with...
14543 (pass_data_expand): ...new pass_data instance and...
14544 (make_pass_expand): ...new function.
14545 * cfgrtl.c (pass_free_cfg): Convert from a global struct to a subclass
14546 of rtl_opt_pass along with...
14547 (pass_data_free_cfg): ...new pass_data instance and...
14548 (make_pass_free_cfg): ...new function.
14549 (pass_into_cfg_layout_mode): Convert from a global struct to a
14550 subclass of rtl_opt_pass along with...
14551 (pass_data_into_cfg_layout_mode): ...new pass_data instance and...
14552 (make_pass_into_cfg_layout_mode): ...new function.
14553 (pass_outof_cfg_layout_mode): Convert from a global struct to a
14554 subclass of rtl_opt_pass along with...
14555 (pass_data_outof_cfg_layout_mode): ...new pass_data instance and...
14556 (make_pass_outof_cfg_layout_mode): ...new function.
14557 * cgraphbuild.c (pass_build_cgraph_edges): Convert from a global
14558 struct to a subclass of gimple_opt_pass along with...
14559 (pass_data_build_cgraph_edges): ...new pass_data instance and...
14560 (make_pass_build_cgraph_edges): ...new function.
14561 (pass_rebuild_cgraph_edges): Convert from a global struct to a
14562 subclass of gimple_opt_pass along with...
14563 (pass_data_rebuild_cgraph_edges): ...new pass_data instance and...
14564 (make_pass_rebuild_cgraph_edges): ...new function.
14565 (pass_remove_cgraph_callee_edges): Convert from a global struct to a
14566 subclass of gimple_opt_pass along with...
14567 (pass_data_remove_cgraph_callee_edges): ...new pass_data instance
14569 (make_pass_remove_cgraph_callee_edges): ...new function.
14570 * combine-stack-adj.c (pass_stack_adjustments): Convert from a global
14571 struct to a subclass of rtl_opt_pass along with...
14572 (pass_data_stack_adjustments): ...new pass_data instance and...
14573 (make_pass_stack_adjustments): ...new function.
14574 * combine.c (pass_combine): Convert from a global struct to a subclass
14575 of rtl_opt_pass along with...
14576 (pass_data_combine): ...new pass_data instance and...
14577 (make_pass_combine): ...new function.
14578 * compare-elim.c (pass_compare_elim_after_reload): Convert from a
14579 global struct to a subclass of rtl_opt_pass along with...
14580 (pass_data_compare_elim_after_reload): ...new pass_data instance
14582 (make_pass_compare_elim_after_reload): ...new function.
14583 * cprop.c (pass_rtl_cprop): Convert from a global struct to a subclass
14584 of rtl_opt_pass along with...
14585 (pass_data_rtl_cprop): ...new pass_data instance and...
14586 (make_pass_rtl_cprop): ...new function.
14587 * cse.c (pass_cse): Convert from a global struct to a subclass of
14588 rtl_opt_pass along with...
14589 (pass_data_cse): ...new pass_data instance and...
14590 (make_pass_cse): ...new function.
14591 (pass_cse2): Convert from a global struct to a subclass of
14592 rtl_opt_pass along with...
14593 (pass_data_cse2): ...new pass_data instance and...
14594 (make_pass_cse2): ...new function.
14595 (pass_cse_after_global_opts): Convert from a global struct to a
14596 subclass of rtl_opt_pass along with...
14597 (pass_data_cse_after_global_opts): ...new pass_data instance and...
14598 (make_pass_cse_after_global_opts): ...new function.
14599 * dce.c (pass_ud_rtl_dce): Convert from a global struct to a subclass
14600 of rtl_opt_pass along with...
14601 (pass_data_ud_rtl_dce): ...new pass_data instance and...
14602 (make_pass_ud_rtl_dce): ...new function.
14603 (pass_fast_rtl_dce): Convert from a global struct to a subclass of
14604 rtl_opt_pass along with...
14605 (pass_data_fast_rtl_dce): ...new pass_data instance and...
14606 (make_pass_fast_rtl_dce): ...new function.
14607 * df-core.c (pass_df_initialize_opt): Convert from a global struct to
14608 a subclass of rtl_opt_pass along with...
14609 (pass_data_df_initialize_opt): ...new pass_data instance and...
14610 (make_pass_df_initialize_opt): ...new function.
14611 (pass_df_initialize_no_opt): Convert from a global struct to a
14612 subclass of rtl_opt_pass along with...
14613 (pass_data_df_initialize_no_opt): ...new pass_data instance and...
14614 (make_pass_df_initialize_no_opt): ...new function.
14615 (pass_df_finish): Convert from a global struct to a subclass of
14616 rtl_opt_pass along with...
14617 (pass_data_df_finish): ...new pass_data instance and...
14618 (make_pass_df_finish): ...new function.
14619 * dse.c (pass_rtl_dse1): Convert from a global struct to a subclass of
14620 rtl_opt_pass along with...
14621 (pass_data_rtl_dse1): ...new pass_data instance and...
14622 (make_pass_rtl_dse1): ...new function.
14623 (pass_rtl_dse2): Convert from a global struct to a subclass of
14624 rtl_opt_pass along with...
14625 (pass_data_rtl_dse2): ...new pass_data instance and...
14626 (make_pass_rtl_dse2): ...new function.
14627 * dwarf2cfi.c (pass_dwarf2_frame): Convert from a global struct to a
14628 subclass of rtl_opt_pass along with...
14629 (pass_data_dwarf2_frame): ...new pass_data instance and...
14630 (make_pass_dwarf2_frame): ...new function.
14631 * except.c (pass_set_nothrow_function_flags): Convert from a global
14632 struct to a subclass of rtl_opt_pass along with...
14633 (pass_data_set_nothrow_function_flags): ...new pass_data instance
14635 (make_pass_set_nothrow_function_flags): ...new function.
14636 (pass_convert_to_eh_region_ranges): Convert from a global struct to a
14637 subclass of rtl_opt_pass along with...
14638 (pass_data_convert_to_eh_region_ranges): ...new pass_data instance
14640 (make_pass_convert_to_eh_region_ranges): ...new function.
14641 * final.c (pass_compute_alignments): Convert from a global struct to a
14642 subclass of rtl_opt_pass along with...
14643 (pass_data_compute_alignments): ...new pass_data instance and...
14644 (make_pass_compute_alignments): ...new function.
14645 (pass_final): Convert from a global struct to a subclass of
14646 rtl_opt_pass along with...
14647 (pass_data_final): ...new pass_data instance and...
14648 (make_pass_final): ...new function.
14649 (pass_shorten_branches): Convert from a global struct to a subclass of
14650 rtl_opt_pass along with...
14651 (pass_data_shorten_branches): ...new pass_data instance and...
14652 (make_pass_shorten_branches): ...new function.
14653 (pass_clean_state): Convert from a global struct to a subclass of
14654 rtl_opt_pass along with...
14655 (pass_data_clean_state): ...new pass_data instance and...
14656 (make_pass_clean_state): ...new function.
14657 * function.c (pass_instantiate_virtual_regs): Convert from a global
14658 struct to a subclass of rtl_opt_pass along with...
14659 (pass_data_instantiate_virtual_regs): ...new pass_data instance and...
14660 (make_pass_instantiate_virtual_regs): ...new function.
14661 (pass_leaf_regs): Convert from a global struct to a subclass of
14662 rtl_opt_pass along with...
14663 (pass_data_leaf_regs): ...new pass_data instance and...
14664 (make_pass_leaf_regs): ...new function.
14665 (pass_thread_prologue_and_epilogue): Convert from a global struct to a
14666 subclass of rtl_opt_pass along with...
14667 (pass_data_thread_prologue_and_epilogue): ...new pass_data instance
14669 (make_pass_thread_prologue_and_epilogue): ...new function.
14670 (pass_match_asm_constraints): Convert from a global struct to a
14671 subclass of rtl_opt_pass along with...
14672 (pass_data_match_asm_constraints): ...new pass_data instance and...
14673 (make_pass_match_asm_constraints): ...new function.
14674 * fwprop.c (pass_rtl_fwprop): Convert from a global struct to a
14675 subclass of rtl_opt_pass along with...
14676 (pass_data_rtl_fwprop): ...new pass_data instance and...
14677 (make_pass_rtl_fwprop): ...new function.
14678 (pass_rtl_fwprop_addr): Convert from a global struct to a subclass of
14679 rtl_opt_pass along with...
14680 (pass_data_rtl_fwprop_addr): ...new pass_data instance and...
14681 (make_pass_rtl_fwprop_addr): ...new function.
14682 * gcse.c (pass_rtl_pre): Convert from a global struct to a subclass of
14683 rtl_opt_pass along with...
14684 (pass_data_rtl_pre): ...new pass_data instance and...
14685 (make_pass_rtl_pre): ...new function.
14686 (pass_rtl_hoist): Convert from a global struct to a subclass of
14687 rtl_opt_pass along with...
14688 (pass_data_rtl_hoist): ...new pass_data instance and...
14689 (make_pass_rtl_hoist): ...new function.
14690 * gimple-low.c (pass_lower_cf): Convert from a global struct to a
14691 subclass of gimple_opt_pass along with...
14692 (pass_data_lower_cf): ...new pass_data instance and...
14693 (make_pass_lower_cf): ...new function.
14694 * gimple-ssa-strength-reduction.c (pass_strength_reduction): Convert
14695 from a global struct to a subclass of gimple_opt_pass along with...
14696 (pass_data_strength_reduction): ...new pass_data instance and...
14697 (make_pass_strength_reduction): ...new function.
14698 * ifcvt.c (pass_rtl_ifcvt): Convert from a global struct to a subclass
14699 of rtl_opt_pass along with...
14700 (pass_data_rtl_ifcvt): ...new pass_data instance and...
14701 (make_pass_rtl_ifcvt): ...new function.
14702 (pass_if_after_combine): Convert from a global struct to a subclass of
14703 rtl_opt_pass along with...
14704 (pass_data_if_after_combine): ...new pass_data instance and...
14705 (make_pass_if_after_combine): ...new function.
14706 (pass_if_after_reload): Convert from a global struct to a subclass of
14707 rtl_opt_pass along with...
14708 (pass_data_if_after_reload): ...new pass_data instance and...
14709 (make_pass_if_after_reload): ...new function.
14710 * init-regs.c (pass_initialize_regs): Convert from a global struct to
14711 a subclass of rtl_opt_pass along with...
14712 (pass_data_initialize_regs): ...new pass_data instance and...
14713 (make_pass_initialize_regs): ...new function.
14714 * ipa-cp.c (pass_ipa_cp): Convert from a global struct to a subclass
14715 of ipa_opt_pass_d along with...
14716 (pass_data_ipa_cp): ...new pass_data instance and...
14717 (make_pass_ipa_cp): ...new function.
14718 * ipa-inline-analysis.c (pass_inline_parameters): Convert from a
14719 global struct to a subclass of gimple_opt_pass along with...
14720 (pass_data_inline_parameters): ...new pass_data instance and...
14721 (make_pass_inline_parameters): ...new function.
14722 * ipa-inline.c (pass_early_inline): Convert from a global struct to a
14723 subclass of gimple_opt_pass along with...
14724 (pass_data_early_inline): ...new pass_data instance and...
14725 (make_pass_early_inline): ...new function.
14726 (pass_ipa_inline): Convert from a global struct to a subclass of
14727 ipa_opt_pass_d along with...
14728 (pass_data_ipa_inline): ...new pass_data instance and...
14729 (make_pass_ipa_inline): ...new function.
14730 * ipa-pure-const.c (pass_local_pure_const): Convert from a global
14731 struct to a subclass of gimple_opt_pass along with...
14732 (pass_data_local_pure_const): ...new pass_data instance and...
14733 (make_pass_local_pure_const): ...new function.
14734 (pass_ipa_pure_const): Convert from a global struct to a subclass of
14735 ipa_opt_pass_d along with...
14736 (pass_data_ipa_pure_const): ...new pass_data instance and...
14737 (make_pass_ipa_pure_const): ...new function.
14738 * ipa-reference.c (pass_ipa_reference): Convert from a global struct
14739 to a subclass of ipa_opt_pass_d along with...
14740 (pass_data_ipa_reference): ...new pass_data instance and...
14741 (make_pass_ipa_reference): ...new function.
14742 * ipa-split.c (pass_split_functions): Convert from a global struct to
14743 a subclass of gimple_opt_pass along with...
14744 (pass_data_split_functions): ...new pass_data instance and...
14745 (make_pass_split_functions): ...new function.
14746 (pass_feedback_split_functions): Convert from a global struct to a
14747 subclass of gimple_opt_pass along with...
14748 (pass_data_feedback_split_functions): ...new pass_data instance and...
14749 (make_pass_feedback_split_functions): ...new function.
14750 * ipa.c (pass_ipa_function_and_variable_visibility): Convert from a
14751 global struct to a subclass of simple_ipa_opt_pass along with...
14752 (pass_data_ipa_function_and_variable_visibility): ...new pass_data
14754 (make_pass_ipa_function_and_variable_visibility): ...new function.
14755 (pass_ipa_free_inline_summary): Convert from a global struct to a
14756 subclass of simple_ipa_opt_pass along with...
14757 (pass_data_ipa_free_inline_summary): ...new pass_data instance and...
14758 (make_pass_ipa_free_inline_summary): ...new function.
14759 (pass_ipa_whole_program_visibility): Convert from a global struct to a
14760 subclass of ipa_opt_pass_d along with...
14761 (pass_data_ipa_whole_program_visibility): ...new pass_data instance
14763 (make_pass_ipa_whole_program_visibility): ...new function.
14764 (pass_ipa_profile): Convert from a global struct to a subclass of
14765 ipa_opt_pass_d along with...
14766 (pass_data_ipa_profile): ...new pass_data instance and...
14767 (make_pass_ipa_profile): ...new function.
14768 (pass_ipa_cdtor_merge): Convert from a global struct to a subclass of
14769 ipa_opt_pass_d along with...
14770 (pass_data_ipa_cdtor_merge): ...new pass_data instance and...
14771 (make_pass_ipa_cdtor_merge): ...new function.
14772 * ira.c (pass_ira): Convert from a global struct to a subclass of
14773 rtl_opt_pass along with...
14774 (pass_data_ira): ...new pass_data instance and...
14775 (make_pass_ira): ...new function.
14776 (pass_reload): Convert from a global struct to a subclass of
14777 rtl_opt_pass along with...
14778 (pass_data_reload): ...new pass_data instance and...
14779 (make_pass_reload): ...new function.
14780 * jump.c (pass_cleanup_barriers): Convert from a global struct to a
14781 subclass of rtl_opt_pass along with...
14782 (pass_data_cleanup_barriers): ...new pass_data instance and...
14783 (make_pass_cleanup_barriers): ...new function.
14784 * loop-init.c (pass_loop2): Convert from a global struct to a subclass
14785 of rtl_opt_pass along with...
14786 (pass_data_loop2): ...new pass_data instance and...
14787 (make_pass_loop2): ...new function.
14788 (pass_rtl_loop_init): Convert from a global struct to a subclass of
14789 rtl_opt_pass along with...
14790 (pass_data_rtl_loop_init): ...new pass_data instance and...
14791 (make_pass_rtl_loop_init): ...new function.
14792 (pass_rtl_loop_done): Convert from a global struct to a subclass of
14793 rtl_opt_pass along with...
14794 (pass_data_rtl_loop_done): ...new pass_data instance and...
14795 (make_pass_rtl_loop_done): ...new function.
14796 (pass_rtl_move_loop_invariants): Convert from a global struct to a
14797 subclass of rtl_opt_pass along with...
14798 (pass_data_rtl_move_loop_invariants): ...new pass_data instance and...
14799 (make_pass_rtl_move_loop_invariants): ...new function.
14800 (pass_rtl_unswitch): Convert from a global struct to a subclass of
14801 rtl_opt_pass along with...
14802 (pass_data_rtl_unswitch): ...new pass_data instance and...
14803 (make_pass_rtl_unswitch): ...new function.
14804 (pass_rtl_unroll_and_peel_loops): Convert from a global struct to a
14805 subclass of rtl_opt_pass along with...
14806 (pass_data_rtl_unroll_and_peel_loops): ...new pass_data instance
14808 (make_pass_rtl_unroll_and_peel_loops): ...new function.
14809 (pass_rtl_doloop): Convert from a global struct to a subclass of
14810 rtl_opt_pass along with...
14811 (pass_data_rtl_doloop): ...new pass_data instance and...
14812 (make_pass_rtl_doloop): ...new function.
14813 * lower-subreg.c (pass_lower_subreg): Convert from a global struct to
14814 a subclass of rtl_opt_pass along with...
14815 (pass_data_lower_subreg): ...new pass_data instance and...
14816 (make_pass_lower_subreg): ...new function.
14817 (pass_lower_subreg2): Convert from a global struct to a subclass of
14818 rtl_opt_pass along with...
14819 (pass_data_lower_subreg2): ...new pass_data instance and...
14820 (make_pass_lower_subreg2): ...new function.
14821 * lto-streamer-out.c (pass_ipa_lto_gimple_out): Convert from a global
14822 struct to a subclass of ipa_opt_pass_d along with...
14823 (pass_data_ipa_lto_gimple_out): ...new pass_data instance and...
14824 (make_pass_ipa_lto_gimple_out): ...new function.
14825 (pass_ipa_lto_finish_out): Convert from a global struct to a subclass
14826 of ipa_opt_pass_d along with...
14827 (pass_data_ipa_lto_finish_out): ...new pass_data instance and...
14828 (make_pass_ipa_lto_finish_out): ...new function.
14829 * mode-switching.c (pass_mode_switching): Convert from a global struct
14830 to a subclass of rtl_opt_pass along with...
14831 (pass_data_mode_switching): ...new pass_data instance and...
14832 (make_pass_mode_switching): ...new function.
14833 * modulo-sched.c (pass_sms): Convert from a global struct to a
14834 subclass of rtl_opt_pass along with...
14835 (pass_data_sms): ...new pass_data instance and...
14836 (make_pass_sms): ...new function.
14837 * omp-low.c (pass_expand_omp): Convert from a global struct to a
14838 subclass of gimple_opt_pass along with...
14839 (pass_data_expand_omp): ...new pass_data instance and...
14840 (make_pass_expand_omp): ...new function.
14841 (pass_lower_omp): Convert from a global struct to a subclass of
14842 gimple_opt_pass along with...
14843 (pass_data_lower_omp): ...new pass_data instance and...
14844 (make_pass_lower_omp): ...new function.
14845 (pass_diagnose_omp_blocks): Convert from a global struct to a subclass
14846 of gimple_opt_pass along with...
14847 (pass_data_diagnose_omp_blocks): ...new pass_data instance and...
14848 (make_pass_diagnose_omp_blocks): ...new function.
14849 * passes.c (pass_early_local_passes): Convert from a global struct to
14850 a subclass of simple_ipa_opt_pass along with...
14851 (pass_data_early_local_passes): ...new pass_data instance and...
14852 (make_pass_early_local_passes): ...new function.
14853 (pass_all_early_optimizations): Convert from a global struct to a
14854 subclass of gimple_opt_pass along with...
14855 (pass_data_all_early_optimizations): ...new pass_data instance and...
14856 (make_pass_all_early_optimizations): ...new function.
14857 (pass_all_optimizations): Convert from a global struct to a subclass
14858 of gimple_opt_pass along with...
14859 (pass_data_all_optimizations): ...new pass_data instance and...
14860 (make_pass_all_optimizations): ...new function.
14861 (pass_all_optimizations_g): Convert from a global struct to a subclass
14862 of gimple_opt_pass along with...
14863 (pass_data_all_optimizations_g): ...new pass_data instance and...
14864 (make_pass_all_optimizations_g): ...new function.
14865 (pass_rest_of_compilation): Convert from a global struct to a subclass
14866 of rtl_opt_pass along with...
14867 (pass_data_rest_of_compilation): ...new pass_data instance and...
14868 (make_pass_rest_of_compilation): ...new function.
14869 (pass_postreload): Convert from a global struct to a subclass of
14870 rtl_opt_pass along with...
14871 (pass_data_postreload): ...new pass_data instance and...
14872 (make_pass_postreload): ...new function.
14873 * postreload-gcse.c (pass_gcse2): Convert from a global struct to a
14874 subclass of rtl_opt_pass along with...
14875 (pass_data_gcse2): ...new pass_data instance and...
14876 (make_pass_gcse2): ...new function.
14877 * postreload.c (pass_postreload_cse): Convert from a global struct to
14878 a subclass of rtl_opt_pass along with...
14879 (pass_data_postreload_cse): ...new pass_data instance and...
14880 (make_pass_postreload_cse): ...new function.
14881 * predict.c (pass_profile): Convert from a global struct to a subclass
14882 of gimple_opt_pass along with...
14883 (pass_data_profile): ...new pass_data instance and...
14884 (make_pass_profile): ...new function.
14885 (pass_strip_predict_hints): Convert from a global struct to a subclass
14886 of gimple_opt_pass along with...
14887 (pass_data_strip_predict_hints): ...new pass_data instance and...
14888 (make_pass_strip_predict_hints): ...new function.
14889 * recog.c (pass_peephole2): Convert from a global struct to a subclass
14890 of rtl_opt_pass along with...
14891 (pass_data_peephole2): ...new pass_data instance and...
14892 (make_pass_peephole2): ...new function.
14893 (pass_split_all_insns): Convert from a global struct to a subclass of
14894 rtl_opt_pass along with...
14895 (pass_data_split_all_insns): ...new pass_data instance and...
14896 (make_pass_split_all_insns): ...new function.
14897 (pass_split_after_reload): Convert from a global struct to a subclass
14898 of rtl_opt_pass along with...
14899 (pass_data_split_after_reload): ...new pass_data instance and...
14900 (make_pass_split_after_reload): ...new function.
14901 (pass_split_before_regstack): Convert from a global struct to a
14902 subclass of rtl_opt_pass along with...
14903 (pass_data_split_before_regstack): ...new pass_data instance and...
14904 (make_pass_split_before_regstack): ...new function.
14905 (pass_split_before_sched2): Convert from a global struct to a subclass
14906 of rtl_opt_pass along with...
14907 (pass_data_split_before_sched2): ...new pass_data instance and...
14908 (make_pass_split_before_sched2): ...new function.
14909 (pass_split_for_shorten_branches): Convert from a global struct to a
14910 subclass of rtl_opt_pass along with...
14911 (pass_data_split_for_shorten_branches): ...new pass_data instance
14913 (make_pass_split_for_shorten_branches): ...new function.
14914 * ree.c (pass_ree): Convert from a global struct to a subclass of
14915 rtl_opt_pass along with...
14916 (pass_data_ree): ...new pass_data instance and...
14917 (make_pass_ree): ...new function.
14918 * reg-stack.c (pass_stack_regs): Convert from a global struct to a
14919 subclass of rtl_opt_pass along with...
14920 (pass_data_stack_regs): ...new pass_data instance and...
14921 (make_pass_stack_regs): ...new function.
14922 (pass_stack_regs_run): Convert from a global struct to a subclass of
14923 rtl_opt_pass along with...
14924 (pass_data_stack_regs_run): ...new pass_data instance and...
14925 (make_pass_stack_regs_run): ...new function.
14926 * regcprop.c (pass_cprop_hardreg): Convert from a global struct to a
14927 subclass of rtl_opt_pass along with...
14928 (pass_data_cprop_hardreg): ...new pass_data instance and...
14929 (make_pass_cprop_hardreg): ...new function.
14930 * reginfo.c (pass_reginfo_init): Convert from a global struct to a
14931 subclass of rtl_opt_pass along with...
14932 (pass_data_reginfo_init): ...new pass_data instance and...
14933 (make_pass_reginfo_init): ...new function.
14934 * regmove.c (pass_regmove): Convert from a global struct to a subclass
14935 of rtl_opt_pass along with...
14936 (pass_data_regmove): ...new pass_data instance and...
14937 (make_pass_regmove): ...new function.
14938 * regrename.c (pass_regrename): Convert from a global struct to a
14939 subclass of rtl_opt_pass along with...
14940 (pass_data_regrename): ...new pass_data instance and...
14941 (make_pass_regrename): ...new function.
14942 * reorg.c (pass_delay_slots): Convert from a global struct to a
14943 subclass of rtl_opt_pass along with...
14944 (pass_data_delay_slots): ...new pass_data instance and...
14945 (make_pass_delay_slots): ...new function.
14946 (pass_machine_reorg): Convert from a global struct to a subclass of
14947 rtl_opt_pass along with...
14948 (pass_data_machine_reorg): ...new pass_data instance and...
14949 (make_pass_machine_reorg): ...new function.
14950 * sched-rgn.c (pass_sched): Convert from a global struct to a subclass
14951 of rtl_opt_pass along with...
14952 (pass_data_sched): ...new pass_data instance and...
14953 (make_pass_sched): ...new function.
14954 (pass_sched2): Convert from a global struct to a subclass of
14955 rtl_opt_pass along with...
14956 (pass_data_sched2): ...new pass_data instance and...
14957 (make_pass_sched2): ...new function.
14958 * stack-ptr-mod.c (pass_stack_ptr_mod): Convert from a global struct
14959 to a subclass of rtl_opt_pass along with...
14960 (pass_data_stack_ptr_mod): ...new pass_data instance and...
14961 (make_pass_stack_ptr_mod): ...new function.
14962 * store-motion.c (pass_rtl_store_motion): Convert from a global struct
14963 to a subclass of rtl_opt_pass along with...
14964 (pass_data_rtl_store_motion): ...new pass_data instance and...
14965 (make_pass_rtl_store_motion): ...new function.
14966 * tracer.c (pass_tracer): Convert from a global struct to a subclass
14967 of gimple_opt_pass along with...
14968 (pass_data_tracer): ...new pass_data instance and...
14969 (make_pass_tracer): ...new function.
14970 * trans-mem.c (pass_diagnose_tm_blocks): Convert from a global struct
14971 to a subclass of gimple_opt_pass along with...
14972 (pass_data_diagnose_tm_blocks): ...new pass_data instance and...
14973 (make_pass_diagnose_tm_blocks): ...new function.
14974 (pass_lower_tm): Convert from a global struct to a subclass of
14975 gimple_opt_pass along with...
14976 (pass_data_lower_tm): ...new pass_data instance and...
14977 (make_pass_lower_tm): ...new function.
14978 (pass_tm_init): Convert from a global struct to a subclass of
14979 gimple_opt_pass along with...
14980 (pass_data_tm_init): ...new pass_data instance and...
14981 (make_pass_tm_init): ...new function.
14982 (pass_tm_mark): Convert from a global struct to a subclass of
14983 gimple_opt_pass along with...
14984 (pass_data_tm_mark): ...new pass_data instance and...
14985 (make_pass_tm_mark): ...new function.
14986 (pass_tm_edges): Convert from a global struct to a subclass of
14987 gimple_opt_pass along with...
14988 (pass_data_tm_edges): ...new pass_data instance and...
14989 (make_pass_tm_edges): ...new function.
14990 (pass_tm_memopt): Convert from a global struct to a subclass of
14991 gimple_opt_pass along with...
14992 (pass_data_tm_memopt): ...new pass_data instance and...
14993 (make_pass_tm_memopt): ...new function.
14994 (pass_ipa_tm): Convert from a global struct to a subclass of
14995 simple_ipa_opt_pass along with...
14996 (pass_data_ipa_tm): ...new pass_data instance and...
14997 (make_pass_ipa_tm): ...new function.
14998 * tree-call-cdce.c (pass_call_cdce): Convert from a global struct to a
14999 subclass of gimple_opt_pass along with...
15000 (pass_data_call_cdce): ...new pass_data instance and...
15001 (make_pass_call_cdce): ...new function.
15002 * tree-cfg.c (pass_build_cfg): Convert from a global struct to a
15003 subclass of gimple_opt_pass along with...
15004 (pass_data_build_cfg): ...new pass_data instance and...
15005 (make_pass_build_cfg): ...new function.
15006 (pass_split_crit_edges): Convert from a global struct to a subclass of
15007 gimple_opt_pass along with...
15008 (pass_data_split_crit_edges): ...new pass_data instance and...
15009 (make_pass_split_crit_edges): ...new function.
15010 (pass_warn_function_return): Convert from a global struct to a
15011 subclass of gimple_opt_pass along with...
15012 (pass_data_warn_function_return): ...new pass_data instance and...
15013 (make_pass_warn_function_return): ...new function.
15014 (pass_warn_function_noreturn): Convert from a global struct to a
15015 subclass of gimple_opt_pass along with...
15016 (pass_data_warn_function_noreturn): ...new pass_data instance and...
15017 (make_pass_warn_function_noreturn): ...new function.
15018 (pass_warn_unused_result): Convert from a global struct to a subclass
15019 of gimple_opt_pass along with...
15020 (pass_data_warn_unused_result): ...new pass_data instance and...
15021 (make_pass_warn_unused_result): ...new function.
15022 * tree-cfgcleanup.c (pass_merge_phi): Convert from a global struct to
15023 a subclass of gimple_opt_pass along with...
15024 (pass_data_merge_phi): ...new pass_data instance and...
15025 (make_pass_merge_phi): ...new function.
15026 * tree-complex.c (pass_lower_complex): Convert from a global struct to
15027 a subclass of gimple_opt_pass along with...
15028 (pass_data_lower_complex): ...new pass_data instance and...
15029 (make_pass_lower_complex): ...new function.
15030 (pass_lower_complex_O0): Convert from a global struct to a subclass of
15031 gimple_opt_pass along with...
15032 (pass_data_lower_complex_O0): ...new pass_data instance and...
15033 (make_pass_lower_complex_O0): ...new function.
15034 * tree-eh.c (pass_lower_eh): Convert from a global struct to a
15035 subclass of gimple_opt_pass along with...
15036 (pass_data_lower_eh): ...new pass_data instance and...
15037 (make_pass_lower_eh): ...new function.
15038 (pass_refactor_eh): Convert from a global struct to a subclass of
15039 gimple_opt_pass along with...
15040 (pass_data_refactor_eh): ...new pass_data instance and...
15041 (make_pass_refactor_eh): ...new function.
15042 (pass_lower_resx): Convert from a global struct to a subclass of
15043 gimple_opt_pass along with...
15044 (pass_data_lower_resx): ...new pass_data instance and...
15045 (make_pass_lower_resx): ...new function.
15046 (pass_lower_eh_dispatch): Convert from a global struct to a subclass
15047 of gimple_opt_pass along with...
15048 (pass_data_lower_eh_dispatch): ...new pass_data instance and...
15049 (make_pass_lower_eh_dispatch): ...new function.
15050 (pass_cleanup_eh): Convert from a global struct to a subclass of
15051 gimple_opt_pass along with...
15052 (pass_data_cleanup_eh): ...new pass_data instance and...
15053 (make_pass_cleanup_eh): ...new function.
15054 * tree-emutls.c (pass_ipa_lower_emutls): Convert from a global struct
15055 to a subclass of simple_ipa_opt_pass along with...
15056 (pass_data_ipa_lower_emutls): ...new pass_data instance and...
15057 (make_pass_ipa_lower_emutls): ...new function.
15058 * tree-if-conv.c (pass_if_conversion): Convert from a global struct to
15059 a subclass of gimple_opt_pass along with...
15060 (pass_data_if_conversion): ...new pass_data instance and...
15061 (make_pass_if_conversion): ...new function.
15062 * tree-into-ssa.c (pass_build_ssa): Convert from a global struct to a
15063 subclass of gimple_opt_pass along with...
15064 (pass_data_build_ssa): ...new pass_data instance and...
15065 (make_pass_build_ssa): ...new function.
15066 * tree-loop-distribution.c (pass_loop_distribution): Convert from a
15067 global struct to a subclass of gimple_opt_pass along with...
15068 (pass_data_loop_distribution): ...new pass_data instance and...
15069 (make_pass_loop_distribution): ...new function.
15070 * tree-mudflap.c (pass_mudflap_1): Convert from a global struct to a
15071 subclass of gimple_opt_pass along with...
15072 (pass_data_mudflap_1): ...new pass_data instance and...
15073 (make_pass_mudflap_1): ...new function.
15074 (pass_mudflap_2): Convert from a global struct to a subclass of
15075 gimple_opt_pass along with...
15076 (pass_data_mudflap_2): ...new pass_data instance and...
15077 (make_pass_mudflap_2): ...new function.
15078 * tree-nomudflap.c (pass_mudflap_1): Convert from a global struct to a
15079 subclass of gimple_opt_pass along with...
15080 (pass_data_mudflap_1): ...new pass_data instance and...
15081 (make_pass_mudflap_1): ...new function.
15082 (pass_mudflap_2): Convert from a global struct to a subclass of
15083 gimple_opt_pass along with...
15084 (pass_data_mudflap_2): ...new pass_data instance and...
15085 (make_pass_mudflap_2): ...new function.
15086 * tree-nrv.c (pass_nrv): Convert from a global struct to a subclass of
15087 gimple_opt_pass along with...
15088 (pass_data_nrv): ...new pass_data instance and...
15089 (make_pass_nrv): ...new function.
15090 (pass_return_slot): Convert from a global struct to a subclass of
15091 gimple_opt_pass along with...
15092 (pass_data_return_slot): ...new pass_data instance and...
15093 (make_pass_return_slot): ...new function.
15094 * tree-object-size.c (pass_object_sizes): Convert from a global struct
15095 to a subclass of gimple_opt_pass along with...
15096 (pass_data_object_sizes): ...new pass_data instance and...
15097 (make_pass_object_sizes): ...new function.
15098 * tree-optimize.c (pass_cleanup_cfg_post_optimizing): Convert from a
15099 global struct to a subclass of gimple_opt_pass along with...
15100 (pass_data_cleanup_cfg_post_optimizing): ...new pass_data instance
15102 (make_pass_cleanup_cfg_post_optimizing): ...new function.
15103 (pass_fixup_cfg): Convert from a global struct to a subclass of
15104 gimple_opt_pass along with...
15105 (pass_data_fixup_cfg): ...new pass_data instance and...
15106 (make_pass_fixup_cfg): ...new function.
15107 * tree-pass.h (pass_mudflap_1): Replace declaration with that of...
15108 (make_pass_mudflap_1): ...new function.
15109 (pass_mudflap_2): Replace declaration with that of...
15110 (make_pass_mudflap_2): ...new function.
15111 (pass_asan): Replace declaration with that of...
15112 (make_pass_asan): ...new function.
15113 (pass_asan_O0): Replace declaration with that of...
15114 (make_pass_asan_O0): ...new function.
15115 (pass_tsan): Replace declaration with that of...
15116 (make_pass_tsan): ...new function.
15117 (pass_tsan_O0): Replace declaration with that of...
15118 (make_pass_tsan_O0): ...new function.
15119 (pass_lower_cf): Replace declaration with that of...
15120 (make_pass_lower_cf): ...new function.
15121 (pass_refactor_eh): Replace declaration with that of...
15122 (make_pass_refactor_eh): ...new function.
15123 (pass_lower_eh): Replace declaration with that of...
15124 (make_pass_lower_eh): ...new function.
15125 (pass_lower_eh_dispatch): Replace declaration with that of...
15126 (make_pass_lower_eh_dispatch): ...new function.
15127 (pass_lower_resx): Replace declaration with that of...
15128 (make_pass_lower_resx): ...new function.
15129 (pass_build_cfg): Replace declaration with that of...
15130 (make_pass_build_cfg): ...new function.
15131 (pass_early_tree_profile): Replace declaration with that of...
15132 (make_pass_early_tree_profile): ...new function.
15133 (pass_cleanup_eh): Replace declaration with that of...
15134 (make_pass_cleanup_eh): ...new function.
15135 (pass_sra): Replace declaration with that of...
15136 (make_pass_sra): ...new function.
15137 (pass_sra_early): Replace declaration with that of...
15138 (make_pass_sra_early): ...new function.
15139 (pass_early_ipa_sra): Replace declaration with that of...
15140 (make_pass_early_ipa_sra): ...new function.
15141 (pass_tail_recursion): Replace declaration with that of...
15142 (make_pass_tail_recursion): ...new function.
15143 (pass_tail_calls): Replace declaration with that of...
15144 (make_pass_tail_calls): ...new function.
15145 (pass_tree_loop): Replace declaration with that of...
15146 (make_pass_tree_loop): ...new function.
15147 (pass_tree_loop_init): Replace declaration with that of...
15148 (make_pass_tree_loop_init): ...new function.
15149 (pass_lim): Replace declaration with that of...
15150 (make_pass_lim): ...new function.
15151 (pass_tree_unswitch): Replace declaration with that of...
15152 (make_pass_tree_unswitch): ...new function.
15153 (pass_predcom): Replace declaration with that of...
15154 (make_pass_predcom): ...new function.
15155 (pass_iv_canon): Replace declaration with that of...
15156 (make_pass_iv_canon): ...new function.
15157 (pass_scev_cprop): Replace declaration with that of...
15158 (make_pass_scev_cprop): ...new function.
15159 (pass_empty_loop): Replace declaration with that of...
15160 (make_pass_empty_loop): ...new function.
15161 (pass_record_bounds): Replace declaration with that of...
15162 (make_pass_record_bounds): ...new function.
15163 (pass_graphite): Replace declaration with that of...
15164 (make_pass_graphite): ...new function.
15165 (pass_graphite_transforms): Replace declaration with that of...
15166 (make_pass_graphite_transforms): ...new function.
15167 (pass_if_conversion): Replace declaration with that of...
15168 (make_pass_if_conversion): ...new function.
15169 (pass_loop_distribution): Replace declaration with that of...
15170 (make_pass_loop_distribution): ...new function.
15171 (pass_vectorize): Replace declaration with that of...
15172 (make_pass_vectorize): ...new function.
15173 (pass_slp_vectorize): Replace declaration with that of...
15174 (make_pass_slp_vectorize): ...new function.
15175 (pass_complete_unroll): Replace declaration with that of...
15176 (make_pass_complete_unroll): ...new function.
15177 (pass_complete_unrolli): Replace declaration with that of...
15178 (make_pass_complete_unrolli): ...new function.
15179 (pass_parallelize_loops): Replace declaration with that of...
15180 (make_pass_parallelize_loops): ...new function.
15181 (pass_loop_prefetch): Replace declaration with that of...
15182 (make_pass_loop_prefetch): ...new function.
15183 (pass_iv_optimize): Replace declaration with that of...
15184 (make_pass_iv_optimize): ...new function.
15185 (pass_tree_loop_done): Replace declaration with that of...
15186 (make_pass_tree_loop_done): ...new function.
15187 (pass_ch): Replace declaration with that of...
15188 (make_pass_ch): ...new function.
15189 (pass_ccp): Replace declaration with that of...
15190 (make_pass_ccp): ...new function.
15191 (pass_phi_only_cprop): Replace declaration with that of...
15192 (make_pass_phi_only_cprop): ...new function.
15193 (pass_build_ssa): Replace declaration with that of...
15194 (make_pass_build_ssa): ...new function.
15195 (pass_build_alias): Replace declaration with that of...
15196 (make_pass_build_alias): ...new function.
15197 (pass_build_ealias): Replace declaration with that of...
15198 (make_pass_build_ealias): ...new function.
15199 (pass_dominator): Replace declaration with that of...
15200 (make_pass_dominator): ...new function.
15201 (pass_dce): Replace declaration with that of...
15202 (make_pass_dce): ...new function.
15203 (pass_dce_loop): Replace declaration with that of...
15204 (make_pass_dce_loop): ...new function.
15205 (pass_cd_dce): Replace declaration with that of...
15206 (make_pass_cd_dce): ...new function.
15207 (pass_call_cdce): Replace declaration with that of...
15208 (make_pass_call_cdce): ...new function.
15209 (pass_merge_phi): Replace declaration with that of...
15210 (make_pass_merge_phi): ...new function.
15211 (pass_split_crit_edges): Replace declaration with that of...
15212 (make_pass_split_crit_edges): ...new function.
15213 (pass_pre): Replace declaration with that of...
15214 (make_pass_pre): ...new function.
15215 (pass_profile): Replace declaration with that of...
15216 (make_pass_profile): ...new function.
15217 (pass_strip_predict_hints): Replace declaration with that of...
15218 (make_pass_strip_predict_hints): ...new function.
15219 (pass_lower_complex_O0): Replace declaration with that of...
15220 (make_pass_lower_complex_O0): ...new function.
15221 (pass_lower_complex): Replace declaration with that of...
15222 (make_pass_lower_complex): ...new function.
15223 (pass_lower_vector): Replace declaration with that of...
15224 (make_pass_lower_vector): ...new function.
15225 (pass_lower_vector_ssa): Replace declaration with that of...
15226 (make_pass_lower_vector_ssa): ...new function.
15227 (pass_lower_omp): Replace declaration with that of...
15228 (make_pass_lower_omp): ...new function.
15229 (pass_diagnose_omp_blocks): Replace declaration with that of...
15230 (make_pass_diagnose_omp_blocks): ...new function.
15231 (pass_expand_omp): Replace declaration with that of...
15232 (make_pass_expand_omp): ...new function.
15233 (pass_expand_omp_ssa): Replace declaration with that of...
15234 (make_pass_expand_omp_ssa): ...new function.
15235 (pass_object_sizes): Replace declaration with that of...
15236 (make_pass_object_sizes): ...new function.
15237 (pass_strlen): Replace declaration with that of...
15238 (make_pass_strlen): ...new function.
15239 (pass_fold_builtins): Replace declaration with that of...
15240 (make_pass_fold_builtins): ...new function.
15241 (pass_stdarg): Replace declaration with that of...
15242 (make_pass_stdarg): ...new function.
15243 (pass_early_warn_uninitialized): Replace declaration with that of...
15244 (make_pass_early_warn_uninitialized): ...new function.
15245 (pass_late_warn_uninitialized): Replace declaration with that of...
15246 (make_pass_late_warn_uninitialized): ...new function.
15247 (pass_cse_reciprocals): Replace declaration with that of...
15248 (make_pass_cse_reciprocals): ...new function.
15249 (pass_cse_sincos): Replace declaration with that of...
15250 (make_pass_cse_sincos): ...new function.
15251 (pass_optimize_bswap): Replace declaration with that of...
15252 (make_pass_optimize_bswap): ...new function.
15253 (pass_optimize_widening_mul): Replace declaration with that of...
15254 (make_pass_optimize_widening_mul): ...new function.
15255 (pass_warn_function_return): Replace declaration with that of...
15256 (make_pass_warn_function_return): ...new function.
15257 (pass_warn_function_noreturn): Replace declaration with that of...
15258 (make_pass_warn_function_noreturn): ...new function.
15259 (pass_cselim): Replace declaration with that of...
15260 (make_pass_cselim): ...new function.
15261 (pass_phiopt): Replace declaration with that of...
15262 (make_pass_phiopt): ...new function.
15263 (pass_forwprop): Replace declaration with that of...
15264 (make_pass_forwprop): ...new function.
15265 (pass_phiprop): Replace declaration with that of...
15266 (make_pass_phiprop): ...new function.
15267 (pass_tree_ifcombine): Replace declaration with that of...
15268 (make_pass_tree_ifcombine): ...new function.
15269 (pass_dse): Replace declaration with that of...
15270 (make_pass_dse): ...new function.
15271 (pass_nrv): Replace declaration with that of...
15272 (make_pass_nrv): ...new function.
15273 (pass_rename_ssa_copies): Replace declaration with that of...
15274 (make_pass_rename_ssa_copies): ...new function.
15275 (pass_sink_code): Replace declaration with that of...
15276 (make_pass_sink_code): ...new function.
15277 (pass_fre): Replace declaration with that of...
15278 (make_pass_fre): ...new function.
15279 (pass_check_data_deps): Replace declaration with that of...
15280 (make_pass_check_data_deps): ...new function.
15281 (pass_copy_prop): Replace declaration with that of...
15282 (make_pass_copy_prop): ...new function.
15283 (pass_vrp): Replace declaration with that of...
15284 (make_pass_vrp): ...new function.
15285 (pass_uncprop): Replace declaration with that of...
15286 (make_pass_uncprop): ...new function.
15287 (pass_return_slot): Replace declaration with that of...
15288 (make_pass_return_slot): ...new function.
15289 (pass_reassoc): Replace declaration with that of...
15290 (make_pass_reassoc): ...new function.
15291 (pass_rebuild_cgraph_edges): Replace declaration with that of...
15292 (make_pass_rebuild_cgraph_edges): ...new function.
15293 (pass_remove_cgraph_callee_edges): Replace declaration with that of...
15294 (make_pass_remove_cgraph_callee_edges): ...new function.
15295 (pass_build_cgraph_edges): Replace declaration with that of...
15296 (make_pass_build_cgraph_edges): ...new function.
15297 (pass_local_pure_const): Replace declaration with that of...
15298 (make_pass_local_pure_const): ...new function.
15299 (pass_tracer): Replace declaration with that of...
15300 (make_pass_tracer): ...new function.
15301 (pass_warn_unused_result): Replace declaration with that of...
15302 (make_pass_warn_unused_result): ...new function.
15303 (pass_diagnose_tm_blocks): Replace declaration with that of...
15304 (make_pass_diagnose_tm_blocks): ...new function.
15305 (pass_lower_tm): Replace declaration with that of...
15306 (make_pass_lower_tm): ...new function.
15307 (pass_tm_init): Replace declaration with that of...
15308 (make_pass_tm_init): ...new function.
15309 (pass_tm_mark): Replace declaration with that of...
15310 (make_pass_tm_mark): ...new function.
15311 (pass_tm_memopt): Replace declaration with that of...
15312 (make_pass_tm_memopt): ...new function.
15313 (pass_tm_edges): Replace declaration with that of...
15314 (make_pass_tm_edges): ...new function.
15315 (pass_split_functions): Replace declaration with that of...
15316 (make_pass_split_functions): ...new function.
15317 (pass_feedback_split_functions): Replace declaration with that of...
15318 (make_pass_feedback_split_functions): ...new function.
15319 (pass_strength_reduction): Replace declaration with that of...
15320 (make_pass_strength_reduction): ...new function.
15321 (pass_ipa_lower_emutls): Replace declaration with that of...
15322 (make_pass_ipa_lower_emutls): ...new function.
15323 (pass_ipa_function_and_variable_visibility): Replace declaration with
15325 (make_pass_ipa_function_and_variable_visibility): ...new function.
15326 (pass_ipa_tree_profile): Replace declaration with that of...
15327 (make_pass_ipa_tree_profile): ...new function.
15328 (pass_early_local_passes): Replace declaration with that of...
15329 (make_pass_early_local_passes): ...new function.
15330 (pass_ipa_whole_program_visibility): Replace declaration with that
15332 (make_pass_ipa_whole_program_visibility): ...new function.
15333 (pass_ipa_lto_gimple_out): Replace declaration with that of...
15334 (make_pass_ipa_lto_gimple_out): ...new function.
15335 (pass_ipa_increase_alignment): Replace declaration with that of...
15336 (make_pass_ipa_increase_alignment): ...new function.
15337 (pass_ipa_inline): Replace declaration with that of...
15338 (make_pass_ipa_inline): ...new function.
15339 (pass_ipa_free_lang_data): Replace declaration with that of...
15340 (make_pass_ipa_free_lang_data): ...new function.
15341 (pass_ipa_free_inline_summary): Replace declaration with that of...
15342 (make_pass_ipa_free_inline_summary): ...new function.
15343 (pass_ipa_cp): Replace declaration with that of...
15344 (make_pass_ipa_cp): ...new function.
15345 (pass_ipa_reference): Replace declaration with that of...
15346 (make_pass_ipa_reference): ...new function.
15347 (pass_ipa_pure_const): Replace declaration with that of...
15348 (make_pass_ipa_pure_const): ...new function.
15349 (pass_ipa_pta): Replace declaration with that of...
15350 (make_pass_ipa_pta): ...new function.
15351 (pass_ipa_lto_finish_out): Replace declaration with that of...
15352 (make_pass_ipa_lto_finish_out): ...new function.
15353 (pass_ipa_tm): Replace declaration with that of...
15354 (make_pass_ipa_tm): ...new function.
15355 (pass_ipa_profile): Replace declaration with that of...
15356 (make_pass_ipa_profile): ...new function.
15357 (pass_ipa_cdtor_merge): Replace declaration with that of...
15358 (make_pass_ipa_cdtor_merge): ...new function.
15359 (pass_cleanup_cfg_post_optimizing): Replace declaration with that
15361 (make_pass_cleanup_cfg_post_optimizing): ...new function.
15362 (pass_init_datastructures): Replace declaration with that of...
15363 (make_pass_init_datastructures): ...new function.
15364 (pass_fixup_cfg): Replace declaration with that of...
15365 (make_pass_fixup_cfg): ...new function.
15366 (pass_expand): Replace declaration with that of...
15367 (make_pass_expand): ...new function.
15368 (pass_instantiate_virtual_regs): Replace declaration with that of...
15369 (make_pass_instantiate_virtual_regs): ...new function.
15370 (pass_rtl_fwprop): Replace declaration with that of...
15371 (make_pass_rtl_fwprop): ...new function.
15372 (pass_rtl_fwprop_addr): Replace declaration with that of...
15373 (make_pass_rtl_fwprop_addr): ...new function.
15374 (pass_jump): Replace declaration with that of...
15375 (make_pass_jump): ...new function.
15376 (pass_jump2): Replace declaration with that of...
15377 (make_pass_jump2): ...new function.
15378 (pass_lower_subreg): Replace declaration with that of...
15379 (make_pass_lower_subreg): ...new function.
15380 (pass_cse): Replace declaration with that of...
15381 (make_pass_cse): ...new function.
15382 (pass_fast_rtl_dce): Replace declaration with that of...
15383 (make_pass_fast_rtl_dce): ...new function.
15384 (pass_ud_rtl_dce): Replace declaration with that of...
15385 (make_pass_ud_rtl_dce): ...new function.
15386 (pass_rtl_dce): Replace declaration with that of...
15387 (make_pass_rtl_dce): ...new function.
15388 (pass_rtl_dse1): Replace declaration with that of...
15389 (make_pass_rtl_dse1): ...new function.
15390 (pass_rtl_dse2): Replace declaration with that of...
15391 (make_pass_rtl_dse2): ...new function.
15392 (pass_rtl_dse3): Replace declaration with that of...
15393 (make_pass_rtl_dse3): ...new function.
15394 (pass_rtl_cprop): Replace declaration with that of...
15395 (make_pass_rtl_cprop): ...new function.
15396 (pass_rtl_pre): Replace declaration with that of...
15397 (make_pass_rtl_pre): ...new function.
15398 (pass_rtl_hoist): Replace declaration with that of...
15399 (make_pass_rtl_hoist): ...new function.
15400 (pass_rtl_store_motion): Replace declaration with that of...
15401 (make_pass_rtl_store_motion): ...new function.
15402 (pass_cse_after_global_opts): Replace declaration with that of...
15403 (make_pass_cse_after_global_opts): ...new function.
15404 (pass_rtl_ifcvt): Replace declaration with that of...
15405 (make_pass_rtl_ifcvt): ...new function.
15406 (pass_into_cfg_layout_mode): Replace declaration with that of...
15407 (make_pass_into_cfg_layout_mode): ...new function.
15408 (pass_outof_cfg_layout_mode): Replace declaration with that of...
15409 (make_pass_outof_cfg_layout_mode): ...new function.
15410 (pass_loop2): Replace declaration with that of...
15411 (make_pass_loop2): ...new function.
15412 (pass_rtl_loop_init): Replace declaration with that of...
15413 (make_pass_rtl_loop_init): ...new function.
15414 (pass_rtl_move_loop_invariants): Replace declaration with that of...
15415 (make_pass_rtl_move_loop_invariants): ...new function.
15416 (pass_rtl_unswitch): Replace declaration with that of...
15417 (make_pass_rtl_unswitch): ...new function.
15418 (pass_rtl_unroll_and_peel_loops): Replace declaration with that of...
15419 (make_pass_rtl_unroll_and_peel_loops): ...new function.
15420 (pass_rtl_doloop): Replace declaration with that of...
15421 (make_pass_rtl_doloop): ...new function.
15422 (pass_rtl_loop_done): Replace declaration with that of...
15423 (make_pass_rtl_loop_done): ...new function.
15424 (pass_web): Replace declaration with that of...
15425 (make_pass_web): ...new function.
15426 (pass_cse2): Replace declaration with that of...
15427 (make_pass_cse2): ...new function.
15428 (pass_df_initialize_opt): Replace declaration with that of...
15429 (make_pass_df_initialize_opt): ...new function.
15430 (pass_df_initialize_no_opt): Replace declaration with that of...
15431 (make_pass_df_initialize_no_opt): ...new function.
15432 (pass_reginfo_init): Replace declaration with that of...
15433 (make_pass_reginfo_init): ...new function.
15434 (pass_inc_dec): Replace declaration with that of...
15435 (make_pass_inc_dec): ...new function.
15436 (pass_stack_ptr_mod): Replace declaration with that of...
15437 (make_pass_stack_ptr_mod): ...new function.
15438 (pass_initialize_regs): Replace declaration with that of...
15439 (make_pass_initialize_regs): ...new function.
15440 (pass_combine): Replace declaration with that of...
15441 (make_pass_combine): ...new function.
15442 (pass_if_after_combine): Replace declaration with that of...
15443 (make_pass_if_after_combine): ...new function.
15444 (pass_ree): Replace declaration with that of...
15445 (make_pass_ree): ...new function.
15446 (pass_partition_blocks): Replace declaration with that of...
15447 (make_pass_partition_blocks): ...new function.
15448 (pass_match_asm_constraints): Replace declaration with that of...
15449 (make_pass_match_asm_constraints): ...new function.
15450 (pass_regmove): Replace declaration with that of...
15451 (make_pass_regmove): ...new function.
15452 (pass_split_all_insns): Replace declaration with that of...
15453 (make_pass_split_all_insns): ...new function.
15454 (pass_fast_rtl_byte_dce): Replace declaration with that of...
15455 (make_pass_fast_rtl_byte_dce): ...new function.
15456 (pass_lower_subreg2): Replace declaration with that of...
15457 (make_pass_lower_subreg2): ...new function.
15458 (pass_mode_switching): Replace declaration with that of...
15459 (make_pass_mode_switching): ...new function.
15460 (pass_sms): Replace declaration with that of...
15461 (make_pass_sms): ...new function.
15462 (pass_sched): Replace declaration with that of...
15463 (make_pass_sched): ...new function.
15464 (pass_ira): Replace declaration with that of...
15465 (make_pass_ira): ...new function.
15466 (pass_reload): Replace declaration with that of...
15467 (make_pass_reload): ...new function.
15468 (pass_clean_state): Replace declaration with that of...
15469 (make_pass_clean_state): ...new function.
15470 (pass_branch_prob): Replace declaration with that of...
15471 (make_pass_branch_prob): ...new function.
15472 (pass_value_profile_transformations): Replace declaration with that
15474 (make_pass_value_profile_transformations): ...new function.
15475 (pass_postreload_cse): Replace declaration with that of...
15476 (make_pass_postreload_cse): ...new function.
15477 (pass_gcse2): Replace declaration with that of...
15478 (make_pass_gcse2): ...new function.
15479 (pass_split_after_reload): Replace declaration with that of...
15480 (make_pass_split_after_reload): ...new function.
15481 (pass_branch_target_load_optimize1): Replace declaration with that
15483 (make_pass_branch_target_load_optimize1): ...new function.
15484 (pass_thread_prologue_and_epilogue): Replace declaration with that
15486 (make_pass_thread_prologue_and_epilogue): ...new function.
15487 (pass_stack_adjustments): Replace declaration with that of...
15488 (make_pass_stack_adjustments): ...new function.
15489 (pass_peephole2): Replace declaration with that of...
15490 (make_pass_peephole2): ...new function.
15491 (pass_if_after_reload): Replace declaration with that of...
15492 (make_pass_if_after_reload): ...new function.
15493 (pass_regrename): Replace declaration with that of...
15494 (make_pass_regrename): ...new function.
15495 (pass_cprop_hardreg): Replace declaration with that of...
15496 (make_pass_cprop_hardreg): ...new function.
15497 (pass_reorder_blocks): Replace declaration with that of...
15498 (make_pass_reorder_blocks): ...new function.
15499 (pass_branch_target_load_optimize2): Replace declaration with that
15501 (make_pass_branch_target_load_optimize2): ...new function.
15502 (pass_leaf_regs): Replace declaration with that of...
15503 (make_pass_leaf_regs): ...new function.
15504 (pass_split_before_sched2): Replace declaration with that of...
15505 (make_pass_split_before_sched2): ...new function.
15506 (pass_compare_elim_after_reload): Replace declaration with that of...
15507 (make_pass_compare_elim_after_reload): ...new function.
15508 (pass_sched2): Replace declaration with that of...
15509 (make_pass_sched2): ...new function.
15510 (pass_stack_regs): Replace declaration with that of...
15511 (make_pass_stack_regs): ...new function.
15512 (pass_stack_regs_run): Replace declaration with that of...
15513 (make_pass_stack_regs_run): ...new function.
15514 (pass_df_finish): Replace declaration with that of...
15515 (make_pass_df_finish): ...new function.
15516 (pass_compute_alignments): Replace declaration with that of...
15517 (make_pass_compute_alignments): ...new function.
15518 (pass_duplicate_computed_gotos): Replace declaration with that of...
15519 (make_pass_duplicate_computed_gotos): ...new function.
15520 (pass_variable_tracking): Replace declaration with that of...
15521 (make_pass_variable_tracking): ...new function.
15522 (pass_free_cfg): Replace declaration with that of...
15523 (make_pass_free_cfg): ...new function.
15524 (pass_machine_reorg): Replace declaration with that of...
15525 (make_pass_machine_reorg): ...new function.
15526 (pass_cleanup_barriers): Replace declaration with that of...
15527 (make_pass_cleanup_barriers): ...new function.
15528 (pass_delay_slots): Replace declaration with that of...
15529 (make_pass_delay_slots): ...new function.
15530 (pass_split_for_shorten_branches): Replace declaration with that of...
15531 (make_pass_split_for_shorten_branches): ...new function.
15532 (pass_split_before_regstack): Replace declaration with that of...
15533 (make_pass_split_before_regstack): ...new function.
15534 (pass_convert_to_eh_region_ranges): Replace declaration with that
15536 (make_pass_convert_to_eh_region_ranges): ...new function.
15537 (pass_shorten_branches): Replace declaration with that of...
15538 (make_pass_shorten_branches): ...new function.
15539 (pass_set_nothrow_function_flags): Replace declaration with that of...
15540 (make_pass_set_nothrow_function_flags): ...new function.
15541 (pass_dwarf2_frame): Replace declaration with that of...
15542 (make_pass_dwarf2_frame): ...new function.
15543 (pass_final): Replace declaration with that of...
15544 (make_pass_final): ...new function.
15545 (pass_rtl_seqabstr): Replace declaration with that of...
15546 (make_pass_rtl_seqabstr): ...new function.
15547 (pass_release_ssa_names): Replace declaration with that of...
15548 (make_pass_release_ssa_names): ...new function.
15549 (pass_early_inline): Replace declaration with that of...
15550 (make_pass_early_inline): ...new function.
15551 (pass_inline_parameters): Replace declaration with that of...
15552 (make_pass_inline_parameters): ...new function.
15553 (pass_update_address_taken): Replace declaration with that of...
15554 (make_pass_update_address_taken): ...new function.
15555 (pass_convert_switch): Replace declaration with that of...
15556 (make_pass_convert_switch): ...new function.
15557 * tree-profile.c (pass_ipa_tree_profile): Convert from a global struct
15558 to a subclass of simple_ipa_opt_pass along with...
15559 (pass_data_ipa_tree_profile): ...new pass_data instance and...
15560 (make_pass_ipa_tree_profile): ...new function.
15561 * tree-sra.c (pass_sra_early): Convert from a global struct to a
15562 subclass of gimple_opt_pass along with...
15563 (pass_data_sra_early): ...new pass_data instance and...
15564 (make_pass_sra_early): ...new function.
15565 (pass_sra): Convert from a global struct to a subclass of
15566 gimple_opt_pass along with...
15567 (pass_data_sra): ...new pass_data instance and...
15568 (make_pass_sra): ...new function.
15569 (pass_early_ipa_sra): Convert from a global struct to a subclass of
15570 gimple_opt_pass along with...
15571 (pass_data_early_ipa_sra): ...new pass_data instance and...
15572 (make_pass_early_ipa_sra): ...new function.
15573 * tree-ssa-ccp.c (pass_ccp): Convert from a global struct to a
15574 subclass of gimple_opt_pass along with...
15575 (pass_data_ccp): ...new pass_data instance and...
15576 (make_pass_ccp): ...new function.
15577 (pass_fold_builtins): Convert from a global struct to a subclass of
15578 gimple_opt_pass along with...
15579 (pass_data_fold_builtins): ...new pass_data instance and...
15580 (make_pass_fold_builtins): ...new function.
15581 * tree-ssa-copy.c (pass_copy_prop): Convert from a global struct to a
15582 subclass of gimple_opt_pass along with...
15583 (pass_data_copy_prop): ...new pass_data instance and...
15584 (make_pass_copy_prop): ...new function.
15585 * tree-ssa-copyrename.c (pass_rename_ssa_copies): Convert from a
15586 global struct to a subclass of gimple_opt_pass along with...
15587 (pass_data_rename_ssa_copies): ...new pass_data instance and...
15588 (make_pass_rename_ssa_copies): ...new function.
15589 * tree-ssa-dce.c (pass_dce): Convert from a global struct to a
15590 subclass of gimple_opt_pass along with...
15591 (pass_data_dce): ...new pass_data instance and...
15592 (make_pass_dce): ...new function.
15593 (pass_dce_loop): Convert from a global struct to a subclass of
15594 gimple_opt_pass along with...
15595 (pass_data_dce_loop): ...new pass_data instance and...
15596 (make_pass_dce_loop): ...new function.
15597 (pass_cd_dce): Convert from a global struct to a subclass of
15598 gimple_opt_pass along with...
15599 (pass_data_cd_dce): ...new pass_data instance and...
15600 (make_pass_cd_dce): ...new function.
15601 * tree-ssa-dom.c (pass_dominator): Convert from a global struct to a
15602 subclass of gimple_opt_pass along with...
15603 (pass_data_dominator): ...new pass_data instance and...
15604 (make_pass_dominator): ...new function.
15605 (pass_phi_only_cprop): Convert from a global struct to a subclass of
15606 gimple_opt_pass along with...
15607 (pass_data_phi_only_cprop): ...new pass_data instance and...
15608 (make_pass_phi_only_cprop): ...new function.
15609 * tree-ssa-dse.c (pass_dse): Convert from a global struct to a
15610 subclass of gimple_opt_pass along with...
15611 (pass_data_dse): ...new pass_data instance and...
15612 (make_pass_dse): ...new function.
15613 * tree-ssa-forwprop.c (pass_forwprop): Convert from a global struct to
15614 a subclass of gimple_opt_pass along with...
15615 (pass_data_forwprop): ...new pass_data instance and...
15616 (make_pass_forwprop): ...new function.
15617 * tree-ssa-ifcombine.c (pass_tree_ifcombine): Convert from a global
15618 struct to a subclass of gimple_opt_pass along with...
15619 (pass_data_tree_ifcombine): ...new pass_data instance and...
15620 (make_pass_tree_ifcombine): ...new function.
15621 * tree-ssa-loop-ch.c (pass_ch): Convert from a global struct to a
15622 subclass of gimple_opt_pass along with...
15623 (pass_data_ch): ...new pass_data instance and...
15624 (make_pass_ch): ...new function.
15625 * tree-ssa-loop.c (pass_tree_loop): Convert from a global struct to a
15626 subclass of gimple_opt_pass along with...
15627 (pass_data_tree_loop): ...new pass_data instance and...
15628 (make_pass_tree_loop): ...new function.
15629 (pass_tree_loop_init): Convert from a global struct to a subclass of
15630 gimple_opt_pass along with...
15631 (pass_data_tree_loop_init): ...new pass_data instance and...
15632 (make_pass_tree_loop_init): ...new function.
15633 (pass_lim): Convert from a global struct to a subclass of
15634 gimple_opt_pass along with...
15635 (pass_data_lim): ...new pass_data instance and...
15636 (make_pass_lim): ...new function.
15637 (pass_tree_unswitch): Convert from a global struct to a subclass of
15638 gimple_opt_pass along with...
15639 (pass_data_tree_unswitch): ...new pass_data instance and...
15640 (make_pass_tree_unswitch): ...new function.
15641 (pass_predcom): Convert from a global struct to a subclass of
15642 gimple_opt_pass along with...
15643 (pass_data_predcom): ...new pass_data instance and...
15644 (make_pass_predcom): ...new function.
15645 (pass_vectorize): Convert from a global struct to a subclass of
15646 gimple_opt_pass along with...
15647 (pass_data_vectorize): ...new pass_data instance and...
15648 (make_pass_vectorize): ...new function.
15649 (pass_graphite): Convert from a global struct to a subclass of
15650 gimple_opt_pass along with...
15651 (pass_data_graphite): ...new pass_data instance and...
15652 (make_pass_graphite): ...new function.
15653 (pass_graphite_transforms): Convert from a global struct to a subclass
15654 of gimple_opt_pass along with...
15655 (pass_data_graphite_transforms): ...new pass_data instance and...
15656 (make_pass_graphite_transforms): ...new function.
15657 (pass_check_data_deps): Convert from a global struct to a subclass of
15658 gimple_opt_pass along with...
15659 (pass_data_check_data_deps): ...new pass_data instance and...
15660 (make_pass_check_data_deps): ...new function.
15661 (pass_iv_canon): Convert from a global struct to a subclass of
15662 gimple_opt_pass along with...
15663 (pass_data_iv_canon): ...new pass_data instance and...
15664 (make_pass_iv_canon): ...new function.
15665 (pass_scev_cprop): Convert from a global struct to a subclass of
15666 gimple_opt_pass along with...
15667 (pass_data_scev_cprop): ...new pass_data instance and...
15668 (make_pass_scev_cprop): ...new function.
15669 (pass_record_bounds): Convert from a global struct to a subclass of
15670 gimple_opt_pass along with...
15671 (pass_data_record_bounds): ...new pass_data instance and...
15672 (make_pass_record_bounds): ...new function.
15673 (pass_complete_unroll): Convert from a global struct to a subclass of
15674 gimple_opt_pass along with...
15675 (pass_data_complete_unroll): ...new pass_data instance and...
15676 (make_pass_complete_unroll): ...new function.
15677 (pass_complete_unrolli): Convert from a global struct to a subclass of
15678 gimple_opt_pass along with...
15679 (pass_data_complete_unrolli): ...new pass_data instance and...
15680 (make_pass_complete_unrolli): ...new function.
15681 (pass_parallelize_loops): Convert from a global struct to a subclass
15682 of gimple_opt_pass along with...
15683 (pass_data_parallelize_loops): ...new pass_data instance and...
15684 (make_pass_parallelize_loops): ...new function.
15685 (pass_loop_prefetch): Convert from a global struct to a subclass of
15686 gimple_opt_pass along with...
15687 (pass_data_loop_prefetch): ...new pass_data instance and...
15688 (make_pass_loop_prefetch): ...new function.
15689 (pass_iv_optimize): Convert from a global struct to a subclass of
15690 gimple_opt_pass along with...
15691 (pass_data_iv_optimize): ...new pass_data instance and...
15692 (make_pass_iv_optimize): ...new function.
15693 (pass_tree_loop_done): Convert from a global struct to a subclass of
15694 gimple_opt_pass along with...
15695 (pass_data_tree_loop_done): ...new pass_data instance and...
15696 (make_pass_tree_loop_done): ...new function.
15697 * tree-ssa-math-opts.c (pass_cse_reciprocals): Convert from a global
15698 struct to a subclass of gimple_opt_pass along with...
15699 (pass_data_cse_reciprocals): ...new pass_data instance and...
15700 (make_pass_cse_reciprocals): ...new function.
15701 (pass_cse_sincos): Convert from a global struct to a subclass of
15702 gimple_opt_pass along with...
15703 (pass_data_cse_sincos): ...new pass_data instance and...
15704 (make_pass_cse_sincos): ...new function.
15705 (pass_optimize_bswap): Convert from a global struct to a subclass of
15706 gimple_opt_pass along with...
15707 (pass_data_optimize_bswap): ...new pass_data instance and...
15708 (make_pass_optimize_bswap): ...new function.
15709 (pass_optimize_widening_mul): Convert from a global struct to a
15710 subclass of gimple_opt_pass along with...
15711 (pass_data_optimize_widening_mul): ...new pass_data instance and...
15712 (make_pass_optimize_widening_mul): ...new function.
15713 * tree-ssa-phiopt.c (pass_phiopt): Convert from a global struct to a
15714 subclass of gimple_opt_pass along with...
15715 (pass_data_phiopt): ...new pass_data instance and...
15716 (make_pass_phiopt): ...new function.
15717 (pass_cselim): Convert from a global struct to a subclass of
15718 gimple_opt_pass along with...
15719 (pass_data_cselim): ...new pass_data instance and...
15720 (make_pass_cselim): ...new function.
15721 * tree-ssa-phiprop.c (pass_phiprop): Convert from a global struct to a
15722 subclass of gimple_opt_pass along with...
15723 (pass_data_phiprop): ...new pass_data instance and...
15724 (make_pass_phiprop): ...new function.
15725 * tree-ssa-pre.c (pass_pre): Convert from a global struct to a
15726 subclass of gimple_opt_pass along with...
15727 (pass_data_pre): ...new pass_data instance and...
15728 (make_pass_pre): ...new function.
15729 (pass_fre): Convert from a global struct to a subclass of
15730 gimple_opt_pass along with...
15731 (pass_data_fre): ...new pass_data instance and...
15732 (make_pass_fre): ...new function.
15733 * tree-ssa-reassoc.c (pass_reassoc): Convert from a global struct to a
15734 subclass of gimple_opt_pass along with...
15735 (pass_data_reassoc): ...new pass_data instance and...
15736 (make_pass_reassoc): ...new function.
15737 * tree-ssa-sink.c (pass_sink_code): Convert from a global struct to a
15738 subclass of gimple_opt_pass along with...
15739 (pass_data_sink_code): ...new pass_data instance and...
15740 (make_pass_sink_code): ...new function.
15741 * tree-ssa-strlen.c (pass_strlen): Convert from a global struct to a
15742 subclass of gimple_opt_pass along with...
15743 (pass_data_strlen): ...new pass_data instance and...
15744 (make_pass_strlen): ...new function.
15745 * tree-ssa-structalias.c (pass_build_alias): Convert from a global
15746 struct to a subclass of gimple_opt_pass along with...
15747 (pass_data_build_alias): ...new pass_data instance and...
15748 (make_pass_build_alias): ...new function.
15749 (pass_build_ealias): Convert from a global struct to a subclass of
15750 gimple_opt_pass along with...
15751 (pass_data_build_ealias): ...new pass_data instance and...
15752 (make_pass_build_ealias): ...new function.
15753 (pass_ipa_pta): Convert from a global struct to a subclass of
15754 simple_ipa_opt_pass along with...
15755 (pass_data_ipa_pta): ...new pass_data instance and...
15756 (make_pass_ipa_pta): ...new function.
15757 * tree-ssa-uncprop.c (pass_uncprop): Convert from a global struct to a
15758 subclass of gimple_opt_pass along with...
15759 (pass_data_uncprop): ...new pass_data instance and...
15760 (make_pass_uncprop): ...new function.
15761 * tree-ssa-uninit.c (pass_late_warn_uninitialized): Convert from a
15762 global struct to a subclass of gimple_opt_pass along with...
15763 (pass_data_late_warn_uninitialized): ...new pass_data instance and...
15764 (make_pass_late_warn_uninitialized): ...new function.
15765 * tree-ssa.c (pass_init_datastructures): Convert from a global struct
15766 to a subclass of gimple_opt_pass along with...
15767 (pass_data_init_datastructures): ...new pass_data instance and...
15768 (make_pass_init_datastructures): ...new function.
15769 (pass_early_warn_uninitialized): Convert from a global struct to a
15770 subclass of gimple_opt_pass along with...
15771 (pass_data_early_warn_uninitialized): ...new pass_data instance and...
15772 (make_pass_early_warn_uninitialized): ...new function.
15773 (pass_update_address_taken): Convert from a global struct to a
15774 subclass of gimple_opt_pass along with...
15775 (pass_data_update_address_taken): ...new pass_data instance and...
15776 (make_pass_update_address_taken): ...new function.
15777 * tree-ssanames.c (pass_release_ssa_names): Convert from a global
15778 struct to a subclass of gimple_opt_pass along with...
15779 (pass_data_release_ssa_names): ...new pass_data instance and...
15780 (make_pass_release_ssa_names): ...new function.
15781 * tree-stdarg.c (pass_stdarg): Convert from a global struct to a
15782 subclass of gimple_opt_pass along with...
15783 (pass_data_stdarg): ...new pass_data instance and...
15784 (make_pass_stdarg): ...new function.
15785 * tree-switch-conversion.c (pass_convert_switch): Convert from a
15786 global struct to a subclass of gimple_opt_pass along with...
15787 (pass_data_convert_switch): ...new pass_data instance and...
15788 (make_pass_convert_switch): ...new function.
15789 * tree-tailcall.c (pass_tail_recursion): Convert from a global struct
15790 to a subclass of gimple_opt_pass along with...
15791 (pass_data_tail_recursion): ...new pass_data instance and...
15792 (make_pass_tail_recursion): ...new function.
15793 (pass_tail_calls): Convert from a global struct to a subclass of
15794 gimple_opt_pass along with...
15795 (pass_data_tail_calls): ...new pass_data instance and...
15796 (make_pass_tail_calls): ...new function.
15797 * tree-vect-generic.c (pass_lower_vector): Convert from a global
15798 struct to a subclass of gimple_opt_pass along with...
15799 (pass_data_lower_vector): ...new pass_data instance and...
15800 (make_pass_lower_vector): ...new function.
15801 (pass_lower_vector_ssa): Convert from a global struct to a subclass of
15802 gimple_opt_pass along with...
15803 (pass_data_lower_vector_ssa): ...new pass_data instance and...
15804 (make_pass_lower_vector_ssa): ...new function.
15805 * tree-vectorizer.c (pass_slp_vectorize): Convert from a global struct
15806 to a subclass of gimple_opt_pass along with...
15807 (pass_data_slp_vectorize): ...new pass_data instance and...
15808 (make_pass_slp_vectorize): ...new function.
15809 (pass_ipa_increase_alignment): Convert from a global struct to a
15810 subclass of simple_ipa_opt_pass along with...
15811 (pass_data_ipa_increase_alignment): ...new pass_data instance and...
15812 (make_pass_ipa_increase_alignment): ...new function.
15813 * tree-vrp.c (pass_vrp): Convert from a global struct to a subclass of
15814 gimple_opt_pass along with...
15815 (pass_data_vrp): ...new pass_data instance and...
15816 (make_pass_vrp): ...new function.
15817 * tree.c (pass_ipa_free_lang_data): Convert from a global struct to a
15818 subclass of simple_ipa_opt_pass along with...
15819 (pass_data_ipa_free_lang_data): ...new pass_data instance and...
15820 (make_pass_ipa_free_lang_data): ...new function.
15821 * tsan.c (pass_tsan): Convert from a global struct to a subclass of
15822 gimple_opt_pass along with...
15823 (pass_data_tsan): ...new pass_data instance and...
15824 (make_pass_tsan): ...new function.
15825 (pass_tsan_O0): Convert from a global struct to a subclass of
15826 gimple_opt_pass along with...
15827 (pass_data_tsan_O0): ...new pass_data instance and...
15828 (make_pass_tsan_O0): ...new function.
15829 * var-tracking.c (pass_variable_tracking): Convert from a global
15830 struct to a subclass of rtl_opt_pass along with...
15831 (pass_data_variable_tracking): ...new pass_data instance and...
15832 (make_pass_variable_tracking): ...new function.
15833 * web.c (pass_web): Convert from a global struct to a subclass of
15834 rtl_opt_pass along with...
15835 (pass_data_web): ...new pass_data instance and...
15836 (make_pass_web): ...new function.
15837 * config/epiphany/epiphany.h (pass_mode_switch_use): Replace
15838 declaration with that of...
15839 (make_pass_mode_switch_use): ...new function.
15840 (pass_resolve_sw_modes): Replace declaration with that of...
15841 (make_pass_resolve_sw_modes): ...new function.
15842 * config/epiphany/mode-switch-use.c (pass_mode_switch_use): Convert
15843 from a global struct to a subclass of rtl_opt_pass along with...
15844 (pass_data_mode_switch_use): ...new pass_data instance and...
15845 (make_pass_mode_switch_use): ...new function.
15846 * config/epiphany/resolve-sw-modes.c (pass_resolve_sw_modes): Convert
15847 from a global struct to a subclass of rtl_opt_pass along with...
15848 (pass_data_resolve_sw_modes): ...new pass_data instance and...
15849 (make_pass_resolve_sw_modes): ...new function.
15850 * config/i386/i386.c (pass_insert_vzeroupper): Convert from a global
15851 struct to a subclass of rtl_opt_pass along with...
15852 (pass_data_insert_vzeroupper): ...new pass_data instance and...
15853 (make_pass_insert_vzeroupper): ...new function.
15854 * config/sparc/sparc.c (pass_work_around_errata): Convert from a
15855 global struct to a subclass of rtl_opt_pass along with...
15856 (pass_data_work_around_errata): ...new pass_data instance and...
15857 (make_pass_work_around_errata): ...new function.
15858 * config/mips/mips.c (pass_mips_machine_reorg2): Convert from a global
15859 struct to a subclass of rtl_opt_pass along with...
15860 (pass_data_mips_machine_reorg2): ...new pass_data instance and...
15861 (make_pass_mips_machine_reorg2): ...new function.
15863 2013-08-05 David Malcolm <dmalcolm@redhat.com>
15865 * passes.c (pass_manager::operator new): New.
15867 2013-08-05 David Malcolm <dmalcolm@redhat.com>
15869 Handwritten part of conversion of passes to C++ classes.
15871 * Makefile.in (PASS_MANAGER_H): Add dep on pass-instances.def.
15872 (toplev.o): Add dep on PASS_MANAGER_H.
15873 * cgraphunit.c (cgraph_process_new_functions): Rework invocation
15874 of early local pases to reflect this moving from a global to a
15875 member of gcc::pass_manager.
15876 (cgraph_add_new_function): Likewise.
15877 * lto-cgraph.c (lto_output_node): Update for conversion of
15878 struct ipa_opt_pass_d to a C++ subclass of opt_pass.
15879 * passes.c (opt_pass::clone): New.
15880 (opt_pass::gate): New.
15881 (opt_pass::execute): New.
15882 (opt_pass::opt_pass): New.
15883 (pass_manager::execute_early_local_passes): New.
15884 (pass_manager::execute_pass_mode_switching): new.
15885 (finish_optimization_passes): Convert to...
15886 (pass_manager::finish_optimization_passes): ...this.
15887 (finish_optimization_passes): Update for conversion of passes to
15889 (register_dump_files_1): Use has_gate since we cannot portably
15890 check a vtable entry against NULL.
15891 (dump_one_pass): Likewise.
15892 (ipa_write_summaries_2): Likewise.
15893 (ipa_write_optimization_summaries_1): Likewise.
15894 (ipa_read_summaries_1): Likewise.
15895 (ipa_read_optimization_summaries_1): Likewise.
15896 (execute_ipa_stmt_fixups): Likewise.
15897 (pass_manager::pass_manager): Rewrite pass-creation, invoking
15898 pass-creation functions rather than wiring up globals, and
15899 storing the results in fields of pass_manager generated using
15900 pass-instances.def.
15901 (pass_manager::dump_profile_report): Update for conversion of
15902 passes to C++ classes.
15903 (pass_manager::execute_ipa_summary_passes): Likewise.
15904 (execute_one_ipa_transform_pass): Likewise.
15905 (execute_one_pass): Use has_gate and has_execute since we cannot
15906 portably check a vtable entry against NULL.
15907 * pass_manager.h (pass_manager::finish_optimization_passes): New.
15908 (pass_manager): Use pass-instances.def to add fields for the
15909 various pass instances.
15910 * toplev.c (finalize): Update for move of
15911 finish_optimization_passes to a method of gcc::pass_manager.
15912 * toplev.h (finish_optimization_passes): Move to method of class
15914 * tree-pass.h (struct pass_data): New.
15915 (opt_pass): Convert to C++ class, make it a subclass of pass_data.
15916 (opt_pass::gate): Convert to virtual function.
15917 (opt_pass::~opt_pass): New.
15918 (opt_pass::clone): New.
15919 (opt_pass::execute): Convert to virtual function.
15920 (opt_pass::opt_pass): New.
15921 (opt_pass::ctxt_): new.
15922 (gimple_opt_pass): Convert to subclass of opt_pass.
15923 (gimple_opt_pass::gimple_opt_pass): New.
15924 (rtl_opt_pass): Convert to subclass of opt_pass.
15925 (rtl_opt_pass::rtl_opt_pass): New.
15926 (ipa_opt_pass_d): Convert to subclass of opt_pass.
15927 (ipa_opt_pass_d::ipa_opt_pass_d): New.
15928 (simple_ipa_opt_pass): Convert to subclass of opt_pass.
15929 (simple_ipa_opt_pass::simple_ipa_opt_pass): New.
15930 * config/i386/i386.c (rest_of_handle_insert_vzeroupper): Rework
15931 invocation of pass_mode_switching to reflect this moving from a
15932 global to a member of gcc::pass_manager.
15933 (ix86_option_override): Rework how pass_insert_vzeroupper is
15934 added to the pass_manager to reflect autogenerated changes.
15935 * config/i386/t-i386 (i386.o) Add deps on CONTEXT_H and PASS_MANAGER_H.
15937 2013-08-05 Richard Earnshaw <rearnsha@arm.com>
15939 PR rtl-optimization/57708
15940 * recog.c (peep2_find_free_register): Validate all regs in a
15943 2013-08-05 Jan Hubicka <jh@suse.cz>
15946 * cgraph.c (verify_cgraph_node): Accept local flags from other
15948 * ipa.c (symtab_remove_unreachable_nodes): Do not clear local flag.
15949 (function_and_variable_visibility): Likewise.
15950 * trans-mem.c (ipa_tm_create_version): TM versions are not local.
15952 2013-08-05 Gabriel Dos Reis <gdr@integrable-solutions.net>
15954 * graph.c (init_graph_slim_pretty_print): Remove.
15955 (print_graph_cfg): Do not call it. Use local pretty printer.
15956 (start_graph_dump): Likewise.
15958 2013-08-05 Gabriel Dos Reis <gdr@integrable-solutions.net>
15960 * gimple-pretty-print.c (buffer): Remove.
15961 (initialized): Likewise.
15962 (maybe_init_pretty_print): Likewise.
15963 (print_gimple_stmt): Do not call it. Use non-static local
15964 pretty_printer variable.
15965 (print_gimple_expr): Likewise.
15966 (print_gimple_seq): Likewise.
15967 (gimple_dump_bb): Likewise.
15969 2013-08-05 Gabriel Dos Reis <gdr@integrable-solutions.net>
15971 * asan.c (asan_pp): Remove.
15972 (asan_pp_initialized): Likewise.
15973 (asan_pp_initialize): Likewise.
15974 (asan_pp_string): Take a pretty_printer parameter. Adjust callers.
15975 (asan_emit_stack_protection): Tidy. Use local pretty printer.
15976 (asan_add_global): Likewise.
15978 2013-08-04 Gabriel Dos Reis <gdr@integrable-solutions.net>
15980 * pretty-print.h (pp_base): Remove. Adjust dependent macros.
15981 * diagnostic.h (diagnostic_flush_buffer): Adjust.
15982 * pretty-print.c (pp_formatted_text_data): Likewise.
15983 (pp_indent): Rename from pp_base_indent.
15984 (pp_format): Rename from pp_base_format.
15985 (pp_output_formatted_text): Rename from pp_base_output_formatted_text.
15986 (pp_format_verbatim): Rename from pp_base_format_verbatim.
15987 (pp_flush): Rename from pp_base_flush.
15988 (pp_set_line_maximum_length): Rename from
15989 pp_base_set_line_maximum_length.
15990 (pp_clear_output_area): Rename from pp_base_clear_output_area.
15991 (pp_set_prefix): Rename from pp_base_set_prefix.
15992 (pp_destroy_prefix): Rename from pp_base_destroy_prefix.
15993 (pp_emit_prefix): Rename from pp_base_emit_prefix.
15994 (pp_append_text): Rename from pp_base_append_text.
15995 (pp_formatted_text): Rename from pp_base_formatted_text.
15996 (pp_last_position_in_text): Rename from pp_base_last_position_in_text.
15997 (pp_remaining_character_count_for_line): Rename from
15998 pp_base_remaining_character_count_for_line.
15999 (pp_newline): Rename from pp_base_newline.
16000 (pp_character): Rename from pp_base_character.
16001 (pp_string): Rename from pp_base_string.
16002 (pp_maybe_space): Rename from pp_base_maybe_space.
16003 * asan.c (asan_pp_string): Adjust.
16004 (asan_emit_stack_protection): Likewise.
16005 (asan_add_global): Likewise.
16006 * sched-vis.c (str_pattern_slim): Adjust pretty printer function call.
16007 * tree-mudflap.c (mf_varname_tree): Likewise.
16008 * tree-pretty-print.c (pp_tree_identifier): Rename from
16009 pp_base_tree_identifier.
16010 * tree-pretty-print.h (pp_tree_identifier): Remove macro definition.
16011 Declare as function.
16013 2013-08-03 Gabriel Dos Reis <gdr@integrable-solutions.net>
16015 * pretty-print.h (pp_bar_bar): New.
16016 (pp_ampersand_ampersand): Likewise.
16017 (pp_less_equal): Likewise.
16018 (pp_greater_equal): Likewise.
16019 * gimple-pretty-print.c (dump_ternary_rhs): Use specialized pretty
16020 printer functions instead of pp_string or operators and punctuators.
16021 (dump_gimple_call): Likewise.
16022 (dump_gimple_omp_for): Likewise.
16023 (dump_gimple_transaction): Likewise.
16024 (dump_gimple_phi): Likewise.
16025 (pp_gimple_stmt_1): Likewise.
16026 * sched-vis.c (print_insn): Likewise.
16027 * tree-mudflap.c (mf_varname_tree): Likewise.
16028 * tree-pretty-print.c (dump_block_node): Likewise.
16029 (dump_generic_node): Likewise.
16031 2013-08-02 Jan Hubicka <jh@suse.cz>
16033 * lto-cgraph.c (compute_ltrans_boundary): Add abstract origins into
16035 * lto-streamer-out.c (tree_is_indexable): Results decls and
16036 parm decls are not indexable.
16037 (DFS_write_tree_body): Do not follow args and results.
16038 (hash_tree): Likewise.
16039 (output_functions): Rearrange so struct function is needed
16040 only when real body is output; be able to also ouptut abstract
16041 functions; output DECL_ARGUMENTS and DECL_RESULT.
16042 (lto_output): When not in WPA, ale store abstract functions.
16043 (write_symbol): Do not care about RESULT_DECL.
16044 (output_symbol_p): Handle correctly sbtract decls.
16045 * lto-streamer-in.c (input_function): Rearrange so struct
16046 function can be NULL at entry; allow streaming of
16047 functions w/o body; store DECL_ARGUMENTS and DECL_RESULT.
16048 * ipa.c (symtab_remove_unreachable_nodes): Silence confused
16049 sanity check during LTO.
16050 * tree-streamer-out.c (write_ts_decl_non_common_tree_pointers): Skip
16051 RESULT_DECl and DECL_ARGUMENTS.
16052 * tree-streamer-in.c (lto_input_ts_decl_non_common_tree_pointers):
16055 2013-08-03 Gabriel Dos Reis <gdr@integrable-solutions.net>
16057 * pretty-print.h (pp_underscore): New.
16059 * gimple-pretty-print.c (dump_unary_rhs): Use specialized pretty
16060 printer functions instead of pp_character.
16061 (dump_binary_rhs): Likewise.
16062 (dump_ternary_rhs): Likewise.
16063 (dump_gimple_call_args): Likewise.
16064 (pp_points_to_solution): Likewise.
16065 (dump_gimple_call): Likewise.
16066 (dump_gimple_switch): Likewise.
16067 (dump_gimple_cond): Likewise.
16068 (dump_gimple_bind): Likewise.
16069 (dump_gimple_try): Likewise.
16070 (dump_gimple_omp_for): Likewise.
16071 (dump_gimple_omp_continue): Likewise.
16072 (dump_gimple_omp_single): Likewise.
16073 (dump_gimple_omp_sections): Likewise.
16074 (dump_gimple_omp_block): Likewise.
16075 (dump_gimple_omp_critical): Likewise.
16076 (dump_gimple_transaction): Likewise.
16077 (dump_gimple_asm): Likewise.
16078 (dump_gimple_phi): Likewise.
16079 (dump_gimple_omp_parallel): Likewise.
16080 (dump_gimple_omp_task): Likewise.
16081 (dump_gimple_omp_atomic_load): Likewise.
16082 (dump_gimple_omp_atomic_store): Likewise.
16083 (dump_gimple_mem_ops): Likewise.
16084 (pp_gimple_stmt_1): Likewise.
16085 (pp_cfg_jump): Likewise.
16086 (dump_implicit_edges): Likewise.
16087 (gimple_dump_bb_for_graph): Likewise.
16088 * graph.c (draw_cfg_node): Likewise.
16089 * langhooks.c (lhd_print_error_function): Likewise.
16090 * sched-vis.c (print_exp): Likewise.
16091 (print_value): Likewise.
16092 (print_pattern): Likewise.
16093 (print_insn): Likewise.
16094 (rtl_dump_bb_for_graph): Likewise.
16095 * tree-pretty-print.c (dump_function_declaration): Likewise.
16096 (dump_array_domain): Likewise.
16097 (dump_omp_clause): Likewise.
16098 (dump_location): Likewise.
16099 (dump_generic_node): Likewise.
16100 (print_struct_decl): Likewise.
16101 * diagnostic.c (diagnostic_show_locus): Use pp_space.
16103 2013-08-03 Bill Schmidt <wschmidt@vnet.linux.ibm.com>
16105 * gimple-ssa-strength-reduction.c (replace_mult_candidate): Update
16106 candidate table when replacing a candidate statement.
16107 (replace_rhs_if_not_dup): Likewise.
16108 (replace_one_candidate): Likewise.
16110 2013-08-02 Jan Hubicka <jh@suse.cz>
16111 Martin Liska <marxin.liska@gmail.com>
16113 * cgraphunit.c (add_new_function): Fix logic when adding from
16115 (assemble_thunk): Rename to ...
16116 (expand_thunk); .. this one; export; get it working with
16117 general functions; make produced gimple valid.
16118 * cgraph.h (expand_thunk): Declare.
16120 2013-08-02 Jan Hubicka <jh@suse.cz>
16122 * ipa-cp.c (gather_context_independent_values): Use
16123 ipa_get_param_move_cost.
16124 (get_replacement_map): Remove PARAM; move parameter folding
16126 (create_specialized_node): Update.
16127 * ipa-prop.c (ipa_populate_param_decls): Do not look for origins;
16128 assert that we have gimple body; update move_cost.
16129 (count_formal_params): Assert that we have gimple body.
16130 (ipa_dump_param): New function.
16131 (ipa_alloc_node_params): Break out from ...
16132 (ipa_initialize_node_params): ... here.
16133 (ipa_get_vector_of_formal_parms): ICE when used in WPA.
16134 (ipa_write_node_info): Stream move costs.
16135 (ipa_read_node_info): Read move costs.
16136 (ipa_update_after_lto_read): Do not recompute node params.
16137 * ipa-prop.h (ipa_param_descriptor): Add move_cost.
16138 (ipa_get_param): Check we are not in WPA.
16139 (ipa_get_param_move_cost): New.
16140 * tree-inline.c (tree_function_versioning): Fold replacement as needed.
16141 * ipa-inline-analysis.c (inline_node_duplication_hook): Expect only
16142 parm numbers to be present.
16144 2013-08-02 Vladimir Makarov <vmakarov@redhat.com>
16146 PR rtl-optimization/58048
16147 * lra-constraints.c (process_alt_operands): Don't check asm
16148 operand on register.
16150 2013-08-02 Eric Botcazou <ebotcazou@adacore.com>
16152 * config/sparc/sparc.c (sparc_emit_membar_for_model) <SMM_TSO>: Add
16153 the implied StoreLoad barrier for atomic operations if before.
16155 2013-08-02 Jan Hubicka <jh@suse.cz>
16156 Martin Liska <marxin.liska@gmail.com>
16158 * cgraph.c (cgraph_function_body_availability): Do not check
16160 * cgraph.h (symtab_for_node_and_aliases, symtab_nonoverwritable_alias,
16161 symtab_node_availability): Declare.
16162 * ipa.c (can_replace_by_local_alias): New.
16163 (function_and_variable_visibility): Use it.
16164 * symtab.c (symtab_for_node_and_aliases,
16165 symtab_nonoverwritable_alias_1, symtab_nonoverwritable_alias): New.
16167 2013-08-02 Vladimir Makarov <vmakarov@redhat.com>
16169 PR rtl-optimization/57963
16170 * lra-constraints.c (reverse_equiv_p, contains_reloaded_insn_p): New.
16171 (lra_constraints): Use them.
16173 2013-08-02 Sofiane Naci <sofiane.naci@arm.com>
16175 * config/arm/types.md (define_attr "type"): Add "load_acq"
16177 * config/arm/cortex-a53.md (cortex_a53_load1): Update for attribute
16179 (cortex_a53_store1): Likewise.
16181 2013-08-01 Jan Hubicka <jh@suse.cz>
16183 * ipa.c (symtab_remove_unreachable_nodes): Nodes in other
16184 partitions are not needed.
16186 2013-08-01 Uros Bizjak <ubizjak@gmail.com>
16188 * config/i386/i386.h (MAYBE_NON_Q_CLASS_P): New.
16189 * config/i386/i386.c (ix86_secondary_reload): Use INTEGER_CLASS_P and
16190 MAYBE_NON_Q_CLASS_P where appropriate.
16192 2013-08-01 Jan Hubicka <jh@suse.cz>
16194 * cgraph.h (release_function_body): Declare.
16195 * tree.c (free_lang_data_in_decl): Free, parameters and return values
16196 of unused delcarations.
16198 2013-08-01 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
16200 * config/arm/arm.md (minmax_arithsi_non_canon): Emit canonical
16201 RTL form when subtracting a constant.
16203 2013-08-01 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
16205 * config/arm/arm.md (peepholes for eq (reg1) (reg2/imm)):
16206 Generate canonical plus rtx with negated immediate instead of minus
16208 * config/arm/arm.c (thumb2_reorg): Handle ADCS <Rd>, <Rn> case.
16210 2013-08-01 Jan Hubicka <jh@suse.cz>
16212 * cgraph.c (cgraph_release_function_body): Use used_as_abstract_origin.
16213 (cgraph_release_function_body): Likewise.
16214 (cgraph_can_remove_if_no_direct_calls_p): Likewise.
16215 * cgraph.h (cgrpah_node): Rename abstract_and_needed
16216 to used_as_abstract_origin.
16217 * tree-inline-transfrom.c (can_remove_node_now_p_1): Do not remove
16218 symbols used as abstract origins.
16219 * cgraphunit.c (analyze_functions): Update.
16220 * ipa.c (symtab_remove_unreachable_nodes): Recompute
16221 used_as_abstract_origin.
16222 * tree-inline.c (tree_function_versioning): Update
16223 used_as_abstract_origin; be ready for DECL_RESULT and
16224 DECL_ARGUMENTS to be NULL.
16226 * lto-symtab.c (lto_symtab_merge_symbols): Merge duplicated nodes
16227 for abstract functions.
16228 * cgraph.h (symtab_real_symbol_p): Abstract declarations are not
16231 2013-08-01 Jan Hubicka <jh@suse.cz>
16233 * profile.c (compute_value_histograms): Fix thinko.
16235 2013-08-01 Sofiane Naci <sofiane.naci@arm.com>
16237 * config.gcc (aarch64*-*-*): Add aarch-common.o to extra_objs. Add
16238 aarch-common-protos.h to extra_headers.
16239 (aarch64*-*-*): Add arm/aarch-common-protos.h to tm_p_file.
16240 * config/aarch64/aarch64.md: Include "../arm/cortex-a53.md".
16241 * config/aarch64/t-aarch64 (aarch-common.o): Define.
16243 2013-08-01 Sofiane Naci <sofiane.naci@arm.com>
16245 * config/aarch64/aarch64.md (define_attr "type"): Delete.
16246 Include "../arm/types.md". Define "type" attribute for all patterns.
16247 * config/aarch64/aarch64-simd.md (move_lo_quad_<mode>): Update for
16250 2013-07-31 Michael Meissner <meissner@linux.vnet.ibm.com>
16252 * config/rs6000/predicates.md (fusion_gpr_addis): New predicates
16253 to support power8 load fusion.
16254 (fusion_gpr_mem_load): Likewise.
16256 * config/rs6000/rs6000-modes.def (PTImode): Update a comment.
16258 * config/rs6000/rs6000-protos.h (fusion_gpr_load_p): New
16259 declarations for power8 load fusion.
16260 (emit_fusion_gpr_load): Likewise.
16262 * config/rs6000/rs6000.c (rs6000_option_override_internal): If
16263 tuning for power8, turn on fusion mode by default. Turn on sign
16264 extending fusion mode if normal fusion mode is on, and we are at
16266 (fusion_gpr_load_p): New function, return true if we can fuse an
16267 addis instruction with a dependent load to a GPR.
16268 (emit_fusion_gpr_load): Emit the instructions for power8 load
16271 * config/rs6000/vsx.md (VSX_M2): New iterator for fusion peepholes.
16272 (VSX load fusion peepholes): New peepholes to fuse together an
16273 addi instruction with a VSX load instruction.
16275 * config/rs6000/rs6000.md (GPR load fusion peepholes): New
16276 peepholes to fuse an addis instruction with a load to a GPR base
16277 register. If we are supporting sign extending fusions, convert
16278 sign extending loads to zero extending loads and add an explicit
16281 2013-07-31 Sofiane Naci <sofiane.naci@arm.com>
16283 * config.gcc (arm*-*-*): Add aarch-common.o to extra_objs. Add
16284 aarch-common-protos.h to extra_headers.
16285 (arm*-*-*): Add arm/aarch-common-protos.h to tm_p_file.
16286 * config/arm/arm.c (arm_early_load_addr_dep): Move from here to ...
16287 (arm_early_store_addr_dep): Likewise.
16288 (arm_no_early_alu_shift_dep): Likewise.
16289 (arm_no_early_alu_shift_value_dep): Likewise.
16290 (arm_no_early_mul_dep): Likewise.
16291 (arm_no_early_store_addr_dep): Likewise.
16292 (arm_mac_accumulator_is_mul_result): Likewise.
16293 (arm_mac_accumulator_is_result): Likewise.
16294 * config/arm/aarch-common.c: ... here. New file.
16295 * config/arm/arm-protos.h (arm_early_load_addr_dep): Move from
16297 (arm_early_store_addr_dep): Likewise.
16298 (arm_no_early_alu_shift_dep): Likewise.
16299 (arm_no_early_alu_shift_value_dep): Likewise.
16300 (arm_no_early_mul_dep): Likewise.
16301 (arm_no_early_store_addr_dep): Likewise.
16302 (arm_mac_accumulator_is_mul_result): Likewise.
16303 (arm_mac_accumulator_is_result): Likewise.
16304 * config/arm/aarch-common-protos.h: ... here. New file.
16305 * config/arm/t-arm (aarch-common.o): Define.
16307 2013-07-31 Sofiane Naci <sofiane.naci@arm.com>
16309 * config/arm/arm.md: Include new file "types.md".
16310 (define_attr "type"): Move from here to ...
16311 (define_attr "mul32"): Likewise.
16312 (define_attr "mul64"): Likewise.
16313 * config/arm/types.md: ... here. New file.
16315 2013-07-31 Sebastian Huber <sebastian.huber@embedded-brains.de>
16317 * config.gcc (*-*-rtems*): Use __cxa_atexit by default.
16318 * config/rs6000/rtems.h (TARGET_LIBGCC_SDATA_SECTION): Define.
16320 2013-07-31 Jan-Benedict Glaw <jbglaw@lug-owl.de>
16322 * gen-pass-instances.awk: Fix offset of substr().
16324 2013-07-31 David Malcolm <dmalcolm@redhat.com>
16326 * Makefile.in (pass-instances.def): New.
16327 (passes.o): Replace dependency on passes.def with one on
16330 * gen-pass-instances.awk: New.
16332 * passes.c (pass_manager::pass_manager): Use pass-instances.def
16333 rather than passes.def, updating local definition of NEXT_PASS
16334 macro to add an extra NUM parameter (currently unused).
16336 2013-07-30 David Malcolm <dmalcolm@redhat.com>
16338 * Makefile.in (PASS_MANAGER_H): New.
16339 (lto-cgraph.o): Depend on CONTEXT_H and PASS_MANAGER_H.
16340 (passes.o): Likewise.
16341 (statistics.o): Likewise.
16342 (cgraphunit.o): Likewise.
16343 (context.o): Depend on PASS_MANAGER_H.
16345 * pass_manager.h: New.
16347 * cgraphunit.c (cgraph_add_new_function): Update for moves
16348 of globals to fields of pass_manager.
16349 (analyze_function): Likewise.
16350 (expand_function): Likewise.
16351 (ipa_passes): Likewise.
16352 (compile): Likewise.
16354 * context.c (context::context): New.
16355 * context.h (context::context): New.
16356 (context::get_passes): New.
16357 (context::passes_): New.
16359 * lto-cgraph.c (input_node): Update for moves of globals to
16360 fields of pass_manager.
16362 * passes.c (all_passes): Remove, in favor of a field of the
16363 same name within the new class pass_manager.
16364 (all_small_ipa_passes): Likewise.
16365 (all_lowering_passes): Likewise.
16366 (all_regular_ipa_passes): Likewise.
16367 (all_late_ipa_passes): Likewise.
16368 (all_lto_gen_passes): Likewise.
16369 (passes_by_id): Likewise.
16370 (passes_by_id_size): Likewise.
16371 (gcc_pass_lists): Remove, in favor of "pass_lists" field within
16372 the new class pass_manager.
16373 (set_pass_for_id): Convert to...
16374 (pass_manager::set_pass_for_id): ...method.
16375 (get_pass_for_id): Convert to...
16376 (pass_manager::get_pass_for_id): ...method.
16377 (register_one_dump_file): Move body of implementation into...
16378 (pass_manager::register_one_dump_file): ...here.
16379 (register_dump_files_1): Convert to...
16380 (pass_manager::register_dump_files_1): ...method.
16381 (register_dump_files): Convert to...
16382 (pass_manager::register_dump_files): ...method.
16383 (create_pass_tab): Update for moves of globals to fields of
16385 (dump_passes): Move body of implementation into...
16386 (pass_manager::dump_passes): ...here.
16387 (register_pass): Move body of implementation into...
16388 (pass_manager::register_pass): ...here.
16389 (init_optimization_passes): Convert into...
16390 (pass_manager::pass_manager): ...constructor for new
16391 pass_manager class, and initialize the pass_lists array.
16392 (check_profile_consistency): Update for moves of globals to
16393 fields of pass_manager.
16394 (dump_profile_report): Move body of implementation into...
16395 (pass_manager::dump_profile_report): ...here.
16396 (ipa_write_summaries_1): Update for moves of pass lists from
16397 being globals to fields of pass_manager.
16398 (ipa_write_optimization_summaries): Likewise.
16399 (ipa_read_summaries): Likewise.
16400 (ipa_read_optimization_summaries): Likewise.
16401 (execute_all_ipa_stmt_fixups): Likewise.
16403 * statistics.c (statistics_fini): Update for moves of globals to
16404 fields of pass_manager.
16406 * toplev.c (general_init): Replace call to
16407 init_optimization_passes with construction of the pass_manager
16410 * tree-pass.h (all_passes): Remove, in favor of a field of the
16411 same name within the new class pass_manager.
16412 (all_small_ipa_passes): Likewise.
16413 (all_lowering_passes): Likewise.
16414 (all_regular_ipa_passes): Likewise.
16415 (all_lto_gen_passes): Likewise.
16416 (all_late_ipa_passes): Likewise.
16417 (passes_by_id): Likewise.
16418 (passes_by_id_size): Likewise.
16419 (gcc_pass_lists): Remove, in favor of "pass_lists" field within
16420 the new class pass_manager.
16421 (get_pass_for_id): Remove.
16423 2013-07-30 Richard Earnshaw <rearnsha@arm.com>
16425 * config.gcc (arm): Require 64-bit host-wide-int for all ARM target
16428 2013-07-30 Richard Earnshaw <rearnsha@arm.com>
16430 * arm.md (mulhi3): New expand pattern.
16432 2013-07-30 Jan Hubicka <jh@suse.cz>
16433 Martin Liska <marxin.liska@gmail.com>
16435 * profile.c (compute_value_histograms): Do not ICE when
16436 there is mismatch only on some counters.
16438 2013-07-30 Zhenqiang Chen <zhenqiang.chen@linaro.org>
16440 PR rtl-optimization/57637
16441 * function.c (move_insn_for_shrink_wrap): Also check the
16442 GEN set of the LIVE problem for the liveness analysis
16443 if it exists, otherwise give up.
16445 2013-07-29 Bill Schmidt <wschmidt@vnet.linux.ibm.com>
16447 PR tree-optimization/57993
16448 * gimple-ssa-strength-reduction.c (replace_mult_candidate): Record
16449 replaced statement in the candidate table.
16450 (phi_add_costs): Return infinite cost when the hidden basis does
16451 not dominate all phis on which the candidate is dependent.
16452 (replace_one_candidate): Record replaced statement in the
16455 2013-07-29 Joern Rennecke <joern.rennecke@embecosm.com>
16457 * config/epiphany/epiphany.md (*isub_i+2): New peephole.
16458 (ashlv2si3): New expander.
16459 (*ashlv2si3_i): New define_insn_and_split.
16460 * predicates.md (float_operation): Allow patterns with three
16461 basic sub-patterns.
16463 PR rtl-optimization/58021
16464 * mode-switching.c (create_pre_exit): Always split off preceding
16465 insns if we are not at the basic block head.
16467 2013-07-29 Maciej W. Rozycki <macro@codesourcery.com>
16469 * config/mips/linux.h (GLIBC_DYNAMIC_LINKER): Handle `-mnan=2008'.
16470 (UCLIBC_DYNAMIC_LINKER): New macro.
16471 * config/mips/linux64.h (GLIBC_DYNAMIC_LINKER32): Handle
16473 (GLIBC_DYNAMIC_LINKER64, GLIBC_DYNAMIC_LINKERN32): Likewise.
16474 (UCLIBC_DYNAMIC_LINKER32): Undefine macro first. Handle
16476 (UCLIBC_DYNAMIC_LINKER64): Redefine macro.
16477 (UCLIBC_DYNAMIC_LINKERN32): Likewise.
16478 * config/mips/mips-modes.def: Remove RESET_FLOAT_FORMAT calls
16479 for SF and DF modes. Use ieee_quad_format for TF mode.
16480 * config/mips/mips-opts.h (mips_ieee_754_setting): New enum.
16481 * config/mips/mips.c (mips_file_start): Output a `.nan' directive.
16482 (mips_option_override): Handle `-mnan=legacy'.
16483 * config/mips/mips.h (TARGET_CPU_CPP_BUILTINS): Handle
16484 `-mabs=2008' and `-mnan=2008'.
16485 (OPTION_DEFAULT_SPECS): Add "nan" default.
16486 (ASM_SPEC): Handle `-mnan='.
16487 [!HAVE_AS_NAN] (HAVE_AS_NAN): New macro.
16488 * config/mips/mips.md (abs<mode>2): Handle `-mabs=2008', update
16489 comment accordingly.
16490 (neg<mode>2): Likewise.
16491 * config/mips/mips.opt (mabs, mnan): New options.
16492 * doc/install.texi (Configuration): Document `--with-nan=' option.
16493 * doc/invoke.texi (Option Summary): List MIPS `-mabs=' and
16495 (MIPS Options): Document them.
16496 * config.gcc <mips*-*-*>: Handle `--with-nan='.
16497 * configure.ac <mips*-*-*>: Check for GAS `-mnan=2008' support.
16498 * configure: Regenerate.
16499 * config.in: Regenerate.
16501 2013-07-29 Uros Bizjak <ubizjak@gmail.com>
16503 * config/i386/i386.md (float post-reload splitters): Do not check
16504 for subregs of SSE registers.
16506 2013-07-29 Uros Bizjak <ubizjak@gmail.com>
16507 H.J. Lu <hongjiu.lu@intel.com>
16511 * config/i386/i386.md (post-reload splitter
16512 to avoid partial SSE reg dependency stalls): New pattern.
16514 2013-07-29 Dominik Vogt <vogt@linux.vnet.ibm.com>
16516 * config/s390/s390.md ("movcc"): Swap load and store instructions.
16518 2013-07-27 Joern Rennecke <joern.rennecke@embecosm.com>
16520 * config/epiphany/epiphany.c (epiphany_compute_frame_size):
16521 Also reserve space for saving UNKNOWN_REGNUM for leaf functions.
16523 2013-07-26 Cary Coutant <ccoutant@google.com>
16525 * dwarf2out.c (die_checksum_ordered): Don't include template
16526 instantiations in signature.
16527 (is_template_parameter): New function.
16528 (is_template_instantiation): New function.
16529 (generate_skeleton_bottom_up): Don't include template instantiations
16531 (generate_skeleton): Likewise.
16532 (break_out_comdat_types): Move recursive call to break out nested
16534 (prune_unused_types_mark_generic_parms_dies): Call
16535 is_template_parameter.
16537 2013-07-26 Ian Bolton <ian.bolton@arm.com>
16539 * config/aarch64/aarch64.md (neg<mode>2): Offer alternative that
16540 uses vector registers.
16541 * config/aarch64/iterators.md: Add attributes rtn and vas.
16543 2013-07-26 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
16544 Richard Earnshaw <richard.earnshaw@arm.com>
16546 * combine.c (simplify_comparison): Re-canonicalize operands
16548 * config/arm/arm.md (movcond_addsi): New splitter.
16550 2013-07-25 Sterling Augustine <saugustine@google.com>
16552 * dwarf2out.c (size_of_pubnames): Move code to...
16553 (include_pubname_in_output): ...here. New.
16554 (want_pubnames): Rearrange.
16555 (output_pubnames): Call include_pubname_in_output. Move assertion.
16557 2013-07-25 Cameron McInally <cameron.mcinally@nyu.edu>
16559 * doc/extend.texi: Fix return types for __builtin_ia32_cmp*s builtins.
16561 2013-07-25 Cameron McInally <cameron.mcinally@nyu.edu>
16564 * doc/extend.texi: Remove obsolete builtins. Fix
16565 typo for __builtin_ia32_loadss and __builtin_ia32_cmpnltss.
16567 2013-07-25 Jan Hubicka <jh@suse.cz>
16569 * cgraph.c (release_function_body): Break out from ...
16570 (cgraph_release_function_body): ... this one; also release DECL_RESULT
16571 and DECL_ARGUMENTS.
16572 * ipa-cp.c (get_replacement_map): Add parm_num argument; do not set
16573 old_tree in the map.
16574 (create_specialized_node): Update.
16575 * lto-cgraph.c (output_node_opt_summary): Do not translate old_tree
16577 * cgraphclones.c (cgraph_create_virtual_clone): Do not copy
16578 DECL_ARGUMENTS, DECL_INITIAL and DECL_RESULT.
16579 * ipa-prop.c (ipa_populate_param_decls): Look for origin of clones.
16580 * tree-inline.c (initialize_cfun): Initialize DECL_ARGUMENTS and
16583 2013-07-25 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
16585 * config/arm/arm.md (arm_addsi3, addsi3_carryin_<optab>,
16586 addsi3_carryin_alt2_<optab>): Correct output template.
16588 2013-07-25 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
16590 * config/arm/arm-fixed.md (ssmulsa3, usmulusa3):
16591 Adjust for arm_restrict_it.
16592 Remove trailing whitespace.
16594 2013-07-25  Mark Kettenis  <kettenis@openbsd.org>
16596 * config/pa/pa.c (pa_trampoline_init): Emit __enable_execute_stack
16597 libcall if HAVE_ENABLE_EXECUTE_STACK is defined.
16599 * config.gcc (hppa-*-openbsd*): Don't set tmake_file.
16601 2013-07-25 Vladimir Makarov <vmakarov@redhat.com>
16603 PR rtl-optimization/57960
16604 * lra-constraints.c (process_alt_operands): Use the right mode
16605 when checking strict_low.
16607 2013-07-25 Jan Hubicka <jh@suse.cz>
16609 * lto-symtab.c (lto_cgraph_replace_node): Release function body.
16610 * cgraph.c (cgraph_remove_node): Do not release function body
16611 when in cgraph streaming.
16612 * ipa.c (process_references, symtab_remove_unreachable_nodes): Objects
16613 in other partitions are not considered reachable; fix handling of
16616 2013-07-25 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
16618 * config/arm/arm.md (*sibcall_insn): Remove unnecessary space.
16620 2013-07-25 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
16625 * config/arm/arm.md ("*sibcall_insn): Replace use of
16626 Ss with US. Adjust output for v5 and v4t.
16627 (*sibcall_value_insn): Likewise and loosen predicate on operand0.
16629 * config/arm/constraints.md ("Ss"): Rename to US.
16631 2013-07-25 Terry Guo <terry.guo@arm.com>
16633 * config/arm/arm.c (thumb1_size_rtx_costs): Assign proper cost for
16634 shift_add/shift_sub0/shift_sub1 RTXs.
16636 2013-07-24 Bill Schmidt <wschmidt@linux.ibm.com>
16637 Anton Blanchard <anton@au1.ibm.com>
16639 * config/rs6000/altivec.md (altivec_vpkpx): Handle little endian.
16640 (altivec_vpks<VI_char>ss): Likewise.
16641 (altivec_vpks<VI_char>us): Likewise.
16642 (altivec_vpku<VI_char>us): Likewise.
16643 (altivec_vpku<VI_char>um): Likewise.
16645 2013-07-24 David Malcolm <dmalcolm@redhat.com>
16647 Introduce context class.
16649 * Makefile.in (CONTEXT_H): New.
16650 (OBJS): Add context.o.
16651 (toplev.o): Add CONTEXT_H to dependencies.
16654 * toplev.c (general_init): Create the singleton gcc::context instance.
16660 2013-07-24 Joern Rennecke <joern.rennecke@embecosm.com>
16662 PR rtl-optimization/57968
16663 * mode-switching.c (create_pre_exit): Allow instructions that
16664 don't set a return register to need a non-exit mode.
16666 2013-07-24 Bill Schmidt <wschmidt@vnet.linux.ibm.com>
16667 Anton Blanchard <anton@au1.ibm.com>
16669 * config/rs6000/vector.md (vec_realign_load_<mode>): Reorder input
16670 operands to vperm for little endian.
16671 * config/rs6000/rs6000.c (rs6000_expand_builtin): Use lvsr instead
16672 of lvsl to create the control mask for a vperm for little endian.
16674 2013-07-23 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
16675 Anton Blanchard <anton@au1.ibm.com>
16677 * config/rs6000/rs6000.c (altivec_expand_vec_perm_const): Reverse
16678 two operands for little-endian.
16680 2013-07-23 Steve Ellcey <sellcey@mips.com>
16682 * config/mips/mips.c (mips_case_values_threshold): New.
16683 (TARGET_CASE_VALUES_THRESHOLD): Define.
16685 2013-07-23 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
16686 Anton Blanchard <anton@au1.ibm.com>
16688 * config/rs6000/rs6000.c (altivec_expand_vec_perm_const): Correct
16689 selection of field for vector splat in little endian mode.
16691 2013-07-23 Michael Meissner <meissner@linux.vnet.ibm.com>
16693 * config/rs6000/vector.md (xor<mode>3): Move 128-bit boolean
16694 expanders to rs6000.md.
16695 (ior<mode>3): Likewise.
16696 (and<mode>3): Likewise.
16697 (one_cmpl<mode>2): Likewise.
16698 (nor<mode>3): Likewise.
16699 (andc<mode>3): Likewise.
16700 (eqv<mode>3): Likewise.
16701 (nand<mode>3): Likewise.
16702 (orc<mode>3): Likewise.
16704 * config/rs6000/rs6000-protos.h (rs6000_split_logical): New
16707 * config/rs6000/rs6000.c (rs6000_split_logical_inner): Add support
16708 to split multi-word logical operations.
16709 (rs6000_split_logical_di): Likewise.
16710 (rs6000_split_logical): Likewise.
16712 * config/rs6000/vsx.md (VSX_L2): Delete, no longer used.
16713 (vsx_and<mode>3_32bit): Move 128-bit logical insns to rs6000.md,
16714 and allow TImode operations in 32-bit.
16715 (vsx_and<mode>3_64bit): Likewise.
16716 (vsx_ior<mode>3_32bit): Likewise.
16717 (vsx_ior<mode>3_64bit): Likewise.
16718 (vsx_xor<mode>3_32bit): Likewise.
16719 (vsx_xor<mode>3_64bit): Likewise.
16720 (vsx_one_cmpl<mode>2_32bit): Likewise.
16721 (vsx_one_cmpl<mode>2_64bit): Likewise.
16722 (vsx_nor<mode>3_32bit): Likewise.
16723 (vsx_nor<mode>3_64bit): Likewise.
16724 (vsx_andc<mode>3_32bit): Likewise.
16725 (vsx_andc<mode>3_64bit): Likewise.
16726 (vsx_eqv<mode>3_32bit): Likewise.
16727 (vsx_eqv<mode>3_64bit): Likewise.
16728 (vsx_nand<mode>3_32bit): Likewise.
16729 (vsx_nand<mode>3_64bit): Likewise.
16730 (vsx_orc<mode>3_32bit): Likewise.
16731 (vsx_orc<mode>3_64bit): Likewise.
16733 * config/rs6000/rs6000.h (VLOGICAL_REGNO_P): Always allow vector
16734 logical types in GPRs.
16736 * config/rs6000/altivec.md (altivec_and<mode>3): Move 128-bit
16737 logical insns to rs6000.md, and allow TImode operations in
16739 (altivec_ior<mode>3): Likewise.
16740 (altivec_xor<mode>3): Likewise.
16741 (altivec_one_cmpl<mode>2): Likewise.
16742 (altivec_nor<mode>3): Likewise.
16743 (altivec_andc<mode>3): Likewise.
16745 * config/rs6000/rs6000.md (BOOL_128): New mode iterators and mode
16746 attributes for moving the 128-bit logical operations into
16748 (BOOL_REGS_OUTPUT): Likewise.
16749 (BOOL_REGS_OP1): Likewise.
16750 (BOOL_REGS_OP2): Likewise.
16751 (BOOL_REGS_UNARY): Likewise.
16752 (BOOL_REGS_AND_CR0): Likewise.
16753 (one_cmpl<mode>2): Add support for DI logical operations on
16754 32-bit, splitting the operations to 32-bit.
16755 (anddi3): Likewise.
16756 (iordi3): Likewise.
16757 (xordi3): Likewise.
16758 (and<mode>3, 128-bit types): Rewrite 2013-06-06 logical operator
16759 changes to combine the 32/64-bit code, allow logical operations on
16760 TI mode in 32-bit, and to use similar match_operator patterns like
16761 scalar mode uses. Combine the Altivec and VSX code for logical
16762 operations, and move it here.
16763 (ior<mode>3, 128-bit types): Likewise.
16764 (xor<mode>3, 128-bit types): Likewise.
16765 (one_cmpl<mode>3, 128-bit types): Likewise.
16766 (nor<mode>3, 128-bit types): Likewise.
16767 (andc<mode>3, 128-bit types): Likewise.
16768 (eqv<mode>3, 128-bit types): Likewise.
16769 (nand<mode>3, 128-bit types): Likewise.
16770 (orc<mode>3, 128-bit types): Likewise.
16771 (and<mode>3_internal): Likewise.
16772 (bool<mode>3_internal): Likewise.
16773 (boolc<mode>3_internal1): Likewise.
16774 (boolc<mode>3_internal2): Likewise.
16775 (boolcc<mode>3_internal1): Likewise.
16776 (boolcc<mode>3_internal2): Likewise.
16777 (eqv<mode>3_internal1): Likewise.
16778 (eqv<mode>3_internal2): Likewise.
16779 (one_cmpl1<mode>3_internal): Likewise.
16781 2013-07-23 David Holsgrove <david.holsgrove@xilinx.com>
16783 * config/microblaze/microblaze.c (microblaze_expand_prologue):
16784 Rename flag_stack_usage to flag_stack_usage_info.
16786 2013-07-23 David Holsgrove <david.holsgrove@xilinx.com>
16788 * config/microblaze/sync.md: New file.
16789 * config/microblaze/microblaze.md: Include sync.md
16790 * config/microblaze/microblaze.c: Add print_operand 'y'.
16791 * config/microblaze/constraints.md: Add memory_contraint
16792 'Q' which is a single register.
16794 2013-07-23 Eric Botcazou <ebotcazou@adacore.com>
16796 * doc/invoke.texi (SPARC Options): Document new leon3 processor value.
16798 2013-07-22 Po-Chun Chang <pchang9@cs.wisc.edu>
16800 * reload.c (find_reloads): Exit loop once we find this operand
16801 cannot be reloaded somehow for this alternative.
16803 * reload.c (find_reloads): Exit loop once we find a hard register.
16805 * rtlanal.c (computed_jump_p): Exit loop once we find label
16808 * i386.c (ix86_pad_returns): Exit loop after setting replace.
16810 * cfgloopmanip.c (remove_path): Exit loop after setting
16813 * gensupport.c (subst_dup): Avoid loop if code is not
16814 MATCH_DUP nor MATCH_OP_DUP.
16816 2013-07-23 Nicklas Bo Jensen <nbjensen@gmail.com>
16818 * doc/md.texi (Machine-Specific Peephole Optimizers): Fix a typo.
16820 2013-07-23 Yufeng Zhang <yufeng.zhang@arm.com>
16822 * config/aarch64/aarch64.c (aarch64_hard_regno_mode_ok): Also return
16823 true for SP_REGNUM if mode == ptr_mode.
16824 * config/aarch64/aarch64.h (ADDITIONAL_REGISTER_NAMES): Add "wsp"
16825 with value R0_REGNUM + 31.
16827 2013-07-23 Yufeng Zhang <yufeng.zhang@arm.com>
16829 * config/aarch64/aarch64.c (aarch64_pad_arg_upward): In big-endian,
16830 pad pointer-typed argument downward.
16832 2013-07-23 Yufeng Zhang <yufeng.zhang@arm.com>
16834 * config/aarch64/aarch64.h (TARGET_CPU_CPP_BUILTINS): Define _ILP32
16835 and __ILP32__ when the ILP32 model is in use.
16837 2013-07-23 Yufeng Zhang <yufeng.zhang@arm.com>
16839 * config/aarch64/aarch64.c (POINTER_BYTES): New define.
16840 (aarch64_load_symref_appropriately): In the case of
16841 SYMBOL_SMALL_ABSOLUTE, use the mode of 'dest' instead of Pmode
16842 to generate new rtx; likewise to the case of SYMBOL_SMALL_GOT.
16843 (aarch64_expand_mov_immediate): In the case of SYMBOL_FORCE_TO_MEM,
16844 change to pass 'ptr_mode' to force_const_mem and zero-extend 'mem'
16845 if 'mode' doesn't equal to 'ptr_mode'.
16846 (aarch64_output_mi_thunk): Add an assertion on the alignment of
16847 'vcall_offset'; change to call aarch64_emit_move differently depending
16848 on whether 'Pmode' equals to 'ptr_mode' or not; use 'POINTER_BYTES'
16849 to calculate the upper bound of 'vcall_offset'.
16850 (aarch64_cannot_force_const_mem): Change to also return true if
16852 (aarch64_legitimize_reload_address): In the case of large
16853 displacements, add new local variable 'xmode' and an assertion
16854 based on it; change to use 'xmode' to generate the new rtx and
16856 (aarch64_asm_trampoline_template): Change to generate the template
16857 differently depending on TARGET_ILP32 or not; change to use
16858 'POINTER_BYTES' in the argument passed to assemble_aligned_integer.
16859 (aarch64_trampoline_size): Removed.
16860 (aarch64_trampoline_init): Add new local constant 'tramp_code_sz'
16861 and replace immediate literals with it. Change to use 'ptr_mode'
16862 instead of 'DImode' and call convert_memory_address if the mode
16863 of 'fnaddr' doesn't equal to 'ptr_mode'.
16864 (aarch64_elf_asm_constructor): Change to use assemble_aligned_integer
16866 (aarch64_elf_asm_destructor): Likewise.
16867 * config/aarch64/aarch64.h (TRAMPOLINE_SIZE): Change to be dependent
16868 on TARGET_ILP32 instead of aarch64_trampoline_size.
16869 * config/aarch64/aarch64.md (movsi_aarch64): Add new alternatives
16870 of 'mov' between WSP and W registers as well as 'adr' and 'adrp'.
16871 (loadwb_pair<GPI:mode>_<PTR:mode>): Rename to ...
16872 (loadwb_pair<GPI:mode>_<P:mode>): ... this. Replace PTR with P.
16873 (storewb_pair<GPI:mode>_<PTR:mode>): Likewise; rename to ...
16874 (storewb_pair<GPI:mode>_<P:mode>): ... this.
16875 (add_losym): Change to 'define_expand' and call gen_add_losym_<mode>
16876 depending on the value of 'mode'.
16877 (add_losym_<mode>): New.
16878 (ldr_got_small_<mode>): New, based on ldr_got_small.
16879 (ldr_got_small): Remove.
16880 (ldr_got_small_sidi): New.
16881 * config/aarch64/iterators.md (P): New.
16882 (PTR): Change to 'ptr_mode' in the condition.
16884 2013-07-23 Yufeng Zhang <yufeng.zhang@arm.com>
16886 * config.gcc (aarch64*-*-*): Support --with-abi.
16887 (aarch64*-*-elf): Support --with-multilib-list.
16888 (aarch64*-*-linux*): Likewise.
16889 (supported_defaults): Add abi to aarch64*-*-*.
16890 * configure.ac: Mention AArch64 for --with-multilib-list.
16891 * configure: Re-generated.
16892 * config/aarch64/biarchilp32.h: New file.
16893 * config/aarch64/biarchlp64.h: New file.
16894 * config/aarch64/aarch64-elf.h (ENDIAN_SPEC): New define.
16896 (MULTILIB_DEFAULTS): Ditto.
16897 (DRIVER_SELF_SPECS): Ditto.
16898 (ASM_SPEC): Update to also substitute -mabi.
16899 * config/aarch64/aarch64-elf-raw.h (LINK_SPEC): Add linker script
16900 file whose name depends on -mabi= and -mbig-endian.
16901 * config/aarch64/aarch64.h (LONG_TYPE_SIZE): Change to depend on
16903 (POINTER_SIZE): New define.
16904 (POINTERS_EXTEND_UNSIGNED): Ditto.
16905 (enum aarch64_abi_type): New enumeration tag.
16906 (AARCH64_ABI_LP64, AARCH64_ABI_ILP32): New enumerators.
16907 (AARCH64_ABI_DEFAULT): Define to AARCH64_ABI_LP64 if undefined.
16908 (TARGET_ILP32): New define.
16909 * config/aarch64/aarch64.opt (mabi): New.
16910 (aarch64_abi): New.
16911 (ilp32, lp64): New values for -mabi.
16912 * config/aarch64/t-aarch64 (comma): New define.
16913 (MULTILIB_OPTIONS): Ditto.
16914 (MULTILIB_DIRNAMES): Ditto.
16915 * config/aarch64/t-aarch64-linux (MULTIARCH_DIRNAME): New define.
16916 * doc/invoke.texi: Document -mabi for AArch64.
16918 2013-07-23 Georg-Johann Lay <avr@gjlay.de>
16920 * config/avr/avr.md: Explain asm print modifier 'r' for REG.
16922 2013-07-22 Bill Schmidt <wschmidt@vnet.linux.ibm.com>
16923 Anton Blanchard <anton@au1.ibm.com>
16925 * config/rs6000/rs6000.c (rs6000_expand_vector_init): Fix
16926 endianness when selecting field to splat.
16928 2013-07-22 Eric Christopher <echristo@gmail.com>
16930 * dwarf2out.c (die_odr_checksum): New function to use
16931 CHECKSUM_ macros and ULEB128 for DIE tag.
16932 (generate_type_signature): Use.
16934 2013-07-22 Eric Botcazou <ebotcazou@adacore.com>
16936 * config.gcc (sparc*-*-*): Accept leon3 processor.
16937 (sparc-leon*-*): Merge with sparc*-*-* and add leon3 support.
16938 * doc/invoke.texi (SPARC Options): Adjust -mfix-ut699 entry.
16939 * config/sparc/sparc-opts.h (enum processor_type): Add PROCESSOR_LEON3.
16940 * config/sparc/sparc.opt (enum processor_type): Add leon3.
16941 (mfix-ut699): Adjust comment.
16942 * config/sparc/sparc.h (TARGET_CPU_leon3): New define.
16943 (CPP_CPU32_DEFAULT_SPEC): Add leon3 support.
16944 (CPP_CPU_SPEC): Likewise.
16945 (ASM_CPU_SPEC): Likewise.
16946 * config/sparc/sparc.c (leon3_cost): New constant.
16947 (sparc_option_override): Add leon3 support.
16948 (mem_ref): New function.
16949 (sparc_gate_work_around_errata): Return true if -mfix-ut699 is enabled.
16950 (sparc_do_work_around_errata): Look into the instruction in the delay
16951 slot and adjust accordingly. Add fix for the data cache nullify issues
16952 of the UT699. Change insertion position for the NOP.
16953 * config/sparc/leon.md (leon_fpalu, leon_fpmds, write_buf): Delete.
16954 (leon3_load): New reservation.
16955 (leon_store): Bump latency to 2.
16956 (grfpu): New automaton.
16957 (grfpu_alu): New unit.
16958 (grfpu_ds): Likewise.
16959 (leon_fp_alu): Adjust.
16960 (leon_fp_mult): Delete.
16961 (leon_fp_div): Split into leon_fp_divs and leon_fp_divd.
16962 (leon_fp_sqrt): Split into leon_fp_sqrts and leon_fp_sqrtd.
16963 * config/sparc/sparc.md (cpu): Add leon3.
16964 * config/sparc/sync.md (atomic_exchangesi): Disable if -mfix-ut699.
16965 (swapsi): Likewise.
16966 (atomic_test_and_set): Likewise.
16967 (ldstub): Likewise.
16969 2013-07-22 Jürgen Urban <JuergenUrban@gmx.de>
16971 * config.gcc (mips*-*-*): Add --with-fpu support. Make single the
16972 default for R5900 targets.
16973 * config/mips/mips.h (OPTION_DEFAULT_SPECS): Handle --with-fpu.
16974 (ISA_HAS_LDC1_SDC1): Set to false for TARGET_MIPS5900.
16975 * config/mips/mips.c (mips_option_override): Report an error for
16976 -march=r5900 -mhard-float -mdouble-float. Use spu_single_format
16977 for -march=r5900 -mhard-float.
16979 2013-07-22 Po-Chun Chang <pchang9@cs.wisc.edu>
16981 * df-problems.c (can_move_insns_across): Exit loop once we
16982 find a non-fixed, non-global register.
16984 * ipa-pure-const.c (propagate_nothrow): Exit loop after
16987 * omega.c (omega_eliminate_red): Break after setting red_found.
16988 (omega_problem_has_red_equations): Similarly after setting found.
16989 (omega_query_variable): Similarly after setting coupled.
16991 2013-07-22 Marek Polacek <polacek@redhat.com>
16993 * gimplify.c: Don't include gimple.h twice.
16995 2013-07-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
16997 * config/arm/constraints.md (Pd): Allow TARGET_THUMB
16998 instead of TARGET_THUMB1.
16999 (Pz): New constraint.
17000 * config/arm/arm.md (arm_addsi3): Add alternatives for 16-bit
17002 (compare_negsi_si): Likewise.
17003 (compare_addsi2_op0): Likewise.
17004 (compare_addsi2_op1): Likewise.
17005 (addsi3_carryin_<optab>): Likewise.
17006 (addsi3_carryin_alt2_<optab>): Likewise.
17007 (addsi3_carryin_shift_<optab>): Disable cond_exec variant
17008 for arm_restrict_it.
17009 (subsi3_carryin): Likewise.
17010 (arm_subsi3_insn): Add alternatives for 16-bit encoding.
17011 (minmax_arithsi): Disable for arm_restrict_it.
17012 (minmax_arithsi_non_canon): Adjust for arm_restrict_it.
17013 (satsi_<SAT:code>): Disable cond_exec variant for arm_restrict_it.
17014 (satsi_<SAT:code>_shift): Likewise.
17015 (arm_shiftsi3): Add alternative for 16-bit encoding.
17016 (arm32_movhf): Disable for arm_restrict_it.
17017 (arm_cmpdi_unsigned): Add alternatives for 16-bit encoding.
17018 (arm_movtas_ze): Disable cond_exec variant for arm_restrict_it.
17020 2013-07-22 Sofiane Naci <sofiane.naci@arm.com>
17022 * config/arm/arm.md (attribute "insn"): Delete.
17023 (attribute "type"): Add "mov_imm", "mov_reg", "mov_shift",
17024 "mov_shift_reg", "mvn_imm", "mvn_reg", "mvn_shift" and "mvn_shift_reg".
17025 (not_shiftsi): Update for attribute change.
17026 (not_shiftsi_compare0): Likewise.
17027 (not_shiftsi_compare0_scratch): Likewise.
17028 (arm_one_cmplsi2): Likewise.
17029 (thumb1_one_cmplsi2): Likewise.
17030 (notsi_compare0): Likewise.
17031 (notsi_compare0_scratch): Likewise.
17032 (thumb1_movdi_insn): Likewise.
17033 (arm_movsi_insn): Likewise.
17034 (movhi_insn_arch4): Likewise.
17035 (movhi_bytes): Likewise.
17036 (arm_movqi_insn): Likewise.
17037 (thumb1_movqi_insn): Likewise.
17038 (arm32_movhf): Likewise.
17039 (thumb1_movhf): Likewise.
17040 (arm_movsf_soft_insn): Likewise.
17041 (thumb1_movsf_insn): Likewise.
17042 (thumb_movdf_insn): Likewise.
17043 (movsicc_insn): Likewise.
17044 (movsfcc_soft_insn): Likewise.
17045 (and_scc): Likewise.
17046 (cond_move): Likewise.
17047 (if_move_not): Likewise.
17048 (if_not_move): Likewise.
17049 (if_shift_move): Likewise.
17050 (if_move_shift): Likewise.
17051 (if_shift_shift): Likewise.
17052 (if_not_arith): Likewise.
17053 (if_arith_not): Likewise.
17054 (cond_move_not): Likewise.
17055 * config/arm/neon.md (neon_mov<mode>): Update for attribute change.
17056 (neon_mov<mode>): Likewise.
17057 * config/arm/vfp.md (arm_movsi_vfp): Update for attribute change.
17058 (thumb2_movsi_vfp): Likewise.
17059 (movsf_vfp): Likewise.
17060 (thumb2_movsf_vfp): Likewise.
17061 * config/arm/arm.c (xscale_sched_adjust_cost): Update for attribute
17063 (cortexa7_older_only): Likewise.
17064 (cortexa7_younger): Likewise.
17065 * config/arm/arm1020e.md (1020alu_op): Update for attribute change.
17066 (1020alu_shift_op): Likewise.
17067 (1020alu_shift_reg_op): Likewise.
17068 * config/arm/arm1026ejs.md (alu_op): Update for attribute change.
17069 (alu_shift_op): Likewise.
17070 (alu_shift_reg_op): Likewise.
17071 * config/arm/arm1136jfs.md (11_alu_op): Update for attribute change.
17072 (11_alu_shift_op): Likewise.
17073 (11_alu_shift_reg_op): Likewise.
17074 * config/arm/arm926ejs.md (9_alu_op): Update for attribute change.
17075 (9_alu_shift_reg_op): Likewise.
17076 * config/arm/cortex-a15.md (cortex_a15_alu): Update for attribute
17078 (cortex_a15_alu_shift): Likewise.
17079 (cortex_a15_alu_shift_reg): Likewise.
17080 * config/arm/cortex-a5.md (cortex_a5_alu): Update for attribute change.
17081 (cortex_a5_alu_shift): Likewise.
17082 * config/arm/cortex-a53.md (cortex_a53_alu): Update for attribute
17084 (cortex_a53_alu_shift): Likewise.
17085 * config/arm/cortex-a7.md (cortex_a7_alu_imm): Update for attribute
17087 (cortex_a7_alu_reg): Likewise.
17088 (cortex_a7_alu_shift): Likewise.
17089 * config/arm/cortex-a8.md (cortex_a8_alu): Update for attribute change.
17090 (cortex_a8_alu_shift): Likewise.
17091 (cortex_a8_alu_shift_reg): Likewise.
17092 (cortex_a8_mov): Likewise.
17093 * config/arm/cortex-a9.md (cortex_a9_dp): Update for attribute change.
17094 (cortex_a9_dp_shift): Likewise.
17095 * config/arm/cortex-m4.md (cortex_m4_alu): Update for attribute change.
17096 * config/arm/cortex-r4.md (cortex_r4_alu): Update for attribute change.
17097 (cortex_r4_mov): Likewise.
17098 (cortex_r4_alu_shift): Likewise.
17099 (cortex_r4_alu_shift_reg): Likewise.
17100 * config/arm/fa526.md (526_alu_op): Update for attribute change.
17101 (526_alu_shift_op): Likewise.
17102 * config/arm/fa606te.md (606te_alu_op): Update for attribute change.
17103 * config/arm/fa626te.md (626te_alu_op): Update for attribute change.
17104 (626te_alu_shift_op): Likewise.
17105 * config/arm/fa726te.md (726te_shift_op): Update for attribute change.
17106 (726te_alu_op): Likewise.
17107 (726te_alu_shift_op): Likewise.
17108 (726te_alu_shift_reg_op): Likewise.
17109 * config/arm/fmp626.md (mp626_alu_op): Update for attribute change.
17110 (mp626_alu_shift_op): Likewise.
17111 * config/arm/marvell-pj4.md (pj4_alu_e1): Update for attribute change.
17112 (pj4_alu_e1_conds): Likewise.
17113 (pj4_alu): Likewise.
17114 (pj4_alu_conds): Likewise.
17115 (pj4_shift): Likewise.
17116 (pj4_shift_conds): Likewise.
17117 (pj4_alu_shift): Likewise.
17118 (pj4_alu_shift_conds): Likewise.
17120 2013-07-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
17122 * config/arm/predicates.md (shiftable_operator_strict_it):
17124 * config/arm/thumb2.md (thumb_andsi_not_shiftsi_si):
17125 Disable cond_exec version for arm_restrict_it.
17126 (thumb2_smaxsi3): Convert to generate cond_exec.
17127 (thumb2_sminsi3): Likewise.
17128 (thumb32_umaxsi3): Likewise.
17129 (thumb2_uminsi3): Likewise.
17130 (thumb2_abssi2): Adjust constraints for arm_restrict_it.
17131 (thumb2_neg_abssi2): Likewise.
17132 (thumb2_mov_scc): Add alternative for 16-bit encoding.
17133 (thumb2_movsicc_insn): Adjust alternatives.
17134 (thumb2_mov_negscc): Disable for arm_restrict_it.
17135 (thumb2_mov_negscc_strict_it): New pattern.
17136 (thumb2_mov_notscc_strict_it): New pattern.
17137 (thumb2_mov_notscc): Disable for arm_restrict_it.
17138 (thumb2_ior_scc): Likewise.
17139 (thumb2_ior_scc_strict_it): New pattern.
17140 (thumb2_cond_move): Adjust for arm_restrict_it.
17141 (thumb2_cond_arith): Disable for arm_restrict_it.
17142 (thumb2_cond_arith_strict_it): New pattern.
17143 (thumb2_cond_sub): Adjust for arm_restrict_it.
17144 (thumb2_movcond): Likewise.
17145 (thumb2_extendqisi_v6): Disable cond_exec variant for arm_restrict_it.
17146 (thumb2_zero_extendhisi2_v6): Likewise.
17147 (thumb2_zero_extendqisi2_v6): Likewise.
17148 (orsi_notsi_si): Likewise.
17149 (orsi_not_shiftsi_si): Likewise.
17151 2013-07-22 Georg-Johann Lay <avr@gjlay.de>
17153 * config/avr/avr.c (avr_out_xload): No SBIS around LPM so that
17154 instruction sequence is 1 byte shorter.
17156 2013-07-22 Uros Bizjak <ubizjak@gmail.com>
17158 * config/i386/i386.md (nonlocal_goto_receiver): Delete insn if
17159 it is not needed after split.
17161 2013-07-20 Iain Sandoe <iain@codesourcery.com>
17164 * config/i386/i386.c (output_set_got) [TARGET_MACHO]: Adjust to emit a
17165 second label for nonlocal goto receivers. Don't output pic base labels
17166 unless we're producing PIC; mark that action unreachable().
17167 (ix86_save_reg): If the function contains a nonlocal label, save the
17169 * config/darwin-protos.h (machopic_should_output_picbase_label): New.
17170 * config/darwin.c (emitted_pic_label_num): New GTY.
17171 (update_pic_label_number_if_needed): New.
17172 (machopic_output_function_base_name): Adjust for nonlocal receiver
17174 (machopic_should_output_picbase_label): New.
17175 * config/i386/i386.md (enum unspecv): UNSPECV_NLGR: New.
17176 (nonlocal_goto_receiver): New insn and split.
17178 2013-07-20 James Greenhalgh <james.greenhalgh@arm.com>
17180 * config/aarch64/aarch64-builtins.c
17181 (aarch64_fold_builtin): Fold abs in all modes.
17182 * config/aarch64/aarch64-simd-builtins.def
17183 (abs): Enable for all modes.
17184 * config/aarch64/arm_neon.h
17185 (vabs<q>_s<8,16,32,64): Rewrite using builtins.
17186 (vabs_f64): Add missing intrinsic.
17188 2013-07-19 Ian Bolton <ian.bolton@arm.com>
17190 * config/aarch64/arm_neon.h (vabs_s64): New function
17192 2013-07-19 Georg-Johann Lay <avr@gjlay.de>
17195 * config/avr/avr-fixed.md (round<mode>3_const): Turn expander to insn.
17196 * config/avr/avr.md (adjust_len): Add `round'.
17197 * config/avr/avr-protos.h (avr_out_round): New prototype.
17198 (avr_out_plus): Add `out_label' argument.
17199 * config/avr/avr.c (avr_out_plus_1): Add `out_label' argument.
17200 (avr_out_plus): Pass down `out_label' to avr_out_plus_1.
17201 Handle the case where `insn' is just a pattern.
17202 (avr_out_bitop): Handle the case where `insn' is just a pattern.
17203 (avr_out_round): New function.
17204 (avr_adjust_insn_length): Handle ADJUST_LEN_ROUND.
17206 2013-07-18 David Holsgrove <david.holsgrove@xilinx.com>
17208 * config/microblaze/microblaze.c (microblaze_expand_prologue):
17209 Add check for flag_stack_usage to handle -fstack-usage support
17211 2013-07-18 Pat Haugen <pthaugen@us.ibm.com>
17213 * config/rs6000/rs6000.c (rs6000_option_override_internal): Adjust flag
17214 interaction for new Power8 flags and VSX.
17216 2013-07-18 Sriraman Tallam <tmsriram@google.com>
17218 PR middle-end/57698
17219 * tree-inline.c (expand_call_inline): Emit errors during
17220 early_inlining only if optimization is not turned on.
17222 2013-07-18 David Malcolm <dmalcolm@redhat.com>
17226 * passes.c (init_optimization_passes): Move the construction of
17227 the pass hierarchy into a new passes.def file.
17229 * Makefile.in (passes.o): Add dependency on passes.def.
17231 2013-07-18 David Malcolm <dmalcolm@redhat.com>
17233 * passes.c (init_optimization_passes): Introduce macros for
17234 constructing the tree of passes (INSERT_PASSES_AFTER,
17235 PUSH_INSERT_PASSES_WITHIN, POP_INSERT_PASSES,
17236 TERMINATE_PASS_LIST).
17238 2013-07-18 Vladimir Makarov <vmakarov@redhat.com>
17239 Wei Mi <wmi@google.com>
17241 PR rtl-optimization/57878
17242 * lra-assigns.c (assign_by_spills): Move non_reload_pseudos to the
17244 (reload_pseudo_compare_func): Check nregs first for reload
17247 2013-07-18 David Malcolm <dmalcolm@redhat.com>
17249 * tree-pass.h (pass_ipa_lto_wpa_fixup): Remove redundant decl.
17251 2013-07-18 Po-Chun Chang <pchang9@cs.wisc.edu>
17253 * read-rtl.c (validate_const_int): Once an invalid character is
17254 seen, quit the loop.
17256 * gengtype.c (write_roots): Similarly once we find the "deletable"
17257 or "if_marked" option.
17259 2013-07-18 Sofiane Naci <sofiane.naci@arm.com>
17261 * config/arm/arm.md (attribute "insn"): Delete values "mrs", "msr",
17262 "xtab" and "sat". Move value "clz" from here to ...
17263 (attriubte "type"): ... here.
17264 (satsi_<SAT:code>): Delete "insn" attribute.
17265 (satsi_<SAT:code>_shift): Likewise.
17266 (arm_zero_extendqisi2addsi): Likewise.
17267 (arm_extendqisi2addsi): Likewise.
17268 (clzsi2): Update for attribute changes.
17269 (rbitsi2): Likewise.
17270 * config/arm/arm-fixed.md (arm_ssatsihi_shift): Delete "insn"
17272 (arm_usatsihi): Likewise.
17273 * config/arm/cortex-a8.md (cortex_a8_alu): Update for attribute change.
17275 2013-07-18 Sofiane Naci <sofiane.naci@arm.com>
17277 * config/arm/arm.md (attribute "type"): Rename "simple_alu_imm" to
17278 "arlo_imm". Rename "alu_reg" to "arlo_reg". Rename "simple_alu_shift"
17279 to "extend". Split "alu_shift" into "shift" and "arlo_shift". Split
17280 "alu_shift_reg" into "shift_reg" and "arlo_shift_reg". List types
17281 in alphabetical order.
17282 (attribute "core_cycles"): Update for attribute changes.
17283 (arm_addsi3): Likewise.
17284 (addsi3_compare0): Likewise.
17285 (addsi3_compare0_scratch): Likewise.
17286 (addsi3_compare_op1): Likewise.
17287 (addsi3_compare_op2): Likewise.
17288 (compare_addsi2_op0): Likewise.
17289 (compare_addsi2_op1): Likewise.
17290 (addsi3_carryin_shift_<optab>): Likewise.
17291 (subsi3_carryin_shift): Likewise.
17292 (rsbsi3_carryin_shift): Likewise.
17293 (arm_subsi3_insn): Likewise.
17294 (subsi3_compare0): Likewise.
17295 (subsi3_compare): Likewise.
17296 (arm_andsi3_insn): Likewise.
17297 (thumb1_andsi3_insn): Likewise.
17298 (andsi3_compare0): Likewise.
17299 (andsi3_compare0_scratch): Likewise.
17300 (zeroextractsi_compare0_scratch
17301 (andsi_not_shiftsi_si): Likewise.
17302 (iorsi3_insn): Likewise.
17303 (iorsi3_compare0): Likewise.
17304 (iorsi3_compare0_scratch): Likewise.
17305 (arm_xorsi3): Likewise.
17306 (thumb1_xorsi3_insn): Likewise.
17307 (xorsi3_compare0): Likewise.
17308 (xorsi3_compare0_scratch): Likewise.
17309 (satsi_<SAT:code>_shift): Likewise.
17311 (arm_shiftsi3): Likewise.
17312 (shiftsi3_compare0): Likewise.
17313 (not_shiftsi): Likewise.
17314 (not_shiftsi_compare0): Likewise.
17315 (not_shiftsi_compare0_scratch): Likewise.
17316 (arm_one_cmplsi2): Likewise.
17317 (thumb_one_complsi2): Likewise.
17318 (notsi_compare0): Likewise.
17319 (notsi_compare0_scratch): Likewise.
17320 (thumb1_zero_extendhisi2): Likewise.
17321 (arm_zero_extendhisi2): Likewise.
17322 (arm_zero_extendhisi2_v6): Likewise.
17323 (arm_zero_extendhisi2addsi): Likewise.
17324 (thumb1_zero_extendqisi2): Likewise.
17325 (thumb1_zero_extendqisi2_v6): Likewise.
17326 (arm_zero_extendqisi2): Likewise.
17327 (arm_zero_extendqisi2_v6): Likewise.
17328 (arm_zero_extendqisi2addsi): Likewise.
17329 (thumb1_extendhisi2): Likewise.
17330 (arm_extendhisi2): Likewise.
17331 (arm_extendhisi2_v6): Likewise.
17332 (arm_extendqisi): Likewise.
17333 (arm_extendqisi_v6): Likewise.
17334 (arm_extendqisi2addsi): Likewise.
17335 (thumb1_extendqisi2): Likewise.
17336 (thumb1_movdi_insn): Likewise.
17337 (arm_movsi_insn): Likewise.
17338 (movsi_compare0): Likewise.
17339 (movhi_insn_arch4): Likewise.
17340 (movhi_bytes): Likewise.
17341 (arm_movqi_insn): Likewise.
17342 (thumb1_movqi_insn): Likewise.
17343 (arm32_movhf): Likewise.
17344 (thumb1_movhf): Likewise.
17345 (arm_movsf_soft_insn): Likewise.
17346 (thumb1_movsf_insn): Likewise.
17347 (movdf_soft_insn): Likewise.
17348 (thumb_movdf_insn): Likewise.
17349 (arm_cmpsi_insn): Likewise.
17350 (cmpsi_shiftsi): Likewise.
17351 (cmpsi_shiftsi_swp): Likewise.
17352 (arm_cmpsi_negshiftsi_si): Likewise.
17353 (movsicc_insn): Likewise.
17354 (movsfcc_soft_insn): Likewise.
17355 (arith_shiftsi): Likewise.
17356 (arith_shiftsi_compare0
17357 (arith_shiftsi_compare0_scratch
17358 (sub_shiftsi): Likewise.
17359 (sub_shiftsi_compare0
17360 (sub_shiftsi_compare0_scratch
17361 (and_scc): Likewise.
17362 (cond_move): Likewise.
17363 (if_plus_move): Likewise.
17364 (if_move_plus): Likewise.
17365 (if_move_not): Likewise.
17366 (if_not_move): Likewise.
17367 (if_shift_move): Likewise.
17368 (if_move_shift): Likewise.
17369 (if_shift_shift): Likewise.
17370 (if_not_arith): Likewise.
17371 (if_arith_not): Likewise.
17372 (cond_move_not): Likewise.
17373 (thumb1_ashlsi3): Set type attribute.
17374 (thumb1_ashrsi3): Likewise.
17375 (thumb1_lshrsi3): Likewise.
17376 (thumb1_rotrsi3): Likewise.
17377 (shiftsi3_compare0_scratch): Likewise.
17378 * config/arm/neon.md (neon_mov<mode>): Update for attribute changes.
17379 (neon_mov<mode>): Likewise.
17380 * config/arm/thumb2.md (thumb_andsi_not_shiftsi_si): Update for
17382 (thumb2_movsi_insn): Likewise.
17383 (thumb2_cmpsi_neg_shiftsi): Likewise.
17384 (thumb2_extendqisi_v6): Likewise.
17385 (thumb2_zero_extendhisi2_v6): Likewise.
17386 (thumb2_zero_extendqisi2_v6): Likewise.
17387 (thumb2_shiftsi3_short): Likewise.
17388 (thumb2_addsi3_compare0_scratch): Likewise.
17389 (orsi_not_shiftsi_si): Likewise.
17390 * config/arm/vfp.md (arm_movsi_vfp): Update for attribute changes.
17391 * config/arm/arm-fixed.md (arm_ssatsihi_shift): Update for attribute
17393 * config/arm/arm1020e.md (1020alu_op): Update for attribute changes.
17394 (1020alu_shift_op): Likewise.
17395 (1020alu_shift_reg_op): Likewise.
17396 * config/arm/arm1026ejs.md (alu_op): Update for attribute changes.
17397 (alu_shift_op): Likewise.
17398 (alu_shift_reg_op): Likewise.
17399 * config/arm/arm1136jfs.md (11_alu_op): Update for attribute changes.
17400 (11_alu_shift_op): Likewise.
17401 (11_alu_shift_reg_op): Likewise.
17402 * config/arm/arm926ejs.md (9_alu_op): Update for attribute changes.
17403 (9_alu_shift_reg_op): Likewise.
17404 * config/arm/cortex-a15.md (cortex_a15_alu): Update for attribute
17406 (cortex_a15_alu_shift): Likewise.
17407 (cortex_a15_alu_shift_reg): Likewise.
17408 * config/arm/cortex-a5.md (cortex_a5_alu): Update for attribute
17410 (cortex_a5_alu_shift): Likewise.
17411 * config/arm/cortex-a53.md (cortex_a53_alu) : Update for attribute
17413 (cortex_a53_alu_shift): Likewise.
17414 * config/arm/cortex-a7.md (cortex_a7_alu_imm): Update for attribute
17416 (cortex_a7_alu_reg): Likewise.
17417 (cortex_a7_alu_shift): Likewise.
17418 * config/arm/cortex-a8.md (cortex_a8_alu): Update for attribute
17420 (cortex_a8_alu_shift): Likewise.
17421 (cortex_a8_alu_shift_reg): Likewise.
17422 (cortex_a8_mov): Likewise.
17423 * config/arm/cortex-a9.md (cortex_a9_dp): Update for attribute changes.
17424 (cortex_a9_dp_shift): Likewise.
17425 * config/arm/cortex-m4.md (cortex_m4_alu): Update for attribute
17427 * config/arm/cortex-r4.md (cortex_r4_alu): Update for attribute
17429 (cortex_r4_mov): Likewise.
17430 (cortex_r4_alu_shift): Likewise.
17431 (cortex_r4_alu_shift_reg): Likewise.
17432 * config/arm/fa526.md (526_alu_op): Update for attribute changes.
17433 (526_alu_shift_op): Likewise.
17434 * config/arm/fa606te.md (606te_alu_op): Update for attribute changes.
17435 * config/arm/fa626te.md (626te_alu_op): Update for attribute changes.
17436 (626te_alu_shift_op): Likewise.
17437 * config/arm/fa726te.md (726te_shift_op): Update for attribute changes.
17438 (726te_alu_op): Likewise.
17439 (726te_alu_shift_op): Likewise.
17440 (726te_alu_shift_reg_op): Likewise.
17441 * config/arm/fmp626.md (mp626_alu_op): Update for attribute changes.
17442 (mp626_alu_shift_op): Likewise.
17443 * config/arm/marvell-pj4.md (pj4_alu_e1): Update for attribute changes.
17444 (pj4_alu_e1_conds): Likewise.
17445 (pj4_alu): Likewise.
17446 (pj4_alu_conds): Likewise.
17447 (pj4_shift): Likewise.
17448 (pj4_shift_conds): Likewise.
17449 (pj4_alu_shift): Likewise.
17450 (pj4_alu_shift_conds): Likewise.
17451 * config/arm/arm.c (xscale_sched_adjust_cost): Update for attribute
17453 (cortexa7_older_only): Likewise.
17454 (cortexa7_younger): Likewise.
17456 2013-07-18 David Malcolm <dmalcolm@redhat.com>
17458 * ipa-pure-const.c (generate_summary): Rename to...
17459 (pure_const_generate_summary): ... this.
17461 2013-07-17 Iain Sandoe <iain@codesourcery.com>
17463 * config/rs6000/darwin.h (REGISTER_NAMES): Add HTM registers.
17465 2013-07-17 Yvan Roux <yvan.roux@linaro.org>
17468 * config/arm/arm.c (gen_movmem_ldrd_strd): Fix unaligned load/store
17471 2013-07-17 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
17473 * config/s390/s390.c: (s390_expand_builtin): Allow -mhtm to be
17474 enabled without -march=zEC12.
17475 * config/s390/s390.h (TARGET_HTM): Do not require EC12 machine
17478 2013-07-16 Maciej W. Rozycki <macro@codesourcery.com>
17480 * config/mips/mips.h (ISA_HAS_FP4): Correct formatting.
17481 (ISA_HAS_FP_MADD4_MSUB4): Also enable for ISA_MIPS32R2.
17482 (ISA_HAS_NMADD4_NMSUB4): Remove the MODE argument; rewrite in
17483 terms of ISA_HAS_FP4, and also enable for ISA_MIPS32R2.
17484 (ISA_HAS_NMADD3_NMSUB3): Remove the MODE argument.
17485 * config/mips/mips.c (mips_rtx_costs) <PLUS>: Check for
17486 ISA_HAS_FP_MADD4_MSUB4 || ISA_HAS_FP_MADD3_MSUB3 rather than
17488 <MINUS, NEG>: Update according to changes to ISA_HAS_NMADD4_NMSUB4
17489 and ISA_HAS_NMADD3_NMSUB3.
17490 * config/mips/mips.md (nmadd4<mode>, nmadd3<mode>): Likewise.
17491 (nmadd4<mode>_fastmath, nmadd3<mode>_fastmath): Likewise.
17492 (nmsub4<mode>, nmsub3<mode>): Likewise.
17493 (nmsub4<mode>_fastmath, nmsub3<mode>_fastmath): Likewise.
17495 2013-07-16 Maciej W. Rozycki <macro@codesourcery.com>
17497 * config/mips/mips.h (ISA_HAS_NMADD4_NMSUB4): Remove
17498 TARGET_MIPS5400 checking.
17500 2013-07-16 Jakub Jelinek <jakub@redhat.com>
17501 Peter Bergner <bergner@vnet.ibm.com>
17503 * config/rs6000/rs6000.h (FIRST_PSEUDO_REGISTERS): Mention HTM
17504 registers in the comment.
17505 (DWARF_FRAME_REGISTERS): Subtract also the 3 HTM registers.
17506 (DWARF_REG_TO_UNWIND_COLUMN): Use DWARF_FRAME_REGISTERS
17507 rather than FIRST_PSEUDO_REGISTERS.
17509 2013-07-16 Peter Bergner <bergner@vnet.ibm.com>
17511 * config/rs6000/rs6000.c (rs6000_option_override_internal): Do not
17512 enable extra ISA flags with TARGET_HTM.
17514 2013-07-16 Maciej W. Rozycki <macro@codesourcery.com>
17516 * config/mips/mips.h (ISA_HAS_MULS, ISA_HAS_MSAC, ISA_HAS_MACC):
17519 2013-07-15 Cong Hou <congh@google.com>
17521 * tree-vect-data-refs.c (dr_group_sort_cmp): Do not use hash function
17522 in compare function for sorting.
17524 2013-07-15 Peter Bergner <bergner@vnet.ibm.com>
17526 * config.gcc (powerpc*-*-*): Install htmintrin.h and htmxlintrin.h.
17527 * config/rs6000/t-rs6000 (MD_INCLUDES): Add htm.md.
17528 * config/rs6000/rs6000.opt: Add -mhtm option.
17529 * config/rs6000/rs6000-cpus.def (POWERPC_MASKS): Add OPTION_MASK_HTM.
17530 (ISA_2_7_MASKS_SERVER): Add OPTION_MASK_HTM.
17531 * config/rs6000/rs6000-c.c (rs6000_target_modify_macros): Define
17532 __HTM__ if the HTM instructions are available.
17533 * config/rs6000/predicates.md (u3bit_cint_operand, u10bit_cint_operand,
17534 htm_spr_reg_operand): New define_predicates.
17535 * config/rs6000/rs6000.md (define_attr "type"): Add htm.
17536 (TFHAR_REGNO, TFIAR_REGNO, TEXASR_REGNO): New define_constants.
17538 * config/rs6000/rs6000-builtin.def (BU_HTM_0, BU_HTM_1, BU_HTM_2,
17539 BU_HTM_3, BU_HTM_SPR0, BU_HTM_SPR1): Add support macros for defining
17540 HTM builtin functions.
17541 * config/rs6000/rs6000.c (RS6000_BUILTIN_H): New macro.
17542 (rs6000_reg_names, alt_reg_names): Add HTM SPR register names.
17543 (rs6000_init_hard_regno_mode_ok): Add support for HTM instructions.
17544 (rs6000_builtin_mask_calculate): Likewise.
17545 (rs6000_option_override_internal): Likewise.
17546 (bdesc_htm): Add new HTM builtin support.
17547 (htm_spr_num): New function.
17548 (htm_spr_regno): Likewise.
17549 (rs6000_htm_spr_icode): Likewise.
17550 (htm_expand_builtin): Likewise.
17551 (htm_init_builtins): Likewise.
17552 (rs6000_expand_builtin): Add support for HTM builtin functions.
17553 (rs6000_init_builtins): Likewise.
17554 (rs6000_invalid_builtin, rs6000_opt_mask): Add support for -mhtm
17556 * config/rs6000/rs6000.h (ASM_CPU_SPEC): Add support for -mhtm.
17557 (TARGET_HTM, MASK_HTM): Define macros.
17558 (FIRST_PSEUDO_REGISTER): Adjust for new HTM SPR registers.
17559 (FIXED_REGISTERS): Likewise.
17560 (CALL_USED_REGISTERS): Likewise.
17561 (CALL_REALLY_USED_REGISTERS): Likewise.
17562 (REG_ALLOC_ORDER): Likewise.
17563 (enum reg_class): Likewise.
17564 (REG_CLASS_NAMES): Likewise.
17565 (REG_CLASS_CONTENTS): Likewise.
17566 (REGISTER_NAMES): Likewise.
17567 (ADDITIONAL_REGISTER_NAMES): Likewise.
17568 (RS6000_BTC_SPR, RS6000_BTC_VOID, RS6000_BTC_32BIT, RS6000_BTC_64BIT,
17569 RS6000_BTC_MISC_MASK, RS6000_BTM_HTM): New macros.
17570 (RS6000_BTM_COMMON): Add RS6000_BTM_HTM.
17571 * config/rs6000/htm.md: New file.
17572 * config/rs6000/htmintrin.h: New file.
17573 * config/rs6000/htmxlintrin.h: New file.
17575 2013-07-15 Marcus Shawcroft <marcus.shawcroft@arm.com>
17577 * config/aarch64/aarch64-protos.h (aarch64_symbol_type):
17578 Define SYMBOL_TINY_GOT, update comment.
17579 * config/aarch64/aarch64.c
17580 (aarch64_load_symref_appropriately): Handle SYMBOL_TINY_GOT.
17581 (aarch64_expand_mov_immediate): Likewise.
17582 (aarch64_print_operand): Likewise.
17583 (aarch64_classify_symbol): Likewise.
17584 * config/aarch64/aarch64.md (UNSPEC_GOTTINYPIC): Define.
17585 (ldr_got_tiny): Define.
17587 2013-07-13 Tobias Grosser <tobias@grosser.es>
17589 PR tree-optimization/54094
17590 * graphite-clast-to-gimple.c (translate_clast_for_loop): Derive the
17591 scheduling dimension for the parallelism check from the polyhedral
17592 information in the AST.
17593 * graphite-dependences.c (carries_deps): Do not assume the schedule is
17596 2013-07-13 Jason Merrill <jason@redhat.com>
17598 * print-tree.c (debug_vec_tree): Use debug_raw.
17599 (debug_raw (vec<tree, va_gc> &)): New.
17600 (debug_raw (vec<tree, va_gc> *)): New.
17601 * tree.h: Declare them.
17603 2013-07-13 Bin Cheng <bin.cheng@arm.com>
17605 * ifcvt.c (ifcvt_after_combine): New static variable.
17606 (cheap_bb_rtx_cost_p): Set scale to REG_BR_PROB_BASE when optimizing
17608 (if_convert): New parameter after_combine. Set ifcvt_after_combine.
17609 (rest_of_handle_if_conversion, rest_of_handle_if_after_combine,
17610 rest_of_handle_if_after_reload): Pass new argument for if_convert.
17612 2013-07-12 Maciej W. Rozycki <macro@codesourcery.com>
17614 * config/mips/mips.c (mips_expand_call): Remove empty statement.
17616 2013-07-12 Michael Matz <matz@suse.de>
17618 PR middle-end/55771
17619 * convert.c (convert_to_real): Reject non-float inner types.
17621 2013-07-12 Tejas Belagod <tejas.belagod@arm.com>
17623 * config/aarch64/aarch64-protos.h
17624 (aarch64_simd_immediate_valid_for_move): Remove.
17625 * config/aarch64/aarch64.c (simd_immediate_info): New member.
17626 (aarch64_simd_valid_immediate): Recognize idioms for shifting ones
17628 (aarch64_output_simd_mov_immediate): Print the correct shift specifier.
17630 2013-07-11 Steve Ellcey <sellcey@mips.com>
17632 * config/mips/mips.c (mips_conditional_register_usage): Do not
17633 use t[0-7] registers in MIPS16 mode when optimizing for size.
17635 2013-07-11 Sriraman Tallam <tmsriram@google.com>
17637 * config/i386/i386.c (dispatch_function_versions): Fix array
17638 indexing of function_version_info to match actual_versions.
17640 2013-07-11 Teresa Johnson <tejohnson@google.com>
17642 * vec.h (struct va_gc): Move release out-of-line.
17643 (va_gc::release): Call ggc_free on released vec.
17645 2013-07-11 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
17647 * config/rs6000/rs6000.md (""*tls_gd_low<TLSmode:tls_abi_suffix>"):
17648 Require GOT register as additional operand in UNSPEC.
17649 ("*tls_ld_low<TLSmode:tls_abi_suffix>"): Likewise.
17650 ("*tls_got_dtprel_low<TLSmode:tls_abi_suffix>"): Likewise.
17651 ("*tls_got_tprel_low<TLSmode:tls_abi_suffix>"): Likewise.
17652 ("*tls_gd<TLSmode:tls_abi_suffix>"): Update splitter.
17653 ("*tls_ld<TLSmode:tls_abi_suffix>"): Likewise.
17654 ("tls_got_dtprel_<TLSmode:tls_abi_suffix>"): Likewise.
17655 ("tls_got_tprel_<TLSmode:tls_abi_suffix>"): Likewise.
17657 2013-07-11 Georg-Johann Lay <avr@gjlay.de>
17660 * config/avr/avr.c (avr_set_current_function): Sanity-check signal
17661 name seen by assembler/linker rather if available.
17663 2013-07-11 Andreas Schwab <schwab@suse.de>
17665 * config/aarch64/aarch64-linux.h (CPP_SPEC): Define.
17667 2013-07-10 Vladimir Makarov <vmakarov@redhat.com>
17669 * lra-constraints.c (curr_insn_transform): Switch off optional reloads.
17671 2013-07-10 Joseph Myers <joseph@codesourcery.com>
17673 * doc/tm.texi.in: Move hook documentation to ....
17674 * target.def: ... here.
17676 * doc/tm.texi.in (TARGET_CANONICALIZE_COMPARISON): Remove stray
17677 text on @hook line.
17678 * doc/tm.texi: Regenerate.
17680 2013-07-10 Paolo Carlini <paolo.carlini@oracle.com>
17683 * doc/invoke.texi: Document -Wconditionally-supported.
17685 2013-07-10 Georg-Johann Lay <avr@gjlay.de>
17688 * config/avr/avr.c (avr_prologue_setup_frame): Trunk -size to mode
17691 2013-07-10 Georg-Johann Lay <avr@gjlay.de>
17694 * config/avr/avr-mcus.def (atmega16hva, atmega16hva2, atmega16hvb)
17695 (atmega16m1, atmega16u4, atmega32a, atmega32c1, atmega32hvb)
17696 (atmega32m1, atmega32u4, atmega32u6, atmega64c1, atmega64m1):
17697 Remove duplicate devices.
17698 * config/avr/gen-avr-mmcu-texi.c (print_mcus): Fail on duplicate MCUs.
17699 * config/avr/t-multilib: Regenerate.
17700 * config/avr/avr-tables.opt: Regenerate.
17701 * doc/avr-mmcu.texi: Regenerate.
17703 2013-07-10 Georg-Johann Lay <avr@gjlay.de>
17706 * config/avr/avr.opt (Waddr-space-convert): Fix typo.
17708 2013-07-10 Graham Stott <graham.stott@btinternet.com>
17710 * config/mips/mips.c (mips_rtx_costs): Very slightly increase
17711 the cost of MULT when optimizing for size.
17713 2013-07-10 Jan-Benedict Glaw <jbglaw@lug-owl.de>
17715 * config/cr16/cr16-protos.h: Don't include target.h.
17717 2013-07-09 Joseph Myers <joseph@codesourcery.com>
17719 * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Only
17720 adjust register size for TDmode and TFmode for VSX registers.
17722 2013-07-08 Kai Tietz <ktietz@redhat.com>
17725 * config/i386/i386.c (TARGET_FUNCTION_ATTRIBUTE_INLINABLE_P): Define as
17726 hook_bool_const_tree_true.
17728 2013-07-08 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
17730 * config/s390/s390.c: Replace F*_REGNUM with FPR*_REGNUM.
17731 * config/s390/s390.h: Remove F*_REGNUM macro definitions.
17732 * config/s390/s390.md: Define FPR*_REGNUM constants.
17733 Fix FPR2_REGNUM constant (18 -> 17).
17734 ("*trunc<BFP:mode><DFP_ALL:mode>2")
17735 ("*trunc<DFP_ALL:mode><BFP:mode>2")
17736 ("trunc<BFP:mode><DFP_ALL:mode>2")
17737 ("trunc<DFP_ALL:mode><BFP:mode>2")
17738 ("*extend<BFP:mode><DFP_ALL:mode>2")
17739 ("*extend<DFP_ALL:mode><BFP:mode>2")
17740 ("extend<BFP:mode><DFP_ALL:mode>2")
17741 ("extend<DFP_ALL:mode><BFP:mode>2"): Replace FPR2_REGNUM with
17744 2013-07-08 Graham Stott <graham.stott@btinternet.com>
17746 * Makefile.in: (c-family-warn): Define to $(STRICT_WARN)
17748 2013-07-08 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
17750 * config/s390/s390.c: Rename cfun_set_fpr_bit to cfun_set_fpr_save
17751 and cfun_fpr_bit_p to cfun_fpr_save_p.
17752 (s390_frame_area, s390_register_info, s390_frame_info)
17753 (s390_emit_prologue, s390_emit_epilogue)
17754 (s390_conditional_register_usage): Use the *_REGNUM macros for FPR
17756 * config/s390/s390.h: Define *_REGNUM macros for floating point
17759 2013-07-08 Eric Botcazou <ebotcazou@adacore.com>
17761 * Makefile.in (tree-ssa-reassoc.o): Add dependency on $(PARAMS_H).
17763 2013-07-08 Po-Chun Chang <pchang9@cs.wisc.edu>
17765 PR rtl-optimization/57786
17766 * combine.c (distribute_notes) <case REG_DEAD>: Change all_used to bool
17767 and break out of the loop when it is set to false.
17769 2013-07-08 Jakub Jelinek <jakub@redhat.com>
17772 * simplify-rtx.c (simplify_unary_operation_1) <case ZERO_EXTEND>:
17773 Simplify (zero_extend:SI (subreg:QI (and:SI (reg:SI)
17774 (const_int 63)) 0)).
17775 * combine.c (make_extraction): Create ZERO_EXTEND or SIGN_EXTEND
17776 using simplify_gen_unary instead of gen_rtx_*_EXTEND.
17777 * config/i386/i386.md (*jcc_bt<mode>_1): New define_insn_and_split.
17779 PR rtl-optimization/57829
17780 * simplify-rtx.c (simplify_binary_operation_1) <case IOR>: Ensure that
17781 mask bits outside of mode are just sign-extension from mode to HWI.
17783 2013-07-08 Michael Zolotukhin <michael.v.zolotukhin@gmail.com>
17785 * config/i386/i386-opts.h (enum stringop_alg): Add vector_loop.
17786 * config/i386/i386.c (expand_set_or_movmem_via_loop): Use
17787 adjust_address instead of change_address to keep info about alignment.
17788 (emit_strmov): Remove.
17789 (emit_memmov): New function.
17790 (expand_movmem_epilogue): Refactor to properly handle bigger sizes.
17791 (expand_movmem_epilogue): Likewise and return updated rtx for
17793 (expand_constant_movmem_prologue): Likewise and return updated rtx for
17794 destination and source.
17795 (decide_alignment): Refactor, handle vector_loop.
17796 (ix86_expand_movmem): Likewise.
17797 (ix86_expand_setmem): Likewise.
17798 * config/i386/i386.opt (Enum): Add vector_loop to option stringop_alg.
17800 2013-07-07 Uros Bizjak <ubizjak@gmail.com>
17802 * config/i386/driver-i386.c (host_detect_local_cpu): Do not check
17803 signature_TM2_ebx, it interferes with signature_INTEL_ebx.
17805 2013-07-06 Uros Bizjak <ubizjak@gmail.com>
17807 * config/i386/sse.md (sse_movlhps): Change alternative 3
17808 of operand 2 to "m".
17810 2013-07-06 Uros Bizjak <ubizjak@gmail.com>
17813 * config/i386/sse.md (iptr): New mode attribute.
17814 (sse2_movq128): Add pointer size overrides for Intel asm dialect.
17815 (<sse>_vm<plusminus_insn><mode>3): Ditto.
17816 (<sse>_vmmul<mode>3): Ditto.
17817 (<sse>_vmdiv<mode>3): Ditto.
17818 (sse_vmrcpv4sf2): Ditto.
17819 (<sse>_vmsqrt<mode>2): Ditto.
17820 (sse_vmrsqrtv4sf2): Ditto.
17821 (<sse>_vm<code><mode>3): Ditto.
17822 (avx_vmcmp<mode>3): Ditto.
17823 (<sse>_vmmaskcmp<mode>3): Ditto.
17824 (<sse>_comi): Ditto.
17825 (<sse>_ucomi): Ditto.
17826 (*xop_vmfrcz_<mode>): Ditto.
17827 (*fmai_fmadd_<mode>): Ditto.
17828 (*fmai_fmsub_<mode>): Ditto.
17829 (*fmai_fnmadd_<mode>): Ditto.
17830 (*fmai_fnmsub_<mode>): Ditto.
17831 (*fma4i_vmfmadd_<mode>): Ditto.
17832 (*fma4i_vmfmsub_<mode>): Ditto.
17833 (*fma4i_vmfnmadd_<mode>): Ditto.
17834 (*fma4i_vmfnmsub_<mode>): Ditto.
17835 (*xop_vmfrcz_<mode>): Ditto.
17836 (sse_cvtps2pi): Ditto.
17837 (sse_cvttps2pi): Ditto.
17838 (sse_cvtss2si): Ditto.
17839 (sse_cvtss2si_2): Ditto.
17840 (sse_cvtss2siq_2): Ditto.
17841 (sse_cvttss2si): Ditto.
17842 (sse_cvttss2siq): Ditto.
17843 (sse_cvtsd2si): Ditto.
17844 (sse_cvtsd2si_2): Ditto.
17845 (sse_cvtsd2siq_2): Ditto.
17846 (sse_cvttsd2si): Ditto.
17847 (sse_cvttsd2siq): Ditto.
17848 (sse_cvtsd2ss): Ditto.
17849 (sse_cvtss2sd): Ditto.
17850 (avx2_pbroadcast<mode>): Ditto.
17851 (avx2_pbroadcast<mode>_1): Ditto.
17852 (*avx_vperm_broadcast_v4sf): Ditto.
17854 (sse_movhlps): Ditto for movlp[sd]/movhp[sd] alternatives.
17855 (sse_movlhps): Ditto.
17856 (sse_storehps): Ditto.
17857 (sse_loadhps): Ditto.
17858 (sse_storelps): Ditto.
17859 (sse_loadlps): Ditto.
17860 (*vec_concatv4sf): Ditto.
17861 (*vec_interleave_highv2df): Ditto.
17862 (*vec_interleave_lowv2df): Ditto.
17863 (*vec_extractv2df_1_sse): Ditto.
17864 (*vec_extractv2df_0_sse): Ditto.
17865 (sse2_storelpd): Ditto.
17866 (sse2_loadlpd): Ditto.
17867 (sse2_movsd): Ditto.
17868 (*vec_concatv4si): Ditto.
17869 (vec_concatv2di): Ditto.
17871 * config/i386/mmx.md (mmx_punpcklbw): Add pointer size overrides
17872 for Intel asm dialect.
17873 (mmx_punpcklwd): Ditto.
17874 (mmx_punpckldq): Ditto.
17876 * config/i386/i386.c (ix86_print_operand) ['H']: Output 'qword ptr'
17877 for intel assembler dialect.
17879 2013-07-06 Jakub Jelinek <jakub@redhat.com>
17882 * fold-const.c (tree_call_nonnegative_warnv_p): Return true
17883 for BUILT_IN_C{LZ,LRSB}*.
17884 * tree.h (CASE_INT_FN): Add FN##IMAX case.
17885 * tree-vrp.c (extract_range_basic): Handle
17886 BUILT_IN_{FFS,PARITY,POPCOUNT,C{LZ,TZ,LRSB}}*. For
17887 BUILT_IN_CONSTANT_P if argument isn't (D) of PARM_DECL,
17888 fall thru to code calling set_value*.
17889 * builtins.c (expand_builtin): Remove *IMAX cases.
17890 (fold_builtin_bitop): For BUILT_IN_CLRSB* return NULL_TREE
17891 if width is bigger than 2*HWI.
17893 2013-07-05 Vladimir Makarov <vmakarov@redhat.com>
17895 PR rtl-optimization/55342
17896 * lra-int.h (lra_subreg_reload_pseudos): New.
17897 * lra.c: Add undoing optional reloads to the block diagram.
17898 (lra_subreg_reload_pseudos): New.
17899 (lra_optional_reload_pseudos): Change comments.
17900 (lra): Init and clear lra_subreg_reload_pseudos. Clear
17901 lra_optional_reload_pseudos after undo transformations.
17902 * lra-assigns.c (pseudo_prefix_title): New.
17903 (lra_setup_reg_renumber): Use it.
17904 (spill_for): Ditto. Check subreg reload pseudos too.
17905 (assign_by_spills): Consider subreg reload pseudos too.
17906 * lra-constraints.c (simplify_operand_subreg): Use
17907 lra_subreg_reload_pseudos instead of lra_optional_reload_pseudos.
17908 (curr_insn_transform): Recognize and do optional reloads.
17909 (undo_optional_reloads): New.
17910 (lra_undo_inheritance): Call undo_optional_reloads.
17912 2013-07-05 Thomas Quinot <quinot@adacore.com>
17914 * tree-complex.c (expand_complex_operations_1): Fix typo.
17916 2013-07-04 Tejas Belagod <tejas.belagod@arm.com>
17918 * config/aarch64/aarch64-protos.h (cpu_vector_cost): New.
17919 (tune_params): New member 'const vec_costs'.
17920 * config/aarch64/aarch64.c (generic_vector_cost): New.
17921 (generic_tunings): New member 'generic_vector_cost'.
17922 (aarch64_builtin_vectorization_cost): New.
17923 (aarch64_add_stmt_cost): New.
17924 (TARGET_VECTORIZE_ADD_STMT_COST): New.
17925 (TARGET_VECTORIZE_BUILTIN_VECTORIZATION_COST): New.
17927 2013-07-03 Jakub Jelinek <jakub@redhat.com>
17930 * config/i386/predicates.md (vsib_address_operand): Disallow
17931 SYMBOL_REF or LABEL_REF in parts.disp if TARGET_64BIT && flag_pic.
17933 2013-07-03 Hans-Peter Nilsson <hp@bitrange.com>
17935 PR middle-end/55030
17936 * stmt.c (expand_nl_goto_receiver): Remove almost-copy of
17937 expand_builtin_setjmp_receiver.
17938 (expand_label): Adjust, call expand_builtin_setjmp_receiver
17939 with NULL for the label parameter.
17940 * builtins.c (expand_builtin_setjmp_receiver): Don't clobber
17941 the frame-pointer. Adjust comments.
17942 [HAVE_builtin_setjmp_receiver]: Emit builtin_setjmp_receiver
17943 only if LABEL is non-NULL.
17945 2013-07-03 Yufeng Zhang <yufeng.zhang@arm.com>
17947 * config/aarch64/aarch64.h (enum arm_abi_type): Remove.
17948 (ARM_ABI_AAPCS64): Ditto.
17950 (ARM_DEFAULT_ABI): Ditto.
17952 2013-07-03 James Greenhalgh <james.greenhalgh@arm.com>
17954 * config/aarch64/aarch64-builtins.c
17955 (aarch64_simd_expand_builtin): Handle AARCH64_SIMD_STORE1.
17956 * config/aarch64/aarch64-simd-builtins.def (ld1): New.
17958 * config/aarch64/aarch64-simd.md
17959 (aarch64_ld1<VALL:mode>): New.
17960 (aarch64_st1<VALL:mode>): Likewise.
17961 * config/aarch64/arm_neon.h
17962 (vld1<q>_<fpsu><8, 16, 32, 64>): Convert to RTL builtins.
17964 2013-07-02 Sriraman Tallam <tmsriram@google.com>
17966 * config/i386/i386.c (gate_insert_vzeroupper): Check if
17968 (ix86_option_override_internal):Turn on all -mavx target flags by
17969 default as they are dependent on AVX anyway.
17971 2013-07-02 Cary Coutant <ccoutant@google.com>
17973 * dwarf2out.c (loc_checksum): Call hash_loc_operands for a
17974 deterministic hash.
17975 (loc_checksum_ordered): Likewise.
17976 (hash_loc_operands): Remove inline keyword.
17978 2013-07-02 Jakub Jelinek <jakub@redhat.com>
17980 PR tree-optimization/57741
17981 * tree-vect-loop.c (vect_is_simple_iv_evolution): Disallow
17982 non-INTEGRAL_TYPE_P non-SCALAR_FLOAT_TYPE_P SSA_NAME step_exprs,
17983 or SCALAR_FLOAT_TYPE_P SSA_NAMEs if !flag_associative_math.
17984 Allow REAL_CST step_exprs if flag_associative_math.
17985 (get_initial_def_for_induction): Handle SCALAR_FLOAT_TYPE_P step_expr.
17987 2013-07-02 Ian Bolton <ian.bolton@arm.com>
17989 * config/aarch64/aarch64-simd.md (absdi2): Support abs for DI mode.
17991 2013-07-02 Ian Bolton <ian.bolton@arm.com>
17993 * config/aarch64/aarch64.md (*extr_insv_reg<mode>): New pattern.
17995 2013-07-02 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
17997 * config/arm/arm.md (arm_andsi3_insn): Add alternatives for 16-bit
17999 (iorsi3_insn): Likewise.
18000 (arm_xorsi3): Likewise.
18002 2013-07-01 Sofiane Naci <sofiane.naci@arm.com>
18004 * arm.md (attribute "wtype"): Delete. Move attribute values from here
18006 (attribute "type"): ... here, and prefix with "wmmx_".
18007 (attribute "core_cycles"): Update for attribute changes.
18008 * iwmmxt.md (tbcstv8qi): Update for attribute changes.
18009 (tbcstv4hi): Likewise.
18010 (tbcstv2si): Likewise.
18011 (iwmmxt_iordi3): Likewise.
18012 (iwmmxt_xordi3): Likewise.
18013 (iwmmxt_anddi3): Likewise.
18014 (iwmmxt_nanddi3): Likewise.
18015 (iwmmxt_arm_movdi): Likewise.
18016 (iwmmxt_movsi_insn): Likewise.
18017 (mov<mode>_internal): Likewise.
18018 (and<mode>3_iwmmxt): Likewise.
18019 (ior<mode>3_iwmmxt): Likewise.
18020 (xor<mode>3_iwmmxt): Likewise.
18021 (add<mode>3_iwmmxt): Likewise.
18022 (ssaddv8qi3): Likewise.
18023 (ssaddv4hi3): Likewise.
18024 (ssaddv2si3): Likewise.
18025 (usaddv8qi3): Likewise.
18026 (usaddv4hi3): Likewise.
18027 (usaddv2si3): Likewise.
18028 (sub<mode>3_iwmmxt): Likewise.
18029 (sssubv8qi3): Likewise.
18030 (sssubv4hi3): Likewise.
18031 (sssubv2si3): Likewise.
18032 (ussubv8qi3): Likewise.
18033 (ussubv4hi3): Likewise.
18034 (ussubv2si3): Likewise.
18035 (mulv4hi3_iwmmxt): Likewise.
18036 (smulv4hi3_highpart): Likewise.
18037 (umulv4hi3_highpart): Likewise.
18038 (iwmmxt_wmacs): Likewise.
18039 (iwmmxt_wmacsz): Likewise.
18040 (iwmmxt_wmacu): Likewise.
18041 (iwmmxt_wmacuz): Likewise.
18042 (iwmmxt_clrdi): Likewise.
18043 (iwmmxt_clrv8qi): Likewise.
18044 (iwmmxt_clr4hi): Likewise.
18045 (iwmmxt_clr2si): Likewise.
18046 (iwmmxt_uavgrndv8qi3): Likewise.
18047 (iwmmxt_uavgrndv4hi3): Likewise.
18048 (iwmmxt_uavgv8qi3): Likewise.
18049 (iwmmxt_uavgv4hi3): Likewise.
18050 (iwmmxt_tinsrb): Likewise.
18051 (iwmmxt_tinsrh): Likewise.
18052 (iwmmxt_tinsrw): Likewise.
18053 (iwmmxt_textrmub): Likewise.
18054 (iwmmxt_textrmsb): Likewise.
18055 (iwmmxt_textrmuh): Likewise.
18056 (iwmmxt_textrmsh): Likewise.
18057 (iwmmxt_textrmw): Likewise.
18058 (iwmxxt_wshufh): Likewise.
18059 (eqv8qi3): Likewise.
18060 (eqv4hi3): Likewise.
18061 (eqv2si3): Likewise.
18062 (gtuv8qi3): Likewise.
18063 (gtuv4hi3): Likewise.
18064 (gtuv2si3): Likewise.
18065 (gtv8qi3): Likewise.
18066 (gtv4hi3): Likewise.
18067 (gtv2si3): Likewise.
18068 (smax<mode>3_iwmmxt): Likewise.
18069 (umax<mode>3_iwmmxt): Likewise.
18070 (smin<mode>3_iwmmxt): Likewise.
18071 (umin<mode>3_iwmmxt): Likewise.
18072 (iwmmxt_wpackhss): Likewise.
18073 (iwmmxt_wpackwss): Likewise.
18074 (iwmmxt_wpackdss): Likewise.
18075 (iwmmxt_wpackhus): Likewise.
18076 (iwmmxt_wpackwus): Likewise.
18077 (iwmmxt_wpackdus): Likewise.
18078 (iwmmxt_wunpckihb): Likewise.
18079 (iwmmxt_wunpckihh): Likewise.
18080 (iwmmxt_wunpckihw): Likewise.
18081 (iwmmxt_wunpckilb): Likewise.
18082 (iwmmxt_wunpckilh): Likewise.
18083 (iwmmxt_wunpckilw): Likewise.
18084 (iwmmxt_wunpckehub): Likewise.
18085 (iwmmxt_wunpckehuh): Likewise.
18086 (iwmmxt_wunpckehuw): Likewise.
18087 (iwmmxt_wunpckehsb): Likewise.
18088 (iwmmxt_wunpckehsh): Likewise.
18089 (iwmmxt_wunpckehsw): Likewise.
18090 (iwmmxt_wunpckelub): Likewise.
18091 (iwmmxt_wunpckeluh): Likewise.
18092 (iwmmxt_wunpckeluw): Likewise.
18093 (iwmmxt_wunpckelsb): Likewise.
18094 (iwmmxt_wunpckelsh): Likewise.
18095 (iwmmxt_wunpckelsw): Likewise.
18096 (ror<mode>3): Likewise.
18097 (ashr<mode>3_iwmmxt): Likewise.
18098 (lshr<mode>3_iwmmxt): Likewise.
18099 (ashl<mode>3_iwmmxt): Likewise.
18100 (ror<mode>3_di): Likewise.
18101 (ashr<mode>3_di): Likewise.
18102 (lshr<mode>3_di): Likewise.
18103 (ashl<mode>3_di): Likewise.
18104 (iwmmxt_wmadds): Likewise.
18105 (iwmmxt_wmaddu): Likewise.
18106 (iwmmxt_tmia): Likewise.
18107 (iwmmxt_tmiaph): Likewise.
18108 (iwmmxt_tmiabb): Likewise.
18109 (iwmmxt_tmiatb): Likewise.
18110 (iwmmxt_tmiabt): Likewise.
18111 (iwmmxt_tmiatt): Likewise.
18112 (iwmmxt_tmovmskb): Likewise.
18113 (iwmmxt_tmovmskh): Likewise.
18114 (iwmmxt_tmovmskw): Likewise.
18115 (iwmmxt_waccb): Likewise.
18116 (iwmmxt_wacch): Likewise.
18117 (iwmmxt_waccw): Likewise.
18118 (iwmmxt_waligni): Likewise.
18119 (iwmmxt_walignr): Likewise.
18120 (iwmmxt_walignr0): Likewise.
18121 (iwmmxt_walignr1): Likewise.
18122 (iwmmxt_walignr2): Likewise.
18123 (iwmmxt_walignr3): Likewise.
18124 (iwmmxt_wsadb): Likewise.
18125 (iwmmxt_wsadh): Likewise.
18126 (iwmmxt_wsadbz): Likewise.
18127 (iwmmxt_wsadhz): Likewise.
18128 * iwmmxt2.md (iwmmxt_wabs<mode>3): Update for attribute changes.
18129 (iwmmxt_wabsdiffb): Likewise.
18130 (iwmmxt_wabsdiffh): Likewise.
18131 (iwmmxt_wabsdiffw): Likewise.
18132 (iwmmxt_waddsubhx): Likewise
18133 (iwmmxt_wsubaddhx): Likewise.
18134 (addc<mode>3): Likewise.
18135 (iwmmxt_avg4): Likewise.
18136 (iwmmxt_avg4r): Likewise.
18137 (iwmmxt_wmaddsx): Likewise.
18138 (iwmmxt_wmaddux): Likewise.
18139 (iwmmxt_wmaddsn): Likewise.
18140 (iwmmxt_wmaddun): Likewise.
18141 (iwmmxt_wmulwsm): Likewise.
18142 (iwmmxt_wmulwum): Likewise.
18143 (iwmmxt_wmulsmr): Likewise.
18144 (iwmmxt_wmulumr): Likewise.
18145 (iwmmxt_wmulwsmr): Likewise.
18146 (iwmmxt_wmulwumr): Likewise.
18147 (iwmmxt_wmulwl): Likewise.
18148 (iwmmxt_wqmulm): Likewise.
18149 (iwmmxt_wqmulwm): Likewise.
18150 (iwmmxt_wqmulmr): Likewise.
18151 (iwmmxt_wqmulwmr): Likewise.
18152 (iwmmxt_waddbhusm): Likewise.
18153 (iwmmxt_waddbhusl): Likewise.
18154 (iwmmxt_wqmiabb): Likewise.
18155 (iwmmxt_wqmiabt): Likewise.
18156 (iwmmxt_wqmiatb): Likewise.
18157 (iwmmxt_wqmiatt): Likewise.
18158 (iwmmxt_wqmiabbn): Likewise.
18159 (iwmmxt_wqmiabtn): Likewise.
18160 (iwmmxt_wqmiatbn): Likewise.
18161 (iwmmxt_wqmiattn): Likewise.
18162 (iwmmxt_wmiabb): Likewise.
18163 (iwmmxt_wmiabt): Likewise.
18164 (iwmmxt_wmiatb): Likewise.
18165 (iwmmxt_wmiatt): Likewise.
18166 (iwmmxt_wmiabbn): Likewise.
18167 (iwmmxt_wmiabtn): Likewise.
18168 (iwmmxt_wmiatbn): Likewise.
18169 (iwmmxt_wmiattn): Likewise.
18170 (iwmmxt_wmiawbb): Likewise.
18171 (iwmmxt_wmiawbt): Likewise.
18172 (iwmmxt_wmiawtb): Likewise.
18173 (iwmmxt_wmiawtt): Likewise.
18174 (iwmmxt_wmiawbbn): Likewise.
18175 (iwmmxt_wmiawbtn): Likewise.
18176 (iwmmxt_wmiawtbn): Likewise.
18177 (iwmmxt_wmiawttn): Likewise.
18178 (iwmmxt_wmerge): Likewise.
18179 (iwmmxt_tandc<mode>3): Likewise.
18180 (iwmmxt_torc<mode>3): Likewise.
18181 (iwmmxt_torvsc<mode>3): Likewise.
18182 (iwmmxt_textrc<mode>3): Likewise.
18183 * marvell-f-iwmmxt.md (wmmxt_shift): Update for attribute changes.
18184 (wmmxt_pack): Likewise.
18185 (wmmxt_mult_c1): Likewise.
18186 (wmmxt_mult_c2): Likewise.
18187 (wmmxt_alu_c1): Likewise.
18188 (wmmxt_alu_c2): Likewise.
18189 (wmmxt_alu_c3): Likewise.
18190 (wmmxt_transfer_c1): Likewise.
18191 (wmmxt_transfer_c2): Likewise.
18192 (wmmxt_transfer_c3): Likewise.
18193 (marvell_f_iwmmxt_wstr): Likewise.
18194 (marvell_f_iwmmxt_wldr): Likewise.
18196 2013-06-29 Yufeng Zhang <yufeng.zhang@arm.com>
18198 * config/aarch64/aarch64.c: Remove junk from the beginning of the file.
18200 2013-06-28 Vladimir Makarov <vmakarov@redhat.com>
18203 2013-06-28 Vladimir Makarov <vmakarov@redhat.com>
18204 * lra-constraints.c (need_for_split_p): Check call used hard regs
18205 living through calls.
18207 * lra-constraints.c (inherit_in_ebb): Reset live_hard_regs for
18208 call used regs for call insn.
18210 2013-06-28 Jakub Jelinek <jakub@redhat.com>
18213 * config/i386/i386.c (ix86_expand_builtin): If target == NULL and
18214 mode is VOIDmode, don't create a VOIDmode pseudo to copy result into.
18216 2013-06-28 Balaji V. Iyer <balaji.v.iyer@intel.com>
18218 * builtins.def: Fixed the function type of CILKPLUS_BUILTIN.
18220 2013-06-28 Vladimir Makarov <vmakarov@redhat.com>
18222 * lra-constraints.c (need_for_split_p): Check call used hard regs
18223 living through calls.
18225 2013-06-28 Michael Meissner <meissner@linux.vnet.ibm.com>
18228 * config/rs6000/rs6000.h (MODES_TIEABLE_P): Do not allow PTImode
18229 to tie with any other modes. Eliminate Altivec vector mode tests,
18230 since these are a subset of ALTIVEC or VSX vector modes. Simplify
18231 code, to return 0 if testing MODE2 for a condition, if we've
18232 already tested MODE1 for the same condition.
18234 2013-06-28 Marcus Shawcroft <marcus.shawcroft@arm.com>
18236 * config/aarch64/aarch64.c (aarch64_cannot_force_const_mem): Adjust
18239 2013-06-28 Marcus Shawcroft <marcus.shawcroft@arm.com>
18241 * config/aarch64/aarch64-protos.h (aarch64_symbol_type):
18242 Update comment w.r.t SYMBOL_TINY_ABSOLUTE.
18244 2013-06-28 Marcus Shawcroft <marcus.shawcroft@arm.com>
18246 * config/aarch64/aarch64-protos.h (aarch64_classify_symbol_expression):
18248 (aarch64_symbolic_constant_p): Remove.
18249 * config/aarch64/aarch64.c (aarch64_classify_symbol_expression): Remove
18250 static. Fix line length and white space.
18251 (aarch64_symbolic_constant_p): Remove.
18252 * config/aarch64/predicates.md (aarch64_valid_symref):
18253 Use aarch64_classify_symbol_expression.
18255 2013-06-28 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
18257 * config/arm/constraints.md (Ts): New constraint.
18258 * config/arm/arm.md (arm_movqi_insn): Add alternatives for
18260 (compare_scc): Use "Ts" constraint for operand 0.
18261 (ior_scc_scc): Likewise.
18262 (and_scc_scc): Likewise.
18263 (and_scc_scc_nodom): Likewise.
18264 (ior_scc_scc_cmp): Likewise for operand 7.
18265 (and_scc_scc_cmp): Likewise.
18266 * config/arm/thumb2.md (thumb2_movsi_insn):
18267 Add alternatives for 16-bit encodings.
18268 (thumb2_movhi_insn): Likewise.
18269 (thumb2_movsicc_insn): Likewise.
18270 (thumb2_and_scc): Take 'and' outside cond_exec. Use "Ts" constraint.
18271 (thumb2_negscc): Use "Ts" constraint.
18272 Move mvn instruction outside cond_exec block.
18273 * config/arm/vfp.md (thumb2_movsi_vfp): Add alternatives
18274 for 16-bit encodings.
18276 2013-06-28 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
18278 * config/arm/arm.md (arm_mulsi3_v6): Add alternative for 16-bit
18280 (mulsi3addsi_v6): Disable predicable variant for arm_restrict_it.
18281 (mulsi3subsi): Likewise.
18282 (mulsidi3adddi): Likewise.
18283 (mulsidi3_v6): Likewise.
18284 (umulsidi3_v6): Likewise.
18285 (umulsidi3adddi_v6): Likewise.
18286 (smulsi3_highpart_v6): Likewise.
18287 (umulsi3_highpart_v6): Likewise.
18288 (mulhisi3tb): Likewise.
18289 (mulhisi3bt): Likewise.
18290 (mulhisi3tt): Likewise.
18291 (maddhisi4): Likewise.
18292 (maddhisi4tb): Likewise.
18293 (maddhisi4tt): Likewise.
18294 (maddhidi4): Likewise.
18295 (maddhidi4tb): Likewise.
18296 (maddhidi4tt): Likewise.
18297 (zeroextractsi_compare0_scratch): Likewise.
18298 (insv_zero): Likewise.
18299 (insv_t2): Likewise.
18300 (anddi_notzesidi_di): Likewise.
18301 (anddi_notsesidi_di): Likewise.
18302 (andsi_notsi_si): Likewise.
18303 (iordi_zesidi_di): Likewise.
18304 (xordi_zesidi_di): Likewise.
18305 (andsi_iorsi3_notsi): Likewise.
18306 (smax_0): Likewise.
18307 (smax_m1): Likewise.
18308 (smin_0): Likewise.
18309 (not_shiftsi): Likewise.
18310 (unaligned_loadsi): Likewise.
18311 (unaligned_loadhis): Likewise.
18312 (unaligned_loadhiu): Likewise.
18313 (unaligned_storesi): Likewise.
18314 (unaligned_storehi): Likewise.
18315 (extv_reg): Likewise.
18316 (extzv_t2): Likewise.
18317 (divsi3): Likewise.
18318 (udivsi3): Likewise.
18319 (arm_zero_extendhisi2addsi): Likewise.
18320 (arm_zero_extendqisi2addsi): Likewise.
18321 (compareqi_eq0): Likewise.
18322 (arm_extendhisi2_v6): Likewise.
18323 (arm_extendqisi2addsi): Likewise.
18324 (arm_movt): Likewise.
18325 (thumb2_ldrd): Likewise.
18326 (thumb2_ldrd_base): Likewise.
18327 (thumb2_ldrd_base_neg): Likewise.
18328 (thumb2_strd): Likewise.
18329 (thumb2_strd_base): Likewise.
18330 (thumb2_strd_base_neg): Likewise.
18331 (arm_negsi2): Add alternative for 16-bit encoding.
18332 (arm_one_cmplsi2): Likewise.
18334 2013-06-28 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
18336 * config/arm/predicates.md (arm_cond_move_operator): New predicate.
18337 * config/arm/arm.md (movsfcc): Use arm_cond_move_operator predicate.
18338 (movdfcc): Likewise.
18339 * config/arm/vfp.md (*thumb2_movsf_vfp):
18340 Disable predication for arm_restrict_it.
18341 (*thumb2_movsfcc_vfp): Disable for arm_restrict_it.
18342 (*thumb2_movdfcc_vfp): Likewise.
18343 (*abssf2_vfp, *absdf2_vfp, *negsf2_vfp, *negdf2_vfp,*addsf3_vfp,
18344 *adddf3_vfp, *subsf3_vfp, *subdf3_vfpc, *divsf3_vfp,*divdf3_vfp,
18345 *mulsf3_vfp, *muldf3_vfp, *mulsf3negsf_vfp, *muldf3negdf_vfp,
18346 *mulsf3addsf_vfp, *muldf3adddf_vfp, *mulsf3subsf_vfp,
18347 *muldf3subdf_vfp, *mulsf3negsfaddsf_vfp, *fmuldf3negdfadddf_vfp,
18348 *mulsf3negsfsubsf_vfp, *muldf3negdfsubdf_vfp, *fma<SDF:mode>4,
18349 *fmsub<SDF:mode>4, *fnmsub<SDF:mode>4, *fnmadd<SDF:mode>4,
18350 *extendsfdf2_vfp, *truncdfsf2_vfp, *extendhfsf2, *truncsfhf2,
18351 *truncsisf2_vfp, *truncsidf2_vfp, fixuns_truncsfsi2, fixuns_truncdfsi2,
18352 *floatsisf2_vfp, *floatsidf2_vfp, floatunssisf2, floatunssidf2,
18353 *sqrtsf2_vfp, *sqrtdf2_vfp, *cmpsf_vfp, *cmpsf_trap_vfp, *cmpdf_vfp,
18354 *cmpdf_trap_vfp, <vrint_pattern><SDF:mode>2):
18355 Disable predication for arm_restrict_it.
18357 2013-06-28 Kirill Yukhin <kirill.yukhin@intel.com>
18359 * config/i386/bmiintrin.h (_bextr_u32): New.
18360 (_bextr_u64): Ditto.
18362 2013-06-27 Richard Sandiford <rdsandiford@googlemail.com>
18364 * config.gcc (mips*-mti-elf*, mips*-sde-elf*, mips64r5900-*-elf*)
18365 (mips64r5900el-*-elf*): Include mips/n32-elf.h.
18366 * config/mips/sde.h (LOCAL_LABEL_PREFIX, NO_DOLLAR_IN_LABEL)
18367 (LONG_DOUBLE_TYPE_SIZE, LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Move to...
18368 * config/mips/n32-elf.h: ...this new file.
18370 2013-06-27 Marc Glisse <marc.glisse@inria.fr>
18373 * config/i386/i386.c (enum ix86_builtins, bdesc_args): Remove
18374 IX86_BUILTIN_CMPNGTSS and IX86_BUILTIN_CMPNGESS.
18376 2013-06-27 Catherine Moore <clm@codesourcery.com>
18378 * config/mips/mips-tables.opt: Regenerate.
18379 * config/mips/mips-cpus.def: Add m14ke and m14kec.
18380 * config/mips/mips.h (BASE_DRIVER_SELF_SPECS): m14ke* implies -mdspr2.
18381 * doc/invoke.texi: Add -m14kc.
18383 2013-06-27 Jakub Jelinek <jakub@redhat.com>
18386 * config/i386/i386.md (bmi_bextr_<mode>): Swap predicates and
18387 constraints of operand 1 and 2.
18390 * config/i386/i386.md (bmi2_bzhi_<mode>3): Swap AND arguments
18391 to match RTL canonicalization. Swap predicates and
18392 constraints of operand 1 and 2.
18394 2013-06-27 Vladimir Makarov <vmakarov@redhat.com>
18396 * lra-constraints.c (inherit_in_ebb): Process static hard regs too.
18397 Process OP_INOUT regs for splitting too.
18399 2013-06-27 Jakub Jelinek <jakub@redhat.com>
18401 * tree-vect-stmts.c (vectorizable_store): Move ptr_incr var
18402 decl before the loop, initialize to NULL.
18403 (vectorizable_load): Initialize ptr_incr to NULL.
18405 2013-06-27 Martin Jambor <mjambor@suse.cz>
18408 * ipa-ref.h (ipa_maybe_record_reference): Declare.
18409 * ipa-ref.c (ipa_maybe_record_reference): New function.
18410 * cgraphclones.c (cgraph_create_virtual_clone): Use it.
18411 * ipa-cp.c (create_specialized_node): Record potential references from
18413 * Makefile.in (ipa-ref.o): Add IPA_REF_H to dependencies.
18415 2013-06-27 Yufeng Zhang <yufeng.zhang@arm.com>
18417 * config/aarch64/aarch64.c (aarch64_force_temporary): Add an extra
18418 parameter 'mode' of type 'enum machine_mode mode'; change to pass
18419 'mode' to force_reg.
18420 (aarch64_add_offset): Update calls to aarch64_force_temporary.
18421 (aarch64_expand_mov_immediate): Likewise.
18423 2013-06-27 Yufeng Zhang <yufeng.zhang@arm.com>
18425 * config/aarch64/aarch64.c (aarch64_add_offset): Change to pass
18426 'mode' to aarch64_plus_immediate and gen_rtx_PLUS.
18428 2013-06-27 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
18430 * config/s390/s390.c: Rename UNSPEC_CCU_TO_INT to
18431 UNSPEC_STRCMPCC_TO_INT and UNSPEC_CCZ_TO_INT to UNSPEC_CC_TO_INT.
18432 (struct machine_function): Add tbegin_p.
18433 (s390_canonicalize_comparison): Fold CC mode compares to
18434 conditional jump if possible.
18435 (s390_emit_jump): Return the emitted jump.
18436 (s390_branch_condition_mask, s390_branch_condition_mnemonic):
18437 Handle CCRAWmode compares.
18438 (s390_option_override): Default to -mhtm if available.
18439 (s390_reg_clobbered_rtx): Handle floating point regs as well.
18440 (s390_regs_ever_clobbered): Use s390_regs_ever_clobbered also for
18441 FPRs instead of df_regs_ever_live_p.
18442 (s390_optimize_nonescaping_tx): New function.
18443 (s390_init_frame_layout): Extend clobbered_regs array to cover
18445 (s390_emit_prologue): Call s390_optimize_nonescaping_tx.
18446 (s390_expand_tbegin): New function.
18447 (enum s390_builtin): New enum definition.
18448 (code_for_builtin): New array definition.
18449 (s390_init_builtins): New function.
18450 (s390_expand_builtin): New function.
18451 (TARGET_INIT_BUILTINS): Define.
18452 (TARGET_EXPAND_BUILTIN): Define.
18453 * common/config/s390/s390-common.c (processor_flags_table): Add PF_TX.
18454 * config/s390/predicates.md (s390_comparison): Handle CCRAWmode.
18455 (s390_alc_comparison): Likewise.
18456 * config/s390/s390-modes.def: Add CCRAWmode.
18457 * config/s390/s390.h (processor_flags): Add PF_TX.
18458 (TARGET_CPU_HTM): Define macro.
18459 (TARGET_HTM): Define macro.
18460 (TARGET_CPU_CPP_BUILTINS): Define __HTM__ for htm.
18461 * config/s390/s390.md: Rename UNSPEC_CCU_TO_INT to
18462 UNSPEC_STRCMPCC_TO_INT and UNSPEC_CCZ_TO_INT to UNSPEC_CC_TO_INT.
18463 (UNSPECV_TBEGIN, UNSPECV_TBEGINC, UNSPECV_TEND, UNSPECV_TABORT)
18464 (UNSPECV_ETND, UNSPECV_NTSTG, UNSPECV_PPA): New unspecv enum values.
18465 (TBEGIN_MASK, TBEGINC_MASK): New constants.
18466 ("*cc_to_int"): Move up.
18467 ("*mov<mode>cc", "*cjump_64", "*cjump_31"): Accept integer
18468 constants other than 0.
18469 ("*ccraw_to_int"): New insn and splitter definition.
18470 ("tbegin", "tbegin_nofloat", "tbegin_retry")
18471 ("tbegin_retry_nofloat", "tbeginc", "tend", "tabort")
18472 ("tx_assist"): New expander.
18473 ("tbegin_1", "tbegin_nofloat_1", "*tbeginc_1", "*tend_1")
18474 ("*tabort_1", "etnd", "ntstg", "*ppa"): New insn definition.
18475 * config/s390/s390.opt: Add -mhtm option.
18476 * config/s390/s390-protos.h (s390_emit_jump): Add return type.
18477 * config/s390/htmxlintrin.h: New file.
18478 * config/s390/htmintrin.h: New file.
18479 * config/s390/s390intrin.h: New file.
18480 * doc/extend.texi: Document htm builtins.
18481 * config.gcc: Add the new header files to extra_headers.
18483 2013-06-26 Thomas Schwinge <thomas@codesourcery.com>
18485 * config/i386/gnu.h [TARGET_LIBC_PROVIDES_SSP]
18486 (TARGET_CAN_SPLIT_STACK, TARGET_THREAD_SPLIT_STACK_OFFSET): Undefine.
18488 2013-06-26 Michael Meissner <meissner@linux.vnet.ibm.com>
18489 Pat Haugen <pthaugen@us.ibm.com>
18490 Peter Bergner <bergner@vnet.ibm.com>
18492 * config/rs6000/power8.md: New.
18493 * config/rs6000/rs6000-cpus.def (RS6000_CPU table): Adjust processor
18494 setting for power8 entry.
18495 * config/rs6000/t-rs6000 (MD_INCLUDES): Add power8.md.
18496 * config/rs6000/rs6000.c (is_microcoded_insn, is_cracked_insn): Adjust
18497 test for Power4/Power5 only.
18498 (insn_must_be_first_in_group, insn_must_be_last_in_group): Add Power8
18500 (force_new_group): Adjust comment.
18501 * config/rs6000/rs6000.md: Include power8.md.
18503 2013-06-26 Greta Yorsh <Greta.Yorsh@arm.com>
18505 * config/arm/arm.h (MAX_CONDITIONAL_EXECUTE): Define macro.
18506 * config/arm/arm-protos.h (arm_max_conditional_execute): New
18508 (tune_params): Update comment.
18509 * config/arm/arm.c (arm_cortex_a15_tune): Set max_cond_insns to 2.
18510 (arm_max_conditional_execute): New function.
18511 (thumb2_final_prescan_insn): Use max_insn_skipped and
18512 MAX_INSN_PER_IT_BLOCK to compute maximum instructions in a block.
18514 2013-06-25 Jakub Jelinek <jakub@redhat.com>
18516 PR tree-optimization/57705
18517 * tree-vect-loop.c (vect_is_simple_iv_evolution): Allow
18518 SSA_NAME step, provided that it is not defined inside the loop.
18519 (vect_analyze_scalar_cycles_1): Disallow SSA_NAME step in nested loop.
18520 (get_initial_def_for_induction): Handle SSA_NAME IV step.
18522 2013-06-25 Martin Jambor <mjambor@suse.cz>
18524 PR middle-end/57670
18525 * cgraph.h (cgraph_indirect_call_info): New flag member_ptr.
18526 * ipa-prop.c (ipa_print_node_jump_functions): Mark member pointer
18528 (ipa_note_param_call): Initialize member_ptr flag.
18529 (ipa_analyze_indirect_call_uses): Set member_ptr flag.
18530 (ipa_make_edge_direct_to_target): Bail out if member_ptr is set.
18531 (ipa_write_indirect_edge_info): Stream member_ptr flag.
18532 (ipa_read_indirect_edge_info): Likewise.
18534 2013-06-25 Richard Biener <rguenther@suse.de>
18536 PR middle-end/56977
18537 * passes.c (init_optimization_passes): Move pass_fold_builtins
18538 and pass_dce earlier with -Og.
18540 2013-06-25 Eric Botcazou <ebotcazou@adacore.com>
18542 * expr.c (expand_expr_real_1) <ARRAY_REF>: Fix formatting glitches.
18543 <BIT_FIELD_REF>: Remove trailing TAB.
18544 * varasm.c (output_constructor_bitfield): Fix formatting glitch and
18547 2013-06-24 Martin Jambor <mjambor@suse.cz>
18549 PR tree-optimization/57358
18550 * ipa-prop.c (ipa_func_spec_opts_forbid_analysis_p): New function.
18551 (ipa_compute_jump_functions_for_edge): Bail out if it returns true.
18552 (ipa_analyze_params_uses): Generate pessimistic info when true.
18554 2013-06-24 Martin Jambor <mjambor@suse.cz>
18556 PR tree-optimization/57539
18557 * cgraphclones.c (cgraph_clone_node): Add parameter new_inlined_to, set
18558 global.inlined_to of the new node to it. All callers changed.
18559 * ipa-inline-transform.c (clone_inlined_nodes): New variable
18560 inlining_into, pass it to cgraph_clone_node.
18561 * ipa-prop.c (ipa_propagate_indirect_call_infos): Do not call
18562 ipa_free_edge_args_substructures.
18563 (ipa_edge_duplication_hook): Only add edges from inlined nodes to
18564 rdesc linked list. Do not assert rdesc edges have inlined caller.
18565 Assert we have found an rdesc in the rdesc list.
18567 2013-06-24 Richard Biener <rguenther@suse.de>
18569 * pointer-set.h (struct pointer_set_t): Move here from pointer-set.c.
18570 (pointer_set_lookup): Declare.
18571 (class pointer_map): New template class implementing a
18572 generic pointer to T map.
18573 (pointer_map<T>::pointer_map, pointer_map<T>::~pointer_map,
18574 pointer_map<T>::contains, pointer_map<T>::insert,
18575 pointer_map<T>::traverse): New functions.
18576 * pointer-set.c (struct pointer_set_t): Moved to pointer-set.h.
18577 (pointer_set_lookup): New function.
18578 (pointer_set_contains): Use pointer_set_lookup.
18579 (pointer_set_insert): Likewise.
18580 (insert_aux): Remove.
18581 (struct pointer_map_t): Embed a pointer_set_t.
18582 (pointer_map_create): Adjust.
18583 (pointer_map_destroy): Likewise.
18584 (pointer_map_contains): Likewise.
18585 (pointer_map_insert): Likewise.
18586 (pointer_map_traverse): Likewise.
18587 * tree-streamer.h (struct streamer_tree_cache_d): Use a
18588 pointer_map<unsigned> instead of a pointer_map_t.
18589 * tree-streamer.c (streamer_tree_cache_insert_1): Adjust.
18590 (streamer_tree_cache_lookup): Likewise.
18591 (streamer_tree_cache_create): Likewise.
18592 (streamer_tree_cache_delete): Likewise.
18593 * lto-streamer.h (struct lto_tree_ref_encoder): Use a
18594 pointer_map<unsigned> instead of a pointer_map_t.
18595 (lto_init_tree_ref_encoder): Adjust.
18596 (lto_destroy_tree_ref_encoder): Likewise.
18597 * lto-section-out.c (lto_output_decl_index): Likewise.
18598 (lto_record_function_out_decl_state): Likewise.
18599 * dominance.c (iterate_fix_dominators): Use pointer_map<int>.
18601 2013-06-24 Richard Biener <rguenther@suse.de>
18603 PR tree-optimization/57488
18604 * tree-ssa-pre.c (insert): Clear NEW sets before each iteration.
18606 2013-06-24 Alan Modra <amodra@gmail.com>
18608 * config/rs6000/rs6000.c (vspltis_constant): Correct for little-endian.
18609 (gen_easy_altivec_constant): Likewise.
18610 * config/rs6000/predicates.md (easy_vector_constant_add_self,
18611 easy_vector_constant_msb): Likewise.
18613 2013-06-23 Jakub Jelinek <jakub@redhat.com>
18616 * common/config/i386/i386-common.c (ix86_handle_option): For OPT_mlzcnt
18617 add missing return true.
18619 2013-06-23 Oleg Endo <olegendo@gcc.gnu.org>
18622 * config/sh/predicates.md (general_extend_operand): Invoke
18623 general_movsrc_operand for memory operands.
18624 (general_movsrc_operand): Allow reg+reg addressing, do not use
18625 general_operand for memory operands.
18627 2013-06-23 Sriraman Tallam <tmsriram@google.com>
18629 * config/i386/i386.c (ix86_pragma_target_parse): Restore target
18630 when current target options does not apply.
18631 * config/i386/i386-protos.h (ix86_reset_previous_fndecl): New function.
18632 * config/i386/i386.c (ix86_reset_previous_fndecl): Ditto.
18633 * config/i386/bmiintrin.h: Pass appropriate target
18634 attributes to header.
18635 * config/i386/mmintrin.h: Ditto.
18636 * config/i386/nmmintrin.h: Ditto.
18637 * config/i386/avx2intrin.h: Ditto.
18638 * config/i386/fxsrintrin.h: Ditto.
18639 * config/i386/tbmintrin.h: Ditto.
18640 * config/i386/xsaveintrin.h: Ditto.
18641 * config/i386/f16cintrin.h: Ditto.
18642 * config/i386/xtestintrin.h: Ditto.
18643 * config/i386/xsaveoptintrin.h: Ditto.
18644 * config/i386/bmi2intrin.h: Ditto.
18645 * config/i386/lzcntintrin.h: Ditto.
18646 * config/i386/smmintrin.h: Ditto.
18647 * config/i386/wmmintrin.h: Ditto.
18648 * config/i386/x86intrin.h: Remove all header include guards.
18649 * config/i386/prfchwintrin.h: Ditto.
18650 * config/i386/pmmintrin.h: Ditto.
18651 * config/i386/tmmintrin.h: Ditto.
18652 * config/i386/xmmintrin.h: Ditto.
18653 * config/i386/popcntintrin.h: Ditto.
18654 * config/i386/rdseedintrin.h: Ditto.
18655 * config/i386/ammintrin.h: Ditto.
18656 * config/i386/emmintrin.h: Ditto.
18657 * config/i386/immintrin.h: Remove all header include guards.
18658 * config/i386/fma4intrin.h: Ditto.
18659 * config/i386/lwpintrin.h: Ditto.
18660 * config/i386/xopintrin.h: Ditto.
18661 * config/i386/ia32intrin.h: Ditto.
18662 * config/i386/avxintrin.h: Ditto.
18663 * config/i386/rtmintrin.h: Ditto.
18664 * config/i386/fmaintrin.h: Ditto.
18665 * config/i386/mm3dnow.h: Ditto.
18667 2013-06-22 Sriraman Tallam <tmsriram@google.com>
18669 * common/config/i386/i386-common.c: Handle LZCNT.
18671 2013-06-22 Andi Kleen <ak@linux.intel.com>
18673 * doc/extend.texi: Use __atomic_store_n instead of
18674 __atomic_store in HLE example.
18676 2013-06-22 Oleg Endo <olegendo@gcc.gnu.org>
18678 * config/sh/sh.c: Remove <cstdlib> workaround.
18680 2013-06-21 Andi Kleen <ak@linux.intel.com>
18682 * doc/extend.texi: Dont use __atomic_clear in HLE example. Fix typo.
18684 2013-06-21 Andi Kleen <ak@linux.intel.com>
18686 * doc/extend.texi: Document that __atomic_clear and
18687 __atomic_test_and_set should only be used with bool.
18689 2013-06-20 Jan Hubicka <jh@suse.cz>
18691 * gimple-fold.c (gimple_extract_devirt_binfo_from_cst): Use
18692 types_same_for_odr.
18693 * tree.c (decls_same_for_odr): New function.
18694 (same_for_edr): New function.
18695 (types_same_for_odr): New function.
18696 (get_binfo_at_offset): Use it.
18697 * tree.h (types_same_for_odr): Declare.
18699 2013-06-20 Oleg Endo <olegendo@gcc.gnu.org>
18700 Jason Merrill <jason@redhat.com>
18702 * system.h: Include <cstdlib> as well as <stdlib.h>.
18704 2013-06-20 Uros Bizjak <ubizjak@gmail.com>
18707 * config/i386/i386.c (construct_container): Report error if
18708 long double is used with disabled x87 float returns.
18710 2013-06-20 Jan Hubicka <jh@suse.cz>
18712 * lto-cgraph.c (input_symtab): Do not set cgraph state.
18714 2013-06-20 Joern Rennecke <joern.rennecke@embecosm.com>
18716 PR rtl-optimization/57425
18717 PR rtl-optimization/57569
18718 * alias.c (write_dependence_p): Remove parameters mem_mode and
18719 canon_mem_addr. Add parameters x_mode, x_addr and x_canonicalized.
18720 Changed all callers.
18721 (canon_anti_dependence): Get comments and semantics in sync.
18722 Add parameter mem_canonicalized. Changed all callers.
18723 * rtl.h (canon_anti_dependence): Update prototype.
18725 2013-06-20 Richard Biener <rguenther@suse.de>
18727 * data-streamer-in.c (streamer_read_uhwi): Optimize single
18728 byte case, inline streamer_read_uchar and defer section
18731 2013-06-20 Richard Biener <rguenther@suse.de>
18733 PR tree-optimization/57584
18734 * tree-ssa-loop-niter.c (expand_simple_operations): Avoid including
18735 SSA names into the expanded expression that take part in
18736 abnormal coalescing.
18738 2013-06-19 Sharad Singhai <singhai@google.com>
18740 * gcov.c (print_usage): Handle new option.
18741 (process_args): Ditto.
18742 (get_gcov_intermediate_filename): New function.
18743 (output_intermediate_file): New function.
18744 (output_gcov_file): New function
18745 (generate_results): Handle new option.
18746 (release_function): Relase demangled name.
18747 (read_graph_file): Handle demangled name.
18748 (output_lines): Ditto.
18749 * doc/gcov.texi: Document gcov intermediate format.
18751 2013-06-19 Vladimir Makarov <vmakarov@redhat.com>
18754 * lra.c (emit_add3_insn, emit_add2_insn): New functions.
18755 (lra_emit_add): Use the functions. Add comment about Y as an
18758 2013-06-19 David Edelsohn <dje.gcc@gmail.com>
18761 * collect2.c (collect_atexit): New.
18762 (collect_exit): Delete.
18763 (main): Register collect_atexit with atexit.
18764 (collect_wait): Change collect_exit to exit.
18766 * collect2.h (collect_exit): Delete.
18767 * tlink.c (do_tlink): Rename exit to ret. Change collect_exit to exit.
18769 2013-06-19 Wei Mi <wmi@google.com>
18771 PR rtl-optimization/57518
18772 * ira.c (set_paradoxical_subreg): Set pdx_subregs[regno]
18773 if regno is used in paradoxical subreg.
18774 (update_equiv_regs): Check pdx_subregs[regno] before
18775 set a reg to be equivalent with a mem.
18777 2013-06-19 Matthias Klose <doko@ubuntu.com>
18780 * file-find.h (find_a_file): Add a mode parameter.
18781 * file-find.c (find_a_file): Likewise.
18782 * gcc-ar.c (main): Call find_a_file with R_OK for the plugin,
18783 with X_OK for the executables.
18784 * collect2.c (main): Call find_a_file with X_OK.
18786 2013-06-19 Steve Ellcey <sellcey@mips.com>
18789 * config/mips/mips.md (casesi_internal_mips16_<mode>):
18790 Use NEXT_INSN instead of next_real_insn.
18792 2013-06-19 Jan Hubicka <jh@suse.cz>
18794 * cgraph.h (const_value_known_p): Replace by ...
18795 (ctor_for_folding): .. this one.
18796 * cgraphunit.c (process_function_and_variable_attributes): Use it.
18797 * lto-cgraph.c (compute_ltrans_boundary): Use ctor_for_folding.
18798 * expr.c (expand_expr_real_1): Likewise.
18799 (string_constant): Likewise.
18800 * tree-ssa-loop-ivcanon.c (constant_after_peeling): Likewise.
18801 * ipa.c (process_references): Likewise.
18802 (symtab_remove_unreachable_nodes): Likewise.
18803 * ipa-inline-analysis.c (param_change_prob): Likewise.
18804 * gimple-fold.c (canonicalize_constructor_val): Likewise.
18805 (get_base_constructor): Likwise.
18806 * varpool.c (varpool_remove_node): Likewise.
18807 (varpool_remove_initializer): LIkewise.
18808 (dump_varpool_node): LIkwise.
18809 (const_value_known_p): Rewrite to ...
18810 (ctor_for_folding): ... this one.
18812 2013-06-19 Jakub Jelinek <jakub@redhat.com>
18815 * gcc-ar.c (main): If not CROSS_DIRECTORY_STRUCTURE, look for
18816 PERSONALITY in $PATH derived prefixes.
18818 2013-06-19 Jeff Law <law@redhat.com>
18820 * tree-ssa-forwprop.c (simplify_bitwise_binary_boolean): Fix typo
18823 * tree-ssa-forwprop.c (simplify_bitwise_binary_boolean): New function.
18824 (simplify_bitwise_binary): Use it to simpify certain binary ops on
18827 2013-06-19 Sofiane Naci <sofiane.naci@arm.com>
18829 * config/arm/vfp.md: Move VFP instruction classification documentation
18831 * config/arm/arm.md: ... here. Update instruction classification
18834 2013-06-19 Richard Earnshaw <rearnsha@arm.com>
18836 arm.md (split for eq(reg, 0)): Add variants for ARMv5 and Thumb2.
18837 (peepholes for eq(reg, not-0)): Ensure condition register is dead after
18838 pattern. Use more efficient sequences on ARMv5 and Thumb2.
18840 2013-06-19 Steven Bosscher <steven@gcc.gnu.org>
18843 * config/s390/s390.c (s390_chunkify_start): Replace next_real_insn
18844 with NEXT_INSN. Use tablejump_p to check for jump table data
18847 2013-06-19 Paolo Carlini <paolo.carlini@oracle.com>
18850 * doc/cpp.texi [Standard Predefined Macros, __cplusplus]: Document
18851 that now in C++ the value is correct per the C++ standards.
18853 2013-06-19 Richard Biener <rguenther@suse.de>
18855 * expr.c (expand_expr_real_1): Use SCOPE_FILE_SCOPE_P to check
18856 for global context.
18858 2013-06-19 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
18861 2013-06-18 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
18864 * config/s390/s390.c (s390_chunkify_start): Replace next_real_insn
18865 with next_active_insn.
18867 2013-06-18 Sriraman Tallam <tmsriram@google.com>
18869 * ipa-inline.c (inline_always_inline_functions): Pretend always_inline
18870 functions are inlined during failures to flag an error.
18871 * tree-inline.c (expand_call_inline): Allow the error to be flagged
18872 in early inline pass.
18874 2013-06-18 H.J. Lu <hongjiu.lu@intel.com>
18876 * config/i386/i386.c (initial_ix86_tune_features): Fix a typo
18879 2013-06-18 Julian Brown <julian@codesourcery.com>
18881 * config/arm/arm.c (neon_vector_mem_operand): Add strict argument.
18882 Permit virtual register pre-reload if !strict.
18883 (coproc_secondary_reload_class): Adjust for neon_vector_mem_operand
18885 * config/arm/arm-protos.h (neon_vector_mem_operand): Adjust
18887 * config/arm/neon.md (movmisalign<mode>): Use
18888 neon_perm_struct_or_reg_operand instead of
18889 neon_struct_or_register_operand.
18890 (*movmisalign<mode>_neon_load, *movmisalign<mode>_neon_store): Use
18891 neon_permissive_struct_operand instead of neon_struct_operand.
18892 * config/arm/constraints.md (Un, Um, Us): Adjust calls to
18893 neon_vector_mem_operand.
18894 * config/arm/predicates.md (neon_struct_operand): Adjust call to
18895 neon_vector_mem_operand.
18896 (neon_permissive_struct_operand): New.
18897 (neon_struct_or_register_operand): Rename to...
18898 (neon_perm_struct_or_reg_operand): This. Adjust call to
18899 neon_vector_mem_operand.
18901 2013-06-18 Richard Biener <rguenther@suse.de>
18903 * Makefile.in (LTO_STREAMER_H): Add pointer-set.h dependency.
18904 * lto-streamer.h: Include pointer-set.h.
18905 (struct lto_decl_slot): Remove.
18906 (struct lto_tree_ref_encoder): Make tree_hash_table a pointer-map.
18907 Remove next_index entry.
18908 (lto_hash_decl_slot_node, lto_eq_decl_slot_node,
18909 lto_hash_type_slot_node, lto_eq_type_slot_node): Remove.
18910 (lto_init_tree_ref_encoder): Adjust.
18911 (lto_destroy_tree_ref_encoder): Likewise.
18912 * lto-section-out.c (lto_hash_decl_slot_node, lto_eq_decl_slot_node,
18913 lto_hash_type_slot_node, lto_eq_type_slot_node): Remove.
18914 (lto_output_decl_index): Adjust.
18915 (lto_new_out_decl_state): Likewise.
18916 (lto_record_function_out_decl_state): Likewise.
18917 * lto-streamer-out.c (copy_function): Likewise.
18919 2013-06-18 Richard Biener <rguenther@suse.de>
18921 * Makefile.in (cgraphunit.o): Add $(CFGLOOP_H) dependency.
18922 * cgraphunit.c: Include cfgloop.h.
18923 (init_lowered_empty_function): Initialize the loop tree.
18924 (assemble_thunk): Insert new BBs into loops.
18926 2013-06-18 Richard Biener <rguenther@suse.de>
18928 * tree-streamer.h (streamer_tree_cache_create): Adjust prototype.
18929 * tree-streamer.c (streamer_tree_cache_create): Make maintaining
18930 the map from cache entry to cache index optional.
18931 (streamer_tree_cache_replace_tree): Adjust accordingly.
18932 (streamer_tree_cache_append): Likewise.
18933 (streamer_tree_cache_delete): Likewise.
18934 * lto-streamer-in.c (lto_data_in_create): Do not maintain the
18935 streamer cache map from cache entry to cache index.
18936 * lto-streamer-out.c (create_output_block): Adjust.
18938 2013-06-18 Sofiane Naci <sofiane.naci@arm.com>
18940 * config/arm/arm.md (attribute "insn"): Move multiplication and
18941 division attributes to...
18942 (attribute "type"): ... here. Remove mult.
18943 (attribute "mul32"): New attribute.
18944 (attribute "mul64"): Add umaal.
18945 (*arm_mulsi3): Update attributes.
18946 (*arm_mulsi3_v6): Likewise.
18947 (*thumb_mulsi3): Likewise.
18948 (*thumb_mulsi3_v6): Likewise.
18949 (*mulsi3_compare0): Likewise.
18950 (*mulsi3_compare0_v6): Likewise.
18951 (*mulsi_compare0_scratch): Likewise.
18952 (*mulsi_compare0_scratch_v6): Likewise.
18953 (*mulsi3addsi): Likewise.
18954 (*mulsi3addsi_v6): Likewise.
18955 (*mulsi3addsi_compare0): Likewise.
18956 (*mulsi3addsi_compare0_v6): Likewise.
18957 (*mulsi3addsi_compare0_scratch): Likewise.
18958 (*mulsi3addsi_compare0_scratch_v6): Likewise.
18959 (*mulsi3subsi): Likewise.
18960 (*mulsidi3adddi): Likewise.
18961 (*mulsi3addsi_v6): Likewise.
18962 (*mulsidi3adddi_v6): Likewise.
18963 (*mulsidi3_nov6): Likewise.
18964 (*mulsidi3_v6): Likewise.
18965 (*umulsidi3_nov6): Likewise.
18966 (*umulsidi3_v6): Likewise.
18967 (*umulsidi3adddi): Likewise.
18968 (*umulsidi3adddi_v6): Likewise.
18969 (*smulsi3_highpart_nov6): Likewise.
18970 (*smulsi3_highpart_v6): Likewise.
18971 (*umulsi3_highpart_nov6): Likewise.
18972 (*umulsi3_highpart_v6): Likewise.
18973 (mulhisi3): Likewise.
18974 (*mulhisi3tb): Likewise.
18975 (*mulhisi3bt): Likewise.
18976 (*mulhisi3tt): Likewise.
18977 (maddhisi4): Likewise.
18978 (*maddhisi4tb): Likewise.
18979 (*maddhisi4tt): Likewise.
18980 (maddhidi4): Likewise.
18981 (*maddhidi4tb): Likewise.
18982 (*maddhidi4tt): Likewise.
18983 (divsi3): Likewise.
18984 (udivsi3): Likewise.
18985 * config/arm/thumb2.md (thumb2_mulsi_short): Update attributes.
18986 (thumb2_mulsi_short_compare0): Likewise.
18987 (thumb2_mulsi_short_compare0_scratch): Likewise.
18988 * config/arm/arm1020e.md (1020mult1): Update attribute change.
18989 (1020mult2): Likewise.
18990 (1020mult3): Likewise.
18991 (1020mult4): Likewise.
18992 (1020mult5): Likewise.
18993 (1020mult6): Likewise.
18994 * config/arm/cortex-a15.md (cortex_a15_mult32): Update attribute
18996 (cortex_a15_mult64): Likewise.
18997 (cortex_a15_sdiv): Likewise.
18998 (cortex_a15_udiv): Likewise.
18999 * config/arm/arm1026ejs.md (mult1): Update attribute change.
19005 * config/arm/marvell-pj4.md (pj4_ir_mul): Update attribute change.
19006 (pj4_ir_div): Likewise.
19007 * config/arm/arm1136jfs.md (11_mult1): Update attribute change.
19008 (11_mult2): Likewise.
19009 (11_mult3): Likewise.
19010 (11_mult4): Likewise.
19011 (11_mult5): Likewise.
19012 (11_mult6): Likewise.
19013 (11_mult7): Likewise.
19014 * config/arm/cortex-a8.md (cortex_a8_mul): Update attribute change.
19015 (cortex_a8_mla): Likewise.
19016 (cortex_a8_mull): Likewise.
19017 (cortex_a8_smulwy): Likewise.
19018 (cortex_a8_smlald): Likewise.
19019 * config/arm/cortex-m4.md (cortex_m4_alu): Update attribute change.
19020 * config/arm/cortex-r4.md (cortex_r4_mul_4): Update attribute change.
19021 (cortex_r4_mul_3): Likewise.
19022 (cortex_r4_mla_4): Likewise.
19023 (cortex_r4_mla_3): Likewise.
19024 (cortex_r4_smlald): Likewise.
19025 (cortex_r4_mull): Likewise.
19026 (cortex_r4_sdiv): Likewise.
19027 (cortex_r4_udiv): Likewise.
19028 * config/arm/cortex-a7.md (cortex_a7_mul): Update attribute change.
19029 (cortex_a7_idiv): Likewise.
19030 * config/arm/arm926ejs.md (9_mult1): Update attribute change.
19031 (9_mult2): Likewise.
19032 (9_mult3): Likewise.
19033 (9_mult4): Likewise.
19034 (9_mult5): Likewise.
19035 (9_mult6): Likewise.
19036 * config/arm/cortex-a53.md (cortex_a53_mul): Update attribute change.
19037 (cortex_a53_sdiv): Likewise.
19038 (cortex_a53_udiv): Likewise.
19039 * config/arm/fa726te.md (726te_mult_op): Update attribute change.
19040 * config/arm/fmp626.md (mp626_mult1): Update attribute change.
19041 (mp626_mult2): Likewise.
19042 (mp626_mult3): Likewise.
19043 (mp626_mult4): Likewise.
19044 * config/arm/fa526.md (526_mult1): Update attribute change.
19045 (526_mult2): Likewise.
19046 * config/arm/arm-generic.md (mult): Update attribute change.
19047 (mult_ldsched_strongarm): Likewise.
19048 (mult_ldsched): Likewise.
19049 (multi_cycle): Likewise.
19050 * config/arm/cortex-a5.md (cortex_a5_mul): Update attribute change.
19051 * config/arm/fa606te.md (606te_mult1): Update attribute change.
19052 (606te_mult2): Likewise.
19053 (606te_mult3): Likewise.
19054 (606te_mult4): Likewise.
19055 * config/arm/cortex-a9.md (cortex_a9_mult16): Update attribute change.
19056 (cortex_a9_mac16): Likewise.
19057 (cortex_a9_multiply): Likewise.
19058 (cortex_a9_mac): Likewise.
19059 (cortex_a9_multiply_long): Likewise.
19060 * config/arm/fa626te.md (626te_mult1): Update attribute change.
19061 (626te_mult2): Likewise.
19062 (626te_mult3): Likewise.
19063 (626te_mult4): Likewise.
19065 2013-06-18 Richard Biener <rguenther@suse.de>
19068 * lto-symtab.c (lto_symtab_merge_decls): Process nodes properly.
19070 2013-06-18 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
19073 * config/s390/s390.c (s390_chunkify_start): Replace next_real_insn
19074 with next_active_insn.
19076 2013-06-18 Alan Modra <amodra@gmail.com>
19078 * config/rs6000/rs6000.h (enum data_align): New.
19079 (LOCAL_ALIGNMENT, DATA_ALIGNMENT): Use rs6000_data_alignment.
19080 (DATA_ABI_ALIGNMENT): Define.
19081 (CONSTANT_ALIGNMENT): Correct comment.
19082 * config/rs6000/rs6000-protos.h (rs6000_data_alignment): Declare.
19083 * config/rs6000/rs6000.c (rs6000_data_alignment): New function.
19085 2013-06-17 David Malcolm <dmalcolm@redhat.com>
19087 * ggc-page.c (ggc_pch_write_object) <d>: Remove erroneous
19088 ATTRIBUTE_UNUSED marking.
19090 2013-06-17 Sofiane Naci <sofiane.naci@arm.com>
19092 * config/aarch64/aarch64-simd.md (aarch64_dup_lane<mode>): Add r<-w
19093 alternative and update.
19094 (aarch64_dup_lanedi): Delete.
19095 * config/aarch64/arm_neon.h (vdup<bhsd>_lane_*): Update.
19096 * config/aarch64/aarch64-simd-builtins.def: Update.
19098 2013-06-17 Richard Biener <rguenther@suse.de>
19100 * lto-streamer.h (enum LTO_tags): Add LTO_tree_scc.
19101 (lto_input_scc): Declare.
19102 (lto_input_tree_1): Likewise.
19103 (struct lto_stats_d): Add num_tree_bodies_output and
19104 num_pickle_refs_output.
19105 * lto-streamer-in.c (lto_read_body): Use streamer_tree_cache_get_tree.
19106 (lto_read_tree_1): Split out from ...
19107 (lto_read_tree): ... this.
19108 (lto_input_scc): New function.
19109 (lto_input_tree_1): Split out from ...
19110 (lto_input_tree): ... this. Handle LTO_tree_scc.
19111 (lto_data_in_create): Create the streamer cache without hashes.
19112 * lto-streamer-out.c (create_output_block): Create the streamer
19113 cache with hashes when not doing WPA.
19114 (lto_write_tree_1): Split out from ...
19115 (lto_write_tree): ... this.
19116 (get_symbol_initial_value): New function.
19117 (lto_output_tree_1): Split out from ...
19118 (lto_output_tree): ... this. Write trees as series of SCCs
19119 using a DFS walk via DFS_write_tree.
19120 (struct sccs, struct scc_entry): New types.
19121 (next_dfs_num, sccstack, sccstate, sccstate_obstack): New globals.
19122 (DFS_write_tree_body): New function.
19123 (DFS_write_tree): Likewise.
19124 (hash_tree): Likewise.
19125 (scc_entry_compare): Likewise.
19126 (hash_scc): Likewise.
19127 (tree_is_indexable): DEBUG_EXPR_DECLs are local entities.
19128 * tree-streamer-in.c (lto_input_ts_list_tree_pointers): Stream
19129 TREE_CHAIN as regular reference.
19130 (streamer_read_integer_cst): Remove.
19131 (streamer_get_pickled_tree): Adjust.
19132 * tree-streamer-out.c (streamer_write_chain): Disable streaming
19133 of DECL_EXTERNALs in BLOCK_VARS for now.
19134 (write_ts_list_tree_pointers): Stream TREE_CHAIN as regular
19136 * tree-streamer.c (streamer_tree_cache_add_to_node_array):
19137 Add hash value argument and record that if hashes are recorded
19139 (streamer_tree_cache_insert_1): Adjust.
19140 (streamer_tree_cache_insert): Likewise.
19141 (streamer_tree_cache_insert_at): Rename to ...
19142 (streamer_tree_cache_replace_tree): ... this and adjust.
19143 (streamer_tree_cache_append): Adjust.
19144 (record_common_node): Likewise.
19145 (streamer_tree_cache_create): Add argument whether to
19146 record hash values together with trees.
19147 (streamer_tree_cache_delete): Adjust.
19148 * tree-streamer.h (struct streamer_tree_cache_d): Add
19150 (streamer_read_integer_cst): Remove.
19151 (streamer_tree_cache_insert): Adjust.
19152 (streamer_tree_cache_append): Likewise.
19153 (streamer_tree_cache_insert_at): Rename to ...
19154 (streamer_tree_cache_replace_tree): ... this and adjust.
19155 (streamer_tree_cache_create): Add argument whether to record hashes.
19156 (streamer_tree_cache_get): Rename to ...
19157 (streamer_tree_cache_get_tree): ... this.
19158 (streamer_tree_cache_get_hash): New function.
19159 * tree.c (cache_integer_cst): New function.
19160 * tree.h (cache_integer_cst): Declare.
19161 (ANON_AGGRNAME_FORMAT, ANON_AGGRNAME_P): Move here from cp/cp-tree.h.
19162 * lto-symtab.c (lto_varpool_replace_node): Only release
19163 DECL_INITIAL of non-prevailing decls.
19164 * varpool.c (varpool_remove_initializer): Do not release
19165 DECL_INITIAL when we are still in CGRAPH_LTO_STREAMING.
19167 2013-06-16 Jürgen Urban <JuergenUrban@gmx.de>
19169 * config/mips/mips.h (ISA_HAS_MUL3): Include TARGET_MIPS5900.
19170 (ISA_HAS_MULT, ISA_HAS_DMULT, ISA_HAS_DIV, ISA_HAS_DDIV): New macros.
19171 * config/mips/mips.md (mul<mode>3, mul<mode>3_internal)
19172 (mul<mode>3_r4000): Require ISA_HAS_<D>MULT.
19173 (mul<mode>3_mul3): Handle TARGET_MIPS5900.
19174 (mulsidi3_64bit_dmul): Remove redundant TARGET_64BIT test.
19175 (<su>muldi3_highpart, <su>muldi3_highpart_internal, <u>mulditi3)
19176 (<u>mulditi3_internal, <u>mulditi3_r4000): Require ISA_HAS_DMULT
19177 instead of TARGET_64BIT.
19178 (divmod<mode>4, udivmod<mode>4, <u>divmod<GPR:mode>4_hilo_<HILO:mode>):
19179 Require ISA_HAS_<D>DIV.
19181 2013-06-16 Richard Sandiford <rdsandiford@googlemail.com>
19183 * config.gcc (mips*-mti-linux*, mips64*-*-linux*, mipsisa64*-*-linux*)
19184 (mips*-*-linux*): Move default with_llsc setting to where other
19186 (mips*-*-vxworks*): Move with_arch default from with_cpu block to
19188 (mips64r5900-*-*, mips64r5900el-*-*, mipsr5900-*-*, mipsr5900el-*-*):
19189 Likewise. Remove default with_tune setting. Move default float
19190 setting to its own block. Handle with_llsc in the same block as above.
19192 2013-06-16 Joern Rennecke <joern.rennecke@embecosm.com>
19194 PR rtl-optimization/57425
19195 PR rtl-optimization/57569
19196 * alias.c (write_dependence_p): Add new parameters mem_mode,
19197 canon_mem_addr and mem_canonicalized. Change type of writep to bool.
19198 Changed all callers.
19199 (canon_anti_dependence): New function.
19200 * cse.c (check_dependence): Use canon_anti_dependence.
19201 * cselib.c (cselib_invalidate_mem): Likewise.
19202 * rtl.h (canon_anti_dependence): Declare.
19204 2013-06-16 Jürgen Urban <JuergenUrban@gmx.de>
19206 * config/mips/mips.h (ISA_HAS_LL_SC): Exclude TARGET_MIPS5900.
19207 * config/mips/mips.c (mips_start_ll_sc_sync_block): Output
19208 ".set mips3" for 64-bit targets.
19210 2013-06-15 Dehao Chen <dehao@google.com>
19212 * tree-flow.h (gimple_check_call_matching_types): Add new argument.
19213 * gimple-low.c (gimple_check_call_matching_types): Likewise.
19214 (gimple_check_call_args): Likewise.
19215 * value-prof.c (check_ic_target): Likewise.
19216 * ipa-inline.c (early_inliner): Likewise.
19217 * ipa-prop.c (update_indirect_edges_after_inlining): Likewise.
19218 * cgraph.c (cgraph_create_edge_1): Likewise.
19219 (cgraph_make_edge_direct): Likewise.
19221 2013-06-14 Michael Meissner <meissner@linux.vnet.ibm.com>
19224 * config/rs6000/rs6000.md (mov<mode>_ppc64): Call
19225 rs6000_output_move_128bit to handle emitting quad memory
19226 operations. Set attribute length to 8 bytes.
19228 2013-06-14 Vidya Praveen <vidyapraveen@arm.com>
19230 * config/aarch64/aarch64-simd.md (aarch64_<su>mlal_lo<mode>):
19232 (aarch64_<su>mlal_hi<mode>, aarch64_<su>mlsl_lo<mode>): Likewise.
19233 (aarch64_<su>mlsl_hi<mode>, aarch64_<su>mlal<mode>): Likewise.
19234 (aarch64_<su>mlsl<mode>): Likewise.
19236 2013-06-14 Mike Stump <mikestump@comcast.net>
19238 * Makefile.in (TARGET_H): Add insn-codes.h.
19240 2013-06-14 Alan Modra <amodra@gmail.com>
19242 PR middle-end/57134
19243 PR middle-end/57586
19244 * expr.c (expand_expr_real_1 <normal_inner_ref>): Pass
19245 EXPAND_MEMORY and EXPAND_WRITE to recursive call. Don't use
19246 bitfield expansion when EXPAND_MEMORY.
19247 (expand_expr_real_1 <VIEW_CONVERT_EXPR>): Pass modifier likewise.
19249 2013-06-13 Michael Meissner <meissner@linux.vnet.ibm.com>
19251 * config/rs6000/rs6000.c (rs6000_option_override_internal): Move
19252 test for clearing quad memory on 32-bit later.
19254 2013-06-13 Marc Glisse <marc.glisse@inria.fr>
19256 * fold-const.c (negate_expr_p): Handle VECTOR_CST.
19257 (fold_negate_expr): Likewise.
19258 (fold_real_zero_addition_p): Handle vectors.
19259 (fold_binary_loc) <PLUS_EXPR, MINUS_EXPR>: Likewise.
19261 2013-06-14 Alan Modra <amodra@gmail.com>
19263 * varasm.c (force_const_mem): Revert 2013-06-07 change.
19265 2013-06-13 Jan Hubicka <jh@suse.cz>
19267 * ipa.c (cgraph_externally_visible_p, varpool_externally_visible_p):
19268 Local comdats are not externally visible.
19269 * symtab.c (dump_symtab_base): Dump externally visible.
19270 (verify_symtab_base): Verify back links in the symtab hash.
19272 2013-06-13 Bin Cheng <bin.cheng@arm.com>
19274 * fold-const.c (operand_equal_p): Consider NOP_EXPR and
19275 CONVERT_EXPR as equal nodes.
19277 2013-06-13 Bin Cheng <bin.cheng@arm.com>
19279 * rtlanal.c (noop_move_p): Check the code to be executed for COND_EXEC.
19281 2013-06-13 Marc Glisse <marc.glisse@inria.fr>
19283 * tree-ssa-forwprop.c (simplify_bitwise_binary, associate_plusminus):
19284 Generalize to complex and vector.
19285 * tree.c (build_all_ones_cst): New function.
19286 * tree.h (build_all_ones_cst): Declare it.
19288 2013-06-13 Alan Modra <amodra@gmail.com>
19290 * config/rs6000/rs6000.h (LONG_DOUBLE_LARGE_FIRST): Define.
19291 * config/rs6000/rs6000.md (signbittf2): New insn.
19292 (extenddftf2_internal): Use LONG_DOUBLE_LARGE_FIRST.
19293 (abstf2_internal, cmptf_internal2): Likewise.
19294 * config/rs6000/spe.md (spe_abstf2_cmp, spe_abstf2_tst): Likewise.
19296 2013-06-12 Michael Meissner <meissner@linux.vnet.ibm.com>
19297 Pat Haugen <pthaugen@us.ibm.com>
19298 Peter Bergner <bergner@vnet.ibm.com>
19300 * config/rs6000/rs6000.c (emit_load_locked): Add support for
19301 power8 byte, half-word, and quad-word atomic instructions.
19302 (emit_store_conditional): Likewise.
19303 (rs6000_expand_atomic_compare_and_swap): Likewise.
19304 (rs6000_expand_atomic_op): Likewise.
19306 * config/rs6000/sync.md (larx): Add new modes for power8.
19308 (AINT): New mode iterator to include TImode as well as normal
19309 integer modes on power8.
19310 (fetchop_pred): Use int_reg_operand instead of gpc_reg_operand so
19311 that VSX registers are not considered. Use AINT mode iterator
19312 instead of INT1 to allow inclusion of quad word atomic operations
19314 (load_locked<mode>): Likewise.
19315 (store_conditional<mode>): Likewise.
19316 (atomic_compare_and_swap<mode>): Likewise.
19317 (atomic_exchange<mode>): Likewise.
19318 (atomic_nand<mode>): Likewise.
19319 (atomic_fetch_<fetchop_name><mode>): Likewise.
19320 (atomic_nand_fetch<mode>): Likewise.
19321 (mem_thread_fence): Use gen_loadsync_<mode> instead of enumerating
19323 (ATOMIC): On power8, add QImode, HImode modes.
19324 (load_locked<QHI:mode>_si): Varients of load_locked for QI/HI
19325 modes that promote to SImode.
19326 (load_lockedti): Convert TImode arguments to PTImode, so that we
19327 get a guaranteed even/odd register pair.
19328 (load_lockedpti): Likewise.
19329 (store_conditionalti): Likewise.
19330 (store_conditionalpti): Likewise.
19332 * config/rs6000/rs6000.md (QHI): New mode iterator for power8
19333 atomic load/store instructions.
19336 2013-06-12 Richard Sandiford <rdsandiford@googlemail.com>
19338 * config/mips/mips.md (extended_mips16): Include GOT and constant-pool
19340 (insn_count): New attribute, with most cases extracted from...
19341 (length): ...here. Redefine most cases in terms of insn_count.
19342 (single_insn): Delete.
19343 (can_delay): Use insn_count to check for single instructions.
19344 (*mul<mode>3_r4300, mul<mode>3_r4000, *mul_acc_si, *mul_acc_si_r3900)
19345 (*msac_using_macc, *mul_sub_si, <u>mulsidi3_32bit_r4000)
19346 (<u>mulsidi3_64bit_r4000, <su>muldi3_highpart_internal)
19347 (<su>mulsi3_highpart_split, <su>muldi3_highpart_internal)
19348 (<u>mulditi3_r4000, *div<mode>3, *recip<mode>3, divmod<mode>4)
19349 (udivmod<mode>4, sqrt<mode>2, *rsqrt<mode>a, *rsqrt<mode>b)
19350 (fix_truncdfsi2_macro, fix_truncsfsi2_macro, *lea_high64)
19351 (*lea64, cprestore_<mode>, clear_hazard_<mode>, <unnamed insn>)
19352 (casesi_internal_mips16_<mode>, *tls_get_tp_<mode>_split)
19353 (tls_get_tp_mips16, *tls_get_tp_mips16_call_<mode>): Use "insn_count"
19354 rather than "length".
19355 (tls_get_tp_<mode>): Likewise. Remove redundant "no_delay" attribute.
19356 * config/mips/mips-ps-3d.md (mips_c_cond_4s, mips_cabs_cond_4s):
19357 Use "insn_count" rather than "length".
19358 * config/mips/mips-dsp.md
19359 (mips_l<SHORT:size><u>x_ext<GPR:mode>_<P:mode>)
19360 (mips_l<GPR:size>x_<P:mode>, *mips_lw<u>x_<P:mode>_ext): Remove
19363 2013-06-12 Marc Glisse <marc.glisse@inria.fr>
19365 PR tree-optimization/57361
19366 * tree-ssa-dse.c (dse_possible_dead_store_p): Handle self-assignment.
19368 2013-06-12 Sofiane Naci <sofiane.naci@arm.com>
19370 * config/aarch64/aarch64-simd.md (aarch64_combine<mode>): Convert
19372 (aarch64_simd_combine<mode>): New instruction expansion.
19373 * config/aarch64/aarch64-protos.h (aarch64_split_simd_combine): New
19374 function prototype.
19375 * config/aarch64/aarch64.c (aarch64_split_combine): New function.
19376 * config/aarch64/iterators.md (Vdbl): Add entry for DF.
19378 2013-06-12 Jan Hubicka <jh@suse.cz>
19380 * cgraph.c (verify_edge_corresponds_to_fndecl): Be lax about
19381 decl has when in streaming stage.
19382 * lto-symtab.c (lto_symtab_merge_symbols): Likewise.
19383 * cgraph.h (cgraph_state): Add CGRAPH_LTO_STREAMING.
19385 2013-06-12 Roland Stigge <stigge@antcom.de>
19388 * config/rs6000/t-linux (MULTIARCH_DIRNAME): Fix SPE version detection.
19390 2013-06-12 Jakub Jelinek <jakub@redhat.com>
19392 PR tree-optimization/57537
19393 * tree-vect-patterns.c (vect_recog_widen_mult_pattern): If
19394 vect_handle_widen_op_by_const, convert oprnd1 to half_type1.
19396 2013-06-12 Richard Biener <rguenther@suse.de>
19398 * data-streamer.h (streamer_write_char_stream): CSE
19399 obs->current_pointer.
19400 * data-streamer-out.c (streamer_write_uhwi_stream): Inline
19401 streamer_write_char_stream manually and optimize the resulting loop.
19402 (streamer_write_hwi_stream): Likewise.
19404 2013-06-12 Jan Hubicka <jh@suse.cz>
19406 * lto-symtab.c (lto_symtab_merge_symbols): Populate symtab hashtable.
19407 * cgraph.h (varpool_create_empty_node): Declare.
19408 * lto-cgraph.c (input_node, input_varpool_node): Forcingly create
19410 * symtab.c (symtab_unregister_node): Be lax about missin entries
19412 (symtab_get_node): Update comment.
19413 * varpool.c (varpool_create_empty_node): Break out from ...
19414 (varpool_node_for_decl): ... here.
19415 * lto-streamer.h (lto_file_decl_data): Add RESOLUTION_MAP.
19417 2013-06-12 Eric Botcazou <ebotcazou@adacore.com>
19419 * expr.c (expand_expr_real_1) <TARGET_MEM_REF>: Use straight-line flow.
19420 <MEM_REF>: Use 'type' instead of TREE_TYPE (exp) and tidy up the first
19421 part. Use straight-line flow at the end.
19422 <COMPONENT_REF>: Remove superfluous else.
19423 <VIEW_CONVERT_EXPR>: Use 'type' instead of TREE_TYPE (exp).
19425 2013-06-12 Jakub Jelinek <jakub@redhat.com>
19428 * varasm.c (decl_binds_to_current_def_p): Call binds_local_p
19429 target hook even for !TREE_PUBLIC decls. If no resolution info
19430 is available, return false for common and external decls.
19432 2013-06-12 Kaushik Phatak <kaushik.phatak@kpitcummins.com>
19434 * config/rl78/constraints.md (U): New constraint.
19435 * config/rl78/rl78.md (*mulqi3_rl78,*mulhi3_rl78,*mulhi3_g13): Add
19438 2013-06-11 Michael Meissner <meissner@linux.vnet.ibm.com>
19441 * config/rs6000/driver-rs6000.c (elf_platform): Make buffer static
19442 to allow returning address to AT_PLATFORM name.
19444 2013-06-11 Jan Hubicka <jh@suse.cz>
19446 * cgraph.c (cgraph_create_function_alias): Set weakref flag.
19447 * cgraph.h (symtab_node_base): Add weakref flag.
19448 * cgraphunit.c (cgraph_reset_node): Clear weakref flag.
19449 (handle_alias_pairs): Set weakref flag, do not set DECL_EXTERNAL.
19450 (output_weakrefs): Use weakref flag.
19451 * fold-const.c (simple_operand_p): Handle WEAK.
19452 * gimple-fold.c (can_refer_decl_in_current_unit_p): Drop weakref.
19453 * ipa.c (varpool_externally_visible_p): Drop weakref.
19454 (function_and_variable_visibility): Update comment; fix weakref
19455 sanity checks; do not clear DECL_WEAK on them.
19456 * lto-cgraph.c (lto_output_node): update.
19457 (lto_output_varpool_node): Update.
19458 (input_overwrite_node): Update.
19459 (input_node): Update.
19460 (input_varpool_node): Update.
19461 * lto-symtab.c (lto_symtab_symbol_p): Do not special case weakrefs.
19462 (lto_symtab_merge_symbols): Add sanity check.
19463 (lto_symtab_prevailing_decl): Do not special case weakrefs.
19464 * passes.c (rest_of_decl_compilation): Set static flag, too.
19465 * symtab.c (dump_symtab_base): Dump weakref.
19466 (verify_symtab_base): Sanity check weakrefs.
19467 (symtab_make_decl_local): Remove duplicated code.
19468 (symtab_alias_ultimate_target): Simplify.
19469 * varpool.c (varpool_create_variable_alias): Set weakref flag.
19471 2013-06-11 Tom de Vries <tom@codesourcery.com>
19473 * genautomata.c (gen_regexp_sequence): Handle els_num == -1. Handle
19474 sequence_vect == NULL.
19476 2013-06-11 DJ Delorie <dj@redhat.com>
19478 * config/rl78/rl78.c (TARGET_UNWIND_WORD_MODE): Define.
19479 (rl78_unwind_word_mode): New.
19481 2013-06-11 David Malcolm <dmalcolm@redhat.com>
19483 * final.c (debug_prefix_maps): Make static.
19485 2013-06-11 David Malcolm <dmalcolm@redhat.com>
19487 * function.c (initial_trampoline): Remove stray copy.
19489 2013-06-11 Sofiane Naci <sofiane.naci@arm.com>
19491 * config/aarch64/aarch64-simd.md (move_lo_quad_<mode>): Update.
19493 2013-06-11 Martin Jambor <mjambor@suse.cz>
19495 * ipa-cp.c (ipa_get_indirect_edge_target_1): Check that param_index is
19496 within bounds at the beginning of the function.
19498 2013-06-11 Alan Modra <amodra@gmail.com>
19500 * varasm.c (get_section): Don't die on !DECL_P decl. Tidy error
19502 (get_named_section): Don't NULL !DECL_P decl.
19504 2013-06-11 Igor Zamyatin <igor.zamyatin@intel.com>
19506 * doc/invoke.texi (core-avx2): Document.
19508 (atom): Updated with MOVBE.
19510 2013-06-11 Richard Biener <rguenther@suse.de>
19512 * collect2.c (main): Do not redirect ld stdout/stderr when debugging.
19514 2013-06-11 Anton Blanchard <anton@samba.org>
19516 * config/rs6000/rs6000.c (rs6000_adjust_atomic_subword): Calculate
19517 correct shift value in little-endian mode.
19519 2013-06-11 Jakub Jelinek <jakub@redhat.com>
19522 * varasm.c (get_variable_align): Move #endif to the right place.
19524 2013-06-10 Cary Coutant <ccoutant@google.com>
19526 * dwarf2out.c (hash_external_ref): Use die_symbol or signature
19527 for hash so that hash table traversal order is deterministic.
19529 2013-06-10 Michael Meissner <meissner@linux.vnet.ibm.com>
19530 Pat Haugen <pthaugen@us.ibm.com>
19531 Peter Bergner <bergner@vnet.ibm.com>
19533 * config/rs6000/vector.md (GPR move splitter): Do not split moves
19534 of vectors in GPRS if they are direct moves or quad word load or
19537 * config/rs6000/rs6000-protos.h (rs6000_output_move_128bit): Add
19539 (direct_move_p): Likewise.
19540 (quad_load_store_p): Likewise.
19542 * config/rs6000/rs6000.c (enum rs6000_reg_type): Simplify register
19543 classes into bins based on the physical register type.
19544 (reg_class_to_reg_type): Likewise.
19545 (IS_STD_REG_TYPE): Likewise.
19546 (IS_FP_VECT_REG_TYPE): Likewise.
19547 (reload_fpr_gpr): Arrays to determine what insn to use if we can
19548 use direct move instructions.
19549 (reload_gpr_vsx): Likewise.
19550 (reload_vsx_gpr): Likewise.
19551 (rs6000_init_hard_regno_mode_ok): Precalculate the register type
19552 information that is a simplification of register classes. Also
19553 precalculate direct move reload helpers.
19554 (direct_move_p): New function to return true if the operation can
19555 be done as a direct move instruciton.
19556 (quad_load_store_p): New function to return true if the operation
19557 is a quad memory operation.
19558 (rs6000_legitimize_address): If quad memory, only allow register
19559 indirect for TImode addresses.
19560 (rs6000_legitimate_address_p): Likewise.
19561 (enum reload_reg_type): Delete, replace with rs6000_reg_type.
19562 (rs6000_reload_register_type): Likewise.
19563 (register_to_reg_type): Return register type.
19564 (rs6000_secondary_reload_simple_move): New helper function for
19565 secondary reload and secondary memory needed to identify anything
19566 that is a simple move, and does not need reloading.
19567 (rs6000_secondary_reload_direct_move): New helper function for
19568 secondary reload to identify cases that can be done with several
19569 instructions via the direct move instructions.
19570 (rs6000_secondary_reload_move): New helper function for secondary
19571 reload to identify moves between register types that can be done.
19572 (rs6000_secondary_reload): Add support for quad memory operations
19573 and for direct move.
19574 (rs6000_secondary_memory_needed): Likewise.
19575 (rs6000_debug_secondary_memory_needed): Change argument names.
19576 (rs6000_output_move_128bit): New function to return the move to
19577 use for 128-bit moves, including knowing about the various
19578 limitations of quad memory operations.
19580 * config/rs6000/vsx.md (vsx_mov<mode>): Add support for quad
19581 memory operations. call rs6000_output_move_128bit for the actual
19582 instruciton(s) to generate.
19583 (vsx_movti_64bit): Likewise.
19585 * config/rs6000/rs6000.md (UNSPEC_P8V_FMRGOW): New unspec values.
19586 (UNSPEC_P8V_MTVSRWZ): Likewise.
19587 (UNSPEC_P8V_RELOAD_FROM_GPR): Likewise.
19588 (UNSPEC_P8V_MTVSRD): Likewise.
19589 (UNSPEC_P8V_XXPERMDI): Likewise.
19590 (UNSPEC_P8V_RELOAD_FROM_VSX): Likewise.
19591 (UNSPEC_FUSION_GPR): Likewise.
19592 (FMOVE128_GPR): New iterator for direct move.
19593 (f32_lv): New mode attribute for load/store of SFmode/SDmode values.
19594 (f32_sv): Likewise.
19595 (f32_dm): Likewise.
19596 (zero_extend<mode>di2_internal1): Add support for power8 32-bit
19597 loads and direct move instructions.
19598 (zero_extendsidi2_lfiwzx): Likewise.
19599 (extendsidi2_lfiwax): Likewise.
19600 (extendsidi2_nocell): Likewise.
19601 (floatsi<mode>2_lfiwax): Likewise.
19602 (lfiwax): Likewise.
19603 (floatunssi<mode>2_lfiwzx): Likewise.
19604 (lfiwzx): Likewise.
19605 (fix_trunc<mode>_stfiwx): Likewise.
19606 (fixuns_trunc<mode>_stfiwx): Likewise.
19607 (mov<mode>_hardfloat, 32-bit floating point): Likewise.
19608 (mov<move>_hardfloat64, 64-bit floating point): Likewise.
19609 (parity<mode>2_cmpb): Set length/type attr.
19610 (unnamed shift right patterns, mov<mode>_internal2): Change type attr
19611 for 'mr.' to fast_compare.
19612 (bpermd_<mode>): Change type attr to popcnt.
19613 (p8_fmrgow_<mode>): New insns for power8 direct move support.
19614 (p8_mtvsrwz_1): Likewise.
19615 (p8_mtvsrwz_2): Likewise.
19616 (reload_fpr_from_gpr<mode>): Likewise.
19617 (p8_mtvsrd_1): Likewise.
19618 (p8_mtvsrd_2): Likewise.
19619 (p8_xxpermdi_<mode>): Likewise.
19620 (reload_vsx_from_gpr<mode>): Likewise.
19621 (reload_vsx_from_gprsf): Likewise.
19622 (p8_mfvsrd_3_<mode>): LIkewise.
19623 (reload_gpr_from_vsx<mode>): Likewise.
19624 (reload_gpr_from_vsxsf): Likewise.
19625 (p8_mfvsrd_4_disf): Likewise.
19626 (multi-word GPR splits): Do not split direct moves or quad memory
19629 2013-06-10 David Malcolm <dmalcolm@redhat.com>
19631 * tree-into-ssa.c (interesting_blocks): Make static.
19633 2013-06-10 Jakub Jelinek <jakub@redhat.com>
19636 * varasm.c (align_variable): Don't use DATA_ALIGNMENT or
19637 CONSTANT_ALIGNMENT if !decl_binds_to_current_def_p (decl).
19638 Use DATA_ABI_ALIGNMENT for that case instead if defined.
19639 (get_variable_align): New function.
19640 (get_variable_section, emit_bss, emit_common,
19641 assemble_variable_contents, place_block_symbol): Use
19642 get_variable_align instead of DECL_ALIGN.
19643 (assemble_noswitch_variable): Add align argument, use it
19644 instead of DECL_ALIGN.
19645 (assemble_variable): Adjust caller. Use get_variable_align
19646 instead of DECL_ALIGN.
19647 * config/i386/i386.h (DATA_ALIGNMENT): Adjust x86_data_alignment
19649 (DATA_ABI_ALIGNMENT): Define.
19650 * config/i386/i386-protos.h (x86_data_alignment): Adjust prototype.
19651 * config/i386/i386.c (x86_data_alignment): Add opt argument. If
19652 opt is false, only return the psABI mandated alignment increase.
19653 * config/c6x/c6x.h (DATA_ALIGNMENT): Renamed to...
19654 (DATA_ABI_ALIGNMENT): ... this.
19655 * config/mmix/mmix.h (DATA_ALIGNMENT): Renamed to...
19656 (DATA_ABI_ALIGNMENT): ... this.
19657 * config/mmix/mmix.c (mmix_data_alignment): Adjust function comment.
19658 * config/s390/s390.h (DATA_ALIGNMENT): Renamed to...
19659 (DATA_ABI_ALIGNMENT): ... this.
19660 * doc/tm.texi.in (DATA_ABI_ALIGNMENT): Document.
19661 * doc/tm.texi: Regenerated.
19663 2013-06-10 Uros Bizjak <ubizjak@gmail.com>
19665 * config/alpha/alpha.c (alpha_emit_xfloating_compare): Also use
19666 cmp_code to construct REG_EQUAL note.
19668 2013-06-09 Jakub Jelinek <jakub@redhat.com>
19671 * config/i386/i386.md (TARGET_READ_MODIFY_WRITE peepholes): Ensure
19672 that operands[2] doesn't overlap with operands[0].
19674 2013-06-09 David Edelsohn <dje.gcc@gmail.com>
19675 Jan Hubicka <jh@suse.cz>
19677 * config/rs6000/rs6000.c (print_operand, 'z'): Remove historical
19678 hack to mark symbols as used.
19680 2013-06-08 Vladimir Makarov <vmakarov@redhat.com>
19682 PR rtl-optimization/57559
19683 * lra-constraints.c (process_alt_operands): Don't discourage
19684 memory with known offset for offsetable memory constraint.
19685 * lra.c (lra_emit_add): Exchange y and z for 2-op add insn.
19687 2013-06-08 Eric Botcazou <ebotcazou@adacore.com>
19689 * varasm.c (struct oc_local_state): Reorder fields.
19690 (output_constructor_bitfield): Replace OUTER parameter with BIT_OFFSET
19691 and adjust accordingly.
19692 (output_constructor): Reorder initialization code and adjust call to
19693 output_constructor_bitfield.
19695 2013-06-07 Jan Hubicka <jh@suse.cz>
19697 * symtab.c (symtab_resolve_alias): Do not remove alias attribute.
19699 2013-06-07 David Malcolm <dmalcolm@redhat.com>
19701 * tree-object-size.c (unknown): Make const.
19703 2013-06-07 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
19705 * config/s390/s390.md (cpu_facility): Add cpu_zarch.
19706 ("*movmem_short", "*clrmem_short", "*cmpmem_short): Use cpu_zarch
19707 for last alternative in the cpu_facility attribute.
19709 2013-06-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
19712 * config/arm/arm.md (*xordi3_insn): Change to insn_and_split.
19713 (xordi3): Change operand 2 constraint to arm_xordi_operand.
19714 * config/arm/arm.c (const_ok_for_dimode_op): Handle XOR.
19715 * config/arm/constraints.md (Dg): New constraint.
19716 * config/arm/neon.md (xordi3_neon): Remove.
19717 (neon_veor<mode>): Generate xordi3 instead of xordi3_neon.
19718 * config/arm/predicates.md (arm_xordi_operand): New predicate.
19720 2013-06-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
19722 * config/arm/arm.md (anddi3_insn): Remove duplicate alternatives.
19723 Clean up alternatives.
19725 2013-06-07 Alan Modra <amodra@gmail.com>
19727 * config/rs6000/rs6000.c (setup_incoming_varargs): Round up
19730 2013-06-07 Alan Modra <amodra@gmail.com>
19732 * varasm.c (force_const_mem): Assert mode is not VOID or BLK.
19734 2013-06-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
19736 * config/arm/constraints.md (Df): New constraint.
19737 * config/arm/arm.md (iordi3_insn): Use Df constraint instead of De.
19738 Correct length attribute for last two alternatives.
19740 2013-06-07 Alan Modra <amodra@gmail.com>
19742 * config/rs6000/rs6000.c (rs6000_option_override_internal): Don't
19743 override user -mfp-in-toc.
19744 (offsettable_ok_by_alignment): Consider just the current access
19745 rather than the whole object, unless BLKmode. Handle
19746 CONSTANT_POOL_ADDRESS_P constants that lack a decl too.
19747 (use_toc_relative_ref): Allow CONSTANT_POOL_ADDRESS_P constants
19748 for -mcmodel=medium.
19749 * config/rs6000/linux64.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Don't
19750 override user -mfp-in-toc or -msum-in-toc. Default to
19751 -mno-fp-in-toc for -mcmodel=medium.
19753 2013-06-06 DJ Delorie <dj@redhat.com>
19755 * config/rl78/rl78.c (rl78_valid_pointer_mode): New, implements
19756 TARGET_VALID_POINTER_MODE.
19758 2013-06-06 Michael Meissner <meissner@linux.vnet.ibm.com>
19759 Pat Haugen <pthaugen@us.ibm.com>
19760 Peter Bergner <bergner@vnet.ibm.com>
19762 * doc/extend.texi (PowerPC AltiVec/VSX Built-in Functions):
19763 Document new power8 builtins.
19765 * config/rs6000/vector.md (and<mode>3): Add a clobber/scratch of a
19766 condition code register, to allow 128-bit logical operations to be
19767 done in the VSX or GPR registers.
19768 (nor<mode>3): Use the canonical form for nor.
19769 (eqv<mode>3): Add expanders for power8 xxleqv, xxlnand, xxlorc,
19770 vclz*, and vpopcnt* vector instructions.
19771 (nand<mode>3): Likewise.
19772 (orc<mode>3): Likewise.
19773 (clz<mode>2): LIkewise.
19774 (popcount<mode>2): Likewise.
19776 * config/rs6000/predicates.md (int_reg_operand): Rework tests so
19777 that only the GPRs are recognized.
19779 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
19780 support for new power8 builtins.
19782 * config/rs6000/rs6000-builtin.def (xscvspdpn): Add new power8
19784 (xscvdpspn): Likewise.
19790 (vpopcnt): Likewise.
19791 (vpopcntb): Likewise.
19792 (vpopcnth): Likewise.
19793 (vpopcntw): Likewise.
19794 (vpopcntd): Likewise.
19796 (vmrgew): Likewise.
19797 (vmrgow): Likewise.
19799 (eqv_v16qi3): Likewise.
19800 (eqv_v8hi3): Likewise.
19801 (eqv_v4si3): Likewise.
19802 (eqv_v2di3): Likewise.
19803 (eqv_v4sf3): Likewise.
19804 (eqv_v2df3): Likewise.
19806 (nand_v16qi3): Likewise.
19807 (nand_v8hi3): Likewise.
19808 (nand_v4si3): Likewise.
19809 (nand_v2di3): Likewise.
19810 (nand_v4sf3): Likewise.
19811 (nand_v2df3): Likewise.
19813 (orc_v16qi3): Likewise.
19814 (orc_v8hi3): Likewise.
19815 (orc_v4si3): Likewise.
19816 (orc_v2di3): Likewise.
19817 (orc_v4sf3): Likewise.
19818 (orc_v2df3): Likewise.
19820 * config/rs6000/rs6000.c (rs6000_option_override_internal): Only
19821 allow power8 quad mode in 64-bit.
19822 (rs6000_builtin_vectorized_function): Add support to vectorize
19823 ISA 2.07 count leading zeros, population count builtins.
19824 (rs6000_expand_vector_init): On ISA 2.07 use xscvdpspn to form
19825 V4SF vectors instead of xscvdpsp to avoid IEEE related traps.
19826 (builtin_function_type): Add vgbbd builtin function which takes an
19828 (altivec_expand_vec_perm_const): Add support for new power8 merge
19831 * config/rs6000/vsx.md (VSX_L2): New iterator for 128-bit types,
19832 that does not include TImdoe for use with 32-bit.
19833 (UNSPEC_VSX_CVSPDPN): Support for power8 xscvdpspn and xscvspdpn
19835 (UNSPEC_VSX_CVDPSPN): Likewise.
19836 (vsx_xscvdpspn): Likewise.
19837 (vsx_xscvspdpn): Likewise.
19838 (vsx_xscvdpspn_scalar): Likewise.
19839 (vsx_xscvspdpn_directmove): Likewise.
19840 (vsx_and<mode>3): Split logical operations into 32-bit and
19841 64-bit. Add support to do logical operations on TImode as well as
19842 VSX vector types. Allow logical operations to be done in either
19843 VSX registers or in general purpose registers in 64-bit mode. Add
19844 splitters if GPRs were used. For AND, add clobber of CCmode to
19845 allow use of ANDI on GPRs. Rewrite nor to use the canonical RTL
19847 (vsx_and<mode>3_32bit): Likewise.
19848 (vsx_and<mode>3_64bit): Likewise.
19849 (vsx_ior<mode>3): Likewise.
19850 (vsx_ior<mode>3_32bit): Likewise.
19851 (vsx_ior<mode>3_64bit): Likewise.
19852 (vsx_xor<mode>3): Likewise.
19853 (vsx_xor<mode>3_32bit): Likewise.
19854 (vsx_xor<mode>3_64bit): Likewise.
19855 (vsx_one_cmpl<mode>2): Likewise.
19856 (vsx_one_cmpl<mode>2_32bit): Likewise.
19857 (vsx_one_cmpl<mode>2_64bit): Likewise.
19858 (vsx_nor<mode>3): Likewise.
19859 (vsx_nor<mode>3_32bit): Likewise.
19860 (vsx_nor<mode>3_64bit): Likewise.
19861 (vsx_andc<mode>3): Likewise.
19862 (vsx_andc<mode>3_32bit): Likewise.
19863 (vsx_andc<mode>3_64bit): Likewise.
19864 (vsx_eqv<mode>3_32bit): Add support for power8 xxleqv, xxlnand,
19865 and xxlorc instructions.
19866 (vsx_eqv<mode>3_64bit): Likewise.
19867 (vsx_nand<mode>3_32bit): Likewise.
19868 (vsx_nand<mode>3_64bit): Likewise.
19869 (vsx_orc<mode>3_32bit): Likewise.
19870 (vsx_orc<mode>3_64bit): Likewise.
19872 * config/rs6000/rs6000.h (VLOGICAL_REGNO_P): Update comment.
19874 * config/rs6000/altivec.md (UNSPEC_VGBBD): Add power8 vgbbd
19876 (p8_vmrgew): Add power8 vmrgew and vmrgow instructions.
19877 (p8_vmrgow): Likewise.
19878 (altivec_and<mode>3): Add clobber of CCmode to allow AND using
19879 GPRs to be split under VSX.
19880 (p8v_clz<mode>2): Add power8 count leading zero support.
19881 (p8v_popcount<mode>2): Add power8 population count support.
19882 (p8v_vgbbd): Add power8 gather bits by bytes by doubleword
19885 * config/rs6000/rs6000.md (eqv<mode>3): Add support for powerp eqv
19888 * config/rs6000/altivec.h (vec_eqv): Add defines to export power8
19890 (vec_nand): Likewise.
19891 (vec_vclz): Likewise.
19892 (vec_vclzb): Likewise.
19893 (vec_vclzd): Likewise.
19894 (vec_vclzh): Likewise.
19895 (vec_vclzw): Likewise.
19896 (vec_vgbbd): Likewise.
19897 (vec_vmrgew): Likewise.
19898 (vec_vmrgow): Likewise.
19899 (vec_vpopcnt): Likewise.
19900 (vec_vpopcntb): Likewise.
19901 (vec_vpopcntd): Likewise.
19902 (vec_vpopcnth): Likewise.
19903 (vec_vpopcntw): Likewise.
19905 2013-06-06 Vladimir Makarov <vmakarov@redhat.com>
19907 PR rtl-optimization/57468
19908 * config/i386/i386.c (inline_secondary_memory_needed): Ignore
19911 2013-06-06 Vladimir Makarov <vmakarov@redhat.com>
19913 PR rtl-optimization/57459
19914 * lra-constraints.c (update_ebb_live_info): Fix typo for operand
19915 type when setting live regs.
19917 2013-06-06 Vladimir Makarov <vmakarov@redhat.com>
19919 * config/s390/s390.opt (mlra): New option.
19920 * config/s390/s390.c (s390_decompose_address): Check displacement
19921 for all registers for LRA.
19922 (s390_secondary_reload): Don't used secondary reloads for LRA.
19923 (s390_lra_p): New function.
19924 (TARGET_LRA_P): Define.
19925 * config/s390/s390.md (*movmem_short, *clrmem_short): Change value
19926 of attribute cpu_facility to zarch for the last alternative.
19927 (*cmpmem_short): Ditto.
19929 2013-06-06 Eric Botcazou <ebotcazou@adacore.com>
19931 * config/arm/arm.c (arm_r3_live_at_start_p): New predicate.
19932 (arm_compute_static_chain_stack_bytes): Use it. Tidy up.
19933 (arm_expand_prologue): Likewise.
19935 2013-06-06 Teresa Johnson <tejohnson@google.com>
19938 * ifcvt.c (find_if_case_1): Replace BB_COPY_PARTITION with assert
19939 as this is now done by redirect_edge_and_branch_force.
19940 * function.c (thread_prologue_and_epilogue_insns): Insert new bb after
19941 barriers, and fix interaction with splitting.
19942 * emit-rtl.c (try_split): Copy REG_CROSSING_JUMP notes.
19943 * cfgcleanup.c (try_forward_edges): Fix early return value to properly
19944 reflect changes made in the routine.
19945 * bb-reorder.c (emit_barrier_after_bb): Move to cfgrtl.c.
19946 (fix_up_fall_thru_edges): Remove incorrect check for bb layout order
19947 since this is called in cfglayout mode, and replace partition fixup
19948 with assert as that is now done by force_nonfallthru_and_redirect.
19949 (add_reg_crossing_jump_notes): Handle the fact that some jumps may
19950 already be marked with region crossing note.
19951 (insert_section_boundary_note): Make non-static, gate on flag
19952 has_bb_partition, rewrite to also check for multiple partitions.
19953 (rest_of_handle_reorder_blocks): Remove call to
19954 insert_section_boundary_note, now done later during free_cfg.
19955 (duplicate_computed_gotos): Don't duplicate partition crossing edge.
19956 * bb-reorder.h (insert_section_boundary_note): Declare.
19957 * Makefile.in (cfgrtl.o): Depend on bb-reorder.h
19958 * cfgrtl.c (rest_of_pass_free_cfg): If partitions exist
19959 invoke insert_section_boundary_note.
19960 (try_redirect_by_replacing_jump): Remove unnecessary
19961 check for region crossing note.
19962 (fixup_partition_crossing): New function.
19963 (rtl_redirect_edge_and_branch): Fixup partition boundaries.
19964 (emit_barrier_after_bb): Move here from bb-reorder.c, handle insertion
19965 in non-cfglayout mode.
19966 (force_nonfallthru_and_redirect): Fixup partition boundaries,
19967 remove old code that tried to do this. Emit barrier correctly
19968 when we are in cfglayout mode.
19969 (last_bb_in_partition): New function.
19970 (rtl_split_edge): Correctly fixup partition boundaries.
19971 (commit_one_edge_insertion): Remove old code that tried to
19972 fixup region crossing edge since this is now handled in
19973 split_block, and set up insertion point correctly since
19974 block may now end in a jump.
19975 (verify_hot_cold_block_grouping): Guard against checking when not in
19976 linearized RTL mode.
19977 (rtl_verify_edges): Add checks for incorrect/missing REG_CROSSING_JUMP
19979 (rtl_verify_flow_info_1): Move verify_hot_cold_block_grouping to
19980 rtl_verify_flow_info, so not called in cfglayout mode.
19981 (rtl_verify_flow_info): Move verify_hot_cold_block_grouping here.
19982 (fixup_reorder_chain): Remove old code that attempted to fixup region
19983 crossing note as this is now handled in force_nonfallthru_and_redirect.
19984 (duplicate_insn_chain): Don't duplicate switch section notes.
19985 (rtl_can_remove_branch_p): Remove unnecessary check for region crossing
19987 * basic-block.h (emit_barrier_after_bb): Declare.
19989 2013-06-06 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
19991 * config/arm/arm-fixed.md (add<mode>3,usadd<mode>3,ssadd<mode>3,
19992 sub<mode>3, ussub<mode>3, sssub<mode>3, arm_ssatsihi_shift,
19993 arm_usatsihi): Adjust alternatives for arm_restrict_it.
19995 2013-06-06 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
19997 * config/arm/arm-ldmstm.ml: Set "predicable_short_it" to "no"
19999 * config/arm/ldmstm.md: Regenerate.
20001 2013-06-06 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
20003 * config/arm/sync.md (atomic_loaddi_1):
20004 Disable predication for arm_restrict_it.
20005 (arm_load_exclusive<mode>): Likewise.
20006 (arm_load_exclusivesi): Likewise.
20007 (arm_load_exclusivedi): Likewise.
20008 (arm_load_acquire_exclusive<mode>): Likewise.
20009 (arm_load_acquire_exclusivesi): Likewise.
20010 (arm_load_acquire_exclusivedi): Likewise.
20011 (arm_store_exclusive<mode>): Likewise.
20012 (arm_store_exclusive<mode>): Likewise.
20013 (arm_store_release_exclusivedi): Likewise.
20014 (arm_store_release_exclusive<mode>): Likewise.
20016 2013-06-06 Richard Biener <rguenther@suse.de>
20018 * lto-streamer.h (enum LTO_tags): Move LTO_tree_pickle_reference
20020 (lto_tag_is_tree_code_p): Adjust.
20021 (lto_tag_is_gimple_code_p): Likewise.
20022 (lto_gimple_code_to_tag): Likewise.
20023 (lto_tag_to_gimple_code): Likewise.
20024 (lto_tree_code_to_tag): Likewise.
20025 (lto_tag_to_tree_code): Likewise.
20026 * data-streamer.h (streamer_write_hwi_in_range): Use
20027 uhwi streaming to stream the normalized range.
20028 (streamer_read_hwi_in_range): Likewise.
20030 2013-06-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
20032 * config/arm/arm.md (enabled_for_depr_it): New attribute.
20033 (predicable_short_it): Likewise.
20034 (predicated): Likewise.
20035 (enabled): Handle above.
20036 (define_cond_exec): Set predicated attribute to yes.
20038 2013-06-05 Mike Stump <mikestump@comcast.net>
20040 * gdbinit.in (__FUNCTION__): Add.
20042 2013-06-05 Uros Bizjak <ubizjak@gmail.com>
20044 * config/alpha/alpha.c (alpha_emit_conditional_move): Swap all
20045 GE, GT, GEU and GTU compares, modulo DImode compares with zero.
20047 2013-06-05 Jan Hubicka <jh@suse.cz>
20049 * varasm.c (mark_decl_referenced): Revert the removal until targets
20052 2013-06-05 David Edelsohn <dje.gcc@gmail.com>
20054 * config/rs6000/rs6000.c (print_operand, 'z'): Use DECL_PRESERVE_P
20055 instead of mark_decl_referenced.
20057 2013-06-05 Jan Hubicka <jh@suse.cz>
20059 * cgraph.c (cgraph_remove_node): Clear forced_by_abi.
20060 (cgraph_node_cannot_be_local_p_1): Honnor symbol.forced_by_abi
20061 and symtab_used_from_object_file_p.
20062 (cgraph_make_node_local_1): Clear forced_by_abi.
20063 (cgraph_can_remove_if_no_direct_calls_and): Use forced_by_abi
20064 * cgraph.h (symtab_node_base): Add forced_by_abi.
20065 (decide_is_variable_needed): Remove.
20066 (varpool_can_remove_if_no_refs): Honnor symbol.forced_by_abi.
20067 * cgraphunit.c (cgraph_decide_is_function_needed): Rename to ..
20068 (decide_is_symbol_needed): ... this one; handle symbols in general;
20069 always analyze virtuals; honnor forced_by_abi.
20070 (cgraph_finalize_function): Update.
20071 (varpool_finalize_decl): Update.
20072 (symbol_defined_and_needed): Remove.
20073 (analyze_functions): Update.
20074 * lto-cgraph.c (lto_output_node, lto_output_varpool_node,
20075 output_refs, input_overwrite_node): Handle forced_by_abi.
20076 * ipa.c (cgraph_address_taken_from_non_vtable_p): Rename to ...
20077 (address_taken_from_non_vtable_p): ... this one.
20078 (comdat_can_be_unshared_p_1): New function.
20079 (cgraph_comdat_can_be_unshared_p): Rename to ...
20080 (comdat_can_be_unshared_p): ... this one; handle symbols in general.
20081 (varpool_externally_visible_p): Use comdat_can_be_unshared_p.
20082 (function_and_variable_visibility): Clear forced_by_abi as needed.
20083 * trans-mem.c (ipa_tm_mark_forced_by_abi_node): New functoin.
20084 (ipa_tm_create_version_alias, ipa_tm_create_version): Update.
20085 * symtab.c (dump_symtab_base): Dump forced_by_abi.
20086 * varpool.c (decide_is_variable_needed): Remove.
20088 2013-06-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
20090 * config/arm/arm.c (MAX_INSN_PER_IT_BLOCK): New macro.
20091 (arm_option_override): Override arm_restrict_it where appropriate.
20092 (thumb2_final_prescan_insn): Use MAX_INSN_PER_IT_BLOCK.
20093 * config/arm/arm.opt (mrestrict-it): New command-line option.
20094 * doc/invoke.texi: Document -mrestrict-it.
20096 2013-06-05 David Malcolm <dmalcolm@redhat.com>
20098 * tsan.c (tsan_atomic_table): Make const.
20100 2013-06-05 Richard Biener <rguenther@suse.de>
20102 * tree-streamer.c (streamer_tree_cache_insert_1): Update the
20103 index associated with the tree we are supposed to replace.
20104 * tree-streamer-out.c (pack_ts_base_value_fields): Output
20105 TREE_ASM_WRITTEN as zero for everything but SSA names.
20107 2013-06-05 David Malcolm <dmalcolm@redhat.com>
20109 * tree-ssa-structalias.c (call_stmt_vars): Make static.
20111 2013-06-04 Jan Hubicka <jh@suse.cz>
20113 * lto-cgraph.c (get_alias_symbol): Remove weakref sanity check.
20114 (input_node, input_varpool_node): Handle correctly external same
20116 * ipa.c (symtab_remove_unreachable_nodes): Do not remove external
20117 nodes at ltrans stage.
20119 2013-06-04 Jan Hubicka <jh@suse.cz>
20121 * ipa-inline.c (update_caller_keys): Fix availability test.
20122 (update_callee_keys): Likewise.
20123 * symtab.c (symtab_alias_ultimate_target): Make availaiblity logic
20124 to follow ELF standard.
20126 2013-06-04 Jürgen Urban <JuergenUrban@gmx.de>
20128 * config.gcc (mipsr5900-*-elf*, mipsr5900el-*-elf*, mips64r5900-*-elf*)
20129 (mips64r5900el-*-elf*): New configurations.
20130 * config/mips/mips-cpus.def (r5900): New processor.
20131 * config/mips/mips-tables.opt: Regenerate.
20132 * config/mips/mips.c (mips_rtx_cost_data): Add an R5900 entry.
20133 (mips_issue_rate): Handle PROCESSOR_R5900.
20134 (mips_reorg_process_insns): Force reorder mode for the R5900.
20135 * config/mips/mips.h (TARGET_MIPS5900): Define.
20136 (ISA_HAS_CONDMOVE, ISA_HAS_PREFETCH, ISA_HAS_HILO_INTERLOCKS): Include
20138 (ISA_HAS_LOAD_DELAY, ISA_HAS_XFER_DELAY, ISA_HAS_FCMP_DELAY): Exclude
20140 * config/mips/mips.md (processor): Add r5900.
20141 (MOVECC): Disallow CCmode conditions for TARGET_MIPS5900.
20143 2013-06-04 Ian Bolton <ian.bolton@arm.com>
20145 * config/aarch64/aarch64.md (*mov<mode>_aarch64): Call
20146 into function to generate MOVI instruction.
20147 * config/aarch64/aarch64.c (aarch64_simd_container_mode): New function.
20148 (aarch64_preferred_simd_mode): Turn into wrapper.
20149 (aarch64_output_scalar_simd_mov_immediate): New function.
20150 * config/aarch64/aarch64-protos.h: Add prototype for above.
20152 2013-06-04 Ian Bolton <ian.bolton@arm.com>
20154 * config/aarch64/aarch64.c (simd_immediate_info): Remove
20155 element_char member.
20156 (sizetochar): Return signed char.
20157 (aarch64_simd_valid_immediate): Remove elchar and other
20158 unnecessary variables.
20159 (aarch64_output_simd_mov_immediate): Take rtx instead of &rtx.
20160 Calculate element_char as required.
20161 * config/aarch64/aarch64-protos.h: Update and move prototype
20162 for aarch64_output_simd_mov_immediate.
20163 * config/aarch64/aarch64-simd.md (*aarch64_simd_mov<mode>):
20166 2013-06-04 Ian Bolton <ian.bolton@arm.com>
20168 * config/aarch64/aarch64.c (simd_immediate_info): Struct to hold
20169 information completed by aarch64_simd_valid_immediate.
20170 (aarch64_legitimate_constant_p): Update arguments.
20171 (aarch64_simd_valid_immediate): Work with struct rather than many
20173 (aarch64_simd_scalar_immediate_valid_for_move): Update arguments.
20174 (aarch64_simd_make_constant): Update arguments.
20175 (aarch64_output_simd_mov_immediate): Work with struct rather than
20176 many pointers. Output immediate directly rather than as operand.
20177 * config/aarch64/aarch64-protos.h (aarch64_simd_valid_immediate):
20179 * config/aarch64/constraints.md (Dn): Update arguments.
20181 2013-06-04 Ian Bolton <ian.bolton@arm.com>
20183 * config/aarch64/aarch64.c (aarch64_simd_valid_immediate): No
20185 (aarch64_simd_immediate_valid_for_move): Remove.
20186 (aarch64_simd_scalar_immediate_valid_for_move): Update call.
20187 (aarch64_simd_make_constant): Update call.
20188 (aarch64_output_simd_mov_immediate): Update call.
20189 * config/aarch64/aarch64-protos.h (aarch64_simd_valid_immediate):
20191 * config/aarch64/constraints.md (Dn): Update call.
20193 2013-06-04 Ian Bolton <ian.bolton@arm.com>
20195 * config/aarch64/aarch64.c (aarch64_simd_valid_immediate): Change
20196 return type to bool for prototype.
20197 (aarch64_legitimate_constant_p): Check for true instead of not -1.
20198 (aarch64_simd_valid_immediate): Fix up each return to return a bool.
20199 (aarch64_simd_immediate_valid_for_move): Update retval for bool.
20201 2013-06-04 Catherine Moore <clm@codesourcery.com>
20203 * config/mips/mips.opt (meva): New.
20204 * config/mips/mips.h (TARGET_CPU_CPP_BUILTINS): Define __mips_eva.
20205 (ASM_SPEC): Handle -meva.
20206 * doc/invoke.texi (meva): Document.
20208 2013-06-04 Alan Modra <amodra@gmail.com>
20210 * config/rs6000/rs6000.c (output_toc): Correct little-endian float
20213 2013-06-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
20215 * rtl.def: Add extra fourth optional field to define_cond_exec.
20216 * gensupport.c (process_one_cond_exec): Process attributes from
20218 * doc/md.texi: Document fourth field in define_cond_exec.
20220 2013-06-04 Eric Botcazou <ebotcazou@adacore.com>
20222 * expmed.c (extract_bit_field_1): In the larger-than-a-word case, factor
20223 out the processing order as in store_bit_field_1.
20225 2013-06-04 Jan Hubicka <jh@suse.cz>
20227 PR middle-end/57500
20228 * cgraphunit.c (cgraph_process_same_body_aliases): Create
20229 non-VAR_DECL node if it does not exist yet.
20231 2013-06-03 Richard Sandiford <rdsandiford@googlemail.com>
20233 * config.gcc (mipsisa64sr71k-*-elf*, mipsisa64sb1-*-elf*)
20234 (mipsisa64sb1el-*-elf*, mips64-*-elf*, mips64el-*-elf*)
20235 (mips64orion-*-elf*, mips64orionel-*-elf*): Remove
20236 target_cpu_default setting.
20238 2013-06-03 Teresa Johnson <tejohnson@google.com>
20240 * dumpfile.c (opt_info_switch_p): Change -fopt-info
20241 default to -fopt-info=optimized instead of all.
20242 * doc/invoke.texi: Ditto.
20243 * tree-vectorizer.c (vectorize_loops): Emit loop vectorization
20244 success under MSG_OPTIMIZED_LOCATIONS, and use dump_printf_loc.
20245 (execute_vect_slp): Emit BB vectorization success under
20246 MSG_OPTIMIZED_LOCATIONS.
20247 * tree-vect-slp.c (vect_slp_transform_bb): Change
20248 MSG_OPTIMIZED_LOCATIONS to MSG_NOTE.
20249 * tree-vect-loop.c (vect_transform_loop): Ditto.
20251 2013-06-03 Jason Merrill <jason@redhat.com>
20254 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
20255 Use TARGET_EXPR for C++.
20257 2013-06-03 Jakub Jelinek <jakub@redhat.com>
20259 PR rtl-optimization/57268
20260 * sched-deps.c (sched_analyze_2): Don't flush_pending_lists
20261 if DEBUG_INSN_P (insn).
20264 2013-05-31 Dinar Temirbulatov <dinar@kugelworks.com>
20266 PR rtl-optimization/57268
20267 * sched-deps.c (sched_analyze_2): Flush dependence lists if
20268 the sum of the read and write lists exceeds MAX_PENDING_LIST_LENGTH.
20270 2013-06-03 Yuri Rumyantsev <yuri.s.rumyantsev@intel.com>
20272 * config/i386/i386.c (ix86_lea_outperforms): Fix formatting.
20273 (ix86_avoid_lea_for_addr): Likewise.
20274 (exact_dependency_1): Likewise.
20275 (ix86_adjust_cost): Likewise.
20276 (swap_top_of_ready_list): Fix formatting and !reload_completed check
20278 (do_reorder_for_imul): Fix typo, formatting and
20279 !reload_completed check removed.
20280 (ix86_sched_reorder): Fix typo and formatting.
20281 (fold_builtin_cpu): Move M_INTEL_SLM at the end of processor types
20284 2013-06-03 Sofiane Naci <sofiane.naci@arm.com>
20286 * config/aarch64/aarch64.md (*movdi_aarch64): Define "simd" attribute.
20288 2013-06-03 Eric Botcazou <ebotcazou@adacore.com>
20290 * varasm.c (output_constant) <CONSTRUCTOR>: Minor formatting tweak.
20291 <STRING_CST>: Likewise.
20292 <VECTOR_CST>: Likewise.
20294 2013-06-01 Janus Weil <janus@gcc.gnu.org>
20295 Mikael Morin <mikael@gcc.gnu.org>
20297 * configure.ac: Add AC_HEADER_TIOCGWINSZ macro.
20298 * config.in: Regenerated.
20299 * configure: Regenerated.
20301 2013-06-01 Jan Hubicka <jh@suse.cz>
20303 PR middle-end/57366
20304 * cgraphunit.c (compile): When weakref is not supported,
20305 set up transparent aliases before final output pass.
20306 * varasm.c (assemble_alias): Do not try to do it here.
20308 2013-06-01 Jan Hubicka <jh@suse.cz>
20310 PR middle-end/57467
20311 * passes.c (for_per_function): Skip unanalyzed functions.
20313 2013-06-01 Jan Hubicka <jh@suse.cz>
20315 * lto-symtab.c (lto_symtab_merge_cgraph_nodes_1): Rename to ...
20316 (lto_symtab_merge_symbols_1): ... this one.
20317 (lto_symtab_merge_cgraph_nodes): Rename to ...
20318 (lto_symtab_merge_symbols): ... this one; simplify.
20319 * cgraph.c (same_body_aliases_done): Rename to ...
20320 (cpp_implicit_aliases_done): ... this one.
20321 (cgraph_create_function_alias): Update.
20322 (cgraph_same_body_alias): Update.
20323 (dump_cgraph_node): Remove alias dumping; simplify thunk dumping.
20324 (verify_edge_corresponds_to_fndecl): Simplify.
20325 * cgraph.h (symtab_node_base): Add cpp_implicit_alias, alias_target.
20326 (cgraph_node): Remove same_body_alias.
20327 (varpool_node): Remove alias_of and extra_name_alias.
20328 (same_body_aliases_done): Rename to ..
20329 (cpp_implicit_aliases_done): ... this one.
20330 (symtab_alias_ultimate_target): Add default parameter.
20331 (symtab_resolve_alias): New function.
20332 (fixup_same_cpp_alias_visibility): Declare.
20333 (cgraph_function_node): Add default parameter.
20334 (cgraph_node_asm_name): Likewise.
20335 (cgraph_function_or_thunk_node): Add default parameter; do
20336 not ICE when it is NULL.
20337 (varpool_variable_node): Likewise.
20338 * tree-emutls.c (create_emultls_var): Update.
20339 (ipa_lower_emutls): Update.
20340 * cgraphunit.c (cgraph_decide_is_function_needed): Update.
20341 (cgraph_reset_node): Reset alias info.
20342 (cgraph_finalize_function): Update.
20343 (fixup_same_cpp_alias_visibility): Move to symtab.c.
20344 (analyze_function): Simplify.
20345 (cgraph_process_same_body_aliases): Simplify.
20346 (analyze_functions): Fixup same body aliases.
20347 (handle_alias_pairs): Simplify.
20348 (assemble_thunk): Update.
20349 (assemble_thunks_and_aliases): Update.
20350 (output_weakrefs): Rewrite.
20351 * lto-cgraph.c (lto_output_node): Rewrite alias handling.
20352 (lto_output_varpool_node): Likewise.
20353 (compute_ltrans_boundary): Remve assert.
20354 (get_alias_symbol): New functoin.
20355 (input_node): Rewrite alias handling.
20356 (input_varpool_node): Likewise.
20357 * ipa-pure-const.c (propagate_pure_const): Fix formating.
20358 * ipa.c (process_references): Handle weakrefs correctly.
20359 (symtab_remove_unreachable_nodes): Likewise.
20360 * trans-mem.c (get_cg_data): Update.
20361 (ipa_tm_create_version_alias): Update.
20362 (ipa_tm_execute): Update.
20363 * symtab.c (dump_symtab_base): Dump aliases.
20364 (verify_symtab_base): Verify aliases.
20365 (symtab_node_availability): New function.
20366 (symtab_alias_ultimate_target): Simplify.
20367 (fixup_same_cpp_alias_visibility): Move here from cgraphunit.c;
20368 handle all the fixup cases.
20369 (symtab_resolve_alias): New function.
20370 * passes.c (ipa_write_summaries): Handle weakrefs.
20371 * varpool.c (varpool_analyze_node): Simplify.
20372 (assemble_aliases): Update.
20373 (varpool_create_variable_alias): Simplify.
20374 (varpool_extra_name_alias): Simplify.
20375 * lto-streamer.h (lto_symtab_merge_cgraph_nodes): Rename to...
20376 (lto_symtab_merge_symbols): ... this one.
20378 2013-06-01 Dinar Temirbulatov <dinar@kugelworks.com>
20381 PR rtl-optimization/57268
20382 * sched-deps.c (sched_analyze_2): Flush dependence lists if
20383 the sum of the read and write lists exceeds MAX_PENDING_LIST_LENGTH.
20385 2013-06-01 Tobias Burnus <burnus@net-b.de>
20387 Partially reverted:
20388 2013-05-31 Tobias Burnus <burnus@net-b.de>
20390 PR middle-end/57073
20391 * tree-ssa-math-opts.c (execute_cse_sincos): Move check
20394 2013-05-31 Dinar Temirbulatov <dinar@kugelworks.com>
20396 PR rtl-optimization/57268
20397 * sched-deps.c (sched_analyze_2): Flush dependence lists if
20398 the sum of the read and write lists exceeds MAX_PENDING_LIST_LENGTH.
20400 2013-05-31 Eric Botcazou <ebotcazou@adacore.com>
20402 * config/rs6000/predicates.md (rs6000_cbranch_operator): Accept some
20403 unordered comparison operators when -fno-trapping-math is in effect
20405 * config/rs6000/rs6000.c (rs6000_generate_compare): Remove dead code
20406 and implement unordered comparison operators properly on the e500.
20408 2013-05-31 Eric Botcazou <ebotcazou@adacore.com>
20410 * simplify-rtx.c (simplify_byte_swapping_operation): Use proper macro
20411 for constant scalar integers.
20412 (simplify_relational_operation_1): Likewise.
20414 2013-05-31 Segher Boessenkool <segher@kernel.crashing.org>
20416 * config/rs6000/rs6000-opts.h (enum processor_type): Reorder.
20417 * config/rs6000/rs6000.md (cpu): Reorder. Split long line.
20420 2013-05-31 Yuri Rumyantsev <yuri.s.rumyantsev@intel.com>
20421 Igor Zamyatin <igor.zamyatin@intel.com>
20423 Silvermont (SLM) architecture performance tuning.
20424 * config/i386/i386.h (enum ix86_tune_indices): Add
20425 X86_TUNE_SPLIT_MEM_OPND_FOR_FP_CONVERTS.
20426 (TARGET_SPLIT_MEM_OPND_FOR_FP_CONVERTS): New define.
20428 * config/i386/i386.c (initial_ix86_tune_features)
20429 <X86_TUNE_SPLIT_MEM_OPND_FOR_FP_CONVERTS>: Initialize.
20430 (ix86_lea_outperforms): Handle Silvermont tuning.
20431 (ix86_avoid_lea_for_add): Add new argument to ix86_lea_outperforms
20433 (ix86_use_lea_for_mov): Likewise.
20434 (ix86_avoid_lea_for_addr): Likewise.
20435 (ix86_lea_for_add_ok): Likewise.
20436 (exact_dependency_1): New function.
20437 (exact_store_load_dependency): Likewise.
20438 (ix86_adjust_cost): Handle Silvermont tuning.
20439 (do_reoder_for_imul): Likewise.
20440 (swap_top_of_ready_list): New function.
20441 (ix86_sched_reorder): Changed to handle Silvermont tuning.
20443 * config/i386/i386.md (peepholes that split memory operand in fp
20446 2013-05-31 Marcus Shawcroft <marcus.shawcroft@arm.com>
20448 * config/aarch64/aarch64.c (aarch64_load_symref_appropriately):
20449 Remove un-necessary braces.
20451 2013-05-31 Marcus Shawcroft <marcus.shawcroft@arm.com>
20453 * config/aarch64/aarch64.c (aarch64_classify_symbol):
20454 Use SYMBOL_TINY_ABSOLUTE for AARCH64_CMODEL_TINY_PIC.
20456 2013-05-31 Tobias Burnus <burnus@net-b.de>
20458 PR middle-end/57073
20459 * tree-ssa-math-opts.c (execute_cse_sincos): Move check further up.
20461 2013-05-31 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
20464 * config/arm/arm.c (const_ok_for_dimode_op): Handle IOR.
20465 * config/arm/arm.md (*iordi3_insn): Change to insn_and_split.
20466 * config/arm/neon.md (iordi3_neon): Remove.
20467 (neon_vorr<mode>): Generate iordi3 instead of iordi3_neon.
20468 * config/arm/predicates.md (imm_for_neon_logic_operand):
20469 Move to earlier in the file.
20470 (neon_logic_op2): Likewise.
20471 (arm_iordi_operand_neon): New predicate.
20473 2013-05-31 Richard Biener <rguenther@suse.de>
20475 PR tree-optimization/57478
20476 PR tree-optimization/57453
20477 * tree-vect-slp.c (vect_bb_slp_scalar_cost): Uses in PHI nodes
20480 2013-05-31 Kaushik Phatak <kaushik.phatak@kpitcummins.com>
20482 * config/rl78/rl78.md (mulqi3,mulhi3): New define_expands.
20483 (*mulqi3_rl78,*mulhi3_rl78,*mulhi3_g13): New define_insns.
20485 2013-05-30 Tobias Burnus <burnus@net-b.de>
20486 Thomas Koenig <tkoenig@gcc.gnu.org>
20488 PR middle-end/57073
20489 * tree-ssa-math-opts.c (execute_cse_sincos): Optimize
20490 powi (-1.0, k) to (k & 1) ? -1.0 : 1.0.
20492 2013-05-30 Steven Bosscher <steven@gcc.gnu.org>
20494 * rtlanal.c (tablejump_p): Expect table and label to be adjacent.
20496 2013-05-30 Vladimir Makarov <vmakarov@redhat.com>
20498 * target.def (register_usage_leveling_p): New hook.
20499 * targhooks.c (default_register_usage_leveling_p): New.
20500 * targhooks.h (default_register_usage_leveling_p): New prototype.
20501 * lra-assigns.c (register_usage_leveling_p): Use the hook.
20502 * doc/tm.texi.in (TARGET_REGISTER_USAGE_LEVELING_P): New hook.
20503 * doc/tm.texi: Update.
20504 * config/i386/i386.c (TARGET_REGISTER_USAGE_LEVELING_P): Define.
20506 2013-05-30 Ian Bolton <ian.bolton@arm.com>
20508 * config/aarch64/aarch64.md (insv<mode>): New define_expand.
20509 (*insv_reg<mode>): New define_insn.
20511 2013-05-30 Joern Rennecke <joern.rennecke@embecosm.com>
20513 PR rtl-optimization/57439
20514 * postreload.c (move2add_valid_value_p): Check that we have
20515 a zero subreg_regno_offset when accessing the register in
20516 the requested mode.
20518 2013-05-30 Yuri Rumyantsev <yuri.s.rumyantsev@intel.com>
20519 Igor Zamyatin <igor.zamyatin@intel.com>
20521 Silvermont (SLM) architecture pipeline model, tuning and
20523 * config.gcc: Add slm config options and target.
20525 * config/i386/slm.md: New.
20527 * config/i386/driver-i386.c (host_detect_local_cpu): Check movbe.
20529 * config/i386/i386-c.c (ix86_target_macros_internal): New case
20531 (ix86_target_macros_internal): Likewise.
20533 * config/i386/i386.c (slm_cost): New cost.
20534 (m_SLM): New macro flag.
20535 (initial_ix86_tune_features): Set m_SLM.
20536 (x86_accumulate_outgoing_args): Likewise.
20537 (x86_arch_always_fancy_math_387): Likewise.
20538 (processor_target_table): Add slm cost.
20539 (cpu_names): Add slm cpu name.
20540 (x86_option_override_internal): Set SLM ISA.
20541 (ix86_issue_rate): New case PROCESSOR_SLM.
20542 (ia32_multipass_dfa_lookahead): Likewise.
20543 (fold_builtin_cpu): Add slm.
20545 * config/i386/i386.h (TARGET_SLM): New target macro.
20546 (target_cpu_default): Add TARGET_CPU_DEFAULT_slm.
20547 (processor_type): Add PROCESSOR_SLM.
20549 * config/i386/i386.md (cpu): Add new value "slm".
20550 (slm.md): Include slm.md.
20552 2013-05-30 Bernd Schmidt <bernds@codesourcery.com>
20553 Zhenqiang Chen <zhenqiang.chen@linaro.org>
20555 * config/arm/arm-protos.h: Add and update function protos.
20556 * config/arm/arm.c (use_simple_return_p): New added.
20557 (thumb2_expand_return): Check simple_return flag.
20558 * config/arm/arm.md: Add simple_return and conditional simple_return.
20559 * config/arm/iterators.md: Add iterator for return and simple_return.
20561 2013-05-30 Zhenqiang Chen <zhenqiang.chen@linaro.org>
20563 * config/arm/arm.c (arm_add_cfa_adjust_cfa_note): New added.
20564 (arm_emit_multi_reg_pop): Add REG_CFA_ADJUST_CFA notes.
20565 (arm_emit_vfp_multi_reg_pop): Likewise.
20566 (thumb2_emit_ldrd_pop): Likewise.
20567 (arm_expand_epilogue): Add misc REG_CFA notes.
20568 (arm_unwind_emit): Skip REG_CFA_ADJUST_CFA and REG_CFA_RESTORE.
20570 2013-05-29 Lawrence Crowl <crowl@google.com>
20572 * config/arm/t-arm: Update for below.
20574 * config/arm/arm.c (arm_libcall_uses_aapcs_base::libcall_htab):
20575 Change type to hash_table. Update dependent calls and types.
20577 * config/i386/t-cygming: Update for below.
20579 * config/i386/t-interix: Update for below.
20581 * config/i386/winnt.c (i386_pe_section_type_flags::htab):
20582 Change type to hash_table. Update dependent calls and types.
20583 (i386_find_on_wrapper_list::wrappers): Likewise.
20585 * config/ia64/t-ia64: Update for below.
20587 * config/ia64/ia64.c (bundle_state_table):
20588 Change type to hash_table. Update dependent calls and types.
20590 * config/mips/mips.c (mips_reorg_process_insns::htab):
20591 Change type to hash_table. Update dependent calls and types.
20593 * config/sol2.c (solaris_comdat_htab):
20594 Change type to hash_table. Update dependent calls and types.
20596 * config/t-sol2: Update for above.
20598 2013-05-29 Teresa Johnson <tejohnson@google.com>
20600 * passes.c (dump_passes): Use FOR_EACH_FUNCTION since
20601 functions are not yet marked as defined.
20603 2013-05-29 Michael Meissner <meissner@linux.vnet.ibm.com>
20604 Pat Haugen <pthaugen@us.ibm.com>
20605 Peter Bergner <bergner@vnet.ibm.com>
20607 * config/rs6000/vector.md (VEC_I): Add support for new power8 V2DI
20611 (vrotl<mode>3): Likewise.
20612 (vashl<mode>3): Likewise.
20613 (vlshr<mode>3): Likewise.
20614 (vashr<mode>3): Likewise.
20616 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
20617 support for power8 V2DI builtins.
20619 * config/rs6000/rs6000-builtin.def (abs_v2di): Add support for
20620 power8 V2DI builtins.
20621 (vupkhsw): Likewise.
20622 (vupklsw): Likewise.
20623 (vaddudm): Likewise.
20624 (vminsd): Likewise.
20625 (vmaxsd): Likewise.
20626 (vminud): Likewise.
20627 (vmaxud): Likewise.
20628 (vpkudum): Likewise.
20629 (vpksdss): Likewise.
20630 (vpkudus): Likewise.
20631 (vpksdus): Likewise.
20636 (vsubudm): Likewise.
20637 (vcmpequd): Likewise.
20638 (vcmpgtsd): Likewise.
20639 (vcmpgtud): Likewise.
20640 (vcmpequd_p): Likewise.
20641 (vcmpgtsd_p): Likewise.
20642 (vcmpgtud_p): Likewise.
20643 (vupkhsw): Likewise.
20644 (vupklsw): Likewise.
20645 (vaddudm): Likewise.
20646 (vmaxsd): Likewise.
20647 (vmaxud): Likewise.
20648 (vminsd): Likewise.
20649 (vminud): Likewise.
20650 (vpksdss): Likewise.
20651 (vpksdus): Likewise.
20652 (vpkudum): Likewise.
20653 (vpkudus): Likewise.
20658 (vsubudm): Likewise.
20660 * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Add
20661 support for power8 V2DI instructions.
20663 * config/rs6000/altivec.md (UNSPEC_VPKUHUM): Add support for
20664 power8 V2DI instructions. Combine pack and unpack insns to use an
20665 iterator for each mode. Check whether a particular mode supports
20666 Altivec instructions instead of just checking TARGET_ALTIVEC.
20667 (UNSPEC_VPKUWUM): Likewise.
20668 (UNSPEC_VPKSHSS): Likewise.
20669 (UNSPEC_VPKSWSS): Likewise.
20670 (UNSPEC_VPKUHUS): Likewise.
20671 (UNSPEC_VPKSHUS): Likewise.
20672 (UNSPEC_VPKUWUS): Likewise.
20673 (UNSPEC_VPKSWUS): Likewise.
20674 (UNSPEC_VPACK_SIGN_SIGN_SAT): Likewise.
20675 (UNSPEC_VPACK_SIGN_UNS_SAT): Likewise.
20676 (UNSPEC_VPACK_UNS_UNS_SAT): Likewise.
20677 (UNSPEC_VPACK_UNS_UNS_MOD): Likewise.
20678 (UNSPEC_VUPKHSB): Likewise.
20679 (UNSPEC_VUNPACK_HI_SIGN): Likewise.
20680 (UNSPEC_VUNPACK_LO_SIGN): Likewise.
20681 (UNSPEC_VUPKHSH): Likewise.
20682 (UNSPEC_VUPKLSB): Likewise.
20683 (UNSPEC_VUPKLSH): Likewise.
20685 (VI_char): Likewise.
20686 (VI_scalar): Likewise.
20687 (VI_unit): Likewise.
20689 (VP_small): Likewise.
20690 (VP_small_lc): Likewise.
20691 (VU_char): Likewise.
20692 (add<mode>3): Likewise.
20693 (altivec_vaddcuw): Likewise.
20694 (altivec_vaddu<VI_char>s): Likewise.
20695 (altivec_vadds<VI_char>s): Likewise.
20696 (sub<mode>3): Likewise.
20697 (altivec_vsubcuw): Likewise.
20698 (altivec_vsubu<VI_char>s): Likewise.
20699 (altivec_vsubs<VI_char>s): Likewise.
20700 (altivec_vavgs<VI_char>): Likewise.
20701 (altivec_vcmpbfp): Likewise.
20702 (altivec_eq<mode>): Likewise.
20703 (altivec_gt<mode>): Likewise.
20704 (altivec_gtu<mode>): Likewise.
20705 (umax<mode>3): Likewise.
20706 (smax<mode>3): Likewise.
20707 (umin<mode>3): Likewise.
20708 (smin<mode>3): Likewise.
20709 (altivec_vpkuhum): Likewise.
20710 (altivec_vpkuwum): Likewise.
20711 (altivec_vpkshss): Likewise.
20712 (altivec_vpkswss): Likewise.
20713 (altivec_vpkuhus): Likewise.
20714 (altivec_vpkshus): Likewise.
20715 (altivec_vpkuwus): Likewise.
20716 (altivec_vpkswus): Likewise.
20717 (altivec_vpks<VI_char>ss): Likewise.
20718 (altivec_vpks<VI_char>us): Likewise.
20719 (altivec_vpku<VI_char>us): Likewise.
20720 (altivec_vpku<VI_char>um): Likewise.
20721 (altivec_vrl<VI_char>): Likewise.
20722 (altivec_vsl<VI_char>): Likewise.
20723 (altivec_vsr<VI_char>): Likewise.
20724 (altivec_vsra<VI_char>): Likewise.
20725 (altivec_vsldoi_<mode>): Likewise.
20726 (altivec_vupkhsb): Likewise.
20727 (altivec_vupkhs<VU_char>): Likewise.
20728 (altivec_vupkls<VU_char>): Likewise.
20729 (altivec_vupkhsh): Likewise.
20730 (altivec_vupklsb): Likewise.
20731 (altivec_vupklsh): Likewise.
20732 (altivec_vcmpequ<VI_char>_p): Likewise.
20733 (altivec_vcmpgts<VI_char>_p): Likewise.
20734 (altivec_vcmpgtu<VI_char>_p): Likewise.
20735 (abs<mode>2): Likewise.
20736 (vec_unpacks_hi_v16qi): Likewise.
20737 (vec_unpacks_hi_v8hi): Likewise.
20738 (vec_unpacks_lo_v16qi): Likewise.
20739 (vec_unpacks_hi_<VP_small_lc>): Likewise.
20740 (vec_unpacks_lo_v8hi): Likewise.
20741 (vec_unpacks_lo_<VP_small_lc>): Likewise.
20742 (vec_pack_trunc_v8h): Likewise.
20743 (vec_pack_trunc_v4si): Likewise.
20744 (vec_pack_trunc_<mode>): Likewise.
20746 * config/rs6000/altivec.h (vec_vaddudm): Add defines for power8
20748 (vec_vmaxsd): Likewise.
20749 (vec_vmaxud): Likewise.
20750 (vec_vminsd): Likewise.
20751 (vec_vminud): Likewise.
20752 (vec_vpksdss): Likewise.
20753 (vec_vpksdus): Likewise.
20754 (vec_vpkudum): Likewise.
20755 (vec_vpkudus): Likewise.
20756 (vec_vrld): Likewise.
20757 (vec_vsld): Likewise.
20758 (vec_vsrad): Likewise.
20759 (vec_vsrd): Likewise.
20760 (vec_vsubudm): Likewise.
20761 (vec_vupkhsw): Likewise.
20762 (vec_vupklsw): Likewise.
20764 2013-05-29 Jan Hubicka <jh@suse.cz>
20766 * cgraph.h (symtab_node_base): Add definition, alias and analyzed
20767 flags; reorder rest of fields in more consistent way.
20768 (varpool_node): Remove analyzed, finalized and alias.
20769 (cgraph_ndoe): Likewise.
20770 (symtab_alias_ultimate_target): New function.
20771 (cgraph_function_node): Move offline.
20772 (cgraph_reset_node): Declare.
20773 (cgraph_comdat_can_be_unshared_p): Remove.
20774 (varpool_remove_initializer): Declare.
20775 (varpool_first_defined_variable, varpool_next_defined_variable
20776 cgraph_first_defined_function, cgraph_next_defined_function): Update.
20777 (cgraph_function_with_gimple_body_p): Update.
20778 (varpool_all_refs_explicit_p): Update.
20779 (symtab_alias_target): New function.
20780 (cgraph_alias_aliased_node, varpool_alias_aliased_node): Rename to ...
20781 (cgraph_alias_target, varpool_alias_target): .. this one; simplify.
20782 (cgraph_function_or_thunk_node): Simplify using
20783 symtab_alias_ultimate_target.
20784 (varpool_variable_node): Likewise.
20785 * cgraph.c (cgraph_create_function_alias): Update.
20786 (cgraph_add_thunk): Update.
20787 (cgraph_remove_node): Update.
20788 (dump_cgraph_node): Do not dump removed flags.
20789 (cgraph_function_body_availability): Update.
20790 (cgraph_propagate_frequency): Update.
20791 (verify_cgraph_node): Check sanity of local flag.
20792 (cgraph_function_node): Move here from cgraph.h; revamp for
20793 cgraph_function_or_thunk_node.
20794 * lto-symtab.c (lto_varpool_replace_node): Update.
20795 (lto_symtab_resolve_can_prevail_p): Update.
20796 (lto_symtab_merge_cgraph_nodes): Update.
20797 * ipa-cp.c (determine_versionability, initialize_node_lattices,
20798 propagate_constants_accross_call, devirtualization_time_bonus,
20799 ipcp_propagate_stage): Update.
20800 * tree-emutls.c (create_emultls_var, ipa_lower_emutls): Update.
20801 * ipa-inline-transform.c (clone_inlined_nodes,
20802 preserve_function_body_p): Update.
20803 * ipa-reference.c (propagate): Update.
20804 (write_node_summary_p): Update.
20805 * toplev.c (wrapup_global_declaration_2): Update.
20806 * cgraphunit.c (cgraph_analyze_function): Rename to ...
20807 (analyze_function) ... this one.
20808 (cgraph_process_new_functions): Update.
20809 (cgraph_reset_node): Export.
20810 (cgraph_finalize_function): Update.
20811 (cgraph_add_new_function): Update.
20812 (process_function_and_variable_attributes): Update.
20813 (varpool_finalize_decl): Update.
20814 (symbol_finalized): Remove.
20815 (symbol_finalized_and_needed): Rename to ...
20816 (symbol_defined_and_needed): ... update.
20817 (cgraph_analyze_functions): Update.
20818 (handle_alias_pairs): Update.
20819 (mark_functions_to_output): Update.
20820 (assemble_thunk): Update.
20821 (output_in_order): Update.
20822 (output_weakrefs): Update.
20823 (finalize_compilation_unit): Update.
20824 * lto-cgraph.c (reachable_from_other_partition_p, lto_output_node,
20825 lto_output_varpool_node, compute_ltrans_boundary, input_overwrite_node,
20826 input_node, input_varpool_node): Update.
20827 * dbxout.c (dbxout_expand_expr): Update.
20828 * cgraphclones.c (cgraph_clone_node): Update.
20829 (cgraph_copy_node_for_versioning): Update.
20830 (cgraph_materialize_clone): Update.
20831 (cgraph_materialize_all_clones): Update.
20832 * ipa-pure-const.c (analyze_function, pure_const_write_summary,
20833 propagate_pure_const, propagate_nothrow): Update.
20834 * lto-streamer-out.c (lto_output, write_symbol): Update.
20835 * ipa-utils.c (ipa_reverse_postorder): Update.
20836 * ipa-inline.c (can_inline_edge_p): Update.
20837 (update_caller_keys, ipa_inline): Update.
20838 * dwarf2out.c (reference_to_unused,
20839 premark_types_used_by_global_vars_helper): Update.
20840 * tree-eh.c (tree_could_trap_p): Update.
20841 * ipa-split.c (consider_split, execute_split_functions): Update.
20842 * ipa.c (cgraph_non_local_node_p_1, cgraph_local_node_p,
20843 has_addr_references_p): Update; move ahead in file for better
20845 (process_references): Simplify.
20846 (symtab_remove_unreachable_nodes): Update; cleanup way function/var
20847 bodies are removed.
20848 (cgraph_comdat_can_be_unshared_p): Make static.
20849 (cgraph_externally_visible_p): Update.
20850 (varpool_externally_visible_p): Update.
20851 (function_and_variable_visibility): Update.
20852 * trans-mem.c (get_cg_data, ipa_tm_mayenterirr_function,
20853 ipa_tm_mark_force_output_node): Update.
20854 * ipa-inline-analysis.c (dump_inline_summary, initialize_inline_failed,
20855 estimate_edge_devirt_benefit, inline_generate_summary,
20856 inline_write_summary): Update.
20857 * gimple-fold.c (can_refer_decl_in_current_unit_p): Update.
20858 * ipa-prop.c (ipa_compute_jump_functions): Update.
20859 (ipa_print_node_params, ipa_prop_read_section,
20860 ipa_update_after_lto_read, read_replacements_section): Update.
20861 * varasm.c (mark_decl_referenced): Update.
20862 (assemble_alias, dump_tm_clone_pairs): Update.
20863 * tree-inline.c (copy_bb): Update.
20864 (estimate_num_insns, optimize_inline_calls, tree_function_versioning):
20866 * symtab.c (dump_symtab_base): Print new flags.
20867 (verify_symtab_base): Verify new flags.
20868 (symtab_alias_ultimate_target): New function.
20869 * tree-ssa-structalias.c (get_constraint_for_ssa_var,
20870 create_variable_info_for, associate_varinfo_to_alias, ipa_pta_execute):
20872 * passes.c (ipa_write_summaries, ipa_write_optimization_summaries):
20874 * i386.c (ix86_get_function_versions_dispatcher,
20875 ix86_generate_version_dispatcher_body): Update.
20876 (fold_builtin_cpu): Use varpool_add_new_variable.
20877 * varpool.c (varpool_remove_initializer): Break out from ...
20878 (varpool_remove_node): ... this one.
20879 (dump_varpool_node, varpool_node_for_asm,
20880 cgraph_variable_initializer_availability, varpool_analyze_node,
20881 varpool_assemble_decl, varpool_remove_unreferenced_decls,
20882 varpool_finalize_named_section_flags, varpool_create_variable_alias):
20885 2013-05-29 Jan Hubicka <jh@suse.cz>
20887 * passes.c (init_optimization_passes): Move OMP expansion into lowering.
20889 2013-05-29 Easwaran Raman <eraman@google.com>
20891 PR tree-optimization/57442
20892 * tree-ssa-reassoc.c (appears_later_in_bb): Return correct value
20893 when control exits the main loop.
20895 2013-05-29 Sandeep Kumar Singh <Sandeep.Singh2@kpitcummins.com>
20897 * rx/rx.h (TARGET_CPU_CPP_BUILTINS): Add macros for RX100, RX200,
20899 * rx/rx.opt: Add macro for rx100 with string rx100 and value RX100.
20900 * rx/rx-opts.h (rx_cpu_types): Add new cpu type rx100.
20901 * rx/t-rx: Add rx100 under multi library matches option for nofpu
20904 2013-05-29 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
20906 PR tree-optimization/57441
20907 * gimple-ssa-strength-reduction.c (analyze_candidates_and_replace):
20908 Don't limit size of incr_vec to number of candidates.
20910 2013-05-29 Steve Ellcey <sellcey@imgtec.com>
20912 * config/mips/mti-linux.h (SYSROOT_SUFFIX_SPEC): Add micromips
20913 and mips16 directories.
20914 * config/mips/t-mti-linux (MULTILIB_OPTIONS): Add micromips and mips16.
20915 (MULTILIB_DIRNAMES): Ditto.
20916 (MULTILIB_EXCEPTIONS): Add new exceptions.
20917 * config/mips/t-mti-elf (MULTILIB_OPTIONS): Add micromips.
20918 (MULTILIB_DIRNAMES): Ditto.
20919 (MULTILIB_EXCEPTIONS): Add new exceptions.
20921 2012-05-29 Chris Schlumberger-Socha <chris.schlumberger-socha@arm.com>
20922 Marcus Shawcroft <marcus.shawcroft@arm.com>
20924 * config/aarch64/aarch64-protos.h (aarch64_symbol_type): Define
20925 SYMBOL_TINY_ABSOLUTE.
20926 * config/aarch64/aarch64.c (aarch64_load_symref_appropriately): Handle
20927 SYMBOL_TINY_ABSOLUTE.
20928 (aarch64_expand_mov_immediate): Likewise.
20929 (aarch64_classify_symbol): Likewise.
20930 (aarch64_mov_operand_p): Remove ATTRIBUTE_UNUSED.
20931 Permit SYMBOL_TINY_ABSOLUTE.
20932 * config/aarch64/predicates.md (aarch64_mov_operand): Permit CONST.
20934 2013-05-29 Chris Schlumberger-Socha <chris.schlumberger-socha@arm.com>
20935 Marcus Shawcroft <marcus.shawcroft@arm.com>
20937 * config/aarch64/aarch64.c (aarch64_classify_symbol): Remove comment.
20938 Refactor if/switch. Replace gcc_assert with if.
20940 2013-05-29 Ganesh Gopalasubramanian <Ganesh.Gopalasubramanian@amd.com>
20942 * config/i386/i386.c (initial_ix86_tune_features): Enable
20943 FP Reassociation for AMD bdver1 and bdver2.
20945 2013-05-29 Martin Jambor <mjambor@suse.cz>
20947 * tree-cfg.c (verify_expr): Verify that BIT_FIELD_REF, REALPART_EXPR
20948 and IMAGPART_EXPR do not occur within other handled_components.
20950 2013-05-29 Richard Biener <rguenther@suse.de>
20952 * tree-vect-slp.c (vect_bb_slp_scalar_cost): Guard vinfo
20953 access on whether the use is in the BB we currently try to
20955 (vect_bb_vectorization_profitable_p): Pass the BB we currently
20956 vectorize to vect_bb_slp_scalar_cost.
20958 2013-05-29 Richard Biener <rguenther@suse.de>
20960 * tree-vect-slp.c (vect_bb_slp_scalar_cost): New function
20961 computing scalar cost offsetted by stmts that are kept live
20963 (vect_bb_vectorization_profitable_p): Use vect_bb_slp_scalar_cost
20964 for computation of scalar cost.
20966 2013-05-28 Steve Ellcey <sellcey@mips.com>
20968 * config/mips/mips-cpus.def (mips32r2): Change processor type.
20970 2013-05-28 Balaji V. Iyer <balaji.v.iyer@intel.com>
20972 * doc/extend.texi (C Extensions): Added documentation about Cilk Plus
20973 array notation built-in reduction functions.
20974 * doc/passes.texi (Passes): Added documentation about changes done
20976 * doc/invoke.texi (C Dialect Options): Added documentation about
20977 the -fcilkplus flag.
20978 * Makefile.in (C_COMMON_OBJS): Added c-family/array-notation-common.o.
20979 (BUILTINS_DEF): Depend on cilkplus.def.
20980 * builtins.def: Include cilkplus.def. Define DEF_CILKPLUS_BUILTIN.
20981 * builtin-types.def: Define BT_FN_INT_PTR_PTR_PTR.
20982 * cilkplus.def: New file.
20984 2013-05-28 Joern Rennecke <joern.rennecke@embecosm.com>
20986 PR rtl-optimization/57439
20987 * postreload.c (move2add_use_add2_insn): Use gen_lowpart_common.
20989 2013-05-28 Easwaran Raman <eraman@google.com>
20991 PR tree-optimization/57337
20992 * tree-ssa-reassoc.c (appears_later_in_bb): New function.
20993 (find_insert_point): Correctly identify the insertion point
20994 when two statements with the same UID is compared.
20996 2013-05-28 Richard Biener <rguenther@suse.de>
20998 PR tree-optimization/56787
20999 * tree-vect-data-refs.c (vect_analyze_data_refs): Drop clobbers
21000 from the list of data references.
21001 * tree-vect-loop.c (vect_determine_vectorization_factor): Skip
21003 (vect_analyze_loop_operations): Likewise.
21004 (vect_transform_loop): Remove clobbers.
21006 2013-05-28 Martin Jambor <mjambor@suse.cz>
21008 * tree-cfg.c (verify_expr): Verify that BIT_FIELD_REFs, IMAGPART_EXPRs
21009 and REALPART_EXPRs have scalar type.
21011 2013-05-28 Richard Biener <rguenther@suse.de>
21013 PR tree-optimization/57411
21014 * tree-ssa-copy.c (may_propagate_copy): Cannot propagate
21016 * tree-ssa-dom.c (eliminate_const_or_copy): Special-case
21017 virtual operand propagation.
21019 2013-05-28 Eric Botcazou <ebotcazou@adacore.com>
21021 * config/sparc/sparc.c (sparc_expand_vec_perm_bmask): Use %g0 as
21022 destination register for bmasksi_vis.
21023 (vector_init_bshuffle): Likewise.
21024 * config/sparc/sparc.md (vec_perm_constv8qi): Likewise.
21026 2013-05-28 Eric Botcazou <ebotcazou@adacore.com>
21028 * doc/invoke.texi (SPARC Options): Document -mfix-ut699.
21029 * builtins.c (expand_builtin_mathfn) <BUILT_IN_SQRT>: Try to widen the
21030 mode if the instruction isn't available in the original mode.
21031 * config/sparc/sparc.opt (mfix-ut699): New option.
21032 * config/sparc/sparc.md (muldf3_extend): Disable if -mfix-ut699.
21033 (divdf3): Turn into expander.
21034 (divdf3_nofix): New insn.
21035 (divdf3_fix): Likewise.
21036 (divsf3): Disable if -mfix-ut699.
21037 (sqrtdf2): Turn into expander.
21038 (sqrtdf2_nofix): New insn.
21039 (sqrtdf2_fix): Likewise.
21040 (sqrtsf2): Disable if -mfix-ut699.
21042 2013-05-27 Richard Biener <rguenther@suse.de>
21044 PR middle-end/57412
21045 * omp-low.c (expand_omp_atomic_pipeline): Use the correct latch
21046 block for the new loop.
21048 2013-05-27 Richard Biener <rguenther@suse.de>
21050 PR tree-optimization/57343
21051 * tree-ssa-loop-niter.c (number_of_iterations_ne_max): Do not
21052 use multiple_of_p if not TYPE_OVERFLOW_UNDEFINED.
21053 (number_of_iterations_cond): Do not build the folded tree.
21055 2013-05-27 Richard Biener <rguenther@suse.de>
21058 PR middle-end/57381
21059 * fold-const.c (operand_equal_p): Compare FIELD_DECLs with
21060 OEP_CONSTANT_ADDRESS_OF retained.
21062 PR tree-optimization/57417
21063 * tree-ssa-sccvn.c (vn_reference_fold_indirect): Fix test
21064 for unchanged base.
21065 (set_ssa_val_to): Compare addresses using
21066 get_addr_base_and_unit_offset.
21068 2013-05-27 Joern Rennecke <joern.rennecke@embecosm.com>
21070 PR rtl-optimization/56833
21071 * postreload.c (move2add_record_mode): New function.
21072 (move2add_record_sym_value, move2add_valid_value_p): Likewise.
21073 (move2add_use_add2_insn): Use move2add_record_sym_value.
21074 (move2add_use_add3_insn): Likewise.
21075 (reload_cse_move2add): Use move2add_valid_value_p and
21076 move2add_record_mode. Invalidate call-clobbered and REG_INC
21077 affected regs by setting reg_mode to VOIDmode.
21078 (move2add_note_store): Don't pretend the inside of a SUBREG is
21079 the actual destination. Invalidate single/leading registers by
21080 setting reg_mode to VOIDmode.
21081 Use move2add_record_sym_value, move2add_valid_value_p and
21082 move2add_record_mode.
21084 2013-05-27 Richard Biener <rguenther@suse.de>
21086 PR tree-optimization/57396
21087 * tree-affine.c (double_int_constant_multiple_p): Properly
21088 return false for val == 0 and div != 0.
21090 2013-05-25 Richard Sandiford <rdsandiford@googlemail.com>
21092 * config/mips/mips.h: Use #elif in preprocessor conditions.
21094 2013-05-25 Richard Sandiford <rdsandiford@googlemail.com>
21097 * config/mips/constraints.md (kl): New constraint.
21098 * config/mips/mips.md (divmod<mode>4, udivmod<mode>4): Delete.
21099 (divmod<mode>4_internal): Rename to divmod<mode>4. Use "kl" as the
21100 constraint for operand 0. Split after CSE for MIPS16. Emit a move
21101 from LO for MIPS16.
21102 (udivmod<mode>4_internal): Likewise udivmod<mode>4.
21104 2013-05-25 Richard Sandiford <rdsandiford@googlemail.com>
21107 * config/mips/mips.c (mips_can_inline_p): New function.
21108 (TARGET_CAN_INLINE_P): Define.
21110 2013-05-25 Steven Bosscher <steven@gcc.gnu.org>
21112 * sched-int.h (ds_t, dw_t): Make unsigned int.
21113 Fix documentation that describes how all the ds_t bits are used.
21114 Reserve the last bit for delayed-branch scheduling.
21115 (BITS_PER_DEP_STATUS): Move to ds_t typedef.
21116 (BITS_PER_DEP_WEAK): Fix definition and documentation.
21117 (gen_dep_weak_1): Remove prototype.
21118 * sched-deps.c (get_dep_weak_1): Make static.
21119 * target.def (speculate_insn, needs_block_p, gen_spec_check,
21120 get_insn_spec_ds, get_insn_checked_ds): Adjust hook prototypes.
21121 * doc/tm.texi: Regenerate.
21122 * config/ia64/ia64.c (ia64_needs_block_p): Update prototype.
21124 2013-05-24 Steven Bosscher <steven@gcc.gnu.org>
21127 * haifa-sched.c (sched_extend_bb): Ignore DEBUG_INSNs.
21129 2013-05-24 Nathan Sidwell <nathan@codesourcery.com>
21130 Sandra Loosemore <sandra@codesourcery.com>
21132 * config.gcc (powerpc-*): Allow native for with-cpu.
21134 2013-05-24 Jeff Law <law@redhat.com>
21136 PR tree-optimization/57124
21137 * tree-vrp.c (simplify_cond_using_ranges): Only simplify a
21138 conversion feeding a condition if the range has an overflow
21139 if -fstrict-overflow. Add warnings for when we do make the
21142 2013-05-24 Dehao Chen <dehao@google.com>
21144 * tree-cfg.c (locus_discrim_map): Fix the typo.
21145 (locus_discrim_hasher): Likewise.
21146 (locus_discrim_hasher::hash): Likewise.
21147 (locus_discrim_hasher::equal): Likewise.
21149 2013-05-24 Martin Jambor <mjambor@suse.cz>
21151 PR tree-optimization/57294
21152 * cgraph.h (ipa_record_stmt_references): Declare.
21153 * cgraphbuild.c (ipa_record_stmt_references): New function.
21154 (build_cgraph_edges): Use ipa_record_stmt_references.
21155 (rebuild_cgraph_edges): Likewise.
21156 (cgraph_rebuild_references): Likewise.
21157 * ipa-prop.c (ipa_modify_call_arguments): Discard references
21158 associated with the old statement and build references from the
21159 newly built statements.
21160 * ipa-ref.c (ipa_remove_stmt_references): New function.
21161 * ipa-ref.h (ipa_remove_stmt_references): Declare.
21163 2013-05-24 Vladimir Makarov <vmakarov@redhat.com>
21165 * lra-constraints.c (emit_spill_move): Use smaller mode for
21167 (check_and_process_move): Consider mem-reg moves for secondary
21169 (curr_insn_transform): Don't lose insns emitted before for
21170 secondary memory moves.
21171 (inherit_in_ebb): Mark defined reg. Add usage only if it is not a
21172 reg set up in the current insn.
21174 2013-05-24 Dehao Chen <dehao@google.com>
21176 * tree-cfg.c (locus_descrim_hasher::hash): Change discriminator
21178 (locus_descrim_hasher::equal): Likewise.
21179 (build_gimple_cfg): New discriminator assignment algorithm.
21180 (make_edges): Likewise.
21181 (next_discriminator_for_locus): Likewise.
21182 (same_line_p): Likewise.
21183 (assign_discriminators): Likewise.
21184 (make_cond_expr_edges): Likewise.
21185 (make_gimple_switch_edges): Likewise.
21186 (make_goto_expr_edges): Likewise.
21187 (make_gimple_asm_edges): Likewise.
21189 2013-05-24 Ian Bolton <ian.bolton@arm.com>
21191 * config/aarch64/aarch64.c (aarch64_print_operand): Change the
21192 X format specifier to only display bottom 16 bits.
21193 * config/aarch64/aarch64.md (insv_imm<mode>): Allow any size of
21194 immediate to match for operand 2, since it will be masked.
21196 2013-05-24 Richard Biener <rguenther@suse.de>
21198 PR tree-optimization/57287
21199 * tree-ssa-uninit.c (compute_uninit_opnds_pos): Disregard
21200 all SSA names that occur in abnormal PHIs.
21202 2013-05-24 Alexander Ivchenko <alexander.ivchenko@intel.com>
21205 * tree-ssa-sccvn.c (fully_constant_vn_reference_p): Check
21206 that index is not negative.
21208 2013-05-24 Eric Botcazou <ebotcazou@adacore.com>
21210 PR rtl-optimization/55177
21211 * simplify-rtx.c (simplify_unary_operation_1) <NOT>: Deal with BSWAP.
21212 (simplify_byte_swapping_operation): New.
21213 (simplify_binary_operation_1): Call it for AND, IOR and XOR.
21214 (simplify_relational_operation_1): Deal with BSWAP.
21216 2013-05-23 Richard Henderson <rth@redhat.com>
21219 * config/i386/i386.c (ix86_seh_fixup_eh_fallthru): New.
21220 (ix86_reorg): Call it.
21222 2013-05-23 Uros Bizjak <ubizjak@gmail.com>
21225 * config/alpha/alpha.md (unspec): Add UNSPEC_XFLT_COMPARE.
21226 * config/alpha/alpha.c (alpha_emit_xfloating_compare): Construct
21227 REG_EQUAL note as UNSPEC_XFLT_COMPARE unspec.
21229 2013-05-23 Christian Bruel <christian.bruel@st.com>
21232 * config/arm/arm.c (arm_dwarf_register_span): Do not use dbx number.
21234 2013-05-23 Chris Schlumberger-Socha <chris.schlumberger-socha@arm.com>
21235 Marcus Shawcroft <marcus.shawcroft@arm.com>
21237 * config/aarch64/aarch64.md (*movdi_aarch64): Replace Usa with S.
21238 * config/aarch64/constraints.md (Usa): Remove.
21239 * doc/md.texi (AArch64 Usa): Remove.
21241 2013-05-23 Chris Schlumberger-Socha <chris.schlumberger-socha@arm.com>
21242 Marcus Shawcroft <marcus.shawcroft@arm.com>
21244 * config/aarch64/aarch64-protos.h (aarch64_mov_operand_p): Define.
21245 * config/aarch64/aarch64.c (aarch64_mov_operand_p): Define.
21246 * config/aarch64/predicates.md (aarch64_const_address): Remove.
21247 (aarch64_mov_operand): Use aarch64_mov_operand_p.
21249 2013-05-23 Vidya Praveen <vidyapraveen@arm.com>
21251 * config/aarch64/aarch64-simd.md (clzv4si2): Support for CLZ
21252 instruction (AdvSIMD).
21253 * config/aarch64/aarch64-builtins.c
21254 (aarch64_builtin_vectorized_function): Handler for BUILT_IN_CLZ.
21255 * config/aarch64/aarch-simd-builtins.def: Entry for CLZ.
21257 2013-05-23 Martin Jambor <mjambor@suse.cz>
21259 PR middle-end/57347
21260 * tree.h (contains_bitfld_component_ref_p): Declare.
21261 * tree-sra.c (contains_bitfld_comp_ref_p): Move...
21262 * tree.c (contains_bitfld_component_ref_p): ...here. Adjust its
21264 * ipa-prop.c (determine_known_aggregate_parts): Check that LHS does
21265 not access a bit-field. Assert all final offsets are byte-aligned.
21267 2013-05-23 Richard Biener <rguenther@suse.de>
21269 PR tree-optimization/57380
21270 * tree-ssa-phiprop.c (propagate_with_phi): Do not require at
21271 least one invariant or re-used load.
21272 * passes.c (init_optimization_passes): Move pass_phiprop before
21275 2013-05-23 James Greenhalgh <james.greenhalgh@arm.com>
21277 * config/aarch64/aarch64-simd.md
21278 (aarch64_cm<optab>di): Add clobber of CC_REGNUM to unsplit pattern.
21280 2013-05-23 Richard Biener <rguenther@suse.de>
21282 PR middle-end/57381
21283 * fold-const.c (operand_equal_p): Compare FIELD_DECLs with
21284 OEP_CONSTANT_ADDRESS_OF retained.
21286 2013-05-23 Jakub Jelinek <jakub@redhat.com>
21288 PR middle-end/57344
21289 * expmed.c (store_split_bit_field): If op0 is a REG or SUBREG of a REG,
21290 don't lower unit. Handle unit not being always BITS_PER_WORD.
21292 2013-05-23 Richard Biener <rguenther@suse.de>
21294 PR rtl-optimization/57341
21295 * ira.c (validate_equiv_mem_from_store): Use anti_dependence
21296 instead of true_dependence.
21298 2013-05-22 David Malcolm <dmalcolm@redhat.com>
21300 * bb-reorder.c (branch_threshold): Make const.
21301 (exec_threshold): Ditto.
21303 2013-05-22 Michael Meissner <meissner@linux.vnet.ibm.com>
21304 Pat Haugen <pthaugen@us.ibm.com>
21305 Peter Bergner <bergner@vnet.ibm.com>
21307 * doc/extend.texi (PowerPC AltiVec/VSX Built-in Functions): Add
21308 documentation for the power8 crypto builtins.
21310 * config/rs6000/t-rs6000 (MD_INCLUDES): Add crypto.md.
21312 * config/rs6000/rs6000-builtin.def (BU_P8V_AV_1): Add support
21313 macros for defining power8 builtin functions.
21314 (BU_P8V_AV_2): Likewise.
21315 (BU_P8V_AV_P): Likewise.
21316 (BU_P8V_VSX_1): Likewise.
21317 (BU_P8V_OVERLOAD_1): Likewise.
21318 (BU_P8V_OVERLOAD_2): Likewise.
21319 (BU_CRYPTO_1): Likewise.
21320 (BU_CRYPTO_2): Likewise.
21321 (BU_CRYPTO_3): Likewise.
21322 (BU_CRYPTO_OVERLOAD_1): Likewise.
21323 (BU_CRYPTO_OVERLOAD_2): Likewise.
21324 (XSCVSPDP): Fix typo, point to the correct instruction.
21325 (VCIPHER): Add power8 crypto builtins.
21326 (VCIPHERLAST): Likewise.
21327 (VNCIPHER): Likewise.
21328 (VNCIPHERLAST): Likewise.
21329 (VPMSUMB): Likewise.
21330 (VPMSUMH): Likewise.
21331 (VPMSUMW): Likewise.
21332 (VPERMXOR_V2DI): Likewise.
21333 (VPERMXOR_V4SI: Likewise.
21334 (VPERMXOR_V8HI: Likewise.
21335 (VPERMXOR_V16QI: Likewise.
21336 (VSHASIGMAW): Likewise.
21337 (VSHASIGMAD): Likewise.
21338 (VPMSUM): Likewise.
21339 (VPERMXOR): Likewise.
21340 (VSHASIGMA): Likewise.
21342 * config/rs6000/rs6000-c.c (rs6000_target_modify_macros): Define
21343 __CRYPTO__ if the crypto instructions are available.
21344 (altivec_overloaded_builtins): Add support for overloaded power8
21347 * config/rs6000/rs6000.c (rs6000_expand_ternop_builtin): Add
21348 support for power8 crypto builtins.
21349 (builtin_function_type): Likewise.
21350 (altivec_init_builtins): Add support for builtins that take vector
21351 long long (V2DI) arguments.
21353 * config/rs6000/crypto.md: New file, define power8 crypto
21356 2013-05-22 Michael Meissner <meissner@linux.vnet.ibm.com>
21357 Pat Haugen <pthaugen@us.ibm.com>
21358 Peter Bergner <bergner@vnet.ibm.com>
21360 * doc/invoke.texi (Option Summary): Add power8 options.
21361 (RS/6000 and PowerPC Options): Likewise.
21363 * doc/md.texi (PowerPC and IBM RS6000 constraints): Update to use
21364 constraints.md instead of rs6000.h. Reorder w* constraints. Add
21365 wm, wn, wr documentation.
21367 * config/rs6000/constraints.md (wm): New constraint for VSX
21368 registers if direct move instructions are enabled.
21369 (wn): New constraint for no registers.
21370 (wq): New constraint for quad word even GPR registers.
21371 (wr): New constraint if 64-bit instructions are enabled.
21372 (wv): New constraint if power8 vector instructions are enabled.
21373 (wQ): New constraint for quad word memory locations.
21375 * config/rs6000/predicates.md (const_0_to_15_operand): New
21376 constraint for 0..15 for crypto instructions.
21377 (gpc_reg_operand): If VSX allow registers in VSX registers as well
21378 as GPR and floating point registers.
21379 (int_reg_operand): New predicate to match only GPR registers.
21380 (base_reg_operand): New predicate to match base registers.
21381 (quad_int_reg_operand): New predicate to match even GPR registers
21382 for quad memory operations.
21383 (vsx_reg_or_cint_operand): New predicate to allow vector logical
21384 operations in both GPR and VSX registers.
21385 (quad_memory_operand): New predicate for quad memory operations.
21386 (reg_or_indexed_operand): New predicate for direct move support.
21388 * config/rs6000/rs6000-cpus.def (ISA_2_5_MASKS_EMBEDDED):
21389 Inherit from ISA_2_4_MASKS, not ISA_2_2_MASKS.
21390 (ISA_2_7_MASKS_SERVER): New mask for ISA 2.07 (i.e. power8).
21391 (POWERPC_MASKS): Add power8 options.
21392 (power8 cpu): Use ISA_2_7_MASKS_SERVER instead of specifying the
21395 * config/rs6000/rs6000-c.c (rs6000_target_modify_macros):
21396 Define _ARCH_PWR8 and __POWER8_VECTOR__ for power8.
21398 * config/rs6000/rs6000.opt (-mvsx-timode): Add documentation.
21399 (-mpower8-fusion): New power8 options.
21400 (-mpower8-fusion-sign): Likewise.
21401 (-mpower8-vector): Likewise.
21402 (-mcrypto): Likewise.
21403 (-mdirect-move): Likewise.
21404 (-mquad-memory): Likewise.
21406 * config/rs6000/rs6000.c (power8_cost): Initial definition for power8.
21407 (rs6000_hard_regno_mode_ok): Make PTImode only match even GPR
21409 (rs6000_debug_reg_print): Print the base register class if -mdebug=reg.
21410 (rs6000_debug_vector_unit): Add p8_vector.
21411 (rs6000_debug_reg_global): If -mdebug=reg, print power8 constraint
21412 definitions. Also print fusion state.
21413 (rs6000_init_hard_regno_mode_ok): Set up power8 constraints.
21414 (rs6000_builtin_mask_calculate): Add power8 builtin support.
21415 (rs6000_option_override_internal): Add support for power8.
21416 (rs6000_common_init_builtins): Add debugging for skipped builtins
21417 if -mdebug=builtin.
21418 (rs6000_adjust_cost): Add power8 support.
21419 (rs6000_issue_rate): Likewise.
21420 (insn_must_be_first_in_group): Likewise.
21421 (insn_must_be_last_in_group): Likewise.
21422 (force_new_group): Likewise.
21423 (rs6000_register_move_cost): Likewise.
21424 (rs6000_opt_masks): Likewise.
21426 * config/rs6000/rs6000.h (ASM_CPU_POWER8_SPEC): If we don't have a
21427 power8 capable assembler, default to power7 options.
21428 (TARGET_DIRECT_MOVE): Likewise.
21429 (TARGET_CRYPTO): Likewise.
21430 (TARGET_P8_VECTOR): Likewise.
21431 (VECTOR_UNIT_P8_VECTOR_P): Define power8 vector support.
21432 (VECTOR_UNIT_VSX_OR_P8_VECTOR_P): Likewise.
21433 (VECTOR_MEM_P8_VECTOR_P): Likewise.
21434 (VECTOR_MEM_VSX_OR_P8_VECTOR_P): Likewise.
21435 (VECTOR_MEM_ALTIVEC_OR_VSX_P): Likewise.
21436 (TARGET_XSCVDPSPN): Likewise.
21437 (TARGET_XSCVSPDPN): Likewsie.
21438 (TARGET_SYNC_HI_QI): Likewise.
21439 (TARGET_SYNC_TI): Likewise.
21440 (MASK_CRYPTO): Likewise.
21441 (MASK_DIRECT_MOVE): Likewise.
21442 (MASK_P8_FUSION): Likewise.
21443 (MASK_P8_VECTOR): Likewise.
21444 (REG_ALLOC_ORDER): Move fr13 to be lower in priority so that the TFmode
21445 temporary used by some of the direct move instructions to get two FP
21446 temporary registers does not force creation of a stack frame.
21447 (VLOGICAL_REGNO_P): Allow vector logical operations in GPRs.
21448 (MODES_TIEABLE_P): Move the VSX tests above the Altivec tests so
21449 that any VSX registers are tieable, even if they are also an
21450 Altivec vector mode.
21451 (r6000_reg_class_enum): Add wm, wr, wv constraints.
21452 (RS6000_BTM_P8_VECTOR): Power8 builtin support.
21453 (RS6000_BTM_CRYPTO): Likewise.
21454 (RS6000_BTM_COMMON): Likewise.
21456 * config/rs6000/rs6000.md (cpu attribute): Add power8.
21457 * config/rs6000/rs6000-opts.h (PROCESSOR_POWER8): Likewise.
21458 (enum rs6000_vector): Add power8 vector support.
21460 2013-05-22 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
21464 * config/arm/arm.c (any_sibcall_uses_r3): Rename to ..
21465 (any_sibcall_could_use_r3): this and handle indirect calls.
21466 (arm_get_frame_offsets): Rename use of any_sibcall_uses_r3.
21468 2013-05-22 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
21470 * config/rs6000/rs6000.h (MALLOC_ABI_ALIGNMENT): New #define.
21472 2013-05-22 Richard Biener <rguenther@suse.de>
21474 PR middle-end/57349
21475 * profile.c (branch_prob): Do not split blocks that are
21476 abnormally receiving from ECF_RETURNS_TWICE functions.
21478 2013-05-22 Richard Sandiford <rsandifo@linux.vnet.ibm.com>
21480 * recog.c (offsettable_address_addr_space_p): Fix calculation of
21481 address mode. Move pointer mode initialization to the same place.
21483 2013-05-22 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
21485 * read-rtl.c (copy_rtx_for_iterators): Continue applying iterators
21486 while it has any effect.
21488 2013-05-21 Easwaran Raman <eraman@google.com>
21490 PR tree-optimization/57322
21491 * tree-ssa-reassoc.c (build_and_add_sum): If a BB is empty, set the
21492 UID of the statement added to the BB to be 1.
21494 2013-05-21 Jakub Jelinek <jakub@redhat.com>
21496 PR tree-optimization/57331
21497 * tree-vrp.c (simplify_cond_using_ranges): Don't optimize comparison
21498 of conversion from pointer type to integral type with integer.
21500 2013-05-21 Martin Jambor <mjambor@suse.cz>
21503 * ipa-prop.c (ipa_read_node_info): Process param_used and
21504 controlled_uses in the same order as when writing.
21506 2013-05-21 Magnus Granberg <baldrick@free.fr>
21509 * Makefile.in (PLUGIN_HEADERS): Add $(TARGET_H).
21511 2013-05-21 Richard Biener <rguenther@suse.de>
21513 PR tree-optimization/57318
21514 * tree-ssa-loop-ivcanon.c (tree_estimate_loop_size): Do not
21515 estimate stmts with side-effects as likely eliminated.
21517 2013-05-21 Richard Biener <rguenther@suse.de>
21519 PR tree-optimization/57330
21520 * cgraph.c (cgraph_redirect_edge_call_stmt_to_callee): Properly
21521 preserve the call stmts fntype.
21523 2013-05-21 Richard Biener <rguenther@suse.de>
21525 PR tree-optimization/57303
21526 * tree-ssa-sink.c (statement_sink_location): Improve killing
21527 stmt detection and properly handle self-assignments.
21529 2013-05-21 Christian Bruel <christian.bruel@st.com>
21531 * dwarf2out.c (multiple_reg_loc_descriptor): Use dbx_reg_number for
21532 spanning registers. LEAF_REG_REMAP is supported only for contiguous
21533 registers. Set register size out of the PARALLEL loop.
21535 2013-05-20 Oleg Endo <olegendo@gcc.gnu.org>
21538 * config/sh/sh.md (fmasf4): Remove empty constraints strings.
21539 (*fmasf4, *fmasf4_media): New insns.
21541 2013-05-19 Richard Sandiford <rdsandiford@googlemail.com>
21543 * config/mips/mips.h (BASE_INSN_LENGTH, NOP_INSN_LENGTH): New macros.
21544 * config/mips/mips.c (mips_symbol_insns, mips_address_insns)
21545 (mips_const_insns, mips_split_const_insns, mips_load_store_insns)
21546 (mips_idiv_insns): Update the comments to say that the returned
21547 instruction counts are in units of BASE_INSN_LENGTH.
21548 (mips_adjust_insn_length): Multiply the mips_load_label_num_insns
21549 by BASE_INSN_LENGTH rather than 4. Add the jump separately,
21550 using 2 rather than 4 as the length of indirect MIPS16 and
21551 microMIPS jumps. Use NOP_INSN_LENGTH rather than 4 as the
21552 length of a NOP. Don't divide MIPS16 lengths by 2.
21553 (mips16_split_long_branches): Assume a branch is long if the
21554 length is greater than 4 rather than 8.
21555 * config/mips/mips.md (length): Give MIPS16 lengths directly,
21556 rather than multiplying them by 2. Multiply instruction counts
21557 by BASE_INSN_LENGTH rather than 4.
21558 (*jump_mips16, tls_get_tp_mips16_<mode>)
21559 (*tls_get_tp_mips16_call_<mode>): Divide lengths by 2.
21561 2013-05-19 Richard Sandiford <rdsandiford@googlemail.com>
21563 * config/mips/mips.md (extended_mips16): Remove branch case.
21564 (length): Remove duplicated extended_mips16 test.
21566 2013-05-19 Richard Sandiford <rdsandiford@googlemail.com>
21568 * config/mips/t-sde: Don't build 64-bit microMIPS multilibs.
21570 2013-05-18 Richard Sandiford <rdsandiford@googlemail.com>
21572 * recog.h (Recog_data): Rename to...
21573 (recog_data_d): ...this.
21574 (recog_data): Update accordingly.
21575 * recog.c (recog_data): Likewise.
21576 * reload.c (save_recog_data): Likewise.
21577 * config/picochip/picochip.c (picochip_saved_recog_data): Likewise.
21578 (picochip_save_recog_data, picochip_restore_recog_data): Likewise.
21580 2013-05-17 Julian Brown <julian@codesourcery.com>
21582 * gcse.c (compute_ld_motion_mems): If a non-simple MEM is
21583 found in a REG_EQUAL note, invalidate it.
21585 2013-05-17 Easwaran Raman <eraman@google.com>
21587 * tree-ssa-reassoc.c (find_insert_point): New function.
21588 (insert_stmt_after): Likewise.
21589 (get_def_stmt): Likewise.
21590 (ensure_ops_are_available): Likewise.
21591 (not_dominated_by): Likewise.
21592 (rewrite_expr_tree): Do not move statements beyond what is
21593 necessary. Remove call to swap_ops_for_binary_stmt...
21594 (reassociate_bb): ... and move it here.
21595 (build_and_add_sum): Assign UIDs for new statements.
21596 (linearize_expr): Likewise.
21597 (do_reassoc): Renumber gimple statement UIDs.
21599 2013-05-17 Jan Hubicka <jh@suse.cz>
21601 * lto-symtab.c (lto_symtab_merge_cgraph_nodes): Resolve cross module
21603 * cgraph.c (dump_cgraph_node): Do not ice on unresolved alias.
21604 * cgraphunit.c (handle_alias_pairs): Store target of unresolved
21606 (output_weakrefs): Update.
21608 2013-05-17 Po-Chun Chang <pchang9@cs.wisc.edu>
21609 Martin Jambor <mjambor@suse.cz>
21611 PR middle-end/57276
21612 * ipa-cp.c (cgraph_edge_brings_all_agg_vals_for_node): Break when a
21613 value that corresponds to the given aggval is found in values vector.
21615 2013-05-17 Uros Bizjak <ubizjak@gmail.com>
21617 * config/i386/driver-i386.c (host_detect_local_cpu): Pass mmx, 3dnow,
21618 sse, sse2, sse3, ssse3 and sse4a flags to options.
21620 2013-05-17 David Malcolm <dmalcolm@redhat.com>
21622 * gengtype-state.c: (s_expr_writer): New class, to handle
21623 prettifying of output layout of s-expressions.
21624 (state_writer): New class, to write out gtype.state.
21625 (state_written_type_count): Move this variable into member data of
21627 (s_expr_writer::s_expr_writer): New code: constructor for new class
21628 (state_writer::state_writer(): ditto
21629 (s_expr_writer::write_new_line): New function
21630 (s_expr_writer::write_any_indent): ditto
21631 (s_expr_writer::begin_s_expr): ditto
21632 (s_expr_writer::end_s_expr): ditto
21633 (write_state_fileloc): convert to method of state_writer...
21634 (state_writer:: write_state_fileloc): ...and use methods of
21635 s_expr_writer to write indentation into the gtype.state output file
21636 to visually represent the hierarchical structure of the list
21638 (write_state_fields): ditto, renaming to...
21639 (state_writer::write_state_fields)
21640 (write_state_a_string): ditto, renaming to...
21641 (state_writer::write_state_a_string)
21642 (write_state_string_option): ditto, renaming to...
21643 (state_writer::write_state_string_option)
21644 (write_state_type_option): ditto, renaming to...
21645 (state_writer::write_state_type_option)
21646 (write_state_nested_option): ditto, renaming to...
21647 (state_writer::write_state_nested_option)
21648 (write_state_option): ditto, renaming to...
21649 (state_writer::write_state_option)
21650 (write_state_options): ditto, renaming to...
21651 (state_writer::write_state_options)
21652 (write_state_lang_bitmap): ditto, renaming to...
21653 (state_writer::write_state_lang_bitmap)
21654 (write_state_version): ditto, renaming to...
21655 (state_writer::write_state_version)
21656 (write_state_scalar_type): ditto, renaming to...
21657 (state_writer::write_state_scalar_type)
21658 (write_state_string_type): ditto, renaming to...
21659 (state_writer::write_state_string_type)
21660 (write_state_undefined_type): ditto, renaming to...
21661 (state_writer::write_state_undefined_type)
21662 (write_state_struct_union_type): ditto, renaming to...
21663 (state_writer::write_state_struct_union_type)
21664 (write_state_struct_type): ditto, renaming to...
21665 (state_writer::write_state_struct_type)
21666 (write_state_user_struct_type): ditto, renaming to...
21667 (state_writer::write_state_user_struct_type)
21668 (write_state_lang_struct_type): ditto, renaming to...
21669 (state_writer::write_state_lang_struct_type)
21670 (write_state_param_struct_type): ditto, renaming to...
21671 (state_writer::write_state_param_struct_type)
21672 (write_state_pointer_type): ditto, renaming to...
21673 (state_writer::write_state_pointer_type)
21674 (write_state_array_type): ditto, renaming to...
21675 (state_writer::write_state_array_type)
21676 (write_state_gc_used): ditto, renaming to...
21677 (state_writer::write_state_gc_used)
21678 (write_state_common_type_content): ditto, renaming to...
21679 (state_writer::write_state_common_type_content)
21680 (write_state_type): ditto, renaming to...
21681 (state_writer::write_state_type)
21682 (write_state_pair_list): ditto, renaming to...
21683 (state_writer::write_state_pair_list)
21684 (write_state_pair): ditto, renaming to...
21685 (state_writer::write_state_pair)
21686 (write_state_typedefs): ditto, renaming to...
21687 (state_writer::write_state_typedefs)
21688 (write_state_structures): ditto, renaming to...
21689 (state_writer::write_state_structures)
21690 (write_state_param_structs): ditto, renaming to...
21691 (state_writer::write_state_param_structs)
21692 (write_state_variables): ditto, renaming to...
21693 (state_writer::write_state_variables)
21694 (write_state_srcdir): ditto, renaming to...
21695 (state_writer::write_state_srcdir)
21696 (write_state_files_list): ditto, renaming to...
21697 (state_writer::write_state_files_list)
21698 (write_state_languages): ditto, renaming to...
21699 (state_writer::write_state_languages)
21700 (write_state): create a state_writer instance and use it when
21701 writing out the state file
21703 2013-05-17 Mike Stump <mikestump@comcast.net>
21705 PR rtl-optimization/57304
21706 * web.c (union_match_dups): Ensure that DF_REF_LOC exists before
21707 accessing DF_REF_REAL_LOC.
21709 2013-05-17 Jakub Jelinek <jakub@redhat.com>
21711 PR rtl-optimization/57281
21712 PR rtl-optimization/57300
21713 * config/i386/i386.md (extendsidi2_1 dead reg splitter): Remove.
21714 (extendsidi2_1 peephole2s): Add instead 2 new peephole2s, that undo
21715 what the other splitter did if the registers are dead.
21717 2013-05-17 Richard Biener <rguenther@suse.de>
21719 * tree-ssa-alias.c (stmt_kills_ref_p_1): Properly compare
21722 2013-05-17 Jakub Jelinek <jakub@redhat.com>
21724 * gcc.c (SANITIZER_SPEC): Reject -fsanitize=address -fsanitize=thread
21727 2013-05-17 Marek Polacek <polacek@redhat.com>
21729 * tree-ssa-strlen.c (handle_char_store): Don't invalidate cached
21730 length when doing non-zero store of storing '\0' to '\0'.
21732 2013-05-17 Jakub Jelinek <jakub@redhat.com>
21734 * tree-vect-patterns.c (vect_recog_rotate_pattern): For
21735 vect_external_def oprnd1 with loop_vinfo, try to emit
21736 optional cast, negation and and stmts on the loop preheader
21737 edge instead of into the pattern def seq.
21739 PR tree-optimization/57051
21740 * fold-const.c (const_binop) <case VEC_LSHIFT_EXPR,
21741 case VEC_RSHIFT_EXPR>: Fix BYTES_BIG_ENDIAN handling.
21743 2013-05-16 Nick Clifton <nickc@redhat.com>
21745 * config/rl78/rl78.c (rl78_attribute_table): Add naked.
21746 (rl78_is_naked_func): New function.
21747 (rl78_expand_prologue): Skip prologue generation for naked functions.
21748 (rl78_expand_epilogue): Skip epilogue generation for naked functions.
21749 * doc/extend.texi (naked): Add RL78 to the list of processors
21750 that supports this attribute.
21752 2013-05-16 Jeff Law <law@redhat.com>
21754 * Makefile.in (tree-switch-conversion.o): Depend on $(OPTABS_H).
21756 2013-05-16 Uros Bizjak <ubizjak@gmail.com>
21758 * config/i386/driver-i386.c (host_detect_local_cpu): Determine
21759 cache parameters using detect_caches_amd also for CYRIX,
21760 NSC and TM2 signatures.
21762 2013-05-16 Uros Bizjak <ubizjak@gmail.com>
21763 Dzianis Kahanovich <mahatma@eu.by>
21767 * config/i386/driver-i386.c (host_detect_local_cpu): Detect
21768 VIA/Centaur processors and determine their cache parameters
21769 using detect_caches_amd.
21771 2013-05-16 Teresa Johnson <tejohnson@google.com>
21773 * cfgrtl.c (verify_hot_cold_block_grouping): Return err.
21774 (rtl_verify_edges): New function.
21775 (rtl_verify_bb_insns): Ditto.
21776 (rtl_verify_bb_pointers): Ditto.
21777 (rtl_verify_bb_insn_chain): Ditto.
21778 (rtl_verify_fallthru): Ditto.
21779 (rtl_verify_bb_layout): Ditto.
21780 (rtl_verify_flow_info_1): Outline checks into new functions.
21781 (rtl_verify_flow_info): Ditto.
21783 2013-05-16 Steve Ellcey <sellcey@imgtec.com>
21785 * cfghooks.c (copy_bbs): Add update_dominance argument.
21786 * cfghooks.h (copy_bbs): Update prototype.
21787 * tree-cfg.c (gimple_duplicate_sese_region):
21788 Add update_dominance argument.
21789 * tree-flow.h (gimple_duplicate_sese_region): Update prototype.
21790 * tree-ssa-loop-ch.c (copy_loop_headers): Update
21791 gimple_duplicate_sese_region call.
21792 * tree-vect-loop-manip.c (slpeel_tree_duplicate_loop_to_edge_cfg):
21793 Update copy_bbs call.
21794 * cfgloopmanip.c (duplicate_loop_to_header_edge): Ditto.
21795 * trans-mem.c (ipa_uninstrument_transaction): Ditto.
21797 2013-05-16 Jakub Jelinek <jakub@redhat.com>
21799 * tree-vectorizer.h (NUM_PATTERNS): Increment.
21800 * tree-vect-patterns.c (vect_vect_recog_func_ptrs): Add
21801 vect_recog_rotate_pattern.
21802 (vect_recog_rotate_pattern): New function.
21804 2013-05-16 Jason Merrill <jason@redhat.com>
21806 * Makefile.in (LLINKER): New variable.
21807 (mostlyclean): Remove link mutex.
21808 * configure.ac: Handle --enable-link-mutex.
21809 * lock-and-run.sh: New script.
21811 2013-05-16 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
21814 * config/arm/arm.c (arm_function_ok_for_sibcall): Add check
21817 2013-05-16 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
21819 * reorg.c (link_cc0_insns): Wrap in #ifdef HAVE_cc0.
21821 2013-05-16 Greta Yorsh <Greta.Yorsh@arm.com>
21823 * config/arm/arm-protos.h (gen_movmem_ldrd_strd): New declaration.
21824 * config/arm/arm.c (next_consecutive_mem): New function.
21825 (gen_movmem_ldrd_strd): Likewise.
21826 * config/arm/arm.md (movmemqi): Update condition and code.
21827 (unaligned_loaddi, unaligned_storedi): New patterns.
21829 2013-05-16 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
21831 * config.gcc: Obsolete *-*-solaris2.9*.
21832 * doc/install.texi (Specific, *-*-solaris2*): Document it.
21834 2013-05-16 Richard Biener <rguenther@suse.de>
21836 * passes.c (init_optimization_passes): Move pass_parallelize_loops
21837 earlier, after GRAPHITE transforms and IV canonicalization.
21839 2013-05-16 Jakub Jelinek <jakub@redhat.com>
21841 * omp-low.c (extract_omp_for_data): For collapsed loops,
21842 if at least one of the loops is known at compile time to
21843 iterate zero times, set count to 0.
21844 (expand_omp_regimplify_p): New function.
21845 (expand_omp_for_generic): For collapsed loops, if at least
21846 one of the loops isn't known to iterate at least once,
21847 add runtime check with setting count to 0.
21848 (expand_omp_for_static_nochunk, expand_omp_for_static_chunk):
21849 For unsigned types if it isn't known at compile time that
21850 the loop will iterate at least once, add runtime check to bypass
21851 the whole loop if initial condition isn't true.
21853 2013-05-16 Nathan Sidwell <nathan@codesourcery.com>
21855 * varasm.c (default_use_anchors_for_symbol_p): Use decl_replaceable_p.
21857 2013-05-16 Marc Glisse <marc.glisse@inria.fr>
21859 PR middle-end/57286
21860 * fold-const.c (fold_ternary_loc) <VEC_COND_EXPR>: Disable some
21861 transformations to avoid an infinite loop.
21863 2013-05-16 Marek Polacek <polacek@redhat.com>
21865 * tree-scalar-evolution.c (scev_const_prop): Add more dumps.
21867 2013-05-15 Leif Ekblad <leif@rdos.net>
21869 * config/i386/i386.c (ix86_decompose_address): Use
21870 DEFAULT_TLS_SEG_REG to access TLS segment register.
21871 * config/i386/i386.h (DEFAULT_TLS_SEG_REG): New define.
21872 * config/i386/rdos.h (DEFAULT_TLS_SEG_REG): Ditto.
21873 (TARGET_TLS_DIRECT_SEG_REFS_DEFAULT): Ditto.
21875 2013-05-15 Richard Sandiford <rdsandiford@googlemail.com>
21878 * config/mips/mips.c (mips_function_ok_for_sibcall): Don't allow
21879 sibling calls to functions that would normally be lazily bound,
21880 unless $gp is call-clobbered.
21882 2013-05-15 Uros Bizjak <ubizjak@gmail.com>
21884 * config/i386/i386.c (ix86_option_override_internal): Update
21885 processor_alias_table for missing PTA_PRFCHW and PTA_FXSR flags. Add
21886 PTA_POPCNT to corei7 entry. Do not enable SSE prefetch on
21887 non-SSE 3dNow! targets. Enable TARGET_PRFCHW for TARGET_3DNOW targets.
21888 * config/i386/i386.md (prefetch): Enable for TARGET_PRFCHW instead
21890 (*prefetch_3dnow): Enable for TARGET_PRFCHW only.
21892 2013-05-15 Andreas Schwab <schwab@suse.de>
21894 * config/m68k/m68k.md (*rotlhi3_lowpart, *rotlqi3_lowpart): Name
21895 for rotlhi3+1 and rotlqi3+1, resp. Fix reference to non-existing
21898 2013-05-15 Teresa Johnson <tejohnson@google.com>
21900 * loop-unroll.c (report_unroll_peel): Check decision before
21901 emitting unroll/peel message.
21903 2013-05-15 Teresa Johnson <tejohnson@google.com>
21905 * function.h (has_bb_partition): New rtl_data flag.
21906 (bb_reorder_complete): Ditto.
21907 * cfgcleanup.c (try_crossjump_to_edge): Check for has_bb_partition
21908 instead of flag_reorder_blocks_and_partition.
21909 * cfgrtl.c (verify_hot_cold_block_grouping): Moved from bb-reorder.c,
21910 with some enhancements.
21911 (rtl_verify_flow_info_1): Call verify_hot_cold_block_grouping.
21912 * bb-reorder.c (connect_traces): Check for has_bb_partition
21913 instead of flag_reorder_blocks_and_partition.
21914 (verify_hot_cold_block_grouping): Moved to cfgrtl.c.
21915 (reorder_basic_blocks): Set bb_reorder_complete flag, remove call to
21916 verify_hot_cold_block_grouping.
21917 (partition_hot_cold_basic_blocks): Set has_bb_partition.
21919 2013-05-15 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
21922 * config/arm/predicates.md (call_insn_operand): New predicate.
21923 * config/arm/constraints.md ("Cs", "Ss"): New constraints.
21924 * config/arm/arm.md (*call_insn, *call_value_insn): Match only
21925 if insn is not a tail call.
21926 (*sibcall_insn, *sibcall_value_insn): Adjust for tailcalling through
21928 * config/arm/arm.h (enum reg_class): New caller save register class.
21929 (REG_CLASS_NAMES): Likewise.
21930 (REG_CLASS_CONTENTS): Likewise.
21931 * config/arm/arm.c (arm_function_ok_for_sibcall): Allow tailcalling
21934 2013-05-15 Richard Biener <rguenther@suse.de>
21936 * tree-vect-loop.c (vect_transform_loop): Use MSG_NOTE instead
21937 of MSG_OPTIMIZED_LOCATIONS.
21938 * tree-vect-slp.c (vect_make_slp_decision): Likewise.
21939 (vect_slp_transform_bb): Indicate location in MSG_OPTIMIZED_LOCATIONS
21941 * tree-vectorizer.c (vectorize_loops): Use MSG_NOTE instead
21942 of MSG_OPTIMIZED_LOCATIONS.
21943 (execute_vect_slp): Likewise.
21944 * tree-vect-loop-manip.c (vect_do_peeling_for_loop_bound): Likewise.
21945 (vect_create_cond_for_alias_checks): Likewise.
21946 * tree-vect-patterns.c (vect_recog_dot_prod_pattern): Likewise.
21947 (vect_recog_widen_mult_pattern): Likewise.
21948 (vect_recog_widen_sum_pattern): Likewise.
21949 (vect_recog_over_widening_pattern): Likewise.
21950 (vect_recog_widen_shift_pattern): Likewise.
21951 (vect_recog_vector_vector_shift_pattern): Likewise.
21952 (vect_recog_divmod_pattern): Likewise.
21953 (vect_recog_mixed_size_cond_pattern): Likewise.
21954 (vect_recog_bool_pattern): Likewise.
21955 (vect_pattern_recog_1): Likewise.
21957 2013-05-15 Martin Jambor <mjambor@suse.cz>
21959 * ipa-prop.c (ipa_make_edge_direct_to_target): Redirect calls to
21960 non-functions to builtin_unreachable.
21961 * ipa-inline-transform.c (inline_call): Do not assert estimates were
21962 correct when new direct edges were discovered.
21964 2013-05-15 Martin Jambor <mjambor@suse.cz>
21966 * ipa-prop.c (ipa_print_node_jump_functions): Print symbol order in
21967 header, print symbol order instead of node uid, print more information
21968 about indirect edge targets.
21969 (ipa_make_edge_direct_to_target): Print symbol order instead of node
21971 (ipa_make_edge_direct_to_target): Likewise.
21972 (remove_described_reference): Likewise.
21973 (propagate_controlled_uses): Likewise.
21974 (ipa_print_node_params): Also print symbol order.
21975 (ipcp_transform_function): Print symbol order instead of node uids.
21976 * cgraph.c (cgraph_redirect_edge_call_stmt_to_callee): Likewise.
21977 (cgraph_get_create_real_symbol_node): Likewise.
21978 * ipa-cp.c (print_lattice): Likewise.
21979 (print_all_lattices): Likewise.
21980 (determine_versionability): Likewise.
21981 (initialize_node_lattices): Likewise.
21982 (estimate_local_effects): Likewise.
21983 (update_profiling_info): Likewise.
21984 (create_specialized_node): Likewise.
21985 (perhaps_add_new_callers): Likewise.
21986 (decide_about_value): Likewise.
21987 (decide_whether_version_node): Likewise.
21988 (identify_dead_nodes): Likewise.
21989 * ipa-inline-analysis.c (dump_inline_edge_summary): Likewise.
21990 (dump_inline_summary): Likewise.
21991 (estimate_node_size_and_time): Likewise.
21992 (inline_analyze_function): Likewise.
21993 * ipa-inline.c (report_inline_failed_reason): Likewise.
21994 (want_early_inline_function_p): Likewise.
21995 (edge_badness): Likewise.
21996 (update_edge_key): Likewise.
21997 (inline_small_functions): Likewise. Add dumping of order to two other
21999 * ipa-pure-const.c (pure_const_read_summary): Print symbol order
22000 instead of node uids.
22001 (propagate_pure_const): Likewise.
22002 (propagate_pure_const): Likewise.
22003 * ipa-utils.c (dump_cgraph_node_set): Likewise.
22004 * lto-cgraph.c (input_node): Explicitly specify we dump uid.
22005 * lto-symtab.c (lto_cgraph_replace_node): Print symbol order instead
22007 * tree-pretty-print.c (dump_function_header): Likewise.
22008 * tree-sra.c (convert_callers_for_node): Dump in traditional format.
22009 Print symbol order instead of node uids.
22011 2013-05-15 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
22013 * config/s390/s390.c (s390_register_move_cost): Don't impose the
22014 FPR<->GPR move cost penalty if ldgr/lgdr can be used.
22016 2013-05-15 Richard Biener <rguenther@suse.de>
22018 PR tree-optimization/57275
22019 * tree-vect-data-refs.c (vect_analyze_data_ref_dependence): Fix
22020 return value for fail to do runtime alias checks for gather loads.
22022 2013-05-15 Jan Hubicka <jh@suse.cz>
22026 * lto-symtab.c (lto_symtab_symbol_p): Add external symbol;
22027 weakrefs are not external.
22028 (lto_symtab_merge_decls): Fix thinko when dealing with
22029 non-lto_symtab decls.
22030 (lto_symtab_merge_cgraph_nodes): Use lto_symtab_symbol_p.
22031 (lto_symtab_prevailing_decl): Get int sync with lto_symtab_symbol_p.
22032 * varpool.c (dump_varpool_node): Dump more flags.
22034 2013-05-15 Ganesh Gopalasubramanian <Ganesh.Gopalasubramanian@amd.com>
22036 * config/i386/i386.c (processor_alias_table): Add instruction
22037 FSGSBASE for AMD bdver3 architecture.
22039 2013-05-14 Jakub Jelinek <jakub@redhat.com>
22041 * tree.c (warn_deprecated_use): Print file:line using locus color.
22042 * diagnostic.c (diagnostic_report_current_module): Print file:line
22043 and file:line:column using locus color.
22045 2013-05-14 Mike Stump <mikestump@comcast.net>
22047 * gdbinit.in: Add __null.
22049 2013-05-14 Mike Stump <mikestump@comcast.net>
22051 * recog.h: Rename struct recog_data to Recog_data.
22052 * recog.c: Likewise.
22053 * reload.c (can_reload_into): Likewise.
22054 * config/picochip/picochip.c: Likewise.
22056 2013-05-14 Mike Stump <mikestump@comcast.net>
22058 * web.c (union_match_dups): Also check DF_REF_REAL_LOC.
22060 2013-05-14 Steven Bosscher <steven@gcc.gnu.org>
22062 * resource.h (struct resources): Remove unch_memory member.
22063 (CLEAR_RESOURCE): Don't clear unch_memory.
22064 * resource.c (mark_referenced_resources): Don't set it.
22065 (mark_set_resources): Likewise.
22066 (mark_target_live_regs): Don't clear it.
22067 (init_resource_info): Likewise.
22068 * reorg.c (resource_conflicts_p): Don't compare it.
22069 (redundant_insn): Don't set it.
22071 * rtl.h (next_label, skip_consecutive_labels, link_cc0_insns):
22073 * emit-rtl.c (next_label): Remove unused function.
22074 (skip_consecutive_labels, link_cc0_insns): Move to ...
22075 * reorg.c (skip_consecutive_labels, link_cc0_insns): ... here, the
22076 only place where these functions are used, and make them static.
22078 2013-05-14 Marc Glisse <marc.glisse@inria.fr>
22080 * fold-const.c (fold_negate_expr): Handle vectors.
22081 (fold_truth_not_expr): Make it static.
22082 (fold_invert_truthvalue): New static function.
22083 (invert_truthvalue_loc): Handle vectors. Do not call
22084 fold_truth_not_expr directly.
22085 (fold_unary_loc) <BIT_NOT_EXPR>: Handle comparisons.
22086 <TRUTH_NOT_EXPR>: Do not cast to boolean.
22087 (fold_comparison): Handle vector constants.
22088 (fold_binary_loc) <TRUTH_XOR_EXPR>: Remove redundant code.
22089 (fold_ternary_loc) <VEC_COND_EXPR>: Adapt more COND_EXPR optimizations.
22090 * tree.h (fold_truth_not_expr): Remove declaration.
22092 2013-05-14 James Greenhalgh <james.greenhalgh@arm.com>
22094 * config/aarch64/aarch64-simd.md
22095 (aarch64_vcond_internal<mode>): Rename to...
22096 (aarch64_vcond_internal<mode><mode>): ...This, for integer modes.
22097 (aarch64_vcond_internal<VDQF_COND:mode><VDQF:mode>): ...This for
22098 float modes. Clarify all iterator modes.
22099 (vcond<mode><mode>): Use new name for vcond expanders.
22100 (vcond<v_cmp_result><mode>): Likewise.
22101 (vcondu<mode><mode>: Likewise.
22102 * config/aarch64/iterators.md (VDQF_COND): New.
22104 2013-05-14 Marc Glisse <marc.glisse@inria.fr>
22107 * fold-const.c (fold_binary_loc) <shift>: Use an unsigned
22108 variable for the shift amount. Check that we shift by non-negative
22111 2013-05-14 Chung-Lin Tang <cltang@codesourcery.com>
22114 * config/arm/arm.h (EPILOGUE_USES): Only return true
22115 for LR_REGNUM after epilogue_completed.
22117 2013-05-14 Joern Rennecke <joern.rennecke@embecosm.com>
22119 * config/avr/avr.c (avr_encode_section_info): Bail out if the type
22120 is error_mark_node.
22122 2013-05-14 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
22125 * configure.ac (gcc_cv_ld_as_needed): Disable before Solaris 11
22126 and Solaris 11+/x86 with gld.
22127 * configure: Regenerate.
22129 2013-05-14 Jakub Jelinek <jakub@redhat.com>
22131 * expmed.c (expand_shift_1): Canonicalize rotates by
22132 constant bitsize / 2 to bitsize - 1.
22133 * simplify-rtx.c (simplify_binary_operation_1) <case ROTATE,
22134 case ROTATERT>: Likewise.
22137 2013-05-10 Jakub Jelinek <jakub@redhat.com>
22139 * config/i386/i386.md (rotateinv): New code attr.
22140 (*<rotate_insn><mode>3_1, *<rotate_insn>si3_1_zext,
22141 *<rotate_insn>qi3_1_slp): Emit rorl %eax instead of
22142 roll $31, %eax, etc.
22144 2013-05-14 Richard Biener <rguenther@suse.de>
22146 PR middle-end/57235
22147 * tree-eh.c (sink_clobbers): Give up for successors with
22148 multiple predecessors and no virtual uses.
22150 2013-05-14 Eric Botcazou <ebotcazou@adacore.com>
22152 * config/sparc/sp64-elf.h (CPP_SUBTARGET_SPEC): Delete.
22153 * config/sparc/openbsd64.h (CPP_SUBTARGET_SPEC): Likewise.
22155 2013-05-14 Jakub Jelinek <jakub@redhat.com>
22157 PR middle-end/57251
22158 * expr.c (expand_expr_real_2) <case WIDEN_MULT_EXPR>: Handle
22159 the case when both op0 and op1 have VOIDmode.
22161 2013-05-14 Kaushik Phatak <kaushik.phatak@kpitcummins.com>
22163 * config/rl78/rl78.md(mulsi3_g13): Add additional 'nop' required
22164 in multiply-accumulate mode.
22166 2013-05-13 Guozhi Wei <carrot@google.com>
22168 * dwarf2asm.c (dw2_output_indirect_constant_1): Mark new decl STATIC.
22170 2013-05-13 Kai Tietz <ktietz@redhat.com>
22173 * config/i386/cygming.h (TARGET_PECOFF): Define as true.
22174 * config/i386/i386.h (TARGET_PECOFF): Define by default as false.
22175 (PIC_OFFSET_TABLE_REGNUM): Use TARGET_PECOFF.
22176 * config/i386/i386.c (ix86_option_override_internal): Likewise.
22177 (ix86_expand_prologue): Likewise.
22178 (ix86_expand_split_stack_prologue): Likewise.
22179 (legitimate_pic_address_disp_p): Likewise.
22180 (legitimize_pic_address): Likewise.
22181 (legitimize_tls_address): Likewise.
22182 (legitimize_pe_coff_symbol): Likewise.
22183 (output_pic_addr_const): Likewise.
22184 (construct_plt_address): Likewise.
22185 (ix86_expand_call): Likewise.
22186 (x86_output_mi_thunk): Likewise.
22187 (x86_function_profiler): Likewise.
22189 2013-05-13 Sofiane Naci <sofiane.naci@arm.com>
22191 * config/aarch64/aarch64-simd.md (aarch64_simd_mov<mode>): Group
22192 similar switch cases.
22193 (aarch64_simd_mov): Rename to aarch64_split_simd_mov. Update.
22194 (aarch64_simd_mov_to_<mode>low): Delete.
22195 (aarch64_simd_mov_to_<mode>high): Delete.
22196 (move_lo_quad_<mode>): Add w<-r alternative.
22197 (aarch64_simd_move_hi_quad_<mode>): Likewise.
22198 (aarch64_simd_mov_from_*): Update type attribute.
22199 * config/aarch64/aarch64.c (aarch64_split_simd_move): Refacror switch
22202 2013-05-13 Jan Hubicka <jh@suse.cz>
22204 * mode-switching.c (optimize_mode_switching): Set correct RTL profile.
22205 * config/i386/i386.c (ix86_compute_frame_layout,
22206 ix86_expand_epilogue, emit_i387_cw_initialization,
22207 ix86_expand_vector_move_misalign, ix86_fp_comparison_strategy,
22208 ix86_local_alignment): Fix use of size/speed predicates.
22210 2013-05-13 Jakub Jelinek <jakub@redhat.com>
22212 PR tree-optimization/45216
22213 PR tree-optimization/57157
22214 * tree-ssa-forwprop.c (simplify_rotate): Only recognize
22215 the (-Y) & (B - 1) variant if OP is |.
22216 * expmed.c (expand_shift_1): For rotations by const0_rtx just
22217 return shifted. Use (-op1) & (prec - 1) as other_amount
22218 instead of prec - op1.
22220 2013-05-13 Martin Jambor <mjambor@suse.cz>
22222 PR middle-end/42371
22223 * ipa-prop.h (IPA_UNDESCRIBED_USE): New macro.
22224 (ipa_constant_data): New type.
22225 (ipa_jump_func): Use ipa_constant_data to hold information about
22226 constant jump functions.
22227 (ipa_get_jf_constant): Adjust to jump function type changes.
22228 (ipa_get_jf_constant_rdesc): New function.
22229 (ipa_param_descriptor): New field controlled_uses.
22230 (ipa_get_controlled_uses): New function.
22231 (ipa_set_controlled_uses): Likewise.
22232 * ipa-ref.h (ipa_find_reference): Declare.
22233 * ipa-prop.c (ipa_cst_ref_desc): New type.
22234 (ipa_print_node_jump_functions_for_edge): Adjust for jump function type
22236 (ipa_set_jf_constant): Likewise. Also create reference descriptions.
22237 New parameter cs. Adjust all callers.
22238 (ipa_analyze_params_uses): Detect uncontrolled and controlled uses.
22239 (remove_described_reference): New function.
22240 (jfunc_rdesc_usable): Likewise.
22241 (try_make_edge_direct_simple_call): Decrement controlled use count,
22242 attempt to remove reference if it hits zero.
22243 (combine_controlled_uses_counters): New function.
22244 (propagate_controlled_uses): Likewise.
22245 (ipa_propagate_indirect_call_infos): Call propagate_controlled_uses.
22246 (ipa_edge_duplication_hook): Duplicate reference descriptions.
22247 (ipa_print_node_params): Print described use counter.
22248 (ipa_write_jump_function): Adjust to jump function type changes.
22249 (ipa_read_jump_function): New parameter CS, pass it to
22250 ipa_set_jf_constant. Adjust caller.
22251 (ipa_write_node_info): Stream controlled use count
22252 (ipa_read_node_info): Likewise.
22253 * cgraph.c (cgraph_mark_address_taken_node): Bail out instead of
22255 * ipa-cp.c (ipcp_discover_new_direct_edges): Decrement controlled use
22256 count. Remove cloning-added reference if it reaches zero.
22257 * ipa-ref.c (ipa_find_reference): New function.
22259 2013-05-13 Ganesh Gopalasubramanian <Ganesh.Gopalasubramanian@amd.com>
22261 * config/i386/i386.c (processor_target_table): Modified default
22262 alignment values for AMD BD and BT architectures.
22264 2013-05-13 Marc Glisse <marc.glisse@inria.fr>
22266 * tree-vect-generic.c (uniform_vector_p): Move ...
22267 * tree.c (uniform_vector_p): ... here.
22268 * tree.h (uniform_vector_p): Declare it.
22269 * fold-const.c (fold_binary_loc) <shift>: Turn the second argument
22272 2013-05-13 Jakub Jelinek <jakub@redhat.com>
22274 PR tree-optimization/57230
22275 * tree-ssa-strlen.c (handle_char_store): Record length for
22276 array store from STRING_CST.
22278 PR tree-optimization/57230
22279 * tree-ssa-strlen.c (handle_char_store): Add missing integer_zerop
22282 2013-05-12 Joern Rennecke <joern.rennecke@embecosm.com>
22284 * config/epiphany/epiphany.c (epiphany_init): Check size of
22285 NUM_MODES_FOR_MODE_SWITCHING.
22286 (epiphany_expand_prologue):
22287 Remove CONFIG_REGNUM initial value handling code.
22288 (epiphany_optimize_mode_switching): Handle EPIPHANY_MSW_ENTITY_CONFIG.
22289 (epiphany_mode_needed, epiphany_mode_entry_exit): Likewise.
22290 (emit_set_fp_mode, epiphany_mode_after): Likewise.
22291 (epiphany_mode_needed) <Handle EPIPHANY_MSW_ENTITY_AND>:
22292 Don't return 1 for FP_MODE_NONE.
22293 * config/epiphany/epiphany.h (NUM_MODES_FOR_MODE_SWITCHING):
22294 Add value for EPIPHANY_MSW_ENTITY_CONFIG.
22295 (EPIPHANY_MSW_ENTITY_CONFIG, EPIPHANY_MSW_ENTITY_NUM): Define.
22296 * config/epiphany/epiphany.md (save_config): New pattern.
22298 2013-05-12 Uros Bizjak <ubizjak@gmail.com>
22300 * config/i386/i386.md (*zero_extendsidi2): Add *x->?r alternative.
22302 2013-05-10 Uros Bizjak <ubizjak@gmail.com>
22304 * config/i386/i386.md (memory): Handle sseishft1.
22305 * config/i386/sse.md (*vec_extractv4si): Remove memory attribute.
22306 (*vec_extractv2di_1): Ditto.
22308 2013-05-10 Vladimir Makarov <vmakarov@redhat.com>
22310 * lra-assigns.c (find_hard_regno_for): Add 1 to the cost of call
22313 2013-05-10 Sebastian Huber <sebastian.huber@embedded-brains.de>
22315 * config/arm/t-rtems-eabi: Remove mthumb/march=armv7 multilib.
22316 Add mthumb/march=armv7-a multilib.
22317 Add mthumb/march=armv7-r multilib.
22318 Add mthumb/march=armv7-a/mfpu=neon/mfloat-abi=hard multilib.
22320 2013-05-10 Ralf Corsépius <ralf.corsepius@rtems.org>
22322 * config/v850/t-rtems: Add more multilibs.
22324 2013-05-10 Richard Biener <rguenther@suse.de>
22326 PR tree-optimization/57214
22327 * tree-ssa-loop-ivcanon.c (propagate_constants_for_unrolling): Do
22328 not propagate from SSA names that occur in abnormal PHI nodes.
22330 2013-05-10 Marc Glisse <marc.glisse@inria.fr>
22332 * stor-layout.c (element_precision): New function.
22333 * machmode.h (element_precision): Declare it.
22334 * tree.c (build_minus_one_cst): New function.
22335 (element_precision): Likewise.
22336 * tree.h (build_minus_one_cst): Declare new function.
22337 (element_precision): Likewise.
22338 * fold-const.c (operand_equal_p): Use element_precision.
22339 (fold_binary_loc): Handle vector types.
22340 * convert.c (convert_to_integer): Use element_precision.
22341 * gimple.c (iterative_hash_canonical_type): Handle complex and vectors
22344 2013-05-10 Richard Sandiford <rdsandiford@googlemail.com>
22346 * config/mips/mips-protos.h (m16_uimm3_b, m16_simm4_1, m16_nsimm4_1)
22347 (m16_simm5_1, m16_nsimm5_1, m16_uimm5_4, m16_nuimm5_4, m16_simm8_1)
22348 (m16_nsimm8_1, m16_uimm8_1, m16_nuimm8_1, m16_uimm8_m1_1, m16_uimm8_4)
22349 (m16_nuimm8_4, m16_simm8_8, m16_nsimm8_8): Delete.
22350 * config/mips/mips.c (m16_check_op, m16_uimm3_b, m16_simm4_1)
22351 (m16_nsimm4_1, m16_simm5_1, m16_nsimm5_1, m16_uimm5_4, m16_nuimm5_4)
22352 (m16_simm8_1, m16_nsimm8_1, m16_uimm8_1, m16_nuimm8_1, m16_uimm8_m1_1)
22353 (m16_uimm8_4, m16_nuimm8_4, m16_simm8_8, m16_nsimm8_8): Delete.
22354 * config/mips/constraints.md (Udb8, Usb5, Usb8, Usd8, Uub8, Uuw5)
22355 (Uuw8): New constraints.
22356 (Usb4): Move into alphabetical order.
22357 * config/mips/predicates.md (db8_operand, sb5_operand, sb8_operand)
22358 (sd8_operand, ub8_operand, uw8_operand): New predicates.
22359 * config/mips/mips.md (*xor<mode>3, *xor<mode>3_mips16): Name
22360 previously unnamed patterns.
22361 (*add<mode>3_mips16, *xor<mode>3_mips16, *<optab>si3_mips16)
22362 (*ashldi3_mips16, *ashrdi3_mips16, *lshrdi3_mips16)
22363 (*slt<u>_<GPR:mode><GPR2:mode>_mips16)
22364 (*sle<u>_<GPR:mode><GPR2:mode>_mips16): Use constraints instead
22365 of set_attr_alternative/if_then_else. Use extended_mips16 instead
22366 of specific lengths.
22368 2013-05-10 Jakub Jelinek <jakub@redhat.com>
22370 * config/i386/i386.md (rotateinv): New code attr.
22371 (*<rotate_insn><mode>3_1, *<rotate_insn>si3_1_zext,
22372 *<rotate_insn>qi3_1_slp): Emit rorl %eax instead of
22373 roll $31, %eax, etc.
22375 PR tree-optimization/45216
22376 PR tree-optimization/57157
22377 * tree-ssa-forwprop.c (simplify_rotate): New function.
22378 (ssa_forward_propagate_and_combine): Call it.
22380 2013-05-10 Richard Biener <rguenther@suse.de>
22382 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment): Do not
22383 disable peeling when we version for aliasing.
22384 (vector_alignment_reachable_p): Honor explicit user alignment.
22385 (vect_supportable_dr_alignment): Likewise.
22386 * tree-vect-loop-manip.c (vect_can_advance_ivs_p): Use
22387 STMT_VINFO_LOOP_PHI_EVOLUTION_PART instead of recomputing it.
22388 * tree-vect-loop.c (vect_transform_loop): First apply versioning,
22389 then peeling to arrange for the cost-model check to come first.
22391 2013-05-10 Alan Modra <amodra@gmail.com>
22393 * configure.ac (HAVE_AS_TLS): Swap powerpc64 and powerpc cases.
22394 (HAVE_LD_LARGE_TOC): Don't mention AIX in help text.
22395 * configure: Regenerate.
22397 2013-05-10 Alan Modra <amodra@gmail.com>
22400 * varasm.c (default_elf_select_section): Move !DECL_P check..
22401 (get_named_section): ..to here before calling get_section_name.
22403 (default_section_type_flags): Add DECL_P check.
22404 * config/i386/winnt.c (i386_pe_section_type_flags): Likewise.
22405 * config/rs6000/rs6000.c (rs6000_xcoff_section_type_flags): Likewise.
22407 2013-05-09 Joern Rennecke <joern.rennecke@embecosm.com>
22409 * config/epiphany/epiphany.c (epiphany_expand_prologue):
22410 When using gen_stack_adjust_str with a register offset, add a
22411 REG_FRAME_RELATED_EXPR note.
22413 2013-05-09 Uros Bizjak <ubizjak@gmail.com>
22415 * config/i386/sse.md (*vec_extractv4si_0_zext): New pattern.
22416 (*vec_extractv4si_zext_mem): Ditto.
22417 (*vec_extractv2di): Add 0->x and x->x alternatives.
22418 * config/i386/mmx.md (*vec_extractv2si_zext_mem): New pattern.
22419 * config/i386/i386.md (*zero_extendsidi2): Add *Yj->?r alternative.
22421 2013-05-09 Jason Merrill <jason@redhat.com>
22423 N3639 C++1y VLA support
22424 * gimplify.c (gimplify_vla_decl): Don't touch an existing
22427 * tree.c (build_constructor_va): New.
22428 * tree.h: Declare it.
22430 2013-05-09 Martin Jambor <mjambor@suse.cz>
22433 * gimple-fold.c (canonicalize_constructor_val): Call
22434 cgraph_get_create_real_symbol_node instead of cgraph_get_create_node.
22436 2013-05-09 Jan Hubicka <jh@suse.cz>
22437 Richard Biener <rguenther@suse.de>
22440 * symtab.c (symtab_make_decl_local): Do not add private names.
22442 2013-05-09 Jan Hubicka <jh@suse.cz>
22445 * symtab.c (insert_to_assembler_name_hash): Handle clones.
22446 (unlink_from_assembler_name_hash): Likewise.
22447 (symtab_prevail_in_asm_name_hash, symtab_register_node,
22448 symtab_unregister_node, symtab_initialize_asm_name_hash,
22449 change_decl_assembler_name): Update.
22451 2013-05-09 Sofiane Naci <sofiane.naci@arm.com>
22453 * config/aarch64/aarch64.md: New movtf split.
22454 (*movtf_aarch64): Update.
22455 (aarch64_movdi_tilow): Handle TF modes and rename to
22456 aarch64_movdi_<mode>low.
22457 (aarch64_movdi_tihigh): Handle TF modes and rename to
22458 aarch64_movdi_<mode>high
22459 (aarch64_movtihigh_di): Handle TF modes and rename to
22460 aarch64_mov<mode>high_di
22461 (aarch64_movtilow_di): Handle TF modes and rename to
22462 aarch64_mov<mode>low_di
22463 (aarch64_movtilow_tilow): Remove spurious whitespace.
22464 * config/aarch64/aarch64.c (aarch64_split_128bit_move): Handle TFmode
22466 (aarch64_print_operand): Update.
22468 2013-05-09 Alan Modra <amodra@gmail.com>
22470 * configure.ac (HAVE_AS_TLS): Enable tests for powerpcle and
22472 * configure: Regenerate.
22474 2013-05-08 Uros Bizjak <ubizjak@gmail.com>
22476 * config/i386/mmx.md (*vec_extract* splitters): Simplify post-reload
22477 splitter preparation statements.
22478 * config/i386/sse.md (*vec_extract* splitters): Ditto.
22479 (*avx_vperm_broadcast_<mode>): Use adjust_address instead of
22482 2013-05-08 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
22484 * gimple-ssa-strength-reduction.c (count_candidates): Change
22485 return value to int.
22486 (analyze_candidates_and_replace): Change type of length to int.
22488 2013-05-08 Uros Bizjak <ubizjak@gmail.com>
22490 * config/i386/sse.md (PEXTR_MODE, PEXTR_MODEx): Remove.
22491 (*vec_extract<mode>): Use VI12_128 mode iterator.
22492 (*vec_extract<mode>_mem): Ditto.
22493 (*vec_extract*_mem splitters): Merge splitters using VI_128 mode
22496 2013-05-08 Diego Novillo <dnovillo@google.com>
22501 2012-08-17 Diego Novillo <dnovillo@google.com>
22504 * configure.ac: Add libintl.h to AC_CHECK_HEADERS list.
22505 * config.in: Regenerate.
22506 * configure: Regenerate.
22507 * intl.h: Always include libintl.h if HAVE_LIBINTL_H is set.
22509 2013-05-08 Jan Hubicka <jh@suse.cz>
22512 * cgraph.c (cgraph_make_node_local_1): Se unique_name.
22513 * cgraph.h (symtab_node_base): Add unique_name.
22514 * lto-cgraph.c (lto_output_node, lto_output_varpool_node,
22515 input_overwrite_node, input_varpool_node): Stream unique_name.
22516 * cgraphclones.c (cgraph_create_virtual_clone,
22517 cgraph_function_versioning): Set unique_name.
22518 * ipa.c (function_and_variable_visibility): Set unique_name.
22520 2013-05-08 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
22522 * gimple-ssa-strength-reduction.c (find_phi_def): Revert former "fix."
22523 (alloc_cand_and_find_basis): Restrict conditional candidate
22524 processing to CAND_MULTs.
22526 2013-05-08 Jan Hubicka <jh@suse.cz>
22529 lto-symtab.c (lto_symtab_symbol_p): New function.
22530 (lto_symtab_resolve_can_prevail_p, lto_symtab_resolve_symbols,
22531 lto_symtab_resolve_symbols, lto_symtab_merge_decls_2,
22532 lto_symtab_merge_decls_1, lto_symtab_merge_cgraph_nodes_1):
22533 Skip static symbols.
22535 2013-05-08 Paolo Carlini <paolo.carlini@oracle.com>
22537 PR tree-optimization/57200
22538 * tree-ssa-loop-niter.c (do_warn_aggressive_loop_optimizations):
22539 Only call inform if the preceding warning_at returns true.
22541 2013-05-07 Han Shen <shenhan@google.com>
22543 * cfgexpand.c (record_or_union_type_has_array_p): New function.
22544 (expand_used_vars): Add logic handling '-fstack-protector-strong'.
22545 * common.opt (fstack-protector-strong): New option.
22546 * doc/cpp.texi (__SSP_STRONG__): New builtin "__SSP_STRONG__".
22547 * doc/invoke.texi (Optimization Options): Document
22548 "-fstack-protector-strong".
22549 * gcc.c (LINK_SSP_SPEC): Add 'fstack-protector-strong'.
22551 2013-05-06 Steven Bosscher <steven@gcc.gnu.org>
22553 * config/mips/mips.c (mips_machine_reorg2): Return 0.
22555 2013-05-07 Vladimir Makarov <vmakarov@redhat.com>
22557 * ira.c (update_equiv_regs): Add insn having equiv memory even if
22558 it is not lhs of the insn.
22559 (setup_reg_equiv): Remove insn having equiv memory which it is not
22561 * lra-constraints.c (process_address): Try to improve generation
22562 code for address base + disp.
22563 (lra_constraints): Make correct the code for checking insn setting
22564 up backward equivalence. Remove insn only if it is in the init
22566 * lra-eliminations.c (update_reg_eliminate): Change return value.
22567 (lra_eliminate): Use the result.
22569 2013-05-07 Uros Bizjak <ubizjak@gmail.com>
22571 * config/i386/sse.md (ssescalarnummask): New mode attribute.
22572 (PEXTR_MODE, PEXTR_MODEx): New mode iterators.
22573 (*vec_extract<mode>): Merge from *sse4_1_pextrb_memory and
22574 *sse4_1_pextrw_memory using PEXTR_MODE mode iterator. Handle
22575 register target operands.
22576 (*vec_extractv8hi_sse2): New pattern.
22577 (*vec_extractv16qi_zext): Rename from *sse4_1_pextrb_<mode>.
22578 (*vec_extractv8hi_zext): Rename from *sse2_pextrw_<mode>.
22579 (*vec_extract<mode>_mem): New insn and split pattern.
22581 2013-05-07 Christophe Lyon <christophe.lyon@linaro.org>
22583 * config/arm/arm.c (arm_asan_shadow_offset): New function.
22584 (TARGET_ASAN_SHADOW_OFFSET): Define.
22585 * config/arm/linux-eabi.h (ASAN_CC1_SPEC): Define.
22586 (LINUX_OR_ANDROID_CC): Add ASAN_CC1_SPEC.
22588 2013-05-07 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
22590 * gimple-ssa-strength-reduction.c (MAX_INCR_VEC_LEN): New constant.
22591 (incr_vec_index): Return -1 if increment not found.
22592 (create_add_on_incoming_edge): Assert if increment not found.
22593 (record_increment): Limit number of increments recorded.
22594 (all_phi_incrs_profitable): Return false if an increment not found.
22595 (replace_profitable_candidates): Don't process increments that were
22597 (analyze_candidates_and_replace): Limit size of incr_vec.
22599 2013-05-07 Richard Biener <rguenther@suse.de>
22601 * calls.c (special_function_p): setjmp-like functions are leaf.
22602 * builtins.def (BUILT_IN_SETJMP): setjmp is leaf.
22603 * tree-inline.c (update_ssa_across_abnormal_edges): Remove assert.
22605 2013-05-07 Sofiane Naci <sofiane.naci@arm.com>
22607 * config/aarch64/aarch64-simd.md (*aarch64_simd_mov<mode>): call splitter.
22608 (aarch64_simd_mov<mode>): New expander.
22609 (aarch64_simd_mov_to_<mode>low): New instruction pattern.
22610 (aarch64_simd_mov_to_<mode>high): Likewise.
22611 (aarch64_simd_mov_from_<mode>low): Likewise.
22612 (aarch64_simd_mov_from_<mode>high): Likewise.
22613 (aarch64_dup_lane<mode>): Update.
22614 (aarch64_dup_lanedi): New instruction pattern.
22615 * config/aarch64/aarch64-protos.h (aarch64_split_simd_move): New prototype.
22616 * config/aarch64/aarch64.c (aarch64_split_simd_move): New function.
22618 2013-05-07 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
22620 * gimple-ssa-strength-reduction.c (lazy_create_slsr_reg): Remove.
22621 (replace_mult_candidate): Remove unnecessary argument; remove
22622 unnecessary parameter from call to introduce_cast_before_cand.
22623 (replace_unconditional_candidate): Remove unnecessary parameter
22624 from call to replace_mult_candidate.
22625 (replace_conditional_candidate): Likewise.
22626 (insert_initializers): Use make_temp_ssa_name.
22627 (introduce_cast_before_cand): Remove unnecessary argument; use
22628 make_temp_ssa_name.
22629 (replace_one_candidate): Remove unnecessary argument; remove
22630 unnecessary parameter from calls to introduce_cast_before_cand.
22631 (replace_profitable_candidates): Remove unnecessary parameters
22632 from calls to replace_one_candidate.
22634 2013-05-07 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
22636 * gimple-ssa-strength-reduction.c (find_phi_def): Don't record a
22637 phi def as possibly hiding a basis for a CAND_ADD whose operands
22638 have been commuted in the analysis.
22639 (alloc_cand_and_find_basis): Add parms to call to find_phi_def.
22641 2013-05-07 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
22643 * config/aarch64/aarch64.md
22644 (cmp_swp_<optab><ALLX:mode>_shft_<GPI:mode>): Restrict the
22645 shift value between 0-4.
22647 2013-05-07 Richard Biener <rguenther@suse.de>
22649 * double-int.h (rshift): New overload.
22650 * double-int.c (rshift): New function.
22651 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Optimize.
22652 (create_reference_ops_from_ref): Remove.
22653 (vn_reference_insert): Use shared ops for constructing the
22654 reference and copy it.
22656 2013-05-07 Richard Biener <rguenther@suse.de>
22658 PR middle-end/57190
22659 * tree-eh.c (sink_clobbers): Properly propagate
22660 SSA_NAME_OCCURS_IN_ABNORMAL_PHI.
22662 2013-05-07 Jakub Jelinek <jakub@redhat.com>
22664 PR tree-optimization/57149
22665 * tree-ssa-uninit.c (uninit_undefined_value_p): New inline.
22666 (can_skip_redundant_opnd, compute_uninit_opnds_pos,
22667 collect_phi_def_edges, execute_late_warn_uninitialized): Use
22668 uninit_undefined_value_p instead of ssa_undefined_value_p.
22671 * expr.c (expand_expr_addr_expr_1): Handle COMPOUND_LITERAL_EXPR
22672 for modifier == EXPAND_INITIALIZER.
22674 2013-05-07 Anton Blanchard <anton@samba.org>
22676 * configure.ac (HAVE_LD_LARGE_TOC): Use correct linker emulation
22677 for powerpc64 little endian.
22678 * configure: Regenerate.
22680 2013-05-06 Graham Stott <grahams@btinternet.com>
22682 * expmed.c (init_expmed_rtl): Remove unused fields reg_fld, plus_fld,
22683 mult_fld, sdiv_fld1, udiv_fld1, sdiv_32_fld1, smod_32_fld1,
22684 wide_mult_fld1, wide_lshr_fld1, shift_fld1, shift_mult_fld1,
22685 shift_add_fld1, shift_sub0_fld1, shift_sub1_fld1.
22687 2013-05-06 Graham Stott <grahams@btinternet.com>
22689 * gensupport.c (add_predicate_code): Also exclude SCRATCH from rtx
22690 codes which allow non-lvalues.
22692 2013-05-06 Marc Glisse <marc.glisse@inria.fr>
22694 * tree.c (integer_all_onesp) <COMPLEX_CST>: Test that both
22695 components are all 1s.
22696 (integer_minus_onep): New function.
22697 * tree.h (integer_minus_onep): Declare it.
22698 * fold-const.c (fold_binary_loc) <MULT_EXPR>: Test
22699 integer_minus_onep instead of integer_all_onesp.
22701 2013-05-06 Oleg Endo <olegendo@gcc.gnu.org>
22704 * config/sh/sh.md (*cmp_div0s_0, *cmp_div0s_1, *movsicc_div0s): Add
22705 variations of these patterns.
22707 2013-05-06 Uros Bizjak <ubizjak@gmail.com>
22709 * config/i386/i386.md (isa): Add x64_sse4 member.
22710 (enabled): Handle x64_sse4.
22711 (*movdi_internal): Add *x->?r alternative to emit pextrq $0,%xmm,%reg
22712 instruction for 64bit SSE4_1 targets. Update insn attributes.
22713 (*movsi_internal): Add *x->?r alternative to emit pextrd $0,%xmm,%reg
22714 instruction for SSE4_1 targets. Update insn attributes.
22715 * config/i386/sse.md (*vec_extract<ssevecmodelower>_0): Merge
22716 with *sse4_1_pextrd and *sse4_1_pextrq having const_0 selector.
22717 (*vec_extractv2di_1): Merge with *sse4_1_pextrq having
22719 (*vec_extractv4si): Rename from *sse4_1_pextrd.
22720 (*vec_extractv4si_zext): Rename from *sse4_1_pextrd_zext.
22721 (*vec_extract<ssevecmodelower>_0 splitters): Merge splitters together.
22723 2013-05-06 Oleg Endo <olegendo@gcc.gnu.org>
22726 * config/sh/sh.md (tstsi_t_zero_extract_eq): Use QIHISIDI mode iterator.
22728 2013-05-06 Maxim Kuznetsov <maks.kuznetsov@gmail.com>
22730 * final.c (do_assembler_dialects): Don't handle curly braces and
22731 vertical bar escaped by % as dialect delimiters.
22732 (output_asm_insn): Print curly braces and vertical bar if escaped
22733 by % and ASSEMBLER_DIALECT defined.
22734 * doc/tm.texi.in (ASSEMBLER_DIALECT): Document new standard escapes.
22735 * doc/tm.texi: Regenerated.
22737 2013-05-06 Steven Bosscher <steven@gcc.gnu.org>
22739 * config/mips/mips.c: Include tree-pass.h.
22740 (mips_reorg): Split in pre- and post-dbr_schedule parts.
22741 (mips_machine_reorg2): Move mips_reorg post-dbr_schedule parts here.
22742 (pass_mips_machine_reorg2): New machine specific pass.
22743 (insert_pass_mips_machine_reorg2): New pass plugin definition.
22744 (mips_option_override): Register the new pass.
22745 * rtl.h (cleanup_barriers): Remove prototype.
22746 (dbr_schedule): Likewise.
22747 * jump.c (cleanup_barriers): Make static.
22748 * reorg.c (dbr_schedule): Likewise.
22750 2013-05-06 Richard Biener <rguenther@suse.de>
22752 PR tree-optimization/57185
22753 * tree-parloops.c (add_field_for_reduction): Handle anonymous
22754 SSA names properly.
22756 2013-05-06 Uros Bizjak <ubizjak@gmail.com>
22759 * config/i386/i386.c (add_parameter_dependencies): Add dependence
22760 between "first_arg" and "insn", not "last" and "insn".
22762 2013-05-06 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
22764 * gimple-ssa-strength-reduction.c (slsr_process_phi): Re-enable.
22765 (find_candidates_in_block): Re-enable slsr_process_phi.
22766 (create_phi_basis): Fix double counting of candidate adjustment.
22768 2013-05-06 Richard Biener <rguenther@suse.de>
22770 PR middle-end/57147
22771 * tree-cfg.c (gimple_purge_dead_abnormal_call_edges): If
22772 the edge is also fallthru, preserve it and just clear the
22774 * tree-cfgcleanup.c (remove_fallthru_edge): If the edge is
22775 also complex, preserve that and just clear the fallthru flag.
22776 * tree-inline.c (update_ssa_across_abnormal_edges): Also
22777 update virtual operands.
22779 2013-05-06 Alan Modra <amodra@gmail.com>
22781 * config/rs6000/linux.h (DEFAULT_ASM_ENDIAN): Define.
22782 (LINK_OS_LINUX_EMUL): Use ENDIAN_SELECT.
22783 * config/rs6000/linux64.h (DEFAULT_ASM_ENDIAN): Define.
22784 * config/rs6000/sysv4le.h (DEFAULT_ASM_ENDIAN): Define.
22785 (LINK_TARGET_SPEC): Use ENDIAN_SELECT.
22786 * config/rs6000/sysv4.h (DEFAULT_ASM_ENDIAN): Define as -mbig.
22788 2013-05-06 Alan Modra <amodra@gmail.com>
22790 * config/rs6000/sysv4.h (ENDIAN_SELECT): Define, extracted from
22791 (ASM_SPEC): ..here. Emit DEFAULT_ASM_ENDIAN too.
22792 (DEFAULT_ASM_ENDIAN): Define.
22793 (CC1_SPEC, LINK_TARGET_SPEC): Use ENDIAN_SELECT.
22794 * config/rs6000/linux64.h (ASM_SPEC32): Remove endian options.
22795 Update -K PIC clause from sysv4.h.
22796 (ASM_SPEC_COMMON): Use ENDIAN_SELECT.
22797 (LINK_OS_LINUX_EMUL32, LINK_OS_LINUX_EMUL64): Likewise.
22799 2013-05-06 Alan Modra <amodra@gmail.com>
22801 * config/rs6000/rs6000.md (bswapdi 2nd splitter): Don't swap words
22802 twice for little-endian.
22803 (ashrdi3_no_power, ashrdi3): Support little-endian.
22805 2013-05-06 Oleg Endo <olegendo@gcc.gnu.org>
22808 * config/sh/sh.c (sh_rtx_costs): Handle SMIN and SMAX cases.
22809 * config/sh/sh.md (*clips, uminsi3, *clipu, clipu_one): New insns and
22811 * config/sh/iterators.md (SMIN_SMAX): New code iterator.
22812 * config/sh/predicates.md (arith_reg_or_0_or_1_operand,
22813 clips_min_const_int, clips_max_const_int, clipu_max_const_int):
22816 2013-05-05 Steven Bosscher <steven@gcc.gnu.org>
22817 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
22819 * config.gcc (hppa*-*-*): Remove MASK_BIG_SWITCH from CPU default.
22820 * config/pa/pa.opt: Make mbig-switch a no-op.
22821 * config/pa/pa.h (TARGET_DEFAULT): Remove MASK_BIG_SWITCH.
22822 (CASE_VECTOR_MODE): Always return SImode.
22823 (ASM_OUTPUT_ADDR_VEC_ELT, ASM_OUTPUT_ADDR_DIFF_ELT): Remove code
22824 for the !TARGET_BIG_SWITCH case.
22825 * config/pa/pa-linux.h: Likewise.
22826 * config/pa/pa-openbsd.h: Likewise.
22827 * config/pa/pa-hpux.h: Define TARGET_DEFAULT to 0.
22828 * config/pa/pa.md (short_jump): Remove define_insn.
22829 (casesi): Remove code for the !TARGET_BIG_SWITCH case.
22830 (casesi0): Remove define_insn.
22831 (type): Remove btable_branch.
22832 (pa_combine_type): Likewise.
22833 (in_nullified_branch_delay): Likewise.
22834 (in_call_delay): Likewise.
22835 (define_delay): Likewise.
22836 (define_insn_reservation "Z3"): Likewise.
22837 (define_insn_reservation "Z4"): Likewise.
22838 * config/pa/pa.c (pa_reorg): Remove code for !TARGET_BIG_SWITCH.
22839 (pa_adjust_insn_length): Remove adjustment for btable branches.
22840 * doc/invoke.texi (HPPA Options): Delete documentation for mbig-switch
22843 2013-05-05 Uros Bizjak <ubizjak@gmail.com>
22845 * config/i386/sse.md (*vec_extract<ssevecmodelower>_0): Merge
22846 from sse2_stored and *sse2_storeq_rex64 using SWI48 mode iterator.
22847 Add m->r,x alternatives.
22848 (*vec_extract<ssevecmodelower>_0 splitters): Merge V2DI and V4SI
22849 splitters using SWI48x mode iterator.
22850 (*vec_extract_v2di_0_sse): Rename from *sse2_storeq. Disable for
22851 TARGET_64BIT. Add m->x alternative.
22852 (*vec_extractv4si_mem): Rename from *vec_ext_v4si_mem.
22853 Add o->x alternative. Enable for TARGET_SSE.
22854 (sse_storeq): Remove expander.
22855 (*vec_extractv2di_1): Enable for TARGET_SSE. Split alternatives
22856 with memory input operand.
22857 (*vec_extractv2di_1 splitter): New.
22858 (*vec_extractv4sf_mem): Rename from *vec_extract_v4sf_mem.
22859 * config/i386/i386.md (ssevecmodelower): New mode attribute.
22861 2013-05-04 Segher Boessenkool <segher@kernel.crashing.org>
22863 * config/rs6000/rs6000.c (INT_P): Reformat. Delete obsolete comment.
22864 (INT_LOWPART): Delete.
22865 (extract_MB): Adjust.
22866 (extract_ME): Adjust.
22867 (print_operand): Adjust.
22869 2013-05-04 Segher Boessenkool <segher@kernel.crashing.org>
22871 * config/rs6000/predicates.md (reg_or_add_cint_operand,
22872 reg_or_sub_cint_operand): Delete "HOST_BITS_PER_WIDE_INT == 32" case.
22873 (reg_or_logical_cint_operand, easy_fp_constant,
22874 logical_const_operand): Delete "CONST_DOUBLE" case.
22875 * config/rs6000/rs6000.c (num_insns_constant_wide): Delete
22876 "HOST_BITS_PER_WIDE_INT == 64" test.
22877 (num_insns_constant): Ditto. Delete CONST_DOUBLE DImode/VOIDmode case.
22878 (build_mask64_2_operands): Delete "HOST_BITS_PER_WIDE_INT >= 64" test.
22879 (rs6000_emit_set_const): Delete CONST_DOUBLE case.
22880 (rs6000_emit_set_long_const): Delete "HOST_BITS_PER_WIDE_INT >= 64"
22882 (includes_rldic_lshift_p, includes_rldicr_lshift_p): Delete
22883 CONST_DOUBLE DImode/VOIDmode case.
22884 (INT_P, INT_LOWPART): Delete CONST_DOUBLE case.
22885 (print_operand): Delete "HOST_BITS_PER_WIDE_INT == 32" case. Delete
22886 CONST_DOUBLE VOIDmode case.
22887 (output_toc): Delete "HOST_BITS_PER_WIDE_INT == 32" case.
22888 (rs6000_rtx_costs): Delete CONST_DOUBLE DImode/VOIDmode case.
22889 * config/rs6000/rs6000.md (iordi3, xordi3, splitter for these):
22890 Delete CONST_DOUBLE case.
22891 (splitters for mov FMOVE64 const_double): Delete
22892 "HOST_BITS_PER_WIDE_INT == 32" case. Delete
22893 "HOST_BITS_PER_WIDE_INT >= 64" test.
22894 (splitter for mov DI const_int): Delete "HOST_BITS_PER_WIDE_INT == 32"
22896 (mov DI const_double): Delete.
22898 2013-05-04 Jakub Jelinek <jakub@redhat.com>
22900 * combine.c (combine_simplify_rtx) <case SUBREG>: If nonzero_bits
22901 on op shows all bits zero in mode of a lowpart subreg, return zero.
22903 2013-05-03 Michael Meissner <meissner@linux.vnet.ibm.com>
22906 * config/rs6000/rs6000.h (HARD_REGNO_CALLER_SAVE_MODE): Use DFmode
22907 to save TFmode registers and DImode to save TImode registers for
22908 caller save operations.
22909 (HARD_REGNO_CALL_PART_CLOBBERED): TFmode and TDmode do not need to
22910 mark being partially clobbered since they only use the first
22913 * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): TFmode
22914 and TDmode only use the upper 64-bits of each VSX register.
22916 2013-05-03 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
22918 * gimple-ssa-strength-reduction.c (slsr_process_phi): Disable.
22919 (find_candidates_in_block): Disable slsr_process_phi.
22921 2013-05-03 Guozhi Wei <carrot@google.com>
22923 * coverage.c (coverage_obj_init): Move the construction of gcov
22925 (build_init_ctor): ... here.
22927 2013-05-03 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
22929 * gimple-ssa-strength-reduction.c (cand_kind): Add CAND_PHI.
22930 (slsr_cand_d): Redefine def_phi.
22931 (stride_status, phi_adjust_status, count_phis_status): New enums.
22932 (find_phi_def): New.
22933 (find_basis_for_base_expr): New.
22934 (find_basis_for_candidate): Handle hidden bases.
22935 (alloc_cand_and_find_basis): Handle phi candidates.
22936 (slsr_process_phi): New.
22937 (create_mul_ssa_cand): Exclude phi base candidates; use integer_onep.
22938 (create_mul_imm_cand): Likewise.
22939 (create_add_ssa_cand): Exclude phi base candidates.
22940 (create_add_imm_cand): Likewise.
22941 (slsr_process_cast): Likewise.
22942 (slsr_process_copy): Likewise.
22943 (find_candidates_in_block): Handle phi candidates.
22944 (dump_candidate): Likewise.
22945 (unconditional_cands): Delete.
22946 (unconditional_cands_with_known_stride_p): Delete.
22947 (phi_dependent_cand_p): New.
22948 (cand_increment): Handle phi-dependent candidates.
22949 (replace_dependent): Delete.
22950 (replace_mult_candidate): New.
22951 (replace_unconditional_candidate): New.
22952 (incr_vec_index): Move to avoid forward reference.
22953 (create_add_on_incoming_edge): New.
22954 (create_phi_basis): New.
22955 (replace_dependents): Delete.
22956 (replace_conditional_candidate): New.
22957 (phi_add_costs): New.
22958 (replace_uncond_cands_and_profitable_phis): New.
22959 (record_increment): Handle phi adjustments.
22960 (record_phi_increments): New.
22961 (record_increments): Handle phi adjustments.
22962 (phi_incr_cost): New.
22963 (lowest_cost_path): Handle phis.
22964 (total_savings): Likewise.
22965 (analyze_increments): Likewise.
22966 (ncd_with_phi): New.
22967 (ncd_of_cand_and_phis): New.
22968 (nearest_common_dominator_for_cands): Handle phi increments.
22969 (all_phi_incrs_profitable): New.
22970 (replace_profitable_candidates): Handle phi-dependent candidates.
22971 (analyze_candidates_and_replace): Likewise.
22973 2013-05-03 Teresa Johnson <tejohnson@google.com>
22976 * sched-rgn.c (compute_dom_prob_ps): Ensure accumulated probabilities
22977 do not exceed REG_BR_PROB_BASE.
22979 2013-05-03 Jeff Law <law@redhat.com>
22981 PR tree-optimization/57144
22982 * tree-vrp.c (simplify_cond_using_ranges): Verify the constant
22983 operand of the condition will bit into the new type when eliminating
22984 a cast feeding a condition.
22986 2013-05-03 Jakub Jelinek <jakub@redhat.com>
22988 PR rtl-optimization/57130
22989 * combine.c (make_compound_operation) <case SUBREG>: Pass SET instead
22990 of COMPARE as in_code to the recursive call if needed.
22992 2013-05-03 Uros Bizjak <ubizjak@gmail.com>
22994 * config/i386/i386.md (isa): Add x64_sse4_noavx and x64_avx members.
22995 (enabled): Handle new members.
22996 * config/i386/sse.md (*vec_concatv2si): Merge from
22997 *vec_concatv2si_sse2 and vec_concatv2si_sse.
22998 (vec_concatv2di): Merge with *vec_concatv2di_rex64.
23000 2013-05-03 Joern Rennecke <joern.rennecke@embecosm.com>
23002 PR tree-optimization/57027
23003 * tree-ssa-math-opts.c (convert_mult_to_fma): When checking
23004 for fnms opportunity, check we got the prerequisite kind
23005 of tree / gimple before using accessor functions.
23007 2013-05-03 Richard Biener <rguenther@suse.de>
23009 * double-int.h (lshift): New overload without precision
23010 and arith argument.
23011 (operator *=, operator +=, operator -=): Move ...
23012 * double-int.c (operator *=, operator +=, operator -=): ... here
23013 and implement more efficiently.
23014 (mul_double_with_sign): Remove.
23015 (lshift_double): Adjust to take unsinged shift argument, push
23016 dispatching code to callers.
23017 (mul_double_wide_with_sign): Add early out for callers that
23018 are not interested in high parts or overflow.
23019 (lshift): New function.
23020 (lshift, rshift, alshift, arshift, llshift, lrshift): Add
23021 dispatch code here.
23022 (lrotate, rrotate): Use logical shifts.
23023 * expr.c (get_inner_reference): Use lshift.
23024 * fixed-value.c (do_fixed_divide): Likewise.
23025 * tree-dfa.c (get_ref_base_and_extent): Likewise.
23026 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Likewise.
23027 (indirect_refs_may_alias_p): Likewise.
23028 (stmt_kills_ref_p_1): Likewise.
23030 2013-05-03 Vidya Praveen <vidyapraveen@arm.com>
23032 * config/aarch64/aarch64-simd.md (simd_fabd): Correct the description.
23034 2013-05-03 Vidya Praveen <vidyapraveen@arm.com>
23036 * config/aarch64/aarch64-simd.md (*fabd_scalar<mode>3): Support
23037 scalar form of FABD instruction.
23039 2013-05-02 Vladimir Makarov <vmakarov@redhat.com>
23041 * lra-constraints.c (process_alt_operands): Add checking alt
23042 number to choose the best alternative.
23044 2013-05-02 Richard Biener <rguenther@suse.de>
23046 * tree-eh.c (cleanup_empty_eh_merge_phis): Remove rename_virts
23047 bitmap and its handling.
23048 (pass_cleanup_eh): Set todo_flags_finish to TODO_verify_ssa.
23050 2013-05-02 Richard Biener <rguenther@suse.de>
23052 PR middle-end/57140
23053 * tree-inline.c (copy_loops): Properly handle removed loops.
23054 (copy_cfg_body): Mark destination loops for fixup if source
23055 loops needed fixup.
23057 2013-05-02 Greta Yorsh <Greta.Yorsh@arm.com>
23060 * config/arm/arm.c (arm_expand_epilogue): Check really_return before
23061 generating simple_return for naked functions.
23063 2013-05-02 Martin Jambor <mjambor@suse.cz>
23065 PR middle-end/56988
23066 * ipa-prop.h (ipa_agg_replacement_value): New flag by_ref.
23067 * ipa-cp.c (ipa_get_indirect_edge_target_1): Also check that by_ref
23069 (find_aggregate_values_for_callers_subset): Fill in the by_ref flag of
23070 ipa_agg_replacement_value structures.
23071 (known_aggs_to_agg_replacement_list): Likewise.
23072 * ipa-prop.c (write_agg_replacement_chain): Stream by_ref flag.
23073 (read_agg_replacement_chain): Likewise.
23074 (ipcp_transform_function): Also check that by_ref flags match.
23076 2013-05-02 Richard Biener <rguenther@suse.de>
23078 * graphds.h (struct graph): Add obstack member.
23079 * graphds.c (new_graph): Initialize obstack and allocate
23081 (add_edge): Allocate edge from the obstack.
23082 (free_graph): Free the obstack instead of all edges and vertices.
23084 2013-05-02 Teresa Johnson <tejohnson@google.com>
23086 * loop-unswitch.c (unswitch_loop): Use helper routines with rounding
23088 * cfg.c (update_bb_profile_for_threading): Ditto.
23089 * tree-inline.c (copy_bb): Ditto.
23090 (copy_edges_for_bb): Ditto.
23091 (initialize_cfun): Ditto.
23092 (copy_cfg_body): Ditto.
23093 (expand_call_inline): Ditto.
23094 * ipa-inline-analysis.c (estimate_edge_size_and_time): Ditto.
23095 (estimate_node_size_and_time): Ditto.
23096 (inline_merge_summary): Ditto.
23097 * cgraphclones.c (cgraph_clone_edge): Ditto.
23098 (cgraph_clone_node): Ditto.
23099 * sched-rgn.c (compute_dom_prob_ps): Ditto.
23100 (compute_trg_info): Ditto.
23102 2013-05-02 Ian Bolton <ian.bolton@arm.com>
23104 * config/aarch64/aarch64.md (movsi_aarch64): Only allow to/from
23105 S reg when fp attribute set.
23106 (movdi_aarch64): Only allow to/from D reg when fp attribute set.
23108 2013-05-02 Ian Bolton <ian.bolton@arm.com>
23110 * config/aarch64/aarch64.md (*and_one_cmpl<mode>3_compare0):
23112 (*and_one_cmplsi3_compare0_uxtw): Likewise.
23113 (*and_one_cmpl_<SHIFT:optab><mode>3_compare0): Likewise.
23114 (*and_one_cmpl_<SHIFT:optab>si3_compare0_uxtw): Likewise.
23116 2013-05-02 Richard Biener <rguenther@suse.de>
23118 * tree-scalar-evolution.c (scev_info_hasher): Remove.
23119 (struct instantiate_cache_entry): New type.
23120 (struct instantiate_cache_entry_hasher): New hashtable descriptor.
23121 (struct instantiate_cache_type): New type.
23122 (set_instantiated_value, get_instantiated_value): Remove.
23123 (get_instantiated_value_entry): New function.
23124 (instantiate_scev_name): Use the new cache and adjust.
23125 (instantiate_scev_poly): Adjust.
23126 (instantiate_scev_binary): Likewise.
23127 (instantiate_array_ref): Likewise.
23128 (instantiate_scev_convert): Likewise.
23129 (instantiate_scev_not): Likewise.
23130 (instantiate_scev_3): Likewise.
23131 (instantiate_scev_2): Likewise.
23132 (instantiate_scev_r): Likewise.
23133 (instantiate_scev): Likewise.
23134 (resolve_mixers): Likewise.
23136 2013-05-01 Vladimir Makarov <vmakarov@redhat.com>
23139 * lra-constraints.c (best_small_class_operands_num): Remove.
23140 (process_alt_operands): Remove small_class_operands_num. Take
23141 small classes operands into losers and only if the operand is not
23142 matched. Modify debugging output.
23143 (curr_insn_transform): Remove best_small_class_operands_num.
23146 2013-05-01 James Greenhalgh <james.greenhalgh@arm.com>
23148 * config/aarch64/aarch64-builtins.c
23149 (aarch64_gimple_fold_builtin.c): Fold more modes for reduc_splus_.
23150 * config/aarch64/aarch64-simd-builtins.def
23151 (reduc_splus_): Add new modes.
23152 (reduc_uplus_): New.
23153 * config/aarch64/aarch64-simd.md (aarch64_addvv4sf): Remove.
23154 (reduc_uplus_v4sf): Likewise.
23155 (reduc_splus_v4sf): Likewise.
23156 (aarch64_addv<mode>): Likewise.
23157 (reduc_uplus_<mode>): Likewise.
23158 (reduc_splus_<mode>): Likewise.
23159 (aarch64_addvv2di): Likewise.
23160 (reduc_uplus_v2di): Likewise.
23161 (reduc_splus_v2di): Likewise.
23162 (aarch64_addvv2si): Likewise.
23163 (reduc_uplus_v2si): Likewise.
23164 (reduc_splus_v2si): Likewise.
23165 (reduc_<sur>plus_<mode>): New.
23166 (reduc_<sur>plus_v2di): Likewise.
23167 (reduc_<sur>plus_v2si): Likewise.
23168 (reduc_<sur>plus_v4sf): Likewise.
23169 (aarch64_addpv4sf): Likewise.
23170 * config/aarch64/arm_neon.h
23171 (vaddv<q>_<s,u,f><8, 16, 32, 64): Rewrite using builtins.
23172 * config/aarch64/iterators.md (unspec): Remove UNSPEC_ADDV,
23173 add UNSPEC_SADDV, UNSPEC_UADDV.
23175 (sur): Add UNSPEC_SADDV, UNSPEC_UADDV.
23177 2013-05-01 James Greenhalgh <james.greenhalgh@arm.com>
23179 * config/aarch64/arm_neon.h
23180 (v<max,min><nm><q><v>_<sfu><8, 16, 32, 64>): Rewrite using builtins.
23182 2013-05-01 James Greenhalgh <james.greenhalgh@arm.com>
23184 * config/aarch64/aarch64-builtins
23185 (aarch64_gimple_fold_builtin): Fold reduc_<su><maxmin>_ builtins.
23187 2013-05-01 James Greenhalgh <james.greenhalgh@arm.com>
23189 * config/aarch64/aarch64-simd-builtins.def
23190 (reduc_smax_): New.
23191 (reduc_smin_): Likewise.
23192 (reduc_umax_): Likewise.
23193 (reduc_umin_): Likewise.
23194 (reduc_smax_nan_): Likewise.
23195 (reduc_smin_nan_): Likewise.
23198 (smax): Update for V2SF, V4SF and V2DF modes.
23201 (smin_nan): Likewise.
23202 * config/aarch64/aarch64-simd.md (<maxmin><mode>3): Rename to...
23203 (<su><maxmin><mode>3): ...This, refactor.
23204 (s<maxmin><mode>3): New.
23205 (<maxmin_uns><mode>3): Likewise.
23206 (reduc_<maxmin_uns>_<mode>): Refactor.
23207 (reduc_<maxmin_uns>_v4sf): Likewise.
23208 (reduc_<maxmin_uns>_v2si): Likewise.
23209 (aarch64_<fmaxmin><mode>: Remove.
23210 * config/aarch64/arm_neon.h (vmax<q>_f<32,64>): Rewrite to use
23212 (vmin<q>_f<32,64>): Likewise.
23213 * config/iterators.md (unspec): Add UNSPEC_FMAXNMV, UNSPEC_FMINNMV.
23215 (su): Add mappings for smax, smin, umax, umin.
23217 (FMAXMINV): Add UNSPEC_FMAXNMV, UNSPEC_FMINNMV.
23218 (FMAXMIN): Rename as...
23219 (FMAXMIN_UNS): ...This.
23221 (fmaxminv): Likewise.
23222 (fmaxmin): Likewise.
23224 (maxmin_uns_op): Likewise.
23226 2013-05-01 James Greenhalgh <james.greenhalgh@arm.com>
23228 * config/aarch64/arm_neon.h
23229 (vac<ge, gt><sd>_f<32, 64>): Rename to...
23230 (vca<ge, gt><sd>_f<32, 64>): ...this, reimpliment in C.
23231 (vca<ge, gt, lt, le><q>_f<32, 64>): Reimpliment in C.
23233 2013-05-01 James Greenhalgh <james.greenhalgh@arm.com>
23235 * config/aarch64/aarch64-simd.md (*aarch64_fac<optab><mode>): New.
23236 * config/aarch64/iterators.md (FAC_COMPARISONS): New.
23238 2013-05-01 James Greenhalgh <james.greenhalgh@arm.com>
23240 * config/aarch64/aarch64-simd.md
23241 (vcond<mode>_internal): Handle special cases for constant masks.
23242 (vcond<mode><mode>): Allow nonmemory_operands for outcome vectors.
23243 (vcondu<mode><mode>): Likewise.
23244 (vcond<v_cmp_result><mode>): New.
23246 2013-05-01 James Greenhalgh <james.greenhalgh@arm.com>
23248 * config/aarch64/aarch64-builtins.c (BUILTIN_VALLDI): Define.
23249 (aarch64_fold_builtin): Add folding for cm<eq,ge,gt,tst>.
23250 * config/aarch64/aarch64-simd-builtins.def
23251 (cmeq): Update to BUILTIN_VALLDI.
23256 * config/aarch64/arm_neon.h
23257 (vc<eq, lt, le, gt, ge, tst><z><qsd>_<fpsu><8,16,32,64>): Remap
23258 to builtins or C as appropriate.
23260 2013-05-01 James Greenhalgh <james.greenhalgh@arm.com>
23262 * config/aarch64/aarch64-simd-builtins.def (cmhs): Rename to...
23264 (cmhi): Rename to...
23266 * config/aarch64/aarch64-simd.md
23267 (simd_mode): Add SF.
23268 (aarch64_vcond_internal): Use new names for unsigned comparison insns.
23269 (aarch64_cm<optab><mode>): Rewrite to not use UNSPECs.
23270 * config/aarch64/aarch64.md (*cstore<mode>_neg): Rename to...
23271 (cstore<mode>_neg): ...This.
23272 * config/aarch64/iterators.md
23274 (unspec): Remove UNSPEC_CM<EQ, LE, LT, GE, GT, HS, HI, TST>.
23275 (COMPARISONS): New.
23276 (UCOMPARISONS): Likewise.
23277 (optab): Add missing comparisons.
23283 (VCMP_S): Likewise.
23284 (VCMP_U): Likewise.
23285 (V_cmp_result): Add DF, SF modes.
23286 (v_cmp_result): Likewise.
23288 (vmtype): Likewise.
23289 * config/aarch64/predicates.md (aarch64_reg_or_fp_zero): New.
23291 2013-05-01 Greta Yorsh <Greta.Yorsh@arm.com>
23293 * config/arm/thumb2.md (thumb2_smaxsi3,thumb2_sminsi3): Convert
23294 define_insn to define_insn_and_split.
23295 (thumb32_umaxsi3,thumb2_uminsi3): Likewise.
23296 (thumb2_negdi2,thumb2_abssi2,thumb2_neg_abssi2): Likewise.
23297 (thumb2_mov_scc,thumb2_mov_negscc,thumb2_mov_notscc): Likewise.
23298 (thumb2_movsicc_insn,thumb2_and_scc,thumb2_ior_scc): Likewise.
23299 (thumb2_negscc): Likewise.
23301 2013-04-30 Greta Yorsh <Greta.Yorsh@arm.com>
23303 * config/arm/thumb2.md (thumb2_incscc, thumb2_decscc): Delete.
23305 2013-04-30 Greta Yorsh <Greta.Yorsh@arm.com>
23307 * config/arm/thumb2.md: Remove trailing whitespaces.
23309 2013-04-30 Richard Sandiford <rsandifo@linux.vnet.ibm.com>
23311 * explow.c (plus_constant): Pass "mode" to immed_double_int_const.
23312 Use gen_int_mode rather than GEN_INT.
23314 2013-04-30 H.J. Lu <hongjiu.lu@intel.com>
23316 * value-prof.c (stream_in_histogram_value): Remove the strayed
23319 2013-04-30 Richard Biener <rguenther@suse.de>
23321 PR middle-end/57122
23322 * cfghooks.c (split_edge): Properly check for the loop latch edge.
23324 2013-04-30 Richard Biener <rguenther@suse.de>
23326 PR middle-end/57107
23327 * tree-eh.c (sink_clobbers): Preserve virtual SSA form.
23329 2013-04-30 Andrey Belevantsev <abel@ispras.ru>
23331 PR rtl-optimization/56957
23332 PR rtl-optimization/57105
23333 * sel-sched.c (move_op_orig_expr_found): Remove insn_emitted
23334 variable. Use just INSN_UID for determining whether an insn
23335 should be only disconnected from the insn stream.
23336 * sel-sched-ir.h (EXPR_WAS_CHANGED): Remove.
23338 2013-04-30 Jakub Jelinek <jakub@redhat.com>
23340 PR tree-optimization/57104
23341 * tsan.c (instrument_expr): Don't instrument accesses to
23342 DECL_HARD_REGISTER VAR_DECLs.
23344 2013-04-30 Richard Biener <rguenther@suse.de>
23346 * function.h (loops_for_fn): New inline function.
23347 (set_loops_for_fn): Likewise.
23348 * cfgloop.h (place_new_loop): Add struct function parameter.
23349 (get_loop): Likewise.
23350 (get_loops): Likewise.
23351 (number_of_loops): Likewise.
23352 (fel_next): Adjust.
23353 (fel_init): Likewise.
23354 * cfg.c (get_loop_copy): Adjust.
23355 * cfgloop.c (flow_loops_dump): Likewise.
23356 (record_loop_exits): Likewise.
23357 (verify_loop_structure): Likewise.
23358 * cfgloopanal.c (mark_irreducible_loops): Likewise.
23359 (estimate_reg_pressure_cost): Likewise.
23360 (mark_loop_exit_edges): Likewise.
23361 * cfgloopmanip.c (place_new_loop): Likewise.
23362 (add_loop): Likewise.
23363 (duplicate_loop): Likewise.
23364 * graph.c (draw_cfg_nodes): Likewise.
23365 * graphite-clast-to-gimple.c (translate_clast_user): Likewise.
23366 * graphite-sese-to-poly.c (build_scop_scattering): Likewise.
23367 (extract_affine_chrec): Likewise.
23368 (build_scop_iteration_domain): Likewise.
23369 * graphite.c (graphite_initialize): Likewise.
23370 * ira-build.c (create_loop_tree_nodes): Likewise.
23371 (more_one_region_p): Likewise.
23372 (rebuild_regno_allocno_maps): Likewise.
23373 (mark_loops_for_removal): Likewise.
23374 (mark_all_loops_for_removal): Likewise.
23375 (remove_unnecessary_regions): Likewise.
23376 (ira_build): Likewise.
23377 * ira-emit.c (setup_entered_from_non_parent_p): Likewise.
23378 * loop-init.c (fix_loop_structure): Likewise.
23379 (gate_rtl_move_loop_invariants): Likewise.
23380 (gate_rtl_unswitch): Likewise.
23381 (gate_rtl_unroll_and_peel_loops): Likewise.
23382 (rtl_doloop): Likewise.
23383 * lto-streamer-in.c (input_cfg): Likewise.
23384 * lto-streamer-out.c (output_cfg): Likewise.
23385 * modulo-sched.c (sms_schedule): Likewise.
23386 * predict.c (tree_estimate_probability): Likewise.
23387 (tree_estimate_probability_driver): Likewise.
23388 (estimate_loops): Likewise.
23389 * tree-cfg.c (fixup_loop_arrays_after_move): Likewise.
23390 (move_sese_region_to_fn): Likewise.
23391 (debug_loop_num): Likewise.
23392 * tree-chrec.c (chrec_evaluate): Likewise.
23393 (hide_evolution_in_other_loops_than_loop): Likewise.
23394 (chrec_component_in_loop_num): Likewise.
23395 (reset_evolution_in_loop): Likewise.
23396 (evolution_function_is_invariant_rec_p): Likewise.
23397 * tree-if-conv.c (main_tree_if_conversion): Likewise.
23398 * tree-inline.c (copy_loops): Likewise.
23399 (copy_cfg_body): Likewise.
23400 (tree_function_versioning): Likewise.
23401 * tree-loop-distribution.c (rdg_flag_loop_exits): Likewise.
23402 * tree-scalar-evolution.c (chrec_contains_symbols_defined_in_loop):
23404 (add_to_evolution_1): Likewise.
23405 (scev_const_prop): Likewise.
23406 * tree-scalar-evolution.h (get_chrec_loop): Likewise.
23407 * tree-ssa-loop-ch.c (copy_loop_headers): Likewise.
23408 * tree-ssa-loop-im.c (analyze_memory_references): Likewise.
23409 (tree_ssa_lim_initialize): Likewise.
23410 * tree-ssa-loop-manip.c (rewrite_into_loop_closed_ssa): Likewise.
23411 (verify_loop_closed_ssa): Likewise.
23412 * tree-ssa-loop.c (tree_ssa_loop_init): Likewise.
23413 (tree_ssa_loop_im): Likewise.
23414 (tree_ssa_loop_unswitch): Likewise.
23415 (tree_vectorize): Likewise.
23416 (check_data_deps): Likewise.
23417 (tree_ssa_loop_ivcanon): Likewise.
23418 (tree_ssa_loop_bounds): Likewise.
23419 (tree_complete_unroll): Likewise.
23420 (tree_complete_unroll_inner): Likewise.
23421 (tree_parallelize_loops): Likewise.
23422 (tree_ssa_loop_prefetch): Likewise.
23423 (tree_ssa_loop_ivopts): Likewise.
23424 * tree-ssa.c (execute_update_addresses_taken): Liekwise.
23425 * tree-vectorizer.c (vectorize_loops): Likewise.
23427 2013-04-29 Mike Frysinger <vapier@gentoo.org>
23429 * config/arm/bpabi.h (EABI_LINK_SPEC): Define.
23430 (BPABI_LINK_SPEC): Use new EABI_LINK_SPEC.
23431 * config/arm/linux-eabi.h (LINK_SPEC): Replace BE8_LINK_SPEC
23432 with EABI_LINK_SPEC.
23434 2013-04-29 Uros Bizjak <ubizjak@gmail.com>
23437 * config/i386/i386.md (*zero_extendsidi2): Add "!" to m->?*y
23440 2013-04-29 Vladimir Makarov <vmakarov@redhat.com>
23443 * lra-constraints.c (process_alt_operands): Discourage a bit more
23444 using memory for pseudos. Print cost dump for alternatives.
23445 Modify cost values for conflicts with early clobbers.
23446 (curr_insn_transform): Spill pseudos reassigned to NO_REGS.
23448 2013-04-29 Uros Bizjak <ubizjak@gmail.com>
23451 * config/i386/i386.c (ix86_expand_vec_perm): Validize constant memory.
23453 2013-04-29 Ian Bolton <ian.bolton@arm.com>
23455 * config/aarch64/aarch64.md (movsi_aarch64): Support LDR/STR
23456 from/to S register.
23457 (movdi_aarch64): Support LDR/STR from/to D register.
23459 2013-04-29 Ian Bolton <ian.bolton@arm.com>
23461 * common/config/aarch64/aarch64-common.c: Enable REE pass at O2
23462 or higher by default.
23464 2013-04-29 Richard Biener <rguenther@suse.de>
23466 PR middle-end/57075
23467 * tree-inline.c (copy_edges_for_bb): Still split the bbs,
23468 even if not adding abnormal edges for calls that can make
23471 2013-04-29 Richard Biener <rguenther@suse.de>
23473 PR middle-end/57103
23474 * tree-cfg.c (move_stmt_op): Fix condition under which to update
23476 (move_stmt_r): Remove redundant checking.
23478 2013-04-29 Teresa Johnson <tejohnson@google.com>
23481 * basic-block.h (apply_scale): New function.
23482 (apply_probability): Use apply_scale.
23483 * gimple-streamer-in.c (input_bb): Ditto.
23484 * lto-streamer-in.c (input_cfg): Ditto.
23485 * lto-cgraph.c (merge_profile_summaries): Ditto.
23486 * tree-optimize.c (execute_fixup_cfg): Ditto.
23487 * tree-inline.c (copy_bb): Update comment to use apply_scale.
23488 (copy_edges_for_bb): Ditto.
23489 (copy_cfg_body): Ditto.
23491 2013-04-29 Tom de Vries <tom@codesourcery.com>
23493 * tree-ssa-tail-merge.c (find_same_succ_bb): Skip loop latch bbs.
23494 (replace_block_by): Don't set LOOPS_NEED_FIXUP.
23495 (tail_merge_optimize): Handle current_loops == NULL.
23497 2013-04-26 Jeff Law <law@redhat.com>
23499 * tree-vrp.c (range_fits_type_p): Move to earlier point in file.
23500 (simplify_cond_using_ranges): Generalize code to simplify
23501 COND_EXPRs where one argument is a constant and the other
23502 is an SSA_NAME created by an integral type conversion.
23504 2013-04-29 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
23506 * config/arm/arm.md (store_minmaxsi): Use only when
23507 optimize_insn_for_size_p.
23509 2013-04-29 Christian Bruel <christian.bruel@st.com>
23512 * sh.md (tstsi_t_zero_extract_eq): Set mode for operand 0.
23514 2013-04-29 Richard Biener <rguenther@suse.de>
23516 PR middle-end/57089
23517 * omp-low.c (expand_omp_taskreg): If the parent function had a broken
23518 loop tree make sure to schedule a fixup for the child as well.
23519 (expand_omp_for_generic): Properly add loops.
23520 (expand_omp_for_static_nochunk): Likewise.
23521 (expand_omp_for_static_chunk): Likewise.
23522 (expand_omp_for): For the degenerate case fixup loops.
23523 (expand_omp_sections): Fix default bb placement in loops.
23524 (expand_omp_atomic_pipeline): Properly add loops.
23526 2013-04-29 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
23528 * predict.c: Fix typo in comment above #define PROB_VERY_UNLIKELY.
23530 2013-04-29 Tom de Vries <tom@codesourcery.com>
23532 * tree-ssa-tail-merge.c: Update header comment.
23534 2013-04-29 James Greenhalgh <james.greenhalgh@arm.com>
23536 * config/aarch64/arm_neon.h
23537 (vcvt<sd>_f<32,64>_s<32,64>): Rewrite in C.
23538 (vcvt<q>_f<32,64>_s<32,64>): Rewrite using builtins.
23539 (vcvt_<high_>_f<32,64>_f<32,64>): Likewise.
23540 (vcvt<qsd>_<su><32,64>_f<32,64>): Likewise.
23541 (vcvta<qsd>_<su><32,64>_f<32,64>): Likewise.
23542 (vcvtm<qsd>_<su><32,64>_f<32,64>): Likewise.
23543 (vcvtn<qsd>_<su><32,64>_f<32,64>): Likewise.
23544 (vcvtp<qsd>_<su><32,64>_f<32,64>): Likewise.
23546 2013-04-29 James Greenhalgh <james.greenhalgh@arm.com>
23548 * config/aarch64/aarch64-simd.md
23549 (<optab><VDQF:mode><fcvt_target>2): New, maps to fix, fixuns.
23550 (<fix_trunc_optab><VDQF:mode><fcvt_target>2): New, maps to
23551 fix_trunc, fixuns_trunc.
23552 (ftrunc<VDQF:mode>2): New.
23553 * config/aarch64/iterators.md (optab): Add fix, fixuns.
23554 (fix_trunc_optab): New.
23556 2013-04-29 James Greenhalgh <james.greenhalgh@arm.com>
23558 * config/aarch64/aarch64-builtins.c
23559 (aarch64_builtin_vectorized_function): Vectorize over ifloorf,
23560 iceilf, lround, iroundf.
23562 2013-04-29 Uros Bizjak <ubizjak@gmail.com>
23565 * config/i386/i386.h (enum ix86_tune_indices)
23566 <X86_TUNE_INTER_UNIT_MOVES_TO_VEC, X86_TUNE_INTER_UNIT_MOVES_FROM_VEC>:
23567 New, split from X86_TUNE_INTER_UNIT_MOVES.
23568 <X86_TUNE_INTER_UNIT_MOVES>: Remove.
23569 (TARGET_INTER_UNIT_MOVES_TO_VEC): New define.
23570 (TARGET_INTER_UNIT_MOVES_FROM_VEC): Ditto.
23571 (TARGET_INTER_UNIT_MOVES): Remove.
23572 * config/i386/i386.c (initial_ix86_tune_features): Update.
23573 Disable X86_TUNE_INTER_UNIT_MOVES_FROM_VEC for m_ATHLON_K8 only.
23574 (ix86_expand_convert_uns_didf_sse): Use
23575 TARGET_INTER_UNIT_MOVES_TO_VEC instead of TARGET_INTER_UNIT_MOVES.
23576 (ix86_expand_vector_init_one_nonzero): Ditto.
23577 (ix86_expand_vector_init_interleave): Ditto.
23578 (inline_secondary_memory_needed): Return true for moves from SSE class
23579 registers for !TARGET_INTER_UNIT_MOVES_FROM_VEC targets and for moves
23580 to SSE class registers for !TARGET_INTER_UNIT_MOVES_TO_VEC targets.
23581 * config/i386/constraints.md (Yi, Ym): Depend on
23582 TARGET_INTER_UNIT_MOVES_TO_VEC.
23583 (Yj, Yn): New constraints.
23584 * config/i386/i386.md (*movdi_internal): Change constraints of
23585 operand 1 from Yi to Yj and from Ym to Yn.
23586 (*movsi_internal): Ditto.
23587 (*movdf_internal): Ditto.
23588 (*movsf_internal): Ditto.
23589 (*float<SWI48x:mode><X87MODEF:mode>2_1): Use
23590 TARGET_INTER_UNIT_MOVES_TO_VEC instead of TARGET_INTER_UNIT_MOVES.
23591 (*float<SWI48x:mode><X87MODEF:mode>2_1 splitters): Ditto.
23592 (floatdi<X87MODEF:mode>2_i387_with_xmm): Ditto.
23593 (floatdi<X87MODEF:mode>2_i387_with_xmm splitters): Ditto.
23594 * config/i386/sse.md (movdi_to_sse): Ditto.
23595 (sse2_stored): Change constraint of operand 1 from Yi to Yj.
23596 Use TARGET_INTER_UNIT_MOVES_FROM_VEC instead of
23597 TARGET_INTER_UNIT_MOVES.
23598 (sse_storeq_rex64): Change constraint of operand 1 from Yi to Yj.
23599 (sse_storeq_rex64 splitter): Use TARGET_INTER_UNIT_MOVES_FROM_VEC
23600 instead of TARGET_INTER_UNIT_MOVES.
23601 * config/i386/mmx.md (*mov<mode>_internal): Change constraint of
23602 operand 1 from Yi to Yj and from Ym to Yn.
23604 2013-04-29 James Greenhalgh <james.greenhalgh@arm.com>
23606 * config/aarch64/aarch64-simd-builtins.def (vec_unpacks_hi_): New.
23607 (float_truncate_hi_): Likewise.
23608 (float_extend_lo_): Likewise.
23609 (float_truncate_lo_): Likewise.
23610 * config/aarch64/aarch64-simd.md (vec_unpacks_lo_v4sf): New.
23611 (aarch64_float_extend_lo_v2df): Likewise.
23612 (vec_unpacks_hi_v4sf): Likewise.
23613 (aarch64_float_truncate_lo_v2sf): Likewise.
23614 (aarch64_float_truncate_hi_v4sf): Likewise.
23615 (vec_pack_trunc_v2df): Likewise.
23616 (vec_pack_trunc_df): Likewise.
23618 2013-04-29 James Greenhalgh <james.greenhalgh@arm.com>
23620 * config/aarch64/aarch64-builtins.c
23621 (aarch64_fold_builtin): Fold float conversions.
23622 * config/aarch64/aarch64-simd-builtins.def
23623 (floatv2si, floatv4si, floatv2di): New.
23624 (floatunsv2si, floatunsv4si, floatunsv2di): Likewise.
23625 * config/aarch64/aarch64-simd.md
23626 (<optab><fcvt_target><VDQF:mode>2): New, expands to float and floatuns.
23627 * config/aarch64/iterators.md (FLOATUORS): New.
23628 (optab): Add float, floatuns.
23629 (su_optab): Likewise.
23631 2013-04-29 James Greenhalgh <james.greenhalgh@arm.com>
23633 * config/aarch64/aarch64-builtins.c
23634 (aarch64_builtin_vectorized_function): Use new names for
23636 * config/aarch64/aarch64-simd-builtins.def (fcvtzs): Split as...
23637 (lbtruncv2sf, lbtruncv4sf, lbtruncv2df): ...This.
23638 (fcvtzu): Split as...
23639 (lbtruncuv2sf, lbtruncuv4sf, lbtruncuv2df): ...This.
23640 (fcvtas): Split as...
23641 (lroundv2sf, lroundv4sf, lroundv2df, lroundsf, lrounddf): ...This.
23642 (fcvtau): Split as...
23643 (lrounduv2sf, lrounduv4sf, lrounduv2df, lroundusf, lroundudf): ...This.
23644 (fcvtps): Split as...
23645 (lceilv2sf, lceilv4sf, lceilv2df): ...This.
23646 (fcvtpu): Split as...
23647 (lceiluv2sf, lceiluv4sf, lceiluv2df, lceilusf, lceiludf): ...This.
23648 (fcvtms): Split as...
23649 (lfloorv2sf, lfloorv4sf, lfloorv2df): ...This.
23650 (fcvtmu): Split as...
23651 (lflooruv2sf, lflooruv4sf, lflooruv2df, lfloorusf, lfloorudf): ...This.
23652 (lfrintnv2sf, lfrintnv4sf, lfrintnv2df, lfrintnsf, lfrintndf): New.
23653 (lfrintnuv2sf, lfrintnuv4sf, lfrintnuv2df): Likewise.
23654 (lfrintnusf, lfrintnudf): Likewise.
23655 * config/aarch64/aarch64-simd.md
23656 (l<fcvt_pattern><su_optab><fcvt_target><VDQF:mode>2): Convert to
23658 (aarch64_fcvt<frint_suffix><su><mode>): Remove.
23659 * config/aarch64/iterators.md (FCVT): Include UNSPEC_FRINTN.
23660 (fcvt_pattern): Likewise.
23662 2013-04-29 James Greenhalgh <james.greenhalgh@arm.com>
23664 * config/aarch64/aarch64-simd.md
23665 (l<fcvt_pattern><su_optab><fcvt_target><VDQF:mode>2): Rename to...
23666 (l<fcvt_pattern><su_optab><VDQF:mode><fcvt_target>2): ... This.
23668 2013-04-29 James Greenhalgh <james.greenhalgh@arm.com>
23670 * config/aarch64/arm_neon.h (vrndq<a,m,n,p>_f<32, 64>): Rename to...
23671 (vrnd<a,m,n,p>q_f<32, 64>): ...This, implement using builtin.
23672 (vrnd<a,m,n,p>_f32): Implement using builtins.
23673 (vrnd<i,x><q>_f<32, 64>): New.
23675 2013-04-29 James Greenhalgh <james.greenhalgh@arm.com>
23677 * config/aarch64/aarch64-builtins.c
23678 (aarch64_builtin_vectorized_function): Fold to standard pattern names.
23679 * config/aarch64/aarch64-simd-builtins.def (frintn): New.
23680 (frintz): Rename to...
23682 (frintp): Rename to...
23684 (frintm): Rename to...
23686 (frinti): Rename to...
23687 (nearbyint): ...this.
23688 (frintx): Rename to...
23690 (frinta): Rename to...
23692 * config/aarch64/aarch64-simd.md
23693 (aarch64_frint<frint_suffix><mode>): Delete.
23694 (<frint_pattern><mode>2): Convert to insn.
23695 * config/aarch64/aarch64.md (unspec): Add UNSPEC_FRINTN.
23696 * config/aarch64/iterators.md (FRINT): Add UNSPEC_FRINTN.
23697 (frint_pattern): Likewise.
23698 (frint_suffix): Likewise.
23700 2013-04-29 Richard Biener <rguenther@suse.de>
23702 PR tree-optimization/57081
23703 * loop-init.c: Include tree-flow.h.
23704 (loop_optimizer_finalize): Free number of iteration estimates.
23705 * Makefile.in (loop-init.o): Add $(TREE_FLOW_H) dependency.
23707 2013-04-29 Jakub Jelinek <jakub@redhat.com>
23709 PR tree-optimization/57083
23710 * tree-vrp.c (extract_range_from_binary_expr_1): For LSHIFT_EXPR with
23711 non-singleton shift count range, zero extend low_bound for uns case.
23713 * config/i386/predicates.md (general_vector_operand): New predicate.
23714 * config/i386/i386.c (const_vector_equal_evenodd_p): New function.
23715 (ix86_expand_mul_widen_evenodd): Force op1 resp. op2 into register
23716 if they aren't nonimmediate operands. If their original values
23717 satisfy const_vector_equal_evenodd_p, don't shift them.
23718 * config/i386/sse.md (mul<mode>3): Use general_vector_operand
23719 predicates. For the SSE4.1 case force operands[{1,2}] into registers
23720 if not nonimmediate_operand.
23721 (vec_widen_smult_even_v4si): Use nonimmediate_operand predicates
23722 instead of register_operand.
23723 (vec_widen_<s>mult_odd_<mode>): Use general_vector_operand predicates.
23725 2013-04-28 Eric Botcazou <ebotcazou@adacore.com>
23727 * stor-layout.c (finalize_size_functions): Allocate a structure and
23728 reset cfun before dumping the functions.
23730 2013-04-27 Jakub Jelinek <jakub@redhat.com>
23732 * config/i386/i386.c (ix86_expand_call): Make cregs_size unsigned.
23735 * config/i386/i386.c (ix86_expand_mul_widen_evenodd): Don't
23736 use xop_pmacsdqh if uns_p.
23737 * config/i386/sse.md (xop_rotr<mode>3): Fix up computation of
23738 the immediate rotate count.
23740 2013-04-26 Vladimir Makarov <vmakarov@redhat.com>
23742 * rtl.h (struct rtx_def): Add comment for field jump.
23743 (LRA_SUBREG_P): New macro.
23744 * recog.c (register_operand): Check LRA_SUBREG_P.
23745 * lra.c (lra): Add note at the end of RTL code. Align non-empty
23747 * lra-spills.c (lra_spill): Align stack after spilling pseudos.
23748 (lra_final_code_change): Skip subreg change for operators.
23749 * lra-eliminations.c (eliminate_regs_in_insn): Make return earlier
23750 if there are no operand changes.
23751 * lra-constraints.c (curr_insn_set): New.
23752 (match_reload): Set LRA_SUBREG_P.
23753 (emit_spill_move): Ditto.
23754 (check_and_process_move): Use curr_insn_set. Process only single
23755 set insns. Don't initialize sec_mem_p and change_p.
23756 (simplify_operand_subreg): Use LRA_SUBREG_P.
23757 (reg_in_class_p): New function.
23758 (process_alt_operands): Use it. Use #if HAVE_ATTR_enabled instead
23759 of #ifdef. Add code to remove cycling.
23760 (process_address): Check EXTRA_CONSTRAINT_STR. Process even if
23761 non-null disp. Reload inner instead of disp when base and index
23762 are null. Try to put lo_sum into register.
23763 (EBB_PROBABILITY_CUTOFF): Redefine probability in percents.
23764 (check_and_process_move): Move code for move cost check to
23765 simple_move_p. Remove equiv_substitution.
23766 (simple_move_p): New function.
23767 (curr_insn_transform): Initialize sec_mem_p and change_p. Set up
23768 curr_insn_set. Call check_and_process_move only for single set
23769 insns. Use the new function. Move call of check_and_process_move
23770 after operand equiv substitution and address process.
23772 2013-04-26 Jakub Jelinek <jakub@redhat.com>
23775 * tree-ssa-uninit.c (compute_uninit_opnds_pos): In functions
23776 with nonlocal goto receivers or returns twice calls, ignore
23777 unininitialized values from abnormal edges to nl goto receiver
23778 or returns twice call.
23780 2013-04-26 Jakub Jelinek <jakub@redhat.com>
23782 PR tree-optimization/57051
23783 * fold-const.c (const_binop): Handle VEC_LSHIFT_EXPR
23784 and VEC_RSHIFT_EXPR if shift count is a multiple of element
23787 2013-04-26 Richard Biener <rguenther@suse.de>
23789 * omp-low.c (finalize_task_copyfn): Do not drop PROP_loops.
23790 (expand_omp_taskreg): Likewise. Mark loops for fixup.
23791 * tree-cfg.c (move_block_to_fn): Remap loop fathers.
23792 (fixup_loop_arrays_after_move): New function.
23793 (move_sese_region_to_fn): Properly outline the loop tree parts
23794 of the SESE region.
23796 2013-04-26 Uros Bizjak <ubizjak@gmail.com>
23798 * config/i386/i386.md (type, unit): Fix long lines.
23800 2013-04-26 Richard Biener <rguenther@suse.de>
23802 * Makefile.in (lto-streamer-in.o): Add $(CFGLOOP_H) dependency.
23803 (lto-streamer-out.o): Likewise.
23804 * cfgloop.c (init_loops_structure): Export, add struct function
23805 argument and adjust.
23806 (flow_loops_find): Adjust.
23807 * cfgloop.h (enum loop_estimation): Add EST_LAST.
23808 (init_loops_structure): Declare.
23809 * lto-streamer-in.c: Include cfgloop.h.
23810 (input_cfg): Input the loop tree.
23811 * lto-streamer-out.c: Include cfgloop.h.
23812 (output_cfg): Output the loop tree.
23813 (output_struct_function_base): Do not drop PROP_loops.
23815 2013-03-26 Richard Biener <rguenther@suse.de>
23817 * tree-cfg.c (execute_build_cfg): Build the loop tree.
23818 (pass_build_cfg): Provide PROP_loops.
23819 (move_sese_region_to_fn): Remove loops that are outlined into fn
23821 * tree-inline.c: Include cfgloop.h.
23822 (initialize_cfun): Do not drop PROP_loops.
23823 (copy_loops): New function.
23824 (copy_cfg_body): Copy loop structure.
23825 (tree_function_versioning): Initialize destination loop tree.
23826 * tree-ssa-loop.c (pass_tree_loop_init): Do not provide PROP_loops.
23827 (pass_parallelize_loops): Do IL verification.
23828 * loop-init.c (loop_optimizer_init): Fixup loops if required.
23829 * tree-optimize.c (execute_fixup_cfg): If we need to cleanup
23830 the CFG make sure we fixup loops as well.
23831 * tree-ssa-tail-merge.c: Include cfgloop.h.
23832 (replace_block_by): When merging loop latches mark loops for fixup.
23833 * lto-streamer-out.c (output_struct_function_base): Drop
23834 PROP_loops for now.
23835 * tree-ssa-phiopt.c: Include tree-scalar-evolution.h.
23836 (tree_ssa_cs_elim): Initialize the loop optimizer and SCEV.
23837 * ipa-split.c: Include cfgloop.h.
23838 (split_function): Add the new return block to the loop tree root.
23839 * tree-cfgcleanup.c (remove_forwarder_block_with_phi): Return
23840 whether we have removed the forwarder block.
23841 (merge_phi_nodes): If we removed a forwarder mark loops for fixup.
23842 * cfgloop.h (place_new_loop): Declare.
23843 * cfgloopmanip.c (place_new_loop): Export.
23844 * Makefile.in (asan.o): Add $(CFGLOOP_H) dependency.
23845 (tree-switch-conversion.o): Likewise.
23846 (tree-complex.o): Likewise.
23847 (tree-inline.o): Likewise.
23848 (tree-ssa-tailmerge.o): Likewise.
23849 (ipa-split.o): Likewise.
23850 (tree-ssa-phiopt.o): Add $(SCEV_H) dependency.
23851 (tree-ssa-copy.o): Likewise.
23852 * tree-switch-conversion.c: Include cfgloop.h
23853 (process_switch): If we emit a bit-test cascade, schedule loops
23855 * tree-complex.c: Include cfgloop.h.
23856 (expand_complex_div_wide): Properly add new basic-blocks to loops.
23857 * asan.c: Include cfgloop.h.
23858 (create_cond_insert_point): Properly add new basic-blocks to
23859 loops, schedule loop fixup.
23860 * cfgloop.c (verify_loop_structure): Check that looks are not
23862 * omp-low.c (expand_parallel_call): Properly add new basic-blocks
23864 (expand_omp_for_generic): Likewise.
23865 (expand_omp_sections): Likewise.
23866 (expand_omp_atomic_pipeline): Schedule loops for fixup.
23867 * tree-ssa-copy.c: Include tree-scalar-evolution.h.
23868 (fini_copy_prop): Disable DCE in substitute_and_fold if SCEV
23869 is initialized, not when loops are present.
23870 * tree-parloops.c (parallelize_loops): Remove checking here.
23871 * passes.c (init_optimization_passes): Schedule a copy-propagation
23872 pass before complete unrolling of inner loops.
23874 2013-04-26 Jakub Jelinek <jakub@redhat.com>
23876 * Makefile.in (toplev.o): Depend on diagnostic-color.h.
23877 * diagnostic-color.c (should_colorize): Remove _WIN32 version.
23878 (colorize_init): Add argument to _WIN32 version.
23879 * toplev.c: Include diagnostic-color.h.
23880 (process_options): Default to -fdiagnostics-color=auto if
23881 GCC_COLORS env var is in the environment.
23882 * common.opt (fdiagnostics-color=): Add Var and Init.
23883 * doc/invoke.texi (-fdiagnostics-color=): Document that if GCC_COLORS
23884 env var is in the environment, the default is auto rather than never.
23886 * diagnostic.h (file_name_as_prefix): Add context argument.
23887 * diagnostic.c (file_name_as_prefix): Likewise. Colorize
23888 the string as locus.
23889 * langhooks.c (lhd_print_error_function): Adjust caller.
23891 2013-04-25 Lawrence Crowl <crowl@google.com>
23893 * var-tracking.c (shared_hash_def::htab):
23894 Change type to hash_table. Update dependent calls and types.
23896 2013-04-25 Lawrence Crowl <crowl@google.com>
23898 * Makefile.in: Update as needed below.
23900 * alloc-pool.c (static hash_table <alloc_pool_hasher> alloc_pool_hash):
23901 Move declaration to after the type's method definitons.
23903 * attribs.c (htab_t scoped_attributes::attribute_hash):
23904 Change type to hash_table. Update dependent calls and types.
23906 * bitmap.c (htab_t bitmap_desc_hash):
23907 Change type to hash_table. Update dependent calls and types.
23909 * cselib.c (htab_t cselib_hash_table):
23910 Change type to hash_table. Update dependent calls and types.
23912 * data-streamer.h (struct string_slot): Move to lto-streamer.h.
23913 (hash_string_slot_node): Move implementation into lto-streamer.h
23914 struct string_slot_hasher.
23915 (eq_string_slot_node): Likewise.
23917 * data-streamer-out.c: Update output_block::string_hash_table
23918 dependent calls and types.
23920 * dwarf2cfi.c (htab_t trace_index):
23921 Change type to hash_table. Update dependent calls and types.
23923 * dwarf2out.c (htab_t break_out_includes::cu_hash_table):
23924 Change type to hash_table. Update dependent calls and types.
23925 (htab_t copy_decls_for_unworthy_types::decl_table): Likewise.
23926 (htab_t optimize_external_refs::map): Likewise.
23927 (htab_t output_comp_unit::extern_map): Likewise.
23928 (htab_t output_comdat_type_unit::extern_map): Likewise.
23929 (htab_t output_macinfo::macinfo_htab): Likewise.
23930 (htab_t optimize_location_lists::htab): Likewise.
23931 (htab_t dwarf2out_finish::comdat_type_table): Likewise.
23933 * except.c (htab_t ehspec_hash_type):
23934 Change type to hash_table. Update dependent calls and types.
23935 (assign_filter_values::ttypes): Likewise.
23936 (assign_filter_values::ehspec): Likewise.
23937 (sjlj_assign_call_site_values::ar_hash): Likewise.
23938 (convert_to_eh_region_ranges::ar_hash): Likewise.
23940 * gcse.c (htab_t pre_ldst_table):
23941 Change type to hash_table. Update dependent calls and types.
23943 * ggc-common.c (htab_t saving_htab):
23944 Change type to hash_table. Update dependent calls and types.
23945 (htab_t loc_hash): Likewise.
23946 (htab_t ptr_hash): Likewise.
23947 (call_count): Rename ggc_call_count.
23948 (call_alloc): Rename ggc_call_alloc.
23949 (loc_descriptor): Rename make_loc_descriptor.
23950 (add_statistics): Rename ggc_add_statistics.
23952 * ggc-common.c (saving_htab):
23953 Change type to hash_table. Update dependent calls and types.
23955 * gimple.h (struct gimplify_ctx): Move to gimplify-ctx.h.
23956 (push_gimplify_context): Likewise.
23957 (pop_gimplify_context): Likewise.
23958 (struct gimple_temp_hash_elt): Added.
23959 (struct gimplify_hasher): Likewise.
23960 (struct gimplify_ctx.temp_htab):
23961 Change type to hash_table. Update dependent calls and types.
23963 * gimple-fold.c: Include gimplify-ctx.h.
23965 * gimple-ssa-strength-reduction.c (htab_t base_cand_map):
23966 Change type to hash_table. Update dependent calls and types.
23967 (base_cand_dump_callback): Rename to ssa_base_cand_dump_callback to
23968 avoid potential global name collision.
23970 * gimplify.c: Include gimplify-ctx.h.
23971 (struct gimple_temp_hash_elt): Move to gimplify-ctx.h.
23972 (htab_t gimplify_ctx::temp_htab):
23973 Update dependent calls and types for new type hash_table.
23974 (gimple_tree_hash): Move into gimplify_hasher in gimplify-ctx.h.
23975 (gimple_tree_eq): Move into gimplify_hasher in gimplify-ctx.h.
23977 * gimplify-ctx.h: New.
23978 (struct gimple_temp_hash_elt): Move from gimplify.c.
23979 (class gimplify_hasher): New.
23980 (struct gimplify_ctx): Move from gimple.h.
23981 (htab_t gimplify_ctx::temp_htab):
23982 Change type to hash_table. Update dependent calls and types.
23984 * graphite-clast-to-gimple.c: Include graphite-htab.h.
23985 (htab_t ivs_params::newivs_index):
23986 Change type to hash_table. Update dependent calls and types.
23987 (htab_t ivs_params::params_index): Likewise.
23988 (htab_t print_generated_program::params_index): Likewise.
23989 (htab_t gloog::newivs_index): Likewise.
23990 (htab_t gloog::params_index): Likewise.
23992 * graphite.c: Include graphite-htab.h.
23993 4htab_t graphite_transform_loops::bb_pbb_mapping):
23994 Change type to hash_table. Update dependent calls and types.
23996 * graphite-clast-to-gimple.h: (extern gloog) Move to graphite-htab.h.
23997 (bb_pbb_map_hash): Fold into bb_pbb_htab_type in graphite-htab.h.
23998 (eq_bb_pbb_map): Fold into bb_pbb_htab_type in graphite-htab.h.
24000 * graphite-dependences.c: Include graphite-htab.h.
24001 (loop_is_parallel_p): Change hash table type of parameter.
24003 * graphite-htab.h: New.
24004 (typedef hash_table <bb_pbb_hasher> bb_pbb_htab_type): New.
24005 (extern find_pbb_via_hash): Move from graphite-poly.h.
24006 (extern loop_is_parallel_p): Move from graphite-poly.h.
24007 (extern get_loop_body_pbbs): Move from graphite-poly.h.
24009 * graphite-poly.h (extern find_pbb_via_hash): Move to graphite-htab.h.
24010 (extern loop_is_parallel_p): Move to graphite-htab.h.
24011 (extern get_loop_body_pbbs): Move to graphite-htab.h.
24013 * haifa-sched.c (htab_t delay_htab):
24014 Change type to hash_table. Update dependent calls and types.
24015 (htab_t delay_htab_i2): Likewise.
24017 * ira-color.c (htab_t allocno_hard_regs_htab):
24018 Change type to hash_table. Update dependent calls and types.
24020 * ira-costs.c (htab_t cost_classes_htab):
24021 Change type to hash_table. Update dependent calls and types.
24023 * loop-invariant.c (htab_t merge_identical_invariants::eq):
24024 Change type to hash_table. Update dependent calls and types.
24026 * loop-iv.c (htab_t bivs):
24027 Change type to hash_table. Update dependent calls and types.
24029 * loop-unroll.c (htab_t opt_info::insns_to_split):
24030 Change type to hash_table. Update dependent calls and types.
24031 (htab_t opt_info::insns_with_var_to_expand): Likewise.
24033 * lto-streamer.h (struct string_slot): Move from data-streamer.h
24034 (struct string_slot_hasher): New.
24035 (htab_t output_block::string_hash_table):
24036 Change type to hash_table. Update dependent calls and types.
24038 * lto-streamer-in.c (freeing_string_slot_hasher): New.
24039 (htab_t file_name_hash_table):
24040 Change type to hash_table. Update dependent calls and types.
24042 * lto-streamer-out.c: Update output_block::string_hash_table dependent
24045 * lto-streamer.c (htab_t tree_htab):
24046 Change type to hash_table. Update dependent calls and types.
24048 * omp-low.c: Include gimplify-ctx.h.
24050 * passes.c (htab_t name_to_pass_map):
24051 Change type to hash_table. Update dependent calls and types.
24052 (pass_traverse): Rename to passes_pass_traverse.
24054 * plugin.c (htab_t event_tab):
24055 Change type to hash_table. Update dependent calls and types.
24057 * postreload-gcse.c (htab_t expr_table):
24058 Change type to hash_table. Update dependent calls and types.
24059 (dump_hash_table_entry): Rename dump_expr_hash_table_entry.
24061 * sese.c (debug_rename_map_1): Make extern.
24062 (htab_t copy_bb_and_scalar_dependences::rename_map):
24063 Change type to hash_table. Update dependent calls and types.
24065 * sese.h (extern debug_rename_map): Move to .c file.
24067 * store-motion.c (htab_t store_motion_mems_table):
24068 Change type to hash_table. Update dependent calls and types.
24070 * trans-mem.c (htab_t tm_new_mem_hash):
24071 Change type to hash_table. Update dependent calls and types.
24073 * tree-browser.c (htab_t TB_up_ht):
24074 Change type to hash_table. Update dependent calls and types.
24076 * tree-cfg.c (htab_t discriminator_per_locus):
24077 Change type to hash_table. Update dependent calls and types.
24079 * tree-complex.c: Include tree-hasher.h
24080 (htab_t complex_variable_components):
24081 Change type to hash_table. Update dependent calls and types.
24083 * tree-eh.c (htab_t finally_tree):
24084 Change type to hash_table. Update dependent calls and types.
24086 * tree-flow.h (extern int_tree_map_hash): Moved into tree-hasher
24087 struct int_tree_hasher.
24088 (extern int_tree_map_eq): Likewise.
24089 (uid_decl_map_hash): Removed.
24090 (extern decl_tree_map_eq): Likewise.
24092 * tree-hasher.h: New.
24093 (struct int_tree_hasher): New.
24094 (typedef int_tree_htab_type): New.
24096 * tree-inline.c: Include gimplify-ctx.h.
24098 * tree-mudflap.c: Include gimplify-ctx.h.
24100 * tree-parloops.c: Include tree-hasher.h.
24101 (htab_t eliminate_local_variables_stmt::decl_address):
24102 Change type to hash_table. Update dependent calls and types.
24103 (htab_t separate_decls_in_region::decl_copies): Likewise.
24105 * tree-scalar-evolution.c (htab_t resolve_mixers::cache):
24106 Change type to hash_table. Update dependent calls and types.
24108 * tree-sra.c (candidates):
24109 Change type to hash_table. Update dependent calls and types.
24111 * tree-ssa.c (int_tree_map_eq): Moved into struct int_tree_hasher
24113 (int_tree_map_hash): Likewise.
24115 * tree-ssa-dom.c (htab_t avail_exprs):
24116 Change type to hash_table. Update dependent calls and types.
24118 * tree-ssa-live.c (var_map_base_init::tree_to_index):
24119 Change type to hash_table. Update dependent calls and types.
24121 * tree-ssa-loop-ivopts.c (struct ivopts_data.inv_expr_tab):
24122 Change type to hash_table. Update dependent calls and types.
24124 * tree-ssa-phiopt.c (seen_ssa_names):
24125 Change type to hash_table. Update dependent calls and types.
24127 * tree-ssa-strlen.c (decl_to_stridxlist_htab):
24128 Change type to hash_table. Update dependent calls and types.
24130 * tree-ssa-uncprop.c (equiv):
24131 Change type to hash_table. Update dependent calls and types.
24133 2013-04-25 Jakub Jelinek <jakub@redhat.com>
24135 PR rtl-optimization/57003
24136 * regcprop.c (copyprop_hardreg_forward_1): If ksvd.ignore_set_reg,
24137 call note_stores with kill_clobbered_value callback again after
24138 killing regs_invalidated_by_call.
24140 2013-04-25 James Greenhalgh <james.greenhalgh@arm.com>
24142 * config/aarch64/aarch64-simd.md
24143 (aarch64_simd_bsl<mode>_internal): Rewrite RTL to not use UNSPEC_BSL.
24144 (aarch64_simd_bsl<mode>): Likewise.
24145 * config/aarch64/iterators.md (unspec): Remove UNSPEC_BSL.
24147 2013-04-25 Marek Polacek <polacek@redhat.com>
24149 PR tree-optimization/57066
24150 * builtins.c (fold_builtin_logb): Return +Inf for -Inf.
24152 2013-04-25 James Greenhalgh <james.greenhalgh@arm.com>
24154 * config/aarch64/aarch64-simd.md (neg<mode>2): Use VDQ iterator.
24156 2013-04-25 James Greenhalgh <james.greenhalgh@arm.com>
24158 * config/aarch64/aarch64-builtins.c
24159 (aarch64_fold_builtin): New.
24160 * config/aarch64/aarch64-protos.h (aarch64_fold_builtin): New.
24161 * config/aarch64/aarch64.c (TARGET_FOLD_BUILTIN): Define.
24162 * config/aarch64/aarch64-simd-builtins.def (abs): New.
24163 * config/aarch64/arm_neon.h
24164 (vabs<q>_<f32, 64>): Implement using __builtin_aarch64_fabs.
24166 2013-04-25 James Greenhalgh <james.greenhalgh@arm.com>
24167 Tejas Belagod <tejas.belagod@arm.com>
24169 * config/aarch64/aarch64-builtins.c
24170 (aarch64_gimple_fold_builtin): New.
24171 * config/aarch64/aarch64-protos.h (aarch64_gimple_fold_builtin): New.
24172 * config/aarch64/aarch64-simd-builtins.def (addv): New.
24173 * config/aarch64/aarch64-simd.md (addpv4sf): New.
24174 (addvv4sf): Update.
24175 * config/aarch64/aarch64.c (TARGET_GIMPLE_FOLD_BUILTIN): Define.
24177 2013-04-25 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
24179 * config/aarch64/aarch64.md
24180 (*cmp_swp_<optab><ALLX:mode>_shft_<GPI:mode>): New pattern.
24182 2013-04-25 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
24184 * config/aarch64/aarch64.md (*ngc<mode>): New pattern.
24185 (*ngcsi_uxtw): New pattern.
24187 2013-04-25 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
24188 Julian Brown <julian@codesourcery.com>
24190 * config/arm/arm.c (neon_builtin_type_mode): Add T_V4HF.
24191 (TB_DREG): Add T_V4HF.
24192 (v4hf_UP): New macro.
24193 (neon_itype): Add NEON_FLOAT_WIDEN, NEON_FLOAT_NARROW.
24194 (arm_init_neon_builtins): Handle NEON_FLOAT_WIDEN, NEON_FLOAT_NARROW.
24195 Handle initialisation of V4HF. Adjust initialisation of reinterpret
24197 (arm_expand_neon_builtin): Handle NEON_FLOAT_WIDEN, NEON_FLOAT_NARROW.
24198 (arm_vector_mode_supported_p): Handle V4HF.
24199 (arm_mangle_map): Handle V4HFmode.
24200 * config/arm/arm.h (VALID_NEON_DREG_MODE): Add V4HF.
24201 * config/arm/arm_neon_builtins.def: Add entries for
24202 vcvtv4hfv4sf, vcvtv4sfv4hf.
24203 * config/arm/neon.md (neon_vcvtv4sfv4hf): New pattern.
24204 (neon_vcvtv4hfv4sf): Likewise.
24205 * config/arm/neon-gen.ml: Handle half-precision floating point
24207 * config/arm/neon-testgen.ml: Handle Requires_FP_bit feature.
24208 * config/arm/arm_neon.h: Regenerate.
24209 * config/arm/neon.ml (type elts): Add F16.
24210 (type vectype): Add T_float16x4, T_floatHF.
24211 (type vecmode): Add V4HF.
24212 (type features): Add Requires_FP_bit feature.
24213 (elt_width): Handle F16.
24214 (elt_class): Likewise.
24215 (elt_of_class_width): Likewise.
24216 (mode_of_elt): Refactor.
24217 (type_for_elt): Handle F16, fix error messages.
24218 (vectype_size): Handle T_float16x4.
24219 (vcvt_sh): New function.
24220 (ops): Add entries for vcvt_f16_f32, vcvt_f32_f16.
24221 (string_of_vectype): Handle T_floatHF, T_float16, T_float16x4.
24222 (string_of_mode): Handle V4HF.
24223 * doc/arm-neon-intrinsics.texi: Regenerate.
24225 2013-04-25 James Greenhalgh <james.greenhalgh@arm.com>
24227 * config/aarch64/aarch64.c (aarch64_print_operand): Fix asm_fprintf
24228 format specifier in 'X' case.
24230 2013-04-25 Alan Modra <amodra@gmail.com>
24233 * config/rs6000/rs6000.md (rotlsi3_internal7): Rename to
24234 rotlsi3_internal7le and condition on !BYTES_BIG_ENDIAN.
24235 (rotlsi3_internal8be): New BYTES_BIG_ENDIAN insn.
24236 Repeat for many other rotate/shift and mask patterns using subregs.
24237 Name lshiftrt insns.
24238 (ashrdisi3_noppc64): Rename to ashrdisi3_noppc64be and condition
24239 on WORDS_BIG_ENDIAN.
24241 2013-04-25 Alan Modra <amodra@gmail.com>
24243 * config.gcc: Support little-endian powerpc-linux targets.
24244 * config/rs6000/linux.h (LINK_OS_LINUX_EMUL): Define.
24245 (LINK_OS_LINUX_SPEC): Define.
24246 * config/rs6000/linuxspe.h (TARGET_DEFAULT):
24247 Preserve MASK_LITTLE_ENDIAN.
24248 * config/rs6000/default64.h (TARGET_DEFAULT): Likewise.
24249 * config/rs6000/linuxaltivec.h (TARGET_DEFAULT): Likewise.
24250 * config/rs6000/linux64.h (OPTION_LITTLE_ENDIAN): Don't zero.
24251 (LINK_OS_LINUX_EMUL32, LINK_OS_LINUX_EMUL64): Define.
24252 (LINK_OS_LINUX_SPEC32, LINK_OS_LINUX_SPEC64): Use above.
24253 * config/rs6000/rs6000.c (output_toc): Don't use .tc for TARGET_ELF.
24254 Correct fp word order for little-endian. Don't shift toc entries
24255 smaller than a word for little-endian.
24256 * config/rs6000/rs6000.md (bswaphi2, bswapsi2 split): Comment.
24257 (bswapdi2 splits): Correct low-part subreg for little-endian.
24258 Remove wrong BYTES_BIG_ENDIAN tests, and rename vars to remove
24259 low/high where such is correct only for be.
24260 * config/rs6000/sysv4.h (SUBTARGET_OVERRIDE_OPTIONS): Allow
24261 little-endian for -mcall-aixdesc.
24263 2013-04-25 Alan Modra <amodra@gmail.com>
24265 * config/rs6000/rs6000.c (rs6000_secondary_reload_inner): Use
24266 replace_equiv_address_nv.
24268 2013-04-25 Alan Modra <amodra@gmail.com>
24270 * config/rs6000/rs6000.c (rs6000_emit_set_long_const): Tidy.
24272 2013-04-24 Vladimir Makarov <vmakarov@redhat.com>
24275 2013-04-24 Vladimir Makarov <vmakarov@redhat.com>
24276 * rtl.h (struct rtx_def): ...
24278 2013-04-24 Vladimir Makarov <vmakarov@redhat.com>
24280 PR rtl-optimizations/57046
24281 * lra-constraints (split_reg): Set up lra_risky_transformations_p
24282 for multi-reg splits.
24284 2013-04-24 H.J. Lu <hongjiu.lu@intel.com>
24286 * config/i386/x86-64.h (ASM_SPEC): Support -mx32.
24288 2013-04-24 Sterling Augustine <saugustine@google.com>
24290 * dwarf2out.c (skeleton_debug_str_hash, add_skeleton_AT_string)
24291 (comp_dir_string, debug_str_dwo_section): New.
24292 (DEBUG_STR_DWO_SECTION): Rename to ...
24293 (DEBUG_DWO_STR_SECTION): ... this.
24294 (DEBUG_NORM_STR_SECTION): Delete.
24295 (DEBUG_STR_SECTION, DEBUG_STR_SECTION_FLAGS): Edit definitions.
24296 (DEBUG_STR_DWO_SECTION_FLAGS): New.
24297 (find_AT_string): Move most logic to ...
24298 (find_AT_string_in_table): ... here. New.
24299 (add_top_level_skeleton_die_attrs): Call comp_dir_string and
24300 add_skeleton_AT_string. Delete logic.
24301 (output_skeleton_debug_sections): Remove call to
24302 add_top_level_skeleton_die_attrs.
24303 (add_comp_dir_attribute): Move logic to comp_dir_string.
24304 (dwarf2out_init): Initialize debug_str_dwo_section.
24305 (output_indirect_string): Call find_string_form.
24306 (output_indirect_strings): Rewrite.
24307 (prune_unused_types): Empty skeleton_debug_str_hash.
24308 Call get_skeleton_type_unit and add_top_level_skeleton_die_attrs.
24309 (dwarf2out_finish): Call output_indirect_strings.
24311 2013-04-24 Paolo Carlini <paolo.carlini@oracle.com>
24313 * doc/cpp.texi: Remove __GXX_EXPERIMENTAL_CXX1Y__.
24315 2013-04-24 Vladimir Makarov <vmakarov@redhat.com>
24317 * rtl.h (struct rtx_def): Add comment for field jump.
24318 (LRA_SUBREG_P): New macro.
24319 * recog.c (register_operand): Check LRA_SUBREG_P.
24320 * lra.c (lra): Add note at the end of RTL code. Align non-empty
24322 * lra-spills.c (lra_spill): Align stack after spilling pseudos.
24323 (lra_final_code_change): Skip subreg change for operators.
24324 * lra-eliminations.c (eliminate_regs_in_insn): Make return earlier
24325 if there are no operand changes.
24326 * lra-constraints.c (curr_insn_set): New.
24327 (match_reload): Set LRA_SUBREG_P.
24328 (emit_spill_move): Ditto.
24329 (check_and_process_move): Use curr_insn_set. Process only single
24330 set insns. Don't initialize sec_mem_p and change_p.
24331 (simplify_operand_subreg): Use LRA_SUBREG_P.
24332 (reg_in_class_p): New function.
24333 (process_alt_operands): Use it. Use #if HAVE_ATTR_enabled instead
24334 of #ifdef. Add code to remove cycling.
24335 (process_address): Check EXTRA_CONSTRAINT_STR. Process even if
24336 non-null disp. Reload inner instead of disp when base and index
24337 are null. Try to put lo_sum into register.
24338 (EBB_PROBABILITY_CUTOFF): Redefine probability in percents.
24339 (check_and_process_move): Move code for move cost check to
24340 simple_move_p. Remove equiv_substitution.
24341 (simple_move_p): New function.
24342 (curr_insn_transform): Initialize sec_mem_p and change_p. Set up
24343 curr_insn_set. Call check_and_process_move only for single set
24344 insns. Use the new function. Move call of check_and_process_move
24345 after operand equiv substitution and address process.
24347 2013-04-24 James Greenhalgh <james.greenhalgh@arm.com>
24349 * config/aarch64/arm_neon.h (vld1<q>_lane*): Fix constraints.
24350 (vld1<q>_dup_<sufp><8, 16, 32, 64>): Likewise.
24351 (vld1<q>_<sufp><8, 16, 32, 64>): Likewise.
24353 2013-04-24 Paolo Carlini <paolo.carlini@oracle.com>
24355 * doc/cpp.texi: Document __GXX_EXPERIMENTAL_CXX1Y__.
24357 2013-04-24 Marek Polacek <polacek@redhat.com>
24359 * tree-scalar-evolution.h (analyze_scalar_evolution): Remove.
24360 * tree-scalar-evolution.c (get_exit_conditions_rec): Likewise.
24361 (select_loops_exit_conditions): Likewise.
24362 (number_of_iterations_for_all_loops): Likewise.
24363 (analyze_scalar_evolution_for_all_loop_phi_nodes): Likewise.
24364 (scev_analysis): Likewise.
24366 2013-04-02 Catherine Moore <clm@codesourcery.com>
24367 Chao-ying Fu <fu@mips.com>
24369 * config/mips/micromips.md (jraddiusp): New pattern.
24370 * config/mips/mips.c (mips_expand_epilogue): Use the JRADDIUSP
24371 instruction if possible.
24373 2013-04-24 Alan Modra <amodra@gmail.com>
24375 * config/rs6000/driver-rs6000.c (elf_dcachebsize): Fix comment pasto.
24377 2013-04-24 Julian Brown <julian@codesourcery.com>
24378 Chung-Lin Tang <cltang@codesourcery.com>
24380 * dwarf2out.c (gen_enumeration_type_die): Fix HOST_BITS_PER_WIDE_INT
24381 dependency behavior in enumeration type DIE generation. Add TODO note
24382 to comments about future DW_FORM_sdata/udata re-work of related code.
24384 2013-04-23 Lawrence Crowl <crowl@google.com>
24386 * Makefile.in: Update as needed below.
24388 * hash-table.h (class hash_table):
24389 Correct many methods with parameter types compare_type to the correct
24390 value_type. (Correct code was unlikely to notice the change.)
24391 (hash_table::elements_with_deleted) New.
24392 (class hashtable::iterator): New.
24393 (hashtable::begin()): New.
24394 (hashtable::end()): New.
24395 (FOR_EACH_HASH_TABLE_ELEMENT): New.
24397 * statistics.c (statistics_hashes):
24398 Change type to hash_table. Update dependent calls and types.
24400 * tree-into-ssa.c (var_infos):
24401 Change type to hash_table. Update dependent calls and types.
24403 * tree-ssa-coalesce.c (struct coalesce_list_d.list):
24404 Change type to hash_table. Update dependent calls and types.
24406 * tree-ssa-loop-im.c (struct mem_ref.refs):
24407 Change type to hash_table. Update dependent calls and types.
24409 * tree-ssa-reassoc.c (undistribute_ops_list::ctable):
24410 Change type to hash_table. Update dependent calls and types.
24412 * tree-ssa-sccvn.c (vn_tables_s::nary):
24413 Change type to hash_table. Update dependent calls and types.
24414 (vn_tables_s::phis): Likewise.
24415 (vn_tables_s::references): Likewise.
24417 * tree-ssa-sccvn.h (vn_nary_op_eq): Update parameter and return types.
24418 (vn_reference_eq): Update parameter and return types.
24420 * tree-ssa-structalias.c (pointer_equiv_class_table):
24421 Change type to hash_table. Update dependent calls and types.
24422 (location_equiv_class_table): Likewise.
24424 * tree-vect-data-refs.c: Consequential changes for making
24425 peeling a hash_table.
24427 * tree-vect-loop.c (new_loop_vec_info): Dependent hash_table update.
24428 (destroy_loop_vec_info): Dependent hash_table update.
24430 * tree-vectorizer.h (peeling_htab):
24431 Change type to hash_table. Update dependent calls and types.
24433 2013-04-23 Shiva Chen <shiva0217@gmail.com>
24435 * lra-assigns.c (find_hard_regno_for): Use lra_reg_val_equal_p
24436 to check the register content is equal or not.
24437 * lra-constraints.c (match_reload): Use lra_assign_reg_val
24438 to assign register content record.
24439 * lra-eliminations.c (update_reg_eliminate): Use
24440 lra_update_reg_val_offset to update register content offset.
24441 * lra-int.h (struct lra_reg): Add offset member.
24442 (lra_reg_val_equal_p): New static inline function.
24443 (lra_update_reg_val_offset): New static inline function.
24444 (lra_assign_reg_val): New static inline function.
24445 * lra.c (lra_create_new_reg): Use lra_assign_reg_val
24446 to assign register content record.
24447 (initialize_lra_reg_info_element): Initial offset to zero.
24449 2013-04-23 Catherine Moore <clm@codesourcery.com>
24451 * config/mips/mips.md (*movhi_internal, *movqi_internal): New
24452 operands. Record compression.
24454 2013-04-23 Xinliang David Li <davidxl@google.com>
24456 * cfghhooks.c (dump_bb_for_graph): Support 'slim' graph dump.
24458 2013-04-23 Richard Biener <rguenther@suse.de>
24460 PR middle-end/57036
24461 * tree-inline.c (copy_edges_for_bb): Add can_make_abnormal_goto
24462 parameter, only add abnormal goto edges from the copied body
24463 if the call could perform abnormal gotos.
24464 (copy_cfg_body): Adjust.
24466 2013-04-23 Sofiane Naci <sofiane.naci@arm.com>
24468 * config/aarch64/aarch64.md (*mov<mode>_aarch64): Add simd attribute.
24470 2013-04-23 Andreas Schwab <schwab@linux-m68k.org>
24472 * coretypes.h (gimple_stmt_iterator): Add struct to make
24475 2013-04-23 Richard Biener <rguenther@suse.de>
24477 PR tree-optimization/57026
24478 * tree-vrp.c (simplify_conversion_using_ranges): Do not propagate
24479 from SSA names occuring in abnormal PHI nodes.
24481 2013-04-22 Andi Kleen <ak@linux.intel.com>
24483 * lto/lto.c (print_lto_report_1): Fix LTO report names.
24485 2013-04-22 Andi Kleen <ak@linux.intel.com>
24487 * lto/lto.c (print_lto_report_1): Declare early.
24488 (read_cgraph_and_symbols): Call print_lto_report_1 early.
24490 2013-04-22 Andi Kleen <ak@linux.intel.com>
24492 * common.opt (-flto-report-wpa): Add.
24493 * doc/invoke.texi (-flto-report-wpa): Add.
24494 * lto/lto.c (do_whole_program_analysis): Check for lto-report-wpa.
24497 2013-04-22 Xinliang David Li <davidxl@google.com>
24499 * graph.c (draw_cfg_node_succ_edges): Add branch probility as label.
24500 * cfghhooks.c (dump_bb_for_graph): Dump profile count and frquency.
24501 * Makefile.in: New dependency
24503 David Daney <ddaney.cavm@gmail.com>
24505 * configure.ac (gcc_cv_as_micromips_support): Use the
24506 --fatal-warnings option.
24507 * configure: Regenerate.
24509 2013-04-22 Marek Polacek <polacek@redhat.com>
24512 * tsan.c (instrument_expr): Don't instrument expression
24513 in case its size is zero.
24515 2013-04-22 Uros Bizjak <ubizjak@gmail.com>
24519 2013-03-17 Uros Bizjak <ubizjak@gmail.com>
24521 * config/alpha/alpha.c (TARGET_LRA_P): New define.
24523 2013-04-22 James Greenhalgh <james.greenhalgh@arm.com>
24525 * coretypes.h (gimple_stmt_iterator_d): Forward declare.
24526 (gimple_stmt_iterator): New typedef.
24527 * gimple.h (gimple_stmt_iterator): Rename to...
24528 (gimple_stmt_iterator_d): ... This.
24529 * doc/tm.texi.in (TARGET_FOLD_BUILTIN): Detail restriction that
24530 trees be valid for GIMPLE and GENERIC.
24531 (TARGET_GIMPLE_FOLD_BUILTIN): New.
24532 * gimple-fold.c (gimple_fold_call): Call target hook
24533 gimple_fold_builtin.
24534 * hooks.c (hook_bool_gsiptr_false): New.
24535 * hooks.h (hook_bool_gsiptr_false): New.
24536 * target.def (fold_stmt): New.
24537 * doc/tm.texi: Regenerate.
24539 2013-04-22 Vladimir Makarov <vmakarov@redhat.com>
24542 * lra-eliminations.c (mark_not_eliminable): Prevent elimination of
24543 a set sp if no stack realignment.
24545 2013-04-22 Nick Clifton <nickc@redhat.com>
24547 * config.gcc (tilegx-linux): Extend extra_objs rather than
24549 (tilepro-linux): Likewise.
24551 2013-04-22 James Greenhalgh <james.greenhalgh@arm.com>
24553 * config/aarch64/aarch64-builtins.c
24555 (CF0, CF1, CF2, CF3, CF4, CF10): New.
24556 (VAR<1-12>): Add MAP parameter.
24557 (BUILTIN_*): Likewise.
24558 * config/aarch64/aarch64-simd-builtins.def: Set MAP parameter.
24559 * config/aarch64/aarch64-simd.md (aarch64_sshl_n<mode>): Remove.
24560 (aarch64_ushl_n<mode>): Likewise.
24561 (aarch64_sshr_n<mode>): Likewise.
24562 (aarch64_ushr_n<mode>): Likewise.
24563 (aarch64_<maxmin><mode>): Likewise.
24564 (aarch64_sqrt<mode>): Likewise.
24565 * config/aarch64/arm_neon.h (vshl<q>_n_*): Use new builtin names.
24566 (vshr<q>_n_*): Likewise.
24568 2013-04-22 James Greenhalgh <james.greenhalgh@arm.com>
24570 * config/aarch64/aarch64-builtins.c
24571 (aarch64_simd_builtin_type_mode): Handle SF types.
24573 (BUILTIN_GPF): Define.
24574 (aarch64_init_simd_builtins): Handle SF types.
24575 * config/aarch64/aarch64-simd-builtins.def (frecpe): Add support.
24576 (frecps): Likewise.
24577 (frecpx): Likewise.
24578 * config/aarch64/aarch64-simd.md
24579 (simd_types): Update simd_frcp<esx> to simd_frecp<esx>.
24580 (aarch64_frecpe<mode>): New.
24581 (aarch64_frecps<mode>): Likewise.
24582 * config/aarch64/aarch64.md (unspec): Add UNSPEC_FRECP<ESX>.
24583 (v8type): Add frecp<esx>.
24584 (aarch64_frecp<FRECP:frecp_suffix><mode>): New.
24585 (aarch64_frecps<mode>): Likewise.
24586 * config/aarch64/iterators.md (FRECP): New.
24587 (frecp_suffix): Likewise.
24588 * config/aarch64/arm_neon.h
24589 (vrecp<esx><qsd>_<fd><32, 64>): Convert to using builtins.
24591 2013-04-22 Christian Bruel <christian.bruel@st.com>
24594 * config/sh/sh.h (enum reg_class): Remove DF_HI_REGS.
24595 (REG_CLASS_NAMES): Idem.
24596 (REG_CLASS_CONTENTS): Idem.
24597 (REGCLASS_HAS_FP_REG): Idem.
24598 * config/sh/sh.c (sh_cannot_change_mode_class): Idem.
24599 (sh_conditional_register_usage): Idem.
24601 2013-04-21 Jeff Law <law@redhat.com>
24603 * tree-ssa-forwprop.c (simplify_conversion_from_bitmask): New function.
24604 (ssa_forward_propagate_and_combine): Use it.
24606 2013-04-19 Vladimir Makarov <vmakarov@redhat.com>
24608 * lra.c: Update the flow chart diagram.
24610 2013-04-19 Vladimir Makarov <vmakarov@redhat.com>
24612 PR rtl-optimization/56847
24613 * lra-constraints.c (process_alt_operands): Discourage alternative
24614 with non-matche doffsettable memory constraint fro memory with
24617 2013-04-19 Richard Biener <rguenther@suse.de>
24619 PR tree-optimization/56982
24620 * builtins.def (BUILT_IN_LONGJMP): longjmp is not a leaf
24622 * gimplify.c (gimplify_call_expr): Notice special calls.
24623 (gimplify_modify_expr): Likewise.
24624 * tree-cfg.c (make_abnormal_goto_edges): Handle setjmp-like
24625 abnormal control flow receivers.
24626 (call_can_make_abnormal_goto): Handle cfun->calls_setjmp
24627 in the same way as cfun->has_nonlocal_labels.
24628 (gimple_purge_dead_abnormal_call_edges): Likewise.
24629 (stmt_starts_bb_p): Make setjmp-like abnormal control flow
24630 receivers start a basic-block.
24632 2013-04-19 Richard Biener <rguenther@suse.de>
24634 * tree-vectorizer.h (struct _slp_instance): Move load_permutation
24636 (struct _slp_tree): ... here. Make it a vector of unsigned ints.
24637 (SLP_INSTANCE_LOAD_PERMUTATION): Remove.
24638 (SLP_TREE_LOAD_PERMUTATION): Add.
24639 (vect_transform_slp_perm_load): Adjust prototype.
24640 * tree-vect-slp.c (vect_free_slp_tree): Adjust.
24641 (vect_free_slp_instance): Likewise.
24642 (vect_create_new_slp_node): Likewise.
24643 (vect_supported_slp_permutation_p): Remove.
24644 (vect_slp_rearrange_stmts): Adjust.
24645 (vect_supported_load_permutation_p): Likewise. Inline
24646 vect_supported_slp_permutation_p here.
24647 (vect_analyze_slp_instance): Compute load permutations per
24648 slp node instead of per instance.
24649 (vect_get_slp_defs): Adjust.
24650 (vect_transform_slp_perm_load): Likewise.
24651 (vect_schedule_slp_instance): Remove redundant code.
24652 (vect_schedule_slp): Remove hack for PR56270, add it ...
24653 * tree-vect-stmts.c (vectorizable_load): ... here, do not
24654 CSE loads for SLP. Adjust.
24656 2013-04-19 Greta Yorsh <Greta.Yorsh@arm.com>
24658 * config/arm/arm.c (load_multiple_sequence, ldm_stm_operation_p): Fix
24659 spelling in two comments.
24661 2013-04-19 Greta Yorsh <Greta.Yorsh@arm.com>
24664 * config/arm/arm.c (load_multiple_sequence): Require SP
24665 as base register for loads if SP is in the register list.
24667 2013-04-19 Martin Jambor <mjambor@suse.cz>
24669 PR tree-optimization/56718
24670 * ipa-cp.c (ipa_value_from_known_type_jfunc): Moved...
24671 * ipa-prop.c (ipa_binfo_from_known_type_jfunc): ...here, renamed
24672 and made public. Adjusted all callers.
24673 (ipa_intraprocedural_devirtualization): New function.
24674 * ipa-prop.h (ipa_binfo_from_known_type_jfunc): Declare.
24675 (ipa_intraprocedural_devirtualization): Likewise.
24676 * Makefile.in (tree-ssa-pre.o): Add ipa-prop.h to dependencies.
24678 2013-04-19 Richard Biener <rguenther@suse.de>
24680 PR tree-optimization/57000
24681 * tree-ssa-reassoc.c (pass_reassoc): Add TODO_update_ssa_only_virtuals.
24683 2013-04-19 Terry Guo <terry.guo@arm.com>
24685 * config/arm/cortex-m4-fpu.md (cortex_m4_v): Delete cpu unit.
24687 (cortex_m4_v_a, cortex_m4_v_b): ... new cpu units.
24688 (cortex_m4_v, cortex_m4_exa_va, cortex_m4_exb_vb): New reservations.
24689 (cortex_m4_fmacs): Use new reservations.
24690 (cortex_m4_f_load, cortex_m4_f_store): Likewise.
24692 2013-04-18 Vladimir Makarov <vmakarov@redhat.com>
24694 PR rtl-optimization/56999
24695 * lra-coalesce.c (coalescable_pseudo_p): Remove 2nd parameter and
24697 (lra_coalesce): Remove split_origin_bitmap and related code.
24698 * lra.c (lra): Coalesce after undoing inheritance. Recreate live
24699 ranges if necessary.
24701 2013-04-18 Uros Bizjak <ubizjak@gmail.com>
24703 * config/i386/i386.c (x86_64_ms_sysv_extra_clobbered_registers):
24705 (ix86_expand_call): Remove clobbered_registers array and use
24706 x86_64_ms_sysv_extra_clobbered_registers instead.
24707 * config/i386/i386.h (x86_64_ms_sysv_extra_clobbered_registers):
24709 * config/i386/predicates.md (call_rex64_ms_sysv_operation): New
24711 * config/i386/i386.md (*call_rex64_ms_sysv): Use
24712 call_rex64_ms_sysv_operation predicate. Remove explicit clobbers.
24713 (*call_value_rex64_ms_sysv): Ditto.
24715 2013-04-18 Cary Coutant <ccoutant@google.com>
24717 * dwarf2out.c (output_pubnames): Check die_perennial_p of
24718 parent instead of die_mark.
24720 2013-04-18 Diego Novillo <dnovillo@google.com>
24722 * gimple.c (create_gimple_tmp): New.
24723 (get_expr_type): New.
24724 (build_assign): New.
24725 (build_type_cast): New.
24726 * gimple.h (enum ssa_mode): Define.
24727 (gimple_seq_set_location): New.
24728 * asan.c (build_check_stmt): Change some gimple_build_* calls
24729 to use build_assign and build_type_cast.
24731 2013-04-18 Richard Biener <rguenther@suse.de>
24733 * tree-vect-data-refs.c (vect_analyze_group_access): Properly
24734 handle negative step. Remove redundant checks.
24735 (vect_create_data_ref_ptr): Avoid ICEs with non-constant steps.
24736 * tree-vect-stmts.c (vectorizable_load): Instead of asserting
24737 for negative step and grouped loads fail to vectorize.
24739 2013-04-18 Steven Bosscher <steven@gcc.gnu.org>
24741 * emit-rtl.c (reset_insn_used_flags): New function.
24742 (reset_all_used_flags): Use it.
24743 (verify_insn_sharing): New function.
24744 (verify_rtl_sharing): Fix verification for SEQUENCEs.
24746 2013-04-18 Jakub Jelinek <jakub@redhat.com>
24748 PR tree-optimization/56984
24749 * tree-vrp.c (register_edge_assert_for_2): For (x >> M) < N
24750 and (x >> M) >= N don't register any assertion if N << M is the
24753 2013-04-18 Steven Bosscher <steven@gcc.gnu.org>
24755 * lower-subreg.c (resolve_simple_move): If called self-recursive,
24756 do not delete_insn insns that have not yet been emitted, only
24757 unlink them with remove_insn.
24758 * df-scan.c (df_insn_delete): Revert r197492.
24760 2013-04-17 Steven Bosscher <steven@gcc.gnu.org>
24762 * emit-rtl.c (link_insn_into_chain): Handle chaining of SEQUENCEs.
24763 * reorg.c (emit_delay_sequence): Simplify with emit-rtl API.
24765 2013-04-17 Greta Yorsh <Greta.Yorsh@arm.com>
24767 * config/arm/arm.md (movsicc_insn): Convert define_insn into
24768 define_insn_and_split.
24769 (and_scc,ior_scc,negscc): Likewise.
24770 (cmpsi2_addneg, subsi3_compare): Convert to named patterns.
24772 2013-04-17 Greta Yorsh <Greta.Yorsh@arm.com>
24774 * config/arm/arm.c (use_return_insn): Return 0 for targets that
24775 can benefit from using a sequence of LDRD instructions in epilogue
24776 instead of a single LDM instruction.
24778 2013-04-17 Manuel López-Ibáñez <manu@gcc.gnu.org>
24781 * doc/extend.texi: Fix typo.
24783 2013-04-17 Richard Biener <rguenther@suse.de>
24785 * tree-vect-slp.c (vect_build_slp_tree_1): Split out from ...
24786 (vect_build_slp_tree): ... here.
24787 (vect_build_slp_tree_1): Compute which stmts of the SLP group
24788 match. Remove special-casing of mismatched complex loads.
24789 (vect_build_slp_tree): Based on the result from vect_build_slp_tree_1
24790 re-try the match with swapped commutative operands.
24791 (vect_supported_load_permutation_p): Remove special-casing of
24792 mismatched complex loads.
24793 (vect_analyze_slp_instance): Adjust.
24795 2013-04-17 Richard Biener <rguenther@suse.de>
24797 PR rtl-optimization/56921
24798 * cfgloop.h (struct loop): Add simple_loop_desc member.
24799 (struct niter_desc): Mark with GTY(()).
24800 (simple_loop_desc): Do not use aux field but simple_loop_desc.
24801 * loop-iv.c (get_simple_loop_desc): Likewise.
24802 (free_simple_loop_desc): Likewise.
24805 2013-04-16 Richard Biener <rguenther@suse.de>
24807 PR rtl-optimization/56921
24808 * loop-init.c (pass_rtl_move_loop_invariants): Add
24809 TODO_do_not_ggc_collect to todo_flags_finish.
24810 (pass_rtl_unswitch): Same.
24811 (pass_rtl_unroll_and_peel_loops): Same.
24812 (pass_rtl_doloop): Same.
24814 2013-04-17 Eric Botcazou <ebotcazou@adacore.com>
24816 * tree-ssa-alias.c (nonoverlapping_component_refs_of_decl_p): New.
24817 (decl_refs_may_alias_p): Add REF1 and REF2 parameters.
24818 Use nonoverlapping_component_refs_of_decl_p to disambiguate component
24820 (refs_may_alias_p_1): Adjust call to decl_refs_may_alias_p.
24821 * tree-streamer.c (record_common_node): Adjust reference in comment.
24823 2013-04-17 Terry Guo <terry.guo@arm.com>
24825 * config/arm/cortex-m4.md: Add a new bypass.
24827 2013-04-16 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
24829 * config/aarch64/aarch64.md (*adds_<optab><mode>_multp2):
24831 (*subs_<optab><mode>_multp2): New pattern.
24832 (*adds_<optab><ALLX:mode>_<GPI:mode>): New pattern.
24833 (*subs_<optab><ALLX:mode>_<GPI:mode>): New pattern.
24835 2013-04-16 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
24837 * config/aarch64/aarch64.md (*adds_mul_imm_<mode>): New pattern.
24838 (*subs_mul_imm_<mode>): New pattern.
24840 2013-04-16 David Edelsohn <dje.gcc@gmail.com>
24843 * config/rs6000/vsx.md (vsx_mov<mode>): Add j->r alternative.
24844 (vsx_movti_64bit): Change j->wa to O->wa. Add n->r alternative.
24845 (vsx_movti_32bit): Change j->wa to O->wa.
24847 2013-04-16 Richard Biener <rguenther@suse.de>
24849 PR rtl-optimization/56921
24850 * loop-init.c (pass_rtl_move_loop_invariants): Add
24851 TODO_do_not_ggc_collect to todo_flags_finish.
24852 (pass_rtl_unswitch): Same.
24853 (pass_rtl_unroll_and_peel_loops): Same.
24854 (pass_rtl_doloop): Same.
24856 2013-04-16 Greta Yorsh <Greta.Yorsh@arm.com>
24858 * config/arm/arm.c (emit_multi_reg_push): New declaration
24859 for an existing function.
24860 (arm_emit_strd_push): New function.
24861 (arm_expand_prologue): Used here.
24862 (arm_emit_ldrd_pop): New function.
24863 (arm_expand_epilogue): Used here.
24864 (arm_get_frame_offsets): Update condition.
24865 (arm_emit_multi_reg_pop): Add a special case for load of a single
24866 register with writeback.
24868 2013-04-16 Uros Bizjak <ubizjak@gmail.com>
24870 * doc/invoke.texi (i386 Option): Reword -mstack-protector-guard
24873 2013-04-16 Richard Biener <rguenther@suse.de>
24875 PR tree-optimization/56756
24876 * tree-ssa-loop-im.c (struct first_mem_ref_loc_1): New functor.
24877 (first_mem_ref_loc): New.
24878 (execute_sm): Place the load temporarily before a previous
24879 access instead of in the latch edge to ensure its SSA dependencies
24880 are defined at points dominating the load.
24882 2013-04-16 Steven Bosscher <steven@gcc.gnu.org>
24884 * cfgrtl.c (cfg_layout_merge_blocks): Revert r184005, implement
24885 correct fix by moving header and footer insn to the footer of
24886 the merged basic block. Clear BB_END of the merged-away block.
24888 PR middle-end/43631
24889 * emit-rtl.c (make_note_raw): New function.
24890 (link_insn_into_chain): New static inline function.
24891 (add_insn): Use it.
24892 (add_insn_before, add_insn_after): Factor insn chain linking code...
24893 (add_insn_before_nobb, add_insn_after_nobb): ...here, new functions
24894 using link_insn_into_chain.
24895 (note_outside_basic_block_p): New helper function for emit_note_after
24896 and emit_note_before.
24897 (emit_note_after): Use nobb variant of add_insn_after if the note
24898 should not be contained in a basic block.
24899 (emit_note_before): Use nobb variant of add_insn_before if the note
24900 should not be contained in a basic block.
24901 (emit_note_copy): Use make_note_raw.
24902 (emit_note): Likewise.
24903 * bb-reorder.c (insert_section_boundary_note): Remove hack to set
24904 BLOCK_FOR_INSN to NULL manually for NOTE_INSN_SWITCH_TEXT_SECTIONS.
24905 * jump.c (cleanup_barriers): Use reorder_insns_nobb to avoid making
24906 the moved barrier the tail of the basic block it follows.
24907 * var-tracking.c (pass_variable_tracking): Add TODO_verify_flow.
24909 2013-04-15 Jakub Jelinek <jakub@redhat.com>
24911 PR tree-optimization/56962
24912 * gimple-ssa-strength-reduction.c (record_increment): Only set
24913 initializer if gimple_assign_rhs_code is {,POINTER_}PLUS_EXPR and
24914 either rhs1 or rhs2 is equal to c->base_expr.
24916 2013-04-15 Richard Biener <rguenther@suse.de>
24918 PR tree-optimization/56933
24919 * tree-vectorizer.h (struct _stmt_vec_info): Remove read_write_dep
24921 (GROUP_READ_WRITE_DEPENDENCE): Remove.
24922 (STMT_VINFO_GROUP_READ_WRITE_DEPENDENCE): Likewise.
24923 * tree-vect-data-refs.c (vect_analyze_group_access): Move
24924 dependence check ...
24925 vect_analyze_data_ref_dependence (vect_analyze_data_ref_dependence):
24927 * tree-vect-stmts.c (new_stmt_vec_info): Do not initialize
24928 GROUP_READ_WRITE_DEPENDENCE.
24930 2013-04-15 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
24932 * emit-rtl.c (reset_all_used_flags): New function.
24933 (verify_rtl_sharing): Call reset_all_used_flags before and after
24934 performing the checks.
24936 2013-04-15 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
24938 * config/arm/arm.c (const_ok_for_dimode_op): Handle AND case.
24939 * config/arm/arm.md (*anddi3_insn): Change to insn_and_split.
24940 * config/arm/constraints.md (De): New constraint.
24941 * config/arm/neon.md (anddi3_neon): Delete.
24942 (neon_vand<mode>): Expand to standard anddi3 pattern.
24943 * config/arm/predicates.md (imm_for_neon_inv_logic_operand):
24944 Move earlier in the file.
24945 (neon_inv_logic_op2): Likewise.
24946 (arm_anddi_operand_neon): New predicate.
24948 2013-04-15 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
24950 * configure.ac (gcc_cv_ld_as_needed): Set
24951 gcc_cv_ld_as_needed_option, gcc_cv_no_as_needed_option.
24952 Use -z ignore, -z record on *-*-solaris2*.
24953 (HAVE_LD_AS_NEEDED): Update comment.
24954 (LD_AS_NEEDED_OPTION, LD_NO_AS_NEEDED_OPTION): Define.
24955 * configure: Regenerate.
24956 * config.in: Regenerate.
24957 * gcc.c (init_gcc_specs) [USE_LD_AS_NEEDED]: Use
24958 LD_AS_NEEDED_OPTION, LD_NO_AS_NEEDED_OPTION.
24959 * config/sol2.h [HAVE_LD_AS_NEEDED] (USE_LD_AS_NEEDED): Define.
24960 * doc/tm.texi.in (USE_LD_AS_NEEDED): Allow for --as-needed
24961 equivalents. Fix markup.
24962 * doc/tm.texi: Regenerate.
24964 2013-04-15 Andrew Hsieh <andrewhsieh.google.com>
24966 * config/i386/i386.opt: New option mstack-protector-guard=.
24967 * config/i386/i386-opts.h: Add enum stack_protector_guard.
24968 * config/i386/i386.h: Define TARGET_SSP_GLOBAL_GUARD and
24969 TARGET_SSP_TLS_GUARD.
24970 * config/i386/i386.c (ix86_option_override_internal): Set
24971 ix86_stack_protector_guard.
24972 * config/i386/i386.md (stack_protect_set): Enable for
24973 TARGET_SSP_TLS_GUARD only.
24974 (stack_protect_set_<mode>): Ditto.
24975 (stack_protect_test): Ditto.
24976 (stack_protect_test_<mode>): Ditto.
24977 * doc/invoke.texi (i386 Option): Document.
24979 2013-04-15 Eric Botcazou <ebotcazou@adacore.com>
24982 * config/sparc/sparc.c (enum sparc_mode_class): Add H_MODE value.
24983 (S_MODES): Set H_MODE bit.
24984 (SF_MODES): Set only S_MODE and SF_MODE bits.
24985 (DF_MODES): Set SF_MODES and only D_MODE and DF_MODE bits.
24986 (sparc_init_modes) <MODE_INT>: Set H_MODE bit for sub-word modes.
24987 <MODE_VECTOR_INT>: Do not set SF_MODE for sub-word modes.
24988 <MODE_FLOAT>: Likewise.
24990 2013-04-15 Joey Ye <joey.ye@arm.com>
24992 * config/arm/arm.c (thumb_far_jump_used_p): Fix typo in comments.
24994 2013-04-15 Joey Ye <joey.ye@arm.com>
24996 * config/arm/arm.c (thumb1_final_prescan_insn): Assert lr save
24998 (thumb_far_jump_used_p): Count instruction size and set
25001 2013-04-14 Eric Botcazou <ebotcazou@adacore.com>
25003 * reorg.c (fill_simple_delay_slots): Reindent block of code.
25004 * resource.c (mark_target_live_regs): Reformat conditional block.
25006 2013-04-13 Steven Bosscher <steven@gcc.gnu.org>
25008 * sched-deps.c (deps_analyze_insn): Do not check for EH_REGION insn
25009 notes, they are emitted only just before final.
25010 * sched-int.h: Include insn-attr.h before checking INSN_SCHEDULING.
25012 2013-04-13 Steven Bosscher <steven@gcc.gnu.org>
25014 * emit-rtl.c (remove_insn): Do not call df_insn_delete here.
25015 * cfgrtl.c (delete_insn): Call it here instead.
25016 * lra-spills.c (lra_final_code_change): Use delete_insn.
25017 * haifa-sched.c (sched_remove_insn): Likewise.
25018 * sel-sched-ir.c (return_nop_to_pool): Clear INSN_DELETED_P for nops
25019 returning to the nop pool.
25020 (sel_remove_insn): Simplify the only_disconnect case via remove_insn,
25021 use delete_insn for definitive removal. Clear BLOCK_FOR_INSN.
25023 2013-04-12 Steven Bosscher <steven@gcc.gnu.org>
25025 * doc/tm.texi.in (LOOP_ALIGN): Remove loop note references.
25026 * doc/tm.texi: Regenerated.
25028 2013-04-12 Uros Bizjak <ubizjak@gmail.com>
25030 * config/i386/i386.c (ix86_hard_regno_mode_ok): Use ANY_QI_REGNO_P in
25033 2013-04-12 Steven Bosscher <steven@gcc.gnu.org>
25035 * df-core.c (df_find_def): Compare register numbers.
25036 (df_find_use): Likewise.
25038 2013-04-12 Vladimir Makarov <vmakarov@redhat.com>
25041 * config/i386/i386.c (ix86_hard_regno_mode_ok): Add
25042 lra_in_progress for return.
25044 2013-04-12 Greta Yorsh <Greta.Yorsh@arm.com>
25046 * config/arm/arm.md (mov_scc,mov_negscc,mov_notscc): Convert
25047 define_insn into define_insn_and_split and emit movsicc patterns.
25049 2013-04-12 Greta Yorsh <Greta.Yorsh@arm.com>
25051 * config/arm/arm.c (gen_operands_ldrd_strd): Initialize "base".
25053 2013-04-12 Richard Biener <rguenther@suse.de>
25055 * tree-pass.h (TODO_do_not_ggc_collect): New.
25056 * passes.c (execute_one_ipa_transform_pass): Honor
25057 TODO_do_not_ggc_collect.
25058 (execute_one_pass): Likewise.
25061 2013-04-10 Richard Biener <rguenther@suse.de>
25063 * passes.c (init_optimization_passes): Remove reload pass.
25064 * ira.c (do_reload): Merge into ...
25066 (rest_of_handle_reload): Remove.
25067 (pass_reload): Likewise.
25068 * config/i386/i386.c (ix86_option_override): Refer to ira instead
25069 of reload for vzeroupper pass placement.
25071 2013-04-12 Jakub Jelinek <jakub@redhat.com>
25073 PR tree-optimization/56918
25074 PR tree-optimization/56920
25075 * fold-const.c (int_const_binop_1): Use op1.mul_with_sign (op2, ...)
25076 instead of op1 - op2. Pass 2 * TYPE_PRECISION (type) as second
25077 argument to rshift method. For 2 * HOST_BITS_PER_WIDE_INT precision
25078 use wide_mul_with_sign method.
25080 2013-04-12 Richard Biener <rguenther@suse.de>
25082 * gimple.c (is_gimple_constant): Vector CONSTRUCTORs should
25083 not be considered a gimple constant.
25085 2013-04-12 Marc Glisse <marc.glisse@inria.fr>
25087 * fold-const.c (const_binop): Handle vector shifts by a scalar.
25088 (fold_binary_loc): Call const_binop also for mixed vector-scalar
25091 2013-04-12 Manuel López-Ibáñez <manu@gcc.gnu.org>
25092 Jakub Jelinek <jakub@redhat.com>
25094 * opts.c: Include diagnostic-color.h.
25095 (common_handle_option): Handle OPT_fdiagnostics_color_.
25096 * Makefile.in (OBJS-libcommon): Add diagnostic-color.o.
25097 (diagnostic.o, opts.o, pretty-print.o): Depend on diagnostic-color.h.
25098 (diagnostic-color.o): New.
25099 * common.opt (fdiagnostics-color, fdiagnostics-color=): New options.
25100 (diagnostic_color_rule): New enum.
25101 * dwarf2out.c (gen_producer_string): Don't print -fdiagnostics-color*.
25102 * langhooks.c (lhd_print_error_function): Add %r "locus" and %R around
25103 the location string.
25104 * diagnostic.def: Add 3rd argument to DEFINE_DIAGNOSTIC_KIND macros,
25105 either NULL, or color kind.
25106 * diagnostic-color.c: New file.
25107 * diagnostic-color.h: New file.
25108 * diagnostic-core.h (DEFINE_DIAGNOSTIC_KIND): Adjust macro for 3
25110 * doc/invoke.texi (-fdiagnostics-color): Document.
25111 * pretty-print.h (pp_show_color): Define.
25112 (struct pretty_print_info): Add show_color field.
25113 * diagnostic.c: Include diagnostic-color.h.
25114 (diagnostic_build_prefix): Adjust for 3 argument DEFINE_DIAGNOSTIC_KIND
25115 macros. Colorize error:, warning: etc. strings and also the location
25117 (diagnostic_show_locus): Colorize the caret line.
25118 * pretty-print.c: Include diagnostic-color.h.
25119 (pp_base_format): Handle %r and %R format specifiers. Colorize strings
25120 inside of %< %> quotes or quoted through q format modifier.
25122 2013-04-12 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
25124 * ifcvt.c (end_ifcvt_sequence): Mark a and b for unsharing as well.
25126 2013-04-11 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
25128 * config/aarch64/aarch64.c (aarch64_select_cc_mode): Allow NEG
25129 code in CC_NZ mode.
25130 * config/aarch64/aarch64.md (*neg_<shift><mode>3_compare0): New
25133 2013-04-11 Marek Polacek <polacek@redhat.com>
25135 PR tree-optimization/48184
25136 * params.def (PARAM_ALIGN_THRESHOLD): Increase the minimum value to 1.
25138 2013-04-11 Eric Botcazou <ebotcazou@adacore.com>
25140 * stor-layout.c (skip_simple_constant_arithmetic): Move to...
25141 * tree.c (skip_simple_constant_arithmetic): ...here and make public.
25142 (skip_simple_arithmetic): Tidy up.
25143 * tree.h (skip_simple_constant_arithmetic): Declare.
25145 2013-04-11 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
25147 * config/aarch64/aarch64.h (REVERSIBLE_CC_MODE): Define.
25149 2013-04-11 Richard Biener <rguenther@suse.de>
25151 * tree-vect-loop.c (get_initial_def_for_induction): Properly
25152 generate vector constants.
25154 2013-04-11 Richard Biener <rguenther@suse.de>
25156 PR tree-optimization/56878
25157 * tree-flow.h (outermost_invariant_loop_for_expr): Declare.
25158 * tree-ssa-loop-ivopts.c (outermost_invariant_loop_for_expr):
25160 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment):
25161 Prefer to align the DR with the most invariant base address.
25163 2013-04-11 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
25165 * opts.c (common_handle_option): Fix formatting and add FALLTHRU
25168 2013-04-11 James Greenhalgh <james.greenhalgh@arm.com>
25170 * config/aarch64/aarch64-simd.md (aarch64_vcond_internal): Fix
25171 floating-point vector comparisons against 0.
25173 2013-04-11 Jakub Jelinek <jakub@redhat.com>
25175 PR tree-optimization/56899
25176 * fold-const.c (extract_muldiv_1): Apply distributive law
25177 only if TYPE_OVERFLOW_WRAPS (ctype).
25179 2013-04-11 Bin Cheng <bin.cheng@arm.com>
25182 * ira-costs.c (scan_one_insn): Check whether the source rtx of
25183 loading has side effect.
25185 2013-04-10 Steven Bosscher <steven@gcc.gnu.org>
25187 * config/sparc/sparc.c: Include tree-pass.h.
25188 (TARGET_MACHINE_DEPENDENT_REORG): Do not redefine.
25189 (sparc_reorg): Rename to sparc_do_work_around_errata. Move to
25190 head of file. Change return type. Split off gate function.
25191 (sparc_gate_work_around_errata): New function.
25192 (pass_work_around_errata): New pass definition.
25193 (insert_pass_work_around_errata) New pass insert definition to
25194 insert pass_work_around_errata just after delayed-branch scheduling.
25195 (sparc_option_override): Insert the pass.
25196 * config/sparc/t-sparc (sparc.o): Add TREE_PASS_H dependence.
25198 2013-04-10 David S. Miller <davem@davemloft.net>
25200 * config/sparc/sparc.h (ASM_CPU_SPEC): Pass -Av8 if -mcpu=supersparc
25201 or -mcpu=hypersparc.
25203 * target.def (cstore_mode): New hook.
25204 * target.h: Include insn-codes.h
25205 * targhooks.c: Likewise.
25206 (default_cstore_mode): New function.
25207 * targhooks.h: Declare it.
25208 * doc/tm.texi.in: New hook slot for TARGET_CSTORE_MODE.
25209 * doc/tm.texi: Rebuild.
25210 * expmed.c (emit_cstore): Obtain cstore boolean result mode using
25211 target hook, rather than inspecting the insn_data.
25212 * config/sparc/sparc.c (sparc_cstore_mode): New function.
25213 (TARGET_CSTORE_MODE): Redefine.
25214 (emit_scc_insn): When TARGET_ARCH64, emit new 64-bit boolean
25216 * config/sparc/predicates.md (cstore_result_operand): New special
25218 * config/sparc/sparc.md (cstoresi4, cstoredi4, cstore<F:mode>4):
25219 Use it for operand 0.
25220 (*seqsi_special): Rewrite using 'P' mode iterator on operand 0.
25221 (*snesi_special): Likewise.
25222 (*snesi_zero): Likewise.
25223 (*seqsi_zero): Likewise.
25224 (*sltu_insn): Likewise.
25225 (*sgeu_insn): Likewise.
25226 (*seqdi_special): Make operand 0 and comparison operation be of
25228 (*snedi_special): Likewise.
25229 (*snedi_special_vis3): Likewise.
25230 (*neg_snesi_zero): Rename to *neg_snesisi_zero.
25231 (*neg_snesi_sign_extend): Rename to *neg_snesidi_zero.
25232 (*snesi_zero_extend): Delete, covered by 'P' mode iterator.
25233 (*neg_seqsi_zero): Rename to *neg_seqsisi_zero.
25234 (*neg_seqsi_sign_extend): Rename to *neg_seqsidi_zero.
25235 (*seqsi_zero_extend): Delete, covered by 'P' mode iterator.
25236 (*sltu_extend_sp64): Likewise.
25237 (*neg_sltu_insn): Rename to *neg_sltusi_insn.
25238 (*neg_sltu_extend_sp64): Rename to *neg_sltudi_insn.
25239 (*sgeu_extend_sp64): Delete, covered by 'P' mode iterator.
25240 (*neg_sgeu_insn): Rename to *neg_sgeusi_insn.
25241 (*neg_sgeu_extend_sp64): Rename to *neg_sgeudi_insn.
25243 2013-04-10 Yufeng Zhang <yufeng.zhang@arm.com>
25245 * config/aarch64/aarch64.c (aarch64_print_extension): New function.
25246 (aarch64_start_file): Use the new function.
25248 2013-04-10 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
25249 Jason Merrill <jason@redhat.com>
25251 * common.opt: Add -gdwarf.
25252 * opts.c (common_handle_option): Handle it.
25253 * gcc.c (ASM_DEBUG_SPEC): Don't expect "-2" for DWARF.
25255 2013-04-10 Richard Biener <rguenther@suse.de>
25257 * passes.c (execute_todo): Do not call ggc_collect conditional here.
25258 (execute_one_ipa_transform_pass): But unconditionally here.
25259 (execute_one_pass): And here.
25260 (init_optimization_passes): Remove reload pass.
25261 * tree-pass.h (TODO_ggc_collect): Remove.
25262 (pass_reload): Likewise.
25263 * ira.c (do_reload): Merge into ...
25265 (rest_of_handle_reload): Remove.
25266 (pass_reload): Likewise.
25267 * config/i386/i386.c (ix86_option_override): Refer to ira instead
25268 of reload for vzeroupper pass placement.
25269 * <everywhere>: Remove TODO_ggc_collect from todo_flags_start
25270 and todo_flags_finish of all passes.
25272 2013-04-10 Richard Biener <rguenther@suse.de>
25274 * tree-vectorizer.h (struct _slp_oprnd_info): Remove
25275 first_const_oprnd field, rename first_def_type to first_op_type.
25276 * tree-vect-slp.c (vect_create_oprnd_info): Adjust.
25277 (vect_get_and_check_slp_defs): Always use the type of the
25278 operand. Allow mixed vect_external_def, vect_constant_def types.
25279 (vect_get_constant_vectors): Handle mixed vect_external_def,
25280 vect_constant_def types.
25282 2013-04-10 Joern Rennecke <joern.rennecke@embecosm.com>
25284 PR tree-optimization/55524
25285 * tree-ssa-math-opts.c
25286 (convert_mult_to_fma): Don't use an fms construct
25287 when we don't have an fms operation, but fnma, and it looks
25288 likely that we'll be able to use the latter.
25290 2013-04-10 Zhouyi Zhou <yizhouzhou@ict.ac.cn>
25292 * cif-code.def (OVERWRITABLE): Correct the comment for overwritable
25294 * ipa-inline.c (can_inline_edge_p): Let dump mechanism report the
25295 inline fail caused by overwritable functions.
25297 2013-04-10 Chung-Ju Wu <jasonwucj@gmail.com>
25299 * combine.c (simplify_compare_const): Use GET_MODE_MASK to filter out
25300 unnecessary bits in the constant power of two case.
25302 2013-04-10 Richard Biener <rguenther@suse.de>
25304 * tree-vect-slp.c (vect_get_and_check_slp_defs): Remove
25305 broken code swapping operands.
25306 (vect_build_slp_tree): Do not compute load permutations here.
25307 (vect_analyze_slp_instance): Compute load permutations here,
25308 after building the SLP tree.
25310 2013-04-09 Christian Bruel <christian.bruel@st.com>
25312 * config/sh/sh.md (barrier_align): Use next/prev_active_insn instead
25313 of next/prev_real_insn.
25315 2013-04-09 Jan Hubicka <jh@suse.cz>
25317 * ipa.c (cgraph_externally_visible_p, varpool_externally_visible_p):
25318 Drop aliased parameter.
25319 (function_and_variable_visibility): Do not handle alias pairs.
25320 * cgraph.c (varpool_externally_visible_p): Update prototype.
25321 * varpool.c (varpool_add_new_variable): Update.
25323 2013-04-09 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
25325 * config/arm/arm.md (minmax_arithsi_non_canon): New pattern.
25327 2013-04-09 Steven Bosscher <steven@gcc.gnu.org>
25329 * sched-vis.c (print_pattern): Print SEQUENCE of insns as insns.
25331 * config/sparc/sparc.md: Use define_c_enum for "unspec" and "unspecv".
25333 2013-04-09 Marek Polacek <polacek@redhat.com>
25335 PR tree-optimization/48762
25336 * params.def (PARAM_MAX_CSE_INSNS): Increase the minimum value to 1.
25338 2013-04-09 Richard Biener <rguenther@suse.de>
25340 * tree-vect-slp.c (vect_get_and_check_slp_defs): Remove code
25342 (vect_build_slp_tree): Likewise.
25343 (vect_analyze_slp_cost_1, vect_analyze_slp_cost): New functions
25344 calculating the cost of a SLP instance.
25345 (vect_analyze_slp_instance): Use it from here, after building
25348 2013-04-09 Jakub Jelinek <jakub@redhat.com>
25350 PR middle-end/56883
25351 * omp-low.c (expand_omp_for_generic, expand_omp_for_static_nochunk,
25352 expand_omp_for_static_chunk): Use simple_p = true in
25353 force_gimple_operand_gsi calls when assigning to addressable decls.
25355 2013-04-09 Jeff Law <law@redhat.com>
25357 * tree-vrp.c (simplify_cond_using_ranges): Simplify test of boolean
25358 when the boolean was created by converting a wider object which
25359 had a boolean range.
25361 2013-04-09 Richard Biener <rguenther@suse.de>
25363 * tree-vectorizer.h (slp_void_p): Remove.
25364 (slp_tree): Typedef before _slp_tree declaration.
25365 (struct _slp_tree): Use a vector of slp_tree as children.
25366 (vect_get_place_in_interleaving_chain): Remove.
25367 * tree-vect-data-refs.c (vect_get_place_in_interleaving_chain):
25369 * tree-vect-slp.c (vect_get_place_in_interleaving_chain): ... here
25371 (vect_free_slp_tree, vect_print_slp_tree, vect_mark_slp_stmts,
25372 vect_mark_slp_stmts_relevant, vect_slp_rearrange_stmts,
25373 vect_detect_hybrid_slp_stmts, vect_slp_analyze_node_operations,
25374 vect_schedule_slp_instance, vect_remove_slp_scalar_calls):
25375 Use slp_node instead of slp_void_p and adjust.
25377 2013-04-09 Richard Biener <rguenther@suse.de>
25379 * tree-ssa-loop-manip.c (rewrite_into_loop_closed_ssa): Avoid
25380 work that is not necessary.
25382 2013-04-09 Jakub Jelinek <jakub@redhat.com>
25384 PR tree-optimization/56854
25385 * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Don't
25386 forward into clobber stmts if it would change MEM_REF lhs into
25389 2013-04-09 Maxim Kuvyrkov <maxim@kugelworks.com>
25391 * tree.c (type_hash_lookup, type_hash_add): Make static.
25392 * tree.h (type_hash_lookup, type_hash_add): Remove global declarations.
25394 2013-04-09 Richard Biener <rguenther@suse.de>
25396 * tree.h (unsave_expr_now): Remove.
25397 * tree-inline.c (mark_local_for_remap_r): Remove.
25398 (unsave_expr_1): Likewise.
25399 (unsave_r): Likewise.
25400 (unsave_expr_now): Likewise.
25401 * tree-ssa-copy.c (replace_exp_1): Use unshare_expr.
25402 (propagate_tree_value): Likewise.
25404 2013-04-08 Steven Bosscher <steven@gcc.gnu.org>
25406 * doc/rtl.texi (sequence): Rewrite documentation to match the
25407 current use of SEQUENCE rtl objects.
25408 * rtl.def (SEQUENCE): Likewise.
25410 * doc/rtl.texi (NOTE_INSN_EH_REGION_BEG, NOTE_INSN_EH_REGION_END):
25411 Update documentation.
25412 (NOTE_INSN_LOOP_BEG, NOTE_INSN_LOOP_END, NOTE_INSN_LOOP_CONT,
25413 NOTE_INSN_LOOP_VTOP): Remove documentation for non-existing notes.
25415 * reg-notes.def (REG_EH_CONTEXT): Remove unused note.
25417 2013-04-08 Teresa Johnson <tejohnson@google.com>
25419 * basic-block.h (GCOV_COMPUTE_SCALE): Define.
25420 * ipa-inline-analysis.c (param_change_prob): Use helper rounding divide
25422 (estimate_edge_size_and_time): Add comment to suggest using rounding
25424 (estimate_node_size_and_time): Ditto.
25425 (remap_edge_change_prob): Use helper rounding divide methods.
25426 * value-prof.c (gimple_divmod_fixed_value_transform): Ditto.
25427 (gimple_mod_pow2_value_transform): Ditto.
25428 (gimple_mod_subtract_transform): Ditto.
25429 (gimple_ic_transform): Ditto.
25430 (gimple_stringops_transform): Ditto.
25431 * stmt.c (conditional_probability): Ditto.
25432 (emit_case_dispatch_table): Ditto.
25433 * lto-cgraph.c (merge_profile_summaries): Ditto.
25434 * tree-optimize.c (execute_fixup_cfg): Ditto.
25435 * cfgcleanup.c (try_forward_edges): Ditto.
25436 * cfgloopmanip.c (scale_loop_profile): Ditto.
25438 (duplicate_loop_to_header_edge): Ditto.
25439 (lv_adjust_loop_entry_edge): Ditto.
25440 * tree-vect-loop.c (vect_transform_loop): Ditto.
25441 * profile.c (compute_branch_probabilities): Ditto.
25442 * cfgbuild.c (compute_outgoing_frequencies): Ditto.
25443 * lto-streamer-in.c (input_cfg): Ditto.
25444 * gimple-streamer-in.c (input_bb): Ditto.
25445 * ipa-cp.c (update_profiling_info): Ditto.
25446 (update_specialized_profile): Ditto.
25447 * tree-vect-loop-manip.c (slpeel_tree_peel_loop_to_edge): Ditto.
25448 * cfg.c (update_bb_profile_for_threading): Add comment to suggest using
25450 * sched-rgn.c (compute_dom_prob_ps): Ditto.
25451 (compute_trg_info): Ditto.
25452 * cfgrtl.c (force_nonfallthru_and_redirect): Ditto.
25453 (purge_dead_edges): Ditto.
25454 * loop-unswitch.c (unswitch_loop): Ditto.
25455 * cgraphclones.c (cgraph_clone_edge): Ditto.
25456 (cgraph_clone_node): Ditto.
25457 * tree-inline.c (copy_bb): Ditto.
25458 (copy_edges_for_bb): Ditto.
25459 (initialize_cfun): Ditto.
25460 (copy_cfg_body): Ditto.
25461 (expand_call_inline): Ditto.
25463 2013-04-08 Kai Tietz <ktietz@redhat.com>
25465 * config/i386/cygwin.h (EXTRA_OS_CPP_BUILTINS): Replaced
25466 TARGET_CYGWIN64 by TARGET_64BIT.
25468 2013-04-08 Joern Rennecke <joern.rennecke@embecosm.com>
25470 * config/epiphany/epiphany.md (GPR_1): New constant.
25471 (define_expand "mov<mode>cc): FAIL if gen_compare_reg returned 0.
25472 * config/epiphany/epiphany.c (gen_compare_reg):
25473 For flag_finite_math_only, avoid swapping operands when r0 and/or r1
25474 is already in place.
25475 Use GPR_0 / GPR_1 instead of 0/1 for r0/r1 register numbers.
25476 Don't require being called during rtl expansion; If y operlaps r0,
25478 (epiphany_compute_frame_size, epiphany_expand_prologue): Use GPR_1.
25479 (epiphany_expand_epilogue): Likewise.
25481 * config/epiphany/epiphany.c (epiphany_select_cc_mode):
25482 Don't use CC_FPmode for ORDERED / UNORDERED.
25483 * config/epiphany/epiphany.md (cmpsf_ord): Make pattern unconditional.
25485 * config/epiphany/constraints.md (CnL): New constraint.
25486 * config/epiphany/epiphany.md (addsi3_i): Add r/r/CnL alternative.
25487 * config/epiphany/predicates.md (add_operand): Allow 1024.
25489 * config/epiphany/epiphany.md (logical_op): New code iterator.
25490 (op_mnc): New code attribute.
25491 (<op_mnc>_f, mov_f, cstoresi4): New patterns.
25492 (mov_f+1, mov_f+2): New peephole2 patterns.
25494 * config/epiphany/epiphany.md (mov_f+2): New peephole2 pattern.
25495 (cstoresi4): Also allow re-use of zero result when doing a NE
25496 comparison to a non-zero operand.
25497 Use (clobber (scratch)) for first insn if the gpr output is not needed.
25499 * config/epiphany/epiphany.md (<insn_opname>v2si3):
25500 Use gen_addsi3_i / gen_subsi3_i.
25502 2013-04-08 Jakub Jelinek <jakub@redhat.com>
25506 * tree-eh.c (optimize_clobbers): Only remove clobbers if bb doesn't
25507 contain anything but clobbers, at most one __builtin_stack_restore,
25508 optionally debug stmts and final resx, and if it has at least one
25509 incoming EH edge. Don't check for SSA_NAME on LHS of a clobber.
25510 (sink_clobbers): Don't check for SSA_NAME on LHS of a clobber.
25511 Instead of moving clobbers with MEM_REF LHS with SSA_NAME address
25512 which isn't defaut definition, remove them.
25513 (unsplit_eh, cleanup_empty_eh): Use single_{pred,succ}_{p,edge}
25514 instead of EDGE_COUNT comparisons or EDGE_{PRED,SUCC}.
25515 * tree-ssa-ccp.c (execute_fold_all_builtins): Remove clobbers
25516 with MEM_REF LHS with SSA_NAME address.
25518 2013-04-08 Jeff Law <law@redhat.com>
25520 * gimple.c (canonicalize_cond_expr_cond): Rewrite x ^ y into x != y.
25522 2013-04-08 Richard Biener <rguenther@suse.de>
25524 * gimple-pretty-print.c (debug_gimple_stmt): Do not print
25526 * tree-vect-loop.c (vect_determine_vectorization_factor): Dump
25527 determined vector type.
25528 (vect_analyze_data_refs): Likewise.
25529 (vect_get_new_vect_var): Adjust.
25530 (vect_create_destination_var): Preserve SSA name versions.
25531 * tree-vect-stmts.c (get_vectype_for_scalar_type_and_size): Do
25532 not dump anything here.
25534 2013-04-08 Joern Rennecke <joern.rennecke@embecosm.com>
25536 * config/epiphany/epiphany.h (struct GTY (()) machine_function):
25537 Add member lr_slot_known.
25538 * config/epiphany/epiphany.md (reload_insi_ra): Compute lr_slot_offs
25540 * config/epiphany/epiphany.c (epiphany_compute_frame_size):
25541 Remove code that sets lr_slot_offset according to what a previous
25542 version of epiphany_emit_save_restore used to do.
25543 (epiphany_emit_save_restore): When doing an lr save or restore,
25544 set/verify lr_slot_known and lr_slot_offset.
25546 2013-04-08 Xinyu Qi <xyqi@marvell.com>
25549 * config/arm/arm.h (REG_CLASS_CONTENTS): Include IWMMXT_GR_REGS
25552 2013-04-08 Richard Biener <rguenther@suse.de>
25554 * alias.c (find_base_term): Fix thinko in previous change.
25556 2013-04-08 Jakub Jelinek <jakub@redhat.com>
25558 * tree-loop-distribution.c (const_with_all_bytes_same): New function.
25559 (generate_memset_builtin): Only handle integer_all_onesp as -1 val if
25560 TYPE_PRECISION is equal to mode bitsize. Use const_with_all_bytes_same
25561 if possible to compute val.
25562 (classify_partition): Verify CONSTRUCTOR doesn't have any elts.
25563 For QImode integers don't require anything about precision. Use
25564 const_with_all_bytes_same to find out if the constant doesn't have
25565 repeated bytes in it.
25567 2013-04-08 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
25569 * config/s390/s390.c (s390_expand_insv): Only accept insertions
25572 2013-04-08 Marek Polacek <polacek@redhat.com>
25574 PR rtl-optimization/48182
25575 * params.def (PARAM_MIN_CROSSJUMP_INSNS): Increase the minimum
25578 2013-04-06 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
25581 * config/pa/pa.c (legitimize_pic_address): Before incrementing label
25582 nuses, make sure we have a label.
25584 2013-04-05 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
25587 * config/rs6000/rs6000.c (rs6000_emit_swdiv_high_precision): Remove.
25588 (rs6000_emit_swdiv_low_precision): Remove.
25589 (rs6000_emit_swdiv): Rewrite to handle between one and four
25590 iterations of Newton-Raphson generally; modify required number of
25591 iterations for some cases.
25592 * config/rs6000/rs6000.h (RS6000_RECIP_HIGH_PRECISION_P): Remove.
25594 2013-04-05 Steven Bosscher <steven@gcc.gnu.org>
25596 * bb-reorder.c (fix_crossing_unconditional_branches): Remove a
25597 set-but-unused variable.
25599 * cgraph.c (cgraph_release_function_body): Clear cfun->cfg to make
25600 basic blocks of released function bodies garbage-collectable.
25602 * ree.c (find_and_remove_re): Do not call df_finish_pass here.
25603 (struct rtl_opt_pass): Add TODO_df_finish.
25605 * rtl.def (DEFINE_SUBST, DEFINE_SUBST_ATTR): Add documentation.
25607 2013-04-05 Greta Yorsh <Greta.Yorsh@arm.com>
25609 * config/arm/constraints.md (q): New constraint.
25610 * config/arm/ldrdstrd.md: New file.
25611 * config/arm/arm.md (ldrdstrd.md) New include.
25612 (arm_movdi): Use "q" instead of "r" constraint
25613 for double-word memory access.
25614 (movdf_soft_insn): Likewise.
25615 * config/arm/vfp.md (movdi_vfp): Likewise.
25616 * config/arm/t-arm (MD_INCLUDES): Add ldrdstrd.md.
25617 * config/arm/arm-protos.h (gen_operands_ldrd_strd): New declaration.
25618 * config/arm/arm.c (gen_operands_ldrd_strd): New function.
25619 (mem_ok_for_ldrd_strd): Likewise.
25620 (output_move_double): Update assertion.
25622 2013-04-05 Greta Yorsh <Greta.Yorsh@arm.com>
25624 * config/arm/arm.md: Comment on splitting Thumb1 patterns.
25626 2013-04-05 Greta Yorsh <Greta.Yorsh@arm.com>
25628 * config/arm/arm.md (arm_smax_insn): Convert define_insn into
25629 define_insn_and_split.
25630 (arm_smin_insn,arm_umaxsi3,arm_uminsi3): Likewise.
25632 2013-04-05 Greta Yorsh <Greta.Yorsh@arm.com>
25634 * config/arm/arm.md (arm_ashldi3_1bit): Convert define_insn into
25635 define_insn_and_split.
25636 (arm_ashrdi3_1bit,arm_lshrdi3_1bit): Likewise.
25637 (shiftsi3_compare): New pattern.
25638 (rrx): New pattern.
25639 * config/arm/unspecs.md (UNSPEC_RRX): New.
25641 2013-04-05 Greta Yorsh <Greta.Yorsh@arm.com>
25643 * config/arm/arm.md (negdi_extendsidi): New pattern.
25644 (negdi_zero_extendsidi): Likewise.
25646 2013-04-05 Greta Yorsh <Greta.Yorsh@arm.com>
25648 * config/arm/arm.md (andsi_iorsi3_notsi): Convert define_insn into
25649 define_insn_and_split.
25650 (arm_negdi2,arm_abssi2,arm_neg_abssi2): Likewise.
25651 (arm_cmpdi_insn,arm_cmpdi_unsigned): Likewise.
25653 2013-04-05 Greta Yorsh <Greta.Yorsh@arm.com>
25655 * config/arm/arm.md (arm_subdi3): Convert define_insn into
25656 define_insn_and_split.
25657 (subdi_di_zesidi,subdi_di_sesidi): Likewise.
25658 (subdi_zesidi_di,subdi_sesidi_di,subdi_zesidi_zesidi): Likewise.
25660 2013-04-05 Greta Yorsh <Greta.Yorsh@arm.com>
25662 * config/arm/arm.md (subsi3_carryin): New pattern.
25663 (subsi3_carryin_const): Likewise.
25664 (subsi3_carryin_compare,subsi3_carryin_compare_const): Likewise.
25665 (subsi3_carryin_shift,rsbsi3_carryin_shift): Likewise.
25667 2013-04-05 Greta Yorsh <Greta.Yorsh@arm.com>
25669 * config/arm/arm.md (incscc,arm_incscc,decscc,arm_decscc): Delete.
25671 2013-04-05 Greta Yorsh <Greta.Yorsh@arm.com>
25673 * config/arm/arm.md (addsi3_carryin_<optab>): Set attribute predicable.
25674 (addsi3_carryin_alt2_<optab>,addsi3_carryin_shift_<optab>): Likewise.
25676 2013-04-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
25678 * config/arm/arm.c (arm_expand_builtin): Change fcode
25679 type to unsigned int.
25681 2013-04-05 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
25683 * doc/invoke.texi (ARM Options): Document cortex-a53 support.
25685 2013-04-04 Ian Lance Taylor <iant@google.com>
25687 * doc/standards.texi (Standards): The Go frontend supports the Go 1
25690 2013-04-04 Steven Bosscher <steven@gcc.gnu.org>
25692 PR middle-end/56729
25693 * df-scan.c (df_insn_delete): Disable failing assert.
25695 2013-04-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
25697 * config/arm/arm-protos.h (arm_builtin_vectorized_function):
25698 New function prototype.
25699 * config/arm/arm.c (TARGET_VECTORIZE_BUILTINS): Define.
25700 (TARGET_VECTORIZE_BUILTIN_VECTORIZED_FUNCTION): Likewise.
25701 (arm_builtin_vectorized_function): New function.
25703 2013-04-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
25705 * config/arm/arm_neon_builtins.def: New file.
25706 * config/arm/arm.c (neon_builtin_data): Move contents to
25707 arm_neon_builtins.def.
25708 (enum arm_builtins): Include neon builtin definitions.
25709 (ARM_BUILTIN_NEON_BASE): Move from enum to macro.
25710 * config/arm/t-arm (arm.o): Add dependency on arm_neon_builtins.def.
25712 2013-04-04 Marek Polacek <polacek@redhat.com>
25714 PR tree-optimization/48186
25715 * predict.c (maybe_hot_frequency_p): Return false if
25716 HOT_BB_FREQUENCY_FRACTION is 0.
25717 (cgraph_maybe_hot_edge_p): Likewise.
25719 2013-04-04 Richard Biener <rguenther@suse.de>
25721 PR tree-optimization/56826
25722 * tree-vect-slp.c (vect_build_slp_tree): Compute ncopies
25725 2013-04-04 Richard Biener <rguenther@suse.de>
25727 PR tree-optimization/56213
25728 * tree-vect-data-refs.c (vect_check_strided_load): Remove.
25729 (vect_analyze_data_refs): Allow all non-nested loads as strided loads.
25731 2013-04-04 Richard Biener <rguenther@suse.de>
25733 PR tree-optimization/56837
25734 * tree-loop-distribution.c (classify_partition): For non-zero
25735 values require that the value has the same precision as its
25736 mode to be useful as memset value.
25738 2013-04-03 Nick Clifton <nickc@redhat.com>
25740 * config/v850/v850e3v5.md (fmasf4): Use fmaf.s on E3V5 architectures.
25741 (fmssf4): Use fmsf.s on E3V5 architectures.
25742 (fnmasf4): Use fnmaf.s on E3V5 architectures.
25743 (fnmssf4): Use fnmsf.s on E3V5 architectures.
25745 2013-04-03 Jeff Law <law@redhat.com>
25747 * Makefile.in (lra-constraints.o): Depend on $(OPTABS_H).
25748 (lra-eliminations.o): Likewise.
25750 2013-04-03 Teresa Johnson <tejohnson@google.com>
25752 * gcov-io.c (compute_working_sets): Moved most of body of old
25753 compute_working_sets here from profile.c.
25754 * gcov-io.h (NUM_GCOV_WORKING_SETS): Moved here from profile.c.
25755 (gcov_working_set_t): Moved typedef here from basic-block.h
25756 (compute_working_set): Declare.
25757 * profile.c (NUM_GCOV_WORKING_SETS): Moved to gcov-io.h.
25758 (get_working_sets): Renamed from compute_working_set,
25759 replace most of body with call to new compute_working_sets.
25760 (get_exec_counts): Replace call to compute_working_sets
25761 to get_working_sets.
25762 * profile.h (get_working_sets): Renamed from compute_working_set.
25763 * lto-cgraph.c (input_symtab): Replace call to compute_working_sets
25764 to get_working_sets.
25765 * basic-block.h (gcov_working_set_t): Moved to gcov-io.h.
25766 * gcov-dump.c (dump_working_sets): New function.
25768 2013-04-03 Kenneth Zadeck <zadeck@naturalbridge.com>
25770 * hwint.c (sext_hwi, zext_hwi): New functions.
25771 * hwint.h (HOST_BITS_PER_HALF_WIDE_INT, HOST_HALF_WIDE_INT,
25772 HOST_HALF_WIDE_INT_PRINT, HOST_HALF_WIDE_INT_PRINT_C,
25773 HOST_HALF_WIDE_INT_PRINT_DEC, HOST_HALF_WIDE_INT_PRINT_DEC_C,
25774 HOST_HALF_WIDE_INT_PRINT_UNSIGNED, HOST_HALF_WIDE_INT_PRINT_HEX,
25775 HOST_HALF_WIDE_INT_PRINT_HEX_PURE): New symbols.
25776 (sext_hwi, zext_hwi): New functions.
25778 2013-04-03 Jeff Law <law@redhat.com>
25780 PR tree-optimization/56799
25781 * tree-ssa-dom.c (record_equivalences_from_incoming_edge): Bring
25782 back test for widening conversion erroneously dropped in prior change.
25784 2013-04-03 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
25787 * config/aarch64/aarch64.c (is_jump_table): Use next_active_insn
25788 instead of next_real_insn.
25790 2013-04-03 Marek Polacek <polacek@redhat.com>
25793 * tsan.c (instrument_func_exit): Allow BUILT_IN_RETURN functions.
25795 2013-04-03 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
25798 * config/arm/arm.c (is_jump_table): Use next_active_insn instead of
25800 (thumb1_output_casesi): Likewise.
25801 (thumb2_output_casesi): Likewise.
25803 2013-04-03 Richard Biener <rguenther@suse.de>
25805 PR tree-optimization/56817
25806 * tree-ssa-loop-ivcanon.c (tree_unroll_loops_completely):
25808 (tree_unroll_loops_completely_1): ... new function to manually
25809 walk the loop tree, properly defering outer loops of unrolled
25810 loops to later iterations.
25812 2013-04-03 Marc Glisse <marc.glisse@inria.fr>
25814 * tree-vect-stmts.c (vectorizable_store): Accept BIT_FIELD_REF.
25815 (vectorizable_load): Likewise.
25816 * tree-vect-slp.c (vect_build_slp_tree): Likewise.
25817 * tree-vect-data-refs.c (vect_create_data_ref_ptr): Handle VECTOR_TYPE.
25819 2013-04-03 Marc Glisse <marc.glisse@inria.fr>
25821 * tree-flow-inline.h (get_addr_base_and_unit_offset_1): Handle
25824 2013-04-03 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
25826 * config/spu/spu.c (emit_nop_for_insn): Handle JUMP_TABLE_DATA.
25828 2013-04-03 Bin Cheng <bin.cheng@arm.com>
25830 * rtl.h (AUTO_INC_DEC): Fix typo of HAVE_POST_MODIFY_DISP.
25832 2013-04-03 Marc Glisse <marc.glisse@inria.fr>
25834 PR tree-optimization/56790
25835 * fold-const.c (fold_ternary_loc) <VEC_COND_EXPR>: Add constant
25838 2013-04-03 Marc Glisse <marc.glisse@inria.fr>
25840 * simplify-rtx.c (simplify_binary_operation_1) <VEC_SELECT>:
25842 (simplify_ternary_operation) <VEC_MERGE>: Use unsigned HOST_WIDE_INT
25843 for masks. Test for side effects. Handle nested VEC_MERGE. Handle
25846 2013-04-03 Jakub Jelinek <jakub@redhat.com>
25849 * tree.h (force_folding_builtin_constant_p): New decl.
25850 * builtins.c (force_folding_builtin_constant_p): New variable.
25851 (fold_builtin_constant_p): Fold immediately also if
25852 force_folding_builtin_constant_p.
25854 2013-04-03 Richard Biener <rguenther@suse.de>
25856 PR tree-optimization/56812
25857 * tree-vect-data-refs.c (vect_slp_analyze_data_ref_dependence):
25858 DRs of the same interleaving chain are independent.
25860 2013-04-02 Jason Merrill <jason@redhat.com>
25862 * gdbinit.in (pbb): Use debug fn.
25864 2013-04-02 Lawrence Crowl <crowl@google.com>
25866 * sese.h (struct ivtype_map_elt_s): Remove unused.
25867 (extern debug_ivtype_map): Remove unused.
25868 (extern eq_ivtype_map_elts): Remove unused.
25869 * sese.c (debug_ivtype_map): Removed unused.
25870 (debug_ivtype_map_1): Removed unused.
25871 (debug_ivtype_elt): Remove unused.
25872 (eq_ivtype_map_elts): Remove unused.
25874 2013-04-02 Kai Tietz <ktietz@redhat.com>
25877 * config/i386/cygming.h (SUB_TARGET_RECORD_STUB): New sub-target macro.
25878 * config/i386/i386-protos.h (i386_pe_record_stub): Add new prototype.
25879 * config/i386/i386.c (legitimize_pe_coff_extern_decl): New static
25881 (legitimize_pe_coff_symbol): Likewise.
25882 (is_imported_p): New helper-function.
25883 (ix86_option_override_internal): Make MEDIUM_PIC the default code-model
25884 for Windows x64 targets.
25885 (ix86_expand_prologue): Optimize for pe-coff targets.
25886 (ix86_expand_split_stack_prologue): Adjust for pe-coff targets.
25887 (legitimate_pic_address_disp_p): Adjust for x64 pe-coff to support
25888 medium/large code-model.
25889 (legitimize_pic_address): Likewise.
25890 (legitimize_tls_address): Likewise.
25891 (ix86_expand_call): Likewise.
25892 (x86_output_mi_thunk): Likewise.
25893 (get_dllimport_decl): Add new beimport argument.
25894 (construct_plt_address): Don't assert for x64 pe-coff targets.
25895 * config/i386/i386.h (PIC_OFFSET_TABLE_REGNUM): Adjust for x64 pe-coff
25897 (SYMBOL_FLAG_STUBVAR): New macro.
25898 (SYMBOL_REF_STUBVAR_P): Likewise.
25899 * config/i386/winnt.c (stub_list): New structure.
25900 (stub_head): New local variable.
25901 (i386_pe_record_stub): New function.
25902 (i386_pe_file_end): Emit refptr-stubs.
25904 2013-04-02 Jakub Jelinek <jakub@redhat.com>
25906 PR rtl-optimization/56745
25907 * ifcvt.c (cond_exec_find_if_block): Don't try to optimize
25908 if then_bb has no successors and else_bb is EXIT_BLOCK_PTR.
25911 * tree-ssa-alias.c (stmt_kills_ref_p_1): If base != ref->base
25912 and both of them are MEM_REFs, just compare first argument for
25913 equality and attempt to deal even with differing offsets.
25916 * tree-cfg.c (verify_gimple_assign_single): Allow lhs
25917 of gimple_clobber_p to be MEM_REF.
25918 * gimplify.c (gimplify_modify_expr): Gimplify *to_p of
25919 an assignment from TREE_CLOBBER_P. Allow it to be MEM_REF
25920 after gimplification.
25921 * asan.c (get_mem_ref_of_assignment): Don't instrument
25922 gimple_clobber_p stmts.
25923 * tree-ssa-dse.c (dse_optimize_stmt): Allow DSE of
25924 gimple_clobber_p stmt if they have MEM_REF lhs and
25925 are dead because of another gimple_clobber_p stmt.
25926 * tree-ssa-live.c (clear_unused_block_pointer): Treat
25927 gimple_clobber_p stmts like debug stmts.
25928 (remove_unused_locals): Remove clobbers with MEM_REF lhs
25929 that refer to unused VAR_DECLs or uninitialized values.
25930 * tree-sra.c (sra_ipa_reset_debug_stmts): Also remove
25931 gimple_clobber_p stmts if they refer to removed parameters.
25932 (get_repl_default_def_ssa_name, sra_ipa_modify_expr): Fix up
25935 2013-04-02 Uros Bizjak <ubizjak@gmail.com>
25937 * config/i386/i386.md (*testqi_ext_3): Merge with *testqi_ext_3_rex64
25938 using SWI48 mode attribute.
25940 2013-04-02 Wei Mi <wmi@google.com>
25942 * config/i386/i386.c (ix86_rtx_costs): Set proper rtx cost for
25943 ashl<mode>3_mask, *<shift_insn><mode>3_mask and
25944 *<rotate_insn><mode>3_mask in i386.md.
25946 2013-04-02 Alexander Ivchenko <alexander.ivchenko@intel.com>
25948 * config.gcc (arm*-*-linux-*): Remove duplicate t-linux-android.
25950 2013-04-02 Richard Biener <rguenther@suse.de>
25952 PR tree-optimization/56778
25953 * tree-vect-data-refs.c (vect_analyze_data_ref_dependence):
25954 Runtime alias tests are not supported for gather loads.
25955 * tree-vect-loop-manip.c (vect_loop_versioning): Insert
25956 stmts referenced from SSA operands before updating SSA form.
25958 2013-04-02 Ian Caulfield <ian.caulfield@arm.com>
25959 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
25961 * config/arm/arm-arches.def (armv8-a): Default to cortex-a53.
25962 * config/arm/t-arm (MD_INCLUDES): Depend on cortex-a53.md.
25963 * config/arm/cortex-a53.md: New file.
25964 * config/arm/bpabi.h (BE8_LINK_SPEC): Handle cortex-a53.
25965 * config/arm/arm.md (generic_sched, generic_vfp): Handle cortex-a53.
25966 * config/arm/arm.c (arm_issue_rate): Likewise.
25967 * config/arm/arm-tune.md: Regenerate
25968 * config/arm/arm-tables.opt: Regenerate.
25969 * config/arm/arm-cores.def: Add cortex-a53.
25971 2013-04-02 Zhenqiang Chen <zhenqiang.chen@arm.com>
25973 * config/arm/uclinux-elf.h: Add %L to LINK_GCC_C_SEQUENCE_SPEC for
25976 2013-04-02 Sofiane Naci <sofiane.naci@arm.com>
25978 * config/aarch64/aarch64.md (*mov<mode>_aarch64): Add variants for
25979 scalar load/store operations using B/H registers.
25980 (*zero_extend<SHORT:mode><GPI:mode>2_aarch64): Likewise.
25982 2013-04-02 Sofiane Naci <sofiane.naci@arm.com>
25984 * config/aarch64/aarch64.md (*mov<mode>_aarch64): Add alternatives for
25986 * config/aarch64/aarch64.c
25987 (aarch64_simd_scalar_immediate_valid_for_move): New.
25988 * config/aarch64/aarch64-protos.h
25989 (aarch64_simd_scalar_immediate_valid_for_move): New.
25990 * config/aarch64/constraints.md (Dh, Dq): New.
25991 * config/aarch64/iterators.md (hq): New.
25993 2013-04-02 Eric Botcazou <ebotcazou@adacore.com>
25995 * reorg.c (get_branch_condition): Deal with conditional returns.
25996 (fill_simple_delay_slots): Remove dead code dealing with jumps.
25998 2013-04-01 Wei Mi <wmi@google.com>
26000 * config/i386/i386.md (*ashl<mode>3_mask): Rewrite as define_insn.
26001 Truncate operand 2 using %b asm operand modifier.
26002 (*<shift_insn><mode>3_mask): Ditto.
26003 (*<rotate_insn><mode>3_mask): Ditto.
26005 2013-04-01 Steven Bosscher <steven@gcc.gnu.org>
26007 PR middle-end/56798
26008 * cfgbuild.c (inside_basic_block_p): Restore check broken at r197234.
26010 2013-03-31 Kaz Kojima <kkojima@gcc.gnu.org>
26012 * config/sh/sh.md (casesi_worker_1): Use next_active_insn instead
26014 (casesi_worker_2, casesi_shift_media, casesi_load_media): Likewise.
26016 2013-03-30 Lawrence Crowl <crowl@google.com>
26018 * dse.c (clear_alias_sets): Remove never set.
26019 (disqualified_clear_alias_sets): Remove never set.
26020 (clear_alias_mode_pool): Remove never set.
26021 (dse_step0): Remove condition that is never true.
26022 (canon_address): Remove condition that is never true.
26023 (dse_step7): Remove condition that is never true.
26024 (rest_of_handle_dse): Remove condition that is never true.
26025 (rest_of_handle_dse::did_global): Remove never read from above.
26026 (dse_step2_spill): Remove never called from above.
26027 (dse_step5_spill): Remove never called from above.
26029 2013-03-30 Steven Bosscher <steven@gcc.gnu.org>
26031 * doc/md.texi (Standard Names) <casesi>: Update documentation for
26032 JUMP_TABLE_DATA changes.
26033 * doc/tm.texi.in (Dispatch Tables) <ASM_OUTPUT_CASE_LABEL>: Likewise.
26034 * doc/rtl.texi (Flags) <INSN_DELETED_P, SCHED_GROUP_P>: Likewise.
26035 (Insns) <jump_table_data>: New entry.
26036 * doc/tm.texi: Regenerate.
26038 * cfgrtl.c (fixup_reorder_chain): Do not emit barriers to BB_FOOTER.
26040 * postreload-gcse.c (bb_has_well_behaved_predecessors): Correct test
26041 for table jump at the end of a basic block using tablejump_p.
26042 * targhooks.c (default_invalid_within_doloop): Likewise.
26043 * config/rs6000/rs6000.c (TARGET_INVALID_WITHIN_DOLOOP): Remove
26044 target hook implementation that is identical to the default hook.
26045 (rs6000_invalid_within_doloop): Remove.
26047 * bb-reorder.c (fix_crossing_unconditional_branches): Remove set but
26048 unused variable from tablejump_p call.
26050 * rtl.def (JUMP_TABLE_DATA): New RTX_INSN object.
26051 * rtl.h (RTX_PREV, RTX_NEXT): Adjust for new JUMP_TABLE_DATA.
26052 (INSN_DELETED_P): Likewise.
26053 (emit_jump_table_data): New prototype.
26054 * gengtype.c (adjust_field_rtx_def): Handle JUMP_TABLE_DATA fields
26055 after 4th as unused.
26056 * print-rtl.c (print_rtl): Handle JUMP_TABLE_DATA.
26057 * sched-vis.c (print_insn): Likewise.
26058 * emit-rtl.c (active_insn_p): Consider JUMP_TABLE_DATA an active
26059 insn for compatibility with back ends that use next_active_insn to
26060 identify jump table data.
26061 (set_insn_deleted): Remove no longer useful JUMP_TABLE_DATA_P check.
26062 (remove_insn): Likewise.
26063 (emit_insn): Do not accept JUMP_TABLE_DATA objects in insn chains
26065 (emit_debug_insn, emit_jump_insn, emit_call_insn, emit_label): Idem.
26066 (emit_jump_table_data): New function.
26068 * cfgbuild.c (inside_basic_block_p): A JUMP_INSN is always inside a
26069 basic block, a JUMP_TABLE_DATA never is.
26070 (control_flow_insn_p): JUMP_TABLE_DATA is not a control flow insn.
26071 * cfgrtl.c (duplicate_insn_chain): Split handling of JUMP_TABLE_DATA
26072 off from code handling real insns.
26073 * final.c (get_attr_length_1): Simplify for JUMP_INSNs.
26074 * function.c (instantiate_virtual_regs): Remove JUMP_TABLE_DATA_P
26075 test, now redundant because JUMP_TABLE_DATA is not an INSN_P insn.
26076 * gcse.c (insert_insn_end_basic_block): Likewise, JUMP_TABLE_DATA_P
26077 is not a NONDEBUG_INSN_P.
26078 * ira-costs.c (scan_one_insn): Likewise.
26079 * jump.c (mark_all_labels): Likewise.
26080 (mark_jump_label_1): Likewise.
26081 * lra-eliminations.c (eliminate_regs_in_insn): Likewise.
26082 * lra.c (get_insn_freq): Expect all insns reaching here to be in
26084 (check_rtl): Remove JUMP_TABLE_DATA_P test, not a NONDEBUG_INSN_P insn.
26085 * predict.c (expensive_function_p): Use FOR_BB_INSNS.
26086 * reload1.c (calculate_needs_all_insns): Call set_label_offsets for
26087 JUMP_TABLE_DATA_P insns.
26088 (calculate_elim_costs_all_insns): Likewise.
26089 (set_label_offsets): Recurse on the PATTERN of JUMP_TABLE_DATA insns.
26090 (elimination_costs_in_insn): Remove redundant JUMP_TABLE_DATA_P test.
26091 (delete_output_reload): Code style fixups.
26092 * reorg.c (dbr_schedule): Move JUMP_TABLE_DATA_P up to avoid setting
26093 insn flags on this non-insn.
26094 * sched-rgn.c (add_branch_dependences): Treat JUMP_TABLE_DATA insns
26095 as scheduling barriers, for pre-change compatibility.
26096 * stmt.c (emit_case_dispatch_table): Emit jump table data not as
26097 JUMP_INSN objects but instead as JUMP_TABLE_DATA objects.
26099 * config/alpha/alpha.c (alpha_does_function_need_gp): Remove
26100 redundant JUMP_TABLE_DATA_P test.
26101 * config/arm/arm.c (thumb_far_jump_used_p): Likewise.
26102 * config/frv/frv.c (frv_function_contains_far_jump): Likewise.
26103 (frv_for_each_packet): Likewise.
26104 * config/i386/i386.c (min_insn_size): Likewise.
26105 (ix86_avoid_jump_mispredicts): Likewise.
26106 * config/m32r/m32r.c (m32r_is_insn): Likewise.
26107 * config/mep/mep.c (mep_reorg_erepeat): Likewise.
26108 * config/mips/mips.c (USEFUL_INSN_P): Likewise.
26109 (mips16_insn_length): Robustify.
26110 (mips_has_long_branch_p): Remove redundant JUMP_TABLE_DATA_P test.
26111 (mips16_split_long_branches): Likewise.
26112 * config/pa/pa.c (pa_combine_instructions): Likewise.
26113 * config/rs6000/rs6000.c (get_next_active_insn): Treat
26114 JUMP_TABLE_DATA objects as active insns, like in active_insn_p.
26115 * config/s390/s390.c (s390_chunkify_start): Treat JUMP_TABLE_DATA
26116 as contributing to pool range lengths.
26117 * config/sh/sh.c (find_barrier): Restore check for ADDR_DIFF_VEC.
26118 Remove redundant JUMP_TABLE_DATA_P test.
26119 (sh_loop_align): Likewise.
26120 (split_branches): Likewise.
26121 (sh_insn_length_adjustment): Likewise.
26122 * config/spu/spu.c (get_branch_target): Likewise.
26124 2013-03-29 Jan Hubicka <jh@suse.cz>
26126 * lto-cgraph.c (output_profile_summary, input_profile_summary): Use
26127 gcov streaming; stream hot bb threshold to ltrans.
26128 * predict.c (get_hot_bb_threshold): Break out from ....
26129 (maybe_hot_count_p): ... here.
26130 (set_hot_bb_threshold): New function.
26131 * lto-section-in.c (lto_section_name): Add profile.
26132 * profile.h (get_hot_bb_threshold, set_hot_bb_threshold): Declare.
26133 * ipa.c: Include hash-table.h, tree-inline.h, profile.h, lto-streamer.h
26134 and data-streamer.h
26135 (histogram_entry): New structure.
26136 (histogram, histogram_pool): New global vars.
26137 (histogram_hash): New structure.
26138 (histogram_hash::hash): New method.
26139 (histogram_hash::equal): Likewise.
26140 (account_time_size): New function.
26141 (cmp_counts): New function.
26142 (dump_histogram): New function.
26143 (ipa_profile_generate_summary): New function.
26144 (ipa_profile_write_summary): New function.
26145 (ipa_profile_read_summary): New function.
26146 (ipa_profile): Decide on threshold.
26147 (pass_ipa_profile): Add ipa_profile_write_summary and
26148 ipa_profile_read_summary.
26149 * Makefile.in (ipa.o): Update dependencies.
26150 * lto-streamer.h (LTO_section_ipa_profile): New section.
26152 2013-03-29 Gabriel Dos Reis <gdr@integrable-solutions.net>
26154 * tree.h (VAR_P): New.
26156 2013-03-29 Paolo Carlini <paolo.carlini@oracle.com>
26159 * doc/invoke.texi ([-fwhole-program]): Fix typo.
26161 2013-03-29 Steven Bosscher <steven@gcc.gnu.org>
26163 * cfgbuild.c (inside_basic_block_p): Use JUMP_TABLE_DATA_P in lieu
26164 of tests for JUMP_P and a ADDR_DIFF_VEC or ADDR_VEC pattern.
26165 (control_flow_insn_p): Likewise.
26166 * cfgrtl.c (duplicate_insn_chain): Likewise.
26167 * final.c (get_attr_length_1): Likewise.
26168 (shorten_branches): Likewise.
26169 (final_scan_insn): Likewise.
26170 * function.c (instantiate_virtual_regs): Likewise.
26171 * gcse.c (insert_insn_end_basic_block): Likewise.
26172 * ira-costs.c (scan_one_insn): Likewise.
26173 * lra-eliminations.c (eliminate_regs_in_insn): Likewise.
26174 * lra.c (check_rtl): Likewise.
26175 * reload1.c (elimination_costs_in_insn): Likewise.
26176 * reorg.c (follow_jumps): Likewise.
26178 * config/arm/arm.c (is_jump_table): Use JUMP_TABLE_DATA_P in lieu
26179 of tests for JUMP_P and a ADDR_DIFF_VEC or ADDR_VEC pattern.
26180 (thumb_far_jump_used_p): Likewise.
26181 * config/bfin/bfin.c (workaround_rts_anomaly): Likewise.
26182 (workaround_speculation): Likewise.
26183 (add_sched_insns_for_speculation): Likewise.
26184 * config/c6x/c6x.c (reorg_emit_nops): Likewise.
26185 * config/frv/frv.c (frv_function_contains_far_jump): Likewise.
26186 (frv_for_each_packet): Likewise.
26187 * config/i386/i386.c (ix86_avoid_jump_mispredicts): Likewise.
26188 * config/ia64/ia64.c (emit_all_insn_group_barriers): Likewise.
26189 (final_emit_insn_group_barriers): Likewise.
26190 * config/m32r/m32r.c (m32r_is_insn): Likewise.
26191 * config/mips/mips.c (USEFUL_INSN_P): Likewise.
26192 (mips16_insn_length): Likewise.
26193 * config/pa/pa.c (pa_reorg): Likewise.
26194 (pa_combine_instructions): Likewise.
26195 * config/rs6000/rs6000.c (rs6000_invalid_within_doloop): Likewise.
26196 * config/sh/sh.c (fixup_addr_diff_vecs): Likewise.
26197 (sh_reorg): Likewise.
26198 (split_branches): Likewise.
26199 * config/spu/spu.c (get_branch_target): Likewise.
26201 * config/s390/s390.c (s390_chunkify_start): Simplify logic using
26204 2013-03-29 Kirill Yukhin <kirill.yukhin@intel.com>
26206 * config/i386/avx2intrin.h (_mm256_broadcastsi128_si256):
26207 Fix declaration name.
26209 2013-03-28 Lawrence Crowl <crowl@google.com>
26211 * graphds.h (struct graph.indicies): Remove unused.
26212 * graphite-poly.h (struct graph.original_pddrs): Remove unused.
26213 (SCOP_ORIGINAL_PDDRS): Remove unused.
26214 * sese.h (extern insert_loop_close_phis): Removed unused.
26215 (extern insert_guard_phis): Removed unused.
26216 (extern ivtype_map_elt_info): Removed unused.
26217 (new_ivtype_map_elt): Removed unused.
26218 * sese.c (ivtype_map_elt_info): Removed unused.
26220 2013-03-28 Lawrence Crowl <crowl@google.com>
26222 * Makefile.in: Add several missing include dependences.
26224 (test-dump.o): New. This object is not added to any executable,
26225 but is present for ad-hoc testing.
26227 (debug (const bitmap_head_def &)): New.
26228 (debug (const bitmap_head_def *)): New.
26230 (extern debug (const bitmap_head_def &)): New.
26231 (extern debug (const bitmap_head_def *)): New.
26233 (debug (edge_def &)): New.
26234 (debug (edge_def *)): New.
26236 (debug (basic_block_def &)): New.
26237 (debug (basic_block_def *)): New.
26239 (dump_node (const_tree, int, FILE *)): Correct source file.
26241 (debug (die_struct &)): New.
26242 (debug (die_struct *)): New.
26244 (extern debug (die_struct &)): New.
26245 (extern debug (die_struct *)): New.
26246 * gimple-pretty-print.c
26247 (debug (gimple_statement_d &)): New.
26248 (debug (gimple_statement_d *)): New.
26249 * gimple-pretty-print.h
26250 (extern debug (gimple_statement_d &)): New.
26251 (extern debug (gimple_statement_d *)): New.
26253 (debug (ira_allocno_copy &)): New.
26254 (debug (ira_allocno_copy *)): New.
26255 (debug (ira_allocno &)): New.
26256 (debug (ira_allocno *)): New.
26258 (extern debug (ira_allocno_copy &)): New.
26259 (extern debug (ira_allocno_copy *)): New.
26260 (extern debug (ira_allocno &)): New.
26261 (extern debug (ira_allocno *)): New.
26263 (debug (live_range &)): New.
26264 (debug (live_range *)): New.
26266 (debug (lra_live_range &)): New.
26267 (debug (lra_live_range *)): New.
26269 (debug (lra_live_range &)): New.
26270 (debug (lra_live_range *)): New.
26272 (debug (omega_pb_d &)): New.
26273 (debug (omega_pb_d *)): New.
26275 (extern debug (omega_pb_d &)): New.
26276 (extern debug (omega_pb_d *)): New.
26278 (debug (const rtx_def &)): New.
26279 (debug (const rtx_def *)): New.
26281 (debug_tree (tree): Move within file.
26282 (debug_raw (const tree_node &)): New.
26283 (debug_raw (const tree_node *)): New.
26284 (dump_tree_via_hooks (const tree_node *, int)): New.
26285 (debug (const tree_node &)): New.
26286 (debug (const tree_node *)): New.
26287 (debug_verbose (const tree_node &)): New.
26288 (debug_verbose (const tree_node *)): New.
26289 (debug_head (const tree_node &)): New.
26290 (debug_head (const tree_node *)): New.
26291 (debug_body (const tree_node &)): New.
26292 (debug_body (const tree_node *)): New.
26293 (debug_vec_tree (tree): Move and reimplement in terms of dump.
26294 (debug (vec<tree, va_gc> &)): New.
26295 (debug (vec<tree, va_gc> *)): New.
26297 (extern debug (const rtx_def &)): New.
26298 (extern debug (const rtx_def *)): New.
26300 (debug_raw (simple_bitmap_def &)): New.
26301 (debug_raw (simple_bitmap_def *)): New.
26302 (debug (simple_bitmap_def &)): New.
26303 (debug (simple_bitmap_def *)): New.
26305 (extern debug (simple_bitmap_def &)): New.
26306 (extern debug (simple_bitmap_def *)): New.
26307 (extern debug_raw (simple_bitmap_def &)): New.
26308 (extern debug_raw (simple_bitmap_def *)): New.
26310 (debug (vinsn_def &)): New.
26311 (debug (vinsn_def *)): New.
26312 (debug_verbose (vinsn_def &)): New.
26313 (debug_verbose (vinsn_def *)): New.
26314 (debug (expr_def &)): New.
26315 (debug (expr_def *)): New.
26316 (debug_verbose (expr_def &)): New.
26317 (debug_verbose (expr_def *)): New.
26318 (debug (vec<rtx> &)): New.
26319 (debug (vec<rtx> *)): New.
26321 (extern debug (vinsn_def &)): New.
26322 (extern debug (vinsn_def *)): New.
26323 (extern debug_verbose (vinsn_def &)): New.
26324 (extern debug_verbose (vinsn_def *)): New.
26325 (extern debug (expr_def &)): New.
26326 (extern debug (expr_def *)): New.
26327 (extern debug_verbose (expr_def &)): New.
26328 (extern debug_verbose (expr_def *)): New.
26329 (extern debug (vec<rtx> &)): New.
26330 (extern debug (vec<rtx> *)): New.
26332 (_list_iter_cond_expr): Make inline instead of static.
26334 (debug (sreal &)): New.
26335 (debug (sreal *)): New.
26337 (extern debug (sreal &)): New.
26338 (extern debug (sreal *)): New.
26340 (extern debug_raw (const tree_node &)): New.
26341 (extern debug_raw (const tree_node *)): New.
26342 (extern debug (const tree_node &)): New.
26343 (extern debug (const tree_node *)): New.
26344 (extern debug_verbose (const tree_node &)): New.
26345 (extern debug_verbose (const tree_node *)): New.
26346 (extern debug_head (const tree_node &)): New.
26347 (extern debug_head (const tree_node *)): New.
26348 (extern debug_body (const tree_node &)): New.
26349 (extern debug_body (const tree_node *)): New.
26350 (extern debug (vec<tree, va_gc> &)): New.
26351 (extern debug (vec<tree, va_gc> *)): New.
26353 (debug (struct loop &)): New.
26354 (debug (struct loop *)): New.
26355 (debug_verbose (struct loop &)): New.
26356 (debug_verbose (struct loop *)): New.
26357 * tree-dump.c: Add header dependence.
26359 (extern debug (struct loop &)): New.
26360 (extern debug (struct loop *)): New.
26361 (extern debug_verbose (struct loop &)): New.
26362 (extern debug_verbose (struct loop *)): New.
26364 (debug (data_reference &)): New.
26365 (debug (data_reference *)): New.
26366 (debug (vec<data_reference_p> &)): New.
26367 (debug (vec<data_reference_p> *)): New.
26368 (debug (vec<ddr_p> &)): New.
26369 (debug (vec<ddr_p> *)): New.
26371 (extern debug (data_reference &)): New.
26372 (extern debug (data_reference *)): New.
26373 (extern debug (vec<data_reference_p> &)): New.
26374 (extern debug (vec<data_reference_p> *)): New.
26375 (extern debug (vec<ddr_p> &)): New.
26376 (extern debug (vec<ddr_p> *)): New.
26378 (debug (pt_solution &)): New.
26379 (debug (pt_solution *)): New.
26381 (extern debug (pt_solution &)): New.
26382 (extern debug (pt_solution *)): New.
26384 (debug (_var_map &)): New.
26385 (debug (_var_map *)): New.
26386 (debug (tree_live_info_d &)): New.
26387 (debug (tree_live_info_d *)): New.
26389 (extern debug (_var_map &)): New.
26390 (extern debug (_var_map *)): New.
26391 (extern debug (tree_live_info_d &)): New.
26392 (extern debug (tree_live_info_d *)): New.
26394 2013-03-28 Jan Hubicka <jh@suse.cz>
26396 * lto-cgraph.c (merge_profile_summaries): Fix overflows.
26398 2013-03-28 Ian Bolton <ian.bolton@arm.com>
26400 * config/aarch64/aarch64.md (aarch64_can_eliminate): Keep frame
26401 record only when desired or required.
26403 2013-03-28 Uros Bizjak <ubizjak@gmail.com>
26405 * config/i386/i386.md (*vec_extract2vdi_1): Merge with
26406 *vec_extractv2di_1_rex64. Use x64 isa attribute.
26408 2013-03-28 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
26410 * config/aarch64/aarch64.md (*and<mode>3_compare0): New pattern.
26411 (*andsi3_compare0_uxtw): New pattern.
26412 (*and_<SHIFT:optab><mode>3_compare0): New pattern.
26413 (*and_<SHIFT:optab>si3_compare0_uxtw): New pattern.
26415 2013-03-28 Jan Hubicka <jh@suse.cz>
26417 * data-streamer-in.c (streamer_read_gcov_count): New function.
26418 * gimple-streamer-out.c: Include value-prof.h.
26419 (output_gimple_stmt): Output histogram.
26420 (output_bb): Use streamer_write_gcov_count.
26421 * value-prof.c: Include data-streamer.h
26422 (dump_histogram_value): Add HIST_TYPE_MAX.
26423 (stream_out_histogram_value): New function.
26424 (stream_in_histogram_value): New function.
26425 * value-prof.h (enum hist_type): Add HIST_TYPE_MAX.
26426 (stream_out_histogram_value, stream_in_histogram_value): Declare.
26427 * data-streamer-out.c (streamer_write_gcov_count): New function.
26428 (streamer_write_gcov_count_stream): New function.
26429 * lto-cgraph.c (lto_output_edge): Update counter streaming.
26430 (lto_output_node): Likewise.
26431 (input_node, input_edge): Likewise.
26432 * lto-streamer-out.c (output_cfg): Update streaming.
26433 * lto-streamer-in.c (input_cfg): Likewise.
26434 * data-streamer.h (streamer_write_gcov_count,
26435 streamer_write_gcov_count_stream, streamer_read_gcov_count): Declare.
26436 * gimple-streamer-in.c: Include value-prof.h
26437 (input_gimple_stmt): Input histograms.
26438 (input_bb): Update profile streaming.
26440 2013-03-28 Kenneth Zadeck <zadeck@naturalbridge.com>
26442 * genmodes.c (emit_max_int): New function.
26443 (emit_insn_modes_h): Added call to emit_max_function.
26444 * doc/rtl.texi (MAX_BITSIZE_MODE_ANY_INT, MAX_BITSIZE_MODE_ANY_MODE):
26446 * machmode.def: Fixed comment.
26448 2013-03-28 Kenneth Zadeck <zadeck@naturalbridge.com>
26450 * combine.c (try_combine): Removed useless assert.
26451 * cselib.c (rtx_equal_for_cselib_1): Removed unnecessary parens.
26453 2013-03-28 Marek Polacek <polacek@redhat.com>
26454 Richard Biener <rguenther@suse.de>
26456 PR tree-optimization/56695
26457 * tree-vect-stmts.c (vectorizable_condition): Unconditionally
26458 build signed result of a vector comparison.
26459 * tree-cfg.c (verify_gimple_comparison): Check that a result
26460 of a vector comparison has signed type.
26462 2013-03-28 Richard Biener <rguenther@suse.de>
26464 PR tree-optimization/37021
26465 * tree-vect-slp.c (vect_build_slp_tree): When not unrolling
26466 do not restrict gaps between groups.
26467 * tree-vect-stmts.c (vectorizable_load): Properly account for
26468 a gap between groups.
26470 2013-03-28 Eric Botcazou <ebotcazou@adacore.com>
26472 * toplev.c (process_options): Do not disable -fomit-frame-pointer on a
26473 general basis if unwind info is requested and ACCUMULATE_OUTGOING_ARGS
26476 2013-03-27 Gerald Pfeifer <gerald@pfeifer.com>
26478 * doc/invoke.texi (AVR Options): Tweak link for AVR-LibC user manual.
26479 * doc/extend.texi (Named Address Spaces): Ditto.
26480 (Variable Attributes): Ditto.
26482 2013-03-27 Kai Tietz <ktietz@redhat.com>
26484 * config.build: Add support for cygwin x64 target.
26485 * config.gcc: Likewise.
26486 * config.host: Likewise.
26487 * configure.ac: Likewise
26488 * configure: Regenerated.
26490 2013-03-27 Kai Tietz <ktietz@redhat.com>
26492 * config/i386/cygwin-stdint.h: Add support for cygwin x64 target.
26493 * config/i386/t-cygwin-w64: New file.
26494 * config/i386/cygwin-w64.h: New file.
26495 * config/i386/cygwin.h (EXTRA_OS_CPP_BUILTINS): Extend
26496 and add support for x64-cygwin target.
26497 (CPP_SPEC): Likewise.
26498 (CXX_WRAP_SPEC_LIST): Undefine before define.
26499 (LIBGCJ_SONAME): Use 15 as version.
26501 2013-03-27 Richard Biener <rguenther@suse.de>
26503 PR tree-optimization/56716
26504 * tree-ssa-structalias.c (perform_var_substitution): Adjust
26505 dumping for ref nodes.
26507 2013-03-27 Martin Jambor <mjambor@suse.cz>
26509 PR tree-optimization/55334
26510 * ipa-cp.c (initialize_node_lattices): Allow IPA-CP through and to
26511 restricted pointers to arrays.
26513 2013-03-27 Gabriel Dos Reis <gdr@integrable-solutions.net>
26515 * Makefile.in (.SUFFIXES): Add .cc.
26516 (.c.o): Apply same recipe for implicit rule .cc.o.
26518 2013-03-27 Richard Biener <rguenther@suse.de>
26520 PR tree-optimization/37021
26521 * tree-vect-data-refs.c (vect_check_strided_load): Allow
26522 REALPART/IMAGPART_EXPRs around the supported refs.
26523 * tree-ssa-structalias.c (find_func_aliases): Assume that
26524 floating-point values are not used to transfer pointers.
26526 2013-03-27 Alexander Ivchenko <alexander.ivchenko@intel.com>
26528 * target.def (TARGET_HAS_IFUNC_P): New target hook.
26529 * doc/tm.texi.in (TARGET_HAS_IFUNC_P): New.
26530 * doc/tm.texi: Regenerate.
26531 * targhooks.h (default_has_ifunc_p): New.
26532 * targhooks.c (default_has_ifunc_p): Ditto.
26533 * config/linux-protos.h: New file.
26534 * config/linux-android.h (TARGET_HAS_IFUNC_P): Using version of this
26535 hook for linux which disables support of indirect functions in android.
26536 * config/linux-android.c: New file.
26537 * config/t-linux-android.c: Ditto.
26538 * config.gcc: Added new object file linux-android.o.
26539 * config/i386/i386.c (ix86_get_function_versions_dispatcher):
26540 Using TARGET_HAS_IFUNC hook instead of HAVE_GNU_INDIRECT_FUNCTION.
26541 * varasm.c (do_assemble_alias): Likewise.
26542 * configure.ac: Define HAVE_GNU_INDIRECT_FUNCTION as zero if the target
26543 doesn't support indirect functions.
26544 * configure: Regenerate.
26546 2013-03-27 Bin Cheng <bin.cheng@arm.com>
26549 * config/arm/arm.c (thumb1_rtx_costs, thumb1_size_rtx_costs): Fix
26550 rtx costs for SET/ASHIFT/ASHIFTRT/LSHIFTRT/ROTATERT patterns with
26553 2013-03-27 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
26555 * config/s390/s390.h (TARGET_FLT_EVAL_METHOD): Define.
26557 2013-03-27 Terry Guo <terry.guo@arm.com>
26559 * config/arm/arm-cores.def: Added core cortex-r7.
26560 * config/arm/arm-tune.md: Regenerated.
26561 * config/arm/arm-tables.opt: Regenerated.
26562 * doc/invoke.texi: Added entry for core cortex-r7.
26564 2013-03-27 Walter Lee <walt@tilera.com>
26566 * config/tilegx/tilegx.c (tilegx_expand_prologue): Avoid
26567 double-decrement of next_scratch_regno.
26569 2013-03-27 Walter Lee <walt@tilera.com>
26571 * config/tilegx/tilegx.md (insn_v1mulu): Fix predicates on
26573 (insn_v1mulus): Ditto.
26574 (insn_v2muls): Ditto.
26576 2013-03-27 Walter Lee <walt@tilera.com>
26578 * config/tilegx/tilegx.h (ASM_OUTPUT_ADDR_VEC_ELT): Delete extra tab.
26579 (ASM_OUTPUT_ADDR_DIFF_ELT): Ditto.
26581 2013-03-27 Walter Lee <walt@tilera.com>
26583 * config/tilegx/tilegx.md (*sibcall_insn): Fix type atribute for jr.
26584 (*sibcall_value): Ditto.
26586 2013-03-27 Walter Lee <walt@tilera.com>
26588 * config/tilegx/tilegx.md (insn_mnz_<mode>): Replaced by ...
26589 (insn_mnz_v8qi): ... this ...
26590 (insn_mnz_v4hi): ... and this. Replace (const_int 0) with the
26592 (insn_v<n>mnz): Replaced by ...
26593 (insn_v1mnz): ... this ...
26594 (insn_v2mnz): ... and this. Replace (const_int 0) with the vector
26596 (insn_mz_<mode>): Replaced by ...
26597 (insn_mz_v8qi): ... this ...
26598 (insn_mz_v4hi): ... and this. Replace (const_int 0) with the
26600 (insn_v<n>mz): Replaced by ...
26601 (insn_v1mz): ... this ...
26602 (insn_v2mz): ... and this. Replace (const_int 0) with the vector
26605 2013-03-26 Eric Botcazou <ebotcazou@adacore.com>
26607 * doc/invoke.texi (SPARC options): Remove -mlittle-endian.
26609 2013-03-26 Roland McGrath <mcgrathr@google.com>
26611 * config/arm/arm.c (arm_print_operand: case 'w'): Use fputs rather
26612 than fprintf with a non-constant, non-format string.
26614 2013-03-26 Uros Bizjak <ubizjak@gmail.com>
26616 * config/i386/i386.md (*cmpqi_ext_1): Merge with *cmpqi_ext_1_rex64
26617 using nox64 isa attribute. Use nonimmediate_x86nomem_operand as
26618 operand 0 predicate.
26619 (*cmpqi_ext_3): Merge with *cmpqi_ext_3_rex64 using nox64 isa
26620 attribute. Use general_x64nomem_operand as operand 1 predicate.
26621 (*movqi_extv_1): Merge with *movqi_extv_1_rex64 using nox64 isa
26622 attribute. Use nonimmediate_x64nomem_operand as operand 0 predicate.
26623 (*movqi_extzv_2): Merge with *movqi_extzv_2_rex64 using nox64 isa
26624 attribute. Use nonimmediate_x64nomem_operand as operand 0 predicate.
26625 (mov<mode>_insv_1): Remove expander. Merge insn with
26626 movsi_insv_1 using SWI48 mode iterator and nox64 isa attribute.
26627 Use general_x64nomem_operand as operand 1 predicate.
26628 (addqi_ext_1): Merge with *addqi_ext_1_rex64 using nox64 isa attribute.
26629 (*testqi_ext_1): Merge with *testqi_ext_1_rex64 using nox64 isa
26630 attribute. Use nonimmediate_x64nomem_operand as operand 1 predicate.
26631 (*andqi_ext_1): Merge with *andqi_ext_1_rex64 using nox64 isa
26632 attribute. Use nonimmediate_x64nomem_operand as operand 2 predicate.
26633 (*<code>qi_ext_1): Merge with *<code>qi_ext_1_rex64 using nox64 isa
26634 attribute. Use nonimmediate_x64nomem_operand as operand 1 predicate.
26635 (*xorqi_cc_ext_1): Merge with *xorqi_cc_ext_1_rex64 using nox64
26636 isa attribute. Use general_x64nomem_operand as operand 2 predicate.
26637 * config/i386/predicates.md (nonimmediate_x64nomem_operand): New.
26638 (general_x64nomem_operand): Ditto.
26640 2013-03-26 Sebastian Huber <sebastian.huber@embedded-brains.de>
26642 * config/rtems.opt: Add -pthread option.
26644 2013-03-26 Richard Biener <rguenther@suse.de>
26646 * alias.c (find_base_term): Avoid redundant and not used recursion.
26647 (base_alias_check): Get the initial base term from the caller.
26648 (true_dependence_1): Compute and pass base terms to base_alias_check.
26649 (write_dependence_p): Likewise.
26650 (may_alias_p): Likewise.
26652 2013-03-26 Sofiane Naci <sofiane.naci@arm.com>
26654 * config/aarch64/aarch64.c (aarch64_classify_address): Support
26655 PC-relative load in SI modes and above only.
26657 2013-03-26 Xinyu Qi <xyqi@marvell.com>
26659 * config/arm/arm.h (FIRST_IWMMXT_GR_REGNUM): Add comment.
26660 * config/arm/iwmmxt.md (WCGR0): Update.
26661 (WCGR1, WCGR2, WCGR3): Likewise.
26663 2013-03-26 Uros Bizjak <ubizjak@gmail.com>
26665 * config/i386/i386.md (*movdfcc_1): Merge with *movdfcc_1_rex64.
26666 Use x64 and nox64 isa attributes.
26668 2013-03-26 Richard Biener <rguenther@suse.de>
26670 * emit-rtl.c (set_mem_attributes_minus_bitpos): Remove
26671 alignment computations and rely on get_object_alignment_1
26672 for the !TYPE_P case.
26673 Commonize DECL/COMPONENT_REF handling in the ARRAY_REF path.
26675 2013-03-26 Walter Lee <walt@tilera.com>
26677 * config/tilegx/tilegx.h (PROFILE_BEFORE_PROLOGUE): Define.
26678 * config/tilegx/tilepro.h (PROFILE_BEFORE_PROLOGUE): Define.
26680 2013-03-25 Jeff Law <law@redhat.com>
26682 * tree-ssa-dom.c (record_equivalences_from_incoming_edge): Add missing
26683 check for INTEGRAL_TYPE_P that was missing due to checking in
26684 wrong version of prior patch.
26686 2013-03-25 Walter Lee <walt@tilera.com>
26688 * config/tilegx/tilegx-builtins.h (enum tilegx_builtin): Add
26689 TILEGX_INSN_SHUFFLEBYTES1.
26690 * config/tilegx/tilegx.c (tilegx_builtin_info): Add entry for
26692 (tilegx_builtins): Ditto.
26693 * config/tilegx/tilegx.md (insn_shufflebytes1): New pattern.
26695 2013-03-25 Walter Lee <walt@tilera.com>
26697 * config/tilegx/tilegx.md (floatsisf2): New pattern.
26698 (floatunssisf2): New pattern.
26699 (floatsidf2): New pattern.
26700 (floatunssidf2): New pattern.
26702 2013-03-25 Walter Lee <walt@tilera.com>
26704 * config/tilegx/tilegx.c (expand_set_cint64_one_inst): Inline
26705 tests for constraint J, K, N, P.
26707 2013-03-25 Walter Lee <walt@tilera.com>
26709 * config/tilegx/tilegx.c (tilegx_asm_preferred_eh_data_format):
26710 Use indirect/pcrel encoding.
26711 * config/tilepro/tilepro.c (tilepro_asm_preferred_eh_data_format):
26714 2013-03-25 Steve Ellcey <sellcey@mips.com>
26716 * config/mips/mmips-cpus.def (74kc, 74kf2_1, 74kf, 74kf, 74kf1_1,
26717 74kfx, 74kx, 74kf3_2): Add PTF_AVOID_IMADD.
26718 * config/mips/mips.c (mips_option_override): Set IMADD default.
26719 * config/mips/mips.h (PTF_AVOID_IMADD): New.
26720 (ISA_HAS_MADD_MSUB): Remove MIPS16 check.
26721 (GENERATE_MADD_MSUB): Remove TUNE_74K check, add MIPS16 check.
26722 * config/mips/mips.md (mimadd): New flag for integer madd/msub.
26723 * doc/invoke.texi (-mimadd/-mno-imadd): New.
26725 2013-03-25 Jeff Law <law@redhat.com>
26727 * tree-ssa-dom.c (record_equivalences_from_incoming_edge): Rework
26728 slightly to avoid creating and folding useless trees. Simplify
26729 slightly by restricting to INTEGER_CSTs and using int_fits_type_p.
26731 2013-03-25 Uros Bizjak <ubizjak@gmail.com>
26733 * config/i386/i386.md (*zero_extendsidi2): Merge with
26734 *zero_extendsidi2_rex64. Use x64 and nox64 isa attributes.
26735 * config/i386/predicates.md (x86_64_zext_operand): Rename from
26736 x86_64_zext_general_operand. Use nonimmediate_operand on 32bit
26737 targets. Clarify comment.
26739 2013-03-25 Martin Jambor <mjambor@suse.cz>
26741 * ipa-prop.c (ipa_write_jump_function): Stream simple and aritmetic
26742 pass-through jump functions differently.
26743 (ipa_read_jump_function): Likewise. Also use setter functions to set
26746 2013-03-25 Martin Jambor <mjambor@suse.cz>
26748 * ipa-cp.c (ipa_get_indirect_edge_target): Renamed to
26749 ipa_get_indirect_edge_target_1, added parameter agg_reps and ability to
26751 (ipa_get_indirect_edge_target): New function.
26752 (devirtualization_time_bonus): New parameter known_aggs, pass it to
26753 ipa_get_indirect_edge_target. Update all callers.
26754 (ipcp_discover_new_direct_edges): New parameter aggvals. Pass it to
26755 ipa_get_indirect_edge_target_1 instead of calling
26756 ipa_get_indirect_edge_target.
26757 (create_specialized_node): Pass aggvlas to
26758 ipcp_discover_new_direct_edges.
26760 2013-03-25 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
26762 * config/arm/arm.md (f_sels, f_seld): New types.
26763 (*cmov<mode>): New pattern.
26764 * config/arm/predicates.md (arm_vsel_comparison_operator): New
26767 2013-03-25 Kai Tietz <ktietz@redhat.com>
26769 * config/i386/xm-mingw32.h (__USE_MINGW_ANSI_STDIO): Enable
26770 POSIX-printf for mingw-hosted builds.
26772 2013-03-25 Richard Biener <rguenther@suse.de>
26774 PR middle-end/56694
26775 * tree-eh.c (lower_eh_must_not_throw): Strip BLOCKs from the
26776 must-not-throw stmt location.
26778 2013-03-25 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
26780 * config/arm/arm.c (arm_emit_load_exclusive): Add acq parameter.
26781 Emit load-acquire versions when acq is true.
26782 (arm_emit_store_exclusive): Add rel parameter.
26783 Emit store-release versions when rel is true.
26784 (arm_split_compare_and_swap): Use acquire-release instructions
26786 of barriers when appropriate.
26787 (arm_split_atomic_op): Likewise.
26788 * config/arm/arm.h (TARGET_HAVE_LDACQ): New macro.
26789 * config/arm/unspecs.md (VUNSPEC_LAX): New unspec.
26790 (VUNSPEC_SLX): Likewise.
26791 (VUNSPEC_LDA): Likewise.
26792 (VUNSPEC_STL): Likewise.
26793 * config/arm/sync.md (atomic_load<mode>): New pattern.
26794 (atomic_store<mode>): Likewise.
26795 (arm_load_acquire_exclusive<mode>): Likewise.
26796 (arm_load_acquire_exclusivesi): Likewise.
26797 (arm_load_acquire_exclusivedi): Likewise.
26798 (arm_store_release_exclusive<mode>): Likewise.
26800 2013-03-25 Catherine Moore <clm@codesourcery.com>
26802 * config/mips/constraints.md (u, Udb7 Uead, Uean, Uesp, Uib3,
26803 Uuw6, Usb4, ZS, ZT, ZU, ZV, ZW): New constraints.
26804 * config/mip/predicates.md (lwsp_swsp_operand,
26805 lw16_sw16_operand, lhu16_sh16_operand, lbu16_operand,
26806 sb16_operand, db4_operand, db7_operand, ib3_operand,
26807 sb4_operand, ub4_operand, uh4_operand, uw4_operand,
26808 uw5_operand, uw6_operand, addiur2_operand, addiusp_operand,
26809 andi16_operand): New predicates.
26810 * config/mips/mips.md (compression): New attribute.
26811 (enabled): New attribute.
26812 (length): Consider compression in computing length.
26813 (shift_compression): New code attribute.
26814 (*add<mode>3): New operands. Record compression.
26815 (sub<mode>3): Likewise.
26816 (one_cmpl<mode>2): Likewise.
26817 (*and<mode>3): Likewise.
26818 (*ior<mode>3): Likewise.
26819 (unnamed pattern for xor): Likewise.
26820 (*zero_extend<SHORT:mode><GPR:mode>2): Likewise.
26821 (*<optab><mode>3): Likewise.
26822 (*mov<mode>_internal: Likewise.
26823 * config/mips/mips-protos.h (mips_signed_immediate_p): New.
26824 (mips_unsigned_immediate_p): New.
26825 (umips_lwsp_swsp_address_p): New.
26826 (m16_based_address_p): New.
26827 * config/mips/mips-protos.h (mips_signed_immediate_p): New prototype.
26828 (mips_unsigned_immediate_p): New prototype.
26829 (lwsp_swsp_address_p): New prototype.
26830 (m16_based_address_p): New prototype.
26831 * config/mips/mips.c (mips_unsigned_immediate_p): New function.
26832 (mips_signed_immediate_p): New function.
26833 (m16_based_address_p): New function.
26834 (lwsp_swsp_address_p): New function.
26835 (mips_print_operand_punctuation): Recognize short delay slot insns
26836 for microMIPS.add<mode>3"
26838 2013-03-25 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
26841 * config/arm/iterators.md (v_cmp_result): New mode attribute.
26842 * config/arm/neon.md (vcond<mode><mode>): Handle unordered cases.
26844 2013-03-25 Richard Biener <rguenther@suse.de>
26846 PR tree-optimization/56689
26847 * tree-vrp.c (execute_vrp): Mark loops for fixup if we removed
26850 2013-03-25 Richard Biener <rguenther@suse.de>
26852 * tree-ssa-loop-im.c (struct mem_ref): Use bitmap_head instead
26854 (memory_references): Likewise.
26855 (outermost_indep_loop, mem_ref_alloc, mark_ref_stored,
26856 gather_mem_refs_stmt, record_dep_loop, ref_indep_loop_p_1,
26857 ref_indep_loop_p_2, find_refs_for_sm): Adjust.
26858 (gather_mem_refs_in_loops): Fold into ...
26859 (analyze_memory_references): ... this. Move initialization
26860 to tree_ssa_lim_initialize.
26861 (fill_always_executed_in): Rename to ...
26862 (fill_always_executed_in_1): ... this.
26863 (fill_always_executed_in): Move contains_call computation to
26864 this new function from ...
26865 (tree_ssa_lim_initialize): ... here.
26866 (tree_ssa_lim): Call fill_always_executed_in.
26868 2013-03-25 Eric Botcazou <ebotcazou@adacore.com>
26870 * postreload.c (reload_combine): Fix code detecting returns.
26872 2013-03-25 Eric Botcazou <ebotcazou@adacore.com>
26874 * function.c (emit_use_return_register_into_block): On cc0 targets,
26875 do not emit the sequence between cc0 setter and user.
26877 2013-03-25 Kai Tietz <ktietz@redhat.com>
26879 * config/i386/predicates.md (local_symbolic_operand): Interpret
26880 dll-imported symbols as none-local.
26882 2013-03-25 Richard Biener <rguenther@suse.de>
26884 * tree-ssa-loop-im.c (struct depend): Remove.
26885 (struct lim_aux_data): Make depends a vec of gimples.
26886 (free_lim_aux_data): Adjust.
26887 (add_dependency): Likewise.
26888 (set_level): Likewise.
26890 2013-03-25 Richard Biener <rguenther@suse.de>
26892 PR middle-end/56434
26893 * calls.c (expand_call): Use MALLOC_ABI_ALIGNMENT to annotate
26894 the pointer returned by calls with ECF_MALLOC set.
26896 2013-03-24 Uros Bizjak <ubizjak@gmail.com>
26898 * config/i386/mmx.md (mov<mode>): Add ?!Ym,r and r,?!Ym alternatives.
26900 2013-03-24 Uros Bizjak <ubizjak@gmail.com>
26902 * config/i386/mmx.md (mov<mode>): Merge with movv2sf expander
26903 using MMXMODE mode iterator.
26904 (*move<mode>_internal): Merge with *movv2sf_internal and
26905 *movv2sf_internal_rex64 using MMXMODE mode iterator.
26907 2013-03-23 Steven Bosscher <steven@gcc.gnu.org>
26909 * gcse.c (oprs_unchanged_p): Respect flag_gcse_lm.
26910 (record_last_mem_set_info): Likewise.
26912 * df-core.c (rest_of_handle_df_initialize): Use XCNEWVEC instead
26913 of XNEWVEC followed by memset.
26914 (df_worklist_dataflow): Use XNEWVEC instead of xmalloc with a cast.
26916 2013-03-23 Steven Bosscher <steven@gcc.gnu.org>
26918 * config/avr/avr.c, config/bfin/bfin.c, config/c6x/c6x.c,
26919 config/epiphany/epiphany.c, config/frv/frv.c, config/ia64/ia64.c,
26920 config/iq2000/iq2000.c, config/mcore/mcore.c, config/mep/mep.c,
26921 config/mmix/mmix.c, config/pa/pa.c, config/rs6000/rs6000.c,
26922 config/s390/s390.c, config/sparc/sparc.c, config/spu/spu.c,
26923 config/stormy16/stormy16.c, config/v850/v850.c, config/xtensa/xtensa.c,
26924 dwarf2out.c, hw-doloop.c, resource.c, rtl.h : Where applicable, use
26925 the predicates NOTE_P, NONJUMP_INSN_P, JUMP_P, CALL_P, LABEL_P, and
26926 BARRIER_P instead of GET_CODE.
26928 2013-03-23 Eric Botcazou <ebotcazou@adacore.com>
26930 * config/sparc/sparc.c (sparc_emit_probe_stack_range): Fix small
26931 inaccuracy in the probing code.
26933 * config/sparc/sparc.md (ctrapsi4): Add predicate for operand #3.
26934 (ctrapdi4): Likewise.
26936 2013-03-23 Eric Botcazou <ebotcazou@adacore.com>
26938 * calls.c (expand_call): Add missing guard to code handling return
26939 of non-BLKmode structures in MSB.
26940 * function.c (expand_function_end): Likewise.
26942 2013-03-23 Eric Botcazou <ebotcazou@adacore.com>
26944 * combine.c (try_combine): Adjust comment. Do not add the set of
26945 insn #0 if the destination indirectly is set or dies in insn #2.
26946 Tidy up code to distribute a new note.
26948 2013-03-22 Uros Bizjak <ubizjak@gmail.com>
26950 * config/i386/i386.md (*movdi_internal): Set prefix_rex attribute
26951 also for alternatives 16 and 17.
26953 2013-03-22 Uros Bizjak <ubizjak@gmail.com>
26955 * config/i386/sse.md (*mov<mode>_internal): Merge with
26956 *mov<mode>_internal_rex64. Use x64 and nox64 isa attributes.
26957 Emit insn template depending on type attribute. Use
26958 HAVE_AS_IX86_INTERUNIT_MOVQ to handle broken assemblers that require
26959 movd instead of movq mnemonic for interunit moves. Rewrite mode
26960 attribute calculation. Remove unit attribute calculation.
26961 Set prefix attribute to maybe_vex for sselog1 and ssemov types.
26962 Set prefix_data16 attribute for DImode ssemov types.
26963 Use Ym instead of y for SSE-MMX conversion alternatives.
26964 Reorder operand constraints.
26966 2013-03-22 Steven Bosscher <steven@gcc.gnu.org>
26968 * df.h (df_insn_delete): Adjust prototype.
26969 * emit-rtl.c (remove_insn): Pass a basic block to df_insn_delete
26970 and let it decide whether mark the basic block dirty.
26971 (set_insn_deleted): Only pass INSN_P insns to df_insn_delete.
26972 * df-scan.c (df_insn_info_delete): New helper function, split
26973 off from df_insn_delete.
26974 (df_scan_free_bb_info): Use it.
26975 (df_insn_rescan, df_insn_rescan_all, df_process_deferred_rescans):
26977 (df_insn_delete): Likewise. Take insn rtx as argument. Verify
26978 that the insn is actually an insn and it has a non-NULL basic block.
26979 Do not mark basic block dirty if only deleting a DEBUG_INSN.
26981 2013-03-22 Richard Biener <rguenther@suse.de>
26983 * tree-ssa-loop-im.c (struct mem_ref): Remove indep_ref and
26985 (mem_ref_alloc): Do not allocate them.
26986 (refs_independent_p): Do not query or maintain a cache.
26988 2013-03-22 Richard Biener <rguenther@suse.de>
26990 * tree-ssa-loop-im.c (memory_references): Drop all_refs_in_loop.
26991 (gather_mem_refs_in_loops): Do not compute it.
26992 (analyze_memory_references): Do not allocate it.
26993 (tree_ssa_lim_finalize): Do not free it.
26994 (for_all_locs_in_loop): Do not query all_refs_in_loop.
26996 2013-03-22 Richard Biener <rguenther@suse.de>
26998 * is-a.h (as_a): Use gcc_checking_assert.
27000 2013-03-22 Ian Bolton <ian.bolton@arm.com>
27002 * config/aarch64/aarch64.c (aarch64_print_operand): New
27003 format specifier for printing a constant in hex.
27004 * config/aarch64/aarch64.md (insv_imm<mode>): Use the X
27005 format specifier for printing second operand.
27007 2013-03-22 Richard Biener <rguenther@suse.de>
27009 * tree-ssa-loop-im.c (memory_references): Add refs_stored_in_loop
27011 (gather_mem_refs_in_loops): Perform store accumulation here.
27012 (create_vop_ref_mapping_loop): Remove.
27013 (create_vop_ref_mapping): Likewise.
27014 (analyze_memory_references): Initialize refs_stored_in_loop.
27015 (LOOP_DEP_BIT): New define to map to bits in (in)dep_loop bitmaps.
27016 (record_indep_loop): Remove.
27017 (record_dep_loop): New function.
27018 (ref_indep_loop_p_1): Adjust to only walk over references
27019 in the loop, not its subloops.
27020 (ref_indep_loop_p): Rename to ...
27021 (ref_indep_loop_p_2): ... this and recurse over the loop tree,
27022 maintaining a more fine-grained cache.
27023 (ref_indep_loop_p): Wrap ref_indep_loop_p_2.
27024 (tree_ssa_lim_finalize): Free refs_stored_in_loop.
27026 2013-03-22 Richard Biener <rguenther@suse.de>
27028 * tree-ssa-loop-im.c (struct mem_ref_locs): Remove.
27029 (struct mem_ref): Make accesses_in_loop a vec of a vec of
27030 aggregate mem_ref_loc.
27031 (free_mem_ref_locs): Inline into ...
27032 (memref_free): ... this and adjust.
27033 (mem_ref_alloc): Adjust.
27034 (mem_ref_locs_alloc): Remove.
27035 (record_mem_ref_loc): Adjust.
27036 (get_all_locs_in_loop): Rewrite into ...
27037 (for_all_locs_in_loop): ... this iterator.
27038 (rewrite_mem_ref_loc): New functor.
27039 (rewrite_mem_refs): Use for_all_locs_in_loop.
27040 (sm_set_flag_if_changed): New functor.
27041 (execute_sm_if_changed_flag_set): Use for_all_locs_in_loop.
27042 (ref_always_accessed): New functor.
27043 (ref_always_accessed_p): Use for_all_locs_in_loop.
27045 2013-03-21 Marc Glisse <marc.glisse@inria.fr>
27047 * tree-pass.h (PROP_gimple_lvec): New.
27048 * passes.c (dump_properties): Handle PROP_gimple_lvec.
27049 (init_optimization_passes): Move pass_lower_vector.
27050 * tree-vect-generic.c (gate_expand_vector_operations_ssa): Test
27052 (pass_lower_vector): Provide PROP_gimple_lvec.
27053 (pass_lower_vector_ssa): Likewise.
27054 * cfgexpand.c (pass_expand): Require PROP_gimple_lvec.
27056 2013-03-21 Mark Wielaard <mjw@redhat.com>
27058 * dwarf2out.c (size_of_aranges): Skip DECL_IGNORED_P functions.
27060 2013-03-21 Uros Bizjak <ubizjak@gmail.com>
27062 * config/i386/i386.md (*movdi_internal): Disparage slightly
27063 all MMX moves to/from memory. Use Yi instead of x for SSE-MMX
27064 conversion alternatives.
27066 2013-03-21 Jakub Jelinek <jakub@redhat.com>
27068 PR middle-end/48087
27069 * diagnostic.def (DK_WERROR): New kind.
27070 * diagnostic.h (werrorcount): Define.
27071 * diagnostic.c (diagnostic_report_diagnostic): For DK_WARNING
27072 promoted to DK_ERROR, increment DK_WERROR counter instead of
27074 * toplev.c (toplev_main): Call print_ignored_options even if
27075 just werrorcount is non-zero. Exit with FATAL_EXIT_CODE
27076 even if just werrorcount is non-zero.
27079 * dwarf2out.c (tree_add_const_value_attribute): Call ggc_free (array)
27081 (resolve_one_addr): Fail if referenced STRING_CST hasn't been written.
27082 (string_cst_pool_decl): New function.
27083 (optimize_one_addr_into_implicit_ptr): New function.
27084 (resolve_addr_in_expr): Optimize DWARF location expression
27085 DW_OP_addr DW_OP_stack_value where DW_OP_addr refers to some variable
27086 which doesn't live in memory, but has DW_AT_location or
27087 DW_AT_const_value, or refers to a string literal, into
27088 DW_OP_GNU_implicit_pointer.
27089 (optimize_location_into_implicit_ptr): New function.
27090 (resolve_addr): If removing DW_AT_location of a variable because
27091 it was DW_OP_addr of address of the variable, but the variable doesn't
27092 live in memory, try to emit const value attribute for the initializer.
27094 2013-03-21 Marc Glisse <marc.glisse@inria.fr>
27096 * tree.h (VECTOR_TYPE_P): New macro.
27097 (VECTOR_INTEGER_TYPE_P, VECTOR_FLOAT_TYPE_P, FLOAT_TYPE_P,
27098 TYPE_MODE): Use it.
27099 * fold-const.c (fold_cond_expr_with_comparison): Use build_zero_cst.
27100 VEC_COND_EXPR cannot be lvalues.
27101 (fold_ternary_loc) <VEC_COND_EXPR>: Merge with the COND_EXPR case.
27103 2013-03-21 Marc Glisse <marc.glisse@inria.fr>
27105 * simplify-rtx.c (simplify_binary_operation_1) <VEC_CONCAT>:
27106 Restrict the transformation to equal modes.
27108 2013-03-21 Richard Biener <rguenther@suse.de>
27110 PR tree-optimization/39326
27111 * tree-ssa-loop-im.c (UNANALYZABLE_MEM_ID): New define.
27112 (MEM_ANALYZABLE): Adjust.
27113 (record_mem_ref_loc): Move bitmap ops ...
27114 (gather_mem_refs_stmt): ... here. Use the shared mem-ref for
27115 unanalyzable refs, do not record locations for it.
27116 (analyze_memory_references): Allocate ref zero as shared
27118 (refs_independent_p): Do not test for unanalyzed mems here.
27119 (ref_indep_loop_p_1): Special-case disambiguation against
27120 the unanalyzed ref.
27121 (ref_indep_loop_p): Assert we are not queried for the unanalyzed mem.
27123 2013-03-21 Christophe Lyon <christophe.lyon@linaro.org>
27125 * config/arm/arm-protos.h (tune_params): Add
27126 prefer_neon_for_64bits field.
27127 * config/arm/arm.c (prefer_neon_for_64bits): New variable.
27128 (arm_slowmul_tune): Default prefer_neon_for_64bits to false.
27129 (arm_fastmul_tune, arm_strongarm_tune, arm_xscale_tune): Ditto.
27130 (arm_9e_tune, arm_v6t2_tune, arm_cortex_tune): Ditto.
27131 (arm_cortex_a15_tune, arm_cortex_a5_tune): Ditto.
27132 (arm_cortex_a9_tune, arm_v6m_tune, arm_fa726te_tune): Ditto.
27133 (arm_option_override): Handle -mneon-for-64bits new option.
27134 * config/arm/arm.h (TARGET_PREFER_NEON_64BITS): New macro.
27135 (prefer_neon_for_64bits): Declare new variable.
27136 * config/arm/arm.md (arch): Rename neon_onlya8 and neon_nota8 to
27137 avoid_neon_for_64bits and neon_for_64bits. Remove onlya8 and nota8.
27138 (arch_enabled): Handle new arch types. Remove support for onlya8
27140 (one_cmpldi2): Use new arch names.
27141 (zero_extend<mode>di2, extend<mode>di2): Ditto.
27142 * config/arm/arm.opt (mneon-for-64bits): Add option.
27143 * config/arm/neon.md (adddi3_neon, subdi3_neon, iordi3_neon)
27144 (anddi3_neon, xordi3_neon, ashldi3_neon, <shift>di3_neon): Use
27145 neon_for_64bits instead of nota8 and avoid_neon_for_64bits instead
27147 * doc/invoke.texi (-mneon-for-64bits): Document.
27149 2013-03-21 Richard Biener <rguenther@suse.de>
27151 PR tree-optimization/39326
27152 * tree-ssa-loop-im.c (bb_loop_postorder): New global static.
27153 (sort_bbs_in_loop_postorder_cmp): New function.
27154 (gather_mem_refs_in_loops): Assign mem-ref IDs in loop postorder.
27156 2013-03-21 Richard Biener <rguenther@suse.de>
27158 * tree-vect-data-refs.c (vect_update_interleaving_chain): Remove.
27159 (vect_insert_into_interleaving_chain): Likewise.
27160 (vect_drs_dependent_in_basic_block): Inline ...
27161 (vect_slp_analyze_data_ref_dependence): ... here. New function,
27163 (vect_analyze_data_ref_dependence): ... here. Simplify.
27164 (vect_check_interleaving): Simplify.
27165 (vect_analyze_data_ref_dependences): Likewise. Split out ...
27166 (vect_slp_analyze_data_ref_dependences): ... this new function.
27167 (dr_group_sort_cmp): New function.
27168 (vect_analyze_data_ref_accesses): Compute data-reference groups
27169 here instead of in vect_analyze_data_ref_dependence. Use
27170 a more efficient algorithm.
27171 * tree-vect-slp.c (vect_slp_analyze_bb_1): Use
27172 vect_slp_analyze_data_ref_dependences. Call
27173 vect_analyze_data_ref_accesses earlier.
27174 * tree-vect-loop.c (vect_analyze_loop_2): Likewise.
27175 * tree-vectorizer.h (vect_analyze_data_ref_dependences): Adjust.
27176 (vect_slp_analyze_data_ref_dependences): New prototype.
27178 2013-03-21 Richard Biener <rguenther@suse.de>
27180 * tree-ssa-loop-im.c (can_sm_ref_p): Do not test whether
27181 ref is stored in the loop.
27182 (find_refs_for_sm): Walk only over all stores.
27183 (store_motion_loop): Allocate from lim_bitmap_obstack.
27184 (store_motion): Likewise.
27186 2013-03-21 Richard Biener <rguenther@suse.de>
27188 * tree-vect-loop-manip.c (slpeel_tree_peel_loop_to_edge):
27189 Update virtual SSA form.
27191 2013-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
27193 * configure.ac (gcc_cv_ld_eh_frame_ciev3): New test.
27194 * configure: Regenerate.
27195 * config.in: Regenerate.
27196 * config/sol2.c (solaris_override_options): Only enforce DWARF 2
27197 if !HAVE_LD_EH_FRAME_CIEV3.
27199 2013-03-21 Richard Biener <rguenther@suse.de>
27201 * tree-cfg.c (verify_expr_no_block): New function.
27202 (verify_expr_location_1): Verify that neither DECL_DEBUG_EXPR
27203 nor DECL_VALUE_EXPR have locations with associated blocks.
27204 * tree-ssa-live.c (clear_unused_block_pointer_1): Remove.
27205 (clear_unused_block_pointer): Remove code dealing with
27206 blocks in DECL_DEBUG_EXPR locations.
27208 2013-03-21 Richard Biener <rguenther@suse.de>
27210 * tree.h (DECL_DEBUG_EXPR_IS_FROM): Rename to ...
27211 (DECL_HAS_DEBUG_EXPR_P): ... this. Guard properly.
27212 * tree.c (copy_node_stat): Do not copy DECL_HAS_DEBUG_EXPR_P.
27213 * dwarf2out.c (add_var_loc_to_decl): Use DECL_HAS_DEBUG_EXPR_P
27214 instead of DECL_DEBUG_EXPR_IS_FROM.
27215 * gimplify.c (gimplify_modify_expr): Likewise.
27216 * tree-cfg.c (verify_expr_location_1): Likewise.
27217 * tree-complex.c (create_one_component_var): Likewise.
27218 * tree-sra.c (create_access_replacement): Likewise.
27219 * tree-ssa-live.c (clear_unused_block_pointer_1): Likewise.
27220 (clear_unused_block_pointer): Likewise.
27221 * tree-streamer-in.c (unpack_ts_decl_common_value_fields): Likewise.
27222 * tree-streamer-out.c (pack_ts_decl_common_value_fields): Likewise.
27223 * var-tracking.c (var_debug_decl): Likewise.
27224 (track_expr_p): Likewise.
27225 * tree-inline.c (add_local_variables): Likewise. Set
27226 DECL_HAS_DEBUG_EXPR_P after copying it.
27227 * tree-diagnostic.c (default_tree_printer): Use DECL_HAS_DEBUG_EXPR_P
27228 instead of DECL_DEBUG_EXPR_IS_FROM. Guard properly.
27230 2013-03-21 Uros Bizjak <ubizjak@gmail.com>
27233 * configure.ac (HAVE_AS_IX86_INTERUNIT_MOVQ): New test.
27234 * configure: Regenerate.
27235 * config.in: Regenerate.
27236 * config/i386/i386.md (*movdf_internal): Use
27237 HAVE_AS_IX86_INTERUNIT_MOVQ to handle broken assemblers that require
27238 movd instead of movq mnemonic for interunit moves.
27239 (*movdi_internal): Ditto.
27241 2013-03-21 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
27243 * config/aarch64/aarch64-simd.md (simd_fabd): New Attribute.
27244 (abd<mode>_3): New pattern.
27245 (aba<mode>_3): New pattern.
27246 (fabd<mode>_3): New pattern.
27248 2013-03-21 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
27250 * config/aarch64/aarch64-elf.h (REGISTER_PREFIX): Remove.
27251 * config/aarch64/aarch64.c (aarch64_print_operand): Remove all
27252 occurrence of REGISTER_PREFIX as its empty string.
27254 2013-03-20 Jeff Law <law@redhat.com>
27256 * tree-ssa-dom.c (record_equivalences_from_incoming_edge): Record
27257 addititional equivalences for equality comparisons between an SSA_NAME
27258 and a constant where the SSA_NAME was set from a widening conversion.
27260 2013-03-20 Walter Lee <walt@tilera.com>
27262 * config/tilegx/sync.md (atomic_test_and_set): New pattern.
27264 2013-03-20 Uros Bizjak <ubizjak@gmail.com>
27266 * config/i386/i386.md (*movoi_internal_avx): Emit insn template
27267 depending on type attribute.
27268 (*movti_internal): Ditto.
27269 (*movtf_internal): Ditto.
27270 (*movxf_internal): Ditto.
27271 (*movdf_internal): Ditto.
27272 (*movsf_internal): Ditto.
27274 2013-03-20 Uros Bizjak <ubizjak@gmail.com>
27276 * config/i386/i386.md (*movti_internal): Set prefix attribute to
27277 maybe_vex for sselog1 and ssemov types.
27278 (*movdi_internal): Reorder operand constraints.
27279 (*movsi_internal): Ditto. Set prefix attribute to
27280 maybe_vex for sselog1 and ssemov types.
27281 (*movtf_internal): Set prefix attribute to maybe_vex
27282 for sselog1 and ssemov types.
27283 (*movdf_internal): Ditto. Set prefix_data16 attribute for
27284 DImode ssemov types. Reorder operand constraints.
27285 (*movsf_internal): Set type of alternatives 3,4 to imov. Set prefix
27286 attribute to maybe_vex for sselog1 and ssemov types. Set prefix_data16
27287 attribute for SImode ssemov types. Reorder operand constraints.
27289 2013-03-20 Martin Jambor <mjambor@suse.cz>
27291 * params.def (PARAM_IPA_CP_ARRAY_INDEX_HINT_BONUS): New parameter.
27292 * ipa-cp.c (hint_time_bonus): Add abonus for known array indices.
27294 2013-03-20 Pat Haugen <pthaugen@us.ibm.com>
27296 * config/rs6000/predicates.md (indexed_address, update_address_mem
27297 update_indexed_address_mem): New predicates.
27298 * config/rs6000/vsx.md (vsx_extract_<mode>_zero): Set correct "type"
27299 attribute for load/store instructions.
27300 * config/rs6000/dfp.md (movsd_store): Likewise.
27301 (movsd_load): Likewise.
27302 * config/rs6000/rs6000.md (zero_extend<mode>di2_internal1): Likewise.
27303 (unnamed HI->DI extend define_insn): Likewise.
27304 (unnamed SI->DI extend define_insn): Likewise.
27305 (unnamed QI->SI extend define_insn): Likewise.
27306 (unnamed QI->HI extend define_insn): Likewise.
27307 (unnamed HI->SI extend define_insn): Likewise.
27308 (unnamed HI->SI extend define_insn): Likewise.
27309 (extendsfdf2_fpr): Likewise.
27310 (movsi_internal1): Likewise.
27311 (movsi_internal1_single): Likewise.
27312 (movhi_internal): Likewise.
27313 (movqi_internal): Likewise.
27314 (movcc_internal1): Correct mnemonic for stw insn. Set correct "type"
27315 attribute for load/store instructions.
27316 (mov<mode>_hardfloat): Set correct "type" attribute for load/store
27318 (mov<mode>_softfloat): Likewise.
27319 (mov<mode>_hardfloat32): Likewise.
27320 (mov<mode>_hardfloat64): Likewise.
27321 (mov<mode>_softfloat64): Likewise.
27322 (movdi_internal32): Likewise.
27323 (movdi_internal64): Likewise.
27324 (probe_stack_<mode>): Likewise.
27326 2013-03-20 Michael Meissner <meissner@linux.vnet.ibm.com>
27328 * config/rs6000/vector.md (VEC_R): Add 32-bit integer, binary
27329 floating point, and decimal floating point to reload iterator.
27331 * config/rs6000/constraints.md (wl constraint): New constraints to
27332 return FLOAT_REGS if certain options are used to reduce the number
27333 of separate patterns that exist in the file.
27334 (wx constraint): Likewise.
27335 (wz constraint): Likewise.
27337 * config/rs6000/rs6000.c (rs6000_debug_reg_global): If
27338 -mdebug=reg, print wg, wl, wx, and wz constraints.
27339 (rs6000_init_hard_regno_mode_ok): Initialize new constraints.
27340 Initialize the reload functions for 64-bit binary/decimal floating
27342 (reg_offset_addressing_ok_p): If we are on a power7 or later, use
27343 LFIWZX and STFIWX to load/store 32-bit decimal types, and don't
27344 create the buffer on the stack to overcome not having a 32-bit
27346 (rs6000_emit_move): Likewise.
27347 (rs6000_secondary_memory_needed_rtx): Likewise.
27348 (rs6000_alloc_sdmode_stack_slot): Likewise.
27349 (rs6000_preferred_reload_class): On VSX, we can create SFmode 0.0f
27350 via xxlxor, just like DFmode 0.0.
27352 * config/rs6000/rs6000.h (TARGET_NO_SDMODE_STACK): New macro,
27353 define as 1 if we are running on a power7 or newer.
27354 (enum r6000_reg_class_enum): Add new constraints.
27356 * config/rs6000/dfp.md (movsd): Delete, combine with binary
27357 floating point moves in rs6000.md. Combine power6x (mfpgpr) moves
27358 with other moves by using conditional constraits (wg). Use LFIWZX
27359 and STFIWX for loading SDmode on power7. Use xxlxor to create 0.0f.
27360 (movsd splitter): Likewise.
27361 (movsd_hardfloat): Likewise.
27362 (movsd_softfloat): Likewise.
27364 * config/rs6000/rs6000.md (FMOVE32): New iterators to combine
27365 binary and decimal floating point moves.
27366 (fmove_ok): New attributes to combine binary and decimal floating
27367 point moves, and to combine power6x (mfpgpr) moves along normal
27369 (real_value_to_target): Likewise.
27370 (f32_lr): Likewise.
27371 (f32_lm): Likewise.
27372 (f32_li): Likewise.
27373 (f32_sr): Likewise.
27374 (f32_sm): Likewise.
27375 (f32_si): Likewise.
27376 (movsf): Combine binary and decimal floating point moves. Combine
27377 power6x (mfpgpr) moves with other moves by using conditional
27378 constraits (wg). Use LFIWZX and STFIWX for loading SDmode on power7.
27379 (mov<mode> for SFmode/SDmode); Likewise.
27380 (SFmode/SDmode splitters): Likewise.
27381 (movsf_hardfloat): Likewise.
27382 (mov<mode>_hardfloat for SFmode/SDmode): Likewise.
27383 (movsf_softfloat): Likewise.
27384 (mov<mode>_softfloat for SFmode/SDmode): Likewise.
27386 * doc/md.texi (PowerPC and IBM RS6000 constraints): Document wl,
27387 wx and wz constraints.
27389 * config/rs6000/constraints.md (wg constraint): New constraint to
27390 return FLOAT_REGS if -mmfpgpr (power6x) was used.
27392 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Add wg
27395 * config/rs6000/rs6000.c (rs6000_debug_reg_global): If
27396 -mdebug=reg, print wg, wl, wx, and wz constraints.
27397 (rs6000_init_hard_regno_mode_ok): Initialize new constraints.
27398 Initialize the reload functions for 64-bit binary/decimal floating
27400 (reg_offset_addressing_ok_p): If we are on a power7 or later, use
27401 LFIWZX and STFIWX to load/store 32-bit decimal types, and don't
27402 create the buffer on the stack to overcome not having a 32-bit
27404 (rs6000_emit_move): Likewise.
27405 (rs6000_secondary_memory_needed_rtx): Likewise.
27406 (rs6000_alloc_sdmode_stack_slot): Likewise.
27407 (rs6000_preferred_reload_class): On VSX, we can create SFmode 0.0f
27408 via xxlxor, just like DFmode 0.0.
27410 * config/rs6000/dfp.md (movdd): Delete, combine with binary
27411 floating point moves in rs6000.md. Combine power6x (mfpgpr) moves
27412 with other moves by using conditional constraits (wg). Use LFIWZX
27413 and STFIWX for loading SDmode on power7.
27414 (movdd splitters): Likewise.
27415 (movdd_hardfloat32): Likewise.
27416 (movdd_softfloat32): Likewise.
27417 (movdd_hardfloat64_mfpgpr): Likewise.
27418 (movdd_hardfloat64): Likewise.
27419 (movdd_softfloat64): Likewise.
27421 * config/rs6000/rs6000.md (FMOVE64): New iterators to combine
27422 64-bit binary and decimal floating point moves.
27423 (FMOVE64X): Likewise.
27424 (movdf): Combine 64-bit binary and decimal floating point moves.
27425 Combine power6x (mfpgpr) moves with other moves by using
27426 conditional constraits (wg).
27427 (mov<mode> for DFmode/DDmode): Likewise.
27428 (DFmode/DDmode splitters): Likewise.
27429 (movdf_hardfloat32): Likewise.
27430 (mov<mode>_hardfloat32 for DFmode/DDmode): Likewise.
27431 (movdf_softfloat32): Likewise.
27432 (movdf_hardfloat64_mfpgpr): Likewise.
27433 (movdf_hardfloat64): Likewise.
27434 (mov<mode>_hardfloat64 for DFmode/DDmode): Likewise.
27435 (movdf_softfloat64): Likewise.
27436 (mov<mode>_softfloat64 for DFmode/DDmode): Likewise.
27437 (reload_<mode>_load): Move to later in the file so they aren't in
27438 the middle of the floating point move insns.
27439 (reload_<mode>_store): Likewise.
27441 * doc/md.texi (PowerPC and IBM RS6000 constraints): Document wg
27444 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Print out wg
27445 constraint if -mdebug=reg.
27446 (rs6000_initi_hard_regno_mode_ok): Enable wg constraint if -mfpgpr.
27447 Enable using dd reload support if needed.
27449 * config/rs6000/dfp.md (movtd): Delete, combine with 128-bit
27450 binary and decimal floating point moves in rs6000.md.
27451 (movtd_internal): Likewise.
27453 * config/rs6000/rs6000.md (FMOVE128): Combine 128-bit binary and
27454 decimal floating point moves.
27456 (movtf_internal): Likewise.
27457 (mov<mode>_internal, TDmode/TFmode): Likewise.
27458 (movtf_softfloat): Likewise.
27459 (mov<mode>_softfloat, TDmode/TFmode): Likewise.
27461 * config/rs6000/rs6000.md (movdi_mfpgpr): Delete, combine with
27462 movdi_internal64, using wg constraint for move direct operations.
27463 (movdi_internal64): Likewise.
27465 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Print
27466 MODES_TIEABLE_P for selected modes. Print the numerical value of
27467 the various virtual registers. Use GPR/FPR first/last values,
27468 instead of hard coding the register numbers. Print which modes
27469 have reload functions registered.
27470 (rs6000_option_override_internal): If -mdebug=reg, trace the options
27471 settings before/after setting cpu, target and subtarget settings.
27472 (rs6000_secondary_reload_trace): Improve the RTL dump for -mdebug=addr
27473 and for secondary reload failures in rs6000_secondary_reload_inner.
27474 (rs6000_secondary_reload_fail): Likewise.
27475 (rs6000_secondary_reload_inner): Likewise.
27477 * config/rs6000/rs6000.md (FIRST_GPR_REGNO): Add convenience
27478 macros for first/last GPR and FPR registers.
27479 (LAST_GPR_REGNO): Likewise.
27480 (FIRST_FPR_REGNO): Likewise.
27481 (LAST_FPR_REGNO): Likewise.
27483 * config/rs6000/vector.md (mul<mode>3): Use the combined macro
27484 VECTOR_UNIT_ALTIVEC_OR_VSX_P instead of separate calls to
27485 VECTOR_UNIT_ALTIVEC_P and VECTOR_UNIT_VSX_P.
27486 (vcond<mode><mode>): Likewise.
27487 (vcondu<mode><mode>): Likewise.
27488 (vector_gtu<mode>): Likewise.
27489 (vector_gte<mode>): Likewise.
27490 (xor<mode>3): Don't allow logical operations on TImode in 32-bit
27491 to prevent the compiler from converting DImode operations to TImode.
27492 (ior<mode>3): Likewise.
27493 (and<mode>3): Likewise.
27494 (one_cmpl<mode>2): Likewise.
27495 (nor<mode>3): Likewise.
27496 (andc<mode>3): Likewise.
27498 * config/rs6000/constraints.md (wt constraint): New constraint
27499 that returns VSX_REGS if TImode is allowed in VSX registers.
27501 * config/rs6000/predicates.md (easy_fp_constant): 0.0f is an easy
27502 constant under VSX.
27504 * config/rs6000/rs6000-modes.def (PTImode): Define, PTImode is
27505 similar to TImode, but it is restricted to being in the GPRs.
27507 * config/rs6000/rs6000.opt (-mvsx-timode): New switch to allow
27508 TImode to occupy a single VSX register.
27510 * config/rs6000/rs6000-cpus.def (ISA_2_6_MASKS_SERVER): Default to
27511 -mvsx-timode for power7/power8.
27512 (power7 cpu): Likewise.
27513 (power8 cpu): Likewise.
27515 * config/rs6000/rs6000.c (rs6000_hard_regno_nregs_internal): Make
27516 sure that TFmode/TDmode take up two registers if they are ever
27517 allowed in the upper VSX registers.
27518 (rs6000_hard_regno_mode_ok): If -mvsx-timode, allow TImode in VSX
27520 (rs6000_init_hard_regno_mode_ok): Likewise.
27521 (rs6000_debug_reg_global): Add debugging for PTImode and wt
27522 constraint. Print if LRA is turned on.
27523 (rs6000_option_override_internal): Give an error if -mvsx-timode
27524 and VSX is not enabled.
27525 (invalid_e500_subreg): Handle PTImode, restricting it to GPRs. If
27526 -mvsx-timode, restrict TImode to reg+reg addressing, and PTImode
27527 to reg+offset addressing. Use PTImode when checking offset
27528 addresses for validity.
27529 (reg_offset_addressing_ok_p): Likewise.
27530 (rs6000_legitimate_offset_address_p): Likewise.
27531 (rs6000_legitimize_address): Likewise.
27532 (rs6000_legitimize_reload_address): Likewise.
27533 (rs6000_legitimate_address_p): Likewise.
27534 (rs6000_eliminate_indexed_memrefs): Likewise.
27535 (rs6000_emit_move): Likewise.
27536 (rs6000_secondary_reload): Likewise.
27537 (rs6000_secondary_reload_inner): Handle PTImode. Allow 64-bit
27538 reloads to fpr registers to continue to use reg+offset addressing,
27539 but 64-bit reloads to altivec registers need reg+reg addressing.
27540 Drop test for PRE_MODIFY, since VSX loads/stores no longer support
27541 it. Treat LO_SUM like a PLUS operation.
27542 (rs6000_secondary_reload_class): If type is 64-bit, prefer to use
27543 FLOAT_REGS instead of VSX_RGS to allow use of reg+offset addressing.
27544 (rs6000_cannot_change_mode_class): Do not allow TImode in VSX
27545 registers to share a register with a smaller sized type, since VSX
27546 puts scalars in the upper 64-bits.
27547 (print_operand): Add support for PTImode.
27548 (rs6000_register_move_cost): Use VECTOR_MEM_VSX_P instead of
27549 VECTOR_UNIT_VSX_P to catch types that can be loaded in VSX
27550 registers, but don't have arithmetic support.
27551 (rs6000_memory_move_cost): Add test for VSX.
27552 (rs6000_opt_masks): Add -mvsx-timode.
27554 * config/rs6000/vsx.md (VSm): Change to use 64-bit aligned moves
27557 (VSr): Use wt constraint for TImode.
27558 (VSv): Drop TImode support.
27559 (vsx_movti): Delete, replace with versions for 32-bit and 64-bit.
27560 (vsx_movti_64bit): Likewise.
27561 (vsx_movti_32bit): Likewise.
27562 (vec_store_<mode>): Use VSX iterator instead of vector iterator.
27563 (vsx_and<mode>3): Delete use of '?' constraint on inputs, just put
27564 one '?' on the appropriate output constraint. Do not allow TImode
27565 logical operations on 32-bit systems.
27566 (vsx_ior<mode>3): Likewise.
27567 (vsx_xor<mode>3): Likewise.
27568 (vsx_one_cmpl<mode>2): Likewise.
27569 (vsx_nor<mode>3): Likewise.
27570 (vsx_andc<mode>3): Likewise.
27571 (vsx_concat_<mode>): Likewise.
27572 (vsx_xxpermdi_<mode>): Fix thinko for non V2DF/V2DI modes.
27574 * config/rs6000/rs6000.h (MASK_VSX_TIMODE): Map from
27575 OPTION_MASK_VSX_TIMODE.
27576 (enum rs6000_reg_class_enum): Add RS6000_CONSTRAINT_wt.
27577 (STACK_SAVEAREA_MODE): Use PTImode instead of TImode.
27579 * config/rs6000/rs6000.md (INT mode attribute): Add PTImode.
27580 (TI2 iterator): New iterator for TImode, PTImode.
27581 (wd mode attribute): Add values for vector types.
27582 (movti_string): Replace TI move operations with operations for TImode
27583 and PTImode. Add support for TImode being allowed in VSX registers.
27584 (mov<mode>_string, TImode/PTImode): Likewise.
27585 (movti_ppc64): Likewise.
27586 (mov<mode>_ppc64, TImode/PTImode): Likewise.
27587 (TI mode splitters): Likewise.
27589 * doc/md.texi (PowerPC and IBM RS6000 constraints): Document wt
27592 2013-03-20 Marc Glisse <marc.glisse@inria.fr>
27594 PR tree-optimization/56355
27595 * fold-const.c (tree_binary_nonnegative_warnv_p) <MULT_EXPR>:
27596 Also handle integers with undefined overflow.
27598 2013-03-20 Catherine Moore <clm@codesourcery.com>
27599 Maciej W. Rozycki <macro@codesourcery.com>
27600 Tom de Vries <tom@codesourcery.com>
27601 Nathan Sidwell <nathan@codesourcery.com>
27602 Iain Sandoe <iain@codesourcery.com>
27603 Nathan Froyd <froydnj@codesourcery.com>
27604 Chao-ying Fu <fu@mips.com>
27606 * doc/extend.texi: (micromips, nomicromips, nocompression):
27607 Document new function attributes.
27608 * doc/invoke.texi (minterlink-compressed, mmicromips,
27609 m14k, m14ke, m14kec): Document new options.
27610 (minterlink-mips16): Update documentation.
27611 * doc/md.texi (ZC, ZD): Document new constraints.
27612 * configure.ac (gcc_cv_as_micromips): Check if linker
27613 supports the .set micromips directive.
27614 * configure: Regenerate.
27615 * config.in: Regenerate.
27616 * config/mips/mips-tables.opt: Regenerate.
27617 * config/mips/micromips.md: New file.
27618 * constraints.md (ZC, ZD): New constraints.
27619 * config/mips/predicates.md (movep_src_register): New predicate.
27620 (movep_src_operand): New predicate.
27621 (non_volatile_mem_operand): New predicate.
27622 * config/mips/mips.md (multimem): New type.
27623 (length): Differentiate between 17-bit and 18-bit branch offsets.
27624 (MOVEP1, MOVEP2): New mode iterator.
27625 (mov_<load>l): Use ZC constraint.
27626 (mov_<load>r): Likewise.
27627 (mov_<store>l): Likewise.
27628 (mov_<store>r): Likewise.
27629 (*branch_equality<mode>_inverted): Add microMIPS support.
27630 (*branch_equality<mode>): Likewise.
27631 (*jump_absolute): Likewise.
27632 (indirect_jump_<mode>): Likewise.
27633 (tablejump_<mode>): Likewise.
27634 (<optab>_internal): Likewise.
27635 (sibcall_internal): Likewise.
27636 (sibcall_value_internal): Likewise.
27637 (prefetch): Use constraint ZD.
27638 * config/mips/mips.opt (minterlink-compressed): New option.
27639 (minterlink-mips16): Now an alias for minterlink-compressed.
27640 (mmicromips): New option.
27641 * config/mips/sync.md (sync_compare_and_swap<mode>): Use ZR constraint.
27642 (compare_and_swap_12): Likewise.
27643 (sync_add<mode>): Likewise.
27644 (sync_<optab>_12): Likewise.
27645 (sync_old_<optab>_12): Likewise.
27646 (sync_new_<optab>_12): Likewise.
27647 (sync_nand_12): Likewise.
27648 (sync_old_nand_12): Likewise.
27649 (sync_new_nand_12): Likewise.
27650 (sync_sub<mode>): Likewise.
27651 (sync_old_add<mode>): Likewise.
27652 (sync_old_sub<mode>): Likewise.
27653 (sync_new_add<mode>): Likewise.
27654 (sync_new_sub<mode>): Likewise.
27655 (sync_<optab><mode>): Likewise.
27656 (sync_old_<optab><mode>): Likewise.
27657 (sync_new_<optab><mode>): Likewise.
27658 (sync_nand<mode>): Likewise.
27659 (sync_old_nand<mode>): Likewise.
27660 (sync_new_nand<mode>): Likewise.
27661 (sync_lock_test_and_set<mode>): Likewise.
27662 (test_and_set_12): Likewise.
27663 (atomic_compare_and_swap<mode>): Likewise.
27664 (atomic_exchange<mode>_llsc): Likewise.
27665 (atomic_fetch_add<mode>_llsc): Likewise.
27666 * config/mips/mips-cpus.def (m14kc, m14k): New processors.
27667 * config/mips/mips-protos.h (umips_output_save_restore): New prototype.
27668 (umips_save_restore_pattern_p): Likewise.
27669 (umips_load_store_pair_p): Likewise.
27670 (umips_output_load_store_pair): Likewise.
27671 (umips_movep_target_p): Likewise.
27672 (umips_12bit_offset_address_p): Likewise.
27673 * config/mips/mips.c (MIPS_MAX_FIRST_STEP): Update for microMIPS.
27674 (mips_base_mips16): Rename this...
27675 (mips_base_compression_flags): ...to this. Update all uses.
27676 (mips_attribute_table): Add micromips, nomicromips and nocompression.
27677 (mips_mips16_decl_p): Delete.
27678 (mips_nomips16_decl_p): Delete.
27679 (mips_get_compress_on_flags): New function.
27680 (mips_get_compress_off_flags): New function.
27681 (mips_get_compress_mode): New function.
27682 (mips_get_compress_on_name): New function.
27683 (mips_get_compress_off_name): New function.
27684 (mips_insert_attributes): Support multiple compression types.
27685 (mips_merge_decl_attributes): Likewise.
27686 (umips_12bit_offset_address_p): New function.
27687 (mips_start_function_definition): Emit .set micromips directive.
27688 (mips_call_may_need_jalx_p): New function.
27689 (mips_function_ok_for_sibcall): Add microMIPS support.
27690 (mips_print_operand_punctuation): Support short delay slots and
27692 (umips_swm_mask, umips_swm_encoding): New.
27693 (umips_build_save_restore): New function.
27694 (mips_for_each_saved_gpr_and_fpr): Add microMIPS support.
27695 (was_mips16_p): Remove.
27696 (old_compression_mode): New.
27697 (mips_set_compression_mode): New function.
27698 (mips_set_current_function): Add microMIPS support.
27699 (mips_option_override): Likewise.
27700 (umips_save_restore_pattern_p): New function.
27701 (umips_output_save_restore): New function.
27702 (umips_load_store_pair_p_1): New function.
27703 (umips_load_store_pair_p): New function.
27704 (umips_output_load_store_pair_1): New function.
27705 (umips_output_load_store_pair): New function.
27706 (umips_movep_target_p) New function.
27707 (mips_prepare_pch_save): Add microMIPS support.
27708 * config/mips/mips.h (TARGET_COMPRESSION): New.
27709 (TARGET_CPU_CPP_BUILTINS): Update macro
27710 to use new compression flags and to support microMIPS.
27711 (MIPS_ISA_LEVEL_SPEC): Add m14k processors.
27712 (MIPS_ARCH_FLOAT_SPEC): Likewise.
27713 (ISA_HAS_LWXS): Include TARGET_MICROMIPS.
27714 (ISA_HAS_LOAD_DELAY): Exclude TARGET_MICROMIPS.
27715 (ASM_SPEC): Support mmicromips and mno-micromips.
27716 (M16STORE_REG_P): New macro.
27717 (MIPS_CALL): Support TARGET_MICROMIPS.
27718 (MICROMIPS_J): New macro.
27719 (mips_base_mips16): Rename this...
27720 (mips_base_compression_flags): ...to this.
27721 (UMIPS_12BIT_OFFSET_P): New macro.
27722 * config/mips/t-sde: (MULTILIB_OPTIONS): Add microMIPS.
27723 (MULTILIB_DIRNAMES): Likewise.
27724 2013-03-20 Richard Biener <rguenther@suse.de>
27726 PR tree-optimization/56661
27727 * tree-ssa-sccvn.c (visit_use): Only value-number calls if
27728 the result does not have to be distinct.
27730 2013-03-20 Richard Biener <rguenther@suse.de>
27732 * tree-inline.c (copy_tree_body_r): Sync MEM_REF code with
27735 2013-03-20 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
27736 Steven Bosscher <steven@gcc.gnu.org>
27738 PR rtl-optimization/56605
27739 * loop-iv.c (implies_p): Handle equal RTXs and subregs.
27741 2013-03-20 Uros Bizjak <ubizjak@gmail.com>
27744 * config/i386/i386.md (*movdi_internal): Handle broken assemblers
27745 that require movd instead of movq.
27747 2013-03-20 Richard Biener <rguenther@suse.de>
27749 * tree-ssa-structalias.c (struct variable_info): Add pointer
27750 to the first field of an aggregate with sub-vars. Make
27751 this and the pointer to the next subfield its ID.
27752 (vi_next): New function.
27753 (nothing_id, anything_id, readonly_id, escaped_id, nonlocal_id,
27754 storedanything_id, integer_id): Increment by one.
27755 (new_var_info, get_call_vi, lookup_call_clobber_vi,
27756 get_call_clobber_vi): Adjust.
27757 (solution_set_expand): Simplify and speedup.
27758 (solution_set_add): Inline into ...
27759 (set_union_with_increment): ... this. Adjust accordingly.
27760 (do_sd_constraint): Likewise.
27761 (do_ds_constraint): Likewise.
27762 (do_complex_constraint): Simplify.
27763 (build_pred_graph): Adjust.
27764 (solve_graph): Likewise. Simplify and speedup.
27765 (get_constraint_for_ssa_var, get_constraint_for_ptr_offset,
27766 get_constraint_for_component_ref, get_constraint_for_1,
27767 first_vi_for_offset, first_or_preceding_vi_for_offset,
27768 create_function_info_for, create_variable_info_for_1,
27769 create_variable_info_for, intra_create_variable_infos): Adjust.
27770 (init_base_vars): Push NULL for ID zero.
27771 (compute_points_to_sets): Adjust.
27773 2013-03-20 Richard Biener <rguenther@suse.de>
27775 * cfgloop.c (verify_loop_structure): Streamline and avoid
27776 ICEing on corrupt loop tree.
27777 * graph.c (draw_cfg_nodes_for_loop): Avoid ICEing on corrupt
27780 2013-03-20 Richard Biener <rguenther@suse.de>
27782 * tree-vect-loop-manip.c (slpeel_can_duplicate_loop_p): Do not
27783 check whether an SSA update is needed.
27785 2013-03-20 Richard Sandiford <rdsandiford@googlemail.com>
27787 * config/mips/constraints.md (T): Rename to...
27791 * config/mips/mips.md (*movdi_64bit, *movdi_64bit_mips16)
27792 (*mov<mode>_internal, *mov<mode>_mips16): Update accordingly.
27794 2013-03-19 Ian Bolton <ian.bolton@arm.com>
27796 * config/aarch64/aarch64.md (*sub<mode>3_carryin): New pattern.
27797 (*subsi3_carryin_uxtw): Likewise.
27799 2013-03-19 Ian Bolton <ian.bolton@arm.com>
27801 * config/aarch64/aarch64.md (*ror<mode>3_insn): New pattern.
27802 (*rorsi3_insn_uxtw): Likewise.
27804 2013-03-19 Ian Bolton <ian.bolton@arm.com>
27806 * config/aarch64/aarch64.md (*extr<mode>5_insn): New pattern.
27807 (*extrsi5_insn_uxtw): Likewise.
27809 2013-03-19 Richard Biener <rguenther@suse.de>
27811 PR tree-optimization/56273
27812 * passes.c (init_optimization_passes): Move second VRP after DOM.
27814 2013-03-19 Uros Bizjak <ubizjak@gmail.com>
27816 * config/i386/i386.md (*movti_internal): Merge from
27817 *movti_internal_rex64 and *movti_internal_sse. Use x64 isa attribute.
27818 (*movdi_internal): Merge with *movdi_internal_rex64. Use x64 and
27819 nox64 isa attributes.
27821 2013-03-18 Richard Biener <rguenther@suse.de>
27823 * tree-ssa-structalias.c (find): Use gcc_checking_assert.
27825 (merge_node_constraints): Likewise.
27826 (build_succ_graph): Likewise.
27827 (valid_graph_edge): Inline into single caller.
27828 (unify_nodes): Likewise. Use bitmap_set_bit return value
27830 (scc_visit): Fix formatting and variable use.
27831 (do_sd_constraint): Use gcc_checking_assert.
27832 (do_ds_constraint): Likewise.
27833 (do_complex_constraint): Likewise.
27834 (condense_visit): Likewise. Cleanup.
27835 (dump_pred_graph): New function.
27836 (perform_var_substitution): Dump the pred-graph before
27837 variable substitution.
27838 (find_equivalent_node): Use gcc_checking_assert.
27839 (rewrite_constraints): Guard checking loop with ENABLE_CHECKING.
27841 2013-03-18 Richard Biener <rguenther@suse.de>
27843 * tree-vect-loop-manip.c (vect_create_cond_for_alias_checks):
27844 Remove cond_expr_stmt_list argument and do not gimplify the
27846 (vect_loop_versioning): Adjust.
27847 * tree-vect-data-refs.c (vect_create_addr_base_for_vector_ref):
27848 Cleanup to use less temporaries.
27849 (vect_create_data_ref_ptr): Cleanup.
27851 2013-03-18 Jakub Jelinek <jakub@redhat.com>
27853 PR tree-optimization/56635
27854 * fold-const.c (operand_equal_p): For MEM_REF and TARGET_MEM_REF,
27855 require types_compatible_p types.
27857 2013-03-18 Nick Clifton <nickc@redhat.com>
27859 * config/stormy16/stormy16.c (xstormy16_expand_prologue): Remove
27860 spurious backslash.
27862 * config/mn10300/mn10300.c (mn10300_get_live_callee_saved_regs):
27863 Add missing line to comment describing function.
27865 2013-03-18 Richard Biener <rguenther@suse.de>
27867 PR tree-optimization/56210
27868 * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
27869 Handle string / character search functions.
27870 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Likewise.
27872 2013-03-18 Richard Biener <rguenther@suse.de>
27874 PR middle-end/56483
27875 * cfgexpand.c (expand_gimple_cond): Inline gimple_cond_single_var_p
27876 and implement properly.
27877 * gimple.h (gimple_cond_single_var_p): Remove.
27879 2013-03-18 Richard Biener <rguenther@suse.de>
27881 * tree-data-ref.h (find_data_references_in_loop): Declare.
27882 * tree-data-ref.c (get_references_in_stmt): Use a stack
27883 vector pre-allocated in the callers.
27884 (find_data_references_in_stmt): Adjust.
27885 (graphite_find_data_references_in_stmt): Likewise.
27886 (create_rdg_vertices): Likewise.
27887 (find_data_references_in_loop): Export.
27888 * tree-vect-data-refs.c (vect_analyze_data_ref_dependences):
27889 Compute dependences here...
27890 (vect_analyze_data_refs): ...not here. When we encounter
27891 a non-vectorizable data reference in basic-block vectorization
27892 truncate the data reference vector. Do not bother to
27893 fixup data-dependence information for gather loads.
27894 * tree-vect-slp.c (vect_slp_analyze_bb_1): Check the number
27895 of data references, as reported.
27897 2013-03-18 Richard Biener <rguenther@suse.de>
27899 PR tree-optimization/3713
27900 * tree-ssa-sccvn.c (visit_copy): Simplify. Always propagate
27901 has_constants and expr.
27902 (stmt_has_constants): Properly valueize SSA names when deciding
27903 whether the stmt has constants.
27905 2013-03-18 Richard Biener <rguenther@suse.de>
27907 * tree-ssa-loop-manip.c (find_uses_to_rename): Do not scan the
27908 whole function when there is nothing to do.
27909 * tree-ssa-loop.c (pass_vectorize): Remove TODO_update_ssa.
27910 * tree-vectorizer.c (vectorize_loops): Update virtual and
27911 loop-closed SSA once.
27912 * tree-vect-loop.c (vect_transform_loop): Do not update SSA here.
27914 2013-03-18 Richard Biener <rguenther@suse.de>
27916 PR middle-end/56113
27917 * domwalk.c (bb_postorder): New global static.
27918 (cmp_bb_postorder): New function.
27919 (walk_dominator_tree): Replace scheme imposing an order for
27920 visiting dominator sons by one sorting them at the time they
27921 are pushed on the stack.
27923 2013-03-18 Richard Biener <rguenther@suse.de>
27925 PR tree-optimization/39326
27926 * tree-ssa-loop-im.c (refs_independent_p): Exploit symmetry.
27927 (struct mem_ref): Replace mem member with ao_ref typed member.
27928 (MEM_ANALYZABLE): Adjust.
27929 (memref_eq): Likewise.
27930 (mem_ref_alloc): Likewise.
27931 (gather_mem_refs_stmt): Likewise.
27932 (mem_refs_may_alias_p): Use the ao_ref to query the alias oracle.
27933 (execute_sm_if_changed_flag_set): Adjust.
27934 (execute_sm): Likewise.
27935 (ref_always_accessed_p): Likewise.
27936 (refs_independent_p): Likewise.
27937 (can_sm_ref_p): Likewise.
27939 2013-03-18 Jakub Jelinek <jakub@redhat.com>
27942 * tree.c (tree_int_cst_min_precision): For integer_zerop (value)
27943 return 1 even for !unsignedp.
27945 2013-03-17 Uros Bizjak <ubizjak@gmail.com>
27947 * config/i386/i386.md (isa): Add x64 and nox64.
27948 (enabled): Define x64 for TARGET_64BIT and nox64 for !TARGET_64BIT.
27949 (*pushtf): Enable *roF alternative for x64 isa only.
27950 (*pushxf): Merge with *pushxf_nointeger. Use Yx*r constraint. Set
27951 mode attribute of integer alternatives to DImode for TARGET_64BIT.
27952 (*pushdf): Merge with *pushdf_rex64. Use x64 and nox64 isa attributes.
27953 (*movtf_internal): Merge from *movtf_internal_rex64 and
27954 *movtf_internal_sse. Use x64 and nox64 isa attributes.
27955 (*movxf_internal): Merge with *movxf_internal_rex64. Use x64 and
27956 nox64 isa attributes.
27957 (*movdf_internal): Merge with *movdf_internal_rex64. Use x64 and
27958 nox64 isa attributes.
27959 * config/i386/constraints.md (Yd): Do not set for TARGET_64BIT.
27961 2013-03-17 Uros Bizjak <ubizjak@gmail.com>
27963 * config/alpha/alpha.c (TARGET_LRA_P): New define.
27965 2013-03-17 Jakub Jelinek <jakub@redhat.com>
27968 * config/arm/arm.h (REG_CLASS_NAMES): Add "SFP_REG" and "AFP_REG"
27969 class names. Remove trailing comma after "ALL_REGS".
27971 2013-03-16 Jan Hubicka <jh@suse.cz>
27973 * cgraph.h (cgraph_get_create_real_symbol_node): Declare.
27974 * cgraph.c (cgraph_get_create_real_symbol_node): New function.
27975 * cgrpahbuild.c: Use cgraph_get_create_real_symbol_node instead
27976 of cgraph_get_create_node.
27977 * ipa-prop.c (ipa_make_edge_direct_to_target): Likewise.
27979 2013-03-16 Jason Merrill <jason@redhat.com>
27982 * dwarf2out.c (gen_generic_params_dies): Indicate default arguments
27983 with DW_AT_default_value.
27985 2013-03-16 Jakub Jelinek <jakub@redhat.com>
27987 * BASE-VER: Set to 4.9.0.
27989 2013-03-14 Andi Kleen <ak@linux.intel.com>
27992 * doc/extend.texi: Document __ATOMIC_HLE_ACQUIRE,
27993 __ATOMIC_HLE_RELEASE. Document __builtin_ia32 TSX intrincs.
27994 Document _x* TSX intrinsics.
27996 2013-03-14 Edgar E. Iglesias <edgar.iglesias@xilinx.com>
27997 David Holsgrove <david.holsgrove@xilinx.com>
27999 * configure.ac: Add MicroBlaze TLS support detection.
28000 * configure: Regenerate.
28001 * config/microblaze/microblaze-protos.h
28002 (microblaze_cannot_force_const_mem, microblaze_tls_referenced_p,
28003 symbol_mentioned_p, label_mentioned_p): Add prototypes.
28004 * config/microblaze/microblaze.c (microblaze_address_type): Add
28005 ADDRESS_TLS and tls_reloc address types.
28006 (microblaze_address_info): Add tls_reloc.
28007 (TARGET_HAVE_TLS): Define.
28008 (get_tls_get_addr, microblaze_tls_symbol_p, microblaze_tls_operand_p_1,
28009 microblaze_tls_referenced_p, microblaze_cannot_force_const_mem,
28010 symbol_mentioned_p, label_mentioned_p, tls_mentioned_p,
28011 load_tls_operand, microblaze_call_tls_get_addr,
28012 microblaze_legitimize_tls_address): New functions.
28013 (microblaze_classify_unspec): Handle UNSPEC_TLS.
28014 (get_base_reg): Use microblaze_tls_symbol_p.
28015 (microblaze_classify_address): Handle TLS.
28016 (microblaze_legitimate_pic_operand): Use symbol_mentioned_p,
28017 label_mentioned_p and microblaze_tls_referenced_p.
28018 (microblaze_legitimize_address): Handle TLS.
28019 (microblaze_address_insns): Handle ADDRESS_TLS.
28020 (pic_address_needs_scratch): Handle TLS.
28021 (print_operand_address): Handle TLS.
28022 (microblaze_expand_prologue): Check TLS_NEEDS_GOT.
28023 (microblaze_expand_move): Handle TLS.
28024 (microblaze_legitimate_constant_p): Check
28025 microblaze_cannot_force_const_mem and microblaze_tls_symbol_p.
28026 (TARGET_CANNOT_FORCE_CONST_MEM): Define.
28027 * config/microblaze/microblaze.h (TLS_NEEDS_GOT): Define
28028 (PIC_OFFSET_TABLE_REGNUM): Set.
28029 * config/microblaze/linux.h (TLS_NEEDS_GOT): Define.
28030 * config/microblaze/microblaze.md (UNSPEC_TLS): Define.
28031 (addsi3, movsi_internal2, movdf_internal): Update constraints
28032 * config/microblaze/predicates.md (arith_plus_operand): Define
28033 (move_operand): Redefine as move_src_operand,
28034 check microblaze_tls_referenced_p.
28036 2013-03-14 Ian Bolton <ian.bolton@arm.com>
28038 * config/aarch64/aarch64.md: (*and<mode>3nr_compare0): Use CC_NZ.
28039 (*and_<SHIFT:optab><mode>3nr_compare0): Likewise.
28041 2013-03-14 Ian Bolton <ian.bolton@arm.com>
28043 * config/aarch64/aarch64.c (aarch64_select_cc_mode): Return correct
28046 2013-03-14 Jakub Jelinek <jakub@redhat.com>
28048 PR tree-optimization/53265
28049 * common.opt (Waggressive-loop-optimizations): New option.
28050 * tree-ssa-loop-niter.c: Include tree-pass.h.
28051 (do_warn_aggressive_loop_optimizations): New function.
28052 (record_estimate): Call it. Don't add !is_exit bounds to loop->bounds
28053 if number_of_latch_executions returned constant.
28054 (estimate_numbers_of_iterations_loop): Call number_of_latch_executions
28055 early. If number_of_latch_executions returned constant, set
28056 nb_iterations_upper_bound back to it.
28057 * cfgloop.h (struct loop): Add warned_aggressive_loop_optimizations
28059 * Makefile.in (tree-ssa-loop-niter.o): Depend on $(TREE_PASS_H).
28060 * doc/invoke.texi (-Wno-aggressive-loop-optimizations): Document.
28062 * config/aarch64/t-aarch64-linux (MULTARCH_DIRNAME): Remove.
28063 (MULTILIB_OSDIRNAMES): Set.
28064 * genmultilib: If defaultosdirname doesn't start with :: , set
28065 defaultosdirname2 instead, clear it and emit two . multilib_raw
28066 entries instead of just one.
28068 2013-03-14 Kaz Kojima <kkojima@gcc.gnu.org>
28070 * config/sh/linux.h (TARGET_DEFAULT): Remove MASK_USERMODE.
28071 (SUBTARGET_OVERRIDE_OPTIONS): Set TARGET_USERMODE as default.
28072 * config/sh/netbsd-elf.h (TARGET_DEFAULT): Remove MASK_USERMODE.
28073 (SUBTARGET_OVERRIDE_OPTIONS): New.
28075 2013-03-13 Oleg Endo <olegendo@gcc.gnu.org>
28078 * config/sh/sh.opt (FPU_SINGLE_ONLY): New mask.
28079 (musermode): Convert to Var(TARGET_USERMODE).
28080 * config/sh/sh.h (SELECT_SH2A_SINGLE_ONLY, SELECT_SH4_SINGLE_ONLY,
28081 MASK_ARCH): Add MASK_FPU_SINGLE_ONLY.
28082 * config/sh/sh.c (sh_option_override): Use
28083 TARGET_FPU_DOUBLE || TARGET_FPU_SINGLE_ONLY for call-fp case.
28084 * config/sh/sh.md (udivsi3_i1, divsi3_i1): Remove ! TARGET_SH4
28086 (udivsi3_i4, divsi3_i4): Use TARGET_FPU_DOUBLE condition instead of
28088 (udivsi3_i4_single, divsi3_i4_single): Use
28089 TARGET_FPU_SINGLE_ONLY || TARGET_FPU_DOUBLE instead of TARGET_HARD_SH4.
28091 2013-03-13 Dave Korn <dave.korn.cygwin@gmail.com>
28093 * config/i386/cygwin.h (SHARED_LIBGCC_SPEC): Make shared libgcc the
28096 2013-03-13 Richard Biener <rguenther@suse.de>
28098 PR tree-optimization/56608
28099 * tree-vect-slp.c (vect_schedule_slp): Do not remove scalar
28100 calls when vectorizing basic-blocks.
28102 2013-03-13 Jakub Jelinek <jakub@redhat.com>
28105 * config.gcc: On arm, mips, sh and sparc add vxworks-dummy.h to
28108 2013-03-12 Jakub Jelinek <jakub@redhat.com>
28110 * doc/invoke.texi (-Waddr-space-convert): Move into the table earlier.
28112 2013-03-11 Jan Hubicka <jh@suse.cz>
28115 * lto-streamer-out.c (output_symbol_p): Skip references from
28116 constructors of external variables.
28118 2013-03-11 Jan Hubicka <jh@suse.cz>
28120 PR middle-end/56571
28121 * valtrack.c (cleanup_auto_inc_dec): Unshare clobbers originating
28123 * emit-rtl.c (verify_rtx_sharing): Likewise.
28124 (copy_insn_1): Likewise.
28125 * rtl.c (copy_rtx): Likewise.
28127 2013-03-11 Georg-Johann Lay <avr@gjlay.de>
28130 * config/avr/avr.c (avr_print_operand): Add space after '%c' in
28131 output_operand_lossage message.
28133 2013-03-11 Richard Earnshaw <rearnsha@arm.com>
28136 * arm.c (shift_op): Validate RTL pattern on the fly.
28137 (arm_print_operand, case 'S'): Don't use shift_operator to validate
28140 2013-03-10 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
28143 * config/pa/pa.md (call_value): Check for calls to powf and direct to
28144 new call patterns that clobber %fr12.
28145 (call_val_powf, call_val_powf_pic, call_val_powf_64bit): New insn,
28146 split and postreload patterns.
28147 * config/pa/pa.c (pa_conditional_register_usage): Revert marking
28148 registers %fr12 and %fr12R as call used.
28150 2013-03-09 Steven Bosscher <steven@gcc.gnu.org>
28152 * dse.c (delete_dead_store_insn): Respect TDF_DETAILS.
28153 (canon_address, record_store, replace_read, check_mem_read_rtx,
28154 scan_insn, dse_step1, dse_step2_init, dse_step2_spill,
28155 dse_step4, dse_step5_nospill, dse_step5_spill, dse_step6,
28156 rest_of_handle_dse): Likewise.
28158 2013-03-09 Richard Sandiford <rdsandiford@googlemail.com>
28160 PR middle-end/56524
28161 * tree.h (tree_optimization_option): Rename target_optabs to optabs.
28163 (TREE_OPTIMIZATION_OPTABS): Update after previous field change.
28164 (TREE_OPTIMIZATION_BASE_OPTABS): New macro.
28165 (save_optabs_if_changed): Replace with...
28166 (init_tree_optimization_optabs): ...this.
28167 * optabs.c (save_optabs_if_changed): Rename to...
28168 (init_tree_optimization_optabs): ...this. Take the optimization node
28169 as argument. Do nothing if the base optabs are already correct.
28170 Reuse the existing TREE_OPTIMIZATION_OPTABS memory if we need
28171 to recompute optabs.
28172 * function.h (function): Remove optabs field.
28173 * function.c (invoke_set_current_function_hook): Call
28174 init_tree_optimization_optabs. Use the result to initialize
28177 2013-02-27 Aldy Hernandez <aldyh@redhat.com>
28179 * trans-mem.c (expand_transaction): Do not set PR_INSTRUMENTEDCODE
28180 if GTMA_HAS_NO_INSTRUMENTATION.
28181 (generate_tm_state): Keep GTMA_HAS_NO_INSTRUMENTATION bit.
28182 (ipa_tm_transform_transaction): Set GTMA_HAS_NO_INSTRUMENTATION.
28183 * gimple.h (GTMA_HAS_NO_INSTRUMENTATION): Define.
28184 * gimple-pretty-print.c (dump_gimple_transaction): Handle
28185 GTMA_HAS_NO_INSTRUMENTATION.
28187 2013-03-08 Jakub Jelinek <jakub@redhat.com>
28189 * config/gnu-user.h (LIBTSAN_EARLY_SPEC): Don't link against
28192 2013-03-08 Marek Polacek <polacek@redhat.com>
28193 Jakub Jelinek <jakub@redhat.com>
28195 PR tree-optimization/56478
28196 * predict.c (is_comparison_with_loop_invariant_p): Change the
28197 type of loop_step to tree.
28198 (predict_loops): Adjust.
28199 (predict_iv_comparison): Perform the computations on double_ints.
28201 2013-03-08 Richard Biener <rguenther@suse.de>
28203 PR tree-optimization/56570
28204 * tree-cfg.c (verify_expr_location_1): Verify locations for
28206 * tree-sra.c (create_access_replacement): Strip locations
28207 from DECL_DEBUG_EXPRs.
28209 2013-03-08 Richard Biener <rguenther@suse.de>
28211 * tree-inline.c (expand_call_inline): Do not associate
28212 a BLOCK with the location in BLOCK_SOURCE_LOCATION.
28213 * tree-cfg.c (verify_location): Verify BLOCK_SOURCE_LOCATION.
28215 2013-03-08 Richard Biener <rguenther@suse.de>
28217 * tree-ssa-ter.c (is_replaceable_p): Do not TER across location
28218 or block changes with -Og. Fix for location / block encoding
28219 changes and PHI arguments with locations.
28221 2013-03-07 Steven Bosscher <steven@gcc.gnu.org>
28223 * bitmap.c (struct bitmap_descriptor_d): Use unsigned HOST_WIDEST_INT
28225 (struct output_info): Likewise.
28226 (register_overhead): Remove bad gcc_assert.
28227 (bitmap_find_bit): If there is only a single bitmap element, do not
28228 count a miss as a search.
28229 (print_statistics): Update for counter type changes.
28230 (dump_bitmap_statistics): Likewise. Print headers such that they
28231 are properly lined up with the printed counters.
28233 2013-03-07 Jakub Jelinek <jakub@redhat.com>
28235 PR tree-optimization/56559
28236 * tree-ssa-reassoc.c (zero_one_operation): When looking at rhs2,
28237 check that it has only a single use.
28239 2013-03-07 Richard Biener <rguenther@suse.de>
28241 * doc/invoke.texi (fwhole-program): Discourage use in combination
28244 2013-03-06 Jakub Jelinek <jakub@redhat.com>
28246 * config/arm/t-arm (TM_H, OPTIONS_H_EXTRA): Add arm-cores.def.
28248 PR tree-optimization/56539
28249 * tree-tailcall.c (adjust_return_value_with_ops): Use GSI_SAME_STMT
28250 instead of GSI_CONTINUE_LINKING as last argument to
28251 force_gimple_operand_gsi. Adjust function comment.
28253 * config/aarch64/t-aarch64 (TM_H, OPTIONS_H_EXTRA): Add
28256 PR middle-end/56548
28257 * expr.c (expand_cond_expr_using_cmove): When expanding cmove in
28258 promoted mode, convert the result back to the original mode.
28260 2013-03-06 Richard Biener <rguenther@suse.de>
28262 PR middle-end/56294
28263 * tree-into-ssa.c (insert_phi_nodes_for): Add dumping.
28264 (insert_updated_phi_nodes_compare_uids): New function.
28265 (update_ssa): Sort symbols_to_rename after UID before
28266 traversing it to insert PHI nodes.
28268 2013-03-06 Richard Biener <rguenther@suse.de>
28270 PR middle-end/50494
28271 * tree-vect-data-refs.c (vect_can_force_dr_alignment_p):
28272 Do not adjust alignment of DECL_IN_CONSTANT_POOL decls.
28275 2013-02-13 Richard Biener <rguenther@suse.de>
28278 * varasm.c (output_constant_def_1): Get the decl representing
28279 the constant as argument.
28280 (output_constant_def): Wrap output_constant_def_1.
28281 (make_decl_rtl): Use output_constant_def_1 with the decl
28282 representing the constant.
28283 (build_constant_desc): Optionally re-use a decl already
28284 representing the constant.
28285 (tree_output_constant_def): Adjust.
28287 2013-03-06 Joey Ye <joey.ye@arm.com>
28290 * gcc.c (convert_white_space): New function.
28291 (main): Handles white space in function name.
28293 2013-03-06 Oleg Endo <olegendo@gcc.gnu.org>
28296 * config/sh/sh.c (sh_option_override): Check for TARGET_DYNSHIFT
28297 instead of TARGET_SH2 for call-table case. Do not set sh_div_strategy
28298 to SH_DIV_CALL_TABLE for TARGET_SH2.
28299 * config.gcc (sh_multilibs): Add m2 and m2a to sh*-*-linux* multilib
28301 * doc/invoke.texi (SH options): Document mdiv= call-div1, call-fp,
28302 call-table options.
28304 2013-03-05 Sterling Augustine <saugustine@google.com>
28305 Cary Coutant <ccoutant@google.com>
28308 * dwarf2out.c (resolve_addr): Don't call
28309 remove_loc_list_addr_table_entries a second time for the same
28312 2013-03-05 Jakub Jelinek <jakub@redhat.com>
28315 * cfgexpand.c (expand_debug_parm_decl): Call copy_rtx on incoming.
28316 (avoid_complex_debug_insns): New function.
28317 (expand_debug_locations): Call it.
28319 PR rtl-optimization/56484
28320 * ifcvt.c (noce_process_if_block): If else_bb is NULL, avoid extending
28321 lifetimes of hard registers on small register class machines.
28323 2013-03-05 David Holsgrove <david.holsgrove@xilinx.com>
28325 * config/microblaze/microblaze-protos.h: Rename
28326 microblaze_is_interrupt_handler to microblaze_is_interrupt_variant.
28327 * config/microblaze/microblaze.c (microblaze_attribute_table): Add
28329 (microblaze_fast_interrupt_function_p): New function.
28330 (microblaze_is_interrupt_handler): Rename to
28331 microblaze_is_interrupt_variant and add fast_interrupt check.
28332 (microblaze_must_save_register): Use microblaze_is_interrupt_variant.
28333 (save_restore_insns): Likewise.
28334 (compute_frame_size): Likewise.
28335 (microblaze_function_prologue): Add FAST_INTERRUPT_NAME.
28336 (microblaze_globalize_label): Likewise.
28337 * config/microblaze/microblaze.h: Define FAST_INTERRUPT_NAME.
28338 * config/microblaze/microblaze.md: Use wrapper
28339 microblaze_is_interrupt_variant.
28341 2013-03-05 Kai Tietz <ktietz@redhat.com>
28343 * sdbout.c (sdbout_one_type): Switch to current function's section
28344 supporting cold/hot.
28346 2013-03-05 David Holsgrove <david.holsgrove@xilinx.com>
28348 * doc/invoke.texi (MicroBlaze): Add -mbig-endian, -mlittle-endian,
28351 2013-03-05 Jakub Jelinek <jakub@redhat.com>
28353 PR middle-end/56461
28354 * ggc-common.c (gt_pch_save): For ENABLE_VALGRIND_CHECKING,
28355 if VALGRIND_GET_VBITS is defined, temporarily make object
28356 memory all defined, and restore previous valgrind addressability
28357 and definability afterwards. Free this_object at the end.
28359 PR middle-end/56461
28360 * lra.c (lra): Call lra_clear_live_ranges if live_p,
28361 right before calling lra_create_live_ranges, also call it
28362 when clearing live_p. Only call lra_clear_live_ranges
28363 at the end if live_p.
28365 PR middle-end/56461
28366 * sched-deps.c (delete_dep_node): Free DEP_REPLACE.
28368 2013-03-05 Richard Biener <rguenther@suse.de>
28370 PR tree-optimization/56521
28371 * tree-ssa-sccvn.c (set_value_id_for_result): Always initialize
28374 2013-03-05 Steven Bosscher <steven@gcc.gnu.org>
28377 * except.h (remove_unreachable_eh_regions): New prototype.
28378 * except.c (remove_eh_handler_splicer): New function, split out
28379 of remove_eh_handler.
28380 (remove_eh_handler): Use remove_eh_handler_splicer. Add comment
28381 warning about running it on many EH regions one at a time.
28382 (remove_unreachable_eh_regions_worker): New function, walk the
28383 EH tree in depth-first order and remove non-marked regions.
28384 (remove_unreachable_eh_regions): New function.
28385 * tree-eh.c (mark_reachable_handlers): New function, split out
28386 from remove_unreachable_handlers.
28387 (remove_unreachable_handlers): Use mark_reachable_handlers and
28388 remove_unreachable_eh_regions.
28389 (remove_unreachable_handlers_no_lp): Use mark_reachable_handlers
28390 and remove_unreachable_eh_regions.
28392 2013-03-05 Richard Biener <rguenther@suse.de>
28394 PR middle-end/56525
28395 * loop-init.c (fix_loop_structure): Remove loops in two stages,
28396 not freeing them until the end.
28398 2013-03-05 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
28400 * config/s390/s390.h: Define DWARF2_ASM_LINE_DEBUG_INFO.
28402 2013-03-05 Richard Biener <rguenther@suse.de>
28404 PR tree-optimization/56270
28405 * tree-vect-slp.c (vect_schedule_slp): Clear vectorized stmts
28406 of loads after scheduling an SLP instance.
28408 2013-03-05 Jakub Jelinek <jakub@redhat.com>
28410 * Makefile.in (dg_target_exps): Add aarch64.exp, epiphany.exp and
28412 (check_gcc_parallelize): Run guality.exp as a separate job from
28413 vect.exp with unsorted.exp and $(dg_target_exps) separately from
28414 struct-layout-1.exp with stackalign.exp.
28416 * alias.c (init_alias_analysis): Clear reg_known_equiv_p bitmap.
28418 PR middle-end/56461
28419 * tree-vect-slp.c (vect_supported_load_permutation_p): Free
28420 load_index sbitmap even if some bit in it isn't set.
28422 PR middle-end/56461
28423 * tree-ssa-loop-niter.c (bb_queue): Remove typedef.
28424 (discover_iteration_bound_by_body_walk): Change queues to
28425 vec<vec<basic_block> > and queue to vec<basic_block>. Fix up
28426 spelling in comment. Call safe_push on queues[bound_index] directly.
28427 Release queues[queue_index] in every iteration unconditionally.
28428 Release bounds vector.
28430 PR middle-end/56461
28431 * tree-vect-stmts.c (free_stmt_vec_info_vec): Call
28432 free_stmt_vec_info on any left-over stmt_vec_info in the vector.
28433 * tree-vect-loop.c (vect_create_epilog_for_reduction): Release
28436 2013-03-05 Richard Biener <rguenther@suse.de>
28439 * tree-inline.c (remap_blocks_to_null): New function.
28440 (expand_call_inline): When expanding a call stmt without
28441 an associated block inline remap all callee blocks to NULL.
28443 2013-03-05 Jakub Jelinek <jakub@redhat.com>
28445 PR rtl-optimization/56494
28446 * simplify-rtx.c (simplify_truncation): If C is narrower than A,
28447 optimize (truncate:A (subreg:B (truncate:C X) 0)) into
28448 (subreg:A (truncate:C X) 0) instead of (truncate:A X).
28450 PR middle-end/56461
28451 * sel-sched-ir.c (free_sched_pools): Release
28452 succs_info_pool.stack[succs_info_pool.max_top] vectors too
28453 if succs_info_pool.max_top isn't -1.
28456 * opts.c (opts_obstack, opts_concat): Moved to...
28457 * opts-common.c (opts_obstack, opts_concat): ... here.
28459 2013-03-04 Jakub Jelinek <jakub@redhat.com>
28461 PR middle-end/56461
28462 * diagnostic.c (diagnostic_append_note): Save and restore old prefix.
28464 2013-03-04 Martin Jambor <mjambor@suse.cz>
28466 * tree-dfa.c (get_or_create_ssa_default_def): Use parameter fn in
28467 all appropriate places.
28469 2013-01-04 Eric Botcazou <ebotcazou@adacore.com>
28471 PR tree-optimization/56424
28472 * ipa-split.c (split_function): Do not set the RSO flag if result is
28473 not by reference and its type is a register type.
28475 2013-03-04 David Holsgrove <david.holsgrove@xilinx.com>
28477 * config/microblaze/microblaze.c (microblaze_valid_pic_const): New
28478 (microblaze_legitimate_pic_operand): Likewise
28479 * config/microblaze/microblaze.h (LEGITIMATE_PIC_OPERAND_P): calls
28480 new function microblaze_legitimate_pic_operand
28481 * config/microblaze/microblaze-protos.h
28482 (microblaze_legitimate_pic_operand): Declare.
28484 2013-03-04 Edgar E. Iglesias <edgar.iglesias@gmail.com>
28486 * config/microblaze/predicates.md (call_insn_simple_operand):
28487 New predicate for supported rtx code types.
28488 * config/microblaze/microblaze.md (call_internal1): Use
28489 call_insn_simple_operand predicate.
28491 2013-03-04 Jakub Jelinek <jakub@redhat.com>
28493 PR middle-end/56461
28494 * tree-loop-distribution.c (ldist_gen): Call partition_free after each
28495 partitions.ordered_remove.
28497 PR middle-end/56461
28498 * tree-vect-stmts.c (vectorizable_conversion): Don't call
28499 vec_oprnds0.create (1) for modifier == NONE.
28501 PR middle-end/56461
28502 * tree-vect-stmts.c (vectorizable_shift): Don't call create methods
28503 on vec_oprnds0 or vec_oprnds1 before loop, only call it on
28504 vec_oprnds1 right before pushing anything to it for
28507 PR middle-end/56461
28508 * tree-vect-loop.c (destroy_loop_vec_info): For !clean_stmts, just
28509 set nbbs to 0 instead of having separate code path.
28510 (vect_analyze_loop_form): Call destroy_loop_vec_info with true
28511 instead of false as last argument if returning NULL.
28513 2013-03-03 Sandra Loosemore <sandra@codesourcery.com>
28515 * target.def (TARGET_OPTION_VALID_ATTRIBUTE_P): Update comments;
28516 the attribute is now called "target" instead of "option".
28517 (TARGET_OPTION_PRAGMA_PARSE): Likewise, for the pragma.
28518 * doc/tm.texi.in (Target Attributes): Likewise document the correct
28519 attribute/pragma name for TARGET_OPTION_VALID_P and
28520 TARGET_OPTION_PRAGMA_PARSE. Also copy-edit and correct markup.
28521 * doc/tm.texi: Regenerated.
28523 2013-03-02 David Holsgrove <david.holsgrove@xilinx.com>
28525 * config/microblaze/microblaze.c:
28526 Check mcpu, pcmp requirement and set TARGET_REORDER to 0 if not met.
28527 * config/microblaze/microblaze.h: Add -mxl-reorder to
28529 * config/microblaze/microblaze.md: New bswapsi2 and bswaphi2.
28530 instructions emitted if TARGET_REORDER.
28531 * config/microblaze/microblaze.opt: New option -mxl-reorder set to 1
28532 or 0 for -m/-mno case, but initialises as 2 to detect default use case
28535 2013-03-01 Xinliang David Li <davidxl@google.com>
28537 * tree-ssa-uninit.c (compute_control_dep_chain): Limit post-dom
28540 2013-03-01 Jakub Jelinek <jakub@redhat.com>
28542 PR middle-end/56461
28543 * tree-ssa-loop-ivcanon.c (tree_estimate_loop_size): Release path
28544 vector even when returning true. Fix up function comment formatting.
28546 PR middle-end/56461
28547 * ira-build.c (ira_loop_nodes_count): New variable.
28548 (create_loop_tree_nodes): Initialize it.
28549 (finish_loop_tree_nodes): Use it instead of looking at current_loops.
28551 PR middle-end/56461
28552 * tree-vect-data-refs.c (vect_permute_store_chain): Avoid using copy
28553 method on dr_chain and result_chain.
28554 * tree-vect-stmts.c (vectorizable_store): Only call
28555 result_chain.create if j == 0.
28557 PR middle-end/56461
28558 * tree-vect-stmts.c (vect_create_vectorized_promotion_stmts): Call
28559 vec_oprnds0->release (); rather than vec_oprnds0->truncate (0)
28560 before overwriting it.
28562 2013-03-01 Tobias Burnus <burnus@net-b.de>
28564 * doc/extended.texi (C Extensions): Change order in @menu
28566 (Other MIPS Built-in Functions): Move last MIPS entry before
28567 "picoChip Built-in Functions".
28568 (SH Built-in Functions): Move after RX Built-in Functions.
28569 * doc/gcc.texi (Introduction): Change order in @menu
28571 * doc/md.texi (Constraints): Ditto.
28572 * gty.texi (Type Information): Ditto.
28573 (User-provided marking routines for template types): Make
28575 * doc/invoke.texi (AArch64 Options): Move before
28576 "Adapteva Epiphany Options".
28578 2013-02-28 Konstantin Serebryany <konstantin.s.serebryany@gmail.com>
28579 Jakub Jelinek <jakub@redhat.com>
28582 * asan.c (gate_asan): Lookup no_sanitize_address instead of
28583 no_address_safety_analysis attribute.
28584 * doc/extend.texi (no_address_safety_attribute): Rename to
28585 no_sanitize_address attribute, mention no_address_safety_analysis
28586 attribute as deprecated alias.
28588 2013-02-28 Jakub Jelinek <jakub@redhat.com>
28590 PR middle-end/56461
28591 * tree-vectorizer.h (vect_get_slp_defs): Change 3rd argument
28592 type to vec<vec<tree> > *.
28593 * tree-vect-slp.c (vect_get_slp_defs): Likewise. Change vec_defs
28594 to be vec<tree> instead of vec<tree> *, set vec_defs
28595 to vNULL and call vec_defs.create (number_of_vects), adjust other
28597 * tree-vect-stmts.c (vect_get_vec_defs, vectorizable_call,
28598 vectorizable_condition): Adjust vect_get_slp_defs callers.
28600 2013-02-28 James Greenhalgh <james.greenhalgh@arm.com>
28602 * config/aarch64/aarch64.c
28603 (aarch64_float_const_representable): Remove unused variable.
28605 2013-02-28 James Greenhalgh <james.greenhalgh@arm.com>
28607 * config/aarch64/aarch64.c (aarch64_mangle_type): Make static.
28609 2013-02-28 James Greenhalgh <james.greenhalgh@arm.com>
28611 * config/aarch64/aarch64-builtins.c
28612 (aarch64_init_simd_builtins): Make static.
28614 2013-02-28 James Greenhalgh <james.greenhalgh@arm.com>
28616 * config/aarch64/aarch64.c
28617 (aarch64_simd_make_constant): Make static.
28619 2013-02-28 Martin Jambor <mjambor@suse.cz>
28621 * tree-sra.c (load_assign_lhs_subreplacements): Do not put replacements
28622 with no initialization to the RHS of debug statements.
28624 2013-02-28 Martin Jambor <mjambor@suse.cz>
28626 PR tree-optimization/56294
28627 * tree-sra.c (analyze_access_subtree): Create replacement declarations.
28629 (get_access_replacement): Do not call create_access_replacement.
28630 Assert a replacement exists.
28631 (get_repl_default_def_ssa_name): Create the replacement declaration
28634 2013-02-28 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
28636 * config/arm/arm.c (arm_output_mi_thunk): Call final_start_function and
28637 final_end_function.
28639 2013-02-28 Marek Polacek <polacek@redhat.com>
28641 PR rtl-optimization/56466
28642 * loop-unroll.c (unroll_and_peel_loops): Call fix_loop_structure
28643 if we're changing a loop.
28644 (peel_loops_completely): Likewise.
28646 2013-02-28 Paolo Carlini <paolo.carlini@oracle.com>
28649 * doc/invoke.texi ([-Wctor-dtor-privacy]): Complete.
28651 2013-02-28 Georg-Johann Lay <avr@gjlay.de>
28654 * config/avr/avr.c (avr_init_builtins): Use 'n' instead of empty
28655 macro parameters with: FX_FTYPE_FX, FX_FTYPE_FX_INT, INT_FTYPE_FX,
28656 INTX_FTYPE_FX, FX_FTYPE_INTX.
28657 * config/avr/builtins.def: Adjust respective DEF_BUILTIN.
28659 2013-02-28 Georg-Johann Lay <avr@gjlay.de>
28661 * avr/avr-mcus.def (ata5272, ata5505, attiny1634, ata6285)
28662 (ata6286, atmega8a, atmega48pa, ata5790, ata5790n, ata5795)
28663 (atmega164pa, atmega165pa, atmega168pa, atmega16hva, atmega16hvb)
28664 (atmega16hvbrevb, atmega16m1, atmega16u4, atmega26hvg, atmega32a)
28665 (atmega32a, atmega3250pa, atmega3290pa, atmega32c1, atmega32m1)
28666 (atmega32u4, atmega32u6, atmega64a, atmega6490a, atmega6490p)
28667 (atmega64c1, atmega64m1, atmega64rfa2, atmega64rfr2, atmega32hvb)
28668 (atmega32hvbrevb, atmega16hva2, atmega48hvf, at90pwm161)
28669 (atmega128a, atmega1284, atmxt112sl, atmxt224, atmxt224e)
28670 (atmxt336s, atxmega16a4u, atxmega16c4, atxmega32a4u, atxmega32c4)
28671 (atxmega32e5, atxmega64a3u, atxmega64a4u, atxmega64b1, atxmega64b3)
28672 (atxmega64c3, atxmega64d4, atxmega128a3u, atxmega128b1)
28673 (atxmega128b3, atxmega128c3, atxmega128d4, atmxt540s, atmxt540sreva)
28674 (atxmega192a3u, atxmega192c3, atxmega256a3u, atxmega256c3)
28675 (atxmega384c3, atxmega384d3, atxmega128a4u): New AVR_MCU.
28676 (avrxmega6): Increase max flash segments from 5 to 6.
28677 * config/avr/t-multilib: Regenerate.
28678 * config/avr/avr-tables.opt: Regenerate.
28679 * doc/avr-mmcu.texi: Regenerate.
28681 2013-02-28 Georg-Johann Lay <avr@gjlay.de>
28683 * config/avr/avr.h (device_to_arch): Rename to device_to_ld.
28684 (avr_device_to_arch): Rename to avr_device_to_ld.
28685 (avr_device_to_as): New prototype.
28686 (EXTRA_SPEC_FUNCTIONS): Add device_to_as.
28687 (ASM_SPEC): Use device_to_as to get -mmcu= and -mno-skip-bug=.
28688 * config/avr/driver-avr.c (avr_device_to_as): New.
28689 (avr_device_to_arch): Rename to avr_device_to_ld.
28691 2013-02-27 Jakub Jelinek <jakub@redhat.com>
28693 PR middle-end/56461
28694 * tree-vect-data-refs.c (vect_permute_load_chain): Avoid using copy
28695 method on dr_chain and result_chain.
28697 PR middle-end/56461
28698 * tree-ssa-loop-niter.c (maybe_lower_iteration_bound): Call
28699 pointer_set_destroy on not_executed_last_iteration.
28701 PR middle-end/56461
28702 * tree-vect-loop.c (vectorizable_reduction): Release vect_defs vector.
28704 PR middle-end/56461
28705 * ipa-pure-const.c (propagate): Use FOR_EACH_FUNCTION instead of
28706 FOR_EACH_DEFINED_FUNCTION when freeing state.
28708 PR middle-end/56461
28709 * df-scan.c (df_insn_delete): Use df_scan_free_mws_vec before
28711 (df_insn_rescan_debug_internal): Use df_scan_free_mws_vec before
28714 PR middle-end/56461
28715 * ipa-cp.c (decide_whether_version_node): Call vec_free on
28716 known_aggs[i].items and release known_aggs vector.
28718 PR middle-end/56461
28719 * ipa-reference.c (propagate): Free node_info even for alias nodes.
28721 2013-02-27 Edgar E. Iglesias <edgar.iglesias@gmail.com>
28723 * config/microblaze/microblaze.c (microblaze_emit_compare):
28724 Use xor for EQ/NE comparisions.
28725 * config/microblaze/microblaze.md (cstoresf4): Add constraints
28726 (cbranchsf4): Adjust operator to comparison_operator.
28728 2013-02-27 Jakub Jelinek <jakub@redhat.com>
28730 PR middle-end/56461
28731 * tree-flow.h (edge_var_map_vector): Change into va_heap, vl_embed
28733 * tree-ssa.c (redirect_edge_var_map_add): Use vec_safe_reserve and
28734 vec_safe_push, always update *slot.
28735 (redirect_edge_var_map_clear): Use vec_free.
28736 (redirect_edge_var_map_dup): Use vec_safe_copy and vec_safe_reserve.
28737 (free_var_map_entry): Use vec_free.
28738 * tree-cfgcleanup.c (remove_forwarder_block_with_phi): Use
28739 FOR_EACH_VEC_SAFE_ELT instead of FOR_EACH_VEC_ELT.
28741 2013-02-27 Andrey Belevantsev <abel@ispras.ru>
28743 PR middle-end/45472
28744 * sel-sched-ir.c (merge_expr): Also change vinsn of merged expr
28745 when the may_trap_p bit of the exprs being merged differs.
28746 Reorder tests for speculativeness in the logical and operator.
28748 2013-02-27 Jakub Jelinek <jakub@redhat.com>
28750 * incpath.c (add_standard_paths): Use reconcat instead of concat
28751 where appropriate and avoid leaking memory.
28753 * opts.h: Include obstack.h.
28754 (opts_concat): New prototype.
28755 (opts_obstack): New declaration.
28756 * opts.c (opts_concat): New function.
28757 (opts_obstack): New variable.
28758 (init_options_struct): Call gcc_init_obstack on opts_obstack.
28759 (finish_options): Use opts_concat instead of concat
28760 and XOBNEWVEC instead of XNEWVEC.
28761 * opts-common.c (generate_canonical_option, decode_cmdline_option,
28762 generate_option): Likewise.
28763 * Makefile.in (OPTS_H): Depend on $(OBSTACK_H).
28764 * lto-wrapper.c (main): Call gcc_init_obstack on opts_obstack.
28767 * stmt.c (expand_switch_as_decision_tree_p): If flag_pic
28768 and ASM_OUTPUT_ADDR_DIFF_ELT isn't defined, return true.
28770 2013-02-26 Jakub Jelinek <jakub@redhat.com>
28772 PR middle-end/56461
28773 * lra-spills.c (lra_spill): Free spill_hard_reg at the end.
28775 2013-02-26 Joern Rennecke <joern.rennecke@embecosm.com>
28777 * config/arm/arm.c (const_ok_for_dimode_op): Back out last change.
28778 (arm_block_move_unaligned_straight): Likewise.
28779 (arm_adjust_block_mem): Likewise.
28781 2013-02-26 Joern Rennecke <joern.rennecke@embecosm.com>
28784 * config/lm32/lm32.c (gen_int_relational): Remove unused variables
28785 temp, cond and label.
28786 * config/lm32/lm32.md (ashlsi3): Remove unused variable one.
28789 * config/c6x/c6x.c (dbx_register_map): Change to unsigned.
28790 * config/c6x/c6x.h (dbx_register_map): Update declaration.
28793 * config/cr16/cr16-protos.h: Move end of RTX_CODE guard below end
28794 of prologue/epilogue functions.
28797 * config/tilegx/tilegx.c (tilegx_expand_prologue):
28798 Remove unused variable cfa_offset.
28799 * config/tilepro/tilepro.c (tilepro_expand_prologue): Likewise.
28802 * config/mn10300/mn10300.c (mn10300_expand_epilogue): Avoid offset
28803 type promotion to unsigned.
28806 * config/arm/arm.c (const_ok_for_dimode_op): Make code consistent
28807 for HOST_WIDE_INT of 32 bit / same size as int.
28808 (arm_block_move_unaligned_straight): Likewise.
28809 (arm_adjust_block_mem): Likewise.
28812 * config/mep/t-mep (mep-pragma.o): Use ALL_COMPILERFLAGS instead of
28815 2013-02-26 Marek Polacek <polacek@redhat.com>
28817 PR tree-optimization/56426
28818 * tree-ssa-loop.c (tree_ssa_loop_init): Always call scev_initialize.
28820 2013-02-26 Richard Biener <rguenther@suse.de>
28823 * config/mn10300/mn10300.c (mn10300_scan_for_setlb_lcc): Remove
28824 unused variable loops.
28826 2013-02-26 Jakub Jelinek <jakub@redhat.com>
28828 PR tree-optimization/56448
28829 * fold-const.c (operand_equal_p) <case tcc_reference>: Don't look at
28830 TREE_SIDE_EFFECTS if flags contain OEP_CONSTANT_ADDRESS_OF.
28831 Clear OEP_CONSTANT_ADDRESS_OF from flags before recursing on second or
28832 later operands of the references, or even first operand for
28833 INDIRECT_REF, TARGET_MEM_REF or MEM_REF.
28835 PR tree-optimization/56443
28836 * tree-vect-stmts.c (get_vectype_for_scalar_type_and_size): For
28837 overaligned types, pass TYPE_UNSIGNED (scalar_type) as second argument
28838 to type_for_mode langhook.
28840 2013-02-25 Matt Turner <mattst88@gmail.com>
28842 * doc/invoke.texi: Document r4700.
28844 2013-02-25 Richard Biener <rguenther@suse.de>
28846 PR tree-optimization/56175
28847 * tree-ssa-forwprop.c (hoist_conversion_for_bitop_p): New predicate,
28849 (simplify_bitwise_binary): ... here. Also guard the conversion
28850 of (type) X op CST to (type) (X op ((type-x) CST)) with it.
28852 2013-02-25 Catherine Moore <clm@codesourcery.com>
28855 2013-02-24 Catherine Moore <clm@codesourcery.com>
28856 Maciej W. Rozycki <macro@codesourcery.com>
28857 Tom de Vries <tom@codesourcery.com>
28858 Nathan Sidwell <nathan@codesourcery.com>
28859 Iain Sandoe <iain@codesourcery.com>
28860 Nathan Froyd <froydnj@codesourcery.com>
28861 Chao-ying Fu <fu@mips.com>
28863 * doc/extend.texi: (micromips, nomicromips, nocompression):
28864 Document new function attributes.
28865 * doc/invoke.texi (minterlink-compressed, mmicromips,
28866 m14k, m14ke, m14kec): Document new options.
28867 (minterlink-mips16): Update documentation.
28868 * doc/md.texi (ZC, ZD): Document new constraints.
28869 * configure.ac (gcc_cv_as_micromips): Check if linker
28870 supports the .set micromips directive.
28871 * configure: Regenerate.
28872 * config.in: Regenerate.
28873 * config/mips/mips-tables.opt: Regenerate.
28874 * config/mips/micromips.md: New file.
28875 * constraints.md (ZC, AD): New constraints.
28876 * config/mips/predicates.md (movep_src_register): New predicate.
28877 (movep_src_operand): New predicate.
28878 (non_volatile_mem_operand): New predicate.
28879 * config/mips/mips.md (multimem): New type.
28880 (length): Differentiate between 17-bit and 18-bit branch offsets.
28881 (MOVEP1, MOVEP2): New mode iterator.
28882 (mov_<load>l): Use ZC constraint.
28883 (mov_<load>r): Likewise.
28884 (mov_<store>l): Likewise.
28885 (mov_<store>r): Likewise.
28886 (*branch_equality<mode>_inverted): Add microMIPS support.
28887 (*branch_equality<mode>): Likewise.
28888 (*jump_absolute): Likewise.
28889 (indirect_jump_<mode>): Likewise.
28890 (tablejump_<mode>): Likewise.
28891 (<optab>_internal): Likewise.
28892 (sibcall_internal): Likewise.
28893 (sibcall_value_internal): Likewise.
28894 (prefetch): Use constraint ZD.
28895 * config/mips/mips.opt (minterlink-compressed): New option.
28896 (minterlink-mips16): Now an alias for minterlink-compressed.
28897 (mmicromips): New option.
28898 * config/mips/sync.md (sync_compare_and_swap<mode>): Use ZR constraint.
28899 (compare_and_swap_12): Likewise.
28900 (sync_add<mode>): Likewise.
28901 (sync_<optab>_12): Likewise.
28902 (sync_old_<optab>_12): Likewise.
28903 (sync_new_<optab>_12): Likewise.
28904 (sync_nand_12): Likewise.
28905 (sync_old_nand_12): Likewise.
28906 (sync_new_nand_12): Likewise.
28907 (sync_sub<mode>): Likewise.
28908 (sync_old_add<mode>): Likewise.
28909 (sync_old_sub<mode>): Likewise.
28910 (sync_new_add<mode>): Likewise.
28911 (sync_new_sub<mode>): Likewise.
28912 (sync_<optab><mode>): Likewise.
28913 (sync_old_<optab><mode>): Likewise.
28914 (sync_new_<optab><mode>): Likewise.
28915 (sync_nand<mode>): Likewise.
28916 (sync_old_nand<mode>): Likewise.
28917 (sync_new_nand<mode>): Likewise.
28918 (sync_lock_test_and_set<mode>): Likewise.
28919 (test_and_set_12): Likewise.
28920 (atomic_compare_and_swap<mode>): Likewise.
28921 (atomic_exchange<mode>_llsc): Likewise.
28922 (atomic_fetch_add<mode>_llsc): Likewise.
28923 * config/mips/mips-cpus.def (m14kc, m14k): New processors.
28924 * config/mips/mips-protos.h (umips_output_save_restore): New prototype.
28925 (umips_save_restore_pattern_p): Likewise.
28926 (umips_load_store_pair_p): Likewise.
28927 (umips_output_load_store_pair): Likewise.
28928 (umips_movep_target_p): Likewise.
28929 (umips_12bit_offset_address_p): Likewise.
28930 * config/mips/mips.c (MIPS_MAX_FIRST_STEP): Update for microMIPS.
28931 (mips_base_mips16): Rename this...
28932 (mips_base_compression_flags): ...to this. Update all uses.
28933 (mips_attribute_table): Add micromips, nomicromips and nocompression.
28934 (mips_mips16_decl_p): Delete.
28935 (mips_nomips16_decl_p): Delete.
28936 (mips_get_compress_on_flags): New function.
28937 (mips_get_compress_off_flags): New function.
28938 (mips_get_compress_mode): New function.
28939 (mips_get_compress_on_name): New function.
28940 (mips_get_compress_off_name): New function.
28941 (mips_insert_attributes): Support multiple compression types.
28942 (mips_merge_decl_attributes): Likewise.
28943 (umips_12bit_offset_address_p): New function.
28944 (mips_start_function_definition): Emit .set micromips directive.
28945 (mips_call_may_need_jalx_p): New function.
28946 (mips_function_ok_for_sibcall): Add microMIPS support.
28947 (mips_print_operand_punctuation): Support short delay slots and
28949 (umips_swm_mask, umips_swm_encoding): New.
28950 (umips_build_save_restore): New function.
28951 (mips_for_each_saved_gpr_and_fpr): Add microMIPS support.
28952 (was_mips16_p): Remove.
28953 (old_compression_mode): New.
28954 (mips_set_compression_mode): New function.
28955 (mips_set_current_function): Add microMIPS support.
28956 (mips_option_override): Likewise.
28957 (umips_save_restore_pattern_p): New function.
28958 (umips_output_save_restore): New function.
28959 (umips_load_store_pair_p_1): New function.
28960 (umips_load_store_pair_p): New function.
28961 (umips_output_load_store_pair_1): New function.
28962 (umips_output_load_store_pair): New function.
28963 (umips_movep_target_p) New function.
28964 (mips_prepare_pch_save): Add microMIPS support.
28965 * config/mips/mips.h (TARGET_COMPRESSION): New.
28966 (TARGET_CPU_CPP_BUILTINS): Update macro
28967 to use new compression flags and to support microMIPS.
28968 (MIPS_ISA_LEVEL_SPEC): Add m14k processors.
28969 (MIPS_ARCH_FLOAT_SPEC): Likewise.
28970 (ISA_HAS_LWXS): Include TARGET_MICROMIPS.
28971 (ISA_HAS_LOAD_DELAY): Exclude TARGET_MICROMIPS.
28972 (ASM_SPEC): Support mmicromips and mno-micromips.
28973 (M16STORE_REG_P): New macro.
28974 (MIPS_CALL): Support TARGET_MICROMIPS.
28975 (MICROMIPS_J): New macro.
28976 (mips_base_mips16): Rename this...
28977 (mips_base_compression_flags): ...to this.
28978 (UMIPS_12BIT_OFFSET_P): New macro.
28979 * config/mips/t-sde: (MULTILIB_OPTIONS): Add microMIPS.
28980 (MULTILIB_DIRNAMES): Likewise.
28982 2013-02-25 Tom de Vries <tom@codesourcery.com>
28984 PR rtl-optimization/56131
28985 * insn-notes.def (INSN_NOTE_BASIC_BLOCK): Update comment.
28986 * cfgrtl.c (delete_insn): Don't reorder NOTE_INSN_DELETED_LABEL and
28987 NOTE_INSN_BASIC_BLOCK if BLOCK_FOR_INSN == NULL.
28989 2013-02-25 Tobias Burnus <burnus@net-b.de>
28991 * doc/invoke.texi (-fsanitize=): Move from optimization
28992 to debugging options.
28994 2013-02-25 Andrey Belevantsev <abel@ispras.ru>
28996 * sched-deps.c (sched_analyze_insn): Fix typo in comment.
28998 2013-02-25 Andrey Belevantsev <abel@ispras.ru>
28999 Alexander Monakov <amonakov@ispras.ru>
29001 PR middle-end/56077
29002 * sched-deps.c (sched_analyze_insn): When reg_pending_barrier,
29003 flush pending lists also on non-jumps. Adjust comment.
29005 2013-02-24 Catherine Moore <clm@codesourcery.com>
29006 Maciej W. Rozycki <macro@codesourcery.com>
29007 Tom de Vries <tom@codesourcery.com>
29008 Nathan Sidwell <nathan@codesourcery.com>
29009 Iain Sandoe <iain@codesourcery.com>
29010 Nathan Froyd <froydnj@codesourcery.com>
29011 Chao-ying Fu <fu@mips.com>
29013 * doc/extend.texi: (micromips, nomicromips, nocompression):
29014 Document new function attributes.
29015 * doc/invoke.texi (minterlink-compressed, mmicromips,
29016 m14k, m14ke, m14kec): Document new options.
29017 (minterlink-mips16): Update documentation.
29018 * doc/md.texi (ZC, ZD): Document new constraints.
29019 * configure.ac (gcc_cv_as_micromips): Check if linker
29020 supports the .set micromips directive.
29021 * configure: Regenerate.
29022 * config.in: Regenerate.
29023 * config/mips/mips-tables.opt: Regenerate.
29024 * config/mips/micromips.md: New file.
29025 * constraints.md (ZC, AD): New constraints.
29026 * config/mips/predicates.md (movep_src_register): New predicate.
29027 (movep_src_operand): New predicate.
29028 (non_volatile_mem_operand): New predicate.
29029 * config/mips/mips.md (multimem): New type.
29030 (length): Differentiate between 17-bit and 18-bit branch offsets.
29031 (MOVEP1, MOVEP2): New mode iterator.
29032 (mov_<load>l): Use ZC constraint.
29033 (mov_<load>r): Likewise.
29034 (mov_<store>l): Likewise.
29035 (mov_<store>r): Likewise.
29036 (*branch_equality<mode>_inverted): Add microMIPS support.
29037 (*branch_equality<mode>): Likewise.
29038 (*jump_absolute): Likewise.
29039 (indirect_jump_<mode>): Likewise.
29040 (tablejump_<mode>): Likewise.
29041 (<optab>_internal): Likewise.
29042 (sibcall_internal): Likewise.
29043 (sibcall_value_internal): Likewise.
29044 (prefetch): Use constraint ZD.
29045 * config/mips/mips.opt (minterlink-compressed): New option.
29046 (minterlink-mips16): Now an alias for minterlink-compressed.
29047 (mmicromips): New option.
29048 * config/mips/sync.md (sync_compare_and_swap<mode>): Use ZR constraint.
29049 (compare_and_swap_12): Likewise.
29050 (sync_add<mode>): Likewise.
29051 (sync_<optab>_12): Likewise.
29052 (sync_old_<optab>_12): Likewise.
29053 (sync_new_<optab>_12): Likewise.
29054 (sync_nand_12): Likewise.
29055 (sync_old_nand_12): Likewise.
29056 (sync_new_nand_12): Likewise.
29057 (sync_sub<mode>): Likewise.
29058 (sync_old_add<mode>): Likewise.
29059 (sync_old_sub<mode>): Likewise.
29060 (sync_new_add<mode>): Likewise.
29061 (sync_new_sub<mode>): Likewise.
29062 (sync_<optab><mode>): Likewise.
29063 (sync_old_<optab><mode>): Likewise.
29064 (sync_new_<optab><mode>): Likewise.
29065 (sync_nand<mode>): Likewise.
29066 (sync_old_nand<mode>): Likewise.
29067 (sync_new_nand<mode>): Likewise.
29068 (sync_lock_test_and_set<mode>): Likewise.
29069 (test_and_set_12): Likewise.
29070 (atomic_compare_and_swap<mode>): Likewise.
29071 (atomic_exchange<mode>_llsc): Likewise.
29072 (atomic_fetch_add<mode>_llsc): Likewise.
29073 * config/mips/mips-cpus.def (m14kc, m14k): New processors.
29074 * config/mips/mips-protos.h (umips_output_save_restore): New prototype.
29075 (umips_save_restore_pattern_p): Likewise.
29076 (umips_load_store_pair_p): Likewise.
29077 (umips_output_load_store_pair): Likewise.
29078 (umips_movep_target_p): Likewise.
29079 (umips_12bit_offset_address_p): Likewise.
29080 * config/mips/mips.c (MIPS_MAX_FIRST_STEP): Update for microMIPS.
29081 (mips_base_mips16): Rename this...
29082 (mips_base_compression_flags): ...to this. Update all uses.
29083 (mips_attribute_table): Add micromips, nomicromips and nocompression.
29084 (mips_mips16_decl_p): Delete.
29085 (mips_nomips16_decl_p): Delete.
29086 (mips_get_compress_on_flags): New function.
29087 (mips_get_compress_off_flags): New function.
29088 (mips_get_compress_mode): New function.
29089 (mips_get_compress_on_name): New function.
29090 (mips_get_compress_off_name): New function.
29091 (mips_insert_attributes): Support multiple compression types.
29092 (mips_merge_decl_attributes): Likewise.
29093 (umips_12bit_offset_address_p): New function.
29094 (mips_start_function_definition): Emit .set micromips directive.
29095 (mips_call_may_need_jalx_p): New function.
29096 (mips_function_ok_for_sibcall): Add microMIPS support.
29097 (mips_print_operand_punctuation): Support short delay slots and
29099 (umips_swm_mask, umips_swm_encoding): New.
29100 (umips_build_save_restore): New function.
29101 (mips_for_each_saved_gpr_and_fpr): Add microMIPS support.
29102 (was_mips16_p): Remove.
29103 (old_compression_mode): New.
29104 (mips_set_compression_mode): New function.
29105 (mips_set_current_function): Add microMIPS support.
29106 (mips_option_override): Likewise.
29107 (umips_save_restore_pattern_p): New function.
29108 (umips_output_save_restore): New function.
29109 (umips_load_store_pair_p_1): New function.
29110 (umips_load_store_pair_p): New function.
29111 (umips_output_load_store_pair_1): New function.
29112 (umips_output_load_store_pair): New function.
29113 (umips_movep_target_p) New function.
29114 (mips_prepare_pch_save): Add microMIPS support.
29115 * config/mips/mips.h (TARGET_COMPRESSION): New.
29116 (TARGET_CPU_CPP_BUILTINS): Update macro
29117 to use new compression flags and to support microMIPS.
29118 (MIPS_ISA_LEVEL_SPEC): Add m14k processors.
29119 (MIPS_ARCH_FLOAT_SPEC): Likewise.
29120 (ISA_HAS_LWXS): Include TARGET_MICROMIPS.
29121 (ISA_HAS_LOAD_DELAY): Exclude TARGET_MICROMIPS.
29122 (ASM_SPEC): Support mmicromips and mno-micromips.
29123 (M16STORE_REG_P): New macro.
29124 (MIPS_CALL): Support TARGET_MICROMIPS.
29125 (MICROMIPS_J): New macro.
29126 (mips_base_mips16): Rename this...
29127 (mips_base_compression_flags): ...to this.
29128 (UMIPS_12BIT_OFFSET_P): New macro.
29129 * config/mips/t-sde: (MULTILIB_OPTIONS): Add microMIPS.
29130 (MULTILIB_DIRNAMES): Likewise.
29132 2013-02-24 Jakub Jelinek <jakub@redhat.com>
29135 * target-globals.c (save_target_globals): For init_reg_sets and
29136 target_reinit remporarily set this_fn_optabs to this_target_optabs.
29138 2013-02-22 James Greenhalgh <james.greenhalgh@arm.com>
29140 * config/aarch64/aarch64-simd-builtins.def: Add copyright header.
29141 * config/aarch64/t-aarch64
29142 (aarch64-builtins.o): Depend on aarch64-simd-builtins.def.
29144 2013-02-22 Vladimir Makarov <vmakarov@redhat.com>
29146 PR inline-asm/56148
29147 * lra-constraints.c (process_alt_operands): Reload operand
29148 conflicting with earlier clobber only if no more other conflicting
29151 2013-02-22 Jakub Jelinek <jakub@redhat.com>
29154 * config/gnu-user.h (LIBASAN_EARLY_SPEC): Link in libasan_preinit.o
29155 if not linking a shared library.
29157 2013-02-22 Seth LaForge <sethml@google.com>
29159 * config.gcc (arm*-*-eabi*): Treat arm*eb as big-endian.
29161 2013-02-22 Greta Yorsh <Greta.Yorsh@arm.com>
29163 * config/arm/arm.md (split for extendsidi): Update condition.
29164 (zero_extend<mode>di2,extend<mode>di2): Add an alternative.
29165 * config/arm/iterators.md (qhs_extenddi_cstr): Likewise.
29166 (qhs_zextenddi_cstr): Likewise.
29168 2013-02-21 Jakub Jelinek <jakub@redhat.com>
29170 PR middle-end/56420
29171 * expmed.c (EXACT_POWER_OF_2_OR_ZERO_P): Do subtraction in uhwi, to
29172 avoid signed wrapping.
29173 (expand_mult): Handle properly multiplication by
29174 ((dword_type) -1) << (BITS_PER_WORD - 1). Improve multiplication by
29175 ((dword_type) 1) << (BITS_PER_WORD - 1). Avoid undefined behavior
29176 in the compiler if coeff is HOST_WIDE_INT_MIN.
29177 (expand_divmod): Don't make ext_op1 static, change it's type to
29178 uhwi. Avoid undefined behavior in -INTVAL (op1).
29180 PR rtl-optimization/50339
29181 * lower-subreg.h (struct lower_subreg_choices): Add splitting_ashiftrt
29183 * lower-subreg.c (compute_splitting_shift): Handle ASHIFTRT.
29184 (compute_costs): Call compute_splitting_shift also for ASHIFTRT
29185 into splitting_ashiftrt field.
29186 (find_decomposable_shift_zext, resolve_shift_zext): Handle also
29188 (dump_choices): Fix up printing LSHIFTRT choices, print ASHIFTRT
29191 2013-02-20 Aldy Hernandez <aldyh@redhat.com>
29193 PR middle-end/56108
29194 * trans-mem.c (execute_tm_mark): Do not expand transactions that
29195 are sure to go irrevocable.
29197 2013-02-21 Hans-Peter Nilsson <hp@axis.com>
29199 * doc/rtl.texi (vec_concat, vec_duplicate): Mention that
29200 scalars are valid operands.
29202 2013-02-21 Martin Jambor <mjambor@suse.cz>
29204 PR tree-optimization/56310
29205 * ipa-cp.c (agg_replacements_to_vector): New parameter index, copy
29206 only matching indices and non-negative final offsets.
29207 (intersect_aggregates_with_edge): Pass src_idx to
29208 agg_replacements_to_vector. Pass src_idx insstead of index to
29209 intersect_with_agg_replacements.
29211 2013-02-21 Martin Jambor <mjambor@suse.cz>
29213 * ipa-cp.c (good_cloning_opportunity_p): Dump the real threshold
29214 instead of hard-wired defaults.
29216 2013-02-21 Maciej W. Rozycki <macro@codesourcery.com>
29218 * doc/invoke.texi (MIPS Options): Update documentation of the
29219 floating-point multiply-accumulate instruction restrictions.
29221 2013-02-21 Kostya Serebryany <kcc@google.com>
29223 * config/i386/i386.c (ix86_asan_shadow_offset): Use 0x7fff8000 as
29224 asan_shadow_offset on x86_64 linux.
29226 2013-02-21 Richard Biener <rguenther@suse.de>
29228 PR tree-optimization/56415
29230 2013-02-11 Richard Biener <rguenther@suse.de>
29232 PR tree-optimization/56273
29233 * tree-vrp.c (simplify_cond_using_ranges): Disable for the
29236 2013-02-21 Jakub Jelinek <jakub@redhat.com>
29239 * doc/invoke.texi (-fdump-rtl-pro_and_epilogue): Use @item
29242 PR inline-asm/56405
29243 * expr.c (expand_expr_real_1) <case TARGET_MEM_REF, MEM_REF>: Don't
29244 use movmisalign or extract_bit_field for EXPAND_MEMORY modifier.
29246 2013-02-20 Jan Hubicka <jh@suse.cz>
29248 PR tree-optimization/56265
29249 * ipa-prop.c (ipa_make_edge_direct_to_target): Fixup callgraph
29250 when target is referenced for first time.
29252 2013-02-20 Richard Biener <rguenther@suse.de>
29254 * tree-call-cdce.c (tree_call_cdce): Do not remove unused locals.
29255 * tree-ssa-forwprop.c (ssa_forward_propagate_and_combine): Likewise.
29256 * tree-ssa-dce.c (perform_tree_ssa_dce): Likewise.
29257 * tree-ssa-copyrename.c (copy_rename_partition_coalesce): Do
29258 not return anything.
29259 (rename_ssa_copies): Do not remove unused locals.
29260 * tree-ssa-ccp.c (do_ssa_ccp): Likewise.
29261 * tree-ssanames.c (pass_release_ssa_names): Remove unused locals first.
29262 * passes.c (execute_function_todo): Do not schedule unused locals
29263 removal if cleanup_tree_cfg did something.
29264 * tree-ssa-live.c (remove_unused_locals): Dump statistics
29265 about the number of removed locals.
29267 2013-02-20 Richard Biener <rguenther@suse.de>
29269 PR tree-optimization/56398
29270 * tree-vect-loop-manip.c (adjust_debug_stmts): Skip SSA default defs.
29272 2013-02-20 Martin Jambor <mjambor@suse.cz>
29274 PR tree-optimization/55334
29275 * ipa-cp.c (initialize_node_lattices): Disable IPA-CP through and to
29276 restricted pointers to arrays.
29278 2013-02-20 Richard Biener <rguenther@suse.de>
29279 Jakub Jelinek <jakub@redhat.com>
29281 PR tree-optimization/56396
29282 * tree-ssa-ccp.c (n_const_val): New static variable.
29283 (get_value): Return NULL for SSA names we don't have a lattice
29285 (ccp_initialize): Initialize n_const_val.
29286 * tree-ssa-copy.c (n_copy_of): New static variable.
29287 (init_copy_prop): Initialize n_copy_of.
29288 (get_value): Return NULL_TREE for SSA names we don't have a
29291 2013-02-20 Martin Jambor <mjambor@suse.cz>
29293 * ipa-cp.c (initialize_node_lattices): Fix dumping condition.
29295 2013-02-20 Richard Biener <rguenther@suse.de>
29297 * genpreds.c (write_lookup_constraint): Do not compare first
29298 letter of the constraint again.
29300 2013-02-20 Richard Biener <rguenther@suse.de>
29302 * tree-ssa-loop-ivopts.c (alloc_use_cost_map): Use bitmap_count_bits
29304 (get_use_iv_cost): Terminate hashtable walk when coming across
29307 2013-02-20 Igor Zamyatin <igor.zamyatin@intel.com>
29309 * config/i386/i386.c (initial_ix86_tune_features): Turn on fp
29310 reassociation for avx2 targets.
29312 2012-02-19 Edgar E. Iglesias <edgar.iglesias@gmail.com>
29314 * config/microblaze/microblaze.c: microblaze_has_clz = 0
29315 Add version check for v8.10.a to enable microblaze_has_clz
29316 * config/microblaze/microblaze.h: Add TARGET_HAS_CLZ as combined
29317 version and TARGET_PATTERN_COMPARE check
29318 * config/microblaze/microblaze.md: New clzsi2 instruction
29320 2012-02-19 Edgar E. Iglesias <edgar.iglesias@gmail.com>
29322 * config/microblaze/microblaze.md (call_value_intern): Check symbol is
29323 function before branching.
29325 2012-02-19 Andrey Belevantsev <abel@ispras.ru>
29327 * sel-sched-dump.c (dump_insn_rtx_flags): Explicitly set
29329 (dump_insn_rtx_1): Pass PATTERN (insn) to str_pattern_slim.
29331 2012-02-19 Andrey Belevantsev <abel@ispras.ru>
29333 PR middle-end/55889
29334 * sel-sched.c: Include ira.h.
29335 (implicit_clobber_conflict_p): New function.
29336 (moveup_expr): Use it.
29337 * Makefile.in (sel-sched.o): Depend on ira.h.
29339 2013-02-19 Richard Biener <rguenther@suse.de>
29341 PR tree-optimization/56384
29342 * tree-ssa-sccvn.h (struct vn_phi_s): Add type member.
29343 (vn_hash_type): Split out from ...
29344 (vn_hash_constant_with_type): ... here.
29345 * tree-ssa-sccvn.c (vn_phi_compute_hash): Use vn_hash_type.
29346 (vn_phi_eq): Compare types from vn_phi_s structure.
29347 (vn_phi_lookup): Populate vn_phi_s type.
29348 (vn_phi_insert): Likewise.
29350 2013-02-19 Jakub Jelinek <jakub@redhat.com>
29352 PR tree-optimization/56350
29353 * tree-vect-loop.c (vectorizable_reduction): If orig_stmt, return false
29354 if haven't found reduction or nested cycle operand, rather than
29355 asserting we must find it.
29357 PR tree-optimization/56381
29358 * tree-ssa-pre.c (create_expression_by_pieces): Fix up last argument
29361 2013-02-18 Aldy Hernandez <aldyh@redhat.com>
29362 Jakub Jelinek <jakub@redhat.com>
29365 * genopinit.c (raw_optab_handler): Use this_fn_optabs.
29366 (swap_optab_enable): Same.
29367 (init_all_optabs): Use argument instead of global.
29368 * tree.h (struct tree_optimization_option): New field target_optabs.
29369 * expr.h (init_all_optabs): Add argument to prototype.
29370 (TREE_OPTIMIZATION_OPTABS): New.
29371 (save_optabs_if_changed): Protoize.
29372 * optabs.h: Declare this_fn_optabs.
29373 * optabs.c (save_optabs_if_changed): New.
29374 Declare this_fn_optabs.
29375 (init_optabs): Add argument to init_all_optabs() call.
29376 * function.c (invoke_set_current_function_hook): Handle per
29378 * function.h (struct function): New field optabs.
29379 * config/mips/mips.c (mips_set_mips16_mode): Handle when
29380 optimization_current_node has changed.
29381 * target-globals.h (save_target_globals_default_opts): Protoize.
29382 * target-globals.c (save_target_globals_default_opts): New.
29384 2013-02-18 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
29387 * config/pa/pa.c (pa_conditional_register_usage): On HP-UX, mark
29388 registers %fr12 and %fr12R as call used.
29391 * config/pa/predicates.md (base14_operand): Except for BLKmode, QImode
29392 and HImode, require all displacements to be an integer multiple of
29394 * config/pa/pa.c (pa_legitimate_address_p): For REG+BASE addresses,
29395 only allow QImode and HImode when reload is in progress and strict is
29396 true. Likewise for symbolic addresses. Use base14_operand to check
29397 displacements in REG+BASE addresses.
29399 2013-02-18 Richard Biener <rguenther@suse.de>
29401 PR tree-optimization/56366
29402 * tree-vect-loop.c (get_initial_def_for_induction): Properly
29403 handle sign-conversion of outer-loop initial induction value.
29405 2013-02-18 Richard Biener <rguenther@suse.de>
29407 PR middle-end/56349
29408 * cfghooks.c (merge_blocks): If we merge a latch into another
29409 block adjust references to it.
29410 * cfgloop.c (flow_loops_find): Reset latch before recomputing it.
29411 (verify_loop_structure): Verify that a recorded latch is in fact
29414 2013-02-18 Richard Biener <rguenther@suse.de>
29416 PR tree-optimization/56321
29417 * tree-ssa-reassoc.c (propagate_op_to_single_use): Properly
29418 order SSA name release and virtual operand unlinking.
29420 2013-02-17 Edgar E. Iglesias <edgar.iglesias@gmail.com>
29422 * config/microblaze/microblaze.md (save_stack_block): Define.
29423 (restore_stack_block): Likewise.
29425 2013-02-16 Edgar E. Iglesias <edgar.iglesias@gmail.com>
29427 * config/microblaze/linux.h (TARGET_SUPPORTS_PIC): Define as 1.
29428 * config/microblaze/microblaze.h (TARGET_SUPPORTS_PIC): Define as 1.
29429 * config/microblaze/microblaze.c (microblaze_option_override):
29430 Bail out early for PIC modes when target does not support PIC.
29432 2013-02-16 Edgar E. Iglesias <edgar.iglesias@gmail.com>
29434 * config/microblaze/microblaze.c (microblaze_asm_trampoline_template):
29435 Replace with a microblaze version.
29436 (microblaze_trampoline_init): Adapt for microblaze.
29437 * config/microblaze/microblaze.h (TRAMPOLINE_SIZE): Adapt for
29440 2013-02-16 Jakub Jelinek <jakub@redhat.com>
29441 Dodji Seketeli <dodji@redhat.com>
29444 * asan.c (get_mem_refs_of_builtin_call): White space and style cleanup.
29445 (instrument_mem_region_access): Do not forget to always put
29446 instrumentation of the of 'base' and 'base + len' in a "if (len !=
29447 0) statement, even for cases where either 'base' or 'base + len'
29448 are not instrumented -- because they have been previously
29449 instrumented. Simplify the logic by putting all the statements
29450 instrument 'base + len' inside a sequence, and then insert that
29451 sequence right before the current insertion point. Then, to
29452 instrument 'base + len', just get an iterator on that statement.
29453 And do not forget to update the pointer to iterator the function
29454 received as argument.
29456 2013-02-15 Vladimir Makarov <vmakarov@redhat.com>
29458 PR rtl-optimization/56348
29459 * lra-assigns.c (reload_pseudo_compare_func): Prefer bigger pseudos.
29461 2013-02-15 Steven Bosscher <steven@gcc.gnu.org>
29463 * graph.c (start_graph_dump): Print dumpfile base as digraph label.
29464 (clean_graph_dump_file): Pass base to start_graph_dump.
29466 2013-02-14 Richard Henderson <rth@redhat.com>
29469 * lower-subreg.c (simple_move): Check dest mode instead of src mode.
29471 2013-02-14 Steven Bosscher <steven@gcc.gnu.org>
29473 * collect2-aix.h: Define F_LOADONLY.
29475 2013-02-14 Richard Biener <rguenther@suse.de>
29478 * varasm.c (output_constant_def_1): Get the decl representing
29479 the constant as argument.
29480 (output_constant_def): Wrap output_constant_def_1.
29481 (make_decl_rtl): Use output_constant_def_1 with the decl
29482 representing the constant.
29483 (build_constant_desc): Optionally re-use a decl already
29484 representing the constant.
29485 (tree_output_constant_def): Adjust.
29487 2013-02-14 Dodji Seketeli <dodji@redhat.com>
29490 * asan.c (instrument_builtin_call): Really put the length of the
29491 second source argument into src1_len.
29493 2013-02-13 Jakub Jelinek <jakub@redhat.com>
29495 * asan.c (create_cond_insert_point): Add create_then_fallthru_edge
29496 argument. If it is false, don't create edge from then_bb to
29498 (insert_if_then_before_iter): Pass true to it.
29499 (build_check_stmt): Pass false to it.
29500 (transform_statements): Flush hash table only on extended basic
29501 block boundaries, rather than at the beginning of every bb.
29502 Don't flush hash table on nonfreeing_call_p calls.
29503 * tree-flow.h (nonfreeing_call_p): New prototype.
29504 * tree-ssa-phiopt.c (nonfreeing_call_p): No longer static.
29506 2013-02-13 David S. Miller <davem@davemloft.net>
29508 * expmed.c (expand_shift_1): Only strip scalar integer subregs.
29510 2013-02-13 Vladimir Makarov <vmakarov@redhat.com>
29513 * ira.c (max_regno_before_ira): Move from ...
29515 (fix_reg_equiv_init): Use max_regno_before_ira instead of
29518 2013-02-13 Jakub Jelinek <jakub@redhat.com>
29520 * config/i386/i386.c (ix86_asan_shadow_offset): Revert last change.
29522 2013-02-13 Richard Biener <rguenther@suse.de>
29525 * gimple-streamer-out.c (output_gimple_stmt): Undo wrapping
29526 globals in MEM_REFs.
29528 2013-02-13 Richard Biener <rguenther@suse.de>
29530 * loop-init.c (loop_optimizer_init): Clear loop state when
29531 re-initializing preserved loops.
29532 * loop-unswitch.c (unswitch_single_loop): Return whether
29533 we unswitched the loop. Do not verify loop state here.
29534 (unswitch_loops): When we unswitched a loop discover new loops.
29536 2013-02-13 Kostya Serebryany <kcc@google.com>
29538 * config/i386/i386.c: Use 0x7fff8000 as asan_shadow_offset
29540 * sanitizer.def: Rename __asan_init to __asan_init_v1.
29542 2013-02-12 Dodji Seketeli <dodji@redhat.com>
29544 Avoid instrumenting duplicated memory access in the same basic block
29545 * Makefile.in (asan.o): Add new dependency on hash-table.h
29546 * asan.c (struct asan_mem_ref, struct mem_ref_hasher): New types.
29547 (asan_mem_ref_init, asan_mem_ref_get_end, get_mem_ref_hash_table)
29548 (has_stmt_been_instrumented_p, empty_mem_ref_hash_table)
29549 (free_mem_ref_resources, has_mem_ref_been_instrumented)
29550 (has_stmt_been_instrumented_p, update_mem_ref_hash_table)
29551 (get_mem_ref_of_assignment): New functions.
29552 (get_mem_refs_of_builtin_call): Extract from
29553 instrument_builtin_call and tweak a little bit to make it fit with
29555 (instrument_builtin_call): Use the new
29556 get_mem_refs_of_builtin_call. Use gimple_call_builtin_p instead
29557 of is_gimple_builtin_call.
29558 (instrument_derefs, instrument_mem_region_access): Insert the
29559 instrumented memory reference into the hash table.
29560 (maybe_instrument_assignment): Renamed instrument_assignment into
29561 this, and change it to advance the iterator when instrumentation
29562 actually happened and return true in that case. This makes it
29563 homogeneous with maybe_instrument_assignment, and thus give a
29564 chance to callers to be more 'regular'.
29565 (transform_statements): Clear the memory reference hash table
29566 whenever we enter a new BB, when we cross a function call, or when
29567 we are done transforming statements. Use
29568 maybe_instrument_assignment instead of instrumentation. No more
29569 need to special case maybe_instrument_assignment and advance the
29570 iterator after calling it; it's now handled just like
29571 maybe_instrument_call. Update comment.
29573 2013-02-13 Richard Biener <rguenther@suse.de>
29575 * config/mn10300/mn10300.c (mn10300_scan_for_setlb_lcc):
29576 Fix loop discovery code.
29578 2013-02-12 Vladimir Makarov <vmakarov@redhat.com>
29580 PR inline-asm/56148
29581 * lra-constraints.c (process_alt_operands): Match early clobber
29582 operand with itself. Check conflicts with earlyclobber only if
29583 the operand is not reloaded. Prefer to reload conflicting operand
29584 if earlyclobber and matching operands are the same.
29586 2013-02-12 Richard Biener <rguenther@suse.de>
29589 * lto-streamer-out.c (write_symbol): Do not output symbols
29590 for hard register variables.
29592 2013-02-12 Georg-Johann Lay <avr@gjlay.de>
29595 * config/avr/avr-dimode.md (umulsidi3, mulsidi3): New expanders.
29596 (umulsidi3_insn, mulsidi3_insn): New insns.
29598 2013-02-12 Christophe Lyon <christophe.lyon@linaro.org>
29600 * config/arm/arm-protos.h (struct cpu_vec_costs): New struct type.
29601 (struct tune_params): Add vec_costs field.
29602 * config/arm/arm.c (arm_builtin_vectorization_cost)
29603 (arm_add_stmt_cost): New functions.
29604 (TARGET_VECTORIZE_BUILTIN_VECTORIZATION_COST)
29605 (TARGET_VECTORIZE_ADD_STMT_COST): Define.
29606 (arm_default_vec_cost): New struct of type cpu_vec_costs.
29607 (arm_slowmul_tune, arm_fastmul_tune, arm_strongarm_tune)
29608 (arm_xscale_tune, arm_9e_tune, arm_v6t2_tune, arm_cortex_tune)
29609 (arm_cortex_a15_tune, arm_cortex_a5_tune, arm_cortex_a9_tune)
29610 (arm_v6m_tune, arm_fa726te_tune): Define new vec_costs field.
29612 2013-02-12 Richard Biener <rguenther@suse.de>
29615 * gimple-streamer-in.c (input_gimple_stmt): Strip MEM_REFs off
29616 decls again if possible.
29618 2013-02-12 Richard Biener <rguenther@suse.de>
29620 PR middle-end/56288
29621 * tree-ssa.c (verify_ssa_name): Fix check, move
29622 SSA_NAME_IN_FREE_LIST check up.
29624 2013-02-12 Jakub Jelinek <jakub@redhat.com>
29625 Steven Bosscher <steven@gcc.gnu.org>
29627 PR rtl-optimization/56151
29628 * optabs.c (add_equal_note): Don't return 0 if target is a MEM,
29629 equal to op0 or op1, and last_insn pattern is CODE operation
29630 with MEM dest and one of the operands matches that MEM.
29632 2013-02-11 Sriraman Tallam <tmsriram@google.com>
29634 * doc/extend.texi: Document Function Multiversioning and "default"
29635 parameter string to target attribute.
29636 * config/i386/i386.c (get_builtin_code_for_version): Return 0 if
29637 target attribute parameter is "default".
29638 (ix86_compare_version_priority): Remove checks for target attribute.
29639 (ix86_mangle_function_version_assembler_name): Change error to sorry.
29640 Remove check for target attribute equal to NULL. Add assert.
29641 (ix86_generate_version_dispatcher_body): Change error to sorry.
29643 2013-02-11 Iain Sandoe <iain@codesourcery.com>
29644 Jack Howarth <howarth@bromo.med.uc.edu>
29645 Patrick Marlier <patrick.marlier@gmail.com>
29648 * config/darwin.h: Replace ENDFILE_SPEC with TM_DESTRUCTOR and
29649 define ENDFILE_SPEC as TM_DESTRUCTOR.
29650 * config/i386/darwin.h (ENDFILE_SPEC): Use TM_DESTRUCTOR.
29652 2013-02-11 Alexander Potapenko <glider@google.com>
29653 Jack Howarth <howarth@bromo.med.uc.edu>
29654 Jakub Jelinek <jakub@redhat.com>
29657 * config/darwin.c (cdtor_record): Rename ctor_record.
29658 (sort_cdtor_records): Rename sort_ctor_records.
29659 (finalize_dtors): New routine to sort destructors by
29660 priority before use in assemble_integer.
29661 (machopic_asm_out_destructor): Use finalize_dtors if needed.
29663 2013-02-11 Uros Bizjak <ubizjak@gmail.com>
29665 PR rtl-optimization/56275
29666 * simplify-rtx.c (avoid_constant_pool_reference): Check that
29667 offset is non-negative and less than cmode size before
29668 calling simplify_subreg.
29670 2013-02-11 Richard Biener <rguenther@suse.de>
29672 PR tree-optimization/56264
29673 * cfgloop.h (fix_loop_structure): Adjust prototype.
29674 * loop-init.c (fix_loop_structure): Return the number of
29675 newly discovered loops.
29676 * tree-cfgcleanup.c (repair_loop_structures): When new loops
29677 are discovered, do a full loop-closed SSA rewrite.
29679 2013-02-11 Richard Biener <rguenther@suse.de>
29681 PR tree-optimization/56273
29682 * tree-vrp.c (simplify_cond_using_ranges): Disable for the
29684 (check_array_ref): Fix missing newline in dumps.
29685 (search_for_addr_array): Likewise.
29687 2013-02-09 David Edelsohn <dje.gcc@gmail.com>
29689 * config/rs6000/aix61.h (OS_MISSING_ALTIVEC): Undefine.
29691 2013-02-09 Jakub Jelinek <jakub@redhat.com>
29694 * config/rs6000/rs6000.h (ASSEMBLER_DIALECT): Define.
29696 2013-02-08 Vladimir Makarov <vmakarov@redhat.com>
29698 PR rtl-optimization/56246
29699 * lra-constraints.c (simplify_operand_subreg): Try to reuse
29701 * lra.c (lra): Clear lra_optional_reload_pseudos only when all
29702 constraints are satisfied.
29704 2013-02-08 Jeff Law <law@redhat.com>
29707 * emit-rtl.c (reg_is_parm_p): New function.
29708 * regs.h (reg_is_parm_p): New prototype.
29709 * ira-conflicts.c (ira_build_conflicts): Allow parameters in
29710 callee-clobbered registers.
29712 2013-02-08 Michael Meissner <meissner@linux.vnet.ibm.com>
29715 * config/rs6000/rs6000.c (rs6000_builtin_vectorized_libmass):
29716 If there is no implicit builtin declaration, just return NULL.
29718 2013-02-08 Uros Bizjak <ubizjak@gmail.com>
29720 * config/i386/sse.md (FMAMODEM): New mode iterator.
29721 (fma<mode>4, fms<mode>4, fnma<mode>4, fnms<mode>4): Use FMAMODEM
29722 mode iterator. Do not use TARGET_SSE_MATH in insn constraint.
29724 2013-02-08 Uros Bizjak <ubizjak@gmail.com>
29726 * config/i386/gnu-user.h (TARGET_CAN_SPLIT_STACK): Define only
29727 when HAVE_GAS_CFI_PERSONALITY_DIRECTIVE is set.
29728 * config/i386/gnu-user64.h (TARGET_CAN_SPLIT_STACK): Ditto.
29730 2013-02-08 Edgar E. Iglesias <edgar.iglesias@gmail.com>
29732 * config.gcc (microblaze*-linux*): Add TARGET_BIG_ENDIAN_DEFAULT.
29733 (microblaze*-*-elf): Likewise.
29734 * config/microblaze/linux.h: Add -mbig-endian / -mlittle-endian to
29736 * config/microblaze/microblaze-c.c: Add builtin defines for
29737 _LITTLE_ENDIAN and _BIG_ENDIAN.
29738 * config/microblaze/microblaze.h: Add TARGET_ENDIAN_DEFAULT and
29739 add to TARGET_DEFAULT flags.
29740 Expand ASM_SPEC and LINK_SPEC.
29741 Update BYTES_BIG_ENDIAN and WORDS_BIG_ENDIAN.
29742 * config/microblaze/microblaze.md: Update extendsidi2 and
29743 movdi_internal instructions to use low-order / high-order reg
29745 * config/microblaze/microblaze.opt: Add mbig-endian and mlittle-endian
29746 options and inversemask / mask of LITTLE_ENDIAN.
29747 * config/microblaze/t-microblaze: Expand multilib options to
29748 include mlittle-endian (le) and update exceptions patterns.
29750 2013-02-08 Jakub Jelinek <jakub@redhat.com>
29752 PR rtl-optimization/56195
29753 * lra-constraints.c (get_reload_reg): Don't reuse regs
29754 if they have smaller mode than requested, if they have
29755 wider mode than requested, try to return a SUBREG.
29757 PR tree-optimization/56250
29758 * fold-const.c (extract_muldiv_1) <case NEGATE_EXPR>: Don't optimize
29759 if type is unsigned and code isn't MULT_EXPR.
29761 2013-02-08 Georg-Johann Lay <avr@gjlay.de>
29763 PR tree-optimization/56064
29764 * fixed-value.c (fixed_from_double_int): Sign/zero extend payload
29765 bits according to mode.
29766 * fixed-value.h (fixed_from_double_int)
29767 (const_fixed_from_double_int): Adjust comments.
29769 2013-02-08 Richard Biener <rguenther@suse.de>
29772 * lto-streamer.h (struct data_in): Remove current_file, current_line
29773 and current_col members.
29774 * lto-streamer-out.c (lto_output_location): Stream changed bits
29775 en-block for efficiency.
29776 * lto-streamer-in.c (clear_line_info): Remove.
29777 (lto_input_location): Cache current file, line and column
29778 globally via local statics. Read changed bits en-block.
29779 (input_function): Do not call clear_line_info.
29780 (lto_read_body): Likewise.
29781 (lto_input_toplevel_asms): Likewise.
29783 2013-02-08 Michael Matz <matz@suse.de>
29785 PR tree-optimization/52448
29786 * tree-ssa-phiopt.c (struct name_to_bb): Add phase member.
29787 (nt_call_phase): New static.
29788 (add_or_mark_expr): Only mark accesses with newer phase than any
29790 (nonfreeing_call_p): New.
29791 (nt_init_block): Update nt_call_phase, mark blocks as visited.
29792 (nt_fini_block): Keep blocks marked as visited.
29793 (get_non_trapping): Initialize nt_call_phase, and reset aux pointer.
29795 2013-02-08 Richard Biener <rguenther@suse.de>
29797 * ira.c (ira): Free broken dominator information.
29799 2013-02-08 Uros Bizjak <ubizjak@gmail.com>
29801 * config/i386/i386.c (ix86_spill_class): Use INTEGER_CLASS_P macro.
29803 2013-02-08 Marek Polacek <polacek@redhat.com>
29805 * cfgloop.c (verify_loop_structure): Add more checking of headers.
29807 2013-02-08 Richard Biener <rguenther@suse.de>
29809 PR middle-end/56181
29810 * cfgloop.h (flow_loops_find): Adjust.
29811 (bb_loop_header_p): Declare.
29812 * cfgloop.c (bb_loop_header_p): New function split out from ...
29813 (flow_loops_find): ... here. Adjust function signature,
29814 support incremental loop structure update.
29815 (verify_loop_structure): Cleanup. Verify a loop is a loop.
29816 * cfgloopmanip.c (fix_loop_structure): Move ...
29817 * loop-init.c (fix_loop_structure): ... here.
29818 (apply_loop_flags): Split out from ...
29819 (loop_optimizer_init): ... here.
29820 (fix_loop_structure): Use apply_loop_flags. Use flow_loops_find
29821 in incremental mode, only remove dead loops here.
29823 2013-02-08 Georg-Johann Lay <avr@gjlay.de>
29826 * config/avr/avr.md (unspec) <UNSPEC_ROUND>: Add.
29827 * config/avr/avr-fixed.md (ALL4QA, ALL124QA): New mode iterators.
29828 (round<mode>3, round<mode>3_const): New expanders for fixed-mode.
29829 (*round<mode>3.libgcc): New insns for fixed-modes.
29830 * config/avr/builtins.def (ABSxx): Use a non-NULL LIBNAME.
29831 (ROUNDxx, COUNTLSxx, BITSxx, xxBITS): New DEF_BUILTINs.
29832 (ROUNDFX, COUNTLSFX, ABSFX): New DEF_BUILTINs.
29833 * config/avr/stdfix.h (absFX, bitsFX, FXbits): Remove inline
29834 implementations. Define to __builtin_avr_absFX,
29835 __builtin_avr_bitsFX, __builtin_avr_FXbits, respectively.
29836 (roundFX, countlsFX): Define to __builtin_avr_roundFX,
29837 __builtin_avr_countlsFX, respectively.
29838 * config/avr/avr-c.c (target.h): Include it.
29839 (enum avr_builtin_id): New enum.
29840 (avr_resolve_overloaded_builtin): New static function.
29841 (avr_register_target_pragmas): Use it to set
29842 targetm.resolve_overloaded_builtin.
29843 * config/avr/avr.c (avr_init_builtins): Supply myriads of local
29844 tree nodes used by DEF_BUILTIN.
29845 (avr_expand_builtin) <AVR_BUILTIN_ROUNDxx>: Sanity-check them.
29846 (avr_fold_builtin) <AVR_BUILTIN_BITSxx>: Fold to VIEW_COVERT_EXPR.
29847 <AVR_BUILTIN_xxBITS>: Same.
29849 2013-02-08 Richard Biener <rguenther@suse.de>
29851 * cfgloop.c (verify_loop_structure): Properly handle
29852 a loop exiting to another loop header.
29853 * ira-int.h (ira_loops): Remove.
29854 * ira.c (ira_loops): Remove.
29855 (ira): Use loop_optimizer_init and loop_optimizer_finalize.
29856 (do_reload): Use loop_optimizer_finalize.
29857 * ira-build.c (create_loop_tree_nodes): Use get_loops and
29858 number_of_loops to access the loop tree.
29859 (more_one_region_p): Likewise.
29860 (finish_loop_tree_nodes): Likewise.
29861 (rebuild_regno_allocno_maps): Likewise.
29862 (mark_loops_for_removal): Likewise.
29863 (mark_all_loops_for_removal): Likewise.
29864 (remove_unnecessary_regions): Likewise.
29865 (ira_build): Likewise.
29866 * ira-emit.c (setup_entered_from_non_parent_p): Likewise.
29868 2013-02-08 Richard Biener <rguenther@suse.de>
29870 * Makefile.in (tree-tailcall.o): Add $(CFGLOOP_H) dependency.
29871 * ipa-pure-const.c (analyze_function): Avoid calling
29872 mark_irreducible_loops twice.
29873 * tree-tailcall.c (tree_optimize_tail_calls_1): Mark loops for fixup.
29875 2013-02-07 David S. Miller <davem@davemloft.net>
29877 * dwarf2out.c (based_loc_descr): Perform leaf register remapping
29879 * var-tracking.c (vt_add_function_parameter): Test the presence of
29880 HAVE_window_save properly and do not remap argument registers when
29881 we have a leaf function.
29883 2013-02-07 Uros Bizjak <ubizjak@gmail.com>
29886 * ggc-page.c (ggc_print_statistics): Use HOST_LONG_LONG_FORMAT
29888 * config/i386/i386.c (ix86_print_operand): Ditto.
29890 2013-02-07 Vladimir Makarov <vmakarov@redhat.com>
29892 * lra-constraints.c (process_alt_operands): Fix recently added comment.
29894 2013-02-07 Vladimir Makarov <vmakarov@redhat.com>
29896 PR rtl-optimization/56225
29897 * lra-constraints.c (process_alt_operands): Check that reload hard
29898 reg can hold value for strict_low_part.
29900 2013-02-07 Jakub Jelinek <jakub@redhat.com>
29903 * dwarf2out.c (dwarf2_debug_hooks): Set end_function hook to
29904 dwarf2out_end_function.
29905 (in_first_function_p, maybe_at_text_label_p,
29906 first_loclabel_num_not_at_text_label): New variables.
29907 (dwarf2out_var_location): In the first function find out
29908 lowest loclabel_num N where .LVLN is known not to be equal to .Ltext0.
29909 (find_empty_loc_ranges_at_text_label, dwarf2out_end_function): New
29912 2013-02-07 Eric Botcazou <ebotcazou@adacore.com>
29914 PR rtl-optimization/56178
29915 * cse.c (cse_insn): Do not create a REG_EQUAL note if the source is a
29916 SUBREG of a register. Tidy up related block of code.
29917 * fwprop.c (forward_propagate_and_simplify): Do not create a REG_EQUAL
29918 note if the source is a register or a SUBREG of a register.
29920 2013-02-07 Jakub Jelinek <jakub@redhat.com>
29923 * config/rs6000/rs6000.md (ptrm): New mode attr.
29924 (call_indirect_aix<ptrsize>, call_indirect_aix<ptrsize>_nor11,
29925 call_value_indirect_aix<pttrsize>,
29926 call_value_indirect_aix<pttrsize>_nor11): Use <ptrm> instead of
29929 2013-02-07 Michael Haubenwallner <michael.haubenwallner@salomon.at>
29931 * collect2.c (main): Set aix64_flag for -G and -bsvr4 too, disable
29932 if -bnortl. Convert to strcmp and strncmp.
29934 2013-02-07 Alan Modra <amodra@gmail.com>
29937 * config/rs6000/rs6000.c (mem_operand_gpr): Check that LO_SUM
29938 addresses won't wrap when offsetting.
29939 (rs6000_secondary_reload): Provide secondary reloads needed for
29940 wrapping LO_SUM addresses.
29942 2013-02-06 Thomas Schwinge <thomas@codesourcery.com>
29944 * config/gnu.h (GNU_USER_TARGET_OS_CPP_BUILTINS): Never define
29945 MACH, just __MACH__.
29947 2013-02-06 Richard Biener <rguenther@suse.de>
29949 * tracer.c (tracer): Mark loops with LOOPS_NEED_FIXUP
29950 instead of calling fix_loop_structure.
29952 2013-02-06 Jakub Jelinek <jakub@redhat.com>
29954 PR middle-end/56217
29955 * omp-low.c (use_pointer_for_field): Return false if
29956 lower_send_shared_vars doesn't generate any copy-out code.
29958 2013-02-06 Tom de Vries <tom@codesourcery.com>
29960 PR rtl-optimization/56131
29961 * cfgrtl.c (delete_insn): Use NOTE_BASIC_BLOCK instead of BLOCK_FOR_INSN
29962 to get the bb of a NOTE_INSN_BASIC_BLOCK. Handle the case that the bb
29963 of the label is NULL. Add comment.
29965 2013-02-05 Jakub Jelinek <jakub@redhat.com>
29967 * tree.h (struct tree_decl_with_vis): Remove thread_local field.
29970 * config/gnu-user.h (LIBTSAN_EARLY_SPEC): Define.
29971 (STATIC_LIBTSAN_LIBS): Likewise.
29972 * gcc.c (ADD_STATIC_LIBTSAN_LIBS, LIBTSAN_EARLY_SPEC): Define.
29973 (LIBTSAN_SPEC): Add ADD_STATIC_LIBTSAN_LIBS, if LIBTSAN_EARLY_SPEC
29974 is defined, don't add anything else beyond that.
29975 (SANITIZER_EARLY_SPEC, SANITIZER_SPEC): Define.
29976 (LINK_COMMAND_SPEC): Use them.
29978 PR tree-optimization/56205
29979 * tree-stdarg.c (check_all_va_list_escapes): Return true if
29980 there are any PHI nodes that set non-va_list_escape_vars SSA_NAME
29981 and some va_list_escape_vars SSA_NAME appears in some PHI argument.
29983 2013-02-05 Richard Biener <rguenther@suse.de>
29985 PR tree-optimization/53342
29986 PR tree-optimization/53185
29987 * tree-vectorizer.h (vect_check_strided_load): Remove.
29988 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment): Do
29989 not disallow peeling for vectorized strided loads.
29990 (vect_check_strided_load): Make static and simplify.
29991 (vect_analyze_data_refs): Adjust.
29992 * tree-vect-stmts.c (vectorizable_load): Handle peeled loops
29993 correctly when vectorizing strided loads.
29995 2013-02-05 Richard Biener <rguenther@suse.de>
29997 * doc/install.texi: Refer to ISL, not PPL.
29999 2013-02-05 Jan Hubicka <jh@suse.cz>
30001 PR tree-optimization/55789
30002 * params.def (PARAM_EARLY_INLINER_MAX_ITERATIONS): Drop to 1.
30004 2013-02-05 Jan Hubicka <jh@suse.cz>
30006 PR tree-optimization/55789
30007 * cgraphclones.c (cgraph_remove_node_and_inline_clones): Remove
30008 the dead call anyway.
30010 2013-02-05 Eric Botcazou <ebotcazou@adacore.com>
30013 * config/gnu-user.h (LIBASAN_EARLY_SPEC): Add missing guard.
30015 2013-02-04 Alexander Potapenko <glider@google.com>
30016 Jack Howarth <howarth@bromo.med.uc.edu>
30017 Jakub Jelinek <jakub@redhat.com>
30020 * config/darwin.c (sort_ctor_records): Stabilized qsort
30021 on constructor priority by using original position.
30022 (finalize_ctors): New routine to sort constructors by
30023 priority before use in assemble_integer.
30024 (machopic_asm_out_constructor): Use finalize_ctors if needed.
30026 2013-02-04 Jakub Jelinek <jakub@redhat.com>
30029 * config/i386/winnt.c (i386_pe_assemble_visibility): Don't warn
30030 about visibility on artificial decls.
30031 * config/sol2.c (solaris_assemble_visibility): Likewise.
30033 2013-02-04 Kai Tietz <ktietz@redhat.com>
30036 * config/i386/i386.c (function_value_ms_64): Add additional valtype
30037 argument and improve checking of return-argument types for 16-byte
30039 (ix86_function_value_1): Add additional valtype argument on call
30040 of function_value_64.
30041 (return_in_memory_ms_64): Sync 16-byte sized mode handling with
30042 handling infunction_value_64 function.
30044 2013-02-04 Matthew Gretton-Dann <matthew.gretton-dann@linaro.org>
30046 * reload.c (subst_reloads): Fix DEBUG_RELOAD build issue.
30048 2013-02-04 Richard Biener <rguenther@suse.de>
30050 PR tree-optimization/56188
30051 * tree-ssa-structalias.c (label_visit): Consider case with
30052 initially non-empty points-to set.
30053 (perform_var_substitution): Dump node mapping and clean up.
30055 2013-02-04 Richard Guenther <rguenther@suse.de>
30058 * lto-symtab.c (lto_symtab_merge_decls_1): Make non-builtin
30059 node prevail as last resort.
30060 (lto_symtab_merge_decls): Remove guard on LTRANS here.
30061 (lto_symtab_prevailing_decl): Builtins are their own prevailing decl.
30063 2013-02-04 Richard Biener <rguenther@suse.de>
30065 PR tree-optimization/56113
30066 * tree-ssa-structalias.c (equiv_class_lookup, equiv_class_add):
30068 (equiv_class_lookup_or_add): ... this.
30069 (label_visit): Adjust and fix error in previous patch.
30070 (perform_var_substitution): Adjust.
30072 2013-02-03 Oleg Endo <olegendo@gcc.gnu.org>
30074 * config/sh/divtab.c: Fix formatting and comments throughout the file.
30075 * config/sh/sh4-300.md: Likewise.
30076 * config/sh/sh4a.md: Likewise.
30077 * config/sh/constraints.md: Likewise.
30078 * config/sh/sh.md: Likewise.
30079 * config/sh/netbsd-elf.h: Likewise.
30080 * config/sh/predicates.md: Likewise.
30081 * config/sh/sh-protos.h: Likewise.
30082 * config/sh/ushmedia.h: Likewise.
30083 * config/sh/linux.h: Likewise.
30084 * config/sh/sh.c: Likewise.
30085 * config/sh/superh.h: Likewise.
30086 * config/sh/elf.h: Likewise.
30087 * config/sh/sh4.md: Likewise.
30088 * config/sh/sh.h: Likewise.
30090 2013-02-03 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
30092 * config/pa/constraints.md: Adjust unused letters. Change "T"
30093 constraint to match_test floating_point_store_memory_operand().
30094 * config/pa/predicates.md (reg_plus_base_memory_operand): New.
30095 (base14_operand): New.
30096 (floating_point_store_memory_operand): New.
30097 (integer_store_memory_operand): Revise to use base14_operand and
30098 reg_plus_base_memory_operand.
30099 (move_dest_operand): Allow symbolic_memory_operands.
30100 (symbolic_memory_operand): Check for LO_SOM.
30101 (symbolic_operand): Change default case to break.
30102 * config/pa/pa.md: Remove unamed DFmode and SFmode patterns to force
30103 CONST_DOUBLE values to be reloaded by putting them into memory when
30104 the destination is a floating point register.
30105 (movdf): Remove code to handle CONST_DOUBLE.
30107 (reload_indf_r1): New.
30108 (reload_insf_r1): New.
30109 Consistently use "Q" and "T" constraints with integer and floating
30110 point move instructions, respectively.
30111 (movdi): Remove FAIL.
30112 Change predicate for source operand unamed DImode move from
30113 general_operand to move_src_operand.
30114 (umulsidi3): Change predicate for destination operand to
30116 Likewise for similar unamed patterns.
30117 * config/pa/pa-protos.h (pa_legitimize_reload_address): Declare.
30118 * config/pa/pa.c (pa_symbolic_expression_p): Remove extra parenthesis.
30119 (hppa_legitimize_address): Simplify mask calculation.
30120 (pa_emit_move_sequence): Revised handling of secondary reloads from
30121 REG+D addresses for floating point loads and stores. Directly handle
30122 loading CONST0_RTX (mode) to a floating point register.
30123 (pa_secondary_reload): Handle reloading DF and SFmode constant values
30124 to floating point registers. Don't restrict secondary reloads to
30125 floating point registers to integer modes. Revise some comments and
30127 (TARGET_LEGITIMATE_ADDRESS_P): Define.
30128 (pa_legitimate_address_p): New.
30129 (pa_legitimize_reload_address): New.
30130 * config/pa/pa.h (STRICT_REG_OK_FOR_INDEX_P): New.
30131 (STRICT_REG_OK_FOR_BASE_P): New.
30132 (GO_IF_LEGITIMATE_ADDRESS): Delete. Update some related comments.
30133 (LEGITIMIZE_RELOAD_ADDRESS): Revise to use pa_legitimize_reload_address.
30135 2013-02-03 David Edelsohn <dje.gcc@gmail.com>
30136 Andrew Dixie <andrewd@gentrack.com>
30138 * collect2.c (GCC_CHECK_HDR): Do not scan objects with F_LOADONLY
30141 2013-02-03 Richard Sandiford <rdsandiford@googlemail.com>
30143 * expmed.c (extract_bit_field_1): Pass the full width of the
30144 structure to get_best_reg_extraction_insn.
30146 2013-02-01 David Edelsohn <dje.gcc@gmail.com>
30149 * configure.ac (use_cxa_atexit): Add AIX.
30150 * configure: Regenerate.
30152 * config/rs6000/aix61.h (STARTFILE_SPEC): Add crtcxa.o.
30154 2013-02-01 Jakub Jelinek <jakub@redhat.com>
30157 * final.c (need_profile_function): New variable.
30158 (final_start_function): Drop ATTRIBUTE_UNUSED from first argument.
30159 If first of NOTE_INSN_BASIC_BLOCK or NOTE_INSN_FUNCTION_BEG
30160 is only preceeded by NOTE_INSN_VAR_LOCATION or NOTE_INSN_DELETED
30161 notes, targetm.asm_out.function_prologue doesn't emit anything,
30162 HAVE_prologue and profiler should be emitted before prologue,
30163 set need_profile_function instead of emitting it.
30164 (final_scan_insn): If need_profile_function, emit
30165 profile_function on the first NOTE_INSN_BASIC_BLOCK or
30166 NOTE_INSN_FUNCTION_BEG note.
30168 2013-02-01 Richard Henderson <rth@redhat.com>
30170 * config/rs6000/rs6000.md (smulditi3): New.
30173 * config/alpha/alpha.md (umulditi3): New.
30175 2013-02-01 David Edelsohn <dje.gcc@gmail.com>
30177 * config/rs6000/xcoff.h (ASM_OUTPUT_ALIGNED_COMMON): Use floor_log2.
30178 (ASM_OUTPUT_ALIGNED_LOCAL): New.
30180 2013-02-01 Richard Biener <rguenther@suse.de>
30182 PR tree-optimization/56113
30183 * tree-ssa-structalias.c (label_visit): Reduce work for
30184 single-predecessor nodes.
30186 2013-02-01 Eric Botcazou <ebotcazou@adacore.com>
30188 * fold-const.c (make_range_step) <TRUTH_NOT_EXPR>: Bail out if the
30189 range isn't testing for zero.
30191 2013-01-31 Steven Bosscher <steven@gcc.gnu.org>
30193 PR middle-end/56113
30194 * fwprop.c (fwprop_init): Set up loops without CFG modifications.
30196 2013-01-31 Hiroyuki Ono <hiroyuki.ono.jc@renesas.com>
30197 Nick Clifton <nickc@redhat.com>
30199 * config/v850/constraints.md (Q): Define as a memory constraint.
30200 * config/v850/predicates.md (label_ref_operand): New predicate.
30201 (e3v5_shift_operand): New predicate.
30202 (ior_operator): New predicate.
30203 * config/v850/t-v850: Add e3v5 multilib.
30204 * config/v850/v850-protos.h (v850_adjust_insn_length): Prototype.
30205 (v850_gen_movdi): Prototype.
30206 * config/v850/v850.c: Add support for e3v5 architecture.
30207 Rename all uses of TARGET_V850E || TARGET_V850E2_ALL to
30209 (construct_save_jarl): Add e3v5 long JARL support.
30210 (v850_adjust_insn_length): New function. Adjust length of call
30211 insns when using e3v5 instructions.
30212 (v850_gen_movdi): New function: Generate instructions to move a
30214 * config/v850/v850.h (TARGET_CPU_v850e3v5): Define.
30215 (CPP_SPEC): Define __v850e3v5__ as appropriate.
30216 (TARGET_USE_FPU): Enable for e3v5.
30217 (CONST_OK_FOR_W): New macro.
30218 (ADJUST_INSN_LENGTH): Define.
30219 * config/v850/v850.md (UNSPEC_LOOP): Define.
30220 (attr cpu): Add v850e3v5.
30221 Rename all uses of TARGET_V850E2 to TARGET_V850E2V3_UP.
30222 (movdi): New pattern.
30223 (movdi_internal): New pattern.
30224 (cbranchsf4): Conditionalize on TARGET_USE_FPU.
30225 (cbranchdf4): Conditionalize on TARGET_USE_FPU.
30226 (cstoresf4): Likewise.
30227 (cstoredf4): Likewise.
30228 (insv): New pattern.
30229 (rotlso3_a): New pattern.
30230 (rotlsi3_b): New pattern
30231 (rotlsi3_v850e3v5): New pattern.
30232 (doloop_begin): New pattern.
30233 (fix_loop_counter): New pattern.
30234 (doloop_end): New pattern.
30235 (branch_normal): Add e3v5 long branch support.
30236 (branch_invert): Likewise.
30237 (branch_z_normal): Likewise.
30238 (branch_z_invert): Likewise.
30239 (branch_nz_normal): Likewise.
30240 (branch_nz_invert): Likewise.
30241 (call_internal_short): Add e3v5 register-indirect JARL support.
30242 (call_internal_long): Likewise.
30243 (call_value_internal_short): Likewise.
30244 (call_value_internal_long): Likewise.
30245 * config/v850/v850.opt (mv850e3v5, mv850e2v4): New options.
30246 (mloop): New option.
30247 * config.gcc: Add support for configuring v840e3v5 target.
30248 * doc/invoke.texi: Document new v850 specific command line options.
30250 2013-01-31 Paul Koning <ni1d@arrl.net>
30254 * dwarf2out.c (prune_unused_types_mark): Mark all of parent's
30255 children if parent is a class.
30256 (prune_unused_types_prune): Don't add DW_AT_declaration.
30258 2013-01-31 Richard Biener <rguenther@suse.de>
30260 PR tree-optimization/56157
30261 * tree-vect-slp.c (vect_get_slp_defs): More thoroughly try to
30262 match up operand with SLP child.
30264 2013-01-31 Jason Merrill <jason@redhat.com>
30267 * dwarf2out.c (gen_struct_or_union_type_die): Always schedule template
30268 parameters the first time.
30269 (gen_scheduled_generic_parms_dies): Check completeness here.
30271 2013-01-31 Richard Biener <rguenther@suse.de>
30273 PR middle-end/53073
30274 * common.opt (faggressive-loop-optimizations): New flag,
30275 enabled by default.
30276 * doc/invoke.texi (faggressive-loop-optimizations): Document.
30277 * tree-ssa-loop-niter.c (estimate_numbers_of_iterations_loop): Guard
30278 infer_loop_bounds_from_undefined by it.
30280 2013-01-31 Richard Biener <rguenther@suse.de>
30282 PR tree-optimization/56150
30283 * tree-ssa-loop-manip.c (find_uses_to_rename_stmt): Do not
30284 visit virtual operands.
30285 (find_uses_to_rename_bb): Likewise.
30287 2013-01-31 Richard Biener <rguenther@suse.de>
30289 PR tree-optimization/56150
30290 * tree-ssa-tail-merge.c (gimple_equal_p): Properly handle
30291 mixed store non-store stmts.
30293 2013-01-30 Jakub Jelinek <jakub@redhat.com>
30296 * gcc.c (LIBASAN_SPEC): Define just to ADD_STATIC_LIBASAN_LIBS if
30297 LIBASAN_EARLY_SPEC is defined.
30298 (LIBASAN_EARLY_SPEC): Define to empty string if not already defined.
30299 (LINK_COMMAND_SPEC): Add LIBASAN_EARLY_SPEC for -fsanitize=address,
30301 * config/gnu-user.h (LIBASAN_EARLY_SPEC): Define.
30304 * config/i386/i386.c (ix86_valid_target_attribute_inner_p): Diagnose
30305 invalid args instead of ICEing on it.
30306 (ix86_valid_target_attribute_tree): Return error_mark_node if
30307 ix86_valid_target_attribute_inner_p failed.
30308 (ix86_valid_target_attribute_p): Return false only if
30309 ix86_valid_target_attribute_tree returned error_mark_node. Allow
30310 target("default") attribute.
30311 (sorted_attr_string): Change argument from const char * to tree,
30312 merge in all target attribute arguments rather than just one.
30313 Formatting fix. Use XNEWVEC instead of xmalloc and XDELETEVEC
30314 instead of free. Avoid using strcat.
30315 (ix86_mangle_function_version_assembler_name): Mangle
30316 target("default") as if no target attribute is present. Adjust
30317 sorted_attr_string caller. Avoid leaking memory. Use XNEWVEC
30318 instead of xmalloc and XDELETEVEC instead of free.
30319 (ix86_function_versions): Don't return true if one of the decls
30320 doesn't have target attribute. If they don't and one of the decls
30321 is DECL_FUNCTION_VERSIONED, report an error. Adjust
30322 sorted_attr_string caller. Use XDELETEVEC instead of free.
30323 (ix86_supports_function_versions): Remove.
30324 (make_name): Fix up formatting.
30325 (make_dispatcher_decl): Remove resolver_name and its initialization.
30326 Avoid leaking memory.
30327 (is_function_default_version): Return true if there is
30328 target("default") attribute rather than no target attribute at all.
30329 (make_resolver_func): Avoid leaking memory.
30330 (ix86_generate_version_dispatcher_body): Likewise.
30331 (TARGET_OPTION_SUPPORTS_FUNCTION_VERSIONS): Remove.
30332 * target.def (supports_function_versions): Remove.
30333 * doc/tm.texi.in (SUPPORTS_FUNCTION_VERSIONS): Remove.
30334 * doc/tm.texi: Regenerated.
30336 2013-01-30 Vladimir Makarov <vmakarov@redhat.com>
30338 PR rtl-optimization/56144
30339 * lra-constraints.c (get_reload_reg): Don't reuse reload pseudo
30340 for values with side effects.
30342 2013-01-30 Richard Biener <rguenther@suse.de>
30344 * sparseset.h (sparseset_bit_p): Use gcc_checking_assert.
30345 (sparseset_pop): Likewise.
30346 * cfganal.c (compute_idf): Likewise. Increase work-stack size
30347 to be able to use quick_push in the worker loop.
30349 2013-01-30 Marek Polacek <polacek@redhat.com>
30351 * cfgcleanup.c (cleanup_cfg): Don't mark affected BBs.
30353 2013-01-30 Richard Biener <rguenther@suse.de>
30356 * lto-symtab.c (lto_symtab_merge_decls_1): Guard DECL_BUILT_IN check.
30358 2013-01-30 Georg-Johann Lay <avr@gjlay.de>
30360 PR tree-optimization/56064
30361 * fixed-value.c (fixed_from_double_int): New function.
30362 * fixed-value.h (fixed_from_double_int): New prototype.
30363 (const_fixed_from_double_int): New static inline function.
30364 * fold-const.c (native_interpret_fixed): New static function.
30365 (native_interpret_expr) <FIXED_POINT_TYPE>: Use it.
30366 (can_native_interpret_type_p) <FIXED_POINT_TYPE>: Return true.
30367 (native_encode_fixed): New static function.
30368 (native_encode_expr) <FIXED_CST>: Use it.
30369 (native_interpret_int): Move double_int worker code to...
30370 * double-int.c (double_int::from_buffer): ...this new static method.
30371 * double-int.h (double_int::from_buffer): Prototype it.
30373 2013-01-30 Richard Biener <rguenther@suse.de>
30375 * tree-ssa-structalias.c (final_solutions, final_solutions_obstack):
30376 New pointer-map and obstack.
30377 (init_alias_vars): Allocate pointer-map and obstack.
30378 (delete_points_to_sets): Free them.
30379 (find_what_var_points_to): Cache result.
30380 (find_what_p_points_to): Adjust for changed interface of
30381 find_what_var_points_to.
30382 (compute_points_to_sets): Likewise.
30383 (ipa_pta_execute): Likewise.
30385 2013-01-30 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
30387 * configure.ac (HAVE_AS_SPARC_NOBITS): New test.
30388 * configure: Regenerate.
30389 * config.in: Regenerate.
30390 * config/sparc/sparc.c (sparc_solaris_elf_asm_named_section): Emit
30391 #nobits/#progbits if supported.
30393 2013-01-29 Oleg Endo <olegendo@gcc.gnu.org>
30396 * config/sh/sh.md (bclr_m2a, bset_m2a, bst_m2a, bld_m2a, bldsign_m2a,
30397 bld_reg, *bld_regqi, band_m2a, bandreg_m2a, bor_m2a, borreg_m2a,
30398 bxor_m2a, bxorreg_m2a): Add satisfies_constraint_K03 condition.
30400 2013-01-29 Greta Yorsh <Greta.Yorsh@arm.com>
30402 * config/arm/cortex-a7.md (cortex_a7_neon, cortex_a7_all): Remove.
30403 (cortex_a7_idiv): Use cortex_a7_both instead of cortex_a7_all.
30405 2013-01-29 Greta Yorsh <Greta.Yorsh@arm.com>
30407 * config/arm/arm.c (cortexa7_younger): Return true for TYPE_CALL.
30408 * config/arm/cortex-a7.md (cortex_a7_call): Update required units.
30410 2013-01-29 Greta Yorsh <Greta.Yorsh@arm.com>
30412 * config/arm/arm-protos.h (arm_mac_accumulator_is_result): New
30414 * config/arm/arm.c (arm_mac_accumulator_is_result): New function.
30415 * config/arm/cortex-a7.md: New bypasses using
30416 arm_mac_accumulator_is_result.
30418 2013-01-29 Greta Yorsh <Greta.Yorsh@arm.com>
30420 * config/arm/cortex-a7.md (cortex_a7_neon_mul): New reservation.
30421 (cortex_a7_neon_mla): Likewise.
30422 (cortex_a7_fpfmad): New reservation.
30423 (cortex_a7_fpmacs): Use ffmas and update required units.
30424 (cortex_a7_fpmuld): Update required units and latency.
30425 (cortex_a7_fpmacd): Likewise.
30426 (cortex_a7_fdivs, cortex_a7_fdivd): Likewise.
30427 (cortex_a7_neon). Likewise.
30428 (bypass) Update participating units.
30430 2013-01-29 Greta Yorsh <Greta.Yorsh@arm.com>
30432 * config/arm/arm.md (type): Add ffmas and ffmad to "type" attribute.
30433 * config/arm/vfp.md (fma,fmsub,fnmsub,fnmadd): Change type
30435 * config/arm/vfp11.md (vfp_farith): Use ffmas.
30436 (vfp_fmul): Use ffmad.
30437 * config/arm/cortex-r4f.md (cortex_r4_fmacs): Use ffmas.
30438 (cortex_r4_fmacd): Use ffmad.
30439 * config/arm/cortex-m4-fpu.md (cortex_m4_fmacs): Use ffmas.
30440 * config/arm/cortex-a9.md (cortex_a9_fmacs): Use ffmas.
30441 (cortex_a9_fmacd): Use ffmad.
30442 * config/arm/cortex-a8-neon.md (cortex_a8_vfp_macs): Use ffmas.
30443 (cortex_a8_vfp_macd): Use ffmad.
30444 * config/arm/cortex-a5.md (cortex_a5_fpmacs): Use ffmas.
30445 (cortex_a5_fpmacd): Use ffmad.
30446 * config/arm/cortex-a15-neon.md (cortex_a15_vfp_macs) Use ffmas.
30447 (cortex_a15_vfp_macd): Use ffmad.
30448 * config/arm/arm1020e.md (v10_fmul): Use ffmas and ffmad.
30450 2013-01-29 Jason Merrill <jason@redhat.com>
30453 * varasm.c (default_assemble_visibility): Don't warn about
30454 visibility on artificial decls.
30456 2013-01-29 Richard Biener <rguenther@suse.de>
30458 PR tree-optimization/56113
30459 * tree-ssa-structalias.c (equiv_class_lookup): Also return
30461 (label_visit): Free duplicate bitmaps and record the leader instead.
30462 (perform_var_substitution): Adjust.
30464 2013-01-29 Richard Biener <rguenther@suse.de>
30466 PR tree-optimization/55270
30467 * tree-ssa-dom.c (eliminate_degenerate_phis): If we changed
30468 the CFG, schedule loops for fixup.
30470 2013-01-29 Nick Clifton <nickc@redhat.com>
30472 * config/rl78/rl78.c (rl78_regno_mode_code_ok_for_base_p): Allow
30475 2013-01-28 Leif Ekblad <leif@rdos.net>
30477 * config.gcc (i[34567]86-*-rdos*, x86_64-*-rdos*): New targets.
30478 * config/i386/i386.h (TARGET_RDOS): New macro.
30479 (DEFAULT_LARGE_SECTION_THRESHOLD): New macro.
30480 * config/i386/i386.c (ix86_option_override_internal): For 64bit
30481 TARGET_RDOS, set ix86_cmodel to CM_MEDIUM_PIC and flag_pic to 1.
30482 * config/i386/i386.opt (mlarge-data-threshold): Initialize to
30483 DEFAULT_LARGE_SECTION_THRESHOLD.
30484 * config/i386/i386.md (R14_REG, R15_REG): New constants.
30485 * config/i386/rdos.h: New file.
30486 * config/i386/rdos64.h: New file.
30488 2013-01-28 Bernd Schmidt <bernds@codesourcery.com>
30491 * reload.c (find_valid_class_1): Use in_hard_reg_set_p instead of
30494 2013-01-28 Jakub Jelinek <jakub@redhat.com>
30496 PR rtl-optimization/56117
30497 * sched-deps.c (sched_analyze_2) <case PREFETCH>: For use_cselib
30498 call cselib_lookup_from_insn on the MEM before calling
30499 add_insn_mem_dependence.
30501 2013-01-28 Richard Biener <rguenther@suse.de>
30503 * tree-inline.c (remap_gimple_stmt): Do not assing a BLOCK
30504 to a stmt that didn't have one.
30505 (copy_phis_for_bb): Likewise for PHI arguments.
30506 (copy_debug_stmt): Likewise for debug stmts.
30508 2013-01-28 Richard Biener <rguenther@suse.de>
30510 PR tree-optimization/56034
30511 * tree-loop-distribution.c (enum partition_kind): Add PKIND_REDUCTION.
30512 (partition_builtin_p): Adjust.
30513 (generate_code_for_partition): Handle PKIND_REDUCTION. Assert
30514 it is the last partition.
30515 (rdg_flag_uses): Check SSA_NAME_IS_DEFAULT_DEF before looking
30516 up the vertex for the definition.
30517 (classify_partition): Classify whether a partition is a
30518 PKIND_REDUCTION, thus has uses outside of the loop.
30519 (ldist_gen): Inherit PKIND_REDUCTION when merging partitions.
30520 Merge all PKIND_REDUCTION partitions into the last partition.
30521 (tree_loop_distribution): Seed partitions from reductions as well.
30523 2013-01-28 Jakub Jelinek <jakub@redhat.com>
30525 PR tree-optimization/56125
30526 * tree-ssa-math-opts.c (gimple_expand_builtin_pow): Don't optimize
30527 pow(x,c) into sqrt(x) * powi(x, n/2) or
30528 1.0 / (sqrt(x) * powi(x, abs(n/2))) if c is an integer or when
30529 optimizing for size.
30530 Don't optimize pow(x,c) into powi(x, n/3) * powi(cbrt(x), n%3) or
30531 1.0 / (powi(x, abs(n)/3) * powi(cbrt(x), abs(n)%3)) if 2c is an
30534 PR tree-optimization/56094
30535 * gimplify.c (force_gimple_operand_1): Temporarily set input_location
30536 to UNKNOWN_LOCATION while gimplifying expr.
30538 2013-01-27 Uros Bizjak <ubizjak@gmail.com>
30541 * config/i386/i386.md (*movabs<mode>_1): Add square brackets around
30542 operand 0 in movabs insn template for -masm=intel asm alternative.
30543 (*movabs<mode>_2): Ditto for operand 1.
30545 2013-01-26 David Holsgrove <david.holsgrove@xilinx.com>
30548 * config.gcc (microblaze*-linux*): Add tmake_file to allow building
30551 2013-01-26 Edgar E. Iglesias <edgar.iglesias@gmail.com>
30553 * config.gcc (microblaze*-*-*): Rename microblaze*-*-elf, update
30556 2013-01-25 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
30558 * config/aarch64/aarch64.c (TARGET_FIXED_CONDITION_CODE_REGS):
30559 Undef to avoid warning.
30561 2013-01-25 Michael Haubenwallner <michael.haubenwallner@salomon.at>
30563 * configure.ac (gcc_cv_ld_static_dynamic): Define for AIX native ld.
30564 * configure: Regenerate.
30566 2013-01-25 Jakub Jelinek <jakub@redhat.com>
30568 PR tree-optimization/56098
30569 * tree-ssa-phiopt.c (nt_init_block): Don't call add_or_mark_expr
30570 for stmts with volatile ops.
30571 (cond_store_replacement): Don't optimize if assign has volatile ops.
30572 (cond_if_else_store_replacement_1): Don't optimize if either
30573 then_assign or else_assign have volatile ops.
30574 (hoist_adjacent_loads): Don't optimize if either def1 or def2 have
30577 2013-01-25 Georg-Johann Lay <avr@gjlay.de>
30579 * doc/invoke.texi (AVR Built-in Macros): Document __XMEGA__.
30581 2013-01-25 Georg-Johann Lay <avr@gjlay.de>
30583 * doc/extend.texi (Example of asm with clobbered asm reg): Fix
30584 missing ':' in asm example.
30586 2013-01-25 Tejas Belagod <tejas.belagod@arm.com>
30588 * config/aarch64/aarch64-simd-builtins.def: Separate sq<r>dmulh_lane
30589 entries into lane and laneq entries.
30590 * config/aarch64/aarch64-simd.md (aarch64_sq<r>dmulh_lane<mode>):
30591 Remove AdvSIMD scalar modes.
30592 (aarch64_sq<r>dmulh_laneq<mode>): New.
30593 (aarch64_sq<r>dmulh_lane<mode>): New RTL pattern for Scalar AdvSIMD
30595 * config/aarch64/arm_neon.h: Fix all the vq<r>dmulh_lane* intrinsics'
30596 builtin implementations to relfect changes in RTL in aarch64-simd.md.
30597 * config/aarch64/iterators.md (VCOND): New.
30600 2013-01-25 Georg-Johann Lay <avr@gjlay.de>
30603 * config/avr/builtins.def (DEF_BUILTIN): Add LIBNAME argument.
30604 Add NULL LIBNAME argument to existing definitions.
30605 (ABSHR, ABSR, ABSLR, ABSLLR, ABSHK, ABSK, ABSLK, ABSLLK): New.
30606 * config/avr/avr-c.c (DEF_BUILTIN): Add LIBNAME argument.
30607 * config/avr/avr.c (DEF_BUILTIN): Same.
30608 (avr_init_builtins): Pass down LIBNAME to add_builtin_function.
30609 (avr_expand_builtin): Expand to a vanilla call if a libgcc
30610 implementation is available (DECL_ASSEMBLER_NAME is set).
30611 (avr_fold_absfx): New static function.
30612 (avr_fold_builtin): Use it to handle: AVR_BUILTIN_ABSHR,
30613 AVR_BUILTIN_ABSR, AVR_BUILTIN_ABSLR, AVR_BUILTIN_ABSLLR,
30614 AVR_BUILTIN_ABSHK, AVR_BUILTIN_ABSK, AVR_BUILTIN_ABSLK,
30615 AVR_BUILTIN_ABSLLK.
30616 * config/avr/stdfix.h (abshr, absr, abslr, absllr)
30617 (abshk, absk, abslk, absllk): Provide as static inline functions.
30619 2013-01-25 Marek Polacek <polacek@redhat.com>
30621 PR tree-optimization/56035
30622 * cfgloopmanip.c (fix_loop_structure): Remove redundant condition.
30624 2012-01-24 Uros Bizjak <ubizjak@gmail.com>
30626 * config/i386/i386.md (*movti_internal_rex64): Add (o,e) alternative.
30627 (*movtf_internal_rex64): Add (!o,C) alternative
30628 (*movxf_internal_rex64): Ditto.
30629 (*movdf_internal_rex64): Add (?r,C) and (?m,C) alternatives.
30631 2013-01-24 Shenghou Ma <minux.ma@gmail.com>
30633 * doc/invoke.texi: fix typo.
30634 * doc/objc.texi: fix typo.
30636 2013-01-24 Richard Sandiford <rdsandiford@googlemail.com>
30638 * config/mips/mips.md (*and<mode>3_mips16): Use the "W" constraint
30639 for the first two alternatives.
30641 2013-01-24 Diego Novillo <dnovillo@google.com>
30643 * Makefile.in (GGC): Remove. Replace all instances with ggc-page.o.
30644 (ggc-zone.o): Remove.
30645 * configure.ac: Remove option --with-gc.
30646 * configure: Re-generate.
30647 * doc/install.texi: Remove documentation for --with-gc.
30648 * gengtype.c (write_enum_defn): Remove. Update all users.
30649 (write_Types_process_field): Remove generation of gt_e_* argument.
30650 (output_type_enum): Remove. Update all users.
30651 (write_enum_defn): Remove. Update all users.
30652 (enum alloc_zone): Remove. Update all users.
30653 (write_splay_tree_allocator_def): Remove generation of gt_e_* argument.
30654 * ggc-common.c (ggc_splay_alloc): Remove first argument.
30655 Update all callers.
30656 (struct ptr_data): Remove field TYPE. Update all users.
30657 (gt_pch_note_object): Remove argument TYPE. Update all users.
30658 * ggc-internal.h (ggc_pch_alloc_object): Remove last argument.
30660 * ggc-none.c (ggc_alloc_typed_stat): Remove.
30661 (struct alloc_zone): Remove.
30662 (ggc_internal_alloc_zone_stat): Remove.
30663 (ggc_internal_cleared_alloc_zone_stat): Remove.
30664 * ggc-page.c (ggc_alloc_typed_stat): Remove.
30665 (ggc_pch_count_object): Remove last argument. Update all users.
30666 (ggc_pch_alloc_object): Remove last argument. Update all users.
30667 (struct alloc_zone): Remove.
30668 * ggc-zone.c: Remove.
30669 * ggc.h (gt_pch_note_object): Remove last argument. Update all users.
30670 (struct alloc_zone): Remove.
30671 (ggc_alloc_typed_stat): Remove.
30672 (ggc_alloc_typed): Remove.
30673 (ggc_splay_alloc): Remove first argument.
30674 (rtl_zone): Remove. Update all users.
30675 (tree_zone): Remove. Update all users.
30676 (tree_id_zone): Remove. Update all users.
30677 (ggc_internal_zone_alloc_stat): Remove. Update all users.
30678 (ggc_internal_zone_cleared_alloc_stat): Remove. Update all users.
30679 (ggc_internal_zone_vec_alloc_stat): Remove. Update all users.
30680 * tree-ssanames.c: Remove references to zone allocator in comments.
30682 2013-01-24 Georg-Johann Lay <avr@gjlay.de>
30684 * config/avr/avr.c (avr_out_fract): Make register numbers that
30685 might be outside of source operand signed.
30687 2013-01-24 Uros Bizjak <ubizjak@gmail.com>
30689 * config/i386/constraints.md (Yf): New constraint.
30690 * config/i386/i386.md (*movdf_internal_rex64): Use Yf*f instead
30691 of f constraint to conditionaly disable x87 register preferences.
30692 (*movdf_internal): Ditto.
30693 (*movsf_internal): Ditto.
30695 2013-01-24 Steven Bosscher <steven@gcc.gnu.org>
30697 PR inline-asm/55934
30698 * lra-assigns.c (assign_by_spills): Throw away the pattern of asms
30699 that have operands with impossible constraints.
30700 Add a FIXME for a speed-up opportunity.
30701 * lra-constraints.c (process_alt_operands): Verify that a class
30702 selected from constraints on asms is valid for the operand mode.
30703 (curr_insn_transform): Remove incorrect comment.
30705 2013-01-23 David Edelsohn <dje.gcc@gmail.com>
30707 * config/rs6000/rs6000.c (rs6000_delegitimize_address): Check that
30708 TOC operand is a valid symbol ref in the constant pool.
30710 2013-01-23 Edgar E. Iglesias <edgar.iglesias@gmail.com>
30712 * config/microblaze/linux.h: Add TARGET_OS_CPP_BUILTINS
30714 2013-01-23 Georg-Johann Lay <avr@gjlay.de>
30717 * config/avr/stdfix.h: New file.
30718 * t-avr (stdfix-gcc.h): New rule to build it.
30719 (EXTRA_HEADERS): Set it to install stdfix.h, stdfix-gcc.h.
30721 2013-01-23 Kostya Serebryany <kcc@google.com>
30723 * config/darwin.h: remove dependency on
30724 CoreFoundation (asan on Mac OS).
30726 2013-01-23 Jakub Jelinek <jakub@redhat.com>
30729 * config/arm/arm.md (cbranchdi4, cstoredi4): Use s_register_operand
30730 instead of cmpdi_operand for first comparison operand.
30731 Don't assert that comparison operands aren't both constants.
30733 2013-01-22 Jonathan Wakely <jwakely.gcc@gmail.com>
30735 * doc/install.texi (Downloading the Source): Update references to
30736 downloading separate components.
30738 2013-01-22 Jonathan Wakely <jwakely.gcc@gmail.com>
30740 * doc/extend.texi (__int128): Improve grammar.
30742 2013-01-22 Uros Bizjak <ubizjak@gmail.com>
30745 * config/i386/i386.md (*movti_internal_rex64): Change (o,riF)
30746 alternative to (o,r).
30747 (*movdi_internal_rex64): Remove (!o,n) alternative.
30748 (DImode immediate->memory splitter): Remove.
30749 (DImode immediate->memory peephole2): Remove.
30750 (movtf): Enable for TARGET_64BIT || TARGET_SSE.
30751 (*movtf_internal_rex64): Rename from *movtf_internal. Change (!o,F*r)
30752 alternative to (!o,*r).
30753 (*movtf_internal_sse): New pattern.
30754 (*movxf_internal_rex64): New pattern.
30755 (*movxf_internal): Disable for TARGET_64BIT.
30756 (*movdf_internal_rex64): Remove (!o,F) alternative.
30758 2013-01-22 Jakub Jelinek <jakub@redhat.com>
30760 PR middle-end/56074
30761 * dumpfile.c (dump_loc): Only print loc if LOCATION_LOCUS (loc)
30762 isn't UNKNOWN_LOCATION nor BUILTINS_LOCATION.
30763 * tree-vect-loop-manip.c (find_loop_location): Also ignore
30764 stmt locations where LOCATION_LOCUS of the stmt location is
30765 UNKNOWN_LOCATION or BUILTINS_LOCATION.
30768 * config/i386/i386.md (UNSPEC_STOS): New.
30769 (strset_singleop, *strsetdi_rex_1, *strsetsi_1, *strsethi_1,
30770 *strsetqi_1): Add UNSPEC_STOS.
30772 2013-01-22 Paolo Carlini <paolo.carlini@oracle.com>
30775 * doc/invoke.texi: Remove left over -Wsynth example.
30777 2013-01-21 Jakub Jelinek <jakub@redhat.com>
30779 PR tree-optimization/56051
30780 * fold-const.c (fold_binary_loc): Don't fold
30781 X < (cast) (1 << Y) into (X >> Y) != 0 if cast is either
30782 a narrowing conversion, or widening conversion from signed
30785 2013-01-21 Uros Bizjak <ubizjak@gmail.com>
30787 PR rtl-optimization/56023
30788 * haifa-sched.c (fix_inter_tick): Do not update ticks of instructions,
30789 dependent on debug instruction.
30791 2013-01-21 Martin Jambor <mjambor@suse.cz>
30793 PR middle-end/56022
30794 * function.c (allocate_struct_function): Call
30795 invoke_set_current_function_hook earlier.
30797 2013-01-21 Jakub Jelinek <jakub@redhat.com>
30799 * reload1.c (init_reload): Only initialize reload_obstack
30800 during the first call.
30802 2013-01-21 Marek Polacek <polacek@redhat.com>
30804 * cfgloop.c (verify_loop_structure): Fix up grammar.
30806 2013-01-21 Yi-Hsiu Hsu <ahsu@marvell.com>
30808 * config/arm/marvell-pj4.md (pj4_shift_conds, pj4_alu_shift,
30809 pj4_alu_shift_conds, pj4_shift): Handle simple_alu_shift.
30811 2013-01-21 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
30814 * config/arm/marvell-pj4.md: Update copyright year.
30815 Fix up use of alu to alu_reg and simple_alu_imm.
30817 2013-01-21 Uros Bizjak <ubizjak@gmail.com>
30819 * config/i386/i386.md (enabled): Do not disable fma4 for TARGET_FMA.
30821 2013-01-20 Vladimir Makarov <vmakarov@redhat.com>
30824 * lra-constraints.c (curr_insn_transform): Don't reuse original
30825 insn for secondary memory move when memory mode should be different.
30827 2013-01-20 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
30829 * config/pa/pa.md (atomic_loaddi, atomic_loaddi_1, atomic_storedi,
30830 atomic_storedi_1): New patterns.
30832 2013-01-20 Venkataramanan Kumar <venkataramanan.kumar@amd.com>
30834 btver2 pipeline descriptions.
30835 * config/i386/i386.c: Enable CPU_BTVER2 to use btver2 pipeline
30837 * config/i386/i386.md (btver2_decode): New type attributes.
30838 * config/i386/sse.md (btver2_decode, btver2_sse_attr): New
30840 * config/i386/btver2.md: New file describing btver2 pipelines.
30842 2013-01-19 Andrew Pinski <apinski@cavium.com>
30844 PR tree-optimization/52631
30845 * tree-ssa-sccvn (visit_use): Before looking up the original
30846 statement, try looking up the simplified expression.
30848 2013-01-19 Anthony Green <green@moxielogic.com>
30850 * config/moxie/moxie.c (moxie_expand_prologue): Set
30851 current_function_static_stack_size.
30853 2013-01-18 Jakub Jelinek <jakub@redhat.com>
30855 PR tree-optimization/56029
30856 * tree-phinodes.c (reserve_phi_args_for_new_edge): Set
30857 gimple_phi_arg_location for the new arg to UNKNOWN_LOCATION.
30859 2013-01-18 Sharad Singhai <singhai@google.com>
30861 PR tree-optimization/55995
30862 * dumpfile.c (dump_loc): Print location only if available.
30863 * tree-vectorizer.c (increase_alignment): Intialize vect_location.
30865 2013-01-18 Vladimir Makarov <vmakarov@redhat.com>
30868 * lra-constraints.c (curr_insn_transform): Reuse original insn for
30869 secondary memory move.
30870 (inherit_reload_reg): Use rclass instead of cl for
30871 check_secondary_memory_needed_p.
30873 2013-01-18 Jakub Jelinek <jakub@redhat.com>
30875 PR middle-end/56015
30876 * expr.c (expand_expr_real_2) <case COMPLEX_EXPR>: Handle
30877 the case where writing real complex part of target modifies op1.
30879 2013-01-18 James Greenhalgh <james.greenhalgh@arm.com>
30881 * config/aarch64/aarch64-simd.md
30882 (aarch64_vcond_internal<mode>): Handle unordered cases.
30883 * config/aarch64/iterators.md (v_cmp_result): New.
30885 2013-01-18 Yi-Hsiu Hsu <ahsu@marvell.com>
30886 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
30888 * config/arm/marvell-pj4.md: New file.
30889 * config/arm/arm.c (arm_issue_rate): Add marvell_pj4.
30890 * config/arm/arm.md (generic_sched): Add marvell_pj4.
30891 (generic_vfp): Likewise.
30892 * config/arm/arm-cores.def: Add marvell-pj4.
30893 * config/arm/arm-tune.md: Regenerate.
30894 * config/arm/arm-tables.opt: Regenerate.
30895 * config/arm/bpabi.h (BE8_LINK_SPEC): Add marvell_pj4.
30896 * doc/invoke.texi: Document marvell-pj4.
30898 2013-01-18 Tejas Belagod <tejas.belagod@arm.com>
30900 * config/aarch64/arm_neon.h: Map scalar types to standard types.
30902 2013-01-18 Alexandre Oliva <aoliva@redhat.com>
30907 * var-tracking.c (negative_power_of_two_p): New.
30908 (global_get_addr_cache, local_get_addr_cache): New.
30909 (get_addr_from_global_cache, get_addr_from_local_cache): New.
30910 (vt_canonicalize_addr): Rewrite using the above. Adjust the
30912 (vt_stack_offset_p): Remove.
30913 (vt_canon_true_dep): Always canonicalize loc's address.
30914 (clobber_overlapping_mems): Make sure we have a MEM.
30915 (local_get_addr_clear_given_value): New.
30916 (val_reset): Clear local cached entries.
30917 (compute_bb_dataflow): Create and release the local cache.
30918 Disable duplicate MEMs clobbering.
30919 (emit_notes_in_bb): Clobber MEMs likewise.
30920 (vt_emit_notes): Create and release the local cache.
30921 (vt_initialize, vt_finalize): Create and release the global
30922 cache, respectively.
30923 * alias.c (rtx_equal_for_memref_p): Compare operands of ENTRY_VALUEs.
30925 2013-01-18 Alexandre Oliva <aoliva@redhat.com>
30927 PR libmudflap/53359
30928 * tree-mudflap.c (mudflap_finish_file): Skip deferred decls
30929 not found in the symtab.
30931 2013-01-18 Alexandre Oliva <aoliva@redhat.com>
30934 PR rtl-optimization/55547
30935 PR rtl-optimization/53827
30938 * alias.c (offset_overlap_p): New, factored out of...
30939 (memrefs_conflict_p): ... this. Use absolute sizes. Retain
30940 the conservative special case for symbolic constants. Don't
30941 adjust zero sizes on alignment.
30943 2013-01-18 Bernd Schmidt <bernds@codesourcery.com>
30945 PR rtl-optimization/52573
30946 * regrename.c (build_def_use): Ignore REG_DEAD notes if there is a
30947 REG_UNUSED for the same register.
30949 2013-01-17 Richard Biener <rguenther@suse.de>
30950 Marek Polacek <polacek@redhat.com>
30952 PR rtl-optimization/55833
30953 * loop-unswitch.c (unswitch_loops): Move loop verification...
30954 (unswitch_single_loop): ...here. Call mark_irreducible_loops.
30955 * cfgloopmanip.c (fix_loop_placement): Add IRRED_INVALIDATED parameter.
30956 Set it to true when we're removing a loop from hierarchy tree in
30957 an irreducible region.
30958 (fix_bb_placements): Adjust caller.
30959 (fix_loop_placements): Likewise.
30961 2013-01-17 Georg-Johann Lay <avr@gjlay.de>
30963 * config/avr/builtins.def (DEF_BUILTIN): Factor out
30964 "__builtin_avr_" from NAME, turn NAME to an uppercase identifier.
30965 Factor out 'CODE_FOR_' from ICODE, use 'nothing' instead of '-1'.
30966 Remove ID. Adjust comments.
30967 * config/avr/avr-c.c (avr_builtin_name): Remove.
30968 (avr_cpu_cpp_builtins): Use DEF_BUILTIN instead of for-loop.
30969 * config/avr/avr.c (avr_tolower): New static function.
30970 (DEF_BUILTIN): Remove parameter ID. Prefix ICODE by 'CODE_FOR_'.
30971 Stringify NAME, prefix it with "__builtin_avr_" and lowercase it.
30972 (avr_expand_builtin): Assert insn_code != CODE_FOR_nothing for
30975 2013-01-17 Jan Hubicka <jh@suse.cz>
30977 PR tree-optimization/55273
30978 * loop-iv.c (iv_number_of_iterations): Consider zero iteration case.
30980 2013-01-17 Uros Bizjak <ubizjak@gmail.com>
30983 * config/i386/sync.md (atomic_store<mode>): Always generate SWImode
30984 store through atomic_store<mode>_1.
30985 (atomic_store<mode>_1): Macroize insn using SWI mode iterator.
30987 2013-01-17 Martin Jambor <mjambor@suse.cz>
30989 PR tree-optimizations/55264
30990 * ipa-inline-transform.c (can_remove_node_now_p_1): Never return true
30991 for virtual methods.
30992 * ipa.c (symtab_remove_unreachable_nodes): Never return true for
30993 virtual methods before inlining is over.
30994 * cgraph.h (cgraph_only_called_directly_or_aliased_p): Return false for
30996 * cgraphclones.c (cgraph_create_virtual_clone): Mark clones as
30999 2013-01-16 Vladimir Makarov <vmakarov@redhat.com>
31001 PR rtl-optimization/56005
31002 * sched-deps.c (sched_analyze_2): Check deps->readonly for adding
31003 pending reads for prefetch.
31005 2013-01-16 Ian Bolton <ian.bolton@arm.com>
31007 * config/aarch64/aarch64.md
31008 (*cstoresi_neg_uxtw): New pattern.
31009 (*cmovsi_insn_uxtw): New pattern.
31010 (*<optab>si3_uxtw): New pattern.
31011 (*<LOGICAL:optab>_<SHIFT:optab>si3_uxtw): New pattern.
31012 (*<optab>si3_insn_uxtw): New pattern.
31013 (*bswapsi2_uxtw): New pattern.
31015 2013-01-16 Richard Biener <rguenther@suse.de>
31017 * tree-inline.c (tree_function_versioning): Remove set but
31018 never used variable.
31020 2013-01-16 Richard Biener <rguenther@suse.de>
31022 PR tree-optimization/55964
31023 * tree-flow.h (rename_variables_in_loop): Remove.
31024 (rename_variables_in_bb): Likewise.
31025 * tree-loop-distribution.c (update_phis_for_loop_copy): Remove.
31026 (copy_loop_before): Adjust and delete update-ssa status.
31027 * tree-vect-loop-manip.c (rename_variables_in_bb): Make static.
31028 (rename_variables_in_bb): Likewise. Properly walk over predecessors.
31029 (rename_variables_in_loop): Remove.
31030 (slpeel_update_phis_for_duplicate_loop): Likewise.
31031 (slpeel_tree_duplicate_loop_to_edge_cfg): Handle nested loops,
31032 use available cfg machinery instead of duplicating it.
31033 Update PHI nodes and perform poor-mans SSA update here.
31034 (slpeel_tree_peel_loop_to_edge): Adjust.
31036 2013-01-16 Richard Biener <rguenther@suse.de>
31038 PR tree-optimization/54767
31039 PR tree-optimization/53465
31040 * tree-vrp.c (vrp_meet_1): Revert original fix for PR53465.
31041 (vrp_visit_phi_node): For PHI arguments coming via backedges
31042 drop all symbolical range information.
31043 (execute_vrp): Compute backedges.
31045 2013-01-16 Richard Biener <rguenther@suse.de>
31047 * doc/install.texi: Update CLooG and ISL requirements to
31050 2013-01-16 Christian Bruel <christian.bruel@st.com>
31053 * config/sh/sh.c (sh_expand_prologue): Postpone new_stack mem symbol.
31054 (broken_move): Handle UNSPECV_SP_SWITCH_B.
31055 * config/sh/sh.md (sp_switch_1): Use set (reg:SI SP_REG).
31057 2013-01-16 DJ Delorie <dj@redhat.com>
31059 * config/sh/sh.md (UNSPECV_SP_SWITCH_B): New.
31060 (UNSPECV_SP_SWITCH_E): New.
31061 (sp_switch_1): Change to an unspec.
31062 (sp_switch_2): Change to an unspec. Don't use post-inc when we
31065 2013-01-16 Uros Bizjak <ubizjak@gmail.com>
31067 * emit-rtl.c (need_atomic_barrier_p): Mask memory model argument
31068 with MEMMODEL_MASK before comparing with MEMMODEL_* memory types.
31069 * optabs.c (maybe_emit_sync_lock_test_and_set): Ditto.
31070 (expand_mem_thread_fence): Ditto.
31071 (expand_mem_signal_fence): Ditto.
31072 (expand_atomic_load): Ditto.
31073 (expand_atomic_store): Ditto.
31075 2013-01-16 Alexandre Oliva <aoliva@redhat.com>
31077 PR rtl-optimization/55547
31078 PR rtl-optimization/53827
31081 * alias.c (memrefs_conflict_p): Set sizes to negative after
31084 2013-01-15 Jakub Jelinek <jakub@redhat.com>
31087 * function.c (thread_prologue_and_epilogue_insns): Always
31088 add crtl->drap_reg to set_up_by_prologue.set, even if
31089 stack_realign_drap is false.
31091 2013-01-15 Jan-Benedict Glaw <jbglaw@lug-owl.de>
31093 * config/vax/vax.md (add<mode>3, sub<mode>3, mul<mode>3, div<mode>3,
31094 and<mode>3, *and<mode>_const_int, ior<mode>3, xor<mode>3, ashrsi3,
31095 *call): Fix indention.
31097 2013-01-15 Tom de Vries <tom@codesourcery.com>
31100 * optabs.c (widen_operand): Use gen_lowpart instead of gen_rtx_SUBREG.
31103 2013-01-15 Vladimir Makarov <vmakarov@redhat.com>
31105 PR rtl-optimization/55153
31106 * sched-deps.c (sched_analyze_2): Add pending reads for prefetch.
31108 2013-01-15 Martin Jambor <mjambor@suse.cz>
31110 PR tree-optimization/55920
31111 * tree-sra.c (analyze_access_subtree): Do not mark non-removable
31112 accesses as grp_to_be_debug_replaced.
31114 2013-01-15 Jakub Jelinek <jakub@redhat.com>
31116 PR tree-optimization/55920
31117 * tree-sra.c (sra_modify_assign): If for lacc->grp_to_be_debug_replaced
31118 there is non-useless type conversion needed from debug rhs to lhs,
31119 use build_debug_ref_for_model and/or VIEW_CONVERT_EXPR.
31121 2013-01-15 Joseph Myers <joseph@codesourcery.com>
31122 Mikael Pettersson <mikpe@it.uu.se>
31125 * config/arm/arm.h (ADDR_VEC_ALIGN): Align SImode jump tables for
31127 (ASM_OUTPUT_CASE_LABEL): Remove.
31128 (ASM_OUTPUT_BEFORE_CASE_LABEL): Define to empty.
31129 * final.c (shorten_branches): Update alignment of labels before
31130 jump tables if CASE_VECTOR_SHORTEN_MODE.
31132 2013-01-15 Richard Biener <rguenther@suse.de>
31135 * system.h: Do not include gmp.h for building host tools.
31137 2013-01-15 Richard Biener <rguenther@suse.de>
31139 PR middle-end/55882
31140 * emit-rtl.c (set_mem_attributes_minus_bitpos): Correctly
31141 account for bitpos when computing alignment.
31143 2013-01-15 Vladimir Yakovlev <vladimir.b.yakovlev@intel.com>
31145 * config/i386/i386-c.c (ix86_target_macros_internal): New case.
31146 (ix86_target_macros_internal): Likewise.
31148 * config/i386/i386.c (m_CORE2I7): Removed.
31149 (m_CORE_HASWELL): New macro.
31150 (m_CORE_ALL): Likewise.
31151 (initial_ix86_tune_features): m_CORE2I7 is replaced by m_CORE_ALL.
31152 (initial_ix86_arch_features): Likewise.
31153 (processor_target_table): Initializations for Core avx2.
31154 (cpu_names): New names "core-avx2".
31155 (ix86_option_override_internal): Changed PROCESSOR_COREI7 by
31156 PROCESSOR_CORE_HASWELL.
31157 (ix86_issue_rate): New case.
31158 (ia32_multipass_dfa_lookahead): Likewise.
31159 (ix86_sched_init_global): Likewise.
31161 * config/i386/i386.h (TARGET_HASWELL): New macro.
31162 (target_cpu_default): New TARGET_CPU_DEFAULT_haswell.
31163 (processor_type): New PROCESSOR_HASWELL.
31165 2013-01-15 Jakub Jelinek <jakub@redhat.com>
31167 PR tree-optimization/55955
31168 * tree-vect-loop.c (vectorizable_reduction): Give up early on
31169 *SHIFT_EXPR and *ROTATE_EXPR codes.
31171 PR tree-optimization/48766
31172 * opts.c (common_handle_option): For -fwrapv disable -ftrapv, for
31173 -ftrapv disable -fwrapv.
31175 2013-01-14 Georg-Johann Lay <avr@gjlay.de>
31178 * config/avr/avr-c.c (avr_cpu_cpp_builtins): Define __FLASH
31179 etc. to 1 and not to __flash.
31180 Use LL suffix for __INT24_MAX__ with -mint8.
31181 Use ULL suffix for __UINT24_MAX__ with -mint8.
31183 2013-01-14 Georg-Johann Lay <avr@gjlay.de>
31185 * config/avr/avr-arch.h
31186 (struct base_arch_s): Use typedef avr_arch_t instead.
31187 (struct arch_info_s): Use typedef avr_arch_info_t instead.
31188 (struct mcu_type_s): Use typedef avr_mcu_t instead.
31189 * config/avr/avr.c: Same.
31190 * config/avr/avr-devices.c: Same.
31191 * config/avr/driver-avr.c: Same.
31192 * config/avr/gen-avr-mmcu-texi.c: Same.
31193 * config/avr/avr-mcus.def: Adjust comment.
31195 2013-01-14 Tejas Belagod <tejas.belagod@arm.com>
31197 * config/aarch64/aarch64-simd.md (*aarch64_simd_ld1r<mode>): New.
31198 * config/aarch64/iterators.md (VALLDI): New.
31200 2013-01-14 Uros Bizjak <ubizjak@gmail.com>
31201 Andi Kleen <ak@linux.intel.com>
31204 * config/i386/sync.md (atomic_store<mode>_1): New pattern.
31205 (atomic_store<mode>): Call atomic_store<mode>_1 for IX86_HLE_RELEASE
31208 2013-01-14 Georg-Johann Lay <avr@gjlay.de>
31210 * config/avr/avr-stdint.h: Remove trailing blanks.
31211 * config/avr/avr-log.h: Same.
31212 * config/avr/avr-arch.h: Same.
31213 * config/avr/avr-devices.c: Same.
31214 * config/avr/avr-dimode.md: Same.
31215 * config/avr/predicates.md: Same.
31216 * config/avr/avr-c.c: Same. And fix typo.
31218 * config/avr/avr-protos.h: Same. And:
31219 (function_arg_regno_p): Rename to avr_function_arg_regno_p.
31220 (init_cumulative_args): Rename to avr_init_cumulative_args.
31221 (expand_prologue): Rename to avr_expand_prologue.
31222 (expand_epilogue): Rename to avr_expand_epilogue.
31223 (adjust_insn_length): Rename to avr_adjust_insn_length.
31224 (notice_update_cc): Rename to avr_notice_update_cc.
31225 (final_prescan_insn): Rename to avr_final_prescan_insn.
31226 * config/avr/avr.c: Same.
31227 * config/avr/avr.h: Same.
31228 * config/avr/avr.md: Remove trailing blanks.
31229 (prologue): Use avr_expand_prologue.
31230 (epilogue, sibcall_epilogue): Use avr_expand_epilogue.
31232 2013-01-14 Richard Biener <rguenther@suse.de>
31234 * tree-cfg.c (verify_expr_location, verify_expr_location_1,
31235 verify_location, collect_subblocks): New functions.
31236 (verify_gimple_in_cfg): Verify that locations only reference
31237 BLOCKs in the functions BLOCK tree.
31239 2013-01-14 Richard Biener <rguenther@suse.de>
31241 * tree-cfgcleanup.c (remove_forwarder_block): Unshare propagated
31243 * graphite-sese-to-poly.c (insert_out_of_ssa_copy): Properly
31245 (insert_out_of_ssa_copy_on_edge): Likewise.
31246 (rewrite_close_phi_out_of_ssa): Likewise.
31247 * tree-ssa.c (insert_debug_temp_for_var_def): Properly unshare
31249 * tree-ssa-pre.c (insert_into_preds_of_block): Properly unshare
31250 propagated constants.
31251 * tree-cfg.c (tree_node_can_be_shared): Handled component-refs
31254 2013-01-14 Georg-Johann Lay <avr@gjlay.de>
31256 * config/avr/avr-modes.def: Add GPL copyright notice.
31258 2013-01-13 Uros Bizjak <ubizjak@gmail.com>
31260 * config/i386/sync.md (mem_thread_fence): Mask operands[0] with
31261 MEMMODEL_MASK to determine memory model.
31262 (atomic_store<mode>): Ditto from operands[2].
31263 * config/i386/i386.c (ix86_memmodel_check): Declare "strong" as bool.
31265 2013-01-13 Jakub Jelinek <jakub@redhat.com>
31268 * gimple-fold.c (get_symbol_constant_value): Call unshare_expr.
31269 (fold_gimple_assign): Don't call unshare_expr here.
31270 (fold_ctor_reference): Call unshare_expr.
31272 2013-01-13 Terry Guo <terry.guo@arm.com>
31274 * Makefile.in (s-mlib): New argument MULTILIB_REUSE.
31275 * doc/fragments.texi: Document MULTILIB_REUSE.
31276 * gcc.c (multilib_reuse): New internal spec.
31277 (set_multilib_dir): Also search multilib from multilib_reuse.
31278 * genmultilib (tmpmultilib3): Refactor code.
31279 (tmpmultilib4): Ditto.
31280 (multilib_reuse): New multilib argument.
31282 2013-01-13 Richard Sandiford <rdsandiford@googlemail.com>
31284 * Makefile.in: Update copyright.
31286 2013-01-12 Tom de Vries <tom@codesourcery.com>
31288 PR middle-end/55890
31289 * calls.c (expand_call): Check if arg_nr is valid.
31291 2013-01-11 Michael Meissner <meissner@linux.vnet.ibm.com>
31293 * doc/extend.texi (X86 Built-in Functions): Add whitespace in
31294 __builtin_ia32_paddb256 and __builtin_ia32_pavgb256
31295 documentation. Add missing '__' in front of
31296 __builtin_ia32_packssdw256.
31298 2013-01-11 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
31301 * config/s390/s390.c (s390_preferred_reload_class): Do not return
31302 NO_REGS for larl operands.
31303 (s390_reload_larl_operand): Use s390_load_address instead of
31306 2013-01-11 Richard Biener <rguenther@suse.de>
31308 * tree-cfg.c (verify_node_sharing_1): Split out from ...
31309 (verify_node_sharing): ... here.
31310 (verify_gimple_in_cfg): Use verify_node_sharing_1 for walk_tree.
31312 2013-01-11 Eric Botcazou <ebotcazou@adacore.com>
31314 * configure.ac (Tree checking): Set TREECHECKING to yes if enabled.
31315 Substitute TREECHECKING.
31316 * configure: Regenerate.
31317 * Makefile.in (TREECHECKING): New.
31319 2013-01-11 Richard Guenther <rguenther@suse.de>
31321 PR tree-optimization/44061
31322 * tree-vrp.c (extract_range_basic): Compute zero as
31323 value-range for __builtin_constant_p of function parameters.
31325 2013-01-10 Richard Sandiford <rdsandiford@googlemail.com>
31327 Update copyright years.
31329 2013-01-10 Vladimir Makarov <vmakarov@redhat.com>
31331 PR rtl-optimization/55672
31332 * lra-eliminations.c (mark_not_eliminable): Permit addition with
31333 const to be eliminable.
31335 2013-01-10 David Edelsohn <dje.gcc@gmail.com>
31337 * configure.ac (HAVE_AS_TLS): Add check for powerpc-ibm-aix.
31338 * configure: Regenerate.
31340 2013-01-10 Richard Biener <rguenther@suse.de>
31342 * builtins.c (expand_builtin_init_trampoline): Use set_mem_attributes.
31344 2013-01-10 Richard Biener <rguenther@suse.de>
31347 * tree-into-ssa.c (rewrite_add_phi_arguments): Do not set
31348 locations for virtual PHI arguments.
31349 (rewrite_update_phi_arguments): Likewise.
31351 2013-01-10 Joel Sherrill <joel.sherrill@OARcorp.com>
31353 * config/v850/rtems.h (ASM_SPEC): Pass -m8byte-align and -mgcc-abi
31356 2013-01-10 Jakub Jelinek <jakub@redhat.com>
31358 PR tree-optimization/55921
31359 * tree-complex.c (expand_complex_asm): New function.
31360 (expand_complex_operations_1): Call it for GIMPLE_ASM.
31362 2013-01-10 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
31365 * config/s390/s390.c (s390_symref_operand_p)
31366 (s390_loadrelative_operand_p): Merge the two functions.
31367 (s390_check_qrst_address, print_operand_address): Add parameters
31368 to s390_loadrelative_operand_p invokation.
31369 (s390_check_symref_alignment): Use s390_loadrelative_operand_p.
31370 (s390_reload_larl_operand, s390_secondary_reload): Use
31371 s390_loadrelative_operand_p instead of s390_symref_operand_p.
31372 (legitimize_pic_address): Handle @GOTENT and @PLT + addend.
31374 2013-01-09 Mike Stump <mikestump@comcast.net>
31376 * dse.c (record_store): Remove unnecessary assert.
31378 2013-01-09 Jan Hubicka <jh@suse.cz>
31380 PR tree-optimization/55569
31381 * cfgloopmanip.c (scale_loop_profile): Make ITERATION_BOUND gcov_type.
31382 * cfgloop.h (scale_loop_profile): Likewise.
31384 2013-01-09 Jan Hubicka <jh@suse.cz>
31387 * ipa-inline.c (ipa_inline): Remove extern inlines and virtual
31389 * cgraphclones.c (cgraph_clone_node): Cpoy also LTO file data.
31391 2013-01-09 Richard Sandiford <rdsandiford@googlemail.com>
31393 PR middle-end/55114
31394 * expr.h (maybe_emit_group_store): Declare.
31395 * expr.c (maybe_emit_group_store): New function.
31396 * builtins.c (expand_builtin_int_roundingfn): Call it.
31397 (expand_builtin_int_roundingfn_2): Likewise.
31399 2013-01-09 Vladimir Makarov <vmakarov@redhat.com>
31401 PR rtl-optimization/55829
31402 * lra-constraints.c (match_reload): Add code for absent output.
31403 (curr_insn_transform): Add code for reloads of matched inputs
31406 2013-01-09 Uros Bizjak <ubizjak@gmail.com>
31408 * config/i386/sse.md (*vec_interleave_highv2df): Change mode
31409 attribute of movddup insn to DF.
31410 (*vec_interleave_lowv2df): Ditto.
31411 (vec_dupv2df): Ditto.
31413 2013-01-09 Jan Hubicka <jh@suse.cz>
31415 PR tree-optimiation/55875
31416 * tree-ssa-loop-niter.c (number_of_iterations_cond): Add
31417 EVERY_ITERATION parameter.
31418 (number_of_iterations_exit): Check if exit is executed every iteration.
31419 (idx_infer_loop_bounds): Similarly here.
31420 (n_of_executions_at_most): Simplify
31421 to only test for cases where statement is dominated by the
31422 particular bound; handle correctly the "postdominance" test.
31423 (scev_probably_wraps_p): Use max loop iterations info
31424 as a global bound first.
31426 2013-01-09 Nguyen Duy Dat <dat.nguyen.yn@rvc.renesas.com>
31427 Nick Clifton <nickc@redhat.com>
31429 * config/v850/v850.md (cbranchsf4): New pattern.
31430 (cstoresf4): New pattern.
31431 (cbranchdf4): New pattern.
31432 (cstoredf4): New pattern.
31433 (movsicc): Disallow floating point comparisons.
31434 (cmpsf_le_insn): Fix order of operators.
31435 (cmpsf_lt_insn): Likewise.
31436 (cmpsf_eq_insn): Likewise.
31437 (cmpdf_le_insn): Likewise.
31438 (cmpdf_lt_insn): Likewise.
31439 (cmpdf_eq_insn): Likewise.
31440 (cmpsf_ge_insn): Use LE comparison.
31441 (cmpdf_ge_insn): Likewise.
31442 (cmpsf_gt_insn): Use LT comparison.
31443 (cmpdf_gt_insn): Likewise.
31444 (cmpsf_ne_insn): Delete pattern.
31445 (cmpdf_ne_insn): Delete pattern.
31446 * config/v850/v850.c (v850_gen_float_compare): Use
31447 gen_cmpdf_eq_insn for NE comparison.
31448 (v850_float_z_comparison_operator)
31449 (v850_float_nz_comparison_operator): Move from here ...
31450 * config/v850/predicates.md: ... to here. Move GT and GE
31451 comparisons into v850_float_z_comparison_operator.
31452 * config/v850/v850-protos.h (v850_float_z_comparison_operator):
31454 (v850_float_nz_comparison_operator): Likewise.
31456 2013-01-09 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
31458 * config/pa/pa.c (pa_emit_move_sequence): Replace calls to gen_insv
31459 with calls to gen_insvsi/gen_insvdi.
31461 2013-01-09 Venkataramanan Kumar <venkataramanan.kumar@amd.com>
31463 * config/i386/i386.c (initial_ix86_tune_features): Set up
31464 X86_TUNE_AVX128_OPTIMAL for m_BTVER2.
31466 2013-01-09 Steven Bosscher <steven@gcc.gnu.org>
31467 Jakub Jelinek <jakub@redhat.com>
31469 PR tree-optimization/48189
31470 * predict.c (predict_loops): If max is 0, don't call compare_tree_int.
31471 If nitercst is 0, don't predict the exit edge.
31473 2013-01-08 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
31475 * config/aarch64/aarch64.c (aarch64_print_operand): Replace %r
31476 in asm_fprintf with reg_names.
31477 (aarch64_print_operand_address): Likewise.
31478 (aarch64_return_addr): Likewise.
31479 * config/aarch64/aarch64.h (ASM_FPRINTF_EXTENSIONS): Remove.
31481 2013-01-08 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
31483 * config/pa/pa.h (VAL_U6_BITS_P): Define.
31484 (INT_U6_BITS): Likewise.
31485 * config/pa/predicates.md (uint6_operand): New predicate.
31486 (shift5_operand, shift6_operand): Likewise.
31487 * config/pa/pa.md (lshrsi3, rotrsi3): Use shift5_operand instead of
31489 (lshrdi3): Use shift6_operand.
31490 (shrpsi4, shrpdi4): New insn patterns.
31491 (extzv): Delete expander.
31492 (extzvsi, extzvdi): New expanders. Use uint5_operand and uint6_operand
31493 predicates in unamed zero extract patterns. Tighten common constraint.
31494 (extv): Delete expander.
31495 (extvsi, extvdi): New expanders. Use uint5_operand and uint6_operand
31496 predicates in unamed sign extract patterns. Tighten common constraint.
31497 (insv): Delete expander.
31498 (insvsi, insvdi): New expanders. Use uint5_operand and uint6_operand
31499 predicates in unamed insert patterns. Tighten common constraint.
31500 Change uint32_operand predicate to uint6_operand predicate in unamed
31501 DImode pattern to insert constant values of type 1...1xxxx.
31503 2013-01-04 Jan Hubicka <jh@suse.cz>
31505 PR tree-optimization/55823
31506 * ipa-prop.c (update_indirect_edges_after_inlining): Fix ordering
31509 2013-01-08 Jakub Jelinek <jakub@redhat.com>
31510 Uros Bizjak <ubizjak@gmail.com>
31512 PR rtl-optimization/55845
31513 * df-problems.c (can_move_insns_across): Stop scanning at
31514 volatile_insn_p source instruction or give up if
31515 across_from .. across_to range contains any volatile_insn_p
31518 2013-01-08 Tejas Belagod <tejas.belagod@arm.com>
31520 * config/aarch64/aarch64-simd.md (vec_init<mode>): New.
31521 * config/aarch64/aarch64-protos.h (aarch64_expand_vector_init):
31523 * config/aarch64/aarch64.c (aarch64_simd_dup_constant,
31524 aarch64_simd_make_constant, aarch64_expand_vector_init): New.
31526 2013-01-08 Jakub Jelinek <jakub@redhat.com>
31529 * asan.c (asan_clear_shadow): New function.
31530 (asan_emit_stack_protection): Use it.
31532 2013-01-08 Tejas Belagod <tejas.belagod@arm.com>
31534 * config/aarch64/aarch64-simd.md (aarch64_simd_vec_<su>mult_lo_<mode>,
31535 aarch64_simd_vec_<su>mult_hi_<mode>): Separate instruction and operand
31536 with tab instead of space.
31538 2013-01-08 Nick Clifton <nickc@redhat.com>
31540 * config/rl78/rl78.c (rl78_expand_prologue): Always select
31541 register bank 0 at the start of an interrupt handler.
31542 * config/rl78/rl78.md (mulsi3_g13): Correct values for MDBL and
31545 2013-01-08 James Greenhalgh <james.greenhalgh@arm.com>
31547 * config/aarch64/aarch64-simd.md
31548 (aarch64_simd_bsl<mode>_internal): Add floating-point modes.
31549 (aarch64_simd_bsl): Likewise.
31550 (aarch64_vcond_internal<mode>): Likewise.
31551 (vcond<mode><mode>): Likewise.
31552 (aarch64_cm<cmp><mode>): Fix constraints, add new modes.
31553 * config/aarch64/iterators.md (V_cmp_result): Add V2DF.
31555 2013-01-08 James Greenhalgh <james.greenhalgh@arm.com>
31557 * config/aarch64/aarch64-builtins.c
31558 (aarch64_builtin_vectorized_function): Handle sqrt, sqrtf.
31560 2013-01-08 Martin Jambor <mjambor@suse.cz>
31563 * tree-sra.c (analyze_access_subtree): Return true also after
31564 potentially creating a debug-only replacement.
31566 2013-01-08 Jakub Jelinek <jakub@redhat.com>
31568 PR middle-end/55890
31569 * tree-ssa-ccp.c (evaluate_stmt): Use gimple_call_builtin_p.
31571 PR tree-optimization/54120
31572 * tree-vrp.c (range_fits_type_p): Don't allow
31573 src_precision < precision from signed vr to unsigned_p
31574 if vr->min or vr->max is negative.
31575 (simplify_float_conversion_using_ranges): Test can_float_p
31576 against CODE_FOR_nothing.
31578 2013-01-08 Jakub Jelinek <jakub@redhat.com>
31579 Richard Biener <rguenther@suse.de>
31581 PR middle-end/55851
31582 * fold-const.c (int_binop_types_match_p): Allow all INTEGRAL_TYPE_P
31583 types instead of just INTEGER_TYPE types.
31585 2013-01-07 Mark Kettenis <kettenis@openbsd.org>
31587 * config/i386/openbsdelf.h (LIBGCC2_HAS_TF_MODE, LIBGCC2_TF_CEXT,
31590 2013-01-07 Steve Ellcey <sellcey@mips.com>
31593 * config/mips/mips.opt: Change mad to mmad to match documentation.
31595 2013-01-07 Georg-Johann Lay <avr@gjlay.de>
31598 * doc/extend.texi (AVR Named Address Spaces): __memx goes into
31599 .progmemx.data now.
31601 2013-01-07 Georg-Johann Lay <avr@gjlay.de>
31604 * config/avr/avr.h (ADDR_SPACE_COUNT): New enum.
31605 (avr_addrspace_t): Add .section_name field.
31606 * config/avr/avr.c (progmem_section): Use ADDR_SPACE_COUNT as
31608 (avr_addrspace): Same. Initialize .section_name. Remove last
31609 NULL entry. Put __memx into .progmemx.data.
31610 (progmem_section_prefix): Remove.
31611 (avr_asm_init_sections): No need to initialize progmem_section.
31612 (avr_asm_named_section): Use avr_addrspace[].section_name to get
31613 section name prefix.
31614 (avr_asm_select_section): Ditto. And use get_unnamed_section to
31615 retrieve the progmem section.
31616 * avr-c.c (avr_cpu_cpp_builtins): Use ADDR_SPACE_COUNT as loop
31617 boundary to run over avr_addrspace[].
31618 (avr_register_target_pragmas): Ditto.
31620 2013-01-06 Jakub Jelinek <jakub@redhat.com>
31622 * varasm.c (output_constant_def_contents): For asan_protect_global
31623 protected strings, adjust DECL_ALIGN if needed, before testing for
31625 (place_block_symbol): Adjust size for asan protected STRING_CSTs if
31626 TREE_CONSTANT_POOL_ADDRESS_P. Increase alignment for asan protected
31628 (output_object_block): For asan protected decls, emit asan padding
31629 after their contents.
31630 * asan.c (asan_protect_global): Don't check TREE_ASM_WRITTEN here.
31631 (asan_finish_file): Test it here instead.
31633 2013-01-07 Nick Clifton <nickc@redhat.com>
31634 Matthias Klose <doko@debian.org>
31635 Doug Kwan <dougkwan@google.com>
31636 H.J. Lu <hongjiu.lu@intel.com>
31639 * collect2.c (main): Support -fuse-ld=bfd and -fuse-ld=gold.
31641 * common.opt: Add fuse-ld=bfd and fuse-ld=gold.
31643 * gcc.c (LINK_COMMAND_SPEC): Pass -fuse-ld=* to collect2.
31645 * opts.c (comman_handle_option): Ignore -fuse-ld=bfd and -fuse-ld=gold.
31647 * doc/invoke.texi: Document -fuse-ld=bfd and -fuse-ld=gold.
31649 2013-01-07 Georg-Johann Lay <avr@gjlay.de>
31652 * doc/install.texi (Cross-Compiler-Specific Options): Document
31655 2013-01-07 Tejas Belagod <tejas.belagod@arm.com>
31657 * config/aarch64/arm_neon.h (vmovn_high_is16, vmovn_high_s32,
31658 vmovn_high_s64, vmovn_high_u16, vmovn_high_u32, vmovn_high_u64,
31659 vqmovn_high_s16, vqmovn_high_s32, vqmovn_high_s64, vqmovn_high_u16,
31660 vqmovn_high_u32, vqmovn_high_u64, vqmovun_high_s16, vqmovun_high_s32,
31661 vqmovun_high_s64): Fix source operand number and update copyright.
31663 2013-01-07 Richard Biener <rguenther@suse.de>
31665 PR middle-end/55890
31666 * gimple.h (gimple_call_builtin_p): New overload.
31667 * gimple.c (validate_call): New function.
31668 (gimple_call_builtin_p): Likewise.
31669 * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
31670 Use gimple_call_builtin_p.
31671 (find_func_clobbers): Likewise.
31672 * tree-ssa-strlen.c (adjust_last_stmt): Likewise.
31673 (strlen_optimize_stmt): Likewise.
31675 2013-01-07 James Greenhalgh <james.greenhalgh@arm.com>
31677 * config/aarch64/arm_neon.h (vld1_dup_*): Make argument const.
31678 (vld1q_dup_*): Likewise.
31679 (vld1_*): Likewise.
31680 (vld1q_*): Likewise.
31681 (vld1_lane_*): Likewise.
31682 (vld1q_lane_*): Likewise.
31684 2013-01-07 Richard Biener <rguenther@suse.de>
31686 * lto-streamer.h (LTO_minor_version): Bump to 2.
31688 2013-01-07 James Greenhalgh <james.greenhalgh@arm.com>
31690 * config/aarch64/aarch64-protos.h
31691 (aarch64_const_double_zero_rtx_p): Rename to...
31692 (aarch64_float_const_zero_rtx_p): ...this.
31693 (aarch64_float_const_representable_p): New.
31694 (aarch64_output_simd_mov_immediate): Likewise.
31695 * config/aarch64/aarch64-simd.md (*aarch64_simd_mov<mode>): Refactor
31696 move immediate case.
31697 * config/aarch64/aarch64.c
31698 (aarch64_const_double_zero_rtx_p): Rename to...
31699 (aarch64_float_const_zero_rtx_p): ...this.
31700 (aarch64_print_operand): Allow printing of new constants.
31701 (aarch64_valid_floating_const): New.
31702 (aarch64_legitimate_constant_p): Check for valid floating-point
31704 (aarch64_simd_valid_immediate): Likewise.
31705 (aarch64_vect_float_const_representable_p): New.
31706 (aarch64_float_const_representable_p): Likewise.
31707 (aarch64_simd_imm_zero_p): Also allow for floating-point 0.0.
31708 (aarch64_output_simd_mov_immediate): New.
31709 * config/aarch64/aarch64.md (*movsf_aarch64): Add new alternative.
31710 (*movdf_aarch64): Likewise.
31711 * config/aarch64/constraints.md (Ufc): New.
31712 (Y): call aarch64_float_const_zero_rtx.
31713 * config/aarch64/predicates.md (aarch64_fp_compare_operand): New.
31715 2013-01-07 Richard Biener <rguenther@suse.de>
31717 PR tree-optimization/55888
31718 PR tree-optimization/55862
31719 * tree-ssa-pre.c (phi_translate_1): Revert previous change.
31720 (valid_in_sets): Check if a NAME has a leader in AVAIL_OUT,
31721 not if it is contained therein.
31723 2013-01-07 Georg-Johann Lay <avr@gjlay.de>
31725 * config/avr/t-avr: Typo.
31727 2013-01-07 Georg-Johann Lay <avr@gjlay.de>
31730 * config/avr/t-avr: Don't automatically rebuild
31731 $(srcdir)/config/avr/t-multilib
31732 $(srcdir)/config/avr/avr-tables.opt
31733 $(srcdir)/doc/avr-mmcu.texi
31734 (avr-mcus): New phony target to build them on request.
31735 (s-avr-mlib, s-avr-mmcu-texi): Remove.
31736 * avr/avr-mcus.def: Adjust comments.
31738 2013-01-07 Uros Bizjak <ubizjak@gmail.com>
31740 * config/i386/i386.c (DEFAULT_PCC_STRUCT_RETURN): Remove.
31742 2013-01-06 Richard Sandiford <rdsandiford@googlemail.com>
31744 * file-find.c, file-find.h, realmpfr.c: Add FSF as copyright holder.
31746 2013-01-06 Richard Sandiford <rdsandiford@googlemail.com>
31748 * config/tilepro/gen-mul-tables.cc: Put copyright on one line.
31750 2013-01-05 David Edelsohn <dje.gcc@gmail.com>
31752 * config/rs6000/aix53.h (LIB_SPEC): Add -lpthreads when compiling
31753 to generate profiling.
31754 * config/rs6000/aix64.h (LIB_SPEC): Same.
31756 2013-01-04 Andrew Pinski <apinski@cavium.com>
31758 * config/aarch64/aarch64.c (aarch64_fixed_condition_code_regs):
31760 (TARGET_FIXED_CONDITION_CODE_REGS): Define.
31762 2013-01-04 Uros Bizjak <ubizjak@gmail.com>
31764 * config/i386/i386.c (ix86_legitimize_address): Call convert_to_mode
31766 (ix86_expand_move): Ditto.
31767 (ix86_zero_extend_to_Pmode): Ditto.
31768 (ix86_expand_call): Ditto.
31769 (ix86_expand_special_args_builtin): Ditto.
31770 (ix86_expand_builtin): Ditto.
31772 2013-01-04 Richard Biener <rguenther@suse.de>
31774 PR tree-optimization/55862
31775 * tree-ssa-pre.c (phi_translate_1): Valueize SSA names after
31776 translating them through PHI nodes.
31778 2013-01-04 Martin Jambor <mjambor@suse.cz>
31780 PR tree-optimization/55755
31781 * tree-sra.c (sra_modify_assign): Do not check that an access has no
31782 children when trying to avoid producing a VIEW_CONVERT_EXPR.
31784 2013-01-04 Marek Polacek <polacek@redhat.com>
31786 PR middle-end/55859
31787 * opts.c (default_options_optimization): Clarify error message.
31789 2013-01-04 Richard Biener <rguenther@suse.de>
31791 PR middle-end/55863
31792 * fold-const.c (split_tree): Undo -X - 1 to ~X folding for
31795 2013-01-03 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
31798 * config/pa/pa.md (movsi): Revert previous change.
31799 * config/pa/pa.c (pa_legitimate_constant_p): Reject all TLS symbol
31802 2013-01-03 Richard Henderson <rth@redhat.com>
31804 * config/i386/i386.c (ix86_expand_move): Always assign to op1
31805 after eliminating TLS symbols.
31807 2013-01-03 Marc Glisse <marc.glisse@inria.fr>
31810 * graphite-interchange.c (pdr_stride_in_loop): Use gmp_fprintf.
31811 * graphite-poly.c (debug_gmp_value): Likewise.
31813 2013-01-03 Uros Bizjak <ubizjak@gmail.com>
31816 * config/i386/i386-c.c (ix86_target_macros_internal): Depending on
31817 selected code model, define __code_mode_small__, __code_model_medium__,
31818 __code_model_large__, __code_model_32__ or __code_model_kernel__.
31819 * config/i386/cpuid.h (__cpuid, __cpuid_count) [__i386__]: Prefix
31820 xchg temporary register with %k. Declare temporary register as
31822 [__x86_64__]: For medium and large code models, preserve %rbx register.
31824 2013-01-03 Richard Biener <rguenther@suse.de>
31826 * tree-data-ref.c (dump_conflict_function): Use less vertical spacing.
31827 (dump_subscript): Adjust.
31828 (finalize_ddr_dependent): Do not dump redundant info.
31829 (analyze_siv_subscript): Adjust.
31830 (subscript_dependence_tester): Likewise.
31831 (compute_affine_dependence): Likewise.
31833 2013-01-03 Richard Biener <rguenther@suse.de>
31836 2013-01-03 Richard Biener <rguenther@suse.de>
31838 PR tree-optimization/55857
31839 * tree-vect-stmts.c (vectorizable_load): Do not setup
31840 re-alignment for invariant loads.
31842 2013-01-02 Richard Biener <rguenther@suse.de>
31844 * tree-vect-stmts.c (vectorizable_load): When vectorizing an
31845 invariant load do not generate a vector load from the scalar location.
31847 2013-01-03 Richard Biener <rguenther@suse.de>
31849 * tree-vect-loop.c (vect_analyze_loop_form): Clarify reason
31850 for not vectorizing.
31851 * tree-vect-data-refs.c (vect_create_addr_base_for_vector_ref): Do
31852 not build INDIRECT_REFs, call get_name once only.
31853 (vect_create_data_ref_ptr): Likewise. Dump base object kind
31854 based on DR_BASE_OBJECT, not DR_BASE_ADDRESS.
31856 2013-01-03 Richard Biener <rguenther@suse.de>
31858 PR tree-optimization/55857
31859 * tree-vect-stmts.c (vectorizable_load): Do not setup
31860 re-alignment for invariant loads.
31862 2013-01-03 Richard Biener <rguenther@suse.de>
31865 * lto-symtab.c (lto_symtab_merge_decls_1): As last resort, always
31866 prefer a built-in decl.
31868 2013-01-03 Jakub Jelinek <jakub@redhat.com>
31870 * gcc.c (process_command): Update copyright notice dates.
31871 * gcov.c (print_version): Likewise.
31872 * gcov-dump.c (print_version): Likewise.
31874 PR rtl-optimization/55838
31875 * loop-iv.c (iv_number_of_iterations): Call lowpart_subreg on
31876 iv0.step, iv1.step and step.
31878 2013-01-03 Jakub Jelinek <jakub@redhat.com>
31879 Marc Glisse <marc.glisse@inria.fr>
31881 PR tree-optimization/55832
31882 * fold-const.c (fold_binary_loc): For ABS_EXPR<x> >= 0 and
31883 ABS_EXPR<x> < 0 folding use constant_boolean_node instead of
31884 integer_{one,zero}_node.
31886 2013-01-03 Jakub Jelinek <jakub@redhat.com>
31889 * params.def (PARAM_MAX_VARTRACK_REVERSE_OP_SIZE): New param.
31890 * var-tracking.c (reverse_op): Don't add reverse ops to
31891 VALUEs that have already
31892 PARAM_VALUE (PARAM_MAX_VARTRACK_REVERSE_OP_SIZE) or longer locs list.
31894 2013-01-02 Gerald Pfeifer <gerald@pfeifer.com>
31896 * doc/contrib.texi: Note years as release manager for Mark Mitchell.
31898 2013-01-02 Teresa Johnson <tejohnson@google.com>
31900 * dumpfile.c (dump_loc): Print filename with location.
31901 * tree-ssa-loop-ivcanon.c (try_unroll_loop_completely): Use
31902 new location_t parameter to emit complete unroll message with
31903 new dump framework.
31904 (canonicalize_loop_induction_variables): Compute loops location
31905 and pass to try_unroll_loop_completely.
31906 * loop-unroll.c (report_unroll_peel): New function.
31907 (peel_loops_completely): Use new dump format with location
31908 for main dumpfile message, and invoke report_unroll_peel on success.
31909 (decide_unrolling_and_peeling): Ditto.
31910 (decide_peel_once_rolling): Remove old dumpfile message subsumed
31911 by report_unroll_peel.
31912 (decide_peel_completely): Ditto.
31913 (decide_unroll_constant_iterations): Ditto.
31914 (decide_unroll_runtime_iterations): Ditto.
31915 (decide_peel_simple): Ditto.
31916 (decide_unroll_stupid): Ditto.
31917 * cfgloop.c (get_loop_location): New function.
31918 * cfgloop.h (get_loop_location): Declare.
31920 2013-01-02 Sriraman Tallam <tmsriram@google.com>
31922 * config/i386/i386.c (fold_builtin_cpu): Remove unnecessary checks for
31925 2013-01-02 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
31927 PR middle-end/55198
31928 * expr.c (expand_expr_real_1): Don't use bitfield extraction for non
31929 BLKmode objects when EXPAND_MEMORY is specified.
31931 2013-01-02 Sriraman Tallam <tmsriram@google.com>
31933 * config/i386/i386.c (ix86_get_function_versions_dispatcher): Fix bug
31935 (fold_builtin_cpu): Do not share cpu model decls across statements.
31937 2013-01-02 Jason Merrill <jason@redhat.com>
31940 * tree.c (build_array_type_1): Revert earlier change.
31942 2013-01-02 Yufeng Zhang <yufeng.zhang@arm.com>
31944 * config/aarch64/aarch64-cores.def: Add entries for "cortex-a53" and
31946 * config/aarch64/aarch64-tune.md: Re-generate.
31948 2013-01-02 Richard Biener <rguenther@suse.de>
31950 * tree-vect-stmts.c (vectorizable_load): When vectorizing an
31951 invariant load do not generate a vector load from the scalar location.
31953 2013-01-02 Richard Biener <rguenther@suse.de>
31956 * configure.ac: Add $GMPINC to CFLAGS/CXXFLAGS.
31957 * configure: Regenerate.
31959 2013-01-02 Richard Sandiford <rdsandiford@googlemail.com>
31961 * builtins.c (expand_builtin_mathfn, expand_builtin_mathfn_2)
31962 (expand_builtin_mathfn_ternary, expand_builtin_mathfn_3)
31963 (expand_builtin_int_roundingfn_2): Keep the original target around
31964 for the fallback case.
31966 2013-01-02 Richard Sandiford <rdsandiford@googlemail.com>
31968 * tree-vrp.c (range_fits_type_p): Require the MSB of the double_int
31969 to be clear for sign changes.
31971 2013-01-01 Jan Hubicka <jh@suse.cz>
31973 * ipa-inline-analysis.c: Fix formatting.
31975 2013-01-01 Jakub Jelinek <jakub@redhat.com>
31977 PR tree-optimization/55831
31978 * tree-vect-loop.c (get_initial_def_for_induction): Use
31979 gsi_after_labels instead of gsi_start_bb.
31981 Copyright (C) 2013 Free Software Foundation, Inc.
31983 Copying and distribution of this file, with or without modification,
31984 are permitted in any medium without royalty provided the copyright
31985 notice and this notice are preserved.