1 2013-11-18 Uros Bizjak <ubizjak@gmail.com>
3 * config/i386/i386.c (ix86_decompose_address): Use REG_P instead of
4 ix86_address_subreg_operand. Move subreg checks to
5 ix86_validate_address_register. Move address override check to
6 ix86_legitimate_address_p.
7 (ix86_validate_address_register): New function.
8 (ix86_legitimate_address_p): Call ix86_validate_address_register
9 to validate base and index registers. Add address override check
10 from ix86_decompose_address.
11 (ix86_decompose_address): Remove.
13 2013-11-18 Richard Biener <rguenther@suse.de>
15 PR tree-optimization/59125
16 PR tree-optimization/54570
17 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): When inlining
18 is not complete do not treat component-references with offset zero
19 but different fields as equal.
20 * tree-object-size.c: Include tree-phinodes.h and ssa-iterators.h.
21 (compute_object_sizes): Apply TLC. Propagate the constant
22 results into all uses and fold their stmts.
23 * passes.def (pass_all_optimizations): Move pass_object_sizes
24 after the first pass_forwprop and before pass_fre.
26 2013-11-18 Richard Sandiford <rdsandiford@googlemail.com>
28 * tree.h (tree_to_uhwi): Return an unsigned HOST_WIDE_INT.
29 * tree.c (tree_to_uhwi): Return an unsigned HOST_WIDE_INT.
30 (tree_ctz): Remove cast to unsigned type.
31 * builtins.c (fold_builtin_memory_op): Likewise.
32 * dwarf2out.c (descr_info_loc): Likewise.
33 * godump.c (go_output_typedef): Likewise.
34 * omp-low.c (expand_omp_simd): Likewise.
35 * stor-layout.c (excess_unit_span): Likewise.
36 * tree-object-size.c (addr_object_size): Likewise.
37 * tree-sra.c (analyze_all_variable_accesses): Likewise.
38 * tree-ssa-forwprop.c (simplify_builtin_call): Likewise.
39 (simplify_rotate): Likewise.
40 * tree-ssa-strlen.c (adjust_last_stmt, handle_builtin_memcpy)
41 (handle_pointer_plus): Likewise.
42 * tree-switch-conversion.c (check_range): Likewise.
43 * tree-vect-patterns.c (vect_recog_rotate_pattern): Likewise.
44 * tsan.c (instrument_builtin_call): Likewise.
45 * cfgexpand.c (defer_stack_allocation): Add cast to HOST_WIDE_INT.
46 * trans-mem.c (tm_log_add): Likewise.
47 * config/aarch64/aarch64.c (aapcs_vfp_sub_candidate): Likewise.
48 * config/arm/arm.c (aapcs_vfp_sub_candidate): Likewise.
49 * config/rs6000/rs6000.c (rs6000_aggregate_candidate): Likewise.
50 * config/mips/mips.c (r10k_safe_mem_expr_p): Make offset unsigned.
52 2013-11-18 Richard Sandiford <rdsandiford@googlemail.com>
54 * tree.h (host_integerp, tree_low_cst): Delete.
55 * tree.c (host_integerp, tree_low_cst): Delete.
57 2013-11-18 Richard Sandiford <rdsandiford@googlemail.com>
59 * expr.h: Update comments to refer to tree_to_[su]hwi rather
61 * fold-const.c (fold_binary_loc): Likewise.
62 * expr.c (store_constructor): Use tree_to_uhwi rather than
64 * ipa-utils.h (possible_polymorphic_call_target_p): Likewise.
65 * stmt.c (emit_case_dispatch_table): Likewise.
66 * tree-switch-conversion.c (emit_case_bit_tests): Likewise.
68 2013-11-18 Richard Sandiford <rdsandiford@googlemail.com>
70 * alias.c, asan.c, builtins.c, cfgexpand.c, cgraph.c,
71 config/aarch64/aarch64.c, config/alpha/predicates.md,
72 config/arm/arm.c, config/darwin.c, config/epiphany/epiphany.c,
73 config/i386/i386.c, config/iq2000/iq2000.c, config/m32c/m32c-pragma.c,
74 config/mep/mep-pragma.c, config/mips/mips.c,
75 config/picochip/picochip.c, config/rs6000/rs6000.c, cppbuiltin.c,
76 dbxout.c, dwarf2out.c, emit-rtl.c, except.c, expr.c, fold-const.c,
77 function.c, gimple-fold.c, godump.c, ipa-cp.c, ipa-prop.c, omp-low.c,
78 predict.c, sdbout.c, stor-layout.c, trans-mem.c, tree-object-size.c,
79 tree-sra.c, tree-ssa-ccp.c, tree-ssa-forwprop.c,
80 tree-ssa-loop-ivcanon.c, tree-ssa-loop-ivopts.c, tree-ssa-loop-niter.c,
81 tree-ssa-loop-prefetch.c, tree-ssa-strlen.c, tree-stdarg.c,
82 tree-switch-conversion.c, tree-vect-generic.c, tree-vect-loop.c,
83 tree-vect-patterns.c, tree-vrp.c, tree.c, tsan.c, ubsan.c, varasm.c:
84 Replace tree_low_cst (..., 1) with tree_to_uhwi throughout.
86 2013-11-18 Richard Sandiford <rdsandiford@googlemail.com>
88 * builtins.c, cilk-common.c, config/aarch64/aarch64.c,
89 config/alpha/alpha.c, config/arm/arm.c, config/c6x/predicates.md,
90 config/i386/i386.c, config/ia64/predicates.md, config/s390/s390.c,
91 coverage.c, dbxout.c, dwarf2out.c, except.c, explow.c, expr.c, expr.h,
92 fold-const.c, gimple-fold.c, godump.c, ipa-prop.c, omp-low.c,
93 predict.c, rtlanal.c, sdbout.c, stmt.c, stor-layout.c, targhooks.c,
94 tree-cfg.c, tree-data-ref.c, tree-inline.c, tree-ssa-forwprop.c,
95 tree-ssa-loop-prefetch.c, tree-ssa-phiopt.c, tree-ssa-sccvn.c,
96 tree-ssa-strlen.c, tree-stdarg.c, tree-vect-data-refs.c,
97 tree-vect-patterns.c, tree.c, tree.h, var-tracking.c, varasm.c:
98 Replace tree_low_cst (..., 0) with tree_to_shwi throughout.
100 2013-11-18 Richard Sandiford <rdsandiford@googlemail.com>
102 * tree.h (tree_to_shwi, tree_to_uhwi): Declare, with inline expansions.
103 * tree.c (tree_to_shwi, tree_to_uhwi): New functions.
105 2013-11-18 Richard Sandiford <rdsandiford@googlemail.com>
107 * expr.h: Update comments to refer to tree_fits_[su]hwi_p rather
110 2013-11-18 Richard Sandiford <rdsandiford@googlemail.com>
112 * builtins.c, config/alpha/alpha.c, config/iq2000/iq2000.c,
113 config/mips/mips.c, dbxout.c, dwarf2out.c, expr.c, fold-const.c,
114 gimple-fold.c, godump.c, omp-low.c, predict.c, sdbout.c, stor-layout.c,
115 tree-dfa.c, tree-sra.c, tree-ssa-forwprop.c, tree-ssa-loop-prefetch.c,
116 tree-ssa-phiopt.c, tree-ssa-sccvn.c, tree-ssa-strlen.c,
117 tree-ssa-structalias.c, tree-vect-data-refs.c, tree-vect-patterns.c,
118 tree.c, varasm.c, alias.c, cfgexpand.c, config/aarch64/aarch64.c,
119 config/arm/arm.c, config/epiphany/epiphany.c, config/i386/i386.c,
120 config/m32c/m32c-pragma.c, config/mep/mep-pragma.c,
121 config/rs6000/rs6000.c, config/sparc/sparc.c, emit-rtl.c, function.c,
122 gimplify.c, ipa-prop.c, stmt.c, trans-mem.c, tree-cfg.c,
123 tree-object-size.c, tree-ssa-ccp.c, tree-ssa-loop-ivcanon.c,
124 tree-stdarg.c, tree-switch-conversion.c, tree-vect-generic.c,
125 tree-vrp.c, tsan.c, ubsan.c: Replace host_integerp (..., 1) with
126 tree_fits_uhwi_p throughout.
128 2013-11-18 Richard Sandiford <rdsandiford@googlemail.com>
130 * builtins.c, config/alpha/alpha.c, config/c6x/predicates.md,
131 config/ia64/predicates.md, config/iq2000/iq2000.c, config/mips/mips.c,
132 config/s390/s390.c, dbxout.c, dwarf2out.c, except.c, explow.c, expr.c,
133 expr.h, fold-const.c, gimple-fold.c, gimple-ssa-strength-reduction.c,
134 gimple.c, godump.c, graphite-scop-detection.c, graphite-sese-to-poly.c,
135 omp-low.c, predict.c, rtlanal.c, sdbout.c, simplify-rtx.c,
136 stor-layout.c, tree-data-ref.c, tree-dfa.c, tree-pretty-print.c,
137 tree-sra.c, tree-ssa-alias.c, tree-ssa-forwprop.c,
138 tree-ssa-loop-ivopts.c, tree-ssa-loop-prefetch.c, tree-ssa-math-opts.c,
139 tree-ssa-phiopt.c, tree-ssa-reassoc.c, tree-ssa-sccvn.c,
140 tree-ssa-strlen.c, tree-ssa-structalias.c, tree-vect-data-refs.c,
141 tree-vect-patterns.c, tree-vectorizer.h, tree.c, var-tracking.c,
142 varasm.c: Replace host_integerp (..., 0) with tree_fits_shwi_p
145 2013-11-18 Richard Sandiford <rdsandiford@googlemail.com>
147 * tree.h (tree_fits_shwi_p, tree_fits_uhwi_p): Declare.
148 * tree.c (tree_fits_shwi_p, tree_fits_uhwi_p): Define.
150 2013-11-18 Kirill Yukhin <kirill.yukhin@intel.com>
152 * gcc/config/ia64/ia64.c (ia64_split_tmode_move): Mark load with
153 `dead' flag if it kills address, not its post-increment.
155 2013-11-18 Ilya Enkovich <ilya.enkovich@intel.com>
157 * builtin-types.def (BT_FN_PTR_CONST_PTR_VAR): New.
158 * chkp-builtins.def (BUILT_IN_CHKP_BIND_BOUNDS): New.
159 * cfgexpand.c (expand_call_stmt): Expand BUILT_IN_CHKP_BIND_BOUNDS.
160 * gimple.c (gimple_call_get_nobnd_arg_index): Remove.
161 * gimple.h (gf_mask): Add GF_CALL_WITH_BOUNDS.
162 (gimple_call_with_bounds_p): New.
163 (gimple_call_set_with_bounds): New.
164 (gimple_call_num_nobnd_args): Remove.
165 (gimple_call_nobnd_arg): Remove.
166 * tree.h (CALL_WITH_BOUNDS_P): New.
167 * rtl.h (CALL_EXPR_WITH_BOUNDS_P): New.
169 2013-11-18 Trevor Saunders <tsaunders@mozilla.com>
171 * cgraph.h (symtab_node_asm_name): Rename to symtab_node::asm_name.
172 (symtab_node_name): Rename to symtab_node::name.
173 (cgraph_node_asm_name): Remove.
174 (varpool_node_asm_name): Remove.
175 * cgraph.c cgraphclones.c cgraphunit.c ipa-cp.c ipa-devirt.c
176 ipa-inline-analysis.c ipa-inline-transform.c ipa-inline.c
177 ipa-profile.c ipa-prop.c ipa-pure-const.c ipa-ref.c ipa-reference.c
178 ipa-utils.c ipa.c symtab.c tree-inline.c tree-sra.c
179 tree-ssa-structalias.c value-prof.c varpool.c Adjust.
181 2013-11-18 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
183 * config/arm/aarch-cost-tables.h (cortexa53_extra_costs): New table.
184 * config/arm/arm.c (arm_cortex_a53_tune): New.
185 * config/arm/arm-cores.def (cortex-a53): Use cortex_a53 tuning struct.
187 2013-11-12 Ganesh Gopalasubramanian <Ganesh.Gopalasubramanian@amd.com>
189 * config.gcc (i[34567]86-*-linux* | ...): Add bdver4.
190 (case ${target}): Add bdver4.
191 * config/i386/bdver3.md: Add bdver4.
192 * config/i386/driver-i386.c: (host_detect_local_cpu): Let
193 -march=native recognize bdver4 processors.
194 * config/i386/i386-c.c (ix86_target_macros_internal): Add
196 * config/i386/i386.c (struct processor_costs bdver4_cost): New.
197 (m_BDVER4): New definition.
198 (m_AMD_MULTIPLE): Includes m_BDVER4.
199 (processor_target_table): Add bdver4 entry.
200 (static const char *const cpu_names): Add bdver4 entry.
201 (software_prefetching_beneficial_p): Add bdver3.
202 (ix86_option_override_internal): Add bdver4 instruction sets.
203 (ix86_issue_rate): Add bdver4.
204 (ix86_adjust_cost): Add bdver4.
205 (ia32_multipass_dfa_lookahead): Add bdver4.
206 (enum processor_model): Add M_AMDFAM15H_BDVER4.
207 (struct _arch_names_table): Add M_AMDFAM15H_BDVER4.
208 (has_dispatch): Add bdver4.
209 * config/i386/i386.h (TARGET_BDVER4): New definition.
210 (enum target_cpu_default): Add TARGET_CPU_DEFAULT_bdver4.
211 (enum processor_type): Add PROCESSOR_BDVER4.
212 * config/i386/i386.md (define_attr "cpu"): Add bdver4.
213 * config/i386/i386.opt (flag_dispatch_scheduler): Add bdver4.
214 * gcc/doc/extend.texi: Add details about bdver4.
215 * gcc/doc/invoke.texi: Add details about bdver4. Add
216 fma4 and fsgsbase for bdver3. Add fma4 for bdver2.
218 2013-11-17 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
220 * config/rs6000/rs6000.c (rs6000_emit_move): Use low word of
221 sdmode_stack_slot also in little-endian mode.
223 2013-11-17 Jan Hubicka <jh@suse.cz>
225 * doc/md.texi (setmem, movstr): Update documentation.
226 * builtins.c (determine_block_size): New function.
227 (expand_builtin_memcpy): Use it and pass it to emit_block_move_hints.
228 (expand_builtin_memset_args): Use it and pass it to
229 set_storage_via_setmem.
230 * expr.c (emit_block_move_via_movmem): Add min_size/max_size
231 parameters; update call to expander.
232 (emit_block_move_hints): Add min_size/max_size parameters.
233 (clear_storage_hints): Likewise.
234 (set_storage_via_setmem): Likewise.
235 (clear_storage): Update.
236 * expr.h (emit_block_move_hints, clear_storage_hints,
237 set_storage_via_setmem): Update prototypes.
238 * i386.c (ix86_expand_set_or_movmem): Add bounds; export.
239 (ix86_expand_movmem, ix86_expand_setmem): Remove.
240 (ix86_expand_movmem, ix86_expand_setmem): Remove.
241 * i386.md (movmem, setmem): Pass parameters.
243 2013-11-17 Uros Bizjak <ubizjak@gmail.com>
246 * config/i386/i386.c (ix86_address_subreg_operand): Do not
247 reject non-integer subregs.
248 (ix86_decompose_address): Do not reject invalid CONST_INT RTXes.
249 Move check for invalid x32 constant addresses ...
250 (ix86_legitimate_address_p): ... here.
252 2011-11-17 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
254 * config/rs6000/rs6000.c (rs6000_frame_related): Add split_reg
255 parameter and use it in REG_FRAME_RELATED_EXPR note.
256 (emit_frame_save): Call rs6000_frame_related with extra NULL_RTX
258 (rs6000_emit_prologue): Likewise, but for little endian VSX
259 stores, pass the source register of the store instead.
261 2013-11-17 Andrew MacLeod <amacleod@redhat.com>
263 * gimple.h: Reorder prototypes to match .c declaration order, and
264 remove protyotypes for functions not in gimple.c.
265 (LABEL): Move to tree-into-ssa.c.
266 * gimple.c: Remove unused prototypes.
267 (get_base_address): Move to tree.c.
268 * tree.c (get_base_address): Relocate from gimple.c.
269 * builtins.h (validate_gimple_arglist): Add prototype.
270 * trans-mem.h (compute_transaction_bits, is_tm_ending): Add prototype.
271 * cfgexpand.h: New File.
272 (gimple_assign_rhs_to_tree, estimated_stack_frame_size): Add protoype.
273 * tree.h (build_addr): Move to tree-nested.h.
274 * tree-nested.h: New File.
275 (build_addr, lower_nested_functions, insert_field_into_struct): Add
277 * tree-inline.h (estimated_stack_frame_size): Remove prototype.
278 * ipa-inline-analysis.c: Include cfgexpand.h.
279 * cgraphunit.c: Include tree-nested.h.
280 * omp-low.c: Likewise.
281 * tree-parloops.c: Likewise.
282 * gimple-low.h: Likewise.
283 * tree-profile.h: Likewise.
284 * expr.c: Include cfgexpand.h.
285 * tree-affine.c: Likewise.
286 * tree-ssa.c: Likewise.
287 * tree-ssa-loop-im.c: Include trans-mem.h.
288 * tree-ssa-tail-merge.c: Likewise.
289 * value-prof.c: Include builtins.h and tree-nested.h.
290 * tree-into-ssa.c (LABEL): Define here.
292 2013-11-16 Joern Rennecke <joern.rennecke@embecosm.com>
294 * config/arc/arc.c (arc_predicate_delay_insns): New function.
295 (pass_data_arc_predicate_delay_insns): New pass_data instance.
296 (pass_arc_predicate_delay_insns): New subclass of rtl_opt_class.
297 (make_pass_arc_predicate_delay_insns): New function.
298 (arc_init): Register pass_arc_predicate_delay_insns if
299 flag_delayed_branch is active.
301 2013-11-16 Joern Rennecke <joern.rennecke@embecosm.com>
303 * config/arc/constraints.md (Rcq): Simplify register number test.
305 2013-11-15 Aldy Hernandez <aldyh@redhat.com>
307 * gimple.h (enum gf_mask): Change the ordering of GF_OMP_* bits.
309 2013-11-15 Kaz Kojima <kkojima@gcc.gnu.org>
311 * config/sh/sh.c (barrier_align): Return 0 when barrier_or_label
314 2013-11-15 Aldy Hernandez <aldyh@redhat.com>
316 * Makefile.in (C_COMMON_OBJS): Depend on c-cilkplus.o.
317 * gimple-pretty-print.c (dump_omp_for): Add case for
318 GF_OMP_FOR_KIND_CILKSIMD.
319 * gimple.h (enum gf_mask): Restructure entries to add
320 GF_OMP_FOR_KIND_CILKSIMD.
321 * gimplify.c (is_gimple_stmt): Add case for CILK_SIMD.
322 (gimplify_omp_for): Handle CILK_SIMD.
323 (gimplify_expr): Add ccase for CILK_SIMD.
324 * omp-low.c (extract_omp_for_data): Handle CILK_SIMD.
325 (build_outer_var_ref): Same.
326 (check_omp_nesting_restrictions): Same.
327 (lower_rec_input_clauses): Same.
328 (lower_lastprivate_clauses): Same.
329 (expand_omp_for): Same.
330 (execute_expand_omp): Check flag_enable_cilkplus.
331 (execute_lower_omp): Same.
332 (diagnose_sb_0): Handle CILK_SIMD.
333 (diagnose_omp_structured_block_errors): Check flag_enable_cilkplus.
334 (setjmp_or_longjmp_p): New.
335 (scan_omp_1_stmt): Error on setjmp/longjmp in a simd construct.
336 * tree-pretty-print.c (dump_generic_node): Add case for CILK_SIMD.
337 * tree.def: Add tree code for CILK_SIMD.
339 2013-11-15 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
341 * config/rs6000/altivec.md (UNSPEC_VPERM_X, UNSPEC_VPERM_UNS_X):
343 (altivec_vperm_<mode>): Revert earlier little endian change.
344 (*altivec_vperm_<mode>_internal): Remove.
345 (altivec_vperm_<mode>_uns): Revert earlier little endian change.
346 (*altivec_vperm_<mode>_uns_internal): Remove.
347 * config/rs6000/vector.md (vec_realign_load_<mode>): Revise commentary.
349 2013-11-15 Jeff Law <law@redhat.com>
351 * basic-block.h (has_abnormal_or_eh_outgoing_edge): Renamed from
352 has_abnormal_or_outgoing_edge. Check for EH edges as well.
353 * gimple-ssa-isolate-paths.c
354 (find_implicit_erroneous_behaviour): Corresponding changes.
355 Do not check stmt_ends_bb_p or GIMPLE_RETURN anymore.
356 (find_explicit_erroneous_behaviour): Likewise.
358 2013-11-15 Jeff Law <law@redhat.com>
360 * ifcvt.c (find_cond_trap): Properly handle case where
363 2013-11-15 Andreas Schwab <schwab@linux-m68k.org>
365 * configure: Regenerate.
367 2013-11-15 James Greenhalgh <james.greenhalgh@arm.com>
369 * config/aarch64/aarch64-simd.md: Remove simd_type from all patterns.
370 * config/aarch64/aarch64.md: Likewise, correct "type" attribute
371 where it is incorrect or missing.
373 2013-11-15 Richard Sandiford <rdsandiford@googlemail.com>
375 * dwarf2out.c (gen_enumeration_type_die): Remove unnecessary
377 * tree-vect-patterns.c (vect_recog_divmod_pattern): Likewise.
378 Use TREE_INT_CST_LOW rather than tree_low_cst when reading the
380 * fold-const.c (fold_binary_loc): Replace a host_integerp/tree_low_cst
381 pair with a TREE_CODE test and TREE_INT_CST_LOW.
382 * tree-vect-generic.c (expand_vector_divmod): Likewise.
384 2013-11-15 Richard Biener <rguenther@suse.de>
386 PR tree-optimization/50262
387 * tree-ssa-alias.h (struct pt_solution): Split
388 vars_contains_global into vars_contains_nonlocal,
389 vars_contains_escaped and vars_contains_escaped_heap.
390 * tree-ssa-structalias.c (label_visit): Expand comment.
391 (handle_lhs_call): Adjust comment.
392 (set_uids_in_ptset): Set the new flags appropriately.
393 (pt_solution_set): Adjust.
394 (pt_solution_set_var): Likewise.
395 (pt_solution_ior_into): Likewise.
396 (pt_solution_includes_global): Likewise.
397 (pt_solutions_intersect_1): Optimize escaped handling.
398 (compute_points_to_sets): Remove heap variable globalization.
399 (ipa_escaped_pt): Adjust initializer.
400 (pass_data_ipa_pta): Do not run TODO_update_ssa.
401 * gimple-pretty-print.c (pp_points_to_solution): Print split flags.
402 * tree-ssa-alias.c (dump_points_to_solution): Likewise.
404 2013-11-15 Richard Biener <rguenther@suse.de>
406 * tree-loop-distribution.c (tree_loop_distribution): Make sure
407 to distribute all stores.
409 2013-11-15 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
411 * doc/invoke.texi (-mabi=elfv1, -mabi=elfv2): Document.
413 2013-11-15 Joseph Myers <joseph@codesourcery.com>
415 * acinclude.m4 (GCC_GLIBC_VERSION_GTE_IFELSE): New configure macro.
416 * configure.ac: Determine target_header_dir earlier.
417 (--with-glibc-version): New configure option.
418 Use GCC_GLIBC_VERSION_GTE_IFELSE in enable_gnu_unique_object,
419 gcc_cv_libc_provides_ssp and gcc_cv_target_ldbl128 tests.
420 * configure: Regenerate.
421 * doc/install.texi (--enable-gnu-unique-object): Don't refer to
422 native toolchains for default.
423 (--with-glibc-version): Document.
425 2013-11-15 Eric Botcazou <ebotcazou@adacore.com>
427 * fold-const.c (fold_binary_loc) <comparisons>: Reuse local variable.
429 2013-11-15 Uros Bizjak <ubizjak@gmail.com>
431 * lto-streamer-in.c (input function): Call cgraph_create_node if
432 cgraph_get_node failed.
434 2013-11-14 Olivier Hainque <hainque@adacore.com>
436 * cfgexpand.c (defer_stack_allocation): When optimization is enabled,
437 defer allocation of DECL_IGNORED_P variables at toplevel unless really
438 small. Factorize size threshold computation from the existing one.
439 (expand_used_vars): Refine comment.
441 2013-11-14 Cong Hou <congh@google.com>
443 * tree-vectorizer.h (struct dr_with_seg_len): Remove the base
444 address field as it can be obtained from dr. Rename the struct.
445 * tree-vect-data-refs.c (comp_dr_with_seg_len_pair): Consider
446 steps of data references during sort.
447 (vect_prune_runtime_alias_test_list): Adjust with the change to
448 struct dr_with_seg_len.
449 * tree-vect-loop-manip.c (vect_create_cond_for_alias_checks):
450 Adjust with the change to struct dr_with_seg_len.
452 2013-11-14 Jeff Law <law@redhat.com>
455 * basic-block.h (has_abnormal_outgoing_edge_p): Moved here from...
456 * tree-inline.c (has_abnormal_outgoing_edge_p): Remove.
457 * gimple-ssa-isolate-paths.c: Include tree-cfg.h.
458 (find_implicit_erroneous_behaviour): If a block has abnormal outgoing
459 edges, then ignore it. If the statement exhibiting erroneous
460 behaviour ends basic blocks, with the exception of GIMPLE_RETURNs,
461 then we can not optimize.
462 (find_explicit_erroneous_behaviour): Likewise.
464 2013-11-14 Andrew MacLeod <amacleod@redhat.com>
466 * gimplify-me.h: New file. Add prototypes.
467 * gimplify.h: Don't include gimple.h.
468 (struct gimplify_hasher, struct gimplify_ctx, is_gimple_sizepos):
469 Relocate from gimple.h.
470 * gimple.h (struct gimplify_hasher, struct gimplify_ctx,
471 is_gimple_sizepos): Move to gimplify.h.
472 (gimplify_hasher::hash, gimplify_hasher::equal): Move to gimplify.c.
473 (enum gsi_iterator_update): Move to gimple-iterator.h.
474 * gimple-iterator.h (enum gsi_iterator_update): Relocate from gimple.h.
475 * gimplify-me.c: New File.
476 (force_gimple_operand_1, force_gimple_operand,
477 force_gimple_operand_gsi_1, force_gimple_operand_gsi,
478 gimple_regimplify_operands): Relocate from gimplify.c.
479 * gimplify.c (force_gimple_operand_1, force_gimple_operand,
480 force_gimple_operand_gsi_1, force_gimple_operand_gsi,
481 gimple_regimplify_operands): Move to gimplify-me.c.
482 (gimplify_hasher::hash, gimplify_hasher::equal): Relocate
484 * Makefile.in (OBJS): Add gimplify-me.o
485 * asan.c: Include only gimplify.h, gimplify-me.h, and/or gimple.h as
487 * cfgloopmanip.c: Likewise.
488 * cgraphunit.c: Likewise.
489 * cilk-common.c: Likewise.
490 * fold-const.c: Likewise.
491 * function.c: Likewise.
492 * gimple-expr.c: Likewise.
493 * gimple-fold.c: Likewise.
494 * gimple-ssa-strength-reduction.c: Likewise.
495 * gimple.c: Likewise.
496 * graphite-clast-to-gimple.c: Likewise.
497 * graphite-sese-to-poly.c: Likewise.
498 * ipa-prop.c: Likewise.
499 * ipa-split.c: Likewise.
501 * langhooks.c: Likewise.
502 * omp-low.c: Likewise.
504 * stor-layout.c: Likewise.
505 * targhooks.c: Likewise.
506 * trans-mem.c: Likewise.
507 * tree-affine.c: Likewise.
508 * tree-cfg.c: Likewise.
509 * tree-cfgcleanup.c: Likewise.
510 * tree-complex.c: Likewise.
511 * tree-if-conv.c: Likewise.
512 * tree-inline.c: Likewise.
513 * tree-loop-distribution.c: Likewise.
514 * tree-nested.c: Likewise.
515 * tree-parloops.c: Likewise.
516 * tree-predcom.c: Likewise.
517 * tree-profile.c: Likewise.
518 * tree-scalar-evolution.c: Likewise.
519 * tree-sra.c: Likewise.
520 * tree-ssa-address.c: Likewise.
521 * tree-ssa-ccp.c: Likewise.
522 * tree-ssa-dce.c: Likewise.
523 * tree-ssa-forwprop.c: Likewise.
524 * tree-ssa-ifcombine.c: Likewise.
525 * tree-ssa-loop-im.c: Likewise.
526 * tree-ssa-loop-ivopts.c: Likewise.
527 * tree-ssa-loop-manip.c: Likewise.
528 * tree-ssa-loop-niter.c: Likewise.
529 * tree-ssa-loop-prefetch.c: Likewise.
530 * tree-ssa-loop-unswitch.c: Likewise.
531 * tree-ssa-math-opts.c: Likewise.
532 * tree-ssa-phiopt.c: Likewise.
533 * tree-ssa-phiprop.c: Likewise.
534 * tree-ssa-pre.c: Likewise.
535 * tree-ssa-propagate.c: Likewise.
536 * tree-ssa-reassoc.c: Likewise.
537 * tree-ssa-sccvn.c: Likewise.
538 * tree-ssa-strlen.c: Likewise.
539 * tree-ssa.c: Likewise.
540 * tree-switch-conversion.c: Likewise.
541 * tree-tailcall.c: Likewise.
542 * tree-vect-data-refs.c: Likewise.
543 * tree-vect-generic.c: Likewise.
544 * tree-vect-loop-manip.c: Likewise.
545 * tree-vect-loop.c: Likewise.
546 * tree-vect-patterns.c: Likewise.
547 * tree-vect-stmts.c: Likewise.
550 * value-prof.c: Likewise.
551 * config/aarch64/aarch64.c: Likewise.
552 * config/alpha/alpha.c: Likewise.
553 * config/darwin.c: Likewise.
554 * config/i386/i386.c: Likewise.
555 * config/ia64/ia64.c: Likewise.
556 * config/mep/mep.c: Likewise.
557 * config/mips/mips.c: Likewise.
558 * config/rs6000/rs6000.c: Likewise.
559 * config/s390/s390.c: Likewise.
560 * config/sh/sh.c: Likewise.
561 * config/sparc/sparc.c: Likewise.
562 * config/spu/spu.c: Likewise.
563 * config/stormy16/stormy16.c: Likewise.
564 * config/tilegx/tilegx.c: Likewise.
565 * config/tilepro/tilepro.c: Likewise.
566 * config/xtensa/xtensa.c: Likewise.
568 2013-11-14 Joern Rennecke <joern.rennecke@embecosm.com>
570 * config/arc/arc.md (doloop_begin_i): Remove extra alignment;
573 2013-11-14 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
575 * config/rs6000/sysv4le.h (LINUX64_DEFAULT_ABI_ELFv2): Define.
577 2013-11-14 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
578 Alan Modra <amodra@gmail.com>
580 * config/rs6000/rs6000.h (RS6000_SAVE_AREA): Handle ABI_ELFv2.
581 (RS6000_SAVE_TOC): Remove.
582 (RS6000_TOC_SAVE_SLOT): New macro.
583 * config/rs6000/rs6000.c (rs6000_parm_offset): New function.
584 (rs6000_parm_start): Use it.
585 (rs6000_function_arg_advance_1): Likewise.
586 (rs6000_emit_prologue): Use RS6000_TOC_SAVE_SLOT.
587 (rs6000_emit_epilogue): Likewise.
588 (rs6000_call_aix): Likewise.
589 (rs6000_output_function_prologue): Do not save/restore r11
590 around calling _mcount for ABI_ELFv2.
592 2013-11-14 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
593 Alan Modra <amodra@gmail.com>
595 * config/rs6000/rs6000-protos.h (rs6000_reg_parm_stack_space):
597 * config/rs6000/rs6000.h (RS6000_REG_SAVE): Remove.
598 (REG_PARM_STACK_SPACE): Call rs6000_reg_parm_stack_space.
599 * config/rs6000/rs6000.c (rs6000_parm_needs_stack): New function.
600 (rs6000_function_parms_need_stack): Likewise.
601 (rs6000_reg_parm_stack_space): Likewise.
602 (rs6000_function_arg): Do not replace BLKmode by Pmode when
603 returning a register argument.
605 2013-11-14 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
606 Michael Gschwind <mkg@us.ibm.com>
608 * config/rs6000/rs6000.h (FP_ARG_MAX_RETURN): New macro.
609 (ALTIVEC_ARG_MAX_RETURN): Likewise.
610 (FUNCTION_VALUE_REGNO_P): Use them.
611 * config/rs6000/rs6000.c (TARGET_RETURN_IN_MSB): Define.
612 (rs6000_return_in_msb): New function.
613 (rs6000_return_in_memory): Handle ELFv2 homogeneous aggregates.
614 Handle aggregates of up to 16 bytes for ELFv2.
615 (rs6000_function_value): Handle ELFv2 homogeneous aggregates.
617 2013-11-14 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
618 Michael Gschwind <mkg@us.ibm.com>
620 * config/rs6000/rs6000.h (AGGR_ARG_NUM_REG): Define.
621 * config/rs6000/rs6000.c (rs6000_aggregate_candidate): New function.
622 (rs6000_discover_homogeneous_aggregate): Likewise.
623 (rs6000_function_arg_boundary): Handle homogeneous aggregates.
624 (rs6000_function_arg_advance_1): Likewise.
625 (rs6000_function_arg): Likewise.
626 (rs6000_arg_partial_bytes): Likewise.
627 (rs6000_psave_function_arg): Handle BLKmode arguments.
629 2013-11-14 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
630 Michael Gschwind <mkg@us.ibm.com>
632 * config/rs6000/rs6000.h (AGGR_ARG_NUM_REG): Define.
633 * config/rs6000/rs6000.c (rs6000_aggregate_candidate): New function.
634 (rs6000_discover_homogeneous_aggregate): Likewise.
635 (rs6000_function_arg_boundary): Handle homogeneous aggregates.
636 (rs6000_function_arg_advance_1): Likewise.
637 (rs6000_function_arg): Likewise.
638 (rs6000_arg_partial_bytes): Likewise.
639 (rs6000_psave_function_arg): Handle BLKmode arguments.
641 2013-11-14 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
643 * config/rs6000/rs6000.c (machine_function): New member
645 (rs6000_emit_prologue): Set r2_setup_needed if necessary.
646 (rs6000_output_mi_thunk): Set r2_setup_needed.
647 (rs6000_output_function_prologue): Output global entry point
648 prologue and local entry point marker if needed for ABI_ELFv2.
649 Output -mprofile-kernel code here.
650 (output_function_profiler): Do not output -mprofile-kernel
651 code here; moved to rs6000_output_function_prologue.
652 (rs6000_file_start): Output ".abiversion 2" for ABI_ELFv2.
654 (rs6000_emit_move): Do not handle dot symbols for ABI_ELFv2.
655 (rs6000_output_function_entry): Likewise.
656 (rs6000_assemble_integer): Likewise.
657 (rs6000_elf_encode_section_info): Likewise.
658 (rs6000_elf_declare_function_name): Do not create dot symbols
659 or .opd section for ABI_ELFv2.
661 (rs6000_trampoline_size): Update for ABI_ELFv2 trampolines.
662 (rs6000_trampoline_init): Likewise.
663 (rs6000_elf_file_end): Call file_end_indicate_exec_stack for ABI_ELFv2.
665 (rs6000_call_aix): Handle ELFv2 indirect calls. Do not check
666 for function descriptors in ABI_ELFv2.
668 * config/rs6000/rs6000.md ("*call_indirect_aix<mode>"): Support
669 on ABI_AIX only, not ABI_ELFv2.
670 ("*call_value_indirect_aix<mode>"): Likewise.
671 ("*call_indirect_elfv2<mode>"): New pattern.
672 ("*call_value_indirect_elfv2<mode>"): Likewise.
674 * config/rs6000/predicates.md ("symbol_ref_operand"): Do not
675 check for function descriptors in ABI_ELFv2.
676 ("current_file_function_operand"): Likewise.
678 * config/rs6000/ppc-asm.h [__powerpc64__ && _CALL_ELF == 2]:
680 (FUNC_NAME): Define ELFv2 variant.
681 (JUMP_TARGET): Likewise.
682 (FUNC_START): Likewise.
683 (HIDDEN_FUNC): Likewise.
684 (FUNC_END): Likeiwse.
686 2013-11-14 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
688 * config.gcc [powerpc*-*-* | rs6000-*-*]: Support --with-abi=elfv1
689 and --with-abi=elfv2.
690 * config/rs6000/option-defaults.h (OPTION_DEFAULT_SPECS): Add "abi".
691 * config/rs6000/rs6000.opt (mabi=elfv1): New option.
692 (mabi=elfv2): Likewise.
693 * config/rs6000/rs6000-opts.h (enum rs6000_abi): Add ABI_ELFv2.
694 * config/rs6000/linux64.h (DEFAULT_ABI): Do not hard-code to AIX_ABI
696 (ELFv2_ABI_CHECK): New macro.
697 (SUBSUBTARGET_OVERRIDE_OPTIONS): Use it to decide whether to set
698 rs6000_current_abi to ABI_AIX or ABI_ELFv2.
699 (GLIBC_DYNAMIC_LINKER64): Support ELFv2 ld.so version.
700 * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Predefine
701 _CALL_ELF and __STRUCT_PARM_ALIGN__ if appropriate.
703 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Handle ABI_ELFv2.
704 (debug_stack_info): Likewise.
705 (rs6000_file_start): Treat ABI_ELFv2 the same as ABI_AIX.
706 (rs6000_legitimize_tls_address): Likewise.
707 (rs6000_conditional_register_usage): Likewise.
708 (rs6000_emit_move): Likewise.
709 (init_cumulative_args): Likewise.
710 (rs6000_function_arg_advance_1): Likewise.
711 (rs6000_function_arg): Likewise.
712 (rs6000_arg_partial_bytes): Likewise.
713 (rs6000_output_function_entry): Likewise.
714 (rs6000_assemble_integer): Likewise.
715 (rs6000_savres_strategy): Likewise.
716 (rs6000_stack_info): Likewise.
717 (rs6000_function_ok_for_sibcall): Likewise.
718 (rs6000_emit_load_toc_table): Likewise.
719 (rs6000_savres_routine_name): Likewise.
720 (ptr_regno_for_savres): Likewise.
721 (rs6000_emit_prologue): Likewise.
722 (rs6000_emit_epilogue): Likewise.
723 (rs6000_output_function_epilogue): Likewise.
724 (output_profile_hook): Likewise.
725 (output_function_profiler): Likewise.
726 (rs6000_trampoline_size): Likewise.
727 (rs6000_trampoline_init): Likewise.
728 (rs6000_elf_output_toc_section_asm_op): Likewise.
729 (rs6000_elf_encode_section_info): Likewise.
730 (rs6000_elf_reloc_rw_mask): Likewise.
731 (rs6000_elf_declare_function_name): Likewise.
732 (rs6000_function_arg_boundary): Treat ABI_ELFv2 the same as ABI_AIX,
733 except that rs6000_compat_align_parm is always assumed false.
734 (rs6000_gimplify_va_arg): Likewise.
735 (rs6000_call_aix): Update comment.
736 (rs6000_sibcall_aix): Likewise.
737 * config/rs6000/rs6000.md ("tls_gd_aix<TLSmode:tls_abi_suffix>"):
738 Treat ABI_ELFv2 the same as ABI_AIX.
739 ("*tls_gd_call_aix<TLSmode:tls_abi_suffix>"): Likewise.
740 ("tls_ld_aix<TLSmode:tls_abi_suffix>"): Likewise.
741 ("*tls_ld_call_aix<TLSmode:tls_abi_suffix>"): Likewise.
742 ("load_toc_aix_si"): Likewise.
743 ("load_toc_aix_di"): Likewise.
745 ("call_value"): Likewise.
746 ("*call_local_aix<mode>"): Likewise.
747 ("*call_value_local_aix<mode>"): Likewise.
748 ("*call_nonlocal_aix<mode>"): Likewise.
749 ("*call_value_nonlocal_aix<mode>"): Likewise.
750 ("*call_indirect_aix<mode>"): Likewise.
751 ("*call_value_indirect_aix<mode>"): Likewise.
752 ("sibcall"): Likewise.
753 ("sibcall_value"): Likewise.
754 ("*sibcall_aix<mode>"): Likewise.
755 ("*sibcall_value_aix<mode>"): Likewise.
756 * config/rs6000/predicates.md ("symbol_ref_operand"): Likewise.
757 ("current_file_function_operand"): Likewise.
759 2013-11-14 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
761 * config/rs6000/rs6000.c (rs6000_arg_partial_bytes): Simplify logic
762 by making use of the fact that for vector / floating point arguments
763 passed both in VRs/FPRs and in the fixed parameter area, the partial
764 bytes mechanism is in fact not used.
766 2013-11-14 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
768 * config/rs6000/rs6000.c (rs6000_psave_function_arg): New function.
769 (rs6000_finish_function_arg): Likewise.
770 (rs6000_function_arg): Use rs6000_psave_function_arg and
771 rs6000_finish_function_arg to handle both vector and floating
772 point arguments that are also passed in GPRs / the stack.
774 2013-11-14 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
776 * config/rs6000/rs6000.c (USE_FP_FOR_ARG_P): Remove TYPE argument.
777 (USE_ALTIVEC_FOR_ARG_P): Likewise.
778 (rs6000_darwin64_record_arg_advance_recurse): Update uses.
779 (rs6000_function_arg_advance_1):Likewise.
780 (rs6000_darwin64_record_arg_recurse): Likewise.
781 (rs6000_function_arg): Likewise.
782 (rs6000_arg_partial_bytes): Likewise.
784 2013-11-14 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
786 * config/rs6000/rs6000.c (rs6000_option_override_internal): Replace
787 "DEFAULT_ABI != ABI_AIX" test by testing for ABI_V4 or ABI_DARWIN.
788 (rs6000_savres_strategy): Likewise.
789 (rs6000_return_addr): Likewise.
790 (rs6000_emit_load_toc_table): Replace "DEFAULT_ABI != ABI_AIX" by
791 testing for ABI_V4 (since ABI_DARWIN is impossible here).
792 (rs6000_emit_prologue): Likewise.
793 (legitimate_lo_sum_address_p): Simplify DEFAULT_ABI test.
794 (rs6000_elf_declare_function_name): Remove duplicated test.
795 * config/rs6000/rs6000.md ("load_toc_v4_PIC_1"): Explicitly test
796 for ABI_V4 (instead of "DEFAULT_ABI != ABI_AIX" test).
797 ("load_toc_v4_PIC_1_normal"): Likewise.
798 ("load_toc_v4_PIC_1_476"): Likewise.
799 ("load_toc_v4_PIC_1b"): Likewise.
800 ("load_toc_v4_PIC_1b_normal"): Likewise.
801 ("load_toc_v4_PIC_1b_476"): Likewise.
802 ("load_toc_v4_PIC_2"): Likewise.
803 ("load_toc_v4_PIC_3b"): Likewise.
804 ("load_toc_v4_PIC_3c"): Likewise.
805 * config/rs6000/rs6000.h (RS6000_REG_SAVE): Simplify DEFAULT_ABI test.
806 (RS6000_SAVE_AREA): Likewise.
807 (FP_ARG_MAX_REG): Likewise.
808 (RETURN_ADDRESS_OFFSET): Likewise.
809 * config/rs6000/sysv.h (TARGET_TOC): Test for ABI_V4 instead
811 (SUBTARGET_OVERRIDE_OPTIONS): Likewise.
812 (MINIMAL_TOC_SECTION_ASM_OP): Likewise.
814 2013-11-14 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
816 * config/rs6000/rs6000.c (rs6000_call_indirect_aix): Rename to ...
817 (rs6000_call_aix): ... this. Handle both direct and indirect calls.
818 Create call insn directly instead of via various gen_... routines.
819 Mention special registers used by the call in CALL_INSN_FUNCTION_USAGE.
820 (rs6000_sibcall_aix): New function.
821 * config/rs6000/rs6000.md (TOC_SAVE_OFFSET_32BIT): Remove.
822 (TOC_SAVE_OFFSET_64BIT): Likewise.
823 (AIX_FUNC_DESC_TOC_32BIT): Likewise.
824 (AIX_FUNC_DESC_TOC_64BIT): Likewise.
825 (AIX_FUNC_DESC_SC_32BIT): Likewise.
826 (AIX_FUNC_DESC_SC_64BIT): Likewise.
827 ("call" expander): Call rs6000_call_aix.
828 ("call_value" expander): Likewise.
829 ("call_indirect_aix<ptrsize>"): Replace this pattern ...
830 ("call_indirect_aix<ptrsize>_nor11"): ... and this pattern ...
831 ("*call_indirect_aix<mode>"): ... by this insn pattern.
832 ("call_value_indirect_aix<ptrsize>"): Replace this pattern ...
833 ("call_value_indirect_aix<ptrsize>_nor11"): ... and this pattern ...
834 ("*call_value_indirect_aix<mode>"): ... by this insn pattern.
835 ("*call_nonlocal_aix32", "*call_nonlocal_aix64"): Replace by ...
836 ("*call_nonlocal_aix<mode>"): ... this pattern.
837 ("*call_value_nonlocal_aix32", "*call_value_nonlocal_aix64"): Replace
838 ("*call_value_nonlocal_aix<mode>"): ... by this pattern.
839 ("*call_local_aix<mode>"): New insn pattern.
840 ("*call_value_local_aix<mode>"): Likewise.
841 ("sibcall" expander): Call rs6000_sibcall_aix.
842 ("sibcall_value" expander): Likewise. Move earlier in file.
843 ("*sibcall_nonlocal_aix<mode>"): Replace by ...
844 ("*sibcall_aix<mode>"): ... this pattern.
845 ("*sibcall_value_nonlocal_aix<mode>"): Replace by ...
846 ("*sibcall_value_aix<mode>"): ... this pattern.
847 * config/rs6000/rs6000-protos.h (rs6000_call_indirect_aix): Remove.
848 (rs6000_call_aix): Add prototype.
849 (rs6000_sibcall_aix): Likewise.
851 2013-11-14 Jakub Jelinek <jakub@redhat.com>
854 * asan.c (asan_emit_stack_protection): Ensure -fsection-anchors
855 isn't confused by the artificial decl.
857 2013-11-14 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
859 * config/rs6000/rs6000.c (rs6000_emit_prologue): Do not place a
860 RTX_FRAME_RELATED_P marker on the UNSPEC_MOVESI_FROM_CR insn.
861 Instead, add USEs of all modified call-saved CR fields to the
862 insn storing the result to the stack slot, and provide an
863 appropriate REG_FRAME_RELATED_EXPR for that insn.
864 * config/rs6000/rs6000.md ("*crsave"): New insn pattern.
865 * config/rs6000/predicates.md ("crsave_operation"): New predicate.
867 2013-11-14 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
868 Alan Modra <amodra@gmail.com>
870 * function.c (assign_parms): Use all.reg_parm_stack_space instead
871 of re-evaluating REG_PARM_STACK_SPACE target macro.
872 (locate_and_pad_parm): New parameter REG_PARM_STACK_SPACE. Use it
873 instead of evaluating target macro REG_PARM_STACK_SPACE every time.
874 (assign_parm_find_entry_rtl): Update call.
875 * calls.c (initialize_argument_information): Update call.
876 (emit_library_call_value_1): Likewise.
877 * expr.h (locate_and_pad_parm): Update prototype.
879 2013-11-14 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
881 * calls.c (store_unaligned_arguments_into_pseudos): Skip PARALLEL
884 2013-11-14 DJ Delorie <dj@redhat.com>
886 * config/rx/rx.c (rx_mode_dependent_address_p): Allow offsets up
889 2013-11-14 Jeff Law <law@redhat.com>
891 * tree-ssa-threadedge.c (thread_through_normal_block): Only push the
892 EDGE_START_JUMP_THREAD marker if the jump threading path is empty.
894 2013-11-14 James Greenhalgh <james.greenhalgh@arm.com>
896 * doc/invoke.texi: Update documentation for AArch64's -mcpu
899 2013-11-14 James Greenhalgh <james.greenhalgh@arm.com>
901 * config/aarch64/aarch64-cores.def (example-1): Remove.
902 (example-2): Likewise.
903 * config/aarch64/aarch64-tune.md: Regenerate.
904 * config/aarch64/aarch64.md: Do not include "large.md" or "small.md".
905 (generic_sched): Remove "large", "small".
906 * config/aarch64/large.md: Delete.
907 * config/aarch64/small.md: Delete.
909 2013-11-14 James Greenhalgh <james.greenhalgh@arm.com>
911 * config/aarch64/aarch64-cores.def (cortex-a57): Tune for cortexa15.
912 * config/aarch64/aarch64-tune.md: Regenerate.
913 * config/aarch64/aarch64.md: Include cortex-a15 pipeline model.
914 (generic_sched): "no" if we are tuning for cortexa15.
915 * config/arm/cortex-a15.md: Include cortex-a15-neon.md by
918 2013-11-14 James Greenhalgh <james.greenhalgh@arm.com>
920 * config/aarch64/aarch64-arches.def (armv8-a): Tune for cortex-a53.
921 * config/aarch64/aarch64.md: Do not include aarch64-generic.md.
922 * config/aarch64/aarch64.c (aarch64_tune): Initialize to cortexa53.
923 (all_cores): Use cortexa53 when tuning for "generic".
924 (aarch64_override_options): Fix comment.
925 * config/aarch64/aarch64.h (TARGET_CPU_DEFAULT): Set to cortexa53.
926 * config/aarch64/aarch64-generic.md: Delete.
928 2013-11-14 James Greenhalgh <james.greenhalgh@arm.com>
930 * config/aarch64/aarch64.c (all_architectures): Remove "generic".
932 2013-11-14 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
934 * config/aarch64/aarch64.c: Include aarch-cost-tables.h.
935 (generic_rtx_cost_table): Remove.
936 (aarch64_rtx_costs): Use fields from cpu_cost_table.
937 * config/aarch64/aarch64-protos.h (tune_params): Use cpu_cost_table for
939 (cpu_rtx_cost_table): Remove.
941 2013-11-14 Julian Brown <julian@codesourcery.com>
942 Joey Ye <joey.ye@arm.com>
944 * config/arm/arm.c (arm_cortex_m_branch_cost): New.
946 (arm_slowmul_tune, arm_fastmul_tune, arm_strongarm_tune, arm_9e_tune,
947 arm_v6t2_tune, arm_cortex_tune, arm_cortex_a15_tune,
948 arm_cortex_a5_tune, arm_v6m_tune): Add comments for Sched adj cost.
949 * config/arm/arm-cores.def (cortex-m4, cortex-m3): Use arm_v7m_tune.
951 2013-11-14 Kirill Yukhin <kirill.yukhin@intel.com>
954 * config/ia64/ia64.c (ia64_split_tmode_move): Relax `dead'
957 2013-11-14 Jakub Jelinek <jakub@redhat.com>
958 Uros Bizjak <ubizjak@gmail.com>
961 * config/i386/i386.md (*anddi_2): Only allow CCZmode if
962 operands[2] satisfies_constraint_Z that might have bit 31 set.
964 2013-11-13 Jeff Law <law@redhat.com>
966 PR tree-optimization/59102
967 * gimple-ssa-isolate-paths.c
968 (insert_trap_and_remove_trailing_statments): Ensure STMT is a
969 gimple assignment before looking at gimple_assign_lhs.
971 2013-11-13 Vladimir Makarov <vmakarov@redhat.com>
973 * ira.c: Add comment about threads at the top of file.
975 2013-11-13 Vladimir Makarov <vmakarov@redhat.com>
977 * ira-color.c (coalesce_allocnos): Don't allocate and free
980 2013-11-14 Tom de Vries <tom@codesourcery.com>
982 * tree-ssa-tail-merge.c (gimple_equal_p): Add test for structural
983 equality for GIMPLE_ASSIGN.
985 2013-11-14 Tom de Vries <tom@codesourcery.com>
987 * tree-ssa-tail-merge.c (gimple_operand_equal_value_p): Factor new
989 (gimple_equal_p): ... here.
991 2013-11-14 Tom de Vries <tom@codesourcery.com>
993 * trans-mem.c (is_tm_ending): New function.
994 * gimple.h (is_tm_ending): Declare.
995 * tree-ssa-tail-merge.c (gimple_equal_p): Remove test on
997 (find_duplicate): Use is_tm_ending instead of is_tm_ending_fndecl.
999 2013-11-14 Tom de Vries <tom@codesourcery.com>
1001 * tree-ssa-tail-merge.c (gimple_equal_p): Remove equal variable.
1003 2013-11-13 Andrew MacLeod <amacleod@redhat.com>
1005 * gimple-walk.h: New File. Relocate prototypes from gimple.h.
1006 (struct walk_stmt_info): Relocate here from gimple.h.
1007 * gimple-iterator.h: New File. Relocate prototypes from gimple.h.
1008 (struct gimple_stmt_iterator_d): Relocate here from gimple.h.
1009 (gsi_start_1, gsi_none, gsi_start_bb, gsi_last_1, gsi_last_bb,
1010 gsi_end_p, gsi_one_before_end_p, gsi_next, gsi_prev, gsi_stmt,
1011 gsi_after_labels, gsi_next_nondebug, gsi_prev_nondebug,
1012 gsi_start_nondebug_bb, gsi_start_nondebug_after_labels_bb,
1013 gsi_last_nondebug_bb, gsi_bb, gsi_seq): Relocate here from gimple.h.
1014 * gimple.h (struct gimple_stmt_iterator_d): Move to gimple-iterator.h.
1015 (gsi_start_1, gsi_none, gsi_start_bb, gsi_last_1, gsi_last_bb,
1016 gsi_end_p, gsi_one_before_end_p, gsi_next, gsi_prev, gsi_stmt,
1017 gsi_after_labels, gsi_next_nondebug, gsi_prev_nondebug,
1018 gsi_start_nondebug_bb, gsi_start_nondebug_after_labels_bb,
1019 gsi_last_nondebug_bb, gsi_bb, gsi_seq): Move to gimple-iterator.h.
1020 (struct walk_stmt_info): Move to gimple-walk.h.
1021 (gimple_seq_set_location): Move to gimple.c
1022 * gimple-walk.c: New File.
1023 (walk_gimple_seq_mod, walk_gimple_seq, walk_gimple_asm, walk_gimple_op,
1024 walk_gimple_stmt, get_base_loadstore, walk_stmt_load_store_addr_ops,
1025 walk_stmt_load_store_ops): Relocate here from gimple.c.
1026 * gimple-iterator.c: Include gimple-iterator.h.
1027 * gimple.c (walk_gimple_seq_mod, walk_gimple_seq, walk_gimple_asm,
1028 walk_gimple_op, walk_gimple_stmt, get_base_loadstore,
1029 walk_stmt_load_store_addr_ops, walk_stmt_load_store_ops): Move to
1031 (gimple_seq_set_location): Relocate from gimple.h.
1032 * tree-phinodes.h (set_phi_nodes): Move to tree-phinodes.c.
1033 * tree-phinodes.c (set_phi_nodes): Relocate from tree-phinodes.h.
1034 * gengtype.c (open_base_files): Add gimple-iterator.h to include list.
1035 * Makefile.in (OBJS): Add gimple-walk.o
1036 * asan.c: Update Include list as required for gimple-iterator.h and
1038 * cfgexpand.c: Likewise.
1039 * cfgloop.c: Likewise.
1040 * cfgloopmanip.c: Likewise.
1041 * cgraph.c: Likewise.
1042 * cgraphbuild.c: Likewise.
1043 * cgraphunit.c: Likewise.
1044 * gimple-fold.c: Likewise.
1045 * gimple-low.c: Likewise.
1046 * gimple-pretty-print.c: Likewise.
1047 * gimple-ssa-isolate-paths.c: Likewise.
1048 * gimple-ssa-strength-reduction.c: Likewise.
1049 * gimple-streamer-in.c: Likewise.
1050 * gimple-streamer-out.c: Likewise.
1051 * gimplify.c: Likewise.
1052 * graphite-blocking.c: Likewise.
1053 * graphite-clast-to-gimple.c: Likewise.
1054 * graphite-dependences.c: Likewise.
1055 * graphite-interchange.c: Likewise.
1056 * graphite-optimize-isl.c: Likewise.
1057 * graphite-poly.c: Likewise.
1058 * graphite-scop-detection.c: Likewise.
1059 * graphite-sese-to-poly.c: Likewise.
1060 * graphite.c: Likewise.
1061 * ipa-inline-analysis.c: Likewise.
1062 * ipa-profile.c: Likewise.
1063 * ipa-prop.c: Likewise.
1064 * ipa-pure-const.c: Likewise.
1065 * ipa-split.c: Likewise.
1066 * lto-streamer-in.c: Likewise.
1067 * lto-streamer-out.c: Likewise.
1068 * omp-low.c: Likewise.
1069 * predict.c: Likewise.
1070 * profile.c: Likewise.
1072 * tracer.c: Likewise.
1073 * trans-mem.c: Likewise.
1074 * tree-call-cdce.c: Likewise.
1075 * tree-cfg.c: Likewise.
1076 * tree-cfgcleanup.c: Likewise.
1077 * tree-complex.c: Likewise.
1078 * tree-data-ref.c: Likewise.
1079 * tree-dfa.c: Likewise.
1080 * tree-eh.c: Likewise.
1081 * tree-emutls.c: Likewise.
1082 * tree-if-conv.c: Likewise.
1083 * tree-inline.c: Likewise.
1084 * tree-into-ssa.c: Likewise.
1085 * tree-loop-distribution.c: Likewise.
1086 * tree-nested.c: Likewise.
1087 * tree-nrv.c: Likewise.
1088 * tree-object-size.c: Likewise.
1089 * tree-outof-ssa.c: Likewise.
1090 * tree-parloops.c: Likewise.
1091 * tree-predcom.c: Likewise.
1092 * tree-profile.c: Likewise.
1093 * tree-scalar-evolution.c: Likewise.
1094 * tree-sra.c: Likewise.
1095 * tree-ssa-ccp.c: Likewise.
1096 * tree-ssa-coalesce.c: Likewise.
1097 * tree-ssa-copy.c: Likewise.
1098 * tree-ssa-copyrename.c: Likewise.
1099 * tree-ssa-dce.c: Likewise.
1100 * tree-ssa-dom.c: Likewise.
1101 * tree-ssa-dse.c: Likewise.
1102 * tree-ssa-forwprop.c: Likewise.
1103 * tree-ssa-ifcombine.c: Likewise.
1104 * tree-ssa-live.c: Likewise.
1105 * tree-ssa-loop-ch.c: Likewise.
1106 * tree-ssa-loop-im.c: Likewise.
1107 * tree-ssa-loop-ivcanon.c: Likewise.
1108 * tree-ssa-loop-ivopts.c: Likewise.
1109 * tree-ssa-loop-manip.c: Likewise.
1110 * tree-ssa-loop-niter.c: Likewise.
1111 * tree-ssa-loop-prefetch.c: Likewise.
1112 * tree-ssa-loop.c: Likewise.
1113 * tree-ssa-math-opts.c: Likewise.
1114 * tree-ssa-phiopt.c: Likewise.
1115 * tree-ssa-phiprop.c: Likewise.
1116 * tree-ssa-pre.c: Likewise.
1117 * tree-ssa-propagate.c: Likewise.
1118 * tree-ssa-reassoc.c: Likewise.
1119 * tree-ssa-sink.c: Likewise.
1120 * tree-ssa-strlen.c: Likewise.
1121 * tree-ssa-structalias.c: Likewise.
1122 * tree-ssa-tail-merge.c: Likewise.
1123 * tree-ssa-ter.c: Likewise.
1124 * tree-ssa-threadedge.c: Likewise.
1125 * tree-ssa-threadupdate.c: Likewise.
1126 * tree-ssa-uncprop.c: Likewise.
1127 * tree-ssa-uninit.c: Likewise.
1128 * tree-ssa.c: Likewise.
1129 * tree-stdarg.c: Likewise.
1130 * tree-switch-conversion.c: Likewise.
1131 * tree-tailcall.c: Likewise.
1132 * tree-vect-data-refs.c: Likewise.
1133 * tree-vect-generic.c: Likewise.
1134 * tree-vect-loop-manip.c: Likewise.
1135 * tree-vect-loop.c: Likewise.
1136 * tree-vect-patterns.c: Likewise.
1137 * tree-vect-slp.c: Likewise.
1138 * tree-vect-stmts.c: Likewise.
1139 * tree-vectorizer.c: Likewise.
1140 * tree-vrp.c: Likewise.
1143 * value-prof.c: Likewise.
1144 * vtable-verify.c: Likewise.
1146 2013-11-13 Steven Bosscher <steven@gcc.gnu.org>
1148 * gimple-ssa-isolate-paths.c (pass_isolate_erroneous_paths): Comment
1151 2013-11-13 Jeff Law <law@redhat.com>
1153 * PR middle-end/59119
1154 * gimple-ssa-isolate-paths.c (find_implicit_erroneous_behaviour): New
1155 function, extracted from gimple_ssa_isolate_erroneous_paths.
1156 (find_explicit_erroneous_behaviour): Similarly.
1157 (insert_trap_and_remove_trailing_statements): Remove statements
1160 2013-11-13 Steven Bosscher <steven@gcc.gnu.org>
1162 * cfgrtl.c (can_fallthru): Reorder code to move tablejump check up.
1163 Make that check explicit. BB_HEAD cannot be NULL, remove check for it.
1164 * haifa-sched.c (ready_remove_first_dispatch): Check INSN_P before
1165 looking at INSN_CODE.
1166 * reload1.c (delete_dead_insn) Do not expect JUMP_TABLE_DATA to be an
1167 active_insn_p object, respect basic block boundaries.
1168 * reorg.c (follow_jumps): Use invariant that JUMP_TABLE_DATA always
1169 follows immediately after the jump table data label.
1170 * config/nds32/nds32.c (nds32_output_casesi_pc_relative): Likewise.
1171 * config/sh/sh.c (barrier_align): Likewise. Rearrange code such
1172 that JUMP_TABLE_DATA is not expected to be an active_insn_p object.
1174 2013-11-13 Teresa Johnson <tejohnson@google.com>
1177 * predict.c (drop_profile): Error is currently too strict.
1178 (handle_missing_profiles): Pass call_count to drop_profile.
1180 2013-11-13 Teresa Johnson <tejohnson@google.com>
1183 * ipa-inline.c (edge_badness): Fix overflow.
1185 2013-11-13 Vladimir Makarov <vmakarov@redhat.com>
1187 PR rtl-optimization/59036
1188 * ira-color.c (struct allocno_color_data): Add new members
1189 first_thread_allocno, next_thread_allocno, thread_freq.
1190 (sorted_copies): New static var.
1191 (allocnos_conflict_by_live_ranges_p, copy_freq_compare_func): Move up.
1192 (allocno_thread_conflict_p, merge_threads)
1193 (form_threads_from_copies, form_threads_from_bucket)
1194 (form_threads_from_colorable_allocno, init_allocno_threads): New
1196 (bucket_allocno_compare_func): Add comparison by thread frequency
1198 (add_allocno_to_ordered_bucket): Rename to
1199 add_allocno_to_ordered_colorable_bucket. Remove parameter.
1200 (push_only_colorable): Call form_threads_from_bucket.
1201 (color_pass): Call init_allocno_threads. Use
1202 consideration_allocno_bitmap instead of coloring_allocno_bitmap
1203 for nuillify allocno color data.
1204 (ira_initiate_assign, ira_finish_assign): Allocate/free sorted_copies.
1205 (coalesce_allocnos): Use static sorted copies.
1207 2013-11-13 Jakub Jelinek <jakub@redhat.com>
1209 * passes.c (execute_todo): Don't call do_per_function if
1211 (execute_one_ipa_transform_pass, execute_one_pass): Don't call
1212 execute_function_dump if dump_file is NULL.
1214 2013-11-13 Martin Jambor <mjambor@suse.cz>
1216 * cgraph.c (cgraph_get_create_node): Do what
1217 cgraph_get_create_real_symbol_node used to do.
1218 (cgraph_get_create_real_symbol_node): Removed. Changed all users to
1219 call cgraph_get_create_node.
1220 * cgraph.h (cgraph_get_create_real_symbol_node): Removed.
1221 * lto-streamer-in.c (input_function): Call cgraph_get_node instead of
1222 cgraph_get_create_node. Assert we get a node.
1224 2013-11-13 Tejas Belagod <tejas.belagod@arm.com>
1226 * config/aarch64/aarch64-simd.md (vec_extract): New.
1228 2013-11-13 Tejas Belagod <tejas.belagod@arm.com>
1230 * config/aarch64/aarch64-simd.md (vec_set<mode>): Add w -> w option to
1233 2013-11-13 Eric Botcazou <ebotcazou@adacore.com>
1235 * cfgexpand.c (expand_used_vars): Allocate space for partitions based
1236 on PARM_DECLs or RESULT_DECLs only if they are ignored for debug info
1237 or if optimization is enabled.
1238 * tree-ssa-coalesce.c (coalesce_ssa_name): If optimization is disabled,
1239 require that all the names based on a PARM_DECL or a RESULT_DECL that
1240 isn't ignored for debug info be coalesced.
1242 2013-11-13 Jan-Benedict Glaw <jbglaw@lug-owl.de>
1244 * config/c6x/c6x.c: Include "gimple-expr.h".
1246 2013-11-13 Richard Biener <rguenther@suse.de>
1248 * gimple-streamer-out.c (output_gimple_stmt): Also wrap
1249 decls in ADDR_EXPR operands inside a MEM_REF and optimize that.
1250 * gimple-streamer-in.c (input_gimple_stmt): Remove now dead code
1251 dealing with type mismatches inside component reference chains.
1253 2013-11-13 Marc Glisse <marc.glisse@inria.fr>
1255 PR tree-optimization/59077
1256 * ipa-pure-const.c (better_state): Update *state.
1258 2013-11-13 Christophe Lyon <christophe.lyon@linaro.org>
1260 * config/aarch64/aarch64.h (FRAME_GROWS_DOWNWARD): Define to 1.
1261 * config/aarch64/aarch64.c (aarch64_initial_elimination_offset):
1262 Update offset calculations.
1264 2013-11-13 Eric Botcazou <ebotcazou@adacore.com>
1267 * dwarf2out.c (add_byte_size_attribute): Also use int_size_in_bytes
1268 for fields. Do not add the attribute if the size is negative.
1270 2013-11-13 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
1272 * config/arm/arm.c: Include aarch-cost-tables.h.
1273 (generic_extra_costs): Move from here...
1274 * config/arm/aarch-cost-tables.h: ... To here. New file.
1276 2013-11-13 Alexander Ivchenko <alexander.ivchenko@intel.com>
1277 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
1278 Sergey Lega <sergey.s.lega@intel.com>
1279 Anna Tikhonova <anna.tikhonova@intel.com>
1280 Ilya Tocar <ilya.tocar@intel.com>
1281 Andrey Turetskiy <andrey.turetskiy@intel.com>
1282 Ilya Verbin <ilya.verbin@intel.com>
1283 Kirill Yukhin <kirill.yukhin@intel.com>
1284 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
1286 * config/i386/i386.c (ix86_print_operand): Support z-masking.
1287 * config/i386/predicate.md (const_0_to_4_operand): New.
1288 (const_0_to_5_operand): Ditto.
1289 * config/i386/sse.md (UNSPEC_COMPRESS): New.
1290 (UNSPEC_COMPRESS_STORE): Ditto.
1291 (UNSPEC_EXPAND): Ditto.
1292 (UNSPEC_EMBEDDED_ROUNDING): Ditto.
1293 (define_mode_attr ssescalarsize): Ditto.
1294 (avx512f_load<mode>_mask): Ditto.
1295 (avx512f_store<mode>_mask): Ditto.
1296 (avx512f_storedqu<mode>_mask): Ditto.
1297 (avx512f_vmcmp<mode>3_mask): Ditto.
1298 (avx512f_fmadd_<mode>_mask): Ditto.
1299 (avx512f_fmadd_<mode>_mask3): Ditto.
1300 (avx512f_fmsub_<mode>_mask): Ditto.
1301 (avx512f_fmsub_<mode>_mask3): Ditto.
1302 (avx512f_fnmadd_<mode>_mask): Ditto.
1303 (avx512f_fnmadd_<mode>_mask3): Ditto.
1304 (avx512f_fnmsub_<mode>_mask): Ditto.
1305 (avx512f_fnmsub_<mode>_mask3): Ditto.
1306 (avx512f_fmaddsub_<mode>_mask): Ditto.
1307 (avx512f_fmaddsub_<mode>_mask3): Ditto.
1308 (avx512f_fmsubadd_<mode>_mask): Ditto.
1309 (avx512f_fmsubadd_<mode>_mask3): Ditto.
1310 (vec_unpacku_float_lo_v16si): Ditto.
1311 (avx512f_vextract<shuffletype>32x4_mask): Ditto.
1312 (avx512f_vextract<shuffletype>32x4_1_maskm): Ditto.
1313 (avx512f_vextract<shuffletype>64x4_mask): Ditto.
1314 (vec_extract_lo_<mode>_maskm): Ditto.
1315 (vec_extract_hi_<mode>_maskm): Ditto.
1316 (avx512f_vternlog<mode>_mask): Ditto.
1317 (avx512f_shufps512_mask): Ditto.
1318 (avx512f_fixupimm<mode>_mask): Ditto.
1319 (avx512f_shufpd512_mask): Ditto.
1320 (avx512f_<code><pmov_src_lower><mode>2_mask): Ditto.
1321 (avx512f_<code>v8div16qi2_mask/trunc): Ditto.
1322 (*avx512f_<code>v8div16qi2_store_mask): Ditto.
1323 (ashr<mode>3<mask_name>): Ditto.
1324 (avx512f_vinsert<shuffletype>32x4_mask): Ditto.
1325 (avx512f_vinsert<shuffletype>64x4_mask): Ditto.
1326 (avx512f_shuf_<shuffletype>64x2_mask): Ditto.
1327 (avx512f_shuf_<shuffletype>32x4_mask): Ditto.
1328 (avx512f_pshufdv3_mask): Ditto.
1329 (avx512f_perm<mode>_mask): Ditto.
1330 (avx512f_vpermi2var<mode>3_mask): Ditto.
1331 (avx512f_vpermt2var<mode>3_mask): Ditto.
1332 (avx512f_compress<mode>_mask): Ditto.
1333 (avx512f_compressstore<mode>_mask): Ditto.
1334 (avx512f_expand<mode>_mask): Ditto.
1335 (<sse>_loadu<ssemodesuffix><avxsizesuffix><mask_name>): Extend
1337 (avx512f_storeu<ssemodesuffix>512_mask): Ditto.
1338 (<plusminus_insn><mode>3<mask_name>): Ditto.
1339 (*<plusminus_insn><mode>3<mask_name>): Ditto.
1340 (mul<mode>3<mask_name>): Ditto.
1341 (*mul<mode>3<mask_name>): Ditto.
1342 (<sse>_div<mode>3<mask_name>): Ditto.
1343 (<mask_codefor>rcp14<mode><mask_name>): Ditto.
1344 (<sse>_sqrt<mode>2<mask_name>): Ditto.
1345 (<mask_codefor>rsqrt14<mode><mask_name>): Ditto.
1346 (<code><mode>3<mask_name>/smaxmin): Ditto.
1347 (*<code><mode>3_finite<mask_name>/smaxmin): Ditto.
1348 (*<code><mode>3<mask_name>/smaxmin): Ditto.
1349 (float<sseintvecmodelower><mode>2<mask_name>): Ditto.
1350 (ufloatv16siv16sf2<mask_name>): Ditto.
1351 (<mask_codefor>avx512f_fix_notruncv16sfv16si<mask_name>): Ditto.
1352 (<mask_codefor>avx512f_ufix_notruncv16sfv16si<mask_name>): Ditto.
1353 (<fixsuffix>fix_truncv16sfv16si2<mask_name>): Ditto.
1354 (float<si2dfmodelower><mode>2<mask_name>): Ditto.
1355 (ufloatv8siv8df<mask_name>): Ditto.
1356 (<mask_codefor>avx512f_cvtpd2dq512<mask_name>): Ditto.
1357 (avx512f_ufix_notruncv8dfv8si<mask_name>): Ditto.
1358 (<fixsuffix>fix_truncv8dfv8si2<mask_name>): Ditto.
1359 (<mask_codefor>avx512f_cvtpd2ps512<mask_name>): Ditto.
1360 (<sse2_avx_avx512f>_cvtps2pd<avxsizesuffix><mask_name>): Ditto.
1361 (<mask_codefor>avx512f_unpckhps512<mask_name>): Ditto.
1362 (<mask_codefor>avx512f_unpcklps512<mask_name>): Ditto.
1363 (<mask_codefor>avx512f_movshdup512<mask_name>): Ditto.
1364 (<mask_codefor>avx512f_movsldup512<mask_name>): Ditto.
1365 (<mask_codefor>avx512f_vextract<shuffletype>32x4_1<mask_name>): Ditto.
1366 (vec_extract_lo_<mode><mask_name>): Ditto.
1367 (vec_extract_hi_<mode><mask_name>): Ditto.
1368 (<mask_codefor>avx512f_unpckhpd512<mask_name>): Ditto.
1369 (avx512f_movddup512<mask_name>): Ditto.
1370 (avx512f_unpcklpd512<mask_name>): Ditto.
1371 (*avx512f_unpcklpd512<mask_name>): Ditto.
1372 (*avx512f_vmscalef<mode>): Ditto.
1373 (avx512f_scalef<mode><mask_name>): Ditto.
1374 (avx512f_getexp<mode><mask_name>): Ditto.
1375 (<mask_codefor>avx512f_align<mode><mask_name>): Ditto.
1376 (avx512f_rndscale<mode><mask_name>): Ditto.
1377 (avx512f_shufps512_1<mask_name>): Ditto.
1378 (avx512f_shufpd512_1<mask_name>): Ditto.
1379 (<plusminus_insn><mode>3<mask_name>): Ditto.
1380 (*<plusminus_insn><mode>3<mask_name>): Ditto.
1381 (vec_widen_umult_even_v16si<mask_name>): Ditto.
1382 (*vec_widen_umult_even_v16si<mask_name>): Ditto.
1383 (vec_widen_smult_even_v16si<mask_name>): Ditto.
1384 (*vec_widen_smult_even_v16si<mask_name>): Ditto.
1385 (mul<mode>3<mask_name>): Ditto.
1386 (*<sse4_1_avx2>_mul<mode>3<mask_name>): Ditto.
1387 (<shift_insn><mode>3<mask_name>): Ditto.
1388 (avx512f_<rotate>v<mode><mask_name>/rotate): Ditto.
1389 (avx512f_<rotate><mode><mask_name>): Ditto.
1390 (<code><mode>3<mask_name>/maxmin): Ditto.
1391 (*avx2_<code><mode>3<mask_name>/maxmin): Ditto.
1392 (<sse2_avx2>_andnot<mode>3<mask_name>): Ditto.
1393 (*andnot<mode>3<mask_name>): Ditto.
1394 (<mask_codefor><code><mode>3<mask_name>/any_logic): Ditto.
1395 (<mask_codefor>avx512f_interleave_highv16si<mask_name>): Ditto.
1396 (<mask_codefor>avx512f_interleave_lowv16si<mask_name>): Ditto.
1397 (<mask_codefor>avx512f_vinsert<shuffletype>32x4_1<mask_name>): Ditto.
1398 (vec_set_lo_<mode><mask_name>): Ditto.
1399 (vec_set_hi_<mode><mask_name>): Ditto.
1400 (avx512f_shuf_<shuffletype>64x2_1<mask_name>): Ditto.
1401 (avx512f_shuf_<shuffletype>32x4_1<mask_name>): Ditto.
1402 (avx512f_pshufd_1<mask_name>): Ditto.
1403 (<mask_codefor>abs<mode>2<mask_name>): Ditto.
1404 (<mask_codefor>avx512f_<code>v16qiv16si2<mask_name>): Ditto.
1405 (avx512f_<code>v16hiv16si2<mask_name>/any_extend): Ditto.
1406 (avx512f_<code>v8qiv8di2<mask_name>/any_extend): Ditto.
1407 (avx512f_<code>v8hiv8di2<mask_name>/any_extend): Ditto.
1408 (avx512f_<code>v8siv8di2<mask_name>/any_extend): Ditto.
1409 (avx512er_exp2<mode><mask_name>): Ditto.
1410 (<mask_codefor>avx512er_rcp28<mode><mask_name>): Ditto.
1411 (<mask_codefor>avx512er_rsqrt28<mode><mask_name>): Ditto.
1412 (<avx2_avx512f>_permvar<mode><mask_name>): Ditto.
1413 (<avx2_avx512f>_perm<mode>_1<mask_name>): Ditto.
1414 (<mask_codefor>avx512f_vec_dup<mode><mask_name>): Ditto.
1415 (<mask_codefor>avx512f_broadcast<mode><mask_name>/V16FI): Ditto.
1416 (<mask_codefor>avx512f_broadcast<mode><mask_name>/V8FI): Ditto.
1417 (<mask_codefor>avx512f_vec_dup_gpr<mode><mask_name>): Ditto.
1418 (<mask_codefor>avx512f_vec_dup_mem<mode><mask_name>): Ditto.
1419 (<sse2_avx_avx512f>_vpermil<mode><mask_name>/VF2): Ditto.
1420 (<sse2_avx_avx512f>_vpermil<mode><mask_name>/VF1): Ditto.
1421 (*<sse2_avx_avx512f>_vpermilp<mode><mask_name>): Ditto.
1422 (<sse2_avx_avx512f>_vpermilvar<mode>3<mask_name>): Ditto.
1423 (<avx2_avx512f>_ashrv<mode><mask_name>): Ditto.
1424 (<avx2_avx512f>_<shift_insn>v<mode><mask_name>): Ditto.
1425 (<mask_codefor>avx512f_vcvtph2ps512<mask_name>): Ditto.
1426 (<mask_codefor>avx512f_vcvtps2ph512<mask_name>): Ditto.
1427 (avx512f_getmant<mode><mask_name>): Ditto.
1428 (clz<mode>2<mask_name>): Ditto.
1429 (<mask_codefor>conflict<mode><mask_name>): Ditto.
1430 (*srcp14<mode>): Remove visibility.
1431 (*rsqrt14<mode>): Ditto.
1432 (*fma_fmsub_<mode>): Ditto.
1433 (*fma_fnmadd_<mode>): Ditto.
1434 (*avx512f_rndscale<mode>): Ditto.
1435 * config/i386/subst.md: New file.
1437 2013-11-13 Joseph Myers <joseph@codesourcery.com>
1439 * doc/extend.texi (Statement Exprs, Typeof): Discuss __auto_type.
1440 * ginclude/stdatomic.h (kill_dependency, atomic_store_explicit)
1441 (atomic_load_explicit, atomic_exchange_explicit)
1442 (atomic_compare_exchange_strong_explicit)
1443 (atomic_compare_exchange_weak_explicit): Use __auto_type to
1444 declare variable initialized with PTR argument.
1446 2013-11-12 Jeff Law <law@redhat.com>
1448 * tree-ssa-threadedge.c (thread_around_empty_blocks): New argument
1449 backedge_seen_p. Set, use and pass it to children appropriately.
1450 (thread_through_normal_block): Similarly.
1451 (thread_across_edge): Similarly.
1453 * gimple-ssa-isolate-paths.c (check_loadstore): Mark discovered
1454 memory references as volatile.
1455 (insert_trap_and_remove_trailing_statements): Fix comment.
1457 2013-11-12 Vladimir Makarov <vmakarov@redhat.com>
1460 * ira-costs.c (record_operand_costs): Check operands number for
1463 2013-11-12 Michael Meissner <meissner@linux.vnet.ibm.com>
1466 * config/rs6000/rs6000.md (movdi_internal32): Eliminate
1467 constraints that would allow DImode into the traditional Altivec
1468 registers, but cause undesirable code generation when loading 0 as
1470 (movdi_internal64): Likewise.
1471 (cmp<mode>_fpr): Do not use %x for CR register output.
1472 (extendsfdf2_fpr): Fix constraints when -mallow-upper-df and
1473 -mallow-upper-sf debug switches are used.
1475 2013-11-12 Andrew MacLeod <amacleod@redhat.com>
1477 * gimple-expr.h (create_tmp_var_name, create_tmp_var_raw,
1478 create_tmp_var, create_tmp_reg, mark_addressable, is_gimple_reg_rhs):
1479 Relocate prototypes from gimple.h.
1480 * gimplify.h: New File. Relocate some prototypes from gimple.h here.
1481 (gimple_predicate, enum fallback, enum gimplify_status): Relocate
1483 * gimple.h: Move some prototypes to gimplify.h.
1484 (gimple_predicate, enum fallback, enum gimplify_status): Move to
1486 (gimple_do_not_emit_location_p, gimple_set_do_not_emit_location):
1487 Relocate from gimpify.c.
1488 * gimple-expr.c (remove_suffix, tmp_var_id_num, create_tmp_var_name,
1489 create_tmp_var_raw, create_tmp_var, create_tmp_reg, mark_addressable,
1490 is_gimple_reg_rhs) Relocate from gimplify.c.
1491 * gimplify.c (mark_addressable): Move to gimple-expr.c.
1492 (gimple_seq_add_stmt_without_update): Move to gimple.c.
1493 (remove_suffix, tmp_var_id_num, create_tmp_var_name,
1494 create_tmp_var_raw, create_tmp_var, create_tmp_reg,
1495 is_gimple_reg_rhs): Move to gimple-expr.c.
1496 (should_carry_location_p): Move to gimple.c.
1497 (gimple_do_not_emit_location_p, gimple_set_do_not_emit_location): Move
1499 (annotate_one_with_location, annotate_all_with_location_after,
1500 annotate_all_with_location): Move to gimple.c.
1501 (compare_case_labels, sort_case_labels,
1502 preprocess_case_label_vec_for_gimple): Move to gimple.c.
1503 (rhs_predicate_for): Make static.
1504 (gimplify_assign): Relocate from gimple.c.
1505 * gimple.c (gimplify_assign): Move to gimplify.c.
1506 (gimple_seq_add_stmt_without_update, should_carry_location_p,
1507 annotate_one_with_location, annotate_all_with_location_after,
1508 annotate_all_with_location, compare_case_labels, sort_case_labels,
1509 preprocess_case_label_vec_for_gimple): Relocate from gimplify.c.
1510 * tree.h (unshare_expr, unshare_expr_without_location,
1511 mark_addressable): Move prototypes to gimplify.h.
1512 * Makefile.in (GTFILES): gimple-expr.c now has the GTY tag for
1514 * asan.c: Include gimplify.h rather than gimple.h.
1515 * cfgloopmanip.c: Likewise.
1516 * cgraphunit.c: Likewise.
1517 * cilk-common.c: Likewise.
1518 * dwarf2out.c: Dont include gimple.h.
1519 * fold-const.c: Include gimplify.h rather than gimple.h.
1520 * function.c: Likewise.
1521 * gimple-fold.c: Likewise.
1522 * gimple-ssa-strength-reduction.c: Likewise.
1523 * graphite-clast-to-gimple.c: Likewise.
1524 * graphite-sese-to-poly.c: Likewise.
1525 * ipa-prop.c: Likewise.
1526 * ipa-split.c: Likewise.
1528 * langhooks.c: Dont include gimple.h.
1529 * loop-init.c: Include gimplify.h rather than gimple.h.
1530 * omp-low.c: Likewise.
1532 * stor-layout.c: Likewise.
1533 * targhooks.c: Likewise.
1534 * trans-mem.c: Likewise.
1535 * tree-affine.c: Likewise.
1536 * tree-cfg.c: Likewise.
1537 * tree-cfgcleanup.c: Likewise.
1538 * tree-complex.c: Likewise.
1539 * tree-if-conv.c: Likewise.
1540 * tree-inline.c: Likewise.
1541 * tree-iterator.c: Likewise.
1542 * tree-loop-distribution.c: Likewise.
1543 * tree-nested.c: Likewise.
1544 * tree-parloops.c: Likewise.
1545 * tree-predcom.c: Likewise.
1546 * tree-profile.c: Likewise.
1547 * tree-scalar-evolution.c: Likewise.
1548 * tree-sra.c: Likewise.
1549 * tree-ssa-address.c: Likewise.
1550 * tree-ssa-ccp.c: Likewise.
1551 * tree-ssa-dce.c: Likewise.
1552 * tree-ssa-forwprop.c: Likewise.
1553 * tree-ssa-ifcombine.c: Likewise.
1554 * tree-ssa-loop-im.c: Likewise.
1555 * tree-ssa-loop-ivopts.c: Likewise.
1556 * tree-ssa-loop-manip.c: Likewise.
1557 * tree-ssa-loop-niter.c: Likewise.
1558 * tree-ssa-loop-prefetch.c: Likewise.
1559 * tree-ssa-loop-unswitch.c: Likewise.
1560 * tree-ssa-math-opts.c: Likewise.
1561 * tree-ssa-phiopt.c: Likewise.
1562 * tree-ssa-phiprop.c: Likewise.
1563 * tree-ssa-pre.c: Likewise.
1564 * tree-ssa-propagate.c: Likewise.
1565 * tree-ssa-reassoc.c: Likewise.
1566 * tree-ssa-sccvn.c: Likewise.
1567 * tree-ssa-strlen.c: Likewise.
1568 * tree-ssa.c: Likewise.
1569 * tree-switch-conversio: Likewise.n.c
1570 * tree-tailcall.c: Likewise.
1571 * tree-vect-data-refs.c: Likewise.
1572 * tree-vect-generic.c: Likewise.
1573 * tree-vect-loop-manip.c: Likewise.
1574 * tree-vect-loop.c: Likewise.
1575 * tree-vect-patterns.c: Likewise.
1576 * tree-vect-stmts.c: Likewise.
1578 * value-prof.c: Likewise.
1579 * config/aarch64/aarch64.c: Include gimplify.h instead of gimple.h.
1580 * config/alpha/alpha.c: Likewise.
1581 * config/darwin.c: Likewise.
1582 * config/i386/i386.c: Likewise.
1583 * config/ia64/ia64.c: Likewise.
1584 * config/mep/mep.c: Likewise.
1585 * config/mips/mips.c: Likewise.
1586 * config/rs6000/rs6000.c: Likewise.
1587 * config/s390/s390.c: Likewise.
1588 * config/sh/sh.c: Likewise.
1589 * config/sparc/sparc.c: Likewise.
1590 * config/spu/spu.c: Likewise.
1591 * config/stormy16/stormy16.c: Likewise.
1592 * config/tilegx/tilegx.c: Likewise.
1593 * config/tilepro/tilepro.c: Likewise.
1594 * config/xtensa/xtensa.c: Likewise.
1596 2013-11-12 Adam Butcher <adam@jessamine.co.uk>
1598 * tree.c (grow_tree_vec_stat): New function ...
1599 * tree.h (grow_tree_vec_stat) (grow_tree_vec): ... and its declaration
1600 and macro front-end.
1602 2013-11-12 Marek Polacek <polacek@redhat.com>
1604 * final.c (update_alignments): Initialize label to NULL_RTX.
1606 2013-11-12 Jeff Law <law@redhat.com>
1608 * gimple-ssa-isolate-paths.c (check_loadstore): New function.
1609 (insert_trap_and_remove_trailing_statements): New argument OP which
1610 is the NULL pointer. Emit the trap after the load/store through
1611 the NULL pointer. Simplify the RHS of a store through a NULL pointer
1612 when trivial to do so.
1613 (isolate_path): Corresponding changes.
1614 (gimple_ssa_isolate_erroneous_path): Likewise.
1616 2013-11-12 Teresa Johnson <tejohnson@google.com>
1617 Jan Hubicka <jh@suse.cz>
1619 * predict.c (drop_profile): New function.
1620 (handle_missing_profiles): Ditto.
1621 (counts_to_freqs): Don't overwrite estimated frequencies
1622 when function has no profile counts.
1623 * predict.h (handle_missing_profiles): Declare.
1624 * tree-inline.c (freqs_to_counts): New function.
1625 (copy_cfg_body): Invoke freqs_to_counts as needed.
1626 * tree-profile.c (tree_profiling): Invoke handle_missing_profiles.
1628 2013-11-12 H.J. Lu <hongjiu.lu@intel.com>
1631 * config/i386/x86-tune.def (X86_TUNE_SSE_UNALIGNED_LOAD_OPTIMAL):
1633 (X86_TUNE_SSE_UNALIGNED_STORE_OPTIMAL): Set for m_HASWELL.
1635 2013-11-12 H.J. Lu <hongjiu.lu@intel.com>
1638 * config/i386/i386.c (ix86_option_override_internal): Check
1639 X86_TUNE_AVX256_UNALIGNED_LOAD_OPTIMAL and
1640 X86_TUNE_AVX256_UNALIGNED_STORE_OPTIMAL for
1641 MASK_AVX256_SPLIT_UNALIGNED_LOAD and
1642 MASK_AVX256_SPLIT_UNALIGNED_STORE.
1644 * config/i386/x86-tune.def (X86_TUNE_AVX256_UNALIGNED_LOAD_OPTIMAL):
1645 Clear m_COREI7_AVX and update comments.
1646 (X86_TUNE_AVX256_UNALIGNED_STORE_OPTIMAL): Likewise.
1648 2013-11-12 Martin Jambor <mjambor@suse.cz>
1650 PR rtl-optimization/10474
1651 * ira.c (interesting_dest_for_shprep): New function.
1652 (split_live_ranges_for_shrink_wrap): Likewise.
1653 (find_moveable_pseudos): Move calculation of dominance info,
1654 df_analysios and the final anlyses to...
1655 (ira): ...here, call split_live_ranges_for_shrink_wrap.
1657 2013-11-12 Bin Cheng <bin.cheng@arm.com>
1659 * tree-ssa-loop-ivopts.c (force_expr_to_var_cost): Refactor the code.
1660 Handle type conversion.
1662 2013-11-11 Martin Liska <marxin.liska@gmail.com>
1663 Jan Hubicka <jh@suse.cz>
1665 * cgraph.c (dump_cgraph_node): Profile dump added.
1666 * cgraph.h (struct cgraph_node): New time profile variable added.
1667 * cgraphclones.c (cgraph_clone_node): Time profile is cloned.
1668 * gcov-io.h (gcov_type): New profiler type introduced.
1669 * ipa-profile.c (lto_output_node): Streaming for time profile added.
1670 (input_node): Time profiler is read from LTO stream.
1671 * predict.c (maybe_hot_count_p): Hot prediction changed.
1672 * profile.c (instrument_values): New case for time profiler added.
1673 (compute_value_histograms): Read of time profile.
1674 * tree-pretty-print.c (dump_function_header): Time profiler is dumped.
1675 * tree-profile.c (init_ic_make_global_vars): Time profiler
1677 (gimple_init_edge_profiler): TP function instrumentation.
1678 (gimple_gen_time_profiler): New.
1679 * value-prof.c (gimple_add_histogram_value): Support for time profiler
1681 (dump_histogram_value): TP type added to dumps.
1682 (visit_hist): More sensitive check that takes TP into account.
1683 (gimple_find_values_to_profile): TP instrumentation.
1684 * value-prof.h (hist_type): New histogram type added.
1685 (struct histogram_value_t): Pointer to struct function added.
1686 * libgcc/Makefile.in: New GCOV merge function for TP added.
1687 * libgcov.c: function_counter variable introduced.
1688 (_gcov_merge_time_profile): New.
1689 (_gcov_time_profiler): New.
1691 2013-11-11 Marc Glisse <marc.glisse@inria.fr>
1692 Jeff Law <law@redhat.com>
1694 * tree-ssa-alias.c (stmt_kills_ref_p_1): Use
1695 ao_ref_init_from_ptr_and_size for builtins.
1697 2013-11-11 Uros Bizjak <ubizjak@gmail.com>
1698 H.J. Lu <hongjiu.lu@intel.com>
1701 * config/i386/x86-tune.def
1702 (X86_TUNE_MISALIGNED_MOVE_STRING_PRO_EPILOGUES): Rename from
1703 TARGET_MISALIGNED_MOVE_STRING_PROLOGUES.
1704 * config/i386/i386.h
1705 (TARGET_MISALIGNED_MOVE_STRING_PRO_EPILOGUES): Rename from
1706 TARGET_MISALIGNED_MOVE_STRING_PROLOGUES_EPILOGUES. Update for renamed
1707 X86_TUNE_MISALIGNED_MOVE_STRING_PRO_EPILOGUES.
1708 * config/i386/i386.c (ix86_expand_set_or_movmem): Use
1709 TARGET_MISALIGNED_MOVE_STRING_PRO_EPILOGUES to calculate
1710 misaligned_prologue_used. Check that
1711 desired_aling <= epilogue_size_needed.
1713 2013-11-11 Cong Hou <congh@google.com>
1715 PR tree-optimization/59050
1716 * tree-vect-data-refs.c (comp_dr_addr_with_seg_len_pair): Bug fix.
1718 2013-11-11 Joern Rennecke <joern.rennecke@embecosm.com>
1721 * expmed.c (emit_store_flag): Fail for const-const comparison.
1723 2013-11-11 Tristan Gingold <gingold@adacore.com>
1724 Eric Botcazou <ebotcazou@adacore.com>
1726 * tree.h (CONSTRUCTOR_NO_CLEARING): Define.
1727 * tree-core.h (CONSTRUCTOR_NO_CLEARING): Document it.
1728 * tree.def (CONSTRUCTOR): Likewise.
1729 * doc/generic.texi (CONSTRUCTOR): Likewise. Update description.
1730 * gimplify.c (gimplify_init_constructor): Do not clear the object when
1731 the constructor is incomplete and CONSTRUCTOR_NO_CLEARING is set.
1733 2013-11-11 Basile Starynkevitch <basile@starynkevitch.net>
1735 * toplev.c (toplev_main): Move PLUGIN_FINISH invocation before
1738 2013-11-11 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
1740 * config/arm/arm.c (arm_new_rtx_costs): Return after handling
1743 2013-11-11 Joern Rennecke <joern.rennecke@embecosm.com>
1745 * config/arc/arc.h (LOGICAL_OP_NON_SHORT_CIRCUIT): Define.
1747 2013-11-08 Jeff Law <law@redhat.com>
1749 * tree-ssa-threadupdate.c (mark_threaded_blocks): Truncate jump
1750 threading paths first, then perform PHI node checks if applicable.
1752 2013-11-10 Karlson2k <k2k@narod.ru>
1753 Kai Tietz <ktietz@redhat.com>
1756 * configure.ac: Adding for exported symbols check
1757 and for rdynamic-check executable-extension.
1758 * configure: Regenerated.
1760 2013-11-10 Uros Bizjak <ubizjak@gmail.com>
1762 * mode-switching.c (optimize_mode_switching): Mark block as
1763 nontransparent, if last_mode at block exit is different from no_mode.
1765 2013-11-09 Jan-Benedict Glaw <jbglaw@lug-owl.de>
1767 * function.c (NAME__MAIN): Move to...
1768 * cfgexpand.c (NAME__MAIN): ...here.
1770 2013-11-09 Richard Sandiford <rdsandiford@googlemail.com>
1772 * target.def (can_use_doloop_p): New hook.
1773 * doc/tm.texi.in (TARGET_CAN_USE_DOLOOP_P): Add.
1774 * doc/tm.texi: Regenerate.
1775 * doc/md.texi (doloop_begin, doloop_end): Update documentation.
1776 * hooks.h (hook_bool_dint_dint_uint_true): Declare.
1777 * hooks.c (hook_bool_dint_dint_uint_true): New function.
1778 * targhooks.h (can_use_doloop_if_innermost): Declare.
1779 * targhooks.c (can_use_doloop_if_innermost): New function.
1780 * target.h: Include double-int.h.
1781 * loop-doloop.c (doloop_optimize): Call targetm.can_use_doloop_p.
1782 Remove iteration count, maximum iteration count, loop depth and
1783 enter-at-top inputs from doloop_begin and doloop_end.
1784 * config/arc/arc.md (doloop_begin, doloop_end): Update for new
1786 * config/arc/arc.c (arc_can_use_doloop_p): New function.
1787 (TARGET_CAN_USE_DOLOOP_P): Define.
1788 * config/arm/thumb2.md (doloop_end): Update for new interface.
1789 * config/arm/arm.c (TARGET_CAN_USE_DOLOOP_P): Define.
1790 * config/bfin/bfin.md (doloop_end): Update for new interface.
1791 * config/bfin/bfin.c (bfin_can_use_doloop_p): New function.
1792 (TARGET_CAN_USE_DOLOOP_P): Define.
1793 * config/c6x/c6x.md (doloop_end): Update for new interface.
1794 * config/ia64/ia64.md (doloop_end): Update for new interface.
1795 * config/ia64/ia64.c (TARGET_CAN_USE_DOLOOP_P): Define.
1796 * config/mep/mep.md (doloop_begin, doloop_end): Update for new
1798 * config/mep/mep.c (mep_emit_doloop): Likewise.
1799 (TARGET_CAN_USE_DOLOOP_P): Define.
1800 * config/rs6000/rs6000.md (doloop_end): Update for new interface.
1801 * config/rs6000/rs6000.c (TARGET_CAN_USE_DOLOOP_P): Define.
1802 * config/s390/s390.md (doloop_end): Update for new interface.
1803 * config/sh/sh.md (doloop_end): Likewise.
1804 * config/spu/spu.md (doloop_end): Likewise.
1805 * config/spu/spu.c (TARGET_CAN_USE_DOLOOP_P): Define.
1806 * config/tilegx/tilegx.md (doloop_end): Update for new interface.
1807 * config/tilegx/tilegx.c (TARGET_CAN_USE_DOLOOP_P): Define.
1808 * config/tilepro/tilepro.md (doloop_end): Update for new interface.
1809 * config/tilepro/tilepro.c (TARGET_CAN_USE_DOLOOP_P): Define.
1810 * config/v850/v850.md (doloop_begin, doloop_end): Update for new
1812 * config/v850/v850.c (TARGET_CAN_USE_DOLOOP_P): Define.
1814 2013-11-08 H.J. Lu <hongjiu.lu@intel.com>
1817 * doc/extend.texi: Move Cilk Plus Builtins node before Other
1820 2013-11-08 Andrew MacLeod <amacleod@redhat.com>
1821 Joseph Myers <joseph@codesourcery.com>
1823 * ginclude/stdatomic.h: New file.
1824 * Makefile.in (USER_H): Add stdatomic.h.
1826 2013-11-08 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
1828 * config/arm/arm.c (arm_new_rtx_costs): Break after handling
1831 2013-11-08 Jeff Law <law@redhat.com>
1833 * tree-ssa-threadupdate.h (delete_thread_path): Declare.
1834 * tree-ssa-threadupdate.c (delete_thread_path): New function.
1835 (ssa_redirect_edges, thread_block_1): Use it.
1836 (thread_through_loop_header, mark_threaded_blocks): Likewise.
1837 (thread_through_all_blocks, register_jump_thread): Likewise.
1838 * tree-ssa-threadedge.c (thread_across_edge): Likewise.
1840 2013-11-08 James Greenhalgh <james.greenhalgh@arm.com>
1842 * config/arm/aarch-common.c
1843 (search_term): New typedef.
1844 (shift_rtx_costs): New array.
1845 (arm_rtx_shift_left_p): New.
1846 (arm_find_sub_rtx_with_search_term): Likewise.
1847 (arm_find_sub_rtx_with_code): Likewise.
1848 (arm_early_load_addr_dep): Add sanity checking.
1849 (arm_no_early_alu_shift_dep): Likewise.
1850 (arm_no_early_alu_shift_value_dep): Likewise.
1851 (arm_no_early_mul_dep): Likewise.
1852 (arm_no_early_store_addr_dep): Likewise.
1854 2013-11-08 Richard Biener <rguenther@suse.de>
1856 PR tree-optimization/59047
1857 * tree-predcom.c (ref_at_iteration): Handle bitfield accesses properly.
1859 2013-11-08 Ilya Enkovich <ilya.enkovich@intel.com>
1861 * common.opt (fcheck-pointer-bounds): Move to ...
1862 * c-family/c.opt: ... here.
1863 * langhooks-def.h (LANG_HOOKS_CHKP_SUPPORTED): Remove.
1864 (LANG_HOOKS_INITIALIZER): Remove LANG_HOOKS_CHKP_SUPPORTED.
1865 * langhooks.h (lang_hooks): Remove chkp_supported field.
1866 * toplev.c (process_options): Remove chkp_supported check.
1868 2013-11-08 Richard Biener <rguenther@suse.de>
1870 PR tree-optimization/59038
1871 PR tree-optimization/58955
1872 * tree-loop-distribution.c (pg_add_dependence_edges): Revert
1873 previous change. Handle known dependences correctly.
1875 2013-11-08 Tom de Vries <tom@codesourcery.com>
1877 * config/rs6000/t-xilinx: Remove duplicate contents.
1879 2013-11-07 Andrew MacLeod <amacleod@redhat.com>
1880 Joseph Myers <joseph@codesourcery.com>
1882 * tree-core.h (enum cv_qualifier): Add TYPE_QUAL_ATOMIC.
1883 (enum tree_index): Add TI_ATOMICQI_TYPE, TI_ATOMICHI_TYPE,
1884 TI_ATOMICSI_TYPE, TI_ATOMICDI_TYPE and TI_ATOMICTI_TYPE.
1885 (struct tree_base): Add atomic_flag field.
1886 * tree.h (TYPE_ATOMIC): New accessor macro.
1887 (TYPE_QUALS, TYPE_QUALS_NO_ADDR_SPACE): Add TYPE_QUAL_ATOMIC.
1888 (TYPE_QUALS_NO_ADDR_SPACE_NO_ATOMIC): New macro.
1889 (atomicQI_type_node, atomicHI_type_node, atomicSI_type_node)
1890 (atomicDI_type_node, atomicTI_type_node): New macros for type nodes.
1891 * tree.c (set_type_quals): Set TYPE_ATOMIC.
1892 (find_atomic_core_type): New function.
1893 (build_qualified_type): Adjust alignment for qualified types.
1894 (build_atomic_base): New function
1895 (build_common_tree_nodes): Build atomicQI_type_node,
1896 atomicHI_type_node, atomicSI_type_node, atomicDI_type_node and
1898 * print-tree.c (print_node): Print atomic qualifier.
1899 * tree-pretty-print.c (dump_generic_node): Print atomic type attribute.
1900 * target.def (atomic_assign_expand_fenv): New hook.
1901 * doc/tm.texi.in (TARGET_ATOMIC_ASSIGN_EXPAND_FENV): New @hook.
1902 * doc/tm.texi: Regenerate.
1903 * targhooks.c (default_atomic_assign_expand_fenv): New function.
1904 * targhooks.h (default_atomic_assign_expand_fenv): Declare.
1905 * sync-builtins.def (__atomic_feraiseexcept): New built-in function.
1906 * config/i386/i386-builtin-types.def (VOID_FTYPE_PUSHORT): New
1908 * config/i386/i386.c (enum ix86_builtins): Add
1909 IX86_BUILTIN_FNSTENV, IX86_BUILTIN_FLDENV, IX86_BUILTIN_FNSTSW and
1910 IX86_BUILTIN_FNCLEX.
1911 (bdesc_special_args): Add __builtin_ia32_fnstenv,
1912 __builtin_ia32_fldenv, __builtin_ia32_fnstsw and __builtin_ia32_fnclex.
1913 (ix86_expand_builtin): Handle the new built-in functions.
1914 (ix86_atomic_assign_expand_fenv): New function.
1915 (TARGET_ATOMIC_ASSIGN_EXPAND_FENV): New macro.
1916 * config/i386/i386.md (UNSPECV_FNSTENV, UNSPECV_FLDENV)
1917 (UNSPECV_FNSTSW, UNSPECV_FNCLEX): New unspecs.
1918 (fnstenv, fldenv, fnstsw, fnclex): New insns.
1920 2013-11-07 Steve Ellcey <sellcey@mips.com>
1922 * config/mips/mti-linux.h (SYSROOT_SUFFIX_SPEC): Add fp64 directory.
1923 * config/mips/t-mti-linux (MULTILIB_OPTIONS): Add -mfp64 flag.
1924 (MULTILIB_DIRNAMES): Add fp64 directory.
1925 (MULTILIB_EXCEPTIONS): Add new exclusions.
1927 2013-11-07 Aldy Hernandez <aldyh@redhat.com>
1929 * gimplify.c (gimple_regimplify_operands): Do not set
1931 * graphite-sese-to-poly.c (remove_simple_copy_phi): Same.
1932 (rewrite_close_phi_out_of_ssa): Same.
1933 (rewrite_phi_out_of_ssa): Same.
1934 (rewrite_degenerate_phi): Same.
1935 (handle_scalar_deps_crossing_scop_limits): Same.
1936 * tree-if-conv.c (predicate_scalar_phi): Same.
1937 * tree-parloops.c (create_loads_for_reductions): Same.
1938 (create_final_loads_for_reduction): Same.
1939 (create_loads_and_stores_for_name): Same.
1940 (transform_to_exit_first_loop): Same.
1941 (create_parallel_loop): Same.
1942 * tree-ssa-loop-im.c
1943 (move_computations_dom_walker::before_dom_children): Same.
1944 * tree-ssa-loop-manip.c (rewrite_phi_with_iv): Same.
1945 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children): Same.
1946 * tree-ssa-propagate.c (substitute_and_fold): Same.
1947 * tree-vect-loop.c (vect_finalize_reduction): Same.
1948 * tree-vect-stmts.c (vectorizable_call): Same.
1950 2013-11-07 Mike Stump <mikestump@comcast.net>
1952 * config/pdp11/pdp11.c: Include dbxout.h.
1953 * config/picochip/picochip.c: Likewise.
1955 2013-11-07 Cong Hou <congh@google.com>
1957 PR tree-optimization/56764
1958 * tree-vect-loop-manip.c (vect_create_cond_for_alias_checks):
1959 Combine alias checks if it is possible to amortize the runtime
1960 overhead. Return the number of alias checks after merging.
1961 * tree-vect-data-refs.c (vect_prune_runtime_alias_test_list):
1962 Use the function vect_create_cond_for_alias_checks () to check
1963 the number of alias checks.
1965 2013-11-07 Jeff Law <law@redhat.com>
1967 * varpool.c (ctor_for_folding): Fix typo in comment.
1969 2013-11-07 Joern Rennecke <joern.rennecke@embecosm.com>
1971 * config/arc/arc.c (arc_ifcvt): Use commutativity, e.g.:
1972 reg_a := reg_b + reg_a ==> reg_a := reg_a + reg_b
1974 2013-11-07 Jeff Law <law@redhat.com>
1976 * doc/invoke.texi (-fisolate-erroneous-paths): Document.
1978 * gimple-ssa-isolate-paths.c (gate_isolate_erroneous_paths):
1979 No longer check if we have __builtin_trap, assume it's available.
1981 2013-11-07 Diego Novillo <dnovillo@google.com>
1983 * attribs.c (lookup_scoped_attribute_spec): Make static.
1984 (get_attribute_namespace): Likewise.
1985 * builtins.c (more_const_call_expr_args_p): Move from tree.h.
1986 (validate_arglist): Move earlier in the file. Make static.
1987 (expand_stack_restore): Move from stmt.c
1988 (expand_stack_save): Move from stmt.c
1989 (rewrite_call_expr_array): Move earlier in the file.
1990 (rewrite_call_expr_valist): Likewise.
1991 * cfgexpand.c: Include hard-reg-set.h before tree.h
1994 (expand_asm_loc): Move from stmt.c.
1995 (n_occurrences): Move from stmt.c.
1996 (check_operand_nalternatives): Move from stmt.c.
1997 (tree_conflicts_with_clobbers_p): Move from stmt.c.
1998 (expand_asm_operands): Move from stmt.c
1999 (expand_asm_stmt): Move from stmt.c
2000 (expand_computed_goto): Move from stmt.c
2001 (expand_goto): Move from stmt.c
2002 (expand_null_return_1): Move from stmt.c
2003 (expand_null_return): Move from stmt.c
2004 (expand_value_return): Move from stmt.c
2005 (expand_return): Move from stmt.c
2006 (expand_main_function): Move from function.c
2007 (stack_protect_prologue): Move from function.c
2008 * cgraphclones.c (build_function_type_skip_args): Move from tree.c.
2009 (build_function_decl_skip_args): Move from tree.c.
2010 * explow.c (tree_expr_size): Move from tree.c.
2011 * expr.c (addr_expr_of_non_mem_decl_p): Remove.
2012 (fields_length): Move from tree.c.
2013 * fold-const.c (size_low_cst): Move from tree.c.
2014 (tree_expr_nonzero_warnv_p): Make static. Move earlier in the file.
2015 (tree_expr_nonzero_p): Make static. Move earlier in the file.
2016 (fold_build3_initializer_loc): Remove.
2017 (tree_invalid_nonnegative_warnv_p): Make static.
2018 * function.c (expand_main_function): Move to cfgexpand.c.
2019 (stack_protect_prologue): Move to cfgexpand.c.
2020 (set_insn_locations): Move earlier in the file.
2021 * gimple-fold.c: Include langhooks.h.
2022 (truth_type_for): Move from tree.c.
2023 * print-tree.c (print_vec_tree): Remove.
2024 * stmt.c (expand_computed_goto): Move to cfgexpand.c.
2025 (expand_goto): Move to cfgexpand.c.
2026 (n_occurrences): Move to cfgexpand.c.
2027 (expand_asm_loc): Move to cfgexpand.c
2028 (tree_conflicts_with_clobbers_p): Move to cfgexpand.c.
2029 (expand_asm_operands): Move to cfgexpand.c.
2030 (expand_asm_stmt): Move to cfgexpand.c.
2031 (check_operand_nalternatives): Move to cfgexpand.c
2032 (expand_null_return): Move to cfgexpand.c.
2033 (expand_value_return): Move to cfgexpand.c.
2034 (expand_null_return_1): Move to cfgexpand.c.
2035 (expand_return): Move to cfgexpand.c.
2036 (expand_stack_save): Move to builtins.c.
2037 (expand_stack_restore): Move to builtins.c
2038 * symtab.c: Include output.h.
2039 (decl_assembler_name_hash): Move from tree.c.
2040 (decl_assembler_name_equal): Move from tree.c.
2041 * trans-mem.c (is_tm_safe_or_pure): Move from tree.h.
2042 * tree-eh.c (in_array_bounds_p): Move from tree.c.
2043 (range_in_array_bounds_p): Move from tree.c.
2044 * tree-object-size.c (fini_object_sizes): Make static.
2045 * tree-ssa-dom.c (iterative_hash_exprs_commutative): Move from tree.h.
2046 * tree-vrp.c (ssa_name_nonnegative_p): Remove.
2047 * tree.c (decl_assembler_name_equal): Move to symtab.c.
2048 (tree_expr_size): Move to explow.c.
2049 (decl_assembler_name_hash): Move to symtab.c.
2050 (real_twop): Remove.
2051 (tree_expr_size): Move to explow.c.
2052 (stabilize_reference_1): Move earlier in the file. Make static.
2053 (omp_remove_redundant_declare_simd_attrs): Remove.
2054 (simple_cst_list_equal): Move earlier in the file. Make static.
2055 (size_low_cst): Move to fold-const.c.
2056 (build_type_no_quals): Remove.
2057 (build_function_type_skip_args): Move to cgraphclones.c.
2058 (build_function_decl_skip_args): Move to cgraphclones.c.
2059 (in_array_bounds_p): Move to tree-eh.c.
2060 (range_in_array_bounds_p): Move to tree-eh.c.
2061 (truth_type_for): Move to gimple-fold.c.
2062 (list_equal_p): Remove.
2063 * tree.h (decl_assembler_name_equal): Remove.
2064 (decl_assembler_name_hash): Remove.
2065 (truth_type_for): Remove.
2066 (build_type_no_quals): Remove.
2067 (build_function_decl_skip_args): Remove.
2068 (in_array_bounds_p): Remove.
2069 (range_in_array_bounds_p): Remove.
2070 (size_low_cst): Remove.
2071 (omp_remove_redundant_declare_simd_attrs): Remove.
2072 (tree_expr_size): Remove.
2073 (fields_length): Remove.
2074 (stabilize_reference_1): Remove.
2075 (expand_goto): Remove.
2076 (expand_stack_save): Remove.
2077 (expand_stack_restore): Remove.
2078 (expand_return): Remove.
2079 (fold_build3_initializer_loc): Remove.
2080 (tree_expr_nonzero_p): Remove.
2081 (tree_invalid_nonnegative_warnv_p): Remove.
2082 (tree_expr_nonzero_warnv_p): Remove.
2083 (fold_builtin_snprintf_chk): Remove.
2084 (validate_arglist): Remove.
2085 (iterative_hash_exprs_commutative): Move to tree-ssa-dom.c.
2086 (simple_cst_list_equal): Remove.
2087 (real_twop): Remove.
2088 (expand_main_function): Remove.
2089 (stack_protect_prologue): Remove.
2090 (print_vec_tree): Remove.
2091 (lookup_scoped_attribute_spec): Remove.
2092 (get_attribute_namespace): Remove.
2093 (expand_computed_goto): Remove.
2094 (expand_asm_stmt): Remove.
2095 (list_equal_p): Remove.
2096 (ssa_name_nonnegative_p): Remove.
2097 (fini_object_sizes): Remove.
2098 (addr_expr_of_non_mem_decl_p): Remove.
2099 (is_tm_safe_or_pure): Move to trans-mem.c.
2100 (more_const_call_expr_args_p): Remove.
2101 (save_vtable_map_decl): Remove.
2103 2013-11-07 Thomas Schwinge <thomas@codesourcery.com>
2105 * doc/sourcebuild.texi (Top Level) <lto-plugin>: GNU ld can use
2106 linker plugins, too.
2108 * config/arc/arc.h (LINK_COMMAND_SPEC): For -ftree-parallelize-loops=*,
2109 link to libgomp and its dependencies.
2110 * config/ia64/hpux.h (LIB_SPEC): Likewise.
2111 * config/pa/pa-hpux11.h (LIB_SPEC): Likewise.
2112 * config/pa/pa64-hpux.h (LIB_SPEC): Likewise.
2113 * gcc.c (GOMP_SELF_SPECS): Update comment about libgomp's dependencies.
2115 2013-11-07 Jakub Jelinek <jakub@redhat.com>
2117 * tree-ssa-loop-niter.c: Include tree-ssanames.h.
2118 (determine_value_range): Add loop argument. Use get_range_info to
2120 (bound_difference): Adjust caller.
2122 2013-11-07 Richard Biener <rguenther@suse.de>
2123 Jakub Jelinek <jakub@redhat.com>
2125 * tree-vrp.c (find_assert_locations): Pre-seed live bitmaps for loop
2126 latches from header PHI arguments from the latch edge.
2128 2013-11-07 Paolo Carlini <paolo.carlini@oracle.com>
2131 * varasm.c (output_constant): Handle NULLPTR_TYPE.
2133 2013-11-07 H.J. Lu <hongjiu.lu@intel.com>
2135 * config/i386/i386.c (ix86_expand_set_or_movmem): Don't set
2136 misaligned_prologue_used when it has been set.
2138 2013-11-07 Yury Gribov <y.gribov@samsung.com>
2139 Jakub Jelinek <jakub@redhat.com>
2142 * asan.c (get_mem_refs_of_builtin_call): Allow
2143 integer literals as addresses in instrumented builtins.
2145 2013-11-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2147 * config/aarch64/aarch64.c (aarch64_legitimize_reload_address):
2148 Explain why plus_constant is not used.
2150 2013-11-07 Richard Biener <rguenther@suse.de>
2152 * tree-ssa-ccp.c (canonicalize_float_value): Rename to ...
2153 (canonicalize_value): ... this. Also handle stripping of
2155 (get_value, set_lattice_value, get_value_for_expr): Adjust.
2156 * gimple-fold.c (canonicalize_constructor_val): Strip TREE_OVERFLOW.
2157 * tree-ssa-threadedge.c (set_ssa_name_value): Likewise.
2159 2013-11-07 Richard Biener <rguenther@suse.de>
2161 * tree-dfa.c (get_ref_base_and_extent): Fix casting.
2163 2013-11-07 H.J. Lu <hongjiu.lu@intel.com>
2166 * config/i386/i386.md (push peepholer/splitter): Use Pmode
2167 with stack_pointer_rtx.
2169 2013-11-07 Bin Cheng <bin.cheng@arm.com>
2171 * tree-ssa-loop-ivopts.c (get_shiftadd_cost): Check equality
2172 using operand_equal_p.
2174 2013-11-07 Bin Cheng <bin.cheng@arm.com>
2176 * tree-ssa-loop-ivopts.c (alloc_iv): Lower address expressions.
2177 * tree-affine.c (get_inner_reference_aff): Return base.
2178 * tree-affine.h (get_inner_reference_aff): Change prototype.
2180 2013-11-06 Tobias Burnus <burnus@net-b.de>
2182 * doc/invoke.texi (Wdate-time): Fix typo.
2184 2013-11-06 Oleg Endo <olegendo@gcc.gnu.org>
2186 * config/sh/sh.md (addsf3, divsf3, divsf3_i, rsqrtsf2, cmpgtdf_t,
2187 cmpeqdf_t, *ieee_ccmpeqdf_t, negdf2, sqrtdf2, absdf2): Use
2188 fp_arith_reg_operand instead of arith_reg_operand.
2190 2013-11-06 Oleg Endo <olegendo@gcc.gnu.org>
2192 * config/sh/sh.md (adddi3): Remove empty constraints.
2193 Remove can_create_pseudo_p and arith_reg_operand check.
2194 (adddi3_compact, subdi3_compact, *negdi2): Remove constraints.
2195 Split before reload.
2197 2013-11-06 Jeff Law <law@redhat.com>
2198 Tom Tromey <tromey@redhat.com>
2200 * gdbinit.in: Disable strict type checking.
2202 2013-11-06 Vladimir Makarov <vmakarov@redhat.com>
2204 * tree-pass.h (make_pass_live_range_shrinkage): New external.
2205 * timevar.def (TV_LIVE_RANGE_SHRINKAGE): New.
2206 * sched-rgn.c (gate_handle_live_range_shrinkage): New.
2207 (rest_of_handle_live_range_shrinkage): Ditto
2208 (class pass_live_range_shrinkage): Ditto.
2209 (pass_data_live_range_shrinkage): Ditto.
2210 (make_pass_live_range_shrinkage): Ditto.
2211 * sched-int.h (initialize_live_range_shrinkage): New prototype.
2212 (finish_live_range_shrinkage): Ditto.
2213 * sched-deps.c (create_insn_reg_set): Make void return value.
2214 * passes.def: Add pass_live_range_shrinkage.
2215 * ira.c (update_equiv_regs): Don't move if flag_live_range_shrinkage.
2216 * haifa-sched.c (live_range_shrinkage_p): New.
2217 (initialize_live_range_shrinkage, finish_live_range_shrinkage):
2219 (rank_for_schedule): Add code for pressure relief through live
2221 (schedule_insn): Print more debug info.
2222 (sched_init): Setup SCHED_PRESSURE_WEIGHTED for pressure relief
2223 through live range shrinkage.
2224 * doc/invoke.texi (-flive-range-shrinkage): New.
2225 * common.opt (flive-range-shrinkage): New.
2227 2013-11-06 Uros Bizjak <ubizjak@gmail.com>
2230 * config/i386/i386.c (ix86_avx_u128_mode_needed): Require
2231 AVX_U128_DIRTY mode for call_insn RTXes that use AVX256 registers.
2232 (ix86_avx_u128_mode_needed): Return AVX_U128_DIRTY mode for call_insn
2233 RTXes that return in AVX256 register.
2235 2013-11-06 Richard Biener <rguenther@suse.de>
2237 PR tree-optimization/58653
2238 * tree-predcom.c (ref_at_iteration): Rewrite to generate a MEM_REF.
2239 (prepare_initializers_chain): Adjust.
2241 2013-11-06 Andrew MacLeod <amacleod@redhat.com>
2243 * gimple.h (block_in_transaction): Move to basic-block.h and rename.
2244 (gimple_in_transaction): Use bb_in_transaction.
2245 * basic-block.h (bb_in_transaction): Relocate here and rename.
2246 * tree-ssa-loop-im.c (execute_sm): Use bb_in_transaction.
2248 2013-11-06 Richard Biener <rguenther@suse.de>
2250 * tree.c (drop_tree_overflow): New function.
2251 * tree.h (drop_tree_overflow): Declare.
2252 * gimplify.c (gimplify_expr): Drop TREE_OVERFLOW.
2253 * tree-vrp.c (range_int_cst_singleton_p): Use
2254 is_overflow_infinity instead of testing TREE_OVERFLOW.
2255 (extract_range_from_assert): Likewise.
2256 (zero_nonzero_bits_from_vr): Likewise.
2257 (extract_range_basic): Likewise.
2258 (register_new_assert_for): Use drop_tree_overflow.
2259 (vrp_visit_phi_node): Likewise.
2261 2013-11-06 Eric Botcazou <ebotcazou@adacore.com>
2263 * config/i386/i386.c (ix86_expand_prologue): Optimize stack
2264 checking for leaf functions without dynamic stack allocation.
2265 * config/ia64/ia64.c (ia64_emit_probe_stack_range): Adjust.
2266 (ia64_expand_prologue): Likewise.
2267 * config/mips/mips.c (mips_expand_prologue): Likewise.
2268 * config/rs6000/rs6000.c (rs6000_emit_prologue): Likewise.
2269 * config/sparc/sparc.c (sparc_expand_prologue): Likewise.
2270 (sparc_flat_expand_prologue): Likewise.
2272 2013-11-06 James Greenhalgh <james.greenhalgh@arm.com>
2274 * config/aarch64/arm_neon.h (__ST2_LANE_FUNC): Better model data size.
2275 (__ST3_LANE_FUNC): Likewise.
2276 (__ST4_LANE_FUNC): Likewise.
2278 2013-11-06 Nick Clifton <nickc@redhat.com>
2280 * config/msp430/msp430.h (TARGET_CPU_CPP_BUILTINS): Define the
2281 name returned by msp430_mcu_name.
2282 (LIB_SPEC): If a -T option has not been specified then set a
2283 default, mcu-specific, linker script.
2284 * config/msp430/t-msp430 (MULTILIB_MATCHES): Add more mcu names.
2285 * config/msp430/msp430.c (msp430x_names): Likewise.
2286 Alpha sort the names for ease of comparison.
2287 (msp430_mcu_name): New function: Returns a string suitable for
2288 use as a C preprocessor symbol based upon the name of the MCU
2290 (msp430_option_override): Accept msp430x and msp430xv2 as generic
2292 * config/msp430/msp430-protos.h (msp430_mcu_name): Prototype.
2294 * gcc.c (do_spec_1): Do not insert a space after a %* substitution
2295 unless it is the last part of a spec substring.
2296 * doc/invoke.texi (Spec Files): Document space insertion
2299 2013-11-06 Christian Bruel <christian.bruel@st.com>
2301 * config/sh/sh-mem.cc (sh_expand_cmpnstr, sh_expand_cmpstr):
2302 Factorize probabilities, Use adjust_address instead of
2303 adjust_automodify_address when possible. Enable for optimize.
2304 (sh_expand_strlen): New function.
2305 * config/sh/sh-protos.h (sh_expand_strlen): Declare.
2306 * config/sh/sh.md (strlensi): New pattern.
2307 (UNSPEC_BUILTIN_STRLEN): Define.
2309 2013-11-06 Jakub Jelinek <jakub@redhat.com>
2312 * expr.c (get_bit_range): Handle *offset == NULL_TREE.
2313 (expand_assignment): If *bitpos is negative, set *offset
2314 and adjust *bitpos, so that it is not negative.
2316 2013-11-06 Ganesh Gopalasubramanian <Ganesh.Gopalasubramanian@amd.com>
2318 * config/i386/bdver3.md : Added two additional decoder units
2319 to support issue rate of 4 and remodeled vector unit.
2320 * config/i386/i386.c (ix86_issue_rate): Issue rate for BD
2321 architectures is set to 4.
2322 * config/i386/i386.c (ia32_multipass_dfa_lookahead): DFA
2323 lookahead is set to 4 for BD architectures.
2325 2013-11-05 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
2327 * config/rs6000/rs6000.c (rs6000_option_override_internal):
2328 Remove restriction against use of VSX instructions when generating
2329 code for little endian mode.
2331 2013-11-05 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
2333 * config/rs6000/altivec.md (mulv4si3): Ensure we generate vmulouh
2334 for both big and little endian.
2335 (mulv8hi3): Swap input operands for merge high and merge low
2336 instructions for little endian.
2338 2013-11-05 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
2340 * config/rs6000/altivec.md (vec_widen_umult_even_v16qi): Change
2341 define_insn to define_expand that uses even patterns for big
2342 endian and odd patterns for little endian.
2343 (vec_widen_smult_even_v16qi): Likewise.
2344 (vec_widen_umult_even_v8hi): Likewise.
2345 (vec_widen_smult_even_v8hi): Likewise.
2346 (vec_widen_umult_odd_v16qi): Likewise.
2347 (vec_widen_smult_odd_v16qi): Likewise.
2348 (vec_widen_umult_odd_v8hi): Likewise.
2349 (vec_widen_smult_odd_v8hi): Likewise.
2350 (altivec_vmuleub): New define_insn.
2351 (altivec_vmuloub): Likewise.
2352 (altivec_vmulesb): Likewise.
2353 (altivec_vmulosb): Likewise.
2354 (altivec_vmuleuh): Likewise.
2355 (altivec_vmulouh): Likewise.
2356 (altivec_vmulesh): Likewise.
2357 (altivec_vmulosh): Likewise.
2359 2013-11-05 Mike Stump <mikestump@comcast.net>
2361 * Makefile.in (mostlyclean): Remove c-family objects.
2363 2013-11-05 Ian Lance Taylor <iant@google.com>
2365 * config/i386/sync.md (atomic_compare_and_swap<dwi>_doubleword):
2366 If possible, add .cfi directives to record change to bx.
2367 * config/i386/i386.c (ix86_emit_cfi): New function.
2368 * config/i386/i386-protos.h (ix86_emit_cfi): Declare.
2370 2013-11-05 Steven Bosscher <steven@gcc.gnu.org>
2372 * rtlanal.c (tablejump_p): Expect a JUMP_TABLE_DATA to always follow
2373 immediately after a label for a tablejump pattern.
2375 * config/arm/arm.c (is_jump_table): Remove.
2376 (create_fix_barrier): Use tablejump_p instead.
2377 (arm_reorg): Likewise.
2378 (thumb1_output_casesi): Expect JUMP_TABLE_DATA to always be NEXT_INSN.
2379 (thumb2_output_casesi): Likewise.
2380 * config/aarch64/aarch64.c (aarch64_output_casesi): Likewise.
2381 * config/sh/sh.md (casesi_worker_1, casesi_worker_2,
2382 casesi_shift_media, casesi_load_media): Likewise.
2383 * config/iq2000/iq2000.md: Likewise (in anonymous define_insn).
2384 * config/microblaze/microblaze.md: Likewise.
2386 2013-11-05 Tobias Burnus <burnus@net-b.de>
2388 * doc/invoke.texi (-Wdate-time): Document.
2390 2013-11-05 Richard Sandiford <rdsandiford@googlemail.com>
2392 * double-int.c (lshift_double, rshift_double): Remove
2393 SHIFT_COUNT_TRUNCATED handling.
2395 2013-11-05 Jeff Law <law@redhat.com>
2397 * Makefile.in (OBJS): Add gimple-ssa-isolate-paths.o
2398 * common.opt (-fisolate-erroneous-paths): Add option and documentation.
2399 * gimple-ssa-isolate-paths.c: New file.
2400 * gimple.c (check_loadstore): New function.
2401 (infer_nonnull_range): Moved into gimple.c from tree-vrp.c
2402 Verify OP is in the argument list and the argument corresponding
2403 to OP is a pointer type. Use operand_equal_p rather than
2404 pointer equality when testing if OP is on the nonnull list.
2405 Use check_loadstore rather than count_ptr_derefs. Handle
2406 GIMPLE_RETURN statements.
2407 * tree-vrp.c (infer_nonnull_range): Remove.
2408 * gimple.h (infer_nonnull_range): Declare.
2409 * opts.c (default_options_table): Add OPT_fisolate_erroneous_paths.
2410 * passes.def: Add pass_isolate_erroneous_paths.
2411 * timevar.def (TV_ISOLATE_ERRONEOUS_PATHS): New timevar.
2412 * tree-pass.h (make_pass_isolate_erroneous_paths): Declare.
2413 * tree-ssa.c (struct count_ptr_d): Remove.
2414 (count_ptr_derefs, count_uses_and_derefs): Remove.
2415 * tree-ssa.h (count_uses_and_derefs): Remove.
2417 2013-11-05 Jakub Jelinek <jakub@redhat.com>
2419 PR rtl-optimization/58997
2420 * loop-iv.c (iv_subreg): For IV_UNKNOWN_EXTEND, expect
2421 get_iv_value to be in iv->mode rather than iv->extend_mode.
2422 (iv_extend): Likewise. Otherwise, if iv->extend != extend,
2423 use lowpart_subreg on get_iv_value before calling simplify_gen_unary.
2424 * loop-unswitch.c (may_unswitch_on): Make sure op[i] is in the right
2427 2013-11-05 Andrew MacLeod <amacleod@redhat.com>
2429 * gimple.h: Move some prototypes to gimple-expr.h and add to include
2431 (extract_ops_from_tree, gimple_call_addr_fndecl, is_gimple_reg_type):
2432 Move to gimple-expr.h.
2433 * gimple-expr.h: New file. Relocate some prototypes from gimple.h.
2434 (types_compatible_p, is_gimple_reg_type, is_gimple_variable,
2435 is_gimple_id, virtual_operand_p, is_gimple_addressable,
2436 is_gimple_constant, extract_ops_from_tree, gimple_call_addr_fndecl):
2438 * gimple.c (extract_ops_from_tree_1, gimple_cond_get_ops_from_tree,
2439 gimple_set_body, gimple_body, gimple_has_body_p, is_gimple_lvalue,
2440 is_gimple_condexpr, is_gimple_addressable, is_gimple_constant,
2441 is_gimple_address, is_gimple_invariant_address,
2442 is_gimple_ip_invariant_address, is_gimple_min_invariant,
2443 is_gimple_ip_invariant, is_gimple_variable, is_gimple_id,
2444 virtual_operand_p, is_gimple_reg, is_gimple_val, is_gimple_asm_val,
2445 is_gimple_min_lval, is_gimple_call_addr, is_gimple_mem_ref_addr,
2446 gimple_decl_printable_name, useless_type_conversion_p,
2447 types_compatible_p, gimple_can_coalesce_p, copy_var_decl): Move to
2449 * gimple-expr.c: New File.
2450 (useless_type_conversion_p, gimple_set_body, gimple_body,
2451 gimple_has_body_p, gimple_decl_printable_name, copy_var_decl,
2452 gimple_can_coalesce_p, extract_ops_from_tree_1,
2453 gimple_cond_get_ops_from_tree, is_gimple_lvalue, is_gimple_condexpr,
2454 is_gimple_address, is_gimple_invariant_address,
2455 is_gimple_ip_invariant_address, is_gimple_min_invariant,
2456 is_gimple_ip_invariant, is_gimple_reg, is_gimple_val,
2457 is_gimple_asm_val, is_gimple_min_lval, is_gimple_call_addr,
2458 is_gimple_mem_ref_addr): Relocate here.
2459 * Makefile.in (OBJS): Add gimple-expr.o.
2461 2013-11-05 David Malcolm <dmalcolm@redhat.com>
2463 * gengtype-parse.c (struct_field_seq): Support empty structs.
2465 2013-11-05 Uros Bizjak <ubizjak@gmail.com>
2467 * config/i386/t-rtems (MULTILIB_MATCHES): Fix option typos.
2469 2013-11-05 Uros Bizjak <ubizjak@gmail.com>
2471 * config/i386/i386-c.c (ix86_target_macros): Define _SOFT_FLOAT
2473 * config/i386/rtemself.h (TARGET_OS_CPP_BUILTINS): Do not define
2475 (LONG_DOUBLE_TYPE_SIZE): New define.
2476 (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Ditto.
2478 2013-11-05 Paolo Carlini <paolo.carlini@oracle.com>
2481 * doc/extend.texi [visibility ("visibility_type")]: Add example
2482 about visibility attribute on namespace declaration.
2484 2013-11-05 Richard Biener <rguenther@suse.de>
2487 * passes.def (all_passes): Start with pass_fixup_cfg again.
2489 2013-11-05 Richard Biener <rguenther@suse.de>
2491 PR tree-optimization/58955
2492 * tree-loop-distribution.c (pg_add_dependence_edges): Fix
2495 2013-11-05 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
2497 * config/rs6000/vector.md (vec_pack_sfix_trunc_v2df): Adjust for
2499 (vec_pack_ufix_trunc_v2df): Likewise.
2501 2013-11-05 H.J. Lu <hongjiu.lu@intel.com>
2504 * doc/md.texi (@code{movmem@var{m}}): Specify Pmode as mode of
2505 pattern, instead of word_mode.
2507 * expr.c (emit_block_move_via_movmem): Don't use mode wider than
2509 (set_storage_via_setmem): Likewise.
2511 2013-11-05 Andrew MacLeod <amacleod@redhat.com>
2513 * tree-outof-ssa.c (queue_phi_copy_p): Combine phi_ssa_name_p from
2514 gimple.h and the rest of the condition in eliminate_build.
2515 (eliminate_build): Call new routine.
2516 * gimple.h (phi_ssa_name_p): Delete.
2518 2013-11-05 Trevor Saunders <tsaunders@mozilla.com>
2520 * vec.c (vec_prefix::calculate_allocation): Don't try to handle the
2521 case of no prefix and reserving zero slots, because when that's the
2522 case we'll never get here.
2523 * vec.h (va_heap::reserve): Don't try and handle
2524 vec_prefix::calculate_allocation returning zero because that should
2527 2013-11-05 Richard Biener <rguenther@suse.de>
2530 * tree-dfa.c (get_ref_base_and_extent): Merge common code
2531 in MEM_REF and TARGET_MEM_REF handling. Make sure to
2532 process trailing array detection before diving into the
2533 view-converted object (and possibly apply some extra offset).
2535 2013-11-05 Joseph Myers <joseph@codesourcery.com>
2537 * config/i386/i386.c (ix86_float_exceptions_rounding_supported_p):
2539 (TARGET_FLOAT_EXCEPTIONS_ROUNDING_SUPPORTED_P): Define.
2541 2013-11-05 Marc Glisse <marc.glisse@inria.fr>
2543 PR tree-optimization/58958
2544 * tree-ssa-alias.c (ao_ref_init_from_ptr_and_size): Use
2545 get_addr_base_and_unit_offset instead of get_ref_base_and_extent.
2547 2013-11-05 Marc Glisse <marc.glisse@inria.fr>
2549 * tree-ssa-alias.h (ranges_overlap_p): Handle negative offsets.
2550 * tree-ssa-alias.c (ao_ref_init_from_ptr_and_size): Likewise.
2552 2013-11-05 Jakub Jelinek <jakub@redhat.com>
2554 PR tree-optimization/58984
2555 * ipa-prop.c (ipa_load_from_parm_agg_1): Add SIZE_P argument,
2556 set *SIZE_P if non-NULL on success.
2557 (ipa_load_from_parm_agg, ipa_analyze_indirect_call_uses): Adjust
2559 (ipcp_transform_function): Likewise. Punt if size of access
2560 is different from TYPE_SIZE on v->value's type.
2562 2013-11-05 Tobias Burnus <burnus@net-b.de>
2564 * doc/invoke.texi (-fopenmp-simd): Document new option.
2565 * gimplify.c (gimplify_body): Accept -fopenmp-simd.
2566 * omp-low.c (execute_expand_omp, execute_lower_omp): Ditto.
2567 * tree.c (attribute_value_equal): Ditto.
2569 2013-11-04 Wei Mi <wmi@google.com>
2571 * sched-rgn.c (add_branch_dependences): Keep insns in
2572 a SCHED_GROUP at the end of BB to remain their location.
2574 2013-11-04 Wei Mi <wmi@google.com>
2576 * config/i386/i386.c (memory_address_length): Extract a part
2577 of code to rip_relative_addr_p.
2578 (rip_relative_addr_p): New Function.
2579 (ix86_macro_fusion_p): Ditto.
2580 (ix86_macro_fusion_pair_p): Ditto.
2581 * config/i386/i386.h: Add new tune features about macro-fusion.
2582 * config/i386/x86-tune.def (DEF_TUNE): Ditto.
2583 * doc/tm.texi: Generated.
2584 * doc/tm.texi.in: Ditto.
2585 * haifa-sched.c (try_group_insn): New Function.
2586 (group_insns_for_macro_fusion): Ditto.
2587 (sched_init): Call group_insns_for_macro_fusion.
2588 * target.def: Add two hooks: macro_fusion_p and
2589 macro_fusion_pair_p.
2591 2013-11-04 Kostya Serebryany <kcc@google.com>
2593 Update to match the changed asan API.
2594 * asan.c (asan_function_start): New function.
2595 (asan_emit_stack_protection): Update the string stored in the
2596 stack red zone to match new API. Store the PC of the current
2597 function in the red zone.
2598 (asan_global_struct): Update the __asan_global definition to match
2600 (asan_add_global): Ditto.
2601 * asan.h (asan_function_start): New prototype.
2602 * final.c (final_start_function): Call asan_function_start.
2603 * sanitizer.def (BUILT_IN_ASAN_INIT): Rename __asan_init_v1
2606 2013-11-04 Wei Mi <wmi@google.com>
2608 * config/i386/i386-c.c (ix86_target_macros_internal): Separate
2609 PROCESSOR_COREI7_AVX out from PROCESSOR_COREI7.
2610 * config/i386/i386.c (ix86_option_override_internal): Ditto.
2611 (ix86_issue_rate): Ditto.
2612 (ix86_adjust_cost): Ditto.
2613 (ia32_multipass_dfa_lookahead): Ditto.
2614 (ix86_sched_init_global): Ditto.
2615 (get_builtin_code_for_version): Ditto.
2616 * config/i386/i386.h (enum target_cpu_default): Ditto.
2617 (enum processor_type): Ditto.
2618 * config/i386/x86-tune.def (DEF_TUNE): Ditto.
2620 2013-11-04 Vladimir Makarov <vmakarov@redhat.com>
2622 PR rtl-optimization/58967
2623 * config/rs6000/rs6000.c (legitimate_lo_sum_address_p): Remove
2624 !lra_in_progress for mode sizes bigger word.
2626 2013-11-04 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
2628 * config/rs6000/altivec.md (vec_widen_umult_hi_v16qi): Swap
2629 arguments to merge instruction for little endian.
2630 (vec_widen_umult_lo_v16qi): Likewise.
2631 (vec_widen_smult_hi_v16qi): Likewise.
2632 (vec_widen_smult_lo_v16qi): Likewise.
2633 (vec_widen_umult_hi_v8hi): Likewise.
2634 (vec_widen_umult_lo_v8hi): Likewise.
2635 (vec_widen_smult_hi_v8hi): Likewise.
2636 (vec_widen_smult_lo_v8hi): Likewise.
2638 2013-11-04 Ian Lance Taylor <iant@google.com>
2640 * builtins.def (ATTR_NOTHROWCALL_LEAF_LIST): Define.
2641 * sync-builtins.def: Use ATTR_NOTHROWCALL_LEAF_LIST for all sync
2642 builtins that take pointers.
2643 * lto-opts.c (lto_write_options): Write -fnon-call-exceptions if set.
2644 * lto-wrapper.c (merge_and_complain): Collect OPT_fnon_call_exceptions.
2645 (run_gcc): Pass -fnon-call-exceptions.
2647 2013-11-04 Jakub Jelinek <jakub@redhat.com>
2649 * optabs.c (expand_vec_perm): Revert one incorrect line from
2652 PR tree-optimization/58978
2653 * tree-vrp.c (all_imm_uses_in_stmt_or_feed_cond): Don't modify
2654 use_stmt by single_imm_use directly. Only call single_imm_use
2657 2013-11-04 Vladimir Makarov <vmakarov@redhat.com>
2659 PR rtl-optimization/58968
2660 * lra-spills.c (return_regno_p): New function.
2661 (lra_final_code_change): Use it.
2663 2013-11-04 Joseph Myers <joseph@codesourcery.com>
2665 * doc/cpp.texi (__GCC_IEC_559, __GCC_IEC_559_COMPLEX): Document macros.
2666 * target.def (float_exceptions_rounding_supported_p): New hook.
2667 * targhooks.c (default_float_exceptions_rounding_supported_p): New
2669 * targhooks.h (default_float_exceptions_rounding_supported_p): Declare.
2670 * doc/tm.texi.in (TARGET_FLOAT_EXCEPTIONS_ROUNDING_SUPPORTED_P):
2672 * doc/tm.texi: Regenerate.
2673 * config.gcc (powerpc*-*-linux*): Set extra_objs.
2674 * config/rs6000/rs6000-linux.c: New file.
2675 * config/rs6000/rs6000-protos.h
2676 (rs6000_linux_float_exceptions_rounding_supported_p): Declare.
2677 * config/rs6000/linux.h
2678 (TARGET_FLOAT_EXCEPTIONS_ROUNDING_SUPPORTED_P): New macro.
2679 * config/rs6000/linux64.h
2680 (TARGET_FLOAT_EXCEPTIONS_ROUNDING_SUPPORTED_P): Likewise.
2681 * config/rs6000/t-linux (rs6000-linux.o): New rule.
2682 * config/rs6000/t-linux64 (rs6000-linux.o): Likewise.
2684 2013-11-04 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
2686 * config/rs6000/vsx.md (*vsx_le_perm_store_<mode> for VSX_D):
2687 Replace the define_insn_and_split with a define_insn and two
2688 define_splits, with the split after reload re-permuting the source
2689 register to its original value.
2690 (*vsx_le_perm_store_<mode> for VSX_W): Likewise.
2691 (*vsx_le_perm_store_v8hi): Likewise.
2692 (*vsx_le_perm_store_v16qi): Likewise.
2694 2013-11-04 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
2696 * config/rs6000/vector.md (vec_pack_trunc_v2df): Adjust for
2699 2013-11-04 Jakub Jelinek <jakub@redhat.com>
2701 PR tree-optimization/58946
2702 * tree-ssa-reassoc.c (maybe_optimize_range_tests): Update all
2703 bbs with bbinfo[idx].op != NULL before all blocks with
2704 bbinfo[idx].op == NULL.
2706 2013-11-04 Richard Sandiford <rdsandiford@googlemail.com>
2708 * config/avr/avr-log.c (avr_double_int_pop_digit): Delete.
2709 (avr_dump_double_int_hex): Likewise.
2710 (avr_log_vadump): Remove %D and %X handling.
2711 * config/avr/avr.c (avr_double_int_push_digit): Delete.
2712 (avr_map_op_t): Change map from double_int to unsigned int.
2713 (avr_map_op): Update accordingly.
2714 (avr_map, avr_map_metric, avr_has_nibble_0xf, avr_map_decompose)
2715 (avr_move_bits, avr_out_insert_bits, avr_fold_builtin): Operate on
2716 unsigned ints rather than double_ints.
2718 2013-11-03 Marek Polacek <polacek@redhat.com>
2720 Implement -fsanitize=vla-bound.
2721 * opts.c (common_handle_option): Handle vla-bound.
2722 * sanitizer.def (BUILT_IN_UBSAN_HANDLE_VLA_BOUND_NOT_POSITIVE): Define.
2723 * flag-types.h (enum sanitize_code): Add SANITIZE_VLA.
2724 * asan.c (initialize_sanitizer_builtins): Build BT_FN_VOID_PTR_PTR.
2726 2013-11-02 Bill Schmidt <wschmidt@vnet.linux.ibm.com>
2728 * config/rs6000/rs6000.c (rs6000_expand_vector_set): Adjust for
2731 2013-11-02 Uros Bizjak <ubizjak@gmail.com>
2733 * config/i386/constraints.md (Ts, Tv): New address constrains.
2734 * config/i386/i386.md (*lea<mode>, *<mode>_<bndcheck>): Use Ts
2735 constraint for address_no_seg_operand.
2736 * config/i386/sse.md (*avx512pf_gatherpf<mode>_mask)
2737 (*avx512pf_gatherpf<mode>, *avx512pf_scatterpf<mode>_mask)
2738 (*avx512pf_scatterpf<mode>, *avx2_gathersi<mode>)
2739 (*avx2_gathersi<mode>_2, *avx2_gatherdi<mode>, *avx2_gatherdi<mode>_2)
2740 (*avx2_gatherdi<mode>_3, *avx2_gatherdi<mode>_4)
2741 (*avx512f_gathersi<mode>, *avx512f_gathersi<mode>_2)
2742 (*avx512f_gatherdi<mode>, *avx512f_gatherdi<mode>_2)
2743 (*avx512f_scattersi<mode> *avx512f_scatterdi<mode>): Use Tv
2744 constraint for vsib_address_operand.
2746 2013-11-02 Steven Bosscher <steven@gcc.gnu.org>
2748 * gcse.c (pre_delete): Remove references to regmove from comments.
2749 * recog.c: (validate_replace_rtx_1): Likewise.
2750 * config/rl78/rl78.c: Likewise.
2751 * config/v850/v850.h: Likewise, and remove unused ENABLE_REGMOVE_PASS.
2752 * common/config/m32r/m32r-common.c: Don't manipulate OPT_fregmove.
2753 * common/config/mmix/mmix-common.c: Likewise.
2755 2013-11-01 Trevor Saunders <tsaunders@mozilla.com>
2757 * function.c (reorder_blocks): Convert block_stack to a stack_vec.
2758 * gimplify.c (gimplify_compound_lval): Likewise.
2759 * graphite-clast-to-gimple.c (gloog): Likewise.
2760 * graphite-dependences.c (loop_is_parallel_p): Likewise.
2761 * graphite-scop-detection.c (scopdet_basic_block_info): Likewise.
2762 (limit_scop); Likewise.
2763 (build_scops): Likewise.
2764 (dot_scop): Likewise.
2765 * graphite-sese-to-poly.c (sese_dom_walker): Likewise.
2766 (build_scop_drs): Likewise.
2767 (insert_stmts): Likewise.
2768 (insert_out_of_ssa_copy): Likewise.
2769 (remove_phi): Likewise.
2770 (rewrite_commutative_reductions_out_of_ssa_close_phi): Likewise.
2771 * hw-doloop.c (discover_loop): Likewise.
2772 * tree-call-cdce.c (shrink_wrap_one_built_in_call): Likewise.
2773 * tree-dfa.c (dump_enumerated_decls): Likewise.
2774 * tree-if-conv.c (if_convertable_loop_p): Likewise.
2775 * tree-inline.c (tree_function_versioning): Likewise.
2776 * tree-loop-distribution.c (build_rdg): Likewise.
2777 (rdg_flag_vertex_and_dependent): Likewise.
2778 (distribute_loop): Likewise.
2779 * tree-parloops.c (loop_parallel_p): Likewise.
2780 (eliminate_local_variables): Likewise.
2781 (separate_decls_in_region): Likewise.
2782 * tree-predcom.c (tree_predictive_commoning_loop): Likewise.
2783 * tree-ssa-phiopt.c (cond_if_else_store_replacement): Likewise.
2784 * tree-ssa-uncprop.c (uncprop_dom_walker): Likewise.
2785 * tree-vect-loop.c (vect_analyze_scaler_cycles_1): Likewise.
2786 * tree-vect-patterns.c (vect_pattern_recog): Likewise.
2787 * tree-vect-stmts.c (vect_mark_stmts_to_be_vectorized): Likewise.
2788 (vectorizable_condition): Likewise.
2790 2013-11-01 Uros Bizjak <ubizjak@gmail.com>
2792 * configure.ac (HAVE_AS_IX86_INTERUNIT_MOVQ): Always define as 0/1.
2793 * configure: Regenerate.
2794 * config/i386/i386.md (*movdi_internal): Change
2795 HAVE_AS_IX86_INTERUNIT_MOVQ to runtime check.
2796 (*movdf_internal): Ditto.
2797 * config/i386/mmx.md (*mov<mode>_internal): Ditto.
2798 * config/i386/sse.md (vec_concatv2di): Output interunit movq
2799 for HAVE_AS_IX86_INTERUNIT_MOVQ targets.
2801 2013-10-31 Robert Suchanek <Robert.Suchanek@imgtec.com>
2803 * lra-spills.c (assign_spill_hard_regs): Remove statement terminator
2806 2013-10-31 David Malcolm <dmalcolm@redhat.com>
2808 Automated part of renaming of symtab_node_base to symtab_node.
2810 Patch autogenerated by rename_symtab.py from
2811 https://github.com/davidmalcolm/gcc-refactoring-scripts
2812 revision 58bb219cc090b2f4516a9297d868c245495ee622
2813 with ChangeLog entry fixed up by hand.
2815 * cgraph.c (x_cgraph_nodes_queue): Rename symtab_node_base to
2817 (cgraph_node_for_asm): Likewise.
2818 * cgraph.h (symtab_node_base): Likewise.
2819 (cgraph_node): Likewise.
2820 (varpool_node): Likewise.
2821 (is_a_helper <cgraph_node>::test): Likewise.
2822 (is_a_helper <varpool_node>::test): Likewise.
2823 (symtab_nodes): Likewise.
2824 (symtab_register_node): Likewise.
2825 (symtab_unregister_node): Likewise.
2826 (symtab_remove_node): Likewise.
2827 (symtab_get_node): Likewise.
2828 (symtab_node_for_asm): Likewise.
2829 (symtab_node_asm_name): Likewise.
2830 (symtab_node_name): Likewise.
2831 (symtab_insert_node_to_hashtable): Likewise.
2832 (symtab_add_to_same_comdat_group): Likewise.
2833 (symtab_dissolve_same_comdat_group_list): Likewise.
2834 (dump_symtab_node): Likewise.
2835 (debug_symtab_node): Likewise.
2836 (dump_symtab_base): Likewise.
2837 (verify_symtab_node): Likewise.
2838 (verify_symtab_base): Likewise.
2839 (symtab_used_from_object_file_p): Likewise.
2840 (symtab_alias_ultimate_target): Likewise.
2841 (symtab_resolve_alias): Likewise.
2842 (fixup_same_cpp_alias_visibility): Likewise.
2843 (symtab_for_node_and_aliases): Likewise.
2844 (symtab_nonoverwritable_alias): Likewise.
2845 (availability symtab_node_availability): Likewise.
2846 (symtab_semantically_equivalent_p): Likewise.
2847 (fixup_same_cpp_alias_visibility): Likewise.
2848 (symtab_prevail_in_asm_name_hash): Likewise.
2850 (varpool): Likewise.
2851 (varpool_first_variable): Likewise.
2852 (varpool_next_variable): Likewise.
2853 (varpool_first_static_initializer): Likewise.
2854 (varpool_next_static_initializer): Likewise.
2855 (varpool_first_defined_variable): Likewise.
2856 (varpool_next_defined_variable): Likewise.
2857 (cgraph_first_defined_function): Likewise.
2858 (cgraph_next_defined_function): Likewise.
2859 (cgraph_first_function): Likewise.
2860 (cgraph_next_function): Likewise.
2861 (cgraph_first_function_with_gimple_body): Likewise.
2862 (cgraph_next_function_with_gimple_body): Likewise.
2863 (symtab_alias_target): Likewise.
2864 (symtab_real_symbol_p): Likewise.
2865 (symtab_can_be_discarded): Likewise.
2866 * cgraphbuild.c (mark_address): Likewise.
2867 (mark_load): Likewise.
2868 (mark_store): Likewise.
2869 * cgraphunit.c (decide_is_symbol_needed): Likewise.
2871 (enqueue_node): Likewise.
2872 (referred_to_p): Likewise.
2873 (cgraph_process_same_body_aliases): Likewise.
2874 (analyze_functions): Likewise.
2875 (handle_alias_pairs): Likewise.
2876 (output_weakrefs): Likewise.
2877 (compile): Likewise.
2878 * gimple-fold.c (can_refer_decl_in_current_unit_p): Likewise.
2879 * ipa-inline-analysis.c (inline_write_summary): Likewise.
2880 * ipa-prop.c (remove_described_reference): Likewise.
2881 (try_decrement_rdesc_refcount): Likewise.
2882 (ipa_edge_duplication_hook): Likewise.
2883 * ipa-ref.c (ipa_record_reference): Likewise.
2884 (ipa_maybe_record_reference): Likewise.
2885 (ipa_clone_ref): Likewise.
2886 (ipa_clone_references): Likewise.
2887 (ipa_clone_referring): Likewise.
2888 (ipa_find_reference): Likewise.
2889 (ipa_remove_stmt_references): Likewise.
2890 (ipa_clear_stmts_in_references): Likewise.
2891 * ipa-ref.h (symtab_node_base): Likewise.
2892 (ipa_ref): Likewise.
2893 (ipa_record_reference): Likewise.
2894 (ipa_maybe_record_reference): Likewise.
2895 (ipa_clone_references): Likewise.
2896 (ipa_clone_referring): Likewise.
2897 (ipa_clone_ref): Likewise.
2898 (ipa_find_reference): Likewise.
2899 (ipa_remove_stmt_references): Likewise.
2900 (ipa_clear_stmts_in_references): Likewise.
2901 * ipa-reference.c (ipa_reference_write_optimization_summary):
2903 * ipa.c (enqueue_node): Likewise.
2904 (process_references): Likewise.
2905 (walk_polymorphic_call_targets): Likewise.
2906 (symtab_remove_unreachable_nodes): Likewise.
2907 (address_taken_from_non_vtable_p): Likewise.
2908 (comdat_can_be_unshared_p_1): Likewise.
2909 (comdat_can_be_unshared_p): Likewise.
2910 (can_replace_by_local_alias): Likewise.
2911 (function_and_variable_visibility): Likewise.
2912 * is-a.h: Likewise (within example in comment).
2913 * lto-cgraph.c (input_cgraph_opt_summary): Likewise.
2914 (lto_symtab_encoder_encode): Likewise.
2915 (lto_symtab_encoder_delete_node): Likewise.
2916 (lto_symtab_encoder_in_partition_p): Likewise.
2917 (lto_set_symtab_encoder_in_partition): Likewise.
2918 (output_refs): Likewise.
2919 (compute_ltrans_boundary): Likewise.
2920 (output_symtab): Likewise.
2921 (input_node): Likewise.
2922 (input_ref): Likewise.
2923 (input_edge): Likewise.
2924 (input_cgraph_1): Likewise.
2925 (input_refs): Likewise.
2926 (output_cgraph_opt_summary): Likewise.
2927 (input_node_opt_summary): Likewise.
2928 (input_cgraph_opt_section): Likewise.
2929 * lto-section-in.c (lto_free_function_in_decl_state_for_node):
2931 * lto-streamer-out.c (lto_output): Likewise.
2932 (output_symbol_p): Likewise.
2933 (produce_symtab): Likewise.
2934 * lto-streamer.h (lto_encoder_entry): Likewise.
2935 (lto_free_function_in_decl_state_for_node): Likewise.
2936 (lto_symtab_encoder_encode): Likewise.
2937 (lto_symtab_encoder_delete_node): Likewise.
2938 (lto_symtab_encoder_in_partition_p): Likewise.
2939 (lto_set_symtab_encoder_in_partition): Likewise.
2940 (lto_symtab_encoder_lookup): Likewise.
2941 (lsei_node): Likewise.
2942 (lto_symtab_encoder_deref): Likewise.
2943 * symtab.c (symtab_hash): Likewise.
2944 (assembler_name_hash): Likewise.
2945 (symtab_nodes): Likewise.
2946 (hash_node): Likewise.
2947 (eq_node): Likewise.
2948 (hash_node_by_assembler_name): Likewise.
2949 (eq_assembler_name): Likewise.
2950 (insert_to_assembler_name_hash): Likewise.
2951 (unlink_from_assembler_name_hash): Likewise.
2952 (symtab_prevail_in_asm_name_hash): Likewise.
2953 (symtab_register_node): Likewise.
2954 (symtab_insert_node_to_hashtable): Likewise.
2955 (symtab_unregister_node): Likewise.
2956 (symtab_get_node): Likewise.
2957 (symtab_remove_node): Likewise.
2958 (symtab_initialize_asm_name_hash): Likewise.
2959 (symtab_node_for_asm): Likewise.
2960 (symtab_add_to_same_comdat_group): Likewise.
2961 (symtab_dissolve_same_comdat_group_list): Likewise.
2962 (symtab_node_asm_name): Likewise.
2963 (symtab_node_name): Likewise.
2964 (dump_symtab_base): Likewise.
2965 (dump_symtab_node): Likewise.
2966 (dump_symtab): Likewise.
2967 (debug_symtab_node): Likewise.
2968 (verify_symtab_base): Likewise.
2969 (verify_symtab_node): Likewise.
2970 (verify_symtab): Likewise.
2971 (symtab_used_from_object_file_p): Likewise.
2972 (symtab_node_availability): Likewise.
2973 (symtab_alias_ultimate_target): Likewise.
2974 (fixup_same_cpp_alias_visibility): Likewise.
2975 (symtab_resolve_alias): Likewise.
2976 (symtab_for_node_and_aliases): Likewise.
2977 (symtab_for_node_and_aliases): Likewise.
2978 (symtab_nonoverwritable_alias_1): Likewise.
2979 (symtab_nonoverwritable_alias): Likewise.
2980 (symtab_semantically_equivalent_p): Likewise.
2981 * value-prof.c (init_node_map): Likewise.
2982 * varasm.c (find_decl): Likewise.
2983 * varpool.c (varpool_node_for_asm): Likewise.
2984 (varpool_remove_unreferenced_decls): Likewise.
2986 2013-10-31 David Malcolm <dmalcolm@redhat.com>
2988 Manual part of renaming of symtab_node_base to symtab_node.
2990 * ipa-ref.h (symtab_node): Remove typedef to pointer type, as it
2991 clashes with the preferred name for the base class.
2992 (const_symtab_node): Remove redundant typedef.
2994 2013-10-31 Jakub Jelinek <jakub@redhat.com>
2996 * optabs.c (expand_vec_perm): Avoid vector mode punning
2997 SUBREGs in SET_DEST.
2998 * expmed.c (store_bit_field_1): Likewise.
2999 * config/i386/sse.md (movdi_to_sse, vec_pack_sfix_trunc_v2df,
3000 vec_pack_sfix_v2df, vec_shl_<mode>, vec_shr_<mode>,
3001 vec_interleave_high<mode>, vec_interleave_low<mode>): Likewise.
3002 * config/i386/i386.c (ix86_expand_vector_move_misalign,
3003 ix86_expand_sse_movcc, ix86_expand_int_vcond, ix86_expand_vec_perm,
3004 ix86_expand_sse_unpack, ix86_expand_args_builtin,
3005 ix86_expand_vector_init_duplicate, ix86_expand_vector_set,
3006 emit_reduc_half, expand_vec_perm_blend, expand_vec_perm_pshufb,
3007 expand_vec_perm_interleave2, expand_vec_perm_pshufb2,
3008 expand_vec_perm_vpshufb2_vpermq,
3009 expand_vec_perm_vpshufb2_vpermq_even_odd, expand_vec_perm_even_odd_1,
3010 expand_vec_perm_broadcast_1, expand_vec_perm_vpshufb4_vpermq2,
3011 ix86_expand_sse2_mulv4si3, ix86_expand_pinsr): Likewise.
3012 (expand_vec_perm_palignr): Likewise. Modify a copy of *d rather
3015 2013-10-31 Uros Bizjak <ubizjak@gmail.com>
3017 * config/i386/i386.c (ix86_expand_sse2_abs): Rename function arguments.
3018 Use gcc_unreachable for unhandled modes. Do not check results of
3019 expand_simple_binop. If not expanded to target, move the result.
3021 2013-10-31 Chung-Ju Wu <jasonwucj@gmail.com>
3022 Shiva Chen <shiva0217@gmail.com>
3024 * config.gcc (nds32*-*-*): Add nds32 target.
3025 * config/nds32/nds32.c: New file.
3026 * config/nds32/nds32.h: New file.
3027 * config/nds32/nds32.md: New file.
3028 * config/nds32/constants.md: New file.
3029 * config/nds32/constraints.md: New file.
3030 * config/nds32/iterators.md: New file.
3031 * config/nds32/nds32-doubleword.md: New file.
3032 * config/nds32/nds32-intrinsic.md: New file.
3033 * config/nds32/nds32_intrinsic.h: New file.
3034 * config/nds32/nds32-modes.def: New file.
3035 * config/nds32/nds32-multiple.md: New file.
3036 * config/nds32/nds32.opt: New file.
3037 * config/nds32/nds32-opts.h: New file.
3038 * config/nds32/nds32-protos.h: New file.
3039 * config/nds32/nds32-peephole2.md: New file.
3040 * config/nds32/pipelines.md: New file.
3041 * config/nds32/predicates.md: New file.
3042 * config/nds32/t-mlibs: New file.
3043 * common/config/nds32: New directory and files.
3045 * doc/invoke.texi (NDS32 options): Document nds32 specific options.
3046 * doc/md.texi (NDS32 family): Document nds32 specific constraints.
3047 * doc/install.texi (Cross-Compiler-Specific Options): Document
3048 --with-nds32-lib for nds32 target.
3049 * doc/extend.texi (Function Attributes, Target Builtins): Document
3050 nds32 specific attributes.
3052 2013-10-31 Vladimir Makarov <vmakarov@redhat.com>
3054 * lra-constraints (process_alt_operands): Use the result
3055 elimination register for operand when matching constraints.
3057 2013-10-31 Jakub Jelinek <jakub@redhat.com>
3059 * tree-vrp.c (maybe_set_nonzero_bits): New function.
3060 (remove_range_assertions): Call it.
3062 * tree.c (tree_ctz): New function.
3063 * tree.h (tree_ctz): New prototype.
3064 * tree-ssanames.h (get_range_info, get_nonzero_bits): Change
3065 first argument from tree to const_tree.
3066 * tree-ssanames.c (get_range_info, get_nonzero_bits): Likewise.
3067 * tree-vectorizer.h (vect_generate_tmps_on_preheader): New prototype.
3068 * tree-vect-loop-manip.c (vect_generate_tmps_on_preheader): No longer
3070 * expr.c (highest_pow2_factor): Reimplemented using tree_ctz.
3071 * tree-vect-loop.c (vect_analyze_loop_operations,
3072 vect_transform_loop): Don't force scalar loop for bound just because
3073 number of iterations is unknown, only do it if it is not known to be
3074 a multiple of vectorization_factor.
3075 * builtins.c (get_object_alignment_2): Use tree_ctz on offset.
3077 * gimple-pretty-print.c (dump_ssaname_info): Print newline also
3078 in case of VR_VARYING. Print get_nonzero_bits if not all ones.
3079 * tree-ssanames.h (struct range_info_def): Add nonzero_bits field.
3080 (set_nonzero_bits, get_nonzero_bits): New prototypes.
3081 * tree-ssa-ccp.c (get_default_value): Use get_range_info to see if
3082 a default def isn't partially constant.
3083 (ccp_finalize): If after IPA, set_range_info if integral SSA_NAME
3084 is known to be partially zero.
3085 (evaluate_stmt): If we'd return otherwise VARYING, use get_range_info
3086 to see if a default def isn't partially constant.
3087 * tree-ssanames.c (set_range_info): Initialize nonzero_bits upon
3088 creation of a range, if VR_RANGE, try to improve nonzero_bits from
3090 (set_nonzero_bits, get_nonzero_bits): New functions.
3092 * tree-cfg.c (assert_unreachable_fallthru_edge_p): New function.
3093 * tree-cfg.h (assert_unreachable_fallthru_edge_p): New prototype.
3094 * tree-vrp.c (all_imm_uses_in_stmt_or_feed_cond): New function.
3095 (remove_range_assertions): If ASSERT_EXPR_VAR has no other immediate
3096 uses but in the condition and ASSERT_EXPR and the other successor of
3097 the predecessor bb is __builtin_unreachable (), set_range_info of the
3098 ASSERT_EXPR_VAR to the range info of the ASSERT_EXPR's lhs.
3100 2013-10-31 Martin Jambor <mjambor@suse.cz>
3102 PR rtl-optimization/58934
3104 2013-10-30 Martin Jambor <mjambor@suse.cz>
3105 PR rtl-optimization/10474
3106 * ira.c (find_moveable_pseudos): Do not calculate dominance info
3108 (interesting_dest_for_shprep): New function.
3109 (split_live_ranges_for_shrink_wrap): Likewise.
3110 (ira): Calculate dominance info and df analysis. Call
3111 split_live_ranges_for_shrink_wrap.
3113 2013-10-31 Richard Sandiford <rsandifo@linux.vnet.ibm.com>
3114 Yury Gribov <y.gribov@samsung.com>
3117 * asan.c (asan_clear_shadow): Allocate a new vreg for temporary
3118 shadow pointer to avoid clobbering the main one.
3120 2013-10-31 Zhenqiang Chen <zhenqiang.chen@linaro.org>
3122 * lower-subreg.c (resolve_simple_move): Copy REG_INC note.
3124 2013-10-30 Vladimir Makarov <vmakarov@redhat.com>
3127 * ira-color.c (update_costs_from_copies): Add new parameter. Use
3128 it for calling update_costs_from_allocno.
3129 (assign_hard_reg): Call restore_costs_from_copies only for
3130 !retry_p. Pass new argument to update_costs_from_copies.
3131 (color_pass): Pass new argument to update_costs_from_copies.
3132 (ira_mark_allocation_change): Ditto.
3134 2013-10-30 Sharad Singhai <singhai@google.com>
3137 * opts.c (common_handle_option): Remove deprecated option
3138 -ftree-vectorizer-verbose.
3139 * doc/invoke.texi (Debugging Options): Ditto.
3140 * opts-global.c (handle_common_deferred_options): Ditto.
3141 (dump_remap_tree_vectorizer_verbose): Delete.
3142 * common.opt: Set -ftree-vectorizer-verbose as an ignored option.
3144 2013-10-30 DJ Delorie <dj@redhat.com>
3146 * config/rx/rx.c (ADD_RX_BUILTIN0): New macro, used for builtins
3147 that take no arguments.
3149 2013-10-30 Joern Rennecke <joern.rennecke@embecosm.com>
3152 * reload1.c (update_eliminables_and_spill): New function, broken
3154 (reload): Use it. Check for frame size change after frame size
3155 alignment, and call update_eliminables_and_spill first if continue-ing.
3157 2013-10-30 Cong Hou <congh@google.com>
3160 * config/i386/i386-protos.h (ix86_expand_sse2_abs): New function.
3161 * config/i386/i386.c (ix86_expand_sse2_abs): New function.
3162 * config/i386/sse.md: Add SSE2 support to abs (8/16/32-bit-int).
3164 2013-10-18 Mikael Pettersson <mikpelinux@gmail.com>
3166 PR rtl-optimization/58369
3167 * reload1.c (compute_reload_subreg_offset): New function.
3168 (choose_reload_regs): Use it to pass endian-correct
3169 offset to subreg_regno_offset.
3171 2013-10-30 Tobias Burnus <burnus@net-b.de>
3174 * tree-cfg.c (replace_loop_annotate): Replace warning by
3177 2013-10-30 Jason Merrill <jason@redhat.com>
3179 * configure.ac (loose_warn): Add -Wno-format if
3180 --disable-build-format-warnings.
3182 2013-10-30 David Malcolm <dmalcolm@redhat.com>
3184 * cgraphunit.c (analyze_functions): Split symtab_node declarations
3185 onto multiple lines to make things easier for rename_symtab.py.
3187 * symtab.c (symtab_dissolve_same_comdat_group_list): Likewise.
3188 (symtab_semantically_equivalent_p): Likewise.
3190 2013-10-30 Vladimir Makarov <vmakarov@redhat.com>
3193 * lra.c (check_rtl): Remove address check before LRA work.
3195 2013-10-30 Marc Glisse <marc.glisse@inria.fr>
3197 * tree-ssa-alias.c (ao_ref_init_from_ptr_and_size): Look for a
3198 POINTER_PLUS_EXPR in the defining statement.
3200 2013-10-30 Vladimir Makarov <vmakarov@redhat.com>
3202 * regmove.c: Remove.
3203 * tree-pass.h (make_pass_regmove): Remove.
3204 * timevar.def (TV_REGMOVE): Remove.
3205 * passes.def (pass_regmove): Remove.
3206 * opts.c (default_options_table): Remove entry for regmove.
3207 * doc/passes.texi: Remove regmove pass description.
3208 * doc/invoke.texi (-foptimize-register-move, -fregmove): Remove
3210 (-fdump-rtl-regmove): Ditto.
3211 * common.opt (foptimize-register-move, fregmove): Ignore.
3212 * Makefile.in (OBJS): Remove regmove.o.
3213 * regmove.c: Remove.
3214 * ira-int.h (struct ira_allocno_pref, ira_pref_t): New structure
3216 (struct ira_allocno) New member allocno_prefs.
3217 (ALLOCNO_PREFS): New macro.
3218 (ira_prefs, ira_prefs_num): New external vars.
3219 (ira_setup_alts, ira_get_dup_out_num, ira_debug_pref): New prototypes.
3220 (ira_debug_prefs, ira_debug_allocno_prefs, ira_create_pref): Ditto.
3221 (ira_add_allocno_pref, ira_remove_pref, ira_remove_allocno_prefs):
3223 (ira_add_allocno_copy_to_list): Remove prototype.
3224 (ira_swap_allocno_copy_ends_if_necessary): Ditto.
3225 (ira_pref_iterator): New type.
3226 (ira_pref_iter_init, ira_pref_iter_cond): New functions.
3227 (FOR_EACH_PREF): New macro.
3228 * ira.c (commutative_constraint_p): Move from ira-conflicts.c.
3229 (ira_get_dup_out_num): Ditto. Rename from get_dup_num. Modify the
3231 (ira_setup_alts): New function.
3232 (decrease_live_ranges_number): New function.
3233 (ira): Call the above function.
3234 * ira-build.c (ira_prefs, ira_prefs_num): New global vars.
3235 (ira_create_allocno): Initialize allocno prefs.
3236 (pref_pool, pref_vec): New static vars.
3237 (initiate_prefs, find_allocno_pref, ira_create_pref): New
3239 (add_allocno_pref_to_list, ira_add_allocno_pref, print_pref): Ditto.
3240 (ira_debug_pref, print_prefs, ira_debug_prefs): Ditto.
3241 (print_allocno_prefs, ira_debug_allocno_prefs, finish_pref): Ditto.
3242 (ira_remove_pref, ira_remove_allocno_prefs, finish_prefs): Ditto.
3243 (ira_add_allocno_copy_to_list): Make static. Rename to
3244 add_allocno_copy_to_list.
3245 (ira_swap_allocno_copy_ends_if_necessary): Make static. Rename to
3246 swap_allocno_copy_ends_if_necessary.
3247 (remove_unnecessary_allocnos, remove_low_level_allocnos): Call
3248 ira_remove_allocno_prefs.
3249 (ira_flattening): Ditto.
3250 (ira_build): Call initiate_prefs, print_prefs.
3251 (ira_destroy): Call finish_prefs.
3252 * ira-color.c (struct update_cost_record): New.
3253 (struct allocno_color_data): Add new member update_cost_records.
3254 (update_cost_record_pool): New static var.
3255 (init_update_cost_records, get_update_cost_record): New functions.
3256 (free_update_cost_record_list, finish_update_cost_records): Ditto.
3257 (struct update_cost_queue_elem): Add member from.
3258 (initiate_cost_update): Call init_update_cost_records.
3259 (finish_cost_update): Call finish_update_cost_records.
3260 (queue_update_cost, get_next_update_cost): Add new param from.
3261 (Update_allocno_cost, update_costs_from_allocno): New functions.
3262 (update_costs_from_prefs): Ditto.
3263 (update_copy_costs): Rename to update_costs_from_copies.
3264 (restore_costs_from_copies): New function.
3265 (update_conflict_hard_regno_costs): Don't go back.
3266 (assign_hard_reg): Call restore_costs_from_copies. Add printing
3268 (pop_allocnos): Add priniting more debug info.
3269 (color_allocnos): Remove prefs for conflicting hard regs.
3270 Call update_costs_from_prefs.
3271 * ira-conflicts.c (commutative_constraint_p): Move to ira.c
3272 (get_dup_num): Rename, modify, and move to ira.c
3273 (process_regs_for_copy): Add prefs.
3274 (add_insn_allocno_copies): Put src as first arg of
3275 process_regs_for_copy. Remove dead code. Call ira_setup_alts.
3276 * ira-costs.c (record_reg_classes): Modify and move code into
3277 record_operands_costs.
3278 (find_costs_and_classes): Create prefs for the hard reg of small
3280 (process_bb_node_for_hard_reg_moves): Add prefs.
3282 2013-10-30 Richard Biener <rguenther@suse.de>
3285 * basic-block.h (pre_and_rev_post_order_compute_fn): New function.
3286 * cfganal.c (pre_and_rev_post_order_compute_fn): New function
3288 (pre_and_rev_post_order_compute): ... which now wraps it.
3289 * graph.c (draw_cfg_nodes_no_loops): Use
3290 pre_and_rev_post_order_compute_fn to avoid ICEing and dependence
3293 2013-10-30 Christian Bruel <christian.bruel@st.com>
3295 * config/sh/sh-mem.cc (sh_expand_cmpnstr): New function.
3296 (sh_expand_cmpstr): Handle known align and schedule improvements.
3297 * config/sh/sh-protos.h (sh_expand_cmpstrn): Declare.
3298 * config/sh/sh.md (cmpstrnsi): New pattern.
3300 2013-10-30 Martin Jambor <mjambor@suse.cz>
3302 PR rtl-optimization/10474
3303 * ira.c (find_moveable_pseudos): Do not calculate dominance info
3305 (interesting_dest_for_shprep): New function.
3306 (split_live_ranges_for_shrink_wrap): Likewise.
3307 (ira): Calculate dominance info and df analysis. Call
3308 split_live_ranges_for_shrink_wrap.
3310 2013-10-30 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
3313 * config/arm/arm.c (arm_expand_epilogue_apcs_frame): Emit blockage.
3315 2013-10-30 Ilya Enkovich <ilya.enkovich@intel.com>
3317 * tree-core.h (tree_index): Add TI_POINTER_BOUNDS_TYPE.
3318 * tree.h (POINTER_BOUNDS_P): New.
3319 (BOUNDED_TYPE_P): New.
3321 (pointer_bounds_type_node): New.
3322 * tree.c (build_common_tree_nodes): Initialize
3323 pointer_bounds_type_node.
3324 * gimple.h (gimple_call_get_nobnd_arg_index): New.
3325 (gimple_call_num_nobnd_args): New.
3326 (gimple_call_nobnd_arg): New.
3327 (gimple_return_retbnd): New.
3328 (gimple_return_set_retbnd): New
3329 * gimple.c (gimple_build_return): Increase number of ops
3330 for return statement.
3331 (gimple_call_get_nobnd_arg_index): New.
3332 * gimple-pretty-print.c (dump_gimple_return): Print second op.
3334 2013-10-30 Ilya Enkovich <ilya.enkovich@intel.com>
3336 * ipa.c (cgraph_build_static_cdtor_1): Support contructors
3337 with "chkp ctor" and "bnd_legacy" attributes.
3338 * gimplify.c (gimplify_init_constructor): Avoid infinite
3339 loop during gimplification of bounds initializer.
3341 2013-10-30 Ilya Enkovich <ilya.enkovich@intel.com>
3343 * c-family/c-common.c (handle_bnd_variable_size_attribute): New.
3344 (handle_bnd_legacy): New.
3345 (c_common_attribute_table): Add bnd_variable_size and bnd_legacy.
3346 * doc/extend.texi: Document bnd_variable_size and bnd_legacy
3349 2013-10-29 Ilya Enkovich <ilya.enkovich@intel.com>
3351 * builtin-types.def (BT_FN_VOID_CONST_PTR): New.
3352 (BT_FN_PTR_CONST_PTR): New.
3353 (BT_FN_CONST_PTR_CONST_PTR): New.
3354 (BT_FN_PTR_CONST_PTR_SIZE): New.
3355 (BT_FN_PTR_CONST_PTR_CONST_PTR): New.
3356 (BT_FN_VOID_PTRPTR_CONST_PTR): New.
3357 (BT_FN_VOID_CONST_PTR_SIZE): New.
3358 (BT_FN_PTR_CONST_PTR_CONST_PTR_SIZE): New.
3359 * chkp-builtins.def: New.
3360 * builtins.def: include chkp-builtins.def.
3361 (DEF_CHKP_BUILTIN): New.
3362 * builtins.c (expand_builtin): Support BUILT_IN_CHKP_INIT_PTR_BOUNDS,
3363 BUILT_IN_CHKP_NULL_PTR_BOUNDS, BUILT_IN_CHKP_COPY_PTR_BOUNDS,
3364 BUILT_IN_CHKP_CHECK_PTR_LBOUNDS, BUILT_IN_CHKP_CHECK_PTR_UBOUNDS,
3365 BUILT_IN_CHKP_CHECK_PTR_BOUNDS, BUILT_IN_CHKP_SET_PTR_BOUNDS,
3366 BUILT_IN_CHKP_NARROW_PTR_BOUNDS, BUILT_IN_CHKP_STORE_PTR_BOUNDS,
3367 BUILT_IN_CHKP_GET_PTR_LBOUND, BUILT_IN_CHKP_GET_PTR_UBOUND,
3368 BUILT_IN_CHKP_BNDMK, BUILT_IN_CHKP_BNDSTX, BUILT_IN_CHKP_BNDCL,
3369 BUILT_IN_CHKP_BNDCU, BUILT_IN_CHKP_BNDLDX, BUILT_IN_CHKP_BNDRET,
3370 BUILT_IN_CHKP_INTERSECT, BUILT_IN_CHKP_ARG_BND, BUILT_IN_CHKP_NARROW,
3371 BUILT_IN_CHKP_EXTRACT_LOWER, BUILT_IN_CHKP_EXTRACT_UPPER.
3372 * common.opt (fcheck-pointer-bounds): New.
3373 * toplev.c (process_options): Check Pointer Bounds Checker is
3375 * doc/extend.texi: Document Pointer Bounds Checker built-in functions.
3377 2013-10-30 Ilya Enkovich <ilya.enkovich@intel.com>
3379 * target.def (builtin_chkp_function): New.
3380 (chkp_bound_type): New.
3381 (chkp_bound_mode): New.
3382 (fn_abi_va_list_bounds_size): New.
3383 (load_bounds_for_arg): New.
3384 (store_bounds_for_arg): New.
3385 * targhooks.h (default_load_bounds_for_arg): New.
3386 (default_store_bounds_for_arg): New.
3387 (default_fn_abi_va_list_bounds_size): New.
3388 (default_chkp_bound_type): New.
3389 (default_chkp_bound_mode): New.
3390 (default_builtin_chkp_function): New.
3391 * targhooks.c (default_load_bounds_for_arg): New.
3392 (default_store_bounds_for_arg): New.
3393 (default_fn_abi_va_list_bounds_size): New.
3394 (default_chkp_bound_type): New.
3395 (default_chkp_bound_mode); New.
3396 (default_builtin_chkp_function): New.
3397 * doc/tm.texi.in (TARGET_FN_ABI_VA_LIST_BOUNDS_SIZE): New.
3398 (TARGET_LOAD_BOUNDS_FOR_ARG): New.
3399 (TARGET_STORE_BOUNDS_FOR_ARG): New.
3400 (TARGET_BUILTIN_CHKP_FUNCTION): New.
3401 (TARGET_CHKP_BOUND_TYPE): New.
3402 (TARGET_CHKP_BOUND_MODE): New.
3403 * doc/tm.texi: Regenerated.
3404 * langhooks.h (lang_hooks): Add chkp_supported field.
3405 * langhooks-def.h (LANG_HOOKS_CHKP_SUPPORTED): New.
3406 (LANG_HOOKS_INITIALIZER); Add LANG_HOOKS_CHKP_SUPPORTED.
3408 2013-10-29 Andrew Pinski <apinski@cavium.com>
3410 * tree-ssa-ifcombine.c: Include rtl.h and tm_p.h.
3411 (ifcombine_ifandif): Handle cases where maybe_fold_and_comparisons
3412 fails, combining the branches anyways.
3413 (tree_ssa_ifcombine): Inverse the order of the basic block walk,
3414 increases the number of combinings.
3415 * gimple.h (gsi_start_nondebug_after_labels_bb): New function.
3417 2013-10-29 Mike Stump <mikestump@comcast.net>
3419 * machmode.def (PARTIAL_INT_MODE): Add precision and name.
3420 * genmodes.c (PARTIAL_INT_MODE): Add precision and name.
3421 (make_vector_mode): Increase namebuf to 16.
3422 (emit_insn_modes_h): When processing BImode, don't
3423 also match partial int modes.
3424 (emit_class_narrowest_mode): Likewise.
3426 * config/bfin/bfin-modes.def: Add precision to PDI.
3427 * config/m32c/m32c-modes.def: Add precision to PSI.
3428 * config/msp430/msp430-modes.def: Add precision to PSI.
3429 * config/rs6000/rs6000-modes.def: Add precision to PTI.
3430 * config/sh/sh-modes.def: Add precision to PSI and PDI.
3432 2013-10-29 Oleg Endo <olegendo@gcc.gnu.org>
3435 * config/sh/sh.md (*addc): Rename existing variations to ...
3436 (*addc_r_r_1, *addc_2r_1, *addc_r_1): ... these.
3437 (*addc_r_lsb, *addc_r_r_lsb, *addc_r_lsb_r, *addc_2r_lsb, *addc_r_msb,
3438 *addc_r_r_msb, *addc_2r_msb): New insn_and_split patterns.
3439 * config/sh/sh.c (addsubcosts): Handle some addc special cases.
3441 2013-10-29 Teresa Johnson <tejohnson@google.com>
3444 * tree-ssa-tail-merge.c (replace_block_by): Tolerate profile
3445 insanities when updating probabilities.
3447 2013-10-29 David Malcolm <dmalcolm@redhat.com>
3449 * gdbhooks.py (CGraphNodePrinter.to_string): Update gdb
3450 prettyprinter for cgraph_node to reflect the conversion of the
3451 symtable types to a C++ class hierarchy: it now *is* a
3452 symtab_node_base, rather than having one (named "symbol").
3454 2013-10-29 Balaji V. Iyer <balaji.v.iyer@intel.com>
3456 * builtins.c (is_builtin_name): Added a check for __cilkrts_detach and
3457 __cilkrts_pop_frame. If matched, then return true for built-in
3459 (expand_builtin): Added BUILT_IN_CILK_DETACH and
3460 BUILT_IN_CILK_POP_FRAME case.
3461 * langhooks-def.h (lhd_install_body_with_frame_cleanup): New prototype.
3462 (lhs_cilk_detect_spawn): Likewise.
3463 (LANG_HOOKS_DECLS): Added LANG_HOOKS_CILKPLUS.
3464 (LANG_HOOKS_CILKPLUS_DETECT_SPAWN_AND_UNWRAP): New #define.
3465 (LANG_HOOKS_CILKPLUS_FRAME_CLEANUP): Likewise.
3466 (LANG_HOOKS_CILKPLUS_GIMPLIFY_SPAWN): Likewise.
3467 (LANG_HOOKS_CILKPLUS): Likewise.
3468 * tree.h (CILK_SPAWN_FN): Likewise.
3469 * builtin.def (DEF_CILK_BUILTIN_STUB): Likewise.
3470 * Makefile.in (C_COMMON_OBJS): Added c-family/cilk.o.
3471 (OBJS): Added cilk-common.o.
3472 (BUILTINS_DEF): Added cilk-builtins.def.
3473 * langhooks.c (lhd_install_body_with_frame_cleanup): New function.
3474 (lhd_cilk_detect_spawn): Likewise.
3475 * langhooks.h (lang_hooks_for_cilkplus): New struct.
3476 (struct lang_hooks): Added new field called "cilkplus."
3477 * cilk-common.c: New file.
3479 * cilk-builtins.def: Likewise.
3480 * cppbuiltin.c (define_builtin_macros_for_compilation_flags): Added
3481 "__cilk" macro and set it to 200.
3482 * function.h (struct function::cilk_frame_decl): New field.
3483 (struct function::is_cilk_function): Likewise.
3484 (struct function::calls_cilk_spawn): Likewise.
3485 * gimplify.c (gimplify_call_expr): Added a check if the function call
3486 being gimplified is a spawn detach point. If so, then add pop_frame
3487 and detach function calls.
3488 (gimplify_expr): Added a CILK_SPAWN_STMT and CILK_SYNC_STMT case
3489 for gimplifying _Cilk_spawn and _Cilk_sync statements.
3490 (gimplify_return_expr): Added a check for _Cilk_spawn usage in
3491 function. If so, added a _Cilk_sync and gimplified it.
3492 (gimplify_modify_expr): Added a check for _Cilk_spawn in MODIFY and
3493 INIT_EXPRs. If so, then call gimplify_cilk_spawn.
3494 * ipa-inline-analysis (initialize_inline_failed): Prevent inlining of
3496 (can_inline_edge_p): Prevent inling of spawnee function.
3497 * ira.c (ira_setup_eliminable_regset): Force usage of frame pointer
3498 for functions that use Cilk keywords.
3499 * tree-inline.h (struct copy_body_data::remap_var_for_cilk): New field.
3500 * tree-pretty-print.c (dump_generic_node): Added CILK_SPAWN_STMT and
3501 CILK_SYNC_STMT cases.
3502 * tree.def (DEFTREECODE): Added CILK_SPAWN_STMT and CILK_SYNC_STMT
3504 * generic.texi (CILK_SPAWN_STMT): Added documentation for _Cilk_spawn.
3505 (CILK_SYNC_STMT): Added documentation for _Cilk_sync.
3506 * passes.texi (Cilk Keywords): New section that describes the compiler
3507 code changes for handling Cilk Keywords.
3509 2013-10-29 David Malcolm <dmalcolm@redhat.com>
3511 Patch autogenerated by refactor_symtab.py from
3512 https://github.com/davidmalcolm/gcc-refactoring-scripts
3513 revision 58bb219cc090b2f4516a9297d868c245495ee622
3515 * asan.c (asan_finish_file): Update for conversion of symtab types to
3516 a true class hierarchy.
3517 * cfgexpand.c (estimated_stack_frame_size): Likewise.
3518 * cgraph.c (cgraph_get_body): Likewise.
3519 (cgraph_get_create_real_symbol_node): Likewise.
3520 (verify_cgraph_node): Likewise.
3521 (verify_edge_corresponds_to_fndecl): Likewise.
3522 (verify_edge_count_and_frequency): Likewise.
3523 (cgraph_will_be_removed_from_program_if_no_direct_calls): Likewise.
3524 (cgraph_can_remove_if_no_direct_calls_p): Likewise.
3525 (cgraph_can_remove_if_no_direct_calls_and_refs_p): Likewise.
3526 (cgraph_node_cannot_return): Likewise.
3527 (cgraph_set_pure_flag_1): Likewise.
3528 (cgraph_set_const_flag_1): Likewise.
3529 (cgraph_set_nothrow_flag_1): Likewise.
3530 (cgraph_make_node_local_1): Likewise.
3531 (cgraph_for_node_and_aliases): Likewise.
3532 (cgraph_for_node_thunks_and_aliases): Likewise.
3533 (cgraph_node_can_be_local_p): Likewise.
3534 (cgraph_node_cannot_be_local_p_1): Likewise.
3535 (cgraph_function_body_availability): Likewise.
3536 (dump_cgraph_node): Likewise.
3537 (cgraph_rtl_info): Likewise.
3538 (cgraph_mark_address_taken_node): Likewise.
3539 (cgraph_remove_node): Likewise.
3540 (cgraph_release_function_body): Likewise.
3541 (cgraph_update_edges_for_call_stmt_node): Likewise.
3542 (cgraph_redirect_edge_call_stmt_to_callee): Likewise.
3543 (cgraph_make_edge_direct): Likewise.
3544 (cgraph_resolve_speculation): Likewise.
3545 (cgraph_speculative_call_info): Likewise.
3546 (cgraph_turn_edge_to_speculative): Likewise.
3547 (cgraph_create_edge_1): Likewise.
3548 (cgraph_set_call_stmt): Likewise.
3549 (cgraph_node_for_asm): Likewise.
3550 (cgraph_add_thunk): Likewise.
3551 (cgraph_same_body_alias): Likewise.
3552 (cgraph_create_function_alias): Likewise.
3553 (cgraph_create_node): Likewise.
3554 (cgraph_create_empty_node): Likewise.
3555 (record_function_versions): Likewise.
3556 (used_from_object_file_p): Likewise.
3557 * cgraph.h (symtab_can_be_discarded): Likewise.
3558 (symtab_real_symbol_p): Likewise.
3559 (cgraph_mark_force_output_node): Likewise.
3560 (cgraph_edge_recursive_p): Likewise.
3561 (symtab_alias_target): Likewise.
3562 (varpool_all_refs_explicit_p): Likewise.
3563 (varpool_can_remove_if_no_refs): Likewise.
3564 (cgraph_only_called_directly_or_aliased_p): Likewise.
3565 (cgraph_next_function_with_gimple_body): Likewise.
3566 (cgraph_first_function_with_gimple_body): Likewise.
3567 (cgraph_function_with_gimple_body_p): Likewise.
3568 (cgraph_next_function): Likewise.
3569 (cgraph_first_function): Likewise.
3570 (cgraph_next_defined_function): Likewise.
3571 (cgraph_first_defined_function): Likewise.
3572 (varpool_next_defined_variable): Likewise.
3573 (varpool_first_defined_variable): Likewise.
3574 (varpool_next_static_initializer): Likewise.
3575 (varpool_first_static_initializer): Likewise.
3576 (varpool_next_variable): Likewise.
3577 (varpool_first_variable): Likewise.
3578 (varpool_node_name): Likewise.
3579 (varpool): Likewise.
3581 (is_a_helper <varpool_node>::test): Likewise.
3582 (is_a_helper <cgraph_node>::test): Likewise.
3583 (varpool_variable_node): Likewise.
3584 (cgraph_function_or_thunk_node): Likewise.
3585 (varpool_alias_target): Likewise.
3586 (cgraph_alias_target): Likewise.
3587 (cgraph_node_name): Likewise.
3588 (varpool_node_asm_name): Likewise.
3589 (cgraph_node_asm_name): Likewise.
3590 * cgraphbuild.c (remove_cgraph_callee_edges): Likewise.
3591 (cgraph_rebuild_references): Likewise.
3592 (rebuild_cgraph_edges): Likewise.
3593 (record_eh_tables): Likewise.
3594 (build_cgraph_edges): Likewise.
3595 (mark_store): Likewise.
3596 (mark_load): Likewise.
3597 (mark_address): Likewise.
3598 (record_type_list): Likewise.
3599 (record_reference): Likewise.
3600 * cgraphclones.c (cgraph_materialize_all_clones): Likewise.
3601 (cgraph_materialize_clone): Likewise.
3602 (cgraph_function_versioning): Likewise.
3603 (cgraph_copy_node_for_versioning): Likewise.
3604 (update_call_expr): Likewise.
3605 (cgraph_find_replacement_node): Likewise.
3606 (cgraph_create_virtual_clone): Likewise.
3607 (cgraph_clone_node): Likewise.
3608 * cgraphunit.c (compile): Likewise.
3609 (output_weakrefs): Likewise.
3610 (output_in_order): Likewise.
3611 (expand_function): Likewise.
3612 (assemble_thunks_and_aliases): Likewise.
3613 (expand_thunk): Likewise.
3614 (mark_functions_to_output): Likewise.
3615 (handle_alias_pairs): Likewise.
3616 (analyze_functions): Likewise.
3617 (walk_polymorphic_call_targets): Likewise.
3618 (varpool_finalize_decl): Likewise.
3619 (process_function_and_variable_attributes): Likewise.
3620 (cgraph_process_same_body_aliases): Likewise.
3621 (analyze_function): Likewise.
3622 (cgraph_add_new_function): Likewise.
3623 (cgraph_finalize_function): Likewise.
3624 (referred_to_p): Likewise.
3625 (cgraph_reset_node): Likewise.
3626 (cgraph_process_new_functions): Likewise.
3627 (enqueue_node): Likewise.
3628 (decide_is_symbol_needed): Likewise.
3629 * coverage.c (coverage_compute_profile_id): Likewise.
3630 * dbxout.c (dbxout_expand_expr): Likewise.
3631 * dwarf2out.c (premark_types_used_by_global_vars_helper): Likewise.
3632 (reference_to_unused): Likewise.
3633 * gimple-fold.c (can_refer_decl_in_current_unit_p): Likewise.
3634 * gimplify.c (unvisit_body): Likewise.
3635 (unshare_body): Likewise.
3636 * ipa-cp.c (ipcp_generate_summary): Likewise.
3637 (ipcp_decision_stage): Likewise.
3638 (identify_dead_nodes): Likewise.
3639 (decide_whether_version_node): Likewise.
3640 (decide_about_value): Likewise.
3641 (perhaps_add_new_callers): Likewise.
3642 (create_specialized_node): Likewise.
3643 (update_profiling_info): Likewise.
3644 (ipcp_propagate_stage): Likewise.
3645 (estimate_local_effects): Likewise.
3646 (good_cloning_opportunity_p): Likewise.
3647 (devirtualization_time_bonus): Likewise.
3648 (propagate_constants_accross_call): Likewise.
3649 (initialize_node_lattices): Likewise.
3650 (ipcp_cloning_candidate_p): Likewise.
3651 (determine_versionability): Likewise.
3652 (print_all_lattices): Likewise.
3653 (print_lattice): Likewise.
3654 (ipcp_discover_new_direct_edges): Likewise.
3655 * ipa-devirt.c (ipa_devirt): Likewise.
3656 (likely_target_p): Likewise.
3657 (update_type_inheritance_graph): Likewise.
3658 (possible_polymorphic_call_target_p): Likewise.
3659 (dump_possible_polymorphic_call_targets): Likewise.
3660 (devirt_variable_node_removal_hook): Likewise.
3661 (record_binfo): Likewise.
3662 (maybe_record_node): Likewise.
3663 (build_type_inheritance_graph): Likewise.
3664 * ipa-inline-analysis.c (inline_write_summary): Likewise.
3665 (inline_generate_summary): Likewise.
3666 (inline_analyze_function): Likewise.
3667 (do_estimate_growth): Likewise.
3668 (simple_edge_hints): Likewise.
3669 (estimate_node_size_and_time): Likewise.
3670 (estimate_edge_devirt_benefit): Likewise.
3671 (compute_inline_parameters): Likewise.
3672 (estimate_function_body_sizes): Likewise.
3673 (compute_bb_predicates): Likewise.
3674 (initialize_inline_failed): Likewise.
3675 (dump_inline_summary): Likewise.
3676 (dump_inline_edge_summary): Likewise.
3677 * ipa-inline-transform.c (inline_transform): Likewise.
3678 (preserve_function_body_p): Likewise.
3679 (save_inline_function_body): Likewise.
3680 (inline_call): Likewise.
3681 (clone_inlined_nodes): Likewise.
3682 (can_remove_node_now_p): Likewise.
3683 (can_remove_node_now_p_1): Likewise.
3684 * ipa-inline.c (early_inliner): Likewise.
3685 (early_inline_small_functions): Likewise.
3686 (inline_always_inline_functions): Likewise.
3687 (ipa_inline): Likewise.
3688 (flatten_function): Likewise.
3689 (inline_small_functions): Likewise.
3690 (speculation_useful_p): Likewise.
3691 (recursive_inlining): Likewise.
3692 (update_caller_keys): Likewise.
3693 (reset_edge_caches): Likewise.
3694 (update_edge_key): Likewise.
3695 (edge_badness): Likewise.
3696 (relative_time_benefit): Likewise.
3697 (want_inline_self_recursive_call_p): Likewise.
3698 (want_inline_small_function_p): Likewise.
3699 (want_early_inline_function_p): Likewise.
3700 (num_calls): Likewise.
3701 (can_early_inline_edge_p): Likewise.
3702 (can_inline_edge_p): Likewise.
3703 (report_inline_failed_reason): Likewise.
3704 * ipa-profile.c (ipa_profile): Likewise.
3705 (ipa_propagate_frequency): Likewise.
3706 (ipa_propagate_frequency_1): Likewise.
3707 (ipa_profile_generate_summary): Likewise.
3708 * ipa-prop.c (ipcp_transform_function): Likewise.
3709 (read_replacements_section): Likewise.
3710 (ipa_prop_read_section): Likewise.
3711 (ipa_modify_call_arguments): Likewise.
3712 (ipa_print_node_params): Likewise.
3713 (propagate_controlled_uses): Likewise.
3714 (update_indirect_edges_after_inlining): Likewise.
3715 (remove_described_reference): Likewise.
3716 (ipa_make_edge_direct_to_target): Likewise.
3717 (ipa_analyze_node): Likewise.
3718 (ipa_analyze_params_uses): Likewise.
3719 (ipa_compute_jump_functions): Likewise.
3720 (ipa_get_callee_param_type): Likewise.
3721 (ipa_print_node_jump_functions): Likewise.
3722 (ipa_initialize_node_params): Likewise.
3723 (ipa_populate_param_decls): Likewise.
3724 (ipa_func_spec_opts_forbid_analysis_p): Likewise.
3725 (write_agg_replacement_chain): Likewise.
3726 (ipa_write_node_info): Likewise.
3727 (ipa_edge_duplication_hook): Likewise.
3728 (try_decrement_rdesc_refcount): Likewise.
3729 * ipa-pure-const.c (propagate_nothrow): Likewise.
3730 (propagate_pure_const): Likewise.
3731 (pure_const_read_summary): Likewise.
3732 (pure_const_write_summary): Likewise.
3733 (analyze_function): Likewise.
3734 * ipa-ref-inline.h (ipa_ref_referred_ref_list): Likewise.
3735 (ipa_ref_referring_ref_list): Likewise.
3736 * ipa-ref.c (ipa_clear_stmts_in_references): Likewise.
3737 (ipa_remove_stmt_references): Likewise.
3738 (ipa_find_reference): Likewise.
3739 (ipa_dump_referring): Likewise.
3740 (ipa_dump_references): Likewise.
3741 (ipa_record_reference): Likewise.
3742 * ipa-reference.c (ipa_reference_read_optimization_summary): Likewise.
3743 (ipa_reference_write_optimization_summary): Likewise.
3744 (write_node_summary_p): Likewise.
3745 (propagate): Likewise.
3746 (read_write_all_from_decl): Likewise.
3747 (generate_summary): Likewise.
3748 (analyze_function): Likewise.
3749 (propagate_bits): Likewise.
3750 (ipa_reference_get_not_written_global): Likewise.
3751 (ipa_reference_get_not_read_global): Likewise.
3752 * ipa-split.c (execute_split_functions): Likewise.
3753 (split_function): Likewise.
3754 * ipa-utils.c (ipa_merge_profiles): Likewise.
3755 (dump_cgraph_node_set): Likewise.
3756 (ipa_reverse_postorder): Likewise.
3757 (ipa_edge_within_scc): Likewise.
3758 (ipa_get_nodes_in_cycle): Likewise.
3759 (ipa_free_postorder_info): Likewise.
3760 (ipa_reduced_postorder): Likewise.
3761 (searchc): Likewise.
3762 (recursive_call_p): Likewise.
3763 * ipa.c (ipa_cdtor_merge): Likewise.
3764 (record_cdtor_fn): Likewise.
3765 (function_and_variable_visibility): Likewise.
3766 (varpool_externally_visible_p): Likewise.
3767 (cgraph_externally_visible_p): Likewise.
3768 (comdat_can_be_unshared_p): Likewise.
3769 (comdat_can_be_unshared_p_1): Likewise.
3770 (address_taken_from_non_vtable_p): Likewise.
3771 (ipa_discover_readonly_nonaddressable_vars): Likewise.
3772 (symtab_remove_unreachable_nodes): Likewise.
3773 (walk_polymorphic_call_targets): Likewise.
3774 (process_references): Likewise.
3775 (enqueue_node): Likewise.
3776 (has_addr_references_p): Likewise.
3777 (cgraph_non_local_node_p_1): Likewise.
3778 * is-a.h (varpool_analyze_node): Likewise.
3779 * lto-cgraph.c (input_symtab): Likewise.
3780 (merge_profile_summaries): Likewise.
3781 (input_cgraph_1): Likewise.
3782 (input_edge): Likewise.
3783 (input_varpool_node): Likewise.
3784 (input_node): Likewise.
3785 (input_overwrite_node): Likewise.
3786 (compute_ltrans_boundary): Likewise.
3787 (output_refs): Likewise.
3788 (lto_output_varpool_node): Likewise.
3789 (lto_output_node): Likewise.
3790 (reachable_from_other_partition_p): Likewise.
3791 (referenced_from_other_partition_p): Likewise.
3792 (lto_output_edge): Likewise.
3793 (output_node_opt_summary): Likewise.
3794 (add_node_to): Likewise.
3795 (reachable_from_this_partition_p): Likewise.
3796 (lto_set_symtab_encoder_in_partition): Likewise.
3797 (lto_symtab_encoder_in_partition_p): Likewise.
3798 (lto_set_symtab_encoder_encode_initializer): Likewise.
3799 (lto_symtab_encoder_encode_initializer_p): Likewise.
3800 (lto_set_symtab_encoder_encode_body): Likewise.
3801 (lto_symtab_encoder_encode_body_p): Likewise.
3802 * lto-section-in.c (lto_free_function_in_decl_state_for_node):
3804 * lto-streamer-in.c (lto_read_body): Likewise.
3805 (fixup_call_stmt_edges): Likewise.
3806 (fixup_call_stmt_edges_1): Likewise.
3807 * lto-streamer-out.c (produce_symtab): Likewise.
3808 (output_symbol_p): Likewise.
3809 (write_symbol): Likewise.
3810 (lto_output): Likewise.
3811 (copy_function): Likewise.
3812 (output_function): Likewise.
3813 * passes.c (function_called_by_processed_nodes_p): Likewise.
3814 (ipa_write_optimization_summaries): Likewise.
3815 (ipa_write_summaries): Likewise.
3816 (do_per_function_toporder): Likewise.
3817 (do_per_function): Likewise.
3818 (dump_passes): Likewise.
3819 * symtab.c (symtab_semantically_equivalent_p): Likewise.
3820 (symtab_nonoverwritable_alias): Likewise.
3821 (symtab_nonoverwritable_alias_1): Likewise.
3822 (symtab_for_node_and_aliases): Likewise.
3823 (symtab_resolve_alias): Likewise.
3824 (fixup_same_cpp_alias_visibility): Likewise.
3825 (symtab_alias_ultimate_target): Likewise.
3826 (symtab_used_from_object_file_p): Likewise.
3827 (verify_symtab_base): Likewise.
3828 (dump_symtab_base): Likewise.
3829 (symtab_node_name): Likewise.
3830 (symtab_node_asm_name): Likewise.
3831 (symtab_dissolve_same_comdat_group_list): Likewise.
3832 (symtab_add_to_same_comdat_group): Likewise.
3833 (symtab_unregister_node): Likewise.
3834 (symtab_insert_node_to_hashtable): Likewise.
3835 (symtab_register_node): Likewise.
3836 (unlink_from_assembler_name_hash): Likewise.
3837 (insert_to_assembler_name_hash): Likewise.
3838 (eq_assembler_name): Likewise.
3839 (hash_node_by_assembler_name): Likewise.
3840 (eq_node): Likewise.
3841 (hash_node): Likewise.
3842 * toplev.c (wrapup_global_declaration_2): Likewise.
3843 * trans-mem.c (ipa_tm_execute): Likewise.
3844 (ipa_tm_transform_clone): Likewise.
3845 (ipa_tm_transform_transaction): Likewise.
3846 (ipa_tm_transform_calls_redirect): Likewise.
3847 (ipa_tm_insert_gettmclone_call): Likewise.
3848 (ipa_tm_insert_irr_call): Likewise.
3849 (ipa_tm_create_version): Likewise.
3850 (ipa_tm_create_version_alias): Likewise.
3851 (ipa_tm_mark_forced_by_abi_node): Likewise.
3852 (ipa_tm_mark_force_output_node): Likewise.
3853 (ipa_tm_diagnose_tm_safe): Likewise.
3854 (ipa_tm_mayenterirr_function): Likewise.
3855 (ipa_tm_scan_irr_function): Likewise.
3856 (ipa_tm_note_irrevocable): Likewise.
3857 (ipa_tm_scan_calls_clone): Likewise.
3858 (get_cg_data): Likewise.
3859 * tree-eh.c (tree_could_trap_p): Likewise.
3860 * tree-emutls.c (ipa_lower_emutls): Likewise.
3861 (create_emultls_var): Likewise.
3862 (lower_emutls_function_body): Likewise.
3863 (gen_emutls_addr): Likewise.
3864 (emutls_decl): Likewise.
3865 (new_emutls_decl): Likewise.
3866 * tree-inline.c (tree_function_versioning): Likewise.
3867 (optimize_inline_calls): Likewise.
3868 (expand_call_inline): Likewise.
3869 (estimate_num_insns): Likewise.
3870 (copy_bb): Likewise.
3871 (delete_unreachable_blocks_update_callgraph): Likewise.
3872 * tree-nested.c (gimplify_all_functions): Likewise.
3873 (create_nesting_tree): Likewise.
3874 (check_for_nested_with_variably_modified): Likewise.
3875 * tree-pretty-print.c (dump_function_header): Likewise.
3876 * tree-profile.c (tree_profiling): Likewise.
3877 * tree-sra.c (ipa_sra_preliminary_function_checks): Likewise.
3878 (modify_function): Likewise.
3879 (convert_callers): Likewise.
3880 (convert_callers_for_node): Likewise.
3881 * tree-ssa-structalias.c (ipa_pta_execute): Likewise.
3882 (associate_varinfo_to_alias): Likewise.
3883 (create_variable_info_for): Likewise.
3884 (get_constraint_for_ssa_var): Likewise.
3885 * tree-vectorizer.c (increase_alignment): Likewise.
3886 * tree.c (find_decls_types_in_var): Likewise.
3887 (find_decls_types_in_node): Likewise.
3888 (free_lang_data_in_decl): Likewise.
3889 * value-prof.c (gimple_ic_transform): Likewise.
3890 (gimple_ic): Likewise.
3891 (check_ic_target): Likewise.
3892 (init_node_map): Likewise.
3893 * varasm.c (decl_binds_to_current_def_p): Likewise.
3894 (default_binds_local_p_1): Likewise.
3895 (dump_tm_clone_pairs): Likewise.
3896 (assemble_alias): Likewise.
3897 (find_decl): Likewise.
3898 (mark_decl_referenced): Likewise.
3899 * varpool.c (varpool_for_node_and_aliases): Likewise.
3900 (varpool_extra_name_alias): Likewise.
3901 (varpool_create_variable_alias): Likewise.
3902 (add_new_static_var): Likewise.
3903 (varpool_finalize_named_section_flags): Likewise.
3904 (varpool_remove_unreferenced_decls): Likewise.
3905 (enqueue_node): Likewise.
3906 (varpool_assemble_decl): Likewise.
3907 (assemble_aliases): Likewise.
3908 (varpool_analyze_node): Likewise.
3909 (cgraph_variable_initializer_availability): Likewise.
3910 (varpool_add_new_variable): Likewise.
3911 (ctor_for_folding): Likewise.
3912 (dump_varpool_node): Likewise.
3913 (varpool_remove_initializer): Likewise.
3914 (varpool_remove_node): Likewise.
3915 (varpool_node_for_decl): Likewise.
3916 (varpool_create_empty_node): Likewise.
3917 * config/i386/i386.c (ix86_generate_version_dispatcher_body): Likewise.
3918 (ix86_get_function_versions_dispatcher): Likewise.
3920 2013-10-29 David Malcolm <dmalcolm@redhat.com>
3922 * cgraph.h (symtab_node_base): Convert to a class;
3923 add GTY((desc ("%h.type"), tag ("SYMTAB_SYMBOL"))), and take
3924 chain_next/prev from symtab_node_def.
3925 (cgraph_node): Inherit from symtab_node; add GTY option
3926 tag ("SYMTAB_FUNCTION").
3927 (varpool_node): Inherit from symtab_node; add GTY option
3928 tag ("SYMTAB_VARIABLE").
3929 (symtab_node_def): Remove.
3930 (is_a_helper <cgraph_node>::test (symtab_node_def *)): Convert to...
3931 (is_a_helper <cgraph_node>::test (symtab_node_base *)): ...this.
3932 (is_a_helper <varpool_node>::test (symtab_node_def *)): Convert to...
3933 (is_a_helper <varpool_node>::test (symtab_node_base *)): ...this.
3935 * ipa-ref.h (symtab_node_def): Drop.
3936 (symtab_node): Change underlying type from symtab_node_def to
3938 (const_symtab_node): Likwise.
3940 * is-a.h: Update examples in comment.
3942 * symtab.c (symtab_hash): Change symtab_node_def to symtab_node_base.
3943 (assembler_name_hash): Likewise.
3945 2013-10-29 Martin Liska <marxin.liska@gmail.com>
3947 * doc/tree-ssa.texi (gimple_phi_result): Document.
3948 (gimple_phi_num_args, gimple_phi_arg): Likewise.
3949 (gimple_phi_arg_edge, gimple_phi_arg_def): Likewise.
3950 (PHI_RESULT, PHI_NUM_ARGS): Remove.
3951 (PHI_ARG_ELT, PHI_ARG_EDGE, PHI_ARG_DEF): Likewise.
3953 2013-10-29 Andrew MacLeod <amacleod@redhat.com>
3955 * expr.h: Revert change and include tree-core.h.
3956 * rtl.h: Revert change and don't include tree-core.h.
3958 2013-10-29 Andrew MacLeod <amacleod@redhat.com>
3960 * config/darwin.c: Include gimple.h.
3961 * config/i386/winnt.c: Likewise.
3963 2013-10-29 Marc Glisse <marc.glisse@inria.fr>
3965 PR tree-optimization/19831
3966 * tree-ssa-alias.c (stmt_kills_ref_p_1): Handle BUILT_IN_FREE.
3968 2013-10-29 Andrew MacLeod <amacleod@redhat.com>
3970 * tree-outof-ssa.h: Remove include files.
3971 * tree-outof-ssa.c: Add required include files from tree-outof-ssa.h.
3973 * tree-ssa-coalesce.c: Likewise.
3974 * cfgexpand.c: Likewise.
3975 * tree-ssa-ter.c: Likewise.
3976 * ipa-prop.h: Remove gimple.h and tree-core.h from include list.
3977 * lto-streamer.h: Likewise.
3978 * cgraphbuild.c: Add gimple.h to include list.
3979 * data-streamer-in.c: Likewise.
3980 * ipa-cp.c: Likewise.
3981 * tree-streamer.c: Likewise.
3982 * lto-compress.c: Likewise.
3983 * ipa-reference.c: Likewise.
3984 * data-streamer-out.c: Likewise.
3985 * lto-cgraph.c: Likewise.
3986 * cgraphclones.c: Likewise.
3987 * ipa-utils.c: Likewise.
3988 * data-streamer.c: Likewise.
3989 * ipa-split.c: Likewise.
3990 * lto-section-in.c: Likewise.
3991 * tree-streamer-out.c: Likewise.
3992 * ipa-prop.c: Likewise.
3993 * tree-streamer-in.c: Likewise.
3994 * symtab.c: Likewise.
3995 * opts-global.c: Likewise.
3996 * lto-opts.c: Likewise.
3997 * lto-section-out.c: Likewise.
3998 * lto-streamer.c: Likewise.
3999 * rtl.h: Add tree-core.h to include list.
4000 * expr.h: Remove tree-core.h from include list.
4001 * gimple.h: Likewise.
4002 * ipa-utils.h: Likewise.
4003 * streamer-hooks.h: Likewise.
4004 * streamer-hooks.c: Include input.h.
4006 2013-10-29 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
4008 * config/arm/arm.c (cortexa7_extra_costs): New table.
4009 (arm_cortex_a7_tune): New.
4010 * config/arm/arm-cores.def: Use cortex_a7 tuning for cortex-a7.
4012 2013-10-29 Eric Botcazou <ebotcazou@adacore.com>
4014 * expr.c (expand_expr_real_1) <MEM_EXPR>: Eliminate small redundancy.
4016 2013-10-29 David Malcolm <dmalcolm@redhat.com>
4018 * doc/gty.texi ("Inheritance and GTY"): Make it clear that
4019 to use autogenerated markers for a class-hierarchy, every class
4020 must have a GTY marker.
4021 * gengtype.h (struct type): Add linked list of subclasses to
4022 the "s" member of the union.
4023 (add_subclass): New decl.
4024 * gengtype-state.c (read_state_struct_type): Set up subclass
4026 * gengtype.c (get_ultimate_base_class): New.
4027 (add_subclass): New.
4028 (new_structure): Set up subclass linked list.
4029 (set_gc_used_type): Propagate usage information to subclasses.
4030 (output_mangled_typename): Use get_ultimate_base_class.
4031 (walk_subclasses): Use the subclass linked list, avoiding an
4032 O(N^2) when writing out all types.
4033 (walk_type): Issue an error if the base class is missing a tag,
4034 rather than generating bogus C code. Add a gcc_unreachable
4035 default case, in case people omit tags from concrete subclasses,
4036 or get the values wrong.
4037 (write_func_for_structure): Issue an error for subclasses for
4038 which the base doesn't have a "desc", since otherwise the
4039 autogenerated routines for the base would silently fail to visit
4040 any subclass fields.
4041 (write_root): Use get_ultimate_base_class, tweaking constness of
4042 tp to match that function's signature.
4044 2013-10-29 David Malcolm <dmalcolm@redhat.com>
4046 * doc/gty.texi (GTY Options): Add note about inheritance to
4047 description of desc and tag.
4048 (Inheritance and GTY): New.
4050 2013-10-29 David Malcolm <dmalcolm@redhat.com>
4052 * gengtype-parse.c (opts_have): Drop "static" so that
4053 we can use this from gengtype.c.
4054 * gengtype.c (set_gc_used_type): Mark any base class as used;
4055 update field traversal to visit inherited fields.
4056 (output_mangled_typename): Convert references to classes within
4057 an inheritance hierarchy to reference the ultimate base class,
4058 since only it will have gt_ functions.
4059 (get_string_option): New.
4060 (walk_subclasses): New.
4061 (walk_type): Treat GTY structs that have a "desc" as being the
4062 root of an inheritance hierarchy. Generate a switch on it
4063 within the marking function which walks all subclasses, adding
4064 cases for them via walk_subclasses. For subclasses, visit all
4065 fields of the type (including inherited ones).
4066 (write_func_for_structure): Don't write fns for subclasses, only
4067 for the ultimate base class within an inheritance hierarchy.
4068 Subclasses-marking will be handled by the base class marking functions.
4069 (write_types): Likewise.
4070 (write_local_func_for_structure): Likewise.
4071 (USED_BY_TYPED_GC_P): Emit allocators for subclasses that have
4072 a "tag" option (and are thus concrete subclasses).
4073 (write_root): Use the marker function for the ultimate base class.
4074 * gengtype.h (FOR_ALL_INHERITED_FIELDS): New.
4075 (opts_have): Add declaration.
4077 2013-10-28 Vladimir Makarov <vmakarov@redhat.com>
4079 * lra-spills.c (lra_final_code_change): Remove useless move insns
4080 originated from moves of pseudos.
4082 2013-10-28 Jeff Law <law@redhat.com>
4084 * lower-subreg.c (resolve_simple_move): Fix comment typo.
4086 2013-10-28 Trevor Saunders <tsaunders@mozilla.com>
4088 * df-scan.c (df_collection_rec): Adjust.
4089 (copy_defs): New constant.
4090 (copy_uses): Likewise.
4091 (copy_eq_uses): Likewise.
4092 (copy_mw): Likewise.
4093 (copy_all): Likewise.
4094 (df_insn_rescan): Adjust.
4095 (df_notes_rescan): Likewise.
4096 (df_swap_refs): Likewise.
4097 (df_sort_and_compress_refs): Likewise.
4098 (df_sort_and_compress_mws): Likewise.
4099 (df_install_refs): Likewise.
4100 (df_install_mws): Likewise.
4101 (df_refs_add_to_chains): Add flags parameter controlling which vectors
4103 (df_bb_refs_record): Adjust.
4104 (df_record_entry_block_defs): Likewise.
4105 (df_record_exit_block_defs): Likewise.
4106 (df_refs_verify): Likewise.
4107 (df_mws_verify): Likewise.
4108 (df_insn_refs_verify): Likewise.
4109 (df_bb_verify): Likewise.
4110 * ipa-pure-const.c (finish_state): Remove.
4111 (propagate): Adjust.
4112 * tree-data-ref.c tree-ssa-alias.c tree-ssa-loop-ivcanon.c
4113 tree-ssa-threadedge.c tree-vect-loop-manip.c tree-vect-slp.c
4114 var-tracking.c: Adjust.
4115 * vec.c (stack_vecs): Remove.
4116 (register_stack_vec): Likewise.
4117 (stack_vec_register_index): Likewise.
4118 (unregister_stack_vec): Likewise.
4119 * vec.h (struct va_stack): Remove.
4120 (struct vec<T, A, vl_ptr>): Specialize as
4121 struct vec<T, va_heap, vl_ptr> instead since va_heap is the only
4122 allocation strategy compatable with the vl_ptr layout.
4123 (struct vec<T, va_gc, vl_ptr>): Remove because it now gets an empty
4124 specialization anyway.
4125 (class stack_vec): New class.
4126 (vec_stack_alloc): Remove.
4127 (vec<T, va_heap, vl_ptr>::using_auto_storage): New method.
4129 2013-10-28 Alexander Ivchenko <alexander.ivchenko@intel.com>
4130 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
4131 Sergey Lega <sergey.s.lega@intel.com>
4132 Anna Tikhonova <anna.tikhonova@intel.com>
4133 Ilya Tocar <ilya.tocar@intel.com>
4134 Andrey Turetskiy <andrey.turetskiy@intel.com>
4135 Ilya Verbin <ilya.verbin@intel.com>
4136 Kirill Yukhin <kirill.yukhin@intel.com>
4137 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
4139 * config/i386/i386.md (prefetch): Allow TARGET_AVX512PF.
4140 (*prefetch_avx512pf_<mode>): New.
4141 * config/i386/sse.md (avx512f_vmcmp<mode>3): Ditto.
4142 (avx512f_maskcmp<mode>3): Ditto.
4143 (vashrv16si3): Ditto.
4145 2013-10-28 Alexander Ivchenko <alexander.ivchenko@intel.com>
4146 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
4147 Sergey Lega <sergey.s.lega@intel.com>
4148 Anna Tikhonova <anna.tikhonova@intel.com>
4149 Ilya Tocar <ilya.tocar@intel.com>
4150 Andrey Turetskiy <andrey.turetskiy@intel.com>
4151 Ilya Verbin <ilya.verbin@intel.com>
4152 Kirill Yukhin <kirill.yukhin@intel.com>
4153 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
4155 * config/i386/i386.md (any_truncate): New.
4156 (trunsuffix): Ditto.
4157 * config/i386/predicates.md (const_8_to_9_operand): New.
4158 (const_10_to_11_operand): Ditto.
4159 (const_12_to_13_operand): Ditto.
4160 (const_14_to_15_operand): Ditto.
4161 (const_16_to_19_operand): Ditto.
4162 (const_20_to_23_operand): Ditto.
4163 (const_24_to_27_operand): Ditto.
4164 (const_28_to_31_operand): Ditto.
4165 * config/i386/sse.md (unspec): Add UNSPEC_UNSIGNED_FIX_NOTRUNC.
4166 (cvtusi2<ssescalarmodesuffix>32): New.
4167 (cvtusi2<ssescalarmodesuffix>64): Ditto.
4168 (ufloatv16siv16sf2): Ditto.
4169 (avx512f_fix_notruncv16sfv16si): Ditto.
4170 (avx512f_ufix_notruncv16sfv16si): Ditto.
4171 (avx512f_vcvtss2usi): Ditto.
4172 (avx512f_vcvtss2usiq): Ditto.
4173 (avx512f_vcvttss2usi): Ditto.
4174 (avx512f_vcvttss2usiq): Ditto.
4175 (avx512f_vcvtsd2usi): Ditto.
4176 (avx512f_vcvtsd2usiq): Ditto.
4177 (avx512f_vcvttsd2usi): Ditto.
4178 (avx512f_vcvttsd2usiq): Ditto.
4179 (ufloatv8siv8df): Ditto.
4180 (avx512f_cvtdq2pd512_2): Ditto.
4181 (avx512f_cvtpd2dq512): Ditto.
4182 (avx512f_ufix_notruncv8dfv8si): Ditto.
4183 (avx512f_cvtpd2ps512): Ditto.
4184 (vec_unpacks_lo_v16sf): Ditto.
4185 (vec_unpacks_hi_v16sf): Ditto.
4186 (vec_unpacks_float_hi_v16si): Ditto.
4187 (vec_unpacks_float_lo_v16si): Ditto.
4188 (avx512f_unpckhps512): Ditto.
4189 (avx512f_unpcklps512): Ditto.
4190 (avx512f_movshdup512): Ditto.
4191 (avx512f_movsldup512): Ditto.
4192 (vec_extract_lo_v32hi): Ditto.
4193 (vec_extract_hi_v32hi): Ditto.
4194 (vec_extract_lo_v64qi): Ditto.
4195 (vec_extract_hi_v64qi): Ditto.
4196 (avx512f_unpckhpd512): Ditto.
4197 (avx512f_movddup512): Ditto.
4198 (avx512f_unpcklpd512): Ditto.
4199 (*avx512f_unpcklpd512): Ditto.
4200 (avx512f_shufps512_1): Ditto.
4201 (avx512f_shufpd512_1): Ditto.
4202 (avx512f_interleave_highv8di): Ditto.
4203 (avx512f_interleave_lowv8di): Ditto.
4204 (PMOV_DST_MODE): Ditto.
4205 (pmov_src_mode): Ditto.
4206 (pmov_src_lower): Ditto.
4208 (*avx512f_<code><pmov_src_lower><mode>2): Ditto.
4209 (*avx512f_<code>v8div16qi2): Ditto.
4210 (*avx512f_<code>v8div16qi2_store): Ditto.
4211 (vec_widen_umult_even_v16si): Ditto.
4212 (*vec_widen_umult_even_v16si): Ditto.
4213 (vec_widen_smult_even_v16si): Ditto.
4214 (*vec_widen_smult_even_v16si): Ditto.
4215 (avx512f_interleave_highv16si): Ditto.
4216 (avx512f_interleave_lowv16si): Ditto.
4217 (avx512f_<code>v16qiv16si2): Ditto.
4218 (avx512f_<code>v16hiv16si2): Ditto.
4219 (avx512f_<code>v8qiv8di2): Ditto.
4220 (avx512f_<code>v8hiv8di2): Ditto.
4221 (avx512f_<code>v8siv8di2): Ditto.
4222 (avx512cd_maskb_vec_dupv8di): Ditto.
4223 (avx512cd_maskw_vec_dupv16si): Ditto.
4224 (avx512f_vcvtph2ps512): Ditto.
4225 (avx512f_vcvtps2ph512): Ditto.
4226 (VEC_EXTRACT_MODE): Extened with wider modes.
4227 (VEC_PERM_AVX2): Ditto.
4228 (VEC_PERM_CONST): Ditto.
4230 2013-10-28 Joern Rennecke <joern.rennecke@embecosm.com>
4232 * config/arc/arc.c (arc_ccfsm_post_advance):
4233 Add comment about TYPE_RETURN.
4235 2013-10-28 Bin Cheng <bin.cheng@arm.com>
4237 * tree-ssa-loop-ivopts.c (strip_offset_1): Change parameter type.
4238 Count DECL_FIELD_BIT_OFFSET for COMPONENT_REF.
4239 (strip_offset): Convert offset to unsigned number.
4241 2013-10-27 Tom de Vries <tom@codesourcery.com>
4243 * cfgexpand.c (gimple_expand_cfg): Remove test for parm_birth_insn.
4244 Don't commit insertions after NOTE_INSN_FUNCTION_BEG.
4246 2013-10-27 Oleg Endo <olegendo@gcc.gnu.org>
4248 * config/sh/sh.c (MSW, LSW): Move and rename macros to...
4249 * config/sh/sh.h (SH_REG_MSW_OFFSET, SH_REG_LSW_OFFSET): ... here.
4250 (TARGET_BIG_ENDIAN): New macro.
4251 * config/sh/sh.md: Use it instead of !TARGET_LITTLE_ENDIAN.
4252 Use SH_REG_MSW_OFFSET and SH_REG_LSW_OFFSET.
4253 * config/sh/sh.c: Likewise.
4254 * config/sh/sh.h: Likewise.
4256 2013-10-27 Hans-Peter Nilsson <hp@axis.com>
4258 * config/cris/cris.c (cris_emit_trap_for_misalignment): Replace the
4259 removed PRED_MUDFLAP with PRED_NORETURN. Correct file-path in comment.
4261 2013-10-26 Oleg Endo <olegendo@gcc.gnu.org>
4263 * config/sh/sh.md (movmemsi): Remove empty constraints and predicates.
4265 (cmpstr_t, cmpstrsi): Fix formatting.
4267 2013-10-26 Oleg Endo <olegendo@gcc.gnu.org>
4270 * config/sh/predicates.md (general_movdst_operand): Allow reg+reg
4271 addressing, do not use general_operand for memory operands.
4273 2013-10-26 Vladimir Makarov <vmakarov@redhat.com>
4276 2013-10-25 Vladimir Makarov <vmakarov@redhat.com>
4277 * lra-spills.c (lra_final_code_change): Remove useless move insns.
4279 2013-10-26 Jeff Law <law@redhat.com>
4281 * predict.c (PRED_MUDFLAP): Remove.
4282 * targhooks.c (build_va_arg_indirect_ref): Remove mudflap support.
4284 * Makefile.in (C_COMMON_OBJS): Remove tree-mudflap.
4285 (OBJS): Remove tree-nomudflap.o
4286 (GTFILES): Remove tree-mudflap.c
4287 * builtins.c (expand_builtin_alloc): Remove mudflap support.
4288 * gcc.c (MFWRAP_SPEC, MFLIB_SPEC): Likewise.
4289 (mfwrap_spec, mflib_spec): Likewise.
4290 (cpp_unique_options, cc1_options, static_specs): Likewise.
4291 * gimplify (gimplify_vla_decl, build_va_arg_indirect_ref): Likewise.
4292 * passes.def: Likewise.
4293 * toplev.c (compile_file, process_options): Likewise.
4294 * tree-inline.c (copy_tree_r): Likewise.
4295 * tree-pass.,h (make_pass_mudflap_1, make_pass_mudflap_2): Likewise.
4296 * varasm.c (make_decl_rtl, make_decl_rtl_for_debug): Likewise.
4297 (build_constant_desc, output_constant_def_contents): Likewise.
4298 (categorize_decl_for_section): Likewise.
4299 * tree-mudflap.c: Removed.
4300 * tree-mudflap.h: Removed.
4301 * tree-nomudflap.c: Removed.
4302 * bfin/uclinux.h (MFWRAP_SPEC): Remove.
4303 * moxie/uclinux.h (MFWRAP_SPEC): Likewise.
4304 * rs6000/aix.h (MFWRAP_SPEC, MFLIB_SPEC): Likewise.
4305 * config/sol2.h (MFLIB_SPEC): Likewise.
4306 * doc/install.texi: Remove mudflap references.
4307 * doc/passes.texi: Similarly.
4308 * doc/sourcebuild.texi: Similarly.
4309 * doc/invoke.texi: Remove mudlfap related options.
4311 2013-10-25 Vladimir Makarov <vmakarov@redhat.com>
4313 PR rtl-optimization/58759
4314 * lra-constraints.c (lra_constraints): Remove wrong condition to
4315 remove insn setting up an equivalent pseudo.
4317 2013-10-25 Vladimir Makarov <vmakarov@redhat.com>
4319 * config/rs6000/rs6000-protos.h
4320 (rs6000_secondary_memory_needed_mode): New prototype.
4321 * config/rs6000/rs6000.c: Include ira.h.
4322 (TARGET_LRA_P): Redefine.
4323 (rs6000_legitimate_offset_address_p): Call
4324 legitimate_constant_pool_address_p in strict mode for LRA.
4325 (rs6000_legitimate_address_p): Ditto.
4326 (legitimate_lo_sum_address_p): Add code for LRA. Use lra_in_progress.
4327 (rs6000_emit_move): Add LRA version of code to generate load/store
4329 (rs6000_secondary_memory_needed_mode): New.
4330 (rs6000_alloc_sdmode_stack_slot): Do nothing for LRA.
4331 (rs6000_secondary_reload_class): Return NO_REGS for LRA for
4332 constants, memory, and FP registers.
4333 (rs6000_lra_p): New.
4334 * config/rs6000/rs6000.h (SECONDARY_MEMORY_NEEDED_MODE): New macro.
4335 * config/rs6000/rs6000.opt (mlra): New option.
4336 * lra-spills.c (lra_final_code_change): Remove useless move insns.
4338 2013-10-25 Yufeng Zhang <yufeng.zhang@arm.com>
4340 * tree-ssa-math-opts.c (convert_plusminus_to_widen): Call
4341 has_single_use () and not do the conversion if has_single_use ()
4342 returns false for the multiplication result.
4344 2013-10-25 David Malcolm <dmalcolm@redhat.com>
4346 * tree.h (EXCEPTIONAL_CLASS_P): Rename parameter from "CODE"
4347 to "NODE", since this works on a "tree", not an
4349 (CONSTANT_CLASS_P): Likewise.
4352 (INDIRECT_REF_P): Likewise.
4353 (REFERENCE_CLASS_P): Likewise.
4354 (COMPARISON_CLASS_P): Likewise.
4355 (UNARY_CLASS_P): Likewise.
4356 (BINARY_CLASS_P): Likewise.
4357 (STATEMENT_CLASS_P): Likewise.
4358 (VL_EXP_CLASS_P): Likewise.
4359 (EXPRESSION_CLASS_P): Likewise.
4360 (IS_TYPE_OR_DECL_P): Likewise.
4362 2013-10-25 Marc Glisse <marc.glisse@inria.fr>
4364 * tree-ssa-alias.c (ao_ref_init_from_ptr_and_size): Look for an
4365 ADDR_EXPR in the defining statement.
4367 2013-10-25 Richard Biener <rguenther@suse.de>
4369 PR tree-optimization/58626
4370 * tree-loop-distribution.c (enum rdg_dep_type): Remove
4371 anti_dd, output_dd and input_dd.
4372 (struct rdg_edge): Remove level and relation members.
4373 (RDGE_LEVEL, RDGE_RELATION): Remove.
4374 (dot_rdg_1): Adjust.
4375 (create_rdg_edge_for_ddr): Remove.
4376 (create_rdg_edges_for_scalar): Adjust.
4377 (create_edge_for_control_dependence): Likewise.
4378 (create_rdg_edges): Split into ...
4379 (create_rdg_flow_edges): ... this
4380 (create_rdg_cd_edges): ... and this.
4382 (build_rdg): Likewise, do not compute data dependences or
4384 (pg_add_dependence_edges): New function.
4386 (distribute_loop): First apply all non-dependence based
4387 partition mergings. Then compute dependences between partitions
4388 and merge and order partitions according to them.
4390 2013-10-25 Eric Botcazou <ebotcazou@adacore.com>
4392 PR rtl-optimization/58831
4393 * alias.c (init_alias_analysis): At the beginning of each iteration,
4394 set the reg_seen[N] bit if static_reg_base_value[N] is non-null.
4396 2013-10-25 Eric Botcazou <ebotcazou@adacore.com>
4398 * recog.c (search_ofs): New static variable moved from...
4399 (peep2_find_free_register): ...here.
4400 (peephole2_optimize): Initialize it.
4402 2013-10-25 Tobias Burnus <burnus@net-b.de>
4404 * doc/invoke.texi (fopenmp): Change supported OpenMP version to 4.0.
4406 2013-10-25 Uros Bizjak <ubizjak@gmail.com>
4408 * config/i386/i386.h (TARGET_MPX): New define.
4409 (TARGET_MPX_P): Ditto.
4411 2013-10-24 Ilya Enkovich <ilya.enkovich@intel.com>
4413 * config/i386/constraints.md (B): New.
4416 * config/i386/i386-c.c (ix86_target_macros_internal): Add __MPX__.
4417 * config/i386/i386-modes.def (BND32): New.
4419 * config/i386/i386-protos.h (ix86_bnd_prefixed_insn_p): New.
4420 * config/i386/i386.c (isa_opts): Add mmpx.
4421 (regclass_map): Add bound registers.
4422 (dbx_register_map): Likewise.
4423 (dbx64_register_map): Likewise.
4424 (svr4_dbx_register_map): Likewise.
4426 (ix86_option_override_internal): Support MPX ISA.
4427 (ix86_conditional_register_usage): Support bound registers.
4428 (print_reg): Likewise.
4429 (ix86_code_end): Add MPX bnd prefix.
4430 (output_set_got): Likewise.
4431 (ix86_output_call_insn): Likewise.
4432 (ix86_print_operand): Add '!' (MPX bnd) print prefix support.
4433 (ix86_print_operand_punct_valid_p): Likewise.
4434 (ix86_print_operand_address): Support UNSPEC_BNDMK_ADDR and
4436 (ix86_class_likely_spilled_p): Add bound regs support.
4437 (ix86_hard_regno_mode_ok): Likewise.
4438 (x86_order_regs_for_local_alloc): Likewise.
4439 (ix86_bnd_prefixed_insn_p): New.
4440 * config/i386/i386.h (FIRST_PSEUDO_REGISTER): Fix to new value.
4441 (FIXED_REGISTERS): Add bound registers.
4442 (CALL_USED_REGISTERS): Likewise.
4443 (REG_ALLOC_ORDER): Likewise.
4444 (HARD_REGNO_NREGS): Likewise.
4446 (VALID_BND_REG_MODE): New.
4447 (FIRST_BND_REG): New.
4448 (LAST_BND_REG): New.
4449 (reg_class): Add BND_REGS.
4450 (REG_CLASS_NAMES): Likewise.
4451 (REG_CLASS_CONTENTS): Likewise.
4453 (ANY_BND_REG_P): New.
4455 (HI_REGISTER_NAMES): Add bound registers.
4456 * config/i386/i386.md (UNSPEC_BNDMK): New.
4457 (UNSPEC_BNDMK_ADDR): New.
4458 (UNSPEC_BNDSTX): New.
4459 (UNSPEC_BNDLDX): New.
4460 (UNSPEC_BNDLDX_ADDR): New.
4461 (UNSPEC_BNDCL): New.
4462 (UNSPEC_BNDCU): New.
4463 (UNSPEC_BNDCN): New.
4464 (UNSPEC_MPX_FENCE): New.
4467 (type): Add mpxmov, mpxmk, mpxchk, mpxld, mpxst.
4468 (length_immediate): Likewise.
4469 (prefix_0f): Likewise.
4471 (prefix_rep): Check for bnd prefix.
4472 (length_nobnd): New.
4473 (length): Use length_nobnd if specified.
4478 (*jcc_1): Add bnd prefix and rename length attr to length_nobnd.
4481 (simple_return_internal): Likewise.
4482 (simple_return_pop_internal): Likewise.
4483 (*indirect_jump): Add MPX bnd prefix.
4484 (*tablejump_1): Likewise.
4485 (simple_return_internal_long): Likewise.
4486 (simple_return_indirect_internal): Likewise.
4490 (*mov<mode>_internal_mpx): New.
4491 (<mode>_<bndcheck>): New.
4492 (*<mode>_<bndcheck>): New.
4497 * config/i386/predicates.md (lea_address_operand): Rename to...
4498 (address_no_seg_operand): ... this.
4499 (address_mpx_no_base_operand): New.
4500 (address_mpx_no_index_operand): New.
4501 (bnd_mem_operator): New.
4502 * config/i386/i386.opt (mmpx): New.
4503 * doc/invoke.texi: Add documentation for the flags -mmpx, -mno-mpx.
4504 * doc/rtl.texi Add documentation for BND32mode and BND64mode.
4506 2013-10-24 Ilya Enkovich <ilya.enkovich@intel.com>
4508 * mode-classes.def (MODE_POINTER_BOUNDS): New.
4509 * tree.def (POINTER_BOUNDS_TYPE): New.
4510 * genmodes.c (complete_mode): Support MODE_POINTER_BOUNDS.
4511 (POINTER_BOUNDS_MODE): New.
4512 (make_pointer_bounds_mode): New.
4513 * machmode.h (POINTER_BOUNDS_MODE_P): New.
4514 * stor-layout.c (int_mode_for_mode): Support MODE_POINTER_BOUNDS.
4515 (layout_type): Support POINTER_BOUNDS_TYPE.
4516 * tree-pretty-print.c (dump_generic_node): Support POINTER_BOUNDS_TYPE.
4517 * tree.c (build_int_cst_wide): Support POINTER_BOUNDS_TYPE.
4518 (type_contains_placeholder_1): Likewise.
4519 * tree.h (POINTER_BOUNDS_TYPE_P): New.
4520 * varasm.c (output_constant): Support POINTER_BOUNDS_TYPE.
4521 * doc/rtl.texi (MODE_POINTER_BOUNDS): New.
4523 2013-10-24 Igor Shevlyakov <igor.shevlyakov@gmail.com>
4525 * expr.c (expand_expr_real_1): Use mode of memory reference rather than
4526 mode of address computation when calling memory_address_addr_space.
4528 2013-08-24 Richard Henderson <rth@twiddle.net>
4531 * optabs.c (maybe_emit_atomic_exchange): Use create_input_operand
4532 instead of create_convert_operand_to.
4533 (maybe_emit_sync_lock_test_and_set): Likewise.
4534 (expand_atomic_compare_and_swap): Likewise.
4535 (maybe_emit_compare_and_swap_exchange_loop): Don't convert_modes.
4537 2013-08-24 Sriraman Tallam <tmsriram@google.com>
4539 * cgraph.c (cgraph_fnver_htab): Move GTY((...)) to be before htab_t.
4540 Change param_is to use the struct and not the pointer to the struct.
4542 2013-10-24 Andrew MacLeod <amacleod@redhat.com>
4544 * builtins.c (dummy_object, gimplify_va_arg_expr): Move to gimplify.c.
4545 * gimplify.c (build_va_arg_indirect_ref, std_gimplify_va_arg_expr):
4546 Move to targhooks.c.
4547 (dummy_object, gimplify_va_arg_expr): Relocate from builtins.c.
4548 * targhooks.c (build_va_arg_indirect_ref, std_gimplify_va_arg_expr):
4549 Relocate from gimplify.c.
4550 * targhooks.h: Add 2 prototypes.
4551 * tree.h: Delete 2 prototypes.
4553 2013-10-24 Igor Shevlyakov <igor.shevlyakov@gmail.com>
4555 * tree-ssa-loop-ivopts.c (multiplier_allowed_in_address_p ): Check both
4556 [reg+mult*reg] and [mult*reg] to determine if multiplier is allowed.
4558 2013-10-24 Cong Hou <congh@google.com>
4560 * convert.c (convert_to_real): Guard those unsafe math function
4561 convertions with flag_unsafe_math_optimizations. Handle sqrt()
4564 2013-10-24 Markus Trippelsdorf <markus@trippelsdorf.de>
4567 * cgraph.c (cgraph_create_edge_1): Add indirect_unknown_callee
4569 (cgraph_create_edge): Use the new argument.
4570 (cgraph_create_indirect_edge): Likewise.
4572 2013-10-24 Joern Rennecke <joern.rennecke@embecosm.com>
4574 * config/arc/arc.c (arc_ccfsm_post_advance): Also handle
4576 (arc_ifcvt) <case 1 and 2>: Check that arc_ccfsm_post_advance
4577 changes statep->state.
4579 2013-10-24 Tobias Burnus <burnus@net-b.de>
4582 * tree-cfg.c (replace_loop_annotate): New function.
4583 (execute_build_cfg): Call it.
4584 * gimplify.c (gimple_boolify, gimplify_expr): Handle ANNOTATE_EXPR.
4585 * internal-fn.c (expand_ANNOTATE): New function.
4586 * internal-fn.def (ANNOTATE): Define as new internal function.
4587 * tree-core.h (tree_node_kind): Add annot_expr_ivdep_kind.
4588 * tree-pretty-print.c (dump_generic_node): Handle ANNOTATE_EXPR.
4589 * tree.def (ANNOTATE_EXPR): New DEFTREECODE.
4590 * doc/extend.texi (Pragmas): Document #pragma ivdep.
4591 * doc/generic.texi (Expressions): Document ANNOTATE_EXPR.
4593 2013-10-17 Ian Bolton <ian.bolton@arm.com>
4594 Marcus Shawcroft <marcus.shawcroft@arm.com>
4596 * config/aarch64/aarch64.c (aarch64_preferred_reload_class):
4597 Special case reload SP+C into none GENERAL_REGS.
4599 2013-10-24 Michael Matz <matz@suse.de>
4601 * gengtype.c (is_file_equal): Check that files will be same length.
4603 2013-10-25 Christian Bruel <christian.bruel@st.com>
4605 * config.gcc (sh-*): Add sh-mem.o to extra_obj.
4606 * config/sh/t-sh (sh-mem.o): New rule.
4607 * config/sh/sh-mem.cc (expand_block_move): Moved here.
4608 (sh_expand_cmpstr): New function.
4609 * config/sh/sh.c (force_into, expand_block_move): Move to sh-mem.c.
4610 * config/sh/sh-protos.h (sh_expand_cmpstr): Declare.
4611 * config/sh/sh.md (cmpstrsi, cmpstr_t): New patterns.
4612 (rotlhi3_8): Rename.
4614 2013-10-24 Jan-Benedict Glaw <jbglaw@lug-owl.de>
4616 * configure.ac (ZW_PROG_COMPILER_DEPENDENCIES): Use CXX instead of CC.
4617 * Makefile.in (CXXDEPMODE): Assign and change users.
4618 (CCDEPMODE): Delete.
4619 * configure: Regenerate.
4621 2013-10-23 David Malcolm <dmalcolm@redhat.com>
4623 * gengtype-parse.c (require_without_advance): New.
4624 (type): For GTY-marked types that are not GTY((user)), parse any
4625 base classes, requiring them to be single-inheritance, and not
4626 be templates. For non-GTY-marked types and GTY((user)),
4627 continue to skip over any C++ inheritance specification.
4628 * gengtype-state.c (state_writer::write_state_struct_type):
4629 Write base class of type (if any).
4630 (read_state_struct_type): Read base class of type (if any).
4631 * gengtype.c (new_structure): Add a "base_class" parameter.
4632 (create_optional_field_): Update for new parameter to new_structure.
4633 (adjust_field_rtx_def): Likewise.
4634 (adjust_field_tree_exp): Likewise.
4635 * gengtype.h (struct type): Add "base_class" field to the s
4637 (new_structure): Add "base" parameter.
4639 2013-10-23 Sriraman Tallam <tmsriram@google.com>
4642 * config/i386/i386.c (ix86_option_override_internal):
4643 Change TARGET_SSE2 to TARGET_SSE2_P (opts->...)
4644 (ix86_valid_target_attribute_tree):
4645 Change TARGET_64BIT to TARGET_64BIT_P (opts->...)
4646 Change TARGET_SSE to TARGET_SSE_P (opts->...)
4648 2013-10-23 Andrew MacLeod <amacleod@redhat.com>
4650 * tree-ssa-loop.h: Remove include files.
4651 * gengtype.c (open_base_files): Adjust include list for gtype-desc.c.
4652 * cfgloopmanip.c: Move required includes from tree-ssa-loop.h.
4653 * graphite-clast-to-gimple.c: Likewise.
4654 * graphite-scop-detection.c: Likewise.
4655 * graphite-sese-to-poly.c: Likewise.
4656 * ipa-inline-analysis.c: Likewise.
4657 * ipa-pure-const.c: Likewise.
4658 * loop-init.c: Likewise.
4659 * passes.c: Likewise.
4660 * predict.c: Likewise.
4661 * tree-cfg.c: Likewise.
4662 * tree-cfgcleanup.c: Likewise.
4663 * tree-chrec.c: Likewise.
4664 * tree-data-ref.c: Likewise.
4665 * tree-loop-distribution.c: Likewise.
4666 * tree-parloops.c: Likewise.
4667 * tree-predcom.c: Likewise.
4668 * tree-scalar-evolution.c: Likewise.
4669 * tree-ssa-address.c: Likewise.
4670 * tree-ssa.c: Likewise.
4671 * tree-ssa-dce.c: Likewise.
4672 * tree-ssa-loop.c: Likewise.
4673 * tree-ssa-loop-im.c: Likewise.
4674 * tree-ssa-loop-ivcanon.c: Likewise.
4675 * tree-ssa-loop-ivopts.c: Likewise.
4676 * tree-ssa-loop-manip.c: Likewise.
4677 * tree-ssa-loop-niter.c: Likewise.
4678 * tree-ssa-loop-prefetch.c: Likewise.
4679 * tree-ssa-loop-unswitch.c: Likewise.
4680 * tree-ssa-reassoc.c: Likewise.
4681 * tree-vect-data-refs.c: Likewise.
4682 * tree-vect-loop.c: Likewise.
4683 * tree-vect-loop-manip.c: Likewise.
4684 * tree-vectorizer.c: Likewise.
4685 * tree-vect-stmts.c: Likewise.
4686 * tree-vrp.c: Likewise.
4688 2013-10-23 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
4690 * config/rs6000/altivec.md (mulv8hi3): Adjust for little endian.
4692 2013-10-23 Jakub Jelinek <jakub@redhat.com>
4694 PR tree-optimization/58775
4695 PR tree-optimization/58791
4696 * tree-ssa-reassoc.c (reassoc_stmt_dominates_stmt_p): New function.
4697 (insert_stmt_after): Rewritten, don't move the stmt, but really
4699 (get_stmt_uid_with_default): Remove.
4700 (build_and_add_sum): Use insert_stmt_after and
4701 reassoc_stmt_dominates_stmt_p. Fix up uid if bb contains only labels.
4702 (update_range_test): Set uid on stmts added by
4703 force_gimple_operand_gsi. Don't immediately modify statements
4704 in inter-bb optimization, just update oe->op values.
4705 (optimize_range_tests): Return bool whether any changed have been made.
4706 (update_ops): New function.
4707 (struct inter_bb_range_test_entry): New type.
4708 (maybe_optimize_range_tests): Perform statement changes here.
4709 (not_dominated_by, appears_later_in_bb, get_def_stmt,
4710 ensure_ops_are_available): Remove.
4711 (find_insert_point): Rewritten.
4712 (rewrite_expr_tree): Remove MOVED argument, add CHANGED argument,
4713 return LHS of the (new resp. old) stmt. Don't call
4714 ensure_ops_are_available, don't reuse SSA_NAMEs, recurse first
4715 instead of last, move new stmt at the right place.
4716 (linearize_expr, repropagate_negates): Don't reuse SSA_NAMEs.
4717 (negate_value): Likewise. Set uids.
4718 (break_up_subtract_bb): Initialize uids.
4719 (reassociate_bb): Adjust rewrite_expr_tree caller.
4720 (do_reassoc): Don't call renumber_gimple_stmt_uids.
4722 2013-10-23 David Edelsohn <dje.gcc@gmail.com>
4725 * config/rs6000/rs6000.md (mulsi3_internal1 and splitter): Add
4726 TARGET_32BIT final condition.
4727 (mulsi3_internal2 and splitter): Same.
4729 2013-10-23 Jeff Law <law@redhat.com>
4731 * tree-ssa-threadedge.c (thread_across_edge): Do not allow threading
4732 through joiner blocks with abnormal outgoing edges.
4734 * tree-ssa-threadupdate.c (thread_block_1): Renamed from thread_block.
4735 Add parameter JOINERS, to allow/disallow threading through joiner
4737 (thread_block): New. Call thread_block_1.
4738 (mark_threaded_blocks): Remove code to filter out certain cases
4739 of threading through joiner blocks.
4740 (thread_through_all_blocks): Document how we can have a dangling
4741 edge AUX field and clear it.
4743 2013-10-23 Ian Lance Taylor <iant@google.com>
4745 * doc/invoke.texi (Option Summary): Remove -fno-default-inline.
4746 (C++ Dialect Options): Likewise.
4747 (Optimize Options): Likewise.
4749 2013-10-23 Tom de Vries <tom@codesourcery.com>
4751 PR tree-optimization/58805
4752 * tree-ssa-tail-merge.c (stmt_local_def): Add gimple_vdef check.
4754 2013-10-23 Jakub Jelinek <jakub@redhat.com>
4756 * tree-vect-patterns.c (vect_recog_divmod_pattern): Optimize
4757 sequence based on get_range_info returned range.
4759 2013-10-23 Andrew MacLeod <amacleod@redhat.com>
4761 * tree-ssa.h: Remove all #include's
4762 * gengtype.c (open_base_files): Adjust include list for gtype-desc.c.
4763 * alias.c: Move required includes from tree-ssa.h.
4765 * builtins.c: Likewise.
4766 * calls.c: Likewise.
4767 * cfgexpand.c: Likewise.
4768 * cfghooks.c: Likewise.
4769 * cfgloop.c: Likewise.
4770 * cfgloopmanip.c: Likewise.
4771 * cgraph.c: Likewise.
4772 * cgraphbuild.c: Likewise.
4773 * cgraphclones.c: Likewise.
4774 * cgraphunit.c: Likewise.
4776 * except.c: Likewise.
4778 * final.c: Likewise.
4779 * fold-const.c: Likewise.
4780 * ggc-page.c: Likewise.
4781 * gimple-builder.c: Likewise.
4782 * gimple-fold.c: Likewise.
4783 * gimple-iterator.c: Likewise.
4784 * gimple-low.c: Likewise.
4785 * gimple-pretty-print.c: Likewise.
4786 * gimple-ssa-strength-reduction.c: Likewise.
4787 * gimple-streamer-in.c: Likewise.
4788 * gimple-streamer-out.c: Likewise.
4789 * gimplify.c: Likewise.
4790 * graphite-blocking.c: Likewise.
4791 * graphite-clast-to-gimple.c: Likewise.
4792 * graphite-dependences.c: Likewise.
4793 * graphite-interchange.c: Likewise.
4794 * graphite-optimize-isl.c: Likewise.
4795 * graphite-poly.c: Likewise.
4796 * graphite-scop-detection.c: Likewise.
4797 * graphite-sese-to-poly.c: Likewise.
4798 * graphite.c: Likewise.
4799 * ipa-cp.c: Likewise.
4800 * ipa-inline-analysis.c: Likewise.
4801 * ipa-inline-transform.c: Likewise.
4802 * ipa-inline.c: Likewise.
4803 * ipa-prop.c: Likewise.
4804 * ipa-pure-const.c: Likewise.
4805 * ipa-reference.c: Likewise.
4806 * ipa-split.c: Likewise.
4807 * ipa-utils.c: Likewise.
4808 * loop-init.c: Likewise.
4809 * lto-cgraph.c: Likewise.
4810 * lto-section-in.c: Likewise.
4811 * lto-section-out.c: Likewise.
4812 * lto-streamer-in.c: Likewise.
4813 * lto-streamer-out.c: Likewise.
4814 * lto-streamer.c: Likewise.
4815 * omp-low.c: Likewise.
4816 * passes.c: Likewise.
4817 * predict.c: Likewise.
4818 * print-tree.c: Likewise.
4819 * profile.c: Likewise.
4821 * targhooks.c: Likewise.
4822 * tracer.c: Likewise.
4823 * trans-mem.c: Likewise.
4824 * tree-call-cdce.c: Likewise.
4825 * tree-cfg.c: Likewise.
4826 * tree-cfgcleanup.c: Likewise.
4827 * tree-chrec.c: Likewise.
4828 * tree-complex.c: Likewise.
4829 * tree-data-ref.c: Likewise.
4830 * tree-dfa.c: Likewise.
4831 * tree-eh.c: Likewise.
4832 * tree-emutls.c: Likewise.
4833 * tree-if-conv.c: Likewise.
4834 * tree-inline.c: Likewise.
4835 * tree-into-ssa.c: Likewise.
4836 * tree-loop-distribution.c: Likewise.
4837 * tree-mudflap.c: Likewise.
4838 * tree-nested.c: Likewise.
4839 * tree-nrv.c: Likewise.
4840 * tree-object-size.c: Likewise.
4841 * tree-outof-ssa.c: Likewise.
4842 * tree-parloops.c: Likewise.
4843 * tree-phinodes.c: Likewise.
4844 * tree-predcom.c: Likewise.
4845 * tree-pretty-print.c: Likewise.
4846 * tree-profile.c: Likewise.
4847 * tree-scalar-evolution.c: Likewise.
4848 * tree-sra.c: Likewise.
4849 * tree-ssa-address.c: Likewise.
4850 * tree-ssa-alias.c: Likewise.
4851 * tree-ssa-ccp.c: Likewise.
4852 * tree-ssa-coalesce.c: Likewise.
4853 * tree-ssa-copy.c: Likewise.
4854 * tree-ssa-copyrename.c: Likewise.
4855 * tree-ssa-dce.c: Likewise.
4856 * tree-ssa-dom.c: Likewise.
4857 * tree-ssa-dse.c: Likewise.
4858 * tree-ssa-forwprop.c: Likewise.
4859 * tree-ssa-ifcombine.c: Likewise.
4860 * tree-ssa-live.c: Likewise.
4861 * tree-ssa-loop-ch.c: Likewise.
4862 * tree-ssa-loop-im.c: Likewise.
4863 * tree-ssa-loop-ivcanon.c: Likewise.
4864 * tree-ssa-loop-ivopts.c: Likewise.
4865 * tree-ssa-loop-manip.c: Likewise.
4866 * tree-ssa-loop-niter.c: Likewise.
4867 * tree-ssa-loop-prefetch.c: Likewise.
4868 * tree-ssa-loop-unswitch.c: Likewise.
4869 * tree-ssa-loop.c: Likewise.
4870 * tree-ssa-math-opts.c: Likewise.
4871 * tree-ssa-operands.c: Likewise.
4872 * tree-ssa-phiopt.c: Likewise.
4873 * tree-ssa-phiprop.c: Likewise.
4874 * tree-ssa-pre.c: Likewise.
4875 * tree-ssa-propagate.c: Likewise.
4876 * tree-ssa-reassoc.c: Likewise.
4877 * tree-ssa-sccvn.c: Likewise.
4878 * tree-ssa-sink.c: Likewise.
4879 * tree-ssa-strlen.c: Likewise.
4880 * tree-ssa-structalias.c: Likewise.
4881 * tree-ssa-tail-merge.c: Likewise.
4882 * tree-ssa-ter.c: Likewise.
4883 * tree-ssa-threadedge.c: Likewise.
4884 * tree-ssa-threadupdate.c: Likewise.
4885 * tree-ssa-uncprop.c: Likewise.
4886 * tree-ssa-uninit.c: Likewise.
4887 * tree-ssa.c: Likewise.
4888 * tree-ssanames.c: Likewise.
4889 * tree-stdarg.c: Likewise.
4890 * tree-streamer-in.c: Likewise.
4891 * tree-switch-conversion.c: Likewise.
4892 * tree-tailcall.c: Likewise.
4893 * tree-vect-data-refs.c: Likewise.
4894 * tree-vect-generic.c: Likewise.
4895 * tree-vect-loop-manip.c: Likewise.
4896 * tree-vect-loop.c: Likewise.
4897 * tree-vect-patterns.c: Likewise.
4898 * tree-vect-slp.c: Likewise.
4899 * tree-vect-stmts.c: Likewise.
4900 * tree-vectorizer.c: Likewise.
4901 * tree-vrp.c: Likewise.
4904 * value-prof.c: Likewise.
4905 * var-tracking.c: Likewise.
4906 * varpool.c: Likewise.
4907 * vtable-verify.c: Likewise.
4909 2013-10-23 Jan-Benedict Glaw <jbglaw@lug-owl.de>
4911 * config/tilegx/tilegx.c: Include "tree.h".
4913 2013-10-23 Jakub Jelinek <jakub@redhat.com>
4915 * gimple-pretty-print.c (dump_ssaname_info): Always print "# " before
4916 the info, not after it.
4917 (gump_gimple_phi): Add COMMENT argument, if true, print "# " after
4918 dump_ssaname_info call.
4919 (pp_gimple_stmt_1): Adjust caller.
4920 (dump_phi_nodes): Likewise. Don't print "# " here.
4922 2013-10-22 Jan Hubicka <jh@suse.cz>
4924 * i386.h (TARGET_MISALIGNED_MOVE_STRING_PROLOGUES_EPILOGUES): New
4926 * x86-tune.def (TARGET_MISALIGNED_MOVE_STRING_PROLOGUES): Define it.
4927 * i386.c (expand_small_movmem_or_setmem): New function.
4928 (expand_set_or_movmem_prologue_epilogue_by_misaligned_moves): New
4930 (alg_usable_p): Add support for value ranges; cleanup.
4931 (ix86_expand_set_or_movmem): Add support for misaligned moves.
4933 2013-10-22 Sterling Augustine <saugustine@google.com>
4935 * doc/invoke.texi: Document -ggnu-pubnames.
4936 * common.opt: Add new option -ggnu-pubnames and modify -gpubnames
4938 * dwarf2out.c: Include gdb/gdb-index.h.
4939 (DEBUG_PUBNAMES_SECTION, DEBUG_PUBTYPES_SECTION): Handle
4940 debug_generate_pub_sections.
4941 (is_java, output_pubtables, output_pubname): New functions.
4942 (include_pubname_in_output): Handle debug_generate_pub_sections at
4944 (size_of_pubnames): Use new local space_for_flags based on
4945 debug_generate_pub_sections.
4946 (output_pubnames): Unify pubnames and pubtypes output logic.
4947 Genericize comments. Call output_pubname.
4948 (dwarf2out_finish): Move logic to output_pubnames and call it.
4950 2013-10-22 Uros Bizjak <ubizjak@gmail.com>
4953 * config/i386/i386.c (put_condition_code) <case GTU, case LEU>:
4954 Remove CCCmode handling.
4955 <case LTU>: Return 'c' suffix for CCCmode.
4956 <case GEU>: Return 'nc' suffix for CCCmode.
4957 (ix86_cc_mode) <case GTU, case LEU>: Do not generate overflow checks.
4958 * config/i386/i386.md (*sub<mode>3_cconly_overflow): Remove.
4959 (*sub<mode>3_cc_overflow): Ditto.
4960 (*subsi3_zext_cc_overflow): Ditto.
4962 2013-10-22 Steve Ellcey <sellcey@mips.com>
4964 * config/mips/mips.c (mips_rtx_costs): Fix cost estimate for nor
4965 (AND (NOT OP1) (NOT OP2)).
4967 2013-10-22 Bill Schmidt <wschmidt@vnet.ibm.com>
4969 * config/rs6000/rs6000.c (altivec_expand_vec_perm_const): Reverse
4970 meaning of merge-high and merge-low masks for little endian; avoid
4971 use of vector-pack masks for little endian for mismatched modes.
4973 2013-10-22 Jan-Benedict Glaw <jbglaw@lug-owl.de>
4975 * config/tilepro/tilepro.c: Include "tree.h".
4977 2013-10-22 Andreas Schwab <schwab@suse.de>
4979 * config/m68k/m68k.c (notice_update_cc): Handle register conflict
4982 2013-10-22 Paolo Carlini <paolo.carlini@oracle.com>
4984 * doc/contrib.texi ([Fran@,{c}ois Dumont], [Tim Shen],
4985 [Ed Smith-Rowland]): New entries.
4986 ([Stephen M. Webb]): Update.
4988 2013-10-22 Andrew MacLeod <amacleod@redhat.com>
4990 * tree-ssa-ter.h: Remove duplicate copy of file contents.
4992 2013-10-21 Marek Polacek <polacek@redhat.com>
4995 * fold-const.c (fold_range_test): Return 0 if the type is not
4998 2013-10-21 Richard Sandiford <rdsandiford@googlemail.com>
5000 * system.h: Move hwint.h include further down.
5001 * hwint.h (sext_hwi, zext_hwi): Define unconditionally. Add
5002 gcc_checking_asserts.
5003 * hwint.c (sext_hwi, zext_hwi): Delete ENABLE_CHECKING versions.
5005 2013-10-21 Bernd Edlinger <bernd.edlinger@hotmail.de>
5007 Fix volatile issues in optimize_bit_field_compare.
5008 * fold-const.c (optimize_bit_field_compare): Bail out if
5009 lvolatilep or rvolatilep.
5011 2013-10-21 Bernd Edlinger <bernd.edlinger@hotmail.de>
5013 Fix DECL_BIT_FIELD depencency on flag_strict_volatile_bitfields
5014 and get_inner_reference returning different pmode for non-volatile
5015 bit-field members dependent on flag_strict_volatile_bitfields.
5016 * stor-layout.c (layout_decl): Remove special handling of
5017 flag_strict_volatile_bitfields.
5018 * expr.c (get_inner_reference): Don't use DECL_BIT_FIELD
5019 if flag_strict_volatile_bitfields > 0 and TREE_THIS_VOLATILE.
5021 2013-10-21 Paulo Matos <pmatos@broadcom.com>
5023 * ipa-inline.c (edge_badness): Cap edge->count at max_count for badness
5026 2013-10-21 Jeff Law <law@redhat.com>
5028 * tree-ssa-threadedge.c (thread_through_normal_block): New
5029 argument VISITED. Remove VISISTED as a local variable. When we
5030 have a threadable jump, verify the destination of the jump has not
5032 (thread_across_edge): Allocate VISITED bitmap once at function
5033 scope and use it throughout. Make sure to set appropriate bits in
5034 VISITED for E (start of jump thread path).
5035 * tree-ssa-threadupdate.c (mark_threaded_blocks): Reject threading
5036 through a joiner if any edge on the path has a recorded jump thread.
5038 2013-10-21 Ian Lance Taylor <iant@google.com>
5040 * doc/invoke.texi (Optimize Options): For -fno-toplevel-reorder,
5041 don't imply that attributes can solve all problems.
5042 (Directory Options): Fix typo.
5044 2013-10-21 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
5046 * config/arm/arm.c (cortexa9_extra_costs): Update mult costs for
5047 extend and extend_add.
5049 2013-10-21 Richard Biener <rguenther@suse.de>
5051 PR tree-optimization/58794
5052 * fold-const.c (operand_equal_p): Compare FIELD_DECL operand
5053 of COMPONENT_REFs with OEP_CONSTANT_ADDRESS_OF left in place.
5055 2013-10-21 Richard Biener <rguenther@suse.de>
5058 * fold-const.c (fold_binary_loc): Fold ((T) (X /[ex] C)) * C
5059 to (T) X for sign-changing conversions (or no conversion).
5061 2013-10-20 Uros Bizjak <ubizjak@gmail.com>
5063 * config/i386/i386.md (kxnor<mode>): Add FLAGS_REG clobber.
5065 2013-10-20 Jan Hubicka <jh@suse.cz>
5067 * config/i386/i386-tune.def: Add comment; organize into categories
5069 2013-10-21 Michael Zolotukhin <michael.v.zolotukhin@gmail.com>
5071 * config/i386/i386.c (expand_set_or_movmem_via_loop): Add issetmem
5072 argument. Update function comment.
5073 (expand_set_or_movmem_via_rep): New function combining
5074 expand_movmem_via_rep_mov and expand_setmem_via_rep_stos.
5075 (expand_movmem_via_rep_mov): Remove.
5076 expand_setmem_via_rep_stos): Remove.
5077 (expand_movmem_epilogue): Update calls correspondingly.
5078 (expand_setmem_epilogue_via_loop): Likewise.
5080 (expand_setmem_epilogue): Add VEC_VALUE argument, refactor.
5081 (expand_set_or_movmem_prologue): New function combining
5082 expand_movmem_prologue and expand_setmem_prologue.
5083 (expand_movmem_prologue): Remove.
5084 (expand_setmem_prologue): Remove.
5085 (expand_set_or_movmem_constant_prologue): New function combining
5086 expand_constant_movmem_prologue and expand_constant_setmem_prologue.
5087 (expand_constant_movmem_prologue): Remove.
5088 (expand_constant_setmem_prologue): Remove.
5089 (promote_duplicated_reg): Allow vector-const0 value.
5090 (ix86_expand_set_or_movmem): New function combining ix86_expand_movmem
5091 and ix86_expand_setmem.
5092 (ix86_expand_movmem): Call ix86_expand_set_or_movmem.
5093 (ix86_expand_setmem): Call ix86_expand_set_or_movmem.
5095 2013-10-21 Diego Novillo <dnovillo@google.com>
5097 * asan.c: Include tree.h
5098 * bb-reorder.c: Likewise.
5099 * cfgcleanup.c: Likewise.
5100 * cfgloopmanip.c: Likewise.
5101 * data-streamer-in.c: Likewise.
5102 * data-streamer-out.c: Likewise.
5103 * data-streamer.c: Likewise.
5104 * dwarf2cfi.c: Likewise.
5105 * graphite-blocking.c: Likewise.
5106 * graphite-clast-to-gimple.c: Likewise.
5107 * graphite-dependences.c: Likewise.
5108 * graphite-interchange.c: Likewise.
5109 * graphite-optimize-isl.c: Likewise.
5110 * graphite-poly.c: Likewise.
5111 * graphite-scop-detection.c: Likewise.
5112 * graphite-sese-to-poly.c: Likewise.
5113 * graphite.c: Likewise.
5114 * ipa-devirt.c: Likewise.
5115 * ipa-profile.c: Likewise.
5118 * loop-init.c: Likewise.
5119 * loop-unroll.c: Likewise.
5120 * lower-subreg.c: Likewise.
5121 * lto/lto-object.c: Likewise.
5122 * recog.c: Likewise.
5123 * reginfo.c: Likewise.
5124 * tree-loop-distribution.c: Likewise.
5125 * tree-parloops.c: Likewise.
5126 * tree-ssa-strlen.c: Likewise.
5127 * tree-streamer.c: Likewise.
5128 * value-prof.c: Likewise.
5129 * target-globals.c: Likewise.
5130 * expr.h: Include tree-core.h instead of tree.h.
5131 * gimple.h: Likewise.
5132 * ipa-prop.h: Likewise.
5133 * ipa-utils.h: Likewise.
5134 * lto-streamer.h: Likewise.
5135 * streamer-hooks.h: Likewise.
5136 * ipa-reference.h: Include cgraph.h instead of tree.h.
5137 * cgraph.h: Include basic-block.h instead of tree.h.
5138 * tree-streamer.h: Do not include tree.h.
5139 * genattrtab.c (write_header): Generate inclusion of tree.h.
5140 * genautomata.c (main): Likewise.
5141 * genemit.c: Likewise.
5142 * genopinit.c: Likewise.
5143 * genoutput.c (output_prologue): Likewise.
5144 * genpeep.c: Likewise.
5146 2013-10-20 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
5148 * config/rs6000/altivec.md (vec_unpacku_hi_v16qi): Adjust for
5150 (vec_unpacku_hi_v8hi): Likewise.
5151 (vec_unpacku_lo_v16qi): Likewise.
5152 (vec_unpacku_lo_v8hi): Likewise.
5154 2013-10-20 Jan Hubicka <jh@suse.cz>
5156 * config/i386/x86-tune.def (X86_TUNE_SLOW_IMUL_IMM32_MEM,
5157 X86_TUNE_SLOW_IMUL_IMM8): Keep enabled only for K8 and AMDFAM10.
5158 (X86_TUNE_USE_VECTOR_FP_CONVERTS): Disable for generic.
5160 2013-10-20 Richard Sandiford <rdsandiford@googlemail.com>
5162 * config/mips/mips.h (ISA_HAS_WSBH): Define.
5163 * config/mips/mips.md (UNSPEC_WSBH, UNSPEC_DSBH, UNSPEC_DSHD): New
5165 (bswaphi2, bswapsi2, bswapdi2, wsbh, dsbh, dshd): New patterns.
5167 2013-10-19 John David Anglin <danglin@gcc.gnu.org>
5170 * system.h: Undef m_slot.
5172 2013-10-19 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
5174 * config/rs6000/rs6000.c (vspltis_constant): Make sure we check
5175 all elements for both endian flavors.
5177 2013-10-19 Uros Bizjak <ubizjak@gmail.com>
5180 * config/i386/i386.c (ix86_function_value_regno): Add DX_REG,
5181 ST1_REG and XMM1_REG for 32bit and 64bit targets. Also add DI_REG
5182 and SI_REG for 64bit SYSV ABI targets.
5184 2013-10-19 Uros Bizjak <ubizjak@gmail.com>
5186 * mode-switching.c (create_pre_exit): Rename maybe_builtin_apply
5187 to multi_reg_return. Clarify that we are skipping USEs of multiple
5188 return registers. Use bool type where appropriate.
5190 2013-10-18 Jan Hubicka <jh@suse.cz>
5192 * config/i386/i386.h (ACCUMULATE_OUTGOING_ARGS): Disable accumulation
5194 * x86-tune.def (X86_TUNE_USE_LEAVE): Update comment.
5195 (X86_TUNE_PUSH_MEMORY): Likewise.
5196 (X86_TUNE_AVX256_UNALIGNED_LOAD_OPTIMAL,
5197 X86_TUNE_AVX256_UNALIGNED_STORE_OPTIMAL): New.
5198 (X86_TUNE_ACCUMULATE_OUTGOING_ARGS, X86_TUNE_ALWAYS_FANCY_MATH_387):
5200 * i386.c (x86_accumulate_outgoing_args, x86_arch_always_fancy_math_387,
5201 x86_avx256_split_unaligned_load, x86_avx256_split_unaligned_store):
5203 (ix86_option_override_internal): Update to use tune features instead
5206 2013-10-18 Cong Hou <congh@google.com>
5208 PR tree-optimization/58508
5209 * tree-vect-loop-manip.c (vect_loop_versioning): Hoist loop invariant
5210 statement that contains data refs with zero-step.
5212 2013-10-18 Andrew MacLeod <amacleod@redhat.com>
5214 * tree-ssa.h: Don't include gimple-low.h, tree-ssa-address.h,
5215 sbitmap.h, tree-ssa-threadedge.h, tree-ssa-dom.h and tree-cfgcleanup.h.
5216 * gimple-low.c (gimple_check_call_arg,
5217 gimple_check_call_matching_types): Move to cgraph.c.
5218 * gimple-low.h: Remove prototype.
5219 * cgraph.c: (gimple_check_call_arg, gimple_check_call_matching_types):
5220 Relocate from gimple-low.c.
5221 * cgraph.h: Add prototype. Don't include basic-block.h.
5222 * gimplify.c: Add gimple-low to include list.
5223 * omp-low.c: Add gimple-low and tree-cfgcleanup.h to include list.
5224 * tree-eh.c: Add gimple-low to include list.
5225 * tree-nested.c: Likewise.
5226 * cfgexpand.c: Add tree-ssa-address.h to include list.
5228 * gimple-fold.c: Likewise.
5229 * gimple-ssa-strength-reduction.c: Likewise.
5230 * trans-mem.c: Likewise.
5231 * tree-mudflap.c: Likewise.
5232 * tree-ssa-loop-ivopts.c: Likewise.
5233 * tree-ssa-dom.c: Include tree-ssa-threadedge.h and tree-ssa-dom.h.
5234 (degenerate_phi_result): Move to tree-phinodes.c.
5235 * tree-ssa-loop-ch.c: Include tree-ssa-threadedge.h.
5236 * tree-ssa-threadedge.c: Likewise.
5237 * tree-vrp.c: Likewise.
5238 * tree-phinodes.c (degenerate_phi_result): Relocate here.
5239 * tree-ssa-dom.h (degenerate_phi_result): Remove Prototype.
5240 * tree-phinodes.h (degenerate_phi_result): Add prototype.
5241 * tree-ssa-copy.c: Include tree-ssa-dom.h.
5242 * tree-ssa-forwprop.c: Likewise.
5243 * tree-cfgcleanup.c (execute_cleanup_cfg_post_optimizing,
5244 pass_data_cleanup_cfg_post_optimizing,
5245 make_pass_cleanup_cfg_post_optimizing): Relocate from tree-optimize.c.
5246 * tree-optimize.c: Delete File.
5247 * graphite.c: Include tree-cfgcleanup.h.
5248 * passes.c: Likewise.
5249 * tree-cfg.c: Likewise.
5250 * tree-profile.c: Likewise.
5251 * tree-ssa-dse.c: Likewise.
5252 * tree-ssa-loop-ivcanon.c: Likewise.
5253 * tree-switch-conversion.c: Don't include tree-ssa-operands.h.
5254 * tree-outof-ssa.c: Include sbitmap.h.
5255 * tree-ssa-live.c: Likewise.
5256 * tree-ssa-propagate.c: Likewise.
5257 * tree-ssa-structalias.c: Likewise.
5258 * tree-stdarg.c: Likewise.
5259 * Makefile.in (OBJS): Delete tree-optimize.o.
5260 * basic-block.h (gcov_type, gcov_type_unsigned): Move to coretypes.h.
5261 * coretypes.h (gcov_type, gcov_type_unsigned): Relocate here.
5262 * varasm.c: Include basic-block.h.
5263 * cfgloop.h: Include function.h instead of basic-block.h
5264 (bb_loop_depth): Move to cfgloop.c.
5265 * cfgloop.c (bb_loop_depth): Relocate from cfgloop.h.
5267 2013-10-18 Teresa Johnson <tejohnson@google.com>
5269 * predict.c (probably_never_executed): Compare frequency-based
5270 count to number of training runs.
5271 * params.def (UNLIKELY_BB_COUNT_FRACTION): New parameter.
5273 2013-10-18 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
5275 * config/arm/arm.c (cortexa9_extra_costs): New table.
5276 (arm_cortex_a9_tune): Use cortexa9_extra_costs.
5278 2013-10-18 Jeff Law <law@redhat.com>
5280 * tree-ssa-threadupdate.c: Do not include "tm.h" or "tm_p.h".
5282 * tree-ssa-threadupdate.c: Include "dbgcnt.h".
5283 (register_jump_thread): Add "registered_jump_thread" debug
5285 * dbgcnt.def (registered_jump_thread): New debug counter.
5287 2013-10-18 Andrew MacLeod <amacleod@redhat.com>
5289 * config/rs6000/rs6000.c: Include cgraph.h.
5291 2013-10-18 Teresa Johnson <tejohnson@google.com>
5293 * tree-ssa-tail-merge.c (replace_block_by): Update edge
5294 weights during merging.
5296 2013-10-18 Andrew MacLeod <amacleod@redhat.com>
5298 * tree-cfg.h: Rename from tree-flow.h. Remove #includes.
5299 * tree-ssa.h: Relocate required #includes from tree-cfg.h.
5300 * tree-ssa-operands.h: Remove prototype.
5301 * tree-ssa-operands.c (virtual_operand_p): Move to gimple.c.
5302 * gimple.c (virtual_operand_p): Relocate from gimple.c.
5303 * gimple.h: Add prototype.
5304 * gimple-ssa.h: Include tree-ssa-operands.h.
5305 * tree-dump.c: Add tree-cfg.h to include list.
5306 * tree-ssa-alias.c: Add ipa-reference.h to include list.
5307 * config/alpha/alpha.c: Include gimple-ssa.h instead of tree-flow.h.
5308 * config/i386/i386.c: Don't include tree-flow.h.
5309 * config/rs6000/rs6000.c: Likewise.
5311 2013-10-18 Jan-Benedict Glaw <jbglaw@lug-owl.de>
5313 * config/frv/frv.c (frv_init_cumulative_args): Fix wrong cast.
5315 2013-10-18 Richard Biener <rguenther@suse.de>
5317 * stor-layout.c (layout_type): Do not change TYPE_PRECISION
5318 or TYPE_UNSIGNED of integral types.
5319 (set_min_and_max_values_for_integral_type): Leave TYPE_MIN/MAX_VALUE
5320 NULL_TREE for zero-precision integral types.
5322 2013-10-18 James Greenhalgh <james.greenhalgh@arm.com>
5324 * config/aarch64/arm_neon.h
5325 (vcvt<ds>_n_<fsu><32,64>_<fsu><32,64>): Correct argument types.
5327 2013-10-17 Sriraman Tallam <tmsriram@google.com>
5330 * opth-gen.awk: Define target_flags_explicit.
5332 2013-10-17 Michael Meissner <meissner@linux.vnet.ibm.com>
5334 * config/rs6000/rs6000.c (enum rs6000_reload_reg_type): Add new
5335 fields to the reg_addr array that describes the valid addressing
5336 mode for any register, general purpose registers, floating point
5337 registers, and Altivec registers.
5338 (FIRST_RELOAD_REG_CLASS): Likewise.
5339 (LAST_RELOAD_REG_CLASS): Likewise.
5340 (struct reload_reg_map_type): Likewise.
5341 (reload_reg_map_type): Likewise.
5342 (RELOAD_REG_VALID): Likewise.
5343 (RELOAD_REG_MULTIPLE): Likewise.
5344 (RELOAD_REG_INDEXED): Likewise.
5345 (RELOAD_REG_OFFSET): Likewise.
5346 (RELOAD_REG_PRE_INCDEC): Likewise.
5347 (RELOAD_REG_PRE_MODIFY): Likewise.
5348 (reg_addr): Likewise.
5349 (mode_supports_pre_incdec_p): New helper functions to say whether
5350 a given mode supports PRE_INC, PRE_DEC, and PRE_MODIFY.
5351 (mode_supports_pre_modify_p): Likewise.
5352 (rs6000_debug_vector_unit): Rearrange the -mdebug=reg output to
5353 print the valid address mode bits for each mode.
5354 (rs6000_debug_print_mode): Likewise.
5355 (rs6000_debug_reg_global): Likewise.
5356 (rs6000_setup_reg_addr_masks): New function to set up the address
5357 mask bits for each type.
5358 (rs6000_init_hard_regno_mode_ok): Use memset to clear arrays.
5359 Call rs6000_setup_reg_addr_masks to set up the address mask bits.
5360 (rs6000_legitimate_address_p): Use mode_supports_pre_incdec_p and
5361 mode_supports_pre_modify_p to determine if PRE_INC, PRE_DEC, and
5362 PRE_MODIFY are supported.
5363 (rs6000_output_move_128bit): Change to use {src,dest}_vmx_p for altivec
5364 registers, instead of {src,dest}_av_p.
5365 (rs6000_print_options_internal): Tweak the debug output slightly.
5367 2013-10-17 Uros Bizjak <ubizjak@gmail.com>
5369 * config/i386/sse.md (*vec_widen_smult_even_v8si): Remove
5372 2013-10-17 Andrew MacLeod <amacleod@redhat.com>
5374 * tree-flow.h (struct omp_region): Move to omp-low.c.
5375 Remove omp_ prototypes and variables.
5376 * gimple.h (omp_reduction_init): Move prototype to omp-low.h.
5377 (copy_var_decl): Relocate prototype from tree-flow.h.
5378 * gimple.c (copy_var_decl): Relocate from omp-low.c.
5379 * tree.h: Move prototype to omp-low.h.
5380 * omp-low.h: New File. Relocate prototypes here.
5381 * omp-low.c (struct omp_region): Make local here.
5382 (root_omp_region): Make static.
5383 (copy_var_decl) Move to gimple.c.
5384 (new_omp_region): Make static.
5385 (make_gimple_omp_edges): New. Refactored from tree-cfg.c make_edges.
5386 * tree-cfg.c: Include omp-low.h.
5387 (make_edges): Factor out OMP specific bits to make_gimple_omp_edges.
5388 * gimplify.c: Include omp-low.h.
5389 * tree-parloops.c: Likewise.
5391 2013-10-17 Uros Bizjak <ubizjak@gmail.com>
5393 * config/i386/i386.c (ix86_fixup_binary_operands): When both source
5394 operands are in memory, prefer to force non-matched operand 1 to
5397 2013-10-17 Michael Meissner <meissner@linux.vnet.ibm.com>
5400 * config/rs6000/rs6000.c (rs6000_legitimate_address_p): Only
5401 restrict TImode addresses to single indirect registers if both
5402 -mquad-memory and -mvsx-timode are used.
5403 (rs6000_output_move_128bit): Use quad_load_store_p to determine if
5404 we should emit load/store quad. Remove using %y for quad memory
5407 * config/rs6000/rs6000.md (mov<mode>_ppc64, TI/PTImode): Add
5408 constraints to allow load/store quad on machines where TImode is
5409 not allowed in VSX registers. Use 'n' instead of 'F' constraint
5410 for TImode to load integer constants.
5412 2013-10-17 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
5414 * config/aarch64/aarch64.c (aarch64_print_operand): Handle 'c'.
5416 2013-10-17 Marcus Shawcroft <marcus.shawcroft@arm.com>
5418 * config/aarch64/aarch64.c (aarch64_preferred_reload_class): Adjust
5419 handling of STACK_REG.
5421 2013-10-17 Richard Biener <rguenther@suse.de>
5423 PR tree-optimization/58143
5424 * tree-ssa-loop-im.c (arith_code_with_undefined_signed_overflow):
5426 (rewrite_to_defined_overflow): Likewise.
5427 (move_computations_dom_walker::before_dom): Rewrite stmts
5428 with undefined signed overflow that are not always executed
5429 into unsigned arithmetic.
5431 2013-10-16 Michael Meissner <meissner@linux.vnet.ibm.com>
5434 * config/rs6000/rs6000.opt (rs6000_isa_flags_explicit): Move the
5435 explicit isa flag to be an options variable, instead of using
5436 global_options_set. Remove define from rs6000.h.
5437 * config/rs6000/rs6000.h (rs6000_isa_flags_explicit): Likewise.
5439 * config/rs6000/rs6000.c (rs6000_option_override_internal):
5440 Initialize rs6000_isa_flags_explicit.
5441 (rs6000_function_specific_save): Add gcc_options* parameter, so
5442 that the powerpc builds after the 2013-10-15 changes.
5443 (rs6000_function_specific_restore): Likewise.
5445 2013-10-16 DJ Delorie <dj@redhat.com>
5447 * config/rl78/rl78.c (rl78_alloc_address_registers_macax): Verify
5448 op is a REG before checking REGNO.
5449 (rl78_alloc_physical_registers): Verify pattern is a SET before
5452 2013-10-16 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
5454 * config/rs6000/vector.md (vec_unpacks_hi_v4sf): Correct for
5456 (vec_unpacks_lo_v4sf): Likewise.
5457 (vec_unpacks_float_hi_v4si): Likewise.
5458 (vec_unpacks_float_lo_v4si): Likewise.
5459 (vec_unpacku_float_hi_v4si): Likewise.
5460 (vec_unpacku_float_lo_v4si): Likewise.
5462 2013-10-16 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
5464 * config/rs6000/vsx.md (vsx_concat_<mode>): Adjust output for LE.
5465 (vsx_concat_v2sf): Likewise.
5467 2013-10-16 James Greenhalgh <james.greenhalgh@arm.com>
5469 * config/aarch64/aarch64.md
5470 (*mov<mode>_aarch64): Fix output template for DUP (element) Scalar.
5472 2013-10-16 Andrew MacLeod <amacleod@redhat.com>
5474 PR tree-optimization/58697
5475 * cfgloop.c (get_estimated_loop_iterations_int): Rename from
5476 estimated_loop_iterations_int.
5477 (max_stmt_executions_int): Call get_max_loop_iterations_int.
5478 (get_max_loop_iterations_int): New. HWINT version of
5479 get_max_loop_iterations.
5480 * cfgloop.h: Add prototypes.
5481 * loop-iv.c (find_simple_exit): call get_estimated_loop_iterations_int.
5482 * loop-unroll.c (decide_peel_once_rolling): Call
5483 get_estimated_loop_iterations_int.
5484 * tree-ssa-loop-niter.c (estimated_loop_iterations_int): Add back.
5485 * tree-ssa-loop-niter.h: Tweak prototypes.
5487 2013-10-16 David Malcolm <dmalcolm@redhat.com>
5489 * gengtype-parse.c (struct_field_seq): Ignore access-control
5490 keywords ("public:" etc).
5492 2013-10-16 Marcus Shawcroft <marcus.shawcroft@arm.com>
5494 * config/aarch64/aarch64.c (aarch64_regno_regclass): Classify
5495 FRAME_POINTER_REGNUM and ARG_POINTER_REGNUM as POINTER_REGS.
5497 2013-10-16 Yvan Roux <yvan.roux@linaro.org>
5499 * config/arm/arm.opt (mlra): New option.
5500 * config/arm/arm.c (arm_lra_p): New function.
5501 (TARGET_LRA_P): Define.
5503 2013-10-16 Paulo Matos <pmatos@broadcom.com>
5505 * tree-core.h (tree_code_name): Remove.
5506 * tree.h (get_tree_code_name): New prototype.
5507 * tree.c (tree_code_name): Make static.
5508 (get_tree_code_name): New function.
5509 (dump_tree_statistics, tree_check_failed, tree_not_check_failed,
5510 tree_class_check_failed, tree_range_check_failed,
5511 tree_not_class_check_failed, omp_clause_check_failed,
5512 tree_contains_struct_check_failed, tree_operand_check_failed): Use new
5513 wrapper get_tree_code_name instead of calling tree_code_name directly.
5514 * tree-vrp.c (dump_asserts_for): Likewise.
5515 * tree-dump.c (dequeue_and_dump): Likewise.
5516 * tree-pretty-print.c (do_niy, dump_generic_node): Likewise.
5517 * tree-pretty-print.h (pp_unsupported_tree): Likewise.
5518 * lto-streamer-out.c (lto_write_tree, DFS_write_tree): Likewise.
5519 * tree-ssa-dom.c (print_expr_hash_elt): Likewise.
5520 * gimple-pretty-print.c (dump_unary_rhs, dump_binary_rhs,
5521 dump_ternary_rhs, dump_gimple_assign, dump_gimple_cond,
5522 dump_gimple_omp_for): Likewise.
5523 * tree-vect-data-refs.c (vect_create_data_ref_ptr): Likewise.
5524 * tree-ssa-pre.c (print_pre_expr): Likewise.
5525 * ipa-prop.c (ipa_print_node_jump_functions_for_edge): Likewise.
5526 * print-tree.c (print_node_brief, print_node): Likewise.
5527 * gimple.c (gimple_check_failed): Likewise.
5528 * lto-streamer.c (lto_tag_name, print_lto_report): Likewise.
5529 * config/frv/frv.c (frv_init_cumulative_args): Likewise.
5530 * config/mep/mep.c (mep_validate_vliw): Likewise.
5531 * config/iq2000/iq2000.c (init_cumulative_args): Likewise.
5532 * config/rs6000/rs6000.c (init_cumulative_args): Likewise.
5534 2013-10-16 Ganesh Gopalasubramanian <Ganesh.Gopalasubramanian@amd.com>
5536 * config/i386/i386.c (ix86_option_override_internal): Enable FMA4
5539 2013-10-16 Hans-Peter Nilsson <hp@axis.com>
5541 * config/cris/t-elfmulti (MULTILIB_OPTIONS, MULTILIB_DIRNAMES)
5542 (MULTILIB_MATCHES): Add multilib for -march=v8.
5544 2013-10-15 Sriraman Tallam <tmsriram@google.com>
5547 * optc-save-gen.awk: Add extra parameter to the save and restore
5549 * opth-gen.awk: Generate new TARGET_* macros to accept a parameter.
5550 * tree.c (build_optimization_node): New parameter. Add extra parameter
5551 to call to cl_optimization_save.
5552 (build_target_option_node): New parameter. Add extra parameter
5553 to call to cl_target_option_save.
5554 * tree.h (build_optimization_node): New parameter.
5555 (build_target_option_node): New parameter.
5556 * c-family/c-common.c (handle_optimize_attribute): Fix calls to
5557 build_optimization_node and build_target_option_node.
5558 * c-family/c-pragma.c (handle_pragma_optimize): Ditto.
5559 (handle_pragma_push_options): Ditto.
5560 * toplev.c (process_options): Ditto.
5561 * opts.c (init_options_struct): Check for opts_set non-null.
5562 * target.def (target_option.save): New parameter.
5563 (target_option.restore): New parameter.
5564 * tm.texi: Generate.
5565 * config/i386/i386-c.c (ix86_target_macros_internal): Ditto.
5566 (ix86_pragma_target_parse): Ditto.
5567 * config/i386/i386-protos.h (ix86_valid_target_attribute_tree): New
5569 * config/rs6000/rs6000.c (rs6000_option_override_internal): Fix calls
5570 to build_optimization_node and build_target_option_node.
5571 (rs6000_valid_attribute_p): Ditto.
5572 (rs6000_pragma_target_parse): Ditto.
5573 * config/i386/i386.opt (x_ix86_target_flags_explicit): New TargetSave
5575 * config/i386/i386.h:
5576 TARGET_64BIT_P: New Macro
5577 TARGET_MMX_P: New Macro.
5578 TARGET_3DNOW_P: New Macro.
5579 TARGET_3DNOW_A_P: New Macro.
5580 TARGET_SSE_P: New Macro.
5581 TARGET_SSE2_P: New Macro.
5582 TARGET_SSE3_P: New Macro.
5583 TARGET_SSSE3_P: New Macro.
5584 TARGET_SSE4_1_P: New Macro.
5585 TARGET_SSE4_2_P: New Macro.
5586 TARGET_AVX_P: New Macro.
5587 TARGET_AVX2_P: New Macro.
5588 TARGET_AVX512F_P: New Macro.
5589 TARGET_AVX512PF_P: New Macro.
5590 TARGET_AVX512ER_P: New Macro.
5591 TARGET_AVX512CD_P: New Macro.
5592 TARGET_FMA_P: New Macro.
5593 TARGET_SSE4A_P: New Macro.
5594 TARGET_FMA4_P: New Macro.
5595 TARGET_XOP_P: New Macro.
5596 TARGET_LWP_P: New Macro.
5597 TARGET_ABM_P: New Macro.
5598 TARGET_BMI_P: New Macro.
5599 TARGET_BMI2_P: New Macro.
5600 TARGET_LZCNT_P: New Macro.
5601 TARGET_TBM_P: New Macro.
5602 TARGET_POPCNT_P: New Macro.
5603 TARGET_SAHF_P: New Macro.
5604 TARGET_MOVBE_P: New Macro.
5605 TARGET_CRC32_P: New Macro.
5606 TARGET_AES_P: New Macro.
5607 TARGET_PCLMUL_P: New Macro.
5608 TARGET_CMPXCHG16B_P: New Macro.
5609 TARGET_FSGSBASE_P: New Macro.
5610 TARGET_RDRND_P: New Macro.
5611 TARGET_F16C_P: New Macro.
5612 TARGET_RTM_P: New Macro.
5613 TARGET_HLE_P: New Macro.
5614 TARGET_RDSEED_P: New Macro.
5615 TARGET_PRFCHW_P: New Macro.
5616 TARGET_ADX_P: New Macro.
5617 TARGET_FXSR_P: New Macro.
5618 TARGET_XSAVE_P: New Macro.
5619 TARGET_XSAVEOPT_P: New Macro.
5620 TARGET_LP64_P: New Macro.
5621 TARGET_X32_P: New Macro.
5622 TARGET_FPMATH_DEFAULT_P: New Macro.
5623 TARGET_FLOAT_RETURNS_IN_80387_P: New Macro.
5624 * config/i386/i386.c (ix86_option_override_internal): New parameters.
5626 Change ix86_tune_string to access opts->x_ix86_tune_string.
5627 Change ix86_isa_flags to access opts->x_ix86_isa_flags.
5628 Change ix86_arch_string to access opts->x_ix86_arch_string.
5629 Change ix86_stringop_alg to access opts->x_ix86_stringop_alg.
5630 Change ix86_pmode to access opts->x_ix86_pmode.
5631 Change ix86_abi to access opts->x_ix86_abi.
5632 Change ix86_cmodel to access opts->x_ix86_cmodel.
5633 Change ix86_asm_dialect to access opts->x_ix86_asm_dialect.
5634 Change ix86_isa_flags_explicit to access
5635 opts->x_ix86_isa_flags_explicit.
5636 Change ix86_dump_tunes to access opts->x_ix86_dump_tunes.
5637 Change ix86_regparm to access opts->x_ix86_regparm.
5638 Change ix86_branch_cost to access opts->x_ix86_branch_cost.
5639 Change ix86_preferred_stack_boundary_arg to access
5640 opts->x_ix86_preferred_stack_boundary_arg.
5641 Change ix86_force_align_arg_pointer to access
5642 opts->x_ix86_force_align_arg_pointer.
5643 Change ix86_incoming_stack_boundar_arg to access
5644 opts->x_ix86_incoming_stack_boundar_arg.
5645 Change ix86_fpmath to access opts->x_ix86_fpmath.
5646 Change ix86_veclibabi_type to access opts->x_ix86_veclibabi_type.
5647 Change ix86_recip_name to access opts->x_ix86_recip_name.
5648 Change ix86_stack_protector_guard to access
5649 opts->x_ix86_stack_protector_guard.
5650 Change ix86_tune_memcpy_strategy to access
5651 opts->x_ix86_tune_memcpy_strategy.
5652 Change ix86_tune_memset_strategy to access
5653 opts->x_ix86_tune_memset_strategy.
5654 Change global_options to access opts.
5655 Change global_options_set to access opts_set.
5656 Change TARGET_64BIT to TARGET_64BIT_P (opts->...).
5657 Change TARGET_MMX to TARGET_MMX_P (opts->...).
5658 Change TARGET_3DNOW to TARGET_3DNOW_P (opts->...).
5659 Change TARGET_3DNOW_A to TARGET_3DNOW_A_P (opts->...).
5660 Change TARGET_SSE to TARGET_SSE_P (opts->...).
5661 Change TARGET_SSE2 to TARGET_SSE2_P (opts->...).
5662 Change TARGET_SSE3 to TARGET_SSE3_P (opts->...).
5663 Change TARGET_SSSE3 to TARGET_SSSE3_P (opts->...).
5664 Change TARGET_SSE4_1 to TARGET_SSE4_1_P (opts->...).
5665 Change TARGET_SSE4_2 to TARGET_SSE4_2_P (opts->...).
5666 Change TARGET_AVX to TARGET_AVX_P (opts->...).
5667 Change TARGET_AVX2 to TARGET_AVX2_P (opts->...).
5668 Change TARGET_AVX512F to TARGET_AVX512F_P (opts->...).
5669 Change TARGET_AVX512PF to TARGET_AVX512PF_P (opts->...).
5670 Change TARGET_AVX512ER to TARGET_AVX512ER_P (opts->...).
5671 Change TARGET_AVX512CD to TARGET_AVX512CD_P (opts->...).
5672 Change TARGET_FMA to TARGET_FMA_P (opts->...).
5673 Change TARGET_SSE4A to TARGET_SSE4A_P (opts->...).
5674 Change TARGET_FMA4 to TARGET_FMA4_P (opts->...).
5675 Change TARGET_XOP to TARGET_XOP_P (opts->...).
5676 Change TARGET_LWP to TARGET_LWP_P (opts->...).
5677 Change TARGET_ABM to TARGET_ABM_P (opts->...).
5678 Change TARGET_BMI to TARGET_BMI_P (opts->...).
5679 Change TARGET_BMI2 to TARGET_BMI2_P (opts->...).
5680 Change TARGET_LZCNT to TARGET_LZCNT_P (opts->...).
5681 Change TARGET_TBM to TARGET_TBM_P (opts->...).
5682 Change TARGET_POPCNT to TARGET_POPCNT_P (opts->...).
5683 Change TARGET_SAHF to TARGET_SAHF_P (opts->...).
5684 Change TARGET_MOVBE to TARGET_MOVBE_P (opts->...).
5685 Change TARGET_CRC32 to TARGET_CRC32_P (opts->...).
5686 Change TARGET_AES to TARGET_AES_P (opts->...).
5687 Change TARGET_PCLMUL to TARGET_PCLMUL_P (opts->...).
5688 Change TARGET_CMPXCHG16B to TARGET_CMPXCHG16B_P (opts->...).
5689 Change TARGET_FSGSBASE to TARGET_FSGSBASE_P (opts->...).
5690 Change TARGET_RDRND to TARGET_RDRND_P (opts->...).
5691 Change TARGET_F16C to TARGET_F16C_P (opts->...).
5692 Change TARGET_RTM to TARGET_RTM_P (opts->...).
5693 Change TARGET_HLE to TARGET_HLE_P (opts->...).
5694 Change TARGET_RDSEED to TARGET_RDSEED_P (opts->...).
5695 Change TARGET_PRFCHW to TARGET_PRFCHW_P (opts->...).
5696 Change TARGET_ADX to TARGET_ADX_P (opts->...).
5697 Change TARGET_FXSR to TARGET_FXSR_P (opts->...).
5698 Change TARGET_XSAVE to TARGET_XSAVE_P (opts->...).
5699 Change TARGET_XSAVEOPT to TARGET_XSAVEOPT_P (opts->...).
5700 Change TARGET_LP64 to TARGET_LP64_P (opts->...).
5701 Change TARGET_X32 to TARGET_X32_P (opts->...).
5702 Change TARGET_FPMATH_DEFAULT to TARGET_FPMATH_DEFAULT_P (opts->...).
5703 Change TARGET_FLOAT_RETURNS_IN_80387 to
5704 TARGET_FLOAT_RETURNS_IN_80387_P (opts->...).
5705 (ix86_function_specific_save): New parameter. Use opts-> fields
5706 to replace global fields.
5707 (ix86_function_specific_restore): Ditto.
5708 (ix86_valid_target_attribute_inner_p): New parameters.
5710 Fix call to ix86_handle_option and set_option.
5711 (ix86_valid_target_attribute_tree): New parameters.
5712 Change global_options to access opts.
5713 Change global_options_set to access opts_set.
5714 Fix call to ix86_valid_target_attribute_inner_p.
5715 Change ix86_tune_string to access opts->x_ix86_tune_string.
5716 Change ix86_arch_string to access opts->x_ix86_arch_string.
5717 Change ix86_fpmath to access opts->x_ix86_fpmath
5718 Fix call to ix86_option_override_internal.
5719 Fix call to ix86_add_new_builtins.
5720 Fix calls to build_optimization_node and build_target_option_node.
5721 (ix86_valid_target_attribute_p): Remove access to global_options.
5722 Use new gcc_options structure func_options.
5723 Fix call to ix86_valid_target_attribute_tree.
5724 Fix call to build_optimization_node.
5725 (get_builtin_code_for_version): Fix call to
5726 ix86_valid_target_attribute_tree.
5728 2013-10-15 David Malcolm <dmalcolm@redhat.com>
5730 * Makefile.in (PICFLAG): New.
5731 (enable_host_shared): New.
5732 (INTERNAL_CFLAGS): Use PICFLAG.
5733 (LIBIBERTY): Use pic build of libiberty.a if configured with
5734 --enable-host-shared.
5735 * configure.ac: Add --enable-host-shared, setting up new
5737 * configure: Regenerate.
5738 * doc/install.texi (--enable-shared): Add note contrasting it with ...
5739 (--enable-host-shared): New option.
5741 2013-10-15 Richard Biener <rguenther@suse.de>
5743 * tree-tailcall.c (find_tail_calls): Don't use tail-call recursion
5744 for built-in functions.
5746 2013-10-15 Zhenqiang Chen <zhenqiang.chen@arm.com>
5748 * tree-ssa-reassoc.c: Include rtl.h and tm_p.h.
5749 (optimize_range_tests_1): New function,
5750 extracted from optimize_range_tests.
5751 (optimize_range_tests_xor): Similarly.
5752 (optimize_range_tests_diff): New function.
5753 (optimize_range_tests): Use optimize_range_tests_1.
5755 2013-10-15 Cong Hou <congh@google.com>
5757 * tree-vect-loop.c (vect_is_simple_reduction_1): Relax the
5758 requirement of the reduction pattern so that one operand of the
5759 reduction operation can come from outside of the loop.
5761 2013-10-15 James Greenhalgh <james.greenhalgh@arm.com>
5763 * config/arm/neon-schedgen.ml: Remove.
5764 * config/arm/cortex-a9-neon.md: Remove comment regarding
5767 2013-10-15 James Greenhalgh <james.greenhalgh@arm.com>
5769 * config/arm/types: Remove old neon types.
5771 2013-10-15 James Greenhalgh <james.greenhalgh@arm.com>
5773 * config/arm/cortex-a7.md
5774 (cortex_a7_neon_type): New.
5775 (cortex_a7_neon_mul): Update for new types.
5776 (cortex_a7_neon_mla): Likewise.
5777 (cortex_a7_neon): Likewise.
5779 2013-10-15 James Greenhalgh <james.greenhalgh@arm.com>
5781 * config/arm/cortex-a15-neon.md
5782 (cortex_a15_neon_type): New,
5784 (cortex_a15_neon_int_1): Remove.
5785 (cortex_a15_neon_int_2): Likewise.
5786 (cortex_a15_neon_int_3): Likewise.
5787 (cortex_a15_neon_int_4): Likewise.
5788 (cortex_a15_neon_int_5): Likewise.
5789 (cortex_a15_neon_vqneg_vqabs): Likewise.
5790 (cortex_a15_neon_vmov): Likewise.
5791 (cortex_a15_neon_vaba): Likewise.
5792 (cortex_a15_neon_vaba_qqq): Likewise.
5793 (cortex_a15_neon_mul_ddd_8_16_qdd_16_8_long_32_16_long): Likewise.
5794 (cortex_a15_neon_mul_qqq_8_16_32_ddd_32): Likewise.
5795 (cortex_a15_neon_mul_qdd_64_32_long_qqd_16_ddd_32_scalar_64_32_long_scalar):
5797 (cortex_a15_neon_mla_ddd_8_16_qdd_16_8_long_32_16_long): Likewise.
5798 (cortex_a15_neon_mla_qqq_8_16): Likewise.
5799 (cortex_a15_neon_mla_ddd_32_qqd_16_ddd_32_scalar): Likewise.
5800 (cortex_a15_neon_mla_qqq_32_qqd_32_scalar): Likewise.
5801 (cortex_a15_neon_mul_ddd_16_scalar_32_16_long_scalar): Likewise.
5802 (cortex_a15_neon_mul_qqd_32_scalar): Likewise.
5803 (cortex_a15_neon_mla_ddd_16_scalar_qdd_32_16_long_scalar): Likewise.
5804 (cortex_a15_neon_shift_1): Likewise.
5805 (cortex_a15_neon_shift_2): Likewise.
5806 (cortex_a15_neon_shift_3): Likewise.
5807 (cortex_a15_neon_vshl_ddd): Likewise.
5808 (cortex_a15_neon_vqshl_vrshl_vqrshl_qqq): Likewise.
5809 (cortex_a15_neon_vsra_vrsra): Likewise.
5810 (cortex_a15_neon_fp_vmla_ddd_scalar): Likewise.
5811 (cortex_a15_neon_fp_vmla_qqq_scalar): Likewise.
5812 (cortex_a15_neon_bp_3cycle): Likewise.
5813 (cortex_a15_neon_ldm_2): Likewise.
5814 (cortex_a15_neon_stm_2): Likewise.
5815 (cortex_a15_neon_mcr): Likewise.
5816 (cortex_a15_neon_mrc): Likewise.
5817 (cortex_a15_neon_fp_vadd_ddd_vabs_dd): Likewise.
5818 (cortex_a15_neon_fp_vadd_qqq_vabs_qq): Likewise.
5819 (cortex_a15_neon_fp_vmul_ddd): Likewise.
5820 (cortex_a15_neon_fp_vmul_qqd): Likewise.
5821 (cortex_a15_neon_fp_vmla_ddd): Likewise.
5822 (cortex_a15_neon_fp_vmla_qqq): Likewise.
5823 (cortex_a15_neon_fp_vmla_ddd_scalar): Likewise.
5824 (cortex_a15_neon_fp_vmla_qqq_scalar): Likewise.
5825 (cortex_a15_neon_fp_vrecps_vrsqrts_ddd): Likewise.
5826 (cortex_a15_neon_fp_vrecps_vrsqrts_qqq): Likewise.
5827 (cortex_a15_neon_bp_simple): Likewise.
5828 (cortex_a15_neon_bp_2cycle): Likewise.
5829 (cortex_a15_neon_bp_3cycle): Likewise.
5830 (cortex_a15_neon_vld1_1_2_regs): Likewise.
5831 (cortex_a15_neon_vld1_3_4_regs): Likewise.
5832 (cortex_a15_neon_vld2_2_regs_vld1_vld2_all_lanes): Likewise.
5833 (cortex_a15_neon_vld2_4_regs): Likewise.
5834 (cortex_a15_neon_vld3_vld4): Likewise.
5835 (cortex_a15_neon_vst1_1_2_regs_vst2_2_regs): Likewise.
5836 (cortex_a15_neon_vst1_3_4_regs): Likewise.
5837 (cortex_a15_neon_vst2_4_regs_vst3_vst4): Rename to...
5838 (cortex_a15_neon_vst2_4_regs_vst3): ...This, update for new attributes.
5839 (cortex_a15_neon_vst3_vst4): Rename to...
5840 (cortex_a15_neon_vst4): This, update for new attributes.
5841 (cortex_a15_neon_vld1_vld2_lane): Update for new attributes.
5842 (cortex_a15_neon_vld3_vld4_lane): Likewise.
5843 (cortex_a15_neon_vst1_vst2_lane): Likewise.
5844 (cortex_a15_neon_vst3_vst4_lane): Likewise.
5845 (cortex_a15_neon_vld3_vld4_all_lanes): Likewise.
5846 (cortex_a15_neon_ldm_2): Likewise.
5847 (cortex_a15_neon_stm_2): Likewise.
5848 (cortex_a15_neon_mcr): Likewise.
5849 (cortex_a15_neon_mcr_2_mcrr): Likewise.
5850 (cortex_a15_neon_mrc): Likewise.
5851 (cortex_a15_neon_mrrc): Likewise.
5853 (cortex_a15_neon_abd): New.
5854 (cortex_a15_neon_abd_q): Likewise.
5855 (cortex_a15_neon_aba): Likewise.
5856 (cortex_a15_neon_aba_q): Likewise.
5857 (cortex_a15_neon_acc): Likewise.
5858 (cortex_a15_neon_acc_q): Likewise.
5859 (cortex_a15_neon_arith_basic): Likewise.
5860 (cortex_a15_neon_arith_complex): Likewise.
5861 (cortex_a15_neon_multiply): Likewise.
5862 (cortex_a15_neon_multiply_q): Likewise.
5863 (cortex_a15_neon_mla): Likewise.
5864 (cortex_a15_neon_mla_q): Likewise.
5865 (cortex_a15_neon_sat_mla_long): Likewise.
5866 (cortex_a15_neon_shift_acc): Likewise.
5867 (cortex_a15_neon_shift_imm_basic): Likewise.
5868 (cortex_a15_neon_shift_imm_complex): Likewise.
5869 (cortex_a15_neon_shift_reg_basic): Likewise.
5870 (cortex_a15_neon_shift_reg_basic_q): Likewise.
5871 (cortex_a15_neon_shift_reg_complex): Likewise.
5872 (cortex_a15_neon_shift_reg_complex_q): Likewise.
5873 (cortex_a15_neon_fp_negabs): Likewise
5874 (cortex_a15_neon_fp_arith): Likewise
5875 (cortex_a15_neon_fp_arith_q): Likewise
5876 (cortex_a15_neon_fp_cvt_int): Likewise
5877 (cortex_a15_neon_fp_cvt_int_q): Likewise
5878 (cortex_a15_neon_fp_cvt_16): Likewise
5879 (cortex_a15_neon_fp_mul): Likewise
5880 (cortex_a15_neon_fp_mul_q): Likewise
5881 (cortex_a15_neon_fp_mla): Likewise
5882 (cortex_a15_neon_fp_mla_q): Likewise
5883 (cortex_a15_neon_fp_recps_rsqrte): Likewise.
5884 (cortex_a15_neon_fp_recps_rsqrte_q): Likewise.
5885 (cortex_a15_neon_bitops): Likewise.
5886 (cortex_a15_neon_bitops_q): Likewise.
5887 (cortex_a15_neon_from_gp): Likewise.
5888 (cortex_a15_neon_from_gp_q): Likewise.
5889 (cortex_a15_neon_tbl3_tbl4): Likewise.
5890 (cortex_a15_neon_zip_q): Likewise.
5891 (cortex_a15_neon_to_gp): Likewise.
5892 (cortex_a15_neon_load_a): Likewise.
5893 (cortex_a15_neon_load_b): Likewise.
5894 (cortex_a15_neon_load_c): Likewise.
5895 (cortex_a15_neon_load_d): Likewise.
5896 (cortex_a15_neon_load_e): Likewise.
5897 (cortex_a15_neon_load_f): Likewise.
5898 (cortex_a15_neon_store_a): Likewise.
5899 (cortex_a15_neon_store_b): Likewise.
5900 (cortex_a15_neon_store_c): Likewise.
5901 (cortex_a15_neon_store_d): Likewise.
5902 (cortex_a15_neon_store_e): Likewise.
5903 (cortex_a15_neon_store_f): Likewise.
5904 (cortex_a15_neon_store_g): Likewise.
5905 (cortex_a15_neon_store_h): Likewise.
5906 (cortex_a15_vfp_to_from_gp): Likewise.
5908 2013-10-15 James Greenhalgh <james.greenhalgh@arm.com>
5910 * config/arm/cortex-a9-neon.md (cortex_a9_neon_type): New.
5912 (cortex_a9_neon_vshl_ddd): Remove.
5913 (cortex_a9_neon_vst3_vst4): Likewise.
5914 (cortex_a9_neon_vld3_vld4_all_lanes): Likewise.
5916 (cortex_a9_neon_bit_ops_q): New.
5918 (cortex_a9_neon_int_1): Use cortex_a8_neon_type.
5919 (cortex_a9_neon_int_2): Likewise.
5920 (cortex_a9_neon_int_3): Likewise.
5921 (cortex_a9_neon_int_4): Likewise.
5922 (cortex_a9_neon_int_5): Likewise.
5923 (cortex_a9_neon_vqneg_vqabs): Likewise.
5924 (cortex_a9_neon_vmov): Likewise.
5925 (cortex_a9_neon_vaba): Likewise.
5926 (cortex_a9_neon_vaba_qqq): Likewise.
5927 (cortex_a9_neon_shift_1): Likewise.
5928 (cortex_a9_neon_shift_2): Likewise.
5929 (cortex_a9_neon_shift_3): Likewise.
5930 (cortex_a9_neon_vqshl_vrshl_vqrshl_qqq): Likewise.
5931 (cortex_a9_neon_vsra_vrsra): Likewise.
5932 (cortex_a9_neon_mul_ddd_8_16_qdd_16_8_long_32_16_long): Likewise.
5933 (cortex_a9_neon_mul_qqq_8_16_32_ddd_32): Likewise.
5934 (cortex_a9_neon_mul_qdd_64_32_long_qqd_16_ddd_32_scalar_64_32_long_scalar):
5936 (cortex_a9_neon_mla_ddd_8_16_qdd_16_8_long_32_16_long): Likewise.
5937 (cortex_a9_neon_mla_qqq_8_16): Likewise.
5938 (cortex_a9_neon_mla_ddd_32_qqd_16_ddd_32_scalar_qdd_64_32_long_scalar_qdd_64_32_long):
5940 (cortex_a9_neon_mla_qqq_32_qqd_32_scalar): Likewise.
5941 (cortex_a9_neon_mul_ddd_16_scalar_32_16_long_scalar): Likewise.
5942 (cortex_a9_neon_mul_qqd_32_scalar): Likewise.
5943 (cortex_a9_neon_mla_ddd_16_scalar_qdd_32_16_long_scalar): Likewise.
5944 (cortex_a9_neon_fp_vadd_ddd_vabs_dd): Likewise.
5945 (cortex_a9_neon_fp_vadd_qqq_vabs_qq): Likewise.
5946 (cortex_a9_neon_fp_vsum): Likewise.
5947 (cortex_a9_neon_fp_vmul_ddd): Likewise.
5948 (cortex_a9_neon_fp_vmul_qqd): Likewise.
5949 (cortex_a9_neon_fp_vmla_ddd): Likewise.
5950 (cortex_a9_neon_fp_vmla_qqq): Likewise.
5951 (cortex_a9_neon_fp_vmla_ddd_scalar): Likewise.
5952 (cortex_a9_neon_fp_vmla_qqq_scalar): Likewise.
5953 (cortex_a9_neon_fp_vrecps_vrsqrts_ddd): Likewise.
5954 (cortex_a9_neon_fp_vrecps_vrsqrts_qqq): Likewise.
5955 (cortex_a9_neon_bp_simple): Likewise.
5956 (cortex_a9_neon_bp_2cycle): Likewise.
5957 (cortex_a9_neon_bp_3cycle): Likewise.
5958 (cortex_a9_neon_ldr): Likewise.
5959 (cortex_a9_neon_str): Likewise.
5960 (cortex_a9_neon_vld1_1_2_regs): Likewise.
5961 (cortex_a9_neon_vld1_3_4_regs): Likewise.
5962 (cortex_a9_neon_vld2_2_regs_vld1_vld2_all_lanes): Likewise.
5963 (cortex_a9_neon_vld2_4_regs): Likewise.
5964 (cortex_a9_neon_vld3_vld4): Likewise.
5965 (cortex_a9_neon_vld1_vld2_lane): Likewise.
5966 (cortex_a9_neon_vld3_vld4_lane): Likewise.
5967 (cortex_a9_neon_vld3_vld4_all_lanes): Likewise.
5968 (cortex_a9_neon_vst1_1_2_regs_vst2_2_regs): Likewise.
5969 (cortex_a9_neon_vst1_3_4_regs): Likewise.
5970 (cortex_a9_neon_vst2_4_regs_vst3_vst4): Likewise.
5971 (cortex_a9_neon_vst1_vst2_lane): Likewise.
5972 (cortex_a9_neon_vst3_vst4_lane): Likewise.
5973 (cortex_a9_neon_mcr): Likewise.
5974 (cortex_a9_neon_mcr_2_mcrr): Likewise.
5975 (cortex_a9_neon_mrc): Likewise.
5976 (cortex_a9_neon_mrrc): Likewise.
5978 2013-10-15 James Greenhalgh <james.greenhalgh@arm.com>
5980 * config/arm/cortex-a8-neon.md (cortex_a8_neon_type): New.
5982 (cortex_a8_neon_vshl_ddd): Remove.
5983 (cortex_a8_neon_vst3_vst4): Likewise.
5984 (cortex_a8_neon_vld3_vld4_all_lanes): Likewise.
5986 (cortex_a8_neon_bit_ops_q): New.
5988 (cortex_a8_neon_int_1): Use cortex_a8_neon_type.
5989 (cortex_a8_neon_int_2): Likewise..
5990 (cortex_a8_neon_int_3): Likewise.
5991 (cortex_a8_neon_int_5): Likewise.
5992 (cortex_a8_neon_vqneg_vqabs): Likewise.
5993 (cortex_a8_neon_int_4): Likewise.
5994 (cortex_a8_neon_vaba): Likewise.
5995 (cortex_a8_neon_vaba_qqq): Likewise.
5996 (cortex_a8_neon_shift_1): Likewise.
5997 (cortex_a8_neon_shift_2): Likewise.
5998 (cortex_a8_neon_shift_3): Likewise.
5999 (cortex_a8_neon_vqshl_vrshl_vqrshl_qqq): Likewise.
6000 (cortex_a8_neon_vsra_vrsra): Likewise.
6001 (cortex_a8_neon_mul_ddd_8_16_qdd_16_8_long_32_16_long): Likewise.
6002 (cortex_a8_neon_mul_qqq_8_16_32_ddd_32): Likewise.
6003 (cortex_a8_neon_mul_qdd_64_32_long_qqd_16_ddd_32_scalar_64_32_long_scalar):
6005 (cortex_a8_neon_mla_ddd_8_16_qdd_16_8_long_32_16_long): Likewise.
6006 (cortex_a8_neon_mla_qqq_8_16): Likewise.
6007 (cortex_a8_neon_mla_ddd_32_qqd_16_ddd_32_scalar_qdd_64_32_long_scalar_qdd_64_32_long):
6009 (cortex_a8_neon_mla_qqq_32_qqd_32_scalar): Likewise.
6010 (cortex_a8_neon_mul_ddd_16_scalar_32_16_long_scalar): Likewise.
6011 (cortex_a8_neon_mul_qqd_32_scalar): Likewise.
6012 (cortex_a8_neon_mla_ddd_16_scalar_qdd_32_16_long_scalar): Likewise.
6013 (cortex_a8_neon_fp_vadd_ddd_vabs_dd): Likewise.
6014 (cortex_a8_neon_fp_vadd_qqq_vabs_qq): Likewise.
6015 (cortex_a8_neon_fp_vsum): Likewise.
6016 (cortex_a8_neon_fp_vmul_ddd): Likewise.
6017 (cortex_a8_neon_fp_vmul_qqd): Likewise.
6018 (cortex_a8_neon_fp_vmla_ddd): Likewise.
6019 (cortex_a8_neon_fp_vmla_qqq): Likewise.
6020 (cortex_a8_neon_fp_vmla_ddd_scalar): Likewise.
6021 (cortex_a8_neon_fp_vmla_qqq_scalar): Likewise.
6022 (cortex_a8_neon_fp_vrecps_vrsqrts_ddd): Likewise.
6023 (cortex_a8_neon_fp_vrecps_vrsqrts_qqq): Likewise.
6024 (cortex_a8_neon_bp_simple): Likewise.
6025 (cortex_a8_neon_bp_2cycle): Likewise.
6026 (cortex_a8_neon_bp_3cycle): Likewise.
6027 (cortex_a8_neon_ldr): Likewise.
6028 (cortex_a8_neon_str): Likewise.
6029 (cortex_a8_neon_vld1_1_2_regs): Likewise.
6030 (cortex_a8_neon_vld1_3_4_regs): Likewise.
6031 (cortex_a8_neon_vld2_2_regs_vld1_vld2_all_lanes): Likewise.
6032 (cortex_a8_neon_vld2_4_regs): Likewise.
6033 (cortex_a8_neon_vld3_vld4): Likewise.
6034 (cortex_a8_neon_vld1_vld2_lane): Likewise.
6035 (cortex_a8_neon_vld3_vld4_lane): Likewise.
6036 (cortex_a8_neon_vst1_1_2_regs_vst2_2_regs): Likewise.
6037 (cortex_a8_neon_vst1_3_4_regs): Likewise.
6038 (cortex_a8_neon_vst2_4_regs_vst3_vst4): Likewise.
6039 (cortex_a8_neon_vst1_vst2_lane): Likewise.
6040 (cortex_a8_neon_vst3_vst4_lane): Likewise.
6041 (cortex_a8_neon_mcr): Likewise.
6042 (cortex_a8_neon_mcr_2_mcrr): Likewise.
6043 (cortex_a8_neon_mrc): Likewise.
6044 (cortex_a8_neon_mrrc): Likewise.
6046 2013-10-15 James Greenhalgh <james.greenhalgh@arm.com>
6048 * config/aarch64/iterators.md (Vetype): Add SF and DF modes.
6050 * config/aarch64/aarch64-simd.md (neon_type): Remove.
6051 (aarch64_simd_dup<mode>): Add "type" attribute.
6052 (aarch64_dup_lane<mode>): Likewise.
6053 (aarch64_dup_lane_<vswap_width_name><mode>): Likewise.
6054 (*aarch64_simd_mov<mode>): Likewise.
6055 (aarch64_simd_mov_from_<mode>low): Likewise.
6056 (aarch64_simd_mov_from_<mode>high): Likewise.
6057 (orn<mode>3): Likewise.
6058 (bic<mode>3): Likewise.
6059 (add<mode>3): Likewise.
6060 (sub<mode>3): Likewise.
6061 (mul<mode>3): Likewise.
6062 (*aarch64_mul3_elt<mode>): Likewise.
6063 (*aarch64_mul3_elt_<vswap_width_name><mode>): Likewise.
6064 (*aarch64_mul3_elt_to_128df): Likewise.
6065 (*aarch64_mul3_elt_to_64v2df): Likewise.
6066 (neg<mode>2): Likewise.
6067 (abs<mode>2): Likewise.
6068 (abd<mode>_3): Likewise.
6069 (aba<mode>_3): Likewise.
6070 (fabd<mode>_3): Likewise.
6071 (*fabd_scalar<mode>3): Likewise.
6072 (and<mode>3): Likewise.
6073 (ior<mode>3): Likewise.
6074 (xor<mode>3): Likewise.
6075 (one_cmpl<mode>2): Likewise.
6076 (aarch64_simd_vec_set<mode>): Likewise.
6077 (aarch64_simd_lshr<mode>): Likewise.
6078 (aarch64_simd_ashr<mode>): Likewise.
6079 (aarch64_simd_imm_shl<mode>): Likewise.
6080 (aarch64_simd_reg_sshl<mode): Likewise.
6081 (aarch64_simd_reg_shl<mode>_unsigned): Likewise.
6082 (aarch64_simd_reg_shl<mode>_signed): Likewise.
6083 (aarch64_simd_vec_setv2di): Likewise.
6084 (aarch64_simd_vec_set<mode>): Likewise.
6085 (aarch64_mla<mode>): Likewise.
6086 (*aarch64_mla_elt<mode>): Likewise.
6087 (*aarch64_mla_elt_<vswap_width_name><mode>): Likewise.
6088 (aarch64_mls<mode>): Likewise.
6089 (*aarch64_mls_elt<mode>): Likewise.
6090 (*aarch64_mls_elt_<vswap_width_name><mode>): Likewise.
6091 (<su><maxmin><mode>3): Likewise.
6092 (move_lo_quad_<mode>): Likewise.
6093 (aarch64_simd_move_hi_quad_<mode>): Likewise.
6094 (aarch64_simd_vec_pack_trunc_<mode>): Likewise.
6095 (vec_pack_trunc_<mode>): Likewise.
6096 (aarch64_simd_vec_unpack<su>_lo_<mode>): Likewise.
6097 (aarch64_simd_vec_unpack<su>_hi_<mode>): Likewise.
6098 (*aarch64_<su>mlal_lo<mode>): Likewise.
6099 (*aarch64_<su>mlal_hi<mode>): Likewise.
6100 (*aarch64_<su>mlsl_lo<mode>): Likewise.
6101 (*aarch64_<su>mlsl_hi<mode>): Likewise.
6102 (*aarch64_<su>mlal<mode>): Likewise.
6103 (*aarch64_<su>mlsl<mode>): Likewise.
6104 (aarch64_simd_vec_<su>mult_lo_<mode>): Likewise.
6105 (aarch64_simd_vec_<su>mult_hi_<mode>): Likewise.
6106 (add<mode>3): Likewise.
6107 (sub<mode>3): Likewise.
6108 (mul<mode>3): Likewise.
6109 (div<mode>3): Likewise.
6110 (neg<mode>2): Likewise.
6111 (abs<mode>2): Likewise.
6112 (fma<mode>4): Likewise.
6113 (*aarch64_fma4_elt<mode>): Likewise.
6114 (*aarch64_fma4_elt_<vswap_width_name><mode>): Likewise.
6115 (*aarch64_fma4_elt_to_128df): Likewise.
6116 (*aarch64_fma4_elt_to_64v2df): Likewise.
6117 (fnma<mode>4): Likewise.
6118 (*aarch64_fnma4_elt<mode>): Likewise.
6119 (*aarch64_fnma4_elt_<vswap_width_name><mode>
6120 (*aarch64_fnma4_elt_to_128df): Likewise.
6121 (*aarch64_fnma4_elt_to_64v2df): Likewise.
6122 (<frint_pattern><mode>2): Likewise.
6123 (l<fcvt_pattern><su_optab><VDQF:mode><fcvt_target>2): Likewise.
6124 (<optab><fcvt_target><VDQF:VDQF:mode>2): Likewise.
6125 (vec_unpacks_lo_v4sf): Likewise.
6126 (aarch64_float_extend_lo_v2df): Likewise.
6127 (vec_unpacks_hi_v4sf): Likewise.
6128 (aarch64_float_truncate_lo_v2sf): Likewise.
6129 (aarch64_float_truncate_hi_v4sf): Likewise.
6130 (aarch64_vmls<mode>): Likewise.
6131 (<su><maxmin><mode>3): Likewise.
6132 (<maxmin_uns><mode>3): Likewise.
6133 (reduc_<sur>plus_<mode>): Likewise.
6134 (reduc_<sur>plus_v2di): Likewise.
6135 (reduc_<sur>plus_v2si): Likewise.
6136 (reduc_<sur>plus_<mode>): Likewise.
6137 (aarch64_addpv4sf): Likewise.
6138 (clz<mode>2): Likewise.
6139 (reduc_<maxmin_uns>_<mode>): Likewise.
6140 (reduc_<maxmin_uns>_v2di): Likewise.
6141 (reduc_<maxmin_uns>_v2si): Likewise.
6142 (reduc_<maxmin_uns>_<mode>): Likewise.
6143 (reduc_<maxmin_uns>_v4sf): Likewise.
6144 (aarch64_simd_bsl<mode>_internal): Likewise.
6145 (*aarch64_get_lane_extend<GPI:mode><VDQQH:mode>): Likewise.
6146 (*aarch64_get_lane_zero_extendsi<mode>): Likewise.
6147 (aarch64_get_lane<mode>): Likewise.
6148 (*aarch64_combinez<mode>): Likewise.
6149 (aarch64_combine<mode>): Likewise.
6150 (aarch64_simd_combine<mode>): Likewise.
6151 (aarch64_<ANY_EXTEND:su><ADDSUB:optab>l<mode>_hi_internal): Likewise.
6152 (aarch64_<ANY_EXTEND:su><ADDSUB:optab>l<mode>_lo_internal): Likewise.
6153 (aarch64_<ANY_EXTEND:su><ADDSUB:optab>l<mode>): Likewise.
6154 (aarch64_<ANY_EXTEND:su><ADDSUB:optab>w<mode>): Likewise.
6155 (aarch64_<ANY_EXTEND:su><ADDSUB:optab>w2<mode>_internal): Likewise.
6156 (aarch64_<sur>h<addsub><mode>): Likewise.
6157 (aarch64_<sur><addsub>hn<mode>): Likewise.
6158 (aarch64_<sur><addsub>hn2<mode>): Likewise.
6159 (aarch64_pmul<mode>): Likewise.
6160 (aarch64_<su_optab><optab><mode>): Likewise.
6161 (aarch64_<sur>qadd<mode>): Likewise.
6162 (aarch64_sqmovun<mode>): Likewise.
6163 (aarch64_<sur>qmovn<mode>): Likewise.
6164 (aarch64_s<optab><mode>): Likewise.
6165 (aarch64_sq<r>dmulh<mode>): Likewise.
6166 (aarch64_sq<r>dmulh_lane<mode>): Likewise.
6167 (aarch64_sq<r>dmulh_laneq<mode>): Likewise.
6168 (aarch64_sq<r>dmulh_lane<mode>): Likewise.
6169 (aarch64_sqdml<SBINQOPS:as>l<mode>): Likewise.
6170 (aarch64_sqdml<SBINQOPS:as>l_lane<mode>_internal): Likewise.
6171 (aarch64_sqdml<SBINQOPS:as>l_lane<mode>_internal): Likewise.
6172 (aarch64_sqdml<SBINQOPS:as>l_n<mode>): Likewise.
6173 (aarch64_sqdml<SBINQOPS:as>l2<mode>_internal): Likewise.
6174 (aarch64_sqdml<SBINQOPS:as>l2_lane<mode>_internal): Likewise.
6175 (aarch64_sqdml<SBINQOPS:as>l2_n<mode>_internal): Likewise.
6176 (aarch64_sqdmull<mode>): Likewise.
6177 (aarch64_sqdmull_lane<mode>_internal): Likewise.
6178 (aarch64_sqdmull_n<mode>): Likewise.
6179 (aarch64_sqdmull2<mode>_internal): Likewise.
6180 (aarch64_sqdmull2_lane<mode>_internal): Likewise.
6181 (aarch64_sqdmull2_n<mode>_internal): Likewise.
6182 (aarch64_<sur>shl<mode>): Likewise.
6183 (aarch64_<sur>q<r>shl<mode>
6184 (aarch64_<sur>shll_n<mode>): Likewise.
6185 (aarch64_<sur>shll2_n<mode>): Likewise.
6186 (aarch64_<sur>shr_n<mode>): Likewise.
6187 (aarch64_<sur>sra_n<mode>): Likewise.
6188 (aarch64_<sur>s<lr>i_n<mode>): Likewise.
6189 (aarch64_<sur>qshl<u>_n<mode>): Likewise.
6190 (aarch64_<sur>q<r>shr<u>n_n<mode>): Likewise.
6191 (aarch64_cm<optab><mode>): Likewise.
6192 (aarch64_cm<optab>di): Likewise.
6193 (aarch64_cm<optab><mode>): Likewise.
6194 (aarch64_cm<optab>di): Likewise.
6195 (aarch64_cmtst<mode>): Likewise.
6196 (aarch64_cmtstdi): Likewise.
6197 (aarch64_cm<optab><mode>): Likewise.
6198 (*aarch64_fac<optab><mode>): Likewise.
6199 (aarch64_addp<mode>): Likewise.
6200 (aarch64_addpdi): Likewise.
6201 (sqrt<mode>2): Likewise.
6202 (vec_load_lanesoi<mode>): Likewise.
6203 (vec_store_lanesoi<mode>): Likewise.
6204 (vec_load_lanesci<mode>): Likewise.
6205 (vec_store_lanesci<mode>): Likewise.
6206 (vec_load_lanesxi<mode>): Likewise.
6207 (vec_store_lanesxi<mode>): Likewise.
6208 (*aarch64_mov<mode>): Likewise.
6209 (aarch64_ld2<mode>_dreg): Likewise.
6210 (aarch64_ld2<mode>_dreg): Likewise.
6211 (aarch64_ld3<mode>_dreg): Likewise.
6212 (aarch64_ld3<mode>_dreg): Likewise.
6213 (aarch64_ld4<mode>_dreg): Likewise.
6214 (aarch64_ld4<mode>_dreg): Likewise.
6215 (aarch64_tbl1<mode>): Likewise.
6216 (aarch64_tbl2v16qi): Likewise.
6217 (aarch64_combinev16qi): Likewise.
6218 (aarch64_<PERMUTE:perm_insn><PERMUTE:perm_hilo><mode>): Likewise.
6219 (aarch64_st2<mode>_dreg): Likewise.
6220 (aarch64_st2<mode>_dreg): Likewise.
6221 (aarch64_st3<mode>_dreg): Likewise.
6222 (aarch64_st3<mode>_dreg): Likewise.
6223 (aarch64_st4<mode>_dreg): Likewise.
6224 (aarch64_st4<mode>_dreg): Likewise.
6225 (*aarch64_simd_ld1r<mode>): Likewise.
6226 (aarch64_frecpe<mode>): Likewise.
6227 (aarch64_frecp<FRECP:frecp_suffix><mode>): Likewise.
6228 (aarch64_frecps<mode>): Likewise.
6230 2013-10-15 James Greenhalgh <james.greenhalgh@arm.com>
6232 * config/arm/iterators.md (V_elem_ch): New.
6234 (VQH_type): Likewise.
6235 * config/arm/arm.md (is_neon_type): New.
6236 (conds): Use is_neon_type.
6237 (anddi3_insn): Update type attribute.
6238 (xordi3_insn): Likewise.
6239 (one_cmpldi2): Likewise.
6240 * config/arm/vfp.md (movhf_vfp_neon): Update type attribute.
6241 * config/arm/neon.md (neon_mov): Update type attribute.
6242 (*movmisalign<mode>_neon_store): Likewise.
6243 (*movmisalign<mode>_neon_load): Likewise.
6244 (vec_set<mode>_internal): Likewise.
6245 (vec_set<mode>_internal): Likewise.
6246 (vec_setv2di_internal): Likewise.
6247 (vec_extract<mode>): Likewise.
6248 (vec_extract<mode>): Likewise.
6249 (vec_extractv2di): Likewise.
6250 (*add<mode>3_neon): Likewise.
6251 (adddi3_neon): Likewise.
6252 (*sub<mode>3_neon): Likewise.
6253 (subdi3_neon): Likewise.
6254 (fma<VCVTF:mode>4): Likewise.
6255 (fma<VCVTF:mode>4_intrinsic): Likewise.
6256 (*fmsub<VCVTF:mode>4): Likewise.
6257 (fmsub<VCVTF:mode>4_intrinsic): Likewise.
6258 (neon_vrint<NEON_VRINT:nvrint_variant><VCVTF:mode>): Likewise.
6259 (ior<mode>3): Likewise.
6260 (and<mode>3): Likewise.
6261 (orn<mode>3_neon): Likewise.
6262 (orndi3_neon): Likewise.
6263 (bic<mode>3_neon): Likewise.
6264 (bicdi3_neon): Likewise.
6265 (xor<mode>3): Likewise.
6266 (one_cmpl<mode>2): Likewise.
6267 (abs<mode>2): Likewise.
6268 (neg<mode>2): Likewise.
6269 (negdi2_neon): Likewise.
6270 (*umin<mode>3_neon): Likewise.
6271 (*umax<mode>3_neon): Likewise.
6272 (*smin<mode>3_neon): Likewise.
6273 (*smax<mode>3_neon): Likewise.
6274 (vashl<mode>3): Likewise.
6275 (vashr<mode>3_imm): Likewise.
6276 (vlshr<mode>3_imm): Likewise.
6277 (ashl<mode>3_signed): Likewise.
6278 (ashl<mode>3_unsigned): Likewise.
6279 (neon_load_count): Likewise.
6280 (ashldi3_neon_noclobber): Likewise.
6281 (ashldi3_neon): Likewise.
6282 (signed_shift_di3_neon): Likewise.
6283 (unsigned_shift_di3_neon): Likewise.
6284 (ashrdi3_neon_imm_noclobber): Likewise.
6285 (lshrdi3_neon_imm_noclobber): Likewise.
6286 (<shift>di3_neon): Likewise.
6287 (widen_ssum<mode>3): Likewise.
6288 (widen_usum<mode>3): Likewise.
6289 (quad_halves_<code>v4si): Likewise.
6290 (quad_halves_<code>v4sf): Likewise.
6291 (quad_halves_<code>v8hi): Likewise.
6292 (quad_halves_<code>v16qi): Likewise.
6293 (reduc_splus_v2di): Likewise.
6294 (neon_vpadd_internal<mode>): Likewise.
6295 (neon_vpsmin<mode>): Likewise.
6296 (neon_vpsmax<mode>): Likewise.
6297 (neon_vpumin<mode>): Likewise.
6298 (neon_vpumax<mode>): Likewise.
6299 (*ss_add<mode>_neon): Likewise.
6300 (*us_add<mode>_neon): Likewise.
6301 (*ss_sub<mode>_neon): Likewise.
6302 (*us_sub<mode>_neon): Likewise.
6303 (neon_vadd<mode>_unspec): Likewise.
6304 (neon_vaddl<mode>): Likewise.
6305 (neon_vaddw<mode>): Likewise.
6306 (neon_vhadd<mode>): Likewise.
6307 (neon_vqadd<mode>): Likewise.
6308 (neon_vaddhn<mode>): Likewise.
6309 (neon_vmul<mode>): Likewise.
6310 (neon_vfms<VCVTF:mode>): Likewise.
6311 (neon_vmlal<mode>): Likewise.
6312 (neon_vmls<mode>): Likewise.
6313 (neon_vmlsl<mode>): Likewise.
6314 (neon_vqdmulh<mode>): Likewise.
6315 (neon_vqdmlal<mode>): Likewise.
6316 (neon_vqdmlsl<mode>): Likewise.
6317 (neon_vmull<mode>): Likewise.
6318 (neon_vqdmull<mode>): Likewise.
6319 (neon_vsub<mode>_unspec): Likewise.
6320 (neon_vsubl<mode>): Likewise.
6321 (neon_vsubw<mode>): Likewise.
6322 (neon_vqsub<mode>): Likewise.
6323 (neon_vhsub<mode>): Likewise.
6324 (neon_vsubhn<mode>): Likewise.
6325 (neon_vceq<mode>): Likewise.
6326 (neon_vcge<mode>): Likewise.
6327 (neon_vcgeu<mode>): Likewise.
6328 (neon_vcgt<mode>): Likewise.
6329 (neon_vcgtu<mode>): Likewise.
6330 (neon_vcle<mode>): Likewise.
6331 (neon_vclt<mode>): Likewise.
6332 (neon_vcage<mode>): Likewise.
6333 (neon_vcagt<mode>): Likewise.
6334 (neon_vtst<mode>): Likewise.
6335 (neon_vabd<mode>): Likewise.
6336 (neon_vabdl<mode>): Likewise.
6337 (neon_vaba<mode>): Likewise.
6338 (neon_vabal<mode>): Likewise.
6339 (neon_vmax<mode>): Likewise.
6340 (neon_vmin<mode>): Likewise.
6341 (neon_vpaddl<mode>): Likewise.
6342 (neon_vpadal<mode>): Likewise.
6343 (neon_vpmax<mode>): Likewise.
6344 (neon_vpmin<mode>): Likewise.
6345 (neon_vrecps<mode>): Likewise.
6346 (neon_vrsqrts<mode>): Likewise.
6347 (neon_vqabs<mode>): Likewise.
6348 (neon_vqneg<mode>): Likewise.
6349 (neon_vcls<mode>): Likewise.
6350 (clz<mode>2): Likewise.
6351 (popcount<mode>2): Likewise.
6352 (neon_vrecpe<mode>): Likewise.
6353 (neon_vrsqrte<mode>): Likewise.
6354 (neon_vget_lane<mode>_sext_internal): Likewise.
6355 (neon_vget_lane<mode>_zext_internal): Likewise.
6356 (neon_vdup_n<mode>): Likewise.
6357 (neon_vdup_n<mode>): Likewise.
6358 (neon_vdup_nv2di): Likewise.
6359 (neon_vdup_lane<mode>_interal): Likewise.
6360 (*neon_vswp<mode>): Likewise.
6361 (neon_vcombine<mode>): Likewise.
6362 (float<mode><V_cvtto>2): Likewise.
6363 (floatuns<mode><V_cvtto>2): Likewise.
6364 (fix_trunc<mode><V_cvtto>2): Likewise.
6365 (fixuns_trunc<mode><V_cvtto>2
6366 (neon_vcvt<mode>): Likewise.
6367 (neon_vcvt<mode>): Likewise.
6368 (neon_vcvtv4sfv4hf): Likewise.
6369 (neon_vcvtv4hfv4sf): Likewise.
6370 (neon_vcvt_n<mode>): Likewise.
6371 (neon_vcvt_n<mode>): Likewise.
6372 (neon_vmovn<mode>): Likewise.
6373 (neon_vqmovn<mode>): Likewise.
6374 (neon_vqmovun<mode>): Likewise.
6375 (neon_vmovl<mode>): Likewise.
6376 (neon_vmul_lane<mode>): Likewise.
6377 (neon_vmul_lane<mode>): Likewise.
6378 (neon_vmull_lane<mode>): Likewise.
6379 (neon_vqdmull_lane<mode>): Likewise.
6380 (neon_vqdmulh_lane<mode>): Likewise.
6381 (neon_vqdmulh_lane<mode>): Likewise.
6382 (neon_vmla_lane<mode>): Likewise.
6383 (neon_vmla_lane<mode>): Likewise.
6384 (neon_vmlal_lane<mode>): Likewise.
6385 (neon_vqdmlal_lane<mode>): Likewise.
6386 (neon_vmls_lane<mode>): Likewise.
6387 (neon_vmls_lane<mode>): Likewise.
6388 (neon_vmlsl_lane<mode>): Likewise.
6389 (neon_vqdmlsl_lane<mode>): Likewise.
6390 (neon_vext<mode>): Likewise.
6391 (neon_vrev64<mode>): Likewise.
6392 (neon_vrev32<mode>): Likewise.
6393 (neon_vrev16<mode>): Likewise.
6394 (neon_vbsl<mode>_internal): Likewise.
6395 (neon_vshl<mode>): Likewise.
6396 (neon_vqshl<mode>): Likewise.
6397 (neon_vshr_n<mode>): Likewise.
6398 (neon_vshrn_n<mode>): Likewise.
6399 (neon_vqshrn_n<mode>): Likewise.
6400 (neon_vqshrun_n<mode>): Likewise.
6401 (neon_vshl_n<mode>): Likewise.
6402 (neon_vqshl_n<mode>): Likewise.
6403 (neon_vqshlu_n<mode>): Likewise.
6404 (neon_vshll_n<mode>): Likewise.
6405 (neon_vsra_n<mode>): Likewise.
6406 (neon_vsri_n<mode>): Likewise.
6407 (neon_vsli_n<mode>): Likewise.
6408 (neon_vtbl1v8qi): Likewise.
6409 (neon_vtbl2v8qi): Likewise.
6410 (neon_vtbl3v8qi): Likewise.
6411 (neon_vtbl4v8qi): Likewise.
6412 (neon_vtbl1v16qi): Likewise.
6413 (neon_vtbl2v16qi): Likewise.
6414 (neon_vcombinev16qi): Likewise.
6415 (neon_vtbx1v8qi): Likewise.
6416 (neon_vtbx2v8qi): Likewise.
6417 (neon_vtbx3v8qi): Likewise.
6418 (neon_vtbx4v8qi): Likewise.
6419 (*neon_vtrn<mode>_insn): Likewise.
6420 (*neon_vzip<mode>_insn): Likewise.
6421 (*neon_vuzp<mode>_insn): Likewise.
6422 (neon_vld1<mode>): Likewise.
6423 (neon_vld1_lane<mode>): Likewise.
6424 (neon_vld1_lane<mode>): Likewise.
6425 (neon_vld1_dup<mode>): Likewise.
6426 (neon_vld1_dup<mode>): Likewise.
6427 (neon_vld1_dupv2di): Likewise.
6428 (neon_vst1<mode>): Likewise.
6429 (neon_vst1_lane<mode>): Likewise.
6430 (neon_vst1_lane<mode>): Likewise.
6431 (neon_vld2<mode>): Likewise.
6432 (neon_vld2<mode>): Likewise.
6433 (neon_vld2_lane<mode>): Likewise.
6434 (neon_vld2_lane<mode>): Likewise.
6435 (neon_vld2_dup<mode>): Likewise.
6436 (neon_vst2<mode>): Likewise.
6437 (neon_vst2<mode>): Likewise.
6438 (neon_vst2_lane<mode>): Likewise.
6439 (neon_vst2_lane<mode>): Likewise.
6440 (neon_vld3<mode>): Likewise.
6441 (neon_vld3qa<mode>): Likewise.
6442 (neon_vld3qb<mode>): Likewise.
6443 (neon_vld3_lane<mode>): Likewise.
6444 (neon_vld3_lane<mode>): Likewise.
6445 (neon_vld3_dup<mode>): Likewise.
6446 (neon_vst3<mode>): Likewise.
6447 (neon_vst3qa<mode>): Likewise.
6448 (neon_vst3qb<mode>): Likewise.
6449 (neon_vst3_lane<mode>): Likewise.
6450 (neon_vst3_lane<mode>): Likewise.
6451 (neon_vld4<mode>): Likewise.
6452 (neon_vld4qa<mode>): Likewise.
6453 (neon_vld4qb<mode>): Likewise.
6454 (neon_vld4_lane<mode>): Likewise.
6455 (neon_vld4_lane<mode>): Likewise.
6456 (neon_vld4_dup<mode>): Likewise.
6457 (neon_vst4<mode>): Likewise.
6458 (neon_vst4qa<mode>): Likewise.
6459 (neon_vst4qb<mode>): Likewise.
6460 (neon_vst4_lane<mode>): Likewise.
6461 (neon_vst4_lane<mode>): Likewise.
6462 (neon_vec_unpack<US>_lo_<mode>): Likewise.
6463 (neon_vec_unpack<US>_hi_<mode>): Likewise.
6464 (neon_vec_<US>mult_lo_<mode>): Likewise.
6465 (neon_vec_<US>mult_hi_<mode>): Likewise.
6466 (neon_vec_<US>shiftl_<mode>): Likewise.
6467 (neon_unpack<US>_<mode>): Likewise.
6468 (neon_vec_<US>mult_<mode>): Likewise.
6469 (vec_pack_trunc_<mode>): Likewise.
6470 (neon_vec_pack_trunc_<mode>): Likewise.
6471 (neon_vabd<mode>_2): Likewise.
6472 (neon_vabd<mode>_3): Likewise.
6474 2013-10-15 James Greenhalgh <james.greenhalgh@arm.com>
6476 * config/aarch64/aarch64.md (movtf_aarch64): Update type attribute.
6477 (load_pair): Update type attribute.
6478 (store_pair): Update type attribute.
6479 * config/aarch64/iterators.md (q): New.
6481 2013-10-15 James Greenhalgh <james.greenhalgh@arm.com>
6483 * config/arm/types.md: Add new types for Neon insns.
6485 2013-10-15 Alexander Ivchenko <alexander.ivchenko@intel.com>
6486 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
6487 Sergey Lega <sergey.s.lega@intel.com>
6488 Anna Tikhonova <anna.tikhonova@intel.com>
6489 Ilya Tocar <ilya.tocar@intel.com>
6490 Andrey Turetskiy <andrey.turetskiy@intel.com>
6491 Ilya Verbin <ilya.verbin@intel.com>
6492 Kirill Yukhin <kirill.yukhin@intel.com>
6493 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
6495 * config/i386/sse.md (unspec): Add UNSPEC_RCP14, UNSPEC_RSQRT14,
6496 UNSPEC_FIXUPIMM, UNSPEC_SCALEF, UNSPEC_GETEXP, UNSPEC_GETMANT,
6497 UNSPEC_EXP2, UNSPEC_RCP28, UNSPEC_RSQRT28.
6499 (srcp14<mode>): Ditto.
6500 (rsqrt14<mode>): Ditto.
6501 (rsqrt14<mode>): Ditto.
6502 (avx512f_vmscalef<mode>): Ditto.
6503 (avx512f_scalef<mode>): Ditto.
6504 (avx512f_getexp<mode>): Ditto.
6505 (avx512f_sgetexp<mode>): Ditto.
6506 (avx512f_fixupimm<mode>): Ditto.
6507 (avx512f_sfixupimm<mode>): Ditto.
6508 (avx512f_rndscale<mode>): Ditto.
6509 (*avx512er_exp2<mode>): Ditto.
6510 (*avx512er_rcp28<mode>): Ditto.
6511 (avx512er_rsqrt28<mode>): Ditto.
6512 (avx512f_getmant<mode>): Ditto.
6513 (avx512f_getmant<mode>): Ditto.
6514 (avx512f_rndscale<mode>): Fix formatting.
6516 2013-10-15 Martin Jambor <mjambor@suse.cz>
6518 * ipa-utils.h (ipa_edge_within_scc): Declare.
6519 * ipa-cp.c (edge_within_scc): Moved...
6520 * ipa-utils.c (ipa_edge_within_scc): ...here. Updated all callers.
6522 2013-10-15 Alexander Ivchenko <alexander.ivchenko@intel.com>
6523 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
6524 Sergey Lega <sergey.s.lega@intel.com>
6525 Anna Tikhonova <anna.tikhonova@intel.com>
6526 Ilya Tocar <ilya.tocar@intel.com>
6527 Andrey Turetskiy <andrey.turetskiy@intel.com>
6528 Ilya Verbin <ilya.verbin@intel.com>
6529 Kirill Yukhin <kirill.yukhin@intel.com>
6530 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
6532 * config/i386/predicates.md (const_8_to_15_operand): New.
6533 (const_16_to_31_operand): Ditto.
6534 * config/i386/sse.md (V8FI): New.
6536 (reduc_splus_v8df): Ditto.
6537 (reduc_splus_v16sf): Ditto.
6538 (avx512f_vextract<shuffletype>32x4_1): Ditto.
6539 (vec_extract_hi_<mode>): Ditto.
6540 (avx512f_vinsert<shuffletype>32x4_1): Ditto.
6541 (vec_set_lo_<mode>): Ditto.
6542 (vec_set_hi_<mode>): Ditto.
6543 (avx512f_shuf_<shuffletype>64x2_1): Ditto.
6544 (avx512f_shuf_<shuffletype>32x4_1): Ditto.
6545 (avx512f_pshufd_1): Ditto.
6546 (avx512f_broadcast<mode>): Ditto.
6547 (avx512f_broadcast<mode>): Ditto.
6548 (define_split): Split vec_extract_lo into move.
6549 (ssequartermode): Ditto.
6550 (ssedoublemode): Extened with wider modes.
6551 (vec_extract_lo_<mode>): Ditto.
6553 2013-10-15 Alexander Ivchenko <alexander.ivchenko@intel.com>
6554 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
6555 Sergey Lega <sergey.s.lega@intel.com>
6556 Anna Tikhonova <anna.tikhonova@intel.com>
6557 Ilya Tocar <ilya.tocar@intel.com>
6558 Andrey Turetskiy <andrey.turetskiy@intel.com>
6559 Ilya Verbin <ilya.verbin@intel.com>
6560 Kirill Yukhin <kirill.yukhin@intel.com>
6561 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
6563 * config/i386/predicates.md (register_or_constm1_operand): New.
6564 * config/i386/sse.md (unspec): Add UNSPEC_UNSIGNED_PCMP, UNSPEC_TESTM,
6565 UNSPEC_TESTNM, UNSPEC_VTERNLOG, UNSPEC_ALIGN, UNSPEC_CONFLICT,
6566 UNSPEC_MASKED_EQ, UNSPEC_MASKED_GT, UNSPEC_GATHER_PREFETCH,
6567 UNSPEC_SCATTER_PREFETCH
6569 (avx512f_ucmp<mode>3): Ditto.
6570 (avx512f_vternlog<mode>): Ditto.
6571 (avx512f_align<mode>): Ditto.
6572 (<shift_insn><mode>3): Ditto.
6573 (avx512f_<rotate>v<mode>): Ditto.
6574 (avx512f_<rotate><mode>): Ditto.
6575 (avx512f_eq<mode>3): Ditto.
6576 (avx512f_eq<mode>3_1): Ditto.
6577 (avx512f_gt<mode>3): Ditto.
6578 (avx512f_testm<mode>3): Ditto.
6579 (avx512f_testnm<mode>3): Ditto.
6580 (avx512pf_gatherpf<mode>): Ditto.
6581 (*avx512pf_gatherpf<mode>_mask): Ditto.
6582 (*avx512pf_gatherpf<mode>): Ditto.
6583 (avx512pf_scatterpf<mode>): Ditto.
6584 (*avx512pf_scatterpf<mode>_mask): Ditto.
6585 (*avx512pf_scatterpf<mode>): Ditto.
6586 (avx512f_vec_dup_gpr<mode>): Ditto.
6587 (clz<mode>2): Ditto.
6588 (conflict<mode>): Ditto.
6589 (REDUC_SMINMAX_MODE): Extened with wider modes.
6590 (reduc_<code>_<mode>): Ditto.
6591 (vlshr<mode>3): Ditto.
6592 (vashl<mode>3): Ditto.
6594 2013-10-15 Alexander Ivchenko <alexander.ivchenko@intel.com>
6595 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
6596 Sergey Lega <sergey.s.lega@intel.com>
6597 Anna Tikhonova <anna.tikhonova@intel.com>
6598 Ilya Tocar <ilya.tocar@intel.com>
6599 Andrey Turetskiy <andrey.turetskiy@intel.com>
6600 Ilya Verbin <ilya.verbin@intel.com>
6601 Kirill Yukhin <kirill.yukhin@intel.com>
6602 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
6604 * config/i386/sse.md (unspec): Added UNSPEC_VPERMI2, UNSPEC_VPERMT2,
6607 (avx512fmaskmode): Ditto.
6608 (bcstscalarsuff): Ditto.
6609 (avx512f_blendm<mode>): Ditto.
6610 (cmp_imm_predicate): Ditto.
6611 (avx512f_cmp<mode>3): Ditto.
6612 (avx512f_vec_dup<mode>): Ditto.
6613 (avx512f_vec_dup_mem<mode>): Ditto.
6614 (avx512f_vpermi2var<mode>3): Ditto.
6615 (avx512f_vpermt2var<mode>3): Ditto.
6616 (vec_init<mode>): Ditto.
6617 (avx512f_gathersi<mode>): Ditto.
6618 (*avx512f_gathersi<mode>): Ditto.
6619 (*avx512f_gathersi<mode>_2): Ditto.
6620 (avx512f_gatherdi<mode>): Ditto.
6621 (*avx512f_gatherdi<mode>): Ditto.
6622 (*avx512f_gatherdi<mode>_2): Ditto.
6623 (avx512f_scattersi<mode>): Ditto.
6624 (*avx512f_scattersi<mode>): Ditto.
6625 (avx512f_scatterdi<mode>): Ditto.
6626 (*avx512f_scatterdi<mode>): Ditto.
6627 (sseintprefix): Extened with wider modes.
6628 (VEC_GATHER_IDXSI): Ditto.
6629 (VEC_GATHER_IDXDI): Ditto.
6630 (VEC_GATHER_SRCDI): Ditto.
6632 2013-10-15 Matthew Gretton-Dann <matthew.gretton-dann@arm.com>
6633 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
6635 * config/arm/t-aprofile: New file.
6636 * config.gcc: Handle --with-multilib-list option.
6638 2013-10-15 Bernd Schmidt <bernds@codesourcery.com>
6640 * reload1.c (reloads_unique_chain_p): Ensure that r1 is
6643 2013-10-15 Richard Biener <rguenther@suse.de>
6645 * tree-loop-distribution.c (build_empty_rdg): Inline into
6647 (rdg_flag_vertex): Inline into single user.
6648 (rdg_flag_vertex_and_dependent): Likewise.
6649 (build_rdg_partition_for_vertex): Remove processed bitmap.
6650 (rdg_build_partitions): Simplify.
6652 2013-10-15 Richard Biener <rguenther@suse.de>
6654 * tree-ssa-forwprop.c (forward_propagate_addr_expr_1):
6655 Restructure forwarding through conversions and copies to
6656 avoid performing copy-propagation the wrong way. Adjust
6657 recursion invocations.
6658 (forward_propagate_addr_expr): Add argument stating if we
6659 are recursing from a single-use.
6660 (ssa_forward_propagate_and_combine): Adjust.
6662 2013-10-14 David Malcolm <dmalcolm@redhat.com>
6664 * dumpfile.h (gcc::dump_manager): New class, to hold state
6665 relating to dumpfile management.
6666 (get_dump_file_name): Remove in favor of method of dump_manager.
6667 (dump_initialized_p): Likewise.
6668 (dump_start): Likewise.
6669 (dump_finish): Likewise.
6670 (dump_switch_p): Likewise.
6671 (dump_register): Likewise.
6672 (get_dump_file_info): Likewise.
6673 * context.c (gcc::context::context): Construct the dump_manager
6675 * context.h (gcc::context::get_dumps): New.
6676 (gcc::context::m_dumps): New.
6677 * coverage.c (coverage_init): Port to dump_manager API.
6678 * dumpfile.c (extra_dump_files): Convert to field of gcc::dump_manager.
6679 (extra_dump_files_in_use): Likewise.
6680 (extra_dump_files_alloced): Likewise.
6681 (gcc::dump_manager::dump_manager): New.
6682 (dump_register): Convert to...
6683 (gcc::dump_manager::dump_register): ...method, replacing
6684 function-static next_dump with m_next_dump field.
6685 (get_dump_file_info): Convert to...
6686 (gcc::dump_manager::get_dump_file_info): ...method.
6687 (get_dump_file_name): Convert to...
6688 (gcc::dump_manager::get_dump_file_name): ...method.
6689 (dump_start): Convert to...
6690 (gcc::dump_manager::dump_start): ...method.
6691 (dump_finish): Convert to...
6692 (gcc::dump_manager::dump_finish): ...method.
6693 (dump_begin): Replace body with...
6694 (gcc::dump_manager::dump_begin): ...new method.
6695 (dump_phase_enabled_p): Convert to...
6696 (gcc::dump_manager::dump_phase_enabled_p): ...method.
6697 (dump_phase_enabled_p): Convert to...
6698 (gcc::dump_manager::dump_phase_enabled_p): ...method.
6699 (dump_initialized_p): Convert to...
6700 (gcc::dump_manager::dump_initialized_p): ...method.
6701 (dump_flag_name): Replace body with...
6702 (gcc::dump_manager::dump_flag_name): ...new method.
6703 (dump_enable_all): Convert to...
6704 (gcc::dump_manager::dump_enable_all): ...new method.
6705 (opt_info_enable_passes): Convert to...
6706 (gcc::dump_manager::opt_info_enable_passes): ...new method.
6707 (dump_switch_p_1): Convert to...
6708 (gcc::dump_manager::dump_switch_p_1): ...new method.
6709 (dump_switch_p): Convert to...
6710 (gcc::dump_manager::dump_switch_p): ...new method.
6711 (opt_info_switch_p): Port to dump_manager API.
6712 (enable_rtl_dump_file): Likewise.
6713 * opts-global.c (handle_common_deferred_options): Port to new
6715 * passes.c (pass_manager::finish_optimization_passes): Likewise.
6716 (pass_manager::register_one_dump_file): Likewise.
6717 (pass_manager::register_pass): Likewise.
6718 (pass_init_dump_file): Likewise.
6719 (pass_fini_dump_file): Likewise.
6720 * statistics.c (statistics_early_init): Likewise.
6722 2013-10-14 Richard Biener <rguenther@suse.de>
6724 * gimple.c (gimple_canonical_types, canonical_type_hash_cache,
6725 iterative_hash_canonical_type, gimple_canonical_type_hash,
6726 gimple_canonical_types_compatible_p, gimple_canonical_type_eq,
6727 gimple_register_canonical_type, print_gimple_types_stats,
6728 free_gimple_type_tables): Move to lto/lto.c
6729 (gt-gimple.h): Do not include.
6730 * gimple.h (gimple_register_canonical_type,
6731 print_gimple_types_stats, free_gimple_type_tables): Remove.
6732 * Makefile.in (GTFILES): Remove gimple.c.
6734 2013-10-14 Travis Snoozy <quandary@remstate.com>
6737 * config/msp430/msp430.c (msp430_option_override): Correct thinko
6738 scanning for msp430x targets.
6740 2013-10-14 Eric Botcazou <ebotcazou@adacore.com>
6743 * config/sparc/sparc-protos.h (widen_mem_for_ldd_peep): Declare.
6744 (registers_ok_for_ldd_peep): Move around.
6745 * config/sparc/sparc.c (widen_mem_for_ldd_peep): New.
6746 * config/sparc/sparc.md (widening peepholes): Use it.
6748 2013-10-14 Richard Biener <rguenther@suse.de>
6752 * gimple.c (iterative_hash_canonical_type): Make sure to
6753 record the hash into the correct hashtable slot.
6755 2013-10-13 Eric Botcazou <ebotcazou@adacore.com>
6757 PR rtl-optimization/58662
6758 * combine.c (try_combine): Take into account death nodes on I2 when
6759 splitting a PARALLEL of two independent SETs. Fix dump message.
6761 2013-10-12 Oleg Endo <olegendo@gcc.gnu.org>
6764 * config/sh/sh_treg_combine.cc: New SH specific RTL pass.
6765 * config.gcc (SH extra_objs): Add sh_ifcvt.o.
6766 * config/sh/t-sh (sh_treg_combine.o): New entry.
6767 * config/sh/sh.c (sh_fixed_condition_code_regs): New function that
6768 implements the target hook TARGET_FIXED_CONDITION_CODE_REGS.
6769 (register_sh_passes): New function. Register sh_treg_combine pass.
6770 (sh_option_override): Invoke it.
6771 (sh_canonicalize_comparison): Handle op0_preserve_value.
6772 * sh.md (*cbranch_t"): Do not try to optimize missed test and branch
6773 opportunities. Canonicalize branch condition.
6774 (nott): Allow only if pseudos can be created for non-SH2A.
6776 2013-10-12 H.J. Lu <hongjiu.lu@intel.com>
6779 * config/i386/i386.c (ix86_copy_addr_to_reg): New function.
6780 (ix86_expand_movmem): Replace copy_addr_to_reg with
6781 ix86_copy_addr_to_reg.
6782 (ix86_expand_setmem): Likewise.
6784 2013-10-12 Alexander Monakov <amonakov@ispras.ru>
6786 * config/i386/i386.c (ix86_expand_sse_compare_and_jump): Use mode
6787 provided by ix86_fp_compare_mode instead of CCFPUmode.
6789 2013-10-12 James Greenhalgh <james.greenhalgh@arm.com>
6791 * config/aarch64/arm_neon.h
6792 (vtbx<1,3>_<psu>8): Fix register constriants.
6794 2013-10-11 Jeff Law <law@redhat.com>
6796 PR tree-optimization/58640
6797 * tree-ssa-threadupdate.c (mark_threaded_blocks): Truncate jump
6798 threading paths that cross over two loop entry points.
6800 2013-10-11 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
6802 * config/rs6000/vsx.md (*vsx_le_perm_load_v2di): Generalize to
6803 handle vector float as well.
6804 (*vsx_le_perm_load_v4si): Likewise.
6805 (*vsx_le_perm_store_v2di): Likewise.
6806 (*vsx_le_perm_store_v4si): Likewise.
6808 2013-10-11 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
6810 * config/rs6000/vector.md (vec_realign_load<mode>): Generate vperm
6811 directly to circumvent subtract from splat{31} workaround.
6812 * config/rs6000/rs6000-protos.h (altivec_expand_vec_perm_le): New
6814 * config/rs6000/rs6000.c (altivec_expand_vec_perm_le): New.
6815 * config/rs6000/altivec.md (define_c_enum "unspec"): Add
6816 UNSPEC_VPERM_X and UNSPEC_VPERM_UNS_X.
6817 (altivec_vperm_<mode>): Convert to define_insn_and_split to
6818 separate big and little endian logic.
6819 (*altivec_vperm_<mode>_internal): New define_insn.
6820 (altivec_vperm_<mode>_uns): Convert to define_insn_and_split to
6821 separate big and little endian logic.
6822 (*altivec_vperm_<mode>_uns_internal): New define_insn.
6823 (vec_permv16qi): Add little endian logic.
6825 2013-10-11 Marc Glisse <marc.glisse@inria.fr>
6827 * doc/extend.texi (returns_nonnull): Remove arguments.
6829 2013-10-11 Alexander Ivchenko <alexander.ivchenko@intel.com>
6830 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
6831 Sergey Lega <sergey.s.lega@intel.com>
6832 Anna Tikhonova <anna.tikhonova@intel.com>
6833 Ilya Tocar <ilya.tocar@intel.com>
6834 Andrey Turetskiy <andrey.turetskiy@intel.com>
6835 Ilya Verbin <ilya.verbin@intel.com>
6836 Kirill Yukhin <kirill.yukhin@intel.com>
6837 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
6839 * config/i386/sse.md (VI48F_256_512): New.
6840 (avx2_permvar<mode>): Change to ...
6841 (<avx2_avx512f>_permvar<mode>): This.
6843 2013-10-11 Alexander Ivchenko <alexander.ivchenko@intel.com>
6844 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
6845 Sergey Lega <sergey.s.lega@intel.com>
6846 Anna Tikhonova <anna.tikhonova@intel.com>
6847 Ilya Tocar <ilya.tocar@intel.com>
6848 Andrey Turetskiy <andrey.turetskiy@intel.com>
6849 Ilya Verbin <ilya.verbin@intel.com>
6850 Kirill Yukhin <kirill.yukhin@intel.com>
6851 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
6853 * config/i386/i386.c (bdesc_args): Change corresponding pattern for
6854 __builtin_ia32_cvtps2dq, __builtin_ia32_cvtps2dq256.
6855 * config/i386/sse.md (VI4_AVX): New.
6856 (sf2simodelower): Ditto.
6857 (sse2_cvtps2dq): Change to ...
6858 (<sse2_avx_avx512f>_fix_notrunc<sf2simodelower><mode>): This.
6860 2013-10-11 Alexander Ivchenko <alexander.ivchenko@intel.com>
6861 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
6862 Sergey Lega <sergey.s.lega@intel.com>
6863 Anna Tikhonova <anna.tikhonova@intel.com>
6864 Ilya Tocar <ilya.tocar@intel.com>
6865 Andrey Turetskiy <andrey.turetskiy@intel.com>
6866 Ilya Verbin <ilya.verbin@intel.com>
6867 Kirill Yukhin <kirill.yukhin@intel.com>
6868 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
6870 * config/i386/sse.md (V_512): New.
6872 (vcond<V_512:mode><VF_512:mode>): Ditto.
6873 (vcond<V_512:mode><VI_512:mode>): Ditto.
6874 (vcondu<V_512:mode><VI_512:mode>): Ditto.
6876 2013-10-11 Alexander Ivchenko <alexander.ivchenko@intel.com>
6877 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
6878 Sergey Lega <sergey.s.lega@intel.com>
6879 Anna Tikhonova <anna.tikhonova@intel.com>
6880 Ilya Tocar <ilya.tocar@intel.com>
6881 Andrey Turetskiy <andrey.turetskiy@intel.com>
6882 Ilya Verbin <ilya.verbin@intel.com>
6883 Kirill Yukhin <kirill.yukhin@intel.com>
6884 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
6886 * config/i386/i386.c (ix86_rtx_costs): Enable fma for TARGET_AVX512F.
6887 * config/i386/sse.md (FMAMODEM): Changed modes and conditions.
6889 (fma<mode>4): Removed condition.
6890 (fms<mode>4): Ditto.
6891 (fnma<mode>4): Ditto.
6892 (fnms<mode>4): Ditto.
6893 (fma4i_fmadd_<mode>): Ditto.
6894 (*fma_fmadd_<mode>): Ditto.
6895 (*fma_fmsub_<mode>): Ditto.
6896 (*fma_fnmadd_<mode>): Ditto.
6897 (*fma_fnmsub_<mode>): Ditto.
6898 (fmaddsub_<mode>): Allow for TARGET_AVX512F.
6899 (*fma_fmaddsub_<mode>): Ditto.
6900 (*fma_fmsubadd_<mode>): Ditto.
6901 (*fmai_fmadd_<mode>): Ditto.
6902 (*fmai_fmsub_<mode>): Ditto.
6903 (*fmai_fnmadd_<mode>): Ditto.
6904 (*fmai_fnmsub_<mode>): Ditto.
6906 2013-10-11 Alexander Ivchenko <alexander.ivchenko@intel.com>
6907 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
6908 Sergey Lega <sergey.s.lega@intel.com>
6909 Anna Tikhonova <anna.tikhonova@intel.com>
6910 Ilya Tocar <ilya.tocar@intel.com>
6911 Andrey Turetskiy <andrey.turetskiy@intel.com>
6912 Ilya Verbin <ilya.verbin@intel.com>
6913 Kirill Yukhin <kirill.yukhin@intel.com>
6914 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
6916 * config/i386/sse.md (VI248_AVX2_8_AVX512F): New.
6917 (VI124_256): Changed to ...
6918 (VI124_256_48_512): This.
6919 (ssepackmode): Extended with wider modes.
6920 (<code><mode>3): Changed iterator.
6921 (*avx2_<code><mode>3): Ditto.
6922 (vec_pack_trunc_<mode>): Ditto.
6924 2013-10-11 Alexander Ivchenko <alexander.ivchenko@intel.com>
6925 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
6926 Sergey Lega <sergey.s.lega@intel.com>
6927 Anna Tikhonova <anna.tikhonova@intel.com>
6928 Ilya Tocar <ilya.tocar@intel.com>
6929 Andrey Turetskiy <andrey.turetskiy@intel.com>
6930 Ilya Verbin <ilya.verbin@intel.com>
6931 Kirill Yukhin <kirill.yukhin@intel.com>
6932 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
6934 * config/i386/sse.md (VI124_AVX2_48_AVX512F): New.
6935 (VI8F_256_512): Ditto.
6936 (abs<mode>2): Changed iterator.
6937 (avx2_perm<mode>): Changed to ...
6938 (<avx2_avx512f>_perm<mode>): This.
6939 (avx2_perm<mode>_1): Changed to ...
6940 (<avx2_avx512f>_perm<mode>_1): This.
6942 2013-10-11 Alexander Ivchenko <alexander.ivchenko@intel.com>
6943 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
6944 Sergey Lega <sergey.s.lega@intel.com>
6945 Anna Tikhonova <anna.tikhonova@intel.com>
6946 Ilya Tocar <ilya.tocar@intel.com>
6947 Andrey Turetskiy <andrey.turetskiy@intel.com>
6948 Ilya Verbin <ilya.verbin@intel.com>
6949 Kirill Yukhin <kirill.yukhin@intel.com>
6950 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
6952 * config/i386/sse.md (VI48_AVX512F): New.
6953 (VI48_AVX2): Changed to ...
6954 (VI48_AVX2_48_AVX512F): This.
6955 (avx2_ashrv<mode>): Changed to ...
6956 (<avx2_avx512f>_ashrv<mode>): This.
6957 (avx2_<shift_insn>v<mode>): Changed to ...
6958 (<avx2_avx512f>_<shift_insn>v<mode>): This.
6960 2013-10-11 Alexander Ivchenko <alexander.ivchenko@intel.com>
6961 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
6962 Sergey Lega <sergey.s.lega@intel.com>
6963 Anna Tikhonova <anna.tikhonova@intel.com>
6964 Ilya Tocar <ilya.tocar@intel.com>
6965 Andrey Turetskiy <andrey.turetskiy@intel.com>
6966 Ilya Verbin <ilya.verbin@intel.com>
6967 Kirill Yukhin <kirill.yukhin@intel.com>
6968 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
6970 * config/i386/sse.md (VI4_AVX512F): New.
6971 (VI8_AVX2_AVX512F): Ditto.
6972 (mul<mode>3): Extended with wider modes.
6973 (*<sse4_1_avx2>_mul<mode>3): Ditto.
6974 (mul<mode>3): Ditto.
6975 (vec_widen_<s>mult_odd_<mode>): Ditto.
6977 2013-10-11 Alexander Ivchenko <alexander.ivchenko@intel.com>
6978 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
6979 Sergey Lega <sergey.s.lega@intel.com>
6980 Anna Tikhonova <anna.tikhonova@intel.com>
6981 Ilya Tocar <ilya.tocar@intel.com>
6982 Andrey Turetskiy <andrey.turetskiy@intel.com>
6983 Ilya Verbin <ilya.verbin@intel.com>
6984 Kirill Yukhin <kirill.yukhin@intel.com>
6985 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
6987 * config/i386/sse.md (VI2_AVX512F): New.
6988 (VI124_AVX512F): Ditto.
6989 (sseunpackmode): Extended with wider modes.
6990 (sseunpackfltmode): Ditto.
6991 (vec_unpacks_float_hi_<mode>): Ditto.
6992 (vec_unpacks_float_lo_<mode>): Ditto.
6993 (vec_unpacku_float_hi_<mode>): Ditto.
6994 (vec_unpacku_float_lo_<mode>): Ditto.
6995 (vec_unpacks_lo_<mode>): Ditto.
6996 (vec_unpacks_hi_<mode>): Ditto.
6997 (vec_unpacku_lo_<mode>): Ditto.
6998 (vec_unpacku_hi_<mode>): Ditto.
7000 2013-10-11 Alexander Ivchenko <alexander.ivchenko@intel.com>
7001 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
7002 Sergey Lega <sergey.s.lega@intel.com>
7003 Anna Tikhonova <anna.tikhonova@intel.com>
7004 Ilya Tocar <ilya.tocar@intel.com>
7005 Andrey Turetskiy <andrey.turetskiy@intel.com>
7006 Ilya Verbin <ilya.verbin@intel.com>
7007 Kirill Yukhin <kirill.yukhin@intel.com>
7008 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
7010 * config/i386/i386.md (multdiv): New.
7011 (multdiv_mnemonic): Ditto.
7012 * config/i386/sse.md (<sse>_vmmul<mode>3): Changed to...
7013 (<sse>_vm<multdiv_mnemonic><mode>3): This.
7014 (<sse>_vmdiv<mode>3): Removed.
7016 2013-10-11 Alexander Ivchenko <alexander.ivchenko@intel.com>
7017 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
7018 Sergey Lega <sergey.s.lega@intel.com>
7019 Anna Tikhonova <anna.tikhonova@intel.com>
7020 Ilya Tocar <ilya.tocar@intel.com>
7021 Andrey Turetskiy <andrey.turetskiy@intel.com>
7022 Ilya Verbin <ilya.verbin@intel.com>
7023 Kirill Yukhin <kirill.yukhin@intel.com>
7024 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
7026 * config/i386/sse.md (V): Extended with wider modes.
7028 (ssehalfvecmode): Ditto.
7030 (ssepackfltmode): Ditto.
7031 (avx_vec_concat<mode>): Ditto.
7032 (V_256_512): New iterator.
7033 (VF2_512_256): Ditto.
7034 (si2dfmode): New attribute.
7035 (si2dfmodelower): Ditto.
7037 (concat_tg_mode): Ditto.
7038 (floatv4siv4df2): Changed to ...
7039 (float<si2dfmodelower><mode>2): This.
7040 (avx_cvtps2pd256): Changed to ...
7041 (<sse2_avx_avx512f>_cvtps2pd<avxsizesuffix>): This.
7042 (vec_pack_trunc_v4df): Changed to ...
7043 (vec_pack_trunc_<mode>): This.
7044 (avx_vpermil<mode>): Changed to ...
7045 (<sse2_avx_avx512f>_vpermil<mode>): This.
7046 (<fixsuffix>fix_truncv8dfv8si2): New.
7047 (vec_pack_sfix_trunc_v8df): Ditto.
7048 (avx512f_rndscale<mode>): Ditto.
7049 (avx512f_roundpd512): Ditto.
7050 (vec_pack_ufix_trunc_<mode>): Updated iterator.
7052 2013-10-11 Alexander Ivchenko <alexander.ivchenko@intel.com>
7053 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
7054 Sergey Lega <sergey.s.lega@intel.com>
7055 Anna Tikhonova <anna.tikhonova@intel.com>
7056 Ilya Tocar <ilya.tocar@intel.com>
7057 Andrey Turetskiy <andrey.turetskiy@intel.com>
7058 Ilya Verbin <ilya.verbin@intel.com>
7059 Kirill Yukhin <kirill.yukhin@intel.com>
7060 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
7062 * config/i386/i386.md (any_fix): New iterator.
7063 (fixsuffix): New attribute.
7064 * config/i386/sse.md (VF1): Extened with wider modes.
7068 (sseintvecmodelower): Ditto.
7069 (ssescalarmode): Ditto.
7070 (ssescalarnum): Ditto.
7072 (ssexmmmode): Ditto.
7073 (<fixsuffix>fix_truncv16sfv16si2): Ditto.
7074 (<sse>_rcp<mode>2): Change iterator.
7075 (rsqrt<mode>2): Ditto.
7076 (<sse>_rsqrt<mode>2): Ditto.
7077 (avx2_vec_dup<mode>): Ditto.
7078 (<sse4_1>_round<ssemodesuffix>_sfix<avxsizesuffix>): Ditto.
7079 (round<mode>2_sfix): Ditto.
7080 (avx2_pbroadcast<mode>): Ditto.
7081 (*andnot<mode>3): Handle XI mode.
7082 (*<code><mode>3): Ditto.
7083 (AVXTOSSEMODE): Removed.
7084 (avx_vpermil<mode>): Changed to ...
7085 (<sse2_avx_avx512f>_vpermil<mode>): This.
7087 2013-10-11 Alexander Ivchenko <alexander.ivchenko@intel.com>
7088 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
7089 Sergey Lega <sergey.s.lega@intel.com>
7090 Anna Tikhonova <anna.tikhonova@intel.com>
7091 Ilya Tocar <ilya.tocar@intel.com>
7092 Andrey Turetskiy <andrey.turetskiy@intel.com>
7093 Ilya Verbin <ilya.verbin@intel.com>
7094 Kirill Yukhin <kirill.yukhin@intel.com>
7095 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
7097 * config/i386/sse.md (<sse2>_movnt<mode>): Update constraint to "v".
7098 (<sse>_comi): Ditto.
7099 (<sse>_ucomi): Ditto.
7100 (sse_cvtss2siq_2): Ditto.
7101 (sse2_cvtsd2si): Ditto.
7102 (sse2_cvtsd2siq): Ditto.
7103 (sse2_cvttsd2si): Ditto.
7104 (sse2_cvttsd2siq): Ditto.
7105 (<shift_insn><mode>3): Ditto.
7106 (sse2_cvtsi2sdq): Update constraint and prefix.
7107 (sse_cvtsi2ss): Update prefix.
7108 (sse_cvtsi2ssq): Ditto.
7110 2013-10-11 Jakub Jelinek <jakub@redhat.com>
7112 * tree-vrp.c (infer_nonnull_range): Use is_gimple_call,
7113 ignore internal calls.
7115 2013-10-11 Richard Biener <rguenther@suse.de>
7117 * tree-pretty-print.c (dump_generic_node): Allow to dump both (D)
7118 and (ab) for SSA_NAMEs. Mark INTEGER_CSTs with (OVF) if
7119 TREE_OVERFLOW is set.
7121 2013-10-11 Thomas Schwinge <thomas@codesourcery.com>
7123 * tree.h (OMP_CLAUSE_CODE): Remove duplicate definition.
7125 * gimple.c: GIMPLE statements have subcodes, not sub-codes.
7126 * gimple.h: Likewise.
7128 * doc/generic.texi (OpenMP): OMP_CLAUSE_* are subcodes, not sub-codes.
7130 * doc/generic.texi (Adding new DECL node types): Explain *_CHECK
7133 * doc/gimple.texi (is_gimple_omp): Move into the correct section.
7135 * acinclude.m4 (gcc_GAS_FLAGS): Add more gcc_cv_as_flags overrides.
7136 * configure: Regenerate.
7138 2013-10-11 Jakub Jelinek <jakub@redhat.com>
7140 * tree-pretty-print.c (dump_omp_clause): Handle OMP_CLAUSE__LOOPTEMP_
7141 and new OpenMP 4.0 clauses, handle UDR OMP_CLAUSE_REDUCTION,
7142 formatting fixes, use pp_colon instead of pp_character (..., ':'),
7143 similarly pp_right_paren.
7144 (dump_generic_node): Handle OMP_DISTRIBUTE, OMP_TEAMS,
7145 OMP_TARGET_DATA, OMP_TARGET, OMP_TARGET_UPDATE, OMP_TASKGROUP,
7146 allow OMP_FOR_INIT to be NULL, handle OMP_ATOMIC_SEQ_CST.
7147 * tree.c (omp_clause_num_ops, omp_clause_code_name): Add OpenMP 4.0
7149 (omp_declare_simd_clauses_equal,
7150 omp_remove_redundant_declare_simd_attrs): New functions.
7151 (attribute_value_equal): Use omp_declare_simd_clauses_equal.
7152 (walk_tree_1): Handle new OpenMP 4.0 clauses.
7153 * tree.h (OMP_LOOP_CHECK): Define.
7154 (OMP_FOR_BODY, OMP_FOR_CLAUSES, OMP_FOR_INIT, OMP_FOR_COND,
7155 OMP_FOR_INCR, OMP_FOR_PRE_BODY): Use it.
7156 (OMP_TASKGROUP_BODY, OMP_TEAMS_BODY, OMP_TEAMS_CLAUSES,
7157 OMP_TARGET_DATA_BODY, OMP_TARGET_DATA_CLAUSES, OMP_TARGET_BODY,
7158 OMP_TARGET_CLAUSES, OMP_TARGET_UPDATE_CLAUSES, OMP_CLAUSE_SIZE,
7159 OMP_ATOMIC_SEQ_CST, OMP_CLAUSE_DEPEND_KIND, OMP_CLAUSE_MAP_KIND,
7160 OMP_CLAUSE_MAP_ZERO_BIAS_ARRAY_SECTION, OMP_CLAUSE_PROC_BIND_KIND,
7161 OMP_CLAUSE_REDUCTION_OMP_ORIG_REF, OMP_CLAUSE_ALIGNED_ALIGNMENT,
7162 OMP_CLAUSE_NUM_TEAMS_EXPR, OMP_CLAUSE_THREAD_LIMIT_EXPR,
7163 OMP_CLAUSE_DEVICE_ID, OMP_CLAUSE_DIST_SCHEDULE_CHUNK_EXPR,
7164 OMP_CLAUSE_SIMDLEN_EXPR): Define.
7165 (OMP_CLAUSE_DECL): Change range up to OMP_CLAUSE__LOOPTEMP_.
7166 (omp_remove_redundant_declare_simd_attrs): New prototype.
7167 * gimple.def (GIMPLE_OMP_TASKGROUP, GIMPLE_OMP_TARGET,
7168 GIMPLE_OMP_TEAMS): New codes.
7169 (GIMPLE_OMP_RETURN): Use GSS_OMP_ATOMIC_STORE instead of GSS_BASE.
7170 * omp-low.c (struct omp_context): Add cancel_label and cancellable
7172 (target_nesting_level): New variable.
7173 (extract_omp_for_data): Handle GF_OMP_FOR_KIND_DISTRIBUTE and
7174 OMP_CLAUSE_DIST_SCHEDULE. Don't fallback to library implementation
7175 for collapse > 1 static schedule unless ordered.
7176 (get_ws_args_for): Add par_stmt argument. Handle combined loops.
7177 (determine_parallel_type): Adjust get_ws_args_for caller.
7178 (install_var_field): Handle mask & 4 for double indirection.
7179 (scan_sharing_clauses): Ignore shared clause on teams construct.
7180 Handle OMP_CLAUSE__LOOPTEMP_ and new OpenMP 4.0 clauses.
7181 (create_omp_child_function): If inside target or declare target
7182 constructs, set "omp declare target" attribute on the child function.
7183 (find_combined_for): New function.
7184 (scan_omp_parallel): Handle combined loops.
7185 (scan_omp_target, scan_omp_teams): New functions.
7186 (check_omp_nesting_restrictions): Check new OpenMP 4.0 nesting
7187 restrictions and set ctx->cancellable for cancellable constructs.
7188 (scan_omp_1_stmt): Call check_omp_nesting_restrictions also on
7189 selected builtin calls. Handle GIMPLE_OMP_TASKGROUP,
7190 GIMPLE_OMP_TARGET, GIMPLE_OMP_TEAMS.
7191 (build_omp_barrier): Add lhs argument, return gimple rather than tree.
7192 (omp_clause_aligned_alignment): New function.
7193 (lower_rec_simd_input_clauses): Only call SET_DECL_VALUE_EXPR on decls.
7194 (lower_rec_input_clauses): Add FD argument. Ignore shared clauses
7195 on teams constructs. Handle user defined reductions and new
7197 (lower_reduction_clauses): Don't set placeholder to address of ref
7198 if it has already the right type.
7199 (lower_send_clauses): Handle OMP_CLAUSE__LOOPTEMP_.
7200 (expand_parallel_call): Use the new non-_start suffixed builtins,
7201 handle OMP_CLAUSE_PROC_BIND, don't call the outlined function
7202 and GOMP_parallel_end after the call.
7203 (expand_task_call): Handle OMP_CLAUSE_DEPEND.
7204 (expand_omp_for_init_counts): Handle combined loops.
7205 (expand_omp_for_init_vars): Add inner_stmt argument, handle combined
7207 (expand_omp_for_generic): Likewise. Use GOMP_loop_end_cancel at the
7208 end of cancellable loops.
7209 (expand_omp_for_static_nochunk, expand_omp_for_static_chunk):
7210 Likewise. Handle collapse > 1 loops.
7211 (expand_omp_simd): Handle combined loops.
7212 (expand_omp_for): Add inner_stmt argument, adjust callers of
7213 expand_omp_for* functions, use expand_omp_for_static*chunk even
7214 for collapse > 1 unless ordered.
7215 (expand_omp_sections): Use GOMP_sections_end_cancel at the end
7216 of cancellable sections.
7217 (expand_omp_single): Remove need_barrier variable, just rely on
7218 gimple_omp_return_nowait_p. Adjust build_omp_barrier caller.
7219 (expand_omp_synch): Allow GIMPLE_OMP_TASKGROUP and GIMPLE_OMP_TEAMS.
7220 (expand_omp_atomic_load, expand_omp_atomic_store,
7221 expand_omp_atomic_fetch_op): Handle gimple_omp_atomic_seq_cst_p.
7222 (expand_omp_target): New function.
7223 (expand_omp): Handle combined loops. Handle GIMPLE_OMP_TASKGROUP,
7224 GIMPLE_OMP_TEAMS, GIMPLE_OMP_TARGET.
7225 (build_omp_regions_1): Immediately close region for
7226 GF_OMP_TARGET_KIND_UPDATE.
7227 (maybe_add_implicit_barrier_cancel): New function.
7228 (lower_omp_sections): Adjust lower_rec_input_clauses caller. Handle
7230 (lower_omp_single): Likewise. Add clobber after the barrier.
7231 (lower_omp_taskgroup): New function.
7232 (lower_omp_for): Handle combined loops. Adjust
7233 lower_rec_input_clauses caller. Handle cancellation.
7234 (lower_depend_clauses): New function.
7235 (lower_omp_taskreg): Lower depend clauses. Adjust
7236 lower_rec_input_clauses caller. Add clobber after the call. Handle
7238 (lower_omp_target, lower_omp_teams): New functions.
7239 (lower_omp_1): Handle cancellation. Handle GIMPLE_OMP_TASKGROUP,
7240 GIMPLE_OMP_TARGET, GIMPLE_OMP_TEAMS and GOMP_barrier, GOMP_cancel
7241 and GOMP_cancellation_point calls.
7242 (lower_omp): Fold stmts inside of target region.
7243 (diagnose_sb_1, diagnose_sb_2): Handle GIMPLE_OMP_TASKGROUP,
7244 GIMPLE_OMP_TARGET and GIMPLE_OMP_TEAMS.
7245 * builtin-types.def (DEF_FUNCTION_TYPE_8): Document.
7246 (BT_FN_VOID_OMPFN_PTR_UINT,
7247 BT_FN_VOID_OMPFN_PTR_UINT_LONG_LONG_LONG,
7248 BT_FN_VOID_OMPFN_PTR_UINT_LONG_LONG_LONG_LONG,
7249 BT_FN_VOID_OMPFN_PTR_OMPCPYFN_LONG_LONG_BOOL_UINT): Remove.
7250 (BT_FN_VOID_OMPFN_PTR_UINT_UINT_UINT,
7251 BT_FN_VOID_OMPFN_PTR_UINT_LONG_LONG_LONG_UINT,
7252 BT_FN_VOID_OMPFN_PTR_UINT_LONG_LONG_LONG_LONG_UINT,
7253 BT_FN_BOOL_INT, BT_FN_BOOL_INT_BOOL, BT_FN_VOID_UINT_UINT,
7254 BT_FN_VOID_INT_PTR_SIZE_PTR_PTR_PTR,
7255 BT_FN_VOID_INT_OMPFN_PTR_SIZE_PTR_PTR_PTR,
7256 BT_FN_VOID_OMPFN_PTR_OMPCPYFN_LONG_LONG_BOOL_UINT_PTR): New.
7257 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1,
7258 call_may_clobber_ref_p_1): Handle BUILT_IN_GOMP_BARRIER_CANCEL,
7259 BUILT_IN_GOMP_TASKGROUP_END, BUILT_IN_GOMP_LOOP_END_CANCEL,
7260 BUILT_IN_GOMP_SECTIONS_END_CANCEL. Don't handle
7261 BUILT_IN_GOMP_PARALLEL_END.
7262 * gimple-low.c (lower_stmt): Handle GIMPLE_OMP_TASKGROUP,
7263 GIMPLE_OMP_TARGET and GIMPLE_OMP_TEAMS.
7264 * gimple-pretty-print.c (dump_gimple_omp_for): Handle
7265 GF_OMP_FOR_KIND_DISTRIBUTE.
7266 (dump_gimple_omp_target, dump_gimple_omp_teams): New functions.
7267 (dump_gimple_omp_block): Handle GIMPLE_OMP_TASKGROUP.
7268 (dump_gimple_omp_return): Print lhs if it has any.
7269 (dump_gimple_omp_atomic_load, dump_gimple_omp_atomic_store): Handle
7270 gimple_omp_atomic_seq_cst_p.
7271 (pp_gimple_stmt_1): Handle GIMPLE_OMP_TASKGROUP, GIMPLE_OMP_TARGET
7272 and GIMPLE_OMP_TEAMS.
7273 * langhooks.c (lhd_omp_mappable_type): New function.
7274 * tree-vectorizer.c (struct simd_array_to_simduid): Fix up comment.
7275 * langhooks.h (struct lang_hooks_for_types): Add omp_mappable_type
7277 * gimplify.c (enum gimplify_omp_var_data): Add GOVD_MAP,
7278 GOVD_ALIGNED and GOVD_MAP_TO_ONLY.
7279 (enum omp_region_type): Add ORT_TEAMS, ORT_TARGET_DATA and ORT_TARGET.
7280 (struct gimplify_omp_ctx): Add combined_loop field.
7281 (gimplify_call_expr, gimplify_modify_expr): Don't call fold_stmt
7282 on stmts inside of target region.
7283 (is_gimple_stmt): Return true for OMP_DISTRIBUTE and OMP_TASKGROUP.
7284 (omp_firstprivatize_variable): Handle GOVD_MAP, GOVD_ALIGNED,
7285 ORT_TARGET and ORT_TARGET_DATA.
7286 (omp_add_variable): Avoid checks on readding var for GOVD_ALIGNED.
7288 (omp_notice_threadprivate_variable): Complain about threadprivate
7289 variables in target region.
7290 (omp_notice_variable): Complain about vars with non-mappable type
7291 in target region. Handle ORT_TEAMS, ORT_TARGET and ORT_TARGET_DATA.
7292 (omp_check_private): Ignore ORT_TARGET* regions.
7293 (gimplify_scan_omp_clauses, gimplify_adjust_omp_clauses_1,
7294 gimplify_adjust_omp_clauses): Handle new OpenMP 4.0 clauses.
7295 (find_combined_omp_for): New function.
7296 (gimplify_omp_for): Handle gimplification of combined loops.
7297 (gimplify_omp_workshare): Gimplify also OMP_TARGET, OMP_TARGET_DATA,
7299 (gimplify_omp_target_update): New function.
7300 (gimplify_omp_atomic): Handle OMP_ATOMIC_SEQ_CST.
7301 (gimplify_expr): Handle OMP_DISTRIBUTE, OMP_TARGET, OMP_TARGET_DATA,
7302 OMP_TARGET_UPDATE, OMP_TEAMS, OMP_TASKGROUP.
7303 (gimplify_body): If fndecl has "omp declare target" attribute, add
7304 implicit ORT_TARGET context around it.
7305 * tree.def (OMP_DISTRIBUTE, OMP_TEAMS, OMP_TARGET_DATA, OMP_TARGET,
7306 OMP_TASKGROUP, OMP_TARGET_UPDATE): New tree codes.
7307 * tree-nested.c (convert_nonlocal_reference_stmt,
7308 convert_local_reference_stmt, convert_gimple_call): Handle
7309 GIMPLE_OMP_TARGET, GIMPLE_OMP_TEAMS and GIMPLE_OMP_TASKGROUP.
7310 * omp-builtins.def (BUILT_IN_GOMP_TASK): Use
7311 BT_FN_VOID_OMPFN_PTR_OMPCPYFN_LONG_LONG_BOOL_UINT_PTR
7312 instead of BT_FN_VOID_OMPFN_PTR_OMPCPYFN_LONG_LONG_BOOL_UINT.
7313 (BUILT_IN_GOMP_TARGET, BUILT_IN_GOMP_TARGET_DATA,
7314 BUILT_IN_GOMP_TARGET_END_DATA, BUILT_IN_GOMP_TARGET_UPDATE,
7315 BUILT_IN_GOMP_TEAMS, BUILT_IN_BARRIER_CANCEL,
7316 BUILT_IN_GOMP_LOOP_END_CANCEL,
7317 BUILT_IN_GOMP_SECTIONS_END_CANCEL, BUILT_IN_OMP_GET_TEAM_NUM,
7318 BUILT_IN_OMP_GET_NUM_TEAMS, BUILT_IN_GOMP_TASKGROUP_START,
7319 BUILT_IN_GOMP_TASKGROUP_END, BUILT_IN_GOMP_PARALLEL_LOOP_STATIC,
7320 BUILT_IN_GOMP_PARALLEL_LOOP_DYNAMIC,
7321 BUILT_IN_GOMP_PARALLEL_LOOP_GUIDED,
7322 BUILT_IN_GOMP_PARALLEL_LOOP_RUNTIME, BUILT_IN_GOMP_PARALLEL,
7323 BUILT_IN_GOMP_PARALLEL_SECTIONS, BUILT_IN_GOMP_CANCEL,
7324 BUILT_IN_GOMP_CANCELLATION_POINT): New built-ins.
7325 (BUILT_IN_GOMP_PARALLEL_LOOP_STATIC_START,
7326 BUILT_IN_GOMP_PARALLEL_LOOP_DYNAMIC_START,
7327 BUILT_IN_GOMP_PARALLEL_LOOP_GUIDED_START,
7328 BUILT_IN_GOMP_PARALLEL_LOOP_RUNTIME_START,
7329 BUILT_IN_GOMP_PARALLEL_START, BUILT_IN_GOMP_PARALLEL_END,
7330 BUILT_IN_GOMP_PARALLEL_SECTIONS_START): Remove.
7331 * tree-inline.c (remap_gimple_stmt, estimate_num_insns):
7332 Handle GIMPLE_OMP_TARGET, GIMPLE_OMP_TEAMS and GIMPLE_OMP_TASKGROUP.
7333 * gimple.c (gimple_build_omp_taskgroup, gimple_build_omp_target,
7334 gimple_build_omp_teams): New functions.
7335 (walk_gimple_op): Handle GIMPLE_OMP_TARGET, GIMPLE_OMP_TEAMS and
7336 GIMPLE_OMP_TASKGROUP. Walk optional lhs on GIMPLE_OMP_RETURN.
7337 (walk_gimple_stmt, gimple_copy): Handle GIMPLE_OMP_TARGET,
7338 GIMPLE_OMP_TEAMS and GIMPLE_OMP_TASKGROUP.
7339 * gimple.h (enum gf_mask): GF_OMP_FOR_KIND_DISTRIBUTE,
7340 GF_OMP_FOR_COMBINED, GF_OMP_FOR_COMBINED_INTO,
7341 GF_OMP_TARGET_KIND_MASK, GF_OMP_TARGET_KIND_REGION,
7342 GF_OMP_TARGET_KIND_DATA, GF_OMP_TARGET_KIND_UPDATE,
7343 GF_OMP_ATOMIC_SEQ_CST): New.
7344 (gimple_build_omp_taskgroup, gimple_build_omp_target,
7345 gimple_build_omp_teams): New prototypes.
7346 (gimple_has_substatements): Handle GIMPLE_OMP_TARGET,
7347 GIMPLE_OMP_TEAMS and GIMPLE_OMP_TASKGROUP.
7348 (gimple_omp_subcode): Use GIMPLE_OMP_TEAMS instead of
7349 GIMPLE_OMP_SINGLE as end of range.
7350 (gimple_omp_return_set_lhs, gimple_omp_return_lhs,
7351 gimple_omp_return_lhs_ptr, gimple_omp_atomic_seq_cst_p,
7352 gimple_omp_atomic_set_seq_cst, gimple_omp_for_combined_p,
7353 gimple_omp_for_set_combined_p, gimple_omp_for_combined_into_p,
7354 gimple_omp_for_set_combined_into_p, gimple_omp_target_clauses,
7355 gimple_omp_target_clauses_ptr, gimple_omp_target_set_clauses,
7356 gimple_omp_target_kind, gimple_omp_target_set_kind,
7357 gimple_omp_target_child_fn, gimple_omp_target_child_fn_ptr,
7358 gimple_omp_target_set_child_fn, gimple_omp_target_data_arg,
7359 gimple_omp_target_data_arg_ptr, gimple_omp_target_set_data_arg,
7360 gimple_omp_teams_clauses, gimple_omp_teams_clauses_ptr,
7361 gimple_omp_teams_set_clauses): New inlines.
7362 (CASE_GIMPLE_OMP): Add GIMPLE_OMP_TARGET, GIMPLE_OMP_TEAMS
7363 and GIMPLE_OMP_TASKGROUP.
7364 * tree-core.h (enum omp_clause_code): Add new OpenMP 4.0 clause codes.
7365 (enum omp_clause_depend_kind, enum omp_clause_map_kind,
7366 enum omp_clause_proc_bind_kind): New.
7367 (union omp_clause_subcode): Add depend_kind, map_kind and
7368 proc_bind_kind fields.
7369 * tree-cfg.c (make_edges): Handle GIMPLE_OMP_TARGET,
7370 GIMPLE_OMP_TEAMS and GIMPLE_OMP_TASKGROUP.
7371 * langhooks-def.h (lhd_omp_mappable_type): New prototype.
7372 (LANG_HOOKS_OMP_MAPPABLE_TYPE): Define.
7373 (LANG_HOOKS_FOR_TYPES_INITIALIZER): Add it.
7375 2013-10-10 Teresa Johnson <tejohnson@google.com>
7377 * predict.c (tree_estimate_probability): Add new parameter
7378 for estimate_bb_frequencies.
7379 (estimate_bb_frequencies): Add new parameter to force estimation.
7380 (rebuild_frequencies): When max frequency in function is small,
7381 recompute counts from frequencies.
7382 * predict.h (estimate_bb_frequencies): New parameter.
7384 2013-10-10 David Malcolm <dmalcolm@redhat.com>
7386 * ipa-inline.c (ipa_inline): Fix leak of "order" when
7387 optimizations are disabled.
7389 2013-10-10 David Malcolm <dmalcolm@redhat.com>
7391 * coverage.c (coverage_finish): Fix leak of da_file_name.
7393 2013-10-10 Jan Hubicka <jh@suse.cz>
7395 * config/i386/x86-tune.def: Enable X86_TUNE_SSE_TYPELESS_STORES
7396 for generic, enable X86_TUNE_SSE_LOAD0_BY_PXOR for Bulldozer,
7399 2013-10-10 Jakub Jelinek <jakub@redhat.com>
7402 * stmt.c (expand_asm_operands): Add FALLTHRU_BB argument,
7403 if any labels are in FALLTHRU_BB, use a special label emitted
7404 immediately after the asm goto insn rather than label_rtx
7406 (expand_asm_stmt): Adjust caller.
7407 * cfgrtl.c (commit_one_edge_insertion): Force splitting of
7408 edge if the last insn in predecessor is a jump with single successor,
7409 but it isn't simplejump_p.
7411 2013-10-10 Richard Biener <rguenther@suse.de>
7413 PR tree-optimization/58656
7414 * tree-ssa-pre.c (phi_translate): Do not cache failed translations.
7416 2013-10-10 Andrew MacLeod <amacleod@redhat.com>
7418 * gimplify.c: Include expr.h and tm_p.h for targets with special
7419 va-arg padding requirements.
7421 2013-10-10 Andrew MacLeod <amacleod@redhat.com>
7423 * tree-flow.h: Move some prototypes to gimple.h.
7424 (gimple_fold_indirect_ref): Move prototype to gimple-fold.h.
7425 * gimple.h: Relocate some prototypes from tree-flow.h
7426 * builtins.c (std_gimplify_va_arg_expr, build_va_arg_indirect_ref):
7428 * gimplify.c (gimple_fold_indirect_ref): Move to gimple-fold.c.
7429 (build_va_arg_indirect_ref): Relocate and make static.
7430 (std_gimplify_va_arg_expr): Relocate here.
7431 * gimple-fold.c (gimple_fold_indirect_ref): Relocate here.
7432 * gimple-fold.h (gimple_fold_indirect_ref): Add prototype.
7434 2013-10-10 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
7436 * doc/md.texi: Document the mnemonic attribute.
7438 2013-10-10 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
7441 * gensupport.c (gen_mnemonic_attr): Handle (set (attr x) y) and
7442 (set_attr_alternative x ...) when searching for user defined
7445 2013-10-10 Andrew MacLeod <amacleod@redhat.com>
7447 * config/aplha/alpha.c: Add gimple-ssa.h to include list.
7449 2013-10-09 Easwaran Raman <eraman@google.com>
7451 * params.def (PARAM_MIN_SIZE_FOR_STACK_SHARING): New param...
7452 * cfgexpand.c (defer_stack_allocation): ...use here
7453 * doc/invoke.texi: Add documentation for min-size-for-stack-sharing.
7455 2013-10-09 Zhenqiang Chen <zhenqiang.chen@arm.com>
7457 * tree-ssa-phiopts.c (rhs_is_fed_for_value_replacement): New function.
7458 (operand_equal_for_value_replacement): New function, extracted from
7459 value_replacement and enhanced to catch more cases.
7460 (value_replacement): Use operand_equal_for_value_replacement.
7462 2013-10-09 Andrew MacLeod <amacleod@redhat.com>
7464 * loop-doloop.c (doloop_modify, doloop_optimize): Use
7465 get_max_loop_iterations.
7467 2013-10-09 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
7469 * config/arm/aarch-common.c (arm_early_load_addr_dep):
7470 Place comment above function.
7472 2013-10-09 Andrew MacLeod <amacleod@redhat.com>
7474 * tree-flow.h: Remove all remaining prototypes, enums and structs that
7475 are not related to tree-cfg.c.
7476 * tree-ssa-address.h: New file. Relocate prototypes.
7477 * tree-ssa-address.c: (struct mem_address): Relocate from tree-flow.h.
7478 (addr_for_mem_ref): New. Combine call to get_address_description and
7479 return addr_for_mem_ref.
7480 * expr.c (expand_expr_real_1): Use new addr_for_mem_ref routine.
7481 * tree-ssa-live.h: Adjust prototypes.
7482 * passes.c: Include tree-ssa-live.h.
7483 * gimple-pretty-print.h (gimple_dump_bb): Add prototype.
7484 * graphite.c (graphite_transform_loops): Make static.
7485 (graphite_transforms, gate_graphite_transforms, pass_data_graphite,
7486 make_pass_graphite, pass_data_graphite_transforms,
7487 make_pass_graphite_transforms): Relocate here from tree-ssa-loop.c.
7488 * ipa-pure-const.c (warn_function_noreturn): Make static.
7489 (execute_warn_function_noreturn, gate_warn_function_noreturn,
7490 class pass_warn_function_noreturn, make_pass_warn_function_noreturn):
7491 Relocate from tree-cfg.c
7492 * tree-cfg.c (tree_node_can_be_shared, gimple_empty_block_p): Make
7494 (execute_warn_function_noreturn, gate_warn_function_noreturn,
7495 class pass_warn_function_noreturn, make_pass_warn_function_noreturn):
7496 Move to ipa-pure-const.c.
7497 (execute_fixup_cfg, class pass_fixup_cfg, make_pass_fixup_cfg):
7498 Relocate from tree-optimize.c.
7499 * tree-optimize.c (execute_fixup_cfg, class pass_fixup_cfg,
7500 make_pass_fixup_cfg): Move to tree-cfg.c.
7501 * tree-chrec.h: (enum ev_direction): Relocate here from tree-flow.h.
7502 Relocate some prototypes.
7503 * tree-data-ref.h (tree_check_data_deps) Add prototype.
7504 * tree-dump.c (dump_function_to_file): Remove prototype.
7505 Add tree-flow.h to the include file.
7506 * tree-dump.h: Remove prototype.
7507 * tree-parloops.h: New File. Add prototypes.
7508 * tree-parloops.c (gate_tree_parallelize_loops, tree_parallelize_loops,
7509 pass_data_parallelize_loops, make_pass_parallelize_loops): Relocate
7510 from tree-ssa-loop.c.
7511 * tree-predcom.c (run_tree_predictive_commoning,
7512 gate_tree_predictive_commoning, pass_data_predcom, make_pass_predcom):
7513 Relocate here from tree-ssa-loop.c.
7514 * tree-ssa-dom.c (tree_ssa_dominator_optimize) Don't call
7515 ssa_name_values.release ().
7516 * tree-ssa-threadedge.h: New File. Relocate prototypes here.
7517 (ssa_name_values): Relocate from tree-flow.h.
7518 * tree-ssa.h: Include tree-ssa-threadedge.h and tree-ssa-address.h.
7519 * tree-ssa-loop.c (run_tree_predictive_commoning,
7520 gate_tree_predictive_commoning, pass_data_predcom, make_pass_predcom,
7521 graphite_transforms, gate_graphite_transforms, pass_data_graphite,
7522 make_pass_graphite, pass_data_graphite_transforms,
7523 make_pass_graphite_transforms, gate_tree_parallelize_loops,
7524 tree_parallelize_loops, pass_data_parallelize_loops,
7525 make_pass_parallelize_loops): Move to other files.
7526 * tree-vectorizer.h (lpeel_tree_duplicate_loop_to_edge_cfg): Prototype
7528 * tree.h: Remove prototypes from tree-address.c.
7530 2013-10-09 Andrew MacLeod <amacleod@redhat.com>
7532 * tree-flow.h (tm_restart_node, gimple_df): Move to gimple-ssa.h.
7533 (struct int_tree_map): Move to tree-hasher.h
7534 (SCALE, LABEL, PERCENT): Move to gimple.h
7535 * tree-flow-inline.h: Delete. Move functions to other files.
7536 (unmodifiable_var_p, ref_contains_array_ref): Unused, so delete.
7537 * gimple-ssa.h (tm_restart_node, gimple_df): Relocate from tree-flow.h.
7538 (gimple_in_ssa_p, gimple_vop): Relocate from tree-flow-inline.h
7539 * gimple.h (imple_stmt_max_uid, set_gimple_stmt_max_uid,
7540 inc_gimple_stmt_max_uid, get_lineno): Relocate from tree-flow-inline.h.
7541 (SCALE, LABEL, PERCENT): Relocate from tree-flow.h
7542 * tree-hasher.h: Don't include tree-flow.h.
7543 (struct int_tree_map): Relocate from tree-flow.h.
7544 * tree-sra.c (contains_view_convert_expr_p): Relocate from
7545 tree-flow-inline.h and make static.
7546 * tree-ssa-alias.h (ranges_overlap_p): Relocate from
7548 * tree-ssa-operands.c (gimple_ssa_operands): Relocate from
7549 tree-flow-inline.h and make static.
7550 * tree.h (is_global_var, may_be_aliased): Relocate from
7552 * Makefile.in (GTFILES): Remove tree-flow.h and add gimple-ssa.h.
7553 * value-prof.c: No longer include tree-flow-inline.h.
7554 * tree-switch-conversion.c: No longer include tree-flow-inline.h.
7556 2013-10-09 Andrew MacLeod <amacleod@redhat.com>
7558 * tree-flow.h: Move some protoypes. Include new tree-ssa-loop.h.
7559 (struct affine_iv, struct tree_niter_desc): Move to tree-ssa-loop.h.
7560 (enum move_pos): Move to tree-ssa-loop-im.h
7561 * cfgloop.h: Move some prototypes.
7562 (gcov_type_to_double_int): relocate from tree-ssa-loop.niter.c.
7563 * tree-flow-inline.h (loop_containing_stmt): Move to tree-ssa-loop.h.
7564 * tree-ssa-loop.h: New File. Include other tree-ssa-loop-*.h files.
7565 (struct affine_iv, struct tree_niter_desc): Relocate from tree-flow.h.
7566 (loop_containing_stmt): Relocate from tree-flow-inline.h.
7567 * tree-ssa-loop-ch.c: (do_while_loop_p): Make static.
7568 * tree-ssa-loop-im.c (for_each_index): Move to tree-ssa-loop.c.
7569 (enum move_pos): Relocate here.
7570 (lsm_tmp_name_add, gen_lsm_tmp_name, get_lsm_tmp_name): Move to
7572 (execute_sm_if_changed_flag_set): Change get_lsm_tmp_name call.
7573 (tree_ssa_loop_im, gate_tree_ssa_loop_im, pass_data_lim,
7574 make_pass_lim): Relocate here from tree-ssa-loop.c.
7575 * tree-ssa-loop-ivcanon.c (tree_num_loop_insns): Move to
7577 (loop_edge_to_cancel, unloop_loops): Make static.
7578 (tree_ssa_loop_ivcanon, gate_tree_ssa_loop_ivcanon, pass_data_iv_canon,
7579 make_pass_iv_canon): Relocate from tree-ssa-loop.c.
7580 (tree_complete_unroll, gate_tree_complete_unroll,
7581 pass_data_complete_unroll, make_pass_complete_unroll): Relocate here.
7582 (tree_complete_unroll_inner, gate_tree_complete_unroll_inner,
7583 pass_data_complete_unrolli, make_pass_complete_unrolli): Relocate here.
7584 * tree-ssa-loop-ivopts.c: Remove local prototypes.
7585 (stmt_invariant_in_loop_p): Remove unused function.
7586 * tree-ssa-loop-ivopts.h: New file. Add prototypes.
7587 * tree-ssa-loop-manip.h: New file. Add prototypes.
7588 * tree-ssa-loop-niter.c (record_niter_bound): Move to cfgloop.c.
7589 (gcov_type_to_double_int): Move to cfgloop.h.
7590 (double_int_cmp, bound_index,
7591 estimate_numbers_of_iterations_loop): Make static.
7592 (estimated_loop_iterations): Factor out get_estimated_loop_iterations.
7593 (max_loop_iterations): Factor out get_max_loop_iterations.
7594 (estimated_loop_iterations_int, max_stmt_executions_int): Move to
7596 * tree-ssa-loop-niter.h: New file. Add prototypes.
7597 * tree-ssa-loop-prefetch.c (tree_ssa_loop_prefetch,
7598 gate_tree_ssa_loop_prefetch, pass_data_loop_prefetch,
7599 make_pass_loop_prefetch): Relocate from tree-ssa-loop.c.
7600 * tree-ssa-loop-unswitch.c (tree_ssa_loop_unswitch,
7601 gate_tree_ssa_loop_unswitch, pass_data_tree_unswitch,
7602 make_pass_tree_unswitch): Relocate from tree-ssa-loop.c.
7603 * tree-ssa-loop.c (tree_ssa_loop_im, gate_tree_ssa_loop_im,
7604 pass_data_lim, make_pass_lim): Move to tree-ssa-loop-im.c.
7605 (tree_ssa_loop_unswitch, gate_tree_ssa_loop_unswitch,
7606 pass_data_tree_unswitch, make_pass_tree_unswitch): Move.
7607 (tree_ssa_loop_ivcanon, gate_tree_ssa_loop_ivcanon, pass_data_iv_canon,
7608 make_pass_iv_canon, tree_complete_unroll, gate_tree_complete_unroll,
7609 pass_data_complete_unroll, make_pass_complete_unroll,
7610 tree_complete_unroll_inner, gate_tree_complete_unroll_inner,
7611 pass_data_complete_unrolli, make_pass_complete_unrolli): Move to
7612 tree-ssa-loop-ivcanon.c.
7613 (tree_ssa_loop_prefetch, gate_tree_ssa_loop_prefetch,
7614 pass_data_loop_prefetch, make_pass_loop_prefetch): Move to
7615 tree-ssa-loop-prefetch.c.
7616 (for_each_index, lsm_tmp_name_add, gen_lsm_tmp_name): Relocate from
7618 (get_lsm_tmp_name): Relocate and add suffix parameter.
7619 (tree_num_loop_insns): Relocate from tree-ssa-ivcanon.c.
7620 * tree-scalar-evolution.h (simple_iv): Don't use affive_iv typedef.
7621 * cfgloop.c (record_niter_bound, estimated_loop_iterations_int,
7622 max_stmt_executions_int): Move from tree-ssa-loop-niter.c.
7623 (get_estimated_loop_iterations): Factor out accessor from
7624 estimated_loop_iterations in tree-ssa-loop-niter.c.
7625 (get_max_loop_iterations): Factor out accessor from
7626 _max_loop_iterations in tree-ssa-niter.c.
7627 * loop-unroll.c (decide_unroll_constant_iterations,
7628 decide_unroll_runtime_iterations, decide_peel_simple,
7629 decide_unroll_stupid): Use new get_* accessors.
7631 2013-10-09 Marc Glisse <marc.glisse@inria.fr>
7633 PR tree-optimization/20318
7634 * doc/extend.texi (returns_nonnull): New function attribute.
7635 * fold-const.c (tree_expr_nonzero_warnv_p): Look for returns_nonnull
7637 * tree-vrp.c (gimple_stmt_nonzero_warnv_p): Likewise.
7638 (stmt_interesting_for_vrp): Accept all GIMPLE_CALL.
7640 2013-10-09 Eric Botcazou <ebotcazou@adacore.com>
7643 * tree-ssa-alias.c (nonoverlapping_component_refs_of_decl_p): Return
7644 false if both components are bitfields.
7646 2013-10-09 Alex Velenko <Alex.Velenko@arm.com>
7648 * config/aarch64/arm_neon.h (vclz_s8, vclz_s16, vclz_s32)
7649 (vclzq_s8, vclzq_s16, vclzq_s32, vclz_u8, vclz_u16, vclz_u32)
7650 (vclzq_u8, vclzq_u16, vclzq_u32): Replace ASM with C.
7651 * config/aarch64/aarch64.h
7652 (CLZ_DEFINED_VALUE_AT_ZERO): Macro fixed for clz.
7653 * config/aarch64/aarch64-simd-builtins.def
7654 (VAR1 (UNOP, clz, 0, v4si)): Replaced with iterator.
7656 2013-10-09 Alex Velenko <Alex.Velenko@arm.com>
7658 * config/aarch64/arm_neon.h (vadd_f64, vsub_f64): Implementation added.
7660 2013-10-09 Alex Velenko <Alex.Velenko@arm.com>
7662 * config/aarch64/arm_neon.h (vdiv_f64): Added.
7664 2013-10-09 Alex Velenko <Alex.Velenko@arm.com>
7666 * config/aarch64/arm_neon.h (vneg_f32): Asm replaced with C.
7667 (vneg_f64): New intrinsic.
7668 (vneg_s8): Asm replaced with C.
7669 (vneg_s16): Likewise.
7670 (vneg_s32): Likewise.
7671 (vneg_s64): New intrinsic.
7672 (vnegq_f32): Asm replaced with C.
7673 (vnegq_f64): Likewise.
7674 (vnegq_s8): Likewise.
7675 (vnegq_s16): Likewise.
7676 (vnegq_s32): Likewise.
7677 (vnegq_s64): Likewise.
7679 2013-10-09 Renlin Li <Renlin.Li@arm.com>
7681 * config/arm/arm.c (arm_output_mi_thunk): Use plus_constant.
7683 2013-10-09 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
7685 * config/s390/s390.c (s390_register_info_stdarg_fpr): Remove
7686 packed stack special handling.
7687 (s390_frame_info, s390_emit_prologue, s390_emit_epilogue): Switch
7688 back to fixed stack slots for FPRs saved due to stdarg.
7690 2013-10-09 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
7692 * config/s390/s390.c (s390_frame_info): Restructure function.
7694 2013-10-09 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
7696 * config/s390/s390.c (struct s390_frame_layout): New field
7698 (cfun_save_arg_fprs_p, cfun_gpr_save_slot): New macros.
7699 (s390_reg_clobbered_rtx, s390_regs_ever_clobbered): Change type of
7700 regs_ever_clobbered to char*.
7701 (s390_regs_ever_clobbered): Check crtl->saves_all_registers instead
7702 of cfun->has_nonlocal_label. Ignore frame related restore INSNs.
7703 (s390_register_info): Enable FPR save slots. Move/Copy some
7704 functionality into ...
7705 (s390_register_info_gprtofpr, s390_register_info_stdarg_fpr)
7706 (s390_register_info_stdarg_gpr, s390_optimize_register_info): New
7708 (s390_frame_info): Do gpr slot allocation here now. stdarg does
7709 not imply a stack frame.
7710 (s390_init_frame_layout): Remove variable clobbered_regs.
7711 (s390_update_register_info): Remove function.
7712 (s390_hard_regno_rename_ok): Call-saved regs without a save slot
7713 cannot be used for register renaming.
7714 (s390_hard_regno_scratch_ok): New function.
7715 (TARGET_HARD_REGNO_SCRATCH_OK): Define target hook.
7716 (s390_initial_elimination_offset): Change offset calculation of
7717 the return address pointer.
7718 (save_gprs): Deal with only r6 being saved from the call-saved regs.
7719 (restore_gprs): Set frame related flag.
7720 (s390_save_gprs_to_fprs, s390_restore_gprs_from_fprs): New functions.
7721 (s390_emit_prologue): Call s390_register_info instead of
7722 s390_update_frame_layout. Call s390_save_gprs_to_fprs.
7723 (s390_emit_epilogue): Call s390_restore_gprs_from_fprs.
7724 (s390_optimize_prologue): Call s390_optimize_register_info.
7725 Try to remove also FPR slot save/restore INSNs. Remove frame
7726 related flags from restore INSNs.
7728 2013-10-08 DJ Delorie <dj@redhat.com>
7730 * config/rl78/rl78-expand.md (movqi): use operands[] not operandN.
7733 * config/rl78/rl78.c (rl78_print_operand_1): Change %c to %C to
7734 avoid conflict with the MI use of %c.
7735 * config/rl78/rl78-real.md: change %c to %C throughout.
7736 * config/rl78/rl78-virt.md: Likewise.
7738 2013-10-08 Jan Hubicka <jh@suse.cz>
7740 * config/i386/i386.c (ix86_option_override_internal): Switch
7741 to SSE math for -ffast-math when target ISA supports SSE2.
7743 2013-10-08 Andrew MacLeod <amacleod@redhat.com>
7745 * tree-flow.h: Remove some prototypes.
7746 * tree.h: Remove some protypes, add a couple.
7747 * tree.c (using_eh_for_cleanups_flag, using_eh_for_cleanups,
7748 using_eh_for_cleanups_p): Add interface routines for front ends.
7749 * tree-eh.h: New file. Add protoptyes.
7750 * tree-eh.c (using_eh_for_cleanups_p, using_eh_for_cleanups): Delete.
7751 (add_stmt_to_eh_lp_fn): Make static.
7752 (lower_try_finally): Use new using_eh_for_cleanups_p.
7753 * emit-rtl.c: Include tree-eh.h.
7754 * gimple.h: Include tree-eh.h.
7756 2013-10-08 Marc Glisse <marc.glisse@inria.fr>
7758 PR tree-optimization/58480
7759 * tree-vrp.c (infer_nonnull_range): New function.
7760 (infer_value_range): Call infer_nonnull_range.
7762 2013-10-08 Dehao Chen <dehao@google.com>
7764 PR tree-optimization/58619
7765 * tree-inline.c (copy_phis_for_bb): Combine location data
7768 2013-10-08 Zhenqiang Chen <zhenqiang.chen@linaro.org>
7771 * config/arm/arm.c (arm_emit_ldrd_pop): Attach
7772 RTX_FRAME_RELATED_P on INSN.
7774 2013-10-07 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
7776 * config/rs6000/rs6000.c (altivec_expand_vec_perm_const_le): New.
7777 (altivec_expand_vec_perm_const): Call it.
7779 2013-10-07 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
7781 * config/rs6000/vector.md (mov<mode>): Emit permuted move
7782 sequences for LE VSX loads and stores at expand time.
7783 * config/rs6000/rs6000-protos.h (rs6000_emit_le_vsx_move): New
7785 * config/rs6000/rs6000.c (rs6000_const_vec): New.
7786 (rs6000_gen_le_vsx_permute): New.
7787 (rs6000_gen_le_vsx_load): New.
7788 (rs6000_gen_le_vsx_store): New.
7789 (rs6000_gen_le_vsx_move): New.
7790 * config/rs6000/vsx.md (*vsx_le_perm_load_v2di): New.
7791 (*vsx_le_perm_load_v4si): New.
7792 (*vsx_le_perm_load_v8hi): New.
7793 (*vsx_le_perm_load_v16qi): New.
7794 (*vsx_le_perm_store_v2di): New.
7795 (*vsx_le_perm_store_v4si): New.
7796 (*vsx_le_perm_store_v8hi): New.
7797 (*vsx_le_perm_store_v16qi): New.
7798 (*vsx_xxpermdi2_le_<mode>): New.
7799 (*vsx_xxpermdi4_le_<mode>): New.
7800 (*vsx_xxpermdi8_le_V8HI): New.
7801 (*vsx_xxpermdi16_le_V16QI): New.
7802 (*vsx_lxvd2x2_le_<mode>): New.
7803 (*vsx_lxvd2x4_le_<mode>): New.
7804 (*vsx_lxvd2x8_le_V8HI): New.
7805 (*vsx_lxvd2x16_le_V16QI): New.
7806 (*vsx_stxvd2x2_le_<mode>): New.
7807 (*vsx_stxvd2x4_le_<mode>): New.
7808 (*vsx_stxvd2x8_le_V8HI): New.
7809 (*vsx_stxvd2x16_le_V16QI): New.
7811 2013-10-07 Renlin Li <Renlin.Li@arm.com>
7813 * config/arm/arm-cores.def (cortex-a53): Use cortex tuning.
7815 2013-10-07 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
7817 * config/s390/s390.c (s390_register_info): Make the call-saved FPR
7818 loop to work also for 31bit ABI.
7819 Save the stack pointer for frame_size > 0.
7821 2013-10-07 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
7823 * config/s390/s390.md ("tbegin", "tbegin_nofloat", "tbegin_retry")
7824 ("tbegin_retry_nofloat", "tend", "tabort", "tx_assist"): Remove
7825 constraint letters from expanders.
7826 ("tbegin_retry", "tbegin_retry_nofloat"): Change predicate of the
7827 retry count to general_operand.
7828 ("tabort"): Give operand 0 a mode.
7829 ("tabort_1"): Add mode and constraint letter for operand 0.
7830 * doc/extend.texi: Fix protoype of __builtin_non_tx_store.
7832 2013-10-04 Jeff Law <law@redhat.com>
7834 * tree-ssa-threadedge.c: Fix some trailing whitespace problems.
7836 * tree-ssa-threadedge.c (thread_through_normal_block): Broken
7838 (thread_across_edge): Here. Call it.
7840 2013-10-04 Cary Coutant <ccoutant@google.com>
7842 * dwarf2out.c (dw_sra_loc_expr): Release addr_table entries when
7843 discarding a location list expression (or a piece of one).
7845 2013-10-03 Jan Hubicka <jh@suse.cz>
7847 * config/i386/i386.c (ix86_issue_rate): Pentium4, Nocona has issue
7848 rate of 2. Core2, Corei7 and Haswell has issue rate of 4.
7849 (ix86_adjust_cost): Remove Atom case; fix core2/corei7/Haswell case.
7851 2013-10-03 Jan Hubicka <jh@suse.cz>
7853 * config/i386/i386.c (ix86_option_override_internal): Do not enable
7854 accumulate-outgoing-args when producing unwind info.
7856 2013-10-03 Wei Mi <wmi@google.com>
7858 * lra-constraints.c (insert_move_for_subreg): New function
7859 extracted from simplify_operand_subreg.
7860 (simplify_operand_subreg): Add reload for paradoxical subreg.
7862 2013-10-03 Rong Xu <xur@google.com>
7864 * ipa-inline-analysis.c (find_foldable_builtin_expect): Find
7865 the candidate of builtin_expect such that we should fix the
7866 size/time estimation.
7867 (estimate_function_body_sizes): Do the acutally size/time fix-up
7870 2013-10-03 Rong Xu <xur@google.com>
7872 * predict.c (tree_predict_by_opcode): Get the probability
7873 for builtin_expect from param builtin_expect_probability.
7874 * params.def (BUILTIN_EXPECT_PROBABILITY): New parameter.
7875 * predict.def (PRED_BUILTIN_EXPECT_RELAXED): Fix comments.
7876 * doc/invoke.texi: Add documentation for builtin-expect-probability.
7878 2013-10-03 Marc Glisse <marc.glisse@inria.fr>
7881 * common.opt (fcheck-new): Moved from c.opt. Make it 'Common'.
7882 * calls.c (alloca_call_p): Use get_callee_fndecl.
7883 * fold-const.c (tree_expr_nonzero_warnv_p): Handle operator new.
7884 * tree-vrp.c (gimple_stmt_nonzero_warnv_p, stmt_interesting_for_vrp):
7886 (vrp_visit_stmt): Remove duplicated code.
7888 2013-10-03 Michael Meissner <meissner@linux.vnet.ibm.com>
7890 * config/rs6000/rs6000-builtin.def (XSRDPIM): Use floatdf2,
7891 ceildf2, btruncdf2, instead of vsx_* name.
7893 * config/rs6000/vsx.md (vsx_add<mode>3): Change arithmetic
7894 iterators to only do V2DF and V4SF here. Move the DF code to
7895 rs6000.md where it is combined with SF mode. Replace <VSv> with
7896 just 'v' since only vector operations are handled with these insns
7897 after moving the DF support to rs6000.md.
7898 (vsx_sub<mode>3): Likewise.
7899 (vsx_mul<mode>3): Likewise.
7900 (vsx_div<mode>3): Likewise.
7901 (vsx_fre<mode>2): Likewise.
7902 (vsx_neg<mode>2): Likewise.
7903 (vsx_abs<mode>2): Likewise.
7904 (vsx_nabs<mode>2): Likewise.
7905 (vsx_smax<mode>3): Likewise.
7906 (vsx_smin<mode>3): Likewise.
7907 (vsx_sqrt<mode>2): Likewise.
7908 (vsx_rsqrte<mode>2): Likewise.
7909 (vsx_fms<mode>4): Likewise.
7910 (vsx_nfma<mode>4): Likewise.
7911 (vsx_copysign<mode>3): Likewise.
7912 (vsx_btrunc<mode>2): Likewise.
7913 (vsx_floor<mode>2): Likewise.
7914 (vsx_ceil<mode>2): Likewise.
7915 (vsx_smaxsf3): Delete scalar ops that were moved to rs6000.md.
7916 (vsx_sminsf3): Likewise.
7917 (vsx_fmadf4): Likewise.
7918 (vsx_fmsdf4): Likewise.
7919 (vsx_nfmadf4): Likewise.
7920 (vsx_nfmsdf4): Likewise.
7921 (vsx_cmpdf_internal1): Likewise.
7923 * config/rs6000/rs6000.h (TARGET_SF_SPE): Define macros to make it
7924 simpler to select whether a target has SPE or traditional floating
7925 point support in iterators.
7926 (TARGET_DF_SPE): Likewise.
7927 (TARGET_SF_FPR): Likewise.
7928 (TARGET_DF_FPR): Likewise.
7929 (TARGET_SF_INSN): Macros to say whether floating point support
7930 exists for a given operation for expanders.
7931 (TARGET_DF_INSN): Likewise.
7933 * config/rs6000/rs6000.c (Ftrad): New mode attributes to allow
7934 combining of SF/DF mode operations, using both traditional and VSX
7942 (abs<mode>2): Combine SF/DF modes using traditional floating point
7943 instructions. Add support for using the upper DF registers with
7944 VSX support, and SF registers with power8-vector support. Update
7945 expanders for operations supported by both the SPE and traditional
7946 floating point units.
7947 (abs<mode>2_fpr): Likewise.
7948 (nabs<mode>2): Likewise.
7949 (nabs<mode>2_fpr): Likewise.
7950 (neg<mode>2): Likewise.
7951 (neg<mode>2_fpr): Likewise.
7952 (add<mode>3): Likewise.
7953 (add<mode>3_fpr): Likewise.
7954 (sub<mode>3): Likewise.
7955 (sub<mode>3_fpr): Likewise.
7956 (mul<mode>3): Likewise.
7957 (mul<mode>3_fpr): Likewise.
7958 (div<mode>3): Likewise.
7959 (div<mode>3_fpr): Likewise.
7960 (sqrt<mode>3): Likewise.
7961 (sqrt<mode>3_fpr): Likewise.
7962 (fre<Fs>): Likewise.
7963 (rsqrt<mode>2): Likewise.
7964 (cmp<mode>_fpr): Likewise.
7965 (smax<mode>3): Likewise.
7966 (smin<mode>3): Likewise.
7967 (smax<mode>3_vsx): Likewise.
7968 (smin<mode>3_vsx): Likewise.
7969 (negsf2): Delete SF operations that are merged with DF.
7976 (fmasf4_fpr): Likewise.
7977 (fmssf4_fpr): Likewise.
7978 (nfmasf4_fpr): Likewise.
7979 (nfmssf4_fpr): Likewise.
7980 (sqrtsf2): Likewise.
7981 (rsqrtsf_internal1): Likewise.
7982 (smaxsf3): Likewise.
7983 (sminsf3): Likewise.
7984 (cmpsf_internal1): Likewise.
7985 (copysign<mode>3_fcpsgn): Add VSX/power8-vector support.
7986 (negdf2): Delete DF operations that are merged with SF.
7988 (nabsdf2): Likewise.
7994 (rsqrtdf_internal1): Likewise.
7995 (fmadf4_fpr): Likewise.
7996 (fmsdf4_fpr): Likewise.
7997 (nfmadf4_fpr): Likewise.
7998 (nfmsdf4_fpr): Likewise.
7999 (sqrtdf2): Likewise.
8000 (smaxdf3): Likewise.
8001 (smindf3): Likewise.
8002 (cmpdf_internal1): Likewise.
8003 (lrint<mode>di2): Use TARGET_<MODE>_FPR macro.
8004 (btrunc<mode>2): Delete separate expander, and combine with the
8005 insn and add VSX instruction support. Use TARGET_<MODE>_FPR.
8006 (btrunc<mode>2_fpr): Likewise.
8007 (ceil<mode>2): Likewise.
8008 (ceil<mode>2_fpr): Likewise.
8009 (floor<mode>2): Likewise.
8010 (floor<mode>2_fpr): Likewise.
8011 (fma<mode>4_fpr): Combine SF and DF fused multiply/add support.
8012 Add support for using the upper registers with VSX and
8013 power8-vector. Move insns to be closer to the define_expands. On
8014 VSX systems, prefer the traditional form of FMA over the VSX
8015 version, since the traditional form allows the target not to
8016 overlap with the inputs.
8017 (fms<mode>4_fpr): Likewise.
8018 (nfma<mode>4_fpr): Likewise.
8019 (nfms<mode>4_fpr): Likewise.
8021 2013-10-03 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
8022 Richard Earnshaw <richard.earnshaw@arm.com>
8024 * config/arm/aarch-common-protos.h (struct alu_cost_table): New.
8025 (struct mult_cost_table): Likewise.
8026 (struct mem_cost_table): Likewise.
8027 (struct fp_cost_table): Likewise.
8028 (struct vector_cost_table): Likewise.
8029 (cpu_cost_table): Likewise.
8030 * config/arm/arm.opt (mold-rts-costs): New option.
8031 (mnew-generic-costs): Likewise.
8032 * config/arm/arm.c (generic_extra_costs): New table.
8033 (cortexa15_extra_costs): Likewise.
8034 (arm_slowmul_tune): Use NULL as new costs.
8035 (arm_fastmul_tune): Likewise.
8036 (arm_strongarm_tune): Likewise.
8037 (arm_xscale_tune): Likewise.
8038 (arm_9e_tune): Likewise.
8039 (arm_v6t2_tune): Likewise.
8040 (arm_cortex_a5_tune): Likewise.
8041 (arm_cortex_a9_tune): Likewise.
8042 (arm_v6m_tune): Likewise.
8043 (arm_fa726te_tune): Likewise.
8044 (arm_cortex_a15_tune): Use cortex15_extra_costs.
8045 (arm_cortex_tune): Use generict_extra_costs.
8046 (shifter_op_p): New function.
8047 (arm_unspec_cost): Likewise.
8048 (LIBCALL_COST): Define.
8049 (arm_new_rtx_costs): New function.
8050 (arm_rtx_costs): Use arm_new_rtx_costs when core-specific
8051 table is available. Use old costs otherwise unless mnew-generic-costs
8053 * config/arm/arm-protos.h (tune_params): Add insn_extra_cost field.
8054 (cpu_cost_table): Declare.
8056 2013-10-03 Marcus Shawcroft <marcus.shawcroft@arm.com>
8059 * config/aarch64/aarch64.md (*adds_mul_imm_<mode>)
8060 (*subs_mul_imm_<mode>)
8061 (*add_<shift>_<mode>, *add_<shift>_si_uxtw,*add_mul_imm_<mode>)
8062 (*sub_<shift>_<mode>)
8063 (*sub_<shift>_si_uxtw,*sub_mul_imm_<mode>, *sub_mul_imm_si_uxtw):
8064 Remove k constraint.
8066 2013-10-03 Ian Bolton <ian.bolton@arm.com>
8068 * config/aarch64/aarch64.c (aarch64_secondary_reload): Remove legacy
8070 * config/aarch64/aarch64.md (reload_sp_immediate): Likewise.
8072 2013-10-02 Teresa Johnson <tejohnson@google.com>
8074 * predict.c (probably_never_executed): New function.
8075 (probably_never_executed_bb_p): Invoke probably_never_executed.
8076 (probably_never_executed_edge_p): Ditto.
8077 * bb-reorder.c (find_rarely_executed_basic_blocks_and_crossing_edges):
8078 Treat profile insanities conservatively.
8080 2013-10-02 John David Anglin <danglin@gcc.gnu.org>
8082 * config.gcc (hppa*64*-*-linux*): Don't add pa/t-linux to tmake_file.
8084 2013-10-02 Vladimir Makarov <vmakarov@redhat.com>
8086 * lra-constraints.c (process_alt_operand): Calculate scratch_p and
8087 use it. Use smaller increase for scratch. Don't increase reject
8088 for early clobber scratch.
8089 * lra-eliminations.c (eliminate_regs_in_insn): Remove all insns
8090 setting eliminated regs except setting fp from hfp.
8091 (lra_eliminate): Check lra_insn_recog_data on NULL.
8093 2013-10-02 Michael Meissner <meissner@linux.vnet.ibm.com>
8096 * config/rs6000/rs6000-cpus.def (ISA_2_6_MASKS_SERVER): Turn off
8097 setting -mvsx-timode by default until the underlying problem is fixed.
8098 (RS6000_CPU, power7 defaults): Likewise.
8100 2013-10-02 Uros Bizjak <ubizjak@gmail.com>
8102 * config/x-linux (host-linux.o): Remove header dependencies.
8103 Use $(COMPILE) and $(POSTCOMPILE).
8104 * config/t-linux-android (linux-android.o): Ditto.
8106 2013-10-02 Uros Bizjak <ubizjak@gmail.com>
8108 * Makefile.in (expmed.o-warn): Remove.
8110 2013-10-02 Andrew MacLeod <amacleod@redhat.com>
8112 * graphite-scop-detection.c: Include tree-ssa-propagate,h.
8113 * graphite-sese-to-poly.c: Include tree-ssa-propagate.h.
8115 2013-10-02 Teresa Johnson <tejohnson@google.com>
8117 * dojump.c (do_jump_1): Divide probability between
8118 both conditions of a TRUTH_ANDIF_EXPR/TRUTH_ORIF_EXPR.
8120 2013-10-02 Tom Tromey <tromey@redhat.com>
8122 * Makefile.in (DRIVER_DEFINES): Use $(if), not $(and).
8124 2013-10-02 Andrew MacLeod <amacleod@redhat.com>
8126 * tree-flow.h: Remove some prototypes.
8127 * tree-ssa-dce.c (mark_virtual_operand_for_renaming,
8128 mark_virtual_phi_result_for_renaming): Move to tree-into-ssa.c.
8129 * tree-into-ssa.c (mark_virtual_operand_for_renaming,
8130 mark_virtual_phi_result_for_renaming): Relocate here.
8131 * tree-into-ssa.h: Add prototypes.
8132 * tree-ssa-phiopt.c: (tree_ssa_phiopt_worker) Use
8133 single_pred_before_succ_order.
8134 (blocks_in_phiopt_order): Rename and move to cfganal.c.
8135 (nonfreeing_call_p) Move to gimple.c.
8136 * cfganal.c (single_pred_before_succ_order): Move and renamed from
8138 * basic-block.h (single_pred_before_succ_order): Add prototype.
8139 * gimple.c (nonfreeing_call_p): Relocate here.
8140 * gimple.h: Add prototype.
8141 * tree-ssa-ifcombine.c: Include tree-ssa-phiopt.h.
8142 * tree-ssa-dom.h: New file. Relocate prototypes here.
8143 * tree-ssa.h: Include tree-ssa-dom.h.
8145 2013-10-02 Uros Bizjak <ubizjak@gmail.com>
8147 * config/i386/x-i386 (driver-i386.o): Remove header dependencies.
8148 Use $(COMPILE) and $(POSTCOMPILE).
8150 * config/alpha/x-alpha (driver-alpha.o): Ditto.
8152 2013-10-02 Andrew MacLeod <amacleod@redhat.com>
8154 * tree-flow.h: Remove some prototypes.
8155 * gimple-fold.h: Add prototypes from gimple.h and tree-flow.h.
8156 * tree-ssa-propagate.h: Relocate prototypes from tree-flow.h.
8157 * tree-ssa-copy.c (may_propagate*, propagate_value, replace_exp,
8158 propagate_tree_value*): Move from here to...
8159 * tree-ssa-propagate.c (may_propagate*, propagate_value, replace_exp,
8160 propagate_tree_value*): Relocate here.
8161 * tree-ssa-propagate.h: Relocate prototypes from tree-flow.h.
8162 * gimple.h: Include gimple-fold.h, move prototypes into gimple-fold.h.
8163 * gimple-fold.c: Remove gimple-fold.h from include list.
8164 * tree-vrp.c: Remove gimple-fold.h from include list.
8165 * tree-ssa-sccvn.c: Remove gimple-fold.h from include list.
8166 * tree-ssa-ccp.c: Remove gimple-fold.h from include list.
8167 * tree-scalar-evolution.c: Add tree-ssa-propagate.h to include list.
8168 * tree-ssa-pre.c: Add tree-ssa-propagate.h to include list.
8169 * sese.c: Add tree-ssa-propagate.h to include list.
8171 2013-10-02 Richard Biener <rguenther@suse.de>
8173 * tree-loop-distribution.c: Include tree-vectorizer.h for
8175 (enum partition_kind): Remove PKIND_REDUCTION.
8176 (struct partition_s): Remove has_writes member, add reduction_p member.
8177 (partition_alloc): Adjust.
8178 (partition_builtin_p): Likewise.
8179 (partition_has_writes): Remove.
8180 (partition_reduction_p): New function.
8181 (partition_merge_into): Likewise.
8182 (generate_code_for_partition): Commonize builtin partition
8184 (rdg_cannot_recompute_vertex_p): Remove.
8185 (already_processed_vertex_p): Likewise.
8186 (rdg_flag_vertex): Do not set has_writes.
8187 (classify_partition): Adjust.
8188 (rdg_build_partitions): Do not set has_writes, treat all
8189 partitions as useful.
8190 (distribute_loop): Record number of library calls generated. Adjust.
8191 (tree_loop_distribution): Report number of loops and library
8192 calls generated as opt-info.
8194 2013-10-02 Andrew MacLeod <amacleod@redhat.com>
8196 * tree-flow.h: Include new .h files. Move prototypes.
8197 * tree-cfgcleanup.h: New file. Add prototypes from tree-flow.h.
8198 * tree-dfa.h: New File. Add prototypes from tree-flow.h.
8199 (get_addr_base_and_unit_offset_1) Move from tree-flow-inline.h.
8200 * tree-pretty-print.h: Add prototypes from tree-flow.h.
8201 * tree-into-ssa.h: New File. Add prototypes from tree-flow.h.
8202 ({debug|dump}*): Move debugging prototypes out of tree-into-ssa.c.
8203 * tree-into-ssa.c ({debug|dump}*): Move prototypes to header file.
8204 * tree.h (get_ref_base_and_extent): Move prototype out.
8205 * tree-flow-inline.h (get_addr_base_and_unit_offset_1): Move to
8207 * gimple-low.h: New File. Add prototypes from tree-flow.h.
8208 * gimple-low.c (try_catch_may_fallthru, block_may_fallthru): Move to...
8209 * tree.c (try_catch_may_fallthru, block_may_fallthru): Here.
8210 * tree-scalar-evolution.c: Include tree.h.
8211 * sese.c: Include tree.h.
8212 * dumpfile.c: Move gimple-pretty-print.h include after tree.h.
8213 * dwarf2out.c: Include tree-dfa.h.
8214 * tree-chrec.c: Include tree.h.
8215 * tree-data-ref.c: Include tree.h.
8217 2013-10-02 Yufeng Zhang <yufeng.zhang@arm.com>
8219 * gimple-ssa-strength-reduction.c (backtrace_base_for_ref):
8222 2013-10-02 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8224 * config/t-sol2 (sol2-c.o): Remove header dependencies.
8225 Use $(COMPILE) and $(POSTCOMPILE).
8226 (sol2-cxx.o): Likewise.
8227 (sol2-stubs.o): Likewise.
8229 * config/x-solaris (host-solaris.o): Likewise.
8231 * config/sparc/t-sparc (sparc.o): Remove.
8232 (sparc-c.o): Remove header dependencies.
8233 Use $(COMPILE) and $(POSTCOMPILE).
8234 * config/sparc/x-sparc: Likewise.
8236 2013-10-02 Joern Rennecke <joern.rennecke@embecosm.com>
8238 * config/arc/arc-opts.h: Add 2013 to Copyright years.
8239 * config/arc/arc700.md: Likewise.
8240 * config/arc/arc-modes.def: Likewise.
8241 * config/arc/arc-simd.h: Likewise.
8242 * config/arc/t-arc-uClibc: Likewise.
8243 * config/arc/t-arc-newlib: Likewise.
8245 2013-10-02 Renlin Li <renlin.li@arm.com>
8247 * config/aarch64/aarch64.c (aarch64_expand_prologue): Use
8249 (aarch64_expand_epilogue): Likewise.
8251 2013-10-02 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
8252 Yufeng Zhang <yufeng.zhang@arm.com>
8254 * gimple-ssa-strength-reduction.c (legal_cast_p_1): Forward
8256 (backtrace_base_for_ref): Call get_unwidened with 'base_in' if
8257 'base_in' represent a conversion and legal_cast_p_1 holds; set
8258 'base_in' with the returned value from get_unwidened.
8260 2013-10-02 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
8262 * config/arm/arm.c (arm_legitimize_reload_address): Explain why
8263 plus_constant is not used.
8265 2013-10-01 Wei Mi <wmi@google.com>
8267 * config/i386/x86-tune.def (DEF_TUNE): Remove m_CORE_ALL.
8268 * config/i386/i386.md: Add define_peephole2 to
8269 break partial reg stall for cvtss2sd/cvtsd2ss.
8271 2013-10-01 Joern Rennecke <joern.rennecke@embecosm.com>
8273 * config/arc/arc.c (pass_arc_ifcvt::clone):
8274 Update for ctxt_ -> m_ctxt change.
8276 2013-10-01 Jeff Law <law@redhat.com>
8278 * tree-ssa-threadupdate.c (struct redirection_data): Delete
8279 outgoing_edge and intermediate_edge fields. Instead store the path.
8280 (redirection_data::hash): Hash on the last edge's destination index.
8281 (redirection_data::equal): Check the entire thread path.
8282 (lookup_redirectio_data): Corresponding changes.
8283 (create_edge_and_update_destination_phis): Likewise.
8284 (thread_single_edge): Likewise.
8286 2013-10-01 Joern Rennecke <joern.rennecke@embecosm.com>
8287 Diego Novillo <dnovillo@google.com>
8289 * config/arc/simdext.md (UNSPEC_ARC_SIMD_VLD32WH): Delete.
8290 (UNSPEC_ARC_SIMD_VLD32WL): Likewise.
8291 (vld32wh_insn, vld32wl_insn): Delete commented-out old
8292 versions of these patterns.
8294 * doc/extend.texi (long_call/medium_call/short_call): Typo fix.
8295 (__builtin_arc_aligned): Likewise.
8297 * config/arc/arc.md: Expand adc_0 comment stating the intended
8298 purpose and why it isn't ready.
8299 Replace commented out call_value_via_label_mixed with a
8300 plain comment about bl_s.
8302 * config/arc/arc.c (stdio.h): Don't include directly.
8303 (arc_expand_epilogue): Remove [0]: Remove fp_restored_p.
8304 Remove if (1) condition.
8305 (arc_encode_section_info): Fix comment.
8307 2013-10-01 Joern Rennecke <joern.rennecke@embecosm.com>
8309 * config/arc/arc.c (arc_conditional_register_usage):
8310 Use ARC_FIRST_SIMD_VR_REG / ARC_LAST_SIMD_VR_REG.
8311 Also set reg_alloc_order for DMA config regs.
8313 2013-10-01 Joern Rennecke <joern.rennecke@embecosm.com>
8314 Jeremy Bennett <jeremy.bennett@embecosm.com>
8316 * doc/install.texi (--with-cpu): Mention ARC.
8317 (arc-*-elf32): New paragraph.
8318 (arc-linux-uclibc): Likewise.
8319 * doc/md.texi (Machine Constraints): Add ARC part.
8320 * doc/invoke.texi: (menu): Add ARC Options.
8321 (Machine Dependent Options) <ARC Options>: Add synopsis.
8322 (node ARC Options): Add.
8323 * doc/extend.texi (long_call / short_call attribute): Add ARC.
8324 (ARC Built-in Functions): New section defining
8325 generic ARC built-in functions.
8326 (ARC SIMD Built-in Functions): New section defining SIMD specific
8328 (Declaring Attributes of Functions): Extended
8329 description of short_call and long_call attributes for ARC and
8330 added index entries.
8332 2013-10-01 Saurabh Verma <saurabh.verma@codito.com>
8333 Ramana Radhakrishnan <ramana.radhakrishnan@codito.com>
8334 Joern Rennecke <joern.rennecke@embecosm.com>
8335 Muhammad Khurram Riaz <khurram.riaz@arc.com>
8336 Brendan Kehoe <brendan@zen.org>
8337 Michael Eager <eager@eagercon.com>
8338 Simon Cook <simon.cook@embecosm.com>
8339 Jeremy Bennett <jeremy.bennett@embecosm.com>
8341 * config/arc, common/config/arc: New directories.
8343 2013-10-01 Joern Rennecke <joern.rennecke@embecosm.com>
8344 Brendan Kehoe <brendan@zen.org>
8345 Simon Cook <simon.cook@embecosm.com>
8347 * config.gcc (arc*-*-elf*, arc*-*-linux-uclibc*): New configurations.
8349 2013-10-01 Andrew MacLeod <amacleod@redhat.com>
8351 * tree-ssa-live.h (coalesce_ssa_name): Move Prototype to...
8352 * tree-ssa-coalesce.h: New. Move prototype to here.
8353 * tree-outof-ssa.h: Include tree-ssa-coalesce.h.
8354 * tree-ssa-coalesce.c: Include tree-outof-ssa.h.
8355 (gimple_can_coalesce_p): Move to...
8356 * gimple.c (gimple_can_coalesce_p): Here.
8358 2013-10-01 Andrew MacLeod <amacleod@redhat.com>
8360 * tree-into-ssa.c (enum need_phi_state): Relocate from tree-flow.h.
8361 (dump_decl_set): Move to gimple.c.
8362 * gimple.h: Don't include tree-ssa-operands.h.
8363 (dump_decl_set): Add prototype.
8364 (gimple_vuse_op, gimple_vdef_op, update_stmt, update_stmt_if_modified):
8365 Move to gimple-ssa.h.
8366 (phi_ssa_name_p, phi_nodes, phi_nodes_ptr, gimple_phi_arg_def,
8367 gimple_phi_arg_def_ptr, gimple_phi_arg_edge, gimple_phi_arg_location,
8368 gimple_phi_arg_location_from_edge, gimple_phi_arg_set_location,
8369 gimple_phi_arg_has_location): Relocate from tree-flow-inline.h
8370 * gimple.c (walk_stmt_load_store_ops): Use gimple_phi_arg_def rather
8372 (dump_decl_set): Relocate here.
8373 * gimple-ssa.h: New file.
8374 (gimple_vuse_op, gimple_vdef_op, update_stmt, update_stmt_if_modified):
8375 Relocate from gimple.h.
8376 * tree-cfg.c (has_zero_uses_1, single_imm_use_1): Move to...
8377 * tree-ssa-operands.c (swap_ssa_operands): Rename from
8378 swap_tree_operands and remove non-ssa path.
8379 (has_zero_uses_1, single_imm_use_1): Relocate from tree-cfg.c.
8380 * tree-ssa-reassoc.c (linearize_expr_tree, repropagate_negates): Use
8382 * tree-vect-loop.c (destroy_loop_vec_info, vect_is_slp_reduction,
8383 vect_is_simple_reduction_1): Use swap_ssa_operands.
8384 * tree-flow.h: Move various prototypes to tree-phinodes.h.
8385 (enum need_phi_state): Move to tree-into-ssa.c.
8386 (struct immediate_use_iterator_d, FOR_EACH_IMM_*,
8387 BREAK_FROM_IMM_USE_STMT): Move to ssa-iterators.h.
8388 (swap_tree_operands): Rename and move prototype to tree-ssa-operands.h.
8389 * tree-flow-inline.h (delink_imm_use, link_imm_use_to_list,
8390 link_imm_use, set_ssa_use_from_ptr, link_imm_use_stmt, relink_imm_use,
8391 relink_imm_use_stmt, end_readonly_imm_use_p, first_readonly_imm_use,
8392 next_readonly_imm_use, has_zero_uses, has_single_use, single_imm_use,
8393 num_imm_uses): Move to ssa-iterators.h.
8394 (get_use_from_ptr, get_def_from_ptr): Move to tree-ssa-operands.h
8395 (gimple_phi_arg_imm_use_ptr, phi_arg_index_from_use): Move to
8397 (op_iter_done, op_iter_next_def, op_iter_next_tree,
8398 clear_and_done_ssa_iter, op_iter_init, op_iter_init_use,
8399 op_iter_init_def, op_iter_init_tree, single_ssa_tree_operand,
8400 single_ssa_use_operand, single_ssa_def_operand, zero_ssa_operands,
8401 num_ssa_operands, delink_stmt_imm_use, single_phi_def,
8402 op_iter_init_phiuse, op_iter_init_phidef, end_imm_use_stmt_p,
8403 end_imm_use_stmt_traverse, move_use_after_head, link_use_stmts_after,
8404 first_imm_use_stmt, next_imm_use_stmt, first_imm_use_on_stmt,
8405 end_imm_use_on_stmt_p, next_imm_use_on_stmt): Move to ssa-iterators.h.
8406 (gimple_phi_arg_def, gimple_phi_arg_def_ptr, gimple_phi_arg_edge,
8407 gimple_phi_arg_location, gimple_phi_arg_location_from_edge,
8408 gimple_phi_arg_set_location, gimple_phi_arg_has_location, phi_nodes,
8409 phi_nodes_ptr, phi_ssa_name_p): Move to gimple.h.
8410 (set_phi_nodes): Move to tree-phinodes.h.
8411 * tree-ssa-operands.h (enum ssa_op_iter_type,
8412 struct ssa_operand_iterator_d, SSA_OP*, FOR_EACH_SSA*, SINGLE_SSA*,
8413 ZERO_SSA_OPERANDS, NUM_SSA_OPERANDS): Move to ssa-iterators.h.
8414 (dump_decl_set): Remove prototype.
8415 (get_use_from_ptr, get_def_from_ptr): Relocate from tree-flow.h.
8416 * tree-phinodes.h: New file. Move some prototypes from tree-flow.h.
8417 (set_phi_nodes): Relocate from tree-flow-inline.h.
8418 (gimple_phi_arg_imm_use_ptr, phi_arg_index_from_use): Relocate from
8420 * tree-ssa.h: Add tree-phinodes.h, gimple-ssa.h, ssa-iterators.h to
8421 include list. Temporarily add gimple.h to include list.
8422 * ssa-iterators.h: New file.
8423 (struct immediate_use_iterator_d, FOR_EACH_IMM_*,
8424 BREAK_FROM_IMM_USE_STMT): Relocate from tree-flow.h.
8425 (enum ssa_op_iter_type, struct ssa_operand_iterator_d, SSA_OP*,
8426 FOR_EACH_SSA*, SINGLE_SSA*, ZERO_SSA_OPERANDS, NUM_SSA_OPERANDS):
8427 Relocate from tree-ssa-operands.h.
8428 (delink_imm_use, link_imm_use_to_list, link_imm_use,
8429 set_ssa_use_from_ptr, link_imm_use_stmt, relink_imm_use,
8430 relink_imm_use_stmt, end_readonly_imm_use_p, first_readonly_imm_use,
8431 next_readonly_imm_use, has_zero_uses, has_single_use, single_imm_use,
8432 num_imm_uses, get_use_from_ptr, get_def_from_ptr,
8433 phi_arg_index_from_use, op_iter_done, op_iter_next_def,
8434 op_iter_next_tree, clear_and_done_ssa_iter, op_iter_init,
8435 op_iter_init_use, op_iter_init_def, op_iter_init_tree,
8436 single_ssa_tree_operand, single_ssa_use_operand, single_ssa_def_operand,
8437 zero_ssa_operands, num_ssa_operands, delink_stmt_imm_use,
8438 single_phi_def, op_iter_init_phiuse, op_iter_init_phidef,
8439 end_imm_use_stmt_p, end_imm_use_stmt_traverse, move_use_after_head,
8440 link_use_stmts_after, first_imm_use_stmt, next_imm_use_stmt,
8441 first_imm_use_on_stmt, end_imm_use_on_stmt_p, next_imm_use_on_stmt):
8442 Relocate from tree-flow-inline.h.
8443 * tree-outof-ssa.h: Change _SSAEXPAND_H macro to GCC_TREE_OUTOF_SSA_H.
8445 2013-10-01 Vidya Praveen <vidyapraveen@arm.com>
8448 (aarch64_<ANY_EXTEND:su><ADDSUB:optab>l2<mode>_internal): Rename to ...
8449 (aarch64_<ANY_EXTEND:su><ADDSUB:optab>l<mode>_hi_internal): ... this;
8450 Insert '\t' to output template.
8451 (aarch64_<ANY_EXTEND:su><ADDSUB:optab>l<mode>_lo_internal): New.
8452 (aarch64_saddl2<mode>, aarch64_uaddl2<mode>): Modify to call
8453 gen_aarch64_<ANY_EXTEND:su><ADDSUB:optab>l<mode>_hi_internal() instead.
8454 (aarch64_ssubl2<mode>, aarch64_usubl2<mode>): Ditto.
8456 2013-10-01 Uros Bizjak <ubizjak@gmail.com>
8458 * doc/install.texi (Host/target specific installation notes for GCC):
8459 Put @anchor before @heading.
8460 * doc/gcc.texi (titlepage): Use @uref and http:// prefix for website.
8461 Use @email for email addresses.
8463 2013-10-01 Jeff Law <law@redhat.com>
8465 * tree-ssa-threadedge.c (thread_across_edge): Make path a pointer to
8466 a vec. Only delete the path if we create one without successfully
8467 registering a jump thread.
8468 * tree-ssa-threadupdate.h (register_jump_thread): Pass in path vector
8470 * tree-ssa-threadupdate.c (threaded_edges): Remove. No longer used
8471 (paths): New vector of jump threading paths.
8472 (THREAD_TARGET, THREAD_TARGET2): Remove accessor macros.
8473 (THREAD_PATH): New accessor macro for the entire thread path.
8474 (lookup_redirection_data): Get intermediate and final outgoing edge
8475 from the thread path.
8476 (create_edge_and_update_destination_phis): Copy the threading path.
8477 (ssa_fix_duplicate_block_edges): Get edges and block types from the
8478 jump threading path.
8479 (ssa_redirect_edges): Get edges and block types from the jump threading
8480 path. Free the path vector.
8481 (thread_block): Get edges from the jump threading path. Look at the
8482 entire path to see if we thread to a loop exit. If we cancel a jump
8483 thread request, then free the path vector.
8484 (thread_single_edge): Get edges and block types from the jump threading
8485 path. Free the path vector.
8486 (thread_through_loop_header): Get edges and block types from the jump
8487 threading path. Free the path vector.
8488 (mark_threaded_blocks): Iterate over the vector of paths and store
8489 the path on the appropriate edge. Get edges and block types from the
8490 jump threading path.
8491 (mark_threaded_blocks): Get edges and block types from the jump
8492 threading path. Free the path vector.
8493 (thread_through_all_blocks): Use the vector of paths rather than
8494 a vector of 3-edge sets.
8495 (register_jump_thread): Accept pointer to a path vector rather
8496 than the path vector itself. Store the path vector for later use.
8499 2013-10-01 Jakub Jelinek <jakub@redhat.com>
8500 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
8503 * config/s390/s390.c (s390_split_branches): Modify check for table
8505 (s390_chunkify_start): Rearrange table jump insn check in order to
8506 deal with compare and branch insns correctly.
8508 2013-10-01 Kugan Vivekanandarajah <kuganv@linaro.org>
8512 2013-04-05 Greta Yorsh <Greta.Yorsh@arm.com>
8513 * config/arm/arm.md (arm_ashldi3_1bit): define_insn into
8514 define_insn_and_split.
8515 (arm_ashrdi3_1bit,arm_lshrdi3_1bit): Likewise.
8516 (shiftsi3_compare): New pattern.
8518 * config/arm/unspecs.md (UNSPEC_RRX): New.
8520 2013-10-01 Alan Modra <amodra@gmail.com>
8522 * stmt.c (expand_asm_operands): Revert part of 2013-09-24 special
8523 casing inout operands.
8525 2013-10-01 Richard Biener <rguenther@suse.de>
8527 PR tree-optimization/58553
8528 * tree-loop-distribution.c (struct partition_s): Add niter member.
8529 (classify_partition): Populate niter member for the partition
8530 and properly identify whether the relevant store happens before
8531 or after the loop exit.
8532 (generate_memset_builtin): Use niter member from the partition.
8533 (generate_memcpy_builtin): Likewise.
8535 2013-09-30 Richard Sandiford <rdsandiford@googlemail.com>
8537 * vec.h (vec_prefix, vec): Prefix member names with "m_".
8538 * vec.c (vec_prefix::calculate_allocation): Update accordingly.
8540 2013-09-30 Richard Sandiford <rdsandiford@googlemail.com>
8542 * basic-block.h (edge_list): Prefix member names with "m_".
8543 * context.h (context): Likewise.
8544 * domwalk.h (dom_walker): Likewise.
8545 * gengtype-state.c (s_expr_writer, state_writer): Likewise.
8546 * graphite-sese-to-poly.c (sese_dom_walker): Likewise.
8547 * hash-table.h (hash_table): Likewise.
8548 * machmode.h (bit_field_mode_iterator): Likewise.
8549 * pass_manager.h (pass_list): Likewise.
8550 * tree-into-ssa.c (mark_def_dom_walker): Likewise.
8551 * tree-pass.h (pass_data): Likewise.
8552 * tree-ssa-dom.c (dom_opt_dom_walker): Likewise.
8553 * tree-ssa-phiopt.c (nontrapping_dom_walker): Likewise,
8554 * tree-ssa-uncprop.c (uncprop_dom_walker): Likewise.
8555 * asan.c (pass_data_asan): Update accordingly.
8556 * cfganal.c (control_dependences::find_control_dependence): Likewise.
8557 (control_dependences::control_dependences): Likewise.
8558 (control_dependences::~control_dependences): Likewise.
8559 (control_dependences::~control_dependences): Likewise.
8560 (control_dependences::get_edges_dependent_on): Likewise.
8561 * cgraphbuild.c (pass_data_rebuild_cgraph_edges::clone): Likewise.
8562 (pass_data_remove_cgraph_callee_edges::clone): Likewise.
8563 * context.c (gcc::context::context): Likewise.
8564 * cprop.c (pass_rtl_cprop::clone): Likewise.
8565 * domwalk.c (dom_walker::walk): Likewise.
8566 * ipa-inline-analysis.c (pass_inline_parameters::clone): Likewise.
8567 * ipa-pure-const.c (pass_local_pure_const::clone): Likewise.
8568 * mode-switching.c (pass_mode_switching::clone): Likewise.
8569 * passes.c (opt_pass::opt_pass): Likewise.
8570 (pass_manager::pass_manager): Likewise.
8571 * predict.c (pass_strip_predict_hints::clone): Likewise.
8572 * recog.c (pass_data pass_data_peephole2::clone): Likewise.
8573 (pass_split_all_insns::clone): Likewise.
8574 * stor-layout.c (bit_field_mode_iterator::bit_field_mode_iterator):
8576 (bit_field_mode_iterator::next_mode): Likewise.
8577 (bit_field_mode_iterator::prefer_smaller_modes): Likewise.
8578 * tree-cfg.c (pass_split_crit_edges::clone): Likewise.
8579 * tree-cfgcleanup.c (pass_merge_phi::clone): Likewise.
8580 * tree-complex.c (pass_lower_complex::clone): Likewise.
8581 * tree-eh.c (pass_cleanup_eh::clone): Likewise.
8582 * tree-object-size.c (pass_object_sizes::clone): Likewise.
8583 * tree-optimize.c (pass_fixup_cfg::clone): Likewise.
8584 * tree-ssa-ccp.c (pass_data_ccp::clone): Likewise.
8585 (pass_fold_builtins::clone): Likewise.
8586 * tree-ssa-copy.c (pass_data_copy_prop::clone): Likewise.
8587 * tree-ssa-copyrename.c (pass_rename_ssa_copies::clone): Likewise.
8588 * tree-ssa-dce.c (pass_dce::clone, pass_dce_loop::clone): Likewise.
8589 (pass_cd_dce::clone): Likewise.
8590 * tree-ssa-dom.c (pass_dominator::clone): Likewise.
8591 (pass_phi_only_cprop::clone): Likewise.
8592 * tree-ssa-dse.c (pass_dse::clone): Likewise.
8593 * tree-ssa-forwprop.c (pass_forwprop::clone): Likewise.
8594 * tree-ssa-loop.c (pass_lim::clone): Likewise.
8595 * tree-ssa-phiopt.c (pass_phiopt::clone): Likewise.
8596 * tree-ssa-pre.c (pass_fre::clone): Likewise.
8597 * tree-ssa-reassoc.c (pass_reassoc::clone): Likewise.
8598 * tree-ssa-uninit.c (pass_late_warn_uninitialized::clone): Likewise.
8599 * tree-tailcall.c (pass_tail_recursion::clone): Likewise.
8600 * tree-vect-generic.c (pass_lower_vector_ssa::clone): Likewise.
8601 * tree-vrp.c (pass_vrp::clone): Likewise.
8602 * tsan.c (pass_tsan::clone): Likewise.
8604 2013-09-30 Jakub Jelinek <jakub@redhat.com>
8607 * fold-const.c (tree_unary_nonnegative_warnv_p): Use
8608 INTEGRAL_TYPE_P (t) instead of TREE_CODE (t) == INTEGER_TYPE.
8611 * fold-const.c (fold_ternary_loc): For A < 0 : <sign bit of A> : 0
8612 optimization, punt if sign_bit_p looked through any zero extension.
8614 2013-09-30 Teresa Johnson <tejohnson@google.com>
8616 * tree-ssa-threadupdate.c (ssa_fix_duplicate_block_edges):
8617 Update redirected out edge count in joiner case.
8618 (ssa_redirect_edges): Common the joiner and non-joiner cases
8619 so that joiner case gets profile updates.
8621 2013-09-30 Richard Biener <rguenther@suse.de>
8623 PR tree-optimization/58554
8624 * tree-loop-distribution.c (classify_partition): Require
8625 unconditionally executed stores for memcpy and memset recognition.
8626 (tree_loop_distribution): Calculate dominance info.
8628 2013-09-30 Venkataramanan Kumar <venkataramanan.kumar@linaro.org>
8630 * config/aarch64/aarch64.h (MCOUNT_NAME): Define.
8631 (NO_PROFILE_COUNTERS): Likewise.
8632 (PROFILE_HOOK): Likewise.
8633 (FUNCTION_PROFILER): Likewise.
8634 * config/aarch64/aarch64.c (aarch64_function_profiler): Remove.
8636 2013-09-30 Iain Sandoe <iain@codesourcery.com>
8638 * config/rs6000/darwin.md (load_macho_picbase_si): Wrap machopic
8639 calls and defines in TARGET_MACHO conditional.
8640 (load_macho_picbase_di): Likewise.
8641 (reload_macho_picbase): Likewise.
8642 (reload_macho_picbase_si): Likewise.
8643 (reload_macho_picbase_di): Likewise.
8644 (nonlocal_goto_receiver): Likewise.
8646 2013-09-30 Nick Clifton <nickc@redhat.com>
8648 * config/msp430/msp430.c (msp430x_names): New array. Lists MCUs
8649 that use the MSP430X ISA.
8650 (msp430_option_override): Scan -mmcu command line option for any
8651 MCU name that supports the MSP430X ISA.
8652 * config/msp430/t-msp430 (MULTILIB_MATCHES): Add matches for known
8653 -mmcu options which enable the MSP430X ISA.
8655 2013-09-30 Richard Biener <rguenther@suse.de>
8658 * tree-cfg.c (make_abnormal_goto_edges): Skip debug statements
8659 before looking for setjmp-like calls.
8661 2013-09-29 Iain Sandoe <iain@codesourcery.com>
8664 * config/darwin-protos.h (machopic_get_function_picbase): New.
8665 * config/darwin.c (machopic_get_function_picbase): New.
8666 * config/rs6000/darwin.md (load_macho_picbase_si): Update picbase
8667 label for a new func. (load_macho_picbase_di): Likewise.
8668 (reload_macho_picbase): New expand.
8669 (reload_macho_picbase_si): New insn.
8670 (reload_macho_picbase_di): New insn.
8671 (nonlocal_goto_receiver): New define and split.
8672 * config/rs6000/rs6000.md (unspec enum): Add UNSPEC_RELD_MPIC.
8673 (unspecv enum): Add UNSPECV_NLGR.
8675 2013-09-29 Iain Sandoe <iain@codesourcery.com>
8677 * config/rs6000/rs6000.c (rs6000_init_dwarf_reg_sizes_extra): Ensure
8678 that altivec registers are correctly sized on Darwin.
8680 2013-09-29 Iain Sandoe <iain@codesourcery.com>
8682 * config/t-darwin (darwin.o, darwin-c.o, darwin-f.o,
8683 darwin-driver.o): Use COMPILE and POSTCOMPILE.
8684 * config/x-darwin (host-darwin.o): Likewise.
8685 * config/i386/x-darwin (host-i386-darwin.o): Likewise.
8686 * config/rs6000/x-darwin (host-ppc-darwin.o): Likewise.
8687 * config/rs6000/x-darwin64 (host-ppc64-darwin.o): Likewise.
8689 2013-09-29 Uros Bizjak <ubizjak@gmail.com>
8691 * doc/invoke.texi: Fix usage of @tie{} command.
8693 2013-09-29 Eric Botcazou <ebotcazou@adacore.com>
8695 * config/sparc/sync.md: Add peephole for consecutive memory barriers.
8697 2013-09-28 Jan Hubicka <jh@suse.cz>
8699 * config/i386/x86-tune.def: Add documentation for each of the options;
8702 2013-09-28 Jan Hubicka <jh@suse.cz>
8704 * x86-tune.def (X86_TUNE_SSE_UNALIGNED_LOAD_OPTIMAL): Enable for
8706 (X86_TUNE_SSE_UNALIGNED_STORE_OPTIMAL): Likewise.
8707 (X86_TUNE_FOUR_JUMP_LIMIT): Drop for generic and buldozer.
8708 (X86_TUNE_PAD_RETURNS): Drop for buldozer chips.
8709 (X86_TUNE_AVOID_VECTOR_DECODE): Drop for generic.
8710 (X86_TUNE_REASSOC_FP_TO_PARALLEL): Enable for generic.
8712 2013-09-28 Richard Sandiford <rdsandiford@googlemail.com>
8714 * alloc-pool.c, asan.c, auto-inc-dec.c, basic-block.h, bb-reorder.c,
8715 bitmap.c, bitmap.h, bt-load.c, builtins.c, calls.c, cfgcleanup.c,
8716 cfgexpand.c, cfghooks.c, cfgloop.c, cfgloopmanip.c, cfgrtl.c, cgraph.c,
8717 cgraph.h, cgraphbuild.c, cgraphclones.c, cgraphunit.c, collect2.c,
8718 combine-stack-adj.c, combine.c, compare-elim.c, context.c, context.h,
8719 cprop.c, cse.c, cselib.c, dbxout.c, dce.c, defaults.h, df-core.c,
8720 df-problems.c, df-scan.c, df.h, diagnostic.c, double-int.c, dse.c,
8721 dumpfile.c, dwarf2asm.c, dwarf2cfi.c, dwarf2out.c, emit-rtl.c,
8722 errors.c, except.c, expmed.c, expr.c, file-find.c, final.c,
8723 fixed-value.c, fold-const.c, function.c, fwprop.c, gcc-ar.c, gcc.c,
8724 gcov-io.c, gcov-io.h, gcov.c, gcse.c, genattr-common.c, genattr.c,
8725 genattrtab.c, genautomata.c, genconfig.c, genemit.c, genextract.c,
8726 genflags.c, gengenrtl.c, gengtype-state.c, gengtype.c, genmodes.c,
8727 genopinit.c, genoutput.c, genpeep.c, genpreds.c, genrecog.c,
8728 gensupport.c, ggc-common.c, ggc-page.c, gimple-fold.c, gimple-low.c,
8729 gimple-pretty-print.c, gimple-ssa-strength-reduction.c, gimple.c,
8730 gimple.h, godump.c, graphite-clast-to-gimple.c,
8731 graphite-optimize-isl.c, graphite-poly.h, graphite-sese-to-poly.c,
8732 graphite.c, haifa-sched.c, hash-table.c, hash-table.h, hwint.c,
8733 hwint.h, ifcvt.c, incpath.c, init-regs.c, input.h, intl.c, intl.h,
8734 ipa-cp.c, ipa-devirt.c, ipa-inline-analysis.c, ipa-inline.c,
8735 ipa-profile.c, ipa-pure-const.c, ipa-reference.c, ipa-split.c,
8736 ipa-utils.c, ipa.c, ira-build.c, ira.c, jump.c, loop-doloop.c,
8737 loop-init.c, loop-invariant.c, loop-iv.c, lower-subreg.c, lto-cgraph.c,
8738 lto-streamer-in.c, lto-streamer-out.c, lto-wrapper.c, mcf.c,
8739 mode-switching.c, modulo-sched.c, omp-low.c, optabs.c, opts.c,
8740 pass_manager.h, passes.c, plugin.c, postreload-gcse.c, postreload.c,
8741 predict.c, prefix.c, pretty-print.c, print-rtl.c, print-tree.c,
8742 profile.c, read-md.c, real.c, real.h, recog.c, ree.c, reg-stack.c,
8743 regcprop.c, reginfo.c, regmove.c, regrename.c, regs.h, regstat.c,
8744 reload1.c, reorg.c, rtl.c, rtl.h, rtlanal.c, sbitmap.c, sched-rgn.c,
8745 sdbout.c, sel-sched-ir.c, sel-sched.c, sparseset.c, stack-ptr-mod.c,
8746 statistics.c, stmt.c, stor-layout.c, store-motion.c, streamer-hooks.h,
8747 system.h, target-hooks-macros.h, targhooks.c, targhooks.h, toplev.c,
8748 tracer.c, trans-mem.c, tree-browser.c, tree-call-cdce.c, tree-cfg.c,
8749 tree-cfgcleanup.c, tree-complex.c, tree-data-ref.c, tree-data-ref.h,
8750 tree-eh.c, tree-emutls.c, tree-flow.h, tree-if-conv.c, tree-into-ssa.c,
8751 tree-iterator.c, tree-loop-distribution.c, tree-mudflap.c,
8752 tree-nested.c, tree-nomudflap.c, tree-nrv.c, tree-object-size.c,
8753 tree-optimize.c, tree-pass.h, tree-pretty-print.c, tree-profile.c,
8754 tree-scalar-evolution.c, tree-sra.c, tree-ssa-ccp.c,
8755 tree-ssa-coalesce.c, tree-ssa-copy.c, tree-ssa-copyrename.c,
8756 tree-ssa-dce.c, tree-ssa-dom.c, tree-ssa-dse.c, tree-ssa-forwprop.c,
8757 tree-ssa-ifcombine.c, tree-ssa-live.c, tree-ssa-loop-ch.c,
8758 tree-ssa-loop-im.c, tree-ssa-loop-ivopts.c, tree-ssa-loop-prefetch.c,
8759 tree-ssa-loop.c, tree-ssa-math-opts.c, tree-ssa-operands.c,
8760 tree-ssa-phiopt.c, tree-ssa-phiprop.c, tree-ssa-pre.c,
8761 tree-ssa-reassoc.c, tree-ssa-sink.c, tree-ssa-strlen.c,
8762 tree-ssa-structalias.c, tree-ssa-threadedge.c, tree-ssa-threadupdate.c,
8763 tree-ssa-uncprop.c, tree-ssa-uninit.c, tree-ssa.c, tree-ssanames.c,
8764 tree-stdarg.c, tree-switch-conversion.c, tree-tailcall.c,
8765 tree-vect-data-refs.c, tree-vect-generic.c, tree-vect-loop-manip.c,
8766 tree-vect-stmts.c, tree-vectorizer.c, tree-vectorizer.h, tree-vrp.c,
8767 tree.c, tree.h, tsan.c, tsystem.h, value-prof.c, var-tracking.c,
8768 varasm.c, vec.h, vmsdbgout.c, vtable-verify.c, web.c: Add missing
8769 whitespace before "(".
8771 2013-09-28 Sandra Loosemore <sandra@codesourcery.com>
8773 * expr.h (extract_bit_field): Remove packedp parameter.
8774 * expmed.c (extract_fixed_bit_field): Remove packedp parameter
8775 from forward declaration.
8776 (store_split_bit_field): Remove packedp arg from calls to
8777 extract_fixed_bit_field.
8778 (extract_bit_field_1): Remove packedp parameter and packedp
8779 argument from recursive calls and calls to extract_fixed_bit_field.
8780 (extract_bit_field): Remove packedp parameter and corresponding
8781 arg to extract_bit_field_1.
8782 (extract_fixed_bit_field): Remove packedp parameter. Remove code
8784 (extract_split_bit_field): Remove packedp arg from call to
8785 extract_fixed_bit_field.
8786 * expr.c (emit_group_load_1): Adjust calls to extract_bit_field.
8787 (copy_blkmode_from_reg): Likewise.
8788 (copy_blkmode_to_reg): Likewise.
8789 (read_complex_part): Likewise.
8790 (store_field): Likewise.
8791 (expand_expr_real_1): Likewise.
8792 * calls.c (store_unaligned_arguments_into_pseudos): Adjust call
8793 to extract_bit_field.
8794 * config/tilegx/tilegx.c (tilegx_expand_unaligned_load): Adjust
8795 call to extract_bit_field.
8796 * config/tilepro/tilepro.c (tilepro_expand_unaligned_load): Adjust
8797 call to extract_bit_field.
8798 * doc/invoke.texi (Code Gen Options): Remove mention of warnings
8799 and special packedp behavior from -fstrict-volatile-bitfields
8802 2013-09-27 Jan-Benedict Glaw <jbglaw@lug-owl.de>
8804 * lra-eliminations.c (init_elim_table): Guard value_p.
8806 2013-09-27 Michael Meissner <meissner@linux.vnet.ibm.com>
8808 * config/rs6000/rs6000.c (rs6000_hard_regno_mode_ok): Allow
8809 DFmode, DImode, and SFmode in the upper VSX registers based on the
8810 -mupper-regs-{df,sf} flags. Fix wu constraint to be ALTIVEC_REGS
8811 if -mpower8-vector. Combine -mvsx-timode handling with the rest
8812 of the VSX register handling.
8814 * config/rs6000/rs6000.md (f32_lv): Use %x0 for VSX regsters.
8816 (zero_extendsidi2_lfiwzx): Add support for loading into the
8817 Altivec registers with -mpower8-vector. Use wu/wv constraints to
8818 only do VSX memory options on Altivec registers.
8819 (extendsidi2_lfiwax): Likewise.
8820 (extendsfdf2_fpr): Likewise.
8821 (mov<mode>_hardfloat, SF/SD modes): Likewise.
8822 (mov<mode>_hardfloat32, DF/DD modes): Likewise.
8823 (mov<mode>_hardfloat64, DF/DD modes): Likewise.
8824 (movdi_internal64): Likewise.
8826 2013-09-27 Xinliang David Li <davidxl@google.com>
8828 * opts.c (finish_options): Adjust parameters
8829 according to vect cost model.
8830 (common_handle_option): Set dynamic vect cost
8832 targhooks.c (default_add_stmt_cost): Compute stmt cost
8834 * tree-vect-loop.c (vect_estimate_min_profitable_iters):
8835 Use helper function.
8836 * tree-vectorizer.h (unlimited_cost_model): New function.
8837 * tree-vect-slp.c (vect_slp_analyze_bb_1): Use helper function.
8838 * tree-vect-data-refs.c (vect_peeling_hash_insert): Use helper
8840 (vect_enhance_data_refs_alignment): Ditto.
8841 * flag-types.h: New enum.
8842 * common/config/i386/i386-common.c (ix86_option_init_struct):
8843 No need to initialize vect_cost_model flag.
8844 * config/i386/i386.c (ix86_add_stmt_cost): Compute stmt cost
8847 2013-09-27 Diego Novillo <dnovillo@google.com>
8849 * gimple.h (enum ssa_mode): Remove.
8851 2013-09-27 Paulo Matos <pmatos@broadcom.com>
8853 * cfgloop.h (number_of_loops): Fix typo in check for null.
8855 2013-09-27 Jakub Jelinek <jakub@redhat.com>
8858 * tree-cfg.c (move_sese_region_to_fn): Also move loops that
8859 are children of outermost saved_cfun's loop, and set it up to
8860 be moved to dest_cfun's outermost loop. Fix up num_nodes adjustments
8861 if loop != loop0 and SESE region contains bbs that belong to loop0.
8863 2013-09-27 Richard Sandiford <rdsandiford@googlemail.com>
8865 * rtlanal.c (must_be_base_p, must_be_index_p): Delete.
8866 (binary_scale_code_p, get_base_term, get_index_term): New functions.
8867 (set_address_segment, set_address_base, set_address_index)
8868 (set_address_disp): Accept the argument unconditionally.
8869 (baseness): Remove must_be_base_p and must_be_index_p checks.
8870 (decompose_normal_address): Classify as much as possible in the
8873 2013-09-27 Richard Sandiford <rdsandiford@googlemail.com>
8875 * cse.c (count_reg_usage): Handle INT_LIST.
8876 * lra-eliminations.c (lra_eliminate_regs_1): Likewise.
8877 * reginfo.c (reg_scan_mark_refs): Likewise.
8878 * reload1.c (eliminate_regs_1): Likewise.
8880 2013-09-27 Iain Sandoe <iain@codesourcery.com>
8883 * rtlanal.c (lsb_bitfield_op_p): Make both parts of the comparison
8886 2013-09-27 Richard Biener <rguenther@suse.de>
8888 PR tree-optimization/58459
8889 * tree-ssa-forwprop.c (forward_propagate_addr_expr): Remove
8890 restriction not propagating into loops.
8892 2013-09-26 Florian Weimer <fw@deneb.enyo.de>
8894 * tree-ssa.h (walk_use_def_chains_fn, walk_use_def_chains): Delete.
8895 * tree-ssa.c (walk_use_def_chains_1, walk_use_def_chains): Delete.
8896 * doc/tree-ssa.texi (Walking use-def chains): Delete.
8898 2013-09-26 Richard Biener <rguenther@suse.de>
8900 * tree-into-ssa.c (rewrite_into_ssa): Make more SSA names to anonymous.
8902 2013-09-26 Richard Biener <rguenther@suse.de>
8904 * alias.h (component_uses_parent_alias_set): Rename to ...
8905 (component_uses_parent_alias_set_from): ... this.
8906 * alias.c (component_uses_parent_alias_set): Rename to ...
8907 (component_uses_parent_alias_set_from): ... this and return
8909 (reference_alias_ptr_type_1): Use the result from
8910 component_uses_parent_alias_set_from instead of stripping
8911 components one at a time.
8912 * emit-rtl.c (set_mem_attributes_minus_bitpos): Adjust.
8914 2013-09-26 Andrew MacLeod <amacleod@redhat.com>
8916 * tree-ssa-live.h (find_replaceable_exprs, dump_replaceable_exprs):
8917 Move prototypes to...
8918 * tree-ssa-ter.h: New File. Move prototypes here.
8919 * tree-flow.h (stmt_is_replaceable_p): Remove prototype.
8920 * tree-outof-ssa.h: New. Rename ssaexpand.h, include tree-ssa-ter.h.
8921 * tree-outof-ssa.c (ssa_is_replaceable_p): New. Refactor common bits
8922 from is_replaceable_p.
8923 * tree-ssa-ter.c (is_replaceable_p, stmt_is_replaceable_p): Delete.
8924 (ter_is_replaceable_p): New. Use new refactored ssa_is_replaceable_p.
8925 (process_replaceable): Use ter_is_replaceable_p.
8926 (find_replaceable_in_bb): Use ter_is_replaceable_p.
8927 * expr.c (stmt_is_replaceable_p): Relocate from tree-ssa-ter.c. Use
8928 newly refactored ssa_is_replaceable_p.
8929 * cfgexpand.c: Include tree-outof-ssa.h.
8930 * ssaexpand.h: Delete.
8932 2013-09-26 Andrew MacLeod <amacleod@redhat.com>
8934 * gimple.c (gimple_replace_lhs): Move to tree-ssa.c and rename.
8935 (struct count_ptr_d, count_ptr_derefs, count_uses_and_derefs): Move to
8937 (create_gimple_tmp): Delete.
8938 (get_expr_type, build_assign, build_type_cast): Move to...
8939 * gimple-builder.c: New File.
8940 (get_expr_type): Relocate from gimple.c.
8941 (build_assign, build_type_cast): Change to only create ssanames.
8942 * gimple.h: Move prototypes to...
8943 * gimple-builder.h: New File. Here.
8944 * tree-ssa.h: And here.
8945 * tree-ssa.c (struct count_ptr_d, count_ptr_derefs,
8946 count_uses_and_derefs): Relocate from gimple.c.
8947 (gimple_replace_ssa_lhs): Renamed gimple_replace_ssa from gimple.c
8948 * tree-ssa-reassoc.c (repropagate_negates): Use gimple_replace_ssa_lhs.
8949 * tree-ssa-math-opts (execute_cse_reciprocals): Use
8950 gimple_replace_ssa_lhs.
8951 * asan.c: Include gimple-builder.h.
8952 * Makefile.in: Add gimple-builder.o.
8954 2013-09-26 Richard Biener <rguenther@suse.de>
8956 * tree-ssa-live.c (var_map_base_init): Handle SSA names with
8957 DECL_IGNORED_P base VAR_DECLs like anonymous SSA names.
8958 (loe_visit_block): Use gcc_checking_assert.
8959 * tree-ssa-coalesce.c (create_outofssa_var_map): Use
8960 gimple_assign_ssa_name_copy_p.
8961 (gimple_can_coalesce_p): Adjust according to the var_map_base_init
8964 2013-09-26 David Edelsohn <dje.gcc@gmail.com>
8966 * config/rs6000/t-rs6000 (rs6000.o): Remove.
8967 (rs6000-c.o): Use COMPILE and POSTCOMPILE.
8969 2013-09-26 Richard Biener <rguenther@suse.de>
8971 PR tree-optimization/58539
8972 * tree-vect-loop.c (vect_create_epilog_for_reduction): Honor
8973 the fact that debug statements are not taking part in loop-closed
8976 2013-09-26 Nick Clifton <nickc@redhat.com>
8978 * config/msp430/msp430.c (msp430_expand_epilogue): Fix compile
8979 time warning message.
8980 (msp430_print_operand_raw): Delete unused letter parameter.
8981 (TARGET_PRINT_OPERAND_ADDRESS): Define.
8982 (msp430_print_operand_address): New function.
8983 (msp430_print_operand): Move address printing code from here to
8985 * config/msp430/msp430.md (movsipsi2): Add comment in generated
8987 (zero_extendpsisi2): Likewise.
8988 (extendpsisi2): New pattern.
8989 (andneghi3): New pattern.
8991 2013-09-26 Yvan Roux <yvan.roux@linaro.org>
8993 * config/aarch64/aarch64.opt (mlra): New option.
8994 * config/aarch64/aarch64.c (aarch64_lra_p): New function.
8995 (TARGET_LRA_P): Define.
8997 2013-09-26 Eric Botcazou <ebotcazou@adacore.com>
8999 * expr.c (expand_assignment): Remove obsolete comment.
9001 2013-09-25 Jeff Law <law@redhat.com>
9003 * tree-flow.h (thread_through_all_blocks): Prototype moved into
9004 tree-ssa-threadupdate.h.
9005 (register_jump_thread): Similarly.
9006 * tree-ssa-threadupdate.h: New header file.
9007 * tree-ssa-dom.c: Include tree-ssa-threadupdate.h.
9008 * tree-vrp.c: Likewise.
9009 * tree-ssa-threadedge.c: Include tree-ssa-threadupdate.h.
9010 (thread_around_empty_blocks): Change type of path vector argument to
9011 an edge,type pair from just an edge. Initialize both elements when
9012 appending to a jump threading path. Tweak references to elements
9014 (thread_across_edge): Similarly. Release memory for the elements
9016 * tree-ssa-threadupdate.c: Include tree-ssa-threadupdate.h.
9017 (dump_jump_thread_path): New function broken out from
9018 register_jump_thread.
9019 (register_jump_thread): Use dump_jump_thread_path. Change type of
9020 path vector entries. Search the path for NULL edges and dump
9021 the path if one is found. Tweak the conversion of path to 3-edge
9022 form to use the block copy type information embedded in the path.
9024 2013-09-25 Yvan Roux <yvan.roux@linaro.org>
9026 * lra.c (update_inc_notes): Remove all REG_DEAD and REG_UNUSED notes.
9028 2013-09-25 Yvan Roux <yvan.roux@linaro.org>
9029 Vladimir Makarov <vmakarov@redhat.com>
9031 * rtlanal.c (lsb_bitfield_op_p): New predicate for bitfield operations
9032 from the least significant bit.
9033 (strip_address_mutations): Add bitfield operations handling.
9034 (must_be_index_p): Add shifting and rotate operations handling.
9035 (set_address_base): Use must_be_base_p predicate.
9036 (set_address_index): Use must_be_index_p predicate.
9038 2013-09-25 Alexander Ivchenko <alexander.ivchenko@intel.com>
9039 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
9040 Sergey Lega <sergey.s.lega@intel.com>
9041 Anna Tikhonova <anna.tikhonova@intel.com>
9042 Ilya Tocar <ilya.tocar@intel.com>
9043 Andrey Turetskiy <andrey.turetskiy@intel.com>
9044 Ilya Verbin <ilya.verbin@intel.com>
9045 Kirill Yukhin <kirill.yukhin@intel.com>
9046 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
9048 * config/i386/i386.c (ix86_avx256_split_vector_move_misalign):
9050 (ix86_expand_vector_move_misalign): Support new unaligned load and
9051 stores and use new names.
9052 (CODE_FOR_sse2_storedqu): Rename to ...
9053 (CODE_FOR_sse2_storedquv16qi): ... this.
9054 (CODE_FOR_sse2_loaddqu): Rename to ...
9055 (CODE_FOR_sse2_loaddquv16qi): ... this.
9056 (CODE_FOR_avx_loaddqu256): Rename to ...
9057 (CODE_FOR_avx_loaddquv32qi): ... this.
9058 (CODE_FOR_avx_storedqu256): Rename to ...
9059 (CODE_FOR_avx_storedquv32qi): ... this.
9060 * config/i386/i386.md (fpint_logic): New.
9061 * config/i386/sse.md (VMOVE): Extend for AVX512.
9065 (VI_UNALIGNED_LOADSTORE): Ditto.
9066 (sse2_avx_avx512f): Ditto.
9067 (sse2_avx2): Extend for AVX512.
9068 (sse4_1_avx2): Ditto.
9069 (avx2_avx512f): New.
9070 (sse): Extend for AVX512.
9073 (avxsizesuffix): Ditto.
9074 (sseintvecmode): Ditto.
9076 (<sse>_loadu<ssemodesuffix><avxsizesuffix>): Ditto.
9077 (<sse>_storeu<ssemodesuffix><avxsizesuffix>): Ditto.
9078 (<sse2>_loaddqu<avxsizesuffix>): Extend for AVX512 and rename to ...
9079 (<sse2_avx_avx512f>_loaddqu<mode>): ... this.
9080 (<sse2>_storedqu<avxsizesuffix>): Extend for AVX512 and rename to ...
9081 (<sse2_avx_avx512f>_storedqu<mode): ... this.
9082 (<sse>_movnt<mode>): Replace constraint "x" with "v".
9083 (STORENT_MODE): Extend for AVX512.
9084 (*absneg<mode>2): Replace constraint "x" with "v".
9085 (*mul<mode>3): Ditto.
9086 (*ieee_smin<mode>3): Ditto.
9087 (*ieee_smax<mode>3): Ditto.
9088 (avx_cmp<mode>3): Replace VF with VF_128_256.
9089 (*<sse>_maskcmp<mode>3_comm): Ditto.
9090 (<sse>_maskcmp<mode>3): Ditto.
9091 (<sse>_andnot<mode>3): Extend for AVX512.
9092 (<code><mode>3, anylogic): Replace VF with VF_128_256.
9093 (<code><mode>3, fpint_logic): New.
9094 (*<code><mode>3): Extend for AVX512.
9095 (avx512flogicsuff): New.
9096 (avx512f_<logic><mode>): Ditto.
9097 (<sse>_movmsk<ssemodesuffix><avxsizesuffix>): Replace VF with
9099 (<sse4_1>_blend<ssemodesuffix><avxsizesuffix>): Ditto.
9100 (<sse4_1>_blendv<ssemodesuffix><avxsizesuffix>): Ditto.
9101 (<sse4_1>_dp<ssemodesuffix><avxsizesuffix>): Ditto.
9102 (avx_vtest<ssemodesuffix><avxsizesuffix>): Ditto.
9103 (<sse4_1>_round<ssemodesuffix><avxsizesuffix>): Ditto.
9104 (xop_vpermil2<mode>3): Ditto.
9105 (*avx_vpermilp<mode>): Extend for AVX512 and rename to ...
9106 (*<sse2_avx_avx512f>_vpermilp<mode>): ... this.
9107 (avx_vpermilvar<mode>3): Extend for AVX512 and rename to ...
9108 (<sse2_avx_avx512f>_vpermilvar<mode>3): ... this.
9110 2013-09-25 Tom Tromey <tromey@redhat.com>
9112 * Makefile.in (PARTITION_H, LTO_SYMTAB_H, COMMON_TARGET_DEF_H)
9113 (RTL_ERROR_H, TRANS_MEM_H, COVERAGE_H, DEMANGLE_H, ALIAS_H)
9114 (SCHED_INT_H, SEL_SCHED_IR_H, SEL_SCHED_DUMP_H, VALTRACK_H, DDG_H)
9115 (GGC_INTERNAL_H, DECNUM_H, BACKTRACE_H, MKDEPS_H, TREE_HASHER_H)
9116 (TREE_SSA_LIVE_H, SSAEXPAND_H, DWARF2OUT_H, SCEV_H, OMEGA_H)
9117 (TREE_DATA_REF_H, IRA_INT_H, LRA_INT_H, DBGCNT_H, DATA_STREAMER_H)
9118 (GIMPLE_STREAMER_H, TREE_STREAMER_H, STREAMER_HOOKS_H)
9119 (TREE_VECTORIZER_H, IPA_INLINE_H, GSTAB_H, LIBFUNCS_H)
9120 (GRAPHITE_HTAB_H): Remove.
9122 2013-09-25 Tom Tromey <tromey@redhat.com>
9124 * config/mcore/t-mcore (CROSS_FLOAT_H): Remove.
9126 2013-09-25 Tom Tromey <tromey@redhat.com>
9128 * config/t-glibc (glibc-c.o): Use COMPILE and POSTCOMPILE.
9130 2013-09-25 Tom Tromey <tromey@redhat.com>
9132 * config/i386/t-i386 (i386.o): Remove.
9133 (i386-c.o): Use COMPILE and POSTCOMPILE.
9135 2013-09-25 Tom Tromey <tromey@redhat.com>
9137 * Makefile.in ($(out_object_file)): Use COMPILE and POSTCOMPILE.
9139 2013-09-25 Tom Tromey <tromey@redhat.com>
9141 * Makefile.in (graph.o, sbitmap.o, sparseset.o, gcc-ar.o)
9142 (gcc-ranlib.o, gcc-nm.o, collect2.o, collect2-aix.o, tlink.o)
9143 (lto-wrapper.o, default-c.o, attribs.o, incpath.o, prefix.o)
9144 (gcc.o, options.o, options-save.o, version.o, gtype-desc.o)
9145 (trans-mem.o, ggc-common.o, ggc-page.o, ggc-none.o, stringpool.o)
9146 (convert.o, double-int.o, lto-compress.o, data-streamer-in.o)
9147 (data-streamer-out.o, data-streamer.o, gimple-streamer-in.o)
9148 (gimple-streamer-out.o, tree-streamer.o, tree-streamer-in.o)
9149 (tree-streamer-out.o, streamer-hooks.o, lto-cgraph.o)
9150 (lto-streamer-in.o, lto-streamer-out.o, lto-section-in.o)
9151 (lto-section-out.o, lto-opts.o, lto-streamer.o, langhooks.o)
9152 (test-dump.o, tree.o, tree-dump.o, tree-inline.o, print-tree.o)
9153 (stor-layout.o, asan.o, tsan.o, ubsan.o, tree-ssa-tail-merge.o)
9154 (tree-ssa-structalias.o, tree-ssa-uninit.o, tree-ssa.o)
9155 (tree-into-ssa.o, tree-ssa-ter.o, tree-ssa-coalesce.o)
9156 (tree-outof-ssa.o, tree-ssa-dse.o, tree-ssa-forwprop.o)
9157 (tree-ssa-phiprop.o, tree-ssa-ifcombine.o, tree-ssa-phiopt.o)
9158 (tree-nrv.o, tree-ssa-copy.o, tree-ssa-propagate.o)
9159 (tree-ssa-dom.o, tree-ssa-uncprop.o, tree-ssa-threadedge.o)
9160 (tree-ssa-threadupdate.o, tree-ssanames.o, tree-phinodes.o)
9161 (domwalk.o, tree-ssa-live.o, tree-ssa-copyrename.o)
9162 (tree-ssa-pre.o, tree-ssa-sccvn.o)
9163 (gimple-ssa-strength-reduction.o, tree-vrp.o, tree-cfg.o)
9164 (tree-cfgcleanup.o, tree-tailcall.o, tree-ssa-sink.o)
9165 (tree-nested.o, tree-if-conv.o, tree-iterator.o, tree-dfa.o)
9166 (tree-ssa-operands.o, tree-eh.o, tree-ssa-loop.o)
9167 (tree-ssa-loop-unswitch.o, tree-ssa-address.o)
9168 (tree-ssa-loop-niter.o, tree-ssa-loop-ivcanon.o)
9169 (tree-ssa-loop-ch.o, tree-ssa-loop-prefetch.o, tree-predcom.o)
9170 (tree-ssa-loop-ivopts.o, tree-affine.o, tree-ssa-loop-manip.o)
9171 (tree-ssa-loop-im.o, tree-ssa-math-opts.o, tree-ssa-alias.o)
9172 (tree-ssa-reassoc.o, tree-optimize.o, gimplify.o)
9173 (gimple-iterator.o, gimple-fold.o, gimple-low.o, omp-low.o)
9174 (tree-browser.o, omega.o, tree-chrec.o, tree-scalar-evolution.o)
9175 (tree-data-ref.o, sese.o, graphite.o, graphite-blocking.o)
9176 (graphite-clast-to-gimple.o, graphite-dependences.o)
9177 (graphite-interchange.o, graphite-poly.o)
9178 (graphite-scop-detection.o, graphite-sese-to-poly.o)
9179 (graphite-optimize-isl.o, tree-vect-loop.o)
9180 (tree-vect-loop-manip.o, tree-vect-patterns.o, tree-vect-slp.o)
9181 (tree-vect-stmts.o, tree-vect-data-refs.o, tree-vectorizer.o)
9182 (vtable-verify.o, tree-loop-distribution.o, tree-parloops.o)
9183 (tree-stdarg.o, tree-object-size.o, internal-fn.o, gimple.o)
9184 (gimple-pretty-print.o, tree-mudflap.o, tree-nomudflap.o)
9185 (tree-pretty-print.o, tree-diagnostic.o, fold-const.o)
9186 (diagnostic.o, diagnostic-color.o, opts.o, opts-global.o)
9187 (opts-common.o, targhooks.o, common/common-targhooks.o, input.o)
9188 (toplev.o, hwint.o, passes.o, plugin.o, main.o, host-default.o)
9189 (rtl-error.o, rtl.o, print-rtl.o, rtlanal.o, varasm.o, function.o)
9190 (statistics.o, stmt.o, except.o, expr.o, dojump.o, builtins.o)
9191 (calls.o, expmed.o, explow.o, optabs.o, dbxout.o, debug.o)
9192 (sdbout.o, dwarf2out.o, dwarf2cfi.o, dwarf2asm.o, vmsdbgout.o)
9193 (xcoffout.o, godump.o, emit-rtl.o, real.o, realmpfr.o, dfp.o)
9194 (fixed-value.o, jump.o, simplify-rtx.o, symtab.o, cgraph.o)
9195 (cgraphunit.o, cgraphclones.o, cgraphbuild.o, varpool.o, ipa.o)
9196 (ipa-profile.o, ipa-devirt.o, ipa-prop.o, ipa-ref.o, ipa-cp.o)
9197 (ipa-split.o, ipa-inline.o, ipa-inline-analysis.o)
9198 (ipa-inline-transform.o, ipa-utils.o, ipa-reference.o)
9199 (ipa-pure-const.o, coverage.o, cselib.o, cse.o, dce.o, dumpfile.o)
9200 (dse.o, fwprop.o, web.o, ree.o, cprop.o, gcse.o, store-motion.o)
9201 (resource.o, lcm.o, mode-switching.o, tree-ssa-dce.o)
9202 (tree-call-cdce.o, tree-ssa-ccp.o, tree-ssa-strlen.o, tree-sra.o)
9203 (tree-switch-conversion.o, tree-complex.o, tree-emutls.o)
9204 (tree-vect-generic.o, df-core.o, df-problems.o, df-scan.o)
9205 (regstat.o, valtrack.o, var-tracking.o, profile.o, mcf.o)
9206 (tree-profile.o, value-prof.o, loop-doloop.o, alloc-pool.o)
9207 (auto-inc-dec.o, cfg.o, cfghooks.o, cfgexpand.o, cfgrtl.o)
9208 (cfganal.o, cfgbuild.o, cfgcleanup.o, cfgloop.o, cfgloopanal.o)
9209 (graphds.o, loop-iv.o, loop-invariant.o, cfgloopmanip.o)
9210 (loop-init.o, loop-unswitch.o, loop-unroll.o, dominance.o)
9211 (et-forest.o, combine.o, reginfo.o, bitmap.o, vec.o, hash-table.o)
9212 (reload.o, reload1.o, rtlhooks.o, postreload.o, postreload-gcse.o)
9213 (caller-save.o, bt-load.o, reorg.o, alias.o, stack-ptr-mod.o)
9214 (init-regs.o, ira-build.o, ira-costs.o, ira-conflicts.o)
9215 (ira-color.o, ira-emit.o, ira-lives.o, ira.o, lra.o)
9216 (lra-assigns.o, lra-coalesce.o, lra-constraints.o)
9217 (lra-eliminations.o, lra-lives.o, lra-spills.o, regmove.o)
9218 (combine-stack-adj.o, compare-elim.o, ddg.o, modulo-sched.o)
9219 (haifa-sched.o, sched-deps.o, sched-rgn.o, sched-ebb.o)
9220 (sched-vis.o, sel-sched.o, sel-sched-dump.o, sel-sched-ir.o)
9221 (final.o, recog.o, reg-stack.o, sreal.o, predict.o, lists.o)
9222 (bb-reorder.o, tracer.o, timevar.o, regcprop.o, regrename.o)
9223 (ifcvt.o, params.o, pointer-set.o, hooks.o, pretty-print.o)
9224 (errors.o, dbgcnt.o, lower-subreg.o, target-globals.o)
9225 (hw-doloop.o, file-find.o, context.o, $(common_out_object_file))
9226 (insn-attrtab.o, insn-automata.o, insn-dfatab.o, insn-emit.o)
9227 (insn-enums.o, insn-extract.o, insn-latencytab.o, insn-modes.o)
9228 (insn-opinit.o, insn-output.o, insn-peep.o, insn-preds.o)
9229 (insn-recog.o, intl.o, cppbuiltin.o, cppdefault.o, gcov.o)
9230 (gcov-dump.o): Remove.
9231 (default-c.o): Use COMPILE and POSTCOMPILE.
9232 (CFLAGS-gcc.o): New variable.
9233 ($(common_out_object_file)): Use COMPILE and POSTCOMPILE.
9235 2013-09-25 Tom Tromey <tromey@redhat.com>
9237 * Makefile.in (c-family/cppspec.o, c-family/c-common.o)
9238 (c-family/c-cppbuiltin.o, c-family/c-dump.o, c-family/c-format.o)
9239 (c-family/c-gimplify.o, c-family/c-lex.o, c-family/c-omp.o)
9240 (c-family/c-opts.o, c-family/c-pch.o, c-family/c-ppoutput.o)
9241 (c-family/c-pragma.o, c-family/c-pretty-print.o)
9242 (c-family/c-semantics.o, c-family/c-ada-spec.o)
9243 (c-family/array-notation-common.o, c-family/stub-objc.o)
9244 (c-family/c-ubsan.o): Remove.
9246 2013-09-25 Tom Tromey <tromey@redhat.com>
9248 * Makefile.in (C_TREE_H): Reference c/c-tree.h.
9250 2013-09-25 Tom Tromey <tromey@redhat.com>
9252 * Makefile.in (DRIVER_DEFINES): Use $(and), not shell code,
9253 to add -DENABLE_SHARED_LIBGCC.
9254 (gcc.o): Don't use subshell.
9256 2013-09-25 Tom Tromey <tromey@redhat.com>
9258 * Makefile.in (OUTPUT_OPTION): Define as "-o $@".
9259 * configure.ac: Don't invoke AM_PROG_CC_C_O.
9260 (NO_MINUS_C_MINUS_O, OUTPUT_OPTION): Don't subst.
9261 * configure, config.in: Rebuild.
9263 2013-09-25 Tom Tromey <tromey@redhat.com>
9265 * Makefile.in (CCDEPMODE, DEPDIR, depcomp, COMPILE.base)
9266 (COMPILE, POSTCOMPILE): New variables.
9267 (.cc.o .c.o): Use COMPILE, POSTCOMPILE.
9268 (DEPFILES): New variable.
9269 Include ".Po" files.
9270 * configure.ac: Add checks for dependency checking.
9271 * configure, aclocal.m4: Regenerate.
9273 2013-09-25 Tom Tromey <tromey@redhat.com>
9275 * Makefile.in (ALL_HOST_BACKEND_OBJS): Add lto-wrapper.o.
9276 ($(ALL_HOST_OBJS)): Move order-only dependency to end of file.
9278 2013-09-25 Tom Tromey <tromey@redhat.com>
9280 * Makefile.in (generated_files): Add options.h,
9281 target-hooks-def.h, insn-opinit.h,
9282 common/common-target-hooks-def.h, pass-instances.def,
9283 c-family/c-target-hooks-def.h.
9285 2013-09-25 Jeff Law <law@redhat.com>
9287 * tree-ssa-threadedge.c (thread_across_edge): Use foo.last () rather
9288 than foo[foo.length () - 1] to access last member in a vec.
9289 * tree-ssa-threadupdate.c (register_jump_thread): Similarly.
9291 2013-09-25 Richard Biener <rguenther@suse.de>
9294 * tree.c (iterative_hash_expr): Remove MEM_REF special handling.
9296 2013-09-25 Jan Hubicka <jh@suse.cz>
9298 * cgraph.c (cgraph_resolve_speculation): Use semantical equivalency
9301 2013-09-25 Marek Polacek <polacek@redhat.com>
9304 * ubsan.c (ubsan_type_descriptor): Handle IDENTIFIER_NODEs
9305 when determining the type name.
9307 2013-09-24 Oleg Endo <olegendo@gcc.gnu.org>
9309 * config/sh/sh.md: Fix formatting.
9311 2013-09-24 Xinliang David Li <davidxl@google.com>
9313 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment): Check
9314 max peel iterations parameter.
9315 * param.def: New parameter.
9316 * doc/invoke.texi: Document New parameter.
9318 2013-09-24 Christophe Lyon <christophe.lyon@linaro.org>
9320 * gimple-pretty-print.c: Various whitespace tweaks.
9321 * tree-core.h: Likewise.
9322 * tree-pretty-print.c: Likewise.
9323 * tree-ssa-alias.c: Likewise.
9324 * tree-ssa-copy.c: Likewise.
9325 * tree-ssanames.c: Likewise.
9326 * tree-ssanames.h: Likewise.
9327 * tree-vrp.c: Likewise.
9329 2013-09-24 Alan Modra <amodra@gmail.com>
9333 * stmt.c (expand_asm_operands): Call expand_expr with EXPAND_MEMORY
9334 for output operands that disallow regs. Don't use EXPAND_WRITE on
9337 2013-09-24 Richard Biener <rguenther@suse.de>
9340 * tree.c (reference_alias_ptr_type): Move ...
9341 * alias.c (reference_alias_ptr_type): ... here and implement
9342 in terms of the new reference_alias_ptr_type_1.
9343 (ref_all_alias_ptr_type_p): New helper.
9344 (get_deref_alias_set_1): Drop flag_strict_aliasing here,
9345 use ref_all_alias_ptr_type_p.
9346 (get_deref_alias_set): Add flag_strict_aliasing check here.
9347 (reference_alias_ptr_type_1): New function, split out from ...
9348 (get_alias_set): ... here.
9349 (alias_ptr_types_compatible_p): New function.
9350 * alias.h (reference_alias_ptr_type): Declare.
9351 (alias_ptr_types_compatible_p): Likewise.
9352 * tree.h (reference_alias_ptr_type): Remove.
9353 * fold-const.c (operand_equal_p): Use alias_ptr_types_compatible_p
9354 to compare MEM_REF alias types.
9356 2013-09-24 Richard Biener <rguenther@suse.de>
9358 * tree-vrp.c (vrp_finalize): Check for SSA name presence.
9360 2013-09-23 Michael Meissner <meissner@linux.vnet.ibm.com>
9362 * config/rs6000/rs6000.c (rs6000_vector_reload): Delete, combine
9363 reload helper function arrays into a single array reg_addr.
9364 (reload_fpr_gpr): Likewise.
9365 (reload_gpr_vsx): Likewise.
9366 (reload_vsx_gpr): Likewise.
9367 (struct rs6000_reg_addr): Likewise.
9368 (reg_addr): Likewise.
9369 (rs6000_debug_reg_global): Change rs6000_vector_reload,
9370 reload_fpr_gpr, reload_gpr_vsx, reload_vsx_gpr uses to reg_addr.
9371 (rs6000_init_hard_regno_mode_ok): Likewise.
9372 (rs6000_secondary_reload_direct_move): Likewise.
9373 (rs6000_secondary_reload): Likewise.
9375 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Add new
9376 constraints: wu, ww, and wy. Repurpose wv constraint added during
9377 power8 changes. Put wg constraint in alphabetical order.
9379 * config/rs6000/rs6000.opt (-mvsx-scalar-float): New debug switch
9380 for future work to add ISA 2.07 VSX single precision support.
9381 (-mvsx-scalar-double): Change default from -1 to 1, update
9382 documentation comment.
9383 (-mvsx-scalar-memory): Rename debug switch to -mupper-regs-df.
9384 (-mupper-regs-df): New debug switch to control whether DF values
9385 can go in the traditional Altivec registers.
9386 (-mupper-regs-sf): New debug switch to control whether SF values
9387 can go in the traditional Altivec registers.
9389 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Print wu, ww,
9391 (rs6000_init_hard_regno_mode_ok): Use ssize_t instead of int for
9392 loop variables. Rename -mvsx-scalar-memory to -mupper-regs-df.
9393 Add new constraints, wu/ww/wy. Repurpose wv constraint.
9394 (rs6000_debug_legitimate_address_p): Print if we are running
9395 before, during, or after reload.
9396 (rs6000_secondary_reload): Add a comment.
9397 (rs6000_opt_masks): Add -mupper-regs-df, -mupper-regs-sf.
9399 * config/rs6000/constraints.md (wa constraint): Sort w<x>
9400 constraints. Update documentation string.
9401 (wd constraint): Likewise.
9402 (wf constraint): Likewise.
9403 (wg constraint): Likewise.
9404 (wn constraint): Likewise.
9405 (ws constraint): Likewise.
9406 (wt constraint): Likewise.
9407 (wx constraint): Likewise.
9408 (wz constraint): Likewise.
9409 (wu constraint): New constraint for ISA 2.07 SFmode scalar
9411 (ww constraint): Likewise.
9412 (wy constraint): Likewise.
9413 (wv constraint): Repurpose ISA 2.07 constraint that we did not use
9414 in the previous submissions.
9415 * doc/md.texi (PowerPC and IBM RS6000): Likewise.
9417 2013-09-23 Richard Sandiford <rdsandiford@googlemail.com>
9419 * doc/rtl.texi (REG_NOTES): Say that int_list can also be used.
9420 (REG_BR_PROB): Say that the probability is stored in an int_list.
9421 * reg-notes.def: Update commentary to mention INT_LIST.
9422 * rtl.def (EXPR_LIST, INSN_LIST): Capitalize comments.
9423 (INT_LIST): New rtx.
9424 * rtl.h (add_int_reg_note, add_shallow_copy_of_reg_note): Declare.
9425 * rtlanal.c (int_reg_note_p): New function.
9426 (alloc_reg_note): Assert that the note does not have an int argument.
9427 (add_int_reg_note, add_shallow_copy_of_reg_note): New functions.
9428 * combine.c (distribute_notes): Use add_shallow_copy_of_rtx.
9429 * cse.c (cse_process_notes_1): Expect REG_EQUAL to be an EXPR_LIST
9430 rather than an INSN_LIST. Handle INT_LIST.
9431 * ifcvt.c (cond_exec_process_insns): Take the probability as an int
9432 rather than an rtx. Use gen_rtx_INT_LIST to create a REG_BR_PROB note.
9433 (cond_exec_process_if_block): Use XINT to extract REG_BR_PROB values.
9434 Manipulate them as ints rather than rtxes.
9435 * reg-stack.c (subst_asm_stack_regs): Only handle EXPR_LIST notes.
9436 * regmove.c (copy_src_to_dest): Likewise.
9437 * sched-vis.c (print_insn_with_notes): Handle INT_LIST.
9439 * config/i386/winnt.c (i386_pe_seh_unwind_emit): Sink pat assignment
9440 into the cases that need it.
9441 * config/arm/arm.c (arm_unwind_emit): Likewise.
9443 * asan.c (asan_clear_shadow): Use add_int_reg_note for REG_BR_PROB.
9444 * emit-rtl.c (try_split, emit_copy_of_insn_after): Likewise.
9445 * loop-doloop.c (add_test, doloop_modify): Likewise.
9446 * loop-unswitch.c (compare_and_jump_seq): Likewise.
9447 * optabs.c (emit_cmp_and_jump_insn_1): Likewise.
9448 * predict.c (combine_predictions_for_insn): Likewise.
9449 * print-rtl.c (print_rtx): Handle INT_LIST.
9450 * config/aarch64/aarch64.c (aarch64_emit_unlikely_jump): Likewise.
9451 * config/alpha/alpha.c (emit_unlikely_jump): Likewise.
9452 * config/arm/arm.c (emit_unlikely_jump): Likewise.
9453 * config/i386/i386.c (ix86_expand_split_stack_prologue): Likewise.
9454 (ix86_split_fp_branch, predict_jump): Likewise.
9455 * config/rs6000/rs6000.c (emit_unlikely_jump): Likewise.
9456 * config/sh/sh.c (expand_cbranchsi4): Likewise.
9457 * config/spu/spu.c (ea_load_store_inline): Likewise.
9459 * cfgbuild.c (compute_outgoing_frequencies): Use XINT to access the
9460 value of a REG_BR_PROB note.
9461 * cfgrtl.c (force_nonfallthru_and_redirect): Likewise.
9462 (update_br_prob_note, rtl_verify_edges, purge_dead_edges): Likewise.
9463 * emit-rtl.c (try_split): Likewise.
9464 * predict.c (br_prob_note_reliable_p): Likewise.
9465 (invert_br_probabilities, combine_predictions_for_insn): Likewise.
9466 * reorg.c (mostly_true_jump): Likewise.
9467 * config/bfin/bfin.c (cbranch_predicted_taken_p): Likewise.
9468 * config/frv/frv.c (frv_print_operand_jump_hint): Likewise.
9469 * config/i386/i386.c (ix86_print_operand): Likewise.
9470 * config/ia64/ia64.c (ia64_print_operand): Likewise.
9471 * config/mmix/mmix.c (mmix_print_operand): Likewise.
9472 * config/rs6000/rs6000.c (output_cbranch): Likewise.
9473 * config/s390/s390.c (s390_expand_tbegin): Likewise.
9474 * config/sh/sh.c (sh_print_operand, sh_adjust_cost): Likewise.
9475 * config/sparc/sparc.c (output_cbranch): Likewise.
9476 * config/spu/spu.c (get_branch_target): Likewise.
9477 * config/tilegx/tilegx.c (cbranch_predicted_p): Likewise.
9478 * config/tilepro/tilepro.c (cbranch_predicted_p): Likewise.
9480 2013-09-23 Jan Hubicka <jh@suse.cz>
9482 * ipa-cp.c (ipa_get_indirect_edge_target_1): Add sanity check
9484 * ipa-utils.h (possible_polymorphic_call_target_p): New function.
9485 * ipa-devirt.c (possible_polymorphic_call_target_p): Be tolerant
9487 * gimple-fold.c: Include ipa-utils.h and gimple-pretty-print.h
9488 (gimple_fold_call): Dump inconsistent devirtualizations; add
9489 sanity check for type based devirtualizations.
9490 * ipa-prop.c: Include ipa-utils.h
9491 (ipa_intraprocedural_devirtualization): Add sanity check.
9492 (try_make_edge_direct_virtual_call): Likewise.
9494 2013-09-23 Eric Botcazou <ebotcazou@adacore.com>
9496 * tree-ssa-ccp.c (insert_clobber_before_stack_restore): Recurse on copy
9497 assignment statements.
9499 2013-09-23 Kugan Vivekanandarajah <kuganv@linaro.org>
9501 * gimple-pretty-print.c (dump_ssaname_info): New function.
9502 (dump_gimple_phi): Call it.
9503 (pp_gimple_stmt_1): Likewise.
9504 * tree-core.h (tree_ssa_name): New union ssa_name_info_type field.
9505 (range_info_def): Declare.
9506 * tree-pretty-print.c (pp_double_int): New function.
9507 (dump_generic_node): Call it.
9508 * tree-pretty-print.h (pp_double_int): Declare.
9509 * tree-ssa-alias.c (dump_alias_info): Check pointer type.
9510 * tree-ssanames.h (range_info_def): New structure.
9511 (value_range_type): Move definition here.
9512 (set_range_info, value_range_type, duplicate_ssa_name_range_info):
9514 * tree-ssanames.c (make_ssa_name_fn): Check pointer type at
9516 (set_range_info): New function.
9517 (get_range_info): Likewise.
9518 (duplicate_ssa_name_range_info): Likewise.
9519 (duplicate_ssa_name_fn): Check pointer type and call
9520 duplicate_ssa_name_range_info.
9521 * tree-ssa-copy.c (fini_copy_prop): Likewise.
9522 * tree-vrp.c (value_range_type): Remove definition, now in
9524 (vrp_finalize): Call set_range_info to update value range of SSA_NAMEs.
9525 * tree.h (SSA_NAME_PTR_INFO): Macro changed to access via union.
9526 (SSA_NAME_RANGE_INFO): New macro.
9528 2013-09-23 Richard Biener <rguenther@suse.de>
9530 PR tree-optimization/58464
9531 * tree-ssa-pre.c (phi_trans_lookup): Remove.
9532 (phi_trans_add): Change to add conditionally on being not present.
9533 (phi_translate_1): Remove recursion detection here.
9534 (phi_translate): Pre-seed the cache with NULL to catch
9535 recursion here in a more generic way.
9536 (bitmap_find_leader): Adjust comment.
9537 (get_representative_for): Dump value-numbers.
9538 (create_expression_by_pieces): Likewise.
9539 (insert_into_preds_of_block): Likewise.
9541 2013-09-23 Christian Bruel <christian.bruel@st.com>
9544 * config/sh/sh.md (movsf_ie): Allow fpul_operand.
9545 * config/sh/predicate.md (arith_reg_operand): Disallow FPUL_REG.
9547 2013-09-23 James Greenhalgh <james.greenhalgh@arm.com>
9550 2013-09-20 Renlin Li <renlin.li@arm.com>
9552 * config/aarch64/aarch64.c (aarch64_expand_prologue): Use
9554 (aarch64_expand_epilogue): Likewise.
9555 (aarch64_legitimize_reload_address): Likewise.
9557 2013-09-22 Eric Botcazou <ebotcazou@adacore.com>
9559 * gimplify.c (gimplify_asm_expr): Reset the TREE_CHAIN of clobbers to
9560 NULL_TREE before pushing them onto the vector. Likewise for labels.
9562 2013-09-21 Eric Botcazou <ebotcazou@adacore.com>
9564 * config/ia64/predicates.md (ia64_cbranch_operator): Accept unordered
9565 comparison operators when -fno-trapping-math is in effect.
9566 * config/ia64/ia64.c (ia64_expand_compare): Add support for unordered
9567 comparison operators in TFmode and assert that unsupported operators
9569 (ia64_print_operand): Likewise.
9571 2013-09-21 Jan Hubicka <jh@suse.cz>
9573 * x86-tune.def (partial_reg_stall): Disable for CoreI7 and newer.
9574 (sse_typeless_stores): Enable for core
9575 (sse_load0_by_pxor): Likewise.
9576 (four_jump_limit): Disable for core.
9577 (pad_returns): Likewise.
9578 (avoid_vector_decode): Likewise.
9579 (fuse_cmp_and_branch): Enable for cores.
9580 * i386.c (x86_accumulate_outgoing_args): Disable for cores.
9582 2013-09-20 John David Anglin <danglin@gcc.gnu.org>
9585 * config/pa/pa.c (pa_option_override): Disable auto increment and
9586 decrement instructions until reload is completed.
9588 * config/pa/pa-linux.h (TARGET_OS_CPP_BUILTINS): Define
9589 __GCC_HAVE_SYNC_COMPARE_AND_SWAP_1, __GCC_HAVE_SYNC_COMPARE_AND_SWAP_2,
9590 and __GCC_HAVE_SYNC_COMPARE_AND_SWAP_4.
9592 2013-09-20 DJ Delorie <dj@redhat.com>
9593 Nick Clifton <nickc@redhat.com>
9595 * config/rl78/rl78.c: Various whitespace and comment tweaks.
9596 (need_to_save): Save bank 0 on interrupts.
9597 (characterize_address): Strip far address wrappers.
9598 (rl78_as_legitimate_address): Likewise.
9599 (transcode_memory_rtx): Likewise.
9600 (rl78_peep_movhi_p): Disable this peephole after devirt.
9601 (rl78_propogate_register_origins): Forget all origins when a
9603 * config/rl78/rl78-virt.md: Various whitespace tweaks.
9604 * config/rl78/rl78-real.md: Various whitespace tweaks. Additional
9606 * config/rl78/rl78.md (sel_rb): Disable for G10 just in case.
9607 * config/rl78/rl78-expand.md (movqi): Check for subregs of consts.
9608 * config/rl78/rl78.h (LINK_SPEC): Pass -gc-sections unless
9610 * config/rl78/constraints.md: Various whitespace and paren tweaks.
9612 2013-09-20 John David Anglin <danglin@gcc.gnu.org>
9614 * config/pa/pa.md: In "scc" insn patterns, change output template to
9615 handle const0_rtx in reg_or_0_operand operands.
9617 2013-09-20 Martin Husemann <martin@NetBSD.org>
9620 * config/vax/vax.c (vax_output_int_move): Use D format specifier.
9621 * config/vax/vax.md (ashldi3, <unnamed>): Ditto.
9623 2013-09-20 Richard Biener <rguenther@suse.de>
9626 * tree-scalar-evolution.c (struct scev_info_str): Shrink by
9627 remembering SSA name version and block index.
9628 (new_scev_info_str): Adjust.
9629 (hash_scev_info): Likewise. Also hash the block index.
9630 (eq_scev_info): Adjust.
9631 (find_var_scev_info): Likewise.
9632 (struct instantiate_cache_entry): Remove.
9633 (struct instantiate_cache_type): Use a htab to map name, block
9635 (instantiate_cache_type::~instantiate_cache_type): Adjust.
9636 (get_instantiated_value_entry): Likewise.
9637 (hash_idx_scev_info, eq_idx_scev_info): New functions.
9638 (instantiate_scev_name): Adjust.
9640 2013-09-20 Jeff Law <law@redhat.com>
9642 * tree-ssa-dom.c (record_temporary_equivalences): Add comment.
9644 2013-09-20 Yufeng Zhang <yufeng.zhang@arm.com>
9646 * config/aarch64/aarch64-builtins.c (aarch64_simd_expand_args):
9647 Call aarch64_simd_expand_args to update op[argc].
9649 2013-09-20 Basile Starynkevitch <basile@starynkevitch.net>
9651 * plugin.c (parse_plugin_arg_opt): Accept equal sign inside
9654 2013-09-20 Basile Starynkevitch <basile@starynkevitch.net>
9656 * gengtype.c (file_rules): Added rule for *.cc files.
9657 (get_output_file_with_visibility): Give fatal message when no
9660 2013-09-20 Renlin Li <renlin.li@arm.com>
9662 * config/aarch64/aarch64.c (aarch64_expand_prologue): Use plus_constant.
9663 (aarch64_expand_epilogue): Likewise.
9664 (aarch64_legitimize_reload_address): Likewise.
9666 2013-09-20 Bernd Edlinger <bernd.edlinger@hotmail.de>
9669 * expr.c (expand_assignment): Remove misalignp code path.
9671 2013-09-20 Marek Polacek <polacek@redhat.com>
9674 * ubsan.c (get_ubsan_type_info_for_type): Use TYPE_SIZE instead of
9675 TYPE_PRECISION. Add asserts.
9677 2013-09-20 Richard Biener <rguenther@suse.de>
9679 PR tree-optimization/58453
9680 * tree-loop-distribution.c (distribute_loop): Apply the cost
9681 model for -ftree-loop-distribute-patterns, too.
9683 2013-09-20 Richard Biener <rguenther@suse.de>
9686 * tree-chrec.h (build_polynomial_chrec): Use gcc_checking_assert,
9687 make type comparison less strict.
9689 2013-09-20 Alan Modra <amodra@gmail.com>
9691 * configure: Regenerate.
9692 * aclocal.m4: Regenerate.
9694 2013-09-20 Marek Polacek <polacek@redhat.com>
9697 * doc/extend.texi: Document that attribute used is meant to be used
9698 on variables with static storage duration.
9700 2013-09-19 Jakub Jelinek <jakub@redhat.com>
9702 PR tree-optimization/58472
9703 * tree-vect-stmts.c (vectorizable_store, vectorizable_load): For
9704 simd_lane_access set inv_p = false.
9705 * omp-low.c (lower_rec_input_clauses): Set TREE_NO_WARNING on
9706 the simduid magic VAR_DECL.
9708 2013-09-19 Jan Hubicka <jh@suse.cz>
9710 * i386.c (generic_memcpy, generic_memset): Fix 32bit template.
9712 2013-09-17 Jeff Law <law@redhat.com>
9714 * tree-ssa-dom.c (record_temporary_equivalences): New function
9715 split out of dom_opt_dom_walker::after_dom_children.
9716 (dom_opt_dom_walker::thread_across_edge): Move common code
9717 in here from dom_opt_dom_walker::after_dom_children.
9718 (dom_opt_dom_walker::after_dom_children): Corresponding simplifictions.
9720 2013-09-19 Jan Hubicka <jh@suse.cz>
9722 * i386.h (TARGET_GENERIC32, TARGET_GENERIC64): Remove.
9723 (TARGET_GENERIC): Use PROCESOR_GENERIC
9724 (enum processor_type): Unify generic32 and 64.
9725 * i386.md (cpu): Likewise.
9726 * x86-tune.def (use_leave): Enable for generic32.
9727 (avoid_vector_decode, slow_imul_imm32_mem, slow_imul_imm8): Likewise.
9728 * athlon.md: Change generic64 to generic in all occurences.
9729 * i386-c.c (ix86_target_macros_internal): Unify generic64 and 32.
9730 (ix86_target_macros_internal): Likewise.
9731 * driver-i386.c (host_detect_local_cpu): Likewise.
9732 * i386.c (generic64_memcpy, generic64_memset, generic64_cost): Rename
9734 (generic_memcpy, generic_memset, generic_cost): This one.
9735 (generic32_memcpy, generic32_memset, generic32_cost): Remove.
9736 (m_GENERIC32, m_GENERIC64): Remove.
9737 (m_GENERIC): Turn into one flag.
9738 (processor_target): Unify generic tunnings.
9739 (ix86_option_override_internal): Replace generic32/64 by generic.
9740 (ix86_issue_rate): Likewise.
9741 (ix86_adjust_cost): Likewise.
9743 2013-09-19 Jan Hubicka <jh@suse.cz>
9745 * cgraph.c (cgraph_create_edge_1): Avoid uninitialized read
9746 of speculative flag.
9748 2013-09-19 Jakub Jelinek <jakub@redhat.com>
9750 * omp-low.c (expand_omp_sections): Always pass len - 1 to
9751 GOMP_sections_start, even if !exit_reachable.
9753 2013-09-18 Vladimir Makarov <vmakarov@redhat.com>
9755 * lra-constraints.c (need_for_all_save_p): Use macro
9756 HARD_REGNO_CALL_PART_CLOBBERED.
9757 * lra-lives.c (check_pseudos_live_through_calls): Use the macro to
9758 set up pseudo conflict hard regs.
9760 2013-09-18 Michael Meissner <meissner@linux.vnet.ibm.com>
9763 * config/rs6000/paired.md (movmisalignv2sf): Fix to allow memory
9766 2013-09-18 Vladimir Makarov <vmakarov@redhat.com>
9768 PR rtl-optimization/58438
9769 * lra.c (lra): Clear lra_optional_reload_pseudos in upper loop.
9770 * lra-constraints.c (undo_optional_reloads): Keep optional reloads
9771 from previous subpasses.
9773 2013-09-18 Richard Earnshaw <rearnsha@arm.com>
9775 * arm.c (arm_get_frame_offsets): Validate architecture supports
9776 LDRD/STRD before accepting the tuning preference.
9777 (arm_expand_prologue): Likewise.
9778 (arm_expand_epilogue): Likewise.
9780 2013-09-18 Richard Biener <rguenther@suse.de>
9782 PR tree-optimization/58417
9783 * tree-chrec.c (chrec_fold_plus_1): Assert that we do not
9784 have chrecs with symbols defined in the loop as operands.
9785 (chrec_fold_multiply): Likewise.
9786 * tree-scalar-evolution.c (interpret_rhs_expr): Instantiate
9787 parameters before folding binary operations.
9788 (struct instantiate_cache_entry_hasher): Remove.
9789 (struct instantiate_cache_type): Use a pointer-map.
9790 (instantiate_cache_type::instantiate_cache_type): New function.
9791 (instantiate_cache_type::get): Likewise.
9792 (instantiate_cache_type::set): Likewise.
9793 (instantiate_cache_type::~instantiate_cache_type): Adjust.
9794 (get_instantiated_value_entry): Likewise.
9795 (global_cache): New global.
9796 (instantiate_scev_r, instantiate_scev_poly, instantiate_scev_binary,
9797 instantiate_array_ref, instantiate_scev_convert, instantiate_scev_3,
9798 instantiate_scev_2, instantiate_scev_1): Do not pass along cache.
9799 (instantiate_scev_name): Adjust.
9800 (instantiate_scev): Construct global instead of local cache.
9801 (resolve_mixers): Likewise.
9803 2013-09-18 Daniel Morris <danielm@ecoscentric.com>
9804 Paolo Carlini <paolo.carlini@oracle.com>
9807 * doc/implement-cxx.texi: Fix references to the C++ standards.
9809 2013-09-18 Jakub Jelinek <jakub@redhat.com>
9811 * omp-low.c (copy_var_decl): Copy DECL_ATTRIBUTES.
9812 * tree-vect-data-refs.c (vect_analyze_data_refs): For
9813 simd_lane_access drs, update also DR_ALIGNED_TO.
9815 2013-09-18 Marek Polacek <polacek@redhat.com>
9818 * doc/extend.texi: Document no_sanitize_undefined attribute.
9819 * builtins.c (fold_builtin_0): Don't sanitize function if it has the
9820 no_sanitize_undefined attribute.
9822 2013-09-18 Nick Clifton <nickc@redhat.com>
9824 * config/msp430/msp430.h (ASM_SPEC): Pass -md on to the assembler.
9825 (ASM_DECLARE_FUNCTION_NAME): Define.
9827 2013-09-17 Trevor Saunders <tsaunders@mozilla.com>
9829 * compare-elim.c (find_comparison_dom_walker): New class
9830 (find_comparisons_in_bb): Rename to
9831 find_comparison_dom_walker::before_dom_children
9832 (find_comparisons): Adjust
9833 * domwalk.c (walk_dominator_tree): Rename to dom_walker::walk, and
9835 (init_walk_dominator_tree, fini_walk_dominator_tree): Remove
9836 * domwalk.h (dom_walk_data): Convert it To a class dom_walker.
9837 (init_walk_dominator_tree): Remove declaration.
9838 (fini_walk_dominator_tree): Remove declaration.
9839 * fwprop.c (single_def_use_dom_walker): New class
9840 (single_def_use_enter_block): Convert to
9841 single_def_use_dom_walker::before_dom_children.
9842 (single_def_use_leave_block): Convert to
9843 single_def_use_dom_walker::after_dom_children.
9844 (build_single_def_use_links): Adjust.
9845 * gimple-ssa-strength-reduction.c (find_candidates_dom_walker): New
9847 (find_candidates_in_block): Convert to
9848 find_candidates_dom_walker::before_dom_children.
9849 (execute_strength_reduction): Adjust.
9850 * graphite-sese-to-poly.c (struct bsc, build_sese_conditions): Remove.
9851 (sese_dom_walker): New class.
9852 (sese_dom_walker::sese_dom_walker): New constructor.
9853 (sese_dom_walker::~sese_dom_walker): New destructor.
9854 (build_sese_conditions_before): Convert to
9855 sese_dom_walker::before_dom_children.
9856 (build_sese_conditions_after): Convert to
9857 sese_dom_walker::after_dom_children.
9858 (build_poly_scop): Adjust
9859 * tree-into-ssa.c (rewrite_dom_walker): New class
9860 (rewrite_enter_block): Convert to
9861 rewrite_dom_walker::before_dom_children.
9862 (rewrite_leave_block): Convert to
9863 rewrite_dom_walker::after_dom_children.
9864 (rewrite_update_dom_walker): New class.
9865 (rewrite_update_enter_block): Convert to
9866 rewrite_update_dom_walker::before_dom_children.
9867 (rewrite_update_leave_block): Convert to
9868 rewrite_update_dom_walker::after_dom_children.
9869 (rewrite_blocks, rewrite_into_ssa): Adjust.
9870 (mark_def_dom_walker): New class.
9871 (mark_def_dom_walker::mark_def_dom_walker): New constructor.
9872 (mark_def_dom_walker::~mark_def_dom_walker): New destructor.
9873 (mark_def_sites_blocks): Convert to
9874 mark_def_dom_walker::before_dom_children.
9875 (mark_def_site_blocks): Remove.
9876 * tree-ssa-dom.c (dom_opt_dom_walker): New class.
9877 (tree_ssa_dominator_optimize): Adjust.
9878 (dom_thread_across_edge): Convert to method
9879 dom_opt_dom_walker::thread_across_edge.
9880 (dom_opt_enter_block): Convert to member function
9881 dom_opt_dom_walker::before_dom_children.
9882 (dom_opt_leave_block): Convert to member function
9883 dom_opt_dom_walker::after_dom_children.
9884 * tree-ssa-dse.c (dse_dom_walker): New class.
9885 (dse_enter_block): Convert to member function
9886 dse_dom_walker::before_dom_children.
9887 (tree_ssa_dse): Adjust.
9888 * tree-ssa-loop-im.c (invariantness_dom_walker): New class.
9889 (determine_invariantness_stmt): Convert to method
9890 invariantness_dom_walker::before_dom_children.
9891 (determine_invariantness): Remove
9892 (move_computations_dom_walker): New class.
9893 (move_computations_stmt): Convert to method
9894 move_computations_dom_walker::before_dom_children.
9895 (move_computations, tree_ssa_lim): Adjust.
9896 * tree-ssa-phiopt.c (nontrapping_dom_walker): New class.
9897 (nt_init_block): Convert to method
9898 notrappping_dom_walker::before_dom_children.
9899 (nt_fini_block): Convert to method
9900 method nontrapping_dom_walker::after_dom_children.
9901 (get_non_trapping): Adjust.
9902 * tree-ssa-pre.c (eliminate_dom_walker): New class.
9903 (eliminate_bb): Convert to method
9904 eliminate_dom_walker::before_dom_children.
9905 (eliminate_leave_block): Convert to method
9906 eliminate_dom_walker::after_dom_children.
9907 (eliminate): Adjust.
9908 * tree-ssa-strlen.c (strlen_dom_walker): New class.
9909 (strlen_enter_block): Convert to method
9910 strlen_dom_walker::before_dom_children.
9911 (strlen_leave_block): Convert to method
9912 method strlen_dom_walker::after_dom_children.
9913 (tree_ssa_strlen): Adjust.
9914 * tree-ssa-uncprop.c (uncprop_dom_walker): New class.
9915 (tree_ssa_uncprop): Adjust.
9916 (uncprop_leave_block): Convert to method
9917 uncprop_dom_walker::after_dom_children.
9918 (uncprop_leave_block): Convert to method
9919 uncprop_dom_walker::before_dom_children.
9921 2013-09-18 Bin Cheng <bin.cheng@arm.com>
9923 * config/arm/arm.c (thumb1_reorg): Search for flag setting insn before
9924 branch in same basic block. Check both src and dest of the move insn.
9926 2013-09-17 Nick Clifton <nickc@redhat.com>
9928 * config/rl78/rl78-real.md (bf): New pattern.
9930 * config/rl78/rl78.c (rl78_print_operand_1): Handle %B.
9931 (rl78_print_operand): Do not put a # before a %B.
9932 * config/rl78/rl78.opt: Tweak doc strings.
9934 2013-09-17 DJ Delorie <dj@redhat.com>
9936 * config/rl78/constraints.md (Wcv): Allow up to $r31.
9937 * config/rl78/rl78.c (rl78_asm_file_start: Likewise.
9938 (rl78_option_override): Likewise, if -mallregs.
9939 (is_virtual_register): Likewise.
9940 * config/rl78/rl78.h (reg_class): Extend VREGS to $r31.
9941 (REGNO_OK_FOR_BASE_P): Likewise.
9942 * config/rl78/rl78.opt (-mallregs): New.
9944 2013-09-17 Nick Clifton <nickc@redhat.com>
9946 * config/rl78/rl78.c (need_to_save): Change return type to bool.
9947 For interrupt functions: save all call clobbered registers if the
9948 interrupt handler is not a leaf function.
9949 (rl78_expand_prologue): Always recompute the frame information.
9950 For interrupt functions: only select bank 0 if one of the bank 0
9951 registers is going to be psuhed.
9953 2013-09-17 DJ Delorie <dj@redhat.com>
9955 * config/rl78/constraints.md: For each W* constraint, rename to C*
9956 and create a W* constraint that checks for an optional ES: prefix
9958 * config/rl78/rl78.md (UNS_ES_ADDR): New.
9959 (es_addr): New. Used to wrap far addresses.
9960 * config/rl78/rl78-protos.h (rl78_es_addr): New.
9961 (rl78_es_base): New.
9962 * config/rl78/rl78.c (rl78_as_legitimate_address): Accept "unspec"
9963 wrapped far addresses.
9964 (rl78_print_operand_1): Unwrap far addresses before processing.
9965 (rl78_lo16): Wrap far addresses in unspecs.
9966 (rl78_es_addr): New.
9967 (rl78_es_base): New.
9968 (insn_ok_now): Check for not-yet-wrapped far addresses.
9969 (transcode_memory_rtx): Properly re-wrap far addresses.
9971 2013-09-17 Sebastian Huber <sebastian.huber@embedded-brains.de>
9973 * config/sparc/t-rtems: Add leon3 multilibs.
9975 2013-09-17 Cong Hou <congh@google.com>
9977 * tree-vect-patterns.c (vect_recog_dot_prod_pattern): Fix a bug
9978 when checking the dot production pattern. The type of rhs operand
9979 of multiply is now checked correctly.
9981 2013-09-17 Jeff Law <law@redhat.com>
9983 * tree-ssa-dom.c (cprop_into_successor_phis): Also propagate
9984 edge implied equivalences into successor phis.
9985 * tree-ssa-threadupdate.c (phi_args_equal_on_edges): Moved into
9986 here from tree-ssa-threadedge.c.
9987 (mark_threaded_blocks): When threading through a joiner, if both
9988 successors of the joiner's clone reach the same block, verify the
9989 PHI arguments are equal. If not, cancel the jump threading request.
9990 * tree-ssa-threadedge.c (phi_args_equal_on_edges): Moved into
9991 tree-ssa-threadupdate.c
9992 (thread_across_edge): Don't check PHI argument equality when
9993 threading through joiner block here.
9995 2013-09-17 Andrew MacLeod <amacleod@redhat.com>
9997 * tree-flow.h (ssa_undefined_value_p): Remove prototype.
9998 * tree-ssa.c (ssa_undefined_value_p): Move pass independent parts here.
9999 (warn_uninit, warn_uninitialized_vars,
10000 execute_early_warn_uninitialized, make_pass_early_warn_uninitialized):
10001 Move to tree-ssa-uninit.c.
10002 * tree-ssa-uninit.c (ssa_undefined_value_p): Move to tree-ssa.c.
10003 (has_undefined_value_p): New. Pass dependant parts of
10004 ssa_undefined_value_p.
10005 (uninit_undefined_value_p): Use has_undefined_value_p.
10006 (warn_uninit, warn_uninitialized_vars,
10007 execute_early_warn_uninitialized, make_pass_early_warn_uninitialized):
10008 Move from tree-ssa.c.
10009 * tree-ssa.h: Adjust prototypes.
10011 2013-09-17 Jan Hubicka <jh@suse.cz>
10013 PR middle-end/58332
10014 * cif-code.def (FUNCTION_NOT_OPTIMIZED): New CIF code.
10015 * ipa-inline.c (can_inline_edge_p): Do not downgrade
10016 FUNCTION_NOT_OPTIMIZED.
10017 * ipa-inline-analysis.c (compute_inline_parameters): Function
10018 not optimized is not inlinable unless it is alwaysinline.
10019 (inline_analyze_function): Force calls in not optimized
10020 function not inlinable.
10022 2013-09-17 Jan Hubicka <jh@suse.cz>
10024 PR middle-end/58329
10025 * ipa-devirt.c (ipa_devirt): Be ready for symtab_nonoverwritable_alias
10027 * ipa.c (function_and_variable_visibility): Likewise.
10028 * ipa-profile.c (ipa_profile): Likewise.
10030 2013-09-17 Bernd Edlinger <bernd.edlinger@hotmail.de>
10033 * cgraph.c (cgraph_function_body_availability): Check for ifunc
10034 attribute, and don't inline the resolver in this case.
10036 2013-09-17 Teresa Johnson <tejohnson@google.com>
10038 * coverage.c (get_coverage_counts): Add missing newline.
10040 2013-09-17 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
10042 PR tree-optimization/58088
10043 * fold-const.c (mask_with_trailing_zeros): New function.
10044 (fold_binary_loc): Make sure we don't recurse infinitely
10045 when the X in (X & C1) | C2 is a tree of the form (Y * K1) & K2.
10046 Use mask_with_trailing_zeros where appropriate.
10048 2013-09-17 Yuri Rumyantsev <ysrumyan@gmail.com>
10050 * config/i386/i386.c (distance_agu_use_in_bb) : Proper initialization
10051 of 'prev' var to get better distance estimation.
10053 2013-09-17 Eric Botcazou <ebotcazou@adacore.com>
10055 * tree-inline.h (struct copy_body_data): Add transform_parameter.
10056 * tree-inline.c (is_parameter_of): New predicate.
10057 (remap_gimple_op_r): Do not propagate TREE_THIS_NOTRAP on MEM_REF if
10058 a parameter has been remapped.
10059 (copy_tree_body_r): Likewise on INDIRECT_REF and MEM_REF.
10060 (optimize_inline_calls): Initialize transform_parameter.
10061 (copy_gimple_seq_and_replace_locals): Likewise.
10062 (tree_function_versioning): Likewise.
10063 (maybe_inline_call_in_expr): Likewise.
10065 2013-09-17 Nick Clifton <nickc@redhat.com>
10067 * config/msp430/msp430-protos.h: Add prototypes for new functions.
10068 * config/msp430/msp430.c (msp430_preserve_reg_p): Add support for
10069 interrupt handlers.
10070 (is_attr_func): New function.
10071 (msp430_is_interrupt_func): New function.
10072 (is_naked_func): New function.
10073 (is_reentrant_func): New function.
10074 (is_critical_func): New function.
10075 (msp430_start_function): Add annotations for function attributes.
10076 (msp430_attr): New function.
10077 (msp430_attribute_table): New.
10078 (msp430_function_section): New function.
10079 (TARGET_ASM_FUNCTION_SECTION): Define.
10080 (msp430_builtin): New enum.
10081 (msp430_init_builtins): New function.
10082 (msp430_builtin_devl): New function.
10083 (msp430_expand_builtin): New function.
10084 (TARGET_INIT_BUILTINS): Define.
10085 (TARGET_EXPAND_BUILTINS): Define.
10086 (TARGET_BUILTIN_DECL): Define.
10087 (msp430_expand_prologue): Add support for naked, interrupt,
10088 critical and reentrant functions.
10089 (msp430_expand_epilogue): Likewise.
10090 (msp430_print_operand): Handle 'O' character.
10091 * config/msp430/msp430.h (TARGET_CPU_CPP_BUILTINS): Define
10093 * config/msp430/msp430.md (unspec): Add UNS_DINT, UNS_EINT,
10094 UNS_PUSH_INTR, UNS_POP_INTR, UNS_BIC_SR, UNS_BIS_SR.
10095 (pushm): Use a 'n' rather than an 'i' constraint.
10096 (msp_return): Add generation of the interrupt return instruction.
10097 (disable_interrupts): New pattern.
10098 (enable_interrupts): New pattern.
10099 (push_intr_state): New pattern.
10100 (pop_intr_state): New pattern.
10101 (bic_SR): New pattern.
10102 (bis_SR): New pattern.
10103 * doc/extend.texi: Document MSP430 function attributes and builtin
10106 2013-09-17 Richard Biener <rguenther@suse.de>
10108 PR tree-optimization/58432
10109 * tree-loop-distribution.c (tree_loop_distribution): Also
10110 scan PHIs for outside loop uses and seed a partition from them.
10112 2013-09-17 Bin Cheng <bin.cheng@arm.com>
10114 * gimple-ssa-strength-reduction.c (backtrace_base_for_ref): New.
10115 (restructure_reference): Call backtrace_base_for_ref.
10117 2013-09-17 Alan Modra <amodra@gmail.com>
10120 * config/rs6000/driver-rs6000.c (elf_platform): Revert 2013-06-11
10123 2013-09-16 DJ Delorie <dj@redhat.com>
10125 * config/rl78/rl78.c (rl78_asm_file_start): Specify alternate
10126 vregs location for RL78/G10.
10127 (rl78_expand_prologue): Avoid SEL on G10.
10128 (rl78_expand_epilogue): Likewise.
10129 (rl78_peep_movhi_p): Can't move a constant to memory in HImode.
10130 * config/rl78/rl78.h (TARGET_CPU_CPP_BUILTINS): Define
10131 __RL78_G10__ when appropriate.
10132 (ASM_SPEC): Pass -mg10 along to the assembler.
10133 * config/rl78/rl78.md (sel_rb): Disable for G10.
10134 * config/rl78/rl78.opt: Add -mg10 option.
10135 * config/rl78/t-rl78: Add -mg10 multilib.
10137 2013-09-16 Xinliang David Li <davidxl@google.com>
10139 * tree-if-conv.c (main_tree_if_conversion): Check new flag.
10140 * omp-low.c (omp_max_vf): Ditto.
10141 (expand_omp_simd): Ditto.
10142 * tree-vectorizer.c (vectorize_loops): Ditto.
10143 (gate_vect_slp): Ditto.
10144 (gate_increase_alignment): Ditto.
10145 * tree-ssa-pre.c (inhibit_phi_insertion): Ditto.
10146 * tree-ssa-loop.c (gate_tree_vectorize): Ditto.
10147 (gate_tree_vectorize): Name change.
10148 (tree_vectorize): Ditto.
10149 (pass_vectorize::gate): Call new function.
10150 (pass_vectorize::execute): Ditto.
10151 * opts.c: O3 default setting change.
10152 (finish_options): Check new flag.
10153 * doc/invoke.texi: Document new flags.
10154 * common.opt: New flags.
10156 2013-09-16 Andreas Schwab <schwab@linux-m68k.org>
10158 * doc/tm.texi.in (Cond Exec Macros): Remove node.
10159 (Condition Code): Don't reference it.
10160 * doc/tm.texi: Regenerate.
10162 2013-09-16 Vladimir Makarov <vmakarov@redhat.com>
10164 PR middle-end/58418
10165 * lra-constraints.c (undo_optional_reloads): Consider all optional
10166 reload even if it did not get a hard reg.
10168 2013-09-16 Teresa Johnson <tejohnson@google.com>
10170 * dumpfile.c (dump_loc): Remove newline emission.
10171 * tree-vect-data-refs.c (vect_lanes_optab_supported_p): Add newline
10172 emission to dump_printf_loc calls where missing.
10173 (vect_mark_for_runtime_alias_test): Ditto.
10174 (vect_analyze_data_ref_dependence): Ditto.
10175 (vect_analyze_data_ref_dependences): Ditto.
10176 (vect_slp_analyze_data_ref_dependence): Ditto.
10177 (vect_slp_analyze_data_ref_dependences): Ditto.
10178 (vect_compute_data_ref_alignment): Ditto.
10179 (vect_update_misalignment_for_peel): Ditto.
10180 (vect_verify_datarefs_alignment): Ditto.
10181 (vector_alignment_reachable_p): Ditto.
10182 (vect_get_data_access_cost): Ditto.
10183 (vect_enhance_data_refs_alignment): Ditto.
10184 (vect_find_same_alignment_drs): Ditto.
10185 (vect_analyze_data_refs_alignment): Ditto.
10186 (vect_analyze_group_access): Ditto.
10187 (vect_analyze_data_ref_access): Ditto.
10188 (vect_analyze_data_ref_accesses): Ditto.
10189 (vect_prune_runtime_alias_test_list): Ditto.
10190 (vect_analyze_data_refs): Ditto.
10191 (vect_create_addr_base_for_vector_ref): Ditto.
10192 (vect_create_data_ref_ptr): Ditto.
10193 (vect_grouped_store_supported): Ditto.
10194 (vect_grouped_load_supported): Ditto.
10195 * value-prof.c (check_counter): Ditto.
10196 (check_ic_target): Ditto.
10197 * tree-vect-patterns.c (vect_recog_dot_prod_pattern): Ditto.
10198 (vect_recog_widen_mult_pattern): Ditto.
10199 (vect_recog_widen_sum_pattern): Ditto.
10200 (vect_recog_over_widening_pattern): Ditto.
10201 (vect_recog_widen_shift_pattern): Ditto.
10202 (vect_recog_rotate_pattern): Ditto.
10203 (vect_recog_vector_vector_shift_pattern): Ditto.
10204 (vect_recog_divmod_pattern): Ditto.
10205 (vect_recog_mixed_size_cond_pattern): Ditto.
10206 (vect_recog_bool_pattern): Ditto.
10207 (vect_pattern_recog_1): Ditto.
10208 (vect_pattern_recog): Ditto.
10209 * tree-vect-loop.c (vect_determine_vectorization_factor): Ditto.
10210 (vect_is_simple_iv_evolution): Ditto.
10211 (vect_analyze_scalar_cycles_1): Ditto.
10212 (vect_get_loop_niters): Ditto.
10213 (vect_analyze_loop_1): Ditto.
10214 (vect_analyze_loop_form): Ditto.
10215 (vect_analyze_loop_operations): Ditto.
10216 (vect_analyze_loop_2): Ditto.
10217 (vect_analyze_loop): Ditto.
10218 (report_vect_op): Ditto.
10219 (vect_is_slp_reduction): Ditto.
10220 (vect_is_simple_reduction_1): Ditto.
10221 (vect_get_known_peeling_cost): Ditto.
10222 (vect_estimate_min_profitable_iters): Ditto.
10223 (vect_model_reduction_cost): Ditto.
10224 (vect_model_induction_cost): Ditto.
10225 (get_initial_def_for_induction): Ditto.
10226 (vect_create_epilog_for_reduction): Ditto.
10227 (vectorizable_reduction): Ditto.
10228 (vectorizable_induction): Ditto.
10229 (vectorizable_live_operation): Ditto.
10230 (vect_loop_kill_debug_uses): Ditto.
10231 (vect_transform_loop): Ditto.
10232 * tree-vect-stmts.c (vect_mark_relevant): Ditto.
10233 (vect_stmt_relevant_p): Ditto.
10234 (process_use): Ditto.
10235 (vect_mark_stmts_to_be_vectorized): Ditto.
10236 (vect_model_simple_cost): Ditto.
10237 (vect_model_promotion_demotion_cost): Ditto.
10238 (vect_model_store_cost): Ditto.
10239 (vect_get_store_cost): Ditto.
10240 (vect_model_load_cost): Ditto.
10241 (vect_get_load_cost): Ditto.
10242 (vect_init_vector_1): Ditto.
10243 (vect_get_vec_def_for_operand): Ditto.
10244 (vect_finish_stmt_generation): Ditto.
10245 (vectorizable_call): Ditto.
10246 (vectorizable_conversion): Ditto.
10247 (vectorizable_assignment): Ditto.
10248 (vectorizable_shift): Ditto.
10249 (vectorizable_operation): Ditto.
10250 (vectorizable_store): Ditto.
10251 (vectorizable_load): Ditto.
10252 (vectorizable_condition): Ditto.
10253 (vect_analyze_stmt): Ditto.
10254 (vect_transform_stmt): Ditto.
10255 (vect_is_simple_use): Ditto.
10256 * tree-vect-loop-manip.c (slpeel_make_loop_iterate_ntimes): Ditto.
10257 (vect_can_advance_ivs_p): Ditto.
10258 (vect_update_ivs_after_vectorizer): Ditto.
10259 (vect_do_peeling_for_loop_bound): Ditto.
10260 (vect_gen_niters_for_prolog_loop): Ditto.
10261 (vect_update_inits_of_drs): Ditto.
10262 (vect_create_cond_for_alias_checks): Ditto.
10263 * tree-vect-slp.c (vect_get_and_check_slp_defs): Ditto.
10264 (vect_build_slp_tree_1): Ditto.
10265 (vect_supported_load_permutation_p): Ditto.
10266 (vect_analyze_slp_instance): Ditto.
10267 (vect_analyze_slp): Ditto.
10268 (vect_make_slp_decision): Ditto.
10269 (vect_detect_hybrid_slp): Ditto.
10270 (vect_bb_vectorization_profitable_p): Ditto.
10271 (vect_slp_analyze_bb_1): Ditto.
10272 (vect_update_slp_costs_according_to_vf): Ditto.
10273 (vect_get_mask_element): Ditto.
10274 (vect_transform_slp_perm_load): Ditto.
10275 (vect_schedule_slp_instance): Ditto.
10276 (vect_schedule_slp): Ditto.
10277 (vect_slp_transform_bb): Ditto.
10278 * profile.c (read_profile_edge_counts): Ditto.
10279 (compute_branch_probabilities): Ditto.
10280 * coverage.c (get_coverage_counts): Ditto.
10282 2013-09-16 Diego Novillo <dnovillo@google.com>
10284 * tree-core.h: Add missing comment lines from refactoring of tree.h.
10286 2013-09-16 Jan Hubicka <jh@suse.cz>
10288 * gimple-fold.c (can_refer_decl_in_current_unit_p): Do not accept
10289 abstract functions; for static functions check the presence of body.
10291 2013-09-16 James Greenhalgh <james.greenhalgh@arm.com>
10293 * config/aarch64/aarch64-simd-builtins.def (fma): New.
10294 * config/aarch64/aarch64-simd.md
10295 (aarch64_mla_elt<mode>): New.
10296 (aarch64_mla_elt_<vswap_width_name><mode>): Likewise.
10297 (aarch64_mls_elt<mode>): Likewise.
10298 (aarch64_mls_elt_<vswap_width_name><mode>): Likewise.
10299 (aarch64_fma4_elt<mode>): Likewise.
10300 (aarch64_fma4_elt_<vswap_width_name><mode>): Likewise.
10301 (aarch64_fma4_elt_to_128v2df): Likewise.
10302 (aarch64_fma4_elt_to_64df): Likewise.
10303 (fnma<mode>4): Likewise.
10304 (aarch64_fnma4_elt<mode>): Likewise.
10305 (aarch64_fnma4_elt_<vswap_width_name><mode>): Likewise.
10306 (aarch64_fnma4_elt_to_128v2df): Likewise.
10307 (aarch64_fnma4_elt_to_64df): Likewise.
10308 * config/aarch64/iterators.md (VDQSF): New.
10309 * config/aarch64/arm_neon.h
10310 (vfm<as><sdq>_lane<q>_f<32, 64>): Convert to C implementation.
10311 (vml<sa><q>_lane<q>_<fsu><16, 32, 64>): Likewise.
10313 2013-09-16 James Greenhalgh <james.greenhalgh@arm.com>
10315 * config/aarch64/aarch64-simd.md (aarch64_mul3_elt<mode>): New.
10316 (aarch64_mul3_elt_<vswap_width_name><mode>): Likewise.
10317 (aarch64_mul3_elt_to_128df): Likewise.
10318 (aarch64_mul3_elt_to_64v2df): Likewise.
10319 * config/aarch64/iterators.md (VEL): Also handle DFmode.
10321 (VMUL_CHANGE_NLANES) Likewise.
10324 * config/aarch64/arm_neon.h
10325 (vmul<q>_lane<q>_<suf><16,32,64>): Convert to C implementation.
10327 2013-09-16 James Greenhalgh <james.greenhalgh@arm.com>
10329 * config/aarch64/arm_neon.h
10330 (vcvtx_high_f32_f64): Fix parameters.
10332 2013-09-16 Jan-Benedict Glaw <jbglaw@lug-owl.de>
10333 Uros Bizjak <ubizjak@gmail.com>
10335 * config/alpha.c: Include tree-ssanames.h.
10337 2013-09-16 Richard Biener <rguenther@suse.de>
10339 * tree-loop-distribution.c (enum rdg_dep_type): Add control_dd.
10340 (dot_rdg_1): Handle control_dd.
10341 (create_edge_for_control_dependence): New function.
10342 (create_rdg_edges): Add control dependences if asked for.
10343 (build_rdg): Likewise.
10344 (generate_loops_for_partition): If there are not necessary
10345 control stmts remove all their dependencies.
10346 (collect_condition_stmts, rdg_flag_loop_exits): Remove.
10347 (distribute_loop): Pass on control dependences.
10348 (tree_loop_distribution): Compute control dependences and remove
10349 restriction on number of loop nodes.
10351 2013-09-16 Jakub Jelinek <jakub@redhat.com>
10353 * ipa-prop.c (ipa_compute_jump_functions_for_edge): Return early
10354 for internal calls.
10356 2013-09-16 Richard Sandiford <rdsandiford@googlemail.com>
10358 * cse.c (try_const_anchors): Punt on CC modes.
10360 2013-09-15 Jan-Benedict Glaw <jbglaw@lug-owl.de>
10362 * config/vax/constraints.md (T): Add missing CONSTANT_P check.
10364 2013-09-14 John David Anglin <danglin@gcc.gnu.org>
10367 * config/pa/pa.c (pa_expand_prologue): Change mode in gen_rtx_POST_INC
10368 calls to word_mode.
10370 2013-09-14 Iain Sandoe <iain@codesourcery.com>
10373 * config/darwin.c (darwin_objc2_section): Note if ObjC Metadata is
10375 (darwin_objc1_section): Likewise.
10376 (darwin_file_end): Emit Image Info section when required.
10378 2013-09-14 Jan Hubicka <jh@suse.cz>
10380 * tree-into-ssa.c (gate_into_ssa): New.
10381 (pass_data_build_ssa): Use it.
10382 * cgraph.h (expand_thunk): Update prototype.
10383 * cgraphunit.c (analyze_function): Expand thunks early.
10384 (expand_thunk): Fix DECL_CONTEXT of reust_decl;
10385 build proper cgraph; set in_ssa_p; clear bogus TREE_ASM_WRITTEN;
10386 set lowered flag; do not add new function.
10387 (assemble_thunks_and_aliases): Update.
10388 * tree-ssa.c (gate_init_datastructures): New gate.
10389 (pass_data_init_datastructures): Use it.
10391 2013-09-14 Iain Sandoe <iain@codesourcery.com>
10394 * config/i386/i386.c (ix86_function_arg_regno_p): Make Darwin use the
10395 xmm register set described in the psABI.
10397 2013-09-13 Evgeny Gavrin <e.gavrin@samsung.com>
10399 * dwarf2out.c (should_emit_struct_debug): Add check
10400 for type_decl variable is not NULL.
10402 2013-09-13 Jacek Caban <jacek@codeweavers.com>
10404 * config.gcc: Use new winnt-c.c target hooks
10405 * config/t-winnt: New file
10406 * config/winnt-c.c: New file
10407 * doc/tm.texi.in: Document new hook
10408 * doc/tm.texi: Regenerated
10410 2013-09-13 Jan Hubicka <jh@suse.cz>
10412 PR middle-end/58094
10413 * ipa-inline.c (check_callers): New function.
10414 (check_caller_edge): Remove.
10415 (want_inline_function_to_all_callers_p): Also permit alises that are
10417 (inline_to_all_callers): Terminate the walk when devirtualization
10418 introduce new calls.
10420 2013-09-13 Jan Hubicka <jh@suse.cz>
10422 * ipa-inline-analysis.c (struct growth_data): Add node.
10423 (do_estimate_growth_1): Fix detection of recursion.
10425 2013-09-13 Jakub Jelinek <jakub@redhat.com>
10427 PR tree-optimization/58392
10428 * tree-cfg.c (move_sese_region_to_fn): Rename loop variable
10429 to avoid shadowing of outer loop variable. If
10430 saved_cfun->has_simduid_loops or saved_cfun->has_force_vect_loops,
10431 replace_by_duplicate_decl simduid of loops that have it set and
10432 set dest_cfun->has_simduid_loops and/or
10433 dest_cfun->has_force_vect_loops.
10434 * omp-low.c (build_outer_var_ref): Call maybe_lookup_decl_in_outer_ctx
10435 instead of maybe_lookup_decl.
10436 * tree-inline.c (copy_loops): Change blocks_to_copy argument to id.
10437 Use id->blocks_to_copy instead of blocks_to_copy. Adjust recursive
10438 call. Copy over force_vect and copy and remap simduid. Set
10439 cfun->has_simduid_loops and/or cfun->has_force_vect_loops.
10440 (copy_cfg_body): Remove blocks_to_copy argument. Use
10441 id->blocks_to_copy instead of blocks_to_copy. Adjust copy_loops
10442 caller. Don't set cfun->has_simduid_loops and/or
10443 cfun->has_force_vect_loops here.
10444 (copy_body): Remove blocks_to_copy argument. Adjust copy_cfg_body
10446 (expand_call_inline, tree_function_versioning): Adjust copy_body
10449 2013-09-13 Martin Jambor <mjambor@suse.cz>
10452 * ipa-prop.c (try_make_edge_direct_simple_call): Be less strict in
10453 the assert if the edge was a speculative one.
10455 2013-09-13 Richard Biener <rguenther@suse.de>
10457 * tree-data-ref.h (known_dependences_p): Move here ...
10458 * tree-loop-distribution.c (known_dependences_p): ... from here.
10459 (dump_rdg_component, debug_rdg_component): Remove.
10460 (dump_rdg): Adjust.
10461 (generate_loops_for_partition): Use gimple_uid instead of
10462 relying on matching stmt visit order.
10463 (rdg_build_partitions): Take starting stmt vector.
10464 (ldist_gen): Merge into ...
10465 (distribute_loop): ... this function. Do not compute starting
10467 * tree-cfg.c (gimple_duplicate_bb): Copy UID for PHIs.
10469 2013-09-13 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
10471 * config/arm/arm.md (arm_cmpsi_insn): Split rI alternative.
10472 Set type attribute correctly. Set predicable_short_it attribute.
10473 (cmpsi_shiftsi): Remove %? from output template.
10475 2013-09-13 Richard Biener <rguenther@suse.de>
10477 * tree-loop-distribution.c (struct rdg_component,
10478 rdg_defs_used_in_other_loops_p, free_rdg_components,
10479 rdg_build_components): Remove.
10480 (stmts_from_loop): Do not record virtual PHIs.
10481 (generate_loops_for_partition): Skip virtual PHIs.
10482 (build_rdg_partition_for_component): Rename to ...
10483 (build_rdg_partition_for_vertex): ... this and adjust.
10484 (rdg_build_partitions): Take a vector of starting vertices
10485 instead of components. Remove unnecessary leftover handling.
10486 (ldist_gen): Do not build components or record other stores.
10487 (distribute_loop): Do not distribute loops containing stmts
10490 2013-09-13 Christian Bruel <christian.bruel@st.com>
10493 * config/sh/sh.md (mov<mode>_reg_reg): Allow memory reloads.
10495 2013-09-13 Kai Tietz <ktietz@redhat.com>
10497 * config.gcc: Separate cases for mingw and cygwin targets,
10498 and add 64-bit cygwin target case.
10500 * config/i386/winnt-cxx.c (i386_pe_type_dllexport_p): Don't
10501 dll-export inline-functions.
10502 * config/i386/winnt.c (i386_pe_determine_dllexport_p): Likewise.
10504 2013-09-13 Jeff Law <law@redhat.com>
10506 PR middle-end/58387
10508 2013-09-06 Jeff Law <law@redhat.com>
10510 * tree-ssa-dom.c (cprop_into_successor_phis): Also propagate
10511 edge implied equivalences into successor phis.
10513 2013-09-12 DJ Delorie <dj@redhat.com>
10515 * config/rl78/rl78-virt.md: Change from | to \; for asm line
10518 2013-09-12 Brooks Moses <bmoses@google.com>
10521 * Makefile.in: Do not install driver binaries in $(target)/bin.
10523 2013-09-12 DJ Delorie <dj@redhat.com>
10525 * config/rl78/rl78.opt (mrelax): New.
10526 * config/rl78/rl78.h (ASM_SPEC): New, pass on -mrelax to gas.
10527 * config/rl78/rl78.h (LINK_SPEC): New, pass on -mrelax to ld.
10529 * config/rl78/rl78.c (rl78_expand_prologue): Use AX to copy
10531 (rl78_expand_epilogue): Likewise.
10533 2013-09-12 Vladimir Makarov <vmakarov@redhat.com>
10535 PR middle-end/58335
10536 * lra-eliminations.c (remove_reg_equal_offset_note): New.
10537 (eliminate_regs_in_insn): Rewrite frame pointer to hard frame
10538 pointer elimination with using remove_reg_equal_offset_note.
10540 2013-09-12 DJ Delorie <dj@redhat.com>
10542 * config/msp430/: New port.
10543 * config.gcc (msp430): Added.
10544 * doc/invoke.texi: Document MSP430 options.
10545 * doc/install.texi: Document msp430-elf
10546 * doc/md.texi: Document msp430-elf
10547 * doc/contrib.texi: Document msp430-elf
10549 * cfgexpand.c (expand_debug_expr): Avoid sign-extending SImode to
10552 2013-09-12 Martin Jambor <mjambor@suse.cz>
10555 * ipa-prop.c (remove_described_reference): Give up if the edge in the
10556 reference descriptor is NULL.
10557 (ipa_edge_removal_hook): If owning a reference descriptor, set its
10560 2013-09-12 Andrew MacLeod <amacleod@redhat.com>
10562 * tree-flow.h (FREE_SSANAMES): Move to tree-ssanames.c
10563 (SSANAMES, MODIFIED_NORETURN_CALLS, DEFAULT_DEFS, ptr_info_def,
10564 num_ssa_names, ssa_name): Move to tree-ssanames.h + prototypes.
10565 * tree-flow-inline.h (make_ssa_name, copy_ssa_name, duplicate_ssa_name,
10566 make_temp_ssa_name): move to tree-ssanames.h
10567 * tree-ssa-alias.h: Move prototype.
10568 * tree-ssa.h: Include tree-ssanames.h.
10569 * tree-ssanames.c (FREE_SSANAMES): Move to here.
10570 * tree-ssanames.h: New. Move items from tree-flow*.h
10571 * Makefile.in (tree-ssanames.h): Add to tree-ssanames.o and GTFILES.
10573 2013-09-12 Richard Biener <rguenther@suse.de>
10575 PR tree-optimization/58404
10576 * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Also
10577 propagate non-invariant addresses into dereferences wrapped
10578 in component references.
10580 2013-09-12 Richard Biener <rguenther@suse.de>
10582 PR tree-optimization/58402
10583 * passes.def: Move pass_late_warn_uninitialized later.
10585 2013-09-12 Andrew MacLeod <amacleod@redhat.com>
10587 * tree-ssa.h: New. Move content from tree-flow.h and
10588 tree-flow-inline.h.
10589 * tree-flow.h (_edge_var_map, edge_var_map_vector): Move to tree-ssa.h.
10590 Move prototypes belonging to tree-ssa.c.
10591 * tree-flow-inline.h (redirect_edge_var_map_def,
10592 redirect_edge_var_map_result, redirect_edge_var_map_location): Move to
10594 * gimple.h: Adjust prototypes.
10595 * tree-ssa.c (useless_type_conversion_p, types_compatible_p): Move
10597 * gimple.c (useless_type_conversion_p, types_compatible_p): Here.
10598 * tree.h: Move prototype to tree-ssa.h.
10599 * gengtype.c (open_base_files): Replace tree-flow.h with tree-ssa.h.
10600 * Makefile.in: (TREE_SSA_H, TREE_FLOW_H): Adjust dependencies.
10601 * alias.c, asan.c, builtins.c, calls.c, cfgexpand.c, cfghooks.c,
10602 cfgloop.c, cfgloopmanip.c, cgraph.c, cgraphbuild.c, cgraphclones.c,
10603 cgraphunit.c, dse.c, except.c, expr.c, final.c, fold-const.c,
10604 ggc-page.c, gimple-fold.c, gimple-iterator.c, gimple-low.c,
10605 gimple-pretty-print.c, gimple-ssa-strength-reduction.c,
10606 gimple-streamer-in.c, gimple-streamer-out.c, gimple.c, gimplify.c,
10607 graphite-blocking.c, graphite-clast-to-gimple.c,
10608 graphite-dependences.c, graphite-interchange.c,
10609 graphite-optimize-isl.c, graphite-poly.c, graphite-scop-detection.c,
10610 graphite-sese-to-poly.c, graphite.c, ipa-cp.c, ipa-inline-analysis.c,
10611 ipa-inline-transform.c, ipa-inline.c, ipa-prop.c, ipa-pure-const.c,
10612 ipa-reference.c, ipa-split.c, ipa-utils.c,
10613 loop-init.c, lto-cgraph.c, lto-section-in.c, lto-section-out.c,
10614 lto-streamer-in.c, lto-streamer-out.c, lto-streamer.c, omp-low.c,
10615 passes.c, predict.c, print-tree.c, profile.c, sese.c, targhooks.c,
10616 tracer.c, trans-mem.c, tree-call-cdce.c, tree-cfg.c, tree-cfgcleanup.c,
10617 tree-chrec.c, tree-complex.c, tree-data-ref.c, tree-dfa.c, tree-eh.c,
10618 tree-emutls.c, tree-if-conv.c, tree-inline.c, tree-into-ssa.c,
10619 tree-loop-distribution.c, tree-mudflap.c, tree-nested.c, tree-nrv.c,
10620 tree-object-size.c, tree-optimize.c, tree-outof-ssa.c, tree-parloops.c,
10621 tree-phinodes.c, tree-predcom.c, tree-pretty-print.c, tree-profile.c,
10622 tree-scalar-evolution.c, tree-sra.c, tree-ssa*.c, tree-stdarg.c,
10623 tree-streamer-in.c, tree-switch-conversion.c, tree-tailcall.c,
10624 tree-vect-data-refs.c, tree-vect-generic.c, tree-vect-loop-manip.c,
10625 tree-vect-loop.c, tree-vect-patterns.c, tree-vect-slp.c,
10626 tree-vect-stmts.c, tree-vectorizer.c, tree-vrp.c, tsan.c,
10627 value-prof.c, var-tracking.c,
10628 varpool.c, vtable-verify.c: Replace tree-flow.h with tree-ssa.h
10630 2013-09-12 Richard Biener <rguenther@suse.de>
10632 PR tree-optimization/58396
10633 * tree-loop-distribution.c (create_rdg_edges): Free unused DDRs.
10634 (build_rdg): Take a loop-nest parameter, fix memleaks.
10635 (distribute_loop): Compute loop-nest here and pass it to build_rdg.
10637 2013-09-12 Yuri Rumyantsev <ysrumyan@gmail.com>
10639 * config/i386/x86-tune.def: Turn on X86_TUNE_AVOID_MEM_OPND_FOR_CMOVE
10642 2013-09-12 Cameron McInally <cameron.mcinally@nyu.edu>
10644 * doc/extend.texi: Fix errors in x86 FMA builtin naming.
10645 The FMA instruction names should have a 'v' prefix.
10647 2013-09-12 Richard Biener <rguenther@suse.de>
10649 * tree-loop-distribution.c (dot_rdg_1): Make graph prettier.
10650 (dot_rdg): Use popen instead of system in optional code.
10651 (remaining_stmts, upstream_mem_writes): Remove global bitmaps.
10652 (already_processed_vertex_p): Adjust.
10653 (has_anti_or_output_dependence, predecessor_has_mem_write,
10654 mark_nodes_having_upstream_mem_writes, has_upstream_mem_writes,
10655 rdg_flag_uses): Remove.
10656 (rdg_flag_vertex): Simplify.
10657 (rdg_flag_vertex_and_dependent): Rely on a correct RDG and
10659 (build_rdg_partition_for_component): Process the first vertex
10660 of a component only.
10661 (ldist_gen): Do not compute remaining_stmts or upstream_mem_writes.
10663 2013-09-12 Alan Modra <amodra@gmail.com>
10665 * config/rs6000/rs6000.c (toc_relative_expr_p): Use add_cint_operand.
10667 2013-09-11 DJ Delorie <dj@redhat.com>
10668 Nick Clifton <nickc@redhat.com>
10670 * config/rl78/predicates.md (rl78_cmp_operator_signed): New.
10671 (rl78_stack_based_mem): New.
10672 * config/rl78/constraints.md (Iv08): New.
10681 * config/rl78/rl78-expand.md (movqi): Reject more SUBREG operands.
10683 (movsi): Change from expand to insn-and-split.
10684 (ashrsi3): Clobber AX.
10688 * config/rl78/rl78.md (CC_REG): Fix.
10689 (addsi3): Allow memory and immediate operands.
10690 (addsi3_internal): Split into...
10691 (addsi3_internal_virt): ...new, and ...
10692 (addsi3_internal_real): ...new.
10694 (subsi3_internal_virt): New.
10695 (subsi3_internal_real): New.
10696 (mulsi3): Add memory operand.
10697 (mulsi3_rl78): Likewise.
10698 (mulsi3_g13): Likewise.
10699 * config/rl78/rl78-real.md (cbranchqi4_real_signed): New.
10700 (cbranchqi4_real): Add more constraint options.
10701 (cbranchhi4_real): Expand pattern.
10702 (cbranchhi4_real_signed): New.
10703 (cbranchhi4_real_inverted): New.
10704 (cbranchsi4_real_lt): New.
10705 (cbranchsi4_real_ge): New.
10706 (cbranchsi4_real_signed): New.
10707 (cbranchsi4_real): New.
10709 * config/rl78/rl78-virt.md (ashrsi3_virt): Add custom cases for
10711 (lshrsi3_virt): Likewise.
10712 (ashlsi3_virt): Likewise.
10713 (cbranchqi4_virt_signed): New.
10714 (cbranchhi4_virt_signed): New.
10715 (cbranchsi4_virt): New.
10716 * config/rl78/rl78.c: Whitespace fixes throughout.
10717 (move_elim_pass): New.
10718 (pass_data_rl78_move_elim): New.
10719 (pass_rl78_move_elim): New.
10720 (make_pass_rl78_move_elim): New.
10721 (rl78_devirt_info): Run devirt earlier.
10722 (rl78_move_elim_info): New.
10723 (rl78_asm_file_start): Register it.
10724 (rl78_split_movsi): New.
10725 (rl78_as_legitimate_address): Allow virtual base registers when
10727 (rl78_addr_space_convert): Remove spurious debug stuff.
10728 (rl78_print_operand_1): Add z,s,S,r,E modifiers.
10729 (rl78_print_operand): More cases for not printing '#'.
10730 (rl78_expand_compare): Remove most of the logic.
10731 (content_memory): New.
10732 (clear_content_memory): New.
10733 (get_content_index): New.
10734 (get_content_name): New.
10735 (display_content_memory): New.
10736 (update_content): New.
10737 (record_content): New.
10738 (already_contains): New.
10739 (insn_ok_now): Re-recog insns with virtual registers.
10740 (add_postponed_content_update): New.
10741 (process_postponed_content_update): New.
10742 (gen_and_emit_move): New.
10743 (transcode_memory_rtx): Record new location content.
10744 Use gen_and_emit_move.
10745 (force_into_acc): New.
10746 (move_to_acc): Use gen_and_emit_move.
10747 (move_from_acc): Likewise.
10748 (move_acc_to_reg): Likewise.
10749 (move_to_x): Likewise.
10750 (move_to_hl): Likewise.
10751 (move_to_de): Likewise.
10752 (rl78_alloc_physical_registers_op1): Record location content.
10753 (has_constraint): New.
10754 (rl78_alloc_physical_registers_op2): Record location content.
10755 Optimize use of HL.
10756 (rl78_alloc_physical_registers_ro1): Likewise.
10757 (rl78_alloc_physical_registers_cmp): Likewise.
10758 (rl78_alloc_physical_registers_umul): Likewise.
10759 (rl78_alloc_address_registers_macax): New.
10760 (rl78_alloc_physical_registers): Initialize and set location
10761 content memory as needed.
10762 (rl78_reorg): Make sure split2 is called.
10763 (rl78_rtx_costs): New.
10765 2013-09-11 Richard Sandiford <rdsandiford@googlemail.com>
10767 * simplify-rtx.c (simplify_unary_operation_1): Use simplify_gen_binary
10768 for (not (neg ...)) and (neg (not ...)) cases.
10770 2013-09-11 Richard Biener <rguenther@suse.de>
10772 PR middle-end/58377
10773 * passes.def: Split critical edges before late uninit warning passes.
10774 * tree-cfg.c (pass_split_crit_edges): Implement clone method.
10776 2013-09-11 Jakub Jelinek <jakub@redhat.com>
10778 PR tree-optimization/58385
10779 * fold-const.c (build_range_check): If both low and high are NULL,
10780 use omit_one_operand_loc to preserve exp side-effects.
10782 2013-09-11 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
10784 * config/arm/arm.md (arm_shiftsi3): New alternative l/l/M.
10786 2013-09-11 Richard Biener <rguenther@suse.de>
10788 * tree-data-ref.c (dump_rdg_vertex, debug_rdg_vertex,
10789 dump_rdg_component, debug_rdg_component, dump_rdg, debug_rdg,
10790 dot_rdg_1, dot_rdg, rdg_vertex_for_stmt, create_rdg_edge_for_ddr,
10791 create_rdg_edges_for_scalar, create_rdg_edges, create_rdg_vertices,
10792 stmts_from_loop, known_dependences_p, build_empty_rdg,
10793 build_rdg, free_rdg, rdg_defs_used_in_other_loops_p): Move ...
10794 * tree-loop-distribution.c: ... here.
10795 * tree-data-ref.h (struct rdg_vertex, RDGV_STMT, RDGV_DATAREFS,
10796 RDGV_HAS_MEM_WRITE, RDGV_HAS_MEM_READS, RDG_STMT, RDG_DATAREFS,
10797 RDG_MEM_WRITE_STMT, RDG_MEM_READS_STMT, enum rdg_dep_type,
10798 struct rdg_edge, RDGE_TYPE, RDGE_LEVEL, RDGE_RELATION): Move ...
10799 * tree-loop-distribution.c: ... here.
10800 * tree-loop-distribution.c: Include gimple-pretty-print.h.
10801 (struct partition_s): Add loops member.
10802 (partition_alloc, partition_free, rdg_flag_uses, rdg_flag_vertex,
10803 rdg_flag_vertex_and_dependent, rdg_flag_loop_exits,
10804 build_rdg_partition_for_component, rdg_build_partitions): Adjust.
10806 2013-09-11 Alexander Ivchenko <alexander.ivchenko@intel.com>
10807 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
10808 Sergey Lega <sergey.s.lega@intel.com>
10809 Anna Tikhonova <anna.tikhonova@intel.com>
10810 Ilya Tocar <ilya.tocar@intel.com>
10811 Andrey Turetskiy <andrey.turetskiy@intel.com>
10812 Ilya Verbin <ilya.verbin@intel.com>
10813 Kirill Yukhin <kirill.yukhin@intel.com>
10814 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
10816 * config/i386/constraints.md (k): New.
10818 * config/i386/i386.c (const regclass_map): Add new mask registers.
10819 (dbx_register_map): Ditto.
10820 (dbx64_register_map): Ditto.
10821 (svr4_dbx_register_map): Ditto.
10822 (ix86_conditional_register_usage): Squash mask registers if AVX512F is
10824 (ix86_preferred_reload_class): Disable constants for mask registers.
10825 (ix86_secondary_reload): Do spill of mask register using 32-bit insn.
10826 (ix86_hard_regno_mode_ok): Support new mask registers.
10827 (x86_order_regs_for_local_alloc): Ditto.
10828 * config/i386/i386.h (FIRST_PSEUDO_REGISTER): Update.
10829 (FIXED_REGISTERS): Add new mask registers.
10830 (CALL_USED_REGISTERS): Ditto.
10831 (REG_ALLOC_ORDER): Ditto.
10832 (VALID_MASK_REG_MODE): New.
10833 (FIRST_MASK_REG): Ditto.
10834 (LAST_MASK_REG): Ditto.
10835 (reg_class): Add MASK_EVEX_REGS, MASK_REGS.
10836 (MAYBE_MASK_CLASS_P): New.
10837 (REG_CLASS_NAMES): Add MASK_EVEX_REGS, MASK_REGS.
10838 (REG_CLASS_CONTENTS): Ditto.
10839 (MASK_REGNO_P): New.
10840 (ANY_MASK_REG_P): Ditto.
10841 (HI_REGISTER_NAMES): Add new mask registers.
10842 * config/i386/i386.md (MASK0_REG, MASK1_REG, MASK2_REG, MASK3_REG,
10843 MASK4_REG, MASK5_REG, MASK6_REG, MASK7_REG): Constants for new
10845 (attribute "type"): Add mskmov, msklog.
10846 (attribute "length_immediate"): Support them.
10847 (attribute "memory"): Ditto.
10848 (attribute "prefix_0f"): Ditto.
10849 (*movhi_internal): Support new mask registers.
10850 (*movqi_internal): Ditto.
10851 (define_split): Split out clobber pattern is a logic
10852 insn on mask registers.
10853 (*k<logic><mode>): New.
10854 (*andhi_1): Extend to support mask regs.
10855 (*andqi_1): Extend to support mask regs.
10856 (kandn<mode>): New.
10857 (define_split): Split and-not to and and not if operands
10859 (*<code><mode>_1): Separate HI mode to new pattern...
10860 (*<code>hi_1): This.
10861 (*<code>qi_1): Extend to support mask regs.
10862 (kxnor<mode>): New.
10863 (kortestzhi): Ditto.
10864 (kortestchi): Ditto.
10866 (*one_cmpl<mode>2_1): Remove HImode and handle it...
10867 (*one_cmplhi2_1): ...Here, now with mask registers support.
10868 (*one_cmplqi2_1): Support new mask registers.
10869 (HI/QImode arithmetics splitter): Don't split if mask registers
10871 (HI/QImode not splitter): Ditto.
10872 * config/i386/predicated.md (mask_reg_operand): New.
10873 (general_reg_operand): Ditto.
10875 2013-09-11 Alexander Ivchenko <alexander.ivchenko@intel.com>
10877 * doc/invoke.texi: Document fxsr, xsave and xsaveopt options.
10878 * doc/extend.texi: Document fxsr, xsave and xsaveopt builtins.
10880 2013-09-10 Jeff Law <law@redhat.com>
10882 PR tree-optimization/58380
10883 * tree-ssa-threadupdate.c (thread_block): Recognize another case
10884 of threading through a buried loop header.
10886 * tree-ssa-threadedge.c (thread_around_empty_blocks): Correct
10887 return value for single successor case.
10889 2013-09-10 Jan Hubicka <jh@suse.cz>
10891 * ipa-devirt.c (ipa_devirt): Enable with LTO.
10893 2013-09-10 Richard Earnshaw <rearnsha@arm.com>
10896 * arm/vfp.md (combine_vcvt_f32_<FCVTI32typename>): Fix pattern to
10897 support conditional execution.
10898 (combine_vcvt_f64_<FCVTI32typename>): Likewise.
10900 2013-09-10 Vladimir Makarov <vmakarov@redhat.com>
10902 * lra.c (lra): Clear lra_optional_reload_pseudos before every
10904 * lra-constraints.c (curr_insn_transform): Switch on optional reloads.
10905 Check destination too to check move insn.
10906 (undo_optional_reloads): Add check that the original peudo did not
10907 changed its allocation and the optional reload was inherited on last
10908 inheritance pass. Break loop after deciding to keep optional reload.
10909 (lra_undo_inheritance): Add check that inherited pseudo still in
10912 2013-09-10 James Greenhalgh <james.greenhalgh@arm.com>
10914 * config/aarch64/aarch64.md (generic_sched): New.
10915 * config/aarch64/aarch64-generic.md (load): Make conditional
10916 on generic_sched attribute.
10917 (nonload): Likewise.
10919 2013-09-10 Jan Hubicka <jh@suse.cz>
10921 * lto-cgraph.c: Include ipa-utils.h.
10922 (compute_ltrans_boundary): Also add possible targets into the boundary.
10924 2013-09-10 Jan Hubicka <jh@suse.cz>
10926 * gimple-fold.c (gimple_get_virt_method_for_binfo): Pass real
10927 VAR_DECL of vtable rather than full expression.
10929 2013-09-10 Jan Hubicka <jh@suse.cz>
10930 Paolo Carlini <paolo.carlini@oracle.com>
10932 * cgraphunit.c (analyze_functions): Save input_location, set it
10933 to UNKNOWN_LOCATION and restore it at the end.
10935 2013-09-10 Martin Jambor <mjambor@suse.cz>
10937 * ipa-cp.c (propagate_constants_topo): Do not ignore SCC
10938 represented by a thunk.
10940 2013-09-10 Jeff Law <law@redhat.com>
10942 PR tree-optimization/58343
10943 * tree-ssa-threadupdate.c (thread_block): Identify and disable
10944 jump threading requests through loop headers buried in the middle
10945 of a jump threading path.
10947 * tree-ssa-threadedge.c (thread_around_empty_blocks): Fix thinko
10948 in return value/type.
10950 2013-09-10 Jakub Jelinek <jakub@redhat.com>
10952 PR rtl-optimization/58365
10953 * cfgcleanup.c (merge_memattrs): Also clear MEM_READONLY_P
10954 resp. MEM_NOTRAP_P if they differ, or set MEM_VOLATILE_P if
10957 2013-09-10 Richard Biener <rguenther@suse.de>
10959 * tree-data-ref.h (build_rdg): Drop all parameters but loop.
10960 * tree-data-ref.c (create_rdg_vertices): Collect all data
10961 references, signal failure to the caller, use data-ref API.
10962 (build_rdg): Compute data references only once. Maintain lifetime
10963 of data references and data dependences from within RDG.
10964 (free_rdg): Free dependence relations.
10965 * tree-loop-distribution.c (rdg_flag_uses): Drop weird code
10966 inventing extra dependences.
10967 (distribute_loop): Update for RDG API changes.
10969 2013-09-10 Kai Tietz <ktietz@redhat.com>
10971 * doc/invoke.texi (fms-extensions): Document changed
10972 behavior for ms-abi targets.
10973 * config/i386/i386.c (ix86_option_override_internal):
10974 Set default value of option -fms-extension for ms-abi targets.
10976 2013-09-10 Michael Zolotukhin <michael.v.zolotukhin@gmail.com>
10978 * config/i386/i386.c (ix86_expand_movmem): Fix epilogue generation.
10980 2013-09-10 Alan Modra <amodra@gmail.com>
10983 * config/rs6000/rs6000.md (bswapdi2_64bit): Disable for volatile mems.
10985 2013-09-10 Alan Modra <amodra@gmail.com>
10987 * config/rs6000/predicates.md (add_cint_operand): New.
10988 (reg_or_add_cint_operand, small_toc_ref): Use add_cint_operand.
10989 * config/rs6000/rs6000.md (largetoc_high_plus): Restrict offset
10990 using add_cint_operand.
10991 (largetoc_high_plus_aix): Likewise.
10993 2013-09-09 Jakub Jelinek <jakub@redhat.com>
10995 PR tree-optimization/58364
10996 * tree-ssa-reassoc.c (init_range_entry): For BIT_NOT_EXPR on
10997 BOOLEAN_TYPE, only invert in_p and continue with arg0 if
10998 the current range can't be an unconditional true or false.
11000 2013-09-09 James Greenhalgh <james.greenhalgh@arm.com>
11002 * config/aarch64/arm_neon.h (vrsqrte_f64): Fix parameter type.
11004 2013-09-09 Uros Bizjak <ubizjak@gmail.com>
11006 * ipa-prop.c (ipa_modify_call_arguments): Initialize deref_align.
11008 2013-09-09 Paolo Carlini <paolo.carlini@oracle.com>
11011 * doc/invoke.texi (-Wdelete-incomplete): Document it.
11013 2013-09-09 Ian Bolton <ian.bolton@arm.com>
11015 * config/aarch64/aarch64.c (aarch64_preferred_reload_class): Return
11016 NO_REGS for immediate that can't be moved directly into FP_REGS.
11018 2013-09-09 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
11020 * config/aarch64/aarch64.c (aarch64_select_cc_mode): Return CC_SWP for
11021 comparison with negated operand.
11022 * config/aarch64/aarch64.md (compare_neg<mode>): Match canonical
11025 2013-09-09 Richard Biener <rguenther@suse.de>
11027 PR middle-end/58326
11028 * cfgloopmanip.c (fix_bb_placements): When fixing the placement
11029 of a subloop record all its block as affecting loop-closed SSA form.
11031 2013-09-09 Richard Sandiford <rdsandiford@googlemail.com>
11033 * expmed.c (lshift_value): Take an unsigned HOST_WIDE_INT instead
11034 of an rtx/bitpos pair.
11035 (store_fixed_bit_field): Update accordingly.
11037 2013-09-09 Richard Sandiford <rdsandiford@googlemail.com>
11039 * asan.c (asan_emit_stack_protection): Use gen_int_mode instead of
11041 * builtins.c (expand_errno_check): Likewise.
11042 * dwarf2cfi.c (init_return_column_size): Likewise.
11043 * except.c (sjlj_mark_call_sites): Likewise.
11044 * expr.c (move_by_pieces_1, store_by_pieces_2): Likewise.
11045 * lra-constraints.c (emit_inc): Likewise.
11046 * ree.c (combine_set_extension): Likewise.
11047 * regmove.c (fixup_match_2): Likewise.
11048 * reload1.c (inc_for_reload): Likewise.
11050 2013-09-09 Richard Sandiford <rdsandiford@googlemail.com>
11052 * combine.c (simplify_set, expand_field_assignment, extract_left_shift)
11053 (force_to_mode, simplify_shift_const_1, simplify_comparison):
11054 Use gen_int_mode with the mode of the associated simplify_* call.
11055 * explow.c (probe_stack_range, anti_adjust_stack_and_probe): Likewise.
11056 * expmed.c (expand_shift_1): Likewise.
11057 * function.c (instantiate_virtual_regs_in_insn): Likewise.
11058 * loop-iv.c (iv_number_of_iterations): Likewise.
11059 * loop-unroll.c (unroll_loop_runtime_iterations): Likewise.
11060 * simplify-rtx.c (simplify_binary_operation_1): Likewise.
11062 2013-09-09 Richard Sandiford <rdsandiford@googlemail.com>
11064 * asan.c (asan_clear_shadow): Use gen_int_mode with the mode
11065 of the associated expand_* call.
11066 (asan_emit_stack_protection): Likewise.
11067 * builtins.c (round_trampoline_addr): Likewise.
11068 * explow.c (allocate_dynamic_stack_space, probe_stack_range): Likewise.
11069 * expmed.c (expand_smod_pow2, expand_sdiv_pow2, expand_divmod)
11070 (emit_store_flag): Likewise.
11071 * expr.c (emit_move_resolve_push, push_block, emit_single_push_insn_1)
11072 (emit_push_insn, optimize_bitfield_assignment_op, expand_expr_real_1):
11074 * function.c (instantiate_virtual_regs_in_insn): Likewise.
11075 * ifcvt.c (noce_try_store_flag_constants): Likewise.
11076 * loop-unroll.c (unroll_loop_runtime_iterations): Likewise.
11077 * modulo-sched.c (generate_prolog_epilog): Likewise.
11078 * optabs.c (expand_binop, widen_leading, expand_doubleword_clz)
11079 (expand_ctz, expand_ffs, expand_unop): Likewise.
11081 2013-09-09 Richard Sandiford <rdsandiford@googlemail.com>
11083 * alias.c (addr_side_effect_eval): Use gen_int_mode with the mode
11084 of the associated gen_rtx_* call.
11085 * caller-save.c (init_caller_save): Likewise.
11086 * combine.c (find_split_point, make_extraction): Likewise.
11087 (make_compound_operation): Likewise.
11088 * dwarf2out.c (mem_loc_descriptor): Likewise.
11089 * explow.c (plus_constant, probe_stack_range): Likewise.
11090 * expmed.c (expand_mult_const): Likewise.
11091 * expr.c (emit_single_push_insn_1, do_tablejump): Likewise.
11092 * reload1.c (init_reload): Likewise.
11093 * valtrack.c (cleanup_auto_inc_dec): Likewise.
11094 * var-tracking.c (adjust_mems): Likewise.
11095 * modulo-sched.c (sms_schedule): Likewise, but use gen_rtx_GT
11096 rather than gen_rtx_fmt_ee.
11098 2013-09-09 Jan Hubicka <jh@suse.cz>
11100 PR middle-end/58294
11101 * value-prof.c (gimple_ic): Copy also abnormal edges.
11103 2013-09-09 Richard Sandiford <rdsandiford@googlemail.com>
11105 * asan.c (asan_shadow_cst): Use gen_int_mode.
11107 2013-09-08 Jan Hubicka <jh@suse.cz>
11109 * ipa-profile.c: Add toplevel comment.
11110 (ipa_propagate_frequency_1): Be more conservative when profile is read.
11111 (contains_hot_call_p): New function.
11112 (ipa_propagate_frequency): Set frequencies based on counts when
11114 * predict.c (compute_function_frequency): Use PROFILE_READ gueard for
11115 profile; do not tamper with profile after inlining if it is read.
11117 2013-09-08 Jan Hubicka <jh@suse.cz>
11119 * ipa-prop.c (try_make_edge_direct_simple_call): Do not special case
11122 2013-09-08 Jan Hubicka <jh@suse.cz>
11124 * ipa.c (walk_polymorphic_call_targets): Fix redirection before IPA
11125 summary generation.
11127 2013-09-08 Jeff Law <law@redhat.com>
11130 * tree-ssa-threadedge.c (thread_across_edge): Fix initialization
11133 2013-09-08 Andi Kleen <ak@linux.intel.com>
11135 * tree-inline.c (estimate_num_insns): Limit asm cost to 1000.
11137 2013-09-08 Jan Hubicka <jh@suse.cz>
11139 * ipa.c (walk_polymorphic_call_targets): Fix inliner summary update.
11141 2013-09-08 Richard Sandiford <rdsandiford@googlemail.com>
11143 * ira.c (update_equiv_regs): Only call set_paradoxical_subreg
11144 for non-debug insns.
11145 * lra.c (new_insn_reg): Take the containing insn as a parameter.
11146 Only modify lra_reg_info[].biggest_mode if it's non-debug insn.
11147 (collect_non_operand_hard_regs, add_regs_to_insn_regno_info): Update
11150 2013-09-08 Jan Hubicka <jh@suse.cz>
11152 * cgraphunit.c (walk_polymorphic_call_targets): Permit 0 possible
11153 targets and devirtualize to BUILT_IN_UNREACHABLE.
11154 * timevar.def (TV_IPA_UNREACHABLE): New timevar.
11155 * ipa.c (walk_polymorphic_call_targets): New function.
11156 (symtab_remove_unreachable_nodes): Use it; do not keep all virtual
11157 functions; use the new timevar.
11158 * ipa-devirt.c (maybe_record_node): Do not insert static nodes that
11159 was removed from the program.
11160 (record_binfo): If BINFO corresponds to an anonymous namespace, we may
11161 not consider it in the walk when its vtable is dead.
11162 (possible_polymorphic_call_targets_1): Pass anonymous flag to
11164 (devirt_variable_node_removal_hook): New function.
11165 (possible_polymorphic_call_targets): Also register
11166 devirt_variable_node_removal_hook.
11167 (ipa_devirt): Do not do non-speculative devirtualization.
11168 (gate_ipa_devirt): One execute if devirtualizing speculatively.
11170 2013-09-08 Jan Hubicka <jh@suse.cz>
11172 * cgraph.h (varpool_node_hook, varpool_node_hook_list,
11173 varpool_add_node_removal_hook, varpool_add_variable_insertion_hook,
11174 varpool_remove_variable_insertion_hook): Declare.
11175 * varpool.c (varpool_node_hook_list): New structure.
11176 (first_varpool_node_removal_hook,
11177 first_varpool_variable_insertion_hook): New variables.
11178 (varpool_add_node_removal_hook, varpool_remove_node_removal_hook,
11179 varpool_call_node_removal_hooks, varpool_add_variable_insertion_hook,
11180 varpool_remove_variable_insertion_hook,
11181 varpool_call_variable_insertion_hooks): New functions.
11182 (varpool_remove_node): Use it.
11184 2013-09-08 Paolo Carlini <paolo.carlini@oracle.com>
11187 * diagnostic.c (diagnostic_build_prefix): When s.file is
11188 "<built-in>" don't output line and column numbers.
11190 2013-09-06 Jan Hubicka <jh@suse.cz>
11192 * cgraphunit.c (expand_thunk): Get body before touching arguments.
11193 * lto-streamer-out.c: Stream thunks, too.
11194 * lto-streamer-in.c (input_function): Pop cfun here
11195 (lto_read_body): Instead of here.
11197 2013-09-06 Caroline Tice <cmtice@google.com>
11199 * doc/install.texi: Add documentation for the --enable-vtable-verify
11200 and the --disable-libvtv configure options.
11202 2013-09-06 Jeff Law <law@redhat.com>
11204 * tree-ssa-dom.c (cprop_into_successor_phis): Also propagate
11205 edge implied equivalences into successor phis.
11207 2013-09-06 Joern Rennecke <joern.rennecke@embecosm.com>
11209 * resource.c (mark_referenced_resources): Handle COND_EXEC.
11211 2013-09-06 Claudiu Zissulescu <claziss@synopsys.com>
11213 * resource.c (mark_target_live_regs): Compute resources taking
11214 into account if a call is predicated or not.
11216 2013-09-06 Eric Botcazou <ebotcazou@adacore.com>
11218 * toplev.c (output_stack_usage): Be prepared for suffixes created by
11219 the compiler in the function names.
11221 2013-09-06 Jan Hubicka <jh@suse.cz>
11223 PR middle-end/58094
11224 * ipa-inline.c (has_caller_p): New function.
11225 (want_inline_function_to_all_callers_p): Use it.
11226 (sum_callers, inline_to_all_callers): Break out from ...
11227 (ipa_inline): ... here.
11229 2013-09-06 Jan Hubicka <jh@suse.cz>
11231 * config/i386/i386.c (ix86_hard_regno_mode_ok): AVX modes are valid
11232 only when AVX is enabled.
11234 2013-09-06 James Greenhalgh <james.greenhalgh@arm.com>
11236 * config/aarch64/aarch64.md
11237 (*movtf_aarch64): Use neon_<ls>dm_2 as type where v8type
11238 is fpsimd_<load/store>2.
11239 (load_pair<mode>): Likewise.
11240 (store_pair<mode>): Likewise.
11242 2013-09-06 James Greenhalgh <james.greenhalgh@arm.com>
11244 * config/arm/types.md (type): Add "mrs" type.
11245 * config/aarch64/aarch64.md
11246 (aarch64_load_tp_hard): Make type "mrs".
11247 * config/arm/arm.md
11248 (load_tp_hard): Make type "mrs".
11249 * config/arm/cortex-a15.md: Update with new attributes.
11250 * config/arm/cortex-a5.md: Update with new attributes.
11251 * config/arm/cortex-a53.md: Update with new attributes.
11252 * config/arm/cortex-a7.md: Update with new attributes.
11253 * config/arm/cortex-a8.md: Update with new attributes.
11254 * config/arm/cortex-a9.md: Update with new attributes.
11255 * config/arm/cortex-m4.md: Update with new attributes.
11256 * config/arm/cortex-r4.md: Update with new attributes.
11257 * config/arm/fa526.md: Update with new attributes.
11258 * config/arm/fa606te.md: Update with new attributes.
11259 * config/arm/fa626te.md: Update with new attributes.
11260 * config/arm/fa726te.md: Update with new attributes.
11262 2013-09-06 James Greenhalgh <james.greenhalgh@arm.com>
11264 * config/aarch64/aarch64.md
11265 (*movti_aarch64): Use "multiple" for type where v8type is "move2".
11266 (*movtf_aarch64): Likewise.
11267 * config/arm/arm.md
11268 (thumb1_movdi_insn): Use "multiple" for type where more than one
11269 instruction is used for a move.
11270 (*arm32_movhf): Likewise.
11271 (*thumb_movdf_insn): Likewise.
11273 2013-09-06 James Greenhalgh <james.greenhalgh@arm.com>
11275 * config/arm/types.md (type): Rename fcpys to fmov.
11276 * config/arm/vfp.md
11277 (*arm_movsi_vfp): Rename type fcpys as fmov.
11278 (*thumb2_movsi_vfp): Likewise
11279 (*movhf_vfp_neon): Likewise
11280 (*movhf_vfp): Likewise
11281 (*movsf_vfp): Likewise
11282 (*thumb2_movsf_vfp): Likewise
11283 (*movsfcc_vfp): Likewise
11284 (*thumb2_movsfcc_vfp): Likewise
11285 * config/aarch64/aarch64-simd.md
11286 (move_lo_quad_<mode>): Replace type mov_reg with fmovs.
11287 * config/aarch64/aarch64.md
11288 (*movsi_aarch64): Replace type mov_reg with fmovs.
11289 (*movdi_aarch64): Likewise
11290 (*movsf_aarch64): Likewise
11291 (*movdf_aarch64): Likewise
11293 (cortexa7_older_only): Rename TYPE_FCPYS to TYPE_FMOV.
11294 * config/arm/iwmmxt.md
11295 (*iwmmxt_movsi_insn): Rename type fcpys as fmov.
11296 * config/arm/arm1020e.md: Update with new attributes.
11297 * config/arm/cortex-a15-neon.md: Update with new attributes.
11298 * config/arm/cortex-a5.md: Update with new attributes.
11299 * config/arm/cortex-a53.md: Update with new attributes.
11300 * config/arm/cortex-a7.md: Update with new attributes.
11301 * config/arm/cortex-a8-neon.md: Update with new attributes.
11302 * config/arm/cortex-a9.md: Update with new attributes.
11303 * config/arm/cortex-m4-fpu.md: Update with new attributes.
11304 * config/arm/cortex-r4f.md: Update with new attributes.
11305 * config/arm/marvell-pj4.md: Update with new attributes.
11306 * config/arm/vfp11.md: Update with new attributes.
11308 2013-09-06 James Greenhalgh <james.greenhalgh@arm.com>
11310 * config/aarch64/aarch64.md
11311 (*madd<mode>): Fix type attribute.
11312 (*maddsi_uxtw): Likewise.
11313 (*msub<mode>): Likewise.
11314 (*msubsi_uxtw): Likewise.
11315 (<su_optab>maddsidi4): Likewise.
11316 (<su_optab>msubsidi4): Likewise.
11318 2013-09-06 James Greenhalgh <james.greenhalgh@arm.com>
11320 * config/arm/types.md: Split fdiv<sd> as fsqrt<sd>, fdiv<sd>.
11321 * config/arm/arm.md (core_cycles): Remove fdiv.
11322 * config/arm/vfp.md:
11323 (*sqrtsf2_vfp): Update for attribute changes.
11324 (*sqrtdf2_vfp): Likewise.
11325 * config/aarch64/aarch64.md:
11326 (sqrt<mode>2): Update for attribute changes.
11327 * config/arm/arm1020e.md: Update with new attributes.
11328 * config/arm/cortex-a15-neon.md: Update with new attributes.
11329 * config/arm/cortex-a5.md: Update with new attributes.
11330 * config/arm/cortex-a53.md: Update with new attributes.
11331 * config/arm/cortex-a7.md: Update with new attributes.
11332 * config/arm/cortex-a8-neon.md: Update with new attributes.
11333 * config/arm/cortex-a9.md: Update with new attributes.
11334 * config/arm/cortex-m4-fpu.md: Update with new attributes.
11335 * config/arm/cortex-r4f.md: Update with new attributes.
11336 * config/arm/marvell-pj4.md: Update with new attributes.
11337 * config/arm/vfp11.md: Update with new attributes.
11339 2013-09-06 James Greenhalgh <james.greenhalgh@arm.com>
11341 * config/arm/types.md
11342 (type): Split f_cvt as f_cvt, f_cvtf2i, f_cvti2f.
11343 * config/aarch64/aarch64.md
11344 (l<fcvt_pattern><su_optab><GPF:mode><GPI:mode>2): Update with
11346 (fix_trunc<GPF:mode><GPI:mode>2): Likewise.
11347 (fixuns_trunc<GPF:mode><GPI:mode>2): Likewise.
11348 (float<GPI:mode><GPF:mode>2): Likewise.
11349 * config/arm/vfp.md
11350 (*truncsisf2_vfp): Update with new attributes.
11351 (*truncsidf2_vfp): Likewise.
11352 (fixuns_truncsfsi2): Likewise.
11353 (fixuns_truncdfsi2): Likewise.
11354 (*floatsisf2_vfp): Likewise.
11355 (*floatsidf2_vfp): Likewise.
11356 (floatunssisf2): Likewise.
11357 (floatunssidf2): Likewise.
11358 (*combine_vcvt_f32_<FCVTI32typename>): Likewise.
11359 (*combine_vcvt_f64_<FCVTI32typename>): Likewise.
11360 * config/arm/arm1020e.md: Update with new attributes.
11361 * config/arm/cortex-a15-neon.md: Update with new attributes.
11362 * config/arm/cortex-a5.md: Update with new attributes.
11363 * config/arm/cortex-a53.md: Update with new attributes.
11364 * config/arm/cortex-a7.md: Update with new attributes.
11365 * config/arm/cortex-a8-neon.md: Update with new attributes.
11366 * config/arm/cortex-a9.md: Update with new attributes.
11367 * config/arm/cortex-m4-fpu.md: Update with new attributes.
11368 * config/arm/cortex-r4f.md: Update with new attributes.
11369 * config/arm/marvell-pj4.md: Update with new attributes.
11370 * config/arm/vfp11.md: Update with new attributes.
11372 2013-09-06 James Greenhalgh <james.greenhalgh@arm.com>
11374 * config/aarch64/arm_neon.h
11375 (vqtbl<1,2,3,4><q>_s8): Fix control vector parameter type.
11376 (vqtbx<1,2,3,4><q>_s8): Likewise.
11378 2013-09-06 James Greenhalgh <james.greenhalgh@arm.com>
11380 * config/arm/types.md: Add "no_insn", "multiple" and "untyped" types.
11381 * config/arm/arm-fixed.md: Add type attribute to all insn patterns.
11382 (add<mode>3): Add type attribute.
11383 (add<mode>3): Likewise.
11384 (usadd<mode>3): Likewise.
11385 (ssadd<mode>3): Likewise.
11386 (sub<mode>3): Likewise.
11387 (sub<mode>3): Likewise.
11388 (ussub<mode>3): Likewise.
11389 (sssub<mode>3): Likewise.
11390 (ssmulsa3): Likewise.
11391 (usmulusa3): Likewise.
11392 (arm_usatsihi): Likewise.
11393 * config/arm/vfp.md
11394 (*movdi_vfp): Add types for all instructions.
11395 (*movdi_vfp_cortexa8): Likewise.
11396 (*movhf_vfp_neon): Likewise.
11397 (*movhf_vfp): Likewise.
11398 (*movdf_vfp): Likewise.
11399 (*thumb2_movdf_vfp): Likewise.
11400 (*thumb2_movdfcc_vfp): Likewise.
11401 * config/arm/arm.md: Add type attribute to all insn patterns.
11402 (*thumb1_adddi3): Add type attribute.
11403 (*arm_adddi3): Likewise.
11404 (*adddi_sesidi_di): Likewise.
11405 (*adddi_zesidi_di): Likewise.
11406 (*thumb1_addsi3): Likewise.
11407 (addsi3_compare0): Likewise.
11408 (*addsi3_compare0_scratch): Likewise.
11409 (*compare_negsi_si): Likewise.
11410 (cmpsi2_addneg): Likewise.
11411 (*addsi3_carryin_<optab>): Likewise.
11412 (*addsi3_carryin_alt2_<optab>): Likewise.
11413 (*addsi3_carryin_clobercc_<optab>): Likewise.
11414 (*subsi3_carryin): Likewise.
11415 (*subsi3_carryin_const): Likewise.
11416 (*subsi3_carryin_compare): Likewise.
11417 (*subsi3_carryin_compare_const): Likewise.
11418 (*arm_subdi3): Likewise.
11419 (*thumb_subdi3): Likewise.
11420 (*subdi_di_zesidi): Likewise.
11421 (*subdi_di_sesidi): Likewise.
11422 (*subdi_zesidi_di): Likewise.
11423 (*subdi_sesidi_di): Likewise.
11424 (*subdi_zesidi_ze): Likewise.
11425 (thumb1_subsi3_insn): Likewise.
11426 (*arm_subsi3_insn): Likewise.
11427 (*anddi3_insn): Likewise.
11428 (*anddi_zesidi_di): Likewise.
11429 (*anddi_sesdi_di): Likewise.
11430 (*ne_zeroextracts): Likewise.
11431 (*ne_zeroextracts): Likewise.
11432 (*ite_ne_zeroextr): Likewise.
11433 (*ite_ne_zeroextr): Likewise.
11434 (*anddi_notdi_di): Likewise.
11435 (*anddi_notzesidi): Likewise.
11436 (*anddi_notsesidi): Likewise.
11437 (andsi_notsi_si): Likewise.
11438 (thumb1_bicsi3): Likewise.
11439 (*iordi3_insn): Likewise.
11440 (*iordi_zesidi_di): Likewise.
11441 (*iordi_sesidi_di): Likewise.
11442 (*thumb1_iorsi3_insn): Likewise.
11443 (*xordi3_insn): Likewise.
11444 (*xordi_zesidi_di): Likewise.
11445 (*xordi_sesidi_di): Likewise.
11446 (*arm_xorsi3): Likewise.
11447 (*andsi_iorsi3_no): Likewise.
11448 (*smax_0): Likewise.
11449 (*smax_m1): Likewise.
11450 (*arm_smax_insn): Likewise.
11451 (*smin_0): Likewise.
11452 (*arm_smin_insn): Likewise.
11453 (*arm_umaxsi3): Likewise.
11454 (*arm_uminsi3): Likewise.
11455 (*minmax_arithsi): Likewise.
11456 (*minmax_arithsi_): Likewise.
11457 (*satsi_<SAT:code>): Likewise.
11458 (arm_ashldi3_1bit): Likewise.
11459 (arm_ashrdi3_1bit): Likewise.
11460 (arm_lshrdi3_1bit): Likewise.
11461 (*arm_negdi2): Likewise.
11462 (*thumb1_negdi2): Likewise.
11463 (*arm_negsi2): Likewise.
11464 (*thumb1_negsi2): Likewise.
11465 (*negdi_extendsid): Likewise.
11466 (*negdi_zero_extend): Likewise.
11467 (*arm_abssi2): Likewise.
11468 (*thumb1_abssi2): Likewise.
11469 (*arm_neg_abssi2): Likewise.
11470 (*thumb1_neg_abss): Likewise.
11471 (one_cmpldi2): Likewise.
11472 (extend<mode>di2): Likewise.
11473 (*compareqi_eq0): Likewise.
11474 (*arm_extendhisi2addsi): Likewise.
11475 (*arm_movdi): Likewise.
11476 (*thumb1_movdi_insn): Likewise.
11477 (*arm_movt): Likewise.
11478 (*thumb1_movsi_insn): Likewise.
11479 (pic_add_dot_plus_four): Likewise.
11480 (pic_add_dot_plus_eight): Likewise.
11481 (tls_load_dot_plus_eight): Likewise.
11482 (*thumb1_movhi_insn): Likewise.
11483 (*thumb1_movsf_insn): Likewise.
11484 (*movdf_soft_insn): Likewise.
11485 (*thumb_movdf_insn): Likewise.
11486 (cbranchsi4_insn): Likewise.
11487 (cbranchsi4_scratch): Likewise.
11488 (*negated_cbranchsi4): Likewise.
11489 (*tbit_cbranch): Likewise.
11490 (*tlobits_cbranch): Likewise.
11491 (*tstsi3_cbranch): Likewise.
11492 (*cbranchne_decr1): Likewise.
11493 (*addsi3_cbranch): Likewise.
11494 (*addsi3_cbranch_scratch): Likewise.
11495 (*arm_cmpdi_insn): Likewise.
11496 (*arm_cmpdi_unsig): Likewise.
11497 (*arm_cmpdi_zero): Likewise.
11498 (*thumb_cmpdi_zero): Likewise.
11499 (*deleted_compare): Likewise.
11500 (*mov_scc): Likewise.
11501 (*mov_negscc): Likewise.
11502 (*mov_notscc): Likewise.
11503 (*cstoresi_eq0_thumb1_insn): Likewise.
11504 (cstoresi_nltu_thumb1): Likewise.
11505 (cstoresi_ltu_thu): Likewise.
11506 (thumb1_addsi3_addgeu): Likewise.
11507 (*arm_jump): Likewise.
11508 (*thumb_jump): Likewise.
11509 (*check_arch2): Likewise.
11510 (arm_casesi_internal): Likewise.
11511 (thumb1_casesi_dispatch): Likewise.
11512 (*arm_indirect_jump): Likewise.
11513 (*thumb1_indirect_jump): Likewise.
11515 (*and_scc): Likewise.
11516 (*ior_scc): Likewise.
11517 (*compare_scc): Likewise.
11518 (*cond_move): Likewise.
11519 (*cond_arith): Likewise.
11520 (*cond_sub): Likewise.
11521 (*cmp_ite0): Likewise.
11522 (*cmp_ite1): Likewise.
11523 (*cmp_and): Likewise.
11524 (*cmp_ior): Likewise.
11525 (*ior_scc_scc): Likewise.
11526 (*ior_scc_scc_cmp): Likewise.
11527 (*and_scc_scc): Likewise.
11528 (*and_scc_scc_cmp): Likewise.
11529 (*and_scc_scc_nod): Likewise.
11530 (*negscc): Likewise.
11531 (movcond_addsi): Likewise.
11532 (movcond): Likewise.
11533 (*ifcompare_plus_move): Likewise.
11534 (*if_plus_move): Likewise.
11535 (*ifcompare_move_plus): Likewise.
11536 (*if_move_plus): Likewise.
11537 (*ifcompare_arith_arith): Likewise.
11538 (*if_arith_arith): Likewise.
11539 (*ifcompare_arith_move): Likewise.
11540 (*if_arith_move): Likewise.
11541 (*ifcompare_move_arith): Likewise.
11542 (*if_move_arith): Likewise.
11543 (*ifcompare_move_not): Likewise.
11544 (*if_move_not): Likewise.
11545 (*ifcompare_not_move): Likewise.
11546 (*if_not_move): Likewise.
11547 (*ifcompare_shift_move): Likewise.
11548 (*if_shift_move): Likewise.
11549 (*ifcompare_move_shift): Likewise.
11550 (*if_move_shift): Likewise.
11551 (*ifcompare_shift_shift): Likewise.
11552 (*ifcompare_not_arith): Likewise.
11553 (*ifcompare_arith_not): Likewise.
11554 (*if_arith_not): Likewise.
11555 (*ifcompare_neg_move): Likewise.
11556 (*if_neg_move): Likewise.
11557 (*ifcompare_move_neg): Likewise.
11558 (*if_move_neg): Likewise.
11559 (prologue_thumb1_interwork): Likewise.
11560 (*cond_move_not): Likewise.
11561 (*sign_extract_onebit): Likewise.
11562 (*not_signextract_onebit): Likewise.
11563 (stack_tie): Likewise.
11564 (align_4): Likewise.
11565 (align_8): Likewise.
11566 (consttable_end): Likewise.
11567 (consttable_1): Likewise.
11568 (consttable_2): Likewise.
11569 (consttable_4): Likewise.
11570 (consttable_8): Likewise.
11571 (consttable_16): Likewise.
11572 (*thumb1_tablejump): Likewise.
11573 (prefetch): Likewise.
11574 (force_register_use): Likewise.
11575 (thumb_eh_return): Likewise.
11576 (load_tp_hard): Likewise.
11577 (load_tp_soft): Likewise.
11578 (tlscall): Likewise.
11579 (*arm_movtas_ze): Likewise.
11580 (*arm_rev): Likewise.
11581 (*arm_revsh): Likewise.
11582 (*arm_rev16): Likewise.
11583 * config/arm/thumb2.md
11584 (*thumb2_smaxsi3): Likewise.
11585 (*thumb2_sminsi3): Likewise.
11586 (*thumb32_umaxsi3): Likewise.
11587 (*thumb2_uminsi3): Likewise.
11588 (*thumb2_negdi2): Likewise.
11589 (*thumb2_abssi2): Likewise.
11590 (*thumb2_neg_abss): Likewise.
11591 (*thumb2_movsi_insn): Likewise.
11592 (tls_load_dot_plus_four): Likewise.
11593 (*thumb2_movhi_insn): Likewise.
11594 (*thumb2_mov_scc): Likewise.
11595 (*thumb2_mov_negs): Likewise.
11596 (*thumb2_mov_negs): Likewise.
11597 (*thumb2_mov_nots): Likewise.
11598 (*thumb2_mov_nots): Likewise.
11599 (*thumb2_movsicc_): Likewise.
11600 (*thumb2_movsfcc_soft_insn): Likewise.
11601 (*thumb2_indirect_jump): Likewise.
11602 (*thumb2_and_scc): Likewise.
11603 (*thumb2_ior_scc): Likewise.
11604 (*thumb2_ior_scc_strict_it): Likewise.
11605 (*thumb2_cond_move): Likewise.
11606 (*thumb2_cond_arith): Likewise.
11607 (*thumb2_cond_ari): Likewise.
11608 (*thumb2_cond_sub): Likewise.
11609 (*thumb2_negscc): Likewise.
11610 (*thumb2_movcond): Likewise.
11611 (thumb2_casesi_internal): Likewise.
11612 (thumb2_casesi_internal_pic): Likewise.
11613 (*thumb2_alusi3_short): Likewise.
11614 (*thumb2_mov<mode>_shortim): Likewise.
11615 (*thumb2_addsi_short): Likewise.
11616 (*thumb2_subsi_short): Likewise.
11617 (thumb2_addsi3_compare0): Likewise.
11618 (*thumb2_cbz): Likewise.
11619 (*thumb2_cbnz): Likewise.
11620 (*thumb2_one_cmplsi2_short): Likewise.
11621 (*thumb2_negsi2_short): Likewise.
11622 (*orsi_notsi_si): Likewise.
11623 * config/arm/arm1020e.md: Update with new attributes.
11624 * config/arm/arm1026ejs.md: Update with new attributes.
11625 * config/arm/arm1136jfs.md: Update with new attributes.
11626 * config/arm/arm926ejs.md: Update with new attributes.
11627 * config/arm/cortex-a15.md: Update with new attributes.
11628 * config/arm/cortex-a5.md: Update with new attributes.
11629 * config/arm/cortex-a53.md: Update with new attributes.
11630 * config/arm/cortex-a7.md: Update with new attributes.
11631 * config/arm/cortex-a8.md: Update with new attributes.
11632 * config/arm/cortex-a9.md: Update with new attributes.
11633 * config/arm/cortex-m4.md: Update with new attributes.
11634 * config/arm/cortex-r4.md: Update with new attributes.
11635 * config/arm/fa526.md: Update with new attributes.
11636 * config/arm/fa606te.md: Update with new attributes.
11637 * config/arm/fa626te.md: Update with new attributes.
11638 * config/arm/fa726te.md: Update with new attributes.
11640 2013-09-06 James Greenhalgh <james.greenhalgh@arm.com>
11642 * config/aarch64/aarch64-simd.md
11643 (aarch64_sqdml<SBINQOPS:as>l_n<mode>_internal): Use
11644 <vwx> iterator to ensure correct register choice.
11645 (aarch64_sqdml<SBINQOPS:as>l2_n<mode>_internal): Likewise.
11646 (aarch64_sqdmull_n<mode>): Likewise.
11647 (aarch64_sqdmull2_n<mode>_internal): Likewise.
11648 * config/aarch64/arm_neon.h
11649 (vml<as><q>_lane<q>_<su>16): Use 'x' constraint for element vector.
11650 (vml<as><q>_n_<su>16): Likewise.
11651 (vml<as>l_high_lane<q>_<su>16): Likewise.
11652 (vml<as>l_high_n_<su>16): Likewise.
11653 (vml<as>l_lane<q>_<su>16): Likewise.
11654 (vml<as>l_n_<su>16): Likewise.
11655 (vmul<q>_lane<q>_<su>16): Likewise.
11656 (vmul<q>_n_<su>16): Likewise.
11657 (vmull_lane<q>_<su>16): Likewise.
11658 (vmull_n_<su>16): Likewise.
11659 (vmull_high_lane<q>_<su>16): Likewise.
11660 (vmull_high_n_<su>16): Likewise.
11661 (vqrdmulh<q>_n_s16): Likewise.
11663 2013-09-06 Tejas Belagod <tejas.belagod@arm.com>
11665 * config/aarch64/arm_neon.h: Fix all vdup<bhsd_lane<q> intrinsics to
11666 have the correct lane parameter.
11668 2013-09-06 Richard Biener <rguenther@suse.de>
11670 * cfganal.c (control_dependences::~control_dependences):
11671 Properly free all of the vector.
11673 2013-09-06 Kirill Yukhin <kirill.yukhin@intel.com>
11676 * config/i386/i386.c (ix86_conditional_register_usage):
11677 Proper initialize extended SSE registers.
11679 2013-09-06 Jan Hubicka <jh@suse.cz>
11681 PR tree-optimization/58311
11682 * ipa-devirt.c (gate_ipa_devirt): Only execute when optimizing.
11684 2013-09-06 Jan Hubicka <jh@suse.cz>
11686 * Makefile.in (tree-sra.o): Update dependencies.
11687 * tree-sra.c: Include ipa-utils.h
11688 (scan_function): Use recursive_call_p.
11689 (has_caller_p): New function.
11690 (cgraph_for_node_and_aliases): Count also callers of aliases.
11692 2013-09-06 Jan Hubicka <jh@suse.cz>
11694 PR middle-end/58094
11695 * cgraph.h (symtab_semantically_equivalent_p): Declare.
11696 * tree-tailcall.c: Include ipa-utils.h.
11697 (find_tail_calls): Use it.
11698 * ipa-pure-const.c (check_call): Likewise.
11699 * ipa-utils.c (recursive_call_p): New function.
11700 * ipa-utils.h (recursive_call_p): Dclare.
11701 * symtab.c (symtab_nonoverwritable_alias): Fix formatting.
11702 (symtab_semantically_equivalent_p): New function.
11703 * Makefile.in (tree-tailcall.o): Update dependencies.
11705 2013-09-06 Eric Botcazou <ebotcazou@adacore.com>
11707 * ipa-split.c (split_function): Set DECL_NO_INLINE_WARNING_P on the
11708 non-inlinable part.
11710 2013-09-06 Richard Biener <rguenther@suse.de>
11712 * lto-streamer.h (lto_global_var_decls): Remove.
11713 * Makefile.in (OBJS): Remove lto-symtab.o.
11714 (lto-symtab.o): Remove.
11715 (GTFILES): Remove lto-symtab.c
11716 * lto-symtab.c: Move to lto/
11718 2013-09-06 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
11720 * config/s390/s390.md (UNSPEC_FPINT_FLOOR, UNSPEC_FPINT_BTRUNC)
11721 (UNSPEC_FPINT_ROUND, UNSPEC_FPINT_CEIL, UNSPEC_FPINT_NEARBYINT)
11722 (UNSPEC_FPINT_RINT): New constant definitions.
11723 (FPINT, fpint_name, fpint_roundingmode): New integer iterator
11724 definition with 2 attributes.
11725 ("<FPINT:fpint_name><BFP:mode>2", "rint<BFP:mode>2")
11726 ("<FPINT:fpint_name><DFP:mode>2", "rint<DFP:mode>2"): New pattern
11729 2013-09-06 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
11731 * config/s390/s390.md: Add "bcr_flush" value to mnemonic attribute.
11732 ("mem_thread_fence_1"): Use bcr 14,0 for z196 and later.
11733 Set the mnemonic attribute to "bcr_flush". Set the "z196prop"
11734 attribute to "z196_alone".
11735 * config/s390/2827.md: Add "bcr_flush" to "ooo_groupalone" and
11738 2013-09-06 Richard Biener <rguenther@suse.de>
11740 * basic-block.h (class control_dependences): New.
11741 * tree-ssa-dce.c (control_dependence_map): Remove.
11743 (EXECUTE_IF_CONTROL_DEPENDENT): Remove.
11744 (set_control_dependence_map_bit, clear_control_dependence_bitmap,
11745 find_pdom, find_control_dependence, find_all_control_dependences):
11747 (mark_control_dependent_edges_necessary,
11748 find_obviously_necessary_stmts, propagate_necessity, tree_dce_init,
11749 tree_dce_done, perform_tree_ssa_dce): Adjust.
11750 * cfganal.c (set_control_dependence_map_bit,
11751 clear_control_dependence_bitmap, find_pdom, find_control_dependence,
11752 find_all_control_dependences): Move from tree-ssa-dce.c and
11753 implement as methods of control_dependences class.
11754 (control_dependences::control_dependences): New.
11755 (control_dependences::~control_dependences): Likewise.
11756 (control_dependences::get_edges_dependent_on): Likewise.
11757 (control_dependences::get_edge): Likewise.
11759 2013-09-04 Jan Hubicka <jh@suse.cz>
11761 * tree.c (types_same_for_odr): Drop overactive check.
11762 * ipa-devirt.c (hash_type_name): Likewise.
11764 2013-09-04 Jan Hubicka <jh@suse.cz>
11766 * cgraphunit.c (walk_polymorphic_call_targets): Break out from ...
11767 (analyze_functions): ... here.
11769 2013-09-04 Jan Hubicka <jh@suse.cz>
11771 PR middle-end/58201
11772 * cgraphunit.c (analyze_functions): Clear AUX fields
11773 after processing; initialize assembler name has.
11775 2013-09-05 Jeff Law <law@redhat.com>
11777 * tree-ssa-threadedge.c (thread_around_empty_blocks): Renamed
11778 from thread_around_empty_block. Record threading path into PATH.
11779 Recurse if threading through the initial block is successful.
11780 (thread_across_edge): Corresponding changes to slightly simplify.
11782 2013-09-05 James Greenhalgh <james.greenhalgh@arm.com>
11784 * config/aarch64/aarch64.md
11785 (type): Remove frecpe, frecps, frecpx.
11786 (aarch64_frecp<FRECP:frecp_suffix><mode>): Move to aarch64-simd.md,
11787 fix to be a TARGET_SIMD instruction.
11788 (aarch64_frecps): Remove.
11789 * config/aarch64/aarch64-simd.md
11790 (aarch64_frecp<FRECP:frecp_suffix><mode>): New, moved from aarch64.md
11791 (aarch64_frecps<mode>): Handle all float/vector of float modes.
11793 2013-09-05 James Greenhalgh <james.greenhalgh@arm.com>
11794 Sofiane Naci <sofiane.naci@arm.com>
11796 * config/arm/types.md (define_attr "type"): Expand "arlo_imm"
11797 into "adr", "alu_imm", "alus_imm", "logic_imm", "logics_imm".
11798 Expand "arlo_reg" into "adc_reg", "adc_imm", "adcs_reg", "adcs_imm",
11799 "alu_ext", "alu_reg", "alus_ext", "alus_reg", "bfm", "csel",
11800 "logic_reg", "logics_reg", "rev". Expand "arlo_shift" into
11801 "alu_shift_imm", "alus_shift_imm", "logic_shift_imm",
11802 "logics_shift_imm". Expand "arlo_shift_reg" into "alu_shift_reg",
11803 "alus_shift_reg", "logic_shift_reg", "logics_shift_reg". Expand "clz"
11804 into "clz, "rbit". Rename "shift" to "shift_imm".
11805 * config/arm/arm.md (define_attr "core_cycles"): Update for attribute
11806 changes. Update for attribute changes all occurrences of arlo_* and
11808 * config/arm/arm-fixed.md: Update for attribute changes
11809 all occurrences of arlo_* types.
11810 * config/arm/thumb2.md: Update for attribute changes all occurrences
11812 * config/arm/arm.c (xscale_sched_adjust_cost): (rtx insn, rtx
11813 (cortexa7_older_only): Likewise.
11814 (cortexa7_younger): Likewise.
11815 * config/arm/arm1020e.md (1020alu_op): Update for attribute changes.
11816 (1020alu_shift_op): Likewise.
11817 (1020alu_shift_reg_op): Likewise.
11818 * config/arm/arm1026ejs.md (alu_op): Update for attribute changes.
11819 (alu_shift_op): Likewise.
11820 (alu_shift_reg_op): Likewise.
11821 * config/arm/arm1136jfs.md (11_alu_op): Update for attribute changes.
11822 (11_alu_shift_op): Likewise.
11823 (11_alu_shift_reg_op): Likewise.
11824 * config/arm/arm926ejs.md (9_alu_op): Update for attribute changes.
11825 (9_alu_shift_reg_op): Likewise.
11826 * config/arm/cortex-a15.md (cortex_a15_alu): Update for
11828 (cortex_a15_alu_shift): Likewise.
11829 (cortex_a15_alu_shift_reg): Likewise.
11830 * config/arm/cortex-a5.md (cortex_a5_alu): Update for
11832 (cortex_a5_alu_shift): Likewise.
11833 * config/arm/cortex-a53.md (cortex_a53_alu): Update for
11835 (cortex_a53_alu_shift): Likewise.
11836 * config/arm/cortex-a7.md (cortex_a7_alu_imm): Update for
11838 (cortex_a7_alu_reg): Likewise.
11839 (cortex_a7_alu_shift): Likewise.
11840 * config/arm/cortex-a8.md (cortex_a8_alu): Update for
11842 (cortex_a8_alu_shift): Likewise.
11843 (cortex_a8_alu_shift_reg): Likewise.
11844 * config/arm/cortex-a9.md (cortex_a9_dp): Update for attribute changes.
11845 (cortex_a9_dp_shift): Likewise.
11846 * config/arm/cortex-m4.md (cortex_m4_alu): Update for
11848 * config/arm/cortex-r4.md
11849 (cortex_r4_alu): Update for attribute changes.
11850 (cortex_r4_mov): Likewise.
11851 (cortex_r4_alu_shift_reg): Likewise.
11852 * config/arm/fa526.md (526_alu_op): Update for attribute changes.
11853 (526_alu_shift_op): Likewise.
11854 * config/arm/fa606te.md (606te_alu_op): Update for attribute changes.
11855 * config/arm/fa626te.md (626te_alu_op): Update for attribute changes.
11856 (626te_alu_shift_op): Likewise.
11857 * config/arm/fa726te.md (726te_alu_op): Update for attribute changes.
11858 (726te_alu_shift_op): Likewise.
11859 (726te_alu_shift_reg_op): Likewise.
11860 * config/arm/fmp626.md (mp626_alu_op): Update for attribute changes.
11861 (mp626_alu_shift_op): Likewise.
11862 * config/arm/marvell-pj4.md (pj4_alu): Update for attribute changes.
11863 (pj4_alu_conds): Likewise.
11864 (pj4_shift): Likewise.
11865 (pj4_shift_conds): Likewise.
11866 (pj4_alu_shift): Likewise.
11867 (pj4_alu_shift_conds): Likewise.
11868 * config/aarch64/aarch64.md: Update for attribute change
11869 all occurrences of arlo_* and shift* types.
11871 2013-09-05 Mike Stump <mikestump@comcast.net>
11873 * tree.h: Move documentation for tree_function_decl to tree-core.h
11874 with the declaration.
11876 2013-09-05 Peter Bergner <bergner@vnet.ibm.com>
11879 * reginfo.c (choose_hard_reg_mode): Scan through all mode classes
11880 looking for widest mode.
11882 2013-09-05 Eric Botcazou <ebotcazou@adacore.com>
11884 * config.gcc (*-*-vxworks*): Do not override an existing extra_objs.
11886 2013-09-05 Richard Biener <rguenther@suse.de>
11888 PR tree-optimization/58137
11889 * tree-vect-stmts.c (get_vectype_for_scalar_type_and_size):
11890 Do not create vectors of pointers.
11891 * tree-vect-loop.c (get_initial_def_for_induction): Use proper
11892 types for the components of the vector initializer.
11893 * tree-cfg.c (verify_gimple_assign_binary): Remove special-casing
11894 allowing pointer vectors with PLUS_EXPR/MINUS_EXPR.
11896 2013-09-05 Martin Jambor <mjambor@suse.cz>
11898 * ipa-prop.c (remove_described_reference): Accept missing references,
11899 return false if that hppens, otherwise return true.
11900 (cgraph_node_for_jfunc): New function.
11901 (try_decrement_rdesc_refcount): Likewise.
11902 (try_make_edge_direct_simple_call): Use them.
11903 (ipa_edge_removal_hook): Remove references from rdescs.
11904 (ipa_edge_duplication_hook): Clone rdescs and their references
11905 when the new edge has the same caller as the old one.
11906 * cgraph.c (cgraph_resolve_speculation): Remove speculative
11907 reference before removing any edges.
11909 2013-09-05 Richard Earnshaw <rearnsha@arm.com>
11911 * arm.c (thumb2_emit_strd_push): Rewrite to use pre-decrement on
11913 * thumb2.md (thumb2_storewb_parisi): New pattern.
11915 2013-09-05 Yufeng Zhang <yufeng.zhang@arm.com>
11917 * config/aarch64/aarch64-option-extensions.def: Add
11918 AARCH64_OPT_EXTENSION of 'crc'.
11919 * config/aarch64/aarch64.h (AARCH64_FL_CRC): New define.
11920 (AARCH64_ISA_CRC): Ditto.
11921 * doc/invoke.texi (-march and -mcpu feature modifiers): Add
11922 description of the CRC extension.
11924 2013-09-05 Alexander Ivchenko <alexander.ivchenko@intel.com>
11926 * config/rs6000/linux64.h: Define OPTION_BIONIC and OPTION_UCLIBC.
11927 * config/rs6000/linux.h: Ditto.
11928 * alpha/linux.h: Ditto.
11929 * config/bfin/uclinux.h: Define TARGET_LIBC_HAS_FUNCTION as
11930 no_c99_libc_has_function.
11931 * config/c6x/uclinux-elf.h: Ditto.
11932 * config/lm32/uclinux-elf.h: Ditto.
11933 * config/m68k/uclinux.h: Ditto.
11934 * config/moxie/uclinux.h: Ditto.
11935 * config.gcc (bfin*-linux-uclibc*): Add t-linux-android to tmake_file.
11936 (crisv32-*-linux*, cris-*-linux*): Ditto.
11937 * config/bfin/bfin.c: Include "tm_p.h".
11939 2013-09-05 Richard Biener <rguenther@suse.de>
11941 * tree-vect-loop.c (vect_analyze_loop_operations): Properly
11942 check for a definition without a basic-block.
11944 2013-09-05 James Greenhalgh <james.greenhalgh@arm.com>
11945 Sofiane Naci <sofiane.naci@arm.com>
11947 * config/aarch64/aarch64.md
11948 (*movti_aarch64): Rename r_2_f and f_2_r.
11949 (*movsf_aarch64): Likewise.
11950 (*movdf_aarch64): Likewise.
11951 (*movtf_aarch64): Likewise.
11952 (aarch64_movdi_<mode>low): Likewise.
11953 (aarch64_movdi_<mode>high): Likewise.
11954 (aarch64_mov<mode>high_di): Likewise.
11955 (aarch64_mov<mode>low_di): Likewise.
11956 (aarch64_movtilow_tilow): Likewise.
11957 * config/arm/arm.md (attribute "neon_type"): Delete. Move attribute
11958 values to config/arm/types.md
11959 (attribute "conds"): Update for attribute change.
11960 (anddi3_insn): Likewise.
11961 (iordi3_insn): Likewise.
11962 (xordi3_insn): Likewise.
11963 (one_cmpldi2): Likewise.
11964 * config/arm/types.md (type): Add Neon types.
11965 * config/arm/neon.md (neon_mov<mode>): Remove "neon_type" attribute,
11966 use "type" attribute.
11967 (movmisalign<mode>_neon_store): Likewise.
11968 (movmisalign<mode>_neon_load): Likewise.
11969 (vec_set<mode>_internal): Likewise.
11970 (vec_setv2di_internal): Likewise.
11971 (vec_extract<mode>): Likewise.
11972 (vec_extractv2di): Likewise.
11973 (add<mode>3_neon): Likewise.
11974 (adddi3_neon): Likewise.
11975 (sub<mode>3_neon): Likewise.
11976 (subdi3_neon): Likewise.
11977 (mul<mode>3_neon): Likewise.
11978 (mul<mode>3add<mode>_neon): Likewise.
11979 (mul<mode>3neg<mode>add<mode>_neon): Likewise.
11980 (fma<VCVTF:mode>4)): Likewise.
11981 (fma<VCVTF:mode>4_intrinsic): Likewise.
11982 (fmsub<VCVTF:mode>4)): Likewise.
11983 (fmsub<VCVTF:mode>4_intrinsic): Likewise.
11984 (neon_vrint<NEON_VRINT:nvrint_variant><VCVTF:mode>): Likewise.
11985 (ior<mode>3): Likewise.
11986 (and<mode>3): Likewise.
11987 (anddi3_neon): Likewise.
11988 (orn<mode>3_neon): Likewise.
11989 (orndi3_neon): Likewise.
11990 (bic<mode>3_neon): Likewise.
11991 (bicdi3_neon): Likewise.
11992 (xor<mode>3): Likewise.
11993 (one_cmpl<mode>2): Likewise.
11994 (abs<mode>2): Likewise.
11995 (neg<mode>2): Likewise.
11996 (umin<mode>3_neon): Likewise.
11997 (umax<mode>3_neon): Likewise.
11998 (smin<mode>3_neon): Likewise.
11999 (smax<mode>3_neon): Likewise.
12000 (vashl<mode>3): Likewise.
12001 (vashr<mode>3_imm): Likewise.
12002 (vlshr<mode>3_imm): Likewise.
12003 (ashl<mode>3_signed): Likewise.
12004 (ashl<mode>3_unsigned): Likewise.
12005 (neon_load_count): Likewise.
12006 (ashldi3_neon_noclobber): Likewise.
12007 (signed_shift_di3_neon): Likewise.
12008 (unsigned_shift_di3_neon): Likewise.
12009 (ashrdi3_neon_imm_noclobber): Likewise.
12010 (lshrdi3_neon_imm_noclobber): Likewise.
12011 (widen_ssum<mode>3): Likewise.
12012 (widen_usum<mode>3): Likewise.
12013 (quad_halves_<code>v4si): Likewise.
12014 (quad_halves_<code>v4sf): Likewise.
12015 (quad_halves_<code>v8hi): Likewise.
12016 (quad_halves_<code>v16qi): Likewise.
12017 (reduc_splus_v2di): Likewise.
12018 (neon_vpadd_internal<mode>): Likewise.
12019 (neon_vpsmin<mode>): Likewise.
12020 (neon_vpsmax<mode>): Likewise.
12021 (neon_vpumin<mode>): Likewise.
12022 (neon_vpumax<mode>): Likewise.
12023 (ss_add<mode>_neon): Likewise.
12024 (us_add<mode>_neon): Likewise.
12025 (ss_sub<mode>_neon): Likewise.
12026 (us_sub<mode>_neon): Likewise.
12027 (neon_vadd<mode>_unspec): Likewise.
12028 (neon_vaddl<mode>): Likewise.
12029 (neon_vaddw<mode>): Likewise.
12030 (neon_vhadd<mode>): Likewise.
12031 (neon_vqadd<mode>): Likewise.
12032 (neon_vaddhn<mode>): Likewise.
12033 (neon_vmul<mode>): Likewise.
12034 (neon_vmla<mode>): Likewise.
12035 (neon_vmlal<mode>): Likewise.
12036 (neon_vmls<mode>): Likewise.
12037 (neon_vmlsl<mode>): Likewise.
12038 (neon_vqdmulh<mode>): Likewise.
12039 (neon_vqdmlal<mode>): Likewise.
12040 (neon_vqdmlsl<mode>): Likewise.
12041 (neon_vmull<mode>): Likewise.
12042 (neon_vqdmull<mode>): Likewise.
12043 (neon_vsub<mode>_unspec): Likewise.
12044 (neon_vsubl<mode>): Likewise.
12045 (neon_vsubw<mode>): Likewise.
12046 (neon_vqsub<mode>): Likewise.
12047 (neon_vhsub<mode>): Likewise.
12048 (neon_vsubhn<mode>): Likewise.
12049 (neon_vceq<mode>): Likewise.
12050 (neon_vcge<mode>): Likewise.
12051 (neon_vcgeu<mode>): Likewise.
12052 (neon_vcgt<mode>): Likewise.
12053 (neon_vcgtu<mode>): Likewise.
12054 (neon_vcle<mode>): Likewise.
12055 (neon_vclt<mode>): Likewise.
12056 (neon_vcage<mode>): Likewise.
12057 (neon_vcagt<mode>): Likewise.
12058 (neon_vtst<mode>): Likewise.
12059 (neon_vabd<mode>): Likewise.
12060 (neon_vabdl<mode>): Likewise.
12061 (neon_vaba<mode>): Likewise.
12062 (neon_vabal<mode>): Likewise.
12063 (neon_vmax<mode>): Likewise.
12064 (neon_vmin<mode>): Likewise.
12065 (neon_vpaddl<mode>): Likewise.
12066 (neon_vpadal<mode>): Likewise.
12067 (neon_vpmax<mode>): Likewise.
12068 (neon_vpmin<mode>): Likewise.
12069 (neon_vrecps<mode>): Likewise.
12070 (neon_vrsqrts<mode>): Likewise.
12071 (neon_vqabs<mode>): Likewise.
12072 (neon_vqneg<mode>): Likewise.
12073 (neon_vcls<mode>): Likewise.
12074 (clz<mode>2): Likewise.
12075 (popcount<mode>2): Likewise.
12076 (neon_vrecpe): Likewise.
12077 (neon_vrsqrte): Likewise.
12078 (neon_vget_lane<mode>_sext_internal): Likewise.
12079 (neon_vget_lane<mode>_zext_internal): Likewise.
12080 (neon_vdup_n<mode>): Likewise.
12081 (neon_vdup_nv2di): Likewise.
12082 (neon_vdpu_lane<mode>_internal): Likewise.
12083 (neon_vswp<mode>): Likewise.
12084 (float<mode><V_cvtto>2): Likewise.
12085 (floatuns<mode><V_cvtto>2): Likewise.
12086 (fix_trunc<mode><V_cvtto>)2): Likewise
12087 (fixuns_trunc<mode><V_cvtto)2): Likewise.
12088 (neon_vcvt<mode>): Likewise.
12089 (neon_vcvtv4sfv4hf): Likewise.
12090 (neon_vcvtv4hfv4sf): Likewise.
12091 (neon_vcvt_n<mode>): Likewise.
12092 (neon_vmovn<mode>): Likewise.
12093 (neon_vqmovn<mode>): Likewise.
12094 (neon_vqmovun<mode>): Likewise.
12095 (neon_vmovl<mode>): Likewise.
12096 (neon_vmul_lane<mode>): Likewise.
12097 (neon_vmull_lane<mode>): Likewise.
12098 (neon_vqdmull_lane<mode>): Likewise.
12099 (neon_vqdmulh_lane<mode>): Likewise.
12100 (neon_vmla_lane<mode>): Likewise.
12101 (neon_vmlal_lane<mode>): Likewise.
12102 (neon_vqdmlal_lane<mode>): Likewise.
12103 (neon_vmls_lane<mode>): Likewise.
12104 (neon_vmlsl_lane<mode>): Likewise.
12105 (neon_vqdmlsl_lane<mode>): Likewise.
12106 (neon_vext<mode>): Likewise.
12107 (neon_vrev64<mode>): Likewise.
12108 (neon_vrev32<mode>): Likewise.
12109 (neon_vrev16<mode>): Likewise.
12110 (neon_vbsl<mode>_internal): Likewise.
12111 (neon_vshl<mode>): Likewise.
12112 (neon_vqshl<mode>): Likewise.
12113 (neon_vshr_n<mode>): Likewise.
12114 (neon_vshrn_n<mode>): Likewise.
12115 (neon_vqshrn_n<mode>): Likewise.
12116 (neon_vqshrun_n<mode>): Likewise.
12117 (neon_vshl_n<mode>): Likewise.
12118 (neon_vqshl_n<mode>): Likewise.
12119 (neon_vqshlu_n<mode>): Likewise.
12120 (neon_vshll_n<mode>): Likewise.
12121 (neon_vsra_n<mode>): Likewise.
12122 (neon_vsri_n<mode>): Likewise.
12123 (neon_vsli_n<mode>): Likewise.
12124 (neon_vtbl1v8qi): Likewise.
12125 (neon_vtbl2v8qi): Likewise.
12126 (neon_vtbl3v8qi): Likewise.
12127 (neon_vtbl4v8qi): Likewise.
12128 (neon_vtbx1v8qi): Likewise.
12129 (neon_vtbx2v8qi): Likewise.
12130 (neon_vtbx3v8qi): Likewise.
12131 (neon_vtbx4v8qi): Likewise.
12132 (neon_vtrn<mode>_internal): Likewise.
12133 (neon_vzip<mode>_internal): Likewise.
12134 (neon_vuzp<mode>_internal): Likewise.
12135 (neon_vld1<mode>): Likewise.
12136 (neon_vld1_lane<mode>): Likewise.
12137 (neon_vld1_dup<mode>): Likewise.
12138 (neon_vld1_dupv2di): Likewise.
12139 (neon_vst1<mode>): Likewise.
12140 (neon_vst1_lane<mode>): Likewise.
12141 (neon_vld2<mode>): Likewise.
12142 (neon_vld2_lane<mode>): Likewise.
12143 (neon_vld2_dup<mode>): Likewise.
12144 (neon_vst2<mode>): Likewise.
12145 (neon_vst2_lane<mode>): Likewise.
12146 (neon_vld3<mode>): Likewise.
12147 (neon_vld3qa<mode>): Likewise.
12148 (neon_vld3qb<mode>): Likewise.
12149 (neon_vld3_lane<mode>): Likewise.
12150 (neon_vld3_dup<mode>): Likewise.
12151 (neon_vst3<mode>): Likewise.
12152 (neon_vst3qa<mode>): Likewise.
12153 (neon_vst3qb<mode>): Likewise.
12154 (neon_vst3_lane<mode>): Likewise.
12155 (neon_vld4<mode>): Likewise.
12156 (neon_vld4qa<mode>): Likewise.
12157 (neon_vld4qb<mode>): Likewise.
12158 (neon_vld4_lane<mode>): Likewise.
12159 (neon_vld4_dup<mode>): Likewise.
12160 (neon_vst4<mode>): Likewise.
12161 (neon_vst4qa<mode>): Likewise.
12162 (neon_vst4qb<mode>): Likewise.
12163 (neon_vst4_lane<mode>): Likewise.
12164 (neon_vec_unpack<US>_lo_<mode>): Likewise.
12165 (neon_vec_unpack<US>_hi_<mode>): Likewise.
12166 (neon_vec_<US>mult_lo_<mode>): Likewise.
12167 (neon_vec_<US>mult_hi_<mode>): Likewise.
12168 (neon_vec_<US>shiftl_<mode>): Likewise.
12169 (neon_unpack<US>_<mode>): Likewise.
12170 (neon_vec_<US>mult_<mode>): Likewise.
12171 (vec_pack_trunc_<mode>): Likewise.
12172 (neon_vec_pack_trunk_<mode>): Likewise.
12173 (neon_vabd<mode>_2): Likewise.
12174 (neon_vabd<mode>_3): Likewise.
12175 * config/arm/vfp.md (arm_movsi_vfp): Update for attribute changes.
12176 (thumb2_movsi_vfp): Likewise.
12177 (movdi_vfp): Likewise.
12178 (movdi_vfp_cortexa8): Likewise.
12179 (movhf_vfp_neon): Likewise.
12180 (movhf_vfp): Likewiwse.
12181 (movsf_vfp): Likewiwse.
12182 (thumb2_movsf_vfp): Likewiwse.
12183 (movdf_vfp): Likewise.
12184 (thumb2_movdf_vfp): Likewise.
12185 (movsfcc_vfp): Likewise.
12186 (thumb2_movsfcc_vfp): Likewise.
12187 (movdfcc_vfp): Likewise.
12188 (thumb2_movdfcc_vfp): Likewise.
12189 * config/arm/arm.c (cortexa7_older_only): Update for attribute change.
12190 * config/arm/arm1020e.md (v10_c2v): Update for attribute change.
12191 (v10_v2c): Likewise.
12192 * config/arm/cortex-a15-neon.md (cortex_a15_neon_int_1): Update for
12194 (cortex_a15_neon_int_2): Likewise.
12195 (cortex_a15_neon_int_3): Likewise.
12196 (cortex_a15_neon_int_4): Likewise.
12197 (cortex_a15_neon_int_5): Likewise.
12198 (cortex_a15_neon_vqneg_vqabs): Likewise.
12199 (cortex_a15_neon_vmov): Likewise.
12200 (cortex_a15_neon_vaba): Likewise.
12201 (cortex_a15_neon_vaba_qqq): Likewise.
12202 (cortex_a15_neon_mul_ddd_8_16_qdd_16_8_long_32_16_long): Likewise.
12203 (cortex_a15_neon_mul_qqq_8_16_32_ddd_32): Likewise.
12204 (cortex_a15_neon_mul_qdd_64_32_long_qqd_16_ddd_32_\
12205 scalar_64_32_long_scalar): Likewise.
12206 (cortex_a15_neon_mla_ddd_8_16_qdd_16_8_long_32_16_long): Likewise.
12207 (cortex_a15_neon_mla_qqq_8_16): Likewise.
12208 (cortex_a15_neon_mla_ddd_32_qqd_16_ddd_32_scalar_qdd_64_32_\
12209 lotype_qdd_64_32_long): Likewise.
12210 (cortex_a15_neon_mla_qqq_32_qqd_32_scalar): Likewise.
12211 (cortex_a15_neon_mul_ddd_16_scalar_32_16_long_scalar): Likewise.
12212 (cortex_a15_neon_mul_qqd_32_scalar): Likewise.
12213 (cortex_a15_neon_mla_ddd_16_scalar_qdd_32_16_long_scalar): Likewise.
12214 (cortex_a15_neon_shift_1): Likewise.
12215 (cortex_a15_neon_shift_2): Likewise.
12216 (cortex_a15_neon_shift_3): Likewise.
12217 (cortex_a15_neon_vshl_ddd): Likewise.
12218 (cortex_a15_neon_vqshl_vrshl_vqrshl_qqq): Likewise.
12219 (cortex_a15_neon_vsra_vrsra): Likewise.
12220 (cortex_a15_neon_fp_vadd_ddd_vabs_dd): Likewise.
12221 (cortex_a15_neon_fp_vadd_qqq_vabs_qq): Likewise.
12222 (cortex_a15_neon_fp_vmul_ddd): Likewise.
12223 (cortex_a15_neon_fp_vmul_qqd): Likewise.
12224 (cortex_a15_neon_fp_vmla_ddd): Likewise.
12225 (cortex_a15_neon_fp_vmla_qqq): Likewise.
12226 (cortex_a15_neon_fp_vmla_ddd_scalar): Likewise.
12227 (cortex_a15_neon_fp_vmla_qqq_scalar): Likewise.
12228 (cortex_a15_neon_fp_vrecps_vrsqrts_ddd): Likewise.
12229 (cortex_a15_neon_fp_vrecps_vrsqrts_qqq): Likewise.
12230 (cortex_a15_neon_bp_simple): Likewise.
12231 (cortex_a15_neon_bp_2cycle): Likewise.
12232 (cortex_a15_neon_bp_3cycle): Likewise.
12233 (cortex_a15_neon_vld1_1_2_regs): Likewise.
12234 (cortex_a15_neon_vld1_3_4_regs): Likewise.
12235 (cortex_a15_neon_vld2_2_regs_vld1_vld2_all_lanes): Likewise.
12236 (cortex_a15_neon_vld2_4_regs): Likewise.
12237 (cortex_a15_neon_vld3_vld4): Likewise.
12238 (cortex_a15_neon_vst1_1_2_regs_vst2_2_regs): Likewise.
12239 (cortex_a15_neon_vst1_3_4_regs): Likewise.
12240 (cortex_a15_neon_vst2_4_regs_vst3_vst4): Likewise.
12241 (cortex_a15_neon_vst3_vst4): Likewise.
12242 (cortex_a15_neon_vld1_vld2_lane): Likewise.
12243 (cortex_a15_neon_vld3_vld4_lane" 10
12244 (cortex_a15_neon_vst1_vst2_lane): Likewise.
12245 (cortex_a15_neon_vst3_vst4_lane): Likewise.
12246 (cortex_a15_neon_vld3_vld4_all_lanes): Likewise.
12247 (cortex_a15_neon_ldm_2): Likewise.0
12248 (cortex_a15_neon_stm_2): Likewise.
12249 (cortex_a15_neon_mcr): Likewise.
12250 (cortex_a15_neon_mcr_2_mcrr): Likewise.
12251 (cortex_a15_neon_mrc): Likewise.
12252 (cortex_a15_neon_mrrc): Likewise.
12253 * config/arm/cortex-a15.md (cortex_a15_alu): Update for attribute
12255 (cortex_a15_alu_shift): Likewise.
12256 (cortex_a15_alu_shift_reg): Likewise.
12257 (cortex_a15_mult32): Likewise.
12258 (cortex_a15_mult64): Likewise.
12259 (cortex_a15_block): Likewise.
12260 (cortex_a15_branch): Likewise.
12261 (cortex_a15_load1): Likewise.
12262 (cortex_a15_load3): Likewise.
12263 (cortex_a15_store1): Likewise.
12264 (cortex_a15_store3): Likewise.
12265 (cortex_a15_call): Likewise.
12266 * config/arm/cortex-a5.md (cortex_a5_r2f): Update for attribute change.
12267 (cortex_a5_f2r): Likewise.
12268 * config/arm/cortex-a53.md (cortex_a53_r2f): Update for attribute
12270 (cortex_a53_f2r): Likewise.
12271 * config/arm/cortex-a7.md
12272 (cortex_a7_branch): Update for attribute change.
12273 (cortex_a7_call): Likewise.
12274 (cortex_a7_alu_imm): Likewise.
12275 (cortex_a7_alu_reg): Likewise.
12276 (cortex_a7_alu_shift): Likewise.
12277 (cortex_a7_mul): Likewise.
12278 (cortex_a7_load1): Likewise.
12279 (cortex_a7_store1): Likewise.
12280 (cortex_a7_load2): Likewise.
12281 (cortex_a7_store2): Likewise.
12282 (cortex_a7_load3): Likewise.
12283 (cortex_a7_store3): Likewise.
12284 (cortex_a7_load4): Likewise.
12285 (cortex_a7_store4): Likewise.
12286 (cortex_a7_fpalu): Likewise.
12287 (cortex_a7_fconst): Likewise.
12288 (cortex_a7_fpmuls): Likewise.
12289 (cortex_a7_neon_mul): Likewise.
12290 (cortex_a7_fpmacs): Likewise.
12291 (cortex_a7_neon_mla: Likewise.
12292 (cortex_a7_fpmuld: Likewise.
12293 (cortex_a7_fpmacd: Likewise.
12294 (cortex_a7_fpfmad: Likewise.
12295 (cortex_a7_fdivs: Likewise.
12296 (cortex_a7_fdivd: Likewise.
12297 (cortex_a7_r2f: Likewise.
12298 (cortex_a7_f2r: Likewise.
12299 (cortex_a7_f_flags: Likewise.
12300 (cortex_a7_f_loads: Likewise.
12301 (cortex_a7_f_loadd: Likewise.
12302 (cortex_a7_f_stores: Likewise.
12303 (cortex_a7_f_stored: Likewise.
12304 (cortex_a7_neon): Likewise.
12305 * config/arm/cortex-a8-neon.md
12306 (cortex_a8_neon_mrc): Update for attribute change.
12307 (cortex_a8_neon_mrrc): Likewise.
12308 (cortex_a8_neon_int_1): Likewise.
12309 (cortex_a8_neon_int_2): Likewise.
12310 (cortex_a8_neon_int_3): Likewise.
12311 (cortex_a8_neon_int_4): Likewise.
12312 (cortex_a8_neon_int_5): Likewise.
12313 (cortex_a8_neon_vqneg_vqabs): Likewise.
12314 (cortex_a8_neon_vmov): Likewise.
12315 (cortex_a8_neon_vaba): Likewise.
12316 (cortex_a8_neon_vaba_qqq): Likewise.
12317 (cortex_a8_neon_vsma): Likewise.
12318 (cortex_a8_neon_mul_ddd_8_16_qdd_16_8_long_32_16_long): Likewise.
12319 (cortex_a8_neon_mul_qqq_8_16_32_ddd_32): Likewise.
12320 (cortex_a8_neon_mul_qdd_64_32_long_qqd_16_ddd_32_scalar_64_32_\
12321 long_scalar): Likewise.
12322 (cortex_a8_neon_mla_ddd_8_16_qdd_16_8_long_32_16_long): Likewise.
12323 (cortex_a8_neon_mla_qqq_8_16): Likewise.
12324 (cortex_a8_neon_mla_ddd_32_qqd_16_ddd_32_scalar_qdd_64_32_\
12325 long_scalar_qdd_64_32_long): Likewise.
12326 (cortex_a8_neon_mla_qqq_32_qqd_32_scalar): Likewise.
12327 (cortex_a8_neon_mul_ddd_16_scalar_32_16_long_scalar): Likewise.
12328 (cortex_a8_neon_mul_qqd_32_scalar): Likewise.
12329 (cortex_a8_neon_mla_ddd_16_scalar_qdd_32_16_long_scalar): Likewise.
12330 (cortex_a8_neon_shift_1): Likewise.
12331 (cortex_a8_neon_shift_2): Likewise.
12332 (cortex_a8_neon_shift_3): Likewise.
12333 (cortex_a8_neon_vshl_ddd): Likewise.
12334 (cortex_a8_neon_vqshl_vrshl_vqrshl_qqq): Likewise.
12335 (cortex_a8_neon_vsra_vrsra): Likewise.
12336 (cortex_a8_neon_fp_vadd_ddd_vabs_dd): Likewise.
12337 (cortex_a8_neon_fp_vadd_qqq_vabs_qq): Likewise.
12338 (cortex_a8_neon_fp_vsum): Likewise.
12339 (cortex_a8_neon_fp_vmul_ddd): Likewise.
12340 (cortex_a8_neon_fp_vmul_qqd): Likewise.
12341 (cortex_a8_neon_fp_vmla_ddd): Likewise.
12342 (cortex_a8_neon_fp_vmla_qqq): Likewise.
12343 (cortex_a8_neon_fp_vmla_ddd_scalar): Likewise.
12344 (cortex_a8_neon_fp_vmla_qqq_scalar): Likewise.
12345 (cortex_a8_neon_fp_vrecps_vrsqrts_ddd): Likewise.
12346 (cortex_a8_neon_fp_vrecps_vrsqrts_qqq): Likewise.
12347 (cortex_a8_neon_bp_simple): Likewise.
12348 (cortex_a8_neon_bp_2cycle): Likewise.
12349 (cortex_a8_neon_bp_3cycle): Likewise.
12350 (cortex_a8_neon_ldr): Likewise.
12351 (cortex_a8_neon_str): Likewise.
12352 (cortex_a8_neon_vld1_1_2_regs): Likewise.
12353 (cortex_a8_neon_vld1_3_4_regs): Likewise.
12354 (cortex_a8_neon_vld2_2_regs_vld1_vld2_all_lanes): Likewise.
12355 (cortex_a8_neon_vld2_4_regs): Likewise.
12356 (cortex_a8_neon_vld3_vld4): Likewise.
12357 (cortex_a8_neon_vst1_1_2_regs_vst2_2_regs): Likewise.
12358 (cortex_a8_neon_vst1_3_4_regs): Likewise.
12359 (cortex_a8_neon_vst2_4_regs_vst3_vst4): Likewise.
12360 (cortex_a8_neon_vst3_vst4): Likewise.
12361 (cortex_a8_neon_vld1_vld2_lane): Likewise.
12362 (cortex_a8_neon_vld3_vld4_lane): Likewise.
12363 (cortex_a8_neon_vst1_vst2_lane): Likewise.
12364 (cortex_a8_neon_vst3_vst4_lane): Likewise.
12365 (cortex_a8_neon_vld3_vld4_all_lanes): Likewise.
12366 (cortex_a8_neon_mcr): Likewise.
12367 (cortex_a8_neon_mcr_2_mcrr): Likewise.
12368 * config/arm/cortex-a8.md (cortex_a8_alu): Update for attribute change.
12369 * config/arm/cortex-a9-neon.md (ca9_neon_mrc): Update for attribute
12371 (ca9_neon_mrrc): Likewise.
12372 (cortex_a9_neon_int_1): Likewise.
12373 (cortex_a9_neon_int_2): Likewise.
12374 (cortex_a9_neon_int_3): Likewise.
12375 (cortex_a9_neon_int_4): Likewise.
12376 (cortex_a9_neon_int_5): Likewise.
12377 (cortex_a9_neon_vqneg_vqabs): Likewise.
12378 (cortex_a9_neon_vmov): Likewise.
12379 (cortex_a9_neon_vaba): Likewise.
12380 (cortex_a9_neon_vaba_qqq): Likewise.
12381 (cortex_a9_neon_vsma): Likewise.
12382 (cortex_a9_neon_mul_ddd_8_16_qdd_16_8_long_32_16_long): Likewise.
12383 (cortex_a9_neon_mul_qqq_8_16_32_ddd_32): Likewise.
12384 (cortex_a9_neon_mul_qdd_64_32_long_qqd_16_ddd_32_scalar_64_32_\
12385 long_scalar): Likewise.
12386 (cortex_a9_neon_mla_ddd_8_16_qdd_16_8_long_32_16_long): Likewise.
12387 (cortex_a9_neon_mla_qqq_8_16): Likewise.
12388 (cortex_a9_neon_mla_ddd_32_qqd_16_ddd_32_scalar_qdd_64_32_\
12389 long_scalar_qdd_64_32_long): Likewise.
12390 (cortex_a9_neon_mla_qqq_32_qqd_32_scalar): Likewise.
12391 (cortex_a9_neon_mul_ddd_16_scalar_32_16_long_scalar): Likewise.
12392 (cortex_a9_neon_mul_qqd_32_scalar): Likewise.
12393 (cortex_a9_neon_mla_ddd_16_scalar_qdd_32_16_long_scalar): Likewise.
12394 (cortex_a9_neon_shift_1): Likewise.
12395 (cortex_a9_neon_shift_2): Likewise.
12396 (cortex_a9_neon_shift_3): Likewise.
12397 (cortex_a9_neon_vshl_ddd): Likewise.
12398 (cortex_a9_neon_vqshl_vrshl_vqrshl_qqq): Likewise.
12399 (cortex_a9_neon_vsra_vrsra): Likewise.
12400 (cortex_a9_neon_fp_vadd_ddd_vabs_dd): Likewise.
12401 (cortex_a9_neon_fp_vadd_qqq_vabs_qq): Likewise.
12402 (cortex_a9_neon_fp_vsum): Likewise.
12403 (cortex_a9_neon_fp_vmul_ddd): Likewise.
12404 (cortex_a9_neon_fp_vmul_qqd): Likewise.
12405 (cortex_a9_neon_fp_vmla_ddd): Likewise.
12406 (cortex_a9_neon_fp_vmla_qqq): Likewise.
12407 (cortex_a9_neon_fp_vmla_ddd_scalar): Likewise.
12408 (cortex_a9_neon_fp_vmla_qqq_scalar): Likewise.
12409 (cortex_a9_neon_fp_vrecps_vrsqrts_ddd): Likewise.
12410 (cortex_a9_neon_fp_vrecps_vrsqrts_qqq): Likewise.
12411 (cortex_a9_neon_bp_simple): Likewise.
12412 (cortex_a9_neon_bp_2cycle): Likewise.
12413 (cortex_a9_neon_bp_3cycle): Likewise.
12414 (cortex_a9_neon_ldr): Likewise.
12415 (cortex_a9_neon_str): Likewise.
12416 (cortex_a9_neon_vld1_1_2_regs): Likewise.
12417 (cortex_a9_neon_vld1_3_4_regs): Likewise.
12418 (cortex_a9_neon_vld2_2_regs_vld1_vld2_all_lanes): Likewise.
12419 (cortex_a9_neon_vld2_4_regs): Likewise.
12420 (cortex_a9_neon_vld3_vld4): Likewise.
12421 (cortex_a9_neon_vst1_1_2_regs_vst2_2_regs): Likewise.
12422 (cortex_a9_neon_vst1_3_4_regs): Likewise.
12423 (cortex_a9_neon_vst2_4_regs_vst3_vst4): Likewise.
12424 (cortex_a9_neon_vst3_vst4): Likewise.
12425 (cortex_a9_neon_vld1_vld2_lane): Likewise.
12426 (cortex_a9_neon_vld3_vld4_lane): Likewise.
12427 (cortex_a9_neon_vst1_vst2_lane): Likewise.
12428 (cortex_a9_neon_vst3_vst4_lane): Likewise.
12429 (cortex_a9_neon_vld3_vld4_all_lanes): Likewise.
12430 (cortex_a9_neon_mcr): Likewise.
12431 (cortex_a9_neon_mcr_2_mcrr): Likewise.
12432 * config/arm/cortex-a9.md (cortex_a9_dp): Update for attribute change.
12433 (cortex_a9_fps): Likewise.
12434 * config/arm/cortex-m4-fpu.md (cortex_m4_vmov_2): Update for attribute
12436 (cortex_m4_fmuls): Likewise.
12437 * config/arm/cortex-r4f.md (cortex_r4_mcr): Update for attribute
12439 (cortex_r4_mrc): Likewise.
12440 * config/arm/iterators.md: Update comment referring to neon_type.
12441 * config/arm/iwmmxt.md (iwmmxt_arm_movdi): Update for attribute change.
12442 (iwmmxt_movsi_insn): Likewise.
12443 * config/arm/marvell-pj4.md (pj4_vfp_to_core): Update for
12445 (pj4_core_to_vfp): Likewise.
12446 * config/arm/neon-schedgen.ml (emit_insn_reservations): Update for
12448 * config/arm/vfp11.md (vfp_fload): Update for attribute change.
12449 (vfp_fstore): Likewise.
12450 * doc/md.texi: Change references to neon_type to refer to type.
12452 2013-09-04 Dodji Seketeli <dodji@redhat.com>
12454 * tree.h (DECL_BUILT_IN): Fix typo in comment.
12456 2013-09-04 David Edelsohn <dje.gcc@gmail.com>
12458 * config/rs6000/rs6000.h (ASM_OUTPUT_DEF_FROM_DECLS): Only emit
12459 lglobl if not weak.
12461 2013-09-04 Easwaran Raman <eraman@google.com>
12463 PR middle-end/57370
12464 * tree-ssa-reassoc.c (get_stmt_uid_with_default): New function,
12465 (build_and_add_sum): Use it.
12466 (appears_later_in_bb): Simplify code.
12468 2013-09-04 Teresa Johnson <tejohnson@google.com>
12470 * dumpfile.c (dump_finish): Don't close stderr/stdout.
12472 2013-09-04 James Greenhalgh <james.greenhalgh@arm.com>
12474 * config/aarch64/arm_neon.h (vaddvq_<su>64): Fix return types.
12476 2013-09-04 Jan Hubicka <jh@suse.cz>
12478 * Makefile.in (ipa-devirt.o): Add dependency on diagnostic.h
12479 * ipa-devirt.c: Include diganostic.h
12480 (odr_type_d): Add types and types_set.
12481 (hash_type_name): Work for types with vtables during LTO.
12482 (odr_hasher::remove): Fix comment; destroy types_set.
12483 (add_type_duplicate): New function,
12484 (get_odr_type): Use it.
12485 (dump_type_inheritance_graph): Dump type duplicates.
12486 * ipa.c (symtab_remove_unreachable_nodes): Build type inheritance
12488 * tree.c (types_same_for_odr): Give exact answers on types with
12491 2013-09-04 Dodji Seketeli <dodji@redhat.com>
12493 * tree.h (DECL_BUILT_IN, DECL_IS_BUILTIN): Add more comments
12494 explaining their differences.
12496 2013-09-04 Sandeep Kumar Singh<Sandeep.Singh2@kpitcummins.com>
12498 * config/rx/rx.h: Add option -mcpu for target variants RX100 and RX200.
12500 2013-09-03 Jeff Law <law@redhat.com>
12502 * tree-ssa-threadedge.c (thread_across_edge): Record entire path
12503 when not threading through a joiner block. Pass joiner/no joiner
12504 state to register_jump_thread.
12505 * tree-ssa-threadupdate.c (register_jump_thread): Get joiner/no joiner
12506 state from argument rather than implying on path length.
12507 Dump the entire jump thread path into debugging dump.
12508 * tree-flow.h (register_jump_thread): Update prototype.
12510 2013-08-29 Xinliang David Li <davidxl@google.com>
12512 * tree-vect-data-refs.c (vect_compute_data_ref_alignment):
12513 Remove a trivial gcc_assert.
12515 2013-08-29 Xinliang David Li <davidxl@google.com>
12517 * tree-vect-slp.c (destroy_bb_vec_info): Data ref cleanup.
12518 * tree-vect-loop.c (destroy_bb_vec_info): Ditto.
12519 * tree-vect-data-refs.c (vect_compute_data_ref_alignment):
12520 Delay base decl alignment adjustment.
12521 * tree-vectorizer.c (vect_destroy_datarefs): New function.
12522 * tree-vectorizer.h: New data structure.
12523 (set_dr_misalignment): New function.
12524 (dr_misalignment): Ditto.
12525 * tree-vect-stmts.c (vectorizable_store): Ensure alignment.
12526 (vectorizable_load): Ditto.
12527 (ensure_base_align): New function.
12528 (vectorize_loops): Add dbg_cnt support.
12529 (execute_vect_slp): Ditto.
12530 * dbgcnt.def: New debug counter.
12531 * Makefile: New dependency.
12533 2013-09-03 Meador Inge <meadori@codesourcery.com>
12537 2013-08-30 Meador Inge <meadori@codesourcery.com>
12539 * tree-vrp.c (check_array_ref): Bail out on zero-length arrays.
12541 2013-09-03 David Edelsohn <dje.gcc@gmail.com>
12543 * config/rs6000/rs6000.h (ASM_OUTPUT_DEF_FROM_DECLS): Emit lglobl for
12544 function descriptor.
12546 2013-09-03 Richard Biener <rguenther@suse.de>
12548 * tree-affine.c (add_elt_to_tree): Fix association issue,
12549 avoid useless converts and make sure to always return a
12550 properly typed result.
12552 2013-09-03 Richard Biener <rguenther@suse.de>
12554 PR middle-end/57656
12555 * fold-const.c (negate_expr_p): Fix division case.
12556 (negate_expr): Likewise.
12558 2013-09-03 Richard Biener <rguenther@suse.de>
12561 * tree-streamer-out.c: Include tm.h.
12562 * Makefile.in (tree-streamer-out.o): Depend on $(TM_H).
12564 2013-09-03 Jan Hubicka <jh@suse.cz>
12566 * tree-profile.c (tree_profiling): Cleanup CFG when done.
12568 2013-09-03 Alan Modra <amodra@gmail.com>
12570 * config.gcc (powerpc*-*-linux*): Add support for little-endian
12571 multilibs to big-endian target and vice versa.
12572 * config/rs6000/t-linux64: Use := assignment on all vars.
12573 (MULTILIB_EXTRA_OPTS): Remove fPIC.
12574 (MULTILIB_OSDIRNAMES): Specify using mapping from multilib_options.
12575 * config/rs6000/t-linux64le: New file.
12576 * config/rs6000/t-linux64bele: New file.
12577 * config/rs6000/t-linux64lebe: New file.
12579 2013-09-02 Jan Hubicka <jh@suse.cz>
12581 * ipa-inline-transform.c (inline_transform): Do not
12582 optimize_inline_calls when not optimizing.
12584 2013-09-02 Jan Hubicka <jh@suse.cz>
12586 * lto-symtab.c (lto_symtab_merge_symbols): Add comments; merge
12587 duplicated nodes for assembler names.
12588 * symtab.c (symtab_unregister_node): Do not attempt to unlink
12589 hard registers from assembler name hash.
12591 2013-09-02 Jan Hubicka <jh@suse.cz>
12593 * ipa-split.c (execute_split_functions): Split externally visible
12594 functions called once.
12596 2013-09-02 Martin Jambor <mjambor@suse.cz>
12599 * ipa-prop.c (ipa_edge_duplication_hook): Always put new rdesc to the
12600 linked list. When finding the correct duplicate, also consider also
12601 the caller in additon to its inlined_to node.
12603 2013-09-02 James Greenhalgh <james.greenhalgh@arm.com>
12605 * config/aarch64/aarch64-simd-builtins.def
12606 (dup_lane_scalar): Remove.
12607 * config/aarch64/aarch64-simd.md
12608 (aarch64_simd_dup): Add 'w->w' alternative.
12609 (aarch64_dup_lane<mode>): Allow for VALL.
12610 (aarch64_dup_lane_scalar<mode>): Remove.
12611 (aarch64_dup_lane_<vswap_width_name><mode>): New.
12612 (aarch64_get_lane_signed<mode>): Add w->w altenative.
12613 (aarch64_get_lane_unsigned<mode>): Likewise.
12614 (aarch64_get_lane<mode>): Likewise.
12615 * config/aarch64/aarch64.c (aarch64_evpc_dup): New.
12616 (aarch64_expand_vec_perm_const_1): Use aarch64_evpc_dup.
12617 * config/aarch64/iterators.md (VSWAP_WIDTH): New.
12618 (VCON): Change container of V2SF.
12619 (vswap_width_name): Likewise.
12620 * config/aarch64/arm_neon.h
12621 (__aarch64_vdup_lane_any): New.
12622 (__aarch64_vdup<q>_lane<q>_<fpsu><8,16,32,64>): Likewise.
12623 (vdup<q>_n_<psuf><8,16,32,64>): Convert to C implementation.
12624 (vdup<q>_lane<q>_<fpsu><8,16,32,64>): Likewise.
12626 2013-09-02 Eric Botcazou <ebotcazou@adacore.com>
12628 PR middle-end/56382
12629 * expr.c (emit_move_complex): Do not move complex FP values as parts if
12630 the source or the destination is a single hard register.
12632 2013-09-02 Richard Biener <rguenther@suse.de>
12634 PR middle-end/57511
12635 * tree-scalar-evolution.c (instantiate_scev_name): Allow
12638 2013-09-02 Richard Biener <rguenther@suse.de>
12640 * tree-affine.c (add_elt_to_tree): Avoid converting all pointer
12641 arithmetic to sizetype.
12643 2013-09-02 Bin Cheng <bin.cheng@arm.com>
12645 * tree-ssa-loop-ivopts.c (set_autoinc_for_original_candidates):
12646 Find auto-increment use both before and after candidate.
12648 2013-09-02 Marek Polacek <polacek@redhat.com>
12650 * Makefile.in (ubsan.o): Add $(TM_P_H) dependency.
12652 2013-09-01 Jan Hubicka <jh@suse.cz>
12654 * Makefile.in: Add ipa-profile.o
12655 (ipa.o, ipa-devrit.o, ipa-inline-analysis.o): Adjust dependencies.
12656 * cgraph.c (struct cgraph_propagate_frequency_data,
12657 cgraph_propagate_frequency_1, cgraph_propagate_frequency): Move to
12658 ipa-profile.c; replace cgraph_ by ipa_ prefix.
12659 * cgraph.h (cgraph_propagate_frequency): Remove.
12660 * ipa-inline-analysis.c: Include ipa-utils.h;
12661 drop duplicated cfgloop.h.
12662 (inline_update_callee_summaries): Update.
12663 * ipa-profile.c: New file.
12664 * ipa-utils.h (ipa_propagate_frequency): Declare.
12665 * ipa.c: Do not include pointer-set.h, hash-table.h, lto-streamer.h,
12666 data-streamer.h, value-prof.h.
12667 (symtab_remove_unreachable_nodes): Update profile.
12668 (struct histogram_entry, histogram, histogram_pool, histogram_hash,
12669 account_time_size, cmp_counts, dump_histogram,
12670 ipa_profile_generate_summary, ipa_profile_write_summary,
12671 ipa_profile_read_summary, ipa_profile, gate_ipa_profile,
12672 pass_data_ipa_profile, pass_ipa_profile, make_pass_ipa_profile):
12673 Move to ipa-profile.c.
12675 2013-09-01 John David Anglin <danglin@gcc.gnu.org>
12677 * config/pa/pa.md: Allow "const 0" operand 1 in "scc" insns.
12679 2013-09-01 Jan Hubicka <jh@suse.cz>
12681 * common.opt (fdevirtualize-speculatively): New function.
12682 * invoke.texi (fdevirtualize-speculatively): Document.
12683 * ipa-devirt.c: Include ipa-inline.h
12684 (likely_target_p): New function.
12685 (ipa_devirt): New function.
12686 (gate_ipa_devirt): New function.
12687 (pass_data_ipa_devirt): New static var.
12688 (pass_ipa_devirt): Likewise.
12689 (make_pass_ipa_devirt): New function.
12690 * opts.c (default_options): Add OPT_fdevirtualize_speculatively.
12691 (common_handle_option): Disable devirtualization when
12692 value range profiling is available.
12693 * passes.def (pass_ipa_devirt): Add.
12694 * timever.def (TV_IPA_DEVIRT): New timevar.
12695 * tree-pass.h (make_pass_ipa_devirt):
12697 2013-09-01 Iain Sandoe <iain@codesourcery.com>
12699 * config/darwin.h (LINK_COMMAND_SPEC_A): Revise sanitizer specs to
12700 include sanitize(undefined).
12702 2013-08-31 Diego Novillo <dnovillo@google.com>
12704 * Makefile.in (TREE_CORE_H): Define.
12706 (GTFILES): Add tree-core.h.
12707 * builtins.c (built_in_class_names): Use BUILT_IN_LAST to
12709 * tree-core.h: New file.
12710 Move all data structures, enum, typedefs, global
12711 declarations and constants from ...
12712 * tree.h: ... here.
12714 2013-08-31 Jan Hubicka <jh@suse.cz>
12716 * bulitins.c (expand_builtin): Do not early exit for gcov
12717 instrumented functions.
12719 2013-08-31 Marek Polacek <polacek@redhat.com>
12721 * ubsan.c: Include tm_p.h.
12723 2013-08-31 Jan Hubicka <jh@suse.cz>
12725 * gimple-streamer-in.c (input_gimple_stmt): Silence parameter unused
12728 * cgraph.c (cgraph_get_body): Update call of lto_input_function_body.
12729 * gimple-streamer-in.c (input_gimple_stmt): Move sanity check to ...
12730 * tree-cfg.c (verify_gimple_label): ... here.
12731 * ipa-utils.c: Include lto-streamer.h, ipa-inline.h
12732 (ipa_merge_profiles): New function.
12733 * lto-streamer-in.c (lto_read_body): Take node instead of fn_decl.
12734 (lto_input_function_body): Likewise.
12735 * ipa-utils.h (ipa_merge_profiles): Declare.
12736 * lto-streamer.h (lto_input_function_body): Update prototype.
12737 (emit_label_in_global_context_p): Remove.
12738 * lto-symtab.c: Include ipa-utils.h
12739 (lto_cgraph_replace_node): Use ipa_merge_profiles.
12741 2013-08-31 Jan Hubicka <jh@suse.cz>
12743 * cgraph.c (cgraph_speculative_call_info): Fix ref lookup
12745 2013-08-31 Jan Hubicka <jh@suse.cz>
12747 * basic-block.h (apply_scale): Make scale parmeter gcov_type.
12749 2013-08-31 Uros Bizjak <ubizjak@gmail.com>
12751 * config/alpha/alpha.c (alpha_emit_conditional_move): Update
12752 "cmp" RTX before signed_comparison_operator check to account
12753 for "code" changes.
12755 2013-08-30 Jan Hubicka <jh@suse.cz>
12757 * ipa-prop.c (ipa_set_jf_known_type): Check that we add only records.
12758 (detect_type_change_1): Rename to ...
12759 (detect_type_change): ... this one; early return on non-polymorphic
12761 (detect_type_change_ssa): Add comp_type parameter; update
12762 use of detect_type_change.
12763 (compute_complex_assign_jump_func): Add param_type parameter;
12764 update use of detect_type_change_ssa.
12765 (compute_complex_ancestor_jump_func): Likewise.
12766 (ipa_get_callee_param_type): New function.
12767 (ipa_compute_jump_functions_for_edge): Compute parameter type;
12768 update calls to the jump function computation functions.
12770 2013-08-30 Teresa Johnson <tejohnson@google.com>
12771 Steven Bosscher <steven@gcc.gnu.org>
12773 * cfgrtl.c (fixup_new_cold_bb): New routine.
12774 (commit_edge_insertions): Invoke fixup_partitions.
12775 (find_partition_fixes): New routine.
12776 (fixup_partitions): Ditto.
12777 (verify_hot_cold_block_grouping): Update comments.
12778 (rtl_verify_edges): Invoke find_partition_fixes.
12779 (rtl_verify_bb_pointers): Update comments.
12780 (rtl_verify_bb_layout): Ditto.
12781 * basic-block.h (probably_never_executed_edge_p): Declare.
12782 (fixup_partitions): Ditto.
12783 * cfgcleanup.c (try_optimize_cfg): Invoke fixup_partitions.
12784 * bb-reorder.c (sanitize_hot_paths): New function.
12785 (find_rarely_executed_basic_blocks_and_crossing_edges): Invoke
12786 sanitize_hot_paths.
12787 * predict.c (probably_never_executed_edge_p): New routine.
12788 * cfg.c (check_bb_profile): Add partition insanity warnings.
12790 2013-08-30 Meador Inge <meadori@codesourcery.com>
12792 * tree-vrp.c (check_array_ref): Bail out on zero-length arrays.
12794 2013-08-30 Marek Polacek <polacek@redhat.com>
12796 * Makefile.in (ubsan.o): Add.
12797 (c-family/c-ubsan.o): Add.
12798 (builtins.o): Add ubsan.h dependency.
12799 * ubsan.h: New file.
12800 * ubsan.c: New file.
12801 * common.opt: Add -fsanitize=undefined option.
12802 (flag_sanitize): Add variable.
12803 (fsanitize=): Add option. Add Driver.
12804 (fsanitize=thread): Remove option.
12805 (fsanitize=address): Likewise.
12806 (static-libubsan): New option.
12807 * doc/invoke.texi: Document the new flag and -static-libubsan.
12808 * sanitizer.def (DEF_SANITIZER_BUILTIN): Define.
12809 (BUILT_IN_UBSAN_HANDLE_BUILTIN_UNREACHABLE): Define.
12810 * builtin-attrs.def (ATTR_COLD): Define.
12811 (ATTR_COLD_NOTHROW_LEAF_LIST): Define.
12812 * builtins.def (BUILT_IN_UBSAN_HANDLE_DIVREM_OVERFLOW,
12813 BUILT_IN_UBSAN_HANDLE_SHIFT_OUT_OF_BOUNDS): Define.
12814 * flag-types.h (sanitize_code): New enum.
12815 * opts.c (common_handle_option): Parse command line arguments
12816 of -fsanitize=. Add -fsanitize=unreachable option.
12817 * varasm.c (get_variable_section): Adjust.
12818 (assemble_noswitch_variable): Likewise.
12819 (assemble_variable): Likewise.
12820 (output_constant_def_contents): Likewise.
12821 (categorize_decl_for_section): Likewise.
12822 (place_block_symbol): Likewise.
12823 (output_object_block): Likewise.
12824 * builtins.def: Likewise.
12825 * toplev.c (compile_file): Likewise.
12826 (process_options): Likewise.
12827 * cppbuiltin.c: Likewise.
12828 * tsan.c (tsan_pass): Likewise.
12829 (tsan_gate): Likewise.
12830 (tsan_gate_O0): Likewise.
12831 * cfgexpand.c (partition_stack_vars): Likewise.
12832 (expand_stack_vars): Likewise.
12833 (defer_stack_allocation): Likewise.
12834 (expand_used_vars): Likewise.
12835 * cfgcleanup.c (old_insns_match_p): Likewise.
12836 * asan.c (asan_finish_file): Likewise.
12837 (asan_instrument): Likewise.
12838 (gate_asan): Likewise.
12839 (initialize_sanitizer_builtins): Build BT_FN_VOID_PTR_PTR_PTR.
12840 (ATTR_COLD_NOTHROW_LEAF_LIST): Define.
12841 (asan_global_struct): Use pointer_sized_int_node instead
12842 calling build_nonstandard_integer_type.
12843 (initialize_sanitizer_builtins): Likewise.
12844 (asan_finish_file): Likewise.
12845 * gcc.c: Document %{%:function(args):X}.
12846 (static_spec_functions): Add sanitize.
12847 (handle_spec_function): Add retval_nonnull argument and if non-NULL,
12848 store funcval != NULL there.
12849 (do_spec_1): Adjust handle_spec_function caller.
12850 (handle_braces): Allow %:function(args) as condition.
12851 (sanitize_spec_function): New function.
12852 (ADD_STATIC_LIBUBSAN_LIBS): Define.
12853 (LIBUBSAN_SPEC): Likewise.
12854 (LIBUBSAN_EARLY_SPEC): Likewise.
12855 (SANITIZER_SPEC): Handle libubsan.
12856 (SANITIZER_EARLY_SPEC): Likewise.
12857 * config/darwin.h (LINK_COMMAND_SPEC_A): Use %:sanitize(address)
12858 instead of fsanitize=address.
12859 * config/arm/linux-eabi.h (ASAN_CC1_SPEC): Use %:sanitize(address)
12860 instead of fsanitize=address*.
12861 * builtins.c: Include ubsan.h.
12862 (fold_builtin_0): Instrument __builtin_unreachable.
12863 * config/rs6000/rs6000.h (FRAME_GROWS_DOWNWARD): Use flag_sanitize
12864 instead of flag_asan.
12865 * tree.h (enum tree_index): Add TI_POINTER_SIZED_TYPE.
12866 (pointer_sized_int_node): Define.
12867 * tree.c (build_common_tree_nodes): Initialize pointer_sized_int_node.
12869 2013-08-30 Mike Stump <mikestump@comcast.net>
12871 * doc/install.texi (Prerequisites): Note regression in Tcl 8.6
12874 2013-08-29 Jan Hubicka <jh@suse.cz>
12876 * cgraph.c (cgraph_function_body_availability): Handle weakref
12878 * passes.def: Remove pass_fixup_cfg.
12879 * ipa-inline.c (ipa_inline): When not optimizing, do not inline;
12880 track when we need to remove functions.
12881 (gate_ipa_inline): Execute inlining always; add comment why.
12882 (pass_data_ipa_inline): Remove TODO_remove_functions.
12883 * ipa-inline-analysis.c (inline_generate_summary): When not optimizing
12884 do not produce summaries.
12885 * symtab.c (change_decl_assembler_name): Handle renaming of weakrefs.
12886 (symtab_nonoverwritable_alias): Assert we are not called on weakref.
12887 * varpool.c (cgraph_variable_initializer_availability): Fix weakrefs,
12888 constant pool and vtable.
12890 2013-08-30 Tejas Belagod <tejas.belagod@arm.com>
12892 * config/aarch64/arm_neon.h (__AARCH64_UINT64_C, __AARCH64_INT64_C):
12893 New arm_neon.h's internal macros to specify 64-bit constants.
12894 Avoid using stdint.h's macros.
12896 2013-08-30 Joern Rennecke <joern.rennecke@embecosm.com>
12898 * recog.c (verify_changes): Verify that changes[i].old is non-zero
12899 before applying REG_P.
12901 2013-08-30 Jakub Jelinek <jakub@redhat.com>
12903 PR tree-optimization/58277
12904 * tree-ssa-strlen.c (strlen_enter_block): If do_invalidate gave up
12905 after seeing too many stmts with vdef in between dombb and current
12906 bb, invalidate everything.
12908 2013-08-30 Richard Biener <rguenther@suse.de>
12910 * fold-const.c (fold_single_bit_test): Fix overflow test.
12912 2013-08-30 Eric Botcazou <ebotcazou@adacore.com>
12914 * function.c (assign_parm_setup_reg): For a parameter passed by pointer
12915 and which can live in a register, always retrieve the value on entry.
12916 * var-tracking.c (add_stores): Treat the copy on entry for a parameter
12917 passed by invisible reference specially.
12918 (emit_notes_in_bb) <MO_VAL_USE>: Emit notes before the instruction.
12919 (vt_add_function_parameter): Correctly deal with a parameter passed by
12920 invisible reference.
12922 2013-08-30 Jan Hubicka <jh@suse.cz>
12924 * tree.c (set_call_expr_flags): Fix handling of TM_PURE.
12926 2013-08-30 Richard Biener <rguenther@suse.de>
12928 PR tree-optimization/58228
12929 * tree-vect-data-refs.c (vect_analyze_data_ref_access): Do not
12930 allow invariant loads in nested loop vectorization.
12932 2013-08-30 Richard Biener <rguenther@suse.de>
12934 PR tree-optimization/58223
12935 * tree-loop-distribution.c (has_anti_dependence): Rename to ...
12936 (has_anti_or_output_dependence): ... this and adjust to also
12937 look for output dependences.
12938 (mark_nodes_having_upstream_mem_writes): Adjust.
12939 (rdg_flag_uses): Likewise.
12941 2013-08-30 Richard Biener <rguenther@suse.de>
12943 PR tree-optimization/58010
12944 * tree-vect-loop.c (vect_create_epilog_for_reduction): Remove
12945 assert that we have a loop-closed PHI.
12947 2013-08-29 Jan Hubicka <jh@suse.cz>
12949 * lto-symtab.c (lto_cgraph_replace_node): Free decl_in_state.
12950 * cgraph.c (cgraph_release_function_body): Free decl_in_state.
12951 * lto-section-in.c (lto_free_function_in_decl_state): New function.
12952 (lto_free_function_in_decl_state_for_node): New function.
12954 2013-08-29 Xinliang David Li <davidxl@google.com>
12956 * loop-unroll.c (report_unroll_peel): Minor message change.
12957 * tree-vect-loop-manip.c (vect_do_peeling_for_alignment):
12958 Emit alignment peeling message with default -fopt-info.
12959 (vect_loop_versioning): Emit loop version info message.
12960 * tree-vectorizer.c (vectorize_loops): Minor message change.
12961 (execute_vect_slp): Ditto.
12963 2013-08-29 Eric Botcazou <ebotcazou@adacore.com>
12965 * cgraphclones.c (cgraph_create_virtual_clone): Compute the DECL_NAME
12966 of the clone from the DECL_NAME of the original function.
12968 2013-08-29 Oleg Endo <olegendo@gcc.gnu.org>
12970 * passes.c (register_pass): Add overload.
12971 * tree-pass.h (register_pass): Forward declare it. Add comment.
12973 2013-08-29 Jan Hubicka <jh@suse.cz>
12975 * lto-streamer-out.c (hash_tree): Stream DECL_FINAL_P,
12976 DECL_CXX_CONSTRUCTOR_P, DECL_CXX_DESTRUCTOR_P and TYPE_FINAL_P.
12977 * lto-streamer-in.c (unpack_ts_decl_with_vis_value_fields): Stream
12978 DECL_FINAL_P, DECL_CXX_CONSTRUCTOR_P and DECL_CXX_DESTRUCTOR_P.
12979 (unpack_ts_type_common_value_fields): Stream TYPE_FINAL_P.
12980 * tree-streamer-out.c (pack_ts_decl_with_vis_value_fields):
12981 Add DECL_FINAL_P, DECL_CXX_CONSTRUCTOR_P and DECL_CXX_DESTRUCTOR_P.
12982 (pack_ts_type_common_value_fields): Add TYPE_FINAL_P.
12984 2013-08-29 Teresa Johnson <tejohnson@google.com>
12986 * dumpfile.c (dump_loc): Output column number.
12987 * dumpfile.h (OPTGROUP_OTHER): Add and enable under OPTGROUP_ALL.
12988 * doc/invoke.texi: Document optall -fopt-info flag.
12989 * profile.c (read_profile_edge_counts): Use new dump framework.
12990 (compute_branch_probabilities): Ditto.
12991 * passes.c (pass_manager::register_one_dump_file): Use OPTGROUP_OTHER
12992 when pass not in any opt group.
12993 * pass_manager.h (pass_manager::get_pass_profile): New method.
12994 * value-prof.c (check_counter): Use new dump framework.
12995 (check_ic_target): Ditto.
12996 * coverage.c (get_coverage_counts): Ditto.
12997 (coverage_init): Setup new dump framework.
12999 2013-08-29 Richard Biener <rguenther@suse.de>
13001 PR tree-optimization/58246
13002 * tree-ssa-dce.c (mark_aliased_reaching_defs_necessary_1): Properly
13003 handle the dominance check inside a basic-block.
13005 2013-08-29 Richard Biener <rguenther@suse.de>
13007 PR middle-end/57287
13008 * tree-ssa-copy.c (may_propagate_copy): Allow propagating
13009 of default defs that appear in abnormal PHI nodes.
13011 2013-08-29 Richard Biener <rguenther@suse.de>
13013 PR tree-optimization/57685
13014 * tree-vrp.c (register_edge_assert_for_1): Recurse only for
13015 single-use operands to avoid exponential complexity.
13017 2013-08-28 Dehao Chen <dehao@google.com>
13019 * ipa-inline.c (edge_badness): Fix integer underflow.
13021 2013-08-28 Uros Bizjak <ubizjak@gmail.com>
13023 * gtm-builtins.def (_ITM_free): Declare leaf.
13025 2013-08-28 Jakub Jelinek <jakub@redhat.com>
13028 * config/i386/i386.md (*tls_global_dynamic_64_largepic): New insn.
13029 (*tls_local_dynamic_base_64_largepic): Likewise.
13030 (tls_global_dynamic_64_<mode>, tls_local_dynamic_base_64_<mode>):
13031 Remove predicate from call operand.
13032 * config/i386/i386.c (ix86_tls_get_addr): For -mcmodel=large -fpic
13033 return sum of pic_offset_table_rtx and UNSPEC_PLTOFF of the symbol.
13035 2013-08-28 Jeff Law <law@redhat.com>
13037 * tree-ssa-threadedge.c (thread_around_empty_block): Remove
13038 checks for the number of predecessors and successors allowed.
13039 * tree-ssa-threadupdate.c (mark_threaded_blocks): Ignore requests
13040 which require copying a joiner block if there is a request which
13041 is a subpath that requires no joiner block copying.
13043 2013-08-28 Jan Hubicka <jh@suse.cz>
13045 * lto-streamer-out.c (DFS_write_tree_body): Drop
13046 BINFO_INHERITANCE_CHAIN, BINFO_SUBVTT_INDEX and BINFO_VPTR_INDEX.
13047 (hash_tree): Do not hash DECL_DEFER_OUTPUT, BINFO_INHERITANCE_CHAIN,
13048 BINFO_SUBVTT_INDEX, BINFO_VPTR_INDEX, DECL_IN_TEXT_SECTION.
13049 * tree-streamer-in.c (unpack_ts_decl_common_value_fields):
13050 Do not read DECL_ERROR_ISSUED.
13051 (unpack_ts_decl_with_vis_value_fields): Do not read
13053 (lto_input_ts_binfo_tree_pointers): Do not read
13054 BINFO_INHERITANCE_CHAIN, BINFO_SUBVTT_INDEX, BINFO_VPTR_INDEX
13055 * tree-streamer-out.c (pack_ts_decl_common_value_fields): Do not
13056 write DECL_ERROR_ISSUED..
13057 (pack_ts_decl_with_vis_value_fields): Do not write
13059 (write_ts_binfo_tree_pointers): Do not read BINFO_INHERITANCE_CHAIN,
13060 BINFO_SUBVTT_INDEX, BINFO_VPTR_INDEX.
13061 * print-tree.c (print_node): Do not print DECL_ERROR_ISSUED.
13062 * tree.h (tree_decl_common): Update comment.
13063 (DECL_ERROR_ISSUED): Remove.
13065 2013-08-28 Jakub Jelinek <jakub@redhat.com>
13067 PR middle-end/58257
13068 * omp-low.c (copy_var_decl): Copy over TREE_NO_WARNING flag.
13070 2013-08-28 Jan Hubicka <jh@suse.cz>
13072 * builtins.def (free): Declare leaf.
13074 2013-08-27 David Malcolm <dmalcolm@redhat.com>
13076 * gdbhooks.py: New.
13077 * configure.ac (gdbinit.in): Add import of gcc/gdbhooks.py.
13078 * configure: Regenerate.
13080 2013-08-27 Martin Jambor <mjambor@suse.cz>
13082 * ipa-prop.h (ipa_pass_through_data): New field type_preserved.
13083 (ipa_ancestor_jf_data): Likewise.
13084 (ipa_get_jf_pass_through_agg_preserved): Fix comment typo.
13085 (ipa_get_jf_pass_through_type_preserved): New function.
13086 (ipa_get_jf_ancestor_agg_preserved): Fix comment typo.
13087 (ipa_get_jf_ancestor_type_preserved): New function.
13088 * ipa-cp.c (ipa_get_jf_pass_through_result): Honor type_preserved flag.
13089 (ipa_get_jf_ancestor_result): Likewise.
13090 (propagate_vals_accross_pass_through): Use
13091 ipa_get_jf_pass_through_result to do all the value mappings.
13092 * ipa-prop.c (ipa_print_node_jump_functions_for_edge): Dump the
13093 type_preserved flag.
13094 (ipa_set_jf_cst_copy): New function.
13095 (ipa_set_jf_simple_pass_through): Set the type_preserved flag.
13096 (ipa_set_jf_arith_pass_through): Likewise.
13097 (ipa_set_ancestor_jf): Likewise.
13098 (compute_complex_assign_jump_func): Set type_preserved instead of
13100 (ipa_compute_jump_functions_for_edge): Likewise.
13101 (combine_known_type_and_ancestor_jfs): Honor type_preserved.
13102 (update_jump_functions_after_inlining): Update type_preserved.
13103 Explicitely create jump functions when combining one with pass_through.
13104 (ipa_write_jump_function): Stream the type_preserved flags.
13105 (ipa_read_jump_function): Likewise.
13107 2013-08-27 Jakub Jelinek <jakub@redhat.com>
13108 Aldy Hernandez <aldyh@redhat.com>
13110 * Makefile.in (omp-low.o): Depend on $(TARGET_H).
13111 * cfgloop.h (struct loop): Add safelen, force_vect, simduid.
13112 * function.h (struct function): Add has_force_vect_loops and
13114 * gimple-pretty-print.c (dump_gimple_omp_for): Handle GF_OMP_FOR_KIND*.
13115 * gimple.c (gimple_build_omp_critical): Add KIND argument and
13117 * gimple.def: Update CLAUSES comments.
13118 * gimple.h (enum gf_mask): Add GF_OMP_FOR_KIND_{FOR,SIMD}.
13119 (gimple_build_omp_for): Add argument to prototype.
13120 (gimple_omp_for_kind): New.
13121 (gimple_omp_for_set_kind): New.
13122 * gimplify.c (enum gimplify_omp_var_data): Add GOVD_LINEAR to
13123 GOVD_DATA_SHARE_CLASS.
13124 (enum omp_region_type): Add ORT_SIMD.
13125 (gimple_add_tmp_var): Handle ORT_SIMD.
13126 (gimplify_var_or_parm_decl): Same.
13127 (is_gimple_stmt): Same.
13128 (omp_firstprivatize_variable): Same.
13129 (omp_add_variable): Only use splay_tree_insert if lookup failed.
13130 (omp_notice_variable): Handle ORT_SIMD.
13131 (omp_is_private): Add SIMD argument and handle it as well as ORT_SIMD.
13132 (omp_check_private): Handle ORT_SIMD.
13133 (gimplify_scan_omp_clauses): Handle OMP_CLAUSE_LINEAR and
13134 OMP_CLAUSE_SAFELEN.
13135 (gimplify_adjust_omp_clauses_1): Handle GOVD_LINEAR.
13136 Handle OMP_CLAUSE_LASTPRIVATE.
13137 (gimplify_adjust_omp_clauses): Handle OMP_CLAUSE_LINEAR and
13138 OMP_CLAUSE_SAFELEN.
13139 (gimplify_omp_for): Handle OMP_SIMD and OMP_CLAUSE_LINEAR.
13140 (gimplify_expr): Handle OMP_SIMD.
13141 * internal-fn.c (expand_GOMP_SIMD_LANE): New.
13142 (expand_GOMP_SIMD_VF): New.
13143 (expand_GOMP_SIMD_LAST_LANE): New.
13144 * internal-fn.def (GOMP_SIMD_LANE): New.
13145 (GOMP_SIMD_VF): New.
13146 (GOMP_SIMD_LAST_LANE): New.
13147 * omp-low.c: Include target.h.
13148 (extract_omp_for_data): Handle OMP_SIMD, OMP_CLAUSE_LINEAR,
13149 OMP_CLAUSE_SAFELEN.
13150 (check_omp_nesting_restrictions): Same.
13152 (lower_rec_simd_input_clauses): New.
13153 (lower_rec_input_clauses): Handle OMP_SIMD, GF_OMP_FOR_KIND_SIMD,
13155 (lower_lastprivate_clauses): Handle OMP_CLAUSE_LINEAR,
13156 GF_OMP_FOR_KIND_SIMD, OMP_SIMD.
13157 (expand_omp_build_assign): New.
13158 (expand_omp_for_init_counts): New.
13159 (expand_omp_for_init_vars): New.
13160 (extract_omp_for_update_vars): New.
13161 (expand_omp_for_generic): Use expand_omp_for_{init,update}_vars
13162 and rewrite accordingly.
13163 (expand_omp_simd): New.
13164 (expand_omp_for): Use expand_omp_simd.
13165 (lower_omp_for_lastprivate): Unshare vinit when appropriate.
13166 (lower_omp_for): Do not lower the body.
13167 * tree-data-ref (get_references_in_stmt): Allow IFN_GOMP_SIMD_LANE
13168 in their own loops.
13169 * tree-flow.h (find_omp_clause): Remove prototype.
13170 * tree-if-conv.c (main_tree_if_conversion): Run if doing if conversion,
13171 forcing vectorization of the loop, or if flag_tree_vectorize.
13172 (gate_tree_if_conversion): Similarly.
13173 * tree-inline.c (remap_gimple_stmt): Pass for kind argument to
13174 gimple_build_omp_for.
13175 (copy_cfg_body): set has_force_vect_loops and has_simduid_loops.
13176 * tree-parloops (create_parallel_loop): Pass kind argument to
13177 gimple_build_omp_for.
13178 * tree-pretty-print.c (dump_omp_clause): Add cases for
13179 OMP_CLAUSE_UNIFORM, OMP_CLAUSE_LINEAR, OMP_CLAUSE_SAFELEN,
13180 OMP_CLAUSE__SIMDUID_.
13181 (dump_generic_node): Handle OMP_SIMD.
13182 * tree-ssa-ccp.c (likely_value): Handle IFN_GOMP_SIMD*.
13183 * tree-ssa-loop-ivcanon.c (tree_unroll_loops_completely_1): Do not
13184 unroll OMP_SIMD loops here.
13185 * tree-ssa-loop.c (gate_tree_vectorize): Run if has_force_vect_loops.
13186 * tree-vect-data-refs.c (vect_analyze_data_ref_dependence): Handle
13188 (vect_analyze_data_refs): Handle simd loops.
13189 * tree-vect-loop.c (vectorizable_live_operation): Handle
13191 * tree-vect-stmts.c (vectorizable_call): Handle IFN_GOMP_SIMD_LANE.
13192 (vectorizable_store): Handle STMT_VINFO_SIMD_LANE_ACCESS_P.
13193 (vectorizable_load): Same.
13194 * tree-vectorizer.c: Include hash-table.h and tree-ssa-propagate.h.
13195 (struct simduid_to_vf): New.
13196 (simduid_to_vf::hash): New.
13197 (simduid_to-vf::equal): New.
13198 (struct simd_array_to_simduid): New.
13199 (simd_array_to_simduid::hash): New.
13200 (simd_array_to_simduid::equal): New.
13201 (adjust_simduid_builtins): New.
13202 (struct note_simd_array_uses_struct): New.
13203 (note_simd_array_uses_cb): New.
13204 (note_simd_array_uses): New.
13205 (vectorize_loops): Handle simd hints and adjust simd builtins
13207 * tree-vectorizer.h (struct _stmt_vec_info): Add
13208 simd_lane_access_p field.
13209 (STMT_VINFO_SIMD_LANE_ACCESS_P): New macro.
13210 * tree.c (omp_clause_num_ops): Add entries for OMP_CLAUSE_LINEAR,
13211 OMP_CLAUSE_SAFELEN, OMP_CLAUSE__SIMDUID_, OMP_CLAUSE_UNIFORM.
13212 (omp_clause_code_name): Same.
13213 (walk_tree_1): Handle OMP_CLAUSE_UNIFORM, OMP_CLAUSE_SAFELEN,
13214 OMP_CLAUSE__SIMDUID_, OMP_CLAUSE_LINEAR.
13215 * tree.def (OMP_SIMD): New entry.
13216 * tree.h (enum omp_clause_code): Add entries for OMP_CLAUSE_LINEAR,
13217 OMP_CLAUSE_UNIFORM, OMP_CLAUSE_SAFELEN, OMP_CLAUSE__SIMDUID_.
13218 (OMP_CLAUSE_DECL): Adjust range for new clauses.
13219 (OMP_CLAUSE_LINEAR_NO_COPYIN): New.
13220 (OMP_CLAUSE_LINEAR_NO_COPYOUT): New.
13221 (OMP_CLAUSE_LINEAR_STEP): New.
13222 (OMP_CLAUSE_SAFELEN_EXPR): New.
13223 (OMP_CLAUSE__SIMDUID__DECL): New.
13224 (find_omp_clause): New prototype.
13226 2013-08-27 H.J. Lu <hongjiu.lu@intel.com>
13228 * config/i386/driver-i386.c (host_detect_local_cpu): Update
13229 Haswell processor detection.
13231 2013-08-27 Christian Widmer <shadow@umbrox.de>
13234 * config/i386/driver-i386.c (host_detect_local_cpu): Add detection
13235 of Ivy Bridge and Haswell processors. Assume core-avx2 for unknown
13236 AVX2 capable processors.
13238 2013-08-27 Tejas Belagod <tejas.belagod@arm.com>
13240 * config/aarch64/arm_neon.h: Replace all inline asm implementations
13241 of vget_low_* with implementations in terms of other intrinsics.
13243 2013-08-27 Marc Glisse <marc.glisse@inria.fr>
13245 PR middle-end/57219
13246 * doc/extend.texi (__builtin_isinf_sign): Restrict the return
13247 values to -1, 0 and 1.
13249 2013-08-27 Vidya Praveen <vidyapraveen@arm.com>
13251 * config/aarch64/aarch64.md (unspec): Add UNSPEC_SISD_SSHL,
13252 UNSPEC_SISD_USHL, UNSPEC_USHL_2S, UNSPEC_SSHL_2S, UNSPEC_SISD_NEG.
13253 (<optab><mode>3_insn): Remove.
13254 (aarch64_ashl_sisd_or_int_<mode>3): New Pattern.
13255 (aarch64_lshr_sisd_or_int_<mode>3): Likewise.
13256 (aarch64_ashr_sisd_or_int_<mode>3): Likewise.
13257 (define_split for aarch64_lshr_sisd_or_int_di3): Likewise.
13258 (define_split for aarch64_lshr_sisd_or_int_si3): Likewise.
13259 (define_split for aarch64_ashr_sisd_or_int_di3): Likewise.
13260 (define_split for aarch64_ashr_sisd_or_int_si3): Likewise.
13261 (aarch64_sisd_ushl, aarch64_sisd_sshl): Likewise.
13262 (aarch64_ushl_2s, aarch64_sshl_2s, aarch64_sisd_neg_qi): Likewise.
13263 (ror<mode>3_insn): Likewise.
13264 * config/aarch64/predicates.md (aarch64_simd_register): New.
13266 2013-08-27 Richard Biener <rguenther@suse.de>
13268 PR tree-optimization/57521
13269 * tree-if-conv.c (if_convertible_bb_p): Verify that at least
13270 one edge is non-critical.
13271 (find_phi_replacement_condition): Make sure to use a non-critical
13272 edge. Cleanup and remove old bug workarounds.
13273 (bb_postdominates_preds): Remove.
13274 (if_convertible_loop_p_1): Do not compute post-dominators.
13275 (combine_blocks): Do not free post-dominators.
13276 (main_tree_if_conversion): Likewise.
13277 (pass_data_if_conversion): Add TODO_verify_ssa.
13279 2013-08-27 DJ Delorie <dj@redhat.com>
13281 * config/i386/djgpp.h (ASM_DECLARE_FUNCTION_NAME): New.
13283 2013-08-27 Yufeng Zhang <yufeng.zhang@arm.com>
13285 * function.c (assign_parm_find_data_types): Set passed_mode and
13286 nominal_mode to the TYPE_MODE of nominal_type for the built
13287 pointer type in case of the struct-pass-by-reference.
13289 2013-08-26 Joern Rennecke <joern.rennecke@embecosm.com>
13291 * config/avr/avr-stdint.h (INT16_TYPE): Change default to "int".
13292 (UINT16_TYPE): Change default to "unsigned int".
13294 * config/avr/avr.opt (mfract-convert-truncate): New option.
13295 * config/avr/avr.c (avr_out_fract): Unless TARGET_FRACT_CONV_TRUNC
13296 is set, round negative fractional integers according to n1169
13297 when converting to integer types.
13299 2013-08-26 Jan Hubicka <jh@suse.cz>
13301 * cgraph.c (cgraph_propagate_frequency): Do not assume that virtual
13302 methods can not be called indirectly when their address is not taken.
13304 2013-08-26 Jan Hubicka <jh@suse.cz>
13306 * gimple-fold.c (gimple_get_virt_method_for_binfo): Use
13309 2013-08-26 Jan Hubicka <jh@suse.cz>
13311 * ipa.c (comdat_can_be_unshared_p_1): C++ constructors and destructors
13314 2013-08-26 Joern Rennecke <joern.rennecke@embecosm.com>
13316 * reload.c (find_valid_class): Allow classes that do not include
13317 FIRST_PSEUDO_REGISTER - 1.
13319 2013-08-26 Jan Hubicka <jh@suse.cz>
13321 * cgraph.c (cgraph_redirect_edge_call_stmt_to_callee): Fix formatting;
13322 fix edge count/frequency when speculation failed; fix type check
13323 for the direct call.
13325 2013-08-26 Jan Hubicka <jh@suse.cz>
13327 * ipa-prop.c (ipa_print_node_params): Do not ICE during WPA.
13329 2013-08-26 Jan Hubicka <jh@suse.cz>
13331 * ipa-inline-transform.c (inline_transform): Be ready for basic block
13332 to be changed by edge redirection.
13334 2013-08-26 Jan Hubicka <jh@suse.cz>
13336 * cgraph.c (cgraph_speculative_call_info): Fix parameter order and
13337 formating; add sanity check.
13338 (cgraph_resolve_speculation): Add FIXME about scaling profiles.
13339 (cgraph_redirect_edge_call_stmt_to_callee): Fix ICE in debug dump.
13340 * ipa-inline.c (heap_edge_removal_hook): Reset node growth cache.
13341 (resolve_noninline_speculation): Update callee keys, too.
13343 2013-08-26 Jan Hubicka <jh@suse.cz>
13345 * tree.h (tree_decl_with_vis): Add cxx_constructor, cxx_destructor.
13346 (DECL_CXX_CONSTRUCTOR_P, DECL_CXX_DESTRUCTOR_P): New macros.
13348 2013-08-26 Joern Rennecke <joern.rennecke@embecosm.com>
13350 * config/i386/i386.c (x86_64_elf_select_section): Put ATTRIBUTE_UNUSED
13353 2013-08-26 Uros Bizjak <ubizjak@gmail.com>
13355 * config/i386/i386.c (ix86_debug_options): Remove prototype.
13356 (x86_64_elf_select_section): Ditto.
13357 (ix86_handle_tm_regparm_attribute): Remove ATTRIBUTE_UNUSED on used
13359 (ix86_pass_by_reference): Ditto.
13360 (output_set_got): Ditto.
13361 (ix86_unary_operator_ok): Ditto.
13362 (ix86_expand_builtin): Ditto.
13364 2013-08-23 Jan Hubicka <jh@suse.cz>
13366 * cgraph.c (cgraph_turn_edge_to_speculative): Fix debug output.
13368 2013-08-23 Jan Hubicka <jh@suse.cz>
13370 * tree.h (TYPE_FINAL_P, DECL_FINAL_P): New macros.
13371 (tree_decl_with_vis): Add FINAL field.
13373 2013-08-23 Jeff Law <law@redhat.com>
13375 * tree-ssa-pre.c (do_regular_insertion): Include the expression in
13376 the debugging dump when the expression is fully redundant.
13378 2013-08-23 Gabriel Dos Reis <gdr@integrable-solutions.net>
13380 * diagnostic.c (diagnostic_set_caret_max_width): Use pp_buffer.
13381 * gimple-pretty-print.c (gimple_dump_bb_buff): Likewise.
13382 * pretty-print.c (pp_formatted_text_data): Likewise.
13383 (pp_write_text_to_stream): Likewise.
13384 (pp_write_text_as_dot_label_to_stream): Likewise.
13385 (pp_append_r): Likewise.
13386 (pp_format): Likewise.
13387 (pp_flush): Likewise.
13388 (pp_clear_output_area): Likewise.
13389 (pp_append_text): Likewise.
13390 (pp_formatted_text): Likewise.
13391 (pp_remaining_character_count_for_line): Likewise.
13392 (pp_newline): Likewise.
13393 (pp_character): Likewise.
13394 (output_buffer::~output_buffer): Define.
13395 (pretty_printer::~pretty_printer): Destruct output buffer.
13396 * pretty-print.h (output_buffer::~output_buffer): Declare.
13397 (pretty_printer::~pretty_printer): Declare virtual.
13399 2013-08-24 Marc Glisse <marc.glisse@inria.fr>
13402 * hwint.h (HOST_WIDE_INT_UC, HOST_WIDE_INT_1U, HOST_WIDE_INT_M1,
13403 HOST_WIDE_INT_M1U): New macros.
13404 * fold-const.c (sign_bit_p, build_range_check, fold_unary_loc,
13405 fold_binary_loc, fold_ternary_loc): Use the new macros. Use an
13406 unsigned -1 for lshift.
13407 * cse.c (cse_insn): Likewise.
13408 * double-int.c (rshift_double, lshift_double): Likewise.
13409 * builtins.c (fold_builtin_bitop): Likewise.
13410 * combine.c (force_to_mode): Likewise.
13411 * tree.c (integer_pow2p, tree_log2, tree_floor_log2): Likewise.
13412 * simplify-rtx.c (simplify_const_unary_operation,
13413 simplify_const_binary_operation): Likewise.
13414 * tree-stdarg.c (va_list_counter_bump, va_list_ptr_read,
13415 check_va_list_escapes): Likewise.
13416 * rtlanal.c (nonzero_bits1): Likewise.
13417 * expmed.c (expand_smod_pow2): Likewise.
13418 * tree-ssa-structalias.c (UNKNOWN_OFFSET): Use HOST_WIDE_INT_MIN.
13420 2013-08-23 Jan Hubicka <jh@suse.cz>
13422 * cgraph.c (cgraph_turn_edge_to_speculative): Mark target node
13423 as having address taken.
13425 2013-08-23 Jan Hubicka <jh@suse.cz>
13427 * ipa-utils.h (method_class_type): Declare.
13428 * ipa-devirt.c (method_class_type): Export.
13430 * cgraphunit.c (analyze_functions): Do basic devirtualization;
13431 do not walk base classes of anonymous types.
13433 2013-08-23 Kaz Kojima <kkojima@gcc.gnu.org>
13435 PR rtl-optimization/58220
13436 PR regression/58221
13437 * final.c (reemit_insn_block_notes): Use NEXT_INSN to
13438 handle SEQUENCE insns properly.
13440 2013-08-23 Gabriel Dos Reis <gdr@integrable-solutions.net>
13442 * pretty-print.h (pp_newline_and_flush): Declare. Remove macro
13444 (pp_newline_and_indent): Likewise.
13445 (pp_separate_with): Likewise.
13446 * pretty-print.c (pp_newline_and_flush): Define.
13447 (pp_newline_and_indent): Likewise.
13448 (pp_separate_with): Likewise.
13450 2013-08-23 Jakub Jelinek <jakub@redhat.com>
13453 * config/i386/x86-64.h (TARGET_SECTION_TYPE_FLAGS): Define.
13454 * config/i386/i386.c (x86_64_elf_section_type_flags): New function.
13456 2013-08-23 Kirill Yukhin <kirill.yukhin@intel.com>
13458 * config/i386/predicates.md (ext_sse_reg_operand): New.
13459 * config/i386/i386.md (*movti_internal): Use
13460 predicate to determine if EVEX is needed.
13461 (*movsi_internal): Ditto.
13462 (*movdf_internal): Ditto.
13463 (*movsf_internal): Ditto.
13464 * config/i386/mmx.md (*mov<mode>_internal): Ditto.
13466 2013-08-23 Jakub Jelinek <jakub@redhat.com>
13468 PR tree-optimization/58209
13469 * tree-tailcall.c (process_assignment): Handle POINTER_PLUS_EXPR.
13470 (find_tail_calls): Give up for pointer result types if m is non-NULL.
13471 (adjust_return_value_with_ops): For PLUS_EXPR and pointer result type
13472 emit POINTER_PLUS_EXPR.
13473 (create_tailcall_accumulator): For pointer result type accumulate in
13476 2013-08-22 Paolo Carlini <paolo.carlini@oracle.com>
13478 * configure.ac: Add backslashes missing from the last change.
13479 * configure: Regenerate.
13481 2013-08-22 Jan Hubicka <jh@susue.cz>
13483 * ipa.c (function_and_variable_visibility): First remember function
13484 was global and then make it local.
13486 2013-08-22 Julian Brown <julian@codesourcery.com>
13488 * configure.ac: Add aarch64 to list of arches which use "nop" in
13490 * configure: Regenerate.
13492 2013-08-22 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
13494 * config/s390/linux.h (TARGET_LIBC_HAS_FUNCTION): Define as
13495 gnu_libc_has_function.
13496 * config/s390/tpf.h: Likewise.
13498 2013-08-22 Jan Hubicka <jh@susue.cz>
13500 * timevar.c (validate_phases): Add cast.
13502 2013-08-22 Jan Hubicka <jh@susue.cz>
13504 * timevar.c (validate_phases): Use size_t for memory.
13505 * timevar.h (struct timevar_time_def): Use size_t for ggc_mem.
13507 2013-08-22 Gabriel Dos Reis <gdr@integrable-solutions.net>
13509 * pretty-print.h (output_buffer::output_buffer): Declare.
13510 (pretty_printer::pretty_printer): Likewise.
13511 (pp_construct): Remove.
13512 * pretty-print.c (output_buffer::output_buffer): Define.
13513 (pretty_printer::pretty_printer): Rename from pp_construct. Simplify.
13514 * gimple-pretty-print.c (print_gimple_stmt): Do not call pp_construct.
13515 (print_gimple_expr): Likewise.
13516 (print_gimple_seq): Likewise.
13517 (gimple_dump_bb): Likewise.
13518 * sched-vis.c (dump_value_slim): Likewise.
13519 (dump_insn_slim): Likewise.
13520 (dump_rtl_slim): Likewise.
13521 (str_pattern_slim): Likewise.
13522 * tree-mudflap.c (mf_varname_tree): Likewise.
13523 * graph.c (print_graph_cfg): Likewise.
13524 (start_graph_dump): Likewise.
13525 * tree-pretty-print.c (maybe_init_pretty_print): Likewise. Use
13527 * diagnostic.c (diagnostic_initialize): Simplify early diagnostic
13528 pretty printer initialization.
13529 * coretypes.h (diagnostic_context): Remove superflous type alias
13531 (pretty_printer): Likewise. Declare directly as a class.
13532 (pretty_print_info): Remove declaration as class.
13533 * asan.c (asan_emit_stack_protection): Remove call to pp_construct
13534 and pp_clear_output_area.
13535 (asan_add_global): Likewise.
13537 2013-08-22 Jan Hubicka <jh@suse.cz>
13539 * cgraphunit.c (analyze_functions) Use update_type_inheritance_graph.
13540 * ipa-utils.h (update_type_inheritance_graph): Declare.
13541 (possible_polymorphic_call_target_p): Declare.
13542 (possible_polymorphic_call_target_p): New.
13543 * ipa-devirt.c: Update toplevel comments.
13544 (cached_polymorphic_call_targets): Move up.
13545 (odr_type_d): Move ID down.
13546 (polymorphic_type_binfo_p): Update comment.
13547 (odr_hasher::remove): Likewise;
13548 (get_odr_type): Set anonymous_namespace.
13549 (dump_odr_type): Dump it.
13550 (dump_type_inheritance_graph): Do not ICE when there are no ODR types.
13551 (maybe_record_node): Record node in cached_polymorphic_call_targets.
13552 (record_binfo): Add comment.
13553 (free_polymorphic_call_targets_hash): Do not ICE when cache is not
13555 (devirt_node_removal_hook): Do not iCE when cache is freed.
13556 (possible_polymorphic_call_target_p): New predicate.
13557 (update_type_inheritance_graph): New function.
13559 2013-08-22 Alexander Ivchenko <alexander.ivchenko@intel.com>
13560 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
13561 Sergey Lega <sergey.s.lega@intel.com>
13562 Anna Tikhonova <anna.tikhonova@intel.com>
13563 Ilya Tocar <ilya.tocar@intel.com>
13564 Andrey Turetskiy <andrey.turetskiy@intel.com>
13565 Ilya Verbin <ilya.verbin@intel.com>
13566 Kirill Yukhin <kirill.yukhin@intel.com>
13567 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
13569 * common/config/i386/i386-common.c (OPTION_MASK_ISA_AVX512F_SET): New.
13570 (OPTION_MASK_ISA_AVX512CD_SET): Ditto.
13571 (OPTION_MASK_ISA_AVX512PF_SET): Ditto.
13572 (OPTION_MASK_ISA_AVX512ER_SET): Ditto.
13573 (OPTION_MASK_ISA_AVX2_UNSET): Update.
13574 (OPTION_MASK_ISA_AVX512F_UNSET): New.
13575 (OPTION_MASK_ISA_AVX512CD_UNSET): Ditto.
13576 (OPTION_MASK_ISA_AVX512PF_UNSET): Ditto.
13577 (OPTION_MASK_ISA_AVX512ER_UNSET): Ditto.
13578 (ix86_handle_option): Handle OPT_mavx512f, OPT_mavx512cd,
13579 OPT_mavx512pf, OPT_mavx512er cases.
13580 * config/i386/constraints.md (v): New constraint.
13581 (Yi, Yj): Replace SSE_REGS with ALL_SSE_REGS.
13582 * config/i386/cpuid.h (bit_AVX512F, bit_AVX512PF, bit_AVX512ER)
13583 (bit_AVX512CD): New.
13584 * config/i386/driver-i386.c (host_detect_local_cpu): Detect
13585 AVX512F, AVX512ER, AVX512PF, AVX512CD features.
13586 * config/i386/i386-c.c (ix86_target_macros_internal):
13587 Conditionally define __AVX512F__, __AVX512ER__, __AVX512CD__,
13589 * config/i386/i386-modes.def (VECTOR_MODES (INT, 128))
13590 (VECTOR_MODES (FLOAT, 128), INT_MODE (XI, 64)): New modes.
13591 * config/i386/i386.c (regclass_map, dbx_register_map)
13592 (dbx64_register_map, svr4_dbx_register_map): Add new SSE registers.
13593 (gate_insert_vzeroupper): Disable vzeroupper for TARGET_AVX512F.
13594 (ix86_target_string): Define -mavx512f, -mavx512er, -mavx512cd,
13595 -mavx512pf options.
13596 (ix86_option_override_internal): Define PTA_AVX512F, PTA_AVX512ER,
13597 PTA_AVX512PF, PTA_AVX512CD. Handle -mavx512f, -mavx512er, -mavx512cd,
13598 -mavx512pf options. Fix formatting.
13599 (ix86_conditional_register_usage): Squash EXT_REX_SSE_REGs for 32-bit
13600 targets. Squash EVEX_SSE_REGS if AVX512F is disabled.
13601 (ix86_valid_target_attribute_inner_p): Handle -mavx512f, -mavx512er,
13602 -mavx512cd, -mavx512pf options.
13603 (standard_sse_constant_opcode): Add vpternlogd for 512-bit modes.
13604 (print_reg, ix86_print_operand): Handle 'g' to output 512-bit operands.
13605 (ix86_preferred_output_reload_class): Replace SSE_REGS with
13607 (ix86_hard_regno_mode_ok): Support 512-bit registers.
13608 (ix86_set_reg_reg_cost): Ditto.
13609 (x86_order_regs_for_local_alloc): Ditto.
13610 (MAX_VECT_LEN): Extend to 64-byte.
13611 (ix86_spill_class): Replace SSE_REGS with ALL_SSE_REGS.
13612 * config/i386/i386.h (TARGET_AVX512F, TARGET_AVX512PF)
13613 (TARGET_AVX512ER, TARGET_AVX512CD): New.
13614 (BIGGEST_ALIGNMENT): Extend to 512-bits.
13615 (FIRST_PSEUDO_REGISTER, FIXED_REGISTERS): Add new registers.
13616 (CALL_USED_REGISTERS, REG_ALLOC_ORDER): Likewise.
13617 (VALID_AVX512F_SCALAR_MODE, VALID_AVX512F_REG_MODE): New.
13618 (SSE_REG_MODE_P): Support new modes.
13619 (FIRST_MMX_REG, FIRST_REX_INT_REG, FIRST_REX_SSE_REG): Add comments.
13620 (FIRST_EXT_REX_SSE_REG, LAST_EXT_REX_SSE_REG): New.
13621 (reg_class, REG_CLASS_NAMES): Add EVEX_SSE_REGS, ALL_SSE_REGS.
13622 (SSE_CLASS_P, MAYBE_SSE_CLASS_P): Replace SSE_REGS with ALL_SSE_REGS.
13623 (REG_CLASS_CONTENTS): Add new registers.
13624 (SSE_REGNO_P, SSE_REGNO, HARD_REGNO_RENAME_OK): Support new registers.
13625 (EXT_REX_SSE_REGNO_P): New.
13626 (HI_REGISTER_NAMES): Add new registers.
13627 * config/i386/i386.md: Define constants for new registers.
13628 (mode): Add new 512-bit modes.
13629 (prefix): Support evex prefix.
13630 (isa): Support avx512f, noavx512f, fma_avx512f.
13631 (ssemodesuffix): Add new 512-bit modes.
13633 (*movxi_internal_avx512f): Ditto.
13634 (*movdi_internal): Replace constraint "x" with the new constraint "v".
13636 (*movsi_internal): Likewise.
13637 (*movdf_internal): Likewise.
13638 (*movsf_internal): Likewise.
13639 (*fop_<mode>_comm_sse): Replace constraint "x" with new constraint "v".
13640 (<code><mode>3): Likewise.
13641 * config/i386/i386.opt (mavx512f, mavx512pf, mavx512er, mavx512cd):
13643 * config/i386/mmx.md (*mov<mode>_internal): Replace constraint "x"
13644 with the new constraint "v".
13645 * config/i386/sse.md (*mov<mode>_internal): Support new registers and
13647 (<sse>_loadu<ssemodesuffix><avxsizesuffix>): Replace constraint "x"
13648 with the new constraint "v".
13649 (<sse2>_loaddqu<avxsizesuffix>): Likewise.
13650 (<sse2>_storedqu<avxsizesuffix>): Likewise.
13651 (*<plusminus_insn><mode>3): Likewise.
13652 (<sse>_vm<plusminus_insn><mode>3): Likewise.
13653 (*mul<mode>3): Likewise.
13654 (<sse>_vmmul<mode>3): Likewise.
13655 (<sse>_div<mode>3): Likewise.
13656 (<sse>_vmdiv<mode>3): Likewise.
13657 (<sse>_sqrt<mode>2): Likewise.
13658 (<sse>_vmsqrt<mode>2): Likewise.
13659 (*<code><mode>3_finite): Likewise.
13660 (*<code><mode>3) <smaxmin>: Likewise.
13661 (<sse>_vm<code><mode>3): Likewise.
13662 (*<code><mode>3) <any_logic>: Likewise.
13663 (*fma_fmadd_<mode>): Likewise.
13664 (*fma_fmsub_<mode>): Likewise.
13665 (*fma_fnmadd_<mode>): Likewise.
13666 (*fma_fnmsub_<mode>): Likewise.
13667 (*fma_fmaddsub_<mode>): Likewise.
13668 (*fma_fmsubadd_<mode>): Likewise.
13669 (*fmai_fmadd_<mode>): Likewise.
13670 (*fmai_fmsub_<mode>): Likewise.
13671 (*fmai_fnmadd_<mode>): Likewise.
13672 (*fmai_fnmsub_<mode>): Likewise.
13673 (sse_cvtsi2ss): Likewise.
13674 (sse_cvtsi2ssq): Likewise.
13675 (sse_cvtss2si): Likewise.
13676 (sse_cvtss2si_2): Likewise.
13677 (sse_cvtss2siq): Likewise.
13678 (sse_cvtss2siq_2): Likewise.
13679 (sse_cvttss2si): Likewise.
13680 (sse_cvtss2siq_2): Likewise.
13681 (float<sseintvecmodelower><mode>2): Likewise.
13682 (sse2_cvtsd2si_2): Likewise.
13683 (sse2_cvtsd2siq_2): Likewise.
13684 (*<plusminus_insn><mode>3): Likewise.
13685 (*<sse2_avx2>_<plusminus_insn><mode>3): Likewise.
13686 (*<sse4_1_avx2>_mul<mode>3): Likewise.
13687 (ashr<mode>3): Likewise.
13688 (<shift_insn><mode>3): Likewise.
13689 (avx2_<code><mode>3): Likewise.
13690 (*avx2_<code><mode>3): Likewise.
13691 (*andnot<mode>3): Likewise.
13692 (*<code><mode>3) <any_logic>: Likewise.
13693 (abs<mode>2): Likewise.
13694 (avx2_permvar<mode>): Likewise.
13695 (avx2_perm<mode>_1): Likewise.
13696 (*avx_vpermilp<mode>): Likewise.
13697 (avx_vpermilvar<mode>3): Likewise.
13698 (avx2_ashrv<mode>): Likewise.
13699 (avx2_<shift_insn>v<mode>): Likewise.
13700 * doc/invoke.texi: Document -mavx512f, -mavx512pf, -mavx512er,
13702 * doc/rtl.texi: Document XImode.
13704 2013-08-21 Jeff Law <law@redhat.com>
13706 * tree-flow.h (register_jump_thread): Pass vector of edges
13707 instead of each important edge.
13708 * tree-ssa-threadedge.c (thread_across_edge): Build the jump
13709 thread path into a vector and pass that to register_jump_thread.
13710 * tree-ssa-threadupdate.c (register_jump_thread): Conver the
13711 passed in edge vector to the current 3-edge form.
13714 2013-08-20 Alexey Makhalov <makhaloff@gmail.com>
13716 * dce.c (fini_dce): Call df_analyze again just in case
13717 delete_unmarked_insns removed anything.
13719 2013-08-21 Joern Rennecke <joern.rennecke@embecosm.com>
13721 * reload.h (struct reg_equivs): Rename to ..
13722 (struct reg_equivs_s): .. this.
13724 2013-08-20 Martin Liska <marxin.liska@gmail.com>
13726 * ipa.c (ipa_profile_read_summary): Fix buffer overflow.
13728 2013-08-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
13730 * config/sol2-10.h (TARGET_LIBC_HAS_FUNCTION): Don't nest comment.
13732 2013-08-21 Jeff Law <law@redhat.com>
13734 * tree-vrp.c (simplify_stmt_for_jump_threading): Try to
13735 simplify assignments too. If the RHS collapses to a singleton
13736 range, then return the value for the range.
13738 2013-08-21 Kirill Yukhin <kirill.yukhin@intel.com>
13740 * config/i386/sse.md (V16): Rename to...
13742 (mov<mode>): Update iterator name.
13743 (*mov<mode>_internal): Ditto.
13744 (push<mode>1): Ditto.
13745 (movmisalign<mode>): Ditto.
13747 2013-08-20 Jan Hubicka <jh@suse.cz>
13750 * cgraph.c (cgraph_add_edge_to_call_site_hash): Overwrite hash
13751 entry for direct edges.
13752 (cgraph_turn_edge_to_speculative): Fix setting of can_throw_external.
13754 2013-08-20 David Malcolm <dmalcolm@redhat.com>
13756 Revert my last two changes, r201865 and r201864:
13759 2013-08-20 David Malcolm <dmalcolm@redhat.com>
13761 Make opt_pass and gcc::pass_manager be GC-managed, so that pass
13762 instances can own GC refs.
13764 * Makefile.in (GTFILES): Add pass_manager.h and tree-pass.h.
13765 * context.c (gcc::context::gt_ggc_mx): Traverse passes_.
13766 (gcc::context::gt_pch_nx): Likewise.
13767 (gcc::context::gt_pch_nx): Likewise.
13768 * ggc.h (gt_ggc_mx <T>): New.
13769 (gt_pch_nx_with_op <T>): New.
13770 (gt_pch_nx <T>): New.
13771 * passes.c (opt_pass::gt_ggc_mx): New.
13772 (opt_pass::gt_pch_nx): New.
13773 (opt_pass::gt_pch_nx_with_op): New.
13774 (pass_manager::gt_ggc_mx): New.
13775 (pass_manager::gt_pch_nx): New.
13776 (pass_manager::gt_pch_nx_with_op): New.
13777 (pass_manager::operator new): Use
13778 ggc_internal_cleared_alloc_stat rather than xcalloc.
13779 * pass_manager.h (class pass_manager): Add GTY((user)) marking.
13780 (pass_manager::gt_ggc_mx): New.
13781 (pass_manager::gt_pch_nx): New.
13782 (pass_manager::gt_pch_nx_with_op): New.
13783 * tree-pass.h (class opt_pass): Add GTY((user)) marking.
13784 (opt_pass::operator new): New.
13785 (opt_pass::gt_ggc_mx): New.
13786 (opt_pass::gt_pch_nx): New.
13787 (opt_pass::gt_pch_nx_with_op): New.
13790 2013-08-20 David Malcolm <dmalcolm@redhat.com>
13792 * Makefile.in (GTFILES): Add context.h.
13793 * context.c (gcc::context::operator new): New.
13794 (gcc::context::gt_ggc_mx): New.
13795 (gcc::context::gt_pch_nx): New.
13796 (gcc::context::gt_pch_nx): New.
13797 * context.h (gcc::context): Add GTY((user)) marking.
13798 (gcc::context::operator new): New.
13799 (gcc::context::gt_ggc_mx): New.
13800 (gcc::context::gt_pch_nx): New.
13801 (gcc::context::gt_pch_nx): New.
13802 (g): Add GTY marking.
13803 (gt_ggc_mx (gcc::context *)): New.
13804 (gt_pch_nx (gcc::context *)): New.
13805 (gt_pch_nx (gcc::context *ctxt, gt_pointer_operator op,
13806 void *cookie)): New.
13807 * gengtype.c (open_base_files) <ifiles>: Add context.h.
13809 2013-08-20 Alexey Makhalov <makhaloff@gmail.com>
13811 * dce.c (fini_dce): Call df_analyze again just in case
13812 delete_unmarked_insns removed anything.
13814 2013-08-20 Teresa Johnson <tejohnson@google.com>
13816 PR rtl-optimizations/57451
13817 * final.c (reemit_insn_block_notes): Prevent lexical blocks
13818 from crossing split section boundaries.
13820 2013-08-20 Matthew Gretton-Dann <matthew.gretton-dann@linaro.org>
13822 * config/arm/linux-elf.h (MULTILIB_DEFAULTS): Remove definition.
13823 * config/arm/t-linux-eabi (MULTILIB_OPTIONS): Document association
13824 with MULTLIB_DEFAULTS.
13826 2013-08-20 Nick Clifton <nickc@redhat.com>
13828 * target.def (narrow_volatile_bitfield): Note that the default
13829 value is false, not !TARGET_STRICT_ALIGN.
13830 * doc/tm.texi: Regenerate.
13832 2013-08-20 Pavel Chupin <pavel.v.chupin@intel.com>
13834 Fix LIB_SPEC for systems without libpthread.
13836 * config/gnu-user.h: Introduce GNU_USER_TARGET_NO_PTHREADS_LIB_SPEC.
13837 * config/arm/linux-eabi.h: Use GNU_USER_TARGET_NO_PTHREADS_LIB_SPEC
13839 * config/i386/linux-common.h: Likewise.
13840 * config/mips/linux-common.h: Likewise.
13842 2013-08-20 Zhouyi Zhou <yizhouzhou@ict.ac.cn>
13844 * tree-ssa-ccp.c (get_default_value): Remove redundant condition
13847 2013-08-20 David Malcolm <dmalcolm@redhat.com>
13849 Make opt_pass and gcc::pass_manager be GC-managed, so that pass
13850 instances can own GC refs.
13852 * Makefile.in (GTFILES): Add pass_manager.h and tree-pass.h.
13853 * context.c (gcc::context::gt_ggc_mx): Traverse passes_.
13854 (gcc::context::gt_pch_nx): Likewise.
13855 (gcc::context::gt_pch_nx): Likewise.
13856 * ggc.h (gt_ggc_mx <T>): New.
13857 (gt_pch_nx_with_op <T>): New.
13858 (gt_pch_nx <T>): New.
13859 * passes.c (opt_pass::gt_ggc_mx): New.
13860 (opt_pass::gt_pch_nx): New.
13861 (opt_pass::gt_pch_nx_with_op): New.
13862 (pass_manager::gt_ggc_mx): New.
13863 (pass_manager::gt_pch_nx): New.
13864 (pass_manager::gt_pch_nx_with_op): New.
13865 (pass_manager::operator new): Use
13866 ggc_internal_cleared_alloc_stat rather than xcalloc.
13867 * pass_manager.h (class pass_manager): Add GTY((user)) marking.
13868 (pass_manager::gt_ggc_mx): New.
13869 (pass_manager::gt_pch_nx): New.
13870 (pass_manager::gt_pch_nx_with_op): New.
13871 * tree-pass.h (class opt_pass): Add GTY((user)) marking.
13872 (opt_pass::operator new): New.
13873 (opt_pass::gt_ggc_mx): New.
13874 (opt_pass::gt_pch_nx): New.
13875 (opt_pass::gt_pch_nx_with_op): New.
13877 2013-08-20 David Malcolm <dmalcolm@redhat.com>
13879 * Makefile.in (GTFILES): Add context.h.
13880 * context.c (gcc::context::operator new): New.
13881 (gcc::context::gt_ggc_mx): New.
13882 (gcc::context::gt_pch_nx): New.
13883 (gcc::context::gt_pch_nx): New.
13884 * context.h (gcc::context): Add GTY((user)) marking.
13885 (gcc::context::operator new): New.
13886 (gcc::context::gt_ggc_mx): New.
13887 (gcc::context::gt_pch_nx): New.
13888 (gcc::context::gt_pch_nx): New.
13889 (g): Add GTY marking.
13890 (gt_ggc_mx (gcc::context *)): New.
13891 (gt_pch_nx (gcc::context *)): New.
13892 (gt_pch_nx (gcc::context *ctxt, gt_pointer_operator op,
13893 void *cookie)): New.
13894 * gengtype.c (open_base_files) <ifiles>: Add context.h.
13896 2013-08-20 Alan Modra <amodra@gmail.com>
13899 * config/rs6000/rs6000.c (rs6000_emit_prologue): Correct ool_adjust.
13900 (rs6000_emit_epilogue): Likewise.
13902 2013-08-19 Dehao Chen <dehao@google.com>
13904 * value-prof.c (gimple_ic): Fix the bug of adding EH edge.
13906 2013-08-19 Peter Bergner <bergner@vnet.ibm.com>
13907 Jakub Jelinek <jakub@redhat.com>
13909 * builtins.def (BUILT_IN_FABSD32): New DFP ABS builtin.
13910 (BUILT_IN_FABSD64): Likewise.
13911 (BUILT_IN_FABSD128): Likewise.
13912 * builtins.c (expand_builtin): Add support for new DFP ABS builtins.
13913 (fold_builtin_1): Likewise.
13914 * config/rs6000/dfp.md (*negtd2_fpr): Handle non-overlapping
13915 destination and source operands.
13916 (*abstd2_fpr): Likewise.
13917 (*nabstd2_fpr): Likewise.
13919 2013-08-19 Richard Sandiford <rdsandiford@googlemail.com>
13921 * config/mips/mips.c (mips_adjust_insn_length): Add checks for
13924 2013-08-19 Aldy Hernandez <aldyh@redhat.com>
13926 * doc/invoke.texi (-fcilkplus): Clarify that implementation is
13929 2013-08-19 Alexander Ivchenko <alexander.ivchenko@intel.com>
13931 * target.def (TARGET_LIBC_HAS_FUNCTION): New target hook.
13932 * builtins.c (default_libc_has_function): New.
13933 (gnu_libc_has_function): Ditto.
13934 (no_c99_libc_has_function): Ditto.
13935 (expand_builtin_cexpi): Using new target hook TARGET_LIBC_HAS_FUNCTION
13936 instead of TARGET_HAS_SINCOS and TARGET_C99_FUNCTIONS.
13937 (fold_builtin_sincos): Likewise.
13938 (fold_builtin_cexp): Likewise.
13939 * builtins.def (DEF_C94_BUILTIN): Likewise.
13940 (DEF_C99_BUILTIN): Likewise.
13941 (DEF_C99_C90RES_BUILTIN): Likewise.
13942 (DEF_C99_COMPL_BUILTIN): New define. Change all complex c99 builtin
13943 definitions to using this define.
13944 * config/darwin-protos.h (darwin_libc_has_function): New.
13945 * config/darwin.c (darwin_libc_has_function): Ditto.
13946 * config/alpha/linux.h: Remove TARGET_C99_FUNCTIONS and
13947 TARGET_HAS_SINCOS. Redefine TARGET_LIBC_HAS_FUNCTION.
13948 * config/darwin.h: Ditto.
13949 * config/elfos.h: Ditto.
13950 * config/freebsd.h: Ditto.
13951 * config/i386/cygming.h: Ditto.
13952 * config/i386/djgpp.h: Ditto.
13953 * config/i386/i386-interix.h: Ditto.
13954 * config/microblaze/microblaze.h: Ditto.
13955 * config/mmix/mmix.h: Ditto.
13956 * config/gnu-user.h: Ditto.
13957 * config/ia64/hpux.h: Ditto.
13958 * config/pa/pa-hpux.h: Ditto.
13959 * config/pdp11/pdp11.h: Ditto.
13960 * config/picochip/picochip.h: Ditto.
13961 * config/linux.h: Ditto.
13962 * config/netbsd.h: Ditto.
13963 * config/openbsd.h: Ditto.
13964 * config/rs6000/aix43.h: Ditto.
13965 * config/rs6000/aix51.h: Ditto.
13966 * config/rs6000/aix52.h: Ditto.
13967 * config/rs6000/aix53.h: Ditto.
13968 * config/rs6000/aix61.h: Ditto.
13969 * config/rs6000/darwin.h: Ditto.
13970 * config/rs6000/linux.h: Ditto.
13971 * config/rs6000/linux64.h: Ditto.
13972 * config/s390/tpf.h: Ditto.
13973 * config/sol2-10.h: Ditto.
13974 * config/sol2.h: Ditto.
13975 * config/vms/vms.h: Ditto.
13976 * config/vxworks.h: Ditto.
13977 * config/linux-android.c (linux_android_libc_has_function):
13978 New linux-specific implementation of TARGET_LIBC_HAS_FUNCTION.
13979 * config/linux-protos.h (linux_android_libc_has_function):
13981 * config/i386/i386.c (ix86_libc_has_function): New.
13982 * config/i386/i386-protos.h
13983 (ix86_libc_has_function): New declaration.
13984 * config/i386/i386.md
13985 ("isinfxf2"): Change condition for TARGET_LIBC_HAS_FUNCTION.
13986 ("isinf<mode>2): Likewise.
13987 * convert.c (convert_to_integer): Using new target hook
13988 TARGET_LIBC_HAS_FUNCTION istead of TARGET_HAS_SINCOS and
13989 TARGET_C99_FUNCTIONS.
13990 * fortran/f95-lang.c (gfc_init_builtin_functions): Ditto.
13991 * tree-ssa-math-opts.c (execute_cse_sincos): Ditto.
13992 * coretypes.h (function_class): New enum for different
13993 classes of functions.
13994 * defaults.h: Remove TARGET_C99_FUNCTIONS and TARGET_HAS_SINCOS.
13995 * doc/tm.texi.in (TARGET_C99_FUNCTIONS): Remove documentation.
13996 (TARGET_HAS_SINCOS): Likewise.
13997 (TARGET_LIBC_HAS_FUNCTION): New.
13998 * doc/tm.texi: Regenerated.
13999 * targhooks.h (default_libc_has_function): New declaration.
14000 (no_c99_libc_has_function): Ditto.
14001 (gnu_libc_has_function): Ditto.
14002 * system.h: Add the poisoning of TARGET_C99_FUNCTIONS
14003 and TARGET_HAS_SINCOS.
14005 2013-08-18 Jan Hubicka <jh@suse.cz>
14007 * Makeifle-in (ipa-devirt.o): New.
14008 (GTFILES): Add ipa-utils.h and ipa-devirt.c
14009 * cgraphunit.c (decide_is_symbol_needed): Do not care about virtuals.
14010 (analyze_functions): Look into possible targets of polymorphic call.
14011 * dumpfile.c (dump_files): Add type-inheritance dump.
14012 * dumpfile.h (TDI_inheritance): New.
14013 * ipa-devirt.c: New file.
14014 * ipa-utils.h (odr_type_d): Forward declare.
14015 (odr_type): New type.
14016 (build_type_inheritance_graph): Declare.
14017 (possible_polymorphic_call_targets): Declare and introduce inline
14018 variant when only edge is pased.
14019 (dump_possible_polymorphic_call_targets): Likewise.
14020 * timevar.def (TV_IPA_INHERITANCE, TV_IPA_VIRTUAL_CALL): New.
14021 * tree.c (type_in_anonymous_namespace_p): Break out from ...
14022 (types_same_for_odr): ... here.
14023 * tree.h (type_in_anonymous_namespace_p): Declare.
14025 2013-08-18 Jakub Jelinek <jakub@redhat.com>
14027 PR tree-optimization/58006
14028 * tree-parloops.c (take_address_of): Don't ICE if get_name
14030 (eliminate_local_variables_stmt): Remove clobber stmts.
14032 2013-08-18 Eric Botcazou <ebotcazou@adacore.com>
14034 * cgraphunit.c (handle_alias_pairs): Reset the alias flag after the
14035 error message is issued for an alias to undefined symbol.
14037 2013-08-18 Jan Hubicka <jh@suse.cz>
14039 * cgraph.c (cgraph_create_indirect_edge): Discover
14040 polymorphic calls and record basic info into indirect_info.
14041 * gimple-fold.c (gimple_fold_call): When doing BINFO based
14042 devirtualization, ignore objc function calls.
14043 * ipa-cp.c (initialize_node_lattices): Be ready for polymorphic
14044 call with no parm index info.
14045 * ipa-prop.c (ipa_analyze_call_uses): Likewise.
14046 * tree.c (virtual_method_call_p): New function.
14047 * tree.h (virtual_method_call_p): Declare.
14049 2013-08-16 Jan Hubicka <jh@suse.cz>
14051 PR middle-end/58179
14052 * tree.c (obj_type_ref_class): Do not ICE on non-method calls.
14054 2013-08-16 David Edelsohn <dje.gcc@gmail.com>
14056 * config/rs6000/rs6000.md (rs6000_get_timebase_ppc32): Add length
14059 2013-08-16 David Malcolm <dmalcolm@redhat.com>
14061 * gengtype.c (type_for_name): Add special-case support for
14062 locating types within the "gcc::" namespace.
14063 (open_base_files): Emit a "using namespace gcc" directive.
14065 2013-08-16 Michael Meissner <meissner@linux.vnet.ibm.com>
14068 * config/rs6000/predicates.md (fusion_gpr_mem_load): Allow the
14069 memory rtx to contain ZERO_EXTEND and SIGN_EXTEND.
14071 * config/rs6000/rs6000-protos.h (fusion_gpr_load_p): Pass operands
14072 array instead of each individual operand as a separate argument.
14073 (emit_fusion_gpr_load): Likewise.
14074 (expand_fusion_gpr_load): Add new function declaration.
14076 * config/rs6000/rs6000.c (fusion_gpr_load_p): Change the calling
14077 signature to have the operands passed as an array, instead of as
14078 separate arguments. Allow ZERO_EXTEND to be in the memory
14079 address, and also SIGN_EXTEND if -mpower8-fusion-sign. Do not
14080 depend on the register live/dead flags when peepholes are run.
14081 (expand_fusion_gpr_load): New function to be called from the
14082 peephole2 pass, to change the register that addis sets to be the
14084 (emit_fusion_gpr_load): Change the calling signature to have the
14085 operands passed as an array, instead of as separate arguments.
14086 Allow ZERO_EXTEND to be in the memory address, and also
14087 SIGN_EXTEND if -mpower8-fusion-sign.
14089 * config/rs6000/rs6000.md (UNSPEC_FUSION_GPR): Delete unused
14090 unspec enumeration.
14091 (power8 fusion peephole/peephole2): Rework the fusion peepholes to
14092 adjust the register addis loads up in the peephole2 pass. Do not
14093 depend on the register live/dead state when the peephole pass is done.
14095 2013-08-16 David Malcolm <dmalcolm@redhat.com>
14097 * gengtype.c (create_user_defined_type): Ensure that the kind
14098 is set to TYPE_USER_STRUCT, fixing a bug seen when an incomplete
14099 declaration is seen before the GTY((user)) marking.
14101 2013-08-16 Bernd Edlinger <bernd.edlinger@hotmail.de>
14104 * config/i386/i386.c (make_resolver_func): Set DECL_UNINLINABLE.
14106 2013-08-16 Jan Hubicka <jh@suse.cz>
14108 * gimple-fold.c (gimple_extract_devirt_binfo_from_cst): Add new
14109 arugment expected_type.
14110 (gimple_fold_call): Use it.
14111 * gimple.h (gimple_extract_devirt_binfo_from_cst): Update prototype.
14112 * ipa-cp.c (ipa_get_indirect_edge_target_1): Update.
14113 * ipa-prop.c (ipa_analyze_virtual_call_uses): Use obj_type_ref_class.
14114 (try_make_edge_direct_virtual_call): Likewise.
14115 * tree.c (obj_type_ref_class): New.
14116 * tree.h (obj_type_ref_class): Use it.
14118 2013-08-16 Gabriel Dos Reis <gdr@integrable-solutions.net>
14120 * sched-vis.c (rtl_slim_pp_initialized): Remove.
14121 (rtl_slim_pp): Likewise.
14122 (init_rtl_slim_pretty_print): Likewise.
14123 (dump_value_slim): Don't call it. Use local pretty printer.
14124 (dump_insn_slim): Likewise.
14125 (dump_rtl_slim): Likewise.
14126 (str_pattern_slim): Likewise.
14127 * tree-mudflap.c (mf_varname_tree): Use local pretty printer.
14130 2013-08-16 Jakub Jelinek <jakub@redhat.com>
14132 PR tree-optimization/58164
14133 * gimple.c (walk_stmt_load_store_addr_ops): For visit_addr
14134 walk gimple_goto_dest of GIMPLE_GOTO.
14136 PR tree-optimization/58165
14137 * tree-call-cdce.c (shrink_wrap_one_built_in_call): If
14138 bi_call must be the last stmt in a bb, don't split_block, instead
14139 use fallthru edge from it and give up if there is none.
14140 Release conds vector when returning early.
14142 2013-08-14 Xinliang David Li <davidxl@google.com>
14144 * config/i386/i386.c (ix86_option_override_internal):
14145 Remove unused variable and field.
14147 2013-08-14 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
14150 * doc/invoke.texi: Add documentation of mcompat-align-parm option.
14151 * config/rs6000/rs6000.opt: Add mcompat-align-parm option.
14152 * config/rs6000/rs6000.c (rs6000_function_arg_boundary): For AIX
14153 and Linux, correct BLKmode alignment when 128-bit alignment is
14154 required and compatibility flag is not set.
14155 (rs6000_gimplify_va_arg): For AIX and Linux, honor specified alignment
14156 for zero-size arguments when compatibility flag is not set.
14158 2013-08-14 Jakub Jelinek <jakub@redhat.com>
14160 PR tree-optimization/58145
14161 * tree-sra.c (build_ref_for_offset): If prev_base has
14162 TREE_THIS_VOLATILE or TREE_SIDE_EFFECTS, propagate it to MEM_REF.
14164 2013-08-14 Xinliang David Li <davidxl@google.com>
14166 * config/i386/i386.c (ix86_option_override_internal):
14167 Fix uninitialized variable error.
14169 2013-08-14 Xinliang David Li <davidxl@google.com>
14171 * config/i386/i386.opt: Define two new options.
14172 * config/i386/x86-tune.def: Add arch selector field in macros.
14173 * config/i386/i386.h: Adjust macro definition.
14174 * config/i386/i386.c (ix86_option_override_internal):
14176 (parse_mtune_ctrl_str): New function.
14177 (set_ix86_tune_features): New function.
14178 (ix86_function_specific_restore): Call the new helper function.
14180 2013-08-14 Andrey Belevantsev <abel@ispras.ru>
14182 PR rtl-optimization/57662
14183 * sel-sched.c (code_motion_process_successors): When the current insn
14184 is removed after the recursive traversal, break from the loop.
14185 Add comments and debug printouts.
14187 2013-08-14 Jakub Jelinek <jakub@redhat.com>
14188 Alexandre Oliva <aoliva@redhat.com>
14191 * config/i386/i386.c (ix86_delegitimize_address): For CM_MEDIUM_PIC
14192 and CM_LARGE_PIC ix86_cmodel fall thru into the -m32 code, handle
14193 there also UNSPEC_PLTOFF.
14195 2013-08-14 Marek Polacek <polacek@redhat.com>
14197 * ipa-inline-analysis.c (add_clause): Avoid shifting integer
14198 NUM_CONDITIONS bit positions.
14200 2013-08-13 Cary Coutant <ccoutant@google.com>
14202 * dwarf2out.c (CHECKSUM_BLOCK): New macro.
14203 (attr_checksum): Hash vector contents instead of pointer.
14204 (attr_checksum_ordered): Likewise.
14206 2013-08-13 Uros Bizjak <ubizjak@gmail.com>
14208 * config/i386/sse.md (*sse2_maskmovdqu): Emit addr32 prefix
14209 when Pmode != word_mode. Add length_address attribute.
14210 (sse3_monitor_<mode>): Merge from sse3_monitor and
14211 sse3_monitor64_<mode> insn patterns. Emit addr32 prefix when
14212 Pmode != word_mode. Update insn length attribute.
14213 * config/i386/i386.c (ix86_option_override_internal): Update
14214 ix86_gen_monitor selection for merged sse3_monitor insn.
14216 2013-08-13 Julian Brown <julian@codesourcery.com>
14218 * config/rs6000/rs6000.c (rs6000_legitimize_reload_address): Don't
14219 perform invalid legitimization on greater-than-word-size modes for
14220 TARGET_E500_DOUBLE.
14222 2013-08-13 Vladimir Makarov <vmakarov@redhat.com>
14224 * ira.c (setup_class_translate_array): Use aclass instead of cl
14225 for classes not fully covered by allocno classes.
14227 2013-08-13 Jakub Jelinek <jakub@redhat.com>
14229 PR tree-optimization/57661
14230 * tree-inline.h (struct copy_body_data): Add blocks_to_copy field.
14231 * tree-inline.c (tree_function_versioning): Initialize it.
14232 (remap_gimple_stmt): Return GIMPLE_NOP for MEM_REF lhs clobber stmts
14233 if id->blocks_to_copy and MEM_REF's SSA_NAME is defined in a block
14234 that is not being copied.
14237 * asan.c (instrument_strlen_call): Fix typo in comment.
14238 Use char * type even for the lhs of POINTER_PLUS_EXPR.
14240 2013-08-13 Steve Ellcey <sellcey@mips.com>
14242 * config/mips/mips.md (prefetch): Use lw instead of ld on
14243 loongson in 32bit mode.
14245 2013-08-13 Nick Clifton <nickc@redhat.com>
14247 * config.gcc: (avr-linux): Allow for tmake_file not being empty.
14249 2013-08-13 Jan Hubicka <jh@suse.cz>
14251 * cgraph.c (cgraph_turn_edge_to_speculative): Return newly
14252 introduced edge; fix typo in sanity check.
14253 (cgraph_resolve_speculation): Export; improve diagnostic.
14254 (cgraph_redirect_edge_call_stmt_to_callee): Better diagnostic; cancel
14255 speculation at type mismatch.
14256 * cgraph.h (cgraph_turn_edge_to_speculative): Update.
14257 (cgraph_resolve_speculation): Declare.
14258 (symtab_can_be_discarded): New function.
14259 * value-prof.c (gimple_ic_transform): Remove actual transform code.
14260 * ipa-inline-transform.c (speculation_removed): New global var.
14261 (clone_inlined_nodes): See if speculation can be removed.
14262 (inline_call): If speculations was removed, we growths may not match.
14263 * ipa-inline.c (can_inline_edge_p): Add DISREGARD_LIMITS parameter.
14264 (speculation_useful_p): New function.
14265 (resolve_noninline_speculation): New function.
14266 (inline_small_functions): Resolve useless speculations.
14267 * ipa-inline.h (speculation_useful_p): Declare
14268 * ipa.c (can_replace_by_local_alias): Simplify.
14269 (ipa_profile): Produce speculative calls in non-lto, too;
14270 add simple cost model; produce local aliases.
14272 2013-08-13 David Malcolm <dmalcolm@redhat.com>
14274 * config/i386/t-i386 (i386.o): Rename stray PIPELINE_H to
14277 2013-08-12 Paolo Carlini <paolo.carlini@oracle.com>
14279 * config/i386/i386.c (ix86_function_versions): Use error + inform.
14281 2013-08-12 Uros Bizjak <ubizjak@gmail.com>
14283 * config/i386/i386.md (floatunssi<mode>2 expand): Use MODEF mode
14284 iterator instead of X87MODEF.
14286 2013-08-12 Perez Read <netfirewall@gmail.com>
14289 * config/i386/i386.md (*movabs<mode>_1): Add <ptrsize> PTR before
14290 operand 0 for intel asm alternative.
14291 (*movabs<mode>_2): Ditto for operand 1.
14293 2013-08-12 James Greenhalgh <james.greenhalgh@arm.com>
14295 * config/aarch64/arm_none.h
14296 (vdup<bhsd>_lane_<su><8,16,32,64>): Fix macro call.
14298 2013-08-12 Nick Clifton <nickc@redhat.com>
14300 * config.gcc (m32r-linux): Allow for tmake_file not being empty.
14302 2013-08-12 Yuri Rumyantsev <ysrumyan@gmail.com>
14304 * config/i386/i386.md (floatunssi<mode>2 expand): Add new
14305 expand for QI/HImode operand to produce more effictive code for
14306 unsigned char(short) --> float(double) conversion.
14308 2013-08-12 Alexander Monakov <amonakov@ispras.ru>
14310 * doc/invoke.texi: Mention that -ftls-model does not force the final
14313 2013-08-12 Marek Polacek <polacek@redhat.com>
14314 Marc Glisse <marc.glisse@inria.fr>
14316 PR tree-optimization/57980
14317 * tree-tailcall.c (process_assignment): Call build_minus_one_cst
14318 when creating -1 constant.
14320 2013-08-10 Jan Hubicka <jh@suse.cz>
14322 Workaround binutils PR14342.
14323 * tree-profile.c (init_ic_make_global_vars): Add LTO path.
14324 (gimple_init_edge_profiler): Likewise.
14325 (gimple_gen_ic_func_profiler): Likewise.
14327 2013-08-09 Jan Hubicka <jh@suse.cz>
14329 * cgraph.c (cgraph_create_edge_1): Clear speculative flag.
14331 2013-08-09 Xinliang David Li <davidxl@google.com>
14333 * config/i386/stringop.def: New file.
14334 * config/i386/stringop.opt: New file.
14335 * config/i386/i386-opts.h: Include stringopt.def.
14336 * config/i386/i386.opt: Include stringopt.opt.
14337 * config/i386/i386.c (ix86_option_override_internal):
14338 Override default size based stringop inline strategies with options.
14339 * config/i386/i386.c (ix86_parse_stringop_strategy_string):
14342 2013-08-09 Jan Hubicka <jh@suse.cz>
14344 * ipa-ref.c (ipa_clear_stmts_in_references): Clear lto_stmt_uid, too.
14346 2013-08-09 Jan Hubicka <jh@suse.cz>
14348 * cgraph.c (cgraph_resolve_speculation): Cut frequency to
14350 (dump_cgraph_node): Dump profile-id.
14351 * cgraph.h (cgraph_indirect_call_info): Add common_target_id
14352 and common_target_probability.
14353 * lto-cgraph.c (lto_output_edge): Stream common targets.
14354 (lto_output_node): Stream profile ids.
14355 (input_node): Stream profile ids.
14356 (input_edge): Stream common targets.
14357 * lto-streamer-in.c (fixup_call_stmt_edges_1): Fix formatting.
14358 * ipa.c: Include value-prof.h
14359 (ipa_profile_generate_summary): Turn indirect call statement histograms
14360 into common targets.
14361 (ipa_profile): Turn common targets into speculative edges.
14363 2013-08-09 Jan Hubicka <jh@suse.cz>
14365 * cgraph.h (cgraph_node): Add profile_id.
14366 * value-prof.c (cgraph_node_map): Turn into pointer_map.
14367 (init_node_map): Rewrite to handle hashes increas of incremental IDs.
14368 (del_node_map): Update.
14369 (find_func_by_funcdef_no): Replace by ...
14370 (find_func_by_profile_id): ... this one.
14371 (gimple_ic_transform): Do not remove useful histograms when
14372 speculation is not done; dump info when indirect call removal
14374 * value-prof.h (find_func_by_profile_id, gimple_ic): Declare.
14375 * gcov-io.h (__gcov_indirect_call_profiler): Replace by ...
14376 (__gcov_indirect_call_profiler_v2): .. this one.
14377 * profile.h (init_node_map): Update.
14378 * coverage.c (coverage_compute_profile_id): New function.
14379 * coverage.h (coverage_compute_profile_id): Declare.
14380 * tree-profile.c (init_ic_make_global_vars): Make
14381 __gcov_indirect_call_callee and __gcov_indirect_call_counters global.
14382 (gimple_init_edge_profiler): Update prototype of
14383 __gcov_indirect_call_profiler.
14384 (gimple_gen_ic_func_profiler): Simplify.
14385 (tree_profiling): Use init_node_map
14387 2013-08-09 Jan Hubicka <jh@suse.cz>
14389 * cgraphbuild.c (cgraph_rebuild_references): Rebuild only
14390 non-speculative refs.
14391 * cgraph.c (cgraph_update_edge_in_call_site_hash): New function.
14392 (cgraph_add_edge_to_call_site_hash): Deal with speculative calls.
14393 (cgraph_set_call_stmt): Likewise.
14394 (cgraph_create_edge_1): Fix release checking compilatoin;
14395 clear lto_stmt_uid.
14396 (cgraph_free_edge): Free indirect info.
14397 (cgraph_turn_edge_to_speculative): New function.
14398 (cgraph_speculative_call_info): New function.
14399 (cgraph_make_edge_direct): Return direct edge; handle speculation.
14400 (cgraph_redirect_edge_call_stmt_to_callee): Expand speculative edges.
14401 (dump_cgraph_node): Dump speculation.
14402 (verify_edge_count_and_frequency): Accept speculative edges.
14403 (verify_edge_corresponds_to_fndecl): Handle partitioned cgraph.
14404 (verify_cgraph_node): Handle speculation.
14405 * cgraph.h (cgraph_edge): Add SPECULATIVE flag.
14406 (cgraph_set_call_stmt): Update prototype.
14407 (cgraph_make_edge_direct): Update prototype.
14408 (cgraph_speculative_call_info): Declare.
14409 * ipa-cp.c (ipcp_discover_new_direct_edges): Be ready for edge
14410 to change; update call of ipa_find_references.
14411 * ipa-ref.c (ipa_record_reference): Fix return value; clear
14412 lto_stmt_uid and speculative flags.
14413 (ipa_dump_references): Dump speculation.
14414 (ipa_clone_references): Clone speculative flag.
14415 (ipa_clone_referring): Likewise.
14416 (ipa_clone_ref): New function.
14417 (ipa_find_reference): Look into lto_stmt_uids
14418 (ipa_clear_stmts_in_references): Do not clear speculative calls.
14419 * ipa-ref.h (ipa_ref): Add lto_stmt_uid and speculative flags.
14420 (ipa_find_reference): Update declaration.
14421 (ipa_clone_ref): Declare.
14422 * lto-cgraph.c (lto_output_edge): Make lto_stmt_uids start from 0;
14423 stream speculative flag.
14424 (lto_output_ref): Stream statements uids and speculation.
14425 (input_ref): Likewise.
14426 (input_edge): Stream speuclation.
14427 * cgraphclones.c (cgraph_clone_edge): Clone speculation.
14428 (cgraph_set_call_stmt_including_clones): Handle speculation.
14429 * ipa-inline.c (heap_edge_removal_hook): New function.
14430 (inline_small_functions): Register it.
14431 * lto-streamer-in.c (fixup_call_stmt_edges_1): Bounds checking;
14432 also initialize refs.
14433 * ipa-prop.c (ipa_make_edge_direct_to_target): Be ready for
14435 (try_make_edge_direct_simple_call): Likewise.
14436 (try_make_edge_direct_simple_call): Likewise.
14437 (update_indirect_edges_after_inlining): Likewise.
14438 (remove_described_reference): Look proper lto_stmt_uid.
14439 (propagate_controlled_uses): Likewise.
14440 (propagate_controlled_uses): Liekwise.
14441 * tree-inline.c (copy_bb): Copy speculative edges.
14442 (redirect_all_calls): New function.
14443 (copy_cfg_body): Do redirection after loop info is updated.
14444 (delete_unreachable_blocks_update_callgraph): Updadte speculation.
14446 2013-08-09 Jan Hubicka <jh@suse.cz>
14448 * lto-streamer-out.c (output_function): Renumber PHIs.
14449 * lto-streamer-in.c (input_function): Likewise.
14451 2013-08-09 James Greenhalgh <james.greenhalgh@arm.com>
14453 * config/aarch64/aarch64-simd-builtins.def (get_lane_signed): Remove.
14454 (get_lane_unsigned): Likewise.
14455 (dup_lane_scalar): Likewise.
14456 (get_lane): enable for VALL.
14457 * config/aarch64/aarch64-simd.md
14458 (aarch64_dup_lane_scalar<mode>): Remove.
14459 (aarch64_get_lane_signed<mode>): Likewise.
14460 (aarch64_get_lane_unsigned<mode>): Likewise.
14461 (aarch64_get_lane_extend<GPI:mode><VDQQH:mode>): New.
14462 (aarch64_get_lane_zero_extendsi<mode>): Likewise.
14463 (aarch64_get_lane<mode>): Enable for all vector modes.
14464 (aarch64_get_lanedi): Remove misleading constraints.
14465 * config/aarch64/arm_neon.h
14466 (__aarch64_vget_lane_any): Define.
14467 (__aarch64_vget<q>_lane_<fpsu><8,16,32,64>): Likewise.
14468 (vget<q>_lane_<fpsu><8,16,32,64>): Use __aarch64_vget_lane macros.
14469 (vdup<bhsd>_lane_<su><8,16,32,64>): Likewise.
14470 * config/aarch64/iterators.md (VDQQH): New.
14471 (VDQQHS): Likewise.
14472 (vwcore): Likewise.
14474 2013-08-09 Eric Botcazou <ebotcazou@adacore.com>
14476 * configure.ac: Add GAS check for LEON instructions on SPARC.
14477 * configure: Regenerate.
14478 * config.in: Likewise.
14479 * config.gcc (with_cpu): Remove sparc-leon*-* and deal with LEON in the
14481 * config/sparc/sparc.opt (LEON, LEON3): New masks.
14482 * config/sparc/sparc.h (ASM_CPU32_DEFAULT_SPEC): Set to AS_LEON_FLAG
14484 (ASM_CPU_SPEC): Pass AS_LEON_FLAG if -mcpu=leon or -mcpu=leon3.
14485 (AS_LEON_FLAG): New macro.
14486 * config/sparc/sparc.c (sparc_option_override): Set MASK_LEON for leon
14487 and MASK_LEON3 for leon3 and unset them if HAVE_AS_LEON is not defined.
14488 Deal with LEON and LEON3 for the memory model.
14489 * config/sparc/sync.md (atomic_compare_and_swap<mode>): Enable if LEON3
14490 (atomic_compare_and_swap<mode>_1): Likewise.
14491 (*atomic_compare_and_swap<mode>_1): Likewise.
14493 2013-08-09 Zhenqiang Chen <zhenqiang.chen@linaro.org>
14495 * config/arm/neon.md (vcond): Fix floating-point vector
14496 comparisons against 0.
14498 2013-08-08 Vladimir Makarov <vmakarov@redhat.com>
14500 * lra-constraints.c (emit_spill_move): Remove assert.
14501 (process_alt_operands): Add more debugging
14502 output. Increase reject for spilling into memory. Decrease
14503 reject for reloading scratch.
14504 (split_reg): Use HARD_REGNO_CALLER_SAVE_MODE.
14506 2013-08-08 Steve Ellcey <sellcey@mips.com>
14508 * config/mips/mti-linux.h (SYSROOT_SUFFIX_SPEC): Add nan2008.
14509 * config/mips/t-mti-elf (MULTILIB_OPTIONS): Make mips16 and
14510 micromips incompatible. Add nan2008.
14511 (MULTILIB_DIRNAMES): Add nan2008.
14512 (MULTILIB_EXCEPTIONS): Remove mips16/micromips entry.
14513 * config/mips/t-mti-linux (MULTILIB_OPTIONS): Make mips16
14514 and micromips incompatible. Add nan2008.
14515 (MULTILIB_DIRNAMES): Add nan2008.
14516 (MULTILIB_EXCEPTIONS): Remove mips16/micromips entry.
14518 2013-08-08 Richard Sandiford <rdsandiford@googlemail.com>
14520 PR rtl-optimization/58079
14521 * combine.c (combine_simplify_rtx): Avoid using SUBST if
14522 simplify_comparison has widened a comparison with an integer.
14524 2013-08-08 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
14526 * config/arm/neon.md (movmisalign<mode>): Disable when we
14527 don't allow unaligned accesses.
14528 (*movmisalign<mode>_neon_store): Likewise.
14529 (*movmisalign<mode>_neon_load): Likewise.
14530 (*movmisalign<mode>_neon_store): Likewise.
14531 (*movmisalign<mode>_neon_load): Likewise.
14533 2013-08-08 Jan Hubicka <jh@suse.cz>
14535 * cgraphbuild.c (build_cgraph_edges): Do not walk into debugs.
14536 (make_pass_rebuild_cgraph_edges): Also clear references.
14537 * cgraph.c (verify_cgraph_node): Add basic ipa-ref verifier.
14538 * ipa-inline-transform.c (inline_transform): Remove all references
14540 * cgraphunit.c (expand_function): Remove all references after
14542 * ipa-ref.c (ipa_ref_has_aliases_p): Fix formatting.
14543 (ipa_find_reference): Rewrite to iterator.
14544 (remove_stmt_references): Likewise.
14545 (ipa_clear_stmts_in_references): New function.
14546 * ipa-ref.h (ipa_clear_stmts_in_references): Declare.
14547 * cgraphclones.c (cgraph_materialize_all_clones): Remove or
14549 * ipa-split.c (split_function): Remove references in split function.
14551 2013-08-08 Richard Earnshaw <rearnsha@arm.com>
14554 * config/arm/arm/neon.md (neon_vld1_dupdi): New expand pattern.
14555 (neon_vld1_dup<mode> VD iterator): Iterate over VD not VDX.
14557 2013-08-08 Richard Earnshaw <rearnsha@arm.com>
14560 * config/arm/arm.c (aapcs_vfp_allocate): Decompose the argument if the
14561 suggested mode for the assignment isn't compatible with the
14562 registers required.
14564 2013-08-08 Bernd Edlinger <bernd.edlinger@hotmail.de>
14567 * config/arm/arm.h (MALLOC_ABI_ALIGNMENT): Define.
14569 2013-08-07 Xinliang David Li <davidxl@google.com>
14571 * config/i386/i386.opt: New option -mtune-ctrl=.
14572 * config/i386/x86-tune.def: New file.
14573 * config/i386/i386.h: include x86-tune.def.
14574 * config/i386/i386.c (ix86_option_override_internal):
14575 Parsing -mtune-ctrl= option and set tune features.
14577 2013-08-07 Oleg Endo <olegendo@gcc.gnu.org>
14580 * config/rs6000/rs6000.c (gen_2arg_fn_t): Remove typedef.
14581 (rs6000_emit_swdiv, rs6000_emit_swrsqrt): Don't cast result of GEN_FCN
14584 2013-08-07 Eric Botcazou <ebotcazou@adacore.com>
14586 * rtl.h (update_alignments): Declare.
14587 * final.c (grow_label_align): New function extracted from...
14588 (shorten_branches): ...here. Call it.
14589 (update_alignments): New function.
14590 * reorg.c (sibling_labels): New variable.
14591 (get_label_before): Add SIBLING parameter. If it is non-zero, push
14592 the new label along with it onto the sibling_labels vector.
14593 (fill_simple_delay_slots): Adjust call to get_label_before.
14594 (fill_slots_from_thread): Likewise.
14595 (relax_delay_slots): Likewise.
14596 (make_return_insns): Likewise.
14597 (dbr_schedule): Invoke update_alignment on the sibling_labels vector.
14599 2013-08-07 Eric Botcazou <ebotcazou@adacore.com>
14601 * diagnostic.c (diagnostic_classify_diagnostic): Accept zero index and
14602 document its semantics.
14603 (diagnostic_report_diagnostic): Adjust accordingly.
14605 2013-08-07 David Malcolm <dmalcolm@redhat.com>
14607 * config/sparc/sparc.c (insert_pass_work_around_errata): Move into...
14608 (sparc_option_override): ...and port to new C++ pass API.
14609 * config/sparc/t-sparc (sparc.o): Add dep on CONTEXT_H
14611 2013-08-07 Peter Bergner <bergner@vnet.ibm.com>
14613 * config/rs6000/rs6000.c (htm_expand_builtin) <case 0>: Remove.
14615 2013-08-06 Caroline Tice <cmtice@google.com>
14617 * gcc.c (VTABLE_VERIFICATION_SPEC): New definition.
14618 (LINK_COMMAND_SPEC): Add VTABLE_VERIFICATION_SPEC.
14619 * tree-pass.h: Add pass_vtable_verify.
14620 * varasm.c (assemble_variable): Add code to properly set the comdat
14621 section and name for the .vtable_map_vars section.
14622 (assemble_vtyv_preinit_initializer): New function.
14623 (default_sectin_type_flags): Make sure .vtable_map_vars section has
14625 * output.h: Add function decl for assemble_vtv_preinit_initializer.
14626 * vtable-verify.c: New file.
14627 * vtable-verify.h: New file.
14628 * flag-types.h (enum vtv_priority): Defintions for flag_vtable_verify
14629 initialiation levels.
14630 * timevar.def (TV_VTABLE_VERIFICATION): New definition.
14631 * passes.def: Insert pass_vtable_verify.
14632 * aclocal.m4: Reorder includes.
14633 * doc/invoke.texi: Document the -fvtable-verify=, -fvtv-debug, and
14634 -fvtv-counts options.
14635 * config/gnu-user.h (GNU_USER_TARGET_STARTFILE_SPEC): Add vtv_start*.o,
14636 as appropriate, if -fvtable-verify=... is used.
14637 (GNU_USER_TARGET_ENDFILE_SPEC): Add vtv_end*.o as appropriate, if
14638 -fvtable-verify=... is used.
14639 * Makefile.in (OBJS): Add vtable-verify.o to list.
14640 (vtable-verify.o): Add new build rule.
14641 (GTFILES): Add vtable-verify.c to list.
14642 * common.opt (fvtable-verify=): New flag.
14643 (vtv_priority): Values for fvtable-verify= flag.
14644 (fvtv-counts): New flag.
14645 (fvtv-debug): New flag.
14646 * tree.h (save_vtable_map_decl): New extern function decl.
14648 2013-08-07 David Malcolm <dmalcolm@redhat.com>
14650 * config/rl78/rl78.c (rl78_devirt_pass): Convert from a struct to...
14651 (pass_rl78_devirt): ...new subclass of rtl_opt_pass along with...
14652 (pass_data_rl78_devirt): ...new pass_data instance and...
14653 (make_pass_rl78_devirt): ...new function.
14654 (rl78_asm_file_start): Port pass registration to new C++ API.
14656 2013-08-07 David Malcolm <dmalcolm@redhat.com>
14658 * coretypes.h (rtl_opt_pass): Add.
14659 (gcc::context): Add.
14660 * config/epiphany/epiphany.c (pass_mode_switch_use): New.
14661 (epiphany_init): Port to new C++ pass API.
14662 (epiphany_optimize_mode_switching): Likewise.
14663 * pass_manager.h (pass_manager::get_pass_split_all_insns): New.
14664 (pass_manager::get_pass_mode_switching): New.
14665 (pass_manager::get_pass_peephole2): New.
14666 * mode-switching.c (pass_mode_switching): Add clone method.
14667 * recog.c (pass_peephole2): Add clone method.
14668 (pass_split_all_insns): Add clone method.
14670 2013-08-06 David Malcolm <dmalcolm@redhat.com>
14672 * config/mips/mips.c (insert_pass_mips_machine_reorg2): Move into...
14673 (mips_option_override): ...here, porting to new C++ API for passes.
14675 2013-08-06 Jan Hubicka <jh@suse.cz>
14677 * cgraph.c (cgraph_get_body): New function based on lto.c
14679 * cgraph.h (cgraph_get_body): Declare.
14680 * cgraphclones.c (cgraph_create_virtual_clone): Commonize WPA and
14682 * cgraphunit.c (expand_function): Get body prior expanding.
14683 * ipa.c (function_and_variable_visibility): Use gimple_has_body_p test.
14684 * lto-cgraph.c (lto_output_node): Do not stream bodies we don't
14686 * passes.c (do_per_function_toporder): Get body.
14687 * tree-inline.c (expand_call_inline): Get body prior inlining it.
14688 * tree-ssa-structalias.c (ipa_pta_execute): Get body; skip clones.
14690 2013-08-06 Martin Jambor <mjambor@suse.cz>
14693 * cgraphunit.c (cgraph_finalize_function): Assert that nested function
14694 is not re-finalized. Rename second parameter to no_collect.
14696 2013-08-06 Martin Jambor <mjambor@suse.cz>
14698 PR middle-end/58041
14699 * gimple-ssa-strength-reduction.c (replace_ref): Make sure built
14700 MEM_REF has proper alignment information.
14702 2013-08-05 Oleg Endo <olegendo@gcc.gnu.org>
14705 * recog.h (rtx (*insn_gen_fn) (rtx, ...)): Replace typedef with new
14707 * expr.c (move_by_pieces_1, store_by_pieces_2): Replace argument
14708 rtx (*) (rtx, ...) with insn_gen_fn.
14709 * genoutput.c (output_insn_data): Cast gen_? function pointers to
14710 insn_gen_fn::stored_funcptr. Add initializer braces.
14712 2013-08-05 David Malcolm <dmalcolm@redhat.com>
14714 Rewrite how instances of passes are cloned to remove assumptions
14715 about their sizes (thus allowing pass subclasses to have
14716 additional data fields, albeit non-GC-managed ones at this point).
14718 * passes.c (make_pass_instance): Now that passes have clone
14719 methods, rewrite this function to eliminate XNEW and memcpy
14720 calls that used hardcoded sizes. Since this function no longer
14721 creates pass instances, rename it to...
14722 (add_pass_instance): ...this. Document the old way that passes were
14723 numbered and flagged, and rework this function to continue using it.
14724 (next_pass_1): Add an initial_pass argument for use by
14726 (position_pass): When adding multiple instances of a pass, use
14727 the pass's clone method, rather than relying on the XNEW/memcpy
14728 within the former make_pass_instance (now add_pass_instance).
14729 (pass_manager::pass_manager): When invoking next_pass_1, also supply
14730 the initial instance of the current pass within the pass manager.
14732 2013-08-05 David Malcolm <dmalcolm@redhat.com>
14734 This is the automated part of the conversion of passes from C
14735 structs to C++ classes.
14737 Patch autogenerated by refactor_passes.py from
14738 https://github.com/davidmalcolm/gcc-refactoring-scripts
14739 revision 03fe39476a4c4ea450b49e087cfa817b5f92021e
14741 * asan.c (pass_asan): Convert from a global struct to a subclass of
14742 gimple_opt_pass along with...
14743 (pass_data_asan): ...new pass_data instance and...
14744 (make_pass_asan): ...new function.
14745 (pass_asan_O0): Convert from a global struct to a subclass of
14746 gimple_opt_pass along with...
14747 (pass_data_asan_O0): ...new pass_data instance and...
14748 (make_pass_asan_O0): ...new function.
14749 * auto-inc-dec.c (pass_inc_dec): Convert from a global struct to a
14750 subclass of rtl_opt_pass along with...
14751 (pass_data_inc_dec): ...new pass_data instance and...
14752 (make_pass_inc_dec): ...new function.
14753 * bb-reorder.c (pass_reorder_blocks): Convert from a global struct to
14754 a subclass of rtl_opt_pass along with...
14755 (pass_data_reorder_blocks): ...new pass_data instance and...
14756 (make_pass_reorder_blocks): ...new function.
14757 (pass_duplicate_computed_gotos): Convert from a global struct to a
14758 subclass of rtl_opt_pass along with...
14759 (pass_data_duplicate_computed_gotos): ...new pass_data instance and...
14760 (make_pass_duplicate_computed_gotos): ...new function.
14761 (pass_partition_blocks): Convert from a global struct to a subclass of
14762 rtl_opt_pass along with...
14763 (pass_data_partition_blocks): ...new pass_data instance and...
14764 (make_pass_partition_blocks): ...new function.
14765 * bt-load.c (pass_branch_target_load_optimize1): Convert from a global
14766 struct to a subclass of rtl_opt_pass along with...
14767 (pass_data_branch_target_load_optimize1): ...new pass_data instance
14769 (make_pass_branch_target_load_optimize1): ...new function.
14770 (pass_branch_target_load_optimize2): Convert from a global struct to a
14771 subclass of rtl_opt_pass along with...
14772 (pass_data_branch_target_load_optimize2): ...new pass_data instance
14774 (make_pass_branch_target_load_optimize2): ...new function.
14775 * cfgcleanup.c (pass_jump): Convert from a global struct to a subclass
14776 of rtl_opt_pass along with...
14777 (pass_data_jump): ...new pass_data instance and...
14778 (make_pass_jump): ...new function.
14779 (pass_jump2): Convert from a global struct to a subclass of
14780 rtl_opt_pass along with...
14781 (pass_data_jump2): ...new pass_data instance and...
14782 (make_pass_jump2): ...new function.
14783 * cfgexpand.c (pass_expand): Convert from a global struct to a
14784 subclass of rtl_opt_pass along with...
14785 (pass_data_expand): ...new pass_data instance and...
14786 (make_pass_expand): ...new function.
14787 * cfgrtl.c (pass_free_cfg): Convert from a global struct to a subclass
14788 of rtl_opt_pass along with...
14789 (pass_data_free_cfg): ...new pass_data instance and...
14790 (make_pass_free_cfg): ...new function.
14791 (pass_into_cfg_layout_mode): Convert from a global struct to a
14792 subclass of rtl_opt_pass along with...
14793 (pass_data_into_cfg_layout_mode): ...new pass_data instance and...
14794 (make_pass_into_cfg_layout_mode): ...new function.
14795 (pass_outof_cfg_layout_mode): Convert from a global struct to a
14796 subclass of rtl_opt_pass along with...
14797 (pass_data_outof_cfg_layout_mode): ...new pass_data instance and...
14798 (make_pass_outof_cfg_layout_mode): ...new function.
14799 * cgraphbuild.c (pass_build_cgraph_edges): Convert from a global
14800 struct to a subclass of gimple_opt_pass along with...
14801 (pass_data_build_cgraph_edges): ...new pass_data instance and...
14802 (make_pass_build_cgraph_edges): ...new function.
14803 (pass_rebuild_cgraph_edges): Convert from a global struct to a
14804 subclass of gimple_opt_pass along with...
14805 (pass_data_rebuild_cgraph_edges): ...new pass_data instance and...
14806 (make_pass_rebuild_cgraph_edges): ...new function.
14807 (pass_remove_cgraph_callee_edges): Convert from a global struct to a
14808 subclass of gimple_opt_pass along with...
14809 (pass_data_remove_cgraph_callee_edges): ...new pass_data instance
14811 (make_pass_remove_cgraph_callee_edges): ...new function.
14812 * combine-stack-adj.c (pass_stack_adjustments): Convert from a global
14813 struct to a subclass of rtl_opt_pass along with...
14814 (pass_data_stack_adjustments): ...new pass_data instance and...
14815 (make_pass_stack_adjustments): ...new function.
14816 * combine.c (pass_combine): Convert from a global struct to a subclass
14817 of rtl_opt_pass along with...
14818 (pass_data_combine): ...new pass_data instance and...
14819 (make_pass_combine): ...new function.
14820 * compare-elim.c (pass_compare_elim_after_reload): Convert from a
14821 global struct to a subclass of rtl_opt_pass along with...
14822 (pass_data_compare_elim_after_reload): ...new pass_data instance
14824 (make_pass_compare_elim_after_reload): ...new function.
14825 * cprop.c (pass_rtl_cprop): Convert from a global struct to a subclass
14826 of rtl_opt_pass along with...
14827 (pass_data_rtl_cprop): ...new pass_data instance and...
14828 (make_pass_rtl_cprop): ...new function.
14829 * cse.c (pass_cse): Convert from a global struct to a subclass of
14830 rtl_opt_pass along with...
14831 (pass_data_cse): ...new pass_data instance and...
14832 (make_pass_cse): ...new function.
14833 (pass_cse2): Convert from a global struct to a subclass of
14834 rtl_opt_pass along with...
14835 (pass_data_cse2): ...new pass_data instance and...
14836 (make_pass_cse2): ...new function.
14837 (pass_cse_after_global_opts): Convert from a global struct to a
14838 subclass of rtl_opt_pass along with...
14839 (pass_data_cse_after_global_opts): ...new pass_data instance and...
14840 (make_pass_cse_after_global_opts): ...new function.
14841 * dce.c (pass_ud_rtl_dce): Convert from a global struct to a subclass
14842 of rtl_opt_pass along with...
14843 (pass_data_ud_rtl_dce): ...new pass_data instance and...
14844 (make_pass_ud_rtl_dce): ...new function.
14845 (pass_fast_rtl_dce): Convert from a global struct to a subclass of
14846 rtl_opt_pass along with...
14847 (pass_data_fast_rtl_dce): ...new pass_data instance and...
14848 (make_pass_fast_rtl_dce): ...new function.
14849 * df-core.c (pass_df_initialize_opt): Convert from a global struct to
14850 a subclass of rtl_opt_pass along with...
14851 (pass_data_df_initialize_opt): ...new pass_data instance and...
14852 (make_pass_df_initialize_opt): ...new function.
14853 (pass_df_initialize_no_opt): Convert from a global struct to a
14854 subclass of rtl_opt_pass along with...
14855 (pass_data_df_initialize_no_opt): ...new pass_data instance and...
14856 (make_pass_df_initialize_no_opt): ...new function.
14857 (pass_df_finish): Convert from a global struct to a subclass of
14858 rtl_opt_pass along with...
14859 (pass_data_df_finish): ...new pass_data instance and...
14860 (make_pass_df_finish): ...new function.
14861 * dse.c (pass_rtl_dse1): Convert from a global struct to a subclass of
14862 rtl_opt_pass along with...
14863 (pass_data_rtl_dse1): ...new pass_data instance and...
14864 (make_pass_rtl_dse1): ...new function.
14865 (pass_rtl_dse2): Convert from a global struct to a subclass of
14866 rtl_opt_pass along with...
14867 (pass_data_rtl_dse2): ...new pass_data instance and...
14868 (make_pass_rtl_dse2): ...new function.
14869 * dwarf2cfi.c (pass_dwarf2_frame): Convert from a global struct to a
14870 subclass of rtl_opt_pass along with...
14871 (pass_data_dwarf2_frame): ...new pass_data instance and...
14872 (make_pass_dwarf2_frame): ...new function.
14873 * except.c (pass_set_nothrow_function_flags): Convert from a global
14874 struct to a subclass of rtl_opt_pass along with...
14875 (pass_data_set_nothrow_function_flags): ...new pass_data instance
14877 (make_pass_set_nothrow_function_flags): ...new function.
14878 (pass_convert_to_eh_region_ranges): Convert from a global struct to a
14879 subclass of rtl_opt_pass along with...
14880 (pass_data_convert_to_eh_region_ranges): ...new pass_data instance
14882 (make_pass_convert_to_eh_region_ranges): ...new function.
14883 * final.c (pass_compute_alignments): Convert from a global struct to a
14884 subclass of rtl_opt_pass along with...
14885 (pass_data_compute_alignments): ...new pass_data instance and...
14886 (make_pass_compute_alignments): ...new function.
14887 (pass_final): Convert from a global struct to a subclass of
14888 rtl_opt_pass along with...
14889 (pass_data_final): ...new pass_data instance and...
14890 (make_pass_final): ...new function.
14891 (pass_shorten_branches): Convert from a global struct to a subclass of
14892 rtl_opt_pass along with...
14893 (pass_data_shorten_branches): ...new pass_data instance and...
14894 (make_pass_shorten_branches): ...new function.
14895 (pass_clean_state): Convert from a global struct to a subclass of
14896 rtl_opt_pass along with...
14897 (pass_data_clean_state): ...new pass_data instance and...
14898 (make_pass_clean_state): ...new function.
14899 * function.c (pass_instantiate_virtual_regs): Convert from a global
14900 struct to a subclass of rtl_opt_pass along with...
14901 (pass_data_instantiate_virtual_regs): ...new pass_data instance and...
14902 (make_pass_instantiate_virtual_regs): ...new function.
14903 (pass_leaf_regs): Convert from a global struct to a subclass of
14904 rtl_opt_pass along with...
14905 (pass_data_leaf_regs): ...new pass_data instance and...
14906 (make_pass_leaf_regs): ...new function.
14907 (pass_thread_prologue_and_epilogue): Convert from a global struct to a
14908 subclass of rtl_opt_pass along with...
14909 (pass_data_thread_prologue_and_epilogue): ...new pass_data instance
14911 (make_pass_thread_prologue_and_epilogue): ...new function.
14912 (pass_match_asm_constraints): Convert from a global struct to a
14913 subclass of rtl_opt_pass along with...
14914 (pass_data_match_asm_constraints): ...new pass_data instance and...
14915 (make_pass_match_asm_constraints): ...new function.
14916 * fwprop.c (pass_rtl_fwprop): Convert from a global struct to a
14917 subclass of rtl_opt_pass along with...
14918 (pass_data_rtl_fwprop): ...new pass_data instance and...
14919 (make_pass_rtl_fwprop): ...new function.
14920 (pass_rtl_fwprop_addr): Convert from a global struct to a subclass of
14921 rtl_opt_pass along with...
14922 (pass_data_rtl_fwprop_addr): ...new pass_data instance and...
14923 (make_pass_rtl_fwprop_addr): ...new function.
14924 * gcse.c (pass_rtl_pre): Convert from a global struct to a subclass of
14925 rtl_opt_pass along with...
14926 (pass_data_rtl_pre): ...new pass_data instance and...
14927 (make_pass_rtl_pre): ...new function.
14928 (pass_rtl_hoist): Convert from a global struct to a subclass of
14929 rtl_opt_pass along with...
14930 (pass_data_rtl_hoist): ...new pass_data instance and...
14931 (make_pass_rtl_hoist): ...new function.
14932 * gimple-low.c (pass_lower_cf): Convert from a global struct to a
14933 subclass of gimple_opt_pass along with...
14934 (pass_data_lower_cf): ...new pass_data instance and...
14935 (make_pass_lower_cf): ...new function.
14936 * gimple-ssa-strength-reduction.c (pass_strength_reduction): Convert
14937 from a global struct to a subclass of gimple_opt_pass along with...
14938 (pass_data_strength_reduction): ...new pass_data instance and...
14939 (make_pass_strength_reduction): ...new function.
14940 * ifcvt.c (pass_rtl_ifcvt): Convert from a global struct to a subclass
14941 of rtl_opt_pass along with...
14942 (pass_data_rtl_ifcvt): ...new pass_data instance and...
14943 (make_pass_rtl_ifcvt): ...new function.
14944 (pass_if_after_combine): Convert from a global struct to a subclass of
14945 rtl_opt_pass along with...
14946 (pass_data_if_after_combine): ...new pass_data instance and...
14947 (make_pass_if_after_combine): ...new function.
14948 (pass_if_after_reload): Convert from a global struct to a subclass of
14949 rtl_opt_pass along with...
14950 (pass_data_if_after_reload): ...new pass_data instance and...
14951 (make_pass_if_after_reload): ...new function.
14952 * init-regs.c (pass_initialize_regs): Convert from a global struct to
14953 a subclass of rtl_opt_pass along with...
14954 (pass_data_initialize_regs): ...new pass_data instance and...
14955 (make_pass_initialize_regs): ...new function.
14956 * ipa-cp.c (pass_ipa_cp): Convert from a global struct to a subclass
14957 of ipa_opt_pass_d along with...
14958 (pass_data_ipa_cp): ...new pass_data instance and...
14959 (make_pass_ipa_cp): ...new function.
14960 * ipa-inline-analysis.c (pass_inline_parameters): Convert from a
14961 global struct to a subclass of gimple_opt_pass along with...
14962 (pass_data_inline_parameters): ...new pass_data instance and...
14963 (make_pass_inline_parameters): ...new function.
14964 * ipa-inline.c (pass_early_inline): Convert from a global struct to a
14965 subclass of gimple_opt_pass along with...
14966 (pass_data_early_inline): ...new pass_data instance and...
14967 (make_pass_early_inline): ...new function.
14968 (pass_ipa_inline): Convert from a global struct to a subclass of
14969 ipa_opt_pass_d along with...
14970 (pass_data_ipa_inline): ...new pass_data instance and...
14971 (make_pass_ipa_inline): ...new function.
14972 * ipa-pure-const.c (pass_local_pure_const): Convert from a global
14973 struct to a subclass of gimple_opt_pass along with...
14974 (pass_data_local_pure_const): ...new pass_data instance and...
14975 (make_pass_local_pure_const): ...new function.
14976 (pass_ipa_pure_const): Convert from a global struct to a subclass of
14977 ipa_opt_pass_d along with...
14978 (pass_data_ipa_pure_const): ...new pass_data instance and...
14979 (make_pass_ipa_pure_const): ...new function.
14980 * ipa-reference.c (pass_ipa_reference): Convert from a global struct
14981 to a subclass of ipa_opt_pass_d along with...
14982 (pass_data_ipa_reference): ...new pass_data instance and...
14983 (make_pass_ipa_reference): ...new function.
14984 * ipa-split.c (pass_split_functions): Convert from a global struct to
14985 a subclass of gimple_opt_pass along with...
14986 (pass_data_split_functions): ...new pass_data instance and...
14987 (make_pass_split_functions): ...new function.
14988 (pass_feedback_split_functions): Convert from a global struct to a
14989 subclass of gimple_opt_pass along with...
14990 (pass_data_feedback_split_functions): ...new pass_data instance and...
14991 (make_pass_feedback_split_functions): ...new function.
14992 * ipa.c (pass_ipa_function_and_variable_visibility): Convert from a
14993 global struct to a subclass of simple_ipa_opt_pass along with...
14994 (pass_data_ipa_function_and_variable_visibility): ...new pass_data
14996 (make_pass_ipa_function_and_variable_visibility): ...new function.
14997 (pass_ipa_free_inline_summary): Convert from a global struct to a
14998 subclass of simple_ipa_opt_pass along with...
14999 (pass_data_ipa_free_inline_summary): ...new pass_data instance and...
15000 (make_pass_ipa_free_inline_summary): ...new function.
15001 (pass_ipa_whole_program_visibility): Convert from a global struct to a
15002 subclass of ipa_opt_pass_d along with...
15003 (pass_data_ipa_whole_program_visibility): ...new pass_data instance
15005 (make_pass_ipa_whole_program_visibility): ...new function.
15006 (pass_ipa_profile): Convert from a global struct to a subclass of
15007 ipa_opt_pass_d along with...
15008 (pass_data_ipa_profile): ...new pass_data instance and...
15009 (make_pass_ipa_profile): ...new function.
15010 (pass_ipa_cdtor_merge): Convert from a global struct to a subclass of
15011 ipa_opt_pass_d along with...
15012 (pass_data_ipa_cdtor_merge): ...new pass_data instance and...
15013 (make_pass_ipa_cdtor_merge): ...new function.
15014 * ira.c (pass_ira): Convert from a global struct to a subclass of
15015 rtl_opt_pass along with...
15016 (pass_data_ira): ...new pass_data instance and...
15017 (make_pass_ira): ...new function.
15018 (pass_reload): Convert from a global struct to a subclass of
15019 rtl_opt_pass along with...
15020 (pass_data_reload): ...new pass_data instance and...
15021 (make_pass_reload): ...new function.
15022 * jump.c (pass_cleanup_barriers): Convert from a global struct to a
15023 subclass of rtl_opt_pass along with...
15024 (pass_data_cleanup_barriers): ...new pass_data instance and...
15025 (make_pass_cleanup_barriers): ...new function.
15026 * loop-init.c (pass_loop2): Convert from a global struct to a subclass
15027 of rtl_opt_pass along with...
15028 (pass_data_loop2): ...new pass_data instance and...
15029 (make_pass_loop2): ...new function.
15030 (pass_rtl_loop_init): Convert from a global struct to a subclass of
15031 rtl_opt_pass along with...
15032 (pass_data_rtl_loop_init): ...new pass_data instance and...
15033 (make_pass_rtl_loop_init): ...new function.
15034 (pass_rtl_loop_done): Convert from a global struct to a subclass of
15035 rtl_opt_pass along with...
15036 (pass_data_rtl_loop_done): ...new pass_data instance and...
15037 (make_pass_rtl_loop_done): ...new function.
15038 (pass_rtl_move_loop_invariants): Convert from a global struct to a
15039 subclass of rtl_opt_pass along with...
15040 (pass_data_rtl_move_loop_invariants): ...new pass_data instance and...
15041 (make_pass_rtl_move_loop_invariants): ...new function.
15042 (pass_rtl_unswitch): Convert from a global struct to a subclass of
15043 rtl_opt_pass along with...
15044 (pass_data_rtl_unswitch): ...new pass_data instance and...
15045 (make_pass_rtl_unswitch): ...new function.
15046 (pass_rtl_unroll_and_peel_loops): Convert from a global struct to a
15047 subclass of rtl_opt_pass along with...
15048 (pass_data_rtl_unroll_and_peel_loops): ...new pass_data instance
15050 (make_pass_rtl_unroll_and_peel_loops): ...new function.
15051 (pass_rtl_doloop): Convert from a global struct to a subclass of
15052 rtl_opt_pass along with...
15053 (pass_data_rtl_doloop): ...new pass_data instance and...
15054 (make_pass_rtl_doloop): ...new function.
15055 * lower-subreg.c (pass_lower_subreg): Convert from a global struct to
15056 a subclass of rtl_opt_pass along with...
15057 (pass_data_lower_subreg): ...new pass_data instance and...
15058 (make_pass_lower_subreg): ...new function.
15059 (pass_lower_subreg2): Convert from a global struct to a subclass of
15060 rtl_opt_pass along with...
15061 (pass_data_lower_subreg2): ...new pass_data instance and...
15062 (make_pass_lower_subreg2): ...new function.
15063 * lto-streamer-out.c (pass_ipa_lto_gimple_out): Convert from a global
15064 struct to a subclass of ipa_opt_pass_d along with...
15065 (pass_data_ipa_lto_gimple_out): ...new pass_data instance and...
15066 (make_pass_ipa_lto_gimple_out): ...new function.
15067 (pass_ipa_lto_finish_out): Convert from a global struct to a subclass
15068 of ipa_opt_pass_d along with...
15069 (pass_data_ipa_lto_finish_out): ...new pass_data instance and...
15070 (make_pass_ipa_lto_finish_out): ...new function.
15071 * mode-switching.c (pass_mode_switching): Convert from a global struct
15072 to a subclass of rtl_opt_pass along with...
15073 (pass_data_mode_switching): ...new pass_data instance and...
15074 (make_pass_mode_switching): ...new function.
15075 * modulo-sched.c (pass_sms): Convert from a global struct to a
15076 subclass of rtl_opt_pass along with...
15077 (pass_data_sms): ...new pass_data instance and...
15078 (make_pass_sms): ...new function.
15079 * omp-low.c (pass_expand_omp): Convert from a global struct to a
15080 subclass of gimple_opt_pass along with...
15081 (pass_data_expand_omp): ...new pass_data instance and...
15082 (make_pass_expand_omp): ...new function.
15083 (pass_lower_omp): Convert from a global struct to a subclass of
15084 gimple_opt_pass along with...
15085 (pass_data_lower_omp): ...new pass_data instance and...
15086 (make_pass_lower_omp): ...new function.
15087 (pass_diagnose_omp_blocks): Convert from a global struct to a subclass
15088 of gimple_opt_pass along with...
15089 (pass_data_diagnose_omp_blocks): ...new pass_data instance and...
15090 (make_pass_diagnose_omp_blocks): ...new function.
15091 * passes.c (pass_early_local_passes): Convert from a global struct to
15092 a subclass of simple_ipa_opt_pass along with...
15093 (pass_data_early_local_passes): ...new pass_data instance and...
15094 (make_pass_early_local_passes): ...new function.
15095 (pass_all_early_optimizations): Convert from a global struct to a
15096 subclass of gimple_opt_pass along with...
15097 (pass_data_all_early_optimizations): ...new pass_data instance and...
15098 (make_pass_all_early_optimizations): ...new function.
15099 (pass_all_optimizations): Convert from a global struct to a subclass
15100 of gimple_opt_pass along with...
15101 (pass_data_all_optimizations): ...new pass_data instance and...
15102 (make_pass_all_optimizations): ...new function.
15103 (pass_all_optimizations_g): Convert from a global struct to a subclass
15104 of gimple_opt_pass along with...
15105 (pass_data_all_optimizations_g): ...new pass_data instance and...
15106 (make_pass_all_optimizations_g): ...new function.
15107 (pass_rest_of_compilation): Convert from a global struct to a subclass
15108 of rtl_opt_pass along with...
15109 (pass_data_rest_of_compilation): ...new pass_data instance and...
15110 (make_pass_rest_of_compilation): ...new function.
15111 (pass_postreload): Convert from a global struct to a subclass of
15112 rtl_opt_pass along with...
15113 (pass_data_postreload): ...new pass_data instance and...
15114 (make_pass_postreload): ...new function.
15115 * postreload-gcse.c (pass_gcse2): Convert from a global struct to a
15116 subclass of rtl_opt_pass along with...
15117 (pass_data_gcse2): ...new pass_data instance and...
15118 (make_pass_gcse2): ...new function.
15119 * postreload.c (pass_postreload_cse): Convert from a global struct to
15120 a subclass of rtl_opt_pass along with...
15121 (pass_data_postreload_cse): ...new pass_data instance and...
15122 (make_pass_postreload_cse): ...new function.
15123 * predict.c (pass_profile): Convert from a global struct to a subclass
15124 of gimple_opt_pass along with...
15125 (pass_data_profile): ...new pass_data instance and...
15126 (make_pass_profile): ...new function.
15127 (pass_strip_predict_hints): Convert from a global struct to a subclass
15128 of gimple_opt_pass along with...
15129 (pass_data_strip_predict_hints): ...new pass_data instance and...
15130 (make_pass_strip_predict_hints): ...new function.
15131 * recog.c (pass_peephole2): Convert from a global struct to a subclass
15132 of rtl_opt_pass along with...
15133 (pass_data_peephole2): ...new pass_data instance and...
15134 (make_pass_peephole2): ...new function.
15135 (pass_split_all_insns): Convert from a global struct to a subclass of
15136 rtl_opt_pass along with...
15137 (pass_data_split_all_insns): ...new pass_data instance and...
15138 (make_pass_split_all_insns): ...new function.
15139 (pass_split_after_reload): Convert from a global struct to a subclass
15140 of rtl_opt_pass along with...
15141 (pass_data_split_after_reload): ...new pass_data instance and...
15142 (make_pass_split_after_reload): ...new function.
15143 (pass_split_before_regstack): Convert from a global struct to a
15144 subclass of rtl_opt_pass along with...
15145 (pass_data_split_before_regstack): ...new pass_data instance and...
15146 (make_pass_split_before_regstack): ...new function.
15147 (pass_split_before_sched2): Convert from a global struct to a subclass
15148 of rtl_opt_pass along with...
15149 (pass_data_split_before_sched2): ...new pass_data instance and...
15150 (make_pass_split_before_sched2): ...new function.
15151 (pass_split_for_shorten_branches): Convert from a global struct to a
15152 subclass of rtl_opt_pass along with...
15153 (pass_data_split_for_shorten_branches): ...new pass_data instance
15155 (make_pass_split_for_shorten_branches): ...new function.
15156 * ree.c (pass_ree): Convert from a global struct to a subclass of
15157 rtl_opt_pass along with...
15158 (pass_data_ree): ...new pass_data instance and...
15159 (make_pass_ree): ...new function.
15160 * reg-stack.c (pass_stack_regs): Convert from a global struct to a
15161 subclass of rtl_opt_pass along with...
15162 (pass_data_stack_regs): ...new pass_data instance and...
15163 (make_pass_stack_regs): ...new function.
15164 (pass_stack_regs_run): Convert from a global struct to a subclass of
15165 rtl_opt_pass along with...
15166 (pass_data_stack_regs_run): ...new pass_data instance and...
15167 (make_pass_stack_regs_run): ...new function.
15168 * regcprop.c (pass_cprop_hardreg): Convert from a global struct to a
15169 subclass of rtl_opt_pass along with...
15170 (pass_data_cprop_hardreg): ...new pass_data instance and...
15171 (make_pass_cprop_hardreg): ...new function.
15172 * reginfo.c (pass_reginfo_init): Convert from a global struct to a
15173 subclass of rtl_opt_pass along with...
15174 (pass_data_reginfo_init): ...new pass_data instance and...
15175 (make_pass_reginfo_init): ...new function.
15176 * regmove.c (pass_regmove): Convert from a global struct to a subclass
15177 of rtl_opt_pass along with...
15178 (pass_data_regmove): ...new pass_data instance and...
15179 (make_pass_regmove): ...new function.
15180 * regrename.c (pass_regrename): Convert from a global struct to a
15181 subclass of rtl_opt_pass along with...
15182 (pass_data_regrename): ...new pass_data instance and...
15183 (make_pass_regrename): ...new function.
15184 * reorg.c (pass_delay_slots): Convert from a global struct to a
15185 subclass of rtl_opt_pass along with...
15186 (pass_data_delay_slots): ...new pass_data instance and...
15187 (make_pass_delay_slots): ...new function.
15188 (pass_machine_reorg): Convert from a global struct to a subclass of
15189 rtl_opt_pass along with...
15190 (pass_data_machine_reorg): ...new pass_data instance and...
15191 (make_pass_machine_reorg): ...new function.
15192 * sched-rgn.c (pass_sched): Convert from a global struct to a subclass
15193 of rtl_opt_pass along with...
15194 (pass_data_sched): ...new pass_data instance and...
15195 (make_pass_sched): ...new function.
15196 (pass_sched2): Convert from a global struct to a subclass of
15197 rtl_opt_pass along with...
15198 (pass_data_sched2): ...new pass_data instance and...
15199 (make_pass_sched2): ...new function.
15200 * stack-ptr-mod.c (pass_stack_ptr_mod): Convert from a global struct
15201 to a subclass of rtl_opt_pass along with...
15202 (pass_data_stack_ptr_mod): ...new pass_data instance and...
15203 (make_pass_stack_ptr_mod): ...new function.
15204 * store-motion.c (pass_rtl_store_motion): Convert from a global struct
15205 to a subclass of rtl_opt_pass along with...
15206 (pass_data_rtl_store_motion): ...new pass_data instance and...
15207 (make_pass_rtl_store_motion): ...new function.
15208 * tracer.c (pass_tracer): Convert from a global struct to a subclass
15209 of gimple_opt_pass along with...
15210 (pass_data_tracer): ...new pass_data instance and...
15211 (make_pass_tracer): ...new function.
15212 * trans-mem.c (pass_diagnose_tm_blocks): Convert from a global struct
15213 to a subclass of gimple_opt_pass along with...
15214 (pass_data_diagnose_tm_blocks): ...new pass_data instance and...
15215 (make_pass_diagnose_tm_blocks): ...new function.
15216 (pass_lower_tm): Convert from a global struct to a subclass of
15217 gimple_opt_pass along with...
15218 (pass_data_lower_tm): ...new pass_data instance and...
15219 (make_pass_lower_tm): ...new function.
15220 (pass_tm_init): Convert from a global struct to a subclass of
15221 gimple_opt_pass along with...
15222 (pass_data_tm_init): ...new pass_data instance and...
15223 (make_pass_tm_init): ...new function.
15224 (pass_tm_mark): Convert from a global struct to a subclass of
15225 gimple_opt_pass along with...
15226 (pass_data_tm_mark): ...new pass_data instance and...
15227 (make_pass_tm_mark): ...new function.
15228 (pass_tm_edges): Convert from a global struct to a subclass of
15229 gimple_opt_pass along with...
15230 (pass_data_tm_edges): ...new pass_data instance and...
15231 (make_pass_tm_edges): ...new function.
15232 (pass_tm_memopt): Convert from a global struct to a subclass of
15233 gimple_opt_pass along with...
15234 (pass_data_tm_memopt): ...new pass_data instance and...
15235 (make_pass_tm_memopt): ...new function.
15236 (pass_ipa_tm): Convert from a global struct to a subclass of
15237 simple_ipa_opt_pass along with...
15238 (pass_data_ipa_tm): ...new pass_data instance and...
15239 (make_pass_ipa_tm): ...new function.
15240 * tree-call-cdce.c (pass_call_cdce): Convert from a global struct to a
15241 subclass of gimple_opt_pass along with...
15242 (pass_data_call_cdce): ...new pass_data instance and...
15243 (make_pass_call_cdce): ...new function.
15244 * tree-cfg.c (pass_build_cfg): Convert from a global struct to a
15245 subclass of gimple_opt_pass along with...
15246 (pass_data_build_cfg): ...new pass_data instance and...
15247 (make_pass_build_cfg): ...new function.
15248 (pass_split_crit_edges): Convert from a global struct to a subclass of
15249 gimple_opt_pass along with...
15250 (pass_data_split_crit_edges): ...new pass_data instance and...
15251 (make_pass_split_crit_edges): ...new function.
15252 (pass_warn_function_return): Convert from a global struct to a
15253 subclass of gimple_opt_pass along with...
15254 (pass_data_warn_function_return): ...new pass_data instance and...
15255 (make_pass_warn_function_return): ...new function.
15256 (pass_warn_function_noreturn): Convert from a global struct to a
15257 subclass of gimple_opt_pass along with...
15258 (pass_data_warn_function_noreturn): ...new pass_data instance and...
15259 (make_pass_warn_function_noreturn): ...new function.
15260 (pass_warn_unused_result): Convert from a global struct to a subclass
15261 of gimple_opt_pass along with...
15262 (pass_data_warn_unused_result): ...new pass_data instance and...
15263 (make_pass_warn_unused_result): ...new function.
15264 * tree-cfgcleanup.c (pass_merge_phi): Convert from a global struct to
15265 a subclass of gimple_opt_pass along with...
15266 (pass_data_merge_phi): ...new pass_data instance and...
15267 (make_pass_merge_phi): ...new function.
15268 * tree-complex.c (pass_lower_complex): Convert from a global struct to
15269 a subclass of gimple_opt_pass along with...
15270 (pass_data_lower_complex): ...new pass_data instance and...
15271 (make_pass_lower_complex): ...new function.
15272 (pass_lower_complex_O0): Convert from a global struct to a subclass of
15273 gimple_opt_pass along with...
15274 (pass_data_lower_complex_O0): ...new pass_data instance and...
15275 (make_pass_lower_complex_O0): ...new function.
15276 * tree-eh.c (pass_lower_eh): Convert from a global struct to a
15277 subclass of gimple_opt_pass along with...
15278 (pass_data_lower_eh): ...new pass_data instance and...
15279 (make_pass_lower_eh): ...new function.
15280 (pass_refactor_eh): Convert from a global struct to a subclass of
15281 gimple_opt_pass along with...
15282 (pass_data_refactor_eh): ...new pass_data instance and...
15283 (make_pass_refactor_eh): ...new function.
15284 (pass_lower_resx): Convert from a global struct to a subclass of
15285 gimple_opt_pass along with...
15286 (pass_data_lower_resx): ...new pass_data instance and...
15287 (make_pass_lower_resx): ...new function.
15288 (pass_lower_eh_dispatch): Convert from a global struct to a subclass
15289 of gimple_opt_pass along with...
15290 (pass_data_lower_eh_dispatch): ...new pass_data instance and...
15291 (make_pass_lower_eh_dispatch): ...new function.
15292 (pass_cleanup_eh): Convert from a global struct to a subclass of
15293 gimple_opt_pass along with...
15294 (pass_data_cleanup_eh): ...new pass_data instance and...
15295 (make_pass_cleanup_eh): ...new function.
15296 * tree-emutls.c (pass_ipa_lower_emutls): Convert from a global struct
15297 to a subclass of simple_ipa_opt_pass along with...
15298 (pass_data_ipa_lower_emutls): ...new pass_data instance and...
15299 (make_pass_ipa_lower_emutls): ...new function.
15300 * tree-if-conv.c (pass_if_conversion): Convert from a global struct to
15301 a subclass of gimple_opt_pass along with...
15302 (pass_data_if_conversion): ...new pass_data instance and...
15303 (make_pass_if_conversion): ...new function.
15304 * tree-into-ssa.c (pass_build_ssa): Convert from a global struct to a
15305 subclass of gimple_opt_pass along with...
15306 (pass_data_build_ssa): ...new pass_data instance and...
15307 (make_pass_build_ssa): ...new function.
15308 * tree-loop-distribution.c (pass_loop_distribution): Convert from a
15309 global struct to a subclass of gimple_opt_pass along with...
15310 (pass_data_loop_distribution): ...new pass_data instance and...
15311 (make_pass_loop_distribution): ...new function.
15312 * tree-mudflap.c (pass_mudflap_1): Convert from a global struct to a
15313 subclass of gimple_opt_pass along with...
15314 (pass_data_mudflap_1): ...new pass_data instance and...
15315 (make_pass_mudflap_1): ...new function.
15316 (pass_mudflap_2): Convert from a global struct to a subclass of
15317 gimple_opt_pass along with...
15318 (pass_data_mudflap_2): ...new pass_data instance and...
15319 (make_pass_mudflap_2): ...new function.
15320 * tree-nomudflap.c (pass_mudflap_1): Convert from a global struct to a
15321 subclass of gimple_opt_pass along with...
15322 (pass_data_mudflap_1): ...new pass_data instance and...
15323 (make_pass_mudflap_1): ...new function.
15324 (pass_mudflap_2): Convert from a global struct to a subclass of
15325 gimple_opt_pass along with...
15326 (pass_data_mudflap_2): ...new pass_data instance and...
15327 (make_pass_mudflap_2): ...new function.
15328 * tree-nrv.c (pass_nrv): Convert from a global struct to a subclass of
15329 gimple_opt_pass along with...
15330 (pass_data_nrv): ...new pass_data instance and...
15331 (make_pass_nrv): ...new function.
15332 (pass_return_slot): Convert from a global struct to a subclass of
15333 gimple_opt_pass along with...
15334 (pass_data_return_slot): ...new pass_data instance and...
15335 (make_pass_return_slot): ...new function.
15336 * tree-object-size.c (pass_object_sizes): Convert from a global struct
15337 to a subclass of gimple_opt_pass along with...
15338 (pass_data_object_sizes): ...new pass_data instance and...
15339 (make_pass_object_sizes): ...new function.
15340 * tree-optimize.c (pass_cleanup_cfg_post_optimizing): Convert from a
15341 global struct to a subclass of gimple_opt_pass along with...
15342 (pass_data_cleanup_cfg_post_optimizing): ...new pass_data instance
15344 (make_pass_cleanup_cfg_post_optimizing): ...new function.
15345 (pass_fixup_cfg): Convert from a global struct to a subclass of
15346 gimple_opt_pass along with...
15347 (pass_data_fixup_cfg): ...new pass_data instance and...
15348 (make_pass_fixup_cfg): ...new function.
15349 * tree-pass.h (pass_mudflap_1): Replace declaration with that of...
15350 (make_pass_mudflap_1): ...new function.
15351 (pass_mudflap_2): Replace declaration with that of...
15352 (make_pass_mudflap_2): ...new function.
15353 (pass_asan): Replace declaration with that of...
15354 (make_pass_asan): ...new function.
15355 (pass_asan_O0): Replace declaration with that of...
15356 (make_pass_asan_O0): ...new function.
15357 (pass_tsan): Replace declaration with that of...
15358 (make_pass_tsan): ...new function.
15359 (pass_tsan_O0): Replace declaration with that of...
15360 (make_pass_tsan_O0): ...new function.
15361 (pass_lower_cf): Replace declaration with that of...
15362 (make_pass_lower_cf): ...new function.
15363 (pass_refactor_eh): Replace declaration with that of...
15364 (make_pass_refactor_eh): ...new function.
15365 (pass_lower_eh): Replace declaration with that of...
15366 (make_pass_lower_eh): ...new function.
15367 (pass_lower_eh_dispatch): Replace declaration with that of...
15368 (make_pass_lower_eh_dispatch): ...new function.
15369 (pass_lower_resx): Replace declaration with that of...
15370 (make_pass_lower_resx): ...new function.
15371 (pass_build_cfg): Replace declaration with that of...
15372 (make_pass_build_cfg): ...new function.
15373 (pass_early_tree_profile): Replace declaration with that of...
15374 (make_pass_early_tree_profile): ...new function.
15375 (pass_cleanup_eh): Replace declaration with that of...
15376 (make_pass_cleanup_eh): ...new function.
15377 (pass_sra): Replace declaration with that of...
15378 (make_pass_sra): ...new function.
15379 (pass_sra_early): Replace declaration with that of...
15380 (make_pass_sra_early): ...new function.
15381 (pass_early_ipa_sra): Replace declaration with that of...
15382 (make_pass_early_ipa_sra): ...new function.
15383 (pass_tail_recursion): Replace declaration with that of...
15384 (make_pass_tail_recursion): ...new function.
15385 (pass_tail_calls): Replace declaration with that of...
15386 (make_pass_tail_calls): ...new function.
15387 (pass_tree_loop): Replace declaration with that of...
15388 (make_pass_tree_loop): ...new function.
15389 (pass_tree_loop_init): Replace declaration with that of...
15390 (make_pass_tree_loop_init): ...new function.
15391 (pass_lim): Replace declaration with that of...
15392 (make_pass_lim): ...new function.
15393 (pass_tree_unswitch): Replace declaration with that of...
15394 (make_pass_tree_unswitch): ...new function.
15395 (pass_predcom): Replace declaration with that of...
15396 (make_pass_predcom): ...new function.
15397 (pass_iv_canon): Replace declaration with that of...
15398 (make_pass_iv_canon): ...new function.
15399 (pass_scev_cprop): Replace declaration with that of...
15400 (make_pass_scev_cprop): ...new function.
15401 (pass_empty_loop): Replace declaration with that of...
15402 (make_pass_empty_loop): ...new function.
15403 (pass_record_bounds): Replace declaration with that of...
15404 (make_pass_record_bounds): ...new function.
15405 (pass_graphite): Replace declaration with that of...
15406 (make_pass_graphite): ...new function.
15407 (pass_graphite_transforms): Replace declaration with that of...
15408 (make_pass_graphite_transforms): ...new function.
15409 (pass_if_conversion): Replace declaration with that of...
15410 (make_pass_if_conversion): ...new function.
15411 (pass_loop_distribution): Replace declaration with that of...
15412 (make_pass_loop_distribution): ...new function.
15413 (pass_vectorize): Replace declaration with that of...
15414 (make_pass_vectorize): ...new function.
15415 (pass_slp_vectorize): Replace declaration with that of...
15416 (make_pass_slp_vectorize): ...new function.
15417 (pass_complete_unroll): Replace declaration with that of...
15418 (make_pass_complete_unroll): ...new function.
15419 (pass_complete_unrolli): Replace declaration with that of...
15420 (make_pass_complete_unrolli): ...new function.
15421 (pass_parallelize_loops): Replace declaration with that of...
15422 (make_pass_parallelize_loops): ...new function.
15423 (pass_loop_prefetch): Replace declaration with that of...
15424 (make_pass_loop_prefetch): ...new function.
15425 (pass_iv_optimize): Replace declaration with that of...
15426 (make_pass_iv_optimize): ...new function.
15427 (pass_tree_loop_done): Replace declaration with that of...
15428 (make_pass_tree_loop_done): ...new function.
15429 (pass_ch): Replace declaration with that of...
15430 (make_pass_ch): ...new function.
15431 (pass_ccp): Replace declaration with that of...
15432 (make_pass_ccp): ...new function.
15433 (pass_phi_only_cprop): Replace declaration with that of...
15434 (make_pass_phi_only_cprop): ...new function.
15435 (pass_build_ssa): Replace declaration with that of...
15436 (make_pass_build_ssa): ...new function.
15437 (pass_build_alias): Replace declaration with that of...
15438 (make_pass_build_alias): ...new function.
15439 (pass_build_ealias): Replace declaration with that of...
15440 (make_pass_build_ealias): ...new function.
15441 (pass_dominator): Replace declaration with that of...
15442 (make_pass_dominator): ...new function.
15443 (pass_dce): Replace declaration with that of...
15444 (make_pass_dce): ...new function.
15445 (pass_dce_loop): Replace declaration with that of...
15446 (make_pass_dce_loop): ...new function.
15447 (pass_cd_dce): Replace declaration with that of...
15448 (make_pass_cd_dce): ...new function.
15449 (pass_call_cdce): Replace declaration with that of...
15450 (make_pass_call_cdce): ...new function.
15451 (pass_merge_phi): Replace declaration with that of...
15452 (make_pass_merge_phi): ...new function.
15453 (pass_split_crit_edges): Replace declaration with that of...
15454 (make_pass_split_crit_edges): ...new function.
15455 (pass_pre): Replace declaration with that of...
15456 (make_pass_pre): ...new function.
15457 (pass_profile): Replace declaration with that of...
15458 (make_pass_profile): ...new function.
15459 (pass_strip_predict_hints): Replace declaration with that of...
15460 (make_pass_strip_predict_hints): ...new function.
15461 (pass_lower_complex_O0): Replace declaration with that of...
15462 (make_pass_lower_complex_O0): ...new function.
15463 (pass_lower_complex): Replace declaration with that of...
15464 (make_pass_lower_complex): ...new function.
15465 (pass_lower_vector): Replace declaration with that of...
15466 (make_pass_lower_vector): ...new function.
15467 (pass_lower_vector_ssa): Replace declaration with that of...
15468 (make_pass_lower_vector_ssa): ...new function.
15469 (pass_lower_omp): Replace declaration with that of...
15470 (make_pass_lower_omp): ...new function.
15471 (pass_diagnose_omp_blocks): Replace declaration with that of...
15472 (make_pass_diagnose_omp_blocks): ...new function.
15473 (pass_expand_omp): Replace declaration with that of...
15474 (make_pass_expand_omp): ...new function.
15475 (pass_expand_omp_ssa): Replace declaration with that of...
15476 (make_pass_expand_omp_ssa): ...new function.
15477 (pass_object_sizes): Replace declaration with that of...
15478 (make_pass_object_sizes): ...new function.
15479 (pass_strlen): Replace declaration with that of...
15480 (make_pass_strlen): ...new function.
15481 (pass_fold_builtins): Replace declaration with that of...
15482 (make_pass_fold_builtins): ...new function.
15483 (pass_stdarg): Replace declaration with that of...
15484 (make_pass_stdarg): ...new function.
15485 (pass_early_warn_uninitialized): Replace declaration with that of...
15486 (make_pass_early_warn_uninitialized): ...new function.
15487 (pass_late_warn_uninitialized): Replace declaration with that of...
15488 (make_pass_late_warn_uninitialized): ...new function.
15489 (pass_cse_reciprocals): Replace declaration with that of...
15490 (make_pass_cse_reciprocals): ...new function.
15491 (pass_cse_sincos): Replace declaration with that of...
15492 (make_pass_cse_sincos): ...new function.
15493 (pass_optimize_bswap): Replace declaration with that of...
15494 (make_pass_optimize_bswap): ...new function.
15495 (pass_optimize_widening_mul): Replace declaration with that of...
15496 (make_pass_optimize_widening_mul): ...new function.
15497 (pass_warn_function_return): Replace declaration with that of...
15498 (make_pass_warn_function_return): ...new function.
15499 (pass_warn_function_noreturn): Replace declaration with that of...
15500 (make_pass_warn_function_noreturn): ...new function.
15501 (pass_cselim): Replace declaration with that of...
15502 (make_pass_cselim): ...new function.
15503 (pass_phiopt): Replace declaration with that of...
15504 (make_pass_phiopt): ...new function.
15505 (pass_forwprop): Replace declaration with that of...
15506 (make_pass_forwprop): ...new function.
15507 (pass_phiprop): Replace declaration with that of...
15508 (make_pass_phiprop): ...new function.
15509 (pass_tree_ifcombine): Replace declaration with that of...
15510 (make_pass_tree_ifcombine): ...new function.
15511 (pass_dse): Replace declaration with that of...
15512 (make_pass_dse): ...new function.
15513 (pass_nrv): Replace declaration with that of...
15514 (make_pass_nrv): ...new function.
15515 (pass_rename_ssa_copies): Replace declaration with that of...
15516 (make_pass_rename_ssa_copies): ...new function.
15517 (pass_sink_code): Replace declaration with that of...
15518 (make_pass_sink_code): ...new function.
15519 (pass_fre): Replace declaration with that of...
15520 (make_pass_fre): ...new function.
15521 (pass_check_data_deps): Replace declaration with that of...
15522 (make_pass_check_data_deps): ...new function.
15523 (pass_copy_prop): Replace declaration with that of...
15524 (make_pass_copy_prop): ...new function.
15525 (pass_vrp): Replace declaration with that of...
15526 (make_pass_vrp): ...new function.
15527 (pass_uncprop): Replace declaration with that of...
15528 (make_pass_uncprop): ...new function.
15529 (pass_return_slot): Replace declaration with that of...
15530 (make_pass_return_slot): ...new function.
15531 (pass_reassoc): Replace declaration with that of...
15532 (make_pass_reassoc): ...new function.
15533 (pass_rebuild_cgraph_edges): Replace declaration with that of...
15534 (make_pass_rebuild_cgraph_edges): ...new function.
15535 (pass_remove_cgraph_callee_edges): Replace declaration with that of...
15536 (make_pass_remove_cgraph_callee_edges): ...new function.
15537 (pass_build_cgraph_edges): Replace declaration with that of...
15538 (make_pass_build_cgraph_edges): ...new function.
15539 (pass_local_pure_const): Replace declaration with that of...
15540 (make_pass_local_pure_const): ...new function.
15541 (pass_tracer): Replace declaration with that of...
15542 (make_pass_tracer): ...new function.
15543 (pass_warn_unused_result): Replace declaration with that of...
15544 (make_pass_warn_unused_result): ...new function.
15545 (pass_diagnose_tm_blocks): Replace declaration with that of...
15546 (make_pass_diagnose_tm_blocks): ...new function.
15547 (pass_lower_tm): Replace declaration with that of...
15548 (make_pass_lower_tm): ...new function.
15549 (pass_tm_init): Replace declaration with that of...
15550 (make_pass_tm_init): ...new function.
15551 (pass_tm_mark): Replace declaration with that of...
15552 (make_pass_tm_mark): ...new function.
15553 (pass_tm_memopt): Replace declaration with that of...
15554 (make_pass_tm_memopt): ...new function.
15555 (pass_tm_edges): Replace declaration with that of...
15556 (make_pass_tm_edges): ...new function.
15557 (pass_split_functions): Replace declaration with that of...
15558 (make_pass_split_functions): ...new function.
15559 (pass_feedback_split_functions): Replace declaration with that of...
15560 (make_pass_feedback_split_functions): ...new function.
15561 (pass_strength_reduction): Replace declaration with that of...
15562 (make_pass_strength_reduction): ...new function.
15563 (pass_ipa_lower_emutls): Replace declaration with that of...
15564 (make_pass_ipa_lower_emutls): ...new function.
15565 (pass_ipa_function_and_variable_visibility): Replace declaration with
15567 (make_pass_ipa_function_and_variable_visibility): ...new function.
15568 (pass_ipa_tree_profile): Replace declaration with that of...
15569 (make_pass_ipa_tree_profile): ...new function.
15570 (pass_early_local_passes): Replace declaration with that of...
15571 (make_pass_early_local_passes): ...new function.
15572 (pass_ipa_whole_program_visibility): Replace declaration with that
15574 (make_pass_ipa_whole_program_visibility): ...new function.
15575 (pass_ipa_lto_gimple_out): Replace declaration with that of...
15576 (make_pass_ipa_lto_gimple_out): ...new function.
15577 (pass_ipa_increase_alignment): Replace declaration with that of...
15578 (make_pass_ipa_increase_alignment): ...new function.
15579 (pass_ipa_inline): Replace declaration with that of...
15580 (make_pass_ipa_inline): ...new function.
15581 (pass_ipa_free_lang_data): Replace declaration with that of...
15582 (make_pass_ipa_free_lang_data): ...new function.
15583 (pass_ipa_free_inline_summary): Replace declaration with that of...
15584 (make_pass_ipa_free_inline_summary): ...new function.
15585 (pass_ipa_cp): Replace declaration with that of...
15586 (make_pass_ipa_cp): ...new function.
15587 (pass_ipa_reference): Replace declaration with that of...
15588 (make_pass_ipa_reference): ...new function.
15589 (pass_ipa_pure_const): Replace declaration with that of...
15590 (make_pass_ipa_pure_const): ...new function.
15591 (pass_ipa_pta): Replace declaration with that of...
15592 (make_pass_ipa_pta): ...new function.
15593 (pass_ipa_lto_finish_out): Replace declaration with that of...
15594 (make_pass_ipa_lto_finish_out): ...new function.
15595 (pass_ipa_tm): Replace declaration with that of...
15596 (make_pass_ipa_tm): ...new function.
15597 (pass_ipa_profile): Replace declaration with that of...
15598 (make_pass_ipa_profile): ...new function.
15599 (pass_ipa_cdtor_merge): Replace declaration with that of...
15600 (make_pass_ipa_cdtor_merge): ...new function.
15601 (pass_cleanup_cfg_post_optimizing): Replace declaration with that
15603 (make_pass_cleanup_cfg_post_optimizing): ...new function.
15604 (pass_init_datastructures): Replace declaration with that of...
15605 (make_pass_init_datastructures): ...new function.
15606 (pass_fixup_cfg): Replace declaration with that of...
15607 (make_pass_fixup_cfg): ...new function.
15608 (pass_expand): Replace declaration with that of...
15609 (make_pass_expand): ...new function.
15610 (pass_instantiate_virtual_regs): Replace declaration with that of...
15611 (make_pass_instantiate_virtual_regs): ...new function.
15612 (pass_rtl_fwprop): Replace declaration with that of...
15613 (make_pass_rtl_fwprop): ...new function.
15614 (pass_rtl_fwprop_addr): Replace declaration with that of...
15615 (make_pass_rtl_fwprop_addr): ...new function.
15616 (pass_jump): Replace declaration with that of...
15617 (make_pass_jump): ...new function.
15618 (pass_jump2): Replace declaration with that of...
15619 (make_pass_jump2): ...new function.
15620 (pass_lower_subreg): Replace declaration with that of...
15621 (make_pass_lower_subreg): ...new function.
15622 (pass_cse): Replace declaration with that of...
15623 (make_pass_cse): ...new function.
15624 (pass_fast_rtl_dce): Replace declaration with that of...
15625 (make_pass_fast_rtl_dce): ...new function.
15626 (pass_ud_rtl_dce): Replace declaration with that of...
15627 (make_pass_ud_rtl_dce): ...new function.
15628 (pass_rtl_dce): Replace declaration with that of...
15629 (make_pass_rtl_dce): ...new function.
15630 (pass_rtl_dse1): Replace declaration with that of...
15631 (make_pass_rtl_dse1): ...new function.
15632 (pass_rtl_dse2): Replace declaration with that of...
15633 (make_pass_rtl_dse2): ...new function.
15634 (pass_rtl_dse3): Replace declaration with that of...
15635 (make_pass_rtl_dse3): ...new function.
15636 (pass_rtl_cprop): Replace declaration with that of...
15637 (make_pass_rtl_cprop): ...new function.
15638 (pass_rtl_pre): Replace declaration with that of...
15639 (make_pass_rtl_pre): ...new function.
15640 (pass_rtl_hoist): Replace declaration with that of...
15641 (make_pass_rtl_hoist): ...new function.
15642 (pass_rtl_store_motion): Replace declaration with that of...
15643 (make_pass_rtl_store_motion): ...new function.
15644 (pass_cse_after_global_opts): Replace declaration with that of...
15645 (make_pass_cse_after_global_opts): ...new function.
15646 (pass_rtl_ifcvt): Replace declaration with that of...
15647 (make_pass_rtl_ifcvt): ...new function.
15648 (pass_into_cfg_layout_mode): Replace declaration with that of...
15649 (make_pass_into_cfg_layout_mode): ...new function.
15650 (pass_outof_cfg_layout_mode): Replace declaration with that of...
15651 (make_pass_outof_cfg_layout_mode): ...new function.
15652 (pass_loop2): Replace declaration with that of...
15653 (make_pass_loop2): ...new function.
15654 (pass_rtl_loop_init): Replace declaration with that of...
15655 (make_pass_rtl_loop_init): ...new function.
15656 (pass_rtl_move_loop_invariants): Replace declaration with that of...
15657 (make_pass_rtl_move_loop_invariants): ...new function.
15658 (pass_rtl_unswitch): Replace declaration with that of...
15659 (make_pass_rtl_unswitch): ...new function.
15660 (pass_rtl_unroll_and_peel_loops): Replace declaration with that of...
15661 (make_pass_rtl_unroll_and_peel_loops): ...new function.
15662 (pass_rtl_doloop): Replace declaration with that of...
15663 (make_pass_rtl_doloop): ...new function.
15664 (pass_rtl_loop_done): Replace declaration with that of...
15665 (make_pass_rtl_loop_done): ...new function.
15666 (pass_web): Replace declaration with that of...
15667 (make_pass_web): ...new function.
15668 (pass_cse2): Replace declaration with that of...
15669 (make_pass_cse2): ...new function.
15670 (pass_df_initialize_opt): Replace declaration with that of...
15671 (make_pass_df_initialize_opt): ...new function.
15672 (pass_df_initialize_no_opt): Replace declaration with that of...
15673 (make_pass_df_initialize_no_opt): ...new function.
15674 (pass_reginfo_init): Replace declaration with that of...
15675 (make_pass_reginfo_init): ...new function.
15676 (pass_inc_dec): Replace declaration with that of...
15677 (make_pass_inc_dec): ...new function.
15678 (pass_stack_ptr_mod): Replace declaration with that of...
15679 (make_pass_stack_ptr_mod): ...new function.
15680 (pass_initialize_regs): Replace declaration with that of...
15681 (make_pass_initialize_regs): ...new function.
15682 (pass_combine): Replace declaration with that of...
15683 (make_pass_combine): ...new function.
15684 (pass_if_after_combine): Replace declaration with that of...
15685 (make_pass_if_after_combine): ...new function.
15686 (pass_ree): Replace declaration with that of...
15687 (make_pass_ree): ...new function.
15688 (pass_partition_blocks): Replace declaration with that of...
15689 (make_pass_partition_blocks): ...new function.
15690 (pass_match_asm_constraints): Replace declaration with that of...
15691 (make_pass_match_asm_constraints): ...new function.
15692 (pass_regmove): Replace declaration with that of...
15693 (make_pass_regmove): ...new function.
15694 (pass_split_all_insns): Replace declaration with that of...
15695 (make_pass_split_all_insns): ...new function.
15696 (pass_fast_rtl_byte_dce): Replace declaration with that of...
15697 (make_pass_fast_rtl_byte_dce): ...new function.
15698 (pass_lower_subreg2): Replace declaration with that of...
15699 (make_pass_lower_subreg2): ...new function.
15700 (pass_mode_switching): Replace declaration with that of...
15701 (make_pass_mode_switching): ...new function.
15702 (pass_sms): Replace declaration with that of...
15703 (make_pass_sms): ...new function.
15704 (pass_sched): Replace declaration with that of...
15705 (make_pass_sched): ...new function.
15706 (pass_ira): Replace declaration with that of...
15707 (make_pass_ira): ...new function.
15708 (pass_reload): Replace declaration with that of...
15709 (make_pass_reload): ...new function.
15710 (pass_clean_state): Replace declaration with that of...
15711 (make_pass_clean_state): ...new function.
15712 (pass_branch_prob): Replace declaration with that of...
15713 (make_pass_branch_prob): ...new function.
15714 (pass_value_profile_transformations): Replace declaration with that
15716 (make_pass_value_profile_transformations): ...new function.
15717 (pass_postreload_cse): Replace declaration with that of...
15718 (make_pass_postreload_cse): ...new function.
15719 (pass_gcse2): Replace declaration with that of...
15720 (make_pass_gcse2): ...new function.
15721 (pass_split_after_reload): Replace declaration with that of...
15722 (make_pass_split_after_reload): ...new function.
15723 (pass_branch_target_load_optimize1): Replace declaration with that
15725 (make_pass_branch_target_load_optimize1): ...new function.
15726 (pass_thread_prologue_and_epilogue): Replace declaration with that
15728 (make_pass_thread_prologue_and_epilogue): ...new function.
15729 (pass_stack_adjustments): Replace declaration with that of...
15730 (make_pass_stack_adjustments): ...new function.
15731 (pass_peephole2): Replace declaration with that of...
15732 (make_pass_peephole2): ...new function.
15733 (pass_if_after_reload): Replace declaration with that of...
15734 (make_pass_if_after_reload): ...new function.
15735 (pass_regrename): Replace declaration with that of...
15736 (make_pass_regrename): ...new function.
15737 (pass_cprop_hardreg): Replace declaration with that of...
15738 (make_pass_cprop_hardreg): ...new function.
15739 (pass_reorder_blocks): Replace declaration with that of...
15740 (make_pass_reorder_blocks): ...new function.
15741 (pass_branch_target_load_optimize2): Replace declaration with that
15743 (make_pass_branch_target_load_optimize2): ...new function.
15744 (pass_leaf_regs): Replace declaration with that of...
15745 (make_pass_leaf_regs): ...new function.
15746 (pass_split_before_sched2): Replace declaration with that of...
15747 (make_pass_split_before_sched2): ...new function.
15748 (pass_compare_elim_after_reload): Replace declaration with that of...
15749 (make_pass_compare_elim_after_reload): ...new function.
15750 (pass_sched2): Replace declaration with that of...
15751 (make_pass_sched2): ...new function.
15752 (pass_stack_regs): Replace declaration with that of...
15753 (make_pass_stack_regs): ...new function.
15754 (pass_stack_regs_run): Replace declaration with that of...
15755 (make_pass_stack_regs_run): ...new function.
15756 (pass_df_finish): Replace declaration with that of...
15757 (make_pass_df_finish): ...new function.
15758 (pass_compute_alignments): Replace declaration with that of...
15759 (make_pass_compute_alignments): ...new function.
15760 (pass_duplicate_computed_gotos): Replace declaration with that of...
15761 (make_pass_duplicate_computed_gotos): ...new function.
15762 (pass_variable_tracking): Replace declaration with that of...
15763 (make_pass_variable_tracking): ...new function.
15764 (pass_free_cfg): Replace declaration with that of...
15765 (make_pass_free_cfg): ...new function.
15766 (pass_machine_reorg): Replace declaration with that of...
15767 (make_pass_machine_reorg): ...new function.
15768 (pass_cleanup_barriers): Replace declaration with that of...
15769 (make_pass_cleanup_barriers): ...new function.
15770 (pass_delay_slots): Replace declaration with that of...
15771 (make_pass_delay_slots): ...new function.
15772 (pass_split_for_shorten_branches): Replace declaration with that of...
15773 (make_pass_split_for_shorten_branches): ...new function.
15774 (pass_split_before_regstack): Replace declaration with that of...
15775 (make_pass_split_before_regstack): ...new function.
15776 (pass_convert_to_eh_region_ranges): Replace declaration with that
15778 (make_pass_convert_to_eh_region_ranges): ...new function.
15779 (pass_shorten_branches): Replace declaration with that of...
15780 (make_pass_shorten_branches): ...new function.
15781 (pass_set_nothrow_function_flags): Replace declaration with that of...
15782 (make_pass_set_nothrow_function_flags): ...new function.
15783 (pass_dwarf2_frame): Replace declaration with that of...
15784 (make_pass_dwarf2_frame): ...new function.
15785 (pass_final): Replace declaration with that of...
15786 (make_pass_final): ...new function.
15787 (pass_rtl_seqabstr): Replace declaration with that of...
15788 (make_pass_rtl_seqabstr): ...new function.
15789 (pass_release_ssa_names): Replace declaration with that of...
15790 (make_pass_release_ssa_names): ...new function.
15791 (pass_early_inline): Replace declaration with that of...
15792 (make_pass_early_inline): ...new function.
15793 (pass_inline_parameters): Replace declaration with that of...
15794 (make_pass_inline_parameters): ...new function.
15795 (pass_update_address_taken): Replace declaration with that of...
15796 (make_pass_update_address_taken): ...new function.
15797 (pass_convert_switch): Replace declaration with that of...
15798 (make_pass_convert_switch): ...new function.
15799 * tree-profile.c (pass_ipa_tree_profile): Convert from a global struct
15800 to a subclass of simple_ipa_opt_pass along with...
15801 (pass_data_ipa_tree_profile): ...new pass_data instance and...
15802 (make_pass_ipa_tree_profile): ...new function.
15803 * tree-sra.c (pass_sra_early): Convert from a global struct to a
15804 subclass of gimple_opt_pass along with...
15805 (pass_data_sra_early): ...new pass_data instance and...
15806 (make_pass_sra_early): ...new function.
15807 (pass_sra): Convert from a global struct to a subclass of
15808 gimple_opt_pass along with...
15809 (pass_data_sra): ...new pass_data instance and...
15810 (make_pass_sra): ...new function.
15811 (pass_early_ipa_sra): Convert from a global struct to a subclass of
15812 gimple_opt_pass along with...
15813 (pass_data_early_ipa_sra): ...new pass_data instance and...
15814 (make_pass_early_ipa_sra): ...new function.
15815 * tree-ssa-ccp.c (pass_ccp): Convert from a global struct to a
15816 subclass of gimple_opt_pass along with...
15817 (pass_data_ccp): ...new pass_data instance and...
15818 (make_pass_ccp): ...new function.
15819 (pass_fold_builtins): Convert from a global struct to a subclass of
15820 gimple_opt_pass along with...
15821 (pass_data_fold_builtins): ...new pass_data instance and...
15822 (make_pass_fold_builtins): ...new function.
15823 * tree-ssa-copy.c (pass_copy_prop): Convert from a global struct to a
15824 subclass of gimple_opt_pass along with...
15825 (pass_data_copy_prop): ...new pass_data instance and...
15826 (make_pass_copy_prop): ...new function.
15827 * tree-ssa-copyrename.c (pass_rename_ssa_copies): Convert from a
15828 global struct to a subclass of gimple_opt_pass along with...
15829 (pass_data_rename_ssa_copies): ...new pass_data instance and...
15830 (make_pass_rename_ssa_copies): ...new function.
15831 * tree-ssa-dce.c (pass_dce): Convert from a global struct to a
15832 subclass of gimple_opt_pass along with...
15833 (pass_data_dce): ...new pass_data instance and...
15834 (make_pass_dce): ...new function.
15835 (pass_dce_loop): Convert from a global struct to a subclass of
15836 gimple_opt_pass along with...
15837 (pass_data_dce_loop): ...new pass_data instance and...
15838 (make_pass_dce_loop): ...new function.
15839 (pass_cd_dce): Convert from a global struct to a subclass of
15840 gimple_opt_pass along with...
15841 (pass_data_cd_dce): ...new pass_data instance and...
15842 (make_pass_cd_dce): ...new function.
15843 * tree-ssa-dom.c (pass_dominator): Convert from a global struct to a
15844 subclass of gimple_opt_pass along with...
15845 (pass_data_dominator): ...new pass_data instance and...
15846 (make_pass_dominator): ...new function.
15847 (pass_phi_only_cprop): Convert from a global struct to a subclass of
15848 gimple_opt_pass along with...
15849 (pass_data_phi_only_cprop): ...new pass_data instance and...
15850 (make_pass_phi_only_cprop): ...new function.
15851 * tree-ssa-dse.c (pass_dse): Convert from a global struct to a
15852 subclass of gimple_opt_pass along with...
15853 (pass_data_dse): ...new pass_data instance and...
15854 (make_pass_dse): ...new function.
15855 * tree-ssa-forwprop.c (pass_forwprop): Convert from a global struct to
15856 a subclass of gimple_opt_pass along with...
15857 (pass_data_forwprop): ...new pass_data instance and...
15858 (make_pass_forwprop): ...new function.
15859 * tree-ssa-ifcombine.c (pass_tree_ifcombine): Convert from a global
15860 struct to a subclass of gimple_opt_pass along with...
15861 (pass_data_tree_ifcombine): ...new pass_data instance and...
15862 (make_pass_tree_ifcombine): ...new function.
15863 * tree-ssa-loop-ch.c (pass_ch): Convert from a global struct to a
15864 subclass of gimple_opt_pass along with...
15865 (pass_data_ch): ...new pass_data instance and...
15866 (make_pass_ch): ...new function.
15867 * tree-ssa-loop.c (pass_tree_loop): Convert from a global struct to a
15868 subclass of gimple_opt_pass along with...
15869 (pass_data_tree_loop): ...new pass_data instance and...
15870 (make_pass_tree_loop): ...new function.
15871 (pass_tree_loop_init): Convert from a global struct to a subclass of
15872 gimple_opt_pass along with...
15873 (pass_data_tree_loop_init): ...new pass_data instance and...
15874 (make_pass_tree_loop_init): ...new function.
15875 (pass_lim): Convert from a global struct to a subclass of
15876 gimple_opt_pass along with...
15877 (pass_data_lim): ...new pass_data instance and...
15878 (make_pass_lim): ...new function.
15879 (pass_tree_unswitch): Convert from a global struct to a subclass of
15880 gimple_opt_pass along with...
15881 (pass_data_tree_unswitch): ...new pass_data instance and...
15882 (make_pass_tree_unswitch): ...new function.
15883 (pass_predcom): Convert from a global struct to a subclass of
15884 gimple_opt_pass along with...
15885 (pass_data_predcom): ...new pass_data instance and...
15886 (make_pass_predcom): ...new function.
15887 (pass_vectorize): Convert from a global struct to a subclass of
15888 gimple_opt_pass along with...
15889 (pass_data_vectorize): ...new pass_data instance and...
15890 (make_pass_vectorize): ...new function.
15891 (pass_graphite): Convert from a global struct to a subclass of
15892 gimple_opt_pass along with...
15893 (pass_data_graphite): ...new pass_data instance and...
15894 (make_pass_graphite): ...new function.
15895 (pass_graphite_transforms): Convert from a global struct to a subclass
15896 of gimple_opt_pass along with...
15897 (pass_data_graphite_transforms): ...new pass_data instance and...
15898 (make_pass_graphite_transforms): ...new function.
15899 (pass_check_data_deps): Convert from a global struct to a subclass of
15900 gimple_opt_pass along with...
15901 (pass_data_check_data_deps): ...new pass_data instance and...
15902 (make_pass_check_data_deps): ...new function.
15903 (pass_iv_canon): Convert from a global struct to a subclass of
15904 gimple_opt_pass along with...
15905 (pass_data_iv_canon): ...new pass_data instance and...
15906 (make_pass_iv_canon): ...new function.
15907 (pass_scev_cprop): Convert from a global struct to a subclass of
15908 gimple_opt_pass along with...
15909 (pass_data_scev_cprop): ...new pass_data instance and...
15910 (make_pass_scev_cprop): ...new function.
15911 (pass_record_bounds): Convert from a global struct to a subclass of
15912 gimple_opt_pass along with...
15913 (pass_data_record_bounds): ...new pass_data instance and...
15914 (make_pass_record_bounds): ...new function.
15915 (pass_complete_unroll): Convert from a global struct to a subclass of
15916 gimple_opt_pass along with...
15917 (pass_data_complete_unroll): ...new pass_data instance and...
15918 (make_pass_complete_unroll): ...new function.
15919 (pass_complete_unrolli): Convert from a global struct to a subclass of
15920 gimple_opt_pass along with...
15921 (pass_data_complete_unrolli): ...new pass_data instance and...
15922 (make_pass_complete_unrolli): ...new function.
15923 (pass_parallelize_loops): Convert from a global struct to a subclass
15924 of gimple_opt_pass along with...
15925 (pass_data_parallelize_loops): ...new pass_data instance and...
15926 (make_pass_parallelize_loops): ...new function.
15927 (pass_loop_prefetch): Convert from a global struct to a subclass of
15928 gimple_opt_pass along with...
15929 (pass_data_loop_prefetch): ...new pass_data instance and...
15930 (make_pass_loop_prefetch): ...new function.
15931 (pass_iv_optimize): Convert from a global struct to a subclass of
15932 gimple_opt_pass along with...
15933 (pass_data_iv_optimize): ...new pass_data instance and...
15934 (make_pass_iv_optimize): ...new function.
15935 (pass_tree_loop_done): Convert from a global struct to a subclass of
15936 gimple_opt_pass along with...
15937 (pass_data_tree_loop_done): ...new pass_data instance and...
15938 (make_pass_tree_loop_done): ...new function.
15939 * tree-ssa-math-opts.c (pass_cse_reciprocals): Convert from a global
15940 struct to a subclass of gimple_opt_pass along with...
15941 (pass_data_cse_reciprocals): ...new pass_data instance and...
15942 (make_pass_cse_reciprocals): ...new function.
15943 (pass_cse_sincos): Convert from a global struct to a subclass of
15944 gimple_opt_pass along with...
15945 (pass_data_cse_sincos): ...new pass_data instance and...
15946 (make_pass_cse_sincos): ...new function.
15947 (pass_optimize_bswap): Convert from a global struct to a subclass of
15948 gimple_opt_pass along with...
15949 (pass_data_optimize_bswap): ...new pass_data instance and...
15950 (make_pass_optimize_bswap): ...new function.
15951 (pass_optimize_widening_mul): Convert from a global struct to a
15952 subclass of gimple_opt_pass along with...
15953 (pass_data_optimize_widening_mul): ...new pass_data instance and...
15954 (make_pass_optimize_widening_mul): ...new function.
15955 * tree-ssa-phiopt.c (pass_phiopt): Convert from a global struct to a
15956 subclass of gimple_opt_pass along with...
15957 (pass_data_phiopt): ...new pass_data instance and...
15958 (make_pass_phiopt): ...new function.
15959 (pass_cselim): Convert from a global struct to a subclass of
15960 gimple_opt_pass along with...
15961 (pass_data_cselim): ...new pass_data instance and...
15962 (make_pass_cselim): ...new function.
15963 * tree-ssa-phiprop.c (pass_phiprop): Convert from a global struct to a
15964 subclass of gimple_opt_pass along with...
15965 (pass_data_phiprop): ...new pass_data instance and...
15966 (make_pass_phiprop): ...new function.
15967 * tree-ssa-pre.c (pass_pre): Convert from a global struct to a
15968 subclass of gimple_opt_pass along with...
15969 (pass_data_pre): ...new pass_data instance and...
15970 (make_pass_pre): ...new function.
15971 (pass_fre): Convert from a global struct to a subclass of
15972 gimple_opt_pass along with...
15973 (pass_data_fre): ...new pass_data instance and...
15974 (make_pass_fre): ...new function.
15975 * tree-ssa-reassoc.c (pass_reassoc): Convert from a global struct to a
15976 subclass of gimple_opt_pass along with...
15977 (pass_data_reassoc): ...new pass_data instance and...
15978 (make_pass_reassoc): ...new function.
15979 * tree-ssa-sink.c (pass_sink_code): Convert from a global struct to a
15980 subclass of gimple_opt_pass along with...
15981 (pass_data_sink_code): ...new pass_data instance and...
15982 (make_pass_sink_code): ...new function.
15983 * tree-ssa-strlen.c (pass_strlen): Convert from a global struct to a
15984 subclass of gimple_opt_pass along with...
15985 (pass_data_strlen): ...new pass_data instance and...
15986 (make_pass_strlen): ...new function.
15987 * tree-ssa-structalias.c (pass_build_alias): Convert from a global
15988 struct to a subclass of gimple_opt_pass along with...
15989 (pass_data_build_alias): ...new pass_data instance and...
15990 (make_pass_build_alias): ...new function.
15991 (pass_build_ealias): Convert from a global struct to a subclass of
15992 gimple_opt_pass along with...
15993 (pass_data_build_ealias): ...new pass_data instance and...
15994 (make_pass_build_ealias): ...new function.
15995 (pass_ipa_pta): Convert from a global struct to a subclass of
15996 simple_ipa_opt_pass along with...
15997 (pass_data_ipa_pta): ...new pass_data instance and...
15998 (make_pass_ipa_pta): ...new function.
15999 * tree-ssa-uncprop.c (pass_uncprop): Convert from a global struct to a
16000 subclass of gimple_opt_pass along with...
16001 (pass_data_uncprop): ...new pass_data instance and...
16002 (make_pass_uncprop): ...new function.
16003 * tree-ssa-uninit.c (pass_late_warn_uninitialized): Convert from a
16004 global struct to a subclass of gimple_opt_pass along with...
16005 (pass_data_late_warn_uninitialized): ...new pass_data instance and...
16006 (make_pass_late_warn_uninitialized): ...new function.
16007 * tree-ssa.c (pass_init_datastructures): Convert from a global struct
16008 to a subclass of gimple_opt_pass along with...
16009 (pass_data_init_datastructures): ...new pass_data instance and...
16010 (make_pass_init_datastructures): ...new function.
16011 (pass_early_warn_uninitialized): Convert from a global struct to a
16012 subclass of gimple_opt_pass along with...
16013 (pass_data_early_warn_uninitialized): ...new pass_data instance and...
16014 (make_pass_early_warn_uninitialized): ...new function.
16015 (pass_update_address_taken): Convert from a global struct to a
16016 subclass of gimple_opt_pass along with...
16017 (pass_data_update_address_taken): ...new pass_data instance and...
16018 (make_pass_update_address_taken): ...new function.
16019 * tree-ssanames.c (pass_release_ssa_names): Convert from a global
16020 struct to a subclass of gimple_opt_pass along with...
16021 (pass_data_release_ssa_names): ...new pass_data instance and...
16022 (make_pass_release_ssa_names): ...new function.
16023 * tree-stdarg.c (pass_stdarg): Convert from a global struct to a
16024 subclass of gimple_opt_pass along with...
16025 (pass_data_stdarg): ...new pass_data instance and...
16026 (make_pass_stdarg): ...new function.
16027 * tree-switch-conversion.c (pass_convert_switch): Convert from a
16028 global struct to a subclass of gimple_opt_pass along with...
16029 (pass_data_convert_switch): ...new pass_data instance and...
16030 (make_pass_convert_switch): ...new function.
16031 * tree-tailcall.c (pass_tail_recursion): Convert from a global struct
16032 to a subclass of gimple_opt_pass along with...
16033 (pass_data_tail_recursion): ...new pass_data instance and...
16034 (make_pass_tail_recursion): ...new function.
16035 (pass_tail_calls): Convert from a global struct to a subclass of
16036 gimple_opt_pass along with...
16037 (pass_data_tail_calls): ...new pass_data instance and...
16038 (make_pass_tail_calls): ...new function.
16039 * tree-vect-generic.c (pass_lower_vector): Convert from a global
16040 struct to a subclass of gimple_opt_pass along with...
16041 (pass_data_lower_vector): ...new pass_data instance and...
16042 (make_pass_lower_vector): ...new function.
16043 (pass_lower_vector_ssa): Convert from a global struct to a subclass of
16044 gimple_opt_pass along with...
16045 (pass_data_lower_vector_ssa): ...new pass_data instance and...
16046 (make_pass_lower_vector_ssa): ...new function.
16047 * tree-vectorizer.c (pass_slp_vectorize): Convert from a global struct
16048 to a subclass of gimple_opt_pass along with...
16049 (pass_data_slp_vectorize): ...new pass_data instance and...
16050 (make_pass_slp_vectorize): ...new function.
16051 (pass_ipa_increase_alignment): Convert from a global struct to a
16052 subclass of simple_ipa_opt_pass along with...
16053 (pass_data_ipa_increase_alignment): ...new pass_data instance and...
16054 (make_pass_ipa_increase_alignment): ...new function.
16055 * tree-vrp.c (pass_vrp): Convert from a global struct to a subclass of
16056 gimple_opt_pass along with...
16057 (pass_data_vrp): ...new pass_data instance and...
16058 (make_pass_vrp): ...new function.
16059 * tree.c (pass_ipa_free_lang_data): Convert from a global struct to a
16060 subclass of simple_ipa_opt_pass along with...
16061 (pass_data_ipa_free_lang_data): ...new pass_data instance and...
16062 (make_pass_ipa_free_lang_data): ...new function.
16063 * tsan.c (pass_tsan): Convert from a global struct to a subclass of
16064 gimple_opt_pass along with...
16065 (pass_data_tsan): ...new pass_data instance and...
16066 (make_pass_tsan): ...new function.
16067 (pass_tsan_O0): Convert from a global struct to a subclass of
16068 gimple_opt_pass along with...
16069 (pass_data_tsan_O0): ...new pass_data instance and...
16070 (make_pass_tsan_O0): ...new function.
16071 * var-tracking.c (pass_variable_tracking): Convert from a global
16072 struct to a subclass of rtl_opt_pass along with...
16073 (pass_data_variable_tracking): ...new pass_data instance and...
16074 (make_pass_variable_tracking): ...new function.
16075 * web.c (pass_web): Convert from a global struct to a subclass of
16076 rtl_opt_pass along with...
16077 (pass_data_web): ...new pass_data instance and...
16078 (make_pass_web): ...new function.
16079 * config/epiphany/epiphany.h (pass_mode_switch_use): Replace
16080 declaration with that of...
16081 (make_pass_mode_switch_use): ...new function.
16082 (pass_resolve_sw_modes): Replace declaration with that of...
16083 (make_pass_resolve_sw_modes): ...new function.
16084 * config/epiphany/mode-switch-use.c (pass_mode_switch_use): Convert
16085 from a global struct to a subclass of rtl_opt_pass along with...
16086 (pass_data_mode_switch_use): ...new pass_data instance and...
16087 (make_pass_mode_switch_use): ...new function.
16088 * config/epiphany/resolve-sw-modes.c (pass_resolve_sw_modes): Convert
16089 from a global struct to a subclass of rtl_opt_pass along with...
16090 (pass_data_resolve_sw_modes): ...new pass_data instance and...
16091 (make_pass_resolve_sw_modes): ...new function.
16092 * config/i386/i386.c (pass_insert_vzeroupper): Convert from a global
16093 struct to a subclass of rtl_opt_pass along with...
16094 (pass_data_insert_vzeroupper): ...new pass_data instance and...
16095 (make_pass_insert_vzeroupper): ...new function.
16096 * config/sparc/sparc.c (pass_work_around_errata): Convert from a
16097 global struct to a subclass of rtl_opt_pass along with...
16098 (pass_data_work_around_errata): ...new pass_data instance and...
16099 (make_pass_work_around_errata): ...new function.
16100 * config/mips/mips.c (pass_mips_machine_reorg2): Convert from a global
16101 struct to a subclass of rtl_opt_pass along with...
16102 (pass_data_mips_machine_reorg2): ...new pass_data instance and...
16103 (make_pass_mips_machine_reorg2): ...new function.
16105 2013-08-05 David Malcolm <dmalcolm@redhat.com>
16107 * passes.c (pass_manager::operator new): New.
16109 2013-08-05 David Malcolm <dmalcolm@redhat.com>
16111 Handwritten part of conversion of passes to C++ classes.
16113 * Makefile.in (PASS_MANAGER_H): Add dep on pass-instances.def.
16114 (toplev.o): Add dep on PASS_MANAGER_H.
16115 * cgraphunit.c (cgraph_process_new_functions): Rework invocation
16116 of early local pases to reflect this moving from a global to a
16117 member of gcc::pass_manager.
16118 (cgraph_add_new_function): Likewise.
16119 * lto-cgraph.c (lto_output_node): Update for conversion of
16120 struct ipa_opt_pass_d to a C++ subclass of opt_pass.
16121 * passes.c (opt_pass::clone): New.
16122 (opt_pass::gate): New.
16123 (opt_pass::execute): New.
16124 (opt_pass::opt_pass): New.
16125 (pass_manager::execute_early_local_passes): New.
16126 (pass_manager::execute_pass_mode_switching): new.
16127 (finish_optimization_passes): Convert to...
16128 (pass_manager::finish_optimization_passes): ...this.
16129 (finish_optimization_passes): Update for conversion of passes to
16131 (register_dump_files_1): Use has_gate since we cannot portably
16132 check a vtable entry against NULL.
16133 (dump_one_pass): Likewise.
16134 (ipa_write_summaries_2): Likewise.
16135 (ipa_write_optimization_summaries_1): Likewise.
16136 (ipa_read_summaries_1): Likewise.
16137 (ipa_read_optimization_summaries_1): Likewise.
16138 (execute_ipa_stmt_fixups): Likewise.
16139 (pass_manager::pass_manager): Rewrite pass-creation, invoking
16140 pass-creation functions rather than wiring up globals, and
16141 storing the results in fields of pass_manager generated using
16142 pass-instances.def.
16143 (pass_manager::dump_profile_report): Update for conversion of
16144 passes to C++ classes.
16145 (pass_manager::execute_ipa_summary_passes): Likewise.
16146 (execute_one_ipa_transform_pass): Likewise.
16147 (execute_one_pass): Use has_gate and has_execute since we cannot
16148 portably check a vtable entry against NULL.
16149 * pass_manager.h (pass_manager::finish_optimization_passes): New.
16150 (pass_manager): Use pass-instances.def to add fields for the
16151 various pass instances.
16152 * toplev.c (finalize): Update for move of
16153 finish_optimization_passes to a method of gcc::pass_manager.
16154 * toplev.h (finish_optimization_passes): Move to method of class
16156 * tree-pass.h (struct pass_data): New.
16157 (opt_pass): Convert to C++ class, make it a subclass of pass_data.
16158 (opt_pass::gate): Convert to virtual function.
16159 (opt_pass::~opt_pass): New.
16160 (opt_pass::clone): New.
16161 (opt_pass::execute): Convert to virtual function.
16162 (opt_pass::opt_pass): New.
16163 (opt_pass::ctxt_): new.
16164 (gimple_opt_pass): Convert to subclass of opt_pass.
16165 (gimple_opt_pass::gimple_opt_pass): New.
16166 (rtl_opt_pass): Convert to subclass of opt_pass.
16167 (rtl_opt_pass::rtl_opt_pass): New.
16168 (ipa_opt_pass_d): Convert to subclass of opt_pass.
16169 (ipa_opt_pass_d::ipa_opt_pass_d): New.
16170 (simple_ipa_opt_pass): Convert to subclass of opt_pass.
16171 (simple_ipa_opt_pass::simple_ipa_opt_pass): New.
16172 * config/i386/i386.c (rest_of_handle_insert_vzeroupper): Rework
16173 invocation of pass_mode_switching to reflect this moving from a
16174 global to a member of gcc::pass_manager.
16175 (ix86_option_override): Rework how pass_insert_vzeroupper is
16176 added to the pass_manager to reflect autogenerated changes.
16177 * config/i386/t-i386 (i386.o) Add deps on CONTEXT_H and PASS_MANAGER_H.
16179 2013-08-05 Richard Earnshaw <rearnsha@arm.com>
16181 PR rtl-optimization/57708
16182 * recog.c (peep2_find_free_register): Validate all regs in a
16185 2013-08-05 Jan Hubicka <jh@suse.cz>
16188 * cgraph.c (verify_cgraph_node): Accept local flags from other
16190 * ipa.c (symtab_remove_unreachable_nodes): Do not clear local flag.
16191 (function_and_variable_visibility): Likewise.
16192 * trans-mem.c (ipa_tm_create_version): TM versions are not local.
16194 2013-08-05 Gabriel Dos Reis <gdr@integrable-solutions.net>
16196 * graph.c (init_graph_slim_pretty_print): Remove.
16197 (print_graph_cfg): Do not call it. Use local pretty printer.
16198 (start_graph_dump): Likewise.
16200 2013-08-05 Gabriel Dos Reis <gdr@integrable-solutions.net>
16202 * gimple-pretty-print.c (buffer): Remove.
16203 (initialized): Likewise.
16204 (maybe_init_pretty_print): Likewise.
16205 (print_gimple_stmt): Do not call it. Use non-static local
16206 pretty_printer variable.
16207 (print_gimple_expr): Likewise.
16208 (print_gimple_seq): Likewise.
16209 (gimple_dump_bb): Likewise.
16211 2013-08-05 Gabriel Dos Reis <gdr@integrable-solutions.net>
16213 * asan.c (asan_pp): Remove.
16214 (asan_pp_initialized): Likewise.
16215 (asan_pp_initialize): Likewise.
16216 (asan_pp_string): Take a pretty_printer parameter. Adjust callers.
16217 (asan_emit_stack_protection): Tidy. Use local pretty printer.
16218 (asan_add_global): Likewise.
16220 2013-08-04 Gabriel Dos Reis <gdr@integrable-solutions.net>
16222 * pretty-print.h (pp_base): Remove. Adjust dependent macros.
16223 * diagnostic.h (diagnostic_flush_buffer): Adjust.
16224 * pretty-print.c (pp_formatted_text_data): Likewise.
16225 (pp_indent): Rename from pp_base_indent.
16226 (pp_format): Rename from pp_base_format.
16227 (pp_output_formatted_text): Rename from pp_base_output_formatted_text.
16228 (pp_format_verbatim): Rename from pp_base_format_verbatim.
16229 (pp_flush): Rename from pp_base_flush.
16230 (pp_set_line_maximum_length): Rename from
16231 pp_base_set_line_maximum_length.
16232 (pp_clear_output_area): Rename from pp_base_clear_output_area.
16233 (pp_set_prefix): Rename from pp_base_set_prefix.
16234 (pp_destroy_prefix): Rename from pp_base_destroy_prefix.
16235 (pp_emit_prefix): Rename from pp_base_emit_prefix.
16236 (pp_append_text): Rename from pp_base_append_text.
16237 (pp_formatted_text): Rename from pp_base_formatted_text.
16238 (pp_last_position_in_text): Rename from pp_base_last_position_in_text.
16239 (pp_remaining_character_count_for_line): Rename from
16240 pp_base_remaining_character_count_for_line.
16241 (pp_newline): Rename from pp_base_newline.
16242 (pp_character): Rename from pp_base_character.
16243 (pp_string): Rename from pp_base_string.
16244 (pp_maybe_space): Rename from pp_base_maybe_space.
16245 * asan.c (asan_pp_string): Adjust.
16246 (asan_emit_stack_protection): Likewise.
16247 (asan_add_global): Likewise.
16248 * sched-vis.c (str_pattern_slim): Adjust pretty printer function call.
16249 * tree-mudflap.c (mf_varname_tree): Likewise.
16250 * tree-pretty-print.c (pp_tree_identifier): Rename from
16251 pp_base_tree_identifier.
16252 * tree-pretty-print.h (pp_tree_identifier): Remove macro definition.
16253 Declare as function.
16255 2013-08-03 Gabriel Dos Reis <gdr@integrable-solutions.net>
16257 * pretty-print.h (pp_bar_bar): New.
16258 (pp_ampersand_ampersand): Likewise.
16259 (pp_less_equal): Likewise.
16260 (pp_greater_equal): Likewise.
16261 * gimple-pretty-print.c (dump_ternary_rhs): Use specialized pretty
16262 printer functions instead of pp_string or operators and punctuators.
16263 (dump_gimple_call): Likewise.
16264 (dump_gimple_omp_for): Likewise.
16265 (dump_gimple_transaction): Likewise.
16266 (dump_gimple_phi): Likewise.
16267 (pp_gimple_stmt_1): Likewise.
16268 * sched-vis.c (print_insn): Likewise.
16269 * tree-mudflap.c (mf_varname_tree): Likewise.
16270 * tree-pretty-print.c (dump_block_node): Likewise.
16271 (dump_generic_node): Likewise.
16273 2013-08-02 Jan Hubicka <jh@suse.cz>
16275 * lto-cgraph.c (compute_ltrans_boundary): Add abstract origins into
16277 * lto-streamer-out.c (tree_is_indexable): Results decls and
16278 parm decls are not indexable.
16279 (DFS_write_tree_body): Do not follow args and results.
16280 (hash_tree): Likewise.
16281 (output_functions): Rearrange so struct function is needed
16282 only when real body is output; be able to also ouptut abstract
16283 functions; output DECL_ARGUMENTS and DECL_RESULT.
16284 (lto_output): When not in WPA, ale store abstract functions.
16285 (write_symbol): Do not care about RESULT_DECL.
16286 (output_symbol_p): Handle correctly sbtract decls.
16287 * lto-streamer-in.c (input_function): Rearrange so struct
16288 function can be NULL at entry; allow streaming of
16289 functions w/o body; store DECL_ARGUMENTS and DECL_RESULT.
16290 * ipa.c (symtab_remove_unreachable_nodes): Silence confused
16291 sanity check during LTO.
16292 * tree-streamer-out.c (write_ts_decl_non_common_tree_pointers): Skip
16293 RESULT_DECl and DECL_ARGUMENTS.
16294 * tree-streamer-in.c (lto_input_ts_decl_non_common_tree_pointers):
16297 2013-08-03 Gabriel Dos Reis <gdr@integrable-solutions.net>
16299 * pretty-print.h (pp_underscore): New.
16301 * gimple-pretty-print.c (dump_unary_rhs): Use specialized pretty
16302 printer functions instead of pp_character.
16303 (dump_binary_rhs): Likewise.
16304 (dump_ternary_rhs): Likewise.
16305 (dump_gimple_call_args): Likewise.
16306 (pp_points_to_solution): Likewise.
16307 (dump_gimple_call): Likewise.
16308 (dump_gimple_switch): Likewise.
16309 (dump_gimple_cond): Likewise.
16310 (dump_gimple_bind): Likewise.
16311 (dump_gimple_try): Likewise.
16312 (dump_gimple_omp_for): Likewise.
16313 (dump_gimple_omp_continue): Likewise.
16314 (dump_gimple_omp_single): Likewise.
16315 (dump_gimple_omp_sections): Likewise.
16316 (dump_gimple_omp_block): Likewise.
16317 (dump_gimple_omp_critical): Likewise.
16318 (dump_gimple_transaction): Likewise.
16319 (dump_gimple_asm): Likewise.
16320 (dump_gimple_phi): Likewise.
16321 (dump_gimple_omp_parallel): Likewise.
16322 (dump_gimple_omp_task): Likewise.
16323 (dump_gimple_omp_atomic_load): Likewise.
16324 (dump_gimple_omp_atomic_store): Likewise.
16325 (dump_gimple_mem_ops): Likewise.
16326 (pp_gimple_stmt_1): Likewise.
16327 (pp_cfg_jump): Likewise.
16328 (dump_implicit_edges): Likewise.
16329 (gimple_dump_bb_for_graph): Likewise.
16330 * graph.c (draw_cfg_node): Likewise.
16331 * langhooks.c (lhd_print_error_function): Likewise.
16332 * sched-vis.c (print_exp): Likewise.
16333 (print_value): Likewise.
16334 (print_pattern): Likewise.
16335 (print_insn): Likewise.
16336 (rtl_dump_bb_for_graph): Likewise.
16337 * tree-pretty-print.c (dump_function_declaration): Likewise.
16338 (dump_array_domain): Likewise.
16339 (dump_omp_clause): Likewise.
16340 (dump_location): Likewise.
16341 (dump_generic_node): Likewise.
16342 (print_struct_decl): Likewise.
16343 * diagnostic.c (diagnostic_show_locus): Use pp_space.
16345 2013-08-03 Bill Schmidt <wschmidt@vnet.linux.ibm.com>
16347 * gimple-ssa-strength-reduction.c (replace_mult_candidate): Update
16348 candidate table when replacing a candidate statement.
16349 (replace_rhs_if_not_dup): Likewise.
16350 (replace_one_candidate): Likewise.
16352 2013-08-02 Jan Hubicka <jh@suse.cz>
16353 Martin Liska <marxin.liska@gmail.com>
16355 * cgraphunit.c (add_new_function): Fix logic when adding from
16357 (assemble_thunk): Rename to ...
16358 (expand_thunk); .. this one; export; get it working with
16359 general functions; make produced gimple valid.
16360 * cgraph.h (expand_thunk): Declare.
16362 2013-08-02 Jan Hubicka <jh@suse.cz>
16364 * ipa-cp.c (gather_context_independent_values): Use
16365 ipa_get_param_move_cost.
16366 (get_replacement_map): Remove PARAM; move parameter folding
16368 (create_specialized_node): Update.
16369 * ipa-prop.c (ipa_populate_param_decls): Do not look for origins;
16370 assert that we have gimple body; update move_cost.
16371 (count_formal_params): Assert that we have gimple body.
16372 (ipa_dump_param): New function.
16373 (ipa_alloc_node_params): Break out from ...
16374 (ipa_initialize_node_params): ... here.
16375 (ipa_get_vector_of_formal_parms): ICE when used in WPA.
16376 (ipa_write_node_info): Stream move costs.
16377 (ipa_read_node_info): Read move costs.
16378 (ipa_update_after_lto_read): Do not recompute node params.
16379 * ipa-prop.h (ipa_param_descriptor): Add move_cost.
16380 (ipa_get_param): Check we are not in WPA.
16381 (ipa_get_param_move_cost): New.
16382 * tree-inline.c (tree_function_versioning): Fold replacement as needed.
16383 * ipa-inline-analysis.c (inline_node_duplication_hook): Expect only
16384 parm numbers to be present.
16386 2013-08-02 Vladimir Makarov <vmakarov@redhat.com>
16388 PR rtl-optimization/58048
16389 * lra-constraints.c (process_alt_operands): Don't check asm
16390 operand on register.
16392 2013-08-02 Eric Botcazou <ebotcazou@adacore.com>
16394 * config/sparc/sparc.c (sparc_emit_membar_for_model) <SMM_TSO>: Add
16395 the implied StoreLoad barrier for atomic operations if before.
16397 2013-08-02 Jan Hubicka <jh@suse.cz>
16398 Martin Liska <marxin.liska@gmail.com>
16400 * cgraph.c (cgraph_function_body_availability): Do not check
16402 * cgraph.h (symtab_for_node_and_aliases, symtab_nonoverwritable_alias,
16403 symtab_node_availability): Declare.
16404 * ipa.c (can_replace_by_local_alias): New.
16405 (function_and_variable_visibility): Use it.
16406 * symtab.c (symtab_for_node_and_aliases,
16407 symtab_nonoverwritable_alias_1, symtab_nonoverwritable_alias): New.
16409 2013-08-02 Vladimir Makarov <vmakarov@redhat.com>
16411 PR rtl-optimization/57963
16412 * lra-constraints.c (reverse_equiv_p, contains_reloaded_insn_p): New.
16413 (lra_constraints): Use them.
16415 2013-08-02 Sofiane Naci <sofiane.naci@arm.com>
16417 * config/arm/types.md (define_attr "type"): Add "load_acq"
16419 * config/arm/cortex-a53.md (cortex_a53_load1): Update for attribute
16421 (cortex_a53_store1): Likewise.
16423 2013-08-01 Jan Hubicka <jh@suse.cz>
16425 * ipa.c (symtab_remove_unreachable_nodes): Nodes in other
16426 partitions are not needed.
16428 2013-08-01 Uros Bizjak <ubizjak@gmail.com>
16430 * config/i386/i386.h (MAYBE_NON_Q_CLASS_P): New.
16431 * config/i386/i386.c (ix86_secondary_reload): Use INTEGER_CLASS_P and
16432 MAYBE_NON_Q_CLASS_P where appropriate.
16434 2013-08-01 Jan Hubicka <jh@suse.cz>
16436 * cgraph.h (release_function_body): Declare.
16437 * tree.c (free_lang_data_in_decl): Free, parameters and return values
16438 of unused delcarations.
16440 2013-08-01 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
16442 * config/arm/arm.md (minmax_arithsi_non_canon): Emit canonical
16443 RTL form when subtracting a constant.
16445 2013-08-01 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
16447 * config/arm/arm.md (peepholes for eq (reg1) (reg2/imm)):
16448 Generate canonical plus rtx with negated immediate instead of minus
16450 * config/arm/arm.c (thumb2_reorg): Handle ADCS <Rd>, <Rn> case.
16452 2013-08-01 Jan Hubicka <jh@suse.cz>
16454 * cgraph.c (cgraph_release_function_body): Use used_as_abstract_origin.
16455 (cgraph_release_function_body): Likewise.
16456 (cgraph_can_remove_if_no_direct_calls_p): Likewise.
16457 * cgraph.h (cgrpah_node): Rename abstract_and_needed
16458 to used_as_abstract_origin.
16459 * tree-inline-transfrom.c (can_remove_node_now_p_1): Do not remove
16460 symbols used as abstract origins.
16461 * cgraphunit.c (analyze_functions): Update.
16462 * ipa.c (symtab_remove_unreachable_nodes): Recompute
16463 used_as_abstract_origin.
16464 * tree-inline.c (tree_function_versioning): Update
16465 used_as_abstract_origin; be ready for DECL_RESULT and
16466 DECL_ARGUMENTS to be NULL.
16468 * lto-symtab.c (lto_symtab_merge_symbols): Merge duplicated nodes
16469 for abstract functions.
16470 * cgraph.h (symtab_real_symbol_p): Abstract declarations are not
16473 2013-08-01 Jan Hubicka <jh@suse.cz>
16475 * profile.c (compute_value_histograms): Fix thinko.
16477 2013-08-01 Sofiane Naci <sofiane.naci@arm.com>
16479 * config.gcc (aarch64*-*-*): Add aarch-common.o to extra_objs. Add
16480 aarch-common-protos.h to extra_headers.
16481 (aarch64*-*-*): Add arm/aarch-common-protos.h to tm_p_file.
16482 * config/aarch64/aarch64.md: Include "../arm/cortex-a53.md".
16483 * config/aarch64/t-aarch64 (aarch-common.o): Define.
16485 2013-08-01 Sofiane Naci <sofiane.naci@arm.com>
16487 * config/aarch64/aarch64.md (define_attr "type"): Delete.
16488 Include "../arm/types.md". Define "type" attribute for all patterns.
16489 * config/aarch64/aarch64-simd.md (move_lo_quad_<mode>): Update for
16492 2013-07-31 Michael Meissner <meissner@linux.vnet.ibm.com>
16494 * config/rs6000/predicates.md (fusion_gpr_addis): New predicates
16495 to support power8 load fusion.
16496 (fusion_gpr_mem_load): Likewise.
16498 * config/rs6000/rs6000-modes.def (PTImode): Update a comment.
16500 * config/rs6000/rs6000-protos.h (fusion_gpr_load_p): New
16501 declarations for power8 load fusion.
16502 (emit_fusion_gpr_load): Likewise.
16504 * config/rs6000/rs6000.c (rs6000_option_override_internal): If
16505 tuning for power8, turn on fusion mode by default. Turn on sign
16506 extending fusion mode if normal fusion mode is on, and we are at
16508 (fusion_gpr_load_p): New function, return true if we can fuse an
16509 addis instruction with a dependent load to a GPR.
16510 (emit_fusion_gpr_load): Emit the instructions for power8 load
16513 * config/rs6000/vsx.md (VSX_M2): New iterator for fusion peepholes.
16514 (VSX load fusion peepholes): New peepholes to fuse together an
16515 addi instruction with a VSX load instruction.
16517 * config/rs6000/rs6000.md (GPR load fusion peepholes): New
16518 peepholes to fuse an addis instruction with a load to a GPR base
16519 register. If we are supporting sign extending fusions, convert
16520 sign extending loads to zero extending loads and add an explicit
16523 2013-07-31 Sofiane Naci <sofiane.naci@arm.com>
16525 * config.gcc (arm*-*-*): Add aarch-common.o to extra_objs. Add
16526 aarch-common-protos.h to extra_headers.
16527 (arm*-*-*): Add arm/aarch-common-protos.h to tm_p_file.
16528 * config/arm/arm.c (arm_early_load_addr_dep): Move from here to ...
16529 (arm_early_store_addr_dep): Likewise.
16530 (arm_no_early_alu_shift_dep): Likewise.
16531 (arm_no_early_alu_shift_value_dep): Likewise.
16532 (arm_no_early_mul_dep): Likewise.
16533 (arm_no_early_store_addr_dep): Likewise.
16534 (arm_mac_accumulator_is_mul_result): Likewise.
16535 (arm_mac_accumulator_is_result): Likewise.
16536 * config/arm/aarch-common.c: ... here. New file.
16537 * config/arm/arm-protos.h (arm_early_load_addr_dep): Move from
16539 (arm_early_store_addr_dep): Likewise.
16540 (arm_no_early_alu_shift_dep): Likewise.
16541 (arm_no_early_alu_shift_value_dep): Likewise.
16542 (arm_no_early_mul_dep): Likewise.
16543 (arm_no_early_store_addr_dep): Likewise.
16544 (arm_mac_accumulator_is_mul_result): Likewise.
16545 (arm_mac_accumulator_is_result): Likewise.
16546 * config/arm/aarch-common-protos.h: ... here. New file.
16547 * config/arm/t-arm (aarch-common.o): Define.
16549 2013-07-31 Sofiane Naci <sofiane.naci@arm.com>
16551 * config/arm/arm.md: Include new file "types.md".
16552 (define_attr "type"): Move from here to ...
16553 (define_attr "mul32"): Likewise.
16554 (define_attr "mul64"): Likewise.
16555 * config/arm/types.md: ... here. New file.
16557 2013-07-31 Sebastian Huber <sebastian.huber@embedded-brains.de>
16559 * config.gcc (*-*-rtems*): Use __cxa_atexit by default.
16560 * config/rs6000/rtems.h (TARGET_LIBGCC_SDATA_SECTION): Define.
16562 2013-07-31 Jan-Benedict Glaw <jbglaw@lug-owl.de>
16564 * gen-pass-instances.awk: Fix offset of substr().
16566 2013-07-31 David Malcolm <dmalcolm@redhat.com>
16568 * Makefile.in (pass-instances.def): New.
16569 (passes.o): Replace dependency on passes.def with one on
16572 * gen-pass-instances.awk: New.
16574 * passes.c (pass_manager::pass_manager): Use pass-instances.def
16575 rather than passes.def, updating local definition of NEXT_PASS
16576 macro to add an extra NUM parameter (currently unused).
16578 2013-07-30 David Malcolm <dmalcolm@redhat.com>
16580 * Makefile.in (PASS_MANAGER_H): New.
16581 (lto-cgraph.o): Depend on CONTEXT_H and PASS_MANAGER_H.
16582 (passes.o): Likewise.
16583 (statistics.o): Likewise.
16584 (cgraphunit.o): Likewise.
16585 (context.o): Depend on PASS_MANAGER_H.
16587 * pass_manager.h: New.
16589 * cgraphunit.c (cgraph_add_new_function): Update for moves
16590 of globals to fields of pass_manager.
16591 (analyze_function): Likewise.
16592 (expand_function): Likewise.
16593 (ipa_passes): Likewise.
16594 (compile): Likewise.
16596 * context.c (context::context): New.
16597 * context.h (context::context): New.
16598 (context::get_passes): New.
16599 (context::passes_): New.
16601 * lto-cgraph.c (input_node): Update for moves of globals to
16602 fields of pass_manager.
16604 * passes.c (all_passes): Remove, in favor of a field of the
16605 same name within the new class pass_manager.
16606 (all_small_ipa_passes): Likewise.
16607 (all_lowering_passes): Likewise.
16608 (all_regular_ipa_passes): Likewise.
16609 (all_late_ipa_passes): Likewise.
16610 (all_lto_gen_passes): Likewise.
16611 (passes_by_id): Likewise.
16612 (passes_by_id_size): Likewise.
16613 (gcc_pass_lists): Remove, in favor of "pass_lists" field within
16614 the new class pass_manager.
16615 (set_pass_for_id): Convert to...
16616 (pass_manager::set_pass_for_id): ...method.
16617 (get_pass_for_id): Convert to...
16618 (pass_manager::get_pass_for_id): ...method.
16619 (register_one_dump_file): Move body of implementation into...
16620 (pass_manager::register_one_dump_file): ...here.
16621 (register_dump_files_1): Convert to...
16622 (pass_manager::register_dump_files_1): ...method.
16623 (register_dump_files): Convert to...
16624 (pass_manager::register_dump_files): ...method.
16625 (create_pass_tab): Update for moves of globals to fields of
16627 (dump_passes): Move body of implementation into...
16628 (pass_manager::dump_passes): ...here.
16629 (register_pass): Move body of implementation into...
16630 (pass_manager::register_pass): ...here.
16631 (init_optimization_passes): Convert into...
16632 (pass_manager::pass_manager): ...constructor for new
16633 pass_manager class, and initialize the pass_lists array.
16634 (check_profile_consistency): Update for moves of globals to
16635 fields of pass_manager.
16636 (dump_profile_report): Move body of implementation into...
16637 (pass_manager::dump_profile_report): ...here.
16638 (ipa_write_summaries_1): Update for moves of pass lists from
16639 being globals to fields of pass_manager.
16640 (ipa_write_optimization_summaries): Likewise.
16641 (ipa_read_summaries): Likewise.
16642 (ipa_read_optimization_summaries): Likewise.
16643 (execute_all_ipa_stmt_fixups): Likewise.
16645 * statistics.c (statistics_fini): Update for moves of globals to
16646 fields of pass_manager.
16648 * toplev.c (general_init): Replace call to
16649 init_optimization_passes with construction of the pass_manager
16652 * tree-pass.h (all_passes): Remove, in favor of a field of the
16653 same name within the new class pass_manager.
16654 (all_small_ipa_passes): Likewise.
16655 (all_lowering_passes): Likewise.
16656 (all_regular_ipa_passes): Likewise.
16657 (all_lto_gen_passes): Likewise.
16658 (all_late_ipa_passes): Likewise.
16659 (passes_by_id): Likewise.
16660 (passes_by_id_size): Likewise.
16661 (gcc_pass_lists): Remove, in favor of "pass_lists" field within
16662 the new class pass_manager.
16663 (get_pass_for_id): Remove.
16665 2013-07-30 Richard Earnshaw <rearnsha@arm.com>
16667 * config.gcc (arm): Require 64-bit host-wide-int for all ARM target
16670 2013-07-30 Richard Earnshaw <rearnsha@arm.com>
16672 * arm.md (mulhi3): New expand pattern.
16674 2013-07-30 Jan Hubicka <jh@suse.cz>
16675 Martin Liska <marxin.liska@gmail.com>
16677 * profile.c (compute_value_histograms): Do not ICE when
16678 there is mismatch only on some counters.
16680 2013-07-30 Zhenqiang Chen <zhenqiang.chen@linaro.org>
16682 PR rtl-optimization/57637
16683 * function.c (move_insn_for_shrink_wrap): Also check the
16684 GEN set of the LIVE problem for the liveness analysis
16685 if it exists, otherwise give up.
16687 2013-07-29 Bill Schmidt <wschmidt@vnet.linux.ibm.com>
16689 PR tree-optimization/57993
16690 * gimple-ssa-strength-reduction.c (replace_mult_candidate): Record
16691 replaced statement in the candidate table.
16692 (phi_add_costs): Return infinite cost when the hidden basis does
16693 not dominate all phis on which the candidate is dependent.
16694 (replace_one_candidate): Record replaced statement in the
16697 2013-07-29 Joern Rennecke <joern.rennecke@embecosm.com>
16699 * config/epiphany/epiphany.md (*isub_i+2): New peephole.
16700 (ashlv2si3): New expander.
16701 (*ashlv2si3_i): New define_insn_and_split.
16702 * predicates.md (float_operation): Allow patterns with three
16703 basic sub-patterns.
16705 PR rtl-optimization/58021
16706 * mode-switching.c (create_pre_exit): Always split off preceding
16707 insns if we are not at the basic block head.
16709 2013-07-29 Maciej W. Rozycki <macro@codesourcery.com>
16711 * config/mips/linux.h (GLIBC_DYNAMIC_LINKER): Handle `-mnan=2008'.
16712 (UCLIBC_DYNAMIC_LINKER): New macro.
16713 * config/mips/linux64.h (GLIBC_DYNAMIC_LINKER32): Handle
16715 (GLIBC_DYNAMIC_LINKER64, GLIBC_DYNAMIC_LINKERN32): Likewise.
16716 (UCLIBC_DYNAMIC_LINKER32): Undefine macro first. Handle
16718 (UCLIBC_DYNAMIC_LINKER64): Redefine macro.
16719 (UCLIBC_DYNAMIC_LINKERN32): Likewise.
16720 * config/mips/mips-modes.def: Remove RESET_FLOAT_FORMAT calls
16721 for SF and DF modes. Use ieee_quad_format for TF mode.
16722 * config/mips/mips-opts.h (mips_ieee_754_setting): New enum.
16723 * config/mips/mips.c (mips_file_start): Output a `.nan' directive.
16724 (mips_option_override): Handle `-mnan=legacy'.
16725 * config/mips/mips.h (TARGET_CPU_CPP_BUILTINS): Handle
16726 `-mabs=2008' and `-mnan=2008'.
16727 (OPTION_DEFAULT_SPECS): Add "nan" default.
16728 (ASM_SPEC): Handle `-mnan='.
16729 [!HAVE_AS_NAN] (HAVE_AS_NAN): New macro.
16730 * config/mips/mips.md (abs<mode>2): Handle `-mabs=2008', update
16731 comment accordingly.
16732 (neg<mode>2): Likewise.
16733 * config/mips/mips.opt (mabs, mnan): New options.
16734 * doc/install.texi (Configuration): Document `--with-nan=' option.
16735 * doc/invoke.texi (Option Summary): List MIPS `-mabs=' and
16737 (MIPS Options): Document them.
16738 * config.gcc <mips*-*-*>: Handle `--with-nan='.
16739 * configure.ac <mips*-*-*>: Check for GAS `-mnan=2008' support.
16740 * configure: Regenerate.
16741 * config.in: Regenerate.
16743 2013-07-29 Uros Bizjak <ubizjak@gmail.com>
16745 * config/i386/i386.md (float post-reload splitters): Do not check
16746 for subregs of SSE registers.
16748 2013-07-29 Uros Bizjak <ubizjak@gmail.com>
16749 H.J. Lu <hongjiu.lu@intel.com>
16753 * config/i386/i386.md (post-reload splitter
16754 to avoid partial SSE reg dependency stalls): New pattern.
16756 2013-07-29 Dominik Vogt <vogt@linux.vnet.ibm.com>
16758 * config/s390/s390.md ("movcc"): Swap load and store instructions.
16760 2013-07-27 Joern Rennecke <joern.rennecke@embecosm.com>
16762 * config/epiphany/epiphany.c (epiphany_compute_frame_size):
16763 Also reserve space for saving UNKNOWN_REGNUM for leaf functions.
16765 2013-07-26 Cary Coutant <ccoutant@google.com>
16767 * dwarf2out.c (die_checksum_ordered): Don't include template
16768 instantiations in signature.
16769 (is_template_parameter): New function.
16770 (is_template_instantiation): New function.
16771 (generate_skeleton_bottom_up): Don't include template instantiations
16773 (generate_skeleton): Likewise.
16774 (break_out_comdat_types): Move recursive call to break out nested
16776 (prune_unused_types_mark_generic_parms_dies): Call
16777 is_template_parameter.
16779 2013-07-26 Ian Bolton <ian.bolton@arm.com>
16781 * config/aarch64/aarch64.md (neg<mode>2): Offer alternative that
16782 uses vector registers.
16783 * config/aarch64/iterators.md: Add attributes rtn and vas.
16785 2013-07-26 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
16786 Richard Earnshaw <richard.earnshaw@arm.com>
16788 * combine.c (simplify_comparison): Re-canonicalize operands
16790 * config/arm/arm.md (movcond_addsi): New splitter.
16792 2013-07-25 Sterling Augustine <saugustine@google.com>
16794 * dwarf2out.c (size_of_pubnames): Move code to...
16795 (include_pubname_in_output): ...here. New.
16796 (want_pubnames): Rearrange.
16797 (output_pubnames): Call include_pubname_in_output. Move assertion.
16799 2013-07-25 Cameron McInally <cameron.mcinally@nyu.edu>
16801 * doc/extend.texi: Fix return types for __builtin_ia32_cmp*s builtins.
16803 2013-07-25 Cameron McInally <cameron.mcinally@nyu.edu>
16806 * doc/extend.texi: Remove obsolete builtins. Fix
16807 typo for __builtin_ia32_loadss and __builtin_ia32_cmpnltss.
16809 2013-07-25 Jan Hubicka <jh@suse.cz>
16811 * cgraph.c (release_function_body): Break out from ...
16812 (cgraph_release_function_body): ... this one; also release DECL_RESULT
16813 and DECL_ARGUMENTS.
16814 * ipa-cp.c (get_replacement_map): Add parm_num argument; do not set
16815 old_tree in the map.
16816 (create_specialized_node): Update.
16817 * lto-cgraph.c (output_node_opt_summary): Do not translate old_tree
16819 * cgraphclones.c (cgraph_create_virtual_clone): Do not copy
16820 DECL_ARGUMENTS, DECL_INITIAL and DECL_RESULT.
16821 * ipa-prop.c (ipa_populate_param_decls): Look for origin of clones.
16822 * tree-inline.c (initialize_cfun): Initialize DECL_ARGUMENTS and
16825 2013-07-25 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
16827 * config/arm/arm.md (arm_addsi3, addsi3_carryin_<optab>,
16828 addsi3_carryin_alt2_<optab>): Correct output template.
16830 2013-07-25 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
16832 * config/arm/arm-fixed.md (ssmulsa3, usmulusa3):
16833 Adjust for arm_restrict_it.
16834 Remove trailing whitespace.
16836 2013-07-25  Mark Kettenis  <kettenis@openbsd.org>
16838 * config/pa/pa.c (pa_trampoline_init): Emit __enable_execute_stack
16839 libcall if HAVE_ENABLE_EXECUTE_STACK is defined.
16841 * config.gcc (hppa-*-openbsd*): Don't set tmake_file.
16843 2013-07-25 Vladimir Makarov <vmakarov@redhat.com>
16845 PR rtl-optimization/57960
16846 * lra-constraints.c (process_alt_operands): Use the right mode
16847 when checking strict_low.
16849 2013-07-25 Jan Hubicka <jh@suse.cz>
16851 * lto-symtab.c (lto_cgraph_replace_node): Release function body.
16852 * cgraph.c (cgraph_remove_node): Do not release function body
16853 when in cgraph streaming.
16854 * ipa.c (process_references, symtab_remove_unreachable_nodes): Objects
16855 in other partitions are not considered reachable; fix handling of
16858 2013-07-25 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
16860 * config/arm/arm.md (*sibcall_insn): Remove unnecessary space.
16862 2013-07-25 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
16867 * config/arm/arm.md ("*sibcall_insn): Replace use of
16868 Ss with US. Adjust output for v5 and v4t.
16869 (*sibcall_value_insn): Likewise and loosen predicate on operand0.
16871 * config/arm/constraints.md ("Ss"): Rename to US.
16873 2013-07-25 Terry Guo <terry.guo@arm.com>
16875 * config/arm/arm.c (thumb1_size_rtx_costs): Assign proper cost for
16876 shift_add/shift_sub0/shift_sub1 RTXs.
16878 2013-07-24 Bill Schmidt <wschmidt@linux.ibm.com>
16879 Anton Blanchard <anton@au1.ibm.com>
16881 * config/rs6000/altivec.md (altivec_vpkpx): Handle little endian.
16882 (altivec_vpks<VI_char>ss): Likewise.
16883 (altivec_vpks<VI_char>us): Likewise.
16884 (altivec_vpku<VI_char>us): Likewise.
16885 (altivec_vpku<VI_char>um): Likewise.
16887 2013-07-24 David Malcolm <dmalcolm@redhat.com>
16889 Introduce context class.
16891 * Makefile.in (CONTEXT_H): New.
16892 (OBJS): Add context.o.
16893 (toplev.o): Add CONTEXT_H to dependencies.
16896 * toplev.c (general_init): Create the singleton gcc::context instance.
16902 2013-07-24 Joern Rennecke <joern.rennecke@embecosm.com>
16904 PR rtl-optimization/57968
16905 * mode-switching.c (create_pre_exit): Allow instructions that
16906 don't set a return register to need a non-exit mode.
16908 2013-07-24 Bill Schmidt <wschmidt@vnet.linux.ibm.com>
16909 Anton Blanchard <anton@au1.ibm.com>
16911 * config/rs6000/vector.md (vec_realign_load_<mode>): Reorder input
16912 operands to vperm for little endian.
16913 * config/rs6000/rs6000.c (rs6000_expand_builtin): Use lvsr instead
16914 of lvsl to create the control mask for a vperm for little endian.
16916 2013-07-23 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
16917 Anton Blanchard <anton@au1.ibm.com>
16919 * config/rs6000/rs6000.c (altivec_expand_vec_perm_const): Reverse
16920 two operands for little-endian.
16922 2013-07-23 Steve Ellcey <sellcey@mips.com>
16924 * config/mips/mips.c (mips_case_values_threshold): New.
16925 (TARGET_CASE_VALUES_THRESHOLD): Define.
16927 2013-07-23 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
16928 Anton Blanchard <anton@au1.ibm.com>
16930 * config/rs6000/rs6000.c (altivec_expand_vec_perm_const): Correct
16931 selection of field for vector splat in little endian mode.
16933 2013-07-23 Michael Meissner <meissner@linux.vnet.ibm.com>
16935 * config/rs6000/vector.md (xor<mode>3): Move 128-bit boolean
16936 expanders to rs6000.md.
16937 (ior<mode>3): Likewise.
16938 (and<mode>3): Likewise.
16939 (one_cmpl<mode>2): Likewise.
16940 (nor<mode>3): Likewise.
16941 (andc<mode>3): Likewise.
16942 (eqv<mode>3): Likewise.
16943 (nand<mode>3): Likewise.
16944 (orc<mode>3): Likewise.
16946 * config/rs6000/rs6000-protos.h (rs6000_split_logical): New
16949 * config/rs6000/rs6000.c (rs6000_split_logical_inner): Add support
16950 to split multi-word logical operations.
16951 (rs6000_split_logical_di): Likewise.
16952 (rs6000_split_logical): Likewise.
16954 * config/rs6000/vsx.md (VSX_L2): Delete, no longer used.
16955 (vsx_and<mode>3_32bit): Move 128-bit logical insns to rs6000.md,
16956 and allow TImode operations in 32-bit.
16957 (vsx_and<mode>3_64bit): Likewise.
16958 (vsx_ior<mode>3_32bit): Likewise.
16959 (vsx_ior<mode>3_64bit): Likewise.
16960 (vsx_xor<mode>3_32bit): Likewise.
16961 (vsx_xor<mode>3_64bit): Likewise.
16962 (vsx_one_cmpl<mode>2_32bit): Likewise.
16963 (vsx_one_cmpl<mode>2_64bit): Likewise.
16964 (vsx_nor<mode>3_32bit): Likewise.
16965 (vsx_nor<mode>3_64bit): Likewise.
16966 (vsx_andc<mode>3_32bit): Likewise.
16967 (vsx_andc<mode>3_64bit): Likewise.
16968 (vsx_eqv<mode>3_32bit): Likewise.
16969 (vsx_eqv<mode>3_64bit): Likewise.
16970 (vsx_nand<mode>3_32bit): Likewise.
16971 (vsx_nand<mode>3_64bit): Likewise.
16972 (vsx_orc<mode>3_32bit): Likewise.
16973 (vsx_orc<mode>3_64bit): Likewise.
16975 * config/rs6000/rs6000.h (VLOGICAL_REGNO_P): Always allow vector
16976 logical types in GPRs.
16978 * config/rs6000/altivec.md (altivec_and<mode>3): Move 128-bit
16979 logical insns to rs6000.md, and allow TImode operations in
16981 (altivec_ior<mode>3): Likewise.
16982 (altivec_xor<mode>3): Likewise.
16983 (altivec_one_cmpl<mode>2): Likewise.
16984 (altivec_nor<mode>3): Likewise.
16985 (altivec_andc<mode>3): Likewise.
16987 * config/rs6000/rs6000.md (BOOL_128): New mode iterators and mode
16988 attributes for moving the 128-bit logical operations into
16990 (BOOL_REGS_OUTPUT): Likewise.
16991 (BOOL_REGS_OP1): Likewise.
16992 (BOOL_REGS_OP2): Likewise.
16993 (BOOL_REGS_UNARY): Likewise.
16994 (BOOL_REGS_AND_CR0): Likewise.
16995 (one_cmpl<mode>2): Add support for DI logical operations on
16996 32-bit, splitting the operations to 32-bit.
16997 (anddi3): Likewise.
16998 (iordi3): Likewise.
16999 (xordi3): Likewise.
17000 (and<mode>3, 128-bit types): Rewrite 2013-06-06 logical operator
17001 changes to combine the 32/64-bit code, allow logical operations on
17002 TI mode in 32-bit, and to use similar match_operator patterns like
17003 scalar mode uses. Combine the Altivec and VSX code for logical
17004 operations, and move it here.
17005 (ior<mode>3, 128-bit types): Likewise.
17006 (xor<mode>3, 128-bit types): Likewise.
17007 (one_cmpl<mode>3, 128-bit types): Likewise.
17008 (nor<mode>3, 128-bit types): Likewise.
17009 (andc<mode>3, 128-bit types): Likewise.
17010 (eqv<mode>3, 128-bit types): Likewise.
17011 (nand<mode>3, 128-bit types): Likewise.
17012 (orc<mode>3, 128-bit types): Likewise.
17013 (and<mode>3_internal): Likewise.
17014 (bool<mode>3_internal): Likewise.
17015 (boolc<mode>3_internal1): Likewise.
17016 (boolc<mode>3_internal2): Likewise.
17017 (boolcc<mode>3_internal1): Likewise.
17018 (boolcc<mode>3_internal2): Likewise.
17019 (eqv<mode>3_internal1): Likewise.
17020 (eqv<mode>3_internal2): Likewise.
17021 (one_cmpl1<mode>3_internal): Likewise.
17023 2013-07-23 David Holsgrove <david.holsgrove@xilinx.com>
17025 * config/microblaze/microblaze.c (microblaze_expand_prologue):
17026 Rename flag_stack_usage to flag_stack_usage_info.
17028 2013-07-23 David Holsgrove <david.holsgrove@xilinx.com>
17030 * config/microblaze/sync.md: New file.
17031 * config/microblaze/microblaze.md: Include sync.md
17032 * config/microblaze/microblaze.c: Add print_operand 'y'.
17033 * config/microblaze/constraints.md: Add memory_contraint
17034 'Q' which is a single register.
17036 2013-07-23 Eric Botcazou <ebotcazou@adacore.com>
17038 * doc/invoke.texi (SPARC Options): Document new leon3 processor value.
17040 2013-07-22 Po-Chun Chang <pchang9@cs.wisc.edu>
17042 * reload.c (find_reloads): Exit loop once we find this operand
17043 cannot be reloaded somehow for this alternative.
17045 * reload.c (find_reloads): Exit loop once we find a hard register.
17047 * rtlanal.c (computed_jump_p): Exit loop once we find label
17050 * i386.c (ix86_pad_returns): Exit loop after setting replace.
17052 * cfgloopmanip.c (remove_path): Exit loop after setting
17055 * gensupport.c (subst_dup): Avoid loop if code is not
17056 MATCH_DUP nor MATCH_OP_DUP.
17058 2013-07-23 Nicklas Bo Jensen <nbjensen@gmail.com>
17060 * doc/md.texi (Machine-Specific Peephole Optimizers): Fix a typo.
17062 2013-07-23 Yufeng Zhang <yufeng.zhang@arm.com>
17064 * config/aarch64/aarch64.c (aarch64_hard_regno_mode_ok): Also return
17065 true for SP_REGNUM if mode == ptr_mode.
17066 * config/aarch64/aarch64.h (ADDITIONAL_REGISTER_NAMES): Add "wsp"
17067 with value R0_REGNUM + 31.
17069 2013-07-23 Yufeng Zhang <yufeng.zhang@arm.com>
17071 * config/aarch64/aarch64.c (aarch64_pad_arg_upward): In big-endian,
17072 pad pointer-typed argument downward.
17074 2013-07-23 Yufeng Zhang <yufeng.zhang@arm.com>
17076 * config/aarch64/aarch64.h (TARGET_CPU_CPP_BUILTINS): Define _ILP32
17077 and __ILP32__ when the ILP32 model is in use.
17079 2013-07-23 Yufeng Zhang <yufeng.zhang@arm.com>
17081 * config/aarch64/aarch64.c (POINTER_BYTES): New define.
17082 (aarch64_load_symref_appropriately): In the case of
17083 SYMBOL_SMALL_ABSOLUTE, use the mode of 'dest' instead of Pmode
17084 to generate new rtx; likewise to the case of SYMBOL_SMALL_GOT.
17085 (aarch64_expand_mov_immediate): In the case of SYMBOL_FORCE_TO_MEM,
17086 change to pass 'ptr_mode' to force_const_mem and zero-extend 'mem'
17087 if 'mode' doesn't equal to 'ptr_mode'.
17088 (aarch64_output_mi_thunk): Add an assertion on the alignment of
17089 'vcall_offset'; change to call aarch64_emit_move differently depending
17090 on whether 'Pmode' equals to 'ptr_mode' or not; use 'POINTER_BYTES'
17091 to calculate the upper bound of 'vcall_offset'.
17092 (aarch64_cannot_force_const_mem): Change to also return true if
17094 (aarch64_legitimize_reload_address): In the case of large
17095 displacements, add new local variable 'xmode' and an assertion
17096 based on it; change to use 'xmode' to generate the new rtx and
17098 (aarch64_asm_trampoline_template): Change to generate the template
17099 differently depending on TARGET_ILP32 or not; change to use
17100 'POINTER_BYTES' in the argument passed to assemble_aligned_integer.
17101 (aarch64_trampoline_size): Removed.
17102 (aarch64_trampoline_init): Add new local constant 'tramp_code_sz'
17103 and replace immediate literals with it. Change to use 'ptr_mode'
17104 instead of 'DImode' and call convert_memory_address if the mode
17105 of 'fnaddr' doesn't equal to 'ptr_mode'.
17106 (aarch64_elf_asm_constructor): Change to use assemble_aligned_integer
17108 (aarch64_elf_asm_destructor): Likewise.
17109 * config/aarch64/aarch64.h (TRAMPOLINE_SIZE): Change to be dependent
17110 on TARGET_ILP32 instead of aarch64_trampoline_size.
17111 * config/aarch64/aarch64.md (movsi_aarch64): Add new alternatives
17112 of 'mov' between WSP and W registers as well as 'adr' and 'adrp'.
17113 (loadwb_pair<GPI:mode>_<PTR:mode>): Rename to ...
17114 (loadwb_pair<GPI:mode>_<P:mode>): ... this. Replace PTR with P.
17115 (storewb_pair<GPI:mode>_<PTR:mode>): Likewise; rename to ...
17116 (storewb_pair<GPI:mode>_<P:mode>): ... this.
17117 (add_losym): Change to 'define_expand' and call gen_add_losym_<mode>
17118 depending on the value of 'mode'.
17119 (add_losym_<mode>): New.
17120 (ldr_got_small_<mode>): New, based on ldr_got_small.
17121 (ldr_got_small): Remove.
17122 (ldr_got_small_sidi): New.
17123 * config/aarch64/iterators.md (P): New.
17124 (PTR): Change to 'ptr_mode' in the condition.
17126 2013-07-23 Yufeng Zhang <yufeng.zhang@arm.com>
17128 * config.gcc (aarch64*-*-*): Support --with-abi.
17129 (aarch64*-*-elf): Support --with-multilib-list.
17130 (aarch64*-*-linux*): Likewise.
17131 (supported_defaults): Add abi to aarch64*-*-*.
17132 * configure.ac: Mention AArch64 for --with-multilib-list.
17133 * configure: Re-generated.
17134 * config/aarch64/biarchilp32.h: New file.
17135 * config/aarch64/biarchlp64.h: New file.
17136 * config/aarch64/aarch64-elf.h (ENDIAN_SPEC): New define.
17138 (MULTILIB_DEFAULTS): Ditto.
17139 (DRIVER_SELF_SPECS): Ditto.
17140 (ASM_SPEC): Update to also substitute -mabi.
17141 * config/aarch64/aarch64-elf-raw.h (LINK_SPEC): Add linker script
17142 file whose name depends on -mabi= and -mbig-endian.
17143 * config/aarch64/aarch64.h (LONG_TYPE_SIZE): Change to depend on
17145 (POINTER_SIZE): New define.
17146 (POINTERS_EXTEND_UNSIGNED): Ditto.
17147 (enum aarch64_abi_type): New enumeration tag.
17148 (AARCH64_ABI_LP64, AARCH64_ABI_ILP32): New enumerators.
17149 (AARCH64_ABI_DEFAULT): Define to AARCH64_ABI_LP64 if undefined.
17150 (TARGET_ILP32): New define.
17151 * config/aarch64/aarch64.opt (mabi): New.
17152 (aarch64_abi): New.
17153 (ilp32, lp64): New values for -mabi.
17154 * config/aarch64/t-aarch64 (comma): New define.
17155 (MULTILIB_OPTIONS): Ditto.
17156 (MULTILIB_DIRNAMES): Ditto.
17157 * config/aarch64/t-aarch64-linux (MULTIARCH_DIRNAME): New define.
17158 * doc/invoke.texi: Document -mabi for AArch64.
17160 2013-07-23 Georg-Johann Lay <avr@gjlay.de>
17162 * config/avr/avr.md: Explain asm print modifier 'r' for REG.
17164 2013-07-22 Bill Schmidt <wschmidt@vnet.linux.ibm.com>
17165 Anton Blanchard <anton@au1.ibm.com>
17167 * config/rs6000/rs6000.c (rs6000_expand_vector_init): Fix
17168 endianness when selecting field to splat.
17170 2013-07-22 Eric Christopher <echristo@gmail.com>
17172 * dwarf2out.c (die_odr_checksum): New function to use
17173 CHECKSUM_ macros and ULEB128 for DIE tag.
17174 (generate_type_signature): Use.
17176 2013-07-22 Eric Botcazou <ebotcazou@adacore.com>
17178 * config.gcc (sparc*-*-*): Accept leon3 processor.
17179 (sparc-leon*-*): Merge with sparc*-*-* and add leon3 support.
17180 * doc/invoke.texi (SPARC Options): Adjust -mfix-ut699 entry.
17181 * config/sparc/sparc-opts.h (enum processor_type): Add PROCESSOR_LEON3.
17182 * config/sparc/sparc.opt (enum processor_type): Add leon3.
17183 (mfix-ut699): Adjust comment.
17184 * config/sparc/sparc.h (TARGET_CPU_leon3): New define.
17185 (CPP_CPU32_DEFAULT_SPEC): Add leon3 support.
17186 (CPP_CPU_SPEC): Likewise.
17187 (ASM_CPU_SPEC): Likewise.
17188 * config/sparc/sparc.c (leon3_cost): New constant.
17189 (sparc_option_override): Add leon3 support.
17190 (mem_ref): New function.
17191 (sparc_gate_work_around_errata): Return true if -mfix-ut699 is enabled.
17192 (sparc_do_work_around_errata): Look into the instruction in the delay
17193 slot and adjust accordingly. Add fix for the data cache nullify issues
17194 of the UT699. Change insertion position for the NOP.
17195 * config/sparc/leon.md (leon_fpalu, leon_fpmds, write_buf): Delete.
17196 (leon3_load): New reservation.
17197 (leon_store): Bump latency to 2.
17198 (grfpu): New automaton.
17199 (grfpu_alu): New unit.
17200 (grfpu_ds): Likewise.
17201 (leon_fp_alu): Adjust.
17202 (leon_fp_mult): Delete.
17203 (leon_fp_div): Split into leon_fp_divs and leon_fp_divd.
17204 (leon_fp_sqrt): Split into leon_fp_sqrts and leon_fp_sqrtd.
17205 * config/sparc/sparc.md (cpu): Add leon3.
17206 * config/sparc/sync.md (atomic_exchangesi): Disable if -mfix-ut699.
17207 (swapsi): Likewise.
17208 (atomic_test_and_set): Likewise.
17209 (ldstub): Likewise.
17211 2013-07-22 Jürgen Urban <JuergenUrban@gmx.de>
17213 * config.gcc (mips*-*-*): Add --with-fpu support. Make single the
17214 default for R5900 targets.
17215 * config/mips/mips.h (OPTION_DEFAULT_SPECS): Handle --with-fpu.
17216 (ISA_HAS_LDC1_SDC1): Set to false for TARGET_MIPS5900.
17217 * config/mips/mips.c (mips_option_override): Report an error for
17218 -march=r5900 -mhard-float -mdouble-float. Use spu_single_format
17219 for -march=r5900 -mhard-float.
17221 2013-07-22 Po-Chun Chang <pchang9@cs.wisc.edu>
17223 * df-problems.c (can_move_insns_across): Exit loop once we
17224 find a non-fixed, non-global register.
17226 * ipa-pure-const.c (propagate_nothrow): Exit loop after
17229 * omega.c (omega_eliminate_red): Break after setting red_found.
17230 (omega_problem_has_red_equations): Similarly after setting found.
17231 (omega_query_variable): Similarly after setting coupled.
17233 2013-07-22 Marek Polacek <polacek@redhat.com>
17235 * gimplify.c: Don't include gimple.h twice.
17237 2013-07-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
17239 * config/arm/constraints.md (Pd): Allow TARGET_THUMB
17240 instead of TARGET_THUMB1.
17241 (Pz): New constraint.
17242 * config/arm/arm.md (arm_addsi3): Add alternatives for 16-bit
17244 (compare_negsi_si): Likewise.
17245 (compare_addsi2_op0): Likewise.
17246 (compare_addsi2_op1): Likewise.
17247 (addsi3_carryin_<optab>): Likewise.
17248 (addsi3_carryin_alt2_<optab>): Likewise.
17249 (addsi3_carryin_shift_<optab>): Disable cond_exec variant
17250 for arm_restrict_it.
17251 (subsi3_carryin): Likewise.
17252 (arm_subsi3_insn): Add alternatives for 16-bit encoding.
17253 (minmax_arithsi): Disable for arm_restrict_it.
17254 (minmax_arithsi_non_canon): Adjust for arm_restrict_it.
17255 (satsi_<SAT:code>): Disable cond_exec variant for arm_restrict_it.
17256 (satsi_<SAT:code>_shift): Likewise.
17257 (arm_shiftsi3): Add alternative for 16-bit encoding.
17258 (arm32_movhf): Disable for arm_restrict_it.
17259 (arm_cmpdi_unsigned): Add alternatives for 16-bit encoding.
17260 (arm_movtas_ze): Disable cond_exec variant for arm_restrict_it.
17262 2013-07-22 Sofiane Naci <sofiane.naci@arm.com>
17264 * config/arm/arm.md (attribute "insn"): Delete.
17265 (attribute "type"): Add "mov_imm", "mov_reg", "mov_shift",
17266 "mov_shift_reg", "mvn_imm", "mvn_reg", "mvn_shift" and "mvn_shift_reg".
17267 (not_shiftsi): Update for attribute change.
17268 (not_shiftsi_compare0): Likewise.
17269 (not_shiftsi_compare0_scratch): Likewise.
17270 (arm_one_cmplsi2): Likewise.
17271 (thumb1_one_cmplsi2): Likewise.
17272 (notsi_compare0): Likewise.
17273 (notsi_compare0_scratch): Likewise.
17274 (thumb1_movdi_insn): Likewise.
17275 (arm_movsi_insn): Likewise.
17276 (movhi_insn_arch4): Likewise.
17277 (movhi_bytes): Likewise.
17278 (arm_movqi_insn): Likewise.
17279 (thumb1_movqi_insn): Likewise.
17280 (arm32_movhf): Likewise.
17281 (thumb1_movhf): Likewise.
17282 (arm_movsf_soft_insn): Likewise.
17283 (thumb1_movsf_insn): Likewise.
17284 (thumb_movdf_insn): Likewise.
17285 (movsicc_insn): Likewise.
17286 (movsfcc_soft_insn): Likewise.
17287 (and_scc): Likewise.
17288 (cond_move): Likewise.
17289 (if_move_not): Likewise.
17290 (if_not_move): Likewise.
17291 (if_shift_move): Likewise.
17292 (if_move_shift): Likewise.
17293 (if_shift_shift): Likewise.
17294 (if_not_arith): Likewise.
17295 (if_arith_not): Likewise.
17296 (cond_move_not): Likewise.
17297 * config/arm/neon.md (neon_mov<mode>): Update for attribute change.
17298 (neon_mov<mode>): Likewise.
17299 * config/arm/vfp.md (arm_movsi_vfp): Update for attribute change.
17300 (thumb2_movsi_vfp): Likewise.
17301 (movsf_vfp): Likewise.
17302 (thumb2_movsf_vfp): Likewise.
17303 * config/arm/arm.c (xscale_sched_adjust_cost): Update for attribute
17305 (cortexa7_older_only): Likewise.
17306 (cortexa7_younger): Likewise.
17307 * config/arm/arm1020e.md (1020alu_op): Update for attribute change.
17308 (1020alu_shift_op): Likewise.
17309 (1020alu_shift_reg_op): Likewise.
17310 * config/arm/arm1026ejs.md (alu_op): Update for attribute change.
17311 (alu_shift_op): Likewise.
17312 (alu_shift_reg_op): Likewise.
17313 * config/arm/arm1136jfs.md (11_alu_op): Update for attribute change.
17314 (11_alu_shift_op): Likewise.
17315 (11_alu_shift_reg_op): Likewise.
17316 * config/arm/arm926ejs.md (9_alu_op): Update for attribute change.
17317 (9_alu_shift_reg_op): Likewise.
17318 * config/arm/cortex-a15.md (cortex_a15_alu): Update for attribute
17320 (cortex_a15_alu_shift): Likewise.
17321 (cortex_a15_alu_shift_reg): Likewise.
17322 * config/arm/cortex-a5.md (cortex_a5_alu): Update for attribute change.
17323 (cortex_a5_alu_shift): Likewise.
17324 * config/arm/cortex-a53.md (cortex_a53_alu): Update for attribute
17326 (cortex_a53_alu_shift): Likewise.
17327 * config/arm/cortex-a7.md (cortex_a7_alu_imm): Update for attribute
17329 (cortex_a7_alu_reg): Likewise.
17330 (cortex_a7_alu_shift): Likewise.
17331 * config/arm/cortex-a8.md (cortex_a8_alu): Update for attribute change.
17332 (cortex_a8_alu_shift): Likewise.
17333 (cortex_a8_alu_shift_reg): Likewise.
17334 (cortex_a8_mov): Likewise.
17335 * config/arm/cortex-a9.md (cortex_a9_dp): Update for attribute change.
17336 (cortex_a9_dp_shift): Likewise.
17337 * config/arm/cortex-m4.md (cortex_m4_alu): Update for attribute change.
17338 * config/arm/cortex-r4.md (cortex_r4_alu): Update for attribute change.
17339 (cortex_r4_mov): Likewise.
17340 (cortex_r4_alu_shift): Likewise.
17341 (cortex_r4_alu_shift_reg): Likewise.
17342 * config/arm/fa526.md (526_alu_op): Update for attribute change.
17343 (526_alu_shift_op): Likewise.
17344 * config/arm/fa606te.md (606te_alu_op): Update for attribute change.
17345 * config/arm/fa626te.md (626te_alu_op): Update for attribute change.
17346 (626te_alu_shift_op): Likewise.
17347 * config/arm/fa726te.md (726te_shift_op): Update for attribute change.
17348 (726te_alu_op): Likewise.
17349 (726te_alu_shift_op): Likewise.
17350 (726te_alu_shift_reg_op): Likewise.
17351 * config/arm/fmp626.md (mp626_alu_op): Update for attribute change.
17352 (mp626_alu_shift_op): Likewise.
17353 * config/arm/marvell-pj4.md (pj4_alu_e1): Update for attribute change.
17354 (pj4_alu_e1_conds): Likewise.
17355 (pj4_alu): Likewise.
17356 (pj4_alu_conds): Likewise.
17357 (pj4_shift): Likewise.
17358 (pj4_shift_conds): Likewise.
17359 (pj4_alu_shift): Likewise.
17360 (pj4_alu_shift_conds): Likewise.
17362 2013-07-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
17364 * config/arm/predicates.md (shiftable_operator_strict_it):
17366 * config/arm/thumb2.md (thumb_andsi_not_shiftsi_si):
17367 Disable cond_exec version for arm_restrict_it.
17368 (thumb2_smaxsi3): Convert to generate cond_exec.
17369 (thumb2_sminsi3): Likewise.
17370 (thumb32_umaxsi3): Likewise.
17371 (thumb2_uminsi3): Likewise.
17372 (thumb2_abssi2): Adjust constraints for arm_restrict_it.
17373 (thumb2_neg_abssi2): Likewise.
17374 (thumb2_mov_scc): Add alternative for 16-bit encoding.
17375 (thumb2_movsicc_insn): Adjust alternatives.
17376 (thumb2_mov_negscc): Disable for arm_restrict_it.
17377 (thumb2_mov_negscc_strict_it): New pattern.
17378 (thumb2_mov_notscc_strict_it): New pattern.
17379 (thumb2_mov_notscc): Disable for arm_restrict_it.
17380 (thumb2_ior_scc): Likewise.
17381 (thumb2_ior_scc_strict_it): New pattern.
17382 (thumb2_cond_move): Adjust for arm_restrict_it.
17383 (thumb2_cond_arith): Disable for arm_restrict_it.
17384 (thumb2_cond_arith_strict_it): New pattern.
17385 (thumb2_cond_sub): Adjust for arm_restrict_it.
17386 (thumb2_movcond): Likewise.
17387 (thumb2_extendqisi_v6): Disable cond_exec variant for arm_restrict_it.
17388 (thumb2_zero_extendhisi2_v6): Likewise.
17389 (thumb2_zero_extendqisi2_v6): Likewise.
17390 (orsi_notsi_si): Likewise.
17391 (orsi_not_shiftsi_si): Likewise.
17393 2013-07-22 Georg-Johann Lay <avr@gjlay.de>
17395 * config/avr/avr.c (avr_out_xload): No SBIS around LPM so that
17396 instruction sequence is 1 byte shorter.
17398 2013-07-22 Uros Bizjak <ubizjak@gmail.com>
17400 * config/i386/i386.md (nonlocal_goto_receiver): Delete insn if
17401 it is not needed after split.
17403 2013-07-20 Iain Sandoe <iain@codesourcery.com>
17406 * config/i386/i386.c (output_set_got) [TARGET_MACHO]: Adjust to emit a
17407 second label for nonlocal goto receivers. Don't output pic base labels
17408 unless we're producing PIC; mark that action unreachable().
17409 (ix86_save_reg): If the function contains a nonlocal label, save the
17411 * config/darwin-protos.h (machopic_should_output_picbase_label): New.
17412 * config/darwin.c (emitted_pic_label_num): New GTY.
17413 (update_pic_label_number_if_needed): New.
17414 (machopic_output_function_base_name): Adjust for nonlocal receiver
17416 (machopic_should_output_picbase_label): New.
17417 * config/i386/i386.md (enum unspecv): UNSPECV_NLGR: New.
17418 (nonlocal_goto_receiver): New insn and split.
17420 2013-07-20 James Greenhalgh <james.greenhalgh@arm.com>
17422 * config/aarch64/aarch64-builtins.c
17423 (aarch64_fold_builtin): Fold abs in all modes.
17424 * config/aarch64/aarch64-simd-builtins.def
17425 (abs): Enable for all modes.
17426 * config/aarch64/arm_neon.h
17427 (vabs<q>_s<8,16,32,64): Rewrite using builtins.
17428 (vabs_f64): Add missing intrinsic.
17430 2013-07-19 Ian Bolton <ian.bolton@arm.com>
17432 * config/aarch64/arm_neon.h (vabs_s64): New function
17434 2013-07-19 Georg-Johann Lay <avr@gjlay.de>
17437 * config/avr/avr-fixed.md (round<mode>3_const): Turn expander to insn.
17438 * config/avr/avr.md (adjust_len): Add `round'.
17439 * config/avr/avr-protos.h (avr_out_round): New prototype.
17440 (avr_out_plus): Add `out_label' argument.
17441 * config/avr/avr.c (avr_out_plus_1): Add `out_label' argument.
17442 (avr_out_plus): Pass down `out_label' to avr_out_plus_1.
17443 Handle the case where `insn' is just a pattern.
17444 (avr_out_bitop): Handle the case where `insn' is just a pattern.
17445 (avr_out_round): New function.
17446 (avr_adjust_insn_length): Handle ADJUST_LEN_ROUND.
17448 2013-07-18 David Holsgrove <david.holsgrove@xilinx.com>
17450 * config/microblaze/microblaze.c (microblaze_expand_prologue):
17451 Add check for flag_stack_usage to handle -fstack-usage support
17453 2013-07-18 Pat Haugen <pthaugen@us.ibm.com>
17455 * config/rs6000/rs6000.c (rs6000_option_override_internal): Adjust flag
17456 interaction for new Power8 flags and VSX.
17458 2013-07-18 Sriraman Tallam <tmsriram@google.com>
17460 PR middle-end/57698
17461 * tree-inline.c (expand_call_inline): Emit errors during
17462 early_inlining only if optimization is not turned on.
17464 2013-07-18 David Malcolm <dmalcolm@redhat.com>
17468 * passes.c (init_optimization_passes): Move the construction of
17469 the pass hierarchy into a new passes.def file.
17471 * Makefile.in (passes.o): Add dependency on passes.def.
17473 2013-07-18 David Malcolm <dmalcolm@redhat.com>
17475 * passes.c (init_optimization_passes): Introduce macros for
17476 constructing the tree of passes (INSERT_PASSES_AFTER,
17477 PUSH_INSERT_PASSES_WITHIN, POP_INSERT_PASSES,
17478 TERMINATE_PASS_LIST).
17480 2013-07-18 Vladimir Makarov <vmakarov@redhat.com>
17481 Wei Mi <wmi@google.com>
17483 PR rtl-optimization/57878
17484 * lra-assigns.c (assign_by_spills): Move non_reload_pseudos to the
17486 (reload_pseudo_compare_func): Check nregs first for reload
17489 2013-07-18 David Malcolm <dmalcolm@redhat.com>
17491 * tree-pass.h (pass_ipa_lto_wpa_fixup): Remove redundant decl.
17493 2013-07-18 Po-Chun Chang <pchang9@cs.wisc.edu>
17495 * read-rtl.c (validate_const_int): Once an invalid character is
17496 seen, quit the loop.
17498 * gengtype.c (write_roots): Similarly once we find the "deletable"
17499 or "if_marked" option.
17501 2013-07-18 Sofiane Naci <sofiane.naci@arm.com>
17503 * config/arm/arm.md (attribute "insn"): Delete values "mrs", "msr",
17504 "xtab" and "sat". Move value "clz" from here to ...
17505 (attriubte "type"): ... here.
17506 (satsi_<SAT:code>): Delete "insn" attribute.
17507 (satsi_<SAT:code>_shift): Likewise.
17508 (arm_zero_extendqisi2addsi): Likewise.
17509 (arm_extendqisi2addsi): Likewise.
17510 (clzsi2): Update for attribute changes.
17511 (rbitsi2): Likewise.
17512 * config/arm/arm-fixed.md (arm_ssatsihi_shift): Delete "insn"
17514 (arm_usatsihi): Likewise.
17515 * config/arm/cortex-a8.md (cortex_a8_alu): Update for attribute change.
17517 2013-07-18 Sofiane Naci <sofiane.naci@arm.com>
17519 * config/arm/arm.md (attribute "type"): Rename "simple_alu_imm" to
17520 "arlo_imm". Rename "alu_reg" to "arlo_reg". Rename "simple_alu_shift"
17521 to "extend". Split "alu_shift" into "shift" and "arlo_shift". Split
17522 "alu_shift_reg" into "shift_reg" and "arlo_shift_reg". List types
17523 in alphabetical order.
17524 (attribute "core_cycles"): Update for attribute changes.
17525 (arm_addsi3): Likewise.
17526 (addsi3_compare0): Likewise.
17527 (addsi3_compare0_scratch): Likewise.
17528 (addsi3_compare_op1): Likewise.
17529 (addsi3_compare_op2): Likewise.
17530 (compare_addsi2_op0): Likewise.
17531 (compare_addsi2_op1): Likewise.
17532 (addsi3_carryin_shift_<optab>): Likewise.
17533 (subsi3_carryin_shift): Likewise.
17534 (rsbsi3_carryin_shift): Likewise.
17535 (arm_subsi3_insn): Likewise.
17536 (subsi3_compare0): Likewise.
17537 (subsi3_compare): Likewise.
17538 (arm_andsi3_insn): Likewise.
17539 (thumb1_andsi3_insn): Likewise.
17540 (andsi3_compare0): Likewise.
17541 (andsi3_compare0_scratch): Likewise.
17542 (zeroextractsi_compare0_scratch
17543 (andsi_not_shiftsi_si): Likewise.
17544 (iorsi3_insn): Likewise.
17545 (iorsi3_compare0): Likewise.
17546 (iorsi3_compare0_scratch): Likewise.
17547 (arm_xorsi3): Likewise.
17548 (thumb1_xorsi3_insn): Likewise.
17549 (xorsi3_compare0): Likewise.
17550 (xorsi3_compare0_scratch): Likewise.
17551 (satsi_<SAT:code>_shift): Likewise.
17553 (arm_shiftsi3): Likewise.
17554 (shiftsi3_compare0): Likewise.
17555 (not_shiftsi): Likewise.
17556 (not_shiftsi_compare0): Likewise.
17557 (not_shiftsi_compare0_scratch): Likewise.
17558 (arm_one_cmplsi2): Likewise.
17559 (thumb_one_complsi2): Likewise.
17560 (notsi_compare0): Likewise.
17561 (notsi_compare0_scratch): Likewise.
17562 (thumb1_zero_extendhisi2): Likewise.
17563 (arm_zero_extendhisi2): Likewise.
17564 (arm_zero_extendhisi2_v6): Likewise.
17565 (arm_zero_extendhisi2addsi): Likewise.
17566 (thumb1_zero_extendqisi2): Likewise.
17567 (thumb1_zero_extendqisi2_v6): Likewise.
17568 (arm_zero_extendqisi2): Likewise.
17569 (arm_zero_extendqisi2_v6): Likewise.
17570 (arm_zero_extendqisi2addsi): Likewise.
17571 (thumb1_extendhisi2): Likewise.
17572 (arm_extendhisi2): Likewise.
17573 (arm_extendhisi2_v6): Likewise.
17574 (arm_extendqisi): Likewise.
17575 (arm_extendqisi_v6): Likewise.
17576 (arm_extendqisi2addsi): Likewise.
17577 (thumb1_extendqisi2): Likewise.
17578 (thumb1_movdi_insn): Likewise.
17579 (arm_movsi_insn): Likewise.
17580 (movsi_compare0): Likewise.
17581 (movhi_insn_arch4): Likewise.
17582 (movhi_bytes): Likewise.
17583 (arm_movqi_insn): Likewise.
17584 (thumb1_movqi_insn): Likewise.
17585 (arm32_movhf): Likewise.
17586 (thumb1_movhf): Likewise.
17587 (arm_movsf_soft_insn): Likewise.
17588 (thumb1_movsf_insn): Likewise.
17589 (movdf_soft_insn): Likewise.
17590 (thumb_movdf_insn): Likewise.
17591 (arm_cmpsi_insn): Likewise.
17592 (cmpsi_shiftsi): Likewise.
17593 (cmpsi_shiftsi_swp): Likewise.
17594 (arm_cmpsi_negshiftsi_si): Likewise.
17595 (movsicc_insn): Likewise.
17596 (movsfcc_soft_insn): Likewise.
17597 (arith_shiftsi): Likewise.
17598 (arith_shiftsi_compare0
17599 (arith_shiftsi_compare0_scratch
17600 (sub_shiftsi): Likewise.
17601 (sub_shiftsi_compare0
17602 (sub_shiftsi_compare0_scratch
17603 (and_scc): Likewise.
17604 (cond_move): Likewise.
17605 (if_plus_move): Likewise.
17606 (if_move_plus): Likewise.
17607 (if_move_not): Likewise.
17608 (if_not_move): Likewise.
17609 (if_shift_move): Likewise.
17610 (if_move_shift): Likewise.
17611 (if_shift_shift): Likewise.
17612 (if_not_arith): Likewise.
17613 (if_arith_not): Likewise.
17614 (cond_move_not): Likewise.
17615 (thumb1_ashlsi3): Set type attribute.
17616 (thumb1_ashrsi3): Likewise.
17617 (thumb1_lshrsi3): Likewise.
17618 (thumb1_rotrsi3): Likewise.
17619 (shiftsi3_compare0_scratch): Likewise.
17620 * config/arm/neon.md (neon_mov<mode>): Update for attribute changes.
17621 (neon_mov<mode>): Likewise.
17622 * config/arm/thumb2.md (thumb_andsi_not_shiftsi_si): Update for
17624 (thumb2_movsi_insn): Likewise.
17625 (thumb2_cmpsi_neg_shiftsi): Likewise.
17626 (thumb2_extendqisi_v6): Likewise.
17627 (thumb2_zero_extendhisi2_v6): Likewise.
17628 (thumb2_zero_extendqisi2_v6): Likewise.
17629 (thumb2_shiftsi3_short): Likewise.
17630 (thumb2_addsi3_compare0_scratch): Likewise.
17631 (orsi_not_shiftsi_si): Likewise.
17632 * config/arm/vfp.md (arm_movsi_vfp): Update for attribute changes.
17633 * config/arm/arm-fixed.md (arm_ssatsihi_shift): Update for attribute
17635 * config/arm/arm1020e.md (1020alu_op): Update for attribute changes.
17636 (1020alu_shift_op): Likewise.
17637 (1020alu_shift_reg_op): Likewise.
17638 * config/arm/arm1026ejs.md (alu_op): Update for attribute changes.
17639 (alu_shift_op): Likewise.
17640 (alu_shift_reg_op): Likewise.
17641 * config/arm/arm1136jfs.md (11_alu_op): Update for attribute changes.
17642 (11_alu_shift_op): Likewise.
17643 (11_alu_shift_reg_op): Likewise.
17644 * config/arm/arm926ejs.md (9_alu_op): Update for attribute changes.
17645 (9_alu_shift_reg_op): Likewise.
17646 * config/arm/cortex-a15.md (cortex_a15_alu): Update for attribute
17648 (cortex_a15_alu_shift): Likewise.
17649 (cortex_a15_alu_shift_reg): Likewise.
17650 * config/arm/cortex-a5.md (cortex_a5_alu): Update for attribute
17652 (cortex_a5_alu_shift): Likewise.
17653 * config/arm/cortex-a53.md (cortex_a53_alu) : Update for attribute
17655 (cortex_a53_alu_shift): Likewise.
17656 * config/arm/cortex-a7.md (cortex_a7_alu_imm): Update for attribute
17658 (cortex_a7_alu_reg): Likewise.
17659 (cortex_a7_alu_shift): Likewise.
17660 * config/arm/cortex-a8.md (cortex_a8_alu): Update for attribute
17662 (cortex_a8_alu_shift): Likewise.
17663 (cortex_a8_alu_shift_reg): Likewise.
17664 (cortex_a8_mov): Likewise.
17665 * config/arm/cortex-a9.md (cortex_a9_dp): Update for attribute changes.
17666 (cortex_a9_dp_shift): Likewise.
17667 * config/arm/cortex-m4.md (cortex_m4_alu): Update for attribute
17669 * config/arm/cortex-r4.md (cortex_r4_alu): Update for attribute
17671 (cortex_r4_mov): Likewise.
17672 (cortex_r4_alu_shift): Likewise.
17673 (cortex_r4_alu_shift_reg): Likewise.
17674 * config/arm/fa526.md (526_alu_op): Update for attribute changes.
17675 (526_alu_shift_op): Likewise.
17676 * config/arm/fa606te.md (606te_alu_op): Update for attribute changes.
17677 * config/arm/fa626te.md (626te_alu_op): Update for attribute changes.
17678 (626te_alu_shift_op): Likewise.
17679 * config/arm/fa726te.md (726te_shift_op): Update for attribute changes.
17680 (726te_alu_op): Likewise.
17681 (726te_alu_shift_op): Likewise.
17682 (726te_alu_shift_reg_op): Likewise.
17683 * config/arm/fmp626.md (mp626_alu_op): Update for attribute changes.
17684 (mp626_alu_shift_op): Likewise.
17685 * config/arm/marvell-pj4.md (pj4_alu_e1): Update for attribute changes.
17686 (pj4_alu_e1_conds): Likewise.
17687 (pj4_alu): Likewise.
17688 (pj4_alu_conds): Likewise.
17689 (pj4_shift): Likewise.
17690 (pj4_shift_conds): Likewise.
17691 (pj4_alu_shift): Likewise.
17692 (pj4_alu_shift_conds): Likewise.
17693 * config/arm/arm.c (xscale_sched_adjust_cost): Update for attribute
17695 (cortexa7_older_only): Likewise.
17696 (cortexa7_younger): Likewise.
17698 2013-07-18 David Malcolm <dmalcolm@redhat.com>
17700 * ipa-pure-const.c (generate_summary): Rename to...
17701 (pure_const_generate_summary): ... this.
17703 2013-07-17 Iain Sandoe <iain@codesourcery.com>
17705 * config/rs6000/darwin.h (REGISTER_NAMES): Add HTM registers.
17707 2013-07-17 Yvan Roux <yvan.roux@linaro.org>
17710 * config/arm/arm.c (gen_movmem_ldrd_strd): Fix unaligned load/store
17713 2013-07-17 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
17715 * config/s390/s390.c: (s390_expand_builtin): Allow -mhtm to be
17716 enabled without -march=zEC12.
17717 * config/s390/s390.h (TARGET_HTM): Do not require EC12 machine
17720 2013-07-16 Maciej W. Rozycki <macro@codesourcery.com>
17722 * config/mips/mips.h (ISA_HAS_FP4): Correct formatting.
17723 (ISA_HAS_FP_MADD4_MSUB4): Also enable for ISA_MIPS32R2.
17724 (ISA_HAS_NMADD4_NMSUB4): Remove the MODE argument; rewrite in
17725 terms of ISA_HAS_FP4, and also enable for ISA_MIPS32R2.
17726 (ISA_HAS_NMADD3_NMSUB3): Remove the MODE argument.
17727 * config/mips/mips.c (mips_rtx_costs) <PLUS>: Check for
17728 ISA_HAS_FP_MADD4_MSUB4 || ISA_HAS_FP_MADD3_MSUB3 rather than
17730 <MINUS, NEG>: Update according to changes to ISA_HAS_NMADD4_NMSUB4
17731 and ISA_HAS_NMADD3_NMSUB3.
17732 * config/mips/mips.md (nmadd4<mode>, nmadd3<mode>): Likewise.
17733 (nmadd4<mode>_fastmath, nmadd3<mode>_fastmath): Likewise.
17734 (nmsub4<mode>, nmsub3<mode>): Likewise.
17735 (nmsub4<mode>_fastmath, nmsub3<mode>_fastmath): Likewise.
17737 2013-07-16 Maciej W. Rozycki <macro@codesourcery.com>
17739 * config/mips/mips.h (ISA_HAS_NMADD4_NMSUB4): Remove
17740 TARGET_MIPS5400 checking.
17742 2013-07-16 Jakub Jelinek <jakub@redhat.com>
17743 Peter Bergner <bergner@vnet.ibm.com>
17745 * config/rs6000/rs6000.h (FIRST_PSEUDO_REGISTERS): Mention HTM
17746 registers in the comment.
17747 (DWARF_FRAME_REGISTERS): Subtract also the 3 HTM registers.
17748 (DWARF_REG_TO_UNWIND_COLUMN): Use DWARF_FRAME_REGISTERS
17749 rather than FIRST_PSEUDO_REGISTERS.
17751 2013-07-16 Peter Bergner <bergner@vnet.ibm.com>
17753 * config/rs6000/rs6000.c (rs6000_option_override_internal): Do not
17754 enable extra ISA flags with TARGET_HTM.
17756 2013-07-16 Maciej W. Rozycki <macro@codesourcery.com>
17758 * config/mips/mips.h (ISA_HAS_MULS, ISA_HAS_MSAC, ISA_HAS_MACC):
17761 2013-07-15 Cong Hou <congh@google.com>
17763 * tree-vect-data-refs.c (dr_group_sort_cmp): Do not use hash function
17764 in compare function for sorting.
17766 2013-07-15 Peter Bergner <bergner@vnet.ibm.com>
17768 * config.gcc (powerpc*-*-*): Install htmintrin.h and htmxlintrin.h.
17769 * config/rs6000/t-rs6000 (MD_INCLUDES): Add htm.md.
17770 * config/rs6000/rs6000.opt: Add -mhtm option.
17771 * config/rs6000/rs6000-cpus.def (POWERPC_MASKS): Add OPTION_MASK_HTM.
17772 (ISA_2_7_MASKS_SERVER): Add OPTION_MASK_HTM.
17773 * config/rs6000/rs6000-c.c (rs6000_target_modify_macros): Define
17774 __HTM__ if the HTM instructions are available.
17775 * config/rs6000/predicates.md (u3bit_cint_operand, u10bit_cint_operand,
17776 htm_spr_reg_operand): New define_predicates.
17777 * config/rs6000/rs6000.md (define_attr "type"): Add htm.
17778 (TFHAR_REGNO, TFIAR_REGNO, TEXASR_REGNO): New define_constants.
17780 * config/rs6000/rs6000-builtin.def (BU_HTM_0, BU_HTM_1, BU_HTM_2,
17781 BU_HTM_3, BU_HTM_SPR0, BU_HTM_SPR1): Add support macros for defining
17782 HTM builtin functions.
17783 * config/rs6000/rs6000.c (RS6000_BUILTIN_H): New macro.
17784 (rs6000_reg_names, alt_reg_names): Add HTM SPR register names.
17785 (rs6000_init_hard_regno_mode_ok): Add support for HTM instructions.
17786 (rs6000_builtin_mask_calculate): Likewise.
17787 (rs6000_option_override_internal): Likewise.
17788 (bdesc_htm): Add new HTM builtin support.
17789 (htm_spr_num): New function.
17790 (htm_spr_regno): Likewise.
17791 (rs6000_htm_spr_icode): Likewise.
17792 (htm_expand_builtin): Likewise.
17793 (htm_init_builtins): Likewise.
17794 (rs6000_expand_builtin): Add support for HTM builtin functions.
17795 (rs6000_init_builtins): Likewise.
17796 (rs6000_invalid_builtin, rs6000_opt_mask): Add support for -mhtm
17798 * config/rs6000/rs6000.h (ASM_CPU_SPEC): Add support for -mhtm.
17799 (TARGET_HTM, MASK_HTM): Define macros.
17800 (FIRST_PSEUDO_REGISTER): Adjust for new HTM SPR registers.
17801 (FIXED_REGISTERS): Likewise.
17802 (CALL_USED_REGISTERS): Likewise.
17803 (CALL_REALLY_USED_REGISTERS): Likewise.
17804 (REG_ALLOC_ORDER): Likewise.
17805 (enum reg_class): Likewise.
17806 (REG_CLASS_NAMES): Likewise.
17807 (REG_CLASS_CONTENTS): Likewise.
17808 (REGISTER_NAMES): Likewise.
17809 (ADDITIONAL_REGISTER_NAMES): Likewise.
17810 (RS6000_BTC_SPR, RS6000_BTC_VOID, RS6000_BTC_32BIT, RS6000_BTC_64BIT,
17811 RS6000_BTC_MISC_MASK, RS6000_BTM_HTM): New macros.
17812 (RS6000_BTM_COMMON): Add RS6000_BTM_HTM.
17813 * config/rs6000/htm.md: New file.
17814 * config/rs6000/htmintrin.h: New file.
17815 * config/rs6000/htmxlintrin.h: New file.
17817 2013-07-15 Marcus Shawcroft <marcus.shawcroft@arm.com>
17819 * config/aarch64/aarch64-protos.h (aarch64_symbol_type):
17820 Define SYMBOL_TINY_GOT, update comment.
17821 * config/aarch64/aarch64.c
17822 (aarch64_load_symref_appropriately): Handle SYMBOL_TINY_GOT.
17823 (aarch64_expand_mov_immediate): Likewise.
17824 (aarch64_print_operand): Likewise.
17825 (aarch64_classify_symbol): Likewise.
17826 * config/aarch64/aarch64.md (UNSPEC_GOTTINYPIC): Define.
17827 (ldr_got_tiny): Define.
17829 2013-07-13 Tobias Grosser <tobias@grosser.es>
17831 PR tree-optimization/54094
17832 * graphite-clast-to-gimple.c (translate_clast_for_loop): Derive the
17833 scheduling dimension for the parallelism check from the polyhedral
17834 information in the AST.
17835 * graphite-dependences.c (carries_deps): Do not assume the schedule is
17838 2013-07-13 Jason Merrill <jason@redhat.com>
17840 * print-tree.c (debug_vec_tree): Use debug_raw.
17841 (debug_raw (vec<tree, va_gc> &)): New.
17842 (debug_raw (vec<tree, va_gc> *)): New.
17843 * tree.h: Declare them.
17845 2013-07-13 Bin Cheng <bin.cheng@arm.com>
17847 * ifcvt.c (ifcvt_after_combine): New static variable.
17848 (cheap_bb_rtx_cost_p): Set scale to REG_BR_PROB_BASE when optimizing
17850 (if_convert): New parameter after_combine. Set ifcvt_after_combine.
17851 (rest_of_handle_if_conversion, rest_of_handle_if_after_combine,
17852 rest_of_handle_if_after_reload): Pass new argument for if_convert.
17854 2013-07-12 Maciej W. Rozycki <macro@codesourcery.com>
17856 * config/mips/mips.c (mips_expand_call): Remove empty statement.
17858 2013-07-12 Michael Matz <matz@suse.de>
17860 PR middle-end/55771
17861 * convert.c (convert_to_real): Reject non-float inner types.
17863 2013-07-12 Tejas Belagod <tejas.belagod@arm.com>
17865 * config/aarch64/aarch64-protos.h
17866 (aarch64_simd_immediate_valid_for_move): Remove.
17867 * config/aarch64/aarch64.c (simd_immediate_info): New member.
17868 (aarch64_simd_valid_immediate): Recognize idioms for shifting ones
17870 (aarch64_output_simd_mov_immediate): Print the correct shift specifier.
17872 2013-07-11 Steve Ellcey <sellcey@mips.com>
17874 * config/mips/mips.c (mips_conditional_register_usage): Do not
17875 use t[0-7] registers in MIPS16 mode when optimizing for size.
17877 2013-07-11 Sriraman Tallam <tmsriram@google.com>
17879 * config/i386/i386.c (dispatch_function_versions): Fix array
17880 indexing of function_version_info to match actual_versions.
17882 2013-07-11 Teresa Johnson <tejohnson@google.com>
17884 * vec.h (struct va_gc): Move release out-of-line.
17885 (va_gc::release): Call ggc_free on released vec.
17887 2013-07-11 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
17889 * config/rs6000/rs6000.md (""*tls_gd_low<TLSmode:tls_abi_suffix>"):
17890 Require GOT register as additional operand in UNSPEC.
17891 ("*tls_ld_low<TLSmode:tls_abi_suffix>"): Likewise.
17892 ("*tls_got_dtprel_low<TLSmode:tls_abi_suffix>"): Likewise.
17893 ("*tls_got_tprel_low<TLSmode:tls_abi_suffix>"): Likewise.
17894 ("*tls_gd<TLSmode:tls_abi_suffix>"): Update splitter.
17895 ("*tls_ld<TLSmode:tls_abi_suffix>"): Likewise.
17896 ("tls_got_dtprel_<TLSmode:tls_abi_suffix>"): Likewise.
17897 ("tls_got_tprel_<TLSmode:tls_abi_suffix>"): Likewise.
17899 2013-07-11 Georg-Johann Lay <avr@gjlay.de>
17902 * config/avr/avr.c (avr_set_current_function): Sanity-check signal
17903 name seen by assembler/linker rather if available.
17905 2013-07-11 Andreas Schwab <schwab@suse.de>
17907 * config/aarch64/aarch64-linux.h (CPP_SPEC): Define.
17909 2013-07-10 Vladimir Makarov <vmakarov@redhat.com>
17911 * lra-constraints.c (curr_insn_transform): Switch off optional reloads.
17913 2013-07-10 Joseph Myers <joseph@codesourcery.com>
17915 * doc/tm.texi.in: Move hook documentation to ....
17916 * target.def: ... here.
17918 * doc/tm.texi.in (TARGET_CANONICALIZE_COMPARISON): Remove stray
17919 text on @hook line.
17920 * doc/tm.texi: Regenerate.
17922 2013-07-10 Paolo Carlini <paolo.carlini@oracle.com>
17925 * doc/invoke.texi: Document -Wconditionally-supported.
17927 2013-07-10 Georg-Johann Lay <avr@gjlay.de>
17930 * config/avr/avr.c (avr_prologue_setup_frame): Trunk -size to mode
17933 2013-07-10 Georg-Johann Lay <avr@gjlay.de>
17936 * config/avr/avr-mcus.def (atmega16hva, atmega16hva2, atmega16hvb)
17937 (atmega16m1, atmega16u4, atmega32a, atmega32c1, atmega32hvb)
17938 (atmega32m1, atmega32u4, atmega32u6, atmega64c1, atmega64m1):
17939 Remove duplicate devices.
17940 * config/avr/gen-avr-mmcu-texi.c (print_mcus): Fail on duplicate MCUs.
17941 * config/avr/t-multilib: Regenerate.
17942 * config/avr/avr-tables.opt: Regenerate.
17943 * doc/avr-mmcu.texi: Regenerate.
17945 2013-07-10 Georg-Johann Lay <avr@gjlay.de>
17948 * config/avr/avr.opt (Waddr-space-convert): Fix typo.
17950 2013-07-10 Graham Stott <graham.stott@btinternet.com>
17952 * config/mips/mips.c (mips_rtx_costs): Very slightly increase
17953 the cost of MULT when optimizing for size.
17955 2013-07-10 Jan-Benedict Glaw <jbglaw@lug-owl.de>
17957 * config/cr16/cr16-protos.h: Don't include target.h.
17959 2013-07-09 Joseph Myers <joseph@codesourcery.com>
17961 * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Only
17962 adjust register size for TDmode and TFmode for VSX registers.
17964 2013-07-08 Kai Tietz <ktietz@redhat.com>
17967 * config/i386/i386.c (TARGET_FUNCTION_ATTRIBUTE_INLINABLE_P): Define as
17968 hook_bool_const_tree_true.
17970 2013-07-08 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
17972 * config/s390/s390.c: Replace F*_REGNUM with FPR*_REGNUM.
17973 * config/s390/s390.h: Remove F*_REGNUM macro definitions.
17974 * config/s390/s390.md: Define FPR*_REGNUM constants.
17975 Fix FPR2_REGNUM constant (18 -> 17).
17976 ("*trunc<BFP:mode><DFP_ALL:mode>2")
17977 ("*trunc<DFP_ALL:mode><BFP:mode>2")
17978 ("trunc<BFP:mode><DFP_ALL:mode>2")
17979 ("trunc<DFP_ALL:mode><BFP:mode>2")
17980 ("*extend<BFP:mode><DFP_ALL:mode>2")
17981 ("*extend<DFP_ALL:mode><BFP:mode>2")
17982 ("extend<BFP:mode><DFP_ALL:mode>2")
17983 ("extend<DFP_ALL:mode><BFP:mode>2"): Replace FPR2_REGNUM with
17986 2013-07-08 Graham Stott <graham.stott@btinternet.com>
17988 * Makefile.in: (c-family-warn): Define to $(STRICT_WARN)
17990 2013-07-08 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
17992 * config/s390/s390.c: Rename cfun_set_fpr_bit to cfun_set_fpr_save
17993 and cfun_fpr_bit_p to cfun_fpr_save_p.
17994 (s390_frame_area, s390_register_info, s390_frame_info)
17995 (s390_emit_prologue, s390_emit_epilogue)
17996 (s390_conditional_register_usage): Use the *_REGNUM macros for FPR
17998 * config/s390/s390.h: Define *_REGNUM macros for floating point
18001 2013-07-08 Eric Botcazou <ebotcazou@adacore.com>
18003 * Makefile.in (tree-ssa-reassoc.o): Add dependency on $(PARAMS_H).
18005 2013-07-08 Po-Chun Chang <pchang9@cs.wisc.edu>
18007 PR rtl-optimization/57786
18008 * combine.c (distribute_notes) <case REG_DEAD>: Change all_used to bool
18009 and break out of the loop when it is set to false.
18011 2013-07-08 Jakub Jelinek <jakub@redhat.com>
18014 * simplify-rtx.c (simplify_unary_operation_1) <case ZERO_EXTEND>:
18015 Simplify (zero_extend:SI (subreg:QI (and:SI (reg:SI)
18016 (const_int 63)) 0)).
18017 * combine.c (make_extraction): Create ZERO_EXTEND or SIGN_EXTEND
18018 using simplify_gen_unary instead of gen_rtx_*_EXTEND.
18019 * config/i386/i386.md (*jcc_bt<mode>_1): New define_insn_and_split.
18021 PR rtl-optimization/57829
18022 * simplify-rtx.c (simplify_binary_operation_1) <case IOR>: Ensure that
18023 mask bits outside of mode are just sign-extension from mode to HWI.
18025 2013-07-08 Michael Zolotukhin <michael.v.zolotukhin@gmail.com>
18027 * config/i386/i386-opts.h (enum stringop_alg): Add vector_loop.
18028 * config/i386/i386.c (expand_set_or_movmem_via_loop): Use
18029 adjust_address instead of change_address to keep info about alignment.
18030 (emit_strmov): Remove.
18031 (emit_memmov): New function.
18032 (expand_movmem_epilogue): Refactor to properly handle bigger sizes.
18033 (expand_movmem_epilogue): Likewise and return updated rtx for
18035 (expand_constant_movmem_prologue): Likewise and return updated rtx for
18036 destination and source.
18037 (decide_alignment): Refactor, handle vector_loop.
18038 (ix86_expand_movmem): Likewise.
18039 (ix86_expand_setmem): Likewise.
18040 * config/i386/i386.opt (Enum): Add vector_loop to option stringop_alg.
18042 2013-07-07 Uros Bizjak <ubizjak@gmail.com>
18044 * config/i386/driver-i386.c (host_detect_local_cpu): Do not check
18045 signature_TM2_ebx, it interferes with signature_INTEL_ebx.
18047 2013-07-06 Uros Bizjak <ubizjak@gmail.com>
18049 * config/i386/sse.md (sse_movlhps): Change alternative 3
18050 of operand 2 to "m".
18052 2013-07-06 Uros Bizjak <ubizjak@gmail.com>
18055 * config/i386/sse.md (iptr): New mode attribute.
18056 (sse2_movq128): Add pointer size overrides for Intel asm dialect.
18057 (<sse>_vm<plusminus_insn><mode>3): Ditto.
18058 (<sse>_vmmul<mode>3): Ditto.
18059 (<sse>_vmdiv<mode>3): Ditto.
18060 (sse_vmrcpv4sf2): Ditto.
18061 (<sse>_vmsqrt<mode>2): Ditto.
18062 (sse_vmrsqrtv4sf2): Ditto.
18063 (<sse>_vm<code><mode>3): Ditto.
18064 (avx_vmcmp<mode>3): Ditto.
18065 (<sse>_vmmaskcmp<mode>3): Ditto.
18066 (<sse>_comi): Ditto.
18067 (<sse>_ucomi): Ditto.
18068 (*xop_vmfrcz_<mode>): Ditto.
18069 (*fmai_fmadd_<mode>): Ditto.
18070 (*fmai_fmsub_<mode>): Ditto.
18071 (*fmai_fnmadd_<mode>): Ditto.
18072 (*fmai_fnmsub_<mode>): Ditto.
18073 (*fma4i_vmfmadd_<mode>): Ditto.
18074 (*fma4i_vmfmsub_<mode>): Ditto.
18075 (*fma4i_vmfnmadd_<mode>): Ditto.
18076 (*fma4i_vmfnmsub_<mode>): Ditto.
18077 (*xop_vmfrcz_<mode>): Ditto.
18078 (sse_cvtps2pi): Ditto.
18079 (sse_cvttps2pi): Ditto.
18080 (sse_cvtss2si): Ditto.
18081 (sse_cvtss2si_2): Ditto.
18082 (sse_cvtss2siq_2): Ditto.
18083 (sse_cvttss2si): Ditto.
18084 (sse_cvttss2siq): Ditto.
18085 (sse_cvtsd2si): Ditto.
18086 (sse_cvtsd2si_2): Ditto.
18087 (sse_cvtsd2siq_2): Ditto.
18088 (sse_cvttsd2si): Ditto.
18089 (sse_cvttsd2siq): Ditto.
18090 (sse_cvtsd2ss): Ditto.
18091 (sse_cvtss2sd): Ditto.
18092 (avx2_pbroadcast<mode>): Ditto.
18093 (avx2_pbroadcast<mode>_1): Ditto.
18094 (*avx_vperm_broadcast_v4sf): Ditto.
18096 (sse_movhlps): Ditto for movlp[sd]/movhp[sd] alternatives.
18097 (sse_movlhps): Ditto.
18098 (sse_storehps): Ditto.
18099 (sse_loadhps): Ditto.
18100 (sse_storelps): Ditto.
18101 (sse_loadlps): Ditto.
18102 (*vec_concatv4sf): Ditto.
18103 (*vec_interleave_highv2df): Ditto.
18104 (*vec_interleave_lowv2df): Ditto.
18105 (*vec_extractv2df_1_sse): Ditto.
18106 (*vec_extractv2df_0_sse): Ditto.
18107 (sse2_storelpd): Ditto.
18108 (sse2_loadlpd): Ditto.
18109 (sse2_movsd): Ditto.
18110 (*vec_concatv4si): Ditto.
18111 (vec_concatv2di): Ditto.
18113 * config/i386/mmx.md (mmx_punpcklbw): Add pointer size overrides
18114 for Intel asm dialect.
18115 (mmx_punpcklwd): Ditto.
18116 (mmx_punpckldq): Ditto.
18118 * config/i386/i386.c (ix86_print_operand) ['H']: Output 'qword ptr'
18119 for intel assembler dialect.
18121 2013-07-06 Jakub Jelinek <jakub@redhat.com>
18124 * fold-const.c (tree_call_nonnegative_warnv_p): Return true
18125 for BUILT_IN_C{LZ,LRSB}*.
18126 * tree.h (CASE_INT_FN): Add FN##IMAX case.
18127 * tree-vrp.c (extract_range_basic): Handle
18128 BUILT_IN_{FFS,PARITY,POPCOUNT,C{LZ,TZ,LRSB}}*. For
18129 BUILT_IN_CONSTANT_P if argument isn't (D) of PARM_DECL,
18130 fall thru to code calling set_value*.
18131 * builtins.c (expand_builtin): Remove *IMAX cases.
18132 (fold_builtin_bitop): For BUILT_IN_CLRSB* return NULL_TREE
18133 if width is bigger than 2*HWI.
18135 2013-07-05 Vladimir Makarov <vmakarov@redhat.com>
18137 PR rtl-optimization/55342
18138 * lra-int.h (lra_subreg_reload_pseudos): New.
18139 * lra.c: Add undoing optional reloads to the block diagram.
18140 (lra_subreg_reload_pseudos): New.
18141 (lra_optional_reload_pseudos): Change comments.
18142 (lra): Init and clear lra_subreg_reload_pseudos. Clear
18143 lra_optional_reload_pseudos after undo transformations.
18144 * lra-assigns.c (pseudo_prefix_title): New.
18145 (lra_setup_reg_renumber): Use it.
18146 (spill_for): Ditto. Check subreg reload pseudos too.
18147 (assign_by_spills): Consider subreg reload pseudos too.
18148 * lra-constraints.c (simplify_operand_subreg): Use
18149 lra_subreg_reload_pseudos instead of lra_optional_reload_pseudos.
18150 (curr_insn_transform): Recognize and do optional reloads.
18151 (undo_optional_reloads): New.
18152 (lra_undo_inheritance): Call undo_optional_reloads.
18154 2013-07-05 Thomas Quinot <quinot@adacore.com>
18156 * tree-complex.c (expand_complex_operations_1): Fix typo.
18158 2013-07-04 Tejas Belagod <tejas.belagod@arm.com>
18160 * config/aarch64/aarch64-protos.h (cpu_vector_cost): New.
18161 (tune_params): New member 'const vec_costs'.
18162 * config/aarch64/aarch64.c (generic_vector_cost): New.
18163 (generic_tunings): New member 'generic_vector_cost'.
18164 (aarch64_builtin_vectorization_cost): New.
18165 (aarch64_add_stmt_cost): New.
18166 (TARGET_VECTORIZE_ADD_STMT_COST): New.
18167 (TARGET_VECTORIZE_BUILTIN_VECTORIZATION_COST): New.
18169 2013-07-03 Jakub Jelinek <jakub@redhat.com>
18172 * config/i386/predicates.md (vsib_address_operand): Disallow
18173 SYMBOL_REF or LABEL_REF in parts.disp if TARGET_64BIT && flag_pic.
18175 2013-07-03 Hans-Peter Nilsson <hp@bitrange.com>
18177 PR middle-end/55030
18178 * stmt.c (expand_nl_goto_receiver): Remove almost-copy of
18179 expand_builtin_setjmp_receiver.
18180 (expand_label): Adjust, call expand_builtin_setjmp_receiver
18181 with NULL for the label parameter.
18182 * builtins.c (expand_builtin_setjmp_receiver): Don't clobber
18183 the frame-pointer. Adjust comments.
18184 [HAVE_builtin_setjmp_receiver]: Emit builtin_setjmp_receiver
18185 only if LABEL is non-NULL.
18187 2013-07-03 Yufeng Zhang <yufeng.zhang@arm.com>
18189 * config/aarch64/aarch64.h (enum arm_abi_type): Remove.
18190 (ARM_ABI_AAPCS64): Ditto.
18192 (ARM_DEFAULT_ABI): Ditto.
18194 2013-07-03 James Greenhalgh <james.greenhalgh@arm.com>
18196 * config/aarch64/aarch64-builtins.c
18197 (aarch64_simd_expand_builtin): Handle AARCH64_SIMD_STORE1.
18198 * config/aarch64/aarch64-simd-builtins.def (ld1): New.
18200 * config/aarch64/aarch64-simd.md
18201 (aarch64_ld1<VALL:mode>): New.
18202 (aarch64_st1<VALL:mode>): Likewise.
18203 * config/aarch64/arm_neon.h
18204 (vld1<q>_<fpsu><8, 16, 32, 64>): Convert to RTL builtins.
18206 2013-07-02 Sriraman Tallam <tmsriram@google.com>
18208 * config/i386/i386.c (gate_insert_vzeroupper): Check if
18210 (ix86_option_override_internal):Turn on all -mavx target flags by
18211 default as they are dependent on AVX anyway.
18213 2013-07-02 Cary Coutant <ccoutant@google.com>
18215 * dwarf2out.c (loc_checksum): Call hash_loc_operands for a
18216 deterministic hash.
18217 (loc_checksum_ordered): Likewise.
18218 (hash_loc_operands): Remove inline keyword.
18220 2013-07-02 Jakub Jelinek <jakub@redhat.com>
18222 PR tree-optimization/57741
18223 * tree-vect-loop.c (vect_is_simple_iv_evolution): Disallow
18224 non-INTEGRAL_TYPE_P non-SCALAR_FLOAT_TYPE_P SSA_NAME step_exprs,
18225 or SCALAR_FLOAT_TYPE_P SSA_NAMEs if !flag_associative_math.
18226 Allow REAL_CST step_exprs if flag_associative_math.
18227 (get_initial_def_for_induction): Handle SCALAR_FLOAT_TYPE_P step_expr.
18229 2013-07-02 Ian Bolton <ian.bolton@arm.com>
18231 * config/aarch64/aarch64-simd.md (absdi2): Support abs for DI mode.
18233 2013-07-02 Ian Bolton <ian.bolton@arm.com>
18235 * config/aarch64/aarch64.md (*extr_insv_reg<mode>): New pattern.
18237 2013-07-02 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
18239 * config/arm/arm.md (arm_andsi3_insn): Add alternatives for 16-bit
18241 (iorsi3_insn): Likewise.
18242 (arm_xorsi3): Likewise.
18244 2013-07-01 Sofiane Naci <sofiane.naci@arm.com>
18246 * arm.md (attribute "wtype"): Delete. Move attribute values from here
18248 (attribute "type"): ... here, and prefix with "wmmx_".
18249 (attribute "core_cycles"): Update for attribute changes.
18250 * iwmmxt.md (tbcstv8qi): Update for attribute changes.
18251 (tbcstv4hi): Likewise.
18252 (tbcstv2si): Likewise.
18253 (iwmmxt_iordi3): Likewise.
18254 (iwmmxt_xordi3): Likewise.
18255 (iwmmxt_anddi3): Likewise.
18256 (iwmmxt_nanddi3): Likewise.
18257 (iwmmxt_arm_movdi): Likewise.
18258 (iwmmxt_movsi_insn): Likewise.
18259 (mov<mode>_internal): Likewise.
18260 (and<mode>3_iwmmxt): Likewise.
18261 (ior<mode>3_iwmmxt): Likewise.
18262 (xor<mode>3_iwmmxt): Likewise.
18263 (add<mode>3_iwmmxt): Likewise.
18264 (ssaddv8qi3): Likewise.
18265 (ssaddv4hi3): Likewise.
18266 (ssaddv2si3): Likewise.
18267 (usaddv8qi3): Likewise.
18268 (usaddv4hi3): Likewise.
18269 (usaddv2si3): Likewise.
18270 (sub<mode>3_iwmmxt): Likewise.
18271 (sssubv8qi3): Likewise.
18272 (sssubv4hi3): Likewise.
18273 (sssubv2si3): Likewise.
18274 (ussubv8qi3): Likewise.
18275 (ussubv4hi3): Likewise.
18276 (ussubv2si3): Likewise.
18277 (mulv4hi3_iwmmxt): Likewise.
18278 (smulv4hi3_highpart): Likewise.
18279 (umulv4hi3_highpart): Likewise.
18280 (iwmmxt_wmacs): Likewise.
18281 (iwmmxt_wmacsz): Likewise.
18282 (iwmmxt_wmacu): Likewise.
18283 (iwmmxt_wmacuz): Likewise.
18284 (iwmmxt_clrdi): Likewise.
18285 (iwmmxt_clrv8qi): Likewise.
18286 (iwmmxt_clr4hi): Likewise.
18287 (iwmmxt_clr2si): Likewise.
18288 (iwmmxt_uavgrndv8qi3): Likewise.
18289 (iwmmxt_uavgrndv4hi3): Likewise.
18290 (iwmmxt_uavgv8qi3): Likewise.
18291 (iwmmxt_uavgv4hi3): Likewise.
18292 (iwmmxt_tinsrb): Likewise.
18293 (iwmmxt_tinsrh): Likewise.
18294 (iwmmxt_tinsrw): Likewise.
18295 (iwmmxt_textrmub): Likewise.
18296 (iwmmxt_textrmsb): Likewise.
18297 (iwmmxt_textrmuh): Likewise.
18298 (iwmmxt_textrmsh): Likewise.
18299 (iwmmxt_textrmw): Likewise.
18300 (iwmxxt_wshufh): Likewise.
18301 (eqv8qi3): Likewise.
18302 (eqv4hi3): Likewise.
18303 (eqv2si3): Likewise.
18304 (gtuv8qi3): Likewise.
18305 (gtuv4hi3): Likewise.
18306 (gtuv2si3): Likewise.
18307 (gtv8qi3): Likewise.
18308 (gtv4hi3): Likewise.
18309 (gtv2si3): Likewise.
18310 (smax<mode>3_iwmmxt): Likewise.
18311 (umax<mode>3_iwmmxt): Likewise.
18312 (smin<mode>3_iwmmxt): Likewise.
18313 (umin<mode>3_iwmmxt): Likewise.
18314 (iwmmxt_wpackhss): Likewise.
18315 (iwmmxt_wpackwss): Likewise.
18316 (iwmmxt_wpackdss): Likewise.
18317 (iwmmxt_wpackhus): Likewise.
18318 (iwmmxt_wpackwus): Likewise.
18319 (iwmmxt_wpackdus): Likewise.
18320 (iwmmxt_wunpckihb): Likewise.
18321 (iwmmxt_wunpckihh): Likewise.
18322 (iwmmxt_wunpckihw): Likewise.
18323 (iwmmxt_wunpckilb): Likewise.
18324 (iwmmxt_wunpckilh): Likewise.
18325 (iwmmxt_wunpckilw): Likewise.
18326 (iwmmxt_wunpckehub): Likewise.
18327 (iwmmxt_wunpckehuh): Likewise.
18328 (iwmmxt_wunpckehuw): Likewise.
18329 (iwmmxt_wunpckehsb): Likewise.
18330 (iwmmxt_wunpckehsh): Likewise.
18331 (iwmmxt_wunpckehsw): Likewise.
18332 (iwmmxt_wunpckelub): Likewise.
18333 (iwmmxt_wunpckeluh): Likewise.
18334 (iwmmxt_wunpckeluw): Likewise.
18335 (iwmmxt_wunpckelsb): Likewise.
18336 (iwmmxt_wunpckelsh): Likewise.
18337 (iwmmxt_wunpckelsw): Likewise.
18338 (ror<mode>3): Likewise.
18339 (ashr<mode>3_iwmmxt): Likewise.
18340 (lshr<mode>3_iwmmxt): Likewise.
18341 (ashl<mode>3_iwmmxt): Likewise.
18342 (ror<mode>3_di): Likewise.
18343 (ashr<mode>3_di): Likewise.
18344 (lshr<mode>3_di): Likewise.
18345 (ashl<mode>3_di): Likewise.
18346 (iwmmxt_wmadds): Likewise.
18347 (iwmmxt_wmaddu): Likewise.
18348 (iwmmxt_tmia): Likewise.
18349 (iwmmxt_tmiaph): Likewise.
18350 (iwmmxt_tmiabb): Likewise.
18351 (iwmmxt_tmiatb): Likewise.
18352 (iwmmxt_tmiabt): Likewise.
18353 (iwmmxt_tmiatt): Likewise.
18354 (iwmmxt_tmovmskb): Likewise.
18355 (iwmmxt_tmovmskh): Likewise.
18356 (iwmmxt_tmovmskw): Likewise.
18357 (iwmmxt_waccb): Likewise.
18358 (iwmmxt_wacch): Likewise.
18359 (iwmmxt_waccw): Likewise.
18360 (iwmmxt_waligni): Likewise.
18361 (iwmmxt_walignr): Likewise.
18362 (iwmmxt_walignr0): Likewise.
18363 (iwmmxt_walignr1): Likewise.
18364 (iwmmxt_walignr2): Likewise.
18365 (iwmmxt_walignr3): Likewise.
18366 (iwmmxt_wsadb): Likewise.
18367 (iwmmxt_wsadh): Likewise.
18368 (iwmmxt_wsadbz): Likewise.
18369 (iwmmxt_wsadhz): Likewise.
18370 * iwmmxt2.md (iwmmxt_wabs<mode>3): Update for attribute changes.
18371 (iwmmxt_wabsdiffb): Likewise.
18372 (iwmmxt_wabsdiffh): Likewise.
18373 (iwmmxt_wabsdiffw): Likewise.
18374 (iwmmxt_waddsubhx): Likewise
18375 (iwmmxt_wsubaddhx): Likewise.
18376 (addc<mode>3): Likewise.
18377 (iwmmxt_avg4): Likewise.
18378 (iwmmxt_avg4r): Likewise.
18379 (iwmmxt_wmaddsx): Likewise.
18380 (iwmmxt_wmaddux): Likewise.
18381 (iwmmxt_wmaddsn): Likewise.
18382 (iwmmxt_wmaddun): Likewise.
18383 (iwmmxt_wmulwsm): Likewise.
18384 (iwmmxt_wmulwum): Likewise.
18385 (iwmmxt_wmulsmr): Likewise.
18386 (iwmmxt_wmulumr): Likewise.
18387 (iwmmxt_wmulwsmr): Likewise.
18388 (iwmmxt_wmulwumr): Likewise.
18389 (iwmmxt_wmulwl): Likewise.
18390 (iwmmxt_wqmulm): Likewise.
18391 (iwmmxt_wqmulwm): Likewise.
18392 (iwmmxt_wqmulmr): Likewise.
18393 (iwmmxt_wqmulwmr): Likewise.
18394 (iwmmxt_waddbhusm): Likewise.
18395 (iwmmxt_waddbhusl): Likewise.
18396 (iwmmxt_wqmiabb): Likewise.
18397 (iwmmxt_wqmiabt): Likewise.
18398 (iwmmxt_wqmiatb): Likewise.
18399 (iwmmxt_wqmiatt): Likewise.
18400 (iwmmxt_wqmiabbn): Likewise.
18401 (iwmmxt_wqmiabtn): Likewise.
18402 (iwmmxt_wqmiatbn): Likewise.
18403 (iwmmxt_wqmiattn): Likewise.
18404 (iwmmxt_wmiabb): Likewise.
18405 (iwmmxt_wmiabt): Likewise.
18406 (iwmmxt_wmiatb): Likewise.
18407 (iwmmxt_wmiatt): Likewise.
18408 (iwmmxt_wmiabbn): Likewise.
18409 (iwmmxt_wmiabtn): Likewise.
18410 (iwmmxt_wmiatbn): Likewise.
18411 (iwmmxt_wmiattn): Likewise.
18412 (iwmmxt_wmiawbb): Likewise.
18413 (iwmmxt_wmiawbt): Likewise.
18414 (iwmmxt_wmiawtb): Likewise.
18415 (iwmmxt_wmiawtt): Likewise.
18416 (iwmmxt_wmiawbbn): Likewise.
18417 (iwmmxt_wmiawbtn): Likewise.
18418 (iwmmxt_wmiawtbn): Likewise.
18419 (iwmmxt_wmiawttn): Likewise.
18420 (iwmmxt_wmerge): Likewise.
18421 (iwmmxt_tandc<mode>3): Likewise.
18422 (iwmmxt_torc<mode>3): Likewise.
18423 (iwmmxt_torvsc<mode>3): Likewise.
18424 (iwmmxt_textrc<mode>3): Likewise.
18425 * marvell-f-iwmmxt.md (wmmxt_shift): Update for attribute changes.
18426 (wmmxt_pack): Likewise.
18427 (wmmxt_mult_c1): Likewise.
18428 (wmmxt_mult_c2): Likewise.
18429 (wmmxt_alu_c1): Likewise.
18430 (wmmxt_alu_c2): Likewise.
18431 (wmmxt_alu_c3): Likewise.
18432 (wmmxt_transfer_c1): Likewise.
18433 (wmmxt_transfer_c2): Likewise.
18434 (wmmxt_transfer_c3): Likewise.
18435 (marvell_f_iwmmxt_wstr): Likewise.
18436 (marvell_f_iwmmxt_wldr): Likewise.
18438 2013-06-29 Yufeng Zhang <yufeng.zhang@arm.com>
18440 * config/aarch64/aarch64.c: Remove junk from the beginning of the file.
18442 2013-06-28 Vladimir Makarov <vmakarov@redhat.com>
18445 2013-06-28 Vladimir Makarov <vmakarov@redhat.com>
18446 * lra-constraints.c (need_for_split_p): Check call used hard regs
18447 living through calls.
18449 * lra-constraints.c (inherit_in_ebb): Reset live_hard_regs for
18450 call used regs for call insn.
18452 2013-06-28 Jakub Jelinek <jakub@redhat.com>
18455 * config/i386/i386.c (ix86_expand_builtin): If target == NULL and
18456 mode is VOIDmode, don't create a VOIDmode pseudo to copy result into.
18458 2013-06-28 Balaji V. Iyer <balaji.v.iyer@intel.com>
18460 * builtins.def: Fixed the function type of CILKPLUS_BUILTIN.
18462 2013-06-28 Vladimir Makarov <vmakarov@redhat.com>
18464 * lra-constraints.c (need_for_split_p): Check call used hard regs
18465 living through calls.
18467 2013-06-28 Michael Meissner <meissner@linux.vnet.ibm.com>
18470 * config/rs6000/rs6000.h (MODES_TIEABLE_P): Do not allow PTImode
18471 to tie with any other modes. Eliminate Altivec vector mode tests,
18472 since these are a subset of ALTIVEC or VSX vector modes. Simplify
18473 code, to return 0 if testing MODE2 for a condition, if we've
18474 already tested MODE1 for the same condition.
18476 2013-06-28 Marcus Shawcroft <marcus.shawcroft@arm.com>
18478 * config/aarch64/aarch64.c (aarch64_cannot_force_const_mem): Adjust
18481 2013-06-28 Marcus Shawcroft <marcus.shawcroft@arm.com>
18483 * config/aarch64/aarch64-protos.h (aarch64_symbol_type):
18484 Update comment w.r.t SYMBOL_TINY_ABSOLUTE.
18486 2013-06-28 Marcus Shawcroft <marcus.shawcroft@arm.com>
18488 * config/aarch64/aarch64-protos.h (aarch64_classify_symbol_expression):
18490 (aarch64_symbolic_constant_p): Remove.
18491 * config/aarch64/aarch64.c (aarch64_classify_symbol_expression): Remove
18492 static. Fix line length and white space.
18493 (aarch64_symbolic_constant_p): Remove.
18494 * config/aarch64/predicates.md (aarch64_valid_symref):
18495 Use aarch64_classify_symbol_expression.
18497 2013-06-28 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
18499 * config/arm/constraints.md (Ts): New constraint.
18500 * config/arm/arm.md (arm_movqi_insn): Add alternatives for
18502 (compare_scc): Use "Ts" constraint for operand 0.
18503 (ior_scc_scc): Likewise.
18504 (and_scc_scc): Likewise.
18505 (and_scc_scc_nodom): Likewise.
18506 (ior_scc_scc_cmp): Likewise for operand 7.
18507 (and_scc_scc_cmp): Likewise.
18508 * config/arm/thumb2.md (thumb2_movsi_insn):
18509 Add alternatives for 16-bit encodings.
18510 (thumb2_movhi_insn): Likewise.
18511 (thumb2_movsicc_insn): Likewise.
18512 (thumb2_and_scc): Take 'and' outside cond_exec. Use "Ts" constraint.
18513 (thumb2_negscc): Use "Ts" constraint.
18514 Move mvn instruction outside cond_exec block.
18515 * config/arm/vfp.md (thumb2_movsi_vfp): Add alternatives
18516 for 16-bit encodings.
18518 2013-06-28 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
18520 * config/arm/arm.md (arm_mulsi3_v6): Add alternative for 16-bit
18522 (mulsi3addsi_v6): Disable predicable variant for arm_restrict_it.
18523 (mulsi3subsi): Likewise.
18524 (mulsidi3adddi): Likewise.
18525 (mulsidi3_v6): Likewise.
18526 (umulsidi3_v6): Likewise.
18527 (umulsidi3adddi_v6): Likewise.
18528 (smulsi3_highpart_v6): Likewise.
18529 (umulsi3_highpart_v6): Likewise.
18530 (mulhisi3tb): Likewise.
18531 (mulhisi3bt): Likewise.
18532 (mulhisi3tt): Likewise.
18533 (maddhisi4): Likewise.
18534 (maddhisi4tb): Likewise.
18535 (maddhisi4tt): Likewise.
18536 (maddhidi4): Likewise.
18537 (maddhidi4tb): Likewise.
18538 (maddhidi4tt): Likewise.
18539 (zeroextractsi_compare0_scratch): Likewise.
18540 (insv_zero): Likewise.
18541 (insv_t2): Likewise.
18542 (anddi_notzesidi_di): Likewise.
18543 (anddi_notsesidi_di): Likewise.
18544 (andsi_notsi_si): Likewise.
18545 (iordi_zesidi_di): Likewise.
18546 (xordi_zesidi_di): Likewise.
18547 (andsi_iorsi3_notsi): Likewise.
18548 (smax_0): Likewise.
18549 (smax_m1): Likewise.
18550 (smin_0): Likewise.
18551 (not_shiftsi): Likewise.
18552 (unaligned_loadsi): Likewise.
18553 (unaligned_loadhis): Likewise.
18554 (unaligned_loadhiu): Likewise.
18555 (unaligned_storesi): Likewise.
18556 (unaligned_storehi): Likewise.
18557 (extv_reg): Likewise.
18558 (extzv_t2): Likewise.
18559 (divsi3): Likewise.
18560 (udivsi3): Likewise.
18561 (arm_zero_extendhisi2addsi): Likewise.
18562 (arm_zero_extendqisi2addsi): Likewise.
18563 (compareqi_eq0): Likewise.
18564 (arm_extendhisi2_v6): Likewise.
18565 (arm_extendqisi2addsi): Likewise.
18566 (arm_movt): Likewise.
18567 (thumb2_ldrd): Likewise.
18568 (thumb2_ldrd_base): Likewise.
18569 (thumb2_ldrd_base_neg): Likewise.
18570 (thumb2_strd): Likewise.
18571 (thumb2_strd_base): Likewise.
18572 (thumb2_strd_base_neg): Likewise.
18573 (arm_negsi2): Add alternative for 16-bit encoding.
18574 (arm_one_cmplsi2): Likewise.
18576 2013-06-28 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
18578 * config/arm/predicates.md (arm_cond_move_operator): New predicate.
18579 * config/arm/arm.md (movsfcc): Use arm_cond_move_operator predicate.
18580 (movdfcc): Likewise.
18581 * config/arm/vfp.md (*thumb2_movsf_vfp):
18582 Disable predication for arm_restrict_it.
18583 (*thumb2_movsfcc_vfp): Disable for arm_restrict_it.
18584 (*thumb2_movdfcc_vfp): Likewise.
18585 (*abssf2_vfp, *absdf2_vfp, *negsf2_vfp, *negdf2_vfp,*addsf3_vfp,
18586 *adddf3_vfp, *subsf3_vfp, *subdf3_vfpc, *divsf3_vfp,*divdf3_vfp,
18587 *mulsf3_vfp, *muldf3_vfp, *mulsf3negsf_vfp, *muldf3negdf_vfp,
18588 *mulsf3addsf_vfp, *muldf3adddf_vfp, *mulsf3subsf_vfp,
18589 *muldf3subdf_vfp, *mulsf3negsfaddsf_vfp, *fmuldf3negdfadddf_vfp,
18590 *mulsf3negsfsubsf_vfp, *muldf3negdfsubdf_vfp, *fma<SDF:mode>4,
18591 *fmsub<SDF:mode>4, *fnmsub<SDF:mode>4, *fnmadd<SDF:mode>4,
18592 *extendsfdf2_vfp, *truncdfsf2_vfp, *extendhfsf2, *truncsfhf2,
18593 *truncsisf2_vfp, *truncsidf2_vfp, fixuns_truncsfsi2, fixuns_truncdfsi2,
18594 *floatsisf2_vfp, *floatsidf2_vfp, floatunssisf2, floatunssidf2,
18595 *sqrtsf2_vfp, *sqrtdf2_vfp, *cmpsf_vfp, *cmpsf_trap_vfp, *cmpdf_vfp,
18596 *cmpdf_trap_vfp, <vrint_pattern><SDF:mode>2):
18597 Disable predication for arm_restrict_it.
18599 2013-06-28 Kirill Yukhin <kirill.yukhin@intel.com>
18601 * config/i386/bmiintrin.h (_bextr_u32): New.
18602 (_bextr_u64): Ditto.
18604 2013-06-27 Richard Sandiford <rdsandiford@googlemail.com>
18606 * config.gcc (mips*-mti-elf*, mips*-sde-elf*, mips64r5900-*-elf*)
18607 (mips64r5900el-*-elf*): Include mips/n32-elf.h.
18608 * config/mips/sde.h (LOCAL_LABEL_PREFIX, NO_DOLLAR_IN_LABEL)
18609 (LONG_DOUBLE_TYPE_SIZE, LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Move to...
18610 * config/mips/n32-elf.h: ...this new file.
18612 2013-06-27 Marc Glisse <marc.glisse@inria.fr>
18615 * config/i386/i386.c (enum ix86_builtins, bdesc_args): Remove
18616 IX86_BUILTIN_CMPNGTSS and IX86_BUILTIN_CMPNGESS.
18618 2013-06-27 Catherine Moore <clm@codesourcery.com>
18620 * config/mips/mips-tables.opt: Regenerate.
18621 * config/mips/mips-cpus.def: Add m14ke and m14kec.
18622 * config/mips/mips.h (BASE_DRIVER_SELF_SPECS): m14ke* implies -mdspr2.
18623 * doc/invoke.texi: Add -m14kc.
18625 2013-06-27 Jakub Jelinek <jakub@redhat.com>
18628 * config/i386/i386.md (bmi_bextr_<mode>): Swap predicates and
18629 constraints of operand 1 and 2.
18632 * config/i386/i386.md (bmi2_bzhi_<mode>3): Swap AND arguments
18633 to match RTL canonicalization. Swap predicates and
18634 constraints of operand 1 and 2.
18636 2013-06-27 Vladimir Makarov <vmakarov@redhat.com>
18638 * lra-constraints.c (inherit_in_ebb): Process static hard regs too.
18639 Process OP_INOUT regs for splitting too.
18641 2013-06-27 Jakub Jelinek <jakub@redhat.com>
18643 * tree-vect-stmts.c (vectorizable_store): Move ptr_incr var
18644 decl before the loop, initialize to NULL.
18645 (vectorizable_load): Initialize ptr_incr to NULL.
18647 2013-06-27 Martin Jambor <mjambor@suse.cz>
18650 * ipa-ref.h (ipa_maybe_record_reference): Declare.
18651 * ipa-ref.c (ipa_maybe_record_reference): New function.
18652 * cgraphclones.c (cgraph_create_virtual_clone): Use it.
18653 * ipa-cp.c (create_specialized_node): Record potential references from
18655 * Makefile.in (ipa-ref.o): Add IPA_REF_H to dependencies.
18657 2013-06-27 Yufeng Zhang <yufeng.zhang@arm.com>
18659 * config/aarch64/aarch64.c (aarch64_force_temporary): Add an extra
18660 parameter 'mode' of type 'enum machine_mode mode'; change to pass
18661 'mode' to force_reg.
18662 (aarch64_add_offset): Update calls to aarch64_force_temporary.
18663 (aarch64_expand_mov_immediate): Likewise.
18665 2013-06-27 Yufeng Zhang <yufeng.zhang@arm.com>
18667 * config/aarch64/aarch64.c (aarch64_add_offset): Change to pass
18668 'mode' to aarch64_plus_immediate and gen_rtx_PLUS.
18670 2013-06-27 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
18672 * config/s390/s390.c: Rename UNSPEC_CCU_TO_INT to
18673 UNSPEC_STRCMPCC_TO_INT and UNSPEC_CCZ_TO_INT to UNSPEC_CC_TO_INT.
18674 (struct machine_function): Add tbegin_p.
18675 (s390_canonicalize_comparison): Fold CC mode compares to
18676 conditional jump if possible.
18677 (s390_emit_jump): Return the emitted jump.
18678 (s390_branch_condition_mask, s390_branch_condition_mnemonic):
18679 Handle CCRAWmode compares.
18680 (s390_option_override): Default to -mhtm if available.
18681 (s390_reg_clobbered_rtx): Handle floating point regs as well.
18682 (s390_regs_ever_clobbered): Use s390_regs_ever_clobbered also for
18683 FPRs instead of df_regs_ever_live_p.
18684 (s390_optimize_nonescaping_tx): New function.
18685 (s390_init_frame_layout): Extend clobbered_regs array to cover
18687 (s390_emit_prologue): Call s390_optimize_nonescaping_tx.
18688 (s390_expand_tbegin): New function.
18689 (enum s390_builtin): New enum definition.
18690 (code_for_builtin): New array definition.
18691 (s390_init_builtins): New function.
18692 (s390_expand_builtin): New function.
18693 (TARGET_INIT_BUILTINS): Define.
18694 (TARGET_EXPAND_BUILTIN): Define.
18695 * common/config/s390/s390-common.c (processor_flags_table): Add PF_TX.
18696 * config/s390/predicates.md (s390_comparison): Handle CCRAWmode.
18697 (s390_alc_comparison): Likewise.
18698 * config/s390/s390-modes.def: Add CCRAWmode.
18699 * config/s390/s390.h (processor_flags): Add PF_TX.
18700 (TARGET_CPU_HTM): Define macro.
18701 (TARGET_HTM): Define macro.
18702 (TARGET_CPU_CPP_BUILTINS): Define __HTM__ for htm.
18703 * config/s390/s390.md: Rename UNSPEC_CCU_TO_INT to
18704 UNSPEC_STRCMPCC_TO_INT and UNSPEC_CCZ_TO_INT to UNSPEC_CC_TO_INT.
18705 (UNSPECV_TBEGIN, UNSPECV_TBEGINC, UNSPECV_TEND, UNSPECV_TABORT)
18706 (UNSPECV_ETND, UNSPECV_NTSTG, UNSPECV_PPA): New unspecv enum values.
18707 (TBEGIN_MASK, TBEGINC_MASK): New constants.
18708 ("*cc_to_int"): Move up.
18709 ("*mov<mode>cc", "*cjump_64", "*cjump_31"): Accept integer
18710 constants other than 0.
18711 ("*ccraw_to_int"): New insn and splitter definition.
18712 ("tbegin", "tbegin_nofloat", "tbegin_retry")
18713 ("tbegin_retry_nofloat", "tbeginc", "tend", "tabort")
18714 ("tx_assist"): New expander.
18715 ("tbegin_1", "tbegin_nofloat_1", "*tbeginc_1", "*tend_1")
18716 ("*tabort_1", "etnd", "ntstg", "*ppa"): New insn definition.
18717 * config/s390/s390.opt: Add -mhtm option.
18718 * config/s390/s390-protos.h (s390_emit_jump): Add return type.
18719 * config/s390/htmxlintrin.h: New file.
18720 * config/s390/htmintrin.h: New file.
18721 * config/s390/s390intrin.h: New file.
18722 * doc/extend.texi: Document htm builtins.
18723 * config.gcc: Add the new header files to extra_headers.
18725 2013-06-26 Thomas Schwinge <thomas@codesourcery.com>
18727 * config/i386/gnu.h [TARGET_LIBC_PROVIDES_SSP]
18728 (TARGET_CAN_SPLIT_STACK, TARGET_THREAD_SPLIT_STACK_OFFSET): Undefine.
18730 2013-06-26 Michael Meissner <meissner@linux.vnet.ibm.com>
18731 Pat Haugen <pthaugen@us.ibm.com>
18732 Peter Bergner <bergner@vnet.ibm.com>
18734 * config/rs6000/power8.md: New.
18735 * config/rs6000/rs6000-cpus.def (RS6000_CPU table): Adjust processor
18736 setting for power8 entry.
18737 * config/rs6000/t-rs6000 (MD_INCLUDES): Add power8.md.
18738 * config/rs6000/rs6000.c (is_microcoded_insn, is_cracked_insn): Adjust
18739 test for Power4/Power5 only.
18740 (insn_must_be_first_in_group, insn_must_be_last_in_group): Add Power8
18742 (force_new_group): Adjust comment.
18743 * config/rs6000/rs6000.md: Include power8.md.
18745 2013-06-26 Greta Yorsh <Greta.Yorsh@arm.com>
18747 * config/arm/arm.h (MAX_CONDITIONAL_EXECUTE): Define macro.
18748 * config/arm/arm-protos.h (arm_max_conditional_execute): New
18750 (tune_params): Update comment.
18751 * config/arm/arm.c (arm_cortex_a15_tune): Set max_cond_insns to 2.
18752 (arm_max_conditional_execute): New function.
18753 (thumb2_final_prescan_insn): Use max_insn_skipped and
18754 MAX_INSN_PER_IT_BLOCK to compute maximum instructions in a block.
18756 2013-06-25 Jakub Jelinek <jakub@redhat.com>
18758 PR tree-optimization/57705
18759 * tree-vect-loop.c (vect_is_simple_iv_evolution): Allow
18760 SSA_NAME step, provided that it is not defined inside the loop.
18761 (vect_analyze_scalar_cycles_1): Disallow SSA_NAME step in nested loop.
18762 (get_initial_def_for_induction): Handle SSA_NAME IV step.
18764 2013-06-25 Martin Jambor <mjambor@suse.cz>
18766 PR middle-end/57670
18767 * cgraph.h (cgraph_indirect_call_info): New flag member_ptr.
18768 * ipa-prop.c (ipa_print_node_jump_functions): Mark member pointer
18770 (ipa_note_param_call): Initialize member_ptr flag.
18771 (ipa_analyze_indirect_call_uses): Set member_ptr flag.
18772 (ipa_make_edge_direct_to_target): Bail out if member_ptr is set.
18773 (ipa_write_indirect_edge_info): Stream member_ptr flag.
18774 (ipa_read_indirect_edge_info): Likewise.
18776 2013-06-25 Richard Biener <rguenther@suse.de>
18778 PR middle-end/56977
18779 * passes.c (init_optimization_passes): Move pass_fold_builtins
18780 and pass_dce earlier with -Og.
18782 2013-06-25 Eric Botcazou <ebotcazou@adacore.com>
18784 * expr.c (expand_expr_real_1) <ARRAY_REF>: Fix formatting glitches.
18785 <BIT_FIELD_REF>: Remove trailing TAB.
18786 * varasm.c (output_constructor_bitfield): Fix formatting glitch and
18789 2013-06-24 Martin Jambor <mjambor@suse.cz>
18791 PR tree-optimization/57358
18792 * ipa-prop.c (ipa_func_spec_opts_forbid_analysis_p): New function.
18793 (ipa_compute_jump_functions_for_edge): Bail out if it returns true.
18794 (ipa_analyze_params_uses): Generate pessimistic info when true.
18796 2013-06-24 Martin Jambor <mjambor@suse.cz>
18798 PR tree-optimization/57539
18799 * cgraphclones.c (cgraph_clone_node): Add parameter new_inlined_to, set
18800 global.inlined_to of the new node to it. All callers changed.
18801 * ipa-inline-transform.c (clone_inlined_nodes): New variable
18802 inlining_into, pass it to cgraph_clone_node.
18803 * ipa-prop.c (ipa_propagate_indirect_call_infos): Do not call
18804 ipa_free_edge_args_substructures.
18805 (ipa_edge_duplication_hook): Only add edges from inlined nodes to
18806 rdesc linked list. Do not assert rdesc edges have inlined caller.
18807 Assert we have found an rdesc in the rdesc list.
18809 2013-06-24 Richard Biener <rguenther@suse.de>
18811 * pointer-set.h (struct pointer_set_t): Move here from pointer-set.c.
18812 (pointer_set_lookup): Declare.
18813 (class pointer_map): New template class implementing a
18814 generic pointer to T map.
18815 (pointer_map<T>::pointer_map, pointer_map<T>::~pointer_map,
18816 pointer_map<T>::contains, pointer_map<T>::insert,
18817 pointer_map<T>::traverse): New functions.
18818 * pointer-set.c (struct pointer_set_t): Moved to pointer-set.h.
18819 (pointer_set_lookup): New function.
18820 (pointer_set_contains): Use pointer_set_lookup.
18821 (pointer_set_insert): Likewise.
18822 (insert_aux): Remove.
18823 (struct pointer_map_t): Embed a pointer_set_t.
18824 (pointer_map_create): Adjust.
18825 (pointer_map_destroy): Likewise.
18826 (pointer_map_contains): Likewise.
18827 (pointer_map_insert): Likewise.
18828 (pointer_map_traverse): Likewise.
18829 * tree-streamer.h (struct streamer_tree_cache_d): Use a
18830 pointer_map<unsigned> instead of a pointer_map_t.
18831 * tree-streamer.c (streamer_tree_cache_insert_1): Adjust.
18832 (streamer_tree_cache_lookup): Likewise.
18833 (streamer_tree_cache_create): Likewise.
18834 (streamer_tree_cache_delete): Likewise.
18835 * lto-streamer.h (struct lto_tree_ref_encoder): Use a
18836 pointer_map<unsigned> instead of a pointer_map_t.
18837 (lto_init_tree_ref_encoder): Adjust.
18838 (lto_destroy_tree_ref_encoder): Likewise.
18839 * lto-section-out.c (lto_output_decl_index): Likewise.
18840 (lto_record_function_out_decl_state): Likewise.
18841 * dominance.c (iterate_fix_dominators): Use pointer_map<int>.
18843 2013-06-24 Richard Biener <rguenther@suse.de>
18845 PR tree-optimization/57488
18846 * tree-ssa-pre.c (insert): Clear NEW sets before each iteration.
18848 2013-06-24 Alan Modra <amodra@gmail.com>
18850 * config/rs6000/rs6000.c (vspltis_constant): Correct for little-endian.
18851 (gen_easy_altivec_constant): Likewise.
18852 * config/rs6000/predicates.md (easy_vector_constant_add_self,
18853 easy_vector_constant_msb): Likewise.
18855 2013-06-23 Jakub Jelinek <jakub@redhat.com>
18858 * common/config/i386/i386-common.c (ix86_handle_option): For OPT_mlzcnt
18859 add missing return true.
18861 2013-06-23 Oleg Endo <olegendo@gcc.gnu.org>
18864 * config/sh/predicates.md (general_extend_operand): Invoke
18865 general_movsrc_operand for memory operands.
18866 (general_movsrc_operand): Allow reg+reg addressing, do not use
18867 general_operand for memory operands.
18869 2013-06-23 Sriraman Tallam <tmsriram@google.com>
18871 * config/i386/i386.c (ix86_pragma_target_parse): Restore target
18872 when current target options does not apply.
18873 * config/i386/i386-protos.h (ix86_reset_previous_fndecl): New function.
18874 * config/i386/i386.c (ix86_reset_previous_fndecl): Ditto.
18875 * config/i386/bmiintrin.h: Pass appropriate target
18876 attributes to header.
18877 * config/i386/mmintrin.h: Ditto.
18878 * config/i386/nmmintrin.h: Ditto.
18879 * config/i386/avx2intrin.h: Ditto.
18880 * config/i386/fxsrintrin.h: Ditto.
18881 * config/i386/tbmintrin.h: Ditto.
18882 * config/i386/xsaveintrin.h: Ditto.
18883 * config/i386/f16cintrin.h: Ditto.
18884 * config/i386/xtestintrin.h: Ditto.
18885 * config/i386/xsaveoptintrin.h: Ditto.
18886 * config/i386/bmi2intrin.h: Ditto.
18887 * config/i386/lzcntintrin.h: Ditto.
18888 * config/i386/smmintrin.h: Ditto.
18889 * config/i386/wmmintrin.h: Ditto.
18890 * config/i386/x86intrin.h: Remove all header include guards.
18891 * config/i386/prfchwintrin.h: Ditto.
18892 * config/i386/pmmintrin.h: Ditto.
18893 * config/i386/tmmintrin.h: Ditto.
18894 * config/i386/xmmintrin.h: Ditto.
18895 * config/i386/popcntintrin.h: Ditto.
18896 * config/i386/rdseedintrin.h: Ditto.
18897 * config/i386/ammintrin.h: Ditto.
18898 * config/i386/emmintrin.h: Ditto.
18899 * config/i386/immintrin.h: Remove all header include guards.
18900 * config/i386/fma4intrin.h: Ditto.
18901 * config/i386/lwpintrin.h: Ditto.
18902 * config/i386/xopintrin.h: Ditto.
18903 * config/i386/ia32intrin.h: Ditto.
18904 * config/i386/avxintrin.h: Ditto.
18905 * config/i386/rtmintrin.h: Ditto.
18906 * config/i386/fmaintrin.h: Ditto.
18907 * config/i386/mm3dnow.h: Ditto.
18909 2013-06-22 Sriraman Tallam <tmsriram@google.com>
18911 * common/config/i386/i386-common.c: Handle LZCNT.
18913 2013-06-22 Andi Kleen <ak@linux.intel.com>
18915 * doc/extend.texi: Use __atomic_store_n instead of
18916 __atomic_store in HLE example.
18918 2013-06-22 Oleg Endo <olegendo@gcc.gnu.org>
18920 * config/sh/sh.c: Remove <cstdlib> workaround.
18922 2013-06-21 Andi Kleen <ak@linux.intel.com>
18924 * doc/extend.texi: Dont use __atomic_clear in HLE example. Fix typo.
18926 2013-06-21 Andi Kleen <ak@linux.intel.com>
18928 * doc/extend.texi: Document that __atomic_clear and
18929 __atomic_test_and_set should only be used with bool.
18931 2013-06-20 Jan Hubicka <jh@suse.cz>
18933 * gimple-fold.c (gimple_extract_devirt_binfo_from_cst): Use
18934 types_same_for_odr.
18935 * tree.c (decls_same_for_odr): New function.
18936 (same_for_edr): New function.
18937 (types_same_for_odr): New function.
18938 (get_binfo_at_offset): Use it.
18939 * tree.h (types_same_for_odr): Declare.
18941 2013-06-20 Oleg Endo <olegendo@gcc.gnu.org>
18942 Jason Merrill <jason@redhat.com>
18944 * system.h: Include <cstdlib> as well as <stdlib.h>.
18946 2013-06-20 Uros Bizjak <ubizjak@gmail.com>
18949 * config/i386/i386.c (construct_container): Report error if
18950 long double is used with disabled x87 float returns.
18952 2013-06-20 Jan Hubicka <jh@suse.cz>
18954 * lto-cgraph.c (input_symtab): Do not set cgraph state.
18956 2013-06-20 Joern Rennecke <joern.rennecke@embecosm.com>
18958 PR rtl-optimization/57425
18959 PR rtl-optimization/57569
18960 * alias.c (write_dependence_p): Remove parameters mem_mode and
18961 canon_mem_addr. Add parameters x_mode, x_addr and x_canonicalized.
18962 Changed all callers.
18963 (canon_anti_dependence): Get comments and semantics in sync.
18964 Add parameter mem_canonicalized. Changed all callers.
18965 * rtl.h (canon_anti_dependence): Update prototype.
18967 2013-06-20 Richard Biener <rguenther@suse.de>
18969 * data-streamer-in.c (streamer_read_uhwi): Optimize single
18970 byte case, inline streamer_read_uchar and defer section
18973 2013-06-20 Richard Biener <rguenther@suse.de>
18975 PR tree-optimization/57584
18976 * tree-ssa-loop-niter.c (expand_simple_operations): Avoid including
18977 SSA names into the expanded expression that take part in
18978 abnormal coalescing.
18980 2013-06-19 Sharad Singhai <singhai@google.com>
18982 * gcov.c (print_usage): Handle new option.
18983 (process_args): Ditto.
18984 (get_gcov_intermediate_filename): New function.
18985 (output_intermediate_file): New function.
18986 (output_gcov_file): New function
18987 (generate_results): Handle new option.
18988 (release_function): Relase demangled name.
18989 (read_graph_file): Handle demangled name.
18990 (output_lines): Ditto.
18991 * doc/gcov.texi: Document gcov intermediate format.
18993 2013-06-19 Vladimir Makarov <vmakarov@redhat.com>
18996 * lra.c (emit_add3_insn, emit_add2_insn): New functions.
18997 (lra_emit_add): Use the functions. Add comment about Y as an
19000 2013-06-19 David Edelsohn <dje.gcc@gmail.com>
19003 * collect2.c (collect_atexit): New.
19004 (collect_exit): Delete.
19005 (main): Register collect_atexit with atexit.
19006 (collect_wait): Change collect_exit to exit.
19008 * collect2.h (collect_exit): Delete.
19009 * tlink.c (do_tlink): Rename exit to ret. Change collect_exit to exit.
19011 2013-06-19 Wei Mi <wmi@google.com>
19013 PR rtl-optimization/57518
19014 * ira.c (set_paradoxical_subreg): Set pdx_subregs[regno]
19015 if regno is used in paradoxical subreg.
19016 (update_equiv_regs): Check pdx_subregs[regno] before
19017 set a reg to be equivalent with a mem.
19019 2013-06-19 Matthias Klose <doko@ubuntu.com>
19022 * file-find.h (find_a_file): Add a mode parameter.
19023 * file-find.c (find_a_file): Likewise.
19024 * gcc-ar.c (main): Call find_a_file with R_OK for the plugin,
19025 with X_OK for the executables.
19026 * collect2.c (main): Call find_a_file with X_OK.
19028 2013-06-19 Steve Ellcey <sellcey@mips.com>
19031 * config/mips/mips.md (casesi_internal_mips16_<mode>):
19032 Use NEXT_INSN instead of next_real_insn.
19034 2013-06-19 Jan Hubicka <jh@suse.cz>
19036 * cgraph.h (const_value_known_p): Replace by ...
19037 (ctor_for_folding): .. this one.
19038 * cgraphunit.c (process_function_and_variable_attributes): Use it.
19039 * lto-cgraph.c (compute_ltrans_boundary): Use ctor_for_folding.
19040 * expr.c (expand_expr_real_1): Likewise.
19041 (string_constant): Likewise.
19042 * tree-ssa-loop-ivcanon.c (constant_after_peeling): Likewise.
19043 * ipa.c (process_references): Likewise.
19044 (symtab_remove_unreachable_nodes): Likewise.
19045 * ipa-inline-analysis.c (param_change_prob): Likewise.
19046 * gimple-fold.c (canonicalize_constructor_val): Likewise.
19047 (get_base_constructor): Likwise.
19048 * varpool.c (varpool_remove_node): Likewise.
19049 (varpool_remove_initializer): LIkewise.
19050 (dump_varpool_node): LIkwise.
19051 (const_value_known_p): Rewrite to ...
19052 (ctor_for_folding): ... this one.
19054 2013-06-19 Jakub Jelinek <jakub@redhat.com>
19057 * gcc-ar.c (main): If not CROSS_DIRECTORY_STRUCTURE, look for
19058 PERSONALITY in $PATH derived prefixes.
19060 2013-06-19 Jeff Law <law@redhat.com>
19062 * tree-ssa-forwprop.c (simplify_bitwise_binary_boolean): Fix typo
19065 * tree-ssa-forwprop.c (simplify_bitwise_binary_boolean): New function.
19066 (simplify_bitwise_binary): Use it to simpify certain binary ops on
19069 2013-06-19 Sofiane Naci <sofiane.naci@arm.com>
19071 * config/arm/vfp.md: Move VFP instruction classification documentation
19073 * config/arm/arm.md: ... here. Update instruction classification
19076 2013-06-19 Richard Earnshaw <rearnsha@arm.com>
19078 arm.md (split for eq(reg, 0)): Add variants for ARMv5 and Thumb2.
19079 (peepholes for eq(reg, not-0)): Ensure condition register is dead after
19080 pattern. Use more efficient sequences on ARMv5 and Thumb2.
19082 2013-06-19 Steven Bosscher <steven@gcc.gnu.org>
19085 * config/s390/s390.c (s390_chunkify_start): Replace next_real_insn
19086 with NEXT_INSN. Use tablejump_p to check for jump table data
19089 2013-06-19 Paolo Carlini <paolo.carlini@oracle.com>
19092 * doc/cpp.texi [Standard Predefined Macros, __cplusplus]: Document
19093 that now in C++ the value is correct per the C++ standards.
19095 2013-06-19 Richard Biener <rguenther@suse.de>
19097 * expr.c (expand_expr_real_1): Use SCOPE_FILE_SCOPE_P to check
19098 for global context.
19100 2013-06-19 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
19103 2013-06-18 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
19106 * config/s390/s390.c (s390_chunkify_start): Replace next_real_insn
19107 with next_active_insn.
19109 2013-06-18 Sriraman Tallam <tmsriram@google.com>
19111 * ipa-inline.c (inline_always_inline_functions): Pretend always_inline
19112 functions are inlined during failures to flag an error.
19113 * tree-inline.c (expand_call_inline): Allow the error to be flagged
19114 in early inline pass.
19116 2013-06-18 H.J. Lu <hongjiu.lu@intel.com>
19118 * config/i386/i386.c (initial_ix86_tune_features): Fix a typo
19121 2013-06-18 Julian Brown <julian@codesourcery.com>
19123 * config/arm/arm.c (neon_vector_mem_operand): Add strict argument.
19124 Permit virtual register pre-reload if !strict.
19125 (coproc_secondary_reload_class): Adjust for neon_vector_mem_operand
19127 * config/arm/arm-protos.h (neon_vector_mem_operand): Adjust
19129 * config/arm/neon.md (movmisalign<mode>): Use
19130 neon_perm_struct_or_reg_operand instead of
19131 neon_struct_or_register_operand.
19132 (*movmisalign<mode>_neon_load, *movmisalign<mode>_neon_store): Use
19133 neon_permissive_struct_operand instead of neon_struct_operand.
19134 * config/arm/constraints.md (Un, Um, Us): Adjust calls to
19135 neon_vector_mem_operand.
19136 * config/arm/predicates.md (neon_struct_operand): Adjust call to
19137 neon_vector_mem_operand.
19138 (neon_permissive_struct_operand): New.
19139 (neon_struct_or_register_operand): Rename to...
19140 (neon_perm_struct_or_reg_operand): This. Adjust call to
19141 neon_vector_mem_operand.
19143 2013-06-18 Richard Biener <rguenther@suse.de>
19145 * Makefile.in (LTO_STREAMER_H): Add pointer-set.h dependency.
19146 * lto-streamer.h: Include pointer-set.h.
19147 (struct lto_decl_slot): Remove.
19148 (struct lto_tree_ref_encoder): Make tree_hash_table a pointer-map.
19149 Remove next_index entry.
19150 (lto_hash_decl_slot_node, lto_eq_decl_slot_node,
19151 lto_hash_type_slot_node, lto_eq_type_slot_node): Remove.
19152 (lto_init_tree_ref_encoder): Adjust.
19153 (lto_destroy_tree_ref_encoder): Likewise.
19154 * lto-section-out.c (lto_hash_decl_slot_node, lto_eq_decl_slot_node,
19155 lto_hash_type_slot_node, lto_eq_type_slot_node): Remove.
19156 (lto_output_decl_index): Adjust.
19157 (lto_new_out_decl_state): Likewise.
19158 (lto_record_function_out_decl_state): Likewise.
19159 * lto-streamer-out.c (copy_function): Likewise.
19161 2013-06-18 Richard Biener <rguenther@suse.de>
19163 * Makefile.in (cgraphunit.o): Add $(CFGLOOP_H) dependency.
19164 * cgraphunit.c: Include cfgloop.h.
19165 (init_lowered_empty_function): Initialize the loop tree.
19166 (assemble_thunk): Insert new BBs into loops.
19168 2013-06-18 Richard Biener <rguenther@suse.de>
19170 * tree-streamer.h (streamer_tree_cache_create): Adjust prototype.
19171 * tree-streamer.c (streamer_tree_cache_create): Make maintaining
19172 the map from cache entry to cache index optional.
19173 (streamer_tree_cache_replace_tree): Adjust accordingly.
19174 (streamer_tree_cache_append): Likewise.
19175 (streamer_tree_cache_delete): Likewise.
19176 * lto-streamer-in.c (lto_data_in_create): Do not maintain the
19177 streamer cache map from cache entry to cache index.
19178 * lto-streamer-out.c (create_output_block): Adjust.
19180 2013-06-18 Sofiane Naci <sofiane.naci@arm.com>
19182 * config/arm/arm.md (attribute "insn"): Move multiplication and
19183 division attributes to...
19184 (attribute "type"): ... here. Remove mult.
19185 (attribute "mul32"): New attribute.
19186 (attribute "mul64"): Add umaal.
19187 (*arm_mulsi3): Update attributes.
19188 (*arm_mulsi3_v6): Likewise.
19189 (*thumb_mulsi3): Likewise.
19190 (*thumb_mulsi3_v6): Likewise.
19191 (*mulsi3_compare0): Likewise.
19192 (*mulsi3_compare0_v6): Likewise.
19193 (*mulsi_compare0_scratch): Likewise.
19194 (*mulsi_compare0_scratch_v6): Likewise.
19195 (*mulsi3addsi): Likewise.
19196 (*mulsi3addsi_v6): Likewise.
19197 (*mulsi3addsi_compare0): Likewise.
19198 (*mulsi3addsi_compare0_v6): Likewise.
19199 (*mulsi3addsi_compare0_scratch): Likewise.
19200 (*mulsi3addsi_compare0_scratch_v6): Likewise.
19201 (*mulsi3subsi): Likewise.
19202 (*mulsidi3adddi): Likewise.
19203 (*mulsi3addsi_v6): Likewise.
19204 (*mulsidi3adddi_v6): Likewise.
19205 (*mulsidi3_nov6): Likewise.
19206 (*mulsidi3_v6): Likewise.
19207 (*umulsidi3_nov6): Likewise.
19208 (*umulsidi3_v6): Likewise.
19209 (*umulsidi3adddi): Likewise.
19210 (*umulsidi3adddi_v6): Likewise.
19211 (*smulsi3_highpart_nov6): Likewise.
19212 (*smulsi3_highpart_v6): Likewise.
19213 (*umulsi3_highpart_nov6): Likewise.
19214 (*umulsi3_highpart_v6): Likewise.
19215 (mulhisi3): Likewise.
19216 (*mulhisi3tb): Likewise.
19217 (*mulhisi3bt): Likewise.
19218 (*mulhisi3tt): Likewise.
19219 (maddhisi4): Likewise.
19220 (*maddhisi4tb): Likewise.
19221 (*maddhisi4tt): Likewise.
19222 (maddhidi4): Likewise.
19223 (*maddhidi4tb): Likewise.
19224 (*maddhidi4tt): Likewise.
19225 (divsi3): Likewise.
19226 (udivsi3): Likewise.
19227 * config/arm/thumb2.md (thumb2_mulsi_short): Update attributes.
19228 (thumb2_mulsi_short_compare0): Likewise.
19229 (thumb2_mulsi_short_compare0_scratch): Likewise.
19230 * config/arm/arm1020e.md (1020mult1): Update attribute change.
19231 (1020mult2): Likewise.
19232 (1020mult3): Likewise.
19233 (1020mult4): Likewise.
19234 (1020mult5): Likewise.
19235 (1020mult6): Likewise.
19236 * config/arm/cortex-a15.md (cortex_a15_mult32): Update attribute
19238 (cortex_a15_mult64): Likewise.
19239 (cortex_a15_sdiv): Likewise.
19240 (cortex_a15_udiv): Likewise.
19241 * config/arm/arm1026ejs.md (mult1): Update attribute change.
19247 * config/arm/marvell-pj4.md (pj4_ir_mul): Update attribute change.
19248 (pj4_ir_div): Likewise.
19249 * config/arm/arm1136jfs.md (11_mult1): Update attribute change.
19250 (11_mult2): Likewise.
19251 (11_mult3): Likewise.
19252 (11_mult4): Likewise.
19253 (11_mult5): Likewise.
19254 (11_mult6): Likewise.
19255 (11_mult7): Likewise.
19256 * config/arm/cortex-a8.md (cortex_a8_mul): Update attribute change.
19257 (cortex_a8_mla): Likewise.
19258 (cortex_a8_mull): Likewise.
19259 (cortex_a8_smulwy): Likewise.
19260 (cortex_a8_smlald): Likewise.
19261 * config/arm/cortex-m4.md (cortex_m4_alu): Update attribute change.
19262 * config/arm/cortex-r4.md (cortex_r4_mul_4): Update attribute change.
19263 (cortex_r4_mul_3): Likewise.
19264 (cortex_r4_mla_4): Likewise.
19265 (cortex_r4_mla_3): Likewise.
19266 (cortex_r4_smlald): Likewise.
19267 (cortex_r4_mull): Likewise.
19268 (cortex_r4_sdiv): Likewise.
19269 (cortex_r4_udiv): Likewise.
19270 * config/arm/cortex-a7.md (cortex_a7_mul): Update attribute change.
19271 (cortex_a7_idiv): Likewise.
19272 * config/arm/arm926ejs.md (9_mult1): Update attribute change.
19273 (9_mult2): Likewise.
19274 (9_mult3): Likewise.
19275 (9_mult4): Likewise.
19276 (9_mult5): Likewise.
19277 (9_mult6): Likewise.
19278 * config/arm/cortex-a53.md (cortex_a53_mul): Update attribute change.
19279 (cortex_a53_sdiv): Likewise.
19280 (cortex_a53_udiv): Likewise.
19281 * config/arm/fa726te.md (726te_mult_op): Update attribute change.
19282 * config/arm/fmp626.md (mp626_mult1): Update attribute change.
19283 (mp626_mult2): Likewise.
19284 (mp626_mult3): Likewise.
19285 (mp626_mult4): Likewise.
19286 * config/arm/fa526.md (526_mult1): Update attribute change.
19287 (526_mult2): Likewise.
19288 * config/arm/arm-generic.md (mult): Update attribute change.
19289 (mult_ldsched_strongarm): Likewise.
19290 (mult_ldsched): Likewise.
19291 (multi_cycle): Likewise.
19292 * config/arm/cortex-a5.md (cortex_a5_mul): Update attribute change.
19293 * config/arm/fa606te.md (606te_mult1): Update attribute change.
19294 (606te_mult2): Likewise.
19295 (606te_mult3): Likewise.
19296 (606te_mult4): Likewise.
19297 * config/arm/cortex-a9.md (cortex_a9_mult16): Update attribute change.
19298 (cortex_a9_mac16): Likewise.
19299 (cortex_a9_multiply): Likewise.
19300 (cortex_a9_mac): Likewise.
19301 (cortex_a9_multiply_long): Likewise.
19302 * config/arm/fa626te.md (626te_mult1): Update attribute change.
19303 (626te_mult2): Likewise.
19304 (626te_mult3): Likewise.
19305 (626te_mult4): Likewise.
19307 2013-06-18 Richard Biener <rguenther@suse.de>
19310 * lto-symtab.c (lto_symtab_merge_decls): Process nodes properly.
19312 2013-06-18 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
19315 * config/s390/s390.c (s390_chunkify_start): Replace next_real_insn
19316 with next_active_insn.
19318 2013-06-18 Alan Modra <amodra@gmail.com>
19320 * config/rs6000/rs6000.h (enum data_align): New.
19321 (LOCAL_ALIGNMENT, DATA_ALIGNMENT): Use rs6000_data_alignment.
19322 (DATA_ABI_ALIGNMENT): Define.
19323 (CONSTANT_ALIGNMENT): Correct comment.
19324 * config/rs6000/rs6000-protos.h (rs6000_data_alignment): Declare.
19325 * config/rs6000/rs6000.c (rs6000_data_alignment): New function.
19327 2013-06-17 David Malcolm <dmalcolm@redhat.com>
19329 * ggc-page.c (ggc_pch_write_object) <d>: Remove erroneous
19330 ATTRIBUTE_UNUSED marking.
19332 2013-06-17 Sofiane Naci <sofiane.naci@arm.com>
19334 * config/aarch64/aarch64-simd.md (aarch64_dup_lane<mode>): Add r<-w
19335 alternative and update.
19336 (aarch64_dup_lanedi): Delete.
19337 * config/aarch64/arm_neon.h (vdup<bhsd>_lane_*): Update.
19338 * config/aarch64/aarch64-simd-builtins.def: Update.
19340 2013-06-17 Richard Biener <rguenther@suse.de>
19342 * lto-streamer.h (enum LTO_tags): Add LTO_tree_scc.
19343 (lto_input_scc): Declare.
19344 (lto_input_tree_1): Likewise.
19345 (struct lto_stats_d): Add num_tree_bodies_output and
19346 num_pickle_refs_output.
19347 * lto-streamer-in.c (lto_read_body): Use streamer_tree_cache_get_tree.
19348 (lto_read_tree_1): Split out from ...
19349 (lto_read_tree): ... this.
19350 (lto_input_scc): New function.
19351 (lto_input_tree_1): Split out from ...
19352 (lto_input_tree): ... this. Handle LTO_tree_scc.
19353 (lto_data_in_create): Create the streamer cache without hashes.
19354 * lto-streamer-out.c (create_output_block): Create the streamer
19355 cache with hashes when not doing WPA.
19356 (lto_write_tree_1): Split out from ...
19357 (lto_write_tree): ... this.
19358 (get_symbol_initial_value): New function.
19359 (lto_output_tree_1): Split out from ...
19360 (lto_output_tree): ... this. Write trees as series of SCCs
19361 using a DFS walk via DFS_write_tree.
19362 (struct sccs, struct scc_entry): New types.
19363 (next_dfs_num, sccstack, sccstate, sccstate_obstack): New globals.
19364 (DFS_write_tree_body): New function.
19365 (DFS_write_tree): Likewise.
19366 (hash_tree): Likewise.
19367 (scc_entry_compare): Likewise.
19368 (hash_scc): Likewise.
19369 (tree_is_indexable): DEBUG_EXPR_DECLs are local entities.
19370 * tree-streamer-in.c (lto_input_ts_list_tree_pointers): Stream
19371 TREE_CHAIN as regular reference.
19372 (streamer_read_integer_cst): Remove.
19373 (streamer_get_pickled_tree): Adjust.
19374 * tree-streamer-out.c (streamer_write_chain): Disable streaming
19375 of DECL_EXTERNALs in BLOCK_VARS for now.
19376 (write_ts_list_tree_pointers): Stream TREE_CHAIN as regular
19378 * tree-streamer.c (streamer_tree_cache_add_to_node_array):
19379 Add hash value argument and record that if hashes are recorded
19381 (streamer_tree_cache_insert_1): Adjust.
19382 (streamer_tree_cache_insert): Likewise.
19383 (streamer_tree_cache_insert_at): Rename to ...
19384 (streamer_tree_cache_replace_tree): ... this and adjust.
19385 (streamer_tree_cache_append): Adjust.
19386 (record_common_node): Likewise.
19387 (streamer_tree_cache_create): Add argument whether to
19388 record hash values together with trees.
19389 (streamer_tree_cache_delete): Adjust.
19390 * tree-streamer.h (struct streamer_tree_cache_d): Add
19392 (streamer_read_integer_cst): Remove.
19393 (streamer_tree_cache_insert): Adjust.
19394 (streamer_tree_cache_append): Likewise.
19395 (streamer_tree_cache_insert_at): Rename to ...
19396 (streamer_tree_cache_replace_tree): ... this and adjust.
19397 (streamer_tree_cache_create): Add argument whether to record hashes.
19398 (streamer_tree_cache_get): Rename to ...
19399 (streamer_tree_cache_get_tree): ... this.
19400 (streamer_tree_cache_get_hash): New function.
19401 * tree.c (cache_integer_cst): New function.
19402 * tree.h (cache_integer_cst): Declare.
19403 (ANON_AGGRNAME_FORMAT, ANON_AGGRNAME_P): Move here from cp/cp-tree.h.
19404 * lto-symtab.c (lto_varpool_replace_node): Only release
19405 DECL_INITIAL of non-prevailing decls.
19406 * varpool.c (varpool_remove_initializer): Do not release
19407 DECL_INITIAL when we are still in CGRAPH_LTO_STREAMING.
19409 2013-06-16 Jürgen Urban <JuergenUrban@gmx.de>
19411 * config/mips/mips.h (ISA_HAS_MUL3): Include TARGET_MIPS5900.
19412 (ISA_HAS_MULT, ISA_HAS_DMULT, ISA_HAS_DIV, ISA_HAS_DDIV): New macros.
19413 * config/mips/mips.md (mul<mode>3, mul<mode>3_internal)
19414 (mul<mode>3_r4000): Require ISA_HAS_<D>MULT.
19415 (mul<mode>3_mul3): Handle TARGET_MIPS5900.
19416 (mulsidi3_64bit_dmul): Remove redundant TARGET_64BIT test.
19417 (<su>muldi3_highpart, <su>muldi3_highpart_internal, <u>mulditi3)
19418 (<u>mulditi3_internal, <u>mulditi3_r4000): Require ISA_HAS_DMULT
19419 instead of TARGET_64BIT.
19420 (divmod<mode>4, udivmod<mode>4, <u>divmod<GPR:mode>4_hilo_<HILO:mode>):
19421 Require ISA_HAS_<D>DIV.
19423 2013-06-16 Richard Sandiford <rdsandiford@googlemail.com>
19425 * config.gcc (mips*-mti-linux*, mips64*-*-linux*, mipsisa64*-*-linux*)
19426 (mips*-*-linux*): Move default with_llsc setting to where other
19428 (mips*-*-vxworks*): Move with_arch default from with_cpu block to
19430 (mips64r5900-*-*, mips64r5900el-*-*, mipsr5900-*-*, mipsr5900el-*-*):
19431 Likewise. Remove default with_tune setting. Move default float
19432 setting to its own block. Handle with_llsc in the same block as above.
19434 2013-06-16 Joern Rennecke <joern.rennecke@embecosm.com>
19436 PR rtl-optimization/57425
19437 PR rtl-optimization/57569
19438 * alias.c (write_dependence_p): Add new parameters mem_mode,
19439 canon_mem_addr and mem_canonicalized. Change type of writep to bool.
19440 Changed all callers.
19441 (canon_anti_dependence): New function.
19442 * cse.c (check_dependence): Use canon_anti_dependence.
19443 * cselib.c (cselib_invalidate_mem): Likewise.
19444 * rtl.h (canon_anti_dependence): Declare.
19446 2013-06-16 Jürgen Urban <JuergenUrban@gmx.de>
19448 * config/mips/mips.h (ISA_HAS_LL_SC): Exclude TARGET_MIPS5900.
19449 * config/mips/mips.c (mips_start_ll_sc_sync_block): Output
19450 ".set mips3" for 64-bit targets.
19452 2013-06-15 Dehao Chen <dehao@google.com>
19454 * tree-flow.h (gimple_check_call_matching_types): Add new argument.
19455 * gimple-low.c (gimple_check_call_matching_types): Likewise.
19456 (gimple_check_call_args): Likewise.
19457 * value-prof.c (check_ic_target): Likewise.
19458 * ipa-inline.c (early_inliner): Likewise.
19459 * ipa-prop.c (update_indirect_edges_after_inlining): Likewise.
19460 * cgraph.c (cgraph_create_edge_1): Likewise.
19461 (cgraph_make_edge_direct): Likewise.
19463 2013-06-14 Michael Meissner <meissner@linux.vnet.ibm.com>
19466 * config/rs6000/rs6000.md (mov<mode>_ppc64): Call
19467 rs6000_output_move_128bit to handle emitting quad memory
19468 operations. Set attribute length to 8 bytes.
19470 2013-06-14 Vidya Praveen <vidyapraveen@arm.com>
19472 * config/aarch64/aarch64-simd.md (aarch64_<su>mlal_lo<mode>):
19474 (aarch64_<su>mlal_hi<mode>, aarch64_<su>mlsl_lo<mode>): Likewise.
19475 (aarch64_<su>mlsl_hi<mode>, aarch64_<su>mlal<mode>): Likewise.
19476 (aarch64_<su>mlsl<mode>): Likewise.
19478 2013-06-14 Mike Stump <mikestump@comcast.net>
19480 * Makefile.in (TARGET_H): Add insn-codes.h.
19482 2013-06-14 Alan Modra <amodra@gmail.com>
19484 PR middle-end/57134
19485 PR middle-end/57586
19486 * expr.c (expand_expr_real_1 <normal_inner_ref>): Pass
19487 EXPAND_MEMORY and EXPAND_WRITE to recursive call. Don't use
19488 bitfield expansion when EXPAND_MEMORY.
19489 (expand_expr_real_1 <VIEW_CONVERT_EXPR>): Pass modifier likewise.
19491 2013-06-13 Michael Meissner <meissner@linux.vnet.ibm.com>
19493 * config/rs6000/rs6000.c (rs6000_option_override_internal): Move
19494 test for clearing quad memory on 32-bit later.
19496 2013-06-13 Marc Glisse <marc.glisse@inria.fr>
19498 * fold-const.c (negate_expr_p): Handle VECTOR_CST.
19499 (fold_negate_expr): Likewise.
19500 (fold_real_zero_addition_p): Handle vectors.
19501 (fold_binary_loc) <PLUS_EXPR, MINUS_EXPR>: Likewise.
19503 2013-06-14 Alan Modra <amodra@gmail.com>
19505 * varasm.c (force_const_mem): Revert 2013-06-07 change.
19507 2013-06-13 Jan Hubicka <jh@suse.cz>
19509 * ipa.c (cgraph_externally_visible_p, varpool_externally_visible_p):
19510 Local comdats are not externally visible.
19511 * symtab.c (dump_symtab_base): Dump externally visible.
19512 (verify_symtab_base): Verify back links in the symtab hash.
19514 2013-06-13 Bin Cheng <bin.cheng@arm.com>
19516 * fold-const.c (operand_equal_p): Consider NOP_EXPR and
19517 CONVERT_EXPR as equal nodes.
19519 2013-06-13 Bin Cheng <bin.cheng@arm.com>
19521 * rtlanal.c (noop_move_p): Check the code to be executed for COND_EXEC.
19523 2013-06-13 Marc Glisse <marc.glisse@inria.fr>
19525 * tree-ssa-forwprop.c (simplify_bitwise_binary, associate_plusminus):
19526 Generalize to complex and vector.
19527 * tree.c (build_all_ones_cst): New function.
19528 * tree.h (build_all_ones_cst): Declare it.
19530 2013-06-13 Alan Modra <amodra@gmail.com>
19532 * config/rs6000/rs6000.h (LONG_DOUBLE_LARGE_FIRST): Define.
19533 * config/rs6000/rs6000.md (signbittf2): New insn.
19534 (extenddftf2_internal): Use LONG_DOUBLE_LARGE_FIRST.
19535 (abstf2_internal, cmptf_internal2): Likewise.
19536 * config/rs6000/spe.md (spe_abstf2_cmp, spe_abstf2_tst): Likewise.
19538 2013-06-12 Michael Meissner <meissner@linux.vnet.ibm.com>
19539 Pat Haugen <pthaugen@us.ibm.com>
19540 Peter Bergner <bergner@vnet.ibm.com>
19542 * config/rs6000/rs6000.c (emit_load_locked): Add support for
19543 power8 byte, half-word, and quad-word atomic instructions.
19544 (emit_store_conditional): Likewise.
19545 (rs6000_expand_atomic_compare_and_swap): Likewise.
19546 (rs6000_expand_atomic_op): Likewise.
19548 * config/rs6000/sync.md (larx): Add new modes for power8.
19550 (AINT): New mode iterator to include TImode as well as normal
19551 integer modes on power8.
19552 (fetchop_pred): Use int_reg_operand instead of gpc_reg_operand so
19553 that VSX registers are not considered. Use AINT mode iterator
19554 instead of INT1 to allow inclusion of quad word atomic operations
19556 (load_locked<mode>): Likewise.
19557 (store_conditional<mode>): Likewise.
19558 (atomic_compare_and_swap<mode>): Likewise.
19559 (atomic_exchange<mode>): Likewise.
19560 (atomic_nand<mode>): Likewise.
19561 (atomic_fetch_<fetchop_name><mode>): Likewise.
19562 (atomic_nand_fetch<mode>): Likewise.
19563 (mem_thread_fence): Use gen_loadsync_<mode> instead of enumerating
19565 (ATOMIC): On power8, add QImode, HImode modes.
19566 (load_locked<QHI:mode>_si): Varients of load_locked for QI/HI
19567 modes that promote to SImode.
19568 (load_lockedti): Convert TImode arguments to PTImode, so that we
19569 get a guaranteed even/odd register pair.
19570 (load_lockedpti): Likewise.
19571 (store_conditionalti): Likewise.
19572 (store_conditionalpti): Likewise.
19574 * config/rs6000/rs6000.md (QHI): New mode iterator for power8
19575 atomic load/store instructions.
19578 2013-06-12 Richard Sandiford <rdsandiford@googlemail.com>
19580 * config/mips/mips.md (extended_mips16): Include GOT and constant-pool
19582 (insn_count): New attribute, with most cases extracted from...
19583 (length): ...here. Redefine most cases in terms of insn_count.
19584 (single_insn): Delete.
19585 (can_delay): Use insn_count to check for single instructions.
19586 (*mul<mode>3_r4300, mul<mode>3_r4000, *mul_acc_si, *mul_acc_si_r3900)
19587 (*msac_using_macc, *mul_sub_si, <u>mulsidi3_32bit_r4000)
19588 (<u>mulsidi3_64bit_r4000, <su>muldi3_highpart_internal)
19589 (<su>mulsi3_highpart_split, <su>muldi3_highpart_internal)
19590 (<u>mulditi3_r4000, *div<mode>3, *recip<mode>3, divmod<mode>4)
19591 (udivmod<mode>4, sqrt<mode>2, *rsqrt<mode>a, *rsqrt<mode>b)
19592 (fix_truncdfsi2_macro, fix_truncsfsi2_macro, *lea_high64)
19593 (*lea64, cprestore_<mode>, clear_hazard_<mode>, <unnamed insn>)
19594 (casesi_internal_mips16_<mode>, *tls_get_tp_<mode>_split)
19595 (tls_get_tp_mips16, *tls_get_tp_mips16_call_<mode>): Use "insn_count"
19596 rather than "length".
19597 (tls_get_tp_<mode>): Likewise. Remove redundant "no_delay" attribute.
19598 * config/mips/mips-ps-3d.md (mips_c_cond_4s, mips_cabs_cond_4s):
19599 Use "insn_count" rather than "length".
19600 * config/mips/mips-dsp.md
19601 (mips_l<SHORT:size><u>x_ext<GPR:mode>_<P:mode>)
19602 (mips_l<GPR:size>x_<P:mode>, *mips_lw<u>x_<P:mode>_ext): Remove
19605 2013-06-12 Marc Glisse <marc.glisse@inria.fr>
19607 PR tree-optimization/57361
19608 * tree-ssa-dse.c (dse_possible_dead_store_p): Handle self-assignment.
19610 2013-06-12 Sofiane Naci <sofiane.naci@arm.com>
19612 * config/aarch64/aarch64-simd.md (aarch64_combine<mode>): Convert
19614 (aarch64_simd_combine<mode>): New instruction expansion.
19615 * config/aarch64/aarch64-protos.h (aarch64_split_simd_combine): New
19616 function prototype.
19617 * config/aarch64/aarch64.c (aarch64_split_combine): New function.
19618 * config/aarch64/iterators.md (Vdbl): Add entry for DF.
19620 2013-06-12 Jan Hubicka <jh@suse.cz>
19622 * cgraph.c (verify_edge_corresponds_to_fndecl): Be lax about
19623 decl has when in streaming stage.
19624 * lto-symtab.c (lto_symtab_merge_symbols): Likewise.
19625 * cgraph.h (cgraph_state): Add CGRAPH_LTO_STREAMING.
19627 2013-06-12 Roland Stigge <stigge@antcom.de>
19630 * config/rs6000/t-linux (MULTIARCH_DIRNAME): Fix SPE version detection.
19632 2013-06-12 Jakub Jelinek <jakub@redhat.com>
19634 PR tree-optimization/57537
19635 * tree-vect-patterns.c (vect_recog_widen_mult_pattern): If
19636 vect_handle_widen_op_by_const, convert oprnd1 to half_type1.
19638 2013-06-12 Richard Biener <rguenther@suse.de>
19640 * data-streamer.h (streamer_write_char_stream): CSE
19641 obs->current_pointer.
19642 * data-streamer-out.c (streamer_write_uhwi_stream): Inline
19643 streamer_write_char_stream manually and optimize the resulting loop.
19644 (streamer_write_hwi_stream): Likewise.
19646 2013-06-12 Jan Hubicka <jh@suse.cz>
19648 * lto-symtab.c (lto_symtab_merge_symbols): Populate symtab hashtable.
19649 * cgraph.h (varpool_create_empty_node): Declare.
19650 * lto-cgraph.c (input_node, input_varpool_node): Forcingly create
19652 * symtab.c (symtab_unregister_node): Be lax about missin entries
19654 (symtab_get_node): Update comment.
19655 * varpool.c (varpool_create_empty_node): Break out from ...
19656 (varpool_node_for_decl): ... here.
19657 * lto-streamer.h (lto_file_decl_data): Add RESOLUTION_MAP.
19659 2013-06-12 Eric Botcazou <ebotcazou@adacore.com>
19661 * expr.c (expand_expr_real_1) <TARGET_MEM_REF>: Use straight-line flow.
19662 <MEM_REF>: Use 'type' instead of TREE_TYPE (exp) and tidy up the first
19663 part. Use straight-line flow at the end.
19664 <COMPONENT_REF>: Remove superfluous else.
19665 <VIEW_CONVERT_EXPR>: Use 'type' instead of TREE_TYPE (exp).
19667 2013-06-12 Jakub Jelinek <jakub@redhat.com>
19670 * varasm.c (decl_binds_to_current_def_p): Call binds_local_p
19671 target hook even for !TREE_PUBLIC decls. If no resolution info
19672 is available, return false for common and external decls.
19674 2013-06-12 Kaushik Phatak <kaushik.phatak@kpitcummins.com>
19676 * config/rl78/constraints.md (U): New constraint.
19677 * config/rl78/rl78.md (*mulqi3_rl78,*mulhi3_rl78,*mulhi3_g13): Add
19680 2013-06-11 Michael Meissner <meissner@linux.vnet.ibm.com>
19683 * config/rs6000/driver-rs6000.c (elf_platform): Make buffer static
19684 to allow returning address to AT_PLATFORM name.
19686 2013-06-11 Jan Hubicka <jh@suse.cz>
19688 * cgraph.c (cgraph_create_function_alias): Set weakref flag.
19689 * cgraph.h (symtab_node_base): Add weakref flag.
19690 * cgraphunit.c (cgraph_reset_node): Clear weakref flag.
19691 (handle_alias_pairs): Set weakref flag, do not set DECL_EXTERNAL.
19692 (output_weakrefs): Use weakref flag.
19693 * fold-const.c (simple_operand_p): Handle WEAK.
19694 * gimple-fold.c (can_refer_decl_in_current_unit_p): Drop weakref.
19695 * ipa.c (varpool_externally_visible_p): Drop weakref.
19696 (function_and_variable_visibility): Update comment; fix weakref
19697 sanity checks; do not clear DECL_WEAK on them.
19698 * lto-cgraph.c (lto_output_node): update.
19699 (lto_output_varpool_node): Update.
19700 (input_overwrite_node): Update.
19701 (input_node): Update.
19702 (input_varpool_node): Update.
19703 * lto-symtab.c (lto_symtab_symbol_p): Do not special case weakrefs.
19704 (lto_symtab_merge_symbols): Add sanity check.
19705 (lto_symtab_prevailing_decl): Do not special case weakrefs.
19706 * passes.c (rest_of_decl_compilation): Set static flag, too.
19707 * symtab.c (dump_symtab_base): Dump weakref.
19708 (verify_symtab_base): Sanity check weakrefs.
19709 (symtab_make_decl_local): Remove duplicated code.
19710 (symtab_alias_ultimate_target): Simplify.
19711 * varpool.c (varpool_create_variable_alias): Set weakref flag.
19713 2013-06-11 Tom de Vries <tom@codesourcery.com>
19715 * genautomata.c (gen_regexp_sequence): Handle els_num == -1. Handle
19716 sequence_vect == NULL.
19718 2013-06-11 DJ Delorie <dj@redhat.com>
19720 * config/rl78/rl78.c (TARGET_UNWIND_WORD_MODE): Define.
19721 (rl78_unwind_word_mode): New.
19723 2013-06-11 David Malcolm <dmalcolm@redhat.com>
19725 * final.c (debug_prefix_maps): Make static.
19727 2013-06-11 David Malcolm <dmalcolm@redhat.com>
19729 * function.c (initial_trampoline): Remove stray copy.
19731 2013-06-11 Sofiane Naci <sofiane.naci@arm.com>
19733 * config/aarch64/aarch64-simd.md (move_lo_quad_<mode>): Update.
19735 2013-06-11 Martin Jambor <mjambor@suse.cz>
19737 * ipa-cp.c (ipa_get_indirect_edge_target_1): Check that param_index is
19738 within bounds at the beginning of the function.
19740 2013-06-11 Alan Modra <amodra@gmail.com>
19742 * varasm.c (get_section): Don't die on !DECL_P decl. Tidy error
19744 (get_named_section): Don't NULL !DECL_P decl.
19746 2013-06-11 Igor Zamyatin <igor.zamyatin@intel.com>
19748 * doc/invoke.texi (core-avx2): Document.
19750 (atom): Updated with MOVBE.
19752 2013-06-11 Richard Biener <rguenther@suse.de>
19754 * collect2.c (main): Do not redirect ld stdout/stderr when debugging.
19756 2013-06-11 Anton Blanchard <anton@samba.org>
19758 * config/rs6000/rs6000.c (rs6000_adjust_atomic_subword): Calculate
19759 correct shift value in little-endian mode.
19761 2013-06-11 Jakub Jelinek <jakub@redhat.com>
19764 * varasm.c (get_variable_align): Move #endif to the right place.
19766 2013-06-10 Cary Coutant <ccoutant@google.com>
19768 * dwarf2out.c (hash_external_ref): Use die_symbol or signature
19769 for hash so that hash table traversal order is deterministic.
19771 2013-06-10 Michael Meissner <meissner@linux.vnet.ibm.com>
19772 Pat Haugen <pthaugen@us.ibm.com>
19773 Peter Bergner <bergner@vnet.ibm.com>
19775 * config/rs6000/vector.md (GPR move splitter): Do not split moves
19776 of vectors in GPRS if they are direct moves or quad word load or
19779 * config/rs6000/rs6000-protos.h (rs6000_output_move_128bit): Add
19781 (direct_move_p): Likewise.
19782 (quad_load_store_p): Likewise.
19784 * config/rs6000/rs6000.c (enum rs6000_reg_type): Simplify register
19785 classes into bins based on the physical register type.
19786 (reg_class_to_reg_type): Likewise.
19787 (IS_STD_REG_TYPE): Likewise.
19788 (IS_FP_VECT_REG_TYPE): Likewise.
19789 (reload_fpr_gpr): Arrays to determine what insn to use if we can
19790 use direct move instructions.
19791 (reload_gpr_vsx): Likewise.
19792 (reload_vsx_gpr): Likewise.
19793 (rs6000_init_hard_regno_mode_ok): Precalculate the register type
19794 information that is a simplification of register classes. Also
19795 precalculate direct move reload helpers.
19796 (direct_move_p): New function to return true if the operation can
19797 be done as a direct move instruciton.
19798 (quad_load_store_p): New function to return true if the operation
19799 is a quad memory operation.
19800 (rs6000_legitimize_address): If quad memory, only allow register
19801 indirect for TImode addresses.
19802 (rs6000_legitimate_address_p): Likewise.
19803 (enum reload_reg_type): Delete, replace with rs6000_reg_type.
19804 (rs6000_reload_register_type): Likewise.
19805 (register_to_reg_type): Return register type.
19806 (rs6000_secondary_reload_simple_move): New helper function for
19807 secondary reload and secondary memory needed to identify anything
19808 that is a simple move, and does not need reloading.
19809 (rs6000_secondary_reload_direct_move): New helper function for
19810 secondary reload to identify cases that can be done with several
19811 instructions via the direct move instructions.
19812 (rs6000_secondary_reload_move): New helper function for secondary
19813 reload to identify moves between register types that can be done.
19814 (rs6000_secondary_reload): Add support for quad memory operations
19815 and for direct move.
19816 (rs6000_secondary_memory_needed): Likewise.
19817 (rs6000_debug_secondary_memory_needed): Change argument names.
19818 (rs6000_output_move_128bit): New function to return the move to
19819 use for 128-bit moves, including knowing about the various
19820 limitations of quad memory operations.
19822 * config/rs6000/vsx.md (vsx_mov<mode>): Add support for quad
19823 memory operations. call rs6000_output_move_128bit for the actual
19824 instruciton(s) to generate.
19825 (vsx_movti_64bit): Likewise.
19827 * config/rs6000/rs6000.md (UNSPEC_P8V_FMRGOW): New unspec values.
19828 (UNSPEC_P8V_MTVSRWZ): Likewise.
19829 (UNSPEC_P8V_RELOAD_FROM_GPR): Likewise.
19830 (UNSPEC_P8V_MTVSRD): Likewise.
19831 (UNSPEC_P8V_XXPERMDI): Likewise.
19832 (UNSPEC_P8V_RELOAD_FROM_VSX): Likewise.
19833 (UNSPEC_FUSION_GPR): Likewise.
19834 (FMOVE128_GPR): New iterator for direct move.
19835 (f32_lv): New mode attribute for load/store of SFmode/SDmode values.
19836 (f32_sv): Likewise.
19837 (f32_dm): Likewise.
19838 (zero_extend<mode>di2_internal1): Add support for power8 32-bit
19839 loads and direct move instructions.
19840 (zero_extendsidi2_lfiwzx): Likewise.
19841 (extendsidi2_lfiwax): Likewise.
19842 (extendsidi2_nocell): Likewise.
19843 (floatsi<mode>2_lfiwax): Likewise.
19844 (lfiwax): Likewise.
19845 (floatunssi<mode>2_lfiwzx): Likewise.
19846 (lfiwzx): Likewise.
19847 (fix_trunc<mode>_stfiwx): Likewise.
19848 (fixuns_trunc<mode>_stfiwx): Likewise.
19849 (mov<mode>_hardfloat, 32-bit floating point): Likewise.
19850 (mov<move>_hardfloat64, 64-bit floating point): Likewise.
19851 (parity<mode>2_cmpb): Set length/type attr.
19852 (unnamed shift right patterns, mov<mode>_internal2): Change type attr
19853 for 'mr.' to fast_compare.
19854 (bpermd_<mode>): Change type attr to popcnt.
19855 (p8_fmrgow_<mode>): New insns for power8 direct move support.
19856 (p8_mtvsrwz_1): Likewise.
19857 (p8_mtvsrwz_2): Likewise.
19858 (reload_fpr_from_gpr<mode>): Likewise.
19859 (p8_mtvsrd_1): Likewise.
19860 (p8_mtvsrd_2): Likewise.
19861 (p8_xxpermdi_<mode>): Likewise.
19862 (reload_vsx_from_gpr<mode>): Likewise.
19863 (reload_vsx_from_gprsf): Likewise.
19864 (p8_mfvsrd_3_<mode>): LIkewise.
19865 (reload_gpr_from_vsx<mode>): Likewise.
19866 (reload_gpr_from_vsxsf): Likewise.
19867 (p8_mfvsrd_4_disf): Likewise.
19868 (multi-word GPR splits): Do not split direct moves or quad memory
19871 2013-06-10 David Malcolm <dmalcolm@redhat.com>
19873 * tree-into-ssa.c (interesting_blocks): Make static.
19875 2013-06-10 Jakub Jelinek <jakub@redhat.com>
19878 * varasm.c (align_variable): Don't use DATA_ALIGNMENT or
19879 CONSTANT_ALIGNMENT if !decl_binds_to_current_def_p (decl).
19880 Use DATA_ABI_ALIGNMENT for that case instead if defined.
19881 (get_variable_align): New function.
19882 (get_variable_section, emit_bss, emit_common,
19883 assemble_variable_contents, place_block_symbol): Use
19884 get_variable_align instead of DECL_ALIGN.
19885 (assemble_noswitch_variable): Add align argument, use it
19886 instead of DECL_ALIGN.
19887 (assemble_variable): Adjust caller. Use get_variable_align
19888 instead of DECL_ALIGN.
19889 * config/i386/i386.h (DATA_ALIGNMENT): Adjust x86_data_alignment
19891 (DATA_ABI_ALIGNMENT): Define.
19892 * config/i386/i386-protos.h (x86_data_alignment): Adjust prototype.
19893 * config/i386/i386.c (x86_data_alignment): Add opt argument. If
19894 opt is false, only return the psABI mandated alignment increase.
19895 * config/c6x/c6x.h (DATA_ALIGNMENT): Renamed to...
19896 (DATA_ABI_ALIGNMENT): ... this.
19897 * config/mmix/mmix.h (DATA_ALIGNMENT): Renamed to...
19898 (DATA_ABI_ALIGNMENT): ... this.
19899 * config/mmix/mmix.c (mmix_data_alignment): Adjust function comment.
19900 * config/s390/s390.h (DATA_ALIGNMENT): Renamed to...
19901 (DATA_ABI_ALIGNMENT): ... this.
19902 * doc/tm.texi.in (DATA_ABI_ALIGNMENT): Document.
19903 * doc/tm.texi: Regenerated.
19905 2013-06-10 Uros Bizjak <ubizjak@gmail.com>
19907 * config/alpha/alpha.c (alpha_emit_xfloating_compare): Also use
19908 cmp_code to construct REG_EQUAL note.
19910 2013-06-09 Jakub Jelinek <jakub@redhat.com>
19913 * config/i386/i386.md (TARGET_READ_MODIFY_WRITE peepholes): Ensure
19914 that operands[2] doesn't overlap with operands[0].
19916 2013-06-09 David Edelsohn <dje.gcc@gmail.com>
19917 Jan Hubicka <jh@suse.cz>
19919 * config/rs6000/rs6000.c (print_operand, 'z'): Remove historical
19920 hack to mark symbols as used.
19922 2013-06-08 Vladimir Makarov <vmakarov@redhat.com>
19924 PR rtl-optimization/57559
19925 * lra-constraints.c (process_alt_operands): Don't discourage
19926 memory with known offset for offsetable memory constraint.
19927 * lra.c (lra_emit_add): Exchange y and z for 2-op add insn.
19929 2013-06-08 Eric Botcazou <ebotcazou@adacore.com>
19931 * varasm.c (struct oc_local_state): Reorder fields.
19932 (output_constructor_bitfield): Replace OUTER parameter with BIT_OFFSET
19933 and adjust accordingly.
19934 (output_constructor): Reorder initialization code and adjust call to
19935 output_constructor_bitfield.
19937 2013-06-07 Jan Hubicka <jh@suse.cz>
19939 * symtab.c (symtab_resolve_alias): Do not remove alias attribute.
19941 2013-06-07 David Malcolm <dmalcolm@redhat.com>
19943 * tree-object-size.c (unknown): Make const.
19945 2013-06-07 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
19947 * config/s390/s390.md (cpu_facility): Add cpu_zarch.
19948 ("*movmem_short", "*clrmem_short", "*cmpmem_short): Use cpu_zarch
19949 for last alternative in the cpu_facility attribute.
19951 2013-06-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
19954 * config/arm/arm.md (*xordi3_insn): Change to insn_and_split.
19955 (xordi3): Change operand 2 constraint to arm_xordi_operand.
19956 * config/arm/arm.c (const_ok_for_dimode_op): Handle XOR.
19957 * config/arm/constraints.md (Dg): New constraint.
19958 * config/arm/neon.md (xordi3_neon): Remove.
19959 (neon_veor<mode>): Generate xordi3 instead of xordi3_neon.
19960 * config/arm/predicates.md (arm_xordi_operand): New predicate.
19962 2013-06-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
19964 * config/arm/arm.md (anddi3_insn): Remove duplicate alternatives.
19965 Clean up alternatives.
19967 2013-06-07 Alan Modra <amodra@gmail.com>
19969 * config/rs6000/rs6000.c (setup_incoming_varargs): Round up
19972 2013-06-07 Alan Modra <amodra@gmail.com>
19974 * varasm.c (force_const_mem): Assert mode is not VOID or BLK.
19976 2013-06-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
19978 * config/arm/constraints.md (Df): New constraint.
19979 * config/arm/arm.md (iordi3_insn): Use Df constraint instead of De.
19980 Correct length attribute for last two alternatives.
19982 2013-06-07 Alan Modra <amodra@gmail.com>
19984 * config/rs6000/rs6000.c (rs6000_option_override_internal): Don't
19985 override user -mfp-in-toc.
19986 (offsettable_ok_by_alignment): Consider just the current access
19987 rather than the whole object, unless BLKmode. Handle
19988 CONSTANT_POOL_ADDRESS_P constants that lack a decl too.
19989 (use_toc_relative_ref): Allow CONSTANT_POOL_ADDRESS_P constants
19990 for -mcmodel=medium.
19991 * config/rs6000/linux64.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Don't
19992 override user -mfp-in-toc or -msum-in-toc. Default to
19993 -mno-fp-in-toc for -mcmodel=medium.
19995 2013-06-06 DJ Delorie <dj@redhat.com>
19997 * config/rl78/rl78.c (rl78_valid_pointer_mode): New, implements
19998 TARGET_VALID_POINTER_MODE.
20000 2013-06-06 Michael Meissner <meissner@linux.vnet.ibm.com>
20001 Pat Haugen <pthaugen@us.ibm.com>
20002 Peter Bergner <bergner@vnet.ibm.com>
20004 * doc/extend.texi (PowerPC AltiVec/VSX Built-in Functions):
20005 Document new power8 builtins.
20007 * config/rs6000/vector.md (and<mode>3): Add a clobber/scratch of a
20008 condition code register, to allow 128-bit logical operations to be
20009 done in the VSX or GPR registers.
20010 (nor<mode>3): Use the canonical form for nor.
20011 (eqv<mode>3): Add expanders for power8 xxleqv, xxlnand, xxlorc,
20012 vclz*, and vpopcnt* vector instructions.
20013 (nand<mode>3): Likewise.
20014 (orc<mode>3): Likewise.
20015 (clz<mode>2): LIkewise.
20016 (popcount<mode>2): Likewise.
20018 * config/rs6000/predicates.md (int_reg_operand): Rework tests so
20019 that only the GPRs are recognized.
20021 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
20022 support for new power8 builtins.
20024 * config/rs6000/rs6000-builtin.def (xscvspdpn): Add new power8
20026 (xscvdpspn): Likewise.
20032 (vpopcnt): Likewise.
20033 (vpopcntb): Likewise.
20034 (vpopcnth): Likewise.
20035 (vpopcntw): Likewise.
20036 (vpopcntd): Likewise.
20038 (vmrgew): Likewise.
20039 (vmrgow): Likewise.
20041 (eqv_v16qi3): Likewise.
20042 (eqv_v8hi3): Likewise.
20043 (eqv_v4si3): Likewise.
20044 (eqv_v2di3): Likewise.
20045 (eqv_v4sf3): Likewise.
20046 (eqv_v2df3): Likewise.
20048 (nand_v16qi3): Likewise.
20049 (nand_v8hi3): Likewise.
20050 (nand_v4si3): Likewise.
20051 (nand_v2di3): Likewise.
20052 (nand_v4sf3): Likewise.
20053 (nand_v2df3): Likewise.
20055 (orc_v16qi3): Likewise.
20056 (orc_v8hi3): Likewise.
20057 (orc_v4si3): Likewise.
20058 (orc_v2di3): Likewise.
20059 (orc_v4sf3): Likewise.
20060 (orc_v2df3): Likewise.
20062 * config/rs6000/rs6000.c (rs6000_option_override_internal): Only
20063 allow power8 quad mode in 64-bit.
20064 (rs6000_builtin_vectorized_function): Add support to vectorize
20065 ISA 2.07 count leading zeros, population count builtins.
20066 (rs6000_expand_vector_init): On ISA 2.07 use xscvdpspn to form
20067 V4SF vectors instead of xscvdpsp to avoid IEEE related traps.
20068 (builtin_function_type): Add vgbbd builtin function which takes an
20070 (altivec_expand_vec_perm_const): Add support for new power8 merge
20073 * config/rs6000/vsx.md (VSX_L2): New iterator for 128-bit types,
20074 that does not include TImdoe for use with 32-bit.
20075 (UNSPEC_VSX_CVSPDPN): Support for power8 xscvdpspn and xscvspdpn
20077 (UNSPEC_VSX_CVDPSPN): Likewise.
20078 (vsx_xscvdpspn): Likewise.
20079 (vsx_xscvspdpn): Likewise.
20080 (vsx_xscvdpspn_scalar): Likewise.
20081 (vsx_xscvspdpn_directmove): Likewise.
20082 (vsx_and<mode>3): Split logical operations into 32-bit and
20083 64-bit. Add support to do logical operations on TImode as well as
20084 VSX vector types. Allow logical operations to be done in either
20085 VSX registers or in general purpose registers in 64-bit mode. Add
20086 splitters if GPRs were used. For AND, add clobber of CCmode to
20087 allow use of ANDI on GPRs. Rewrite nor to use the canonical RTL
20089 (vsx_and<mode>3_32bit): Likewise.
20090 (vsx_and<mode>3_64bit): Likewise.
20091 (vsx_ior<mode>3): Likewise.
20092 (vsx_ior<mode>3_32bit): Likewise.
20093 (vsx_ior<mode>3_64bit): Likewise.
20094 (vsx_xor<mode>3): Likewise.
20095 (vsx_xor<mode>3_32bit): Likewise.
20096 (vsx_xor<mode>3_64bit): Likewise.
20097 (vsx_one_cmpl<mode>2): Likewise.
20098 (vsx_one_cmpl<mode>2_32bit): Likewise.
20099 (vsx_one_cmpl<mode>2_64bit): Likewise.
20100 (vsx_nor<mode>3): Likewise.
20101 (vsx_nor<mode>3_32bit): Likewise.
20102 (vsx_nor<mode>3_64bit): Likewise.
20103 (vsx_andc<mode>3): Likewise.
20104 (vsx_andc<mode>3_32bit): Likewise.
20105 (vsx_andc<mode>3_64bit): Likewise.
20106 (vsx_eqv<mode>3_32bit): Add support for power8 xxleqv, xxlnand,
20107 and xxlorc instructions.
20108 (vsx_eqv<mode>3_64bit): Likewise.
20109 (vsx_nand<mode>3_32bit): Likewise.
20110 (vsx_nand<mode>3_64bit): Likewise.
20111 (vsx_orc<mode>3_32bit): Likewise.
20112 (vsx_orc<mode>3_64bit): Likewise.
20114 * config/rs6000/rs6000.h (VLOGICAL_REGNO_P): Update comment.
20116 * config/rs6000/altivec.md (UNSPEC_VGBBD): Add power8 vgbbd
20118 (p8_vmrgew): Add power8 vmrgew and vmrgow instructions.
20119 (p8_vmrgow): Likewise.
20120 (altivec_and<mode>3): Add clobber of CCmode to allow AND using
20121 GPRs to be split under VSX.
20122 (p8v_clz<mode>2): Add power8 count leading zero support.
20123 (p8v_popcount<mode>2): Add power8 population count support.
20124 (p8v_vgbbd): Add power8 gather bits by bytes by doubleword
20127 * config/rs6000/rs6000.md (eqv<mode>3): Add support for powerp eqv
20130 * config/rs6000/altivec.h (vec_eqv): Add defines to export power8
20132 (vec_nand): Likewise.
20133 (vec_vclz): Likewise.
20134 (vec_vclzb): Likewise.
20135 (vec_vclzd): Likewise.
20136 (vec_vclzh): Likewise.
20137 (vec_vclzw): Likewise.
20138 (vec_vgbbd): Likewise.
20139 (vec_vmrgew): Likewise.
20140 (vec_vmrgow): Likewise.
20141 (vec_vpopcnt): Likewise.
20142 (vec_vpopcntb): Likewise.
20143 (vec_vpopcntd): Likewise.
20144 (vec_vpopcnth): Likewise.
20145 (vec_vpopcntw): Likewise.
20147 2013-06-06 Vladimir Makarov <vmakarov@redhat.com>
20149 PR rtl-optimization/57468
20150 * config/i386/i386.c (inline_secondary_memory_needed): Ignore
20153 2013-06-06 Vladimir Makarov <vmakarov@redhat.com>
20155 PR rtl-optimization/57459
20156 * lra-constraints.c (update_ebb_live_info): Fix typo for operand
20157 type when setting live regs.
20159 2013-06-06 Vladimir Makarov <vmakarov@redhat.com>
20161 * config/s390/s390.opt (mlra): New option.
20162 * config/s390/s390.c (s390_decompose_address): Check displacement
20163 for all registers for LRA.
20164 (s390_secondary_reload): Don't used secondary reloads for LRA.
20165 (s390_lra_p): New function.
20166 (TARGET_LRA_P): Define.
20167 * config/s390/s390.md (*movmem_short, *clrmem_short): Change value
20168 of attribute cpu_facility to zarch for the last alternative.
20169 (*cmpmem_short): Ditto.
20171 2013-06-06 Eric Botcazou <ebotcazou@adacore.com>
20173 * config/arm/arm.c (arm_r3_live_at_start_p): New predicate.
20174 (arm_compute_static_chain_stack_bytes): Use it. Tidy up.
20175 (arm_expand_prologue): Likewise.
20177 2013-06-06 Teresa Johnson <tejohnson@google.com>
20180 * ifcvt.c (find_if_case_1): Replace BB_COPY_PARTITION with assert
20181 as this is now done by redirect_edge_and_branch_force.
20182 * function.c (thread_prologue_and_epilogue_insns): Insert new bb after
20183 barriers, and fix interaction with splitting.
20184 * emit-rtl.c (try_split): Copy REG_CROSSING_JUMP notes.
20185 * cfgcleanup.c (try_forward_edges): Fix early return value to properly
20186 reflect changes made in the routine.
20187 * bb-reorder.c (emit_barrier_after_bb): Move to cfgrtl.c.
20188 (fix_up_fall_thru_edges): Remove incorrect check for bb layout order
20189 since this is called in cfglayout mode, and replace partition fixup
20190 with assert as that is now done by force_nonfallthru_and_redirect.
20191 (add_reg_crossing_jump_notes): Handle the fact that some jumps may
20192 already be marked with region crossing note.
20193 (insert_section_boundary_note): Make non-static, gate on flag
20194 has_bb_partition, rewrite to also check for multiple partitions.
20195 (rest_of_handle_reorder_blocks): Remove call to
20196 insert_section_boundary_note, now done later during free_cfg.
20197 (duplicate_computed_gotos): Don't duplicate partition crossing edge.
20198 * bb-reorder.h (insert_section_boundary_note): Declare.
20199 * Makefile.in (cfgrtl.o): Depend on bb-reorder.h
20200 * cfgrtl.c (rest_of_pass_free_cfg): If partitions exist
20201 invoke insert_section_boundary_note.
20202 (try_redirect_by_replacing_jump): Remove unnecessary
20203 check for region crossing note.
20204 (fixup_partition_crossing): New function.
20205 (rtl_redirect_edge_and_branch): Fixup partition boundaries.
20206 (emit_barrier_after_bb): Move here from bb-reorder.c, handle insertion
20207 in non-cfglayout mode.
20208 (force_nonfallthru_and_redirect): Fixup partition boundaries,
20209 remove old code that tried to do this. Emit barrier correctly
20210 when we are in cfglayout mode.
20211 (last_bb_in_partition): New function.
20212 (rtl_split_edge): Correctly fixup partition boundaries.
20213 (commit_one_edge_insertion): Remove old code that tried to
20214 fixup region crossing edge since this is now handled in
20215 split_block, and set up insertion point correctly since
20216 block may now end in a jump.
20217 (verify_hot_cold_block_grouping): Guard against checking when not in
20218 linearized RTL mode.
20219 (rtl_verify_edges): Add checks for incorrect/missing REG_CROSSING_JUMP
20221 (rtl_verify_flow_info_1): Move verify_hot_cold_block_grouping to
20222 rtl_verify_flow_info, so not called in cfglayout mode.
20223 (rtl_verify_flow_info): Move verify_hot_cold_block_grouping here.
20224 (fixup_reorder_chain): Remove old code that attempted to fixup region
20225 crossing note as this is now handled in force_nonfallthru_and_redirect.
20226 (duplicate_insn_chain): Don't duplicate switch section notes.
20227 (rtl_can_remove_branch_p): Remove unnecessary check for region crossing
20229 * basic-block.h (emit_barrier_after_bb): Declare.
20231 2013-06-06 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
20233 * config/arm/arm-fixed.md (add<mode>3,usadd<mode>3,ssadd<mode>3,
20234 sub<mode>3, ussub<mode>3, sssub<mode>3, arm_ssatsihi_shift,
20235 arm_usatsihi): Adjust alternatives for arm_restrict_it.
20237 2013-06-06 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
20239 * config/arm/arm-ldmstm.ml: Set "predicable_short_it" to "no"
20241 * config/arm/ldmstm.md: Regenerate.
20243 2013-06-06 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
20245 * config/arm/sync.md (atomic_loaddi_1):
20246 Disable predication for arm_restrict_it.
20247 (arm_load_exclusive<mode>): Likewise.
20248 (arm_load_exclusivesi): Likewise.
20249 (arm_load_exclusivedi): Likewise.
20250 (arm_load_acquire_exclusive<mode>): Likewise.
20251 (arm_load_acquire_exclusivesi): Likewise.
20252 (arm_load_acquire_exclusivedi): Likewise.
20253 (arm_store_exclusive<mode>): Likewise.
20254 (arm_store_exclusive<mode>): Likewise.
20255 (arm_store_release_exclusivedi): Likewise.
20256 (arm_store_release_exclusive<mode>): Likewise.
20258 2013-06-06 Richard Biener <rguenther@suse.de>
20260 * lto-streamer.h (enum LTO_tags): Move LTO_tree_pickle_reference
20262 (lto_tag_is_tree_code_p): Adjust.
20263 (lto_tag_is_gimple_code_p): Likewise.
20264 (lto_gimple_code_to_tag): Likewise.
20265 (lto_tag_to_gimple_code): Likewise.
20266 (lto_tree_code_to_tag): Likewise.
20267 (lto_tag_to_tree_code): Likewise.
20268 * data-streamer.h (streamer_write_hwi_in_range): Use
20269 uhwi streaming to stream the normalized range.
20270 (streamer_read_hwi_in_range): Likewise.
20272 2013-06-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
20274 * config/arm/arm.md (enabled_for_depr_it): New attribute.
20275 (predicable_short_it): Likewise.
20276 (predicated): Likewise.
20277 (enabled): Handle above.
20278 (define_cond_exec): Set predicated attribute to yes.
20280 2013-06-05 Mike Stump <mikestump@comcast.net>
20282 * gdbinit.in (__FUNCTION__): Add.
20284 2013-06-05 Uros Bizjak <ubizjak@gmail.com>
20286 * config/alpha/alpha.c (alpha_emit_conditional_move): Swap all
20287 GE, GT, GEU and GTU compares, modulo DImode compares with zero.
20289 2013-06-05 Jan Hubicka <jh@suse.cz>
20291 * varasm.c (mark_decl_referenced): Revert the removal until targets
20294 2013-06-05 David Edelsohn <dje.gcc@gmail.com>
20296 * config/rs6000/rs6000.c (print_operand, 'z'): Use DECL_PRESERVE_P
20297 instead of mark_decl_referenced.
20299 2013-06-05 Jan Hubicka <jh@suse.cz>
20301 * cgraph.c (cgraph_remove_node): Clear forced_by_abi.
20302 (cgraph_node_cannot_be_local_p_1): Honnor symbol.forced_by_abi
20303 and symtab_used_from_object_file_p.
20304 (cgraph_make_node_local_1): Clear forced_by_abi.
20305 (cgraph_can_remove_if_no_direct_calls_and): Use forced_by_abi
20306 * cgraph.h (symtab_node_base): Add forced_by_abi.
20307 (decide_is_variable_needed): Remove.
20308 (varpool_can_remove_if_no_refs): Honnor symbol.forced_by_abi.
20309 * cgraphunit.c (cgraph_decide_is_function_needed): Rename to ..
20310 (decide_is_symbol_needed): ... this one; handle symbols in general;
20311 always analyze virtuals; honnor forced_by_abi.
20312 (cgraph_finalize_function): Update.
20313 (varpool_finalize_decl): Update.
20314 (symbol_defined_and_needed): Remove.
20315 (analyze_functions): Update.
20316 * lto-cgraph.c (lto_output_node, lto_output_varpool_node,
20317 output_refs, input_overwrite_node): Handle forced_by_abi.
20318 * ipa.c (cgraph_address_taken_from_non_vtable_p): Rename to ...
20319 (address_taken_from_non_vtable_p): ... this one.
20320 (comdat_can_be_unshared_p_1): New function.
20321 (cgraph_comdat_can_be_unshared_p): Rename to ...
20322 (comdat_can_be_unshared_p): ... this one; handle symbols in general.
20323 (varpool_externally_visible_p): Use comdat_can_be_unshared_p.
20324 (function_and_variable_visibility): Clear forced_by_abi as needed.
20325 * trans-mem.c (ipa_tm_mark_forced_by_abi_node): New functoin.
20326 (ipa_tm_create_version_alias, ipa_tm_create_version): Update.
20327 * symtab.c (dump_symtab_base): Dump forced_by_abi.
20328 * varpool.c (decide_is_variable_needed): Remove.
20330 2013-06-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
20332 * config/arm/arm.c (MAX_INSN_PER_IT_BLOCK): New macro.
20333 (arm_option_override): Override arm_restrict_it where appropriate.
20334 (thumb2_final_prescan_insn): Use MAX_INSN_PER_IT_BLOCK.
20335 * config/arm/arm.opt (mrestrict-it): New command-line option.
20336 * doc/invoke.texi: Document -mrestrict-it.
20338 2013-06-05 David Malcolm <dmalcolm@redhat.com>
20340 * tsan.c (tsan_atomic_table): Make const.
20342 2013-06-05 Richard Biener <rguenther@suse.de>
20344 * tree-streamer.c (streamer_tree_cache_insert_1): Update the
20345 index associated with the tree we are supposed to replace.
20346 * tree-streamer-out.c (pack_ts_base_value_fields): Output
20347 TREE_ASM_WRITTEN as zero for everything but SSA names.
20349 2013-06-05 David Malcolm <dmalcolm@redhat.com>
20351 * tree-ssa-structalias.c (call_stmt_vars): Make static.
20353 2013-06-04 Jan Hubicka <jh@suse.cz>
20355 * lto-cgraph.c (get_alias_symbol): Remove weakref sanity check.
20356 (input_node, input_varpool_node): Handle correctly external same
20358 * ipa.c (symtab_remove_unreachable_nodes): Do not remove external
20359 nodes at ltrans stage.
20361 2013-06-04 Jan Hubicka <jh@suse.cz>
20363 * ipa-inline.c (update_caller_keys): Fix availability test.
20364 (update_callee_keys): Likewise.
20365 * symtab.c (symtab_alias_ultimate_target): Make availaiblity logic
20366 to follow ELF standard.
20368 2013-06-04 Jürgen Urban <JuergenUrban@gmx.de>
20370 * config.gcc (mipsr5900-*-elf*, mipsr5900el-*-elf*, mips64r5900-*-elf*)
20371 (mips64r5900el-*-elf*): New configurations.
20372 * config/mips/mips-cpus.def (r5900): New processor.
20373 * config/mips/mips-tables.opt: Regenerate.
20374 * config/mips/mips.c (mips_rtx_cost_data): Add an R5900 entry.
20375 (mips_issue_rate): Handle PROCESSOR_R5900.
20376 (mips_reorg_process_insns): Force reorder mode for the R5900.
20377 * config/mips/mips.h (TARGET_MIPS5900): Define.
20378 (ISA_HAS_CONDMOVE, ISA_HAS_PREFETCH, ISA_HAS_HILO_INTERLOCKS): Include
20380 (ISA_HAS_LOAD_DELAY, ISA_HAS_XFER_DELAY, ISA_HAS_FCMP_DELAY): Exclude
20382 * config/mips/mips.md (processor): Add r5900.
20383 (MOVECC): Disallow CCmode conditions for TARGET_MIPS5900.
20385 2013-06-04 Ian Bolton <ian.bolton@arm.com>
20387 * config/aarch64/aarch64.md (*mov<mode>_aarch64): Call
20388 into function to generate MOVI instruction.
20389 * config/aarch64/aarch64.c (aarch64_simd_container_mode): New function.
20390 (aarch64_preferred_simd_mode): Turn into wrapper.
20391 (aarch64_output_scalar_simd_mov_immediate): New function.
20392 * config/aarch64/aarch64-protos.h: Add prototype for above.
20394 2013-06-04 Ian Bolton <ian.bolton@arm.com>
20396 * config/aarch64/aarch64.c (simd_immediate_info): Remove
20397 element_char member.
20398 (sizetochar): Return signed char.
20399 (aarch64_simd_valid_immediate): Remove elchar and other
20400 unnecessary variables.
20401 (aarch64_output_simd_mov_immediate): Take rtx instead of &rtx.
20402 Calculate element_char as required.
20403 * config/aarch64/aarch64-protos.h: Update and move prototype
20404 for aarch64_output_simd_mov_immediate.
20405 * config/aarch64/aarch64-simd.md (*aarch64_simd_mov<mode>):
20408 2013-06-04 Ian Bolton <ian.bolton@arm.com>
20410 * config/aarch64/aarch64.c (simd_immediate_info): Struct to hold
20411 information completed by aarch64_simd_valid_immediate.
20412 (aarch64_legitimate_constant_p): Update arguments.
20413 (aarch64_simd_valid_immediate): Work with struct rather than many
20415 (aarch64_simd_scalar_immediate_valid_for_move): Update arguments.
20416 (aarch64_simd_make_constant): Update arguments.
20417 (aarch64_output_simd_mov_immediate): Work with struct rather than
20418 many pointers. Output immediate directly rather than as operand.
20419 * config/aarch64/aarch64-protos.h (aarch64_simd_valid_immediate):
20421 * config/aarch64/constraints.md (Dn): Update arguments.
20423 2013-06-04 Ian Bolton <ian.bolton@arm.com>
20425 * config/aarch64/aarch64.c (aarch64_simd_valid_immediate): No
20427 (aarch64_simd_immediate_valid_for_move): Remove.
20428 (aarch64_simd_scalar_immediate_valid_for_move): Update call.
20429 (aarch64_simd_make_constant): Update call.
20430 (aarch64_output_simd_mov_immediate): Update call.
20431 * config/aarch64/aarch64-protos.h (aarch64_simd_valid_immediate):
20433 * config/aarch64/constraints.md (Dn): Update call.
20435 2013-06-04 Ian Bolton <ian.bolton@arm.com>
20437 * config/aarch64/aarch64.c (aarch64_simd_valid_immediate): Change
20438 return type to bool for prototype.
20439 (aarch64_legitimate_constant_p): Check for true instead of not -1.
20440 (aarch64_simd_valid_immediate): Fix up each return to return a bool.
20441 (aarch64_simd_immediate_valid_for_move): Update retval for bool.
20443 2013-06-04 Catherine Moore <clm@codesourcery.com>
20445 * config/mips/mips.opt (meva): New.
20446 * config/mips/mips.h (TARGET_CPU_CPP_BUILTINS): Define __mips_eva.
20447 (ASM_SPEC): Handle -meva.
20448 * doc/invoke.texi (meva): Document.
20450 2013-06-04 Alan Modra <amodra@gmail.com>
20452 * config/rs6000/rs6000.c (output_toc): Correct little-endian float
20455 2013-06-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
20457 * rtl.def: Add extra fourth optional field to define_cond_exec.
20458 * gensupport.c (process_one_cond_exec): Process attributes from
20460 * doc/md.texi: Document fourth field in define_cond_exec.
20462 2013-06-04 Eric Botcazou <ebotcazou@adacore.com>
20464 * expmed.c (extract_bit_field_1): In the larger-than-a-word case, factor
20465 out the processing order as in store_bit_field_1.
20467 2013-06-04 Jan Hubicka <jh@suse.cz>
20469 PR middle-end/57500
20470 * cgraphunit.c (cgraph_process_same_body_aliases): Create
20471 non-VAR_DECL node if it does not exist yet.
20473 2013-06-03 Richard Sandiford <rdsandiford@googlemail.com>
20475 * config.gcc (mipsisa64sr71k-*-elf*, mipsisa64sb1-*-elf*)
20476 (mipsisa64sb1el-*-elf*, mips64-*-elf*, mips64el-*-elf*)
20477 (mips64orion-*-elf*, mips64orionel-*-elf*): Remove
20478 target_cpu_default setting.
20480 2013-06-03 Teresa Johnson <tejohnson@google.com>
20482 * dumpfile.c (opt_info_switch_p): Change -fopt-info
20483 default to -fopt-info=optimized instead of all.
20484 * doc/invoke.texi: Ditto.
20485 * tree-vectorizer.c (vectorize_loops): Emit loop vectorization
20486 success under MSG_OPTIMIZED_LOCATIONS, and use dump_printf_loc.
20487 (execute_vect_slp): Emit BB vectorization success under
20488 MSG_OPTIMIZED_LOCATIONS.
20489 * tree-vect-slp.c (vect_slp_transform_bb): Change
20490 MSG_OPTIMIZED_LOCATIONS to MSG_NOTE.
20491 * tree-vect-loop.c (vect_transform_loop): Ditto.
20493 2013-06-03 Jason Merrill <jason@redhat.com>
20496 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
20497 Use TARGET_EXPR for C++.
20499 2013-06-03 Jakub Jelinek <jakub@redhat.com>
20501 PR rtl-optimization/57268
20502 * sched-deps.c (sched_analyze_2): Don't flush_pending_lists
20503 if DEBUG_INSN_P (insn).
20506 2013-05-31 Dinar Temirbulatov <dinar@kugelworks.com>
20508 PR rtl-optimization/57268
20509 * sched-deps.c (sched_analyze_2): Flush dependence lists if
20510 the sum of the read and write lists exceeds MAX_PENDING_LIST_LENGTH.
20512 2013-06-03 Yuri Rumyantsev <yuri.s.rumyantsev@intel.com>
20514 * config/i386/i386.c (ix86_lea_outperforms): Fix formatting.
20515 (ix86_avoid_lea_for_addr): Likewise.
20516 (exact_dependency_1): Likewise.
20517 (ix86_adjust_cost): Likewise.
20518 (swap_top_of_ready_list): Fix formatting and !reload_completed check
20520 (do_reorder_for_imul): Fix typo, formatting and
20521 !reload_completed check removed.
20522 (ix86_sched_reorder): Fix typo and formatting.
20523 (fold_builtin_cpu): Move M_INTEL_SLM at the end of processor types
20526 2013-06-03 Sofiane Naci <sofiane.naci@arm.com>
20528 * config/aarch64/aarch64.md (*movdi_aarch64): Define "simd" attribute.
20530 2013-06-03 Eric Botcazou <ebotcazou@adacore.com>
20532 * varasm.c (output_constant) <CONSTRUCTOR>: Minor formatting tweak.
20533 <STRING_CST>: Likewise.
20534 <VECTOR_CST>: Likewise.
20536 2013-06-01 Janus Weil <janus@gcc.gnu.org>
20537 Mikael Morin <mikael@gcc.gnu.org>
20539 * configure.ac: Add AC_HEADER_TIOCGWINSZ macro.
20540 * config.in: Regenerated.
20541 * configure: Regenerated.
20543 2013-06-01 Jan Hubicka <jh@suse.cz>
20545 PR middle-end/57366
20546 * cgraphunit.c (compile): When weakref is not supported,
20547 set up transparent aliases before final output pass.
20548 * varasm.c (assemble_alias): Do not try to do it here.
20550 2013-06-01 Jan Hubicka <jh@suse.cz>
20552 PR middle-end/57467
20553 * passes.c (for_per_function): Skip unanalyzed functions.
20555 2013-06-01 Jan Hubicka <jh@suse.cz>
20557 * lto-symtab.c (lto_symtab_merge_cgraph_nodes_1): Rename to ...
20558 (lto_symtab_merge_symbols_1): ... this one.
20559 (lto_symtab_merge_cgraph_nodes): Rename to ...
20560 (lto_symtab_merge_symbols): ... this one; simplify.
20561 * cgraph.c (same_body_aliases_done): Rename to ...
20562 (cpp_implicit_aliases_done): ... this one.
20563 (cgraph_create_function_alias): Update.
20564 (cgraph_same_body_alias): Update.
20565 (dump_cgraph_node): Remove alias dumping; simplify thunk dumping.
20566 (verify_edge_corresponds_to_fndecl): Simplify.
20567 * cgraph.h (symtab_node_base): Add cpp_implicit_alias, alias_target.
20568 (cgraph_node): Remove same_body_alias.
20569 (varpool_node): Remove alias_of and extra_name_alias.
20570 (same_body_aliases_done): Rename to ..
20571 (cpp_implicit_aliases_done): ... this one.
20572 (symtab_alias_ultimate_target): Add default parameter.
20573 (symtab_resolve_alias): New function.
20574 (fixup_same_cpp_alias_visibility): Declare.
20575 (cgraph_function_node): Add default parameter.
20576 (cgraph_node_asm_name): Likewise.
20577 (cgraph_function_or_thunk_node): Add default parameter; do
20578 not ICE when it is NULL.
20579 (varpool_variable_node): Likewise.
20580 * tree-emutls.c (create_emultls_var): Update.
20581 (ipa_lower_emutls): Update.
20582 * cgraphunit.c (cgraph_decide_is_function_needed): Update.
20583 (cgraph_reset_node): Reset alias info.
20584 (cgraph_finalize_function): Update.
20585 (fixup_same_cpp_alias_visibility): Move to symtab.c.
20586 (analyze_function): Simplify.
20587 (cgraph_process_same_body_aliases): Simplify.
20588 (analyze_functions): Fixup same body aliases.
20589 (handle_alias_pairs): Simplify.
20590 (assemble_thunk): Update.
20591 (assemble_thunks_and_aliases): Update.
20592 (output_weakrefs): Rewrite.
20593 * lto-cgraph.c (lto_output_node): Rewrite alias handling.
20594 (lto_output_varpool_node): Likewise.
20595 (compute_ltrans_boundary): Remve assert.
20596 (get_alias_symbol): New functoin.
20597 (input_node): Rewrite alias handling.
20598 (input_varpool_node): Likewise.
20599 * ipa-pure-const.c (propagate_pure_const): Fix formating.
20600 * ipa.c (process_references): Handle weakrefs correctly.
20601 (symtab_remove_unreachable_nodes): Likewise.
20602 * trans-mem.c (get_cg_data): Update.
20603 (ipa_tm_create_version_alias): Update.
20604 (ipa_tm_execute): Update.
20605 * symtab.c (dump_symtab_base): Dump aliases.
20606 (verify_symtab_base): Verify aliases.
20607 (symtab_node_availability): New function.
20608 (symtab_alias_ultimate_target): Simplify.
20609 (fixup_same_cpp_alias_visibility): Move here from cgraphunit.c;
20610 handle all the fixup cases.
20611 (symtab_resolve_alias): New function.
20612 * passes.c (ipa_write_summaries): Handle weakrefs.
20613 * varpool.c (varpool_analyze_node): Simplify.
20614 (assemble_aliases): Update.
20615 (varpool_create_variable_alias): Simplify.
20616 (varpool_extra_name_alias): Simplify.
20617 * lto-streamer.h (lto_symtab_merge_cgraph_nodes): Rename to...
20618 (lto_symtab_merge_symbols): ... this one.
20620 2013-06-01 Dinar Temirbulatov <dinar@kugelworks.com>
20623 PR rtl-optimization/57268
20624 * sched-deps.c (sched_analyze_2): Flush dependence lists if
20625 the sum of the read and write lists exceeds MAX_PENDING_LIST_LENGTH.
20627 2013-06-01 Tobias Burnus <burnus@net-b.de>
20629 Partially reverted:
20630 2013-05-31 Tobias Burnus <burnus@net-b.de>
20632 PR middle-end/57073
20633 * tree-ssa-math-opts.c (execute_cse_sincos): Move check
20636 2013-05-31 Dinar Temirbulatov <dinar@kugelworks.com>
20638 PR rtl-optimization/57268
20639 * sched-deps.c (sched_analyze_2): Flush dependence lists if
20640 the sum of the read and write lists exceeds MAX_PENDING_LIST_LENGTH.
20642 2013-05-31 Eric Botcazou <ebotcazou@adacore.com>
20644 * config/rs6000/predicates.md (rs6000_cbranch_operator): Accept some
20645 unordered comparison operators when -fno-trapping-math is in effect
20647 * config/rs6000/rs6000.c (rs6000_generate_compare): Remove dead code
20648 and implement unordered comparison operators properly on the e500.
20650 2013-05-31 Eric Botcazou <ebotcazou@adacore.com>
20652 * simplify-rtx.c (simplify_byte_swapping_operation): Use proper macro
20653 for constant scalar integers.
20654 (simplify_relational_operation_1): Likewise.
20656 2013-05-31 Segher Boessenkool <segher@kernel.crashing.org>
20658 * config/rs6000/rs6000-opts.h (enum processor_type): Reorder.
20659 * config/rs6000/rs6000.md (cpu): Reorder. Split long line.
20662 2013-05-31 Yuri Rumyantsev <yuri.s.rumyantsev@intel.com>
20663 Igor Zamyatin <igor.zamyatin@intel.com>
20665 Silvermont (SLM) architecture performance tuning.
20666 * config/i386/i386.h (enum ix86_tune_indices): Add
20667 X86_TUNE_SPLIT_MEM_OPND_FOR_FP_CONVERTS.
20668 (TARGET_SPLIT_MEM_OPND_FOR_FP_CONVERTS): New define.
20670 * config/i386/i386.c (initial_ix86_tune_features)
20671 <X86_TUNE_SPLIT_MEM_OPND_FOR_FP_CONVERTS>: Initialize.
20672 (ix86_lea_outperforms): Handle Silvermont tuning.
20673 (ix86_avoid_lea_for_add): Add new argument to ix86_lea_outperforms
20675 (ix86_use_lea_for_mov): Likewise.
20676 (ix86_avoid_lea_for_addr): Likewise.
20677 (ix86_lea_for_add_ok): Likewise.
20678 (exact_dependency_1): New function.
20679 (exact_store_load_dependency): Likewise.
20680 (ix86_adjust_cost): Handle Silvermont tuning.
20681 (do_reoder_for_imul): Likewise.
20682 (swap_top_of_ready_list): New function.
20683 (ix86_sched_reorder): Changed to handle Silvermont tuning.
20685 * config/i386/i386.md (peepholes that split memory operand in fp
20688 2013-05-31 Marcus Shawcroft <marcus.shawcroft@arm.com>
20690 * config/aarch64/aarch64.c (aarch64_load_symref_appropriately):
20691 Remove un-necessary braces.
20693 2013-05-31 Marcus Shawcroft <marcus.shawcroft@arm.com>
20695 * config/aarch64/aarch64.c (aarch64_classify_symbol):
20696 Use SYMBOL_TINY_ABSOLUTE for AARCH64_CMODEL_TINY_PIC.
20698 2013-05-31 Tobias Burnus <burnus@net-b.de>
20700 PR middle-end/57073
20701 * tree-ssa-math-opts.c (execute_cse_sincos): Move check further up.
20703 2013-05-31 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
20706 * config/arm/arm.c (const_ok_for_dimode_op): Handle IOR.
20707 * config/arm/arm.md (*iordi3_insn): Change to insn_and_split.
20708 * config/arm/neon.md (iordi3_neon): Remove.
20709 (neon_vorr<mode>): Generate iordi3 instead of iordi3_neon.
20710 * config/arm/predicates.md (imm_for_neon_logic_operand):
20711 Move to earlier in the file.
20712 (neon_logic_op2): Likewise.
20713 (arm_iordi_operand_neon): New predicate.
20715 2013-05-31 Richard Biener <rguenther@suse.de>
20717 PR tree-optimization/57478
20718 PR tree-optimization/57453
20719 * tree-vect-slp.c (vect_bb_slp_scalar_cost): Uses in PHI nodes
20722 2013-05-31 Kaushik Phatak <kaushik.phatak@kpitcummins.com>
20724 * config/rl78/rl78.md (mulqi3,mulhi3): New define_expands.
20725 (*mulqi3_rl78,*mulhi3_rl78,*mulhi3_g13): New define_insns.
20727 2013-05-30 Tobias Burnus <burnus@net-b.de>
20728 Thomas Koenig <tkoenig@gcc.gnu.org>
20730 PR middle-end/57073
20731 * tree-ssa-math-opts.c (execute_cse_sincos): Optimize
20732 powi (-1.0, k) to (k & 1) ? -1.0 : 1.0.
20734 2013-05-30 Steven Bosscher <steven@gcc.gnu.org>
20736 * rtlanal.c (tablejump_p): Expect table and label to be adjacent.
20738 2013-05-30 Vladimir Makarov <vmakarov@redhat.com>
20740 * target.def (register_usage_leveling_p): New hook.
20741 * targhooks.c (default_register_usage_leveling_p): New.
20742 * targhooks.h (default_register_usage_leveling_p): New prototype.
20743 * lra-assigns.c (register_usage_leveling_p): Use the hook.
20744 * doc/tm.texi.in (TARGET_REGISTER_USAGE_LEVELING_P): New hook.
20745 * doc/tm.texi: Update.
20746 * config/i386/i386.c (TARGET_REGISTER_USAGE_LEVELING_P): Define.
20748 2013-05-30 Ian Bolton <ian.bolton@arm.com>
20750 * config/aarch64/aarch64.md (insv<mode>): New define_expand.
20751 (*insv_reg<mode>): New define_insn.
20753 2013-05-30 Joern Rennecke <joern.rennecke@embecosm.com>
20755 PR rtl-optimization/57439
20756 * postreload.c (move2add_valid_value_p): Check that we have
20757 a zero subreg_regno_offset when accessing the register in
20758 the requested mode.
20760 2013-05-30 Yuri Rumyantsev <yuri.s.rumyantsev@intel.com>
20761 Igor Zamyatin <igor.zamyatin@intel.com>
20763 Silvermont (SLM) architecture pipeline model, tuning and
20765 * config.gcc: Add slm config options and target.
20767 * config/i386/slm.md: New.
20769 * config/i386/driver-i386.c (host_detect_local_cpu): Check movbe.
20771 * config/i386/i386-c.c (ix86_target_macros_internal): New case
20773 (ix86_target_macros_internal): Likewise.
20775 * config/i386/i386.c (slm_cost): New cost.
20776 (m_SLM): New macro flag.
20777 (initial_ix86_tune_features): Set m_SLM.
20778 (x86_accumulate_outgoing_args): Likewise.
20779 (x86_arch_always_fancy_math_387): Likewise.
20780 (processor_target_table): Add slm cost.
20781 (cpu_names): Add slm cpu name.
20782 (x86_option_override_internal): Set SLM ISA.
20783 (ix86_issue_rate): New case PROCESSOR_SLM.
20784 (ia32_multipass_dfa_lookahead): Likewise.
20785 (fold_builtin_cpu): Add slm.
20787 * config/i386/i386.h (TARGET_SLM): New target macro.
20788 (target_cpu_default): Add TARGET_CPU_DEFAULT_slm.
20789 (processor_type): Add PROCESSOR_SLM.
20791 * config/i386/i386.md (cpu): Add new value "slm".
20792 (slm.md): Include slm.md.
20794 2013-05-30 Bernd Schmidt <bernds@codesourcery.com>
20795 Zhenqiang Chen <zhenqiang.chen@linaro.org>
20797 * config/arm/arm-protos.h: Add and update function protos.
20798 * config/arm/arm.c (use_simple_return_p): New added.
20799 (thumb2_expand_return): Check simple_return flag.
20800 * config/arm/arm.md: Add simple_return and conditional simple_return.
20801 * config/arm/iterators.md: Add iterator for return and simple_return.
20803 2013-05-30 Zhenqiang Chen <zhenqiang.chen@linaro.org>
20805 * config/arm/arm.c (arm_add_cfa_adjust_cfa_note): New added.
20806 (arm_emit_multi_reg_pop): Add REG_CFA_ADJUST_CFA notes.
20807 (arm_emit_vfp_multi_reg_pop): Likewise.
20808 (thumb2_emit_ldrd_pop): Likewise.
20809 (arm_expand_epilogue): Add misc REG_CFA notes.
20810 (arm_unwind_emit): Skip REG_CFA_ADJUST_CFA and REG_CFA_RESTORE.
20812 2013-05-29 Lawrence Crowl <crowl@google.com>
20814 * config/arm/t-arm: Update for below.
20816 * config/arm/arm.c (arm_libcall_uses_aapcs_base::libcall_htab):
20817 Change type to hash_table. Update dependent calls and types.
20819 * config/i386/t-cygming: Update for below.
20821 * config/i386/t-interix: Update for below.
20823 * config/i386/winnt.c (i386_pe_section_type_flags::htab):
20824 Change type to hash_table. Update dependent calls and types.
20825 (i386_find_on_wrapper_list::wrappers): Likewise.
20827 * config/ia64/t-ia64: Update for below.
20829 * config/ia64/ia64.c (bundle_state_table):
20830 Change type to hash_table. Update dependent calls and types.
20832 * config/mips/mips.c (mips_reorg_process_insns::htab):
20833 Change type to hash_table. Update dependent calls and types.
20835 * config/sol2.c (solaris_comdat_htab):
20836 Change type to hash_table. Update dependent calls and types.
20838 * config/t-sol2: Update for above.
20840 2013-05-29 Teresa Johnson <tejohnson@google.com>
20842 * passes.c (dump_passes): Use FOR_EACH_FUNCTION since
20843 functions are not yet marked as defined.
20845 2013-05-29 Michael Meissner <meissner@linux.vnet.ibm.com>
20846 Pat Haugen <pthaugen@us.ibm.com>
20847 Peter Bergner <bergner@vnet.ibm.com>
20849 * config/rs6000/vector.md (VEC_I): Add support for new power8 V2DI
20853 (vrotl<mode>3): Likewise.
20854 (vashl<mode>3): Likewise.
20855 (vlshr<mode>3): Likewise.
20856 (vashr<mode>3): Likewise.
20858 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
20859 support for power8 V2DI builtins.
20861 * config/rs6000/rs6000-builtin.def (abs_v2di): Add support for
20862 power8 V2DI builtins.
20863 (vupkhsw): Likewise.
20864 (vupklsw): Likewise.
20865 (vaddudm): Likewise.
20866 (vminsd): Likewise.
20867 (vmaxsd): Likewise.
20868 (vminud): Likewise.
20869 (vmaxud): Likewise.
20870 (vpkudum): Likewise.
20871 (vpksdss): Likewise.
20872 (vpkudus): Likewise.
20873 (vpksdus): Likewise.
20878 (vsubudm): Likewise.
20879 (vcmpequd): Likewise.
20880 (vcmpgtsd): Likewise.
20881 (vcmpgtud): Likewise.
20882 (vcmpequd_p): Likewise.
20883 (vcmpgtsd_p): Likewise.
20884 (vcmpgtud_p): Likewise.
20885 (vupkhsw): Likewise.
20886 (vupklsw): Likewise.
20887 (vaddudm): Likewise.
20888 (vmaxsd): Likewise.
20889 (vmaxud): Likewise.
20890 (vminsd): Likewise.
20891 (vminud): Likewise.
20892 (vpksdss): Likewise.
20893 (vpksdus): Likewise.
20894 (vpkudum): Likewise.
20895 (vpkudus): Likewise.
20900 (vsubudm): Likewise.
20902 * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Add
20903 support for power8 V2DI instructions.
20905 * config/rs6000/altivec.md (UNSPEC_VPKUHUM): Add support for
20906 power8 V2DI instructions. Combine pack and unpack insns to use an
20907 iterator for each mode. Check whether a particular mode supports
20908 Altivec instructions instead of just checking TARGET_ALTIVEC.
20909 (UNSPEC_VPKUWUM): Likewise.
20910 (UNSPEC_VPKSHSS): Likewise.
20911 (UNSPEC_VPKSWSS): Likewise.
20912 (UNSPEC_VPKUHUS): Likewise.
20913 (UNSPEC_VPKSHUS): Likewise.
20914 (UNSPEC_VPKUWUS): Likewise.
20915 (UNSPEC_VPKSWUS): Likewise.
20916 (UNSPEC_VPACK_SIGN_SIGN_SAT): Likewise.
20917 (UNSPEC_VPACK_SIGN_UNS_SAT): Likewise.
20918 (UNSPEC_VPACK_UNS_UNS_SAT): Likewise.
20919 (UNSPEC_VPACK_UNS_UNS_MOD): Likewise.
20920 (UNSPEC_VUPKHSB): Likewise.
20921 (UNSPEC_VUNPACK_HI_SIGN): Likewise.
20922 (UNSPEC_VUNPACK_LO_SIGN): Likewise.
20923 (UNSPEC_VUPKHSH): Likewise.
20924 (UNSPEC_VUPKLSB): Likewise.
20925 (UNSPEC_VUPKLSH): Likewise.
20927 (VI_char): Likewise.
20928 (VI_scalar): Likewise.
20929 (VI_unit): Likewise.
20931 (VP_small): Likewise.
20932 (VP_small_lc): Likewise.
20933 (VU_char): Likewise.
20934 (add<mode>3): Likewise.
20935 (altivec_vaddcuw): Likewise.
20936 (altivec_vaddu<VI_char>s): Likewise.
20937 (altivec_vadds<VI_char>s): Likewise.
20938 (sub<mode>3): Likewise.
20939 (altivec_vsubcuw): Likewise.
20940 (altivec_vsubu<VI_char>s): Likewise.
20941 (altivec_vsubs<VI_char>s): Likewise.
20942 (altivec_vavgs<VI_char>): Likewise.
20943 (altivec_vcmpbfp): Likewise.
20944 (altivec_eq<mode>): Likewise.
20945 (altivec_gt<mode>): Likewise.
20946 (altivec_gtu<mode>): Likewise.
20947 (umax<mode>3): Likewise.
20948 (smax<mode>3): Likewise.
20949 (umin<mode>3): Likewise.
20950 (smin<mode>3): Likewise.
20951 (altivec_vpkuhum): Likewise.
20952 (altivec_vpkuwum): Likewise.
20953 (altivec_vpkshss): Likewise.
20954 (altivec_vpkswss): Likewise.
20955 (altivec_vpkuhus): Likewise.
20956 (altivec_vpkshus): Likewise.
20957 (altivec_vpkuwus): Likewise.
20958 (altivec_vpkswus): Likewise.
20959 (altivec_vpks<VI_char>ss): Likewise.
20960 (altivec_vpks<VI_char>us): Likewise.
20961 (altivec_vpku<VI_char>us): Likewise.
20962 (altivec_vpku<VI_char>um): Likewise.
20963 (altivec_vrl<VI_char>): Likewise.
20964 (altivec_vsl<VI_char>): Likewise.
20965 (altivec_vsr<VI_char>): Likewise.
20966 (altivec_vsra<VI_char>): Likewise.
20967 (altivec_vsldoi_<mode>): Likewise.
20968 (altivec_vupkhsb): Likewise.
20969 (altivec_vupkhs<VU_char>): Likewise.
20970 (altivec_vupkls<VU_char>): Likewise.
20971 (altivec_vupkhsh): Likewise.
20972 (altivec_vupklsb): Likewise.
20973 (altivec_vupklsh): Likewise.
20974 (altivec_vcmpequ<VI_char>_p): Likewise.
20975 (altivec_vcmpgts<VI_char>_p): Likewise.
20976 (altivec_vcmpgtu<VI_char>_p): Likewise.
20977 (abs<mode>2): Likewise.
20978 (vec_unpacks_hi_v16qi): Likewise.
20979 (vec_unpacks_hi_v8hi): Likewise.
20980 (vec_unpacks_lo_v16qi): Likewise.
20981 (vec_unpacks_hi_<VP_small_lc>): Likewise.
20982 (vec_unpacks_lo_v8hi): Likewise.
20983 (vec_unpacks_lo_<VP_small_lc>): Likewise.
20984 (vec_pack_trunc_v8h): Likewise.
20985 (vec_pack_trunc_v4si): Likewise.
20986 (vec_pack_trunc_<mode>): Likewise.
20988 * config/rs6000/altivec.h (vec_vaddudm): Add defines for power8
20990 (vec_vmaxsd): Likewise.
20991 (vec_vmaxud): Likewise.
20992 (vec_vminsd): Likewise.
20993 (vec_vminud): Likewise.
20994 (vec_vpksdss): Likewise.
20995 (vec_vpksdus): Likewise.
20996 (vec_vpkudum): Likewise.
20997 (vec_vpkudus): Likewise.
20998 (vec_vrld): Likewise.
20999 (vec_vsld): Likewise.
21000 (vec_vsrad): Likewise.
21001 (vec_vsrd): Likewise.
21002 (vec_vsubudm): Likewise.
21003 (vec_vupkhsw): Likewise.
21004 (vec_vupklsw): Likewise.
21006 2013-05-29 Jan Hubicka <jh@suse.cz>
21008 * cgraph.h (symtab_node_base): Add definition, alias and analyzed
21009 flags; reorder rest of fields in more consistent way.
21010 (varpool_node): Remove analyzed, finalized and alias.
21011 (cgraph_ndoe): Likewise.
21012 (symtab_alias_ultimate_target): New function.
21013 (cgraph_function_node): Move offline.
21014 (cgraph_reset_node): Declare.
21015 (cgraph_comdat_can_be_unshared_p): Remove.
21016 (varpool_remove_initializer): Declare.
21017 (varpool_first_defined_variable, varpool_next_defined_variable
21018 cgraph_first_defined_function, cgraph_next_defined_function): Update.
21019 (cgraph_function_with_gimple_body_p): Update.
21020 (varpool_all_refs_explicit_p): Update.
21021 (symtab_alias_target): New function.
21022 (cgraph_alias_aliased_node, varpool_alias_aliased_node): Rename to ...
21023 (cgraph_alias_target, varpool_alias_target): .. this one; simplify.
21024 (cgraph_function_or_thunk_node): Simplify using
21025 symtab_alias_ultimate_target.
21026 (varpool_variable_node): Likewise.
21027 * cgraph.c (cgraph_create_function_alias): Update.
21028 (cgraph_add_thunk): Update.
21029 (cgraph_remove_node): Update.
21030 (dump_cgraph_node): Do not dump removed flags.
21031 (cgraph_function_body_availability): Update.
21032 (cgraph_propagate_frequency): Update.
21033 (verify_cgraph_node): Check sanity of local flag.
21034 (cgraph_function_node): Move here from cgraph.h; revamp for
21035 cgraph_function_or_thunk_node.
21036 * lto-symtab.c (lto_varpool_replace_node): Update.
21037 (lto_symtab_resolve_can_prevail_p): Update.
21038 (lto_symtab_merge_cgraph_nodes): Update.
21039 * ipa-cp.c (determine_versionability, initialize_node_lattices,
21040 propagate_constants_accross_call, devirtualization_time_bonus,
21041 ipcp_propagate_stage): Update.
21042 * tree-emutls.c (create_emultls_var, ipa_lower_emutls): Update.
21043 * ipa-inline-transform.c (clone_inlined_nodes,
21044 preserve_function_body_p): Update.
21045 * ipa-reference.c (propagate): Update.
21046 (write_node_summary_p): Update.
21047 * toplev.c (wrapup_global_declaration_2): Update.
21048 * cgraphunit.c (cgraph_analyze_function): Rename to ...
21049 (analyze_function) ... this one.
21050 (cgraph_process_new_functions): Update.
21051 (cgraph_reset_node): Export.
21052 (cgraph_finalize_function): Update.
21053 (cgraph_add_new_function): Update.
21054 (process_function_and_variable_attributes): Update.
21055 (varpool_finalize_decl): Update.
21056 (symbol_finalized): Remove.
21057 (symbol_finalized_and_needed): Rename to ...
21058 (symbol_defined_and_needed): ... update.
21059 (cgraph_analyze_functions): Update.
21060 (handle_alias_pairs): Update.
21061 (mark_functions_to_output): Update.
21062 (assemble_thunk): Update.
21063 (output_in_order): Update.
21064 (output_weakrefs): Update.
21065 (finalize_compilation_unit): Update.
21066 * lto-cgraph.c (reachable_from_other_partition_p, lto_output_node,
21067 lto_output_varpool_node, compute_ltrans_boundary, input_overwrite_node,
21068 input_node, input_varpool_node): Update.
21069 * dbxout.c (dbxout_expand_expr): Update.
21070 * cgraphclones.c (cgraph_clone_node): Update.
21071 (cgraph_copy_node_for_versioning): Update.
21072 (cgraph_materialize_clone): Update.
21073 (cgraph_materialize_all_clones): Update.
21074 * ipa-pure-const.c (analyze_function, pure_const_write_summary,
21075 propagate_pure_const, propagate_nothrow): Update.
21076 * lto-streamer-out.c (lto_output, write_symbol): Update.
21077 * ipa-utils.c (ipa_reverse_postorder): Update.
21078 * ipa-inline.c (can_inline_edge_p): Update.
21079 (update_caller_keys, ipa_inline): Update.
21080 * dwarf2out.c (reference_to_unused,
21081 premark_types_used_by_global_vars_helper): Update.
21082 * tree-eh.c (tree_could_trap_p): Update.
21083 * ipa-split.c (consider_split, execute_split_functions): Update.
21084 * ipa.c (cgraph_non_local_node_p_1, cgraph_local_node_p,
21085 has_addr_references_p): Update; move ahead in file for better
21087 (process_references): Simplify.
21088 (symtab_remove_unreachable_nodes): Update; cleanup way function/var
21089 bodies are removed.
21090 (cgraph_comdat_can_be_unshared_p): Make static.
21091 (cgraph_externally_visible_p): Update.
21092 (varpool_externally_visible_p): Update.
21093 (function_and_variable_visibility): Update.
21094 * trans-mem.c (get_cg_data, ipa_tm_mayenterirr_function,
21095 ipa_tm_mark_force_output_node): Update.
21096 * ipa-inline-analysis.c (dump_inline_summary, initialize_inline_failed,
21097 estimate_edge_devirt_benefit, inline_generate_summary,
21098 inline_write_summary): Update.
21099 * gimple-fold.c (can_refer_decl_in_current_unit_p): Update.
21100 * ipa-prop.c (ipa_compute_jump_functions): Update.
21101 (ipa_print_node_params, ipa_prop_read_section,
21102 ipa_update_after_lto_read, read_replacements_section): Update.
21103 * varasm.c (mark_decl_referenced): Update.
21104 (assemble_alias, dump_tm_clone_pairs): Update.
21105 * tree-inline.c (copy_bb): Update.
21106 (estimate_num_insns, optimize_inline_calls, tree_function_versioning):
21108 * symtab.c (dump_symtab_base): Print new flags.
21109 (verify_symtab_base): Verify new flags.
21110 (symtab_alias_ultimate_target): New function.
21111 * tree-ssa-structalias.c (get_constraint_for_ssa_var,
21112 create_variable_info_for, associate_varinfo_to_alias, ipa_pta_execute):
21114 * passes.c (ipa_write_summaries, ipa_write_optimization_summaries):
21116 * i386.c (ix86_get_function_versions_dispatcher,
21117 ix86_generate_version_dispatcher_body): Update.
21118 (fold_builtin_cpu): Use varpool_add_new_variable.
21119 * varpool.c (varpool_remove_initializer): Break out from ...
21120 (varpool_remove_node): ... this one.
21121 (dump_varpool_node, varpool_node_for_asm,
21122 cgraph_variable_initializer_availability, varpool_analyze_node,
21123 varpool_assemble_decl, varpool_remove_unreferenced_decls,
21124 varpool_finalize_named_section_flags, varpool_create_variable_alias):
21127 2013-05-29 Jan Hubicka <jh@suse.cz>
21129 * passes.c (init_optimization_passes): Move OMP expansion into lowering.
21131 2013-05-29 Easwaran Raman <eraman@google.com>
21133 PR tree-optimization/57442
21134 * tree-ssa-reassoc.c (appears_later_in_bb): Return correct value
21135 when control exits the main loop.
21137 2013-05-29 Sandeep Kumar Singh <Sandeep.Singh2@kpitcummins.com>
21139 * rx/rx.h (TARGET_CPU_CPP_BUILTINS): Add macros for RX100, RX200,
21141 * rx/rx.opt: Add macro for rx100 with string rx100 and value RX100.
21142 * rx/rx-opts.h (rx_cpu_types): Add new cpu type rx100.
21143 * rx/t-rx: Add rx100 under multi library matches option for nofpu
21146 2013-05-29 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
21148 PR tree-optimization/57441
21149 * gimple-ssa-strength-reduction.c (analyze_candidates_and_replace):
21150 Don't limit size of incr_vec to number of candidates.
21152 2013-05-29 Steve Ellcey <sellcey@imgtec.com>
21154 * config/mips/mti-linux.h (SYSROOT_SUFFIX_SPEC): Add micromips
21155 and mips16 directories.
21156 * config/mips/t-mti-linux (MULTILIB_OPTIONS): Add micromips and mips16.
21157 (MULTILIB_DIRNAMES): Ditto.
21158 (MULTILIB_EXCEPTIONS): Add new exceptions.
21159 * config/mips/t-mti-elf (MULTILIB_OPTIONS): Add micromips.
21160 (MULTILIB_DIRNAMES): Ditto.
21161 (MULTILIB_EXCEPTIONS): Add new exceptions.
21163 2012-05-29 Chris Schlumberger-Socha <chris.schlumberger-socha@arm.com>
21164 Marcus Shawcroft <marcus.shawcroft@arm.com>
21166 * config/aarch64/aarch64-protos.h (aarch64_symbol_type): Define
21167 SYMBOL_TINY_ABSOLUTE.
21168 * config/aarch64/aarch64.c (aarch64_load_symref_appropriately): Handle
21169 SYMBOL_TINY_ABSOLUTE.
21170 (aarch64_expand_mov_immediate): Likewise.
21171 (aarch64_classify_symbol): Likewise.
21172 (aarch64_mov_operand_p): Remove ATTRIBUTE_UNUSED.
21173 Permit SYMBOL_TINY_ABSOLUTE.
21174 * config/aarch64/predicates.md (aarch64_mov_operand): Permit CONST.
21176 2013-05-29 Chris Schlumberger-Socha <chris.schlumberger-socha@arm.com>
21177 Marcus Shawcroft <marcus.shawcroft@arm.com>
21179 * config/aarch64/aarch64.c (aarch64_classify_symbol): Remove comment.
21180 Refactor if/switch. Replace gcc_assert with if.
21182 2013-05-29 Ganesh Gopalasubramanian <Ganesh.Gopalasubramanian@amd.com>
21184 * config/i386/i386.c (initial_ix86_tune_features): Enable
21185 FP Reassociation for AMD bdver1 and bdver2.
21187 2013-05-29 Martin Jambor <mjambor@suse.cz>
21189 * tree-cfg.c (verify_expr): Verify that BIT_FIELD_REF, REALPART_EXPR
21190 and IMAGPART_EXPR do not occur within other handled_components.
21192 2013-05-29 Richard Biener <rguenther@suse.de>
21194 * tree-vect-slp.c (vect_bb_slp_scalar_cost): Guard vinfo
21195 access on whether the use is in the BB we currently try to
21197 (vect_bb_vectorization_profitable_p): Pass the BB we currently
21198 vectorize to vect_bb_slp_scalar_cost.
21200 2013-05-29 Richard Biener <rguenther@suse.de>
21202 * tree-vect-slp.c (vect_bb_slp_scalar_cost): New function
21203 computing scalar cost offsetted by stmts that are kept live
21205 (vect_bb_vectorization_profitable_p): Use vect_bb_slp_scalar_cost
21206 for computation of scalar cost.
21208 2013-05-28 Steve Ellcey <sellcey@mips.com>
21210 * config/mips/mips-cpus.def (mips32r2): Change processor type.
21212 2013-05-28 Balaji V. Iyer <balaji.v.iyer@intel.com>
21214 * doc/extend.texi (C Extensions): Added documentation about Cilk Plus
21215 array notation built-in reduction functions.
21216 * doc/passes.texi (Passes): Added documentation about changes done
21218 * doc/invoke.texi (C Dialect Options): Added documentation about
21219 the -fcilkplus flag.
21220 * Makefile.in (C_COMMON_OBJS): Added c-family/array-notation-common.o.
21221 (BUILTINS_DEF): Depend on cilkplus.def.
21222 * builtins.def: Include cilkplus.def. Define DEF_CILKPLUS_BUILTIN.
21223 * builtin-types.def: Define BT_FN_INT_PTR_PTR_PTR.
21224 * cilkplus.def: New file.
21226 2013-05-28 Joern Rennecke <joern.rennecke@embecosm.com>
21228 PR rtl-optimization/57439
21229 * postreload.c (move2add_use_add2_insn): Use gen_lowpart_common.
21231 2013-05-28 Easwaran Raman <eraman@google.com>
21233 PR tree-optimization/57337
21234 * tree-ssa-reassoc.c (appears_later_in_bb): New function.
21235 (find_insert_point): Correctly identify the insertion point
21236 when two statements with the same UID is compared.
21238 2013-05-28 Richard Biener <rguenther@suse.de>
21240 PR tree-optimization/56787
21241 * tree-vect-data-refs.c (vect_analyze_data_refs): Drop clobbers
21242 from the list of data references.
21243 * tree-vect-loop.c (vect_determine_vectorization_factor): Skip
21245 (vect_analyze_loop_operations): Likewise.
21246 (vect_transform_loop): Remove clobbers.
21248 2013-05-28 Martin Jambor <mjambor@suse.cz>
21250 * tree-cfg.c (verify_expr): Verify that BIT_FIELD_REFs, IMAGPART_EXPRs
21251 and REALPART_EXPRs have scalar type.
21253 2013-05-28 Richard Biener <rguenther@suse.de>
21255 PR tree-optimization/57411
21256 * tree-ssa-copy.c (may_propagate_copy): Cannot propagate
21258 * tree-ssa-dom.c (eliminate_const_or_copy): Special-case
21259 virtual operand propagation.
21261 2013-05-28 Eric Botcazou <ebotcazou@adacore.com>
21263 * config/sparc/sparc.c (sparc_expand_vec_perm_bmask): Use %g0 as
21264 destination register for bmasksi_vis.
21265 (vector_init_bshuffle): Likewise.
21266 * config/sparc/sparc.md (vec_perm_constv8qi): Likewise.
21268 2013-05-28 Eric Botcazou <ebotcazou@adacore.com>
21270 * doc/invoke.texi (SPARC Options): Document -mfix-ut699.
21271 * builtins.c (expand_builtin_mathfn) <BUILT_IN_SQRT>: Try to widen the
21272 mode if the instruction isn't available in the original mode.
21273 * config/sparc/sparc.opt (mfix-ut699): New option.
21274 * config/sparc/sparc.md (muldf3_extend): Disable if -mfix-ut699.
21275 (divdf3): Turn into expander.
21276 (divdf3_nofix): New insn.
21277 (divdf3_fix): Likewise.
21278 (divsf3): Disable if -mfix-ut699.
21279 (sqrtdf2): Turn into expander.
21280 (sqrtdf2_nofix): New insn.
21281 (sqrtdf2_fix): Likewise.
21282 (sqrtsf2): Disable if -mfix-ut699.
21284 2013-05-27 Richard Biener <rguenther@suse.de>
21286 PR middle-end/57412
21287 * omp-low.c (expand_omp_atomic_pipeline): Use the correct latch
21288 block for the new loop.
21290 2013-05-27 Richard Biener <rguenther@suse.de>
21292 PR tree-optimization/57343
21293 * tree-ssa-loop-niter.c (number_of_iterations_ne_max): Do not
21294 use multiple_of_p if not TYPE_OVERFLOW_UNDEFINED.
21295 (number_of_iterations_cond): Do not build the folded tree.
21297 2013-05-27 Richard Biener <rguenther@suse.de>
21300 PR middle-end/57381
21301 * fold-const.c (operand_equal_p): Compare FIELD_DECLs with
21302 OEP_CONSTANT_ADDRESS_OF retained.
21304 PR tree-optimization/57417
21305 * tree-ssa-sccvn.c (vn_reference_fold_indirect): Fix test
21306 for unchanged base.
21307 (set_ssa_val_to): Compare addresses using
21308 get_addr_base_and_unit_offset.
21310 2013-05-27 Joern Rennecke <joern.rennecke@embecosm.com>
21312 PR rtl-optimization/56833
21313 * postreload.c (move2add_record_mode): New function.
21314 (move2add_record_sym_value, move2add_valid_value_p): Likewise.
21315 (move2add_use_add2_insn): Use move2add_record_sym_value.
21316 (move2add_use_add3_insn): Likewise.
21317 (reload_cse_move2add): Use move2add_valid_value_p and
21318 move2add_record_mode. Invalidate call-clobbered and REG_INC
21319 affected regs by setting reg_mode to VOIDmode.
21320 (move2add_note_store): Don't pretend the inside of a SUBREG is
21321 the actual destination. Invalidate single/leading registers by
21322 setting reg_mode to VOIDmode.
21323 Use move2add_record_sym_value, move2add_valid_value_p and
21324 move2add_record_mode.
21326 2013-05-27 Richard Biener <rguenther@suse.de>
21328 PR tree-optimization/57396
21329 * tree-affine.c (double_int_constant_multiple_p): Properly
21330 return false for val == 0 and div != 0.
21332 2013-05-25 Richard Sandiford <rdsandiford@googlemail.com>
21334 * config/mips/mips.h: Use #elif in preprocessor conditions.
21336 2013-05-25 Richard Sandiford <rdsandiford@googlemail.com>
21339 * config/mips/constraints.md (kl): New constraint.
21340 * config/mips/mips.md (divmod<mode>4, udivmod<mode>4): Delete.
21341 (divmod<mode>4_internal): Rename to divmod<mode>4. Use "kl" as the
21342 constraint for operand 0. Split after CSE for MIPS16. Emit a move
21343 from LO for MIPS16.
21344 (udivmod<mode>4_internal): Likewise udivmod<mode>4.
21346 2013-05-25 Richard Sandiford <rdsandiford@googlemail.com>
21349 * config/mips/mips.c (mips_can_inline_p): New function.
21350 (TARGET_CAN_INLINE_P): Define.
21352 2013-05-25 Steven Bosscher <steven@gcc.gnu.org>
21354 * sched-int.h (ds_t, dw_t): Make unsigned int.
21355 Fix documentation that describes how all the ds_t bits are used.
21356 Reserve the last bit for delayed-branch scheduling.
21357 (BITS_PER_DEP_STATUS): Move to ds_t typedef.
21358 (BITS_PER_DEP_WEAK): Fix definition and documentation.
21359 (gen_dep_weak_1): Remove prototype.
21360 * sched-deps.c (get_dep_weak_1): Make static.
21361 * target.def (speculate_insn, needs_block_p, gen_spec_check,
21362 get_insn_spec_ds, get_insn_checked_ds): Adjust hook prototypes.
21363 * doc/tm.texi: Regenerate.
21364 * config/ia64/ia64.c (ia64_needs_block_p): Update prototype.
21366 2013-05-24 Steven Bosscher <steven@gcc.gnu.org>
21369 * haifa-sched.c (sched_extend_bb): Ignore DEBUG_INSNs.
21371 2013-05-24 Nathan Sidwell <nathan@codesourcery.com>
21372 Sandra Loosemore <sandra@codesourcery.com>
21374 * config.gcc (powerpc-*): Allow native for with-cpu.
21376 2013-05-24 Jeff Law <law@redhat.com>
21378 PR tree-optimization/57124
21379 * tree-vrp.c (simplify_cond_using_ranges): Only simplify a
21380 conversion feeding a condition if the range has an overflow
21381 if -fstrict-overflow. Add warnings for when we do make the
21384 2013-05-24 Dehao Chen <dehao@google.com>
21386 * tree-cfg.c (locus_discrim_map): Fix the typo.
21387 (locus_discrim_hasher): Likewise.
21388 (locus_discrim_hasher::hash): Likewise.
21389 (locus_discrim_hasher::equal): Likewise.
21391 2013-05-24 Martin Jambor <mjambor@suse.cz>
21393 PR tree-optimization/57294
21394 * cgraph.h (ipa_record_stmt_references): Declare.
21395 * cgraphbuild.c (ipa_record_stmt_references): New function.
21396 (build_cgraph_edges): Use ipa_record_stmt_references.
21397 (rebuild_cgraph_edges): Likewise.
21398 (cgraph_rebuild_references): Likewise.
21399 * ipa-prop.c (ipa_modify_call_arguments): Discard references
21400 associated with the old statement and build references from the
21401 newly built statements.
21402 * ipa-ref.c (ipa_remove_stmt_references): New function.
21403 * ipa-ref.h (ipa_remove_stmt_references): Declare.
21405 2013-05-24 Vladimir Makarov <vmakarov@redhat.com>
21407 * lra-constraints.c (emit_spill_move): Use smaller mode for
21409 (check_and_process_move): Consider mem-reg moves for secondary
21411 (curr_insn_transform): Don't lose insns emitted before for
21412 secondary memory moves.
21413 (inherit_in_ebb): Mark defined reg. Add usage only if it is not a
21414 reg set up in the current insn.
21416 2013-05-24 Dehao Chen <dehao@google.com>
21418 * tree-cfg.c (locus_descrim_hasher::hash): Change discriminator
21420 (locus_descrim_hasher::equal): Likewise.
21421 (build_gimple_cfg): New discriminator assignment algorithm.
21422 (make_edges): Likewise.
21423 (next_discriminator_for_locus): Likewise.
21424 (same_line_p): Likewise.
21425 (assign_discriminators): Likewise.
21426 (make_cond_expr_edges): Likewise.
21427 (make_gimple_switch_edges): Likewise.
21428 (make_goto_expr_edges): Likewise.
21429 (make_gimple_asm_edges): Likewise.
21431 2013-05-24 Ian Bolton <ian.bolton@arm.com>
21433 * config/aarch64/aarch64.c (aarch64_print_operand): Change the
21434 X format specifier to only display bottom 16 bits.
21435 * config/aarch64/aarch64.md (insv_imm<mode>): Allow any size of
21436 immediate to match for operand 2, since it will be masked.
21438 2013-05-24 Richard Biener <rguenther@suse.de>
21440 PR tree-optimization/57287
21441 * tree-ssa-uninit.c (compute_uninit_opnds_pos): Disregard
21442 all SSA names that occur in abnormal PHIs.
21444 2013-05-24 Alexander Ivchenko <alexander.ivchenko@intel.com>
21447 * tree-ssa-sccvn.c (fully_constant_vn_reference_p): Check
21448 that index is not negative.
21450 2013-05-24 Eric Botcazou <ebotcazou@adacore.com>
21452 PR rtl-optimization/55177
21453 * simplify-rtx.c (simplify_unary_operation_1) <NOT>: Deal with BSWAP.
21454 (simplify_byte_swapping_operation): New.
21455 (simplify_binary_operation_1): Call it for AND, IOR and XOR.
21456 (simplify_relational_operation_1): Deal with BSWAP.
21458 2013-05-23 Richard Henderson <rth@redhat.com>
21461 * config/i386/i386.c (ix86_seh_fixup_eh_fallthru): New.
21462 (ix86_reorg): Call it.
21464 2013-05-23 Uros Bizjak <ubizjak@gmail.com>
21467 * config/alpha/alpha.md (unspec): Add UNSPEC_XFLT_COMPARE.
21468 * config/alpha/alpha.c (alpha_emit_xfloating_compare): Construct
21469 REG_EQUAL note as UNSPEC_XFLT_COMPARE unspec.
21471 2013-05-23 Christian Bruel <christian.bruel@st.com>
21474 * config/arm/arm.c (arm_dwarf_register_span): Do not use dbx number.
21476 2013-05-23 Chris Schlumberger-Socha <chris.schlumberger-socha@arm.com>
21477 Marcus Shawcroft <marcus.shawcroft@arm.com>
21479 * config/aarch64/aarch64.md (*movdi_aarch64): Replace Usa with S.
21480 * config/aarch64/constraints.md (Usa): Remove.
21481 * doc/md.texi (AArch64 Usa): Remove.
21483 2013-05-23 Chris Schlumberger-Socha <chris.schlumberger-socha@arm.com>
21484 Marcus Shawcroft <marcus.shawcroft@arm.com>
21486 * config/aarch64/aarch64-protos.h (aarch64_mov_operand_p): Define.
21487 * config/aarch64/aarch64.c (aarch64_mov_operand_p): Define.
21488 * config/aarch64/predicates.md (aarch64_const_address): Remove.
21489 (aarch64_mov_operand): Use aarch64_mov_operand_p.
21491 2013-05-23 Vidya Praveen <vidyapraveen@arm.com>
21493 * config/aarch64/aarch64-simd.md (clzv4si2): Support for CLZ
21494 instruction (AdvSIMD).
21495 * config/aarch64/aarch64-builtins.c
21496 (aarch64_builtin_vectorized_function): Handler for BUILT_IN_CLZ.
21497 * config/aarch64/aarch-simd-builtins.def: Entry for CLZ.
21499 2013-05-23 Martin Jambor <mjambor@suse.cz>
21501 PR middle-end/57347
21502 * tree.h (contains_bitfld_component_ref_p): Declare.
21503 * tree-sra.c (contains_bitfld_comp_ref_p): Move...
21504 * tree.c (contains_bitfld_component_ref_p): ...here. Adjust its
21506 * ipa-prop.c (determine_known_aggregate_parts): Check that LHS does
21507 not access a bit-field. Assert all final offsets are byte-aligned.
21509 2013-05-23 Richard Biener <rguenther@suse.de>
21511 PR tree-optimization/57380
21512 * tree-ssa-phiprop.c (propagate_with_phi): Do not require at
21513 least one invariant or re-used load.
21514 * passes.c (init_optimization_passes): Move pass_phiprop before
21517 2013-05-23 James Greenhalgh <james.greenhalgh@arm.com>
21519 * config/aarch64/aarch64-simd.md
21520 (aarch64_cm<optab>di): Add clobber of CC_REGNUM to unsplit pattern.
21522 2013-05-23 Richard Biener <rguenther@suse.de>
21524 PR middle-end/57381
21525 * fold-const.c (operand_equal_p): Compare FIELD_DECLs with
21526 OEP_CONSTANT_ADDRESS_OF retained.
21528 2013-05-23 Jakub Jelinek <jakub@redhat.com>
21530 PR middle-end/57344
21531 * expmed.c (store_split_bit_field): If op0 is a REG or SUBREG of a REG,
21532 don't lower unit. Handle unit not being always BITS_PER_WORD.
21534 2013-05-23 Richard Biener <rguenther@suse.de>
21536 PR rtl-optimization/57341
21537 * ira.c (validate_equiv_mem_from_store): Use anti_dependence
21538 instead of true_dependence.
21540 2013-05-22 David Malcolm <dmalcolm@redhat.com>
21542 * bb-reorder.c (branch_threshold): Make const.
21543 (exec_threshold): Ditto.
21545 2013-05-22 Michael Meissner <meissner@linux.vnet.ibm.com>
21546 Pat Haugen <pthaugen@us.ibm.com>
21547 Peter Bergner <bergner@vnet.ibm.com>
21549 * doc/extend.texi (PowerPC AltiVec/VSX Built-in Functions): Add
21550 documentation for the power8 crypto builtins.
21552 * config/rs6000/t-rs6000 (MD_INCLUDES): Add crypto.md.
21554 * config/rs6000/rs6000-builtin.def (BU_P8V_AV_1): Add support
21555 macros for defining power8 builtin functions.
21556 (BU_P8V_AV_2): Likewise.
21557 (BU_P8V_AV_P): Likewise.
21558 (BU_P8V_VSX_1): Likewise.
21559 (BU_P8V_OVERLOAD_1): Likewise.
21560 (BU_P8V_OVERLOAD_2): Likewise.
21561 (BU_CRYPTO_1): Likewise.
21562 (BU_CRYPTO_2): Likewise.
21563 (BU_CRYPTO_3): Likewise.
21564 (BU_CRYPTO_OVERLOAD_1): Likewise.
21565 (BU_CRYPTO_OVERLOAD_2): Likewise.
21566 (XSCVSPDP): Fix typo, point to the correct instruction.
21567 (VCIPHER): Add power8 crypto builtins.
21568 (VCIPHERLAST): Likewise.
21569 (VNCIPHER): Likewise.
21570 (VNCIPHERLAST): Likewise.
21571 (VPMSUMB): Likewise.
21572 (VPMSUMH): Likewise.
21573 (VPMSUMW): Likewise.
21574 (VPERMXOR_V2DI): Likewise.
21575 (VPERMXOR_V4SI: Likewise.
21576 (VPERMXOR_V8HI: Likewise.
21577 (VPERMXOR_V16QI: Likewise.
21578 (VSHASIGMAW): Likewise.
21579 (VSHASIGMAD): Likewise.
21580 (VPMSUM): Likewise.
21581 (VPERMXOR): Likewise.
21582 (VSHASIGMA): Likewise.
21584 * config/rs6000/rs6000-c.c (rs6000_target_modify_macros): Define
21585 __CRYPTO__ if the crypto instructions are available.
21586 (altivec_overloaded_builtins): Add support for overloaded power8
21589 * config/rs6000/rs6000.c (rs6000_expand_ternop_builtin): Add
21590 support for power8 crypto builtins.
21591 (builtin_function_type): Likewise.
21592 (altivec_init_builtins): Add support for builtins that take vector
21593 long long (V2DI) arguments.
21595 * config/rs6000/crypto.md: New file, define power8 crypto
21598 2013-05-22 Michael Meissner <meissner@linux.vnet.ibm.com>
21599 Pat Haugen <pthaugen@us.ibm.com>
21600 Peter Bergner <bergner@vnet.ibm.com>
21602 * doc/invoke.texi (Option Summary): Add power8 options.
21603 (RS/6000 and PowerPC Options): Likewise.
21605 * doc/md.texi (PowerPC and IBM RS6000 constraints): Update to use
21606 constraints.md instead of rs6000.h. Reorder w* constraints. Add
21607 wm, wn, wr documentation.
21609 * config/rs6000/constraints.md (wm): New constraint for VSX
21610 registers if direct move instructions are enabled.
21611 (wn): New constraint for no registers.
21612 (wq): New constraint for quad word even GPR registers.
21613 (wr): New constraint if 64-bit instructions are enabled.
21614 (wv): New constraint if power8 vector instructions are enabled.
21615 (wQ): New constraint for quad word memory locations.
21617 * config/rs6000/predicates.md (const_0_to_15_operand): New
21618 constraint for 0..15 for crypto instructions.
21619 (gpc_reg_operand): If VSX allow registers in VSX registers as well
21620 as GPR and floating point registers.
21621 (int_reg_operand): New predicate to match only GPR registers.
21622 (base_reg_operand): New predicate to match base registers.
21623 (quad_int_reg_operand): New predicate to match even GPR registers
21624 for quad memory operations.
21625 (vsx_reg_or_cint_operand): New predicate to allow vector logical
21626 operations in both GPR and VSX registers.
21627 (quad_memory_operand): New predicate for quad memory operations.
21628 (reg_or_indexed_operand): New predicate for direct move support.
21630 * config/rs6000/rs6000-cpus.def (ISA_2_5_MASKS_EMBEDDED):
21631 Inherit from ISA_2_4_MASKS, not ISA_2_2_MASKS.
21632 (ISA_2_7_MASKS_SERVER): New mask for ISA 2.07 (i.e. power8).
21633 (POWERPC_MASKS): Add power8 options.
21634 (power8 cpu): Use ISA_2_7_MASKS_SERVER instead of specifying the
21637 * config/rs6000/rs6000-c.c (rs6000_target_modify_macros):
21638 Define _ARCH_PWR8 and __POWER8_VECTOR__ for power8.
21640 * config/rs6000/rs6000.opt (-mvsx-timode): Add documentation.
21641 (-mpower8-fusion): New power8 options.
21642 (-mpower8-fusion-sign): Likewise.
21643 (-mpower8-vector): Likewise.
21644 (-mcrypto): Likewise.
21645 (-mdirect-move): Likewise.
21646 (-mquad-memory): Likewise.
21648 * config/rs6000/rs6000.c (power8_cost): Initial definition for power8.
21649 (rs6000_hard_regno_mode_ok): Make PTImode only match even GPR
21651 (rs6000_debug_reg_print): Print the base register class if -mdebug=reg.
21652 (rs6000_debug_vector_unit): Add p8_vector.
21653 (rs6000_debug_reg_global): If -mdebug=reg, print power8 constraint
21654 definitions. Also print fusion state.
21655 (rs6000_init_hard_regno_mode_ok): Set up power8 constraints.
21656 (rs6000_builtin_mask_calculate): Add power8 builtin support.
21657 (rs6000_option_override_internal): Add support for power8.
21658 (rs6000_common_init_builtins): Add debugging for skipped builtins
21659 if -mdebug=builtin.
21660 (rs6000_adjust_cost): Add power8 support.
21661 (rs6000_issue_rate): Likewise.
21662 (insn_must_be_first_in_group): Likewise.
21663 (insn_must_be_last_in_group): Likewise.
21664 (force_new_group): Likewise.
21665 (rs6000_register_move_cost): Likewise.
21666 (rs6000_opt_masks): Likewise.
21668 * config/rs6000/rs6000.h (ASM_CPU_POWER8_SPEC): If we don't have a
21669 power8 capable assembler, default to power7 options.
21670 (TARGET_DIRECT_MOVE): Likewise.
21671 (TARGET_CRYPTO): Likewise.
21672 (TARGET_P8_VECTOR): Likewise.
21673 (VECTOR_UNIT_P8_VECTOR_P): Define power8 vector support.
21674 (VECTOR_UNIT_VSX_OR_P8_VECTOR_P): Likewise.
21675 (VECTOR_MEM_P8_VECTOR_P): Likewise.
21676 (VECTOR_MEM_VSX_OR_P8_VECTOR_P): Likewise.
21677 (VECTOR_MEM_ALTIVEC_OR_VSX_P): Likewise.
21678 (TARGET_XSCVDPSPN): Likewise.
21679 (TARGET_XSCVSPDPN): Likewsie.
21680 (TARGET_SYNC_HI_QI): Likewise.
21681 (TARGET_SYNC_TI): Likewise.
21682 (MASK_CRYPTO): Likewise.
21683 (MASK_DIRECT_MOVE): Likewise.
21684 (MASK_P8_FUSION): Likewise.
21685 (MASK_P8_VECTOR): Likewise.
21686 (REG_ALLOC_ORDER): Move fr13 to be lower in priority so that the TFmode
21687 temporary used by some of the direct move instructions to get two FP
21688 temporary registers does not force creation of a stack frame.
21689 (VLOGICAL_REGNO_P): Allow vector logical operations in GPRs.
21690 (MODES_TIEABLE_P): Move the VSX tests above the Altivec tests so
21691 that any VSX registers are tieable, even if they are also an
21692 Altivec vector mode.
21693 (r6000_reg_class_enum): Add wm, wr, wv constraints.
21694 (RS6000_BTM_P8_VECTOR): Power8 builtin support.
21695 (RS6000_BTM_CRYPTO): Likewise.
21696 (RS6000_BTM_COMMON): Likewise.
21698 * config/rs6000/rs6000.md (cpu attribute): Add power8.
21699 * config/rs6000/rs6000-opts.h (PROCESSOR_POWER8): Likewise.
21700 (enum rs6000_vector): Add power8 vector support.
21702 2013-05-22 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
21706 * config/arm/arm.c (any_sibcall_uses_r3): Rename to ..
21707 (any_sibcall_could_use_r3): this and handle indirect calls.
21708 (arm_get_frame_offsets): Rename use of any_sibcall_uses_r3.
21710 2013-05-22 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
21712 * config/rs6000/rs6000.h (MALLOC_ABI_ALIGNMENT): New #define.
21714 2013-05-22 Richard Biener <rguenther@suse.de>
21716 PR middle-end/57349
21717 * profile.c (branch_prob): Do not split blocks that are
21718 abnormally receiving from ECF_RETURNS_TWICE functions.
21720 2013-05-22 Richard Sandiford <rsandifo@linux.vnet.ibm.com>
21722 * recog.c (offsettable_address_addr_space_p): Fix calculation of
21723 address mode. Move pointer mode initialization to the same place.
21725 2013-05-22 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
21727 * read-rtl.c (copy_rtx_for_iterators): Continue applying iterators
21728 while it has any effect.
21730 2013-05-21 Easwaran Raman <eraman@google.com>
21732 PR tree-optimization/57322
21733 * tree-ssa-reassoc.c (build_and_add_sum): If a BB is empty, set the
21734 UID of the statement added to the BB to be 1.
21736 2013-05-21 Jakub Jelinek <jakub@redhat.com>
21738 PR tree-optimization/57331
21739 * tree-vrp.c (simplify_cond_using_ranges): Don't optimize comparison
21740 of conversion from pointer type to integral type with integer.
21742 2013-05-21 Martin Jambor <mjambor@suse.cz>
21745 * ipa-prop.c (ipa_read_node_info): Process param_used and
21746 controlled_uses in the same order as when writing.
21748 2013-05-21 Magnus Granberg <baldrick@free.fr>
21751 * Makefile.in (PLUGIN_HEADERS): Add $(TARGET_H).
21753 2013-05-21 Richard Biener <rguenther@suse.de>
21755 PR tree-optimization/57318
21756 * tree-ssa-loop-ivcanon.c (tree_estimate_loop_size): Do not
21757 estimate stmts with side-effects as likely eliminated.
21759 2013-05-21 Richard Biener <rguenther@suse.de>
21761 PR tree-optimization/57330
21762 * cgraph.c (cgraph_redirect_edge_call_stmt_to_callee): Properly
21763 preserve the call stmts fntype.
21765 2013-05-21 Richard Biener <rguenther@suse.de>
21767 PR tree-optimization/57303
21768 * tree-ssa-sink.c (statement_sink_location): Improve killing
21769 stmt detection and properly handle self-assignments.
21771 2013-05-21 Christian Bruel <christian.bruel@st.com>
21773 * dwarf2out.c (multiple_reg_loc_descriptor): Use dbx_reg_number for
21774 spanning registers. LEAF_REG_REMAP is supported only for contiguous
21775 registers. Set register size out of the PARALLEL loop.
21777 2013-05-20 Oleg Endo <olegendo@gcc.gnu.org>
21780 * config/sh/sh.md (fmasf4): Remove empty constraints strings.
21781 (*fmasf4, *fmasf4_media): New insns.
21783 2013-05-19 Richard Sandiford <rdsandiford@googlemail.com>
21785 * config/mips/mips.h (BASE_INSN_LENGTH, NOP_INSN_LENGTH): New macros.
21786 * config/mips/mips.c (mips_symbol_insns, mips_address_insns)
21787 (mips_const_insns, mips_split_const_insns, mips_load_store_insns)
21788 (mips_idiv_insns): Update the comments to say that the returned
21789 instruction counts are in units of BASE_INSN_LENGTH.
21790 (mips_adjust_insn_length): Multiply the mips_load_label_num_insns
21791 by BASE_INSN_LENGTH rather than 4. Add the jump separately,
21792 using 2 rather than 4 as the length of indirect MIPS16 and
21793 microMIPS jumps. Use NOP_INSN_LENGTH rather than 4 as the
21794 length of a NOP. Don't divide MIPS16 lengths by 2.
21795 (mips16_split_long_branches): Assume a branch is long if the
21796 length is greater than 4 rather than 8.
21797 * config/mips/mips.md (length): Give MIPS16 lengths directly,
21798 rather than multiplying them by 2. Multiply instruction counts
21799 by BASE_INSN_LENGTH rather than 4.
21800 (*jump_mips16, tls_get_tp_mips16_<mode>)
21801 (*tls_get_tp_mips16_call_<mode>): Divide lengths by 2.
21803 2013-05-19 Richard Sandiford <rdsandiford@googlemail.com>
21805 * config/mips/mips.md (extended_mips16): Remove branch case.
21806 (length): Remove duplicated extended_mips16 test.
21808 2013-05-19 Richard Sandiford <rdsandiford@googlemail.com>
21810 * config/mips/t-sde: Don't build 64-bit microMIPS multilibs.
21812 2013-05-18 Richard Sandiford <rdsandiford@googlemail.com>
21814 * recog.h (Recog_data): Rename to...
21815 (recog_data_d): ...this.
21816 (recog_data): Update accordingly.
21817 * recog.c (recog_data): Likewise.
21818 * reload.c (save_recog_data): Likewise.
21819 * config/picochip/picochip.c (picochip_saved_recog_data): Likewise.
21820 (picochip_save_recog_data, picochip_restore_recog_data): Likewise.
21822 2013-05-17 Julian Brown <julian@codesourcery.com>
21824 * gcse.c (compute_ld_motion_mems): If a non-simple MEM is
21825 found in a REG_EQUAL note, invalidate it.
21827 2013-05-17 Easwaran Raman <eraman@google.com>
21829 * tree-ssa-reassoc.c (find_insert_point): New function.
21830 (insert_stmt_after): Likewise.
21831 (get_def_stmt): Likewise.
21832 (ensure_ops_are_available): Likewise.
21833 (not_dominated_by): Likewise.
21834 (rewrite_expr_tree): Do not move statements beyond what is
21835 necessary. Remove call to swap_ops_for_binary_stmt...
21836 (reassociate_bb): ... and move it here.
21837 (build_and_add_sum): Assign UIDs for new statements.
21838 (linearize_expr): Likewise.
21839 (do_reassoc): Renumber gimple statement UIDs.
21841 2013-05-17 Jan Hubicka <jh@suse.cz>
21843 * lto-symtab.c (lto_symtab_merge_cgraph_nodes): Resolve cross module
21845 * cgraph.c (dump_cgraph_node): Do not ice on unresolved alias.
21846 * cgraphunit.c (handle_alias_pairs): Store target of unresolved
21848 (output_weakrefs): Update.
21850 2013-05-17 Po-Chun Chang <pchang9@cs.wisc.edu>
21851 Martin Jambor <mjambor@suse.cz>
21853 PR middle-end/57276
21854 * ipa-cp.c (cgraph_edge_brings_all_agg_vals_for_node): Break when a
21855 value that corresponds to the given aggval is found in values vector.
21857 2013-05-17 Uros Bizjak <ubizjak@gmail.com>
21859 * config/i386/driver-i386.c (host_detect_local_cpu): Pass mmx, 3dnow,
21860 sse, sse2, sse3, ssse3 and sse4a flags to options.
21862 2013-05-17 David Malcolm <dmalcolm@redhat.com>
21864 * gengtype-state.c: (s_expr_writer): New class, to handle
21865 prettifying of output layout of s-expressions.
21866 (state_writer): New class, to write out gtype.state.
21867 (state_written_type_count): Move this variable into member data of
21869 (s_expr_writer::s_expr_writer): New code: constructor for new class
21870 (state_writer::state_writer(): ditto
21871 (s_expr_writer::write_new_line): New function
21872 (s_expr_writer::write_any_indent): ditto
21873 (s_expr_writer::begin_s_expr): ditto
21874 (s_expr_writer::end_s_expr): ditto
21875 (write_state_fileloc): convert to method of state_writer...
21876 (state_writer:: write_state_fileloc): ...and use methods of
21877 s_expr_writer to write indentation into the gtype.state output file
21878 to visually represent the hierarchical structure of the list
21880 (write_state_fields): ditto, renaming to...
21881 (state_writer::write_state_fields)
21882 (write_state_a_string): ditto, renaming to...
21883 (state_writer::write_state_a_string)
21884 (write_state_string_option): ditto, renaming to...
21885 (state_writer::write_state_string_option)
21886 (write_state_type_option): ditto, renaming to...
21887 (state_writer::write_state_type_option)
21888 (write_state_nested_option): ditto, renaming to...
21889 (state_writer::write_state_nested_option)
21890 (write_state_option): ditto, renaming to...
21891 (state_writer::write_state_option)
21892 (write_state_options): ditto, renaming to...
21893 (state_writer::write_state_options)
21894 (write_state_lang_bitmap): ditto, renaming to...
21895 (state_writer::write_state_lang_bitmap)
21896 (write_state_version): ditto, renaming to...
21897 (state_writer::write_state_version)
21898 (write_state_scalar_type): ditto, renaming to...
21899 (state_writer::write_state_scalar_type)
21900 (write_state_string_type): ditto, renaming to...
21901 (state_writer::write_state_string_type)
21902 (write_state_undefined_type): ditto, renaming to...
21903 (state_writer::write_state_undefined_type)
21904 (write_state_struct_union_type): ditto, renaming to...
21905 (state_writer::write_state_struct_union_type)
21906 (write_state_struct_type): ditto, renaming to...
21907 (state_writer::write_state_struct_type)
21908 (write_state_user_struct_type): ditto, renaming to...
21909 (state_writer::write_state_user_struct_type)
21910 (write_state_lang_struct_type): ditto, renaming to...
21911 (state_writer::write_state_lang_struct_type)
21912 (write_state_param_struct_type): ditto, renaming to...
21913 (state_writer::write_state_param_struct_type)
21914 (write_state_pointer_type): ditto, renaming to...
21915 (state_writer::write_state_pointer_type)
21916 (write_state_array_type): ditto, renaming to...
21917 (state_writer::write_state_array_type)
21918 (write_state_gc_used): ditto, renaming to...
21919 (state_writer::write_state_gc_used)
21920 (write_state_common_type_content): ditto, renaming to...
21921 (state_writer::write_state_common_type_content)
21922 (write_state_type): ditto, renaming to...
21923 (state_writer::write_state_type)
21924 (write_state_pair_list): ditto, renaming to...
21925 (state_writer::write_state_pair_list)
21926 (write_state_pair): ditto, renaming to...
21927 (state_writer::write_state_pair)
21928 (write_state_typedefs): ditto, renaming to...
21929 (state_writer::write_state_typedefs)
21930 (write_state_structures): ditto, renaming to...
21931 (state_writer::write_state_structures)
21932 (write_state_param_structs): ditto, renaming to...
21933 (state_writer::write_state_param_structs)
21934 (write_state_variables): ditto, renaming to...
21935 (state_writer::write_state_variables)
21936 (write_state_srcdir): ditto, renaming to...
21937 (state_writer::write_state_srcdir)
21938 (write_state_files_list): ditto, renaming to...
21939 (state_writer::write_state_files_list)
21940 (write_state_languages): ditto, renaming to...
21941 (state_writer::write_state_languages)
21942 (write_state): create a state_writer instance and use it when
21943 writing out the state file
21945 2013-05-17 Mike Stump <mikestump@comcast.net>
21947 PR rtl-optimization/57304
21948 * web.c (union_match_dups): Ensure that DF_REF_LOC exists before
21949 accessing DF_REF_REAL_LOC.
21951 2013-05-17 Jakub Jelinek <jakub@redhat.com>
21953 PR rtl-optimization/57281
21954 PR rtl-optimization/57300
21955 * config/i386/i386.md (extendsidi2_1 dead reg splitter): Remove.
21956 (extendsidi2_1 peephole2s): Add instead 2 new peephole2s, that undo
21957 what the other splitter did if the registers are dead.
21959 2013-05-17 Richard Biener <rguenther@suse.de>
21961 * tree-ssa-alias.c (stmt_kills_ref_p_1): Properly compare
21964 2013-05-17 Jakub Jelinek <jakub@redhat.com>
21966 * gcc.c (SANITIZER_SPEC): Reject -fsanitize=address -fsanitize=thread
21969 2013-05-17 Marek Polacek <polacek@redhat.com>
21971 * tree-ssa-strlen.c (handle_char_store): Don't invalidate cached
21972 length when doing non-zero store of storing '\0' to '\0'.
21974 2013-05-17 Jakub Jelinek <jakub@redhat.com>
21976 * tree-vect-patterns.c (vect_recog_rotate_pattern): For
21977 vect_external_def oprnd1 with loop_vinfo, try to emit
21978 optional cast, negation and and stmts on the loop preheader
21979 edge instead of into the pattern def seq.
21981 PR tree-optimization/57051
21982 * fold-const.c (const_binop) <case VEC_LSHIFT_EXPR,
21983 case VEC_RSHIFT_EXPR>: Fix BYTES_BIG_ENDIAN handling.
21985 2013-05-16 Nick Clifton <nickc@redhat.com>
21987 * config/rl78/rl78.c (rl78_attribute_table): Add naked.
21988 (rl78_is_naked_func): New function.
21989 (rl78_expand_prologue): Skip prologue generation for naked functions.
21990 (rl78_expand_epilogue): Skip epilogue generation for naked functions.
21991 * doc/extend.texi (naked): Add RL78 to the list of processors
21992 that supports this attribute.
21994 2013-05-16 Jeff Law <law@redhat.com>
21996 * Makefile.in (tree-switch-conversion.o): Depend on $(OPTABS_H).
21998 2013-05-16 Uros Bizjak <ubizjak@gmail.com>
22000 * config/i386/driver-i386.c (host_detect_local_cpu): Determine
22001 cache parameters using detect_caches_amd also for CYRIX,
22002 NSC and TM2 signatures.
22004 2013-05-16 Uros Bizjak <ubizjak@gmail.com>
22005 Dzianis Kahanovich <mahatma@eu.by>
22009 * config/i386/driver-i386.c (host_detect_local_cpu): Detect
22010 VIA/Centaur processors and determine their cache parameters
22011 using detect_caches_amd.
22013 2013-05-16 Teresa Johnson <tejohnson@google.com>
22015 * cfgrtl.c (verify_hot_cold_block_grouping): Return err.
22016 (rtl_verify_edges): New function.
22017 (rtl_verify_bb_insns): Ditto.
22018 (rtl_verify_bb_pointers): Ditto.
22019 (rtl_verify_bb_insn_chain): Ditto.
22020 (rtl_verify_fallthru): Ditto.
22021 (rtl_verify_bb_layout): Ditto.
22022 (rtl_verify_flow_info_1): Outline checks into new functions.
22023 (rtl_verify_flow_info): Ditto.
22025 2013-05-16 Steve Ellcey <sellcey@imgtec.com>
22027 * cfghooks.c (copy_bbs): Add update_dominance argument.
22028 * cfghooks.h (copy_bbs): Update prototype.
22029 * tree-cfg.c (gimple_duplicate_sese_region):
22030 Add update_dominance argument.
22031 * tree-flow.h (gimple_duplicate_sese_region): Update prototype.
22032 * tree-ssa-loop-ch.c (copy_loop_headers): Update
22033 gimple_duplicate_sese_region call.
22034 * tree-vect-loop-manip.c (slpeel_tree_duplicate_loop_to_edge_cfg):
22035 Update copy_bbs call.
22036 * cfgloopmanip.c (duplicate_loop_to_header_edge): Ditto.
22037 * trans-mem.c (ipa_uninstrument_transaction): Ditto.
22039 2013-05-16 Jakub Jelinek <jakub@redhat.com>
22041 * tree-vectorizer.h (NUM_PATTERNS): Increment.
22042 * tree-vect-patterns.c (vect_vect_recog_func_ptrs): Add
22043 vect_recog_rotate_pattern.
22044 (vect_recog_rotate_pattern): New function.
22046 2013-05-16 Jason Merrill <jason@redhat.com>
22048 * Makefile.in (LLINKER): New variable.
22049 (mostlyclean): Remove link mutex.
22050 * configure.ac: Handle --enable-link-mutex.
22051 * lock-and-run.sh: New script.
22053 2013-05-16 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
22056 * config/arm/arm.c (arm_function_ok_for_sibcall): Add check
22059 2013-05-16 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
22061 * reorg.c (link_cc0_insns): Wrap in #ifdef HAVE_cc0.
22063 2013-05-16 Greta Yorsh <Greta.Yorsh@arm.com>
22065 * config/arm/arm-protos.h (gen_movmem_ldrd_strd): New declaration.
22066 * config/arm/arm.c (next_consecutive_mem): New function.
22067 (gen_movmem_ldrd_strd): Likewise.
22068 * config/arm/arm.md (movmemqi): Update condition and code.
22069 (unaligned_loaddi, unaligned_storedi): New patterns.
22071 2013-05-16 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
22073 * config.gcc: Obsolete *-*-solaris2.9*.
22074 * doc/install.texi (Specific, *-*-solaris2*): Document it.
22076 2013-05-16 Richard Biener <rguenther@suse.de>
22078 * passes.c (init_optimization_passes): Move pass_parallelize_loops
22079 earlier, after GRAPHITE transforms and IV canonicalization.
22081 2013-05-16 Jakub Jelinek <jakub@redhat.com>
22083 * omp-low.c (extract_omp_for_data): For collapsed loops,
22084 if at least one of the loops is known at compile time to
22085 iterate zero times, set count to 0.
22086 (expand_omp_regimplify_p): New function.
22087 (expand_omp_for_generic): For collapsed loops, if at least
22088 one of the loops isn't known to iterate at least once,
22089 add runtime check with setting count to 0.
22090 (expand_omp_for_static_nochunk, expand_omp_for_static_chunk):
22091 For unsigned types if it isn't known at compile time that
22092 the loop will iterate at least once, add runtime check to bypass
22093 the whole loop if initial condition isn't true.
22095 2013-05-16 Nathan Sidwell <nathan@codesourcery.com>
22097 * varasm.c (default_use_anchors_for_symbol_p): Use decl_replaceable_p.
22099 2013-05-16 Marc Glisse <marc.glisse@inria.fr>
22101 PR middle-end/57286
22102 * fold-const.c (fold_ternary_loc) <VEC_COND_EXPR>: Disable some
22103 transformations to avoid an infinite loop.
22105 2013-05-16 Marek Polacek <polacek@redhat.com>
22107 * tree-scalar-evolution.c (scev_const_prop): Add more dumps.
22109 2013-05-15 Leif Ekblad <leif@rdos.net>
22111 * config/i386/i386.c (ix86_decompose_address): Use
22112 DEFAULT_TLS_SEG_REG to access TLS segment register.
22113 * config/i386/i386.h (DEFAULT_TLS_SEG_REG): New define.
22114 * config/i386/rdos.h (DEFAULT_TLS_SEG_REG): Ditto.
22115 (TARGET_TLS_DIRECT_SEG_REFS_DEFAULT): Ditto.
22117 2013-05-15 Richard Sandiford <rdsandiford@googlemail.com>
22120 * config/mips/mips.c (mips_function_ok_for_sibcall): Don't allow
22121 sibling calls to functions that would normally be lazily bound,
22122 unless $gp is call-clobbered.
22124 2013-05-15 Uros Bizjak <ubizjak@gmail.com>
22126 * config/i386/i386.c (ix86_option_override_internal): Update
22127 processor_alias_table for missing PTA_PRFCHW and PTA_FXSR flags. Add
22128 PTA_POPCNT to corei7 entry. Do not enable SSE prefetch on
22129 non-SSE 3dNow! targets. Enable TARGET_PRFCHW for TARGET_3DNOW targets.
22130 * config/i386/i386.md (prefetch): Enable for TARGET_PRFCHW instead
22132 (*prefetch_3dnow): Enable for TARGET_PRFCHW only.
22134 2013-05-15 Andreas Schwab <schwab@suse.de>
22136 * config/m68k/m68k.md (*rotlhi3_lowpart, *rotlqi3_lowpart): Name
22137 for rotlhi3+1 and rotlqi3+1, resp. Fix reference to non-existing
22140 2013-05-15 Teresa Johnson <tejohnson@google.com>
22142 * loop-unroll.c (report_unroll_peel): Check decision before
22143 emitting unroll/peel message.
22145 2013-05-15 Teresa Johnson <tejohnson@google.com>
22147 * function.h (has_bb_partition): New rtl_data flag.
22148 (bb_reorder_complete): Ditto.
22149 * cfgcleanup.c (try_crossjump_to_edge): Check for has_bb_partition
22150 instead of flag_reorder_blocks_and_partition.
22151 * cfgrtl.c (verify_hot_cold_block_grouping): Moved from bb-reorder.c,
22152 with some enhancements.
22153 (rtl_verify_flow_info_1): Call verify_hot_cold_block_grouping.
22154 * bb-reorder.c (connect_traces): Check for has_bb_partition
22155 instead of flag_reorder_blocks_and_partition.
22156 (verify_hot_cold_block_grouping): Moved to cfgrtl.c.
22157 (reorder_basic_blocks): Set bb_reorder_complete flag, remove call to
22158 verify_hot_cold_block_grouping.
22159 (partition_hot_cold_basic_blocks): Set has_bb_partition.
22161 2013-05-15 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
22164 * config/arm/predicates.md (call_insn_operand): New predicate.
22165 * config/arm/constraints.md ("Cs", "Ss"): New constraints.
22166 * config/arm/arm.md (*call_insn, *call_value_insn): Match only
22167 if insn is not a tail call.
22168 (*sibcall_insn, *sibcall_value_insn): Adjust for tailcalling through
22170 * config/arm/arm.h (enum reg_class): New caller save register class.
22171 (REG_CLASS_NAMES): Likewise.
22172 (REG_CLASS_CONTENTS): Likewise.
22173 * config/arm/arm.c (arm_function_ok_for_sibcall): Allow tailcalling
22176 2013-05-15 Richard Biener <rguenther@suse.de>
22178 * tree-vect-loop.c (vect_transform_loop): Use MSG_NOTE instead
22179 of MSG_OPTIMIZED_LOCATIONS.
22180 * tree-vect-slp.c (vect_make_slp_decision): Likewise.
22181 (vect_slp_transform_bb): Indicate location in MSG_OPTIMIZED_LOCATIONS
22183 * tree-vectorizer.c (vectorize_loops): Use MSG_NOTE instead
22184 of MSG_OPTIMIZED_LOCATIONS.
22185 (execute_vect_slp): Likewise.
22186 * tree-vect-loop-manip.c (vect_do_peeling_for_loop_bound): Likewise.
22187 (vect_create_cond_for_alias_checks): Likewise.
22188 * tree-vect-patterns.c (vect_recog_dot_prod_pattern): Likewise.
22189 (vect_recog_widen_mult_pattern): Likewise.
22190 (vect_recog_widen_sum_pattern): Likewise.
22191 (vect_recog_over_widening_pattern): Likewise.
22192 (vect_recog_widen_shift_pattern): Likewise.
22193 (vect_recog_vector_vector_shift_pattern): Likewise.
22194 (vect_recog_divmod_pattern): Likewise.
22195 (vect_recog_mixed_size_cond_pattern): Likewise.
22196 (vect_recog_bool_pattern): Likewise.
22197 (vect_pattern_recog_1): Likewise.
22199 2013-05-15 Martin Jambor <mjambor@suse.cz>
22201 * ipa-prop.c (ipa_make_edge_direct_to_target): Redirect calls to
22202 non-functions to builtin_unreachable.
22203 * ipa-inline-transform.c (inline_call): Do not assert estimates were
22204 correct when new direct edges were discovered.
22206 2013-05-15 Martin Jambor <mjambor@suse.cz>
22208 * ipa-prop.c (ipa_print_node_jump_functions): Print symbol order in
22209 header, print symbol order instead of node uid, print more information
22210 about indirect edge targets.
22211 (ipa_make_edge_direct_to_target): Print symbol order instead of node
22213 (ipa_make_edge_direct_to_target): Likewise.
22214 (remove_described_reference): Likewise.
22215 (propagate_controlled_uses): Likewise.
22216 (ipa_print_node_params): Also print symbol order.
22217 (ipcp_transform_function): Print symbol order instead of node uids.
22218 * cgraph.c (cgraph_redirect_edge_call_stmt_to_callee): Likewise.
22219 (cgraph_get_create_real_symbol_node): Likewise.
22220 * ipa-cp.c (print_lattice): Likewise.
22221 (print_all_lattices): Likewise.
22222 (determine_versionability): Likewise.
22223 (initialize_node_lattices): Likewise.
22224 (estimate_local_effects): Likewise.
22225 (update_profiling_info): Likewise.
22226 (create_specialized_node): Likewise.
22227 (perhaps_add_new_callers): Likewise.
22228 (decide_about_value): Likewise.
22229 (decide_whether_version_node): Likewise.
22230 (identify_dead_nodes): Likewise.
22231 * ipa-inline-analysis.c (dump_inline_edge_summary): Likewise.
22232 (dump_inline_summary): Likewise.
22233 (estimate_node_size_and_time): Likewise.
22234 (inline_analyze_function): Likewise.
22235 * ipa-inline.c (report_inline_failed_reason): Likewise.
22236 (want_early_inline_function_p): Likewise.
22237 (edge_badness): Likewise.
22238 (update_edge_key): Likewise.
22239 (inline_small_functions): Likewise. Add dumping of order to two other
22241 * ipa-pure-const.c (pure_const_read_summary): Print symbol order
22242 instead of node uids.
22243 (propagate_pure_const): Likewise.
22244 (propagate_pure_const): Likewise.
22245 * ipa-utils.c (dump_cgraph_node_set): Likewise.
22246 * lto-cgraph.c (input_node): Explicitly specify we dump uid.
22247 * lto-symtab.c (lto_cgraph_replace_node): Print symbol order instead
22249 * tree-pretty-print.c (dump_function_header): Likewise.
22250 * tree-sra.c (convert_callers_for_node): Dump in traditional format.
22251 Print symbol order instead of node uids.
22253 2013-05-15 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
22255 * config/s390/s390.c (s390_register_move_cost): Don't impose the
22256 FPR<->GPR move cost penalty if ldgr/lgdr can be used.
22258 2013-05-15 Richard Biener <rguenther@suse.de>
22260 PR tree-optimization/57275
22261 * tree-vect-data-refs.c (vect_analyze_data_ref_dependence): Fix
22262 return value for fail to do runtime alias checks for gather loads.
22264 2013-05-15 Jan Hubicka <jh@suse.cz>
22268 * lto-symtab.c (lto_symtab_symbol_p): Add external symbol;
22269 weakrefs are not external.
22270 (lto_symtab_merge_decls): Fix thinko when dealing with
22271 non-lto_symtab decls.
22272 (lto_symtab_merge_cgraph_nodes): Use lto_symtab_symbol_p.
22273 (lto_symtab_prevailing_decl): Get int sync with lto_symtab_symbol_p.
22274 * varpool.c (dump_varpool_node): Dump more flags.
22276 2013-05-15 Ganesh Gopalasubramanian <Ganesh.Gopalasubramanian@amd.com>
22278 * config/i386/i386.c (processor_alias_table): Add instruction
22279 FSGSBASE for AMD bdver3 architecture.
22281 2013-05-14 Jakub Jelinek <jakub@redhat.com>
22283 * tree.c (warn_deprecated_use): Print file:line using locus color.
22284 * diagnostic.c (diagnostic_report_current_module): Print file:line
22285 and file:line:column using locus color.
22287 2013-05-14 Mike Stump <mikestump@comcast.net>
22289 * gdbinit.in: Add __null.
22291 2013-05-14 Mike Stump <mikestump@comcast.net>
22293 * recog.h: Rename struct recog_data to Recog_data.
22294 * recog.c: Likewise.
22295 * reload.c (can_reload_into): Likewise.
22296 * config/picochip/picochip.c: Likewise.
22298 2013-05-14 Mike Stump <mikestump@comcast.net>
22300 * web.c (union_match_dups): Also check DF_REF_REAL_LOC.
22302 2013-05-14 Steven Bosscher <steven@gcc.gnu.org>
22304 * resource.h (struct resources): Remove unch_memory member.
22305 (CLEAR_RESOURCE): Don't clear unch_memory.
22306 * resource.c (mark_referenced_resources): Don't set it.
22307 (mark_set_resources): Likewise.
22308 (mark_target_live_regs): Don't clear it.
22309 (init_resource_info): Likewise.
22310 * reorg.c (resource_conflicts_p): Don't compare it.
22311 (redundant_insn): Don't set it.
22313 * rtl.h (next_label, skip_consecutive_labels, link_cc0_insns):
22315 * emit-rtl.c (next_label): Remove unused function.
22316 (skip_consecutive_labels, link_cc0_insns): Move to ...
22317 * reorg.c (skip_consecutive_labels, link_cc0_insns): ... here, the
22318 only place where these functions are used, and make them static.
22320 2013-05-14 Marc Glisse <marc.glisse@inria.fr>
22322 * fold-const.c (fold_negate_expr): Handle vectors.
22323 (fold_truth_not_expr): Make it static.
22324 (fold_invert_truthvalue): New static function.
22325 (invert_truthvalue_loc): Handle vectors. Do not call
22326 fold_truth_not_expr directly.
22327 (fold_unary_loc) <BIT_NOT_EXPR>: Handle comparisons.
22328 <TRUTH_NOT_EXPR>: Do not cast to boolean.
22329 (fold_comparison): Handle vector constants.
22330 (fold_binary_loc) <TRUTH_XOR_EXPR>: Remove redundant code.
22331 (fold_ternary_loc) <VEC_COND_EXPR>: Adapt more COND_EXPR optimizations.
22332 * tree.h (fold_truth_not_expr): Remove declaration.
22334 2013-05-14 James Greenhalgh <james.greenhalgh@arm.com>
22336 * config/aarch64/aarch64-simd.md
22337 (aarch64_vcond_internal<mode>): Rename to...
22338 (aarch64_vcond_internal<mode><mode>): ...This, for integer modes.
22339 (aarch64_vcond_internal<VDQF_COND:mode><VDQF:mode>): ...This for
22340 float modes. Clarify all iterator modes.
22341 (vcond<mode><mode>): Use new name for vcond expanders.
22342 (vcond<v_cmp_result><mode>): Likewise.
22343 (vcondu<mode><mode>: Likewise.
22344 * config/aarch64/iterators.md (VDQF_COND): New.
22346 2013-05-14 Marc Glisse <marc.glisse@inria.fr>
22349 * fold-const.c (fold_binary_loc) <shift>: Use an unsigned
22350 variable for the shift amount. Check that we shift by non-negative
22353 2013-05-14 Chung-Lin Tang <cltang@codesourcery.com>
22356 * config/arm/arm.h (EPILOGUE_USES): Only return true
22357 for LR_REGNUM after epilogue_completed.
22359 2013-05-14 Joern Rennecke <joern.rennecke@embecosm.com>
22361 * config/avr/avr.c (avr_encode_section_info): Bail out if the type
22362 is error_mark_node.
22364 2013-05-14 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
22367 * configure.ac (gcc_cv_ld_as_needed): Disable before Solaris 11
22368 and Solaris 11+/x86 with gld.
22369 * configure: Regenerate.
22371 2013-05-14 Jakub Jelinek <jakub@redhat.com>
22373 * expmed.c (expand_shift_1): Canonicalize rotates by
22374 constant bitsize / 2 to bitsize - 1.
22375 * simplify-rtx.c (simplify_binary_operation_1) <case ROTATE,
22376 case ROTATERT>: Likewise.
22379 2013-05-10 Jakub Jelinek <jakub@redhat.com>
22381 * config/i386/i386.md (rotateinv): New code attr.
22382 (*<rotate_insn><mode>3_1, *<rotate_insn>si3_1_zext,
22383 *<rotate_insn>qi3_1_slp): Emit rorl %eax instead of
22384 roll $31, %eax, etc.
22386 2013-05-14 Richard Biener <rguenther@suse.de>
22388 PR middle-end/57235
22389 * tree-eh.c (sink_clobbers): Give up for successors with
22390 multiple predecessors and no virtual uses.
22392 2013-05-14 Eric Botcazou <ebotcazou@adacore.com>
22394 * config/sparc/sp64-elf.h (CPP_SUBTARGET_SPEC): Delete.
22395 * config/sparc/openbsd64.h (CPP_SUBTARGET_SPEC): Likewise.
22397 2013-05-14 Jakub Jelinek <jakub@redhat.com>
22399 PR middle-end/57251
22400 * expr.c (expand_expr_real_2) <case WIDEN_MULT_EXPR>: Handle
22401 the case when both op0 and op1 have VOIDmode.
22403 2013-05-14 Kaushik Phatak <kaushik.phatak@kpitcummins.com>
22405 * config/rl78/rl78.md(mulsi3_g13): Add additional 'nop' required
22406 in multiply-accumulate mode.
22408 2013-05-13 Guozhi Wei <carrot@google.com>
22410 * dwarf2asm.c (dw2_output_indirect_constant_1): Mark new decl STATIC.
22412 2013-05-13 Kai Tietz <ktietz@redhat.com>
22415 * config/i386/cygming.h (TARGET_PECOFF): Define as true.
22416 * config/i386/i386.h (TARGET_PECOFF): Define by default as false.
22417 (PIC_OFFSET_TABLE_REGNUM): Use TARGET_PECOFF.
22418 * config/i386/i386.c (ix86_option_override_internal): Likewise.
22419 (ix86_expand_prologue): Likewise.
22420 (ix86_expand_split_stack_prologue): Likewise.
22421 (legitimate_pic_address_disp_p): Likewise.
22422 (legitimize_pic_address): Likewise.
22423 (legitimize_tls_address): Likewise.
22424 (legitimize_pe_coff_symbol): Likewise.
22425 (output_pic_addr_const): Likewise.
22426 (construct_plt_address): Likewise.
22427 (ix86_expand_call): Likewise.
22428 (x86_output_mi_thunk): Likewise.
22429 (x86_function_profiler): Likewise.
22431 2013-05-13 Sofiane Naci <sofiane.naci@arm.com>
22433 * config/aarch64/aarch64-simd.md (aarch64_simd_mov<mode>): Group
22434 similar switch cases.
22435 (aarch64_simd_mov): Rename to aarch64_split_simd_mov. Update.
22436 (aarch64_simd_mov_to_<mode>low): Delete.
22437 (aarch64_simd_mov_to_<mode>high): Delete.
22438 (move_lo_quad_<mode>): Add w<-r alternative.
22439 (aarch64_simd_move_hi_quad_<mode>): Likewise.
22440 (aarch64_simd_mov_from_*): Update type attribute.
22441 * config/aarch64/aarch64.c (aarch64_split_simd_move): Refacror switch
22444 2013-05-13 Jan Hubicka <jh@suse.cz>
22446 * mode-switching.c (optimize_mode_switching): Set correct RTL profile.
22447 * config/i386/i386.c (ix86_compute_frame_layout,
22448 ix86_expand_epilogue, emit_i387_cw_initialization,
22449 ix86_expand_vector_move_misalign, ix86_fp_comparison_strategy,
22450 ix86_local_alignment): Fix use of size/speed predicates.
22452 2013-05-13 Jakub Jelinek <jakub@redhat.com>
22454 PR tree-optimization/45216
22455 PR tree-optimization/57157
22456 * tree-ssa-forwprop.c (simplify_rotate): Only recognize
22457 the (-Y) & (B - 1) variant if OP is |.
22458 * expmed.c (expand_shift_1): For rotations by const0_rtx just
22459 return shifted. Use (-op1) & (prec - 1) as other_amount
22460 instead of prec - op1.
22462 2013-05-13 Martin Jambor <mjambor@suse.cz>
22464 PR middle-end/42371
22465 * ipa-prop.h (IPA_UNDESCRIBED_USE): New macro.
22466 (ipa_constant_data): New type.
22467 (ipa_jump_func): Use ipa_constant_data to hold information about
22468 constant jump functions.
22469 (ipa_get_jf_constant): Adjust to jump function type changes.
22470 (ipa_get_jf_constant_rdesc): New function.
22471 (ipa_param_descriptor): New field controlled_uses.
22472 (ipa_get_controlled_uses): New function.
22473 (ipa_set_controlled_uses): Likewise.
22474 * ipa-ref.h (ipa_find_reference): Declare.
22475 * ipa-prop.c (ipa_cst_ref_desc): New type.
22476 (ipa_print_node_jump_functions_for_edge): Adjust for jump function type
22478 (ipa_set_jf_constant): Likewise. Also create reference descriptions.
22479 New parameter cs. Adjust all callers.
22480 (ipa_analyze_params_uses): Detect uncontrolled and controlled uses.
22481 (remove_described_reference): New function.
22482 (jfunc_rdesc_usable): Likewise.
22483 (try_make_edge_direct_simple_call): Decrement controlled use count,
22484 attempt to remove reference if it hits zero.
22485 (combine_controlled_uses_counters): New function.
22486 (propagate_controlled_uses): Likewise.
22487 (ipa_propagate_indirect_call_infos): Call propagate_controlled_uses.
22488 (ipa_edge_duplication_hook): Duplicate reference descriptions.
22489 (ipa_print_node_params): Print described use counter.
22490 (ipa_write_jump_function): Adjust to jump function type changes.
22491 (ipa_read_jump_function): New parameter CS, pass it to
22492 ipa_set_jf_constant. Adjust caller.
22493 (ipa_write_node_info): Stream controlled use count
22494 (ipa_read_node_info): Likewise.
22495 * cgraph.c (cgraph_mark_address_taken_node): Bail out instead of
22497 * ipa-cp.c (ipcp_discover_new_direct_edges): Decrement controlled use
22498 count. Remove cloning-added reference if it reaches zero.
22499 * ipa-ref.c (ipa_find_reference): New function.
22501 2013-05-13 Ganesh Gopalasubramanian <Ganesh.Gopalasubramanian@amd.com>
22503 * config/i386/i386.c (processor_target_table): Modified default
22504 alignment values for AMD BD and BT architectures.
22506 2013-05-13 Marc Glisse <marc.glisse@inria.fr>
22508 * tree-vect-generic.c (uniform_vector_p): Move ...
22509 * tree.c (uniform_vector_p): ... here.
22510 * tree.h (uniform_vector_p): Declare it.
22511 * fold-const.c (fold_binary_loc) <shift>: Turn the second argument
22514 2013-05-13 Jakub Jelinek <jakub@redhat.com>
22516 PR tree-optimization/57230
22517 * tree-ssa-strlen.c (handle_char_store): Record length for
22518 array store from STRING_CST.
22520 PR tree-optimization/57230
22521 * tree-ssa-strlen.c (handle_char_store): Add missing integer_zerop
22524 2013-05-12 Joern Rennecke <joern.rennecke@embecosm.com>
22526 * config/epiphany/epiphany.c (epiphany_init): Check size of
22527 NUM_MODES_FOR_MODE_SWITCHING.
22528 (epiphany_expand_prologue):
22529 Remove CONFIG_REGNUM initial value handling code.
22530 (epiphany_optimize_mode_switching): Handle EPIPHANY_MSW_ENTITY_CONFIG.
22531 (epiphany_mode_needed, epiphany_mode_entry_exit): Likewise.
22532 (emit_set_fp_mode, epiphany_mode_after): Likewise.
22533 (epiphany_mode_needed) <Handle EPIPHANY_MSW_ENTITY_AND>:
22534 Don't return 1 for FP_MODE_NONE.
22535 * config/epiphany/epiphany.h (NUM_MODES_FOR_MODE_SWITCHING):
22536 Add value for EPIPHANY_MSW_ENTITY_CONFIG.
22537 (EPIPHANY_MSW_ENTITY_CONFIG, EPIPHANY_MSW_ENTITY_NUM): Define.
22538 * config/epiphany/epiphany.md (save_config): New pattern.
22540 2013-05-12 Uros Bizjak <ubizjak@gmail.com>
22542 * config/i386/i386.md (*zero_extendsidi2): Add *x->?r alternative.
22544 2013-05-10 Uros Bizjak <ubizjak@gmail.com>
22546 * config/i386/i386.md (memory): Handle sseishft1.
22547 * config/i386/sse.md (*vec_extractv4si): Remove memory attribute.
22548 (*vec_extractv2di_1): Ditto.
22550 2013-05-10 Vladimir Makarov <vmakarov@redhat.com>
22552 * lra-assigns.c (find_hard_regno_for): Add 1 to the cost of call
22555 2013-05-10 Sebastian Huber <sebastian.huber@embedded-brains.de>
22557 * config/arm/t-rtems-eabi: Remove mthumb/march=armv7 multilib.
22558 Add mthumb/march=armv7-a multilib.
22559 Add mthumb/march=armv7-r multilib.
22560 Add mthumb/march=armv7-a/mfpu=neon/mfloat-abi=hard multilib.
22562 2013-05-10 Ralf Corsépius <ralf.corsepius@rtems.org>
22564 * config/v850/t-rtems: Add more multilibs.
22566 2013-05-10 Richard Biener <rguenther@suse.de>
22568 PR tree-optimization/57214
22569 * tree-ssa-loop-ivcanon.c (propagate_constants_for_unrolling): Do
22570 not propagate from SSA names that occur in abnormal PHI nodes.
22572 2013-05-10 Marc Glisse <marc.glisse@inria.fr>
22574 * stor-layout.c (element_precision): New function.
22575 * machmode.h (element_precision): Declare it.
22576 * tree.c (build_minus_one_cst): New function.
22577 (element_precision): Likewise.
22578 * tree.h (build_minus_one_cst): Declare new function.
22579 (element_precision): Likewise.
22580 * fold-const.c (operand_equal_p): Use element_precision.
22581 (fold_binary_loc): Handle vector types.
22582 * convert.c (convert_to_integer): Use element_precision.
22583 * gimple.c (iterative_hash_canonical_type): Handle complex and vectors
22586 2013-05-10 Richard Sandiford <rdsandiford@googlemail.com>
22588 * config/mips/mips-protos.h (m16_uimm3_b, m16_simm4_1, m16_nsimm4_1)
22589 (m16_simm5_1, m16_nsimm5_1, m16_uimm5_4, m16_nuimm5_4, m16_simm8_1)
22590 (m16_nsimm8_1, m16_uimm8_1, m16_nuimm8_1, m16_uimm8_m1_1, m16_uimm8_4)
22591 (m16_nuimm8_4, m16_simm8_8, m16_nsimm8_8): Delete.
22592 * config/mips/mips.c (m16_check_op, m16_uimm3_b, m16_simm4_1)
22593 (m16_nsimm4_1, m16_simm5_1, m16_nsimm5_1, m16_uimm5_4, m16_nuimm5_4)
22594 (m16_simm8_1, m16_nsimm8_1, m16_uimm8_1, m16_nuimm8_1, m16_uimm8_m1_1)
22595 (m16_uimm8_4, m16_nuimm8_4, m16_simm8_8, m16_nsimm8_8): Delete.
22596 * config/mips/constraints.md (Udb8, Usb5, Usb8, Usd8, Uub8, Uuw5)
22597 (Uuw8): New constraints.
22598 (Usb4): Move into alphabetical order.
22599 * config/mips/predicates.md (db8_operand, sb5_operand, sb8_operand)
22600 (sd8_operand, ub8_operand, uw8_operand): New predicates.
22601 * config/mips/mips.md (*xor<mode>3, *xor<mode>3_mips16): Name
22602 previously unnamed patterns.
22603 (*add<mode>3_mips16, *xor<mode>3_mips16, *<optab>si3_mips16)
22604 (*ashldi3_mips16, *ashrdi3_mips16, *lshrdi3_mips16)
22605 (*slt<u>_<GPR:mode><GPR2:mode>_mips16)
22606 (*sle<u>_<GPR:mode><GPR2:mode>_mips16): Use constraints instead
22607 of set_attr_alternative/if_then_else. Use extended_mips16 instead
22608 of specific lengths.
22610 2013-05-10 Jakub Jelinek <jakub@redhat.com>
22612 * config/i386/i386.md (rotateinv): New code attr.
22613 (*<rotate_insn><mode>3_1, *<rotate_insn>si3_1_zext,
22614 *<rotate_insn>qi3_1_slp): Emit rorl %eax instead of
22615 roll $31, %eax, etc.
22617 PR tree-optimization/45216
22618 PR tree-optimization/57157
22619 * tree-ssa-forwprop.c (simplify_rotate): New function.
22620 (ssa_forward_propagate_and_combine): Call it.
22622 2013-05-10 Richard Biener <rguenther@suse.de>
22624 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment): Do not
22625 disable peeling when we version for aliasing.
22626 (vector_alignment_reachable_p): Honor explicit user alignment.
22627 (vect_supportable_dr_alignment): Likewise.
22628 * tree-vect-loop-manip.c (vect_can_advance_ivs_p): Use
22629 STMT_VINFO_LOOP_PHI_EVOLUTION_PART instead of recomputing it.
22630 * tree-vect-loop.c (vect_transform_loop): First apply versioning,
22631 then peeling to arrange for the cost-model check to come first.
22633 2013-05-10 Alan Modra <amodra@gmail.com>
22635 * configure.ac (HAVE_AS_TLS): Swap powerpc64 and powerpc cases.
22636 (HAVE_LD_LARGE_TOC): Don't mention AIX in help text.
22637 * configure: Regenerate.
22639 2013-05-10 Alan Modra <amodra@gmail.com>
22642 * varasm.c (default_elf_select_section): Move !DECL_P check..
22643 (get_named_section): ..to here before calling get_section_name.
22645 (default_section_type_flags): Add DECL_P check.
22646 * config/i386/winnt.c (i386_pe_section_type_flags): Likewise.
22647 * config/rs6000/rs6000.c (rs6000_xcoff_section_type_flags): Likewise.
22649 2013-05-09 Joern Rennecke <joern.rennecke@embecosm.com>
22651 * config/epiphany/epiphany.c (epiphany_expand_prologue):
22652 When using gen_stack_adjust_str with a register offset, add a
22653 REG_FRAME_RELATED_EXPR note.
22655 2013-05-09 Uros Bizjak <ubizjak@gmail.com>
22657 * config/i386/sse.md (*vec_extractv4si_0_zext): New pattern.
22658 (*vec_extractv4si_zext_mem): Ditto.
22659 (*vec_extractv2di): Add 0->x and x->x alternatives.
22660 * config/i386/mmx.md (*vec_extractv2si_zext_mem): New pattern.
22661 * config/i386/i386.md (*zero_extendsidi2): Add *Yj->?r alternative.
22663 2013-05-09 Jason Merrill <jason@redhat.com>
22665 N3639 C++1y VLA support
22666 * gimplify.c (gimplify_vla_decl): Don't touch an existing
22669 * tree.c (build_constructor_va): New.
22670 * tree.h: Declare it.
22672 2013-05-09 Martin Jambor <mjambor@suse.cz>
22675 * gimple-fold.c (canonicalize_constructor_val): Call
22676 cgraph_get_create_real_symbol_node instead of cgraph_get_create_node.
22678 2013-05-09 Jan Hubicka <jh@suse.cz>
22679 Richard Biener <rguenther@suse.de>
22682 * symtab.c (symtab_make_decl_local): Do not add private names.
22684 2013-05-09 Jan Hubicka <jh@suse.cz>
22687 * symtab.c (insert_to_assembler_name_hash): Handle clones.
22688 (unlink_from_assembler_name_hash): Likewise.
22689 (symtab_prevail_in_asm_name_hash, symtab_register_node,
22690 symtab_unregister_node, symtab_initialize_asm_name_hash,
22691 change_decl_assembler_name): Update.
22693 2013-05-09 Sofiane Naci <sofiane.naci@arm.com>
22695 * config/aarch64/aarch64.md: New movtf split.
22696 (*movtf_aarch64): Update.
22697 (aarch64_movdi_tilow): Handle TF modes and rename to
22698 aarch64_movdi_<mode>low.
22699 (aarch64_movdi_tihigh): Handle TF modes and rename to
22700 aarch64_movdi_<mode>high
22701 (aarch64_movtihigh_di): Handle TF modes and rename to
22702 aarch64_mov<mode>high_di
22703 (aarch64_movtilow_di): Handle TF modes and rename to
22704 aarch64_mov<mode>low_di
22705 (aarch64_movtilow_tilow): Remove spurious whitespace.
22706 * config/aarch64/aarch64.c (aarch64_split_128bit_move): Handle TFmode
22708 (aarch64_print_operand): Update.
22710 2013-05-09 Alan Modra <amodra@gmail.com>
22712 * configure.ac (HAVE_AS_TLS): Enable tests for powerpcle and
22714 * configure: Regenerate.
22716 2013-05-08 Uros Bizjak <ubizjak@gmail.com>
22718 * config/i386/mmx.md (*vec_extract* splitters): Simplify post-reload
22719 splitter preparation statements.
22720 * config/i386/sse.md (*vec_extract* splitters): Ditto.
22721 (*avx_vperm_broadcast_<mode>): Use adjust_address instead of
22724 2013-05-08 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
22726 * gimple-ssa-strength-reduction.c (count_candidates): Change
22727 return value to int.
22728 (analyze_candidates_and_replace): Change type of length to int.
22730 2013-05-08 Uros Bizjak <ubizjak@gmail.com>
22732 * config/i386/sse.md (PEXTR_MODE, PEXTR_MODEx): Remove.
22733 (*vec_extract<mode>): Use VI12_128 mode iterator.
22734 (*vec_extract<mode>_mem): Ditto.
22735 (*vec_extract*_mem splitters): Merge splitters using VI_128 mode
22738 2013-05-08 Diego Novillo <dnovillo@google.com>
22743 2012-08-17 Diego Novillo <dnovillo@google.com>
22746 * configure.ac: Add libintl.h to AC_CHECK_HEADERS list.
22747 * config.in: Regenerate.
22748 * configure: Regenerate.
22749 * intl.h: Always include libintl.h if HAVE_LIBINTL_H is set.
22751 2013-05-08 Jan Hubicka <jh@suse.cz>
22754 * cgraph.c (cgraph_make_node_local_1): Se unique_name.
22755 * cgraph.h (symtab_node_base): Add unique_name.
22756 * lto-cgraph.c (lto_output_node, lto_output_varpool_node,
22757 input_overwrite_node, input_varpool_node): Stream unique_name.
22758 * cgraphclones.c (cgraph_create_virtual_clone,
22759 cgraph_function_versioning): Set unique_name.
22760 * ipa.c (function_and_variable_visibility): Set unique_name.
22762 2013-05-08 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
22764 * gimple-ssa-strength-reduction.c (find_phi_def): Revert former "fix."
22765 (alloc_cand_and_find_basis): Restrict conditional candidate
22766 processing to CAND_MULTs.
22768 2013-05-08 Jan Hubicka <jh@suse.cz>
22771 lto-symtab.c (lto_symtab_symbol_p): New function.
22772 (lto_symtab_resolve_can_prevail_p, lto_symtab_resolve_symbols,
22773 lto_symtab_resolve_symbols, lto_symtab_merge_decls_2,
22774 lto_symtab_merge_decls_1, lto_symtab_merge_cgraph_nodes_1):
22775 Skip static symbols.
22777 2013-05-08 Paolo Carlini <paolo.carlini@oracle.com>
22779 PR tree-optimization/57200
22780 * tree-ssa-loop-niter.c (do_warn_aggressive_loop_optimizations):
22781 Only call inform if the preceding warning_at returns true.
22783 2013-05-07 Han Shen <shenhan@google.com>
22785 * cfgexpand.c (record_or_union_type_has_array_p): New function.
22786 (expand_used_vars): Add logic handling '-fstack-protector-strong'.
22787 * common.opt (fstack-protector-strong): New option.
22788 * doc/cpp.texi (__SSP_STRONG__): New builtin "__SSP_STRONG__".
22789 * doc/invoke.texi (Optimization Options): Document
22790 "-fstack-protector-strong".
22791 * gcc.c (LINK_SSP_SPEC): Add 'fstack-protector-strong'.
22793 2013-05-06 Steven Bosscher <steven@gcc.gnu.org>
22795 * config/mips/mips.c (mips_machine_reorg2): Return 0.
22797 2013-05-07 Vladimir Makarov <vmakarov@redhat.com>
22799 * ira.c (update_equiv_regs): Add insn having equiv memory even if
22800 it is not lhs of the insn.
22801 (setup_reg_equiv): Remove insn having equiv memory which it is not
22803 * lra-constraints.c (process_address): Try to improve generation
22804 code for address base + disp.
22805 (lra_constraints): Make correct the code for checking insn setting
22806 up backward equivalence. Remove insn only if it is in the init
22808 * lra-eliminations.c (update_reg_eliminate): Change return value.
22809 (lra_eliminate): Use the result.
22811 2013-05-07 Uros Bizjak <ubizjak@gmail.com>
22813 * config/i386/sse.md (ssescalarnummask): New mode attribute.
22814 (PEXTR_MODE, PEXTR_MODEx): New mode iterators.
22815 (*vec_extract<mode>): Merge from *sse4_1_pextrb_memory and
22816 *sse4_1_pextrw_memory using PEXTR_MODE mode iterator. Handle
22817 register target operands.
22818 (*vec_extractv8hi_sse2): New pattern.
22819 (*vec_extractv16qi_zext): Rename from *sse4_1_pextrb_<mode>.
22820 (*vec_extractv8hi_zext): Rename from *sse2_pextrw_<mode>.
22821 (*vec_extract<mode>_mem): New insn and split pattern.
22823 2013-05-07 Christophe Lyon <christophe.lyon@linaro.org>
22825 * config/arm/arm.c (arm_asan_shadow_offset): New function.
22826 (TARGET_ASAN_SHADOW_OFFSET): Define.
22827 * config/arm/linux-eabi.h (ASAN_CC1_SPEC): Define.
22828 (LINUX_OR_ANDROID_CC): Add ASAN_CC1_SPEC.
22830 2013-05-07 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
22832 * gimple-ssa-strength-reduction.c (MAX_INCR_VEC_LEN): New constant.
22833 (incr_vec_index): Return -1 if increment not found.
22834 (create_add_on_incoming_edge): Assert if increment not found.
22835 (record_increment): Limit number of increments recorded.
22836 (all_phi_incrs_profitable): Return false if an increment not found.
22837 (replace_profitable_candidates): Don't process increments that were
22839 (analyze_candidates_and_replace): Limit size of incr_vec.
22841 2013-05-07 Richard Biener <rguenther@suse.de>
22843 * calls.c (special_function_p): setjmp-like functions are leaf.
22844 * builtins.def (BUILT_IN_SETJMP): setjmp is leaf.
22845 * tree-inline.c (update_ssa_across_abnormal_edges): Remove assert.
22847 2013-05-07 Sofiane Naci <sofiane.naci@arm.com>
22849 * config/aarch64/aarch64-simd.md (*aarch64_simd_mov<mode>): call splitter.
22850 (aarch64_simd_mov<mode>): New expander.
22851 (aarch64_simd_mov_to_<mode>low): New instruction pattern.
22852 (aarch64_simd_mov_to_<mode>high): Likewise.
22853 (aarch64_simd_mov_from_<mode>low): Likewise.
22854 (aarch64_simd_mov_from_<mode>high): Likewise.
22855 (aarch64_dup_lane<mode>): Update.
22856 (aarch64_dup_lanedi): New instruction pattern.
22857 * config/aarch64/aarch64-protos.h (aarch64_split_simd_move): New prototype.
22858 * config/aarch64/aarch64.c (aarch64_split_simd_move): New function.
22860 2013-05-07 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
22862 * gimple-ssa-strength-reduction.c (lazy_create_slsr_reg): Remove.
22863 (replace_mult_candidate): Remove unnecessary argument; remove
22864 unnecessary parameter from call to introduce_cast_before_cand.
22865 (replace_unconditional_candidate): Remove unnecessary parameter
22866 from call to replace_mult_candidate.
22867 (replace_conditional_candidate): Likewise.
22868 (insert_initializers): Use make_temp_ssa_name.
22869 (introduce_cast_before_cand): Remove unnecessary argument; use
22870 make_temp_ssa_name.
22871 (replace_one_candidate): Remove unnecessary argument; remove
22872 unnecessary parameter from calls to introduce_cast_before_cand.
22873 (replace_profitable_candidates): Remove unnecessary parameters
22874 from calls to replace_one_candidate.
22876 2013-05-07 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
22878 * gimple-ssa-strength-reduction.c (find_phi_def): Don't record a
22879 phi def as possibly hiding a basis for a CAND_ADD whose operands
22880 have been commuted in the analysis.
22881 (alloc_cand_and_find_basis): Add parms to call to find_phi_def.
22883 2013-05-07 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
22885 * config/aarch64/aarch64.md
22886 (cmp_swp_<optab><ALLX:mode>_shft_<GPI:mode>): Restrict the
22887 shift value between 0-4.
22889 2013-05-07 Richard Biener <rguenther@suse.de>
22891 * double-int.h (rshift): New overload.
22892 * double-int.c (rshift): New function.
22893 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Optimize.
22894 (create_reference_ops_from_ref): Remove.
22895 (vn_reference_insert): Use shared ops for constructing the
22896 reference and copy it.
22898 2013-05-07 Richard Biener <rguenther@suse.de>
22900 PR middle-end/57190
22901 * tree-eh.c (sink_clobbers): Properly propagate
22902 SSA_NAME_OCCURS_IN_ABNORMAL_PHI.
22904 2013-05-07 Jakub Jelinek <jakub@redhat.com>
22906 PR tree-optimization/57149
22907 * tree-ssa-uninit.c (uninit_undefined_value_p): New inline.
22908 (can_skip_redundant_opnd, compute_uninit_opnds_pos,
22909 collect_phi_def_edges, execute_late_warn_uninitialized): Use
22910 uninit_undefined_value_p instead of ssa_undefined_value_p.
22913 * expr.c (expand_expr_addr_expr_1): Handle COMPOUND_LITERAL_EXPR
22914 for modifier == EXPAND_INITIALIZER.
22916 2013-05-07 Anton Blanchard <anton@samba.org>
22918 * configure.ac (HAVE_LD_LARGE_TOC): Use correct linker emulation
22919 for powerpc64 little endian.
22920 * configure: Regenerate.
22922 2013-05-06 Graham Stott <grahams@btinternet.com>
22924 * expmed.c (init_expmed_rtl): Remove unused fields reg_fld, plus_fld,
22925 mult_fld, sdiv_fld1, udiv_fld1, sdiv_32_fld1, smod_32_fld1,
22926 wide_mult_fld1, wide_lshr_fld1, shift_fld1, shift_mult_fld1,
22927 shift_add_fld1, shift_sub0_fld1, shift_sub1_fld1.
22929 2013-05-06 Graham Stott <grahams@btinternet.com>
22931 * gensupport.c (add_predicate_code): Also exclude SCRATCH from rtx
22932 codes which allow non-lvalues.
22934 2013-05-06 Marc Glisse <marc.glisse@inria.fr>
22936 * tree.c (integer_all_onesp) <COMPLEX_CST>: Test that both
22937 components are all 1s.
22938 (integer_minus_onep): New function.
22939 * tree.h (integer_minus_onep): Declare it.
22940 * fold-const.c (fold_binary_loc) <MULT_EXPR>: Test
22941 integer_minus_onep instead of integer_all_onesp.
22943 2013-05-06 Oleg Endo <olegendo@gcc.gnu.org>
22946 * config/sh/sh.md (*cmp_div0s_0, *cmp_div0s_1, *movsicc_div0s): Add
22947 variations of these patterns.
22949 2013-05-06 Uros Bizjak <ubizjak@gmail.com>
22951 * config/i386/i386.md (isa): Add x64_sse4 member.
22952 (enabled): Handle x64_sse4.
22953 (*movdi_internal): Add *x->?r alternative to emit pextrq $0,%xmm,%reg
22954 instruction for 64bit SSE4_1 targets. Update insn attributes.
22955 (*movsi_internal): Add *x->?r alternative to emit pextrd $0,%xmm,%reg
22956 instruction for SSE4_1 targets. Update insn attributes.
22957 * config/i386/sse.md (*vec_extract<ssevecmodelower>_0): Merge
22958 with *sse4_1_pextrd and *sse4_1_pextrq having const_0 selector.
22959 (*vec_extractv2di_1): Merge with *sse4_1_pextrq having
22961 (*vec_extractv4si): Rename from *sse4_1_pextrd.
22962 (*vec_extractv4si_zext): Rename from *sse4_1_pextrd_zext.
22963 (*vec_extract<ssevecmodelower>_0 splitters): Merge splitters together.
22965 2013-05-06 Oleg Endo <olegendo@gcc.gnu.org>
22968 * config/sh/sh.md (tstsi_t_zero_extract_eq): Use QIHISIDI mode iterator.
22970 2013-05-06 Maxim Kuznetsov <maks.kuznetsov@gmail.com>
22972 * final.c (do_assembler_dialects): Don't handle curly braces and
22973 vertical bar escaped by % as dialect delimiters.
22974 (output_asm_insn): Print curly braces and vertical bar if escaped
22975 by % and ASSEMBLER_DIALECT defined.
22976 * doc/tm.texi.in (ASSEMBLER_DIALECT): Document new standard escapes.
22977 * doc/tm.texi: Regenerated.
22979 2013-05-06 Steven Bosscher <steven@gcc.gnu.org>
22981 * config/mips/mips.c: Include tree-pass.h.
22982 (mips_reorg): Split in pre- and post-dbr_schedule parts.
22983 (mips_machine_reorg2): Move mips_reorg post-dbr_schedule parts here.
22984 (pass_mips_machine_reorg2): New machine specific pass.
22985 (insert_pass_mips_machine_reorg2): New pass plugin definition.
22986 (mips_option_override): Register the new pass.
22987 * rtl.h (cleanup_barriers): Remove prototype.
22988 (dbr_schedule): Likewise.
22989 * jump.c (cleanup_barriers): Make static.
22990 * reorg.c (dbr_schedule): Likewise.
22992 2013-05-06 Richard Biener <rguenther@suse.de>
22994 PR tree-optimization/57185
22995 * tree-parloops.c (add_field_for_reduction): Handle anonymous
22996 SSA names properly.
22998 2013-05-06 Uros Bizjak <ubizjak@gmail.com>
23001 * config/i386/i386.c (add_parameter_dependencies): Add dependence
23002 between "first_arg" and "insn", not "last" and "insn".
23004 2013-05-06 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
23006 * gimple-ssa-strength-reduction.c (slsr_process_phi): Re-enable.
23007 (find_candidates_in_block): Re-enable slsr_process_phi.
23008 (create_phi_basis): Fix double counting of candidate adjustment.
23010 2013-05-06 Richard Biener <rguenther@suse.de>
23012 PR middle-end/57147
23013 * tree-cfg.c (gimple_purge_dead_abnormal_call_edges): If
23014 the edge is also fallthru, preserve it and just clear the
23016 * tree-cfgcleanup.c (remove_fallthru_edge): If the edge is
23017 also complex, preserve that and just clear the fallthru flag.
23018 * tree-inline.c (update_ssa_across_abnormal_edges): Also
23019 update virtual operands.
23021 2013-05-06 Alan Modra <amodra@gmail.com>
23023 * config/rs6000/linux.h (DEFAULT_ASM_ENDIAN): Define.
23024 (LINK_OS_LINUX_EMUL): Use ENDIAN_SELECT.
23025 * config/rs6000/linux64.h (DEFAULT_ASM_ENDIAN): Define.
23026 * config/rs6000/sysv4le.h (DEFAULT_ASM_ENDIAN): Define.
23027 (LINK_TARGET_SPEC): Use ENDIAN_SELECT.
23028 * config/rs6000/sysv4.h (DEFAULT_ASM_ENDIAN): Define as -mbig.
23030 2013-05-06 Alan Modra <amodra@gmail.com>
23032 * config/rs6000/sysv4.h (ENDIAN_SELECT): Define, extracted from
23033 (ASM_SPEC): ..here. Emit DEFAULT_ASM_ENDIAN too.
23034 (DEFAULT_ASM_ENDIAN): Define.
23035 (CC1_SPEC, LINK_TARGET_SPEC): Use ENDIAN_SELECT.
23036 * config/rs6000/linux64.h (ASM_SPEC32): Remove endian options.
23037 Update -K PIC clause from sysv4.h.
23038 (ASM_SPEC_COMMON): Use ENDIAN_SELECT.
23039 (LINK_OS_LINUX_EMUL32, LINK_OS_LINUX_EMUL64): Likewise.
23041 2013-05-06 Alan Modra <amodra@gmail.com>
23043 * config/rs6000/rs6000.md (bswapdi 2nd splitter): Don't swap words
23044 twice for little-endian.
23045 (ashrdi3_no_power, ashrdi3): Support little-endian.
23047 2013-05-06 Oleg Endo <olegendo@gcc.gnu.org>
23050 * config/sh/sh.c (sh_rtx_costs): Handle SMIN and SMAX cases.
23051 * config/sh/sh.md (*clips, uminsi3, *clipu, clipu_one): New insns and
23053 * config/sh/iterators.md (SMIN_SMAX): New code iterator.
23054 * config/sh/predicates.md (arith_reg_or_0_or_1_operand,
23055 clips_min_const_int, clips_max_const_int, clipu_max_const_int):
23058 2013-05-05 Steven Bosscher <steven@gcc.gnu.org>
23059 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
23061 * config.gcc (hppa*-*-*): Remove MASK_BIG_SWITCH from CPU default.
23062 * config/pa/pa.opt: Make mbig-switch a no-op.
23063 * config/pa/pa.h (TARGET_DEFAULT): Remove MASK_BIG_SWITCH.
23064 (CASE_VECTOR_MODE): Always return SImode.
23065 (ASM_OUTPUT_ADDR_VEC_ELT, ASM_OUTPUT_ADDR_DIFF_ELT): Remove code
23066 for the !TARGET_BIG_SWITCH case.
23067 * config/pa/pa-linux.h: Likewise.
23068 * config/pa/pa-openbsd.h: Likewise.
23069 * config/pa/pa-hpux.h: Define TARGET_DEFAULT to 0.
23070 * config/pa/pa.md (short_jump): Remove define_insn.
23071 (casesi): Remove code for the !TARGET_BIG_SWITCH case.
23072 (casesi0): Remove define_insn.
23073 (type): Remove btable_branch.
23074 (pa_combine_type): Likewise.
23075 (in_nullified_branch_delay): Likewise.
23076 (in_call_delay): Likewise.
23077 (define_delay): Likewise.
23078 (define_insn_reservation "Z3"): Likewise.
23079 (define_insn_reservation "Z4"): Likewise.
23080 * config/pa/pa.c (pa_reorg): Remove code for !TARGET_BIG_SWITCH.
23081 (pa_adjust_insn_length): Remove adjustment for btable branches.
23082 * doc/invoke.texi (HPPA Options): Delete documentation for mbig-switch
23085 2013-05-05 Uros Bizjak <ubizjak@gmail.com>
23087 * config/i386/sse.md (*vec_extract<ssevecmodelower>_0): Merge
23088 from sse2_stored and *sse2_storeq_rex64 using SWI48 mode iterator.
23089 Add m->r,x alternatives.
23090 (*vec_extract<ssevecmodelower>_0 splitters): Merge V2DI and V4SI
23091 splitters using SWI48x mode iterator.
23092 (*vec_extract_v2di_0_sse): Rename from *sse2_storeq. Disable for
23093 TARGET_64BIT. Add m->x alternative.
23094 (*vec_extractv4si_mem): Rename from *vec_ext_v4si_mem.
23095 Add o->x alternative. Enable for TARGET_SSE.
23096 (sse_storeq): Remove expander.
23097 (*vec_extractv2di_1): Enable for TARGET_SSE. Split alternatives
23098 with memory input operand.
23099 (*vec_extractv2di_1 splitter): New.
23100 (*vec_extractv4sf_mem): Rename from *vec_extract_v4sf_mem.
23101 * config/i386/i386.md (ssevecmodelower): New mode attribute.
23103 2013-05-04 Segher Boessenkool <segher@kernel.crashing.org>
23105 * config/rs6000/rs6000.c (INT_P): Reformat. Delete obsolete comment.
23106 (INT_LOWPART): Delete.
23107 (extract_MB): Adjust.
23108 (extract_ME): Adjust.
23109 (print_operand): Adjust.
23111 2013-05-04 Segher Boessenkool <segher@kernel.crashing.org>
23113 * config/rs6000/predicates.md (reg_or_add_cint_operand,
23114 reg_or_sub_cint_operand): Delete "HOST_BITS_PER_WIDE_INT == 32" case.
23115 (reg_or_logical_cint_operand, easy_fp_constant,
23116 logical_const_operand): Delete "CONST_DOUBLE" case.
23117 * config/rs6000/rs6000.c (num_insns_constant_wide): Delete
23118 "HOST_BITS_PER_WIDE_INT == 64" test.
23119 (num_insns_constant): Ditto. Delete CONST_DOUBLE DImode/VOIDmode case.
23120 (build_mask64_2_operands): Delete "HOST_BITS_PER_WIDE_INT >= 64" test.
23121 (rs6000_emit_set_const): Delete CONST_DOUBLE case.
23122 (rs6000_emit_set_long_const): Delete "HOST_BITS_PER_WIDE_INT >= 64"
23124 (includes_rldic_lshift_p, includes_rldicr_lshift_p): Delete
23125 CONST_DOUBLE DImode/VOIDmode case.
23126 (INT_P, INT_LOWPART): Delete CONST_DOUBLE case.
23127 (print_operand): Delete "HOST_BITS_PER_WIDE_INT == 32" case. Delete
23128 CONST_DOUBLE VOIDmode case.
23129 (output_toc): Delete "HOST_BITS_PER_WIDE_INT == 32" case.
23130 (rs6000_rtx_costs): Delete CONST_DOUBLE DImode/VOIDmode case.
23131 * config/rs6000/rs6000.md (iordi3, xordi3, splitter for these):
23132 Delete CONST_DOUBLE case.
23133 (splitters for mov FMOVE64 const_double): Delete
23134 "HOST_BITS_PER_WIDE_INT == 32" case. Delete
23135 "HOST_BITS_PER_WIDE_INT >= 64" test.
23136 (splitter for mov DI const_int): Delete "HOST_BITS_PER_WIDE_INT == 32"
23138 (mov DI const_double): Delete.
23140 2013-05-04 Jakub Jelinek <jakub@redhat.com>
23142 * combine.c (combine_simplify_rtx) <case SUBREG>: If nonzero_bits
23143 on op shows all bits zero in mode of a lowpart subreg, return zero.
23145 2013-05-03 Michael Meissner <meissner@linux.vnet.ibm.com>
23148 * config/rs6000/rs6000.h (HARD_REGNO_CALLER_SAVE_MODE): Use DFmode
23149 to save TFmode registers and DImode to save TImode registers for
23150 caller save operations.
23151 (HARD_REGNO_CALL_PART_CLOBBERED): TFmode and TDmode do not need to
23152 mark being partially clobbered since they only use the first
23155 * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): TFmode
23156 and TDmode only use the upper 64-bits of each VSX register.
23158 2013-05-03 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
23160 * gimple-ssa-strength-reduction.c (slsr_process_phi): Disable.
23161 (find_candidates_in_block): Disable slsr_process_phi.
23163 2013-05-03 Guozhi Wei <carrot@google.com>
23165 * coverage.c (coverage_obj_init): Move the construction of gcov
23167 (build_init_ctor): ... here.
23169 2013-05-03 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
23171 * gimple-ssa-strength-reduction.c (cand_kind): Add CAND_PHI.
23172 (slsr_cand_d): Redefine def_phi.
23173 (stride_status, phi_adjust_status, count_phis_status): New enums.
23174 (find_phi_def): New.
23175 (find_basis_for_base_expr): New.
23176 (find_basis_for_candidate): Handle hidden bases.
23177 (alloc_cand_and_find_basis): Handle phi candidates.
23178 (slsr_process_phi): New.
23179 (create_mul_ssa_cand): Exclude phi base candidates; use integer_onep.
23180 (create_mul_imm_cand): Likewise.
23181 (create_add_ssa_cand): Exclude phi base candidates.
23182 (create_add_imm_cand): Likewise.
23183 (slsr_process_cast): Likewise.
23184 (slsr_process_copy): Likewise.
23185 (find_candidates_in_block): Handle phi candidates.
23186 (dump_candidate): Likewise.
23187 (unconditional_cands): Delete.
23188 (unconditional_cands_with_known_stride_p): Delete.
23189 (phi_dependent_cand_p): New.
23190 (cand_increment): Handle phi-dependent candidates.
23191 (replace_dependent): Delete.
23192 (replace_mult_candidate): New.
23193 (replace_unconditional_candidate): New.
23194 (incr_vec_index): Move to avoid forward reference.
23195 (create_add_on_incoming_edge): New.
23196 (create_phi_basis): New.
23197 (replace_dependents): Delete.
23198 (replace_conditional_candidate): New.
23199 (phi_add_costs): New.
23200 (replace_uncond_cands_and_profitable_phis): New.
23201 (record_increment): Handle phi adjustments.
23202 (record_phi_increments): New.
23203 (record_increments): Handle phi adjustments.
23204 (phi_incr_cost): New.
23205 (lowest_cost_path): Handle phis.
23206 (total_savings): Likewise.
23207 (analyze_increments): Likewise.
23208 (ncd_with_phi): New.
23209 (ncd_of_cand_and_phis): New.
23210 (nearest_common_dominator_for_cands): Handle phi increments.
23211 (all_phi_incrs_profitable): New.
23212 (replace_profitable_candidates): Handle phi-dependent candidates.
23213 (analyze_candidates_and_replace): Likewise.
23215 2013-05-03 Teresa Johnson <tejohnson@google.com>
23218 * sched-rgn.c (compute_dom_prob_ps): Ensure accumulated probabilities
23219 do not exceed REG_BR_PROB_BASE.
23221 2013-05-03 Jeff Law <law@redhat.com>
23223 PR tree-optimization/57144
23224 * tree-vrp.c (simplify_cond_using_ranges): Verify the constant
23225 operand of the condition will bit into the new type when eliminating
23226 a cast feeding a condition.
23228 2013-05-03 Jakub Jelinek <jakub@redhat.com>
23230 PR rtl-optimization/57130
23231 * combine.c (make_compound_operation) <case SUBREG>: Pass SET instead
23232 of COMPARE as in_code to the recursive call if needed.
23234 2013-05-03 Uros Bizjak <ubizjak@gmail.com>
23236 * config/i386/i386.md (isa): Add x64_sse4_noavx and x64_avx members.
23237 (enabled): Handle new members.
23238 * config/i386/sse.md (*vec_concatv2si): Merge from
23239 *vec_concatv2si_sse2 and vec_concatv2si_sse.
23240 (vec_concatv2di): Merge with *vec_concatv2di_rex64.
23242 2013-05-03 Joern Rennecke <joern.rennecke@embecosm.com>
23244 PR tree-optimization/57027
23245 * tree-ssa-math-opts.c (convert_mult_to_fma): When checking
23246 for fnms opportunity, check we got the prerequisite kind
23247 of tree / gimple before using accessor functions.
23249 2013-05-03 Richard Biener <rguenther@suse.de>
23251 * double-int.h (lshift): New overload without precision
23252 and arith argument.
23253 (operator *=, operator +=, operator -=): Move ...
23254 * double-int.c (operator *=, operator +=, operator -=): ... here
23255 and implement more efficiently.
23256 (mul_double_with_sign): Remove.
23257 (lshift_double): Adjust to take unsinged shift argument, push
23258 dispatching code to callers.
23259 (mul_double_wide_with_sign): Add early out for callers that
23260 are not interested in high parts or overflow.
23261 (lshift): New function.
23262 (lshift, rshift, alshift, arshift, llshift, lrshift): Add
23263 dispatch code here.
23264 (lrotate, rrotate): Use logical shifts.
23265 * expr.c (get_inner_reference): Use lshift.
23266 * fixed-value.c (do_fixed_divide): Likewise.
23267 * tree-dfa.c (get_ref_base_and_extent): Likewise.
23268 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Likewise.
23269 (indirect_refs_may_alias_p): Likewise.
23270 (stmt_kills_ref_p_1): Likewise.
23272 2013-05-03 Vidya Praveen <vidyapraveen@arm.com>
23274 * config/aarch64/aarch64-simd.md (simd_fabd): Correct the description.
23276 2013-05-03 Vidya Praveen <vidyapraveen@arm.com>
23278 * config/aarch64/aarch64-simd.md (*fabd_scalar<mode>3): Support
23279 scalar form of FABD instruction.
23281 2013-05-02 Vladimir Makarov <vmakarov@redhat.com>
23283 * lra-constraints.c (process_alt_operands): Add checking alt
23284 number to choose the best alternative.
23286 2013-05-02 Richard Biener <rguenther@suse.de>
23288 * tree-eh.c (cleanup_empty_eh_merge_phis): Remove rename_virts
23289 bitmap and its handling.
23290 (pass_cleanup_eh): Set todo_flags_finish to TODO_verify_ssa.
23292 2013-05-02 Richard Biener <rguenther@suse.de>
23294 PR middle-end/57140
23295 * tree-inline.c (copy_loops): Properly handle removed loops.
23296 (copy_cfg_body): Mark destination loops for fixup if source
23297 loops needed fixup.
23299 2013-05-02 Greta Yorsh <Greta.Yorsh@arm.com>
23302 * config/arm/arm.c (arm_expand_epilogue): Check really_return before
23303 generating simple_return for naked functions.
23305 2013-05-02 Martin Jambor <mjambor@suse.cz>
23307 PR middle-end/56988
23308 * ipa-prop.h (ipa_agg_replacement_value): New flag by_ref.
23309 * ipa-cp.c (ipa_get_indirect_edge_target_1): Also check that by_ref
23311 (find_aggregate_values_for_callers_subset): Fill in the by_ref flag of
23312 ipa_agg_replacement_value structures.
23313 (known_aggs_to_agg_replacement_list): Likewise.
23314 * ipa-prop.c (write_agg_replacement_chain): Stream by_ref flag.
23315 (read_agg_replacement_chain): Likewise.
23316 (ipcp_transform_function): Also check that by_ref flags match.
23318 2013-05-02 Richard Biener <rguenther@suse.de>
23320 * graphds.h (struct graph): Add obstack member.
23321 * graphds.c (new_graph): Initialize obstack and allocate
23323 (add_edge): Allocate edge from the obstack.
23324 (free_graph): Free the obstack instead of all edges and vertices.
23326 2013-05-02 Teresa Johnson <tejohnson@google.com>
23328 * loop-unswitch.c (unswitch_loop): Use helper routines with rounding
23330 * cfg.c (update_bb_profile_for_threading): Ditto.
23331 * tree-inline.c (copy_bb): Ditto.
23332 (copy_edges_for_bb): Ditto.
23333 (initialize_cfun): Ditto.
23334 (copy_cfg_body): Ditto.
23335 (expand_call_inline): Ditto.
23336 * ipa-inline-analysis.c (estimate_edge_size_and_time): Ditto.
23337 (estimate_node_size_and_time): Ditto.
23338 (inline_merge_summary): Ditto.
23339 * cgraphclones.c (cgraph_clone_edge): Ditto.
23340 (cgraph_clone_node): Ditto.
23341 * sched-rgn.c (compute_dom_prob_ps): Ditto.
23342 (compute_trg_info): Ditto.
23344 2013-05-02 Ian Bolton <ian.bolton@arm.com>
23346 * config/aarch64/aarch64.md (movsi_aarch64): Only allow to/from
23347 S reg when fp attribute set.
23348 (movdi_aarch64): Only allow to/from D reg when fp attribute set.
23350 2013-05-02 Ian Bolton <ian.bolton@arm.com>
23352 * config/aarch64/aarch64.md (*and_one_cmpl<mode>3_compare0):
23354 (*and_one_cmplsi3_compare0_uxtw): Likewise.
23355 (*and_one_cmpl_<SHIFT:optab><mode>3_compare0): Likewise.
23356 (*and_one_cmpl_<SHIFT:optab>si3_compare0_uxtw): Likewise.
23358 2013-05-02 Richard Biener <rguenther@suse.de>
23360 * tree-scalar-evolution.c (scev_info_hasher): Remove.
23361 (struct instantiate_cache_entry): New type.
23362 (struct instantiate_cache_entry_hasher): New hashtable descriptor.
23363 (struct instantiate_cache_type): New type.
23364 (set_instantiated_value, get_instantiated_value): Remove.
23365 (get_instantiated_value_entry): New function.
23366 (instantiate_scev_name): Use the new cache and adjust.
23367 (instantiate_scev_poly): Adjust.
23368 (instantiate_scev_binary): Likewise.
23369 (instantiate_array_ref): Likewise.
23370 (instantiate_scev_convert): Likewise.
23371 (instantiate_scev_not): Likewise.
23372 (instantiate_scev_3): Likewise.
23373 (instantiate_scev_2): Likewise.
23374 (instantiate_scev_r): Likewise.
23375 (instantiate_scev): Likewise.
23376 (resolve_mixers): Likewise.
23378 2013-05-01 Vladimir Makarov <vmakarov@redhat.com>
23381 * lra-constraints.c (best_small_class_operands_num): Remove.
23382 (process_alt_operands): Remove small_class_operands_num. Take
23383 small classes operands into losers and only if the operand is not
23384 matched. Modify debugging output.
23385 (curr_insn_transform): Remove best_small_class_operands_num.
23388 2013-05-01 James Greenhalgh <james.greenhalgh@arm.com>
23390 * config/aarch64/aarch64-builtins.c
23391 (aarch64_gimple_fold_builtin.c): Fold more modes for reduc_splus_.
23392 * config/aarch64/aarch64-simd-builtins.def
23393 (reduc_splus_): Add new modes.
23394 (reduc_uplus_): New.
23395 * config/aarch64/aarch64-simd.md (aarch64_addvv4sf): Remove.
23396 (reduc_uplus_v4sf): Likewise.
23397 (reduc_splus_v4sf): Likewise.
23398 (aarch64_addv<mode>): Likewise.
23399 (reduc_uplus_<mode>): Likewise.
23400 (reduc_splus_<mode>): Likewise.
23401 (aarch64_addvv2di): Likewise.
23402 (reduc_uplus_v2di): Likewise.
23403 (reduc_splus_v2di): Likewise.
23404 (aarch64_addvv2si): Likewise.
23405 (reduc_uplus_v2si): Likewise.
23406 (reduc_splus_v2si): Likewise.
23407 (reduc_<sur>plus_<mode>): New.
23408 (reduc_<sur>plus_v2di): Likewise.
23409 (reduc_<sur>plus_v2si): Likewise.
23410 (reduc_<sur>plus_v4sf): Likewise.
23411 (aarch64_addpv4sf): Likewise.
23412 * config/aarch64/arm_neon.h
23413 (vaddv<q>_<s,u,f><8, 16, 32, 64): Rewrite using builtins.
23414 * config/aarch64/iterators.md (unspec): Remove UNSPEC_ADDV,
23415 add UNSPEC_SADDV, UNSPEC_UADDV.
23417 (sur): Add UNSPEC_SADDV, UNSPEC_UADDV.
23419 2013-05-01 James Greenhalgh <james.greenhalgh@arm.com>
23421 * config/aarch64/arm_neon.h
23422 (v<max,min><nm><q><v>_<sfu><8, 16, 32, 64>): Rewrite using builtins.
23424 2013-05-01 James Greenhalgh <james.greenhalgh@arm.com>
23426 * config/aarch64/aarch64-builtins
23427 (aarch64_gimple_fold_builtin): Fold reduc_<su><maxmin>_ builtins.
23429 2013-05-01 James Greenhalgh <james.greenhalgh@arm.com>
23431 * config/aarch64/aarch64-simd-builtins.def
23432 (reduc_smax_): New.
23433 (reduc_smin_): Likewise.
23434 (reduc_umax_): Likewise.
23435 (reduc_umin_): Likewise.
23436 (reduc_smax_nan_): Likewise.
23437 (reduc_smin_nan_): Likewise.
23440 (smax): Update for V2SF, V4SF and V2DF modes.
23443 (smin_nan): Likewise.
23444 * config/aarch64/aarch64-simd.md (<maxmin><mode>3): Rename to...
23445 (<su><maxmin><mode>3): ...This, refactor.
23446 (s<maxmin><mode>3): New.
23447 (<maxmin_uns><mode>3): Likewise.
23448 (reduc_<maxmin_uns>_<mode>): Refactor.
23449 (reduc_<maxmin_uns>_v4sf): Likewise.
23450 (reduc_<maxmin_uns>_v2si): Likewise.
23451 (aarch64_<fmaxmin><mode>: Remove.
23452 * config/aarch64/arm_neon.h (vmax<q>_f<32,64>): Rewrite to use
23454 (vmin<q>_f<32,64>): Likewise.
23455 * config/iterators.md (unspec): Add UNSPEC_FMAXNMV, UNSPEC_FMINNMV.
23457 (su): Add mappings for smax, smin, umax, umin.
23459 (FMAXMINV): Add UNSPEC_FMAXNMV, UNSPEC_FMINNMV.
23460 (FMAXMIN): Rename as...
23461 (FMAXMIN_UNS): ...This.
23463 (fmaxminv): Likewise.
23464 (fmaxmin): Likewise.
23466 (maxmin_uns_op): Likewise.
23468 2013-05-01 James Greenhalgh <james.greenhalgh@arm.com>
23470 * config/aarch64/arm_neon.h
23471 (vac<ge, gt><sd>_f<32, 64>): Rename to...
23472 (vca<ge, gt><sd>_f<32, 64>): ...this, reimpliment in C.
23473 (vca<ge, gt, lt, le><q>_f<32, 64>): Reimpliment in C.
23475 2013-05-01 James Greenhalgh <james.greenhalgh@arm.com>
23477 * config/aarch64/aarch64-simd.md (*aarch64_fac<optab><mode>): New.
23478 * config/aarch64/iterators.md (FAC_COMPARISONS): New.
23480 2013-05-01 James Greenhalgh <james.greenhalgh@arm.com>
23482 * config/aarch64/aarch64-simd.md
23483 (vcond<mode>_internal): Handle special cases for constant masks.
23484 (vcond<mode><mode>): Allow nonmemory_operands for outcome vectors.
23485 (vcondu<mode><mode>): Likewise.
23486 (vcond<v_cmp_result><mode>): New.
23488 2013-05-01 James Greenhalgh <james.greenhalgh@arm.com>
23490 * config/aarch64/aarch64-builtins.c (BUILTIN_VALLDI): Define.
23491 (aarch64_fold_builtin): Add folding for cm<eq,ge,gt,tst>.
23492 * config/aarch64/aarch64-simd-builtins.def
23493 (cmeq): Update to BUILTIN_VALLDI.
23498 * config/aarch64/arm_neon.h
23499 (vc<eq, lt, le, gt, ge, tst><z><qsd>_<fpsu><8,16,32,64>): Remap
23500 to builtins or C as appropriate.
23502 2013-05-01 James Greenhalgh <james.greenhalgh@arm.com>
23504 * config/aarch64/aarch64-simd-builtins.def (cmhs): Rename to...
23506 (cmhi): Rename to...
23508 * config/aarch64/aarch64-simd.md
23509 (simd_mode): Add SF.
23510 (aarch64_vcond_internal): Use new names for unsigned comparison insns.
23511 (aarch64_cm<optab><mode>): Rewrite to not use UNSPECs.
23512 * config/aarch64/aarch64.md (*cstore<mode>_neg): Rename to...
23513 (cstore<mode>_neg): ...This.
23514 * config/aarch64/iterators.md
23516 (unspec): Remove UNSPEC_CM<EQ, LE, LT, GE, GT, HS, HI, TST>.
23517 (COMPARISONS): New.
23518 (UCOMPARISONS): Likewise.
23519 (optab): Add missing comparisons.
23525 (VCMP_S): Likewise.
23526 (VCMP_U): Likewise.
23527 (V_cmp_result): Add DF, SF modes.
23528 (v_cmp_result): Likewise.
23530 (vmtype): Likewise.
23531 * config/aarch64/predicates.md (aarch64_reg_or_fp_zero): New.
23533 2013-05-01 Greta Yorsh <Greta.Yorsh@arm.com>
23535 * config/arm/thumb2.md (thumb2_smaxsi3,thumb2_sminsi3): Convert
23536 define_insn to define_insn_and_split.
23537 (thumb32_umaxsi3,thumb2_uminsi3): Likewise.
23538 (thumb2_negdi2,thumb2_abssi2,thumb2_neg_abssi2): Likewise.
23539 (thumb2_mov_scc,thumb2_mov_negscc,thumb2_mov_notscc): Likewise.
23540 (thumb2_movsicc_insn,thumb2_and_scc,thumb2_ior_scc): Likewise.
23541 (thumb2_negscc): Likewise.
23543 2013-04-30 Greta Yorsh <Greta.Yorsh@arm.com>
23545 * config/arm/thumb2.md (thumb2_incscc, thumb2_decscc): Delete.
23547 2013-04-30 Greta Yorsh <Greta.Yorsh@arm.com>
23549 * config/arm/thumb2.md: Remove trailing whitespaces.
23551 2013-04-30 Richard Sandiford <rsandifo@linux.vnet.ibm.com>
23553 * explow.c (plus_constant): Pass "mode" to immed_double_int_const.
23554 Use gen_int_mode rather than GEN_INT.
23556 2013-04-30 H.J. Lu <hongjiu.lu@intel.com>
23558 * value-prof.c (stream_in_histogram_value): Remove the strayed
23561 2013-04-30 Richard Biener <rguenther@suse.de>
23563 PR middle-end/57122
23564 * cfghooks.c (split_edge): Properly check for the loop latch edge.
23566 2013-04-30 Richard Biener <rguenther@suse.de>
23568 PR middle-end/57107
23569 * tree-eh.c (sink_clobbers): Preserve virtual SSA form.
23571 2013-04-30 Andrey Belevantsev <abel@ispras.ru>
23573 PR rtl-optimization/56957
23574 PR rtl-optimization/57105
23575 * sel-sched.c (move_op_orig_expr_found): Remove insn_emitted
23576 variable. Use just INSN_UID for determining whether an insn
23577 should be only disconnected from the insn stream.
23578 * sel-sched-ir.h (EXPR_WAS_CHANGED): Remove.
23580 2013-04-30 Jakub Jelinek <jakub@redhat.com>
23582 PR tree-optimization/57104
23583 * tsan.c (instrument_expr): Don't instrument accesses to
23584 DECL_HARD_REGISTER VAR_DECLs.
23586 2013-04-30 Richard Biener <rguenther@suse.de>
23588 * function.h (loops_for_fn): New inline function.
23589 (set_loops_for_fn): Likewise.
23590 * cfgloop.h (place_new_loop): Add struct function parameter.
23591 (get_loop): Likewise.
23592 (get_loops): Likewise.
23593 (number_of_loops): Likewise.
23594 (fel_next): Adjust.
23595 (fel_init): Likewise.
23596 * cfg.c (get_loop_copy): Adjust.
23597 * cfgloop.c (flow_loops_dump): Likewise.
23598 (record_loop_exits): Likewise.
23599 (verify_loop_structure): Likewise.
23600 * cfgloopanal.c (mark_irreducible_loops): Likewise.
23601 (estimate_reg_pressure_cost): Likewise.
23602 (mark_loop_exit_edges): Likewise.
23603 * cfgloopmanip.c (place_new_loop): Likewise.
23604 (add_loop): Likewise.
23605 (duplicate_loop): Likewise.
23606 * graph.c (draw_cfg_nodes): Likewise.
23607 * graphite-clast-to-gimple.c (translate_clast_user): Likewise.
23608 * graphite-sese-to-poly.c (build_scop_scattering): Likewise.
23609 (extract_affine_chrec): Likewise.
23610 (build_scop_iteration_domain): Likewise.
23611 * graphite.c (graphite_initialize): Likewise.
23612 * ira-build.c (create_loop_tree_nodes): Likewise.
23613 (more_one_region_p): Likewise.
23614 (rebuild_regno_allocno_maps): Likewise.
23615 (mark_loops_for_removal): Likewise.
23616 (mark_all_loops_for_removal): Likewise.
23617 (remove_unnecessary_regions): Likewise.
23618 (ira_build): Likewise.
23619 * ira-emit.c (setup_entered_from_non_parent_p): Likewise.
23620 * loop-init.c (fix_loop_structure): Likewise.
23621 (gate_rtl_move_loop_invariants): Likewise.
23622 (gate_rtl_unswitch): Likewise.
23623 (gate_rtl_unroll_and_peel_loops): Likewise.
23624 (rtl_doloop): Likewise.
23625 * lto-streamer-in.c (input_cfg): Likewise.
23626 * lto-streamer-out.c (output_cfg): Likewise.
23627 * modulo-sched.c (sms_schedule): Likewise.
23628 * predict.c (tree_estimate_probability): Likewise.
23629 (tree_estimate_probability_driver): Likewise.
23630 (estimate_loops): Likewise.
23631 * tree-cfg.c (fixup_loop_arrays_after_move): Likewise.
23632 (move_sese_region_to_fn): Likewise.
23633 (debug_loop_num): Likewise.
23634 * tree-chrec.c (chrec_evaluate): Likewise.
23635 (hide_evolution_in_other_loops_than_loop): Likewise.
23636 (chrec_component_in_loop_num): Likewise.
23637 (reset_evolution_in_loop): Likewise.
23638 (evolution_function_is_invariant_rec_p): Likewise.
23639 * tree-if-conv.c (main_tree_if_conversion): Likewise.
23640 * tree-inline.c (copy_loops): Likewise.
23641 (copy_cfg_body): Likewise.
23642 (tree_function_versioning): Likewise.
23643 * tree-loop-distribution.c (rdg_flag_loop_exits): Likewise.
23644 * tree-scalar-evolution.c (chrec_contains_symbols_defined_in_loop):
23646 (add_to_evolution_1): Likewise.
23647 (scev_const_prop): Likewise.
23648 * tree-scalar-evolution.h (get_chrec_loop): Likewise.
23649 * tree-ssa-loop-ch.c (copy_loop_headers): Likewise.
23650 * tree-ssa-loop-im.c (analyze_memory_references): Likewise.
23651 (tree_ssa_lim_initialize): Likewise.
23652 * tree-ssa-loop-manip.c (rewrite_into_loop_closed_ssa): Likewise.
23653 (verify_loop_closed_ssa): Likewise.
23654 * tree-ssa-loop.c (tree_ssa_loop_init): Likewise.
23655 (tree_ssa_loop_im): Likewise.
23656 (tree_ssa_loop_unswitch): Likewise.
23657 (tree_vectorize): Likewise.
23658 (check_data_deps): Likewise.
23659 (tree_ssa_loop_ivcanon): Likewise.
23660 (tree_ssa_loop_bounds): Likewise.
23661 (tree_complete_unroll): Likewise.
23662 (tree_complete_unroll_inner): Likewise.
23663 (tree_parallelize_loops): Likewise.
23664 (tree_ssa_loop_prefetch): Likewise.
23665 (tree_ssa_loop_ivopts): Likewise.
23666 * tree-ssa.c (execute_update_addresses_taken): Liekwise.
23667 * tree-vectorizer.c (vectorize_loops): Likewise.
23669 2013-04-29 Mike Frysinger <vapier@gentoo.org>
23671 * config/arm/bpabi.h (EABI_LINK_SPEC): Define.
23672 (BPABI_LINK_SPEC): Use new EABI_LINK_SPEC.
23673 * config/arm/linux-eabi.h (LINK_SPEC): Replace BE8_LINK_SPEC
23674 with EABI_LINK_SPEC.
23676 2013-04-29 Uros Bizjak <ubizjak@gmail.com>
23679 * config/i386/i386.md (*zero_extendsidi2): Add "!" to m->?*y
23682 2013-04-29 Vladimir Makarov <vmakarov@redhat.com>
23685 * lra-constraints.c (process_alt_operands): Discourage a bit more
23686 using memory for pseudos. Print cost dump for alternatives.
23687 Modify cost values for conflicts with early clobbers.
23688 (curr_insn_transform): Spill pseudos reassigned to NO_REGS.
23690 2013-04-29 Uros Bizjak <ubizjak@gmail.com>
23693 * config/i386/i386.c (ix86_expand_vec_perm): Validize constant memory.
23695 2013-04-29 Ian Bolton <ian.bolton@arm.com>
23697 * config/aarch64/aarch64.md (movsi_aarch64): Support LDR/STR
23698 from/to S register.
23699 (movdi_aarch64): Support LDR/STR from/to D register.
23701 2013-04-29 Ian Bolton <ian.bolton@arm.com>
23703 * common/config/aarch64/aarch64-common.c: Enable REE pass at O2
23704 or higher by default.
23706 2013-04-29 Richard Biener <rguenther@suse.de>
23708 PR middle-end/57075
23709 * tree-inline.c (copy_edges_for_bb): Still split the bbs,
23710 even if not adding abnormal edges for calls that can make
23713 2013-04-29 Richard Biener <rguenther@suse.de>
23715 PR middle-end/57103
23716 * tree-cfg.c (move_stmt_op): Fix condition under which to update
23718 (move_stmt_r): Remove redundant checking.
23720 2013-04-29 Teresa Johnson <tejohnson@google.com>
23723 * basic-block.h (apply_scale): New function.
23724 (apply_probability): Use apply_scale.
23725 * gimple-streamer-in.c (input_bb): Ditto.
23726 * lto-streamer-in.c (input_cfg): Ditto.
23727 * lto-cgraph.c (merge_profile_summaries): Ditto.
23728 * tree-optimize.c (execute_fixup_cfg): Ditto.
23729 * tree-inline.c (copy_bb): Update comment to use apply_scale.
23730 (copy_edges_for_bb): Ditto.
23731 (copy_cfg_body): Ditto.
23733 2013-04-29 Tom de Vries <tom@codesourcery.com>
23735 * tree-ssa-tail-merge.c (find_same_succ_bb): Skip loop latch bbs.
23736 (replace_block_by): Don't set LOOPS_NEED_FIXUP.
23737 (tail_merge_optimize): Handle current_loops == NULL.
23739 2013-04-26 Jeff Law <law@redhat.com>
23741 * tree-vrp.c (range_fits_type_p): Move to earlier point in file.
23742 (simplify_cond_using_ranges): Generalize code to simplify
23743 COND_EXPRs where one argument is a constant and the other
23744 is an SSA_NAME created by an integral type conversion.
23746 2013-04-29 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
23748 * config/arm/arm.md (store_minmaxsi): Use only when
23749 optimize_insn_for_size_p.
23751 2013-04-29 Christian Bruel <christian.bruel@st.com>
23754 * sh.md (tstsi_t_zero_extract_eq): Set mode for operand 0.
23756 2013-04-29 Richard Biener <rguenther@suse.de>
23758 PR middle-end/57089
23759 * omp-low.c (expand_omp_taskreg): If the parent function had a broken
23760 loop tree make sure to schedule a fixup for the child as well.
23761 (expand_omp_for_generic): Properly add loops.
23762 (expand_omp_for_static_nochunk): Likewise.
23763 (expand_omp_for_static_chunk): Likewise.
23764 (expand_omp_for): For the degenerate case fixup loops.
23765 (expand_omp_sections): Fix default bb placement in loops.
23766 (expand_omp_atomic_pipeline): Properly add loops.
23768 2013-04-29 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
23770 * predict.c: Fix typo in comment above #define PROB_VERY_UNLIKELY.
23772 2013-04-29 Tom de Vries <tom@codesourcery.com>
23774 * tree-ssa-tail-merge.c: Update header comment.
23776 2013-04-29 James Greenhalgh <james.greenhalgh@arm.com>
23778 * config/aarch64/arm_neon.h
23779 (vcvt<sd>_f<32,64>_s<32,64>): Rewrite in C.
23780 (vcvt<q>_f<32,64>_s<32,64>): Rewrite using builtins.
23781 (vcvt_<high_>_f<32,64>_f<32,64>): Likewise.
23782 (vcvt<qsd>_<su><32,64>_f<32,64>): Likewise.
23783 (vcvta<qsd>_<su><32,64>_f<32,64>): Likewise.
23784 (vcvtm<qsd>_<su><32,64>_f<32,64>): Likewise.
23785 (vcvtn<qsd>_<su><32,64>_f<32,64>): Likewise.
23786 (vcvtp<qsd>_<su><32,64>_f<32,64>): Likewise.
23788 2013-04-29 James Greenhalgh <james.greenhalgh@arm.com>
23790 * config/aarch64/aarch64-simd.md
23791 (<optab><VDQF:mode><fcvt_target>2): New, maps to fix, fixuns.
23792 (<fix_trunc_optab><VDQF:mode><fcvt_target>2): New, maps to
23793 fix_trunc, fixuns_trunc.
23794 (ftrunc<VDQF:mode>2): New.
23795 * config/aarch64/iterators.md (optab): Add fix, fixuns.
23796 (fix_trunc_optab): New.
23798 2013-04-29 James Greenhalgh <james.greenhalgh@arm.com>
23800 * config/aarch64/aarch64-builtins.c
23801 (aarch64_builtin_vectorized_function): Vectorize over ifloorf,
23802 iceilf, lround, iroundf.
23804 2013-04-29 Uros Bizjak <ubizjak@gmail.com>
23807 * config/i386/i386.h (enum ix86_tune_indices)
23808 <X86_TUNE_INTER_UNIT_MOVES_TO_VEC, X86_TUNE_INTER_UNIT_MOVES_FROM_VEC>:
23809 New, split from X86_TUNE_INTER_UNIT_MOVES.
23810 <X86_TUNE_INTER_UNIT_MOVES>: Remove.
23811 (TARGET_INTER_UNIT_MOVES_TO_VEC): New define.
23812 (TARGET_INTER_UNIT_MOVES_FROM_VEC): Ditto.
23813 (TARGET_INTER_UNIT_MOVES): Remove.
23814 * config/i386/i386.c (initial_ix86_tune_features): Update.
23815 Disable X86_TUNE_INTER_UNIT_MOVES_FROM_VEC for m_ATHLON_K8 only.
23816 (ix86_expand_convert_uns_didf_sse): Use
23817 TARGET_INTER_UNIT_MOVES_TO_VEC instead of TARGET_INTER_UNIT_MOVES.
23818 (ix86_expand_vector_init_one_nonzero): Ditto.
23819 (ix86_expand_vector_init_interleave): Ditto.
23820 (inline_secondary_memory_needed): Return true for moves from SSE class
23821 registers for !TARGET_INTER_UNIT_MOVES_FROM_VEC targets and for moves
23822 to SSE class registers for !TARGET_INTER_UNIT_MOVES_TO_VEC targets.
23823 * config/i386/constraints.md (Yi, Ym): Depend on
23824 TARGET_INTER_UNIT_MOVES_TO_VEC.
23825 (Yj, Yn): New constraints.
23826 * config/i386/i386.md (*movdi_internal): Change constraints of
23827 operand 1 from Yi to Yj and from Ym to Yn.
23828 (*movsi_internal): Ditto.
23829 (*movdf_internal): Ditto.
23830 (*movsf_internal): Ditto.
23831 (*float<SWI48x:mode><X87MODEF:mode>2_1): Use
23832 TARGET_INTER_UNIT_MOVES_TO_VEC instead of TARGET_INTER_UNIT_MOVES.
23833 (*float<SWI48x:mode><X87MODEF:mode>2_1 splitters): Ditto.
23834 (floatdi<X87MODEF:mode>2_i387_with_xmm): Ditto.
23835 (floatdi<X87MODEF:mode>2_i387_with_xmm splitters): Ditto.
23836 * config/i386/sse.md (movdi_to_sse): Ditto.
23837 (sse2_stored): Change constraint of operand 1 from Yi to Yj.
23838 Use TARGET_INTER_UNIT_MOVES_FROM_VEC instead of
23839 TARGET_INTER_UNIT_MOVES.
23840 (sse_storeq_rex64): Change constraint of operand 1 from Yi to Yj.
23841 (sse_storeq_rex64 splitter): Use TARGET_INTER_UNIT_MOVES_FROM_VEC
23842 instead of TARGET_INTER_UNIT_MOVES.
23843 * config/i386/mmx.md (*mov<mode>_internal): Change constraint of
23844 operand 1 from Yi to Yj and from Ym to Yn.
23846 2013-04-29 James Greenhalgh <james.greenhalgh@arm.com>
23848 * config/aarch64/aarch64-simd-builtins.def (vec_unpacks_hi_): New.
23849 (float_truncate_hi_): Likewise.
23850 (float_extend_lo_): Likewise.
23851 (float_truncate_lo_): Likewise.
23852 * config/aarch64/aarch64-simd.md (vec_unpacks_lo_v4sf): New.
23853 (aarch64_float_extend_lo_v2df): Likewise.
23854 (vec_unpacks_hi_v4sf): Likewise.
23855 (aarch64_float_truncate_lo_v2sf): Likewise.
23856 (aarch64_float_truncate_hi_v4sf): Likewise.
23857 (vec_pack_trunc_v2df): Likewise.
23858 (vec_pack_trunc_df): Likewise.
23860 2013-04-29 James Greenhalgh <james.greenhalgh@arm.com>
23862 * config/aarch64/aarch64-builtins.c
23863 (aarch64_fold_builtin): Fold float conversions.
23864 * config/aarch64/aarch64-simd-builtins.def
23865 (floatv2si, floatv4si, floatv2di): New.
23866 (floatunsv2si, floatunsv4si, floatunsv2di): Likewise.
23867 * config/aarch64/aarch64-simd.md
23868 (<optab><fcvt_target><VDQF:mode>2): New, expands to float and floatuns.
23869 * config/aarch64/iterators.md (FLOATUORS): New.
23870 (optab): Add float, floatuns.
23871 (su_optab): Likewise.
23873 2013-04-29 James Greenhalgh <james.greenhalgh@arm.com>
23875 * config/aarch64/aarch64-builtins.c
23876 (aarch64_builtin_vectorized_function): Use new names for
23878 * config/aarch64/aarch64-simd-builtins.def (fcvtzs): Split as...
23879 (lbtruncv2sf, lbtruncv4sf, lbtruncv2df): ...This.
23880 (fcvtzu): Split as...
23881 (lbtruncuv2sf, lbtruncuv4sf, lbtruncuv2df): ...This.
23882 (fcvtas): Split as...
23883 (lroundv2sf, lroundv4sf, lroundv2df, lroundsf, lrounddf): ...This.
23884 (fcvtau): Split as...
23885 (lrounduv2sf, lrounduv4sf, lrounduv2df, lroundusf, lroundudf): ...This.
23886 (fcvtps): Split as...
23887 (lceilv2sf, lceilv4sf, lceilv2df): ...This.
23888 (fcvtpu): Split as...
23889 (lceiluv2sf, lceiluv4sf, lceiluv2df, lceilusf, lceiludf): ...This.
23890 (fcvtms): Split as...
23891 (lfloorv2sf, lfloorv4sf, lfloorv2df): ...This.
23892 (fcvtmu): Split as...
23893 (lflooruv2sf, lflooruv4sf, lflooruv2df, lfloorusf, lfloorudf): ...This.
23894 (lfrintnv2sf, lfrintnv4sf, lfrintnv2df, lfrintnsf, lfrintndf): New.
23895 (lfrintnuv2sf, lfrintnuv4sf, lfrintnuv2df): Likewise.
23896 (lfrintnusf, lfrintnudf): Likewise.
23897 * config/aarch64/aarch64-simd.md
23898 (l<fcvt_pattern><su_optab><fcvt_target><VDQF:mode>2): Convert to
23900 (aarch64_fcvt<frint_suffix><su><mode>): Remove.
23901 * config/aarch64/iterators.md (FCVT): Include UNSPEC_FRINTN.
23902 (fcvt_pattern): Likewise.
23904 2013-04-29 James Greenhalgh <james.greenhalgh@arm.com>
23906 * config/aarch64/aarch64-simd.md
23907 (l<fcvt_pattern><su_optab><fcvt_target><VDQF:mode>2): Rename to...
23908 (l<fcvt_pattern><su_optab><VDQF:mode><fcvt_target>2): ... This.
23910 2013-04-29 James Greenhalgh <james.greenhalgh@arm.com>
23912 * config/aarch64/arm_neon.h (vrndq<a,m,n,p>_f<32, 64>): Rename to...
23913 (vrnd<a,m,n,p>q_f<32, 64>): ...This, implement using builtin.
23914 (vrnd<a,m,n,p>_f32): Implement using builtins.
23915 (vrnd<i,x><q>_f<32, 64>): New.
23917 2013-04-29 James Greenhalgh <james.greenhalgh@arm.com>
23919 * config/aarch64/aarch64-builtins.c
23920 (aarch64_builtin_vectorized_function): Fold to standard pattern names.
23921 * config/aarch64/aarch64-simd-builtins.def (frintn): New.
23922 (frintz): Rename to...
23924 (frintp): Rename to...
23926 (frintm): Rename to...
23928 (frinti): Rename to...
23929 (nearbyint): ...this.
23930 (frintx): Rename to...
23932 (frinta): Rename to...
23934 * config/aarch64/aarch64-simd.md
23935 (aarch64_frint<frint_suffix><mode>): Delete.
23936 (<frint_pattern><mode>2): Convert to insn.
23937 * config/aarch64/aarch64.md (unspec): Add UNSPEC_FRINTN.
23938 * config/aarch64/iterators.md (FRINT): Add UNSPEC_FRINTN.
23939 (frint_pattern): Likewise.
23940 (frint_suffix): Likewise.
23942 2013-04-29 Richard Biener <rguenther@suse.de>
23944 PR tree-optimization/57081
23945 * loop-init.c: Include tree-flow.h.
23946 (loop_optimizer_finalize): Free number of iteration estimates.
23947 * Makefile.in (loop-init.o): Add $(TREE_FLOW_H) dependency.
23949 2013-04-29 Jakub Jelinek <jakub@redhat.com>
23951 PR tree-optimization/57083
23952 * tree-vrp.c (extract_range_from_binary_expr_1): For LSHIFT_EXPR with
23953 non-singleton shift count range, zero extend low_bound for uns case.
23955 * config/i386/predicates.md (general_vector_operand): New predicate.
23956 * config/i386/i386.c (const_vector_equal_evenodd_p): New function.
23957 (ix86_expand_mul_widen_evenodd): Force op1 resp. op2 into register
23958 if they aren't nonimmediate operands. If their original values
23959 satisfy const_vector_equal_evenodd_p, don't shift them.
23960 * config/i386/sse.md (mul<mode>3): Use general_vector_operand
23961 predicates. For the SSE4.1 case force operands[{1,2}] into registers
23962 if not nonimmediate_operand.
23963 (vec_widen_smult_even_v4si): Use nonimmediate_operand predicates
23964 instead of register_operand.
23965 (vec_widen_<s>mult_odd_<mode>): Use general_vector_operand predicates.
23967 2013-04-28 Eric Botcazou <ebotcazou@adacore.com>
23969 * stor-layout.c (finalize_size_functions): Allocate a structure and
23970 reset cfun before dumping the functions.
23972 2013-04-27 Jakub Jelinek <jakub@redhat.com>
23974 * config/i386/i386.c (ix86_expand_call): Make cregs_size unsigned.
23977 * config/i386/i386.c (ix86_expand_mul_widen_evenodd): Don't
23978 use xop_pmacsdqh if uns_p.
23979 * config/i386/sse.md (xop_rotr<mode>3): Fix up computation of
23980 the immediate rotate count.
23982 2013-04-26 Vladimir Makarov <vmakarov@redhat.com>
23984 * rtl.h (struct rtx_def): Add comment for field jump.
23985 (LRA_SUBREG_P): New macro.
23986 * recog.c (register_operand): Check LRA_SUBREG_P.
23987 * lra.c (lra): Add note at the end of RTL code. Align non-empty
23989 * lra-spills.c (lra_spill): Align stack after spilling pseudos.
23990 (lra_final_code_change): Skip subreg change for operators.
23991 * lra-eliminations.c (eliminate_regs_in_insn): Make return earlier
23992 if there are no operand changes.
23993 * lra-constraints.c (curr_insn_set): New.
23994 (match_reload): Set LRA_SUBREG_P.
23995 (emit_spill_move): Ditto.
23996 (check_and_process_move): Use curr_insn_set. Process only single
23997 set insns. Don't initialize sec_mem_p and change_p.
23998 (simplify_operand_subreg): Use LRA_SUBREG_P.
23999 (reg_in_class_p): New function.
24000 (process_alt_operands): Use it. Use #if HAVE_ATTR_enabled instead
24001 of #ifdef. Add code to remove cycling.
24002 (process_address): Check EXTRA_CONSTRAINT_STR. Process even if
24003 non-null disp. Reload inner instead of disp when base and index
24004 are null. Try to put lo_sum into register.
24005 (EBB_PROBABILITY_CUTOFF): Redefine probability in percents.
24006 (check_and_process_move): Move code for move cost check to
24007 simple_move_p. Remove equiv_substitution.
24008 (simple_move_p): New function.
24009 (curr_insn_transform): Initialize sec_mem_p and change_p. Set up
24010 curr_insn_set. Call check_and_process_move only for single set
24011 insns. Use the new function. Move call of check_and_process_move
24012 after operand equiv substitution and address process.
24014 2013-04-26 Jakub Jelinek <jakub@redhat.com>
24017 * tree-ssa-uninit.c (compute_uninit_opnds_pos): In functions
24018 with nonlocal goto receivers or returns twice calls, ignore
24019 unininitialized values from abnormal edges to nl goto receiver
24020 or returns twice call.
24022 2013-04-26 Jakub Jelinek <jakub@redhat.com>
24024 PR tree-optimization/57051
24025 * fold-const.c (const_binop): Handle VEC_LSHIFT_EXPR
24026 and VEC_RSHIFT_EXPR if shift count is a multiple of element
24029 2013-04-26 Richard Biener <rguenther@suse.de>
24031 * omp-low.c (finalize_task_copyfn): Do not drop PROP_loops.
24032 (expand_omp_taskreg): Likewise. Mark loops for fixup.
24033 * tree-cfg.c (move_block_to_fn): Remap loop fathers.
24034 (fixup_loop_arrays_after_move): New function.
24035 (move_sese_region_to_fn): Properly outline the loop tree parts
24036 of the SESE region.
24038 2013-04-26 Uros Bizjak <ubizjak@gmail.com>
24040 * config/i386/i386.md (type, unit): Fix long lines.
24042 2013-04-26 Richard Biener <rguenther@suse.de>
24044 * Makefile.in (lto-streamer-in.o): Add $(CFGLOOP_H) dependency.
24045 (lto-streamer-out.o): Likewise.
24046 * cfgloop.c (init_loops_structure): Export, add struct function
24047 argument and adjust.
24048 (flow_loops_find): Adjust.
24049 * cfgloop.h (enum loop_estimation): Add EST_LAST.
24050 (init_loops_structure): Declare.
24051 * lto-streamer-in.c: Include cfgloop.h.
24052 (input_cfg): Input the loop tree.
24053 * lto-streamer-out.c: Include cfgloop.h.
24054 (output_cfg): Output the loop tree.
24055 (output_struct_function_base): Do not drop PROP_loops.
24057 2013-03-26 Richard Biener <rguenther@suse.de>
24059 * tree-cfg.c (execute_build_cfg): Build the loop tree.
24060 (pass_build_cfg): Provide PROP_loops.
24061 (move_sese_region_to_fn): Remove loops that are outlined into fn
24063 * tree-inline.c: Include cfgloop.h.
24064 (initialize_cfun): Do not drop PROP_loops.
24065 (copy_loops): New function.
24066 (copy_cfg_body): Copy loop structure.
24067 (tree_function_versioning): Initialize destination loop tree.
24068 * tree-ssa-loop.c (pass_tree_loop_init): Do not provide PROP_loops.
24069 (pass_parallelize_loops): Do IL verification.
24070 * loop-init.c (loop_optimizer_init): Fixup loops if required.
24071 * tree-optimize.c (execute_fixup_cfg): If we need to cleanup
24072 the CFG make sure we fixup loops as well.
24073 * tree-ssa-tail-merge.c: Include cfgloop.h.
24074 (replace_block_by): When merging loop latches mark loops for fixup.
24075 * lto-streamer-out.c (output_struct_function_base): Drop
24076 PROP_loops for now.
24077 * tree-ssa-phiopt.c: Include tree-scalar-evolution.h.
24078 (tree_ssa_cs_elim): Initialize the loop optimizer and SCEV.
24079 * ipa-split.c: Include cfgloop.h.
24080 (split_function): Add the new return block to the loop tree root.
24081 * tree-cfgcleanup.c (remove_forwarder_block_with_phi): Return
24082 whether we have removed the forwarder block.
24083 (merge_phi_nodes): If we removed a forwarder mark loops for fixup.
24084 * cfgloop.h (place_new_loop): Declare.
24085 * cfgloopmanip.c (place_new_loop): Export.
24086 * Makefile.in (asan.o): Add $(CFGLOOP_H) dependency.
24087 (tree-switch-conversion.o): Likewise.
24088 (tree-complex.o): Likewise.
24089 (tree-inline.o): Likewise.
24090 (tree-ssa-tailmerge.o): Likewise.
24091 (ipa-split.o): Likewise.
24092 (tree-ssa-phiopt.o): Add $(SCEV_H) dependency.
24093 (tree-ssa-copy.o): Likewise.
24094 * tree-switch-conversion.c: Include cfgloop.h
24095 (process_switch): If we emit a bit-test cascade, schedule loops
24097 * tree-complex.c: Include cfgloop.h.
24098 (expand_complex_div_wide): Properly add new basic-blocks to loops.
24099 * asan.c: Include cfgloop.h.
24100 (create_cond_insert_point): Properly add new basic-blocks to
24101 loops, schedule loop fixup.
24102 * cfgloop.c (verify_loop_structure): Check that looks are not
24104 * omp-low.c (expand_parallel_call): Properly add new basic-blocks
24106 (expand_omp_for_generic): Likewise.
24107 (expand_omp_sections): Likewise.
24108 (expand_omp_atomic_pipeline): Schedule loops for fixup.
24109 * tree-ssa-copy.c: Include tree-scalar-evolution.h.
24110 (fini_copy_prop): Disable DCE in substitute_and_fold if SCEV
24111 is initialized, not when loops are present.
24112 * tree-parloops.c (parallelize_loops): Remove checking here.
24113 * passes.c (init_optimization_passes): Schedule a copy-propagation
24114 pass before complete unrolling of inner loops.
24116 2013-04-26 Jakub Jelinek <jakub@redhat.com>
24118 * Makefile.in (toplev.o): Depend on diagnostic-color.h.
24119 * diagnostic-color.c (should_colorize): Remove _WIN32 version.
24120 (colorize_init): Add argument to _WIN32 version.
24121 * toplev.c: Include diagnostic-color.h.
24122 (process_options): Default to -fdiagnostics-color=auto if
24123 GCC_COLORS env var is in the environment.
24124 * common.opt (fdiagnostics-color=): Add Var and Init.
24125 * doc/invoke.texi (-fdiagnostics-color=): Document that if GCC_COLORS
24126 env var is in the environment, the default is auto rather than never.
24128 * diagnostic.h (file_name_as_prefix): Add context argument.
24129 * diagnostic.c (file_name_as_prefix): Likewise. Colorize
24130 the string as locus.
24131 * langhooks.c (lhd_print_error_function): Adjust caller.
24133 2013-04-25 Lawrence Crowl <crowl@google.com>
24135 * var-tracking.c (shared_hash_def::htab):
24136 Change type to hash_table. Update dependent calls and types.
24138 2013-04-25 Lawrence Crowl <crowl@google.com>
24140 * Makefile.in: Update as needed below.
24142 * alloc-pool.c (static hash_table <alloc_pool_hasher> alloc_pool_hash):
24143 Move declaration to after the type's method definitons.
24145 * attribs.c (htab_t scoped_attributes::attribute_hash):
24146 Change type to hash_table. Update dependent calls and types.
24148 * bitmap.c (htab_t bitmap_desc_hash):
24149 Change type to hash_table. Update dependent calls and types.
24151 * cselib.c (htab_t cselib_hash_table):
24152 Change type to hash_table. Update dependent calls and types.
24154 * data-streamer.h (struct string_slot): Move to lto-streamer.h.
24155 (hash_string_slot_node): Move implementation into lto-streamer.h
24156 struct string_slot_hasher.
24157 (eq_string_slot_node): Likewise.
24159 * data-streamer-out.c: Update output_block::string_hash_table
24160 dependent calls and types.
24162 * dwarf2cfi.c (htab_t trace_index):
24163 Change type to hash_table. Update dependent calls and types.
24165 * dwarf2out.c (htab_t break_out_includes::cu_hash_table):
24166 Change type to hash_table. Update dependent calls and types.
24167 (htab_t copy_decls_for_unworthy_types::decl_table): Likewise.
24168 (htab_t optimize_external_refs::map): Likewise.
24169 (htab_t output_comp_unit::extern_map): Likewise.
24170 (htab_t output_comdat_type_unit::extern_map): Likewise.
24171 (htab_t output_macinfo::macinfo_htab): Likewise.
24172 (htab_t optimize_location_lists::htab): Likewise.
24173 (htab_t dwarf2out_finish::comdat_type_table): Likewise.
24175 * except.c (htab_t ehspec_hash_type):
24176 Change type to hash_table. Update dependent calls and types.
24177 (assign_filter_values::ttypes): Likewise.
24178 (assign_filter_values::ehspec): Likewise.
24179 (sjlj_assign_call_site_values::ar_hash): Likewise.
24180 (convert_to_eh_region_ranges::ar_hash): Likewise.
24182 * gcse.c (htab_t pre_ldst_table):
24183 Change type to hash_table. Update dependent calls and types.
24185 * ggc-common.c (htab_t saving_htab):
24186 Change type to hash_table. Update dependent calls and types.
24187 (htab_t loc_hash): Likewise.
24188 (htab_t ptr_hash): Likewise.
24189 (call_count): Rename ggc_call_count.
24190 (call_alloc): Rename ggc_call_alloc.
24191 (loc_descriptor): Rename make_loc_descriptor.
24192 (add_statistics): Rename ggc_add_statistics.
24194 * ggc-common.c (saving_htab):
24195 Change type to hash_table. Update dependent calls and types.
24197 * gimple.h (struct gimplify_ctx): Move to gimplify-ctx.h.
24198 (push_gimplify_context): Likewise.
24199 (pop_gimplify_context): Likewise.
24200 (struct gimple_temp_hash_elt): Added.
24201 (struct gimplify_hasher): Likewise.
24202 (struct gimplify_ctx.temp_htab):
24203 Change type to hash_table. Update dependent calls and types.
24205 * gimple-fold.c: Include gimplify-ctx.h.
24207 * gimple-ssa-strength-reduction.c (htab_t base_cand_map):
24208 Change type to hash_table. Update dependent calls and types.
24209 (base_cand_dump_callback): Rename to ssa_base_cand_dump_callback to
24210 avoid potential global name collision.
24212 * gimplify.c: Include gimplify-ctx.h.
24213 (struct gimple_temp_hash_elt): Move to gimplify-ctx.h.
24214 (htab_t gimplify_ctx::temp_htab):
24215 Update dependent calls and types for new type hash_table.
24216 (gimple_tree_hash): Move into gimplify_hasher in gimplify-ctx.h.
24217 (gimple_tree_eq): Move into gimplify_hasher in gimplify-ctx.h.
24219 * gimplify-ctx.h: New.
24220 (struct gimple_temp_hash_elt): Move from gimplify.c.
24221 (class gimplify_hasher): New.
24222 (struct gimplify_ctx): Move from gimple.h.
24223 (htab_t gimplify_ctx::temp_htab):
24224 Change type to hash_table. Update dependent calls and types.
24226 * graphite-clast-to-gimple.c: Include graphite-htab.h.
24227 (htab_t ivs_params::newivs_index):
24228 Change type to hash_table. Update dependent calls and types.
24229 (htab_t ivs_params::params_index): Likewise.
24230 (htab_t print_generated_program::params_index): Likewise.
24231 (htab_t gloog::newivs_index): Likewise.
24232 (htab_t gloog::params_index): Likewise.
24234 * graphite.c: Include graphite-htab.h.
24235 4htab_t graphite_transform_loops::bb_pbb_mapping):
24236 Change type to hash_table. Update dependent calls and types.
24238 * graphite-clast-to-gimple.h: (extern gloog) Move to graphite-htab.h.
24239 (bb_pbb_map_hash): Fold into bb_pbb_htab_type in graphite-htab.h.
24240 (eq_bb_pbb_map): Fold into bb_pbb_htab_type in graphite-htab.h.
24242 * graphite-dependences.c: Include graphite-htab.h.
24243 (loop_is_parallel_p): Change hash table type of parameter.
24245 * graphite-htab.h: New.
24246 (typedef hash_table <bb_pbb_hasher> bb_pbb_htab_type): New.
24247 (extern find_pbb_via_hash): Move from graphite-poly.h.
24248 (extern loop_is_parallel_p): Move from graphite-poly.h.
24249 (extern get_loop_body_pbbs): Move from graphite-poly.h.
24251 * graphite-poly.h (extern find_pbb_via_hash): Move to graphite-htab.h.
24252 (extern loop_is_parallel_p): Move to graphite-htab.h.
24253 (extern get_loop_body_pbbs): Move to graphite-htab.h.
24255 * haifa-sched.c (htab_t delay_htab):
24256 Change type to hash_table. Update dependent calls and types.
24257 (htab_t delay_htab_i2): Likewise.
24259 * ira-color.c (htab_t allocno_hard_regs_htab):
24260 Change type to hash_table. Update dependent calls and types.
24262 * ira-costs.c (htab_t cost_classes_htab):
24263 Change type to hash_table. Update dependent calls and types.
24265 * loop-invariant.c (htab_t merge_identical_invariants::eq):
24266 Change type to hash_table. Update dependent calls and types.
24268 * loop-iv.c (htab_t bivs):
24269 Change type to hash_table. Update dependent calls and types.
24271 * loop-unroll.c (htab_t opt_info::insns_to_split):
24272 Change type to hash_table. Update dependent calls and types.
24273 (htab_t opt_info::insns_with_var_to_expand): Likewise.
24275 * lto-streamer.h (struct string_slot): Move from data-streamer.h
24276 (struct string_slot_hasher): New.
24277 (htab_t output_block::string_hash_table):
24278 Change type to hash_table. Update dependent calls and types.
24280 * lto-streamer-in.c (freeing_string_slot_hasher): New.
24281 (htab_t file_name_hash_table):
24282 Change type to hash_table. Update dependent calls and types.
24284 * lto-streamer-out.c: Update output_block::string_hash_table dependent
24287 * lto-streamer.c (htab_t tree_htab):
24288 Change type to hash_table. Update dependent calls and types.
24290 * omp-low.c: Include gimplify-ctx.h.
24292 * passes.c (htab_t name_to_pass_map):
24293 Change type to hash_table. Update dependent calls and types.
24294 (pass_traverse): Rename to passes_pass_traverse.
24296 * plugin.c (htab_t event_tab):
24297 Change type to hash_table. Update dependent calls and types.
24299 * postreload-gcse.c (htab_t expr_table):
24300 Change type to hash_table. Update dependent calls and types.
24301 (dump_hash_table_entry): Rename dump_expr_hash_table_entry.
24303 * sese.c (debug_rename_map_1): Make extern.
24304 (htab_t copy_bb_and_scalar_dependences::rename_map):
24305 Change type to hash_table. Update dependent calls and types.
24307 * sese.h (extern debug_rename_map): Move to .c file.
24309 * store-motion.c (htab_t store_motion_mems_table):
24310 Change type to hash_table. Update dependent calls and types.
24312 * trans-mem.c (htab_t tm_new_mem_hash):
24313 Change type to hash_table. Update dependent calls and types.
24315 * tree-browser.c (htab_t TB_up_ht):
24316 Change type to hash_table. Update dependent calls and types.
24318 * tree-cfg.c (htab_t discriminator_per_locus):
24319 Change type to hash_table. Update dependent calls and types.
24321 * tree-complex.c: Include tree-hasher.h
24322 (htab_t complex_variable_components):
24323 Change type to hash_table. Update dependent calls and types.
24325 * tree-eh.c (htab_t finally_tree):
24326 Change type to hash_table. Update dependent calls and types.
24328 * tree-flow.h (extern int_tree_map_hash): Moved into tree-hasher
24329 struct int_tree_hasher.
24330 (extern int_tree_map_eq): Likewise.
24331 (uid_decl_map_hash): Removed.
24332 (extern decl_tree_map_eq): Likewise.
24334 * tree-hasher.h: New.
24335 (struct int_tree_hasher): New.
24336 (typedef int_tree_htab_type): New.
24338 * tree-inline.c: Include gimplify-ctx.h.
24340 * tree-mudflap.c: Include gimplify-ctx.h.
24342 * tree-parloops.c: Include tree-hasher.h.
24343 (htab_t eliminate_local_variables_stmt::decl_address):
24344 Change type to hash_table. Update dependent calls and types.
24345 (htab_t separate_decls_in_region::decl_copies): Likewise.
24347 * tree-scalar-evolution.c (htab_t resolve_mixers::cache):
24348 Change type to hash_table. Update dependent calls and types.
24350 * tree-sra.c (candidates):
24351 Change type to hash_table. Update dependent calls and types.
24353 * tree-ssa.c (int_tree_map_eq): Moved into struct int_tree_hasher
24355 (int_tree_map_hash): Likewise.
24357 * tree-ssa-dom.c (htab_t avail_exprs):
24358 Change type to hash_table. Update dependent calls and types.
24360 * tree-ssa-live.c (var_map_base_init::tree_to_index):
24361 Change type to hash_table. Update dependent calls and types.
24363 * tree-ssa-loop-ivopts.c (struct ivopts_data.inv_expr_tab):
24364 Change type to hash_table. Update dependent calls and types.
24366 * tree-ssa-phiopt.c (seen_ssa_names):
24367 Change type to hash_table. Update dependent calls and types.
24369 * tree-ssa-strlen.c (decl_to_stridxlist_htab):
24370 Change type to hash_table. Update dependent calls and types.
24372 * tree-ssa-uncprop.c (equiv):
24373 Change type to hash_table. Update dependent calls and types.
24375 2013-04-25 Jakub Jelinek <jakub@redhat.com>
24377 PR rtl-optimization/57003
24378 * regcprop.c (copyprop_hardreg_forward_1): If ksvd.ignore_set_reg,
24379 call note_stores with kill_clobbered_value callback again after
24380 killing regs_invalidated_by_call.
24382 2013-04-25 James Greenhalgh <james.greenhalgh@arm.com>
24384 * config/aarch64/aarch64-simd.md
24385 (aarch64_simd_bsl<mode>_internal): Rewrite RTL to not use UNSPEC_BSL.
24386 (aarch64_simd_bsl<mode>): Likewise.
24387 * config/aarch64/iterators.md (unspec): Remove UNSPEC_BSL.
24389 2013-04-25 Marek Polacek <polacek@redhat.com>
24391 PR tree-optimization/57066
24392 * builtins.c (fold_builtin_logb): Return +Inf for -Inf.
24394 2013-04-25 James Greenhalgh <james.greenhalgh@arm.com>
24396 * config/aarch64/aarch64-simd.md (neg<mode>2): Use VDQ iterator.
24398 2013-04-25 James Greenhalgh <james.greenhalgh@arm.com>
24400 * config/aarch64/aarch64-builtins.c
24401 (aarch64_fold_builtin): New.
24402 * config/aarch64/aarch64-protos.h (aarch64_fold_builtin): New.
24403 * config/aarch64/aarch64.c (TARGET_FOLD_BUILTIN): Define.
24404 * config/aarch64/aarch64-simd-builtins.def (abs): New.
24405 * config/aarch64/arm_neon.h
24406 (vabs<q>_<f32, 64>): Implement using __builtin_aarch64_fabs.
24408 2013-04-25 James Greenhalgh <james.greenhalgh@arm.com>
24409 Tejas Belagod <tejas.belagod@arm.com>
24411 * config/aarch64/aarch64-builtins.c
24412 (aarch64_gimple_fold_builtin): New.
24413 * config/aarch64/aarch64-protos.h (aarch64_gimple_fold_builtin): New.
24414 * config/aarch64/aarch64-simd-builtins.def (addv): New.
24415 * config/aarch64/aarch64-simd.md (addpv4sf): New.
24416 (addvv4sf): Update.
24417 * config/aarch64/aarch64.c (TARGET_GIMPLE_FOLD_BUILTIN): Define.
24419 2013-04-25 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
24421 * config/aarch64/aarch64.md
24422 (*cmp_swp_<optab><ALLX:mode>_shft_<GPI:mode>): New pattern.
24424 2013-04-25 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
24426 * config/aarch64/aarch64.md (*ngc<mode>): New pattern.
24427 (*ngcsi_uxtw): New pattern.
24429 2013-04-25 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
24430 Julian Brown <julian@codesourcery.com>
24432 * config/arm/arm.c (neon_builtin_type_mode): Add T_V4HF.
24433 (TB_DREG): Add T_V4HF.
24434 (v4hf_UP): New macro.
24435 (neon_itype): Add NEON_FLOAT_WIDEN, NEON_FLOAT_NARROW.
24436 (arm_init_neon_builtins): Handle NEON_FLOAT_WIDEN, NEON_FLOAT_NARROW.
24437 Handle initialisation of V4HF. Adjust initialisation of reinterpret
24439 (arm_expand_neon_builtin): Handle NEON_FLOAT_WIDEN, NEON_FLOAT_NARROW.
24440 (arm_vector_mode_supported_p): Handle V4HF.
24441 (arm_mangle_map): Handle V4HFmode.
24442 * config/arm/arm.h (VALID_NEON_DREG_MODE): Add V4HF.
24443 * config/arm/arm_neon_builtins.def: Add entries for
24444 vcvtv4hfv4sf, vcvtv4sfv4hf.
24445 * config/arm/neon.md (neon_vcvtv4sfv4hf): New pattern.
24446 (neon_vcvtv4hfv4sf): Likewise.
24447 * config/arm/neon-gen.ml: Handle half-precision floating point
24449 * config/arm/neon-testgen.ml: Handle Requires_FP_bit feature.
24450 * config/arm/arm_neon.h: Regenerate.
24451 * config/arm/neon.ml (type elts): Add F16.
24452 (type vectype): Add T_float16x4, T_floatHF.
24453 (type vecmode): Add V4HF.
24454 (type features): Add Requires_FP_bit feature.
24455 (elt_width): Handle F16.
24456 (elt_class): Likewise.
24457 (elt_of_class_width): Likewise.
24458 (mode_of_elt): Refactor.
24459 (type_for_elt): Handle F16, fix error messages.
24460 (vectype_size): Handle T_float16x4.
24461 (vcvt_sh): New function.
24462 (ops): Add entries for vcvt_f16_f32, vcvt_f32_f16.
24463 (string_of_vectype): Handle T_floatHF, T_float16, T_float16x4.
24464 (string_of_mode): Handle V4HF.
24465 * doc/arm-neon-intrinsics.texi: Regenerate.
24467 2013-04-25 James Greenhalgh <james.greenhalgh@arm.com>
24469 * config/aarch64/aarch64.c (aarch64_print_operand): Fix asm_fprintf
24470 format specifier in 'X' case.
24472 2013-04-25 Alan Modra <amodra@gmail.com>
24475 * config/rs6000/rs6000.md (rotlsi3_internal7): Rename to
24476 rotlsi3_internal7le and condition on !BYTES_BIG_ENDIAN.
24477 (rotlsi3_internal8be): New BYTES_BIG_ENDIAN insn.
24478 Repeat for many other rotate/shift and mask patterns using subregs.
24479 Name lshiftrt insns.
24480 (ashrdisi3_noppc64): Rename to ashrdisi3_noppc64be and condition
24481 on WORDS_BIG_ENDIAN.
24483 2013-04-25 Alan Modra <amodra@gmail.com>
24485 * config.gcc: Support little-endian powerpc-linux targets.
24486 * config/rs6000/linux.h (LINK_OS_LINUX_EMUL): Define.
24487 (LINK_OS_LINUX_SPEC): Define.
24488 * config/rs6000/linuxspe.h (TARGET_DEFAULT):
24489 Preserve MASK_LITTLE_ENDIAN.
24490 * config/rs6000/default64.h (TARGET_DEFAULT): Likewise.
24491 * config/rs6000/linuxaltivec.h (TARGET_DEFAULT): Likewise.
24492 * config/rs6000/linux64.h (OPTION_LITTLE_ENDIAN): Don't zero.
24493 (LINK_OS_LINUX_EMUL32, LINK_OS_LINUX_EMUL64): Define.
24494 (LINK_OS_LINUX_SPEC32, LINK_OS_LINUX_SPEC64): Use above.
24495 * config/rs6000/rs6000.c (output_toc): Don't use .tc for TARGET_ELF.
24496 Correct fp word order for little-endian. Don't shift toc entries
24497 smaller than a word for little-endian.
24498 * config/rs6000/rs6000.md (bswaphi2, bswapsi2 split): Comment.
24499 (bswapdi2 splits): Correct low-part subreg for little-endian.
24500 Remove wrong BYTES_BIG_ENDIAN tests, and rename vars to remove
24501 low/high where such is correct only for be.
24502 * config/rs6000/sysv4.h (SUBTARGET_OVERRIDE_OPTIONS): Allow
24503 little-endian for -mcall-aixdesc.
24505 2013-04-25 Alan Modra <amodra@gmail.com>
24507 * config/rs6000/rs6000.c (rs6000_secondary_reload_inner): Use
24508 replace_equiv_address_nv.
24510 2013-04-25 Alan Modra <amodra@gmail.com>
24512 * config/rs6000/rs6000.c (rs6000_emit_set_long_const): Tidy.
24514 2013-04-24 Vladimir Makarov <vmakarov@redhat.com>
24517 2013-04-24 Vladimir Makarov <vmakarov@redhat.com>
24518 * rtl.h (struct rtx_def): ...
24520 2013-04-24 Vladimir Makarov <vmakarov@redhat.com>
24522 PR rtl-optimizations/57046
24523 * lra-constraints (split_reg): Set up lra_risky_transformations_p
24524 for multi-reg splits.
24526 2013-04-24 H.J. Lu <hongjiu.lu@intel.com>
24528 * config/i386/x86-64.h (ASM_SPEC): Support -mx32.
24530 2013-04-24 Sterling Augustine <saugustine@google.com>
24532 * dwarf2out.c (skeleton_debug_str_hash, add_skeleton_AT_string)
24533 (comp_dir_string, debug_str_dwo_section): New.
24534 (DEBUG_STR_DWO_SECTION): Rename to ...
24535 (DEBUG_DWO_STR_SECTION): ... this.
24536 (DEBUG_NORM_STR_SECTION): Delete.
24537 (DEBUG_STR_SECTION, DEBUG_STR_SECTION_FLAGS): Edit definitions.
24538 (DEBUG_STR_DWO_SECTION_FLAGS): New.
24539 (find_AT_string): Move most logic to ...
24540 (find_AT_string_in_table): ... here. New.
24541 (add_top_level_skeleton_die_attrs): Call comp_dir_string and
24542 add_skeleton_AT_string. Delete logic.
24543 (output_skeleton_debug_sections): Remove call to
24544 add_top_level_skeleton_die_attrs.
24545 (add_comp_dir_attribute): Move logic to comp_dir_string.
24546 (dwarf2out_init): Initialize debug_str_dwo_section.
24547 (output_indirect_string): Call find_string_form.
24548 (output_indirect_strings): Rewrite.
24549 (prune_unused_types): Empty skeleton_debug_str_hash.
24550 Call get_skeleton_type_unit and add_top_level_skeleton_die_attrs.
24551 (dwarf2out_finish): Call output_indirect_strings.
24553 2013-04-24 Paolo Carlini <paolo.carlini@oracle.com>
24555 * doc/cpp.texi: Remove __GXX_EXPERIMENTAL_CXX1Y__.
24557 2013-04-24 Vladimir Makarov <vmakarov@redhat.com>
24559 * rtl.h (struct rtx_def): Add comment for field jump.
24560 (LRA_SUBREG_P): New macro.
24561 * recog.c (register_operand): Check LRA_SUBREG_P.
24562 * lra.c (lra): Add note at the end of RTL code. Align non-empty
24564 * lra-spills.c (lra_spill): Align stack after spilling pseudos.
24565 (lra_final_code_change): Skip subreg change for operators.
24566 * lra-eliminations.c (eliminate_regs_in_insn): Make return earlier
24567 if there are no operand changes.
24568 * lra-constraints.c (curr_insn_set): New.
24569 (match_reload): Set LRA_SUBREG_P.
24570 (emit_spill_move): Ditto.
24571 (check_and_process_move): Use curr_insn_set. Process only single
24572 set insns. Don't initialize sec_mem_p and change_p.
24573 (simplify_operand_subreg): Use LRA_SUBREG_P.
24574 (reg_in_class_p): New function.
24575 (process_alt_operands): Use it. Use #if HAVE_ATTR_enabled instead
24576 of #ifdef. Add code to remove cycling.
24577 (process_address): Check EXTRA_CONSTRAINT_STR. Process even if
24578 non-null disp. Reload inner instead of disp when base and index
24579 are null. Try to put lo_sum into register.
24580 (EBB_PROBABILITY_CUTOFF): Redefine probability in percents.
24581 (check_and_process_move): Move code for move cost check to
24582 simple_move_p. Remove equiv_substitution.
24583 (simple_move_p): New function.
24584 (curr_insn_transform): Initialize sec_mem_p and change_p. Set up
24585 curr_insn_set. Call check_and_process_move only for single set
24586 insns. Use the new function. Move call of check_and_process_move
24587 after operand equiv substitution and address process.
24589 2013-04-24 James Greenhalgh <james.greenhalgh@arm.com>
24591 * config/aarch64/arm_neon.h (vld1<q>_lane*): Fix constraints.
24592 (vld1<q>_dup_<sufp><8, 16, 32, 64>): Likewise.
24593 (vld1<q>_<sufp><8, 16, 32, 64>): Likewise.
24595 2013-04-24 Paolo Carlini <paolo.carlini@oracle.com>
24597 * doc/cpp.texi: Document __GXX_EXPERIMENTAL_CXX1Y__.
24599 2013-04-24 Marek Polacek <polacek@redhat.com>
24601 * tree-scalar-evolution.h (analyze_scalar_evolution): Remove.
24602 * tree-scalar-evolution.c (get_exit_conditions_rec): Likewise.
24603 (select_loops_exit_conditions): Likewise.
24604 (number_of_iterations_for_all_loops): Likewise.
24605 (analyze_scalar_evolution_for_all_loop_phi_nodes): Likewise.
24606 (scev_analysis): Likewise.
24608 2013-04-02 Catherine Moore <clm@codesourcery.com>
24609 Chao-ying Fu <fu@mips.com>
24611 * config/mips/micromips.md (jraddiusp): New pattern.
24612 * config/mips/mips.c (mips_expand_epilogue): Use the JRADDIUSP
24613 instruction if possible.
24615 2013-04-24 Alan Modra <amodra@gmail.com>
24617 * config/rs6000/driver-rs6000.c (elf_dcachebsize): Fix comment pasto.
24619 2013-04-24 Julian Brown <julian@codesourcery.com>
24620 Chung-Lin Tang <cltang@codesourcery.com>
24622 * dwarf2out.c (gen_enumeration_type_die): Fix HOST_BITS_PER_WIDE_INT
24623 dependency behavior in enumeration type DIE generation. Add TODO note
24624 to comments about future DW_FORM_sdata/udata re-work of related code.
24626 2013-04-23 Lawrence Crowl <crowl@google.com>
24628 * Makefile.in: Update as needed below.
24630 * hash-table.h (class hash_table):
24631 Correct many methods with parameter types compare_type to the correct
24632 value_type. (Correct code was unlikely to notice the change.)
24633 (hash_table::elements_with_deleted) New.
24634 (class hashtable::iterator): New.
24635 (hashtable::begin()): New.
24636 (hashtable::end()): New.
24637 (FOR_EACH_HASH_TABLE_ELEMENT): New.
24639 * statistics.c (statistics_hashes):
24640 Change type to hash_table. Update dependent calls and types.
24642 * tree-into-ssa.c (var_infos):
24643 Change type to hash_table. Update dependent calls and types.
24645 * tree-ssa-coalesce.c (struct coalesce_list_d.list):
24646 Change type to hash_table. Update dependent calls and types.
24648 * tree-ssa-loop-im.c (struct mem_ref.refs):
24649 Change type to hash_table. Update dependent calls and types.
24651 * tree-ssa-reassoc.c (undistribute_ops_list::ctable):
24652 Change type to hash_table. Update dependent calls and types.
24654 * tree-ssa-sccvn.c (vn_tables_s::nary):
24655 Change type to hash_table. Update dependent calls and types.
24656 (vn_tables_s::phis): Likewise.
24657 (vn_tables_s::references): Likewise.
24659 * tree-ssa-sccvn.h (vn_nary_op_eq): Update parameter and return types.
24660 (vn_reference_eq): Update parameter and return types.
24662 * tree-ssa-structalias.c (pointer_equiv_class_table):
24663 Change type to hash_table. Update dependent calls and types.
24664 (location_equiv_class_table): Likewise.
24666 * tree-vect-data-refs.c: Consequential changes for making
24667 peeling a hash_table.
24669 * tree-vect-loop.c (new_loop_vec_info): Dependent hash_table update.
24670 (destroy_loop_vec_info): Dependent hash_table update.
24672 * tree-vectorizer.h (peeling_htab):
24673 Change type to hash_table. Update dependent calls and types.
24675 2013-04-23 Shiva Chen <shiva0217@gmail.com>
24677 * lra-assigns.c (find_hard_regno_for): Use lra_reg_val_equal_p
24678 to check the register content is equal or not.
24679 * lra-constraints.c (match_reload): Use lra_assign_reg_val
24680 to assign register content record.
24681 * lra-eliminations.c (update_reg_eliminate): Use
24682 lra_update_reg_val_offset to update register content offset.
24683 * lra-int.h (struct lra_reg): Add offset member.
24684 (lra_reg_val_equal_p): New static inline function.
24685 (lra_update_reg_val_offset): New static inline function.
24686 (lra_assign_reg_val): New static inline function.
24687 * lra.c (lra_create_new_reg): Use lra_assign_reg_val
24688 to assign register content record.
24689 (initialize_lra_reg_info_element): Initial offset to zero.
24691 2013-04-23 Catherine Moore <clm@codesourcery.com>
24693 * config/mips/mips.md (*movhi_internal, *movqi_internal): New
24694 operands. Record compression.
24696 2013-04-23 Xinliang David Li <davidxl@google.com>
24698 * cfghhooks.c (dump_bb_for_graph): Support 'slim' graph dump.
24700 2013-04-23 Richard Biener <rguenther@suse.de>
24702 PR middle-end/57036
24703 * tree-inline.c (copy_edges_for_bb): Add can_make_abnormal_goto
24704 parameter, only add abnormal goto edges from the copied body
24705 if the call could perform abnormal gotos.
24706 (copy_cfg_body): Adjust.
24708 2013-04-23 Sofiane Naci <sofiane.naci@arm.com>
24710 * config/aarch64/aarch64.md (*mov<mode>_aarch64): Add simd attribute.
24712 2013-04-23 Andreas Schwab <schwab@linux-m68k.org>
24714 * coretypes.h (gimple_stmt_iterator): Add struct to make
24717 2013-04-23 Richard Biener <rguenther@suse.de>
24719 PR tree-optimization/57026
24720 * tree-vrp.c (simplify_conversion_using_ranges): Do not propagate
24721 from SSA names occuring in abnormal PHI nodes.
24723 2013-04-22 Andi Kleen <ak@linux.intel.com>
24725 * lto/lto.c (print_lto_report_1): Fix LTO report names.
24727 2013-04-22 Andi Kleen <ak@linux.intel.com>
24729 * lto/lto.c (print_lto_report_1): Declare early.
24730 (read_cgraph_and_symbols): Call print_lto_report_1 early.
24732 2013-04-22 Andi Kleen <ak@linux.intel.com>
24734 * common.opt (-flto-report-wpa): Add.
24735 * doc/invoke.texi (-flto-report-wpa): Add.
24736 * lto/lto.c (do_whole_program_analysis): Check for lto-report-wpa.
24739 2013-04-22 Xinliang David Li <davidxl@google.com>
24741 * graph.c (draw_cfg_node_succ_edges): Add branch probility as label.
24742 * cfghhooks.c (dump_bb_for_graph): Dump profile count and frquency.
24743 * Makefile.in: New dependency
24745 David Daney <ddaney.cavm@gmail.com>
24747 * configure.ac (gcc_cv_as_micromips_support): Use the
24748 --fatal-warnings option.
24749 * configure: Regenerate.
24751 2013-04-22 Marek Polacek <polacek@redhat.com>
24754 * tsan.c (instrument_expr): Don't instrument expression
24755 in case its size is zero.
24757 2013-04-22 Uros Bizjak <ubizjak@gmail.com>
24761 2013-03-17 Uros Bizjak <ubizjak@gmail.com>
24763 * config/alpha/alpha.c (TARGET_LRA_P): New define.
24765 2013-04-22 James Greenhalgh <james.greenhalgh@arm.com>
24767 * coretypes.h (gimple_stmt_iterator_d): Forward declare.
24768 (gimple_stmt_iterator): New typedef.
24769 * gimple.h (gimple_stmt_iterator): Rename to...
24770 (gimple_stmt_iterator_d): ... This.
24771 * doc/tm.texi.in (TARGET_FOLD_BUILTIN): Detail restriction that
24772 trees be valid for GIMPLE and GENERIC.
24773 (TARGET_GIMPLE_FOLD_BUILTIN): New.
24774 * gimple-fold.c (gimple_fold_call): Call target hook
24775 gimple_fold_builtin.
24776 * hooks.c (hook_bool_gsiptr_false): New.
24777 * hooks.h (hook_bool_gsiptr_false): New.
24778 * target.def (fold_stmt): New.
24779 * doc/tm.texi: Regenerate.
24781 2013-04-22 Vladimir Makarov <vmakarov@redhat.com>
24784 * lra-eliminations.c (mark_not_eliminable): Prevent elimination of
24785 a set sp if no stack realignment.
24787 2013-04-22 Nick Clifton <nickc@redhat.com>
24789 * config.gcc (tilegx-linux): Extend extra_objs rather than
24791 (tilepro-linux): Likewise.
24793 2013-04-22 James Greenhalgh <james.greenhalgh@arm.com>
24795 * config/aarch64/aarch64-builtins.c
24797 (CF0, CF1, CF2, CF3, CF4, CF10): New.
24798 (VAR<1-12>): Add MAP parameter.
24799 (BUILTIN_*): Likewise.
24800 * config/aarch64/aarch64-simd-builtins.def: Set MAP parameter.
24801 * config/aarch64/aarch64-simd.md (aarch64_sshl_n<mode>): Remove.
24802 (aarch64_ushl_n<mode>): Likewise.
24803 (aarch64_sshr_n<mode>): Likewise.
24804 (aarch64_ushr_n<mode>): Likewise.
24805 (aarch64_<maxmin><mode>): Likewise.
24806 (aarch64_sqrt<mode>): Likewise.
24807 * config/aarch64/arm_neon.h (vshl<q>_n_*): Use new builtin names.
24808 (vshr<q>_n_*): Likewise.
24810 2013-04-22 James Greenhalgh <james.greenhalgh@arm.com>
24812 * config/aarch64/aarch64-builtins.c
24813 (aarch64_simd_builtin_type_mode): Handle SF types.
24815 (BUILTIN_GPF): Define.
24816 (aarch64_init_simd_builtins): Handle SF types.
24817 * config/aarch64/aarch64-simd-builtins.def (frecpe): Add support.
24818 (frecps): Likewise.
24819 (frecpx): Likewise.
24820 * config/aarch64/aarch64-simd.md
24821 (simd_types): Update simd_frcp<esx> to simd_frecp<esx>.
24822 (aarch64_frecpe<mode>): New.
24823 (aarch64_frecps<mode>): Likewise.
24824 * config/aarch64/aarch64.md (unspec): Add UNSPEC_FRECP<ESX>.
24825 (v8type): Add frecp<esx>.
24826 (aarch64_frecp<FRECP:frecp_suffix><mode>): New.
24827 (aarch64_frecps<mode>): Likewise.
24828 * config/aarch64/iterators.md (FRECP): New.
24829 (frecp_suffix): Likewise.
24830 * config/aarch64/arm_neon.h
24831 (vrecp<esx><qsd>_<fd><32, 64>): Convert to using builtins.
24833 2013-04-22 Christian Bruel <christian.bruel@st.com>
24836 * config/sh/sh.h (enum reg_class): Remove DF_HI_REGS.
24837 (REG_CLASS_NAMES): Idem.
24838 (REG_CLASS_CONTENTS): Idem.
24839 (REGCLASS_HAS_FP_REG): Idem.
24840 * config/sh/sh.c (sh_cannot_change_mode_class): Idem.
24841 (sh_conditional_register_usage): Idem.
24843 2013-04-21 Jeff Law <law@redhat.com>
24845 * tree-ssa-forwprop.c (simplify_conversion_from_bitmask): New function.
24846 (ssa_forward_propagate_and_combine): Use it.
24848 2013-04-19 Vladimir Makarov <vmakarov@redhat.com>
24850 * lra.c: Update the flow chart diagram.
24852 2013-04-19 Vladimir Makarov <vmakarov@redhat.com>
24854 PR rtl-optimization/56847
24855 * lra-constraints.c (process_alt_operands): Discourage alternative
24856 with non-matche doffsettable memory constraint fro memory with
24859 2013-04-19 Richard Biener <rguenther@suse.de>
24861 PR tree-optimization/56982
24862 * builtins.def (BUILT_IN_LONGJMP): longjmp is not a leaf
24864 * gimplify.c (gimplify_call_expr): Notice special calls.
24865 (gimplify_modify_expr): Likewise.
24866 * tree-cfg.c (make_abnormal_goto_edges): Handle setjmp-like
24867 abnormal control flow receivers.
24868 (call_can_make_abnormal_goto): Handle cfun->calls_setjmp
24869 in the same way as cfun->has_nonlocal_labels.
24870 (gimple_purge_dead_abnormal_call_edges): Likewise.
24871 (stmt_starts_bb_p): Make setjmp-like abnormal control flow
24872 receivers start a basic-block.
24874 2013-04-19 Richard Biener <rguenther@suse.de>
24876 * tree-vectorizer.h (struct _slp_instance): Move load_permutation
24878 (struct _slp_tree): ... here. Make it a vector of unsigned ints.
24879 (SLP_INSTANCE_LOAD_PERMUTATION): Remove.
24880 (SLP_TREE_LOAD_PERMUTATION): Add.
24881 (vect_transform_slp_perm_load): Adjust prototype.
24882 * tree-vect-slp.c (vect_free_slp_tree): Adjust.
24883 (vect_free_slp_instance): Likewise.
24884 (vect_create_new_slp_node): Likewise.
24885 (vect_supported_slp_permutation_p): Remove.
24886 (vect_slp_rearrange_stmts): Adjust.
24887 (vect_supported_load_permutation_p): Likewise. Inline
24888 vect_supported_slp_permutation_p here.
24889 (vect_analyze_slp_instance): Compute load permutations per
24890 slp node instead of per instance.
24891 (vect_get_slp_defs): Adjust.
24892 (vect_transform_slp_perm_load): Likewise.
24893 (vect_schedule_slp_instance): Remove redundant code.
24894 (vect_schedule_slp): Remove hack for PR56270, add it ...
24895 * tree-vect-stmts.c (vectorizable_load): ... here, do not
24896 CSE loads for SLP. Adjust.
24898 2013-04-19 Greta Yorsh <Greta.Yorsh@arm.com>
24900 * config/arm/arm.c (load_multiple_sequence, ldm_stm_operation_p): Fix
24901 spelling in two comments.
24903 2013-04-19 Greta Yorsh <Greta.Yorsh@arm.com>
24906 * config/arm/arm.c (load_multiple_sequence): Require SP
24907 as base register for loads if SP is in the register list.
24909 2013-04-19 Martin Jambor <mjambor@suse.cz>
24911 PR tree-optimization/56718
24912 * ipa-cp.c (ipa_value_from_known_type_jfunc): Moved...
24913 * ipa-prop.c (ipa_binfo_from_known_type_jfunc): ...here, renamed
24914 and made public. Adjusted all callers.
24915 (ipa_intraprocedural_devirtualization): New function.
24916 * ipa-prop.h (ipa_binfo_from_known_type_jfunc): Declare.
24917 (ipa_intraprocedural_devirtualization): Likewise.
24918 * Makefile.in (tree-ssa-pre.o): Add ipa-prop.h to dependencies.
24920 2013-04-19 Richard Biener <rguenther@suse.de>
24922 PR tree-optimization/57000
24923 * tree-ssa-reassoc.c (pass_reassoc): Add TODO_update_ssa_only_virtuals.
24925 2013-04-19 Terry Guo <terry.guo@arm.com>
24927 * config/arm/cortex-m4-fpu.md (cortex_m4_v): Delete cpu unit.
24929 (cortex_m4_v_a, cortex_m4_v_b): ... new cpu units.
24930 (cortex_m4_v, cortex_m4_exa_va, cortex_m4_exb_vb): New reservations.
24931 (cortex_m4_fmacs): Use new reservations.
24932 (cortex_m4_f_load, cortex_m4_f_store): Likewise.
24934 2013-04-18 Vladimir Makarov <vmakarov@redhat.com>
24936 PR rtl-optimization/56999
24937 * lra-coalesce.c (coalescable_pseudo_p): Remove 2nd parameter and
24939 (lra_coalesce): Remove split_origin_bitmap and related code.
24940 * lra.c (lra): Coalesce after undoing inheritance. Recreate live
24941 ranges if necessary.
24943 2013-04-18 Uros Bizjak <ubizjak@gmail.com>
24945 * config/i386/i386.c (x86_64_ms_sysv_extra_clobbered_registers):
24947 (ix86_expand_call): Remove clobbered_registers array and use
24948 x86_64_ms_sysv_extra_clobbered_registers instead.
24949 * config/i386/i386.h (x86_64_ms_sysv_extra_clobbered_registers):
24951 * config/i386/predicates.md (call_rex64_ms_sysv_operation): New
24953 * config/i386/i386.md (*call_rex64_ms_sysv): Use
24954 call_rex64_ms_sysv_operation predicate. Remove explicit clobbers.
24955 (*call_value_rex64_ms_sysv): Ditto.
24957 2013-04-18 Cary Coutant <ccoutant@google.com>
24959 * dwarf2out.c (output_pubnames): Check die_perennial_p of
24960 parent instead of die_mark.
24962 2013-04-18 Diego Novillo <dnovillo@google.com>
24964 * gimple.c (create_gimple_tmp): New.
24965 (get_expr_type): New.
24966 (build_assign): New.
24967 (build_type_cast): New.
24968 * gimple.h (enum ssa_mode): Define.
24969 (gimple_seq_set_location): New.
24970 * asan.c (build_check_stmt): Change some gimple_build_* calls
24971 to use build_assign and build_type_cast.
24973 2013-04-18 Richard Biener <rguenther@suse.de>
24975 * tree-vect-data-refs.c (vect_analyze_group_access): Properly
24976 handle negative step. Remove redundant checks.
24977 (vect_create_data_ref_ptr): Avoid ICEs with non-constant steps.
24978 * tree-vect-stmts.c (vectorizable_load): Instead of asserting
24979 for negative step and grouped loads fail to vectorize.
24981 2013-04-18 Steven Bosscher <steven@gcc.gnu.org>
24983 * emit-rtl.c (reset_insn_used_flags): New function.
24984 (reset_all_used_flags): Use it.
24985 (verify_insn_sharing): New function.
24986 (verify_rtl_sharing): Fix verification for SEQUENCEs.
24988 2013-04-18 Jakub Jelinek <jakub@redhat.com>
24990 PR tree-optimization/56984
24991 * tree-vrp.c (register_edge_assert_for_2): For (x >> M) < N
24992 and (x >> M) >= N don't register any assertion if N << M is the
24995 2013-04-18 Steven Bosscher <steven@gcc.gnu.org>
24997 * lower-subreg.c (resolve_simple_move): If called self-recursive,
24998 do not delete_insn insns that have not yet been emitted, only
24999 unlink them with remove_insn.
25000 * df-scan.c (df_insn_delete): Revert r197492.
25002 2013-04-17 Steven Bosscher <steven@gcc.gnu.org>
25004 * emit-rtl.c (link_insn_into_chain): Handle chaining of SEQUENCEs.
25005 * reorg.c (emit_delay_sequence): Simplify with emit-rtl API.
25007 2013-04-17 Greta Yorsh <Greta.Yorsh@arm.com>
25009 * config/arm/arm.md (movsicc_insn): Convert define_insn into
25010 define_insn_and_split.
25011 (and_scc,ior_scc,negscc): Likewise.
25012 (cmpsi2_addneg, subsi3_compare): Convert to named patterns.
25014 2013-04-17 Greta Yorsh <Greta.Yorsh@arm.com>
25016 * config/arm/arm.c (use_return_insn): Return 0 for targets that
25017 can benefit from using a sequence of LDRD instructions in epilogue
25018 instead of a single LDM instruction.
25020 2013-04-17 Manuel López-Ibáñez <manu@gcc.gnu.org>
25023 * doc/extend.texi: Fix typo.
25025 2013-04-17 Richard Biener <rguenther@suse.de>
25027 * tree-vect-slp.c (vect_build_slp_tree_1): Split out from ...
25028 (vect_build_slp_tree): ... here.
25029 (vect_build_slp_tree_1): Compute which stmts of the SLP group
25030 match. Remove special-casing of mismatched complex loads.
25031 (vect_build_slp_tree): Based on the result from vect_build_slp_tree_1
25032 re-try the match with swapped commutative operands.
25033 (vect_supported_load_permutation_p): Remove special-casing of
25034 mismatched complex loads.
25035 (vect_analyze_slp_instance): Adjust.
25037 2013-04-17 Richard Biener <rguenther@suse.de>
25039 PR rtl-optimization/56921
25040 * cfgloop.h (struct loop): Add simple_loop_desc member.
25041 (struct niter_desc): Mark with GTY(()).
25042 (simple_loop_desc): Do not use aux field but simple_loop_desc.
25043 * loop-iv.c (get_simple_loop_desc): Likewise.
25044 (free_simple_loop_desc): Likewise.
25047 2013-04-16 Richard Biener <rguenther@suse.de>
25049 PR rtl-optimization/56921
25050 * loop-init.c (pass_rtl_move_loop_invariants): Add
25051 TODO_do_not_ggc_collect to todo_flags_finish.
25052 (pass_rtl_unswitch): Same.
25053 (pass_rtl_unroll_and_peel_loops): Same.
25054 (pass_rtl_doloop): Same.
25056 2013-04-17 Eric Botcazou <ebotcazou@adacore.com>
25058 * tree-ssa-alias.c (nonoverlapping_component_refs_of_decl_p): New.
25059 (decl_refs_may_alias_p): Add REF1 and REF2 parameters.
25060 Use nonoverlapping_component_refs_of_decl_p to disambiguate component
25062 (refs_may_alias_p_1): Adjust call to decl_refs_may_alias_p.
25063 * tree-streamer.c (record_common_node): Adjust reference in comment.
25065 2013-04-17 Terry Guo <terry.guo@arm.com>
25067 * config/arm/cortex-m4.md: Add a new bypass.
25069 2013-04-16 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
25071 * config/aarch64/aarch64.md (*adds_<optab><mode>_multp2):
25073 (*subs_<optab><mode>_multp2): New pattern.
25074 (*adds_<optab><ALLX:mode>_<GPI:mode>): New pattern.
25075 (*subs_<optab><ALLX:mode>_<GPI:mode>): New pattern.
25077 2013-04-16 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
25079 * config/aarch64/aarch64.md (*adds_mul_imm_<mode>): New pattern.
25080 (*subs_mul_imm_<mode>): New pattern.
25082 2013-04-16 David Edelsohn <dje.gcc@gmail.com>
25085 * config/rs6000/vsx.md (vsx_mov<mode>): Add j->r alternative.
25086 (vsx_movti_64bit): Change j->wa to O->wa. Add n->r alternative.
25087 (vsx_movti_32bit): Change j->wa to O->wa.
25089 2013-04-16 Richard Biener <rguenther@suse.de>
25091 PR rtl-optimization/56921
25092 * loop-init.c (pass_rtl_move_loop_invariants): Add
25093 TODO_do_not_ggc_collect to todo_flags_finish.
25094 (pass_rtl_unswitch): Same.
25095 (pass_rtl_unroll_and_peel_loops): Same.
25096 (pass_rtl_doloop): Same.
25098 2013-04-16 Greta Yorsh <Greta.Yorsh@arm.com>
25100 * config/arm/arm.c (emit_multi_reg_push): New declaration
25101 for an existing function.
25102 (arm_emit_strd_push): New function.
25103 (arm_expand_prologue): Used here.
25104 (arm_emit_ldrd_pop): New function.
25105 (arm_expand_epilogue): Used here.
25106 (arm_get_frame_offsets): Update condition.
25107 (arm_emit_multi_reg_pop): Add a special case for load of a single
25108 register with writeback.
25110 2013-04-16 Uros Bizjak <ubizjak@gmail.com>
25112 * doc/invoke.texi (i386 Option): Reword -mstack-protector-guard
25115 2013-04-16 Richard Biener <rguenther@suse.de>
25117 PR tree-optimization/56756
25118 * tree-ssa-loop-im.c (struct first_mem_ref_loc_1): New functor.
25119 (first_mem_ref_loc): New.
25120 (execute_sm): Place the load temporarily before a previous
25121 access instead of in the latch edge to ensure its SSA dependencies
25122 are defined at points dominating the load.
25124 2013-04-16 Steven Bosscher <steven@gcc.gnu.org>
25126 * cfgrtl.c (cfg_layout_merge_blocks): Revert r184005, implement
25127 correct fix by moving header and footer insn to the footer of
25128 the merged basic block. Clear BB_END of the merged-away block.
25130 PR middle-end/43631
25131 * emit-rtl.c (make_note_raw): New function.
25132 (link_insn_into_chain): New static inline function.
25133 (add_insn): Use it.
25134 (add_insn_before, add_insn_after): Factor insn chain linking code...
25135 (add_insn_before_nobb, add_insn_after_nobb): ...here, new functions
25136 using link_insn_into_chain.
25137 (note_outside_basic_block_p): New helper function for emit_note_after
25138 and emit_note_before.
25139 (emit_note_after): Use nobb variant of add_insn_after if the note
25140 should not be contained in a basic block.
25141 (emit_note_before): Use nobb variant of add_insn_before if the note
25142 should not be contained in a basic block.
25143 (emit_note_copy): Use make_note_raw.
25144 (emit_note): Likewise.
25145 * bb-reorder.c (insert_section_boundary_note): Remove hack to set
25146 BLOCK_FOR_INSN to NULL manually for NOTE_INSN_SWITCH_TEXT_SECTIONS.
25147 * jump.c (cleanup_barriers): Use reorder_insns_nobb to avoid making
25148 the moved barrier the tail of the basic block it follows.
25149 * var-tracking.c (pass_variable_tracking): Add TODO_verify_flow.
25151 2013-04-15 Jakub Jelinek <jakub@redhat.com>
25153 PR tree-optimization/56962
25154 * gimple-ssa-strength-reduction.c (record_increment): Only set
25155 initializer if gimple_assign_rhs_code is {,POINTER_}PLUS_EXPR and
25156 either rhs1 or rhs2 is equal to c->base_expr.
25158 2013-04-15 Richard Biener <rguenther@suse.de>
25160 PR tree-optimization/56933
25161 * tree-vectorizer.h (struct _stmt_vec_info): Remove read_write_dep
25163 (GROUP_READ_WRITE_DEPENDENCE): Remove.
25164 (STMT_VINFO_GROUP_READ_WRITE_DEPENDENCE): Likewise.
25165 * tree-vect-data-refs.c (vect_analyze_group_access): Move
25166 dependence check ...
25167 vect_analyze_data_ref_dependence (vect_analyze_data_ref_dependence):
25169 * tree-vect-stmts.c (new_stmt_vec_info): Do not initialize
25170 GROUP_READ_WRITE_DEPENDENCE.
25172 2013-04-15 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
25174 * emit-rtl.c (reset_all_used_flags): New function.
25175 (verify_rtl_sharing): Call reset_all_used_flags before and after
25176 performing the checks.
25178 2013-04-15 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
25180 * config/arm/arm.c (const_ok_for_dimode_op): Handle AND case.
25181 * config/arm/arm.md (*anddi3_insn): Change to insn_and_split.
25182 * config/arm/constraints.md (De): New constraint.
25183 * config/arm/neon.md (anddi3_neon): Delete.
25184 (neon_vand<mode>): Expand to standard anddi3 pattern.
25185 * config/arm/predicates.md (imm_for_neon_inv_logic_operand):
25186 Move earlier in the file.
25187 (neon_inv_logic_op2): Likewise.
25188 (arm_anddi_operand_neon): New predicate.
25190 2013-04-15 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
25192 * configure.ac (gcc_cv_ld_as_needed): Set
25193 gcc_cv_ld_as_needed_option, gcc_cv_no_as_needed_option.
25194 Use -z ignore, -z record on *-*-solaris2*.
25195 (HAVE_LD_AS_NEEDED): Update comment.
25196 (LD_AS_NEEDED_OPTION, LD_NO_AS_NEEDED_OPTION): Define.
25197 * configure: Regenerate.
25198 * config.in: Regenerate.
25199 * gcc.c (init_gcc_specs) [USE_LD_AS_NEEDED]: Use
25200 LD_AS_NEEDED_OPTION, LD_NO_AS_NEEDED_OPTION.
25201 * config/sol2.h [HAVE_LD_AS_NEEDED] (USE_LD_AS_NEEDED): Define.
25202 * doc/tm.texi.in (USE_LD_AS_NEEDED): Allow for --as-needed
25203 equivalents. Fix markup.
25204 * doc/tm.texi: Regenerate.
25206 2013-04-15 Andrew Hsieh <andrewhsieh.google.com>
25208 * config/i386/i386.opt: New option mstack-protector-guard=.
25209 * config/i386/i386-opts.h: Add enum stack_protector_guard.
25210 * config/i386/i386.h: Define TARGET_SSP_GLOBAL_GUARD and
25211 TARGET_SSP_TLS_GUARD.
25212 * config/i386/i386.c (ix86_option_override_internal): Set
25213 ix86_stack_protector_guard.
25214 * config/i386/i386.md (stack_protect_set): Enable for
25215 TARGET_SSP_TLS_GUARD only.
25216 (stack_protect_set_<mode>): Ditto.
25217 (stack_protect_test): Ditto.
25218 (stack_protect_test_<mode>): Ditto.
25219 * doc/invoke.texi (i386 Option): Document.
25221 2013-04-15 Eric Botcazou <ebotcazou@adacore.com>
25224 * config/sparc/sparc.c (enum sparc_mode_class): Add H_MODE value.
25225 (S_MODES): Set H_MODE bit.
25226 (SF_MODES): Set only S_MODE and SF_MODE bits.
25227 (DF_MODES): Set SF_MODES and only D_MODE and DF_MODE bits.
25228 (sparc_init_modes) <MODE_INT>: Set H_MODE bit for sub-word modes.
25229 <MODE_VECTOR_INT>: Do not set SF_MODE for sub-word modes.
25230 <MODE_FLOAT>: Likewise.
25232 2013-04-15 Joey Ye <joey.ye@arm.com>
25234 * config/arm/arm.c (thumb_far_jump_used_p): Fix typo in comments.
25236 2013-04-15 Joey Ye <joey.ye@arm.com>
25238 * config/arm/arm.c (thumb1_final_prescan_insn): Assert lr save
25240 (thumb_far_jump_used_p): Count instruction size and set
25243 2013-04-14 Eric Botcazou <ebotcazou@adacore.com>
25245 * reorg.c (fill_simple_delay_slots): Reindent block of code.
25246 * resource.c (mark_target_live_regs): Reformat conditional block.
25248 2013-04-13 Steven Bosscher <steven@gcc.gnu.org>
25250 * sched-deps.c (deps_analyze_insn): Do not check for EH_REGION insn
25251 notes, they are emitted only just before final.
25252 * sched-int.h: Include insn-attr.h before checking INSN_SCHEDULING.
25254 2013-04-13 Steven Bosscher <steven@gcc.gnu.org>
25256 * emit-rtl.c (remove_insn): Do not call df_insn_delete here.
25257 * cfgrtl.c (delete_insn): Call it here instead.
25258 * lra-spills.c (lra_final_code_change): Use delete_insn.
25259 * haifa-sched.c (sched_remove_insn): Likewise.
25260 * sel-sched-ir.c (return_nop_to_pool): Clear INSN_DELETED_P for nops
25261 returning to the nop pool.
25262 (sel_remove_insn): Simplify the only_disconnect case via remove_insn,
25263 use delete_insn for definitive removal. Clear BLOCK_FOR_INSN.
25265 2013-04-12 Steven Bosscher <steven@gcc.gnu.org>
25267 * doc/tm.texi.in (LOOP_ALIGN): Remove loop note references.
25268 * doc/tm.texi: Regenerated.
25270 2013-04-12 Uros Bizjak <ubizjak@gmail.com>
25272 * config/i386/i386.c (ix86_hard_regno_mode_ok): Use ANY_QI_REGNO_P in
25275 2013-04-12 Steven Bosscher <steven@gcc.gnu.org>
25277 * df-core.c (df_find_def): Compare register numbers.
25278 (df_find_use): Likewise.
25280 2013-04-12 Vladimir Makarov <vmakarov@redhat.com>
25283 * config/i386/i386.c (ix86_hard_regno_mode_ok): Add
25284 lra_in_progress for return.
25286 2013-04-12 Greta Yorsh <Greta.Yorsh@arm.com>
25288 * config/arm/arm.md (mov_scc,mov_negscc,mov_notscc): Convert
25289 define_insn into define_insn_and_split and emit movsicc patterns.
25291 2013-04-12 Greta Yorsh <Greta.Yorsh@arm.com>
25293 * config/arm/arm.c (gen_operands_ldrd_strd): Initialize "base".
25295 2013-04-12 Richard Biener <rguenther@suse.de>
25297 * tree-pass.h (TODO_do_not_ggc_collect): New.
25298 * passes.c (execute_one_ipa_transform_pass): Honor
25299 TODO_do_not_ggc_collect.
25300 (execute_one_pass): Likewise.
25303 2013-04-10 Richard Biener <rguenther@suse.de>
25305 * passes.c (init_optimization_passes): Remove reload pass.
25306 * ira.c (do_reload): Merge into ...
25308 (rest_of_handle_reload): Remove.
25309 (pass_reload): Likewise.
25310 * config/i386/i386.c (ix86_option_override): Refer to ira instead
25311 of reload for vzeroupper pass placement.
25313 2013-04-12 Jakub Jelinek <jakub@redhat.com>
25315 PR tree-optimization/56918
25316 PR tree-optimization/56920
25317 * fold-const.c (int_const_binop_1): Use op1.mul_with_sign (op2, ...)
25318 instead of op1 - op2. Pass 2 * TYPE_PRECISION (type) as second
25319 argument to rshift method. For 2 * HOST_BITS_PER_WIDE_INT precision
25320 use wide_mul_with_sign method.
25322 2013-04-12 Richard Biener <rguenther@suse.de>
25324 * gimple.c (is_gimple_constant): Vector CONSTRUCTORs should
25325 not be considered a gimple constant.
25327 2013-04-12 Marc Glisse <marc.glisse@inria.fr>
25329 * fold-const.c (const_binop): Handle vector shifts by a scalar.
25330 (fold_binary_loc): Call const_binop also for mixed vector-scalar
25333 2013-04-12 Manuel López-Ibáñez <manu@gcc.gnu.org>
25334 Jakub Jelinek <jakub@redhat.com>
25336 * opts.c: Include diagnostic-color.h.
25337 (common_handle_option): Handle OPT_fdiagnostics_color_.
25338 * Makefile.in (OBJS-libcommon): Add diagnostic-color.o.
25339 (diagnostic.o, opts.o, pretty-print.o): Depend on diagnostic-color.h.
25340 (diagnostic-color.o): New.
25341 * common.opt (fdiagnostics-color, fdiagnostics-color=): New options.
25342 (diagnostic_color_rule): New enum.
25343 * dwarf2out.c (gen_producer_string): Don't print -fdiagnostics-color*.
25344 * langhooks.c (lhd_print_error_function): Add %r "locus" and %R around
25345 the location string.
25346 * diagnostic.def: Add 3rd argument to DEFINE_DIAGNOSTIC_KIND macros,
25347 either NULL, or color kind.
25348 * diagnostic-color.c: New file.
25349 * diagnostic-color.h: New file.
25350 * diagnostic-core.h (DEFINE_DIAGNOSTIC_KIND): Adjust macro for 3
25352 * doc/invoke.texi (-fdiagnostics-color): Document.
25353 * pretty-print.h (pp_show_color): Define.
25354 (struct pretty_print_info): Add show_color field.
25355 * diagnostic.c: Include diagnostic-color.h.
25356 (diagnostic_build_prefix): Adjust for 3 argument DEFINE_DIAGNOSTIC_KIND
25357 macros. Colorize error:, warning: etc. strings and also the location
25359 (diagnostic_show_locus): Colorize the caret line.
25360 * pretty-print.c: Include diagnostic-color.h.
25361 (pp_base_format): Handle %r and %R format specifiers. Colorize strings
25362 inside of %< %> quotes or quoted through q format modifier.
25364 2013-04-12 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
25366 * ifcvt.c (end_ifcvt_sequence): Mark a and b for unsharing as well.
25368 2013-04-11 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
25370 * config/aarch64/aarch64.c (aarch64_select_cc_mode): Allow NEG
25371 code in CC_NZ mode.
25372 * config/aarch64/aarch64.md (*neg_<shift><mode>3_compare0): New
25375 2013-04-11 Marek Polacek <polacek@redhat.com>
25377 PR tree-optimization/48184
25378 * params.def (PARAM_ALIGN_THRESHOLD): Increase the minimum value to 1.
25380 2013-04-11 Eric Botcazou <ebotcazou@adacore.com>
25382 * stor-layout.c (skip_simple_constant_arithmetic): Move to...
25383 * tree.c (skip_simple_constant_arithmetic): ...here and make public.
25384 (skip_simple_arithmetic): Tidy up.
25385 * tree.h (skip_simple_constant_arithmetic): Declare.
25387 2013-04-11 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
25389 * config/aarch64/aarch64.h (REVERSIBLE_CC_MODE): Define.
25391 2013-04-11 Richard Biener <rguenther@suse.de>
25393 * tree-vect-loop.c (get_initial_def_for_induction): Properly
25394 generate vector constants.
25396 2013-04-11 Richard Biener <rguenther@suse.de>
25398 PR tree-optimization/56878
25399 * tree-flow.h (outermost_invariant_loop_for_expr): Declare.
25400 * tree-ssa-loop-ivopts.c (outermost_invariant_loop_for_expr):
25402 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment):
25403 Prefer to align the DR with the most invariant base address.
25405 2013-04-11 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
25407 * opts.c (common_handle_option): Fix formatting and add FALLTHRU
25410 2013-04-11 James Greenhalgh <james.greenhalgh@arm.com>
25412 * config/aarch64/aarch64-simd.md (aarch64_vcond_internal): Fix
25413 floating-point vector comparisons against 0.
25415 2013-04-11 Jakub Jelinek <jakub@redhat.com>
25417 PR tree-optimization/56899
25418 * fold-const.c (extract_muldiv_1): Apply distributive law
25419 only if TYPE_OVERFLOW_WRAPS (ctype).
25421 2013-04-11 Bin Cheng <bin.cheng@arm.com>
25424 * ira-costs.c (scan_one_insn): Check whether the source rtx of
25425 loading has side effect.
25427 2013-04-10 Steven Bosscher <steven@gcc.gnu.org>
25429 * config/sparc/sparc.c: Include tree-pass.h.
25430 (TARGET_MACHINE_DEPENDENT_REORG): Do not redefine.
25431 (sparc_reorg): Rename to sparc_do_work_around_errata. Move to
25432 head of file. Change return type. Split off gate function.
25433 (sparc_gate_work_around_errata): New function.
25434 (pass_work_around_errata): New pass definition.
25435 (insert_pass_work_around_errata) New pass insert definition to
25436 insert pass_work_around_errata just after delayed-branch scheduling.
25437 (sparc_option_override): Insert the pass.
25438 * config/sparc/t-sparc (sparc.o): Add TREE_PASS_H dependence.
25440 2013-04-10 David S. Miller <davem@davemloft.net>
25442 * config/sparc/sparc.h (ASM_CPU_SPEC): Pass -Av8 if -mcpu=supersparc
25443 or -mcpu=hypersparc.
25445 * target.def (cstore_mode): New hook.
25446 * target.h: Include insn-codes.h
25447 * targhooks.c: Likewise.
25448 (default_cstore_mode): New function.
25449 * targhooks.h: Declare it.
25450 * doc/tm.texi.in: New hook slot for TARGET_CSTORE_MODE.
25451 * doc/tm.texi: Rebuild.
25452 * expmed.c (emit_cstore): Obtain cstore boolean result mode using
25453 target hook, rather than inspecting the insn_data.
25454 * config/sparc/sparc.c (sparc_cstore_mode): New function.
25455 (TARGET_CSTORE_MODE): Redefine.
25456 (emit_scc_insn): When TARGET_ARCH64, emit new 64-bit boolean
25458 * config/sparc/predicates.md (cstore_result_operand): New special
25460 * config/sparc/sparc.md (cstoresi4, cstoredi4, cstore<F:mode>4):
25461 Use it for operand 0.
25462 (*seqsi_special): Rewrite using 'P' mode iterator on operand 0.
25463 (*snesi_special): Likewise.
25464 (*snesi_zero): Likewise.
25465 (*seqsi_zero): Likewise.
25466 (*sltu_insn): Likewise.
25467 (*sgeu_insn): Likewise.
25468 (*seqdi_special): Make operand 0 and comparison operation be of
25470 (*snedi_special): Likewise.
25471 (*snedi_special_vis3): Likewise.
25472 (*neg_snesi_zero): Rename to *neg_snesisi_zero.
25473 (*neg_snesi_sign_extend): Rename to *neg_snesidi_zero.
25474 (*snesi_zero_extend): Delete, covered by 'P' mode iterator.
25475 (*neg_seqsi_zero): Rename to *neg_seqsisi_zero.
25476 (*neg_seqsi_sign_extend): Rename to *neg_seqsidi_zero.
25477 (*seqsi_zero_extend): Delete, covered by 'P' mode iterator.
25478 (*sltu_extend_sp64): Likewise.
25479 (*neg_sltu_insn): Rename to *neg_sltusi_insn.
25480 (*neg_sltu_extend_sp64): Rename to *neg_sltudi_insn.
25481 (*sgeu_extend_sp64): Delete, covered by 'P' mode iterator.
25482 (*neg_sgeu_insn): Rename to *neg_sgeusi_insn.
25483 (*neg_sgeu_extend_sp64): Rename to *neg_sgeudi_insn.
25485 2013-04-10 Yufeng Zhang <yufeng.zhang@arm.com>
25487 * config/aarch64/aarch64.c (aarch64_print_extension): New function.
25488 (aarch64_start_file): Use the new function.
25490 2013-04-10 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
25491 Jason Merrill <jason@redhat.com>
25493 * common.opt: Add -gdwarf.
25494 * opts.c (common_handle_option): Handle it.
25495 * gcc.c (ASM_DEBUG_SPEC): Don't expect "-2" for DWARF.
25497 2013-04-10 Richard Biener <rguenther@suse.de>
25499 * passes.c (execute_todo): Do not call ggc_collect conditional here.
25500 (execute_one_ipa_transform_pass): But unconditionally here.
25501 (execute_one_pass): And here.
25502 (init_optimization_passes): Remove reload pass.
25503 * tree-pass.h (TODO_ggc_collect): Remove.
25504 (pass_reload): Likewise.
25505 * ira.c (do_reload): Merge into ...
25507 (rest_of_handle_reload): Remove.
25508 (pass_reload): Likewise.
25509 * config/i386/i386.c (ix86_option_override): Refer to ira instead
25510 of reload for vzeroupper pass placement.
25511 * <everywhere>: Remove TODO_ggc_collect from todo_flags_start
25512 and todo_flags_finish of all passes.
25514 2013-04-10 Richard Biener <rguenther@suse.de>
25516 * tree-vectorizer.h (struct _slp_oprnd_info): Remove
25517 first_const_oprnd field, rename first_def_type to first_op_type.
25518 * tree-vect-slp.c (vect_create_oprnd_info): Adjust.
25519 (vect_get_and_check_slp_defs): Always use the type of the
25520 operand. Allow mixed vect_external_def, vect_constant_def types.
25521 (vect_get_constant_vectors): Handle mixed vect_external_def,
25522 vect_constant_def types.
25524 2013-04-10 Joern Rennecke <joern.rennecke@embecosm.com>
25526 PR tree-optimization/55524
25527 * tree-ssa-math-opts.c
25528 (convert_mult_to_fma): Don't use an fms construct
25529 when we don't have an fms operation, but fnma, and it looks
25530 likely that we'll be able to use the latter.
25532 2013-04-10 Zhouyi Zhou <yizhouzhou@ict.ac.cn>
25534 * cif-code.def (OVERWRITABLE): Correct the comment for overwritable
25536 * ipa-inline.c (can_inline_edge_p): Let dump mechanism report the
25537 inline fail caused by overwritable functions.
25539 2013-04-10 Chung-Ju Wu <jasonwucj@gmail.com>
25541 * combine.c (simplify_compare_const): Use GET_MODE_MASK to filter out
25542 unnecessary bits in the constant power of two case.
25544 2013-04-10 Richard Biener <rguenther@suse.de>
25546 * tree-vect-slp.c (vect_get_and_check_slp_defs): Remove
25547 broken code swapping operands.
25548 (vect_build_slp_tree): Do not compute load permutations here.
25549 (vect_analyze_slp_instance): Compute load permutations here,
25550 after building the SLP tree.
25552 2013-04-09 Christian Bruel <christian.bruel@st.com>
25554 * config/sh/sh.md (barrier_align): Use next/prev_active_insn instead
25555 of next/prev_real_insn.
25557 2013-04-09 Jan Hubicka <jh@suse.cz>
25559 * ipa.c (cgraph_externally_visible_p, varpool_externally_visible_p):
25560 Drop aliased parameter.
25561 (function_and_variable_visibility): Do not handle alias pairs.
25562 * cgraph.c (varpool_externally_visible_p): Update prototype.
25563 * varpool.c (varpool_add_new_variable): Update.
25565 2013-04-09 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
25567 * config/arm/arm.md (minmax_arithsi_non_canon): New pattern.
25569 2013-04-09 Steven Bosscher <steven@gcc.gnu.org>
25571 * sched-vis.c (print_pattern): Print SEQUENCE of insns as insns.
25573 * config/sparc/sparc.md: Use define_c_enum for "unspec" and "unspecv".
25575 2013-04-09 Marek Polacek <polacek@redhat.com>
25577 PR tree-optimization/48762
25578 * params.def (PARAM_MAX_CSE_INSNS): Increase the minimum value to 1.
25580 2013-04-09 Richard Biener <rguenther@suse.de>
25582 * tree-vect-slp.c (vect_get_and_check_slp_defs): Remove code
25584 (vect_build_slp_tree): Likewise.
25585 (vect_analyze_slp_cost_1, vect_analyze_slp_cost): New functions
25586 calculating the cost of a SLP instance.
25587 (vect_analyze_slp_instance): Use it from here, after building
25590 2013-04-09 Jakub Jelinek <jakub@redhat.com>
25592 PR middle-end/56883
25593 * omp-low.c (expand_omp_for_generic, expand_omp_for_static_nochunk,
25594 expand_omp_for_static_chunk): Use simple_p = true in
25595 force_gimple_operand_gsi calls when assigning to addressable decls.
25597 2013-04-09 Jeff Law <law@redhat.com>
25599 * tree-vrp.c (simplify_cond_using_ranges): Simplify test of boolean
25600 when the boolean was created by converting a wider object which
25601 had a boolean range.
25603 2013-04-09 Richard Biener <rguenther@suse.de>
25605 * tree-vectorizer.h (slp_void_p): Remove.
25606 (slp_tree): Typedef before _slp_tree declaration.
25607 (struct _slp_tree): Use a vector of slp_tree as children.
25608 (vect_get_place_in_interleaving_chain): Remove.
25609 * tree-vect-data-refs.c (vect_get_place_in_interleaving_chain):
25611 * tree-vect-slp.c (vect_get_place_in_interleaving_chain): ... here
25613 (vect_free_slp_tree, vect_print_slp_tree, vect_mark_slp_stmts,
25614 vect_mark_slp_stmts_relevant, vect_slp_rearrange_stmts,
25615 vect_detect_hybrid_slp_stmts, vect_slp_analyze_node_operations,
25616 vect_schedule_slp_instance, vect_remove_slp_scalar_calls):
25617 Use slp_node instead of slp_void_p and adjust.
25619 2013-04-09 Richard Biener <rguenther@suse.de>
25621 * tree-ssa-loop-manip.c (rewrite_into_loop_closed_ssa): Avoid
25622 work that is not necessary.
25624 2013-04-09 Jakub Jelinek <jakub@redhat.com>
25626 PR tree-optimization/56854
25627 * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Don't
25628 forward into clobber stmts if it would change MEM_REF lhs into
25631 2013-04-09 Maxim Kuvyrkov <maxim@kugelworks.com>
25633 * tree.c (type_hash_lookup, type_hash_add): Make static.
25634 * tree.h (type_hash_lookup, type_hash_add): Remove global declarations.
25636 2013-04-09 Richard Biener <rguenther@suse.de>
25638 * tree.h (unsave_expr_now): Remove.
25639 * tree-inline.c (mark_local_for_remap_r): Remove.
25640 (unsave_expr_1): Likewise.
25641 (unsave_r): Likewise.
25642 (unsave_expr_now): Likewise.
25643 * tree-ssa-copy.c (replace_exp_1): Use unshare_expr.
25644 (propagate_tree_value): Likewise.
25646 2013-04-08 Steven Bosscher <steven@gcc.gnu.org>
25648 * doc/rtl.texi (sequence): Rewrite documentation to match the
25649 current use of SEQUENCE rtl objects.
25650 * rtl.def (SEQUENCE): Likewise.
25652 * doc/rtl.texi (NOTE_INSN_EH_REGION_BEG, NOTE_INSN_EH_REGION_END):
25653 Update documentation.
25654 (NOTE_INSN_LOOP_BEG, NOTE_INSN_LOOP_END, NOTE_INSN_LOOP_CONT,
25655 NOTE_INSN_LOOP_VTOP): Remove documentation for non-existing notes.
25657 * reg-notes.def (REG_EH_CONTEXT): Remove unused note.
25659 2013-04-08 Teresa Johnson <tejohnson@google.com>
25661 * basic-block.h (GCOV_COMPUTE_SCALE): Define.
25662 * ipa-inline-analysis.c (param_change_prob): Use helper rounding divide
25664 (estimate_edge_size_and_time): Add comment to suggest using rounding
25666 (estimate_node_size_and_time): Ditto.
25667 (remap_edge_change_prob): Use helper rounding divide methods.
25668 * value-prof.c (gimple_divmod_fixed_value_transform): Ditto.
25669 (gimple_mod_pow2_value_transform): Ditto.
25670 (gimple_mod_subtract_transform): Ditto.
25671 (gimple_ic_transform): Ditto.
25672 (gimple_stringops_transform): Ditto.
25673 * stmt.c (conditional_probability): Ditto.
25674 (emit_case_dispatch_table): Ditto.
25675 * lto-cgraph.c (merge_profile_summaries): Ditto.
25676 * tree-optimize.c (execute_fixup_cfg): Ditto.
25677 * cfgcleanup.c (try_forward_edges): Ditto.
25678 * cfgloopmanip.c (scale_loop_profile): Ditto.
25680 (duplicate_loop_to_header_edge): Ditto.
25681 (lv_adjust_loop_entry_edge): Ditto.
25682 * tree-vect-loop.c (vect_transform_loop): Ditto.
25683 * profile.c (compute_branch_probabilities): Ditto.
25684 * cfgbuild.c (compute_outgoing_frequencies): Ditto.
25685 * lto-streamer-in.c (input_cfg): Ditto.
25686 * gimple-streamer-in.c (input_bb): Ditto.
25687 * ipa-cp.c (update_profiling_info): Ditto.
25688 (update_specialized_profile): Ditto.
25689 * tree-vect-loop-manip.c (slpeel_tree_peel_loop_to_edge): Ditto.
25690 * cfg.c (update_bb_profile_for_threading): Add comment to suggest using
25692 * sched-rgn.c (compute_dom_prob_ps): Ditto.
25693 (compute_trg_info): Ditto.
25694 * cfgrtl.c (force_nonfallthru_and_redirect): Ditto.
25695 (purge_dead_edges): Ditto.
25696 * loop-unswitch.c (unswitch_loop): Ditto.
25697 * cgraphclones.c (cgraph_clone_edge): Ditto.
25698 (cgraph_clone_node): Ditto.
25699 * tree-inline.c (copy_bb): Ditto.
25700 (copy_edges_for_bb): Ditto.
25701 (initialize_cfun): Ditto.
25702 (copy_cfg_body): Ditto.
25703 (expand_call_inline): Ditto.
25705 2013-04-08 Kai Tietz <ktietz@redhat.com>
25707 * config/i386/cygwin.h (EXTRA_OS_CPP_BUILTINS): Replaced
25708 TARGET_CYGWIN64 by TARGET_64BIT.
25710 2013-04-08 Joern Rennecke <joern.rennecke@embecosm.com>
25712 * config/epiphany/epiphany.md (GPR_1): New constant.
25713 (define_expand "mov<mode>cc): FAIL if gen_compare_reg returned 0.
25714 * config/epiphany/epiphany.c (gen_compare_reg):
25715 For flag_finite_math_only, avoid swapping operands when r0 and/or r1
25716 is already in place.
25717 Use GPR_0 / GPR_1 instead of 0/1 for r0/r1 register numbers.
25718 Don't require being called during rtl expansion; If y operlaps r0,
25720 (epiphany_compute_frame_size, epiphany_expand_prologue): Use GPR_1.
25721 (epiphany_expand_epilogue): Likewise.
25723 * config/epiphany/epiphany.c (epiphany_select_cc_mode):
25724 Don't use CC_FPmode for ORDERED / UNORDERED.
25725 * config/epiphany/epiphany.md (cmpsf_ord): Make pattern unconditional.
25727 * config/epiphany/constraints.md (CnL): New constraint.
25728 * config/epiphany/epiphany.md (addsi3_i): Add r/r/CnL alternative.
25729 * config/epiphany/predicates.md (add_operand): Allow 1024.
25731 * config/epiphany/epiphany.md (logical_op): New code iterator.
25732 (op_mnc): New code attribute.
25733 (<op_mnc>_f, mov_f, cstoresi4): New patterns.
25734 (mov_f+1, mov_f+2): New peephole2 patterns.
25736 * config/epiphany/epiphany.md (mov_f+2): New peephole2 pattern.
25737 (cstoresi4): Also allow re-use of zero result when doing a NE
25738 comparison to a non-zero operand.
25739 Use (clobber (scratch)) for first insn if the gpr output is not needed.
25741 * config/epiphany/epiphany.md (<insn_opname>v2si3):
25742 Use gen_addsi3_i / gen_subsi3_i.
25744 2013-04-08 Jakub Jelinek <jakub@redhat.com>
25748 * tree-eh.c (optimize_clobbers): Only remove clobbers if bb doesn't
25749 contain anything but clobbers, at most one __builtin_stack_restore,
25750 optionally debug stmts and final resx, and if it has at least one
25751 incoming EH edge. Don't check for SSA_NAME on LHS of a clobber.
25752 (sink_clobbers): Don't check for SSA_NAME on LHS of a clobber.
25753 Instead of moving clobbers with MEM_REF LHS with SSA_NAME address
25754 which isn't defaut definition, remove them.
25755 (unsplit_eh, cleanup_empty_eh): Use single_{pred,succ}_{p,edge}
25756 instead of EDGE_COUNT comparisons or EDGE_{PRED,SUCC}.
25757 * tree-ssa-ccp.c (execute_fold_all_builtins): Remove clobbers
25758 with MEM_REF LHS with SSA_NAME address.
25760 2013-04-08 Jeff Law <law@redhat.com>
25762 * gimple.c (canonicalize_cond_expr_cond): Rewrite x ^ y into x != y.
25764 2013-04-08 Richard Biener <rguenther@suse.de>
25766 * gimple-pretty-print.c (debug_gimple_stmt): Do not print
25768 * tree-vect-loop.c (vect_determine_vectorization_factor): Dump
25769 determined vector type.
25770 (vect_analyze_data_refs): Likewise.
25771 (vect_get_new_vect_var): Adjust.
25772 (vect_create_destination_var): Preserve SSA name versions.
25773 * tree-vect-stmts.c (get_vectype_for_scalar_type_and_size): Do
25774 not dump anything here.
25776 2013-04-08 Joern Rennecke <joern.rennecke@embecosm.com>
25778 * config/epiphany/epiphany.h (struct GTY (()) machine_function):
25779 Add member lr_slot_known.
25780 * config/epiphany/epiphany.md (reload_insi_ra): Compute lr_slot_offs
25782 * config/epiphany/epiphany.c (epiphany_compute_frame_size):
25783 Remove code that sets lr_slot_offset according to what a previous
25784 version of epiphany_emit_save_restore used to do.
25785 (epiphany_emit_save_restore): When doing an lr save or restore,
25786 set/verify lr_slot_known and lr_slot_offset.
25788 2013-04-08 Xinyu Qi <xyqi@marvell.com>
25791 * config/arm/arm.h (REG_CLASS_CONTENTS): Include IWMMXT_GR_REGS
25794 2013-04-08 Richard Biener <rguenther@suse.de>
25796 * alias.c (find_base_term): Fix thinko in previous change.
25798 2013-04-08 Jakub Jelinek <jakub@redhat.com>
25800 * tree-loop-distribution.c (const_with_all_bytes_same): New function.
25801 (generate_memset_builtin): Only handle integer_all_onesp as -1 val if
25802 TYPE_PRECISION is equal to mode bitsize. Use const_with_all_bytes_same
25803 if possible to compute val.
25804 (classify_partition): Verify CONSTRUCTOR doesn't have any elts.
25805 For QImode integers don't require anything about precision. Use
25806 const_with_all_bytes_same to find out if the constant doesn't have
25807 repeated bytes in it.
25809 2013-04-08 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
25811 * config/s390/s390.c (s390_expand_insv): Only accept insertions
25814 2013-04-08 Marek Polacek <polacek@redhat.com>
25816 PR rtl-optimization/48182
25817 * params.def (PARAM_MIN_CROSSJUMP_INSNS): Increase the minimum
25820 2013-04-06 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
25823 * config/pa/pa.c (legitimize_pic_address): Before incrementing label
25824 nuses, make sure we have a label.
25826 2013-04-05 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
25829 * config/rs6000/rs6000.c (rs6000_emit_swdiv_high_precision): Remove.
25830 (rs6000_emit_swdiv_low_precision): Remove.
25831 (rs6000_emit_swdiv): Rewrite to handle between one and four
25832 iterations of Newton-Raphson generally; modify required number of
25833 iterations for some cases.
25834 * config/rs6000/rs6000.h (RS6000_RECIP_HIGH_PRECISION_P): Remove.
25836 2013-04-05 Steven Bosscher <steven@gcc.gnu.org>
25838 * bb-reorder.c (fix_crossing_unconditional_branches): Remove a
25839 set-but-unused variable.
25841 * cgraph.c (cgraph_release_function_body): Clear cfun->cfg to make
25842 basic blocks of released function bodies garbage-collectable.
25844 * ree.c (find_and_remove_re): Do not call df_finish_pass here.
25845 (struct rtl_opt_pass): Add TODO_df_finish.
25847 * rtl.def (DEFINE_SUBST, DEFINE_SUBST_ATTR): Add documentation.
25849 2013-04-05 Greta Yorsh <Greta.Yorsh@arm.com>
25851 * config/arm/constraints.md (q): New constraint.
25852 * config/arm/ldrdstrd.md: New file.
25853 * config/arm/arm.md (ldrdstrd.md) New include.
25854 (arm_movdi): Use "q" instead of "r" constraint
25855 for double-word memory access.
25856 (movdf_soft_insn): Likewise.
25857 * config/arm/vfp.md (movdi_vfp): Likewise.
25858 * config/arm/t-arm (MD_INCLUDES): Add ldrdstrd.md.
25859 * config/arm/arm-protos.h (gen_operands_ldrd_strd): New declaration.
25860 * config/arm/arm.c (gen_operands_ldrd_strd): New function.
25861 (mem_ok_for_ldrd_strd): Likewise.
25862 (output_move_double): Update assertion.
25864 2013-04-05 Greta Yorsh <Greta.Yorsh@arm.com>
25866 * config/arm/arm.md: Comment on splitting Thumb1 patterns.
25868 2013-04-05 Greta Yorsh <Greta.Yorsh@arm.com>
25870 * config/arm/arm.md (arm_smax_insn): Convert define_insn into
25871 define_insn_and_split.
25872 (arm_smin_insn,arm_umaxsi3,arm_uminsi3): Likewise.
25874 2013-04-05 Greta Yorsh <Greta.Yorsh@arm.com>
25876 * config/arm/arm.md (arm_ashldi3_1bit): Convert define_insn into
25877 define_insn_and_split.
25878 (arm_ashrdi3_1bit,arm_lshrdi3_1bit): Likewise.
25879 (shiftsi3_compare): New pattern.
25880 (rrx): New pattern.
25881 * config/arm/unspecs.md (UNSPEC_RRX): New.
25883 2013-04-05 Greta Yorsh <Greta.Yorsh@arm.com>
25885 * config/arm/arm.md (negdi_extendsidi): New pattern.
25886 (negdi_zero_extendsidi): Likewise.
25888 2013-04-05 Greta Yorsh <Greta.Yorsh@arm.com>
25890 * config/arm/arm.md (andsi_iorsi3_notsi): Convert define_insn into
25891 define_insn_and_split.
25892 (arm_negdi2,arm_abssi2,arm_neg_abssi2): Likewise.
25893 (arm_cmpdi_insn,arm_cmpdi_unsigned): Likewise.
25895 2013-04-05 Greta Yorsh <Greta.Yorsh@arm.com>
25897 * config/arm/arm.md (arm_subdi3): Convert define_insn into
25898 define_insn_and_split.
25899 (subdi_di_zesidi,subdi_di_sesidi): Likewise.
25900 (subdi_zesidi_di,subdi_sesidi_di,subdi_zesidi_zesidi): Likewise.
25902 2013-04-05 Greta Yorsh <Greta.Yorsh@arm.com>
25904 * config/arm/arm.md (subsi3_carryin): New pattern.
25905 (subsi3_carryin_const): Likewise.
25906 (subsi3_carryin_compare,subsi3_carryin_compare_const): Likewise.
25907 (subsi3_carryin_shift,rsbsi3_carryin_shift): Likewise.
25909 2013-04-05 Greta Yorsh <Greta.Yorsh@arm.com>
25911 * config/arm/arm.md (incscc,arm_incscc,decscc,arm_decscc): Delete.
25913 2013-04-05 Greta Yorsh <Greta.Yorsh@arm.com>
25915 * config/arm/arm.md (addsi3_carryin_<optab>): Set attribute predicable.
25916 (addsi3_carryin_alt2_<optab>,addsi3_carryin_shift_<optab>): Likewise.
25918 2013-04-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
25920 * config/arm/arm.c (arm_expand_builtin): Change fcode
25921 type to unsigned int.
25923 2013-04-05 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
25925 * doc/invoke.texi (ARM Options): Document cortex-a53 support.
25927 2013-04-04 Ian Lance Taylor <iant@google.com>
25929 * doc/standards.texi (Standards): The Go frontend supports the Go 1
25932 2013-04-04 Steven Bosscher <steven@gcc.gnu.org>
25934 PR middle-end/56729
25935 * df-scan.c (df_insn_delete): Disable failing assert.
25937 2013-04-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
25939 * config/arm/arm-protos.h (arm_builtin_vectorized_function):
25940 New function prototype.
25941 * config/arm/arm.c (TARGET_VECTORIZE_BUILTINS): Define.
25942 (TARGET_VECTORIZE_BUILTIN_VECTORIZED_FUNCTION): Likewise.
25943 (arm_builtin_vectorized_function): New function.
25945 2013-04-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
25947 * config/arm/arm_neon_builtins.def: New file.
25948 * config/arm/arm.c (neon_builtin_data): Move contents to
25949 arm_neon_builtins.def.
25950 (enum arm_builtins): Include neon builtin definitions.
25951 (ARM_BUILTIN_NEON_BASE): Move from enum to macro.
25952 * config/arm/t-arm (arm.o): Add dependency on arm_neon_builtins.def.
25954 2013-04-04 Marek Polacek <polacek@redhat.com>
25956 PR tree-optimization/48186
25957 * predict.c (maybe_hot_frequency_p): Return false if
25958 HOT_BB_FREQUENCY_FRACTION is 0.
25959 (cgraph_maybe_hot_edge_p): Likewise.
25961 2013-04-04 Richard Biener <rguenther@suse.de>
25963 PR tree-optimization/56826
25964 * tree-vect-slp.c (vect_build_slp_tree): Compute ncopies
25967 2013-04-04 Richard Biener <rguenther@suse.de>
25969 PR tree-optimization/56213
25970 * tree-vect-data-refs.c (vect_check_strided_load): Remove.
25971 (vect_analyze_data_refs): Allow all non-nested loads as strided loads.
25973 2013-04-04 Richard Biener <rguenther@suse.de>
25975 PR tree-optimization/56837
25976 * tree-loop-distribution.c (classify_partition): For non-zero
25977 values require that the value has the same precision as its
25978 mode to be useful as memset value.
25980 2013-04-03 Nick Clifton <nickc@redhat.com>
25982 * config/v850/v850e3v5.md (fmasf4): Use fmaf.s on E3V5 architectures.
25983 (fmssf4): Use fmsf.s on E3V5 architectures.
25984 (fnmasf4): Use fnmaf.s on E3V5 architectures.
25985 (fnmssf4): Use fnmsf.s on E3V5 architectures.
25987 2013-04-03 Jeff Law <law@redhat.com>
25989 * Makefile.in (lra-constraints.o): Depend on $(OPTABS_H).
25990 (lra-eliminations.o): Likewise.
25992 2013-04-03 Teresa Johnson <tejohnson@google.com>
25994 * gcov-io.c (compute_working_sets): Moved most of body of old
25995 compute_working_sets here from profile.c.
25996 * gcov-io.h (NUM_GCOV_WORKING_SETS): Moved here from profile.c.
25997 (gcov_working_set_t): Moved typedef here from basic-block.h
25998 (compute_working_set): Declare.
25999 * profile.c (NUM_GCOV_WORKING_SETS): Moved to gcov-io.h.
26000 (get_working_sets): Renamed from compute_working_set,
26001 replace most of body with call to new compute_working_sets.
26002 (get_exec_counts): Replace call to compute_working_sets
26003 to get_working_sets.
26004 * profile.h (get_working_sets): Renamed from compute_working_set.
26005 * lto-cgraph.c (input_symtab): Replace call to compute_working_sets
26006 to get_working_sets.
26007 * basic-block.h (gcov_working_set_t): Moved to gcov-io.h.
26008 * gcov-dump.c (dump_working_sets): New function.
26010 2013-04-03 Kenneth Zadeck <zadeck@naturalbridge.com>
26012 * hwint.c (sext_hwi, zext_hwi): New functions.
26013 * hwint.h (HOST_BITS_PER_HALF_WIDE_INT, HOST_HALF_WIDE_INT,
26014 HOST_HALF_WIDE_INT_PRINT, HOST_HALF_WIDE_INT_PRINT_C,
26015 HOST_HALF_WIDE_INT_PRINT_DEC, HOST_HALF_WIDE_INT_PRINT_DEC_C,
26016 HOST_HALF_WIDE_INT_PRINT_UNSIGNED, HOST_HALF_WIDE_INT_PRINT_HEX,
26017 HOST_HALF_WIDE_INT_PRINT_HEX_PURE): New symbols.
26018 (sext_hwi, zext_hwi): New functions.
26020 2013-04-03 Jeff Law <law@redhat.com>
26022 PR tree-optimization/56799
26023 * tree-ssa-dom.c (record_equivalences_from_incoming_edge): Bring
26024 back test for widening conversion erroneously dropped in prior change.
26026 2013-04-03 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
26029 * config/aarch64/aarch64.c (is_jump_table): Use next_active_insn
26030 instead of next_real_insn.
26032 2013-04-03 Marek Polacek <polacek@redhat.com>
26035 * tsan.c (instrument_func_exit): Allow BUILT_IN_RETURN functions.
26037 2013-04-03 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
26040 * config/arm/arm.c (is_jump_table): Use next_active_insn instead of
26042 (thumb1_output_casesi): Likewise.
26043 (thumb2_output_casesi): Likewise.
26045 2013-04-03 Richard Biener <rguenther@suse.de>
26047 PR tree-optimization/56817
26048 * tree-ssa-loop-ivcanon.c (tree_unroll_loops_completely):
26050 (tree_unroll_loops_completely_1): ... new function to manually
26051 walk the loop tree, properly defering outer loops of unrolled
26052 loops to later iterations.
26054 2013-04-03 Marc Glisse <marc.glisse@inria.fr>
26056 * tree-vect-stmts.c (vectorizable_store): Accept BIT_FIELD_REF.
26057 (vectorizable_load): Likewise.
26058 * tree-vect-slp.c (vect_build_slp_tree): Likewise.
26059 * tree-vect-data-refs.c (vect_create_data_ref_ptr): Handle VECTOR_TYPE.
26061 2013-04-03 Marc Glisse <marc.glisse@inria.fr>
26063 * tree-flow-inline.h (get_addr_base_and_unit_offset_1): Handle
26066 2013-04-03 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
26068 * config/spu/spu.c (emit_nop_for_insn): Handle JUMP_TABLE_DATA.
26070 2013-04-03 Bin Cheng <bin.cheng@arm.com>
26072 * rtl.h (AUTO_INC_DEC): Fix typo of HAVE_POST_MODIFY_DISP.
26074 2013-04-03 Marc Glisse <marc.glisse@inria.fr>
26076 PR tree-optimization/56790
26077 * fold-const.c (fold_ternary_loc) <VEC_COND_EXPR>: Add constant
26080 2013-04-03 Marc Glisse <marc.glisse@inria.fr>
26082 * simplify-rtx.c (simplify_binary_operation_1) <VEC_SELECT>:
26084 (simplify_ternary_operation) <VEC_MERGE>: Use unsigned HOST_WIDE_INT
26085 for masks. Test for side effects. Handle nested VEC_MERGE. Handle
26088 2013-04-03 Jakub Jelinek <jakub@redhat.com>
26091 * tree.h (force_folding_builtin_constant_p): New decl.
26092 * builtins.c (force_folding_builtin_constant_p): New variable.
26093 (fold_builtin_constant_p): Fold immediately also if
26094 force_folding_builtin_constant_p.
26096 2013-04-03 Richard Biener <rguenther@suse.de>
26098 PR tree-optimization/56812
26099 * tree-vect-data-refs.c (vect_slp_analyze_data_ref_dependence):
26100 DRs of the same interleaving chain are independent.
26102 2013-04-02 Jason Merrill <jason@redhat.com>
26104 * gdbinit.in (pbb): Use debug fn.
26106 2013-04-02 Lawrence Crowl <crowl@google.com>
26108 * sese.h (struct ivtype_map_elt_s): Remove unused.
26109 (extern debug_ivtype_map): Remove unused.
26110 (extern eq_ivtype_map_elts): Remove unused.
26111 * sese.c (debug_ivtype_map): Removed unused.
26112 (debug_ivtype_map_1): Removed unused.
26113 (debug_ivtype_elt): Remove unused.
26114 (eq_ivtype_map_elts): Remove unused.
26116 2013-04-02 Kai Tietz <ktietz@redhat.com>
26119 * config/i386/cygming.h (SUB_TARGET_RECORD_STUB): New sub-target macro.
26120 * config/i386/i386-protos.h (i386_pe_record_stub): Add new prototype.
26121 * config/i386/i386.c (legitimize_pe_coff_extern_decl): New static
26123 (legitimize_pe_coff_symbol): Likewise.
26124 (is_imported_p): New helper-function.
26125 (ix86_option_override_internal): Make MEDIUM_PIC the default code-model
26126 for Windows x64 targets.
26127 (ix86_expand_prologue): Optimize for pe-coff targets.
26128 (ix86_expand_split_stack_prologue): Adjust for pe-coff targets.
26129 (legitimate_pic_address_disp_p): Adjust for x64 pe-coff to support
26130 medium/large code-model.
26131 (legitimize_pic_address): Likewise.
26132 (legitimize_tls_address): Likewise.
26133 (ix86_expand_call): Likewise.
26134 (x86_output_mi_thunk): Likewise.
26135 (get_dllimport_decl): Add new beimport argument.
26136 (construct_plt_address): Don't assert for x64 pe-coff targets.
26137 * config/i386/i386.h (PIC_OFFSET_TABLE_REGNUM): Adjust for x64 pe-coff
26139 (SYMBOL_FLAG_STUBVAR): New macro.
26140 (SYMBOL_REF_STUBVAR_P): Likewise.
26141 * config/i386/winnt.c (stub_list): New structure.
26142 (stub_head): New local variable.
26143 (i386_pe_record_stub): New function.
26144 (i386_pe_file_end): Emit refptr-stubs.
26146 2013-04-02 Jakub Jelinek <jakub@redhat.com>
26148 PR rtl-optimization/56745
26149 * ifcvt.c (cond_exec_find_if_block): Don't try to optimize
26150 if then_bb has no successors and else_bb is EXIT_BLOCK_PTR.
26153 * tree-ssa-alias.c (stmt_kills_ref_p_1): If base != ref->base
26154 and both of them are MEM_REFs, just compare first argument for
26155 equality and attempt to deal even with differing offsets.
26158 * tree-cfg.c (verify_gimple_assign_single): Allow lhs
26159 of gimple_clobber_p to be MEM_REF.
26160 * gimplify.c (gimplify_modify_expr): Gimplify *to_p of
26161 an assignment from TREE_CLOBBER_P. Allow it to be MEM_REF
26162 after gimplification.
26163 * asan.c (get_mem_ref_of_assignment): Don't instrument
26164 gimple_clobber_p stmts.
26165 * tree-ssa-dse.c (dse_optimize_stmt): Allow DSE of
26166 gimple_clobber_p stmt if they have MEM_REF lhs and
26167 are dead because of another gimple_clobber_p stmt.
26168 * tree-ssa-live.c (clear_unused_block_pointer): Treat
26169 gimple_clobber_p stmts like debug stmts.
26170 (remove_unused_locals): Remove clobbers with MEM_REF lhs
26171 that refer to unused VAR_DECLs or uninitialized values.
26172 * tree-sra.c (sra_ipa_reset_debug_stmts): Also remove
26173 gimple_clobber_p stmts if they refer to removed parameters.
26174 (get_repl_default_def_ssa_name, sra_ipa_modify_expr): Fix up
26177 2013-04-02 Uros Bizjak <ubizjak@gmail.com>
26179 * config/i386/i386.md (*testqi_ext_3): Merge with *testqi_ext_3_rex64
26180 using SWI48 mode attribute.
26182 2013-04-02 Wei Mi <wmi@google.com>
26184 * config/i386/i386.c (ix86_rtx_costs): Set proper rtx cost for
26185 ashl<mode>3_mask, *<shift_insn><mode>3_mask and
26186 *<rotate_insn><mode>3_mask in i386.md.
26188 2013-04-02 Alexander Ivchenko <alexander.ivchenko@intel.com>
26190 * config.gcc (arm*-*-linux-*): Remove duplicate t-linux-android.
26192 2013-04-02 Richard Biener <rguenther@suse.de>
26194 PR tree-optimization/56778
26195 * tree-vect-data-refs.c (vect_analyze_data_ref_dependence):
26196 Runtime alias tests are not supported for gather loads.
26197 * tree-vect-loop-manip.c (vect_loop_versioning): Insert
26198 stmts referenced from SSA operands before updating SSA form.
26200 2013-04-02 Ian Caulfield <ian.caulfield@arm.com>
26201 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
26203 * config/arm/arm-arches.def (armv8-a): Default to cortex-a53.
26204 * config/arm/t-arm (MD_INCLUDES): Depend on cortex-a53.md.
26205 * config/arm/cortex-a53.md: New file.
26206 * config/arm/bpabi.h (BE8_LINK_SPEC): Handle cortex-a53.
26207 * config/arm/arm.md (generic_sched, generic_vfp): Handle cortex-a53.
26208 * config/arm/arm.c (arm_issue_rate): Likewise.
26209 * config/arm/arm-tune.md: Regenerate
26210 * config/arm/arm-tables.opt: Regenerate.
26211 * config/arm/arm-cores.def: Add cortex-a53.
26213 2013-04-02 Zhenqiang Chen <zhenqiang.chen@arm.com>
26215 * config/arm/uclinux-elf.h: Add %L to LINK_GCC_C_SEQUENCE_SPEC for
26218 2013-04-02 Sofiane Naci <sofiane.naci@arm.com>
26220 * config/aarch64/aarch64.md (*mov<mode>_aarch64): Add variants for
26221 scalar load/store operations using B/H registers.
26222 (*zero_extend<SHORT:mode><GPI:mode>2_aarch64): Likewise.
26224 2013-04-02 Sofiane Naci <sofiane.naci@arm.com>
26226 * config/aarch64/aarch64.md (*mov<mode>_aarch64): Add alternatives for
26228 * config/aarch64/aarch64.c
26229 (aarch64_simd_scalar_immediate_valid_for_move): New.
26230 * config/aarch64/aarch64-protos.h
26231 (aarch64_simd_scalar_immediate_valid_for_move): New.
26232 * config/aarch64/constraints.md (Dh, Dq): New.
26233 * config/aarch64/iterators.md (hq): New.
26235 2013-04-02 Eric Botcazou <ebotcazou@adacore.com>
26237 * reorg.c (get_branch_condition): Deal with conditional returns.
26238 (fill_simple_delay_slots): Remove dead code dealing with jumps.
26240 2013-04-01 Wei Mi <wmi@google.com>
26242 * config/i386/i386.md (*ashl<mode>3_mask): Rewrite as define_insn.
26243 Truncate operand 2 using %b asm operand modifier.
26244 (*<shift_insn><mode>3_mask): Ditto.
26245 (*<rotate_insn><mode>3_mask): Ditto.
26247 2013-04-01 Steven Bosscher <steven@gcc.gnu.org>
26249 PR middle-end/56798
26250 * cfgbuild.c (inside_basic_block_p): Restore check broken at r197234.
26252 2013-03-31 Kaz Kojima <kkojima@gcc.gnu.org>
26254 * config/sh/sh.md (casesi_worker_1): Use next_active_insn instead
26256 (casesi_worker_2, casesi_shift_media, casesi_load_media): Likewise.
26258 2013-03-30 Lawrence Crowl <crowl@google.com>
26260 * dse.c (clear_alias_sets): Remove never set.
26261 (disqualified_clear_alias_sets): Remove never set.
26262 (clear_alias_mode_pool): Remove never set.
26263 (dse_step0): Remove condition that is never true.
26264 (canon_address): Remove condition that is never true.
26265 (dse_step7): Remove condition that is never true.
26266 (rest_of_handle_dse): Remove condition that is never true.
26267 (rest_of_handle_dse::did_global): Remove never read from above.
26268 (dse_step2_spill): Remove never called from above.
26269 (dse_step5_spill): Remove never called from above.
26271 2013-03-30 Steven Bosscher <steven@gcc.gnu.org>
26273 * doc/md.texi (Standard Names) <casesi>: Update documentation for
26274 JUMP_TABLE_DATA changes.
26275 * doc/tm.texi.in (Dispatch Tables) <ASM_OUTPUT_CASE_LABEL>: Likewise.
26276 * doc/rtl.texi (Flags) <INSN_DELETED_P, SCHED_GROUP_P>: Likewise.
26277 (Insns) <jump_table_data>: New entry.
26278 * doc/tm.texi: Regenerate.
26280 * cfgrtl.c (fixup_reorder_chain): Do not emit barriers to BB_FOOTER.
26282 * postreload-gcse.c (bb_has_well_behaved_predecessors): Correct test
26283 for table jump at the end of a basic block using tablejump_p.
26284 * targhooks.c (default_invalid_within_doloop): Likewise.
26285 * config/rs6000/rs6000.c (TARGET_INVALID_WITHIN_DOLOOP): Remove
26286 target hook implementation that is identical to the default hook.
26287 (rs6000_invalid_within_doloop): Remove.
26289 * bb-reorder.c (fix_crossing_unconditional_branches): Remove set but
26290 unused variable from tablejump_p call.
26292 * rtl.def (JUMP_TABLE_DATA): New RTX_INSN object.
26293 * rtl.h (RTX_PREV, RTX_NEXT): Adjust for new JUMP_TABLE_DATA.
26294 (INSN_DELETED_P): Likewise.
26295 (emit_jump_table_data): New prototype.
26296 * gengtype.c (adjust_field_rtx_def): Handle JUMP_TABLE_DATA fields
26297 after 4th as unused.
26298 * print-rtl.c (print_rtl): Handle JUMP_TABLE_DATA.
26299 * sched-vis.c (print_insn): Likewise.
26300 * emit-rtl.c (active_insn_p): Consider JUMP_TABLE_DATA an active
26301 insn for compatibility with back ends that use next_active_insn to
26302 identify jump table data.
26303 (set_insn_deleted): Remove no longer useful JUMP_TABLE_DATA_P check.
26304 (remove_insn): Likewise.
26305 (emit_insn): Do not accept JUMP_TABLE_DATA objects in insn chains
26307 (emit_debug_insn, emit_jump_insn, emit_call_insn, emit_label): Idem.
26308 (emit_jump_table_data): New function.
26310 * cfgbuild.c (inside_basic_block_p): A JUMP_INSN is always inside a
26311 basic block, a JUMP_TABLE_DATA never is.
26312 (control_flow_insn_p): JUMP_TABLE_DATA is not a control flow insn.
26313 * cfgrtl.c (duplicate_insn_chain): Split handling of JUMP_TABLE_DATA
26314 off from code handling real insns.
26315 * final.c (get_attr_length_1): Simplify for JUMP_INSNs.
26316 * function.c (instantiate_virtual_regs): Remove JUMP_TABLE_DATA_P
26317 test, now redundant because JUMP_TABLE_DATA is not an INSN_P insn.
26318 * gcse.c (insert_insn_end_basic_block): Likewise, JUMP_TABLE_DATA_P
26319 is not a NONDEBUG_INSN_P.
26320 * ira-costs.c (scan_one_insn): Likewise.
26321 * jump.c (mark_all_labels): Likewise.
26322 (mark_jump_label_1): Likewise.
26323 * lra-eliminations.c (eliminate_regs_in_insn): Likewise.
26324 * lra.c (get_insn_freq): Expect all insns reaching here to be in
26326 (check_rtl): Remove JUMP_TABLE_DATA_P test, not a NONDEBUG_INSN_P insn.
26327 * predict.c (expensive_function_p): Use FOR_BB_INSNS.
26328 * reload1.c (calculate_needs_all_insns): Call set_label_offsets for
26329 JUMP_TABLE_DATA_P insns.
26330 (calculate_elim_costs_all_insns): Likewise.
26331 (set_label_offsets): Recurse on the PATTERN of JUMP_TABLE_DATA insns.
26332 (elimination_costs_in_insn): Remove redundant JUMP_TABLE_DATA_P test.
26333 (delete_output_reload): Code style fixups.
26334 * reorg.c (dbr_schedule): Move JUMP_TABLE_DATA_P up to avoid setting
26335 insn flags on this non-insn.
26336 * sched-rgn.c (add_branch_dependences): Treat JUMP_TABLE_DATA insns
26337 as scheduling barriers, for pre-change compatibility.
26338 * stmt.c (emit_case_dispatch_table): Emit jump table data not as
26339 JUMP_INSN objects but instead as JUMP_TABLE_DATA objects.
26341 * config/alpha/alpha.c (alpha_does_function_need_gp): Remove
26342 redundant JUMP_TABLE_DATA_P test.
26343 * config/arm/arm.c (thumb_far_jump_used_p): Likewise.
26344 * config/frv/frv.c (frv_function_contains_far_jump): Likewise.
26345 (frv_for_each_packet): Likewise.
26346 * config/i386/i386.c (min_insn_size): Likewise.
26347 (ix86_avoid_jump_mispredicts): Likewise.
26348 * config/m32r/m32r.c (m32r_is_insn): Likewise.
26349 * config/mep/mep.c (mep_reorg_erepeat): Likewise.
26350 * config/mips/mips.c (USEFUL_INSN_P): Likewise.
26351 (mips16_insn_length): Robustify.
26352 (mips_has_long_branch_p): Remove redundant JUMP_TABLE_DATA_P test.
26353 (mips16_split_long_branches): Likewise.
26354 * config/pa/pa.c (pa_combine_instructions): Likewise.
26355 * config/rs6000/rs6000.c (get_next_active_insn): Treat
26356 JUMP_TABLE_DATA objects as active insns, like in active_insn_p.
26357 * config/s390/s390.c (s390_chunkify_start): Treat JUMP_TABLE_DATA
26358 as contributing to pool range lengths.
26359 * config/sh/sh.c (find_barrier): Restore check for ADDR_DIFF_VEC.
26360 Remove redundant JUMP_TABLE_DATA_P test.
26361 (sh_loop_align): Likewise.
26362 (split_branches): Likewise.
26363 (sh_insn_length_adjustment): Likewise.
26364 * config/spu/spu.c (get_branch_target): Likewise.
26366 2013-03-29 Jan Hubicka <jh@suse.cz>
26368 * lto-cgraph.c (output_profile_summary, input_profile_summary): Use
26369 gcov streaming; stream hot bb threshold to ltrans.
26370 * predict.c (get_hot_bb_threshold): Break out from ....
26371 (maybe_hot_count_p): ... here.
26372 (set_hot_bb_threshold): New function.
26373 * lto-section-in.c (lto_section_name): Add profile.
26374 * profile.h (get_hot_bb_threshold, set_hot_bb_threshold): Declare.
26375 * ipa.c: Include hash-table.h, tree-inline.h, profile.h, lto-streamer.h
26376 and data-streamer.h
26377 (histogram_entry): New structure.
26378 (histogram, histogram_pool): New global vars.
26379 (histogram_hash): New structure.
26380 (histogram_hash::hash): New method.
26381 (histogram_hash::equal): Likewise.
26382 (account_time_size): New function.
26383 (cmp_counts): New function.
26384 (dump_histogram): New function.
26385 (ipa_profile_generate_summary): New function.
26386 (ipa_profile_write_summary): New function.
26387 (ipa_profile_read_summary): New function.
26388 (ipa_profile): Decide on threshold.
26389 (pass_ipa_profile): Add ipa_profile_write_summary and
26390 ipa_profile_read_summary.
26391 * Makefile.in (ipa.o): Update dependencies.
26392 * lto-streamer.h (LTO_section_ipa_profile): New section.
26394 2013-03-29 Gabriel Dos Reis <gdr@integrable-solutions.net>
26396 * tree.h (VAR_P): New.
26398 2013-03-29 Paolo Carlini <paolo.carlini@oracle.com>
26401 * doc/invoke.texi ([-fwhole-program]): Fix typo.
26403 2013-03-29 Steven Bosscher <steven@gcc.gnu.org>
26405 * cfgbuild.c (inside_basic_block_p): Use JUMP_TABLE_DATA_P in lieu
26406 of tests for JUMP_P and a ADDR_DIFF_VEC or ADDR_VEC pattern.
26407 (control_flow_insn_p): Likewise.
26408 * cfgrtl.c (duplicate_insn_chain): Likewise.
26409 * final.c (get_attr_length_1): Likewise.
26410 (shorten_branches): Likewise.
26411 (final_scan_insn): Likewise.
26412 * function.c (instantiate_virtual_regs): Likewise.
26413 * gcse.c (insert_insn_end_basic_block): Likewise.
26414 * ira-costs.c (scan_one_insn): Likewise.
26415 * lra-eliminations.c (eliminate_regs_in_insn): Likewise.
26416 * lra.c (check_rtl): Likewise.
26417 * reload1.c (elimination_costs_in_insn): Likewise.
26418 * reorg.c (follow_jumps): Likewise.
26420 * config/arm/arm.c (is_jump_table): Use JUMP_TABLE_DATA_P in lieu
26421 of tests for JUMP_P and a ADDR_DIFF_VEC or ADDR_VEC pattern.
26422 (thumb_far_jump_used_p): Likewise.
26423 * config/bfin/bfin.c (workaround_rts_anomaly): Likewise.
26424 (workaround_speculation): Likewise.
26425 (add_sched_insns_for_speculation): Likewise.
26426 * config/c6x/c6x.c (reorg_emit_nops): Likewise.
26427 * config/frv/frv.c (frv_function_contains_far_jump): Likewise.
26428 (frv_for_each_packet): Likewise.
26429 * config/i386/i386.c (ix86_avoid_jump_mispredicts): Likewise.
26430 * config/ia64/ia64.c (emit_all_insn_group_barriers): Likewise.
26431 (final_emit_insn_group_barriers): Likewise.
26432 * config/m32r/m32r.c (m32r_is_insn): Likewise.
26433 * config/mips/mips.c (USEFUL_INSN_P): Likewise.
26434 (mips16_insn_length): Likewise.
26435 * config/pa/pa.c (pa_reorg): Likewise.
26436 (pa_combine_instructions): Likewise.
26437 * config/rs6000/rs6000.c (rs6000_invalid_within_doloop): Likewise.
26438 * config/sh/sh.c (fixup_addr_diff_vecs): Likewise.
26439 (sh_reorg): Likewise.
26440 (split_branches): Likewise.
26441 * config/spu/spu.c (get_branch_target): Likewise.
26443 * config/s390/s390.c (s390_chunkify_start): Simplify logic using
26446 2013-03-29 Kirill Yukhin <kirill.yukhin@intel.com>
26448 * config/i386/avx2intrin.h (_mm256_broadcastsi128_si256):
26449 Fix declaration name.
26451 2013-03-28 Lawrence Crowl <crowl@google.com>
26453 * graphds.h (struct graph.indicies): Remove unused.
26454 * graphite-poly.h (struct graph.original_pddrs): Remove unused.
26455 (SCOP_ORIGINAL_PDDRS): Remove unused.
26456 * sese.h (extern insert_loop_close_phis): Removed unused.
26457 (extern insert_guard_phis): Removed unused.
26458 (extern ivtype_map_elt_info): Removed unused.
26459 (new_ivtype_map_elt): Removed unused.
26460 * sese.c (ivtype_map_elt_info): Removed unused.
26462 2013-03-28 Lawrence Crowl <crowl@google.com>
26464 * Makefile.in: Add several missing include dependences.
26466 (test-dump.o): New. This object is not added to any executable,
26467 but is present for ad-hoc testing.
26469 (debug (const bitmap_head_def &)): New.
26470 (debug (const bitmap_head_def *)): New.
26472 (extern debug (const bitmap_head_def &)): New.
26473 (extern debug (const bitmap_head_def *)): New.
26475 (debug (edge_def &)): New.
26476 (debug (edge_def *)): New.
26478 (debug (basic_block_def &)): New.
26479 (debug (basic_block_def *)): New.
26481 (dump_node (const_tree, int, FILE *)): Correct source file.
26483 (debug (die_struct &)): New.
26484 (debug (die_struct *)): New.
26486 (extern debug (die_struct &)): New.
26487 (extern debug (die_struct *)): New.
26488 * gimple-pretty-print.c
26489 (debug (gimple_statement_d &)): New.
26490 (debug (gimple_statement_d *)): New.
26491 * gimple-pretty-print.h
26492 (extern debug (gimple_statement_d &)): New.
26493 (extern debug (gimple_statement_d *)): New.
26495 (debug (ira_allocno_copy &)): New.
26496 (debug (ira_allocno_copy *)): New.
26497 (debug (ira_allocno &)): New.
26498 (debug (ira_allocno *)): New.
26500 (extern debug (ira_allocno_copy &)): New.
26501 (extern debug (ira_allocno_copy *)): New.
26502 (extern debug (ira_allocno &)): New.
26503 (extern debug (ira_allocno *)): New.
26505 (debug (live_range &)): New.
26506 (debug (live_range *)): New.
26508 (debug (lra_live_range &)): New.
26509 (debug (lra_live_range *)): New.
26511 (debug (lra_live_range &)): New.
26512 (debug (lra_live_range *)): New.
26514 (debug (omega_pb_d &)): New.
26515 (debug (omega_pb_d *)): New.
26517 (extern debug (omega_pb_d &)): New.
26518 (extern debug (omega_pb_d *)): New.
26520 (debug (const rtx_def &)): New.
26521 (debug (const rtx_def *)): New.
26523 (debug_tree (tree): Move within file.
26524 (debug_raw (const tree_node &)): New.
26525 (debug_raw (const tree_node *)): New.
26526 (dump_tree_via_hooks (const tree_node *, int)): New.
26527 (debug (const tree_node &)): New.
26528 (debug (const tree_node *)): New.
26529 (debug_verbose (const tree_node &)): New.
26530 (debug_verbose (const tree_node *)): New.
26531 (debug_head (const tree_node &)): New.
26532 (debug_head (const tree_node *)): New.
26533 (debug_body (const tree_node &)): New.
26534 (debug_body (const tree_node *)): New.
26535 (debug_vec_tree (tree): Move and reimplement in terms of dump.
26536 (debug (vec<tree, va_gc> &)): New.
26537 (debug (vec<tree, va_gc> *)): New.
26539 (extern debug (const rtx_def &)): New.
26540 (extern debug (const rtx_def *)): New.
26542 (debug_raw (simple_bitmap_def &)): New.
26543 (debug_raw (simple_bitmap_def *)): New.
26544 (debug (simple_bitmap_def &)): New.
26545 (debug (simple_bitmap_def *)): New.
26547 (extern debug (simple_bitmap_def &)): New.
26548 (extern debug (simple_bitmap_def *)): New.
26549 (extern debug_raw (simple_bitmap_def &)): New.
26550 (extern debug_raw (simple_bitmap_def *)): New.
26552 (debug (vinsn_def &)): New.
26553 (debug (vinsn_def *)): New.
26554 (debug_verbose (vinsn_def &)): New.
26555 (debug_verbose (vinsn_def *)): New.
26556 (debug (expr_def &)): New.
26557 (debug (expr_def *)): New.
26558 (debug_verbose (expr_def &)): New.
26559 (debug_verbose (expr_def *)): New.
26560 (debug (vec<rtx> &)): New.
26561 (debug (vec<rtx> *)): New.
26563 (extern debug (vinsn_def &)): New.
26564 (extern debug (vinsn_def *)): New.
26565 (extern debug_verbose (vinsn_def &)): New.
26566 (extern debug_verbose (vinsn_def *)): New.
26567 (extern debug (expr_def &)): New.
26568 (extern debug (expr_def *)): New.
26569 (extern debug_verbose (expr_def &)): New.
26570 (extern debug_verbose (expr_def *)): New.
26571 (extern debug (vec<rtx> &)): New.
26572 (extern debug (vec<rtx> *)): New.
26574 (_list_iter_cond_expr): Make inline instead of static.
26576 (debug (sreal &)): New.
26577 (debug (sreal *)): New.
26579 (extern debug (sreal &)): New.
26580 (extern debug (sreal *)): New.
26582 (extern debug_raw (const tree_node &)): New.
26583 (extern debug_raw (const tree_node *)): New.
26584 (extern debug (const tree_node &)): New.
26585 (extern debug (const tree_node *)): New.
26586 (extern debug_verbose (const tree_node &)): New.
26587 (extern debug_verbose (const tree_node *)): New.
26588 (extern debug_head (const tree_node &)): New.
26589 (extern debug_head (const tree_node *)): New.
26590 (extern debug_body (const tree_node &)): New.
26591 (extern debug_body (const tree_node *)): New.
26592 (extern debug (vec<tree, va_gc> &)): New.
26593 (extern debug (vec<tree, va_gc> *)): New.
26595 (debug (struct loop &)): New.
26596 (debug (struct loop *)): New.
26597 (debug_verbose (struct loop &)): New.
26598 (debug_verbose (struct loop *)): New.
26599 * tree-dump.c: Add header dependence.
26601 (extern debug (struct loop &)): New.
26602 (extern debug (struct loop *)): New.
26603 (extern debug_verbose (struct loop &)): New.
26604 (extern debug_verbose (struct loop *)): New.
26606 (debug (data_reference &)): New.
26607 (debug (data_reference *)): New.
26608 (debug (vec<data_reference_p> &)): New.
26609 (debug (vec<data_reference_p> *)): New.
26610 (debug (vec<ddr_p> &)): New.
26611 (debug (vec<ddr_p> *)): New.
26613 (extern debug (data_reference &)): New.
26614 (extern debug (data_reference *)): New.
26615 (extern debug (vec<data_reference_p> &)): New.
26616 (extern debug (vec<data_reference_p> *)): New.
26617 (extern debug (vec<ddr_p> &)): New.
26618 (extern debug (vec<ddr_p> *)): New.
26620 (debug (pt_solution &)): New.
26621 (debug (pt_solution *)): New.
26623 (extern debug (pt_solution &)): New.
26624 (extern debug (pt_solution *)): New.
26626 (debug (_var_map &)): New.
26627 (debug (_var_map *)): New.
26628 (debug (tree_live_info_d &)): New.
26629 (debug (tree_live_info_d *)): New.
26631 (extern debug (_var_map &)): New.
26632 (extern debug (_var_map *)): New.
26633 (extern debug (tree_live_info_d &)): New.
26634 (extern debug (tree_live_info_d *)): New.
26636 2013-03-28 Jan Hubicka <jh@suse.cz>
26638 * lto-cgraph.c (merge_profile_summaries): Fix overflows.
26640 2013-03-28 Ian Bolton <ian.bolton@arm.com>
26642 * config/aarch64/aarch64.md (aarch64_can_eliminate): Keep frame
26643 record only when desired or required.
26645 2013-03-28 Uros Bizjak <ubizjak@gmail.com>
26647 * config/i386/i386.md (*vec_extract2vdi_1): Merge with
26648 *vec_extractv2di_1_rex64. Use x64 isa attribute.
26650 2013-03-28 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
26652 * config/aarch64/aarch64.md (*and<mode>3_compare0): New pattern.
26653 (*andsi3_compare0_uxtw): New pattern.
26654 (*and_<SHIFT:optab><mode>3_compare0): New pattern.
26655 (*and_<SHIFT:optab>si3_compare0_uxtw): New pattern.
26657 2013-03-28 Jan Hubicka <jh@suse.cz>
26659 * data-streamer-in.c (streamer_read_gcov_count): New function.
26660 * gimple-streamer-out.c: Include value-prof.h.
26661 (output_gimple_stmt): Output histogram.
26662 (output_bb): Use streamer_write_gcov_count.
26663 * value-prof.c: Include data-streamer.h
26664 (dump_histogram_value): Add HIST_TYPE_MAX.
26665 (stream_out_histogram_value): New function.
26666 (stream_in_histogram_value): New function.
26667 * value-prof.h (enum hist_type): Add HIST_TYPE_MAX.
26668 (stream_out_histogram_value, stream_in_histogram_value): Declare.
26669 * data-streamer-out.c (streamer_write_gcov_count): New function.
26670 (streamer_write_gcov_count_stream): New function.
26671 * lto-cgraph.c (lto_output_edge): Update counter streaming.
26672 (lto_output_node): Likewise.
26673 (input_node, input_edge): Likewise.
26674 * lto-streamer-out.c (output_cfg): Update streaming.
26675 * lto-streamer-in.c (input_cfg): Likewise.
26676 * data-streamer.h (streamer_write_gcov_count,
26677 streamer_write_gcov_count_stream, streamer_read_gcov_count): Declare.
26678 * gimple-streamer-in.c: Include value-prof.h
26679 (input_gimple_stmt): Input histograms.
26680 (input_bb): Update profile streaming.
26682 2013-03-28 Kenneth Zadeck <zadeck@naturalbridge.com>
26684 * genmodes.c (emit_max_int): New function.
26685 (emit_insn_modes_h): Added call to emit_max_function.
26686 * doc/rtl.texi (MAX_BITSIZE_MODE_ANY_INT, MAX_BITSIZE_MODE_ANY_MODE):
26688 * machmode.def: Fixed comment.
26690 2013-03-28 Kenneth Zadeck <zadeck@naturalbridge.com>
26692 * combine.c (try_combine): Removed useless assert.
26693 * cselib.c (rtx_equal_for_cselib_1): Removed unnecessary parens.
26695 2013-03-28 Marek Polacek <polacek@redhat.com>
26696 Richard Biener <rguenther@suse.de>
26698 PR tree-optimization/56695
26699 * tree-vect-stmts.c (vectorizable_condition): Unconditionally
26700 build signed result of a vector comparison.
26701 * tree-cfg.c (verify_gimple_comparison): Check that a result
26702 of a vector comparison has signed type.
26704 2013-03-28 Richard Biener <rguenther@suse.de>
26706 PR tree-optimization/37021
26707 * tree-vect-slp.c (vect_build_slp_tree): When not unrolling
26708 do not restrict gaps between groups.
26709 * tree-vect-stmts.c (vectorizable_load): Properly account for
26710 a gap between groups.
26712 2013-03-28 Eric Botcazou <ebotcazou@adacore.com>
26714 * toplev.c (process_options): Do not disable -fomit-frame-pointer on a
26715 general basis if unwind info is requested and ACCUMULATE_OUTGOING_ARGS
26718 2013-03-27 Gerald Pfeifer <gerald@pfeifer.com>
26720 * doc/invoke.texi (AVR Options): Tweak link for AVR-LibC user manual.
26721 * doc/extend.texi (Named Address Spaces): Ditto.
26722 (Variable Attributes): Ditto.
26724 2013-03-27 Kai Tietz <ktietz@redhat.com>
26726 * config.build: Add support for cygwin x64 target.
26727 * config.gcc: Likewise.
26728 * config.host: Likewise.
26729 * configure.ac: Likewise
26730 * configure: Regenerated.
26732 2013-03-27 Kai Tietz <ktietz@redhat.com>
26734 * config/i386/cygwin-stdint.h: Add support for cygwin x64 target.
26735 * config/i386/t-cygwin-w64: New file.
26736 * config/i386/cygwin-w64.h: New file.
26737 * config/i386/cygwin.h (EXTRA_OS_CPP_BUILTINS): Extend
26738 and add support for x64-cygwin target.
26739 (CPP_SPEC): Likewise.
26740 (CXX_WRAP_SPEC_LIST): Undefine before define.
26741 (LIBGCJ_SONAME): Use 15 as version.
26743 2013-03-27 Richard Biener <rguenther@suse.de>
26745 PR tree-optimization/56716
26746 * tree-ssa-structalias.c (perform_var_substitution): Adjust
26747 dumping for ref nodes.
26749 2013-03-27 Martin Jambor <mjambor@suse.cz>
26751 PR tree-optimization/55334
26752 * ipa-cp.c (initialize_node_lattices): Allow IPA-CP through and to
26753 restricted pointers to arrays.
26755 2013-03-27 Gabriel Dos Reis <gdr@integrable-solutions.net>
26757 * Makefile.in (.SUFFIXES): Add .cc.
26758 (.c.o): Apply same recipe for implicit rule .cc.o.
26760 2013-03-27 Richard Biener <rguenther@suse.de>
26762 PR tree-optimization/37021
26763 * tree-vect-data-refs.c (vect_check_strided_load): Allow
26764 REALPART/IMAGPART_EXPRs around the supported refs.
26765 * tree-ssa-structalias.c (find_func_aliases): Assume that
26766 floating-point values are not used to transfer pointers.
26768 2013-03-27 Alexander Ivchenko <alexander.ivchenko@intel.com>
26770 * target.def (TARGET_HAS_IFUNC_P): New target hook.
26771 * doc/tm.texi.in (TARGET_HAS_IFUNC_P): New.
26772 * doc/tm.texi: Regenerate.
26773 * targhooks.h (default_has_ifunc_p): New.
26774 * targhooks.c (default_has_ifunc_p): Ditto.
26775 * config/linux-protos.h: New file.
26776 * config/linux-android.h (TARGET_HAS_IFUNC_P): Using version of this
26777 hook for linux which disables support of indirect functions in android.
26778 * config/linux-android.c: New file.
26779 * config/t-linux-android.c: Ditto.
26780 * config.gcc: Added new object file linux-android.o.
26781 * config/i386/i386.c (ix86_get_function_versions_dispatcher):
26782 Using TARGET_HAS_IFUNC hook instead of HAVE_GNU_INDIRECT_FUNCTION.
26783 * varasm.c (do_assemble_alias): Likewise.
26784 * configure.ac: Define HAVE_GNU_INDIRECT_FUNCTION as zero if the target
26785 doesn't support indirect functions.
26786 * configure: Regenerate.
26788 2013-03-27 Bin Cheng <bin.cheng@arm.com>
26791 * config/arm/arm.c (thumb1_rtx_costs, thumb1_size_rtx_costs): Fix
26792 rtx costs for SET/ASHIFT/ASHIFTRT/LSHIFTRT/ROTATERT patterns with
26795 2013-03-27 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
26797 * config/s390/s390.h (TARGET_FLT_EVAL_METHOD): Define.
26799 2013-03-27 Terry Guo <terry.guo@arm.com>
26801 * config/arm/arm-cores.def: Added core cortex-r7.
26802 * config/arm/arm-tune.md: Regenerated.
26803 * config/arm/arm-tables.opt: Regenerated.
26804 * doc/invoke.texi: Added entry for core cortex-r7.
26806 2013-03-27 Walter Lee <walt@tilera.com>
26808 * config/tilegx/tilegx.c (tilegx_expand_prologue): Avoid
26809 double-decrement of next_scratch_regno.
26811 2013-03-27 Walter Lee <walt@tilera.com>
26813 * config/tilegx/tilegx.md (insn_v1mulu): Fix predicates on
26815 (insn_v1mulus): Ditto.
26816 (insn_v2muls): Ditto.
26818 2013-03-27 Walter Lee <walt@tilera.com>
26820 * config/tilegx/tilegx.h (ASM_OUTPUT_ADDR_VEC_ELT): Delete extra tab.
26821 (ASM_OUTPUT_ADDR_DIFF_ELT): Ditto.
26823 2013-03-27 Walter Lee <walt@tilera.com>
26825 * config/tilegx/tilegx.md (*sibcall_insn): Fix type atribute for jr.
26826 (*sibcall_value): Ditto.
26828 2013-03-27 Walter Lee <walt@tilera.com>
26830 * config/tilegx/tilegx.md (insn_mnz_<mode>): Replaced by ...
26831 (insn_mnz_v8qi): ... this ...
26832 (insn_mnz_v4hi): ... and this. Replace (const_int 0) with the
26834 (insn_v<n>mnz): Replaced by ...
26835 (insn_v1mnz): ... this ...
26836 (insn_v2mnz): ... and this. Replace (const_int 0) with the vector
26838 (insn_mz_<mode>): Replaced by ...
26839 (insn_mz_v8qi): ... this ...
26840 (insn_mz_v4hi): ... and this. Replace (const_int 0) with the
26842 (insn_v<n>mz): Replaced by ...
26843 (insn_v1mz): ... this ...
26844 (insn_v2mz): ... and this. Replace (const_int 0) with the vector
26847 2013-03-26 Eric Botcazou <ebotcazou@adacore.com>
26849 * doc/invoke.texi (SPARC options): Remove -mlittle-endian.
26851 2013-03-26 Roland McGrath <mcgrathr@google.com>
26853 * config/arm/arm.c (arm_print_operand: case 'w'): Use fputs rather
26854 than fprintf with a non-constant, non-format string.
26856 2013-03-26 Uros Bizjak <ubizjak@gmail.com>
26858 * config/i386/i386.md (*cmpqi_ext_1): Merge with *cmpqi_ext_1_rex64
26859 using nox64 isa attribute. Use nonimmediate_x86nomem_operand as
26860 operand 0 predicate.
26861 (*cmpqi_ext_3): Merge with *cmpqi_ext_3_rex64 using nox64 isa
26862 attribute. Use general_x64nomem_operand as operand 1 predicate.
26863 (*movqi_extv_1): Merge with *movqi_extv_1_rex64 using nox64 isa
26864 attribute. Use nonimmediate_x64nomem_operand as operand 0 predicate.
26865 (*movqi_extzv_2): Merge with *movqi_extzv_2_rex64 using nox64 isa
26866 attribute. Use nonimmediate_x64nomem_operand as operand 0 predicate.
26867 (mov<mode>_insv_1): Remove expander. Merge insn with
26868 movsi_insv_1 using SWI48 mode iterator and nox64 isa attribute.
26869 Use general_x64nomem_operand as operand 1 predicate.
26870 (addqi_ext_1): Merge with *addqi_ext_1_rex64 using nox64 isa attribute.
26871 (*testqi_ext_1): Merge with *testqi_ext_1_rex64 using nox64 isa
26872 attribute. Use nonimmediate_x64nomem_operand as operand 1 predicate.
26873 (*andqi_ext_1): Merge with *andqi_ext_1_rex64 using nox64 isa
26874 attribute. Use nonimmediate_x64nomem_operand as operand 2 predicate.
26875 (*<code>qi_ext_1): Merge with *<code>qi_ext_1_rex64 using nox64 isa
26876 attribute. Use nonimmediate_x64nomem_operand as operand 1 predicate.
26877 (*xorqi_cc_ext_1): Merge with *xorqi_cc_ext_1_rex64 using nox64
26878 isa attribute. Use general_x64nomem_operand as operand 2 predicate.
26879 * config/i386/predicates.md (nonimmediate_x64nomem_operand): New.
26880 (general_x64nomem_operand): Ditto.
26882 2013-03-26 Sebastian Huber <sebastian.huber@embedded-brains.de>
26884 * config/rtems.opt: Add -pthread option.
26886 2013-03-26 Richard Biener <rguenther@suse.de>
26888 * alias.c (find_base_term): Avoid redundant and not used recursion.
26889 (base_alias_check): Get the initial base term from the caller.
26890 (true_dependence_1): Compute and pass base terms to base_alias_check.
26891 (write_dependence_p): Likewise.
26892 (may_alias_p): Likewise.
26894 2013-03-26 Sofiane Naci <sofiane.naci@arm.com>
26896 * config/aarch64/aarch64.c (aarch64_classify_address): Support
26897 PC-relative load in SI modes and above only.
26899 2013-03-26 Xinyu Qi <xyqi@marvell.com>
26901 * config/arm/arm.h (FIRST_IWMMXT_GR_REGNUM): Add comment.
26902 * config/arm/iwmmxt.md (WCGR0): Update.
26903 (WCGR1, WCGR2, WCGR3): Likewise.
26905 2013-03-26 Uros Bizjak <ubizjak@gmail.com>
26907 * config/i386/i386.md (*movdfcc_1): Merge with *movdfcc_1_rex64.
26908 Use x64 and nox64 isa attributes.
26910 2013-03-26 Richard Biener <rguenther@suse.de>
26912 * emit-rtl.c (set_mem_attributes_minus_bitpos): Remove
26913 alignment computations and rely on get_object_alignment_1
26914 for the !TYPE_P case.
26915 Commonize DECL/COMPONENT_REF handling in the ARRAY_REF path.
26917 2013-03-26 Walter Lee <walt@tilera.com>
26919 * config/tilegx/tilegx.h (PROFILE_BEFORE_PROLOGUE): Define.
26920 * config/tilegx/tilepro.h (PROFILE_BEFORE_PROLOGUE): Define.
26922 2013-03-25 Jeff Law <law@redhat.com>
26924 * tree-ssa-dom.c (record_equivalences_from_incoming_edge): Add missing
26925 check for INTEGRAL_TYPE_P that was missing due to checking in
26926 wrong version of prior patch.
26928 2013-03-25 Walter Lee <walt@tilera.com>
26930 * config/tilegx/tilegx-builtins.h (enum tilegx_builtin): Add
26931 TILEGX_INSN_SHUFFLEBYTES1.
26932 * config/tilegx/tilegx.c (tilegx_builtin_info): Add entry for
26934 (tilegx_builtins): Ditto.
26935 * config/tilegx/tilegx.md (insn_shufflebytes1): New pattern.
26937 2013-03-25 Walter Lee <walt@tilera.com>
26939 * config/tilegx/tilegx.md (floatsisf2): New pattern.
26940 (floatunssisf2): New pattern.
26941 (floatsidf2): New pattern.
26942 (floatunssidf2): New pattern.
26944 2013-03-25 Walter Lee <walt@tilera.com>
26946 * config/tilegx/tilegx.c (expand_set_cint64_one_inst): Inline
26947 tests for constraint J, K, N, P.
26949 2013-03-25 Walter Lee <walt@tilera.com>
26951 * config/tilegx/tilegx.c (tilegx_asm_preferred_eh_data_format):
26952 Use indirect/pcrel encoding.
26953 * config/tilepro/tilepro.c (tilepro_asm_preferred_eh_data_format):
26956 2013-03-25 Steve Ellcey <sellcey@mips.com>
26958 * config/mips/mmips-cpus.def (74kc, 74kf2_1, 74kf, 74kf, 74kf1_1,
26959 74kfx, 74kx, 74kf3_2): Add PTF_AVOID_IMADD.
26960 * config/mips/mips.c (mips_option_override): Set IMADD default.
26961 * config/mips/mips.h (PTF_AVOID_IMADD): New.
26962 (ISA_HAS_MADD_MSUB): Remove MIPS16 check.
26963 (GENERATE_MADD_MSUB): Remove TUNE_74K check, add MIPS16 check.
26964 * config/mips/mips.md (mimadd): New flag for integer madd/msub.
26965 * doc/invoke.texi (-mimadd/-mno-imadd): New.
26967 2013-03-25 Jeff Law <law@redhat.com>
26969 * tree-ssa-dom.c (record_equivalences_from_incoming_edge): Rework
26970 slightly to avoid creating and folding useless trees. Simplify
26971 slightly by restricting to INTEGER_CSTs and using int_fits_type_p.
26973 2013-03-25 Uros Bizjak <ubizjak@gmail.com>
26975 * config/i386/i386.md (*zero_extendsidi2): Merge with
26976 *zero_extendsidi2_rex64. Use x64 and nox64 isa attributes.
26977 * config/i386/predicates.md (x86_64_zext_operand): Rename from
26978 x86_64_zext_general_operand. Use nonimmediate_operand on 32bit
26979 targets. Clarify comment.
26981 2013-03-25 Martin Jambor <mjambor@suse.cz>
26983 * ipa-prop.c (ipa_write_jump_function): Stream simple and aritmetic
26984 pass-through jump functions differently.
26985 (ipa_read_jump_function): Likewise. Also use setter functions to set
26988 2013-03-25 Martin Jambor <mjambor@suse.cz>
26990 * ipa-cp.c (ipa_get_indirect_edge_target): Renamed to
26991 ipa_get_indirect_edge_target_1, added parameter agg_reps and ability to
26993 (ipa_get_indirect_edge_target): New function.
26994 (devirtualization_time_bonus): New parameter known_aggs, pass it to
26995 ipa_get_indirect_edge_target. Update all callers.
26996 (ipcp_discover_new_direct_edges): New parameter aggvals. Pass it to
26997 ipa_get_indirect_edge_target_1 instead of calling
26998 ipa_get_indirect_edge_target.
26999 (create_specialized_node): Pass aggvlas to
27000 ipcp_discover_new_direct_edges.
27002 2013-03-25 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
27004 * config/arm/arm.md (f_sels, f_seld): New types.
27005 (*cmov<mode>): New pattern.
27006 * config/arm/predicates.md (arm_vsel_comparison_operator): New
27009 2013-03-25 Kai Tietz <ktietz@redhat.com>
27011 * config/i386/xm-mingw32.h (__USE_MINGW_ANSI_STDIO): Enable
27012 POSIX-printf for mingw-hosted builds.
27014 2013-03-25 Richard Biener <rguenther@suse.de>
27016 PR middle-end/56694
27017 * tree-eh.c (lower_eh_must_not_throw): Strip BLOCKs from the
27018 must-not-throw stmt location.
27020 2013-03-25 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
27022 * config/arm/arm.c (arm_emit_load_exclusive): Add acq parameter.
27023 Emit load-acquire versions when acq is true.
27024 (arm_emit_store_exclusive): Add rel parameter.
27025 Emit store-release versions when rel is true.
27026 (arm_split_compare_and_swap): Use acquire-release instructions
27028 of barriers when appropriate.
27029 (arm_split_atomic_op): Likewise.
27030 * config/arm/arm.h (TARGET_HAVE_LDACQ): New macro.
27031 * config/arm/unspecs.md (VUNSPEC_LAX): New unspec.
27032 (VUNSPEC_SLX): Likewise.
27033 (VUNSPEC_LDA): Likewise.
27034 (VUNSPEC_STL): Likewise.
27035 * config/arm/sync.md (atomic_load<mode>): New pattern.
27036 (atomic_store<mode>): Likewise.
27037 (arm_load_acquire_exclusive<mode>): Likewise.
27038 (arm_load_acquire_exclusivesi): Likewise.
27039 (arm_load_acquire_exclusivedi): Likewise.
27040 (arm_store_release_exclusive<mode>): Likewise.
27042 2013-03-25 Catherine Moore <clm@codesourcery.com>
27044 * config/mips/constraints.md (u, Udb7 Uead, Uean, Uesp, Uib3,
27045 Uuw6, Usb4, ZS, ZT, ZU, ZV, ZW): New constraints.
27046 * config/mip/predicates.md (lwsp_swsp_operand,
27047 lw16_sw16_operand, lhu16_sh16_operand, lbu16_operand,
27048 sb16_operand, db4_operand, db7_operand, ib3_operand,
27049 sb4_operand, ub4_operand, uh4_operand, uw4_operand,
27050 uw5_operand, uw6_operand, addiur2_operand, addiusp_operand,
27051 andi16_operand): New predicates.
27052 * config/mips/mips.md (compression): New attribute.
27053 (enabled): New attribute.
27054 (length): Consider compression in computing length.
27055 (shift_compression): New code attribute.
27056 (*add<mode>3): New operands. Record compression.
27057 (sub<mode>3): Likewise.
27058 (one_cmpl<mode>2): Likewise.
27059 (*and<mode>3): Likewise.
27060 (*ior<mode>3): Likewise.
27061 (unnamed pattern for xor): Likewise.
27062 (*zero_extend<SHORT:mode><GPR:mode>2): Likewise.
27063 (*<optab><mode>3): Likewise.
27064 (*mov<mode>_internal: Likewise.
27065 * config/mips/mips-protos.h (mips_signed_immediate_p): New.
27066 (mips_unsigned_immediate_p): New.
27067 (umips_lwsp_swsp_address_p): New.
27068 (m16_based_address_p): New.
27069 * config/mips/mips-protos.h (mips_signed_immediate_p): New prototype.
27070 (mips_unsigned_immediate_p): New prototype.
27071 (lwsp_swsp_address_p): New prototype.
27072 (m16_based_address_p): New prototype.
27073 * config/mips/mips.c (mips_unsigned_immediate_p): New function.
27074 (mips_signed_immediate_p): New function.
27075 (m16_based_address_p): New function.
27076 (lwsp_swsp_address_p): New function.
27077 (mips_print_operand_punctuation): Recognize short delay slot insns
27078 for microMIPS.add<mode>3"
27080 2013-03-25 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
27083 * config/arm/iterators.md (v_cmp_result): New mode attribute.
27084 * config/arm/neon.md (vcond<mode><mode>): Handle unordered cases.
27086 2013-03-25 Richard Biener <rguenther@suse.de>
27088 PR tree-optimization/56689
27089 * tree-vrp.c (execute_vrp): Mark loops for fixup if we removed
27092 2013-03-25 Richard Biener <rguenther@suse.de>
27094 * tree-ssa-loop-im.c (struct mem_ref): Use bitmap_head instead
27096 (memory_references): Likewise.
27097 (outermost_indep_loop, mem_ref_alloc, mark_ref_stored,
27098 gather_mem_refs_stmt, record_dep_loop, ref_indep_loop_p_1,
27099 ref_indep_loop_p_2, find_refs_for_sm): Adjust.
27100 (gather_mem_refs_in_loops): Fold into ...
27101 (analyze_memory_references): ... this. Move initialization
27102 to tree_ssa_lim_initialize.
27103 (fill_always_executed_in): Rename to ...
27104 (fill_always_executed_in_1): ... this.
27105 (fill_always_executed_in): Move contains_call computation to
27106 this new function from ...
27107 (tree_ssa_lim_initialize): ... here.
27108 (tree_ssa_lim): Call fill_always_executed_in.
27110 2013-03-25 Eric Botcazou <ebotcazou@adacore.com>
27112 * postreload.c (reload_combine): Fix code detecting returns.
27114 2013-03-25 Eric Botcazou <ebotcazou@adacore.com>
27116 * function.c (emit_use_return_register_into_block): On cc0 targets,
27117 do not emit the sequence between cc0 setter and user.
27119 2013-03-25 Kai Tietz <ktietz@redhat.com>
27121 * config/i386/predicates.md (local_symbolic_operand): Interpret
27122 dll-imported symbols as none-local.
27124 2013-03-25 Richard Biener <rguenther@suse.de>
27126 * tree-ssa-loop-im.c (struct depend): Remove.
27127 (struct lim_aux_data): Make depends a vec of gimples.
27128 (free_lim_aux_data): Adjust.
27129 (add_dependency): Likewise.
27130 (set_level): Likewise.
27132 2013-03-25 Richard Biener <rguenther@suse.de>
27134 PR middle-end/56434
27135 * calls.c (expand_call): Use MALLOC_ABI_ALIGNMENT to annotate
27136 the pointer returned by calls with ECF_MALLOC set.
27138 2013-03-24 Uros Bizjak <ubizjak@gmail.com>
27140 * config/i386/mmx.md (mov<mode>): Add ?!Ym,r and r,?!Ym alternatives.
27142 2013-03-24 Uros Bizjak <ubizjak@gmail.com>
27144 * config/i386/mmx.md (mov<mode>): Merge with movv2sf expander
27145 using MMXMODE mode iterator.
27146 (*move<mode>_internal): Merge with *movv2sf_internal and
27147 *movv2sf_internal_rex64 using MMXMODE mode iterator.
27149 2013-03-23 Steven Bosscher <steven@gcc.gnu.org>
27151 * gcse.c (oprs_unchanged_p): Respect flag_gcse_lm.
27152 (record_last_mem_set_info): Likewise.
27154 * df-core.c (rest_of_handle_df_initialize): Use XCNEWVEC instead
27155 of XNEWVEC followed by memset.
27156 (df_worklist_dataflow): Use XNEWVEC instead of xmalloc with a cast.
27158 2013-03-23 Steven Bosscher <steven@gcc.gnu.org>
27160 * config/avr/avr.c, config/bfin/bfin.c, config/c6x/c6x.c,
27161 config/epiphany/epiphany.c, config/frv/frv.c, config/ia64/ia64.c,
27162 config/iq2000/iq2000.c, config/mcore/mcore.c, config/mep/mep.c,
27163 config/mmix/mmix.c, config/pa/pa.c, config/rs6000/rs6000.c,
27164 config/s390/s390.c, config/sparc/sparc.c, config/spu/spu.c,
27165 config/stormy16/stormy16.c, config/v850/v850.c, config/xtensa/xtensa.c,
27166 dwarf2out.c, hw-doloop.c, resource.c, rtl.h : Where applicable, use
27167 the predicates NOTE_P, NONJUMP_INSN_P, JUMP_P, CALL_P, LABEL_P, and
27168 BARRIER_P instead of GET_CODE.
27170 2013-03-23 Eric Botcazou <ebotcazou@adacore.com>
27172 * config/sparc/sparc.c (sparc_emit_probe_stack_range): Fix small
27173 inaccuracy in the probing code.
27175 * config/sparc/sparc.md (ctrapsi4): Add predicate for operand #3.
27176 (ctrapdi4): Likewise.
27178 2013-03-23 Eric Botcazou <ebotcazou@adacore.com>
27180 * calls.c (expand_call): Add missing guard to code handling return
27181 of non-BLKmode structures in MSB.
27182 * function.c (expand_function_end): Likewise.
27184 2013-03-23 Eric Botcazou <ebotcazou@adacore.com>
27186 * combine.c (try_combine): Adjust comment. Do not add the set of
27187 insn #0 if the destination indirectly is set or dies in insn #2.
27188 Tidy up code to distribute a new note.
27190 2013-03-22 Uros Bizjak <ubizjak@gmail.com>
27192 * config/i386/i386.md (*movdi_internal): Set prefix_rex attribute
27193 also for alternatives 16 and 17.
27195 2013-03-22 Uros Bizjak <ubizjak@gmail.com>
27197 * config/i386/sse.md (*mov<mode>_internal): Merge with
27198 *mov<mode>_internal_rex64. Use x64 and nox64 isa attributes.
27199 Emit insn template depending on type attribute. Use
27200 HAVE_AS_IX86_INTERUNIT_MOVQ to handle broken assemblers that require
27201 movd instead of movq mnemonic for interunit moves. Rewrite mode
27202 attribute calculation. Remove unit attribute calculation.
27203 Set prefix attribute to maybe_vex for sselog1 and ssemov types.
27204 Set prefix_data16 attribute for DImode ssemov types.
27205 Use Ym instead of y for SSE-MMX conversion alternatives.
27206 Reorder operand constraints.
27208 2013-03-22 Steven Bosscher <steven@gcc.gnu.org>
27210 * df.h (df_insn_delete): Adjust prototype.
27211 * emit-rtl.c (remove_insn): Pass a basic block to df_insn_delete
27212 and let it decide whether mark the basic block dirty.
27213 (set_insn_deleted): Only pass INSN_P insns to df_insn_delete.
27214 * df-scan.c (df_insn_info_delete): New helper function, split
27215 off from df_insn_delete.
27216 (df_scan_free_bb_info): Use it.
27217 (df_insn_rescan, df_insn_rescan_all, df_process_deferred_rescans):
27219 (df_insn_delete): Likewise. Take insn rtx as argument. Verify
27220 that the insn is actually an insn and it has a non-NULL basic block.
27221 Do not mark basic block dirty if only deleting a DEBUG_INSN.
27223 2013-03-22 Richard Biener <rguenther@suse.de>
27225 * tree-ssa-loop-im.c (struct mem_ref): Remove indep_ref and
27227 (mem_ref_alloc): Do not allocate them.
27228 (refs_independent_p): Do not query or maintain a cache.
27230 2013-03-22 Richard Biener <rguenther@suse.de>
27232 * tree-ssa-loop-im.c (memory_references): Drop all_refs_in_loop.
27233 (gather_mem_refs_in_loops): Do not compute it.
27234 (analyze_memory_references): Do not allocate it.
27235 (tree_ssa_lim_finalize): Do not free it.
27236 (for_all_locs_in_loop): Do not query all_refs_in_loop.
27238 2013-03-22 Richard Biener <rguenther@suse.de>
27240 * is-a.h (as_a): Use gcc_checking_assert.
27242 2013-03-22 Ian Bolton <ian.bolton@arm.com>
27244 * config/aarch64/aarch64.c (aarch64_print_operand): New
27245 format specifier for printing a constant in hex.
27246 * config/aarch64/aarch64.md (insv_imm<mode>): Use the X
27247 format specifier for printing second operand.
27249 2013-03-22 Richard Biener <rguenther@suse.de>
27251 * tree-ssa-loop-im.c (memory_references): Add refs_stored_in_loop
27253 (gather_mem_refs_in_loops): Perform store accumulation here.
27254 (create_vop_ref_mapping_loop): Remove.
27255 (create_vop_ref_mapping): Likewise.
27256 (analyze_memory_references): Initialize refs_stored_in_loop.
27257 (LOOP_DEP_BIT): New define to map to bits in (in)dep_loop bitmaps.
27258 (record_indep_loop): Remove.
27259 (record_dep_loop): New function.
27260 (ref_indep_loop_p_1): Adjust to only walk over references
27261 in the loop, not its subloops.
27262 (ref_indep_loop_p): Rename to ...
27263 (ref_indep_loop_p_2): ... this and recurse over the loop tree,
27264 maintaining a more fine-grained cache.
27265 (ref_indep_loop_p): Wrap ref_indep_loop_p_2.
27266 (tree_ssa_lim_finalize): Free refs_stored_in_loop.
27268 2013-03-22 Richard Biener <rguenther@suse.de>
27270 * tree-ssa-loop-im.c (struct mem_ref_locs): Remove.
27271 (struct mem_ref): Make accesses_in_loop a vec of a vec of
27272 aggregate mem_ref_loc.
27273 (free_mem_ref_locs): Inline into ...
27274 (memref_free): ... this and adjust.
27275 (mem_ref_alloc): Adjust.
27276 (mem_ref_locs_alloc): Remove.
27277 (record_mem_ref_loc): Adjust.
27278 (get_all_locs_in_loop): Rewrite into ...
27279 (for_all_locs_in_loop): ... this iterator.
27280 (rewrite_mem_ref_loc): New functor.
27281 (rewrite_mem_refs): Use for_all_locs_in_loop.
27282 (sm_set_flag_if_changed): New functor.
27283 (execute_sm_if_changed_flag_set): Use for_all_locs_in_loop.
27284 (ref_always_accessed): New functor.
27285 (ref_always_accessed_p): Use for_all_locs_in_loop.
27287 2013-03-21 Marc Glisse <marc.glisse@inria.fr>
27289 * tree-pass.h (PROP_gimple_lvec): New.
27290 * passes.c (dump_properties): Handle PROP_gimple_lvec.
27291 (init_optimization_passes): Move pass_lower_vector.
27292 * tree-vect-generic.c (gate_expand_vector_operations_ssa): Test
27294 (pass_lower_vector): Provide PROP_gimple_lvec.
27295 (pass_lower_vector_ssa): Likewise.
27296 * cfgexpand.c (pass_expand): Require PROP_gimple_lvec.
27298 2013-03-21 Mark Wielaard <mjw@redhat.com>
27300 * dwarf2out.c (size_of_aranges): Skip DECL_IGNORED_P functions.
27302 2013-03-21 Uros Bizjak <ubizjak@gmail.com>
27304 * config/i386/i386.md (*movdi_internal): Disparage slightly
27305 all MMX moves to/from memory. Use Yi instead of x for SSE-MMX
27306 conversion alternatives.
27308 2013-03-21 Jakub Jelinek <jakub@redhat.com>
27310 PR middle-end/48087
27311 * diagnostic.def (DK_WERROR): New kind.
27312 * diagnostic.h (werrorcount): Define.
27313 * diagnostic.c (diagnostic_report_diagnostic): For DK_WARNING
27314 promoted to DK_ERROR, increment DK_WERROR counter instead of
27316 * toplev.c (toplev_main): Call print_ignored_options even if
27317 just werrorcount is non-zero. Exit with FATAL_EXIT_CODE
27318 even if just werrorcount is non-zero.
27321 * dwarf2out.c (tree_add_const_value_attribute): Call ggc_free (array)
27323 (resolve_one_addr): Fail if referenced STRING_CST hasn't been written.
27324 (string_cst_pool_decl): New function.
27325 (optimize_one_addr_into_implicit_ptr): New function.
27326 (resolve_addr_in_expr): Optimize DWARF location expression
27327 DW_OP_addr DW_OP_stack_value where DW_OP_addr refers to some variable
27328 which doesn't live in memory, but has DW_AT_location or
27329 DW_AT_const_value, or refers to a string literal, into
27330 DW_OP_GNU_implicit_pointer.
27331 (optimize_location_into_implicit_ptr): New function.
27332 (resolve_addr): If removing DW_AT_location of a variable because
27333 it was DW_OP_addr of address of the variable, but the variable doesn't
27334 live in memory, try to emit const value attribute for the initializer.
27336 2013-03-21 Marc Glisse <marc.glisse@inria.fr>
27338 * tree.h (VECTOR_TYPE_P): New macro.
27339 (VECTOR_INTEGER_TYPE_P, VECTOR_FLOAT_TYPE_P, FLOAT_TYPE_P,
27340 TYPE_MODE): Use it.
27341 * fold-const.c (fold_cond_expr_with_comparison): Use build_zero_cst.
27342 VEC_COND_EXPR cannot be lvalues.
27343 (fold_ternary_loc) <VEC_COND_EXPR>: Merge with the COND_EXPR case.
27345 2013-03-21 Marc Glisse <marc.glisse@inria.fr>
27347 * simplify-rtx.c (simplify_binary_operation_1) <VEC_CONCAT>:
27348 Restrict the transformation to equal modes.
27350 2013-03-21 Richard Biener <rguenther@suse.de>
27352 PR tree-optimization/39326
27353 * tree-ssa-loop-im.c (UNANALYZABLE_MEM_ID): New define.
27354 (MEM_ANALYZABLE): Adjust.
27355 (record_mem_ref_loc): Move bitmap ops ...
27356 (gather_mem_refs_stmt): ... here. Use the shared mem-ref for
27357 unanalyzable refs, do not record locations for it.
27358 (analyze_memory_references): Allocate ref zero as shared
27360 (refs_independent_p): Do not test for unanalyzed mems here.
27361 (ref_indep_loop_p_1): Special-case disambiguation against
27362 the unanalyzed ref.
27363 (ref_indep_loop_p): Assert we are not queried for the unanalyzed mem.
27365 2013-03-21 Christophe Lyon <christophe.lyon@linaro.org>
27367 * config/arm/arm-protos.h (tune_params): Add
27368 prefer_neon_for_64bits field.
27369 * config/arm/arm.c (prefer_neon_for_64bits): New variable.
27370 (arm_slowmul_tune): Default prefer_neon_for_64bits to false.
27371 (arm_fastmul_tune, arm_strongarm_tune, arm_xscale_tune): Ditto.
27372 (arm_9e_tune, arm_v6t2_tune, arm_cortex_tune): Ditto.
27373 (arm_cortex_a15_tune, arm_cortex_a5_tune): Ditto.
27374 (arm_cortex_a9_tune, arm_v6m_tune, arm_fa726te_tune): Ditto.
27375 (arm_option_override): Handle -mneon-for-64bits new option.
27376 * config/arm/arm.h (TARGET_PREFER_NEON_64BITS): New macro.
27377 (prefer_neon_for_64bits): Declare new variable.
27378 * config/arm/arm.md (arch): Rename neon_onlya8 and neon_nota8 to
27379 avoid_neon_for_64bits and neon_for_64bits. Remove onlya8 and nota8.
27380 (arch_enabled): Handle new arch types. Remove support for onlya8
27382 (one_cmpldi2): Use new arch names.
27383 (zero_extend<mode>di2, extend<mode>di2): Ditto.
27384 * config/arm/arm.opt (mneon-for-64bits): Add option.
27385 * config/arm/neon.md (adddi3_neon, subdi3_neon, iordi3_neon)
27386 (anddi3_neon, xordi3_neon, ashldi3_neon, <shift>di3_neon): Use
27387 neon_for_64bits instead of nota8 and avoid_neon_for_64bits instead
27389 * doc/invoke.texi (-mneon-for-64bits): Document.
27391 2013-03-21 Richard Biener <rguenther@suse.de>
27393 PR tree-optimization/39326
27394 * tree-ssa-loop-im.c (bb_loop_postorder): New global static.
27395 (sort_bbs_in_loop_postorder_cmp): New function.
27396 (gather_mem_refs_in_loops): Assign mem-ref IDs in loop postorder.
27398 2013-03-21 Richard Biener <rguenther@suse.de>
27400 * tree-vect-data-refs.c (vect_update_interleaving_chain): Remove.
27401 (vect_insert_into_interleaving_chain): Likewise.
27402 (vect_drs_dependent_in_basic_block): Inline ...
27403 (vect_slp_analyze_data_ref_dependence): ... here. New function,
27405 (vect_analyze_data_ref_dependence): ... here. Simplify.
27406 (vect_check_interleaving): Simplify.
27407 (vect_analyze_data_ref_dependences): Likewise. Split out ...
27408 (vect_slp_analyze_data_ref_dependences): ... this new function.
27409 (dr_group_sort_cmp): New function.
27410 (vect_analyze_data_ref_accesses): Compute data-reference groups
27411 here instead of in vect_analyze_data_ref_dependence. Use
27412 a more efficient algorithm.
27413 * tree-vect-slp.c (vect_slp_analyze_bb_1): Use
27414 vect_slp_analyze_data_ref_dependences. Call
27415 vect_analyze_data_ref_accesses earlier.
27416 * tree-vect-loop.c (vect_analyze_loop_2): Likewise.
27417 * tree-vectorizer.h (vect_analyze_data_ref_dependences): Adjust.
27418 (vect_slp_analyze_data_ref_dependences): New prototype.
27420 2013-03-21 Richard Biener <rguenther@suse.de>
27422 * tree-ssa-loop-im.c (can_sm_ref_p): Do not test whether
27423 ref is stored in the loop.
27424 (find_refs_for_sm): Walk only over all stores.
27425 (store_motion_loop): Allocate from lim_bitmap_obstack.
27426 (store_motion): Likewise.
27428 2013-03-21 Richard Biener <rguenther@suse.de>
27430 * tree-vect-loop-manip.c (slpeel_tree_peel_loop_to_edge):
27431 Update virtual SSA form.
27433 2013-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
27435 * configure.ac (gcc_cv_ld_eh_frame_ciev3): New test.
27436 * configure: Regenerate.
27437 * config.in: Regenerate.
27438 * config/sol2.c (solaris_override_options): Only enforce DWARF 2
27439 if !HAVE_LD_EH_FRAME_CIEV3.
27441 2013-03-21 Richard Biener <rguenther@suse.de>
27443 * tree-cfg.c (verify_expr_no_block): New function.
27444 (verify_expr_location_1): Verify that neither DECL_DEBUG_EXPR
27445 nor DECL_VALUE_EXPR have locations with associated blocks.
27446 * tree-ssa-live.c (clear_unused_block_pointer_1): Remove.
27447 (clear_unused_block_pointer): Remove code dealing with
27448 blocks in DECL_DEBUG_EXPR locations.
27450 2013-03-21 Richard Biener <rguenther@suse.de>
27452 * tree.h (DECL_DEBUG_EXPR_IS_FROM): Rename to ...
27453 (DECL_HAS_DEBUG_EXPR_P): ... this. Guard properly.
27454 * tree.c (copy_node_stat): Do not copy DECL_HAS_DEBUG_EXPR_P.
27455 * dwarf2out.c (add_var_loc_to_decl): Use DECL_HAS_DEBUG_EXPR_P
27456 instead of DECL_DEBUG_EXPR_IS_FROM.
27457 * gimplify.c (gimplify_modify_expr): Likewise.
27458 * tree-cfg.c (verify_expr_location_1): Likewise.
27459 * tree-complex.c (create_one_component_var): Likewise.
27460 * tree-sra.c (create_access_replacement): Likewise.
27461 * tree-ssa-live.c (clear_unused_block_pointer_1): Likewise.
27462 (clear_unused_block_pointer): Likewise.
27463 * tree-streamer-in.c (unpack_ts_decl_common_value_fields): Likewise.
27464 * tree-streamer-out.c (pack_ts_decl_common_value_fields): Likewise.
27465 * var-tracking.c (var_debug_decl): Likewise.
27466 (track_expr_p): Likewise.
27467 * tree-inline.c (add_local_variables): Likewise. Set
27468 DECL_HAS_DEBUG_EXPR_P after copying it.
27469 * tree-diagnostic.c (default_tree_printer): Use DECL_HAS_DEBUG_EXPR_P
27470 instead of DECL_DEBUG_EXPR_IS_FROM. Guard properly.
27472 2013-03-21 Uros Bizjak <ubizjak@gmail.com>
27475 * configure.ac (HAVE_AS_IX86_INTERUNIT_MOVQ): New test.
27476 * configure: Regenerate.
27477 * config.in: Regenerate.
27478 * config/i386/i386.md (*movdf_internal): Use
27479 HAVE_AS_IX86_INTERUNIT_MOVQ to handle broken assemblers that require
27480 movd instead of movq mnemonic for interunit moves.
27481 (*movdi_internal): Ditto.
27483 2013-03-21 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
27485 * config/aarch64/aarch64-simd.md (simd_fabd): New Attribute.
27486 (abd<mode>_3): New pattern.
27487 (aba<mode>_3): New pattern.
27488 (fabd<mode>_3): New pattern.
27490 2013-03-21 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
27492 * config/aarch64/aarch64-elf.h (REGISTER_PREFIX): Remove.
27493 * config/aarch64/aarch64.c (aarch64_print_operand): Remove all
27494 occurrence of REGISTER_PREFIX as its empty string.
27496 2013-03-20 Jeff Law <law@redhat.com>
27498 * tree-ssa-dom.c (record_equivalences_from_incoming_edge): Record
27499 addititional equivalences for equality comparisons between an SSA_NAME
27500 and a constant where the SSA_NAME was set from a widening conversion.
27502 2013-03-20 Walter Lee <walt@tilera.com>
27504 * config/tilegx/sync.md (atomic_test_and_set): New pattern.
27506 2013-03-20 Uros Bizjak <ubizjak@gmail.com>
27508 * config/i386/i386.md (*movoi_internal_avx): Emit insn template
27509 depending on type attribute.
27510 (*movti_internal): Ditto.
27511 (*movtf_internal): Ditto.
27512 (*movxf_internal): Ditto.
27513 (*movdf_internal): Ditto.
27514 (*movsf_internal): Ditto.
27516 2013-03-20 Uros Bizjak <ubizjak@gmail.com>
27518 * config/i386/i386.md (*movti_internal): Set prefix attribute to
27519 maybe_vex for sselog1 and ssemov types.
27520 (*movdi_internal): Reorder operand constraints.
27521 (*movsi_internal): Ditto. Set prefix attribute to
27522 maybe_vex for sselog1 and ssemov types.
27523 (*movtf_internal): Set prefix attribute to maybe_vex
27524 for sselog1 and ssemov types.
27525 (*movdf_internal): Ditto. Set prefix_data16 attribute for
27526 DImode ssemov types. Reorder operand constraints.
27527 (*movsf_internal): Set type of alternatives 3,4 to imov. Set prefix
27528 attribute to maybe_vex for sselog1 and ssemov types. Set prefix_data16
27529 attribute for SImode ssemov types. Reorder operand constraints.
27531 2013-03-20 Martin Jambor <mjambor@suse.cz>
27533 * params.def (PARAM_IPA_CP_ARRAY_INDEX_HINT_BONUS): New parameter.
27534 * ipa-cp.c (hint_time_bonus): Add abonus for known array indices.
27536 2013-03-20 Pat Haugen <pthaugen@us.ibm.com>
27538 * config/rs6000/predicates.md (indexed_address, update_address_mem
27539 update_indexed_address_mem): New predicates.
27540 * config/rs6000/vsx.md (vsx_extract_<mode>_zero): Set correct "type"
27541 attribute for load/store instructions.
27542 * config/rs6000/dfp.md (movsd_store): Likewise.
27543 (movsd_load): Likewise.
27544 * config/rs6000/rs6000.md (zero_extend<mode>di2_internal1): Likewise.
27545 (unnamed HI->DI extend define_insn): Likewise.
27546 (unnamed SI->DI extend define_insn): Likewise.
27547 (unnamed QI->SI extend define_insn): Likewise.
27548 (unnamed QI->HI extend define_insn): Likewise.
27549 (unnamed HI->SI extend define_insn): Likewise.
27550 (unnamed HI->SI extend define_insn): Likewise.
27551 (extendsfdf2_fpr): Likewise.
27552 (movsi_internal1): Likewise.
27553 (movsi_internal1_single): Likewise.
27554 (movhi_internal): Likewise.
27555 (movqi_internal): Likewise.
27556 (movcc_internal1): Correct mnemonic for stw insn. Set correct "type"
27557 attribute for load/store instructions.
27558 (mov<mode>_hardfloat): Set correct "type" attribute for load/store
27560 (mov<mode>_softfloat): Likewise.
27561 (mov<mode>_hardfloat32): Likewise.
27562 (mov<mode>_hardfloat64): Likewise.
27563 (mov<mode>_softfloat64): Likewise.
27564 (movdi_internal32): Likewise.
27565 (movdi_internal64): Likewise.
27566 (probe_stack_<mode>): Likewise.
27568 2013-03-20 Michael Meissner <meissner@linux.vnet.ibm.com>
27570 * config/rs6000/vector.md (VEC_R): Add 32-bit integer, binary
27571 floating point, and decimal floating point to reload iterator.
27573 * config/rs6000/constraints.md (wl constraint): New constraints to
27574 return FLOAT_REGS if certain options are used to reduce the number
27575 of separate patterns that exist in the file.
27576 (wx constraint): Likewise.
27577 (wz constraint): Likewise.
27579 * config/rs6000/rs6000.c (rs6000_debug_reg_global): If
27580 -mdebug=reg, print wg, wl, wx, and wz constraints.
27581 (rs6000_init_hard_regno_mode_ok): Initialize new constraints.
27582 Initialize the reload functions for 64-bit binary/decimal floating
27584 (reg_offset_addressing_ok_p): If we are on a power7 or later, use
27585 LFIWZX and STFIWX to load/store 32-bit decimal types, and don't
27586 create the buffer on the stack to overcome not having a 32-bit
27588 (rs6000_emit_move): Likewise.
27589 (rs6000_secondary_memory_needed_rtx): Likewise.
27590 (rs6000_alloc_sdmode_stack_slot): Likewise.
27591 (rs6000_preferred_reload_class): On VSX, we can create SFmode 0.0f
27592 via xxlxor, just like DFmode 0.0.
27594 * config/rs6000/rs6000.h (TARGET_NO_SDMODE_STACK): New macro,
27595 define as 1 if we are running on a power7 or newer.
27596 (enum r6000_reg_class_enum): Add new constraints.
27598 * config/rs6000/dfp.md (movsd): Delete, combine with binary
27599 floating point moves in rs6000.md. Combine power6x (mfpgpr) moves
27600 with other moves by using conditional constraits (wg). Use LFIWZX
27601 and STFIWX for loading SDmode on power7. Use xxlxor to create 0.0f.
27602 (movsd splitter): Likewise.
27603 (movsd_hardfloat): Likewise.
27604 (movsd_softfloat): Likewise.
27606 * config/rs6000/rs6000.md (FMOVE32): New iterators to combine
27607 binary and decimal floating point moves.
27608 (fmove_ok): New attributes to combine binary and decimal floating
27609 point moves, and to combine power6x (mfpgpr) moves along normal
27611 (real_value_to_target): Likewise.
27612 (f32_lr): Likewise.
27613 (f32_lm): Likewise.
27614 (f32_li): Likewise.
27615 (f32_sr): Likewise.
27616 (f32_sm): Likewise.
27617 (f32_si): Likewise.
27618 (movsf): Combine binary and decimal floating point moves. Combine
27619 power6x (mfpgpr) moves with other moves by using conditional
27620 constraits (wg). Use LFIWZX and STFIWX for loading SDmode on power7.
27621 (mov<mode> for SFmode/SDmode); Likewise.
27622 (SFmode/SDmode splitters): Likewise.
27623 (movsf_hardfloat): Likewise.
27624 (mov<mode>_hardfloat for SFmode/SDmode): Likewise.
27625 (movsf_softfloat): Likewise.
27626 (mov<mode>_softfloat for SFmode/SDmode): Likewise.
27628 * doc/md.texi (PowerPC and IBM RS6000 constraints): Document wl,
27629 wx and wz constraints.
27631 * config/rs6000/constraints.md (wg constraint): New constraint to
27632 return FLOAT_REGS if -mmfpgpr (power6x) was used.
27634 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Add wg
27637 * config/rs6000/rs6000.c (rs6000_debug_reg_global): If
27638 -mdebug=reg, print wg, wl, wx, and wz constraints.
27639 (rs6000_init_hard_regno_mode_ok): Initialize new constraints.
27640 Initialize the reload functions for 64-bit binary/decimal floating
27642 (reg_offset_addressing_ok_p): If we are on a power7 or later, use
27643 LFIWZX and STFIWX to load/store 32-bit decimal types, and don't
27644 create the buffer on the stack to overcome not having a 32-bit
27646 (rs6000_emit_move): Likewise.
27647 (rs6000_secondary_memory_needed_rtx): Likewise.
27648 (rs6000_alloc_sdmode_stack_slot): Likewise.
27649 (rs6000_preferred_reload_class): On VSX, we can create SFmode 0.0f
27650 via xxlxor, just like DFmode 0.0.
27652 * config/rs6000/dfp.md (movdd): Delete, combine with binary
27653 floating point moves in rs6000.md. Combine power6x (mfpgpr) moves
27654 with other moves by using conditional constraits (wg). Use LFIWZX
27655 and STFIWX for loading SDmode on power7.
27656 (movdd splitters): Likewise.
27657 (movdd_hardfloat32): Likewise.
27658 (movdd_softfloat32): Likewise.
27659 (movdd_hardfloat64_mfpgpr): Likewise.
27660 (movdd_hardfloat64): Likewise.
27661 (movdd_softfloat64): Likewise.
27663 * config/rs6000/rs6000.md (FMOVE64): New iterators to combine
27664 64-bit binary and decimal floating point moves.
27665 (FMOVE64X): Likewise.
27666 (movdf): Combine 64-bit binary and decimal floating point moves.
27667 Combine power6x (mfpgpr) moves with other moves by using
27668 conditional constraits (wg).
27669 (mov<mode> for DFmode/DDmode): Likewise.
27670 (DFmode/DDmode splitters): Likewise.
27671 (movdf_hardfloat32): Likewise.
27672 (mov<mode>_hardfloat32 for DFmode/DDmode): Likewise.
27673 (movdf_softfloat32): Likewise.
27674 (movdf_hardfloat64_mfpgpr): Likewise.
27675 (movdf_hardfloat64): Likewise.
27676 (mov<mode>_hardfloat64 for DFmode/DDmode): Likewise.
27677 (movdf_softfloat64): Likewise.
27678 (mov<mode>_softfloat64 for DFmode/DDmode): Likewise.
27679 (reload_<mode>_load): Move to later in the file so they aren't in
27680 the middle of the floating point move insns.
27681 (reload_<mode>_store): Likewise.
27683 * doc/md.texi (PowerPC and IBM RS6000 constraints): Document wg
27686 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Print out wg
27687 constraint if -mdebug=reg.
27688 (rs6000_initi_hard_regno_mode_ok): Enable wg constraint if -mfpgpr.
27689 Enable using dd reload support if needed.
27691 * config/rs6000/dfp.md (movtd): Delete, combine with 128-bit
27692 binary and decimal floating point moves in rs6000.md.
27693 (movtd_internal): Likewise.
27695 * config/rs6000/rs6000.md (FMOVE128): Combine 128-bit binary and
27696 decimal floating point moves.
27698 (movtf_internal): Likewise.
27699 (mov<mode>_internal, TDmode/TFmode): Likewise.
27700 (movtf_softfloat): Likewise.
27701 (mov<mode>_softfloat, TDmode/TFmode): Likewise.
27703 * config/rs6000/rs6000.md (movdi_mfpgpr): Delete, combine with
27704 movdi_internal64, using wg constraint for move direct operations.
27705 (movdi_internal64): Likewise.
27707 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Print
27708 MODES_TIEABLE_P for selected modes. Print the numerical value of
27709 the various virtual registers. Use GPR/FPR first/last values,
27710 instead of hard coding the register numbers. Print which modes
27711 have reload functions registered.
27712 (rs6000_option_override_internal): If -mdebug=reg, trace the options
27713 settings before/after setting cpu, target and subtarget settings.
27714 (rs6000_secondary_reload_trace): Improve the RTL dump for -mdebug=addr
27715 and for secondary reload failures in rs6000_secondary_reload_inner.
27716 (rs6000_secondary_reload_fail): Likewise.
27717 (rs6000_secondary_reload_inner): Likewise.
27719 * config/rs6000/rs6000.md (FIRST_GPR_REGNO): Add convenience
27720 macros for first/last GPR and FPR registers.
27721 (LAST_GPR_REGNO): Likewise.
27722 (FIRST_FPR_REGNO): Likewise.
27723 (LAST_FPR_REGNO): Likewise.
27725 * config/rs6000/vector.md (mul<mode>3): Use the combined macro
27726 VECTOR_UNIT_ALTIVEC_OR_VSX_P instead of separate calls to
27727 VECTOR_UNIT_ALTIVEC_P and VECTOR_UNIT_VSX_P.
27728 (vcond<mode><mode>): Likewise.
27729 (vcondu<mode><mode>): Likewise.
27730 (vector_gtu<mode>): Likewise.
27731 (vector_gte<mode>): Likewise.
27732 (xor<mode>3): Don't allow logical operations on TImode in 32-bit
27733 to prevent the compiler from converting DImode operations to TImode.
27734 (ior<mode>3): Likewise.
27735 (and<mode>3): Likewise.
27736 (one_cmpl<mode>2): Likewise.
27737 (nor<mode>3): Likewise.
27738 (andc<mode>3): Likewise.
27740 * config/rs6000/constraints.md (wt constraint): New constraint
27741 that returns VSX_REGS if TImode is allowed in VSX registers.
27743 * config/rs6000/predicates.md (easy_fp_constant): 0.0f is an easy
27744 constant under VSX.
27746 * config/rs6000/rs6000-modes.def (PTImode): Define, PTImode is
27747 similar to TImode, but it is restricted to being in the GPRs.
27749 * config/rs6000/rs6000.opt (-mvsx-timode): New switch to allow
27750 TImode to occupy a single VSX register.
27752 * config/rs6000/rs6000-cpus.def (ISA_2_6_MASKS_SERVER): Default to
27753 -mvsx-timode for power7/power8.
27754 (power7 cpu): Likewise.
27755 (power8 cpu): Likewise.
27757 * config/rs6000/rs6000.c (rs6000_hard_regno_nregs_internal): Make
27758 sure that TFmode/TDmode take up two registers if they are ever
27759 allowed in the upper VSX registers.
27760 (rs6000_hard_regno_mode_ok): If -mvsx-timode, allow TImode in VSX
27762 (rs6000_init_hard_regno_mode_ok): Likewise.
27763 (rs6000_debug_reg_global): Add debugging for PTImode and wt
27764 constraint. Print if LRA is turned on.
27765 (rs6000_option_override_internal): Give an error if -mvsx-timode
27766 and VSX is not enabled.
27767 (invalid_e500_subreg): Handle PTImode, restricting it to GPRs. If
27768 -mvsx-timode, restrict TImode to reg+reg addressing, and PTImode
27769 to reg+offset addressing. Use PTImode when checking offset
27770 addresses for validity.
27771 (reg_offset_addressing_ok_p): Likewise.
27772 (rs6000_legitimate_offset_address_p): Likewise.
27773 (rs6000_legitimize_address): Likewise.
27774 (rs6000_legitimize_reload_address): Likewise.
27775 (rs6000_legitimate_address_p): Likewise.
27776 (rs6000_eliminate_indexed_memrefs): Likewise.
27777 (rs6000_emit_move): Likewise.
27778 (rs6000_secondary_reload): Likewise.
27779 (rs6000_secondary_reload_inner): Handle PTImode. Allow 64-bit
27780 reloads to fpr registers to continue to use reg+offset addressing,
27781 but 64-bit reloads to altivec registers need reg+reg addressing.
27782 Drop test for PRE_MODIFY, since VSX loads/stores no longer support
27783 it. Treat LO_SUM like a PLUS operation.
27784 (rs6000_secondary_reload_class): If type is 64-bit, prefer to use
27785 FLOAT_REGS instead of VSX_RGS to allow use of reg+offset addressing.
27786 (rs6000_cannot_change_mode_class): Do not allow TImode in VSX
27787 registers to share a register with a smaller sized type, since VSX
27788 puts scalars in the upper 64-bits.
27789 (print_operand): Add support for PTImode.
27790 (rs6000_register_move_cost): Use VECTOR_MEM_VSX_P instead of
27791 VECTOR_UNIT_VSX_P to catch types that can be loaded in VSX
27792 registers, but don't have arithmetic support.
27793 (rs6000_memory_move_cost): Add test for VSX.
27794 (rs6000_opt_masks): Add -mvsx-timode.
27796 * config/rs6000/vsx.md (VSm): Change to use 64-bit aligned moves
27799 (VSr): Use wt constraint for TImode.
27800 (VSv): Drop TImode support.
27801 (vsx_movti): Delete, replace with versions for 32-bit and 64-bit.
27802 (vsx_movti_64bit): Likewise.
27803 (vsx_movti_32bit): Likewise.
27804 (vec_store_<mode>): Use VSX iterator instead of vector iterator.
27805 (vsx_and<mode>3): Delete use of '?' constraint on inputs, just put
27806 one '?' on the appropriate output constraint. Do not allow TImode
27807 logical operations on 32-bit systems.
27808 (vsx_ior<mode>3): Likewise.
27809 (vsx_xor<mode>3): Likewise.
27810 (vsx_one_cmpl<mode>2): Likewise.
27811 (vsx_nor<mode>3): Likewise.
27812 (vsx_andc<mode>3): Likewise.
27813 (vsx_concat_<mode>): Likewise.
27814 (vsx_xxpermdi_<mode>): Fix thinko for non V2DF/V2DI modes.
27816 * config/rs6000/rs6000.h (MASK_VSX_TIMODE): Map from
27817 OPTION_MASK_VSX_TIMODE.
27818 (enum rs6000_reg_class_enum): Add RS6000_CONSTRAINT_wt.
27819 (STACK_SAVEAREA_MODE): Use PTImode instead of TImode.
27821 * config/rs6000/rs6000.md (INT mode attribute): Add PTImode.
27822 (TI2 iterator): New iterator for TImode, PTImode.
27823 (wd mode attribute): Add values for vector types.
27824 (movti_string): Replace TI move operations with operations for TImode
27825 and PTImode. Add support for TImode being allowed in VSX registers.
27826 (mov<mode>_string, TImode/PTImode): Likewise.
27827 (movti_ppc64): Likewise.
27828 (mov<mode>_ppc64, TImode/PTImode): Likewise.
27829 (TI mode splitters): Likewise.
27831 * doc/md.texi (PowerPC and IBM RS6000 constraints): Document wt
27834 2013-03-20 Marc Glisse <marc.glisse@inria.fr>
27836 PR tree-optimization/56355
27837 * fold-const.c (tree_binary_nonnegative_warnv_p) <MULT_EXPR>:
27838 Also handle integers with undefined overflow.
27840 2013-03-20 Catherine Moore <clm@codesourcery.com>
27841 Maciej W. Rozycki <macro@codesourcery.com>
27842 Tom de Vries <tom@codesourcery.com>
27843 Nathan Sidwell <nathan@codesourcery.com>
27844 Iain Sandoe <iain@codesourcery.com>
27845 Nathan Froyd <froydnj@codesourcery.com>
27846 Chao-ying Fu <fu@mips.com>
27848 * doc/extend.texi: (micromips, nomicromips, nocompression):
27849 Document new function attributes.
27850 * doc/invoke.texi (minterlink-compressed, mmicromips,
27851 m14k, m14ke, m14kec): Document new options.
27852 (minterlink-mips16): Update documentation.
27853 * doc/md.texi (ZC, ZD): Document new constraints.
27854 * configure.ac (gcc_cv_as_micromips): Check if linker
27855 supports the .set micromips directive.
27856 * configure: Regenerate.
27857 * config.in: Regenerate.
27858 * config/mips/mips-tables.opt: Regenerate.
27859 * config/mips/micromips.md: New file.
27860 * constraints.md (ZC, ZD): New constraints.
27861 * config/mips/predicates.md (movep_src_register): New predicate.
27862 (movep_src_operand): New predicate.
27863 (non_volatile_mem_operand): New predicate.
27864 * config/mips/mips.md (multimem): New type.
27865 (length): Differentiate between 17-bit and 18-bit branch offsets.
27866 (MOVEP1, MOVEP2): New mode iterator.
27867 (mov_<load>l): Use ZC constraint.
27868 (mov_<load>r): Likewise.
27869 (mov_<store>l): Likewise.
27870 (mov_<store>r): Likewise.
27871 (*branch_equality<mode>_inverted): Add microMIPS support.
27872 (*branch_equality<mode>): Likewise.
27873 (*jump_absolute): Likewise.
27874 (indirect_jump_<mode>): Likewise.
27875 (tablejump_<mode>): Likewise.
27876 (<optab>_internal): Likewise.
27877 (sibcall_internal): Likewise.
27878 (sibcall_value_internal): Likewise.
27879 (prefetch): Use constraint ZD.
27880 * config/mips/mips.opt (minterlink-compressed): New option.
27881 (minterlink-mips16): Now an alias for minterlink-compressed.
27882 (mmicromips): New option.
27883 * config/mips/sync.md (sync_compare_and_swap<mode>): Use ZR constraint.
27884 (compare_and_swap_12): Likewise.
27885 (sync_add<mode>): Likewise.
27886 (sync_<optab>_12): Likewise.
27887 (sync_old_<optab>_12): Likewise.
27888 (sync_new_<optab>_12): Likewise.
27889 (sync_nand_12): Likewise.
27890 (sync_old_nand_12): Likewise.
27891 (sync_new_nand_12): Likewise.
27892 (sync_sub<mode>): Likewise.
27893 (sync_old_add<mode>): Likewise.
27894 (sync_old_sub<mode>): Likewise.
27895 (sync_new_add<mode>): Likewise.
27896 (sync_new_sub<mode>): Likewise.
27897 (sync_<optab><mode>): Likewise.
27898 (sync_old_<optab><mode>): Likewise.
27899 (sync_new_<optab><mode>): Likewise.
27900 (sync_nand<mode>): Likewise.
27901 (sync_old_nand<mode>): Likewise.
27902 (sync_new_nand<mode>): Likewise.
27903 (sync_lock_test_and_set<mode>): Likewise.
27904 (test_and_set_12): Likewise.
27905 (atomic_compare_and_swap<mode>): Likewise.
27906 (atomic_exchange<mode>_llsc): Likewise.
27907 (atomic_fetch_add<mode>_llsc): Likewise.
27908 * config/mips/mips-cpus.def (m14kc, m14k): New processors.
27909 * config/mips/mips-protos.h (umips_output_save_restore): New prototype.
27910 (umips_save_restore_pattern_p): Likewise.
27911 (umips_load_store_pair_p): Likewise.
27912 (umips_output_load_store_pair): Likewise.
27913 (umips_movep_target_p): Likewise.
27914 (umips_12bit_offset_address_p): Likewise.
27915 * config/mips/mips.c (MIPS_MAX_FIRST_STEP): Update for microMIPS.
27916 (mips_base_mips16): Rename this...
27917 (mips_base_compression_flags): ...to this. Update all uses.
27918 (mips_attribute_table): Add micromips, nomicromips and nocompression.
27919 (mips_mips16_decl_p): Delete.
27920 (mips_nomips16_decl_p): Delete.
27921 (mips_get_compress_on_flags): New function.
27922 (mips_get_compress_off_flags): New function.
27923 (mips_get_compress_mode): New function.
27924 (mips_get_compress_on_name): New function.
27925 (mips_get_compress_off_name): New function.
27926 (mips_insert_attributes): Support multiple compression types.
27927 (mips_merge_decl_attributes): Likewise.
27928 (umips_12bit_offset_address_p): New function.
27929 (mips_start_function_definition): Emit .set micromips directive.
27930 (mips_call_may_need_jalx_p): New function.
27931 (mips_function_ok_for_sibcall): Add microMIPS support.
27932 (mips_print_operand_punctuation): Support short delay slots and
27934 (umips_swm_mask, umips_swm_encoding): New.
27935 (umips_build_save_restore): New function.
27936 (mips_for_each_saved_gpr_and_fpr): Add microMIPS support.
27937 (was_mips16_p): Remove.
27938 (old_compression_mode): New.
27939 (mips_set_compression_mode): New function.
27940 (mips_set_current_function): Add microMIPS support.
27941 (mips_option_override): Likewise.
27942 (umips_save_restore_pattern_p): New function.
27943 (umips_output_save_restore): New function.
27944 (umips_load_store_pair_p_1): New function.
27945 (umips_load_store_pair_p): New function.
27946 (umips_output_load_store_pair_1): New function.
27947 (umips_output_load_store_pair): New function.
27948 (umips_movep_target_p) New function.
27949 (mips_prepare_pch_save): Add microMIPS support.
27950 * config/mips/mips.h (TARGET_COMPRESSION): New.
27951 (TARGET_CPU_CPP_BUILTINS): Update macro
27952 to use new compression flags and to support microMIPS.
27953 (MIPS_ISA_LEVEL_SPEC): Add m14k processors.
27954 (MIPS_ARCH_FLOAT_SPEC): Likewise.
27955 (ISA_HAS_LWXS): Include TARGET_MICROMIPS.
27956 (ISA_HAS_LOAD_DELAY): Exclude TARGET_MICROMIPS.
27957 (ASM_SPEC): Support mmicromips and mno-micromips.
27958 (M16STORE_REG_P): New macro.
27959 (MIPS_CALL): Support TARGET_MICROMIPS.
27960 (MICROMIPS_J): New macro.
27961 (mips_base_mips16): Rename this...
27962 (mips_base_compression_flags): ...to this.
27963 (UMIPS_12BIT_OFFSET_P): New macro.
27964 * config/mips/t-sde: (MULTILIB_OPTIONS): Add microMIPS.
27965 (MULTILIB_DIRNAMES): Likewise.
27966 2013-03-20 Richard Biener <rguenther@suse.de>
27968 PR tree-optimization/56661
27969 * tree-ssa-sccvn.c (visit_use): Only value-number calls if
27970 the result does not have to be distinct.
27972 2013-03-20 Richard Biener <rguenther@suse.de>
27974 * tree-inline.c (copy_tree_body_r): Sync MEM_REF code with
27977 2013-03-20 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
27978 Steven Bosscher <steven@gcc.gnu.org>
27980 PR rtl-optimization/56605
27981 * loop-iv.c (implies_p): Handle equal RTXs and subregs.
27983 2013-03-20 Uros Bizjak <ubizjak@gmail.com>
27986 * config/i386/i386.md (*movdi_internal): Handle broken assemblers
27987 that require movd instead of movq.
27989 2013-03-20 Richard Biener <rguenther@suse.de>
27991 * tree-ssa-structalias.c (struct variable_info): Add pointer
27992 to the first field of an aggregate with sub-vars. Make
27993 this and the pointer to the next subfield its ID.
27994 (vi_next): New function.
27995 (nothing_id, anything_id, readonly_id, escaped_id, nonlocal_id,
27996 storedanything_id, integer_id): Increment by one.
27997 (new_var_info, get_call_vi, lookup_call_clobber_vi,
27998 get_call_clobber_vi): Adjust.
27999 (solution_set_expand): Simplify and speedup.
28000 (solution_set_add): Inline into ...
28001 (set_union_with_increment): ... this. Adjust accordingly.
28002 (do_sd_constraint): Likewise.
28003 (do_ds_constraint): Likewise.
28004 (do_complex_constraint): Simplify.
28005 (build_pred_graph): Adjust.
28006 (solve_graph): Likewise. Simplify and speedup.
28007 (get_constraint_for_ssa_var, get_constraint_for_ptr_offset,
28008 get_constraint_for_component_ref, get_constraint_for_1,
28009 first_vi_for_offset, first_or_preceding_vi_for_offset,
28010 create_function_info_for, create_variable_info_for_1,
28011 create_variable_info_for, intra_create_variable_infos): Adjust.
28012 (init_base_vars): Push NULL for ID zero.
28013 (compute_points_to_sets): Adjust.
28015 2013-03-20 Richard Biener <rguenther@suse.de>
28017 * cfgloop.c (verify_loop_structure): Streamline and avoid
28018 ICEing on corrupt loop tree.
28019 * graph.c (draw_cfg_nodes_for_loop): Avoid ICEing on corrupt
28022 2013-03-20 Richard Biener <rguenther@suse.de>
28024 * tree-vect-loop-manip.c (slpeel_can_duplicate_loop_p): Do not
28025 check whether an SSA update is needed.
28027 2013-03-20 Richard Sandiford <rdsandiford@googlemail.com>
28029 * config/mips/constraints.md (T): Rename to...
28033 * config/mips/mips.md (*movdi_64bit, *movdi_64bit_mips16)
28034 (*mov<mode>_internal, *mov<mode>_mips16): Update accordingly.
28036 2013-03-19 Ian Bolton <ian.bolton@arm.com>
28038 * config/aarch64/aarch64.md (*sub<mode>3_carryin): New pattern.
28039 (*subsi3_carryin_uxtw): Likewise.
28041 2013-03-19 Ian Bolton <ian.bolton@arm.com>
28043 * config/aarch64/aarch64.md (*ror<mode>3_insn): New pattern.
28044 (*rorsi3_insn_uxtw): Likewise.
28046 2013-03-19 Ian Bolton <ian.bolton@arm.com>
28048 * config/aarch64/aarch64.md (*extr<mode>5_insn): New pattern.
28049 (*extrsi5_insn_uxtw): Likewise.
28051 2013-03-19 Richard Biener <rguenther@suse.de>
28053 PR tree-optimization/56273
28054 * passes.c (init_optimization_passes): Move second VRP after DOM.
28056 2013-03-19 Uros Bizjak <ubizjak@gmail.com>
28058 * config/i386/i386.md (*movti_internal): Merge from
28059 *movti_internal_rex64 and *movti_internal_sse. Use x64 isa attribute.
28060 (*movdi_internal): Merge with *movdi_internal_rex64. Use x64 and
28061 nox64 isa attributes.
28063 2013-03-18 Richard Biener <rguenther@suse.de>
28065 * tree-ssa-structalias.c (find): Use gcc_checking_assert.
28067 (merge_node_constraints): Likewise.
28068 (build_succ_graph): Likewise.
28069 (valid_graph_edge): Inline into single caller.
28070 (unify_nodes): Likewise. Use bitmap_set_bit return value
28072 (scc_visit): Fix formatting and variable use.
28073 (do_sd_constraint): Use gcc_checking_assert.
28074 (do_ds_constraint): Likewise.
28075 (do_complex_constraint): Likewise.
28076 (condense_visit): Likewise. Cleanup.
28077 (dump_pred_graph): New function.
28078 (perform_var_substitution): Dump the pred-graph before
28079 variable substitution.
28080 (find_equivalent_node): Use gcc_checking_assert.
28081 (rewrite_constraints): Guard checking loop with ENABLE_CHECKING.
28083 2013-03-18 Richard Biener <rguenther@suse.de>
28085 * tree-vect-loop-manip.c (vect_create_cond_for_alias_checks):
28086 Remove cond_expr_stmt_list argument and do not gimplify the
28088 (vect_loop_versioning): Adjust.
28089 * tree-vect-data-refs.c (vect_create_addr_base_for_vector_ref):
28090 Cleanup to use less temporaries.
28091 (vect_create_data_ref_ptr): Cleanup.
28093 2013-03-18 Jakub Jelinek <jakub@redhat.com>
28095 PR tree-optimization/56635
28096 * fold-const.c (operand_equal_p): For MEM_REF and TARGET_MEM_REF,
28097 require types_compatible_p types.
28099 2013-03-18 Nick Clifton <nickc@redhat.com>
28101 * config/stormy16/stormy16.c (xstormy16_expand_prologue): Remove
28102 spurious backslash.
28104 * config/mn10300/mn10300.c (mn10300_get_live_callee_saved_regs):
28105 Add missing line to comment describing function.
28107 2013-03-18 Richard Biener <rguenther@suse.de>
28109 PR tree-optimization/56210
28110 * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
28111 Handle string / character search functions.
28112 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Likewise.
28114 2013-03-18 Richard Biener <rguenther@suse.de>
28116 PR middle-end/56483
28117 * cfgexpand.c (expand_gimple_cond): Inline gimple_cond_single_var_p
28118 and implement properly.
28119 * gimple.h (gimple_cond_single_var_p): Remove.
28121 2013-03-18 Richard Biener <rguenther@suse.de>
28123 * tree-data-ref.h (find_data_references_in_loop): Declare.
28124 * tree-data-ref.c (get_references_in_stmt): Use a stack
28125 vector pre-allocated in the callers.
28126 (find_data_references_in_stmt): Adjust.
28127 (graphite_find_data_references_in_stmt): Likewise.
28128 (create_rdg_vertices): Likewise.
28129 (find_data_references_in_loop): Export.
28130 * tree-vect-data-refs.c (vect_analyze_data_ref_dependences):
28131 Compute dependences here...
28132 (vect_analyze_data_refs): ...not here. When we encounter
28133 a non-vectorizable data reference in basic-block vectorization
28134 truncate the data reference vector. Do not bother to
28135 fixup data-dependence information for gather loads.
28136 * tree-vect-slp.c (vect_slp_analyze_bb_1): Check the number
28137 of data references, as reported.
28139 2013-03-18 Richard Biener <rguenther@suse.de>
28141 PR tree-optimization/3713
28142 * tree-ssa-sccvn.c (visit_copy): Simplify. Always propagate
28143 has_constants and expr.
28144 (stmt_has_constants): Properly valueize SSA names when deciding
28145 whether the stmt has constants.
28147 2013-03-18 Richard Biener <rguenther@suse.de>
28149 * tree-ssa-loop-manip.c (find_uses_to_rename): Do not scan the
28150 whole function when there is nothing to do.
28151 * tree-ssa-loop.c (pass_vectorize): Remove TODO_update_ssa.
28152 * tree-vectorizer.c (vectorize_loops): Update virtual and
28153 loop-closed SSA once.
28154 * tree-vect-loop.c (vect_transform_loop): Do not update SSA here.
28156 2013-03-18 Richard Biener <rguenther@suse.de>
28158 PR middle-end/56113
28159 * domwalk.c (bb_postorder): New global static.
28160 (cmp_bb_postorder): New function.
28161 (walk_dominator_tree): Replace scheme imposing an order for
28162 visiting dominator sons by one sorting them at the time they
28163 are pushed on the stack.
28165 2013-03-18 Richard Biener <rguenther@suse.de>
28167 PR tree-optimization/39326
28168 * tree-ssa-loop-im.c (refs_independent_p): Exploit symmetry.
28169 (struct mem_ref): Replace mem member with ao_ref typed member.
28170 (MEM_ANALYZABLE): Adjust.
28171 (memref_eq): Likewise.
28172 (mem_ref_alloc): Likewise.
28173 (gather_mem_refs_stmt): Likewise.
28174 (mem_refs_may_alias_p): Use the ao_ref to query the alias oracle.
28175 (execute_sm_if_changed_flag_set): Adjust.
28176 (execute_sm): Likewise.
28177 (ref_always_accessed_p): Likewise.
28178 (refs_independent_p): Likewise.
28179 (can_sm_ref_p): Likewise.
28181 2013-03-18 Jakub Jelinek <jakub@redhat.com>
28184 * tree.c (tree_int_cst_min_precision): For integer_zerop (value)
28185 return 1 even for !unsignedp.
28187 2013-03-17 Uros Bizjak <ubizjak@gmail.com>
28189 * config/i386/i386.md (isa): Add x64 and nox64.
28190 (enabled): Define x64 for TARGET_64BIT and nox64 for !TARGET_64BIT.
28191 (*pushtf): Enable *roF alternative for x64 isa only.
28192 (*pushxf): Merge with *pushxf_nointeger. Use Yx*r constraint. Set
28193 mode attribute of integer alternatives to DImode for TARGET_64BIT.
28194 (*pushdf): Merge with *pushdf_rex64. Use x64 and nox64 isa attributes.
28195 (*movtf_internal): Merge from *movtf_internal_rex64 and
28196 *movtf_internal_sse. Use x64 and nox64 isa attributes.
28197 (*movxf_internal): Merge with *movxf_internal_rex64. Use x64 and
28198 nox64 isa attributes.
28199 (*movdf_internal): Merge with *movdf_internal_rex64. Use x64 and
28200 nox64 isa attributes.
28201 * config/i386/constraints.md (Yd): Do not set for TARGET_64BIT.
28203 2013-03-17 Uros Bizjak <ubizjak@gmail.com>
28205 * config/alpha/alpha.c (TARGET_LRA_P): New define.
28207 2013-03-17 Jakub Jelinek <jakub@redhat.com>
28210 * config/arm/arm.h (REG_CLASS_NAMES): Add "SFP_REG" and "AFP_REG"
28211 class names. Remove trailing comma after "ALL_REGS".
28213 2013-03-16 Jan Hubicka <jh@suse.cz>
28215 * cgraph.h (cgraph_get_create_real_symbol_node): Declare.
28216 * cgraph.c (cgraph_get_create_real_symbol_node): New function.
28217 * cgrpahbuild.c: Use cgraph_get_create_real_symbol_node instead
28218 of cgraph_get_create_node.
28219 * ipa-prop.c (ipa_make_edge_direct_to_target): Likewise.
28221 2013-03-16 Jason Merrill <jason@redhat.com>
28224 * dwarf2out.c (gen_generic_params_dies): Indicate default arguments
28225 with DW_AT_default_value.
28227 2013-03-16 Jakub Jelinek <jakub@redhat.com>
28229 * BASE-VER: Set to 4.9.0.
28231 2013-03-14 Andi Kleen <ak@linux.intel.com>
28234 * doc/extend.texi: Document __ATOMIC_HLE_ACQUIRE,
28235 __ATOMIC_HLE_RELEASE. Document __builtin_ia32 TSX intrincs.
28236 Document _x* TSX intrinsics.
28238 2013-03-14 Edgar E. Iglesias <edgar.iglesias@xilinx.com>
28239 David Holsgrove <david.holsgrove@xilinx.com>
28241 * configure.ac: Add MicroBlaze TLS support detection.
28242 * configure: Regenerate.
28243 * config/microblaze/microblaze-protos.h
28244 (microblaze_cannot_force_const_mem, microblaze_tls_referenced_p,
28245 symbol_mentioned_p, label_mentioned_p): Add prototypes.
28246 * config/microblaze/microblaze.c (microblaze_address_type): Add
28247 ADDRESS_TLS and tls_reloc address types.
28248 (microblaze_address_info): Add tls_reloc.
28249 (TARGET_HAVE_TLS): Define.
28250 (get_tls_get_addr, microblaze_tls_symbol_p, microblaze_tls_operand_p_1,
28251 microblaze_tls_referenced_p, microblaze_cannot_force_const_mem,
28252 symbol_mentioned_p, label_mentioned_p, tls_mentioned_p,
28253 load_tls_operand, microblaze_call_tls_get_addr,
28254 microblaze_legitimize_tls_address): New functions.
28255 (microblaze_classify_unspec): Handle UNSPEC_TLS.
28256 (get_base_reg): Use microblaze_tls_symbol_p.
28257 (microblaze_classify_address): Handle TLS.
28258 (microblaze_legitimate_pic_operand): Use symbol_mentioned_p,
28259 label_mentioned_p and microblaze_tls_referenced_p.
28260 (microblaze_legitimize_address): Handle TLS.
28261 (microblaze_address_insns): Handle ADDRESS_TLS.
28262 (pic_address_needs_scratch): Handle TLS.
28263 (print_operand_address): Handle TLS.
28264 (microblaze_expand_prologue): Check TLS_NEEDS_GOT.
28265 (microblaze_expand_move): Handle TLS.
28266 (microblaze_legitimate_constant_p): Check
28267 microblaze_cannot_force_const_mem and microblaze_tls_symbol_p.
28268 (TARGET_CANNOT_FORCE_CONST_MEM): Define.
28269 * config/microblaze/microblaze.h (TLS_NEEDS_GOT): Define
28270 (PIC_OFFSET_TABLE_REGNUM): Set.
28271 * config/microblaze/linux.h (TLS_NEEDS_GOT): Define.
28272 * config/microblaze/microblaze.md (UNSPEC_TLS): Define.
28273 (addsi3, movsi_internal2, movdf_internal): Update constraints
28274 * config/microblaze/predicates.md (arith_plus_operand): Define
28275 (move_operand): Redefine as move_src_operand,
28276 check microblaze_tls_referenced_p.
28278 2013-03-14 Ian Bolton <ian.bolton@arm.com>
28280 * config/aarch64/aarch64.md: (*and<mode>3nr_compare0): Use CC_NZ.
28281 (*and_<SHIFT:optab><mode>3nr_compare0): Likewise.
28283 2013-03-14 Ian Bolton <ian.bolton@arm.com>
28285 * config/aarch64/aarch64.c (aarch64_select_cc_mode): Return correct
28288 2013-03-14 Jakub Jelinek <jakub@redhat.com>
28290 PR tree-optimization/53265
28291 * common.opt (Waggressive-loop-optimizations): New option.
28292 * tree-ssa-loop-niter.c: Include tree-pass.h.
28293 (do_warn_aggressive_loop_optimizations): New function.
28294 (record_estimate): Call it. Don't add !is_exit bounds to loop->bounds
28295 if number_of_latch_executions returned constant.
28296 (estimate_numbers_of_iterations_loop): Call number_of_latch_executions
28297 early. If number_of_latch_executions returned constant, set
28298 nb_iterations_upper_bound back to it.
28299 * cfgloop.h (struct loop): Add warned_aggressive_loop_optimizations
28301 * Makefile.in (tree-ssa-loop-niter.o): Depend on $(TREE_PASS_H).
28302 * doc/invoke.texi (-Wno-aggressive-loop-optimizations): Document.
28304 * config/aarch64/t-aarch64-linux (MULTARCH_DIRNAME): Remove.
28305 (MULTILIB_OSDIRNAMES): Set.
28306 * genmultilib: If defaultosdirname doesn't start with :: , set
28307 defaultosdirname2 instead, clear it and emit two . multilib_raw
28308 entries instead of just one.
28310 2013-03-14 Kaz Kojima <kkojima@gcc.gnu.org>
28312 * config/sh/linux.h (TARGET_DEFAULT): Remove MASK_USERMODE.
28313 (SUBTARGET_OVERRIDE_OPTIONS): Set TARGET_USERMODE as default.
28314 * config/sh/netbsd-elf.h (TARGET_DEFAULT): Remove MASK_USERMODE.
28315 (SUBTARGET_OVERRIDE_OPTIONS): New.
28317 2013-03-13 Oleg Endo <olegendo@gcc.gnu.org>
28320 * config/sh/sh.opt (FPU_SINGLE_ONLY): New mask.
28321 (musermode): Convert to Var(TARGET_USERMODE).
28322 * config/sh/sh.h (SELECT_SH2A_SINGLE_ONLY, SELECT_SH4_SINGLE_ONLY,
28323 MASK_ARCH): Add MASK_FPU_SINGLE_ONLY.
28324 * config/sh/sh.c (sh_option_override): Use
28325 TARGET_FPU_DOUBLE || TARGET_FPU_SINGLE_ONLY for call-fp case.
28326 * config/sh/sh.md (udivsi3_i1, divsi3_i1): Remove ! TARGET_SH4
28328 (udivsi3_i4, divsi3_i4): Use TARGET_FPU_DOUBLE condition instead of
28330 (udivsi3_i4_single, divsi3_i4_single): Use
28331 TARGET_FPU_SINGLE_ONLY || TARGET_FPU_DOUBLE instead of TARGET_HARD_SH4.
28333 2013-03-13 Dave Korn <dave.korn.cygwin@gmail.com>
28335 * config/i386/cygwin.h (SHARED_LIBGCC_SPEC): Make shared libgcc the
28338 2013-03-13 Richard Biener <rguenther@suse.de>
28340 PR tree-optimization/56608
28341 * tree-vect-slp.c (vect_schedule_slp): Do not remove scalar
28342 calls when vectorizing basic-blocks.
28344 2013-03-13 Jakub Jelinek <jakub@redhat.com>
28347 * config.gcc: On arm, mips, sh and sparc add vxworks-dummy.h to
28350 2013-03-12 Jakub Jelinek <jakub@redhat.com>
28352 * doc/invoke.texi (-Waddr-space-convert): Move into the table earlier.
28354 2013-03-11 Jan Hubicka <jh@suse.cz>
28357 * lto-streamer-out.c (output_symbol_p): Skip references from
28358 constructors of external variables.
28360 2013-03-11 Jan Hubicka <jh@suse.cz>
28362 PR middle-end/56571
28363 * valtrack.c (cleanup_auto_inc_dec): Unshare clobbers originating
28365 * emit-rtl.c (verify_rtx_sharing): Likewise.
28366 (copy_insn_1): Likewise.
28367 * rtl.c (copy_rtx): Likewise.
28369 2013-03-11 Georg-Johann Lay <avr@gjlay.de>
28372 * config/avr/avr.c (avr_print_operand): Add space after '%c' in
28373 output_operand_lossage message.
28375 2013-03-11 Richard Earnshaw <rearnsha@arm.com>
28378 * arm.c (shift_op): Validate RTL pattern on the fly.
28379 (arm_print_operand, case 'S'): Don't use shift_operator to validate
28382 2013-03-10 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
28385 * config/pa/pa.md (call_value): Check for calls to powf and direct to
28386 new call patterns that clobber %fr12.
28387 (call_val_powf, call_val_powf_pic, call_val_powf_64bit): New insn,
28388 split and postreload patterns.
28389 * config/pa/pa.c (pa_conditional_register_usage): Revert marking
28390 registers %fr12 and %fr12R as call used.
28392 2013-03-09 Steven Bosscher <steven@gcc.gnu.org>
28394 * dse.c (delete_dead_store_insn): Respect TDF_DETAILS.
28395 (canon_address, record_store, replace_read, check_mem_read_rtx,
28396 scan_insn, dse_step1, dse_step2_init, dse_step2_spill,
28397 dse_step4, dse_step5_nospill, dse_step5_spill, dse_step6,
28398 rest_of_handle_dse): Likewise.
28400 2013-03-09 Richard Sandiford <rdsandiford@googlemail.com>
28402 PR middle-end/56524
28403 * tree.h (tree_optimization_option): Rename target_optabs to optabs.
28405 (TREE_OPTIMIZATION_OPTABS): Update after previous field change.
28406 (TREE_OPTIMIZATION_BASE_OPTABS): New macro.
28407 (save_optabs_if_changed): Replace with...
28408 (init_tree_optimization_optabs): ...this.
28409 * optabs.c (save_optabs_if_changed): Rename to...
28410 (init_tree_optimization_optabs): ...this. Take the optimization node
28411 as argument. Do nothing if the base optabs are already correct.
28412 Reuse the existing TREE_OPTIMIZATION_OPTABS memory if we need
28413 to recompute optabs.
28414 * function.h (function): Remove optabs field.
28415 * function.c (invoke_set_current_function_hook): Call
28416 init_tree_optimization_optabs. Use the result to initialize
28419 2013-02-27 Aldy Hernandez <aldyh@redhat.com>
28421 * trans-mem.c (expand_transaction): Do not set PR_INSTRUMENTEDCODE
28422 if GTMA_HAS_NO_INSTRUMENTATION.
28423 (generate_tm_state): Keep GTMA_HAS_NO_INSTRUMENTATION bit.
28424 (ipa_tm_transform_transaction): Set GTMA_HAS_NO_INSTRUMENTATION.
28425 * gimple.h (GTMA_HAS_NO_INSTRUMENTATION): Define.
28426 * gimple-pretty-print.c (dump_gimple_transaction): Handle
28427 GTMA_HAS_NO_INSTRUMENTATION.
28429 2013-03-08 Jakub Jelinek <jakub@redhat.com>
28431 * config/gnu-user.h (LIBTSAN_EARLY_SPEC): Don't link against
28434 2013-03-08 Marek Polacek <polacek@redhat.com>
28435 Jakub Jelinek <jakub@redhat.com>
28437 PR tree-optimization/56478
28438 * predict.c (is_comparison_with_loop_invariant_p): Change the
28439 type of loop_step to tree.
28440 (predict_loops): Adjust.
28441 (predict_iv_comparison): Perform the computations on double_ints.
28443 2013-03-08 Richard Biener <rguenther@suse.de>
28445 PR tree-optimization/56570
28446 * tree-cfg.c (verify_expr_location_1): Verify locations for
28448 * tree-sra.c (create_access_replacement): Strip locations
28449 from DECL_DEBUG_EXPRs.
28451 2013-03-08 Richard Biener <rguenther@suse.de>
28453 * tree-inline.c (expand_call_inline): Do not associate
28454 a BLOCK with the location in BLOCK_SOURCE_LOCATION.
28455 * tree-cfg.c (verify_location): Verify BLOCK_SOURCE_LOCATION.
28457 2013-03-08 Richard Biener <rguenther@suse.de>
28459 * tree-ssa-ter.c (is_replaceable_p): Do not TER across location
28460 or block changes with -Og. Fix for location / block encoding
28461 changes and PHI arguments with locations.
28463 2013-03-07 Steven Bosscher <steven@gcc.gnu.org>
28465 * bitmap.c (struct bitmap_descriptor_d): Use unsigned HOST_WIDEST_INT
28467 (struct output_info): Likewise.
28468 (register_overhead): Remove bad gcc_assert.
28469 (bitmap_find_bit): If there is only a single bitmap element, do not
28470 count a miss as a search.
28471 (print_statistics): Update for counter type changes.
28472 (dump_bitmap_statistics): Likewise. Print headers such that they
28473 are properly lined up with the printed counters.
28475 2013-03-07 Jakub Jelinek <jakub@redhat.com>
28477 PR tree-optimization/56559
28478 * tree-ssa-reassoc.c (zero_one_operation): When looking at rhs2,
28479 check that it has only a single use.
28481 2013-03-07 Richard Biener <rguenther@suse.de>
28483 * doc/invoke.texi (fwhole-program): Discourage use in combination
28486 2013-03-06 Jakub Jelinek <jakub@redhat.com>
28488 * config/arm/t-arm (TM_H, OPTIONS_H_EXTRA): Add arm-cores.def.
28490 PR tree-optimization/56539
28491 * tree-tailcall.c (adjust_return_value_with_ops): Use GSI_SAME_STMT
28492 instead of GSI_CONTINUE_LINKING as last argument to
28493 force_gimple_operand_gsi. Adjust function comment.
28495 * config/aarch64/t-aarch64 (TM_H, OPTIONS_H_EXTRA): Add
28498 PR middle-end/56548
28499 * expr.c (expand_cond_expr_using_cmove): When expanding cmove in
28500 promoted mode, convert the result back to the original mode.
28502 2013-03-06 Richard Biener <rguenther@suse.de>
28504 PR middle-end/56294
28505 * tree-into-ssa.c (insert_phi_nodes_for): Add dumping.
28506 (insert_updated_phi_nodes_compare_uids): New function.
28507 (update_ssa): Sort symbols_to_rename after UID before
28508 traversing it to insert PHI nodes.
28510 2013-03-06 Richard Biener <rguenther@suse.de>
28512 PR middle-end/50494
28513 * tree-vect-data-refs.c (vect_can_force_dr_alignment_p):
28514 Do not adjust alignment of DECL_IN_CONSTANT_POOL decls.
28517 2013-02-13 Richard Biener <rguenther@suse.de>
28520 * varasm.c (output_constant_def_1): Get the decl representing
28521 the constant as argument.
28522 (output_constant_def): Wrap output_constant_def_1.
28523 (make_decl_rtl): Use output_constant_def_1 with the decl
28524 representing the constant.
28525 (build_constant_desc): Optionally re-use a decl already
28526 representing the constant.
28527 (tree_output_constant_def): Adjust.
28529 2013-03-06 Joey Ye <joey.ye@arm.com>
28532 * gcc.c (convert_white_space): New function.
28533 (main): Handles white space in function name.
28535 2013-03-06 Oleg Endo <olegendo@gcc.gnu.org>
28538 * config/sh/sh.c (sh_option_override): Check for TARGET_DYNSHIFT
28539 instead of TARGET_SH2 for call-table case. Do not set sh_div_strategy
28540 to SH_DIV_CALL_TABLE for TARGET_SH2.
28541 * config.gcc (sh_multilibs): Add m2 and m2a to sh*-*-linux* multilib
28543 * doc/invoke.texi (SH options): Document mdiv= call-div1, call-fp,
28544 call-table options.
28546 2013-03-05 Sterling Augustine <saugustine@google.com>
28547 Cary Coutant <ccoutant@google.com>
28550 * dwarf2out.c (resolve_addr): Don't call
28551 remove_loc_list_addr_table_entries a second time for the same
28554 2013-03-05 Jakub Jelinek <jakub@redhat.com>
28557 * cfgexpand.c (expand_debug_parm_decl): Call copy_rtx on incoming.
28558 (avoid_complex_debug_insns): New function.
28559 (expand_debug_locations): Call it.
28561 PR rtl-optimization/56484
28562 * ifcvt.c (noce_process_if_block): If else_bb is NULL, avoid extending
28563 lifetimes of hard registers on small register class machines.
28565 2013-03-05 David Holsgrove <david.holsgrove@xilinx.com>
28567 * config/microblaze/microblaze-protos.h: Rename
28568 microblaze_is_interrupt_handler to microblaze_is_interrupt_variant.
28569 * config/microblaze/microblaze.c (microblaze_attribute_table): Add
28571 (microblaze_fast_interrupt_function_p): New function.
28572 (microblaze_is_interrupt_handler): Rename to
28573 microblaze_is_interrupt_variant and add fast_interrupt check.
28574 (microblaze_must_save_register): Use microblaze_is_interrupt_variant.
28575 (save_restore_insns): Likewise.
28576 (compute_frame_size): Likewise.
28577 (microblaze_function_prologue): Add FAST_INTERRUPT_NAME.
28578 (microblaze_globalize_label): Likewise.
28579 * config/microblaze/microblaze.h: Define FAST_INTERRUPT_NAME.
28580 * config/microblaze/microblaze.md: Use wrapper
28581 microblaze_is_interrupt_variant.
28583 2013-03-05 Kai Tietz <ktietz@redhat.com>
28585 * sdbout.c (sdbout_one_type): Switch to current function's section
28586 supporting cold/hot.
28588 2013-03-05 David Holsgrove <david.holsgrove@xilinx.com>
28590 * doc/invoke.texi (MicroBlaze): Add -mbig-endian, -mlittle-endian,
28593 2013-03-05 Jakub Jelinek <jakub@redhat.com>
28595 PR middle-end/56461
28596 * ggc-common.c (gt_pch_save): For ENABLE_VALGRIND_CHECKING,
28597 if VALGRIND_GET_VBITS is defined, temporarily make object
28598 memory all defined, and restore previous valgrind addressability
28599 and definability afterwards. Free this_object at the end.
28601 PR middle-end/56461
28602 * lra.c (lra): Call lra_clear_live_ranges if live_p,
28603 right before calling lra_create_live_ranges, also call it
28604 when clearing live_p. Only call lra_clear_live_ranges
28605 at the end if live_p.
28607 PR middle-end/56461
28608 * sched-deps.c (delete_dep_node): Free DEP_REPLACE.
28610 2013-03-05 Richard Biener <rguenther@suse.de>
28612 PR tree-optimization/56521
28613 * tree-ssa-sccvn.c (set_value_id_for_result): Always initialize
28616 2013-03-05 Steven Bosscher <steven@gcc.gnu.org>
28619 * except.h (remove_unreachable_eh_regions): New prototype.
28620 * except.c (remove_eh_handler_splicer): New function, split out
28621 of remove_eh_handler.
28622 (remove_eh_handler): Use remove_eh_handler_splicer. Add comment
28623 warning about running it on many EH regions one at a time.
28624 (remove_unreachable_eh_regions_worker): New function, walk the
28625 EH tree in depth-first order and remove non-marked regions.
28626 (remove_unreachable_eh_regions): New function.
28627 * tree-eh.c (mark_reachable_handlers): New function, split out
28628 from remove_unreachable_handlers.
28629 (remove_unreachable_handlers): Use mark_reachable_handlers and
28630 remove_unreachable_eh_regions.
28631 (remove_unreachable_handlers_no_lp): Use mark_reachable_handlers
28632 and remove_unreachable_eh_regions.
28634 2013-03-05 Richard Biener <rguenther@suse.de>
28636 PR middle-end/56525
28637 * loop-init.c (fix_loop_structure): Remove loops in two stages,
28638 not freeing them until the end.
28640 2013-03-05 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
28642 * config/s390/s390.h: Define DWARF2_ASM_LINE_DEBUG_INFO.
28644 2013-03-05 Richard Biener <rguenther@suse.de>
28646 PR tree-optimization/56270
28647 * tree-vect-slp.c (vect_schedule_slp): Clear vectorized stmts
28648 of loads after scheduling an SLP instance.
28650 2013-03-05 Jakub Jelinek <jakub@redhat.com>
28652 * Makefile.in (dg_target_exps): Add aarch64.exp, epiphany.exp and
28654 (check_gcc_parallelize): Run guality.exp as a separate job from
28655 vect.exp with unsorted.exp and $(dg_target_exps) separately from
28656 struct-layout-1.exp with stackalign.exp.
28658 * alias.c (init_alias_analysis): Clear reg_known_equiv_p bitmap.
28660 PR middle-end/56461
28661 * tree-vect-slp.c (vect_supported_load_permutation_p): Free
28662 load_index sbitmap even if some bit in it isn't set.
28664 PR middle-end/56461
28665 * tree-ssa-loop-niter.c (bb_queue): Remove typedef.
28666 (discover_iteration_bound_by_body_walk): Change queues to
28667 vec<vec<basic_block> > and queue to vec<basic_block>. Fix up
28668 spelling in comment. Call safe_push on queues[bound_index] directly.
28669 Release queues[queue_index] in every iteration unconditionally.
28670 Release bounds vector.
28672 PR middle-end/56461
28673 * tree-vect-stmts.c (free_stmt_vec_info_vec): Call
28674 free_stmt_vec_info on any left-over stmt_vec_info in the vector.
28675 * tree-vect-loop.c (vect_create_epilog_for_reduction): Release
28678 2013-03-05 Richard Biener <rguenther@suse.de>
28681 * tree-inline.c (remap_blocks_to_null): New function.
28682 (expand_call_inline): When expanding a call stmt without
28683 an associated block inline remap all callee blocks to NULL.
28685 2013-03-05 Jakub Jelinek <jakub@redhat.com>
28687 PR rtl-optimization/56494
28688 * simplify-rtx.c (simplify_truncation): If C is narrower than A,
28689 optimize (truncate:A (subreg:B (truncate:C X) 0)) into
28690 (subreg:A (truncate:C X) 0) instead of (truncate:A X).
28692 PR middle-end/56461
28693 * sel-sched-ir.c (free_sched_pools): Release
28694 succs_info_pool.stack[succs_info_pool.max_top] vectors too
28695 if succs_info_pool.max_top isn't -1.
28698 * opts.c (opts_obstack, opts_concat): Moved to...
28699 * opts-common.c (opts_obstack, opts_concat): ... here.
28701 2013-03-04 Jakub Jelinek <jakub@redhat.com>
28703 PR middle-end/56461
28704 * diagnostic.c (diagnostic_append_note): Save and restore old prefix.
28706 2013-03-04 Martin Jambor <mjambor@suse.cz>
28708 * tree-dfa.c (get_or_create_ssa_default_def): Use parameter fn in
28709 all appropriate places.
28711 2013-01-04 Eric Botcazou <ebotcazou@adacore.com>
28713 PR tree-optimization/56424
28714 * ipa-split.c (split_function): Do not set the RSO flag if result is
28715 not by reference and its type is a register type.
28717 2013-03-04 David Holsgrove <david.holsgrove@xilinx.com>
28719 * config/microblaze/microblaze.c (microblaze_valid_pic_const): New
28720 (microblaze_legitimate_pic_operand): Likewise
28721 * config/microblaze/microblaze.h (LEGITIMATE_PIC_OPERAND_P): calls
28722 new function microblaze_legitimate_pic_operand
28723 * config/microblaze/microblaze-protos.h
28724 (microblaze_legitimate_pic_operand): Declare.
28726 2013-03-04 Edgar E. Iglesias <edgar.iglesias@gmail.com>
28728 * config/microblaze/predicates.md (call_insn_simple_operand):
28729 New predicate for supported rtx code types.
28730 * config/microblaze/microblaze.md (call_internal1): Use
28731 call_insn_simple_operand predicate.
28733 2013-03-04 Jakub Jelinek <jakub@redhat.com>
28735 PR middle-end/56461
28736 * tree-loop-distribution.c (ldist_gen): Call partition_free after each
28737 partitions.ordered_remove.
28739 PR middle-end/56461
28740 * tree-vect-stmts.c (vectorizable_conversion): Don't call
28741 vec_oprnds0.create (1) for modifier == NONE.
28743 PR middle-end/56461
28744 * tree-vect-stmts.c (vectorizable_shift): Don't call create methods
28745 on vec_oprnds0 or vec_oprnds1 before loop, only call it on
28746 vec_oprnds1 right before pushing anything to it for
28749 PR middle-end/56461
28750 * tree-vect-loop.c (destroy_loop_vec_info): For !clean_stmts, just
28751 set nbbs to 0 instead of having separate code path.
28752 (vect_analyze_loop_form): Call destroy_loop_vec_info with true
28753 instead of false as last argument if returning NULL.
28755 2013-03-03 Sandra Loosemore <sandra@codesourcery.com>
28757 * target.def (TARGET_OPTION_VALID_ATTRIBUTE_P): Update comments;
28758 the attribute is now called "target" instead of "option".
28759 (TARGET_OPTION_PRAGMA_PARSE): Likewise, for the pragma.
28760 * doc/tm.texi.in (Target Attributes): Likewise document the correct
28761 attribute/pragma name for TARGET_OPTION_VALID_P and
28762 TARGET_OPTION_PRAGMA_PARSE. Also copy-edit and correct markup.
28763 * doc/tm.texi: Regenerated.
28765 2013-03-02 David Holsgrove <david.holsgrove@xilinx.com>
28767 * config/microblaze/microblaze.c:
28768 Check mcpu, pcmp requirement and set TARGET_REORDER to 0 if not met.
28769 * config/microblaze/microblaze.h: Add -mxl-reorder to
28771 * config/microblaze/microblaze.md: New bswapsi2 and bswaphi2.
28772 instructions emitted if TARGET_REORDER.
28773 * config/microblaze/microblaze.opt: New option -mxl-reorder set to 1
28774 or 0 for -m/-mno case, but initialises as 2 to detect default use case
28777 2013-03-01 Xinliang David Li <davidxl@google.com>
28779 * tree-ssa-uninit.c (compute_control_dep_chain): Limit post-dom
28782 2013-03-01 Jakub Jelinek <jakub@redhat.com>
28784 PR middle-end/56461
28785 * tree-ssa-loop-ivcanon.c (tree_estimate_loop_size): Release path
28786 vector even when returning true. Fix up function comment formatting.
28788 PR middle-end/56461
28789 * ira-build.c (ira_loop_nodes_count): New variable.
28790 (create_loop_tree_nodes): Initialize it.
28791 (finish_loop_tree_nodes): Use it instead of looking at current_loops.
28793 PR middle-end/56461
28794 * tree-vect-data-refs.c (vect_permute_store_chain): Avoid using copy
28795 method on dr_chain and result_chain.
28796 * tree-vect-stmts.c (vectorizable_store): Only call
28797 result_chain.create if j == 0.
28799 PR middle-end/56461
28800 * tree-vect-stmts.c (vect_create_vectorized_promotion_stmts): Call
28801 vec_oprnds0->release (); rather than vec_oprnds0->truncate (0)
28802 before overwriting it.
28804 2013-03-01 Tobias Burnus <burnus@net-b.de>
28806 * doc/extended.texi (C Extensions): Change order in @menu
28808 (Other MIPS Built-in Functions): Move last MIPS entry before
28809 "picoChip Built-in Functions".
28810 (SH Built-in Functions): Move after RX Built-in Functions.
28811 * doc/gcc.texi (Introduction): Change order in @menu
28813 * doc/md.texi (Constraints): Ditto.
28814 * gty.texi (Type Information): Ditto.
28815 (User-provided marking routines for template types): Make
28817 * doc/invoke.texi (AArch64 Options): Move before
28818 "Adapteva Epiphany Options".
28820 2013-02-28 Konstantin Serebryany <konstantin.s.serebryany@gmail.com>
28821 Jakub Jelinek <jakub@redhat.com>
28824 * asan.c (gate_asan): Lookup no_sanitize_address instead of
28825 no_address_safety_analysis attribute.
28826 * doc/extend.texi (no_address_safety_attribute): Rename to
28827 no_sanitize_address attribute, mention no_address_safety_analysis
28828 attribute as deprecated alias.
28830 2013-02-28 Jakub Jelinek <jakub@redhat.com>
28832 PR middle-end/56461
28833 * tree-vectorizer.h (vect_get_slp_defs): Change 3rd argument
28834 type to vec<vec<tree> > *.
28835 * tree-vect-slp.c (vect_get_slp_defs): Likewise. Change vec_defs
28836 to be vec<tree> instead of vec<tree> *, set vec_defs
28837 to vNULL and call vec_defs.create (number_of_vects), adjust other
28839 * tree-vect-stmts.c (vect_get_vec_defs, vectorizable_call,
28840 vectorizable_condition): Adjust vect_get_slp_defs callers.
28842 2013-02-28 James Greenhalgh <james.greenhalgh@arm.com>
28844 * config/aarch64/aarch64.c
28845 (aarch64_float_const_representable): Remove unused variable.
28847 2013-02-28 James Greenhalgh <james.greenhalgh@arm.com>
28849 * config/aarch64/aarch64.c (aarch64_mangle_type): Make static.
28851 2013-02-28 James Greenhalgh <james.greenhalgh@arm.com>
28853 * config/aarch64/aarch64-builtins.c
28854 (aarch64_init_simd_builtins): Make static.
28856 2013-02-28 James Greenhalgh <james.greenhalgh@arm.com>
28858 * config/aarch64/aarch64.c
28859 (aarch64_simd_make_constant): Make static.
28861 2013-02-28 Martin Jambor <mjambor@suse.cz>
28863 * tree-sra.c (load_assign_lhs_subreplacements): Do not put replacements
28864 with no initialization to the RHS of debug statements.
28866 2013-02-28 Martin Jambor <mjambor@suse.cz>
28868 PR tree-optimization/56294
28869 * tree-sra.c (analyze_access_subtree): Create replacement declarations.
28871 (get_access_replacement): Do not call create_access_replacement.
28872 Assert a replacement exists.
28873 (get_repl_default_def_ssa_name): Create the replacement declaration
28876 2013-02-28 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
28878 * config/arm/arm.c (arm_output_mi_thunk): Call final_start_function and
28879 final_end_function.
28881 2013-02-28 Marek Polacek <polacek@redhat.com>
28883 PR rtl-optimization/56466
28884 * loop-unroll.c (unroll_and_peel_loops): Call fix_loop_structure
28885 if we're changing a loop.
28886 (peel_loops_completely): Likewise.
28888 2013-02-28 Paolo Carlini <paolo.carlini@oracle.com>
28891 * doc/invoke.texi ([-Wctor-dtor-privacy]): Complete.
28893 2013-02-28 Georg-Johann Lay <avr@gjlay.de>
28896 * config/avr/avr.c (avr_init_builtins): Use 'n' instead of empty
28897 macro parameters with: FX_FTYPE_FX, FX_FTYPE_FX_INT, INT_FTYPE_FX,
28898 INTX_FTYPE_FX, FX_FTYPE_INTX.
28899 * config/avr/builtins.def: Adjust respective DEF_BUILTIN.
28901 2013-02-28 Georg-Johann Lay <avr@gjlay.de>
28903 * avr/avr-mcus.def (ata5272, ata5505, attiny1634, ata6285)
28904 (ata6286, atmega8a, atmega48pa, ata5790, ata5790n, ata5795)
28905 (atmega164pa, atmega165pa, atmega168pa, atmega16hva, atmega16hvb)
28906 (atmega16hvbrevb, atmega16m1, atmega16u4, atmega26hvg, atmega32a)
28907 (atmega32a, atmega3250pa, atmega3290pa, atmega32c1, atmega32m1)
28908 (atmega32u4, atmega32u6, atmega64a, atmega6490a, atmega6490p)
28909 (atmega64c1, atmega64m1, atmega64rfa2, atmega64rfr2, atmega32hvb)
28910 (atmega32hvbrevb, atmega16hva2, atmega48hvf, at90pwm161)
28911 (atmega128a, atmega1284, atmxt112sl, atmxt224, atmxt224e)
28912 (atmxt336s, atxmega16a4u, atxmega16c4, atxmega32a4u, atxmega32c4)
28913 (atxmega32e5, atxmega64a3u, atxmega64a4u, atxmega64b1, atxmega64b3)
28914 (atxmega64c3, atxmega64d4, atxmega128a3u, atxmega128b1)
28915 (atxmega128b3, atxmega128c3, atxmega128d4, atmxt540s, atmxt540sreva)
28916 (atxmega192a3u, atxmega192c3, atxmega256a3u, atxmega256c3)
28917 (atxmega384c3, atxmega384d3, atxmega128a4u): New AVR_MCU.
28918 (avrxmega6): Increase max flash segments from 5 to 6.
28919 * config/avr/t-multilib: Regenerate.
28920 * config/avr/avr-tables.opt: Regenerate.
28921 * doc/avr-mmcu.texi: Regenerate.
28923 2013-02-28 Georg-Johann Lay <avr@gjlay.de>
28925 * config/avr/avr.h (device_to_arch): Rename to device_to_ld.
28926 (avr_device_to_arch): Rename to avr_device_to_ld.
28927 (avr_device_to_as): New prototype.
28928 (EXTRA_SPEC_FUNCTIONS): Add device_to_as.
28929 (ASM_SPEC): Use device_to_as to get -mmcu= and -mno-skip-bug=.
28930 * config/avr/driver-avr.c (avr_device_to_as): New.
28931 (avr_device_to_arch): Rename to avr_device_to_ld.
28933 2013-02-27 Jakub Jelinek <jakub@redhat.com>
28935 PR middle-end/56461
28936 * tree-vect-data-refs.c (vect_permute_load_chain): Avoid using copy
28937 method on dr_chain and result_chain.
28939 PR middle-end/56461
28940 * tree-ssa-loop-niter.c (maybe_lower_iteration_bound): Call
28941 pointer_set_destroy on not_executed_last_iteration.
28943 PR middle-end/56461
28944 * tree-vect-loop.c (vectorizable_reduction): Release vect_defs vector.
28946 PR middle-end/56461
28947 * ipa-pure-const.c (propagate): Use FOR_EACH_FUNCTION instead of
28948 FOR_EACH_DEFINED_FUNCTION when freeing state.
28950 PR middle-end/56461
28951 * df-scan.c (df_insn_delete): Use df_scan_free_mws_vec before
28953 (df_insn_rescan_debug_internal): Use df_scan_free_mws_vec before
28956 PR middle-end/56461
28957 * ipa-cp.c (decide_whether_version_node): Call vec_free on
28958 known_aggs[i].items and release known_aggs vector.
28960 PR middle-end/56461
28961 * ipa-reference.c (propagate): Free node_info even for alias nodes.
28963 2013-02-27 Edgar E. Iglesias <edgar.iglesias@gmail.com>
28965 * config/microblaze/microblaze.c (microblaze_emit_compare):
28966 Use xor for EQ/NE comparisions.
28967 * config/microblaze/microblaze.md (cstoresf4): Add constraints
28968 (cbranchsf4): Adjust operator to comparison_operator.
28970 2013-02-27 Jakub Jelinek <jakub@redhat.com>
28972 PR middle-end/56461
28973 * tree-flow.h (edge_var_map_vector): Change into va_heap, vl_embed
28975 * tree-ssa.c (redirect_edge_var_map_add): Use vec_safe_reserve and
28976 vec_safe_push, always update *slot.
28977 (redirect_edge_var_map_clear): Use vec_free.
28978 (redirect_edge_var_map_dup): Use vec_safe_copy and vec_safe_reserve.
28979 (free_var_map_entry): Use vec_free.
28980 * tree-cfgcleanup.c (remove_forwarder_block_with_phi): Use
28981 FOR_EACH_VEC_SAFE_ELT instead of FOR_EACH_VEC_ELT.
28983 2013-02-27 Andrey Belevantsev <abel@ispras.ru>
28985 PR middle-end/45472
28986 * sel-sched-ir.c (merge_expr): Also change vinsn of merged expr
28987 when the may_trap_p bit of the exprs being merged differs.
28988 Reorder tests for speculativeness in the logical and operator.
28990 2013-02-27 Jakub Jelinek <jakub@redhat.com>
28992 * incpath.c (add_standard_paths): Use reconcat instead of concat
28993 where appropriate and avoid leaking memory.
28995 * opts.h: Include obstack.h.
28996 (opts_concat): New prototype.
28997 (opts_obstack): New declaration.
28998 * opts.c (opts_concat): New function.
28999 (opts_obstack): New variable.
29000 (init_options_struct): Call gcc_init_obstack on opts_obstack.
29001 (finish_options): Use opts_concat instead of concat
29002 and XOBNEWVEC instead of XNEWVEC.
29003 * opts-common.c (generate_canonical_option, decode_cmdline_option,
29004 generate_option): Likewise.
29005 * Makefile.in (OPTS_H): Depend on $(OBSTACK_H).
29006 * lto-wrapper.c (main): Call gcc_init_obstack on opts_obstack.
29009 * stmt.c (expand_switch_as_decision_tree_p): If flag_pic
29010 and ASM_OUTPUT_ADDR_DIFF_ELT isn't defined, return true.
29012 2013-02-26 Jakub Jelinek <jakub@redhat.com>
29014 PR middle-end/56461
29015 * lra-spills.c (lra_spill): Free spill_hard_reg at the end.
29017 2013-02-26 Joern Rennecke <joern.rennecke@embecosm.com>
29019 * config/arm/arm.c (const_ok_for_dimode_op): Back out last change.
29020 (arm_block_move_unaligned_straight): Likewise.
29021 (arm_adjust_block_mem): Likewise.
29023 2013-02-26 Joern Rennecke <joern.rennecke@embecosm.com>
29026 * config/lm32/lm32.c (gen_int_relational): Remove unused variables
29027 temp, cond and label.
29028 * config/lm32/lm32.md (ashlsi3): Remove unused variable one.
29031 * config/c6x/c6x.c (dbx_register_map): Change to unsigned.
29032 * config/c6x/c6x.h (dbx_register_map): Update declaration.
29035 * config/cr16/cr16-protos.h: Move end of RTX_CODE guard below end
29036 of prologue/epilogue functions.
29039 * config/tilegx/tilegx.c (tilegx_expand_prologue):
29040 Remove unused variable cfa_offset.
29041 * config/tilepro/tilepro.c (tilepro_expand_prologue): Likewise.
29044 * config/mn10300/mn10300.c (mn10300_expand_epilogue): Avoid offset
29045 type promotion to unsigned.
29048 * config/arm/arm.c (const_ok_for_dimode_op): Make code consistent
29049 for HOST_WIDE_INT of 32 bit / same size as int.
29050 (arm_block_move_unaligned_straight): Likewise.
29051 (arm_adjust_block_mem): Likewise.
29054 * config/mep/t-mep (mep-pragma.o): Use ALL_COMPILERFLAGS instead of
29057 2013-02-26 Marek Polacek <polacek@redhat.com>
29059 PR tree-optimization/56426
29060 * tree-ssa-loop.c (tree_ssa_loop_init): Always call scev_initialize.
29062 2013-02-26 Richard Biener <rguenther@suse.de>
29065 * config/mn10300/mn10300.c (mn10300_scan_for_setlb_lcc): Remove
29066 unused variable loops.
29068 2013-02-26 Jakub Jelinek <jakub@redhat.com>
29070 PR tree-optimization/56448
29071 * fold-const.c (operand_equal_p) <case tcc_reference>: Don't look at
29072 TREE_SIDE_EFFECTS if flags contain OEP_CONSTANT_ADDRESS_OF.
29073 Clear OEP_CONSTANT_ADDRESS_OF from flags before recursing on second or
29074 later operands of the references, or even first operand for
29075 INDIRECT_REF, TARGET_MEM_REF or MEM_REF.
29077 PR tree-optimization/56443
29078 * tree-vect-stmts.c (get_vectype_for_scalar_type_and_size): For
29079 overaligned types, pass TYPE_UNSIGNED (scalar_type) as second argument
29080 to type_for_mode langhook.
29082 2013-02-25 Matt Turner <mattst88@gmail.com>
29084 * doc/invoke.texi: Document r4700.
29086 2013-02-25 Richard Biener <rguenther@suse.de>
29088 PR tree-optimization/56175
29089 * tree-ssa-forwprop.c (hoist_conversion_for_bitop_p): New predicate,
29091 (simplify_bitwise_binary): ... here. Also guard the conversion
29092 of (type) X op CST to (type) (X op ((type-x) CST)) with it.
29094 2013-02-25 Catherine Moore <clm@codesourcery.com>
29097 2013-02-24 Catherine Moore <clm@codesourcery.com>
29098 Maciej W. Rozycki <macro@codesourcery.com>
29099 Tom de Vries <tom@codesourcery.com>
29100 Nathan Sidwell <nathan@codesourcery.com>
29101 Iain Sandoe <iain@codesourcery.com>
29102 Nathan Froyd <froydnj@codesourcery.com>
29103 Chao-ying Fu <fu@mips.com>
29105 * doc/extend.texi: (micromips, nomicromips, nocompression):
29106 Document new function attributes.
29107 * doc/invoke.texi (minterlink-compressed, mmicromips,
29108 m14k, m14ke, m14kec): Document new options.
29109 (minterlink-mips16): Update documentation.
29110 * doc/md.texi (ZC, ZD): Document new constraints.
29111 * configure.ac (gcc_cv_as_micromips): Check if linker
29112 supports the .set micromips directive.
29113 * configure: Regenerate.
29114 * config.in: Regenerate.
29115 * config/mips/mips-tables.opt: Regenerate.
29116 * config/mips/micromips.md: New file.
29117 * constraints.md (ZC, AD): New constraints.
29118 * config/mips/predicates.md (movep_src_register): New predicate.
29119 (movep_src_operand): New predicate.
29120 (non_volatile_mem_operand): New predicate.
29121 * config/mips/mips.md (multimem): New type.
29122 (length): Differentiate between 17-bit and 18-bit branch offsets.
29123 (MOVEP1, MOVEP2): New mode iterator.
29124 (mov_<load>l): Use ZC constraint.
29125 (mov_<load>r): Likewise.
29126 (mov_<store>l): Likewise.
29127 (mov_<store>r): Likewise.
29128 (*branch_equality<mode>_inverted): Add microMIPS support.
29129 (*branch_equality<mode>): Likewise.
29130 (*jump_absolute): Likewise.
29131 (indirect_jump_<mode>): Likewise.
29132 (tablejump_<mode>): Likewise.
29133 (<optab>_internal): Likewise.
29134 (sibcall_internal): Likewise.
29135 (sibcall_value_internal): Likewise.
29136 (prefetch): Use constraint ZD.
29137 * config/mips/mips.opt (minterlink-compressed): New option.
29138 (minterlink-mips16): Now an alias for minterlink-compressed.
29139 (mmicromips): New option.
29140 * config/mips/sync.md (sync_compare_and_swap<mode>): Use ZR constraint.
29141 (compare_and_swap_12): Likewise.
29142 (sync_add<mode>): Likewise.
29143 (sync_<optab>_12): Likewise.
29144 (sync_old_<optab>_12): Likewise.
29145 (sync_new_<optab>_12): Likewise.
29146 (sync_nand_12): Likewise.
29147 (sync_old_nand_12): Likewise.
29148 (sync_new_nand_12): Likewise.
29149 (sync_sub<mode>): Likewise.
29150 (sync_old_add<mode>): Likewise.
29151 (sync_old_sub<mode>): Likewise.
29152 (sync_new_add<mode>): Likewise.
29153 (sync_new_sub<mode>): Likewise.
29154 (sync_<optab><mode>): Likewise.
29155 (sync_old_<optab><mode>): Likewise.
29156 (sync_new_<optab><mode>): Likewise.
29157 (sync_nand<mode>): Likewise.
29158 (sync_old_nand<mode>): Likewise.
29159 (sync_new_nand<mode>): Likewise.
29160 (sync_lock_test_and_set<mode>): Likewise.
29161 (test_and_set_12): Likewise.
29162 (atomic_compare_and_swap<mode>): Likewise.
29163 (atomic_exchange<mode>_llsc): Likewise.
29164 (atomic_fetch_add<mode>_llsc): Likewise.
29165 * config/mips/mips-cpus.def (m14kc, m14k): New processors.
29166 * config/mips/mips-protos.h (umips_output_save_restore): New prototype.
29167 (umips_save_restore_pattern_p): Likewise.
29168 (umips_load_store_pair_p): Likewise.
29169 (umips_output_load_store_pair): Likewise.
29170 (umips_movep_target_p): Likewise.
29171 (umips_12bit_offset_address_p): Likewise.
29172 * config/mips/mips.c (MIPS_MAX_FIRST_STEP): Update for microMIPS.
29173 (mips_base_mips16): Rename this...
29174 (mips_base_compression_flags): ...to this. Update all uses.
29175 (mips_attribute_table): Add micromips, nomicromips and nocompression.
29176 (mips_mips16_decl_p): Delete.
29177 (mips_nomips16_decl_p): Delete.
29178 (mips_get_compress_on_flags): New function.
29179 (mips_get_compress_off_flags): New function.
29180 (mips_get_compress_mode): New function.
29181 (mips_get_compress_on_name): New function.
29182 (mips_get_compress_off_name): New function.
29183 (mips_insert_attributes): Support multiple compression types.
29184 (mips_merge_decl_attributes): Likewise.
29185 (umips_12bit_offset_address_p): New function.
29186 (mips_start_function_definition): Emit .set micromips directive.
29187 (mips_call_may_need_jalx_p): New function.
29188 (mips_function_ok_for_sibcall): Add microMIPS support.
29189 (mips_print_operand_punctuation): Support short delay slots and
29191 (umips_swm_mask, umips_swm_encoding): New.
29192 (umips_build_save_restore): New function.
29193 (mips_for_each_saved_gpr_and_fpr): Add microMIPS support.
29194 (was_mips16_p): Remove.
29195 (old_compression_mode): New.
29196 (mips_set_compression_mode): New function.
29197 (mips_set_current_function): Add microMIPS support.
29198 (mips_option_override): Likewise.
29199 (umips_save_restore_pattern_p): New function.
29200 (umips_output_save_restore): New function.
29201 (umips_load_store_pair_p_1): New function.
29202 (umips_load_store_pair_p): New function.
29203 (umips_output_load_store_pair_1): New function.
29204 (umips_output_load_store_pair): New function.
29205 (umips_movep_target_p) New function.
29206 (mips_prepare_pch_save): Add microMIPS support.
29207 * config/mips/mips.h (TARGET_COMPRESSION): New.
29208 (TARGET_CPU_CPP_BUILTINS): Update macro
29209 to use new compression flags and to support microMIPS.
29210 (MIPS_ISA_LEVEL_SPEC): Add m14k processors.
29211 (MIPS_ARCH_FLOAT_SPEC): Likewise.
29212 (ISA_HAS_LWXS): Include TARGET_MICROMIPS.
29213 (ISA_HAS_LOAD_DELAY): Exclude TARGET_MICROMIPS.
29214 (ASM_SPEC): Support mmicromips and mno-micromips.
29215 (M16STORE_REG_P): New macro.
29216 (MIPS_CALL): Support TARGET_MICROMIPS.
29217 (MICROMIPS_J): New macro.
29218 (mips_base_mips16): Rename this...
29219 (mips_base_compression_flags): ...to this.
29220 (UMIPS_12BIT_OFFSET_P): New macro.
29221 * config/mips/t-sde: (MULTILIB_OPTIONS): Add microMIPS.
29222 (MULTILIB_DIRNAMES): Likewise.
29224 2013-02-25 Tom de Vries <tom@codesourcery.com>
29226 PR rtl-optimization/56131
29227 * insn-notes.def (INSN_NOTE_BASIC_BLOCK): Update comment.
29228 * cfgrtl.c (delete_insn): Don't reorder NOTE_INSN_DELETED_LABEL and
29229 NOTE_INSN_BASIC_BLOCK if BLOCK_FOR_INSN == NULL.
29231 2013-02-25 Tobias Burnus <burnus@net-b.de>
29233 * doc/invoke.texi (-fsanitize=): Move from optimization
29234 to debugging options.
29236 2013-02-25 Andrey Belevantsev <abel@ispras.ru>
29238 * sched-deps.c (sched_analyze_insn): Fix typo in comment.
29240 2013-02-25 Andrey Belevantsev <abel@ispras.ru>
29241 Alexander Monakov <amonakov@ispras.ru>
29243 PR middle-end/56077
29244 * sched-deps.c (sched_analyze_insn): When reg_pending_barrier,
29245 flush pending lists also on non-jumps. Adjust comment.
29247 2013-02-24 Catherine Moore <clm@codesourcery.com>
29248 Maciej W. Rozycki <macro@codesourcery.com>
29249 Tom de Vries <tom@codesourcery.com>
29250 Nathan Sidwell <nathan@codesourcery.com>
29251 Iain Sandoe <iain@codesourcery.com>
29252 Nathan Froyd <froydnj@codesourcery.com>
29253 Chao-ying Fu <fu@mips.com>
29255 * doc/extend.texi: (micromips, nomicromips, nocompression):
29256 Document new function attributes.
29257 * doc/invoke.texi (minterlink-compressed, mmicromips,
29258 m14k, m14ke, m14kec): Document new options.
29259 (minterlink-mips16): Update documentation.
29260 * doc/md.texi (ZC, ZD): Document new constraints.
29261 * configure.ac (gcc_cv_as_micromips): Check if linker
29262 supports the .set micromips directive.
29263 * configure: Regenerate.
29264 * config.in: Regenerate.
29265 * config/mips/mips-tables.opt: Regenerate.
29266 * config/mips/micromips.md: New file.
29267 * constraints.md (ZC, AD): New constraints.
29268 * config/mips/predicates.md (movep_src_register): New predicate.
29269 (movep_src_operand): New predicate.
29270 (non_volatile_mem_operand): New predicate.
29271 * config/mips/mips.md (multimem): New type.
29272 (length): Differentiate between 17-bit and 18-bit branch offsets.
29273 (MOVEP1, MOVEP2): New mode iterator.
29274 (mov_<load>l): Use ZC constraint.
29275 (mov_<load>r): Likewise.
29276 (mov_<store>l): Likewise.
29277 (mov_<store>r): Likewise.
29278 (*branch_equality<mode>_inverted): Add microMIPS support.
29279 (*branch_equality<mode>): Likewise.
29280 (*jump_absolute): Likewise.
29281 (indirect_jump_<mode>): Likewise.
29282 (tablejump_<mode>): Likewise.
29283 (<optab>_internal): Likewise.
29284 (sibcall_internal): Likewise.
29285 (sibcall_value_internal): Likewise.
29286 (prefetch): Use constraint ZD.
29287 * config/mips/mips.opt (minterlink-compressed): New option.
29288 (minterlink-mips16): Now an alias for minterlink-compressed.
29289 (mmicromips): New option.
29290 * config/mips/sync.md (sync_compare_and_swap<mode>): Use ZR constraint.
29291 (compare_and_swap_12): Likewise.
29292 (sync_add<mode>): Likewise.
29293 (sync_<optab>_12): Likewise.
29294 (sync_old_<optab>_12): Likewise.
29295 (sync_new_<optab>_12): Likewise.
29296 (sync_nand_12): Likewise.
29297 (sync_old_nand_12): Likewise.
29298 (sync_new_nand_12): Likewise.
29299 (sync_sub<mode>): Likewise.
29300 (sync_old_add<mode>): Likewise.
29301 (sync_old_sub<mode>): Likewise.
29302 (sync_new_add<mode>): Likewise.
29303 (sync_new_sub<mode>): Likewise.
29304 (sync_<optab><mode>): Likewise.
29305 (sync_old_<optab><mode>): Likewise.
29306 (sync_new_<optab><mode>): Likewise.
29307 (sync_nand<mode>): Likewise.
29308 (sync_old_nand<mode>): Likewise.
29309 (sync_new_nand<mode>): Likewise.
29310 (sync_lock_test_and_set<mode>): Likewise.
29311 (test_and_set_12): Likewise.
29312 (atomic_compare_and_swap<mode>): Likewise.
29313 (atomic_exchange<mode>_llsc): Likewise.
29314 (atomic_fetch_add<mode>_llsc): Likewise.
29315 * config/mips/mips-cpus.def (m14kc, m14k): New processors.
29316 * config/mips/mips-protos.h (umips_output_save_restore): New prototype.
29317 (umips_save_restore_pattern_p): Likewise.
29318 (umips_load_store_pair_p): Likewise.
29319 (umips_output_load_store_pair): Likewise.
29320 (umips_movep_target_p): Likewise.
29321 (umips_12bit_offset_address_p): Likewise.
29322 * config/mips/mips.c (MIPS_MAX_FIRST_STEP): Update for microMIPS.
29323 (mips_base_mips16): Rename this...
29324 (mips_base_compression_flags): ...to this. Update all uses.
29325 (mips_attribute_table): Add micromips, nomicromips and nocompression.
29326 (mips_mips16_decl_p): Delete.
29327 (mips_nomips16_decl_p): Delete.
29328 (mips_get_compress_on_flags): New function.
29329 (mips_get_compress_off_flags): New function.
29330 (mips_get_compress_mode): New function.
29331 (mips_get_compress_on_name): New function.
29332 (mips_get_compress_off_name): New function.
29333 (mips_insert_attributes): Support multiple compression types.
29334 (mips_merge_decl_attributes): Likewise.
29335 (umips_12bit_offset_address_p): New function.
29336 (mips_start_function_definition): Emit .set micromips directive.
29337 (mips_call_may_need_jalx_p): New function.
29338 (mips_function_ok_for_sibcall): Add microMIPS support.
29339 (mips_print_operand_punctuation): Support short delay slots and
29341 (umips_swm_mask, umips_swm_encoding): New.
29342 (umips_build_save_restore): New function.
29343 (mips_for_each_saved_gpr_and_fpr): Add microMIPS support.
29344 (was_mips16_p): Remove.
29345 (old_compression_mode): New.
29346 (mips_set_compression_mode): New function.
29347 (mips_set_current_function): Add microMIPS support.
29348 (mips_option_override): Likewise.
29349 (umips_save_restore_pattern_p): New function.
29350 (umips_output_save_restore): New function.
29351 (umips_load_store_pair_p_1): New function.
29352 (umips_load_store_pair_p): New function.
29353 (umips_output_load_store_pair_1): New function.
29354 (umips_output_load_store_pair): New function.
29355 (umips_movep_target_p) New function.
29356 (mips_prepare_pch_save): Add microMIPS support.
29357 * config/mips/mips.h (TARGET_COMPRESSION): New.
29358 (TARGET_CPU_CPP_BUILTINS): Update macro
29359 to use new compression flags and to support microMIPS.
29360 (MIPS_ISA_LEVEL_SPEC): Add m14k processors.
29361 (MIPS_ARCH_FLOAT_SPEC): Likewise.
29362 (ISA_HAS_LWXS): Include TARGET_MICROMIPS.
29363 (ISA_HAS_LOAD_DELAY): Exclude TARGET_MICROMIPS.
29364 (ASM_SPEC): Support mmicromips and mno-micromips.
29365 (M16STORE_REG_P): New macro.
29366 (MIPS_CALL): Support TARGET_MICROMIPS.
29367 (MICROMIPS_J): New macro.
29368 (mips_base_mips16): Rename this...
29369 (mips_base_compression_flags): ...to this.
29370 (UMIPS_12BIT_OFFSET_P): New macro.
29371 * config/mips/t-sde: (MULTILIB_OPTIONS): Add microMIPS.
29372 (MULTILIB_DIRNAMES): Likewise.
29374 2013-02-24 Jakub Jelinek <jakub@redhat.com>
29377 * target-globals.c (save_target_globals): For init_reg_sets and
29378 target_reinit remporarily set this_fn_optabs to this_target_optabs.
29380 2013-02-22 James Greenhalgh <james.greenhalgh@arm.com>
29382 * config/aarch64/aarch64-simd-builtins.def: Add copyright header.
29383 * config/aarch64/t-aarch64
29384 (aarch64-builtins.o): Depend on aarch64-simd-builtins.def.
29386 2013-02-22 Vladimir Makarov <vmakarov@redhat.com>
29388 PR inline-asm/56148
29389 * lra-constraints.c (process_alt_operands): Reload operand
29390 conflicting with earlier clobber only if no more other conflicting
29393 2013-02-22 Jakub Jelinek <jakub@redhat.com>
29396 * config/gnu-user.h (LIBASAN_EARLY_SPEC): Link in libasan_preinit.o
29397 if not linking a shared library.
29399 2013-02-22 Seth LaForge <sethml@google.com>
29401 * config.gcc (arm*-*-eabi*): Treat arm*eb as big-endian.
29403 2013-02-22 Greta Yorsh <Greta.Yorsh@arm.com>
29405 * config/arm/arm.md (split for extendsidi): Update condition.
29406 (zero_extend<mode>di2,extend<mode>di2): Add an alternative.
29407 * config/arm/iterators.md (qhs_extenddi_cstr): Likewise.
29408 (qhs_zextenddi_cstr): Likewise.
29410 2013-02-21 Jakub Jelinek <jakub@redhat.com>
29412 PR middle-end/56420
29413 * expmed.c (EXACT_POWER_OF_2_OR_ZERO_P): Do subtraction in uhwi, to
29414 avoid signed wrapping.
29415 (expand_mult): Handle properly multiplication by
29416 ((dword_type) -1) << (BITS_PER_WORD - 1). Improve multiplication by
29417 ((dword_type) 1) << (BITS_PER_WORD - 1). Avoid undefined behavior
29418 in the compiler if coeff is HOST_WIDE_INT_MIN.
29419 (expand_divmod): Don't make ext_op1 static, change it's type to
29420 uhwi. Avoid undefined behavior in -INTVAL (op1).
29422 PR rtl-optimization/50339
29423 * lower-subreg.h (struct lower_subreg_choices): Add splitting_ashiftrt
29425 * lower-subreg.c (compute_splitting_shift): Handle ASHIFTRT.
29426 (compute_costs): Call compute_splitting_shift also for ASHIFTRT
29427 into splitting_ashiftrt field.
29428 (find_decomposable_shift_zext, resolve_shift_zext): Handle also
29430 (dump_choices): Fix up printing LSHIFTRT choices, print ASHIFTRT
29433 2013-02-20 Aldy Hernandez <aldyh@redhat.com>
29435 PR middle-end/56108
29436 * trans-mem.c (execute_tm_mark): Do not expand transactions that
29437 are sure to go irrevocable.
29439 2013-02-21 Hans-Peter Nilsson <hp@axis.com>
29441 * doc/rtl.texi (vec_concat, vec_duplicate): Mention that
29442 scalars are valid operands.
29444 2013-02-21 Martin Jambor <mjambor@suse.cz>
29446 PR tree-optimization/56310
29447 * ipa-cp.c (agg_replacements_to_vector): New parameter index, copy
29448 only matching indices and non-negative final offsets.
29449 (intersect_aggregates_with_edge): Pass src_idx to
29450 agg_replacements_to_vector. Pass src_idx insstead of index to
29451 intersect_with_agg_replacements.
29453 2013-02-21 Martin Jambor <mjambor@suse.cz>
29455 * ipa-cp.c (good_cloning_opportunity_p): Dump the real threshold
29456 instead of hard-wired defaults.
29458 2013-02-21 Maciej W. Rozycki <macro@codesourcery.com>
29460 * doc/invoke.texi (MIPS Options): Update documentation of the
29461 floating-point multiply-accumulate instruction restrictions.
29463 2013-02-21 Kostya Serebryany <kcc@google.com>
29465 * config/i386/i386.c (ix86_asan_shadow_offset): Use 0x7fff8000 as
29466 asan_shadow_offset on x86_64 linux.
29468 2013-02-21 Richard Biener <rguenther@suse.de>
29470 PR tree-optimization/56415
29472 2013-02-11 Richard Biener <rguenther@suse.de>
29474 PR tree-optimization/56273
29475 * tree-vrp.c (simplify_cond_using_ranges): Disable for the
29478 2013-02-21 Jakub Jelinek <jakub@redhat.com>
29481 * doc/invoke.texi (-fdump-rtl-pro_and_epilogue): Use @item
29484 PR inline-asm/56405
29485 * expr.c (expand_expr_real_1) <case TARGET_MEM_REF, MEM_REF>: Don't
29486 use movmisalign or extract_bit_field for EXPAND_MEMORY modifier.
29488 2013-02-20 Jan Hubicka <jh@suse.cz>
29490 PR tree-optimization/56265
29491 * ipa-prop.c (ipa_make_edge_direct_to_target): Fixup callgraph
29492 when target is referenced for first time.
29494 2013-02-20 Richard Biener <rguenther@suse.de>
29496 * tree-call-cdce.c (tree_call_cdce): Do not remove unused locals.
29497 * tree-ssa-forwprop.c (ssa_forward_propagate_and_combine): Likewise.
29498 * tree-ssa-dce.c (perform_tree_ssa_dce): Likewise.
29499 * tree-ssa-copyrename.c (copy_rename_partition_coalesce): Do
29500 not return anything.
29501 (rename_ssa_copies): Do not remove unused locals.
29502 * tree-ssa-ccp.c (do_ssa_ccp): Likewise.
29503 * tree-ssanames.c (pass_release_ssa_names): Remove unused locals first.
29504 * passes.c (execute_function_todo): Do not schedule unused locals
29505 removal if cleanup_tree_cfg did something.
29506 * tree-ssa-live.c (remove_unused_locals): Dump statistics
29507 about the number of removed locals.
29509 2013-02-20 Richard Biener <rguenther@suse.de>
29511 PR tree-optimization/56398
29512 * tree-vect-loop-manip.c (adjust_debug_stmts): Skip SSA default defs.
29514 2013-02-20 Martin Jambor <mjambor@suse.cz>
29516 PR tree-optimization/55334
29517 * ipa-cp.c (initialize_node_lattices): Disable IPA-CP through and to
29518 restricted pointers to arrays.
29520 2013-02-20 Richard Biener <rguenther@suse.de>
29521 Jakub Jelinek <jakub@redhat.com>
29523 PR tree-optimization/56396
29524 * tree-ssa-ccp.c (n_const_val): New static variable.
29525 (get_value): Return NULL for SSA names we don't have a lattice
29527 (ccp_initialize): Initialize n_const_val.
29528 * tree-ssa-copy.c (n_copy_of): New static variable.
29529 (init_copy_prop): Initialize n_copy_of.
29530 (get_value): Return NULL_TREE for SSA names we don't have a
29533 2013-02-20 Martin Jambor <mjambor@suse.cz>
29535 * ipa-cp.c (initialize_node_lattices): Fix dumping condition.
29537 2013-02-20 Richard Biener <rguenther@suse.de>
29539 * genpreds.c (write_lookup_constraint): Do not compare first
29540 letter of the constraint again.
29542 2013-02-20 Richard Biener <rguenther@suse.de>
29544 * tree-ssa-loop-ivopts.c (alloc_use_cost_map): Use bitmap_count_bits
29546 (get_use_iv_cost): Terminate hashtable walk when coming across
29549 2013-02-20 Igor Zamyatin <igor.zamyatin@intel.com>
29551 * config/i386/i386.c (initial_ix86_tune_features): Turn on fp
29552 reassociation for avx2 targets.
29554 2012-02-19 Edgar E. Iglesias <edgar.iglesias@gmail.com>
29556 * config/microblaze/microblaze.c: microblaze_has_clz = 0
29557 Add version check for v8.10.a to enable microblaze_has_clz
29558 * config/microblaze/microblaze.h: Add TARGET_HAS_CLZ as combined
29559 version and TARGET_PATTERN_COMPARE check
29560 * config/microblaze/microblaze.md: New clzsi2 instruction
29562 2012-02-19 Edgar E. Iglesias <edgar.iglesias@gmail.com>
29564 * config/microblaze/microblaze.md (call_value_intern): Check symbol is
29565 function before branching.
29567 2012-02-19 Andrey Belevantsev <abel@ispras.ru>
29569 * sel-sched-dump.c (dump_insn_rtx_flags): Explicitly set
29571 (dump_insn_rtx_1): Pass PATTERN (insn) to str_pattern_slim.
29573 2012-02-19 Andrey Belevantsev <abel@ispras.ru>
29575 PR middle-end/55889
29576 * sel-sched.c: Include ira.h.
29577 (implicit_clobber_conflict_p): New function.
29578 (moveup_expr): Use it.
29579 * Makefile.in (sel-sched.o): Depend on ira.h.
29581 2013-02-19 Richard Biener <rguenther@suse.de>
29583 PR tree-optimization/56384
29584 * tree-ssa-sccvn.h (struct vn_phi_s): Add type member.
29585 (vn_hash_type): Split out from ...
29586 (vn_hash_constant_with_type): ... here.
29587 * tree-ssa-sccvn.c (vn_phi_compute_hash): Use vn_hash_type.
29588 (vn_phi_eq): Compare types from vn_phi_s structure.
29589 (vn_phi_lookup): Populate vn_phi_s type.
29590 (vn_phi_insert): Likewise.
29592 2013-02-19 Jakub Jelinek <jakub@redhat.com>
29594 PR tree-optimization/56350
29595 * tree-vect-loop.c (vectorizable_reduction): If orig_stmt, return false
29596 if haven't found reduction or nested cycle operand, rather than
29597 asserting we must find it.
29599 PR tree-optimization/56381
29600 * tree-ssa-pre.c (create_expression_by_pieces): Fix up last argument
29603 2013-02-18 Aldy Hernandez <aldyh@redhat.com>
29604 Jakub Jelinek <jakub@redhat.com>
29607 * genopinit.c (raw_optab_handler): Use this_fn_optabs.
29608 (swap_optab_enable): Same.
29609 (init_all_optabs): Use argument instead of global.
29610 * tree.h (struct tree_optimization_option): New field target_optabs.
29611 * expr.h (init_all_optabs): Add argument to prototype.
29612 (TREE_OPTIMIZATION_OPTABS): New.
29613 (save_optabs_if_changed): Protoize.
29614 * optabs.h: Declare this_fn_optabs.
29615 * optabs.c (save_optabs_if_changed): New.
29616 Declare this_fn_optabs.
29617 (init_optabs): Add argument to init_all_optabs() call.
29618 * function.c (invoke_set_current_function_hook): Handle per
29620 * function.h (struct function): New field optabs.
29621 * config/mips/mips.c (mips_set_mips16_mode): Handle when
29622 optimization_current_node has changed.
29623 * target-globals.h (save_target_globals_default_opts): Protoize.
29624 * target-globals.c (save_target_globals_default_opts): New.
29626 2013-02-18 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
29629 * config/pa/pa.c (pa_conditional_register_usage): On HP-UX, mark
29630 registers %fr12 and %fr12R as call used.
29633 * config/pa/predicates.md (base14_operand): Except for BLKmode, QImode
29634 and HImode, require all displacements to be an integer multiple of
29636 * config/pa/pa.c (pa_legitimate_address_p): For REG+BASE addresses,
29637 only allow QImode and HImode when reload is in progress and strict is
29638 true. Likewise for symbolic addresses. Use base14_operand to check
29639 displacements in REG+BASE addresses.
29641 2013-02-18 Richard Biener <rguenther@suse.de>
29643 PR tree-optimization/56366
29644 * tree-vect-loop.c (get_initial_def_for_induction): Properly
29645 handle sign-conversion of outer-loop initial induction value.
29647 2013-02-18 Richard Biener <rguenther@suse.de>
29649 PR middle-end/56349
29650 * cfghooks.c (merge_blocks): If we merge a latch into another
29651 block adjust references to it.
29652 * cfgloop.c (flow_loops_find): Reset latch before recomputing it.
29653 (verify_loop_structure): Verify that a recorded latch is in fact
29656 2013-02-18 Richard Biener <rguenther@suse.de>
29658 PR tree-optimization/56321
29659 * tree-ssa-reassoc.c (propagate_op_to_single_use): Properly
29660 order SSA name release and virtual operand unlinking.
29662 2013-02-17 Edgar E. Iglesias <edgar.iglesias@gmail.com>
29664 * config/microblaze/microblaze.md (save_stack_block): Define.
29665 (restore_stack_block): Likewise.
29667 2013-02-16 Edgar E. Iglesias <edgar.iglesias@gmail.com>
29669 * config/microblaze/linux.h (TARGET_SUPPORTS_PIC): Define as 1.
29670 * config/microblaze/microblaze.h (TARGET_SUPPORTS_PIC): Define as 1.
29671 * config/microblaze/microblaze.c (microblaze_option_override):
29672 Bail out early for PIC modes when target does not support PIC.
29674 2013-02-16 Edgar E. Iglesias <edgar.iglesias@gmail.com>
29676 * config/microblaze/microblaze.c (microblaze_asm_trampoline_template):
29677 Replace with a microblaze version.
29678 (microblaze_trampoline_init): Adapt for microblaze.
29679 * config/microblaze/microblaze.h (TRAMPOLINE_SIZE): Adapt for
29682 2013-02-16 Jakub Jelinek <jakub@redhat.com>
29683 Dodji Seketeli <dodji@redhat.com>
29686 * asan.c (get_mem_refs_of_builtin_call): White space and style cleanup.
29687 (instrument_mem_region_access): Do not forget to always put
29688 instrumentation of the of 'base' and 'base + len' in a "if (len !=
29689 0) statement, even for cases where either 'base' or 'base + len'
29690 are not instrumented -- because they have been previously
29691 instrumented. Simplify the logic by putting all the statements
29692 instrument 'base + len' inside a sequence, and then insert that
29693 sequence right before the current insertion point. Then, to
29694 instrument 'base + len', just get an iterator on that statement.
29695 And do not forget to update the pointer to iterator the function
29696 received as argument.
29698 2013-02-15 Vladimir Makarov <vmakarov@redhat.com>
29700 PR rtl-optimization/56348
29701 * lra-assigns.c (reload_pseudo_compare_func): Prefer bigger pseudos.
29703 2013-02-15 Steven Bosscher <steven@gcc.gnu.org>
29705 * graph.c (start_graph_dump): Print dumpfile base as digraph label.
29706 (clean_graph_dump_file): Pass base to start_graph_dump.
29708 2013-02-14 Richard Henderson <rth@redhat.com>
29711 * lower-subreg.c (simple_move): Check dest mode instead of src mode.
29713 2013-02-14 Steven Bosscher <steven@gcc.gnu.org>
29715 * collect2-aix.h: Define F_LOADONLY.
29717 2013-02-14 Richard Biener <rguenther@suse.de>
29720 * varasm.c (output_constant_def_1): Get the decl representing
29721 the constant as argument.
29722 (output_constant_def): Wrap output_constant_def_1.
29723 (make_decl_rtl): Use output_constant_def_1 with the decl
29724 representing the constant.
29725 (build_constant_desc): Optionally re-use a decl already
29726 representing the constant.
29727 (tree_output_constant_def): Adjust.
29729 2013-02-14 Dodji Seketeli <dodji@redhat.com>
29732 * asan.c (instrument_builtin_call): Really put the length of the
29733 second source argument into src1_len.
29735 2013-02-13 Jakub Jelinek <jakub@redhat.com>
29737 * asan.c (create_cond_insert_point): Add create_then_fallthru_edge
29738 argument. If it is false, don't create edge from then_bb to
29740 (insert_if_then_before_iter): Pass true to it.
29741 (build_check_stmt): Pass false to it.
29742 (transform_statements): Flush hash table only on extended basic
29743 block boundaries, rather than at the beginning of every bb.
29744 Don't flush hash table on nonfreeing_call_p calls.
29745 * tree-flow.h (nonfreeing_call_p): New prototype.
29746 * tree-ssa-phiopt.c (nonfreeing_call_p): No longer static.
29748 2013-02-13 David S. Miller <davem@davemloft.net>
29750 * expmed.c (expand_shift_1): Only strip scalar integer subregs.
29752 2013-02-13 Vladimir Makarov <vmakarov@redhat.com>
29755 * ira.c (max_regno_before_ira): Move from ...
29757 (fix_reg_equiv_init): Use max_regno_before_ira instead of
29760 2013-02-13 Jakub Jelinek <jakub@redhat.com>
29762 * config/i386/i386.c (ix86_asan_shadow_offset): Revert last change.
29764 2013-02-13 Richard Biener <rguenther@suse.de>
29767 * gimple-streamer-out.c (output_gimple_stmt): Undo wrapping
29768 globals in MEM_REFs.
29770 2013-02-13 Richard Biener <rguenther@suse.de>
29772 * loop-init.c (loop_optimizer_init): Clear loop state when
29773 re-initializing preserved loops.
29774 * loop-unswitch.c (unswitch_single_loop): Return whether
29775 we unswitched the loop. Do not verify loop state here.
29776 (unswitch_loops): When we unswitched a loop discover new loops.
29778 2013-02-13 Kostya Serebryany <kcc@google.com>
29780 * config/i386/i386.c: Use 0x7fff8000 as asan_shadow_offset
29782 * sanitizer.def: Rename __asan_init to __asan_init_v1.
29784 2013-02-12 Dodji Seketeli <dodji@redhat.com>
29786 Avoid instrumenting duplicated memory access in the same basic block
29787 * Makefile.in (asan.o): Add new dependency on hash-table.h
29788 * asan.c (struct asan_mem_ref, struct mem_ref_hasher): New types.
29789 (asan_mem_ref_init, asan_mem_ref_get_end, get_mem_ref_hash_table)
29790 (has_stmt_been_instrumented_p, empty_mem_ref_hash_table)
29791 (free_mem_ref_resources, has_mem_ref_been_instrumented)
29792 (has_stmt_been_instrumented_p, update_mem_ref_hash_table)
29793 (get_mem_ref_of_assignment): New functions.
29794 (get_mem_refs_of_builtin_call): Extract from
29795 instrument_builtin_call and tweak a little bit to make it fit with
29797 (instrument_builtin_call): Use the new
29798 get_mem_refs_of_builtin_call. Use gimple_call_builtin_p instead
29799 of is_gimple_builtin_call.
29800 (instrument_derefs, instrument_mem_region_access): Insert the
29801 instrumented memory reference into the hash table.
29802 (maybe_instrument_assignment): Renamed instrument_assignment into
29803 this, and change it to advance the iterator when instrumentation
29804 actually happened and return true in that case. This makes it
29805 homogeneous with maybe_instrument_assignment, and thus give a
29806 chance to callers to be more 'regular'.
29807 (transform_statements): Clear the memory reference hash table
29808 whenever we enter a new BB, when we cross a function call, or when
29809 we are done transforming statements. Use
29810 maybe_instrument_assignment instead of instrumentation. No more
29811 need to special case maybe_instrument_assignment and advance the
29812 iterator after calling it; it's now handled just like
29813 maybe_instrument_call. Update comment.
29815 2013-02-13 Richard Biener <rguenther@suse.de>
29817 * config/mn10300/mn10300.c (mn10300_scan_for_setlb_lcc):
29818 Fix loop discovery code.
29820 2013-02-12 Vladimir Makarov <vmakarov@redhat.com>
29822 PR inline-asm/56148
29823 * lra-constraints.c (process_alt_operands): Match early clobber
29824 operand with itself. Check conflicts with earlyclobber only if
29825 the operand is not reloaded. Prefer to reload conflicting operand
29826 if earlyclobber and matching operands are the same.
29828 2013-02-12 Richard Biener <rguenther@suse.de>
29831 * lto-streamer-out.c (write_symbol): Do not output symbols
29832 for hard register variables.
29834 2013-02-12 Georg-Johann Lay <avr@gjlay.de>
29837 * config/avr/avr-dimode.md (umulsidi3, mulsidi3): New expanders.
29838 (umulsidi3_insn, mulsidi3_insn): New insns.
29840 2013-02-12 Christophe Lyon <christophe.lyon@linaro.org>
29842 * config/arm/arm-protos.h (struct cpu_vec_costs): New struct type.
29843 (struct tune_params): Add vec_costs field.
29844 * config/arm/arm.c (arm_builtin_vectorization_cost)
29845 (arm_add_stmt_cost): New functions.
29846 (TARGET_VECTORIZE_BUILTIN_VECTORIZATION_COST)
29847 (TARGET_VECTORIZE_ADD_STMT_COST): Define.
29848 (arm_default_vec_cost): New struct of type cpu_vec_costs.
29849 (arm_slowmul_tune, arm_fastmul_tune, arm_strongarm_tune)
29850 (arm_xscale_tune, arm_9e_tune, arm_v6t2_tune, arm_cortex_tune)
29851 (arm_cortex_a15_tune, arm_cortex_a5_tune, arm_cortex_a9_tune)
29852 (arm_v6m_tune, arm_fa726te_tune): Define new vec_costs field.
29854 2013-02-12 Richard Biener <rguenther@suse.de>
29857 * gimple-streamer-in.c (input_gimple_stmt): Strip MEM_REFs off
29858 decls again if possible.
29860 2013-02-12 Richard Biener <rguenther@suse.de>
29862 PR middle-end/56288
29863 * tree-ssa.c (verify_ssa_name): Fix check, move
29864 SSA_NAME_IN_FREE_LIST check up.
29866 2013-02-12 Jakub Jelinek <jakub@redhat.com>
29867 Steven Bosscher <steven@gcc.gnu.org>
29869 PR rtl-optimization/56151
29870 * optabs.c (add_equal_note): Don't return 0 if target is a MEM,
29871 equal to op0 or op1, and last_insn pattern is CODE operation
29872 with MEM dest and one of the operands matches that MEM.
29874 2013-02-11 Sriraman Tallam <tmsriram@google.com>
29876 * doc/extend.texi: Document Function Multiversioning and "default"
29877 parameter string to target attribute.
29878 * config/i386/i386.c (get_builtin_code_for_version): Return 0 if
29879 target attribute parameter is "default".
29880 (ix86_compare_version_priority): Remove checks for target attribute.
29881 (ix86_mangle_function_version_assembler_name): Change error to sorry.
29882 Remove check for target attribute equal to NULL. Add assert.
29883 (ix86_generate_version_dispatcher_body): Change error to sorry.
29885 2013-02-11 Iain Sandoe <iain@codesourcery.com>
29886 Jack Howarth <howarth@bromo.med.uc.edu>
29887 Patrick Marlier <patrick.marlier@gmail.com>
29890 * config/darwin.h: Replace ENDFILE_SPEC with TM_DESTRUCTOR and
29891 define ENDFILE_SPEC as TM_DESTRUCTOR.
29892 * config/i386/darwin.h (ENDFILE_SPEC): Use TM_DESTRUCTOR.
29894 2013-02-11 Alexander Potapenko <glider@google.com>
29895 Jack Howarth <howarth@bromo.med.uc.edu>
29896 Jakub Jelinek <jakub@redhat.com>
29899 * config/darwin.c (cdtor_record): Rename ctor_record.
29900 (sort_cdtor_records): Rename sort_ctor_records.
29901 (finalize_dtors): New routine to sort destructors by
29902 priority before use in assemble_integer.
29903 (machopic_asm_out_destructor): Use finalize_dtors if needed.
29905 2013-02-11 Uros Bizjak <ubizjak@gmail.com>
29907 PR rtl-optimization/56275
29908 * simplify-rtx.c (avoid_constant_pool_reference): Check that
29909 offset is non-negative and less than cmode size before
29910 calling simplify_subreg.
29912 2013-02-11 Richard Biener <rguenther@suse.de>
29914 PR tree-optimization/56264
29915 * cfgloop.h (fix_loop_structure): Adjust prototype.
29916 * loop-init.c (fix_loop_structure): Return the number of
29917 newly discovered loops.
29918 * tree-cfgcleanup.c (repair_loop_structures): When new loops
29919 are discovered, do a full loop-closed SSA rewrite.
29921 2013-02-11 Richard Biener <rguenther@suse.de>
29923 PR tree-optimization/56273
29924 * tree-vrp.c (simplify_cond_using_ranges): Disable for the
29926 (check_array_ref): Fix missing newline in dumps.
29927 (search_for_addr_array): Likewise.
29929 2013-02-09 David Edelsohn <dje.gcc@gmail.com>
29931 * config/rs6000/aix61.h (OS_MISSING_ALTIVEC): Undefine.
29933 2013-02-09 Jakub Jelinek <jakub@redhat.com>
29936 * config/rs6000/rs6000.h (ASSEMBLER_DIALECT): Define.
29938 2013-02-08 Vladimir Makarov <vmakarov@redhat.com>
29940 PR rtl-optimization/56246
29941 * lra-constraints.c (simplify_operand_subreg): Try to reuse
29943 * lra.c (lra): Clear lra_optional_reload_pseudos only when all
29944 constraints are satisfied.
29946 2013-02-08 Jeff Law <law@redhat.com>
29949 * emit-rtl.c (reg_is_parm_p): New function.
29950 * regs.h (reg_is_parm_p): New prototype.
29951 * ira-conflicts.c (ira_build_conflicts): Allow parameters in
29952 callee-clobbered registers.
29954 2013-02-08 Michael Meissner <meissner@linux.vnet.ibm.com>
29957 * config/rs6000/rs6000.c (rs6000_builtin_vectorized_libmass):
29958 If there is no implicit builtin declaration, just return NULL.
29960 2013-02-08 Uros Bizjak <ubizjak@gmail.com>
29962 * config/i386/sse.md (FMAMODEM): New mode iterator.
29963 (fma<mode>4, fms<mode>4, fnma<mode>4, fnms<mode>4): Use FMAMODEM
29964 mode iterator. Do not use TARGET_SSE_MATH in insn constraint.
29966 2013-02-08 Uros Bizjak <ubizjak@gmail.com>
29968 * config/i386/gnu-user.h (TARGET_CAN_SPLIT_STACK): Define only
29969 when HAVE_GAS_CFI_PERSONALITY_DIRECTIVE is set.
29970 * config/i386/gnu-user64.h (TARGET_CAN_SPLIT_STACK): Ditto.
29972 2013-02-08 Edgar E. Iglesias <edgar.iglesias@gmail.com>
29974 * config.gcc (microblaze*-linux*): Add TARGET_BIG_ENDIAN_DEFAULT.
29975 (microblaze*-*-elf): Likewise.
29976 * config/microblaze/linux.h: Add -mbig-endian / -mlittle-endian to
29978 * config/microblaze/microblaze-c.c: Add builtin defines for
29979 _LITTLE_ENDIAN and _BIG_ENDIAN.
29980 * config/microblaze/microblaze.h: Add TARGET_ENDIAN_DEFAULT and
29981 add to TARGET_DEFAULT flags.
29982 Expand ASM_SPEC and LINK_SPEC.
29983 Update BYTES_BIG_ENDIAN and WORDS_BIG_ENDIAN.
29984 * config/microblaze/microblaze.md: Update extendsidi2 and
29985 movdi_internal instructions to use low-order / high-order reg
29987 * config/microblaze/microblaze.opt: Add mbig-endian and mlittle-endian
29988 options and inversemask / mask of LITTLE_ENDIAN.
29989 * config/microblaze/t-microblaze: Expand multilib options to
29990 include mlittle-endian (le) and update exceptions patterns.
29992 2013-02-08 Jakub Jelinek <jakub@redhat.com>
29994 PR rtl-optimization/56195
29995 * lra-constraints.c (get_reload_reg): Don't reuse regs
29996 if they have smaller mode than requested, if they have
29997 wider mode than requested, try to return a SUBREG.
29999 PR tree-optimization/56250
30000 * fold-const.c (extract_muldiv_1) <case NEGATE_EXPR>: Don't optimize
30001 if type is unsigned and code isn't MULT_EXPR.
30003 2013-02-08 Georg-Johann Lay <avr@gjlay.de>
30005 PR tree-optimization/56064
30006 * fixed-value.c (fixed_from_double_int): Sign/zero extend payload
30007 bits according to mode.
30008 * fixed-value.h (fixed_from_double_int)
30009 (const_fixed_from_double_int): Adjust comments.
30011 2013-02-08 Richard Biener <rguenther@suse.de>
30014 * lto-streamer.h (struct data_in): Remove current_file, current_line
30015 and current_col members.
30016 * lto-streamer-out.c (lto_output_location): Stream changed bits
30017 en-block for efficiency.
30018 * lto-streamer-in.c (clear_line_info): Remove.
30019 (lto_input_location): Cache current file, line and column
30020 globally via local statics. Read changed bits en-block.
30021 (input_function): Do not call clear_line_info.
30022 (lto_read_body): Likewise.
30023 (lto_input_toplevel_asms): Likewise.
30025 2013-02-08 Michael Matz <matz@suse.de>
30027 PR tree-optimization/52448
30028 * tree-ssa-phiopt.c (struct name_to_bb): Add phase member.
30029 (nt_call_phase): New static.
30030 (add_or_mark_expr): Only mark accesses with newer phase than any
30032 (nonfreeing_call_p): New.
30033 (nt_init_block): Update nt_call_phase, mark blocks as visited.
30034 (nt_fini_block): Keep blocks marked as visited.
30035 (get_non_trapping): Initialize nt_call_phase, and reset aux pointer.
30037 2013-02-08 Richard Biener <rguenther@suse.de>
30039 * ira.c (ira): Free broken dominator information.
30041 2013-02-08 Uros Bizjak <ubizjak@gmail.com>
30043 * config/i386/i386.c (ix86_spill_class): Use INTEGER_CLASS_P macro.
30045 2013-02-08 Marek Polacek <polacek@redhat.com>
30047 * cfgloop.c (verify_loop_structure): Add more checking of headers.
30049 2013-02-08 Richard Biener <rguenther@suse.de>
30051 PR middle-end/56181
30052 * cfgloop.h (flow_loops_find): Adjust.
30053 (bb_loop_header_p): Declare.
30054 * cfgloop.c (bb_loop_header_p): New function split out from ...
30055 (flow_loops_find): ... here. Adjust function signature,
30056 support incremental loop structure update.
30057 (verify_loop_structure): Cleanup. Verify a loop is a loop.
30058 * cfgloopmanip.c (fix_loop_structure): Move ...
30059 * loop-init.c (fix_loop_structure): ... here.
30060 (apply_loop_flags): Split out from ...
30061 (loop_optimizer_init): ... here.
30062 (fix_loop_structure): Use apply_loop_flags. Use flow_loops_find
30063 in incremental mode, only remove dead loops here.
30065 2013-02-08 Georg-Johann Lay <avr@gjlay.de>
30068 * config/avr/avr.md (unspec) <UNSPEC_ROUND>: Add.
30069 * config/avr/avr-fixed.md (ALL4QA, ALL124QA): New mode iterators.
30070 (round<mode>3, round<mode>3_const): New expanders for fixed-mode.
30071 (*round<mode>3.libgcc): New insns for fixed-modes.
30072 * config/avr/builtins.def (ABSxx): Use a non-NULL LIBNAME.
30073 (ROUNDxx, COUNTLSxx, BITSxx, xxBITS): New DEF_BUILTINs.
30074 (ROUNDFX, COUNTLSFX, ABSFX): New DEF_BUILTINs.
30075 * config/avr/stdfix.h (absFX, bitsFX, FXbits): Remove inline
30076 implementations. Define to __builtin_avr_absFX,
30077 __builtin_avr_bitsFX, __builtin_avr_FXbits, respectively.
30078 (roundFX, countlsFX): Define to __builtin_avr_roundFX,
30079 __builtin_avr_countlsFX, respectively.
30080 * config/avr/avr-c.c (target.h): Include it.
30081 (enum avr_builtin_id): New enum.
30082 (avr_resolve_overloaded_builtin): New static function.
30083 (avr_register_target_pragmas): Use it to set
30084 targetm.resolve_overloaded_builtin.
30085 * config/avr/avr.c (avr_init_builtins): Supply myriads of local
30086 tree nodes used by DEF_BUILTIN.
30087 (avr_expand_builtin) <AVR_BUILTIN_ROUNDxx>: Sanity-check them.
30088 (avr_fold_builtin) <AVR_BUILTIN_BITSxx>: Fold to VIEW_COVERT_EXPR.
30089 <AVR_BUILTIN_xxBITS>: Same.
30091 2013-02-08 Richard Biener <rguenther@suse.de>
30093 * cfgloop.c (verify_loop_structure): Properly handle
30094 a loop exiting to another loop header.
30095 * ira-int.h (ira_loops): Remove.
30096 * ira.c (ira_loops): Remove.
30097 (ira): Use loop_optimizer_init and loop_optimizer_finalize.
30098 (do_reload): Use loop_optimizer_finalize.
30099 * ira-build.c (create_loop_tree_nodes): Use get_loops and
30100 number_of_loops to access the loop tree.
30101 (more_one_region_p): Likewise.
30102 (finish_loop_tree_nodes): Likewise.
30103 (rebuild_regno_allocno_maps): Likewise.
30104 (mark_loops_for_removal): Likewise.
30105 (mark_all_loops_for_removal): Likewise.
30106 (remove_unnecessary_regions): Likewise.
30107 (ira_build): Likewise.
30108 * ira-emit.c (setup_entered_from_non_parent_p): Likewise.
30110 2013-02-08 Richard Biener <rguenther@suse.de>
30112 * Makefile.in (tree-tailcall.o): Add $(CFGLOOP_H) dependency.
30113 * ipa-pure-const.c (analyze_function): Avoid calling
30114 mark_irreducible_loops twice.
30115 * tree-tailcall.c (tree_optimize_tail_calls_1): Mark loops for fixup.
30117 2013-02-07 David S. Miller <davem@davemloft.net>
30119 * dwarf2out.c (based_loc_descr): Perform leaf register remapping
30121 * var-tracking.c (vt_add_function_parameter): Test the presence of
30122 HAVE_window_save properly and do not remap argument registers when
30123 we have a leaf function.
30125 2013-02-07 Uros Bizjak <ubizjak@gmail.com>
30128 * ggc-page.c (ggc_print_statistics): Use HOST_LONG_LONG_FORMAT
30130 * config/i386/i386.c (ix86_print_operand): Ditto.
30132 2013-02-07 Vladimir Makarov <vmakarov@redhat.com>
30134 * lra-constraints.c (process_alt_operands): Fix recently added comment.
30136 2013-02-07 Vladimir Makarov <vmakarov@redhat.com>
30138 PR rtl-optimization/56225
30139 * lra-constraints.c (process_alt_operands): Check that reload hard
30140 reg can hold value for strict_low_part.
30142 2013-02-07 Jakub Jelinek <jakub@redhat.com>
30145 * dwarf2out.c (dwarf2_debug_hooks): Set end_function hook to
30146 dwarf2out_end_function.
30147 (in_first_function_p, maybe_at_text_label_p,
30148 first_loclabel_num_not_at_text_label): New variables.
30149 (dwarf2out_var_location): In the first function find out
30150 lowest loclabel_num N where .LVLN is known not to be equal to .Ltext0.
30151 (find_empty_loc_ranges_at_text_label, dwarf2out_end_function): New
30154 2013-02-07 Eric Botcazou <ebotcazou@adacore.com>
30156 PR rtl-optimization/56178
30157 * cse.c (cse_insn): Do not create a REG_EQUAL note if the source is a
30158 SUBREG of a register. Tidy up related block of code.
30159 * fwprop.c (forward_propagate_and_simplify): Do not create a REG_EQUAL
30160 note if the source is a register or a SUBREG of a register.
30162 2013-02-07 Jakub Jelinek <jakub@redhat.com>
30165 * config/rs6000/rs6000.md (ptrm): New mode attr.
30166 (call_indirect_aix<ptrsize>, call_indirect_aix<ptrsize>_nor11,
30167 call_value_indirect_aix<pttrsize>,
30168 call_value_indirect_aix<pttrsize>_nor11): Use <ptrm> instead of
30171 2013-02-07 Michael Haubenwallner <michael.haubenwallner@salomon.at>
30173 * collect2.c (main): Set aix64_flag for -G and -bsvr4 too, disable
30174 if -bnortl. Convert to strcmp and strncmp.
30176 2013-02-07 Alan Modra <amodra@gmail.com>
30179 * config/rs6000/rs6000.c (mem_operand_gpr): Check that LO_SUM
30180 addresses won't wrap when offsetting.
30181 (rs6000_secondary_reload): Provide secondary reloads needed for
30182 wrapping LO_SUM addresses.
30184 2013-02-06 Thomas Schwinge <thomas@codesourcery.com>
30186 * config/gnu.h (GNU_USER_TARGET_OS_CPP_BUILTINS): Never define
30187 MACH, just __MACH__.
30189 2013-02-06 Richard Biener <rguenther@suse.de>
30191 * tracer.c (tracer): Mark loops with LOOPS_NEED_FIXUP
30192 instead of calling fix_loop_structure.
30194 2013-02-06 Jakub Jelinek <jakub@redhat.com>
30196 PR middle-end/56217
30197 * omp-low.c (use_pointer_for_field): Return false if
30198 lower_send_shared_vars doesn't generate any copy-out code.
30200 2013-02-06 Tom de Vries <tom@codesourcery.com>
30202 PR rtl-optimization/56131
30203 * cfgrtl.c (delete_insn): Use NOTE_BASIC_BLOCK instead of BLOCK_FOR_INSN
30204 to get the bb of a NOTE_INSN_BASIC_BLOCK. Handle the case that the bb
30205 of the label is NULL. Add comment.
30207 2013-02-05 Jakub Jelinek <jakub@redhat.com>
30209 * tree.h (struct tree_decl_with_vis): Remove thread_local field.
30212 * config/gnu-user.h (LIBTSAN_EARLY_SPEC): Define.
30213 (STATIC_LIBTSAN_LIBS): Likewise.
30214 * gcc.c (ADD_STATIC_LIBTSAN_LIBS, LIBTSAN_EARLY_SPEC): Define.
30215 (LIBTSAN_SPEC): Add ADD_STATIC_LIBTSAN_LIBS, if LIBTSAN_EARLY_SPEC
30216 is defined, don't add anything else beyond that.
30217 (SANITIZER_EARLY_SPEC, SANITIZER_SPEC): Define.
30218 (LINK_COMMAND_SPEC): Use them.
30220 PR tree-optimization/56205
30221 * tree-stdarg.c (check_all_va_list_escapes): Return true if
30222 there are any PHI nodes that set non-va_list_escape_vars SSA_NAME
30223 and some va_list_escape_vars SSA_NAME appears in some PHI argument.
30225 2013-02-05 Richard Biener <rguenther@suse.de>
30227 PR tree-optimization/53342
30228 PR tree-optimization/53185
30229 * tree-vectorizer.h (vect_check_strided_load): Remove.
30230 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment): Do
30231 not disallow peeling for vectorized strided loads.
30232 (vect_check_strided_load): Make static and simplify.
30233 (vect_analyze_data_refs): Adjust.
30234 * tree-vect-stmts.c (vectorizable_load): Handle peeled loops
30235 correctly when vectorizing strided loads.
30237 2013-02-05 Richard Biener <rguenther@suse.de>
30239 * doc/install.texi: Refer to ISL, not PPL.
30241 2013-02-05 Jan Hubicka <jh@suse.cz>
30243 PR tree-optimization/55789
30244 * params.def (PARAM_EARLY_INLINER_MAX_ITERATIONS): Drop to 1.
30246 2013-02-05 Jan Hubicka <jh@suse.cz>
30248 PR tree-optimization/55789
30249 * cgraphclones.c (cgraph_remove_node_and_inline_clones): Remove
30250 the dead call anyway.
30252 2013-02-05 Eric Botcazou <ebotcazou@adacore.com>
30255 * config/gnu-user.h (LIBASAN_EARLY_SPEC): Add missing guard.
30257 2013-02-04 Alexander Potapenko <glider@google.com>
30258 Jack Howarth <howarth@bromo.med.uc.edu>
30259 Jakub Jelinek <jakub@redhat.com>
30262 * config/darwin.c (sort_ctor_records): Stabilized qsort
30263 on constructor priority by using original position.
30264 (finalize_ctors): New routine to sort constructors by
30265 priority before use in assemble_integer.
30266 (machopic_asm_out_constructor): Use finalize_ctors if needed.
30268 2013-02-04 Jakub Jelinek <jakub@redhat.com>
30271 * config/i386/winnt.c (i386_pe_assemble_visibility): Don't warn
30272 about visibility on artificial decls.
30273 * config/sol2.c (solaris_assemble_visibility): Likewise.
30275 2013-02-04 Kai Tietz <ktietz@redhat.com>
30278 * config/i386/i386.c (function_value_ms_64): Add additional valtype
30279 argument and improve checking of return-argument types for 16-byte
30281 (ix86_function_value_1): Add additional valtype argument on call
30282 of function_value_64.
30283 (return_in_memory_ms_64): Sync 16-byte sized mode handling with
30284 handling infunction_value_64 function.
30286 2013-02-04 Matthew Gretton-Dann <matthew.gretton-dann@linaro.org>
30288 * reload.c (subst_reloads): Fix DEBUG_RELOAD build issue.
30290 2013-02-04 Richard Biener <rguenther@suse.de>
30292 PR tree-optimization/56188
30293 * tree-ssa-structalias.c (label_visit): Consider case with
30294 initially non-empty points-to set.
30295 (perform_var_substitution): Dump node mapping and clean up.
30297 2013-02-04 Richard Guenther <rguenther@suse.de>
30300 * lto-symtab.c (lto_symtab_merge_decls_1): Make non-builtin
30301 node prevail as last resort.
30302 (lto_symtab_merge_decls): Remove guard on LTRANS here.
30303 (lto_symtab_prevailing_decl): Builtins are their own prevailing decl.
30305 2013-02-04 Richard Biener <rguenther@suse.de>
30307 PR tree-optimization/56113
30308 * tree-ssa-structalias.c (equiv_class_lookup, equiv_class_add):
30310 (equiv_class_lookup_or_add): ... this.
30311 (label_visit): Adjust and fix error in previous patch.
30312 (perform_var_substitution): Adjust.
30314 2013-02-03 Oleg Endo <olegendo@gcc.gnu.org>
30316 * config/sh/divtab.c: Fix formatting and comments throughout the file.
30317 * config/sh/sh4-300.md: Likewise.
30318 * config/sh/sh4a.md: Likewise.
30319 * config/sh/constraints.md: Likewise.
30320 * config/sh/sh.md: Likewise.
30321 * config/sh/netbsd-elf.h: Likewise.
30322 * config/sh/predicates.md: Likewise.
30323 * config/sh/sh-protos.h: Likewise.
30324 * config/sh/ushmedia.h: Likewise.
30325 * config/sh/linux.h: Likewise.
30326 * config/sh/sh.c: Likewise.
30327 * config/sh/superh.h: Likewise.
30328 * config/sh/elf.h: Likewise.
30329 * config/sh/sh4.md: Likewise.
30330 * config/sh/sh.h: Likewise.
30332 2013-02-03 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
30334 * config/pa/constraints.md: Adjust unused letters. Change "T"
30335 constraint to match_test floating_point_store_memory_operand().
30336 * config/pa/predicates.md (reg_plus_base_memory_operand): New.
30337 (base14_operand): New.
30338 (floating_point_store_memory_operand): New.
30339 (integer_store_memory_operand): Revise to use base14_operand and
30340 reg_plus_base_memory_operand.
30341 (move_dest_operand): Allow symbolic_memory_operands.
30342 (symbolic_memory_operand): Check for LO_SOM.
30343 (symbolic_operand): Change default case to break.
30344 * config/pa/pa.md: Remove unamed DFmode and SFmode patterns to force
30345 CONST_DOUBLE values to be reloaded by putting them into memory when
30346 the destination is a floating point register.
30347 (movdf): Remove code to handle CONST_DOUBLE.
30349 (reload_indf_r1): New.
30350 (reload_insf_r1): New.
30351 Consistently use "Q" and "T" constraints with integer and floating
30352 point move instructions, respectively.
30353 (movdi): Remove FAIL.
30354 Change predicate for source operand unamed DImode move from
30355 general_operand to move_src_operand.
30356 (umulsidi3): Change predicate for destination operand to
30358 Likewise for similar unamed patterns.
30359 * config/pa/pa-protos.h (pa_legitimize_reload_address): Declare.
30360 * config/pa/pa.c (pa_symbolic_expression_p): Remove extra parenthesis.
30361 (hppa_legitimize_address): Simplify mask calculation.
30362 (pa_emit_move_sequence): Revised handling of secondary reloads from
30363 REG+D addresses for floating point loads and stores. Directly handle
30364 loading CONST0_RTX (mode) to a floating point register.
30365 (pa_secondary_reload): Handle reloading DF and SFmode constant values
30366 to floating point registers. Don't restrict secondary reloads to
30367 floating point registers to integer modes. Revise some comments and
30369 (TARGET_LEGITIMATE_ADDRESS_P): Define.
30370 (pa_legitimate_address_p): New.
30371 (pa_legitimize_reload_address): New.
30372 * config/pa/pa.h (STRICT_REG_OK_FOR_INDEX_P): New.
30373 (STRICT_REG_OK_FOR_BASE_P): New.
30374 (GO_IF_LEGITIMATE_ADDRESS): Delete. Update some related comments.
30375 (LEGITIMIZE_RELOAD_ADDRESS): Revise to use pa_legitimize_reload_address.
30377 2013-02-03 David Edelsohn <dje.gcc@gmail.com>
30378 Andrew Dixie <andrewd@gentrack.com>
30380 * collect2.c (GCC_CHECK_HDR): Do not scan objects with F_LOADONLY
30383 2013-02-03 Richard Sandiford <rdsandiford@googlemail.com>
30385 * expmed.c (extract_bit_field_1): Pass the full width of the
30386 structure to get_best_reg_extraction_insn.
30388 2013-02-01 David Edelsohn <dje.gcc@gmail.com>
30391 * configure.ac (use_cxa_atexit): Add AIX.
30392 * configure: Regenerate.
30394 * config/rs6000/aix61.h (STARTFILE_SPEC): Add crtcxa.o.
30396 2013-02-01 Jakub Jelinek <jakub@redhat.com>
30399 * final.c (need_profile_function): New variable.
30400 (final_start_function): Drop ATTRIBUTE_UNUSED from first argument.
30401 If first of NOTE_INSN_BASIC_BLOCK or NOTE_INSN_FUNCTION_BEG
30402 is only preceeded by NOTE_INSN_VAR_LOCATION or NOTE_INSN_DELETED
30403 notes, targetm.asm_out.function_prologue doesn't emit anything,
30404 HAVE_prologue and profiler should be emitted before prologue,
30405 set need_profile_function instead of emitting it.
30406 (final_scan_insn): If need_profile_function, emit
30407 profile_function on the first NOTE_INSN_BASIC_BLOCK or
30408 NOTE_INSN_FUNCTION_BEG note.
30410 2013-02-01 Richard Henderson <rth@redhat.com>
30412 * config/rs6000/rs6000.md (smulditi3): New.
30415 * config/alpha/alpha.md (umulditi3): New.
30417 2013-02-01 David Edelsohn <dje.gcc@gmail.com>
30419 * config/rs6000/xcoff.h (ASM_OUTPUT_ALIGNED_COMMON): Use floor_log2.
30420 (ASM_OUTPUT_ALIGNED_LOCAL): New.
30422 2013-02-01 Richard Biener <rguenther@suse.de>
30424 PR tree-optimization/56113
30425 * tree-ssa-structalias.c (label_visit): Reduce work for
30426 single-predecessor nodes.
30428 2013-02-01 Eric Botcazou <ebotcazou@adacore.com>
30430 * fold-const.c (make_range_step) <TRUTH_NOT_EXPR>: Bail out if the
30431 range isn't testing for zero.
30433 2013-01-31 Steven Bosscher <steven@gcc.gnu.org>
30435 PR middle-end/56113
30436 * fwprop.c (fwprop_init): Set up loops without CFG modifications.
30438 2013-01-31 Hiroyuki Ono <hiroyuki.ono.jc@renesas.com>
30439 Nick Clifton <nickc@redhat.com>
30441 * config/v850/constraints.md (Q): Define as a memory constraint.
30442 * config/v850/predicates.md (label_ref_operand): New predicate.
30443 (e3v5_shift_operand): New predicate.
30444 (ior_operator): New predicate.
30445 * config/v850/t-v850: Add e3v5 multilib.
30446 * config/v850/v850-protos.h (v850_adjust_insn_length): Prototype.
30447 (v850_gen_movdi): Prototype.
30448 * config/v850/v850.c: Add support for e3v5 architecture.
30449 Rename all uses of TARGET_V850E || TARGET_V850E2_ALL to
30451 (construct_save_jarl): Add e3v5 long JARL support.
30452 (v850_adjust_insn_length): New function. Adjust length of call
30453 insns when using e3v5 instructions.
30454 (v850_gen_movdi): New function: Generate instructions to move a
30456 * config/v850/v850.h (TARGET_CPU_v850e3v5): Define.
30457 (CPP_SPEC): Define __v850e3v5__ as appropriate.
30458 (TARGET_USE_FPU): Enable for e3v5.
30459 (CONST_OK_FOR_W): New macro.
30460 (ADJUST_INSN_LENGTH): Define.
30461 * config/v850/v850.md (UNSPEC_LOOP): Define.
30462 (attr cpu): Add v850e3v5.
30463 Rename all uses of TARGET_V850E2 to TARGET_V850E2V3_UP.
30464 (movdi): New pattern.
30465 (movdi_internal): New pattern.
30466 (cbranchsf4): Conditionalize on TARGET_USE_FPU.
30467 (cbranchdf4): Conditionalize on TARGET_USE_FPU.
30468 (cstoresf4): Likewise.
30469 (cstoredf4): Likewise.
30470 (insv): New pattern.
30471 (rotlso3_a): New pattern.
30472 (rotlsi3_b): New pattern
30473 (rotlsi3_v850e3v5): New pattern.
30474 (doloop_begin): New pattern.
30475 (fix_loop_counter): New pattern.
30476 (doloop_end): New pattern.
30477 (branch_normal): Add e3v5 long branch support.
30478 (branch_invert): Likewise.
30479 (branch_z_normal): Likewise.
30480 (branch_z_invert): Likewise.
30481 (branch_nz_normal): Likewise.
30482 (branch_nz_invert): Likewise.
30483 (call_internal_short): Add e3v5 register-indirect JARL support.
30484 (call_internal_long): Likewise.
30485 (call_value_internal_short): Likewise.
30486 (call_value_internal_long): Likewise.
30487 * config/v850/v850.opt (mv850e3v5, mv850e2v4): New options.
30488 (mloop): New option.
30489 * config.gcc: Add support for configuring v840e3v5 target.
30490 * doc/invoke.texi: Document new v850 specific command line options.
30492 2013-01-31 Paul Koning <ni1d@arrl.net>
30496 * dwarf2out.c (prune_unused_types_mark): Mark all of parent's
30497 children if parent is a class.
30498 (prune_unused_types_prune): Don't add DW_AT_declaration.
30500 2013-01-31 Richard Biener <rguenther@suse.de>
30502 PR tree-optimization/56157
30503 * tree-vect-slp.c (vect_get_slp_defs): More thoroughly try to
30504 match up operand with SLP child.
30506 2013-01-31 Jason Merrill <jason@redhat.com>
30509 * dwarf2out.c (gen_struct_or_union_type_die): Always schedule template
30510 parameters the first time.
30511 (gen_scheduled_generic_parms_dies): Check completeness here.
30513 2013-01-31 Richard Biener <rguenther@suse.de>
30515 PR middle-end/53073
30516 * common.opt (faggressive-loop-optimizations): New flag,
30517 enabled by default.
30518 * doc/invoke.texi (faggressive-loop-optimizations): Document.
30519 * tree-ssa-loop-niter.c (estimate_numbers_of_iterations_loop): Guard
30520 infer_loop_bounds_from_undefined by it.
30522 2013-01-31 Richard Biener <rguenther@suse.de>
30524 PR tree-optimization/56150
30525 * tree-ssa-loop-manip.c (find_uses_to_rename_stmt): Do not
30526 visit virtual operands.
30527 (find_uses_to_rename_bb): Likewise.
30529 2013-01-31 Richard Biener <rguenther@suse.de>
30531 PR tree-optimization/56150
30532 * tree-ssa-tail-merge.c (gimple_equal_p): Properly handle
30533 mixed store non-store stmts.
30535 2013-01-30 Jakub Jelinek <jakub@redhat.com>
30538 * gcc.c (LIBASAN_SPEC): Define just to ADD_STATIC_LIBASAN_LIBS if
30539 LIBASAN_EARLY_SPEC is defined.
30540 (LIBASAN_EARLY_SPEC): Define to empty string if not already defined.
30541 (LINK_COMMAND_SPEC): Add LIBASAN_EARLY_SPEC for -fsanitize=address,
30543 * config/gnu-user.h (LIBASAN_EARLY_SPEC): Define.
30546 * config/i386/i386.c (ix86_valid_target_attribute_inner_p): Diagnose
30547 invalid args instead of ICEing on it.
30548 (ix86_valid_target_attribute_tree): Return error_mark_node if
30549 ix86_valid_target_attribute_inner_p failed.
30550 (ix86_valid_target_attribute_p): Return false only if
30551 ix86_valid_target_attribute_tree returned error_mark_node. Allow
30552 target("default") attribute.
30553 (sorted_attr_string): Change argument from const char * to tree,
30554 merge in all target attribute arguments rather than just one.
30555 Formatting fix. Use XNEWVEC instead of xmalloc and XDELETEVEC
30556 instead of free. Avoid using strcat.
30557 (ix86_mangle_function_version_assembler_name): Mangle
30558 target("default") as if no target attribute is present. Adjust
30559 sorted_attr_string caller. Avoid leaking memory. Use XNEWVEC
30560 instead of xmalloc and XDELETEVEC instead of free.
30561 (ix86_function_versions): Don't return true if one of the decls
30562 doesn't have target attribute. If they don't and one of the decls
30563 is DECL_FUNCTION_VERSIONED, report an error. Adjust
30564 sorted_attr_string caller. Use XDELETEVEC instead of free.
30565 (ix86_supports_function_versions): Remove.
30566 (make_name): Fix up formatting.
30567 (make_dispatcher_decl): Remove resolver_name and its initialization.
30568 Avoid leaking memory.
30569 (is_function_default_version): Return true if there is
30570 target("default") attribute rather than no target attribute at all.
30571 (make_resolver_func): Avoid leaking memory.
30572 (ix86_generate_version_dispatcher_body): Likewise.
30573 (TARGET_OPTION_SUPPORTS_FUNCTION_VERSIONS): Remove.
30574 * target.def (supports_function_versions): Remove.
30575 * doc/tm.texi.in (SUPPORTS_FUNCTION_VERSIONS): Remove.
30576 * doc/tm.texi: Regenerated.
30578 2013-01-30 Vladimir Makarov <vmakarov@redhat.com>
30580 PR rtl-optimization/56144
30581 * lra-constraints.c (get_reload_reg): Don't reuse reload pseudo
30582 for values with side effects.
30584 2013-01-30 Richard Biener <rguenther@suse.de>
30586 * sparseset.h (sparseset_bit_p): Use gcc_checking_assert.
30587 (sparseset_pop): Likewise.
30588 * cfganal.c (compute_idf): Likewise. Increase work-stack size
30589 to be able to use quick_push in the worker loop.
30591 2013-01-30 Marek Polacek <polacek@redhat.com>
30593 * cfgcleanup.c (cleanup_cfg): Don't mark affected BBs.
30595 2013-01-30 Richard Biener <rguenther@suse.de>
30598 * lto-symtab.c (lto_symtab_merge_decls_1): Guard DECL_BUILT_IN check.
30600 2013-01-30 Georg-Johann Lay <avr@gjlay.de>
30602 PR tree-optimization/56064
30603 * fixed-value.c (fixed_from_double_int): New function.
30604 * fixed-value.h (fixed_from_double_int): New prototype.
30605 (const_fixed_from_double_int): New static inline function.
30606 * fold-const.c (native_interpret_fixed): New static function.
30607 (native_interpret_expr) <FIXED_POINT_TYPE>: Use it.
30608 (can_native_interpret_type_p) <FIXED_POINT_TYPE>: Return true.
30609 (native_encode_fixed): New static function.
30610 (native_encode_expr) <FIXED_CST>: Use it.
30611 (native_interpret_int): Move double_int worker code to...
30612 * double-int.c (double_int::from_buffer): ...this new static method.
30613 * double-int.h (double_int::from_buffer): Prototype it.
30615 2013-01-30 Richard Biener <rguenther@suse.de>
30617 * tree-ssa-structalias.c (final_solutions, final_solutions_obstack):
30618 New pointer-map and obstack.
30619 (init_alias_vars): Allocate pointer-map and obstack.
30620 (delete_points_to_sets): Free them.
30621 (find_what_var_points_to): Cache result.
30622 (find_what_p_points_to): Adjust for changed interface of
30623 find_what_var_points_to.
30624 (compute_points_to_sets): Likewise.
30625 (ipa_pta_execute): Likewise.
30627 2013-01-30 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
30629 * configure.ac (HAVE_AS_SPARC_NOBITS): New test.
30630 * configure: Regenerate.
30631 * config.in: Regenerate.
30632 * config/sparc/sparc.c (sparc_solaris_elf_asm_named_section): Emit
30633 #nobits/#progbits if supported.
30635 2013-01-29 Oleg Endo <olegendo@gcc.gnu.org>
30638 * config/sh/sh.md (bclr_m2a, bset_m2a, bst_m2a, bld_m2a, bldsign_m2a,
30639 bld_reg, *bld_regqi, band_m2a, bandreg_m2a, bor_m2a, borreg_m2a,
30640 bxor_m2a, bxorreg_m2a): Add satisfies_constraint_K03 condition.
30642 2013-01-29 Greta Yorsh <Greta.Yorsh@arm.com>
30644 * config/arm/cortex-a7.md (cortex_a7_neon, cortex_a7_all): Remove.
30645 (cortex_a7_idiv): Use cortex_a7_both instead of cortex_a7_all.
30647 2013-01-29 Greta Yorsh <Greta.Yorsh@arm.com>
30649 * config/arm/arm.c (cortexa7_younger): Return true for TYPE_CALL.
30650 * config/arm/cortex-a7.md (cortex_a7_call): Update required units.
30652 2013-01-29 Greta Yorsh <Greta.Yorsh@arm.com>
30654 * config/arm/arm-protos.h (arm_mac_accumulator_is_result): New
30656 * config/arm/arm.c (arm_mac_accumulator_is_result): New function.
30657 * config/arm/cortex-a7.md: New bypasses using
30658 arm_mac_accumulator_is_result.
30660 2013-01-29 Greta Yorsh <Greta.Yorsh@arm.com>
30662 * config/arm/cortex-a7.md (cortex_a7_neon_mul): New reservation.
30663 (cortex_a7_neon_mla): Likewise.
30664 (cortex_a7_fpfmad): New reservation.
30665 (cortex_a7_fpmacs): Use ffmas and update required units.
30666 (cortex_a7_fpmuld): Update required units and latency.
30667 (cortex_a7_fpmacd): Likewise.
30668 (cortex_a7_fdivs, cortex_a7_fdivd): Likewise.
30669 (cortex_a7_neon). Likewise.
30670 (bypass) Update participating units.
30672 2013-01-29 Greta Yorsh <Greta.Yorsh@arm.com>
30674 * config/arm/arm.md (type): Add ffmas and ffmad to "type" attribute.
30675 * config/arm/vfp.md (fma,fmsub,fnmsub,fnmadd): Change type
30677 * config/arm/vfp11.md (vfp_farith): Use ffmas.
30678 (vfp_fmul): Use ffmad.
30679 * config/arm/cortex-r4f.md (cortex_r4_fmacs): Use ffmas.
30680 (cortex_r4_fmacd): Use ffmad.
30681 * config/arm/cortex-m4-fpu.md (cortex_m4_fmacs): Use ffmas.
30682 * config/arm/cortex-a9.md (cortex_a9_fmacs): Use ffmas.
30683 (cortex_a9_fmacd): Use ffmad.
30684 * config/arm/cortex-a8-neon.md (cortex_a8_vfp_macs): Use ffmas.
30685 (cortex_a8_vfp_macd): Use ffmad.
30686 * config/arm/cortex-a5.md (cortex_a5_fpmacs): Use ffmas.
30687 (cortex_a5_fpmacd): Use ffmad.
30688 * config/arm/cortex-a15-neon.md (cortex_a15_vfp_macs) Use ffmas.
30689 (cortex_a15_vfp_macd): Use ffmad.
30690 * config/arm/arm1020e.md (v10_fmul): Use ffmas and ffmad.
30692 2013-01-29 Jason Merrill <jason@redhat.com>
30695 * varasm.c (default_assemble_visibility): Don't warn about
30696 visibility on artificial decls.
30698 2013-01-29 Richard Biener <rguenther@suse.de>
30700 PR tree-optimization/56113
30701 * tree-ssa-structalias.c (equiv_class_lookup): Also return
30703 (label_visit): Free duplicate bitmaps and record the leader instead.
30704 (perform_var_substitution): Adjust.
30706 2013-01-29 Richard Biener <rguenther@suse.de>
30708 PR tree-optimization/55270
30709 * tree-ssa-dom.c (eliminate_degenerate_phis): If we changed
30710 the CFG, schedule loops for fixup.
30712 2013-01-29 Nick Clifton <nickc@redhat.com>
30714 * config/rl78/rl78.c (rl78_regno_mode_code_ok_for_base_p): Allow
30717 2013-01-28 Leif Ekblad <leif@rdos.net>
30719 * config.gcc (i[34567]86-*-rdos*, x86_64-*-rdos*): New targets.
30720 * config/i386/i386.h (TARGET_RDOS): New macro.
30721 (DEFAULT_LARGE_SECTION_THRESHOLD): New macro.
30722 * config/i386/i386.c (ix86_option_override_internal): For 64bit
30723 TARGET_RDOS, set ix86_cmodel to CM_MEDIUM_PIC and flag_pic to 1.
30724 * config/i386/i386.opt (mlarge-data-threshold): Initialize to
30725 DEFAULT_LARGE_SECTION_THRESHOLD.
30726 * config/i386/i386.md (R14_REG, R15_REG): New constants.
30727 * config/i386/rdos.h: New file.
30728 * config/i386/rdos64.h: New file.
30730 2013-01-28 Bernd Schmidt <bernds@codesourcery.com>
30733 * reload.c (find_valid_class_1): Use in_hard_reg_set_p instead of
30736 2013-01-28 Jakub Jelinek <jakub@redhat.com>
30738 PR rtl-optimization/56117
30739 * sched-deps.c (sched_analyze_2) <case PREFETCH>: For use_cselib
30740 call cselib_lookup_from_insn on the MEM before calling
30741 add_insn_mem_dependence.
30743 2013-01-28 Richard Biener <rguenther@suse.de>
30745 * tree-inline.c (remap_gimple_stmt): Do not assing a BLOCK
30746 to a stmt that didn't have one.
30747 (copy_phis_for_bb): Likewise for PHI arguments.
30748 (copy_debug_stmt): Likewise for debug stmts.
30750 2013-01-28 Richard Biener <rguenther@suse.de>
30752 PR tree-optimization/56034
30753 * tree-loop-distribution.c (enum partition_kind): Add PKIND_REDUCTION.
30754 (partition_builtin_p): Adjust.
30755 (generate_code_for_partition): Handle PKIND_REDUCTION. Assert
30756 it is the last partition.
30757 (rdg_flag_uses): Check SSA_NAME_IS_DEFAULT_DEF before looking
30758 up the vertex for the definition.
30759 (classify_partition): Classify whether a partition is a
30760 PKIND_REDUCTION, thus has uses outside of the loop.
30761 (ldist_gen): Inherit PKIND_REDUCTION when merging partitions.
30762 Merge all PKIND_REDUCTION partitions into the last partition.
30763 (tree_loop_distribution): Seed partitions from reductions as well.
30765 2013-01-28 Jakub Jelinek <jakub@redhat.com>
30767 PR tree-optimization/56125
30768 * tree-ssa-math-opts.c (gimple_expand_builtin_pow): Don't optimize
30769 pow(x,c) into sqrt(x) * powi(x, n/2) or
30770 1.0 / (sqrt(x) * powi(x, abs(n/2))) if c is an integer or when
30771 optimizing for size.
30772 Don't optimize pow(x,c) into powi(x, n/3) * powi(cbrt(x), n%3) or
30773 1.0 / (powi(x, abs(n)/3) * powi(cbrt(x), abs(n)%3)) if 2c is an
30776 PR tree-optimization/56094
30777 * gimplify.c (force_gimple_operand_1): Temporarily set input_location
30778 to UNKNOWN_LOCATION while gimplifying expr.
30780 2013-01-27 Uros Bizjak <ubizjak@gmail.com>
30783 * config/i386/i386.md (*movabs<mode>_1): Add square brackets around
30784 operand 0 in movabs insn template for -masm=intel asm alternative.
30785 (*movabs<mode>_2): Ditto for operand 1.
30787 2013-01-26 David Holsgrove <david.holsgrove@xilinx.com>
30790 * config.gcc (microblaze*-linux*): Add tmake_file to allow building
30793 2013-01-26 Edgar E. Iglesias <edgar.iglesias@gmail.com>
30795 * config.gcc (microblaze*-*-*): Rename microblaze*-*-elf, update
30798 2013-01-25 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
30800 * config/aarch64/aarch64.c (TARGET_FIXED_CONDITION_CODE_REGS):
30801 Undef to avoid warning.
30803 2013-01-25 Michael Haubenwallner <michael.haubenwallner@salomon.at>
30805 * configure.ac (gcc_cv_ld_static_dynamic): Define for AIX native ld.
30806 * configure: Regenerate.
30808 2013-01-25 Jakub Jelinek <jakub@redhat.com>
30810 PR tree-optimization/56098
30811 * tree-ssa-phiopt.c (nt_init_block): Don't call add_or_mark_expr
30812 for stmts with volatile ops.
30813 (cond_store_replacement): Don't optimize if assign has volatile ops.
30814 (cond_if_else_store_replacement_1): Don't optimize if either
30815 then_assign or else_assign have volatile ops.
30816 (hoist_adjacent_loads): Don't optimize if either def1 or def2 have
30819 2013-01-25 Georg-Johann Lay <avr@gjlay.de>
30821 * doc/invoke.texi (AVR Built-in Macros): Document __XMEGA__.
30823 2013-01-25 Georg-Johann Lay <avr@gjlay.de>
30825 * doc/extend.texi (Example of asm with clobbered asm reg): Fix
30826 missing ':' in asm example.
30828 2013-01-25 Tejas Belagod <tejas.belagod@arm.com>
30830 * config/aarch64/aarch64-simd-builtins.def: Separate sq<r>dmulh_lane
30831 entries into lane and laneq entries.
30832 * config/aarch64/aarch64-simd.md (aarch64_sq<r>dmulh_lane<mode>):
30833 Remove AdvSIMD scalar modes.
30834 (aarch64_sq<r>dmulh_laneq<mode>): New.
30835 (aarch64_sq<r>dmulh_lane<mode>): New RTL pattern for Scalar AdvSIMD
30837 * config/aarch64/arm_neon.h: Fix all the vq<r>dmulh_lane* intrinsics'
30838 builtin implementations to relfect changes in RTL in aarch64-simd.md.
30839 * config/aarch64/iterators.md (VCOND): New.
30842 2013-01-25 Georg-Johann Lay <avr@gjlay.de>
30845 * config/avr/builtins.def (DEF_BUILTIN): Add LIBNAME argument.
30846 Add NULL LIBNAME argument to existing definitions.
30847 (ABSHR, ABSR, ABSLR, ABSLLR, ABSHK, ABSK, ABSLK, ABSLLK): New.
30848 * config/avr/avr-c.c (DEF_BUILTIN): Add LIBNAME argument.
30849 * config/avr/avr.c (DEF_BUILTIN): Same.
30850 (avr_init_builtins): Pass down LIBNAME to add_builtin_function.
30851 (avr_expand_builtin): Expand to a vanilla call if a libgcc
30852 implementation is available (DECL_ASSEMBLER_NAME is set).
30853 (avr_fold_absfx): New static function.
30854 (avr_fold_builtin): Use it to handle: AVR_BUILTIN_ABSHR,
30855 AVR_BUILTIN_ABSR, AVR_BUILTIN_ABSLR, AVR_BUILTIN_ABSLLR,
30856 AVR_BUILTIN_ABSHK, AVR_BUILTIN_ABSK, AVR_BUILTIN_ABSLK,
30857 AVR_BUILTIN_ABSLLK.
30858 * config/avr/stdfix.h (abshr, absr, abslr, absllr)
30859 (abshk, absk, abslk, absllk): Provide as static inline functions.
30861 2013-01-25 Marek Polacek <polacek@redhat.com>
30863 PR tree-optimization/56035
30864 * cfgloopmanip.c (fix_loop_structure): Remove redundant condition.
30866 2012-01-24 Uros Bizjak <ubizjak@gmail.com>
30868 * config/i386/i386.md (*movti_internal_rex64): Add (o,e) alternative.
30869 (*movtf_internal_rex64): Add (!o,C) alternative
30870 (*movxf_internal_rex64): Ditto.
30871 (*movdf_internal_rex64): Add (?r,C) and (?m,C) alternatives.
30873 2013-01-24 Shenghou Ma <minux.ma@gmail.com>
30875 * doc/invoke.texi: fix typo.
30876 * doc/objc.texi: fix typo.
30878 2013-01-24 Richard Sandiford <rdsandiford@googlemail.com>
30880 * config/mips/mips.md (*and<mode>3_mips16): Use the "W" constraint
30881 for the first two alternatives.
30883 2013-01-24 Diego Novillo <dnovillo@google.com>
30885 * Makefile.in (GGC): Remove. Replace all instances with ggc-page.o.
30886 (ggc-zone.o): Remove.
30887 * configure.ac: Remove option --with-gc.
30888 * configure: Re-generate.
30889 * doc/install.texi: Remove documentation for --with-gc.
30890 * gengtype.c (write_enum_defn): Remove. Update all users.
30891 (write_Types_process_field): Remove generation of gt_e_* argument.
30892 (output_type_enum): Remove. Update all users.
30893 (write_enum_defn): Remove. Update all users.
30894 (enum alloc_zone): Remove. Update all users.
30895 (write_splay_tree_allocator_def): Remove generation of gt_e_* argument.
30896 * ggc-common.c (ggc_splay_alloc): Remove first argument.
30897 Update all callers.
30898 (struct ptr_data): Remove field TYPE. Update all users.
30899 (gt_pch_note_object): Remove argument TYPE. Update all users.
30900 * ggc-internal.h (ggc_pch_alloc_object): Remove last argument.
30902 * ggc-none.c (ggc_alloc_typed_stat): Remove.
30903 (struct alloc_zone): Remove.
30904 (ggc_internal_alloc_zone_stat): Remove.
30905 (ggc_internal_cleared_alloc_zone_stat): Remove.
30906 * ggc-page.c (ggc_alloc_typed_stat): Remove.
30907 (ggc_pch_count_object): Remove last argument. Update all users.
30908 (ggc_pch_alloc_object): Remove last argument. Update all users.
30909 (struct alloc_zone): Remove.
30910 * ggc-zone.c: Remove.
30911 * ggc.h (gt_pch_note_object): Remove last argument. Update all users.
30912 (struct alloc_zone): Remove.
30913 (ggc_alloc_typed_stat): Remove.
30914 (ggc_alloc_typed): Remove.
30915 (ggc_splay_alloc): Remove first argument.
30916 (rtl_zone): Remove. Update all users.
30917 (tree_zone): Remove. Update all users.
30918 (tree_id_zone): Remove. Update all users.
30919 (ggc_internal_zone_alloc_stat): Remove. Update all users.
30920 (ggc_internal_zone_cleared_alloc_stat): Remove. Update all users.
30921 (ggc_internal_zone_vec_alloc_stat): Remove. Update all users.
30922 * tree-ssanames.c: Remove references to zone allocator in comments.
30924 2013-01-24 Georg-Johann Lay <avr@gjlay.de>
30926 * config/avr/avr.c (avr_out_fract): Make register numbers that
30927 might be outside of source operand signed.
30929 2013-01-24 Uros Bizjak <ubizjak@gmail.com>
30931 * config/i386/constraints.md (Yf): New constraint.
30932 * config/i386/i386.md (*movdf_internal_rex64): Use Yf*f instead
30933 of f constraint to conditionaly disable x87 register preferences.
30934 (*movdf_internal): Ditto.
30935 (*movsf_internal): Ditto.
30937 2013-01-24 Steven Bosscher <steven@gcc.gnu.org>
30939 PR inline-asm/55934
30940 * lra-assigns.c (assign_by_spills): Throw away the pattern of asms
30941 that have operands with impossible constraints.
30942 Add a FIXME for a speed-up opportunity.
30943 * lra-constraints.c (process_alt_operands): Verify that a class
30944 selected from constraints on asms is valid for the operand mode.
30945 (curr_insn_transform): Remove incorrect comment.
30947 2013-01-23 David Edelsohn <dje.gcc@gmail.com>
30949 * config/rs6000/rs6000.c (rs6000_delegitimize_address): Check that
30950 TOC operand is a valid symbol ref in the constant pool.
30952 2013-01-23 Edgar E. Iglesias <edgar.iglesias@gmail.com>
30954 * config/microblaze/linux.h: Add TARGET_OS_CPP_BUILTINS
30956 2013-01-23 Georg-Johann Lay <avr@gjlay.de>
30959 * config/avr/stdfix.h: New file.
30960 * t-avr (stdfix-gcc.h): New rule to build it.
30961 (EXTRA_HEADERS): Set it to install stdfix.h, stdfix-gcc.h.
30963 2013-01-23 Kostya Serebryany <kcc@google.com>
30965 * config/darwin.h: remove dependency on
30966 CoreFoundation (asan on Mac OS).
30968 2013-01-23 Jakub Jelinek <jakub@redhat.com>
30971 * config/arm/arm.md (cbranchdi4, cstoredi4): Use s_register_operand
30972 instead of cmpdi_operand for first comparison operand.
30973 Don't assert that comparison operands aren't both constants.
30975 2013-01-22 Jonathan Wakely <jwakely.gcc@gmail.com>
30977 * doc/install.texi (Downloading the Source): Update references to
30978 downloading separate components.
30980 2013-01-22 Jonathan Wakely <jwakely.gcc@gmail.com>
30982 * doc/extend.texi (__int128): Improve grammar.
30984 2013-01-22 Uros Bizjak <ubizjak@gmail.com>
30987 * config/i386/i386.md (*movti_internal_rex64): Change (o,riF)
30988 alternative to (o,r).
30989 (*movdi_internal_rex64): Remove (!o,n) alternative.
30990 (DImode immediate->memory splitter): Remove.
30991 (DImode immediate->memory peephole2): Remove.
30992 (movtf): Enable for TARGET_64BIT || TARGET_SSE.
30993 (*movtf_internal_rex64): Rename from *movtf_internal. Change (!o,F*r)
30994 alternative to (!o,*r).
30995 (*movtf_internal_sse): New pattern.
30996 (*movxf_internal_rex64): New pattern.
30997 (*movxf_internal): Disable for TARGET_64BIT.
30998 (*movdf_internal_rex64): Remove (!o,F) alternative.
31000 2013-01-22 Jakub Jelinek <jakub@redhat.com>
31002 PR middle-end/56074
31003 * dumpfile.c (dump_loc): Only print loc if LOCATION_LOCUS (loc)
31004 isn't UNKNOWN_LOCATION nor BUILTINS_LOCATION.
31005 * tree-vect-loop-manip.c (find_loop_location): Also ignore
31006 stmt locations where LOCATION_LOCUS of the stmt location is
31007 UNKNOWN_LOCATION or BUILTINS_LOCATION.
31010 * config/i386/i386.md (UNSPEC_STOS): New.
31011 (strset_singleop, *strsetdi_rex_1, *strsetsi_1, *strsethi_1,
31012 *strsetqi_1): Add UNSPEC_STOS.
31014 2013-01-22 Paolo Carlini <paolo.carlini@oracle.com>
31017 * doc/invoke.texi: Remove left over -Wsynth example.
31019 2013-01-21 Jakub Jelinek <jakub@redhat.com>
31021 PR tree-optimization/56051
31022 * fold-const.c (fold_binary_loc): Don't fold
31023 X < (cast) (1 << Y) into (X >> Y) != 0 if cast is either
31024 a narrowing conversion, or widening conversion from signed
31027 2013-01-21 Uros Bizjak <ubizjak@gmail.com>
31029 PR rtl-optimization/56023
31030 * haifa-sched.c (fix_inter_tick): Do not update ticks of instructions,
31031 dependent on debug instruction.
31033 2013-01-21 Martin Jambor <mjambor@suse.cz>
31035 PR middle-end/56022
31036 * function.c (allocate_struct_function): Call
31037 invoke_set_current_function_hook earlier.
31039 2013-01-21 Jakub Jelinek <jakub@redhat.com>
31041 * reload1.c (init_reload): Only initialize reload_obstack
31042 during the first call.
31044 2013-01-21 Marek Polacek <polacek@redhat.com>
31046 * cfgloop.c (verify_loop_structure): Fix up grammar.
31048 2013-01-21 Yi-Hsiu Hsu <ahsu@marvell.com>
31050 * config/arm/marvell-pj4.md (pj4_shift_conds, pj4_alu_shift,
31051 pj4_alu_shift_conds, pj4_shift): Handle simple_alu_shift.
31053 2013-01-21 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
31056 * config/arm/marvell-pj4.md: Update copyright year.
31057 Fix up use of alu to alu_reg and simple_alu_imm.
31059 2013-01-21 Uros Bizjak <ubizjak@gmail.com>
31061 * config/i386/i386.md (enabled): Do not disable fma4 for TARGET_FMA.
31063 2013-01-20 Vladimir Makarov <vmakarov@redhat.com>
31066 * lra-constraints.c (curr_insn_transform): Don't reuse original
31067 insn for secondary memory move when memory mode should be different.
31069 2013-01-20 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
31071 * config/pa/pa.md (atomic_loaddi, atomic_loaddi_1, atomic_storedi,
31072 atomic_storedi_1): New patterns.
31074 2013-01-20 Venkataramanan Kumar <venkataramanan.kumar@amd.com>
31076 btver2 pipeline descriptions.
31077 * config/i386/i386.c: Enable CPU_BTVER2 to use btver2 pipeline
31079 * config/i386/i386.md (btver2_decode): New type attributes.
31080 * config/i386/sse.md (btver2_decode, btver2_sse_attr): New
31082 * config/i386/btver2.md: New file describing btver2 pipelines.
31084 2013-01-19 Andrew Pinski <apinski@cavium.com>
31086 PR tree-optimization/52631
31087 * tree-ssa-sccvn (visit_use): Before looking up the original
31088 statement, try looking up the simplified expression.
31090 2013-01-19 Anthony Green <green@moxielogic.com>
31092 * config/moxie/moxie.c (moxie_expand_prologue): Set
31093 current_function_static_stack_size.
31095 2013-01-18 Jakub Jelinek <jakub@redhat.com>
31097 PR tree-optimization/56029
31098 * tree-phinodes.c (reserve_phi_args_for_new_edge): Set
31099 gimple_phi_arg_location for the new arg to UNKNOWN_LOCATION.
31101 2013-01-18 Sharad Singhai <singhai@google.com>
31103 PR tree-optimization/55995
31104 * dumpfile.c (dump_loc): Print location only if available.
31105 * tree-vectorizer.c (increase_alignment): Intialize vect_location.
31107 2013-01-18 Vladimir Makarov <vmakarov@redhat.com>
31110 * lra-constraints.c (curr_insn_transform): Reuse original insn for
31111 secondary memory move.
31112 (inherit_reload_reg): Use rclass instead of cl for
31113 check_secondary_memory_needed_p.
31115 2013-01-18 Jakub Jelinek <jakub@redhat.com>
31117 PR middle-end/56015
31118 * expr.c (expand_expr_real_2) <case COMPLEX_EXPR>: Handle
31119 the case where writing real complex part of target modifies op1.
31121 2013-01-18 James Greenhalgh <james.greenhalgh@arm.com>
31123 * config/aarch64/aarch64-simd.md
31124 (aarch64_vcond_internal<mode>): Handle unordered cases.
31125 * config/aarch64/iterators.md (v_cmp_result): New.
31127 2013-01-18 Yi-Hsiu Hsu <ahsu@marvell.com>
31128 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
31130 * config/arm/marvell-pj4.md: New file.
31131 * config/arm/arm.c (arm_issue_rate): Add marvell_pj4.
31132 * config/arm/arm.md (generic_sched): Add marvell_pj4.
31133 (generic_vfp): Likewise.
31134 * config/arm/arm-cores.def: Add marvell-pj4.
31135 * config/arm/arm-tune.md: Regenerate.
31136 * config/arm/arm-tables.opt: Regenerate.
31137 * config/arm/bpabi.h (BE8_LINK_SPEC): Add marvell_pj4.
31138 * doc/invoke.texi: Document marvell-pj4.
31140 2013-01-18 Tejas Belagod <tejas.belagod@arm.com>
31142 * config/aarch64/arm_neon.h: Map scalar types to standard types.
31144 2013-01-18 Alexandre Oliva <aoliva@redhat.com>
31149 * var-tracking.c (negative_power_of_two_p): New.
31150 (global_get_addr_cache, local_get_addr_cache): New.
31151 (get_addr_from_global_cache, get_addr_from_local_cache): New.
31152 (vt_canonicalize_addr): Rewrite using the above. Adjust the
31154 (vt_stack_offset_p): Remove.
31155 (vt_canon_true_dep): Always canonicalize loc's address.
31156 (clobber_overlapping_mems): Make sure we have a MEM.
31157 (local_get_addr_clear_given_value): New.
31158 (val_reset): Clear local cached entries.
31159 (compute_bb_dataflow): Create and release the local cache.
31160 Disable duplicate MEMs clobbering.
31161 (emit_notes_in_bb): Clobber MEMs likewise.
31162 (vt_emit_notes): Create and release the local cache.
31163 (vt_initialize, vt_finalize): Create and release the global
31164 cache, respectively.
31165 * alias.c (rtx_equal_for_memref_p): Compare operands of ENTRY_VALUEs.
31167 2013-01-18 Alexandre Oliva <aoliva@redhat.com>
31169 PR libmudflap/53359
31170 * tree-mudflap.c (mudflap_finish_file): Skip deferred decls
31171 not found in the symtab.
31173 2013-01-18 Alexandre Oliva <aoliva@redhat.com>
31176 PR rtl-optimization/55547
31177 PR rtl-optimization/53827
31180 * alias.c (offset_overlap_p): New, factored out of...
31181 (memrefs_conflict_p): ... this. Use absolute sizes. Retain
31182 the conservative special case for symbolic constants. Don't
31183 adjust zero sizes on alignment.
31185 2013-01-18 Bernd Schmidt <bernds@codesourcery.com>
31187 PR rtl-optimization/52573
31188 * regrename.c (build_def_use): Ignore REG_DEAD notes if there is a
31189 REG_UNUSED for the same register.
31191 2013-01-17 Richard Biener <rguenther@suse.de>
31192 Marek Polacek <polacek@redhat.com>
31194 PR rtl-optimization/55833
31195 * loop-unswitch.c (unswitch_loops): Move loop verification...
31196 (unswitch_single_loop): ...here. Call mark_irreducible_loops.
31197 * cfgloopmanip.c (fix_loop_placement): Add IRRED_INVALIDATED parameter.
31198 Set it to true when we're removing a loop from hierarchy tree in
31199 an irreducible region.
31200 (fix_bb_placements): Adjust caller.
31201 (fix_loop_placements): Likewise.
31203 2013-01-17 Georg-Johann Lay <avr@gjlay.de>
31205 * config/avr/builtins.def (DEF_BUILTIN): Factor out
31206 "__builtin_avr_" from NAME, turn NAME to an uppercase identifier.
31207 Factor out 'CODE_FOR_' from ICODE, use 'nothing' instead of '-1'.
31208 Remove ID. Adjust comments.
31209 * config/avr/avr-c.c (avr_builtin_name): Remove.
31210 (avr_cpu_cpp_builtins): Use DEF_BUILTIN instead of for-loop.
31211 * config/avr/avr.c (avr_tolower): New static function.
31212 (DEF_BUILTIN): Remove parameter ID. Prefix ICODE by 'CODE_FOR_'.
31213 Stringify NAME, prefix it with "__builtin_avr_" and lowercase it.
31214 (avr_expand_builtin): Assert insn_code != CODE_FOR_nothing for
31217 2013-01-17 Jan Hubicka <jh@suse.cz>
31219 PR tree-optimization/55273
31220 * loop-iv.c (iv_number_of_iterations): Consider zero iteration case.
31222 2013-01-17 Uros Bizjak <ubizjak@gmail.com>
31225 * config/i386/sync.md (atomic_store<mode>): Always generate SWImode
31226 store through atomic_store<mode>_1.
31227 (atomic_store<mode>_1): Macroize insn using SWI mode iterator.
31229 2013-01-17 Martin Jambor <mjambor@suse.cz>
31231 PR tree-optimizations/55264
31232 * ipa-inline-transform.c (can_remove_node_now_p_1): Never return true
31233 for virtual methods.
31234 * ipa.c (symtab_remove_unreachable_nodes): Never return true for
31235 virtual methods before inlining is over.
31236 * cgraph.h (cgraph_only_called_directly_or_aliased_p): Return false for
31238 * cgraphclones.c (cgraph_create_virtual_clone): Mark clones as
31241 2013-01-16 Vladimir Makarov <vmakarov@redhat.com>
31243 PR rtl-optimization/56005
31244 * sched-deps.c (sched_analyze_2): Check deps->readonly for adding
31245 pending reads for prefetch.
31247 2013-01-16 Ian Bolton <ian.bolton@arm.com>
31249 * config/aarch64/aarch64.md
31250 (*cstoresi_neg_uxtw): New pattern.
31251 (*cmovsi_insn_uxtw): New pattern.
31252 (*<optab>si3_uxtw): New pattern.
31253 (*<LOGICAL:optab>_<SHIFT:optab>si3_uxtw): New pattern.
31254 (*<optab>si3_insn_uxtw): New pattern.
31255 (*bswapsi2_uxtw): New pattern.
31257 2013-01-16 Richard Biener <rguenther@suse.de>
31259 * tree-inline.c (tree_function_versioning): Remove set but
31260 never used variable.
31262 2013-01-16 Richard Biener <rguenther@suse.de>
31264 PR tree-optimization/55964
31265 * tree-flow.h (rename_variables_in_loop): Remove.
31266 (rename_variables_in_bb): Likewise.
31267 * tree-loop-distribution.c (update_phis_for_loop_copy): Remove.
31268 (copy_loop_before): Adjust and delete update-ssa status.
31269 * tree-vect-loop-manip.c (rename_variables_in_bb): Make static.
31270 (rename_variables_in_bb): Likewise. Properly walk over predecessors.
31271 (rename_variables_in_loop): Remove.
31272 (slpeel_update_phis_for_duplicate_loop): Likewise.
31273 (slpeel_tree_duplicate_loop_to_edge_cfg): Handle nested loops,
31274 use available cfg machinery instead of duplicating it.
31275 Update PHI nodes and perform poor-mans SSA update here.
31276 (slpeel_tree_peel_loop_to_edge): Adjust.
31278 2013-01-16 Richard Biener <rguenther@suse.de>
31280 PR tree-optimization/54767
31281 PR tree-optimization/53465
31282 * tree-vrp.c (vrp_meet_1): Revert original fix for PR53465.
31283 (vrp_visit_phi_node): For PHI arguments coming via backedges
31284 drop all symbolical range information.
31285 (execute_vrp): Compute backedges.
31287 2013-01-16 Richard Biener <rguenther@suse.de>
31289 * doc/install.texi: Update CLooG and ISL requirements to
31292 2013-01-16 Christian Bruel <christian.bruel@st.com>
31295 * config/sh/sh.c (sh_expand_prologue): Postpone new_stack mem symbol.
31296 (broken_move): Handle UNSPECV_SP_SWITCH_B.
31297 * config/sh/sh.md (sp_switch_1): Use set (reg:SI SP_REG).
31299 2013-01-16 DJ Delorie <dj@redhat.com>
31301 * config/sh/sh.md (UNSPECV_SP_SWITCH_B): New.
31302 (UNSPECV_SP_SWITCH_E): New.
31303 (sp_switch_1): Change to an unspec.
31304 (sp_switch_2): Change to an unspec. Don't use post-inc when we
31307 2013-01-16 Uros Bizjak <ubizjak@gmail.com>
31309 * emit-rtl.c (need_atomic_barrier_p): Mask memory model argument
31310 with MEMMODEL_MASK before comparing with MEMMODEL_* memory types.
31311 * optabs.c (maybe_emit_sync_lock_test_and_set): Ditto.
31312 (expand_mem_thread_fence): Ditto.
31313 (expand_mem_signal_fence): Ditto.
31314 (expand_atomic_load): Ditto.
31315 (expand_atomic_store): Ditto.
31317 2013-01-16 Alexandre Oliva <aoliva@redhat.com>
31319 PR rtl-optimization/55547
31320 PR rtl-optimization/53827
31323 * alias.c (memrefs_conflict_p): Set sizes to negative after
31326 2013-01-15 Jakub Jelinek <jakub@redhat.com>
31329 * function.c (thread_prologue_and_epilogue_insns): Always
31330 add crtl->drap_reg to set_up_by_prologue.set, even if
31331 stack_realign_drap is false.
31333 2013-01-15 Jan-Benedict Glaw <jbglaw@lug-owl.de>
31335 * config/vax/vax.md (add<mode>3, sub<mode>3, mul<mode>3, div<mode>3,
31336 and<mode>3, *and<mode>_const_int, ior<mode>3, xor<mode>3, ashrsi3,
31337 *call): Fix indention.
31339 2013-01-15 Tom de Vries <tom@codesourcery.com>
31342 * optabs.c (widen_operand): Use gen_lowpart instead of gen_rtx_SUBREG.
31345 2013-01-15 Vladimir Makarov <vmakarov@redhat.com>
31347 PR rtl-optimization/55153
31348 * sched-deps.c (sched_analyze_2): Add pending reads for prefetch.
31350 2013-01-15 Martin Jambor <mjambor@suse.cz>
31352 PR tree-optimization/55920
31353 * tree-sra.c (analyze_access_subtree): Do not mark non-removable
31354 accesses as grp_to_be_debug_replaced.
31356 2013-01-15 Jakub Jelinek <jakub@redhat.com>
31358 PR tree-optimization/55920
31359 * tree-sra.c (sra_modify_assign): If for lacc->grp_to_be_debug_replaced
31360 there is non-useless type conversion needed from debug rhs to lhs,
31361 use build_debug_ref_for_model and/or VIEW_CONVERT_EXPR.
31363 2013-01-15 Joseph Myers <joseph@codesourcery.com>
31364 Mikael Pettersson <mikpe@it.uu.se>
31367 * config/arm/arm.h (ADDR_VEC_ALIGN): Align SImode jump tables for
31369 (ASM_OUTPUT_CASE_LABEL): Remove.
31370 (ASM_OUTPUT_BEFORE_CASE_LABEL): Define to empty.
31371 * final.c (shorten_branches): Update alignment of labels before
31372 jump tables if CASE_VECTOR_SHORTEN_MODE.
31374 2013-01-15 Richard Biener <rguenther@suse.de>
31377 * system.h: Do not include gmp.h for building host tools.
31379 2013-01-15 Richard Biener <rguenther@suse.de>
31381 PR middle-end/55882
31382 * emit-rtl.c (set_mem_attributes_minus_bitpos): Correctly
31383 account for bitpos when computing alignment.
31385 2013-01-15 Vladimir Yakovlev <vladimir.b.yakovlev@intel.com>
31387 * config/i386/i386-c.c (ix86_target_macros_internal): New case.
31388 (ix86_target_macros_internal): Likewise.
31390 * config/i386/i386.c (m_CORE2I7): Removed.
31391 (m_CORE_HASWELL): New macro.
31392 (m_CORE_ALL): Likewise.
31393 (initial_ix86_tune_features): m_CORE2I7 is replaced by m_CORE_ALL.
31394 (initial_ix86_arch_features): Likewise.
31395 (processor_target_table): Initializations for Core avx2.
31396 (cpu_names): New names "core-avx2".
31397 (ix86_option_override_internal): Changed PROCESSOR_COREI7 by
31398 PROCESSOR_CORE_HASWELL.
31399 (ix86_issue_rate): New case.
31400 (ia32_multipass_dfa_lookahead): Likewise.
31401 (ix86_sched_init_global): Likewise.
31403 * config/i386/i386.h (TARGET_HASWELL): New macro.
31404 (target_cpu_default): New TARGET_CPU_DEFAULT_haswell.
31405 (processor_type): New PROCESSOR_HASWELL.
31407 2013-01-15 Jakub Jelinek <jakub@redhat.com>
31409 PR tree-optimization/55955
31410 * tree-vect-loop.c (vectorizable_reduction): Give up early on
31411 *SHIFT_EXPR and *ROTATE_EXPR codes.
31413 PR tree-optimization/48766
31414 * opts.c (common_handle_option): For -fwrapv disable -ftrapv, for
31415 -ftrapv disable -fwrapv.
31417 2013-01-14 Georg-Johann Lay <avr@gjlay.de>
31420 * config/avr/avr-c.c (avr_cpu_cpp_builtins): Define __FLASH
31421 etc. to 1 and not to __flash.
31422 Use LL suffix for __INT24_MAX__ with -mint8.
31423 Use ULL suffix for __UINT24_MAX__ with -mint8.
31425 2013-01-14 Georg-Johann Lay <avr@gjlay.de>
31427 * config/avr/avr-arch.h
31428 (struct base_arch_s): Use typedef avr_arch_t instead.
31429 (struct arch_info_s): Use typedef avr_arch_info_t instead.
31430 (struct mcu_type_s): Use typedef avr_mcu_t instead.
31431 * config/avr/avr.c: Same.
31432 * config/avr/avr-devices.c: Same.
31433 * config/avr/driver-avr.c: Same.
31434 * config/avr/gen-avr-mmcu-texi.c: Same.
31435 * config/avr/avr-mcus.def: Adjust comment.
31437 2013-01-14 Tejas Belagod <tejas.belagod@arm.com>
31439 * config/aarch64/aarch64-simd.md (*aarch64_simd_ld1r<mode>): New.
31440 * config/aarch64/iterators.md (VALLDI): New.
31442 2013-01-14 Uros Bizjak <ubizjak@gmail.com>
31443 Andi Kleen <ak@linux.intel.com>
31446 * config/i386/sync.md (atomic_store<mode>_1): New pattern.
31447 (atomic_store<mode>): Call atomic_store<mode>_1 for IX86_HLE_RELEASE
31450 2013-01-14 Georg-Johann Lay <avr@gjlay.de>
31452 * config/avr/avr-stdint.h: Remove trailing blanks.
31453 * config/avr/avr-log.h: Same.
31454 * config/avr/avr-arch.h: Same.
31455 * config/avr/avr-devices.c: Same.
31456 * config/avr/avr-dimode.md: Same.
31457 * config/avr/predicates.md: Same.
31458 * config/avr/avr-c.c: Same. And fix typo.
31460 * config/avr/avr-protos.h: Same. And:
31461 (function_arg_regno_p): Rename to avr_function_arg_regno_p.
31462 (init_cumulative_args): Rename to avr_init_cumulative_args.
31463 (expand_prologue): Rename to avr_expand_prologue.
31464 (expand_epilogue): Rename to avr_expand_epilogue.
31465 (adjust_insn_length): Rename to avr_adjust_insn_length.
31466 (notice_update_cc): Rename to avr_notice_update_cc.
31467 (final_prescan_insn): Rename to avr_final_prescan_insn.
31468 * config/avr/avr.c: Same.
31469 * config/avr/avr.h: Same.
31470 * config/avr/avr.md: Remove trailing blanks.
31471 (prologue): Use avr_expand_prologue.
31472 (epilogue, sibcall_epilogue): Use avr_expand_epilogue.
31474 2013-01-14 Richard Biener <rguenther@suse.de>
31476 * tree-cfg.c (verify_expr_location, verify_expr_location_1,
31477 verify_location, collect_subblocks): New functions.
31478 (verify_gimple_in_cfg): Verify that locations only reference
31479 BLOCKs in the functions BLOCK tree.
31481 2013-01-14 Richard Biener <rguenther@suse.de>
31483 * tree-cfgcleanup.c (remove_forwarder_block): Unshare propagated
31485 * graphite-sese-to-poly.c (insert_out_of_ssa_copy): Properly
31487 (insert_out_of_ssa_copy_on_edge): Likewise.
31488 (rewrite_close_phi_out_of_ssa): Likewise.
31489 * tree-ssa.c (insert_debug_temp_for_var_def): Properly unshare
31491 * tree-ssa-pre.c (insert_into_preds_of_block): Properly unshare
31492 propagated constants.
31493 * tree-cfg.c (tree_node_can_be_shared): Handled component-refs
31496 2013-01-14 Georg-Johann Lay <avr@gjlay.de>
31498 * config/avr/avr-modes.def: Add GPL copyright notice.
31500 2013-01-13 Uros Bizjak <ubizjak@gmail.com>
31502 * config/i386/sync.md (mem_thread_fence): Mask operands[0] with
31503 MEMMODEL_MASK to determine memory model.
31504 (atomic_store<mode>): Ditto from operands[2].
31505 * config/i386/i386.c (ix86_memmodel_check): Declare "strong" as bool.
31507 2013-01-13 Jakub Jelinek <jakub@redhat.com>
31510 * gimple-fold.c (get_symbol_constant_value): Call unshare_expr.
31511 (fold_gimple_assign): Don't call unshare_expr here.
31512 (fold_ctor_reference): Call unshare_expr.
31514 2013-01-13 Terry Guo <terry.guo@arm.com>
31516 * Makefile.in (s-mlib): New argument MULTILIB_REUSE.
31517 * doc/fragments.texi: Document MULTILIB_REUSE.
31518 * gcc.c (multilib_reuse): New internal spec.
31519 (set_multilib_dir): Also search multilib from multilib_reuse.
31520 * genmultilib (tmpmultilib3): Refactor code.
31521 (tmpmultilib4): Ditto.
31522 (multilib_reuse): New multilib argument.
31524 2013-01-13 Richard Sandiford <rdsandiford@googlemail.com>
31526 * Makefile.in: Update copyright.
31528 2013-01-12 Tom de Vries <tom@codesourcery.com>
31530 PR middle-end/55890
31531 * calls.c (expand_call): Check if arg_nr is valid.
31533 2013-01-11 Michael Meissner <meissner@linux.vnet.ibm.com>
31535 * doc/extend.texi (X86 Built-in Functions): Add whitespace in
31536 __builtin_ia32_paddb256 and __builtin_ia32_pavgb256
31537 documentation. Add missing '__' in front of
31538 __builtin_ia32_packssdw256.
31540 2013-01-11 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
31543 * config/s390/s390.c (s390_preferred_reload_class): Do not return
31544 NO_REGS for larl operands.
31545 (s390_reload_larl_operand): Use s390_load_address instead of
31548 2013-01-11 Richard Biener <rguenther@suse.de>
31550 * tree-cfg.c (verify_node_sharing_1): Split out from ...
31551 (verify_node_sharing): ... here.
31552 (verify_gimple_in_cfg): Use verify_node_sharing_1 for walk_tree.
31554 2013-01-11 Eric Botcazou <ebotcazou@adacore.com>
31556 * configure.ac (Tree checking): Set TREECHECKING to yes if enabled.
31557 Substitute TREECHECKING.
31558 * configure: Regenerate.
31559 * Makefile.in (TREECHECKING): New.
31561 2013-01-11 Richard Guenther <rguenther@suse.de>
31563 PR tree-optimization/44061
31564 * tree-vrp.c (extract_range_basic): Compute zero as
31565 value-range for __builtin_constant_p of function parameters.
31567 2013-01-10 Richard Sandiford <rdsandiford@googlemail.com>
31569 Update copyright years.
31571 2013-01-10 Vladimir Makarov <vmakarov@redhat.com>
31573 PR rtl-optimization/55672
31574 * lra-eliminations.c (mark_not_eliminable): Permit addition with
31575 const to be eliminable.
31577 2013-01-10 David Edelsohn <dje.gcc@gmail.com>
31579 * configure.ac (HAVE_AS_TLS): Add check for powerpc-ibm-aix.
31580 * configure: Regenerate.
31582 2013-01-10 Richard Biener <rguenther@suse.de>
31584 * builtins.c (expand_builtin_init_trampoline): Use set_mem_attributes.
31586 2013-01-10 Richard Biener <rguenther@suse.de>
31589 * tree-into-ssa.c (rewrite_add_phi_arguments): Do not set
31590 locations for virtual PHI arguments.
31591 (rewrite_update_phi_arguments): Likewise.
31593 2013-01-10 Joel Sherrill <joel.sherrill@OARcorp.com>
31595 * config/v850/rtems.h (ASM_SPEC): Pass -m8byte-align and -mgcc-abi
31598 2013-01-10 Jakub Jelinek <jakub@redhat.com>
31600 PR tree-optimization/55921
31601 * tree-complex.c (expand_complex_asm): New function.
31602 (expand_complex_operations_1): Call it for GIMPLE_ASM.
31604 2013-01-10 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
31607 * config/s390/s390.c (s390_symref_operand_p)
31608 (s390_loadrelative_operand_p): Merge the two functions.
31609 (s390_check_qrst_address, print_operand_address): Add parameters
31610 to s390_loadrelative_operand_p invokation.
31611 (s390_check_symref_alignment): Use s390_loadrelative_operand_p.
31612 (s390_reload_larl_operand, s390_secondary_reload): Use
31613 s390_loadrelative_operand_p instead of s390_symref_operand_p.
31614 (legitimize_pic_address): Handle @GOTENT and @PLT + addend.
31616 2013-01-09 Mike Stump <mikestump@comcast.net>
31618 * dse.c (record_store): Remove unnecessary assert.
31620 2013-01-09 Jan Hubicka <jh@suse.cz>
31622 PR tree-optimization/55569
31623 * cfgloopmanip.c (scale_loop_profile): Make ITERATION_BOUND gcov_type.
31624 * cfgloop.h (scale_loop_profile): Likewise.
31626 2013-01-09 Jan Hubicka <jh@suse.cz>
31629 * ipa-inline.c (ipa_inline): Remove extern inlines and virtual
31631 * cgraphclones.c (cgraph_clone_node): Cpoy also LTO file data.
31633 2013-01-09 Richard Sandiford <rdsandiford@googlemail.com>
31635 PR middle-end/55114
31636 * expr.h (maybe_emit_group_store): Declare.
31637 * expr.c (maybe_emit_group_store): New function.
31638 * builtins.c (expand_builtin_int_roundingfn): Call it.
31639 (expand_builtin_int_roundingfn_2): Likewise.
31641 2013-01-09 Vladimir Makarov <vmakarov@redhat.com>
31643 PR rtl-optimization/55829
31644 * lra-constraints.c (match_reload): Add code for absent output.
31645 (curr_insn_transform): Add code for reloads of matched inputs
31648 2013-01-09 Uros Bizjak <ubizjak@gmail.com>
31650 * config/i386/sse.md (*vec_interleave_highv2df): Change mode
31651 attribute of movddup insn to DF.
31652 (*vec_interleave_lowv2df): Ditto.
31653 (vec_dupv2df): Ditto.
31655 2013-01-09 Jan Hubicka <jh@suse.cz>
31657 PR tree-optimiation/55875
31658 * tree-ssa-loop-niter.c (number_of_iterations_cond): Add
31659 EVERY_ITERATION parameter.
31660 (number_of_iterations_exit): Check if exit is executed every iteration.
31661 (idx_infer_loop_bounds): Similarly here.
31662 (n_of_executions_at_most): Simplify
31663 to only test for cases where statement is dominated by the
31664 particular bound; handle correctly the "postdominance" test.
31665 (scev_probably_wraps_p): Use max loop iterations info
31666 as a global bound first.
31668 2013-01-09 Nguyen Duy Dat <dat.nguyen.yn@rvc.renesas.com>
31669 Nick Clifton <nickc@redhat.com>
31671 * config/v850/v850.md (cbranchsf4): New pattern.
31672 (cstoresf4): New pattern.
31673 (cbranchdf4): New pattern.
31674 (cstoredf4): New pattern.
31675 (movsicc): Disallow floating point comparisons.
31676 (cmpsf_le_insn): Fix order of operators.
31677 (cmpsf_lt_insn): Likewise.
31678 (cmpsf_eq_insn): Likewise.
31679 (cmpdf_le_insn): Likewise.
31680 (cmpdf_lt_insn): Likewise.
31681 (cmpdf_eq_insn): Likewise.
31682 (cmpsf_ge_insn): Use LE comparison.
31683 (cmpdf_ge_insn): Likewise.
31684 (cmpsf_gt_insn): Use LT comparison.
31685 (cmpdf_gt_insn): Likewise.
31686 (cmpsf_ne_insn): Delete pattern.
31687 (cmpdf_ne_insn): Delete pattern.
31688 * config/v850/v850.c (v850_gen_float_compare): Use
31689 gen_cmpdf_eq_insn for NE comparison.
31690 (v850_float_z_comparison_operator)
31691 (v850_float_nz_comparison_operator): Move from here ...
31692 * config/v850/predicates.md: ... to here. Move GT and GE
31693 comparisons into v850_float_z_comparison_operator.
31694 * config/v850/v850-protos.h (v850_float_z_comparison_operator):
31696 (v850_float_nz_comparison_operator): Likewise.
31698 2013-01-09 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
31700 * config/pa/pa.c (pa_emit_move_sequence): Replace calls to gen_insv
31701 with calls to gen_insvsi/gen_insvdi.
31703 2013-01-09 Venkataramanan Kumar <venkataramanan.kumar@amd.com>
31705 * config/i386/i386.c (initial_ix86_tune_features): Set up
31706 X86_TUNE_AVX128_OPTIMAL for m_BTVER2.
31708 2013-01-09 Steven Bosscher <steven@gcc.gnu.org>
31709 Jakub Jelinek <jakub@redhat.com>
31711 PR tree-optimization/48189
31712 * predict.c (predict_loops): If max is 0, don't call compare_tree_int.
31713 If nitercst is 0, don't predict the exit edge.
31715 2013-01-08 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
31717 * config/aarch64/aarch64.c (aarch64_print_operand): Replace %r
31718 in asm_fprintf with reg_names.
31719 (aarch64_print_operand_address): Likewise.
31720 (aarch64_return_addr): Likewise.
31721 * config/aarch64/aarch64.h (ASM_FPRINTF_EXTENSIONS): Remove.
31723 2013-01-08 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
31725 * config/pa/pa.h (VAL_U6_BITS_P): Define.
31726 (INT_U6_BITS): Likewise.
31727 * config/pa/predicates.md (uint6_operand): New predicate.
31728 (shift5_operand, shift6_operand): Likewise.
31729 * config/pa/pa.md (lshrsi3, rotrsi3): Use shift5_operand instead of
31731 (lshrdi3): Use shift6_operand.
31732 (shrpsi4, shrpdi4): New insn patterns.
31733 (extzv): Delete expander.
31734 (extzvsi, extzvdi): New expanders. Use uint5_operand and uint6_operand
31735 predicates in unamed zero extract patterns. Tighten common constraint.
31736 (extv): Delete expander.
31737 (extvsi, extvdi): New expanders. Use uint5_operand and uint6_operand
31738 predicates in unamed sign extract patterns. Tighten common constraint.
31739 (insv): Delete expander.
31740 (insvsi, insvdi): New expanders. Use uint5_operand and uint6_operand
31741 predicates in unamed insert patterns. Tighten common constraint.
31742 Change uint32_operand predicate to uint6_operand predicate in unamed
31743 DImode pattern to insert constant values of type 1...1xxxx.
31745 2013-01-04 Jan Hubicka <jh@suse.cz>
31747 PR tree-optimization/55823
31748 * ipa-prop.c (update_indirect_edges_after_inlining): Fix ordering
31751 2013-01-08 Jakub Jelinek <jakub@redhat.com>
31752 Uros Bizjak <ubizjak@gmail.com>
31754 PR rtl-optimization/55845
31755 * df-problems.c (can_move_insns_across): Stop scanning at
31756 volatile_insn_p source instruction or give up if
31757 across_from .. across_to range contains any volatile_insn_p
31760 2013-01-08 Tejas Belagod <tejas.belagod@arm.com>
31762 * config/aarch64/aarch64-simd.md (vec_init<mode>): New.
31763 * config/aarch64/aarch64-protos.h (aarch64_expand_vector_init):
31765 * config/aarch64/aarch64.c (aarch64_simd_dup_constant,
31766 aarch64_simd_make_constant, aarch64_expand_vector_init): New.
31768 2013-01-08 Jakub Jelinek <jakub@redhat.com>
31771 * asan.c (asan_clear_shadow): New function.
31772 (asan_emit_stack_protection): Use it.
31774 2013-01-08 Tejas Belagod <tejas.belagod@arm.com>
31776 * config/aarch64/aarch64-simd.md (aarch64_simd_vec_<su>mult_lo_<mode>,
31777 aarch64_simd_vec_<su>mult_hi_<mode>): Separate instruction and operand
31778 with tab instead of space.
31780 2013-01-08 Nick Clifton <nickc@redhat.com>
31782 * config/rl78/rl78.c (rl78_expand_prologue): Always select
31783 register bank 0 at the start of an interrupt handler.
31784 * config/rl78/rl78.md (mulsi3_g13): Correct values for MDBL and
31787 2013-01-08 James Greenhalgh <james.greenhalgh@arm.com>
31789 * config/aarch64/aarch64-simd.md
31790 (aarch64_simd_bsl<mode>_internal): Add floating-point modes.
31791 (aarch64_simd_bsl): Likewise.
31792 (aarch64_vcond_internal<mode>): Likewise.
31793 (vcond<mode><mode>): Likewise.
31794 (aarch64_cm<cmp><mode>): Fix constraints, add new modes.
31795 * config/aarch64/iterators.md (V_cmp_result): Add V2DF.
31797 2013-01-08 James Greenhalgh <james.greenhalgh@arm.com>
31799 * config/aarch64/aarch64-builtins.c
31800 (aarch64_builtin_vectorized_function): Handle sqrt, sqrtf.
31802 2013-01-08 Martin Jambor <mjambor@suse.cz>
31805 * tree-sra.c (analyze_access_subtree): Return true also after
31806 potentially creating a debug-only replacement.
31808 2013-01-08 Jakub Jelinek <jakub@redhat.com>
31810 PR middle-end/55890
31811 * tree-ssa-ccp.c (evaluate_stmt): Use gimple_call_builtin_p.
31813 PR tree-optimization/54120
31814 * tree-vrp.c (range_fits_type_p): Don't allow
31815 src_precision < precision from signed vr to unsigned_p
31816 if vr->min or vr->max is negative.
31817 (simplify_float_conversion_using_ranges): Test can_float_p
31818 against CODE_FOR_nothing.
31820 2013-01-08 Jakub Jelinek <jakub@redhat.com>
31821 Richard Biener <rguenther@suse.de>
31823 PR middle-end/55851
31824 * fold-const.c (int_binop_types_match_p): Allow all INTEGRAL_TYPE_P
31825 types instead of just INTEGER_TYPE types.
31827 2013-01-07 Mark Kettenis <kettenis@openbsd.org>
31829 * config/i386/openbsdelf.h (LIBGCC2_HAS_TF_MODE, LIBGCC2_TF_CEXT,
31832 2013-01-07 Steve Ellcey <sellcey@mips.com>
31835 * config/mips/mips.opt: Change mad to mmad to match documentation.
31837 2013-01-07 Georg-Johann Lay <avr@gjlay.de>
31840 * doc/extend.texi (AVR Named Address Spaces): __memx goes into
31841 .progmemx.data now.
31843 2013-01-07 Georg-Johann Lay <avr@gjlay.de>
31846 * config/avr/avr.h (ADDR_SPACE_COUNT): New enum.
31847 (avr_addrspace_t): Add .section_name field.
31848 * config/avr/avr.c (progmem_section): Use ADDR_SPACE_COUNT as
31850 (avr_addrspace): Same. Initialize .section_name. Remove last
31851 NULL entry. Put __memx into .progmemx.data.
31852 (progmem_section_prefix): Remove.
31853 (avr_asm_init_sections): No need to initialize progmem_section.
31854 (avr_asm_named_section): Use avr_addrspace[].section_name to get
31855 section name prefix.
31856 (avr_asm_select_section): Ditto. And use get_unnamed_section to
31857 retrieve the progmem section.
31858 * avr-c.c (avr_cpu_cpp_builtins): Use ADDR_SPACE_COUNT as loop
31859 boundary to run over avr_addrspace[].
31860 (avr_register_target_pragmas): Ditto.
31862 2013-01-06 Jakub Jelinek <jakub@redhat.com>
31864 * varasm.c (output_constant_def_contents): For asan_protect_global
31865 protected strings, adjust DECL_ALIGN if needed, before testing for
31867 (place_block_symbol): Adjust size for asan protected STRING_CSTs if
31868 TREE_CONSTANT_POOL_ADDRESS_P. Increase alignment for asan protected
31870 (output_object_block): For asan protected decls, emit asan padding
31871 after their contents.
31872 * asan.c (asan_protect_global): Don't check TREE_ASM_WRITTEN here.
31873 (asan_finish_file): Test it here instead.
31875 2013-01-07 Nick Clifton <nickc@redhat.com>
31876 Matthias Klose <doko@debian.org>
31877 Doug Kwan <dougkwan@google.com>
31878 H.J. Lu <hongjiu.lu@intel.com>
31881 * collect2.c (main): Support -fuse-ld=bfd and -fuse-ld=gold.
31883 * common.opt: Add fuse-ld=bfd and fuse-ld=gold.
31885 * gcc.c (LINK_COMMAND_SPEC): Pass -fuse-ld=* to collect2.
31887 * opts.c (comman_handle_option): Ignore -fuse-ld=bfd and -fuse-ld=gold.
31889 * doc/invoke.texi: Document -fuse-ld=bfd and -fuse-ld=gold.
31891 2013-01-07 Georg-Johann Lay <avr@gjlay.de>
31894 * doc/install.texi (Cross-Compiler-Specific Options): Document
31897 2013-01-07 Tejas Belagod <tejas.belagod@arm.com>
31899 * config/aarch64/arm_neon.h (vmovn_high_is16, vmovn_high_s32,
31900 vmovn_high_s64, vmovn_high_u16, vmovn_high_u32, vmovn_high_u64,
31901 vqmovn_high_s16, vqmovn_high_s32, vqmovn_high_s64, vqmovn_high_u16,
31902 vqmovn_high_u32, vqmovn_high_u64, vqmovun_high_s16, vqmovun_high_s32,
31903 vqmovun_high_s64): Fix source operand number and update copyright.
31905 2013-01-07 Richard Biener <rguenther@suse.de>
31907 PR middle-end/55890
31908 * gimple.h (gimple_call_builtin_p): New overload.
31909 * gimple.c (validate_call): New function.
31910 (gimple_call_builtin_p): Likewise.
31911 * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
31912 Use gimple_call_builtin_p.
31913 (find_func_clobbers): Likewise.
31914 * tree-ssa-strlen.c (adjust_last_stmt): Likewise.
31915 (strlen_optimize_stmt): Likewise.
31917 2013-01-07 James Greenhalgh <james.greenhalgh@arm.com>
31919 * config/aarch64/arm_neon.h (vld1_dup_*): Make argument const.
31920 (vld1q_dup_*): Likewise.
31921 (vld1_*): Likewise.
31922 (vld1q_*): Likewise.
31923 (vld1_lane_*): Likewise.
31924 (vld1q_lane_*): Likewise.
31926 2013-01-07 Richard Biener <rguenther@suse.de>
31928 * lto-streamer.h (LTO_minor_version): Bump to 2.
31930 2013-01-07 James Greenhalgh <james.greenhalgh@arm.com>
31932 * config/aarch64/aarch64-protos.h
31933 (aarch64_const_double_zero_rtx_p): Rename to...
31934 (aarch64_float_const_zero_rtx_p): ...this.
31935 (aarch64_float_const_representable_p): New.
31936 (aarch64_output_simd_mov_immediate): Likewise.
31937 * config/aarch64/aarch64-simd.md (*aarch64_simd_mov<mode>): Refactor
31938 move immediate case.
31939 * config/aarch64/aarch64.c
31940 (aarch64_const_double_zero_rtx_p): Rename to...
31941 (aarch64_float_const_zero_rtx_p): ...this.
31942 (aarch64_print_operand): Allow printing of new constants.
31943 (aarch64_valid_floating_const): New.
31944 (aarch64_legitimate_constant_p): Check for valid floating-point
31946 (aarch64_simd_valid_immediate): Likewise.
31947 (aarch64_vect_float_const_representable_p): New.
31948 (aarch64_float_const_representable_p): Likewise.
31949 (aarch64_simd_imm_zero_p): Also allow for floating-point 0.0.
31950 (aarch64_output_simd_mov_immediate): New.
31951 * config/aarch64/aarch64.md (*movsf_aarch64): Add new alternative.
31952 (*movdf_aarch64): Likewise.
31953 * config/aarch64/constraints.md (Ufc): New.
31954 (Y): call aarch64_float_const_zero_rtx.
31955 * config/aarch64/predicates.md (aarch64_fp_compare_operand): New.
31957 2013-01-07 Richard Biener <rguenther@suse.de>
31959 PR tree-optimization/55888
31960 PR tree-optimization/55862
31961 * tree-ssa-pre.c (phi_translate_1): Revert previous change.
31962 (valid_in_sets): Check if a NAME has a leader in AVAIL_OUT,
31963 not if it is contained therein.
31965 2013-01-07 Georg-Johann Lay <avr@gjlay.de>
31967 * config/avr/t-avr: Typo.
31969 2013-01-07 Georg-Johann Lay <avr@gjlay.de>
31972 * config/avr/t-avr: Don't automatically rebuild
31973 $(srcdir)/config/avr/t-multilib
31974 $(srcdir)/config/avr/avr-tables.opt
31975 $(srcdir)/doc/avr-mmcu.texi
31976 (avr-mcus): New phony target to build them on request.
31977 (s-avr-mlib, s-avr-mmcu-texi): Remove.
31978 * avr/avr-mcus.def: Adjust comments.
31980 2013-01-07 Uros Bizjak <ubizjak@gmail.com>
31982 * config/i386/i386.c (DEFAULT_PCC_STRUCT_RETURN): Remove.
31984 2013-01-06 Richard Sandiford <rdsandiford@googlemail.com>
31986 * file-find.c, file-find.h, realmpfr.c: Add FSF as copyright holder.
31988 2013-01-06 Richard Sandiford <rdsandiford@googlemail.com>
31990 * config/tilepro/gen-mul-tables.cc: Put copyright on one line.
31992 2013-01-05 David Edelsohn <dje.gcc@gmail.com>
31994 * config/rs6000/aix53.h (LIB_SPEC): Add -lpthreads when compiling
31995 to generate profiling.
31996 * config/rs6000/aix64.h (LIB_SPEC): Same.
31998 2013-01-04 Andrew Pinski <apinski@cavium.com>
32000 * config/aarch64/aarch64.c (aarch64_fixed_condition_code_regs):
32002 (TARGET_FIXED_CONDITION_CODE_REGS): Define.
32004 2013-01-04 Uros Bizjak <ubizjak@gmail.com>
32006 * config/i386/i386.c (ix86_legitimize_address): Call convert_to_mode
32008 (ix86_expand_move): Ditto.
32009 (ix86_zero_extend_to_Pmode): Ditto.
32010 (ix86_expand_call): Ditto.
32011 (ix86_expand_special_args_builtin): Ditto.
32012 (ix86_expand_builtin): Ditto.
32014 2013-01-04 Richard Biener <rguenther@suse.de>
32016 PR tree-optimization/55862
32017 * tree-ssa-pre.c (phi_translate_1): Valueize SSA names after
32018 translating them through PHI nodes.
32020 2013-01-04 Martin Jambor <mjambor@suse.cz>
32022 PR tree-optimization/55755
32023 * tree-sra.c (sra_modify_assign): Do not check that an access has no
32024 children when trying to avoid producing a VIEW_CONVERT_EXPR.
32026 2013-01-04 Marek Polacek <polacek@redhat.com>
32028 PR middle-end/55859
32029 * opts.c (default_options_optimization): Clarify error message.
32031 2013-01-04 Richard Biener <rguenther@suse.de>
32033 PR middle-end/55863
32034 * fold-const.c (split_tree): Undo -X - 1 to ~X folding for
32037 2013-01-03 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
32040 * config/pa/pa.md (movsi): Revert previous change.
32041 * config/pa/pa.c (pa_legitimate_constant_p): Reject all TLS symbol
32044 2013-01-03 Richard Henderson <rth@redhat.com>
32046 * config/i386/i386.c (ix86_expand_move): Always assign to op1
32047 after eliminating TLS symbols.
32049 2013-01-03 Marc Glisse <marc.glisse@inria.fr>
32052 * graphite-interchange.c (pdr_stride_in_loop): Use gmp_fprintf.
32053 * graphite-poly.c (debug_gmp_value): Likewise.
32055 2013-01-03 Uros Bizjak <ubizjak@gmail.com>
32058 * config/i386/i386-c.c (ix86_target_macros_internal): Depending on
32059 selected code model, define __code_mode_small__, __code_model_medium__,
32060 __code_model_large__, __code_model_32__ or __code_model_kernel__.
32061 * config/i386/cpuid.h (__cpuid, __cpuid_count) [__i386__]: Prefix
32062 xchg temporary register with %k. Declare temporary register as
32064 [__x86_64__]: For medium and large code models, preserve %rbx register.
32066 2013-01-03 Richard Biener <rguenther@suse.de>
32068 * tree-data-ref.c (dump_conflict_function): Use less vertical spacing.
32069 (dump_subscript): Adjust.
32070 (finalize_ddr_dependent): Do not dump redundant info.
32071 (analyze_siv_subscript): Adjust.
32072 (subscript_dependence_tester): Likewise.
32073 (compute_affine_dependence): Likewise.
32075 2013-01-03 Richard Biener <rguenther@suse.de>
32078 2013-01-03 Richard Biener <rguenther@suse.de>
32080 PR tree-optimization/55857
32081 * tree-vect-stmts.c (vectorizable_load): Do not setup
32082 re-alignment for invariant loads.
32084 2013-01-02 Richard Biener <rguenther@suse.de>
32086 * tree-vect-stmts.c (vectorizable_load): When vectorizing an
32087 invariant load do not generate a vector load from the scalar location.
32089 2013-01-03 Richard Biener <rguenther@suse.de>
32091 * tree-vect-loop.c (vect_analyze_loop_form): Clarify reason
32092 for not vectorizing.
32093 * tree-vect-data-refs.c (vect_create_addr_base_for_vector_ref): Do
32094 not build INDIRECT_REFs, call get_name once only.
32095 (vect_create_data_ref_ptr): Likewise. Dump base object kind
32096 based on DR_BASE_OBJECT, not DR_BASE_ADDRESS.
32098 2013-01-03 Richard Biener <rguenther@suse.de>
32100 PR tree-optimization/55857
32101 * tree-vect-stmts.c (vectorizable_load): Do not setup
32102 re-alignment for invariant loads.
32104 2013-01-03 Richard Biener <rguenther@suse.de>
32107 * lto-symtab.c (lto_symtab_merge_decls_1): As last resort, always
32108 prefer a built-in decl.
32110 2013-01-03 Jakub Jelinek <jakub@redhat.com>
32112 * gcc.c (process_command): Update copyright notice dates.
32113 * gcov.c (print_version): Likewise.
32114 * gcov-dump.c (print_version): Likewise.
32116 PR rtl-optimization/55838
32117 * loop-iv.c (iv_number_of_iterations): Call lowpart_subreg on
32118 iv0.step, iv1.step and step.
32120 2013-01-03 Jakub Jelinek <jakub@redhat.com>
32121 Marc Glisse <marc.glisse@inria.fr>
32123 PR tree-optimization/55832
32124 * fold-const.c (fold_binary_loc): For ABS_EXPR<x> >= 0 and
32125 ABS_EXPR<x> < 0 folding use constant_boolean_node instead of
32126 integer_{one,zero}_node.
32128 2013-01-03 Jakub Jelinek <jakub@redhat.com>
32131 * params.def (PARAM_MAX_VARTRACK_REVERSE_OP_SIZE): New param.
32132 * var-tracking.c (reverse_op): Don't add reverse ops to
32133 VALUEs that have already
32134 PARAM_VALUE (PARAM_MAX_VARTRACK_REVERSE_OP_SIZE) or longer locs list.
32136 2013-01-02 Gerald Pfeifer <gerald@pfeifer.com>
32138 * doc/contrib.texi: Note years as release manager for Mark Mitchell.
32140 2013-01-02 Teresa Johnson <tejohnson@google.com>
32142 * dumpfile.c (dump_loc): Print filename with location.
32143 * tree-ssa-loop-ivcanon.c (try_unroll_loop_completely): Use
32144 new location_t parameter to emit complete unroll message with
32145 new dump framework.
32146 (canonicalize_loop_induction_variables): Compute loops location
32147 and pass to try_unroll_loop_completely.
32148 * loop-unroll.c (report_unroll_peel): New function.
32149 (peel_loops_completely): Use new dump format with location
32150 for main dumpfile message, and invoke report_unroll_peel on success.
32151 (decide_unrolling_and_peeling): Ditto.
32152 (decide_peel_once_rolling): Remove old dumpfile message subsumed
32153 by report_unroll_peel.
32154 (decide_peel_completely): Ditto.
32155 (decide_unroll_constant_iterations): Ditto.
32156 (decide_unroll_runtime_iterations): Ditto.
32157 (decide_peel_simple): Ditto.
32158 (decide_unroll_stupid): Ditto.
32159 * cfgloop.c (get_loop_location): New function.
32160 * cfgloop.h (get_loop_location): Declare.
32162 2013-01-02 Sriraman Tallam <tmsriram@google.com>
32164 * config/i386/i386.c (fold_builtin_cpu): Remove unnecessary checks for
32167 2013-01-02 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
32169 PR middle-end/55198
32170 * expr.c (expand_expr_real_1): Don't use bitfield extraction for non
32171 BLKmode objects when EXPAND_MEMORY is specified.
32173 2013-01-02 Sriraman Tallam <tmsriram@google.com>
32175 * config/i386/i386.c (ix86_get_function_versions_dispatcher): Fix bug
32177 (fold_builtin_cpu): Do not share cpu model decls across statements.
32179 2013-01-02 Jason Merrill <jason@redhat.com>
32182 * tree.c (build_array_type_1): Revert earlier change.
32184 2013-01-02 Yufeng Zhang <yufeng.zhang@arm.com>
32186 * config/aarch64/aarch64-cores.def: Add entries for "cortex-a53" and
32188 * config/aarch64/aarch64-tune.md: Re-generate.
32190 2013-01-02 Richard Biener <rguenther@suse.de>
32192 * tree-vect-stmts.c (vectorizable_load): When vectorizing an
32193 invariant load do not generate a vector load from the scalar location.
32195 2013-01-02 Richard Biener <rguenther@suse.de>
32198 * configure.ac: Add $GMPINC to CFLAGS/CXXFLAGS.
32199 * configure: Regenerate.
32201 2013-01-02 Richard Sandiford <rdsandiford@googlemail.com>
32203 * builtins.c (expand_builtin_mathfn, expand_builtin_mathfn_2)
32204 (expand_builtin_mathfn_ternary, expand_builtin_mathfn_3)
32205 (expand_builtin_int_roundingfn_2): Keep the original target around
32206 for the fallback case.
32208 2013-01-02 Richard Sandiford <rdsandiford@googlemail.com>
32210 * tree-vrp.c (range_fits_type_p): Require the MSB of the double_int
32211 to be clear for sign changes.
32213 2013-01-01 Jan Hubicka <jh@suse.cz>
32215 * ipa-inline-analysis.c: Fix formatting.
32217 2013-01-01 Jakub Jelinek <jakub@redhat.com>
32219 PR tree-optimization/55831
32220 * tree-vect-loop.c (get_initial_def_for_induction): Use
32221 gsi_after_labels instead of gsi_start_bb.
32223 Copyright (C) 2013 Free Software Foundation, Inc.
32225 Copying and distribution of this file, with or without modification,
32226 are permitted in any medium without royalty provided the copyright
32227 notice and this notice are preserved.