1 2013-11-27 Richard Biener <rguenther@suse.de>
3 PR tree-optimization/59288
4 * tree-vect-loop.c (get_initial_def_for_induction): Do not
5 re-analyze the PHI but use STMT_VINFO_LOOP_PHI_EVOLUTION_PART.
7 2013-11-27 Marek Polacek <polacek@redhat.com>
9 * ubsan.c (ubsan_type_descriptor): If varpool_get_node returns NULL
10 for a decl, recreate that decl. Save into the hash table VAR_DECLs
11 rather than ADDR_EXPRs.
13 2013-11-27 Alexander Ivchenko <alexander.ivchenko@intel.com>
15 * config/ia64/hpux.h (TARGET_LIBC_HAS_FUNCTION): Fix typo.
17 2013-11-26 David Malcolm <dmalcolm@redhat.com>
19 * gengtype.c (struct seen_tag): New.
20 (already_seen_tag): New.
21 (mark_tag_as_seen): New.
22 (walk_subclasses): Support having multiple subclasses using the
23 same tag by tracking which tags have already been seen, and using
24 this to avoid adding duplicate cases to the "switch" statement.
25 The call to already_seen_tag introduces an O(N^2) when running
26 gengtype on N, the number of tags, due to the repeated linear
27 search, but currently max(N) is relatively small (the number of
28 GSS codes, which is 26).
29 (walk_type): Pass in a seen_tag for use by the walk_subclasses
32 * gimple.def (GIMPLE_OMP_ATOMIC_STORE, GIMPLE_OMP_RETURN): Rename
33 underlying GSS values for these codes (from GSS_OMP_ATOMIC_STORE to
34 GSS_OMP_ATOMIC_STORE_LAYOUT) to make clear that although
35 GIMPLE_OMP_RETURN happens to share the data layout of
36 GIMPLE_OMP_ATOMIC_STORE, they are not otherwise related.
37 (GIMPLE_OMP_PARALLEL, GIMPLE_OMP_TARGET): Likewise, rename
38 underlying GSS value from GSS_OMP_PARALLEL to
39 GSS_OMP_PARALLEL_LAYOUT to make clear that these gimple codes are
40 not directly related; they merely share in-memory layout.
41 (GIMPLE_OMP_SINGLE, GIMPLE_OMP_TEAMS): Likewise, rename GSS values
42 for these two codes from GSS_OMP_SINGLE to GSS_OMP_SINGLE_LAYOUT.
44 * gsstruct.def (GSS_OMP_PARALLEL, gimple_statement_omp_parallel):
46 (GSS_OMP_PARALLEL_LAYOUT, gimple_statement_omp_parallel_layout):
48 (GSS_OMP_SINGLE, gimple_statement_omp_single): Rename to...
49 (GSS_OMP_SINGLE_LAYOUT, gimple_statement_omp_single_layout):
51 (GSS_OMP_ATOMIC_STORE, gimple_statement_omp_atomic_store): Rename
53 (GSS_OMP_ATOMIC_STORE_LAYOUT, gimple_statement_omp_atomic_store):
56 * gimple.h (gimple_statement_resx): New subclass of
57 gimple_statement_eh_ctrl, with the invariant that
58 stmt->code == GIMPLE_RESX.
59 (gimple_statement_eh_dispatch): New subclass of
60 gimple_statement_eh_ctrl, with the invariant that
61 stmt->code == GIMPLE_EH_DISPATH.
63 (gimple_statement_omp_parallel): The existing class expressed
64 a layout (GSS_OMP_PARALLEL), but the codes with that layout
65 are not all related, so it makes more sense for this class to
66 express a *code* (GIMPLE_OMP_PARALLEL). GSS_OMP_PARALLEL has
67 been renamed to GSS_OMP_PARALLEL_LAYOUT to express this, so
68 rename the existing gimple_statement_omp_parallel class to...
69 (gimple_statement_omp_parallel_layout): ...this, expressing
70 a statement of structure layout GSS_OMP_PARALLEL_LAYOUT.
71 (gimple_statement_omp_taskreg): New subclass of
72 gimple_statement_omp_parallel_layout, expressing the invariant
73 that the code is one of GIMPLE_OMP_PARALLEL or GIMPLE_OMP_TASK,
74 as used by the various gimple_omp_taskreg_ accessors.
75 (gimple_statement_omp_parallel): Reintroduce this class, this time
76 as a subclass of gimple_statement_omp_taskreg to express the
77 invariant stmt->code == GIMPLE_OMP_PARALLEL.
78 (gimple_statement_omp_target) New class, subclassing
79 gimple_statement_omp_parallel_layout, to express the invariant
80 stmt->code == GIMPLE_OMP_TARGET.
81 (gimple_statement_omp_task): Update to inherit from
82 gimple_statement_omp_taskreg rather than
83 gimple_statement_omp_parallel.
85 (gimple_statement_omp_single): Rename to...
86 (gimple_statement_omp_single_layout): ...this, expressing the
87 invariant that the layout is GSS_OMP_SINGLE_LAYOUT.
88 (gimple_statement_omp_single): ...and reintroduce this name as
89 a subclass of gimple_statement_omp_single_layout, expressing
90 the invariant that code == GIMPLE_OMP_SINGLE.
91 (gimple_statement_omp_teams): New class, subclassing
92 gimple_statement_omp_single_layout, for the code GIMPLE_OMP_TEAMS.
94 (gimple_statement_omp_atomic_store): Rename to...
95 (gimple_statement_omp_atomic_store_layout): ...this, expressing
96 the invariant that the layout is GSS_OMP_ATOMIC_STORE_LAYOUT.
97 (gimple_statement_omp_atomic_store): ...and reintroduce this
98 name as a subclass of gimple_statement_omp_atomic_store_layout
99 with code == GIMPLE_OMP_ATOMIC_STORE.
100 (gimple_statement_omp_return): New class, subclassing
101 gimple_statement_omp_atomic_store_layout for the code
104 (is_a_helper <gimple_statement_eh_ctrl>::test): Delete.
105 (is_a_helper <gimple_statement_resx>::test): New.
106 (is_a_helper <gimple_statement_eh_dispatch>::test): New.
107 (is_a_helper <gimple_statement_omp_atomic_store>::test): Only
108 check for GIMPLE_OMP_ATOMIC_STORE, not for GIMPLE_OMP_RETURN.
109 (is_a_helper <gimple_statement_omp_return>::test): New.
110 (is_a_helper <gimple_statement_omp_taskreg>::test): New.
111 (is_a_helper <gimple_statement_omp_parallel>::test): Only check
112 for GIMPLE_OMP_PARALLEL, not for GIMPLE_OMP_TASK or
114 (is_a_helper <gimple_statement_omp_target>::test): New.
115 (is_a_helper <gimple_statement_omp_single>::test): Only check
116 for GIMPLE_OMP_SINGLE, not for GIMPLE_OMP_TEAMS.
117 (is_a_helper <gimple_statement_omp_teams>::test): New.
119 (is_a_helper <const gimple_statement_eh_ctrl>::test): Delete.
120 (is_a_helper <const gimple_statement_resx>::test): New.
121 (is_a_helper <const gimple_statement_eh_dispatch>::test): New.
122 (is_a_helper <const gimple_statement_omp_atomic_store>::test): Only
123 check for GIMPLE_OMP_ATOMIC_STORE, not for GIMPLE_OMP_RETURN.
124 (is_a_helper <const gimple_statement_omp_return>::test): New.
125 (is_a_helper <const gimple_statement_omp_taskreg>::test): New.
126 (is_a_helper <const gimple_statement_omp_parallel>::test): Only
127 check for GIMPLE_OMP_PARALLEL, not for GIMPLE_OMP_TASK or
129 (is_a_helper <const gimple_statement_omp_target>::test): New.
130 (is_a_helper <const gimple_statement_omp_single>::test): Only
131 check for GIMPLE_OMP_SINGLE, not for GIMPLE_OMP_TEAMS.
132 (is_a_helper <const gimple_statement_omp_teams>::test): New.
134 (gimple_omp_return_set_lhs, gimple_omp_return_lhs,
135 gimple_omp_return_lhs_ptr): Replace bogus downcasts to
136 gimple_statement_omp_atomic_store with downcasts to
137 gimple_statement_omp_return, thus requiring that the code be
139 (gimple_resx_region, gimple_resx_set_region): Replace bogus
140 downcasts to gimple_statement_eh_ctrl with downcasts to
141 gimple_statement_resx, thus requiring that the code be
143 (gimple_eh_dispatch_region, gimple_eh_dispatch_set_region):
144 Replace bogus downcasts to const gimple_statement_eh_ctrl with
145 downcasts to gimple_statement_eh_dispatch, thus requiring that
146 the code be GIMPLE_EH_DISPATCH.
147 (gimple_omp_taskreg_clauses, gimple_omp_taskreg_clauses_ptr)
148 gimple_omp_taskreg_set_clauses, gimple_omp_taskreg_child_fn,
149 gimple_omp_taskreg_child_fn_ptr, gimple_omp_taskreg_set_child_fn,
150 gimple_omp_taskreg_data_arg, gimple_omp_taskreg_data_arg_ptr,
151 gimple_omp_taskreg_set_data_arg): Replace bogus downcasts to
152 gimple_statement_omp_parallel with downcasts to
153 gimple_statement_omp_taskreg, thus requiring that the code be
154 either GIMPLE_OMP_PARALLEL or GIMPLE_OMP_TASK.
155 (gimple_omp_target_clauses, gimple_omp_target_clauses_ptr
156 gimple_omp_target_set_clauses, gimple_omp_target_child_fn
157 gimple_omp_target_child_fn_ptr, gimple_omp_target_set_child_fn
158 gimple_omp_target_data_arg, gimple_omp_target_data_arg_ptr
159 gimple_omp_target_set_data_arg): Replace bogus downcasts to
160 gimple_statement_omp_parallel with downcasts to
161 gimple_statement_omp_target, thus requiring that the code be
163 (gimple_omp_teams_clauses, gimple_omp_teams_clauses_ptr
164 gimple_omp_teams_set_clauses): Replace bogus downcasts to
165 gimple_statement_omp_single with downcasts to
166 gimple_statement_omp_teams, thus requiring that the code be
169 * gimple.c (gimple_build_resx): Fix bogus as_a<> to use
170 gimple_statement_resx.
171 (gimple_build_eh_dispatch): Fix bogus as_a<> to use
172 gimple_statement_eh_dispatch.
174 2013-11-26 Jakub Jelinek <jakub@redhat.com>
176 PR tree-optimization/59014
177 * tree-vrp.c (register_edge_assert_for_1): Don't look
178 through conversions from non-integral types or through
179 narrowing conversions.
182 * config/i386/i386.c (device_alg): Fix up formatting.
183 (ix86_expand_set_or_movmem): Handle max_size < epilogue_size_needed
184 similarly to count && count < epilogue_size_needed. Fix up
186 * builtins.c (determine_block_size): Fix comment typo.
189 * ubsan.c (ubsan_source_location): Don't add any location
190 to ADDR_EXPR in the ctor. Revert 2013-11-22 change.
191 (ubsan_create_data): Strip block info from LOC.
194 * tree-vect-generic.c (optimize_vector_constructor): Don't optimize
195 if there isn't optab handler for the corresponding vector PLUS_EXPR.
197 PR rtl-optimization/59166
198 * ira.c (find_moveable_pseudos): Use DF_REF_REAL_LOC instead of
199 DF_REF_LOC in validate_change call.
200 (split_live_ranges_for_shrink_wrap): Likewise.
203 * omp-low.c (lower_rec_input_clause): For reduction with placeholder
204 of references to constant size types in simd loops, defer emitting
205 initializer for the new_var, emit it later on only if not using
209 * omp-low.c (expand_omp_for_static_chunk): Don't set loop->latch
210 for the inner loop if collapse_bb is non-NULL.
211 (expand_omp_simd): Use cont_bb rather than e->dest as latch.
213 2013-11-26 Bernd Edlinger <bernd.edlinger@hotmail.de>
215 Remove parameter keep_aligning from get_inner_reference.
216 * tree.h (get_inner_reference): Adjust header.
217 * expr.c (get_inner_reference): Remove parameter keep_aligning.
218 (get_bit_range, expand_assignment,
219 expand_expr_addr_expr_1, expand_expr_real_1): Adjust.
220 * asan.c (instrument_derefs): Adjust.
221 * builtins.c (get_object_alignment_2): Adjust. Remove handling of
223 * cfgexpand.c (expand_debug_expr): Adjust.
224 * dbxout.c (dbxout_expand_expr): Adjust.
225 * dwarf2out.c (loc_list_for_address_of_addr_expr_of_indirect_ref,
226 loc_list_from_tree, fortran_common): Adjust.
227 * fold-const.c (optimize_bit_field_compare,
228 decode_field_reference, fold_unary_loc, fold_comparison,
229 split_address_to_core_and_offset): Adjust.
230 * gimple-ssa-strength-reduction.c (slsr_process_ref): Adjust.
231 * simplifx-rtx.c (delegitimize_mem_from_attrs): Adjust.
232 * tree-affine.c (tree_to_aff_combination,
233 get_inner_reference_aff): Adjust.
234 * tree-data-ref.c (split_constant_offset_1,
235 dr_analyze_innermost): Adjust.
236 * tree-vect-data-refs.c (vect_check_gather,
237 vect_analyze_data_refs): Adjust.
238 * tree-scalar-evolution.c (interpret_rhs_expr): Adjust.
239 * tree-ssa-loop-ivopts.c (may_be_unaligned_p,
240 split_address_cost): Adjust.
241 * tsan.c (instrument_expr): Adjust.
242 * config/mips/mips.c (r10k_safe_mem_expr_p): Adjust.
244 2013-11-26 Yufeng Zhang <yufeng.zhang@arm.com>
246 * config/arm/arm.c (arm_legitimize_address): Check xop1 is not
247 a constant immediate before force_reg.
249 2013-11-26 Richard Biener <rguenther@suse.de>
251 PR tree-optimization/59245
252 * tree-vrp.c (set_value_range): Assert that we don't have
253 overflowed constants (but our infinities).
254 (set_value_range_to_value): Drop all overflow flags.
255 (vrp_visit_phi_node): Likewise.
256 (vrp_visit_assignment_or_call): Use set_value_range_to_value
257 to set a constant range.
259 2013-11-26 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
262 * config/arm/arm.md (*zextendsidi_negsi): New pattern.
263 * config/arm/arm.c (arm_new_rtx_costs): Initialise cost correctly
264 for zero_extend case.
266 2013-11-26 H.J. Lu <hongjiu.lu@intel.com>
269 * configure.ac (install_gold_as_default): New. Set to yes for
270 --disable-ld or --enable-gold=default.
271 (gcc_cv_ld_gold_srcdir): New.
272 (gcc_cv_ld): Also check in-tree gold if install_gold_as_default
274 (ORIGINAL_LD_BFD_FOR_TARGET): New AC_SUBST.
275 (ORIGINAL_LD_GOLD_FOR_TARGET): Likewise.
276 * configure: Regenerated.
278 * exec-tool.in (ORIGINAL_LD_BFD_FOR_TARGET): New variable.
279 (ORIGINAL_LD_GOLD_FOR_TARGET): Likewise.
280 (original) [collect-ld && -fuse-ld=bfd]: Set to
281 $ORIGINAL_LD_BFD_FOR_TARGET.
282 (original) [collect-ld && -fuse-ld=gold]: Set to
283 $ORIGINAL_LD_GOLD_FOR_TARGET.
284 (dir) [collect-ld && ../gold/ld-new]: Set to gold.
285 (fast_install) [collect-ld && ../gold/ld-new]: Set to yes.
287 2013-11-26 Terry Guo <terry.guo@arm.com>
289 * config/arm/arm.c (require_pic_register): Handle high pic base
290 register for thumb-1.
291 (arm_load_pic_register): Also initialize high pic base register.
292 * doc/invoke.texi: Update documentation for option -mpic-register.
294 2013-11-26 Oleg Endo <olegendo@gcc.gnu.org>
298 * config/sh/sh.c (max_mov_insn_displacement, disp_addr_displacement):
299 Prefix function names with 'sh_'. Make them non-static.
300 * config/sh/sh-protos.h (sh_disp_addr_displacement,
301 sh_max_mov_insn_displacement): Add declarations.
302 * config/sh/constraints.md (Q): Reject QImode.
303 (Sdd): Use match_code "mem".
304 (Snd): Fix erroneous matching of non-memory operands.
305 * config/sh/predicates.md (short_displacement_mem_operand): New
307 (general_movsrc_operand): Disallow PC relative QImode loads.
308 * config/sh/sh.md (*mov<mode>_reg_reg): Remove it.
309 (*movqi, *movhi): Merge both insns into...
310 (*mov<mode>): ... this new insn. Replace generic 'm' constraints with
311 'Snd' and 'Sdd' constraints. Calculate insn length dynamically based
312 on the operand types.
314 2013-11-26 Joern Rennecke <joern.rennecke@embecosm.com>
316 * config/epiphany/epiphany.c (epiphany_expand_prologue):
317 Remove unused variable save_config.
318 (epiphany_compute_frame_size): Avoid signed/unsigned comparison in
321 2013-11-26 James Greenhalgh <james.greenhalgh@arm.com>
323 * config/aarch64/arm_neon.h (vtbx1_<psu>8): Emulate behaviour
324 using other intrinsics.
325 (vtbx3_<psu>8): Likewise.
327 2013-11-26 James Greenhalgh <james.greenhalgh@arm.com>
329 * config/aarch64/aarch64-builtins.c
330 (aarch64_types_bsl_p_qualifiers): New.
331 (aarch64_types_bsl_s_qualifiers): Likewise.
332 (aarch64_types_bsl_u_qualifiers): Likewise.
333 (TYPES_BSL_P): Likewise.
334 (TYPES_BSL_S): Likewise.
335 (TYPES_BSL_U): Likewise.
336 (BUILTIN_VALLDIF): Likewise.
337 (BUILTIN_VDQQH): Likewise.
338 * config/aarch64/aarch64-simd-builtins.def (simd_bsl): New.
339 * config/aarch64/aarch64-simd.md
340 (aarch64_simd_bsl<mode>_internal): Handle more modes.
341 (aarch64_simd_bsl<mode>): Likewise.
342 * config/aarch64/arm_neon.h
343 (vbsl<q>_<fpsu><8,16,32,64): Implement using builtins.
344 * config/aarch64/iterators.md (VALLDIF): New.
345 (Vbtype): Handle more modes.
347 2013-11-26 James Greenhalgh <james.greenhalgh@arm.com>
349 * config/aarch64/aarch64-builtins.c
350 (aarch64_type_qualifiers): Add qualifier_poly.
351 (aarch64_build_scalar_type): Also build Poly types.
352 (aarch64_build_vector_type): Likewise.
353 (aarch64_build_type): Likewise.
354 (aarch64_build_signed_type): New.
355 (aarch64_build_unsigned_type): Likewise.
356 (aarch64_build_poly_type): Likewise.
357 (aarch64_init_simd_builtins): Also handle Poly types.
359 2013-11-26 James Greenhalgh <james.greenhalgh@arm.com>
361 * config/aarch64/aarch64-builtins.c
362 (VAR1): Use new naming scheme for aarch64_builtins.
363 (aarch64_builtin_vectorized_function): Use new
364 aarch64_builtins names.
366 2013-11-26 Richard Biener <rguenther@suse.de>
368 PR tree-optimization/59287
369 * tree-ssa-structalias.c (get_constraint_for_component_ref):
370 Remove no longer necessary special-casing of union accesses.
372 2013-11-26 Richard Biener <rguenther@suse.de>
374 * pretty-print.c (output_buffer::~output_buffer): Really
377 2013-11-25 Jeff Law <law@redhat.com>
379 * tree-ssa-threadupdate.c (thread_through_all_blocks): Selectively
380 invalidate loop information.
382 2013-11-25 Oleg Endo <olegendo@gcc.gnu.org>
384 * config/sh/sh.md (doloop_end_split): Add missing SI mode.
386 2013-11-25 Oleg Endo <olegendo@gcc.gnu.org>
390 * config/sh/sh_optimize_sett_clrt.cc (struct ccreg_value): Update
392 (sh_optimize_sett_clrt::find_last_ccreg_values): Check stack of
393 previously visited basic blocks before recursing instead of only one
396 2013-11-25 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
398 * config/aarch64/aarch64.c (cortexa53_tuning): New struct.
399 * config/aarch64/aarch64-cores.def (cortex-a53):
400 Use cortexa53 tuning struct.
402 2013-11-25 Andrew Macleod <amacleod@redhat.com>
405 * fold-const.c: Include hash-table.h.
407 2013-11-25 Marek Polacek <polacek@redhat.com>
410 * ubsan.c (ubsan_create_data): Increase the size of the fields array.
412 2013-11-25 Richard Biener <rguenther@suse.de>
414 * tree-dfa.c: Remove unused convert.h include.
416 2013-11-25 Terry Guo <terry.guo@arm.com>
418 * doc/invoke.texi (-mslow-flash-data): Document new option.
419 * config/arm/arm.opt (mslow-flash-data): New option.
420 * config/arm/arm-protos.h (arm_max_const_double_inline_cost): Declare
422 * config/arm/arm.h (TARGET_USE_MOVT): Always true when literal pools
424 (arm_disable_literal_pool): Declare it.
425 * config/arm/arm.c (arm_disable_literal_pool): New variable.
426 (arm_option_override): Handle new option.
427 (thumb2_legitimate_address_p): Don't allow symbol references when
428 literal pools are disabled.
429 (arm_max_const_double_inline_cost): New function.
430 * config/arm/arm.md (types.md): Include it before ...
431 (use_literal_pool): New attribute.
432 (enabled): Use new attribute.
433 (split pattern): Replace symbol+offset with MOVW/MOVT.
435 2013-11-24 Steven Bosscher <steven@gcc.gnu.org>
438 Revert previous commit.
440 2013-11-24 Steven Bosscher <steven@gcc.gnu.org>
442 * jump.c (reset_insn_reg_label_operand_notes): New function,
444 (init_label_info): ... here. Reset LABEL_NUSES in cfglayout mode.
445 * cfgcleanup.c (delete_dead_jump_tables_between): New function,
447 (delete_dead_jumptables): ... here. Handle cfglayout mode.
448 (cleanup_cfg): Delete dead jump tables in cfglayout mode if an
449 expensive CFG cleanup is called for.
450 * cfgrtl.c (fixup_reorder_chain): Remove BARRIERs from fallthru paths.
451 (cfg_layout_finalize): Delete dead jump tables before re-building
453 * ira.c (ira): Rebuild jump labels *after* deleting unreachable
454 basic blocks, not before.
455 * loop-init.c (rtl_loop_done): Call for an expensive CFG cleanup.
457 * modulo-sched.c (sms_schedule): Do not look for BARRIERs in the
458 insns chain of a scheduling extended basic block, they cannot appear
459 there in cfglayout mode.
461 2013-11-24 Tobias Burnus <burnus@net-b.de>
463 * doc/invoke.texi (-fsanitize=leak): Add link to the wiki page.
465 2013-11-24 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
467 * config/rs6000/rs6000.c (rs6000_expand_vec_perm_const_1): Correct
470 2013-11-24 H.J. Lu <hongjiu.lu@intel.com>
472 * graphite-sese-to-poly.c: Don't include extra "expr.h".
474 2013-11-23 Eric Botcazou <ebotcazou@adacore.com>
476 * cilk-common.c (expand_builtin_cilk_detach): Dereference worker.
478 2013-11-23 David Edelson <dje.gcc@gmail.com>
479 Andrew Dixie <andrewd@gentrack.com>
482 * config/rs6000/aix.h (COLLECT_SHARED_INIT_FUNC): Define.
483 (COLLECT_SHARED_FINI_FUNC): Define.
485 * collect2.c (aix_shared_initname): Declare.
486 (aix_shared_fininame): Declare.
487 (symkind): Add SYM_AIXI and SYM_AIXD.
488 (scanfilter_masks): Add SCAN_AIXI and SCAN_AIXD.
489 (struct names special): Add GLOBAL__AIXI_ and GLOBAL__AIXD_.
490 (aixlazy_flag): Parse.
491 (extract_init_priority): SYM_AIXI and SYM_AIXD have highest priority.
492 (scan_prog_file, COFF): Handle SYM_AIXI and SYM_AIXD.
494 2013-11-23 David Edelsohn <dje.gcc@gmail.com>
496 * config/rs6000/rs6000.c (IN_NAMED_SECTION): New macro.
497 (rs6000_xcoff_select_section): Place decls with stricter alignment
499 (rs6000_xcoff_unique_section): Allow unique sections for
500 uninitialized data with strict alignment.
502 2013-11-23 Jakub Jelinek <jakub@redhat.com>
504 PR tree-optimization/59154
505 * tree-ssa-reassoc.c (maybe_optimize_range_tests): When changing
506 rhs1 of a cast and new_op is invariant, fold_convert it.
507 * tree-ssa-forwprop.c (ssa_forward_propagate_and_combine): Only call
508 simplify_conversion_from_bitmask if rhs1 is a SSA_NAME.
510 2013-11-23 Uros Bizjak <ubizjak@gmail.com>
513 * config/i386/i386.c (bdesc_multi_arg) <IX86_BUILTIN_VFRCZSS>:
514 Declare as MULTI_ARG_1_SF instruction.
515 <IX86_BUILTIN_VFRCZSD>: Decleare as MULTI_ARG_1_DF instruction.
516 * config/i386/sse.md (*xop_vmfrcz<mode>2): Rename
517 from *xop_vmfrcz_<mode>.
518 * config/i386/xopintrin.h (_mm_frcz_ss): Use __builtin_ia32_movss
519 to merge scalar result with __A.
520 (_mm_frcz_sd): Use __builtin_ia32_movsd to merge scalar
523 2013-11-23 Eric Botcazou <ebotcazou@adacore.com>
525 * gimplify.h (recalculate_side_effects): Delete.
526 * gimplify.c (recalculate_side_effects): Make static and add comment.
528 2013-11-23 Richard Sandiford <rdsandiford@googlemail.com>
530 * config/sh/sh.md: Use nonimmediate_operand rather than general_operand
531 for the destination of a define_peephole2. Likewise register_operand
532 rather than arith_reg_operand. Remove constraints from
535 2013-11-23 Richard Sandiford <rdsandiford@googlemail.com>
537 * config/mn10300/mn10300-protos.h (mn10300_store_multiple_operation):
539 (mn10300_store_multiple_operation_p): Declare.
540 * config/mn10300/mn10300.c (mn10300_store_multiple_operation):
542 (mn10300_store_multiple_operation_p): ...this and remove mode
544 * config/mn10300/predicates.md (mn10300_store_multiple_operation):
547 2013-11-23 Richard Sandiford <rdsandiford@googlemail.com>
549 * config/bfin/bfin-protos.h (push_multiple_operation): Delete.
550 (pop_multiple_operation): Delete.
551 (analyze_push_multiple_operation): Declare.
552 (analyze_pop_multiple_operation): Declare.
553 * config/bfin/bfin.c (push_multiple_operation): Rename to...
554 (analyze_push_multiple_operation): ...this and remove mode argument.
555 (pop_multiple_operation): Rename to...
556 (analyze_pop_multiple_operation): ...this and remove mode argument.
557 * config/bfin/predicates.md (push_multiple_operation): Define.
558 (pop_multiple_operation): Likewise.
560 2013-11-23 Alan Modra <amodra@gmail.com>
562 * config/rs6000/vsx.md (fusion peepholes): Disable when !TARGET_VSX.
564 2013-11-22 Jakub Jelinek <jakub@redhat.com>
567 * common.opt (static-liblsan): Add.
568 * config/gnu-user.h (STATIC_LIBLSAN_LIBS, STATIC_LIBUBSAN_LIBS):
570 * flag-types.h (enum sanitize_code): Add SANITIZE_LEAK. Renumber
571 SANITIZE_SHIFT, SANITIZE_DIVIDE, SANITIZE_UNREACHABLE, SANITIZE_VLA,
573 * opts.c (common_handle_option): Handle -fsanitize=leak.
574 * gcc.c (ADD_STATIC_LIBLSAN_LIBS, LIBLSAN_SPEC): Define.
575 (LIBUBSAN_SPEC): Don't test LIBUBSAN_EARLY_SPEC.
576 (LIBUBSAN_EARLY_SPEC): Remove.
577 (SANITIZER_EARLY_SPEC): Don't do anything for libubsan.
578 (SANITIZER_SPEC): Add -fsanitize=leak handling.
579 (sanitize_spec_function): Handle %sanitize(leak).
580 * doc/invoke.texi (-static-liblsan, -fsanitize=leak): Document.
582 2013-11-22 Aldy Hernandez <aldyh@redhat.com>
583 Jakub Jelinek <jakub@redhat.com>
585 * ipa.c (symtab_remove_unreachable_nodes): Fix up comment typos.
586 * ipa-prop.c (get_vector_of_formal_parm_types): Renamed to ...
587 (ipa_get_vector_of_formal_parm_types): ... this. No longer static.
588 (ipa_modify_formal_parameters): Adjust caller. Remove
589 synth_parm_prefix argument. Use operator enum instead of bit fields.
590 Add assert for properly handling vector of references. Handle
591 creating brand new parameters.
592 (ipa_modify_call_arguments): Use operator enum instead of bit
594 (ipa_combine_adjustments): Same. Assert that IPA_PARM_OP_NEW is not
596 (ipa_modify_expr, get_ssa_base_param, ipa_get_adjustment_candidate):
598 (ipa_dump_param_adjustments): Rename reduction to new_decl.
599 Use operator enum instead of bit fields.
600 * ipa-prop.h (enum ipa_parm_op): New.
601 (struct ipa_parm_adjustment): New field op. Rename reduction
602 to new_decl, new_arg_prefix to arg_prefix and remove remove_param
604 (ipa_modify_formal_parameters): Remove last argument.
605 (ipa_get_vector_of_formal_parm_types, ipa_modify_expr,
606 ipa_get_adjustment_candidate): New prototypes.
607 * tree-sra.c (turn_representatives_into_adjustments): Use operator
608 enum. Set arg_prefix.
609 (get_adjustment_for_base): Use operator enum.
610 (sra_ipa_modify_expr): Rename to ipa_modify_expr and move to
612 (sra_ipa_modify_assign): Rename sra_ipa_modify_expr to ipa_modify_expr.
613 (ipa_sra_modify_function_body): Same. No longer static.
614 (sra_ipa_reset_debug_stmts): Use operator enum.
615 (modify_function): Do not pass prefix argument.
617 2013-11-22 Jakub Jelinek <jakub@redhat.com>
619 * ubsan.c (ubsan_source_location): Don't crash on unknown locations.
620 (ubsan_pass): Ignore clobber stmts.
622 * sanitizer.def (BUILT_IN_UBSAN_HANDLE_MISSING_RETURN): New built-in.
623 * opts.c (common_handle_option): Add -fsanitize=return.
624 * flag-types.h (enum sanitize_code): Add SANITIZE_RETURN and
625 or it into SANITIZE_UNDEFINED.
627 * sanitizer.def (BUILT_IN_ASAN_BEFORE_DYNAMIC_INIT,
628 BUILT_IN_ASAN_AFTER_DYNAMIC_INIT): New.
629 * asan.c (instrument_derefs): Handle also VAR_DECL loads/stores.
630 Don't instrument accesses to VAR_DECLs which are known to fit
631 into their bounds and the vars are known to have shadow bytes
632 indicating allowed access.
633 (asan_dynamic_init_call): New function.
634 (asan_add_global): If vnode->dynamically_initialized,
635 set __has_dynamic_init to 1 instead of 0.
636 (initialize_sanitizer_builtins): Add BT_FN_VOID_CONST_PTR var.
637 * asan.h (asan_dynamic_init_call): New prototype.
638 * cgraph.h (varpool_node): Add dynamically_initialized bitfield.
640 2013-11-22 Martin Jambor <mjambor@suse.cz>
642 PR rtl-optimization/10474
643 * ira.c (interesting_dest_for_shprep_1): New function.
644 (interesting_dest_for_shprep): Use interesting_dest_for_shprep_1,
645 also check parallels.
647 2013-11-22 Jeff Law <law@redhat.com>
649 * tree-ssa-threadedge.c (record_temporary_equivalence): Handle
650 NULL for RHS, which we used to invalidate equivalences.
651 (record_temporary_equivalences_from_phis): New bitmap arguments
652 and a boolean indicating if we have passed a backedge. If we
653 have passed a backedge, then set the appropriate bit in the
654 bitmaps for the SRC & DEST of PHIs creating equivalences.
655 (invalidate_equivalences, dummy_simplify): New functions.
656 (cond_arg_set_in_b): Remove.
657 (record_temporary_equivalences_from_stmts_at_dest): New bitmap
658 arguments and a boolean indicating if we have passed a backedge.
659 If we have passed a backedge, then perform invalidations as needed.
660 (thread_around_empty_blocks): If we have seen a backedge, then
661 use the dummy simplify routine.
662 (thread_through_normal_block): Likewise. Pass bitmaps and
663 backedge status to children. Do not pessimize so much when
664 traversing backedges in the CFG.
665 (thread_across_edge): Manage the SRC_MAP/DST_MAP bitmaps.
666 If we have seen a backedge, then use the dummy simplify routine.
667 Do not pessimize so much when traversing backedges.
669 2013-11-22 Hans-Peter Nilsson <hp@axis.com>
671 * config/cris/cris.c (cris_atomic_align_for_mode): New function.
672 (TARGET_ATOMIC_ALIGN_FOR_MODE): Define.
674 2013-11-22 Yuri Rumyantsev <ysrumyan@gmail.com>
676 * config/i386/i386.c(processor_alias_table): Enable PTA_AES,
677 PTA_PCLMUL and PTA_RDRND for Silvermont.
678 * config/i386/driver-i386.c (host_detect_local_cpu): Set up cpu
681 * doc/invoke.texi: Mention AES, PCLMUL and RDRND for Silvermont.
683 2013-11-22 Andrew MacLeod <amacleod@redhat.com>
685 * hooks.h (hook_uint_mode_0): Add Prototype.
686 * hooks.c (hook_uint_mode_0): New default function.
687 * target.def (atomic_align_for_mode): New target hook.
688 * tree.c (build_atomic_base): Add alignment override parameter.
689 (build_common_tree_nodes): Use atomic alignment override.
690 * doc/tm.texi.in (TARGET_ATOMIC_ALIGN_FOR_MODE): Define.
691 * doc/tm.texi (TARGET_ATOMIC_ALIGN_FOR_MODE): Add description.
693 2013-11-22 Andrew MacLeod <amacleod@redhat.com>
695 * gimple.h: Remove all includes.
696 (recalculate_side_effects): Move prototype to gimplify.h.
697 * Makefile.in (PLUGIN_HEADERS): Add flattened gimple.h includes.
698 * gengtype.c (open_base_files): Add gimple.h include list.
699 * gimplify.h (recalculate_side_effects): Relocate prototype here.
700 * gimple.c: Adjust include list.
701 (recalculate_side_effects): Move to gimplify.c.
702 * gimplify.c: Adjust include list.
703 (recalculate_side_effects): Relocate from gimple.c.
704 * alias.c: Add required include files removed from gimple.h.
706 * builtins.c: Likewise.
708 * cfgexpand.c: Likewise.
709 * cfgloop.c: Likewise.
710 * cfgloopmanip.c: Likewise.
711 * cgraphbuild.c: Likewise.
712 * cgraph.c: Likewise.
713 * cgraphclones.c: Likewise.
714 * cgraphunit.c: Likewise.
715 * cilk-common.c: Likewise.
716 * data-streamer.c: Likewise.
717 * data-streamer-in.c: Likewise.
718 * data-streamer-out.c: Likewise.
720 * dwarf2out.c: Likewise.
721 * emit-rtl.c: Likewise.
722 * except.c: Likewise.
724 * fold-const.c: Likewise.
725 * function.c: Likewise.
726 * gimple-builder.c: Likewise.
727 * gimple-expr.c: Likewise.
728 * gimple-fold.c: Likewise.
729 * gimple-iterator.c: Likewise.
730 * gimple-low.c: Likewise.
731 * gimple-pretty-print.c: Likewise.
732 * gimple-ssa-isolate-paths.c: Likewise.
733 * gimple-ssa-strength-reduction.c: Likewise.
734 * gimple-streamer-in.c: Likewise.
735 * gimple-streamer-out.c: Likewise.
736 * gimple-walk.c: Likewise.
737 * gimplify-me.c: Likewise.
738 * graphite-blocking.c: Likewise.
739 * graphite.c: Likewise.
740 * graphite-clast-to-gimple.c: Likewise.
741 * graphite-dependences.c: Likewise.
742 * graphite-interchange.c: Likewise.
743 * graphite-optimize-isl.c: Likewise.
744 * graphite-poly.c: Likewise.
745 * graphite-scop-detection.c: Likewise.
746 * graphite-sese-to-poly.c: Likewise.
747 * internal-fn.c: Likewise.
749 * ipa-cp.c: Likewise.
750 * ipa-devirt.c: Likewise.
751 * ipa-inline-analysis.c: Likewise.
752 * ipa-inline.c: Likewise.
753 * ipa-profile.c: Likewise.
754 * ipa-prop.c: Likewise.
755 * ipa-pure-const.c: Likewise.
756 * ipa-reference.c: Likewise.
757 * ipa-split.c: Likewise.
758 * ipa-utils.c: Likewise.
759 * langhooks.c: Likewise.
760 * lto-cgraph.c: Likewise.
761 * lto-compress.c: Likewise.
762 * lto-opts.c: Likewise.
763 * lto-section-in.c: Likewise.
764 * lto-section-out.c: Likewise.
765 * lto-streamer.c: Likewise.
766 * lto-streamer-in.c: Likewise.
767 * lto-streamer-out.c: Likewise.
768 * omp-low.c: Likewise.
769 * opts-global.c: Likewise.
770 * passes.c: Likewise.
771 * predict.c: Likewise.
772 * profile.c: Likewise.
775 * stor-layout.c: Likewise.
776 * symtab.c: Likewise.
777 * targhooks.c: Likewise.
778 * toplev.c: Likewise.
779 * tracer.c: Likewise.
780 * trans-mem.c: Likewise.
781 * tree-affine.c: Likewise.
783 * tree-call-cdce.c: Likewise.
784 * tree-cfg.c: Likewise.
785 * tree-cfgcleanup.c: Likewise.
786 * tree-chrec.c: Likewise.
787 * tree-complex.c: Likewise.
788 * tree-data-ref.c: Likewise.
789 * tree-dfa.c: Likewise.
790 * tree-eh.c: Likewise.
791 * tree-emutls.c: Likewise.
792 * tree-if-conv.c: Likewise.
793 * tree-inline.c: Likewise.
794 * tree-into-ssa.c: Likewise.
795 * tree-loop-distribution.c: Likewise.
796 * tree-nested.c: Likewise.
797 * tree-nrv.c: Likewise.
798 * tree-object-size.c: Likewise.
799 * tree-outof-ssa.c: Likewise.
800 * tree-parloops.c: Likewise.
801 * tree-phinodes.c: Likewise.
802 * tree-predcom.c: Likewise.
803 * tree-pretty-print.c: Likewise.
804 * tree-profile.c: Likewise.
805 * tree-scalar-evolution.c: Likewise.
806 * tree-sra.c: Likewise.
807 * tree-ssa-address.c: Likewise.
808 * tree-ssa-alias.c: Likewise.
809 * tree-ssa.c: Likewise.
810 * tree-ssa-ccp.c: Likewise.
811 * tree-ssa-coalesce.c: Likewise.
812 * tree-ssa-copy.c: Likewise.
813 * tree-ssa-copyrename.c: Likewise.
814 * tree-ssa-dce.c: Likewise.
815 * tree-ssa-dom.c: Likewise.
816 * tree-ssa-dse.c: Likewise.
817 * tree-ssa-forwprop.c: Likewise.
818 * tree-ssa-ifcombine.c: Likewise.
819 * tree-ssa-live.c: Likewise.
820 * tree-ssa-loop.c: Likewise.
821 * tree-ssa-loop-ch.c: Likewise.
822 * tree-ssa-loop-im.c: Likewise.
823 * tree-ssa-loop-ivcanon.c: Likewise.
824 * tree-ssa-loop-ivopts.c: Likewise.
825 * tree-ssa-loop-manip.c: Likewise.
826 * tree-ssa-loop-niter.c: Likewise.
827 * tree-ssa-loop-prefetch.c: Likewise.
828 * tree-ssa-loop-unswitch.c: Likewise.
829 * tree-ssa-math-opts.c: Likewise.
830 * tree-ssanames.c: Likewise.
831 * tree-ssa-operands.c: Likewise.
832 * tree-ssa-phiopt.c: Likewise.
833 * tree-ssa-phiprop.c: Likewise.
834 * tree-ssa-pre.c: Likewise.
835 * tree-ssa-propagate.c: Likewise.
836 * tree-ssa-reassoc.c: Likewise.
837 * tree-ssa-sccvn.c: Likewise.
838 * tree-ssa-sink.c: Likewise.
839 * tree-ssa-strlen.c: Likewise.
840 * tree-ssa-structalias.c: Likewise.
841 * tree-ssa-tail-merge.c: Likewise.
842 * tree-ssa-ter.c: Likewise.
843 * tree-ssa-threadedge.c: Likewise.
844 * tree-ssa-threadupdate.c: Likewise.
845 * tree-ssa-uncprop.c: Likewise.
846 * tree-ssa-uninit.c: Likewise.
847 * tree-stdarg.c: Likewise.
848 * tree-streamer.c: Likewise.
849 * tree-streamer-in.c: Likewise.
850 * tree-streamer-out.c: Likewise.
851 * tree-switch-conversion.c: Likewise.
852 * tree-tailcall.c: Likewise.
853 * tree-vect-data-refs.c: Likewise.
854 * tree-vect-generic.c: Likewise.
855 * tree-vect-loop.c: Likewise.
856 * tree-vect-loop-manip.c: Likewise.
857 * tree-vectorizer.c: Likewise.
858 * tree-vect-patterns.c: Likewise.
859 * tree-vect-slp.c: Likewise.
860 * tree-vect-stmts.c: Likewise.
861 * tree-vrp.c: Likewise.
864 * value-prof.c: Likewise.
865 * varpool.c: Likewise.
866 * var-tracking.c: Likewise.
867 * vtable-verify.c: Likewise.
868 * config/darwin.c: Likewise.
869 * config/aarch64/aarch64-builtins.c: Likewise.
870 * config/aarch64/aarch64.c: Likewise.
871 * config/alpha/alpha.c: Likewise.
872 * config/i386/i386.c: Likewise.
873 * config/i386/winnt.c: Likewise.
874 * config/ia64/ia64.c: Likewise.
875 * config/m32c/m32c.c: Likewise.
876 * config/mep/mep.c: Likewise.
877 * config/mips/mips.c: Likewise.
878 * config/rs6000/rs6000.c: Likewise.
879 * config/s390/s390.c: Likewise.
880 * config/sh/sh.c: Likewise.
881 * config/sparc/sparc.c: Likewise.
882 * config/spu/spu.c: Likewise.
883 * config/stormy16/stormy16.c: Likewise.
884 * config/tilegx/tilegx.c: Likewise.
885 * config/tilepro/tilepro.c: Likewise.
886 * config/xtensa/xtensa.c: Likewise.
888 2013-11-22 Richard Earnshaw <rearnsha@arm.com>
891 * arm.md (negdi_extendsidi): Fix invalid split.
893 2013-11-22 Alex Velenko <Alex.Velenko@arm.com>
895 * config/aarch64/arm_neon.h (vmov_n_f32): Implemented in C.
896 (vmov_n_f64): Likewise.
897 (vmov_n_p8): Likewise.
898 (vmov_n_p16): Likewise.
899 (vmov_n_s8): Likewise.
900 (vmov_n_s16): Likewise.
901 (vmov_n_s32): Likewise.
902 (vmov_n_s64): Likewise.
903 (vmov_n_u8): Likewise.
904 (vmov_n_u16): Likewise.
905 (vmov_n_u32): Likewise.
906 (vmov_n_u64): Likewise.
907 (vmovq_n_f32): Likewise.
908 (vmovq_n_f64): Likewise.
909 (vmovq_n_p8): Likewise.
910 (vmovq_n_p16): Likewise.
911 (vmovq_n_s8): Likewise.
912 (vmovq_n_s16): Likewise.
913 (vmovq_n_s32): Likewise.
914 (vmovq_n_s64): Likewise.
915 (vmovq_n_u8): Likewise.
916 (vmovq_n_u16): Likewise.
917 (vmovq_n_u32): Likewise.
918 (vmovq_n_u64): Likewise.
920 2013-11-22 Tejas Belagod <tejas.belagod@arm.com>
922 * config/aarch64/aarch64-simd.md (vec_pack_trunc_<mode>,
923 vec_pack_trunc_v2df, vec_pack_trunc_df): Swap for big-endian.
924 (reduc_<sur>plus_<mode>): Factorize V2DI into this.
925 (reduc_<sur>plus_<mode>): Change this to reduc_splus_<mode> for floats
926 and also change to float UNSPEC.
927 (reduc_maxmin_uns>_<mode>): Remove V2DI.
928 * config/aarch64/arm_neon.h (vaddv<q>_<suf><8,16,32,64>,
929 vmaxv<q>_<suf><8,16,32,64>, vminv<q>_<suf><8,16,32,64>): Fix up scalar
930 result access for big-endian.
931 (__LANE0): New macro used to fix up lane access of 'across-lanes'
932 intrinsics for big-endian.
933 * config/aarch64/iterators.md (VDQV): Add V2DI.
935 (vp): New mode attribute.
937 2013-11-22 Tejas Belagod <tejas.belagod@arm.com>
939 * config/aarch64/aarch64-simd.md (vec_pack_trunc_<mode>,
940 vec_pack_trunc_v2df, vec_pack_trunc_df): Swap source ops for
943 2013-11-22 Tejas Belagod <tejas.belagod@arm.com>
945 * config/aarch64/aarch64-simd.md (aarch64_simd_vec_set<mode>): Adjust
946 for big-endian element order.
947 (aarch64_simd_vec_setv2di): Likewise.
948 (*aarch64_get_lane_extend<GPI:mode><VDQQH:mode>,
949 *aarch64_get_lane_zero_extendsi<mode>, aarch64_get_lane): Likewise.
950 (vec_extract): Expand using aarch64_get_lane.
951 * config/aarch64/aarch64.h (ENDIAN_LANE_N): New.
953 2013-11-22 Tejas Belagod <tejas.belagod@arm.com>
955 * config/aarch64/aarch64-simd.md (*aarch64_simd_mov<mode>): Fix loads
956 and stores to be ABI compliant.
958 2013-11-22 David Malcolm <dmalcolm@redhat.com>
960 * input.h (input_line): Remove.
961 (input_filename): Likewise.
962 (in_system_header): Likewise.
963 * tree.h (EXPR_LOC_OR_HERE): Remove.
964 * config/bfin/bfin.c (output_file_start): Remove use of
965 input_filename macro.
966 * builtins.c (c_strlen): Remove use of EXPR_LOC_OR_HERE macro.
967 * gimplify.c (internal_get_tmp_var): Likewise.
968 EXPR_LOC_OR_HERE macro.
969 (shortcut_cond_expr): Likewise.
970 * tree-diagnostic.c (diagnostic_report_current_function): Remove
971 use of input_filename macro.
972 * tree.c (get_file_function_name): Likewise.
974 2013-11-22 Kenneth Zadeck <zadeck@naturalbridge.com>
976 * store-layout.c (place-field): Fix hwi test and accessor mismatch.
978 2013-11-22 Jakub Jelinek <jakub@redhat.com>
980 * expr.c (store_constructor): Allow CONSTRUCTOR with VECTOR_TYPE
981 (same sized) elements even if the type of the CONSTRUCTOR has
982 vector mode and target is a REG.
984 2013-11-22 Richard Biener <rguenther@suse.de>
987 2013-11-21 Richard Biener <rguenther@suse.de>
989 * tree-ssa-loop-ch.c (copy_loop_headers): Decrement
990 nb_iterations_upper_bound by one.
992 2013-11-22 H.J. Lu <hongjiu.lu@intel.com>
994 * config/i386/i386.c (processor_alias_table): Enable PTA_POPCNT
997 * doc/invoke.texi: Mention POPCNT for corei7, corei7-avx,
998 core-avx-i, core-avx2 and slm.
1000 2013-11-22 Eric Botcazou <ebotcazou@adacore.com>
1002 * print-rtl.c (print_rtx) <case MEM>: Output a space if no MEM_EXPR.
1004 2013-11-22 Richard Sandiford <rdsandiford@googlemail.com>
1006 * config/m32c/cond.md (stzx_16): Use register_operand for operand 0.
1007 (stzx_24_<mode>): Likewise mra_operand.
1009 2013-11-22 Jeff Law <law@redhat.com>
1011 * tree-ssa-threadupdate.c: Include tree-cfg.h and tree-pass.h
1012 (thread_block_1): Do not cancel jump threads which go from
1013 inside a loop, through the header, then back inside the loop.
1014 (bb_ends_with_multiway_branch): New function.
1015 (thread_through_all_blocks): Handle threading cases which start
1016 in a loop through the loop header to a point in the loop.
1018 * tree-ssa-threadedge.c (thread_across_edge): Mark the start of the
1019 jump thread path properly.
1021 2013-11-22 Trevor Saunders <tsaunders@mozilla.com>
1023 * vec.h (auto_vec): New class.
1024 * cfganal.c, cfgloop.c, cgraphunit.c, config/i386/i386.c, dwarf2out.c,
1025 function.c, genautomata.c, gimple.c, haifa-sched.c, ipa-inline.c,
1026 ira-build.c, loop-unroll.c, omp-low.c, ree.c, trans-mem.c,
1027 tree-call-cdce.c, tree-eh.c, tree-if-conv.c, tree-into-ssa.c,
1028 tree-loop-distribution.c, tree-predcom.c, tree-sra.c,
1029 tree-sssa-forwprop.c, tree-ssa-loop-manip.c, tree-ssa-pre.c,
1030 tree-ssa-reassoc.c, tree-ssa-sccvn.c, tree-ssa-structalias.c,
1031 tree-vect-loop.c, tree-vect-stmts.c: Use auto_vec and stack_vec as
1032 appropriate instead of vec for local variables.
1034 2013-11-21 Teresa Johnson <tejohnson@google.com>
1037 * cfgcleanup.c (outgoing_edges_match): Walk up past note instructions
1038 not understood by old_insns_match_p.
1040 2013-11-21 Bill Schmidt <wschmidt@vnet.ibm.com>
1042 * config/rs6000/vector.md (vec_pack_trunc_v2df): Revert previous
1043 little endian change.
1044 (vec_pack_sfix_trunc_v2df): Likewise.
1045 (vec_pack_ufix_trunc_v2df): Likewise.
1046 * config/rs6000/rs6000.c (rs6000_expand_interleave): Correct
1047 double checking of endianness.
1049 2013-11-22 Jakub Jelinek <jakub@redhat.com>
1051 * tree-vect-generic.c (optimize_vector_constructor): New function.
1052 (expand_vector_operations_1): Call it.
1054 2013-11-21 Uros Bizjak <ubizjak@gmail.com>
1056 * config/i386/i386.c (ix86_expand_special_args_builtin): Use
1057 ix86_zero_extend_to_Pmode where appropriate.
1058 (ix86_expand_builtin): Ditto.
1060 2013-11-21 Cary Coutant <ccoutant@google.com>
1062 * dwarf2out.c (want_pubnames): Don't do pubnames for -g1.
1063 (add_linkage_name): Don't add linkage name for -g1.
1064 (decls_for_scope): Process subblocks for -g1.
1065 (dwarf2out_source_line): Output line tables for -g1.
1066 (dwarf2out_finish): Likewise.
1067 * tree-ssa-live.c (remove_unused_scope_block_p): Don't prune
1068 unused scopes for -g1.
1069 * opts.c (common_handle_option): Handle -g same as -g2.
1070 * doc/invoke.texi: Update description for -g1.
1072 2013-11-21 Peter Bergner <bergner@vnet.ibm.com>
1074 * doc/extend.texi: Document htm builtins.
1076 2013-11-21 Jeff Law <law@redhat.com>
1078 PR tree-optimization/59221
1079 * tree-ssa-threadedge.c (thread_across_edge): Properly manage
1080 temporary equivalences when threading through joiner blocks.
1082 2013-11-21 Joseph Myers <joseph@codesourcery.com>
1084 PR rtl-optimization/55950
1085 * real.c (real_sqrt): Remove function.
1086 * real.h (real_sqrt): Remove prototype.
1087 * simplify-rtx.c (simplify_const_unary_operation): Do not fold
1088 SQRT using real_sqrt.
1090 2013-11-21 Richard Biener <rguenther@suse.de>
1092 PR tree-optimization/59058
1093 * tree-scalar-evolution.h (number_of_exit_cond_executions): Remove.
1094 * tree-scalar-evolution.c (number_of_exit_cond_executions): Likewise.
1095 * tree-vectorizer.h (LOOP_PEELING_FOR_ALIGNMENT): Rename to ...
1096 (LOOP_VINFO_PEELING_FOR_ALIGNMENT): ... this.
1097 (NITERS_KNOWN_P): Fold into ...
1098 (LOOP_VINFO_NITERS_KNOWN_P): ... this.
1099 (LOOP_VINFO_PEELING_FOR_NITER): Add.
1100 * tree-vect-loop-manip.c (vect_gen_niters_for_prolog_loop):
1101 Use LOOP_VINFO_PEELING_FOR_ALIGNMENT.
1102 (vect_do_peeling_for_alignment): Re-use precomputed niter
1103 instead of re-emitting it.
1104 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment):
1105 Use LOOP_VINFO_PEELING_FOR_ALIGNMENT.
1106 * tree-vect-loop.c (vect_get_loop_niters): Use
1107 number_of_latch_executions.
1108 (new_loop_vec_info): Initialize LOOP_VINFO_PEELING_FOR_NITER.
1109 (vect_analyze_loop_form): Simplify.
1110 (vect_analyze_loop_operations): Move epilogue peeling code ...
1111 (vect_analyze_loop_2): ... here and adjust it to compute
1112 LOOP_VINFO_PEELING_FOR_NITER.
1113 (vect_estimate_min_profitable_iters): Use
1114 LOOP_VINFO_PEELING_FOR_ALIGNMENT.
1115 (vect_build_loop_niters): Emit on the preheader.
1116 (vect_generate_tmps_on_preheader): Likewise.
1117 (vect_transform_loop): Use LOOP_VINFO_PEELING_FOR_NITER instead
1118 of recomputing it. Adjust.
1120 2013-11-21 Richard Biener <rguenther@suse.de>
1122 * tree-vectorizer.h (LOC, UNKNOWN_LOC, EXPR_LOC, LOC_FILE,
1123 LOC_LINE): Remove wrappers and fix all users.
1124 (struct _loop_vec_info): Remove loop_line_number member.
1125 (LOOP_VINFO_LOC): Remove.
1126 * tree-parloops.c, tree-vect-loop-manip.c, tree-vect-slp.c,
1127 tree-vectorizer.c: Fix users of LOC, UNKNOWN_LOC, EXPR_LOC, LOC_FILE
1130 2013-11-21 Richard Biener <rguenther@suse.de>
1132 * tree-ssa-forwprop.c (simplify_vce): New function.
1133 (ssa_forward_propagate_and_combine): Call it.
1135 2013-11-21 Richard Biener <rguenther@suse.de>
1137 * tree-vect-loop-manip.c (vect_build_loop_niters,
1138 vect_generate_tmps_on_preheader): Move ...
1139 * tree-vect-loop.c (vect_build_loop_niters,
1140 vect_generate_tmps_on_preheader): ... here and simplify.
1141 (vect_transform_loop): Call them here and pass down results
1143 * tree-vect-loop-manip.c (vect_do_peeling_for_loop_bound):
1144 Get niter variables from caller.
1145 (vect_do_peeling_for_alignment): Likewise.
1146 * tree-vectorizer.h (vect_generate_tmps_on_preheader): Remove.
1147 (vect_do_peeling_for_loop_bound, vect_do_peeling_for_alignment):
1150 2013-11-21 Richard Biener <rguenther@suse.de>
1152 * tree-ssa-loop-ch.c (copy_loop_headers): Decrement
1153 nb_iterations_upper_bound by one.
1155 2013-11-21 Richard Biener <rguenther@suse.de>
1157 PR tree-optimization/59058
1158 * tree-loop-distribution.c (struct partition_s): Add plus_one member.
1159 (build_size_arg_loc): Apply niter adjustment here.
1160 (generate_memset_builtin): Adjust.
1161 (generate_memcpy_builtin): Likewise.
1162 (classify_partition): Do not use number_of_exit_cond_executions
1163 but record whether niter needs to be adjusted.
1165 2013-11-21 Eric Botcazou <ebotcazou@adacore.com>
1167 * tree-ssa-tail-merge.c (stmt_local_def): Return false if the statement
1170 2013-11-21 Oleg Endo <olegendo@gcc.gnu.org>
1173 * config/sh/sh_optimize_sett_clrt.cc: New SH specific RTL pass.
1174 * config/sh/sh.c (register_sh_passes): Add sh_optimize_sett_clrt pass.
1175 * config/sh/sh/t-sh (sh_optimize_sett_clrt pass.o): New entry.
1176 * config.gcc (sh[123456789lbe]*-*-* | sh-*-*): Add
1177 sh_optimize_sett_clrt pass.o to extra_objs.
1179 2013-11-20 David Malcolm <dmalcolm@redhat.com>
1181 * cfg.c (dump_edge_info): Remove redundant comment.
1182 * cfgcleanup.c (outgoing_edges_match): Reword reference to
1183 EXIT_BLOCK_PTR in comment.
1184 (try_optimize_cfg): Likewise.
1185 * cfgrtl.c (last_bb_in_partition): Likewise.
1186 * cgraph.c (cgraph_node_cannot_return): Likewise.
1187 * function.c (thread_prologue_and_epilogue_insns): Likewise.
1188 * graphite-scop-detection.c (scopdet_basic_block_info): Likewise.
1189 * ipa-split.c (consider_split): Likewise.
1190 * profile.c (find_spanning_tree): Likewise.
1191 * sched-int.h (common_sched_info_def.add_block): Likewise.
1192 * dominance.c (calc_dfs_tree_nonrec): Reword references in
1193 comments to now removed ENTRY_BLOCK_PTR and EXIT_BLOCK_PTR macros.
1194 * tree-cfgcleanup.c (cleanup_control_flow_bb): Reword references
1195 in comments to now removed ENTRY_BLOCK_PTR macro.
1196 (tree_forwarder_block_p): Reword reference in comment to
1198 * tree-inline.c (copy_cfg_body): Reword references in comments to
1199 now removed ENTRY_BLOCK_PTR macro.
1200 * tree-ssa-propagate.c (ssa_prop_init): Likewise.
1201 * tree-scalar-evolution.h ( block_before_loop): Likewise. Add
1202 a comma to the comment to clarify the meaning.
1204 2013-11-20 Andrew MacLeod <amacleod@redhat.com>
1206 * gimplify.h (gimplify_hasher:typed_free_remove, struct gimplify_ctx):
1208 (free_gimplify_stack): Add prototype.
1209 * gimplify.c (gimplify_hasher:typed_free_remove): Relocate here.
1210 (struct gimplify_ctx): Relocate here.
1211 (gimplify_ctxp): Make static.
1212 (ctx_pool, ctx_alloc, ctx_free, free_gimplify_stack): New. Manage a
1213 list of struct gimplify_ctx.
1214 (push_gimplify_context): Add default parameters and allocate a struct
1216 (pop_gimplify_context): Free a struct back to the pool.
1217 (gimplify_scan_omp_clauses, gimplify_omp_parallel, gimplify_omp_task,
1218 gimplify_omp_workshare, gimplify_transaction, gimplify_body): Don't
1219 use a local 'struct gimplify_ctx'.
1220 * cgraphunit.c (expand_all_functions): call free_gimplify_stack.
1221 * gimplify-me.c (force_gimple_operand_1, gimple_regimplify_operands):
1223 * omp-low.c (lower_omp_sections, lower_omp_single, lower_omp_master,
1224 lower_omp_ordered, lower_omp_critical, lower_omp_for,
1225 create_task_copyfn, lower_omp_taskreg, lower_omp_target,
1226 lower_omp_teams, execute_lower_omp): Likewise.
1227 * gimple-fold.c (gimplify_and_update_call_from_tree): Likewise.
1228 * tree-inline.c (optimize_inline_calls): Likewise.
1230 2013-11-20 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
1232 * config/rs6000/vsx.md (vsx_set_<mode>): Adjust for little endian.
1233 (vsx_extract_<mode>): Likewise.
1234 (*vsx_extract_<mode>_one_le): New LE variant on
1235 *vsx_extract_<mode>_zero.
1236 (vsx_extract_v4sf): Adjust for little endian.
1238 2013-11-20 Vladimir Makarov <vmakarov@redhat.com>
1240 PR rtl-optimization/59133
1241 * lra.c (expand_reg_data): Add new argument. Set up ALL_REGS for
1243 (lra_create_new_reg_with_unique_value): Pass new argument value.
1244 (lra_emit_add, lra_emit_move): Ditto.
1245 * lra-constraints.c (in_class_p): Add check for move for a new insn.
1246 (change_class): Rename to lra_change_class. Move to lra-int.h.
1247 (get_reload_reg, narrow_reload_pseudo_class): Adjust calls of
1249 (process_addr_reg, process_addr): Ditto.
1250 (curr_insn_transform): Ditto. Add check on old pseudo for
1252 * lra-int.h (lra_get_regno_hard_regno): Move below.
1253 (lra_change_class): Renamed change_class from lra.c.
1255 2013-11-20 David Malcolm <dmalcolm@redhat.com>
1257 * gdbhooks.py (VecPrinter.children): Don't attempt to iterate
1258 the children of a NULL pointer.
1260 2013-11-20 Robert Suchanek <Robert.Suchanek@imgtec.com>
1262 * lra.c (lra): Set lra_in_progress before check_rtl call.
1263 * recog.c (insn_invalid_p): Add !lra_in_progress to prevent
1264 adding clobber regs when LRA is running.
1266 2013-11-20 Maciej W. Rozycki <macro@codesourcery.com>
1268 * config/mips/mips.h (ISA_HAS_FP4): Remove TARGET_FLOAT64
1269 restriction for ISA_MIPS32R2.
1270 (ISA_HAS_LXC1_SXC1): New macro.
1271 (ISA_HAS_FP_MADD4_MSUB4): Remove ISA_MIPS32R2 special-casing.
1272 (ISA_HAS_NMADD4_NMSUB4): Likewise.
1273 (ISA_HAS_FP_RECIP_RSQRT): Likewise.
1274 (ISA_HAS_PREFETCHX): Redefine in terms of ISA_HAS_FP4.
1275 * config/mips/mips.md (*<ANYF:loadx>_<P:mode>): Use
1276 ISA_HAS_LXC1_SXC1 rather than ISA_HAS_FP4.
1277 (*<ANYF:storex>_<P:mode>): Likewise.
1279 2013-11-20 Maciej W. Rozycki <macro@codesourcery.com>
1281 * config/mips/mips.h (ISA_HAS_FP_RECIP_RSQRT): New macro.
1282 * config/mips/mips.c (mips_rtx_costs) <DIV>: Check for
1283 ISA_HAS_FP_RECIP_RSQRT rather than ISA_HAS_FP4.
1284 * config/mips/mips.md (recip_condition): Remove mode attribute.
1285 (div<mode>3): Use ISA_HAS_FP_RECIP_RSQRT rather than
1287 (*recip<mode>3, *rsqrt<mode>a, *rsqrt<mode>b): Likewise.
1289 2013-11-20 Eric Botcazou <ebotcazou@adacore.com>
1292 * config/sparc/sparc.c (sparc_fold_builtin) <case CODE_FOR_pdist_vis>:
1293 Make sure neg2_ovf is set before being used.
1295 2013-11-20 Basile Starynkevitch <basile@starynkevitch.net>
1297 * plugin.def: Add comment about register_callback and
1298 invoke_plugin_callbacks_full.
1300 * plugin.c (register_callback, invoke_plugin_callbacks_full):
1301 Handle PLUGIN_INCLUDE_FILE event.
1303 2013-11-20 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
1305 * config/rs6000/rs6000.c (rs6000_cannot_change_mode_class): Do not
1306 allow subregs of TDmode in FPRs of smaller size in little-endian.
1307 (rs6000_split_multireg_move): When splitting an access to TDmode
1308 in FPRs, do not use simplify_gen_subreg.
1310 2013-11-20 Joseph Myers <joseph@codesourcery.com>
1313 * real.c: Remove comment about decimal string conversion and
1315 (real_from_string): Use MPFR to convert nonzero decimal constant
1318 2013-11-20 Eric Botcazou <ebotcazou@adacore.com>
1320 * config/arm/arm.c (arm_dwarf_register_span): Take into account the
1321 endianness of the D registers for the legacy encodings.
1323 2013-11-20 Richard Earnshaw <rearnsha@arm.com>
1325 PR rtl-optimization/54300
1326 * regcprop.c (copyprop_hardreg_forward_1): Ensure any unused
1327 outputs in a single-set are killed from the value chains.
1329 2013-11-20 Ilya Enkovich <ilya.enkovich@intel.com>
1331 * cgraph.h (varpool_node): Add need_bounds_init field.
1332 * lto-cgraph.c (lto_output_varpool_node): Output
1333 need_bounds_init value.
1334 (input_varpool_node): Read need_bounds_init value.
1335 * varpool.c (dump_varpool_node): Dump need_bounds_init field.
1337 2013-11-20 Jan Hubicka <jh@suse.cz>
1339 * opts.c (finish_options): Imply -ffat-lto-objects with
1340 -fno-use-linker-plugin.
1341 * common.opt (fuse-linker-plugin): Add var.
1343 2013-11-20 Ilya Enkovich <ilya.enkovich@intel.com>
1345 * dbxout.c (dbxout_type): Ignore POINTER_BOUNDS_TYPE.
1346 * dwarf2out.c (gen_subprogram_die): Ignore bound args.
1347 (gen_type_die_with_usage): Skip pointer bounds.
1348 (dwarf2out_global_decl): Likewise.
1350 2013-11-20 James Greenhalgh <james.greenhalgh@arm.com>
1352 * config/aarch64/aarch64.md: Remove "mode" and "mode2" attributes
1355 2013-11-20 Yuri Rumyantsev <ysrumyan@gmail.com>
1358 * config/i386/i386.c (ix86_option_override_internal): Add missed
1359 argument prefix for 'ix86_fpmath'.
1360 * config/i386/ssemath.h: Add missed definition of
1361 TARGET_FPMATH_DEFAULT_P macros.
1363 2013-11-20 Kenneth Zadeck <zadeck@naturalbridge.com>
1364 Mike Stump <mikestump@comcast.net>
1365 Richard Sandiford <rdsandiford@googlemail.com>
1367 * alias.c (ao_ref_from_mem): Use tree_to_shwi and tree_to_uhwi
1368 instead of TREE_INT_CST_LOW, in cases where there is a protecting
1369 tree_fits_shwi_p or tree_fits_uhwi_p.
1370 * builtins.c (fold_builtin_powi): Likewise.
1371 * config/epiphany/epiphany.c (epiphany_special_round_type_align):
1373 * dbxout.c (dbxout_symbol): Likewise.
1374 * expr.c (expand_expr_real_1): Likewise.
1375 * fold-const.c (fold_single_bit_test, fold_plusminus_mult_expr)
1376 (fold_binary_loc): Likewise.
1377 * gimple-fold.c (fold_const_aggregate_ref_1): Likewise.
1378 * gimple-ssa-strength-reduction.c (stmt_cost): Likewise.
1379 * omp-low.c (lower_omp_for_lastprivate): Likewise.
1380 * simplify-rtx.c (delegitimize_mem_from_attrs): Likewise.
1381 * stor-layout.c (compute_record_mode): Likewise.
1382 * tree-cfg.c (verify_expr): Likewise.
1383 * tree-dfa.c (get_ref_base_and_extent): Likewise.
1384 * tree-pretty-print.c (dump_array_domain): Likewise.
1385 * tree-sra.c (build_user_friendly_ref_for_offset): Likewise.
1386 * tree-ssa-ccp.c (fold_builtin_alloca_with_align): Likewise.
1387 * tree-ssa-loop-ivopts.c (get_loop_invariant_expr_id): Likewise.
1388 * tree-ssa-math-opts.c (execute_cse_sincos): Likewise.
1389 * tree-ssa-phiopt.c (hoist_adjacent_loads): Likewise.
1390 * tree-ssa-reassoc.c (acceptable_pow_call): Likewise.
1391 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Likewise.
1392 (ao_ref_init_from_vn_reference, vn_reference_fold_indirect): Likewise.
1393 (vn_reference_lookup_3, simplify_binary_expression): Likewise.
1394 * tree-ssa-structalias.c (bitpos_of_field): Likewise.
1395 (get_constraint_for_1, push_fields_onto_fieldstack): Likewise.
1396 (create_variable_info_for_1): Likewise.
1397 * tree-vect-data-refs.c (vect_compute_data_ref_alignment): Likewise.
1398 (vect_verify_datarefs_alignment): Likewise.
1399 (vect_analyze_data_ref_accesses): Likewise.
1400 (vect_prune_runtime_alias_test_list): Likewise.
1401 * tree-vectorizer.h (NITERS_KNOWN_P): Likewise.
1403 2013-11-20 Richard Sandiford <rdsandiford@googlemail.com>
1405 * tree-ssa-alias.c (ao_ref_init_from_ptr_and_size): Avoid signed
1406 overflow. Use tree_to_shwi.
1408 2013-11-20 Richard Sandiford <rdsandiford@googlemail.com>
1410 * fold-const.c (fold_binary_loc): Use unsigned rather than signed
1411 HOST_WIDE_INTs when folding (x >> c) << c.
1413 2013-11-20 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
1414 Dominik Vogt <vogt@linux.vnet.ibm.com>
1416 * config/s390/s390.c (s390_canonicalize_comparison): Don't fold
1417 int comparisons with an out of range condition code.
1418 (s390_optimize_nonescaping_tx): Skip empty BBs.
1419 Generate the new tbegin RTX when removing the FPR clobbers (with
1421 (s390_expand_tbegin): Fix the retry loop counter. Copy CC to the
1422 result before doing the retry calculations.
1423 (s390_init_builtins): Make tbegin "returns_twice" and tabort
1425 * config/s390/s390.md (UNSPECV_TBEGIN_TDB): New constant used for
1426 the TDB setting part of an tbegin.
1427 ("tbegin_1", "tbegin_nofloat_1"): Add a set for the TDB.
1428 ("tx_assist"): Set unused argument to an immediate zero instead of
1429 loading zero into a GPR and pass it as argument.
1430 * config/s390/htmxlintrin.h (__TM_simple_begin, __TM_begin):
1431 Remove inline and related attributes.
1432 (__TM_nesting_depth, __TM_is_user_abort, __TM_is_named_user_abort)
1433 (__TM_is_illegal, __TM_is_footprint_exceeded)
1434 (__TM_is_nested_too_deep, __TM_is_conflict): Fix format value check.
1436 2013-11-20 Richard Biener <rguenther@suse.de>
1439 * lto-opts.c (lto_write_options): Write defaults only if
1440 they were not explicitely specified. Also write
1441 -ffp-contract default.
1442 * lto-wrapper.c (merge_and_complain): Merge -ffp-contract
1444 (run_gcc): Pass through -ffp-contract.
1446 2013-11-20 Jan-Benedict Glaw <jbglaw@lug-owl.de>
1448 * config/mips/mips.c (r10k_simplify_address): Eliminate macro usage.
1450 2013-11-20 James Greenhalgh <james.greenhalgh@arm.com>
1452 * gcc/config/aarch64/aarch64-builtins.c
1453 (aarch64_simd_itype): Remove.
1454 (aarch64_simd_builtin_datum): Remove itype, add qualifiers pointer.
1455 (VAR1): Use qualifiers.
1456 (aarch64_build_scalar_type): New.
1457 (aarch64_build_vector_type): Likewise.
1458 (aarch64_build_type): Likewise.
1459 (aarch64_init_simd_builtins): Refactor, remove special cases,
1460 consolidate main loop.
1461 (aarch64_simd_expand_args): Likewise.
1463 2013-11-19 Joshua J Cogliati <jrincayc@yahoo.com>
1466 * doc/invoke.texi: Adding documentation about -Wfloat-conversion.
1468 2013-11-19 Miro Kropacek <miro.kropacek@gmail.com>
1470 * config/m68k/m68k.c (m68k_option_overrides): Fix typo.
1472 2013-11-19 David Malcolm <dmalcolm@redhat.com>
1474 * gdbhooks.py (VecPrinter): New class, for prettyprinting pointers
1475 to "vec<>" instances.
1476 (build_pretty_printer): Register the vec<>* prettyprinter.
1478 2013-11-19 David Malcolm <dmalcolm@redhat.com>
1480 * gdbhooks.py (GdbSubprinter.__init__): Drop str_type_ field.
1481 (GdbSubprinter.handles_type): New.
1482 (GdbSubprinterTypeList): New subclass of GdbSubprinter.
1483 (GdbSubprinterRegex): New subclass of GdbSubprinter.
1484 (GdbPrettyPrinters.add_printer): Remove in favor of...
1485 (GdbPrettyPrinters.add_printer_for_types): ...this new method and...
1486 (GdbPrettyPrinters.add_printer_for_regex): ...this other new method.
1487 (GdbPrettyPrinters.__call__): Update search for subprinter
1488 to use handles_type method.
1489 (build_pretty_printer): Update registration of subprinters to
1490 use the new API above, supporting multiple spelling of each type,
1491 and allowing for future regex-based subprinters.
1493 2013-11-19 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
1495 * config/rs6000/rs6000.c (altivec_expand_vec_perm_const): Adjust
1496 V16QI vector splat case for little endian.
1498 2013-11-19 Jeff Law <law@redhat.com>
1500 * tree-ssa-threadedge.c (thread_across_edge): After threading
1501 through a joiner, allow threading a normal block requiring duplication.
1503 * tree-ssa-threadupdate.c (thread_block_1): Improve code to detect
1504 jump threading requests that would muck up the loop structures.
1506 * tree-ssa-threadupdate.c: Fix trailing whitespace.
1507 * tree-ssa-threadupdate.h: Likewise.
1509 2013-11-19 Mike Stump <mikestump@comcast.net>
1511 * gdbinit.in: Add pmz to print out mpz values.
1513 2013-11-20 Jan Hubicka <jh@suse.cz>
1515 * common.opt (ffat-lto-objects): Disable by default.
1516 * doc/invoke.texi (fat-lto-objects): Update documentation.
1517 * opts.c: Enable fat-lto-objects on lto plugin disable setups.
1519 2013-11-19 Martin Jambor <mjambor@suse.cz>
1521 PR rtl-optimization/59099
1522 * ira.c (find_moveable_pseudos): Put back various analyses from ira()
1524 (ira): Move init_reg_equiv and call to
1525 split_live_ranges_for_shrink_wrap up, remove analyses around call
1526 to find_moveable_pseudos.
1528 2013-11-20 Alan Modra <amodra@gmail.com>
1530 * config/rs6000/sysv4.h (CC1_ENDIAN_LITTLE_SPEC): Define as empty.
1531 * config/rs6000/rs6000.c (rs6000_option_override_internal): Default
1532 to strict alignment on older processors when little-endian.
1533 * config/rs6000/linux64.h (PROCESSOR_DEFAULT64): Default to power8
1536 2013-11-19 Teresa Johnson <tejohnson@google.com>
1538 * common/config/i386/i386-common.c: Enable
1539 -freorder-blocks-and-partition at -O2 and up for x86.
1540 * doc/invoke.texi: Update -freorder-blocks-and-partition default.
1541 * opts.c (finish_options): Only warn if
1542 -freorder-blocks-and-partition was set on command line.
1544 2013-11-19 Sriraman Tallam <tmsriram@google.com>
1546 * final.c (final_scan_insn): Emit a label for the split
1547 cold function part. Label name is formed by suffixing
1548 the original function name with "cold".
1550 2013-11-19 David Malcolm <dmalcolm@redhat.com>
1552 * basic-block.h (ENTRY_BLOCK_PTR_FOR_FUNCTION): Rename macro to...
1553 (EXIT_BLOCK_PTR_FOR_FUNCTION): ...this.
1554 (ENTRY_BLOCK_PTR_FOR_FN): Renamed macro to...
1555 (EXIT_BLOCK_PTR_FOR_FN): ...this.
1556 (ENTRY_BLOCK_PTR): Eliminate macro as work towards making uses of
1558 (EXIT_BLOCK_PTR): Likewise.
1559 (FOR_ALL_BB): Rework for now to eliminate use of "ENTRY_BLOCK_PTR".
1560 (FOR_ALL_BB_FN): Update for renaming of
1561 "ENTRY_BLOCK_PTR_FOR_FUNCTION" to "ENTRY_BLOCK_PTR_FOR_FN".
1563 * cfg.c (init_flow): Likewise.
1564 (check_bb_profile): Likewise.
1565 * cfganal.c (pre_and_rev_post_order_compute_fn): Likewise.
1566 * cfgcleanup.c (walk_to_nondebug_insn): Likewise.
1567 * cfghooks.c (account_profile_record): Likewise.
1568 * cfgloop.c (init_loops_structure): Likewise.
1569 * cgraphbuild.c (record_eh_tables): Likewise.
1570 (compute_call_stmt_bb_frequency): Likewise.
1571 * ipa-inline-analysis.c (compute_bb_predicates): Likewise.
1572 * lto-streamer-in.c (input_cfg): Likewise.
1573 * predict.c (maybe_hot_frequency_p): Likewise.
1574 * tree-cfg.c (init_empty_tree_cfg_for_function): Likewise.
1575 * tree-inline.c (initialize_cfun): Likewise.
1576 (copy_cfg_body): Likewise.
1577 (copy_body): Likewise.
1578 (tree_function_versioning): Likewise.
1580 * bb-reorder.c (add_labels_and_missing_jumps): Remove uses of macros:
1581 ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
1582 (duplicate_computed_gotos): Remove usage of EXIT_BLOCK_PTR macro.
1583 (find_rarely_executed_basic_blocks_and_crossing_edges): Remove uses of
1584 macros: ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
1585 (connect_traces): Likewise.
1586 (rest_of_handle_reorder_blocks): Remove usage of EXIT_BLOCK_PTR macro.
1587 (bb_to_key): Remove usage of ENTRY_BLOCK_PTR macro.
1588 (fix_crossing_conditional_branches): Remove usage of EXIT_BLOCK_PTR
1590 (find_traces_1_round): Remove uses of macros: ENTRY_BLOCK_PTR,
1592 (fix_up_fall_thru_edges): Remove usage of EXIT_BLOCK_PTR macro.
1593 (find_traces): Remove usage of ENTRY_BLOCK_PTR macro.
1594 (fix_up_crossing_landing_pad): Remove usage of EXIT_BLOCK_PTR macro.
1595 (rotate_loop): Likewise.
1596 * bt-load.c (migrate_btr_def): Remove usage of ENTRY_BLOCK_PTR macro.
1597 * cfg.c (clear_aux_for_edges): Remove uses of macros: ENTRY_BLOCK_PTR,
1599 (alloc_aux_for_edges): Likewise.
1600 (clear_bb_flags): Remove usage of ENTRY_BLOCK_PTR macro.
1601 (cached_make_edge): Remove uses of macros: ENTRY_BLOCK_PTR,
1603 (compact_blocks): Likewise.
1604 (clear_edges): Likewise.
1605 * cfganal.c (single_pred_before_succ_order): Remove usage of
1606 ENTRY_BLOCK_PTR macro.
1607 (bitmap_union_of_succs): Remove usage of EXIT_BLOCK_PTR macro.
1608 (bitmap_union_of_preds): Remove usage of ENTRY_BLOCK_PTR macro.
1609 (bitmap_intersection_of_succs): Remove usage of EXIT_BLOCK_PTR macro.
1610 (bitmap_intersection_of_preds): Remove usage of ENTRY_BLOCK_PTR macro.
1611 (inverted_post_order_compute): Remove uses of macros: ENTRY_BLOCK_PTR,
1613 (compute_dominance_frontiers_1): Remove usage of ENTRY_BLOCK_PTR macro.
1614 (post_order_compute): Remove uses of macros: ENTRY_BLOCK_PTR,
1616 (connect_infinite_loops_to_exit): Remove usage of EXIT_BLOCK_PTR macro.
1617 (remove_fake_edges): Remove usage of ENTRY_BLOCK_PTR macro.
1618 (add_noreturn_fake_exit_edges): Remove usage of EXIT_BLOCK_PTR macro.
1619 (find_pdom): Remove uses of macros: ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
1620 (remove_fake_exit_edges): Remove usage of EXIT_BLOCK_PTR macro.
1621 (verify_edge_list): Remove uses of macros: ENTRY_BLOCK_PTR,
1623 (print_edge_list): Likewise.
1624 (create_edge_list): Likewise.
1625 (find_unreachable_blocks): Remove usage of ENTRY_BLOCK_PTR macro.
1626 (mark_dfs_back_edges): Remove uses of macros: ENTRY_BLOCK_PTR,
1628 * cfgbuild.c (find_bb_boundaries): Remove usage of ENTRY_BLOCK_PTR
1630 (find_many_sub_basic_blocks): Remove usage of EXIT_BLOCK_PTR macro.
1631 (make_edges): Remove uses of macros: ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
1632 * cfgcleanup.c (delete_unreachable_blocks): Likewise.
1633 (try_optimize_cfg): Likewise.
1634 (try_head_merge_bb): Remove usage of EXIT_BLOCK_PTR macro.
1635 (try_crossjump_to_edge): Remove usage of ENTRY_BLOCK_PTR macro.
1636 (try_crossjump_bb): Remove usage of EXIT_BLOCK_PTR macro.
1637 (merge_blocks_move): Remove usage of ENTRY_BLOCK_PTR macro.
1638 (outgoing_edges_match): Remove usage of EXIT_BLOCK_PTR macro.
1639 (try_forward_edges): Likewise.
1640 (try_simplify_condjump): Likewise.
1641 * cfgexpand.c (gimple_expand_cfg): Remove uses of macros:
1642 ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
1643 (construct_exit_block): Remove usage of EXIT_BLOCK_PTR macro.
1644 (construct_init_block): Remove uses of macros: ENTRY_BLOCK_PTR,
1646 (expand_gimple_basic_block): Remove usage of EXIT_BLOCK_PTR macro.
1647 (expand_gimple_tailcall): Likewise.
1648 * cfghooks.c (can_duplicate_block_p): Remove uses of macros:
1649 ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
1650 (tidy_fallthru_edges): Likewise.
1651 (verify_flow_info): Likewise.
1652 * cfgloop.c (flow_bb_inside_loop_p): Likewise.
1653 (num_loop_branches): Remove usage of EXIT_BLOCK_PTR macro.
1654 (disambiguate_multiple_latches): Remove usage of ENTRY_BLOCK_PTR macro.
1655 (get_loop_exit_edges): Remove usage of EXIT_BLOCK_PTR macro.
1656 (bb_loop_header_p): Remove usage of ENTRY_BLOCK_PTR macro.
1657 (get_loop_body_in_bfs_order): Remove usage of EXIT_BLOCK_PTR macro.
1658 (get_loop_body_in_dom_order): Likewise.
1659 (get_loop_body): Likewise.
1660 * cfgloopanal.c (mark_irreducible_loops): Remove uses of macros:
1661 ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
1662 * cfgloopmanip.c (create_preheader): Remove usage of ENTRY_BLOCK_PTR
1664 (remove_path): Remove usage of EXIT_BLOCK_PTR macro.
1665 (fix_bb_placement): Likewise.
1666 * cfgrtl.c (rtl_block_empty_p): Remove uses of macros:
1667 ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
1668 (rtl_can_remove_branch_p): Remove usage of EXIT_BLOCK_PTR macro.
1669 (cfg_layout_split_edge): Remove uses of macros: ENTRY_BLOCK_PTR,
1671 (rtl_flow_call_edges_add): Remove usage of EXIT_BLOCK_PTR macro.
1672 (cfg_layout_can_merge_blocks_p): Remove uses of macros:
1673 ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
1674 (cfg_layout_redirect_edge_and_branch): Remove usage of ENTRY_BLOCK_PTR
1676 (fixup_fallthru_exit_predecessor): Remove uses of macros:
1677 ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
1678 (fixup_reorder_chain): Likewise.
1679 (relink_block_chain): Likewise.
1680 (cfg_layout_delete_block): Remove usage of EXIT_BLOCK_PTR macro.
1681 (rtl_verify_bb_layout): Remove usage of ENTRY_BLOCK_PTR macro.
1682 (cfg_layout_duplicate_bb): Remove usage of EXIT_BLOCK_PTR macro.
1683 (force_one_exit_fallthru): Likewise.
1684 (rtl_verify_fallthru): Remove uses of macros: ENTRY_BLOCK_PTR,
1686 (rtl_verify_edges): Likewise.
1687 (commit_edge_insertions): Likewise.
1688 (commit_one_edge_insertion): Likewise.
1689 (rtl_split_edge): Likewise.
1690 (force_nonfallthru_and_redirect): Likewise.
1691 (outof_cfg_layout_mode): Remove usage of EXIT_BLOCK_PTR macro.
1692 (skip_insns_after_block): Likewise.
1693 (fixup_partition_crossing): Remove uses of macros: ENTRY_BLOCK_PTR,
1695 (purge_dead_edges): Remove usage of EXIT_BLOCK_PTR macro.
1696 (rtl_can_merge_blocks): Remove uses of macros: ENTRY_BLOCK_PTR,
1698 (contains_no_active_insn_p): Likewise.
1699 (emit_insn_at_entry): Remove usage of ENTRY_BLOCK_PTR macro.
1700 (entry_of_function): Likewise.
1701 (last_bb_in_partition): Remove usage of EXIT_BLOCK_PTR macro.
1702 (fixup_new_cold_bb): Likewise.
1703 (patch_jump_insn): Likewise.
1704 (try_redirect_by_replacing_jump): Likewise.
1705 (block_label): Likewise.
1706 (could_fall_through): Likewise.
1707 (can_fallthru): Likewise.
1708 * cgraphbuild.c (cgraph_rebuild_references): Remove usage of
1709 ENTRY_BLOCK_PTR macro.
1710 (rebuild_cgraph_edges): Likewise.
1711 * cgraphunit.c (init_lowered_empty_function): Remove uses of macros:
1712 ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
1713 (expand_thunk): Remove usage of EXIT_BLOCK_PTR macro.
1714 * combine.c (get_last_value): Remove usage of ENTRY_BLOCK_PTR macro.
1715 (distribute_links): Remove usage of EXIT_BLOCK_PTR macro.
1716 (get_last_value_validate): Remove usage of ENTRY_BLOCK_PTR macro.
1717 (try_combine): Remove usage of EXIT_BLOCK_PTR macro.
1718 (reg_num_sign_bit_copies_for_combine): Remove usage of ENTRY_BLOCK_PTR
1720 (reg_nonzero_bits_for_combine): Likewise.
1721 (set_nonzero_bits_and_sign_copies): Likewise.
1722 (combine_instructions): Likewise.
1723 * cprop.c (one_cprop_pass): Remove uses of macros: ENTRY_BLOCK_PTR,
1725 (bypass_conditional_jumps): Likewise.
1726 (bypass_block): Remove usage of EXIT_BLOCK_PTR macro.
1727 (find_implicit_sets): Likewise.
1728 (cprop_jump): Likewise.
1729 * cse.c (cse_cc_succs): Likewise.
1730 (cse_find_path): Likewise.
1731 * df-problems.c (df_lr_confluence_0): Likewise.
1732 * df-scan.c (df_entry_block_defs_collect): Remove usage of
1733 ENTRY_BLOCK_PTR macro.
1734 (df_exit_block_uses_collect): Remove usage of EXIT_BLOCK_PTR macro.
1735 * dominance.c (iterate_fix_dominators): Remove usage of
1736 ENTRY_BLOCK_PTR macro.
1737 (calc_idoms): Remove uses of macros: ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
1738 (determine_dominators_for_sons): Remove usage of ENTRY_BLOCK_PTR macro.
1739 (calc_dfs_tree): Remove uses of macros: ENTRY_BLOCK_PTR,
1741 (prune_bbs_to_update_dominators): Remove usage of ENTRY_BLOCK_PTR
1743 (calc_dfs_tree_nonrec): Remove uses of macros: ENTRY_BLOCK_PTR,
1745 * domwalk.c (cmp_bb_postorder): Likewise.
1746 * dse.c (dse_step1): Remove usage of EXIT_BLOCK_PTR macro.
1747 * except.c (finish_eh_generation): Remove usage of ENTRY_BLOCK_PTR
1749 (sjlj_emit_function_enter): Likewise.
1750 * final.c (compute_alignments): Likewise.
1751 * function.c (thread_prologue_and_epilogue_insns): Remove uses of
1752 macros: ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
1753 (reposition_prologue_and_epilogue_notes): Remove usage of
1754 EXIT_BLOCK_PTR macro.
1755 (convert_jumps_to_returns): Remove uses of macros: ENTRY_BLOCK_PTR,
1757 (regno_clobbered_at_setjmp): Remove usage of ENTRY_BLOCK_PTR macro.
1758 (next_block_for_reg): Remove usage of EXIT_BLOCK_PTR macro.
1759 * gcse.c (hoist_code): Remove usage of ENTRY_BLOCK_PTR macro.
1760 (update_bb_reg_pressure): Remove usage of EXIT_BLOCK_PTR macro.
1761 (compute_code_hoist_vbeinout): Likewise.
1762 (should_hoist_expr_to_dom): Remove usage of ENTRY_BLOCK_PTR macro.
1763 (pre_expr_reaches_here_p_work): Likewise.
1764 * gimple-iterator.c (gsi_commit_edge_inserts): Likewise.
1765 (gimple_find_edge_insert_loc): Remove uses of macros: ENTRY_BLOCK_PTR,
1767 * gimple-ssa-strength-reduction.c (slsr_process_phi): Remove usage of
1768 ENTRY_BLOCK_PTR macro.
1769 * graph.c (draw_cfg_nodes_for_loop): Remove usage of EXIT_BLOCK_PTR
1771 * graphite-clast-to-gimple.c (translate_clast_user): Remove usage of
1772 ENTRY_BLOCK_PTR macro.
1773 * graphite-scop-detection.c (build_scops): Likewise.
1774 (create_sese_edges): Remove usage of EXIT_BLOCK_PTR macro.
1775 (scopdet_basic_block_info): Remove usage of ENTRY_BLOCK_PTR macro.
1776 * haifa-sched.c (restore_bb_notes): Remove usage of EXIT_BLOCK_PTR
1778 (unlink_bb_notes): Likewise.
1779 (create_check_block_twin): Likewise.
1780 (init_before_recovery): Likewise.
1781 (sched_extend_bb): Likewise.
1782 (priority): Likewise.
1783 * hw-doloop.c (reorder_loops): Likewise.
1784 (discover_loop): Likewise.
1785 * ifcvt.c (dead_or_predicable): Remove uses of macros:
1786 ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
1787 (find_if_case_1): Remove usage of EXIT_BLOCK_PTR macro.
1788 (block_has_only_trap): Likewise.
1789 (cond_exec_find_if_block): Likewise.
1790 (merge_if_block): Likewise.
1791 * ipa-inline-analysis.c (param_change_prob): Remove usage of
1792 ENTRY_BLOCK_PTR macro.
1793 (record_modified): Likewise.
1794 * ipa-pure-const.c (execute_warn_function_noreturn): Remove usage of
1795 EXIT_BLOCK_PTR macro.
1796 (local_pure_const): Likewise.
1797 * ipa-split.c (split_function): Remove uses of macros:
1798 ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
1799 (find_split_points): Likewise.
1800 (consider_split): Likewise.
1801 (find_return_bb): Remove usage of EXIT_BLOCK_PTR macro.
1802 (verify_non_ssa_vars): Remove usage of ENTRY_BLOCK_PTR macro.
1803 * ira-build.c (ira_loop_tree_body_rev_postorder): Likewise.
1804 * ira-color.c (print_loop_title): Remove usage of EXIT_BLOCK_PTR macro.
1805 * ira-emit.c (entered_from_non_parent_p): Remove usage of
1806 ENTRY_BLOCK_PTR macro.
1807 (ira_emit): Remove usage of EXIT_BLOCK_PTR macro.
1808 * ira-int.h (ira_assert): Remove usage of ENTRY_BLOCK_PTR macro.
1809 * ira.c (split_live_ranges_for_shrink_wrap): Remove uses of macros:
1810 ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
1811 * lcm.c (compute_rev_insert_delete): Remove usage of ENTRY_BLOCK_PTR
1813 (compute_nearerout): Remove uses of macros: ENTRY_BLOCK_PTR,
1815 (compute_farthest): Likewise.
1816 (compute_available): Likewise.
1817 (compute_insert_delete): Remove usage of EXIT_BLOCK_PTR macro.
1818 (compute_laterin): Remove uses of macros: ENTRY_BLOCK_PTR,
1820 (compute_earliest): Likewise.
1821 (compute_antinout_edge): Likewise.
1822 * loop-iv.c (simplify_using_initial_values): Remove usage of
1823 ENTRY_BLOCK_PTR macro.
1824 * loop-unswitch.c (unswitch_loop): Remove usage of EXIT_BLOCK_PTR
1826 * lra-assigns.c (find_hard_regno_for): Remove usage of ENTRY_BLOCK_PTR
1828 * lra-constraints.c (lra_inheritance): Remove usage of EXIT_BLOCK_PTR
1830 * lra-lives.c (lra_create_live_ranges): Remove uses of macros:
1831 ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
1832 * lra.c (has_nonexceptional_receiver): Remove usage of EXIT_BLOCK_PTR
1834 * lto-streamer-in.c (input_function): Remove usage of ENTRY_BLOCK_PTR
1836 * lto-streamer-out.c (output_cfg): Likewise.
1837 * mcf.c (adjust_cfg_counts): Remove uses of macros: ENTRY_BLOCK_PTR,
1839 (create_fixup_graph): Remove usage of ENTRY_BLOCK_PTR macro.
1840 * mode-switching.c (optimize_mode_switching): Likewise.
1841 (create_pre_exit): Remove usage of EXIT_BLOCK_PTR macro.
1842 * modulo-sched.c (rest_of_handle_sms): Likewise.
1843 (canon_loop): Likewise.
1844 * omp-low.c (build_omp_regions): Remove usage of ENTRY_BLOCK_PTR macro.
1845 * postreload-gcse.c (eliminate_partially_redundant_loads): Remove uses
1846 of macros: ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
1847 * predict.c (rebuild_frequencies): Remove usage of ENTRY_BLOCK_PTR
1849 (propagate_freq): Remove usage of EXIT_BLOCK_PTR macro.
1850 (estimate_bb_frequencies): Remove usage of ENTRY_BLOCK_PTR macro.
1851 (tree_estimate_probability_bb): Remove usage of EXIT_BLOCK_PTR macro.
1852 (expensive_function_p): Remove usage of ENTRY_BLOCK_PTR macro.
1853 (tree_bb_level_predictions): Remove usage of EXIT_BLOCK_PTR macro.
1854 (counts_to_freqs): Remove usage of ENTRY_BLOCK_PTR macro.
1855 (apply_return_prediction): Remove usage of EXIT_BLOCK_PTR macro.
1856 (estimate_loops): Remove usage of ENTRY_BLOCK_PTR macro.
1857 (gimple_predict_edge): Likewise.
1858 (probably_never_executed): Likewise.
1859 * profile.c (find_spanning_tree): Remove uses of macros:
1860 ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
1861 (branch_prob): Likewise.
1862 (compute_branch_probabilities): Likewise.
1863 (compute_frequency_overlap): Remove usage of ENTRY_BLOCK_PTR macro.
1864 (is_inconsistent): Remove usage of EXIT_BLOCK_PTR macro.
1865 (read_profile_edge_counts): Remove usage of ENTRY_BLOCK_PTR macro.
1866 (set_bb_counts): Likewise.
1867 (correct_negative_edge_counts): Likewise.
1868 (get_exec_counts): Likewise.
1869 (instrument_values): Likewise.
1870 (instrument_edges): Likewise.
1871 * reg-stack.c (convert_regs): Remove uses of macros: ENTRY_BLOCK_PTR,
1873 (compensate_edges): Remove usage of ENTRY_BLOCK_PTR macro.
1874 (convert_regs_exit): Remove usage of EXIT_BLOCK_PTR macro.
1875 (convert_regs_entry): Remove usage of ENTRY_BLOCK_PTR macro.
1876 (reg_to_stack): Likewise.
1877 * regs.h (REG_N_SETS): Likewise.
1878 * reload.c (find_dummy_reload): Likewise.
1879 (combine_reloads): Likewise.
1880 (push_reload): Likewise.
1881 * reload1.c (has_nonexceptional_receiver): Remove usage of
1882 EXIT_BLOCK_PTR macro.
1883 * resource.c (mark_target_live_regs): Remove usage of ENTRY_BLOCK_PTR
1885 (find_basic_block): Likewise.
1886 * sched-ebb.c (ebb_add_block): Remove usage of EXIT_BLOCK_PTR macro.
1887 (schedule_ebbs): Likewise.
1888 * sched-int.h (sel_sched_p): Likewise.
1889 * sched-rgn.c (compute_dom_prob_ps): Remove usage of ENTRY_BLOCK_PTR
1891 (rgn_add_block): Remove usage of EXIT_BLOCK_PTR macro.
1892 (haifa_find_rgns): Remove uses of macros: ENTRY_BLOCK_PTR,
1894 (propagate_deps): Remove usage of EXIT_BLOCK_PTR macro.
1895 (extend_rgns): Likewise.
1896 (find_single_block_region): Likewise.
1897 * sel-sched-ir.c (sel_remove_loop_preheader): Remove usage of
1898 ENTRY_BLOCK_PTR macro.
1899 (setup_nop_and_exit_insns): Remove usage of EXIT_BLOCK_PTR macro.
1900 (sel_create_recovery_block): Likewise.
1901 (bb_ends_ebb_p): Likewise.
1902 (sel_bb_end): Likewise.
1903 (sel_bb_head): Likewise.
1904 (free_lv_sets): Likewise.
1905 (init_lv_sets): Likewise.
1906 (tidy_control_flow): Likewise.
1907 (maybe_tidy_empty_bb): Likewise.
1908 * sel-sched-ir.h (_succ_iter_cond): Likewise.
1909 (_succ_iter_start): Likewise.
1910 (sel_bb_empty_or_nop_p): Likewise.
1911 (get_loop_exit_edges_unique_dests): Likewise.
1912 (inner_loop_header_p): Likewise.
1913 * sel-sched.c (create_block_for_bookkeeping): Likewise.
1914 (find_block_for_bookkeeping): Likewise.
1915 * store-motion.c (remove_reachable_equiv_notes): Likewise.
1916 (insert_store): Likewise.
1917 * trans-mem.c (ipa_tm_transform_clone): Remove usage of
1918 ENTRY_BLOCK_PTR macro.
1919 (tm_memopt_compute_available): Remove usage of EXIT_BLOCK_PTR macro.
1920 (ipa_tm_scan_irr_function): Remove usage of ENTRY_BLOCK_PTR macro.
1921 (gate_tm_init): Likewise.
1922 (tm_region_init): Likewise.
1923 * tree-cfg.c (execute_fixup_cfg): Remove uses of macros:
1924 ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
1925 (execute_warn_function_return): Remove usage of EXIT_BLOCK_PTR macro.
1926 (split_critical_edges): Remove uses of macros: ENTRY_BLOCK_PTR,
1928 (print_loops): Remove usage of ENTRY_BLOCK_PTR macro.
1929 (move_sese_region_to_fn): Remove uses of macros: ENTRY_BLOCK_PTR,
1931 (gimple_redirect_edge_and_branch): Remove usage of ENTRY_BLOCK_PTR
1933 (gimple_verify_flow_info): Remove uses of macros: ENTRY_BLOCK_PTR,
1935 (remove_edge_and_dominated_blocks): Remove usage of EXIT_BLOCK_PTR
1937 (make_edges): Remove uses of macros: ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
1938 (gimple_flow_call_edges_add): Remove usage of EXIT_BLOCK_PTR macro.
1939 (make_blocks): Remove usage of ENTRY_BLOCK_PTR macro.
1940 (build_gimple_cfg): Likewise.
1941 (gimple_duplicate_bb): Remove usage of EXIT_BLOCK_PTR macro.
1942 (gimple_can_merge_blocks_p): Likewise.
1943 * tree-cfgcleanup.c (tree_forwarder_block_p): Remove uses of macros:
1944 ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
1945 * tree-complex.c (update_parameter_components): Remove usage of
1946 ENTRY_BLOCK_PTR macro.
1947 * tree-if-conv.c (get_loop_body_in_if_conv_order): Remove usage of
1948 EXIT_BLOCK_PTR macro.
1949 * tree-inline.c (tree_function_versioning): Remove uses of macros:
1950 ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
1951 (delete_unreachable_blocks_update_callgraph): Likewise.
1952 (initialize_cfun): Likewise.
1953 (copy_cfg_body): Remove usage of ENTRY_BLOCK_PTR macro.
1954 (copy_edges_for_bb): Remove usage of EXIT_BLOCK_PTR macro.
1955 (remap_ssa_name): Remove usage of ENTRY_BLOCK_PTR macro.
1956 * tree-into-ssa.c (update_ssa): Likewise.
1957 (maybe_register_def): Remove usage of EXIT_BLOCK_PTR macro.
1958 (insert_updated_phi_nodes_for): Remove usage of ENTRY_BLOCK_PTR macro.
1959 (rewrite_into_ssa): Likewise.
1960 (rewrite_debug_stmt_uses): Likewise.
1961 * tree-outof-ssa.c (expand_phi_nodes): Remove uses of macros:
1962 ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
1963 * tree-profile.c (gimple_gen_ic_func_profiler): Remove usage of
1964 ENTRY_BLOCK_PTR macro.
1965 * tree-scalar-evolution.h (block_before_loop): Likewise.
1966 * tree-sra.c (sra_ipa_reset_debug_stmts): Likewise.
1967 (dump_dereferences_table): Remove uses of macros: ENTRY_BLOCK_PTR,
1969 (analyze_caller_dereference_legality): Remove usage of ENTRY_BLOCK_PTR
1971 (propagate_dereference_distances): Remove uses of macros:
1972 ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
1973 (initialize_parameter_reductions): Remove usage of ENTRY_BLOCK_PTR
1975 * tree-ssa-ccp.c (gsi_prev_dom_bb_nondebug): Likewise.
1976 (optimize_stack_restore): Remove usage of EXIT_BLOCK_PTR macro.
1977 * tree-ssa-coalesce.c (create_outofssa_var_map): Likewise.
1978 * tree-ssa-dce.c (eliminate_unnecessary_stmts): Remove uses of macros:
1979 ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
1980 (remove_dead_stmt): Remove usage of EXIT_BLOCK_PTR macro.
1981 (propagate_necessity): Remove usage of ENTRY_BLOCK_PTR macro.
1982 (mark_control_dependent_edges_necessary): Remove uses of macros:
1983 ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
1984 * tree-ssa-dom.c (eliminate_degenerate_phis): Remove usage of
1985 ENTRY_BLOCK_PTR macro.
1986 (tree_ssa_dominator_optimize): Remove usage of EXIT_BLOCK_PTR macro.
1987 * tree-ssa-live.c (verify_live_on_entry): Remove uses of macros:
1988 ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
1989 (calculate_live_on_exit): Likewise.
1990 (set_var_live_on_entry): Remove usage of ENTRY_BLOCK_PTR macro.
1991 (loe_visit_block): Likewise.
1992 * tree-ssa-live.h (live_on_exit): Remove uses of macros:
1993 ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
1994 (live_on_entry): Likewise.
1995 * tree-ssa-loop-ivopts.c (find_interesting_uses): Remove usage of
1996 EXIT_BLOCK_PTR macro.
1997 * tree-ssa-loop-manip.c (compute_live_loop_exits): Remove usage of
1998 ENTRY_BLOCK_PTR macro.
1999 * tree-ssa-loop-niter.c (simplify_using_initial_conditions): Likewise.
2000 (bound_difference): Likewise.
2001 * tree-ssa-loop-prefetch.c (may_use_storent_in_loop_p): Remove usage
2002 of EXIT_BLOCK_PTR macro.
2003 * tree-ssa-loop-unswitch.c (simplify_using_entry_checks): Remove usage
2004 of ENTRY_BLOCK_PTR macro.
2005 * tree-ssa-math-opts.c (register_division_in): Likewise.
2006 * tree-ssa-phiprop.c (tree_ssa_phiprop): Likewise.
2007 * tree-ssa-pre.c (compute_avail): Likewise.
2008 (compute_antic): Remove usage of EXIT_BLOCK_PTR macro.
2009 (insert): Remove usage of ENTRY_BLOCK_PTR macro.
2010 * tree-ssa-propagate.c (ssa_prop_init): Likewise.
2011 (simulate_block): Remove usage of EXIT_BLOCK_PTR macro.
2012 (cfg_blocks_add): Remove uses of macros: ENTRY_BLOCK_PTR,
2014 (add_control_edge): Remove usage of EXIT_BLOCK_PTR macro.
2015 * tree-ssa-reassoc.c (do_reassoc): Remove uses of macros:
2016 ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
2017 (build_and_add_sum): Remove usage of ENTRY_BLOCK_PTR macro.
2018 * tree-ssa-sink.c (nearest_common_dominator_of_uses): Likewise.
2019 (execute_sink_code): Remove usage of EXIT_BLOCK_PTR macro.
2020 * tree-ssa-uninit.c (find_dom): Remove usage of ENTRY_BLOCK_PTR macro.
2021 (compute_control_dep_chain): Remove usage of EXIT_BLOCK_PTR macro.
2022 (find_pdom): Likewise.
2023 (warn_uninitialized_vars): Remove usage of ENTRY_BLOCK_PTR macro.
2024 * tree-stdarg.c (reachable_at_most_once): Likewise.
2025 * tree-tailcall.c (tree_optimize_tail_calls_1): Remove uses of macros:
2026 ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
2027 (eliminate_tail_call): Likewise.
2028 * tsan.c (instrument_func_entry): Remove usage of ENTRY_BLOCK_PTR
2030 (instrument_func_exit): Remove usage of EXIT_BLOCK_PTR macro.
2031 * var-tracking.c (vt_initialize): Remove uses of macros:
2032 ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
2033 (vt_add_function_parameter): Remove usage of ENTRY_BLOCK_PTR macro.
2034 (vt_find_locations): Remove usage of EXIT_BLOCK_PTR macro.
2035 (vt_stack_adjustments): Remove uses of macros: ENTRY_BLOCK_PTR,
2037 * varasm.c (assemble_start_function): Remove usage of ENTRY_BLOCK_PTR
2039 * config/bfin/bfin.c (hwloop_optimize): Likewise.
2040 * config/nds32/nds32.c (nds32_fp_as_gp_check_available): Remove usage
2041 of EXIT_BLOCK_PTR macro.
2042 * config/arm/arm.c (require_pic_register): Remove usage of
2043 ENTRY_BLOCK_PTR macro.
2044 (arm_r3_live_at_start_p): Likewise.
2045 (any_sibcall_could_use_r3): Remove usage of EXIT_BLOCK_PTR macro.
2046 * config/rs6000/rs6000.c (rs6000_emit_prologue): Likewise.
2047 * config/frv/frv.c (frv_optimize_membar_global): Likewise.
2048 * config/alpha/alpha.c (alpha_gp_save_rtx): Remove usage of
2049 ENTRY_BLOCK_PTR macro.
2050 * config/i386/i386.c (ix86_count_insn): Likewise.
2051 (ix86_seh_fixup_eh_fallthru): Remove usage of EXIT_BLOCK_PTR macro.
2052 (ix86_pad_short_function): Likewise.
2053 (ix86_compute_frame_layout): Remove usage of ENTRY_BLOCK_PTR macro.
2054 (ix86_pad_returns): Remove usage of EXIT_BLOCK_PTR macro.
2055 (ix86_eax_live_at_start_p): Remove usage of ENTRY_BLOCK_PTR macro.
2056 (add_condition_to_bb): Remove usage of EXIT_BLOCK_PTR macro.
2057 (ix86_expand_epilogue): Likewise.
2058 * config/ia64/ia64.c (ia64_asm_unwind_emit): Likewise.
2059 (ia64_expand_prologue): Likewise.
2061 2013-11-19 Catherine Moore <clm@codesourcery.com>
2063 * doc/invoke.texi (mfix-rm7000, mno-fix-rm7000): Document.
2064 * config/mips/mips.opt (mfix-rm7000): New option.
2065 * config/mips/mips.h (ASM_SPEC): Handle mfix-rm7000.
2066 * config/mips/mips.c (mips_reorg_process_insns): Disable
2067 noreorder for TARGET_FIX_RM7000.
2069 2013-11-19 Oleg Endo <olegendo@gcc.gnu.org>
2071 * config/sh/sh-c.c: Fix typo in include of file attribs.h.
2073 2013-11-19 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2075 * config/arm/arm.c (arm_new_rtx_costs):
2076 Handle narrow mode add-shifts properly.
2077 * config/arm/arm-common.c (arm_rtx_shift_left_p): Remove static.
2078 * config/arm/arm-common-protos.h (arm_rtx_shift_left_p):
2081 2013-11-19 James Greenhalgh <james.greenhalgh@arm.com>
2083 * config/arm/arm.md (zero_extend<mode>di2): Add type attribute.
2085 2013-11-19 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
2087 * config/rs6000/vector.md ("mov<mode>"): Do not call
2088 rs6000_emit_le_vsx_move to move into or out of GPRs.
2089 * config/rs6000/rs6000.c (rs6000_emit_le_vsx_move): Assert
2090 source and destination are not GPR hard regs.
2092 2013-11-19 David Malcolm <dmalcolm@redhat.com>
2094 * basic-block.h (n_edges_for_function): Rename macro to...
2095 (n_edges_for_fn): ...this.
2096 (n_edges): Eliminate macro as work towards making uses of
2099 * cfg.c (init_flow): Update for renaming of "n_edges_for_function"
2100 to "n_edges_for_fn".
2102 * cfg.c (unchecked_make_edge): Remove usage of n_edges macro.
2103 (clear_edges): Likewise.
2104 (free_edge): Likewise.
2105 * cfghooks.c (dump_flow_info): Likewise.
2106 * cprop.c (is_too_expensive): Likewise.
2107 * df-core.c (df_worklist_dataflow_doublequeue): Likewise.
2108 * gcse.c (is_too_expensive): Likewise.
2109 (prune_insertions_deletions): Likewise.
2110 * mcf.c (create_fixup_graph): Likewise.
2111 * sched-rgn.c (haifa_find_rgns): Likewise.
2112 * tree-cfg.c (gimple_dump_cfg): Likewise.
2113 * var-tracking.c (variable_tracking_main_1): Likewise.
2115 2013-11-19 Marcus Shawcroft <marcus.shawcroft@arm.com>
2117 * config/aarch64/aarch64.c (aarch64_save_or_restore_fprs): Fix over
2120 2013-11-19 Marcus Shawcroft <marcus.shawcroft@arm.com>
2122 * config/aarch64/aarch64.md
2123 (aarch64_movdi_<mode>low, *add_<shift>_si_uxtw): Adjust whitespace.
2125 2013-11-19 Marcus Shawcroft <marcus.shawcroft@arm.com>
2127 * config/aarch64/aarch64.h (PROFILE_HOOK): Fix whitespace.
2129 2013-11-19 Joseph Myers <joseph@codesourcery.com>
2131 * varasm.c (align_variable): Give error instead of warning for
2132 unsupported alignment.
2133 (assemble_noswitch_variable): Likewise.
2135 2013-11-19 Basile Starynkevitch <basile@starynkevitch.net>
2137 * plugin.def (PLUGIN_INCLUDE_FILE): New event, invoked in
2140 2013-11-19 Peter Bergner <bergner@vnet.ibm.com>
2142 * loop-doloop.c (doloop_optimize_loops): Remove unused
2143 loop iterator argument from FOR_EACH_LOOP.
2145 2013-11-19 David Malcolm <dmalcolm@redhat.com>
2147 Convert gimple types from a union to C++ inheritance.
2148 * Makefile.in (GIMPLE_H): Add dep on is-a.h.
2149 * coretypes.h (union gimple_statement_d): Remove declaration.
2150 (gimple): Convert from being a "union gimple_statement_d *"
2151 to a "struct gimple_statement_base *".
2152 (const_gimple): Likewise (with "const").
2153 * ggc.h (ggc_alloc_cleared_gimple_statement_d_stat): Replace with...
2154 (ggc_alloc_cleared_gimple_statement_stat): ...this.
2155 * gimple-pretty-print.c (debug): Change parameter from a
2156 "gimple_statement_d &" to a "gimple_statement_base &".
2157 (debug): Change parameter from a "gimple_statement_d *" to
2158 a "gimple_statement_base *".
2159 * gimple-pretty-print.h (debug): Update declarations as above.
2160 * gimple.c (gimple_alloc_stat): Update for renaming of
2161 ggc_alloc_cleared_gimple_statement_d_stat to
2162 ggc_alloc_cleared_gimple_statement_stat.
2163 * gimple.h: Include "is-a.h" for use by is_a_helper
2164 specializations in followup autogenerated patch.
2165 (struct gimple statement_base): Make this type usable as a base
2166 class by adding "desc", "tag" and "variable_size" to GTY, thus
2167 using opting-in to gengtype's support for simple inheritance.
2168 (gimple_statement_with_ops_base): Convert to a subclass of
2169 gimple_statement_base, dropping initial "gsbase" field. Note that
2170 this type is abstract, with no GSS_ value, and thus no GTY tag value.
2171 (gimple_statement_with_ops): Convert to a subclass of
2172 gimple_statement_with_ops_base, dropping initial "opbase" field.
2173 Add tag value to GTY marking. Update marking of op field to
2174 reflect how num_ops field is accessed via inheritance.
2175 (gimple_statement_with_memory_ops_base): Convert to a subclass of
2176 gimple_statement_with_ops_base, dropping initial "opbase" field.
2177 Add tag value to GTY marking.
2178 (gimple_statement_with_memory_ops): Convert to a subclass of
2179 public gimple_statement_with_memory_ops_base, dropping initial
2180 "membase" field. Add tag value to GTY marking. Update marking
2181 of op field to reflect how num_ops field is accessed via inheritance.
2182 (gimple_statement_call): Analogous changes that also update the
2183 marking of the "u" union.
2184 (gimple_statement_omp): Convert to a subclass of
2185 gimple_statement_base, dropping initial "gsbase" field, adding
2186 tag value to GTY marking.
2187 (gimple_statement_bind): Likewise.
2188 (gimple_statement_catch): Likewise.
2189 (gimple_statement_eh_filter): Likewise.
2190 (gimple_statement_eh_else): Likewise.
2191 (gimple_statement_eh_mnt): Likewise.
2192 (gimple_statement_phi): Likewise.
2193 (gimple_statement_eh_ctrl): Likewise.
2194 (gimple_statement_try): Likewise.
2195 (gimple_statement_wce): Likewise.
2196 (gimple_statement_asm): Convert to a subclass of
2197 gimple_statement_with_memory_ops_base, dropping initial
2198 "membase" field, adding tag value to GTY marking, and updating
2199 marking of op field.
2200 (gimple_statement_omp_critical): Convert to a subclass of
2201 gimple_statement_omp, dropping initial "omp" field, adding tag
2202 value to GTY marking.
2203 (gimple_statement_omp_for): Likewise.
2204 (gimple_statement_omp_parallel): Likewise.
2205 (gimple_statement_omp_task): Convert to a subclass of
2206 gimple_statement_omp_parallel, dropping initial "par" field,
2207 adding tag value to GTY marking.
2208 (gimple_statement_omp_sections): Convert to a subclass of
2209 gimple_statement_omp, dropping initial "omp" field, adding
2210 tag value to GTY marking.
2211 (gimple_statement_omp_continue): Convert to a subclass of
2212 gimple_statement_base, dropping initial "gsbase" field, adding
2213 tag value to GTY marking.
2214 (gimple_statement_omp_single): Convert to a subclass of
2215 gimple_statement_omp, dropping initial "omp" field, adding
2216 tag value to GTY marking.
2217 (gimple_statement_omp_atomic_load): Convert to a subclass of
2218 gimple_statement_base, dropping initial "gsbase" field, adding
2219 tag value to GTY marking.
2220 (gimple_statement_omp_atomic_store): Convert to a subclass of
2221 gimple_statement_base, dropping initial "gsbase" field, adding
2222 tag value to GTY marking.
2223 (gimple_statement_transaction): Convert to a subclass of
2224 gimple_statement_with_memory_ops_base, dropping initial "gsbase"
2225 field, adding tag value to GTY marking.
2226 (union gimple_statement_d): Remove.
2227 * system.h (CONST_CAST_GIMPLE): Update to use
2228 "struct gimple_statement_base *" rather than
2229 "union gimple_statement_d *".
2230 * tree-ssa-ccp.c (gimple_htab): Convert underlying type from
2231 gimple_statement_d to gimple_statement_base.
2233 * gimple.h (gimple_use_ops): Port from union to usage of dyn_cast.
2234 (gimple_set_use_ops): Port from union to usage of as_a.
2235 (gimple_set_vuse): Likewise.
2236 (gimple_set_vdef): Likewise.
2237 (gimple_call_internal_fn): Port from union to a static_cast,
2238 given that the type has already been asserted.
2239 (gimple_omp_body_ptr): Port from unchecked union usage to
2241 (gimple_omp_set_body): Likewise.
2243 * gimple-iterator.c (update_bb_for_stmts): Update for conversion of
2244 gimple types to a true class hierarchy.
2245 (update_call_edge_frequencies): Likewise.
2246 (gsi_insert_seq_nodes_before): Likewise.
2247 (gsi_insert_seq_nodes_after): Likewise.
2248 (gsi_split_seq_after): Likewise.
2249 (gsi_set_stmt): Likewise.
2250 (gsi_split_seq_before): Likewise.
2251 (gsi_remove): Likewise.
2252 * gimple-iterator.h (gsi_one_before_end_p): Likewise.
2253 (gsi_next): Likewise.
2254 (gsi_prev): Likewise.
2255 * gimple-pretty-print.c (dump_gimple_debug): Likewise.
2256 * gimple-ssa.h (gimple_vuse_op): Likewise.
2257 (gimple_vdef_op): Likewise.
2258 * gimple-streamer-in.c (input_gimple_stmt): Likewise.
2259 * gimple-streamer-out.c (output_gimple_stmt): Likewise.
2260 * gimple.c (gimple_set_code): Likewise.
2261 (gimple_alloc_stat): Likewise.
2262 (gimple_set_subcode): Likewise.
2263 (gimple_build_call_internal_1): Likewise.
2264 (gimple_check_failed): Likewise.
2265 (gimple_call_flags): Likewise.
2266 (gimple_set_bb): Likewise.
2267 * gimple.h (is_a_helper <gimple_statement_asm> (gimple)): New.
2268 (is_a_helper <gimple_statement_bind> (gimple)): Likewise.
2269 (is_a_helper <gimple_statement_call> (gimple)): Likewise.
2270 (is_a_helper <gimple_statement_catch> (gimple)): Likewise.
2271 (is_a_helper <gimple_statement_eh_ctrl> (gimple)): Likewise.
2272 (is_a_helper <gimple_statement_eh_else> (gimple)): Likewise.
2273 (is_a_helper <gimple_statement_eh_filter> (gimple)): Likewise.
2274 (is_a_helper <gimple_statement_eh_mnt> (gimple)): Likewise.
2275 (is_a_helper <gimple_statement_omp_atomic_load> (gimple)): Likewise.
2276 (is_a_helper <gimple_statement_omp_atomic_store> (gimple)): Likewise.
2277 (is_a_helper <gimple_statement_omp_continue> (gimple)): Likewise.
2278 (is_a_helper <gimple_statement_omp_critical> (gimple)): Likewise.
2279 (is_a_helper <gimple_statement_omp_for> (gimple)): Likewise.
2280 (is_a_helper <gimple_statement_omp_parallel> (gimple)): Likewise.
2281 (is_a_helper <gimple_statement_omp_sections> (gimple)): Likewise.
2282 (is_a_helper <gimple_statement_omp_single> (gimple)): Likewise.
2283 (is_a_helper <gimple_statement_omp_task> (gimple)): Likewise.
2284 (is_a_helper <gimple_statement_phi> (gimple)): Likewise.
2285 (is_a_helper <gimple_statement_transaction> (gimple)): Likewise.
2286 (is_a_helper <gimple_statement_try> (gimple)): Likewise.
2287 (is_a_helper <gimple_statement_wce> (gimple)): Likewise.
2288 (is_a_helper <const gimple_statement_asm> (const_gimple)): Likewise.
2289 (is_a_helper <const gimple_statement_bind> (const_gimple)): Likewise.
2290 (is_a_helper <const gimple_statement_call> (const_gimple)): Likewise.
2291 (is_a_helper <const gimple_statement_catch> (const_gimple)): Likewise.
2292 (is_a_helper <const gimple_statement_eh_ctrl> (const_gimple)):
2294 (is_a_helper <const gimple_statement_eh_filter> (const_gimple)):
2296 (is_a_helper <const gimple_statement_omp_atomic_load> (const_gimple)):
2298 (is_a_helper <const gimple_statement_omp_atomic_store>
2299 (const_gimple)): Likewise.
2300 (is_a_helper <const gimple_statement_omp_continue> (const_gimple)):
2302 (is_a_helper <const gimple_statement_omp_critical> (const_gimple)):
2304 (is_a_helper <const gimple_statement_omp_for> (const_gimple)):
2306 (is_a_helper <const gimple_statement_omp_parallel> (const_gimple)):
2308 (is_a_helper <const gimple_statement_omp_sections> (const_gimple)):
2310 (is_a_helper <const gimple_statement_omp_single> (const_gimple)):
2312 (is_a_helper <const gimple_statement_omp_task> (const_gimple)):
2314 (is_a_helper <const gimple_statement_phi> (const_gimple)): Likewise.
2315 (is_a_helper <const gimple_statement_transaction> (const_gimple)):
2317 (gimple_seq_last): Update for conversion of gimple types to a true
2319 (gimple_seq_set_last): Likewise.
2320 (gimple_code): Likewise.
2321 (gimple_bb): Likewise.
2322 (gimple_block): Likewise.
2323 (gimple_set_block): Likewise.
2324 (gimple_location): Likewise.
2325 (gimple_location_ptr): Likewise.
2326 (gimple_set_location): Likewise.
2327 (gimple_no_warning_p): Likewise.
2328 (gimple_set_no_warning): Likewise.
2329 (gimple_set_visited): Likewise.
2330 (gimple_visited_p): Likewise.
2331 (gimple_set_plf): Likewise.
2332 (gimple_plf): Likewise.
2333 (gimple_set_uid): Likewise.
2334 (gimple_uid): Likewise.
2335 (gimple_init_singleton): Likewise.
2336 (gimple_modified_p): Likewise.
2337 (gimple_set_modified): Likewise.
2338 (gimple_expr_code): Likewise.
2339 (gimple_has_volatile_ops): Likewise.
2340 (gimple_set_has_volatile_ops): Likewise.
2341 (gimple_omp_subcode): Likewise.
2342 (gimple_omp_set_subcode): Likewise.
2343 (gimple_omp_return_set_nowait): Likewise.
2344 (gimple_omp_section_set_last): Likewise.
2345 (gimple_omp_parallel_set_combined_p): Likewise.
2346 (gimple_omp_atomic_set_need_value): Likewise.
2347 (gimple_omp_atomic_set_seq_cst): Likewise.
2348 (gimple_num_ops): Likewise.
2349 (gimple_set_num_ops): Likewise.
2350 (gimple_assign_nontemporal_move_p): Likewise.
2351 (gimple_assign_set_nontemporal_move): Likewise.
2352 (gimple_assign_rhs_code): Likewise.
2353 (gimple_assign_set_rhs_code): Likewise.
2354 (gimple_call_internal_p): Likewise.
2355 (gimple_call_with_bounds_p): Likewise.
2356 (gimple_call_set_with_bounds): Likewise.
2357 (gimple_call_set_tail): Likewise.
2358 (gimple_call_tail_p): Likewise.
2359 (gimple_call_set_return_slot_opt): Likewise.
2360 (gimple_call_return_slot_opt_p): Likewise.
2361 (gimple_call_set_from_thunk): Likewise.
2362 (gimple_call_from_thunk_p): Likewise.
2363 (gimple_call_set_va_arg_pack): Likewise.
2364 (gimple_call_va_arg_pack_p): Likewise.
2365 (gimple_call_set_nothrow): Likewise.
2366 (gimple_call_set_alloca_for_var): Likewise.
2367 (gimple_call_alloca_for_var_p): Likewise.
2368 (gimple_call_copy_flags): Likewise.
2369 (gimple_cond_code): Likewise.
2370 (gimple_cond_set_code): Likewise.
2371 (gimple_cond_make_false): Likewise.
2372 (gimple_cond_make_true): Likewise.
2373 (gimple_asm_volatile_p): Likewise.
2374 (gimple_asm_set_volatile): Likewise.
2375 (gimple_asm_set_input): Likewise.
2376 (gimple_asm_input_p): Likewise.
2377 (gimple_try_kind): Likewise.
2378 (gimple_try_set_kind): Likewise.
2379 (gimple_try_catch_is_cleanup): Likewise.
2380 (gimple_try_set_catch_is_cleanup): Likewise.
2381 (gimple_wce_cleanup_eh_only): Likewise.
2382 (gimple_wce_set_cleanup_eh_only): Likewise.
2383 (gimple_debug_bind_p): Likewise.
2384 (gimple_debug_source_bind_p): Likewise.
2385 (gimple_omp_for_set_kind): Likewise.
2386 (gimple_omp_for_set_combined_p): Likewise.
2387 (gimple_omp_for_set_combined_into_p): Likewise.
2388 (gimple_omp_target_set_kind): Likewise.
2389 (gimple_transaction_subcode): Likewise.
2390 (gimple_transaction_set_subcode): Likewise.
2391 (gimple_predict_predictor): Likewise.
2392 (gimple_predict_set_predictor): Likewise.
2393 (gimple_predict_outcome): Likewise.
2394 (gimple_predict_set_outcome): Likewise.
2395 (gimple_transaction_set_label): Likewise.
2396 (gimple_transaction_set_body): Likewise.
2397 (gimple_transaction_label_ptr): Likewise.
2398 (gimple_transaction_label): Likewise.
2399 (gimple_transaction_body_ptr): Likewise.
2400 (gimple_omp_continue_set_control_use): Likewise.
2401 (gimple_omp_continue_control_use_ptr): Likewise.
2402 (gimple_omp_continue_control_use): Likewise.
2403 (gimple_omp_continue_set_control_def): Likewise.
2404 (gimple_omp_continue_control_def_ptr): Likewise.
2405 (gimple_omp_continue_control_def): Likewise.
2406 (gimple_omp_atomic_load_rhs_ptr): Likewise.
2407 (gimple_omp_atomic_load_rhs): Likewise.
2408 (gimple_omp_atomic_load_set_rhs): Likewise.
2409 (gimple_omp_atomic_load_lhs_ptr): Likewise.
2410 (gimple_omp_atomic_load_lhs): Likewise.
2411 (gimple_omp_atomic_load_set_lhs): Likewise.
2412 (gimple_omp_atomic_store_val_ptr): Likewise.
2413 (gimple_omp_atomic_store_val): Likewise.
2414 (gimple_omp_atomic_store_set_val): Likewise.
2415 (gimple_omp_for_cond): Likewise.
2416 (gimple_omp_for_set_cond): Likewise.
2417 (gimple_omp_sections_set_control): Likewise.
2418 (gimple_omp_sections_control_ptr): Likewise.
2419 (gimple_omp_sections_control): Likewise.
2420 (gimple_omp_sections_set_clauses): Likewise.
2421 (gimple_omp_sections_clauses_ptr): Likewise.
2422 (gimple_omp_sections_clauses): Likewise.
2423 (gimple_omp_teams_set_clauses): Likewise.
2424 (gimple_omp_teams_clauses_ptr): Likewise.
2425 (gimple_omp_teams_clauses): Likewise.
2426 (gimple_omp_target_set_data_arg): Likewise.
2427 (gimple_omp_target_data_arg_ptr): Likewise.
2428 (gimple_omp_target_data_arg): Likewise.
2429 (gimple_omp_target_set_child_fn): Likewise.
2430 (gimple_omp_target_child_fn_ptr): Likewise.
2431 (gimple_omp_target_child_fn): Likewise.
2432 (gimple_omp_target_set_clauses): Likewise.
2433 (gimple_omp_target_clauses_ptr): Likewise.
2434 (gimple_omp_target_clauses): Likewise.
2435 (gimple_omp_single_set_clauses): Likewise.
2436 (gimple_omp_single_clauses_ptr): Likewise.
2437 (gimple_omp_single_clauses): Likewise.
2438 (gimple_omp_task_set_arg_align): Likewise.
2439 (gimple_omp_task_arg_align_ptr): Likewise.
2440 (gimple_omp_task_arg_align): Likewise.
2441 (gimple_omp_task_set_arg_size): Likewise.
2442 (gimple_omp_task_arg_size_ptr): Likewise.
2443 (gimple_omp_task_arg_size): Likewise.
2444 (gimple_omp_task_set_copy_fn): Likewise.
2445 (gimple_omp_task_copy_fn_ptr): Likewise.
2446 (gimple_omp_task_copy_fn): Likewise.
2447 (gimple_omp_task_set_data_arg): Likewise.
2448 (gimple_omp_task_data_arg_ptr): Likewise.
2449 (gimple_omp_task_data_arg): Likewise.
2450 (gimple_omp_task_set_child_fn): Likewise.
2451 (gimple_omp_task_child_fn_ptr): Likewise.
2452 (gimple_omp_task_child_fn): Likewise.
2453 (gimple_omp_task_set_clauses): Likewise.
2454 (gimple_omp_task_clauses_ptr): Likewise.
2455 (gimple_omp_task_clauses): Likewise.
2456 (gimple_omp_parallel_set_data_arg): Likewise.
2457 (gimple_omp_parallel_data_arg_ptr): Likewise.
2458 (gimple_omp_parallel_data_arg): Likewise.
2459 (gimple_omp_parallel_set_child_fn): Likewise.
2460 (gimple_omp_parallel_child_fn_ptr): Likewise.
2461 (gimple_omp_parallel_child_fn): Likewise.
2462 (gimple_omp_parallel_set_clauses): Likewise.
2463 (gimple_omp_parallel_clauses_ptr): Likewise.
2464 (gimple_omp_parallel_clauses): Likewise.
2465 (gimple_omp_for_set_pre_body): Likewise.
2466 (gimple_omp_for_pre_body_ptr): Likewise.
2467 (gimple_omp_for_set_incr): Likewise.
2468 (gimple_omp_for_incr_ptr): Likewise.
2469 (gimple_omp_for_incr): Likewise.
2470 (gimple_omp_for_set_final): Likewise.
2471 (gimple_omp_for_final_ptr): Likewise.
2472 (gimple_omp_for_final): Likewise.
2473 (gimple_omp_for_set_initial): Likewise.
2474 (gimple_omp_for_initial_ptr): Likewise.
2475 (gimple_omp_for_initial): Likewise.
2476 (gimple_omp_for_set_index): Likewise.
2477 (gimple_omp_for_index_ptr): Likewise.
2478 (gimple_omp_for_index): Likewise.
2479 (gimple_omp_for_collapse): Likewise.
2480 (gimple_omp_for_set_clauses): Likewise.
2481 (gimple_omp_for_clauses_ptr): Likewise.
2482 (gimple_omp_for_clauses): Likewise.
2483 (gimple_omp_critical_set_name): Likewise.
2484 (gimple_omp_critical_name_ptr): Likewise.
2485 (gimple_omp_critical_name): Likewise.
2486 (gimple_eh_dispatch_set_region): Likewise.
2487 (gimple_eh_dispatch_region): Likewise.
2488 (gimple_resx_set_region): Likewise.
2489 (gimple_resx_region): Likewise.
2490 (gimple_phi_set_arg): Likewise.
2491 (gimple_phi_arg): Likewise.
2492 (gimple_phi_set_result): Likewise.
2493 (gimple_phi_result_ptr): Likewise.
2494 (gimple_phi_result): Likewise.
2495 (gimple_phi_num_args): Likewise.
2496 (gimple_phi_capacity): Likewise.
2497 (gimple_wce_set_cleanup): Likewise.
2498 (gimple_wce_cleanup_ptr): Likewise.
2499 (gimple_try_set_cleanup): Likewise.
2500 (gimple_try_set_eval): Likewise.
2501 (gimple_try_cleanup_ptr): Likewise.
2502 (gimple_try_eval_ptr): Likewise.
2503 (gimple_eh_else_set_e_body): Likewise.
2504 (gimple_eh_else_set_n_body): Likewise.
2505 (gimple_eh_else_e_body_ptr): Likewise.
2506 (gimple_eh_else_n_body_ptr): Likewise.
2507 (gimple_eh_must_not_throw_set_fndecl): Likewise.
2508 (gimple_eh_must_not_throw_fndecl): Likewise.
2509 (gimple_eh_filter_set_failure): Likewise.
2510 (gimple_eh_filter_set_types): Likewise.
2511 (gimple_eh_filter_failure_ptr): Likewise.
2512 (gimple_eh_filter_types_ptr): Likewise.
2513 (gimple_eh_filter_types): Likewise.
2514 (gimple_catch_set_handler): Likewise.
2515 (gimple_catch_set_types): Likewise.
2516 (gimple_catch_handler_ptr): Likewise.
2517 (gimple_catch_types_ptr): Likewise.
2518 (gimple_catch_types): Likewise.
2519 (gimple_asm_string): Likewise.
2520 (gimple_asm_set_label_op): Likewise.
2521 (gimple_asm_label_op): Likewise.
2522 (gimple_asm_set_clobber_op): Likewise.
2523 (gimple_asm_clobber_op): Likewise.
2524 (gimple_asm_set_output_op): Likewise.
2525 (gimple_asm_output_op_ptr): Likewise.
2526 (gimple_asm_output_op): Likewise.
2527 (gimple_asm_set_input_op): Likewise.
2528 (gimple_asm_input_op_ptr): Likewise.
2529 (gimple_asm_input_op): Likewise.
2530 (gimple_asm_nlabels): Likewise.
2531 (gimple_asm_nclobbers): Likewise.
2532 (gimple_asm_noutputs): Likewise.
2533 (gimple_asm_ninputs): Likewise.
2534 (gimple_bind_set_block): Likewise.
2535 (gimple_bind_block): Likewise.
2536 (gimple_bind_add_seq): Likewise.
2537 (gimple_bind_add_stmt): Likewise.
2538 (gimple_bind_set_body): Likewise.
2539 (gimple_bind_body_ptr): Likewise.
2540 (gimple_bind_append_vars): Likewise.
2541 (gimple_bind_set_vars): Likewise.
2542 (gimple_bind_vars): Likewise.
2543 (gimple_call_clobber_set): Likewise.
2544 (gimple_call_use_set): Likewise.
2545 (gimple_call_set_internal_fn): Likewise.
2546 (gimple_call_set_fntype): Likewise.
2547 (gimple_call_fntype): Likewise.
2548 (gimple_omp_return_lhs_ptr): Likewise.
2549 (gimple_omp_return_lhs): Likewise.
2550 (gimple_omp_return_set_lhs): Likewise.
2551 (gimple_omp_taskreg_set_data_arg): Likewise.
2552 (gimple_omp_taskreg_data_arg_ptr): Likewise.
2553 (gimple_omp_taskreg_data_arg): Likewise.
2554 (gimple_omp_taskreg_set_child_fn): Likewise.
2555 (gimple_omp_taskreg_child_fn_ptr): Likewise.
2556 (gimple_omp_taskreg_child_fn): Likewise.
2557 (gimple_omp_taskreg_set_clauses): Likewise.
2558 (gimple_omp_taskreg_clauses_ptr): Likewise.
2559 (gimple_omp_taskreg_clauses): Likewise.
2560 (gimple_vuse): Likewise.
2561 (gimple_vdef): Likewise.
2562 (gimple_vuse_ptr): Likewise.
2563 (gimple_vdef_ptr): Likewise.
2564 * tree-inline.c (copy_debug_stmt): Likewise.
2565 * tree-phinodes.c (make_phi_node): Likewise.
2567 * gimple.h (is_a_helper <const gimple_statement_with_ops>::test): New.
2568 (is_a_helper <gimple_statement_with_ops>::test): New.
2569 (is_a_helper <const gimple_statement_with_memory_ops>::test): New.
2570 (is_a_helper <gimple_statement_with_memory_ops>::test): New.
2572 * gimple-streamer-in.c (input_gimple_stmt): Port from union
2573 access to use of as_a.
2574 * gimple.c (gimple_build_asm_1): Likewise.
2575 (gimple_build_try): Likewise. Also, return a specific subclass
2576 rather than just gimple.
2577 (gimple_build_resx): Port from union access to use of as_a.
2578 (gimple_build_eh_dispatch): Likewise.
2579 (gimple_build_omp_for): Likewise. Also, convert allocation of iter
2580 now that gengtype no longer provides a typed allocator function.
2581 (gimple_copy): Likewise.
2582 * gimple.h (gimple_build_try): Return a specific subclass rather
2584 * gimplify.c (gimplify_cleanup_point_expr): Replace union access
2585 with subclass access by making use of new return type of
2587 * tree-phinodes.c: (allocate_phi_node): Return a
2588 "gimple_statement_phi *" rather than just a gimple.
2589 (resize_phi_node): Likewise.
2590 (make_phi_node): Replace union access with subclass access by
2591 making use of new return type of allocate_phi_node.
2592 (reserve_phi_args_for_new_edge): Replace union access with as_a.
2593 (remove_phi_arg_num): Accept a "gimple_statement_phi *" rather
2595 (remove_phi_args): Update for change to remove_phi_arg_num.
2597 * gdbhooks.py (GimplePrinter.to_string): Update lookup of
2598 code field to reflect inheritance, rather than embedding of
2599 the base gimple type.
2601 2013-11-19 Richard Biener <rguenther@suse.de>
2603 * cfgloop.h (struct loop_iterator): C++-ify, add constructor
2604 and destructor and make fel_next a member function.
2605 (fel_next): Transform into ...
2606 (loop_iterator::next): ... this.
2607 (fel_init): Transform into ...
2608 (loop_iterator::loop_iterator): ... this.
2609 (loop_iterator::~loop_iterator): New.
2610 (FOR_EACH_LOOP): Remove loop-iterator argument.
2611 (FOR_EACH_LOOP_BREAK): Remove no longer necessary macro.
2612 * cfgloop.c, cfgloopmanip.c, config/mn10300/mn10300.c,
2613 graphite-clast-to-gimple.c, graphite-scop-detection.c,
2614 graphite-sese-to-poly.c, ipa-inline-analysis.c, ipa-pure-const.c,
2615 loop-init.c, loop-invariant.c, loop-unroll.c, loop-unswitch.c,
2616 modulo-sched.c, predict.c, sel-sched-ir.c, tree-cfg.c, tree-data-ref.c,
2617 tree-if-conv.c, tree-loop-distribution.c, tree-parloops.c,
2618 tree-predcom.c, tree-scalar-evolution.c, tree-ssa-dce.c,
2619 tree-ssa-loop-ch.c, tree-ssa-loop-im.c, tree-ssa-loop-ivcanon.c,
2620 tree-ssa-loop-ivopts.c, tree-ssa-loop-manip.c, tree-ssa-loop-niter.c,
2621 tree-ssa-loop-prefetch.c, tree-ssa-loop-unswitch.c,
2622 tree-ssa-threadupdate.c, tree-vectorizer.c, tree-vrp.c: Adjust
2623 uses of FOR_EACH_LOOP and remove loop_iterator variables. Replace
2624 FOR_EACH_LOOP_BREAK with break.
2626 2013-11-19 Richard Biener <rguenther@suse.de>
2628 PR tree-optimization/59164
2629 * tree-vect-loop-manip.c (vect_update_ivs_after_vectorizer):
2631 * tree-vect-loop.c (vect_analyze_loop_operations): Adjust check
2632 whether we can create an epilogue loop to reflect thecases where
2635 2013-11-19 Andrew MacLeod <amacleod@redhat.com>
2637 * graphite-sese-to-poly.c: Include expr.h.
2639 2013-11-19 Richard Biener <rguenther@suse.de>
2642 * tree-ssa-ter.c (find_replaceable_in_bb): Avoid forwarding
2643 loads into stmts that may clobber it.
2645 2013-11-19 Bernd Schmidt <bernds@codesourcery.com>
2647 * cgraphunit.c (symtab_terminator): New variable.
2648 (queued_nodes): Renamed from first. Use symtab_terminator as
2650 (analyze_functions): Adjust accordingly.
2651 (cgraph_process_new_functions): Return void.
2652 * cgraph.h (cgraph_process_new_functions): Adjust declaration.
2654 2013-11-19 Marek Polacek <polacek@redhat.com>
2656 * opts.c (common_handle_option): Add -fsanitize=null option.
2657 Turn off -fdelete-null-pointer-checks option when doing the
2658 NULL pointer checking.
2659 * sanitizer.def (BUILT_IN_UBSAN_HANDLE_TYPE_MISMATCH): Add.
2660 * tree-pass.h (make_pass_ubsan): Declare.
2661 (make_pass_sanopt): Declare.
2662 * timevar.def (TV_TREE_UBSAN): New timevar.
2663 * passes.def: Add pass_sanopt and pass_ubsan.
2664 * ubsan.h (ubsan_null_ckind): New enum.
2665 (ubsan_mismatch_data): New struct.
2666 (ubsan_expand_null_ifn): Declare.
2667 (ubsan_create_data): Adjust declaration.
2668 (ubsan_type_descriptor): Likewise.
2669 * asan.c: Include "ubsan.h".
2670 (pass_data_sanopt): New pass.
2671 (execute_sanopt): New function.
2672 (gate_sanopt): Likewise.
2673 (make_pass_sanopt): Likewise.
2674 (class pass_sanopt): New class.
2675 * ubsan.c: Include tree-pass.h, gimple-ssa.h, gimple-walk.h,
2676 gimple-iterator.h and cfgloop.h.
2677 (PROB_VERY_UNLIKELY): Define.
2678 (tree_type_map_hash): New function.
2679 (ubsan_type_descriptor): Add new parameter.
2680 Improve type name generation.
2681 (ubsan_create_data): Add new parameter. Add pointer data into
2683 (ubsan_expand_null_ifn): New function.
2684 (instrument_member_call): Likewise.
2685 (instrument_mem_ref): Likewise.
2686 (instrument_null): Likewise.
2687 (ubsan_pass): Likewise.
2688 (gate_ubsan): Likewise.
2689 (make_pass_ubsan): Likewise.
2690 (ubsan_instrument_unreachable): Adjust ubsan_create_data call.
2691 (class pass_ubsan): New class.
2692 (pass_data_ubsan): New pass.
2693 * flag-types.h (enum sanitize_code): Add SANITIZE_NULL.
2694 * internal-fn.c (expand_UBSAN_NULL): New function.
2695 * cgraphunit.c (varpool_finalize_decl): Call varpool_assemble_decl
2696 even when !flag_toplevel_reorder.
2697 * internal-fn.def (UBSAN_NULL): New.
2699 2013-11-19 Jan Hubicka <jh@suse.cz>
2701 * cgraph.c (cgraph_create_indirect_edge): Use
2702 get_polymorphic_call_info.
2703 * cgraph.h (cgraph_indirect_call_info): Add outer_type,
2704 maybe_in_construction and maybe_derived_type.
2705 * ipa-utils.h (ipa_polymorphic_call_context): New structure.
2706 (ipa_dummy_polymorphic_call_context): New global var.
2707 (possible_polymorphic_call_targets): Add context paramter.
2708 (dump_possible_polymorphic_call_targets): Likewise; update wrappers.
2709 (possible_polymorphic_call_target_p): Likewise.
2710 (get_polymorphic_call_info): New function.
2711 * ipa-devirt.c (ipa_dummy_polymorphic_call_context): New function.
2712 (add_type_duplicate): Remove forgotten debug output.
2713 (method_class_type): Add sanity check.
2714 (maybe_record_node): Add FINALP parameter.
2715 (record_binfo): Add OUTER_TYPE and OFFSET; walk the inner
2716 by info by get_binfo_at_offset.
2717 (possible_polymorphic_call_targets_1): Add OUTER_TYPE/OFFSET
2718 parameters; pass them to record-binfo.
2719 (polymorphic_call_target_d): Add context and FINAL.
2720 (polymorphic_call_target_hasher::hash): Hash context.
2721 (polymorphic_call_target_hasher::equal): Compare context.
2722 (free_polymorphic_call_targets_hash):
2723 (get_class_context): New function.
2724 (contains_type_p): New function.
2725 (get_polymorphic_call_info): New function.
2726 (walk_bases): New function.
2727 (possible_polymorphic_call_targets): Add context parameter; honnor it.
2728 (dump_possible_polymorphic_call_targets): Dump context.
2729 (possible_polymorphic_call_target_p): Add context.
2730 (update_type_inheritance_graph): Update comment.s
2731 (ipa_set_jf_known_type): Assert that compoentn type is known.
2732 (ipa_note_param_call): Do not tamper with offsets.
2733 (ipa_analyze_indirect_call_uses): When offset is being changed; clear
2735 (update_indirect_edges_after_inlining): Likewise.
2736 (ipa_write_indirect_edge_info): Stream new fields.
2737 (ipa_read_indirect_edge_info): Stream in new fields.
2739 2013-11-19 Jan Hubicka <jh@suse.cz>
2741 * tree-pretty-print.c (dump_generic_node): Print class type of
2744 2013-11-19 Joey Ye <joey.ye@arm.com>
2746 * config/arm/arm.opt (-marm-pic-data-is-text-relative): New option.
2747 * doc/invoke.texi (-marm-pic-data-is-text-relative): Documentation
2749 * config/arm/arm.c (arm_option_override): By default disable
2750 -marm-pic-data-is-text-relative.
2751 (legitimize_pic_address): Use arm_pic_data_is_text_relative.
2752 (arm_assemble_integer): Likewise.
2753 * config/arm/arm.h (TARGET_DEFAULT_PIC_DATA_IS_TEXT_RELATIVE):
2754 New macro to initialize -marm-pic-data-is-text-relative.
2756 2013-11-19 Bin Cheng <bin.cheng@arm.com>
2758 * tree-ssa-loop-ivopts.c (enum ainc_type): New.
2759 (address_cost_data): New field.
2760 (get_address_cost): Compute auto-increment rtx cost in ainc_costs.
2761 Use ainc_costs for auto-increment rtx patterns. Cleanup TWS.
2763 2013-11-19 James Greenhalgh <james.greenhalgh@arm.com>
2765 * config/aarch64/aarch64.md: Remove v8type from all insns.
2767 2013-11-19 Richard Biener <rguenther@suse.de>
2769 PR tree-optimization/57517
2770 * tree-predcom.c (combinable_refs_p): Verify the combination
2771 is always executed when the refs are.
2773 2013-11-19 Jeff Law <law@redhat.com>
2775 * tree-ssa-threadupdate.c: Include ssa-iterators.h
2776 (copy_phi_arg_into_existing_phi): New function.
2777 (any_remaining_duplicated_blocks): Likewise.
2778 (ssa_fix_duplicate_block_edges): Handle multiple duplicated
2779 blocks on a jump threading path.
2781 * tree-ssa-threadupdate.c (thread_through_loop_header): Do not
2782 thread through a joiner which has the latch edge.
2784 2013-11-19 Jan Hubicka <jh@suse.cz>
2786 * md.texi (setmem): Document new parameter.
2787 * optabs.c (maybe_gen_insn): Support 9 operands.
2788 * builtins.c (determine_block_size): Add probable_max_size;
2789 support anti-ranges.
2790 (expand_builtin_memcpy. expand_builtin_memset_args): Pass around
2792 * expr.c (emit_block_move_via_movmem, emit_block_move_hints,
2793 emit_block_move, clear_storage_hints, set_storage_via_setmem):
2795 * expr.h (emit_block_move_hints, clear_storage_hints,
2796 set_storage_via_setmem): Update prototype.
2797 * i386.md (setmem, movmem patterns): Add 9th operand.
2798 * i386-protos.h (ix86_expand_set_or_movmem): Update prototype.
2799 * i386.c (ix86_expand_set_or_movmem): Take probable_max_size_exp
2800 argument; pass it to decide_alg.
2802 2013-11-19 David Malcolm <dmalcolm@redhat.com>
2804 * basic-block.h (n_basic_blocks_for_function): Rename macro to...
2805 (n_basic_blocks_for_fn): ...this.
2807 (n_basic_blocks): Eliminate macro as work towards making uses of
2810 * cfgloop.c (init_loops_structure): Update for renaming of
2811 "n_basic_blocks_for_function" to "n_basic_blocks_for_fn".
2812 * graph.c (draw_cfg_nodes_no_loops): Likewise.
2813 * ipa-utils.c (ipa_merge_profiles): Likewise.
2814 * lto-streamer-in.c (make_new_block): Likewise.
2815 * tree-cfg.c (init_empty_tree_cfg_for_function): Likewise.
2816 (dump_function_to_file): Likewise.
2818 * alias.c (init_alias_analysis): Replace usage of "n_basic_blocks"
2819 macro with "n_basic_blocks_for_fn (cfun)".
2820 * bb-reorder.c (partition_hot_cold_basic_blocks): Likewise.
2821 (duplicate_computed_gotos): Likewise.
2822 (reorder_basic_blocks): Likewise.
2823 * bt-load.c (augment_live_range): Likewise.
2824 * cfg.c (expunge_block): Likewise.
2825 (compact_blocks): Likewise.
2826 * cfganal.c (single_pred_before_succ_order): Likewise.
2827 (compute_idf): Likewise.
2828 (flow_dfs_compute_reverse_init): Likewise.
2829 (pre_and_rev_post_order_compute): Likewise.
2830 (pre_and_rev_post_order_compute_fn): Likewise.
2831 (inverted_post_order_compute): Likewise.
2832 (post_order_compute): Likewise.
2833 (print_edge_list): Likewise.
2834 (find_unreachable_blocks): Likewise.
2835 (mark_dfs_back_edges): Likewise.
2836 * cfgcleanup.c (try_optimize_cfg): Likewise.
2837 (try_forward_edges): Likewise.
2838 * cfghooks.c (dump_flow_info): Likewise.
2839 * cfgloop.c (verify_loop_structure): Likewise.
2840 (get_loop_body): Likewise.
2841 (flow_loops_find): Likewise.
2842 * cfgloopmanip.c (add_loop): Likewise.
2843 (remove_path): Likewise.
2844 (find_path): Likewise.
2845 * cfgrtl.c (rtl_flow_call_edges_add): Likewise.
2846 (rtl_verify_bb_layout): Likewise.
2847 (entry_of_function): Likewise.
2848 (rtl_create_basic_block): Likewise.
2849 * coverage.c (coverage_compute_cfg_checksum): Likewise.
2850 * cprop.c (one_cprop_pass): Likewise.
2851 (is_too_expensive): Likewise.
2852 * df-core.c (df_compute_cfg_image): Likewise.
2853 (df_compact_blocks): Likewise.
2854 (df_worklist_dataflow_doublequeue): Likewise.
2855 * dominance.c (calculate_dominance_info): Likewise.
2856 (calc_dfs_tree): Likewise.
2857 (calc_dfs_tree_nonrec): Likewise.
2858 (init_dom_info): Likewise.
2859 * domwalk.c (cmp_bb_postorder): Likewise.
2860 * function.c (thread_prologue_and_epilogue_insns): Likewise.
2861 (generate_setjmp_warnings): Likewise.
2862 * fwprop.c (build_single_def_use_links): Likewise.
2863 * gcse.c (is_too_expensive): Likewise.
2864 (one_code_hoisting_pass): Likewise.
2865 (one_pre_gcse_pass): Likewise.
2866 * graphite.c (graphite_initialize): Likewise.
2867 * haifa-sched.c (haifa_sched_init): Likewise.
2868 * ipa-inline-analysis.c (estimate_function_body_sizes): Likewise.
2869 * ira.c (split_live_ranges_for_shrink_wrap): Likewise.
2870 * ira-build.c (ira_build): Likewise.
2871 * lcm.c (compute_nearerout): Likewise.
2872 (compute_available): Likewise.
2873 (compute_laterin): Likewise.
2874 (compute_antinout_edge): Likewise.
2875 * lra-lives.c (lra_create_live_ranges): Likewise.
2876 * lra.c (has_nonexceptional_receiver): Likewise.
2877 * mcf.c (create_fixup_graph): Likewise.
2878 * profile.c (branch_prob): Likewise.
2879 * reg-stack.c (convert_regs_2): Likewise.
2880 * regrename.c (regrename_analyze): Likewise.
2881 * reload1.c (has_nonexceptional_receiver): Likewise.
2882 * reorg.c (dbr_schedule): Likewise.
2883 * sched-deps.c (sched_deps_init): Likewise.
2884 * sched-ebb.c (schedule_ebbs): Likewise.
2885 * sched-rgn.c (extend_regions): Likewise.
2886 (schedule_insns): Likewise.
2887 (sched_rgn_init): Likewise.
2888 (extend_rgns): Likewise.
2889 (haifa_find_rgns): Likewise.
2890 * sel-sched-ir.c (recompute_rev_top_order): Likewise.
2891 (sel_recompute_toporder): Likewise.
2892 * sel-sched.c (run_selective_scheduling): Likewise.
2893 * store-motion.c (one_store_motion_pass): Likewise.
2894 (remove_reachable_equiv_notes): Likewise.
2895 * tracer.c (tracer): Likewise.
2896 (tail_duplicate): Likewise.
2897 * tree-cfg.c (gimple_flow_call_edges_add): Likewise.
2898 (dump_cfg_stats): Likewise.
2899 (gimple_dump_cfg): Likewise.
2900 (create_bb): Likewise.
2901 (build_gimple_cfg): Likewise.
2902 * tree-cfgcleanup.c (merge_phi_nodes): Likewise.
2903 * tree-inline.c (optimize_inline_calls): Likewise.
2904 (fold_marked_statements): Likewise.
2905 * tree-ssa-ifcombine.c (tree_ssa_ifcombine): Likewise.
2906 * tree-ssa-loop-ch.c (copy_loop_headers): Likewise.
2907 * tree-ssa-loop-im.c (analyze_memory_references): Likewise.
2908 * tree-ssa-loop-manip.c (compute_live_loop_exits): Likewise.
2909 * tree-ssa-math-opts.c (execute_cse_reciprocals): Likewise.
2910 * tree-ssa-phiopt.c (tree_ssa_phiopt_worker): Likewise.
2911 * tree-ssa-pre.c (do_pre): Likewise.
2912 (init_pre): Likewise.
2913 (compute_avail): Likewise.
2914 * tree-ssa-reassoc.c (init_reassoc): Likewise.
2915 * tree-ssa-sccvn.c (init_scc_vn): Likewise.
2916 * tree-ssa-tail-merge.c (alloc_cluster_vectors): Likewise.
2917 (init_worklist): Likewise.
2918 * tree-ssa-uncprop.c (associate_equivalences_with_edges): Likewise.
2919 * var-tracking.c (variable_tracking_main_1): Likewise.
2920 (vt_find_locations): Likewise.
2921 (vt_stack_adjustments): Likewise.
2922 * config/s390/s390.c (s390_optimize_nonescaping_tx): Likewise.
2923 * config/spu/spu.c (spu_machine_dependent_reorg): Likewise.
2925 2013-11-18 Jan Hubicka <jh@suse.cz>
2927 * profile.c (compute_branch_probabilities): Do not sanity check
2930 2013-11-18 Kenneth Zadeck <zadeck@naturalbridge.com>
2932 * tree.c (int_fits_type_p): Change GET_MODE_BITSIZE to
2934 * fold-const.c (fold_single_bit_test_into_sign_test)
2935 (fold_binary_loc): Change GET_MODE_BITSIZE to GET_MODE_PRECISION.
2937 2013-11-18 Teresa Johnson <tejohnson@google.com>
2939 * cfgrtl.c (cfg_layout_initialize): Assert if we try to go into
2940 cfglayout after bb reordering.
2941 * passes.def: Move compgotos before bb reordering since it goes into
2944 2013-11-18 Bernd Schmidt <bernds@codesourcery.com>
2946 * cgraphunit.c (ipa_passes): Don't execute all_lto_gen_passes.
2947 * lto-streamer-out.c (lto_output, produce_asm_for_decls): No longer
2949 (pass_data_ipa_lto_gimple_out, pass_ipa_lto_gimple_out,
2950 make_pass_ipa_lto_gimple_out, pass_data_ipa_lto_finish_out,
2951 pass_ipa_lto_finish_out, make_pass_ipa_lto_finish_out): Remove.
2952 * lto-streamer.h (lto_output, produce_asm_for_decls): Declare.
2953 * pass-manager.h (GCC_PASS_LISTS, class pass_manager):
2954 Remove all_lto_gen_passes.
2955 * passes.c (pass_manager::dump_passes): Remove its use.
2956 (pass_manager::register_pass): Likewise.
2957 (ipa_read_summaries, ipa_read_optimization_summaries): Likewise.
2958 (pass_manager::pass_manager): Don't initialize or use it.
2959 (write_lto): New static function.
2960 (ipa_write_summaries_1, ipa_write_optimization_summaries): Use it
2961 instead of using all_lto_gen_passes.
2962 * passes.def (all_lto_gen_passes, pass_ipa_lto_gimple_out,
2963 pass_ipa_lto_finish_out): Delete.
2964 * tree-pass.h (make_pass_ipa_lto_gimple_out,
2965 make_pass_ipa_lto_finish_out): Don't declare.
2967 2013-11-18 Jeff Law <law@redhat.com>
2969 * tree-ssa-threadupdate.c (redirection_data): Record two
2970 duplicated blocks instead of just one.
2971 (local_info): Explain why we don't create a template for the
2972 second duplicated block in a thread path.
2973 (create_block_for_threading): Accept argument indicating array
2974 index into redirection_data to store its result.
2975 (lookup_redirection_data): Initialize both duplicate blocks.
2976 (ssa_create_duplicates): If a jump threading path needs multiple
2977 blocks duplicated, then duplicate them.
2978 (ssa_fix_duplicate_block_edges): Corresponding changes.
2979 (ssa_fixup_template_block, thread_single_edge): Likewise.
2981 2013-11-18 Marek Polacek <polacek@redhat.com>
2983 * doc/invoke.texi: Extend -fsanitize=undefined documentation.
2985 2013-11-18 Andrew Pinski <apinski@cavium.com>
2986 Steve Ellcey <sellcey@mips.com>
2989 * config/mips/mips.md (*mov<GPR:mode>_on_<MOVECC:mode>): Remove
2990 type restriction from equality_operator on conditonal move.
2991 (*mov<SCALARF:mode>_on_<MOVECC:mode>): Ditto.
2992 (*mov<GPR:mode>_on_<GPR2:mode>_ne): New.
2994 2013-11-18 Jeff Law <law@redhat.com>
2996 * tree-ssa-threadupdate.c: Fix file block comment.
2997 Fix minor indention issue.
2999 2013-11-18 Uros Bizjak <ubizjak@gmail.com>
3001 * config/i386/i386.c (ix86_decompose_address): Use REG_P instead of
3002 ix86_address_subreg_operand. Move subreg checks to
3003 ix86_validate_address_register. Move address override check to
3004 ix86_legitimate_address_p.
3005 (ix86_validate_address_register): New function.
3006 (ix86_legitimate_address_p): Call ix86_validate_address_register
3007 to validate base and index registers. Add address override check
3008 from ix86_decompose_address.
3009 (ix86_decompose_address): Remove.
3011 2013-11-18 Richard Biener <rguenther@suse.de>
3013 PR tree-optimization/59125
3014 PR tree-optimization/54570
3015 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): When inlining
3016 is not complete do not treat component-references with offset zero
3017 but different fields as equal.
3018 * tree-object-size.c: Include tree-phinodes.h and ssa-iterators.h.
3019 (compute_object_sizes): Apply TLC. Propagate the constant
3020 results into all uses and fold their stmts.
3021 * passes.def (pass_all_optimizations): Move pass_object_sizes
3022 after the first pass_forwprop and before pass_fre.
3024 2013-11-18 Richard Sandiford <rdsandiford@googlemail.com>
3026 * tree.h (tree_to_uhwi): Return an unsigned HOST_WIDE_INT.
3027 * tree.c (tree_to_uhwi): Return an unsigned HOST_WIDE_INT.
3028 (tree_ctz): Remove cast to unsigned type.
3029 * builtins.c (fold_builtin_memory_op): Likewise.
3030 * dwarf2out.c (descr_info_loc): Likewise.
3031 * godump.c (go_output_typedef): Likewise.
3032 * omp-low.c (expand_omp_simd): Likewise.
3033 * stor-layout.c (excess_unit_span): Likewise.
3034 * tree-object-size.c (addr_object_size): Likewise.
3035 * tree-sra.c (analyze_all_variable_accesses): Likewise.
3036 * tree-ssa-forwprop.c (simplify_builtin_call): Likewise.
3037 (simplify_rotate): Likewise.
3038 * tree-ssa-strlen.c (adjust_last_stmt, handle_builtin_memcpy)
3039 (handle_pointer_plus): Likewise.
3040 * tree-switch-conversion.c (check_range): Likewise.
3041 * tree-vect-patterns.c (vect_recog_rotate_pattern): Likewise.
3042 * tsan.c (instrument_builtin_call): Likewise.
3043 * cfgexpand.c (defer_stack_allocation): Add cast to HOST_WIDE_INT.
3044 * trans-mem.c (tm_log_add): Likewise.
3045 * config/aarch64/aarch64.c (aapcs_vfp_sub_candidate): Likewise.
3046 * config/arm/arm.c (aapcs_vfp_sub_candidate): Likewise.
3047 * config/rs6000/rs6000.c (rs6000_aggregate_candidate): Likewise.
3048 * config/mips/mips.c (r10k_safe_mem_expr_p): Make offset unsigned.
3050 2013-11-18 Richard Sandiford <rdsandiford@googlemail.com>
3052 * tree.h (host_integerp, tree_low_cst): Delete.
3053 * tree.c (host_integerp, tree_low_cst): Delete.
3055 2013-11-18 Richard Sandiford <rdsandiford@googlemail.com>
3057 * expr.h: Update comments to refer to tree_to_[su]hwi rather
3059 * fold-const.c (fold_binary_loc): Likewise.
3060 * expr.c (store_constructor): Use tree_to_uhwi rather than
3062 * ipa-utils.h (possible_polymorphic_call_target_p): Likewise.
3063 * stmt.c (emit_case_dispatch_table): Likewise.
3064 * tree-switch-conversion.c (emit_case_bit_tests): Likewise.
3066 2013-11-18 Richard Sandiford <rdsandiford@googlemail.com>
3068 * alias.c, asan.c, builtins.c, cfgexpand.c, cgraph.c,
3069 config/aarch64/aarch64.c, config/alpha/predicates.md,
3070 config/arm/arm.c, config/darwin.c, config/epiphany/epiphany.c,
3071 config/i386/i386.c, config/iq2000/iq2000.c, config/m32c/m32c-pragma.c,
3072 config/mep/mep-pragma.c, config/mips/mips.c,
3073 config/picochip/picochip.c, config/rs6000/rs6000.c, cppbuiltin.c,
3074 dbxout.c, dwarf2out.c, emit-rtl.c, except.c, expr.c, fold-const.c,
3075 function.c, gimple-fold.c, godump.c, ipa-cp.c, ipa-prop.c, omp-low.c,
3076 predict.c, sdbout.c, stor-layout.c, trans-mem.c, tree-object-size.c,
3077 tree-sra.c, tree-ssa-ccp.c, tree-ssa-forwprop.c,
3078 tree-ssa-loop-ivcanon.c, tree-ssa-loop-ivopts.c, tree-ssa-loop-niter.c,
3079 tree-ssa-loop-prefetch.c, tree-ssa-strlen.c, tree-stdarg.c,
3080 tree-switch-conversion.c, tree-vect-generic.c, tree-vect-loop.c,
3081 tree-vect-patterns.c, tree-vrp.c, tree.c, tsan.c, ubsan.c, varasm.c:
3082 Replace tree_low_cst (..., 1) with tree_to_uhwi throughout.
3084 2013-11-18 Richard Sandiford <rdsandiford@googlemail.com>
3086 * builtins.c, cilk-common.c, config/aarch64/aarch64.c,
3087 config/alpha/alpha.c, config/arm/arm.c, config/c6x/predicates.md,
3088 config/i386/i386.c, config/ia64/predicates.md, config/s390/s390.c,
3089 coverage.c, dbxout.c, dwarf2out.c, except.c, explow.c, expr.c, expr.h,
3090 fold-const.c, gimple-fold.c, godump.c, ipa-prop.c, omp-low.c,
3091 predict.c, rtlanal.c, sdbout.c, stmt.c, stor-layout.c, targhooks.c,
3092 tree-cfg.c, tree-data-ref.c, tree-inline.c, tree-ssa-forwprop.c,
3093 tree-ssa-loop-prefetch.c, tree-ssa-phiopt.c, tree-ssa-sccvn.c,
3094 tree-ssa-strlen.c, tree-stdarg.c, tree-vect-data-refs.c,
3095 tree-vect-patterns.c, tree.c, tree.h, var-tracking.c, varasm.c:
3096 Replace tree_low_cst (..., 0) with tree_to_shwi throughout.
3098 2013-11-18 Richard Sandiford <rdsandiford@googlemail.com>
3100 * tree.h (tree_to_shwi, tree_to_uhwi): Declare, with inline expansions.
3101 * tree.c (tree_to_shwi, tree_to_uhwi): New functions.
3103 2013-11-18 Richard Sandiford <rdsandiford@googlemail.com>
3105 * expr.h: Update comments to refer to tree_fits_[su]hwi_p rather
3108 2013-11-18 Richard Sandiford <rdsandiford@googlemail.com>
3110 * builtins.c, config/alpha/alpha.c, config/iq2000/iq2000.c,
3111 config/mips/mips.c, dbxout.c, dwarf2out.c, expr.c, fold-const.c,
3112 gimple-fold.c, godump.c, omp-low.c, predict.c, sdbout.c, stor-layout.c,
3113 tree-dfa.c, tree-sra.c, tree-ssa-forwprop.c, tree-ssa-loop-prefetch.c,
3114 tree-ssa-phiopt.c, tree-ssa-sccvn.c, tree-ssa-strlen.c,
3115 tree-ssa-structalias.c, tree-vect-data-refs.c, tree-vect-patterns.c,
3116 tree.c, varasm.c, alias.c, cfgexpand.c, config/aarch64/aarch64.c,
3117 config/arm/arm.c, config/epiphany/epiphany.c, config/i386/i386.c,
3118 config/m32c/m32c-pragma.c, config/mep/mep-pragma.c,
3119 config/rs6000/rs6000.c, config/sparc/sparc.c, emit-rtl.c, function.c,
3120 gimplify.c, ipa-prop.c, stmt.c, trans-mem.c, tree-cfg.c,
3121 tree-object-size.c, tree-ssa-ccp.c, tree-ssa-loop-ivcanon.c,
3122 tree-stdarg.c, tree-switch-conversion.c, tree-vect-generic.c,
3123 tree-vrp.c, tsan.c, ubsan.c: Replace host_integerp (..., 1) with
3124 tree_fits_uhwi_p throughout.
3126 2013-11-18 Richard Sandiford <rdsandiford@googlemail.com>
3128 * builtins.c, config/alpha/alpha.c, config/c6x/predicates.md,
3129 config/ia64/predicates.md, config/iq2000/iq2000.c, config/mips/mips.c,
3130 config/s390/s390.c, dbxout.c, dwarf2out.c, except.c, explow.c, expr.c,
3131 expr.h, fold-const.c, gimple-fold.c, gimple-ssa-strength-reduction.c,
3132 gimple.c, godump.c, graphite-scop-detection.c, graphite-sese-to-poly.c,
3133 omp-low.c, predict.c, rtlanal.c, sdbout.c, simplify-rtx.c,
3134 stor-layout.c, tree-data-ref.c, tree-dfa.c, tree-pretty-print.c,
3135 tree-sra.c, tree-ssa-alias.c, tree-ssa-forwprop.c,
3136 tree-ssa-loop-ivopts.c, tree-ssa-loop-prefetch.c, tree-ssa-math-opts.c,
3137 tree-ssa-phiopt.c, tree-ssa-reassoc.c, tree-ssa-sccvn.c,
3138 tree-ssa-strlen.c, tree-ssa-structalias.c, tree-vect-data-refs.c,
3139 tree-vect-patterns.c, tree-vectorizer.h, tree.c, var-tracking.c,
3140 varasm.c: Replace host_integerp (..., 0) with tree_fits_shwi_p
3143 2013-11-18 Richard Sandiford <rdsandiford@googlemail.com>
3145 * tree.h (tree_fits_shwi_p, tree_fits_uhwi_p): Declare.
3146 * tree.c (tree_fits_shwi_p, tree_fits_uhwi_p): Define.
3148 2013-11-18 Kirill Yukhin <kirill.yukhin@intel.com>
3150 * config/ia64/ia64.c (ia64_split_tmode_move): Mark load with `dead'
3151 flag if it kills its address, not its post-increment.
3153 2013-11-18 Ilya Enkovich <ilya.enkovich@intel.com>
3155 * builtin-types.def (BT_FN_PTR_CONST_PTR_VAR): New.
3156 * chkp-builtins.def (BUILT_IN_CHKP_BIND_BOUNDS): New.
3157 * cfgexpand.c (expand_call_stmt): Expand BUILT_IN_CHKP_BIND_BOUNDS.
3158 * gimple.c (gimple_call_get_nobnd_arg_index): Remove.
3159 * gimple.h (gf_mask): Add GF_CALL_WITH_BOUNDS.
3160 (gimple_call_with_bounds_p): New.
3161 (gimple_call_set_with_bounds): New.
3162 (gimple_call_num_nobnd_args): Remove.
3163 (gimple_call_nobnd_arg): Remove.
3164 * tree.h (CALL_WITH_BOUNDS_P): New.
3165 * rtl.h (CALL_EXPR_WITH_BOUNDS_P): New.
3167 2013-11-18 Trevor Saunders <tsaunders@mozilla.com>
3169 * cgraph.h (symtab_node_asm_name): Rename to symtab_node::asm_name.
3170 (symtab_node_name): Rename to symtab_node::name.
3171 (cgraph_node_asm_name): Remove.
3172 (varpool_node_asm_name): Remove.
3173 * cgraph.c cgraphclones.c cgraphunit.c ipa-cp.c ipa-devirt.c
3174 ipa-inline-analysis.c ipa-inline-transform.c ipa-inline.c
3175 ipa-profile.c ipa-prop.c ipa-pure-const.c ipa-ref.c ipa-reference.c
3176 ipa-utils.c ipa.c symtab.c tree-inline.c tree-sra.c
3177 tree-ssa-structalias.c value-prof.c varpool.c Adjust.
3179 2013-11-18 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3181 * config/arm/aarch-cost-tables.h (cortexa53_extra_costs): New table.
3182 * config/arm/arm.c (arm_cortex_a53_tune): New.
3183 * config/arm/arm-cores.def (cortex-a53): Use cortex_a53 tuning struct.
3185 2013-11-12 Ganesh Gopalasubramanian <Ganesh.Gopalasubramanian@amd.com>
3187 * config.gcc (i[34567]86-*-linux* | ...): Add bdver4.
3188 (case ${target}): Add bdver4.
3189 * config/i386/bdver3.md: Add bdver4.
3190 * config/i386/driver-i386.c: (host_detect_local_cpu): Let
3191 -march=native recognize bdver4 processors.
3192 * config/i386/i386-c.c (ix86_target_macros_internal): Add
3193 bdver4 def_and_undef
3194 * config/i386/i386.c (struct processor_costs bdver4_cost): New.
3195 (m_BDVER4): New definition.
3196 (m_AMD_MULTIPLE): Includes m_BDVER4.
3197 (processor_target_table): Add bdver4 entry.
3198 (static const char *const cpu_names): Add bdver4 entry.
3199 (software_prefetching_beneficial_p): Add bdver3.
3200 (ix86_option_override_internal): Add bdver4 instruction sets.
3201 (ix86_issue_rate): Add bdver4.
3202 (ix86_adjust_cost): Add bdver4.
3203 (ia32_multipass_dfa_lookahead): Add bdver4.
3204 (enum processor_model): Add M_AMDFAM15H_BDVER4.
3205 (struct _arch_names_table): Add M_AMDFAM15H_BDVER4.
3206 (has_dispatch): Add bdver4.
3207 * config/i386/i386.h (TARGET_BDVER4): New definition.
3208 (enum target_cpu_default): Add TARGET_CPU_DEFAULT_bdver4.
3209 (enum processor_type): Add PROCESSOR_BDVER4.
3210 * config/i386/i386.md (define_attr "cpu"): Add bdver4.
3211 * config/i386/i386.opt (flag_dispatch_scheduler): Add bdver4.
3212 * doc/extend.texi: Add details about bdver4.
3213 * doc/invoke.texi: Add details about bdver4. Add
3214 fma4 and fsgsbase for bdver3. Add fma4 for bdver2.
3216 2013-11-17 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
3218 * config/rs6000/rs6000.c (rs6000_emit_move): Use low word of
3219 sdmode_stack_slot also in little-endian mode.
3221 2013-11-17 Jan Hubicka <jh@suse.cz>
3223 * doc/md.texi (setmem, movstr): Update documentation.
3224 * builtins.c (determine_block_size): New function.
3225 (expand_builtin_memcpy): Use it and pass it to emit_block_move_hints.
3226 (expand_builtin_memset_args): Use it and pass it to
3227 set_storage_via_setmem.
3228 * expr.c (emit_block_move_via_movmem): Add min_size/max_size
3229 parameters; update call to expander.
3230 (emit_block_move_hints): Add min_size/max_size parameters.
3231 (clear_storage_hints): Likewise.
3232 (set_storage_via_setmem): Likewise.
3233 (clear_storage): Update.
3234 * expr.h (emit_block_move_hints, clear_storage_hints,
3235 set_storage_via_setmem): Update prototypes.
3236 * i386.c (ix86_expand_set_or_movmem): Add bounds; export.
3237 (ix86_expand_movmem, ix86_expand_setmem): Remove.
3238 (ix86_expand_movmem, ix86_expand_setmem): Remove.
3239 * i386.md (movmem, setmem): Pass parameters.
3241 2013-11-17 Uros Bizjak <ubizjak@gmail.com>
3244 * config/i386/i386.c (ix86_address_subreg_operand): Do not
3245 reject non-integer subregs.
3246 (ix86_decompose_address): Do not reject invalid CONST_INT RTXes.
3247 Move check for invalid x32 constant addresses ...
3248 (ix86_legitimate_address_p): ... here.
3250 2011-11-17 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
3252 * config/rs6000/rs6000.c (rs6000_frame_related): Add split_reg
3253 parameter and use it in REG_FRAME_RELATED_EXPR note.
3254 (emit_frame_save): Call rs6000_frame_related with extra NULL_RTX
3256 (rs6000_emit_prologue): Likewise, but for little endian VSX
3257 stores, pass the source register of the store instead.
3259 2013-11-17 Andrew MacLeod <amacleod@redhat.com>
3261 * gimple.h: Reorder prototypes to match .c declaration order, and
3262 remove protyotypes for functions not in gimple.c.
3263 (LABEL): Move to tree-into-ssa.c.
3264 * gimple.c: Remove unused prototypes.
3265 (get_base_address): Move to tree.c.
3266 * tree.c (get_base_address): Relocate from gimple.c.
3267 * builtins.h (validate_gimple_arglist): Add prototype.
3268 * trans-mem.h (compute_transaction_bits, is_tm_ending): Add prototype.
3269 * cfgexpand.h: New File.
3270 (gimple_assign_rhs_to_tree, estimated_stack_frame_size): Add protoype.
3271 * tree.h (build_addr): Move to tree-nested.h.
3272 * tree-nested.h: New File.
3273 (build_addr, lower_nested_functions, insert_field_into_struct): Add
3275 * tree-inline.h (estimated_stack_frame_size): Remove prototype.
3276 * ipa-inline-analysis.c: Include cfgexpand.h.
3277 * cgraphunit.c: Include tree-nested.h.
3278 * omp-low.c: Likewise.
3279 * tree-parloops.c: Likewise.
3280 * gimple-low.h: Likewise.
3281 * tree-profile.h: Likewise.
3282 * expr.c: Include cfgexpand.h.
3283 * tree-affine.c: Likewise.
3284 * tree-ssa.c: Likewise.
3285 * tree-ssa-loop-im.c: Include trans-mem.h.
3286 * tree-ssa-tail-merge.c: Likewise.
3287 * value-prof.c: Include builtins.h and tree-nested.h.
3288 * tree-into-ssa.c (LABEL): Define here.
3290 2013-11-16 Joern Rennecke <joern.rennecke@embecosm.com>
3292 * config/arc/arc.c (arc_predicate_delay_insns): New function.
3293 (pass_data_arc_predicate_delay_insns): New pass_data instance.
3294 (pass_arc_predicate_delay_insns): New subclass of rtl_opt_class.
3295 (make_pass_arc_predicate_delay_insns): New function.
3296 (arc_init): Register pass_arc_predicate_delay_insns if
3297 flag_delayed_branch is active.
3299 2013-11-16 Joern Rennecke <joern.rennecke@embecosm.com>
3301 * config/arc/constraints.md (Rcq): Simplify register number test.
3303 2013-11-15 Aldy Hernandez <aldyh@redhat.com>
3305 * gimple.h (enum gf_mask): Change the ordering of GF_OMP_* bits.
3307 2013-11-15 Kaz Kojima <kkojima@gcc.gnu.org>
3309 * config/sh/sh.c (barrier_align): Return 0 when barrier_or_label
3312 2013-11-15 Aldy Hernandez <aldyh@redhat.com>
3314 * Makefile.in (C_COMMON_OBJS): Depend on c-cilkplus.o.
3315 * gimple-pretty-print.c (dump_omp_for): Add case for
3316 GF_OMP_FOR_KIND_CILKSIMD.
3317 * gimple.h (enum gf_mask): Restructure entries to add
3318 GF_OMP_FOR_KIND_CILKSIMD.
3319 * gimplify.c (is_gimple_stmt): Add case for CILK_SIMD.
3320 (gimplify_omp_for): Handle CILK_SIMD.
3321 (gimplify_expr): Add ccase for CILK_SIMD.
3322 * omp-low.c (extract_omp_for_data): Handle CILK_SIMD.
3323 (build_outer_var_ref): Same.
3324 (check_omp_nesting_restrictions): Same.
3325 (lower_rec_input_clauses): Same.
3326 (lower_lastprivate_clauses): Same.
3327 (expand_omp_for): Same.
3328 (execute_expand_omp): Check flag_enable_cilkplus.
3329 (execute_lower_omp): Same.
3330 (diagnose_sb_0): Handle CILK_SIMD.
3331 (diagnose_omp_structured_block_errors): Check flag_enable_cilkplus.
3332 (setjmp_or_longjmp_p): New.
3333 (scan_omp_1_stmt): Error on setjmp/longjmp in a simd construct.
3334 * tree-pretty-print.c (dump_generic_node): Add case for CILK_SIMD.
3335 * tree.def: Add tree code for CILK_SIMD.
3337 2013-11-15 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
3339 * config/rs6000/altivec.md (UNSPEC_VPERM_X, UNSPEC_VPERM_UNS_X):
3341 (altivec_vperm_<mode>): Revert earlier little endian change.
3342 (*altivec_vperm_<mode>_internal): Remove.
3343 (altivec_vperm_<mode>_uns): Revert earlier little endian change.
3344 (*altivec_vperm_<mode>_uns_internal): Remove.
3345 * config/rs6000/vector.md (vec_realign_load_<mode>): Revise commentary.
3347 2013-11-15 Jeff Law <law@redhat.com>
3349 * basic-block.h (has_abnormal_or_eh_outgoing_edge): Renamed from
3350 has_abnormal_or_outgoing_edge. Check for EH edges as well.
3351 * gimple-ssa-isolate-paths.c
3352 (find_implicit_erroneous_behaviour): Corresponding changes.
3353 Do not check stmt_ends_bb_p or GIMPLE_RETURN anymore.
3354 (find_explicit_erroneous_behaviour): Likewise.
3356 2013-11-15 Jeff Law <law@redhat.com>
3358 * ifcvt.c (find_cond_trap): Properly handle case where
3361 2013-11-15 Andreas Schwab <schwab@linux-m68k.org>
3363 * configure: Regenerate.
3365 2013-11-15 James Greenhalgh <james.greenhalgh@arm.com>
3367 * config/aarch64/aarch64-simd.md: Remove simd_type from all patterns.
3368 * config/aarch64/aarch64.md: Likewise, correct "type" attribute
3369 where it is incorrect or missing.
3371 2013-11-15 Richard Sandiford <rdsandiford@googlemail.com>
3373 * dwarf2out.c (gen_enumeration_type_die): Remove unnecessary
3375 * tree-vect-patterns.c (vect_recog_divmod_pattern): Likewise.
3376 Use TREE_INT_CST_LOW rather than tree_low_cst when reading the
3378 * fold-const.c (fold_binary_loc): Replace a host_integerp/tree_low_cst
3379 pair with a TREE_CODE test and TREE_INT_CST_LOW.
3380 * tree-vect-generic.c (expand_vector_divmod): Likewise.
3382 2013-11-15 Richard Biener <rguenther@suse.de>
3384 PR tree-optimization/50262
3385 * tree-ssa-alias.h (struct pt_solution): Split
3386 vars_contains_global into vars_contains_nonlocal,
3387 vars_contains_escaped and vars_contains_escaped_heap.
3388 * tree-ssa-structalias.c (label_visit): Expand comment.
3389 (handle_lhs_call): Adjust comment.
3390 (set_uids_in_ptset): Set the new flags appropriately.
3391 (pt_solution_set): Adjust.
3392 (pt_solution_set_var): Likewise.
3393 (pt_solution_ior_into): Likewise.
3394 (pt_solution_includes_global): Likewise.
3395 (pt_solutions_intersect_1): Optimize escaped handling.
3396 (compute_points_to_sets): Remove heap variable globalization.
3397 (ipa_escaped_pt): Adjust initializer.
3398 (pass_data_ipa_pta): Do not run TODO_update_ssa.
3399 * gimple-pretty-print.c (pp_points_to_solution): Print split flags.
3400 * tree-ssa-alias.c (dump_points_to_solution): Likewise.
3402 2013-11-15 Richard Biener <rguenther@suse.de>
3404 * tree-loop-distribution.c (tree_loop_distribution): Make sure
3405 to distribute all stores.
3407 2013-11-15 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
3409 * doc/invoke.texi (-mabi=elfv1, -mabi=elfv2): Document.
3411 2013-11-15 Joseph Myers <joseph@codesourcery.com>
3413 * acinclude.m4 (GCC_GLIBC_VERSION_GTE_IFELSE): New configure macro.
3414 * configure.ac: Determine target_header_dir earlier.
3415 (--with-glibc-version): New configure option.
3416 Use GCC_GLIBC_VERSION_GTE_IFELSE in enable_gnu_unique_object,
3417 gcc_cv_libc_provides_ssp and gcc_cv_target_ldbl128 tests.
3418 * configure: Regenerate.
3419 * doc/install.texi (--enable-gnu-unique-object): Don't refer to
3420 native toolchains for default.
3421 (--with-glibc-version): Document.
3423 2013-11-15 Eric Botcazou <ebotcazou@adacore.com>
3425 * fold-const.c (fold_binary_loc) <comparisons>: Reuse local variable.
3427 2013-11-15 Uros Bizjak <ubizjak@gmail.com>
3429 * lto-streamer-in.c (input function): Call cgraph_create_node if
3430 cgraph_get_node failed.
3432 2013-11-14 Olivier Hainque <hainque@adacore.com>
3434 * cfgexpand.c (defer_stack_allocation): When optimization is enabled,
3435 defer allocation of DECL_IGNORED_P variables at toplevel unless really
3436 small. Factorize size threshold computation from the existing one.
3437 (expand_used_vars): Refine comment.
3439 2013-11-14 Cong Hou <congh@google.com>
3441 * tree-vectorizer.h (struct dr_with_seg_len): Remove the base
3442 address field as it can be obtained from dr. Rename the struct.
3443 * tree-vect-data-refs.c (comp_dr_with_seg_len_pair): Consider
3444 steps of data references during sort.
3445 (vect_prune_runtime_alias_test_list): Adjust with the change to
3446 struct dr_with_seg_len.
3447 * tree-vect-loop-manip.c (vect_create_cond_for_alias_checks):
3448 Adjust with the change to struct dr_with_seg_len.
3450 2013-11-14 Jeff Law <law@redhat.com>
3453 * basic-block.h (has_abnormal_outgoing_edge_p): Moved here from...
3454 * tree-inline.c (has_abnormal_outgoing_edge_p): Remove.
3455 * gimple-ssa-isolate-paths.c: Include tree-cfg.h.
3456 (find_implicit_erroneous_behaviour): If a block has abnormal outgoing
3457 edges, then ignore it. If the statement exhibiting erroneous
3458 behaviour ends basic blocks, with the exception of GIMPLE_RETURNs,
3459 then we can not optimize.
3460 (find_explicit_erroneous_behaviour): Likewise.
3462 2013-11-14 Andrew MacLeod <amacleod@redhat.com>
3464 * gimplify-me.h: New file. Add prototypes.
3465 * gimplify.h: Don't include gimple.h.
3466 (struct gimplify_hasher, struct gimplify_ctx, is_gimple_sizepos):
3467 Relocate from gimple.h.
3468 * gimple.h (struct gimplify_hasher, struct gimplify_ctx,
3469 is_gimple_sizepos): Move to gimplify.h.
3470 (gimplify_hasher::hash, gimplify_hasher::equal): Move to gimplify.c.
3471 (enum gsi_iterator_update): Move to gimple-iterator.h.
3472 * gimple-iterator.h (enum gsi_iterator_update): Relocate from gimple.h.
3473 * gimplify-me.c: New File.
3474 (force_gimple_operand_1, force_gimple_operand,
3475 force_gimple_operand_gsi_1, force_gimple_operand_gsi,
3476 gimple_regimplify_operands): Relocate from gimplify.c.
3477 * gimplify.c (force_gimple_operand_1, force_gimple_operand,
3478 force_gimple_operand_gsi_1, force_gimple_operand_gsi,
3479 gimple_regimplify_operands): Move to gimplify-me.c.
3480 (gimplify_hasher::hash, gimplify_hasher::equal): Relocate
3482 * Makefile.in (OBJS): Add gimplify-me.o
3483 * asan.c: Include only gimplify.h, gimplify-me.h, and/or gimple.h as
3485 * cfgloopmanip.c: Likewise.
3486 * cgraphunit.c: Likewise.
3487 * cilk-common.c: Likewise.
3488 * fold-const.c: Likewise.
3489 * function.c: Likewise.
3490 * gimple-expr.c: Likewise.
3491 * gimple-fold.c: Likewise.
3492 * gimple-ssa-strength-reduction.c: Likewise.
3493 * gimple.c: Likewise.
3494 * graphite-clast-to-gimple.c: Likewise.
3495 * graphite-sese-to-poly.c: Likewise.
3496 * ipa-prop.c: Likewise.
3497 * ipa-split.c: Likewise.
3499 * langhooks.c: Likewise.
3500 * omp-low.c: Likewise.
3502 * stor-layout.c: Likewise.
3503 * targhooks.c: Likewise.
3504 * trans-mem.c: Likewise.
3505 * tree-affine.c: Likewise.
3506 * tree-cfg.c: Likewise.
3507 * tree-cfgcleanup.c: Likewise.
3508 * tree-complex.c: Likewise.
3509 * tree-if-conv.c: Likewise.
3510 * tree-inline.c: Likewise.
3511 * tree-loop-distribution.c: Likewise.
3512 * tree-nested.c: Likewise.
3513 * tree-parloops.c: Likewise.
3514 * tree-predcom.c: Likewise.
3515 * tree-profile.c: Likewise.
3516 * tree-scalar-evolution.c: Likewise.
3517 * tree-sra.c: Likewise.
3518 * tree-ssa-address.c: Likewise.
3519 * tree-ssa-ccp.c: Likewise.
3520 * tree-ssa-dce.c: Likewise.
3521 * tree-ssa-forwprop.c: Likewise.
3522 * tree-ssa-ifcombine.c: Likewise.
3523 * tree-ssa-loop-im.c: Likewise.
3524 * tree-ssa-loop-ivopts.c: Likewise.
3525 * tree-ssa-loop-manip.c: Likewise.
3526 * tree-ssa-loop-niter.c: Likewise.
3527 * tree-ssa-loop-prefetch.c: Likewise.
3528 * tree-ssa-loop-unswitch.c: Likewise.
3529 * tree-ssa-math-opts.c: Likewise.
3530 * tree-ssa-phiopt.c: Likewise.
3531 * tree-ssa-phiprop.c: Likewise.
3532 * tree-ssa-pre.c: Likewise.
3533 * tree-ssa-propagate.c: Likewise.
3534 * tree-ssa-reassoc.c: Likewise.
3535 * tree-ssa-sccvn.c: Likewise.
3536 * tree-ssa-strlen.c: Likewise.
3537 * tree-ssa.c: Likewise.
3538 * tree-switch-conversion.c: Likewise.
3539 * tree-tailcall.c: Likewise.
3540 * tree-vect-data-refs.c: Likewise.
3541 * tree-vect-generic.c: Likewise.
3542 * tree-vect-loop-manip.c: Likewise.
3543 * tree-vect-loop.c: Likewise.
3544 * tree-vect-patterns.c: Likewise.
3545 * tree-vect-stmts.c: Likewise.
3548 * value-prof.c: Likewise.
3549 * config/aarch64/aarch64.c: Likewise.
3550 * config/alpha/alpha.c: Likewise.
3551 * config/darwin.c: Likewise.
3552 * config/i386/i386.c: Likewise.
3553 * config/ia64/ia64.c: Likewise.
3554 * config/mep/mep.c: Likewise.
3555 * config/mips/mips.c: Likewise.
3556 * config/rs6000/rs6000.c: Likewise.
3557 * config/s390/s390.c: Likewise.
3558 * config/sh/sh.c: Likewise.
3559 * config/sparc/sparc.c: Likewise.
3560 * config/spu/spu.c: Likewise.
3561 * config/stormy16/stormy16.c: Likewise.
3562 * config/tilegx/tilegx.c: Likewise.
3563 * config/tilepro/tilepro.c: Likewise.
3564 * config/xtensa/xtensa.c: Likewise.
3566 2013-11-14 Diego Novillo <dnovillo@google.com>
3568 * Makefile.in (PLUGIN_HEADERS): Add stringpool.h.
3570 2013-11-14 Diego Novillo <dnovillo@google.com>
3572 * tree.h: Include fold-const.h.
3573 (aggregate_value_p): Moved to function.h.
3574 (alloca_call_p): Moved to calls.h.
3575 (allocate_struct_function): Moved to function.h.
3576 (apply_tm_attr): Moved to attribs.h.
3577 (array_at_struct_end_p): Moved to expr.h.
3578 (array_ref_element_size): Moved to tree-dfa.h.
3579 (array_ref_low_bound): Moved to tree-dfa.h.
3580 (array_ref_up_bound): Moved to tree.h.
3581 (assemble_alias): Moved to cgraph.h.
3582 (bit_from_pos): Moved to stor-layout.h.
3583 (build_addr): Moved to tree-nested.h.
3584 (build_duplicate_type): Moved to tree-inline.h.
3585 (build_fold_addr_expr): Moved to fold-const.h.
3586 (build_fold_addr_expr_with_type): Moved to fold-const.h.
3587 (build_fold_addr_expr_with_type_loc): Moved to fold-const.h.
3588 (build_fold_indirect_ref): Moved to fold-const.h.
3589 (build_fold_indirect_ref_loc): Moved to fold-const.h.
3590 (build_personality_function): Moved to tree.h.
3591 (build_range_check): Moved to fold-const.h.
3592 (build_simple_mem_ref): Moved to fold-const.h.
3593 (build_simple_mem_ref_loc): Moved to fold-const.h.
3594 (build_tm_abort_call): Moved to trans-mem.h.
3595 (byte_from_pos): Moved to stor-layout.h.
3596 (call_expr_flags): Moved to calls.h.
3597 (can_move_by_pieces): Moved to expr.h.
3598 (categorize_ctor_elements): Moved to expr.h.
3599 (change_decl_assembler_name): Moved to gcc-symtab.h.
3600 (combine_comparisons): Moved to fold-const.h.
3601 (complete_ctor_at_level_p): Moved to tree.h.
3602 (component_ref_field_offset): Moved to tree-dfa.h.
3603 (compute_builtin_object_size): Moved to tree-object-size.h.
3604 (compute_record_mode): Moved to stor-layout.h.
3605 (constant_boolean_node): Moved to fold-const.h.
3606 (constructor_static_from_elts_p): Moved to varasm.h.
3607 (cxx11_attribute_p): Moved to attribs.h.
3608 (debug_body): Moved to print-tree.h.
3609 (debug_find_tree): Moved to tree-inline.h.
3610 (debug_fold_checksum): Moved to fold-const.h.
3611 (debug_head): Moved to print-tree.h.
3612 (debug_head): Moved to print-tree.h.
3613 (debug_raw): Moved to print-tree.h.
3614 (debug_tree): Moved to print-tree.h.
3615 (debug_vec_tree): Moved to print-tree.h.
3616 (debug_verbose): Moved to print-tree.h.
3617 (debug_verbose): Moved to print-tree.h.
3618 (decl_attributes): Moved to attribs.h.
3619 (decl_binds_to_current_def_p): Moved to varasm.h.
3620 (decl_default_tls_model): Moved to varasm.h.
3621 (decl_replaceable_p): Moved to varasm.h.
3622 (div_if_zero_remainder): Moved to fold-const.h.
3623 (double_int mem_ref_offset): Moved to fold-const.h.
3624 (dump_addr): Moved to print-tree.h.
3625 (element_precision): Moved to machmode.h.
3626 (expand_dummy_function_end): Moved to function.h.
3627 (expand_function_end): Moved to function.h.
3628 (expand_function_start): Moved to function.h.
3629 (expand_label): Moved to stmt.h.
3630 (expr_first): Moved to tree-iterator.h.
3631 (expr_last): Moved to tree-iterator.h.
3632 (finalize_size_functions): Moved to stor-layout.h.
3633 (finish_builtin_struct): Moved to stor-layout.h.
3634 (finish_record_layout): Moved to stor-layout.h.
3635 (fixup_signed_type): Moved to stor-layout.h.
3636 (fixup_unsigned_type): Moved to stor-layout.h.
3637 (flags_from_decl_or_type): Moved to calls.h.
3638 (fold): Moved to fold-const.h.
3639 (fold_abs_const): Moved to fold-const.h.
3640 (fold_binary): Moved to fold-const.h.
3641 (fold_binary_loc): Moved to fold-const.h.
3642 (fold_binary_to_constant): Moved to fold-const.h.
3643 (fold_build1): Moved to fold-const.h.
3644 (fold_build1_initializer_loc): Moved to fold-const.h.
3645 (fold_build1_loc): Moved to fold-const.h.
3646 (fold_build1_stat_loc): Moved to fold-const.h.
3647 (fold_build2): Moved to fold-const.h.
3648 (fold_build2_initializer_loc): Moved to fold-const.h.
3649 (fold_build2_loc): Moved to fold-const.h.
3650 (fold_build2_stat_loc): Moved to fold-const.h.
3651 (fold_build3): Moved to fold-const.h.
3652 (fold_build3_loc): Moved to fold-const.h.
3653 (fold_build3_stat_loc): Moved to fold-const.h.
3654 (fold_build_call_array): Moved to fold-const.h.
3655 (fold_build_call_array_initializer): Moved to fold-const.h.
3656 (fold_build_call_array_initializer_loc): Moved to fold-const.h.
3657 (fold_build_call_array_loc): Moved to fold-const.h.
3658 (fold_build_cleanup_point_expr): Moved to fold-const.h.
3659 (fold_convert): Moved to fold-const.h.
3660 (fold_convert_loc): Moved to fold-const.h.
3661 (fold_convertible_p): Moved to fold-const.h.
3662 (fold_defer_overflow_warnings): Moved to fold-const.h.
3663 (fold_deferring_overflow_warnings_p): Moved to fold-const.h.
3664 (fold_fma): Moved to fold-const.h.
3665 (fold_ignored_result): Moved to fold-const.h.
3666 (fold_indirect_ref): Moved to fold-const.h.
3667 (fold_indirect_ref_1): Moved to fold-const.h.
3668 (fold_indirect_ref_loc): Moved to fold-const.h.
3669 (fold_read_from_constant_string): Moved to fold-const.h.
3670 (fold_real_zero_addition_p): Moved to fold-const.h.
3671 (fold_single_bit_test): Moved to fold-const.h.
3672 (fold_strip_sign_ops): Moved to fold-const.h.
3673 (fold_ternary): Moved to fold-const.h.
3674 (fold_ternary_loc): Moved to fold-const.h.
3675 (fold_unary): Moved to tree-data-ref.h.
3676 (fold_unary_ignore_overflow): Moved to fold-const.h.
3677 (fold_unary_ignore_overflow_loc): Moved to fold-const.h.
3678 (fold_unary_loc): Moved to fold-const.h.
3679 (fold_unary_to_constant): Moved to fold-const.h.
3680 (fold_undefer_and_ignore_overflow_warnings): Moved to fold-const.h.
3681 (fold_undefer_overflow_warnings): Moved to fold-const.h.
3682 (folding_initializer): Moved to fold-const.h.
3683 (free_temp_slots): Moved to function.h.
3684 (generate_setjmp_warnings): Moved to function.h.
3685 (get_attribute_name): Moved to attribs.h.
3686 (get_identifier): Moved to stringpool.h.
3687 (get_identifier_with_length): Moved to stringpool.h.
3688 (get_inner_reference): Moved to tree.h.
3689 (gimple_alloca_call_p): Moved to calls.h.
3690 (gimplify_parameters): Moved to function.h.
3691 (highest_pow2_factor): Moved to expr.h.
3692 (indent_to): Moved to print-tree.h.
3693 (init_attributes): Moved to attribs.h.
3694 (init_dummy_function_start): Moved to function.h.
3695 (init_function_start): Moved to function.h.
3696 (init_inline_once): Moved to tree-inline.h.
3697 (init_object_sizes): Moved to tree-object-size.h.
3698 (init_temp_slots): Moved to function.h.
3699 (init_tree_optimization_optabs): Moved to optabs.h.
3700 (initialize_sizetypes): Moved to stor-layout.h.
3701 (initializer_constant_valid_for_bitfield_p): Moved to varasm.h.
3702 (initializer_constant_valid_p): Moved to varasm.h.
3703 (int_const_binop): Moved to fold-const.h.
3704 (internal_reference_types): Moved to stor-layout.h.
3705 (invert_tree_comparison): Moved to fold-const.h.
3706 (invert_truthvalue): Moved to fold-const.h.
3707 (invert_truthvalue_loc): Moved to fold-const.h.
3708 (is_tm_ending_fndecl): Moved to trans-mem.h.
3709 (is_tm_may_cancel_outer): Moved to trans-mem.h.
3710 (is_tm_pure): Moved to trans-mem.h.
3711 (is_tm_safe): Moved to trans-mem.h.
3712 (layout_decl): Moved to stor-layout.h.
3713 (layout_type): Moved to stor-layout.h.
3714 (lookup_attribute_spec): Moved to attribs.h.
3715 (make_accum_type): Moved to stor-layout.h.
3716 (make_decl_one_only): Moved to varasm.h.
3717 (make_decl_rtl): Moved to tree.h.
3718 (make_decl_rtl_for_debug): Moved to varasm.h.
3719 (make_fract_type): Moved to stor-layout.h.
3720 (make_or_reuse_sat_signed_accum_type): Moved to stor-layout.h.
3721 (make_or_reuse_sat_signed_fract_type): Moved to stor-layout.h.
3722 (make_or_reuse_sat_unsigned_accum_type): Moved to stor-layout.h.
3723 (make_or_reuse_sat_unsigned_fract_type): Moved to stor-layout.h.
3724 (make_or_reuse_signed_accum_type): Moved to stor-layout.h.
3725 (make_or_reuse_signed_fract_type): Moved to stor-layout.h.
3726 (make_or_reuse_unsigned_accum_type): Moved to stor-layout.h.
3727 (make_or_reuse_unsigned_fract_type): Moved to stor-layout.h.
3728 (make_range): Moved to fold-const.h.
3729 (make_range_step): Moved to fold-const.h.
3730 (make_sat_signed_accum_type): Moved to stor-layout.h.
3731 (make_sat_signed_fract_type): Moved to stor-layout.h.
3732 (make_sat_unsigned_accum_type): Moved to stor-layout.h.
3733 (make_sat_unsigned_fract_type): Moved to stor-layout.h.
3734 (make_signed_accum_type): Moved to stor-layout.h.
3735 (make_signed_fract_type): Moved to stor-layout.h.
3736 (make_signed_type): Moved to stor-layout.h.
3737 (make_unsigned_accum_type): Moved to stor-layout.h.
3738 (make_unsigned_fract_type): Moved to stor-layout.h.
3739 (make_unsigned_type): Moved to stor-layout.h.
3740 (mark_decl_referenced): Moved to varasm.h.
3741 (mark_referenced): Moved to varasm.h.
3742 (may_negate_without_overflow_p): Moved to fold-const.h.
3743 (maybe_get_identifier): Moved to stringpool.h.
3744 (merge_ranges): Moved to fold-const.h.
3745 (merge_weak): Moved to varasm.h.
3746 (mode_for_size_tree): Moved to stor-layout.h.
3747 (multiple_of_p): Moved to fold-const.h.
3748 (must_pass_in_stack_var_size): Moved to calls.h.
3749 (must_pass_in_stack_var_size_or_pad): Moved to calls.h.
3750 (native_encode_expr): Moved to fold-const.h.
3751 (native_interpret_expr): Moved to fold-const.h.
3752 (non_lvalue): Moved to fold-const.h.
3753 (non_lvalue_loc): Moved to fold-const.h.
3754 (normalize_offset): Moved to stor-layout.h.
3755 (normalize_rli): Moved to stor-layout.h.
3756 (notice_global_symbol): Moved to varasm.h.
3757 (omit_one_operand): Moved to fold-const.h.
3758 (omit_one_operand_loc): Moved to fold-const.h.
3759 (omit_two_operands): Moved to fold-const.h.
3760 (omit_two_operands_loc): Moved to fold-const.h.
3761 (operand_equal_p): Moved to tree-data-ref.h.
3762 (parse_input_constraint): Moved to stmt.h.
3763 (parse_output_constraint): Moved to stmt.h.
3764 (place_field): Moved to stor-layout.h.
3765 (pop_function_context): Moved to function.h.
3766 (pop_temp_slots): Moved to function.h.
3767 (pos_from_bit): Moved to stor-layout.h.
3768 (preserve_temp_slots): Moved to function.h.
3769 (print_node): Moved to print-tree.h.
3770 (print_node_brief): Moved to print-tree.h.
3771 (print_rtl): Moved to rtl.h.
3772 (process_pending_assemble_externals): Moved to varasm.h.
3773 (ptr_difference_const): Moved to fold-const.h.
3774 (push_function_context): Moved to function.h.
3775 (push_struct_function): Moved to function.h.
3776 (push_temp_slots): Moved to function.h.
3777 (record_tm_replacement): Moved to trans-mem.h.
3778 (relayout_decl): Moved to stor-layout.h.
3779 (resolve_asm_operand_names): Moved to stmt.h.
3780 (resolve_unique_section): Moved to varasm.h.
3781 (rli_size_so_far): Moved to stor-layout.h.
3782 (rli_size_unit_so_far): Moved to stor-layout.h.
3783 (round_down): Moved to fold-const.h.
3784 (round_down_loc): Moved to fold-const.h.
3785 (round_up): Moved to fold-const.h.
3786 (round_up_loc): Moved to fold-const.h.
3787 (set_decl_incoming_rtl): Moved to emit-rtl.h.
3788 (set_decl_rtl): Moved to tree.h.
3789 (set_min_and_max_values_for_integral_type): Moved to stor-layout.h.
3790 (set_user_assembler_name): Moved to varasm.h.
3791 (setjmp_call_p): Moved to calls.h.
3792 (size_binop): Moved to fold-const.h.
3793 (size_binop_loc): Moved to fold-const.h.
3794 (size_diffop): Moved to fold-const.h.
3795 (size_diffop_loc): Moved to fold-const.h.
3796 (size_int_kind): Moved to fold-const.h.
3797 (stack_protect_epilogue): Moved to function.h.
3798 (start_record_layout): Moved to stor-layout.h.
3799 (supports_one_only): Moved to varasm.h.
3800 (swap_tree_comparison): Moved to fold-const.h.
3801 (tm_malloc_replacement): Moved to trans-mem.h.
3802 (tree build_fold_addr_expr_loc): Moved to fold-const.h.
3803 (tree build_invariant_address): Moved to fold-const.h.
3804 (tree_binary_nonnegative_warnv_p): Moved to fold-const.h.
3805 (tree_binary_nonzero_warnv_p): Moved to fold-const.h.
3806 (tree_call_nonnegative_warnv_p): Moved to fold-const.h.
3807 (tree_expr_nonnegative_p): Moved to fold-const.h.
3808 (tree_expr_nonnegative_warnv_p): Moved to fold-const.h.
3809 (tree_output_constant_def): Moved to varasm.h.
3810 (tree_overlaps_hard_reg_set): Moved to stmt.h.
3811 (tree_single_nonnegative_warnv_p): Moved to fold-const.h.
3812 (tree_single_nonzero_warnv_p): Moved to fold-const.h.
3813 (tree_swap_operands_p): Moved to fold-const.h.
3814 (tree_unary_nonnegative_warnv_p): Moved to fold-const.h.
3815 (tree_unary_nonzero_warnv_p): Moved to fold-const.h.
3816 (update_alignment_for_field): Moved to stor-layout.h.
3817 (use_register_for_decl): Moved to function.h.
3818 (variable_size): Moved to rtl.h.
3819 (vector_type_mode): Moved to stor-layout.h.
3820 * cgraph.h: Corresponding changes.
3821 * emit-rtl.h: Corresponding changes.
3822 * expr.h: Corresponding changes.
3823 * function.h: Corresponding changes.
3824 * optabs.h: Corresponding changes.
3825 * trans-mem.h: Corresponding changes.
3826 Protect against multiple inclusion.
3827 * tree-inline.h: Corresponding changes.
3828 * tree-iterator.h: Corresponding changes.
3829 * tree-dfa.h: Include expr.h.
3830 * tree-ssanames.h: Include stringpool.h.
3831 * attribs.h: New file.
3832 * calls.h: New file.
3833 * fold-const.h: New file.
3834 * gcc-symtab.h: New file.
3835 * print-rtl.h: New file.
3836 * print-tree.h: New file.
3838 * stor-layout.h: New file.
3839 * strinpool.h: New file.
3840 * tree-nested.h: New file
3841 * tree-object-size.h: New file.
3842 * varasm.h: New file.
3844 2013-11-14 Diego Novillo <dnovillo@google.com>
3846 * alias.c: Include varasm.h.
3848 * asan.c: Include calls.h.
3849 Include stor-layout.h.
3851 * attribs.c: Include stringpool.h.
3853 Include stor-layout.h.
3854 * builtins.c: Include stringpool.h.
3855 Include stor-layout.h.
3858 Include tree-object-size.h.
3859 * calls.c: Include stor-layout.h.
3861 Include stringpool.h.
3863 * cfgexpand.c: Include stringpool.h.
3865 Include stor-layout.h.
3867 Include print-tree.h.
3868 * cgraph.c: Include varasm.h.
3870 Include print-tree.h.
3871 * cgraphclones.c: Include stringpool.h.
3874 Move inclusion of rtl.h earlier in the file.
3875 * cgraphunit.c: Include varasm.h.
3876 Include stor-layout.h.
3877 Include stringpool.h.
3878 * cilk-common.c: Include stringpool.h.
3879 Include stor-layout.h.
3880 * combine.c: Include stor-layout.h.
3881 * config/aarch64/aarch64-builtins.c: Include stor-layout.h.
3882 Include stringpool.h.
3884 * config/aarch64/aarch64.c: Include stringpool.h.
3885 Include stor-layout.h.
3888 * config/alpha/alpha.c: Include stor-layout.h.
3891 * config/arc/arc.c: Include varasm.h.
3892 Include stor-layout.h.
3893 Include stringpool.h.
3895 * config/arm/arm.c: Include stringpool.h.
3896 Include stor-layout.h.
3899 * config/avr/avr-c.c: Include stor-layout.h.
3900 * config/avr/avr-log.c: Include print-tree.h.
3901 * config/avr/avr.c: Include print-tree.h.
3903 Include stor-layout.h.
3904 Include stringpool.h.
3905 * config/bfin/bfin.c: Include varasm.h.
3907 * config/c6x/c6x.c: Include stor-layout.h.
3910 Include stringpool.h.
3911 * config/cr16/cr16.c: Include stor-layout.h.
3913 * config/cris/cris.c: Include varasm.h.
3914 Include stor-layout.h.
3917 * config/darwin.c: Include stringpool.h.
3919 Include stor-layout.h.
3920 * config/epiphany/epiphany.c: Include stor-layout.h.
3923 Include stringpool.h.
3924 * config/fr30/fr30.c: Include stor-layout.h.
3926 * config/frv/frv.c: Include varasm.h.
3927 Include stor-layout.h.
3928 Include stringpool.h.
3929 * config/h8300/h8300.c: Include stor-layout.h.
3932 Include stringpool.h.
3933 * config/i386/i386.c: Include stringpool.h.
3936 Include stor-layout.h.
3938 * config/i386/winnt-cxx.c: Include stringpool.h.
3940 * config/i386/winnt.c: Include stringpool.h.
3942 * config/ia64/ia64-c.c: Include stringpool.h.
3943 * config/ia64/ia64.c: Include stringpool.h.
3944 Include stor-layout.h.
3947 * config/iq2000/iq2000.c: Include stor-layout.h.
3950 * config/lm32/lm32.c: Include calls.h.
3951 * config/m32c/m32c.c: Include stor-layout.h.
3954 * config/m32r/m32r.c: Include stor-layout.h.
3956 Include stringpool.h.
3958 * config/m68k/m68k.c: Include calls.h.
3959 Include stor-layout.h.
3961 * config/mcore/mcore.c: Include stor-layout.h.
3963 Include stringpool.h.
3965 * config/mep/mep.c: Include varasm.h.
3967 Include stringpool.h.
3968 Include stor-layout.h.
3969 * config/microblaze/microblaze.c: Include varasm.h.
3970 Include stor-layout.h.
3972 * config/mips/mips.c: Include varasm.h.
3973 Include stringpool.h.
3974 Include stor-layout.h.
3976 * config/mmix/mmix.c: Include varasm.h.
3977 Include stor-layout.h.
3979 * config/mn10300/mn10300.c: Include stor-layout.h.
3982 * config/moxie/moxie.c: Include stor-layout.h.
3985 * config/msp430/msp430.c: Include stor-layout.h.
3987 * config/nds32/nds32.c: Include stor-layout.h.
3990 * config/pa/pa.c: Include stor-layout.h.
3991 Include stringpool.h.
3994 * config/pdp11/pdp11.c: Include stor-layout.h.
3997 * config/picochip/picochip.c: Include calls.h.
3998 Include stor-layout.h.
3999 Include stringpool.h.
4001 * config/rl78/rl78.c: Include varasm.h.
4002 Include stor-layout.h.
4004 * config/rs6000/rs6000-c.c: Include stor-layout.h.
4005 Include stringpool.h.
4006 * config/rs6000/rs6000.c: Include stringpool.h.
4007 Include stor-layout.h.
4009 Include print-tree.h.
4011 * config/rx/rx.c: Include varasm.h.
4012 Include stor-layout.h.
4014 * config/s390/s390.c: Include print-tree.h.
4015 Include stringpool.h.
4016 Include stor-layout.h.
4019 * config/score/score.c: Include stringpool.h.
4022 Include stor-layout.h.
4023 * config/sh/sh-c.c: Include stringpool.h.
4024 Include attribs.h.h.
4025 * config/sh/sh.c: Include stringpool.h.
4026 Include stor-layout.h.
4029 * config/sol2-c.c: Include stringpool.h.
4031 * config/sol2-cxx.c: Include stringpool.h.
4032 * config/sol2.c: Include stringpool.h.
4034 * config/sparc/sparc.c: Include stringpool.h.
4035 Include stor-layout.h.
4038 * config/spu/spu-c.c: Include stringpool.h.
4039 * config/spu/spu.c: Include stringpool.h.
4040 Include stor-layout.h.
4043 * config/stormy16/stormy16.c: Include stringpool.h.
4044 Include stor-layout.h.
4047 * config/tilegx/tilegx.c: Include stringpool.h.
4048 Include stor-layout.h.
4051 * config/tilepro/tilepro.c: Include stringpool.h.
4052 Include stor-layout.h.
4055 * config/v850/v850-c.c: Include stringpool.h.
4057 * config/v850/v850.c: Include stringpool.h.
4058 Include stor-layout.h.
4061 * config/vax/vax.c: Include calls.h.
4063 * config/vms/vms.c: Include stringpool.h.
4064 * config/vxworks.c: Include stringpool.h.
4065 * config/xtensa/xtensa.c: Include stringpool.h.
4066 Include stor-layout.h.
4069 * convert.c: Include stor-layout.h.
4070 * coverage.c: Include stringpool.h.
4071 Include stor-layout.h.
4072 * dbxout.c: Include varasm.h.
4073 Include stor-layout.h.
4074 * dojump.c: Include stor-layout.h.
4075 * dse.c: Include stor-layout.h.
4076 * dwarf2asm.c: Include stringpool.h.
4078 * dwarf2cfi.c: Include stor-layout.h.
4079 * dwarf2out.c: Include rtl.h.
4080 Include stringpool.h.
4081 Include stor-layout.h.
4085 Move inclusion of rtl.h earlier in the file.
4086 * emit-rtl.c: Include varasm.h.
4087 * except.c: Include stringpool.h.
4088 Include stor-layout.h.
4089 * explow.c: Include stor-layout.h.
4090 * expmed.c: Include stor-layout.h.
4091 * expr.c: Include stringpool.h.
4092 Include stor-layout.h.
4095 * final.c: Include varasm.h.
4096 * fold-const.c: Include stor-layout.h.
4098 Include tree-iterator.h.
4099 * function.c: Include stor-layout.h.
4101 Include stringpool.h.
4102 * genattrtab.c (write_header): Emit includes for varasm.h,
4103 stor-layout.h and calls.h.
4104 * genautomata.c (main): Likewise.
4105 * genemit.c: Likewise.
4106 * genopinit.c: Likewise.
4107 * genoutput.c (output_prologue): Likewise.
4108 * genpeep.c: Likewise.
4109 * genpreds.c (write_insn_preds_c): Likewise.
4110 * gengtype.c (open_base_files): Add stringpool.h.
4111 * gimple-expr.c: Include stringpool.h.
4112 Include stor-layout.h.
4113 * gimple-fold.c: Include stringpool.h.
4116 Include stor-layout.h.
4117 * gimple-low.c: Include tree-nested.h.
4119 * gimple-pretty-print.c: Include stringpool.h.
4120 * gimple-ssa-strength-reduction.c: Include stor-layout.h.
4122 * gimple-walk.c: Include stmt.h.
4123 * gimple.c: Include calls.h.
4125 Include stor-layout.h.
4126 * gimplify.c: Include stringpool.h.
4129 Include stor-layout.h.
4131 Include print-tree.h.
4133 * gimplify-me.c: Include stmt.h
4134 Include stor-layout.h
4135 * internal-fn.c: Include stor-layout.h.
4136 * ipa-devirt.c: Include print-tree.h.
4138 * ipa-inline-analysis.c: Include stor-layout.h.
4139 Include stringpool.h.
4140 Include print-tree.h.
4141 * ipa-inline.c: Include trans-mem.h.
4143 * ipa-prop.c: Include expr.h.
4144 Include stor-layout.h.
4145 Include print-tree.h.
4146 * ipa-pure-const.c: Include print-tree.h.
4148 * ipa-reference.c: Include calls.h.
4149 * ipa-split.c: Include stringpool.h.
4152 * ipa.c: Include calls.h.
4153 Include stringpool.h.
4154 * langhooks.c: Include stringpool.h.
4156 * lto-cgraph.c: Include stringpool.h.
4157 * lto-streamer-in.c: Include stringpool.h.
4158 * lto-streamer-out.c: Include stor-layout.h.
4159 Include stringpool.h.
4160 * omp-low.c: Include stringpool.h.
4161 Include stor-layout.h.
4163 * optabs.c: Include stor-layout.h.
4164 Include stringpool.h.
4166 * passes.c: Include varasm.h.
4167 * predict.c: Include calls.h.
4168 * print-rtl.c: Include print-tree.h.
4169 * print-tree.c: Include varasm.h.
4170 Include print-rtl.h.
4171 Include stor-layout.h.
4172 * realmpfr.c: Include stor-layout.h.
4173 * reg-stack.c: Include varasm.h.
4174 * sdbout.c: Include varasm.h.
4175 Include stor-layout.h.
4176 * simplify-rtx.c: Include varasm.h.
4177 * stmt.c: Include varasm.h.
4178 Include stor-layout.h.
4179 * stor-layout.c: Include stor-layout.h.
4180 Include stringpool.h.
4182 Include print-tree.h.
4183 * symtab.c: Include rtl.h.
4184 Include print-tree.h.
4188 * targhooks.c: Include stor-layout.h.
4190 * toplev.c: Include varasm.h.
4191 Include tree-inline.h.
4192 * trans-mem.c: Include calls.h.
4196 * tree-affine.c: Include expr.h.
4197 * tree-browser.c: Include print-tree.h.
4198 * tree-call-cdce.c: Include stor-layout.h.
4199 * tree-cfg.c: Include trans-mem.h.
4200 Include stor-layout.h.
4201 Include print-tree.h.
4202 * tree-complex.c: Include stor-layout.h.
4203 * tree-data-ref.c: Include expr.h.
4204 * tree-dfa.c: Include stor-layout.h.
4205 * tree-eh.c: Include expr.h.
4207 * tree-emutls.c: Include stor-layout.h.
4209 * tree-if-conv.c: Include stor-layout.h.
4210 * tree-inline.c: Include stor-layout.h.
4212 * tree-loop-distribution.c: Include stor-layout.h.
4213 * tree-nested.c: Include stringpool.h.
4214 Include stor-layout.h.
4215 * tree-object-size.c: Include tree-object-size.h.
4216 * tree-outof-ssa.c: Include stor-layout.h.
4217 * tree-parloops.c: Include stor-layout.h.
4218 Include tree-nested.h.
4219 * tree-pretty-print.c: Include stor-layout.h.
4221 * tree-profile.c: Include varasm.h.
4222 Include tree-nested.h.
4223 * tree-scalar-evolution.c: Include expr.h.
4224 * tree-sra.c: Include stor-layout.h.
4225 * tree-ssa-address.c: Include stor-layout.h.
4226 * tree-ssa-ccp.c: Include stor-layout.h.
4227 * tree-ssa-dce.c: Include calls.h.
4228 * tree-ssa-dom.c: Include stor-layout.h.
4229 * tree-ssa-forwprop.c: Include stor-layout.h.
4230 * tree-ssa-ifcombine.c: Include stor-layout.h.
4231 * tree-ssa-loop-ivopts.c: Include stor-layout.h.
4232 * tree-ssa-loop-niter.c: Include calls.h.
4234 * tree-ssa-loop-prefetch.c: Include stor-layout.h.
4235 * tree-ssa-math-opts.c: Include stor-layout.h.
4236 * tree-ssa-operands.c: Include stmt.h.
4237 Include print-tree.h.
4238 * tree-ssa-phiopt.c: Include stor-layout.h.
4239 * tree-ssa-reassoc.c: Include stor-layout.h.
4240 * tree-ssa-sccvn.c: Include stor-layout.h.
4241 * tree-ssa-sink.c: Include stor-layout.h.
4242 * tree-ssa-strlen.c: Include stor-layout.h.
4243 * tree-ssa-structalias.c: Include stor-layout.h.
4245 * tree-ssa-tail-merge.c: Include stor-layout.h.
4246 Include trans-mem.h.
4247 * tree-ssa-uncprop.c: Include stor-layout.h.
4248 * tree-ssa.c: Include stor-layout.h.
4249 * tree-ssanames.c: Include stor-layout.h.
4250 * tree-streamer-in.c: Include stringpool.h.
4251 * tree-streamer-out.c: Include stor-layout.h.
4252 * tree-switch-conversion.c: Include varasm.h.
4253 Include stor-layout.h.
4254 * tree-tailcall.c: Include stor-layout.h.
4255 * tree-vect-data-refs.c: Include stor-layout.h.
4256 * tree-vect-generic.c: Include stor-layout.h.
4257 * tree-vect-loop.c: Include stor-layout.h.
4258 * tree-vect-patterns.c: Include stor-layout.h.
4259 * tree-vect-slp.c: Include stor-layout.h.
4260 * tree-vect-stmts.c: Include stor-layout.h.
4261 * tree-vectorizer.c: Include stor-layout.h.
4262 * tree-vrp.c: Include stor-layout.h.
4264 * tree.c: Include stor-layout.h.
4268 * tsan.c: Include expr.h.
4269 * ubsan.c: Include stor-layout.h.
4270 Include stringpool.h.
4271 * value-prof.c: Include tree-nested.h.
4273 * var-tracking.c: Include varasm.h.
4274 Include stor-layout.h.
4275 * varasm.c: Include stor-layout.h.
4276 Include stringpool.h.
4277 Include gcc-symtab.h.
4279 * varpool.c: Include varasm.h.
4280 * vmsdbgout.c: Include varasm.h.
4281 * xcoffout.c: Include varasm.h.
4283 2013-11-14 Joern Rennecke <joern.rennecke@embecosm.com>
4285 * config/arc/arc.md (doloop_begin_i): Remove extra alignment;
4288 2013-11-14 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
4290 * config/rs6000/sysv4le.h (LINUX64_DEFAULT_ABI_ELFv2): Define.
4292 2013-11-14 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
4293 Alan Modra <amodra@gmail.com>
4295 * config/rs6000/rs6000.h (RS6000_SAVE_AREA): Handle ABI_ELFv2.
4296 (RS6000_SAVE_TOC): Remove.
4297 (RS6000_TOC_SAVE_SLOT): New macro.
4298 * config/rs6000/rs6000.c (rs6000_parm_offset): New function.
4299 (rs6000_parm_start): Use it.
4300 (rs6000_function_arg_advance_1): Likewise.
4301 (rs6000_emit_prologue): Use RS6000_TOC_SAVE_SLOT.
4302 (rs6000_emit_epilogue): Likewise.
4303 (rs6000_call_aix): Likewise.
4304 (rs6000_output_function_prologue): Do not save/restore r11
4305 around calling _mcount for ABI_ELFv2.
4307 2013-11-14 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
4308 Alan Modra <amodra@gmail.com>
4310 * config/rs6000/rs6000-protos.h (rs6000_reg_parm_stack_space):
4312 * config/rs6000/rs6000.h (RS6000_REG_SAVE): Remove.
4313 (REG_PARM_STACK_SPACE): Call rs6000_reg_parm_stack_space.
4314 * config/rs6000/rs6000.c (rs6000_parm_needs_stack): New function.
4315 (rs6000_function_parms_need_stack): Likewise.
4316 (rs6000_reg_parm_stack_space): Likewise.
4317 (rs6000_function_arg): Do not replace BLKmode by Pmode when
4318 returning a register argument.
4320 2013-11-14 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
4321 Michael Gschwind <mkg@us.ibm.com>
4323 * config/rs6000/rs6000.h (FP_ARG_MAX_RETURN): New macro.
4324 (ALTIVEC_ARG_MAX_RETURN): Likewise.
4325 (FUNCTION_VALUE_REGNO_P): Use them.
4326 * config/rs6000/rs6000.c (TARGET_RETURN_IN_MSB): Define.
4327 (rs6000_return_in_msb): New function.
4328 (rs6000_return_in_memory): Handle ELFv2 homogeneous aggregates.
4329 Handle aggregates of up to 16 bytes for ELFv2.
4330 (rs6000_function_value): Handle ELFv2 homogeneous aggregates.
4332 2013-11-14 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
4333 Michael Gschwind <mkg@us.ibm.com>
4335 * config/rs6000/rs6000.h (AGGR_ARG_NUM_REG): Define.
4336 * config/rs6000/rs6000.c (rs6000_aggregate_candidate): New function.
4337 (rs6000_discover_homogeneous_aggregate): Likewise.
4338 (rs6000_function_arg_boundary): Handle homogeneous aggregates.
4339 (rs6000_function_arg_advance_1): Likewise.
4340 (rs6000_function_arg): Likewise.
4341 (rs6000_arg_partial_bytes): Likewise.
4342 (rs6000_psave_function_arg): Handle BLKmode arguments.
4344 2013-11-14 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
4345 Michael Gschwind <mkg@us.ibm.com>
4347 * config/rs6000/rs6000.h (AGGR_ARG_NUM_REG): Define.
4348 * config/rs6000/rs6000.c (rs6000_aggregate_candidate): New function.
4349 (rs6000_discover_homogeneous_aggregate): Likewise.
4350 (rs6000_function_arg_boundary): Handle homogeneous aggregates.
4351 (rs6000_function_arg_advance_1): Likewise.
4352 (rs6000_function_arg): Likewise.
4353 (rs6000_arg_partial_bytes): Likewise.
4354 (rs6000_psave_function_arg): Handle BLKmode arguments.
4356 2013-11-14 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
4358 * config/rs6000/rs6000.c (machine_function): New member
4360 (rs6000_emit_prologue): Set r2_setup_needed if necessary.
4361 (rs6000_output_mi_thunk): Set r2_setup_needed.
4362 (rs6000_output_function_prologue): Output global entry point
4363 prologue and local entry point marker if needed for ABI_ELFv2.
4364 Output -mprofile-kernel code here.
4365 (output_function_profiler): Do not output -mprofile-kernel
4366 code here; moved to rs6000_output_function_prologue.
4367 (rs6000_file_start): Output ".abiversion 2" for ABI_ELFv2.
4369 (rs6000_emit_move): Do not handle dot symbols for ABI_ELFv2.
4370 (rs6000_output_function_entry): Likewise.
4371 (rs6000_assemble_integer): Likewise.
4372 (rs6000_elf_encode_section_info): Likewise.
4373 (rs6000_elf_declare_function_name): Do not create dot symbols
4374 or .opd section for ABI_ELFv2.
4376 (rs6000_trampoline_size): Update for ABI_ELFv2 trampolines.
4377 (rs6000_trampoline_init): Likewise.
4378 (rs6000_elf_file_end): Call file_end_indicate_exec_stack for ABI_ELFv2.
4380 (rs6000_call_aix): Handle ELFv2 indirect calls. Do not check
4381 for function descriptors in ABI_ELFv2.
4383 * config/rs6000/rs6000.md ("*call_indirect_aix<mode>"): Support
4384 on ABI_AIX only, not ABI_ELFv2.
4385 ("*call_value_indirect_aix<mode>"): Likewise.
4386 ("*call_indirect_elfv2<mode>"): New pattern.
4387 ("*call_value_indirect_elfv2<mode>"): Likewise.
4389 * config/rs6000/predicates.md ("symbol_ref_operand"): Do not
4390 check for function descriptors in ABI_ELFv2.
4391 ("current_file_function_operand"): Likewise.
4393 * config/rs6000/ppc-asm.h [__powerpc64__ && _CALL_ELF == 2]:
4395 (FUNC_NAME): Define ELFv2 variant.
4396 (JUMP_TARGET): Likewise.
4397 (FUNC_START): Likewise.
4398 (HIDDEN_FUNC): Likewise.
4399 (FUNC_END): Likeiwse.
4401 2013-11-14 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
4403 * config.gcc [powerpc*-*-* | rs6000-*-*]: Support --with-abi=elfv1
4404 and --with-abi=elfv2.
4405 * config/rs6000/option-defaults.h (OPTION_DEFAULT_SPECS): Add "abi".
4406 * config/rs6000/rs6000.opt (mabi=elfv1): New option.
4407 (mabi=elfv2): Likewise.
4408 * config/rs6000/rs6000-opts.h (enum rs6000_abi): Add ABI_ELFv2.
4409 * config/rs6000/linux64.h (DEFAULT_ABI): Do not hard-code to AIX_ABI
4411 (ELFv2_ABI_CHECK): New macro.
4412 (SUBSUBTARGET_OVERRIDE_OPTIONS): Use it to decide whether to set
4413 rs6000_current_abi to ABI_AIX or ABI_ELFv2.
4414 (GLIBC_DYNAMIC_LINKER64): Support ELFv2 ld.so version.
4415 * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Predefine
4416 _CALL_ELF and __STRUCT_PARM_ALIGN__ if appropriate.
4418 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Handle ABI_ELFv2.
4419 (debug_stack_info): Likewise.
4420 (rs6000_file_start): Treat ABI_ELFv2 the same as ABI_AIX.
4421 (rs6000_legitimize_tls_address): Likewise.
4422 (rs6000_conditional_register_usage): Likewise.
4423 (rs6000_emit_move): Likewise.
4424 (init_cumulative_args): Likewise.
4425 (rs6000_function_arg_advance_1): Likewise.
4426 (rs6000_function_arg): Likewise.
4427 (rs6000_arg_partial_bytes): Likewise.
4428 (rs6000_output_function_entry): Likewise.
4429 (rs6000_assemble_integer): Likewise.
4430 (rs6000_savres_strategy): Likewise.
4431 (rs6000_stack_info): Likewise.
4432 (rs6000_function_ok_for_sibcall): Likewise.
4433 (rs6000_emit_load_toc_table): Likewise.
4434 (rs6000_savres_routine_name): Likewise.
4435 (ptr_regno_for_savres): Likewise.
4436 (rs6000_emit_prologue): Likewise.
4437 (rs6000_emit_epilogue): Likewise.
4438 (rs6000_output_function_epilogue): Likewise.
4439 (output_profile_hook): Likewise.
4440 (output_function_profiler): Likewise.
4441 (rs6000_trampoline_size): Likewise.
4442 (rs6000_trampoline_init): Likewise.
4443 (rs6000_elf_output_toc_section_asm_op): Likewise.
4444 (rs6000_elf_encode_section_info): Likewise.
4445 (rs6000_elf_reloc_rw_mask): Likewise.
4446 (rs6000_elf_declare_function_name): Likewise.
4447 (rs6000_function_arg_boundary): Treat ABI_ELFv2 the same as ABI_AIX,
4448 except that rs6000_compat_align_parm is always assumed false.
4449 (rs6000_gimplify_va_arg): Likewise.
4450 (rs6000_call_aix): Update comment.
4451 (rs6000_sibcall_aix): Likewise.
4452 * config/rs6000/rs6000.md ("tls_gd_aix<TLSmode:tls_abi_suffix>"):
4453 Treat ABI_ELFv2 the same as ABI_AIX.
4454 ("*tls_gd_call_aix<TLSmode:tls_abi_suffix>"): Likewise.
4455 ("tls_ld_aix<TLSmode:tls_abi_suffix>"): Likewise.
4456 ("*tls_ld_call_aix<TLSmode:tls_abi_suffix>"): Likewise.
4457 ("load_toc_aix_si"): Likewise.
4458 ("load_toc_aix_di"): Likewise.
4460 ("call_value"): Likewise.
4461 ("*call_local_aix<mode>"): Likewise.
4462 ("*call_value_local_aix<mode>"): Likewise.
4463 ("*call_nonlocal_aix<mode>"): Likewise.
4464 ("*call_value_nonlocal_aix<mode>"): Likewise.
4465 ("*call_indirect_aix<mode>"): Likewise.
4466 ("*call_value_indirect_aix<mode>"): Likewise.
4467 ("sibcall"): Likewise.
4468 ("sibcall_value"): Likewise.
4469 ("*sibcall_aix<mode>"): Likewise.
4470 ("*sibcall_value_aix<mode>"): Likewise.
4471 * config/rs6000/predicates.md ("symbol_ref_operand"): Likewise.
4472 ("current_file_function_operand"): Likewise.
4474 2013-11-14 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
4476 * config/rs6000/rs6000.c (rs6000_arg_partial_bytes): Simplify logic
4477 by making use of the fact that for vector / floating point arguments
4478 passed both in VRs/FPRs and in the fixed parameter area, the partial
4479 bytes mechanism is in fact not used.
4481 2013-11-14 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
4483 * config/rs6000/rs6000.c (rs6000_psave_function_arg): New function.
4484 (rs6000_finish_function_arg): Likewise.
4485 (rs6000_function_arg): Use rs6000_psave_function_arg and
4486 rs6000_finish_function_arg to handle both vector and floating
4487 point arguments that are also passed in GPRs / the stack.
4489 2013-11-14 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
4491 * config/rs6000/rs6000.c (USE_FP_FOR_ARG_P): Remove TYPE argument.
4492 (USE_ALTIVEC_FOR_ARG_P): Likewise.
4493 (rs6000_darwin64_record_arg_advance_recurse): Update uses.
4494 (rs6000_function_arg_advance_1):Likewise.
4495 (rs6000_darwin64_record_arg_recurse): Likewise.
4496 (rs6000_function_arg): Likewise.
4497 (rs6000_arg_partial_bytes): Likewise.
4499 2013-11-14 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
4501 * config/rs6000/rs6000.c (rs6000_option_override_internal): Replace
4502 "DEFAULT_ABI != ABI_AIX" test by testing for ABI_V4 or ABI_DARWIN.
4503 (rs6000_savres_strategy): Likewise.
4504 (rs6000_return_addr): Likewise.
4505 (rs6000_emit_load_toc_table): Replace "DEFAULT_ABI != ABI_AIX" by
4506 testing for ABI_V4 (since ABI_DARWIN is impossible here).
4507 (rs6000_emit_prologue): Likewise.
4508 (legitimate_lo_sum_address_p): Simplify DEFAULT_ABI test.
4509 (rs6000_elf_declare_function_name): Remove duplicated test.
4510 * config/rs6000/rs6000.md ("load_toc_v4_PIC_1"): Explicitly test
4511 for ABI_V4 (instead of "DEFAULT_ABI != ABI_AIX" test).
4512 ("load_toc_v4_PIC_1_normal"): Likewise.
4513 ("load_toc_v4_PIC_1_476"): Likewise.
4514 ("load_toc_v4_PIC_1b"): Likewise.
4515 ("load_toc_v4_PIC_1b_normal"): Likewise.
4516 ("load_toc_v4_PIC_1b_476"): Likewise.
4517 ("load_toc_v4_PIC_2"): Likewise.
4518 ("load_toc_v4_PIC_3b"): Likewise.
4519 ("load_toc_v4_PIC_3c"): Likewise.
4520 * config/rs6000/rs6000.h (RS6000_REG_SAVE): Simplify DEFAULT_ABI test.
4521 (RS6000_SAVE_AREA): Likewise.
4522 (FP_ARG_MAX_REG): Likewise.
4523 (RETURN_ADDRESS_OFFSET): Likewise.
4524 * config/rs6000/sysv.h (TARGET_TOC): Test for ABI_V4 instead
4526 (SUBTARGET_OVERRIDE_OPTIONS): Likewise.
4527 (MINIMAL_TOC_SECTION_ASM_OP): Likewise.
4529 2013-11-14 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
4531 * config/rs6000/rs6000.c (rs6000_call_indirect_aix): Rename to ...
4532 (rs6000_call_aix): ... this. Handle both direct and indirect calls.
4533 Create call insn directly instead of via various gen_... routines.
4534 Mention special registers used by the call in CALL_INSN_FUNCTION_USAGE.
4535 (rs6000_sibcall_aix): New function.
4536 * config/rs6000/rs6000.md (TOC_SAVE_OFFSET_32BIT): Remove.
4537 (TOC_SAVE_OFFSET_64BIT): Likewise.
4538 (AIX_FUNC_DESC_TOC_32BIT): Likewise.
4539 (AIX_FUNC_DESC_TOC_64BIT): Likewise.
4540 (AIX_FUNC_DESC_SC_32BIT): Likewise.
4541 (AIX_FUNC_DESC_SC_64BIT): Likewise.
4542 ("call" expander): Call rs6000_call_aix.
4543 ("call_value" expander): Likewise.
4544 ("call_indirect_aix<ptrsize>"): Replace this pattern ...
4545 ("call_indirect_aix<ptrsize>_nor11"): ... and this pattern ...
4546 ("*call_indirect_aix<mode>"): ... by this insn pattern.
4547 ("call_value_indirect_aix<ptrsize>"): Replace this pattern ...
4548 ("call_value_indirect_aix<ptrsize>_nor11"): ... and this pattern ...
4549 ("*call_value_indirect_aix<mode>"): ... by this insn pattern.
4550 ("*call_nonlocal_aix32", "*call_nonlocal_aix64"): Replace by ...
4551 ("*call_nonlocal_aix<mode>"): ... this pattern.
4552 ("*call_value_nonlocal_aix32", "*call_value_nonlocal_aix64"): Replace
4553 ("*call_value_nonlocal_aix<mode>"): ... by this pattern.
4554 ("*call_local_aix<mode>"): New insn pattern.
4555 ("*call_value_local_aix<mode>"): Likewise.
4556 ("sibcall" expander): Call rs6000_sibcall_aix.
4557 ("sibcall_value" expander): Likewise. Move earlier in file.
4558 ("*sibcall_nonlocal_aix<mode>"): Replace by ...
4559 ("*sibcall_aix<mode>"): ... this pattern.
4560 ("*sibcall_value_nonlocal_aix<mode>"): Replace by ...
4561 ("*sibcall_value_aix<mode>"): ... this pattern.
4562 * config/rs6000/rs6000-protos.h (rs6000_call_indirect_aix): Remove.
4563 (rs6000_call_aix): Add prototype.
4564 (rs6000_sibcall_aix): Likewise.
4566 2013-11-14 Jakub Jelinek <jakub@redhat.com>
4569 * asan.c (asan_emit_stack_protection): Ensure -fsection-anchors
4570 isn't confused by the artificial decl.
4572 2013-11-14 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
4574 * config/rs6000/rs6000.c (rs6000_emit_prologue): Do not place a
4575 RTX_FRAME_RELATED_P marker on the UNSPEC_MOVESI_FROM_CR insn.
4576 Instead, add USEs of all modified call-saved CR fields to the
4577 insn storing the result to the stack slot, and provide an
4578 appropriate REG_FRAME_RELATED_EXPR for that insn.
4579 * config/rs6000/rs6000.md ("*crsave"): New insn pattern.
4580 * config/rs6000/predicates.md ("crsave_operation"): New predicate.
4582 2013-11-14 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
4583 Alan Modra <amodra@gmail.com>
4585 * function.c (assign_parms): Use all.reg_parm_stack_space instead
4586 of re-evaluating REG_PARM_STACK_SPACE target macro.
4587 (locate_and_pad_parm): New parameter REG_PARM_STACK_SPACE. Use it
4588 instead of evaluating target macro REG_PARM_STACK_SPACE every time.
4589 (assign_parm_find_entry_rtl): Update call.
4590 * calls.c (initialize_argument_information): Update call.
4591 (emit_library_call_value_1): Likewise.
4592 * expr.h (locate_and_pad_parm): Update prototype.
4594 2013-11-14 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
4596 * calls.c (store_unaligned_arguments_into_pseudos): Skip PARALLEL
4599 2013-11-14 DJ Delorie <dj@redhat.com>
4601 * config/rx/rx.c (rx_mode_dependent_address_p): Allow offsets up
4604 2013-11-14 Jeff Law <law@redhat.com>
4606 * tree-ssa-threadedge.c (thread_through_normal_block): Only push the
4607 EDGE_START_JUMP_THREAD marker if the jump threading path is empty.
4609 2013-11-14 James Greenhalgh <james.greenhalgh@arm.com>
4611 * doc/invoke.texi: Update documentation for AArch64's -mcpu
4614 2013-11-14 James Greenhalgh <james.greenhalgh@arm.com>
4616 * config/aarch64/aarch64-cores.def (example-1): Remove.
4617 (example-2): Likewise.
4618 * config/aarch64/aarch64-tune.md: Regenerate.
4619 * config/aarch64/aarch64.md: Do not include "large.md" or "small.md".
4620 (generic_sched): Remove "large", "small".
4621 * config/aarch64/large.md: Delete.
4622 * config/aarch64/small.md: Delete.
4624 2013-11-14 James Greenhalgh <james.greenhalgh@arm.com>
4626 * config/aarch64/aarch64-cores.def (cortex-a57): Tune for cortexa15.
4627 * config/aarch64/aarch64-tune.md: Regenerate.
4628 * config/aarch64/aarch64.md: Include cortex-a15 pipeline model.
4629 (generic_sched): "no" if we are tuning for cortexa15.
4630 * config/arm/cortex-a15.md: Include cortex-a15-neon.md by
4633 2013-11-14 James Greenhalgh <james.greenhalgh@arm.com>
4635 * config/aarch64/aarch64-arches.def (armv8-a): Tune for cortex-a53.
4636 * config/aarch64/aarch64.md: Do not include aarch64-generic.md.
4637 * config/aarch64/aarch64.c (aarch64_tune): Initialize to cortexa53.
4638 (all_cores): Use cortexa53 when tuning for "generic".
4639 (aarch64_override_options): Fix comment.
4640 * config/aarch64/aarch64.h (TARGET_CPU_DEFAULT): Set to cortexa53.
4641 * config/aarch64/aarch64-generic.md: Delete.
4643 2013-11-14 James Greenhalgh <james.greenhalgh@arm.com>
4645 * config/aarch64/aarch64.c (all_architectures): Remove "generic".
4647 2013-11-14 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
4649 * config/aarch64/aarch64.c: Include aarch-cost-tables.h.
4650 (generic_rtx_cost_table): Remove.
4651 (aarch64_rtx_costs): Use fields from cpu_cost_table.
4652 * config/aarch64/aarch64-protos.h (tune_params): Use cpu_cost_table for
4654 (cpu_rtx_cost_table): Remove.
4656 2013-11-14 Julian Brown <julian@codesourcery.com>
4657 Joey Ye <joey.ye@arm.com>
4659 * config/arm/arm.c (arm_cortex_m_branch_cost): New.
4660 (arm_v7m_tune): New.
4661 (arm_slowmul_tune, arm_fastmul_tune, arm_strongarm_tune, arm_9e_tune,
4662 arm_v6t2_tune, arm_cortex_tune, arm_cortex_a15_tune,
4663 arm_cortex_a5_tune, arm_v6m_tune): Add comments for Sched adj cost.
4664 * config/arm/arm-cores.def (cortex-m4, cortex-m3): Use arm_v7m_tune.
4666 2013-11-14 Kirill Yukhin <kirill.yukhin@intel.com>
4669 * config/ia64/ia64.c (ia64_split_tmode_move): Relax `dead'
4672 2013-11-14 Jakub Jelinek <jakub@redhat.com>
4673 Uros Bizjak <ubizjak@gmail.com>
4676 * config/i386/i386.md (*anddi_2): Only allow CCZmode if
4677 operands[2] satisfies_constraint_Z that might have bit 31 set.
4679 2013-11-13 Jeff Law <law@redhat.com>
4681 PR tree-optimization/59102
4682 * gimple-ssa-isolate-paths.c
4683 (insert_trap_and_remove_trailing_statments): Ensure STMT is a
4684 gimple assignment before looking at gimple_assign_lhs.
4686 2013-11-13 Vladimir Makarov <vmakarov@redhat.com>
4688 * ira.c: Add comment about threads at the top of file.
4690 2013-11-13 Vladimir Makarov <vmakarov@redhat.com>
4692 * ira-color.c (coalesce_allocnos): Don't allocate and free
4695 2013-11-14 Tom de Vries <tom@codesourcery.com>
4697 * tree-ssa-tail-merge.c (gimple_equal_p): Add test for structural
4698 equality for GIMPLE_ASSIGN.
4700 2013-11-14 Tom de Vries <tom@codesourcery.com>
4702 * tree-ssa-tail-merge.c (gimple_operand_equal_value_p): Factor new
4704 (gimple_equal_p): ... here.
4706 2013-11-14 Tom de Vries <tom@codesourcery.com>
4708 * trans-mem.c (is_tm_ending): New function.
4709 * gimple.h (is_tm_ending): Declare.
4710 * tree-ssa-tail-merge.c (gimple_equal_p): Remove test on
4712 (find_duplicate): Use is_tm_ending instead of is_tm_ending_fndecl.
4714 2013-11-14 Tom de Vries <tom@codesourcery.com>
4716 * tree-ssa-tail-merge.c (gimple_equal_p): Remove equal variable.
4718 2013-11-13 Andrew MacLeod <amacleod@redhat.com>
4720 * gimple-walk.h: New File. Relocate prototypes from gimple.h.
4721 (struct walk_stmt_info): Relocate here from gimple.h.
4722 * gimple-iterator.h: New File. Relocate prototypes from gimple.h.
4723 (struct gimple_stmt_iterator_d): Relocate here from gimple.h.
4724 (gsi_start_1, gsi_none, gsi_start_bb, gsi_last_1, gsi_last_bb,
4725 gsi_end_p, gsi_one_before_end_p, gsi_next, gsi_prev, gsi_stmt,
4726 gsi_after_labels, gsi_next_nondebug, gsi_prev_nondebug,
4727 gsi_start_nondebug_bb, gsi_start_nondebug_after_labels_bb,
4728 gsi_last_nondebug_bb, gsi_bb, gsi_seq): Relocate here from gimple.h.
4729 * gimple.h (struct gimple_stmt_iterator_d): Move to gimple-iterator.h.
4730 (gsi_start_1, gsi_none, gsi_start_bb, gsi_last_1, gsi_last_bb,
4731 gsi_end_p, gsi_one_before_end_p, gsi_next, gsi_prev, gsi_stmt,
4732 gsi_after_labels, gsi_next_nondebug, gsi_prev_nondebug,
4733 gsi_start_nondebug_bb, gsi_start_nondebug_after_labels_bb,
4734 gsi_last_nondebug_bb, gsi_bb, gsi_seq): Move to gimple-iterator.h.
4735 (struct walk_stmt_info): Move to gimple-walk.h.
4736 (gimple_seq_set_location): Move to gimple.c
4737 * gimple-walk.c: New File.
4738 (walk_gimple_seq_mod, walk_gimple_seq, walk_gimple_asm, walk_gimple_op,
4739 walk_gimple_stmt, get_base_loadstore, walk_stmt_load_store_addr_ops,
4740 walk_stmt_load_store_ops): Relocate here from gimple.c.
4741 * gimple-iterator.c: Include gimple-iterator.h.
4742 * gimple.c (walk_gimple_seq_mod, walk_gimple_seq, walk_gimple_asm,
4743 walk_gimple_op, walk_gimple_stmt, get_base_loadstore,
4744 walk_stmt_load_store_addr_ops, walk_stmt_load_store_ops): Move to
4746 (gimple_seq_set_location): Relocate from gimple.h.
4747 * tree-phinodes.h (set_phi_nodes): Move to tree-phinodes.c.
4748 * tree-phinodes.c (set_phi_nodes): Relocate from tree-phinodes.h.
4749 * gengtype.c (open_base_files): Add gimple-iterator.h to include list.
4750 * Makefile.in (OBJS): Add gimple-walk.o
4751 * asan.c: Update Include list as required for gimple-iterator.h and
4753 * cfgexpand.c: Likewise.
4754 * cfgloop.c: Likewise.
4755 * cfgloopmanip.c: Likewise.
4756 * cgraph.c: Likewise.
4757 * cgraphbuild.c: Likewise.
4758 * cgraphunit.c: Likewise.
4759 * gimple-fold.c: Likewise.
4760 * gimple-low.c: Likewise.
4761 * gimple-pretty-print.c: Likewise.
4762 * gimple-ssa-isolate-paths.c: Likewise.
4763 * gimple-ssa-strength-reduction.c: Likewise.
4764 * gimple-streamer-in.c: Likewise.
4765 * gimple-streamer-out.c: Likewise.
4766 * gimplify.c: Likewise.
4767 * graphite-blocking.c: Likewise.
4768 * graphite-clast-to-gimple.c: Likewise.
4769 * graphite-dependences.c: Likewise.
4770 * graphite-interchange.c: Likewise.
4771 * graphite-optimize-isl.c: Likewise.
4772 * graphite-poly.c: Likewise.
4773 * graphite-scop-detection.c: Likewise.
4774 * graphite-sese-to-poly.c: Likewise.
4775 * graphite.c: Likewise.
4776 * ipa-inline-analysis.c: Likewise.
4777 * ipa-profile.c: Likewise.
4778 * ipa-prop.c: Likewise.
4779 * ipa-pure-const.c: Likewise.
4780 * ipa-split.c: Likewise.
4781 * lto-streamer-in.c: Likewise.
4782 * lto-streamer-out.c: Likewise.
4783 * omp-low.c: Likewise.
4784 * predict.c: Likewise.
4785 * profile.c: Likewise.
4787 * tracer.c: Likewise.
4788 * trans-mem.c: Likewise.
4789 * tree-call-cdce.c: Likewise.
4790 * tree-cfg.c: Likewise.
4791 * tree-cfgcleanup.c: Likewise.
4792 * tree-complex.c: Likewise.
4793 * tree-data-ref.c: Likewise.
4794 * tree-dfa.c: Likewise.
4795 * tree-eh.c: Likewise.
4796 * tree-emutls.c: Likewise.
4797 * tree-if-conv.c: Likewise.
4798 * tree-inline.c: Likewise.
4799 * tree-into-ssa.c: Likewise.
4800 * tree-loop-distribution.c: Likewise.
4801 * tree-nested.c: Likewise.
4802 * tree-nrv.c: Likewise.
4803 * tree-object-size.c: Likewise.
4804 * tree-outof-ssa.c: Likewise.
4805 * tree-parloops.c: Likewise.
4806 * tree-predcom.c: Likewise.
4807 * tree-profile.c: Likewise.
4808 * tree-scalar-evolution.c: Likewise.
4809 * tree-sra.c: Likewise.
4810 * tree-ssa-ccp.c: Likewise.
4811 * tree-ssa-coalesce.c: Likewise.
4812 * tree-ssa-copy.c: Likewise.
4813 * tree-ssa-copyrename.c: Likewise.
4814 * tree-ssa-dce.c: Likewise.
4815 * tree-ssa-dom.c: Likewise.
4816 * tree-ssa-dse.c: Likewise.
4817 * tree-ssa-forwprop.c: Likewise.
4818 * tree-ssa-ifcombine.c: Likewise.
4819 * tree-ssa-live.c: Likewise.
4820 * tree-ssa-loop-ch.c: Likewise.
4821 * tree-ssa-loop-im.c: Likewise.
4822 * tree-ssa-loop-ivcanon.c: Likewise.
4823 * tree-ssa-loop-ivopts.c: Likewise.
4824 * tree-ssa-loop-manip.c: Likewise.
4825 * tree-ssa-loop-niter.c: Likewise.
4826 * tree-ssa-loop-prefetch.c: Likewise.
4827 * tree-ssa-loop.c: Likewise.
4828 * tree-ssa-math-opts.c: Likewise.
4829 * tree-ssa-phiopt.c: Likewise.
4830 * tree-ssa-phiprop.c: Likewise.
4831 * tree-ssa-pre.c: Likewise.
4832 * tree-ssa-propagate.c: Likewise.
4833 * tree-ssa-reassoc.c: Likewise.
4834 * tree-ssa-sink.c: Likewise.
4835 * tree-ssa-strlen.c: Likewise.
4836 * tree-ssa-structalias.c: Likewise.
4837 * tree-ssa-tail-merge.c: Likewise.
4838 * tree-ssa-ter.c: Likewise.
4839 * tree-ssa-threadedge.c: Likewise.
4840 * tree-ssa-threadupdate.c: Likewise.
4841 * tree-ssa-uncprop.c: Likewise.
4842 * tree-ssa-uninit.c: Likewise.
4843 * tree-ssa.c: Likewise.
4844 * tree-stdarg.c: Likewise.
4845 * tree-switch-conversion.c: Likewise.
4846 * tree-tailcall.c: Likewise.
4847 * tree-vect-data-refs.c: Likewise.
4848 * tree-vect-generic.c: Likewise.
4849 * tree-vect-loop-manip.c: Likewise.
4850 * tree-vect-loop.c: Likewise.
4851 * tree-vect-patterns.c: Likewise.
4852 * tree-vect-slp.c: Likewise.
4853 * tree-vect-stmts.c: Likewise.
4854 * tree-vectorizer.c: Likewise.
4855 * tree-vrp.c: Likewise.
4858 * value-prof.c: Likewise.
4859 * vtable-verify.c: Likewise.
4861 2013-11-13 Steven Bosscher <steven@gcc.gnu.org>
4863 * gimple-ssa-isolate-paths.c (pass_isolate_erroneous_paths): Comment
4866 2013-11-13 Jeff Law <law@redhat.com>
4868 * PR middle-end/59119
4869 * gimple-ssa-isolate-paths.c (find_implicit_erroneous_behaviour): New
4870 function, extracted from gimple_ssa_isolate_erroneous_paths.
4871 (find_explicit_erroneous_behaviour): Similarly.
4872 (insert_trap_and_remove_trailing_statements): Remove statements
4875 2013-11-13 Steven Bosscher <steven@gcc.gnu.org>
4877 * cfgrtl.c (can_fallthru): Reorder code to move tablejump check up.
4878 Make that check explicit. BB_HEAD cannot be NULL, remove check for it.
4879 * haifa-sched.c (ready_remove_first_dispatch): Check INSN_P before
4880 looking at INSN_CODE.
4881 * reload1.c (delete_dead_insn) Do not expect JUMP_TABLE_DATA to be an
4882 active_insn_p object, respect basic block boundaries.
4883 * reorg.c (follow_jumps): Use invariant that JUMP_TABLE_DATA always
4884 follows immediately after the jump table data label.
4885 * config/nds32/nds32.c (nds32_output_casesi_pc_relative): Likewise.
4886 * config/sh/sh.c (barrier_align): Likewise. Rearrange code such
4887 that JUMP_TABLE_DATA is not expected to be an active_insn_p object.
4889 2013-11-13 Teresa Johnson <tejohnson@google.com>
4892 * predict.c (drop_profile): Error is currently too strict.
4893 (handle_missing_profiles): Pass call_count to drop_profile.
4895 2013-11-13 Teresa Johnson <tejohnson@google.com>
4898 * ipa-inline.c (edge_badness): Fix overflow.
4900 2013-11-13 Vladimir Makarov <vmakarov@redhat.com>
4902 PR rtl-optimization/59036
4903 * ira-color.c (struct allocno_color_data): Add new members
4904 first_thread_allocno, next_thread_allocno, thread_freq.
4905 (sorted_copies): New static var.
4906 (allocnos_conflict_by_live_ranges_p, copy_freq_compare_func): Move up.
4907 (allocno_thread_conflict_p, merge_threads)
4908 (form_threads_from_copies, form_threads_from_bucket)
4909 (form_threads_from_colorable_allocno, init_allocno_threads): New
4911 (bucket_allocno_compare_func): Add comparison by thread frequency
4913 (add_allocno_to_ordered_bucket): Rename to
4914 add_allocno_to_ordered_colorable_bucket. Remove parameter.
4915 (push_only_colorable): Call form_threads_from_bucket.
4916 (color_pass): Call init_allocno_threads. Use
4917 consideration_allocno_bitmap instead of coloring_allocno_bitmap
4918 for nuillify allocno color data.
4919 (ira_initiate_assign, ira_finish_assign): Allocate/free sorted_copies.
4920 (coalesce_allocnos): Use static sorted copies.
4922 2013-11-13 Jakub Jelinek <jakub@redhat.com>
4924 * passes.c (execute_todo): Don't call do_per_function if
4926 (execute_one_ipa_transform_pass, execute_one_pass): Don't call
4927 execute_function_dump if dump_file is NULL.
4929 2013-11-13 Martin Jambor <mjambor@suse.cz>
4931 * cgraph.c (cgraph_get_create_node): Do what
4932 cgraph_get_create_real_symbol_node used to do.
4933 (cgraph_get_create_real_symbol_node): Removed. Changed all users to
4934 call cgraph_get_create_node.
4935 * cgraph.h (cgraph_get_create_real_symbol_node): Removed.
4936 * lto-streamer-in.c (input_function): Call cgraph_get_node instead of
4937 cgraph_get_create_node. Assert we get a node.
4939 2013-11-13 Tejas Belagod <tejas.belagod@arm.com>
4941 * config/aarch64/aarch64-simd.md (vec_extract): New.
4943 2013-11-13 Tejas Belagod <tejas.belagod@arm.com>
4945 * config/aarch64/aarch64-simd.md (vec_set<mode>): Add w -> w option to
4948 2013-11-13 Eric Botcazou <ebotcazou@adacore.com>
4950 * cfgexpand.c (expand_used_vars): Allocate space for partitions based
4951 on PARM_DECLs or RESULT_DECLs only if they are ignored for debug info
4952 or if optimization is enabled.
4953 * tree-ssa-coalesce.c (coalesce_ssa_name): If optimization is disabled,
4954 require that all the names based on a PARM_DECL or a RESULT_DECL that
4955 isn't ignored for debug info be coalesced.
4957 2013-11-13 Jan-Benedict Glaw <jbglaw@lug-owl.de>
4959 * config/c6x/c6x.c: Include "gimple-expr.h".
4961 2013-11-13 Richard Biener <rguenther@suse.de>
4963 * gimple-streamer-out.c (output_gimple_stmt): Also wrap
4964 decls in ADDR_EXPR operands inside a MEM_REF and optimize that.
4965 * gimple-streamer-in.c (input_gimple_stmt): Remove now dead code
4966 dealing with type mismatches inside component reference chains.
4968 2013-11-13 Marc Glisse <marc.glisse@inria.fr>
4970 PR tree-optimization/59077
4971 * ipa-pure-const.c (better_state): Update *state.
4973 2013-11-13 Christophe Lyon <christophe.lyon@linaro.org>
4975 * config/aarch64/aarch64.h (FRAME_GROWS_DOWNWARD): Define to 1.
4976 * config/aarch64/aarch64.c (aarch64_initial_elimination_offset):
4977 Update offset calculations.
4979 2013-11-13 Eric Botcazou <ebotcazou@adacore.com>
4982 * dwarf2out.c (add_byte_size_attribute): Also use int_size_in_bytes
4983 for fields. Do not add the attribute if the size is negative.
4985 2013-11-13 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
4987 * config/arm/arm.c: Include aarch-cost-tables.h.
4988 (generic_extra_costs): Move from here...
4989 * config/arm/aarch-cost-tables.h: ... To here. New file.
4991 2013-11-13 Alexander Ivchenko <alexander.ivchenko@intel.com>
4992 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
4993 Sergey Lega <sergey.s.lega@intel.com>
4994 Anna Tikhonova <anna.tikhonova@intel.com>
4995 Ilya Tocar <ilya.tocar@intel.com>
4996 Andrey Turetskiy <andrey.turetskiy@intel.com>
4997 Ilya Verbin <ilya.verbin@intel.com>
4998 Kirill Yukhin <kirill.yukhin@intel.com>
4999 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
5001 * config/i386/i386.c (ix86_print_operand): Support z-masking.
5002 * config/i386/predicate.md (const_0_to_4_operand): New.
5003 (const_0_to_5_operand): Ditto.
5004 * config/i386/sse.md (UNSPEC_COMPRESS): New.
5005 (UNSPEC_COMPRESS_STORE): Ditto.
5006 (UNSPEC_EXPAND): Ditto.
5007 (UNSPEC_EMBEDDED_ROUNDING): Ditto.
5008 (define_mode_attr ssescalarsize): Ditto.
5009 (avx512f_load<mode>_mask): Ditto.
5010 (avx512f_store<mode>_mask): Ditto.
5011 (avx512f_storedqu<mode>_mask): Ditto.
5012 (avx512f_vmcmp<mode>3_mask): Ditto.
5013 (avx512f_fmadd_<mode>_mask): Ditto.
5014 (avx512f_fmadd_<mode>_mask3): Ditto.
5015 (avx512f_fmsub_<mode>_mask): Ditto.
5016 (avx512f_fmsub_<mode>_mask3): Ditto.
5017 (avx512f_fnmadd_<mode>_mask): Ditto.
5018 (avx512f_fnmadd_<mode>_mask3): Ditto.
5019 (avx512f_fnmsub_<mode>_mask): Ditto.
5020 (avx512f_fnmsub_<mode>_mask3): Ditto.
5021 (avx512f_fmaddsub_<mode>_mask): Ditto.
5022 (avx512f_fmaddsub_<mode>_mask3): Ditto.
5023 (avx512f_fmsubadd_<mode>_mask): Ditto.
5024 (avx512f_fmsubadd_<mode>_mask3): Ditto.
5025 (vec_unpacku_float_lo_v16si): Ditto.
5026 (avx512f_vextract<shuffletype>32x4_mask): Ditto.
5027 (avx512f_vextract<shuffletype>32x4_1_maskm): Ditto.
5028 (avx512f_vextract<shuffletype>64x4_mask): Ditto.
5029 (vec_extract_lo_<mode>_maskm): Ditto.
5030 (vec_extract_hi_<mode>_maskm): Ditto.
5031 (avx512f_vternlog<mode>_mask): Ditto.
5032 (avx512f_shufps512_mask): Ditto.
5033 (avx512f_fixupimm<mode>_mask): Ditto.
5034 (avx512f_shufpd512_mask): Ditto.
5035 (avx512f_<code><pmov_src_lower><mode>2_mask): Ditto.
5036 (avx512f_<code>v8div16qi2_mask/trunc): Ditto.
5037 (*avx512f_<code>v8div16qi2_store_mask): Ditto.
5038 (ashr<mode>3<mask_name>): Ditto.
5039 (avx512f_vinsert<shuffletype>32x4_mask): Ditto.
5040 (avx512f_vinsert<shuffletype>64x4_mask): Ditto.
5041 (avx512f_shuf_<shuffletype>64x2_mask): Ditto.
5042 (avx512f_shuf_<shuffletype>32x4_mask): Ditto.
5043 (avx512f_pshufdv3_mask): Ditto.
5044 (avx512f_perm<mode>_mask): Ditto.
5045 (avx512f_vpermi2var<mode>3_mask): Ditto.
5046 (avx512f_vpermt2var<mode>3_mask): Ditto.
5047 (avx512f_compress<mode>_mask): Ditto.
5048 (avx512f_compressstore<mode>_mask): Ditto.
5049 (avx512f_expand<mode>_mask): Ditto.
5050 (<sse>_loadu<ssemodesuffix><avxsizesuffix><mask_name>): Extend
5052 (avx512f_storeu<ssemodesuffix>512_mask): Ditto.
5053 (<plusminus_insn><mode>3<mask_name>): Ditto.
5054 (*<plusminus_insn><mode>3<mask_name>): Ditto.
5055 (mul<mode>3<mask_name>): Ditto.
5056 (*mul<mode>3<mask_name>): Ditto.
5057 (<sse>_div<mode>3<mask_name>): Ditto.
5058 (<mask_codefor>rcp14<mode><mask_name>): Ditto.
5059 (<sse>_sqrt<mode>2<mask_name>): Ditto.
5060 (<mask_codefor>rsqrt14<mode><mask_name>): Ditto.
5061 (<code><mode>3<mask_name>/smaxmin): Ditto.
5062 (*<code><mode>3_finite<mask_name>/smaxmin): Ditto.
5063 (*<code><mode>3<mask_name>/smaxmin): Ditto.
5064 (float<sseintvecmodelower><mode>2<mask_name>): Ditto.
5065 (ufloatv16siv16sf2<mask_name>): Ditto.
5066 (<mask_codefor>avx512f_fix_notruncv16sfv16si<mask_name>): Ditto.
5067 (<mask_codefor>avx512f_ufix_notruncv16sfv16si<mask_name>): Ditto.
5068 (<fixsuffix>fix_truncv16sfv16si2<mask_name>): Ditto.
5069 (float<si2dfmodelower><mode>2<mask_name>): Ditto.
5070 (ufloatv8siv8df<mask_name>): Ditto.
5071 (<mask_codefor>avx512f_cvtpd2dq512<mask_name>): Ditto.
5072 (avx512f_ufix_notruncv8dfv8si<mask_name>): Ditto.
5073 (<fixsuffix>fix_truncv8dfv8si2<mask_name>): Ditto.
5074 (<mask_codefor>avx512f_cvtpd2ps512<mask_name>): Ditto.
5075 (<sse2_avx_avx512f>_cvtps2pd<avxsizesuffix><mask_name>): Ditto.
5076 (<mask_codefor>avx512f_unpckhps512<mask_name>): Ditto.
5077 (<mask_codefor>avx512f_unpcklps512<mask_name>): Ditto.
5078 (<mask_codefor>avx512f_movshdup512<mask_name>): Ditto.
5079 (<mask_codefor>avx512f_movsldup512<mask_name>): Ditto.
5080 (<mask_codefor>avx512f_vextract<shuffletype>32x4_1<mask_name>): Ditto.
5081 (vec_extract_lo_<mode><mask_name>): Ditto.
5082 (vec_extract_hi_<mode><mask_name>): Ditto.
5083 (<mask_codefor>avx512f_unpckhpd512<mask_name>): Ditto.
5084 (avx512f_movddup512<mask_name>): Ditto.
5085 (avx512f_unpcklpd512<mask_name>): Ditto.
5086 (*avx512f_unpcklpd512<mask_name>): Ditto.
5087 (*avx512f_vmscalef<mode>): Ditto.
5088 (avx512f_scalef<mode><mask_name>): Ditto.
5089 (avx512f_getexp<mode><mask_name>): Ditto.
5090 (<mask_codefor>avx512f_align<mode><mask_name>): Ditto.
5091 (avx512f_rndscale<mode><mask_name>): Ditto.
5092 (avx512f_shufps512_1<mask_name>): Ditto.
5093 (avx512f_shufpd512_1<mask_name>): Ditto.
5094 (<plusminus_insn><mode>3<mask_name>): Ditto.
5095 (*<plusminus_insn><mode>3<mask_name>): Ditto.
5096 (vec_widen_umult_even_v16si<mask_name>): Ditto.
5097 (*vec_widen_umult_even_v16si<mask_name>): Ditto.
5098 (vec_widen_smult_even_v16si<mask_name>): Ditto.
5099 (*vec_widen_smult_even_v16si<mask_name>): Ditto.
5100 (mul<mode>3<mask_name>): Ditto.
5101 (*<sse4_1_avx2>_mul<mode>3<mask_name>): Ditto.
5102 (<shift_insn><mode>3<mask_name>): Ditto.
5103 (avx512f_<rotate>v<mode><mask_name>/rotate): Ditto.
5104 (avx512f_<rotate><mode><mask_name>): Ditto.
5105 (<code><mode>3<mask_name>/maxmin): Ditto.
5106 (*avx2_<code><mode>3<mask_name>/maxmin): Ditto.
5107 (<sse2_avx2>_andnot<mode>3<mask_name>): Ditto.
5108 (*andnot<mode>3<mask_name>): Ditto.
5109 (<mask_codefor><code><mode>3<mask_name>/any_logic): Ditto.
5110 (<mask_codefor>avx512f_interleave_highv16si<mask_name>): Ditto.
5111 (<mask_codefor>avx512f_interleave_lowv16si<mask_name>): Ditto.
5112 (<mask_codefor>avx512f_vinsert<shuffletype>32x4_1<mask_name>): Ditto.
5113 (vec_set_lo_<mode><mask_name>): Ditto.
5114 (vec_set_hi_<mode><mask_name>): Ditto.
5115 (avx512f_shuf_<shuffletype>64x2_1<mask_name>): Ditto.
5116 (avx512f_shuf_<shuffletype>32x4_1<mask_name>): Ditto.
5117 (avx512f_pshufd_1<mask_name>): Ditto.
5118 (<mask_codefor>abs<mode>2<mask_name>): Ditto.
5119 (<mask_codefor>avx512f_<code>v16qiv16si2<mask_name>): Ditto.
5120 (avx512f_<code>v16hiv16si2<mask_name>/any_extend): Ditto.
5121 (avx512f_<code>v8qiv8di2<mask_name>/any_extend): Ditto.
5122 (avx512f_<code>v8hiv8di2<mask_name>/any_extend): Ditto.
5123 (avx512f_<code>v8siv8di2<mask_name>/any_extend): Ditto.
5124 (avx512er_exp2<mode><mask_name>): Ditto.
5125 (<mask_codefor>avx512er_rcp28<mode><mask_name>): Ditto.
5126 (<mask_codefor>avx512er_rsqrt28<mode><mask_name>): Ditto.
5127 (<avx2_avx512f>_permvar<mode><mask_name>): Ditto.
5128 (<avx2_avx512f>_perm<mode>_1<mask_name>): Ditto.
5129 (<mask_codefor>avx512f_vec_dup<mode><mask_name>): Ditto.
5130 (<mask_codefor>avx512f_broadcast<mode><mask_name>/V16FI): Ditto.
5131 (<mask_codefor>avx512f_broadcast<mode><mask_name>/V8FI): Ditto.
5132 (<mask_codefor>avx512f_vec_dup_gpr<mode><mask_name>): Ditto.
5133 (<mask_codefor>avx512f_vec_dup_mem<mode><mask_name>): Ditto.
5134 (<sse2_avx_avx512f>_vpermil<mode><mask_name>/VF2): Ditto.
5135 (<sse2_avx_avx512f>_vpermil<mode><mask_name>/VF1): Ditto.
5136 (*<sse2_avx_avx512f>_vpermilp<mode><mask_name>): Ditto.
5137 (<sse2_avx_avx512f>_vpermilvar<mode>3<mask_name>): Ditto.
5138 (<avx2_avx512f>_ashrv<mode><mask_name>): Ditto.
5139 (<avx2_avx512f>_<shift_insn>v<mode><mask_name>): Ditto.
5140 (<mask_codefor>avx512f_vcvtph2ps512<mask_name>): Ditto.
5141 (<mask_codefor>avx512f_vcvtps2ph512<mask_name>): Ditto.
5142 (avx512f_getmant<mode><mask_name>): Ditto.
5143 (clz<mode>2<mask_name>): Ditto.
5144 (<mask_codefor>conflict<mode><mask_name>): Ditto.
5145 (*srcp14<mode>): Remove visibility.
5146 (*rsqrt14<mode>): Ditto.
5147 (*fma_fmsub_<mode>): Ditto.
5148 (*fma_fnmadd_<mode>): Ditto.
5149 (*avx512f_rndscale<mode>): Ditto.
5150 * config/i386/subst.md: New file.
5152 2013-11-13 Joseph Myers <joseph@codesourcery.com>
5154 * doc/extend.texi (Statement Exprs, Typeof): Discuss __auto_type.
5155 * ginclude/stdatomic.h (kill_dependency, atomic_store_explicit)
5156 (atomic_load_explicit, atomic_exchange_explicit)
5157 (atomic_compare_exchange_strong_explicit)
5158 (atomic_compare_exchange_weak_explicit): Use __auto_type to
5159 declare variable initialized with PTR argument.
5161 2013-11-12 Jeff Law <law@redhat.com>
5163 * tree-ssa-threadedge.c (thread_around_empty_blocks): New argument
5164 backedge_seen_p. Set, use and pass it to children appropriately.
5165 (thread_through_normal_block): Similarly.
5166 (thread_across_edge): Similarly.
5168 * gimple-ssa-isolate-paths.c (check_loadstore): Mark discovered
5169 memory references as volatile.
5170 (insert_trap_and_remove_trailing_statements): Fix comment.
5172 2013-11-12 Vladimir Makarov <vmakarov@redhat.com>
5175 * ira-costs.c (record_operand_costs): Check operands number for
5178 2013-11-12 Michael Meissner <meissner@linux.vnet.ibm.com>
5181 * config/rs6000/rs6000.md (movdi_internal32): Eliminate
5182 constraints that would allow DImode into the traditional Altivec
5183 registers, but cause undesirable code generation when loading 0 as
5185 (movdi_internal64): Likewise.
5186 (cmp<mode>_fpr): Do not use %x for CR register output.
5187 (extendsfdf2_fpr): Fix constraints when -mallow-upper-df and
5188 -mallow-upper-sf debug switches are used.
5190 2013-11-12 Andrew MacLeod <amacleod@redhat.com>
5192 * gimple-expr.h (create_tmp_var_name, create_tmp_var_raw,
5193 create_tmp_var, create_tmp_reg, mark_addressable, is_gimple_reg_rhs):
5194 Relocate prototypes from gimple.h.
5195 * gimplify.h: New File. Relocate some prototypes from gimple.h here.
5196 (gimple_predicate, enum fallback, enum gimplify_status): Relocate
5198 * gimple.h: Move some prototypes to gimplify.h.
5199 (gimple_predicate, enum fallback, enum gimplify_status): Move to
5201 (gimple_do_not_emit_location_p, gimple_set_do_not_emit_location):
5202 Relocate from gimpify.c.
5203 * gimple-expr.c (remove_suffix, tmp_var_id_num, create_tmp_var_name,
5204 create_tmp_var_raw, create_tmp_var, create_tmp_reg, mark_addressable,
5205 is_gimple_reg_rhs) Relocate from gimplify.c.
5206 * gimplify.c (mark_addressable): Move to gimple-expr.c.
5207 (gimple_seq_add_stmt_without_update): Move to gimple.c.
5208 (remove_suffix, tmp_var_id_num, create_tmp_var_name,
5209 create_tmp_var_raw, create_tmp_var, create_tmp_reg,
5210 is_gimple_reg_rhs): Move to gimple-expr.c.
5211 (should_carry_location_p): Move to gimple.c.
5212 (gimple_do_not_emit_location_p, gimple_set_do_not_emit_location): Move
5214 (annotate_one_with_location, annotate_all_with_location_after,
5215 annotate_all_with_location): Move to gimple.c.
5216 (compare_case_labels, sort_case_labels,
5217 preprocess_case_label_vec_for_gimple): Move to gimple.c.
5218 (rhs_predicate_for): Make static.
5219 (gimplify_assign): Relocate from gimple.c.
5220 * gimple.c (gimplify_assign): Move to gimplify.c.
5221 (gimple_seq_add_stmt_without_update, should_carry_location_p,
5222 annotate_one_with_location, annotate_all_with_location_after,
5223 annotate_all_with_location, compare_case_labels, sort_case_labels,
5224 preprocess_case_label_vec_for_gimple): Relocate from gimplify.c.
5225 * tree.h (unshare_expr, unshare_expr_without_location,
5226 mark_addressable): Move prototypes to gimplify.h.
5227 * Makefile.in (GTFILES): gimple-expr.c now has the GTY tag for
5229 * asan.c: Include gimplify.h rather than gimple.h.
5230 * cfgloopmanip.c: Likewise.
5231 * cgraphunit.c: Likewise.
5232 * cilk-common.c: Likewise.
5233 * dwarf2out.c: Dont include gimple.h.
5234 * fold-const.c: Include gimplify.h rather than gimple.h.
5235 * function.c: Likewise.
5236 * gimple-fold.c: Likewise.
5237 * gimple-ssa-strength-reduction.c: Likewise.
5238 * graphite-clast-to-gimple.c: Likewise.
5239 * graphite-sese-to-poly.c: Likewise.
5240 * ipa-prop.c: Likewise.
5241 * ipa-split.c: Likewise.
5243 * langhooks.c: Dont include gimple.h.
5244 * loop-init.c: Include gimplify.h rather than gimple.h.
5245 * omp-low.c: Likewise.
5247 * stor-layout.c: Likewise.
5248 * targhooks.c: Likewise.
5249 * trans-mem.c: Likewise.
5250 * tree-affine.c: Likewise.
5251 * tree-cfg.c: Likewise.
5252 * tree-cfgcleanup.c: Likewise.
5253 * tree-complex.c: Likewise.
5254 * tree-if-conv.c: Likewise.
5255 * tree-inline.c: Likewise.
5256 * tree-iterator.c: Likewise.
5257 * tree-loop-distribution.c: Likewise.
5258 * tree-nested.c: Likewise.
5259 * tree-parloops.c: Likewise.
5260 * tree-predcom.c: Likewise.
5261 * tree-profile.c: Likewise.
5262 * tree-scalar-evolution.c: Likewise.
5263 * tree-sra.c: Likewise.
5264 * tree-ssa-address.c: Likewise.
5265 * tree-ssa-ccp.c: Likewise.
5266 * tree-ssa-dce.c: Likewise.
5267 * tree-ssa-forwprop.c: Likewise.
5268 * tree-ssa-ifcombine.c: Likewise.
5269 * tree-ssa-loop-im.c: Likewise.
5270 * tree-ssa-loop-ivopts.c: Likewise.
5271 * tree-ssa-loop-manip.c: Likewise.
5272 * tree-ssa-loop-niter.c: Likewise.
5273 * tree-ssa-loop-prefetch.c: Likewise.
5274 * tree-ssa-loop-unswitch.c: Likewise.
5275 * tree-ssa-math-opts.c: Likewise.
5276 * tree-ssa-phiopt.c: Likewise.
5277 * tree-ssa-phiprop.c: Likewise.
5278 * tree-ssa-pre.c: Likewise.
5279 * tree-ssa-propagate.c: Likewise.
5280 * tree-ssa-reassoc.c: Likewise.
5281 * tree-ssa-sccvn.c: Likewise.
5282 * tree-ssa-strlen.c: Likewise.
5283 * tree-ssa.c: Likewise.
5284 * tree-switch-conversio: Likewise.n.c
5285 * tree-tailcall.c: Likewise.
5286 * tree-vect-data-refs.c: Likewise.
5287 * tree-vect-generic.c: Likewise.
5288 * tree-vect-loop-manip.c: Likewise.
5289 * tree-vect-loop.c: Likewise.
5290 * tree-vect-patterns.c: Likewise.
5291 * tree-vect-stmts.c: Likewise.
5293 * value-prof.c: Likewise.
5294 * config/aarch64/aarch64.c: Include gimplify.h instead of gimple.h.
5295 * config/alpha/alpha.c: Likewise.
5296 * config/darwin.c: Likewise.
5297 * config/i386/i386.c: Likewise.
5298 * config/ia64/ia64.c: Likewise.
5299 * config/mep/mep.c: Likewise.
5300 * config/mips/mips.c: Likewise.
5301 * config/rs6000/rs6000.c: Likewise.
5302 * config/s390/s390.c: Likewise.
5303 * config/sh/sh.c: Likewise.
5304 * config/sparc/sparc.c: Likewise.
5305 * config/spu/spu.c: Likewise.
5306 * config/stormy16/stormy16.c: Likewise.
5307 * config/tilegx/tilegx.c: Likewise.
5308 * config/tilepro/tilepro.c: Likewise.
5309 * config/xtensa/xtensa.c: Likewise.
5311 2013-11-12 Adam Butcher <adam@jessamine.co.uk>
5313 * tree.c (grow_tree_vec_stat): New function ...
5314 * tree.h (grow_tree_vec_stat) (grow_tree_vec): ... and its declaration
5315 and macro front-end.
5317 2013-11-12 Marek Polacek <polacek@redhat.com>
5319 * final.c (update_alignments): Initialize label to NULL_RTX.
5321 2013-11-12 Jeff Law <law@redhat.com>
5323 * gimple-ssa-isolate-paths.c (check_loadstore): New function.
5324 (insert_trap_and_remove_trailing_statements): New argument OP which
5325 is the NULL pointer. Emit the trap after the load/store through
5326 the NULL pointer. Simplify the RHS of a store through a NULL pointer
5327 when trivial to do so.
5328 (isolate_path): Corresponding changes.
5329 (gimple_ssa_isolate_erroneous_path): Likewise.
5331 2013-11-12 Teresa Johnson <tejohnson@google.com>
5332 Jan Hubicka <jh@suse.cz>
5334 * predict.c (drop_profile): New function.
5335 (handle_missing_profiles): Ditto.
5336 (counts_to_freqs): Don't overwrite estimated frequencies
5337 when function has no profile counts.
5338 * predict.h (handle_missing_profiles): Declare.
5339 * tree-inline.c (freqs_to_counts): New function.
5340 (copy_cfg_body): Invoke freqs_to_counts as needed.
5341 * tree-profile.c (tree_profiling): Invoke handle_missing_profiles.
5343 2013-11-12 H.J. Lu <hongjiu.lu@intel.com>
5346 * config/i386/x86-tune.def (X86_TUNE_SSE_UNALIGNED_LOAD_OPTIMAL):
5348 (X86_TUNE_SSE_UNALIGNED_STORE_OPTIMAL): Set for m_HASWELL.
5350 2013-11-12 H.J. Lu <hongjiu.lu@intel.com>
5353 * config/i386/i386.c (ix86_option_override_internal): Check
5354 X86_TUNE_AVX256_UNALIGNED_LOAD_OPTIMAL and
5355 X86_TUNE_AVX256_UNALIGNED_STORE_OPTIMAL for
5356 MASK_AVX256_SPLIT_UNALIGNED_LOAD and
5357 MASK_AVX256_SPLIT_UNALIGNED_STORE.
5359 * config/i386/x86-tune.def (X86_TUNE_AVX256_UNALIGNED_LOAD_OPTIMAL):
5360 Clear m_COREI7_AVX and update comments.
5361 (X86_TUNE_AVX256_UNALIGNED_STORE_OPTIMAL): Likewise.
5363 2013-11-12 Martin Jambor <mjambor@suse.cz>
5365 PR rtl-optimization/10474
5366 * ira.c (interesting_dest_for_shprep): New function.
5367 (split_live_ranges_for_shrink_wrap): Likewise.
5368 (find_moveable_pseudos): Move calculation of dominance info,
5369 df_analysios and the final anlyses to...
5370 (ira): ...here, call split_live_ranges_for_shrink_wrap.
5372 2013-11-12 Bin Cheng <bin.cheng@arm.com>
5374 * tree-ssa-loop-ivopts.c (force_expr_to_var_cost): Refactor the code.
5375 Handle type conversion.
5377 2013-11-11 Martin Liska <marxin.liska@gmail.com>
5378 Jan Hubicka <jh@suse.cz>
5380 * cgraph.c (dump_cgraph_node): Profile dump added.
5381 * cgraph.h (struct cgraph_node): New time profile variable added.
5382 * cgraphclones.c (cgraph_clone_node): Time profile is cloned.
5383 * gcov-io.h (gcov_type): New profiler type introduced.
5384 * ipa-profile.c (lto_output_node): Streaming for time profile added.
5385 (input_node): Time profiler is read from LTO stream.
5386 * predict.c (maybe_hot_count_p): Hot prediction changed.
5387 * profile.c (instrument_values): New case for time profiler added.
5388 (compute_value_histograms): Read of time profile.
5389 * tree-pretty-print.c (dump_function_header): Time profiler is dumped.
5390 * tree-profile.c (init_ic_make_global_vars): Time profiler
5392 (gimple_init_edge_profiler): TP function instrumentation.
5393 (gimple_gen_time_profiler): New.
5394 * value-prof.c (gimple_add_histogram_value): Support for time profiler
5396 (dump_histogram_value): TP type added to dumps.
5397 (visit_hist): More sensitive check that takes TP into account.
5398 (gimple_find_values_to_profile): TP instrumentation.
5399 * value-prof.h (hist_type): New histogram type added.
5400 (struct histogram_value_t): Pointer to struct function added.
5401 * libgcc/Makefile.in: New GCOV merge function for TP added.
5402 * libgcov.c: function_counter variable introduced.
5403 (_gcov_merge_time_profile): New.
5404 (_gcov_time_profiler): New.
5406 2013-11-11 Marc Glisse <marc.glisse@inria.fr>
5407 Jeff Law <law@redhat.com>
5409 * tree-ssa-alias.c (stmt_kills_ref_p_1): Use
5410 ao_ref_init_from_ptr_and_size for builtins.
5412 2013-11-11 Uros Bizjak <ubizjak@gmail.com>
5413 H.J. Lu <hongjiu.lu@intel.com>
5416 * config/i386/x86-tune.def
5417 (X86_TUNE_MISALIGNED_MOVE_STRING_PRO_EPILOGUES): Rename from
5418 TARGET_MISALIGNED_MOVE_STRING_PROLOGUES.
5419 * config/i386/i386.h
5420 (TARGET_MISALIGNED_MOVE_STRING_PRO_EPILOGUES): Rename from
5421 TARGET_MISALIGNED_MOVE_STRING_PROLOGUES_EPILOGUES. Update for renamed
5422 X86_TUNE_MISALIGNED_MOVE_STRING_PRO_EPILOGUES.
5423 * config/i386/i386.c (ix86_expand_set_or_movmem): Use
5424 TARGET_MISALIGNED_MOVE_STRING_PRO_EPILOGUES to calculate
5425 misaligned_prologue_used. Check that
5426 desired_aling <= epilogue_size_needed.
5428 2013-11-11 Cong Hou <congh@google.com>
5430 PR tree-optimization/59050
5431 * tree-vect-data-refs.c (comp_dr_addr_with_seg_len_pair): Bug fix.
5433 2013-11-11 Joern Rennecke <joern.rennecke@embecosm.com>
5436 * expmed.c (emit_store_flag): Fail for const-const comparison.
5438 2013-11-11 Tristan Gingold <gingold@adacore.com>
5439 Eric Botcazou <ebotcazou@adacore.com>
5441 * tree.h (CONSTRUCTOR_NO_CLEARING): Define.
5442 * tree-core.h (CONSTRUCTOR_NO_CLEARING): Document it.
5443 * tree.def (CONSTRUCTOR): Likewise.
5444 * doc/generic.texi (CONSTRUCTOR): Likewise. Update description.
5445 * gimplify.c (gimplify_init_constructor): Do not clear the object when
5446 the constructor is incomplete and CONSTRUCTOR_NO_CLEARING is set.
5448 2013-11-11 Basile Starynkevitch <basile@starynkevitch.net>
5450 * toplev.c (toplev_main): Move PLUGIN_FINISH invocation before
5453 2013-11-11 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
5455 * config/arm/arm.c (arm_new_rtx_costs): Return after handling
5458 2013-11-11 Joern Rennecke <joern.rennecke@embecosm.com>
5460 * config/arc/arc.h (LOGICAL_OP_NON_SHORT_CIRCUIT): Define.
5462 2013-11-08 Jeff Law <law@redhat.com>
5464 * tree-ssa-threadupdate.c (mark_threaded_blocks): Truncate jump
5465 threading paths first, then perform PHI node checks if applicable.
5467 2013-11-10 Karlson2k <k2k@narod.ru>
5468 Kai Tietz <ktietz@redhat.com>
5471 * configure.ac: Adding for exported symbols check
5472 and for rdynamic-check executable-extension.
5473 * configure: Regenerated.
5475 2013-11-10 Uros Bizjak <ubizjak@gmail.com>
5477 * mode-switching.c (optimize_mode_switching): Mark block as
5478 nontransparent, if last_mode at block exit is different from no_mode.
5480 2013-11-09 Jan-Benedict Glaw <jbglaw@lug-owl.de>
5482 * function.c (NAME__MAIN): Move to...
5483 * cfgexpand.c (NAME__MAIN): ...here.
5485 2013-11-09 Richard Sandiford <rdsandiford@googlemail.com>
5487 * target.def (can_use_doloop_p): New hook.
5488 * doc/tm.texi.in (TARGET_CAN_USE_DOLOOP_P): Add.
5489 * doc/tm.texi: Regenerate.
5490 * doc/md.texi (doloop_begin, doloop_end): Update documentation.
5491 * hooks.h (hook_bool_dint_dint_uint_true): Declare.
5492 * hooks.c (hook_bool_dint_dint_uint_true): New function.
5493 * targhooks.h (can_use_doloop_if_innermost): Declare.
5494 * targhooks.c (can_use_doloop_if_innermost): New function.
5495 * target.h: Include double-int.h.
5496 * loop-doloop.c (doloop_optimize): Call targetm.can_use_doloop_p.
5497 Remove iteration count, maximum iteration count, loop depth and
5498 enter-at-top inputs from doloop_begin and doloop_end.
5499 * config/arc/arc.md (doloop_begin, doloop_end): Update for new
5501 * config/arc/arc.c (arc_can_use_doloop_p): New function.
5502 (TARGET_CAN_USE_DOLOOP_P): Define.
5503 * config/arm/thumb2.md (doloop_end): Update for new interface.
5504 * config/arm/arm.c (TARGET_CAN_USE_DOLOOP_P): Define.
5505 * config/bfin/bfin.md (doloop_end): Update for new interface.
5506 * config/bfin/bfin.c (bfin_can_use_doloop_p): New function.
5507 (TARGET_CAN_USE_DOLOOP_P): Define.
5508 * config/c6x/c6x.md (doloop_end): Update for new interface.
5509 * config/ia64/ia64.md (doloop_end): Update for new interface.
5510 * config/ia64/ia64.c (TARGET_CAN_USE_DOLOOP_P): Define.
5511 * config/mep/mep.md (doloop_begin, doloop_end): Update for new
5513 * config/mep/mep.c (mep_emit_doloop): Likewise.
5514 (TARGET_CAN_USE_DOLOOP_P): Define.
5515 * config/rs6000/rs6000.md (doloop_end): Update for new interface.
5516 * config/rs6000/rs6000.c (TARGET_CAN_USE_DOLOOP_P): Define.
5517 * config/s390/s390.md (doloop_end): Update for new interface.
5518 * config/sh/sh.md (doloop_end): Likewise.
5519 * config/spu/spu.md (doloop_end): Likewise.
5520 * config/spu/spu.c (TARGET_CAN_USE_DOLOOP_P): Define.
5521 * config/tilegx/tilegx.md (doloop_end): Update for new interface.
5522 * config/tilegx/tilegx.c (TARGET_CAN_USE_DOLOOP_P): Define.
5523 * config/tilepro/tilepro.md (doloop_end): Update for new interface.
5524 * config/tilepro/tilepro.c (TARGET_CAN_USE_DOLOOP_P): Define.
5525 * config/v850/v850.md (doloop_begin, doloop_end): Update for new
5527 * config/v850/v850.c (TARGET_CAN_USE_DOLOOP_P): Define.
5529 2013-11-08 H.J. Lu <hongjiu.lu@intel.com>
5532 * doc/extend.texi: Move Cilk Plus Builtins node before Other
5535 2013-11-08 Andrew MacLeod <amacleod@redhat.com>
5536 Joseph Myers <joseph@codesourcery.com>
5538 * ginclude/stdatomic.h: New file.
5539 * Makefile.in (USER_H): Add stdatomic.h.
5541 2013-11-08 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
5543 * config/arm/arm.c (arm_new_rtx_costs): Break after handling
5546 2013-11-08 Jeff Law <law@redhat.com>
5548 * tree-ssa-threadupdate.h (delete_thread_path): Declare.
5549 * tree-ssa-threadupdate.c (delete_thread_path): New function.
5550 (ssa_redirect_edges, thread_block_1): Use it.
5551 (thread_through_loop_header, mark_threaded_blocks): Likewise.
5552 (thread_through_all_blocks, register_jump_thread): Likewise.
5553 * tree-ssa-threadedge.c (thread_across_edge): Likewise.
5555 2013-11-08 James Greenhalgh <james.greenhalgh@arm.com>
5557 * config/arm/aarch-common.c
5558 (search_term): New typedef.
5559 (shift_rtx_costs): New array.
5560 (arm_rtx_shift_left_p): New.
5561 (arm_find_sub_rtx_with_search_term): Likewise.
5562 (arm_find_sub_rtx_with_code): Likewise.
5563 (arm_early_load_addr_dep): Add sanity checking.
5564 (arm_no_early_alu_shift_dep): Likewise.
5565 (arm_no_early_alu_shift_value_dep): Likewise.
5566 (arm_no_early_mul_dep): Likewise.
5567 (arm_no_early_store_addr_dep): Likewise.
5569 2013-11-08 Richard Biener <rguenther@suse.de>
5571 PR tree-optimization/59047
5572 * tree-predcom.c (ref_at_iteration): Handle bitfield accesses properly.
5574 2013-11-08 Ilya Enkovich <ilya.enkovich@intel.com>
5576 * common.opt (fcheck-pointer-bounds): Move to ...
5577 * c-family/c.opt: ... here.
5578 * langhooks-def.h (LANG_HOOKS_CHKP_SUPPORTED): Remove.
5579 (LANG_HOOKS_INITIALIZER): Remove LANG_HOOKS_CHKP_SUPPORTED.
5580 * langhooks.h (lang_hooks): Remove chkp_supported field.
5581 * toplev.c (process_options): Remove chkp_supported check.
5583 2013-11-08 Richard Biener <rguenther@suse.de>
5585 PR tree-optimization/59038
5586 PR tree-optimization/58955
5587 * tree-loop-distribution.c (pg_add_dependence_edges): Revert
5588 previous change. Handle known dependences correctly.
5590 2013-11-08 Tom de Vries <tom@codesourcery.com>
5592 * config/rs6000/t-xilinx: Remove duplicate contents.
5594 2013-11-07 Andrew MacLeod <amacleod@redhat.com>
5595 Joseph Myers <joseph@codesourcery.com>
5597 * tree-core.h (enum cv_qualifier): Add TYPE_QUAL_ATOMIC.
5598 (enum tree_index): Add TI_ATOMICQI_TYPE, TI_ATOMICHI_TYPE,
5599 TI_ATOMICSI_TYPE, TI_ATOMICDI_TYPE and TI_ATOMICTI_TYPE.
5600 (struct tree_base): Add atomic_flag field.
5601 * tree.h (TYPE_ATOMIC): New accessor macro.
5602 (TYPE_QUALS, TYPE_QUALS_NO_ADDR_SPACE): Add TYPE_QUAL_ATOMIC.
5603 (TYPE_QUALS_NO_ADDR_SPACE_NO_ATOMIC): New macro.
5604 (atomicQI_type_node, atomicHI_type_node, atomicSI_type_node)
5605 (atomicDI_type_node, atomicTI_type_node): New macros for type nodes.
5606 * tree.c (set_type_quals): Set TYPE_ATOMIC.
5607 (find_atomic_core_type): New function.
5608 (build_qualified_type): Adjust alignment for qualified types.
5609 (build_atomic_base): New function
5610 (build_common_tree_nodes): Build atomicQI_type_node,
5611 atomicHI_type_node, atomicSI_type_node, atomicDI_type_node and
5613 * print-tree.c (print_node): Print atomic qualifier.
5614 * tree-pretty-print.c (dump_generic_node): Print atomic type attribute.
5615 * target.def (atomic_assign_expand_fenv): New hook.
5616 * doc/tm.texi.in (TARGET_ATOMIC_ASSIGN_EXPAND_FENV): New @hook.
5617 * doc/tm.texi: Regenerate.
5618 * targhooks.c (default_atomic_assign_expand_fenv): New function.
5619 * targhooks.h (default_atomic_assign_expand_fenv): Declare.
5620 * sync-builtins.def (__atomic_feraiseexcept): New built-in function.
5621 * config/i386/i386-builtin-types.def (VOID_FTYPE_PUSHORT): New
5623 * config/i386/i386.c (enum ix86_builtins): Add
5624 IX86_BUILTIN_FNSTENV, IX86_BUILTIN_FLDENV, IX86_BUILTIN_FNSTSW and
5625 IX86_BUILTIN_FNCLEX.
5626 (bdesc_special_args): Add __builtin_ia32_fnstenv,
5627 __builtin_ia32_fldenv, __builtin_ia32_fnstsw and __builtin_ia32_fnclex.
5628 (ix86_expand_builtin): Handle the new built-in functions.
5629 (ix86_atomic_assign_expand_fenv): New function.
5630 (TARGET_ATOMIC_ASSIGN_EXPAND_FENV): New macro.
5631 * config/i386/i386.md (UNSPECV_FNSTENV, UNSPECV_FLDENV)
5632 (UNSPECV_FNSTSW, UNSPECV_FNCLEX): New unspecs.
5633 (fnstenv, fldenv, fnstsw, fnclex): New insns.
5635 2013-11-07 Steve Ellcey <sellcey@mips.com>
5637 * config/mips/mti-linux.h (SYSROOT_SUFFIX_SPEC): Add fp64 directory.
5638 * config/mips/t-mti-linux (MULTILIB_OPTIONS): Add -mfp64 flag.
5639 (MULTILIB_DIRNAMES): Add fp64 directory.
5640 (MULTILIB_EXCEPTIONS): Add new exclusions.
5642 2013-11-07 Aldy Hernandez <aldyh@redhat.com>
5644 * gimplify.c (gimple_regimplify_operands): Do not set
5646 * graphite-sese-to-poly.c (remove_simple_copy_phi): Same.
5647 (rewrite_close_phi_out_of_ssa): Same.
5648 (rewrite_phi_out_of_ssa): Same.
5649 (rewrite_degenerate_phi): Same.
5650 (handle_scalar_deps_crossing_scop_limits): Same.
5651 * tree-if-conv.c (predicate_scalar_phi): Same.
5652 * tree-parloops.c (create_loads_for_reductions): Same.
5653 (create_final_loads_for_reduction): Same.
5654 (create_loads_and_stores_for_name): Same.
5655 (transform_to_exit_first_loop): Same.
5656 (create_parallel_loop): Same.
5657 * tree-ssa-loop-im.c
5658 (move_computations_dom_walker::before_dom_children): Same.
5659 * tree-ssa-loop-manip.c (rewrite_phi_with_iv): Same.
5660 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children): Same.
5661 * tree-ssa-propagate.c (substitute_and_fold): Same.
5662 * tree-vect-loop.c (vect_finalize_reduction): Same.
5663 * tree-vect-stmts.c (vectorizable_call): Same.
5665 2013-11-07 Mike Stump <mikestump@comcast.net>
5667 * config/pdp11/pdp11.c: Include dbxout.h.
5668 * config/picochip/picochip.c: Likewise.
5670 2013-11-07 Cong Hou <congh@google.com>
5672 PR tree-optimization/56764
5673 * tree-vect-loop-manip.c (vect_create_cond_for_alias_checks):
5674 Combine alias checks if it is possible to amortize the runtime
5675 overhead. Return the number of alias checks after merging.
5676 * tree-vect-data-refs.c (vect_prune_runtime_alias_test_list):
5677 Use the function vect_create_cond_for_alias_checks () to check
5678 the number of alias checks.
5680 2013-11-07 Jeff Law <law@redhat.com>
5682 * varpool.c (ctor_for_folding): Fix typo in comment.
5684 2013-11-07 Joern Rennecke <joern.rennecke@embecosm.com>
5686 * config/arc/arc.c (arc_ifcvt): Use commutativity, e.g.:
5687 reg_a := reg_b + reg_a ==> reg_a := reg_a + reg_b
5689 2013-11-07 Jeff Law <law@redhat.com>
5691 * doc/invoke.texi (-fisolate-erroneous-paths): Document.
5693 * gimple-ssa-isolate-paths.c (gate_isolate_erroneous_paths):
5694 No longer check if we have __builtin_trap, assume it's available.
5696 2013-11-07 Diego Novillo <dnovillo@google.com>
5698 * attribs.c (lookup_scoped_attribute_spec): Make static.
5699 (get_attribute_namespace): Likewise.
5700 * builtins.c (more_const_call_expr_args_p): Move from tree.h.
5701 (validate_arglist): Move earlier in the file. Make static.
5702 (expand_stack_restore): Move from stmt.c
5703 (expand_stack_save): Move from stmt.c
5704 (rewrite_call_expr_array): Move earlier in the file.
5705 (rewrite_call_expr_valist): Likewise.
5706 * cfgexpand.c: Include hard-reg-set.h before tree.h
5709 (expand_asm_loc): Move from stmt.c.
5710 (n_occurrences): Move from stmt.c.
5711 (check_operand_nalternatives): Move from stmt.c.
5712 (tree_conflicts_with_clobbers_p): Move from stmt.c.
5713 (expand_asm_operands): Move from stmt.c
5714 (expand_asm_stmt): Move from stmt.c
5715 (expand_computed_goto): Move from stmt.c
5716 (expand_goto): Move from stmt.c
5717 (expand_null_return_1): Move from stmt.c
5718 (expand_null_return): Move from stmt.c
5719 (expand_value_return): Move from stmt.c
5720 (expand_return): Move from stmt.c
5721 (expand_main_function): Move from function.c
5722 (stack_protect_prologue): Move from function.c
5723 * cgraphclones.c (build_function_type_skip_args): Move from tree.c.
5724 (build_function_decl_skip_args): Move from tree.c.
5725 * explow.c (tree_expr_size): Move from tree.c.
5726 * expr.c (addr_expr_of_non_mem_decl_p): Remove.
5727 (fields_length): Move from tree.c.
5728 * fold-const.c (size_low_cst): Move from tree.c.
5729 (tree_expr_nonzero_warnv_p): Make static. Move earlier in the file.
5730 (tree_expr_nonzero_p): Make static. Move earlier in the file.
5731 (fold_build3_initializer_loc): Remove.
5732 (tree_invalid_nonnegative_warnv_p): Make static.
5733 * function.c (expand_main_function): Move to cfgexpand.c.
5734 (stack_protect_prologue): Move to cfgexpand.c.
5735 (set_insn_locations): Move earlier in the file.
5736 * gimple-fold.c: Include langhooks.h.
5737 (truth_type_for): Move from tree.c.
5738 * print-tree.c (print_vec_tree): Remove.
5739 * stmt.c (expand_computed_goto): Move to cfgexpand.c.
5740 (expand_goto): Move to cfgexpand.c.
5741 (n_occurrences): Move to cfgexpand.c.
5742 (expand_asm_loc): Move to cfgexpand.c
5743 (tree_conflicts_with_clobbers_p): Move to cfgexpand.c.
5744 (expand_asm_operands): Move to cfgexpand.c.
5745 (expand_asm_stmt): Move to cfgexpand.c.
5746 (check_operand_nalternatives): Move to cfgexpand.c
5747 (expand_null_return): Move to cfgexpand.c.
5748 (expand_value_return): Move to cfgexpand.c.
5749 (expand_null_return_1): Move to cfgexpand.c.
5750 (expand_return): Move to cfgexpand.c.
5751 (expand_stack_save): Move to builtins.c.
5752 (expand_stack_restore): Move to builtins.c
5753 * symtab.c: Include output.h.
5754 (decl_assembler_name_hash): Move from tree.c.
5755 (decl_assembler_name_equal): Move from tree.c.
5756 * trans-mem.c (is_tm_safe_or_pure): Move from tree.h.
5757 * tree-eh.c (in_array_bounds_p): Move from tree.c.
5758 (range_in_array_bounds_p): Move from tree.c.
5759 * tree-object-size.c (fini_object_sizes): Make static.
5760 * tree-ssa-dom.c (iterative_hash_exprs_commutative): Move from tree.h.
5761 * tree-vrp.c (ssa_name_nonnegative_p): Remove.
5762 * tree.c (decl_assembler_name_equal): Move to symtab.c.
5763 (tree_expr_size): Move to explow.c.
5764 (decl_assembler_name_hash): Move to symtab.c.
5765 (real_twop): Remove.
5766 (tree_expr_size): Move to explow.c.
5767 (stabilize_reference_1): Move earlier in the file. Make static.
5768 (omp_remove_redundant_declare_simd_attrs): Remove.
5769 (simple_cst_list_equal): Move earlier in the file. Make static.
5770 (size_low_cst): Move to fold-const.c.
5771 (build_type_no_quals): Remove.
5772 (build_function_type_skip_args): Move to cgraphclones.c.
5773 (build_function_decl_skip_args): Move to cgraphclones.c.
5774 (in_array_bounds_p): Move to tree-eh.c.
5775 (range_in_array_bounds_p): Move to tree-eh.c.
5776 (truth_type_for): Move to gimple-fold.c.
5777 (list_equal_p): Remove.
5778 * tree.h (decl_assembler_name_equal): Remove.
5779 (decl_assembler_name_hash): Remove.
5780 (truth_type_for): Remove.
5781 (build_type_no_quals): Remove.
5782 (build_function_decl_skip_args): Remove.
5783 (in_array_bounds_p): Remove.
5784 (range_in_array_bounds_p): Remove.
5785 (size_low_cst): Remove.
5786 (omp_remove_redundant_declare_simd_attrs): Remove.
5787 (tree_expr_size): Remove.
5788 (fields_length): Remove.
5789 (stabilize_reference_1): Remove.
5790 (expand_goto): Remove.
5791 (expand_stack_save): Remove.
5792 (expand_stack_restore): Remove.
5793 (expand_return): Remove.
5794 (fold_build3_initializer_loc): Remove.
5795 (tree_expr_nonzero_p): Remove.
5796 (tree_invalid_nonnegative_warnv_p): Remove.
5797 (tree_expr_nonzero_warnv_p): Remove.
5798 (fold_builtin_snprintf_chk): Remove.
5799 (validate_arglist): Remove.
5800 (iterative_hash_exprs_commutative): Move to tree-ssa-dom.c.
5801 (simple_cst_list_equal): Remove.
5802 (real_twop): Remove.
5803 (expand_main_function): Remove.
5804 (stack_protect_prologue): Remove.
5805 (print_vec_tree): Remove.
5806 (lookup_scoped_attribute_spec): Remove.
5807 (get_attribute_namespace): Remove.
5808 (expand_computed_goto): Remove.
5809 (expand_asm_stmt): Remove.
5810 (list_equal_p): Remove.
5811 (ssa_name_nonnegative_p): Remove.
5812 (fini_object_sizes): Remove.
5813 (addr_expr_of_non_mem_decl_p): Remove.
5814 (is_tm_safe_or_pure): Move to trans-mem.c.
5815 (more_const_call_expr_args_p): Remove.
5816 (save_vtable_map_decl): Remove.
5818 2013-11-07 Thomas Schwinge <thomas@codesourcery.com>
5820 * doc/sourcebuild.texi (Top Level) <lto-plugin>: GNU ld can use
5821 linker plugins, too.
5823 * config/arc/arc.h (LINK_COMMAND_SPEC): For -ftree-parallelize-loops=*,
5824 link to libgomp and its dependencies.
5825 * config/ia64/hpux.h (LIB_SPEC): Likewise.
5826 * config/pa/pa-hpux11.h (LIB_SPEC): Likewise.
5827 * config/pa/pa64-hpux.h (LIB_SPEC): Likewise.
5828 * gcc.c (GOMP_SELF_SPECS): Update comment about libgomp's dependencies.
5830 2013-11-07 Jakub Jelinek <jakub@redhat.com>
5832 * tree-ssa-loop-niter.c: Include tree-ssanames.h.
5833 (determine_value_range): Add loop argument. Use get_range_info to
5835 (bound_difference): Adjust caller.
5837 2013-11-07 Richard Biener <rguenther@suse.de>
5838 Jakub Jelinek <jakub@redhat.com>
5840 * tree-vrp.c (find_assert_locations): Pre-seed live bitmaps for loop
5841 latches from header PHI arguments from the latch edge.
5843 2013-11-07 Paolo Carlini <paolo.carlini@oracle.com>
5846 * varasm.c (output_constant): Handle NULLPTR_TYPE.
5848 2013-11-07 H.J. Lu <hongjiu.lu@intel.com>
5850 * config/i386/i386.c (ix86_expand_set_or_movmem): Don't set
5851 misaligned_prologue_used when it has been set.
5853 2013-11-07 Yury Gribov <y.gribov@samsung.com>
5854 Jakub Jelinek <jakub@redhat.com>
5857 * asan.c (get_mem_refs_of_builtin_call): Allow
5858 integer literals as addresses in instrumented builtins.
5860 2013-11-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
5862 * config/aarch64/aarch64.c (aarch64_legitimize_reload_address):
5863 Explain why plus_constant is not used.
5865 2013-11-07 Richard Biener <rguenther@suse.de>
5867 * tree-ssa-ccp.c (canonicalize_float_value): Rename to ...
5868 (canonicalize_value): ... this. Also handle stripping of
5870 (get_value, set_lattice_value, get_value_for_expr): Adjust.
5871 * gimple-fold.c (canonicalize_constructor_val): Strip TREE_OVERFLOW.
5872 * tree-ssa-threadedge.c (set_ssa_name_value): Likewise.
5874 2013-11-07 Richard Biener <rguenther@suse.de>
5876 * tree-dfa.c (get_ref_base_and_extent): Fix casting.
5878 2013-11-07 H.J. Lu <hongjiu.lu@intel.com>
5881 * config/i386/i386.md (push peepholer/splitter): Use Pmode
5882 with stack_pointer_rtx.
5884 2013-11-07 Bin Cheng <bin.cheng@arm.com>
5886 * tree-ssa-loop-ivopts.c (get_shiftadd_cost): Check equality
5887 using operand_equal_p.
5889 2013-11-07 Bin Cheng <bin.cheng@arm.com>
5891 * tree-ssa-loop-ivopts.c (alloc_iv): Lower address expressions.
5892 * tree-affine.c (get_inner_reference_aff): Return base.
5893 * tree-affine.h (get_inner_reference_aff): Change prototype.
5895 2013-11-06 Tobias Burnus <burnus@net-b.de>
5897 * doc/invoke.texi (Wdate-time): Fix typo.
5899 2013-11-06 Oleg Endo <olegendo@gcc.gnu.org>
5901 * config/sh/sh.md (addsf3, divsf3, divsf3_i, rsqrtsf2, cmpgtdf_t,
5902 cmpeqdf_t, *ieee_ccmpeqdf_t, negdf2, sqrtdf2, absdf2): Use
5903 fp_arith_reg_operand instead of arith_reg_operand.
5905 2013-11-06 Oleg Endo <olegendo@gcc.gnu.org>
5907 * config/sh/sh.md (adddi3): Remove empty constraints.
5908 Remove can_create_pseudo_p and arith_reg_operand check.
5909 (adddi3_compact, subdi3_compact, *negdi2): Remove constraints.
5910 Split before reload.
5912 2013-11-06 Jeff Law <law@redhat.com>
5913 Tom Tromey <tromey@redhat.com>
5915 * gdbinit.in: Disable strict type checking.
5917 2013-11-06 Vladimir Makarov <vmakarov@redhat.com>
5919 * tree-pass.h (make_pass_live_range_shrinkage): New external.
5920 * timevar.def (TV_LIVE_RANGE_SHRINKAGE): New.
5921 * sched-rgn.c (gate_handle_live_range_shrinkage): New.
5922 (rest_of_handle_live_range_shrinkage): Ditto
5923 (class pass_live_range_shrinkage): Ditto.
5924 (pass_data_live_range_shrinkage): Ditto.
5925 (make_pass_live_range_shrinkage): Ditto.
5926 * sched-int.h (initialize_live_range_shrinkage): New prototype.
5927 (finish_live_range_shrinkage): Ditto.
5928 * sched-deps.c (create_insn_reg_set): Make void return value.
5929 * passes.def: Add pass_live_range_shrinkage.
5930 * ira.c (update_equiv_regs): Don't move if flag_live_range_shrinkage.
5931 * haifa-sched.c (live_range_shrinkage_p): New.
5932 (initialize_live_range_shrinkage, finish_live_range_shrinkage):
5934 (rank_for_schedule): Add code for pressure relief through live
5936 (schedule_insn): Print more debug info.
5937 (sched_init): Setup SCHED_PRESSURE_WEIGHTED for pressure relief
5938 through live range shrinkage.
5939 * doc/invoke.texi (-flive-range-shrinkage): New.
5940 * common.opt (flive-range-shrinkage): New.
5942 2013-11-06 Uros Bizjak <ubizjak@gmail.com>
5945 * config/i386/i386.c (ix86_avx_u128_mode_needed): Require
5946 AVX_U128_DIRTY mode for call_insn RTXes that use AVX256 registers.
5947 (ix86_avx_u128_mode_needed): Return AVX_U128_DIRTY mode for call_insn
5948 RTXes that return in AVX256 register.
5950 2013-11-06 Richard Biener <rguenther@suse.de>
5952 PR tree-optimization/58653
5953 * tree-predcom.c (ref_at_iteration): Rewrite to generate a MEM_REF.
5954 (prepare_initializers_chain): Adjust.
5956 2013-11-06 Andrew MacLeod <amacleod@redhat.com>
5958 * gimple.h (block_in_transaction): Move to basic-block.h and rename.
5959 (gimple_in_transaction): Use bb_in_transaction.
5960 * basic-block.h (bb_in_transaction): Relocate here and rename.
5961 * tree-ssa-loop-im.c (execute_sm): Use bb_in_transaction.
5963 2013-11-06 Richard Biener <rguenther@suse.de>
5965 * tree.c (drop_tree_overflow): New function.
5966 * tree.h (drop_tree_overflow): Declare.
5967 * gimplify.c (gimplify_expr): Drop TREE_OVERFLOW.
5968 * tree-vrp.c (range_int_cst_singleton_p): Use
5969 is_overflow_infinity instead of testing TREE_OVERFLOW.
5970 (extract_range_from_assert): Likewise.
5971 (zero_nonzero_bits_from_vr): Likewise.
5972 (extract_range_basic): Likewise.
5973 (register_new_assert_for): Use drop_tree_overflow.
5974 (vrp_visit_phi_node): Likewise.
5976 2013-11-06 Eric Botcazou <ebotcazou@adacore.com>
5978 * config/i386/i386.c (ix86_expand_prologue): Optimize stack
5979 checking for leaf functions without dynamic stack allocation.
5980 * config/ia64/ia64.c (ia64_emit_probe_stack_range): Adjust.
5981 (ia64_expand_prologue): Likewise.
5982 * config/mips/mips.c (mips_expand_prologue): Likewise.
5983 * config/rs6000/rs6000.c (rs6000_emit_prologue): Likewise.
5984 * config/sparc/sparc.c (sparc_expand_prologue): Likewise.
5985 (sparc_flat_expand_prologue): Likewise.
5987 2013-11-06 James Greenhalgh <james.greenhalgh@arm.com>
5989 * config/aarch64/arm_neon.h (__ST2_LANE_FUNC): Better model data size.
5990 (__ST3_LANE_FUNC): Likewise.
5991 (__ST4_LANE_FUNC): Likewise.
5993 2013-11-06 Nick Clifton <nickc@redhat.com>
5995 * config/msp430/msp430.h (TARGET_CPU_CPP_BUILTINS): Define the
5996 name returned by msp430_mcu_name.
5997 (LIB_SPEC): If a -T option has not been specified then set a
5998 default, mcu-specific, linker script.
5999 * config/msp430/t-msp430 (MULTILIB_MATCHES): Add more mcu names.
6000 * config/msp430/msp430.c (msp430x_names): Likewise.
6001 Alpha sort the names for ease of comparison.
6002 (msp430_mcu_name): New function: Returns a string suitable for
6003 use as a C preprocessor symbol based upon the name of the MCU
6005 (msp430_option_override): Accept msp430x and msp430xv2 as generic
6007 * config/msp430/msp430-protos.h (msp430_mcu_name): Prototype.
6009 * gcc.c (do_spec_1): Do not insert a space after a %* substitution
6010 unless it is the last part of a spec substring.
6011 * doc/invoke.texi (Spec Files): Document space insertion
6014 2013-11-06 Christian Bruel <christian.bruel@st.com>
6016 * config/sh/sh-mem.cc (sh_expand_cmpnstr, sh_expand_cmpstr):
6017 Factorize probabilities, Use adjust_address instead of
6018 adjust_automodify_address when possible. Enable for optimize.
6019 (sh_expand_strlen): New function.
6020 * config/sh/sh-protos.h (sh_expand_strlen): Declare.
6021 * config/sh/sh.md (strlensi): New pattern.
6022 (UNSPEC_BUILTIN_STRLEN): Define.
6024 2013-11-06 Jakub Jelinek <jakub@redhat.com>
6027 * expr.c (get_bit_range): Handle *offset == NULL_TREE.
6028 (expand_assignment): If *bitpos is negative, set *offset
6029 and adjust *bitpos, so that it is not negative.
6031 2013-11-06 Ganesh Gopalasubramanian <Ganesh.Gopalasubramanian@amd.com>
6033 * config/i386/bdver3.md : Added two additional decoder units
6034 to support issue rate of 4 and remodeled vector unit.
6035 * config/i386/i386.c (ix86_issue_rate): Issue rate for BD
6036 architectures is set to 4.
6037 * config/i386/i386.c (ia32_multipass_dfa_lookahead): DFA
6038 lookahead is set to 4 for BD architectures.
6040 2013-11-05 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
6042 * config/rs6000/rs6000.c (rs6000_option_override_internal):
6043 Remove restriction against use of VSX instructions when generating
6044 code for little endian mode.
6046 2013-11-05 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
6048 * config/rs6000/altivec.md (mulv4si3): Ensure we generate vmulouh
6049 for both big and little endian.
6050 (mulv8hi3): Swap input operands for merge high and merge low
6051 instructions for little endian.
6053 2013-11-05 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
6055 * config/rs6000/altivec.md (vec_widen_umult_even_v16qi): Change
6056 define_insn to define_expand that uses even patterns for big
6057 endian and odd patterns for little endian.
6058 (vec_widen_smult_even_v16qi): Likewise.
6059 (vec_widen_umult_even_v8hi): Likewise.
6060 (vec_widen_smult_even_v8hi): Likewise.
6061 (vec_widen_umult_odd_v16qi): Likewise.
6062 (vec_widen_smult_odd_v16qi): Likewise.
6063 (vec_widen_umult_odd_v8hi): Likewise.
6064 (vec_widen_smult_odd_v8hi): Likewise.
6065 (altivec_vmuleub): New define_insn.
6066 (altivec_vmuloub): Likewise.
6067 (altivec_vmulesb): Likewise.
6068 (altivec_vmulosb): Likewise.
6069 (altivec_vmuleuh): Likewise.
6070 (altivec_vmulouh): Likewise.
6071 (altivec_vmulesh): Likewise.
6072 (altivec_vmulosh): Likewise.
6074 2013-11-05 Mike Stump <mikestump@comcast.net>
6076 * Makefile.in (mostlyclean): Remove c-family objects.
6078 2013-11-05 Ian Lance Taylor <iant@google.com>
6080 * config/i386/sync.md (atomic_compare_and_swap<dwi>_doubleword):
6081 If possible, add .cfi directives to record change to bx.
6082 * config/i386/i386.c (ix86_emit_cfi): New function.
6083 * config/i386/i386-protos.h (ix86_emit_cfi): Declare.
6085 2013-11-05 Steven Bosscher <steven@gcc.gnu.org>
6087 * rtlanal.c (tablejump_p): Expect a JUMP_TABLE_DATA to always follow
6088 immediately after a label for a tablejump pattern.
6090 * config/arm/arm.c (is_jump_table): Remove.
6091 (create_fix_barrier): Use tablejump_p instead.
6092 (arm_reorg): Likewise.
6093 (thumb1_output_casesi): Expect JUMP_TABLE_DATA to always be NEXT_INSN.
6094 (thumb2_output_casesi): Likewise.
6095 * config/aarch64/aarch64.c (aarch64_output_casesi): Likewise.
6096 * config/sh/sh.md (casesi_worker_1, casesi_worker_2,
6097 casesi_shift_media, casesi_load_media): Likewise.
6098 * config/iq2000/iq2000.md: Likewise (in anonymous define_insn).
6099 * config/microblaze/microblaze.md: Likewise.
6101 2013-11-05 Tobias Burnus <burnus@net-b.de>
6103 * doc/invoke.texi (-Wdate-time): Document.
6105 2013-11-05 Richard Sandiford <rdsandiford@googlemail.com>
6107 * double-int.c (lshift_double, rshift_double): Remove
6108 SHIFT_COUNT_TRUNCATED handling.
6110 2013-11-05 Jeff Law <law@redhat.com>
6112 * Makefile.in (OBJS): Add gimple-ssa-isolate-paths.o
6113 * common.opt (-fisolate-erroneous-paths): Add option and documentation.
6114 * gimple-ssa-isolate-paths.c: New file.
6115 * gimple.c (check_loadstore): New function.
6116 (infer_nonnull_range): Moved into gimple.c from tree-vrp.c
6117 Verify OP is in the argument list and the argument corresponding
6118 to OP is a pointer type. Use operand_equal_p rather than
6119 pointer equality when testing if OP is on the nonnull list.
6120 Use check_loadstore rather than count_ptr_derefs. Handle
6121 GIMPLE_RETURN statements.
6122 * tree-vrp.c (infer_nonnull_range): Remove.
6123 * gimple.h (infer_nonnull_range): Declare.
6124 * opts.c (default_options_table): Add OPT_fisolate_erroneous_paths.
6125 * passes.def: Add pass_isolate_erroneous_paths.
6126 * timevar.def (TV_ISOLATE_ERRONEOUS_PATHS): New timevar.
6127 * tree-pass.h (make_pass_isolate_erroneous_paths): Declare.
6128 * tree-ssa.c (struct count_ptr_d): Remove.
6129 (count_ptr_derefs, count_uses_and_derefs): Remove.
6130 * tree-ssa.h (count_uses_and_derefs): Remove.
6132 2013-11-05 Jakub Jelinek <jakub@redhat.com>
6134 PR rtl-optimization/58997
6135 * loop-iv.c (iv_subreg): For IV_UNKNOWN_EXTEND, expect
6136 get_iv_value to be in iv->mode rather than iv->extend_mode.
6137 (iv_extend): Likewise. Otherwise, if iv->extend != extend,
6138 use lowpart_subreg on get_iv_value before calling simplify_gen_unary.
6139 * loop-unswitch.c (may_unswitch_on): Make sure op[i] is in the right
6142 2013-11-05 Andrew MacLeod <amacleod@redhat.com>
6144 * gimple.h: Move some prototypes to gimple-expr.h and add to include
6146 (extract_ops_from_tree, gimple_call_addr_fndecl, is_gimple_reg_type):
6147 Move to gimple-expr.h.
6148 * gimple-expr.h: New file. Relocate some prototypes from gimple.h.
6149 (types_compatible_p, is_gimple_reg_type, is_gimple_variable,
6150 is_gimple_id, virtual_operand_p, is_gimple_addressable,
6151 is_gimple_constant, extract_ops_from_tree, gimple_call_addr_fndecl):
6153 * gimple.c (extract_ops_from_tree_1, gimple_cond_get_ops_from_tree,
6154 gimple_set_body, gimple_body, gimple_has_body_p, is_gimple_lvalue,
6155 is_gimple_condexpr, is_gimple_addressable, is_gimple_constant,
6156 is_gimple_address, is_gimple_invariant_address,
6157 is_gimple_ip_invariant_address, is_gimple_min_invariant,
6158 is_gimple_ip_invariant, is_gimple_variable, is_gimple_id,
6159 virtual_operand_p, is_gimple_reg, is_gimple_val, is_gimple_asm_val,
6160 is_gimple_min_lval, is_gimple_call_addr, is_gimple_mem_ref_addr,
6161 gimple_decl_printable_name, useless_type_conversion_p,
6162 types_compatible_p, gimple_can_coalesce_p, copy_var_decl): Move to
6164 * gimple-expr.c: New File.
6165 (useless_type_conversion_p, gimple_set_body, gimple_body,
6166 gimple_has_body_p, gimple_decl_printable_name, copy_var_decl,
6167 gimple_can_coalesce_p, extract_ops_from_tree_1,
6168 gimple_cond_get_ops_from_tree, is_gimple_lvalue, is_gimple_condexpr,
6169 is_gimple_address, is_gimple_invariant_address,
6170 is_gimple_ip_invariant_address, is_gimple_min_invariant,
6171 is_gimple_ip_invariant, is_gimple_reg, is_gimple_val,
6172 is_gimple_asm_val, is_gimple_min_lval, is_gimple_call_addr,
6173 is_gimple_mem_ref_addr): Relocate here.
6174 * Makefile.in (OBJS): Add gimple-expr.o.
6176 2013-11-05 David Malcolm <dmalcolm@redhat.com>
6178 * gengtype-parse.c (struct_field_seq): Support empty structs.
6180 2013-11-05 Uros Bizjak <ubizjak@gmail.com>
6182 * config/i386/t-rtems (MULTILIB_MATCHES): Fix option typos.
6184 2013-11-05 Uros Bizjak <ubizjak@gmail.com>
6186 * config/i386/i386-c.c (ix86_target_macros): Define _SOFT_FLOAT
6188 * config/i386/rtemself.h (TARGET_OS_CPP_BUILTINS): Do not define
6190 (LONG_DOUBLE_TYPE_SIZE): New define.
6191 (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Ditto.
6193 2013-11-05 Paolo Carlini <paolo.carlini@oracle.com>
6196 * doc/extend.texi [visibility ("visibility_type")]: Add example
6197 about visibility attribute on namespace declaration.
6199 2013-11-05 Richard Biener <rguenther@suse.de>
6202 * passes.def (all_passes): Start with pass_fixup_cfg again.
6204 2013-11-05 Richard Biener <rguenther@suse.de>
6206 PR tree-optimization/58955
6207 * tree-loop-distribution.c (pg_add_dependence_edges): Fix
6210 2013-11-05 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
6212 * config/rs6000/vector.md (vec_pack_sfix_trunc_v2df): Adjust for
6214 (vec_pack_ufix_trunc_v2df): Likewise.
6216 2013-11-05 H.J. Lu <hongjiu.lu@intel.com>
6219 * doc/md.texi (@code{movmem@var{m}}): Specify Pmode as mode of
6220 pattern, instead of word_mode.
6222 * expr.c (emit_block_move_via_movmem): Don't use mode wider than
6224 (set_storage_via_setmem): Likewise.
6226 2013-11-05 Andrew MacLeod <amacleod@redhat.com>
6228 * tree-outof-ssa.c (queue_phi_copy_p): Combine phi_ssa_name_p from
6229 gimple.h and the rest of the condition in eliminate_build.
6230 (eliminate_build): Call new routine.
6231 * gimple.h (phi_ssa_name_p): Delete.
6233 2013-11-05 Trevor Saunders <tsaunders@mozilla.com>
6235 * vec.c (vec_prefix::calculate_allocation): Don't try to handle the
6236 case of no prefix and reserving zero slots, because when that's the
6237 case we'll never get here.
6238 * vec.h (va_heap::reserve): Don't try and handle
6239 vec_prefix::calculate_allocation returning zero because that should
6242 2013-11-05 Richard Biener <rguenther@suse.de>
6245 * tree-dfa.c (get_ref_base_and_extent): Merge common code
6246 in MEM_REF and TARGET_MEM_REF handling. Make sure to
6247 process trailing array detection before diving into the
6248 view-converted object (and possibly apply some extra offset).
6250 2013-11-05 Joseph Myers <joseph@codesourcery.com>
6252 * config/i386/i386.c (ix86_float_exceptions_rounding_supported_p):
6254 (TARGET_FLOAT_EXCEPTIONS_ROUNDING_SUPPORTED_P): Define.
6256 2013-11-05 Marc Glisse <marc.glisse@inria.fr>
6258 PR tree-optimization/58958
6259 * tree-ssa-alias.c (ao_ref_init_from_ptr_and_size): Use
6260 get_addr_base_and_unit_offset instead of get_ref_base_and_extent.
6262 2013-11-05 Marc Glisse <marc.glisse@inria.fr>
6264 * tree-ssa-alias.h (ranges_overlap_p): Handle negative offsets.
6265 * tree-ssa-alias.c (ao_ref_init_from_ptr_and_size): Likewise.
6267 2013-11-05 Jakub Jelinek <jakub@redhat.com>
6269 PR tree-optimization/58984
6270 * ipa-prop.c (ipa_load_from_parm_agg_1): Add SIZE_P argument,
6271 set *SIZE_P if non-NULL on success.
6272 (ipa_load_from_parm_agg, ipa_analyze_indirect_call_uses): Adjust
6274 (ipcp_transform_function): Likewise. Punt if size of access
6275 is different from TYPE_SIZE on v->value's type.
6277 2013-11-05 Tobias Burnus <burnus@net-b.de>
6279 * doc/invoke.texi (-fopenmp-simd): Document new option.
6280 * gimplify.c (gimplify_body): Accept -fopenmp-simd.
6281 * omp-low.c (execute_expand_omp, execute_lower_omp): Ditto.
6282 * tree.c (attribute_value_equal): Ditto.
6284 2013-11-04 Wei Mi <wmi@google.com>
6286 * sched-rgn.c (add_branch_dependences): Keep insns in
6287 a SCHED_GROUP at the end of BB to remain their location.
6289 2013-11-04 Wei Mi <wmi@google.com>
6291 * config/i386/i386.c (memory_address_length): Extract a part
6292 of code to rip_relative_addr_p.
6293 (rip_relative_addr_p): New Function.
6294 (ix86_macro_fusion_p): Ditto.
6295 (ix86_macro_fusion_pair_p): Ditto.
6296 * config/i386/i386.h: Add new tune features about macro-fusion.
6297 * config/i386/x86-tune.def (DEF_TUNE): Ditto.
6298 * doc/tm.texi: Generated.
6299 * doc/tm.texi.in: Ditto.
6300 * haifa-sched.c (try_group_insn): New Function.
6301 (group_insns_for_macro_fusion): Ditto.
6302 (sched_init): Call group_insns_for_macro_fusion.
6303 * target.def: Add two hooks: macro_fusion_p and
6304 macro_fusion_pair_p.
6306 2013-11-04 Kostya Serebryany <kcc@google.com>
6308 Update to match the changed asan API.
6309 * asan.c (asan_function_start): New function.
6310 (asan_emit_stack_protection): Update the string stored in the
6311 stack red zone to match new API. Store the PC of the current
6312 function in the red zone.
6313 (asan_global_struct): Update the __asan_global definition to match
6315 (asan_add_global): Ditto.
6316 * asan.h (asan_function_start): New prototype.
6317 * final.c (final_start_function): Call asan_function_start.
6318 * sanitizer.def (BUILT_IN_ASAN_INIT): Rename __asan_init_v1
6321 2013-11-04 Wei Mi <wmi@google.com>
6323 * config/i386/i386-c.c (ix86_target_macros_internal): Separate
6324 PROCESSOR_COREI7_AVX out from PROCESSOR_COREI7.
6325 * config/i386/i386.c (ix86_option_override_internal): Ditto.
6326 (ix86_issue_rate): Ditto.
6327 (ix86_adjust_cost): Ditto.
6328 (ia32_multipass_dfa_lookahead): Ditto.
6329 (ix86_sched_init_global): Ditto.
6330 (get_builtin_code_for_version): Ditto.
6331 * config/i386/i386.h (enum target_cpu_default): Ditto.
6332 (enum processor_type): Ditto.
6333 * config/i386/x86-tune.def (DEF_TUNE): Ditto.
6335 2013-11-04 Vladimir Makarov <vmakarov@redhat.com>
6337 PR rtl-optimization/58967
6338 * config/rs6000/rs6000.c (legitimate_lo_sum_address_p): Remove
6339 !lra_in_progress for mode sizes bigger word.
6341 2013-11-04 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
6343 * config/rs6000/altivec.md (vec_widen_umult_hi_v16qi): Swap
6344 arguments to merge instruction for little endian.
6345 (vec_widen_umult_lo_v16qi): Likewise.
6346 (vec_widen_smult_hi_v16qi): Likewise.
6347 (vec_widen_smult_lo_v16qi): Likewise.
6348 (vec_widen_umult_hi_v8hi): Likewise.
6349 (vec_widen_umult_lo_v8hi): Likewise.
6350 (vec_widen_smult_hi_v8hi): Likewise.
6351 (vec_widen_smult_lo_v8hi): Likewise.
6353 2013-11-04 Ian Lance Taylor <iant@google.com>
6355 * builtins.def (ATTR_NOTHROWCALL_LEAF_LIST): Define.
6356 * sync-builtins.def: Use ATTR_NOTHROWCALL_LEAF_LIST for all sync
6357 builtins that take pointers.
6358 * lto-opts.c (lto_write_options): Write -fnon-call-exceptions if set.
6359 * lto-wrapper.c (merge_and_complain): Collect OPT_fnon_call_exceptions.
6360 (run_gcc): Pass -fnon-call-exceptions.
6362 2013-11-04 Jakub Jelinek <jakub@redhat.com>
6364 * optabs.c (expand_vec_perm): Revert one incorrect line from
6367 PR tree-optimization/58978
6368 * tree-vrp.c (all_imm_uses_in_stmt_or_feed_cond): Don't modify
6369 use_stmt by single_imm_use directly. Only call single_imm_use
6372 2013-11-04 Vladimir Makarov <vmakarov@redhat.com>
6374 PR rtl-optimization/58968
6375 * lra-spills.c (return_regno_p): New function.
6376 (lra_final_code_change): Use it.
6378 2013-11-04 Joseph Myers <joseph@codesourcery.com>
6380 * doc/cpp.texi (__GCC_IEC_559, __GCC_IEC_559_COMPLEX): Document macros.
6381 * target.def (float_exceptions_rounding_supported_p): New hook.
6382 * targhooks.c (default_float_exceptions_rounding_supported_p): New
6384 * targhooks.h (default_float_exceptions_rounding_supported_p): Declare.
6385 * doc/tm.texi.in (TARGET_FLOAT_EXCEPTIONS_ROUNDING_SUPPORTED_P):
6387 * doc/tm.texi: Regenerate.
6388 * config.gcc (powerpc*-*-linux*): Set extra_objs.
6389 * config/rs6000/rs6000-linux.c: New file.
6390 * config/rs6000/rs6000-protos.h
6391 (rs6000_linux_float_exceptions_rounding_supported_p): Declare.
6392 * config/rs6000/linux.h
6393 (TARGET_FLOAT_EXCEPTIONS_ROUNDING_SUPPORTED_P): New macro.
6394 * config/rs6000/linux64.h
6395 (TARGET_FLOAT_EXCEPTIONS_ROUNDING_SUPPORTED_P): Likewise.
6396 * config/rs6000/t-linux (rs6000-linux.o): New rule.
6397 * config/rs6000/t-linux64 (rs6000-linux.o): Likewise.
6399 2013-11-04 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
6401 * config/rs6000/vsx.md (*vsx_le_perm_store_<mode> for VSX_D):
6402 Replace the define_insn_and_split with a define_insn and two
6403 define_splits, with the split after reload re-permuting the source
6404 register to its original value.
6405 (*vsx_le_perm_store_<mode> for VSX_W): Likewise.
6406 (*vsx_le_perm_store_v8hi): Likewise.
6407 (*vsx_le_perm_store_v16qi): Likewise.
6409 2013-11-04 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
6411 * config/rs6000/vector.md (vec_pack_trunc_v2df): Adjust for
6414 2013-11-04 Jakub Jelinek <jakub@redhat.com>
6416 PR tree-optimization/58946
6417 * tree-ssa-reassoc.c (maybe_optimize_range_tests): Update all
6418 bbs with bbinfo[idx].op != NULL before all blocks with
6419 bbinfo[idx].op == NULL.
6421 2013-11-04 Richard Sandiford <rdsandiford@googlemail.com>
6423 * config/avr/avr-log.c (avr_double_int_pop_digit): Delete.
6424 (avr_dump_double_int_hex): Likewise.
6425 (avr_log_vadump): Remove %D and %X handling.
6426 * config/avr/avr.c (avr_double_int_push_digit): Delete.
6427 (avr_map_op_t): Change map from double_int to unsigned int.
6428 (avr_map_op): Update accordingly.
6429 (avr_map, avr_map_metric, avr_has_nibble_0xf, avr_map_decompose)
6430 (avr_move_bits, avr_out_insert_bits, avr_fold_builtin): Operate on
6431 unsigned ints rather than double_ints.
6433 2013-11-03 Marek Polacek <polacek@redhat.com>
6435 Implement -fsanitize=vla-bound.
6436 * opts.c (common_handle_option): Handle vla-bound.
6437 * sanitizer.def (BUILT_IN_UBSAN_HANDLE_VLA_BOUND_NOT_POSITIVE): Define.
6438 * flag-types.h (enum sanitize_code): Add SANITIZE_VLA.
6439 * asan.c (initialize_sanitizer_builtins): Build BT_FN_VOID_PTR_PTR.
6441 2013-11-02 Bill Schmidt <wschmidt@vnet.linux.ibm.com>
6443 * config/rs6000/rs6000.c (rs6000_expand_vector_set): Adjust for
6446 2013-11-02 Uros Bizjak <ubizjak@gmail.com>
6448 * config/i386/constraints.md (Ts, Tv): New address constrains.
6449 * config/i386/i386.md (*lea<mode>, *<mode>_<bndcheck>): Use Ts
6450 constraint for address_no_seg_operand.
6451 * config/i386/sse.md (*avx512pf_gatherpf<mode>_mask)
6452 (*avx512pf_gatherpf<mode>, *avx512pf_scatterpf<mode>_mask)
6453 (*avx512pf_scatterpf<mode>, *avx2_gathersi<mode>)
6454 (*avx2_gathersi<mode>_2, *avx2_gatherdi<mode>, *avx2_gatherdi<mode>_2)
6455 (*avx2_gatherdi<mode>_3, *avx2_gatherdi<mode>_4)
6456 (*avx512f_gathersi<mode>, *avx512f_gathersi<mode>_2)
6457 (*avx512f_gatherdi<mode>, *avx512f_gatherdi<mode>_2)
6458 (*avx512f_scattersi<mode> *avx512f_scatterdi<mode>): Use Tv
6459 constraint for vsib_address_operand.
6461 2013-11-02 Steven Bosscher <steven@gcc.gnu.org>
6463 * gcse.c (pre_delete): Remove references to regmove from comments.
6464 * recog.c: (validate_replace_rtx_1): Likewise.
6465 * config/rl78/rl78.c: Likewise.
6466 * config/v850/v850.h: Likewise, and remove unused ENABLE_REGMOVE_PASS.
6467 * common/config/m32r/m32r-common.c: Don't manipulate OPT_fregmove.
6468 * common/config/mmix/mmix-common.c: Likewise.
6470 2013-11-01 Trevor Saunders <tsaunders@mozilla.com>
6472 * function.c (reorder_blocks): Convert block_stack to a stack_vec.
6473 * gimplify.c (gimplify_compound_lval): Likewise.
6474 * graphite-clast-to-gimple.c (gloog): Likewise.
6475 * graphite-dependences.c (loop_is_parallel_p): Likewise.
6476 * graphite-scop-detection.c (scopdet_basic_block_info): Likewise.
6477 (limit_scop); Likewise.
6478 (build_scops): Likewise.
6479 (dot_scop): Likewise.
6480 * graphite-sese-to-poly.c (sese_dom_walker): Likewise.
6481 (build_scop_drs): Likewise.
6482 (insert_stmts): Likewise.
6483 (insert_out_of_ssa_copy): Likewise.
6484 (remove_phi): Likewise.
6485 (rewrite_commutative_reductions_out_of_ssa_close_phi): Likewise.
6486 * hw-doloop.c (discover_loop): Likewise.
6487 * tree-call-cdce.c (shrink_wrap_one_built_in_call): Likewise.
6488 * tree-dfa.c (dump_enumerated_decls): Likewise.
6489 * tree-if-conv.c (if_convertable_loop_p): Likewise.
6490 * tree-inline.c (tree_function_versioning): Likewise.
6491 * tree-loop-distribution.c (build_rdg): Likewise.
6492 (rdg_flag_vertex_and_dependent): Likewise.
6493 (distribute_loop): Likewise.
6494 * tree-parloops.c (loop_parallel_p): Likewise.
6495 (eliminate_local_variables): Likewise.
6496 (separate_decls_in_region): Likewise.
6497 * tree-predcom.c (tree_predictive_commoning_loop): Likewise.
6498 * tree-ssa-phiopt.c (cond_if_else_store_replacement): Likewise.
6499 * tree-ssa-uncprop.c (uncprop_dom_walker): Likewise.
6500 * tree-vect-loop.c (vect_analyze_scaler_cycles_1): Likewise.
6501 * tree-vect-patterns.c (vect_pattern_recog): Likewise.
6502 * tree-vect-stmts.c (vect_mark_stmts_to_be_vectorized): Likewise.
6503 (vectorizable_condition): Likewise.
6505 2013-11-01 Uros Bizjak <ubizjak@gmail.com>
6507 * configure.ac (HAVE_AS_IX86_INTERUNIT_MOVQ): Always define as 0/1.
6508 * configure: Regenerate.
6509 * config/i386/i386.md (*movdi_internal): Change
6510 HAVE_AS_IX86_INTERUNIT_MOVQ to runtime check.
6511 (*movdf_internal): Ditto.
6512 * config/i386/mmx.md (*mov<mode>_internal): Ditto.
6513 * config/i386/sse.md (vec_concatv2di): Output interunit movq
6514 for HAVE_AS_IX86_INTERUNIT_MOVQ targets.
6516 2013-10-31 Robert Suchanek <Robert.Suchanek@imgtec.com>
6518 * lra-spills.c (assign_spill_hard_regs): Remove statement terminator
6521 2013-10-31 David Malcolm <dmalcolm@redhat.com>
6523 Automated part of renaming of symtab_node_base to symtab_node.
6525 Patch autogenerated by rename_symtab.py from
6526 https://github.com/davidmalcolm/gcc-refactoring-scripts
6527 revision 58bb219cc090b2f4516a9297d868c245495ee622
6528 with ChangeLog entry fixed up by hand.
6530 * cgraph.c (x_cgraph_nodes_queue): Rename symtab_node_base to
6532 (cgraph_node_for_asm): Likewise.
6533 * cgraph.h (symtab_node_base): Likewise.
6534 (cgraph_node): Likewise.
6535 (varpool_node): Likewise.
6536 (is_a_helper <cgraph_node>::test): Likewise.
6537 (is_a_helper <varpool_node>::test): Likewise.
6538 (symtab_nodes): Likewise.
6539 (symtab_register_node): Likewise.
6540 (symtab_unregister_node): Likewise.
6541 (symtab_remove_node): Likewise.
6542 (symtab_get_node): Likewise.
6543 (symtab_node_for_asm): Likewise.
6544 (symtab_node_asm_name): Likewise.
6545 (symtab_node_name): Likewise.
6546 (symtab_insert_node_to_hashtable): Likewise.
6547 (symtab_add_to_same_comdat_group): Likewise.
6548 (symtab_dissolve_same_comdat_group_list): Likewise.
6549 (dump_symtab_node): Likewise.
6550 (debug_symtab_node): Likewise.
6551 (dump_symtab_base): Likewise.
6552 (verify_symtab_node): Likewise.
6553 (verify_symtab_base): Likewise.
6554 (symtab_used_from_object_file_p): Likewise.
6555 (symtab_alias_ultimate_target): Likewise.
6556 (symtab_resolve_alias): Likewise.
6557 (fixup_same_cpp_alias_visibility): Likewise.
6558 (symtab_for_node_and_aliases): Likewise.
6559 (symtab_nonoverwritable_alias): Likewise.
6560 (availability symtab_node_availability): Likewise.
6561 (symtab_semantically_equivalent_p): Likewise.
6562 (fixup_same_cpp_alias_visibility): Likewise.
6563 (symtab_prevail_in_asm_name_hash): Likewise.
6565 (varpool): Likewise.
6566 (varpool_first_variable): Likewise.
6567 (varpool_next_variable): Likewise.
6568 (varpool_first_static_initializer): Likewise.
6569 (varpool_next_static_initializer): Likewise.
6570 (varpool_first_defined_variable): Likewise.
6571 (varpool_next_defined_variable): Likewise.
6572 (cgraph_first_defined_function): Likewise.
6573 (cgraph_next_defined_function): Likewise.
6574 (cgraph_first_function): Likewise.
6575 (cgraph_next_function): Likewise.
6576 (cgraph_first_function_with_gimple_body): Likewise.
6577 (cgraph_next_function_with_gimple_body): Likewise.
6578 (symtab_alias_target): Likewise.
6579 (symtab_real_symbol_p): Likewise.
6580 (symtab_can_be_discarded): Likewise.
6581 * cgraphbuild.c (mark_address): Likewise.
6582 (mark_load): Likewise.
6583 (mark_store): Likewise.
6584 * cgraphunit.c (decide_is_symbol_needed): Likewise.
6586 (enqueue_node): Likewise.
6587 (referred_to_p): Likewise.
6588 (cgraph_process_same_body_aliases): Likewise.
6589 (analyze_functions): Likewise.
6590 (handle_alias_pairs): Likewise.
6591 (output_weakrefs): Likewise.
6592 (compile): Likewise.
6593 * gimple-fold.c (can_refer_decl_in_current_unit_p): Likewise.
6594 * ipa-inline-analysis.c (inline_write_summary): Likewise.
6595 * ipa-prop.c (remove_described_reference): Likewise.
6596 (try_decrement_rdesc_refcount): Likewise.
6597 (ipa_edge_duplication_hook): Likewise.
6598 * ipa-ref.c (ipa_record_reference): Likewise.
6599 (ipa_maybe_record_reference): Likewise.
6600 (ipa_clone_ref): Likewise.
6601 (ipa_clone_references): Likewise.
6602 (ipa_clone_referring): Likewise.
6603 (ipa_find_reference): Likewise.
6604 (ipa_remove_stmt_references): Likewise.
6605 (ipa_clear_stmts_in_references): Likewise.
6606 * ipa-ref.h (symtab_node_base): Likewise.
6607 (ipa_ref): Likewise.
6608 (ipa_record_reference): Likewise.
6609 (ipa_maybe_record_reference): Likewise.
6610 (ipa_clone_references): Likewise.
6611 (ipa_clone_referring): Likewise.
6612 (ipa_clone_ref): Likewise.
6613 (ipa_find_reference): Likewise.
6614 (ipa_remove_stmt_references): Likewise.
6615 (ipa_clear_stmts_in_references): Likewise.
6616 * ipa-reference.c (ipa_reference_write_optimization_summary):
6618 * ipa.c (enqueue_node): Likewise.
6619 (process_references): Likewise.
6620 (walk_polymorphic_call_targets): Likewise.
6621 (symtab_remove_unreachable_nodes): Likewise.
6622 (address_taken_from_non_vtable_p): Likewise.
6623 (comdat_can_be_unshared_p_1): Likewise.
6624 (comdat_can_be_unshared_p): Likewise.
6625 (can_replace_by_local_alias): Likewise.
6626 (function_and_variable_visibility): Likewise.
6627 * is-a.h: Likewise (within example in comment).
6628 * lto-cgraph.c (input_cgraph_opt_summary): Likewise.
6629 (lto_symtab_encoder_encode): Likewise.
6630 (lto_symtab_encoder_delete_node): Likewise.
6631 (lto_symtab_encoder_in_partition_p): Likewise.
6632 (lto_set_symtab_encoder_in_partition): Likewise.
6633 (output_refs): Likewise.
6634 (compute_ltrans_boundary): Likewise.
6635 (output_symtab): Likewise.
6636 (input_node): Likewise.
6637 (input_ref): Likewise.
6638 (input_edge): Likewise.
6639 (input_cgraph_1): Likewise.
6640 (input_refs): Likewise.
6641 (output_cgraph_opt_summary): Likewise.
6642 (input_node_opt_summary): Likewise.
6643 (input_cgraph_opt_section): Likewise.
6644 * lto-section-in.c (lto_free_function_in_decl_state_for_node):
6646 * lto-streamer-out.c (lto_output): Likewise.
6647 (output_symbol_p): Likewise.
6648 (produce_symtab): Likewise.
6649 * lto-streamer.h (lto_encoder_entry): Likewise.
6650 (lto_free_function_in_decl_state_for_node): Likewise.
6651 (lto_symtab_encoder_encode): Likewise.
6652 (lto_symtab_encoder_delete_node): Likewise.
6653 (lto_symtab_encoder_in_partition_p): Likewise.
6654 (lto_set_symtab_encoder_in_partition): Likewise.
6655 (lto_symtab_encoder_lookup): Likewise.
6656 (lsei_node): Likewise.
6657 (lto_symtab_encoder_deref): Likewise.
6658 * symtab.c (symtab_hash): Likewise.
6659 (assembler_name_hash): Likewise.
6660 (symtab_nodes): Likewise.
6661 (hash_node): Likewise.
6662 (eq_node): Likewise.
6663 (hash_node_by_assembler_name): Likewise.
6664 (eq_assembler_name): Likewise.
6665 (insert_to_assembler_name_hash): Likewise.
6666 (unlink_from_assembler_name_hash): Likewise.
6667 (symtab_prevail_in_asm_name_hash): Likewise.
6668 (symtab_register_node): Likewise.
6669 (symtab_insert_node_to_hashtable): Likewise.
6670 (symtab_unregister_node): Likewise.
6671 (symtab_get_node): Likewise.
6672 (symtab_remove_node): Likewise.
6673 (symtab_initialize_asm_name_hash): Likewise.
6674 (symtab_node_for_asm): Likewise.
6675 (symtab_add_to_same_comdat_group): Likewise.
6676 (symtab_dissolve_same_comdat_group_list): Likewise.
6677 (symtab_node_asm_name): Likewise.
6678 (symtab_node_name): Likewise.
6679 (dump_symtab_base): Likewise.
6680 (dump_symtab_node): Likewise.
6681 (dump_symtab): Likewise.
6682 (debug_symtab_node): Likewise.
6683 (verify_symtab_base): Likewise.
6684 (verify_symtab_node): Likewise.
6685 (verify_symtab): Likewise.
6686 (symtab_used_from_object_file_p): Likewise.
6687 (symtab_node_availability): Likewise.
6688 (symtab_alias_ultimate_target): Likewise.
6689 (fixup_same_cpp_alias_visibility): Likewise.
6690 (symtab_resolve_alias): Likewise.
6691 (symtab_for_node_and_aliases): Likewise.
6692 (symtab_for_node_and_aliases): Likewise.
6693 (symtab_nonoverwritable_alias_1): Likewise.
6694 (symtab_nonoverwritable_alias): Likewise.
6695 (symtab_semantically_equivalent_p): Likewise.
6696 * value-prof.c (init_node_map): Likewise.
6697 * varasm.c (find_decl): Likewise.
6698 * varpool.c (varpool_node_for_asm): Likewise.
6699 (varpool_remove_unreferenced_decls): Likewise.
6701 2013-10-31 David Malcolm <dmalcolm@redhat.com>
6703 Manual part of renaming of symtab_node_base to symtab_node.
6705 * ipa-ref.h (symtab_node): Remove typedef to pointer type, as it
6706 clashes with the preferred name for the base class.
6707 (const_symtab_node): Remove redundant typedef.
6709 2013-10-31 Jakub Jelinek <jakub@redhat.com>
6711 * optabs.c (expand_vec_perm): Avoid vector mode punning
6712 SUBREGs in SET_DEST.
6713 * expmed.c (store_bit_field_1): Likewise.
6714 * config/i386/sse.md (movdi_to_sse, vec_pack_sfix_trunc_v2df,
6715 vec_pack_sfix_v2df, vec_shl_<mode>, vec_shr_<mode>,
6716 vec_interleave_high<mode>, vec_interleave_low<mode>): Likewise.
6717 * config/i386/i386.c (ix86_expand_vector_move_misalign,
6718 ix86_expand_sse_movcc, ix86_expand_int_vcond, ix86_expand_vec_perm,
6719 ix86_expand_sse_unpack, ix86_expand_args_builtin,
6720 ix86_expand_vector_init_duplicate, ix86_expand_vector_set,
6721 emit_reduc_half, expand_vec_perm_blend, expand_vec_perm_pshufb,
6722 expand_vec_perm_interleave2, expand_vec_perm_pshufb2,
6723 expand_vec_perm_vpshufb2_vpermq,
6724 expand_vec_perm_vpshufb2_vpermq_even_odd, expand_vec_perm_even_odd_1,
6725 expand_vec_perm_broadcast_1, expand_vec_perm_vpshufb4_vpermq2,
6726 ix86_expand_sse2_mulv4si3, ix86_expand_pinsr): Likewise.
6727 (expand_vec_perm_palignr): Likewise. Modify a copy of *d rather
6730 2013-10-31 Uros Bizjak <ubizjak@gmail.com>
6732 * config/i386/i386.c (ix86_expand_sse2_abs): Rename function arguments.
6733 Use gcc_unreachable for unhandled modes. Do not check results of
6734 expand_simple_binop. If not expanded to target, move the result.
6736 2013-10-31 Chung-Ju Wu <jasonwucj@gmail.com>
6737 Shiva Chen <shiva0217@gmail.com>
6739 * config.gcc (nds32*-*-*): Add nds32 target.
6740 * config/nds32/nds32.c: New file.
6741 * config/nds32/nds32.h: New file.
6742 * config/nds32/nds32.md: New file.
6743 * config/nds32/constants.md: New file.
6744 * config/nds32/constraints.md: New file.
6745 * config/nds32/iterators.md: New file.
6746 * config/nds32/nds32-doubleword.md: New file.
6747 * config/nds32/nds32-intrinsic.md: New file.
6748 * config/nds32/nds32_intrinsic.h: New file.
6749 * config/nds32/nds32-modes.def: New file.
6750 * config/nds32/nds32-multiple.md: New file.
6751 * config/nds32/nds32.opt: New file.
6752 * config/nds32/nds32-opts.h: New file.
6753 * config/nds32/nds32-protos.h: New file.
6754 * config/nds32/nds32-peephole2.md: New file.
6755 * config/nds32/pipelines.md: New file.
6756 * config/nds32/predicates.md: New file.
6757 * config/nds32/t-mlibs: New file.
6758 * common/config/nds32: New directory and files.
6760 * doc/invoke.texi (NDS32 options): Document nds32 specific options.
6761 * doc/md.texi (NDS32 family): Document nds32 specific constraints.
6762 * doc/install.texi (Cross-Compiler-Specific Options): Document
6763 --with-nds32-lib for nds32 target.
6764 * doc/extend.texi (Function Attributes, Target Builtins): Document
6765 nds32 specific attributes.
6767 2013-10-31 Vladimir Makarov <vmakarov@redhat.com>
6769 * lra-constraints (process_alt_operands): Use the result
6770 elimination register for operand when matching constraints.
6772 2013-10-31 Jakub Jelinek <jakub@redhat.com>
6774 * tree-vrp.c (maybe_set_nonzero_bits): New function.
6775 (remove_range_assertions): Call it.
6777 * tree.c (tree_ctz): New function.
6778 * tree.h (tree_ctz): New prototype.
6779 * tree-ssanames.h (get_range_info, get_nonzero_bits): Change
6780 first argument from tree to const_tree.
6781 * tree-ssanames.c (get_range_info, get_nonzero_bits): Likewise.
6782 * tree-vectorizer.h (vect_generate_tmps_on_preheader): New prototype.
6783 * tree-vect-loop-manip.c (vect_generate_tmps_on_preheader): No longer
6785 * expr.c (highest_pow2_factor): Reimplemented using tree_ctz.
6786 * tree-vect-loop.c (vect_analyze_loop_operations,
6787 vect_transform_loop): Don't force scalar loop for bound just because
6788 number of iterations is unknown, only do it if it is not known to be
6789 a multiple of vectorization_factor.
6790 * builtins.c (get_object_alignment_2): Use tree_ctz on offset.
6792 * gimple-pretty-print.c (dump_ssaname_info): Print newline also
6793 in case of VR_VARYING. Print get_nonzero_bits if not all ones.
6794 * tree-ssanames.h (struct range_info_def): Add nonzero_bits field.
6795 (set_nonzero_bits, get_nonzero_bits): New prototypes.
6796 * tree-ssa-ccp.c (get_default_value): Use get_range_info to see if
6797 a default def isn't partially constant.
6798 (ccp_finalize): If after IPA, set_range_info if integral SSA_NAME
6799 is known to be partially zero.
6800 (evaluate_stmt): If we'd return otherwise VARYING, use get_range_info
6801 to see if a default def isn't partially constant.
6802 * tree-ssanames.c (set_range_info): Initialize nonzero_bits upon
6803 creation of a range, if VR_RANGE, try to improve nonzero_bits from
6805 (set_nonzero_bits, get_nonzero_bits): New functions.
6807 * tree-cfg.c (assert_unreachable_fallthru_edge_p): New function.
6808 * tree-cfg.h (assert_unreachable_fallthru_edge_p): New prototype.
6809 * tree-vrp.c (all_imm_uses_in_stmt_or_feed_cond): New function.
6810 (remove_range_assertions): If ASSERT_EXPR_VAR has no other immediate
6811 uses but in the condition and ASSERT_EXPR and the other successor of
6812 the predecessor bb is __builtin_unreachable (), set_range_info of the
6813 ASSERT_EXPR_VAR to the range info of the ASSERT_EXPR's lhs.
6815 2013-10-31 Martin Jambor <mjambor@suse.cz>
6817 PR rtl-optimization/58934
6819 2013-10-30 Martin Jambor <mjambor@suse.cz>
6820 PR rtl-optimization/10474
6821 * ira.c (find_moveable_pseudos): Do not calculate dominance info
6823 (interesting_dest_for_shprep): New function.
6824 (split_live_ranges_for_shrink_wrap): Likewise.
6825 (ira): Calculate dominance info and df analysis. Call
6826 split_live_ranges_for_shrink_wrap.
6828 2013-10-31 Richard Sandiford <rsandifo@linux.vnet.ibm.com>
6829 Yury Gribov <y.gribov@samsung.com>
6832 * asan.c (asan_clear_shadow): Allocate a new vreg for temporary
6833 shadow pointer to avoid clobbering the main one.
6835 2013-10-31 Zhenqiang Chen <zhenqiang.chen@linaro.org>
6837 * lower-subreg.c (resolve_simple_move): Copy REG_INC note.
6839 2013-10-30 Vladimir Makarov <vmakarov@redhat.com>
6842 * ira-color.c (update_costs_from_copies): Add new parameter. Use
6843 it for calling update_costs_from_allocno.
6844 (assign_hard_reg): Call restore_costs_from_copies only for
6845 !retry_p. Pass new argument to update_costs_from_copies.
6846 (color_pass): Pass new argument to update_costs_from_copies.
6847 (ira_mark_allocation_change): Ditto.
6849 2013-10-30 Sharad Singhai <singhai@google.com>
6852 * opts.c (common_handle_option): Remove deprecated option
6853 -ftree-vectorizer-verbose.
6854 * doc/invoke.texi (Debugging Options): Ditto.
6855 * opts-global.c (handle_common_deferred_options): Ditto.
6856 (dump_remap_tree_vectorizer_verbose): Delete.
6857 * common.opt: Set -ftree-vectorizer-verbose as an ignored option.
6859 2013-10-30 DJ Delorie <dj@redhat.com>
6861 * config/rx/rx.c (ADD_RX_BUILTIN0): New macro, used for builtins
6862 that take no arguments.
6864 2013-10-30 Joern Rennecke <joern.rennecke@embecosm.com>
6867 * reload1.c (update_eliminables_and_spill): New function, broken
6869 (reload): Use it. Check for frame size change after frame size
6870 alignment, and call update_eliminables_and_spill first if continue-ing.
6872 2013-10-30 Cong Hou <congh@google.com>
6875 * config/i386/i386-protos.h (ix86_expand_sse2_abs): New function.
6876 * config/i386/i386.c (ix86_expand_sse2_abs): New function.
6877 * config/i386/sse.md: Add SSE2 support to abs (8/16/32-bit-int).
6879 2013-10-18 Mikael Pettersson <mikpelinux@gmail.com>
6881 PR rtl-optimization/58369
6882 * reload1.c (compute_reload_subreg_offset): New function.
6883 (choose_reload_regs): Use it to pass endian-correct
6884 offset to subreg_regno_offset.
6886 2013-10-30 Tobias Burnus <burnus@net-b.de>
6889 * tree-cfg.c (replace_loop_annotate): Replace warning by
6892 2013-10-30 Jason Merrill <jason@redhat.com>
6894 * configure.ac (loose_warn): Add -Wno-format if
6895 --disable-build-format-warnings.
6897 2013-10-30 David Malcolm <dmalcolm@redhat.com>
6899 * cgraphunit.c (analyze_functions): Split symtab_node declarations
6900 onto multiple lines to make things easier for rename_symtab.py.
6902 * symtab.c (symtab_dissolve_same_comdat_group_list): Likewise.
6903 (symtab_semantically_equivalent_p): Likewise.
6905 2013-10-30 Vladimir Makarov <vmakarov@redhat.com>
6908 * lra.c (check_rtl): Remove address check before LRA work.
6910 2013-10-30 Marc Glisse <marc.glisse@inria.fr>
6912 * tree-ssa-alias.c (ao_ref_init_from_ptr_and_size): Look for a
6913 POINTER_PLUS_EXPR in the defining statement.
6915 2013-10-30 Vladimir Makarov <vmakarov@redhat.com>
6917 * regmove.c: Remove.
6918 * tree-pass.h (make_pass_regmove): Remove.
6919 * timevar.def (TV_REGMOVE): Remove.
6920 * passes.def (pass_regmove): Remove.
6921 * opts.c (default_options_table): Remove entry for regmove.
6922 * doc/passes.texi: Remove regmove pass description.
6923 * doc/invoke.texi (-foptimize-register-move, -fregmove): Remove
6925 (-fdump-rtl-regmove): Ditto.
6926 * common.opt (foptimize-register-move, fregmove): Ignore.
6927 * Makefile.in (OBJS): Remove regmove.o.
6928 * regmove.c: Remove.
6929 * ira-int.h (struct ira_allocno_pref, ira_pref_t): New structure
6931 (struct ira_allocno) New member allocno_prefs.
6932 (ALLOCNO_PREFS): New macro.
6933 (ira_prefs, ira_prefs_num): New external vars.
6934 (ira_setup_alts, ira_get_dup_out_num, ira_debug_pref): New prototypes.
6935 (ira_debug_prefs, ira_debug_allocno_prefs, ira_create_pref): Ditto.
6936 (ira_add_allocno_pref, ira_remove_pref, ira_remove_allocno_prefs):
6938 (ira_add_allocno_copy_to_list): Remove prototype.
6939 (ira_swap_allocno_copy_ends_if_necessary): Ditto.
6940 (ira_pref_iterator): New type.
6941 (ira_pref_iter_init, ira_pref_iter_cond): New functions.
6942 (FOR_EACH_PREF): New macro.
6943 * ira.c (commutative_constraint_p): Move from ira-conflicts.c.
6944 (ira_get_dup_out_num): Ditto. Rename from get_dup_num. Modify the
6946 (ira_setup_alts): New function.
6947 (decrease_live_ranges_number): New function.
6948 (ira): Call the above function.
6949 * ira-build.c (ira_prefs, ira_prefs_num): New global vars.
6950 (ira_create_allocno): Initialize allocno prefs.
6951 (pref_pool, pref_vec): New static vars.
6952 (initiate_prefs, find_allocno_pref, ira_create_pref): New
6954 (add_allocno_pref_to_list, ira_add_allocno_pref, print_pref): Ditto.
6955 (ira_debug_pref, print_prefs, ira_debug_prefs): Ditto.
6956 (print_allocno_prefs, ira_debug_allocno_prefs, finish_pref): Ditto.
6957 (ira_remove_pref, ira_remove_allocno_prefs, finish_prefs): Ditto.
6958 (ira_add_allocno_copy_to_list): Make static. Rename to
6959 add_allocno_copy_to_list.
6960 (ira_swap_allocno_copy_ends_if_necessary): Make static. Rename to
6961 swap_allocno_copy_ends_if_necessary.
6962 (remove_unnecessary_allocnos, remove_low_level_allocnos): Call
6963 ira_remove_allocno_prefs.
6964 (ira_flattening): Ditto.
6965 (ira_build): Call initiate_prefs, print_prefs.
6966 (ira_destroy): Call finish_prefs.
6967 * ira-color.c (struct update_cost_record): New.
6968 (struct allocno_color_data): Add new member update_cost_records.
6969 (update_cost_record_pool): New static var.
6970 (init_update_cost_records, get_update_cost_record): New functions.
6971 (free_update_cost_record_list, finish_update_cost_records): Ditto.
6972 (struct update_cost_queue_elem): Add member from.
6973 (initiate_cost_update): Call init_update_cost_records.
6974 (finish_cost_update): Call finish_update_cost_records.
6975 (queue_update_cost, get_next_update_cost): Add new param from.
6976 (Update_allocno_cost, update_costs_from_allocno): New functions.
6977 (update_costs_from_prefs): Ditto.
6978 (update_copy_costs): Rename to update_costs_from_copies.
6979 (restore_costs_from_copies): New function.
6980 (update_conflict_hard_regno_costs): Don't go back.
6981 (assign_hard_reg): Call restore_costs_from_copies. Add printing
6983 (pop_allocnos): Add priniting more debug info.
6984 (color_allocnos): Remove prefs for conflicting hard regs.
6985 Call update_costs_from_prefs.
6986 * ira-conflicts.c (commutative_constraint_p): Move to ira.c
6987 (get_dup_num): Rename, modify, and move to ira.c
6988 (process_regs_for_copy): Add prefs.
6989 (add_insn_allocno_copies): Put src as first arg of
6990 process_regs_for_copy. Remove dead code. Call ira_setup_alts.
6991 * ira-costs.c (record_reg_classes): Modify and move code into
6992 record_operands_costs.
6993 (find_costs_and_classes): Create prefs for the hard reg of small
6995 (process_bb_node_for_hard_reg_moves): Add prefs.
6997 2013-10-30 Richard Biener <rguenther@suse.de>
7000 * basic-block.h (pre_and_rev_post_order_compute_fn): New function.
7001 * cfganal.c (pre_and_rev_post_order_compute_fn): New function
7003 (pre_and_rev_post_order_compute): ... which now wraps it.
7004 * graph.c (draw_cfg_nodes_no_loops): Use
7005 pre_and_rev_post_order_compute_fn to avoid ICEing and dependence
7008 2013-10-30 Christian Bruel <christian.bruel@st.com>
7010 * config/sh/sh-mem.cc (sh_expand_cmpnstr): New function.
7011 (sh_expand_cmpstr): Handle known align and schedule improvements.
7012 * config/sh/sh-protos.h (sh_expand_cmpstrn): Declare.
7013 * config/sh/sh.md (cmpstrnsi): New pattern.
7015 2013-10-30 Martin Jambor <mjambor@suse.cz>
7017 PR rtl-optimization/10474
7018 * ira.c (find_moveable_pseudos): Do not calculate dominance info
7020 (interesting_dest_for_shprep): New function.
7021 (split_live_ranges_for_shrink_wrap): Likewise.
7022 (ira): Calculate dominance info and df analysis. Call
7023 split_live_ranges_for_shrink_wrap.
7025 2013-10-30 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
7028 * config/arm/arm.c (arm_expand_epilogue_apcs_frame): Emit blockage.
7030 2013-10-30 Ilya Enkovich <ilya.enkovich@intel.com>
7032 * tree-core.h (tree_index): Add TI_POINTER_BOUNDS_TYPE.
7033 * tree.h (POINTER_BOUNDS_P): New.
7034 (BOUNDED_TYPE_P): New.
7036 (pointer_bounds_type_node): New.
7037 * tree.c (build_common_tree_nodes): Initialize
7038 pointer_bounds_type_node.
7039 * gimple.h (gimple_call_get_nobnd_arg_index): New.
7040 (gimple_call_num_nobnd_args): New.
7041 (gimple_call_nobnd_arg): New.
7042 (gimple_return_retbnd): New.
7043 (gimple_return_set_retbnd): New
7044 * gimple.c (gimple_build_return): Increase number of ops
7045 for return statement.
7046 (gimple_call_get_nobnd_arg_index): New.
7047 * gimple-pretty-print.c (dump_gimple_return): Print second op.
7049 2013-10-30 Ilya Enkovich <ilya.enkovich@intel.com>
7051 * ipa.c (cgraph_build_static_cdtor_1): Support contructors
7052 with "chkp ctor" and "bnd_legacy" attributes.
7053 * gimplify.c (gimplify_init_constructor): Avoid infinite
7054 loop during gimplification of bounds initializer.
7056 2013-10-30 Ilya Enkovich <ilya.enkovich@intel.com>
7058 * c-family/c-common.c (handle_bnd_variable_size_attribute): New.
7059 (handle_bnd_legacy): New.
7060 (c_common_attribute_table): Add bnd_variable_size and bnd_legacy.
7061 * doc/extend.texi: Document bnd_variable_size and bnd_legacy
7064 2013-10-29 Ilya Enkovich <ilya.enkovich@intel.com>
7066 * builtin-types.def (BT_FN_VOID_CONST_PTR): New.
7067 (BT_FN_PTR_CONST_PTR): New.
7068 (BT_FN_CONST_PTR_CONST_PTR): New.
7069 (BT_FN_PTR_CONST_PTR_SIZE): New.
7070 (BT_FN_PTR_CONST_PTR_CONST_PTR): New.
7071 (BT_FN_VOID_PTRPTR_CONST_PTR): New.
7072 (BT_FN_VOID_CONST_PTR_SIZE): New.
7073 (BT_FN_PTR_CONST_PTR_CONST_PTR_SIZE): New.
7074 * chkp-builtins.def: New.
7075 * builtins.def: include chkp-builtins.def.
7076 (DEF_CHKP_BUILTIN): New.
7077 * builtins.c (expand_builtin): Support BUILT_IN_CHKP_INIT_PTR_BOUNDS,
7078 BUILT_IN_CHKP_NULL_PTR_BOUNDS, BUILT_IN_CHKP_COPY_PTR_BOUNDS,
7079 BUILT_IN_CHKP_CHECK_PTR_LBOUNDS, BUILT_IN_CHKP_CHECK_PTR_UBOUNDS,
7080 BUILT_IN_CHKP_CHECK_PTR_BOUNDS, BUILT_IN_CHKP_SET_PTR_BOUNDS,
7081 BUILT_IN_CHKP_NARROW_PTR_BOUNDS, BUILT_IN_CHKP_STORE_PTR_BOUNDS,
7082 BUILT_IN_CHKP_GET_PTR_LBOUND, BUILT_IN_CHKP_GET_PTR_UBOUND,
7083 BUILT_IN_CHKP_BNDMK, BUILT_IN_CHKP_BNDSTX, BUILT_IN_CHKP_BNDCL,
7084 BUILT_IN_CHKP_BNDCU, BUILT_IN_CHKP_BNDLDX, BUILT_IN_CHKP_BNDRET,
7085 BUILT_IN_CHKP_INTERSECT, BUILT_IN_CHKP_ARG_BND, BUILT_IN_CHKP_NARROW,
7086 BUILT_IN_CHKP_EXTRACT_LOWER, BUILT_IN_CHKP_EXTRACT_UPPER.
7087 * common.opt (fcheck-pointer-bounds): New.
7088 * toplev.c (process_options): Check Pointer Bounds Checker is
7090 * doc/extend.texi: Document Pointer Bounds Checker built-in functions.
7092 2013-10-30 Ilya Enkovich <ilya.enkovich@intel.com>
7094 * target.def (builtin_chkp_function): New.
7095 (chkp_bound_type): New.
7096 (chkp_bound_mode): New.
7097 (fn_abi_va_list_bounds_size): New.
7098 (load_bounds_for_arg): New.
7099 (store_bounds_for_arg): New.
7100 * targhooks.h (default_load_bounds_for_arg): New.
7101 (default_store_bounds_for_arg): New.
7102 (default_fn_abi_va_list_bounds_size): New.
7103 (default_chkp_bound_type): New.
7104 (default_chkp_bound_mode): New.
7105 (default_builtin_chkp_function): New.
7106 * targhooks.c (default_load_bounds_for_arg): New.
7107 (default_store_bounds_for_arg): New.
7108 (default_fn_abi_va_list_bounds_size): New.
7109 (default_chkp_bound_type): New.
7110 (default_chkp_bound_mode); New.
7111 (default_builtin_chkp_function): New.
7112 * doc/tm.texi.in (TARGET_FN_ABI_VA_LIST_BOUNDS_SIZE): New.
7113 (TARGET_LOAD_BOUNDS_FOR_ARG): New.
7114 (TARGET_STORE_BOUNDS_FOR_ARG): New.
7115 (TARGET_BUILTIN_CHKP_FUNCTION): New.
7116 (TARGET_CHKP_BOUND_TYPE): New.
7117 (TARGET_CHKP_BOUND_MODE): New.
7118 * doc/tm.texi: Regenerated.
7119 * langhooks.h (lang_hooks): Add chkp_supported field.
7120 * langhooks-def.h (LANG_HOOKS_CHKP_SUPPORTED): New.
7121 (LANG_HOOKS_INITIALIZER); Add LANG_HOOKS_CHKP_SUPPORTED.
7123 2013-10-29 Andrew Pinski <apinski@cavium.com>
7125 * tree-ssa-ifcombine.c: Include rtl.h and tm_p.h.
7126 (ifcombine_ifandif): Handle cases where maybe_fold_and_comparisons
7127 fails, combining the branches anyways.
7128 (tree_ssa_ifcombine): Inverse the order of the basic block walk,
7129 increases the number of combinings.
7130 * gimple.h (gsi_start_nondebug_after_labels_bb): New function.
7132 2013-10-29 Mike Stump <mikestump@comcast.net>
7134 * machmode.def (PARTIAL_INT_MODE): Add precision and name.
7135 * genmodes.c (PARTIAL_INT_MODE): Add precision and name.
7136 (make_vector_mode): Increase namebuf to 16.
7137 (emit_insn_modes_h): When processing BImode, don't
7138 also match partial int modes.
7139 (emit_class_narrowest_mode): Likewise.
7141 * config/bfin/bfin-modes.def: Add precision to PDI.
7142 * config/m32c/m32c-modes.def: Add precision to PSI.
7143 * config/msp430/msp430-modes.def: Add precision to PSI.
7144 * config/rs6000/rs6000-modes.def: Add precision to PTI.
7145 * config/sh/sh-modes.def: Add precision to PSI and PDI.
7147 2013-10-29 Oleg Endo <olegendo@gcc.gnu.org>
7150 * config/sh/sh.md (*addc): Rename existing variations to ...
7151 (*addc_r_r_1, *addc_2r_1, *addc_r_1): ... these.
7152 (*addc_r_lsb, *addc_r_r_lsb, *addc_r_lsb_r, *addc_2r_lsb, *addc_r_msb,
7153 *addc_r_r_msb, *addc_2r_msb): New insn_and_split patterns.
7154 * config/sh/sh.c (addsubcosts): Handle some addc special cases.
7156 2013-10-29 Teresa Johnson <tejohnson@google.com>
7159 * tree-ssa-tail-merge.c (replace_block_by): Tolerate profile
7160 insanities when updating probabilities.
7162 2013-10-29 David Malcolm <dmalcolm@redhat.com>
7164 * gdbhooks.py (CGraphNodePrinter.to_string): Update gdb
7165 prettyprinter for cgraph_node to reflect the conversion of the
7166 symtable types to a C++ class hierarchy: it now *is* a
7167 symtab_node_base, rather than having one (named "symbol").
7169 2013-10-29 Balaji V. Iyer <balaji.v.iyer@intel.com>
7171 * builtins.c (is_builtin_name): Added a check for __cilkrts_detach and
7172 __cilkrts_pop_frame. If matched, then return true for built-in
7174 (expand_builtin): Added BUILT_IN_CILK_DETACH and
7175 BUILT_IN_CILK_POP_FRAME case.
7176 * langhooks-def.h (lhd_install_body_with_frame_cleanup): New prototype.
7177 (lhs_cilk_detect_spawn): Likewise.
7178 (LANG_HOOKS_DECLS): Added LANG_HOOKS_CILKPLUS.
7179 (LANG_HOOKS_CILKPLUS_DETECT_SPAWN_AND_UNWRAP): New #define.
7180 (LANG_HOOKS_CILKPLUS_FRAME_CLEANUP): Likewise.
7181 (LANG_HOOKS_CILKPLUS_GIMPLIFY_SPAWN): Likewise.
7182 (LANG_HOOKS_CILKPLUS): Likewise.
7183 * tree.h (CILK_SPAWN_FN): Likewise.
7184 * builtin.def (DEF_CILK_BUILTIN_STUB): Likewise.
7185 * Makefile.in (C_COMMON_OBJS): Added c-family/cilk.o.
7186 (OBJS): Added cilk-common.o.
7187 (BUILTINS_DEF): Added cilk-builtins.def.
7188 * langhooks.c (lhd_install_body_with_frame_cleanup): New function.
7189 (lhd_cilk_detect_spawn): Likewise.
7190 * langhooks.h (lang_hooks_for_cilkplus): New struct.
7191 (struct lang_hooks): Added new field called "cilkplus."
7192 * cilk-common.c: New file.
7194 * cilk-builtins.def: Likewise.
7195 * cppbuiltin.c (define_builtin_macros_for_compilation_flags): Added
7196 "__cilk" macro and set it to 200.
7197 * function.h (struct function::cilk_frame_decl): New field.
7198 (struct function::is_cilk_function): Likewise.
7199 (struct function::calls_cilk_spawn): Likewise.
7200 * gimplify.c (gimplify_call_expr): Added a check if the function call
7201 being gimplified is a spawn detach point. If so, then add pop_frame
7202 and detach function calls.
7203 (gimplify_expr): Added a CILK_SPAWN_STMT and CILK_SYNC_STMT case
7204 for gimplifying _Cilk_spawn and _Cilk_sync statements.
7205 (gimplify_return_expr): Added a check for _Cilk_spawn usage in
7206 function. If so, added a _Cilk_sync and gimplified it.
7207 (gimplify_modify_expr): Added a check for _Cilk_spawn in MODIFY and
7208 INIT_EXPRs. If so, then call gimplify_cilk_spawn.
7209 * ipa-inline-analysis (initialize_inline_failed): Prevent inlining of
7211 (can_inline_edge_p): Prevent inling of spawnee function.
7212 * ira.c (ira_setup_eliminable_regset): Force usage of frame pointer
7213 for functions that use Cilk keywords.
7214 * tree-inline.h (struct copy_body_data::remap_var_for_cilk): New field.
7215 * tree-pretty-print.c (dump_generic_node): Added CILK_SPAWN_STMT and
7216 CILK_SYNC_STMT cases.
7217 * tree.def (DEFTREECODE): Added CILK_SPAWN_STMT and CILK_SYNC_STMT
7219 * generic.texi (CILK_SPAWN_STMT): Added documentation for _Cilk_spawn.
7220 (CILK_SYNC_STMT): Added documentation for _Cilk_sync.
7221 * passes.texi (Cilk Keywords): New section that describes the compiler
7222 code changes for handling Cilk Keywords.
7224 2013-10-29 David Malcolm <dmalcolm@redhat.com>
7226 Patch autogenerated by refactor_symtab.py from
7227 https://github.com/davidmalcolm/gcc-refactoring-scripts
7228 revision 58bb219cc090b2f4516a9297d868c245495ee622
7230 * asan.c (asan_finish_file): Update for conversion of symtab types to
7231 a true class hierarchy.
7232 * cfgexpand.c (estimated_stack_frame_size): Likewise.
7233 * cgraph.c (cgraph_get_body): Likewise.
7234 (cgraph_get_create_real_symbol_node): Likewise.
7235 (verify_cgraph_node): Likewise.
7236 (verify_edge_corresponds_to_fndecl): Likewise.
7237 (verify_edge_count_and_frequency): Likewise.
7238 (cgraph_will_be_removed_from_program_if_no_direct_calls): Likewise.
7239 (cgraph_can_remove_if_no_direct_calls_p): Likewise.
7240 (cgraph_can_remove_if_no_direct_calls_and_refs_p): Likewise.
7241 (cgraph_node_cannot_return): Likewise.
7242 (cgraph_set_pure_flag_1): Likewise.
7243 (cgraph_set_const_flag_1): Likewise.
7244 (cgraph_set_nothrow_flag_1): Likewise.
7245 (cgraph_make_node_local_1): Likewise.
7246 (cgraph_for_node_and_aliases): Likewise.
7247 (cgraph_for_node_thunks_and_aliases): Likewise.
7248 (cgraph_node_can_be_local_p): Likewise.
7249 (cgraph_node_cannot_be_local_p_1): Likewise.
7250 (cgraph_function_body_availability): Likewise.
7251 (dump_cgraph_node): Likewise.
7252 (cgraph_rtl_info): Likewise.
7253 (cgraph_mark_address_taken_node): Likewise.
7254 (cgraph_remove_node): Likewise.
7255 (cgraph_release_function_body): Likewise.
7256 (cgraph_update_edges_for_call_stmt_node): Likewise.
7257 (cgraph_redirect_edge_call_stmt_to_callee): Likewise.
7258 (cgraph_make_edge_direct): Likewise.
7259 (cgraph_resolve_speculation): Likewise.
7260 (cgraph_speculative_call_info): Likewise.
7261 (cgraph_turn_edge_to_speculative): Likewise.
7262 (cgraph_create_edge_1): Likewise.
7263 (cgraph_set_call_stmt): Likewise.
7264 (cgraph_node_for_asm): Likewise.
7265 (cgraph_add_thunk): Likewise.
7266 (cgraph_same_body_alias): Likewise.
7267 (cgraph_create_function_alias): Likewise.
7268 (cgraph_create_node): Likewise.
7269 (cgraph_create_empty_node): Likewise.
7270 (record_function_versions): Likewise.
7271 (used_from_object_file_p): Likewise.
7272 * cgraph.h (symtab_can_be_discarded): Likewise.
7273 (symtab_real_symbol_p): Likewise.
7274 (cgraph_mark_force_output_node): Likewise.
7275 (cgraph_edge_recursive_p): Likewise.
7276 (symtab_alias_target): Likewise.
7277 (varpool_all_refs_explicit_p): Likewise.
7278 (varpool_can_remove_if_no_refs): Likewise.
7279 (cgraph_only_called_directly_or_aliased_p): Likewise.
7280 (cgraph_next_function_with_gimple_body): Likewise.
7281 (cgraph_first_function_with_gimple_body): Likewise.
7282 (cgraph_function_with_gimple_body_p): Likewise.
7283 (cgraph_next_function): Likewise.
7284 (cgraph_first_function): Likewise.
7285 (cgraph_next_defined_function): Likewise.
7286 (cgraph_first_defined_function): Likewise.
7287 (varpool_next_defined_variable): Likewise.
7288 (varpool_first_defined_variable): Likewise.
7289 (varpool_next_static_initializer): Likewise.
7290 (varpool_first_static_initializer): Likewise.
7291 (varpool_next_variable): Likewise.
7292 (varpool_first_variable): Likewise.
7293 (varpool_node_name): Likewise.
7294 (varpool): Likewise.
7296 (is_a_helper <varpool_node>::test): Likewise.
7297 (is_a_helper <cgraph_node>::test): Likewise.
7298 (varpool_variable_node): Likewise.
7299 (cgraph_function_or_thunk_node): Likewise.
7300 (varpool_alias_target): Likewise.
7301 (cgraph_alias_target): Likewise.
7302 (cgraph_node_name): Likewise.
7303 (varpool_node_asm_name): Likewise.
7304 (cgraph_node_asm_name): Likewise.
7305 * cgraphbuild.c (remove_cgraph_callee_edges): Likewise.
7306 (cgraph_rebuild_references): Likewise.
7307 (rebuild_cgraph_edges): Likewise.
7308 (record_eh_tables): Likewise.
7309 (build_cgraph_edges): Likewise.
7310 (mark_store): Likewise.
7311 (mark_load): Likewise.
7312 (mark_address): Likewise.
7313 (record_type_list): Likewise.
7314 (record_reference): Likewise.
7315 * cgraphclones.c (cgraph_materialize_all_clones): Likewise.
7316 (cgraph_materialize_clone): Likewise.
7317 (cgraph_function_versioning): Likewise.
7318 (cgraph_copy_node_for_versioning): Likewise.
7319 (update_call_expr): Likewise.
7320 (cgraph_find_replacement_node): Likewise.
7321 (cgraph_create_virtual_clone): Likewise.
7322 (cgraph_clone_node): Likewise.
7323 * cgraphunit.c (compile): Likewise.
7324 (output_weakrefs): Likewise.
7325 (output_in_order): Likewise.
7326 (expand_function): Likewise.
7327 (assemble_thunks_and_aliases): Likewise.
7328 (expand_thunk): Likewise.
7329 (mark_functions_to_output): Likewise.
7330 (handle_alias_pairs): Likewise.
7331 (analyze_functions): Likewise.
7332 (walk_polymorphic_call_targets): Likewise.
7333 (varpool_finalize_decl): Likewise.
7334 (process_function_and_variable_attributes): Likewise.
7335 (cgraph_process_same_body_aliases): Likewise.
7336 (analyze_function): Likewise.
7337 (cgraph_add_new_function): Likewise.
7338 (cgraph_finalize_function): Likewise.
7339 (referred_to_p): Likewise.
7340 (cgraph_reset_node): Likewise.
7341 (cgraph_process_new_functions): Likewise.
7342 (enqueue_node): Likewise.
7343 (decide_is_symbol_needed): Likewise.
7344 * coverage.c (coverage_compute_profile_id): Likewise.
7345 * dbxout.c (dbxout_expand_expr): Likewise.
7346 * dwarf2out.c (premark_types_used_by_global_vars_helper): Likewise.
7347 (reference_to_unused): Likewise.
7348 * gimple-fold.c (can_refer_decl_in_current_unit_p): Likewise.
7349 * gimplify.c (unvisit_body): Likewise.
7350 (unshare_body): Likewise.
7351 * ipa-cp.c (ipcp_generate_summary): Likewise.
7352 (ipcp_decision_stage): Likewise.
7353 (identify_dead_nodes): Likewise.
7354 (decide_whether_version_node): Likewise.
7355 (decide_about_value): Likewise.
7356 (perhaps_add_new_callers): Likewise.
7357 (create_specialized_node): Likewise.
7358 (update_profiling_info): Likewise.
7359 (ipcp_propagate_stage): Likewise.
7360 (estimate_local_effects): Likewise.
7361 (good_cloning_opportunity_p): Likewise.
7362 (devirtualization_time_bonus): Likewise.
7363 (propagate_constants_accross_call): Likewise.
7364 (initialize_node_lattices): Likewise.
7365 (ipcp_cloning_candidate_p): Likewise.
7366 (determine_versionability): Likewise.
7367 (print_all_lattices): Likewise.
7368 (print_lattice): Likewise.
7369 (ipcp_discover_new_direct_edges): Likewise.
7370 * ipa-devirt.c (ipa_devirt): Likewise.
7371 (likely_target_p): Likewise.
7372 (update_type_inheritance_graph): Likewise.
7373 (possible_polymorphic_call_target_p): Likewise.
7374 (dump_possible_polymorphic_call_targets): Likewise.
7375 (devirt_variable_node_removal_hook): Likewise.
7376 (record_binfo): Likewise.
7377 (maybe_record_node): Likewise.
7378 (build_type_inheritance_graph): Likewise.
7379 * ipa-inline-analysis.c (inline_write_summary): Likewise.
7380 (inline_generate_summary): Likewise.
7381 (inline_analyze_function): Likewise.
7382 (do_estimate_growth): Likewise.
7383 (simple_edge_hints): Likewise.
7384 (estimate_node_size_and_time): Likewise.
7385 (estimate_edge_devirt_benefit): Likewise.
7386 (compute_inline_parameters): Likewise.
7387 (estimate_function_body_sizes): Likewise.
7388 (compute_bb_predicates): Likewise.
7389 (initialize_inline_failed): Likewise.
7390 (dump_inline_summary): Likewise.
7391 (dump_inline_edge_summary): Likewise.
7392 * ipa-inline-transform.c (inline_transform): Likewise.
7393 (preserve_function_body_p): Likewise.
7394 (save_inline_function_body): Likewise.
7395 (inline_call): Likewise.
7396 (clone_inlined_nodes): Likewise.
7397 (can_remove_node_now_p): Likewise.
7398 (can_remove_node_now_p_1): Likewise.
7399 * ipa-inline.c (early_inliner): Likewise.
7400 (early_inline_small_functions): Likewise.
7401 (inline_always_inline_functions): Likewise.
7402 (ipa_inline): Likewise.
7403 (flatten_function): Likewise.
7404 (inline_small_functions): Likewise.
7405 (speculation_useful_p): Likewise.
7406 (recursive_inlining): Likewise.
7407 (update_caller_keys): Likewise.
7408 (reset_edge_caches): Likewise.
7409 (update_edge_key): Likewise.
7410 (edge_badness): Likewise.
7411 (relative_time_benefit): Likewise.
7412 (want_inline_self_recursive_call_p): Likewise.
7413 (want_inline_small_function_p): Likewise.
7414 (want_early_inline_function_p): Likewise.
7415 (num_calls): Likewise.
7416 (can_early_inline_edge_p): Likewise.
7417 (can_inline_edge_p): Likewise.
7418 (report_inline_failed_reason): Likewise.
7419 * ipa-profile.c (ipa_profile): Likewise.
7420 (ipa_propagate_frequency): Likewise.
7421 (ipa_propagate_frequency_1): Likewise.
7422 (ipa_profile_generate_summary): Likewise.
7423 * ipa-prop.c (ipcp_transform_function): Likewise.
7424 (read_replacements_section): Likewise.
7425 (ipa_prop_read_section): Likewise.
7426 (ipa_modify_call_arguments): Likewise.
7427 (ipa_print_node_params): Likewise.
7428 (propagate_controlled_uses): Likewise.
7429 (update_indirect_edges_after_inlining): Likewise.
7430 (remove_described_reference): Likewise.
7431 (ipa_make_edge_direct_to_target): Likewise.
7432 (ipa_analyze_node): Likewise.
7433 (ipa_analyze_params_uses): Likewise.
7434 (ipa_compute_jump_functions): Likewise.
7435 (ipa_get_callee_param_type): Likewise.
7436 (ipa_print_node_jump_functions): Likewise.
7437 (ipa_initialize_node_params): Likewise.
7438 (ipa_populate_param_decls): Likewise.
7439 (ipa_func_spec_opts_forbid_analysis_p): Likewise.
7440 (write_agg_replacement_chain): Likewise.
7441 (ipa_write_node_info): Likewise.
7442 (ipa_edge_duplication_hook): Likewise.
7443 (try_decrement_rdesc_refcount): Likewise.
7444 * ipa-pure-const.c (propagate_nothrow): Likewise.
7445 (propagate_pure_const): Likewise.
7446 (pure_const_read_summary): Likewise.
7447 (pure_const_write_summary): Likewise.
7448 (analyze_function): Likewise.
7449 * ipa-ref-inline.h (ipa_ref_referred_ref_list): Likewise.
7450 (ipa_ref_referring_ref_list): Likewise.
7451 * ipa-ref.c (ipa_clear_stmts_in_references): Likewise.
7452 (ipa_remove_stmt_references): Likewise.
7453 (ipa_find_reference): Likewise.
7454 (ipa_dump_referring): Likewise.
7455 (ipa_dump_references): Likewise.
7456 (ipa_record_reference): Likewise.
7457 * ipa-reference.c (ipa_reference_read_optimization_summary): Likewise.
7458 (ipa_reference_write_optimization_summary): Likewise.
7459 (write_node_summary_p): Likewise.
7460 (propagate): Likewise.
7461 (read_write_all_from_decl): Likewise.
7462 (generate_summary): Likewise.
7463 (analyze_function): Likewise.
7464 (propagate_bits): Likewise.
7465 (ipa_reference_get_not_written_global): Likewise.
7466 (ipa_reference_get_not_read_global): Likewise.
7467 * ipa-split.c (execute_split_functions): Likewise.
7468 (split_function): Likewise.
7469 * ipa-utils.c (ipa_merge_profiles): Likewise.
7470 (dump_cgraph_node_set): Likewise.
7471 (ipa_reverse_postorder): Likewise.
7472 (ipa_edge_within_scc): Likewise.
7473 (ipa_get_nodes_in_cycle): Likewise.
7474 (ipa_free_postorder_info): Likewise.
7475 (ipa_reduced_postorder): Likewise.
7476 (searchc): Likewise.
7477 (recursive_call_p): Likewise.
7478 * ipa.c (ipa_cdtor_merge): Likewise.
7479 (record_cdtor_fn): Likewise.
7480 (function_and_variable_visibility): Likewise.
7481 (varpool_externally_visible_p): Likewise.
7482 (cgraph_externally_visible_p): Likewise.
7483 (comdat_can_be_unshared_p): Likewise.
7484 (comdat_can_be_unshared_p_1): Likewise.
7485 (address_taken_from_non_vtable_p): Likewise.
7486 (ipa_discover_readonly_nonaddressable_vars): Likewise.
7487 (symtab_remove_unreachable_nodes): Likewise.
7488 (walk_polymorphic_call_targets): Likewise.
7489 (process_references): Likewise.
7490 (enqueue_node): Likewise.
7491 (has_addr_references_p): Likewise.
7492 (cgraph_non_local_node_p_1): Likewise.
7493 * is-a.h (varpool_analyze_node): Likewise.
7494 * lto-cgraph.c (input_symtab): Likewise.
7495 (merge_profile_summaries): Likewise.
7496 (input_cgraph_1): Likewise.
7497 (input_edge): Likewise.
7498 (input_varpool_node): Likewise.
7499 (input_node): Likewise.
7500 (input_overwrite_node): Likewise.
7501 (compute_ltrans_boundary): Likewise.
7502 (output_refs): Likewise.
7503 (lto_output_varpool_node): Likewise.
7504 (lto_output_node): Likewise.
7505 (reachable_from_other_partition_p): Likewise.
7506 (referenced_from_other_partition_p): Likewise.
7507 (lto_output_edge): Likewise.
7508 (output_node_opt_summary): Likewise.
7509 (add_node_to): Likewise.
7510 (reachable_from_this_partition_p): Likewise.
7511 (lto_set_symtab_encoder_in_partition): Likewise.
7512 (lto_symtab_encoder_in_partition_p): Likewise.
7513 (lto_set_symtab_encoder_encode_initializer): Likewise.
7514 (lto_symtab_encoder_encode_initializer_p): Likewise.
7515 (lto_set_symtab_encoder_encode_body): Likewise.
7516 (lto_symtab_encoder_encode_body_p): Likewise.
7517 * lto-section-in.c (lto_free_function_in_decl_state_for_node):
7519 * lto-streamer-in.c (lto_read_body): Likewise.
7520 (fixup_call_stmt_edges): Likewise.
7521 (fixup_call_stmt_edges_1): Likewise.
7522 * lto-streamer-out.c (produce_symtab): Likewise.
7523 (output_symbol_p): Likewise.
7524 (write_symbol): Likewise.
7525 (lto_output): Likewise.
7526 (copy_function): Likewise.
7527 (output_function): Likewise.
7528 * passes.c (function_called_by_processed_nodes_p): Likewise.
7529 (ipa_write_optimization_summaries): Likewise.
7530 (ipa_write_summaries): Likewise.
7531 (do_per_function_toporder): Likewise.
7532 (do_per_function): Likewise.
7533 (dump_passes): Likewise.
7534 * symtab.c (symtab_semantically_equivalent_p): Likewise.
7535 (symtab_nonoverwritable_alias): Likewise.
7536 (symtab_nonoverwritable_alias_1): Likewise.
7537 (symtab_for_node_and_aliases): Likewise.
7538 (symtab_resolve_alias): Likewise.
7539 (fixup_same_cpp_alias_visibility): Likewise.
7540 (symtab_alias_ultimate_target): Likewise.
7541 (symtab_used_from_object_file_p): Likewise.
7542 (verify_symtab_base): Likewise.
7543 (dump_symtab_base): Likewise.
7544 (symtab_node_name): Likewise.
7545 (symtab_node_asm_name): Likewise.
7546 (symtab_dissolve_same_comdat_group_list): Likewise.
7547 (symtab_add_to_same_comdat_group): Likewise.
7548 (symtab_unregister_node): Likewise.
7549 (symtab_insert_node_to_hashtable): Likewise.
7550 (symtab_register_node): Likewise.
7551 (unlink_from_assembler_name_hash): Likewise.
7552 (insert_to_assembler_name_hash): Likewise.
7553 (eq_assembler_name): Likewise.
7554 (hash_node_by_assembler_name): Likewise.
7555 (eq_node): Likewise.
7556 (hash_node): Likewise.
7557 * toplev.c (wrapup_global_declaration_2): Likewise.
7558 * trans-mem.c (ipa_tm_execute): Likewise.
7559 (ipa_tm_transform_clone): Likewise.
7560 (ipa_tm_transform_transaction): Likewise.
7561 (ipa_tm_transform_calls_redirect): Likewise.
7562 (ipa_tm_insert_gettmclone_call): Likewise.
7563 (ipa_tm_insert_irr_call): Likewise.
7564 (ipa_tm_create_version): Likewise.
7565 (ipa_tm_create_version_alias): Likewise.
7566 (ipa_tm_mark_forced_by_abi_node): Likewise.
7567 (ipa_tm_mark_force_output_node): Likewise.
7568 (ipa_tm_diagnose_tm_safe): Likewise.
7569 (ipa_tm_mayenterirr_function): Likewise.
7570 (ipa_tm_scan_irr_function): Likewise.
7571 (ipa_tm_note_irrevocable): Likewise.
7572 (ipa_tm_scan_calls_clone): Likewise.
7573 (get_cg_data): Likewise.
7574 * tree-eh.c (tree_could_trap_p): Likewise.
7575 * tree-emutls.c (ipa_lower_emutls): Likewise.
7576 (create_emultls_var): Likewise.
7577 (lower_emutls_function_body): Likewise.
7578 (gen_emutls_addr): Likewise.
7579 (emutls_decl): Likewise.
7580 (new_emutls_decl): Likewise.
7581 * tree-inline.c (tree_function_versioning): Likewise.
7582 (optimize_inline_calls): Likewise.
7583 (expand_call_inline): Likewise.
7584 (estimate_num_insns): Likewise.
7585 (copy_bb): Likewise.
7586 (delete_unreachable_blocks_update_callgraph): Likewise.
7587 * tree-nested.c (gimplify_all_functions): Likewise.
7588 (create_nesting_tree): Likewise.
7589 (check_for_nested_with_variably_modified): Likewise.
7590 * tree-pretty-print.c (dump_function_header): Likewise.
7591 * tree-profile.c (tree_profiling): Likewise.
7592 * tree-sra.c (ipa_sra_preliminary_function_checks): Likewise.
7593 (modify_function): Likewise.
7594 (convert_callers): Likewise.
7595 (convert_callers_for_node): Likewise.
7596 * tree-ssa-structalias.c (ipa_pta_execute): Likewise.
7597 (associate_varinfo_to_alias): Likewise.
7598 (create_variable_info_for): Likewise.
7599 (get_constraint_for_ssa_var): Likewise.
7600 * tree-vectorizer.c (increase_alignment): Likewise.
7601 * tree.c (find_decls_types_in_var): Likewise.
7602 (find_decls_types_in_node): Likewise.
7603 (free_lang_data_in_decl): Likewise.
7604 * value-prof.c (gimple_ic_transform): Likewise.
7605 (gimple_ic): Likewise.
7606 (check_ic_target): Likewise.
7607 (init_node_map): Likewise.
7608 * varasm.c (decl_binds_to_current_def_p): Likewise.
7609 (default_binds_local_p_1): Likewise.
7610 (dump_tm_clone_pairs): Likewise.
7611 (assemble_alias): Likewise.
7612 (find_decl): Likewise.
7613 (mark_decl_referenced): Likewise.
7614 * varpool.c (varpool_for_node_and_aliases): Likewise.
7615 (varpool_extra_name_alias): Likewise.
7616 (varpool_create_variable_alias): Likewise.
7617 (add_new_static_var): Likewise.
7618 (varpool_finalize_named_section_flags): Likewise.
7619 (varpool_remove_unreferenced_decls): Likewise.
7620 (enqueue_node): Likewise.
7621 (varpool_assemble_decl): Likewise.
7622 (assemble_aliases): Likewise.
7623 (varpool_analyze_node): Likewise.
7624 (cgraph_variable_initializer_availability): Likewise.
7625 (varpool_add_new_variable): Likewise.
7626 (ctor_for_folding): Likewise.
7627 (dump_varpool_node): Likewise.
7628 (varpool_remove_initializer): Likewise.
7629 (varpool_remove_node): Likewise.
7630 (varpool_node_for_decl): Likewise.
7631 (varpool_create_empty_node): Likewise.
7632 * config/i386/i386.c (ix86_generate_version_dispatcher_body): Likewise.
7633 (ix86_get_function_versions_dispatcher): Likewise.
7635 2013-10-29 David Malcolm <dmalcolm@redhat.com>
7637 * cgraph.h (symtab_node_base): Convert to a class;
7638 add GTY((desc ("%h.type"), tag ("SYMTAB_SYMBOL"))), and take
7639 chain_next/prev from symtab_node_def.
7640 (cgraph_node): Inherit from symtab_node; add GTY option
7641 tag ("SYMTAB_FUNCTION").
7642 (varpool_node): Inherit from symtab_node; add GTY option
7643 tag ("SYMTAB_VARIABLE").
7644 (symtab_node_def): Remove.
7645 (is_a_helper <cgraph_node>::test (symtab_node_def *)): Convert to...
7646 (is_a_helper <cgraph_node>::test (symtab_node_base *)): ...this.
7647 (is_a_helper <varpool_node>::test (symtab_node_def *)): Convert to...
7648 (is_a_helper <varpool_node>::test (symtab_node_base *)): ...this.
7650 * ipa-ref.h (symtab_node_def): Drop.
7651 (symtab_node): Change underlying type from symtab_node_def to
7653 (const_symtab_node): Likwise.
7655 * is-a.h: Update examples in comment.
7657 * symtab.c (symtab_hash): Change symtab_node_def to symtab_node_base.
7658 (assembler_name_hash): Likewise.
7660 2013-10-29 Martin Liska <marxin.liska@gmail.com>
7662 * doc/tree-ssa.texi (gimple_phi_result): Document.
7663 (gimple_phi_num_args, gimple_phi_arg): Likewise.
7664 (gimple_phi_arg_edge, gimple_phi_arg_def): Likewise.
7665 (PHI_RESULT, PHI_NUM_ARGS): Remove.
7666 (PHI_ARG_ELT, PHI_ARG_EDGE, PHI_ARG_DEF): Likewise.
7668 2013-10-29 Andrew MacLeod <amacleod@redhat.com>
7670 * expr.h: Revert change and include tree-core.h.
7671 * rtl.h: Revert change and don't include tree-core.h.
7673 2013-10-29 Andrew MacLeod <amacleod@redhat.com>
7675 * config/darwin.c: Include gimple.h.
7676 * config/i386/winnt.c: Likewise.
7678 2013-10-29 Marc Glisse <marc.glisse@inria.fr>
7680 PR tree-optimization/19831
7681 * tree-ssa-alias.c (stmt_kills_ref_p_1): Handle BUILT_IN_FREE.
7683 2013-10-29 Andrew MacLeod <amacleod@redhat.com>
7685 * tree-outof-ssa.h: Remove include files.
7686 * tree-outof-ssa.c: Add required include files from tree-outof-ssa.h.
7688 * tree-ssa-coalesce.c: Likewise.
7689 * cfgexpand.c: Likewise.
7690 * tree-ssa-ter.c: Likewise.
7691 * ipa-prop.h: Remove gimple.h and tree-core.h from include list.
7692 * lto-streamer.h: Likewise.
7693 * cgraphbuild.c: Add gimple.h to include list.
7694 * data-streamer-in.c: Likewise.
7695 * ipa-cp.c: Likewise.
7696 * tree-streamer.c: Likewise.
7697 * lto-compress.c: Likewise.
7698 * ipa-reference.c: Likewise.
7699 * data-streamer-out.c: Likewise.
7700 * lto-cgraph.c: Likewise.
7701 * cgraphclones.c: Likewise.
7702 * ipa-utils.c: Likewise.
7703 * data-streamer.c: Likewise.
7704 * ipa-split.c: Likewise.
7705 * lto-section-in.c: Likewise.
7706 * tree-streamer-out.c: Likewise.
7707 * ipa-prop.c: Likewise.
7708 * tree-streamer-in.c: Likewise.
7709 * symtab.c: Likewise.
7710 * opts-global.c: Likewise.
7711 * lto-opts.c: Likewise.
7712 * lto-section-out.c: Likewise.
7713 * lto-streamer.c: Likewise.
7714 * rtl.h: Add tree-core.h to include list.
7715 * expr.h: Remove tree-core.h from include list.
7716 * gimple.h: Likewise.
7717 * ipa-utils.h: Likewise.
7718 * streamer-hooks.h: Likewise.
7719 * streamer-hooks.c: Include input.h.
7721 2013-10-29 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
7723 * config/arm/arm.c (cortexa7_extra_costs): New table.
7724 (arm_cortex_a7_tune): New.
7725 * config/arm/arm-cores.def: Use cortex_a7 tuning for cortex-a7.
7727 2013-10-29 Eric Botcazou <ebotcazou@adacore.com>
7729 * expr.c (expand_expr_real_1) <MEM_EXPR>: Eliminate small redundancy.
7731 2013-10-29 David Malcolm <dmalcolm@redhat.com>
7733 * doc/gty.texi ("Inheritance and GTY"): Make it clear that
7734 to use autogenerated markers for a class-hierarchy, every class
7735 must have a GTY marker.
7736 * gengtype.h (struct type): Add linked list of subclasses to
7737 the "s" member of the union.
7738 (add_subclass): New decl.
7739 * gengtype-state.c (read_state_struct_type): Set up subclass
7741 * gengtype.c (get_ultimate_base_class): New.
7742 (add_subclass): New.
7743 (new_structure): Set up subclass linked list.
7744 (set_gc_used_type): Propagate usage information to subclasses.
7745 (output_mangled_typename): Use get_ultimate_base_class.
7746 (walk_subclasses): Use the subclass linked list, avoiding an
7747 O(N^2) when writing out all types.
7748 (walk_type): Issue an error if the base class is missing a tag,
7749 rather than generating bogus C code. Add a gcc_unreachable
7750 default case, in case people omit tags from concrete subclasses,
7751 or get the values wrong.
7752 (write_func_for_structure): Issue an error for subclasses for
7753 which the base doesn't have a "desc", since otherwise the
7754 autogenerated routines for the base would silently fail to visit
7755 any subclass fields.
7756 (write_root): Use get_ultimate_base_class, tweaking constness of
7757 tp to match that function's signature.
7759 2013-10-29 David Malcolm <dmalcolm@redhat.com>
7761 * doc/gty.texi (GTY Options): Add note about inheritance to
7762 description of desc and tag.
7763 (Inheritance and GTY): New.
7765 2013-10-29 David Malcolm <dmalcolm@redhat.com>
7767 * gengtype-parse.c (opts_have): Drop "static" so that
7768 we can use this from gengtype.c.
7769 * gengtype.c (set_gc_used_type): Mark any base class as used;
7770 update field traversal to visit inherited fields.
7771 (output_mangled_typename): Convert references to classes within
7772 an inheritance hierarchy to reference the ultimate base class,
7773 since only it will have gt_ functions.
7774 (get_string_option): New.
7775 (walk_subclasses): New.
7776 (walk_type): Treat GTY structs that have a "desc" as being the
7777 root of an inheritance hierarchy. Generate a switch on it
7778 within the marking function which walks all subclasses, adding
7779 cases for them via walk_subclasses. For subclasses, visit all
7780 fields of the type (including inherited ones).
7781 (write_func_for_structure): Don't write fns for subclasses, only
7782 for the ultimate base class within an inheritance hierarchy.
7783 Subclasses-marking will be handled by the base class marking functions.
7784 (write_types): Likewise.
7785 (write_local_func_for_structure): Likewise.
7786 (USED_BY_TYPED_GC_P): Emit allocators for subclasses that have
7787 a "tag" option (and are thus concrete subclasses).
7788 (write_root): Use the marker function for the ultimate base class.
7789 * gengtype.h (FOR_ALL_INHERITED_FIELDS): New.
7790 (opts_have): Add declaration.
7792 2013-10-28 Vladimir Makarov <vmakarov@redhat.com>
7794 * lra-spills.c (lra_final_code_change): Remove useless move insns
7795 originated from moves of pseudos.
7797 2013-10-28 Jeff Law <law@redhat.com>
7799 * lower-subreg.c (resolve_simple_move): Fix comment typo.
7801 2013-10-28 Trevor Saunders <tsaunders@mozilla.com>
7803 * df-scan.c (df_collection_rec): Adjust.
7804 (copy_defs): New constant.
7805 (copy_uses): Likewise.
7806 (copy_eq_uses): Likewise.
7807 (copy_mw): Likewise.
7808 (copy_all): Likewise.
7809 (df_insn_rescan): Adjust.
7810 (df_notes_rescan): Likewise.
7811 (df_swap_refs): Likewise.
7812 (df_sort_and_compress_refs): Likewise.
7813 (df_sort_and_compress_mws): Likewise.
7814 (df_install_refs): Likewise.
7815 (df_install_mws): Likewise.
7816 (df_refs_add_to_chains): Add flags parameter controlling which vectors
7818 (df_bb_refs_record): Adjust.
7819 (df_record_entry_block_defs): Likewise.
7820 (df_record_exit_block_defs): Likewise.
7821 (df_refs_verify): Likewise.
7822 (df_mws_verify): Likewise.
7823 (df_insn_refs_verify): Likewise.
7824 (df_bb_verify): Likewise.
7825 * ipa-pure-const.c (finish_state): Remove.
7826 (propagate): Adjust.
7827 * tree-data-ref.c tree-ssa-alias.c tree-ssa-loop-ivcanon.c
7828 tree-ssa-threadedge.c tree-vect-loop-manip.c tree-vect-slp.c
7829 var-tracking.c: Adjust.
7830 * vec.c (stack_vecs): Remove.
7831 (register_stack_vec): Likewise.
7832 (stack_vec_register_index): Likewise.
7833 (unregister_stack_vec): Likewise.
7834 * vec.h (struct va_stack): Remove.
7835 (struct vec<T, A, vl_ptr>): Specialize as
7836 struct vec<T, va_heap, vl_ptr> instead since va_heap is the only
7837 allocation strategy compatable with the vl_ptr layout.
7838 (struct vec<T, va_gc, vl_ptr>): Remove because it now gets an empty
7839 specialization anyway.
7840 (class stack_vec): New class.
7841 (vec_stack_alloc): Remove.
7842 (vec<T, va_heap, vl_ptr>::using_auto_storage): New method.
7844 2013-10-28 Alexander Ivchenko <alexander.ivchenko@intel.com>
7845 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
7846 Sergey Lega <sergey.s.lega@intel.com>
7847 Anna Tikhonova <anna.tikhonova@intel.com>
7848 Ilya Tocar <ilya.tocar@intel.com>
7849 Andrey Turetskiy <andrey.turetskiy@intel.com>
7850 Ilya Verbin <ilya.verbin@intel.com>
7851 Kirill Yukhin <kirill.yukhin@intel.com>
7852 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
7854 * config/i386/i386.md (prefetch): Allow TARGET_AVX512PF.
7855 (*prefetch_avx512pf_<mode>): New.
7856 * config/i386/sse.md (avx512f_vmcmp<mode>3): Ditto.
7857 (avx512f_maskcmp<mode>3): Ditto.
7858 (vashrv16si3): Ditto.
7860 2013-10-28 Alexander Ivchenko <alexander.ivchenko@intel.com>
7861 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
7862 Sergey Lega <sergey.s.lega@intel.com>
7863 Anna Tikhonova <anna.tikhonova@intel.com>
7864 Ilya Tocar <ilya.tocar@intel.com>
7865 Andrey Turetskiy <andrey.turetskiy@intel.com>
7866 Ilya Verbin <ilya.verbin@intel.com>
7867 Kirill Yukhin <kirill.yukhin@intel.com>
7868 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
7870 * config/i386/i386.md (any_truncate): New.
7871 (trunsuffix): Ditto.
7872 * config/i386/predicates.md (const_8_to_9_operand): New.
7873 (const_10_to_11_operand): Ditto.
7874 (const_12_to_13_operand): Ditto.
7875 (const_14_to_15_operand): Ditto.
7876 (const_16_to_19_operand): Ditto.
7877 (const_20_to_23_operand): Ditto.
7878 (const_24_to_27_operand): Ditto.
7879 (const_28_to_31_operand): Ditto.
7880 * config/i386/sse.md (unspec): Add UNSPEC_UNSIGNED_FIX_NOTRUNC.
7881 (cvtusi2<ssescalarmodesuffix>32): New.
7882 (cvtusi2<ssescalarmodesuffix>64): Ditto.
7883 (ufloatv16siv16sf2): Ditto.
7884 (avx512f_fix_notruncv16sfv16si): Ditto.
7885 (avx512f_ufix_notruncv16sfv16si): Ditto.
7886 (avx512f_vcvtss2usi): Ditto.
7887 (avx512f_vcvtss2usiq): Ditto.
7888 (avx512f_vcvttss2usi): Ditto.
7889 (avx512f_vcvttss2usiq): Ditto.
7890 (avx512f_vcvtsd2usi): Ditto.
7891 (avx512f_vcvtsd2usiq): Ditto.
7892 (avx512f_vcvttsd2usi): Ditto.
7893 (avx512f_vcvttsd2usiq): Ditto.
7894 (ufloatv8siv8df): Ditto.
7895 (avx512f_cvtdq2pd512_2): Ditto.
7896 (avx512f_cvtpd2dq512): Ditto.
7897 (avx512f_ufix_notruncv8dfv8si): Ditto.
7898 (avx512f_cvtpd2ps512): Ditto.
7899 (vec_unpacks_lo_v16sf): Ditto.
7900 (vec_unpacks_hi_v16sf): Ditto.
7901 (vec_unpacks_float_hi_v16si): Ditto.
7902 (vec_unpacks_float_lo_v16si): Ditto.
7903 (avx512f_unpckhps512): Ditto.
7904 (avx512f_unpcklps512): Ditto.
7905 (avx512f_movshdup512): Ditto.
7906 (avx512f_movsldup512): Ditto.
7907 (vec_extract_lo_v32hi): Ditto.
7908 (vec_extract_hi_v32hi): Ditto.
7909 (vec_extract_lo_v64qi): Ditto.
7910 (vec_extract_hi_v64qi): Ditto.
7911 (avx512f_unpckhpd512): Ditto.
7912 (avx512f_movddup512): Ditto.
7913 (avx512f_unpcklpd512): Ditto.
7914 (*avx512f_unpcklpd512): Ditto.
7915 (avx512f_shufps512_1): Ditto.
7916 (avx512f_shufpd512_1): Ditto.
7917 (avx512f_interleave_highv8di): Ditto.
7918 (avx512f_interleave_lowv8di): Ditto.
7919 (PMOV_DST_MODE): Ditto.
7920 (pmov_src_mode): Ditto.
7921 (pmov_src_lower): Ditto.
7923 (*avx512f_<code><pmov_src_lower><mode>2): Ditto.
7924 (*avx512f_<code>v8div16qi2): Ditto.
7925 (*avx512f_<code>v8div16qi2_store): Ditto.
7926 (vec_widen_umult_even_v16si): Ditto.
7927 (*vec_widen_umult_even_v16si): Ditto.
7928 (vec_widen_smult_even_v16si): Ditto.
7929 (*vec_widen_smult_even_v16si): Ditto.
7930 (avx512f_interleave_highv16si): Ditto.
7931 (avx512f_interleave_lowv16si): Ditto.
7932 (avx512f_<code>v16qiv16si2): Ditto.
7933 (avx512f_<code>v16hiv16si2): Ditto.
7934 (avx512f_<code>v8qiv8di2): Ditto.
7935 (avx512f_<code>v8hiv8di2): Ditto.
7936 (avx512f_<code>v8siv8di2): Ditto.
7937 (avx512cd_maskb_vec_dupv8di): Ditto.
7938 (avx512cd_maskw_vec_dupv16si): Ditto.
7939 (avx512f_vcvtph2ps512): Ditto.
7940 (avx512f_vcvtps2ph512): Ditto.
7941 (VEC_EXTRACT_MODE): Extened with wider modes.
7942 (VEC_PERM_AVX2): Ditto.
7943 (VEC_PERM_CONST): Ditto.
7945 2013-10-28 Joern Rennecke <joern.rennecke@embecosm.com>
7947 * config/arc/arc.c (arc_ccfsm_post_advance):
7948 Add comment about TYPE_RETURN.
7950 2013-10-28 Bin Cheng <bin.cheng@arm.com>
7952 * tree-ssa-loop-ivopts.c (strip_offset_1): Change parameter type.
7953 Count DECL_FIELD_BIT_OFFSET for COMPONENT_REF.
7954 (strip_offset): Convert offset to unsigned number.
7956 2013-10-27 Tom de Vries <tom@codesourcery.com>
7958 * cfgexpand.c (gimple_expand_cfg): Remove test for parm_birth_insn.
7959 Don't commit insertions after NOTE_INSN_FUNCTION_BEG.
7961 2013-10-27 Oleg Endo <olegendo@gcc.gnu.org>
7963 * config/sh/sh.c (MSW, LSW): Move and rename macros to...
7964 * config/sh/sh.h (SH_REG_MSW_OFFSET, SH_REG_LSW_OFFSET): ... here.
7965 (TARGET_BIG_ENDIAN): New macro.
7966 * config/sh/sh.md: Use it instead of !TARGET_LITTLE_ENDIAN.
7967 Use SH_REG_MSW_OFFSET and SH_REG_LSW_OFFSET.
7968 * config/sh/sh.c: Likewise.
7969 * config/sh/sh.h: Likewise.
7971 2013-10-27 Hans-Peter Nilsson <hp@axis.com>
7973 * config/cris/cris.c (cris_emit_trap_for_misalignment): Replace the
7974 removed PRED_MUDFLAP with PRED_NORETURN. Correct file-path in comment.
7976 2013-10-26 Oleg Endo <olegendo@gcc.gnu.org>
7978 * config/sh/sh.md (movmemsi): Remove empty constraints and predicates.
7980 (cmpstr_t, cmpstrsi): Fix formatting.
7982 2013-10-26 Oleg Endo <olegendo@gcc.gnu.org>
7985 * config/sh/predicates.md (general_movdst_operand): Allow reg+reg
7986 addressing, do not use general_operand for memory operands.
7988 2013-10-26 Vladimir Makarov <vmakarov@redhat.com>
7991 2013-10-25 Vladimir Makarov <vmakarov@redhat.com>
7992 * lra-spills.c (lra_final_code_change): Remove useless move insns.
7994 2013-10-26 Jeff Law <law@redhat.com>
7996 * predict.c (PRED_MUDFLAP): Remove.
7997 * targhooks.c (build_va_arg_indirect_ref): Remove mudflap support.
7999 * Makefile.in (C_COMMON_OBJS): Remove tree-mudflap.
8000 (OBJS): Remove tree-nomudflap.o
8001 (GTFILES): Remove tree-mudflap.c
8002 * builtins.c (expand_builtin_alloc): Remove mudflap support.
8003 * gcc.c (MFWRAP_SPEC, MFLIB_SPEC): Likewise.
8004 (mfwrap_spec, mflib_spec): Likewise.
8005 (cpp_unique_options, cc1_options, static_specs): Likewise.
8006 * gimplify (gimplify_vla_decl, build_va_arg_indirect_ref): Likewise.
8007 * passes.def: Likewise.
8008 * toplev.c (compile_file, process_options): Likewise.
8009 * tree-inline.c (copy_tree_r): Likewise.
8010 * tree-pass.,h (make_pass_mudflap_1, make_pass_mudflap_2): Likewise.
8011 * varasm.c (make_decl_rtl, make_decl_rtl_for_debug): Likewise.
8012 (build_constant_desc, output_constant_def_contents): Likewise.
8013 (categorize_decl_for_section): Likewise.
8014 * tree-mudflap.c: Removed.
8015 * tree-mudflap.h: Removed.
8016 * tree-nomudflap.c: Removed.
8017 * bfin/uclinux.h (MFWRAP_SPEC): Remove.
8018 * moxie/uclinux.h (MFWRAP_SPEC): Likewise.
8019 * rs6000/aix.h (MFWRAP_SPEC, MFLIB_SPEC): Likewise.
8020 * config/sol2.h (MFLIB_SPEC): Likewise.
8021 * doc/install.texi: Remove mudflap references.
8022 * doc/passes.texi: Similarly.
8023 * doc/sourcebuild.texi: Similarly.
8024 * doc/invoke.texi: Remove mudlfap related options.
8026 2013-10-25 Vladimir Makarov <vmakarov@redhat.com>
8028 PR rtl-optimization/58759
8029 * lra-constraints.c (lra_constraints): Remove wrong condition to
8030 remove insn setting up an equivalent pseudo.
8032 2013-10-25 Vladimir Makarov <vmakarov@redhat.com>
8034 * config/rs6000/rs6000-protos.h
8035 (rs6000_secondary_memory_needed_mode): New prototype.
8036 * config/rs6000/rs6000.c: Include ira.h.
8037 (TARGET_LRA_P): Redefine.
8038 (rs6000_legitimate_offset_address_p): Call
8039 legitimate_constant_pool_address_p in strict mode for LRA.
8040 (rs6000_legitimate_address_p): Ditto.
8041 (legitimate_lo_sum_address_p): Add code for LRA. Use lra_in_progress.
8042 (rs6000_emit_move): Add LRA version of code to generate load/store
8044 (rs6000_secondary_memory_needed_mode): New.
8045 (rs6000_alloc_sdmode_stack_slot): Do nothing for LRA.
8046 (rs6000_secondary_reload_class): Return NO_REGS for LRA for
8047 constants, memory, and FP registers.
8048 (rs6000_lra_p): New.
8049 * config/rs6000/rs6000.h (SECONDARY_MEMORY_NEEDED_MODE): New macro.
8050 * config/rs6000/rs6000.opt (mlra): New option.
8051 * lra-spills.c (lra_final_code_change): Remove useless move insns.
8053 2013-10-25 Yufeng Zhang <yufeng.zhang@arm.com>
8055 * tree-ssa-math-opts.c (convert_plusminus_to_widen): Call
8056 has_single_use () and not do the conversion if has_single_use ()
8057 returns false for the multiplication result.
8059 2013-10-25 David Malcolm <dmalcolm@redhat.com>
8061 * tree.h (EXCEPTIONAL_CLASS_P): Rename parameter from "CODE"
8062 to "NODE", since this works on a "tree", not an
8064 (CONSTANT_CLASS_P): Likewise.
8067 (INDIRECT_REF_P): Likewise.
8068 (REFERENCE_CLASS_P): Likewise.
8069 (COMPARISON_CLASS_P): Likewise.
8070 (UNARY_CLASS_P): Likewise.
8071 (BINARY_CLASS_P): Likewise.
8072 (STATEMENT_CLASS_P): Likewise.
8073 (VL_EXP_CLASS_P): Likewise.
8074 (EXPRESSION_CLASS_P): Likewise.
8075 (IS_TYPE_OR_DECL_P): Likewise.
8077 2013-10-25 Marc Glisse <marc.glisse@inria.fr>
8079 * tree-ssa-alias.c (ao_ref_init_from_ptr_and_size): Look for an
8080 ADDR_EXPR in the defining statement.
8082 2013-10-25 Richard Biener <rguenther@suse.de>
8084 PR tree-optimization/58626
8085 * tree-loop-distribution.c (enum rdg_dep_type): Remove
8086 anti_dd, output_dd and input_dd.
8087 (struct rdg_edge): Remove level and relation members.
8088 (RDGE_LEVEL, RDGE_RELATION): Remove.
8089 (dot_rdg_1): Adjust.
8090 (create_rdg_edge_for_ddr): Remove.
8091 (create_rdg_edges_for_scalar): Adjust.
8092 (create_edge_for_control_dependence): Likewise.
8093 (create_rdg_edges): Split into ...
8094 (create_rdg_flow_edges): ... this
8095 (create_rdg_cd_edges): ... and this.
8097 (build_rdg): Likewise, do not compute data dependences or
8099 (pg_add_dependence_edges): New function.
8101 (distribute_loop): First apply all non-dependence based
8102 partition mergings. Then compute dependences between partitions
8103 and merge and order partitions according to them.
8105 2013-10-25 Eric Botcazou <ebotcazou@adacore.com>
8107 PR rtl-optimization/58831
8108 * alias.c (init_alias_analysis): At the beginning of each iteration,
8109 set the reg_seen[N] bit if static_reg_base_value[N] is non-null.
8111 2013-10-25 Eric Botcazou <ebotcazou@adacore.com>
8113 * recog.c (search_ofs): New static variable moved from...
8114 (peep2_find_free_register): ...here.
8115 (peephole2_optimize): Initialize it.
8117 2013-10-25 Tobias Burnus <burnus@net-b.de>
8119 * doc/invoke.texi (fopenmp): Change supported OpenMP version to 4.0.
8121 2013-10-25 Uros Bizjak <ubizjak@gmail.com>
8123 * config/i386/i386.h (TARGET_MPX): New define.
8124 (TARGET_MPX_P): Ditto.
8126 2013-10-24 Ilya Enkovich <ilya.enkovich@intel.com>
8128 * config/i386/constraints.md (B): New.
8131 * config/i386/i386-c.c (ix86_target_macros_internal): Add __MPX__.
8132 * config/i386/i386-modes.def (BND32): New.
8134 * config/i386/i386-protos.h (ix86_bnd_prefixed_insn_p): New.
8135 * config/i386/i386.c (isa_opts): Add mmpx.
8136 (regclass_map): Add bound registers.
8137 (dbx_register_map): Likewise.
8138 (dbx64_register_map): Likewise.
8139 (svr4_dbx_register_map): Likewise.
8141 (ix86_option_override_internal): Support MPX ISA.
8142 (ix86_conditional_register_usage): Support bound registers.
8143 (print_reg): Likewise.
8144 (ix86_code_end): Add MPX bnd prefix.
8145 (output_set_got): Likewise.
8146 (ix86_output_call_insn): Likewise.
8147 (ix86_print_operand): Add '!' (MPX bnd) print prefix support.
8148 (ix86_print_operand_punct_valid_p): Likewise.
8149 (ix86_print_operand_address): Support UNSPEC_BNDMK_ADDR and
8151 (ix86_class_likely_spilled_p): Add bound regs support.
8152 (ix86_hard_regno_mode_ok): Likewise.
8153 (x86_order_regs_for_local_alloc): Likewise.
8154 (ix86_bnd_prefixed_insn_p): New.
8155 * config/i386/i386.h (FIRST_PSEUDO_REGISTER): Fix to new value.
8156 (FIXED_REGISTERS): Add bound registers.
8157 (CALL_USED_REGISTERS): Likewise.
8158 (REG_ALLOC_ORDER): Likewise.
8159 (HARD_REGNO_NREGS): Likewise.
8161 (VALID_BND_REG_MODE): New.
8162 (FIRST_BND_REG): New.
8163 (LAST_BND_REG): New.
8164 (reg_class): Add BND_REGS.
8165 (REG_CLASS_NAMES): Likewise.
8166 (REG_CLASS_CONTENTS): Likewise.
8168 (ANY_BND_REG_P): New.
8170 (HI_REGISTER_NAMES): Add bound registers.
8171 * config/i386/i386.md (UNSPEC_BNDMK): New.
8172 (UNSPEC_BNDMK_ADDR): New.
8173 (UNSPEC_BNDSTX): New.
8174 (UNSPEC_BNDLDX): New.
8175 (UNSPEC_BNDLDX_ADDR): New.
8176 (UNSPEC_BNDCL): New.
8177 (UNSPEC_BNDCU): New.
8178 (UNSPEC_BNDCN): New.
8179 (UNSPEC_MPX_FENCE): New.
8182 (type): Add mpxmov, mpxmk, mpxchk, mpxld, mpxst.
8183 (length_immediate): Likewise.
8184 (prefix_0f): Likewise.
8186 (prefix_rep): Check for bnd prefix.
8187 (length_nobnd): New.
8188 (length): Use length_nobnd if specified.
8193 (*jcc_1): Add bnd prefix and rename length attr to length_nobnd.
8196 (simple_return_internal): Likewise.
8197 (simple_return_pop_internal): Likewise.
8198 (*indirect_jump): Add MPX bnd prefix.
8199 (*tablejump_1): Likewise.
8200 (simple_return_internal_long): Likewise.
8201 (simple_return_indirect_internal): Likewise.
8205 (*mov<mode>_internal_mpx): New.
8206 (<mode>_<bndcheck>): New.
8207 (*<mode>_<bndcheck>): New.
8212 * config/i386/predicates.md (lea_address_operand): Rename to...
8213 (address_no_seg_operand): ... this.
8214 (address_mpx_no_base_operand): New.
8215 (address_mpx_no_index_operand): New.
8216 (bnd_mem_operator): New.
8217 * config/i386/i386.opt (mmpx): New.
8218 * doc/invoke.texi: Add documentation for the flags -mmpx, -mno-mpx.
8219 * doc/rtl.texi Add documentation for BND32mode and BND64mode.
8221 2013-10-24 Ilya Enkovich <ilya.enkovich@intel.com>
8223 * mode-classes.def (MODE_POINTER_BOUNDS): New.
8224 * tree.def (POINTER_BOUNDS_TYPE): New.
8225 * genmodes.c (complete_mode): Support MODE_POINTER_BOUNDS.
8226 (POINTER_BOUNDS_MODE): New.
8227 (make_pointer_bounds_mode): New.
8228 * machmode.h (POINTER_BOUNDS_MODE_P): New.
8229 * stor-layout.c (int_mode_for_mode): Support MODE_POINTER_BOUNDS.
8230 (layout_type): Support POINTER_BOUNDS_TYPE.
8231 * tree-pretty-print.c (dump_generic_node): Support POINTER_BOUNDS_TYPE.
8232 * tree.c (build_int_cst_wide): Support POINTER_BOUNDS_TYPE.
8233 (type_contains_placeholder_1): Likewise.
8234 * tree.h (POINTER_BOUNDS_TYPE_P): New.
8235 * varasm.c (output_constant): Support POINTER_BOUNDS_TYPE.
8236 * doc/rtl.texi (MODE_POINTER_BOUNDS): New.
8238 2013-10-24 Igor Shevlyakov <igor.shevlyakov@gmail.com>
8240 * expr.c (expand_expr_real_1): Use mode of memory reference rather than
8241 mode of address computation when calling memory_address_addr_space.
8243 2013-08-24 Richard Henderson <rth@twiddle.net>
8246 * optabs.c (maybe_emit_atomic_exchange): Use create_input_operand
8247 instead of create_convert_operand_to.
8248 (maybe_emit_sync_lock_test_and_set): Likewise.
8249 (expand_atomic_compare_and_swap): Likewise.
8250 (maybe_emit_compare_and_swap_exchange_loop): Don't convert_modes.
8252 2013-08-24 Sriraman Tallam <tmsriram@google.com>
8254 * cgraph.c (cgraph_fnver_htab): Move GTY((...)) to be before htab_t.
8255 Change param_is to use the struct and not the pointer to the struct.
8257 2013-10-24 Andrew MacLeod <amacleod@redhat.com>
8259 * builtins.c (dummy_object, gimplify_va_arg_expr): Move to gimplify.c.
8260 * gimplify.c (build_va_arg_indirect_ref, std_gimplify_va_arg_expr):
8261 Move to targhooks.c.
8262 (dummy_object, gimplify_va_arg_expr): Relocate from builtins.c.
8263 * targhooks.c (build_va_arg_indirect_ref, std_gimplify_va_arg_expr):
8264 Relocate from gimplify.c.
8265 * targhooks.h: Add 2 prototypes.
8266 * tree.h: Delete 2 prototypes.
8268 2013-10-24 Igor Shevlyakov <igor.shevlyakov@gmail.com>
8270 * tree-ssa-loop-ivopts.c (multiplier_allowed_in_address_p ): Check both
8271 [reg+mult*reg] and [mult*reg] to determine if multiplier is allowed.
8273 2013-10-24 Cong Hou <congh@google.com>
8275 * convert.c (convert_to_real): Guard those unsafe math function
8276 convertions with flag_unsafe_math_optimizations. Handle sqrt()
8279 2013-10-24 Markus Trippelsdorf <markus@trippelsdorf.de>
8282 * cgraph.c (cgraph_create_edge_1): Add indirect_unknown_callee
8284 (cgraph_create_edge): Use the new argument.
8285 (cgraph_create_indirect_edge): Likewise.
8287 2013-10-24 Joern Rennecke <joern.rennecke@embecosm.com>
8289 * config/arc/arc.c (arc_ccfsm_post_advance): Also handle
8291 (arc_ifcvt) <case 1 and 2>: Check that arc_ccfsm_post_advance
8292 changes statep->state.
8294 2013-10-24 Tobias Burnus <burnus@net-b.de>
8297 * tree-cfg.c (replace_loop_annotate): New function.
8298 (execute_build_cfg): Call it.
8299 * gimplify.c (gimple_boolify, gimplify_expr): Handle ANNOTATE_EXPR.
8300 * internal-fn.c (expand_ANNOTATE): New function.
8301 * internal-fn.def (ANNOTATE): Define as new internal function.
8302 * tree-core.h (tree_node_kind): Add annot_expr_ivdep_kind.
8303 * tree-pretty-print.c (dump_generic_node): Handle ANNOTATE_EXPR.
8304 * tree.def (ANNOTATE_EXPR): New DEFTREECODE.
8305 * doc/extend.texi (Pragmas): Document #pragma ivdep.
8306 * doc/generic.texi (Expressions): Document ANNOTATE_EXPR.
8308 2013-10-17 Ian Bolton <ian.bolton@arm.com>
8309 Marcus Shawcroft <marcus.shawcroft@arm.com>
8311 * config/aarch64/aarch64.c (aarch64_preferred_reload_class):
8312 Special case reload SP+C into none GENERAL_REGS.
8314 2013-10-24 Michael Matz <matz@suse.de>
8316 * gengtype.c (is_file_equal): Check that files will be same length.
8318 2013-10-25 Christian Bruel <christian.bruel@st.com>
8320 * config.gcc (sh-*): Add sh-mem.o to extra_obj.
8321 * config/sh/t-sh (sh-mem.o): New rule.
8322 * config/sh/sh-mem.cc (expand_block_move): Moved here.
8323 (sh_expand_cmpstr): New function.
8324 * config/sh/sh.c (force_into, expand_block_move): Move to sh-mem.c.
8325 * config/sh/sh-protos.h (sh_expand_cmpstr): Declare.
8326 * config/sh/sh.md (cmpstrsi, cmpstr_t): New patterns.
8327 (rotlhi3_8): Rename.
8329 2013-10-24 Jan-Benedict Glaw <jbglaw@lug-owl.de>
8331 * configure.ac (ZW_PROG_COMPILER_DEPENDENCIES): Use CXX instead of CC.
8332 * Makefile.in (CXXDEPMODE): Assign and change users.
8333 (CCDEPMODE): Delete.
8334 * configure: Regenerate.
8336 2013-10-23 David Malcolm <dmalcolm@redhat.com>
8338 * gengtype-parse.c (require_without_advance): New.
8339 (type): For GTY-marked types that are not GTY((user)), parse any
8340 base classes, requiring them to be single-inheritance, and not
8341 be templates. For non-GTY-marked types and GTY((user)),
8342 continue to skip over any C++ inheritance specification.
8343 * gengtype-state.c (state_writer::write_state_struct_type):
8344 Write base class of type (if any).
8345 (read_state_struct_type): Read base class of type (if any).
8346 * gengtype.c (new_structure): Add a "base_class" parameter.
8347 (create_optional_field_): Update for new parameter to new_structure.
8348 (adjust_field_rtx_def): Likewise.
8349 (adjust_field_tree_exp): Likewise.
8350 * gengtype.h (struct type): Add "base_class" field to the s
8352 (new_structure): Add "base" parameter.
8354 2013-10-23 Sriraman Tallam <tmsriram@google.com>
8357 * config/i386/i386.c (ix86_option_override_internal):
8358 Change TARGET_SSE2 to TARGET_SSE2_P (opts->...)
8359 (ix86_valid_target_attribute_tree):
8360 Change TARGET_64BIT to TARGET_64BIT_P (opts->...)
8361 Change TARGET_SSE to TARGET_SSE_P (opts->...)
8363 2013-10-23 Andrew MacLeod <amacleod@redhat.com>
8365 * tree-ssa-loop.h: Remove include files.
8366 * gengtype.c (open_base_files): Adjust include list for gtype-desc.c.
8367 * cfgloopmanip.c: Move required includes from tree-ssa-loop.h.
8368 * graphite-clast-to-gimple.c: Likewise.
8369 * graphite-scop-detection.c: Likewise.
8370 * graphite-sese-to-poly.c: Likewise.
8371 * ipa-inline-analysis.c: Likewise.
8372 * ipa-pure-const.c: Likewise.
8373 * loop-init.c: Likewise.
8374 * passes.c: Likewise.
8375 * predict.c: Likewise.
8376 * tree-cfg.c: Likewise.
8377 * tree-cfgcleanup.c: Likewise.
8378 * tree-chrec.c: Likewise.
8379 * tree-data-ref.c: Likewise.
8380 * tree-loop-distribution.c: Likewise.
8381 * tree-parloops.c: Likewise.
8382 * tree-predcom.c: Likewise.
8383 * tree-scalar-evolution.c: Likewise.
8384 * tree-ssa-address.c: Likewise.
8385 * tree-ssa.c: Likewise.
8386 * tree-ssa-dce.c: Likewise.
8387 * tree-ssa-loop.c: Likewise.
8388 * tree-ssa-loop-im.c: Likewise.
8389 * tree-ssa-loop-ivcanon.c: Likewise.
8390 * tree-ssa-loop-ivopts.c: Likewise.
8391 * tree-ssa-loop-manip.c: Likewise.
8392 * tree-ssa-loop-niter.c: Likewise.
8393 * tree-ssa-loop-prefetch.c: Likewise.
8394 * tree-ssa-loop-unswitch.c: Likewise.
8395 * tree-ssa-reassoc.c: Likewise.
8396 * tree-vect-data-refs.c: Likewise.
8397 * tree-vect-loop.c: Likewise.
8398 * tree-vect-loop-manip.c: Likewise.
8399 * tree-vectorizer.c: Likewise.
8400 * tree-vect-stmts.c: Likewise.
8401 * tree-vrp.c: Likewise.
8403 2013-10-23 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
8405 * config/rs6000/altivec.md (mulv8hi3): Adjust for little endian.
8407 2013-10-23 Jakub Jelinek <jakub@redhat.com>
8409 PR tree-optimization/58775
8410 PR tree-optimization/58791
8411 * tree-ssa-reassoc.c (reassoc_stmt_dominates_stmt_p): New function.
8412 (insert_stmt_after): Rewritten, don't move the stmt, but really
8414 (get_stmt_uid_with_default): Remove.
8415 (build_and_add_sum): Use insert_stmt_after and
8416 reassoc_stmt_dominates_stmt_p. Fix up uid if bb contains only labels.
8417 (update_range_test): Set uid on stmts added by
8418 force_gimple_operand_gsi. Don't immediately modify statements
8419 in inter-bb optimization, just update oe->op values.
8420 (optimize_range_tests): Return bool whether any changed have been made.
8421 (update_ops): New function.
8422 (struct inter_bb_range_test_entry): New type.
8423 (maybe_optimize_range_tests): Perform statement changes here.
8424 (not_dominated_by, appears_later_in_bb, get_def_stmt,
8425 ensure_ops_are_available): Remove.
8426 (find_insert_point): Rewritten.
8427 (rewrite_expr_tree): Remove MOVED argument, add CHANGED argument,
8428 return LHS of the (new resp. old) stmt. Don't call
8429 ensure_ops_are_available, don't reuse SSA_NAMEs, recurse first
8430 instead of last, move new stmt at the right place.
8431 (linearize_expr, repropagate_negates): Don't reuse SSA_NAMEs.
8432 (negate_value): Likewise. Set uids.
8433 (break_up_subtract_bb): Initialize uids.
8434 (reassociate_bb): Adjust rewrite_expr_tree caller.
8435 (do_reassoc): Don't call renumber_gimple_stmt_uids.
8437 2013-10-23 David Edelsohn <dje.gcc@gmail.com>
8440 * config/rs6000/rs6000.md (mulsi3_internal1 and splitter): Add
8441 TARGET_32BIT final condition.
8442 (mulsi3_internal2 and splitter): Same.
8444 2013-10-23 Jeff Law <law@redhat.com>
8446 * tree-ssa-threadedge.c (thread_across_edge): Do not allow threading
8447 through joiner blocks with abnormal outgoing edges.
8449 * tree-ssa-threadupdate.c (thread_block_1): Renamed from thread_block.
8450 Add parameter JOINERS, to allow/disallow threading through joiner
8452 (thread_block): New. Call thread_block_1.
8453 (mark_threaded_blocks): Remove code to filter out certain cases
8454 of threading through joiner blocks.
8455 (thread_through_all_blocks): Document how we can have a dangling
8456 edge AUX field and clear it.
8458 2013-10-23 Ian Lance Taylor <iant@google.com>
8460 * doc/invoke.texi (Option Summary): Remove -fno-default-inline.
8461 (C++ Dialect Options): Likewise.
8462 (Optimize Options): Likewise.
8464 2013-10-23 Tom de Vries <tom@codesourcery.com>
8466 PR tree-optimization/58805
8467 * tree-ssa-tail-merge.c (stmt_local_def): Add gimple_vdef check.
8469 2013-10-23 Jakub Jelinek <jakub@redhat.com>
8471 * tree-vect-patterns.c (vect_recog_divmod_pattern): Optimize
8472 sequence based on get_range_info returned range.
8474 2013-10-23 Andrew MacLeod <amacleod@redhat.com>
8476 * tree-ssa.h: Remove all #include's
8477 * gengtype.c (open_base_files): Adjust include list for gtype-desc.c.
8478 * alias.c: Move required includes from tree-ssa.h.
8480 * builtins.c: Likewise.
8481 * calls.c: Likewise.
8482 * cfgexpand.c: Likewise.
8483 * cfghooks.c: Likewise.
8484 * cfgloop.c: Likewise.
8485 * cfgloopmanip.c: Likewise.
8486 * cgraph.c: Likewise.
8487 * cgraphbuild.c: Likewise.
8488 * cgraphclones.c: Likewise.
8489 * cgraphunit.c: Likewise.
8491 * except.c: Likewise.
8493 * final.c: Likewise.
8494 * fold-const.c: Likewise.
8495 * ggc-page.c: Likewise.
8496 * gimple-builder.c: Likewise.
8497 * gimple-fold.c: Likewise.
8498 * gimple-iterator.c: Likewise.
8499 * gimple-low.c: Likewise.
8500 * gimple-pretty-print.c: Likewise.
8501 * gimple-ssa-strength-reduction.c: Likewise.
8502 * gimple-streamer-in.c: Likewise.
8503 * gimple-streamer-out.c: Likewise.
8504 * gimplify.c: Likewise.
8505 * graphite-blocking.c: Likewise.
8506 * graphite-clast-to-gimple.c: Likewise.
8507 * graphite-dependences.c: Likewise.
8508 * graphite-interchange.c: Likewise.
8509 * graphite-optimize-isl.c: Likewise.
8510 * graphite-poly.c: Likewise.
8511 * graphite-scop-detection.c: Likewise.
8512 * graphite-sese-to-poly.c: Likewise.
8513 * graphite.c: Likewise.
8514 * ipa-cp.c: Likewise.
8515 * ipa-inline-analysis.c: Likewise.
8516 * ipa-inline-transform.c: Likewise.
8517 * ipa-inline.c: Likewise.
8518 * ipa-prop.c: Likewise.
8519 * ipa-pure-const.c: Likewise.
8520 * ipa-reference.c: Likewise.
8521 * ipa-split.c: Likewise.
8522 * ipa-utils.c: Likewise.
8523 * loop-init.c: Likewise.
8524 * lto-cgraph.c: Likewise.
8525 * lto-section-in.c: Likewise.
8526 * lto-section-out.c: Likewise.
8527 * lto-streamer-in.c: Likewise.
8528 * lto-streamer-out.c: Likewise.
8529 * lto-streamer.c: Likewise.
8530 * omp-low.c: Likewise.
8531 * passes.c: Likewise.
8532 * predict.c: Likewise.
8533 * print-tree.c: Likewise.
8534 * profile.c: Likewise.
8536 * targhooks.c: Likewise.
8537 * tracer.c: Likewise.
8538 * trans-mem.c: Likewise.
8539 * tree-call-cdce.c: Likewise.
8540 * tree-cfg.c: Likewise.
8541 * tree-cfgcleanup.c: Likewise.
8542 * tree-chrec.c: Likewise.
8543 * tree-complex.c: Likewise.
8544 * tree-data-ref.c: Likewise.
8545 * tree-dfa.c: Likewise.
8546 * tree-eh.c: Likewise.
8547 * tree-emutls.c: Likewise.
8548 * tree-if-conv.c: Likewise.
8549 * tree-inline.c: Likewise.
8550 * tree-into-ssa.c: Likewise.
8551 * tree-loop-distribution.c: Likewise.
8552 * tree-mudflap.c: Likewise.
8553 * tree-nested.c: Likewise.
8554 * tree-nrv.c: Likewise.
8555 * tree-object-size.c: Likewise.
8556 * tree-outof-ssa.c: Likewise.
8557 * tree-parloops.c: Likewise.
8558 * tree-phinodes.c: Likewise.
8559 * tree-predcom.c: Likewise.
8560 * tree-pretty-print.c: Likewise.
8561 * tree-profile.c: Likewise.
8562 * tree-scalar-evolution.c: Likewise.
8563 * tree-sra.c: Likewise.
8564 * tree-ssa-address.c: Likewise.
8565 * tree-ssa-alias.c: Likewise.
8566 * tree-ssa-ccp.c: Likewise.
8567 * tree-ssa-coalesce.c: Likewise.
8568 * tree-ssa-copy.c: Likewise.
8569 * tree-ssa-copyrename.c: Likewise.
8570 * tree-ssa-dce.c: Likewise.
8571 * tree-ssa-dom.c: Likewise.
8572 * tree-ssa-dse.c: Likewise.
8573 * tree-ssa-forwprop.c: Likewise.
8574 * tree-ssa-ifcombine.c: Likewise.
8575 * tree-ssa-live.c: Likewise.
8576 * tree-ssa-loop-ch.c: Likewise.
8577 * tree-ssa-loop-im.c: Likewise.
8578 * tree-ssa-loop-ivcanon.c: Likewise.
8579 * tree-ssa-loop-ivopts.c: Likewise.
8580 * tree-ssa-loop-manip.c: Likewise.
8581 * tree-ssa-loop-niter.c: Likewise.
8582 * tree-ssa-loop-prefetch.c: Likewise.
8583 * tree-ssa-loop-unswitch.c: Likewise.
8584 * tree-ssa-loop.c: Likewise.
8585 * tree-ssa-math-opts.c: Likewise.
8586 * tree-ssa-operands.c: Likewise.
8587 * tree-ssa-phiopt.c: Likewise.
8588 * tree-ssa-phiprop.c: Likewise.
8589 * tree-ssa-pre.c: Likewise.
8590 * tree-ssa-propagate.c: Likewise.
8591 * tree-ssa-reassoc.c: Likewise.
8592 * tree-ssa-sccvn.c: Likewise.
8593 * tree-ssa-sink.c: Likewise.
8594 * tree-ssa-strlen.c: Likewise.
8595 * tree-ssa-structalias.c: Likewise.
8596 * tree-ssa-tail-merge.c: Likewise.
8597 * tree-ssa-ter.c: Likewise.
8598 * tree-ssa-threadedge.c: Likewise.
8599 * tree-ssa-threadupdate.c: Likewise.
8600 * tree-ssa-uncprop.c: Likewise.
8601 * tree-ssa-uninit.c: Likewise.
8602 * tree-ssa.c: Likewise.
8603 * tree-ssanames.c: Likewise.
8604 * tree-stdarg.c: Likewise.
8605 * tree-streamer-in.c: Likewise.
8606 * tree-switch-conversion.c: Likewise.
8607 * tree-tailcall.c: Likewise.
8608 * tree-vect-data-refs.c: Likewise.
8609 * tree-vect-generic.c: Likewise.
8610 * tree-vect-loop-manip.c: Likewise.
8611 * tree-vect-loop.c: Likewise.
8612 * tree-vect-patterns.c: Likewise.
8613 * tree-vect-slp.c: Likewise.
8614 * tree-vect-stmts.c: Likewise.
8615 * tree-vectorizer.c: Likewise.
8616 * tree-vrp.c: Likewise.
8619 * value-prof.c: Likewise.
8620 * var-tracking.c: Likewise.
8621 * varpool.c: Likewise.
8622 * vtable-verify.c: Likewise.
8624 2013-10-23 Jan-Benedict Glaw <jbglaw@lug-owl.de>
8626 * config/tilegx/tilegx.c: Include "tree.h".
8628 2013-10-23 Jakub Jelinek <jakub@redhat.com>
8630 * gimple-pretty-print.c (dump_ssaname_info): Always print "# " before
8631 the info, not after it.
8632 (gump_gimple_phi): Add COMMENT argument, if true, print "# " after
8633 dump_ssaname_info call.
8634 (pp_gimple_stmt_1): Adjust caller.
8635 (dump_phi_nodes): Likewise. Don't print "# " here.
8637 2013-10-22 Jan Hubicka <jh@suse.cz>
8639 * i386.h (TARGET_MISALIGNED_MOVE_STRING_PROLOGUES_EPILOGUES): New
8641 * x86-tune.def (TARGET_MISALIGNED_MOVE_STRING_PROLOGUES): Define it.
8642 * i386.c (expand_small_movmem_or_setmem): New function.
8643 (expand_set_or_movmem_prologue_epilogue_by_misaligned_moves): New
8645 (alg_usable_p): Add support for value ranges; cleanup.
8646 (ix86_expand_set_or_movmem): Add support for misaligned moves.
8648 2013-10-22 Sterling Augustine <saugustine@google.com>
8650 * doc/invoke.texi: Document -ggnu-pubnames.
8651 * common.opt: Add new option -ggnu-pubnames and modify -gpubnames
8653 * dwarf2out.c: Include gdb/gdb-index.h.
8654 (DEBUG_PUBNAMES_SECTION, DEBUG_PUBTYPES_SECTION): Handle
8655 debug_generate_pub_sections.
8656 (is_java, output_pubtables, output_pubname): New functions.
8657 (include_pubname_in_output): Handle debug_generate_pub_sections at
8659 (size_of_pubnames): Use new local space_for_flags based on
8660 debug_generate_pub_sections.
8661 (output_pubnames): Unify pubnames and pubtypes output logic.
8662 Genericize comments. Call output_pubname.
8663 (dwarf2out_finish): Move logic to output_pubnames and call it.
8665 2013-10-22 Uros Bizjak <ubizjak@gmail.com>
8668 * config/i386/i386.c (put_condition_code) <case GTU, case LEU>:
8669 Remove CCCmode handling.
8670 <case LTU>: Return 'c' suffix for CCCmode.
8671 <case GEU>: Return 'nc' suffix for CCCmode.
8672 (ix86_cc_mode) <case GTU, case LEU>: Do not generate overflow checks.
8673 * config/i386/i386.md (*sub<mode>3_cconly_overflow): Remove.
8674 (*sub<mode>3_cc_overflow): Ditto.
8675 (*subsi3_zext_cc_overflow): Ditto.
8677 2013-10-22 Steve Ellcey <sellcey@mips.com>
8679 * config/mips/mips.c (mips_rtx_costs): Fix cost estimate for nor
8680 (AND (NOT OP1) (NOT OP2)).
8682 2013-10-22 Bill Schmidt <wschmidt@vnet.ibm.com>
8684 * config/rs6000/rs6000.c (altivec_expand_vec_perm_const): Reverse
8685 meaning of merge-high and merge-low masks for little endian; avoid
8686 use of vector-pack masks for little endian for mismatched modes.
8688 2013-10-22 Jan-Benedict Glaw <jbglaw@lug-owl.de>
8690 * config/tilepro/tilepro.c: Include "tree.h".
8692 2013-10-22 Andreas Schwab <schwab@suse.de>
8694 * config/m68k/m68k.c (notice_update_cc): Handle register conflict
8697 2013-10-22 Paolo Carlini <paolo.carlini@oracle.com>
8699 * doc/contrib.texi ([Fran@,{c}ois Dumont], [Tim Shen],
8700 [Ed Smith-Rowland]): New entries.
8701 ([Stephen M. Webb]): Update.
8703 2013-10-22 Andrew MacLeod <amacleod@redhat.com>
8705 * tree-ssa-ter.h: Remove duplicate copy of file contents.
8707 2013-10-21 Marek Polacek <polacek@redhat.com>
8710 * fold-const.c (fold_range_test): Return 0 if the type is not
8713 2013-10-21 Richard Sandiford <rdsandiford@googlemail.com>
8715 * system.h: Move hwint.h include further down.
8716 * hwint.h (sext_hwi, zext_hwi): Define unconditionally. Add
8717 gcc_checking_asserts.
8718 * hwint.c (sext_hwi, zext_hwi): Delete ENABLE_CHECKING versions.
8720 2013-10-21 Bernd Edlinger <bernd.edlinger@hotmail.de>
8722 Fix volatile issues in optimize_bit_field_compare.
8723 * fold-const.c (optimize_bit_field_compare): Bail out if
8724 lvolatilep or rvolatilep.
8726 2013-10-21 Bernd Edlinger <bernd.edlinger@hotmail.de>
8728 Fix DECL_BIT_FIELD depencency on flag_strict_volatile_bitfields
8729 and get_inner_reference returning different pmode for non-volatile
8730 bit-field members dependent on flag_strict_volatile_bitfields.
8731 * stor-layout.c (layout_decl): Remove special handling of
8732 flag_strict_volatile_bitfields.
8733 * expr.c (get_inner_reference): Don't use DECL_BIT_FIELD
8734 if flag_strict_volatile_bitfields > 0 and TREE_THIS_VOLATILE.
8736 2013-10-21 Paulo Matos <pmatos@broadcom.com>
8738 * ipa-inline.c (edge_badness): Cap edge->count at max_count for badness
8741 2013-10-21 Jeff Law <law@redhat.com>
8743 * tree-ssa-threadedge.c (thread_through_normal_block): New
8744 argument VISITED. Remove VISISTED as a local variable. When we
8745 have a threadable jump, verify the destination of the jump has not
8747 (thread_across_edge): Allocate VISITED bitmap once at function
8748 scope and use it throughout. Make sure to set appropriate bits in
8749 VISITED for E (start of jump thread path).
8750 * tree-ssa-threadupdate.c (mark_threaded_blocks): Reject threading
8751 through a joiner if any edge on the path has a recorded jump thread.
8753 2013-10-21 Ian Lance Taylor <iant@google.com>
8755 * doc/invoke.texi (Optimize Options): For -fno-toplevel-reorder,
8756 don't imply that attributes can solve all problems.
8757 (Directory Options): Fix typo.
8759 2013-10-21 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
8761 * config/arm/arm.c (cortexa9_extra_costs): Update mult costs for
8762 extend and extend_add.
8764 2013-10-21 Richard Biener <rguenther@suse.de>
8766 PR tree-optimization/58794
8767 * fold-const.c (operand_equal_p): Compare FIELD_DECL operand
8768 of COMPONENT_REFs with OEP_CONSTANT_ADDRESS_OF left in place.
8770 2013-10-21 Richard Biener <rguenther@suse.de>
8773 * fold-const.c (fold_binary_loc): Fold ((T) (X /[ex] C)) * C
8774 to (T) X for sign-changing conversions (or no conversion).
8776 2013-10-20 Uros Bizjak <ubizjak@gmail.com>
8778 * config/i386/i386.md (kxnor<mode>): Add FLAGS_REG clobber.
8780 2013-10-20 Jan Hubicka <jh@suse.cz>
8782 * config/i386/i386-tune.def: Add comment; organize into categories
8784 2013-10-21 Michael Zolotukhin <michael.v.zolotukhin@gmail.com>
8786 * config/i386/i386.c (expand_set_or_movmem_via_loop): Add issetmem
8787 argument. Update function comment.
8788 (expand_set_or_movmem_via_rep): New function combining
8789 expand_movmem_via_rep_mov and expand_setmem_via_rep_stos.
8790 (expand_movmem_via_rep_mov): Remove.
8791 expand_setmem_via_rep_stos): Remove.
8792 (expand_movmem_epilogue): Update calls correspondingly.
8793 (expand_setmem_epilogue_via_loop): Likewise.
8795 (expand_setmem_epilogue): Add VEC_VALUE argument, refactor.
8796 (expand_set_or_movmem_prologue): New function combining
8797 expand_movmem_prologue and expand_setmem_prologue.
8798 (expand_movmem_prologue): Remove.
8799 (expand_setmem_prologue): Remove.
8800 (expand_set_or_movmem_constant_prologue): New function combining
8801 expand_constant_movmem_prologue and expand_constant_setmem_prologue.
8802 (expand_constant_movmem_prologue): Remove.
8803 (expand_constant_setmem_prologue): Remove.
8804 (promote_duplicated_reg): Allow vector-const0 value.
8805 (ix86_expand_set_or_movmem): New function combining ix86_expand_movmem
8806 and ix86_expand_setmem.
8807 (ix86_expand_movmem): Call ix86_expand_set_or_movmem.
8808 (ix86_expand_setmem): Call ix86_expand_set_or_movmem.
8810 2013-10-21 Diego Novillo <dnovillo@google.com>
8812 * asan.c: Include tree.h
8813 * bb-reorder.c: Likewise.
8814 * cfgcleanup.c: Likewise.
8815 * cfgloopmanip.c: Likewise.
8816 * data-streamer-in.c: Likewise.
8817 * data-streamer-out.c: Likewise.
8818 * data-streamer.c: Likewise.
8819 * dwarf2cfi.c: Likewise.
8820 * graphite-blocking.c: Likewise.
8821 * graphite-clast-to-gimple.c: Likewise.
8822 * graphite-dependences.c: Likewise.
8823 * graphite-interchange.c: Likewise.
8824 * graphite-optimize-isl.c: Likewise.
8825 * graphite-poly.c: Likewise.
8826 * graphite-scop-detection.c: Likewise.
8827 * graphite-sese-to-poly.c: Likewise.
8828 * graphite.c: Likewise.
8829 * ipa-devirt.c: Likewise.
8830 * ipa-profile.c: Likewise.
8833 * loop-init.c: Likewise.
8834 * loop-unroll.c: Likewise.
8835 * lower-subreg.c: Likewise.
8836 * lto/lto-object.c: Likewise.
8837 * recog.c: Likewise.
8838 * reginfo.c: Likewise.
8839 * tree-loop-distribution.c: Likewise.
8840 * tree-parloops.c: Likewise.
8841 * tree-ssa-strlen.c: Likewise.
8842 * tree-streamer.c: Likewise.
8843 * value-prof.c: Likewise.
8844 * target-globals.c: Likewise.
8845 * expr.h: Include tree-core.h instead of tree.h.
8846 * gimple.h: Likewise.
8847 * ipa-prop.h: Likewise.
8848 * ipa-utils.h: Likewise.
8849 * lto-streamer.h: Likewise.
8850 * streamer-hooks.h: Likewise.
8851 * ipa-reference.h: Include cgraph.h instead of tree.h.
8852 * cgraph.h: Include basic-block.h instead of tree.h.
8853 * tree-streamer.h: Do not include tree.h.
8854 * genattrtab.c (write_header): Generate inclusion of tree.h.
8855 * genautomata.c (main): Likewise.
8856 * genemit.c: Likewise.
8857 * genopinit.c: Likewise.
8858 * genoutput.c (output_prologue): Likewise.
8859 * genpeep.c: Likewise.
8861 2013-10-20 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
8863 * config/rs6000/altivec.md (vec_unpacku_hi_v16qi): Adjust for
8865 (vec_unpacku_hi_v8hi): Likewise.
8866 (vec_unpacku_lo_v16qi): Likewise.
8867 (vec_unpacku_lo_v8hi): Likewise.
8869 2013-10-20 Jan Hubicka <jh@suse.cz>
8871 * config/i386/x86-tune.def (X86_TUNE_SLOW_IMUL_IMM32_MEM,
8872 X86_TUNE_SLOW_IMUL_IMM8): Keep enabled only for K8 and AMDFAM10.
8873 (X86_TUNE_USE_VECTOR_FP_CONVERTS): Disable for generic.
8875 2013-10-20 Richard Sandiford <rdsandiford@googlemail.com>
8877 * config/mips/mips.h (ISA_HAS_WSBH): Define.
8878 * config/mips/mips.md (UNSPEC_WSBH, UNSPEC_DSBH, UNSPEC_DSHD): New
8880 (bswaphi2, bswapsi2, bswapdi2, wsbh, dsbh, dshd): New patterns.
8882 2013-10-19 John David Anglin <danglin@gcc.gnu.org>
8885 * system.h: Undef m_slot.
8887 2013-10-19 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
8889 * config/rs6000/rs6000.c (vspltis_constant): Make sure we check
8890 all elements for both endian flavors.
8892 2013-10-19 Uros Bizjak <ubizjak@gmail.com>
8895 * config/i386/i386.c (ix86_function_value_regno): Add DX_REG,
8896 ST1_REG and XMM1_REG for 32bit and 64bit targets. Also add DI_REG
8897 and SI_REG for 64bit SYSV ABI targets.
8899 2013-10-19 Uros Bizjak <ubizjak@gmail.com>
8901 * mode-switching.c (create_pre_exit): Rename maybe_builtin_apply
8902 to multi_reg_return. Clarify that we are skipping USEs of multiple
8903 return registers. Use bool type where appropriate.
8905 2013-10-18 Jan Hubicka <jh@suse.cz>
8907 * config/i386/i386.h (ACCUMULATE_OUTGOING_ARGS): Disable accumulation
8909 * x86-tune.def (X86_TUNE_USE_LEAVE): Update comment.
8910 (X86_TUNE_PUSH_MEMORY): Likewise.
8911 (X86_TUNE_AVX256_UNALIGNED_LOAD_OPTIMAL,
8912 X86_TUNE_AVX256_UNALIGNED_STORE_OPTIMAL): New.
8913 (X86_TUNE_ACCUMULATE_OUTGOING_ARGS, X86_TUNE_ALWAYS_FANCY_MATH_387):
8915 * i386.c (x86_accumulate_outgoing_args, x86_arch_always_fancy_math_387,
8916 x86_avx256_split_unaligned_load, x86_avx256_split_unaligned_store):
8918 (ix86_option_override_internal): Update to use tune features instead
8921 2013-10-18 Cong Hou <congh@google.com>
8923 PR tree-optimization/58508
8924 * tree-vect-loop-manip.c (vect_loop_versioning): Hoist loop invariant
8925 statement that contains data refs with zero-step.
8927 2013-10-18 Andrew MacLeod <amacleod@redhat.com>
8929 * tree-ssa.h: Don't include gimple-low.h, tree-ssa-address.h,
8930 sbitmap.h, tree-ssa-threadedge.h, tree-ssa-dom.h and tree-cfgcleanup.h.
8931 * gimple-low.c (gimple_check_call_arg,
8932 gimple_check_call_matching_types): Move to cgraph.c.
8933 * gimple-low.h: Remove prototype.
8934 * cgraph.c: (gimple_check_call_arg, gimple_check_call_matching_types):
8935 Relocate from gimple-low.c.
8936 * cgraph.h: Add prototype. Don't include basic-block.h.
8937 * gimplify.c: Add gimple-low to include list.
8938 * omp-low.c: Add gimple-low and tree-cfgcleanup.h to include list.
8939 * tree-eh.c: Add gimple-low to include list.
8940 * tree-nested.c: Likewise.
8941 * cfgexpand.c: Add tree-ssa-address.h to include list.
8943 * gimple-fold.c: Likewise.
8944 * gimple-ssa-strength-reduction.c: Likewise.
8945 * trans-mem.c: Likewise.
8946 * tree-mudflap.c: Likewise.
8947 * tree-ssa-loop-ivopts.c: Likewise.
8948 * tree-ssa-dom.c: Include tree-ssa-threadedge.h and tree-ssa-dom.h.
8949 (degenerate_phi_result): Move to tree-phinodes.c.
8950 * tree-ssa-loop-ch.c: Include tree-ssa-threadedge.h.
8951 * tree-ssa-threadedge.c: Likewise.
8952 * tree-vrp.c: Likewise.
8953 * tree-phinodes.c (degenerate_phi_result): Relocate here.
8954 * tree-ssa-dom.h (degenerate_phi_result): Remove Prototype.
8955 * tree-phinodes.h (degenerate_phi_result): Add prototype.
8956 * tree-ssa-copy.c: Include tree-ssa-dom.h.
8957 * tree-ssa-forwprop.c: Likewise.
8958 * tree-cfgcleanup.c (execute_cleanup_cfg_post_optimizing,
8959 pass_data_cleanup_cfg_post_optimizing,
8960 make_pass_cleanup_cfg_post_optimizing): Relocate from tree-optimize.c.
8961 * tree-optimize.c: Delete File.
8962 * graphite.c: Include tree-cfgcleanup.h.
8963 * passes.c: Likewise.
8964 * tree-cfg.c: Likewise.
8965 * tree-profile.c: Likewise.
8966 * tree-ssa-dse.c: Likewise.
8967 * tree-ssa-loop-ivcanon.c: Likewise.
8968 * tree-switch-conversion.c: Don't include tree-ssa-operands.h.
8969 * tree-outof-ssa.c: Include sbitmap.h.
8970 * tree-ssa-live.c: Likewise.
8971 * tree-ssa-propagate.c: Likewise.
8972 * tree-ssa-structalias.c: Likewise.
8973 * tree-stdarg.c: Likewise.
8974 * Makefile.in (OBJS): Delete tree-optimize.o.
8975 * basic-block.h (gcov_type, gcov_type_unsigned): Move to coretypes.h.
8976 * coretypes.h (gcov_type, gcov_type_unsigned): Relocate here.
8977 * varasm.c: Include basic-block.h.
8978 * cfgloop.h: Include function.h instead of basic-block.h
8979 (bb_loop_depth): Move to cfgloop.c.
8980 * cfgloop.c (bb_loop_depth): Relocate from cfgloop.h.
8982 2013-10-18 Teresa Johnson <tejohnson@google.com>
8984 * predict.c (probably_never_executed): Compare frequency-based
8985 count to number of training runs.
8986 * params.def (UNLIKELY_BB_COUNT_FRACTION): New parameter.
8988 2013-10-18 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
8990 * config/arm/arm.c (cortexa9_extra_costs): New table.
8991 (arm_cortex_a9_tune): Use cortexa9_extra_costs.
8993 2013-10-18 Jeff Law <law@redhat.com>
8995 * tree-ssa-threadupdate.c: Do not include "tm.h" or "tm_p.h".
8997 * tree-ssa-threadupdate.c: Include "dbgcnt.h".
8998 (register_jump_thread): Add "registered_jump_thread" debug
9000 * dbgcnt.def (registered_jump_thread): New debug counter.
9002 2013-10-18 Andrew MacLeod <amacleod@redhat.com>
9004 * config/rs6000/rs6000.c: Include cgraph.h.
9006 2013-10-18 Teresa Johnson <tejohnson@google.com>
9008 * tree-ssa-tail-merge.c (replace_block_by): Update edge
9009 weights during merging.
9011 2013-10-18 Andrew MacLeod <amacleod@redhat.com>
9013 * tree-cfg.h: Rename from tree-flow.h. Remove #includes.
9014 * tree-ssa.h: Relocate required #includes from tree-cfg.h.
9015 * tree-ssa-operands.h: Remove prototype.
9016 * tree-ssa-operands.c (virtual_operand_p): Move to gimple.c.
9017 * gimple.c (virtual_operand_p): Relocate from gimple.c.
9018 * gimple.h: Add prototype.
9019 * gimple-ssa.h: Include tree-ssa-operands.h.
9020 * tree-dump.c: Add tree-cfg.h to include list.
9021 * tree-ssa-alias.c: Add ipa-reference.h to include list.
9022 * config/alpha/alpha.c: Include gimple-ssa.h instead of tree-flow.h.
9023 * config/i386/i386.c: Don't include tree-flow.h.
9024 * config/rs6000/rs6000.c: Likewise.
9026 2013-10-18 Jan-Benedict Glaw <jbglaw@lug-owl.de>
9028 * config/frv/frv.c (frv_init_cumulative_args): Fix wrong cast.
9030 2013-10-18 Richard Biener <rguenther@suse.de>
9032 * stor-layout.c (layout_type): Do not change TYPE_PRECISION
9033 or TYPE_UNSIGNED of integral types.
9034 (set_min_and_max_values_for_integral_type): Leave TYPE_MIN/MAX_VALUE
9035 NULL_TREE for zero-precision integral types.
9037 2013-10-18 James Greenhalgh <james.greenhalgh@arm.com>
9039 * config/aarch64/arm_neon.h
9040 (vcvt<ds>_n_<fsu><32,64>_<fsu><32,64>): Correct argument types.
9042 2013-10-17 Sriraman Tallam <tmsriram@google.com>
9045 * opth-gen.awk: Define target_flags_explicit.
9047 2013-10-17 Michael Meissner <meissner@linux.vnet.ibm.com>
9049 * config/rs6000/rs6000.c (enum rs6000_reload_reg_type): Add new
9050 fields to the reg_addr array that describes the valid addressing
9051 mode for any register, general purpose registers, floating point
9052 registers, and Altivec registers.
9053 (FIRST_RELOAD_REG_CLASS): Likewise.
9054 (LAST_RELOAD_REG_CLASS): Likewise.
9055 (struct reload_reg_map_type): Likewise.
9056 (reload_reg_map_type): Likewise.
9057 (RELOAD_REG_VALID): Likewise.
9058 (RELOAD_REG_MULTIPLE): Likewise.
9059 (RELOAD_REG_INDEXED): Likewise.
9060 (RELOAD_REG_OFFSET): Likewise.
9061 (RELOAD_REG_PRE_INCDEC): Likewise.
9062 (RELOAD_REG_PRE_MODIFY): Likewise.
9063 (reg_addr): Likewise.
9064 (mode_supports_pre_incdec_p): New helper functions to say whether
9065 a given mode supports PRE_INC, PRE_DEC, and PRE_MODIFY.
9066 (mode_supports_pre_modify_p): Likewise.
9067 (rs6000_debug_vector_unit): Rearrange the -mdebug=reg output to
9068 print the valid address mode bits for each mode.
9069 (rs6000_debug_print_mode): Likewise.
9070 (rs6000_debug_reg_global): Likewise.
9071 (rs6000_setup_reg_addr_masks): New function to set up the address
9072 mask bits for each type.
9073 (rs6000_init_hard_regno_mode_ok): Use memset to clear arrays.
9074 Call rs6000_setup_reg_addr_masks to set up the address mask bits.
9075 (rs6000_legitimate_address_p): Use mode_supports_pre_incdec_p and
9076 mode_supports_pre_modify_p to determine if PRE_INC, PRE_DEC, and
9077 PRE_MODIFY are supported.
9078 (rs6000_output_move_128bit): Change to use {src,dest}_vmx_p for altivec
9079 registers, instead of {src,dest}_av_p.
9080 (rs6000_print_options_internal): Tweak the debug output slightly.
9082 2013-10-17 Uros Bizjak <ubizjak@gmail.com>
9084 * config/i386/sse.md (*vec_widen_smult_even_v8si): Remove
9087 2013-10-17 Andrew MacLeod <amacleod@redhat.com>
9089 * tree-flow.h (struct omp_region): Move to omp-low.c.
9090 Remove omp_ prototypes and variables.
9091 * gimple.h (omp_reduction_init): Move prototype to omp-low.h.
9092 (copy_var_decl): Relocate prototype from tree-flow.h.
9093 * gimple.c (copy_var_decl): Relocate from omp-low.c.
9094 * tree.h: Move prototype to omp-low.h.
9095 * omp-low.h: New File. Relocate prototypes here.
9096 * omp-low.c (struct omp_region): Make local here.
9097 (root_omp_region): Make static.
9098 (copy_var_decl) Move to gimple.c.
9099 (new_omp_region): Make static.
9100 (make_gimple_omp_edges): New. Refactored from tree-cfg.c make_edges.
9101 * tree-cfg.c: Include omp-low.h.
9102 (make_edges): Factor out OMP specific bits to make_gimple_omp_edges.
9103 * gimplify.c: Include omp-low.h.
9104 * tree-parloops.c: Likewise.
9106 2013-10-17 Uros Bizjak <ubizjak@gmail.com>
9108 * config/i386/i386.c (ix86_fixup_binary_operands): When both source
9109 operands are in memory, prefer to force non-matched operand 1 to
9112 2013-10-17 Michael Meissner <meissner@linux.vnet.ibm.com>
9115 * config/rs6000/rs6000.c (rs6000_legitimate_address_p): Only
9116 restrict TImode addresses to single indirect registers if both
9117 -mquad-memory and -mvsx-timode are used.
9118 (rs6000_output_move_128bit): Use quad_load_store_p to determine if
9119 we should emit load/store quad. Remove using %y for quad memory
9122 * config/rs6000/rs6000.md (mov<mode>_ppc64, TI/PTImode): Add
9123 constraints to allow load/store quad on machines where TImode is
9124 not allowed in VSX registers. Use 'n' instead of 'F' constraint
9125 for TImode to load integer constants.
9127 2013-10-17 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
9129 * config/aarch64/aarch64.c (aarch64_print_operand): Handle 'c'.
9131 2013-10-17 Marcus Shawcroft <marcus.shawcroft@arm.com>
9133 * config/aarch64/aarch64.c (aarch64_preferred_reload_class): Adjust
9134 handling of STACK_REG.
9136 2013-10-17 Richard Biener <rguenther@suse.de>
9138 PR tree-optimization/58143
9139 * tree-ssa-loop-im.c (arith_code_with_undefined_signed_overflow):
9141 (rewrite_to_defined_overflow): Likewise.
9142 (move_computations_dom_walker::before_dom): Rewrite stmts
9143 with undefined signed overflow that are not always executed
9144 into unsigned arithmetic.
9146 2013-10-16 Michael Meissner <meissner@linux.vnet.ibm.com>
9149 * config/rs6000/rs6000.opt (rs6000_isa_flags_explicit): Move the
9150 explicit isa flag to be an options variable, instead of using
9151 global_options_set. Remove define from rs6000.h.
9152 * config/rs6000/rs6000.h (rs6000_isa_flags_explicit): Likewise.
9154 * config/rs6000/rs6000.c (rs6000_option_override_internal):
9155 Initialize rs6000_isa_flags_explicit.
9156 (rs6000_function_specific_save): Add gcc_options* parameter, so
9157 that the powerpc builds after the 2013-10-15 changes.
9158 (rs6000_function_specific_restore): Likewise.
9160 2013-10-16 DJ Delorie <dj@redhat.com>
9162 * config/rl78/rl78.c (rl78_alloc_address_registers_macax): Verify
9163 op is a REG before checking REGNO.
9164 (rl78_alloc_physical_registers): Verify pattern is a SET before
9167 2013-10-16 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
9169 * config/rs6000/vector.md (vec_unpacks_hi_v4sf): Correct for
9171 (vec_unpacks_lo_v4sf): Likewise.
9172 (vec_unpacks_float_hi_v4si): Likewise.
9173 (vec_unpacks_float_lo_v4si): Likewise.
9174 (vec_unpacku_float_hi_v4si): Likewise.
9175 (vec_unpacku_float_lo_v4si): Likewise.
9177 2013-10-16 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
9179 * config/rs6000/vsx.md (vsx_concat_<mode>): Adjust output for LE.
9180 (vsx_concat_v2sf): Likewise.
9182 2013-10-16 James Greenhalgh <james.greenhalgh@arm.com>
9184 * config/aarch64/aarch64.md
9185 (*mov<mode>_aarch64): Fix output template for DUP (element) Scalar.
9187 2013-10-16 Andrew MacLeod <amacleod@redhat.com>
9189 PR tree-optimization/58697
9190 * cfgloop.c (get_estimated_loop_iterations_int): Rename from
9191 estimated_loop_iterations_int.
9192 (max_stmt_executions_int): Call get_max_loop_iterations_int.
9193 (get_max_loop_iterations_int): New. HWINT version of
9194 get_max_loop_iterations.
9195 * cfgloop.h: Add prototypes.
9196 * loop-iv.c (find_simple_exit): call get_estimated_loop_iterations_int.
9197 * loop-unroll.c (decide_peel_once_rolling): Call
9198 get_estimated_loop_iterations_int.
9199 * tree-ssa-loop-niter.c (estimated_loop_iterations_int): Add back.
9200 * tree-ssa-loop-niter.h: Tweak prototypes.
9202 2013-10-16 David Malcolm <dmalcolm@redhat.com>
9204 * gengtype-parse.c (struct_field_seq): Ignore access-control
9205 keywords ("public:" etc).
9207 2013-10-16 Marcus Shawcroft <marcus.shawcroft@arm.com>
9209 * config/aarch64/aarch64.c (aarch64_regno_regclass): Classify
9210 FRAME_POINTER_REGNUM and ARG_POINTER_REGNUM as POINTER_REGS.
9212 2013-10-16 Yvan Roux <yvan.roux@linaro.org>
9214 * config/arm/arm.opt (mlra): New option.
9215 * config/arm/arm.c (arm_lra_p): New function.
9216 (TARGET_LRA_P): Define.
9218 2013-10-16 Paulo Matos <pmatos@broadcom.com>
9220 * tree-core.h (tree_code_name): Remove.
9221 * tree.h (get_tree_code_name): New prototype.
9222 * tree.c (tree_code_name): Make static.
9223 (get_tree_code_name): New function.
9224 (dump_tree_statistics, tree_check_failed, tree_not_check_failed,
9225 tree_class_check_failed, tree_range_check_failed,
9226 tree_not_class_check_failed, omp_clause_check_failed,
9227 tree_contains_struct_check_failed, tree_operand_check_failed): Use new
9228 wrapper get_tree_code_name instead of calling tree_code_name directly.
9229 * tree-vrp.c (dump_asserts_for): Likewise.
9230 * tree-dump.c (dequeue_and_dump): Likewise.
9231 * tree-pretty-print.c (do_niy, dump_generic_node): Likewise.
9232 * tree-pretty-print.h (pp_unsupported_tree): Likewise.
9233 * lto-streamer-out.c (lto_write_tree, DFS_write_tree): Likewise.
9234 * tree-ssa-dom.c (print_expr_hash_elt): Likewise.
9235 * gimple-pretty-print.c (dump_unary_rhs, dump_binary_rhs,
9236 dump_ternary_rhs, dump_gimple_assign, dump_gimple_cond,
9237 dump_gimple_omp_for): Likewise.
9238 * tree-vect-data-refs.c (vect_create_data_ref_ptr): Likewise.
9239 * tree-ssa-pre.c (print_pre_expr): Likewise.
9240 * ipa-prop.c (ipa_print_node_jump_functions_for_edge): Likewise.
9241 * print-tree.c (print_node_brief, print_node): Likewise.
9242 * gimple.c (gimple_check_failed): Likewise.
9243 * lto-streamer.c (lto_tag_name, print_lto_report): Likewise.
9244 * config/frv/frv.c (frv_init_cumulative_args): Likewise.
9245 * config/mep/mep.c (mep_validate_vliw): Likewise.
9246 * config/iq2000/iq2000.c (init_cumulative_args): Likewise.
9247 * config/rs6000/rs6000.c (init_cumulative_args): Likewise.
9249 2013-10-16 Ganesh Gopalasubramanian <Ganesh.Gopalasubramanian@amd.com>
9251 * config/i386/i386.c (ix86_option_override_internal): Enable FMA4
9254 2013-10-16 Hans-Peter Nilsson <hp@axis.com>
9256 * config/cris/t-elfmulti (MULTILIB_OPTIONS, MULTILIB_DIRNAMES)
9257 (MULTILIB_MATCHES): Add multilib for -march=v8.
9259 2013-10-15 Sriraman Tallam <tmsriram@google.com>
9262 * optc-save-gen.awk: Add extra parameter to the save and restore
9264 * opth-gen.awk: Generate new TARGET_* macros to accept a parameter.
9265 * tree.c (build_optimization_node): New parameter. Add extra parameter
9266 to call to cl_optimization_save.
9267 (build_target_option_node): New parameter. Add extra parameter
9268 to call to cl_target_option_save.
9269 * tree.h (build_optimization_node): New parameter.
9270 (build_target_option_node): New parameter.
9271 * c-family/c-common.c (handle_optimize_attribute): Fix calls to
9272 build_optimization_node and build_target_option_node.
9273 * c-family/c-pragma.c (handle_pragma_optimize): Ditto.
9274 (handle_pragma_push_options): Ditto.
9275 * toplev.c (process_options): Ditto.
9276 * opts.c (init_options_struct): Check for opts_set non-null.
9277 * target.def (target_option.save): New parameter.
9278 (target_option.restore): New parameter.
9279 * tm.texi: Generate.
9280 * config/i386/i386-c.c (ix86_target_macros_internal): Ditto.
9281 (ix86_pragma_target_parse): Ditto.
9282 * config/i386/i386-protos.h (ix86_valid_target_attribute_tree): New
9284 * config/rs6000/rs6000.c (rs6000_option_override_internal): Fix calls
9285 to build_optimization_node and build_target_option_node.
9286 (rs6000_valid_attribute_p): Ditto.
9287 (rs6000_pragma_target_parse): Ditto.
9288 * config/i386/i386.opt (x_ix86_target_flags_explicit): New TargetSave
9290 * config/i386/i386.h:
9291 TARGET_64BIT_P: New Macro
9292 TARGET_MMX_P: New Macro.
9293 TARGET_3DNOW_P: New Macro.
9294 TARGET_3DNOW_A_P: New Macro.
9295 TARGET_SSE_P: New Macro.
9296 TARGET_SSE2_P: New Macro.
9297 TARGET_SSE3_P: New Macro.
9298 TARGET_SSSE3_P: New Macro.
9299 TARGET_SSE4_1_P: New Macro.
9300 TARGET_SSE4_2_P: New Macro.
9301 TARGET_AVX_P: New Macro.
9302 TARGET_AVX2_P: New Macro.
9303 TARGET_AVX512F_P: New Macro.
9304 TARGET_AVX512PF_P: New Macro.
9305 TARGET_AVX512ER_P: New Macro.
9306 TARGET_AVX512CD_P: New Macro.
9307 TARGET_FMA_P: New Macro.
9308 TARGET_SSE4A_P: New Macro.
9309 TARGET_FMA4_P: New Macro.
9310 TARGET_XOP_P: New Macro.
9311 TARGET_LWP_P: New Macro.
9312 TARGET_ABM_P: New Macro.
9313 TARGET_BMI_P: New Macro.
9314 TARGET_BMI2_P: New Macro.
9315 TARGET_LZCNT_P: New Macro.
9316 TARGET_TBM_P: New Macro.
9317 TARGET_POPCNT_P: New Macro.
9318 TARGET_SAHF_P: New Macro.
9319 TARGET_MOVBE_P: New Macro.
9320 TARGET_CRC32_P: New Macro.
9321 TARGET_AES_P: New Macro.
9322 TARGET_PCLMUL_P: New Macro.
9323 TARGET_CMPXCHG16B_P: New Macro.
9324 TARGET_FSGSBASE_P: New Macro.
9325 TARGET_RDRND_P: New Macro.
9326 TARGET_F16C_P: New Macro.
9327 TARGET_RTM_P: New Macro.
9328 TARGET_HLE_P: New Macro.
9329 TARGET_RDSEED_P: New Macro.
9330 TARGET_PRFCHW_P: New Macro.
9331 TARGET_ADX_P: New Macro.
9332 TARGET_FXSR_P: New Macro.
9333 TARGET_XSAVE_P: New Macro.
9334 TARGET_XSAVEOPT_P: New Macro.
9335 TARGET_LP64_P: New Macro.
9336 TARGET_X32_P: New Macro.
9337 TARGET_FPMATH_DEFAULT_P: New Macro.
9338 TARGET_FLOAT_RETURNS_IN_80387_P: New Macro.
9339 * config/i386/i386.c (ix86_option_override_internal): New parameters.
9341 Change ix86_tune_string to access opts->x_ix86_tune_string.
9342 Change ix86_isa_flags to access opts->x_ix86_isa_flags.
9343 Change ix86_arch_string to access opts->x_ix86_arch_string.
9344 Change ix86_stringop_alg to access opts->x_ix86_stringop_alg.
9345 Change ix86_pmode to access opts->x_ix86_pmode.
9346 Change ix86_abi to access opts->x_ix86_abi.
9347 Change ix86_cmodel to access opts->x_ix86_cmodel.
9348 Change ix86_asm_dialect to access opts->x_ix86_asm_dialect.
9349 Change ix86_isa_flags_explicit to access
9350 opts->x_ix86_isa_flags_explicit.
9351 Change ix86_dump_tunes to access opts->x_ix86_dump_tunes.
9352 Change ix86_regparm to access opts->x_ix86_regparm.
9353 Change ix86_branch_cost to access opts->x_ix86_branch_cost.
9354 Change ix86_preferred_stack_boundary_arg to access
9355 opts->x_ix86_preferred_stack_boundary_arg.
9356 Change ix86_force_align_arg_pointer to access
9357 opts->x_ix86_force_align_arg_pointer.
9358 Change ix86_incoming_stack_boundar_arg to access
9359 opts->x_ix86_incoming_stack_boundar_arg.
9360 Change ix86_fpmath to access opts->x_ix86_fpmath.
9361 Change ix86_veclibabi_type to access opts->x_ix86_veclibabi_type.
9362 Change ix86_recip_name to access opts->x_ix86_recip_name.
9363 Change ix86_stack_protector_guard to access
9364 opts->x_ix86_stack_protector_guard.
9365 Change ix86_tune_memcpy_strategy to access
9366 opts->x_ix86_tune_memcpy_strategy.
9367 Change ix86_tune_memset_strategy to access
9368 opts->x_ix86_tune_memset_strategy.
9369 Change global_options to access opts.
9370 Change global_options_set to access opts_set.
9371 Change TARGET_64BIT to TARGET_64BIT_P (opts->...).
9372 Change TARGET_MMX to TARGET_MMX_P (opts->...).
9373 Change TARGET_3DNOW to TARGET_3DNOW_P (opts->...).
9374 Change TARGET_3DNOW_A to TARGET_3DNOW_A_P (opts->...).
9375 Change TARGET_SSE to TARGET_SSE_P (opts->...).
9376 Change TARGET_SSE2 to TARGET_SSE2_P (opts->...).
9377 Change TARGET_SSE3 to TARGET_SSE3_P (opts->...).
9378 Change TARGET_SSSE3 to TARGET_SSSE3_P (opts->...).
9379 Change TARGET_SSE4_1 to TARGET_SSE4_1_P (opts->...).
9380 Change TARGET_SSE4_2 to TARGET_SSE4_2_P (opts->...).
9381 Change TARGET_AVX to TARGET_AVX_P (opts->...).
9382 Change TARGET_AVX2 to TARGET_AVX2_P (opts->...).
9383 Change TARGET_AVX512F to TARGET_AVX512F_P (opts->...).
9384 Change TARGET_AVX512PF to TARGET_AVX512PF_P (opts->...).
9385 Change TARGET_AVX512ER to TARGET_AVX512ER_P (opts->...).
9386 Change TARGET_AVX512CD to TARGET_AVX512CD_P (opts->...).
9387 Change TARGET_FMA to TARGET_FMA_P (opts->...).
9388 Change TARGET_SSE4A to TARGET_SSE4A_P (opts->...).
9389 Change TARGET_FMA4 to TARGET_FMA4_P (opts->...).
9390 Change TARGET_XOP to TARGET_XOP_P (opts->...).
9391 Change TARGET_LWP to TARGET_LWP_P (opts->...).
9392 Change TARGET_ABM to TARGET_ABM_P (opts->...).
9393 Change TARGET_BMI to TARGET_BMI_P (opts->...).
9394 Change TARGET_BMI2 to TARGET_BMI2_P (opts->...).
9395 Change TARGET_LZCNT to TARGET_LZCNT_P (opts->...).
9396 Change TARGET_TBM to TARGET_TBM_P (opts->...).
9397 Change TARGET_POPCNT to TARGET_POPCNT_P (opts->...).
9398 Change TARGET_SAHF to TARGET_SAHF_P (opts->...).
9399 Change TARGET_MOVBE to TARGET_MOVBE_P (opts->...).
9400 Change TARGET_CRC32 to TARGET_CRC32_P (opts->...).
9401 Change TARGET_AES to TARGET_AES_P (opts->...).
9402 Change TARGET_PCLMUL to TARGET_PCLMUL_P (opts->...).
9403 Change TARGET_CMPXCHG16B to TARGET_CMPXCHG16B_P (opts->...).
9404 Change TARGET_FSGSBASE to TARGET_FSGSBASE_P (opts->...).
9405 Change TARGET_RDRND to TARGET_RDRND_P (opts->...).
9406 Change TARGET_F16C to TARGET_F16C_P (opts->...).
9407 Change TARGET_RTM to TARGET_RTM_P (opts->...).
9408 Change TARGET_HLE to TARGET_HLE_P (opts->...).
9409 Change TARGET_RDSEED to TARGET_RDSEED_P (opts->...).
9410 Change TARGET_PRFCHW to TARGET_PRFCHW_P (opts->...).
9411 Change TARGET_ADX to TARGET_ADX_P (opts->...).
9412 Change TARGET_FXSR to TARGET_FXSR_P (opts->...).
9413 Change TARGET_XSAVE to TARGET_XSAVE_P (opts->...).
9414 Change TARGET_XSAVEOPT to TARGET_XSAVEOPT_P (opts->...).
9415 Change TARGET_LP64 to TARGET_LP64_P (opts->...).
9416 Change TARGET_X32 to TARGET_X32_P (opts->...).
9417 Change TARGET_FPMATH_DEFAULT to TARGET_FPMATH_DEFAULT_P (opts->...).
9418 Change TARGET_FLOAT_RETURNS_IN_80387 to
9419 TARGET_FLOAT_RETURNS_IN_80387_P (opts->...).
9420 (ix86_function_specific_save): New parameter. Use opts-> fields
9421 to replace global fields.
9422 (ix86_function_specific_restore): Ditto.
9423 (ix86_valid_target_attribute_inner_p): New parameters.
9425 Fix call to ix86_handle_option and set_option.
9426 (ix86_valid_target_attribute_tree): New parameters.
9427 Change global_options to access opts.
9428 Change global_options_set to access opts_set.
9429 Fix call to ix86_valid_target_attribute_inner_p.
9430 Change ix86_tune_string to access opts->x_ix86_tune_string.
9431 Change ix86_arch_string to access opts->x_ix86_arch_string.
9432 Change ix86_fpmath to access opts->x_ix86_fpmath
9433 Fix call to ix86_option_override_internal.
9434 Fix call to ix86_add_new_builtins.
9435 Fix calls to build_optimization_node and build_target_option_node.
9436 (ix86_valid_target_attribute_p): Remove access to global_options.
9437 Use new gcc_options structure func_options.
9438 Fix call to ix86_valid_target_attribute_tree.
9439 Fix call to build_optimization_node.
9440 (get_builtin_code_for_version): Fix call to
9441 ix86_valid_target_attribute_tree.
9443 2013-10-15 David Malcolm <dmalcolm@redhat.com>
9445 * Makefile.in (PICFLAG): New.
9446 (enable_host_shared): New.
9447 (INTERNAL_CFLAGS): Use PICFLAG.
9448 (LIBIBERTY): Use pic build of libiberty.a if configured with
9449 --enable-host-shared.
9450 * configure.ac: Add --enable-host-shared, setting up new
9452 * configure: Regenerate.
9453 * doc/install.texi (--enable-shared): Add note contrasting it with ...
9454 (--enable-host-shared): New option.
9456 2013-10-15 Richard Biener <rguenther@suse.de>
9458 * tree-tailcall.c (find_tail_calls): Don't use tail-call recursion
9459 for built-in functions.
9461 2013-10-15 Zhenqiang Chen <zhenqiang.chen@arm.com>
9463 * tree-ssa-reassoc.c: Include rtl.h and tm_p.h.
9464 (optimize_range_tests_1): New function,
9465 extracted from optimize_range_tests.
9466 (optimize_range_tests_xor): Similarly.
9467 (optimize_range_tests_diff): New function.
9468 (optimize_range_tests): Use optimize_range_tests_1.
9470 2013-10-15 Cong Hou <congh@google.com>
9472 * tree-vect-loop.c (vect_is_simple_reduction_1): Relax the
9473 requirement of the reduction pattern so that one operand of the
9474 reduction operation can come from outside of the loop.
9476 2013-10-15 James Greenhalgh <james.greenhalgh@arm.com>
9478 * config/arm/neon-schedgen.ml: Remove.
9479 * config/arm/cortex-a9-neon.md: Remove comment regarding
9482 2013-10-15 James Greenhalgh <james.greenhalgh@arm.com>
9484 * config/arm/types: Remove old neon types.
9486 2013-10-15 James Greenhalgh <james.greenhalgh@arm.com>
9488 * config/arm/cortex-a7.md
9489 (cortex_a7_neon_type): New.
9490 (cortex_a7_neon_mul): Update for new types.
9491 (cortex_a7_neon_mla): Likewise.
9492 (cortex_a7_neon): Likewise.
9494 2013-10-15 James Greenhalgh <james.greenhalgh@arm.com>
9496 * config/arm/cortex-a15-neon.md
9497 (cortex_a15_neon_type): New,
9499 (cortex_a15_neon_int_1): Remove.
9500 (cortex_a15_neon_int_2): Likewise.
9501 (cortex_a15_neon_int_3): Likewise.
9502 (cortex_a15_neon_int_4): Likewise.
9503 (cortex_a15_neon_int_5): Likewise.
9504 (cortex_a15_neon_vqneg_vqabs): Likewise.
9505 (cortex_a15_neon_vmov): Likewise.
9506 (cortex_a15_neon_vaba): Likewise.
9507 (cortex_a15_neon_vaba_qqq): Likewise.
9508 (cortex_a15_neon_mul_ddd_8_16_qdd_16_8_long_32_16_long): Likewise.
9509 (cortex_a15_neon_mul_qqq_8_16_32_ddd_32): Likewise.
9510 (cortex_a15_neon_mul_qdd_64_32_long_qqd_16_ddd_32_scalar_64_32_long_scalar):
9512 (cortex_a15_neon_mla_ddd_8_16_qdd_16_8_long_32_16_long): Likewise.
9513 (cortex_a15_neon_mla_qqq_8_16): Likewise.
9514 (cortex_a15_neon_mla_ddd_32_qqd_16_ddd_32_scalar): Likewise.
9515 (cortex_a15_neon_mla_qqq_32_qqd_32_scalar): Likewise.
9516 (cortex_a15_neon_mul_ddd_16_scalar_32_16_long_scalar): Likewise.
9517 (cortex_a15_neon_mul_qqd_32_scalar): Likewise.
9518 (cortex_a15_neon_mla_ddd_16_scalar_qdd_32_16_long_scalar): Likewise.
9519 (cortex_a15_neon_shift_1): Likewise.
9520 (cortex_a15_neon_shift_2): Likewise.
9521 (cortex_a15_neon_shift_3): Likewise.
9522 (cortex_a15_neon_vshl_ddd): Likewise.
9523 (cortex_a15_neon_vqshl_vrshl_vqrshl_qqq): Likewise.
9524 (cortex_a15_neon_vsra_vrsra): Likewise.
9525 (cortex_a15_neon_fp_vmla_ddd_scalar): Likewise.
9526 (cortex_a15_neon_fp_vmla_qqq_scalar): Likewise.
9527 (cortex_a15_neon_bp_3cycle): Likewise.
9528 (cortex_a15_neon_ldm_2): Likewise.
9529 (cortex_a15_neon_stm_2): Likewise.
9530 (cortex_a15_neon_mcr): Likewise.
9531 (cortex_a15_neon_mrc): Likewise.
9532 (cortex_a15_neon_fp_vadd_ddd_vabs_dd): Likewise.
9533 (cortex_a15_neon_fp_vadd_qqq_vabs_qq): Likewise.
9534 (cortex_a15_neon_fp_vmul_ddd): Likewise.
9535 (cortex_a15_neon_fp_vmul_qqd): Likewise.
9536 (cortex_a15_neon_fp_vmla_ddd): Likewise.
9537 (cortex_a15_neon_fp_vmla_qqq): Likewise.
9538 (cortex_a15_neon_fp_vmla_ddd_scalar): Likewise.
9539 (cortex_a15_neon_fp_vmla_qqq_scalar): Likewise.
9540 (cortex_a15_neon_fp_vrecps_vrsqrts_ddd): Likewise.
9541 (cortex_a15_neon_fp_vrecps_vrsqrts_qqq): Likewise.
9542 (cortex_a15_neon_bp_simple): Likewise.
9543 (cortex_a15_neon_bp_2cycle): Likewise.
9544 (cortex_a15_neon_bp_3cycle): Likewise.
9545 (cortex_a15_neon_vld1_1_2_regs): Likewise.
9546 (cortex_a15_neon_vld1_3_4_regs): Likewise.
9547 (cortex_a15_neon_vld2_2_regs_vld1_vld2_all_lanes): Likewise.
9548 (cortex_a15_neon_vld2_4_regs): Likewise.
9549 (cortex_a15_neon_vld3_vld4): Likewise.
9550 (cortex_a15_neon_vst1_1_2_regs_vst2_2_regs): Likewise.
9551 (cortex_a15_neon_vst1_3_4_regs): Likewise.
9552 (cortex_a15_neon_vst2_4_regs_vst3_vst4): Rename to...
9553 (cortex_a15_neon_vst2_4_regs_vst3): ...This, update for new attributes.
9554 (cortex_a15_neon_vst3_vst4): Rename to...
9555 (cortex_a15_neon_vst4): This, update for new attributes.
9556 (cortex_a15_neon_vld1_vld2_lane): Update for new attributes.
9557 (cortex_a15_neon_vld3_vld4_lane): Likewise.
9558 (cortex_a15_neon_vst1_vst2_lane): Likewise.
9559 (cortex_a15_neon_vst3_vst4_lane): Likewise.
9560 (cortex_a15_neon_vld3_vld4_all_lanes): Likewise.
9561 (cortex_a15_neon_ldm_2): Likewise.
9562 (cortex_a15_neon_stm_2): Likewise.
9563 (cortex_a15_neon_mcr): Likewise.
9564 (cortex_a15_neon_mcr_2_mcrr): Likewise.
9565 (cortex_a15_neon_mrc): Likewise.
9566 (cortex_a15_neon_mrrc): Likewise.
9568 (cortex_a15_neon_abd): New.
9569 (cortex_a15_neon_abd_q): Likewise.
9570 (cortex_a15_neon_aba): Likewise.
9571 (cortex_a15_neon_aba_q): Likewise.
9572 (cortex_a15_neon_acc): Likewise.
9573 (cortex_a15_neon_acc_q): Likewise.
9574 (cortex_a15_neon_arith_basic): Likewise.
9575 (cortex_a15_neon_arith_complex): Likewise.
9576 (cortex_a15_neon_multiply): Likewise.
9577 (cortex_a15_neon_multiply_q): Likewise.
9578 (cortex_a15_neon_mla): Likewise.
9579 (cortex_a15_neon_mla_q): Likewise.
9580 (cortex_a15_neon_sat_mla_long): Likewise.
9581 (cortex_a15_neon_shift_acc): Likewise.
9582 (cortex_a15_neon_shift_imm_basic): Likewise.
9583 (cortex_a15_neon_shift_imm_complex): Likewise.
9584 (cortex_a15_neon_shift_reg_basic): Likewise.
9585 (cortex_a15_neon_shift_reg_basic_q): Likewise.
9586 (cortex_a15_neon_shift_reg_complex): Likewise.
9587 (cortex_a15_neon_shift_reg_complex_q): Likewise.
9588 (cortex_a15_neon_fp_negabs): Likewise
9589 (cortex_a15_neon_fp_arith): Likewise
9590 (cortex_a15_neon_fp_arith_q): Likewise
9591 (cortex_a15_neon_fp_cvt_int): Likewise
9592 (cortex_a15_neon_fp_cvt_int_q): Likewise
9593 (cortex_a15_neon_fp_cvt_16): Likewise
9594 (cortex_a15_neon_fp_mul): Likewise
9595 (cortex_a15_neon_fp_mul_q): Likewise
9596 (cortex_a15_neon_fp_mla): Likewise
9597 (cortex_a15_neon_fp_mla_q): Likewise
9598 (cortex_a15_neon_fp_recps_rsqrte): Likewise.
9599 (cortex_a15_neon_fp_recps_rsqrte_q): Likewise.
9600 (cortex_a15_neon_bitops): Likewise.
9601 (cortex_a15_neon_bitops_q): Likewise.
9602 (cortex_a15_neon_from_gp): Likewise.
9603 (cortex_a15_neon_from_gp_q): Likewise.
9604 (cortex_a15_neon_tbl3_tbl4): Likewise.
9605 (cortex_a15_neon_zip_q): Likewise.
9606 (cortex_a15_neon_to_gp): Likewise.
9607 (cortex_a15_neon_load_a): Likewise.
9608 (cortex_a15_neon_load_b): Likewise.
9609 (cortex_a15_neon_load_c): Likewise.
9610 (cortex_a15_neon_load_d): Likewise.
9611 (cortex_a15_neon_load_e): Likewise.
9612 (cortex_a15_neon_load_f): Likewise.
9613 (cortex_a15_neon_store_a): Likewise.
9614 (cortex_a15_neon_store_b): Likewise.
9615 (cortex_a15_neon_store_c): Likewise.
9616 (cortex_a15_neon_store_d): Likewise.
9617 (cortex_a15_neon_store_e): Likewise.
9618 (cortex_a15_neon_store_f): Likewise.
9619 (cortex_a15_neon_store_g): Likewise.
9620 (cortex_a15_neon_store_h): Likewise.
9621 (cortex_a15_vfp_to_from_gp): Likewise.
9623 2013-10-15 James Greenhalgh <james.greenhalgh@arm.com>
9625 * config/arm/cortex-a9-neon.md (cortex_a9_neon_type): New.
9627 (cortex_a9_neon_vshl_ddd): Remove.
9628 (cortex_a9_neon_vst3_vst4): Likewise.
9629 (cortex_a9_neon_vld3_vld4_all_lanes): Likewise.
9631 (cortex_a9_neon_bit_ops_q): New.
9633 (cortex_a9_neon_int_1): Use cortex_a8_neon_type.
9634 (cortex_a9_neon_int_2): Likewise.
9635 (cortex_a9_neon_int_3): Likewise.
9636 (cortex_a9_neon_int_4): Likewise.
9637 (cortex_a9_neon_int_5): Likewise.
9638 (cortex_a9_neon_vqneg_vqabs): Likewise.
9639 (cortex_a9_neon_vmov): Likewise.
9640 (cortex_a9_neon_vaba): Likewise.
9641 (cortex_a9_neon_vaba_qqq): Likewise.
9642 (cortex_a9_neon_shift_1): Likewise.
9643 (cortex_a9_neon_shift_2): Likewise.
9644 (cortex_a9_neon_shift_3): Likewise.
9645 (cortex_a9_neon_vqshl_vrshl_vqrshl_qqq): Likewise.
9646 (cortex_a9_neon_vsra_vrsra): Likewise.
9647 (cortex_a9_neon_mul_ddd_8_16_qdd_16_8_long_32_16_long): Likewise.
9648 (cortex_a9_neon_mul_qqq_8_16_32_ddd_32): Likewise.
9649 (cortex_a9_neon_mul_qdd_64_32_long_qqd_16_ddd_32_scalar_64_32_long_scalar):
9651 (cortex_a9_neon_mla_ddd_8_16_qdd_16_8_long_32_16_long): Likewise.
9652 (cortex_a9_neon_mla_qqq_8_16): Likewise.
9653 (cortex_a9_neon_mla_ddd_32_qqd_16_ddd_32_scalar_qdd_64_32_long_scalar_qdd_64_32_long):
9655 (cortex_a9_neon_mla_qqq_32_qqd_32_scalar): Likewise.
9656 (cortex_a9_neon_mul_ddd_16_scalar_32_16_long_scalar): Likewise.
9657 (cortex_a9_neon_mul_qqd_32_scalar): Likewise.
9658 (cortex_a9_neon_mla_ddd_16_scalar_qdd_32_16_long_scalar): Likewise.
9659 (cortex_a9_neon_fp_vadd_ddd_vabs_dd): Likewise.
9660 (cortex_a9_neon_fp_vadd_qqq_vabs_qq): Likewise.
9661 (cortex_a9_neon_fp_vsum): Likewise.
9662 (cortex_a9_neon_fp_vmul_ddd): Likewise.
9663 (cortex_a9_neon_fp_vmul_qqd): Likewise.
9664 (cortex_a9_neon_fp_vmla_ddd): Likewise.
9665 (cortex_a9_neon_fp_vmla_qqq): Likewise.
9666 (cortex_a9_neon_fp_vmla_ddd_scalar): Likewise.
9667 (cortex_a9_neon_fp_vmla_qqq_scalar): Likewise.
9668 (cortex_a9_neon_fp_vrecps_vrsqrts_ddd): Likewise.
9669 (cortex_a9_neon_fp_vrecps_vrsqrts_qqq): Likewise.
9670 (cortex_a9_neon_bp_simple): Likewise.
9671 (cortex_a9_neon_bp_2cycle): Likewise.
9672 (cortex_a9_neon_bp_3cycle): Likewise.
9673 (cortex_a9_neon_ldr): Likewise.
9674 (cortex_a9_neon_str): Likewise.
9675 (cortex_a9_neon_vld1_1_2_regs): Likewise.
9676 (cortex_a9_neon_vld1_3_4_regs): Likewise.
9677 (cortex_a9_neon_vld2_2_regs_vld1_vld2_all_lanes): Likewise.
9678 (cortex_a9_neon_vld2_4_regs): Likewise.
9679 (cortex_a9_neon_vld3_vld4): Likewise.
9680 (cortex_a9_neon_vld1_vld2_lane): Likewise.
9681 (cortex_a9_neon_vld3_vld4_lane): Likewise.
9682 (cortex_a9_neon_vld3_vld4_all_lanes): Likewise.
9683 (cortex_a9_neon_vst1_1_2_regs_vst2_2_regs): Likewise.
9684 (cortex_a9_neon_vst1_3_4_regs): Likewise.
9685 (cortex_a9_neon_vst2_4_regs_vst3_vst4): Likewise.
9686 (cortex_a9_neon_vst1_vst2_lane): Likewise.
9687 (cortex_a9_neon_vst3_vst4_lane): Likewise.
9688 (cortex_a9_neon_mcr): Likewise.
9689 (cortex_a9_neon_mcr_2_mcrr): Likewise.
9690 (cortex_a9_neon_mrc): Likewise.
9691 (cortex_a9_neon_mrrc): Likewise.
9693 2013-10-15 James Greenhalgh <james.greenhalgh@arm.com>
9695 * config/arm/cortex-a8-neon.md (cortex_a8_neon_type): New.
9697 (cortex_a8_neon_vshl_ddd): Remove.
9698 (cortex_a8_neon_vst3_vst4): Likewise.
9699 (cortex_a8_neon_vld3_vld4_all_lanes): Likewise.
9701 (cortex_a8_neon_bit_ops_q): New.
9703 (cortex_a8_neon_int_1): Use cortex_a8_neon_type.
9704 (cortex_a8_neon_int_2): Likewise..
9705 (cortex_a8_neon_int_3): Likewise.
9706 (cortex_a8_neon_int_5): Likewise.
9707 (cortex_a8_neon_vqneg_vqabs): Likewise.
9708 (cortex_a8_neon_int_4): Likewise.
9709 (cortex_a8_neon_vaba): Likewise.
9710 (cortex_a8_neon_vaba_qqq): Likewise.
9711 (cortex_a8_neon_shift_1): Likewise.
9712 (cortex_a8_neon_shift_2): Likewise.
9713 (cortex_a8_neon_shift_3): Likewise.
9714 (cortex_a8_neon_vqshl_vrshl_vqrshl_qqq): Likewise.
9715 (cortex_a8_neon_vsra_vrsra): Likewise.
9716 (cortex_a8_neon_mul_ddd_8_16_qdd_16_8_long_32_16_long): Likewise.
9717 (cortex_a8_neon_mul_qqq_8_16_32_ddd_32): Likewise.
9718 (cortex_a8_neon_mul_qdd_64_32_long_qqd_16_ddd_32_scalar_64_32_long_scalar):
9720 (cortex_a8_neon_mla_ddd_8_16_qdd_16_8_long_32_16_long): Likewise.
9721 (cortex_a8_neon_mla_qqq_8_16): Likewise.
9722 (cortex_a8_neon_mla_ddd_32_qqd_16_ddd_32_scalar_qdd_64_32_long_scalar_qdd_64_32_long):
9724 (cortex_a8_neon_mla_qqq_32_qqd_32_scalar): Likewise.
9725 (cortex_a8_neon_mul_ddd_16_scalar_32_16_long_scalar): Likewise.
9726 (cortex_a8_neon_mul_qqd_32_scalar): Likewise.
9727 (cortex_a8_neon_mla_ddd_16_scalar_qdd_32_16_long_scalar): Likewise.
9728 (cortex_a8_neon_fp_vadd_ddd_vabs_dd): Likewise.
9729 (cortex_a8_neon_fp_vadd_qqq_vabs_qq): Likewise.
9730 (cortex_a8_neon_fp_vsum): Likewise.
9731 (cortex_a8_neon_fp_vmul_ddd): Likewise.
9732 (cortex_a8_neon_fp_vmul_qqd): Likewise.
9733 (cortex_a8_neon_fp_vmla_ddd): Likewise.
9734 (cortex_a8_neon_fp_vmla_qqq): Likewise.
9735 (cortex_a8_neon_fp_vmla_ddd_scalar): Likewise.
9736 (cortex_a8_neon_fp_vmla_qqq_scalar): Likewise.
9737 (cortex_a8_neon_fp_vrecps_vrsqrts_ddd): Likewise.
9738 (cortex_a8_neon_fp_vrecps_vrsqrts_qqq): Likewise.
9739 (cortex_a8_neon_bp_simple): Likewise.
9740 (cortex_a8_neon_bp_2cycle): Likewise.
9741 (cortex_a8_neon_bp_3cycle): Likewise.
9742 (cortex_a8_neon_ldr): Likewise.
9743 (cortex_a8_neon_str): Likewise.
9744 (cortex_a8_neon_vld1_1_2_regs): Likewise.
9745 (cortex_a8_neon_vld1_3_4_regs): Likewise.
9746 (cortex_a8_neon_vld2_2_regs_vld1_vld2_all_lanes): Likewise.
9747 (cortex_a8_neon_vld2_4_regs): Likewise.
9748 (cortex_a8_neon_vld3_vld4): Likewise.
9749 (cortex_a8_neon_vld1_vld2_lane): Likewise.
9750 (cortex_a8_neon_vld3_vld4_lane): Likewise.
9751 (cortex_a8_neon_vst1_1_2_regs_vst2_2_regs): Likewise.
9752 (cortex_a8_neon_vst1_3_4_regs): Likewise.
9753 (cortex_a8_neon_vst2_4_regs_vst3_vst4): Likewise.
9754 (cortex_a8_neon_vst1_vst2_lane): Likewise.
9755 (cortex_a8_neon_vst3_vst4_lane): Likewise.
9756 (cortex_a8_neon_mcr): Likewise.
9757 (cortex_a8_neon_mcr_2_mcrr): Likewise.
9758 (cortex_a8_neon_mrc): Likewise.
9759 (cortex_a8_neon_mrrc): Likewise.
9761 2013-10-15 James Greenhalgh <james.greenhalgh@arm.com>
9763 * config/aarch64/iterators.md (Vetype): Add SF and DF modes.
9765 * config/aarch64/aarch64-simd.md (neon_type): Remove.
9766 (aarch64_simd_dup<mode>): Add "type" attribute.
9767 (aarch64_dup_lane<mode>): Likewise.
9768 (aarch64_dup_lane_<vswap_width_name><mode>): Likewise.
9769 (*aarch64_simd_mov<mode>): Likewise.
9770 (aarch64_simd_mov_from_<mode>low): Likewise.
9771 (aarch64_simd_mov_from_<mode>high): Likewise.
9772 (orn<mode>3): Likewise.
9773 (bic<mode>3): Likewise.
9774 (add<mode>3): Likewise.
9775 (sub<mode>3): Likewise.
9776 (mul<mode>3): Likewise.
9777 (*aarch64_mul3_elt<mode>): Likewise.
9778 (*aarch64_mul3_elt_<vswap_width_name><mode>): Likewise.
9779 (*aarch64_mul3_elt_to_128df): Likewise.
9780 (*aarch64_mul3_elt_to_64v2df): Likewise.
9781 (neg<mode>2): Likewise.
9782 (abs<mode>2): Likewise.
9783 (abd<mode>_3): Likewise.
9784 (aba<mode>_3): Likewise.
9785 (fabd<mode>_3): Likewise.
9786 (*fabd_scalar<mode>3): Likewise.
9787 (and<mode>3): Likewise.
9788 (ior<mode>3): Likewise.
9789 (xor<mode>3): Likewise.
9790 (one_cmpl<mode>2): Likewise.
9791 (aarch64_simd_vec_set<mode>): Likewise.
9792 (aarch64_simd_lshr<mode>): Likewise.
9793 (aarch64_simd_ashr<mode>): Likewise.
9794 (aarch64_simd_imm_shl<mode>): Likewise.
9795 (aarch64_simd_reg_sshl<mode): Likewise.
9796 (aarch64_simd_reg_shl<mode>_unsigned): Likewise.
9797 (aarch64_simd_reg_shl<mode>_signed): Likewise.
9798 (aarch64_simd_vec_setv2di): Likewise.
9799 (aarch64_simd_vec_set<mode>): Likewise.
9800 (aarch64_mla<mode>): Likewise.
9801 (*aarch64_mla_elt<mode>): Likewise.
9802 (*aarch64_mla_elt_<vswap_width_name><mode>): Likewise.
9803 (aarch64_mls<mode>): Likewise.
9804 (*aarch64_mls_elt<mode>): Likewise.
9805 (*aarch64_mls_elt_<vswap_width_name><mode>): Likewise.
9806 (<su><maxmin><mode>3): Likewise.
9807 (move_lo_quad_<mode>): Likewise.
9808 (aarch64_simd_move_hi_quad_<mode>): Likewise.
9809 (aarch64_simd_vec_pack_trunc_<mode>): Likewise.
9810 (vec_pack_trunc_<mode>): Likewise.
9811 (aarch64_simd_vec_unpack<su>_lo_<mode>): Likewise.
9812 (aarch64_simd_vec_unpack<su>_hi_<mode>): Likewise.
9813 (*aarch64_<su>mlal_lo<mode>): Likewise.
9814 (*aarch64_<su>mlal_hi<mode>): Likewise.
9815 (*aarch64_<su>mlsl_lo<mode>): Likewise.
9816 (*aarch64_<su>mlsl_hi<mode>): Likewise.
9817 (*aarch64_<su>mlal<mode>): Likewise.
9818 (*aarch64_<su>mlsl<mode>): Likewise.
9819 (aarch64_simd_vec_<su>mult_lo_<mode>): Likewise.
9820 (aarch64_simd_vec_<su>mult_hi_<mode>): Likewise.
9821 (add<mode>3): Likewise.
9822 (sub<mode>3): Likewise.
9823 (mul<mode>3): Likewise.
9824 (div<mode>3): Likewise.
9825 (neg<mode>2): Likewise.
9826 (abs<mode>2): Likewise.
9827 (fma<mode>4): Likewise.
9828 (*aarch64_fma4_elt<mode>): Likewise.
9829 (*aarch64_fma4_elt_<vswap_width_name><mode>): Likewise.
9830 (*aarch64_fma4_elt_to_128df): Likewise.
9831 (*aarch64_fma4_elt_to_64v2df): Likewise.
9832 (fnma<mode>4): Likewise.
9833 (*aarch64_fnma4_elt<mode>): Likewise.
9834 (*aarch64_fnma4_elt_<vswap_width_name><mode>
9835 (*aarch64_fnma4_elt_to_128df): Likewise.
9836 (*aarch64_fnma4_elt_to_64v2df): Likewise.
9837 (<frint_pattern><mode>2): Likewise.
9838 (l<fcvt_pattern><su_optab><VDQF:mode><fcvt_target>2): Likewise.
9839 (<optab><fcvt_target><VDQF:VDQF:mode>2): Likewise.
9840 (vec_unpacks_lo_v4sf): Likewise.
9841 (aarch64_float_extend_lo_v2df): Likewise.
9842 (vec_unpacks_hi_v4sf): Likewise.
9843 (aarch64_float_truncate_lo_v2sf): Likewise.
9844 (aarch64_float_truncate_hi_v4sf): Likewise.
9845 (aarch64_vmls<mode>): Likewise.
9846 (<su><maxmin><mode>3): Likewise.
9847 (<maxmin_uns><mode>3): Likewise.
9848 (reduc_<sur>plus_<mode>): Likewise.
9849 (reduc_<sur>plus_v2di): Likewise.
9850 (reduc_<sur>plus_v2si): Likewise.
9851 (reduc_<sur>plus_<mode>): Likewise.
9852 (aarch64_addpv4sf): Likewise.
9853 (clz<mode>2): Likewise.
9854 (reduc_<maxmin_uns>_<mode>): Likewise.
9855 (reduc_<maxmin_uns>_v2di): Likewise.
9856 (reduc_<maxmin_uns>_v2si): Likewise.
9857 (reduc_<maxmin_uns>_<mode>): Likewise.
9858 (reduc_<maxmin_uns>_v4sf): Likewise.
9859 (aarch64_simd_bsl<mode>_internal): Likewise.
9860 (*aarch64_get_lane_extend<GPI:mode><VDQQH:mode>): Likewise.
9861 (*aarch64_get_lane_zero_extendsi<mode>): Likewise.
9862 (aarch64_get_lane<mode>): Likewise.
9863 (*aarch64_combinez<mode>): Likewise.
9864 (aarch64_combine<mode>): Likewise.
9865 (aarch64_simd_combine<mode>): Likewise.
9866 (aarch64_<ANY_EXTEND:su><ADDSUB:optab>l<mode>_hi_internal): Likewise.
9867 (aarch64_<ANY_EXTEND:su><ADDSUB:optab>l<mode>_lo_internal): Likewise.
9868 (aarch64_<ANY_EXTEND:su><ADDSUB:optab>l<mode>): Likewise.
9869 (aarch64_<ANY_EXTEND:su><ADDSUB:optab>w<mode>): Likewise.
9870 (aarch64_<ANY_EXTEND:su><ADDSUB:optab>w2<mode>_internal): Likewise.
9871 (aarch64_<sur>h<addsub><mode>): Likewise.
9872 (aarch64_<sur><addsub>hn<mode>): Likewise.
9873 (aarch64_<sur><addsub>hn2<mode>): Likewise.
9874 (aarch64_pmul<mode>): Likewise.
9875 (aarch64_<su_optab><optab><mode>): Likewise.
9876 (aarch64_<sur>qadd<mode>): Likewise.
9877 (aarch64_sqmovun<mode>): Likewise.
9878 (aarch64_<sur>qmovn<mode>): Likewise.
9879 (aarch64_s<optab><mode>): Likewise.
9880 (aarch64_sq<r>dmulh<mode>): Likewise.
9881 (aarch64_sq<r>dmulh_lane<mode>): Likewise.
9882 (aarch64_sq<r>dmulh_laneq<mode>): Likewise.
9883 (aarch64_sq<r>dmulh_lane<mode>): Likewise.
9884 (aarch64_sqdml<SBINQOPS:as>l<mode>): Likewise.
9885 (aarch64_sqdml<SBINQOPS:as>l_lane<mode>_internal): Likewise.
9886 (aarch64_sqdml<SBINQOPS:as>l_lane<mode>_internal): Likewise.
9887 (aarch64_sqdml<SBINQOPS:as>l_n<mode>): Likewise.
9888 (aarch64_sqdml<SBINQOPS:as>l2<mode>_internal): Likewise.
9889 (aarch64_sqdml<SBINQOPS:as>l2_lane<mode>_internal): Likewise.
9890 (aarch64_sqdml<SBINQOPS:as>l2_n<mode>_internal): Likewise.
9891 (aarch64_sqdmull<mode>): Likewise.
9892 (aarch64_sqdmull_lane<mode>_internal): Likewise.
9893 (aarch64_sqdmull_n<mode>): Likewise.
9894 (aarch64_sqdmull2<mode>_internal): Likewise.
9895 (aarch64_sqdmull2_lane<mode>_internal): Likewise.
9896 (aarch64_sqdmull2_n<mode>_internal): Likewise.
9897 (aarch64_<sur>shl<mode>): Likewise.
9898 (aarch64_<sur>q<r>shl<mode>
9899 (aarch64_<sur>shll_n<mode>): Likewise.
9900 (aarch64_<sur>shll2_n<mode>): Likewise.
9901 (aarch64_<sur>shr_n<mode>): Likewise.
9902 (aarch64_<sur>sra_n<mode>): Likewise.
9903 (aarch64_<sur>s<lr>i_n<mode>): Likewise.
9904 (aarch64_<sur>qshl<u>_n<mode>): Likewise.
9905 (aarch64_<sur>q<r>shr<u>n_n<mode>): Likewise.
9906 (aarch64_cm<optab><mode>): Likewise.
9907 (aarch64_cm<optab>di): Likewise.
9908 (aarch64_cm<optab><mode>): Likewise.
9909 (aarch64_cm<optab>di): Likewise.
9910 (aarch64_cmtst<mode>): Likewise.
9911 (aarch64_cmtstdi): Likewise.
9912 (aarch64_cm<optab><mode>): Likewise.
9913 (*aarch64_fac<optab><mode>): Likewise.
9914 (aarch64_addp<mode>): Likewise.
9915 (aarch64_addpdi): Likewise.
9916 (sqrt<mode>2): Likewise.
9917 (vec_load_lanesoi<mode>): Likewise.
9918 (vec_store_lanesoi<mode>): Likewise.
9919 (vec_load_lanesci<mode>): Likewise.
9920 (vec_store_lanesci<mode>): Likewise.
9921 (vec_load_lanesxi<mode>): Likewise.
9922 (vec_store_lanesxi<mode>): Likewise.
9923 (*aarch64_mov<mode>): Likewise.
9924 (aarch64_ld2<mode>_dreg): Likewise.
9925 (aarch64_ld2<mode>_dreg): Likewise.
9926 (aarch64_ld3<mode>_dreg): Likewise.
9927 (aarch64_ld3<mode>_dreg): Likewise.
9928 (aarch64_ld4<mode>_dreg): Likewise.
9929 (aarch64_ld4<mode>_dreg): Likewise.
9930 (aarch64_tbl1<mode>): Likewise.
9931 (aarch64_tbl2v16qi): Likewise.
9932 (aarch64_combinev16qi): Likewise.
9933 (aarch64_<PERMUTE:perm_insn><PERMUTE:perm_hilo><mode>): Likewise.
9934 (aarch64_st2<mode>_dreg): Likewise.
9935 (aarch64_st2<mode>_dreg): Likewise.
9936 (aarch64_st3<mode>_dreg): Likewise.
9937 (aarch64_st3<mode>_dreg): Likewise.
9938 (aarch64_st4<mode>_dreg): Likewise.
9939 (aarch64_st4<mode>_dreg): Likewise.
9940 (*aarch64_simd_ld1r<mode>): Likewise.
9941 (aarch64_frecpe<mode>): Likewise.
9942 (aarch64_frecp<FRECP:frecp_suffix><mode>): Likewise.
9943 (aarch64_frecps<mode>): Likewise.
9945 2013-10-15 James Greenhalgh <james.greenhalgh@arm.com>
9947 * config/arm/iterators.md (V_elem_ch): New.
9949 (VQH_type): Likewise.
9950 * config/arm/arm.md (is_neon_type): New.
9951 (conds): Use is_neon_type.
9952 (anddi3_insn): Update type attribute.
9953 (xordi3_insn): Likewise.
9954 (one_cmpldi2): Likewise.
9955 * config/arm/vfp.md (movhf_vfp_neon): Update type attribute.
9956 * config/arm/neon.md (neon_mov): Update type attribute.
9957 (*movmisalign<mode>_neon_store): Likewise.
9958 (*movmisalign<mode>_neon_load): Likewise.
9959 (vec_set<mode>_internal): Likewise.
9960 (vec_set<mode>_internal): Likewise.
9961 (vec_setv2di_internal): Likewise.
9962 (vec_extract<mode>): Likewise.
9963 (vec_extract<mode>): Likewise.
9964 (vec_extractv2di): Likewise.
9965 (*add<mode>3_neon): Likewise.
9966 (adddi3_neon): Likewise.
9967 (*sub<mode>3_neon): Likewise.
9968 (subdi3_neon): Likewise.
9969 (fma<VCVTF:mode>4): Likewise.
9970 (fma<VCVTF:mode>4_intrinsic): Likewise.
9971 (*fmsub<VCVTF:mode>4): Likewise.
9972 (fmsub<VCVTF:mode>4_intrinsic): Likewise.
9973 (neon_vrint<NEON_VRINT:nvrint_variant><VCVTF:mode>): Likewise.
9974 (ior<mode>3): Likewise.
9975 (and<mode>3): Likewise.
9976 (orn<mode>3_neon): Likewise.
9977 (orndi3_neon): Likewise.
9978 (bic<mode>3_neon): Likewise.
9979 (bicdi3_neon): Likewise.
9980 (xor<mode>3): Likewise.
9981 (one_cmpl<mode>2): Likewise.
9982 (abs<mode>2): Likewise.
9983 (neg<mode>2): Likewise.
9984 (negdi2_neon): Likewise.
9985 (*umin<mode>3_neon): Likewise.
9986 (*umax<mode>3_neon): Likewise.
9987 (*smin<mode>3_neon): Likewise.
9988 (*smax<mode>3_neon): Likewise.
9989 (vashl<mode>3): Likewise.
9990 (vashr<mode>3_imm): Likewise.
9991 (vlshr<mode>3_imm): Likewise.
9992 (ashl<mode>3_signed): Likewise.
9993 (ashl<mode>3_unsigned): Likewise.
9994 (neon_load_count): Likewise.
9995 (ashldi3_neon_noclobber): Likewise.
9996 (ashldi3_neon): Likewise.
9997 (signed_shift_di3_neon): Likewise.
9998 (unsigned_shift_di3_neon): Likewise.
9999 (ashrdi3_neon_imm_noclobber): Likewise.
10000 (lshrdi3_neon_imm_noclobber): Likewise.
10001 (<shift>di3_neon): Likewise.
10002 (widen_ssum<mode>3): Likewise.
10003 (widen_usum<mode>3): Likewise.
10004 (quad_halves_<code>v4si): Likewise.
10005 (quad_halves_<code>v4sf): Likewise.
10006 (quad_halves_<code>v8hi): Likewise.
10007 (quad_halves_<code>v16qi): Likewise.
10008 (reduc_splus_v2di): Likewise.
10009 (neon_vpadd_internal<mode>): Likewise.
10010 (neon_vpsmin<mode>): Likewise.
10011 (neon_vpsmax<mode>): Likewise.
10012 (neon_vpumin<mode>): Likewise.
10013 (neon_vpumax<mode>): Likewise.
10014 (*ss_add<mode>_neon): Likewise.
10015 (*us_add<mode>_neon): Likewise.
10016 (*ss_sub<mode>_neon): Likewise.
10017 (*us_sub<mode>_neon): Likewise.
10018 (neon_vadd<mode>_unspec): Likewise.
10019 (neon_vaddl<mode>): Likewise.
10020 (neon_vaddw<mode>): Likewise.
10021 (neon_vhadd<mode>): Likewise.
10022 (neon_vqadd<mode>): Likewise.
10023 (neon_vaddhn<mode>): Likewise.
10024 (neon_vmul<mode>): Likewise.
10025 (neon_vfms<VCVTF:mode>): Likewise.
10026 (neon_vmlal<mode>): Likewise.
10027 (neon_vmls<mode>): Likewise.
10028 (neon_vmlsl<mode>): Likewise.
10029 (neon_vqdmulh<mode>): Likewise.
10030 (neon_vqdmlal<mode>): Likewise.
10031 (neon_vqdmlsl<mode>): Likewise.
10032 (neon_vmull<mode>): Likewise.
10033 (neon_vqdmull<mode>): Likewise.
10034 (neon_vsub<mode>_unspec): Likewise.
10035 (neon_vsubl<mode>): Likewise.
10036 (neon_vsubw<mode>): Likewise.
10037 (neon_vqsub<mode>): Likewise.
10038 (neon_vhsub<mode>): Likewise.
10039 (neon_vsubhn<mode>): Likewise.
10040 (neon_vceq<mode>): Likewise.
10041 (neon_vcge<mode>): Likewise.
10042 (neon_vcgeu<mode>): Likewise.
10043 (neon_vcgt<mode>): Likewise.
10044 (neon_vcgtu<mode>): Likewise.
10045 (neon_vcle<mode>): Likewise.
10046 (neon_vclt<mode>): Likewise.
10047 (neon_vcage<mode>): Likewise.
10048 (neon_vcagt<mode>): Likewise.
10049 (neon_vtst<mode>): Likewise.
10050 (neon_vabd<mode>): Likewise.
10051 (neon_vabdl<mode>): Likewise.
10052 (neon_vaba<mode>): Likewise.
10053 (neon_vabal<mode>): Likewise.
10054 (neon_vmax<mode>): Likewise.
10055 (neon_vmin<mode>): Likewise.
10056 (neon_vpaddl<mode>): Likewise.
10057 (neon_vpadal<mode>): Likewise.
10058 (neon_vpmax<mode>): Likewise.
10059 (neon_vpmin<mode>): Likewise.
10060 (neon_vrecps<mode>): Likewise.
10061 (neon_vrsqrts<mode>): Likewise.
10062 (neon_vqabs<mode>): Likewise.
10063 (neon_vqneg<mode>): Likewise.
10064 (neon_vcls<mode>): Likewise.
10065 (clz<mode>2): Likewise.
10066 (popcount<mode>2): Likewise.
10067 (neon_vrecpe<mode>): Likewise.
10068 (neon_vrsqrte<mode>): Likewise.
10069 (neon_vget_lane<mode>_sext_internal): Likewise.
10070 (neon_vget_lane<mode>_zext_internal): Likewise.
10071 (neon_vdup_n<mode>): Likewise.
10072 (neon_vdup_n<mode>): Likewise.
10073 (neon_vdup_nv2di): Likewise.
10074 (neon_vdup_lane<mode>_interal): Likewise.
10075 (*neon_vswp<mode>): Likewise.
10076 (neon_vcombine<mode>): Likewise.
10077 (float<mode><V_cvtto>2): Likewise.
10078 (floatuns<mode><V_cvtto>2): Likewise.
10079 (fix_trunc<mode><V_cvtto>2): Likewise.
10080 (fixuns_trunc<mode><V_cvtto>2
10081 (neon_vcvt<mode>): Likewise.
10082 (neon_vcvt<mode>): Likewise.
10083 (neon_vcvtv4sfv4hf): Likewise.
10084 (neon_vcvtv4hfv4sf): Likewise.
10085 (neon_vcvt_n<mode>): Likewise.
10086 (neon_vcvt_n<mode>): Likewise.
10087 (neon_vmovn<mode>): Likewise.
10088 (neon_vqmovn<mode>): Likewise.
10089 (neon_vqmovun<mode>): Likewise.
10090 (neon_vmovl<mode>): Likewise.
10091 (neon_vmul_lane<mode>): Likewise.
10092 (neon_vmul_lane<mode>): Likewise.
10093 (neon_vmull_lane<mode>): Likewise.
10094 (neon_vqdmull_lane<mode>): Likewise.
10095 (neon_vqdmulh_lane<mode>): Likewise.
10096 (neon_vqdmulh_lane<mode>): Likewise.
10097 (neon_vmla_lane<mode>): Likewise.
10098 (neon_vmla_lane<mode>): Likewise.
10099 (neon_vmlal_lane<mode>): Likewise.
10100 (neon_vqdmlal_lane<mode>): Likewise.
10101 (neon_vmls_lane<mode>): Likewise.
10102 (neon_vmls_lane<mode>): Likewise.
10103 (neon_vmlsl_lane<mode>): Likewise.
10104 (neon_vqdmlsl_lane<mode>): Likewise.
10105 (neon_vext<mode>): Likewise.
10106 (neon_vrev64<mode>): Likewise.
10107 (neon_vrev32<mode>): Likewise.
10108 (neon_vrev16<mode>): Likewise.
10109 (neon_vbsl<mode>_internal): Likewise.
10110 (neon_vshl<mode>): Likewise.
10111 (neon_vqshl<mode>): Likewise.
10112 (neon_vshr_n<mode>): Likewise.
10113 (neon_vshrn_n<mode>): Likewise.
10114 (neon_vqshrn_n<mode>): Likewise.
10115 (neon_vqshrun_n<mode>): Likewise.
10116 (neon_vshl_n<mode>): Likewise.
10117 (neon_vqshl_n<mode>): Likewise.
10118 (neon_vqshlu_n<mode>): Likewise.
10119 (neon_vshll_n<mode>): Likewise.
10120 (neon_vsra_n<mode>): Likewise.
10121 (neon_vsri_n<mode>): Likewise.
10122 (neon_vsli_n<mode>): Likewise.
10123 (neon_vtbl1v8qi): Likewise.
10124 (neon_vtbl2v8qi): Likewise.
10125 (neon_vtbl3v8qi): Likewise.
10126 (neon_vtbl4v8qi): Likewise.
10127 (neon_vtbl1v16qi): Likewise.
10128 (neon_vtbl2v16qi): Likewise.
10129 (neon_vcombinev16qi): Likewise.
10130 (neon_vtbx1v8qi): Likewise.
10131 (neon_vtbx2v8qi): Likewise.
10132 (neon_vtbx3v8qi): Likewise.
10133 (neon_vtbx4v8qi): Likewise.
10134 (*neon_vtrn<mode>_insn): Likewise.
10135 (*neon_vzip<mode>_insn): Likewise.
10136 (*neon_vuzp<mode>_insn): Likewise.
10137 (neon_vld1<mode>): Likewise.
10138 (neon_vld1_lane<mode>): Likewise.
10139 (neon_vld1_lane<mode>): Likewise.
10140 (neon_vld1_dup<mode>): Likewise.
10141 (neon_vld1_dup<mode>): Likewise.
10142 (neon_vld1_dupv2di): Likewise.
10143 (neon_vst1<mode>): Likewise.
10144 (neon_vst1_lane<mode>): Likewise.
10145 (neon_vst1_lane<mode>): Likewise.
10146 (neon_vld2<mode>): Likewise.
10147 (neon_vld2<mode>): Likewise.
10148 (neon_vld2_lane<mode>): Likewise.
10149 (neon_vld2_lane<mode>): Likewise.
10150 (neon_vld2_dup<mode>): Likewise.
10151 (neon_vst2<mode>): Likewise.
10152 (neon_vst2<mode>): Likewise.
10153 (neon_vst2_lane<mode>): Likewise.
10154 (neon_vst2_lane<mode>): Likewise.
10155 (neon_vld3<mode>): Likewise.
10156 (neon_vld3qa<mode>): Likewise.
10157 (neon_vld3qb<mode>): Likewise.
10158 (neon_vld3_lane<mode>): Likewise.
10159 (neon_vld3_lane<mode>): Likewise.
10160 (neon_vld3_dup<mode>): Likewise.
10161 (neon_vst3<mode>): Likewise.
10162 (neon_vst3qa<mode>): Likewise.
10163 (neon_vst3qb<mode>): Likewise.
10164 (neon_vst3_lane<mode>): Likewise.
10165 (neon_vst3_lane<mode>): Likewise.
10166 (neon_vld4<mode>): Likewise.
10167 (neon_vld4qa<mode>): Likewise.
10168 (neon_vld4qb<mode>): Likewise.
10169 (neon_vld4_lane<mode>): Likewise.
10170 (neon_vld4_lane<mode>): Likewise.
10171 (neon_vld4_dup<mode>): Likewise.
10172 (neon_vst4<mode>): Likewise.
10173 (neon_vst4qa<mode>): Likewise.
10174 (neon_vst4qb<mode>): Likewise.
10175 (neon_vst4_lane<mode>): Likewise.
10176 (neon_vst4_lane<mode>): Likewise.
10177 (neon_vec_unpack<US>_lo_<mode>): Likewise.
10178 (neon_vec_unpack<US>_hi_<mode>): Likewise.
10179 (neon_vec_<US>mult_lo_<mode>): Likewise.
10180 (neon_vec_<US>mult_hi_<mode>): Likewise.
10181 (neon_vec_<US>shiftl_<mode>): Likewise.
10182 (neon_unpack<US>_<mode>): Likewise.
10183 (neon_vec_<US>mult_<mode>): Likewise.
10184 (vec_pack_trunc_<mode>): Likewise.
10185 (neon_vec_pack_trunc_<mode>): Likewise.
10186 (neon_vabd<mode>_2): Likewise.
10187 (neon_vabd<mode>_3): Likewise.
10189 2013-10-15 James Greenhalgh <james.greenhalgh@arm.com>
10191 * config/aarch64/aarch64.md (movtf_aarch64): Update type attribute.
10192 (load_pair): Update type attribute.
10193 (store_pair): Update type attribute.
10194 * config/aarch64/iterators.md (q): New.
10196 2013-10-15 James Greenhalgh <james.greenhalgh@arm.com>
10198 * config/arm/types.md: Add new types for Neon insns.
10200 2013-10-15 Alexander Ivchenko <alexander.ivchenko@intel.com>
10201 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
10202 Sergey Lega <sergey.s.lega@intel.com>
10203 Anna Tikhonova <anna.tikhonova@intel.com>
10204 Ilya Tocar <ilya.tocar@intel.com>
10205 Andrey Turetskiy <andrey.turetskiy@intel.com>
10206 Ilya Verbin <ilya.verbin@intel.com>
10207 Kirill Yukhin <kirill.yukhin@intel.com>
10208 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
10210 * config/i386/sse.md (unspec): Add UNSPEC_RCP14, UNSPEC_RSQRT14,
10211 UNSPEC_FIXUPIMM, UNSPEC_SCALEF, UNSPEC_GETEXP, UNSPEC_GETMANT,
10212 UNSPEC_EXP2, UNSPEC_RCP28, UNSPEC_RSQRT28.
10213 (rcp14<mode>): New.
10214 (srcp14<mode>): Ditto.
10215 (rsqrt14<mode>): Ditto.
10216 (rsqrt14<mode>): Ditto.
10217 (avx512f_vmscalef<mode>): Ditto.
10218 (avx512f_scalef<mode>): Ditto.
10219 (avx512f_getexp<mode>): Ditto.
10220 (avx512f_sgetexp<mode>): Ditto.
10221 (avx512f_fixupimm<mode>): Ditto.
10222 (avx512f_sfixupimm<mode>): Ditto.
10223 (avx512f_rndscale<mode>): Ditto.
10224 (*avx512er_exp2<mode>): Ditto.
10225 (*avx512er_rcp28<mode>): Ditto.
10226 (avx512er_rsqrt28<mode>): Ditto.
10227 (avx512f_getmant<mode>): Ditto.
10228 (avx512f_getmant<mode>): Ditto.
10229 (avx512f_rndscale<mode>): Fix formatting.
10231 2013-10-15 Martin Jambor <mjambor@suse.cz>
10233 * ipa-utils.h (ipa_edge_within_scc): Declare.
10234 * ipa-cp.c (edge_within_scc): Moved...
10235 * ipa-utils.c (ipa_edge_within_scc): ...here. Updated all callers.
10237 2013-10-15 Alexander Ivchenko <alexander.ivchenko@intel.com>
10238 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
10239 Sergey Lega <sergey.s.lega@intel.com>
10240 Anna Tikhonova <anna.tikhonova@intel.com>
10241 Ilya Tocar <ilya.tocar@intel.com>
10242 Andrey Turetskiy <andrey.turetskiy@intel.com>
10243 Ilya Verbin <ilya.verbin@intel.com>
10244 Kirill Yukhin <kirill.yukhin@intel.com>
10245 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
10247 * config/i386/predicates.md (const_8_to_15_operand): New.
10248 (const_16_to_31_operand): Ditto.
10249 * config/i386/sse.md (V8FI): New.
10251 (reduc_splus_v8df): Ditto.
10252 (reduc_splus_v16sf): Ditto.
10253 (avx512f_vextract<shuffletype>32x4_1): Ditto.
10254 (vec_extract_hi_<mode>): Ditto.
10255 (avx512f_vinsert<shuffletype>32x4_1): Ditto.
10256 (vec_set_lo_<mode>): Ditto.
10257 (vec_set_hi_<mode>): Ditto.
10258 (avx512f_shuf_<shuffletype>64x2_1): Ditto.
10259 (avx512f_shuf_<shuffletype>32x4_1): Ditto.
10260 (avx512f_pshufd_1): Ditto.
10261 (avx512f_broadcast<mode>): Ditto.
10262 (avx512f_broadcast<mode>): Ditto.
10263 (define_split): Split vec_extract_lo into move.
10264 (ssequartermode): Ditto.
10265 (ssedoublemode): Extened with wider modes.
10266 (vec_extract_lo_<mode>): Ditto.
10268 2013-10-15 Alexander Ivchenko <alexander.ivchenko@intel.com>
10269 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
10270 Sergey Lega <sergey.s.lega@intel.com>
10271 Anna Tikhonova <anna.tikhonova@intel.com>
10272 Ilya Tocar <ilya.tocar@intel.com>
10273 Andrey Turetskiy <andrey.turetskiy@intel.com>
10274 Ilya Verbin <ilya.verbin@intel.com>
10275 Kirill Yukhin <kirill.yukhin@intel.com>
10276 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
10278 * config/i386/predicates.md (register_or_constm1_operand): New.
10279 * config/i386/sse.md (unspec): Add UNSPEC_UNSIGNED_PCMP, UNSPEC_TESTM,
10280 UNSPEC_TESTNM, UNSPEC_VTERNLOG, UNSPEC_ALIGN, UNSPEC_CONFLICT,
10281 UNSPEC_MASKED_EQ, UNSPEC_MASKED_GT, UNSPEC_GATHER_PREFETCH,
10282 UNSPEC_SCATTER_PREFETCH
10284 (avx512f_ucmp<mode>3): Ditto.
10285 (avx512f_vternlog<mode>): Ditto.
10286 (avx512f_align<mode>): Ditto.
10287 (<shift_insn><mode>3): Ditto.
10288 (avx512f_<rotate>v<mode>): Ditto.
10289 (avx512f_<rotate><mode>): Ditto.
10290 (avx512f_eq<mode>3): Ditto.
10291 (avx512f_eq<mode>3_1): Ditto.
10292 (avx512f_gt<mode>3): Ditto.
10293 (avx512f_testm<mode>3): Ditto.
10294 (avx512f_testnm<mode>3): Ditto.
10295 (avx512pf_gatherpf<mode>): Ditto.
10296 (*avx512pf_gatherpf<mode>_mask): Ditto.
10297 (*avx512pf_gatherpf<mode>): Ditto.
10298 (avx512pf_scatterpf<mode>): Ditto.
10299 (*avx512pf_scatterpf<mode>_mask): Ditto.
10300 (*avx512pf_scatterpf<mode>): Ditto.
10301 (avx512f_vec_dup_gpr<mode>): Ditto.
10302 (clz<mode>2): Ditto.
10303 (conflict<mode>): Ditto.
10304 (REDUC_SMINMAX_MODE): Extened with wider modes.
10305 (reduc_<code>_<mode>): Ditto.
10306 (vlshr<mode>3): Ditto.
10307 (vashl<mode>3): Ditto.
10309 2013-10-15 Alexander Ivchenko <alexander.ivchenko@intel.com>
10310 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
10311 Sergey Lega <sergey.s.lega@intel.com>
10312 Anna Tikhonova <anna.tikhonova@intel.com>
10313 Ilya Tocar <ilya.tocar@intel.com>
10314 Andrey Turetskiy <andrey.turetskiy@intel.com>
10315 Ilya Verbin <ilya.verbin@intel.com>
10316 Kirill Yukhin <kirill.yukhin@intel.com>
10317 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
10319 * config/i386/sse.md (unspec): Added UNSPEC_VPERMI2, UNSPEC_VPERMT2,
10322 (avx512fmaskmode): Ditto.
10323 (bcstscalarsuff): Ditto.
10324 (avx512f_blendm<mode>): Ditto.
10325 (cmp_imm_predicate): Ditto.
10326 (avx512f_cmp<mode>3): Ditto.
10327 (avx512f_vec_dup<mode>): Ditto.
10328 (avx512f_vec_dup_mem<mode>): Ditto.
10329 (avx512f_vpermi2var<mode>3): Ditto.
10330 (avx512f_vpermt2var<mode>3): Ditto.
10331 (vec_init<mode>): Ditto.
10332 (avx512f_gathersi<mode>): Ditto.
10333 (*avx512f_gathersi<mode>): Ditto.
10334 (*avx512f_gathersi<mode>_2): Ditto.
10335 (avx512f_gatherdi<mode>): Ditto.
10336 (*avx512f_gatherdi<mode>): Ditto.
10337 (*avx512f_gatherdi<mode>_2): Ditto.
10338 (avx512f_scattersi<mode>): Ditto.
10339 (*avx512f_scattersi<mode>): Ditto.
10340 (avx512f_scatterdi<mode>): Ditto.
10341 (*avx512f_scatterdi<mode>): Ditto.
10342 (sseintprefix): Extened with wider modes.
10343 (VEC_GATHER_IDXSI): Ditto.
10344 (VEC_GATHER_IDXDI): Ditto.
10345 (VEC_GATHER_SRCDI): Ditto.
10347 2013-10-15 Matthew Gretton-Dann <matthew.gretton-dann@arm.com>
10348 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
10350 * config/arm/t-aprofile: New file.
10351 * config.gcc: Handle --with-multilib-list option.
10353 2013-10-15 Bernd Schmidt <bernds@codesourcery.com>
10355 * reload1.c (reloads_unique_chain_p): Ensure that r1 is
10358 2013-10-15 Richard Biener <rguenther@suse.de>
10360 * tree-loop-distribution.c (build_empty_rdg): Inline into
10362 (rdg_flag_vertex): Inline into single user.
10363 (rdg_flag_vertex_and_dependent): Likewise.
10364 (build_rdg_partition_for_vertex): Remove processed bitmap.
10365 (rdg_build_partitions): Simplify.
10367 2013-10-15 Richard Biener <rguenther@suse.de>
10369 * tree-ssa-forwprop.c (forward_propagate_addr_expr_1):
10370 Restructure forwarding through conversions and copies to
10371 avoid performing copy-propagation the wrong way. Adjust
10372 recursion invocations.
10373 (forward_propagate_addr_expr): Add argument stating if we
10374 are recursing from a single-use.
10375 (ssa_forward_propagate_and_combine): Adjust.
10377 2013-10-14 David Malcolm <dmalcolm@redhat.com>
10379 * dumpfile.h (gcc::dump_manager): New class, to hold state
10380 relating to dumpfile management.
10381 (get_dump_file_name): Remove in favor of method of dump_manager.
10382 (dump_initialized_p): Likewise.
10383 (dump_start): Likewise.
10384 (dump_finish): Likewise.
10385 (dump_switch_p): Likewise.
10386 (dump_register): Likewise.
10387 (get_dump_file_info): Likewise.
10388 * context.c (gcc::context::context): Construct the dump_manager
10390 * context.h (gcc::context::get_dumps): New.
10391 (gcc::context::m_dumps): New.
10392 * coverage.c (coverage_init): Port to dump_manager API.
10393 * dumpfile.c (extra_dump_files): Convert to field of gcc::dump_manager.
10394 (extra_dump_files_in_use): Likewise.
10395 (extra_dump_files_alloced): Likewise.
10396 (gcc::dump_manager::dump_manager): New.
10397 (dump_register): Convert to...
10398 (gcc::dump_manager::dump_register): ...method, replacing
10399 function-static next_dump with m_next_dump field.
10400 (get_dump_file_info): Convert to...
10401 (gcc::dump_manager::get_dump_file_info): ...method.
10402 (get_dump_file_name): Convert to...
10403 (gcc::dump_manager::get_dump_file_name): ...method.
10404 (dump_start): Convert to...
10405 (gcc::dump_manager::dump_start): ...method.
10406 (dump_finish): Convert to...
10407 (gcc::dump_manager::dump_finish): ...method.
10408 (dump_begin): Replace body with...
10409 (gcc::dump_manager::dump_begin): ...new method.
10410 (dump_phase_enabled_p): Convert to...
10411 (gcc::dump_manager::dump_phase_enabled_p): ...method.
10412 (dump_phase_enabled_p): Convert to...
10413 (gcc::dump_manager::dump_phase_enabled_p): ...method.
10414 (dump_initialized_p): Convert to...
10415 (gcc::dump_manager::dump_initialized_p): ...method.
10416 (dump_flag_name): Replace body with...
10417 (gcc::dump_manager::dump_flag_name): ...new method.
10418 (dump_enable_all): Convert to...
10419 (gcc::dump_manager::dump_enable_all): ...new method.
10420 (opt_info_enable_passes): Convert to...
10421 (gcc::dump_manager::opt_info_enable_passes): ...new method.
10422 (dump_switch_p_1): Convert to...
10423 (gcc::dump_manager::dump_switch_p_1): ...new method.
10424 (dump_switch_p): Convert to...
10425 (gcc::dump_manager::dump_switch_p): ...new method.
10426 (opt_info_switch_p): Port to dump_manager API.
10427 (enable_rtl_dump_file): Likewise.
10428 * opts-global.c (handle_common_deferred_options): Port to new
10430 * passes.c (pass_manager::finish_optimization_passes): Likewise.
10431 (pass_manager::register_one_dump_file): Likewise.
10432 (pass_manager::register_pass): Likewise.
10433 (pass_init_dump_file): Likewise.
10434 (pass_fini_dump_file): Likewise.
10435 * statistics.c (statistics_early_init): Likewise.
10437 2013-10-14 Richard Biener <rguenther@suse.de>
10439 * gimple.c (gimple_canonical_types, canonical_type_hash_cache,
10440 iterative_hash_canonical_type, gimple_canonical_type_hash,
10441 gimple_canonical_types_compatible_p, gimple_canonical_type_eq,
10442 gimple_register_canonical_type, print_gimple_types_stats,
10443 free_gimple_type_tables): Move to lto/lto.c
10444 (gt-gimple.h): Do not include.
10445 * gimple.h (gimple_register_canonical_type,
10446 print_gimple_types_stats, free_gimple_type_tables): Remove.
10447 * Makefile.in (GTFILES): Remove gimple.c.
10449 2013-10-14 Travis Snoozy <quandary@remstate.com>
10452 * config/msp430/msp430.c (msp430_option_override): Correct thinko
10453 scanning for msp430x targets.
10455 2013-10-14 Eric Botcazou <ebotcazou@adacore.com>
10458 * config/sparc/sparc-protos.h (widen_mem_for_ldd_peep): Declare.
10459 (registers_ok_for_ldd_peep): Move around.
10460 * config/sparc/sparc.c (widen_mem_for_ldd_peep): New.
10461 * config/sparc/sparc.md (widening peepholes): Use it.
10463 2013-10-14 Richard Biener <rguenther@suse.de>
10465 PR middle-end/58712
10466 PR middle-end/55358
10467 * gimple.c (iterative_hash_canonical_type): Make sure to
10468 record the hash into the correct hashtable slot.
10470 2013-10-13 Eric Botcazou <ebotcazou@adacore.com>
10472 PR rtl-optimization/58662
10473 * combine.c (try_combine): Take into account death nodes on I2 when
10474 splitting a PARALLEL of two independent SETs. Fix dump message.
10476 2013-10-12 Oleg Endo <olegendo@gcc.gnu.org>
10479 * config/sh/sh_treg_combine.cc: New SH specific RTL pass.
10480 * config.gcc (sh[123456789lbe]*-*-* | sh-*-*): Add sh_treg_combine.o to
10482 * config/sh/t-sh (sh_treg_combine.o): New entry.
10483 * config/sh/sh.c (sh_fixed_condition_code_regs): New function that
10484 implements the target hook TARGET_FIXED_CONDITION_CODE_REGS.
10485 (register_sh_passes): New function. Register sh_treg_combine pass.
10486 (sh_option_override): Invoke it.
10487 (sh_canonicalize_comparison): Handle op0_preserve_value.
10488 * sh.md (*cbranch_t"): Do not try to optimize missed test and branch
10489 opportunities. Canonicalize branch condition.
10490 (nott): Allow only if pseudos can be created for non-SH2A.
10492 2013-10-12 H.J. Lu <hongjiu.lu@intel.com>
10495 * config/i386/i386.c (ix86_copy_addr_to_reg): New function.
10496 (ix86_expand_movmem): Replace copy_addr_to_reg with
10497 ix86_copy_addr_to_reg.
10498 (ix86_expand_setmem): Likewise.
10500 2013-10-12 Alexander Monakov <amonakov@ispras.ru>
10502 * config/i386/i386.c (ix86_expand_sse_compare_and_jump): Use mode
10503 provided by ix86_fp_compare_mode instead of CCFPUmode.
10505 2013-10-12 James Greenhalgh <james.greenhalgh@arm.com>
10507 * config/aarch64/arm_neon.h
10508 (vtbx<1,3>_<psu>8): Fix register constriants.
10510 2013-10-11 Jeff Law <law@redhat.com>
10512 PR tree-optimization/58640
10513 * tree-ssa-threadupdate.c (mark_threaded_blocks): Truncate jump
10514 threading paths that cross over two loop entry points.
10516 2013-10-11 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
10518 * config/rs6000/vsx.md (*vsx_le_perm_load_v2di): Generalize to
10519 handle vector float as well.
10520 (*vsx_le_perm_load_v4si): Likewise.
10521 (*vsx_le_perm_store_v2di): Likewise.
10522 (*vsx_le_perm_store_v4si): Likewise.
10524 2013-10-11 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
10526 * config/rs6000/vector.md (vec_realign_load<mode>): Generate vperm
10527 directly to circumvent subtract from splat{31} workaround.
10528 * config/rs6000/rs6000-protos.h (altivec_expand_vec_perm_le): New
10530 * config/rs6000/rs6000.c (altivec_expand_vec_perm_le): New.
10531 * config/rs6000/altivec.md (define_c_enum "unspec"): Add
10532 UNSPEC_VPERM_X and UNSPEC_VPERM_UNS_X.
10533 (altivec_vperm_<mode>): Convert to define_insn_and_split to
10534 separate big and little endian logic.
10535 (*altivec_vperm_<mode>_internal): New define_insn.
10536 (altivec_vperm_<mode>_uns): Convert to define_insn_and_split to
10537 separate big and little endian logic.
10538 (*altivec_vperm_<mode>_uns_internal): New define_insn.
10539 (vec_permv16qi): Add little endian logic.
10541 2013-10-11 Marc Glisse <marc.glisse@inria.fr>
10543 * doc/extend.texi (returns_nonnull): Remove arguments.
10545 2013-10-11 Alexander Ivchenko <alexander.ivchenko@intel.com>
10546 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
10547 Sergey Lega <sergey.s.lega@intel.com>
10548 Anna Tikhonova <anna.tikhonova@intel.com>
10549 Ilya Tocar <ilya.tocar@intel.com>
10550 Andrey Turetskiy <andrey.turetskiy@intel.com>
10551 Ilya Verbin <ilya.verbin@intel.com>
10552 Kirill Yukhin <kirill.yukhin@intel.com>
10553 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
10555 * config/i386/sse.md (VI48F_256_512): New.
10556 (avx2_permvar<mode>): Change to ...
10557 (<avx2_avx512f>_permvar<mode>): This.
10559 2013-10-11 Alexander Ivchenko <alexander.ivchenko@intel.com>
10560 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
10561 Sergey Lega <sergey.s.lega@intel.com>
10562 Anna Tikhonova <anna.tikhonova@intel.com>
10563 Ilya Tocar <ilya.tocar@intel.com>
10564 Andrey Turetskiy <andrey.turetskiy@intel.com>
10565 Ilya Verbin <ilya.verbin@intel.com>
10566 Kirill Yukhin <kirill.yukhin@intel.com>
10567 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
10569 * config/i386/i386.c (bdesc_args): Change corresponding pattern for
10570 __builtin_ia32_cvtps2dq, __builtin_ia32_cvtps2dq256.
10571 * config/i386/sse.md (VI4_AVX): New.
10572 (sf2simodelower): Ditto.
10573 (sse2_cvtps2dq): Change to ...
10574 (<sse2_avx_avx512f>_fix_notrunc<sf2simodelower><mode>): This.
10576 2013-10-11 Alexander Ivchenko <alexander.ivchenko@intel.com>
10577 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
10578 Sergey Lega <sergey.s.lega@intel.com>
10579 Anna Tikhonova <anna.tikhonova@intel.com>
10580 Ilya Tocar <ilya.tocar@intel.com>
10581 Andrey Turetskiy <andrey.turetskiy@intel.com>
10582 Ilya Verbin <ilya.verbin@intel.com>
10583 Kirill Yukhin <kirill.yukhin@intel.com>
10584 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
10586 * config/i386/sse.md (V_512): New.
10588 (vcond<V_512:mode><VF_512:mode>): Ditto.
10589 (vcond<V_512:mode><VI_512:mode>): Ditto.
10590 (vcondu<V_512:mode><VI_512:mode>): Ditto.
10592 2013-10-11 Alexander Ivchenko <alexander.ivchenko@intel.com>
10593 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
10594 Sergey Lega <sergey.s.lega@intel.com>
10595 Anna Tikhonova <anna.tikhonova@intel.com>
10596 Ilya Tocar <ilya.tocar@intel.com>
10597 Andrey Turetskiy <andrey.turetskiy@intel.com>
10598 Ilya Verbin <ilya.verbin@intel.com>
10599 Kirill Yukhin <kirill.yukhin@intel.com>
10600 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
10602 * config/i386/i386.c (ix86_rtx_costs): Enable fma for TARGET_AVX512F.
10603 * config/i386/sse.md (FMAMODEM): Changed modes and conditions.
10605 (fma<mode>4): Removed condition.
10606 (fms<mode>4): Ditto.
10607 (fnma<mode>4): Ditto.
10608 (fnms<mode>4): Ditto.
10609 (fma4i_fmadd_<mode>): Ditto.
10610 (*fma_fmadd_<mode>): Ditto.
10611 (*fma_fmsub_<mode>): Ditto.
10612 (*fma_fnmadd_<mode>): Ditto.
10613 (*fma_fnmsub_<mode>): Ditto.
10614 (fmaddsub_<mode>): Allow for TARGET_AVX512F.
10615 (*fma_fmaddsub_<mode>): Ditto.
10616 (*fma_fmsubadd_<mode>): Ditto.
10617 (*fmai_fmadd_<mode>): Ditto.
10618 (*fmai_fmsub_<mode>): Ditto.
10619 (*fmai_fnmadd_<mode>): Ditto.
10620 (*fmai_fnmsub_<mode>): Ditto.
10622 2013-10-11 Alexander Ivchenko <alexander.ivchenko@intel.com>
10623 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
10624 Sergey Lega <sergey.s.lega@intel.com>
10625 Anna Tikhonova <anna.tikhonova@intel.com>
10626 Ilya Tocar <ilya.tocar@intel.com>
10627 Andrey Turetskiy <andrey.turetskiy@intel.com>
10628 Ilya Verbin <ilya.verbin@intel.com>
10629 Kirill Yukhin <kirill.yukhin@intel.com>
10630 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
10632 * config/i386/sse.md (VI248_AVX2_8_AVX512F): New.
10633 (VI124_256): Changed to ...
10634 (VI124_256_48_512): This.
10635 (ssepackmode): Extended with wider modes.
10636 (<code><mode>3): Changed iterator.
10637 (*avx2_<code><mode>3): Ditto.
10638 (vec_pack_trunc_<mode>): Ditto.
10640 2013-10-11 Alexander Ivchenko <alexander.ivchenko@intel.com>
10641 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
10642 Sergey Lega <sergey.s.lega@intel.com>
10643 Anna Tikhonova <anna.tikhonova@intel.com>
10644 Ilya Tocar <ilya.tocar@intel.com>
10645 Andrey Turetskiy <andrey.turetskiy@intel.com>
10646 Ilya Verbin <ilya.verbin@intel.com>
10647 Kirill Yukhin <kirill.yukhin@intel.com>
10648 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
10650 * config/i386/sse.md (VI124_AVX2_48_AVX512F): New.
10651 (VI8F_256_512): Ditto.
10652 (abs<mode>2): Changed iterator.
10653 (avx2_perm<mode>): Changed to ...
10654 (<avx2_avx512f>_perm<mode>): This.
10655 (avx2_perm<mode>_1): Changed to ...
10656 (<avx2_avx512f>_perm<mode>_1): This.
10658 2013-10-11 Alexander Ivchenko <alexander.ivchenko@intel.com>
10659 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
10660 Sergey Lega <sergey.s.lega@intel.com>
10661 Anna Tikhonova <anna.tikhonova@intel.com>
10662 Ilya Tocar <ilya.tocar@intel.com>
10663 Andrey Turetskiy <andrey.turetskiy@intel.com>
10664 Ilya Verbin <ilya.verbin@intel.com>
10665 Kirill Yukhin <kirill.yukhin@intel.com>
10666 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
10668 * config/i386/sse.md (VI48_AVX512F): New.
10669 (VI48_AVX2): Changed to ...
10670 (VI48_AVX2_48_AVX512F): This.
10671 (avx2_ashrv<mode>): Changed to ...
10672 (<avx2_avx512f>_ashrv<mode>): This.
10673 (avx2_<shift_insn>v<mode>): Changed to ...
10674 (<avx2_avx512f>_<shift_insn>v<mode>): This.
10676 2013-10-11 Alexander Ivchenko <alexander.ivchenko@intel.com>
10677 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
10678 Sergey Lega <sergey.s.lega@intel.com>
10679 Anna Tikhonova <anna.tikhonova@intel.com>
10680 Ilya Tocar <ilya.tocar@intel.com>
10681 Andrey Turetskiy <andrey.turetskiy@intel.com>
10682 Ilya Verbin <ilya.verbin@intel.com>
10683 Kirill Yukhin <kirill.yukhin@intel.com>
10684 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
10686 * config/i386/sse.md (VI4_AVX512F): New.
10687 (VI8_AVX2_AVX512F): Ditto.
10688 (mul<mode>3): Extended with wider modes.
10689 (*<sse4_1_avx2>_mul<mode>3): Ditto.
10690 (mul<mode>3): Ditto.
10691 (vec_widen_<s>mult_odd_<mode>): Ditto.
10693 2013-10-11 Alexander Ivchenko <alexander.ivchenko@intel.com>
10694 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
10695 Sergey Lega <sergey.s.lega@intel.com>
10696 Anna Tikhonova <anna.tikhonova@intel.com>
10697 Ilya Tocar <ilya.tocar@intel.com>
10698 Andrey Turetskiy <andrey.turetskiy@intel.com>
10699 Ilya Verbin <ilya.verbin@intel.com>
10700 Kirill Yukhin <kirill.yukhin@intel.com>
10701 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
10703 * config/i386/sse.md (VI2_AVX512F): New.
10704 (VI124_AVX512F): Ditto.
10705 (sseunpackmode): Extended with wider modes.
10706 (sseunpackfltmode): Ditto.
10707 (vec_unpacks_float_hi_<mode>): Ditto.
10708 (vec_unpacks_float_lo_<mode>): Ditto.
10709 (vec_unpacku_float_hi_<mode>): Ditto.
10710 (vec_unpacku_float_lo_<mode>): Ditto.
10711 (vec_unpacks_lo_<mode>): Ditto.
10712 (vec_unpacks_hi_<mode>): Ditto.
10713 (vec_unpacku_lo_<mode>): Ditto.
10714 (vec_unpacku_hi_<mode>): Ditto.
10716 2013-10-11 Alexander Ivchenko <alexander.ivchenko@intel.com>
10717 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
10718 Sergey Lega <sergey.s.lega@intel.com>
10719 Anna Tikhonova <anna.tikhonova@intel.com>
10720 Ilya Tocar <ilya.tocar@intel.com>
10721 Andrey Turetskiy <andrey.turetskiy@intel.com>
10722 Ilya Verbin <ilya.verbin@intel.com>
10723 Kirill Yukhin <kirill.yukhin@intel.com>
10724 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
10726 * config/i386/i386.md (multdiv): New.
10727 (multdiv_mnemonic): Ditto.
10728 * config/i386/sse.md (<sse>_vmmul<mode>3): Changed to...
10729 (<sse>_vm<multdiv_mnemonic><mode>3): This.
10730 (<sse>_vmdiv<mode>3): Removed.
10732 2013-10-11 Alexander Ivchenko <alexander.ivchenko@intel.com>
10733 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
10734 Sergey Lega <sergey.s.lega@intel.com>
10735 Anna Tikhonova <anna.tikhonova@intel.com>
10736 Ilya Tocar <ilya.tocar@intel.com>
10737 Andrey Turetskiy <andrey.turetskiy@intel.com>
10738 Ilya Verbin <ilya.verbin@intel.com>
10739 Kirill Yukhin <kirill.yukhin@intel.com>
10740 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
10742 * config/i386/sse.md (V): Extended with wider modes.
10744 (ssehalfvecmode): Ditto.
10746 (ssepackfltmode): Ditto.
10747 (avx_vec_concat<mode>): Ditto.
10748 (V_256_512): New iterator.
10749 (VF2_512_256): Ditto.
10750 (si2dfmode): New attribute.
10751 (si2dfmodelower): Ditto.
10752 (sf2dfmode): Ditto.
10753 (concat_tg_mode): Ditto.
10754 (floatv4siv4df2): Changed to ...
10755 (float<si2dfmodelower><mode>2): This.
10756 (avx_cvtps2pd256): Changed to ...
10757 (<sse2_avx_avx512f>_cvtps2pd<avxsizesuffix>): This.
10758 (vec_pack_trunc_v4df): Changed to ...
10759 (vec_pack_trunc_<mode>): This.
10760 (avx_vpermil<mode>): Changed to ...
10761 (<sse2_avx_avx512f>_vpermil<mode>): This.
10762 (<fixsuffix>fix_truncv8dfv8si2): New.
10763 (vec_pack_sfix_trunc_v8df): Ditto.
10764 (avx512f_rndscale<mode>): Ditto.
10765 (avx512f_roundpd512): Ditto.
10766 (vec_pack_ufix_trunc_<mode>): Updated iterator.
10768 2013-10-11 Alexander Ivchenko <alexander.ivchenko@intel.com>
10769 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
10770 Sergey Lega <sergey.s.lega@intel.com>
10771 Anna Tikhonova <anna.tikhonova@intel.com>
10772 Ilya Tocar <ilya.tocar@intel.com>
10773 Andrey Turetskiy <andrey.turetskiy@intel.com>
10774 Ilya Verbin <ilya.verbin@intel.com>
10775 Kirill Yukhin <kirill.yukhin@intel.com>
10776 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
10778 * config/i386/i386.md (any_fix): New iterator.
10779 (fixsuffix): New attribute.
10780 * config/i386/sse.md (VF1): Extened with wider modes.
10784 (sseintvecmodelower): Ditto.
10785 (ssescalarmode): Ditto.
10786 (ssescalarnum): Ditto.
10787 (VF1_128_256): New.
10788 (ssexmmmode): Ditto.
10789 (<fixsuffix>fix_truncv16sfv16si2): Ditto.
10790 (<sse>_rcp<mode>2): Change iterator.
10791 (rsqrt<mode>2): Ditto.
10792 (<sse>_rsqrt<mode>2): Ditto.
10793 (avx2_vec_dup<mode>): Ditto.
10794 (<sse4_1>_round<ssemodesuffix>_sfix<avxsizesuffix>): Ditto.
10795 (round<mode>2_sfix): Ditto.
10796 (avx2_pbroadcast<mode>): Ditto.
10797 (*andnot<mode>3): Handle XI mode.
10798 (*<code><mode>3): Ditto.
10799 (AVXTOSSEMODE): Removed.
10800 (avx_vpermil<mode>): Changed to ...
10801 (<sse2_avx_avx512f>_vpermil<mode>): This.
10803 2013-10-11 Alexander Ivchenko <alexander.ivchenko@intel.com>
10804 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
10805 Sergey Lega <sergey.s.lega@intel.com>
10806 Anna Tikhonova <anna.tikhonova@intel.com>
10807 Ilya Tocar <ilya.tocar@intel.com>
10808 Andrey Turetskiy <andrey.turetskiy@intel.com>
10809 Ilya Verbin <ilya.verbin@intel.com>
10810 Kirill Yukhin <kirill.yukhin@intel.com>
10811 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
10813 * config/i386/sse.md (<sse2>_movnt<mode>): Update constraint to "v".
10814 (<sse>_comi): Ditto.
10815 (<sse>_ucomi): Ditto.
10816 (sse_cvtss2siq_2): Ditto.
10817 (sse2_cvtsd2si): Ditto.
10818 (sse2_cvtsd2siq): Ditto.
10819 (sse2_cvttsd2si): Ditto.
10820 (sse2_cvttsd2siq): Ditto.
10821 (<shift_insn><mode>3): Ditto.
10822 (sse2_cvtsi2sdq): Update constraint and prefix.
10823 (sse_cvtsi2ss): Update prefix.
10824 (sse_cvtsi2ssq): Ditto.
10826 2013-10-11 Jakub Jelinek <jakub@redhat.com>
10828 * tree-vrp.c (infer_nonnull_range): Use is_gimple_call,
10829 ignore internal calls.
10831 2013-10-11 Richard Biener <rguenther@suse.de>
10833 * tree-pretty-print.c (dump_generic_node): Allow to dump both (D)
10834 and (ab) for SSA_NAMEs. Mark INTEGER_CSTs with (OVF) if
10835 TREE_OVERFLOW is set.
10837 2013-10-11 Thomas Schwinge <thomas@codesourcery.com>
10839 * tree.h (OMP_CLAUSE_CODE): Remove duplicate definition.
10841 * gimple.c: GIMPLE statements have subcodes, not sub-codes.
10842 * gimple.h: Likewise.
10844 * doc/generic.texi (OpenMP): OMP_CLAUSE_* are subcodes, not sub-codes.
10846 * doc/generic.texi (Adding new DECL node types): Explain *_CHECK
10849 * doc/gimple.texi (is_gimple_omp): Move into the correct section.
10851 * acinclude.m4 (gcc_GAS_FLAGS): Add more gcc_cv_as_flags overrides.
10852 * configure: Regenerate.
10854 2013-10-11 Jakub Jelinek <jakub@redhat.com>
10856 * tree-pretty-print.c (dump_omp_clause): Handle OMP_CLAUSE__LOOPTEMP_
10857 and new OpenMP 4.0 clauses, handle UDR OMP_CLAUSE_REDUCTION,
10858 formatting fixes, use pp_colon instead of pp_character (..., ':'),
10859 similarly pp_right_paren.
10860 (dump_generic_node): Handle OMP_DISTRIBUTE, OMP_TEAMS,
10861 OMP_TARGET_DATA, OMP_TARGET, OMP_TARGET_UPDATE, OMP_TASKGROUP,
10862 allow OMP_FOR_INIT to be NULL, handle OMP_ATOMIC_SEQ_CST.
10863 * tree.c (omp_clause_num_ops, omp_clause_code_name): Add OpenMP 4.0
10865 (omp_declare_simd_clauses_equal,
10866 omp_remove_redundant_declare_simd_attrs): New functions.
10867 (attribute_value_equal): Use omp_declare_simd_clauses_equal.
10868 (walk_tree_1): Handle new OpenMP 4.0 clauses.
10869 * tree.h (OMP_LOOP_CHECK): Define.
10870 (OMP_FOR_BODY, OMP_FOR_CLAUSES, OMP_FOR_INIT, OMP_FOR_COND,
10871 OMP_FOR_INCR, OMP_FOR_PRE_BODY): Use it.
10872 (OMP_TASKGROUP_BODY, OMP_TEAMS_BODY, OMP_TEAMS_CLAUSES,
10873 OMP_TARGET_DATA_BODY, OMP_TARGET_DATA_CLAUSES, OMP_TARGET_BODY,
10874 OMP_TARGET_CLAUSES, OMP_TARGET_UPDATE_CLAUSES, OMP_CLAUSE_SIZE,
10875 OMP_ATOMIC_SEQ_CST, OMP_CLAUSE_DEPEND_KIND, OMP_CLAUSE_MAP_KIND,
10876 OMP_CLAUSE_MAP_ZERO_BIAS_ARRAY_SECTION, OMP_CLAUSE_PROC_BIND_KIND,
10877 OMP_CLAUSE_REDUCTION_OMP_ORIG_REF, OMP_CLAUSE_ALIGNED_ALIGNMENT,
10878 OMP_CLAUSE_NUM_TEAMS_EXPR, OMP_CLAUSE_THREAD_LIMIT_EXPR,
10879 OMP_CLAUSE_DEVICE_ID, OMP_CLAUSE_DIST_SCHEDULE_CHUNK_EXPR,
10880 OMP_CLAUSE_SIMDLEN_EXPR): Define.
10881 (OMP_CLAUSE_DECL): Change range up to OMP_CLAUSE__LOOPTEMP_.
10882 (omp_remove_redundant_declare_simd_attrs): New prototype.
10883 * gimple.def (GIMPLE_OMP_TASKGROUP, GIMPLE_OMP_TARGET,
10884 GIMPLE_OMP_TEAMS): New codes.
10885 (GIMPLE_OMP_RETURN): Use GSS_OMP_ATOMIC_STORE instead of GSS_BASE.
10886 * omp-low.c (struct omp_context): Add cancel_label and cancellable
10888 (target_nesting_level): New variable.
10889 (extract_omp_for_data): Handle GF_OMP_FOR_KIND_DISTRIBUTE and
10890 OMP_CLAUSE_DIST_SCHEDULE. Don't fallback to library implementation
10891 for collapse > 1 static schedule unless ordered.
10892 (get_ws_args_for): Add par_stmt argument. Handle combined loops.
10893 (determine_parallel_type): Adjust get_ws_args_for caller.
10894 (install_var_field): Handle mask & 4 for double indirection.
10895 (scan_sharing_clauses): Ignore shared clause on teams construct.
10896 Handle OMP_CLAUSE__LOOPTEMP_ and new OpenMP 4.0 clauses.
10897 (create_omp_child_function): If inside target or declare target
10898 constructs, set "omp declare target" attribute on the child function.
10899 (find_combined_for): New function.
10900 (scan_omp_parallel): Handle combined loops.
10901 (scan_omp_target, scan_omp_teams): New functions.
10902 (check_omp_nesting_restrictions): Check new OpenMP 4.0 nesting
10903 restrictions and set ctx->cancellable for cancellable constructs.
10904 (scan_omp_1_stmt): Call check_omp_nesting_restrictions also on
10905 selected builtin calls. Handle GIMPLE_OMP_TASKGROUP,
10906 GIMPLE_OMP_TARGET, GIMPLE_OMP_TEAMS.
10907 (build_omp_barrier): Add lhs argument, return gimple rather than tree.
10908 (omp_clause_aligned_alignment): New function.
10909 (lower_rec_simd_input_clauses): Only call SET_DECL_VALUE_EXPR on decls.
10910 (lower_rec_input_clauses): Add FD argument. Ignore shared clauses
10911 on teams constructs. Handle user defined reductions and new
10912 OpenMP 4.0 clauses.
10913 (lower_reduction_clauses): Don't set placeholder to address of ref
10914 if it has already the right type.
10915 (lower_send_clauses): Handle OMP_CLAUSE__LOOPTEMP_.
10916 (expand_parallel_call): Use the new non-_start suffixed builtins,
10917 handle OMP_CLAUSE_PROC_BIND, don't call the outlined function
10918 and GOMP_parallel_end after the call.
10919 (expand_task_call): Handle OMP_CLAUSE_DEPEND.
10920 (expand_omp_for_init_counts): Handle combined loops.
10921 (expand_omp_for_init_vars): Add inner_stmt argument, handle combined
10923 (expand_omp_for_generic): Likewise. Use GOMP_loop_end_cancel at the
10924 end of cancellable loops.
10925 (expand_omp_for_static_nochunk, expand_omp_for_static_chunk):
10926 Likewise. Handle collapse > 1 loops.
10927 (expand_omp_simd): Handle combined loops.
10928 (expand_omp_for): Add inner_stmt argument, adjust callers of
10929 expand_omp_for* functions, use expand_omp_for_static*chunk even
10930 for collapse > 1 unless ordered.
10931 (expand_omp_sections): Use GOMP_sections_end_cancel at the end
10932 of cancellable sections.
10933 (expand_omp_single): Remove need_barrier variable, just rely on
10934 gimple_omp_return_nowait_p. Adjust build_omp_barrier caller.
10935 (expand_omp_synch): Allow GIMPLE_OMP_TASKGROUP and GIMPLE_OMP_TEAMS.
10936 (expand_omp_atomic_load, expand_omp_atomic_store,
10937 expand_omp_atomic_fetch_op): Handle gimple_omp_atomic_seq_cst_p.
10938 (expand_omp_target): New function.
10939 (expand_omp): Handle combined loops. Handle GIMPLE_OMP_TASKGROUP,
10940 GIMPLE_OMP_TEAMS, GIMPLE_OMP_TARGET.
10941 (build_omp_regions_1): Immediately close region for
10942 GF_OMP_TARGET_KIND_UPDATE.
10943 (maybe_add_implicit_barrier_cancel): New function.
10944 (lower_omp_sections): Adjust lower_rec_input_clauses caller. Handle
10946 (lower_omp_single): Likewise. Add clobber after the barrier.
10947 (lower_omp_taskgroup): New function.
10948 (lower_omp_for): Handle combined loops. Adjust
10949 lower_rec_input_clauses caller. Handle cancellation.
10950 (lower_depend_clauses): New function.
10951 (lower_omp_taskreg): Lower depend clauses. Adjust
10952 lower_rec_input_clauses caller. Add clobber after the call. Handle
10954 (lower_omp_target, lower_omp_teams): New functions.
10955 (lower_omp_1): Handle cancellation. Handle GIMPLE_OMP_TASKGROUP,
10956 GIMPLE_OMP_TARGET, GIMPLE_OMP_TEAMS and GOMP_barrier, GOMP_cancel
10957 and GOMP_cancellation_point calls.
10958 (lower_omp): Fold stmts inside of target region.
10959 (diagnose_sb_1, diagnose_sb_2): Handle GIMPLE_OMP_TASKGROUP,
10960 GIMPLE_OMP_TARGET and GIMPLE_OMP_TEAMS.
10961 * builtin-types.def (DEF_FUNCTION_TYPE_8): Document.
10962 (BT_FN_VOID_OMPFN_PTR_UINT,
10963 BT_FN_VOID_OMPFN_PTR_UINT_LONG_LONG_LONG,
10964 BT_FN_VOID_OMPFN_PTR_UINT_LONG_LONG_LONG_LONG,
10965 BT_FN_VOID_OMPFN_PTR_OMPCPYFN_LONG_LONG_BOOL_UINT): Remove.
10966 (BT_FN_VOID_OMPFN_PTR_UINT_UINT_UINT,
10967 BT_FN_VOID_OMPFN_PTR_UINT_LONG_LONG_LONG_UINT,
10968 BT_FN_VOID_OMPFN_PTR_UINT_LONG_LONG_LONG_LONG_UINT,
10969 BT_FN_BOOL_INT, BT_FN_BOOL_INT_BOOL, BT_FN_VOID_UINT_UINT,
10970 BT_FN_VOID_INT_PTR_SIZE_PTR_PTR_PTR,
10971 BT_FN_VOID_INT_OMPFN_PTR_SIZE_PTR_PTR_PTR,
10972 BT_FN_VOID_OMPFN_PTR_OMPCPYFN_LONG_LONG_BOOL_UINT_PTR): New.
10973 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1,
10974 call_may_clobber_ref_p_1): Handle BUILT_IN_GOMP_BARRIER_CANCEL,
10975 BUILT_IN_GOMP_TASKGROUP_END, BUILT_IN_GOMP_LOOP_END_CANCEL,
10976 BUILT_IN_GOMP_SECTIONS_END_CANCEL. Don't handle
10977 BUILT_IN_GOMP_PARALLEL_END.
10978 * gimple-low.c (lower_stmt): Handle GIMPLE_OMP_TASKGROUP,
10979 GIMPLE_OMP_TARGET and GIMPLE_OMP_TEAMS.
10980 * gimple-pretty-print.c (dump_gimple_omp_for): Handle
10981 GF_OMP_FOR_KIND_DISTRIBUTE.
10982 (dump_gimple_omp_target, dump_gimple_omp_teams): New functions.
10983 (dump_gimple_omp_block): Handle GIMPLE_OMP_TASKGROUP.
10984 (dump_gimple_omp_return): Print lhs if it has any.
10985 (dump_gimple_omp_atomic_load, dump_gimple_omp_atomic_store): Handle
10986 gimple_omp_atomic_seq_cst_p.
10987 (pp_gimple_stmt_1): Handle GIMPLE_OMP_TASKGROUP, GIMPLE_OMP_TARGET
10988 and GIMPLE_OMP_TEAMS.
10989 * langhooks.c (lhd_omp_mappable_type): New function.
10990 * tree-vectorizer.c (struct simd_array_to_simduid): Fix up comment.
10991 * langhooks.h (struct lang_hooks_for_types): Add omp_mappable_type
10993 * gimplify.c (enum gimplify_omp_var_data): Add GOVD_MAP,
10994 GOVD_ALIGNED and GOVD_MAP_TO_ONLY.
10995 (enum omp_region_type): Add ORT_TEAMS, ORT_TARGET_DATA and ORT_TARGET.
10996 (struct gimplify_omp_ctx): Add combined_loop field.
10997 (gimplify_call_expr, gimplify_modify_expr): Don't call fold_stmt
10998 on stmts inside of target region.
10999 (is_gimple_stmt): Return true for OMP_DISTRIBUTE and OMP_TASKGROUP.
11000 (omp_firstprivatize_variable): Handle GOVD_MAP, GOVD_ALIGNED,
11001 ORT_TARGET and ORT_TARGET_DATA.
11002 (omp_add_variable): Avoid checks on readding var for GOVD_ALIGNED.
11004 (omp_notice_threadprivate_variable): Complain about threadprivate
11005 variables in target region.
11006 (omp_notice_variable): Complain about vars with non-mappable type
11007 in target region. Handle ORT_TEAMS, ORT_TARGET and ORT_TARGET_DATA.
11008 (omp_check_private): Ignore ORT_TARGET* regions.
11009 (gimplify_scan_omp_clauses, gimplify_adjust_omp_clauses_1,
11010 gimplify_adjust_omp_clauses): Handle new OpenMP 4.0 clauses.
11011 (find_combined_omp_for): New function.
11012 (gimplify_omp_for): Handle gimplification of combined loops.
11013 (gimplify_omp_workshare): Gimplify also OMP_TARGET, OMP_TARGET_DATA,
11015 (gimplify_omp_target_update): New function.
11016 (gimplify_omp_atomic): Handle OMP_ATOMIC_SEQ_CST.
11017 (gimplify_expr): Handle OMP_DISTRIBUTE, OMP_TARGET, OMP_TARGET_DATA,
11018 OMP_TARGET_UPDATE, OMP_TEAMS, OMP_TASKGROUP.
11019 (gimplify_body): If fndecl has "omp declare target" attribute, add
11020 implicit ORT_TARGET context around it.
11021 * tree.def (OMP_DISTRIBUTE, OMP_TEAMS, OMP_TARGET_DATA, OMP_TARGET,
11022 OMP_TASKGROUP, OMP_TARGET_UPDATE): New tree codes.
11023 * tree-nested.c (convert_nonlocal_reference_stmt,
11024 convert_local_reference_stmt, convert_gimple_call): Handle
11025 GIMPLE_OMP_TARGET, GIMPLE_OMP_TEAMS and GIMPLE_OMP_TASKGROUP.
11026 * omp-builtins.def (BUILT_IN_GOMP_TASK): Use
11027 BT_FN_VOID_OMPFN_PTR_OMPCPYFN_LONG_LONG_BOOL_UINT_PTR
11028 instead of BT_FN_VOID_OMPFN_PTR_OMPCPYFN_LONG_LONG_BOOL_UINT.
11029 (BUILT_IN_GOMP_TARGET, BUILT_IN_GOMP_TARGET_DATA,
11030 BUILT_IN_GOMP_TARGET_END_DATA, BUILT_IN_GOMP_TARGET_UPDATE,
11031 BUILT_IN_GOMP_TEAMS, BUILT_IN_BARRIER_CANCEL,
11032 BUILT_IN_GOMP_LOOP_END_CANCEL,
11033 BUILT_IN_GOMP_SECTIONS_END_CANCEL, BUILT_IN_OMP_GET_TEAM_NUM,
11034 BUILT_IN_OMP_GET_NUM_TEAMS, BUILT_IN_GOMP_TASKGROUP_START,
11035 BUILT_IN_GOMP_TASKGROUP_END, BUILT_IN_GOMP_PARALLEL_LOOP_STATIC,
11036 BUILT_IN_GOMP_PARALLEL_LOOP_DYNAMIC,
11037 BUILT_IN_GOMP_PARALLEL_LOOP_GUIDED,
11038 BUILT_IN_GOMP_PARALLEL_LOOP_RUNTIME, BUILT_IN_GOMP_PARALLEL,
11039 BUILT_IN_GOMP_PARALLEL_SECTIONS, BUILT_IN_GOMP_CANCEL,
11040 BUILT_IN_GOMP_CANCELLATION_POINT): New built-ins.
11041 (BUILT_IN_GOMP_PARALLEL_LOOP_STATIC_START,
11042 BUILT_IN_GOMP_PARALLEL_LOOP_DYNAMIC_START,
11043 BUILT_IN_GOMP_PARALLEL_LOOP_GUIDED_START,
11044 BUILT_IN_GOMP_PARALLEL_LOOP_RUNTIME_START,
11045 BUILT_IN_GOMP_PARALLEL_START, BUILT_IN_GOMP_PARALLEL_END,
11046 BUILT_IN_GOMP_PARALLEL_SECTIONS_START): Remove.
11047 * tree-inline.c (remap_gimple_stmt, estimate_num_insns):
11048 Handle GIMPLE_OMP_TARGET, GIMPLE_OMP_TEAMS and GIMPLE_OMP_TASKGROUP.
11049 * gimple.c (gimple_build_omp_taskgroup, gimple_build_omp_target,
11050 gimple_build_omp_teams): New functions.
11051 (walk_gimple_op): Handle GIMPLE_OMP_TARGET, GIMPLE_OMP_TEAMS and
11052 GIMPLE_OMP_TASKGROUP. Walk optional lhs on GIMPLE_OMP_RETURN.
11053 (walk_gimple_stmt, gimple_copy): Handle GIMPLE_OMP_TARGET,
11054 GIMPLE_OMP_TEAMS and GIMPLE_OMP_TASKGROUP.
11055 * gimple.h (enum gf_mask): GF_OMP_FOR_KIND_DISTRIBUTE,
11056 GF_OMP_FOR_COMBINED, GF_OMP_FOR_COMBINED_INTO,
11057 GF_OMP_TARGET_KIND_MASK, GF_OMP_TARGET_KIND_REGION,
11058 GF_OMP_TARGET_KIND_DATA, GF_OMP_TARGET_KIND_UPDATE,
11059 GF_OMP_ATOMIC_SEQ_CST): New.
11060 (gimple_build_omp_taskgroup, gimple_build_omp_target,
11061 gimple_build_omp_teams): New prototypes.
11062 (gimple_has_substatements): Handle GIMPLE_OMP_TARGET,
11063 GIMPLE_OMP_TEAMS and GIMPLE_OMP_TASKGROUP.
11064 (gimple_omp_subcode): Use GIMPLE_OMP_TEAMS instead of
11065 GIMPLE_OMP_SINGLE as end of range.
11066 (gimple_omp_return_set_lhs, gimple_omp_return_lhs,
11067 gimple_omp_return_lhs_ptr, gimple_omp_atomic_seq_cst_p,
11068 gimple_omp_atomic_set_seq_cst, gimple_omp_for_combined_p,
11069 gimple_omp_for_set_combined_p, gimple_omp_for_combined_into_p,
11070 gimple_omp_for_set_combined_into_p, gimple_omp_target_clauses,
11071 gimple_omp_target_clauses_ptr, gimple_omp_target_set_clauses,
11072 gimple_omp_target_kind, gimple_omp_target_set_kind,
11073 gimple_omp_target_child_fn, gimple_omp_target_child_fn_ptr,
11074 gimple_omp_target_set_child_fn, gimple_omp_target_data_arg,
11075 gimple_omp_target_data_arg_ptr, gimple_omp_target_set_data_arg,
11076 gimple_omp_teams_clauses, gimple_omp_teams_clauses_ptr,
11077 gimple_omp_teams_set_clauses): New inlines.
11078 (CASE_GIMPLE_OMP): Add GIMPLE_OMP_TARGET, GIMPLE_OMP_TEAMS
11079 and GIMPLE_OMP_TASKGROUP.
11080 * tree-core.h (enum omp_clause_code): Add new OpenMP 4.0 clause codes.
11081 (enum omp_clause_depend_kind, enum omp_clause_map_kind,
11082 enum omp_clause_proc_bind_kind): New.
11083 (union omp_clause_subcode): Add depend_kind, map_kind and
11084 proc_bind_kind fields.
11085 * tree-cfg.c (make_edges): Handle GIMPLE_OMP_TARGET,
11086 GIMPLE_OMP_TEAMS and GIMPLE_OMP_TASKGROUP.
11087 * langhooks-def.h (lhd_omp_mappable_type): New prototype.
11088 (LANG_HOOKS_OMP_MAPPABLE_TYPE): Define.
11089 (LANG_HOOKS_FOR_TYPES_INITIALIZER): Add it.
11091 2013-10-10 Teresa Johnson <tejohnson@google.com>
11093 * predict.c (tree_estimate_probability): Add new parameter
11094 for estimate_bb_frequencies.
11095 (estimate_bb_frequencies): Add new parameter to force estimation.
11096 (rebuild_frequencies): When max frequency in function is small,
11097 recompute counts from frequencies.
11098 * predict.h (estimate_bb_frequencies): New parameter.
11100 2013-10-10 David Malcolm <dmalcolm@redhat.com>
11102 * ipa-inline.c (ipa_inline): Fix leak of "order" when
11103 optimizations are disabled.
11105 2013-10-10 David Malcolm <dmalcolm@redhat.com>
11107 * coverage.c (coverage_finish): Fix leak of da_file_name.
11109 2013-10-10 Jan Hubicka <jh@suse.cz>
11111 * config/i386/x86-tune.def: Enable X86_TUNE_SSE_TYPELESS_STORES
11112 for generic, enable X86_TUNE_SSE_LOAD0_BY_PXOR for Bulldozer,
11113 Bobcat and generic.
11115 2013-10-10 Jakub Jelinek <jakub@redhat.com>
11117 PR middle-end/58670
11118 * stmt.c (expand_asm_operands): Add FALLTHRU_BB argument,
11119 if any labels are in FALLTHRU_BB, use a special label emitted
11120 immediately after the asm goto insn rather than label_rtx
11122 (expand_asm_stmt): Adjust caller.
11123 * cfgrtl.c (commit_one_edge_insertion): Force splitting of
11124 edge if the last insn in predecessor is a jump with single successor,
11125 but it isn't simplejump_p.
11127 2013-10-10 Richard Biener <rguenther@suse.de>
11129 PR tree-optimization/58656
11130 * tree-ssa-pre.c (phi_translate): Do not cache failed translations.
11132 2013-10-10 Andrew MacLeod <amacleod@redhat.com>
11134 * gimplify.c: Include expr.h and tm_p.h for targets with special
11135 va-arg padding requirements.
11137 2013-10-10 Andrew MacLeod <amacleod@redhat.com>
11139 * tree-flow.h: Move some prototypes to gimple.h.
11140 (gimple_fold_indirect_ref): Move prototype to gimple-fold.h.
11141 * gimple.h: Relocate some prototypes from tree-flow.h
11142 * builtins.c (std_gimplify_va_arg_expr, build_va_arg_indirect_ref):
11143 Move to gimplify.c.
11144 * gimplify.c (gimple_fold_indirect_ref): Move to gimple-fold.c.
11145 (build_va_arg_indirect_ref): Relocate and make static.
11146 (std_gimplify_va_arg_expr): Relocate here.
11147 * gimple-fold.c (gimple_fold_indirect_ref): Relocate here.
11148 * gimple-fold.h (gimple_fold_indirect_ref): Add prototype.
11150 2013-10-10 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
11152 * doc/md.texi: Document the mnemonic attribute.
11154 2013-10-10 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
11157 * gensupport.c (gen_mnemonic_attr): Handle (set (attr x) y) and
11158 (set_attr_alternative x ...) when searching for user defined
11159 mnemonic attribute.
11161 2013-10-10 Andrew MacLeod <amacleod@redhat.com>
11163 * config/aplha/alpha.c: Add gimple-ssa.h to include list.
11165 2013-10-09 Easwaran Raman <eraman@google.com>
11167 * params.def (PARAM_MIN_SIZE_FOR_STACK_SHARING): New param...
11168 * cfgexpand.c (defer_stack_allocation): ...use here
11169 * doc/invoke.texi: Add documentation for min-size-for-stack-sharing.
11171 2013-10-09 Zhenqiang Chen <zhenqiang.chen@arm.com>
11173 * tree-ssa-phiopts.c (rhs_is_fed_for_value_replacement): New function.
11174 (operand_equal_for_value_replacement): New function, extracted from
11175 value_replacement and enhanced to catch more cases.
11176 (value_replacement): Use operand_equal_for_value_replacement.
11178 2013-10-09 Andrew MacLeod <amacleod@redhat.com>
11180 * loop-doloop.c (doloop_modify, doloop_optimize): Use
11181 get_max_loop_iterations.
11183 2013-10-09 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
11185 * config/arm/aarch-common.c (arm_early_load_addr_dep):
11186 Place comment above function.
11188 2013-10-09 Andrew MacLeod <amacleod@redhat.com>
11190 * tree-flow.h: Remove all remaining prototypes, enums and structs that
11191 are not related to tree-cfg.c.
11192 * tree-ssa-address.h: New file. Relocate prototypes.
11193 * tree-ssa-address.c: (struct mem_address): Relocate from tree-flow.h.
11194 (addr_for_mem_ref): New. Combine call to get_address_description and
11195 return addr_for_mem_ref.
11196 * expr.c (expand_expr_real_1): Use new addr_for_mem_ref routine.
11197 * tree-ssa-live.h: Adjust prototypes.
11198 * passes.c: Include tree-ssa-live.h.
11199 * gimple-pretty-print.h (gimple_dump_bb): Add prototype.
11200 * graphite.c (graphite_transform_loops): Make static.
11201 (graphite_transforms, gate_graphite_transforms, pass_data_graphite,
11202 make_pass_graphite, pass_data_graphite_transforms,
11203 make_pass_graphite_transforms): Relocate here from tree-ssa-loop.c.
11204 * ipa-pure-const.c (warn_function_noreturn): Make static.
11205 (execute_warn_function_noreturn, gate_warn_function_noreturn,
11206 class pass_warn_function_noreturn, make_pass_warn_function_noreturn):
11207 Relocate from tree-cfg.c
11208 * tree-cfg.c (tree_node_can_be_shared, gimple_empty_block_p): Make
11210 (execute_warn_function_noreturn, gate_warn_function_noreturn,
11211 class pass_warn_function_noreturn, make_pass_warn_function_noreturn):
11212 Move to ipa-pure-const.c.
11213 (execute_fixup_cfg, class pass_fixup_cfg, make_pass_fixup_cfg):
11214 Relocate from tree-optimize.c.
11215 * tree-optimize.c (execute_fixup_cfg, class pass_fixup_cfg,
11216 make_pass_fixup_cfg): Move to tree-cfg.c.
11217 * tree-chrec.h: (enum ev_direction): Relocate here from tree-flow.h.
11218 Relocate some prototypes.
11219 * tree-data-ref.h (tree_check_data_deps) Add prototype.
11220 * tree-dump.c (dump_function_to_file): Remove prototype.
11221 Add tree-flow.h to the include file.
11222 * tree-dump.h: Remove prototype.
11223 * tree-parloops.h: New File. Add prototypes.
11224 * tree-parloops.c (gate_tree_parallelize_loops, tree_parallelize_loops,
11225 pass_data_parallelize_loops, make_pass_parallelize_loops): Relocate
11226 from tree-ssa-loop.c.
11227 * tree-predcom.c (run_tree_predictive_commoning,
11228 gate_tree_predictive_commoning, pass_data_predcom, make_pass_predcom):
11229 Relocate here from tree-ssa-loop.c.
11230 * tree-ssa-dom.c (tree_ssa_dominator_optimize) Don't call
11231 ssa_name_values.release ().
11232 * tree-ssa-threadedge.h: New File. Relocate prototypes here.
11233 (ssa_name_values): Relocate from tree-flow.h.
11234 * tree-ssa.h: Include tree-ssa-threadedge.h and tree-ssa-address.h.
11235 * tree-ssa-loop.c (run_tree_predictive_commoning,
11236 gate_tree_predictive_commoning, pass_data_predcom, make_pass_predcom,
11237 graphite_transforms, gate_graphite_transforms, pass_data_graphite,
11238 make_pass_graphite, pass_data_graphite_transforms,
11239 make_pass_graphite_transforms, gate_tree_parallelize_loops,
11240 tree_parallelize_loops, pass_data_parallelize_loops,
11241 make_pass_parallelize_loops): Move to other files.
11242 * tree-vectorizer.h (lpeel_tree_duplicate_loop_to_edge_cfg): Prototype
11244 * tree.h: Remove prototypes from tree-address.c.
11246 2013-10-09 Andrew MacLeod <amacleod@redhat.com>
11248 * tree-flow.h (tm_restart_node, gimple_df): Move to gimple-ssa.h.
11249 (struct int_tree_map): Move to tree-hasher.h
11250 (SCALE, LABEL, PERCENT): Move to gimple.h
11251 * tree-flow-inline.h: Delete. Move functions to other files.
11252 (unmodifiable_var_p, ref_contains_array_ref): Unused, so delete.
11253 * gimple-ssa.h (tm_restart_node, gimple_df): Relocate from tree-flow.h.
11254 (gimple_in_ssa_p, gimple_vop): Relocate from tree-flow-inline.h
11255 * gimple.h (imple_stmt_max_uid, set_gimple_stmt_max_uid,
11256 inc_gimple_stmt_max_uid, get_lineno): Relocate from tree-flow-inline.h.
11257 (SCALE, LABEL, PERCENT): Relocate from tree-flow.h
11258 * tree-hasher.h: Don't include tree-flow.h.
11259 (struct int_tree_map): Relocate from tree-flow.h.
11260 * tree-sra.c (contains_view_convert_expr_p): Relocate from
11261 tree-flow-inline.h and make static.
11262 * tree-ssa-alias.h (ranges_overlap_p): Relocate from
11263 tree-flow-inline.h.
11264 * tree-ssa-operands.c (gimple_ssa_operands): Relocate from
11265 tree-flow-inline.h and make static.
11266 * tree.h (is_global_var, may_be_aliased): Relocate from
11267 tree-flow-inline.h.
11268 * Makefile.in (GTFILES): Remove tree-flow.h and add gimple-ssa.h.
11269 * value-prof.c: No longer include tree-flow-inline.h.
11270 * tree-switch-conversion.c: No longer include tree-flow-inline.h.
11272 2013-10-09 Andrew MacLeod <amacleod@redhat.com>
11274 * tree-flow.h: Move some protoypes. Include new tree-ssa-loop.h.
11275 (struct affine_iv, struct tree_niter_desc): Move to tree-ssa-loop.h.
11276 (enum move_pos): Move to tree-ssa-loop-im.h
11277 * cfgloop.h: Move some prototypes.
11278 (gcov_type_to_double_int): relocate from tree-ssa-loop.niter.c.
11279 * tree-flow-inline.h (loop_containing_stmt): Move to tree-ssa-loop.h.
11280 * tree-ssa-loop.h: New File. Include other tree-ssa-loop-*.h files.
11281 (struct affine_iv, struct tree_niter_desc): Relocate from tree-flow.h.
11282 (loop_containing_stmt): Relocate from tree-flow-inline.h.
11283 * tree-ssa-loop-ch.c: (do_while_loop_p): Make static.
11284 * tree-ssa-loop-im.c (for_each_index): Move to tree-ssa-loop.c.
11285 (enum move_pos): Relocate here.
11286 (lsm_tmp_name_add, gen_lsm_tmp_name, get_lsm_tmp_name): Move to
11288 (execute_sm_if_changed_flag_set): Change get_lsm_tmp_name call.
11289 (tree_ssa_loop_im, gate_tree_ssa_loop_im, pass_data_lim,
11290 make_pass_lim): Relocate here from tree-ssa-loop.c.
11291 * tree-ssa-loop-ivcanon.c (tree_num_loop_insns): Move to
11293 (loop_edge_to_cancel, unloop_loops): Make static.
11294 (tree_ssa_loop_ivcanon, gate_tree_ssa_loop_ivcanon, pass_data_iv_canon,
11295 make_pass_iv_canon): Relocate from tree-ssa-loop.c.
11296 (tree_complete_unroll, gate_tree_complete_unroll,
11297 pass_data_complete_unroll, make_pass_complete_unroll): Relocate here.
11298 (tree_complete_unroll_inner, gate_tree_complete_unroll_inner,
11299 pass_data_complete_unrolli, make_pass_complete_unrolli): Relocate here.
11300 * tree-ssa-loop-ivopts.c: Remove local prototypes.
11301 (stmt_invariant_in_loop_p): Remove unused function.
11302 * tree-ssa-loop-ivopts.h: New file. Add prototypes.
11303 * tree-ssa-loop-manip.h: New file. Add prototypes.
11304 * tree-ssa-loop-niter.c (record_niter_bound): Move to cfgloop.c.
11305 (gcov_type_to_double_int): Move to cfgloop.h.
11306 (double_int_cmp, bound_index,
11307 estimate_numbers_of_iterations_loop): Make static.
11308 (estimated_loop_iterations): Factor out get_estimated_loop_iterations.
11309 (max_loop_iterations): Factor out get_max_loop_iterations.
11310 (estimated_loop_iterations_int, max_stmt_executions_int): Move to
11312 * tree-ssa-loop-niter.h: New file. Add prototypes.
11313 * tree-ssa-loop-prefetch.c (tree_ssa_loop_prefetch,
11314 gate_tree_ssa_loop_prefetch, pass_data_loop_prefetch,
11315 make_pass_loop_prefetch): Relocate from tree-ssa-loop.c.
11316 * tree-ssa-loop-unswitch.c (tree_ssa_loop_unswitch,
11317 gate_tree_ssa_loop_unswitch, pass_data_tree_unswitch,
11318 make_pass_tree_unswitch): Relocate from tree-ssa-loop.c.
11319 * tree-ssa-loop.c (tree_ssa_loop_im, gate_tree_ssa_loop_im,
11320 pass_data_lim, make_pass_lim): Move to tree-ssa-loop-im.c.
11321 (tree_ssa_loop_unswitch, gate_tree_ssa_loop_unswitch,
11322 pass_data_tree_unswitch, make_pass_tree_unswitch): Move.
11323 (tree_ssa_loop_ivcanon, gate_tree_ssa_loop_ivcanon, pass_data_iv_canon,
11324 make_pass_iv_canon, tree_complete_unroll, gate_tree_complete_unroll,
11325 pass_data_complete_unroll, make_pass_complete_unroll,
11326 tree_complete_unroll_inner, gate_tree_complete_unroll_inner,
11327 pass_data_complete_unrolli, make_pass_complete_unrolli): Move to
11328 tree-ssa-loop-ivcanon.c.
11329 (tree_ssa_loop_prefetch, gate_tree_ssa_loop_prefetch,
11330 pass_data_loop_prefetch, make_pass_loop_prefetch): Move to
11331 tree-ssa-loop-prefetch.c.
11332 (for_each_index, lsm_tmp_name_add, gen_lsm_tmp_name): Relocate from
11333 tree-ssa-loop-im.c.
11334 (get_lsm_tmp_name): Relocate and add suffix parameter.
11335 (tree_num_loop_insns): Relocate from tree-ssa-ivcanon.c.
11336 * tree-scalar-evolution.h (simple_iv): Don't use affive_iv typedef.
11337 * cfgloop.c (record_niter_bound, estimated_loop_iterations_int,
11338 max_stmt_executions_int): Move from tree-ssa-loop-niter.c.
11339 (get_estimated_loop_iterations): Factor out accessor from
11340 estimated_loop_iterations in tree-ssa-loop-niter.c.
11341 (get_max_loop_iterations): Factor out accessor from
11342 _max_loop_iterations in tree-ssa-niter.c.
11343 * loop-unroll.c (decide_unroll_constant_iterations,
11344 decide_unroll_runtime_iterations, decide_peel_simple,
11345 decide_unroll_stupid): Use new get_* accessors.
11347 2013-10-09 Marc Glisse <marc.glisse@inria.fr>
11349 PR tree-optimization/20318
11350 * doc/extend.texi (returns_nonnull): New function attribute.
11351 * fold-const.c (tree_expr_nonzero_warnv_p): Look for returns_nonnull
11353 * tree-vrp.c (gimple_stmt_nonzero_warnv_p): Likewise.
11354 (stmt_interesting_for_vrp): Accept all GIMPLE_CALL.
11356 2013-10-09 Eric Botcazou <ebotcazou@adacore.com>
11358 PR middle-end/58570
11359 * tree-ssa-alias.c (nonoverlapping_component_refs_of_decl_p): Return
11360 false if both components are bitfields.
11362 2013-10-09 Alex Velenko <Alex.Velenko@arm.com>
11364 * config/aarch64/arm_neon.h (vclz_s8, vclz_s16, vclz_s32)
11365 (vclzq_s8, vclzq_s16, vclzq_s32, vclz_u8, vclz_u16, vclz_u32)
11366 (vclzq_u8, vclzq_u16, vclzq_u32): Replace ASM with C.
11367 * config/aarch64/aarch64.h
11368 (CLZ_DEFINED_VALUE_AT_ZERO): Macro fixed for clz.
11369 * config/aarch64/aarch64-simd-builtins.def
11370 (VAR1 (UNOP, clz, 0, v4si)): Replaced with iterator.
11372 2013-10-09 Alex Velenko <Alex.Velenko@arm.com>
11374 * config/aarch64/arm_neon.h (vadd_f64, vsub_f64): Implementation added.
11376 2013-10-09 Alex Velenko <Alex.Velenko@arm.com>
11378 * config/aarch64/arm_neon.h (vdiv_f64): Added.
11380 2013-10-09 Alex Velenko <Alex.Velenko@arm.com>
11382 * config/aarch64/arm_neon.h (vneg_f32): Asm replaced with C.
11383 (vneg_f64): New intrinsic.
11384 (vneg_s8): Asm replaced with C.
11385 (vneg_s16): Likewise.
11386 (vneg_s32): Likewise.
11387 (vneg_s64): New intrinsic.
11388 (vnegq_f32): Asm replaced with C.
11389 (vnegq_f64): Likewise.
11390 (vnegq_s8): Likewise.
11391 (vnegq_s16): Likewise.
11392 (vnegq_s32): Likewise.
11393 (vnegq_s64): Likewise.
11395 2013-10-09 Renlin Li <Renlin.Li@arm.com>
11397 * config/arm/arm.c (arm_output_mi_thunk): Use plus_constant.
11399 2013-10-09 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
11401 * config/s390/s390.c (s390_register_info_stdarg_fpr): Remove
11402 packed stack special handling.
11403 (s390_frame_info, s390_emit_prologue, s390_emit_epilogue): Switch
11404 back to fixed stack slots for FPRs saved due to stdarg.
11406 2013-10-09 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
11408 * config/s390/s390.c (s390_frame_info): Restructure function.
11410 2013-10-09 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
11412 * config/s390/s390.c (struct s390_frame_layout): New field
11414 (cfun_save_arg_fprs_p, cfun_gpr_save_slot): New macros.
11415 (s390_reg_clobbered_rtx, s390_regs_ever_clobbered): Change type of
11416 regs_ever_clobbered to char*.
11417 (s390_regs_ever_clobbered): Check crtl->saves_all_registers instead
11418 of cfun->has_nonlocal_label. Ignore frame related restore INSNs.
11419 (s390_register_info): Enable FPR save slots. Move/Copy some
11420 functionality into ...
11421 (s390_register_info_gprtofpr, s390_register_info_stdarg_fpr)
11422 (s390_register_info_stdarg_gpr, s390_optimize_register_info): New
11424 (s390_frame_info): Do gpr slot allocation here now. stdarg does
11425 not imply a stack frame.
11426 (s390_init_frame_layout): Remove variable clobbered_regs.
11427 (s390_update_register_info): Remove function.
11428 (s390_hard_regno_rename_ok): Call-saved regs without a save slot
11429 cannot be used for register renaming.
11430 (s390_hard_regno_scratch_ok): New function.
11431 (TARGET_HARD_REGNO_SCRATCH_OK): Define target hook.
11432 (s390_initial_elimination_offset): Change offset calculation of
11433 the return address pointer.
11434 (save_gprs): Deal with only r6 being saved from the call-saved regs.
11435 (restore_gprs): Set frame related flag.
11436 (s390_save_gprs_to_fprs, s390_restore_gprs_from_fprs): New functions.
11437 (s390_emit_prologue): Call s390_register_info instead of
11438 s390_update_frame_layout. Call s390_save_gprs_to_fprs.
11439 (s390_emit_epilogue): Call s390_restore_gprs_from_fprs.
11440 (s390_optimize_prologue): Call s390_optimize_register_info.
11441 Try to remove also FPR slot save/restore INSNs. Remove frame
11442 related flags from restore INSNs.
11444 2013-10-08 DJ Delorie <dj@redhat.com>
11446 * config/rl78/rl78-expand.md (movqi): use operands[] not operandN.
11449 * config/rl78/rl78.c (rl78_print_operand_1): Change %c to %C to
11450 avoid conflict with the MI use of %c.
11451 * config/rl78/rl78-real.md: change %c to %C throughout.
11452 * config/rl78/rl78-virt.md: Likewise.
11454 2013-10-08 Jan Hubicka <jh@suse.cz>
11456 * config/i386/i386.c (ix86_option_override_internal): Switch
11457 to SSE math for -ffast-math when target ISA supports SSE2.
11459 2013-10-08 Andrew MacLeod <amacleod@redhat.com>
11461 * tree-flow.h: Remove some prototypes.
11462 * tree.h: Remove some protypes, add a couple.
11463 * tree.c (using_eh_for_cleanups_flag, using_eh_for_cleanups,
11464 using_eh_for_cleanups_p): Add interface routines for front ends.
11465 * tree-eh.h: New file. Add protoptyes.
11466 * tree-eh.c (using_eh_for_cleanups_p, using_eh_for_cleanups): Delete.
11467 (add_stmt_to_eh_lp_fn): Make static.
11468 (lower_try_finally): Use new using_eh_for_cleanups_p.
11469 * emit-rtl.c: Include tree-eh.h.
11470 * gimple.h: Include tree-eh.h.
11472 2013-10-08 Marc Glisse <marc.glisse@inria.fr>
11474 PR tree-optimization/58480
11475 * tree-vrp.c (infer_nonnull_range): New function.
11476 (infer_value_range): Call infer_nonnull_range.
11478 2013-10-08 Dehao Chen <dehao@google.com>
11480 PR tree-optimization/58619
11481 * tree-inline.c (copy_phis_for_bb): Combine location data
11484 2013-10-08 Zhenqiang Chen <zhenqiang.chen@linaro.org>
11487 * config/arm/arm.c (arm_emit_ldrd_pop): Attach
11488 RTX_FRAME_RELATED_P on INSN.
11490 2013-10-07 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
11492 * config/rs6000/rs6000.c (altivec_expand_vec_perm_const_le): New.
11493 (altivec_expand_vec_perm_const): Call it.
11495 2013-10-07 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
11497 * config/rs6000/vector.md (mov<mode>): Emit permuted move
11498 sequences for LE VSX loads and stores at expand time.
11499 * config/rs6000/rs6000-protos.h (rs6000_emit_le_vsx_move): New
11501 * config/rs6000/rs6000.c (rs6000_const_vec): New.
11502 (rs6000_gen_le_vsx_permute): New.
11503 (rs6000_gen_le_vsx_load): New.
11504 (rs6000_gen_le_vsx_store): New.
11505 (rs6000_gen_le_vsx_move): New.
11506 * config/rs6000/vsx.md (*vsx_le_perm_load_v2di): New.
11507 (*vsx_le_perm_load_v4si): New.
11508 (*vsx_le_perm_load_v8hi): New.
11509 (*vsx_le_perm_load_v16qi): New.
11510 (*vsx_le_perm_store_v2di): New.
11511 (*vsx_le_perm_store_v4si): New.
11512 (*vsx_le_perm_store_v8hi): New.
11513 (*vsx_le_perm_store_v16qi): New.
11514 (*vsx_xxpermdi2_le_<mode>): New.
11515 (*vsx_xxpermdi4_le_<mode>): New.
11516 (*vsx_xxpermdi8_le_V8HI): New.
11517 (*vsx_xxpermdi16_le_V16QI): New.
11518 (*vsx_lxvd2x2_le_<mode>): New.
11519 (*vsx_lxvd2x4_le_<mode>): New.
11520 (*vsx_lxvd2x8_le_V8HI): New.
11521 (*vsx_lxvd2x16_le_V16QI): New.
11522 (*vsx_stxvd2x2_le_<mode>): New.
11523 (*vsx_stxvd2x4_le_<mode>): New.
11524 (*vsx_stxvd2x8_le_V8HI): New.
11525 (*vsx_stxvd2x16_le_V16QI): New.
11527 2013-10-07 Renlin Li <Renlin.Li@arm.com>
11529 * config/arm/arm-cores.def (cortex-a53): Use cortex tuning.
11531 2013-10-07 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
11533 * config/s390/s390.c (s390_register_info): Make the call-saved FPR
11534 loop to work also for 31bit ABI.
11535 Save the stack pointer for frame_size > 0.
11537 2013-10-07 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
11539 * config/s390/s390.md ("tbegin", "tbegin_nofloat", "tbegin_retry")
11540 ("tbegin_retry_nofloat", "tend", "tabort", "tx_assist"): Remove
11541 constraint letters from expanders.
11542 ("tbegin_retry", "tbegin_retry_nofloat"): Change predicate of the
11543 retry count to general_operand.
11544 ("tabort"): Give operand 0 a mode.
11545 ("tabort_1"): Add mode and constraint letter for operand 0.
11546 * doc/extend.texi: Fix protoype of __builtin_non_tx_store.
11548 2013-10-04 Jeff Law <law@redhat.com>
11550 * tree-ssa-threadedge.c: Fix some trailing whitespace problems.
11552 * tree-ssa-threadedge.c (thread_through_normal_block): Broken
11554 (thread_across_edge): Here. Call it.
11556 2013-10-04 Cary Coutant <ccoutant@google.com>
11558 * dwarf2out.c (dw_sra_loc_expr): Release addr_table entries when
11559 discarding a location list expression (or a piece of one).
11561 2013-10-03 Jan Hubicka <jh@suse.cz>
11563 * config/i386/i386.c (ix86_issue_rate): Pentium4, Nocona has issue
11564 rate of 2. Core2, Corei7 and Haswell has issue rate of 4.
11565 (ix86_adjust_cost): Remove Atom case; fix core2/corei7/Haswell case.
11567 2013-10-03 Jan Hubicka <jh@suse.cz>
11569 * config/i386/i386.c (ix86_option_override_internal): Do not enable
11570 accumulate-outgoing-args when producing unwind info.
11572 2013-10-03 Wei Mi <wmi@google.com>
11574 * lra-constraints.c (insert_move_for_subreg): New function
11575 extracted from simplify_operand_subreg.
11576 (simplify_operand_subreg): Add reload for paradoxical subreg.
11578 2013-10-03 Rong Xu <xur@google.com>
11580 * ipa-inline-analysis.c (find_foldable_builtin_expect): Find
11581 the candidate of builtin_expect such that we should fix the
11582 size/time estimation.
11583 (estimate_function_body_sizes): Do the acutally size/time fix-up
11584 for builtin_expect.
11586 2013-10-03 Rong Xu <xur@google.com>
11588 * predict.c (tree_predict_by_opcode): Get the probability
11589 for builtin_expect from param builtin_expect_probability.
11590 * params.def (BUILTIN_EXPECT_PROBABILITY): New parameter.
11591 * predict.def (PRED_BUILTIN_EXPECT_RELAXED): Fix comments.
11592 * doc/invoke.texi: Add documentation for builtin-expect-probability.
11594 2013-10-03 Marc Glisse <marc.glisse@inria.fr>
11597 * common.opt (fcheck-new): Moved from c.opt. Make it 'Common'.
11598 * calls.c (alloca_call_p): Use get_callee_fndecl.
11599 * fold-const.c (tree_expr_nonzero_warnv_p): Handle operator new.
11600 * tree-vrp.c (gimple_stmt_nonzero_warnv_p, stmt_interesting_for_vrp):
11602 (vrp_visit_stmt): Remove duplicated code.
11604 2013-10-03 Michael Meissner <meissner@linux.vnet.ibm.com>
11606 * config/rs6000/rs6000-builtin.def (XSRDPIM): Use floatdf2,
11607 ceildf2, btruncdf2, instead of vsx_* name.
11609 * config/rs6000/vsx.md (vsx_add<mode>3): Change arithmetic
11610 iterators to only do V2DF and V4SF here. Move the DF code to
11611 rs6000.md where it is combined with SF mode. Replace <VSv> with
11612 just 'v' since only vector operations are handled with these insns
11613 after moving the DF support to rs6000.md.
11614 (vsx_sub<mode>3): Likewise.
11615 (vsx_mul<mode>3): Likewise.
11616 (vsx_div<mode>3): Likewise.
11617 (vsx_fre<mode>2): Likewise.
11618 (vsx_neg<mode>2): Likewise.
11619 (vsx_abs<mode>2): Likewise.
11620 (vsx_nabs<mode>2): Likewise.
11621 (vsx_smax<mode>3): Likewise.
11622 (vsx_smin<mode>3): Likewise.
11623 (vsx_sqrt<mode>2): Likewise.
11624 (vsx_rsqrte<mode>2): Likewise.
11625 (vsx_fms<mode>4): Likewise.
11626 (vsx_nfma<mode>4): Likewise.
11627 (vsx_copysign<mode>3): Likewise.
11628 (vsx_btrunc<mode>2): Likewise.
11629 (vsx_floor<mode>2): Likewise.
11630 (vsx_ceil<mode>2): Likewise.
11631 (vsx_smaxsf3): Delete scalar ops that were moved to rs6000.md.
11632 (vsx_sminsf3): Likewise.
11633 (vsx_fmadf4): Likewise.
11634 (vsx_fmsdf4): Likewise.
11635 (vsx_nfmadf4): Likewise.
11636 (vsx_nfmsdf4): Likewise.
11637 (vsx_cmpdf_internal1): Likewise.
11639 * config/rs6000/rs6000.h (TARGET_SF_SPE): Define macros to make it
11640 simpler to select whether a target has SPE or traditional floating
11641 point support in iterators.
11642 (TARGET_DF_SPE): Likewise.
11643 (TARGET_SF_FPR): Likewise.
11644 (TARGET_DF_FPR): Likewise.
11645 (TARGET_SF_INSN): Macros to say whether floating point support
11646 exists for a given operation for expanders.
11647 (TARGET_DF_INSN): Likewise.
11649 * config/rs6000/rs6000.c (Ftrad): New mode attributes to allow
11650 combining of SF/DF mode operations, using both traditional and VSX
11658 (abs<mode>2): Combine SF/DF modes using traditional floating point
11659 instructions. Add support for using the upper DF registers with
11660 VSX support, and SF registers with power8-vector support. Update
11661 expanders for operations supported by both the SPE and traditional
11662 floating point units.
11663 (abs<mode>2_fpr): Likewise.
11664 (nabs<mode>2): Likewise.
11665 (nabs<mode>2_fpr): Likewise.
11666 (neg<mode>2): Likewise.
11667 (neg<mode>2_fpr): Likewise.
11668 (add<mode>3): Likewise.
11669 (add<mode>3_fpr): Likewise.
11670 (sub<mode>3): Likewise.
11671 (sub<mode>3_fpr): Likewise.
11672 (mul<mode>3): Likewise.
11673 (mul<mode>3_fpr): Likewise.
11674 (div<mode>3): Likewise.
11675 (div<mode>3_fpr): Likewise.
11676 (sqrt<mode>3): Likewise.
11677 (sqrt<mode>3_fpr): Likewise.
11678 (fre<Fs>): Likewise.
11679 (rsqrt<mode>2): Likewise.
11680 (cmp<mode>_fpr): Likewise.
11681 (smax<mode>3): Likewise.
11682 (smin<mode>3): Likewise.
11683 (smax<mode>3_vsx): Likewise.
11684 (smin<mode>3_vsx): Likewise.
11685 (negsf2): Delete SF operations that are merged with DF.
11686 (abssf2): Likewise.
11687 (addsf3): Likewise.
11688 (subsf3): Likewise.
11689 (mulsf3): Likewise.
11690 (divsf3): Likewise.
11692 (fmasf4_fpr): Likewise.
11693 (fmssf4_fpr): Likewise.
11694 (nfmasf4_fpr): Likewise.
11695 (nfmssf4_fpr): Likewise.
11696 (sqrtsf2): Likewise.
11697 (rsqrtsf_internal1): Likewise.
11698 (smaxsf3): Likewise.
11699 (sminsf3): Likewise.
11700 (cmpsf_internal1): Likewise.
11701 (copysign<mode>3_fcpsgn): Add VSX/power8-vector support.
11702 (negdf2): Delete DF operations that are merged with SF.
11703 (absdf2): Likewise.
11704 (nabsdf2): Likewise.
11705 (adddf3): Likewise.
11706 (subdf3): Likewise.
11707 (muldf3): Likewise.
11708 (divdf3): Likewise.
11710 (rsqrtdf_internal1): Likewise.
11711 (fmadf4_fpr): Likewise.
11712 (fmsdf4_fpr): Likewise.
11713 (nfmadf4_fpr): Likewise.
11714 (nfmsdf4_fpr): Likewise.
11715 (sqrtdf2): Likewise.
11716 (smaxdf3): Likewise.
11717 (smindf3): Likewise.
11718 (cmpdf_internal1): Likewise.
11719 (lrint<mode>di2): Use TARGET_<MODE>_FPR macro.
11720 (btrunc<mode>2): Delete separate expander, and combine with the
11721 insn and add VSX instruction support. Use TARGET_<MODE>_FPR.
11722 (btrunc<mode>2_fpr): Likewise.
11723 (ceil<mode>2): Likewise.
11724 (ceil<mode>2_fpr): Likewise.
11725 (floor<mode>2): Likewise.
11726 (floor<mode>2_fpr): Likewise.
11727 (fma<mode>4_fpr): Combine SF and DF fused multiply/add support.
11728 Add support for using the upper registers with VSX and
11729 power8-vector. Move insns to be closer to the define_expands. On
11730 VSX systems, prefer the traditional form of FMA over the VSX
11731 version, since the traditional form allows the target not to
11732 overlap with the inputs.
11733 (fms<mode>4_fpr): Likewise.
11734 (nfma<mode>4_fpr): Likewise.
11735 (nfms<mode>4_fpr): Likewise.
11737 2013-10-03 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
11738 Richard Earnshaw <richard.earnshaw@arm.com>
11740 * config/arm/aarch-common-protos.h (struct alu_cost_table): New.
11741 (struct mult_cost_table): Likewise.
11742 (struct mem_cost_table): Likewise.
11743 (struct fp_cost_table): Likewise.
11744 (struct vector_cost_table): Likewise.
11745 (cpu_cost_table): Likewise.
11746 * config/arm/arm.opt (mold-rts-costs): New option.
11747 (mnew-generic-costs): Likewise.
11748 * config/arm/arm.c (generic_extra_costs): New table.
11749 (cortexa15_extra_costs): Likewise.
11750 (arm_slowmul_tune): Use NULL as new costs.
11751 (arm_fastmul_tune): Likewise.
11752 (arm_strongarm_tune): Likewise.
11753 (arm_xscale_tune): Likewise.
11754 (arm_9e_tune): Likewise.
11755 (arm_v6t2_tune): Likewise.
11756 (arm_cortex_a5_tune): Likewise.
11757 (arm_cortex_a9_tune): Likewise.
11758 (arm_v6m_tune): Likewise.
11759 (arm_fa726te_tune): Likewise.
11760 (arm_cortex_a15_tune): Use cortex15_extra_costs.
11761 (arm_cortex_tune): Use generict_extra_costs.
11762 (shifter_op_p): New function.
11763 (arm_unspec_cost): Likewise.
11764 (LIBCALL_COST): Define.
11765 (arm_new_rtx_costs): New function.
11766 (arm_rtx_costs): Use arm_new_rtx_costs when core-specific
11767 table is available. Use old costs otherwise unless mnew-generic-costs
11769 * config/arm/arm-protos.h (tune_params): Add insn_extra_cost field.
11770 (cpu_cost_table): Declare.
11772 2013-10-03 Marcus Shawcroft <marcus.shawcroft@arm.com>
11775 * config/aarch64/aarch64.md (*adds_mul_imm_<mode>)
11776 (*subs_mul_imm_<mode>)
11777 (*add_<shift>_<mode>, *add_<shift>_si_uxtw,*add_mul_imm_<mode>)
11778 (*sub_<shift>_<mode>)
11779 (*sub_<shift>_si_uxtw,*sub_mul_imm_<mode>, *sub_mul_imm_si_uxtw):
11780 Remove k constraint.
11782 2013-10-03 Ian Bolton <ian.bolton@arm.com>
11784 * config/aarch64/aarch64.c (aarch64_secondary_reload): Remove legacy
11786 * config/aarch64/aarch64.md (reload_sp_immediate): Likewise.
11788 2013-10-02 Teresa Johnson <tejohnson@google.com>
11790 * predict.c (probably_never_executed): New function.
11791 (probably_never_executed_bb_p): Invoke probably_never_executed.
11792 (probably_never_executed_edge_p): Ditto.
11793 * bb-reorder.c (find_rarely_executed_basic_blocks_and_crossing_edges):
11794 Treat profile insanities conservatively.
11796 2013-10-02 John David Anglin <danglin@gcc.gnu.org>
11798 * config.gcc (hppa*64*-*-linux*): Don't add pa/t-linux to tmake_file.
11800 2013-10-02 Vladimir Makarov <vmakarov@redhat.com>
11802 * lra-constraints.c (process_alt_operand): Calculate scratch_p and
11803 use it. Use smaller increase for scratch. Don't increase reject
11804 for early clobber scratch.
11805 * lra-eliminations.c (eliminate_regs_in_insn): Remove all insns
11806 setting eliminated regs except setting fp from hfp.
11807 (lra_eliminate): Check lra_insn_recog_data on NULL.
11809 2013-10-02 Michael Meissner <meissner@linux.vnet.ibm.com>
11812 * config/rs6000/rs6000-cpus.def (ISA_2_6_MASKS_SERVER): Turn off
11813 setting -mvsx-timode by default until the underlying problem is fixed.
11814 (RS6000_CPU, power7 defaults): Likewise.
11816 2013-10-02 Uros Bizjak <ubizjak@gmail.com>
11818 * config/x-linux (host-linux.o): Remove header dependencies.
11819 Use $(COMPILE) and $(POSTCOMPILE).
11820 * config/t-linux-android (linux-android.o): Ditto.
11822 2013-10-02 Uros Bizjak <ubizjak@gmail.com>
11824 * Makefile.in (expmed.o-warn): Remove.
11826 2013-10-02 Andrew MacLeod <amacleod@redhat.com>
11828 * graphite-scop-detection.c: Include tree-ssa-propagate,h.
11829 * graphite-sese-to-poly.c: Include tree-ssa-propagate.h.
11831 2013-10-02 Teresa Johnson <tejohnson@google.com>
11833 * dojump.c (do_jump_1): Divide probability between
11834 both conditions of a TRUTH_ANDIF_EXPR/TRUTH_ORIF_EXPR.
11836 2013-10-02 Tom Tromey <tromey@redhat.com>
11838 * Makefile.in (DRIVER_DEFINES): Use $(if), not $(and).
11840 2013-10-02 Andrew MacLeod <amacleod@redhat.com>
11842 * tree-flow.h: Remove some prototypes.
11843 * tree-ssa-dce.c (mark_virtual_operand_for_renaming,
11844 mark_virtual_phi_result_for_renaming): Move to tree-into-ssa.c.
11845 * tree-into-ssa.c (mark_virtual_operand_for_renaming,
11846 mark_virtual_phi_result_for_renaming): Relocate here.
11847 * tree-into-ssa.h: Add prototypes.
11848 * tree-ssa-phiopt.c: (tree_ssa_phiopt_worker) Use
11849 single_pred_before_succ_order.
11850 (blocks_in_phiopt_order): Rename and move to cfganal.c.
11851 (nonfreeing_call_p) Move to gimple.c.
11852 * cfganal.c (single_pred_before_succ_order): Move and renamed from
11854 * basic-block.h (single_pred_before_succ_order): Add prototype.
11855 * gimple.c (nonfreeing_call_p): Relocate here.
11856 * gimple.h: Add prototype.
11857 * tree-ssa-ifcombine.c: Include tree-ssa-phiopt.h.
11858 * tree-ssa-dom.h: New file. Relocate prototypes here.
11859 * tree-ssa.h: Include tree-ssa-dom.h.
11861 2013-10-02 Uros Bizjak <ubizjak@gmail.com>
11863 * config/i386/x-i386 (driver-i386.o): Remove header dependencies.
11864 Use $(COMPILE) and $(POSTCOMPILE).
11866 * config/alpha/x-alpha (driver-alpha.o): Ditto.
11868 2013-10-02 Andrew MacLeod <amacleod@redhat.com>
11870 * tree-flow.h: Remove some prototypes.
11871 * gimple-fold.h: Add prototypes from gimple.h and tree-flow.h.
11872 * tree-ssa-propagate.h: Relocate prototypes from tree-flow.h.
11873 * tree-ssa-copy.c (may_propagate*, propagate_value, replace_exp,
11874 propagate_tree_value*): Move from here to...
11875 * tree-ssa-propagate.c (may_propagate*, propagate_value, replace_exp,
11876 propagate_tree_value*): Relocate here.
11877 * tree-ssa-propagate.h: Relocate prototypes from tree-flow.h.
11878 * gimple.h: Include gimple-fold.h, move prototypes into gimple-fold.h.
11879 * gimple-fold.c: Remove gimple-fold.h from include list.
11880 * tree-vrp.c: Remove gimple-fold.h from include list.
11881 * tree-ssa-sccvn.c: Remove gimple-fold.h from include list.
11882 * tree-ssa-ccp.c: Remove gimple-fold.h from include list.
11883 * tree-scalar-evolution.c: Add tree-ssa-propagate.h to include list.
11884 * tree-ssa-pre.c: Add tree-ssa-propagate.h to include list.
11885 * sese.c: Add tree-ssa-propagate.h to include list.
11887 2013-10-02 Richard Biener <rguenther@suse.de>
11889 * tree-loop-distribution.c: Include tree-vectorizer.h for
11890 find_loop_location.
11891 (enum partition_kind): Remove PKIND_REDUCTION.
11892 (struct partition_s): Remove has_writes member, add reduction_p member.
11893 (partition_alloc): Adjust.
11894 (partition_builtin_p): Likewise.
11895 (partition_has_writes): Remove.
11896 (partition_reduction_p): New function.
11897 (partition_merge_into): Likewise.
11898 (generate_code_for_partition): Commonize builtin partition
11900 (rdg_cannot_recompute_vertex_p): Remove.
11901 (already_processed_vertex_p): Likewise.
11902 (rdg_flag_vertex): Do not set has_writes.
11903 (classify_partition): Adjust.
11904 (rdg_build_partitions): Do not set has_writes, treat all
11905 partitions as useful.
11906 (distribute_loop): Record number of library calls generated. Adjust.
11907 (tree_loop_distribution): Report number of loops and library
11908 calls generated as opt-info.
11910 2013-10-02 Andrew MacLeod <amacleod@redhat.com>
11912 * tree-flow.h: Include new .h files. Move prototypes.
11913 * tree-cfgcleanup.h: New file. Add prototypes from tree-flow.h.
11914 * tree-dfa.h: New File. Add prototypes from tree-flow.h.
11915 (get_addr_base_and_unit_offset_1) Move from tree-flow-inline.h.
11916 * tree-pretty-print.h: Add prototypes from tree-flow.h.
11917 * tree-into-ssa.h: New File. Add prototypes from tree-flow.h.
11918 ({debug|dump}*): Move debugging prototypes out of tree-into-ssa.c.
11919 * tree-into-ssa.c ({debug|dump}*): Move prototypes to header file.
11920 * tree.h (get_ref_base_and_extent): Move prototype out.
11921 * tree-flow-inline.h (get_addr_base_and_unit_offset_1): Move to
11923 * gimple-low.h: New File. Add prototypes from tree-flow.h.
11924 * gimple-low.c (try_catch_may_fallthru, block_may_fallthru): Move to...
11925 * tree.c (try_catch_may_fallthru, block_may_fallthru): Here.
11926 * tree-scalar-evolution.c: Include tree.h.
11927 * sese.c: Include tree.h.
11928 * dumpfile.c: Move gimple-pretty-print.h include after tree.h.
11929 * dwarf2out.c: Include tree-dfa.h.
11930 * tree-chrec.c: Include tree.h.
11931 * tree-data-ref.c: Include tree.h.
11933 2013-10-02 Yufeng Zhang <yufeng.zhang@arm.com>
11935 * gimple-ssa-strength-reduction.c (backtrace_base_for_ref):
11938 2013-10-02 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
11940 * config/t-sol2 (sol2-c.o): Remove header dependencies.
11941 Use $(COMPILE) and $(POSTCOMPILE).
11942 (sol2-cxx.o): Likewise.
11943 (sol2-stubs.o): Likewise.
11944 (sol2.o): Likewise.
11945 * config/x-solaris (host-solaris.o): Likewise.
11947 * config/sparc/t-sparc (sparc.o): Remove.
11948 (sparc-c.o): Remove header dependencies.
11949 Use $(COMPILE) and $(POSTCOMPILE).
11950 * config/sparc/x-sparc: Likewise.
11952 2013-10-02 Joern Rennecke <joern.rennecke@embecosm.com>
11954 * config/arc/arc-opts.h: Add 2013 to Copyright years.
11955 * config/arc/arc700.md: Likewise.
11956 * config/arc/arc-modes.def: Likewise.
11957 * config/arc/arc-simd.h: Likewise.
11958 * config/arc/t-arc-uClibc: Likewise.
11959 * config/arc/t-arc-newlib: Likewise.
11961 2013-10-02 Renlin Li <renlin.li@arm.com>
11963 * config/aarch64/aarch64.c (aarch64_expand_prologue): Use
11965 (aarch64_expand_epilogue): Likewise.
11967 2013-10-02 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
11968 Yufeng Zhang <yufeng.zhang@arm.com>
11970 * gimple-ssa-strength-reduction.c (legal_cast_p_1): Forward
11972 (backtrace_base_for_ref): Call get_unwidened with 'base_in' if
11973 'base_in' represent a conversion and legal_cast_p_1 holds; set
11974 'base_in' with the returned value from get_unwidened.
11976 2013-10-02 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
11978 * config/arm/arm.c (arm_legitimize_reload_address): Explain why
11979 plus_constant is not used.
11981 2013-10-01 Wei Mi <wmi@google.com>
11983 * config/i386/x86-tune.def (DEF_TUNE): Remove m_CORE_ALL.
11984 * config/i386/i386.md: Add define_peephole2 to
11985 break partial reg stall for cvtss2sd/cvtsd2ss.
11987 2013-10-01 Joern Rennecke <joern.rennecke@embecosm.com>
11989 * config/arc/arc.c (pass_arc_ifcvt::clone):
11990 Update for ctxt_ -> m_ctxt change.
11992 2013-10-01 Jeff Law <law@redhat.com>
11994 * tree-ssa-threadupdate.c (struct redirection_data): Delete
11995 outgoing_edge and intermediate_edge fields. Instead store the path.
11996 (redirection_data::hash): Hash on the last edge's destination index.
11997 (redirection_data::equal): Check the entire thread path.
11998 (lookup_redirectio_data): Corresponding changes.
11999 (create_edge_and_update_destination_phis): Likewise.
12000 (thread_single_edge): Likewise.
12002 2013-10-01 Joern Rennecke <joern.rennecke@embecosm.com>
12003 Diego Novillo <dnovillo@google.com>
12005 * config/arc/simdext.md (UNSPEC_ARC_SIMD_VLD32WH): Delete.
12006 (UNSPEC_ARC_SIMD_VLD32WL): Likewise.
12007 (vld32wh_insn, vld32wl_insn): Delete commented-out old
12008 versions of these patterns.
12010 * doc/extend.texi (long_call/medium_call/short_call): Typo fix.
12011 (__builtin_arc_aligned): Likewise.
12013 * config/arc/arc.md: Expand adc_0 comment stating the intended
12014 purpose and why it isn't ready.
12015 Replace commented out call_value_via_label_mixed with a
12016 plain comment about bl_s.
12018 * config/arc/arc.c (stdio.h): Don't include directly.
12019 (arc_expand_epilogue): Remove [0]: Remove fp_restored_p.
12020 Remove if (1) condition.
12021 (arc_encode_section_info): Fix comment.
12023 2013-10-01 Joern Rennecke <joern.rennecke@embecosm.com>
12025 * config/arc/arc.c (arc_conditional_register_usage):
12026 Use ARC_FIRST_SIMD_VR_REG / ARC_LAST_SIMD_VR_REG.
12027 Also set reg_alloc_order for DMA config regs.
12029 2013-10-01 Joern Rennecke <joern.rennecke@embecosm.com>
12030 Jeremy Bennett <jeremy.bennett@embecosm.com>
12032 * doc/install.texi (--with-cpu): Mention ARC.
12033 (arc-*-elf32): New paragraph.
12034 (arc-linux-uclibc): Likewise.
12035 * doc/md.texi (Machine Constraints): Add ARC part.
12036 * doc/invoke.texi: (menu): Add ARC Options.
12037 (Machine Dependent Options) <ARC Options>: Add synopsis.
12038 (node ARC Options): Add.
12039 * doc/extend.texi (long_call / short_call attribute): Add ARC.
12040 (ARC Built-in Functions): New section defining
12041 generic ARC built-in functions.
12042 (ARC SIMD Built-in Functions): New section defining SIMD specific
12043 built-in functions.
12044 (Declaring Attributes of Functions): Extended
12045 description of short_call and long_call attributes for ARC and
12046 added index entries.
12048 2013-10-01 Saurabh Verma <saurabh.verma@codito.com>
12049 Ramana Radhakrishnan <ramana.radhakrishnan@codito.com>
12050 Joern Rennecke <joern.rennecke@embecosm.com>
12051 Muhammad Khurram Riaz <khurram.riaz@arc.com>
12052 Brendan Kehoe <brendan@zen.org>
12053 Michael Eager <eager@eagercon.com>
12054 Simon Cook <simon.cook@embecosm.com>
12055 Jeremy Bennett <jeremy.bennett@embecosm.com>
12057 * config/arc, common/config/arc: New directories.
12059 2013-10-01 Joern Rennecke <joern.rennecke@embecosm.com>
12060 Brendan Kehoe <brendan@zen.org>
12061 Simon Cook <simon.cook@embecosm.com>
12063 * config.gcc (arc*-*-elf*, arc*-*-linux-uclibc*): New configurations.
12065 2013-10-01 Andrew MacLeod <amacleod@redhat.com>
12067 * tree-ssa-live.h (coalesce_ssa_name): Move Prototype to...
12068 * tree-ssa-coalesce.h: New. Move prototype to here.
12069 * tree-outof-ssa.h: Include tree-ssa-coalesce.h.
12070 * tree-ssa-coalesce.c: Include tree-outof-ssa.h.
12071 (gimple_can_coalesce_p): Move to...
12072 * gimple.c (gimple_can_coalesce_p): Here.
12074 2013-10-01 Andrew MacLeod <amacleod@redhat.com>
12076 * tree-into-ssa.c (enum need_phi_state): Relocate from tree-flow.h.
12077 (dump_decl_set): Move to gimple.c.
12078 * gimple.h: Don't include tree-ssa-operands.h.
12079 (dump_decl_set): Add prototype.
12080 (gimple_vuse_op, gimple_vdef_op, update_stmt, update_stmt_if_modified):
12081 Move to gimple-ssa.h.
12082 (phi_ssa_name_p, phi_nodes, phi_nodes_ptr, gimple_phi_arg_def,
12083 gimple_phi_arg_def_ptr, gimple_phi_arg_edge, gimple_phi_arg_location,
12084 gimple_phi_arg_location_from_edge, gimple_phi_arg_set_location,
12085 gimple_phi_arg_has_location): Relocate from tree-flow-inline.h
12086 * gimple.c (walk_stmt_load_store_ops): Use gimple_phi_arg_def rather
12088 (dump_decl_set): Relocate here.
12089 * gimple-ssa.h: New file.
12090 (gimple_vuse_op, gimple_vdef_op, update_stmt, update_stmt_if_modified):
12091 Relocate from gimple.h.
12092 * tree-cfg.c (has_zero_uses_1, single_imm_use_1): Move to...
12093 * tree-ssa-operands.c (swap_ssa_operands): Rename from
12094 swap_tree_operands and remove non-ssa path.
12095 (has_zero_uses_1, single_imm_use_1): Relocate from tree-cfg.c.
12096 * tree-ssa-reassoc.c (linearize_expr_tree, repropagate_negates): Use
12098 * tree-vect-loop.c (destroy_loop_vec_info, vect_is_slp_reduction,
12099 vect_is_simple_reduction_1): Use swap_ssa_operands.
12100 * tree-flow.h: Move various prototypes to tree-phinodes.h.
12101 (enum need_phi_state): Move to tree-into-ssa.c.
12102 (struct immediate_use_iterator_d, FOR_EACH_IMM_*,
12103 BREAK_FROM_IMM_USE_STMT): Move to ssa-iterators.h.
12104 (swap_tree_operands): Rename and move prototype to tree-ssa-operands.h.
12105 * tree-flow-inline.h (delink_imm_use, link_imm_use_to_list,
12106 link_imm_use, set_ssa_use_from_ptr, link_imm_use_stmt, relink_imm_use,
12107 relink_imm_use_stmt, end_readonly_imm_use_p, first_readonly_imm_use,
12108 next_readonly_imm_use, has_zero_uses, has_single_use, single_imm_use,
12109 num_imm_uses): Move to ssa-iterators.h.
12110 (get_use_from_ptr, get_def_from_ptr): Move to tree-ssa-operands.h
12111 (gimple_phi_arg_imm_use_ptr, phi_arg_index_from_use): Move to
12113 (op_iter_done, op_iter_next_def, op_iter_next_tree,
12114 clear_and_done_ssa_iter, op_iter_init, op_iter_init_use,
12115 op_iter_init_def, op_iter_init_tree, single_ssa_tree_operand,
12116 single_ssa_use_operand, single_ssa_def_operand, zero_ssa_operands,
12117 num_ssa_operands, delink_stmt_imm_use, single_phi_def,
12118 op_iter_init_phiuse, op_iter_init_phidef, end_imm_use_stmt_p,
12119 end_imm_use_stmt_traverse, move_use_after_head, link_use_stmts_after,
12120 first_imm_use_stmt, next_imm_use_stmt, first_imm_use_on_stmt,
12121 end_imm_use_on_stmt_p, next_imm_use_on_stmt): Move to ssa-iterators.h.
12122 (gimple_phi_arg_def, gimple_phi_arg_def_ptr, gimple_phi_arg_edge,
12123 gimple_phi_arg_location, gimple_phi_arg_location_from_edge,
12124 gimple_phi_arg_set_location, gimple_phi_arg_has_location, phi_nodes,
12125 phi_nodes_ptr, phi_ssa_name_p): Move to gimple.h.
12126 (set_phi_nodes): Move to tree-phinodes.h.
12127 * tree-ssa-operands.h (enum ssa_op_iter_type,
12128 struct ssa_operand_iterator_d, SSA_OP*, FOR_EACH_SSA*, SINGLE_SSA*,
12129 ZERO_SSA_OPERANDS, NUM_SSA_OPERANDS): Move to ssa-iterators.h.
12130 (dump_decl_set): Remove prototype.
12131 (get_use_from_ptr, get_def_from_ptr): Relocate from tree-flow.h.
12132 * tree-phinodes.h: New file. Move some prototypes from tree-flow.h.
12133 (set_phi_nodes): Relocate from tree-flow-inline.h.
12134 (gimple_phi_arg_imm_use_ptr, phi_arg_index_from_use): Relocate from
12136 * tree-ssa.h: Add tree-phinodes.h, gimple-ssa.h, ssa-iterators.h to
12137 include list. Temporarily add gimple.h to include list.
12138 * ssa-iterators.h: New file.
12139 (struct immediate_use_iterator_d, FOR_EACH_IMM_*,
12140 BREAK_FROM_IMM_USE_STMT): Relocate from tree-flow.h.
12141 (enum ssa_op_iter_type, struct ssa_operand_iterator_d, SSA_OP*,
12142 FOR_EACH_SSA*, SINGLE_SSA*, ZERO_SSA_OPERANDS, NUM_SSA_OPERANDS):
12143 Relocate from tree-ssa-operands.h.
12144 (delink_imm_use, link_imm_use_to_list, link_imm_use,
12145 set_ssa_use_from_ptr, link_imm_use_stmt, relink_imm_use,
12146 relink_imm_use_stmt, end_readonly_imm_use_p, first_readonly_imm_use,
12147 next_readonly_imm_use, has_zero_uses, has_single_use, single_imm_use,
12148 num_imm_uses, get_use_from_ptr, get_def_from_ptr,
12149 phi_arg_index_from_use, op_iter_done, op_iter_next_def,
12150 op_iter_next_tree, clear_and_done_ssa_iter, op_iter_init,
12151 op_iter_init_use, op_iter_init_def, op_iter_init_tree,
12152 single_ssa_tree_operand, single_ssa_use_operand, single_ssa_def_operand,
12153 zero_ssa_operands, num_ssa_operands, delink_stmt_imm_use,
12154 single_phi_def, op_iter_init_phiuse, op_iter_init_phidef,
12155 end_imm_use_stmt_p, end_imm_use_stmt_traverse, move_use_after_head,
12156 link_use_stmts_after, first_imm_use_stmt, next_imm_use_stmt,
12157 first_imm_use_on_stmt, end_imm_use_on_stmt_p, next_imm_use_on_stmt):
12158 Relocate from tree-flow-inline.h.
12159 * tree-outof-ssa.h: Change _SSAEXPAND_H macro to GCC_TREE_OUTOF_SSA_H.
12161 2013-10-01 Vidya Praveen <vidyapraveen@arm.com>
12164 (aarch64_<ANY_EXTEND:su><ADDSUB:optab>l2<mode>_internal): Rename to ...
12165 (aarch64_<ANY_EXTEND:su><ADDSUB:optab>l<mode>_hi_internal): ... this;
12166 Insert '\t' to output template.
12167 (aarch64_<ANY_EXTEND:su><ADDSUB:optab>l<mode>_lo_internal): New.
12168 (aarch64_saddl2<mode>, aarch64_uaddl2<mode>): Modify to call
12169 gen_aarch64_<ANY_EXTEND:su><ADDSUB:optab>l<mode>_hi_internal() instead.
12170 (aarch64_ssubl2<mode>, aarch64_usubl2<mode>): Ditto.
12172 2013-10-01 Uros Bizjak <ubizjak@gmail.com>
12174 * doc/install.texi (Host/target specific installation notes for GCC):
12175 Put @anchor before @heading.
12176 * doc/gcc.texi (titlepage): Use @uref and http:// prefix for website.
12177 Use @email for email addresses.
12179 2013-10-01 Jeff Law <law@redhat.com>
12181 * tree-ssa-threadedge.c (thread_across_edge): Make path a pointer to
12182 a vec. Only delete the path if we create one without successfully
12183 registering a jump thread.
12184 * tree-ssa-threadupdate.h (register_jump_thread): Pass in path vector
12186 * tree-ssa-threadupdate.c (threaded_edges): Remove. No longer used
12187 (paths): New vector of jump threading paths.
12188 (THREAD_TARGET, THREAD_TARGET2): Remove accessor macros.
12189 (THREAD_PATH): New accessor macro for the entire thread path.
12190 (lookup_redirection_data): Get intermediate and final outgoing edge
12191 from the thread path.
12192 (create_edge_and_update_destination_phis): Copy the threading path.
12193 (ssa_fix_duplicate_block_edges): Get edges and block types from the
12194 jump threading path.
12195 (ssa_redirect_edges): Get edges and block types from the jump threading
12196 path. Free the path vector.
12197 (thread_block): Get edges from the jump threading path. Look at the
12198 entire path to see if we thread to a loop exit. If we cancel a jump
12199 thread request, then free the path vector.
12200 (thread_single_edge): Get edges and block types from the jump threading
12201 path. Free the path vector.
12202 (thread_through_loop_header): Get edges and block types from the jump
12203 threading path. Free the path vector.
12204 (mark_threaded_blocks): Iterate over the vector of paths and store
12205 the path on the appropriate edge. Get edges and block types from the
12206 jump threading path.
12207 (mark_threaded_blocks): Get edges and block types from the jump
12208 threading path. Free the path vector.
12209 (thread_through_all_blocks): Use the vector of paths rather than
12210 a vector of 3-edge sets.
12211 (register_jump_thread): Accept pointer to a path vector rather
12212 than the path vector itself. Store the path vector for later use.
12215 2013-10-01 Jakub Jelinek <jakub@redhat.com>
12216 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
12219 * config/s390/s390.c (s390_split_branches): Modify check for table
12221 (s390_chunkify_start): Rearrange table jump insn check in order to
12222 deal with compare and branch insns correctly.
12224 2013-10-01 Kugan Vivekanandarajah <kuganv@linaro.org>
12228 2013-04-05 Greta Yorsh <Greta.Yorsh@arm.com>
12229 * config/arm/arm.md (arm_ashldi3_1bit): define_insn into
12230 define_insn_and_split.
12231 (arm_ashrdi3_1bit,arm_lshrdi3_1bit): Likewise.
12232 (shiftsi3_compare): New pattern.
12233 (rrx): New pattern.
12234 * config/arm/unspecs.md (UNSPEC_RRX): New.
12236 2013-10-01 Alan Modra <amodra@gmail.com>
12238 * stmt.c (expand_asm_operands): Revert part of 2013-09-24 special
12239 casing inout operands.
12241 2013-10-01 Richard Biener <rguenther@suse.de>
12243 PR tree-optimization/58553
12244 * tree-loop-distribution.c (struct partition_s): Add niter member.
12245 (classify_partition): Populate niter member for the partition
12246 and properly identify whether the relevant store happens before
12247 or after the loop exit.
12248 (generate_memset_builtin): Use niter member from the partition.
12249 (generate_memcpy_builtin): Likewise.
12251 2013-09-30 Richard Sandiford <rdsandiford@googlemail.com>
12253 * vec.h (vec_prefix, vec): Prefix member names with "m_".
12254 * vec.c (vec_prefix::calculate_allocation): Update accordingly.
12256 2013-09-30 Richard Sandiford <rdsandiford@googlemail.com>
12258 * basic-block.h (edge_list): Prefix member names with "m_".
12259 * context.h (context): Likewise.
12260 * domwalk.h (dom_walker): Likewise.
12261 * gengtype-state.c (s_expr_writer, state_writer): Likewise.
12262 * graphite-sese-to-poly.c (sese_dom_walker): Likewise.
12263 * hash-table.h (hash_table): Likewise.
12264 * machmode.h (bit_field_mode_iterator): Likewise.
12265 * pass_manager.h (pass_list): Likewise.
12266 * tree-into-ssa.c (mark_def_dom_walker): Likewise.
12267 * tree-pass.h (pass_data): Likewise.
12268 * tree-ssa-dom.c (dom_opt_dom_walker): Likewise.
12269 * tree-ssa-phiopt.c (nontrapping_dom_walker): Likewise,
12270 * tree-ssa-uncprop.c (uncprop_dom_walker): Likewise.
12271 * asan.c (pass_data_asan): Update accordingly.
12272 * cfganal.c (control_dependences::find_control_dependence): Likewise.
12273 (control_dependences::control_dependences): Likewise.
12274 (control_dependences::~control_dependences): Likewise.
12275 (control_dependences::~control_dependences): Likewise.
12276 (control_dependences::get_edges_dependent_on): Likewise.
12277 * cgraphbuild.c (pass_data_rebuild_cgraph_edges::clone): Likewise.
12278 (pass_data_remove_cgraph_callee_edges::clone): Likewise.
12279 * context.c (gcc::context::context): Likewise.
12280 * cprop.c (pass_rtl_cprop::clone): Likewise.
12281 * domwalk.c (dom_walker::walk): Likewise.
12282 * ipa-inline-analysis.c (pass_inline_parameters::clone): Likewise.
12283 * ipa-pure-const.c (pass_local_pure_const::clone): Likewise.
12284 * mode-switching.c (pass_mode_switching::clone): Likewise.
12285 * passes.c (opt_pass::opt_pass): Likewise.
12286 (pass_manager::pass_manager): Likewise.
12287 * predict.c (pass_strip_predict_hints::clone): Likewise.
12288 * recog.c (pass_data pass_data_peephole2::clone): Likewise.
12289 (pass_split_all_insns::clone): Likewise.
12290 * stor-layout.c (bit_field_mode_iterator::bit_field_mode_iterator):
12292 (bit_field_mode_iterator::next_mode): Likewise.
12293 (bit_field_mode_iterator::prefer_smaller_modes): Likewise.
12294 * tree-cfg.c (pass_split_crit_edges::clone): Likewise.
12295 * tree-cfgcleanup.c (pass_merge_phi::clone): Likewise.
12296 * tree-complex.c (pass_lower_complex::clone): Likewise.
12297 * tree-eh.c (pass_cleanup_eh::clone): Likewise.
12298 * tree-object-size.c (pass_object_sizes::clone): Likewise.
12299 * tree-optimize.c (pass_fixup_cfg::clone): Likewise.
12300 * tree-ssa-ccp.c (pass_data_ccp::clone): Likewise.
12301 (pass_fold_builtins::clone): Likewise.
12302 * tree-ssa-copy.c (pass_data_copy_prop::clone): Likewise.
12303 * tree-ssa-copyrename.c (pass_rename_ssa_copies::clone): Likewise.
12304 * tree-ssa-dce.c (pass_dce::clone, pass_dce_loop::clone): Likewise.
12305 (pass_cd_dce::clone): Likewise.
12306 * tree-ssa-dom.c (pass_dominator::clone): Likewise.
12307 (pass_phi_only_cprop::clone): Likewise.
12308 * tree-ssa-dse.c (pass_dse::clone): Likewise.
12309 * tree-ssa-forwprop.c (pass_forwprop::clone): Likewise.
12310 * tree-ssa-loop.c (pass_lim::clone): Likewise.
12311 * tree-ssa-phiopt.c (pass_phiopt::clone): Likewise.
12312 * tree-ssa-pre.c (pass_fre::clone): Likewise.
12313 * tree-ssa-reassoc.c (pass_reassoc::clone): Likewise.
12314 * tree-ssa-uninit.c (pass_late_warn_uninitialized::clone): Likewise.
12315 * tree-tailcall.c (pass_tail_recursion::clone): Likewise.
12316 * tree-vect-generic.c (pass_lower_vector_ssa::clone): Likewise.
12317 * tree-vrp.c (pass_vrp::clone): Likewise.
12318 * tsan.c (pass_tsan::clone): Likewise.
12320 2013-09-30 Jakub Jelinek <jakub@redhat.com>
12322 PR middle-end/58564
12323 * fold-const.c (tree_unary_nonnegative_warnv_p): Use
12324 INTEGRAL_TYPE_P (t) instead of TREE_CODE (t) == INTEGER_TYPE.
12326 PR middle-end/58564
12327 * fold-const.c (fold_ternary_loc): For A < 0 : <sign bit of A> : 0
12328 optimization, punt if sign_bit_p looked through any zero extension.
12330 2013-09-30 Teresa Johnson <tejohnson@google.com>
12332 * tree-ssa-threadupdate.c (ssa_fix_duplicate_block_edges):
12333 Update redirected out edge count in joiner case.
12334 (ssa_redirect_edges): Common the joiner and non-joiner cases
12335 so that joiner case gets profile updates.
12337 2013-09-30 Richard Biener <rguenther@suse.de>
12339 PR tree-optimization/58554
12340 * tree-loop-distribution.c (classify_partition): Require
12341 unconditionally executed stores for memcpy and memset recognition.
12342 (tree_loop_distribution): Calculate dominance info.
12344 2013-09-30 Venkataramanan Kumar <venkataramanan.kumar@linaro.org>
12346 * config/aarch64/aarch64.h (MCOUNT_NAME): Define.
12347 (NO_PROFILE_COUNTERS): Likewise.
12348 (PROFILE_HOOK): Likewise.
12349 (FUNCTION_PROFILER): Likewise.
12350 * config/aarch64/aarch64.c (aarch64_function_profiler): Remove.
12352 2013-09-30 Iain Sandoe <iain@codesourcery.com>
12354 * config/rs6000/darwin.md (load_macho_picbase_si): Wrap machopic
12355 calls and defines in TARGET_MACHO conditional.
12356 (load_macho_picbase_di): Likewise.
12357 (reload_macho_picbase): Likewise.
12358 (reload_macho_picbase_si): Likewise.
12359 (reload_macho_picbase_di): Likewise.
12360 (nonlocal_goto_receiver): Likewise.
12362 2013-09-30 Nick Clifton <nickc@redhat.com>
12364 * config/msp430/msp430.c (msp430x_names): New array. Lists MCUs
12365 that use the MSP430X ISA.
12366 (msp430_option_override): Scan -mmcu command line option for any
12367 MCU name that supports the MSP430X ISA.
12368 * config/msp430/t-msp430 (MULTILIB_MATCHES): Add matches for known
12369 -mmcu options which enable the MSP430X ISA.
12371 2013-09-30 Richard Biener <rguenther@suse.de>
12373 PR middle-end/58532
12374 * tree-cfg.c (make_abnormal_goto_edges): Skip debug statements
12375 before looking for setjmp-like calls.
12377 2013-09-29 Iain Sandoe <iain@codesourcery.com>
12380 * config/darwin-protos.h (machopic_get_function_picbase): New.
12381 * config/darwin.c (machopic_get_function_picbase): New.
12382 * config/rs6000/darwin.md (load_macho_picbase_si): Update picbase
12383 label for a new func. (load_macho_picbase_di): Likewise.
12384 (reload_macho_picbase): New expand.
12385 (reload_macho_picbase_si): New insn.
12386 (reload_macho_picbase_di): New insn.
12387 (nonlocal_goto_receiver): New define and split.
12388 * config/rs6000/rs6000.md (unspec enum): Add UNSPEC_RELD_MPIC.
12389 (unspecv enum): Add UNSPECV_NLGR.
12391 2013-09-29 Iain Sandoe <iain@codesourcery.com>
12393 * config/rs6000/rs6000.c (rs6000_init_dwarf_reg_sizes_extra): Ensure
12394 that altivec registers are correctly sized on Darwin.
12396 2013-09-29 Iain Sandoe <iain@codesourcery.com>
12398 * config/t-darwin (darwin.o, darwin-c.o, darwin-f.o,
12399 darwin-driver.o): Use COMPILE and POSTCOMPILE.
12400 * config/x-darwin (host-darwin.o): Likewise.
12401 * config/i386/x-darwin (host-i386-darwin.o): Likewise.
12402 * config/rs6000/x-darwin (host-ppc-darwin.o): Likewise.
12403 * config/rs6000/x-darwin64 (host-ppc64-darwin.o): Likewise.
12405 2013-09-29 Uros Bizjak <ubizjak@gmail.com>
12407 * doc/invoke.texi: Fix usage of @tie{} command.
12409 2013-09-29 Eric Botcazou <ebotcazou@adacore.com>
12411 * config/sparc/sync.md: Add peephole for consecutive memory barriers.
12413 2013-09-28 Jan Hubicka <jh@suse.cz>
12415 * config/i386/x86-tune.def: Add documentation for each of the options;
12418 2013-09-28 Jan Hubicka <jh@suse.cz>
12420 * x86-tune.def (X86_TUNE_SSE_UNALIGNED_LOAD_OPTIMAL): Enable for
12422 (X86_TUNE_SSE_UNALIGNED_STORE_OPTIMAL): Likewise.
12423 (X86_TUNE_FOUR_JUMP_LIMIT): Drop for generic and buldozer.
12424 (X86_TUNE_PAD_RETURNS): Drop for buldozer chips.
12425 (X86_TUNE_AVOID_VECTOR_DECODE): Drop for generic.
12426 (X86_TUNE_REASSOC_FP_TO_PARALLEL): Enable for generic.
12428 2013-09-28 Richard Sandiford <rdsandiford@googlemail.com>
12430 * alloc-pool.c, asan.c, auto-inc-dec.c, basic-block.h, bb-reorder.c,
12431 bitmap.c, bitmap.h, bt-load.c, builtins.c, calls.c, cfgcleanup.c,
12432 cfgexpand.c, cfghooks.c, cfgloop.c, cfgloopmanip.c, cfgrtl.c, cgraph.c,
12433 cgraph.h, cgraphbuild.c, cgraphclones.c, cgraphunit.c, collect2.c,
12434 combine-stack-adj.c, combine.c, compare-elim.c, context.c, context.h,
12435 cprop.c, cse.c, cselib.c, dbxout.c, dce.c, defaults.h, df-core.c,
12436 df-problems.c, df-scan.c, df.h, diagnostic.c, double-int.c, dse.c,
12437 dumpfile.c, dwarf2asm.c, dwarf2cfi.c, dwarf2out.c, emit-rtl.c,
12438 errors.c, except.c, expmed.c, expr.c, file-find.c, final.c,
12439 fixed-value.c, fold-const.c, function.c, fwprop.c, gcc-ar.c, gcc.c,
12440 gcov-io.c, gcov-io.h, gcov.c, gcse.c, genattr-common.c, genattr.c,
12441 genattrtab.c, genautomata.c, genconfig.c, genemit.c, genextract.c,
12442 genflags.c, gengenrtl.c, gengtype-state.c, gengtype.c, genmodes.c,
12443 genopinit.c, genoutput.c, genpeep.c, genpreds.c, genrecog.c,
12444 gensupport.c, ggc-common.c, ggc-page.c, gimple-fold.c, gimple-low.c,
12445 gimple-pretty-print.c, gimple-ssa-strength-reduction.c, gimple.c,
12446 gimple.h, godump.c, graphite-clast-to-gimple.c,
12447 graphite-optimize-isl.c, graphite-poly.h, graphite-sese-to-poly.c,
12448 graphite.c, haifa-sched.c, hash-table.c, hash-table.h, hwint.c,
12449 hwint.h, ifcvt.c, incpath.c, init-regs.c, input.h, intl.c, intl.h,
12450 ipa-cp.c, ipa-devirt.c, ipa-inline-analysis.c, ipa-inline.c,
12451 ipa-profile.c, ipa-pure-const.c, ipa-reference.c, ipa-split.c,
12452 ipa-utils.c, ipa.c, ira-build.c, ira.c, jump.c, loop-doloop.c,
12453 loop-init.c, loop-invariant.c, loop-iv.c, lower-subreg.c, lto-cgraph.c,
12454 lto-streamer-in.c, lto-streamer-out.c, lto-wrapper.c, mcf.c,
12455 mode-switching.c, modulo-sched.c, omp-low.c, optabs.c, opts.c,
12456 pass_manager.h, passes.c, plugin.c, postreload-gcse.c, postreload.c,
12457 predict.c, prefix.c, pretty-print.c, print-rtl.c, print-tree.c,
12458 profile.c, read-md.c, real.c, real.h, recog.c, ree.c, reg-stack.c,
12459 regcprop.c, reginfo.c, regmove.c, regrename.c, regs.h, regstat.c,
12460 reload1.c, reorg.c, rtl.c, rtl.h, rtlanal.c, sbitmap.c, sched-rgn.c,
12461 sdbout.c, sel-sched-ir.c, sel-sched.c, sparseset.c, stack-ptr-mod.c,
12462 statistics.c, stmt.c, stor-layout.c, store-motion.c, streamer-hooks.h,
12463 system.h, target-hooks-macros.h, targhooks.c, targhooks.h, toplev.c,
12464 tracer.c, trans-mem.c, tree-browser.c, tree-call-cdce.c, tree-cfg.c,
12465 tree-cfgcleanup.c, tree-complex.c, tree-data-ref.c, tree-data-ref.h,
12466 tree-eh.c, tree-emutls.c, tree-flow.h, tree-if-conv.c, tree-into-ssa.c,
12467 tree-iterator.c, tree-loop-distribution.c, tree-mudflap.c,
12468 tree-nested.c, tree-nomudflap.c, tree-nrv.c, tree-object-size.c,
12469 tree-optimize.c, tree-pass.h, tree-pretty-print.c, tree-profile.c,
12470 tree-scalar-evolution.c, tree-sra.c, tree-ssa-ccp.c,
12471 tree-ssa-coalesce.c, tree-ssa-copy.c, tree-ssa-copyrename.c,
12472 tree-ssa-dce.c, tree-ssa-dom.c, tree-ssa-dse.c, tree-ssa-forwprop.c,
12473 tree-ssa-ifcombine.c, tree-ssa-live.c, tree-ssa-loop-ch.c,
12474 tree-ssa-loop-im.c, tree-ssa-loop-ivopts.c, tree-ssa-loop-prefetch.c,
12475 tree-ssa-loop.c, tree-ssa-math-opts.c, tree-ssa-operands.c,
12476 tree-ssa-phiopt.c, tree-ssa-phiprop.c, tree-ssa-pre.c,
12477 tree-ssa-reassoc.c, tree-ssa-sink.c, tree-ssa-strlen.c,
12478 tree-ssa-structalias.c, tree-ssa-threadedge.c, tree-ssa-threadupdate.c,
12479 tree-ssa-uncprop.c, tree-ssa-uninit.c, tree-ssa.c, tree-ssanames.c,
12480 tree-stdarg.c, tree-switch-conversion.c, tree-tailcall.c,
12481 tree-vect-data-refs.c, tree-vect-generic.c, tree-vect-loop-manip.c,
12482 tree-vect-stmts.c, tree-vectorizer.c, tree-vectorizer.h, tree-vrp.c,
12483 tree.c, tree.h, tsan.c, tsystem.h, value-prof.c, var-tracking.c,
12484 varasm.c, vec.h, vmsdbgout.c, vtable-verify.c, web.c: Add missing
12485 whitespace before "(".
12487 2013-09-28 Sandra Loosemore <sandra@codesourcery.com>
12489 * expr.h (extract_bit_field): Remove packedp parameter.
12490 * expmed.c (extract_fixed_bit_field): Remove packedp parameter
12491 from forward declaration.
12492 (store_split_bit_field): Remove packedp arg from calls to
12493 extract_fixed_bit_field.
12494 (extract_bit_field_1): Remove packedp parameter and packedp
12495 argument from recursive calls and calls to extract_fixed_bit_field.
12496 (extract_bit_field): Remove packedp parameter and corresponding
12497 arg to extract_bit_field_1.
12498 (extract_fixed_bit_field): Remove packedp parameter. Remove code
12500 (extract_split_bit_field): Remove packedp arg from call to
12501 extract_fixed_bit_field.
12502 * expr.c (emit_group_load_1): Adjust calls to extract_bit_field.
12503 (copy_blkmode_from_reg): Likewise.
12504 (copy_blkmode_to_reg): Likewise.
12505 (read_complex_part): Likewise.
12506 (store_field): Likewise.
12507 (expand_expr_real_1): Likewise.
12508 * calls.c (store_unaligned_arguments_into_pseudos): Adjust call
12509 to extract_bit_field.
12510 * config/tilegx/tilegx.c (tilegx_expand_unaligned_load): Adjust
12511 call to extract_bit_field.
12512 * config/tilepro/tilepro.c (tilepro_expand_unaligned_load): Adjust
12513 call to extract_bit_field.
12514 * doc/invoke.texi (Code Gen Options): Remove mention of warnings
12515 and special packedp behavior from -fstrict-volatile-bitfields
12518 2013-09-27 Jan-Benedict Glaw <jbglaw@lug-owl.de>
12520 * lra-eliminations.c (init_elim_table): Guard value_p.
12522 2013-09-27 Michael Meissner <meissner@linux.vnet.ibm.com>
12524 * config/rs6000/rs6000.c (rs6000_hard_regno_mode_ok): Allow
12525 DFmode, DImode, and SFmode in the upper VSX registers based on the
12526 -mupper-regs-{df,sf} flags. Fix wu constraint to be ALTIVEC_REGS
12527 if -mpower8-vector. Combine -mvsx-timode handling with the rest
12528 of the VSX register handling.
12530 * config/rs6000/rs6000.md (f32_lv): Use %x0 for VSX regsters.
12531 (f32_sv): Likewise.
12532 (zero_extendsidi2_lfiwzx): Add support for loading into the
12533 Altivec registers with -mpower8-vector. Use wu/wv constraints to
12534 only do VSX memory options on Altivec registers.
12535 (extendsidi2_lfiwax): Likewise.
12536 (extendsfdf2_fpr): Likewise.
12537 (mov<mode>_hardfloat, SF/SD modes): Likewise.
12538 (mov<mode>_hardfloat32, DF/DD modes): Likewise.
12539 (mov<mode>_hardfloat64, DF/DD modes): Likewise.
12540 (movdi_internal64): Likewise.
12542 2013-09-27 Xinliang David Li <davidxl@google.com>
12544 * opts.c (finish_options): Adjust parameters
12545 according to vect cost model.
12546 (common_handle_option): Set dynamic vect cost
12548 targhooks.c (default_add_stmt_cost): Compute stmt cost
12550 * tree-vect-loop.c (vect_estimate_min_profitable_iters):
12551 Use helper function.
12552 * tree-vectorizer.h (unlimited_cost_model): New function.
12553 * tree-vect-slp.c (vect_slp_analyze_bb_1): Use helper function.
12554 * tree-vect-data-refs.c (vect_peeling_hash_insert): Use helper
12556 (vect_enhance_data_refs_alignment): Ditto.
12557 * flag-types.h: New enum.
12558 * common/config/i386/i386-common.c (ix86_option_init_struct):
12559 No need to initialize vect_cost_model flag.
12560 * config/i386/i386.c (ix86_add_stmt_cost): Compute stmt cost
12563 2013-09-27 Diego Novillo <dnovillo@google.com>
12565 * gimple.h (enum ssa_mode): Remove.
12567 2013-09-27 Paulo Matos <pmatos@broadcom.com>
12569 * cfgloop.h (number_of_loops): Fix typo in check for null.
12571 2013-09-27 Jakub Jelinek <jakub@redhat.com>
12573 PR middle-end/58551
12574 * tree-cfg.c (move_sese_region_to_fn): Also move loops that
12575 are children of outermost saved_cfun's loop, and set it up to
12576 be moved to dest_cfun's outermost loop. Fix up num_nodes adjustments
12577 if loop != loop0 and SESE region contains bbs that belong to loop0.
12579 2013-09-27 Richard Sandiford <rdsandiford@googlemail.com>
12581 * rtlanal.c (must_be_base_p, must_be_index_p): Delete.
12582 (binary_scale_code_p, get_base_term, get_index_term): New functions.
12583 (set_address_segment, set_address_base, set_address_index)
12584 (set_address_disp): Accept the argument unconditionally.
12585 (baseness): Remove must_be_base_p and must_be_index_p checks.
12586 (decompose_normal_address): Classify as much as possible in the
12589 2013-09-27 Richard Sandiford <rdsandiford@googlemail.com>
12591 * cse.c (count_reg_usage): Handle INT_LIST.
12592 * lra-eliminations.c (lra_eliminate_regs_1): Likewise.
12593 * reginfo.c (reg_scan_mark_refs): Likewise.
12594 * reload1.c (eliminate_regs_1): Likewise.
12596 2013-09-27 Iain Sandoe <iain@codesourcery.com>
12598 PR middle-end/58547
12599 * rtlanal.c (lsb_bitfield_op_p): Make both parts of the comparison
12602 2013-09-27 Richard Biener <rguenther@suse.de>
12604 PR tree-optimization/58459
12605 * tree-ssa-forwprop.c (forward_propagate_addr_expr): Remove
12606 restriction not propagating into loops.
12608 2013-09-26 Florian Weimer <fw@deneb.enyo.de>
12610 * tree-ssa.h (walk_use_def_chains_fn, walk_use_def_chains): Delete.
12611 * tree-ssa.c (walk_use_def_chains_1, walk_use_def_chains): Delete.
12612 * doc/tree-ssa.texi (Walking use-def chains): Delete.
12614 2013-09-26 Richard Biener <rguenther@suse.de>
12616 * tree-into-ssa.c (rewrite_into_ssa): Make more SSA names to anonymous.
12618 2013-09-26 Richard Biener <rguenther@suse.de>
12620 * alias.h (component_uses_parent_alias_set): Rename to ...
12621 (component_uses_parent_alias_set_from): ... this.
12622 * alias.c (component_uses_parent_alias_set): Rename to ...
12623 (component_uses_parent_alias_set_from): ... this and return
12624 the desired parent.
12625 (reference_alias_ptr_type_1): Use the result from
12626 component_uses_parent_alias_set_from instead of stripping
12627 components one at a time.
12628 * emit-rtl.c (set_mem_attributes_minus_bitpos): Adjust.
12630 2013-09-26 Andrew MacLeod <amacleod@redhat.com>
12632 * tree-ssa-live.h (find_replaceable_exprs, dump_replaceable_exprs):
12633 Move prototypes to...
12634 * tree-ssa-ter.h: New File. Move prototypes here.
12635 * tree-flow.h (stmt_is_replaceable_p): Remove prototype.
12636 * tree-outof-ssa.h: New. Rename ssaexpand.h, include tree-ssa-ter.h.
12637 * tree-outof-ssa.c (ssa_is_replaceable_p): New. Refactor common bits
12638 from is_replaceable_p.
12639 * tree-ssa-ter.c (is_replaceable_p, stmt_is_replaceable_p): Delete.
12640 (ter_is_replaceable_p): New. Use new refactored ssa_is_replaceable_p.
12641 (process_replaceable): Use ter_is_replaceable_p.
12642 (find_replaceable_in_bb): Use ter_is_replaceable_p.
12643 * expr.c (stmt_is_replaceable_p): Relocate from tree-ssa-ter.c. Use
12644 newly refactored ssa_is_replaceable_p.
12645 * cfgexpand.c: Include tree-outof-ssa.h.
12646 * ssaexpand.h: Delete.
12648 2013-09-26 Andrew MacLeod <amacleod@redhat.com>
12650 * gimple.c (gimple_replace_lhs): Move to tree-ssa.c and rename.
12651 (struct count_ptr_d, count_ptr_derefs, count_uses_and_derefs): Move to
12653 (create_gimple_tmp): Delete.
12654 (get_expr_type, build_assign, build_type_cast): Move to...
12655 * gimple-builder.c: New File.
12656 (get_expr_type): Relocate from gimple.c.
12657 (build_assign, build_type_cast): Change to only create ssanames.
12658 * gimple.h: Move prototypes to...
12659 * gimple-builder.h: New File. Here.
12660 * tree-ssa.h: And here.
12661 * tree-ssa.c (struct count_ptr_d, count_ptr_derefs,
12662 count_uses_and_derefs): Relocate from gimple.c.
12663 (gimple_replace_ssa_lhs): Renamed gimple_replace_ssa from gimple.c
12664 * tree-ssa-reassoc.c (repropagate_negates): Use gimple_replace_ssa_lhs.
12665 * tree-ssa-math-opts (execute_cse_reciprocals): Use
12666 gimple_replace_ssa_lhs.
12667 * asan.c: Include gimple-builder.h.
12668 * Makefile.in: Add gimple-builder.o.
12670 2013-09-26 Richard Biener <rguenther@suse.de>
12672 * tree-ssa-live.c (var_map_base_init): Handle SSA names with
12673 DECL_IGNORED_P base VAR_DECLs like anonymous SSA names.
12674 (loe_visit_block): Use gcc_checking_assert.
12675 * tree-ssa-coalesce.c (create_outofssa_var_map): Use
12676 gimple_assign_ssa_name_copy_p.
12677 (gimple_can_coalesce_p): Adjust according to the var_map_base_init
12680 2013-09-26 David Edelsohn <dje.gcc@gmail.com>
12682 * config/rs6000/t-rs6000 (rs6000.o): Remove.
12683 (rs6000-c.o): Use COMPILE and POSTCOMPILE.
12685 2013-09-26 Richard Biener <rguenther@suse.de>
12687 PR tree-optimization/58539
12688 * tree-vect-loop.c (vect_create_epilog_for_reduction): Honor
12689 the fact that debug statements are not taking part in loop-closed
12692 2013-09-26 Nick Clifton <nickc@redhat.com>
12694 * config/msp430/msp430.c (msp430_expand_epilogue): Fix compile
12695 time warning message.
12696 (msp430_print_operand_raw): Delete unused letter parameter.
12697 (TARGET_PRINT_OPERAND_ADDRESS): Define.
12698 (msp430_print_operand_address): New function.
12699 (msp430_print_operand): Move address printing code from here to
12701 * config/msp430/msp430.md (movsipsi2): Add comment in generated
12703 (zero_extendpsisi2): Likewise.
12704 (extendpsisi2): New pattern.
12705 (andneghi3): New pattern.
12707 2013-09-26 Yvan Roux <yvan.roux@linaro.org>
12709 * config/aarch64/aarch64.opt (mlra): New option.
12710 * config/aarch64/aarch64.c (aarch64_lra_p): New function.
12711 (TARGET_LRA_P): Define.
12713 2013-09-26 Eric Botcazou <ebotcazou@adacore.com>
12715 * expr.c (expand_assignment): Remove obsolete comment.
12717 2013-09-25 Jeff Law <law@redhat.com>
12719 * tree-flow.h (thread_through_all_blocks): Prototype moved into
12720 tree-ssa-threadupdate.h.
12721 (register_jump_thread): Similarly.
12722 * tree-ssa-threadupdate.h: New header file.
12723 * tree-ssa-dom.c: Include tree-ssa-threadupdate.h.
12724 * tree-vrp.c: Likewise.
12725 * tree-ssa-threadedge.c: Include tree-ssa-threadupdate.h.
12726 (thread_around_empty_blocks): Change type of path vector argument to
12727 an edge,type pair from just an edge. Initialize both elements when
12728 appending to a jump threading path. Tweak references to elements
12730 (thread_across_edge): Similarly. Release memory for the elements
12732 * tree-ssa-threadupdate.c: Include tree-ssa-threadupdate.h.
12733 (dump_jump_thread_path): New function broken out from
12734 register_jump_thread.
12735 (register_jump_thread): Use dump_jump_thread_path. Change type of
12736 path vector entries. Search the path for NULL edges and dump
12737 the path if one is found. Tweak the conversion of path to 3-edge
12738 form to use the block copy type information embedded in the path.
12740 2013-09-25 Yvan Roux <yvan.roux@linaro.org>
12742 * lra.c (update_inc_notes): Remove all REG_DEAD and REG_UNUSED notes.
12744 2013-09-25 Yvan Roux <yvan.roux@linaro.org>
12745 Vladimir Makarov <vmakarov@redhat.com>
12747 * rtlanal.c (lsb_bitfield_op_p): New predicate for bitfield operations
12748 from the least significant bit.
12749 (strip_address_mutations): Add bitfield operations handling.
12750 (must_be_index_p): Add shifting and rotate operations handling.
12751 (set_address_base): Use must_be_base_p predicate.
12752 (set_address_index): Use must_be_index_p predicate.
12754 2013-09-25 Alexander Ivchenko <alexander.ivchenko@intel.com>
12755 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
12756 Sergey Lega <sergey.s.lega@intel.com>
12757 Anna Tikhonova <anna.tikhonova@intel.com>
12758 Ilya Tocar <ilya.tocar@intel.com>
12759 Andrey Turetskiy <andrey.turetskiy@intel.com>
12760 Ilya Verbin <ilya.verbin@intel.com>
12761 Kirill Yukhin <kirill.yukhin@intel.com>
12762 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
12764 * config/i386/i386.c (ix86_avx256_split_vector_move_misalign):
12766 (ix86_expand_vector_move_misalign): Support new unaligned load and
12767 stores and use new names.
12768 (CODE_FOR_sse2_storedqu): Rename to ...
12769 (CODE_FOR_sse2_storedquv16qi): ... this.
12770 (CODE_FOR_sse2_loaddqu): Rename to ...
12771 (CODE_FOR_sse2_loaddquv16qi): ... this.
12772 (CODE_FOR_avx_loaddqu256): Rename to ...
12773 (CODE_FOR_avx_loaddquv32qi): ... this.
12774 (CODE_FOR_avx_storedqu256): Rename to ...
12775 (CODE_FOR_avx_storedquv32qi): ... this.
12776 * config/i386/i386.md (fpint_logic): New.
12777 * config/i386/sse.md (VMOVE): Extend for AVX512.
12781 (VI_UNALIGNED_LOADSTORE): Ditto.
12782 (sse2_avx_avx512f): Ditto.
12783 (sse2_avx2): Extend for AVX512.
12784 (sse4_1_avx2): Ditto.
12785 (avx2_avx512f): New.
12786 (sse): Extend for AVX512.
12789 (avxsizesuffix): Ditto.
12790 (sseintvecmode): Ditto.
12791 (ssePSmode): Ditto.
12792 (<sse>_loadu<ssemodesuffix><avxsizesuffix>): Ditto.
12793 (<sse>_storeu<ssemodesuffix><avxsizesuffix>): Ditto.
12794 (<sse2>_loaddqu<avxsizesuffix>): Extend for AVX512 and rename to ...
12795 (<sse2_avx_avx512f>_loaddqu<mode>): ... this.
12796 (<sse2>_storedqu<avxsizesuffix>): Extend for AVX512 and rename to ...
12797 (<sse2_avx_avx512f>_storedqu<mode): ... this.
12798 (<sse>_movnt<mode>): Replace constraint "x" with "v".
12799 (STORENT_MODE): Extend for AVX512.
12800 (*absneg<mode>2): Replace constraint "x" with "v".
12801 (*mul<mode>3): Ditto.
12802 (*ieee_smin<mode>3): Ditto.
12803 (*ieee_smax<mode>3): Ditto.
12804 (avx_cmp<mode>3): Replace VF with VF_128_256.
12805 (*<sse>_maskcmp<mode>3_comm): Ditto.
12806 (<sse>_maskcmp<mode>3): Ditto.
12807 (<sse>_andnot<mode>3): Extend for AVX512.
12808 (<code><mode>3, anylogic): Replace VF with VF_128_256.
12809 (<code><mode>3, fpint_logic): New.
12810 (*<code><mode>3): Extend for AVX512.
12811 (avx512flogicsuff): New.
12812 (avx512f_<logic><mode>): Ditto.
12813 (<sse>_movmsk<ssemodesuffix><avxsizesuffix>): Replace VF with
12815 (<sse4_1>_blend<ssemodesuffix><avxsizesuffix>): Ditto.
12816 (<sse4_1>_blendv<ssemodesuffix><avxsizesuffix>): Ditto.
12817 (<sse4_1>_dp<ssemodesuffix><avxsizesuffix>): Ditto.
12818 (avx_vtest<ssemodesuffix><avxsizesuffix>): Ditto.
12819 (<sse4_1>_round<ssemodesuffix><avxsizesuffix>): Ditto.
12820 (xop_vpermil2<mode>3): Ditto.
12821 (*avx_vpermilp<mode>): Extend for AVX512 and rename to ...
12822 (*<sse2_avx_avx512f>_vpermilp<mode>): ... this.
12823 (avx_vpermilvar<mode>3): Extend for AVX512 and rename to ...
12824 (<sse2_avx_avx512f>_vpermilvar<mode>3): ... this.
12826 2013-09-25 Tom Tromey <tromey@redhat.com>
12828 * Makefile.in (PARTITION_H, LTO_SYMTAB_H, COMMON_TARGET_DEF_H)
12829 (RTL_ERROR_H, TRANS_MEM_H, COVERAGE_H, DEMANGLE_H, ALIAS_H)
12830 (SCHED_INT_H, SEL_SCHED_IR_H, SEL_SCHED_DUMP_H, VALTRACK_H, DDG_H)
12831 (GGC_INTERNAL_H, DECNUM_H, BACKTRACE_H, MKDEPS_H, TREE_HASHER_H)
12832 (TREE_SSA_LIVE_H, SSAEXPAND_H, DWARF2OUT_H, SCEV_H, OMEGA_H)
12833 (TREE_DATA_REF_H, IRA_INT_H, LRA_INT_H, DBGCNT_H, DATA_STREAMER_H)
12834 (GIMPLE_STREAMER_H, TREE_STREAMER_H, STREAMER_HOOKS_H)
12835 (TREE_VECTORIZER_H, IPA_INLINE_H, GSTAB_H, LIBFUNCS_H)
12836 (GRAPHITE_HTAB_H): Remove.
12838 2013-09-25 Tom Tromey <tromey@redhat.com>
12840 * config/mcore/t-mcore (CROSS_FLOAT_H): Remove.
12842 2013-09-25 Tom Tromey <tromey@redhat.com>
12844 * config/t-glibc (glibc-c.o): Use COMPILE and POSTCOMPILE.
12846 2013-09-25 Tom Tromey <tromey@redhat.com>
12848 * config/i386/t-i386 (i386.o): Remove.
12849 (i386-c.o): Use COMPILE and POSTCOMPILE.
12851 2013-09-25 Tom Tromey <tromey@redhat.com>
12853 * Makefile.in ($(out_object_file)): Use COMPILE and POSTCOMPILE.
12855 2013-09-25 Tom Tromey <tromey@redhat.com>
12857 * Makefile.in (graph.o, sbitmap.o, sparseset.o, gcc-ar.o)
12858 (gcc-ranlib.o, gcc-nm.o, collect2.o, collect2-aix.o, tlink.o)
12859 (lto-wrapper.o, default-c.o, attribs.o, incpath.o, prefix.o)
12860 (gcc.o, options.o, options-save.o, version.o, gtype-desc.o)
12861 (trans-mem.o, ggc-common.o, ggc-page.o, ggc-none.o, stringpool.o)
12862 (convert.o, double-int.o, lto-compress.o, data-streamer-in.o)
12863 (data-streamer-out.o, data-streamer.o, gimple-streamer-in.o)
12864 (gimple-streamer-out.o, tree-streamer.o, tree-streamer-in.o)
12865 (tree-streamer-out.o, streamer-hooks.o, lto-cgraph.o)
12866 (lto-streamer-in.o, lto-streamer-out.o, lto-section-in.o)
12867 (lto-section-out.o, lto-opts.o, lto-streamer.o, langhooks.o)
12868 (test-dump.o, tree.o, tree-dump.o, tree-inline.o, print-tree.o)
12869 (stor-layout.o, asan.o, tsan.o, ubsan.o, tree-ssa-tail-merge.o)
12870 (tree-ssa-structalias.o, tree-ssa-uninit.o, tree-ssa.o)
12871 (tree-into-ssa.o, tree-ssa-ter.o, tree-ssa-coalesce.o)
12872 (tree-outof-ssa.o, tree-ssa-dse.o, tree-ssa-forwprop.o)
12873 (tree-ssa-phiprop.o, tree-ssa-ifcombine.o, tree-ssa-phiopt.o)
12874 (tree-nrv.o, tree-ssa-copy.o, tree-ssa-propagate.o)
12875 (tree-ssa-dom.o, tree-ssa-uncprop.o, tree-ssa-threadedge.o)
12876 (tree-ssa-threadupdate.o, tree-ssanames.o, tree-phinodes.o)
12877 (domwalk.o, tree-ssa-live.o, tree-ssa-copyrename.o)
12878 (tree-ssa-pre.o, tree-ssa-sccvn.o)
12879 (gimple-ssa-strength-reduction.o, tree-vrp.o, tree-cfg.o)
12880 (tree-cfgcleanup.o, tree-tailcall.o, tree-ssa-sink.o)
12881 (tree-nested.o, tree-if-conv.o, tree-iterator.o, tree-dfa.o)
12882 (tree-ssa-operands.o, tree-eh.o, tree-ssa-loop.o)
12883 (tree-ssa-loop-unswitch.o, tree-ssa-address.o)
12884 (tree-ssa-loop-niter.o, tree-ssa-loop-ivcanon.o)
12885 (tree-ssa-loop-ch.o, tree-ssa-loop-prefetch.o, tree-predcom.o)
12886 (tree-ssa-loop-ivopts.o, tree-affine.o, tree-ssa-loop-manip.o)
12887 (tree-ssa-loop-im.o, tree-ssa-math-opts.o, tree-ssa-alias.o)
12888 (tree-ssa-reassoc.o, tree-optimize.o, gimplify.o)
12889 (gimple-iterator.o, gimple-fold.o, gimple-low.o, omp-low.o)
12890 (tree-browser.o, omega.o, tree-chrec.o, tree-scalar-evolution.o)
12891 (tree-data-ref.o, sese.o, graphite.o, graphite-blocking.o)
12892 (graphite-clast-to-gimple.o, graphite-dependences.o)
12893 (graphite-interchange.o, graphite-poly.o)
12894 (graphite-scop-detection.o, graphite-sese-to-poly.o)
12895 (graphite-optimize-isl.o, tree-vect-loop.o)
12896 (tree-vect-loop-manip.o, tree-vect-patterns.o, tree-vect-slp.o)
12897 (tree-vect-stmts.o, tree-vect-data-refs.o, tree-vectorizer.o)
12898 (vtable-verify.o, tree-loop-distribution.o, tree-parloops.o)
12899 (tree-stdarg.o, tree-object-size.o, internal-fn.o, gimple.o)
12900 (gimple-pretty-print.o, tree-mudflap.o, tree-nomudflap.o)
12901 (tree-pretty-print.o, tree-diagnostic.o, fold-const.o)
12902 (diagnostic.o, diagnostic-color.o, opts.o, opts-global.o)
12903 (opts-common.o, targhooks.o, common/common-targhooks.o, input.o)
12904 (toplev.o, hwint.o, passes.o, plugin.o, main.o, host-default.o)
12905 (rtl-error.o, rtl.o, print-rtl.o, rtlanal.o, varasm.o, function.o)
12906 (statistics.o, stmt.o, except.o, expr.o, dojump.o, builtins.o)
12907 (calls.o, expmed.o, explow.o, optabs.o, dbxout.o, debug.o)
12908 (sdbout.o, dwarf2out.o, dwarf2cfi.o, dwarf2asm.o, vmsdbgout.o)
12909 (xcoffout.o, godump.o, emit-rtl.o, real.o, realmpfr.o, dfp.o)
12910 (fixed-value.o, jump.o, simplify-rtx.o, symtab.o, cgraph.o)
12911 (cgraphunit.o, cgraphclones.o, cgraphbuild.o, varpool.o, ipa.o)
12912 (ipa-profile.o, ipa-devirt.o, ipa-prop.o, ipa-ref.o, ipa-cp.o)
12913 (ipa-split.o, ipa-inline.o, ipa-inline-analysis.o)
12914 (ipa-inline-transform.o, ipa-utils.o, ipa-reference.o)
12915 (ipa-pure-const.o, coverage.o, cselib.o, cse.o, dce.o, dumpfile.o)
12916 (dse.o, fwprop.o, web.o, ree.o, cprop.o, gcse.o, store-motion.o)
12917 (resource.o, lcm.o, mode-switching.o, tree-ssa-dce.o)
12918 (tree-call-cdce.o, tree-ssa-ccp.o, tree-ssa-strlen.o, tree-sra.o)
12919 (tree-switch-conversion.o, tree-complex.o, tree-emutls.o)
12920 (tree-vect-generic.o, df-core.o, df-problems.o, df-scan.o)
12921 (regstat.o, valtrack.o, var-tracking.o, profile.o, mcf.o)
12922 (tree-profile.o, value-prof.o, loop-doloop.o, alloc-pool.o)
12923 (auto-inc-dec.o, cfg.o, cfghooks.o, cfgexpand.o, cfgrtl.o)
12924 (cfganal.o, cfgbuild.o, cfgcleanup.o, cfgloop.o, cfgloopanal.o)
12925 (graphds.o, loop-iv.o, loop-invariant.o, cfgloopmanip.o)
12926 (loop-init.o, loop-unswitch.o, loop-unroll.o, dominance.o)
12927 (et-forest.o, combine.o, reginfo.o, bitmap.o, vec.o, hash-table.o)
12928 (reload.o, reload1.o, rtlhooks.o, postreload.o, postreload-gcse.o)
12929 (caller-save.o, bt-load.o, reorg.o, alias.o, stack-ptr-mod.o)
12930 (init-regs.o, ira-build.o, ira-costs.o, ira-conflicts.o)
12931 (ira-color.o, ira-emit.o, ira-lives.o, ira.o, lra.o)
12932 (lra-assigns.o, lra-coalesce.o, lra-constraints.o)
12933 (lra-eliminations.o, lra-lives.o, lra-spills.o, regmove.o)
12934 (combine-stack-adj.o, compare-elim.o, ddg.o, modulo-sched.o)
12935 (haifa-sched.o, sched-deps.o, sched-rgn.o, sched-ebb.o)
12936 (sched-vis.o, sel-sched.o, sel-sched-dump.o, sel-sched-ir.o)
12937 (final.o, recog.o, reg-stack.o, sreal.o, predict.o, lists.o)
12938 (bb-reorder.o, tracer.o, timevar.o, regcprop.o, regrename.o)
12939 (ifcvt.o, params.o, pointer-set.o, hooks.o, pretty-print.o)
12940 (errors.o, dbgcnt.o, lower-subreg.o, target-globals.o)
12941 (hw-doloop.o, file-find.o, context.o, $(common_out_object_file))
12942 (insn-attrtab.o, insn-automata.o, insn-dfatab.o, insn-emit.o)
12943 (insn-enums.o, insn-extract.o, insn-latencytab.o, insn-modes.o)
12944 (insn-opinit.o, insn-output.o, insn-peep.o, insn-preds.o)
12945 (insn-recog.o, intl.o, cppbuiltin.o, cppdefault.o, gcov.o)
12946 (gcov-dump.o): Remove.
12947 (default-c.o): Use COMPILE and POSTCOMPILE.
12948 (CFLAGS-gcc.o): New variable.
12949 ($(common_out_object_file)): Use COMPILE and POSTCOMPILE.
12951 2013-09-25 Tom Tromey <tromey@redhat.com>
12953 * Makefile.in (c-family/cppspec.o, c-family/c-common.o)
12954 (c-family/c-cppbuiltin.o, c-family/c-dump.o, c-family/c-format.o)
12955 (c-family/c-gimplify.o, c-family/c-lex.o, c-family/c-omp.o)
12956 (c-family/c-opts.o, c-family/c-pch.o, c-family/c-ppoutput.o)
12957 (c-family/c-pragma.o, c-family/c-pretty-print.o)
12958 (c-family/c-semantics.o, c-family/c-ada-spec.o)
12959 (c-family/array-notation-common.o, c-family/stub-objc.o)
12960 (c-family/c-ubsan.o): Remove.
12962 2013-09-25 Tom Tromey <tromey@redhat.com>
12964 * Makefile.in (C_TREE_H): Reference c/c-tree.h.
12966 2013-09-25 Tom Tromey <tromey@redhat.com>
12968 * Makefile.in (DRIVER_DEFINES): Use $(and), not shell code,
12969 to add -DENABLE_SHARED_LIBGCC.
12970 (gcc.o): Don't use subshell.
12972 2013-09-25 Tom Tromey <tromey@redhat.com>
12974 * Makefile.in (OUTPUT_OPTION): Define as "-o $@".
12975 * configure.ac: Don't invoke AM_PROG_CC_C_O.
12976 (NO_MINUS_C_MINUS_O, OUTPUT_OPTION): Don't subst.
12977 * configure, config.in: Rebuild.
12979 2013-09-25 Tom Tromey <tromey@redhat.com>
12981 * Makefile.in (CCDEPMODE, DEPDIR, depcomp, COMPILE.base)
12982 (COMPILE, POSTCOMPILE): New variables.
12983 (.cc.o .c.o): Use COMPILE, POSTCOMPILE.
12984 (DEPFILES): New variable.
12985 Include ".Po" files.
12986 * configure.ac: Add checks for dependency checking.
12987 * configure, aclocal.m4: Regenerate.
12989 2013-09-25 Tom Tromey <tromey@redhat.com>
12991 * Makefile.in (ALL_HOST_BACKEND_OBJS): Add lto-wrapper.o.
12992 ($(ALL_HOST_OBJS)): Move order-only dependency to end of file.
12994 2013-09-25 Tom Tromey <tromey@redhat.com>
12996 * Makefile.in (generated_files): Add options.h,
12997 target-hooks-def.h, insn-opinit.h,
12998 common/common-target-hooks-def.h, pass-instances.def,
12999 c-family/c-target-hooks-def.h.
13001 2013-09-25 Jeff Law <law@redhat.com>
13003 * tree-ssa-threadedge.c (thread_across_edge): Use foo.last () rather
13004 than foo[foo.length () - 1] to access last member in a vec.
13005 * tree-ssa-threadupdate.c (register_jump_thread): Similarly.
13007 2013-09-25 Richard Biener <rguenther@suse.de>
13009 PR middle-end/58521
13010 * tree.c (iterative_hash_expr): Remove MEM_REF special handling.
13012 2013-09-25 Jan Hubicka <jh@suse.cz>
13014 * cgraph.c (cgraph_resolve_speculation): Use semantical equivalency
13017 2013-09-25 Marek Polacek <polacek@redhat.com>
13020 * ubsan.c (ubsan_type_descriptor): Handle IDENTIFIER_NODEs
13021 when determining the type name.
13023 2013-09-24 Oleg Endo <olegendo@gcc.gnu.org>
13025 * config/sh/sh.md: Fix formatting.
13027 2013-09-24 Xinliang David Li <davidxl@google.com>
13029 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment): Check
13030 max peel iterations parameter.
13031 * param.def: New parameter.
13032 * doc/invoke.texi: Document New parameter.
13034 2013-09-24 Christophe Lyon <christophe.lyon@linaro.org>
13036 * gimple-pretty-print.c: Various whitespace tweaks.
13037 * tree-core.h: Likewise.
13038 * tree-pretty-print.c: Likewise.
13039 * tree-ssa-alias.c: Likewise.
13040 * tree-ssa-copy.c: Likewise.
13041 * tree-ssanames.c: Likewise.
13042 * tree-ssanames.h: Likewise.
13043 * tree-vrp.c: Likewise.
13045 2013-09-24 Alan Modra <amodra@gmail.com>
13047 PR middle-end/57134
13048 PR middle-end/57586
13049 * stmt.c (expand_asm_operands): Call expand_expr with EXPAND_MEMORY
13050 for output operands that disallow regs. Don't use EXPAND_WRITE on
13053 2013-09-24 Richard Biener <rguenther@suse.de>
13055 PR middle-end/58513
13056 * tree.c (reference_alias_ptr_type): Move ...
13057 * alias.c (reference_alias_ptr_type): ... here and implement
13058 in terms of the new reference_alias_ptr_type_1.
13059 (ref_all_alias_ptr_type_p): New helper.
13060 (get_deref_alias_set_1): Drop flag_strict_aliasing here,
13061 use ref_all_alias_ptr_type_p.
13062 (get_deref_alias_set): Add flag_strict_aliasing check here.
13063 (reference_alias_ptr_type_1): New function, split out from ...
13064 (get_alias_set): ... here.
13065 (alias_ptr_types_compatible_p): New function.
13066 * alias.h (reference_alias_ptr_type): Declare.
13067 (alias_ptr_types_compatible_p): Likewise.
13068 * tree.h (reference_alias_ptr_type): Remove.
13069 * fold-const.c (operand_equal_p): Use alias_ptr_types_compatible_p
13070 to compare MEM_REF alias types.
13072 2013-09-24 Richard Biener <rguenther@suse.de>
13074 * tree-vrp.c (vrp_finalize): Check for SSA name presence.
13076 2013-09-23 Michael Meissner <meissner@linux.vnet.ibm.com>
13078 * config/rs6000/rs6000.c (rs6000_vector_reload): Delete, combine
13079 reload helper function arrays into a single array reg_addr.
13080 (reload_fpr_gpr): Likewise.
13081 (reload_gpr_vsx): Likewise.
13082 (reload_vsx_gpr): Likewise.
13083 (struct rs6000_reg_addr): Likewise.
13084 (reg_addr): Likewise.
13085 (rs6000_debug_reg_global): Change rs6000_vector_reload,
13086 reload_fpr_gpr, reload_gpr_vsx, reload_vsx_gpr uses to reg_addr.
13087 (rs6000_init_hard_regno_mode_ok): Likewise.
13088 (rs6000_secondary_reload_direct_move): Likewise.
13089 (rs6000_secondary_reload): Likewise.
13091 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Add new
13092 constraints: wu, ww, and wy. Repurpose wv constraint added during
13093 power8 changes. Put wg constraint in alphabetical order.
13095 * config/rs6000/rs6000.opt (-mvsx-scalar-float): New debug switch
13096 for future work to add ISA 2.07 VSX single precision support.
13097 (-mvsx-scalar-double): Change default from -1 to 1, update
13098 documentation comment.
13099 (-mvsx-scalar-memory): Rename debug switch to -mupper-regs-df.
13100 (-mupper-regs-df): New debug switch to control whether DF values
13101 can go in the traditional Altivec registers.
13102 (-mupper-regs-sf): New debug switch to control whether SF values
13103 can go in the traditional Altivec registers.
13105 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Print wu, ww,
13106 and wy constraints.
13107 (rs6000_init_hard_regno_mode_ok): Use ssize_t instead of int for
13108 loop variables. Rename -mvsx-scalar-memory to -mupper-regs-df.
13109 Add new constraints, wu/ww/wy. Repurpose wv constraint.
13110 (rs6000_debug_legitimate_address_p): Print if we are running
13111 before, during, or after reload.
13112 (rs6000_secondary_reload): Add a comment.
13113 (rs6000_opt_masks): Add -mupper-regs-df, -mupper-regs-sf.
13115 * config/rs6000/constraints.md (wa constraint): Sort w<x>
13116 constraints. Update documentation string.
13117 (wd constraint): Likewise.
13118 (wf constraint): Likewise.
13119 (wg constraint): Likewise.
13120 (wn constraint): Likewise.
13121 (ws constraint): Likewise.
13122 (wt constraint): Likewise.
13123 (wx constraint): Likewise.
13124 (wz constraint): Likewise.
13125 (wu constraint): New constraint for ISA 2.07 SFmode scalar
13127 (ww constraint): Likewise.
13128 (wy constraint): Likewise.
13129 (wv constraint): Repurpose ISA 2.07 constraint that we did not use
13130 in the previous submissions.
13131 * doc/md.texi (PowerPC and IBM RS6000): Likewise.
13133 2013-09-23 Richard Sandiford <rdsandiford@googlemail.com>
13135 * doc/rtl.texi (REG_NOTES): Say that int_list can also be used.
13136 (REG_BR_PROB): Say that the probability is stored in an int_list.
13137 * reg-notes.def: Update commentary to mention INT_LIST.
13138 * rtl.def (EXPR_LIST, INSN_LIST): Capitalize comments.
13139 (INT_LIST): New rtx.
13140 * rtl.h (add_int_reg_note, add_shallow_copy_of_reg_note): Declare.
13141 * rtlanal.c (int_reg_note_p): New function.
13142 (alloc_reg_note): Assert that the note does not have an int argument.
13143 (add_int_reg_note, add_shallow_copy_of_reg_note): New functions.
13144 * combine.c (distribute_notes): Use add_shallow_copy_of_rtx.
13145 * cse.c (cse_process_notes_1): Expect REG_EQUAL to be an EXPR_LIST
13146 rather than an INSN_LIST. Handle INT_LIST.
13147 * ifcvt.c (cond_exec_process_insns): Take the probability as an int
13148 rather than an rtx. Use gen_rtx_INT_LIST to create a REG_BR_PROB note.
13149 (cond_exec_process_if_block): Use XINT to extract REG_BR_PROB values.
13150 Manipulate them as ints rather than rtxes.
13151 * reg-stack.c (subst_asm_stack_regs): Only handle EXPR_LIST notes.
13152 * regmove.c (copy_src_to_dest): Likewise.
13153 * sched-vis.c (print_insn_with_notes): Handle INT_LIST.
13155 * config/i386/winnt.c (i386_pe_seh_unwind_emit): Sink pat assignment
13156 into the cases that need it.
13157 * config/arm/arm.c (arm_unwind_emit): Likewise.
13159 * asan.c (asan_clear_shadow): Use add_int_reg_note for REG_BR_PROB.
13160 * emit-rtl.c (try_split, emit_copy_of_insn_after): Likewise.
13161 * loop-doloop.c (add_test, doloop_modify): Likewise.
13162 * loop-unswitch.c (compare_and_jump_seq): Likewise.
13163 * optabs.c (emit_cmp_and_jump_insn_1): Likewise.
13164 * predict.c (combine_predictions_for_insn): Likewise.
13165 * print-rtl.c (print_rtx): Handle INT_LIST.
13166 * config/aarch64/aarch64.c (aarch64_emit_unlikely_jump): Likewise.
13167 * config/alpha/alpha.c (emit_unlikely_jump): Likewise.
13168 * config/arm/arm.c (emit_unlikely_jump): Likewise.
13169 * config/i386/i386.c (ix86_expand_split_stack_prologue): Likewise.
13170 (ix86_split_fp_branch, predict_jump): Likewise.
13171 * config/rs6000/rs6000.c (emit_unlikely_jump): Likewise.
13172 * config/sh/sh.c (expand_cbranchsi4): Likewise.
13173 * config/spu/spu.c (ea_load_store_inline): Likewise.
13175 * cfgbuild.c (compute_outgoing_frequencies): Use XINT to access the
13176 value of a REG_BR_PROB note.
13177 * cfgrtl.c (force_nonfallthru_and_redirect): Likewise.
13178 (update_br_prob_note, rtl_verify_edges, purge_dead_edges): Likewise.
13179 * emit-rtl.c (try_split): Likewise.
13180 * predict.c (br_prob_note_reliable_p): Likewise.
13181 (invert_br_probabilities, combine_predictions_for_insn): Likewise.
13182 * reorg.c (mostly_true_jump): Likewise.
13183 * config/bfin/bfin.c (cbranch_predicted_taken_p): Likewise.
13184 * config/frv/frv.c (frv_print_operand_jump_hint): Likewise.
13185 * config/i386/i386.c (ix86_print_operand): Likewise.
13186 * config/ia64/ia64.c (ia64_print_operand): Likewise.
13187 * config/mmix/mmix.c (mmix_print_operand): Likewise.
13188 * config/rs6000/rs6000.c (output_cbranch): Likewise.
13189 * config/s390/s390.c (s390_expand_tbegin): Likewise.
13190 * config/sh/sh.c (sh_print_operand, sh_adjust_cost): Likewise.
13191 * config/sparc/sparc.c (output_cbranch): Likewise.
13192 * config/spu/spu.c (get_branch_target): Likewise.
13193 * config/tilegx/tilegx.c (cbranch_predicted_p): Likewise.
13194 * config/tilepro/tilepro.c (cbranch_predicted_p): Likewise.
13196 2013-09-23 Jan Hubicka <jh@suse.cz>
13198 * ipa-cp.c (ipa_get_indirect_edge_target_1): Add sanity check
13200 * ipa-utils.h (possible_polymorphic_call_target_p): New function.
13201 * ipa-devirt.c (possible_polymorphic_call_target_p): Be tolerant
13203 * gimple-fold.c: Include ipa-utils.h and gimple-pretty-print.h
13204 (gimple_fold_call): Dump inconsistent devirtualizations; add
13205 sanity check for type based devirtualizations.
13206 * ipa-prop.c: Include ipa-utils.h
13207 (ipa_intraprocedural_devirtualization): Add sanity check.
13208 (try_make_edge_direct_virtual_call): Likewise.
13210 2013-09-23 Eric Botcazou <ebotcazou@adacore.com>
13212 * tree-ssa-ccp.c (insert_clobber_before_stack_restore): Recurse on copy
13213 assignment statements.
13215 2013-09-23 Kugan Vivekanandarajah <kuganv@linaro.org>
13217 * gimple-pretty-print.c (dump_ssaname_info): New function.
13218 (dump_gimple_phi): Call it.
13219 (pp_gimple_stmt_1): Likewise.
13220 * tree-core.h (tree_ssa_name): New union ssa_name_info_type field.
13221 (range_info_def): Declare.
13222 * tree-pretty-print.c (pp_double_int): New function.
13223 (dump_generic_node): Call it.
13224 * tree-pretty-print.h (pp_double_int): Declare.
13225 * tree-ssa-alias.c (dump_alias_info): Check pointer type.
13226 * tree-ssanames.h (range_info_def): New structure.
13227 (value_range_type): Move definition here.
13228 (set_range_info, value_range_type, duplicate_ssa_name_range_info):
13230 * tree-ssanames.c (make_ssa_name_fn): Check pointer type at
13232 (set_range_info): New function.
13233 (get_range_info): Likewise.
13234 (duplicate_ssa_name_range_info): Likewise.
13235 (duplicate_ssa_name_fn): Check pointer type and call
13236 duplicate_ssa_name_range_info.
13237 * tree-ssa-copy.c (fini_copy_prop): Likewise.
13238 * tree-vrp.c (value_range_type): Remove definition, now in
13240 (vrp_finalize): Call set_range_info to update value range of SSA_NAMEs.
13241 * tree.h (SSA_NAME_PTR_INFO): Macro changed to access via union.
13242 (SSA_NAME_RANGE_INFO): New macro.
13244 2013-09-23 Richard Biener <rguenther@suse.de>
13246 PR tree-optimization/58464
13247 * tree-ssa-pre.c (phi_trans_lookup): Remove.
13248 (phi_trans_add): Change to add conditionally on being not present.
13249 (phi_translate_1): Remove recursion detection here.
13250 (phi_translate): Pre-seed the cache with NULL to catch
13251 recursion here in a more generic way.
13252 (bitmap_find_leader): Adjust comment.
13253 (get_representative_for): Dump value-numbers.
13254 (create_expression_by_pieces): Likewise.
13255 (insert_into_preds_of_block): Likewise.
13257 2013-09-23 Christian Bruel <christian.bruel@st.com>
13260 * config/sh/sh.md (movsf_ie): Allow fpul_operand.
13261 * config/sh/predicate.md (arith_reg_operand): Disallow FPUL_REG.
13263 2013-09-23 James Greenhalgh <james.greenhalgh@arm.com>
13266 2013-09-20 Renlin Li <renlin.li@arm.com>
13268 * config/aarch64/aarch64.c (aarch64_expand_prologue): Use
13270 (aarch64_expand_epilogue): Likewise.
13271 (aarch64_legitimize_reload_address): Likewise.
13273 2013-09-22 Eric Botcazou <ebotcazou@adacore.com>
13275 * gimplify.c (gimplify_asm_expr): Reset the TREE_CHAIN of clobbers to
13276 NULL_TREE before pushing them onto the vector. Likewise for labels.
13278 2013-09-21 Eric Botcazou <ebotcazou@adacore.com>
13280 * config/ia64/predicates.md (ia64_cbranch_operator): Accept unordered
13281 comparison operators when -fno-trapping-math is in effect.
13282 * config/ia64/ia64.c (ia64_expand_compare): Add support for unordered
13283 comparison operators in TFmode and assert that unsupported operators
13285 (ia64_print_operand): Likewise.
13287 2013-09-21 Jan Hubicka <jh@suse.cz>
13289 * x86-tune.def (partial_reg_stall): Disable for CoreI7 and newer.
13290 (sse_typeless_stores): Enable for core
13291 (sse_load0_by_pxor): Likewise.
13292 (four_jump_limit): Disable for core.
13293 (pad_returns): Likewise.
13294 (avoid_vector_decode): Likewise.
13295 (fuse_cmp_and_branch): Enable for cores.
13296 * i386.c (x86_accumulate_outgoing_args): Disable for cores.
13298 2013-09-20 John David Anglin <danglin@gcc.gnu.org>
13300 PR middle-end/56791
13301 * config/pa/pa.c (pa_option_override): Disable auto increment and
13302 decrement instructions until reload is completed.
13304 * config/pa/pa-linux.h (TARGET_OS_CPP_BUILTINS): Define
13305 __GCC_HAVE_SYNC_COMPARE_AND_SWAP_1, __GCC_HAVE_SYNC_COMPARE_AND_SWAP_2,
13306 and __GCC_HAVE_SYNC_COMPARE_AND_SWAP_4.
13308 2013-09-20 DJ Delorie <dj@redhat.com>
13309 Nick Clifton <nickc@redhat.com>
13311 * config/rl78/rl78.c: Various whitespace and comment tweaks.
13312 (need_to_save): Save bank 0 on interrupts.
13313 (characterize_address): Strip far address wrappers.
13314 (rl78_as_legitimate_address): Likewise.
13315 (transcode_memory_rtx): Likewise.
13316 (rl78_peep_movhi_p): Disable this peephole after devirt.
13317 (rl78_propogate_register_origins): Forget all origins when a
13319 * config/rl78/rl78-virt.md: Various whitespace tweaks.
13320 * config/rl78/rl78-real.md: Various whitespace tweaks. Additional
13322 * config/rl78/rl78.md (sel_rb): Disable for G10 just in case.
13323 * config/rl78/rl78-expand.md (movqi): Check for subregs of consts.
13324 * config/rl78/rl78.h (LINK_SPEC): Pass -gc-sections unless
13326 * config/rl78/constraints.md: Various whitespace and paren tweaks.
13328 2013-09-20 John David Anglin <danglin@gcc.gnu.org>
13330 * config/pa/pa.md: In "scc" insn patterns, change output template to
13331 handle const0_rtx in reg_or_0_operand operands.
13333 2013-09-20 Martin Husemann <martin@NetBSD.org>
13336 * config/vax/vax.c (vax_output_int_move): Use D format specifier.
13337 * config/vax/vax.md (ashldi3, <unnamed>): Ditto.
13339 2013-09-20 Richard Biener <rguenther@suse.de>
13341 PR middle-end/58484
13342 * tree-scalar-evolution.c (struct scev_info_str): Shrink by
13343 remembering SSA name version and block index.
13344 (new_scev_info_str): Adjust.
13345 (hash_scev_info): Likewise. Also hash the block index.
13346 (eq_scev_info): Adjust.
13347 (find_var_scev_info): Likewise.
13348 (struct instantiate_cache_entry): Remove.
13349 (struct instantiate_cache_type): Use a htab to map name, block
13351 (instantiate_cache_type::~instantiate_cache_type): Adjust.
13352 (get_instantiated_value_entry): Likewise.
13353 (hash_idx_scev_info, eq_idx_scev_info): New functions.
13354 (instantiate_scev_name): Adjust.
13356 2013-09-20 Jeff Law <law@redhat.com>
13358 * tree-ssa-dom.c (record_temporary_equivalences): Add comment.
13360 2013-09-20 Yufeng Zhang <yufeng.zhang@arm.com>
13362 * config/aarch64/aarch64-builtins.c (aarch64_simd_expand_args):
13363 Call aarch64_simd_expand_args to update op[argc].
13365 2013-09-20 Basile Starynkevitch <basile@starynkevitch.net>
13367 * plugin.c (parse_plugin_arg_opt): Accept equal sign inside
13370 2013-09-20 Basile Starynkevitch <basile@starynkevitch.net>
13372 * gengtype.c (file_rules): Added rule for *.cc files.
13373 (get_output_file_with_visibility): Give fatal message when no
13376 2013-09-20 Renlin Li <renlin.li@arm.com>
13378 * config/aarch64/aarch64.c (aarch64_expand_prologue): Use plus_constant.
13379 (aarch64_expand_epilogue): Likewise.
13380 (aarch64_legitimize_reload_address): Likewise.
13382 2013-09-20 Bernd Edlinger <bernd.edlinger@hotmail.de>
13384 PR middle-end/57748
13385 * expr.c (expand_assignment): Remove misalignp code path.
13387 2013-09-20 Marek Polacek <polacek@redhat.com>
13390 * ubsan.c (get_ubsan_type_info_for_type): Use TYPE_SIZE instead of
13391 TYPE_PRECISION. Add asserts.
13393 2013-09-20 Richard Biener <rguenther@suse.de>
13395 PR tree-optimization/58453
13396 * tree-loop-distribution.c (distribute_loop): Apply the cost
13397 model for -ftree-loop-distribute-patterns, too.
13399 2013-09-20 Richard Biener <rguenther@suse.de>
13401 PR middle-end/58473
13402 * tree-chrec.h (build_polynomial_chrec): Use gcc_checking_assert,
13403 make type comparison less strict.
13405 2013-09-20 Alan Modra <amodra@gmail.com>
13407 * configure: Regenerate.
13408 * aclocal.m4: Regenerate.
13410 2013-09-20 Marek Polacek <polacek@redhat.com>
13413 * doc/extend.texi: Document that attribute used is meant to be used
13414 on variables with static storage duration.
13416 2013-09-19 Jakub Jelinek <jakub@redhat.com>
13418 PR tree-optimization/58472
13419 * tree-vect-stmts.c (vectorizable_store, vectorizable_load): For
13420 simd_lane_access set inv_p = false.
13421 * omp-low.c (lower_rec_input_clauses): Set TREE_NO_WARNING on
13422 the simduid magic VAR_DECL.
13424 2013-09-19 Jan Hubicka <jh@suse.cz>
13426 * i386.c (generic_memcpy, generic_memset): Fix 32bit template.
13428 2013-09-17 Jeff Law <law@redhat.com>
13430 * tree-ssa-dom.c (record_temporary_equivalences): New function
13431 split out of dom_opt_dom_walker::after_dom_children.
13432 (dom_opt_dom_walker::thread_across_edge): Move common code
13433 in here from dom_opt_dom_walker::after_dom_children.
13434 (dom_opt_dom_walker::after_dom_children): Corresponding simplifictions.
13436 2013-09-19 Jan Hubicka <jh@suse.cz>
13438 * i386.h (TARGET_GENERIC32, TARGET_GENERIC64): Remove.
13439 (TARGET_GENERIC): Use PROCESOR_GENERIC
13440 (enum processor_type): Unify generic32 and 64.
13441 * i386.md (cpu): Likewise.
13442 * x86-tune.def (use_leave): Enable for generic32.
13443 (avoid_vector_decode, slow_imul_imm32_mem, slow_imul_imm8): Likewise.
13444 * athlon.md: Change generic64 to generic in all occurences.
13445 * i386-c.c (ix86_target_macros_internal): Unify generic64 and 32.
13446 (ix86_target_macros_internal): Likewise.
13447 * driver-i386.c (host_detect_local_cpu): Likewise.
13448 * i386.c (generic64_memcpy, generic64_memset, generic64_cost): Rename
13450 (generic_memcpy, generic_memset, generic_cost): This one.
13451 (generic32_memcpy, generic32_memset, generic32_cost): Remove.
13452 (m_GENERIC32, m_GENERIC64): Remove.
13453 (m_GENERIC): Turn into one flag.
13454 (processor_target): Unify generic tunnings.
13455 (ix86_option_override_internal): Replace generic32/64 by generic.
13456 (ix86_issue_rate): Likewise.
13457 (ix86_adjust_cost): Likewise.
13459 2013-09-19 Jan Hubicka <jh@suse.cz>
13461 * cgraph.c (cgraph_create_edge_1): Avoid uninitialized read
13462 of speculative flag.
13464 2013-09-19 Jakub Jelinek <jakub@redhat.com>
13466 * omp-low.c (expand_omp_sections): Always pass len - 1 to
13467 GOMP_sections_start, even if !exit_reachable.
13469 2013-09-18 Vladimir Makarov <vmakarov@redhat.com>
13471 * lra-constraints.c (need_for_all_save_p): Use macro
13472 HARD_REGNO_CALL_PART_CLOBBERED.
13473 * lra-lives.c (check_pseudos_live_through_calls): Use the macro to
13474 set up pseudo conflict hard regs.
13476 2013-09-18 Michael Meissner <meissner@linux.vnet.ibm.com>
13479 * config/rs6000/paired.md (movmisalignv2sf): Fix to allow memory
13482 2013-09-18 Vladimir Makarov <vmakarov@redhat.com>
13484 PR rtl-optimization/58438
13485 * lra.c (lra): Clear lra_optional_reload_pseudos in upper loop.
13486 * lra-constraints.c (undo_optional_reloads): Keep optional reloads
13487 from previous subpasses.
13489 2013-09-18 Richard Earnshaw <rearnsha@arm.com>
13491 * arm.c (arm_get_frame_offsets): Validate architecture supports
13492 LDRD/STRD before accepting the tuning preference.
13493 (arm_expand_prologue): Likewise.
13494 (arm_expand_epilogue): Likewise.
13496 2013-09-18 Richard Biener <rguenther@suse.de>
13498 PR tree-optimization/58417
13499 * tree-chrec.c (chrec_fold_plus_1): Assert that we do not
13500 have chrecs with symbols defined in the loop as operands.
13501 (chrec_fold_multiply): Likewise.
13502 * tree-scalar-evolution.c (interpret_rhs_expr): Instantiate
13503 parameters before folding binary operations.
13504 (struct instantiate_cache_entry_hasher): Remove.
13505 (struct instantiate_cache_type): Use a pointer-map.
13506 (instantiate_cache_type::instantiate_cache_type): New function.
13507 (instantiate_cache_type::get): Likewise.
13508 (instantiate_cache_type::set): Likewise.
13509 (instantiate_cache_type::~instantiate_cache_type): Adjust.
13510 (get_instantiated_value_entry): Likewise.
13511 (global_cache): New global.
13512 (instantiate_scev_r, instantiate_scev_poly, instantiate_scev_binary,
13513 instantiate_array_ref, instantiate_scev_convert, instantiate_scev_3,
13514 instantiate_scev_2, instantiate_scev_1): Do not pass along cache.
13515 (instantiate_scev_name): Adjust.
13516 (instantiate_scev): Construct global instead of local cache.
13517 (resolve_mixers): Likewise.
13519 2013-09-18 Daniel Morris <danielm@ecoscentric.com>
13520 Paolo Carlini <paolo.carlini@oracle.com>
13523 * doc/implement-cxx.texi: Fix references to the C++ standards.
13525 2013-09-18 Jakub Jelinek <jakub@redhat.com>
13527 * omp-low.c (copy_var_decl): Copy DECL_ATTRIBUTES.
13528 * tree-vect-data-refs.c (vect_analyze_data_refs): For
13529 simd_lane_access drs, update also DR_ALIGNED_TO.
13531 2013-09-18 Marek Polacek <polacek@redhat.com>
13534 * doc/extend.texi: Document no_sanitize_undefined attribute.
13535 * builtins.c (fold_builtin_0): Don't sanitize function if it has the
13536 no_sanitize_undefined attribute.
13538 2013-09-18 Nick Clifton <nickc@redhat.com>
13540 * config/msp430/msp430.h (ASM_SPEC): Pass -md on to the assembler.
13541 (ASM_DECLARE_FUNCTION_NAME): Define.
13543 2013-09-17 Trevor Saunders <tsaunders@mozilla.com>
13545 * compare-elim.c (find_comparison_dom_walker): New class
13546 (find_comparisons_in_bb): Rename to
13547 find_comparison_dom_walker::before_dom_children
13548 (find_comparisons): Adjust
13549 * domwalk.c (walk_dominator_tree): Rename to dom_walker::walk, and
13551 (init_walk_dominator_tree, fini_walk_dominator_tree): Remove
13552 * domwalk.h (dom_walk_data): Convert it To a class dom_walker.
13553 (init_walk_dominator_tree): Remove declaration.
13554 (fini_walk_dominator_tree): Remove declaration.
13555 * fwprop.c (single_def_use_dom_walker): New class
13556 (single_def_use_enter_block): Convert to
13557 single_def_use_dom_walker::before_dom_children.
13558 (single_def_use_leave_block): Convert to
13559 single_def_use_dom_walker::after_dom_children.
13560 (build_single_def_use_links): Adjust.
13561 * gimple-ssa-strength-reduction.c (find_candidates_dom_walker): New
13563 (find_candidates_in_block): Convert to
13564 find_candidates_dom_walker::before_dom_children.
13565 (execute_strength_reduction): Adjust.
13566 * graphite-sese-to-poly.c (struct bsc, build_sese_conditions): Remove.
13567 (sese_dom_walker): New class.
13568 (sese_dom_walker::sese_dom_walker): New constructor.
13569 (sese_dom_walker::~sese_dom_walker): New destructor.
13570 (build_sese_conditions_before): Convert to
13571 sese_dom_walker::before_dom_children.
13572 (build_sese_conditions_after): Convert to
13573 sese_dom_walker::after_dom_children.
13574 (build_poly_scop): Adjust
13575 * tree-into-ssa.c (rewrite_dom_walker): New class
13576 (rewrite_enter_block): Convert to
13577 rewrite_dom_walker::before_dom_children.
13578 (rewrite_leave_block): Convert to
13579 rewrite_dom_walker::after_dom_children.
13580 (rewrite_update_dom_walker): New class.
13581 (rewrite_update_enter_block): Convert to
13582 rewrite_update_dom_walker::before_dom_children.
13583 (rewrite_update_leave_block): Convert to
13584 rewrite_update_dom_walker::after_dom_children.
13585 (rewrite_blocks, rewrite_into_ssa): Adjust.
13586 (mark_def_dom_walker): New class.
13587 (mark_def_dom_walker::mark_def_dom_walker): New constructor.
13588 (mark_def_dom_walker::~mark_def_dom_walker): New destructor.
13589 (mark_def_sites_blocks): Convert to
13590 mark_def_dom_walker::before_dom_children.
13591 (mark_def_site_blocks): Remove.
13592 * tree-ssa-dom.c (dom_opt_dom_walker): New class.
13593 (tree_ssa_dominator_optimize): Adjust.
13594 (dom_thread_across_edge): Convert to method
13595 dom_opt_dom_walker::thread_across_edge.
13596 (dom_opt_enter_block): Convert to member function
13597 dom_opt_dom_walker::before_dom_children.
13598 (dom_opt_leave_block): Convert to member function
13599 dom_opt_dom_walker::after_dom_children.
13600 * tree-ssa-dse.c (dse_dom_walker): New class.
13601 (dse_enter_block): Convert to member function
13602 dse_dom_walker::before_dom_children.
13603 (tree_ssa_dse): Adjust.
13604 * tree-ssa-loop-im.c (invariantness_dom_walker): New class.
13605 (determine_invariantness_stmt): Convert to method
13606 invariantness_dom_walker::before_dom_children.
13607 (determine_invariantness): Remove
13608 (move_computations_dom_walker): New class.
13609 (move_computations_stmt): Convert to method
13610 move_computations_dom_walker::before_dom_children.
13611 (move_computations, tree_ssa_lim): Adjust.
13612 * tree-ssa-phiopt.c (nontrapping_dom_walker): New class.
13613 (nt_init_block): Convert to method
13614 notrappping_dom_walker::before_dom_children.
13615 (nt_fini_block): Convert to method
13616 method nontrapping_dom_walker::after_dom_children.
13617 (get_non_trapping): Adjust.
13618 * tree-ssa-pre.c (eliminate_dom_walker): New class.
13619 (eliminate_bb): Convert to method
13620 eliminate_dom_walker::before_dom_children.
13621 (eliminate_leave_block): Convert to method
13622 eliminate_dom_walker::after_dom_children.
13623 (eliminate): Adjust.
13624 * tree-ssa-strlen.c (strlen_dom_walker): New class.
13625 (strlen_enter_block): Convert to method
13626 strlen_dom_walker::before_dom_children.
13627 (strlen_leave_block): Convert to method
13628 method strlen_dom_walker::after_dom_children.
13629 (tree_ssa_strlen): Adjust.
13630 * tree-ssa-uncprop.c (uncprop_dom_walker): New class.
13631 (tree_ssa_uncprop): Adjust.
13632 (uncprop_leave_block): Convert to method
13633 uncprop_dom_walker::after_dom_children.
13634 (uncprop_leave_block): Convert to method
13635 uncprop_dom_walker::before_dom_children.
13637 2013-09-18 Bin Cheng <bin.cheng@arm.com>
13639 * config/arm/arm.c (thumb1_reorg): Search for flag setting insn before
13640 branch in same basic block. Check both src and dest of the move insn.
13642 2013-09-17 Nick Clifton <nickc@redhat.com>
13644 * config/rl78/rl78-real.md (bf): New pattern.
13646 * config/rl78/rl78.c (rl78_print_operand_1): Handle %B.
13647 (rl78_print_operand): Do not put a # before a %B.
13648 * config/rl78/rl78.opt: Tweak doc strings.
13650 2013-09-17 DJ Delorie <dj@redhat.com>
13652 * config/rl78/constraints.md (Wcv): Allow up to $r31.
13653 * config/rl78/rl78.c (rl78_asm_file_start: Likewise.
13654 (rl78_option_override): Likewise, if -mallregs.
13655 (is_virtual_register): Likewise.
13656 * config/rl78/rl78.h (reg_class): Extend VREGS to $r31.
13657 (REGNO_OK_FOR_BASE_P): Likewise.
13658 * config/rl78/rl78.opt (-mallregs): New.
13660 2013-09-17 Nick Clifton <nickc@redhat.com>
13662 * config/rl78/rl78.c (need_to_save): Change return type to bool.
13663 For interrupt functions: save all call clobbered registers if the
13664 interrupt handler is not a leaf function.
13665 (rl78_expand_prologue): Always recompute the frame information.
13666 For interrupt functions: only select bank 0 if one of the bank 0
13667 registers is going to be psuhed.
13669 2013-09-17 DJ Delorie <dj@redhat.com>
13671 * config/rl78/constraints.md: For each W* constraint, rename to C*
13672 and create a W* constraint that checks for an optional ES: prefix
13674 * config/rl78/rl78.md (UNS_ES_ADDR): New.
13675 (es_addr): New. Used to wrap far addresses.
13676 * config/rl78/rl78-protos.h (rl78_es_addr): New.
13677 (rl78_es_base): New.
13678 * config/rl78/rl78.c (rl78_as_legitimate_address): Accept "unspec"
13679 wrapped far addresses.
13680 (rl78_print_operand_1): Unwrap far addresses before processing.
13681 (rl78_lo16): Wrap far addresses in unspecs.
13682 (rl78_es_addr): New.
13683 (rl78_es_base): New.
13684 (insn_ok_now): Check for not-yet-wrapped far addresses.
13685 (transcode_memory_rtx): Properly re-wrap far addresses.
13687 2013-09-17 Sebastian Huber <sebastian.huber@embedded-brains.de>
13689 * config/sparc/t-rtems: Add leon3 multilibs.
13691 2013-09-17 Cong Hou <congh@google.com>
13693 * tree-vect-patterns.c (vect_recog_dot_prod_pattern): Fix a bug
13694 when checking the dot production pattern. The type of rhs operand
13695 of multiply is now checked correctly.
13697 2013-09-17 Jeff Law <law@redhat.com>
13699 * tree-ssa-dom.c (cprop_into_successor_phis): Also propagate
13700 edge implied equivalences into successor phis.
13701 * tree-ssa-threadupdate.c (phi_args_equal_on_edges): Moved into
13702 here from tree-ssa-threadedge.c.
13703 (mark_threaded_blocks): When threading through a joiner, if both
13704 successors of the joiner's clone reach the same block, verify the
13705 PHI arguments are equal. If not, cancel the jump threading request.
13706 * tree-ssa-threadedge.c (phi_args_equal_on_edges): Moved into
13707 tree-ssa-threadupdate.c
13708 (thread_across_edge): Don't check PHI argument equality when
13709 threading through joiner block here.
13711 2013-09-17 Andrew MacLeod <amacleod@redhat.com>
13713 * tree-flow.h (ssa_undefined_value_p): Remove prototype.
13714 * tree-ssa.c (ssa_undefined_value_p): Move pass independent parts here.
13715 (warn_uninit, warn_uninitialized_vars,
13716 execute_early_warn_uninitialized, make_pass_early_warn_uninitialized):
13717 Move to tree-ssa-uninit.c.
13718 * tree-ssa-uninit.c (ssa_undefined_value_p): Move to tree-ssa.c.
13719 (has_undefined_value_p): New. Pass dependant parts of
13720 ssa_undefined_value_p.
13721 (uninit_undefined_value_p): Use has_undefined_value_p.
13722 (warn_uninit, warn_uninitialized_vars,
13723 execute_early_warn_uninitialized, make_pass_early_warn_uninitialized):
13724 Move from tree-ssa.c.
13725 * tree-ssa.h: Adjust prototypes.
13727 2013-09-17 Jan Hubicka <jh@suse.cz>
13729 PR middle-end/58332
13730 * cif-code.def (FUNCTION_NOT_OPTIMIZED): New CIF code.
13731 * ipa-inline.c (can_inline_edge_p): Do not downgrade
13732 FUNCTION_NOT_OPTIMIZED.
13733 * ipa-inline-analysis.c (compute_inline_parameters): Function
13734 not optimized is not inlinable unless it is alwaysinline.
13735 (inline_analyze_function): Force calls in not optimized
13736 function not inlinable.
13738 2013-09-17 Jan Hubicka <jh@suse.cz>
13740 PR middle-end/58329
13741 * ipa-devirt.c (ipa_devirt): Be ready for symtab_nonoverwritable_alias
13743 * ipa.c (function_and_variable_visibility): Likewise.
13744 * ipa-profile.c (ipa_profile): Likewise.
13746 2013-09-17 Bernd Edlinger <bernd.edlinger@hotmail.de>
13749 * cgraph.c (cgraph_function_body_availability): Check for ifunc
13750 attribute, and don't inline the resolver in this case.
13752 2013-09-17 Teresa Johnson <tejohnson@google.com>
13754 * coverage.c (get_coverage_counts): Add missing newline.
13756 2013-09-17 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
13758 PR tree-optimization/58088
13759 * fold-const.c (mask_with_trailing_zeros): New function.
13760 (fold_binary_loc): Make sure we don't recurse infinitely
13761 when the X in (X & C1) | C2 is a tree of the form (Y * K1) & K2.
13762 Use mask_with_trailing_zeros where appropriate.
13764 2013-09-17 Yuri Rumyantsev <ysrumyan@gmail.com>
13766 * config/i386/i386.c (distance_agu_use_in_bb) : Proper initialization
13767 of 'prev' var to get better distance estimation.
13769 2013-09-17 Eric Botcazou <ebotcazou@adacore.com>
13771 * tree-inline.h (struct copy_body_data): Add transform_parameter.
13772 * tree-inline.c (is_parameter_of): New predicate.
13773 (remap_gimple_op_r): Do not propagate TREE_THIS_NOTRAP on MEM_REF if
13774 a parameter has been remapped.
13775 (copy_tree_body_r): Likewise on INDIRECT_REF and MEM_REF.
13776 (optimize_inline_calls): Initialize transform_parameter.
13777 (copy_gimple_seq_and_replace_locals): Likewise.
13778 (tree_function_versioning): Likewise.
13779 (maybe_inline_call_in_expr): Likewise.
13781 2013-09-17 Nick Clifton <nickc@redhat.com>
13783 * config/msp430/msp430-protos.h: Add prototypes for new functions.
13784 * config/msp430/msp430.c (msp430_preserve_reg_p): Add support for
13785 interrupt handlers.
13786 (is_attr_func): New function.
13787 (msp430_is_interrupt_func): New function.
13788 (is_naked_func): New function.
13789 (is_reentrant_func): New function.
13790 (is_critical_func): New function.
13791 (msp430_start_function): Add annotations for function attributes.
13792 (msp430_attr): New function.
13793 (msp430_attribute_table): New.
13794 (msp430_function_section): New function.
13795 (TARGET_ASM_FUNCTION_SECTION): Define.
13796 (msp430_builtin): New enum.
13797 (msp430_init_builtins): New function.
13798 (msp430_builtin_devl): New function.
13799 (msp430_expand_builtin): New function.
13800 (TARGET_INIT_BUILTINS): Define.
13801 (TARGET_EXPAND_BUILTINS): Define.
13802 (TARGET_BUILTIN_DECL): Define.
13803 (msp430_expand_prologue): Add support for naked, interrupt,
13804 critical and reentrant functions.
13805 (msp430_expand_epilogue): Likewise.
13806 (msp430_print_operand): Handle 'O' character.
13807 * config/msp430/msp430.h (TARGET_CPU_CPP_BUILTINS): Define
13809 * config/msp430/msp430.md (unspec): Add UNS_DINT, UNS_EINT,
13810 UNS_PUSH_INTR, UNS_POP_INTR, UNS_BIC_SR, UNS_BIS_SR.
13811 (pushm): Use a 'n' rather than an 'i' constraint.
13812 (msp_return): Add generation of the interrupt return instruction.
13813 (disable_interrupts): New pattern.
13814 (enable_interrupts): New pattern.
13815 (push_intr_state): New pattern.
13816 (pop_intr_state): New pattern.
13817 (bic_SR): New pattern.
13818 (bis_SR): New pattern.
13819 * doc/extend.texi: Document MSP430 function attributes and builtin
13822 2013-09-17 Richard Biener <rguenther@suse.de>
13824 PR tree-optimization/58432
13825 * tree-loop-distribution.c (tree_loop_distribution): Also
13826 scan PHIs for outside loop uses and seed a partition from them.
13828 2013-09-17 Bin Cheng <bin.cheng@arm.com>
13830 * gimple-ssa-strength-reduction.c (backtrace_base_for_ref): New.
13831 (restructure_reference): Call backtrace_base_for_ref.
13833 2013-09-17 Alan Modra <amodra@gmail.com>
13836 * config/rs6000/driver-rs6000.c (elf_platform): Revert 2013-06-11
13839 2013-09-16 DJ Delorie <dj@redhat.com>
13841 * config/rl78/rl78.c (rl78_asm_file_start): Specify alternate
13842 vregs location for RL78/G10.
13843 (rl78_expand_prologue): Avoid SEL on G10.
13844 (rl78_expand_epilogue): Likewise.
13845 (rl78_peep_movhi_p): Can't move a constant to memory in HImode.
13846 * config/rl78/rl78.h (TARGET_CPU_CPP_BUILTINS): Define
13847 __RL78_G10__ when appropriate.
13848 (ASM_SPEC): Pass -mg10 along to the assembler.
13849 * config/rl78/rl78.md (sel_rb): Disable for G10.
13850 * config/rl78/rl78.opt: Add -mg10 option.
13851 * config/rl78/t-rl78: Add -mg10 multilib.
13853 2013-09-16 Xinliang David Li <davidxl@google.com>
13855 * tree-if-conv.c (main_tree_if_conversion): Check new flag.
13856 * omp-low.c (omp_max_vf): Ditto.
13857 (expand_omp_simd): Ditto.
13858 * tree-vectorizer.c (vectorize_loops): Ditto.
13859 (gate_vect_slp): Ditto.
13860 (gate_increase_alignment): Ditto.
13861 * tree-ssa-pre.c (inhibit_phi_insertion): Ditto.
13862 * tree-ssa-loop.c (gate_tree_vectorize): Ditto.
13863 (gate_tree_vectorize): Name change.
13864 (tree_vectorize): Ditto.
13865 (pass_vectorize::gate): Call new function.
13866 (pass_vectorize::execute): Ditto.
13867 * opts.c: O3 default setting change.
13868 (finish_options): Check new flag.
13869 * doc/invoke.texi: Document new flags.
13870 * common.opt: New flags.
13872 2013-09-16 Andreas Schwab <schwab@linux-m68k.org>
13874 * doc/tm.texi.in (Cond Exec Macros): Remove node.
13875 (Condition Code): Don't reference it.
13876 * doc/tm.texi: Regenerate.
13878 2013-09-16 Vladimir Makarov <vmakarov@redhat.com>
13880 PR middle-end/58418
13881 * lra-constraints.c (undo_optional_reloads): Consider all optional
13882 reload even if it did not get a hard reg.
13884 2013-09-16 Teresa Johnson <tejohnson@google.com>
13886 * dumpfile.c (dump_loc): Remove newline emission.
13887 * tree-vect-data-refs.c (vect_lanes_optab_supported_p): Add newline
13888 emission to dump_printf_loc calls where missing.
13889 (vect_mark_for_runtime_alias_test): Ditto.
13890 (vect_analyze_data_ref_dependence): Ditto.
13891 (vect_analyze_data_ref_dependences): Ditto.
13892 (vect_slp_analyze_data_ref_dependence): Ditto.
13893 (vect_slp_analyze_data_ref_dependences): Ditto.
13894 (vect_compute_data_ref_alignment): Ditto.
13895 (vect_update_misalignment_for_peel): Ditto.
13896 (vect_verify_datarefs_alignment): Ditto.
13897 (vector_alignment_reachable_p): Ditto.
13898 (vect_get_data_access_cost): Ditto.
13899 (vect_enhance_data_refs_alignment): Ditto.
13900 (vect_find_same_alignment_drs): Ditto.
13901 (vect_analyze_data_refs_alignment): Ditto.
13902 (vect_analyze_group_access): Ditto.
13903 (vect_analyze_data_ref_access): Ditto.
13904 (vect_analyze_data_ref_accesses): Ditto.
13905 (vect_prune_runtime_alias_test_list): Ditto.
13906 (vect_analyze_data_refs): Ditto.
13907 (vect_create_addr_base_for_vector_ref): Ditto.
13908 (vect_create_data_ref_ptr): Ditto.
13909 (vect_grouped_store_supported): Ditto.
13910 (vect_grouped_load_supported): Ditto.
13911 * value-prof.c (check_counter): Ditto.
13912 (check_ic_target): Ditto.
13913 * tree-vect-patterns.c (vect_recog_dot_prod_pattern): Ditto.
13914 (vect_recog_widen_mult_pattern): Ditto.
13915 (vect_recog_widen_sum_pattern): Ditto.
13916 (vect_recog_over_widening_pattern): Ditto.
13917 (vect_recog_widen_shift_pattern): Ditto.
13918 (vect_recog_rotate_pattern): Ditto.
13919 (vect_recog_vector_vector_shift_pattern): Ditto.
13920 (vect_recog_divmod_pattern): Ditto.
13921 (vect_recog_mixed_size_cond_pattern): Ditto.
13922 (vect_recog_bool_pattern): Ditto.
13923 (vect_pattern_recog_1): Ditto.
13924 (vect_pattern_recog): Ditto.
13925 * tree-vect-loop.c (vect_determine_vectorization_factor): Ditto.
13926 (vect_is_simple_iv_evolution): Ditto.
13927 (vect_analyze_scalar_cycles_1): Ditto.
13928 (vect_get_loop_niters): Ditto.
13929 (vect_analyze_loop_1): Ditto.
13930 (vect_analyze_loop_form): Ditto.
13931 (vect_analyze_loop_operations): Ditto.
13932 (vect_analyze_loop_2): Ditto.
13933 (vect_analyze_loop): Ditto.
13934 (report_vect_op): Ditto.
13935 (vect_is_slp_reduction): Ditto.
13936 (vect_is_simple_reduction_1): Ditto.
13937 (vect_get_known_peeling_cost): Ditto.
13938 (vect_estimate_min_profitable_iters): Ditto.
13939 (vect_model_reduction_cost): Ditto.
13940 (vect_model_induction_cost): Ditto.
13941 (get_initial_def_for_induction): Ditto.
13942 (vect_create_epilog_for_reduction): Ditto.
13943 (vectorizable_reduction): Ditto.
13944 (vectorizable_induction): Ditto.
13945 (vectorizable_live_operation): Ditto.
13946 (vect_loop_kill_debug_uses): Ditto.
13947 (vect_transform_loop): Ditto.
13948 * tree-vect-stmts.c (vect_mark_relevant): Ditto.
13949 (vect_stmt_relevant_p): Ditto.
13950 (process_use): Ditto.
13951 (vect_mark_stmts_to_be_vectorized): Ditto.
13952 (vect_model_simple_cost): Ditto.
13953 (vect_model_promotion_demotion_cost): Ditto.
13954 (vect_model_store_cost): Ditto.
13955 (vect_get_store_cost): Ditto.
13956 (vect_model_load_cost): Ditto.
13957 (vect_get_load_cost): Ditto.
13958 (vect_init_vector_1): Ditto.
13959 (vect_get_vec_def_for_operand): Ditto.
13960 (vect_finish_stmt_generation): Ditto.
13961 (vectorizable_call): Ditto.
13962 (vectorizable_conversion): Ditto.
13963 (vectorizable_assignment): Ditto.
13964 (vectorizable_shift): Ditto.
13965 (vectorizable_operation): Ditto.
13966 (vectorizable_store): Ditto.
13967 (vectorizable_load): Ditto.
13968 (vectorizable_condition): Ditto.
13969 (vect_analyze_stmt): Ditto.
13970 (vect_transform_stmt): Ditto.
13971 (vect_is_simple_use): Ditto.
13972 * tree-vect-loop-manip.c (slpeel_make_loop_iterate_ntimes): Ditto.
13973 (vect_can_advance_ivs_p): Ditto.
13974 (vect_update_ivs_after_vectorizer): Ditto.
13975 (vect_do_peeling_for_loop_bound): Ditto.
13976 (vect_gen_niters_for_prolog_loop): Ditto.
13977 (vect_update_inits_of_drs): Ditto.
13978 (vect_create_cond_for_alias_checks): Ditto.
13979 * tree-vect-slp.c (vect_get_and_check_slp_defs): Ditto.
13980 (vect_build_slp_tree_1): Ditto.
13981 (vect_supported_load_permutation_p): Ditto.
13982 (vect_analyze_slp_instance): Ditto.
13983 (vect_analyze_slp): Ditto.
13984 (vect_make_slp_decision): Ditto.
13985 (vect_detect_hybrid_slp): Ditto.
13986 (vect_bb_vectorization_profitable_p): Ditto.
13987 (vect_slp_analyze_bb_1): Ditto.
13988 (vect_update_slp_costs_according_to_vf): Ditto.
13989 (vect_get_mask_element): Ditto.
13990 (vect_transform_slp_perm_load): Ditto.
13991 (vect_schedule_slp_instance): Ditto.
13992 (vect_schedule_slp): Ditto.
13993 (vect_slp_transform_bb): Ditto.
13994 * profile.c (read_profile_edge_counts): Ditto.
13995 (compute_branch_probabilities): Ditto.
13996 * coverage.c (get_coverage_counts): Ditto.
13998 2013-09-16 Diego Novillo <dnovillo@google.com>
14000 * tree-core.h: Add missing comment lines from refactoring of tree.h.
14002 2013-09-16 Jan Hubicka <jh@suse.cz>
14004 * gimple-fold.c (can_refer_decl_in_current_unit_p): Do not accept
14005 abstract functions; for static functions check the presence of body.
14007 2013-09-16 James Greenhalgh <james.greenhalgh@arm.com>
14009 * config/aarch64/aarch64-simd-builtins.def (fma): New.
14010 * config/aarch64/aarch64-simd.md
14011 (aarch64_mla_elt<mode>): New.
14012 (aarch64_mla_elt_<vswap_width_name><mode>): Likewise.
14013 (aarch64_mls_elt<mode>): Likewise.
14014 (aarch64_mls_elt_<vswap_width_name><mode>): Likewise.
14015 (aarch64_fma4_elt<mode>): Likewise.
14016 (aarch64_fma4_elt_<vswap_width_name><mode>): Likewise.
14017 (aarch64_fma4_elt_to_128v2df): Likewise.
14018 (aarch64_fma4_elt_to_64df): Likewise.
14019 (fnma<mode>4): Likewise.
14020 (aarch64_fnma4_elt<mode>): Likewise.
14021 (aarch64_fnma4_elt_<vswap_width_name><mode>): Likewise.
14022 (aarch64_fnma4_elt_to_128v2df): Likewise.
14023 (aarch64_fnma4_elt_to_64df): Likewise.
14024 * config/aarch64/iterators.md (VDQSF): New.
14025 * config/aarch64/arm_neon.h
14026 (vfm<as><sdq>_lane<q>_f<32, 64>): Convert to C implementation.
14027 (vml<sa><q>_lane<q>_<fsu><16, 32, 64>): Likewise.
14029 2013-09-16 James Greenhalgh <james.greenhalgh@arm.com>
14031 * config/aarch64/aarch64-simd.md (aarch64_mul3_elt<mode>): New.
14032 (aarch64_mul3_elt_<vswap_width_name><mode>): Likewise.
14033 (aarch64_mul3_elt_to_128df): Likewise.
14034 (aarch64_mul3_elt_to_64v2df): Likewise.
14035 * config/aarch64/iterators.md (VEL): Also handle DFmode.
14037 (VMUL_CHANGE_NLANES) Likewise.
14040 * config/aarch64/arm_neon.h
14041 (vmul<q>_lane<q>_<suf><16,32,64>): Convert to C implementation.
14043 2013-09-16 James Greenhalgh <james.greenhalgh@arm.com>
14045 * config/aarch64/arm_neon.h
14046 (vcvtx_high_f32_f64): Fix parameters.
14048 2013-09-16 Jan-Benedict Glaw <jbglaw@lug-owl.de>
14049 Uros Bizjak <ubizjak@gmail.com>
14051 * config/alpha.c: Include tree-ssanames.h.
14053 2013-09-16 Richard Biener <rguenther@suse.de>
14055 * tree-loop-distribution.c (enum rdg_dep_type): Add control_dd.
14056 (dot_rdg_1): Handle control_dd.
14057 (create_edge_for_control_dependence): New function.
14058 (create_rdg_edges): Add control dependences if asked for.
14059 (build_rdg): Likewise.
14060 (generate_loops_for_partition): If there are not necessary
14061 control stmts remove all their dependencies.
14062 (collect_condition_stmts, rdg_flag_loop_exits): Remove.
14063 (distribute_loop): Pass on control dependences.
14064 (tree_loop_distribution): Compute control dependences and remove
14065 restriction on number of loop nodes.
14067 2013-09-16 Jakub Jelinek <jakub@redhat.com>
14069 * ipa-prop.c (ipa_compute_jump_functions_for_edge): Return early
14070 for internal calls.
14072 2013-09-16 Richard Sandiford <rdsandiford@googlemail.com>
14074 * cse.c (try_const_anchors): Punt on CC modes.
14076 2013-09-15 Jan-Benedict Glaw <jbglaw@lug-owl.de>
14078 * config/vax/constraints.md (T): Add missing CONSTANT_P check.
14080 2013-09-14 John David Anglin <danglin@gcc.gnu.org>
14083 * config/pa/pa.c (pa_expand_prologue): Change mode in gen_rtx_POST_INC
14084 calls to word_mode.
14086 2013-09-14 Iain Sandoe <iain@codesourcery.com>
14089 * config/darwin.c (darwin_objc2_section): Note if ObjC Metadata is
14091 (darwin_objc1_section): Likewise.
14092 (darwin_file_end): Emit Image Info section when required.
14094 2013-09-14 Jan Hubicka <jh@suse.cz>
14096 * tree-into-ssa.c (gate_into_ssa): New.
14097 (pass_data_build_ssa): Use it.
14098 * cgraph.h (expand_thunk): Update prototype.
14099 * cgraphunit.c (analyze_function): Expand thunks early.
14100 (expand_thunk): Fix DECL_CONTEXT of reust_decl;
14101 build proper cgraph; set in_ssa_p; clear bogus TREE_ASM_WRITTEN;
14102 set lowered flag; do not add new function.
14103 (assemble_thunks_and_aliases): Update.
14104 * tree-ssa.c (gate_init_datastructures): New gate.
14105 (pass_data_init_datastructures): Use it.
14107 2013-09-14 Iain Sandoe <iain@codesourcery.com>
14110 * config/i386/i386.c (ix86_function_arg_regno_p): Make Darwin use the
14111 xmm register set described in the psABI.
14113 2013-09-13 Evgeny Gavrin <e.gavrin@samsung.com>
14115 * dwarf2out.c (should_emit_struct_debug): Add check
14116 for type_decl variable is not NULL.
14118 2013-09-13 Jacek Caban <jacek@codeweavers.com>
14120 * config.gcc: Use new winnt-c.c target hooks
14121 * config/t-winnt: New file
14122 * config/winnt-c.c: New file
14123 * doc/tm.texi.in: Document new hook
14124 * doc/tm.texi: Regenerated
14126 2013-09-13 Jan Hubicka <jh@suse.cz>
14128 PR middle-end/58094
14129 * ipa-inline.c (check_callers): New function.
14130 (check_caller_edge): Remove.
14131 (want_inline_function_to_all_callers_p): Also permit alises that are
14133 (inline_to_all_callers): Terminate the walk when devirtualization
14134 introduce new calls.
14136 2013-09-13 Jan Hubicka <jh@suse.cz>
14138 * ipa-inline-analysis.c (struct growth_data): Add node.
14139 (do_estimate_growth_1): Fix detection of recursion.
14141 2013-09-13 Jakub Jelinek <jakub@redhat.com>
14143 PR tree-optimization/58392
14144 * tree-cfg.c (move_sese_region_to_fn): Rename loop variable
14145 to avoid shadowing of outer loop variable. If
14146 saved_cfun->has_simduid_loops or saved_cfun->has_force_vect_loops,
14147 replace_by_duplicate_decl simduid of loops that have it set and
14148 set dest_cfun->has_simduid_loops and/or
14149 dest_cfun->has_force_vect_loops.
14150 * omp-low.c (build_outer_var_ref): Call maybe_lookup_decl_in_outer_ctx
14151 instead of maybe_lookup_decl.
14152 * tree-inline.c (copy_loops): Change blocks_to_copy argument to id.
14153 Use id->blocks_to_copy instead of blocks_to_copy. Adjust recursive
14154 call. Copy over force_vect and copy and remap simduid. Set
14155 cfun->has_simduid_loops and/or cfun->has_force_vect_loops.
14156 (copy_cfg_body): Remove blocks_to_copy argument. Use
14157 id->blocks_to_copy instead of blocks_to_copy. Adjust copy_loops
14158 caller. Don't set cfun->has_simduid_loops and/or
14159 cfun->has_force_vect_loops here.
14160 (copy_body): Remove blocks_to_copy argument. Adjust copy_cfg_body
14162 (expand_call_inline, tree_function_versioning): Adjust copy_body
14165 2013-09-13 Martin Jambor <mjambor@suse.cz>
14168 * ipa-prop.c (try_make_edge_direct_simple_call): Be less strict in
14169 the assert if the edge was a speculative one.
14171 2013-09-13 Richard Biener <rguenther@suse.de>
14173 * tree-data-ref.h (known_dependences_p): Move here ...
14174 * tree-loop-distribution.c (known_dependences_p): ... from here.
14175 (dump_rdg_component, debug_rdg_component): Remove.
14176 (dump_rdg): Adjust.
14177 (generate_loops_for_partition): Use gimple_uid instead of
14178 relying on matching stmt visit order.
14179 (rdg_build_partitions): Take starting stmt vector.
14180 (ldist_gen): Merge into ...
14181 (distribute_loop): ... this function. Do not compute starting
14183 * tree-cfg.c (gimple_duplicate_bb): Copy UID for PHIs.
14185 2013-09-13 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
14187 * config/arm/arm.md (arm_cmpsi_insn): Split rI alternative.
14188 Set type attribute correctly. Set predicable_short_it attribute.
14189 (cmpsi_shiftsi): Remove %? from output template.
14191 2013-09-13 Richard Biener <rguenther@suse.de>
14193 * tree-loop-distribution.c (struct rdg_component,
14194 rdg_defs_used_in_other_loops_p, free_rdg_components,
14195 rdg_build_components): Remove.
14196 (stmts_from_loop): Do not record virtual PHIs.
14197 (generate_loops_for_partition): Skip virtual PHIs.
14198 (build_rdg_partition_for_component): Rename to ...
14199 (build_rdg_partition_for_vertex): ... this and adjust.
14200 (rdg_build_partitions): Take a vector of starting vertices
14201 instead of components. Remove unnecessary leftover handling.
14202 (ldist_gen): Do not build components or record other stores.
14203 (distribute_loop): Do not distribute loops containing stmts
14206 2013-09-13 Christian Bruel <christian.bruel@st.com>
14209 * config/sh/sh.md (mov<mode>_reg_reg): Allow memory reloads.
14211 2013-09-13 Kai Tietz <ktietz@redhat.com>
14213 * config.gcc: Separate cases for mingw and cygwin targets,
14214 and add 64-bit cygwin target case.
14216 * config/i386/winnt-cxx.c (i386_pe_type_dllexport_p): Don't
14217 dll-export inline-functions.
14218 * config/i386/winnt.c (i386_pe_determine_dllexport_p): Likewise.
14220 2013-09-13 Jeff Law <law@redhat.com>
14222 PR middle-end/58387
14224 2013-09-06 Jeff Law <law@redhat.com>
14226 * tree-ssa-dom.c (cprop_into_successor_phis): Also propagate
14227 edge implied equivalences into successor phis.
14229 2013-09-12 DJ Delorie <dj@redhat.com>
14231 * config/rl78/rl78-virt.md: Change from | to \; for asm line
14234 2013-09-12 Brooks Moses <bmoses@google.com>
14237 * Makefile.in: Do not install driver binaries in $(target)/bin.
14239 2013-09-12 DJ Delorie <dj@redhat.com>
14241 * config/rl78/rl78.opt (mrelax): New.
14242 * config/rl78/rl78.h (ASM_SPEC): New, pass on -mrelax to gas.
14243 * config/rl78/rl78.h (LINK_SPEC): New, pass on -mrelax to ld.
14245 * config/rl78/rl78.c (rl78_expand_prologue): Use AX to copy
14247 (rl78_expand_epilogue): Likewise.
14249 2013-09-12 Vladimir Makarov <vmakarov@redhat.com>
14251 PR middle-end/58335
14252 * lra-eliminations.c (remove_reg_equal_offset_note): New.
14253 (eliminate_regs_in_insn): Rewrite frame pointer to hard frame
14254 pointer elimination with using remove_reg_equal_offset_note.
14256 2013-09-12 DJ Delorie <dj@redhat.com>
14258 * config/msp430/: New port.
14259 * config.gcc (msp430): Added.
14260 * doc/invoke.texi: Document MSP430 options.
14261 * doc/install.texi: Document msp430-elf
14262 * doc/md.texi: Document msp430-elf
14263 * doc/contrib.texi: Document msp430-elf
14265 * cfgexpand.c (expand_debug_expr): Avoid sign-extending SImode to
14268 2013-09-12 Martin Jambor <mjambor@suse.cz>
14271 * ipa-prop.c (remove_described_reference): Give up if the edge in the
14272 reference descriptor is NULL.
14273 (ipa_edge_removal_hook): If owning a reference descriptor, set its
14276 2013-09-12 Andrew MacLeod <amacleod@redhat.com>
14278 * tree-flow.h (FREE_SSANAMES): Move to tree-ssanames.c
14279 (SSANAMES, MODIFIED_NORETURN_CALLS, DEFAULT_DEFS, ptr_info_def,
14280 num_ssa_names, ssa_name): Move to tree-ssanames.h + prototypes.
14281 * tree-flow-inline.h (make_ssa_name, copy_ssa_name, duplicate_ssa_name,
14282 make_temp_ssa_name): move to tree-ssanames.h
14283 * tree-ssa-alias.h: Move prototype.
14284 * tree-ssa.h: Include tree-ssanames.h.
14285 * tree-ssanames.c (FREE_SSANAMES): Move to here.
14286 * tree-ssanames.h: New. Move items from tree-flow*.h
14287 * Makefile.in (tree-ssanames.h): Add to tree-ssanames.o and GTFILES.
14289 2013-09-12 Richard Biener <rguenther@suse.de>
14291 PR tree-optimization/58404
14292 * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Also
14293 propagate non-invariant addresses into dereferences wrapped
14294 in component references.
14296 2013-09-12 Richard Biener <rguenther@suse.de>
14298 PR tree-optimization/58402
14299 * passes.def: Move pass_late_warn_uninitialized later.
14301 2013-09-12 Andrew MacLeod <amacleod@redhat.com>
14303 * tree-ssa.h: New. Move content from tree-flow.h and
14304 tree-flow-inline.h.
14305 * tree-flow.h (_edge_var_map, edge_var_map_vector): Move to tree-ssa.h.
14306 Move prototypes belonging to tree-ssa.c.
14307 * tree-flow-inline.h (redirect_edge_var_map_def,
14308 redirect_edge_var_map_result, redirect_edge_var_map_location): Move to
14310 * gimple.h: Adjust prototypes.
14311 * tree-ssa.c (useless_type_conversion_p, types_compatible_p): Move
14313 * gimple.c (useless_type_conversion_p, types_compatible_p): Here.
14314 * tree.h: Move prototype to tree-ssa.h.
14315 * gengtype.c (open_base_files): Replace tree-flow.h with tree-ssa.h.
14316 * Makefile.in: (TREE_SSA_H, TREE_FLOW_H): Adjust dependencies.
14317 * alias.c, asan.c, builtins.c, calls.c, cfgexpand.c, cfghooks.c,
14318 cfgloop.c, cfgloopmanip.c, cgraph.c, cgraphbuild.c, cgraphclones.c,
14319 cgraphunit.c, dse.c, except.c, expr.c, final.c, fold-const.c,
14320 ggc-page.c, gimple-fold.c, gimple-iterator.c, gimple-low.c,
14321 gimple-pretty-print.c, gimple-ssa-strength-reduction.c,
14322 gimple-streamer-in.c, gimple-streamer-out.c, gimple.c, gimplify.c,
14323 graphite-blocking.c, graphite-clast-to-gimple.c,
14324 graphite-dependences.c, graphite-interchange.c,
14325 graphite-optimize-isl.c, graphite-poly.c, graphite-scop-detection.c,
14326 graphite-sese-to-poly.c, graphite.c, ipa-cp.c, ipa-inline-analysis.c,
14327 ipa-inline-transform.c, ipa-inline.c, ipa-prop.c, ipa-pure-const.c,
14328 ipa-reference.c, ipa-split.c, ipa-utils.c,
14329 loop-init.c, lto-cgraph.c, lto-section-in.c, lto-section-out.c,
14330 lto-streamer-in.c, lto-streamer-out.c, lto-streamer.c, omp-low.c,
14331 passes.c, predict.c, print-tree.c, profile.c, sese.c, targhooks.c,
14332 tracer.c, trans-mem.c, tree-call-cdce.c, tree-cfg.c, tree-cfgcleanup.c,
14333 tree-chrec.c, tree-complex.c, tree-data-ref.c, tree-dfa.c, tree-eh.c,
14334 tree-emutls.c, tree-if-conv.c, tree-inline.c, tree-into-ssa.c,
14335 tree-loop-distribution.c, tree-mudflap.c, tree-nested.c, tree-nrv.c,
14336 tree-object-size.c, tree-optimize.c, tree-outof-ssa.c, tree-parloops.c,
14337 tree-phinodes.c, tree-predcom.c, tree-pretty-print.c, tree-profile.c,
14338 tree-scalar-evolution.c, tree-sra.c, tree-ssa*.c, tree-stdarg.c,
14339 tree-streamer-in.c, tree-switch-conversion.c, tree-tailcall.c,
14340 tree-vect-data-refs.c, tree-vect-generic.c, tree-vect-loop-manip.c,
14341 tree-vect-loop.c, tree-vect-patterns.c, tree-vect-slp.c,
14342 tree-vect-stmts.c, tree-vectorizer.c, tree-vrp.c, tsan.c,
14343 value-prof.c, var-tracking.c,
14344 varpool.c, vtable-verify.c: Replace tree-flow.h with tree-ssa.h
14346 2013-09-12 Richard Biener <rguenther@suse.de>
14348 PR tree-optimization/58396
14349 * tree-loop-distribution.c (create_rdg_edges): Free unused DDRs.
14350 (build_rdg): Take a loop-nest parameter, fix memleaks.
14351 (distribute_loop): Compute loop-nest here and pass it to build_rdg.
14353 2013-09-12 Yuri Rumyantsev <ysrumyan@gmail.com>
14355 * config/i386/x86-tune.def: Turn on X86_TUNE_AVOID_MEM_OPND_FOR_CMOVE
14358 2013-09-12 Cameron McInally <cameron.mcinally@nyu.edu>
14360 * doc/extend.texi: Fix errors in x86 FMA builtin naming.
14361 The FMA instruction names should have a 'v' prefix.
14363 2013-09-12 Richard Biener <rguenther@suse.de>
14365 * tree-loop-distribution.c (dot_rdg_1): Make graph prettier.
14366 (dot_rdg): Use popen instead of system in optional code.
14367 (remaining_stmts, upstream_mem_writes): Remove global bitmaps.
14368 (already_processed_vertex_p): Adjust.
14369 (has_anti_or_output_dependence, predecessor_has_mem_write,
14370 mark_nodes_having_upstream_mem_writes, has_upstream_mem_writes,
14371 rdg_flag_uses): Remove.
14372 (rdg_flag_vertex): Simplify.
14373 (rdg_flag_vertex_and_dependent): Rely on a correct RDG and
14375 (build_rdg_partition_for_component): Process the first vertex
14376 of a component only.
14377 (ldist_gen): Do not compute remaining_stmts or upstream_mem_writes.
14379 2013-09-12 Alan Modra <amodra@gmail.com>
14381 * config/rs6000/rs6000.c (toc_relative_expr_p): Use add_cint_operand.
14383 2013-09-11 DJ Delorie <dj@redhat.com>
14384 Nick Clifton <nickc@redhat.com>
14386 * config/rl78/predicates.md (rl78_cmp_operator_signed): New.
14387 (rl78_stack_based_mem): New.
14388 * config/rl78/constraints.md (Iv08): New.
14397 * config/rl78/rl78-expand.md (movqi): Reject more SUBREG operands.
14399 (movsi): Change from expand to insn-and-split.
14400 (ashrsi3): Clobber AX.
14404 * config/rl78/rl78.md (CC_REG): Fix.
14405 (addsi3): Allow memory and immediate operands.
14406 (addsi3_internal): Split into...
14407 (addsi3_internal_virt): ...new, and ...
14408 (addsi3_internal_real): ...new.
14410 (subsi3_internal_virt): New.
14411 (subsi3_internal_real): New.
14412 (mulsi3): Add memory operand.
14413 (mulsi3_rl78): Likewise.
14414 (mulsi3_g13): Likewise.
14415 * config/rl78/rl78-real.md (cbranchqi4_real_signed): New.
14416 (cbranchqi4_real): Add more constraint options.
14417 (cbranchhi4_real): Expand pattern.
14418 (cbranchhi4_real_signed): New.
14419 (cbranchhi4_real_inverted): New.
14420 (cbranchsi4_real_lt): New.
14421 (cbranchsi4_real_ge): New.
14422 (cbranchsi4_real_signed): New.
14423 (cbranchsi4_real): New.
14425 * config/rl78/rl78-virt.md (ashrsi3_virt): Add custom cases for
14427 (lshrsi3_virt): Likewise.
14428 (ashlsi3_virt): Likewise.
14429 (cbranchqi4_virt_signed): New.
14430 (cbranchhi4_virt_signed): New.
14431 (cbranchsi4_virt): New.
14432 * config/rl78/rl78.c: Whitespace fixes throughout.
14433 (move_elim_pass): New.
14434 (pass_data_rl78_move_elim): New.
14435 (pass_rl78_move_elim): New.
14436 (make_pass_rl78_move_elim): New.
14437 (rl78_devirt_info): Run devirt earlier.
14438 (rl78_move_elim_info): New.
14439 (rl78_asm_file_start): Register it.
14440 (rl78_split_movsi): New.
14441 (rl78_as_legitimate_address): Allow virtual base registers when
14443 (rl78_addr_space_convert): Remove spurious debug stuff.
14444 (rl78_print_operand_1): Add z,s,S,r,E modifiers.
14445 (rl78_print_operand): More cases for not printing '#'.
14446 (rl78_expand_compare): Remove most of the logic.
14447 (content_memory): New.
14448 (clear_content_memory): New.
14449 (get_content_index): New.
14450 (get_content_name): New.
14451 (display_content_memory): New.
14452 (update_content): New.
14453 (record_content): New.
14454 (already_contains): New.
14455 (insn_ok_now): Re-recog insns with virtual registers.
14456 (add_postponed_content_update): New.
14457 (process_postponed_content_update): New.
14458 (gen_and_emit_move): New.
14459 (transcode_memory_rtx): Record new location content.
14460 Use gen_and_emit_move.
14461 (force_into_acc): New.
14462 (move_to_acc): Use gen_and_emit_move.
14463 (move_from_acc): Likewise.
14464 (move_acc_to_reg): Likewise.
14465 (move_to_x): Likewise.
14466 (move_to_hl): Likewise.
14467 (move_to_de): Likewise.
14468 (rl78_alloc_physical_registers_op1): Record location content.
14469 (has_constraint): New.
14470 (rl78_alloc_physical_registers_op2): Record location content.
14471 Optimize use of HL.
14472 (rl78_alloc_physical_registers_ro1): Likewise.
14473 (rl78_alloc_physical_registers_cmp): Likewise.
14474 (rl78_alloc_physical_registers_umul): Likewise.
14475 (rl78_alloc_address_registers_macax): New.
14476 (rl78_alloc_physical_registers): Initialize and set location
14477 content memory as needed.
14478 (rl78_reorg): Make sure split2 is called.
14479 (rl78_rtx_costs): New.
14481 2013-09-11 Richard Sandiford <rdsandiford@googlemail.com>
14483 * simplify-rtx.c (simplify_unary_operation_1): Use simplify_gen_binary
14484 for (not (neg ...)) and (neg (not ...)) cases.
14486 2013-09-11 Richard Biener <rguenther@suse.de>
14488 PR middle-end/58377
14489 * passes.def: Split critical edges before late uninit warning passes.
14490 * tree-cfg.c (pass_split_crit_edges): Implement clone method.
14492 2013-09-11 Jakub Jelinek <jakub@redhat.com>
14494 PR tree-optimization/58385
14495 * fold-const.c (build_range_check): If both low and high are NULL,
14496 use omit_one_operand_loc to preserve exp side-effects.
14498 2013-09-11 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
14500 * config/arm/arm.md (arm_shiftsi3): New alternative l/l/M.
14502 2013-09-11 Richard Biener <rguenther@suse.de>
14504 * tree-data-ref.c (dump_rdg_vertex, debug_rdg_vertex,
14505 dump_rdg_component, debug_rdg_component, dump_rdg, debug_rdg,
14506 dot_rdg_1, dot_rdg, rdg_vertex_for_stmt, create_rdg_edge_for_ddr,
14507 create_rdg_edges_for_scalar, create_rdg_edges, create_rdg_vertices,
14508 stmts_from_loop, known_dependences_p, build_empty_rdg,
14509 build_rdg, free_rdg, rdg_defs_used_in_other_loops_p): Move ...
14510 * tree-loop-distribution.c: ... here.
14511 * tree-data-ref.h (struct rdg_vertex, RDGV_STMT, RDGV_DATAREFS,
14512 RDGV_HAS_MEM_WRITE, RDGV_HAS_MEM_READS, RDG_STMT, RDG_DATAREFS,
14513 RDG_MEM_WRITE_STMT, RDG_MEM_READS_STMT, enum rdg_dep_type,
14514 struct rdg_edge, RDGE_TYPE, RDGE_LEVEL, RDGE_RELATION): Move ...
14515 * tree-loop-distribution.c: ... here.
14516 * tree-loop-distribution.c: Include gimple-pretty-print.h.
14517 (struct partition_s): Add loops member.
14518 (partition_alloc, partition_free, rdg_flag_uses, rdg_flag_vertex,
14519 rdg_flag_vertex_and_dependent, rdg_flag_loop_exits,
14520 build_rdg_partition_for_component, rdg_build_partitions): Adjust.
14522 2013-09-11 Alexander Ivchenko <alexander.ivchenko@intel.com>
14523 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
14524 Sergey Lega <sergey.s.lega@intel.com>
14525 Anna Tikhonova <anna.tikhonova@intel.com>
14526 Ilya Tocar <ilya.tocar@intel.com>
14527 Andrey Turetskiy <andrey.turetskiy@intel.com>
14528 Ilya Verbin <ilya.verbin@intel.com>
14529 Kirill Yukhin <kirill.yukhin@intel.com>
14530 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
14532 * config/i386/constraints.md (k): New.
14534 * config/i386/i386.c (const regclass_map): Add new mask registers.
14535 (dbx_register_map): Ditto.
14536 (dbx64_register_map): Ditto.
14537 (svr4_dbx_register_map): Ditto.
14538 (ix86_conditional_register_usage): Squash mask registers if AVX512F is
14540 (ix86_preferred_reload_class): Disable constants for mask registers.
14541 (ix86_secondary_reload): Do spill of mask register using 32-bit insn.
14542 (ix86_hard_regno_mode_ok): Support new mask registers.
14543 (x86_order_regs_for_local_alloc): Ditto.
14544 * config/i386/i386.h (FIRST_PSEUDO_REGISTER): Update.
14545 (FIXED_REGISTERS): Add new mask registers.
14546 (CALL_USED_REGISTERS): Ditto.
14547 (REG_ALLOC_ORDER): Ditto.
14548 (VALID_MASK_REG_MODE): New.
14549 (FIRST_MASK_REG): Ditto.
14550 (LAST_MASK_REG): Ditto.
14551 (reg_class): Add MASK_EVEX_REGS, MASK_REGS.
14552 (MAYBE_MASK_CLASS_P): New.
14553 (REG_CLASS_NAMES): Add MASK_EVEX_REGS, MASK_REGS.
14554 (REG_CLASS_CONTENTS): Ditto.
14555 (MASK_REGNO_P): New.
14556 (ANY_MASK_REG_P): Ditto.
14557 (HI_REGISTER_NAMES): Add new mask registers.
14558 * config/i386/i386.md (MASK0_REG, MASK1_REG, MASK2_REG, MASK3_REG,
14559 MASK4_REG, MASK5_REG, MASK6_REG, MASK7_REG): Constants for new
14561 (attribute "type"): Add mskmov, msklog.
14562 (attribute "length_immediate"): Support them.
14563 (attribute "memory"): Ditto.
14564 (attribute "prefix_0f"): Ditto.
14565 (*movhi_internal): Support new mask registers.
14566 (*movqi_internal): Ditto.
14567 (define_split): Split out clobber pattern is a logic
14568 insn on mask registers.
14569 (*k<logic><mode>): New.
14570 (*andhi_1): Extend to support mask regs.
14571 (*andqi_1): Extend to support mask regs.
14572 (kandn<mode>): New.
14573 (define_split): Split and-not to and and not if operands
14575 (*<code><mode>_1): Separate HI mode to new pattern...
14576 (*<code>hi_1): This.
14577 (*<code>qi_1): Extend to support mask regs.
14578 (kxnor<mode>): New.
14579 (kortestzhi): Ditto.
14580 (kortestchi): Ditto.
14582 (*one_cmpl<mode>2_1): Remove HImode and handle it...
14583 (*one_cmplhi2_1): ...Here, now with mask registers support.
14584 (*one_cmplqi2_1): Support new mask registers.
14585 (HI/QImode arithmetics splitter): Don't split if mask registers
14587 (HI/QImode not splitter): Ditto.
14588 * config/i386/predicated.md (mask_reg_operand): New.
14589 (general_reg_operand): Ditto.
14591 2013-09-11 Alexander Ivchenko <alexander.ivchenko@intel.com>
14593 * doc/invoke.texi: Document fxsr, xsave and xsaveopt options.
14594 * doc/extend.texi: Document fxsr, xsave and xsaveopt builtins.
14596 2013-09-10 Jeff Law <law@redhat.com>
14598 PR tree-optimization/58380
14599 * tree-ssa-threadupdate.c (thread_block): Recognize another case
14600 of threading through a buried loop header.
14602 * tree-ssa-threadedge.c (thread_around_empty_blocks): Correct
14603 return value for single successor case.
14605 2013-09-10 Jan Hubicka <jh@suse.cz>
14607 * ipa-devirt.c (ipa_devirt): Enable with LTO.
14609 2013-09-10 Richard Earnshaw <rearnsha@arm.com>
14612 * arm/vfp.md (combine_vcvt_f32_<FCVTI32typename>): Fix pattern to
14613 support conditional execution.
14614 (combine_vcvt_f64_<FCVTI32typename>): Likewise.
14616 2013-09-10 Vladimir Makarov <vmakarov@redhat.com>
14618 * lra.c (lra): Clear lra_optional_reload_pseudos before every
14620 * lra-constraints.c (curr_insn_transform): Switch on optional reloads.
14621 Check destination too to check move insn.
14622 (undo_optional_reloads): Add check that the original peudo did not
14623 changed its allocation and the optional reload was inherited on last
14624 inheritance pass. Break loop after deciding to keep optional reload.
14625 (lra_undo_inheritance): Add check that inherited pseudo still in
14628 2013-09-10 James Greenhalgh <james.greenhalgh@arm.com>
14630 * config/aarch64/aarch64.md (generic_sched): New.
14631 * config/aarch64/aarch64-generic.md (load): Make conditional
14632 on generic_sched attribute.
14633 (nonload): Likewise.
14635 2013-09-10 Jan Hubicka <jh@suse.cz>
14637 * lto-cgraph.c: Include ipa-utils.h.
14638 (compute_ltrans_boundary): Also add possible targets into the boundary.
14640 2013-09-10 Jan Hubicka <jh@suse.cz>
14642 * gimple-fold.c (gimple_get_virt_method_for_binfo): Pass real
14643 VAR_DECL of vtable rather than full expression.
14645 2013-09-10 Jan Hubicka <jh@suse.cz>
14646 Paolo Carlini <paolo.carlini@oracle.com>
14648 * cgraphunit.c (analyze_functions): Save input_location, set it
14649 to UNKNOWN_LOCATION and restore it at the end.
14651 2013-09-10 Martin Jambor <mjambor@suse.cz>
14653 * ipa-cp.c (propagate_constants_topo): Do not ignore SCC
14654 represented by a thunk.
14656 2013-09-10 Jeff Law <law@redhat.com>
14658 PR tree-optimization/58343
14659 * tree-ssa-threadupdate.c (thread_block): Identify and disable
14660 jump threading requests through loop headers buried in the middle
14661 of a jump threading path.
14663 * tree-ssa-threadedge.c (thread_around_empty_blocks): Fix thinko
14664 in return value/type.
14666 2013-09-10 Jakub Jelinek <jakub@redhat.com>
14668 PR rtl-optimization/58365
14669 * cfgcleanup.c (merge_memattrs): Also clear MEM_READONLY_P
14670 resp. MEM_NOTRAP_P if they differ, or set MEM_VOLATILE_P if
14673 2013-09-10 Richard Biener <rguenther@suse.de>
14675 * tree-data-ref.h (build_rdg): Drop all parameters but loop.
14676 * tree-data-ref.c (create_rdg_vertices): Collect all data
14677 references, signal failure to the caller, use data-ref API.
14678 (build_rdg): Compute data references only once. Maintain lifetime
14679 of data references and data dependences from within RDG.
14680 (free_rdg): Free dependence relations.
14681 * tree-loop-distribution.c (rdg_flag_uses): Drop weird code
14682 inventing extra dependences.
14683 (distribute_loop): Update for RDG API changes.
14685 2013-09-10 Kai Tietz <ktietz@redhat.com>
14687 * doc/invoke.texi (fms-extensions): Document changed
14688 behavior for ms-abi targets.
14689 * config/i386/i386.c (ix86_option_override_internal):
14690 Set default value of option -fms-extension for ms-abi targets.
14692 2013-09-10 Michael Zolotukhin <michael.v.zolotukhin@gmail.com>
14694 * config/i386/i386.c (ix86_expand_movmem): Fix epilogue generation.
14696 2013-09-10 Alan Modra <amodra@gmail.com>
14699 * config/rs6000/rs6000.md (bswapdi2_64bit): Disable for volatile mems.
14701 2013-09-10 Alan Modra <amodra@gmail.com>
14703 * config/rs6000/predicates.md (add_cint_operand): New.
14704 (reg_or_add_cint_operand, small_toc_ref): Use add_cint_operand.
14705 * config/rs6000/rs6000.md (largetoc_high_plus): Restrict offset
14706 using add_cint_operand.
14707 (largetoc_high_plus_aix): Likewise.
14709 2013-09-09 Jakub Jelinek <jakub@redhat.com>
14711 PR tree-optimization/58364
14712 * tree-ssa-reassoc.c (init_range_entry): For BIT_NOT_EXPR on
14713 BOOLEAN_TYPE, only invert in_p and continue with arg0 if
14714 the current range can't be an unconditional true or false.
14716 2013-09-09 James Greenhalgh <james.greenhalgh@arm.com>
14718 * config/aarch64/arm_neon.h (vrsqrte_f64): Fix parameter type.
14720 2013-09-09 Uros Bizjak <ubizjak@gmail.com>
14722 * ipa-prop.c (ipa_modify_call_arguments): Initialize deref_align.
14724 2013-09-09 Paolo Carlini <paolo.carlini@oracle.com>
14727 * doc/invoke.texi (-Wdelete-incomplete): Document it.
14729 2013-09-09 Ian Bolton <ian.bolton@arm.com>
14731 * config/aarch64/aarch64.c (aarch64_preferred_reload_class): Return
14732 NO_REGS for immediate that can't be moved directly into FP_REGS.
14734 2013-09-09 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
14736 * config/aarch64/aarch64.c (aarch64_select_cc_mode): Return CC_SWP for
14737 comparison with negated operand.
14738 * config/aarch64/aarch64.md (compare_neg<mode>): Match canonical
14741 2013-09-09 Richard Biener <rguenther@suse.de>
14743 PR middle-end/58326
14744 * cfgloopmanip.c (fix_bb_placements): When fixing the placement
14745 of a subloop record all its block as affecting loop-closed SSA form.
14747 2013-09-09 Richard Sandiford <rdsandiford@googlemail.com>
14749 * expmed.c (lshift_value): Take an unsigned HOST_WIDE_INT instead
14750 of an rtx/bitpos pair.
14751 (store_fixed_bit_field): Update accordingly.
14753 2013-09-09 Richard Sandiford <rdsandiford@googlemail.com>
14755 * asan.c (asan_emit_stack_protection): Use gen_int_mode instead of
14757 * builtins.c (expand_errno_check): Likewise.
14758 * dwarf2cfi.c (init_return_column_size): Likewise.
14759 * except.c (sjlj_mark_call_sites): Likewise.
14760 * expr.c (move_by_pieces_1, store_by_pieces_2): Likewise.
14761 * lra-constraints.c (emit_inc): Likewise.
14762 * ree.c (combine_set_extension): Likewise.
14763 * regmove.c (fixup_match_2): Likewise.
14764 * reload1.c (inc_for_reload): Likewise.
14766 2013-09-09 Richard Sandiford <rdsandiford@googlemail.com>
14768 * combine.c (simplify_set, expand_field_assignment, extract_left_shift)
14769 (force_to_mode, simplify_shift_const_1, simplify_comparison):
14770 Use gen_int_mode with the mode of the associated simplify_* call.
14771 * explow.c (probe_stack_range, anti_adjust_stack_and_probe): Likewise.
14772 * expmed.c (expand_shift_1): Likewise.
14773 * function.c (instantiate_virtual_regs_in_insn): Likewise.
14774 * loop-iv.c (iv_number_of_iterations): Likewise.
14775 * loop-unroll.c (unroll_loop_runtime_iterations): Likewise.
14776 * simplify-rtx.c (simplify_binary_operation_1): Likewise.
14778 2013-09-09 Richard Sandiford <rdsandiford@googlemail.com>
14780 * asan.c (asan_clear_shadow): Use gen_int_mode with the mode
14781 of the associated expand_* call.
14782 (asan_emit_stack_protection): Likewise.
14783 * builtins.c (round_trampoline_addr): Likewise.
14784 * explow.c (allocate_dynamic_stack_space, probe_stack_range): Likewise.
14785 * expmed.c (expand_smod_pow2, expand_sdiv_pow2, expand_divmod)
14786 (emit_store_flag): Likewise.
14787 * expr.c (emit_move_resolve_push, push_block, emit_single_push_insn_1)
14788 (emit_push_insn, optimize_bitfield_assignment_op, expand_expr_real_1):
14790 * function.c (instantiate_virtual_regs_in_insn): Likewise.
14791 * ifcvt.c (noce_try_store_flag_constants): Likewise.
14792 * loop-unroll.c (unroll_loop_runtime_iterations): Likewise.
14793 * modulo-sched.c (generate_prolog_epilog): Likewise.
14794 * optabs.c (expand_binop, widen_leading, expand_doubleword_clz)
14795 (expand_ctz, expand_ffs, expand_unop): Likewise.
14797 2013-09-09 Richard Sandiford <rdsandiford@googlemail.com>
14799 * alias.c (addr_side_effect_eval): Use gen_int_mode with the mode
14800 of the associated gen_rtx_* call.
14801 * caller-save.c (init_caller_save): Likewise.
14802 * combine.c (find_split_point, make_extraction): Likewise.
14803 (make_compound_operation): Likewise.
14804 * dwarf2out.c (mem_loc_descriptor): Likewise.
14805 * explow.c (plus_constant, probe_stack_range): Likewise.
14806 * expmed.c (expand_mult_const): Likewise.
14807 * expr.c (emit_single_push_insn_1, do_tablejump): Likewise.
14808 * reload1.c (init_reload): Likewise.
14809 * valtrack.c (cleanup_auto_inc_dec): Likewise.
14810 * var-tracking.c (adjust_mems): Likewise.
14811 * modulo-sched.c (sms_schedule): Likewise, but use gen_rtx_GT
14812 rather than gen_rtx_fmt_ee.
14814 2013-09-09 Jan Hubicka <jh@suse.cz>
14816 PR middle-end/58294
14817 * value-prof.c (gimple_ic): Copy also abnormal edges.
14819 2013-09-09 Richard Sandiford <rdsandiford@googlemail.com>
14821 * asan.c (asan_shadow_cst): Use gen_int_mode.
14823 2013-09-08 Jan Hubicka <jh@suse.cz>
14825 * ipa-profile.c: Add toplevel comment.
14826 (ipa_propagate_frequency_1): Be more conservative when profile is read.
14827 (contains_hot_call_p): New function.
14828 (ipa_propagate_frequency): Set frequencies based on counts when
14830 * predict.c (compute_function_frequency): Use PROFILE_READ gueard for
14831 profile; do not tamper with profile after inlining if it is read.
14833 2013-09-08 Jan Hubicka <jh@suse.cz>
14835 * ipa-prop.c (try_make_edge_direct_simple_call): Do not special case
14838 2013-09-08 Jan Hubicka <jh@suse.cz>
14840 * ipa.c (walk_polymorphic_call_targets): Fix redirection before IPA
14841 summary generation.
14843 2013-09-08 Jeff Law <law@redhat.com>
14846 * tree-ssa-threadedge.c (thread_across_edge): Fix initialization
14849 2013-09-08 Andi Kleen <ak@linux.intel.com>
14851 * tree-inline.c (estimate_num_insns): Limit asm cost to 1000.
14853 2013-09-08 Jan Hubicka <jh@suse.cz>
14855 * ipa.c (walk_polymorphic_call_targets): Fix inliner summary update.
14857 2013-09-08 Richard Sandiford <rdsandiford@googlemail.com>
14859 * ira.c (update_equiv_regs): Only call set_paradoxical_subreg
14860 for non-debug insns.
14861 * lra.c (new_insn_reg): Take the containing insn as a parameter.
14862 Only modify lra_reg_info[].biggest_mode if it's non-debug insn.
14863 (collect_non_operand_hard_regs, add_regs_to_insn_regno_info): Update
14866 2013-09-08 Jan Hubicka <jh@suse.cz>
14868 * cgraphunit.c (walk_polymorphic_call_targets): Permit 0 possible
14869 targets and devirtualize to BUILT_IN_UNREACHABLE.
14870 * timevar.def (TV_IPA_UNREACHABLE): New timevar.
14871 * ipa.c (walk_polymorphic_call_targets): New function.
14872 (symtab_remove_unreachable_nodes): Use it; do not keep all virtual
14873 functions; use the new timevar.
14874 * ipa-devirt.c (maybe_record_node): Do not insert static nodes that
14875 was removed from the program.
14876 (record_binfo): If BINFO corresponds to an anonymous namespace, we may
14877 not consider it in the walk when its vtable is dead.
14878 (possible_polymorphic_call_targets_1): Pass anonymous flag to
14880 (devirt_variable_node_removal_hook): New function.
14881 (possible_polymorphic_call_targets): Also register
14882 devirt_variable_node_removal_hook.
14883 (ipa_devirt): Do not do non-speculative devirtualization.
14884 (gate_ipa_devirt): One execute if devirtualizing speculatively.
14886 2013-09-08 Jan Hubicka <jh@suse.cz>
14888 * cgraph.h (varpool_node_hook, varpool_node_hook_list,
14889 varpool_add_node_removal_hook, varpool_add_variable_insertion_hook,
14890 varpool_remove_variable_insertion_hook): Declare.
14891 * varpool.c (varpool_node_hook_list): New structure.
14892 (first_varpool_node_removal_hook,
14893 first_varpool_variable_insertion_hook): New variables.
14894 (varpool_add_node_removal_hook, varpool_remove_node_removal_hook,
14895 varpool_call_node_removal_hooks, varpool_add_variable_insertion_hook,
14896 varpool_remove_variable_insertion_hook,
14897 varpool_call_variable_insertion_hooks): New functions.
14898 (varpool_remove_node): Use it.
14900 2013-09-08 Paolo Carlini <paolo.carlini@oracle.com>
14903 * diagnostic.c (diagnostic_build_prefix): When s.file is
14904 "<built-in>" don't output line and column numbers.
14906 2013-09-06 Jan Hubicka <jh@suse.cz>
14908 * cgraphunit.c (expand_thunk): Get body before touching arguments.
14909 * lto-streamer-out.c: Stream thunks, too.
14910 * lto-streamer-in.c (input_function): Pop cfun here
14911 (lto_read_body): Instead of here.
14913 2013-09-06 Caroline Tice <cmtice@google.com>
14915 * doc/install.texi: Add documentation for the --enable-vtable-verify
14916 and the --disable-libvtv configure options.
14918 2013-09-06 Jeff Law <law@redhat.com>
14920 * tree-ssa-dom.c (cprop_into_successor_phis): Also propagate
14921 edge implied equivalences into successor phis.
14923 2013-09-06 Joern Rennecke <joern.rennecke@embecosm.com>
14925 * resource.c (mark_referenced_resources): Handle COND_EXEC.
14927 2013-09-06 Claudiu Zissulescu <claziss@synopsys.com>
14929 * resource.c (mark_target_live_regs): Compute resources taking
14930 into account if a call is predicated or not.
14932 2013-09-06 Eric Botcazou <ebotcazou@adacore.com>
14934 * toplev.c (output_stack_usage): Be prepared for suffixes created by
14935 the compiler in the function names.
14937 2013-09-06 Jan Hubicka <jh@suse.cz>
14939 PR middle-end/58094
14940 * ipa-inline.c (has_caller_p): New function.
14941 (want_inline_function_to_all_callers_p): Use it.
14942 (sum_callers, inline_to_all_callers): Break out from ...
14943 (ipa_inline): ... here.
14945 2013-09-06 Jan Hubicka <jh@suse.cz>
14947 * config/i386/i386.c (ix86_hard_regno_mode_ok): AVX modes are valid
14948 only when AVX is enabled.
14950 2013-09-06 James Greenhalgh <james.greenhalgh@arm.com>
14952 * config/aarch64/aarch64.md
14953 (*movtf_aarch64): Use neon_<ls>dm_2 as type where v8type
14954 is fpsimd_<load/store>2.
14955 (load_pair<mode>): Likewise.
14956 (store_pair<mode>): Likewise.
14958 2013-09-06 James Greenhalgh <james.greenhalgh@arm.com>
14960 * config/arm/types.md (type): Add "mrs" type.
14961 * config/aarch64/aarch64.md
14962 (aarch64_load_tp_hard): Make type "mrs".
14963 * config/arm/arm.md
14964 (load_tp_hard): Make type "mrs".
14965 * config/arm/cortex-a15.md: Update with new attributes.
14966 * config/arm/cortex-a5.md: Update with new attributes.
14967 * config/arm/cortex-a53.md: Update with new attributes.
14968 * config/arm/cortex-a7.md: Update with new attributes.
14969 * config/arm/cortex-a8.md: Update with new attributes.
14970 * config/arm/cortex-a9.md: Update with new attributes.
14971 * config/arm/cortex-m4.md: Update with new attributes.
14972 * config/arm/cortex-r4.md: Update with new attributes.
14973 * config/arm/fa526.md: Update with new attributes.
14974 * config/arm/fa606te.md: Update with new attributes.
14975 * config/arm/fa626te.md: Update with new attributes.
14976 * config/arm/fa726te.md: Update with new attributes.
14978 2013-09-06 James Greenhalgh <james.greenhalgh@arm.com>
14980 * config/aarch64/aarch64.md
14981 (*movti_aarch64): Use "multiple" for type where v8type is "move2".
14982 (*movtf_aarch64): Likewise.
14983 * config/arm/arm.md
14984 (thumb1_movdi_insn): Use "multiple" for type where more than one
14985 instruction is used for a move.
14986 (*arm32_movhf): Likewise.
14987 (*thumb_movdf_insn): Likewise.
14989 2013-09-06 James Greenhalgh <james.greenhalgh@arm.com>
14991 * config/arm/types.md (type): Rename fcpys to fmov.
14992 * config/arm/vfp.md
14993 (*arm_movsi_vfp): Rename type fcpys as fmov.
14994 (*thumb2_movsi_vfp): Likewise
14995 (*movhf_vfp_neon): Likewise
14996 (*movhf_vfp): Likewise
14997 (*movsf_vfp): Likewise
14998 (*thumb2_movsf_vfp): Likewise
14999 (*movsfcc_vfp): Likewise
15000 (*thumb2_movsfcc_vfp): Likewise
15001 * config/aarch64/aarch64-simd.md
15002 (move_lo_quad_<mode>): Replace type mov_reg with fmovs.
15003 * config/aarch64/aarch64.md
15004 (*movsi_aarch64): Replace type mov_reg with fmovs.
15005 (*movdi_aarch64): Likewise
15006 (*movsf_aarch64): Likewise
15007 (*movdf_aarch64): Likewise
15009 (cortexa7_older_only): Rename TYPE_FCPYS to TYPE_FMOV.
15010 * config/arm/iwmmxt.md
15011 (*iwmmxt_movsi_insn): Rename type fcpys as fmov.
15012 * config/arm/arm1020e.md: Update with new attributes.
15013 * config/arm/cortex-a15-neon.md: Update with new attributes.
15014 * config/arm/cortex-a5.md: Update with new attributes.
15015 * config/arm/cortex-a53.md: Update with new attributes.
15016 * config/arm/cortex-a7.md: Update with new attributes.
15017 * config/arm/cortex-a8-neon.md: Update with new attributes.
15018 * config/arm/cortex-a9.md: Update with new attributes.
15019 * config/arm/cortex-m4-fpu.md: Update with new attributes.
15020 * config/arm/cortex-r4f.md: Update with new attributes.
15021 * config/arm/marvell-pj4.md: Update with new attributes.
15022 * config/arm/vfp11.md: Update with new attributes.
15024 2013-09-06 James Greenhalgh <james.greenhalgh@arm.com>
15026 * config/aarch64/aarch64.md
15027 (*madd<mode>): Fix type attribute.
15028 (*maddsi_uxtw): Likewise.
15029 (*msub<mode>): Likewise.
15030 (*msubsi_uxtw): Likewise.
15031 (<su_optab>maddsidi4): Likewise.
15032 (<su_optab>msubsidi4): Likewise.
15034 2013-09-06 James Greenhalgh <james.greenhalgh@arm.com>
15036 * config/arm/types.md: Split fdiv<sd> as fsqrt<sd>, fdiv<sd>.
15037 * config/arm/arm.md (core_cycles): Remove fdiv.
15038 * config/arm/vfp.md:
15039 (*sqrtsf2_vfp): Update for attribute changes.
15040 (*sqrtdf2_vfp): Likewise.
15041 * config/aarch64/aarch64.md:
15042 (sqrt<mode>2): Update for attribute changes.
15043 * config/arm/arm1020e.md: Update with new attributes.
15044 * config/arm/cortex-a15-neon.md: Update with new attributes.
15045 * config/arm/cortex-a5.md: Update with new attributes.
15046 * config/arm/cortex-a53.md: Update with new attributes.
15047 * config/arm/cortex-a7.md: Update with new attributes.
15048 * config/arm/cortex-a8-neon.md: Update with new attributes.
15049 * config/arm/cortex-a9.md: Update with new attributes.
15050 * config/arm/cortex-m4-fpu.md: Update with new attributes.
15051 * config/arm/cortex-r4f.md: Update with new attributes.
15052 * config/arm/marvell-pj4.md: Update with new attributes.
15053 * config/arm/vfp11.md: Update with new attributes.
15055 2013-09-06 James Greenhalgh <james.greenhalgh@arm.com>
15057 * config/arm/types.md
15058 (type): Split f_cvt as f_cvt, f_cvtf2i, f_cvti2f.
15059 * config/aarch64/aarch64.md
15060 (l<fcvt_pattern><su_optab><GPF:mode><GPI:mode>2): Update with
15062 (fix_trunc<GPF:mode><GPI:mode>2): Likewise.
15063 (fixuns_trunc<GPF:mode><GPI:mode>2): Likewise.
15064 (float<GPI:mode><GPF:mode>2): Likewise.
15065 * config/arm/vfp.md
15066 (*truncsisf2_vfp): Update with new attributes.
15067 (*truncsidf2_vfp): Likewise.
15068 (fixuns_truncsfsi2): Likewise.
15069 (fixuns_truncdfsi2): Likewise.
15070 (*floatsisf2_vfp): Likewise.
15071 (*floatsidf2_vfp): Likewise.
15072 (floatunssisf2): Likewise.
15073 (floatunssidf2): Likewise.
15074 (*combine_vcvt_f32_<FCVTI32typename>): Likewise.
15075 (*combine_vcvt_f64_<FCVTI32typename>): Likewise.
15076 * config/arm/arm1020e.md: Update with new attributes.
15077 * config/arm/cortex-a15-neon.md: Update with new attributes.
15078 * config/arm/cortex-a5.md: Update with new attributes.
15079 * config/arm/cortex-a53.md: Update with new attributes.
15080 * config/arm/cortex-a7.md: Update with new attributes.
15081 * config/arm/cortex-a8-neon.md: Update with new attributes.
15082 * config/arm/cortex-a9.md: Update with new attributes.
15083 * config/arm/cortex-m4-fpu.md: Update with new attributes.
15084 * config/arm/cortex-r4f.md: Update with new attributes.
15085 * config/arm/marvell-pj4.md: Update with new attributes.
15086 * config/arm/vfp11.md: Update with new attributes.
15088 2013-09-06 James Greenhalgh <james.greenhalgh@arm.com>
15090 * config/aarch64/arm_neon.h
15091 (vqtbl<1,2,3,4><q>_s8): Fix control vector parameter type.
15092 (vqtbx<1,2,3,4><q>_s8): Likewise.
15094 2013-09-06 James Greenhalgh <james.greenhalgh@arm.com>
15096 * config/arm/types.md: Add "no_insn", "multiple" and "untyped" types.
15097 * config/arm/arm-fixed.md: Add type attribute to all insn patterns.
15098 (add<mode>3): Add type attribute.
15099 (add<mode>3): Likewise.
15100 (usadd<mode>3): Likewise.
15101 (ssadd<mode>3): Likewise.
15102 (sub<mode>3): Likewise.
15103 (sub<mode>3): Likewise.
15104 (ussub<mode>3): Likewise.
15105 (sssub<mode>3): Likewise.
15106 (ssmulsa3): Likewise.
15107 (usmulusa3): Likewise.
15108 (arm_usatsihi): Likewise.
15109 * config/arm/vfp.md
15110 (*movdi_vfp): Add types for all instructions.
15111 (*movdi_vfp_cortexa8): Likewise.
15112 (*movhf_vfp_neon): Likewise.
15113 (*movhf_vfp): Likewise.
15114 (*movdf_vfp): Likewise.
15115 (*thumb2_movdf_vfp): Likewise.
15116 (*thumb2_movdfcc_vfp): Likewise.
15117 * config/arm/arm.md: Add type attribute to all insn patterns.
15118 (*thumb1_adddi3): Add type attribute.
15119 (*arm_adddi3): Likewise.
15120 (*adddi_sesidi_di): Likewise.
15121 (*adddi_zesidi_di): Likewise.
15122 (*thumb1_addsi3): Likewise.
15123 (addsi3_compare0): Likewise.
15124 (*addsi3_compare0_scratch): Likewise.
15125 (*compare_negsi_si): Likewise.
15126 (cmpsi2_addneg): Likewise.
15127 (*addsi3_carryin_<optab>): Likewise.
15128 (*addsi3_carryin_alt2_<optab>): Likewise.
15129 (*addsi3_carryin_clobercc_<optab>): Likewise.
15130 (*subsi3_carryin): Likewise.
15131 (*subsi3_carryin_const): Likewise.
15132 (*subsi3_carryin_compare): Likewise.
15133 (*subsi3_carryin_compare_const): Likewise.
15134 (*arm_subdi3): Likewise.
15135 (*thumb_subdi3): Likewise.
15136 (*subdi_di_zesidi): Likewise.
15137 (*subdi_di_sesidi): Likewise.
15138 (*subdi_zesidi_di): Likewise.
15139 (*subdi_sesidi_di): Likewise.
15140 (*subdi_zesidi_ze): Likewise.
15141 (thumb1_subsi3_insn): Likewise.
15142 (*arm_subsi3_insn): Likewise.
15143 (*anddi3_insn): Likewise.
15144 (*anddi_zesidi_di): Likewise.
15145 (*anddi_sesdi_di): Likewise.
15146 (*ne_zeroextracts): Likewise.
15147 (*ne_zeroextracts): Likewise.
15148 (*ite_ne_zeroextr): Likewise.
15149 (*ite_ne_zeroextr): Likewise.
15150 (*anddi_notdi_di): Likewise.
15151 (*anddi_notzesidi): Likewise.
15152 (*anddi_notsesidi): Likewise.
15153 (andsi_notsi_si): Likewise.
15154 (thumb1_bicsi3): Likewise.
15155 (*iordi3_insn): Likewise.
15156 (*iordi_zesidi_di): Likewise.
15157 (*iordi_sesidi_di): Likewise.
15158 (*thumb1_iorsi3_insn): Likewise.
15159 (*xordi3_insn): Likewise.
15160 (*xordi_zesidi_di): Likewise.
15161 (*xordi_sesidi_di): Likewise.
15162 (*arm_xorsi3): Likewise.
15163 (*andsi_iorsi3_no): Likewise.
15164 (*smax_0): Likewise.
15165 (*smax_m1): Likewise.
15166 (*arm_smax_insn): Likewise.
15167 (*smin_0): Likewise.
15168 (*arm_smin_insn): Likewise.
15169 (*arm_umaxsi3): Likewise.
15170 (*arm_uminsi3): Likewise.
15171 (*minmax_arithsi): Likewise.
15172 (*minmax_arithsi_): Likewise.
15173 (*satsi_<SAT:code>): Likewise.
15174 (arm_ashldi3_1bit): Likewise.
15175 (arm_ashrdi3_1bit): Likewise.
15176 (arm_lshrdi3_1bit): Likewise.
15177 (*arm_negdi2): Likewise.
15178 (*thumb1_negdi2): Likewise.
15179 (*arm_negsi2): Likewise.
15180 (*thumb1_negsi2): Likewise.
15181 (*negdi_extendsid): Likewise.
15182 (*negdi_zero_extend): Likewise.
15183 (*arm_abssi2): Likewise.
15184 (*thumb1_abssi2): Likewise.
15185 (*arm_neg_abssi2): Likewise.
15186 (*thumb1_neg_abss): Likewise.
15187 (one_cmpldi2): Likewise.
15188 (extend<mode>di2): Likewise.
15189 (*compareqi_eq0): Likewise.
15190 (*arm_extendhisi2addsi): Likewise.
15191 (*arm_movdi): Likewise.
15192 (*thumb1_movdi_insn): Likewise.
15193 (*arm_movt): Likewise.
15194 (*thumb1_movsi_insn): Likewise.
15195 (pic_add_dot_plus_four): Likewise.
15196 (pic_add_dot_plus_eight): Likewise.
15197 (tls_load_dot_plus_eight): Likewise.
15198 (*thumb1_movhi_insn): Likewise.
15199 (*thumb1_movsf_insn): Likewise.
15200 (*movdf_soft_insn): Likewise.
15201 (*thumb_movdf_insn): Likewise.
15202 (cbranchsi4_insn): Likewise.
15203 (cbranchsi4_scratch): Likewise.
15204 (*negated_cbranchsi4): Likewise.
15205 (*tbit_cbranch): Likewise.
15206 (*tlobits_cbranch): Likewise.
15207 (*tstsi3_cbranch): Likewise.
15208 (*cbranchne_decr1): Likewise.
15209 (*addsi3_cbranch): Likewise.
15210 (*addsi3_cbranch_scratch): Likewise.
15211 (*arm_cmpdi_insn): Likewise.
15212 (*arm_cmpdi_unsig): Likewise.
15213 (*arm_cmpdi_zero): Likewise.
15214 (*thumb_cmpdi_zero): Likewise.
15215 (*deleted_compare): Likewise.
15216 (*mov_scc): Likewise.
15217 (*mov_negscc): Likewise.
15218 (*mov_notscc): Likewise.
15219 (*cstoresi_eq0_thumb1_insn): Likewise.
15220 (cstoresi_nltu_thumb1): Likewise.
15221 (cstoresi_ltu_thu): Likewise.
15222 (thumb1_addsi3_addgeu): Likewise.
15223 (*arm_jump): Likewise.
15224 (*thumb_jump): Likewise.
15225 (*check_arch2): Likewise.
15226 (arm_casesi_internal): Likewise.
15227 (thumb1_casesi_dispatch): Likewise.
15228 (*arm_indirect_jump): Likewise.
15229 (*thumb1_indirect_jump): Likewise.
15231 (*and_scc): Likewise.
15232 (*ior_scc): Likewise.
15233 (*compare_scc): Likewise.
15234 (*cond_move): Likewise.
15235 (*cond_arith): Likewise.
15236 (*cond_sub): Likewise.
15237 (*cmp_ite0): Likewise.
15238 (*cmp_ite1): Likewise.
15239 (*cmp_and): Likewise.
15240 (*cmp_ior): Likewise.
15241 (*ior_scc_scc): Likewise.
15242 (*ior_scc_scc_cmp): Likewise.
15243 (*and_scc_scc): Likewise.
15244 (*and_scc_scc_cmp): Likewise.
15245 (*and_scc_scc_nod): Likewise.
15246 (*negscc): Likewise.
15247 (movcond_addsi): Likewise.
15248 (movcond): Likewise.
15249 (*ifcompare_plus_move): Likewise.
15250 (*if_plus_move): Likewise.
15251 (*ifcompare_move_plus): Likewise.
15252 (*if_move_plus): Likewise.
15253 (*ifcompare_arith_arith): Likewise.
15254 (*if_arith_arith): Likewise.
15255 (*ifcompare_arith_move): Likewise.
15256 (*if_arith_move): Likewise.
15257 (*ifcompare_move_arith): Likewise.
15258 (*if_move_arith): Likewise.
15259 (*ifcompare_move_not): Likewise.
15260 (*if_move_not): Likewise.
15261 (*ifcompare_not_move): Likewise.
15262 (*if_not_move): Likewise.
15263 (*ifcompare_shift_move): Likewise.
15264 (*if_shift_move): Likewise.
15265 (*ifcompare_move_shift): Likewise.
15266 (*if_move_shift): Likewise.
15267 (*ifcompare_shift_shift): Likewise.
15268 (*ifcompare_not_arith): Likewise.
15269 (*ifcompare_arith_not): Likewise.
15270 (*if_arith_not): Likewise.
15271 (*ifcompare_neg_move): Likewise.
15272 (*if_neg_move): Likewise.
15273 (*ifcompare_move_neg): Likewise.
15274 (*if_move_neg): Likewise.
15275 (prologue_thumb1_interwork): Likewise.
15276 (*cond_move_not): Likewise.
15277 (*sign_extract_onebit): Likewise.
15278 (*not_signextract_onebit): Likewise.
15279 (stack_tie): Likewise.
15280 (align_4): Likewise.
15281 (align_8): Likewise.
15282 (consttable_end): Likewise.
15283 (consttable_1): Likewise.
15284 (consttable_2): Likewise.
15285 (consttable_4): Likewise.
15286 (consttable_8): Likewise.
15287 (consttable_16): Likewise.
15288 (*thumb1_tablejump): Likewise.
15289 (prefetch): Likewise.
15290 (force_register_use): Likewise.
15291 (thumb_eh_return): Likewise.
15292 (load_tp_hard): Likewise.
15293 (load_tp_soft): Likewise.
15294 (tlscall): Likewise.
15295 (*arm_movtas_ze): Likewise.
15296 (*arm_rev): Likewise.
15297 (*arm_revsh): Likewise.
15298 (*arm_rev16): Likewise.
15299 * config/arm/thumb2.md
15300 (*thumb2_smaxsi3): Likewise.
15301 (*thumb2_sminsi3): Likewise.
15302 (*thumb32_umaxsi3): Likewise.
15303 (*thumb2_uminsi3): Likewise.
15304 (*thumb2_negdi2): Likewise.
15305 (*thumb2_abssi2): Likewise.
15306 (*thumb2_neg_abss): Likewise.
15307 (*thumb2_movsi_insn): Likewise.
15308 (tls_load_dot_plus_four): Likewise.
15309 (*thumb2_movhi_insn): Likewise.
15310 (*thumb2_mov_scc): Likewise.
15311 (*thumb2_mov_negs): Likewise.
15312 (*thumb2_mov_negs): Likewise.
15313 (*thumb2_mov_nots): Likewise.
15314 (*thumb2_mov_nots): Likewise.
15315 (*thumb2_movsicc_): Likewise.
15316 (*thumb2_movsfcc_soft_insn): Likewise.
15317 (*thumb2_indirect_jump): Likewise.
15318 (*thumb2_and_scc): Likewise.
15319 (*thumb2_ior_scc): Likewise.
15320 (*thumb2_ior_scc_strict_it): Likewise.
15321 (*thumb2_cond_move): Likewise.
15322 (*thumb2_cond_arith): Likewise.
15323 (*thumb2_cond_ari): Likewise.
15324 (*thumb2_cond_sub): Likewise.
15325 (*thumb2_negscc): Likewise.
15326 (*thumb2_movcond): Likewise.
15327 (thumb2_casesi_internal): Likewise.
15328 (thumb2_casesi_internal_pic): Likewise.
15329 (*thumb2_alusi3_short): Likewise.
15330 (*thumb2_mov<mode>_shortim): Likewise.
15331 (*thumb2_addsi_short): Likewise.
15332 (*thumb2_subsi_short): Likewise.
15333 (thumb2_addsi3_compare0): Likewise.
15334 (*thumb2_cbz): Likewise.
15335 (*thumb2_cbnz): Likewise.
15336 (*thumb2_one_cmplsi2_short): Likewise.
15337 (*thumb2_negsi2_short): Likewise.
15338 (*orsi_notsi_si): Likewise.
15339 * config/arm/arm1020e.md: Update with new attributes.
15340 * config/arm/arm1026ejs.md: Update with new attributes.
15341 * config/arm/arm1136jfs.md: Update with new attributes.
15342 * config/arm/arm926ejs.md: Update with new attributes.
15343 * config/arm/cortex-a15.md: Update with new attributes.
15344 * config/arm/cortex-a5.md: Update with new attributes.
15345 * config/arm/cortex-a53.md: Update with new attributes.
15346 * config/arm/cortex-a7.md: Update with new attributes.
15347 * config/arm/cortex-a8.md: Update with new attributes.
15348 * config/arm/cortex-a9.md: Update with new attributes.
15349 * config/arm/cortex-m4.md: Update with new attributes.
15350 * config/arm/cortex-r4.md: Update with new attributes.
15351 * config/arm/fa526.md: Update with new attributes.
15352 * config/arm/fa606te.md: Update with new attributes.
15353 * config/arm/fa626te.md: Update with new attributes.
15354 * config/arm/fa726te.md: Update with new attributes.
15356 2013-09-06 James Greenhalgh <james.greenhalgh@arm.com>
15358 * config/aarch64/aarch64-simd.md
15359 (aarch64_sqdml<SBINQOPS:as>l_n<mode>_internal): Use
15360 <vwx> iterator to ensure correct register choice.
15361 (aarch64_sqdml<SBINQOPS:as>l2_n<mode>_internal): Likewise.
15362 (aarch64_sqdmull_n<mode>): Likewise.
15363 (aarch64_sqdmull2_n<mode>_internal): Likewise.
15364 * config/aarch64/arm_neon.h
15365 (vml<as><q>_lane<q>_<su>16): Use 'x' constraint for element vector.
15366 (vml<as><q>_n_<su>16): Likewise.
15367 (vml<as>l_high_lane<q>_<su>16): Likewise.
15368 (vml<as>l_high_n_<su>16): Likewise.
15369 (vml<as>l_lane<q>_<su>16): Likewise.
15370 (vml<as>l_n_<su>16): Likewise.
15371 (vmul<q>_lane<q>_<su>16): Likewise.
15372 (vmul<q>_n_<su>16): Likewise.
15373 (vmull_lane<q>_<su>16): Likewise.
15374 (vmull_n_<su>16): Likewise.
15375 (vmull_high_lane<q>_<su>16): Likewise.
15376 (vmull_high_n_<su>16): Likewise.
15377 (vqrdmulh<q>_n_s16): Likewise.
15379 2013-09-06 Tejas Belagod <tejas.belagod@arm.com>
15381 * config/aarch64/arm_neon.h: Fix all vdup<bhsd_lane<q> intrinsics to
15382 have the correct lane parameter.
15384 2013-09-06 Richard Biener <rguenther@suse.de>
15386 * cfganal.c (control_dependences::~control_dependences):
15387 Properly free all of the vector.
15389 2013-09-06 Kirill Yukhin <kirill.yukhin@intel.com>
15392 * config/i386/i386.c (ix86_conditional_register_usage):
15393 Proper initialize extended SSE registers.
15395 2013-09-06 Jan Hubicka <jh@suse.cz>
15397 PR tree-optimization/58311
15398 * ipa-devirt.c (gate_ipa_devirt): Only execute when optimizing.
15400 2013-09-06 Jan Hubicka <jh@suse.cz>
15402 * Makefile.in (tree-sra.o): Update dependencies.
15403 * tree-sra.c: Include ipa-utils.h
15404 (scan_function): Use recursive_call_p.
15405 (has_caller_p): New function.
15406 (cgraph_for_node_and_aliases): Count also callers of aliases.
15408 2013-09-06 Jan Hubicka <jh@suse.cz>
15410 PR middle-end/58094
15411 * cgraph.h (symtab_semantically_equivalent_p): Declare.
15412 * tree-tailcall.c: Include ipa-utils.h.
15413 (find_tail_calls): Use it.
15414 * ipa-pure-const.c (check_call): Likewise.
15415 * ipa-utils.c (recursive_call_p): New function.
15416 * ipa-utils.h (recursive_call_p): Dclare.
15417 * symtab.c (symtab_nonoverwritable_alias): Fix formatting.
15418 (symtab_semantically_equivalent_p): New function.
15419 * Makefile.in (tree-tailcall.o): Update dependencies.
15421 2013-09-06 Eric Botcazou <ebotcazou@adacore.com>
15423 * ipa-split.c (split_function): Set DECL_NO_INLINE_WARNING_P on the
15424 non-inlinable part.
15426 2013-09-06 Richard Biener <rguenther@suse.de>
15428 * lto-streamer.h (lto_global_var_decls): Remove.
15429 * Makefile.in (OBJS): Remove lto-symtab.o.
15430 (lto-symtab.o): Remove.
15431 (GTFILES): Remove lto-symtab.c
15432 * lto-symtab.c: Move to lto/
15434 2013-09-06 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
15436 * config/s390/s390.md (UNSPEC_FPINT_FLOOR, UNSPEC_FPINT_BTRUNC)
15437 (UNSPEC_FPINT_ROUND, UNSPEC_FPINT_CEIL, UNSPEC_FPINT_NEARBYINT)
15438 (UNSPEC_FPINT_RINT): New constant definitions.
15439 (FPINT, fpint_name, fpint_roundingmode): New integer iterator
15440 definition with 2 attributes.
15441 ("<FPINT:fpint_name><BFP:mode>2", "rint<BFP:mode>2")
15442 ("<FPINT:fpint_name><DFP:mode>2", "rint<DFP:mode>2"): New pattern
15445 2013-09-06 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
15447 * config/s390/s390.md: Add "bcr_flush" value to mnemonic attribute.
15448 ("mem_thread_fence_1"): Use bcr 14,0 for z196 and later.
15449 Set the mnemonic attribute to "bcr_flush". Set the "z196prop"
15450 attribute to "z196_alone".
15451 * config/s390/2827.md: Add "bcr_flush" to "ooo_groupalone" and
15454 2013-09-06 Richard Biener <rguenther@suse.de>
15456 * basic-block.h (class control_dependences): New.
15457 * tree-ssa-dce.c (control_dependence_map): Remove.
15459 (EXECUTE_IF_CONTROL_DEPENDENT): Remove.
15460 (set_control_dependence_map_bit, clear_control_dependence_bitmap,
15461 find_pdom, find_control_dependence, find_all_control_dependences):
15463 (mark_control_dependent_edges_necessary,
15464 find_obviously_necessary_stmts, propagate_necessity, tree_dce_init,
15465 tree_dce_done, perform_tree_ssa_dce): Adjust.
15466 * cfganal.c (set_control_dependence_map_bit,
15467 clear_control_dependence_bitmap, find_pdom, find_control_dependence,
15468 find_all_control_dependences): Move from tree-ssa-dce.c and
15469 implement as methods of control_dependences class.
15470 (control_dependences::control_dependences): New.
15471 (control_dependences::~control_dependences): Likewise.
15472 (control_dependences::get_edges_dependent_on): Likewise.
15473 (control_dependences::get_edge): Likewise.
15475 2013-09-04 Jan Hubicka <jh@suse.cz>
15477 * tree.c (types_same_for_odr): Drop overactive check.
15478 * ipa-devirt.c (hash_type_name): Likewise.
15480 2013-09-04 Jan Hubicka <jh@suse.cz>
15482 * cgraphunit.c (walk_polymorphic_call_targets): Break out from ...
15483 (analyze_functions): ... here.
15485 2013-09-04 Jan Hubicka <jh@suse.cz>
15487 PR middle-end/58201
15488 * cgraphunit.c (analyze_functions): Clear AUX fields
15489 after processing; initialize assembler name has.
15491 2013-09-05 Jeff Law <law@redhat.com>
15493 * tree-ssa-threadedge.c (thread_around_empty_blocks): Renamed
15494 from thread_around_empty_block. Record threading path into PATH.
15495 Recurse if threading through the initial block is successful.
15496 (thread_across_edge): Corresponding changes to slightly simplify.
15498 2013-09-05 James Greenhalgh <james.greenhalgh@arm.com>
15500 * config/aarch64/aarch64.md
15501 (type): Remove frecpe, frecps, frecpx.
15502 (aarch64_frecp<FRECP:frecp_suffix><mode>): Move to aarch64-simd.md,
15503 fix to be a TARGET_SIMD instruction.
15504 (aarch64_frecps): Remove.
15505 * config/aarch64/aarch64-simd.md
15506 (aarch64_frecp<FRECP:frecp_suffix><mode>): New, moved from aarch64.md
15507 (aarch64_frecps<mode>): Handle all float/vector of float modes.
15509 2013-09-05 James Greenhalgh <james.greenhalgh@arm.com>
15510 Sofiane Naci <sofiane.naci@arm.com>
15512 * config/arm/types.md (define_attr "type"): Expand "arlo_imm"
15513 into "adr", "alu_imm", "alus_imm", "logic_imm", "logics_imm".
15514 Expand "arlo_reg" into "adc_reg", "adc_imm", "adcs_reg", "adcs_imm",
15515 "alu_ext", "alu_reg", "alus_ext", "alus_reg", "bfm", "csel",
15516 "logic_reg", "logics_reg", "rev". Expand "arlo_shift" into
15517 "alu_shift_imm", "alus_shift_imm", "logic_shift_imm",
15518 "logics_shift_imm". Expand "arlo_shift_reg" into "alu_shift_reg",
15519 "alus_shift_reg", "logic_shift_reg", "logics_shift_reg". Expand "clz"
15520 into "clz, "rbit". Rename "shift" to "shift_imm".
15521 * config/arm/arm.md (define_attr "core_cycles"): Update for attribute
15522 changes. Update for attribute changes all occurrences of arlo_* and
15524 * config/arm/arm-fixed.md: Update for attribute changes
15525 all occurrences of arlo_* types.
15526 * config/arm/thumb2.md: Update for attribute changes all occurrences
15528 * config/arm/arm.c (xscale_sched_adjust_cost): (rtx insn, rtx
15529 (cortexa7_older_only): Likewise.
15530 (cortexa7_younger): Likewise.
15531 * config/arm/arm1020e.md (1020alu_op): Update for attribute changes.
15532 (1020alu_shift_op): Likewise.
15533 (1020alu_shift_reg_op): Likewise.
15534 * config/arm/arm1026ejs.md (alu_op): Update for attribute changes.
15535 (alu_shift_op): Likewise.
15536 (alu_shift_reg_op): Likewise.
15537 * config/arm/arm1136jfs.md (11_alu_op): Update for attribute changes.
15538 (11_alu_shift_op): Likewise.
15539 (11_alu_shift_reg_op): Likewise.
15540 * config/arm/arm926ejs.md (9_alu_op): Update for attribute changes.
15541 (9_alu_shift_reg_op): Likewise.
15542 * config/arm/cortex-a15.md (cortex_a15_alu): Update for
15544 (cortex_a15_alu_shift): Likewise.
15545 (cortex_a15_alu_shift_reg): Likewise.
15546 * config/arm/cortex-a5.md (cortex_a5_alu): Update for
15548 (cortex_a5_alu_shift): Likewise.
15549 * config/arm/cortex-a53.md (cortex_a53_alu): Update for
15551 (cortex_a53_alu_shift): Likewise.
15552 * config/arm/cortex-a7.md (cortex_a7_alu_imm): Update for
15554 (cortex_a7_alu_reg): Likewise.
15555 (cortex_a7_alu_shift): Likewise.
15556 * config/arm/cortex-a8.md (cortex_a8_alu): Update for
15558 (cortex_a8_alu_shift): Likewise.
15559 (cortex_a8_alu_shift_reg): Likewise.
15560 * config/arm/cortex-a9.md (cortex_a9_dp): Update for attribute changes.
15561 (cortex_a9_dp_shift): Likewise.
15562 * config/arm/cortex-m4.md (cortex_m4_alu): Update for
15564 * config/arm/cortex-r4.md
15565 (cortex_r4_alu): Update for attribute changes.
15566 (cortex_r4_mov): Likewise.
15567 (cortex_r4_alu_shift_reg): Likewise.
15568 * config/arm/fa526.md (526_alu_op): Update for attribute changes.
15569 (526_alu_shift_op): Likewise.
15570 * config/arm/fa606te.md (606te_alu_op): Update for attribute changes.
15571 * config/arm/fa626te.md (626te_alu_op): Update for attribute changes.
15572 (626te_alu_shift_op): Likewise.
15573 * config/arm/fa726te.md (726te_alu_op): Update for attribute changes.
15574 (726te_alu_shift_op): Likewise.
15575 (726te_alu_shift_reg_op): Likewise.
15576 * config/arm/fmp626.md (mp626_alu_op): Update for attribute changes.
15577 (mp626_alu_shift_op): Likewise.
15578 * config/arm/marvell-pj4.md (pj4_alu): Update for attribute changes.
15579 (pj4_alu_conds): Likewise.
15580 (pj4_shift): Likewise.
15581 (pj4_shift_conds): Likewise.
15582 (pj4_alu_shift): Likewise.
15583 (pj4_alu_shift_conds): Likewise.
15584 * config/aarch64/aarch64.md: Update for attribute change
15585 all occurrences of arlo_* and shift* types.
15587 2013-09-05 Mike Stump <mikestump@comcast.net>
15589 * tree.h: Move documentation for tree_function_decl to tree-core.h
15590 with the declaration.
15592 2013-09-05 Peter Bergner <bergner@vnet.ibm.com>
15595 * reginfo.c (choose_hard_reg_mode): Scan through all mode classes
15596 looking for widest mode.
15598 2013-09-05 Eric Botcazou <ebotcazou@adacore.com>
15600 * config.gcc (*-*-vxworks*): Do not override an existing extra_objs.
15602 2013-09-05 Richard Biener <rguenther@suse.de>
15604 PR tree-optimization/58137
15605 * tree-vect-stmts.c (get_vectype_for_scalar_type_and_size):
15606 Do not create vectors of pointers.
15607 * tree-vect-loop.c (get_initial_def_for_induction): Use proper
15608 types for the components of the vector initializer.
15609 * tree-cfg.c (verify_gimple_assign_binary): Remove special-casing
15610 allowing pointer vectors with PLUS_EXPR/MINUS_EXPR.
15612 2013-09-05 Martin Jambor <mjambor@suse.cz>
15614 * ipa-prop.c (remove_described_reference): Accept missing references,
15615 return false if that hppens, otherwise return true.
15616 (cgraph_node_for_jfunc): New function.
15617 (try_decrement_rdesc_refcount): Likewise.
15618 (try_make_edge_direct_simple_call): Use them.
15619 (ipa_edge_removal_hook): Remove references from rdescs.
15620 (ipa_edge_duplication_hook): Clone rdescs and their references
15621 when the new edge has the same caller as the old one.
15622 * cgraph.c (cgraph_resolve_speculation): Remove speculative
15623 reference before removing any edges.
15625 2013-09-05 Richard Earnshaw <rearnsha@arm.com>
15627 * arm.c (thumb2_emit_strd_push): Rewrite to use pre-decrement on
15629 * thumb2.md (thumb2_storewb_parisi): New pattern.
15631 2013-09-05 Yufeng Zhang <yufeng.zhang@arm.com>
15633 * config/aarch64/aarch64-option-extensions.def: Add
15634 AARCH64_OPT_EXTENSION of 'crc'.
15635 * config/aarch64/aarch64.h (AARCH64_FL_CRC): New define.
15636 (AARCH64_ISA_CRC): Ditto.
15637 * doc/invoke.texi (-march and -mcpu feature modifiers): Add
15638 description of the CRC extension.
15640 2013-09-05 Alexander Ivchenko <alexander.ivchenko@intel.com>
15642 * config/rs6000/linux64.h: Define OPTION_BIONIC and OPTION_UCLIBC.
15643 * config/rs6000/linux.h: Ditto.
15644 * alpha/linux.h: Ditto.
15645 * config/bfin/uclinux.h: Define TARGET_LIBC_HAS_FUNCTION as
15646 no_c99_libc_has_function.
15647 * config/c6x/uclinux-elf.h: Ditto.
15648 * config/lm32/uclinux-elf.h: Ditto.
15649 * config/m68k/uclinux.h: Ditto.
15650 * config/moxie/uclinux.h: Ditto.
15651 * config.gcc (bfin*-linux-uclibc*): Add t-linux-android to tmake_file.
15652 (crisv32-*-linux*, cris-*-linux*): Ditto.
15653 * config/bfin/bfin.c: Include "tm_p.h".
15655 2013-09-05 Richard Biener <rguenther@suse.de>
15657 * tree-vect-loop.c (vect_analyze_loop_operations): Properly
15658 check for a definition without a basic-block.
15660 2013-09-05 James Greenhalgh <james.greenhalgh@arm.com>
15661 Sofiane Naci <sofiane.naci@arm.com>
15663 * config/aarch64/aarch64.md
15664 (*movti_aarch64): Rename r_2_f and f_2_r.
15665 (*movsf_aarch64): Likewise.
15666 (*movdf_aarch64): Likewise.
15667 (*movtf_aarch64): Likewise.
15668 (aarch64_movdi_<mode>low): Likewise.
15669 (aarch64_movdi_<mode>high): Likewise.
15670 (aarch64_mov<mode>high_di): Likewise.
15671 (aarch64_mov<mode>low_di): Likewise.
15672 (aarch64_movtilow_tilow): Likewise.
15673 * config/arm/arm.md (attribute "neon_type"): Delete. Move attribute
15674 values to config/arm/types.md
15675 (attribute "conds"): Update for attribute change.
15676 (anddi3_insn): Likewise.
15677 (iordi3_insn): Likewise.
15678 (xordi3_insn): Likewise.
15679 (one_cmpldi2): Likewise.
15680 * config/arm/types.md (type): Add Neon types.
15681 * config/arm/neon.md (neon_mov<mode>): Remove "neon_type" attribute,
15682 use "type" attribute.
15683 (movmisalign<mode>_neon_store): Likewise.
15684 (movmisalign<mode>_neon_load): Likewise.
15685 (vec_set<mode>_internal): Likewise.
15686 (vec_setv2di_internal): Likewise.
15687 (vec_extract<mode>): Likewise.
15688 (vec_extractv2di): Likewise.
15689 (add<mode>3_neon): Likewise.
15690 (adddi3_neon): Likewise.
15691 (sub<mode>3_neon): Likewise.
15692 (subdi3_neon): Likewise.
15693 (mul<mode>3_neon): Likewise.
15694 (mul<mode>3add<mode>_neon): Likewise.
15695 (mul<mode>3neg<mode>add<mode>_neon): Likewise.
15696 (fma<VCVTF:mode>4)): Likewise.
15697 (fma<VCVTF:mode>4_intrinsic): Likewise.
15698 (fmsub<VCVTF:mode>4)): Likewise.
15699 (fmsub<VCVTF:mode>4_intrinsic): Likewise.
15700 (neon_vrint<NEON_VRINT:nvrint_variant><VCVTF:mode>): Likewise.
15701 (ior<mode>3): Likewise.
15702 (and<mode>3): Likewise.
15703 (anddi3_neon): Likewise.
15704 (orn<mode>3_neon): Likewise.
15705 (orndi3_neon): Likewise.
15706 (bic<mode>3_neon): Likewise.
15707 (bicdi3_neon): Likewise.
15708 (xor<mode>3): Likewise.
15709 (one_cmpl<mode>2): Likewise.
15710 (abs<mode>2): Likewise.
15711 (neg<mode>2): Likewise.
15712 (umin<mode>3_neon): Likewise.
15713 (umax<mode>3_neon): Likewise.
15714 (smin<mode>3_neon): Likewise.
15715 (smax<mode>3_neon): Likewise.
15716 (vashl<mode>3): Likewise.
15717 (vashr<mode>3_imm): Likewise.
15718 (vlshr<mode>3_imm): Likewise.
15719 (ashl<mode>3_signed): Likewise.
15720 (ashl<mode>3_unsigned): Likewise.
15721 (neon_load_count): Likewise.
15722 (ashldi3_neon_noclobber): Likewise.
15723 (signed_shift_di3_neon): Likewise.
15724 (unsigned_shift_di3_neon): Likewise.
15725 (ashrdi3_neon_imm_noclobber): Likewise.
15726 (lshrdi3_neon_imm_noclobber): Likewise.
15727 (widen_ssum<mode>3): Likewise.
15728 (widen_usum<mode>3): Likewise.
15729 (quad_halves_<code>v4si): Likewise.
15730 (quad_halves_<code>v4sf): Likewise.
15731 (quad_halves_<code>v8hi): Likewise.
15732 (quad_halves_<code>v16qi): Likewise.
15733 (reduc_splus_v2di): Likewise.
15734 (neon_vpadd_internal<mode>): Likewise.
15735 (neon_vpsmin<mode>): Likewise.
15736 (neon_vpsmax<mode>): Likewise.
15737 (neon_vpumin<mode>): Likewise.
15738 (neon_vpumax<mode>): Likewise.
15739 (ss_add<mode>_neon): Likewise.
15740 (us_add<mode>_neon): Likewise.
15741 (ss_sub<mode>_neon): Likewise.
15742 (us_sub<mode>_neon): Likewise.
15743 (neon_vadd<mode>_unspec): Likewise.
15744 (neon_vaddl<mode>): Likewise.
15745 (neon_vaddw<mode>): Likewise.
15746 (neon_vhadd<mode>): Likewise.
15747 (neon_vqadd<mode>): Likewise.
15748 (neon_vaddhn<mode>): Likewise.
15749 (neon_vmul<mode>): Likewise.
15750 (neon_vmla<mode>): Likewise.
15751 (neon_vmlal<mode>): Likewise.
15752 (neon_vmls<mode>): Likewise.
15753 (neon_vmlsl<mode>): Likewise.
15754 (neon_vqdmulh<mode>): Likewise.
15755 (neon_vqdmlal<mode>): Likewise.
15756 (neon_vqdmlsl<mode>): Likewise.
15757 (neon_vmull<mode>): Likewise.
15758 (neon_vqdmull<mode>): Likewise.
15759 (neon_vsub<mode>_unspec): Likewise.
15760 (neon_vsubl<mode>): Likewise.
15761 (neon_vsubw<mode>): Likewise.
15762 (neon_vqsub<mode>): Likewise.
15763 (neon_vhsub<mode>): Likewise.
15764 (neon_vsubhn<mode>): Likewise.
15765 (neon_vceq<mode>): Likewise.
15766 (neon_vcge<mode>): Likewise.
15767 (neon_vcgeu<mode>): Likewise.
15768 (neon_vcgt<mode>): Likewise.
15769 (neon_vcgtu<mode>): Likewise.
15770 (neon_vcle<mode>): Likewise.
15771 (neon_vclt<mode>): Likewise.
15772 (neon_vcage<mode>): Likewise.
15773 (neon_vcagt<mode>): Likewise.
15774 (neon_vtst<mode>): Likewise.
15775 (neon_vabd<mode>): Likewise.
15776 (neon_vabdl<mode>): Likewise.
15777 (neon_vaba<mode>): Likewise.
15778 (neon_vabal<mode>): Likewise.
15779 (neon_vmax<mode>): Likewise.
15780 (neon_vmin<mode>): Likewise.
15781 (neon_vpaddl<mode>): Likewise.
15782 (neon_vpadal<mode>): Likewise.
15783 (neon_vpmax<mode>): Likewise.
15784 (neon_vpmin<mode>): Likewise.
15785 (neon_vrecps<mode>): Likewise.
15786 (neon_vrsqrts<mode>): Likewise.
15787 (neon_vqabs<mode>): Likewise.
15788 (neon_vqneg<mode>): Likewise.
15789 (neon_vcls<mode>): Likewise.
15790 (clz<mode>2): Likewise.
15791 (popcount<mode>2): Likewise.
15792 (neon_vrecpe): Likewise.
15793 (neon_vrsqrte): Likewise.
15794 (neon_vget_lane<mode>_sext_internal): Likewise.
15795 (neon_vget_lane<mode>_zext_internal): Likewise.
15796 (neon_vdup_n<mode>): Likewise.
15797 (neon_vdup_nv2di): Likewise.
15798 (neon_vdpu_lane<mode>_internal): Likewise.
15799 (neon_vswp<mode>): Likewise.
15800 (float<mode><V_cvtto>2): Likewise.
15801 (floatuns<mode><V_cvtto>2): Likewise.
15802 (fix_trunc<mode><V_cvtto>)2): Likewise
15803 (fixuns_trunc<mode><V_cvtto)2): Likewise.
15804 (neon_vcvt<mode>): Likewise.
15805 (neon_vcvtv4sfv4hf): Likewise.
15806 (neon_vcvtv4hfv4sf): Likewise.
15807 (neon_vcvt_n<mode>): Likewise.
15808 (neon_vmovn<mode>): Likewise.
15809 (neon_vqmovn<mode>): Likewise.
15810 (neon_vqmovun<mode>): Likewise.
15811 (neon_vmovl<mode>): Likewise.
15812 (neon_vmul_lane<mode>): Likewise.
15813 (neon_vmull_lane<mode>): Likewise.
15814 (neon_vqdmull_lane<mode>): Likewise.
15815 (neon_vqdmulh_lane<mode>): Likewise.
15816 (neon_vmla_lane<mode>): Likewise.
15817 (neon_vmlal_lane<mode>): Likewise.
15818 (neon_vqdmlal_lane<mode>): Likewise.
15819 (neon_vmls_lane<mode>): Likewise.
15820 (neon_vmlsl_lane<mode>): Likewise.
15821 (neon_vqdmlsl_lane<mode>): Likewise.
15822 (neon_vext<mode>): Likewise.
15823 (neon_vrev64<mode>): Likewise.
15824 (neon_vrev32<mode>): Likewise.
15825 (neon_vrev16<mode>): Likewise.
15826 (neon_vbsl<mode>_internal): Likewise.
15827 (neon_vshl<mode>): Likewise.
15828 (neon_vqshl<mode>): Likewise.
15829 (neon_vshr_n<mode>): Likewise.
15830 (neon_vshrn_n<mode>): Likewise.
15831 (neon_vqshrn_n<mode>): Likewise.
15832 (neon_vqshrun_n<mode>): Likewise.
15833 (neon_vshl_n<mode>): Likewise.
15834 (neon_vqshl_n<mode>): Likewise.
15835 (neon_vqshlu_n<mode>): Likewise.
15836 (neon_vshll_n<mode>): Likewise.
15837 (neon_vsra_n<mode>): Likewise.
15838 (neon_vsri_n<mode>): Likewise.
15839 (neon_vsli_n<mode>): Likewise.
15840 (neon_vtbl1v8qi): Likewise.
15841 (neon_vtbl2v8qi): Likewise.
15842 (neon_vtbl3v8qi): Likewise.
15843 (neon_vtbl4v8qi): Likewise.
15844 (neon_vtbx1v8qi): Likewise.
15845 (neon_vtbx2v8qi): Likewise.
15846 (neon_vtbx3v8qi): Likewise.
15847 (neon_vtbx4v8qi): Likewise.
15848 (neon_vtrn<mode>_internal): Likewise.
15849 (neon_vzip<mode>_internal): Likewise.
15850 (neon_vuzp<mode>_internal): Likewise.
15851 (neon_vld1<mode>): Likewise.
15852 (neon_vld1_lane<mode>): Likewise.
15853 (neon_vld1_dup<mode>): Likewise.
15854 (neon_vld1_dupv2di): Likewise.
15855 (neon_vst1<mode>): Likewise.
15856 (neon_vst1_lane<mode>): Likewise.
15857 (neon_vld2<mode>): Likewise.
15858 (neon_vld2_lane<mode>): Likewise.
15859 (neon_vld2_dup<mode>): Likewise.
15860 (neon_vst2<mode>): Likewise.
15861 (neon_vst2_lane<mode>): Likewise.
15862 (neon_vld3<mode>): Likewise.
15863 (neon_vld3qa<mode>): Likewise.
15864 (neon_vld3qb<mode>): Likewise.
15865 (neon_vld3_lane<mode>): Likewise.
15866 (neon_vld3_dup<mode>): Likewise.
15867 (neon_vst3<mode>): Likewise.
15868 (neon_vst3qa<mode>): Likewise.
15869 (neon_vst3qb<mode>): Likewise.
15870 (neon_vst3_lane<mode>): Likewise.
15871 (neon_vld4<mode>): Likewise.
15872 (neon_vld4qa<mode>): Likewise.
15873 (neon_vld4qb<mode>): Likewise.
15874 (neon_vld4_lane<mode>): Likewise.
15875 (neon_vld4_dup<mode>): Likewise.
15876 (neon_vst4<mode>): Likewise.
15877 (neon_vst4qa<mode>): Likewise.
15878 (neon_vst4qb<mode>): Likewise.
15879 (neon_vst4_lane<mode>): Likewise.
15880 (neon_vec_unpack<US>_lo_<mode>): Likewise.
15881 (neon_vec_unpack<US>_hi_<mode>): Likewise.
15882 (neon_vec_<US>mult_lo_<mode>): Likewise.
15883 (neon_vec_<US>mult_hi_<mode>): Likewise.
15884 (neon_vec_<US>shiftl_<mode>): Likewise.
15885 (neon_unpack<US>_<mode>): Likewise.
15886 (neon_vec_<US>mult_<mode>): Likewise.
15887 (vec_pack_trunc_<mode>): Likewise.
15888 (neon_vec_pack_trunk_<mode>): Likewise.
15889 (neon_vabd<mode>_2): Likewise.
15890 (neon_vabd<mode>_3): Likewise.
15891 * config/arm/vfp.md (arm_movsi_vfp): Update for attribute changes.
15892 (thumb2_movsi_vfp): Likewise.
15893 (movdi_vfp): Likewise.
15894 (movdi_vfp_cortexa8): Likewise.
15895 (movhf_vfp_neon): Likewise.
15896 (movhf_vfp): Likewiwse.
15897 (movsf_vfp): Likewiwse.
15898 (thumb2_movsf_vfp): Likewiwse.
15899 (movdf_vfp): Likewise.
15900 (thumb2_movdf_vfp): Likewise.
15901 (movsfcc_vfp): Likewise.
15902 (thumb2_movsfcc_vfp): Likewise.
15903 (movdfcc_vfp): Likewise.
15904 (thumb2_movdfcc_vfp): Likewise.
15905 * config/arm/arm.c (cortexa7_older_only): Update for attribute change.
15906 * config/arm/arm1020e.md (v10_c2v): Update for attribute change.
15907 (v10_v2c): Likewise.
15908 * config/arm/cortex-a15-neon.md (cortex_a15_neon_int_1): Update for
15910 (cortex_a15_neon_int_2): Likewise.
15911 (cortex_a15_neon_int_3): Likewise.
15912 (cortex_a15_neon_int_4): Likewise.
15913 (cortex_a15_neon_int_5): Likewise.
15914 (cortex_a15_neon_vqneg_vqabs): Likewise.
15915 (cortex_a15_neon_vmov): Likewise.
15916 (cortex_a15_neon_vaba): Likewise.
15917 (cortex_a15_neon_vaba_qqq): Likewise.
15918 (cortex_a15_neon_mul_ddd_8_16_qdd_16_8_long_32_16_long): Likewise.
15919 (cortex_a15_neon_mul_qqq_8_16_32_ddd_32): Likewise.
15920 (cortex_a15_neon_mul_qdd_64_32_long_qqd_16_ddd_32_\
15921 scalar_64_32_long_scalar): Likewise.
15922 (cortex_a15_neon_mla_ddd_8_16_qdd_16_8_long_32_16_long): Likewise.
15923 (cortex_a15_neon_mla_qqq_8_16): Likewise.
15924 (cortex_a15_neon_mla_ddd_32_qqd_16_ddd_32_scalar_qdd_64_32_\
15925 lotype_qdd_64_32_long): Likewise.
15926 (cortex_a15_neon_mla_qqq_32_qqd_32_scalar): Likewise.
15927 (cortex_a15_neon_mul_ddd_16_scalar_32_16_long_scalar): Likewise.
15928 (cortex_a15_neon_mul_qqd_32_scalar): Likewise.
15929 (cortex_a15_neon_mla_ddd_16_scalar_qdd_32_16_long_scalar): Likewise.
15930 (cortex_a15_neon_shift_1): Likewise.
15931 (cortex_a15_neon_shift_2): Likewise.
15932 (cortex_a15_neon_shift_3): Likewise.
15933 (cortex_a15_neon_vshl_ddd): Likewise.
15934 (cortex_a15_neon_vqshl_vrshl_vqrshl_qqq): Likewise.
15935 (cortex_a15_neon_vsra_vrsra): Likewise.
15936 (cortex_a15_neon_fp_vadd_ddd_vabs_dd): Likewise.
15937 (cortex_a15_neon_fp_vadd_qqq_vabs_qq): Likewise.
15938 (cortex_a15_neon_fp_vmul_ddd): Likewise.
15939 (cortex_a15_neon_fp_vmul_qqd): Likewise.
15940 (cortex_a15_neon_fp_vmla_ddd): Likewise.
15941 (cortex_a15_neon_fp_vmla_qqq): Likewise.
15942 (cortex_a15_neon_fp_vmla_ddd_scalar): Likewise.
15943 (cortex_a15_neon_fp_vmla_qqq_scalar): Likewise.
15944 (cortex_a15_neon_fp_vrecps_vrsqrts_ddd): Likewise.
15945 (cortex_a15_neon_fp_vrecps_vrsqrts_qqq): Likewise.
15946 (cortex_a15_neon_bp_simple): Likewise.
15947 (cortex_a15_neon_bp_2cycle): Likewise.
15948 (cortex_a15_neon_bp_3cycle): Likewise.
15949 (cortex_a15_neon_vld1_1_2_regs): Likewise.
15950 (cortex_a15_neon_vld1_3_4_regs): Likewise.
15951 (cortex_a15_neon_vld2_2_regs_vld1_vld2_all_lanes): Likewise.
15952 (cortex_a15_neon_vld2_4_regs): Likewise.
15953 (cortex_a15_neon_vld3_vld4): Likewise.
15954 (cortex_a15_neon_vst1_1_2_regs_vst2_2_regs): Likewise.
15955 (cortex_a15_neon_vst1_3_4_regs): Likewise.
15956 (cortex_a15_neon_vst2_4_regs_vst3_vst4): Likewise.
15957 (cortex_a15_neon_vst3_vst4): Likewise.
15958 (cortex_a15_neon_vld1_vld2_lane): Likewise.
15959 (cortex_a15_neon_vld3_vld4_lane" 10
15960 (cortex_a15_neon_vst1_vst2_lane): Likewise.
15961 (cortex_a15_neon_vst3_vst4_lane): Likewise.
15962 (cortex_a15_neon_vld3_vld4_all_lanes): Likewise.
15963 (cortex_a15_neon_ldm_2): Likewise.0
15964 (cortex_a15_neon_stm_2): Likewise.
15965 (cortex_a15_neon_mcr): Likewise.
15966 (cortex_a15_neon_mcr_2_mcrr): Likewise.
15967 (cortex_a15_neon_mrc): Likewise.
15968 (cortex_a15_neon_mrrc): Likewise.
15969 * config/arm/cortex-a15.md (cortex_a15_alu): Update for attribute
15971 (cortex_a15_alu_shift): Likewise.
15972 (cortex_a15_alu_shift_reg): Likewise.
15973 (cortex_a15_mult32): Likewise.
15974 (cortex_a15_mult64): Likewise.
15975 (cortex_a15_block): Likewise.
15976 (cortex_a15_branch): Likewise.
15977 (cortex_a15_load1): Likewise.
15978 (cortex_a15_load3): Likewise.
15979 (cortex_a15_store1): Likewise.
15980 (cortex_a15_store3): Likewise.
15981 (cortex_a15_call): Likewise.
15982 * config/arm/cortex-a5.md (cortex_a5_r2f): Update for attribute change.
15983 (cortex_a5_f2r): Likewise.
15984 * config/arm/cortex-a53.md (cortex_a53_r2f): Update for attribute
15986 (cortex_a53_f2r): Likewise.
15987 * config/arm/cortex-a7.md
15988 (cortex_a7_branch): Update for attribute change.
15989 (cortex_a7_call): Likewise.
15990 (cortex_a7_alu_imm): Likewise.
15991 (cortex_a7_alu_reg): Likewise.
15992 (cortex_a7_alu_shift): Likewise.
15993 (cortex_a7_mul): Likewise.
15994 (cortex_a7_load1): Likewise.
15995 (cortex_a7_store1): Likewise.
15996 (cortex_a7_load2): Likewise.
15997 (cortex_a7_store2): Likewise.
15998 (cortex_a7_load3): Likewise.
15999 (cortex_a7_store3): Likewise.
16000 (cortex_a7_load4): Likewise.
16001 (cortex_a7_store4): Likewise.
16002 (cortex_a7_fpalu): Likewise.
16003 (cortex_a7_fconst): Likewise.
16004 (cortex_a7_fpmuls): Likewise.
16005 (cortex_a7_neon_mul): Likewise.
16006 (cortex_a7_fpmacs): Likewise.
16007 (cortex_a7_neon_mla: Likewise.
16008 (cortex_a7_fpmuld: Likewise.
16009 (cortex_a7_fpmacd: Likewise.
16010 (cortex_a7_fpfmad: Likewise.
16011 (cortex_a7_fdivs: Likewise.
16012 (cortex_a7_fdivd: Likewise.
16013 (cortex_a7_r2f: Likewise.
16014 (cortex_a7_f2r: Likewise.
16015 (cortex_a7_f_flags: Likewise.
16016 (cortex_a7_f_loads: Likewise.
16017 (cortex_a7_f_loadd: Likewise.
16018 (cortex_a7_f_stores: Likewise.
16019 (cortex_a7_f_stored: Likewise.
16020 (cortex_a7_neon): Likewise.
16021 * config/arm/cortex-a8-neon.md
16022 (cortex_a8_neon_mrc): Update for attribute change.
16023 (cortex_a8_neon_mrrc): Likewise.
16024 (cortex_a8_neon_int_1): Likewise.
16025 (cortex_a8_neon_int_2): Likewise.
16026 (cortex_a8_neon_int_3): Likewise.
16027 (cortex_a8_neon_int_4): Likewise.
16028 (cortex_a8_neon_int_5): Likewise.
16029 (cortex_a8_neon_vqneg_vqabs): Likewise.
16030 (cortex_a8_neon_vmov): Likewise.
16031 (cortex_a8_neon_vaba): Likewise.
16032 (cortex_a8_neon_vaba_qqq): Likewise.
16033 (cortex_a8_neon_vsma): Likewise.
16034 (cortex_a8_neon_mul_ddd_8_16_qdd_16_8_long_32_16_long): Likewise.
16035 (cortex_a8_neon_mul_qqq_8_16_32_ddd_32): Likewise.
16036 (cortex_a8_neon_mul_qdd_64_32_long_qqd_16_ddd_32_scalar_64_32_\
16037 long_scalar): Likewise.
16038 (cortex_a8_neon_mla_ddd_8_16_qdd_16_8_long_32_16_long): Likewise.
16039 (cortex_a8_neon_mla_qqq_8_16): Likewise.
16040 (cortex_a8_neon_mla_ddd_32_qqd_16_ddd_32_scalar_qdd_64_32_\
16041 long_scalar_qdd_64_32_long): Likewise.
16042 (cortex_a8_neon_mla_qqq_32_qqd_32_scalar): Likewise.
16043 (cortex_a8_neon_mul_ddd_16_scalar_32_16_long_scalar): Likewise.
16044 (cortex_a8_neon_mul_qqd_32_scalar): Likewise.
16045 (cortex_a8_neon_mla_ddd_16_scalar_qdd_32_16_long_scalar): Likewise.
16046 (cortex_a8_neon_shift_1): Likewise.
16047 (cortex_a8_neon_shift_2): Likewise.
16048 (cortex_a8_neon_shift_3): Likewise.
16049 (cortex_a8_neon_vshl_ddd): Likewise.
16050 (cortex_a8_neon_vqshl_vrshl_vqrshl_qqq): Likewise.
16051 (cortex_a8_neon_vsra_vrsra): Likewise.
16052 (cortex_a8_neon_fp_vadd_ddd_vabs_dd): Likewise.
16053 (cortex_a8_neon_fp_vadd_qqq_vabs_qq): Likewise.
16054 (cortex_a8_neon_fp_vsum): Likewise.
16055 (cortex_a8_neon_fp_vmul_ddd): Likewise.
16056 (cortex_a8_neon_fp_vmul_qqd): Likewise.
16057 (cortex_a8_neon_fp_vmla_ddd): Likewise.
16058 (cortex_a8_neon_fp_vmla_qqq): Likewise.
16059 (cortex_a8_neon_fp_vmla_ddd_scalar): Likewise.
16060 (cortex_a8_neon_fp_vmla_qqq_scalar): Likewise.
16061 (cortex_a8_neon_fp_vrecps_vrsqrts_ddd): Likewise.
16062 (cortex_a8_neon_fp_vrecps_vrsqrts_qqq): Likewise.
16063 (cortex_a8_neon_bp_simple): Likewise.
16064 (cortex_a8_neon_bp_2cycle): Likewise.
16065 (cortex_a8_neon_bp_3cycle): Likewise.
16066 (cortex_a8_neon_ldr): Likewise.
16067 (cortex_a8_neon_str): Likewise.
16068 (cortex_a8_neon_vld1_1_2_regs): Likewise.
16069 (cortex_a8_neon_vld1_3_4_regs): Likewise.
16070 (cortex_a8_neon_vld2_2_regs_vld1_vld2_all_lanes): Likewise.
16071 (cortex_a8_neon_vld2_4_regs): Likewise.
16072 (cortex_a8_neon_vld3_vld4): Likewise.
16073 (cortex_a8_neon_vst1_1_2_regs_vst2_2_regs): Likewise.
16074 (cortex_a8_neon_vst1_3_4_regs): Likewise.
16075 (cortex_a8_neon_vst2_4_regs_vst3_vst4): Likewise.
16076 (cortex_a8_neon_vst3_vst4): Likewise.
16077 (cortex_a8_neon_vld1_vld2_lane): Likewise.
16078 (cortex_a8_neon_vld3_vld4_lane): Likewise.
16079 (cortex_a8_neon_vst1_vst2_lane): Likewise.
16080 (cortex_a8_neon_vst3_vst4_lane): Likewise.
16081 (cortex_a8_neon_vld3_vld4_all_lanes): Likewise.
16082 (cortex_a8_neon_mcr): Likewise.
16083 (cortex_a8_neon_mcr_2_mcrr): Likewise.
16084 * config/arm/cortex-a8.md (cortex_a8_alu): Update for attribute change.
16085 * config/arm/cortex-a9-neon.md (ca9_neon_mrc): Update for attribute
16087 (ca9_neon_mrrc): Likewise.
16088 (cortex_a9_neon_int_1): Likewise.
16089 (cortex_a9_neon_int_2): Likewise.
16090 (cortex_a9_neon_int_3): Likewise.
16091 (cortex_a9_neon_int_4): Likewise.
16092 (cortex_a9_neon_int_5): Likewise.
16093 (cortex_a9_neon_vqneg_vqabs): Likewise.
16094 (cortex_a9_neon_vmov): Likewise.
16095 (cortex_a9_neon_vaba): Likewise.
16096 (cortex_a9_neon_vaba_qqq): Likewise.
16097 (cortex_a9_neon_vsma): Likewise.
16098 (cortex_a9_neon_mul_ddd_8_16_qdd_16_8_long_32_16_long): Likewise.
16099 (cortex_a9_neon_mul_qqq_8_16_32_ddd_32): Likewise.
16100 (cortex_a9_neon_mul_qdd_64_32_long_qqd_16_ddd_32_scalar_64_32_\
16101 long_scalar): Likewise.
16102 (cortex_a9_neon_mla_ddd_8_16_qdd_16_8_long_32_16_long): Likewise.
16103 (cortex_a9_neon_mla_qqq_8_16): Likewise.
16104 (cortex_a9_neon_mla_ddd_32_qqd_16_ddd_32_scalar_qdd_64_32_\
16105 long_scalar_qdd_64_32_long): Likewise.
16106 (cortex_a9_neon_mla_qqq_32_qqd_32_scalar): Likewise.
16107 (cortex_a9_neon_mul_ddd_16_scalar_32_16_long_scalar): Likewise.
16108 (cortex_a9_neon_mul_qqd_32_scalar): Likewise.
16109 (cortex_a9_neon_mla_ddd_16_scalar_qdd_32_16_long_scalar): Likewise.
16110 (cortex_a9_neon_shift_1): Likewise.
16111 (cortex_a9_neon_shift_2): Likewise.
16112 (cortex_a9_neon_shift_3): Likewise.
16113 (cortex_a9_neon_vshl_ddd): Likewise.
16114 (cortex_a9_neon_vqshl_vrshl_vqrshl_qqq): Likewise.
16115 (cortex_a9_neon_vsra_vrsra): Likewise.
16116 (cortex_a9_neon_fp_vadd_ddd_vabs_dd): Likewise.
16117 (cortex_a9_neon_fp_vadd_qqq_vabs_qq): Likewise.
16118 (cortex_a9_neon_fp_vsum): Likewise.
16119 (cortex_a9_neon_fp_vmul_ddd): Likewise.
16120 (cortex_a9_neon_fp_vmul_qqd): Likewise.
16121 (cortex_a9_neon_fp_vmla_ddd): Likewise.
16122 (cortex_a9_neon_fp_vmla_qqq): Likewise.
16123 (cortex_a9_neon_fp_vmla_ddd_scalar): Likewise.
16124 (cortex_a9_neon_fp_vmla_qqq_scalar): Likewise.
16125 (cortex_a9_neon_fp_vrecps_vrsqrts_ddd): Likewise.
16126 (cortex_a9_neon_fp_vrecps_vrsqrts_qqq): Likewise.
16127 (cortex_a9_neon_bp_simple): Likewise.
16128 (cortex_a9_neon_bp_2cycle): Likewise.
16129 (cortex_a9_neon_bp_3cycle): Likewise.
16130 (cortex_a9_neon_ldr): Likewise.
16131 (cortex_a9_neon_str): Likewise.
16132 (cortex_a9_neon_vld1_1_2_regs): Likewise.
16133 (cortex_a9_neon_vld1_3_4_regs): Likewise.
16134 (cortex_a9_neon_vld2_2_regs_vld1_vld2_all_lanes): Likewise.
16135 (cortex_a9_neon_vld2_4_regs): Likewise.
16136 (cortex_a9_neon_vld3_vld4): Likewise.
16137 (cortex_a9_neon_vst1_1_2_regs_vst2_2_regs): Likewise.
16138 (cortex_a9_neon_vst1_3_4_regs): Likewise.
16139 (cortex_a9_neon_vst2_4_regs_vst3_vst4): Likewise.
16140 (cortex_a9_neon_vst3_vst4): Likewise.
16141 (cortex_a9_neon_vld1_vld2_lane): Likewise.
16142 (cortex_a9_neon_vld3_vld4_lane): Likewise.
16143 (cortex_a9_neon_vst1_vst2_lane): Likewise.
16144 (cortex_a9_neon_vst3_vst4_lane): Likewise.
16145 (cortex_a9_neon_vld3_vld4_all_lanes): Likewise.
16146 (cortex_a9_neon_mcr): Likewise.
16147 (cortex_a9_neon_mcr_2_mcrr): Likewise.
16148 * config/arm/cortex-a9.md (cortex_a9_dp): Update for attribute change.
16149 (cortex_a9_fps): Likewise.
16150 * config/arm/cortex-m4-fpu.md (cortex_m4_vmov_2): Update for attribute
16152 (cortex_m4_fmuls): Likewise.
16153 * config/arm/cortex-r4f.md (cortex_r4_mcr): Update for attribute
16155 (cortex_r4_mrc): Likewise.
16156 * config/arm/iterators.md: Update comment referring to neon_type.
16157 * config/arm/iwmmxt.md (iwmmxt_arm_movdi): Update for attribute change.
16158 (iwmmxt_movsi_insn): Likewise.
16159 * config/arm/marvell-pj4.md (pj4_vfp_to_core): Update for
16161 (pj4_core_to_vfp): Likewise.
16162 * config/arm/neon-schedgen.ml (emit_insn_reservations): Update for
16164 * config/arm/vfp11.md (vfp_fload): Update for attribute change.
16165 (vfp_fstore): Likewise.
16166 * doc/md.texi: Change references to neon_type to refer to type.
16168 2013-09-04 Dodji Seketeli <dodji@redhat.com>
16170 * tree.h (DECL_BUILT_IN): Fix typo in comment.
16172 2013-09-04 David Edelsohn <dje.gcc@gmail.com>
16174 * config/rs6000/rs6000.h (ASM_OUTPUT_DEF_FROM_DECLS): Only emit
16175 lglobl if not weak.
16177 2013-09-04 Easwaran Raman <eraman@google.com>
16179 PR middle-end/57370
16180 * tree-ssa-reassoc.c (get_stmt_uid_with_default): New function,
16181 (build_and_add_sum): Use it.
16182 (appears_later_in_bb): Simplify code.
16184 2013-09-04 Teresa Johnson <tejohnson@google.com>
16186 * dumpfile.c (dump_finish): Don't close stderr/stdout.
16188 2013-09-04 James Greenhalgh <james.greenhalgh@arm.com>
16190 * config/aarch64/arm_neon.h (vaddvq_<su>64): Fix return types.
16192 2013-09-04 Jan Hubicka <jh@suse.cz>
16194 * Makefile.in (ipa-devirt.o): Add dependency on diagnostic.h
16195 * ipa-devirt.c: Include diganostic.h
16196 (odr_type_d): Add types and types_set.
16197 (hash_type_name): Work for types with vtables during LTO.
16198 (odr_hasher::remove): Fix comment; destroy types_set.
16199 (add_type_duplicate): New function,
16200 (get_odr_type): Use it.
16201 (dump_type_inheritance_graph): Dump type duplicates.
16202 * ipa.c (symtab_remove_unreachable_nodes): Build type inheritance
16204 * tree.c (types_same_for_odr): Give exact answers on types with
16207 2013-09-04 Dodji Seketeli <dodji@redhat.com>
16209 * tree.h (DECL_BUILT_IN, DECL_IS_BUILTIN): Add more comments
16210 explaining their differences.
16212 2013-09-04 Sandeep Kumar Singh<Sandeep.Singh2@kpitcummins.com>
16214 * config/rx/rx.h: Add option -mcpu for target variants RX100 and RX200.
16216 2013-09-03 Jeff Law <law@redhat.com>
16218 * tree-ssa-threadedge.c (thread_across_edge): Record entire path
16219 when not threading through a joiner block. Pass joiner/no joiner
16220 state to register_jump_thread.
16221 * tree-ssa-threadupdate.c (register_jump_thread): Get joiner/no joiner
16222 state from argument rather than implying on path length.
16223 Dump the entire jump thread path into debugging dump.
16224 * tree-flow.h (register_jump_thread): Update prototype.
16226 2013-08-29 Xinliang David Li <davidxl@google.com>
16228 * tree-vect-data-refs.c (vect_compute_data_ref_alignment):
16229 Remove a trivial gcc_assert.
16231 2013-08-29 Xinliang David Li <davidxl@google.com>
16233 * tree-vect-slp.c (destroy_bb_vec_info): Data ref cleanup.
16234 * tree-vect-loop.c (destroy_bb_vec_info): Ditto.
16235 * tree-vect-data-refs.c (vect_compute_data_ref_alignment):
16236 Delay base decl alignment adjustment.
16237 * tree-vectorizer.c (vect_destroy_datarefs): New function.
16238 * tree-vectorizer.h: New data structure.
16239 (set_dr_misalignment): New function.
16240 (dr_misalignment): Ditto.
16241 * tree-vect-stmts.c (vectorizable_store): Ensure alignment.
16242 (vectorizable_load): Ditto.
16243 (ensure_base_align): New function.
16244 (vectorize_loops): Add dbg_cnt support.
16245 (execute_vect_slp): Ditto.
16246 * dbgcnt.def: New debug counter.
16247 * Makefile: New dependency.
16249 2013-09-03 Meador Inge <meadori@codesourcery.com>
16253 2013-08-30 Meador Inge <meadori@codesourcery.com>
16255 * tree-vrp.c (check_array_ref): Bail out on zero-length arrays.
16257 2013-09-03 David Edelsohn <dje.gcc@gmail.com>
16259 * config/rs6000/rs6000.h (ASM_OUTPUT_DEF_FROM_DECLS): Emit lglobl for
16260 function descriptor.
16262 2013-09-03 Richard Biener <rguenther@suse.de>
16264 * tree-affine.c (add_elt_to_tree): Fix association issue,
16265 avoid useless converts and make sure to always return a
16266 properly typed result.
16268 2013-09-03 Richard Biener <rguenther@suse.de>
16270 PR middle-end/57656
16271 * fold-const.c (negate_expr_p): Fix division case.
16272 (negate_expr): Likewise.
16274 2013-09-03 Richard Biener <rguenther@suse.de>
16277 * tree-streamer-out.c: Include tm.h.
16278 * Makefile.in (tree-streamer-out.o): Depend on $(TM_H).
16280 2013-09-03 Jan Hubicka <jh@suse.cz>
16282 * tree-profile.c (tree_profiling): Cleanup CFG when done.
16284 2013-09-03 Alan Modra <amodra@gmail.com>
16286 * config.gcc (powerpc*-*-linux*): Add support for little-endian
16287 multilibs to big-endian target and vice versa.
16288 * config/rs6000/t-linux64: Use := assignment on all vars.
16289 (MULTILIB_EXTRA_OPTS): Remove fPIC.
16290 (MULTILIB_OSDIRNAMES): Specify using mapping from multilib_options.
16291 * config/rs6000/t-linux64le: New file.
16292 * config/rs6000/t-linux64bele: New file.
16293 * config/rs6000/t-linux64lebe: New file.
16295 2013-09-02 Jan Hubicka <jh@suse.cz>
16297 * ipa-inline-transform.c (inline_transform): Do not
16298 optimize_inline_calls when not optimizing.
16300 2013-09-02 Jan Hubicka <jh@suse.cz>
16302 * lto-symtab.c (lto_symtab_merge_symbols): Add comments; merge
16303 duplicated nodes for assembler names.
16304 * symtab.c (symtab_unregister_node): Do not attempt to unlink
16305 hard registers from assembler name hash.
16307 2013-09-02 Jan Hubicka <jh@suse.cz>
16309 * ipa-split.c (execute_split_functions): Split externally visible
16310 functions called once.
16312 2013-09-02 Martin Jambor <mjambor@suse.cz>
16315 * ipa-prop.c (ipa_edge_duplication_hook): Always put new rdesc to the
16316 linked list. When finding the correct duplicate, also consider also
16317 the caller in additon to its inlined_to node.
16319 2013-09-02 James Greenhalgh <james.greenhalgh@arm.com>
16321 * config/aarch64/aarch64-simd-builtins.def
16322 (dup_lane_scalar): Remove.
16323 * config/aarch64/aarch64-simd.md
16324 (aarch64_simd_dup): Add 'w->w' alternative.
16325 (aarch64_dup_lane<mode>): Allow for VALL.
16326 (aarch64_dup_lane_scalar<mode>): Remove.
16327 (aarch64_dup_lane_<vswap_width_name><mode>): New.
16328 (aarch64_get_lane_signed<mode>): Add w->w altenative.
16329 (aarch64_get_lane_unsigned<mode>): Likewise.
16330 (aarch64_get_lane<mode>): Likewise.
16331 * config/aarch64/aarch64.c (aarch64_evpc_dup): New.
16332 (aarch64_expand_vec_perm_const_1): Use aarch64_evpc_dup.
16333 * config/aarch64/iterators.md (VSWAP_WIDTH): New.
16334 (VCON): Change container of V2SF.
16335 (vswap_width_name): Likewise.
16336 * config/aarch64/arm_neon.h
16337 (__aarch64_vdup_lane_any): New.
16338 (__aarch64_vdup<q>_lane<q>_<fpsu><8,16,32,64>): Likewise.
16339 (vdup<q>_n_<psuf><8,16,32,64>): Convert to C implementation.
16340 (vdup<q>_lane<q>_<fpsu><8,16,32,64>): Likewise.
16342 2013-09-02 Eric Botcazou <ebotcazou@adacore.com>
16344 PR middle-end/56382
16345 * expr.c (emit_move_complex): Do not move complex FP values as parts if
16346 the source or the destination is a single hard register.
16348 2013-09-02 Richard Biener <rguenther@suse.de>
16350 PR middle-end/57511
16351 * tree-scalar-evolution.c (instantiate_scev_name): Allow
16354 2013-09-02 Richard Biener <rguenther@suse.de>
16356 * tree-affine.c (add_elt_to_tree): Avoid converting all pointer
16357 arithmetic to sizetype.
16359 2013-09-02 Bin Cheng <bin.cheng@arm.com>
16361 * tree-ssa-loop-ivopts.c (set_autoinc_for_original_candidates):
16362 Find auto-increment use both before and after candidate.
16364 2013-09-02 Marek Polacek <polacek@redhat.com>
16366 * Makefile.in (ubsan.o): Add $(TM_P_H) dependency.
16368 2013-09-01 Jan Hubicka <jh@suse.cz>
16370 * Makefile.in: Add ipa-profile.o
16371 (ipa.o, ipa-devrit.o, ipa-inline-analysis.o): Adjust dependencies.
16372 * cgraph.c (struct cgraph_propagate_frequency_data,
16373 cgraph_propagate_frequency_1, cgraph_propagate_frequency): Move to
16374 ipa-profile.c; replace cgraph_ by ipa_ prefix.
16375 * cgraph.h (cgraph_propagate_frequency): Remove.
16376 * ipa-inline-analysis.c: Include ipa-utils.h;
16377 drop duplicated cfgloop.h.
16378 (inline_update_callee_summaries): Update.
16379 * ipa-profile.c: New file.
16380 * ipa-utils.h (ipa_propagate_frequency): Declare.
16381 * ipa.c: Do not include pointer-set.h, hash-table.h, lto-streamer.h,
16382 data-streamer.h, value-prof.h.
16383 (symtab_remove_unreachable_nodes): Update profile.
16384 (struct histogram_entry, histogram, histogram_pool, histogram_hash,
16385 account_time_size, cmp_counts, dump_histogram,
16386 ipa_profile_generate_summary, ipa_profile_write_summary,
16387 ipa_profile_read_summary, ipa_profile, gate_ipa_profile,
16388 pass_data_ipa_profile, pass_ipa_profile, make_pass_ipa_profile):
16389 Move to ipa-profile.c.
16391 2013-09-01 John David Anglin <danglin@gcc.gnu.org>
16393 * config/pa/pa.md: Allow "const 0" operand 1 in "scc" insns.
16395 2013-09-01 Jan Hubicka <jh@suse.cz>
16397 * common.opt (fdevirtualize-speculatively): New function.
16398 * invoke.texi (fdevirtualize-speculatively): Document.
16399 * ipa-devirt.c: Include ipa-inline.h
16400 (likely_target_p): New function.
16401 (ipa_devirt): New function.
16402 (gate_ipa_devirt): New function.
16403 (pass_data_ipa_devirt): New static var.
16404 (pass_ipa_devirt): Likewise.
16405 (make_pass_ipa_devirt): New function.
16406 * opts.c (default_options): Add OPT_fdevirtualize_speculatively.
16407 (common_handle_option): Disable devirtualization when
16408 value range profiling is available.
16409 * passes.def (pass_ipa_devirt): Add.
16410 * timever.def (TV_IPA_DEVIRT): New timevar.
16411 * tree-pass.h (make_pass_ipa_devirt):
16413 2013-09-01 Iain Sandoe <iain@codesourcery.com>
16415 * config/darwin.h (LINK_COMMAND_SPEC_A): Revise sanitizer specs to
16416 include sanitize(undefined).
16418 2013-08-31 Diego Novillo <dnovillo@google.com>
16420 * Makefile.in (TREE_CORE_H): Define.
16422 (GTFILES): Add tree-core.h.
16423 * builtins.c (built_in_class_names): Use BUILT_IN_LAST to
16425 * tree-core.h: New file.
16426 Move all data structures, enum, typedefs, global
16427 declarations and constants from ...
16428 * tree.h: ... here.
16430 2013-08-31 Jan Hubicka <jh@suse.cz>
16432 * bulitins.c (expand_builtin): Do not early exit for gcov
16433 instrumented functions.
16435 2013-08-31 Marek Polacek <polacek@redhat.com>
16437 * ubsan.c: Include tm_p.h.
16439 2013-08-31 Jan Hubicka <jh@suse.cz>
16441 * gimple-streamer-in.c (input_gimple_stmt): Silence parameter unused
16444 * cgraph.c (cgraph_get_body): Update call of lto_input_function_body.
16445 * gimple-streamer-in.c (input_gimple_stmt): Move sanity check to ...
16446 * tree-cfg.c (verify_gimple_label): ... here.
16447 * ipa-utils.c: Include lto-streamer.h, ipa-inline.h
16448 (ipa_merge_profiles): New function.
16449 * lto-streamer-in.c (lto_read_body): Take node instead of fn_decl.
16450 (lto_input_function_body): Likewise.
16451 * ipa-utils.h (ipa_merge_profiles): Declare.
16452 * lto-streamer.h (lto_input_function_body): Update prototype.
16453 (emit_label_in_global_context_p): Remove.
16454 * lto-symtab.c: Include ipa-utils.h
16455 (lto_cgraph_replace_node): Use ipa_merge_profiles.
16457 2013-08-31 Jan Hubicka <jh@suse.cz>
16459 * cgraph.c (cgraph_speculative_call_info): Fix ref lookup
16461 2013-08-31 Jan Hubicka <jh@suse.cz>
16463 * basic-block.h (apply_scale): Make scale parmeter gcov_type.
16465 2013-08-31 Uros Bizjak <ubizjak@gmail.com>
16467 * config/alpha/alpha.c (alpha_emit_conditional_move): Update
16468 "cmp" RTX before signed_comparison_operator check to account
16469 for "code" changes.
16471 2013-08-30 Jan Hubicka <jh@suse.cz>
16473 * ipa-prop.c (ipa_set_jf_known_type): Check that we add only records.
16474 (detect_type_change_1): Rename to ...
16475 (detect_type_change): ... this one; early return on non-polymorphic
16477 (detect_type_change_ssa): Add comp_type parameter; update
16478 use of detect_type_change.
16479 (compute_complex_assign_jump_func): Add param_type parameter;
16480 update use of detect_type_change_ssa.
16481 (compute_complex_ancestor_jump_func): Likewise.
16482 (ipa_get_callee_param_type): New function.
16483 (ipa_compute_jump_functions_for_edge): Compute parameter type;
16484 update calls to the jump function computation functions.
16486 2013-08-30 Teresa Johnson <tejohnson@google.com>
16487 Steven Bosscher <steven@gcc.gnu.org>
16489 * cfgrtl.c (fixup_new_cold_bb): New routine.
16490 (commit_edge_insertions): Invoke fixup_partitions.
16491 (find_partition_fixes): New routine.
16492 (fixup_partitions): Ditto.
16493 (verify_hot_cold_block_grouping): Update comments.
16494 (rtl_verify_edges): Invoke find_partition_fixes.
16495 (rtl_verify_bb_pointers): Update comments.
16496 (rtl_verify_bb_layout): Ditto.
16497 * basic-block.h (probably_never_executed_edge_p): Declare.
16498 (fixup_partitions): Ditto.
16499 * cfgcleanup.c (try_optimize_cfg): Invoke fixup_partitions.
16500 * bb-reorder.c (sanitize_hot_paths): New function.
16501 (find_rarely_executed_basic_blocks_and_crossing_edges): Invoke
16502 sanitize_hot_paths.
16503 * predict.c (probably_never_executed_edge_p): New routine.
16504 * cfg.c (check_bb_profile): Add partition insanity warnings.
16506 2013-08-30 Meador Inge <meadori@codesourcery.com>
16508 * tree-vrp.c (check_array_ref): Bail out on zero-length arrays.
16510 2013-08-30 Marek Polacek <polacek@redhat.com>
16512 * Makefile.in (ubsan.o): Add.
16513 (c-family/c-ubsan.o): Add.
16514 (builtins.o): Add ubsan.h dependency.
16515 * ubsan.h: New file.
16516 * ubsan.c: New file.
16517 * common.opt: Add -fsanitize=undefined option.
16518 (flag_sanitize): Add variable.
16519 (fsanitize=): Add option. Add Driver.
16520 (fsanitize=thread): Remove option.
16521 (fsanitize=address): Likewise.
16522 (static-libubsan): New option.
16523 * doc/invoke.texi: Document the new flag and -static-libubsan.
16524 * sanitizer.def (DEF_SANITIZER_BUILTIN): Define.
16525 (BUILT_IN_UBSAN_HANDLE_BUILTIN_UNREACHABLE): Define.
16526 * builtin-attrs.def (ATTR_COLD): Define.
16527 (ATTR_COLD_NOTHROW_LEAF_LIST): Define.
16528 * builtins.def (BUILT_IN_UBSAN_HANDLE_DIVREM_OVERFLOW,
16529 BUILT_IN_UBSAN_HANDLE_SHIFT_OUT_OF_BOUNDS): Define.
16530 * flag-types.h (sanitize_code): New enum.
16531 * opts.c (common_handle_option): Parse command line arguments
16532 of -fsanitize=. Add -fsanitize=unreachable option.
16533 * varasm.c (get_variable_section): Adjust.
16534 (assemble_noswitch_variable): Likewise.
16535 (assemble_variable): Likewise.
16536 (output_constant_def_contents): Likewise.
16537 (categorize_decl_for_section): Likewise.
16538 (place_block_symbol): Likewise.
16539 (output_object_block): Likewise.
16540 * builtins.def: Likewise.
16541 * toplev.c (compile_file): Likewise.
16542 (process_options): Likewise.
16543 * cppbuiltin.c: Likewise.
16544 * tsan.c (tsan_pass): Likewise.
16545 (tsan_gate): Likewise.
16546 (tsan_gate_O0): Likewise.
16547 * cfgexpand.c (partition_stack_vars): Likewise.
16548 (expand_stack_vars): Likewise.
16549 (defer_stack_allocation): Likewise.
16550 (expand_used_vars): Likewise.
16551 * cfgcleanup.c (old_insns_match_p): Likewise.
16552 * asan.c (asan_finish_file): Likewise.
16553 (asan_instrument): Likewise.
16554 (gate_asan): Likewise.
16555 (initialize_sanitizer_builtins): Build BT_FN_VOID_PTR_PTR_PTR.
16556 (ATTR_COLD_NOTHROW_LEAF_LIST): Define.
16557 (asan_global_struct): Use pointer_sized_int_node instead
16558 calling build_nonstandard_integer_type.
16559 (initialize_sanitizer_builtins): Likewise.
16560 (asan_finish_file): Likewise.
16561 * gcc.c: Document %{%:function(args):X}.
16562 (static_spec_functions): Add sanitize.
16563 (handle_spec_function): Add retval_nonnull argument and if non-NULL,
16564 store funcval != NULL there.
16565 (do_spec_1): Adjust handle_spec_function caller.
16566 (handle_braces): Allow %:function(args) as condition.
16567 (sanitize_spec_function): New function.
16568 (ADD_STATIC_LIBUBSAN_LIBS): Define.
16569 (LIBUBSAN_SPEC): Likewise.
16570 (LIBUBSAN_EARLY_SPEC): Likewise.
16571 (SANITIZER_SPEC): Handle libubsan.
16572 (SANITIZER_EARLY_SPEC): Likewise.
16573 * config/darwin.h (LINK_COMMAND_SPEC_A): Use %:sanitize(address)
16574 instead of fsanitize=address.
16575 * config/arm/linux-eabi.h (ASAN_CC1_SPEC): Use %:sanitize(address)
16576 instead of fsanitize=address*.
16577 * builtins.c: Include ubsan.h.
16578 (fold_builtin_0): Instrument __builtin_unreachable.
16579 * config/rs6000/rs6000.h (FRAME_GROWS_DOWNWARD): Use flag_sanitize
16580 instead of flag_asan.
16581 * tree.h (enum tree_index): Add TI_POINTER_SIZED_TYPE.
16582 (pointer_sized_int_node): Define.
16583 * tree.c (build_common_tree_nodes): Initialize pointer_sized_int_node.
16585 2013-08-30 Mike Stump <mikestump@comcast.net>
16587 * doc/install.texi (Prerequisites): Note regression in Tcl 8.6
16590 2013-08-29 Jan Hubicka <jh@suse.cz>
16592 * cgraph.c (cgraph_function_body_availability): Handle weakref
16594 * passes.def: Remove pass_fixup_cfg.
16595 * ipa-inline.c (ipa_inline): When not optimizing, do not inline;
16596 track when we need to remove functions.
16597 (gate_ipa_inline): Execute inlining always; add comment why.
16598 (pass_data_ipa_inline): Remove TODO_remove_functions.
16599 * ipa-inline-analysis.c (inline_generate_summary): When not optimizing
16600 do not produce summaries.
16601 * symtab.c (change_decl_assembler_name): Handle renaming of weakrefs.
16602 (symtab_nonoverwritable_alias): Assert we are not called on weakref.
16603 * varpool.c (cgraph_variable_initializer_availability): Fix weakrefs,
16604 constant pool and vtable.
16606 2013-08-30 Tejas Belagod <tejas.belagod@arm.com>
16608 * config/aarch64/arm_neon.h (__AARCH64_UINT64_C, __AARCH64_INT64_C):
16609 New arm_neon.h's internal macros to specify 64-bit constants.
16610 Avoid using stdint.h's macros.
16612 2013-08-30 Joern Rennecke <joern.rennecke@embecosm.com>
16614 * recog.c (verify_changes): Verify that changes[i].old is non-zero
16615 before applying REG_P.
16617 2013-08-30 Jakub Jelinek <jakub@redhat.com>
16619 PR tree-optimization/58277
16620 * tree-ssa-strlen.c (strlen_enter_block): If do_invalidate gave up
16621 after seeing too many stmts with vdef in between dombb and current
16622 bb, invalidate everything.
16624 2013-08-30 Richard Biener <rguenther@suse.de>
16626 * fold-const.c (fold_single_bit_test): Fix overflow test.
16628 2013-08-30 Eric Botcazou <ebotcazou@adacore.com>
16630 * function.c (assign_parm_setup_reg): For a parameter passed by pointer
16631 and which can live in a register, always retrieve the value on entry.
16632 * var-tracking.c (add_stores): Treat the copy on entry for a parameter
16633 passed by invisible reference specially.
16634 (emit_notes_in_bb) <MO_VAL_USE>: Emit notes before the instruction.
16635 (vt_add_function_parameter): Correctly deal with a parameter passed by
16636 invisible reference.
16638 2013-08-30 Jan Hubicka <jh@suse.cz>
16640 * tree.c (set_call_expr_flags): Fix handling of TM_PURE.
16642 2013-08-30 Richard Biener <rguenther@suse.de>
16644 PR tree-optimization/58228
16645 * tree-vect-data-refs.c (vect_analyze_data_ref_access): Do not
16646 allow invariant loads in nested loop vectorization.
16648 2013-08-30 Richard Biener <rguenther@suse.de>
16650 PR tree-optimization/58223
16651 * tree-loop-distribution.c (has_anti_dependence): Rename to ...
16652 (has_anti_or_output_dependence): ... this and adjust to also
16653 look for output dependences.
16654 (mark_nodes_having_upstream_mem_writes): Adjust.
16655 (rdg_flag_uses): Likewise.
16657 2013-08-30 Richard Biener <rguenther@suse.de>
16659 PR tree-optimization/58010
16660 * tree-vect-loop.c (vect_create_epilog_for_reduction): Remove
16661 assert that we have a loop-closed PHI.
16663 2013-08-29 Jan Hubicka <jh@suse.cz>
16665 * lto-symtab.c (lto_cgraph_replace_node): Free decl_in_state.
16666 * cgraph.c (cgraph_release_function_body): Free decl_in_state.
16667 * lto-section-in.c (lto_free_function_in_decl_state): New function.
16668 (lto_free_function_in_decl_state_for_node): New function.
16670 2013-08-29 Xinliang David Li <davidxl@google.com>
16672 * loop-unroll.c (report_unroll_peel): Minor message change.
16673 * tree-vect-loop-manip.c (vect_do_peeling_for_alignment):
16674 Emit alignment peeling message with default -fopt-info.
16675 (vect_loop_versioning): Emit loop version info message.
16676 * tree-vectorizer.c (vectorize_loops): Minor message change.
16677 (execute_vect_slp): Ditto.
16679 2013-08-29 Eric Botcazou <ebotcazou@adacore.com>
16681 * cgraphclones.c (cgraph_create_virtual_clone): Compute the DECL_NAME
16682 of the clone from the DECL_NAME of the original function.
16684 2013-08-29 Oleg Endo <olegendo@gcc.gnu.org>
16686 * passes.c (register_pass): Add overload.
16687 * tree-pass.h (register_pass): Forward declare it. Add comment.
16689 2013-08-29 Jan Hubicka <jh@suse.cz>
16691 * lto-streamer-out.c (hash_tree): Stream DECL_FINAL_P,
16692 DECL_CXX_CONSTRUCTOR_P, DECL_CXX_DESTRUCTOR_P and TYPE_FINAL_P.
16693 * lto-streamer-in.c (unpack_ts_decl_with_vis_value_fields): Stream
16694 DECL_FINAL_P, DECL_CXX_CONSTRUCTOR_P and DECL_CXX_DESTRUCTOR_P.
16695 (unpack_ts_type_common_value_fields): Stream TYPE_FINAL_P.
16696 * tree-streamer-out.c (pack_ts_decl_with_vis_value_fields):
16697 Add DECL_FINAL_P, DECL_CXX_CONSTRUCTOR_P and DECL_CXX_DESTRUCTOR_P.
16698 (pack_ts_type_common_value_fields): Add TYPE_FINAL_P.
16700 2013-08-29 Teresa Johnson <tejohnson@google.com>
16702 * dumpfile.c (dump_loc): Output column number.
16703 * dumpfile.h (OPTGROUP_OTHER): Add and enable under OPTGROUP_ALL.
16704 * doc/invoke.texi: Document optall -fopt-info flag.
16705 * profile.c (read_profile_edge_counts): Use new dump framework.
16706 (compute_branch_probabilities): Ditto.
16707 * passes.c (pass_manager::register_one_dump_file): Use OPTGROUP_OTHER
16708 when pass not in any opt group.
16709 * pass_manager.h (pass_manager::get_pass_profile): New method.
16710 * value-prof.c (check_counter): Use new dump framework.
16711 (check_ic_target): Ditto.
16712 * coverage.c (get_coverage_counts): Ditto.
16713 (coverage_init): Setup new dump framework.
16715 2013-08-29 Richard Biener <rguenther@suse.de>
16717 PR tree-optimization/58246
16718 * tree-ssa-dce.c (mark_aliased_reaching_defs_necessary_1): Properly
16719 handle the dominance check inside a basic-block.
16721 2013-08-29 Richard Biener <rguenther@suse.de>
16723 PR middle-end/57287
16724 * tree-ssa-copy.c (may_propagate_copy): Allow propagating
16725 of default defs that appear in abnormal PHI nodes.
16727 2013-08-29 Richard Biener <rguenther@suse.de>
16729 PR tree-optimization/57685
16730 * tree-vrp.c (register_edge_assert_for_1): Recurse only for
16731 single-use operands to avoid exponential complexity.
16733 2013-08-28 Dehao Chen <dehao@google.com>
16735 * ipa-inline.c (edge_badness): Fix integer underflow.
16737 2013-08-28 Uros Bizjak <ubizjak@gmail.com>
16739 * gtm-builtins.def (_ITM_free): Declare leaf.
16741 2013-08-28 Jakub Jelinek <jakub@redhat.com>
16744 * config/i386/i386.md (*tls_global_dynamic_64_largepic): New insn.
16745 (*tls_local_dynamic_base_64_largepic): Likewise.
16746 (tls_global_dynamic_64_<mode>, tls_local_dynamic_base_64_<mode>):
16747 Remove predicate from call operand.
16748 * config/i386/i386.c (ix86_tls_get_addr): For -mcmodel=large -fpic
16749 return sum of pic_offset_table_rtx and UNSPEC_PLTOFF of the symbol.
16751 2013-08-28 Jeff Law <law@redhat.com>
16753 * tree-ssa-threadedge.c (thread_around_empty_block): Remove
16754 checks for the number of predecessors and successors allowed.
16755 * tree-ssa-threadupdate.c (mark_threaded_blocks): Ignore requests
16756 which require copying a joiner block if there is a request which
16757 is a subpath that requires no joiner block copying.
16759 2013-08-28 Jan Hubicka <jh@suse.cz>
16761 * lto-streamer-out.c (DFS_write_tree_body): Drop
16762 BINFO_INHERITANCE_CHAIN, BINFO_SUBVTT_INDEX and BINFO_VPTR_INDEX.
16763 (hash_tree): Do not hash DECL_DEFER_OUTPUT, BINFO_INHERITANCE_CHAIN,
16764 BINFO_SUBVTT_INDEX, BINFO_VPTR_INDEX, DECL_IN_TEXT_SECTION.
16765 * tree-streamer-in.c (unpack_ts_decl_common_value_fields):
16766 Do not read DECL_ERROR_ISSUED.
16767 (unpack_ts_decl_with_vis_value_fields): Do not read
16769 (lto_input_ts_binfo_tree_pointers): Do not read
16770 BINFO_INHERITANCE_CHAIN, BINFO_SUBVTT_INDEX, BINFO_VPTR_INDEX
16771 * tree-streamer-out.c (pack_ts_decl_common_value_fields): Do not
16772 write DECL_ERROR_ISSUED..
16773 (pack_ts_decl_with_vis_value_fields): Do not write
16775 (write_ts_binfo_tree_pointers): Do not read BINFO_INHERITANCE_CHAIN,
16776 BINFO_SUBVTT_INDEX, BINFO_VPTR_INDEX.
16777 * print-tree.c (print_node): Do not print DECL_ERROR_ISSUED.
16778 * tree.h (tree_decl_common): Update comment.
16779 (DECL_ERROR_ISSUED): Remove.
16781 2013-08-28 Jakub Jelinek <jakub@redhat.com>
16783 PR middle-end/58257
16784 * omp-low.c (copy_var_decl): Copy over TREE_NO_WARNING flag.
16786 2013-08-28 Jan Hubicka <jh@suse.cz>
16788 * builtins.def (free): Declare leaf.
16790 2013-08-27 David Malcolm <dmalcolm@redhat.com>
16792 * gdbhooks.py: New.
16793 * configure.ac (gdbinit.in): Add import of gcc/gdbhooks.py.
16794 * configure: Regenerate.
16796 2013-08-27 Martin Jambor <mjambor@suse.cz>
16798 * ipa-prop.h (ipa_pass_through_data): New field type_preserved.
16799 (ipa_ancestor_jf_data): Likewise.
16800 (ipa_get_jf_pass_through_agg_preserved): Fix comment typo.
16801 (ipa_get_jf_pass_through_type_preserved): New function.
16802 (ipa_get_jf_ancestor_agg_preserved): Fix comment typo.
16803 (ipa_get_jf_ancestor_type_preserved): New function.
16804 * ipa-cp.c (ipa_get_jf_pass_through_result): Honor type_preserved flag.
16805 (ipa_get_jf_ancestor_result): Likewise.
16806 (propagate_vals_accross_pass_through): Use
16807 ipa_get_jf_pass_through_result to do all the value mappings.
16808 * ipa-prop.c (ipa_print_node_jump_functions_for_edge): Dump the
16809 type_preserved flag.
16810 (ipa_set_jf_cst_copy): New function.
16811 (ipa_set_jf_simple_pass_through): Set the type_preserved flag.
16812 (ipa_set_jf_arith_pass_through): Likewise.
16813 (ipa_set_ancestor_jf): Likewise.
16814 (compute_complex_assign_jump_func): Set type_preserved instead of
16816 (ipa_compute_jump_functions_for_edge): Likewise.
16817 (combine_known_type_and_ancestor_jfs): Honor type_preserved.
16818 (update_jump_functions_after_inlining): Update type_preserved.
16819 Explicitely create jump functions when combining one with pass_through.
16820 (ipa_write_jump_function): Stream the type_preserved flags.
16821 (ipa_read_jump_function): Likewise.
16823 2013-08-27 Jakub Jelinek <jakub@redhat.com>
16824 Aldy Hernandez <aldyh@redhat.com>
16826 * Makefile.in (omp-low.o): Depend on $(TARGET_H).
16827 * cfgloop.h (struct loop): Add safelen, force_vect, simduid.
16828 * function.h (struct function): Add has_force_vect_loops and
16830 * gimple-pretty-print.c (dump_gimple_omp_for): Handle GF_OMP_FOR_KIND*.
16831 * gimple.c (gimple_build_omp_critical): Add KIND argument and
16833 * gimple.def: Update CLAUSES comments.
16834 * gimple.h (enum gf_mask): Add GF_OMP_FOR_KIND_{FOR,SIMD}.
16835 (gimple_build_omp_for): Add argument to prototype.
16836 (gimple_omp_for_kind): New.
16837 (gimple_omp_for_set_kind): New.
16838 * gimplify.c (enum gimplify_omp_var_data): Add GOVD_LINEAR to
16839 GOVD_DATA_SHARE_CLASS.
16840 (enum omp_region_type): Add ORT_SIMD.
16841 (gimple_add_tmp_var): Handle ORT_SIMD.
16842 (gimplify_var_or_parm_decl): Same.
16843 (is_gimple_stmt): Same.
16844 (omp_firstprivatize_variable): Same.
16845 (omp_add_variable): Only use splay_tree_insert if lookup failed.
16846 (omp_notice_variable): Handle ORT_SIMD.
16847 (omp_is_private): Add SIMD argument and handle it as well as ORT_SIMD.
16848 (omp_check_private): Handle ORT_SIMD.
16849 (gimplify_scan_omp_clauses): Handle OMP_CLAUSE_LINEAR and
16850 OMP_CLAUSE_SAFELEN.
16851 (gimplify_adjust_omp_clauses_1): Handle GOVD_LINEAR.
16852 Handle OMP_CLAUSE_LASTPRIVATE.
16853 (gimplify_adjust_omp_clauses): Handle OMP_CLAUSE_LINEAR and
16854 OMP_CLAUSE_SAFELEN.
16855 (gimplify_omp_for): Handle OMP_SIMD and OMP_CLAUSE_LINEAR.
16856 (gimplify_expr): Handle OMP_SIMD.
16857 * internal-fn.c (expand_GOMP_SIMD_LANE): New.
16858 (expand_GOMP_SIMD_VF): New.
16859 (expand_GOMP_SIMD_LAST_LANE): New.
16860 * internal-fn.def (GOMP_SIMD_LANE): New.
16861 (GOMP_SIMD_VF): New.
16862 (GOMP_SIMD_LAST_LANE): New.
16863 * omp-low.c: Include target.h.
16864 (extract_omp_for_data): Handle OMP_SIMD, OMP_CLAUSE_LINEAR,
16865 OMP_CLAUSE_SAFELEN.
16866 (check_omp_nesting_restrictions): Same.
16868 (lower_rec_simd_input_clauses): New.
16869 (lower_rec_input_clauses): Handle OMP_SIMD, GF_OMP_FOR_KIND_SIMD,
16871 (lower_lastprivate_clauses): Handle OMP_CLAUSE_LINEAR,
16872 GF_OMP_FOR_KIND_SIMD, OMP_SIMD.
16873 (expand_omp_build_assign): New.
16874 (expand_omp_for_init_counts): New.
16875 (expand_omp_for_init_vars): New.
16876 (extract_omp_for_update_vars): New.
16877 (expand_omp_for_generic): Use expand_omp_for_{init,update}_vars
16878 and rewrite accordingly.
16879 (expand_omp_simd): New.
16880 (expand_omp_for): Use expand_omp_simd.
16881 (lower_omp_for_lastprivate): Unshare vinit when appropriate.
16882 (lower_omp_for): Do not lower the body.
16883 * tree-data-ref (get_references_in_stmt): Allow IFN_GOMP_SIMD_LANE
16884 in their own loops.
16885 * tree-flow.h (find_omp_clause): Remove prototype.
16886 * tree-if-conv.c (main_tree_if_conversion): Run if doing if conversion,
16887 forcing vectorization of the loop, or if flag_tree_vectorize.
16888 (gate_tree_if_conversion): Similarly.
16889 * tree-inline.c (remap_gimple_stmt): Pass for kind argument to
16890 gimple_build_omp_for.
16891 (copy_cfg_body): set has_force_vect_loops and has_simduid_loops.
16892 * tree-parloops (create_parallel_loop): Pass kind argument to
16893 gimple_build_omp_for.
16894 * tree-pretty-print.c (dump_omp_clause): Add cases for
16895 OMP_CLAUSE_UNIFORM, OMP_CLAUSE_LINEAR, OMP_CLAUSE_SAFELEN,
16896 OMP_CLAUSE__SIMDUID_.
16897 (dump_generic_node): Handle OMP_SIMD.
16898 * tree-ssa-ccp.c (likely_value): Handle IFN_GOMP_SIMD*.
16899 * tree-ssa-loop-ivcanon.c (tree_unroll_loops_completely_1): Do not
16900 unroll OMP_SIMD loops here.
16901 * tree-ssa-loop.c (gate_tree_vectorize): Run if has_force_vect_loops.
16902 * tree-vect-data-refs.c (vect_analyze_data_ref_dependence): Handle
16904 (vect_analyze_data_refs): Handle simd loops.
16905 * tree-vect-loop.c (vectorizable_live_operation): Handle
16907 * tree-vect-stmts.c (vectorizable_call): Handle IFN_GOMP_SIMD_LANE.
16908 (vectorizable_store): Handle STMT_VINFO_SIMD_LANE_ACCESS_P.
16909 (vectorizable_load): Same.
16910 * tree-vectorizer.c: Include hash-table.h and tree-ssa-propagate.h.
16911 (struct simduid_to_vf): New.
16912 (simduid_to_vf::hash): New.
16913 (simduid_to-vf::equal): New.
16914 (struct simd_array_to_simduid): New.
16915 (simd_array_to_simduid::hash): New.
16916 (simd_array_to_simduid::equal): New.
16917 (adjust_simduid_builtins): New.
16918 (struct note_simd_array_uses_struct): New.
16919 (note_simd_array_uses_cb): New.
16920 (note_simd_array_uses): New.
16921 (vectorize_loops): Handle simd hints and adjust simd builtins
16923 * tree-vectorizer.h (struct _stmt_vec_info): Add
16924 simd_lane_access_p field.
16925 (STMT_VINFO_SIMD_LANE_ACCESS_P): New macro.
16926 * tree.c (omp_clause_num_ops): Add entries for OMP_CLAUSE_LINEAR,
16927 OMP_CLAUSE_SAFELEN, OMP_CLAUSE__SIMDUID_, OMP_CLAUSE_UNIFORM.
16928 (omp_clause_code_name): Same.
16929 (walk_tree_1): Handle OMP_CLAUSE_UNIFORM, OMP_CLAUSE_SAFELEN,
16930 OMP_CLAUSE__SIMDUID_, OMP_CLAUSE_LINEAR.
16931 * tree.def (OMP_SIMD): New entry.
16932 * tree.h (enum omp_clause_code): Add entries for OMP_CLAUSE_LINEAR,
16933 OMP_CLAUSE_UNIFORM, OMP_CLAUSE_SAFELEN, OMP_CLAUSE__SIMDUID_.
16934 (OMP_CLAUSE_DECL): Adjust range for new clauses.
16935 (OMP_CLAUSE_LINEAR_NO_COPYIN): New.
16936 (OMP_CLAUSE_LINEAR_NO_COPYOUT): New.
16937 (OMP_CLAUSE_LINEAR_STEP): New.
16938 (OMP_CLAUSE_SAFELEN_EXPR): New.
16939 (OMP_CLAUSE__SIMDUID__DECL): New.
16940 (find_omp_clause): New prototype.
16942 2013-08-27 H.J. Lu <hongjiu.lu@intel.com>
16944 * config/i386/driver-i386.c (host_detect_local_cpu): Update
16945 Haswell processor detection.
16947 2013-08-27 Christian Widmer <shadow@umbrox.de>
16950 * config/i386/driver-i386.c (host_detect_local_cpu): Add detection
16951 of Ivy Bridge and Haswell processors. Assume core-avx2 for unknown
16952 AVX2 capable processors.
16954 2013-08-27 Tejas Belagod <tejas.belagod@arm.com>
16956 * config/aarch64/arm_neon.h: Replace all inline asm implementations
16957 of vget_low_* with implementations in terms of other intrinsics.
16959 2013-08-27 Marc Glisse <marc.glisse@inria.fr>
16961 PR middle-end/57219
16962 * doc/extend.texi (__builtin_isinf_sign): Restrict the return
16963 values to -1, 0 and 1.
16965 2013-08-27 Vidya Praveen <vidyapraveen@arm.com>
16967 * config/aarch64/aarch64.md (unspec): Add UNSPEC_SISD_SSHL,
16968 UNSPEC_SISD_USHL, UNSPEC_USHL_2S, UNSPEC_SSHL_2S, UNSPEC_SISD_NEG.
16969 (<optab><mode>3_insn): Remove.
16970 (aarch64_ashl_sisd_or_int_<mode>3): New Pattern.
16971 (aarch64_lshr_sisd_or_int_<mode>3): Likewise.
16972 (aarch64_ashr_sisd_or_int_<mode>3): Likewise.
16973 (define_split for aarch64_lshr_sisd_or_int_di3): Likewise.
16974 (define_split for aarch64_lshr_sisd_or_int_si3): Likewise.
16975 (define_split for aarch64_ashr_sisd_or_int_di3): Likewise.
16976 (define_split for aarch64_ashr_sisd_or_int_si3): Likewise.
16977 (aarch64_sisd_ushl, aarch64_sisd_sshl): Likewise.
16978 (aarch64_ushl_2s, aarch64_sshl_2s, aarch64_sisd_neg_qi): Likewise.
16979 (ror<mode>3_insn): Likewise.
16980 * config/aarch64/predicates.md (aarch64_simd_register): New.
16982 2013-08-27 Richard Biener <rguenther@suse.de>
16984 PR tree-optimization/57521
16985 * tree-if-conv.c (if_convertible_bb_p): Verify that at least
16986 one edge is non-critical.
16987 (find_phi_replacement_condition): Make sure to use a non-critical
16988 edge. Cleanup and remove old bug workarounds.
16989 (bb_postdominates_preds): Remove.
16990 (if_convertible_loop_p_1): Do not compute post-dominators.
16991 (combine_blocks): Do not free post-dominators.
16992 (main_tree_if_conversion): Likewise.
16993 (pass_data_if_conversion): Add TODO_verify_ssa.
16995 2013-08-27 DJ Delorie <dj@redhat.com>
16997 * config/i386/djgpp.h (ASM_DECLARE_FUNCTION_NAME): New.
16999 2013-08-27 Yufeng Zhang <yufeng.zhang@arm.com>
17001 * function.c (assign_parm_find_data_types): Set passed_mode and
17002 nominal_mode to the TYPE_MODE of nominal_type for the built
17003 pointer type in case of the struct-pass-by-reference.
17005 2013-08-26 Joern Rennecke <joern.rennecke@embecosm.com>
17007 * config/avr/avr-stdint.h (INT16_TYPE): Change default to "int".
17008 (UINT16_TYPE): Change default to "unsigned int".
17010 * config/avr/avr.opt (mfract-convert-truncate): New option.
17011 * config/avr/avr.c (avr_out_fract): Unless TARGET_FRACT_CONV_TRUNC
17012 is set, round negative fractional integers according to n1169
17013 when converting to integer types.
17015 2013-08-26 Jan Hubicka <jh@suse.cz>
17017 * cgraph.c (cgraph_propagate_frequency): Do not assume that virtual
17018 methods can not be called indirectly when their address is not taken.
17020 2013-08-26 Jan Hubicka <jh@suse.cz>
17022 * gimple-fold.c (gimple_get_virt_method_for_binfo): Use
17025 2013-08-26 Jan Hubicka <jh@suse.cz>
17027 * ipa.c (comdat_can_be_unshared_p_1): C++ constructors and destructors
17030 2013-08-26 Joern Rennecke <joern.rennecke@embecosm.com>
17032 * reload.c (find_valid_class): Allow classes that do not include
17033 FIRST_PSEUDO_REGISTER - 1.
17035 2013-08-26 Jan Hubicka <jh@suse.cz>
17037 * cgraph.c (cgraph_redirect_edge_call_stmt_to_callee): Fix formatting;
17038 fix edge count/frequency when speculation failed; fix type check
17039 for the direct call.
17041 2013-08-26 Jan Hubicka <jh@suse.cz>
17043 * ipa-prop.c (ipa_print_node_params): Do not ICE during WPA.
17045 2013-08-26 Jan Hubicka <jh@suse.cz>
17047 * ipa-inline-transform.c (inline_transform): Be ready for basic block
17048 to be changed by edge redirection.
17050 2013-08-26 Jan Hubicka <jh@suse.cz>
17052 * cgraph.c (cgraph_speculative_call_info): Fix parameter order and
17053 formating; add sanity check.
17054 (cgraph_resolve_speculation): Add FIXME about scaling profiles.
17055 (cgraph_redirect_edge_call_stmt_to_callee): Fix ICE in debug dump.
17056 * ipa-inline.c (heap_edge_removal_hook): Reset node growth cache.
17057 (resolve_noninline_speculation): Update callee keys, too.
17059 2013-08-26 Jan Hubicka <jh@suse.cz>
17061 * tree.h (tree_decl_with_vis): Add cxx_constructor, cxx_destructor.
17062 (DECL_CXX_CONSTRUCTOR_P, DECL_CXX_DESTRUCTOR_P): New macros.
17064 2013-08-26 Joern Rennecke <joern.rennecke@embecosm.com>
17066 * config/i386/i386.c (x86_64_elf_select_section): Put ATTRIBUTE_UNUSED
17069 2013-08-26 Uros Bizjak <ubizjak@gmail.com>
17071 * config/i386/i386.c (ix86_debug_options): Remove prototype.
17072 (x86_64_elf_select_section): Ditto.
17073 (ix86_handle_tm_regparm_attribute): Remove ATTRIBUTE_UNUSED on used
17075 (ix86_pass_by_reference): Ditto.
17076 (output_set_got): Ditto.
17077 (ix86_unary_operator_ok): Ditto.
17078 (ix86_expand_builtin): Ditto.
17080 2013-08-23 Jan Hubicka <jh@suse.cz>
17082 * cgraph.c (cgraph_turn_edge_to_speculative): Fix debug output.
17084 2013-08-23 Jan Hubicka <jh@suse.cz>
17086 * tree.h (TYPE_FINAL_P, DECL_FINAL_P): New macros.
17087 (tree_decl_with_vis): Add FINAL field.
17089 2013-08-23 Jeff Law <law@redhat.com>
17091 * tree-ssa-pre.c (do_regular_insertion): Include the expression in
17092 the debugging dump when the expression is fully redundant.
17094 2013-08-23 Gabriel Dos Reis <gdr@integrable-solutions.net>
17096 * diagnostic.c (diagnostic_set_caret_max_width): Use pp_buffer.
17097 * gimple-pretty-print.c (gimple_dump_bb_buff): Likewise.
17098 * pretty-print.c (pp_formatted_text_data): Likewise.
17099 (pp_write_text_to_stream): Likewise.
17100 (pp_write_text_as_dot_label_to_stream): Likewise.
17101 (pp_append_r): Likewise.
17102 (pp_format): Likewise.
17103 (pp_flush): Likewise.
17104 (pp_clear_output_area): Likewise.
17105 (pp_append_text): Likewise.
17106 (pp_formatted_text): Likewise.
17107 (pp_remaining_character_count_for_line): Likewise.
17108 (pp_newline): Likewise.
17109 (pp_character): Likewise.
17110 (output_buffer::~output_buffer): Define.
17111 (pretty_printer::~pretty_printer): Destruct output buffer.
17112 * pretty-print.h (output_buffer::~output_buffer): Declare.
17113 (pretty_printer::~pretty_printer): Declare virtual.
17115 2013-08-24 Marc Glisse <marc.glisse@inria.fr>
17118 * hwint.h (HOST_WIDE_INT_UC, HOST_WIDE_INT_1U, HOST_WIDE_INT_M1,
17119 HOST_WIDE_INT_M1U): New macros.
17120 * fold-const.c (sign_bit_p, build_range_check, fold_unary_loc,
17121 fold_binary_loc, fold_ternary_loc): Use the new macros. Use an
17122 unsigned -1 for lshift.
17123 * cse.c (cse_insn): Likewise.
17124 * double-int.c (rshift_double, lshift_double): Likewise.
17125 * builtins.c (fold_builtin_bitop): Likewise.
17126 * combine.c (force_to_mode): Likewise.
17127 * tree.c (integer_pow2p, tree_log2, tree_floor_log2): Likewise.
17128 * simplify-rtx.c (simplify_const_unary_operation,
17129 simplify_const_binary_operation): Likewise.
17130 * tree-stdarg.c (va_list_counter_bump, va_list_ptr_read,
17131 check_va_list_escapes): Likewise.
17132 * rtlanal.c (nonzero_bits1): Likewise.
17133 * expmed.c (expand_smod_pow2): Likewise.
17134 * tree-ssa-structalias.c (UNKNOWN_OFFSET): Use HOST_WIDE_INT_MIN.
17136 2013-08-23 Jan Hubicka <jh@suse.cz>
17138 * cgraph.c (cgraph_turn_edge_to_speculative): Mark target node
17139 as having address taken.
17141 2013-08-23 Jan Hubicka <jh@suse.cz>
17143 * ipa-utils.h (method_class_type): Declare.
17144 * ipa-devirt.c (method_class_type): Export.
17146 * cgraphunit.c (analyze_functions): Do basic devirtualization;
17147 do not walk base classes of anonymous types.
17149 2013-08-23 Kaz Kojima <kkojima@gcc.gnu.org>
17151 PR rtl-optimization/58220
17152 PR regression/58221
17153 * final.c (reemit_insn_block_notes): Use NEXT_INSN to
17154 handle SEQUENCE insns properly.
17156 2013-08-23 Gabriel Dos Reis <gdr@integrable-solutions.net>
17158 * pretty-print.h (pp_newline_and_flush): Declare. Remove macro
17160 (pp_newline_and_indent): Likewise.
17161 (pp_separate_with): Likewise.
17162 * pretty-print.c (pp_newline_and_flush): Define.
17163 (pp_newline_and_indent): Likewise.
17164 (pp_separate_with): Likewise.
17166 2013-08-23 Jakub Jelinek <jakub@redhat.com>
17169 * config/i386/x86-64.h (TARGET_SECTION_TYPE_FLAGS): Define.
17170 * config/i386/i386.c (x86_64_elf_section_type_flags): New function.
17172 2013-08-23 Kirill Yukhin <kirill.yukhin@intel.com>
17174 * config/i386/predicates.md (ext_sse_reg_operand): New.
17175 * config/i386/i386.md (*movti_internal): Use
17176 predicate to determine if EVEX is needed.
17177 (*movsi_internal): Ditto.
17178 (*movdf_internal): Ditto.
17179 (*movsf_internal): Ditto.
17180 * config/i386/mmx.md (*mov<mode>_internal): Ditto.
17182 2013-08-23 Jakub Jelinek <jakub@redhat.com>
17184 PR tree-optimization/58209
17185 * tree-tailcall.c (process_assignment): Handle POINTER_PLUS_EXPR.
17186 (find_tail_calls): Give up for pointer result types if m is non-NULL.
17187 (adjust_return_value_with_ops): For PLUS_EXPR and pointer result type
17188 emit POINTER_PLUS_EXPR.
17189 (create_tailcall_accumulator): For pointer result type accumulate in
17192 2013-08-22 Paolo Carlini <paolo.carlini@oracle.com>
17194 * configure.ac: Add backslashes missing from the last change.
17195 * configure: Regenerate.
17197 2013-08-22 Jan Hubicka <jh@susue.cz>
17199 * ipa.c (function_and_variable_visibility): First remember function
17200 was global and then make it local.
17202 2013-08-22 Julian Brown <julian@codesourcery.com>
17204 * configure.ac: Add aarch64 to list of arches which use "nop" in
17206 * configure: Regenerate.
17208 2013-08-22 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
17210 * config/s390/linux.h (TARGET_LIBC_HAS_FUNCTION): Define as
17211 gnu_libc_has_function.
17212 * config/s390/tpf.h: Likewise.
17214 2013-08-22 Jan Hubicka <jh@susue.cz>
17216 * timevar.c (validate_phases): Add cast.
17218 2013-08-22 Jan Hubicka <jh@susue.cz>
17220 * timevar.c (validate_phases): Use size_t for memory.
17221 * timevar.h (struct timevar_time_def): Use size_t for ggc_mem.
17223 2013-08-22 Gabriel Dos Reis <gdr@integrable-solutions.net>
17225 * pretty-print.h (output_buffer::output_buffer): Declare.
17226 (pretty_printer::pretty_printer): Likewise.
17227 (pp_construct): Remove.
17228 * pretty-print.c (output_buffer::output_buffer): Define.
17229 (pretty_printer::pretty_printer): Rename from pp_construct. Simplify.
17230 * gimple-pretty-print.c (print_gimple_stmt): Do not call pp_construct.
17231 (print_gimple_expr): Likewise.
17232 (print_gimple_seq): Likewise.
17233 (gimple_dump_bb): Likewise.
17234 * sched-vis.c (dump_value_slim): Likewise.
17235 (dump_insn_slim): Likewise.
17236 (dump_rtl_slim): Likewise.
17237 (str_pattern_slim): Likewise.
17238 * tree-mudflap.c (mf_varname_tree): Likewise.
17239 * graph.c (print_graph_cfg): Likewise.
17240 (start_graph_dump): Likewise.
17241 * tree-pretty-print.c (maybe_init_pretty_print): Likewise. Use
17243 * diagnostic.c (diagnostic_initialize): Simplify early diagnostic
17244 pretty printer initialization.
17245 * coretypes.h (diagnostic_context): Remove superflous type alias
17247 (pretty_printer): Likewise. Declare directly as a class.
17248 (pretty_print_info): Remove declaration as class.
17249 * asan.c (asan_emit_stack_protection): Remove call to pp_construct
17250 and pp_clear_output_area.
17251 (asan_add_global): Likewise.
17253 2013-08-22 Jan Hubicka <jh@suse.cz>
17255 * cgraphunit.c (analyze_functions) Use update_type_inheritance_graph.
17256 * ipa-utils.h (update_type_inheritance_graph): Declare.
17257 (possible_polymorphic_call_target_p): Declare.
17258 (possible_polymorphic_call_target_p): New.
17259 * ipa-devirt.c: Update toplevel comments.
17260 (cached_polymorphic_call_targets): Move up.
17261 (odr_type_d): Move ID down.
17262 (polymorphic_type_binfo_p): Update comment.
17263 (odr_hasher::remove): Likewise;
17264 (get_odr_type): Set anonymous_namespace.
17265 (dump_odr_type): Dump it.
17266 (dump_type_inheritance_graph): Do not ICE when there are no ODR types.
17267 (maybe_record_node): Record node in cached_polymorphic_call_targets.
17268 (record_binfo): Add comment.
17269 (free_polymorphic_call_targets_hash): Do not ICE when cache is not
17271 (devirt_node_removal_hook): Do not iCE when cache is freed.
17272 (possible_polymorphic_call_target_p): New predicate.
17273 (update_type_inheritance_graph): New function.
17275 2013-08-22 Alexander Ivchenko <alexander.ivchenko@intel.com>
17276 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
17277 Sergey Lega <sergey.s.lega@intel.com>
17278 Anna Tikhonova <anna.tikhonova@intel.com>
17279 Ilya Tocar <ilya.tocar@intel.com>
17280 Andrey Turetskiy <andrey.turetskiy@intel.com>
17281 Ilya Verbin <ilya.verbin@intel.com>
17282 Kirill Yukhin <kirill.yukhin@intel.com>
17283 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
17285 * common/config/i386/i386-common.c (OPTION_MASK_ISA_AVX512F_SET): New.
17286 (OPTION_MASK_ISA_AVX512CD_SET): Ditto.
17287 (OPTION_MASK_ISA_AVX512PF_SET): Ditto.
17288 (OPTION_MASK_ISA_AVX512ER_SET): Ditto.
17289 (OPTION_MASK_ISA_AVX2_UNSET): Update.
17290 (OPTION_MASK_ISA_AVX512F_UNSET): New.
17291 (OPTION_MASK_ISA_AVX512CD_UNSET): Ditto.
17292 (OPTION_MASK_ISA_AVX512PF_UNSET): Ditto.
17293 (OPTION_MASK_ISA_AVX512ER_UNSET): Ditto.
17294 (ix86_handle_option): Handle OPT_mavx512f, OPT_mavx512cd,
17295 OPT_mavx512pf, OPT_mavx512er cases.
17296 * config/i386/constraints.md (v): New constraint.
17297 (Yi, Yj): Replace SSE_REGS with ALL_SSE_REGS.
17298 * config/i386/cpuid.h (bit_AVX512F, bit_AVX512PF, bit_AVX512ER)
17299 (bit_AVX512CD): New.
17300 * config/i386/driver-i386.c (host_detect_local_cpu): Detect
17301 AVX512F, AVX512ER, AVX512PF, AVX512CD features.
17302 * config/i386/i386-c.c (ix86_target_macros_internal):
17303 Conditionally define __AVX512F__, __AVX512ER__, __AVX512CD__,
17305 * config/i386/i386-modes.def (VECTOR_MODES (INT, 128))
17306 (VECTOR_MODES (FLOAT, 128), INT_MODE (XI, 64)): New modes.
17307 * config/i386/i386.c (regclass_map, dbx_register_map)
17308 (dbx64_register_map, svr4_dbx_register_map): Add new SSE registers.
17309 (gate_insert_vzeroupper): Disable vzeroupper for TARGET_AVX512F.
17310 (ix86_target_string): Define -mavx512f, -mavx512er, -mavx512cd,
17311 -mavx512pf options.
17312 (ix86_option_override_internal): Define PTA_AVX512F, PTA_AVX512ER,
17313 PTA_AVX512PF, PTA_AVX512CD. Handle -mavx512f, -mavx512er, -mavx512cd,
17314 -mavx512pf options. Fix formatting.
17315 (ix86_conditional_register_usage): Squash EXT_REX_SSE_REGs for 32-bit
17316 targets. Squash EVEX_SSE_REGS if AVX512F is disabled.
17317 (ix86_valid_target_attribute_inner_p): Handle -mavx512f, -mavx512er,
17318 -mavx512cd, -mavx512pf options.
17319 (standard_sse_constant_opcode): Add vpternlogd for 512-bit modes.
17320 (print_reg, ix86_print_operand): Handle 'g' to output 512-bit operands.
17321 (ix86_preferred_output_reload_class): Replace SSE_REGS with
17323 (ix86_hard_regno_mode_ok): Support 512-bit registers.
17324 (ix86_set_reg_reg_cost): Ditto.
17325 (x86_order_regs_for_local_alloc): Ditto.
17326 (MAX_VECT_LEN): Extend to 64-byte.
17327 (ix86_spill_class): Replace SSE_REGS with ALL_SSE_REGS.
17328 * config/i386/i386.h (TARGET_AVX512F, TARGET_AVX512PF)
17329 (TARGET_AVX512ER, TARGET_AVX512CD): New.
17330 (BIGGEST_ALIGNMENT): Extend to 512-bits.
17331 (FIRST_PSEUDO_REGISTER, FIXED_REGISTERS): Add new registers.
17332 (CALL_USED_REGISTERS, REG_ALLOC_ORDER): Likewise.
17333 (VALID_AVX512F_SCALAR_MODE, VALID_AVX512F_REG_MODE): New.
17334 (SSE_REG_MODE_P): Support new modes.
17335 (FIRST_MMX_REG, FIRST_REX_INT_REG, FIRST_REX_SSE_REG): Add comments.
17336 (FIRST_EXT_REX_SSE_REG, LAST_EXT_REX_SSE_REG): New.
17337 (reg_class, REG_CLASS_NAMES): Add EVEX_SSE_REGS, ALL_SSE_REGS.
17338 (SSE_CLASS_P, MAYBE_SSE_CLASS_P): Replace SSE_REGS with ALL_SSE_REGS.
17339 (REG_CLASS_CONTENTS): Add new registers.
17340 (SSE_REGNO_P, SSE_REGNO, HARD_REGNO_RENAME_OK): Support new registers.
17341 (EXT_REX_SSE_REGNO_P): New.
17342 (HI_REGISTER_NAMES): Add new registers.
17343 * config/i386/i386.md: Define constants for new registers.
17344 (mode): Add new 512-bit modes.
17345 (prefix): Support evex prefix.
17346 (isa): Support avx512f, noavx512f, fma_avx512f.
17347 (ssemodesuffix): Add new 512-bit modes.
17349 (*movxi_internal_avx512f): Ditto.
17350 (*movdi_internal): Replace constraint "x" with the new constraint "v".
17352 (*movsi_internal): Likewise.
17353 (*movdf_internal): Likewise.
17354 (*movsf_internal): Likewise.
17355 (*fop_<mode>_comm_sse): Replace constraint "x" with new constraint "v".
17356 (<code><mode>3): Likewise.
17357 * config/i386/i386.opt (mavx512f, mavx512pf, mavx512er, mavx512cd):
17359 * config/i386/mmx.md (*mov<mode>_internal): Replace constraint "x"
17360 with the new constraint "v".
17361 * config/i386/sse.md (*mov<mode>_internal): Support new registers and
17363 (<sse>_loadu<ssemodesuffix><avxsizesuffix>): Replace constraint "x"
17364 with the new constraint "v".
17365 (<sse2>_loaddqu<avxsizesuffix>): Likewise.
17366 (<sse2>_storedqu<avxsizesuffix>): Likewise.
17367 (*<plusminus_insn><mode>3): Likewise.
17368 (<sse>_vm<plusminus_insn><mode>3): Likewise.
17369 (*mul<mode>3): Likewise.
17370 (<sse>_vmmul<mode>3): Likewise.
17371 (<sse>_div<mode>3): Likewise.
17372 (<sse>_vmdiv<mode>3): Likewise.
17373 (<sse>_sqrt<mode>2): Likewise.
17374 (<sse>_vmsqrt<mode>2): Likewise.
17375 (*<code><mode>3_finite): Likewise.
17376 (*<code><mode>3) <smaxmin>: Likewise.
17377 (<sse>_vm<code><mode>3): Likewise.
17378 (*<code><mode>3) <any_logic>: Likewise.
17379 (*fma_fmadd_<mode>): Likewise.
17380 (*fma_fmsub_<mode>): Likewise.
17381 (*fma_fnmadd_<mode>): Likewise.
17382 (*fma_fnmsub_<mode>): Likewise.
17383 (*fma_fmaddsub_<mode>): Likewise.
17384 (*fma_fmsubadd_<mode>): Likewise.
17385 (*fmai_fmadd_<mode>): Likewise.
17386 (*fmai_fmsub_<mode>): Likewise.
17387 (*fmai_fnmadd_<mode>): Likewise.
17388 (*fmai_fnmsub_<mode>): Likewise.
17389 (sse_cvtsi2ss): Likewise.
17390 (sse_cvtsi2ssq): Likewise.
17391 (sse_cvtss2si): Likewise.
17392 (sse_cvtss2si_2): Likewise.
17393 (sse_cvtss2siq): Likewise.
17394 (sse_cvtss2siq_2): Likewise.
17395 (sse_cvttss2si): Likewise.
17396 (sse_cvtss2siq_2): Likewise.
17397 (float<sseintvecmodelower><mode>2): Likewise.
17398 (sse2_cvtsd2si_2): Likewise.
17399 (sse2_cvtsd2siq_2): Likewise.
17400 (*<plusminus_insn><mode>3): Likewise.
17401 (*<sse2_avx2>_<plusminus_insn><mode>3): Likewise.
17402 (*<sse4_1_avx2>_mul<mode>3): Likewise.
17403 (ashr<mode>3): Likewise.
17404 (<shift_insn><mode>3): Likewise.
17405 (avx2_<code><mode>3): Likewise.
17406 (*avx2_<code><mode>3): Likewise.
17407 (*andnot<mode>3): Likewise.
17408 (*<code><mode>3) <any_logic>: Likewise.
17409 (abs<mode>2): Likewise.
17410 (avx2_permvar<mode>): Likewise.
17411 (avx2_perm<mode>_1): Likewise.
17412 (*avx_vpermilp<mode>): Likewise.
17413 (avx_vpermilvar<mode>3): Likewise.
17414 (avx2_ashrv<mode>): Likewise.
17415 (avx2_<shift_insn>v<mode>): Likewise.
17416 * doc/invoke.texi: Document -mavx512f, -mavx512pf, -mavx512er,
17418 * doc/rtl.texi: Document XImode.
17420 2013-08-21 Jeff Law <law@redhat.com>
17422 * tree-flow.h (register_jump_thread): Pass vector of edges
17423 instead of each important edge.
17424 * tree-ssa-threadedge.c (thread_across_edge): Build the jump
17425 thread path into a vector and pass that to register_jump_thread.
17426 * tree-ssa-threadupdate.c (register_jump_thread): Conver the
17427 passed in edge vector to the current 3-edge form.
17430 2013-08-20 Alexey Makhalov <makhaloff@gmail.com>
17432 * dce.c (fini_dce): Call df_analyze again just in case
17433 delete_unmarked_insns removed anything.
17435 2013-08-21 Joern Rennecke <joern.rennecke@embecosm.com>
17437 * reload.h (struct reg_equivs): Rename to ..
17438 (struct reg_equivs_s): .. this.
17440 2013-08-20 Martin Liska <marxin.liska@gmail.com>
17442 * ipa.c (ipa_profile_read_summary): Fix buffer overflow.
17444 2013-08-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
17446 * config/sol2-10.h (TARGET_LIBC_HAS_FUNCTION): Don't nest comment.
17448 2013-08-21 Jeff Law <law@redhat.com>
17450 * tree-vrp.c (simplify_stmt_for_jump_threading): Try to
17451 simplify assignments too. If the RHS collapses to a singleton
17452 range, then return the value for the range.
17454 2013-08-21 Kirill Yukhin <kirill.yukhin@intel.com>
17456 * config/i386/sse.md (V16): Rename to...
17458 (mov<mode>): Update iterator name.
17459 (*mov<mode>_internal): Ditto.
17460 (push<mode>1): Ditto.
17461 (movmisalign<mode>): Ditto.
17463 2013-08-20 Jan Hubicka <jh@suse.cz>
17466 * cgraph.c (cgraph_add_edge_to_call_site_hash): Overwrite hash
17467 entry for direct edges.
17468 (cgraph_turn_edge_to_speculative): Fix setting of can_throw_external.
17470 2013-08-20 David Malcolm <dmalcolm@redhat.com>
17472 Revert my last two changes, r201865 and r201864:
17475 2013-08-20 David Malcolm <dmalcolm@redhat.com>
17477 Make opt_pass and gcc::pass_manager be GC-managed, so that pass
17478 instances can own GC refs.
17480 * Makefile.in (GTFILES): Add pass_manager.h and tree-pass.h.
17481 * context.c (gcc::context::gt_ggc_mx): Traverse passes_.
17482 (gcc::context::gt_pch_nx): Likewise.
17483 (gcc::context::gt_pch_nx): Likewise.
17484 * ggc.h (gt_ggc_mx <T>): New.
17485 (gt_pch_nx_with_op <T>): New.
17486 (gt_pch_nx <T>): New.
17487 * passes.c (opt_pass::gt_ggc_mx): New.
17488 (opt_pass::gt_pch_nx): New.
17489 (opt_pass::gt_pch_nx_with_op): New.
17490 (pass_manager::gt_ggc_mx): New.
17491 (pass_manager::gt_pch_nx): New.
17492 (pass_manager::gt_pch_nx_with_op): New.
17493 (pass_manager::operator new): Use
17494 ggc_internal_cleared_alloc_stat rather than xcalloc.
17495 * pass_manager.h (class pass_manager): Add GTY((user)) marking.
17496 (pass_manager::gt_ggc_mx): New.
17497 (pass_manager::gt_pch_nx): New.
17498 (pass_manager::gt_pch_nx_with_op): New.
17499 * tree-pass.h (class opt_pass): Add GTY((user)) marking.
17500 (opt_pass::operator new): New.
17501 (opt_pass::gt_ggc_mx): New.
17502 (opt_pass::gt_pch_nx): New.
17503 (opt_pass::gt_pch_nx_with_op): New.
17506 2013-08-20 David Malcolm <dmalcolm@redhat.com>
17508 * Makefile.in (GTFILES): Add context.h.
17509 * context.c (gcc::context::operator new): New.
17510 (gcc::context::gt_ggc_mx): New.
17511 (gcc::context::gt_pch_nx): New.
17512 (gcc::context::gt_pch_nx): New.
17513 * context.h (gcc::context): Add GTY((user)) marking.
17514 (gcc::context::operator new): New.
17515 (gcc::context::gt_ggc_mx): New.
17516 (gcc::context::gt_pch_nx): New.
17517 (gcc::context::gt_pch_nx): New.
17518 (g): Add GTY marking.
17519 (gt_ggc_mx (gcc::context *)): New.
17520 (gt_pch_nx (gcc::context *)): New.
17521 (gt_pch_nx (gcc::context *ctxt, gt_pointer_operator op,
17522 void *cookie)): New.
17523 * gengtype.c (open_base_files) <ifiles>: Add context.h.
17525 2013-08-20 Alexey Makhalov <makhaloff@gmail.com>
17527 * dce.c (fini_dce): Call df_analyze again just in case
17528 delete_unmarked_insns removed anything.
17530 2013-08-20 Teresa Johnson <tejohnson@google.com>
17532 PR rtl-optimizations/57451
17533 * final.c (reemit_insn_block_notes): Prevent lexical blocks
17534 from crossing split section boundaries.
17536 2013-08-20 Matthew Gretton-Dann <matthew.gretton-dann@linaro.org>
17538 * config/arm/linux-elf.h (MULTILIB_DEFAULTS): Remove definition.
17539 * config/arm/t-linux-eabi (MULTILIB_OPTIONS): Document association
17540 with MULTLIB_DEFAULTS.
17542 2013-08-20 Nick Clifton <nickc@redhat.com>
17544 * target.def (narrow_volatile_bitfield): Note that the default
17545 value is false, not !TARGET_STRICT_ALIGN.
17546 * doc/tm.texi: Regenerate.
17548 2013-08-20 Pavel Chupin <pavel.v.chupin@intel.com>
17550 Fix LIB_SPEC for systems without libpthread.
17552 * config/gnu-user.h: Introduce GNU_USER_TARGET_NO_PTHREADS_LIB_SPEC.
17553 * config/arm/linux-eabi.h: Use GNU_USER_TARGET_NO_PTHREADS_LIB_SPEC
17555 * config/i386/linux-common.h: Likewise.
17556 * config/mips/linux-common.h: Likewise.
17558 2013-08-20 Zhouyi Zhou <yizhouzhou@ict.ac.cn>
17560 * tree-ssa-ccp.c (get_default_value): Remove redundant condition
17563 2013-08-20 David Malcolm <dmalcolm@redhat.com>
17565 Make opt_pass and gcc::pass_manager be GC-managed, so that pass
17566 instances can own GC refs.
17568 * Makefile.in (GTFILES): Add pass_manager.h and tree-pass.h.
17569 * context.c (gcc::context::gt_ggc_mx): Traverse passes_.
17570 (gcc::context::gt_pch_nx): Likewise.
17571 (gcc::context::gt_pch_nx): Likewise.
17572 * ggc.h (gt_ggc_mx <T>): New.
17573 (gt_pch_nx_with_op <T>): New.
17574 (gt_pch_nx <T>): New.
17575 * passes.c (opt_pass::gt_ggc_mx): New.
17576 (opt_pass::gt_pch_nx): New.
17577 (opt_pass::gt_pch_nx_with_op): New.
17578 (pass_manager::gt_ggc_mx): New.
17579 (pass_manager::gt_pch_nx): New.
17580 (pass_manager::gt_pch_nx_with_op): New.
17581 (pass_manager::operator new): Use
17582 ggc_internal_cleared_alloc_stat rather than xcalloc.
17583 * pass_manager.h (class pass_manager): Add GTY((user)) marking.
17584 (pass_manager::gt_ggc_mx): New.
17585 (pass_manager::gt_pch_nx): New.
17586 (pass_manager::gt_pch_nx_with_op): New.
17587 * tree-pass.h (class opt_pass): Add GTY((user)) marking.
17588 (opt_pass::operator new): New.
17589 (opt_pass::gt_ggc_mx): New.
17590 (opt_pass::gt_pch_nx): New.
17591 (opt_pass::gt_pch_nx_with_op): New.
17593 2013-08-20 David Malcolm <dmalcolm@redhat.com>
17595 * Makefile.in (GTFILES): Add context.h.
17596 * context.c (gcc::context::operator new): New.
17597 (gcc::context::gt_ggc_mx): New.
17598 (gcc::context::gt_pch_nx): New.
17599 (gcc::context::gt_pch_nx): New.
17600 * context.h (gcc::context): Add GTY((user)) marking.
17601 (gcc::context::operator new): New.
17602 (gcc::context::gt_ggc_mx): New.
17603 (gcc::context::gt_pch_nx): New.
17604 (gcc::context::gt_pch_nx): New.
17605 (g): Add GTY marking.
17606 (gt_ggc_mx (gcc::context *)): New.
17607 (gt_pch_nx (gcc::context *)): New.
17608 (gt_pch_nx (gcc::context *ctxt, gt_pointer_operator op,
17609 void *cookie)): New.
17610 * gengtype.c (open_base_files) <ifiles>: Add context.h.
17612 2013-08-20 Alan Modra <amodra@gmail.com>
17615 * config/rs6000/rs6000.c (rs6000_emit_prologue): Correct ool_adjust.
17616 (rs6000_emit_epilogue): Likewise.
17618 2013-08-19 Dehao Chen <dehao@google.com>
17620 * value-prof.c (gimple_ic): Fix the bug of adding EH edge.
17622 2013-08-19 Peter Bergner <bergner@vnet.ibm.com>
17623 Jakub Jelinek <jakub@redhat.com>
17625 * builtins.def (BUILT_IN_FABSD32): New DFP ABS builtin.
17626 (BUILT_IN_FABSD64): Likewise.
17627 (BUILT_IN_FABSD128): Likewise.
17628 * builtins.c (expand_builtin): Add support for new DFP ABS builtins.
17629 (fold_builtin_1): Likewise.
17630 * config/rs6000/dfp.md (*negtd2_fpr): Handle non-overlapping
17631 destination and source operands.
17632 (*abstd2_fpr): Likewise.
17633 (*nabstd2_fpr): Likewise.
17635 2013-08-19 Richard Sandiford <rdsandiford@googlemail.com>
17637 * config/mips/mips.c (mips_adjust_insn_length): Add checks for
17640 2013-08-19 Aldy Hernandez <aldyh@redhat.com>
17642 * doc/invoke.texi (-fcilkplus): Clarify that implementation is
17645 2013-08-19 Alexander Ivchenko <alexander.ivchenko@intel.com>
17647 * target.def (TARGET_LIBC_HAS_FUNCTION): New target hook.
17648 * builtins.c (default_libc_has_function): New.
17649 (gnu_libc_has_function): Ditto.
17650 (no_c99_libc_has_function): Ditto.
17651 (expand_builtin_cexpi): Using new target hook TARGET_LIBC_HAS_FUNCTION
17652 instead of TARGET_HAS_SINCOS and TARGET_C99_FUNCTIONS.
17653 (fold_builtin_sincos): Likewise.
17654 (fold_builtin_cexp): Likewise.
17655 * builtins.def (DEF_C94_BUILTIN): Likewise.
17656 (DEF_C99_BUILTIN): Likewise.
17657 (DEF_C99_C90RES_BUILTIN): Likewise.
17658 (DEF_C99_COMPL_BUILTIN): New define. Change all complex c99 builtin
17659 definitions to using this define.
17660 * config/darwin-protos.h (darwin_libc_has_function): New.
17661 * config/darwin.c (darwin_libc_has_function): Ditto.
17662 * config/alpha/linux.h: Remove TARGET_C99_FUNCTIONS and
17663 TARGET_HAS_SINCOS. Redefine TARGET_LIBC_HAS_FUNCTION.
17664 * config/darwin.h: Ditto.
17665 * config/elfos.h: Ditto.
17666 * config/freebsd.h: Ditto.
17667 * config/i386/cygming.h: Ditto.
17668 * config/i386/djgpp.h: Ditto.
17669 * config/i386/i386-interix.h: Ditto.
17670 * config/microblaze/microblaze.h: Ditto.
17671 * config/mmix/mmix.h: Ditto.
17672 * config/gnu-user.h: Ditto.
17673 * config/ia64/hpux.h: Ditto.
17674 * config/pa/pa-hpux.h: Ditto.
17675 * config/pdp11/pdp11.h: Ditto.
17676 * config/picochip/picochip.h: Ditto.
17677 * config/linux.h: Ditto.
17678 * config/netbsd.h: Ditto.
17679 * config/openbsd.h: Ditto.
17680 * config/rs6000/aix43.h: Ditto.
17681 * config/rs6000/aix51.h: Ditto.
17682 * config/rs6000/aix52.h: Ditto.
17683 * config/rs6000/aix53.h: Ditto.
17684 * config/rs6000/aix61.h: Ditto.
17685 * config/rs6000/darwin.h: Ditto.
17686 * config/rs6000/linux.h: Ditto.
17687 * config/rs6000/linux64.h: Ditto.
17688 * config/s390/tpf.h: Ditto.
17689 * config/sol2-10.h: Ditto.
17690 * config/sol2.h: Ditto.
17691 * config/vms/vms.h: Ditto.
17692 * config/vxworks.h: Ditto.
17693 * config/linux-android.c (linux_android_libc_has_function):
17694 New linux-specific implementation of TARGET_LIBC_HAS_FUNCTION.
17695 * config/linux-protos.h (linux_android_libc_has_function):
17697 * config/i386/i386.c (ix86_libc_has_function): New.
17698 * config/i386/i386-protos.h
17699 (ix86_libc_has_function): New declaration.
17700 * config/i386/i386.md
17701 ("isinfxf2"): Change condition for TARGET_LIBC_HAS_FUNCTION.
17702 ("isinf<mode>2): Likewise.
17703 * convert.c (convert_to_integer): Using new target hook
17704 TARGET_LIBC_HAS_FUNCTION istead of TARGET_HAS_SINCOS and
17705 TARGET_C99_FUNCTIONS.
17706 * fortran/f95-lang.c (gfc_init_builtin_functions): Ditto.
17707 * tree-ssa-math-opts.c (execute_cse_sincos): Ditto.
17708 * coretypes.h (function_class): New enum for different
17709 classes of functions.
17710 * defaults.h: Remove TARGET_C99_FUNCTIONS and TARGET_HAS_SINCOS.
17711 * doc/tm.texi.in (TARGET_C99_FUNCTIONS): Remove documentation.
17712 (TARGET_HAS_SINCOS): Likewise.
17713 (TARGET_LIBC_HAS_FUNCTION): New.
17714 * doc/tm.texi: Regenerated.
17715 * targhooks.h (default_libc_has_function): New declaration.
17716 (no_c99_libc_has_function): Ditto.
17717 (gnu_libc_has_function): Ditto.
17718 * system.h: Add the poisoning of TARGET_C99_FUNCTIONS
17719 and TARGET_HAS_SINCOS.
17721 2013-08-18 Jan Hubicka <jh@suse.cz>
17723 * Makeifle-in (ipa-devirt.o): New.
17724 (GTFILES): Add ipa-utils.h and ipa-devirt.c
17725 * cgraphunit.c (decide_is_symbol_needed): Do not care about virtuals.
17726 (analyze_functions): Look into possible targets of polymorphic call.
17727 * dumpfile.c (dump_files): Add type-inheritance dump.
17728 * dumpfile.h (TDI_inheritance): New.
17729 * ipa-devirt.c: New file.
17730 * ipa-utils.h (odr_type_d): Forward declare.
17731 (odr_type): New type.
17732 (build_type_inheritance_graph): Declare.
17733 (possible_polymorphic_call_targets): Declare and introduce inline
17734 variant when only edge is pased.
17735 (dump_possible_polymorphic_call_targets): Likewise.
17736 * timevar.def (TV_IPA_INHERITANCE, TV_IPA_VIRTUAL_CALL): New.
17737 * tree.c (type_in_anonymous_namespace_p): Break out from ...
17738 (types_same_for_odr): ... here.
17739 * tree.h (type_in_anonymous_namespace_p): Declare.
17741 2013-08-18 Jakub Jelinek <jakub@redhat.com>
17743 PR tree-optimization/58006
17744 * tree-parloops.c (take_address_of): Don't ICE if get_name
17746 (eliminate_local_variables_stmt): Remove clobber stmts.
17748 2013-08-18 Eric Botcazou <ebotcazou@adacore.com>
17750 * cgraphunit.c (handle_alias_pairs): Reset the alias flag after the
17751 error message is issued for an alias to undefined symbol.
17753 2013-08-18 Jan Hubicka <jh@suse.cz>
17755 * cgraph.c (cgraph_create_indirect_edge): Discover
17756 polymorphic calls and record basic info into indirect_info.
17757 * gimple-fold.c (gimple_fold_call): When doing BINFO based
17758 devirtualization, ignore objc function calls.
17759 * ipa-cp.c (initialize_node_lattices): Be ready for polymorphic
17760 call with no parm index info.
17761 * ipa-prop.c (ipa_analyze_call_uses): Likewise.
17762 * tree.c (virtual_method_call_p): New function.
17763 * tree.h (virtual_method_call_p): Declare.
17765 2013-08-16 Jan Hubicka <jh@suse.cz>
17767 PR middle-end/58179
17768 * tree.c (obj_type_ref_class): Do not ICE on non-method calls.
17770 2013-08-16 David Edelsohn <dje.gcc@gmail.com>
17772 * config/rs6000/rs6000.md (rs6000_get_timebase_ppc32): Add length
17775 2013-08-16 David Malcolm <dmalcolm@redhat.com>
17777 * gengtype.c (type_for_name): Add special-case support for
17778 locating types within the "gcc::" namespace.
17779 (open_base_files): Emit a "using namespace gcc" directive.
17781 2013-08-16 Michael Meissner <meissner@linux.vnet.ibm.com>
17784 * config/rs6000/predicates.md (fusion_gpr_mem_load): Allow the
17785 memory rtx to contain ZERO_EXTEND and SIGN_EXTEND.
17787 * config/rs6000/rs6000-protos.h (fusion_gpr_load_p): Pass operands
17788 array instead of each individual operand as a separate argument.
17789 (emit_fusion_gpr_load): Likewise.
17790 (expand_fusion_gpr_load): Add new function declaration.
17792 * config/rs6000/rs6000.c (fusion_gpr_load_p): Change the calling
17793 signature to have the operands passed as an array, instead of as
17794 separate arguments. Allow ZERO_EXTEND to be in the memory
17795 address, and also SIGN_EXTEND if -mpower8-fusion-sign. Do not
17796 depend on the register live/dead flags when peepholes are run.
17797 (expand_fusion_gpr_load): New function to be called from the
17798 peephole2 pass, to change the register that addis sets to be the
17800 (emit_fusion_gpr_load): Change the calling signature to have the
17801 operands passed as an array, instead of as separate arguments.
17802 Allow ZERO_EXTEND to be in the memory address, and also
17803 SIGN_EXTEND if -mpower8-fusion-sign.
17805 * config/rs6000/rs6000.md (UNSPEC_FUSION_GPR): Delete unused
17806 unspec enumeration.
17807 (power8 fusion peephole/peephole2): Rework the fusion peepholes to
17808 adjust the register addis loads up in the peephole2 pass. Do not
17809 depend on the register live/dead state when the peephole pass is done.
17811 2013-08-16 David Malcolm <dmalcolm@redhat.com>
17813 * gengtype.c (create_user_defined_type): Ensure that the kind
17814 is set to TYPE_USER_STRUCT, fixing a bug seen when an incomplete
17815 declaration is seen before the GTY((user)) marking.
17817 2013-08-16 Bernd Edlinger <bernd.edlinger@hotmail.de>
17820 * config/i386/i386.c (make_resolver_func): Set DECL_UNINLINABLE.
17822 2013-08-16 Jan Hubicka <jh@suse.cz>
17824 * gimple-fold.c (gimple_extract_devirt_binfo_from_cst): Add new
17825 arugment expected_type.
17826 (gimple_fold_call): Use it.
17827 * gimple.h (gimple_extract_devirt_binfo_from_cst): Update prototype.
17828 * ipa-cp.c (ipa_get_indirect_edge_target_1): Update.
17829 * ipa-prop.c (ipa_analyze_virtual_call_uses): Use obj_type_ref_class.
17830 (try_make_edge_direct_virtual_call): Likewise.
17831 * tree.c (obj_type_ref_class): New.
17832 * tree.h (obj_type_ref_class): Use it.
17834 2013-08-16 Gabriel Dos Reis <gdr@integrable-solutions.net>
17836 * sched-vis.c (rtl_slim_pp_initialized): Remove.
17837 (rtl_slim_pp): Likewise.
17838 (init_rtl_slim_pretty_print): Likewise.
17839 (dump_value_slim): Don't call it. Use local pretty printer.
17840 (dump_insn_slim): Likewise.
17841 (dump_rtl_slim): Likewise.
17842 (str_pattern_slim): Likewise.
17843 * tree-mudflap.c (mf_varname_tree): Use local pretty printer.
17846 2013-08-16 Jakub Jelinek <jakub@redhat.com>
17848 PR tree-optimization/58164
17849 * gimple.c (walk_stmt_load_store_addr_ops): For visit_addr
17850 walk gimple_goto_dest of GIMPLE_GOTO.
17852 PR tree-optimization/58165
17853 * tree-call-cdce.c (shrink_wrap_one_built_in_call): If
17854 bi_call must be the last stmt in a bb, don't split_block, instead
17855 use fallthru edge from it and give up if there is none.
17856 Release conds vector when returning early.
17858 2013-08-14 Xinliang David Li <davidxl@google.com>
17860 * config/i386/i386.c (ix86_option_override_internal):
17861 Remove unused variable and field.
17863 2013-08-14 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
17866 * doc/invoke.texi: Add documentation of mcompat-align-parm option.
17867 * config/rs6000/rs6000.opt: Add mcompat-align-parm option.
17868 * config/rs6000/rs6000.c (rs6000_function_arg_boundary): For AIX
17869 and Linux, correct BLKmode alignment when 128-bit alignment is
17870 required and compatibility flag is not set.
17871 (rs6000_gimplify_va_arg): For AIX and Linux, honor specified alignment
17872 for zero-size arguments when compatibility flag is not set.
17874 2013-08-14 Jakub Jelinek <jakub@redhat.com>
17876 PR tree-optimization/58145
17877 * tree-sra.c (build_ref_for_offset): If prev_base has
17878 TREE_THIS_VOLATILE or TREE_SIDE_EFFECTS, propagate it to MEM_REF.
17880 2013-08-14 Xinliang David Li <davidxl@google.com>
17882 * config/i386/i386.c (ix86_option_override_internal):
17883 Fix uninitialized variable error.
17885 2013-08-14 Xinliang David Li <davidxl@google.com>
17887 * config/i386/i386.opt: Define two new options.
17888 * config/i386/x86-tune.def: Add arch selector field in macros.
17889 * config/i386/i386.h: Adjust macro definition.
17890 * config/i386/i386.c (ix86_option_override_internal):
17892 (parse_mtune_ctrl_str): New function.
17893 (set_ix86_tune_features): New function.
17894 (ix86_function_specific_restore): Call the new helper function.
17896 2013-08-14 Andrey Belevantsev <abel@ispras.ru>
17898 PR rtl-optimization/57662
17899 * sel-sched.c (code_motion_process_successors): When the current insn
17900 is removed after the recursive traversal, break from the loop.
17901 Add comments and debug printouts.
17903 2013-08-14 Jakub Jelinek <jakub@redhat.com>
17904 Alexandre Oliva <aoliva@redhat.com>
17907 * config/i386/i386.c (ix86_delegitimize_address): For CM_MEDIUM_PIC
17908 and CM_LARGE_PIC ix86_cmodel fall thru into the -m32 code, handle
17909 there also UNSPEC_PLTOFF.
17911 2013-08-14 Marek Polacek <polacek@redhat.com>
17913 * ipa-inline-analysis.c (add_clause): Avoid shifting integer
17914 NUM_CONDITIONS bit positions.
17916 2013-08-13 Cary Coutant <ccoutant@google.com>
17918 * dwarf2out.c (CHECKSUM_BLOCK): New macro.
17919 (attr_checksum): Hash vector contents instead of pointer.
17920 (attr_checksum_ordered): Likewise.
17922 2013-08-13 Uros Bizjak <ubizjak@gmail.com>
17924 * config/i386/sse.md (*sse2_maskmovdqu): Emit addr32 prefix
17925 when Pmode != word_mode. Add length_address attribute.
17926 (sse3_monitor_<mode>): Merge from sse3_monitor and
17927 sse3_monitor64_<mode> insn patterns. Emit addr32 prefix when
17928 Pmode != word_mode. Update insn length attribute.
17929 * config/i386/i386.c (ix86_option_override_internal): Update
17930 ix86_gen_monitor selection for merged sse3_monitor insn.
17932 2013-08-13 Julian Brown <julian@codesourcery.com>
17934 * config/rs6000/rs6000.c (rs6000_legitimize_reload_address): Don't
17935 perform invalid legitimization on greater-than-word-size modes for
17936 TARGET_E500_DOUBLE.
17938 2013-08-13 Vladimir Makarov <vmakarov@redhat.com>
17940 * ira.c (setup_class_translate_array): Use aclass instead of cl
17941 for classes not fully covered by allocno classes.
17943 2013-08-13 Jakub Jelinek <jakub@redhat.com>
17945 PR tree-optimization/57661
17946 * tree-inline.h (struct copy_body_data): Add blocks_to_copy field.
17947 * tree-inline.c (tree_function_versioning): Initialize it.
17948 (remap_gimple_stmt): Return GIMPLE_NOP for MEM_REF lhs clobber stmts
17949 if id->blocks_to_copy and MEM_REF's SSA_NAME is defined in a block
17950 that is not being copied.
17953 * asan.c (instrument_strlen_call): Fix typo in comment.
17954 Use char * type even for the lhs of POINTER_PLUS_EXPR.
17956 2013-08-13 Steve Ellcey <sellcey@mips.com>
17958 * config/mips/mips.md (prefetch): Use lw instead of ld on
17959 loongson in 32bit mode.
17961 2013-08-13 Nick Clifton <nickc@redhat.com>
17963 * config.gcc: (avr-linux): Allow for tmake_file not being empty.
17965 2013-08-13 Jan Hubicka <jh@suse.cz>
17967 * cgraph.c (cgraph_turn_edge_to_speculative): Return newly
17968 introduced edge; fix typo in sanity check.
17969 (cgraph_resolve_speculation): Export; improve diagnostic.
17970 (cgraph_redirect_edge_call_stmt_to_callee): Better diagnostic; cancel
17971 speculation at type mismatch.
17972 * cgraph.h (cgraph_turn_edge_to_speculative): Update.
17973 (cgraph_resolve_speculation): Declare.
17974 (symtab_can_be_discarded): New function.
17975 * value-prof.c (gimple_ic_transform): Remove actual transform code.
17976 * ipa-inline-transform.c (speculation_removed): New global var.
17977 (clone_inlined_nodes): See if speculation can be removed.
17978 (inline_call): If speculations was removed, we growths may not match.
17979 * ipa-inline.c (can_inline_edge_p): Add DISREGARD_LIMITS parameter.
17980 (speculation_useful_p): New function.
17981 (resolve_noninline_speculation): New function.
17982 (inline_small_functions): Resolve useless speculations.
17983 * ipa-inline.h (speculation_useful_p): Declare
17984 * ipa.c (can_replace_by_local_alias): Simplify.
17985 (ipa_profile): Produce speculative calls in non-lto, too;
17986 add simple cost model; produce local aliases.
17988 2013-08-13 David Malcolm <dmalcolm@redhat.com>
17990 * config/i386/t-i386 (i386.o): Rename stray PIPELINE_H to
17993 2013-08-12 Paolo Carlini <paolo.carlini@oracle.com>
17995 * config/i386/i386.c (ix86_function_versions): Use error + inform.
17997 2013-08-12 Uros Bizjak <ubizjak@gmail.com>
17999 * config/i386/i386.md (floatunssi<mode>2 expand): Use MODEF mode
18000 iterator instead of X87MODEF.
18002 2013-08-12 Perez Read <netfirewall@gmail.com>
18005 * config/i386/i386.md (*movabs<mode>_1): Add <ptrsize> PTR before
18006 operand 0 for intel asm alternative.
18007 (*movabs<mode>_2): Ditto for operand 1.
18009 2013-08-12 James Greenhalgh <james.greenhalgh@arm.com>
18011 * config/aarch64/arm_none.h
18012 (vdup<bhsd>_lane_<su><8,16,32,64>): Fix macro call.
18014 2013-08-12 Nick Clifton <nickc@redhat.com>
18016 * config.gcc (m32r-linux): Allow for tmake_file not being empty.
18018 2013-08-12 Yuri Rumyantsev <ysrumyan@gmail.com>
18020 * config/i386/i386.md (floatunssi<mode>2 expand): Add new
18021 expand for QI/HImode operand to produce more effictive code for
18022 unsigned char(short) --> float(double) conversion.
18024 2013-08-12 Alexander Monakov <amonakov@ispras.ru>
18026 * doc/invoke.texi: Mention that -ftls-model does not force the final
18029 2013-08-12 Marek Polacek <polacek@redhat.com>
18030 Marc Glisse <marc.glisse@inria.fr>
18032 PR tree-optimization/57980
18033 * tree-tailcall.c (process_assignment): Call build_minus_one_cst
18034 when creating -1 constant.
18036 2013-08-10 Jan Hubicka <jh@suse.cz>
18038 Workaround binutils PR14342.
18039 * tree-profile.c (init_ic_make_global_vars): Add LTO path.
18040 (gimple_init_edge_profiler): Likewise.
18041 (gimple_gen_ic_func_profiler): Likewise.
18043 2013-08-09 Jan Hubicka <jh@suse.cz>
18045 * cgraph.c (cgraph_create_edge_1): Clear speculative flag.
18047 2013-08-09 Xinliang David Li <davidxl@google.com>
18049 * config/i386/stringop.def: New file.
18050 * config/i386/stringop.opt: New file.
18051 * config/i386/i386-opts.h: Include stringopt.def.
18052 * config/i386/i386.opt: Include stringopt.opt.
18053 * config/i386/i386.c (ix86_option_override_internal):
18054 Override default size based stringop inline strategies with options.
18055 * config/i386/i386.c (ix86_parse_stringop_strategy_string):
18058 2013-08-09 Jan Hubicka <jh@suse.cz>
18060 * ipa-ref.c (ipa_clear_stmts_in_references): Clear lto_stmt_uid, too.
18062 2013-08-09 Jan Hubicka <jh@suse.cz>
18064 * cgraph.c (cgraph_resolve_speculation): Cut frequency to
18066 (dump_cgraph_node): Dump profile-id.
18067 * cgraph.h (cgraph_indirect_call_info): Add common_target_id
18068 and common_target_probability.
18069 * lto-cgraph.c (lto_output_edge): Stream common targets.
18070 (lto_output_node): Stream profile ids.
18071 (input_node): Stream profile ids.
18072 (input_edge): Stream common targets.
18073 * lto-streamer-in.c (fixup_call_stmt_edges_1): Fix formatting.
18074 * ipa.c: Include value-prof.h
18075 (ipa_profile_generate_summary): Turn indirect call statement histograms
18076 into common targets.
18077 (ipa_profile): Turn common targets into speculative edges.
18079 2013-08-09 Jan Hubicka <jh@suse.cz>
18081 * cgraph.h (cgraph_node): Add profile_id.
18082 * value-prof.c (cgraph_node_map): Turn into pointer_map.
18083 (init_node_map): Rewrite to handle hashes increas of incremental IDs.
18084 (del_node_map): Update.
18085 (find_func_by_funcdef_no): Replace by ...
18086 (find_func_by_profile_id): ... this one.
18087 (gimple_ic_transform): Do not remove useful histograms when
18088 speculation is not done; dump info when indirect call removal
18090 * value-prof.h (find_func_by_profile_id, gimple_ic): Declare.
18091 * gcov-io.h (__gcov_indirect_call_profiler): Replace by ...
18092 (__gcov_indirect_call_profiler_v2): .. this one.
18093 * profile.h (init_node_map): Update.
18094 * coverage.c (coverage_compute_profile_id): New function.
18095 * coverage.h (coverage_compute_profile_id): Declare.
18096 * tree-profile.c (init_ic_make_global_vars): Make
18097 __gcov_indirect_call_callee and __gcov_indirect_call_counters global.
18098 (gimple_init_edge_profiler): Update prototype of
18099 __gcov_indirect_call_profiler.
18100 (gimple_gen_ic_func_profiler): Simplify.
18101 (tree_profiling): Use init_node_map
18103 2013-08-09 Jan Hubicka <jh@suse.cz>
18105 * cgraphbuild.c (cgraph_rebuild_references): Rebuild only
18106 non-speculative refs.
18107 * cgraph.c (cgraph_update_edge_in_call_site_hash): New function.
18108 (cgraph_add_edge_to_call_site_hash): Deal with speculative calls.
18109 (cgraph_set_call_stmt): Likewise.
18110 (cgraph_create_edge_1): Fix release checking compilatoin;
18111 clear lto_stmt_uid.
18112 (cgraph_free_edge): Free indirect info.
18113 (cgraph_turn_edge_to_speculative): New function.
18114 (cgraph_speculative_call_info): New function.
18115 (cgraph_make_edge_direct): Return direct edge; handle speculation.
18116 (cgraph_redirect_edge_call_stmt_to_callee): Expand speculative edges.
18117 (dump_cgraph_node): Dump speculation.
18118 (verify_edge_count_and_frequency): Accept speculative edges.
18119 (verify_edge_corresponds_to_fndecl): Handle partitioned cgraph.
18120 (verify_cgraph_node): Handle speculation.
18121 * cgraph.h (cgraph_edge): Add SPECULATIVE flag.
18122 (cgraph_set_call_stmt): Update prototype.
18123 (cgraph_make_edge_direct): Update prototype.
18124 (cgraph_speculative_call_info): Declare.
18125 * ipa-cp.c (ipcp_discover_new_direct_edges): Be ready for edge
18126 to change; update call of ipa_find_references.
18127 * ipa-ref.c (ipa_record_reference): Fix return value; clear
18128 lto_stmt_uid and speculative flags.
18129 (ipa_dump_references): Dump speculation.
18130 (ipa_clone_references): Clone speculative flag.
18131 (ipa_clone_referring): Likewise.
18132 (ipa_clone_ref): New function.
18133 (ipa_find_reference): Look into lto_stmt_uids
18134 (ipa_clear_stmts_in_references): Do not clear speculative calls.
18135 * ipa-ref.h (ipa_ref): Add lto_stmt_uid and speculative flags.
18136 (ipa_find_reference): Update declaration.
18137 (ipa_clone_ref): Declare.
18138 * lto-cgraph.c (lto_output_edge): Make lto_stmt_uids start from 0;
18139 stream speculative flag.
18140 (lto_output_ref): Stream statements uids and speculation.
18141 (input_ref): Likewise.
18142 (input_edge): Stream speuclation.
18143 * cgraphclones.c (cgraph_clone_edge): Clone speculation.
18144 (cgraph_set_call_stmt_including_clones): Handle speculation.
18145 * ipa-inline.c (heap_edge_removal_hook): New function.
18146 (inline_small_functions): Register it.
18147 * lto-streamer-in.c (fixup_call_stmt_edges_1): Bounds checking;
18148 also initialize refs.
18149 * ipa-prop.c (ipa_make_edge_direct_to_target): Be ready for
18151 (try_make_edge_direct_simple_call): Likewise.
18152 (try_make_edge_direct_simple_call): Likewise.
18153 (update_indirect_edges_after_inlining): Likewise.
18154 (remove_described_reference): Look proper lto_stmt_uid.
18155 (propagate_controlled_uses): Likewise.
18156 (propagate_controlled_uses): Liekwise.
18157 * tree-inline.c (copy_bb): Copy speculative edges.
18158 (redirect_all_calls): New function.
18159 (copy_cfg_body): Do redirection after loop info is updated.
18160 (delete_unreachable_blocks_update_callgraph): Updadte speculation.
18162 2013-08-09 Jan Hubicka <jh@suse.cz>
18164 * lto-streamer-out.c (output_function): Renumber PHIs.
18165 * lto-streamer-in.c (input_function): Likewise.
18167 2013-08-09 James Greenhalgh <james.greenhalgh@arm.com>
18169 * config/aarch64/aarch64-simd-builtins.def (get_lane_signed): Remove.
18170 (get_lane_unsigned): Likewise.
18171 (dup_lane_scalar): Likewise.
18172 (get_lane): enable for VALL.
18173 * config/aarch64/aarch64-simd.md
18174 (aarch64_dup_lane_scalar<mode>): Remove.
18175 (aarch64_get_lane_signed<mode>): Likewise.
18176 (aarch64_get_lane_unsigned<mode>): Likewise.
18177 (aarch64_get_lane_extend<GPI:mode><VDQQH:mode>): New.
18178 (aarch64_get_lane_zero_extendsi<mode>): Likewise.
18179 (aarch64_get_lane<mode>): Enable for all vector modes.
18180 (aarch64_get_lanedi): Remove misleading constraints.
18181 * config/aarch64/arm_neon.h
18182 (__aarch64_vget_lane_any): Define.
18183 (__aarch64_vget<q>_lane_<fpsu><8,16,32,64>): Likewise.
18184 (vget<q>_lane_<fpsu><8,16,32,64>): Use __aarch64_vget_lane macros.
18185 (vdup<bhsd>_lane_<su><8,16,32,64>): Likewise.
18186 * config/aarch64/iterators.md (VDQQH): New.
18187 (VDQQHS): Likewise.
18188 (vwcore): Likewise.
18190 2013-08-09 Eric Botcazou <ebotcazou@adacore.com>
18192 * configure.ac: Add GAS check for LEON instructions on SPARC.
18193 * configure: Regenerate.
18194 * config.in: Likewise.
18195 * config.gcc (with_cpu): Remove sparc-leon*-* and deal with LEON in the
18197 * config/sparc/sparc.opt (LEON, LEON3): New masks.
18198 * config/sparc/sparc.h (ASM_CPU32_DEFAULT_SPEC): Set to AS_LEON_FLAG
18200 (ASM_CPU_SPEC): Pass AS_LEON_FLAG if -mcpu=leon or -mcpu=leon3.
18201 (AS_LEON_FLAG): New macro.
18202 * config/sparc/sparc.c (sparc_option_override): Set MASK_LEON for leon
18203 and MASK_LEON3 for leon3 and unset them if HAVE_AS_LEON is not defined.
18204 Deal with LEON and LEON3 for the memory model.
18205 * config/sparc/sync.md (atomic_compare_and_swap<mode>): Enable if LEON3
18206 (atomic_compare_and_swap<mode>_1): Likewise.
18207 (*atomic_compare_and_swap<mode>_1): Likewise.
18209 2013-08-09 Zhenqiang Chen <zhenqiang.chen@linaro.org>
18211 * config/arm/neon.md (vcond): Fix floating-point vector
18212 comparisons against 0.
18214 2013-08-08 Vladimir Makarov <vmakarov@redhat.com>
18216 * lra-constraints.c (emit_spill_move): Remove assert.
18217 (process_alt_operands): Add more debugging
18218 output. Increase reject for spilling into memory. Decrease
18219 reject for reloading scratch.
18220 (split_reg): Use HARD_REGNO_CALLER_SAVE_MODE.
18222 2013-08-08 Steve Ellcey <sellcey@mips.com>
18224 * config/mips/mti-linux.h (SYSROOT_SUFFIX_SPEC): Add nan2008.
18225 * config/mips/t-mti-elf (MULTILIB_OPTIONS): Make mips16 and
18226 micromips incompatible. Add nan2008.
18227 (MULTILIB_DIRNAMES): Add nan2008.
18228 (MULTILIB_EXCEPTIONS): Remove mips16/micromips entry.
18229 * config/mips/t-mti-linux (MULTILIB_OPTIONS): Make mips16
18230 and micromips incompatible. Add nan2008.
18231 (MULTILIB_DIRNAMES): Add nan2008.
18232 (MULTILIB_EXCEPTIONS): Remove mips16/micromips entry.
18234 2013-08-08 Richard Sandiford <rdsandiford@googlemail.com>
18236 PR rtl-optimization/58079
18237 * combine.c (combine_simplify_rtx): Avoid using SUBST if
18238 simplify_comparison has widened a comparison with an integer.
18240 2013-08-08 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
18242 * config/arm/neon.md (movmisalign<mode>): Disable when we
18243 don't allow unaligned accesses.
18244 (*movmisalign<mode>_neon_store): Likewise.
18245 (*movmisalign<mode>_neon_load): Likewise.
18246 (*movmisalign<mode>_neon_store): Likewise.
18247 (*movmisalign<mode>_neon_load): Likewise.
18249 2013-08-08 Jan Hubicka <jh@suse.cz>
18251 * cgraphbuild.c (build_cgraph_edges): Do not walk into debugs.
18252 (make_pass_rebuild_cgraph_edges): Also clear references.
18253 * cgraph.c (verify_cgraph_node): Add basic ipa-ref verifier.
18254 * ipa-inline-transform.c (inline_transform): Remove all references
18256 * cgraphunit.c (expand_function): Remove all references after
18258 * ipa-ref.c (ipa_ref_has_aliases_p): Fix formatting.
18259 (ipa_find_reference): Rewrite to iterator.
18260 (remove_stmt_references): Likewise.
18261 (ipa_clear_stmts_in_references): New function.
18262 * ipa-ref.h (ipa_clear_stmts_in_references): Declare.
18263 * cgraphclones.c (cgraph_materialize_all_clones): Remove or
18265 * ipa-split.c (split_function): Remove references in split function.
18267 2013-08-08 Richard Earnshaw <rearnsha@arm.com>
18270 * config/arm/arm/neon.md (neon_vld1_dupdi): New expand pattern.
18271 (neon_vld1_dup<mode> VD iterator): Iterate over VD not VDX.
18273 2013-08-08 Richard Earnshaw <rearnsha@arm.com>
18276 * config/arm/arm.c (aapcs_vfp_allocate): Decompose the argument if the
18277 suggested mode for the assignment isn't compatible with the
18278 registers required.
18280 2013-08-08 Bernd Edlinger <bernd.edlinger@hotmail.de>
18283 * config/arm/arm.h (MALLOC_ABI_ALIGNMENT): Define.
18285 2013-08-07 Xinliang David Li <davidxl@google.com>
18287 * config/i386/i386.opt: New option -mtune-ctrl=.
18288 * config/i386/x86-tune.def: New file.
18289 * config/i386/i386.h: include x86-tune.def.
18290 * config/i386/i386.c (ix86_option_override_internal):
18291 Parsing -mtune-ctrl= option and set tune features.
18293 2013-08-07 Oleg Endo <olegendo@gcc.gnu.org>
18296 * config/rs6000/rs6000.c (gen_2arg_fn_t): Remove typedef.
18297 (rs6000_emit_swdiv, rs6000_emit_swrsqrt): Don't cast result of GEN_FCN
18300 2013-08-07 Eric Botcazou <ebotcazou@adacore.com>
18302 * rtl.h (update_alignments): Declare.
18303 * final.c (grow_label_align): New function extracted from...
18304 (shorten_branches): ...here. Call it.
18305 (update_alignments): New function.
18306 * reorg.c (sibling_labels): New variable.
18307 (get_label_before): Add SIBLING parameter. If it is non-zero, push
18308 the new label along with it onto the sibling_labels vector.
18309 (fill_simple_delay_slots): Adjust call to get_label_before.
18310 (fill_slots_from_thread): Likewise.
18311 (relax_delay_slots): Likewise.
18312 (make_return_insns): Likewise.
18313 (dbr_schedule): Invoke update_alignment on the sibling_labels vector.
18315 2013-08-07 Eric Botcazou <ebotcazou@adacore.com>
18317 * diagnostic.c (diagnostic_classify_diagnostic): Accept zero index and
18318 document its semantics.
18319 (diagnostic_report_diagnostic): Adjust accordingly.
18321 2013-08-07 David Malcolm <dmalcolm@redhat.com>
18323 * config/sparc/sparc.c (insert_pass_work_around_errata): Move into...
18324 (sparc_option_override): ...and port to new C++ pass API.
18325 * config/sparc/t-sparc (sparc.o): Add dep on CONTEXT_H
18327 2013-08-07 Peter Bergner <bergner@vnet.ibm.com>
18329 * config/rs6000/rs6000.c (htm_expand_builtin) <case 0>: Remove.
18331 2013-08-06 Caroline Tice <cmtice@google.com>
18333 * gcc.c (VTABLE_VERIFICATION_SPEC): New definition.
18334 (LINK_COMMAND_SPEC): Add VTABLE_VERIFICATION_SPEC.
18335 * tree-pass.h: Add pass_vtable_verify.
18336 * varasm.c (assemble_variable): Add code to properly set the comdat
18337 section and name for the .vtable_map_vars section.
18338 (assemble_vtyv_preinit_initializer): New function.
18339 (default_sectin_type_flags): Make sure .vtable_map_vars section has
18341 * output.h: Add function decl for assemble_vtv_preinit_initializer.
18342 * vtable-verify.c: New file.
18343 * vtable-verify.h: New file.
18344 * flag-types.h (enum vtv_priority): Defintions for flag_vtable_verify
18345 initialiation levels.
18346 * timevar.def (TV_VTABLE_VERIFICATION): New definition.
18347 * passes.def: Insert pass_vtable_verify.
18348 * aclocal.m4: Reorder includes.
18349 * doc/invoke.texi: Document the -fvtable-verify=, -fvtv-debug, and
18350 -fvtv-counts options.
18351 * config/gnu-user.h (GNU_USER_TARGET_STARTFILE_SPEC): Add vtv_start*.o,
18352 as appropriate, if -fvtable-verify=... is used.
18353 (GNU_USER_TARGET_ENDFILE_SPEC): Add vtv_end*.o as appropriate, if
18354 -fvtable-verify=... is used.
18355 * Makefile.in (OBJS): Add vtable-verify.o to list.
18356 (vtable-verify.o): Add new build rule.
18357 (GTFILES): Add vtable-verify.c to list.
18358 * common.opt (fvtable-verify=): New flag.
18359 (vtv_priority): Values for fvtable-verify= flag.
18360 (fvtv-counts): New flag.
18361 (fvtv-debug): New flag.
18362 * tree.h (save_vtable_map_decl): New extern function decl.
18364 2013-08-07 David Malcolm <dmalcolm@redhat.com>
18366 * config/rl78/rl78.c (rl78_devirt_pass): Convert from a struct to...
18367 (pass_rl78_devirt): ...new subclass of rtl_opt_pass along with...
18368 (pass_data_rl78_devirt): ...new pass_data instance and...
18369 (make_pass_rl78_devirt): ...new function.
18370 (rl78_asm_file_start): Port pass registration to new C++ API.
18372 2013-08-07 David Malcolm <dmalcolm@redhat.com>
18374 * coretypes.h (rtl_opt_pass): Add.
18375 (gcc::context): Add.
18376 * config/epiphany/epiphany.c (pass_mode_switch_use): New.
18377 (epiphany_init): Port to new C++ pass API.
18378 (epiphany_optimize_mode_switching): Likewise.
18379 * pass_manager.h (pass_manager::get_pass_split_all_insns): New.
18380 (pass_manager::get_pass_mode_switching): New.
18381 (pass_manager::get_pass_peephole2): New.
18382 * mode-switching.c (pass_mode_switching): Add clone method.
18383 * recog.c (pass_peephole2): Add clone method.
18384 (pass_split_all_insns): Add clone method.
18386 2013-08-06 David Malcolm <dmalcolm@redhat.com>
18388 * config/mips/mips.c (insert_pass_mips_machine_reorg2): Move into...
18389 (mips_option_override): ...here, porting to new C++ API for passes.
18391 2013-08-06 Jan Hubicka <jh@suse.cz>
18393 * cgraph.c (cgraph_get_body): New function based on lto.c
18395 * cgraph.h (cgraph_get_body): Declare.
18396 * cgraphclones.c (cgraph_create_virtual_clone): Commonize WPA and
18398 * cgraphunit.c (expand_function): Get body prior expanding.
18399 * ipa.c (function_and_variable_visibility): Use gimple_has_body_p test.
18400 * lto-cgraph.c (lto_output_node): Do not stream bodies we don't
18402 * passes.c (do_per_function_toporder): Get body.
18403 * tree-inline.c (expand_call_inline): Get body prior inlining it.
18404 * tree-ssa-structalias.c (ipa_pta_execute): Get body; skip clones.
18406 2013-08-06 Martin Jambor <mjambor@suse.cz>
18409 * cgraphunit.c (cgraph_finalize_function): Assert that nested function
18410 is not re-finalized. Rename second parameter to no_collect.
18412 2013-08-06 Martin Jambor <mjambor@suse.cz>
18414 PR middle-end/58041
18415 * gimple-ssa-strength-reduction.c (replace_ref): Make sure built
18416 MEM_REF has proper alignment information.
18418 2013-08-05 Oleg Endo <olegendo@gcc.gnu.org>
18421 * recog.h (rtx (*insn_gen_fn) (rtx, ...)): Replace typedef with new
18423 * expr.c (move_by_pieces_1, store_by_pieces_2): Replace argument
18424 rtx (*) (rtx, ...) with insn_gen_fn.
18425 * genoutput.c (output_insn_data): Cast gen_? function pointers to
18426 insn_gen_fn::stored_funcptr. Add initializer braces.
18428 2013-08-05 David Malcolm <dmalcolm@redhat.com>
18430 Rewrite how instances of passes are cloned to remove assumptions
18431 about their sizes (thus allowing pass subclasses to have
18432 additional data fields, albeit non-GC-managed ones at this point).
18434 * passes.c (make_pass_instance): Now that passes have clone
18435 methods, rewrite this function to eliminate XNEW and memcpy
18436 calls that used hardcoded sizes. Since this function no longer
18437 creates pass instances, rename it to...
18438 (add_pass_instance): ...this. Document the old way that passes were
18439 numbered and flagged, and rework this function to continue using it.
18440 (next_pass_1): Add an initial_pass argument for use by
18442 (position_pass): When adding multiple instances of a pass, use
18443 the pass's clone method, rather than relying on the XNEW/memcpy
18444 within the former make_pass_instance (now add_pass_instance).
18445 (pass_manager::pass_manager): When invoking next_pass_1, also supply
18446 the initial instance of the current pass within the pass manager.
18448 2013-08-05 David Malcolm <dmalcolm@redhat.com>
18450 This is the automated part of the conversion of passes from C
18451 structs to C++ classes.
18453 Patch autogenerated by refactor_passes.py from
18454 https://github.com/davidmalcolm/gcc-refactoring-scripts
18455 revision 03fe39476a4c4ea450b49e087cfa817b5f92021e
18457 * asan.c (pass_asan): Convert from a global struct to a subclass of
18458 gimple_opt_pass along with...
18459 (pass_data_asan): ...new pass_data instance and...
18460 (make_pass_asan): ...new function.
18461 (pass_asan_O0): Convert from a global struct to a subclass of
18462 gimple_opt_pass along with...
18463 (pass_data_asan_O0): ...new pass_data instance and...
18464 (make_pass_asan_O0): ...new function.
18465 * auto-inc-dec.c (pass_inc_dec): Convert from a global struct to a
18466 subclass of rtl_opt_pass along with...
18467 (pass_data_inc_dec): ...new pass_data instance and...
18468 (make_pass_inc_dec): ...new function.
18469 * bb-reorder.c (pass_reorder_blocks): Convert from a global struct to
18470 a subclass of rtl_opt_pass along with...
18471 (pass_data_reorder_blocks): ...new pass_data instance and...
18472 (make_pass_reorder_blocks): ...new function.
18473 (pass_duplicate_computed_gotos): Convert from a global struct to a
18474 subclass of rtl_opt_pass along with...
18475 (pass_data_duplicate_computed_gotos): ...new pass_data instance and...
18476 (make_pass_duplicate_computed_gotos): ...new function.
18477 (pass_partition_blocks): Convert from a global struct to a subclass of
18478 rtl_opt_pass along with...
18479 (pass_data_partition_blocks): ...new pass_data instance and...
18480 (make_pass_partition_blocks): ...new function.
18481 * bt-load.c (pass_branch_target_load_optimize1): Convert from a global
18482 struct to a subclass of rtl_opt_pass along with...
18483 (pass_data_branch_target_load_optimize1): ...new pass_data instance
18485 (make_pass_branch_target_load_optimize1): ...new function.
18486 (pass_branch_target_load_optimize2): Convert from a global struct to a
18487 subclass of rtl_opt_pass along with...
18488 (pass_data_branch_target_load_optimize2): ...new pass_data instance
18490 (make_pass_branch_target_load_optimize2): ...new function.
18491 * cfgcleanup.c (pass_jump): Convert from a global struct to a subclass
18492 of rtl_opt_pass along with...
18493 (pass_data_jump): ...new pass_data instance and...
18494 (make_pass_jump): ...new function.
18495 (pass_jump2): Convert from a global struct to a subclass of
18496 rtl_opt_pass along with...
18497 (pass_data_jump2): ...new pass_data instance and...
18498 (make_pass_jump2): ...new function.
18499 * cfgexpand.c (pass_expand): Convert from a global struct to a
18500 subclass of rtl_opt_pass along with...
18501 (pass_data_expand): ...new pass_data instance and...
18502 (make_pass_expand): ...new function.
18503 * cfgrtl.c (pass_free_cfg): Convert from a global struct to a subclass
18504 of rtl_opt_pass along with...
18505 (pass_data_free_cfg): ...new pass_data instance and...
18506 (make_pass_free_cfg): ...new function.
18507 (pass_into_cfg_layout_mode): Convert from a global struct to a
18508 subclass of rtl_opt_pass along with...
18509 (pass_data_into_cfg_layout_mode): ...new pass_data instance and...
18510 (make_pass_into_cfg_layout_mode): ...new function.
18511 (pass_outof_cfg_layout_mode): Convert from a global struct to a
18512 subclass of rtl_opt_pass along with...
18513 (pass_data_outof_cfg_layout_mode): ...new pass_data instance and...
18514 (make_pass_outof_cfg_layout_mode): ...new function.
18515 * cgraphbuild.c (pass_build_cgraph_edges): Convert from a global
18516 struct to a subclass of gimple_opt_pass along with...
18517 (pass_data_build_cgraph_edges): ...new pass_data instance and...
18518 (make_pass_build_cgraph_edges): ...new function.
18519 (pass_rebuild_cgraph_edges): Convert from a global struct to a
18520 subclass of gimple_opt_pass along with...
18521 (pass_data_rebuild_cgraph_edges): ...new pass_data instance and...
18522 (make_pass_rebuild_cgraph_edges): ...new function.
18523 (pass_remove_cgraph_callee_edges): Convert from a global struct to a
18524 subclass of gimple_opt_pass along with...
18525 (pass_data_remove_cgraph_callee_edges): ...new pass_data instance
18527 (make_pass_remove_cgraph_callee_edges): ...new function.
18528 * combine-stack-adj.c (pass_stack_adjustments): Convert from a global
18529 struct to a subclass of rtl_opt_pass along with...
18530 (pass_data_stack_adjustments): ...new pass_data instance and...
18531 (make_pass_stack_adjustments): ...new function.
18532 * combine.c (pass_combine): Convert from a global struct to a subclass
18533 of rtl_opt_pass along with...
18534 (pass_data_combine): ...new pass_data instance and...
18535 (make_pass_combine): ...new function.
18536 * compare-elim.c (pass_compare_elim_after_reload): Convert from a
18537 global struct to a subclass of rtl_opt_pass along with...
18538 (pass_data_compare_elim_after_reload): ...new pass_data instance
18540 (make_pass_compare_elim_after_reload): ...new function.
18541 * cprop.c (pass_rtl_cprop): Convert from a global struct to a subclass
18542 of rtl_opt_pass along with...
18543 (pass_data_rtl_cprop): ...new pass_data instance and...
18544 (make_pass_rtl_cprop): ...new function.
18545 * cse.c (pass_cse): Convert from a global struct to a subclass of
18546 rtl_opt_pass along with...
18547 (pass_data_cse): ...new pass_data instance and...
18548 (make_pass_cse): ...new function.
18549 (pass_cse2): Convert from a global struct to a subclass of
18550 rtl_opt_pass along with...
18551 (pass_data_cse2): ...new pass_data instance and...
18552 (make_pass_cse2): ...new function.
18553 (pass_cse_after_global_opts): Convert from a global struct to a
18554 subclass of rtl_opt_pass along with...
18555 (pass_data_cse_after_global_opts): ...new pass_data instance and...
18556 (make_pass_cse_after_global_opts): ...new function.
18557 * dce.c (pass_ud_rtl_dce): Convert from a global struct to a subclass
18558 of rtl_opt_pass along with...
18559 (pass_data_ud_rtl_dce): ...new pass_data instance and...
18560 (make_pass_ud_rtl_dce): ...new function.
18561 (pass_fast_rtl_dce): Convert from a global struct to a subclass of
18562 rtl_opt_pass along with...
18563 (pass_data_fast_rtl_dce): ...new pass_data instance and...
18564 (make_pass_fast_rtl_dce): ...new function.
18565 * df-core.c (pass_df_initialize_opt): Convert from a global struct to
18566 a subclass of rtl_opt_pass along with...
18567 (pass_data_df_initialize_opt): ...new pass_data instance and...
18568 (make_pass_df_initialize_opt): ...new function.
18569 (pass_df_initialize_no_opt): Convert from a global struct to a
18570 subclass of rtl_opt_pass along with...
18571 (pass_data_df_initialize_no_opt): ...new pass_data instance and...
18572 (make_pass_df_initialize_no_opt): ...new function.
18573 (pass_df_finish): Convert from a global struct to a subclass of
18574 rtl_opt_pass along with...
18575 (pass_data_df_finish): ...new pass_data instance and...
18576 (make_pass_df_finish): ...new function.
18577 * dse.c (pass_rtl_dse1): Convert from a global struct to a subclass of
18578 rtl_opt_pass along with...
18579 (pass_data_rtl_dse1): ...new pass_data instance and...
18580 (make_pass_rtl_dse1): ...new function.
18581 (pass_rtl_dse2): Convert from a global struct to a subclass of
18582 rtl_opt_pass along with...
18583 (pass_data_rtl_dse2): ...new pass_data instance and...
18584 (make_pass_rtl_dse2): ...new function.
18585 * dwarf2cfi.c (pass_dwarf2_frame): Convert from a global struct to a
18586 subclass of rtl_opt_pass along with...
18587 (pass_data_dwarf2_frame): ...new pass_data instance and...
18588 (make_pass_dwarf2_frame): ...new function.
18589 * except.c (pass_set_nothrow_function_flags): Convert from a global
18590 struct to a subclass of rtl_opt_pass along with...
18591 (pass_data_set_nothrow_function_flags): ...new pass_data instance
18593 (make_pass_set_nothrow_function_flags): ...new function.
18594 (pass_convert_to_eh_region_ranges): Convert from a global struct to a
18595 subclass of rtl_opt_pass along with...
18596 (pass_data_convert_to_eh_region_ranges): ...new pass_data instance
18598 (make_pass_convert_to_eh_region_ranges): ...new function.
18599 * final.c (pass_compute_alignments): Convert from a global struct to a
18600 subclass of rtl_opt_pass along with...
18601 (pass_data_compute_alignments): ...new pass_data instance and...
18602 (make_pass_compute_alignments): ...new function.
18603 (pass_final): Convert from a global struct to a subclass of
18604 rtl_opt_pass along with...
18605 (pass_data_final): ...new pass_data instance and...
18606 (make_pass_final): ...new function.
18607 (pass_shorten_branches): Convert from a global struct to a subclass of
18608 rtl_opt_pass along with...
18609 (pass_data_shorten_branches): ...new pass_data instance and...
18610 (make_pass_shorten_branches): ...new function.
18611 (pass_clean_state): Convert from a global struct to a subclass of
18612 rtl_opt_pass along with...
18613 (pass_data_clean_state): ...new pass_data instance and...
18614 (make_pass_clean_state): ...new function.
18615 * function.c (pass_instantiate_virtual_regs): Convert from a global
18616 struct to a subclass of rtl_opt_pass along with...
18617 (pass_data_instantiate_virtual_regs): ...new pass_data instance and...
18618 (make_pass_instantiate_virtual_regs): ...new function.
18619 (pass_leaf_regs): Convert from a global struct to a subclass of
18620 rtl_opt_pass along with...
18621 (pass_data_leaf_regs): ...new pass_data instance and...
18622 (make_pass_leaf_regs): ...new function.
18623 (pass_thread_prologue_and_epilogue): Convert from a global struct to a
18624 subclass of rtl_opt_pass along with...
18625 (pass_data_thread_prologue_and_epilogue): ...new pass_data instance
18627 (make_pass_thread_prologue_and_epilogue): ...new function.
18628 (pass_match_asm_constraints): Convert from a global struct to a
18629 subclass of rtl_opt_pass along with...
18630 (pass_data_match_asm_constraints): ...new pass_data instance and...
18631 (make_pass_match_asm_constraints): ...new function.
18632 * fwprop.c (pass_rtl_fwprop): Convert from a global struct to a
18633 subclass of rtl_opt_pass along with...
18634 (pass_data_rtl_fwprop): ...new pass_data instance and...
18635 (make_pass_rtl_fwprop): ...new function.
18636 (pass_rtl_fwprop_addr): Convert from a global struct to a subclass of
18637 rtl_opt_pass along with...
18638 (pass_data_rtl_fwprop_addr): ...new pass_data instance and...
18639 (make_pass_rtl_fwprop_addr): ...new function.
18640 * gcse.c (pass_rtl_pre): Convert from a global struct to a subclass of
18641 rtl_opt_pass along with...
18642 (pass_data_rtl_pre): ...new pass_data instance and...
18643 (make_pass_rtl_pre): ...new function.
18644 (pass_rtl_hoist): Convert from a global struct to a subclass of
18645 rtl_opt_pass along with...
18646 (pass_data_rtl_hoist): ...new pass_data instance and...
18647 (make_pass_rtl_hoist): ...new function.
18648 * gimple-low.c (pass_lower_cf): Convert from a global struct to a
18649 subclass of gimple_opt_pass along with...
18650 (pass_data_lower_cf): ...new pass_data instance and...
18651 (make_pass_lower_cf): ...new function.
18652 * gimple-ssa-strength-reduction.c (pass_strength_reduction): Convert
18653 from a global struct to a subclass of gimple_opt_pass along with...
18654 (pass_data_strength_reduction): ...new pass_data instance and...
18655 (make_pass_strength_reduction): ...new function.
18656 * ifcvt.c (pass_rtl_ifcvt): Convert from a global struct to a subclass
18657 of rtl_opt_pass along with...
18658 (pass_data_rtl_ifcvt): ...new pass_data instance and...
18659 (make_pass_rtl_ifcvt): ...new function.
18660 (pass_if_after_combine): Convert from a global struct to a subclass of
18661 rtl_opt_pass along with...
18662 (pass_data_if_after_combine): ...new pass_data instance and...
18663 (make_pass_if_after_combine): ...new function.
18664 (pass_if_after_reload): Convert from a global struct to a subclass of
18665 rtl_opt_pass along with...
18666 (pass_data_if_after_reload): ...new pass_data instance and...
18667 (make_pass_if_after_reload): ...new function.
18668 * init-regs.c (pass_initialize_regs): Convert from a global struct to
18669 a subclass of rtl_opt_pass along with...
18670 (pass_data_initialize_regs): ...new pass_data instance and...
18671 (make_pass_initialize_regs): ...new function.
18672 * ipa-cp.c (pass_ipa_cp): Convert from a global struct to a subclass
18673 of ipa_opt_pass_d along with...
18674 (pass_data_ipa_cp): ...new pass_data instance and...
18675 (make_pass_ipa_cp): ...new function.
18676 * ipa-inline-analysis.c (pass_inline_parameters): Convert from a
18677 global struct to a subclass of gimple_opt_pass along with...
18678 (pass_data_inline_parameters): ...new pass_data instance and...
18679 (make_pass_inline_parameters): ...new function.
18680 * ipa-inline.c (pass_early_inline): Convert from a global struct to a
18681 subclass of gimple_opt_pass along with...
18682 (pass_data_early_inline): ...new pass_data instance and...
18683 (make_pass_early_inline): ...new function.
18684 (pass_ipa_inline): Convert from a global struct to a subclass of
18685 ipa_opt_pass_d along with...
18686 (pass_data_ipa_inline): ...new pass_data instance and...
18687 (make_pass_ipa_inline): ...new function.
18688 * ipa-pure-const.c (pass_local_pure_const): Convert from a global
18689 struct to a subclass of gimple_opt_pass along with...
18690 (pass_data_local_pure_const): ...new pass_data instance and...
18691 (make_pass_local_pure_const): ...new function.
18692 (pass_ipa_pure_const): Convert from a global struct to a subclass of
18693 ipa_opt_pass_d along with...
18694 (pass_data_ipa_pure_const): ...new pass_data instance and...
18695 (make_pass_ipa_pure_const): ...new function.
18696 * ipa-reference.c (pass_ipa_reference): Convert from a global struct
18697 to a subclass of ipa_opt_pass_d along with...
18698 (pass_data_ipa_reference): ...new pass_data instance and...
18699 (make_pass_ipa_reference): ...new function.
18700 * ipa-split.c (pass_split_functions): Convert from a global struct to
18701 a subclass of gimple_opt_pass along with...
18702 (pass_data_split_functions): ...new pass_data instance and...
18703 (make_pass_split_functions): ...new function.
18704 (pass_feedback_split_functions): Convert from a global struct to a
18705 subclass of gimple_opt_pass along with...
18706 (pass_data_feedback_split_functions): ...new pass_data instance and...
18707 (make_pass_feedback_split_functions): ...new function.
18708 * ipa.c (pass_ipa_function_and_variable_visibility): Convert from a
18709 global struct to a subclass of simple_ipa_opt_pass along with...
18710 (pass_data_ipa_function_and_variable_visibility): ...new pass_data
18712 (make_pass_ipa_function_and_variable_visibility): ...new function.
18713 (pass_ipa_free_inline_summary): Convert from a global struct to a
18714 subclass of simple_ipa_opt_pass along with...
18715 (pass_data_ipa_free_inline_summary): ...new pass_data instance and...
18716 (make_pass_ipa_free_inline_summary): ...new function.
18717 (pass_ipa_whole_program_visibility): Convert from a global struct to a
18718 subclass of ipa_opt_pass_d along with...
18719 (pass_data_ipa_whole_program_visibility): ...new pass_data instance
18721 (make_pass_ipa_whole_program_visibility): ...new function.
18722 (pass_ipa_profile): Convert from a global struct to a subclass of
18723 ipa_opt_pass_d along with...
18724 (pass_data_ipa_profile): ...new pass_data instance and...
18725 (make_pass_ipa_profile): ...new function.
18726 (pass_ipa_cdtor_merge): Convert from a global struct to a subclass of
18727 ipa_opt_pass_d along with...
18728 (pass_data_ipa_cdtor_merge): ...new pass_data instance and...
18729 (make_pass_ipa_cdtor_merge): ...new function.
18730 * ira.c (pass_ira): Convert from a global struct to a subclass of
18731 rtl_opt_pass along with...
18732 (pass_data_ira): ...new pass_data instance and...
18733 (make_pass_ira): ...new function.
18734 (pass_reload): Convert from a global struct to a subclass of
18735 rtl_opt_pass along with...
18736 (pass_data_reload): ...new pass_data instance and...
18737 (make_pass_reload): ...new function.
18738 * jump.c (pass_cleanup_barriers): Convert from a global struct to a
18739 subclass of rtl_opt_pass along with...
18740 (pass_data_cleanup_barriers): ...new pass_data instance and...
18741 (make_pass_cleanup_barriers): ...new function.
18742 * loop-init.c (pass_loop2): Convert from a global struct to a subclass
18743 of rtl_opt_pass along with...
18744 (pass_data_loop2): ...new pass_data instance and...
18745 (make_pass_loop2): ...new function.
18746 (pass_rtl_loop_init): Convert from a global struct to a subclass of
18747 rtl_opt_pass along with...
18748 (pass_data_rtl_loop_init): ...new pass_data instance and...
18749 (make_pass_rtl_loop_init): ...new function.
18750 (pass_rtl_loop_done): Convert from a global struct to a subclass of
18751 rtl_opt_pass along with...
18752 (pass_data_rtl_loop_done): ...new pass_data instance and...
18753 (make_pass_rtl_loop_done): ...new function.
18754 (pass_rtl_move_loop_invariants): Convert from a global struct to a
18755 subclass of rtl_opt_pass along with...
18756 (pass_data_rtl_move_loop_invariants): ...new pass_data instance and...
18757 (make_pass_rtl_move_loop_invariants): ...new function.
18758 (pass_rtl_unswitch): Convert from a global struct to a subclass of
18759 rtl_opt_pass along with...
18760 (pass_data_rtl_unswitch): ...new pass_data instance and...
18761 (make_pass_rtl_unswitch): ...new function.
18762 (pass_rtl_unroll_and_peel_loops): Convert from a global struct to a
18763 subclass of rtl_opt_pass along with...
18764 (pass_data_rtl_unroll_and_peel_loops): ...new pass_data instance
18766 (make_pass_rtl_unroll_and_peel_loops): ...new function.
18767 (pass_rtl_doloop): Convert from a global struct to a subclass of
18768 rtl_opt_pass along with...
18769 (pass_data_rtl_doloop): ...new pass_data instance and...
18770 (make_pass_rtl_doloop): ...new function.
18771 * lower-subreg.c (pass_lower_subreg): Convert from a global struct to
18772 a subclass of rtl_opt_pass along with...
18773 (pass_data_lower_subreg): ...new pass_data instance and...
18774 (make_pass_lower_subreg): ...new function.
18775 (pass_lower_subreg2): Convert from a global struct to a subclass of
18776 rtl_opt_pass along with...
18777 (pass_data_lower_subreg2): ...new pass_data instance and...
18778 (make_pass_lower_subreg2): ...new function.
18779 * lto-streamer-out.c (pass_ipa_lto_gimple_out): Convert from a global
18780 struct to a subclass of ipa_opt_pass_d along with...
18781 (pass_data_ipa_lto_gimple_out): ...new pass_data instance and...
18782 (make_pass_ipa_lto_gimple_out): ...new function.
18783 (pass_ipa_lto_finish_out): Convert from a global struct to a subclass
18784 of ipa_opt_pass_d along with...
18785 (pass_data_ipa_lto_finish_out): ...new pass_data instance and...
18786 (make_pass_ipa_lto_finish_out): ...new function.
18787 * mode-switching.c (pass_mode_switching): Convert from a global struct
18788 to a subclass of rtl_opt_pass along with...
18789 (pass_data_mode_switching): ...new pass_data instance and...
18790 (make_pass_mode_switching): ...new function.
18791 * modulo-sched.c (pass_sms): Convert from a global struct to a
18792 subclass of rtl_opt_pass along with...
18793 (pass_data_sms): ...new pass_data instance and...
18794 (make_pass_sms): ...new function.
18795 * omp-low.c (pass_expand_omp): Convert from a global struct to a
18796 subclass of gimple_opt_pass along with...
18797 (pass_data_expand_omp): ...new pass_data instance and...
18798 (make_pass_expand_omp): ...new function.
18799 (pass_lower_omp): Convert from a global struct to a subclass of
18800 gimple_opt_pass along with...
18801 (pass_data_lower_omp): ...new pass_data instance and...
18802 (make_pass_lower_omp): ...new function.
18803 (pass_diagnose_omp_blocks): Convert from a global struct to a subclass
18804 of gimple_opt_pass along with...
18805 (pass_data_diagnose_omp_blocks): ...new pass_data instance and...
18806 (make_pass_diagnose_omp_blocks): ...new function.
18807 * passes.c (pass_early_local_passes): Convert from a global struct to
18808 a subclass of simple_ipa_opt_pass along with...
18809 (pass_data_early_local_passes): ...new pass_data instance and...
18810 (make_pass_early_local_passes): ...new function.
18811 (pass_all_early_optimizations): Convert from a global struct to a
18812 subclass of gimple_opt_pass along with...
18813 (pass_data_all_early_optimizations): ...new pass_data instance and...
18814 (make_pass_all_early_optimizations): ...new function.
18815 (pass_all_optimizations): Convert from a global struct to a subclass
18816 of gimple_opt_pass along with...
18817 (pass_data_all_optimizations): ...new pass_data instance and...
18818 (make_pass_all_optimizations): ...new function.
18819 (pass_all_optimizations_g): Convert from a global struct to a subclass
18820 of gimple_opt_pass along with...
18821 (pass_data_all_optimizations_g): ...new pass_data instance and...
18822 (make_pass_all_optimizations_g): ...new function.
18823 (pass_rest_of_compilation): Convert from a global struct to a subclass
18824 of rtl_opt_pass along with...
18825 (pass_data_rest_of_compilation): ...new pass_data instance and...
18826 (make_pass_rest_of_compilation): ...new function.
18827 (pass_postreload): Convert from a global struct to a subclass of
18828 rtl_opt_pass along with...
18829 (pass_data_postreload): ...new pass_data instance and...
18830 (make_pass_postreload): ...new function.
18831 * postreload-gcse.c (pass_gcse2): Convert from a global struct to a
18832 subclass of rtl_opt_pass along with...
18833 (pass_data_gcse2): ...new pass_data instance and...
18834 (make_pass_gcse2): ...new function.
18835 * postreload.c (pass_postreload_cse): Convert from a global struct to
18836 a subclass of rtl_opt_pass along with...
18837 (pass_data_postreload_cse): ...new pass_data instance and...
18838 (make_pass_postreload_cse): ...new function.
18839 * predict.c (pass_profile): Convert from a global struct to a subclass
18840 of gimple_opt_pass along with...
18841 (pass_data_profile): ...new pass_data instance and...
18842 (make_pass_profile): ...new function.
18843 (pass_strip_predict_hints): Convert from a global struct to a subclass
18844 of gimple_opt_pass along with...
18845 (pass_data_strip_predict_hints): ...new pass_data instance and...
18846 (make_pass_strip_predict_hints): ...new function.
18847 * recog.c (pass_peephole2): Convert from a global struct to a subclass
18848 of rtl_opt_pass along with...
18849 (pass_data_peephole2): ...new pass_data instance and...
18850 (make_pass_peephole2): ...new function.
18851 (pass_split_all_insns): Convert from a global struct to a subclass of
18852 rtl_opt_pass along with...
18853 (pass_data_split_all_insns): ...new pass_data instance and...
18854 (make_pass_split_all_insns): ...new function.
18855 (pass_split_after_reload): Convert from a global struct to a subclass
18856 of rtl_opt_pass along with...
18857 (pass_data_split_after_reload): ...new pass_data instance and...
18858 (make_pass_split_after_reload): ...new function.
18859 (pass_split_before_regstack): Convert from a global struct to a
18860 subclass of rtl_opt_pass along with...
18861 (pass_data_split_before_regstack): ...new pass_data instance and...
18862 (make_pass_split_before_regstack): ...new function.
18863 (pass_split_before_sched2): Convert from a global struct to a subclass
18864 of rtl_opt_pass along with...
18865 (pass_data_split_before_sched2): ...new pass_data instance and...
18866 (make_pass_split_before_sched2): ...new function.
18867 (pass_split_for_shorten_branches): Convert from a global struct to a
18868 subclass of rtl_opt_pass along with...
18869 (pass_data_split_for_shorten_branches): ...new pass_data instance
18871 (make_pass_split_for_shorten_branches): ...new function.
18872 * ree.c (pass_ree): Convert from a global struct to a subclass of
18873 rtl_opt_pass along with...
18874 (pass_data_ree): ...new pass_data instance and...
18875 (make_pass_ree): ...new function.
18876 * reg-stack.c (pass_stack_regs): Convert from a global struct to a
18877 subclass of rtl_opt_pass along with...
18878 (pass_data_stack_regs): ...new pass_data instance and...
18879 (make_pass_stack_regs): ...new function.
18880 (pass_stack_regs_run): Convert from a global struct to a subclass of
18881 rtl_opt_pass along with...
18882 (pass_data_stack_regs_run): ...new pass_data instance and...
18883 (make_pass_stack_regs_run): ...new function.
18884 * regcprop.c (pass_cprop_hardreg): Convert from a global struct to a
18885 subclass of rtl_opt_pass along with...
18886 (pass_data_cprop_hardreg): ...new pass_data instance and...
18887 (make_pass_cprop_hardreg): ...new function.
18888 * reginfo.c (pass_reginfo_init): Convert from a global struct to a
18889 subclass of rtl_opt_pass along with...
18890 (pass_data_reginfo_init): ...new pass_data instance and...
18891 (make_pass_reginfo_init): ...new function.
18892 * regmove.c (pass_regmove): Convert from a global struct to a subclass
18893 of rtl_opt_pass along with...
18894 (pass_data_regmove): ...new pass_data instance and...
18895 (make_pass_regmove): ...new function.
18896 * regrename.c (pass_regrename): Convert from a global struct to a
18897 subclass of rtl_opt_pass along with...
18898 (pass_data_regrename): ...new pass_data instance and...
18899 (make_pass_regrename): ...new function.
18900 * reorg.c (pass_delay_slots): Convert from a global struct to a
18901 subclass of rtl_opt_pass along with...
18902 (pass_data_delay_slots): ...new pass_data instance and...
18903 (make_pass_delay_slots): ...new function.
18904 (pass_machine_reorg): Convert from a global struct to a subclass of
18905 rtl_opt_pass along with...
18906 (pass_data_machine_reorg): ...new pass_data instance and...
18907 (make_pass_machine_reorg): ...new function.
18908 * sched-rgn.c (pass_sched): Convert from a global struct to a subclass
18909 of rtl_opt_pass along with...
18910 (pass_data_sched): ...new pass_data instance and...
18911 (make_pass_sched): ...new function.
18912 (pass_sched2): Convert from a global struct to a subclass of
18913 rtl_opt_pass along with...
18914 (pass_data_sched2): ...new pass_data instance and...
18915 (make_pass_sched2): ...new function.
18916 * stack-ptr-mod.c (pass_stack_ptr_mod): Convert from a global struct
18917 to a subclass of rtl_opt_pass along with...
18918 (pass_data_stack_ptr_mod): ...new pass_data instance and...
18919 (make_pass_stack_ptr_mod): ...new function.
18920 * store-motion.c (pass_rtl_store_motion): Convert from a global struct
18921 to a subclass of rtl_opt_pass along with...
18922 (pass_data_rtl_store_motion): ...new pass_data instance and...
18923 (make_pass_rtl_store_motion): ...new function.
18924 * tracer.c (pass_tracer): Convert from a global struct to a subclass
18925 of gimple_opt_pass along with...
18926 (pass_data_tracer): ...new pass_data instance and...
18927 (make_pass_tracer): ...new function.
18928 * trans-mem.c (pass_diagnose_tm_blocks): Convert from a global struct
18929 to a subclass of gimple_opt_pass along with...
18930 (pass_data_diagnose_tm_blocks): ...new pass_data instance and...
18931 (make_pass_diagnose_tm_blocks): ...new function.
18932 (pass_lower_tm): Convert from a global struct to a subclass of
18933 gimple_opt_pass along with...
18934 (pass_data_lower_tm): ...new pass_data instance and...
18935 (make_pass_lower_tm): ...new function.
18936 (pass_tm_init): Convert from a global struct to a subclass of
18937 gimple_opt_pass along with...
18938 (pass_data_tm_init): ...new pass_data instance and...
18939 (make_pass_tm_init): ...new function.
18940 (pass_tm_mark): Convert from a global struct to a subclass of
18941 gimple_opt_pass along with...
18942 (pass_data_tm_mark): ...new pass_data instance and...
18943 (make_pass_tm_mark): ...new function.
18944 (pass_tm_edges): Convert from a global struct to a subclass of
18945 gimple_opt_pass along with...
18946 (pass_data_tm_edges): ...new pass_data instance and...
18947 (make_pass_tm_edges): ...new function.
18948 (pass_tm_memopt): Convert from a global struct to a subclass of
18949 gimple_opt_pass along with...
18950 (pass_data_tm_memopt): ...new pass_data instance and...
18951 (make_pass_tm_memopt): ...new function.
18952 (pass_ipa_tm): Convert from a global struct to a subclass of
18953 simple_ipa_opt_pass along with...
18954 (pass_data_ipa_tm): ...new pass_data instance and...
18955 (make_pass_ipa_tm): ...new function.
18956 * tree-call-cdce.c (pass_call_cdce): Convert from a global struct to a
18957 subclass of gimple_opt_pass along with...
18958 (pass_data_call_cdce): ...new pass_data instance and...
18959 (make_pass_call_cdce): ...new function.
18960 * tree-cfg.c (pass_build_cfg): Convert from a global struct to a
18961 subclass of gimple_opt_pass along with...
18962 (pass_data_build_cfg): ...new pass_data instance and...
18963 (make_pass_build_cfg): ...new function.
18964 (pass_split_crit_edges): Convert from a global struct to a subclass of
18965 gimple_opt_pass along with...
18966 (pass_data_split_crit_edges): ...new pass_data instance and...
18967 (make_pass_split_crit_edges): ...new function.
18968 (pass_warn_function_return): Convert from a global struct to a
18969 subclass of gimple_opt_pass along with...
18970 (pass_data_warn_function_return): ...new pass_data instance and...
18971 (make_pass_warn_function_return): ...new function.
18972 (pass_warn_function_noreturn): Convert from a global struct to a
18973 subclass of gimple_opt_pass along with...
18974 (pass_data_warn_function_noreturn): ...new pass_data instance and...
18975 (make_pass_warn_function_noreturn): ...new function.
18976 (pass_warn_unused_result): Convert from a global struct to a subclass
18977 of gimple_opt_pass along with...
18978 (pass_data_warn_unused_result): ...new pass_data instance and...
18979 (make_pass_warn_unused_result): ...new function.
18980 * tree-cfgcleanup.c (pass_merge_phi): Convert from a global struct to
18981 a subclass of gimple_opt_pass along with...
18982 (pass_data_merge_phi): ...new pass_data instance and...
18983 (make_pass_merge_phi): ...new function.
18984 * tree-complex.c (pass_lower_complex): Convert from a global struct to
18985 a subclass of gimple_opt_pass along with...
18986 (pass_data_lower_complex): ...new pass_data instance and...
18987 (make_pass_lower_complex): ...new function.
18988 (pass_lower_complex_O0): Convert from a global struct to a subclass of
18989 gimple_opt_pass along with...
18990 (pass_data_lower_complex_O0): ...new pass_data instance and...
18991 (make_pass_lower_complex_O0): ...new function.
18992 * tree-eh.c (pass_lower_eh): Convert from a global struct to a
18993 subclass of gimple_opt_pass along with...
18994 (pass_data_lower_eh): ...new pass_data instance and...
18995 (make_pass_lower_eh): ...new function.
18996 (pass_refactor_eh): Convert from a global struct to a subclass of
18997 gimple_opt_pass along with...
18998 (pass_data_refactor_eh): ...new pass_data instance and...
18999 (make_pass_refactor_eh): ...new function.
19000 (pass_lower_resx): Convert from a global struct to a subclass of
19001 gimple_opt_pass along with...
19002 (pass_data_lower_resx): ...new pass_data instance and...
19003 (make_pass_lower_resx): ...new function.
19004 (pass_lower_eh_dispatch): Convert from a global struct to a subclass
19005 of gimple_opt_pass along with...
19006 (pass_data_lower_eh_dispatch): ...new pass_data instance and...
19007 (make_pass_lower_eh_dispatch): ...new function.
19008 (pass_cleanup_eh): Convert from a global struct to a subclass of
19009 gimple_opt_pass along with...
19010 (pass_data_cleanup_eh): ...new pass_data instance and...
19011 (make_pass_cleanup_eh): ...new function.
19012 * tree-emutls.c (pass_ipa_lower_emutls): Convert from a global struct
19013 to a subclass of simple_ipa_opt_pass along with...
19014 (pass_data_ipa_lower_emutls): ...new pass_data instance and...
19015 (make_pass_ipa_lower_emutls): ...new function.
19016 * tree-if-conv.c (pass_if_conversion): Convert from a global struct to
19017 a subclass of gimple_opt_pass along with...
19018 (pass_data_if_conversion): ...new pass_data instance and...
19019 (make_pass_if_conversion): ...new function.
19020 * tree-into-ssa.c (pass_build_ssa): Convert from a global struct to a
19021 subclass of gimple_opt_pass along with...
19022 (pass_data_build_ssa): ...new pass_data instance and...
19023 (make_pass_build_ssa): ...new function.
19024 * tree-loop-distribution.c (pass_loop_distribution): Convert from a
19025 global struct to a subclass of gimple_opt_pass along with...
19026 (pass_data_loop_distribution): ...new pass_data instance and...
19027 (make_pass_loop_distribution): ...new function.
19028 * tree-mudflap.c (pass_mudflap_1): Convert from a global struct to a
19029 subclass of gimple_opt_pass along with...
19030 (pass_data_mudflap_1): ...new pass_data instance and...
19031 (make_pass_mudflap_1): ...new function.
19032 (pass_mudflap_2): Convert from a global struct to a subclass of
19033 gimple_opt_pass along with...
19034 (pass_data_mudflap_2): ...new pass_data instance and...
19035 (make_pass_mudflap_2): ...new function.
19036 * tree-nomudflap.c (pass_mudflap_1): Convert from a global struct to a
19037 subclass of gimple_opt_pass along with...
19038 (pass_data_mudflap_1): ...new pass_data instance and...
19039 (make_pass_mudflap_1): ...new function.
19040 (pass_mudflap_2): Convert from a global struct to a subclass of
19041 gimple_opt_pass along with...
19042 (pass_data_mudflap_2): ...new pass_data instance and...
19043 (make_pass_mudflap_2): ...new function.
19044 * tree-nrv.c (pass_nrv): Convert from a global struct to a subclass of
19045 gimple_opt_pass along with...
19046 (pass_data_nrv): ...new pass_data instance and...
19047 (make_pass_nrv): ...new function.
19048 (pass_return_slot): Convert from a global struct to a subclass of
19049 gimple_opt_pass along with...
19050 (pass_data_return_slot): ...new pass_data instance and...
19051 (make_pass_return_slot): ...new function.
19052 * tree-object-size.c (pass_object_sizes): Convert from a global struct
19053 to a subclass of gimple_opt_pass along with...
19054 (pass_data_object_sizes): ...new pass_data instance and...
19055 (make_pass_object_sizes): ...new function.
19056 * tree-optimize.c (pass_cleanup_cfg_post_optimizing): Convert from a
19057 global struct to a subclass of gimple_opt_pass along with...
19058 (pass_data_cleanup_cfg_post_optimizing): ...new pass_data instance
19060 (make_pass_cleanup_cfg_post_optimizing): ...new function.
19061 (pass_fixup_cfg): Convert from a global struct to a subclass of
19062 gimple_opt_pass along with...
19063 (pass_data_fixup_cfg): ...new pass_data instance and...
19064 (make_pass_fixup_cfg): ...new function.
19065 * tree-pass.h (pass_mudflap_1): Replace declaration with that of...
19066 (make_pass_mudflap_1): ...new function.
19067 (pass_mudflap_2): Replace declaration with that of...
19068 (make_pass_mudflap_2): ...new function.
19069 (pass_asan): Replace declaration with that of...
19070 (make_pass_asan): ...new function.
19071 (pass_asan_O0): Replace declaration with that of...
19072 (make_pass_asan_O0): ...new function.
19073 (pass_tsan): Replace declaration with that of...
19074 (make_pass_tsan): ...new function.
19075 (pass_tsan_O0): Replace declaration with that of...
19076 (make_pass_tsan_O0): ...new function.
19077 (pass_lower_cf): Replace declaration with that of...
19078 (make_pass_lower_cf): ...new function.
19079 (pass_refactor_eh): Replace declaration with that of...
19080 (make_pass_refactor_eh): ...new function.
19081 (pass_lower_eh): Replace declaration with that of...
19082 (make_pass_lower_eh): ...new function.
19083 (pass_lower_eh_dispatch): Replace declaration with that of...
19084 (make_pass_lower_eh_dispatch): ...new function.
19085 (pass_lower_resx): Replace declaration with that of...
19086 (make_pass_lower_resx): ...new function.
19087 (pass_build_cfg): Replace declaration with that of...
19088 (make_pass_build_cfg): ...new function.
19089 (pass_early_tree_profile): Replace declaration with that of...
19090 (make_pass_early_tree_profile): ...new function.
19091 (pass_cleanup_eh): Replace declaration with that of...
19092 (make_pass_cleanup_eh): ...new function.
19093 (pass_sra): Replace declaration with that of...
19094 (make_pass_sra): ...new function.
19095 (pass_sra_early): Replace declaration with that of...
19096 (make_pass_sra_early): ...new function.
19097 (pass_early_ipa_sra): Replace declaration with that of...
19098 (make_pass_early_ipa_sra): ...new function.
19099 (pass_tail_recursion): Replace declaration with that of...
19100 (make_pass_tail_recursion): ...new function.
19101 (pass_tail_calls): Replace declaration with that of...
19102 (make_pass_tail_calls): ...new function.
19103 (pass_tree_loop): Replace declaration with that of...
19104 (make_pass_tree_loop): ...new function.
19105 (pass_tree_loop_init): Replace declaration with that of...
19106 (make_pass_tree_loop_init): ...new function.
19107 (pass_lim): Replace declaration with that of...
19108 (make_pass_lim): ...new function.
19109 (pass_tree_unswitch): Replace declaration with that of...
19110 (make_pass_tree_unswitch): ...new function.
19111 (pass_predcom): Replace declaration with that of...
19112 (make_pass_predcom): ...new function.
19113 (pass_iv_canon): Replace declaration with that of...
19114 (make_pass_iv_canon): ...new function.
19115 (pass_scev_cprop): Replace declaration with that of...
19116 (make_pass_scev_cprop): ...new function.
19117 (pass_empty_loop): Replace declaration with that of...
19118 (make_pass_empty_loop): ...new function.
19119 (pass_record_bounds): Replace declaration with that of...
19120 (make_pass_record_bounds): ...new function.
19121 (pass_graphite): Replace declaration with that of...
19122 (make_pass_graphite): ...new function.
19123 (pass_graphite_transforms): Replace declaration with that of...
19124 (make_pass_graphite_transforms): ...new function.
19125 (pass_if_conversion): Replace declaration with that of...
19126 (make_pass_if_conversion): ...new function.
19127 (pass_loop_distribution): Replace declaration with that of...
19128 (make_pass_loop_distribution): ...new function.
19129 (pass_vectorize): Replace declaration with that of...
19130 (make_pass_vectorize): ...new function.
19131 (pass_slp_vectorize): Replace declaration with that of...
19132 (make_pass_slp_vectorize): ...new function.
19133 (pass_complete_unroll): Replace declaration with that of...
19134 (make_pass_complete_unroll): ...new function.
19135 (pass_complete_unrolli): Replace declaration with that of...
19136 (make_pass_complete_unrolli): ...new function.
19137 (pass_parallelize_loops): Replace declaration with that of...
19138 (make_pass_parallelize_loops): ...new function.
19139 (pass_loop_prefetch): Replace declaration with that of...
19140 (make_pass_loop_prefetch): ...new function.
19141 (pass_iv_optimize): Replace declaration with that of...
19142 (make_pass_iv_optimize): ...new function.
19143 (pass_tree_loop_done): Replace declaration with that of...
19144 (make_pass_tree_loop_done): ...new function.
19145 (pass_ch): Replace declaration with that of...
19146 (make_pass_ch): ...new function.
19147 (pass_ccp): Replace declaration with that of...
19148 (make_pass_ccp): ...new function.
19149 (pass_phi_only_cprop): Replace declaration with that of...
19150 (make_pass_phi_only_cprop): ...new function.
19151 (pass_build_ssa): Replace declaration with that of...
19152 (make_pass_build_ssa): ...new function.
19153 (pass_build_alias): Replace declaration with that of...
19154 (make_pass_build_alias): ...new function.
19155 (pass_build_ealias): Replace declaration with that of...
19156 (make_pass_build_ealias): ...new function.
19157 (pass_dominator): Replace declaration with that of...
19158 (make_pass_dominator): ...new function.
19159 (pass_dce): Replace declaration with that of...
19160 (make_pass_dce): ...new function.
19161 (pass_dce_loop): Replace declaration with that of...
19162 (make_pass_dce_loop): ...new function.
19163 (pass_cd_dce): Replace declaration with that of...
19164 (make_pass_cd_dce): ...new function.
19165 (pass_call_cdce): Replace declaration with that of...
19166 (make_pass_call_cdce): ...new function.
19167 (pass_merge_phi): Replace declaration with that of...
19168 (make_pass_merge_phi): ...new function.
19169 (pass_split_crit_edges): Replace declaration with that of...
19170 (make_pass_split_crit_edges): ...new function.
19171 (pass_pre): Replace declaration with that of...
19172 (make_pass_pre): ...new function.
19173 (pass_profile): Replace declaration with that of...
19174 (make_pass_profile): ...new function.
19175 (pass_strip_predict_hints): Replace declaration with that of...
19176 (make_pass_strip_predict_hints): ...new function.
19177 (pass_lower_complex_O0): Replace declaration with that of...
19178 (make_pass_lower_complex_O0): ...new function.
19179 (pass_lower_complex): Replace declaration with that of...
19180 (make_pass_lower_complex): ...new function.
19181 (pass_lower_vector): Replace declaration with that of...
19182 (make_pass_lower_vector): ...new function.
19183 (pass_lower_vector_ssa): Replace declaration with that of...
19184 (make_pass_lower_vector_ssa): ...new function.
19185 (pass_lower_omp): Replace declaration with that of...
19186 (make_pass_lower_omp): ...new function.
19187 (pass_diagnose_omp_blocks): Replace declaration with that of...
19188 (make_pass_diagnose_omp_blocks): ...new function.
19189 (pass_expand_omp): Replace declaration with that of...
19190 (make_pass_expand_omp): ...new function.
19191 (pass_expand_omp_ssa): Replace declaration with that of...
19192 (make_pass_expand_omp_ssa): ...new function.
19193 (pass_object_sizes): Replace declaration with that of...
19194 (make_pass_object_sizes): ...new function.
19195 (pass_strlen): Replace declaration with that of...
19196 (make_pass_strlen): ...new function.
19197 (pass_fold_builtins): Replace declaration with that of...
19198 (make_pass_fold_builtins): ...new function.
19199 (pass_stdarg): Replace declaration with that of...
19200 (make_pass_stdarg): ...new function.
19201 (pass_early_warn_uninitialized): Replace declaration with that of...
19202 (make_pass_early_warn_uninitialized): ...new function.
19203 (pass_late_warn_uninitialized): Replace declaration with that of...
19204 (make_pass_late_warn_uninitialized): ...new function.
19205 (pass_cse_reciprocals): Replace declaration with that of...
19206 (make_pass_cse_reciprocals): ...new function.
19207 (pass_cse_sincos): Replace declaration with that of...
19208 (make_pass_cse_sincos): ...new function.
19209 (pass_optimize_bswap): Replace declaration with that of...
19210 (make_pass_optimize_bswap): ...new function.
19211 (pass_optimize_widening_mul): Replace declaration with that of...
19212 (make_pass_optimize_widening_mul): ...new function.
19213 (pass_warn_function_return): Replace declaration with that of...
19214 (make_pass_warn_function_return): ...new function.
19215 (pass_warn_function_noreturn): Replace declaration with that of...
19216 (make_pass_warn_function_noreturn): ...new function.
19217 (pass_cselim): Replace declaration with that of...
19218 (make_pass_cselim): ...new function.
19219 (pass_phiopt): Replace declaration with that of...
19220 (make_pass_phiopt): ...new function.
19221 (pass_forwprop): Replace declaration with that of...
19222 (make_pass_forwprop): ...new function.
19223 (pass_phiprop): Replace declaration with that of...
19224 (make_pass_phiprop): ...new function.
19225 (pass_tree_ifcombine): Replace declaration with that of...
19226 (make_pass_tree_ifcombine): ...new function.
19227 (pass_dse): Replace declaration with that of...
19228 (make_pass_dse): ...new function.
19229 (pass_nrv): Replace declaration with that of...
19230 (make_pass_nrv): ...new function.
19231 (pass_rename_ssa_copies): Replace declaration with that of...
19232 (make_pass_rename_ssa_copies): ...new function.
19233 (pass_sink_code): Replace declaration with that of...
19234 (make_pass_sink_code): ...new function.
19235 (pass_fre): Replace declaration with that of...
19236 (make_pass_fre): ...new function.
19237 (pass_check_data_deps): Replace declaration with that of...
19238 (make_pass_check_data_deps): ...new function.
19239 (pass_copy_prop): Replace declaration with that of...
19240 (make_pass_copy_prop): ...new function.
19241 (pass_vrp): Replace declaration with that of...
19242 (make_pass_vrp): ...new function.
19243 (pass_uncprop): Replace declaration with that of...
19244 (make_pass_uncprop): ...new function.
19245 (pass_return_slot): Replace declaration with that of...
19246 (make_pass_return_slot): ...new function.
19247 (pass_reassoc): Replace declaration with that of...
19248 (make_pass_reassoc): ...new function.
19249 (pass_rebuild_cgraph_edges): Replace declaration with that of...
19250 (make_pass_rebuild_cgraph_edges): ...new function.
19251 (pass_remove_cgraph_callee_edges): Replace declaration with that of...
19252 (make_pass_remove_cgraph_callee_edges): ...new function.
19253 (pass_build_cgraph_edges): Replace declaration with that of...
19254 (make_pass_build_cgraph_edges): ...new function.
19255 (pass_local_pure_const): Replace declaration with that of...
19256 (make_pass_local_pure_const): ...new function.
19257 (pass_tracer): Replace declaration with that of...
19258 (make_pass_tracer): ...new function.
19259 (pass_warn_unused_result): Replace declaration with that of...
19260 (make_pass_warn_unused_result): ...new function.
19261 (pass_diagnose_tm_blocks): Replace declaration with that of...
19262 (make_pass_diagnose_tm_blocks): ...new function.
19263 (pass_lower_tm): Replace declaration with that of...
19264 (make_pass_lower_tm): ...new function.
19265 (pass_tm_init): Replace declaration with that of...
19266 (make_pass_tm_init): ...new function.
19267 (pass_tm_mark): Replace declaration with that of...
19268 (make_pass_tm_mark): ...new function.
19269 (pass_tm_memopt): Replace declaration with that of...
19270 (make_pass_tm_memopt): ...new function.
19271 (pass_tm_edges): Replace declaration with that of...
19272 (make_pass_tm_edges): ...new function.
19273 (pass_split_functions): Replace declaration with that of...
19274 (make_pass_split_functions): ...new function.
19275 (pass_feedback_split_functions): Replace declaration with that of...
19276 (make_pass_feedback_split_functions): ...new function.
19277 (pass_strength_reduction): Replace declaration with that of...
19278 (make_pass_strength_reduction): ...new function.
19279 (pass_ipa_lower_emutls): Replace declaration with that of...
19280 (make_pass_ipa_lower_emutls): ...new function.
19281 (pass_ipa_function_and_variable_visibility): Replace declaration with
19283 (make_pass_ipa_function_and_variable_visibility): ...new function.
19284 (pass_ipa_tree_profile): Replace declaration with that of...
19285 (make_pass_ipa_tree_profile): ...new function.
19286 (pass_early_local_passes): Replace declaration with that of...
19287 (make_pass_early_local_passes): ...new function.
19288 (pass_ipa_whole_program_visibility): Replace declaration with that
19290 (make_pass_ipa_whole_program_visibility): ...new function.
19291 (pass_ipa_lto_gimple_out): Replace declaration with that of...
19292 (make_pass_ipa_lto_gimple_out): ...new function.
19293 (pass_ipa_increase_alignment): Replace declaration with that of...
19294 (make_pass_ipa_increase_alignment): ...new function.
19295 (pass_ipa_inline): Replace declaration with that of...
19296 (make_pass_ipa_inline): ...new function.
19297 (pass_ipa_free_lang_data): Replace declaration with that of...
19298 (make_pass_ipa_free_lang_data): ...new function.
19299 (pass_ipa_free_inline_summary): Replace declaration with that of...
19300 (make_pass_ipa_free_inline_summary): ...new function.
19301 (pass_ipa_cp): Replace declaration with that of...
19302 (make_pass_ipa_cp): ...new function.
19303 (pass_ipa_reference): Replace declaration with that of...
19304 (make_pass_ipa_reference): ...new function.
19305 (pass_ipa_pure_const): Replace declaration with that of...
19306 (make_pass_ipa_pure_const): ...new function.
19307 (pass_ipa_pta): Replace declaration with that of...
19308 (make_pass_ipa_pta): ...new function.
19309 (pass_ipa_lto_finish_out): Replace declaration with that of...
19310 (make_pass_ipa_lto_finish_out): ...new function.
19311 (pass_ipa_tm): Replace declaration with that of...
19312 (make_pass_ipa_tm): ...new function.
19313 (pass_ipa_profile): Replace declaration with that of...
19314 (make_pass_ipa_profile): ...new function.
19315 (pass_ipa_cdtor_merge): Replace declaration with that of...
19316 (make_pass_ipa_cdtor_merge): ...new function.
19317 (pass_cleanup_cfg_post_optimizing): Replace declaration with that
19319 (make_pass_cleanup_cfg_post_optimizing): ...new function.
19320 (pass_init_datastructures): Replace declaration with that of...
19321 (make_pass_init_datastructures): ...new function.
19322 (pass_fixup_cfg): Replace declaration with that of...
19323 (make_pass_fixup_cfg): ...new function.
19324 (pass_expand): Replace declaration with that of...
19325 (make_pass_expand): ...new function.
19326 (pass_instantiate_virtual_regs): Replace declaration with that of...
19327 (make_pass_instantiate_virtual_regs): ...new function.
19328 (pass_rtl_fwprop): Replace declaration with that of...
19329 (make_pass_rtl_fwprop): ...new function.
19330 (pass_rtl_fwprop_addr): Replace declaration with that of...
19331 (make_pass_rtl_fwprop_addr): ...new function.
19332 (pass_jump): Replace declaration with that of...
19333 (make_pass_jump): ...new function.
19334 (pass_jump2): Replace declaration with that of...
19335 (make_pass_jump2): ...new function.
19336 (pass_lower_subreg): Replace declaration with that of...
19337 (make_pass_lower_subreg): ...new function.
19338 (pass_cse): Replace declaration with that of...
19339 (make_pass_cse): ...new function.
19340 (pass_fast_rtl_dce): Replace declaration with that of...
19341 (make_pass_fast_rtl_dce): ...new function.
19342 (pass_ud_rtl_dce): Replace declaration with that of...
19343 (make_pass_ud_rtl_dce): ...new function.
19344 (pass_rtl_dce): Replace declaration with that of...
19345 (make_pass_rtl_dce): ...new function.
19346 (pass_rtl_dse1): Replace declaration with that of...
19347 (make_pass_rtl_dse1): ...new function.
19348 (pass_rtl_dse2): Replace declaration with that of...
19349 (make_pass_rtl_dse2): ...new function.
19350 (pass_rtl_dse3): Replace declaration with that of...
19351 (make_pass_rtl_dse3): ...new function.
19352 (pass_rtl_cprop): Replace declaration with that of...
19353 (make_pass_rtl_cprop): ...new function.
19354 (pass_rtl_pre): Replace declaration with that of...
19355 (make_pass_rtl_pre): ...new function.
19356 (pass_rtl_hoist): Replace declaration with that of...
19357 (make_pass_rtl_hoist): ...new function.
19358 (pass_rtl_store_motion): Replace declaration with that of...
19359 (make_pass_rtl_store_motion): ...new function.
19360 (pass_cse_after_global_opts): Replace declaration with that of...
19361 (make_pass_cse_after_global_opts): ...new function.
19362 (pass_rtl_ifcvt): Replace declaration with that of...
19363 (make_pass_rtl_ifcvt): ...new function.
19364 (pass_into_cfg_layout_mode): Replace declaration with that of...
19365 (make_pass_into_cfg_layout_mode): ...new function.
19366 (pass_outof_cfg_layout_mode): Replace declaration with that of...
19367 (make_pass_outof_cfg_layout_mode): ...new function.
19368 (pass_loop2): Replace declaration with that of...
19369 (make_pass_loop2): ...new function.
19370 (pass_rtl_loop_init): Replace declaration with that of...
19371 (make_pass_rtl_loop_init): ...new function.
19372 (pass_rtl_move_loop_invariants): Replace declaration with that of...
19373 (make_pass_rtl_move_loop_invariants): ...new function.
19374 (pass_rtl_unswitch): Replace declaration with that of...
19375 (make_pass_rtl_unswitch): ...new function.
19376 (pass_rtl_unroll_and_peel_loops): Replace declaration with that of...
19377 (make_pass_rtl_unroll_and_peel_loops): ...new function.
19378 (pass_rtl_doloop): Replace declaration with that of...
19379 (make_pass_rtl_doloop): ...new function.
19380 (pass_rtl_loop_done): Replace declaration with that of...
19381 (make_pass_rtl_loop_done): ...new function.
19382 (pass_web): Replace declaration with that of...
19383 (make_pass_web): ...new function.
19384 (pass_cse2): Replace declaration with that of...
19385 (make_pass_cse2): ...new function.
19386 (pass_df_initialize_opt): Replace declaration with that of...
19387 (make_pass_df_initialize_opt): ...new function.
19388 (pass_df_initialize_no_opt): Replace declaration with that of...
19389 (make_pass_df_initialize_no_opt): ...new function.
19390 (pass_reginfo_init): Replace declaration with that of...
19391 (make_pass_reginfo_init): ...new function.
19392 (pass_inc_dec): Replace declaration with that of...
19393 (make_pass_inc_dec): ...new function.
19394 (pass_stack_ptr_mod): Replace declaration with that of...
19395 (make_pass_stack_ptr_mod): ...new function.
19396 (pass_initialize_regs): Replace declaration with that of...
19397 (make_pass_initialize_regs): ...new function.
19398 (pass_combine): Replace declaration with that of...
19399 (make_pass_combine): ...new function.
19400 (pass_if_after_combine): Replace declaration with that of...
19401 (make_pass_if_after_combine): ...new function.
19402 (pass_ree): Replace declaration with that of...
19403 (make_pass_ree): ...new function.
19404 (pass_partition_blocks): Replace declaration with that of...
19405 (make_pass_partition_blocks): ...new function.
19406 (pass_match_asm_constraints): Replace declaration with that of...
19407 (make_pass_match_asm_constraints): ...new function.
19408 (pass_regmove): Replace declaration with that of...
19409 (make_pass_regmove): ...new function.
19410 (pass_split_all_insns): Replace declaration with that of...
19411 (make_pass_split_all_insns): ...new function.
19412 (pass_fast_rtl_byte_dce): Replace declaration with that of...
19413 (make_pass_fast_rtl_byte_dce): ...new function.
19414 (pass_lower_subreg2): Replace declaration with that of...
19415 (make_pass_lower_subreg2): ...new function.
19416 (pass_mode_switching): Replace declaration with that of...
19417 (make_pass_mode_switching): ...new function.
19418 (pass_sms): Replace declaration with that of...
19419 (make_pass_sms): ...new function.
19420 (pass_sched): Replace declaration with that of...
19421 (make_pass_sched): ...new function.
19422 (pass_ira): Replace declaration with that of...
19423 (make_pass_ira): ...new function.
19424 (pass_reload): Replace declaration with that of...
19425 (make_pass_reload): ...new function.
19426 (pass_clean_state): Replace declaration with that of...
19427 (make_pass_clean_state): ...new function.
19428 (pass_branch_prob): Replace declaration with that of...
19429 (make_pass_branch_prob): ...new function.
19430 (pass_value_profile_transformations): Replace declaration with that
19432 (make_pass_value_profile_transformations): ...new function.
19433 (pass_postreload_cse): Replace declaration with that of...
19434 (make_pass_postreload_cse): ...new function.
19435 (pass_gcse2): Replace declaration with that of...
19436 (make_pass_gcse2): ...new function.
19437 (pass_split_after_reload): Replace declaration with that of...
19438 (make_pass_split_after_reload): ...new function.
19439 (pass_branch_target_load_optimize1): Replace declaration with that
19441 (make_pass_branch_target_load_optimize1): ...new function.
19442 (pass_thread_prologue_and_epilogue): Replace declaration with that
19444 (make_pass_thread_prologue_and_epilogue): ...new function.
19445 (pass_stack_adjustments): Replace declaration with that of...
19446 (make_pass_stack_adjustments): ...new function.
19447 (pass_peephole2): Replace declaration with that of...
19448 (make_pass_peephole2): ...new function.
19449 (pass_if_after_reload): Replace declaration with that of...
19450 (make_pass_if_after_reload): ...new function.
19451 (pass_regrename): Replace declaration with that of...
19452 (make_pass_regrename): ...new function.
19453 (pass_cprop_hardreg): Replace declaration with that of...
19454 (make_pass_cprop_hardreg): ...new function.
19455 (pass_reorder_blocks): Replace declaration with that of...
19456 (make_pass_reorder_blocks): ...new function.
19457 (pass_branch_target_load_optimize2): Replace declaration with that
19459 (make_pass_branch_target_load_optimize2): ...new function.
19460 (pass_leaf_regs): Replace declaration with that of...
19461 (make_pass_leaf_regs): ...new function.
19462 (pass_split_before_sched2): Replace declaration with that of...
19463 (make_pass_split_before_sched2): ...new function.
19464 (pass_compare_elim_after_reload): Replace declaration with that of...
19465 (make_pass_compare_elim_after_reload): ...new function.
19466 (pass_sched2): Replace declaration with that of...
19467 (make_pass_sched2): ...new function.
19468 (pass_stack_regs): Replace declaration with that of...
19469 (make_pass_stack_regs): ...new function.
19470 (pass_stack_regs_run): Replace declaration with that of...
19471 (make_pass_stack_regs_run): ...new function.
19472 (pass_df_finish): Replace declaration with that of...
19473 (make_pass_df_finish): ...new function.
19474 (pass_compute_alignments): Replace declaration with that of...
19475 (make_pass_compute_alignments): ...new function.
19476 (pass_duplicate_computed_gotos): Replace declaration with that of...
19477 (make_pass_duplicate_computed_gotos): ...new function.
19478 (pass_variable_tracking): Replace declaration with that of...
19479 (make_pass_variable_tracking): ...new function.
19480 (pass_free_cfg): Replace declaration with that of...
19481 (make_pass_free_cfg): ...new function.
19482 (pass_machine_reorg): Replace declaration with that of...
19483 (make_pass_machine_reorg): ...new function.
19484 (pass_cleanup_barriers): Replace declaration with that of...
19485 (make_pass_cleanup_barriers): ...new function.
19486 (pass_delay_slots): Replace declaration with that of...
19487 (make_pass_delay_slots): ...new function.
19488 (pass_split_for_shorten_branches): Replace declaration with that of...
19489 (make_pass_split_for_shorten_branches): ...new function.
19490 (pass_split_before_regstack): Replace declaration with that of...
19491 (make_pass_split_before_regstack): ...new function.
19492 (pass_convert_to_eh_region_ranges): Replace declaration with that
19494 (make_pass_convert_to_eh_region_ranges): ...new function.
19495 (pass_shorten_branches): Replace declaration with that of...
19496 (make_pass_shorten_branches): ...new function.
19497 (pass_set_nothrow_function_flags): Replace declaration with that of...
19498 (make_pass_set_nothrow_function_flags): ...new function.
19499 (pass_dwarf2_frame): Replace declaration with that of...
19500 (make_pass_dwarf2_frame): ...new function.
19501 (pass_final): Replace declaration with that of...
19502 (make_pass_final): ...new function.
19503 (pass_rtl_seqabstr): Replace declaration with that of...
19504 (make_pass_rtl_seqabstr): ...new function.
19505 (pass_release_ssa_names): Replace declaration with that of...
19506 (make_pass_release_ssa_names): ...new function.
19507 (pass_early_inline): Replace declaration with that of...
19508 (make_pass_early_inline): ...new function.
19509 (pass_inline_parameters): Replace declaration with that of...
19510 (make_pass_inline_parameters): ...new function.
19511 (pass_update_address_taken): Replace declaration with that of...
19512 (make_pass_update_address_taken): ...new function.
19513 (pass_convert_switch): Replace declaration with that of...
19514 (make_pass_convert_switch): ...new function.
19515 * tree-profile.c (pass_ipa_tree_profile): Convert from a global struct
19516 to a subclass of simple_ipa_opt_pass along with...
19517 (pass_data_ipa_tree_profile): ...new pass_data instance and...
19518 (make_pass_ipa_tree_profile): ...new function.
19519 * tree-sra.c (pass_sra_early): Convert from a global struct to a
19520 subclass of gimple_opt_pass along with...
19521 (pass_data_sra_early): ...new pass_data instance and...
19522 (make_pass_sra_early): ...new function.
19523 (pass_sra): Convert from a global struct to a subclass of
19524 gimple_opt_pass along with...
19525 (pass_data_sra): ...new pass_data instance and...
19526 (make_pass_sra): ...new function.
19527 (pass_early_ipa_sra): Convert from a global struct to a subclass of
19528 gimple_opt_pass along with...
19529 (pass_data_early_ipa_sra): ...new pass_data instance and...
19530 (make_pass_early_ipa_sra): ...new function.
19531 * tree-ssa-ccp.c (pass_ccp): Convert from a global struct to a
19532 subclass of gimple_opt_pass along with...
19533 (pass_data_ccp): ...new pass_data instance and...
19534 (make_pass_ccp): ...new function.
19535 (pass_fold_builtins): Convert from a global struct to a subclass of
19536 gimple_opt_pass along with...
19537 (pass_data_fold_builtins): ...new pass_data instance and...
19538 (make_pass_fold_builtins): ...new function.
19539 * tree-ssa-copy.c (pass_copy_prop): Convert from a global struct to a
19540 subclass of gimple_opt_pass along with...
19541 (pass_data_copy_prop): ...new pass_data instance and...
19542 (make_pass_copy_prop): ...new function.
19543 * tree-ssa-copyrename.c (pass_rename_ssa_copies): Convert from a
19544 global struct to a subclass of gimple_opt_pass along with...
19545 (pass_data_rename_ssa_copies): ...new pass_data instance and...
19546 (make_pass_rename_ssa_copies): ...new function.
19547 * tree-ssa-dce.c (pass_dce): Convert from a global struct to a
19548 subclass of gimple_opt_pass along with...
19549 (pass_data_dce): ...new pass_data instance and...
19550 (make_pass_dce): ...new function.
19551 (pass_dce_loop): Convert from a global struct to a subclass of
19552 gimple_opt_pass along with...
19553 (pass_data_dce_loop): ...new pass_data instance and...
19554 (make_pass_dce_loop): ...new function.
19555 (pass_cd_dce): Convert from a global struct to a subclass of
19556 gimple_opt_pass along with...
19557 (pass_data_cd_dce): ...new pass_data instance and...
19558 (make_pass_cd_dce): ...new function.
19559 * tree-ssa-dom.c (pass_dominator): Convert from a global struct to a
19560 subclass of gimple_opt_pass along with...
19561 (pass_data_dominator): ...new pass_data instance and...
19562 (make_pass_dominator): ...new function.
19563 (pass_phi_only_cprop): Convert from a global struct to a subclass of
19564 gimple_opt_pass along with...
19565 (pass_data_phi_only_cprop): ...new pass_data instance and...
19566 (make_pass_phi_only_cprop): ...new function.
19567 * tree-ssa-dse.c (pass_dse): Convert from a global struct to a
19568 subclass of gimple_opt_pass along with...
19569 (pass_data_dse): ...new pass_data instance and...
19570 (make_pass_dse): ...new function.
19571 * tree-ssa-forwprop.c (pass_forwprop): Convert from a global struct to
19572 a subclass of gimple_opt_pass along with...
19573 (pass_data_forwprop): ...new pass_data instance and...
19574 (make_pass_forwprop): ...new function.
19575 * tree-ssa-ifcombine.c (pass_tree_ifcombine): Convert from a global
19576 struct to a subclass of gimple_opt_pass along with...
19577 (pass_data_tree_ifcombine): ...new pass_data instance and...
19578 (make_pass_tree_ifcombine): ...new function.
19579 * tree-ssa-loop-ch.c (pass_ch): Convert from a global struct to a
19580 subclass of gimple_opt_pass along with...
19581 (pass_data_ch): ...new pass_data instance and...
19582 (make_pass_ch): ...new function.
19583 * tree-ssa-loop.c (pass_tree_loop): Convert from a global struct to a
19584 subclass of gimple_opt_pass along with...
19585 (pass_data_tree_loop): ...new pass_data instance and...
19586 (make_pass_tree_loop): ...new function.
19587 (pass_tree_loop_init): Convert from a global struct to a subclass of
19588 gimple_opt_pass along with...
19589 (pass_data_tree_loop_init): ...new pass_data instance and...
19590 (make_pass_tree_loop_init): ...new function.
19591 (pass_lim): Convert from a global struct to a subclass of
19592 gimple_opt_pass along with...
19593 (pass_data_lim): ...new pass_data instance and...
19594 (make_pass_lim): ...new function.
19595 (pass_tree_unswitch): Convert from a global struct to a subclass of
19596 gimple_opt_pass along with...
19597 (pass_data_tree_unswitch): ...new pass_data instance and...
19598 (make_pass_tree_unswitch): ...new function.
19599 (pass_predcom): Convert from a global struct to a subclass of
19600 gimple_opt_pass along with...
19601 (pass_data_predcom): ...new pass_data instance and...
19602 (make_pass_predcom): ...new function.
19603 (pass_vectorize): Convert from a global struct to a subclass of
19604 gimple_opt_pass along with...
19605 (pass_data_vectorize): ...new pass_data instance and...
19606 (make_pass_vectorize): ...new function.
19607 (pass_graphite): Convert from a global struct to a subclass of
19608 gimple_opt_pass along with...
19609 (pass_data_graphite): ...new pass_data instance and...
19610 (make_pass_graphite): ...new function.
19611 (pass_graphite_transforms): Convert from a global struct to a subclass
19612 of gimple_opt_pass along with...
19613 (pass_data_graphite_transforms): ...new pass_data instance and...
19614 (make_pass_graphite_transforms): ...new function.
19615 (pass_check_data_deps): Convert from a global struct to a subclass of
19616 gimple_opt_pass along with...
19617 (pass_data_check_data_deps): ...new pass_data instance and...
19618 (make_pass_check_data_deps): ...new function.
19619 (pass_iv_canon): Convert from a global struct to a subclass of
19620 gimple_opt_pass along with...
19621 (pass_data_iv_canon): ...new pass_data instance and...
19622 (make_pass_iv_canon): ...new function.
19623 (pass_scev_cprop): Convert from a global struct to a subclass of
19624 gimple_opt_pass along with...
19625 (pass_data_scev_cprop): ...new pass_data instance and...
19626 (make_pass_scev_cprop): ...new function.
19627 (pass_record_bounds): Convert from a global struct to a subclass of
19628 gimple_opt_pass along with...
19629 (pass_data_record_bounds): ...new pass_data instance and...
19630 (make_pass_record_bounds): ...new function.
19631 (pass_complete_unroll): Convert from a global struct to a subclass of
19632 gimple_opt_pass along with...
19633 (pass_data_complete_unroll): ...new pass_data instance and...
19634 (make_pass_complete_unroll): ...new function.
19635 (pass_complete_unrolli): Convert from a global struct to a subclass of
19636 gimple_opt_pass along with...
19637 (pass_data_complete_unrolli): ...new pass_data instance and...
19638 (make_pass_complete_unrolli): ...new function.
19639 (pass_parallelize_loops): Convert from a global struct to a subclass
19640 of gimple_opt_pass along with...
19641 (pass_data_parallelize_loops): ...new pass_data instance and...
19642 (make_pass_parallelize_loops): ...new function.
19643 (pass_loop_prefetch): Convert from a global struct to a subclass of
19644 gimple_opt_pass along with...
19645 (pass_data_loop_prefetch): ...new pass_data instance and...
19646 (make_pass_loop_prefetch): ...new function.
19647 (pass_iv_optimize): Convert from a global struct to a subclass of
19648 gimple_opt_pass along with...
19649 (pass_data_iv_optimize): ...new pass_data instance and...
19650 (make_pass_iv_optimize): ...new function.
19651 (pass_tree_loop_done): Convert from a global struct to a subclass of
19652 gimple_opt_pass along with...
19653 (pass_data_tree_loop_done): ...new pass_data instance and...
19654 (make_pass_tree_loop_done): ...new function.
19655 * tree-ssa-math-opts.c (pass_cse_reciprocals): Convert from a global
19656 struct to a subclass of gimple_opt_pass along with...
19657 (pass_data_cse_reciprocals): ...new pass_data instance and...
19658 (make_pass_cse_reciprocals): ...new function.
19659 (pass_cse_sincos): Convert from a global struct to a subclass of
19660 gimple_opt_pass along with...
19661 (pass_data_cse_sincos): ...new pass_data instance and...
19662 (make_pass_cse_sincos): ...new function.
19663 (pass_optimize_bswap): Convert from a global struct to a subclass of
19664 gimple_opt_pass along with...
19665 (pass_data_optimize_bswap): ...new pass_data instance and...
19666 (make_pass_optimize_bswap): ...new function.
19667 (pass_optimize_widening_mul): Convert from a global struct to a
19668 subclass of gimple_opt_pass along with...
19669 (pass_data_optimize_widening_mul): ...new pass_data instance and...
19670 (make_pass_optimize_widening_mul): ...new function.
19671 * tree-ssa-phiopt.c (pass_phiopt): Convert from a global struct to a
19672 subclass of gimple_opt_pass along with...
19673 (pass_data_phiopt): ...new pass_data instance and...
19674 (make_pass_phiopt): ...new function.
19675 (pass_cselim): Convert from a global struct to a subclass of
19676 gimple_opt_pass along with...
19677 (pass_data_cselim): ...new pass_data instance and...
19678 (make_pass_cselim): ...new function.
19679 * tree-ssa-phiprop.c (pass_phiprop): Convert from a global struct to a
19680 subclass of gimple_opt_pass along with...
19681 (pass_data_phiprop): ...new pass_data instance and...
19682 (make_pass_phiprop): ...new function.
19683 * tree-ssa-pre.c (pass_pre): Convert from a global struct to a
19684 subclass of gimple_opt_pass along with...
19685 (pass_data_pre): ...new pass_data instance and...
19686 (make_pass_pre): ...new function.
19687 (pass_fre): Convert from a global struct to a subclass of
19688 gimple_opt_pass along with...
19689 (pass_data_fre): ...new pass_data instance and...
19690 (make_pass_fre): ...new function.
19691 * tree-ssa-reassoc.c (pass_reassoc): Convert from a global struct to a
19692 subclass of gimple_opt_pass along with...
19693 (pass_data_reassoc): ...new pass_data instance and...
19694 (make_pass_reassoc): ...new function.
19695 * tree-ssa-sink.c (pass_sink_code): Convert from a global struct to a
19696 subclass of gimple_opt_pass along with...
19697 (pass_data_sink_code): ...new pass_data instance and...
19698 (make_pass_sink_code): ...new function.
19699 * tree-ssa-strlen.c (pass_strlen): Convert from a global struct to a
19700 subclass of gimple_opt_pass along with...
19701 (pass_data_strlen): ...new pass_data instance and...
19702 (make_pass_strlen): ...new function.
19703 * tree-ssa-structalias.c (pass_build_alias): Convert from a global
19704 struct to a subclass of gimple_opt_pass along with...
19705 (pass_data_build_alias): ...new pass_data instance and...
19706 (make_pass_build_alias): ...new function.
19707 (pass_build_ealias): Convert from a global struct to a subclass of
19708 gimple_opt_pass along with...
19709 (pass_data_build_ealias): ...new pass_data instance and...
19710 (make_pass_build_ealias): ...new function.
19711 (pass_ipa_pta): Convert from a global struct to a subclass of
19712 simple_ipa_opt_pass along with...
19713 (pass_data_ipa_pta): ...new pass_data instance and...
19714 (make_pass_ipa_pta): ...new function.
19715 * tree-ssa-uncprop.c (pass_uncprop): Convert from a global struct to a
19716 subclass of gimple_opt_pass along with...
19717 (pass_data_uncprop): ...new pass_data instance and...
19718 (make_pass_uncprop): ...new function.
19719 * tree-ssa-uninit.c (pass_late_warn_uninitialized): Convert from a
19720 global struct to a subclass of gimple_opt_pass along with...
19721 (pass_data_late_warn_uninitialized): ...new pass_data instance and...
19722 (make_pass_late_warn_uninitialized): ...new function.
19723 * tree-ssa.c (pass_init_datastructures): Convert from a global struct
19724 to a subclass of gimple_opt_pass along with...
19725 (pass_data_init_datastructures): ...new pass_data instance and...
19726 (make_pass_init_datastructures): ...new function.
19727 (pass_early_warn_uninitialized): Convert from a global struct to a
19728 subclass of gimple_opt_pass along with...
19729 (pass_data_early_warn_uninitialized): ...new pass_data instance and...
19730 (make_pass_early_warn_uninitialized): ...new function.
19731 (pass_update_address_taken): Convert from a global struct to a
19732 subclass of gimple_opt_pass along with...
19733 (pass_data_update_address_taken): ...new pass_data instance and...
19734 (make_pass_update_address_taken): ...new function.
19735 * tree-ssanames.c (pass_release_ssa_names): Convert from a global
19736 struct to a subclass of gimple_opt_pass along with...
19737 (pass_data_release_ssa_names): ...new pass_data instance and...
19738 (make_pass_release_ssa_names): ...new function.
19739 * tree-stdarg.c (pass_stdarg): Convert from a global struct to a
19740 subclass of gimple_opt_pass along with...
19741 (pass_data_stdarg): ...new pass_data instance and...
19742 (make_pass_stdarg): ...new function.
19743 * tree-switch-conversion.c (pass_convert_switch): Convert from a
19744 global struct to a subclass of gimple_opt_pass along with...
19745 (pass_data_convert_switch): ...new pass_data instance and...
19746 (make_pass_convert_switch): ...new function.
19747 * tree-tailcall.c (pass_tail_recursion): Convert from a global struct
19748 to a subclass of gimple_opt_pass along with...
19749 (pass_data_tail_recursion): ...new pass_data instance and...
19750 (make_pass_tail_recursion): ...new function.
19751 (pass_tail_calls): Convert from a global struct to a subclass of
19752 gimple_opt_pass along with...
19753 (pass_data_tail_calls): ...new pass_data instance and...
19754 (make_pass_tail_calls): ...new function.
19755 * tree-vect-generic.c (pass_lower_vector): Convert from a global
19756 struct to a subclass of gimple_opt_pass along with...
19757 (pass_data_lower_vector): ...new pass_data instance and...
19758 (make_pass_lower_vector): ...new function.
19759 (pass_lower_vector_ssa): Convert from a global struct to a subclass of
19760 gimple_opt_pass along with...
19761 (pass_data_lower_vector_ssa): ...new pass_data instance and...
19762 (make_pass_lower_vector_ssa): ...new function.
19763 * tree-vectorizer.c (pass_slp_vectorize): Convert from a global struct
19764 to a subclass of gimple_opt_pass along with...
19765 (pass_data_slp_vectorize): ...new pass_data instance and...
19766 (make_pass_slp_vectorize): ...new function.
19767 (pass_ipa_increase_alignment): Convert from a global struct to a
19768 subclass of simple_ipa_opt_pass along with...
19769 (pass_data_ipa_increase_alignment): ...new pass_data instance and...
19770 (make_pass_ipa_increase_alignment): ...new function.
19771 * tree-vrp.c (pass_vrp): Convert from a global struct to a subclass of
19772 gimple_opt_pass along with...
19773 (pass_data_vrp): ...new pass_data instance and...
19774 (make_pass_vrp): ...new function.
19775 * tree.c (pass_ipa_free_lang_data): Convert from a global struct to a
19776 subclass of simple_ipa_opt_pass along with...
19777 (pass_data_ipa_free_lang_data): ...new pass_data instance and...
19778 (make_pass_ipa_free_lang_data): ...new function.
19779 * tsan.c (pass_tsan): Convert from a global struct to a subclass of
19780 gimple_opt_pass along with...
19781 (pass_data_tsan): ...new pass_data instance and...
19782 (make_pass_tsan): ...new function.
19783 (pass_tsan_O0): Convert from a global struct to a subclass of
19784 gimple_opt_pass along with...
19785 (pass_data_tsan_O0): ...new pass_data instance and...
19786 (make_pass_tsan_O0): ...new function.
19787 * var-tracking.c (pass_variable_tracking): Convert from a global
19788 struct to a subclass of rtl_opt_pass along with...
19789 (pass_data_variable_tracking): ...new pass_data instance and...
19790 (make_pass_variable_tracking): ...new function.
19791 * web.c (pass_web): Convert from a global struct to a subclass of
19792 rtl_opt_pass along with...
19793 (pass_data_web): ...new pass_data instance and...
19794 (make_pass_web): ...new function.
19795 * config/epiphany/epiphany.h (pass_mode_switch_use): Replace
19796 declaration with that of...
19797 (make_pass_mode_switch_use): ...new function.
19798 (pass_resolve_sw_modes): Replace declaration with that of...
19799 (make_pass_resolve_sw_modes): ...new function.
19800 * config/epiphany/mode-switch-use.c (pass_mode_switch_use): Convert
19801 from a global struct to a subclass of rtl_opt_pass along with...
19802 (pass_data_mode_switch_use): ...new pass_data instance and...
19803 (make_pass_mode_switch_use): ...new function.
19804 * config/epiphany/resolve-sw-modes.c (pass_resolve_sw_modes): Convert
19805 from a global struct to a subclass of rtl_opt_pass along with...
19806 (pass_data_resolve_sw_modes): ...new pass_data instance and...
19807 (make_pass_resolve_sw_modes): ...new function.
19808 * config/i386/i386.c (pass_insert_vzeroupper): Convert from a global
19809 struct to a subclass of rtl_opt_pass along with...
19810 (pass_data_insert_vzeroupper): ...new pass_data instance and...
19811 (make_pass_insert_vzeroupper): ...new function.
19812 * config/sparc/sparc.c (pass_work_around_errata): Convert from a
19813 global struct to a subclass of rtl_opt_pass along with...
19814 (pass_data_work_around_errata): ...new pass_data instance and...
19815 (make_pass_work_around_errata): ...new function.
19816 * config/mips/mips.c (pass_mips_machine_reorg2): Convert from a global
19817 struct to a subclass of rtl_opt_pass along with...
19818 (pass_data_mips_machine_reorg2): ...new pass_data instance and...
19819 (make_pass_mips_machine_reorg2): ...new function.
19821 2013-08-05 David Malcolm <dmalcolm@redhat.com>
19823 * passes.c (pass_manager::operator new): New.
19825 2013-08-05 David Malcolm <dmalcolm@redhat.com>
19827 Handwritten part of conversion of passes to C++ classes.
19829 * Makefile.in (PASS_MANAGER_H): Add dep on pass-instances.def.
19830 (toplev.o): Add dep on PASS_MANAGER_H.
19831 * cgraphunit.c (cgraph_process_new_functions): Rework invocation
19832 of early local pases to reflect this moving from a global to a
19833 member of gcc::pass_manager.
19834 (cgraph_add_new_function): Likewise.
19835 * lto-cgraph.c (lto_output_node): Update for conversion of
19836 struct ipa_opt_pass_d to a C++ subclass of opt_pass.
19837 * passes.c (opt_pass::clone): New.
19838 (opt_pass::gate): New.
19839 (opt_pass::execute): New.
19840 (opt_pass::opt_pass): New.
19841 (pass_manager::execute_early_local_passes): New.
19842 (pass_manager::execute_pass_mode_switching): new.
19843 (finish_optimization_passes): Convert to...
19844 (pass_manager::finish_optimization_passes): ...this.
19845 (finish_optimization_passes): Update for conversion of passes to
19847 (register_dump_files_1): Use has_gate since we cannot portably
19848 check a vtable entry against NULL.
19849 (dump_one_pass): Likewise.
19850 (ipa_write_summaries_2): Likewise.
19851 (ipa_write_optimization_summaries_1): Likewise.
19852 (ipa_read_summaries_1): Likewise.
19853 (ipa_read_optimization_summaries_1): Likewise.
19854 (execute_ipa_stmt_fixups): Likewise.
19855 (pass_manager::pass_manager): Rewrite pass-creation, invoking
19856 pass-creation functions rather than wiring up globals, and
19857 storing the results in fields of pass_manager generated using
19858 pass-instances.def.
19859 (pass_manager::dump_profile_report): Update for conversion of
19860 passes to C++ classes.
19861 (pass_manager::execute_ipa_summary_passes): Likewise.
19862 (execute_one_ipa_transform_pass): Likewise.
19863 (execute_one_pass): Use has_gate and has_execute since we cannot
19864 portably check a vtable entry against NULL.
19865 * pass_manager.h (pass_manager::finish_optimization_passes): New.
19866 (pass_manager): Use pass-instances.def to add fields for the
19867 various pass instances.
19868 * toplev.c (finalize): Update for move of
19869 finish_optimization_passes to a method of gcc::pass_manager.
19870 * toplev.h (finish_optimization_passes): Move to method of class
19872 * tree-pass.h (struct pass_data): New.
19873 (opt_pass): Convert to C++ class, make it a subclass of pass_data.
19874 (opt_pass::gate): Convert to virtual function.
19875 (opt_pass::~opt_pass): New.
19876 (opt_pass::clone): New.
19877 (opt_pass::execute): Convert to virtual function.
19878 (opt_pass::opt_pass): New.
19879 (opt_pass::ctxt_): new.
19880 (gimple_opt_pass): Convert to subclass of opt_pass.
19881 (gimple_opt_pass::gimple_opt_pass): New.
19882 (rtl_opt_pass): Convert to subclass of opt_pass.
19883 (rtl_opt_pass::rtl_opt_pass): New.
19884 (ipa_opt_pass_d): Convert to subclass of opt_pass.
19885 (ipa_opt_pass_d::ipa_opt_pass_d): New.
19886 (simple_ipa_opt_pass): Convert to subclass of opt_pass.
19887 (simple_ipa_opt_pass::simple_ipa_opt_pass): New.
19888 * config/i386/i386.c (rest_of_handle_insert_vzeroupper): Rework
19889 invocation of pass_mode_switching to reflect this moving from a
19890 global to a member of gcc::pass_manager.
19891 (ix86_option_override): Rework how pass_insert_vzeroupper is
19892 added to the pass_manager to reflect autogenerated changes.
19893 * config/i386/t-i386 (i386.o) Add deps on CONTEXT_H and PASS_MANAGER_H.
19895 2013-08-05 Richard Earnshaw <rearnsha@arm.com>
19897 PR rtl-optimization/57708
19898 * recog.c (peep2_find_free_register): Validate all regs in a
19901 2013-08-05 Jan Hubicka <jh@suse.cz>
19904 * cgraph.c (verify_cgraph_node): Accept local flags from other
19906 * ipa.c (symtab_remove_unreachable_nodes): Do not clear local flag.
19907 (function_and_variable_visibility): Likewise.
19908 * trans-mem.c (ipa_tm_create_version): TM versions are not local.
19910 2013-08-05 Gabriel Dos Reis <gdr@integrable-solutions.net>
19912 * graph.c (init_graph_slim_pretty_print): Remove.
19913 (print_graph_cfg): Do not call it. Use local pretty printer.
19914 (start_graph_dump): Likewise.
19916 2013-08-05 Gabriel Dos Reis <gdr@integrable-solutions.net>
19918 * gimple-pretty-print.c (buffer): Remove.
19919 (initialized): Likewise.
19920 (maybe_init_pretty_print): Likewise.
19921 (print_gimple_stmt): Do not call it. Use non-static local
19922 pretty_printer variable.
19923 (print_gimple_expr): Likewise.
19924 (print_gimple_seq): Likewise.
19925 (gimple_dump_bb): Likewise.
19927 2013-08-05 Gabriel Dos Reis <gdr@integrable-solutions.net>
19929 * asan.c (asan_pp): Remove.
19930 (asan_pp_initialized): Likewise.
19931 (asan_pp_initialize): Likewise.
19932 (asan_pp_string): Take a pretty_printer parameter. Adjust callers.
19933 (asan_emit_stack_protection): Tidy. Use local pretty printer.
19934 (asan_add_global): Likewise.
19936 2013-08-04 Gabriel Dos Reis <gdr@integrable-solutions.net>
19938 * pretty-print.h (pp_base): Remove. Adjust dependent macros.
19939 * diagnostic.h (diagnostic_flush_buffer): Adjust.
19940 * pretty-print.c (pp_formatted_text_data): Likewise.
19941 (pp_indent): Rename from pp_base_indent.
19942 (pp_format): Rename from pp_base_format.
19943 (pp_output_formatted_text): Rename from pp_base_output_formatted_text.
19944 (pp_format_verbatim): Rename from pp_base_format_verbatim.
19945 (pp_flush): Rename from pp_base_flush.
19946 (pp_set_line_maximum_length): Rename from
19947 pp_base_set_line_maximum_length.
19948 (pp_clear_output_area): Rename from pp_base_clear_output_area.
19949 (pp_set_prefix): Rename from pp_base_set_prefix.
19950 (pp_destroy_prefix): Rename from pp_base_destroy_prefix.
19951 (pp_emit_prefix): Rename from pp_base_emit_prefix.
19952 (pp_append_text): Rename from pp_base_append_text.
19953 (pp_formatted_text): Rename from pp_base_formatted_text.
19954 (pp_last_position_in_text): Rename from pp_base_last_position_in_text.
19955 (pp_remaining_character_count_for_line): Rename from
19956 pp_base_remaining_character_count_for_line.
19957 (pp_newline): Rename from pp_base_newline.
19958 (pp_character): Rename from pp_base_character.
19959 (pp_string): Rename from pp_base_string.
19960 (pp_maybe_space): Rename from pp_base_maybe_space.
19961 * asan.c (asan_pp_string): Adjust.
19962 (asan_emit_stack_protection): Likewise.
19963 (asan_add_global): Likewise.
19964 * sched-vis.c (str_pattern_slim): Adjust pretty printer function call.
19965 * tree-mudflap.c (mf_varname_tree): Likewise.
19966 * tree-pretty-print.c (pp_tree_identifier): Rename from
19967 pp_base_tree_identifier.
19968 * tree-pretty-print.h (pp_tree_identifier): Remove macro definition.
19969 Declare as function.
19971 2013-08-03 Gabriel Dos Reis <gdr@integrable-solutions.net>
19973 * pretty-print.h (pp_bar_bar): New.
19974 (pp_ampersand_ampersand): Likewise.
19975 (pp_less_equal): Likewise.
19976 (pp_greater_equal): Likewise.
19977 * gimple-pretty-print.c (dump_ternary_rhs): Use specialized pretty
19978 printer functions instead of pp_string or operators and punctuators.
19979 (dump_gimple_call): Likewise.
19980 (dump_gimple_omp_for): Likewise.
19981 (dump_gimple_transaction): Likewise.
19982 (dump_gimple_phi): Likewise.
19983 (pp_gimple_stmt_1): Likewise.
19984 * sched-vis.c (print_insn): Likewise.
19985 * tree-mudflap.c (mf_varname_tree): Likewise.
19986 * tree-pretty-print.c (dump_block_node): Likewise.
19987 (dump_generic_node): Likewise.
19989 2013-08-02 Jan Hubicka <jh@suse.cz>
19991 * lto-cgraph.c (compute_ltrans_boundary): Add abstract origins into
19993 * lto-streamer-out.c (tree_is_indexable): Results decls and
19994 parm decls are not indexable.
19995 (DFS_write_tree_body): Do not follow args and results.
19996 (hash_tree): Likewise.
19997 (output_functions): Rearrange so struct function is needed
19998 only when real body is output; be able to also ouptut abstract
19999 functions; output DECL_ARGUMENTS and DECL_RESULT.
20000 (lto_output): When not in WPA, ale store abstract functions.
20001 (write_symbol): Do not care about RESULT_DECL.
20002 (output_symbol_p): Handle correctly sbtract decls.
20003 * lto-streamer-in.c (input_function): Rearrange so struct
20004 function can be NULL at entry; allow streaming of
20005 functions w/o body; store DECL_ARGUMENTS and DECL_RESULT.
20006 * ipa.c (symtab_remove_unreachable_nodes): Silence confused
20007 sanity check during LTO.
20008 * tree-streamer-out.c (write_ts_decl_non_common_tree_pointers): Skip
20009 RESULT_DECl and DECL_ARGUMENTS.
20010 * tree-streamer-in.c (lto_input_ts_decl_non_common_tree_pointers):
20013 2013-08-03 Gabriel Dos Reis <gdr@integrable-solutions.net>
20015 * pretty-print.h (pp_underscore): New.
20017 * gimple-pretty-print.c (dump_unary_rhs): Use specialized pretty
20018 printer functions instead of pp_character.
20019 (dump_binary_rhs): Likewise.
20020 (dump_ternary_rhs): Likewise.
20021 (dump_gimple_call_args): Likewise.
20022 (pp_points_to_solution): Likewise.
20023 (dump_gimple_call): Likewise.
20024 (dump_gimple_switch): Likewise.
20025 (dump_gimple_cond): Likewise.
20026 (dump_gimple_bind): Likewise.
20027 (dump_gimple_try): Likewise.
20028 (dump_gimple_omp_for): Likewise.
20029 (dump_gimple_omp_continue): Likewise.
20030 (dump_gimple_omp_single): Likewise.
20031 (dump_gimple_omp_sections): Likewise.
20032 (dump_gimple_omp_block): Likewise.
20033 (dump_gimple_omp_critical): Likewise.
20034 (dump_gimple_transaction): Likewise.
20035 (dump_gimple_asm): Likewise.
20036 (dump_gimple_phi): Likewise.
20037 (dump_gimple_omp_parallel): Likewise.
20038 (dump_gimple_omp_task): Likewise.
20039 (dump_gimple_omp_atomic_load): Likewise.
20040 (dump_gimple_omp_atomic_store): Likewise.
20041 (dump_gimple_mem_ops): Likewise.
20042 (pp_gimple_stmt_1): Likewise.
20043 (pp_cfg_jump): Likewise.
20044 (dump_implicit_edges): Likewise.
20045 (gimple_dump_bb_for_graph): Likewise.
20046 * graph.c (draw_cfg_node): Likewise.
20047 * langhooks.c (lhd_print_error_function): Likewise.
20048 * sched-vis.c (print_exp): Likewise.
20049 (print_value): Likewise.
20050 (print_pattern): Likewise.
20051 (print_insn): Likewise.
20052 (rtl_dump_bb_for_graph): Likewise.
20053 * tree-pretty-print.c (dump_function_declaration): Likewise.
20054 (dump_array_domain): Likewise.
20055 (dump_omp_clause): Likewise.
20056 (dump_location): Likewise.
20057 (dump_generic_node): Likewise.
20058 (print_struct_decl): Likewise.
20059 * diagnostic.c (diagnostic_show_locus): Use pp_space.
20061 2013-08-03 Bill Schmidt <wschmidt@vnet.linux.ibm.com>
20063 * gimple-ssa-strength-reduction.c (replace_mult_candidate): Update
20064 candidate table when replacing a candidate statement.
20065 (replace_rhs_if_not_dup): Likewise.
20066 (replace_one_candidate): Likewise.
20068 2013-08-02 Jan Hubicka <jh@suse.cz>
20069 Martin Liska <marxin.liska@gmail.com>
20071 * cgraphunit.c (add_new_function): Fix logic when adding from
20073 (assemble_thunk): Rename to ...
20074 (expand_thunk); .. this one; export; get it working with
20075 general functions; make produced gimple valid.
20076 * cgraph.h (expand_thunk): Declare.
20078 2013-08-02 Jan Hubicka <jh@suse.cz>
20080 * ipa-cp.c (gather_context_independent_values): Use
20081 ipa_get_param_move_cost.
20082 (get_replacement_map): Remove PARAM; move parameter folding
20084 (create_specialized_node): Update.
20085 * ipa-prop.c (ipa_populate_param_decls): Do not look for origins;
20086 assert that we have gimple body; update move_cost.
20087 (count_formal_params): Assert that we have gimple body.
20088 (ipa_dump_param): New function.
20089 (ipa_alloc_node_params): Break out from ...
20090 (ipa_initialize_node_params): ... here.
20091 (ipa_get_vector_of_formal_parms): ICE when used in WPA.
20092 (ipa_write_node_info): Stream move costs.
20093 (ipa_read_node_info): Read move costs.
20094 (ipa_update_after_lto_read): Do not recompute node params.
20095 * ipa-prop.h (ipa_param_descriptor): Add move_cost.
20096 (ipa_get_param): Check we are not in WPA.
20097 (ipa_get_param_move_cost): New.
20098 * tree-inline.c (tree_function_versioning): Fold replacement as needed.
20099 * ipa-inline-analysis.c (inline_node_duplication_hook): Expect only
20100 parm numbers to be present.
20102 2013-08-02 Vladimir Makarov <vmakarov@redhat.com>
20104 PR rtl-optimization/58048
20105 * lra-constraints.c (process_alt_operands): Don't check asm
20106 operand on register.
20108 2013-08-02 Eric Botcazou <ebotcazou@adacore.com>
20110 * config/sparc/sparc.c (sparc_emit_membar_for_model) <SMM_TSO>: Add
20111 the implied StoreLoad barrier for atomic operations if before.
20113 2013-08-02 Jan Hubicka <jh@suse.cz>
20114 Martin Liska <marxin.liska@gmail.com>
20116 * cgraph.c (cgraph_function_body_availability): Do not check
20118 * cgraph.h (symtab_for_node_and_aliases, symtab_nonoverwritable_alias,
20119 symtab_node_availability): Declare.
20120 * ipa.c (can_replace_by_local_alias): New.
20121 (function_and_variable_visibility): Use it.
20122 * symtab.c (symtab_for_node_and_aliases,
20123 symtab_nonoverwritable_alias_1, symtab_nonoverwritable_alias): New.
20125 2013-08-02 Vladimir Makarov <vmakarov@redhat.com>
20127 PR rtl-optimization/57963
20128 * lra-constraints.c (reverse_equiv_p, contains_reloaded_insn_p): New.
20129 (lra_constraints): Use them.
20131 2013-08-02 Sofiane Naci <sofiane.naci@arm.com>
20133 * config/arm/types.md (define_attr "type"): Add "load_acq"
20135 * config/arm/cortex-a53.md (cortex_a53_load1): Update for attribute
20137 (cortex_a53_store1): Likewise.
20139 2013-08-01 Jan Hubicka <jh@suse.cz>
20141 * ipa.c (symtab_remove_unreachable_nodes): Nodes in other
20142 partitions are not needed.
20144 2013-08-01 Uros Bizjak <ubizjak@gmail.com>
20146 * config/i386/i386.h (MAYBE_NON_Q_CLASS_P): New.
20147 * config/i386/i386.c (ix86_secondary_reload): Use INTEGER_CLASS_P and
20148 MAYBE_NON_Q_CLASS_P where appropriate.
20150 2013-08-01 Jan Hubicka <jh@suse.cz>
20152 * cgraph.h (release_function_body): Declare.
20153 * tree.c (free_lang_data_in_decl): Free, parameters and return values
20154 of unused delcarations.
20156 2013-08-01 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
20158 * config/arm/arm.md (minmax_arithsi_non_canon): Emit canonical
20159 RTL form when subtracting a constant.
20161 2013-08-01 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
20163 * config/arm/arm.md (peepholes for eq (reg1) (reg2/imm)):
20164 Generate canonical plus rtx with negated immediate instead of minus
20166 * config/arm/arm.c (thumb2_reorg): Handle ADCS <Rd>, <Rn> case.
20168 2013-08-01 Jan Hubicka <jh@suse.cz>
20170 * cgraph.c (cgraph_release_function_body): Use used_as_abstract_origin.
20171 (cgraph_release_function_body): Likewise.
20172 (cgraph_can_remove_if_no_direct_calls_p): Likewise.
20173 * cgraph.h (cgrpah_node): Rename abstract_and_needed
20174 to used_as_abstract_origin.
20175 * tree-inline-transfrom.c (can_remove_node_now_p_1): Do not remove
20176 symbols used as abstract origins.
20177 * cgraphunit.c (analyze_functions): Update.
20178 * ipa.c (symtab_remove_unreachable_nodes): Recompute
20179 used_as_abstract_origin.
20180 * tree-inline.c (tree_function_versioning): Update
20181 used_as_abstract_origin; be ready for DECL_RESULT and
20182 DECL_ARGUMENTS to be NULL.
20184 * lto-symtab.c (lto_symtab_merge_symbols): Merge duplicated nodes
20185 for abstract functions.
20186 * cgraph.h (symtab_real_symbol_p): Abstract declarations are not
20189 2013-08-01 Jan Hubicka <jh@suse.cz>
20191 * profile.c (compute_value_histograms): Fix thinko.
20193 2013-08-01 Sofiane Naci <sofiane.naci@arm.com>
20195 * config.gcc (aarch64*-*-*): Add aarch-common.o to extra_objs. Add
20196 aarch-common-protos.h to extra_headers.
20197 (aarch64*-*-*): Add arm/aarch-common-protos.h to tm_p_file.
20198 * config/aarch64/aarch64.md: Include "../arm/cortex-a53.md".
20199 * config/aarch64/t-aarch64 (aarch-common.o): Define.
20201 2013-08-01 Sofiane Naci <sofiane.naci@arm.com>
20203 * config/aarch64/aarch64.md (define_attr "type"): Delete.
20204 Include "../arm/types.md". Define "type" attribute for all patterns.
20205 * config/aarch64/aarch64-simd.md (move_lo_quad_<mode>): Update for
20208 2013-07-31 Michael Meissner <meissner@linux.vnet.ibm.com>
20210 * config/rs6000/predicates.md (fusion_gpr_addis): New predicates
20211 to support power8 load fusion.
20212 (fusion_gpr_mem_load): Likewise.
20214 * config/rs6000/rs6000-modes.def (PTImode): Update a comment.
20216 * config/rs6000/rs6000-protos.h (fusion_gpr_load_p): New
20217 declarations for power8 load fusion.
20218 (emit_fusion_gpr_load): Likewise.
20220 * config/rs6000/rs6000.c (rs6000_option_override_internal): If
20221 tuning for power8, turn on fusion mode by default. Turn on sign
20222 extending fusion mode if normal fusion mode is on, and we are at
20224 (fusion_gpr_load_p): New function, return true if we can fuse an
20225 addis instruction with a dependent load to a GPR.
20226 (emit_fusion_gpr_load): Emit the instructions for power8 load
20229 * config/rs6000/vsx.md (VSX_M2): New iterator for fusion peepholes.
20230 (VSX load fusion peepholes): New peepholes to fuse together an
20231 addi instruction with a VSX load instruction.
20233 * config/rs6000/rs6000.md (GPR load fusion peepholes): New
20234 peepholes to fuse an addis instruction with a load to a GPR base
20235 register. If we are supporting sign extending fusions, convert
20236 sign extending loads to zero extending loads and add an explicit
20239 2013-07-31 Sofiane Naci <sofiane.naci@arm.com>
20241 * config.gcc (arm*-*-*): Add aarch-common.o to extra_objs. Add
20242 aarch-common-protos.h to extra_headers.
20243 (arm*-*-*): Add arm/aarch-common-protos.h to tm_p_file.
20244 * config/arm/arm.c (arm_early_load_addr_dep): Move from here to ...
20245 (arm_early_store_addr_dep): Likewise.
20246 (arm_no_early_alu_shift_dep): Likewise.
20247 (arm_no_early_alu_shift_value_dep): Likewise.
20248 (arm_no_early_mul_dep): Likewise.
20249 (arm_no_early_store_addr_dep): Likewise.
20250 (arm_mac_accumulator_is_mul_result): Likewise.
20251 (arm_mac_accumulator_is_result): Likewise.
20252 * config/arm/aarch-common.c: ... here. New file.
20253 * config/arm/arm-protos.h (arm_early_load_addr_dep): Move from
20255 (arm_early_store_addr_dep): Likewise.
20256 (arm_no_early_alu_shift_dep): Likewise.
20257 (arm_no_early_alu_shift_value_dep): Likewise.
20258 (arm_no_early_mul_dep): Likewise.
20259 (arm_no_early_store_addr_dep): Likewise.
20260 (arm_mac_accumulator_is_mul_result): Likewise.
20261 (arm_mac_accumulator_is_result): Likewise.
20262 * config/arm/aarch-common-protos.h: ... here. New file.
20263 * config/arm/t-arm (aarch-common.o): Define.
20265 2013-07-31 Sofiane Naci <sofiane.naci@arm.com>
20267 * config/arm/arm.md: Include new file "types.md".
20268 (define_attr "type"): Move from here to ...
20269 (define_attr "mul32"): Likewise.
20270 (define_attr "mul64"): Likewise.
20271 * config/arm/types.md: ... here. New file.
20273 2013-07-31 Sebastian Huber <sebastian.huber@embedded-brains.de>
20275 * config.gcc (*-*-rtems*): Use __cxa_atexit by default.
20276 * config/rs6000/rtems.h (TARGET_LIBGCC_SDATA_SECTION): Define.
20278 2013-07-31 Jan-Benedict Glaw <jbglaw@lug-owl.de>
20280 * gen-pass-instances.awk: Fix offset of substr().
20282 2013-07-31 David Malcolm <dmalcolm@redhat.com>
20284 * Makefile.in (pass-instances.def): New.
20285 (passes.o): Replace dependency on passes.def with one on
20288 * gen-pass-instances.awk: New.
20290 * passes.c (pass_manager::pass_manager): Use pass-instances.def
20291 rather than passes.def, updating local definition of NEXT_PASS
20292 macro to add an extra NUM parameter (currently unused).
20294 2013-07-30 David Malcolm <dmalcolm@redhat.com>
20296 * Makefile.in (PASS_MANAGER_H): New.
20297 (lto-cgraph.o): Depend on CONTEXT_H and PASS_MANAGER_H.
20298 (passes.o): Likewise.
20299 (statistics.o): Likewise.
20300 (cgraphunit.o): Likewise.
20301 (context.o): Depend on PASS_MANAGER_H.
20303 * pass_manager.h: New.
20305 * cgraphunit.c (cgraph_add_new_function): Update for moves
20306 of globals to fields of pass_manager.
20307 (analyze_function): Likewise.
20308 (expand_function): Likewise.
20309 (ipa_passes): Likewise.
20310 (compile): Likewise.
20312 * context.c (context::context): New.
20313 * context.h (context::context): New.
20314 (context::get_passes): New.
20315 (context::passes_): New.
20317 * lto-cgraph.c (input_node): Update for moves of globals to
20318 fields of pass_manager.
20320 * passes.c (all_passes): Remove, in favor of a field of the
20321 same name within the new class pass_manager.
20322 (all_small_ipa_passes): Likewise.
20323 (all_lowering_passes): Likewise.
20324 (all_regular_ipa_passes): Likewise.
20325 (all_late_ipa_passes): Likewise.
20326 (all_lto_gen_passes): Likewise.
20327 (passes_by_id): Likewise.
20328 (passes_by_id_size): Likewise.
20329 (gcc_pass_lists): Remove, in favor of "pass_lists" field within
20330 the new class pass_manager.
20331 (set_pass_for_id): Convert to...
20332 (pass_manager::set_pass_for_id): ...method.
20333 (get_pass_for_id): Convert to...
20334 (pass_manager::get_pass_for_id): ...method.
20335 (register_one_dump_file): Move body of implementation into...
20336 (pass_manager::register_one_dump_file): ...here.
20337 (register_dump_files_1): Convert to...
20338 (pass_manager::register_dump_files_1): ...method.
20339 (register_dump_files): Convert to...
20340 (pass_manager::register_dump_files): ...method.
20341 (create_pass_tab): Update for moves of globals to fields of
20343 (dump_passes): Move body of implementation into...
20344 (pass_manager::dump_passes): ...here.
20345 (register_pass): Move body of implementation into...
20346 (pass_manager::register_pass): ...here.
20347 (init_optimization_passes): Convert into...
20348 (pass_manager::pass_manager): ...constructor for new
20349 pass_manager class, and initialize the pass_lists array.
20350 (check_profile_consistency): Update for moves of globals to
20351 fields of pass_manager.
20352 (dump_profile_report): Move body of implementation into...
20353 (pass_manager::dump_profile_report): ...here.
20354 (ipa_write_summaries_1): Update for moves of pass lists from
20355 being globals to fields of pass_manager.
20356 (ipa_write_optimization_summaries): Likewise.
20357 (ipa_read_summaries): Likewise.
20358 (ipa_read_optimization_summaries): Likewise.
20359 (execute_all_ipa_stmt_fixups): Likewise.
20361 * statistics.c (statistics_fini): Update for moves of globals to
20362 fields of pass_manager.
20364 * toplev.c (general_init): Replace call to
20365 init_optimization_passes with construction of the pass_manager
20368 * tree-pass.h (all_passes): Remove, in favor of a field of the
20369 same name within the new class pass_manager.
20370 (all_small_ipa_passes): Likewise.
20371 (all_lowering_passes): Likewise.
20372 (all_regular_ipa_passes): Likewise.
20373 (all_lto_gen_passes): Likewise.
20374 (all_late_ipa_passes): Likewise.
20375 (passes_by_id): Likewise.
20376 (passes_by_id_size): Likewise.
20377 (gcc_pass_lists): Remove, in favor of "pass_lists" field within
20378 the new class pass_manager.
20379 (get_pass_for_id): Remove.
20381 2013-07-30 Richard Earnshaw <rearnsha@arm.com>
20383 * config.gcc (arm): Require 64-bit host-wide-int for all ARM target
20386 2013-07-30 Richard Earnshaw <rearnsha@arm.com>
20388 * arm.md (mulhi3): New expand pattern.
20390 2013-07-30 Jan Hubicka <jh@suse.cz>
20391 Martin Liska <marxin.liska@gmail.com>
20393 * profile.c (compute_value_histograms): Do not ICE when
20394 there is mismatch only on some counters.
20396 2013-07-30 Zhenqiang Chen <zhenqiang.chen@linaro.org>
20398 PR rtl-optimization/57637
20399 * function.c (move_insn_for_shrink_wrap): Also check the
20400 GEN set of the LIVE problem for the liveness analysis
20401 if it exists, otherwise give up.
20403 2013-07-29 Bill Schmidt <wschmidt@vnet.linux.ibm.com>
20405 PR tree-optimization/57993
20406 * gimple-ssa-strength-reduction.c (replace_mult_candidate): Record
20407 replaced statement in the candidate table.
20408 (phi_add_costs): Return infinite cost when the hidden basis does
20409 not dominate all phis on which the candidate is dependent.
20410 (replace_one_candidate): Record replaced statement in the
20413 2013-07-29 Joern Rennecke <joern.rennecke@embecosm.com>
20415 * config/epiphany/epiphany.md (*isub_i+2): New peephole.
20416 (ashlv2si3): New expander.
20417 (*ashlv2si3_i): New define_insn_and_split.
20418 * predicates.md (float_operation): Allow patterns with three
20419 basic sub-patterns.
20421 PR rtl-optimization/58021
20422 * mode-switching.c (create_pre_exit): Always split off preceding
20423 insns if we are not at the basic block head.
20425 2013-07-29 Maciej W. Rozycki <macro@codesourcery.com>
20427 * config/mips/linux.h (GLIBC_DYNAMIC_LINKER): Handle `-mnan=2008'.
20428 (UCLIBC_DYNAMIC_LINKER): New macro.
20429 * config/mips/linux64.h (GLIBC_DYNAMIC_LINKER32): Handle
20431 (GLIBC_DYNAMIC_LINKER64, GLIBC_DYNAMIC_LINKERN32): Likewise.
20432 (UCLIBC_DYNAMIC_LINKER32): Undefine macro first. Handle
20434 (UCLIBC_DYNAMIC_LINKER64): Redefine macro.
20435 (UCLIBC_DYNAMIC_LINKERN32): Likewise.
20436 * config/mips/mips-modes.def: Remove RESET_FLOAT_FORMAT calls
20437 for SF and DF modes. Use ieee_quad_format for TF mode.
20438 * config/mips/mips-opts.h (mips_ieee_754_setting): New enum.
20439 * config/mips/mips.c (mips_file_start): Output a `.nan' directive.
20440 (mips_option_override): Handle `-mnan=legacy'.
20441 * config/mips/mips.h (TARGET_CPU_CPP_BUILTINS): Handle
20442 `-mabs=2008' and `-mnan=2008'.
20443 (OPTION_DEFAULT_SPECS): Add "nan" default.
20444 (ASM_SPEC): Handle `-mnan='.
20445 [!HAVE_AS_NAN] (HAVE_AS_NAN): New macro.
20446 * config/mips/mips.md (abs<mode>2): Handle `-mabs=2008', update
20447 comment accordingly.
20448 (neg<mode>2): Likewise.
20449 * config/mips/mips.opt (mabs, mnan): New options.
20450 * doc/install.texi (Configuration): Document `--with-nan=' option.
20451 * doc/invoke.texi (Option Summary): List MIPS `-mabs=' and
20453 (MIPS Options): Document them.
20454 * config.gcc <mips*-*-*>: Handle `--with-nan='.
20455 * configure.ac <mips*-*-*>: Check for GAS `-mnan=2008' support.
20456 * configure: Regenerate.
20457 * config.in: Regenerate.
20459 2013-07-29 Uros Bizjak <ubizjak@gmail.com>
20461 * config/i386/i386.md (float post-reload splitters): Do not check
20462 for subregs of SSE registers.
20464 2013-07-29 Uros Bizjak <ubizjak@gmail.com>
20465 H.J. Lu <hongjiu.lu@intel.com>
20469 * config/i386/i386.md (post-reload splitter
20470 to avoid partial SSE reg dependency stalls): New pattern.
20472 2013-07-29 Dominik Vogt <vogt@linux.vnet.ibm.com>
20474 * config/s390/s390.md ("movcc"): Swap load and store instructions.
20476 2013-07-27 Joern Rennecke <joern.rennecke@embecosm.com>
20478 * config/epiphany/epiphany.c (epiphany_compute_frame_size):
20479 Also reserve space for saving UNKNOWN_REGNUM for leaf functions.
20481 2013-07-26 Cary Coutant <ccoutant@google.com>
20483 * dwarf2out.c (die_checksum_ordered): Don't include template
20484 instantiations in signature.
20485 (is_template_parameter): New function.
20486 (is_template_instantiation): New function.
20487 (generate_skeleton_bottom_up): Don't include template instantiations
20489 (generate_skeleton): Likewise.
20490 (break_out_comdat_types): Move recursive call to break out nested
20492 (prune_unused_types_mark_generic_parms_dies): Call
20493 is_template_parameter.
20495 2013-07-26 Ian Bolton <ian.bolton@arm.com>
20497 * config/aarch64/aarch64.md (neg<mode>2): Offer alternative that
20498 uses vector registers.
20499 * config/aarch64/iterators.md: Add attributes rtn and vas.
20501 2013-07-26 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
20502 Richard Earnshaw <richard.earnshaw@arm.com>
20504 * combine.c (simplify_comparison): Re-canonicalize operands
20506 * config/arm/arm.md (movcond_addsi): New splitter.
20508 2013-07-25 Sterling Augustine <saugustine@google.com>
20510 * dwarf2out.c (size_of_pubnames): Move code to...
20511 (include_pubname_in_output): ...here. New.
20512 (want_pubnames): Rearrange.
20513 (output_pubnames): Call include_pubname_in_output. Move assertion.
20515 2013-07-25 Cameron McInally <cameron.mcinally@nyu.edu>
20517 * doc/extend.texi: Fix return types for __builtin_ia32_cmp*s builtins.
20519 2013-07-25 Cameron McInally <cameron.mcinally@nyu.edu>
20522 * doc/extend.texi: Remove obsolete builtins. Fix
20523 typo for __builtin_ia32_loadss and __builtin_ia32_cmpnltss.
20525 2013-07-25 Jan Hubicka <jh@suse.cz>
20527 * cgraph.c (release_function_body): Break out from ...
20528 (cgraph_release_function_body): ... this one; also release DECL_RESULT
20529 and DECL_ARGUMENTS.
20530 * ipa-cp.c (get_replacement_map): Add parm_num argument; do not set
20531 old_tree in the map.
20532 (create_specialized_node): Update.
20533 * lto-cgraph.c (output_node_opt_summary): Do not translate old_tree
20535 * cgraphclones.c (cgraph_create_virtual_clone): Do not copy
20536 DECL_ARGUMENTS, DECL_INITIAL and DECL_RESULT.
20537 * ipa-prop.c (ipa_populate_param_decls): Look for origin of clones.
20538 * tree-inline.c (initialize_cfun): Initialize DECL_ARGUMENTS and
20541 2013-07-25 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
20543 * config/arm/arm.md (arm_addsi3, addsi3_carryin_<optab>,
20544 addsi3_carryin_alt2_<optab>): Correct output template.
20546 2013-07-25 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
20548 * config/arm/arm-fixed.md (ssmulsa3, usmulusa3):
20549 Adjust for arm_restrict_it.
20550 Remove trailing whitespace.
20552 2013-07-25  Mark Kettenis  <kettenis@openbsd.org>
20554 * config/pa/pa.c (pa_trampoline_init): Emit __enable_execute_stack
20555 libcall if HAVE_ENABLE_EXECUTE_STACK is defined.
20557 * config.gcc (hppa-*-openbsd*): Don't set tmake_file.
20559 2013-07-25 Vladimir Makarov <vmakarov@redhat.com>
20561 PR rtl-optimization/57960
20562 * lra-constraints.c (process_alt_operands): Use the right mode
20563 when checking strict_low.
20565 2013-07-25 Jan Hubicka <jh@suse.cz>
20567 * lto-symtab.c (lto_cgraph_replace_node): Release function body.
20568 * cgraph.c (cgraph_remove_node): Do not release function body
20569 when in cgraph streaming.
20570 * ipa.c (process_references, symtab_remove_unreachable_nodes): Objects
20571 in other partitions are not considered reachable; fix handling of
20574 2013-07-25 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
20576 * config/arm/arm.md (*sibcall_insn): Remove unnecessary space.
20578 2013-07-25 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
20583 * config/arm/arm.md ("*sibcall_insn): Replace use of
20584 Ss with US. Adjust output for v5 and v4t.
20585 (*sibcall_value_insn): Likewise and loosen predicate on operand0.
20587 * config/arm/constraints.md ("Ss"): Rename to US.
20589 2013-07-25 Terry Guo <terry.guo@arm.com>
20591 * config/arm/arm.c (thumb1_size_rtx_costs): Assign proper cost for
20592 shift_add/shift_sub0/shift_sub1 RTXs.
20594 2013-07-24 Bill Schmidt <wschmidt@linux.ibm.com>
20595 Anton Blanchard <anton@au1.ibm.com>
20597 * config/rs6000/altivec.md (altivec_vpkpx): Handle little endian.
20598 (altivec_vpks<VI_char>ss): Likewise.
20599 (altivec_vpks<VI_char>us): Likewise.
20600 (altivec_vpku<VI_char>us): Likewise.
20601 (altivec_vpku<VI_char>um): Likewise.
20603 2013-07-24 David Malcolm <dmalcolm@redhat.com>
20605 Introduce context class.
20607 * Makefile.in (CONTEXT_H): New.
20608 (OBJS): Add context.o.
20609 (toplev.o): Add CONTEXT_H to dependencies.
20612 * toplev.c (general_init): Create the singleton gcc::context instance.
20618 2013-07-24 Joern Rennecke <joern.rennecke@embecosm.com>
20620 PR rtl-optimization/57968
20621 * mode-switching.c (create_pre_exit): Allow instructions that
20622 don't set a return register to need a non-exit mode.
20624 2013-07-24 Bill Schmidt <wschmidt@vnet.linux.ibm.com>
20625 Anton Blanchard <anton@au1.ibm.com>
20627 * config/rs6000/vector.md (vec_realign_load_<mode>): Reorder input
20628 operands to vperm for little endian.
20629 * config/rs6000/rs6000.c (rs6000_expand_builtin): Use lvsr instead
20630 of lvsl to create the control mask for a vperm for little endian.
20632 2013-07-23 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
20633 Anton Blanchard <anton@au1.ibm.com>
20635 * config/rs6000/rs6000.c (altivec_expand_vec_perm_const): Reverse
20636 two operands for little-endian.
20638 2013-07-23 Steve Ellcey <sellcey@mips.com>
20640 * config/mips/mips.c (mips_case_values_threshold): New.
20641 (TARGET_CASE_VALUES_THRESHOLD): Define.
20643 2013-07-23 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
20644 Anton Blanchard <anton@au1.ibm.com>
20646 * config/rs6000/rs6000.c (altivec_expand_vec_perm_const): Correct
20647 selection of field for vector splat in little endian mode.
20649 2013-07-23 Michael Meissner <meissner@linux.vnet.ibm.com>
20651 * config/rs6000/vector.md (xor<mode>3): Move 128-bit boolean
20652 expanders to rs6000.md.
20653 (ior<mode>3): Likewise.
20654 (and<mode>3): Likewise.
20655 (one_cmpl<mode>2): Likewise.
20656 (nor<mode>3): Likewise.
20657 (andc<mode>3): Likewise.
20658 (eqv<mode>3): Likewise.
20659 (nand<mode>3): Likewise.
20660 (orc<mode>3): Likewise.
20662 * config/rs6000/rs6000-protos.h (rs6000_split_logical): New
20665 * config/rs6000/rs6000.c (rs6000_split_logical_inner): Add support
20666 to split multi-word logical operations.
20667 (rs6000_split_logical_di): Likewise.
20668 (rs6000_split_logical): Likewise.
20670 * config/rs6000/vsx.md (VSX_L2): Delete, no longer used.
20671 (vsx_and<mode>3_32bit): Move 128-bit logical insns to rs6000.md,
20672 and allow TImode operations in 32-bit.
20673 (vsx_and<mode>3_64bit): Likewise.
20674 (vsx_ior<mode>3_32bit): Likewise.
20675 (vsx_ior<mode>3_64bit): Likewise.
20676 (vsx_xor<mode>3_32bit): Likewise.
20677 (vsx_xor<mode>3_64bit): Likewise.
20678 (vsx_one_cmpl<mode>2_32bit): Likewise.
20679 (vsx_one_cmpl<mode>2_64bit): Likewise.
20680 (vsx_nor<mode>3_32bit): Likewise.
20681 (vsx_nor<mode>3_64bit): Likewise.
20682 (vsx_andc<mode>3_32bit): Likewise.
20683 (vsx_andc<mode>3_64bit): Likewise.
20684 (vsx_eqv<mode>3_32bit): Likewise.
20685 (vsx_eqv<mode>3_64bit): Likewise.
20686 (vsx_nand<mode>3_32bit): Likewise.
20687 (vsx_nand<mode>3_64bit): Likewise.
20688 (vsx_orc<mode>3_32bit): Likewise.
20689 (vsx_orc<mode>3_64bit): Likewise.
20691 * config/rs6000/rs6000.h (VLOGICAL_REGNO_P): Always allow vector
20692 logical types in GPRs.
20694 * config/rs6000/altivec.md (altivec_and<mode>3): Move 128-bit
20695 logical insns to rs6000.md, and allow TImode operations in
20697 (altivec_ior<mode>3): Likewise.
20698 (altivec_xor<mode>3): Likewise.
20699 (altivec_one_cmpl<mode>2): Likewise.
20700 (altivec_nor<mode>3): Likewise.
20701 (altivec_andc<mode>3): Likewise.
20703 * config/rs6000/rs6000.md (BOOL_128): New mode iterators and mode
20704 attributes for moving the 128-bit logical operations into
20706 (BOOL_REGS_OUTPUT): Likewise.
20707 (BOOL_REGS_OP1): Likewise.
20708 (BOOL_REGS_OP2): Likewise.
20709 (BOOL_REGS_UNARY): Likewise.
20710 (BOOL_REGS_AND_CR0): Likewise.
20711 (one_cmpl<mode>2): Add support for DI logical operations on
20712 32-bit, splitting the operations to 32-bit.
20713 (anddi3): Likewise.
20714 (iordi3): Likewise.
20715 (xordi3): Likewise.
20716 (and<mode>3, 128-bit types): Rewrite 2013-06-06 logical operator
20717 changes to combine the 32/64-bit code, allow logical operations on
20718 TI mode in 32-bit, and to use similar match_operator patterns like
20719 scalar mode uses. Combine the Altivec and VSX code for logical
20720 operations, and move it here.
20721 (ior<mode>3, 128-bit types): Likewise.
20722 (xor<mode>3, 128-bit types): Likewise.
20723 (one_cmpl<mode>3, 128-bit types): Likewise.
20724 (nor<mode>3, 128-bit types): Likewise.
20725 (andc<mode>3, 128-bit types): Likewise.
20726 (eqv<mode>3, 128-bit types): Likewise.
20727 (nand<mode>3, 128-bit types): Likewise.
20728 (orc<mode>3, 128-bit types): Likewise.
20729 (and<mode>3_internal): Likewise.
20730 (bool<mode>3_internal): Likewise.
20731 (boolc<mode>3_internal1): Likewise.
20732 (boolc<mode>3_internal2): Likewise.
20733 (boolcc<mode>3_internal1): Likewise.
20734 (boolcc<mode>3_internal2): Likewise.
20735 (eqv<mode>3_internal1): Likewise.
20736 (eqv<mode>3_internal2): Likewise.
20737 (one_cmpl1<mode>3_internal): Likewise.
20739 2013-07-23 David Holsgrove <david.holsgrove@xilinx.com>
20741 * config/microblaze/microblaze.c (microblaze_expand_prologue):
20742 Rename flag_stack_usage to flag_stack_usage_info.
20744 2013-07-23 David Holsgrove <david.holsgrove@xilinx.com>
20746 * config/microblaze/sync.md: New file.
20747 * config/microblaze/microblaze.md: Include sync.md
20748 * config/microblaze/microblaze.c: Add print_operand 'y'.
20749 * config/microblaze/constraints.md: Add memory_contraint
20750 'Q' which is a single register.
20752 2013-07-23 Eric Botcazou <ebotcazou@adacore.com>
20754 * doc/invoke.texi (SPARC Options): Document new leon3 processor value.
20756 2013-07-22 Po-Chun Chang <pchang9@cs.wisc.edu>
20758 * reload.c (find_reloads): Exit loop once we find this operand
20759 cannot be reloaded somehow for this alternative.
20761 * reload.c (find_reloads): Exit loop once we find a hard register.
20763 * rtlanal.c (computed_jump_p): Exit loop once we find label
20766 * i386.c (ix86_pad_returns): Exit loop after setting replace.
20768 * cfgloopmanip.c (remove_path): Exit loop after setting
20771 * gensupport.c (subst_dup): Avoid loop if code is not
20772 MATCH_DUP nor MATCH_OP_DUP.
20774 2013-07-23 Nicklas Bo Jensen <nbjensen@gmail.com>
20776 * doc/md.texi (Machine-Specific Peephole Optimizers): Fix a typo.
20778 2013-07-23 Yufeng Zhang <yufeng.zhang@arm.com>
20780 * config/aarch64/aarch64.c (aarch64_hard_regno_mode_ok): Also return
20781 true for SP_REGNUM if mode == ptr_mode.
20782 * config/aarch64/aarch64.h (ADDITIONAL_REGISTER_NAMES): Add "wsp"
20783 with value R0_REGNUM + 31.
20785 2013-07-23 Yufeng Zhang <yufeng.zhang@arm.com>
20787 * config/aarch64/aarch64.c (aarch64_pad_arg_upward): In big-endian,
20788 pad pointer-typed argument downward.
20790 2013-07-23 Yufeng Zhang <yufeng.zhang@arm.com>
20792 * config/aarch64/aarch64.h (TARGET_CPU_CPP_BUILTINS): Define _ILP32
20793 and __ILP32__ when the ILP32 model is in use.
20795 2013-07-23 Yufeng Zhang <yufeng.zhang@arm.com>
20797 * config/aarch64/aarch64.c (POINTER_BYTES): New define.
20798 (aarch64_load_symref_appropriately): In the case of
20799 SYMBOL_SMALL_ABSOLUTE, use the mode of 'dest' instead of Pmode
20800 to generate new rtx; likewise to the case of SYMBOL_SMALL_GOT.
20801 (aarch64_expand_mov_immediate): In the case of SYMBOL_FORCE_TO_MEM,
20802 change to pass 'ptr_mode' to force_const_mem and zero-extend 'mem'
20803 if 'mode' doesn't equal to 'ptr_mode'.
20804 (aarch64_output_mi_thunk): Add an assertion on the alignment of
20805 'vcall_offset'; change to call aarch64_emit_move differently depending
20806 on whether 'Pmode' equals to 'ptr_mode' or not; use 'POINTER_BYTES'
20807 to calculate the upper bound of 'vcall_offset'.
20808 (aarch64_cannot_force_const_mem): Change to also return true if
20810 (aarch64_legitimize_reload_address): In the case of large
20811 displacements, add new local variable 'xmode' and an assertion
20812 based on it; change to use 'xmode' to generate the new rtx and
20814 (aarch64_asm_trampoline_template): Change to generate the template
20815 differently depending on TARGET_ILP32 or not; change to use
20816 'POINTER_BYTES' in the argument passed to assemble_aligned_integer.
20817 (aarch64_trampoline_size): Removed.
20818 (aarch64_trampoline_init): Add new local constant 'tramp_code_sz'
20819 and replace immediate literals with it. Change to use 'ptr_mode'
20820 instead of 'DImode' and call convert_memory_address if the mode
20821 of 'fnaddr' doesn't equal to 'ptr_mode'.
20822 (aarch64_elf_asm_constructor): Change to use assemble_aligned_integer
20824 (aarch64_elf_asm_destructor): Likewise.
20825 * config/aarch64/aarch64.h (TRAMPOLINE_SIZE): Change to be dependent
20826 on TARGET_ILP32 instead of aarch64_trampoline_size.
20827 * config/aarch64/aarch64.md (movsi_aarch64): Add new alternatives
20828 of 'mov' between WSP and W registers as well as 'adr' and 'adrp'.
20829 (loadwb_pair<GPI:mode>_<PTR:mode>): Rename to ...
20830 (loadwb_pair<GPI:mode>_<P:mode>): ... this. Replace PTR with P.
20831 (storewb_pair<GPI:mode>_<PTR:mode>): Likewise; rename to ...
20832 (storewb_pair<GPI:mode>_<P:mode>): ... this.
20833 (add_losym): Change to 'define_expand' and call gen_add_losym_<mode>
20834 depending on the value of 'mode'.
20835 (add_losym_<mode>): New.
20836 (ldr_got_small_<mode>): New, based on ldr_got_small.
20837 (ldr_got_small): Remove.
20838 (ldr_got_small_sidi): New.
20839 * config/aarch64/iterators.md (P): New.
20840 (PTR): Change to 'ptr_mode' in the condition.
20842 2013-07-23 Yufeng Zhang <yufeng.zhang@arm.com>
20844 * config.gcc (aarch64*-*-*): Support --with-abi.
20845 (aarch64*-*-elf): Support --with-multilib-list.
20846 (aarch64*-*-linux*): Likewise.
20847 (supported_defaults): Add abi to aarch64*-*-*.
20848 * configure.ac: Mention AArch64 for --with-multilib-list.
20849 * configure: Re-generated.
20850 * config/aarch64/biarchilp32.h: New file.
20851 * config/aarch64/biarchlp64.h: New file.
20852 * config/aarch64/aarch64-elf.h (ENDIAN_SPEC): New define.
20854 (MULTILIB_DEFAULTS): Ditto.
20855 (DRIVER_SELF_SPECS): Ditto.
20856 (ASM_SPEC): Update to also substitute -mabi.
20857 * config/aarch64/aarch64-elf-raw.h (LINK_SPEC): Add linker script
20858 file whose name depends on -mabi= and -mbig-endian.
20859 * config/aarch64/aarch64.h (LONG_TYPE_SIZE): Change to depend on
20861 (POINTER_SIZE): New define.
20862 (POINTERS_EXTEND_UNSIGNED): Ditto.
20863 (enum aarch64_abi_type): New enumeration tag.
20864 (AARCH64_ABI_LP64, AARCH64_ABI_ILP32): New enumerators.
20865 (AARCH64_ABI_DEFAULT): Define to AARCH64_ABI_LP64 if undefined.
20866 (TARGET_ILP32): New define.
20867 * config/aarch64/aarch64.opt (mabi): New.
20868 (aarch64_abi): New.
20869 (ilp32, lp64): New values for -mabi.
20870 * config/aarch64/t-aarch64 (comma): New define.
20871 (MULTILIB_OPTIONS): Ditto.
20872 (MULTILIB_DIRNAMES): Ditto.
20873 * config/aarch64/t-aarch64-linux (MULTIARCH_DIRNAME): New define.
20874 * doc/invoke.texi: Document -mabi for AArch64.
20876 2013-07-23 Georg-Johann Lay <avr@gjlay.de>
20878 * config/avr/avr.md: Explain asm print modifier 'r' for REG.
20880 2013-07-22 Bill Schmidt <wschmidt@vnet.linux.ibm.com>
20881 Anton Blanchard <anton@au1.ibm.com>
20883 * config/rs6000/rs6000.c (rs6000_expand_vector_init): Fix
20884 endianness when selecting field to splat.
20886 2013-07-22 Eric Christopher <echristo@gmail.com>
20888 * dwarf2out.c (die_odr_checksum): New function to use
20889 CHECKSUM_ macros and ULEB128 for DIE tag.
20890 (generate_type_signature): Use.
20892 2013-07-22 Eric Botcazou <ebotcazou@adacore.com>
20894 * config.gcc (sparc*-*-*): Accept leon3 processor.
20895 (sparc-leon*-*): Merge with sparc*-*-* and add leon3 support.
20896 * doc/invoke.texi (SPARC Options): Adjust -mfix-ut699 entry.
20897 * config/sparc/sparc-opts.h (enum processor_type): Add PROCESSOR_LEON3.
20898 * config/sparc/sparc.opt (enum processor_type): Add leon3.
20899 (mfix-ut699): Adjust comment.
20900 * config/sparc/sparc.h (TARGET_CPU_leon3): New define.
20901 (CPP_CPU32_DEFAULT_SPEC): Add leon3 support.
20902 (CPP_CPU_SPEC): Likewise.
20903 (ASM_CPU_SPEC): Likewise.
20904 * config/sparc/sparc.c (leon3_cost): New constant.
20905 (sparc_option_override): Add leon3 support.
20906 (mem_ref): New function.
20907 (sparc_gate_work_around_errata): Return true if -mfix-ut699 is enabled.
20908 (sparc_do_work_around_errata): Look into the instruction in the delay
20909 slot and adjust accordingly. Add fix for the data cache nullify issues
20910 of the UT699. Change insertion position for the NOP.
20911 * config/sparc/leon.md (leon_fpalu, leon_fpmds, write_buf): Delete.
20912 (leon3_load): New reservation.
20913 (leon_store): Bump latency to 2.
20914 (grfpu): New automaton.
20915 (grfpu_alu): New unit.
20916 (grfpu_ds): Likewise.
20917 (leon_fp_alu): Adjust.
20918 (leon_fp_mult): Delete.
20919 (leon_fp_div): Split into leon_fp_divs and leon_fp_divd.
20920 (leon_fp_sqrt): Split into leon_fp_sqrts and leon_fp_sqrtd.
20921 * config/sparc/sparc.md (cpu): Add leon3.
20922 * config/sparc/sync.md (atomic_exchangesi): Disable if -mfix-ut699.
20923 (swapsi): Likewise.
20924 (atomic_test_and_set): Likewise.
20925 (ldstub): Likewise.
20927 2013-07-22 Jürgen Urban <JuergenUrban@gmx.de>
20929 * config.gcc (mips*-*-*): Add --with-fpu support. Make single the
20930 default for R5900 targets.
20931 * config/mips/mips.h (OPTION_DEFAULT_SPECS): Handle --with-fpu.
20932 (ISA_HAS_LDC1_SDC1): Set to false for TARGET_MIPS5900.
20933 * config/mips/mips.c (mips_option_override): Report an error for
20934 -march=r5900 -mhard-float -mdouble-float. Use spu_single_format
20935 for -march=r5900 -mhard-float.
20937 2013-07-22 Po-Chun Chang <pchang9@cs.wisc.edu>
20939 * df-problems.c (can_move_insns_across): Exit loop once we
20940 find a non-fixed, non-global register.
20942 * ipa-pure-const.c (propagate_nothrow): Exit loop after
20945 * omega.c (omega_eliminate_red): Break after setting red_found.
20946 (omega_problem_has_red_equations): Similarly after setting found.
20947 (omega_query_variable): Similarly after setting coupled.
20949 2013-07-22 Marek Polacek <polacek@redhat.com>
20951 * gimplify.c: Don't include gimple.h twice.
20953 2013-07-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
20955 * config/arm/constraints.md (Pd): Allow TARGET_THUMB
20956 instead of TARGET_THUMB1.
20957 (Pz): New constraint.
20958 * config/arm/arm.md (arm_addsi3): Add alternatives for 16-bit
20960 (compare_negsi_si): Likewise.
20961 (compare_addsi2_op0): Likewise.
20962 (compare_addsi2_op1): Likewise.
20963 (addsi3_carryin_<optab>): Likewise.
20964 (addsi3_carryin_alt2_<optab>): Likewise.
20965 (addsi3_carryin_shift_<optab>): Disable cond_exec variant
20966 for arm_restrict_it.
20967 (subsi3_carryin): Likewise.
20968 (arm_subsi3_insn): Add alternatives for 16-bit encoding.
20969 (minmax_arithsi): Disable for arm_restrict_it.
20970 (minmax_arithsi_non_canon): Adjust for arm_restrict_it.
20971 (satsi_<SAT:code>): Disable cond_exec variant for arm_restrict_it.
20972 (satsi_<SAT:code>_shift): Likewise.
20973 (arm_shiftsi3): Add alternative for 16-bit encoding.
20974 (arm32_movhf): Disable for arm_restrict_it.
20975 (arm_cmpdi_unsigned): Add alternatives for 16-bit encoding.
20976 (arm_movtas_ze): Disable cond_exec variant for arm_restrict_it.
20978 2013-07-22 Sofiane Naci <sofiane.naci@arm.com>
20980 * config/arm/arm.md (attribute "insn"): Delete.
20981 (attribute "type"): Add "mov_imm", "mov_reg", "mov_shift",
20982 "mov_shift_reg", "mvn_imm", "mvn_reg", "mvn_shift" and "mvn_shift_reg".
20983 (not_shiftsi): Update for attribute change.
20984 (not_shiftsi_compare0): Likewise.
20985 (not_shiftsi_compare0_scratch): Likewise.
20986 (arm_one_cmplsi2): Likewise.
20987 (thumb1_one_cmplsi2): Likewise.
20988 (notsi_compare0): Likewise.
20989 (notsi_compare0_scratch): Likewise.
20990 (thumb1_movdi_insn): Likewise.
20991 (arm_movsi_insn): Likewise.
20992 (movhi_insn_arch4): Likewise.
20993 (movhi_bytes): Likewise.
20994 (arm_movqi_insn): Likewise.
20995 (thumb1_movqi_insn): Likewise.
20996 (arm32_movhf): Likewise.
20997 (thumb1_movhf): Likewise.
20998 (arm_movsf_soft_insn): Likewise.
20999 (thumb1_movsf_insn): Likewise.
21000 (thumb_movdf_insn): Likewise.
21001 (movsicc_insn): Likewise.
21002 (movsfcc_soft_insn): Likewise.
21003 (and_scc): Likewise.
21004 (cond_move): Likewise.
21005 (if_move_not): Likewise.
21006 (if_not_move): Likewise.
21007 (if_shift_move): Likewise.
21008 (if_move_shift): Likewise.
21009 (if_shift_shift): Likewise.
21010 (if_not_arith): Likewise.
21011 (if_arith_not): Likewise.
21012 (cond_move_not): Likewise.
21013 * config/arm/neon.md (neon_mov<mode>): Update for attribute change.
21014 (neon_mov<mode>): Likewise.
21015 * config/arm/vfp.md (arm_movsi_vfp): Update for attribute change.
21016 (thumb2_movsi_vfp): Likewise.
21017 (movsf_vfp): Likewise.
21018 (thumb2_movsf_vfp): Likewise.
21019 * config/arm/arm.c (xscale_sched_adjust_cost): Update for attribute
21021 (cortexa7_older_only): Likewise.
21022 (cortexa7_younger): Likewise.
21023 * config/arm/arm1020e.md (1020alu_op): Update for attribute change.
21024 (1020alu_shift_op): Likewise.
21025 (1020alu_shift_reg_op): Likewise.
21026 * config/arm/arm1026ejs.md (alu_op): Update for attribute change.
21027 (alu_shift_op): Likewise.
21028 (alu_shift_reg_op): Likewise.
21029 * config/arm/arm1136jfs.md (11_alu_op): Update for attribute change.
21030 (11_alu_shift_op): Likewise.
21031 (11_alu_shift_reg_op): Likewise.
21032 * config/arm/arm926ejs.md (9_alu_op): Update for attribute change.
21033 (9_alu_shift_reg_op): Likewise.
21034 * config/arm/cortex-a15.md (cortex_a15_alu): Update for attribute
21036 (cortex_a15_alu_shift): Likewise.
21037 (cortex_a15_alu_shift_reg): Likewise.
21038 * config/arm/cortex-a5.md (cortex_a5_alu): Update for attribute change.
21039 (cortex_a5_alu_shift): Likewise.
21040 * config/arm/cortex-a53.md (cortex_a53_alu): Update for attribute
21042 (cortex_a53_alu_shift): Likewise.
21043 * config/arm/cortex-a7.md (cortex_a7_alu_imm): Update for attribute
21045 (cortex_a7_alu_reg): Likewise.
21046 (cortex_a7_alu_shift): Likewise.
21047 * config/arm/cortex-a8.md (cortex_a8_alu): Update for attribute change.
21048 (cortex_a8_alu_shift): Likewise.
21049 (cortex_a8_alu_shift_reg): Likewise.
21050 (cortex_a8_mov): Likewise.
21051 * config/arm/cortex-a9.md (cortex_a9_dp): Update for attribute change.
21052 (cortex_a9_dp_shift): Likewise.
21053 * config/arm/cortex-m4.md (cortex_m4_alu): Update for attribute change.
21054 * config/arm/cortex-r4.md (cortex_r4_alu): Update for attribute change.
21055 (cortex_r4_mov): Likewise.
21056 (cortex_r4_alu_shift): Likewise.
21057 (cortex_r4_alu_shift_reg): Likewise.
21058 * config/arm/fa526.md (526_alu_op): Update for attribute change.
21059 (526_alu_shift_op): Likewise.
21060 * config/arm/fa606te.md (606te_alu_op): Update for attribute change.
21061 * config/arm/fa626te.md (626te_alu_op): Update for attribute change.
21062 (626te_alu_shift_op): Likewise.
21063 * config/arm/fa726te.md (726te_shift_op): Update for attribute change.
21064 (726te_alu_op): Likewise.
21065 (726te_alu_shift_op): Likewise.
21066 (726te_alu_shift_reg_op): Likewise.
21067 * config/arm/fmp626.md (mp626_alu_op): Update for attribute change.
21068 (mp626_alu_shift_op): Likewise.
21069 * config/arm/marvell-pj4.md (pj4_alu_e1): Update for attribute change.
21070 (pj4_alu_e1_conds): Likewise.
21071 (pj4_alu): Likewise.
21072 (pj4_alu_conds): Likewise.
21073 (pj4_shift): Likewise.
21074 (pj4_shift_conds): Likewise.
21075 (pj4_alu_shift): Likewise.
21076 (pj4_alu_shift_conds): Likewise.
21078 2013-07-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
21080 * config/arm/predicates.md (shiftable_operator_strict_it):
21082 * config/arm/thumb2.md (thumb_andsi_not_shiftsi_si):
21083 Disable cond_exec version for arm_restrict_it.
21084 (thumb2_smaxsi3): Convert to generate cond_exec.
21085 (thumb2_sminsi3): Likewise.
21086 (thumb32_umaxsi3): Likewise.
21087 (thumb2_uminsi3): Likewise.
21088 (thumb2_abssi2): Adjust constraints for arm_restrict_it.
21089 (thumb2_neg_abssi2): Likewise.
21090 (thumb2_mov_scc): Add alternative for 16-bit encoding.
21091 (thumb2_movsicc_insn): Adjust alternatives.
21092 (thumb2_mov_negscc): Disable for arm_restrict_it.
21093 (thumb2_mov_negscc_strict_it): New pattern.
21094 (thumb2_mov_notscc_strict_it): New pattern.
21095 (thumb2_mov_notscc): Disable for arm_restrict_it.
21096 (thumb2_ior_scc): Likewise.
21097 (thumb2_ior_scc_strict_it): New pattern.
21098 (thumb2_cond_move): Adjust for arm_restrict_it.
21099 (thumb2_cond_arith): Disable for arm_restrict_it.
21100 (thumb2_cond_arith_strict_it): New pattern.
21101 (thumb2_cond_sub): Adjust for arm_restrict_it.
21102 (thumb2_movcond): Likewise.
21103 (thumb2_extendqisi_v6): Disable cond_exec variant for arm_restrict_it.
21104 (thumb2_zero_extendhisi2_v6): Likewise.
21105 (thumb2_zero_extendqisi2_v6): Likewise.
21106 (orsi_notsi_si): Likewise.
21107 (orsi_not_shiftsi_si): Likewise.
21109 2013-07-22 Georg-Johann Lay <avr@gjlay.de>
21111 * config/avr/avr.c (avr_out_xload): No SBIS around LPM so that
21112 instruction sequence is 1 byte shorter.
21114 2013-07-22 Uros Bizjak <ubizjak@gmail.com>
21116 * config/i386/i386.md (nonlocal_goto_receiver): Delete insn if
21117 it is not needed after split.
21119 2013-07-20 Iain Sandoe <iain@codesourcery.com>
21122 * config/i386/i386.c (output_set_got) [TARGET_MACHO]: Adjust to emit a
21123 second label for nonlocal goto receivers. Don't output pic base labels
21124 unless we're producing PIC; mark that action unreachable().
21125 (ix86_save_reg): If the function contains a nonlocal label, save the
21127 * config/darwin-protos.h (machopic_should_output_picbase_label): New.
21128 * config/darwin.c (emitted_pic_label_num): New GTY.
21129 (update_pic_label_number_if_needed): New.
21130 (machopic_output_function_base_name): Adjust for nonlocal receiver
21132 (machopic_should_output_picbase_label): New.
21133 * config/i386/i386.md (enum unspecv): UNSPECV_NLGR: New.
21134 (nonlocal_goto_receiver): New insn and split.
21136 2013-07-20 James Greenhalgh <james.greenhalgh@arm.com>
21138 * config/aarch64/aarch64-builtins.c
21139 (aarch64_fold_builtin): Fold abs in all modes.
21140 * config/aarch64/aarch64-simd-builtins.def
21141 (abs): Enable for all modes.
21142 * config/aarch64/arm_neon.h
21143 (vabs<q>_s<8,16,32,64): Rewrite using builtins.
21144 (vabs_f64): Add missing intrinsic.
21146 2013-07-19 Ian Bolton <ian.bolton@arm.com>
21148 * config/aarch64/arm_neon.h (vabs_s64): New function
21150 2013-07-19 Georg-Johann Lay <avr@gjlay.de>
21153 * config/avr/avr-fixed.md (round<mode>3_const): Turn expander to insn.
21154 * config/avr/avr.md (adjust_len): Add `round'.
21155 * config/avr/avr-protos.h (avr_out_round): New prototype.
21156 (avr_out_plus): Add `out_label' argument.
21157 * config/avr/avr.c (avr_out_plus_1): Add `out_label' argument.
21158 (avr_out_plus): Pass down `out_label' to avr_out_plus_1.
21159 Handle the case where `insn' is just a pattern.
21160 (avr_out_bitop): Handle the case where `insn' is just a pattern.
21161 (avr_out_round): New function.
21162 (avr_adjust_insn_length): Handle ADJUST_LEN_ROUND.
21164 2013-07-18 David Holsgrove <david.holsgrove@xilinx.com>
21166 * config/microblaze/microblaze.c (microblaze_expand_prologue):
21167 Add check for flag_stack_usage to handle -fstack-usage support
21169 2013-07-18 Pat Haugen <pthaugen@us.ibm.com>
21171 * config/rs6000/rs6000.c (rs6000_option_override_internal): Adjust flag
21172 interaction for new Power8 flags and VSX.
21174 2013-07-18 Sriraman Tallam <tmsriram@google.com>
21176 PR middle-end/57698
21177 * tree-inline.c (expand_call_inline): Emit errors during
21178 early_inlining only if optimization is not turned on.
21180 2013-07-18 David Malcolm <dmalcolm@redhat.com>
21184 * passes.c (init_optimization_passes): Move the construction of
21185 the pass hierarchy into a new passes.def file.
21187 * Makefile.in (passes.o): Add dependency on passes.def.
21189 2013-07-18 David Malcolm <dmalcolm@redhat.com>
21191 * passes.c (init_optimization_passes): Introduce macros for
21192 constructing the tree of passes (INSERT_PASSES_AFTER,
21193 PUSH_INSERT_PASSES_WITHIN, POP_INSERT_PASSES,
21194 TERMINATE_PASS_LIST).
21196 2013-07-18 Vladimir Makarov <vmakarov@redhat.com>
21197 Wei Mi <wmi@google.com>
21199 PR rtl-optimization/57878
21200 * lra-assigns.c (assign_by_spills): Move non_reload_pseudos to the
21202 (reload_pseudo_compare_func): Check nregs first for reload
21205 2013-07-18 David Malcolm <dmalcolm@redhat.com>
21207 * tree-pass.h (pass_ipa_lto_wpa_fixup): Remove redundant decl.
21209 2013-07-18 Po-Chun Chang <pchang9@cs.wisc.edu>
21211 * read-rtl.c (validate_const_int): Once an invalid character is
21212 seen, quit the loop.
21214 * gengtype.c (write_roots): Similarly once we find the "deletable"
21215 or "if_marked" option.
21217 2013-07-18 Sofiane Naci <sofiane.naci@arm.com>
21219 * config/arm/arm.md (attribute "insn"): Delete values "mrs", "msr",
21220 "xtab" and "sat". Move value "clz" from here to ...
21221 (attriubte "type"): ... here.
21222 (satsi_<SAT:code>): Delete "insn" attribute.
21223 (satsi_<SAT:code>_shift): Likewise.
21224 (arm_zero_extendqisi2addsi): Likewise.
21225 (arm_extendqisi2addsi): Likewise.
21226 (clzsi2): Update for attribute changes.
21227 (rbitsi2): Likewise.
21228 * config/arm/arm-fixed.md (arm_ssatsihi_shift): Delete "insn"
21230 (arm_usatsihi): Likewise.
21231 * config/arm/cortex-a8.md (cortex_a8_alu): Update for attribute change.
21233 2013-07-18 Sofiane Naci <sofiane.naci@arm.com>
21235 * config/arm/arm.md (attribute "type"): Rename "simple_alu_imm" to
21236 "arlo_imm". Rename "alu_reg" to "arlo_reg". Rename "simple_alu_shift"
21237 to "extend". Split "alu_shift" into "shift" and "arlo_shift". Split
21238 "alu_shift_reg" into "shift_reg" and "arlo_shift_reg". List types
21239 in alphabetical order.
21240 (attribute "core_cycles"): Update for attribute changes.
21241 (arm_addsi3): Likewise.
21242 (addsi3_compare0): Likewise.
21243 (addsi3_compare0_scratch): Likewise.
21244 (addsi3_compare_op1): Likewise.
21245 (addsi3_compare_op2): Likewise.
21246 (compare_addsi2_op0): Likewise.
21247 (compare_addsi2_op1): Likewise.
21248 (addsi3_carryin_shift_<optab>): Likewise.
21249 (subsi3_carryin_shift): Likewise.
21250 (rsbsi3_carryin_shift): Likewise.
21251 (arm_subsi3_insn): Likewise.
21252 (subsi3_compare0): Likewise.
21253 (subsi3_compare): Likewise.
21254 (arm_andsi3_insn): Likewise.
21255 (thumb1_andsi3_insn): Likewise.
21256 (andsi3_compare0): Likewise.
21257 (andsi3_compare0_scratch): Likewise.
21258 (zeroextractsi_compare0_scratch
21259 (andsi_not_shiftsi_si): Likewise.
21260 (iorsi3_insn): Likewise.
21261 (iorsi3_compare0): Likewise.
21262 (iorsi3_compare0_scratch): Likewise.
21263 (arm_xorsi3): Likewise.
21264 (thumb1_xorsi3_insn): Likewise.
21265 (xorsi3_compare0): Likewise.
21266 (xorsi3_compare0_scratch): Likewise.
21267 (satsi_<SAT:code>_shift): Likewise.
21269 (arm_shiftsi3): Likewise.
21270 (shiftsi3_compare0): Likewise.
21271 (not_shiftsi): Likewise.
21272 (not_shiftsi_compare0): Likewise.
21273 (not_shiftsi_compare0_scratch): Likewise.
21274 (arm_one_cmplsi2): Likewise.
21275 (thumb_one_complsi2): Likewise.
21276 (notsi_compare0): Likewise.
21277 (notsi_compare0_scratch): Likewise.
21278 (thumb1_zero_extendhisi2): Likewise.
21279 (arm_zero_extendhisi2): Likewise.
21280 (arm_zero_extendhisi2_v6): Likewise.
21281 (arm_zero_extendhisi2addsi): Likewise.
21282 (thumb1_zero_extendqisi2): Likewise.
21283 (thumb1_zero_extendqisi2_v6): Likewise.
21284 (arm_zero_extendqisi2): Likewise.
21285 (arm_zero_extendqisi2_v6): Likewise.
21286 (arm_zero_extendqisi2addsi): Likewise.
21287 (thumb1_extendhisi2): Likewise.
21288 (arm_extendhisi2): Likewise.
21289 (arm_extendhisi2_v6): Likewise.
21290 (arm_extendqisi): Likewise.
21291 (arm_extendqisi_v6): Likewise.
21292 (arm_extendqisi2addsi): Likewise.
21293 (thumb1_extendqisi2): Likewise.
21294 (thumb1_movdi_insn): Likewise.
21295 (arm_movsi_insn): Likewise.
21296 (movsi_compare0): Likewise.
21297 (movhi_insn_arch4): Likewise.
21298 (movhi_bytes): Likewise.
21299 (arm_movqi_insn): Likewise.
21300 (thumb1_movqi_insn): Likewise.
21301 (arm32_movhf): Likewise.
21302 (thumb1_movhf): Likewise.
21303 (arm_movsf_soft_insn): Likewise.
21304 (thumb1_movsf_insn): Likewise.
21305 (movdf_soft_insn): Likewise.
21306 (thumb_movdf_insn): Likewise.
21307 (arm_cmpsi_insn): Likewise.
21308 (cmpsi_shiftsi): Likewise.
21309 (cmpsi_shiftsi_swp): Likewise.
21310 (arm_cmpsi_negshiftsi_si): Likewise.
21311 (movsicc_insn): Likewise.
21312 (movsfcc_soft_insn): Likewise.
21313 (arith_shiftsi): Likewise.
21314 (arith_shiftsi_compare0
21315 (arith_shiftsi_compare0_scratch
21316 (sub_shiftsi): Likewise.
21317 (sub_shiftsi_compare0
21318 (sub_shiftsi_compare0_scratch
21319 (and_scc): Likewise.
21320 (cond_move): Likewise.
21321 (if_plus_move): Likewise.
21322 (if_move_plus): Likewise.
21323 (if_move_not): Likewise.
21324 (if_not_move): Likewise.
21325 (if_shift_move): Likewise.
21326 (if_move_shift): Likewise.
21327 (if_shift_shift): Likewise.
21328 (if_not_arith): Likewise.
21329 (if_arith_not): Likewise.
21330 (cond_move_not): Likewise.
21331 (thumb1_ashlsi3): Set type attribute.
21332 (thumb1_ashrsi3): Likewise.
21333 (thumb1_lshrsi3): Likewise.
21334 (thumb1_rotrsi3): Likewise.
21335 (shiftsi3_compare0_scratch): Likewise.
21336 * config/arm/neon.md (neon_mov<mode>): Update for attribute changes.
21337 (neon_mov<mode>): Likewise.
21338 * config/arm/thumb2.md (thumb_andsi_not_shiftsi_si): Update for
21340 (thumb2_movsi_insn): Likewise.
21341 (thumb2_cmpsi_neg_shiftsi): Likewise.
21342 (thumb2_extendqisi_v6): Likewise.
21343 (thumb2_zero_extendhisi2_v6): Likewise.
21344 (thumb2_zero_extendqisi2_v6): Likewise.
21345 (thumb2_shiftsi3_short): Likewise.
21346 (thumb2_addsi3_compare0_scratch): Likewise.
21347 (orsi_not_shiftsi_si): Likewise.
21348 * config/arm/vfp.md (arm_movsi_vfp): Update for attribute changes.
21349 * config/arm/arm-fixed.md (arm_ssatsihi_shift): Update for attribute
21351 * config/arm/arm1020e.md (1020alu_op): Update for attribute changes.
21352 (1020alu_shift_op): Likewise.
21353 (1020alu_shift_reg_op): Likewise.
21354 * config/arm/arm1026ejs.md (alu_op): Update for attribute changes.
21355 (alu_shift_op): Likewise.
21356 (alu_shift_reg_op): Likewise.
21357 * config/arm/arm1136jfs.md (11_alu_op): Update for attribute changes.
21358 (11_alu_shift_op): Likewise.
21359 (11_alu_shift_reg_op): Likewise.
21360 * config/arm/arm926ejs.md (9_alu_op): Update for attribute changes.
21361 (9_alu_shift_reg_op): Likewise.
21362 * config/arm/cortex-a15.md (cortex_a15_alu): Update for attribute
21364 (cortex_a15_alu_shift): Likewise.
21365 (cortex_a15_alu_shift_reg): Likewise.
21366 * config/arm/cortex-a5.md (cortex_a5_alu): Update for attribute
21368 (cortex_a5_alu_shift): Likewise.
21369 * config/arm/cortex-a53.md (cortex_a53_alu) : Update for attribute
21371 (cortex_a53_alu_shift): Likewise.
21372 * config/arm/cortex-a7.md (cortex_a7_alu_imm): Update for attribute
21374 (cortex_a7_alu_reg): Likewise.
21375 (cortex_a7_alu_shift): Likewise.
21376 * config/arm/cortex-a8.md (cortex_a8_alu): Update for attribute
21378 (cortex_a8_alu_shift): Likewise.
21379 (cortex_a8_alu_shift_reg): Likewise.
21380 (cortex_a8_mov): Likewise.
21381 * config/arm/cortex-a9.md (cortex_a9_dp): Update for attribute changes.
21382 (cortex_a9_dp_shift): Likewise.
21383 * config/arm/cortex-m4.md (cortex_m4_alu): Update for attribute
21385 * config/arm/cortex-r4.md (cortex_r4_alu): Update for attribute
21387 (cortex_r4_mov): Likewise.
21388 (cortex_r4_alu_shift): Likewise.
21389 (cortex_r4_alu_shift_reg): Likewise.
21390 * config/arm/fa526.md (526_alu_op): Update for attribute changes.
21391 (526_alu_shift_op): Likewise.
21392 * config/arm/fa606te.md (606te_alu_op): Update for attribute changes.
21393 * config/arm/fa626te.md (626te_alu_op): Update for attribute changes.
21394 (626te_alu_shift_op): Likewise.
21395 * config/arm/fa726te.md (726te_shift_op): Update for attribute changes.
21396 (726te_alu_op): Likewise.
21397 (726te_alu_shift_op): Likewise.
21398 (726te_alu_shift_reg_op): Likewise.
21399 * config/arm/fmp626.md (mp626_alu_op): Update for attribute changes.
21400 (mp626_alu_shift_op): Likewise.
21401 * config/arm/marvell-pj4.md (pj4_alu_e1): Update for attribute changes.
21402 (pj4_alu_e1_conds): Likewise.
21403 (pj4_alu): Likewise.
21404 (pj4_alu_conds): Likewise.
21405 (pj4_shift): Likewise.
21406 (pj4_shift_conds): Likewise.
21407 (pj4_alu_shift): Likewise.
21408 (pj4_alu_shift_conds): Likewise.
21409 * config/arm/arm.c (xscale_sched_adjust_cost): Update for attribute
21411 (cortexa7_older_only): Likewise.
21412 (cortexa7_younger): Likewise.
21414 2013-07-18 David Malcolm <dmalcolm@redhat.com>
21416 * ipa-pure-const.c (generate_summary): Rename to...
21417 (pure_const_generate_summary): ... this.
21419 2013-07-17 Iain Sandoe <iain@codesourcery.com>
21421 * config/rs6000/darwin.h (REGISTER_NAMES): Add HTM registers.
21423 2013-07-17 Yvan Roux <yvan.roux@linaro.org>
21426 * config/arm/arm.c (gen_movmem_ldrd_strd): Fix unaligned load/store
21429 2013-07-17 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
21431 * config/s390/s390.c: (s390_expand_builtin): Allow -mhtm to be
21432 enabled without -march=zEC12.
21433 * config/s390/s390.h (TARGET_HTM): Do not require EC12 machine
21436 2013-07-16 Maciej W. Rozycki <macro@codesourcery.com>
21438 * config/mips/mips.h (ISA_HAS_FP4): Correct formatting.
21439 (ISA_HAS_FP_MADD4_MSUB4): Also enable for ISA_MIPS32R2.
21440 (ISA_HAS_NMADD4_NMSUB4): Remove the MODE argument; rewrite in
21441 terms of ISA_HAS_FP4, and also enable for ISA_MIPS32R2.
21442 (ISA_HAS_NMADD3_NMSUB3): Remove the MODE argument.
21443 * config/mips/mips.c (mips_rtx_costs) <PLUS>: Check for
21444 ISA_HAS_FP_MADD4_MSUB4 || ISA_HAS_FP_MADD3_MSUB3 rather than
21446 <MINUS, NEG>: Update according to changes to ISA_HAS_NMADD4_NMSUB4
21447 and ISA_HAS_NMADD3_NMSUB3.
21448 * config/mips/mips.md (nmadd4<mode>, nmadd3<mode>): Likewise.
21449 (nmadd4<mode>_fastmath, nmadd3<mode>_fastmath): Likewise.
21450 (nmsub4<mode>, nmsub3<mode>): Likewise.
21451 (nmsub4<mode>_fastmath, nmsub3<mode>_fastmath): Likewise.
21453 2013-07-16 Maciej W. Rozycki <macro@codesourcery.com>
21455 * config/mips/mips.h (ISA_HAS_NMADD4_NMSUB4): Remove
21456 TARGET_MIPS5400 checking.
21458 2013-07-16 Jakub Jelinek <jakub@redhat.com>
21459 Peter Bergner <bergner@vnet.ibm.com>
21461 * config/rs6000/rs6000.h (FIRST_PSEUDO_REGISTERS): Mention HTM
21462 registers in the comment.
21463 (DWARF_FRAME_REGISTERS): Subtract also the 3 HTM registers.
21464 (DWARF_REG_TO_UNWIND_COLUMN): Use DWARF_FRAME_REGISTERS
21465 rather than FIRST_PSEUDO_REGISTERS.
21467 2013-07-16 Peter Bergner <bergner@vnet.ibm.com>
21469 * config/rs6000/rs6000.c (rs6000_option_override_internal): Do not
21470 enable extra ISA flags with TARGET_HTM.
21472 2013-07-16 Maciej W. Rozycki <macro@codesourcery.com>
21474 * config/mips/mips.h (ISA_HAS_MULS, ISA_HAS_MSAC, ISA_HAS_MACC):
21477 2013-07-15 Cong Hou <congh@google.com>
21479 * tree-vect-data-refs.c (dr_group_sort_cmp): Do not use hash function
21480 in compare function for sorting.
21482 2013-07-15 Peter Bergner <bergner@vnet.ibm.com>
21484 * config.gcc (powerpc*-*-*): Install htmintrin.h and htmxlintrin.h.
21485 * config/rs6000/t-rs6000 (MD_INCLUDES): Add htm.md.
21486 * config/rs6000/rs6000.opt: Add -mhtm option.
21487 * config/rs6000/rs6000-cpus.def (POWERPC_MASKS): Add OPTION_MASK_HTM.
21488 (ISA_2_7_MASKS_SERVER): Add OPTION_MASK_HTM.
21489 * config/rs6000/rs6000-c.c (rs6000_target_modify_macros): Define
21490 __HTM__ if the HTM instructions are available.
21491 * config/rs6000/predicates.md (u3bit_cint_operand, u10bit_cint_operand,
21492 htm_spr_reg_operand): New define_predicates.
21493 * config/rs6000/rs6000.md (define_attr "type"): Add htm.
21494 (TFHAR_REGNO, TFIAR_REGNO, TEXASR_REGNO): New define_constants.
21496 * config/rs6000/rs6000-builtin.def (BU_HTM_0, BU_HTM_1, BU_HTM_2,
21497 BU_HTM_3, BU_HTM_SPR0, BU_HTM_SPR1): Add support macros for defining
21498 HTM builtin functions.
21499 * config/rs6000/rs6000.c (RS6000_BUILTIN_H): New macro.
21500 (rs6000_reg_names, alt_reg_names): Add HTM SPR register names.
21501 (rs6000_init_hard_regno_mode_ok): Add support for HTM instructions.
21502 (rs6000_builtin_mask_calculate): Likewise.
21503 (rs6000_option_override_internal): Likewise.
21504 (bdesc_htm): Add new HTM builtin support.
21505 (htm_spr_num): New function.
21506 (htm_spr_regno): Likewise.
21507 (rs6000_htm_spr_icode): Likewise.
21508 (htm_expand_builtin): Likewise.
21509 (htm_init_builtins): Likewise.
21510 (rs6000_expand_builtin): Add support for HTM builtin functions.
21511 (rs6000_init_builtins): Likewise.
21512 (rs6000_invalid_builtin, rs6000_opt_mask): Add support for -mhtm
21514 * config/rs6000/rs6000.h (ASM_CPU_SPEC): Add support for -mhtm.
21515 (TARGET_HTM, MASK_HTM): Define macros.
21516 (FIRST_PSEUDO_REGISTER): Adjust for new HTM SPR registers.
21517 (FIXED_REGISTERS): Likewise.
21518 (CALL_USED_REGISTERS): Likewise.
21519 (CALL_REALLY_USED_REGISTERS): Likewise.
21520 (REG_ALLOC_ORDER): Likewise.
21521 (enum reg_class): Likewise.
21522 (REG_CLASS_NAMES): Likewise.
21523 (REG_CLASS_CONTENTS): Likewise.
21524 (REGISTER_NAMES): Likewise.
21525 (ADDITIONAL_REGISTER_NAMES): Likewise.
21526 (RS6000_BTC_SPR, RS6000_BTC_VOID, RS6000_BTC_32BIT, RS6000_BTC_64BIT,
21527 RS6000_BTC_MISC_MASK, RS6000_BTM_HTM): New macros.
21528 (RS6000_BTM_COMMON): Add RS6000_BTM_HTM.
21529 * config/rs6000/htm.md: New file.
21530 * config/rs6000/htmintrin.h: New file.
21531 * config/rs6000/htmxlintrin.h: New file.
21533 2013-07-15 Marcus Shawcroft <marcus.shawcroft@arm.com>
21535 * config/aarch64/aarch64-protos.h (aarch64_symbol_type):
21536 Define SYMBOL_TINY_GOT, update comment.
21537 * config/aarch64/aarch64.c
21538 (aarch64_load_symref_appropriately): Handle SYMBOL_TINY_GOT.
21539 (aarch64_expand_mov_immediate): Likewise.
21540 (aarch64_print_operand): Likewise.
21541 (aarch64_classify_symbol): Likewise.
21542 * config/aarch64/aarch64.md (UNSPEC_GOTTINYPIC): Define.
21543 (ldr_got_tiny): Define.
21545 2013-07-13 Tobias Grosser <tobias@grosser.es>
21547 PR tree-optimization/54094
21548 * graphite-clast-to-gimple.c (translate_clast_for_loop): Derive the
21549 scheduling dimension for the parallelism check from the polyhedral
21550 information in the AST.
21551 * graphite-dependences.c (carries_deps): Do not assume the schedule is
21554 2013-07-13 Jason Merrill <jason@redhat.com>
21556 * print-tree.c (debug_vec_tree): Use debug_raw.
21557 (debug_raw (vec<tree, va_gc> &)): New.
21558 (debug_raw (vec<tree, va_gc> *)): New.
21559 * tree.h: Declare them.
21561 2013-07-13 Bin Cheng <bin.cheng@arm.com>
21563 * ifcvt.c (ifcvt_after_combine): New static variable.
21564 (cheap_bb_rtx_cost_p): Set scale to REG_BR_PROB_BASE when optimizing
21566 (if_convert): New parameter after_combine. Set ifcvt_after_combine.
21567 (rest_of_handle_if_conversion, rest_of_handle_if_after_combine,
21568 rest_of_handle_if_after_reload): Pass new argument for if_convert.
21570 2013-07-12 Maciej W. Rozycki <macro@codesourcery.com>
21572 * config/mips/mips.c (mips_expand_call): Remove empty statement.
21574 2013-07-12 Michael Matz <matz@suse.de>
21576 PR middle-end/55771
21577 * convert.c (convert_to_real): Reject non-float inner types.
21579 2013-07-12 Tejas Belagod <tejas.belagod@arm.com>
21581 * config/aarch64/aarch64-protos.h
21582 (aarch64_simd_immediate_valid_for_move): Remove.
21583 * config/aarch64/aarch64.c (simd_immediate_info): New member.
21584 (aarch64_simd_valid_immediate): Recognize idioms for shifting ones
21586 (aarch64_output_simd_mov_immediate): Print the correct shift specifier.
21588 2013-07-11 Steve Ellcey <sellcey@mips.com>
21590 * config/mips/mips.c (mips_conditional_register_usage): Do not
21591 use t[0-7] registers in MIPS16 mode when optimizing for size.
21593 2013-07-11 Sriraman Tallam <tmsriram@google.com>
21595 * config/i386/i386.c (dispatch_function_versions): Fix array
21596 indexing of function_version_info to match actual_versions.
21598 2013-07-11 Teresa Johnson <tejohnson@google.com>
21600 * vec.h (struct va_gc): Move release out-of-line.
21601 (va_gc::release): Call ggc_free on released vec.
21603 2013-07-11 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
21605 * config/rs6000/rs6000.md (""*tls_gd_low<TLSmode:tls_abi_suffix>"):
21606 Require GOT register as additional operand in UNSPEC.
21607 ("*tls_ld_low<TLSmode:tls_abi_suffix>"): Likewise.
21608 ("*tls_got_dtprel_low<TLSmode:tls_abi_suffix>"): Likewise.
21609 ("*tls_got_tprel_low<TLSmode:tls_abi_suffix>"): Likewise.
21610 ("*tls_gd<TLSmode:tls_abi_suffix>"): Update splitter.
21611 ("*tls_ld<TLSmode:tls_abi_suffix>"): Likewise.
21612 ("tls_got_dtprel_<TLSmode:tls_abi_suffix>"): Likewise.
21613 ("tls_got_tprel_<TLSmode:tls_abi_suffix>"): Likewise.
21615 2013-07-11 Georg-Johann Lay <avr@gjlay.de>
21618 * config/avr/avr.c (avr_set_current_function): Sanity-check signal
21619 name seen by assembler/linker rather if available.
21621 2013-07-11 Andreas Schwab <schwab@suse.de>
21623 * config/aarch64/aarch64-linux.h (CPP_SPEC): Define.
21625 2013-07-10 Vladimir Makarov <vmakarov@redhat.com>
21627 * lra-constraints.c (curr_insn_transform): Switch off optional reloads.
21629 2013-07-10 Joseph Myers <joseph@codesourcery.com>
21631 * doc/tm.texi.in: Move hook documentation to ....
21632 * target.def: ... here.
21634 * doc/tm.texi.in (TARGET_CANONICALIZE_COMPARISON): Remove stray
21635 text on @hook line.
21636 * doc/tm.texi: Regenerate.
21638 2013-07-10 Paolo Carlini <paolo.carlini@oracle.com>
21641 * doc/invoke.texi: Document -Wconditionally-supported.
21643 2013-07-10 Georg-Johann Lay <avr@gjlay.de>
21646 * config/avr/avr.c (avr_prologue_setup_frame): Trunk -size to mode
21649 2013-07-10 Georg-Johann Lay <avr@gjlay.de>
21652 * config/avr/avr-mcus.def (atmega16hva, atmega16hva2, atmega16hvb)
21653 (atmega16m1, atmega16u4, atmega32a, atmega32c1, atmega32hvb)
21654 (atmega32m1, atmega32u4, atmega32u6, atmega64c1, atmega64m1):
21655 Remove duplicate devices.
21656 * config/avr/gen-avr-mmcu-texi.c (print_mcus): Fail on duplicate MCUs.
21657 * config/avr/t-multilib: Regenerate.
21658 * config/avr/avr-tables.opt: Regenerate.
21659 * doc/avr-mmcu.texi: Regenerate.
21661 2013-07-10 Georg-Johann Lay <avr@gjlay.de>
21664 * config/avr/avr.opt (Waddr-space-convert): Fix typo.
21666 2013-07-10 Graham Stott <graham.stott@btinternet.com>
21668 * config/mips/mips.c (mips_rtx_costs): Very slightly increase
21669 the cost of MULT when optimizing for size.
21671 2013-07-10 Jan-Benedict Glaw <jbglaw@lug-owl.de>
21673 * config/cr16/cr16-protos.h: Don't include target.h.
21675 2013-07-09 Joseph Myers <joseph@codesourcery.com>
21677 * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Only
21678 adjust register size for TDmode and TFmode for VSX registers.
21680 2013-07-08 Kai Tietz <ktietz@redhat.com>
21683 * config/i386/i386.c (TARGET_FUNCTION_ATTRIBUTE_INLINABLE_P): Define as
21684 hook_bool_const_tree_true.
21686 2013-07-08 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
21688 * config/s390/s390.c: Replace F*_REGNUM with FPR*_REGNUM.
21689 * config/s390/s390.h: Remove F*_REGNUM macro definitions.
21690 * config/s390/s390.md: Define FPR*_REGNUM constants.
21691 Fix FPR2_REGNUM constant (18 -> 17).
21692 ("*trunc<BFP:mode><DFP_ALL:mode>2")
21693 ("*trunc<DFP_ALL:mode><BFP:mode>2")
21694 ("trunc<BFP:mode><DFP_ALL:mode>2")
21695 ("trunc<DFP_ALL:mode><BFP:mode>2")
21696 ("*extend<BFP:mode><DFP_ALL:mode>2")
21697 ("*extend<DFP_ALL:mode><BFP:mode>2")
21698 ("extend<BFP:mode><DFP_ALL:mode>2")
21699 ("extend<DFP_ALL:mode><BFP:mode>2"): Replace FPR2_REGNUM with
21702 2013-07-08 Graham Stott <graham.stott@btinternet.com>
21704 * Makefile.in: (c-family-warn): Define to $(STRICT_WARN)
21706 2013-07-08 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
21708 * config/s390/s390.c: Rename cfun_set_fpr_bit to cfun_set_fpr_save
21709 and cfun_fpr_bit_p to cfun_fpr_save_p.
21710 (s390_frame_area, s390_register_info, s390_frame_info)
21711 (s390_emit_prologue, s390_emit_epilogue)
21712 (s390_conditional_register_usage): Use the *_REGNUM macros for FPR
21714 * config/s390/s390.h: Define *_REGNUM macros for floating point
21717 2013-07-08 Eric Botcazou <ebotcazou@adacore.com>
21719 * Makefile.in (tree-ssa-reassoc.o): Add dependency on $(PARAMS_H).
21721 2013-07-08 Po-Chun Chang <pchang9@cs.wisc.edu>
21723 PR rtl-optimization/57786
21724 * combine.c (distribute_notes) <case REG_DEAD>: Change all_used to bool
21725 and break out of the loop when it is set to false.
21727 2013-07-08 Jakub Jelinek <jakub@redhat.com>
21730 * simplify-rtx.c (simplify_unary_operation_1) <case ZERO_EXTEND>:
21731 Simplify (zero_extend:SI (subreg:QI (and:SI (reg:SI)
21732 (const_int 63)) 0)).
21733 * combine.c (make_extraction): Create ZERO_EXTEND or SIGN_EXTEND
21734 using simplify_gen_unary instead of gen_rtx_*_EXTEND.
21735 * config/i386/i386.md (*jcc_bt<mode>_1): New define_insn_and_split.
21737 PR rtl-optimization/57829
21738 * simplify-rtx.c (simplify_binary_operation_1) <case IOR>: Ensure that
21739 mask bits outside of mode are just sign-extension from mode to HWI.
21741 2013-07-08 Michael Zolotukhin <michael.v.zolotukhin@gmail.com>
21743 * config/i386/i386-opts.h (enum stringop_alg): Add vector_loop.
21744 * config/i386/i386.c (expand_set_or_movmem_via_loop): Use
21745 adjust_address instead of change_address to keep info about alignment.
21746 (emit_strmov): Remove.
21747 (emit_memmov): New function.
21748 (expand_movmem_epilogue): Refactor to properly handle bigger sizes.
21749 (expand_movmem_epilogue): Likewise and return updated rtx for
21751 (expand_constant_movmem_prologue): Likewise and return updated rtx for
21752 destination and source.
21753 (decide_alignment): Refactor, handle vector_loop.
21754 (ix86_expand_movmem): Likewise.
21755 (ix86_expand_setmem): Likewise.
21756 * config/i386/i386.opt (Enum): Add vector_loop to option stringop_alg.
21758 2013-07-07 Uros Bizjak <ubizjak@gmail.com>
21760 * config/i386/driver-i386.c (host_detect_local_cpu): Do not check
21761 signature_TM2_ebx, it interferes with signature_INTEL_ebx.
21763 2013-07-06 Uros Bizjak <ubizjak@gmail.com>
21765 * config/i386/sse.md (sse_movlhps): Change alternative 3
21766 of operand 2 to "m".
21768 2013-07-06 Uros Bizjak <ubizjak@gmail.com>
21771 * config/i386/sse.md (iptr): New mode attribute.
21772 (sse2_movq128): Add pointer size overrides for Intel asm dialect.
21773 (<sse>_vm<plusminus_insn><mode>3): Ditto.
21774 (<sse>_vmmul<mode>3): Ditto.
21775 (<sse>_vmdiv<mode>3): Ditto.
21776 (sse_vmrcpv4sf2): Ditto.
21777 (<sse>_vmsqrt<mode>2): Ditto.
21778 (sse_vmrsqrtv4sf2): Ditto.
21779 (<sse>_vm<code><mode>3): Ditto.
21780 (avx_vmcmp<mode>3): Ditto.
21781 (<sse>_vmmaskcmp<mode>3): Ditto.
21782 (<sse>_comi): Ditto.
21783 (<sse>_ucomi): Ditto.
21784 (*xop_vmfrcz_<mode>): Ditto.
21785 (*fmai_fmadd_<mode>): Ditto.
21786 (*fmai_fmsub_<mode>): Ditto.
21787 (*fmai_fnmadd_<mode>): Ditto.
21788 (*fmai_fnmsub_<mode>): Ditto.
21789 (*fma4i_vmfmadd_<mode>): Ditto.
21790 (*fma4i_vmfmsub_<mode>): Ditto.
21791 (*fma4i_vmfnmadd_<mode>): Ditto.
21792 (*fma4i_vmfnmsub_<mode>): Ditto.
21793 (*xop_vmfrcz_<mode>): Ditto.
21794 (sse_cvtps2pi): Ditto.
21795 (sse_cvttps2pi): Ditto.
21796 (sse_cvtss2si): Ditto.
21797 (sse_cvtss2si_2): Ditto.
21798 (sse_cvtss2siq_2): Ditto.
21799 (sse_cvttss2si): Ditto.
21800 (sse_cvttss2siq): Ditto.
21801 (sse_cvtsd2si): Ditto.
21802 (sse_cvtsd2si_2): Ditto.
21803 (sse_cvtsd2siq_2): Ditto.
21804 (sse_cvttsd2si): Ditto.
21805 (sse_cvttsd2siq): Ditto.
21806 (sse_cvtsd2ss): Ditto.
21807 (sse_cvtss2sd): Ditto.
21808 (avx2_pbroadcast<mode>): Ditto.
21809 (avx2_pbroadcast<mode>_1): Ditto.
21810 (*avx_vperm_broadcast_v4sf): Ditto.
21812 (sse_movhlps): Ditto for movlp[sd]/movhp[sd] alternatives.
21813 (sse_movlhps): Ditto.
21814 (sse_storehps): Ditto.
21815 (sse_loadhps): Ditto.
21816 (sse_storelps): Ditto.
21817 (sse_loadlps): Ditto.
21818 (*vec_concatv4sf): Ditto.
21819 (*vec_interleave_highv2df): Ditto.
21820 (*vec_interleave_lowv2df): Ditto.
21821 (*vec_extractv2df_1_sse): Ditto.
21822 (*vec_extractv2df_0_sse): Ditto.
21823 (sse2_storelpd): Ditto.
21824 (sse2_loadlpd): Ditto.
21825 (sse2_movsd): Ditto.
21826 (*vec_concatv4si): Ditto.
21827 (vec_concatv2di): Ditto.
21829 * config/i386/mmx.md (mmx_punpcklbw): Add pointer size overrides
21830 for Intel asm dialect.
21831 (mmx_punpcklwd): Ditto.
21832 (mmx_punpckldq): Ditto.
21834 * config/i386/i386.c (ix86_print_operand) ['H']: Output 'qword ptr'
21835 for intel assembler dialect.
21837 2013-07-06 Jakub Jelinek <jakub@redhat.com>
21840 * fold-const.c (tree_call_nonnegative_warnv_p): Return true
21841 for BUILT_IN_C{LZ,LRSB}*.
21842 * tree.h (CASE_INT_FN): Add FN##IMAX case.
21843 * tree-vrp.c (extract_range_basic): Handle
21844 BUILT_IN_{FFS,PARITY,POPCOUNT,C{LZ,TZ,LRSB}}*. For
21845 BUILT_IN_CONSTANT_P if argument isn't (D) of PARM_DECL,
21846 fall thru to code calling set_value*.
21847 * builtins.c (expand_builtin): Remove *IMAX cases.
21848 (fold_builtin_bitop): For BUILT_IN_CLRSB* return NULL_TREE
21849 if width is bigger than 2*HWI.
21851 2013-07-05 Vladimir Makarov <vmakarov@redhat.com>
21853 PR rtl-optimization/55342
21854 * lra-int.h (lra_subreg_reload_pseudos): New.
21855 * lra.c: Add undoing optional reloads to the block diagram.
21856 (lra_subreg_reload_pseudos): New.
21857 (lra_optional_reload_pseudos): Change comments.
21858 (lra): Init and clear lra_subreg_reload_pseudos. Clear
21859 lra_optional_reload_pseudos after undo transformations.
21860 * lra-assigns.c (pseudo_prefix_title): New.
21861 (lra_setup_reg_renumber): Use it.
21862 (spill_for): Ditto. Check subreg reload pseudos too.
21863 (assign_by_spills): Consider subreg reload pseudos too.
21864 * lra-constraints.c (simplify_operand_subreg): Use
21865 lra_subreg_reload_pseudos instead of lra_optional_reload_pseudos.
21866 (curr_insn_transform): Recognize and do optional reloads.
21867 (undo_optional_reloads): New.
21868 (lra_undo_inheritance): Call undo_optional_reloads.
21870 2013-07-05 Thomas Quinot <quinot@adacore.com>
21872 * tree-complex.c (expand_complex_operations_1): Fix typo.
21874 2013-07-04 Tejas Belagod <tejas.belagod@arm.com>
21876 * config/aarch64/aarch64-protos.h (cpu_vector_cost): New.
21877 (tune_params): New member 'const vec_costs'.
21878 * config/aarch64/aarch64.c (generic_vector_cost): New.
21879 (generic_tunings): New member 'generic_vector_cost'.
21880 (aarch64_builtin_vectorization_cost): New.
21881 (aarch64_add_stmt_cost): New.
21882 (TARGET_VECTORIZE_ADD_STMT_COST): New.
21883 (TARGET_VECTORIZE_BUILTIN_VECTORIZATION_COST): New.
21885 2013-07-03 Jakub Jelinek <jakub@redhat.com>
21888 * config/i386/predicates.md (vsib_address_operand): Disallow
21889 SYMBOL_REF or LABEL_REF in parts.disp if TARGET_64BIT && flag_pic.
21891 2013-07-03 Hans-Peter Nilsson <hp@bitrange.com>
21893 PR middle-end/55030
21894 * stmt.c (expand_nl_goto_receiver): Remove almost-copy of
21895 expand_builtin_setjmp_receiver.
21896 (expand_label): Adjust, call expand_builtin_setjmp_receiver
21897 with NULL for the label parameter.
21898 * builtins.c (expand_builtin_setjmp_receiver): Don't clobber
21899 the frame-pointer. Adjust comments.
21900 [HAVE_builtin_setjmp_receiver]: Emit builtin_setjmp_receiver
21901 only if LABEL is non-NULL.
21903 2013-07-03 Yufeng Zhang <yufeng.zhang@arm.com>
21905 * config/aarch64/aarch64.h (enum arm_abi_type): Remove.
21906 (ARM_ABI_AAPCS64): Ditto.
21908 (ARM_DEFAULT_ABI): Ditto.
21910 2013-07-03 James Greenhalgh <james.greenhalgh@arm.com>
21912 * config/aarch64/aarch64-builtins.c
21913 (aarch64_simd_expand_builtin): Handle AARCH64_SIMD_STORE1.
21914 * config/aarch64/aarch64-simd-builtins.def (ld1): New.
21916 * config/aarch64/aarch64-simd.md
21917 (aarch64_ld1<VALL:mode>): New.
21918 (aarch64_st1<VALL:mode>): Likewise.
21919 * config/aarch64/arm_neon.h
21920 (vld1<q>_<fpsu><8, 16, 32, 64>): Convert to RTL builtins.
21922 2013-07-02 Sriraman Tallam <tmsriram@google.com>
21924 * config/i386/i386.c (gate_insert_vzeroupper): Check if
21926 (ix86_option_override_internal):Turn on all -mavx target flags by
21927 default as they are dependent on AVX anyway.
21929 2013-07-02 Cary Coutant <ccoutant@google.com>
21931 * dwarf2out.c (loc_checksum): Call hash_loc_operands for a
21932 deterministic hash.
21933 (loc_checksum_ordered): Likewise.
21934 (hash_loc_operands): Remove inline keyword.
21936 2013-07-02 Jakub Jelinek <jakub@redhat.com>
21938 PR tree-optimization/57741
21939 * tree-vect-loop.c (vect_is_simple_iv_evolution): Disallow
21940 non-INTEGRAL_TYPE_P non-SCALAR_FLOAT_TYPE_P SSA_NAME step_exprs,
21941 or SCALAR_FLOAT_TYPE_P SSA_NAMEs if !flag_associative_math.
21942 Allow REAL_CST step_exprs if flag_associative_math.
21943 (get_initial_def_for_induction): Handle SCALAR_FLOAT_TYPE_P step_expr.
21945 2013-07-02 Ian Bolton <ian.bolton@arm.com>
21947 * config/aarch64/aarch64-simd.md (absdi2): Support abs for DI mode.
21949 2013-07-02 Ian Bolton <ian.bolton@arm.com>
21951 * config/aarch64/aarch64.md (*extr_insv_reg<mode>): New pattern.
21953 2013-07-02 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
21955 * config/arm/arm.md (arm_andsi3_insn): Add alternatives for 16-bit
21957 (iorsi3_insn): Likewise.
21958 (arm_xorsi3): Likewise.
21960 2013-07-01 Sofiane Naci <sofiane.naci@arm.com>
21962 * arm.md (attribute "wtype"): Delete. Move attribute values from here
21964 (attribute "type"): ... here, and prefix with "wmmx_".
21965 (attribute "core_cycles"): Update for attribute changes.
21966 * iwmmxt.md (tbcstv8qi): Update for attribute changes.
21967 (tbcstv4hi): Likewise.
21968 (tbcstv2si): Likewise.
21969 (iwmmxt_iordi3): Likewise.
21970 (iwmmxt_xordi3): Likewise.
21971 (iwmmxt_anddi3): Likewise.
21972 (iwmmxt_nanddi3): Likewise.
21973 (iwmmxt_arm_movdi): Likewise.
21974 (iwmmxt_movsi_insn): Likewise.
21975 (mov<mode>_internal): Likewise.
21976 (and<mode>3_iwmmxt): Likewise.
21977 (ior<mode>3_iwmmxt): Likewise.
21978 (xor<mode>3_iwmmxt): Likewise.
21979 (add<mode>3_iwmmxt): Likewise.
21980 (ssaddv8qi3): Likewise.
21981 (ssaddv4hi3): Likewise.
21982 (ssaddv2si3): Likewise.
21983 (usaddv8qi3): Likewise.
21984 (usaddv4hi3): Likewise.
21985 (usaddv2si3): Likewise.
21986 (sub<mode>3_iwmmxt): Likewise.
21987 (sssubv8qi3): Likewise.
21988 (sssubv4hi3): Likewise.
21989 (sssubv2si3): Likewise.
21990 (ussubv8qi3): Likewise.
21991 (ussubv4hi3): Likewise.
21992 (ussubv2si3): Likewise.
21993 (mulv4hi3_iwmmxt): Likewise.
21994 (smulv4hi3_highpart): Likewise.
21995 (umulv4hi3_highpart): Likewise.
21996 (iwmmxt_wmacs): Likewise.
21997 (iwmmxt_wmacsz): Likewise.
21998 (iwmmxt_wmacu): Likewise.
21999 (iwmmxt_wmacuz): Likewise.
22000 (iwmmxt_clrdi): Likewise.
22001 (iwmmxt_clrv8qi): Likewise.
22002 (iwmmxt_clr4hi): Likewise.
22003 (iwmmxt_clr2si): Likewise.
22004 (iwmmxt_uavgrndv8qi3): Likewise.
22005 (iwmmxt_uavgrndv4hi3): Likewise.
22006 (iwmmxt_uavgv8qi3): Likewise.
22007 (iwmmxt_uavgv4hi3): Likewise.
22008 (iwmmxt_tinsrb): Likewise.
22009 (iwmmxt_tinsrh): Likewise.
22010 (iwmmxt_tinsrw): Likewise.
22011 (iwmmxt_textrmub): Likewise.
22012 (iwmmxt_textrmsb): Likewise.
22013 (iwmmxt_textrmuh): Likewise.
22014 (iwmmxt_textrmsh): Likewise.
22015 (iwmmxt_textrmw): Likewise.
22016 (iwmxxt_wshufh): Likewise.
22017 (eqv8qi3): Likewise.
22018 (eqv4hi3): Likewise.
22019 (eqv2si3): Likewise.
22020 (gtuv8qi3): Likewise.
22021 (gtuv4hi3): Likewise.
22022 (gtuv2si3): Likewise.
22023 (gtv8qi3): Likewise.
22024 (gtv4hi3): Likewise.
22025 (gtv2si3): Likewise.
22026 (smax<mode>3_iwmmxt): Likewise.
22027 (umax<mode>3_iwmmxt): Likewise.
22028 (smin<mode>3_iwmmxt): Likewise.
22029 (umin<mode>3_iwmmxt): Likewise.
22030 (iwmmxt_wpackhss): Likewise.
22031 (iwmmxt_wpackwss): Likewise.
22032 (iwmmxt_wpackdss): Likewise.
22033 (iwmmxt_wpackhus): Likewise.
22034 (iwmmxt_wpackwus): Likewise.
22035 (iwmmxt_wpackdus): Likewise.
22036 (iwmmxt_wunpckihb): Likewise.
22037 (iwmmxt_wunpckihh): Likewise.
22038 (iwmmxt_wunpckihw): Likewise.
22039 (iwmmxt_wunpckilb): Likewise.
22040 (iwmmxt_wunpckilh): Likewise.
22041 (iwmmxt_wunpckilw): Likewise.
22042 (iwmmxt_wunpckehub): Likewise.
22043 (iwmmxt_wunpckehuh): Likewise.
22044 (iwmmxt_wunpckehuw): Likewise.
22045 (iwmmxt_wunpckehsb): Likewise.
22046 (iwmmxt_wunpckehsh): Likewise.
22047 (iwmmxt_wunpckehsw): Likewise.
22048 (iwmmxt_wunpckelub): Likewise.
22049 (iwmmxt_wunpckeluh): Likewise.
22050 (iwmmxt_wunpckeluw): Likewise.
22051 (iwmmxt_wunpckelsb): Likewise.
22052 (iwmmxt_wunpckelsh): Likewise.
22053 (iwmmxt_wunpckelsw): Likewise.
22054 (ror<mode>3): Likewise.
22055 (ashr<mode>3_iwmmxt): Likewise.
22056 (lshr<mode>3_iwmmxt): Likewise.
22057 (ashl<mode>3_iwmmxt): Likewise.
22058 (ror<mode>3_di): Likewise.
22059 (ashr<mode>3_di): Likewise.
22060 (lshr<mode>3_di): Likewise.
22061 (ashl<mode>3_di): Likewise.
22062 (iwmmxt_wmadds): Likewise.
22063 (iwmmxt_wmaddu): Likewise.
22064 (iwmmxt_tmia): Likewise.
22065 (iwmmxt_tmiaph): Likewise.
22066 (iwmmxt_tmiabb): Likewise.
22067 (iwmmxt_tmiatb): Likewise.
22068 (iwmmxt_tmiabt): Likewise.
22069 (iwmmxt_tmiatt): Likewise.
22070 (iwmmxt_tmovmskb): Likewise.
22071 (iwmmxt_tmovmskh): Likewise.
22072 (iwmmxt_tmovmskw): Likewise.
22073 (iwmmxt_waccb): Likewise.
22074 (iwmmxt_wacch): Likewise.
22075 (iwmmxt_waccw): Likewise.
22076 (iwmmxt_waligni): Likewise.
22077 (iwmmxt_walignr): Likewise.
22078 (iwmmxt_walignr0): Likewise.
22079 (iwmmxt_walignr1): Likewise.
22080 (iwmmxt_walignr2): Likewise.
22081 (iwmmxt_walignr3): Likewise.
22082 (iwmmxt_wsadb): Likewise.
22083 (iwmmxt_wsadh): Likewise.
22084 (iwmmxt_wsadbz): Likewise.
22085 (iwmmxt_wsadhz): Likewise.
22086 * iwmmxt2.md (iwmmxt_wabs<mode>3): Update for attribute changes.
22087 (iwmmxt_wabsdiffb): Likewise.
22088 (iwmmxt_wabsdiffh): Likewise.
22089 (iwmmxt_wabsdiffw): Likewise.
22090 (iwmmxt_waddsubhx): Likewise
22091 (iwmmxt_wsubaddhx): Likewise.
22092 (addc<mode>3): Likewise.
22093 (iwmmxt_avg4): Likewise.
22094 (iwmmxt_avg4r): Likewise.
22095 (iwmmxt_wmaddsx): Likewise.
22096 (iwmmxt_wmaddux): Likewise.
22097 (iwmmxt_wmaddsn): Likewise.
22098 (iwmmxt_wmaddun): Likewise.
22099 (iwmmxt_wmulwsm): Likewise.
22100 (iwmmxt_wmulwum): Likewise.
22101 (iwmmxt_wmulsmr): Likewise.
22102 (iwmmxt_wmulumr): Likewise.
22103 (iwmmxt_wmulwsmr): Likewise.
22104 (iwmmxt_wmulwumr): Likewise.
22105 (iwmmxt_wmulwl): Likewise.
22106 (iwmmxt_wqmulm): Likewise.
22107 (iwmmxt_wqmulwm): Likewise.
22108 (iwmmxt_wqmulmr): Likewise.
22109 (iwmmxt_wqmulwmr): Likewise.
22110 (iwmmxt_waddbhusm): Likewise.
22111 (iwmmxt_waddbhusl): Likewise.
22112 (iwmmxt_wqmiabb): Likewise.
22113 (iwmmxt_wqmiabt): Likewise.
22114 (iwmmxt_wqmiatb): Likewise.
22115 (iwmmxt_wqmiatt): Likewise.
22116 (iwmmxt_wqmiabbn): Likewise.
22117 (iwmmxt_wqmiabtn): Likewise.
22118 (iwmmxt_wqmiatbn): Likewise.
22119 (iwmmxt_wqmiattn): Likewise.
22120 (iwmmxt_wmiabb): Likewise.
22121 (iwmmxt_wmiabt): Likewise.
22122 (iwmmxt_wmiatb): Likewise.
22123 (iwmmxt_wmiatt): Likewise.
22124 (iwmmxt_wmiabbn): Likewise.
22125 (iwmmxt_wmiabtn): Likewise.
22126 (iwmmxt_wmiatbn): Likewise.
22127 (iwmmxt_wmiattn): Likewise.
22128 (iwmmxt_wmiawbb): Likewise.
22129 (iwmmxt_wmiawbt): Likewise.
22130 (iwmmxt_wmiawtb): Likewise.
22131 (iwmmxt_wmiawtt): Likewise.
22132 (iwmmxt_wmiawbbn): Likewise.
22133 (iwmmxt_wmiawbtn): Likewise.
22134 (iwmmxt_wmiawtbn): Likewise.
22135 (iwmmxt_wmiawttn): Likewise.
22136 (iwmmxt_wmerge): Likewise.
22137 (iwmmxt_tandc<mode>3): Likewise.
22138 (iwmmxt_torc<mode>3): Likewise.
22139 (iwmmxt_torvsc<mode>3): Likewise.
22140 (iwmmxt_textrc<mode>3): Likewise.
22141 * marvell-f-iwmmxt.md (wmmxt_shift): Update for attribute changes.
22142 (wmmxt_pack): Likewise.
22143 (wmmxt_mult_c1): Likewise.
22144 (wmmxt_mult_c2): Likewise.
22145 (wmmxt_alu_c1): Likewise.
22146 (wmmxt_alu_c2): Likewise.
22147 (wmmxt_alu_c3): Likewise.
22148 (wmmxt_transfer_c1): Likewise.
22149 (wmmxt_transfer_c2): Likewise.
22150 (wmmxt_transfer_c3): Likewise.
22151 (marvell_f_iwmmxt_wstr): Likewise.
22152 (marvell_f_iwmmxt_wldr): Likewise.
22154 2013-06-29 Yufeng Zhang <yufeng.zhang@arm.com>
22156 * config/aarch64/aarch64.c: Remove junk from the beginning of the file.
22158 2013-06-28 Vladimir Makarov <vmakarov@redhat.com>
22161 2013-06-28 Vladimir Makarov <vmakarov@redhat.com>
22162 * lra-constraints.c (need_for_split_p): Check call used hard regs
22163 living through calls.
22165 * lra-constraints.c (inherit_in_ebb): Reset live_hard_regs for
22166 call used regs for call insn.
22168 2013-06-28 Jakub Jelinek <jakub@redhat.com>
22171 * config/i386/i386.c (ix86_expand_builtin): If target == NULL and
22172 mode is VOIDmode, don't create a VOIDmode pseudo to copy result into.
22174 2013-06-28 Balaji V. Iyer <balaji.v.iyer@intel.com>
22176 * builtins.def: Fixed the function type of CILKPLUS_BUILTIN.
22178 2013-06-28 Vladimir Makarov <vmakarov@redhat.com>
22180 * lra-constraints.c (need_for_split_p): Check call used hard regs
22181 living through calls.
22183 2013-06-28 Michael Meissner <meissner@linux.vnet.ibm.com>
22186 * config/rs6000/rs6000.h (MODES_TIEABLE_P): Do not allow PTImode
22187 to tie with any other modes. Eliminate Altivec vector mode tests,
22188 since these are a subset of ALTIVEC or VSX vector modes. Simplify
22189 code, to return 0 if testing MODE2 for a condition, if we've
22190 already tested MODE1 for the same condition.
22192 2013-06-28 Marcus Shawcroft <marcus.shawcroft@arm.com>
22194 * config/aarch64/aarch64.c (aarch64_cannot_force_const_mem): Adjust
22197 2013-06-28 Marcus Shawcroft <marcus.shawcroft@arm.com>
22199 * config/aarch64/aarch64-protos.h (aarch64_symbol_type):
22200 Update comment w.r.t SYMBOL_TINY_ABSOLUTE.
22202 2013-06-28 Marcus Shawcroft <marcus.shawcroft@arm.com>
22204 * config/aarch64/aarch64-protos.h (aarch64_classify_symbol_expression):
22206 (aarch64_symbolic_constant_p): Remove.
22207 * config/aarch64/aarch64.c (aarch64_classify_symbol_expression): Remove
22208 static. Fix line length and white space.
22209 (aarch64_symbolic_constant_p): Remove.
22210 * config/aarch64/predicates.md (aarch64_valid_symref):
22211 Use aarch64_classify_symbol_expression.
22213 2013-06-28 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
22215 * config/arm/constraints.md (Ts): New constraint.
22216 * config/arm/arm.md (arm_movqi_insn): Add alternatives for
22218 (compare_scc): Use "Ts" constraint for operand 0.
22219 (ior_scc_scc): Likewise.
22220 (and_scc_scc): Likewise.
22221 (and_scc_scc_nodom): Likewise.
22222 (ior_scc_scc_cmp): Likewise for operand 7.
22223 (and_scc_scc_cmp): Likewise.
22224 * config/arm/thumb2.md (thumb2_movsi_insn):
22225 Add alternatives for 16-bit encodings.
22226 (thumb2_movhi_insn): Likewise.
22227 (thumb2_movsicc_insn): Likewise.
22228 (thumb2_and_scc): Take 'and' outside cond_exec. Use "Ts" constraint.
22229 (thumb2_negscc): Use "Ts" constraint.
22230 Move mvn instruction outside cond_exec block.
22231 * config/arm/vfp.md (thumb2_movsi_vfp): Add alternatives
22232 for 16-bit encodings.
22234 2013-06-28 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
22236 * config/arm/arm.md (arm_mulsi3_v6): Add alternative for 16-bit
22238 (mulsi3addsi_v6): Disable predicable variant for arm_restrict_it.
22239 (mulsi3subsi): Likewise.
22240 (mulsidi3adddi): Likewise.
22241 (mulsidi3_v6): Likewise.
22242 (umulsidi3_v6): Likewise.
22243 (umulsidi3adddi_v6): Likewise.
22244 (smulsi3_highpart_v6): Likewise.
22245 (umulsi3_highpart_v6): Likewise.
22246 (mulhisi3tb): Likewise.
22247 (mulhisi3bt): Likewise.
22248 (mulhisi3tt): Likewise.
22249 (maddhisi4): Likewise.
22250 (maddhisi4tb): Likewise.
22251 (maddhisi4tt): Likewise.
22252 (maddhidi4): Likewise.
22253 (maddhidi4tb): Likewise.
22254 (maddhidi4tt): Likewise.
22255 (zeroextractsi_compare0_scratch): Likewise.
22256 (insv_zero): Likewise.
22257 (insv_t2): Likewise.
22258 (anddi_notzesidi_di): Likewise.
22259 (anddi_notsesidi_di): Likewise.
22260 (andsi_notsi_si): Likewise.
22261 (iordi_zesidi_di): Likewise.
22262 (xordi_zesidi_di): Likewise.
22263 (andsi_iorsi3_notsi): Likewise.
22264 (smax_0): Likewise.
22265 (smax_m1): Likewise.
22266 (smin_0): Likewise.
22267 (not_shiftsi): Likewise.
22268 (unaligned_loadsi): Likewise.
22269 (unaligned_loadhis): Likewise.
22270 (unaligned_loadhiu): Likewise.
22271 (unaligned_storesi): Likewise.
22272 (unaligned_storehi): Likewise.
22273 (extv_reg): Likewise.
22274 (extzv_t2): Likewise.
22275 (divsi3): Likewise.
22276 (udivsi3): Likewise.
22277 (arm_zero_extendhisi2addsi): Likewise.
22278 (arm_zero_extendqisi2addsi): Likewise.
22279 (compareqi_eq0): Likewise.
22280 (arm_extendhisi2_v6): Likewise.
22281 (arm_extendqisi2addsi): Likewise.
22282 (arm_movt): Likewise.
22283 (thumb2_ldrd): Likewise.
22284 (thumb2_ldrd_base): Likewise.
22285 (thumb2_ldrd_base_neg): Likewise.
22286 (thumb2_strd): Likewise.
22287 (thumb2_strd_base): Likewise.
22288 (thumb2_strd_base_neg): Likewise.
22289 (arm_negsi2): Add alternative for 16-bit encoding.
22290 (arm_one_cmplsi2): Likewise.
22292 2013-06-28 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
22294 * config/arm/predicates.md (arm_cond_move_operator): New predicate.
22295 * config/arm/arm.md (movsfcc): Use arm_cond_move_operator predicate.
22296 (movdfcc): Likewise.
22297 * config/arm/vfp.md (*thumb2_movsf_vfp):
22298 Disable predication for arm_restrict_it.
22299 (*thumb2_movsfcc_vfp): Disable for arm_restrict_it.
22300 (*thumb2_movdfcc_vfp): Likewise.
22301 (*abssf2_vfp, *absdf2_vfp, *negsf2_vfp, *negdf2_vfp,*addsf3_vfp,
22302 *adddf3_vfp, *subsf3_vfp, *subdf3_vfpc, *divsf3_vfp,*divdf3_vfp,
22303 *mulsf3_vfp, *muldf3_vfp, *mulsf3negsf_vfp, *muldf3negdf_vfp,
22304 *mulsf3addsf_vfp, *muldf3adddf_vfp, *mulsf3subsf_vfp,
22305 *muldf3subdf_vfp, *mulsf3negsfaddsf_vfp, *fmuldf3negdfadddf_vfp,
22306 *mulsf3negsfsubsf_vfp, *muldf3negdfsubdf_vfp, *fma<SDF:mode>4,
22307 *fmsub<SDF:mode>4, *fnmsub<SDF:mode>4, *fnmadd<SDF:mode>4,
22308 *extendsfdf2_vfp, *truncdfsf2_vfp, *extendhfsf2, *truncsfhf2,
22309 *truncsisf2_vfp, *truncsidf2_vfp, fixuns_truncsfsi2, fixuns_truncdfsi2,
22310 *floatsisf2_vfp, *floatsidf2_vfp, floatunssisf2, floatunssidf2,
22311 *sqrtsf2_vfp, *sqrtdf2_vfp, *cmpsf_vfp, *cmpsf_trap_vfp, *cmpdf_vfp,
22312 *cmpdf_trap_vfp, <vrint_pattern><SDF:mode>2):
22313 Disable predication for arm_restrict_it.
22315 2013-06-28 Kirill Yukhin <kirill.yukhin@intel.com>
22317 * config/i386/bmiintrin.h (_bextr_u32): New.
22318 (_bextr_u64): Ditto.
22320 2013-06-27 Richard Sandiford <rdsandiford@googlemail.com>
22322 * config.gcc (mips*-mti-elf*, mips*-sde-elf*, mips64r5900-*-elf*)
22323 (mips64r5900el-*-elf*): Include mips/n32-elf.h.
22324 * config/mips/sde.h (LOCAL_LABEL_PREFIX, NO_DOLLAR_IN_LABEL)
22325 (LONG_DOUBLE_TYPE_SIZE, LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Move to...
22326 * config/mips/n32-elf.h: ...this new file.
22328 2013-06-27 Marc Glisse <marc.glisse@inria.fr>
22331 * config/i386/i386.c (enum ix86_builtins, bdesc_args): Remove
22332 IX86_BUILTIN_CMPNGTSS and IX86_BUILTIN_CMPNGESS.
22334 2013-06-27 Catherine Moore <clm@codesourcery.com>
22336 * config/mips/mips-tables.opt: Regenerate.
22337 * config/mips/mips-cpus.def: Add m14ke and m14kec.
22338 * config/mips/mips.h (BASE_DRIVER_SELF_SPECS): m14ke* implies -mdspr2.
22339 * doc/invoke.texi: Add -m14kc.
22341 2013-06-27 Jakub Jelinek <jakub@redhat.com>
22344 * config/i386/i386.md (bmi_bextr_<mode>): Swap predicates and
22345 constraints of operand 1 and 2.
22348 * config/i386/i386.md (bmi2_bzhi_<mode>3): Swap AND arguments
22349 to match RTL canonicalization. Swap predicates and
22350 constraints of operand 1 and 2.
22352 2013-06-27 Vladimir Makarov <vmakarov@redhat.com>
22354 * lra-constraints.c (inherit_in_ebb): Process static hard regs too.
22355 Process OP_INOUT regs for splitting too.
22357 2013-06-27 Jakub Jelinek <jakub@redhat.com>
22359 * tree-vect-stmts.c (vectorizable_store): Move ptr_incr var
22360 decl before the loop, initialize to NULL.
22361 (vectorizable_load): Initialize ptr_incr to NULL.
22363 2013-06-27 Martin Jambor <mjambor@suse.cz>
22366 * ipa-ref.h (ipa_maybe_record_reference): Declare.
22367 * ipa-ref.c (ipa_maybe_record_reference): New function.
22368 * cgraphclones.c (cgraph_create_virtual_clone): Use it.
22369 * ipa-cp.c (create_specialized_node): Record potential references from
22371 * Makefile.in (ipa-ref.o): Add IPA_REF_H to dependencies.
22373 2013-06-27 Yufeng Zhang <yufeng.zhang@arm.com>
22375 * config/aarch64/aarch64.c (aarch64_force_temporary): Add an extra
22376 parameter 'mode' of type 'enum machine_mode mode'; change to pass
22377 'mode' to force_reg.
22378 (aarch64_add_offset): Update calls to aarch64_force_temporary.
22379 (aarch64_expand_mov_immediate): Likewise.
22381 2013-06-27 Yufeng Zhang <yufeng.zhang@arm.com>
22383 * config/aarch64/aarch64.c (aarch64_add_offset): Change to pass
22384 'mode' to aarch64_plus_immediate and gen_rtx_PLUS.
22386 2013-06-27 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
22388 * config/s390/s390.c: Rename UNSPEC_CCU_TO_INT to
22389 UNSPEC_STRCMPCC_TO_INT and UNSPEC_CCZ_TO_INT to UNSPEC_CC_TO_INT.
22390 (struct machine_function): Add tbegin_p.
22391 (s390_canonicalize_comparison): Fold CC mode compares to
22392 conditional jump if possible.
22393 (s390_emit_jump): Return the emitted jump.
22394 (s390_branch_condition_mask, s390_branch_condition_mnemonic):
22395 Handle CCRAWmode compares.
22396 (s390_option_override): Default to -mhtm if available.
22397 (s390_reg_clobbered_rtx): Handle floating point regs as well.
22398 (s390_regs_ever_clobbered): Use s390_regs_ever_clobbered also for
22399 FPRs instead of df_regs_ever_live_p.
22400 (s390_optimize_nonescaping_tx): New function.
22401 (s390_init_frame_layout): Extend clobbered_regs array to cover
22403 (s390_emit_prologue): Call s390_optimize_nonescaping_tx.
22404 (s390_expand_tbegin): New function.
22405 (enum s390_builtin): New enum definition.
22406 (code_for_builtin): New array definition.
22407 (s390_init_builtins): New function.
22408 (s390_expand_builtin): New function.
22409 (TARGET_INIT_BUILTINS): Define.
22410 (TARGET_EXPAND_BUILTIN): Define.
22411 * common/config/s390/s390-common.c (processor_flags_table): Add PF_TX.
22412 * config/s390/predicates.md (s390_comparison): Handle CCRAWmode.
22413 (s390_alc_comparison): Likewise.
22414 * config/s390/s390-modes.def: Add CCRAWmode.
22415 * config/s390/s390.h (processor_flags): Add PF_TX.
22416 (TARGET_CPU_HTM): Define macro.
22417 (TARGET_HTM): Define macro.
22418 (TARGET_CPU_CPP_BUILTINS): Define __HTM__ for htm.
22419 * config/s390/s390.md: Rename UNSPEC_CCU_TO_INT to
22420 UNSPEC_STRCMPCC_TO_INT and UNSPEC_CCZ_TO_INT to UNSPEC_CC_TO_INT.
22421 (UNSPECV_TBEGIN, UNSPECV_TBEGINC, UNSPECV_TEND, UNSPECV_TABORT)
22422 (UNSPECV_ETND, UNSPECV_NTSTG, UNSPECV_PPA): New unspecv enum values.
22423 (TBEGIN_MASK, TBEGINC_MASK): New constants.
22424 ("*cc_to_int"): Move up.
22425 ("*mov<mode>cc", "*cjump_64", "*cjump_31"): Accept integer
22426 constants other than 0.
22427 ("*ccraw_to_int"): New insn and splitter definition.
22428 ("tbegin", "tbegin_nofloat", "tbegin_retry")
22429 ("tbegin_retry_nofloat", "tbeginc", "tend", "tabort")
22430 ("tx_assist"): New expander.
22431 ("tbegin_1", "tbegin_nofloat_1", "*tbeginc_1", "*tend_1")
22432 ("*tabort_1", "etnd", "ntstg", "*ppa"): New insn definition.
22433 * config/s390/s390.opt: Add -mhtm option.
22434 * config/s390/s390-protos.h (s390_emit_jump): Add return type.
22435 * config/s390/htmxlintrin.h: New file.
22436 * config/s390/htmintrin.h: New file.
22437 * config/s390/s390intrin.h: New file.
22438 * doc/extend.texi: Document htm builtins.
22439 * config.gcc: Add the new header files to extra_headers.
22441 2013-06-26 Thomas Schwinge <thomas@codesourcery.com>
22443 * config/i386/gnu.h [TARGET_LIBC_PROVIDES_SSP]
22444 (TARGET_CAN_SPLIT_STACK, TARGET_THREAD_SPLIT_STACK_OFFSET): Undefine.
22446 2013-06-26 Michael Meissner <meissner@linux.vnet.ibm.com>
22447 Pat Haugen <pthaugen@us.ibm.com>
22448 Peter Bergner <bergner@vnet.ibm.com>
22450 * config/rs6000/power8.md: New.
22451 * config/rs6000/rs6000-cpus.def (RS6000_CPU table): Adjust processor
22452 setting for power8 entry.
22453 * config/rs6000/t-rs6000 (MD_INCLUDES): Add power8.md.
22454 * config/rs6000/rs6000.c (is_microcoded_insn, is_cracked_insn): Adjust
22455 test for Power4/Power5 only.
22456 (insn_must_be_first_in_group, insn_must_be_last_in_group): Add Power8
22458 (force_new_group): Adjust comment.
22459 * config/rs6000/rs6000.md: Include power8.md.
22461 2013-06-26 Greta Yorsh <Greta.Yorsh@arm.com>
22463 * config/arm/arm.h (MAX_CONDITIONAL_EXECUTE): Define macro.
22464 * config/arm/arm-protos.h (arm_max_conditional_execute): New
22466 (tune_params): Update comment.
22467 * config/arm/arm.c (arm_cortex_a15_tune): Set max_cond_insns to 2.
22468 (arm_max_conditional_execute): New function.
22469 (thumb2_final_prescan_insn): Use max_insn_skipped and
22470 MAX_INSN_PER_IT_BLOCK to compute maximum instructions in a block.
22472 2013-06-25 Jakub Jelinek <jakub@redhat.com>
22474 PR tree-optimization/57705
22475 * tree-vect-loop.c (vect_is_simple_iv_evolution): Allow
22476 SSA_NAME step, provided that it is not defined inside the loop.
22477 (vect_analyze_scalar_cycles_1): Disallow SSA_NAME step in nested loop.
22478 (get_initial_def_for_induction): Handle SSA_NAME IV step.
22480 2013-06-25 Martin Jambor <mjambor@suse.cz>
22482 PR middle-end/57670
22483 * cgraph.h (cgraph_indirect_call_info): New flag member_ptr.
22484 * ipa-prop.c (ipa_print_node_jump_functions): Mark member pointer
22486 (ipa_note_param_call): Initialize member_ptr flag.
22487 (ipa_analyze_indirect_call_uses): Set member_ptr flag.
22488 (ipa_make_edge_direct_to_target): Bail out if member_ptr is set.
22489 (ipa_write_indirect_edge_info): Stream member_ptr flag.
22490 (ipa_read_indirect_edge_info): Likewise.
22492 2013-06-25 Richard Biener <rguenther@suse.de>
22494 PR middle-end/56977
22495 * passes.c (init_optimization_passes): Move pass_fold_builtins
22496 and pass_dce earlier with -Og.
22498 2013-06-25 Eric Botcazou <ebotcazou@adacore.com>
22500 * expr.c (expand_expr_real_1) <ARRAY_REF>: Fix formatting glitches.
22501 <BIT_FIELD_REF>: Remove trailing TAB.
22502 * varasm.c (output_constructor_bitfield): Fix formatting glitch and
22505 2013-06-24 Martin Jambor <mjambor@suse.cz>
22507 PR tree-optimization/57358
22508 * ipa-prop.c (ipa_func_spec_opts_forbid_analysis_p): New function.
22509 (ipa_compute_jump_functions_for_edge): Bail out if it returns true.
22510 (ipa_analyze_params_uses): Generate pessimistic info when true.
22512 2013-06-24 Martin Jambor <mjambor@suse.cz>
22514 PR tree-optimization/57539
22515 * cgraphclones.c (cgraph_clone_node): Add parameter new_inlined_to, set
22516 global.inlined_to of the new node to it. All callers changed.
22517 * ipa-inline-transform.c (clone_inlined_nodes): New variable
22518 inlining_into, pass it to cgraph_clone_node.
22519 * ipa-prop.c (ipa_propagate_indirect_call_infos): Do not call
22520 ipa_free_edge_args_substructures.
22521 (ipa_edge_duplication_hook): Only add edges from inlined nodes to
22522 rdesc linked list. Do not assert rdesc edges have inlined caller.
22523 Assert we have found an rdesc in the rdesc list.
22525 2013-06-24 Richard Biener <rguenther@suse.de>
22527 * pointer-set.h (struct pointer_set_t): Move here from pointer-set.c.
22528 (pointer_set_lookup): Declare.
22529 (class pointer_map): New template class implementing a
22530 generic pointer to T map.
22531 (pointer_map<T>::pointer_map, pointer_map<T>::~pointer_map,
22532 pointer_map<T>::contains, pointer_map<T>::insert,
22533 pointer_map<T>::traverse): New functions.
22534 * pointer-set.c (struct pointer_set_t): Moved to pointer-set.h.
22535 (pointer_set_lookup): New function.
22536 (pointer_set_contains): Use pointer_set_lookup.
22537 (pointer_set_insert): Likewise.
22538 (insert_aux): Remove.
22539 (struct pointer_map_t): Embed a pointer_set_t.
22540 (pointer_map_create): Adjust.
22541 (pointer_map_destroy): Likewise.
22542 (pointer_map_contains): Likewise.
22543 (pointer_map_insert): Likewise.
22544 (pointer_map_traverse): Likewise.
22545 * tree-streamer.h (struct streamer_tree_cache_d): Use a
22546 pointer_map<unsigned> instead of a pointer_map_t.
22547 * tree-streamer.c (streamer_tree_cache_insert_1): Adjust.
22548 (streamer_tree_cache_lookup): Likewise.
22549 (streamer_tree_cache_create): Likewise.
22550 (streamer_tree_cache_delete): Likewise.
22551 * lto-streamer.h (struct lto_tree_ref_encoder): Use a
22552 pointer_map<unsigned> instead of a pointer_map_t.
22553 (lto_init_tree_ref_encoder): Adjust.
22554 (lto_destroy_tree_ref_encoder): Likewise.
22555 * lto-section-out.c (lto_output_decl_index): Likewise.
22556 (lto_record_function_out_decl_state): Likewise.
22557 * dominance.c (iterate_fix_dominators): Use pointer_map<int>.
22559 2013-06-24 Richard Biener <rguenther@suse.de>
22561 PR tree-optimization/57488
22562 * tree-ssa-pre.c (insert): Clear NEW sets before each iteration.
22564 2013-06-24 Alan Modra <amodra@gmail.com>
22566 * config/rs6000/rs6000.c (vspltis_constant): Correct for little-endian.
22567 (gen_easy_altivec_constant): Likewise.
22568 * config/rs6000/predicates.md (easy_vector_constant_add_self,
22569 easy_vector_constant_msb): Likewise.
22571 2013-06-23 Jakub Jelinek <jakub@redhat.com>
22574 * common/config/i386/i386-common.c (ix86_handle_option): For OPT_mlzcnt
22575 add missing return true.
22577 2013-06-23 Oleg Endo <olegendo@gcc.gnu.org>
22580 * config/sh/predicates.md (general_extend_operand): Invoke
22581 general_movsrc_operand for memory operands.
22582 (general_movsrc_operand): Allow reg+reg addressing, do not use
22583 general_operand for memory operands.
22585 2013-06-23 Sriraman Tallam <tmsriram@google.com>
22587 * config/i386/i386.c (ix86_pragma_target_parse): Restore target
22588 when current target options does not apply.
22589 * config/i386/i386-protos.h (ix86_reset_previous_fndecl): New function.
22590 * config/i386/i386.c (ix86_reset_previous_fndecl): Ditto.
22591 * config/i386/bmiintrin.h: Pass appropriate target
22592 attributes to header.
22593 * config/i386/mmintrin.h: Ditto.
22594 * config/i386/nmmintrin.h: Ditto.
22595 * config/i386/avx2intrin.h: Ditto.
22596 * config/i386/fxsrintrin.h: Ditto.
22597 * config/i386/tbmintrin.h: Ditto.
22598 * config/i386/xsaveintrin.h: Ditto.
22599 * config/i386/f16cintrin.h: Ditto.
22600 * config/i386/xtestintrin.h: Ditto.
22601 * config/i386/xsaveoptintrin.h: Ditto.
22602 * config/i386/bmi2intrin.h: Ditto.
22603 * config/i386/lzcntintrin.h: Ditto.
22604 * config/i386/smmintrin.h: Ditto.
22605 * config/i386/wmmintrin.h: Ditto.
22606 * config/i386/x86intrin.h: Remove all header include guards.
22607 * config/i386/prfchwintrin.h: Ditto.
22608 * config/i386/pmmintrin.h: Ditto.
22609 * config/i386/tmmintrin.h: Ditto.
22610 * config/i386/xmmintrin.h: Ditto.
22611 * config/i386/popcntintrin.h: Ditto.
22612 * config/i386/rdseedintrin.h: Ditto.
22613 * config/i386/ammintrin.h: Ditto.
22614 * config/i386/emmintrin.h: Ditto.
22615 * config/i386/immintrin.h: Remove all header include guards.
22616 * config/i386/fma4intrin.h: Ditto.
22617 * config/i386/lwpintrin.h: Ditto.
22618 * config/i386/xopintrin.h: Ditto.
22619 * config/i386/ia32intrin.h: Ditto.
22620 * config/i386/avxintrin.h: Ditto.
22621 * config/i386/rtmintrin.h: Ditto.
22622 * config/i386/fmaintrin.h: Ditto.
22623 * config/i386/mm3dnow.h: Ditto.
22625 2013-06-22 Sriraman Tallam <tmsriram@google.com>
22627 * common/config/i386/i386-common.c: Handle LZCNT.
22629 2013-06-22 Andi Kleen <ak@linux.intel.com>
22631 * doc/extend.texi: Use __atomic_store_n instead of
22632 __atomic_store in HLE example.
22634 2013-06-22 Oleg Endo <olegendo@gcc.gnu.org>
22636 * config/sh/sh.c: Remove <cstdlib> workaround.
22638 2013-06-21 Andi Kleen <ak@linux.intel.com>
22640 * doc/extend.texi: Dont use __atomic_clear in HLE example. Fix typo.
22642 2013-06-21 Andi Kleen <ak@linux.intel.com>
22644 * doc/extend.texi: Document that __atomic_clear and
22645 __atomic_test_and_set should only be used with bool.
22647 2013-06-20 Jan Hubicka <jh@suse.cz>
22649 * gimple-fold.c (gimple_extract_devirt_binfo_from_cst): Use
22650 types_same_for_odr.
22651 * tree.c (decls_same_for_odr): New function.
22652 (same_for_edr): New function.
22653 (types_same_for_odr): New function.
22654 (get_binfo_at_offset): Use it.
22655 * tree.h (types_same_for_odr): Declare.
22657 2013-06-20 Oleg Endo <olegendo@gcc.gnu.org>
22658 Jason Merrill <jason@redhat.com>
22660 * system.h: Include <cstdlib> as well as <stdlib.h>.
22662 2013-06-20 Uros Bizjak <ubizjak@gmail.com>
22665 * config/i386/i386.c (construct_container): Report error if
22666 long double is used with disabled x87 float returns.
22668 2013-06-20 Jan Hubicka <jh@suse.cz>
22670 * lto-cgraph.c (input_symtab): Do not set cgraph state.
22672 2013-06-20 Joern Rennecke <joern.rennecke@embecosm.com>
22674 PR rtl-optimization/57425
22675 PR rtl-optimization/57569
22676 * alias.c (write_dependence_p): Remove parameters mem_mode and
22677 canon_mem_addr. Add parameters x_mode, x_addr and x_canonicalized.
22678 Changed all callers.
22679 (canon_anti_dependence): Get comments and semantics in sync.
22680 Add parameter mem_canonicalized. Changed all callers.
22681 * rtl.h (canon_anti_dependence): Update prototype.
22683 2013-06-20 Richard Biener <rguenther@suse.de>
22685 * data-streamer-in.c (streamer_read_uhwi): Optimize single
22686 byte case, inline streamer_read_uchar and defer section
22689 2013-06-20 Richard Biener <rguenther@suse.de>
22691 PR tree-optimization/57584
22692 * tree-ssa-loop-niter.c (expand_simple_operations): Avoid including
22693 SSA names into the expanded expression that take part in
22694 abnormal coalescing.
22696 2013-06-19 Sharad Singhai <singhai@google.com>
22698 * gcov.c (print_usage): Handle new option.
22699 (process_args): Ditto.
22700 (get_gcov_intermediate_filename): New function.
22701 (output_intermediate_file): New function.
22702 (output_gcov_file): New function
22703 (generate_results): Handle new option.
22704 (release_function): Relase demangled name.
22705 (read_graph_file): Handle demangled name.
22706 (output_lines): Ditto.
22707 * doc/gcov.texi: Document gcov intermediate format.
22709 2013-06-19 Vladimir Makarov <vmakarov@redhat.com>
22712 * lra.c (emit_add3_insn, emit_add2_insn): New functions.
22713 (lra_emit_add): Use the functions. Add comment about Y as an
22716 2013-06-19 David Edelsohn <dje.gcc@gmail.com>
22719 * collect2.c (collect_atexit): New.
22720 (collect_exit): Delete.
22721 (main): Register collect_atexit with atexit.
22722 (collect_wait): Change collect_exit to exit.
22724 * collect2.h (collect_exit): Delete.
22725 * tlink.c (do_tlink): Rename exit to ret. Change collect_exit to exit.
22727 2013-06-19 Wei Mi <wmi@google.com>
22729 PR rtl-optimization/57518
22730 * ira.c (set_paradoxical_subreg): Set pdx_subregs[regno]
22731 if regno is used in paradoxical subreg.
22732 (update_equiv_regs): Check pdx_subregs[regno] before
22733 set a reg to be equivalent with a mem.
22735 2013-06-19 Matthias Klose <doko@ubuntu.com>
22738 * file-find.h (find_a_file): Add a mode parameter.
22739 * file-find.c (find_a_file): Likewise.
22740 * gcc-ar.c (main): Call find_a_file with R_OK for the plugin,
22741 with X_OK for the executables.
22742 * collect2.c (main): Call find_a_file with X_OK.
22744 2013-06-19 Steve Ellcey <sellcey@mips.com>
22747 * config/mips/mips.md (casesi_internal_mips16_<mode>):
22748 Use NEXT_INSN instead of next_real_insn.
22750 2013-06-19 Jan Hubicka <jh@suse.cz>
22752 * cgraph.h (const_value_known_p): Replace by ...
22753 (ctor_for_folding): .. this one.
22754 * cgraphunit.c (process_function_and_variable_attributes): Use it.
22755 * lto-cgraph.c (compute_ltrans_boundary): Use ctor_for_folding.
22756 * expr.c (expand_expr_real_1): Likewise.
22757 (string_constant): Likewise.
22758 * tree-ssa-loop-ivcanon.c (constant_after_peeling): Likewise.
22759 * ipa.c (process_references): Likewise.
22760 (symtab_remove_unreachable_nodes): Likewise.
22761 * ipa-inline-analysis.c (param_change_prob): Likewise.
22762 * gimple-fold.c (canonicalize_constructor_val): Likewise.
22763 (get_base_constructor): Likwise.
22764 * varpool.c (varpool_remove_node): Likewise.
22765 (varpool_remove_initializer): LIkewise.
22766 (dump_varpool_node): LIkwise.
22767 (const_value_known_p): Rewrite to ...
22768 (ctor_for_folding): ... this one.
22770 2013-06-19 Jakub Jelinek <jakub@redhat.com>
22773 * gcc-ar.c (main): If not CROSS_DIRECTORY_STRUCTURE, look for
22774 PERSONALITY in $PATH derived prefixes.
22776 2013-06-19 Jeff Law <law@redhat.com>
22778 * tree-ssa-forwprop.c (simplify_bitwise_binary_boolean): Fix typo
22781 * tree-ssa-forwprop.c (simplify_bitwise_binary_boolean): New function.
22782 (simplify_bitwise_binary): Use it to simpify certain binary ops on
22785 2013-06-19 Sofiane Naci <sofiane.naci@arm.com>
22787 * config/arm/vfp.md: Move VFP instruction classification documentation
22789 * config/arm/arm.md: ... here. Update instruction classification
22792 2013-06-19 Richard Earnshaw <rearnsha@arm.com>
22794 arm.md (split for eq(reg, 0)): Add variants for ARMv5 and Thumb2.
22795 (peepholes for eq(reg, not-0)): Ensure condition register is dead after
22796 pattern. Use more efficient sequences on ARMv5 and Thumb2.
22798 2013-06-19 Steven Bosscher <steven@gcc.gnu.org>
22801 * config/s390/s390.c (s390_chunkify_start): Replace next_real_insn
22802 with NEXT_INSN. Use tablejump_p to check for jump table data
22805 2013-06-19 Paolo Carlini <paolo.carlini@oracle.com>
22808 * doc/cpp.texi [Standard Predefined Macros, __cplusplus]: Document
22809 that now in C++ the value is correct per the C++ standards.
22811 2013-06-19 Richard Biener <rguenther@suse.de>
22813 * expr.c (expand_expr_real_1): Use SCOPE_FILE_SCOPE_P to check
22814 for global context.
22816 2013-06-19 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
22819 2013-06-18 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
22822 * config/s390/s390.c (s390_chunkify_start): Replace next_real_insn
22823 with next_active_insn.
22825 2013-06-18 Sriraman Tallam <tmsriram@google.com>
22827 * ipa-inline.c (inline_always_inline_functions): Pretend always_inline
22828 functions are inlined during failures to flag an error.
22829 * tree-inline.c (expand_call_inline): Allow the error to be flagged
22830 in early inline pass.
22832 2013-06-18 H.J. Lu <hongjiu.lu@intel.com>
22834 * config/i386/i386.c (initial_ix86_tune_features): Fix a typo
22837 2013-06-18 Julian Brown <julian@codesourcery.com>
22839 * config/arm/arm.c (neon_vector_mem_operand): Add strict argument.
22840 Permit virtual register pre-reload if !strict.
22841 (coproc_secondary_reload_class): Adjust for neon_vector_mem_operand
22843 * config/arm/arm-protos.h (neon_vector_mem_operand): Adjust
22845 * config/arm/neon.md (movmisalign<mode>): Use
22846 neon_perm_struct_or_reg_operand instead of
22847 neon_struct_or_register_operand.
22848 (*movmisalign<mode>_neon_load, *movmisalign<mode>_neon_store): Use
22849 neon_permissive_struct_operand instead of neon_struct_operand.
22850 * config/arm/constraints.md (Un, Um, Us): Adjust calls to
22851 neon_vector_mem_operand.
22852 * config/arm/predicates.md (neon_struct_operand): Adjust call to
22853 neon_vector_mem_operand.
22854 (neon_permissive_struct_operand): New.
22855 (neon_struct_or_register_operand): Rename to...
22856 (neon_perm_struct_or_reg_operand): This. Adjust call to
22857 neon_vector_mem_operand.
22859 2013-06-18 Richard Biener <rguenther@suse.de>
22861 * Makefile.in (LTO_STREAMER_H): Add pointer-set.h dependency.
22862 * lto-streamer.h: Include pointer-set.h.
22863 (struct lto_decl_slot): Remove.
22864 (struct lto_tree_ref_encoder): Make tree_hash_table a pointer-map.
22865 Remove next_index entry.
22866 (lto_hash_decl_slot_node, lto_eq_decl_slot_node,
22867 lto_hash_type_slot_node, lto_eq_type_slot_node): Remove.
22868 (lto_init_tree_ref_encoder): Adjust.
22869 (lto_destroy_tree_ref_encoder): Likewise.
22870 * lto-section-out.c (lto_hash_decl_slot_node, lto_eq_decl_slot_node,
22871 lto_hash_type_slot_node, lto_eq_type_slot_node): Remove.
22872 (lto_output_decl_index): Adjust.
22873 (lto_new_out_decl_state): Likewise.
22874 (lto_record_function_out_decl_state): Likewise.
22875 * lto-streamer-out.c (copy_function): Likewise.
22877 2013-06-18 Richard Biener <rguenther@suse.de>
22879 * Makefile.in (cgraphunit.o): Add $(CFGLOOP_H) dependency.
22880 * cgraphunit.c: Include cfgloop.h.
22881 (init_lowered_empty_function): Initialize the loop tree.
22882 (assemble_thunk): Insert new BBs into loops.
22884 2013-06-18 Richard Biener <rguenther@suse.de>
22886 * tree-streamer.h (streamer_tree_cache_create): Adjust prototype.
22887 * tree-streamer.c (streamer_tree_cache_create): Make maintaining
22888 the map from cache entry to cache index optional.
22889 (streamer_tree_cache_replace_tree): Adjust accordingly.
22890 (streamer_tree_cache_append): Likewise.
22891 (streamer_tree_cache_delete): Likewise.
22892 * lto-streamer-in.c (lto_data_in_create): Do not maintain the
22893 streamer cache map from cache entry to cache index.
22894 * lto-streamer-out.c (create_output_block): Adjust.
22896 2013-06-18 Sofiane Naci <sofiane.naci@arm.com>
22898 * config/arm/arm.md (attribute "insn"): Move multiplication and
22899 division attributes to...
22900 (attribute "type"): ... here. Remove mult.
22901 (attribute "mul32"): New attribute.
22902 (attribute "mul64"): Add umaal.
22903 (*arm_mulsi3): Update attributes.
22904 (*arm_mulsi3_v6): Likewise.
22905 (*thumb_mulsi3): Likewise.
22906 (*thumb_mulsi3_v6): Likewise.
22907 (*mulsi3_compare0): Likewise.
22908 (*mulsi3_compare0_v6): Likewise.
22909 (*mulsi_compare0_scratch): Likewise.
22910 (*mulsi_compare0_scratch_v6): Likewise.
22911 (*mulsi3addsi): Likewise.
22912 (*mulsi3addsi_v6): Likewise.
22913 (*mulsi3addsi_compare0): Likewise.
22914 (*mulsi3addsi_compare0_v6): Likewise.
22915 (*mulsi3addsi_compare0_scratch): Likewise.
22916 (*mulsi3addsi_compare0_scratch_v6): Likewise.
22917 (*mulsi3subsi): Likewise.
22918 (*mulsidi3adddi): Likewise.
22919 (*mulsi3addsi_v6): Likewise.
22920 (*mulsidi3adddi_v6): Likewise.
22921 (*mulsidi3_nov6): Likewise.
22922 (*mulsidi3_v6): Likewise.
22923 (*umulsidi3_nov6): Likewise.
22924 (*umulsidi3_v6): Likewise.
22925 (*umulsidi3adddi): Likewise.
22926 (*umulsidi3adddi_v6): Likewise.
22927 (*smulsi3_highpart_nov6): Likewise.
22928 (*smulsi3_highpart_v6): Likewise.
22929 (*umulsi3_highpart_nov6): Likewise.
22930 (*umulsi3_highpart_v6): Likewise.
22931 (mulhisi3): Likewise.
22932 (*mulhisi3tb): Likewise.
22933 (*mulhisi3bt): Likewise.
22934 (*mulhisi3tt): Likewise.
22935 (maddhisi4): Likewise.
22936 (*maddhisi4tb): Likewise.
22937 (*maddhisi4tt): Likewise.
22938 (maddhidi4): Likewise.
22939 (*maddhidi4tb): Likewise.
22940 (*maddhidi4tt): Likewise.
22941 (divsi3): Likewise.
22942 (udivsi3): Likewise.
22943 * config/arm/thumb2.md (thumb2_mulsi_short): Update attributes.
22944 (thumb2_mulsi_short_compare0): Likewise.
22945 (thumb2_mulsi_short_compare0_scratch): Likewise.
22946 * config/arm/arm1020e.md (1020mult1): Update attribute change.
22947 (1020mult2): Likewise.
22948 (1020mult3): Likewise.
22949 (1020mult4): Likewise.
22950 (1020mult5): Likewise.
22951 (1020mult6): Likewise.
22952 * config/arm/cortex-a15.md (cortex_a15_mult32): Update attribute
22954 (cortex_a15_mult64): Likewise.
22955 (cortex_a15_sdiv): Likewise.
22956 (cortex_a15_udiv): Likewise.
22957 * config/arm/arm1026ejs.md (mult1): Update attribute change.
22963 * config/arm/marvell-pj4.md (pj4_ir_mul): Update attribute change.
22964 (pj4_ir_div): Likewise.
22965 * config/arm/arm1136jfs.md (11_mult1): Update attribute change.
22966 (11_mult2): Likewise.
22967 (11_mult3): Likewise.
22968 (11_mult4): Likewise.
22969 (11_mult5): Likewise.
22970 (11_mult6): Likewise.
22971 (11_mult7): Likewise.
22972 * config/arm/cortex-a8.md (cortex_a8_mul): Update attribute change.
22973 (cortex_a8_mla): Likewise.
22974 (cortex_a8_mull): Likewise.
22975 (cortex_a8_smulwy): Likewise.
22976 (cortex_a8_smlald): Likewise.
22977 * config/arm/cortex-m4.md (cortex_m4_alu): Update attribute change.
22978 * config/arm/cortex-r4.md (cortex_r4_mul_4): Update attribute change.
22979 (cortex_r4_mul_3): Likewise.
22980 (cortex_r4_mla_4): Likewise.
22981 (cortex_r4_mla_3): Likewise.
22982 (cortex_r4_smlald): Likewise.
22983 (cortex_r4_mull): Likewise.
22984 (cortex_r4_sdiv): Likewise.
22985 (cortex_r4_udiv): Likewise.
22986 * config/arm/cortex-a7.md (cortex_a7_mul): Update attribute change.
22987 (cortex_a7_idiv): Likewise.
22988 * config/arm/arm926ejs.md (9_mult1): Update attribute change.
22989 (9_mult2): Likewise.
22990 (9_mult3): Likewise.
22991 (9_mult4): Likewise.
22992 (9_mult5): Likewise.
22993 (9_mult6): Likewise.
22994 * config/arm/cortex-a53.md (cortex_a53_mul): Update attribute change.
22995 (cortex_a53_sdiv): Likewise.
22996 (cortex_a53_udiv): Likewise.
22997 * config/arm/fa726te.md (726te_mult_op): Update attribute change.
22998 * config/arm/fmp626.md (mp626_mult1): Update attribute change.
22999 (mp626_mult2): Likewise.
23000 (mp626_mult3): Likewise.
23001 (mp626_mult4): Likewise.
23002 * config/arm/fa526.md (526_mult1): Update attribute change.
23003 (526_mult2): Likewise.
23004 * config/arm/arm-generic.md (mult): Update attribute change.
23005 (mult_ldsched_strongarm): Likewise.
23006 (mult_ldsched): Likewise.
23007 (multi_cycle): Likewise.
23008 * config/arm/cortex-a5.md (cortex_a5_mul): Update attribute change.
23009 * config/arm/fa606te.md (606te_mult1): Update attribute change.
23010 (606te_mult2): Likewise.
23011 (606te_mult3): Likewise.
23012 (606te_mult4): Likewise.
23013 * config/arm/cortex-a9.md (cortex_a9_mult16): Update attribute change.
23014 (cortex_a9_mac16): Likewise.
23015 (cortex_a9_multiply): Likewise.
23016 (cortex_a9_mac): Likewise.
23017 (cortex_a9_multiply_long): Likewise.
23018 * config/arm/fa626te.md (626te_mult1): Update attribute change.
23019 (626te_mult2): Likewise.
23020 (626te_mult3): Likewise.
23021 (626te_mult4): Likewise.
23023 2013-06-18 Richard Biener <rguenther@suse.de>
23026 * lto-symtab.c (lto_symtab_merge_decls): Process nodes properly.
23028 2013-06-18 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
23031 * config/s390/s390.c (s390_chunkify_start): Replace next_real_insn
23032 with next_active_insn.
23034 2013-06-18 Alan Modra <amodra@gmail.com>
23036 * config/rs6000/rs6000.h (enum data_align): New.
23037 (LOCAL_ALIGNMENT, DATA_ALIGNMENT): Use rs6000_data_alignment.
23038 (DATA_ABI_ALIGNMENT): Define.
23039 (CONSTANT_ALIGNMENT): Correct comment.
23040 * config/rs6000/rs6000-protos.h (rs6000_data_alignment): Declare.
23041 * config/rs6000/rs6000.c (rs6000_data_alignment): New function.
23043 2013-06-17 David Malcolm <dmalcolm@redhat.com>
23045 * ggc-page.c (ggc_pch_write_object) <d>: Remove erroneous
23046 ATTRIBUTE_UNUSED marking.
23048 2013-06-17 Sofiane Naci <sofiane.naci@arm.com>
23050 * config/aarch64/aarch64-simd.md (aarch64_dup_lane<mode>): Add r<-w
23051 alternative and update.
23052 (aarch64_dup_lanedi): Delete.
23053 * config/aarch64/arm_neon.h (vdup<bhsd>_lane_*): Update.
23054 * config/aarch64/aarch64-simd-builtins.def: Update.
23056 2013-06-17 Richard Biener <rguenther@suse.de>
23058 * lto-streamer.h (enum LTO_tags): Add LTO_tree_scc.
23059 (lto_input_scc): Declare.
23060 (lto_input_tree_1): Likewise.
23061 (struct lto_stats_d): Add num_tree_bodies_output and
23062 num_pickle_refs_output.
23063 * lto-streamer-in.c (lto_read_body): Use streamer_tree_cache_get_tree.
23064 (lto_read_tree_1): Split out from ...
23065 (lto_read_tree): ... this.
23066 (lto_input_scc): New function.
23067 (lto_input_tree_1): Split out from ...
23068 (lto_input_tree): ... this. Handle LTO_tree_scc.
23069 (lto_data_in_create): Create the streamer cache without hashes.
23070 * lto-streamer-out.c (create_output_block): Create the streamer
23071 cache with hashes when not doing WPA.
23072 (lto_write_tree_1): Split out from ...
23073 (lto_write_tree): ... this.
23074 (get_symbol_initial_value): New function.
23075 (lto_output_tree_1): Split out from ...
23076 (lto_output_tree): ... this. Write trees as series of SCCs
23077 using a DFS walk via DFS_write_tree.
23078 (struct sccs, struct scc_entry): New types.
23079 (next_dfs_num, sccstack, sccstate, sccstate_obstack): New globals.
23080 (DFS_write_tree_body): New function.
23081 (DFS_write_tree): Likewise.
23082 (hash_tree): Likewise.
23083 (scc_entry_compare): Likewise.
23084 (hash_scc): Likewise.
23085 (tree_is_indexable): DEBUG_EXPR_DECLs are local entities.
23086 * tree-streamer-in.c (lto_input_ts_list_tree_pointers): Stream
23087 TREE_CHAIN as regular reference.
23088 (streamer_read_integer_cst): Remove.
23089 (streamer_get_pickled_tree): Adjust.
23090 * tree-streamer-out.c (streamer_write_chain): Disable streaming
23091 of DECL_EXTERNALs in BLOCK_VARS for now.
23092 (write_ts_list_tree_pointers): Stream TREE_CHAIN as regular
23094 * tree-streamer.c (streamer_tree_cache_add_to_node_array):
23095 Add hash value argument and record that if hashes are recorded
23097 (streamer_tree_cache_insert_1): Adjust.
23098 (streamer_tree_cache_insert): Likewise.
23099 (streamer_tree_cache_insert_at): Rename to ...
23100 (streamer_tree_cache_replace_tree): ... this and adjust.
23101 (streamer_tree_cache_append): Adjust.
23102 (record_common_node): Likewise.
23103 (streamer_tree_cache_create): Add argument whether to
23104 record hash values together with trees.
23105 (streamer_tree_cache_delete): Adjust.
23106 * tree-streamer.h (struct streamer_tree_cache_d): Add
23108 (streamer_read_integer_cst): Remove.
23109 (streamer_tree_cache_insert): Adjust.
23110 (streamer_tree_cache_append): Likewise.
23111 (streamer_tree_cache_insert_at): Rename to ...
23112 (streamer_tree_cache_replace_tree): ... this and adjust.
23113 (streamer_tree_cache_create): Add argument whether to record hashes.
23114 (streamer_tree_cache_get): Rename to ...
23115 (streamer_tree_cache_get_tree): ... this.
23116 (streamer_tree_cache_get_hash): New function.
23117 * tree.c (cache_integer_cst): New function.
23118 * tree.h (cache_integer_cst): Declare.
23119 (ANON_AGGRNAME_FORMAT, ANON_AGGRNAME_P): Move here from cp/cp-tree.h.
23120 * lto-symtab.c (lto_varpool_replace_node): Only release
23121 DECL_INITIAL of non-prevailing decls.
23122 * varpool.c (varpool_remove_initializer): Do not release
23123 DECL_INITIAL when we are still in CGRAPH_LTO_STREAMING.
23125 2013-06-16 Jürgen Urban <JuergenUrban@gmx.de>
23127 * config/mips/mips.h (ISA_HAS_MUL3): Include TARGET_MIPS5900.
23128 (ISA_HAS_MULT, ISA_HAS_DMULT, ISA_HAS_DIV, ISA_HAS_DDIV): New macros.
23129 * config/mips/mips.md (mul<mode>3, mul<mode>3_internal)
23130 (mul<mode>3_r4000): Require ISA_HAS_<D>MULT.
23131 (mul<mode>3_mul3): Handle TARGET_MIPS5900.
23132 (mulsidi3_64bit_dmul): Remove redundant TARGET_64BIT test.
23133 (<su>muldi3_highpart, <su>muldi3_highpart_internal, <u>mulditi3)
23134 (<u>mulditi3_internal, <u>mulditi3_r4000): Require ISA_HAS_DMULT
23135 instead of TARGET_64BIT.
23136 (divmod<mode>4, udivmod<mode>4, <u>divmod<GPR:mode>4_hilo_<HILO:mode>):
23137 Require ISA_HAS_<D>DIV.
23139 2013-06-16 Richard Sandiford <rdsandiford@googlemail.com>
23141 * config.gcc (mips*-mti-linux*, mips64*-*-linux*, mipsisa64*-*-linux*)
23142 (mips*-*-linux*): Move default with_llsc setting to where other
23144 (mips*-*-vxworks*): Move with_arch default from with_cpu block to
23146 (mips64r5900-*-*, mips64r5900el-*-*, mipsr5900-*-*, mipsr5900el-*-*):
23147 Likewise. Remove default with_tune setting. Move default float
23148 setting to its own block. Handle with_llsc in the same block as above.
23150 2013-06-16 Joern Rennecke <joern.rennecke@embecosm.com>
23152 PR rtl-optimization/57425
23153 PR rtl-optimization/57569
23154 * alias.c (write_dependence_p): Add new parameters mem_mode,
23155 canon_mem_addr and mem_canonicalized. Change type of writep to bool.
23156 Changed all callers.
23157 (canon_anti_dependence): New function.
23158 * cse.c (check_dependence): Use canon_anti_dependence.
23159 * cselib.c (cselib_invalidate_mem): Likewise.
23160 * rtl.h (canon_anti_dependence): Declare.
23162 2013-06-16 Jürgen Urban <JuergenUrban@gmx.de>
23164 * config/mips/mips.h (ISA_HAS_LL_SC): Exclude TARGET_MIPS5900.
23165 * config/mips/mips.c (mips_start_ll_sc_sync_block): Output
23166 ".set mips3" for 64-bit targets.
23168 2013-06-15 Dehao Chen <dehao@google.com>
23170 * tree-flow.h (gimple_check_call_matching_types): Add new argument.
23171 * gimple-low.c (gimple_check_call_matching_types): Likewise.
23172 (gimple_check_call_args): Likewise.
23173 * value-prof.c (check_ic_target): Likewise.
23174 * ipa-inline.c (early_inliner): Likewise.
23175 * ipa-prop.c (update_indirect_edges_after_inlining): Likewise.
23176 * cgraph.c (cgraph_create_edge_1): Likewise.
23177 (cgraph_make_edge_direct): Likewise.
23179 2013-06-14 Michael Meissner <meissner@linux.vnet.ibm.com>
23182 * config/rs6000/rs6000.md (mov<mode>_ppc64): Call
23183 rs6000_output_move_128bit to handle emitting quad memory
23184 operations. Set attribute length to 8 bytes.
23186 2013-06-14 Vidya Praveen <vidyapraveen@arm.com>
23188 * config/aarch64/aarch64-simd.md (aarch64_<su>mlal_lo<mode>):
23190 (aarch64_<su>mlal_hi<mode>, aarch64_<su>mlsl_lo<mode>): Likewise.
23191 (aarch64_<su>mlsl_hi<mode>, aarch64_<su>mlal<mode>): Likewise.
23192 (aarch64_<su>mlsl<mode>): Likewise.
23194 2013-06-14 Mike Stump <mikestump@comcast.net>
23196 * Makefile.in (TARGET_H): Add insn-codes.h.
23198 2013-06-14 Alan Modra <amodra@gmail.com>
23200 PR middle-end/57134
23201 PR middle-end/57586
23202 * expr.c (expand_expr_real_1 <normal_inner_ref>): Pass
23203 EXPAND_MEMORY and EXPAND_WRITE to recursive call. Don't use
23204 bitfield expansion when EXPAND_MEMORY.
23205 (expand_expr_real_1 <VIEW_CONVERT_EXPR>): Pass modifier likewise.
23207 2013-06-13 Michael Meissner <meissner@linux.vnet.ibm.com>
23209 * config/rs6000/rs6000.c (rs6000_option_override_internal): Move
23210 test for clearing quad memory on 32-bit later.
23212 2013-06-13 Marc Glisse <marc.glisse@inria.fr>
23214 * fold-const.c (negate_expr_p): Handle VECTOR_CST.
23215 (fold_negate_expr): Likewise.
23216 (fold_real_zero_addition_p): Handle vectors.
23217 (fold_binary_loc) <PLUS_EXPR, MINUS_EXPR>: Likewise.
23219 2013-06-14 Alan Modra <amodra@gmail.com>
23221 * varasm.c (force_const_mem): Revert 2013-06-07 change.
23223 2013-06-13 Jan Hubicka <jh@suse.cz>
23225 * ipa.c (cgraph_externally_visible_p, varpool_externally_visible_p):
23226 Local comdats are not externally visible.
23227 * symtab.c (dump_symtab_base): Dump externally visible.
23228 (verify_symtab_base): Verify back links in the symtab hash.
23230 2013-06-13 Bin Cheng <bin.cheng@arm.com>
23232 * fold-const.c (operand_equal_p): Consider NOP_EXPR and
23233 CONVERT_EXPR as equal nodes.
23235 2013-06-13 Bin Cheng <bin.cheng@arm.com>
23237 * rtlanal.c (noop_move_p): Check the code to be executed for COND_EXEC.
23239 2013-06-13 Marc Glisse <marc.glisse@inria.fr>
23241 * tree-ssa-forwprop.c (simplify_bitwise_binary, associate_plusminus):
23242 Generalize to complex and vector.
23243 * tree.c (build_all_ones_cst): New function.
23244 * tree.h (build_all_ones_cst): Declare it.
23246 2013-06-13 Alan Modra <amodra@gmail.com>
23248 * config/rs6000/rs6000.h (LONG_DOUBLE_LARGE_FIRST): Define.
23249 * config/rs6000/rs6000.md (signbittf2): New insn.
23250 (extenddftf2_internal): Use LONG_DOUBLE_LARGE_FIRST.
23251 (abstf2_internal, cmptf_internal2): Likewise.
23252 * config/rs6000/spe.md (spe_abstf2_cmp, spe_abstf2_tst): Likewise.
23254 2013-06-12 Michael Meissner <meissner@linux.vnet.ibm.com>
23255 Pat Haugen <pthaugen@us.ibm.com>
23256 Peter Bergner <bergner@vnet.ibm.com>
23258 * config/rs6000/rs6000.c (emit_load_locked): Add support for
23259 power8 byte, half-word, and quad-word atomic instructions.
23260 (emit_store_conditional): Likewise.
23261 (rs6000_expand_atomic_compare_and_swap): Likewise.
23262 (rs6000_expand_atomic_op): Likewise.
23264 * config/rs6000/sync.md (larx): Add new modes for power8.
23266 (AINT): New mode iterator to include TImode as well as normal
23267 integer modes on power8.
23268 (fetchop_pred): Use int_reg_operand instead of gpc_reg_operand so
23269 that VSX registers are not considered. Use AINT mode iterator
23270 instead of INT1 to allow inclusion of quad word atomic operations
23272 (load_locked<mode>): Likewise.
23273 (store_conditional<mode>): Likewise.
23274 (atomic_compare_and_swap<mode>): Likewise.
23275 (atomic_exchange<mode>): Likewise.
23276 (atomic_nand<mode>): Likewise.
23277 (atomic_fetch_<fetchop_name><mode>): Likewise.
23278 (atomic_nand_fetch<mode>): Likewise.
23279 (mem_thread_fence): Use gen_loadsync_<mode> instead of enumerating
23281 (ATOMIC): On power8, add QImode, HImode modes.
23282 (load_locked<QHI:mode>_si): Varients of load_locked for QI/HI
23283 modes that promote to SImode.
23284 (load_lockedti): Convert TImode arguments to PTImode, so that we
23285 get a guaranteed even/odd register pair.
23286 (load_lockedpti): Likewise.
23287 (store_conditionalti): Likewise.
23288 (store_conditionalpti): Likewise.
23290 * config/rs6000/rs6000.md (QHI): New mode iterator for power8
23291 atomic load/store instructions.
23294 2013-06-12 Richard Sandiford <rdsandiford@googlemail.com>
23296 * config/mips/mips.md (extended_mips16): Include GOT and constant-pool
23298 (insn_count): New attribute, with most cases extracted from...
23299 (length): ...here. Redefine most cases in terms of insn_count.
23300 (single_insn): Delete.
23301 (can_delay): Use insn_count to check for single instructions.
23302 (*mul<mode>3_r4300, mul<mode>3_r4000, *mul_acc_si, *mul_acc_si_r3900)
23303 (*msac_using_macc, *mul_sub_si, <u>mulsidi3_32bit_r4000)
23304 (<u>mulsidi3_64bit_r4000, <su>muldi3_highpart_internal)
23305 (<su>mulsi3_highpart_split, <su>muldi3_highpart_internal)
23306 (<u>mulditi3_r4000, *div<mode>3, *recip<mode>3, divmod<mode>4)
23307 (udivmod<mode>4, sqrt<mode>2, *rsqrt<mode>a, *rsqrt<mode>b)
23308 (fix_truncdfsi2_macro, fix_truncsfsi2_macro, *lea_high64)
23309 (*lea64, cprestore_<mode>, clear_hazard_<mode>, <unnamed insn>)
23310 (casesi_internal_mips16_<mode>, *tls_get_tp_<mode>_split)
23311 (tls_get_tp_mips16, *tls_get_tp_mips16_call_<mode>): Use "insn_count"
23312 rather than "length".
23313 (tls_get_tp_<mode>): Likewise. Remove redundant "no_delay" attribute.
23314 * config/mips/mips-ps-3d.md (mips_c_cond_4s, mips_cabs_cond_4s):
23315 Use "insn_count" rather than "length".
23316 * config/mips/mips-dsp.md
23317 (mips_l<SHORT:size><u>x_ext<GPR:mode>_<P:mode>)
23318 (mips_l<GPR:size>x_<P:mode>, *mips_lw<u>x_<P:mode>_ext): Remove
23321 2013-06-12 Marc Glisse <marc.glisse@inria.fr>
23323 PR tree-optimization/57361
23324 * tree-ssa-dse.c (dse_possible_dead_store_p): Handle self-assignment.
23326 2013-06-12 Sofiane Naci <sofiane.naci@arm.com>
23328 * config/aarch64/aarch64-simd.md (aarch64_combine<mode>): Convert
23330 (aarch64_simd_combine<mode>): New instruction expansion.
23331 * config/aarch64/aarch64-protos.h (aarch64_split_simd_combine): New
23332 function prototype.
23333 * config/aarch64/aarch64.c (aarch64_split_combine): New function.
23334 * config/aarch64/iterators.md (Vdbl): Add entry for DF.
23336 2013-06-12 Jan Hubicka <jh@suse.cz>
23338 * cgraph.c (verify_edge_corresponds_to_fndecl): Be lax about
23339 decl has when in streaming stage.
23340 * lto-symtab.c (lto_symtab_merge_symbols): Likewise.
23341 * cgraph.h (cgraph_state): Add CGRAPH_LTO_STREAMING.
23343 2013-06-12 Roland Stigge <stigge@antcom.de>
23346 * config/rs6000/t-linux (MULTIARCH_DIRNAME): Fix SPE version detection.
23348 2013-06-12 Jakub Jelinek <jakub@redhat.com>
23350 PR tree-optimization/57537
23351 * tree-vect-patterns.c (vect_recog_widen_mult_pattern): If
23352 vect_handle_widen_op_by_const, convert oprnd1 to half_type1.
23354 2013-06-12 Richard Biener <rguenther@suse.de>
23356 * data-streamer.h (streamer_write_char_stream): CSE
23357 obs->current_pointer.
23358 * data-streamer-out.c (streamer_write_uhwi_stream): Inline
23359 streamer_write_char_stream manually and optimize the resulting loop.
23360 (streamer_write_hwi_stream): Likewise.
23362 2013-06-12 Jan Hubicka <jh@suse.cz>
23364 * lto-symtab.c (lto_symtab_merge_symbols): Populate symtab hashtable.
23365 * cgraph.h (varpool_create_empty_node): Declare.
23366 * lto-cgraph.c (input_node, input_varpool_node): Forcingly create
23368 * symtab.c (symtab_unregister_node): Be lax about missin entries
23370 (symtab_get_node): Update comment.
23371 * varpool.c (varpool_create_empty_node): Break out from ...
23372 (varpool_node_for_decl): ... here.
23373 * lto-streamer.h (lto_file_decl_data): Add RESOLUTION_MAP.
23375 2013-06-12 Eric Botcazou <ebotcazou@adacore.com>
23377 * expr.c (expand_expr_real_1) <TARGET_MEM_REF>: Use straight-line flow.
23378 <MEM_REF>: Use 'type' instead of TREE_TYPE (exp) and tidy up the first
23379 part. Use straight-line flow at the end.
23380 <COMPONENT_REF>: Remove superfluous else.
23381 <VIEW_CONVERT_EXPR>: Use 'type' instead of TREE_TYPE (exp).
23383 2013-06-12 Jakub Jelinek <jakub@redhat.com>
23386 * varasm.c (decl_binds_to_current_def_p): Call binds_local_p
23387 target hook even for !TREE_PUBLIC decls. If no resolution info
23388 is available, return false for common and external decls.
23390 2013-06-12 Kaushik Phatak <kaushik.phatak@kpitcummins.com>
23392 * config/rl78/constraints.md (U): New constraint.
23393 * config/rl78/rl78.md (*mulqi3_rl78,*mulhi3_rl78,*mulhi3_g13): Add
23396 2013-06-11 Michael Meissner <meissner@linux.vnet.ibm.com>
23399 * config/rs6000/driver-rs6000.c (elf_platform): Make buffer static
23400 to allow returning address to AT_PLATFORM name.
23402 2013-06-11 Jan Hubicka <jh@suse.cz>
23404 * cgraph.c (cgraph_create_function_alias): Set weakref flag.
23405 * cgraph.h (symtab_node_base): Add weakref flag.
23406 * cgraphunit.c (cgraph_reset_node): Clear weakref flag.
23407 (handle_alias_pairs): Set weakref flag, do not set DECL_EXTERNAL.
23408 (output_weakrefs): Use weakref flag.
23409 * fold-const.c (simple_operand_p): Handle WEAK.
23410 * gimple-fold.c (can_refer_decl_in_current_unit_p): Drop weakref.
23411 * ipa.c (varpool_externally_visible_p): Drop weakref.
23412 (function_and_variable_visibility): Update comment; fix weakref
23413 sanity checks; do not clear DECL_WEAK on them.
23414 * lto-cgraph.c (lto_output_node): update.
23415 (lto_output_varpool_node): Update.
23416 (input_overwrite_node): Update.
23417 (input_node): Update.
23418 (input_varpool_node): Update.
23419 * lto-symtab.c (lto_symtab_symbol_p): Do not special case weakrefs.
23420 (lto_symtab_merge_symbols): Add sanity check.
23421 (lto_symtab_prevailing_decl): Do not special case weakrefs.
23422 * passes.c (rest_of_decl_compilation): Set static flag, too.
23423 * symtab.c (dump_symtab_base): Dump weakref.
23424 (verify_symtab_base): Sanity check weakrefs.
23425 (symtab_make_decl_local): Remove duplicated code.
23426 (symtab_alias_ultimate_target): Simplify.
23427 * varpool.c (varpool_create_variable_alias): Set weakref flag.
23429 2013-06-11 Tom de Vries <tom@codesourcery.com>
23431 * genautomata.c (gen_regexp_sequence): Handle els_num == -1. Handle
23432 sequence_vect == NULL.
23434 2013-06-11 DJ Delorie <dj@redhat.com>
23436 * config/rl78/rl78.c (TARGET_UNWIND_WORD_MODE): Define.
23437 (rl78_unwind_word_mode): New.
23439 2013-06-11 David Malcolm <dmalcolm@redhat.com>
23441 * final.c (debug_prefix_maps): Make static.
23443 2013-06-11 David Malcolm <dmalcolm@redhat.com>
23445 * function.c (initial_trampoline): Remove stray copy.
23447 2013-06-11 Sofiane Naci <sofiane.naci@arm.com>
23449 * config/aarch64/aarch64-simd.md (move_lo_quad_<mode>): Update.
23451 2013-06-11 Martin Jambor <mjambor@suse.cz>
23453 * ipa-cp.c (ipa_get_indirect_edge_target_1): Check that param_index is
23454 within bounds at the beginning of the function.
23456 2013-06-11 Alan Modra <amodra@gmail.com>
23458 * varasm.c (get_section): Don't die on !DECL_P decl. Tidy error
23460 (get_named_section): Don't NULL !DECL_P decl.
23462 2013-06-11 Igor Zamyatin <igor.zamyatin@intel.com>
23464 * doc/invoke.texi (core-avx2): Document.
23466 (atom): Updated with MOVBE.
23468 2013-06-11 Richard Biener <rguenther@suse.de>
23470 * collect2.c (main): Do not redirect ld stdout/stderr when debugging.
23472 2013-06-11 Anton Blanchard <anton@samba.org>
23474 * config/rs6000/rs6000.c (rs6000_adjust_atomic_subword): Calculate
23475 correct shift value in little-endian mode.
23477 2013-06-11 Jakub Jelinek <jakub@redhat.com>
23480 * varasm.c (get_variable_align): Move #endif to the right place.
23482 2013-06-10 Cary Coutant <ccoutant@google.com>
23484 * dwarf2out.c (hash_external_ref): Use die_symbol or signature
23485 for hash so that hash table traversal order is deterministic.
23487 2013-06-10 Michael Meissner <meissner@linux.vnet.ibm.com>
23488 Pat Haugen <pthaugen@us.ibm.com>
23489 Peter Bergner <bergner@vnet.ibm.com>
23491 * config/rs6000/vector.md (GPR move splitter): Do not split moves
23492 of vectors in GPRS if they are direct moves or quad word load or
23495 * config/rs6000/rs6000-protos.h (rs6000_output_move_128bit): Add
23497 (direct_move_p): Likewise.
23498 (quad_load_store_p): Likewise.
23500 * config/rs6000/rs6000.c (enum rs6000_reg_type): Simplify register
23501 classes into bins based on the physical register type.
23502 (reg_class_to_reg_type): Likewise.
23503 (IS_STD_REG_TYPE): Likewise.
23504 (IS_FP_VECT_REG_TYPE): Likewise.
23505 (reload_fpr_gpr): Arrays to determine what insn to use if we can
23506 use direct move instructions.
23507 (reload_gpr_vsx): Likewise.
23508 (reload_vsx_gpr): Likewise.
23509 (rs6000_init_hard_regno_mode_ok): Precalculate the register type
23510 information that is a simplification of register classes. Also
23511 precalculate direct move reload helpers.
23512 (direct_move_p): New function to return true if the operation can
23513 be done as a direct move instruciton.
23514 (quad_load_store_p): New function to return true if the operation
23515 is a quad memory operation.
23516 (rs6000_legitimize_address): If quad memory, only allow register
23517 indirect for TImode addresses.
23518 (rs6000_legitimate_address_p): Likewise.
23519 (enum reload_reg_type): Delete, replace with rs6000_reg_type.
23520 (rs6000_reload_register_type): Likewise.
23521 (register_to_reg_type): Return register type.
23522 (rs6000_secondary_reload_simple_move): New helper function for
23523 secondary reload and secondary memory needed to identify anything
23524 that is a simple move, and does not need reloading.
23525 (rs6000_secondary_reload_direct_move): New helper function for
23526 secondary reload to identify cases that can be done with several
23527 instructions via the direct move instructions.
23528 (rs6000_secondary_reload_move): New helper function for secondary
23529 reload to identify moves between register types that can be done.
23530 (rs6000_secondary_reload): Add support for quad memory operations
23531 and for direct move.
23532 (rs6000_secondary_memory_needed): Likewise.
23533 (rs6000_debug_secondary_memory_needed): Change argument names.
23534 (rs6000_output_move_128bit): New function to return the move to
23535 use for 128-bit moves, including knowing about the various
23536 limitations of quad memory operations.
23538 * config/rs6000/vsx.md (vsx_mov<mode>): Add support for quad
23539 memory operations. call rs6000_output_move_128bit for the actual
23540 instruciton(s) to generate.
23541 (vsx_movti_64bit): Likewise.
23543 * config/rs6000/rs6000.md (UNSPEC_P8V_FMRGOW): New unspec values.
23544 (UNSPEC_P8V_MTVSRWZ): Likewise.
23545 (UNSPEC_P8V_RELOAD_FROM_GPR): Likewise.
23546 (UNSPEC_P8V_MTVSRD): Likewise.
23547 (UNSPEC_P8V_XXPERMDI): Likewise.
23548 (UNSPEC_P8V_RELOAD_FROM_VSX): Likewise.
23549 (UNSPEC_FUSION_GPR): Likewise.
23550 (FMOVE128_GPR): New iterator for direct move.
23551 (f32_lv): New mode attribute for load/store of SFmode/SDmode values.
23552 (f32_sv): Likewise.
23553 (f32_dm): Likewise.
23554 (zero_extend<mode>di2_internal1): Add support for power8 32-bit
23555 loads and direct move instructions.
23556 (zero_extendsidi2_lfiwzx): Likewise.
23557 (extendsidi2_lfiwax): Likewise.
23558 (extendsidi2_nocell): Likewise.
23559 (floatsi<mode>2_lfiwax): Likewise.
23560 (lfiwax): Likewise.
23561 (floatunssi<mode>2_lfiwzx): Likewise.
23562 (lfiwzx): Likewise.
23563 (fix_trunc<mode>_stfiwx): Likewise.
23564 (fixuns_trunc<mode>_stfiwx): Likewise.
23565 (mov<mode>_hardfloat, 32-bit floating point): Likewise.
23566 (mov<move>_hardfloat64, 64-bit floating point): Likewise.
23567 (parity<mode>2_cmpb): Set length/type attr.
23568 (unnamed shift right patterns, mov<mode>_internal2): Change type attr
23569 for 'mr.' to fast_compare.
23570 (bpermd_<mode>): Change type attr to popcnt.
23571 (p8_fmrgow_<mode>): New insns for power8 direct move support.
23572 (p8_mtvsrwz_1): Likewise.
23573 (p8_mtvsrwz_2): Likewise.
23574 (reload_fpr_from_gpr<mode>): Likewise.
23575 (p8_mtvsrd_1): Likewise.
23576 (p8_mtvsrd_2): Likewise.
23577 (p8_xxpermdi_<mode>): Likewise.
23578 (reload_vsx_from_gpr<mode>): Likewise.
23579 (reload_vsx_from_gprsf): Likewise.
23580 (p8_mfvsrd_3_<mode>): LIkewise.
23581 (reload_gpr_from_vsx<mode>): Likewise.
23582 (reload_gpr_from_vsxsf): Likewise.
23583 (p8_mfvsrd_4_disf): Likewise.
23584 (multi-word GPR splits): Do not split direct moves or quad memory
23587 2013-06-10 David Malcolm <dmalcolm@redhat.com>
23589 * tree-into-ssa.c (interesting_blocks): Make static.
23591 2013-06-10 Jakub Jelinek <jakub@redhat.com>
23594 * varasm.c (align_variable): Don't use DATA_ALIGNMENT or
23595 CONSTANT_ALIGNMENT if !decl_binds_to_current_def_p (decl).
23596 Use DATA_ABI_ALIGNMENT for that case instead if defined.
23597 (get_variable_align): New function.
23598 (get_variable_section, emit_bss, emit_common,
23599 assemble_variable_contents, place_block_symbol): Use
23600 get_variable_align instead of DECL_ALIGN.
23601 (assemble_noswitch_variable): Add align argument, use it
23602 instead of DECL_ALIGN.
23603 (assemble_variable): Adjust caller. Use get_variable_align
23604 instead of DECL_ALIGN.
23605 * config/i386/i386.h (DATA_ALIGNMENT): Adjust x86_data_alignment
23607 (DATA_ABI_ALIGNMENT): Define.
23608 * config/i386/i386-protos.h (x86_data_alignment): Adjust prototype.
23609 * config/i386/i386.c (x86_data_alignment): Add opt argument. If
23610 opt is false, only return the psABI mandated alignment increase.
23611 * config/c6x/c6x.h (DATA_ALIGNMENT): Renamed to...
23612 (DATA_ABI_ALIGNMENT): ... this.
23613 * config/mmix/mmix.h (DATA_ALIGNMENT): Renamed to...
23614 (DATA_ABI_ALIGNMENT): ... this.
23615 * config/mmix/mmix.c (mmix_data_alignment): Adjust function comment.
23616 * config/s390/s390.h (DATA_ALIGNMENT): Renamed to...
23617 (DATA_ABI_ALIGNMENT): ... this.
23618 * doc/tm.texi.in (DATA_ABI_ALIGNMENT): Document.
23619 * doc/tm.texi: Regenerated.
23621 2013-06-10 Uros Bizjak <ubizjak@gmail.com>
23623 * config/alpha/alpha.c (alpha_emit_xfloating_compare): Also use
23624 cmp_code to construct REG_EQUAL note.
23626 2013-06-09 Jakub Jelinek <jakub@redhat.com>
23629 * config/i386/i386.md (TARGET_READ_MODIFY_WRITE peepholes): Ensure
23630 that operands[2] doesn't overlap with operands[0].
23632 2013-06-09 David Edelsohn <dje.gcc@gmail.com>
23633 Jan Hubicka <jh@suse.cz>
23635 * config/rs6000/rs6000.c (print_operand, 'z'): Remove historical
23636 hack to mark symbols as used.
23638 2013-06-08 Vladimir Makarov <vmakarov@redhat.com>
23640 PR rtl-optimization/57559
23641 * lra-constraints.c (process_alt_operands): Don't discourage
23642 memory with known offset for offsetable memory constraint.
23643 * lra.c (lra_emit_add): Exchange y and z for 2-op add insn.
23645 2013-06-08 Eric Botcazou <ebotcazou@adacore.com>
23647 * varasm.c (struct oc_local_state): Reorder fields.
23648 (output_constructor_bitfield): Replace OUTER parameter with BIT_OFFSET
23649 and adjust accordingly.
23650 (output_constructor): Reorder initialization code and adjust call to
23651 output_constructor_bitfield.
23653 2013-06-07 Jan Hubicka <jh@suse.cz>
23655 * symtab.c (symtab_resolve_alias): Do not remove alias attribute.
23657 2013-06-07 David Malcolm <dmalcolm@redhat.com>
23659 * tree-object-size.c (unknown): Make const.
23661 2013-06-07 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
23663 * config/s390/s390.md (cpu_facility): Add cpu_zarch.
23664 ("*movmem_short", "*clrmem_short", "*cmpmem_short): Use cpu_zarch
23665 for last alternative in the cpu_facility attribute.
23667 2013-06-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
23670 * config/arm/arm.md (*xordi3_insn): Change to insn_and_split.
23671 (xordi3): Change operand 2 constraint to arm_xordi_operand.
23672 * config/arm/arm.c (const_ok_for_dimode_op): Handle XOR.
23673 * config/arm/constraints.md (Dg): New constraint.
23674 * config/arm/neon.md (xordi3_neon): Remove.
23675 (neon_veor<mode>): Generate xordi3 instead of xordi3_neon.
23676 * config/arm/predicates.md (arm_xordi_operand): New predicate.
23678 2013-06-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
23680 * config/arm/arm.md (anddi3_insn): Remove duplicate alternatives.
23681 Clean up alternatives.
23683 2013-06-07 Alan Modra <amodra@gmail.com>
23685 * config/rs6000/rs6000.c (setup_incoming_varargs): Round up
23688 2013-06-07 Alan Modra <amodra@gmail.com>
23690 * varasm.c (force_const_mem): Assert mode is not VOID or BLK.
23692 2013-06-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
23694 * config/arm/constraints.md (Df): New constraint.
23695 * config/arm/arm.md (iordi3_insn): Use Df constraint instead of De.
23696 Correct length attribute for last two alternatives.
23698 2013-06-07 Alan Modra <amodra@gmail.com>
23700 * config/rs6000/rs6000.c (rs6000_option_override_internal): Don't
23701 override user -mfp-in-toc.
23702 (offsettable_ok_by_alignment): Consider just the current access
23703 rather than the whole object, unless BLKmode. Handle
23704 CONSTANT_POOL_ADDRESS_P constants that lack a decl too.
23705 (use_toc_relative_ref): Allow CONSTANT_POOL_ADDRESS_P constants
23706 for -mcmodel=medium.
23707 * config/rs6000/linux64.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Don't
23708 override user -mfp-in-toc or -msum-in-toc. Default to
23709 -mno-fp-in-toc for -mcmodel=medium.
23711 2013-06-06 DJ Delorie <dj@redhat.com>
23713 * config/rl78/rl78.c (rl78_valid_pointer_mode): New, implements
23714 TARGET_VALID_POINTER_MODE.
23716 2013-06-06 Michael Meissner <meissner@linux.vnet.ibm.com>
23717 Pat Haugen <pthaugen@us.ibm.com>
23718 Peter Bergner <bergner@vnet.ibm.com>
23720 * doc/extend.texi (PowerPC AltiVec/VSX Built-in Functions):
23721 Document new power8 builtins.
23723 * config/rs6000/vector.md (and<mode>3): Add a clobber/scratch of a
23724 condition code register, to allow 128-bit logical operations to be
23725 done in the VSX or GPR registers.
23726 (nor<mode>3): Use the canonical form for nor.
23727 (eqv<mode>3): Add expanders for power8 xxleqv, xxlnand, xxlorc,
23728 vclz*, and vpopcnt* vector instructions.
23729 (nand<mode>3): Likewise.
23730 (orc<mode>3): Likewise.
23731 (clz<mode>2): LIkewise.
23732 (popcount<mode>2): Likewise.
23734 * config/rs6000/predicates.md (int_reg_operand): Rework tests so
23735 that only the GPRs are recognized.
23737 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
23738 support for new power8 builtins.
23740 * config/rs6000/rs6000-builtin.def (xscvspdpn): Add new power8
23742 (xscvdpspn): Likewise.
23748 (vpopcnt): Likewise.
23749 (vpopcntb): Likewise.
23750 (vpopcnth): Likewise.
23751 (vpopcntw): Likewise.
23752 (vpopcntd): Likewise.
23754 (vmrgew): Likewise.
23755 (vmrgow): Likewise.
23757 (eqv_v16qi3): Likewise.
23758 (eqv_v8hi3): Likewise.
23759 (eqv_v4si3): Likewise.
23760 (eqv_v2di3): Likewise.
23761 (eqv_v4sf3): Likewise.
23762 (eqv_v2df3): Likewise.
23764 (nand_v16qi3): Likewise.
23765 (nand_v8hi3): Likewise.
23766 (nand_v4si3): Likewise.
23767 (nand_v2di3): Likewise.
23768 (nand_v4sf3): Likewise.
23769 (nand_v2df3): Likewise.
23771 (orc_v16qi3): Likewise.
23772 (orc_v8hi3): Likewise.
23773 (orc_v4si3): Likewise.
23774 (orc_v2di3): Likewise.
23775 (orc_v4sf3): Likewise.
23776 (orc_v2df3): Likewise.
23778 * config/rs6000/rs6000.c (rs6000_option_override_internal): Only
23779 allow power8 quad mode in 64-bit.
23780 (rs6000_builtin_vectorized_function): Add support to vectorize
23781 ISA 2.07 count leading zeros, population count builtins.
23782 (rs6000_expand_vector_init): On ISA 2.07 use xscvdpspn to form
23783 V4SF vectors instead of xscvdpsp to avoid IEEE related traps.
23784 (builtin_function_type): Add vgbbd builtin function which takes an
23786 (altivec_expand_vec_perm_const): Add support for new power8 merge
23789 * config/rs6000/vsx.md (VSX_L2): New iterator for 128-bit types,
23790 that does not include TImdoe for use with 32-bit.
23791 (UNSPEC_VSX_CVSPDPN): Support for power8 xscvdpspn and xscvspdpn
23793 (UNSPEC_VSX_CVDPSPN): Likewise.
23794 (vsx_xscvdpspn): Likewise.
23795 (vsx_xscvspdpn): Likewise.
23796 (vsx_xscvdpspn_scalar): Likewise.
23797 (vsx_xscvspdpn_directmove): Likewise.
23798 (vsx_and<mode>3): Split logical operations into 32-bit and
23799 64-bit. Add support to do logical operations on TImode as well as
23800 VSX vector types. Allow logical operations to be done in either
23801 VSX registers or in general purpose registers in 64-bit mode. Add
23802 splitters if GPRs were used. For AND, add clobber of CCmode to
23803 allow use of ANDI on GPRs. Rewrite nor to use the canonical RTL
23805 (vsx_and<mode>3_32bit): Likewise.
23806 (vsx_and<mode>3_64bit): Likewise.
23807 (vsx_ior<mode>3): Likewise.
23808 (vsx_ior<mode>3_32bit): Likewise.
23809 (vsx_ior<mode>3_64bit): Likewise.
23810 (vsx_xor<mode>3): Likewise.
23811 (vsx_xor<mode>3_32bit): Likewise.
23812 (vsx_xor<mode>3_64bit): Likewise.
23813 (vsx_one_cmpl<mode>2): Likewise.
23814 (vsx_one_cmpl<mode>2_32bit): Likewise.
23815 (vsx_one_cmpl<mode>2_64bit): Likewise.
23816 (vsx_nor<mode>3): Likewise.
23817 (vsx_nor<mode>3_32bit): Likewise.
23818 (vsx_nor<mode>3_64bit): Likewise.
23819 (vsx_andc<mode>3): Likewise.
23820 (vsx_andc<mode>3_32bit): Likewise.
23821 (vsx_andc<mode>3_64bit): Likewise.
23822 (vsx_eqv<mode>3_32bit): Add support for power8 xxleqv, xxlnand,
23823 and xxlorc instructions.
23824 (vsx_eqv<mode>3_64bit): Likewise.
23825 (vsx_nand<mode>3_32bit): Likewise.
23826 (vsx_nand<mode>3_64bit): Likewise.
23827 (vsx_orc<mode>3_32bit): Likewise.
23828 (vsx_orc<mode>3_64bit): Likewise.
23830 * config/rs6000/rs6000.h (VLOGICAL_REGNO_P): Update comment.
23832 * config/rs6000/altivec.md (UNSPEC_VGBBD): Add power8 vgbbd
23834 (p8_vmrgew): Add power8 vmrgew and vmrgow instructions.
23835 (p8_vmrgow): Likewise.
23836 (altivec_and<mode>3): Add clobber of CCmode to allow AND using
23837 GPRs to be split under VSX.
23838 (p8v_clz<mode>2): Add power8 count leading zero support.
23839 (p8v_popcount<mode>2): Add power8 population count support.
23840 (p8v_vgbbd): Add power8 gather bits by bytes by doubleword
23843 * config/rs6000/rs6000.md (eqv<mode>3): Add support for powerp eqv
23846 * config/rs6000/altivec.h (vec_eqv): Add defines to export power8
23848 (vec_nand): Likewise.
23849 (vec_vclz): Likewise.
23850 (vec_vclzb): Likewise.
23851 (vec_vclzd): Likewise.
23852 (vec_vclzh): Likewise.
23853 (vec_vclzw): Likewise.
23854 (vec_vgbbd): Likewise.
23855 (vec_vmrgew): Likewise.
23856 (vec_vmrgow): Likewise.
23857 (vec_vpopcnt): Likewise.
23858 (vec_vpopcntb): Likewise.
23859 (vec_vpopcntd): Likewise.
23860 (vec_vpopcnth): Likewise.
23861 (vec_vpopcntw): Likewise.
23863 2013-06-06 Vladimir Makarov <vmakarov@redhat.com>
23865 PR rtl-optimization/57468
23866 * config/i386/i386.c (inline_secondary_memory_needed): Ignore
23869 2013-06-06 Vladimir Makarov <vmakarov@redhat.com>
23871 PR rtl-optimization/57459
23872 * lra-constraints.c (update_ebb_live_info): Fix typo for operand
23873 type when setting live regs.
23875 2013-06-06 Vladimir Makarov <vmakarov@redhat.com>
23877 * config/s390/s390.opt (mlra): New option.
23878 * config/s390/s390.c (s390_decompose_address): Check displacement
23879 for all registers for LRA.
23880 (s390_secondary_reload): Don't used secondary reloads for LRA.
23881 (s390_lra_p): New function.
23882 (TARGET_LRA_P): Define.
23883 * config/s390/s390.md (*movmem_short, *clrmem_short): Change value
23884 of attribute cpu_facility to zarch for the last alternative.
23885 (*cmpmem_short): Ditto.
23887 2013-06-06 Eric Botcazou <ebotcazou@adacore.com>
23889 * config/arm/arm.c (arm_r3_live_at_start_p): New predicate.
23890 (arm_compute_static_chain_stack_bytes): Use it. Tidy up.
23891 (arm_expand_prologue): Likewise.
23893 2013-06-06 Teresa Johnson <tejohnson@google.com>
23896 * ifcvt.c (find_if_case_1): Replace BB_COPY_PARTITION with assert
23897 as this is now done by redirect_edge_and_branch_force.
23898 * function.c (thread_prologue_and_epilogue_insns): Insert new bb after
23899 barriers, and fix interaction with splitting.
23900 * emit-rtl.c (try_split): Copy REG_CROSSING_JUMP notes.
23901 * cfgcleanup.c (try_forward_edges): Fix early return value to properly
23902 reflect changes made in the routine.
23903 * bb-reorder.c (emit_barrier_after_bb): Move to cfgrtl.c.
23904 (fix_up_fall_thru_edges): Remove incorrect check for bb layout order
23905 since this is called in cfglayout mode, and replace partition fixup
23906 with assert as that is now done by force_nonfallthru_and_redirect.
23907 (add_reg_crossing_jump_notes): Handle the fact that some jumps may
23908 already be marked with region crossing note.
23909 (insert_section_boundary_note): Make non-static, gate on flag
23910 has_bb_partition, rewrite to also check for multiple partitions.
23911 (rest_of_handle_reorder_blocks): Remove call to
23912 insert_section_boundary_note, now done later during free_cfg.
23913 (duplicate_computed_gotos): Don't duplicate partition crossing edge.
23914 * bb-reorder.h (insert_section_boundary_note): Declare.
23915 * Makefile.in (cfgrtl.o): Depend on bb-reorder.h
23916 * cfgrtl.c (rest_of_pass_free_cfg): If partitions exist
23917 invoke insert_section_boundary_note.
23918 (try_redirect_by_replacing_jump): Remove unnecessary
23919 check for region crossing note.
23920 (fixup_partition_crossing): New function.
23921 (rtl_redirect_edge_and_branch): Fixup partition boundaries.
23922 (emit_barrier_after_bb): Move here from bb-reorder.c, handle insertion
23923 in non-cfglayout mode.
23924 (force_nonfallthru_and_redirect): Fixup partition boundaries,
23925 remove old code that tried to do this. Emit barrier correctly
23926 when we are in cfglayout mode.
23927 (last_bb_in_partition): New function.
23928 (rtl_split_edge): Correctly fixup partition boundaries.
23929 (commit_one_edge_insertion): Remove old code that tried to
23930 fixup region crossing edge since this is now handled in
23931 split_block, and set up insertion point correctly since
23932 block may now end in a jump.
23933 (verify_hot_cold_block_grouping): Guard against checking when not in
23934 linearized RTL mode.
23935 (rtl_verify_edges): Add checks for incorrect/missing REG_CROSSING_JUMP
23937 (rtl_verify_flow_info_1): Move verify_hot_cold_block_grouping to
23938 rtl_verify_flow_info, so not called in cfglayout mode.
23939 (rtl_verify_flow_info): Move verify_hot_cold_block_grouping here.
23940 (fixup_reorder_chain): Remove old code that attempted to fixup region
23941 crossing note as this is now handled in force_nonfallthru_and_redirect.
23942 (duplicate_insn_chain): Don't duplicate switch section notes.
23943 (rtl_can_remove_branch_p): Remove unnecessary check for region crossing
23945 * basic-block.h (emit_barrier_after_bb): Declare.
23947 2013-06-06 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
23949 * config/arm/arm-fixed.md (add<mode>3,usadd<mode>3,ssadd<mode>3,
23950 sub<mode>3, ussub<mode>3, sssub<mode>3, arm_ssatsihi_shift,
23951 arm_usatsihi): Adjust alternatives for arm_restrict_it.
23953 2013-06-06 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
23955 * config/arm/arm-ldmstm.ml: Set "predicable_short_it" to "no"
23957 * config/arm/ldmstm.md: Regenerate.
23959 2013-06-06 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
23961 * config/arm/sync.md (atomic_loaddi_1):
23962 Disable predication for arm_restrict_it.
23963 (arm_load_exclusive<mode>): Likewise.
23964 (arm_load_exclusivesi): Likewise.
23965 (arm_load_exclusivedi): Likewise.
23966 (arm_load_acquire_exclusive<mode>): Likewise.
23967 (arm_load_acquire_exclusivesi): Likewise.
23968 (arm_load_acquire_exclusivedi): Likewise.
23969 (arm_store_exclusive<mode>): Likewise.
23970 (arm_store_exclusive<mode>): Likewise.
23971 (arm_store_release_exclusivedi): Likewise.
23972 (arm_store_release_exclusive<mode>): Likewise.
23974 2013-06-06 Richard Biener <rguenther@suse.de>
23976 * lto-streamer.h (enum LTO_tags): Move LTO_tree_pickle_reference
23978 (lto_tag_is_tree_code_p): Adjust.
23979 (lto_tag_is_gimple_code_p): Likewise.
23980 (lto_gimple_code_to_tag): Likewise.
23981 (lto_tag_to_gimple_code): Likewise.
23982 (lto_tree_code_to_tag): Likewise.
23983 (lto_tag_to_tree_code): Likewise.
23984 * data-streamer.h (streamer_write_hwi_in_range): Use
23985 uhwi streaming to stream the normalized range.
23986 (streamer_read_hwi_in_range): Likewise.
23988 2013-06-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
23990 * config/arm/arm.md (enabled_for_depr_it): New attribute.
23991 (predicable_short_it): Likewise.
23992 (predicated): Likewise.
23993 (enabled): Handle above.
23994 (define_cond_exec): Set predicated attribute to yes.
23996 2013-06-05 Mike Stump <mikestump@comcast.net>
23998 * gdbinit.in (__FUNCTION__): Add.
24000 2013-06-05 Uros Bizjak <ubizjak@gmail.com>
24002 * config/alpha/alpha.c (alpha_emit_conditional_move): Swap all
24003 GE, GT, GEU and GTU compares, modulo DImode compares with zero.
24005 2013-06-05 Jan Hubicka <jh@suse.cz>
24007 * varasm.c (mark_decl_referenced): Revert the removal until targets
24010 2013-06-05 David Edelsohn <dje.gcc@gmail.com>
24012 * config/rs6000/rs6000.c (print_operand, 'z'): Use DECL_PRESERVE_P
24013 instead of mark_decl_referenced.
24015 2013-06-05 Jan Hubicka <jh@suse.cz>
24017 * cgraph.c (cgraph_remove_node): Clear forced_by_abi.
24018 (cgraph_node_cannot_be_local_p_1): Honnor symbol.forced_by_abi
24019 and symtab_used_from_object_file_p.
24020 (cgraph_make_node_local_1): Clear forced_by_abi.
24021 (cgraph_can_remove_if_no_direct_calls_and): Use forced_by_abi
24022 * cgraph.h (symtab_node_base): Add forced_by_abi.
24023 (decide_is_variable_needed): Remove.
24024 (varpool_can_remove_if_no_refs): Honnor symbol.forced_by_abi.
24025 * cgraphunit.c (cgraph_decide_is_function_needed): Rename to ..
24026 (decide_is_symbol_needed): ... this one; handle symbols in general;
24027 always analyze virtuals; honnor forced_by_abi.
24028 (cgraph_finalize_function): Update.
24029 (varpool_finalize_decl): Update.
24030 (symbol_defined_and_needed): Remove.
24031 (analyze_functions): Update.
24032 * lto-cgraph.c (lto_output_node, lto_output_varpool_node,
24033 output_refs, input_overwrite_node): Handle forced_by_abi.
24034 * ipa.c (cgraph_address_taken_from_non_vtable_p): Rename to ...
24035 (address_taken_from_non_vtable_p): ... this one.
24036 (comdat_can_be_unshared_p_1): New function.
24037 (cgraph_comdat_can_be_unshared_p): Rename to ...
24038 (comdat_can_be_unshared_p): ... this one; handle symbols in general.
24039 (varpool_externally_visible_p): Use comdat_can_be_unshared_p.
24040 (function_and_variable_visibility): Clear forced_by_abi as needed.
24041 * trans-mem.c (ipa_tm_mark_forced_by_abi_node): New functoin.
24042 (ipa_tm_create_version_alias, ipa_tm_create_version): Update.
24043 * symtab.c (dump_symtab_base): Dump forced_by_abi.
24044 * varpool.c (decide_is_variable_needed): Remove.
24046 2013-06-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
24048 * config/arm/arm.c (MAX_INSN_PER_IT_BLOCK): New macro.
24049 (arm_option_override): Override arm_restrict_it where appropriate.
24050 (thumb2_final_prescan_insn): Use MAX_INSN_PER_IT_BLOCK.
24051 * config/arm/arm.opt (mrestrict-it): New command-line option.
24052 * doc/invoke.texi: Document -mrestrict-it.
24054 2013-06-05 David Malcolm <dmalcolm@redhat.com>
24056 * tsan.c (tsan_atomic_table): Make const.
24058 2013-06-05 Richard Biener <rguenther@suse.de>
24060 * tree-streamer.c (streamer_tree_cache_insert_1): Update the
24061 index associated with the tree we are supposed to replace.
24062 * tree-streamer-out.c (pack_ts_base_value_fields): Output
24063 TREE_ASM_WRITTEN as zero for everything but SSA names.
24065 2013-06-05 David Malcolm <dmalcolm@redhat.com>
24067 * tree-ssa-structalias.c (call_stmt_vars): Make static.
24069 2013-06-04 Jan Hubicka <jh@suse.cz>
24071 * lto-cgraph.c (get_alias_symbol): Remove weakref sanity check.
24072 (input_node, input_varpool_node): Handle correctly external same
24074 * ipa.c (symtab_remove_unreachable_nodes): Do not remove external
24075 nodes at ltrans stage.
24077 2013-06-04 Jan Hubicka <jh@suse.cz>
24079 * ipa-inline.c (update_caller_keys): Fix availability test.
24080 (update_callee_keys): Likewise.
24081 * symtab.c (symtab_alias_ultimate_target): Make availaiblity logic
24082 to follow ELF standard.
24084 2013-06-04 Jürgen Urban <JuergenUrban@gmx.de>
24086 * config.gcc (mipsr5900-*-elf*, mipsr5900el-*-elf*, mips64r5900-*-elf*)
24087 (mips64r5900el-*-elf*): New configurations.
24088 * config/mips/mips-cpus.def (r5900): New processor.
24089 * config/mips/mips-tables.opt: Regenerate.
24090 * config/mips/mips.c (mips_rtx_cost_data): Add an R5900 entry.
24091 (mips_issue_rate): Handle PROCESSOR_R5900.
24092 (mips_reorg_process_insns): Force reorder mode for the R5900.
24093 * config/mips/mips.h (TARGET_MIPS5900): Define.
24094 (ISA_HAS_CONDMOVE, ISA_HAS_PREFETCH, ISA_HAS_HILO_INTERLOCKS): Include
24096 (ISA_HAS_LOAD_DELAY, ISA_HAS_XFER_DELAY, ISA_HAS_FCMP_DELAY): Exclude
24098 * config/mips/mips.md (processor): Add r5900.
24099 (MOVECC): Disallow CCmode conditions for TARGET_MIPS5900.
24101 2013-06-04 Ian Bolton <ian.bolton@arm.com>
24103 * config/aarch64/aarch64.md (*mov<mode>_aarch64): Call
24104 into function to generate MOVI instruction.
24105 * config/aarch64/aarch64.c (aarch64_simd_container_mode): New function.
24106 (aarch64_preferred_simd_mode): Turn into wrapper.
24107 (aarch64_output_scalar_simd_mov_immediate): New function.
24108 * config/aarch64/aarch64-protos.h: Add prototype for above.
24110 2013-06-04 Ian Bolton <ian.bolton@arm.com>
24112 * config/aarch64/aarch64.c (simd_immediate_info): Remove
24113 element_char member.
24114 (sizetochar): Return signed char.
24115 (aarch64_simd_valid_immediate): Remove elchar and other
24116 unnecessary variables.
24117 (aarch64_output_simd_mov_immediate): Take rtx instead of &rtx.
24118 Calculate element_char as required.
24119 * config/aarch64/aarch64-protos.h: Update and move prototype
24120 for aarch64_output_simd_mov_immediate.
24121 * config/aarch64/aarch64-simd.md (*aarch64_simd_mov<mode>):
24124 2013-06-04 Ian Bolton <ian.bolton@arm.com>
24126 * config/aarch64/aarch64.c (simd_immediate_info): Struct to hold
24127 information completed by aarch64_simd_valid_immediate.
24128 (aarch64_legitimate_constant_p): Update arguments.
24129 (aarch64_simd_valid_immediate): Work with struct rather than many
24131 (aarch64_simd_scalar_immediate_valid_for_move): Update arguments.
24132 (aarch64_simd_make_constant): Update arguments.
24133 (aarch64_output_simd_mov_immediate): Work with struct rather than
24134 many pointers. Output immediate directly rather than as operand.
24135 * config/aarch64/aarch64-protos.h (aarch64_simd_valid_immediate):
24137 * config/aarch64/constraints.md (Dn): Update arguments.
24139 2013-06-04 Ian Bolton <ian.bolton@arm.com>
24141 * config/aarch64/aarch64.c (aarch64_simd_valid_immediate): No
24143 (aarch64_simd_immediate_valid_for_move): Remove.
24144 (aarch64_simd_scalar_immediate_valid_for_move): Update call.
24145 (aarch64_simd_make_constant): Update call.
24146 (aarch64_output_simd_mov_immediate): Update call.
24147 * config/aarch64/aarch64-protos.h (aarch64_simd_valid_immediate):
24149 * config/aarch64/constraints.md (Dn): Update call.
24151 2013-06-04 Ian Bolton <ian.bolton@arm.com>
24153 * config/aarch64/aarch64.c (aarch64_simd_valid_immediate): Change
24154 return type to bool for prototype.
24155 (aarch64_legitimate_constant_p): Check for true instead of not -1.
24156 (aarch64_simd_valid_immediate): Fix up each return to return a bool.
24157 (aarch64_simd_immediate_valid_for_move): Update retval for bool.
24159 2013-06-04 Catherine Moore <clm@codesourcery.com>
24161 * config/mips/mips.opt (meva): New.
24162 * config/mips/mips.h (TARGET_CPU_CPP_BUILTINS): Define __mips_eva.
24163 (ASM_SPEC): Handle -meva.
24164 * doc/invoke.texi (meva): Document.
24166 2013-06-04 Alan Modra <amodra@gmail.com>
24168 * config/rs6000/rs6000.c (output_toc): Correct little-endian float
24171 2013-06-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
24173 * rtl.def: Add extra fourth optional field to define_cond_exec.
24174 * gensupport.c (process_one_cond_exec): Process attributes from
24176 * doc/md.texi: Document fourth field in define_cond_exec.
24178 2013-06-04 Eric Botcazou <ebotcazou@adacore.com>
24180 * expmed.c (extract_bit_field_1): In the larger-than-a-word case, factor
24181 out the processing order as in store_bit_field_1.
24183 2013-06-04 Jan Hubicka <jh@suse.cz>
24185 PR middle-end/57500
24186 * cgraphunit.c (cgraph_process_same_body_aliases): Create
24187 non-VAR_DECL node if it does not exist yet.
24189 2013-06-03 Richard Sandiford <rdsandiford@googlemail.com>
24191 * config.gcc (mipsisa64sr71k-*-elf*, mipsisa64sb1-*-elf*)
24192 (mipsisa64sb1el-*-elf*, mips64-*-elf*, mips64el-*-elf*)
24193 (mips64orion-*-elf*, mips64orionel-*-elf*): Remove
24194 target_cpu_default setting.
24196 2013-06-03 Teresa Johnson <tejohnson@google.com>
24198 * dumpfile.c (opt_info_switch_p): Change -fopt-info
24199 default to -fopt-info=optimized instead of all.
24200 * doc/invoke.texi: Ditto.
24201 * tree-vectorizer.c (vectorize_loops): Emit loop vectorization
24202 success under MSG_OPTIMIZED_LOCATIONS, and use dump_printf_loc.
24203 (execute_vect_slp): Emit BB vectorization success under
24204 MSG_OPTIMIZED_LOCATIONS.
24205 * tree-vect-slp.c (vect_slp_transform_bb): Change
24206 MSG_OPTIMIZED_LOCATIONS to MSG_NOTE.
24207 * tree-vect-loop.c (vect_transform_loop): Ditto.
24209 2013-06-03 Jason Merrill <jason@redhat.com>
24212 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
24213 Use TARGET_EXPR for C++.
24215 2013-06-03 Jakub Jelinek <jakub@redhat.com>
24217 PR rtl-optimization/57268
24218 * sched-deps.c (sched_analyze_2): Don't flush_pending_lists
24219 if DEBUG_INSN_P (insn).
24222 2013-05-31 Dinar Temirbulatov <dinar@kugelworks.com>
24224 PR rtl-optimization/57268
24225 * sched-deps.c (sched_analyze_2): Flush dependence lists if
24226 the sum of the read and write lists exceeds MAX_PENDING_LIST_LENGTH.
24228 2013-06-03 Yuri Rumyantsev <yuri.s.rumyantsev@intel.com>
24230 * config/i386/i386.c (ix86_lea_outperforms): Fix formatting.
24231 (ix86_avoid_lea_for_addr): Likewise.
24232 (exact_dependency_1): Likewise.
24233 (ix86_adjust_cost): Likewise.
24234 (swap_top_of_ready_list): Fix formatting and !reload_completed check
24236 (do_reorder_for_imul): Fix typo, formatting and
24237 !reload_completed check removed.
24238 (ix86_sched_reorder): Fix typo and formatting.
24239 (fold_builtin_cpu): Move M_INTEL_SLM at the end of processor types
24242 2013-06-03 Sofiane Naci <sofiane.naci@arm.com>
24244 * config/aarch64/aarch64.md (*movdi_aarch64): Define "simd" attribute.
24246 2013-06-03 Eric Botcazou <ebotcazou@adacore.com>
24248 * varasm.c (output_constant) <CONSTRUCTOR>: Minor formatting tweak.
24249 <STRING_CST>: Likewise.
24250 <VECTOR_CST>: Likewise.
24252 2013-06-01 Janus Weil <janus@gcc.gnu.org>
24253 Mikael Morin <mikael@gcc.gnu.org>
24255 * configure.ac: Add AC_HEADER_TIOCGWINSZ macro.
24256 * config.in: Regenerated.
24257 * configure: Regenerated.
24259 2013-06-01 Jan Hubicka <jh@suse.cz>
24261 PR middle-end/57366
24262 * cgraphunit.c (compile): When weakref is not supported,
24263 set up transparent aliases before final output pass.
24264 * varasm.c (assemble_alias): Do not try to do it here.
24266 2013-06-01 Jan Hubicka <jh@suse.cz>
24268 PR middle-end/57467
24269 * passes.c (for_per_function): Skip unanalyzed functions.
24271 2013-06-01 Jan Hubicka <jh@suse.cz>
24273 * lto-symtab.c (lto_symtab_merge_cgraph_nodes_1): Rename to ...
24274 (lto_symtab_merge_symbols_1): ... this one.
24275 (lto_symtab_merge_cgraph_nodes): Rename to ...
24276 (lto_symtab_merge_symbols): ... this one; simplify.
24277 * cgraph.c (same_body_aliases_done): Rename to ...
24278 (cpp_implicit_aliases_done): ... this one.
24279 (cgraph_create_function_alias): Update.
24280 (cgraph_same_body_alias): Update.
24281 (dump_cgraph_node): Remove alias dumping; simplify thunk dumping.
24282 (verify_edge_corresponds_to_fndecl): Simplify.
24283 * cgraph.h (symtab_node_base): Add cpp_implicit_alias, alias_target.
24284 (cgraph_node): Remove same_body_alias.
24285 (varpool_node): Remove alias_of and extra_name_alias.
24286 (same_body_aliases_done): Rename to ..
24287 (cpp_implicit_aliases_done): ... this one.
24288 (symtab_alias_ultimate_target): Add default parameter.
24289 (symtab_resolve_alias): New function.
24290 (fixup_same_cpp_alias_visibility): Declare.
24291 (cgraph_function_node): Add default parameter.
24292 (cgraph_node_asm_name): Likewise.
24293 (cgraph_function_or_thunk_node): Add default parameter; do
24294 not ICE when it is NULL.
24295 (varpool_variable_node): Likewise.
24296 * tree-emutls.c (create_emultls_var): Update.
24297 (ipa_lower_emutls): Update.
24298 * cgraphunit.c (cgraph_decide_is_function_needed): Update.
24299 (cgraph_reset_node): Reset alias info.
24300 (cgraph_finalize_function): Update.
24301 (fixup_same_cpp_alias_visibility): Move to symtab.c.
24302 (analyze_function): Simplify.
24303 (cgraph_process_same_body_aliases): Simplify.
24304 (analyze_functions): Fixup same body aliases.
24305 (handle_alias_pairs): Simplify.
24306 (assemble_thunk): Update.
24307 (assemble_thunks_and_aliases): Update.
24308 (output_weakrefs): Rewrite.
24309 * lto-cgraph.c (lto_output_node): Rewrite alias handling.
24310 (lto_output_varpool_node): Likewise.
24311 (compute_ltrans_boundary): Remve assert.
24312 (get_alias_symbol): New functoin.
24313 (input_node): Rewrite alias handling.
24314 (input_varpool_node): Likewise.
24315 * ipa-pure-const.c (propagate_pure_const): Fix formating.
24316 * ipa.c (process_references): Handle weakrefs correctly.
24317 (symtab_remove_unreachable_nodes): Likewise.
24318 * trans-mem.c (get_cg_data): Update.
24319 (ipa_tm_create_version_alias): Update.
24320 (ipa_tm_execute): Update.
24321 * symtab.c (dump_symtab_base): Dump aliases.
24322 (verify_symtab_base): Verify aliases.
24323 (symtab_node_availability): New function.
24324 (symtab_alias_ultimate_target): Simplify.
24325 (fixup_same_cpp_alias_visibility): Move here from cgraphunit.c;
24326 handle all the fixup cases.
24327 (symtab_resolve_alias): New function.
24328 * passes.c (ipa_write_summaries): Handle weakrefs.
24329 * varpool.c (varpool_analyze_node): Simplify.
24330 (assemble_aliases): Update.
24331 (varpool_create_variable_alias): Simplify.
24332 (varpool_extra_name_alias): Simplify.
24333 * lto-streamer.h (lto_symtab_merge_cgraph_nodes): Rename to...
24334 (lto_symtab_merge_symbols): ... this one.
24336 2013-06-01 Dinar Temirbulatov <dinar@kugelworks.com>
24339 PR rtl-optimization/57268
24340 * sched-deps.c (sched_analyze_2): Flush dependence lists if
24341 the sum of the read and write lists exceeds MAX_PENDING_LIST_LENGTH.
24343 2013-06-01 Tobias Burnus <burnus@net-b.de>
24345 Partially reverted:
24346 2013-05-31 Tobias Burnus <burnus@net-b.de>
24348 PR middle-end/57073
24349 * tree-ssa-math-opts.c (execute_cse_sincos): Move check
24352 2013-05-31 Dinar Temirbulatov <dinar@kugelworks.com>
24354 PR rtl-optimization/57268
24355 * sched-deps.c (sched_analyze_2): Flush dependence lists if
24356 the sum of the read and write lists exceeds MAX_PENDING_LIST_LENGTH.
24358 2013-05-31 Eric Botcazou <ebotcazou@adacore.com>
24360 * config/rs6000/predicates.md (rs6000_cbranch_operator): Accept some
24361 unordered comparison operators when -fno-trapping-math is in effect
24363 * config/rs6000/rs6000.c (rs6000_generate_compare): Remove dead code
24364 and implement unordered comparison operators properly on the e500.
24366 2013-05-31 Eric Botcazou <ebotcazou@adacore.com>
24368 * simplify-rtx.c (simplify_byte_swapping_operation): Use proper macro
24369 for constant scalar integers.
24370 (simplify_relational_operation_1): Likewise.
24372 2013-05-31 Segher Boessenkool <segher@kernel.crashing.org>
24374 * config/rs6000/rs6000-opts.h (enum processor_type): Reorder.
24375 * config/rs6000/rs6000.md (cpu): Reorder. Split long line.
24378 2013-05-31 Yuri Rumyantsev <yuri.s.rumyantsev@intel.com>
24379 Igor Zamyatin <igor.zamyatin@intel.com>
24381 Silvermont (SLM) architecture performance tuning.
24382 * config/i386/i386.h (enum ix86_tune_indices): Add
24383 X86_TUNE_SPLIT_MEM_OPND_FOR_FP_CONVERTS.
24384 (TARGET_SPLIT_MEM_OPND_FOR_FP_CONVERTS): New define.
24386 * config/i386/i386.c (initial_ix86_tune_features)
24387 <X86_TUNE_SPLIT_MEM_OPND_FOR_FP_CONVERTS>: Initialize.
24388 (ix86_lea_outperforms): Handle Silvermont tuning.
24389 (ix86_avoid_lea_for_add): Add new argument to ix86_lea_outperforms
24391 (ix86_use_lea_for_mov): Likewise.
24392 (ix86_avoid_lea_for_addr): Likewise.
24393 (ix86_lea_for_add_ok): Likewise.
24394 (exact_dependency_1): New function.
24395 (exact_store_load_dependency): Likewise.
24396 (ix86_adjust_cost): Handle Silvermont tuning.
24397 (do_reoder_for_imul): Likewise.
24398 (swap_top_of_ready_list): New function.
24399 (ix86_sched_reorder): Changed to handle Silvermont tuning.
24401 * config/i386/i386.md (peepholes that split memory operand in fp
24404 2013-05-31 Marcus Shawcroft <marcus.shawcroft@arm.com>
24406 * config/aarch64/aarch64.c (aarch64_load_symref_appropriately):
24407 Remove un-necessary braces.
24409 2013-05-31 Marcus Shawcroft <marcus.shawcroft@arm.com>
24411 * config/aarch64/aarch64.c (aarch64_classify_symbol):
24412 Use SYMBOL_TINY_ABSOLUTE for AARCH64_CMODEL_TINY_PIC.
24414 2013-05-31 Tobias Burnus <burnus@net-b.de>
24416 PR middle-end/57073
24417 * tree-ssa-math-opts.c (execute_cse_sincos): Move check further up.
24419 2013-05-31 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
24422 * config/arm/arm.c (const_ok_for_dimode_op): Handle IOR.
24423 * config/arm/arm.md (*iordi3_insn): Change to insn_and_split.
24424 * config/arm/neon.md (iordi3_neon): Remove.
24425 (neon_vorr<mode>): Generate iordi3 instead of iordi3_neon.
24426 * config/arm/predicates.md (imm_for_neon_logic_operand):
24427 Move to earlier in the file.
24428 (neon_logic_op2): Likewise.
24429 (arm_iordi_operand_neon): New predicate.
24431 2013-05-31 Richard Biener <rguenther@suse.de>
24433 PR tree-optimization/57478
24434 PR tree-optimization/57453
24435 * tree-vect-slp.c (vect_bb_slp_scalar_cost): Uses in PHI nodes
24438 2013-05-31 Kaushik Phatak <kaushik.phatak@kpitcummins.com>
24440 * config/rl78/rl78.md (mulqi3,mulhi3): New define_expands.
24441 (*mulqi3_rl78,*mulhi3_rl78,*mulhi3_g13): New define_insns.
24443 2013-05-30 Tobias Burnus <burnus@net-b.de>
24444 Thomas Koenig <tkoenig@gcc.gnu.org>
24446 PR middle-end/57073
24447 * tree-ssa-math-opts.c (execute_cse_sincos): Optimize
24448 powi (-1.0, k) to (k & 1) ? -1.0 : 1.0.
24450 2013-05-30 Steven Bosscher <steven@gcc.gnu.org>
24452 * rtlanal.c (tablejump_p): Expect table and label to be adjacent.
24454 2013-05-30 Vladimir Makarov <vmakarov@redhat.com>
24456 * target.def (register_usage_leveling_p): New hook.
24457 * targhooks.c (default_register_usage_leveling_p): New.
24458 * targhooks.h (default_register_usage_leveling_p): New prototype.
24459 * lra-assigns.c (register_usage_leveling_p): Use the hook.
24460 * doc/tm.texi.in (TARGET_REGISTER_USAGE_LEVELING_P): New hook.
24461 * doc/tm.texi: Update.
24462 * config/i386/i386.c (TARGET_REGISTER_USAGE_LEVELING_P): Define.
24464 2013-05-30 Ian Bolton <ian.bolton@arm.com>
24466 * config/aarch64/aarch64.md (insv<mode>): New define_expand.
24467 (*insv_reg<mode>): New define_insn.
24469 2013-05-30 Joern Rennecke <joern.rennecke@embecosm.com>
24471 PR rtl-optimization/57439
24472 * postreload.c (move2add_valid_value_p): Check that we have
24473 a zero subreg_regno_offset when accessing the register in
24474 the requested mode.
24476 2013-05-30 Yuri Rumyantsev <yuri.s.rumyantsev@intel.com>
24477 Igor Zamyatin <igor.zamyatin@intel.com>
24479 Silvermont (SLM) architecture pipeline model, tuning and
24481 * config.gcc: Add slm config options and target.
24483 * config/i386/slm.md: New.
24485 * config/i386/driver-i386.c (host_detect_local_cpu): Check movbe.
24487 * config/i386/i386-c.c (ix86_target_macros_internal): New case
24489 (ix86_target_macros_internal): Likewise.
24491 * config/i386/i386.c (slm_cost): New cost.
24492 (m_SLM): New macro flag.
24493 (initial_ix86_tune_features): Set m_SLM.
24494 (x86_accumulate_outgoing_args): Likewise.
24495 (x86_arch_always_fancy_math_387): Likewise.
24496 (processor_target_table): Add slm cost.
24497 (cpu_names): Add slm cpu name.
24498 (x86_option_override_internal): Set SLM ISA.
24499 (ix86_issue_rate): New case PROCESSOR_SLM.
24500 (ia32_multipass_dfa_lookahead): Likewise.
24501 (fold_builtin_cpu): Add slm.
24503 * config/i386/i386.h (TARGET_SLM): New target macro.
24504 (target_cpu_default): Add TARGET_CPU_DEFAULT_slm.
24505 (processor_type): Add PROCESSOR_SLM.
24507 * config/i386/i386.md (cpu): Add new value "slm".
24508 (slm.md): Include slm.md.
24510 2013-05-30 Bernd Schmidt <bernds@codesourcery.com>
24511 Zhenqiang Chen <zhenqiang.chen@linaro.org>
24513 * config/arm/arm-protos.h: Add and update function protos.
24514 * config/arm/arm.c (use_simple_return_p): New added.
24515 (thumb2_expand_return): Check simple_return flag.
24516 * config/arm/arm.md: Add simple_return and conditional simple_return.
24517 * config/arm/iterators.md: Add iterator for return and simple_return.
24519 2013-05-30 Zhenqiang Chen <zhenqiang.chen@linaro.org>
24521 * config/arm/arm.c (arm_add_cfa_adjust_cfa_note): New added.
24522 (arm_emit_multi_reg_pop): Add REG_CFA_ADJUST_CFA notes.
24523 (arm_emit_vfp_multi_reg_pop): Likewise.
24524 (thumb2_emit_ldrd_pop): Likewise.
24525 (arm_expand_epilogue): Add misc REG_CFA notes.
24526 (arm_unwind_emit): Skip REG_CFA_ADJUST_CFA and REG_CFA_RESTORE.
24528 2013-05-29 Lawrence Crowl <crowl@google.com>
24530 * config/arm/t-arm: Update for below.
24532 * config/arm/arm.c (arm_libcall_uses_aapcs_base::libcall_htab):
24533 Change type to hash_table. Update dependent calls and types.
24535 * config/i386/t-cygming: Update for below.
24537 * config/i386/t-interix: Update for below.
24539 * config/i386/winnt.c (i386_pe_section_type_flags::htab):
24540 Change type to hash_table. Update dependent calls and types.
24541 (i386_find_on_wrapper_list::wrappers): Likewise.
24543 * config/ia64/t-ia64: Update for below.
24545 * config/ia64/ia64.c (bundle_state_table):
24546 Change type to hash_table. Update dependent calls and types.
24548 * config/mips/mips.c (mips_reorg_process_insns::htab):
24549 Change type to hash_table. Update dependent calls and types.
24551 * config/sol2.c (solaris_comdat_htab):
24552 Change type to hash_table. Update dependent calls and types.
24554 * config/t-sol2: Update for above.
24556 2013-05-29 Teresa Johnson <tejohnson@google.com>
24558 * passes.c (dump_passes): Use FOR_EACH_FUNCTION since
24559 functions are not yet marked as defined.
24561 2013-05-29 Michael Meissner <meissner@linux.vnet.ibm.com>
24562 Pat Haugen <pthaugen@us.ibm.com>
24563 Peter Bergner <bergner@vnet.ibm.com>
24565 * config/rs6000/vector.md (VEC_I): Add support for new power8 V2DI
24569 (vrotl<mode>3): Likewise.
24570 (vashl<mode>3): Likewise.
24571 (vlshr<mode>3): Likewise.
24572 (vashr<mode>3): Likewise.
24574 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
24575 support for power8 V2DI builtins.
24577 * config/rs6000/rs6000-builtin.def (abs_v2di): Add support for
24578 power8 V2DI builtins.
24579 (vupkhsw): Likewise.
24580 (vupklsw): Likewise.
24581 (vaddudm): Likewise.
24582 (vminsd): Likewise.
24583 (vmaxsd): Likewise.
24584 (vminud): Likewise.
24585 (vmaxud): Likewise.
24586 (vpkudum): Likewise.
24587 (vpksdss): Likewise.
24588 (vpkudus): Likewise.
24589 (vpksdus): Likewise.
24594 (vsubudm): Likewise.
24595 (vcmpequd): Likewise.
24596 (vcmpgtsd): Likewise.
24597 (vcmpgtud): Likewise.
24598 (vcmpequd_p): Likewise.
24599 (vcmpgtsd_p): Likewise.
24600 (vcmpgtud_p): Likewise.
24601 (vupkhsw): Likewise.
24602 (vupklsw): Likewise.
24603 (vaddudm): Likewise.
24604 (vmaxsd): Likewise.
24605 (vmaxud): Likewise.
24606 (vminsd): Likewise.
24607 (vminud): Likewise.
24608 (vpksdss): Likewise.
24609 (vpksdus): Likewise.
24610 (vpkudum): Likewise.
24611 (vpkudus): Likewise.
24616 (vsubudm): Likewise.
24618 * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Add
24619 support for power8 V2DI instructions.
24621 * config/rs6000/altivec.md (UNSPEC_VPKUHUM): Add support for
24622 power8 V2DI instructions. Combine pack and unpack insns to use an
24623 iterator for each mode. Check whether a particular mode supports
24624 Altivec instructions instead of just checking TARGET_ALTIVEC.
24625 (UNSPEC_VPKUWUM): Likewise.
24626 (UNSPEC_VPKSHSS): Likewise.
24627 (UNSPEC_VPKSWSS): Likewise.
24628 (UNSPEC_VPKUHUS): Likewise.
24629 (UNSPEC_VPKSHUS): Likewise.
24630 (UNSPEC_VPKUWUS): Likewise.
24631 (UNSPEC_VPKSWUS): Likewise.
24632 (UNSPEC_VPACK_SIGN_SIGN_SAT): Likewise.
24633 (UNSPEC_VPACK_SIGN_UNS_SAT): Likewise.
24634 (UNSPEC_VPACK_UNS_UNS_SAT): Likewise.
24635 (UNSPEC_VPACK_UNS_UNS_MOD): Likewise.
24636 (UNSPEC_VUPKHSB): Likewise.
24637 (UNSPEC_VUNPACK_HI_SIGN): Likewise.
24638 (UNSPEC_VUNPACK_LO_SIGN): Likewise.
24639 (UNSPEC_VUPKHSH): Likewise.
24640 (UNSPEC_VUPKLSB): Likewise.
24641 (UNSPEC_VUPKLSH): Likewise.
24643 (VI_char): Likewise.
24644 (VI_scalar): Likewise.
24645 (VI_unit): Likewise.
24647 (VP_small): Likewise.
24648 (VP_small_lc): Likewise.
24649 (VU_char): Likewise.
24650 (add<mode>3): Likewise.
24651 (altivec_vaddcuw): Likewise.
24652 (altivec_vaddu<VI_char>s): Likewise.
24653 (altivec_vadds<VI_char>s): Likewise.
24654 (sub<mode>3): Likewise.
24655 (altivec_vsubcuw): Likewise.
24656 (altivec_vsubu<VI_char>s): Likewise.
24657 (altivec_vsubs<VI_char>s): Likewise.
24658 (altivec_vavgs<VI_char>): Likewise.
24659 (altivec_vcmpbfp): Likewise.
24660 (altivec_eq<mode>): Likewise.
24661 (altivec_gt<mode>): Likewise.
24662 (altivec_gtu<mode>): Likewise.
24663 (umax<mode>3): Likewise.
24664 (smax<mode>3): Likewise.
24665 (umin<mode>3): Likewise.
24666 (smin<mode>3): Likewise.
24667 (altivec_vpkuhum): Likewise.
24668 (altivec_vpkuwum): Likewise.
24669 (altivec_vpkshss): Likewise.
24670 (altivec_vpkswss): Likewise.
24671 (altivec_vpkuhus): Likewise.
24672 (altivec_vpkshus): Likewise.
24673 (altivec_vpkuwus): Likewise.
24674 (altivec_vpkswus): Likewise.
24675 (altivec_vpks<VI_char>ss): Likewise.
24676 (altivec_vpks<VI_char>us): Likewise.
24677 (altivec_vpku<VI_char>us): Likewise.
24678 (altivec_vpku<VI_char>um): Likewise.
24679 (altivec_vrl<VI_char>): Likewise.
24680 (altivec_vsl<VI_char>): Likewise.
24681 (altivec_vsr<VI_char>): Likewise.
24682 (altivec_vsra<VI_char>): Likewise.
24683 (altivec_vsldoi_<mode>): Likewise.
24684 (altivec_vupkhsb): Likewise.
24685 (altivec_vupkhs<VU_char>): Likewise.
24686 (altivec_vupkls<VU_char>): Likewise.
24687 (altivec_vupkhsh): Likewise.
24688 (altivec_vupklsb): Likewise.
24689 (altivec_vupklsh): Likewise.
24690 (altivec_vcmpequ<VI_char>_p): Likewise.
24691 (altivec_vcmpgts<VI_char>_p): Likewise.
24692 (altivec_vcmpgtu<VI_char>_p): Likewise.
24693 (abs<mode>2): Likewise.
24694 (vec_unpacks_hi_v16qi): Likewise.
24695 (vec_unpacks_hi_v8hi): Likewise.
24696 (vec_unpacks_lo_v16qi): Likewise.
24697 (vec_unpacks_hi_<VP_small_lc>): Likewise.
24698 (vec_unpacks_lo_v8hi): Likewise.
24699 (vec_unpacks_lo_<VP_small_lc>): Likewise.
24700 (vec_pack_trunc_v8h): Likewise.
24701 (vec_pack_trunc_v4si): Likewise.
24702 (vec_pack_trunc_<mode>): Likewise.
24704 * config/rs6000/altivec.h (vec_vaddudm): Add defines for power8
24706 (vec_vmaxsd): Likewise.
24707 (vec_vmaxud): Likewise.
24708 (vec_vminsd): Likewise.
24709 (vec_vminud): Likewise.
24710 (vec_vpksdss): Likewise.
24711 (vec_vpksdus): Likewise.
24712 (vec_vpkudum): Likewise.
24713 (vec_vpkudus): Likewise.
24714 (vec_vrld): Likewise.
24715 (vec_vsld): Likewise.
24716 (vec_vsrad): Likewise.
24717 (vec_vsrd): Likewise.
24718 (vec_vsubudm): Likewise.
24719 (vec_vupkhsw): Likewise.
24720 (vec_vupklsw): Likewise.
24722 2013-05-29 Jan Hubicka <jh@suse.cz>
24724 * cgraph.h (symtab_node_base): Add definition, alias and analyzed
24725 flags; reorder rest of fields in more consistent way.
24726 (varpool_node): Remove analyzed, finalized and alias.
24727 (cgraph_ndoe): Likewise.
24728 (symtab_alias_ultimate_target): New function.
24729 (cgraph_function_node): Move offline.
24730 (cgraph_reset_node): Declare.
24731 (cgraph_comdat_can_be_unshared_p): Remove.
24732 (varpool_remove_initializer): Declare.
24733 (varpool_first_defined_variable, varpool_next_defined_variable
24734 cgraph_first_defined_function, cgraph_next_defined_function): Update.
24735 (cgraph_function_with_gimple_body_p): Update.
24736 (varpool_all_refs_explicit_p): Update.
24737 (symtab_alias_target): New function.
24738 (cgraph_alias_aliased_node, varpool_alias_aliased_node): Rename to ...
24739 (cgraph_alias_target, varpool_alias_target): .. this one; simplify.
24740 (cgraph_function_or_thunk_node): Simplify using
24741 symtab_alias_ultimate_target.
24742 (varpool_variable_node): Likewise.
24743 * cgraph.c (cgraph_create_function_alias): Update.
24744 (cgraph_add_thunk): Update.
24745 (cgraph_remove_node): Update.
24746 (dump_cgraph_node): Do not dump removed flags.
24747 (cgraph_function_body_availability): Update.
24748 (cgraph_propagate_frequency): Update.
24749 (verify_cgraph_node): Check sanity of local flag.
24750 (cgraph_function_node): Move here from cgraph.h; revamp for
24751 cgraph_function_or_thunk_node.
24752 * lto-symtab.c (lto_varpool_replace_node): Update.
24753 (lto_symtab_resolve_can_prevail_p): Update.
24754 (lto_symtab_merge_cgraph_nodes): Update.
24755 * ipa-cp.c (determine_versionability, initialize_node_lattices,
24756 propagate_constants_accross_call, devirtualization_time_bonus,
24757 ipcp_propagate_stage): Update.
24758 * tree-emutls.c (create_emultls_var, ipa_lower_emutls): Update.
24759 * ipa-inline-transform.c (clone_inlined_nodes,
24760 preserve_function_body_p): Update.
24761 * ipa-reference.c (propagate): Update.
24762 (write_node_summary_p): Update.
24763 * toplev.c (wrapup_global_declaration_2): Update.
24764 * cgraphunit.c (cgraph_analyze_function): Rename to ...
24765 (analyze_function) ... this one.
24766 (cgraph_process_new_functions): Update.
24767 (cgraph_reset_node): Export.
24768 (cgraph_finalize_function): Update.
24769 (cgraph_add_new_function): Update.
24770 (process_function_and_variable_attributes): Update.
24771 (varpool_finalize_decl): Update.
24772 (symbol_finalized): Remove.
24773 (symbol_finalized_and_needed): Rename to ...
24774 (symbol_defined_and_needed): ... update.
24775 (cgraph_analyze_functions): Update.
24776 (handle_alias_pairs): Update.
24777 (mark_functions_to_output): Update.
24778 (assemble_thunk): Update.
24779 (output_in_order): Update.
24780 (output_weakrefs): Update.
24781 (finalize_compilation_unit): Update.
24782 * lto-cgraph.c (reachable_from_other_partition_p, lto_output_node,
24783 lto_output_varpool_node, compute_ltrans_boundary, input_overwrite_node,
24784 input_node, input_varpool_node): Update.
24785 * dbxout.c (dbxout_expand_expr): Update.
24786 * cgraphclones.c (cgraph_clone_node): Update.
24787 (cgraph_copy_node_for_versioning): Update.
24788 (cgraph_materialize_clone): Update.
24789 (cgraph_materialize_all_clones): Update.
24790 * ipa-pure-const.c (analyze_function, pure_const_write_summary,
24791 propagate_pure_const, propagate_nothrow): Update.
24792 * lto-streamer-out.c (lto_output, write_symbol): Update.
24793 * ipa-utils.c (ipa_reverse_postorder): Update.
24794 * ipa-inline.c (can_inline_edge_p): Update.
24795 (update_caller_keys, ipa_inline): Update.
24796 * dwarf2out.c (reference_to_unused,
24797 premark_types_used_by_global_vars_helper): Update.
24798 * tree-eh.c (tree_could_trap_p): Update.
24799 * ipa-split.c (consider_split, execute_split_functions): Update.
24800 * ipa.c (cgraph_non_local_node_p_1, cgraph_local_node_p,
24801 has_addr_references_p): Update; move ahead in file for better
24803 (process_references): Simplify.
24804 (symtab_remove_unreachable_nodes): Update; cleanup way function/var
24805 bodies are removed.
24806 (cgraph_comdat_can_be_unshared_p): Make static.
24807 (cgraph_externally_visible_p): Update.
24808 (varpool_externally_visible_p): Update.
24809 (function_and_variable_visibility): Update.
24810 * trans-mem.c (get_cg_data, ipa_tm_mayenterirr_function,
24811 ipa_tm_mark_force_output_node): Update.
24812 * ipa-inline-analysis.c (dump_inline_summary, initialize_inline_failed,
24813 estimate_edge_devirt_benefit, inline_generate_summary,
24814 inline_write_summary): Update.
24815 * gimple-fold.c (can_refer_decl_in_current_unit_p): Update.
24816 * ipa-prop.c (ipa_compute_jump_functions): Update.
24817 (ipa_print_node_params, ipa_prop_read_section,
24818 ipa_update_after_lto_read, read_replacements_section): Update.
24819 * varasm.c (mark_decl_referenced): Update.
24820 (assemble_alias, dump_tm_clone_pairs): Update.
24821 * tree-inline.c (copy_bb): Update.
24822 (estimate_num_insns, optimize_inline_calls, tree_function_versioning):
24824 * symtab.c (dump_symtab_base): Print new flags.
24825 (verify_symtab_base): Verify new flags.
24826 (symtab_alias_ultimate_target): New function.
24827 * tree-ssa-structalias.c (get_constraint_for_ssa_var,
24828 create_variable_info_for, associate_varinfo_to_alias, ipa_pta_execute):
24830 * passes.c (ipa_write_summaries, ipa_write_optimization_summaries):
24832 * i386.c (ix86_get_function_versions_dispatcher,
24833 ix86_generate_version_dispatcher_body): Update.
24834 (fold_builtin_cpu): Use varpool_add_new_variable.
24835 * varpool.c (varpool_remove_initializer): Break out from ...
24836 (varpool_remove_node): ... this one.
24837 (dump_varpool_node, varpool_node_for_asm,
24838 cgraph_variable_initializer_availability, varpool_analyze_node,
24839 varpool_assemble_decl, varpool_remove_unreferenced_decls,
24840 varpool_finalize_named_section_flags, varpool_create_variable_alias):
24843 2013-05-29 Jan Hubicka <jh@suse.cz>
24845 * passes.c (init_optimization_passes): Move OMP expansion into lowering.
24847 2013-05-29 Easwaran Raman <eraman@google.com>
24849 PR tree-optimization/57442
24850 * tree-ssa-reassoc.c (appears_later_in_bb): Return correct value
24851 when control exits the main loop.
24853 2013-05-29 Sandeep Kumar Singh <Sandeep.Singh2@kpitcummins.com>
24855 * rx/rx.h (TARGET_CPU_CPP_BUILTINS): Add macros for RX100, RX200,
24857 * rx/rx.opt: Add macro for rx100 with string rx100 and value RX100.
24858 * rx/rx-opts.h (rx_cpu_types): Add new cpu type rx100.
24859 * rx/t-rx: Add rx100 under multi library matches option for nofpu
24862 2013-05-29 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
24864 PR tree-optimization/57441
24865 * gimple-ssa-strength-reduction.c (analyze_candidates_and_replace):
24866 Don't limit size of incr_vec to number of candidates.
24868 2013-05-29 Steve Ellcey <sellcey@imgtec.com>
24870 * config/mips/mti-linux.h (SYSROOT_SUFFIX_SPEC): Add micromips
24871 and mips16 directories.
24872 * config/mips/t-mti-linux (MULTILIB_OPTIONS): Add micromips and mips16.
24873 (MULTILIB_DIRNAMES): Ditto.
24874 (MULTILIB_EXCEPTIONS): Add new exceptions.
24875 * config/mips/t-mti-elf (MULTILIB_OPTIONS): Add micromips.
24876 (MULTILIB_DIRNAMES): Ditto.
24877 (MULTILIB_EXCEPTIONS): Add new exceptions.
24879 2012-05-29 Chris Schlumberger-Socha <chris.schlumberger-socha@arm.com>
24880 Marcus Shawcroft <marcus.shawcroft@arm.com>
24882 * config/aarch64/aarch64-protos.h (aarch64_symbol_type): Define
24883 SYMBOL_TINY_ABSOLUTE.
24884 * config/aarch64/aarch64.c (aarch64_load_symref_appropriately): Handle
24885 SYMBOL_TINY_ABSOLUTE.
24886 (aarch64_expand_mov_immediate): Likewise.
24887 (aarch64_classify_symbol): Likewise.
24888 (aarch64_mov_operand_p): Remove ATTRIBUTE_UNUSED.
24889 Permit SYMBOL_TINY_ABSOLUTE.
24890 * config/aarch64/predicates.md (aarch64_mov_operand): Permit CONST.
24892 2013-05-29 Chris Schlumberger-Socha <chris.schlumberger-socha@arm.com>
24893 Marcus Shawcroft <marcus.shawcroft@arm.com>
24895 * config/aarch64/aarch64.c (aarch64_classify_symbol): Remove comment.
24896 Refactor if/switch. Replace gcc_assert with if.
24898 2013-05-29 Ganesh Gopalasubramanian <Ganesh.Gopalasubramanian@amd.com>
24900 * config/i386/i386.c (initial_ix86_tune_features): Enable
24901 FP Reassociation for AMD bdver1 and bdver2.
24903 2013-05-29 Martin Jambor <mjambor@suse.cz>
24905 * tree-cfg.c (verify_expr): Verify that BIT_FIELD_REF, REALPART_EXPR
24906 and IMAGPART_EXPR do not occur within other handled_components.
24908 2013-05-29 Richard Biener <rguenther@suse.de>
24910 * tree-vect-slp.c (vect_bb_slp_scalar_cost): Guard vinfo
24911 access on whether the use is in the BB we currently try to
24913 (vect_bb_vectorization_profitable_p): Pass the BB we currently
24914 vectorize to vect_bb_slp_scalar_cost.
24916 2013-05-29 Richard Biener <rguenther@suse.de>
24918 * tree-vect-slp.c (vect_bb_slp_scalar_cost): New function
24919 computing scalar cost offsetted by stmts that are kept live
24921 (vect_bb_vectorization_profitable_p): Use vect_bb_slp_scalar_cost
24922 for computation of scalar cost.
24924 2013-05-28 Steve Ellcey <sellcey@mips.com>
24926 * config/mips/mips-cpus.def (mips32r2): Change processor type.
24928 2013-05-28 Balaji V. Iyer <balaji.v.iyer@intel.com>
24930 * doc/extend.texi (C Extensions): Added documentation about Cilk Plus
24931 array notation built-in reduction functions.
24932 * doc/passes.texi (Passes): Added documentation about changes done
24934 * doc/invoke.texi (C Dialect Options): Added documentation about
24935 the -fcilkplus flag.
24936 * Makefile.in (C_COMMON_OBJS): Added c-family/array-notation-common.o.
24937 (BUILTINS_DEF): Depend on cilkplus.def.
24938 * builtins.def: Include cilkplus.def. Define DEF_CILKPLUS_BUILTIN.
24939 * builtin-types.def: Define BT_FN_INT_PTR_PTR_PTR.
24940 * cilkplus.def: New file.
24942 2013-05-28 Joern Rennecke <joern.rennecke@embecosm.com>
24944 PR rtl-optimization/57439
24945 * postreload.c (move2add_use_add2_insn): Use gen_lowpart_common.
24947 2013-05-28 Easwaran Raman <eraman@google.com>
24949 PR tree-optimization/57337
24950 * tree-ssa-reassoc.c (appears_later_in_bb): New function.
24951 (find_insert_point): Correctly identify the insertion point
24952 when two statements with the same UID is compared.
24954 2013-05-28 Richard Biener <rguenther@suse.de>
24956 PR tree-optimization/56787
24957 * tree-vect-data-refs.c (vect_analyze_data_refs): Drop clobbers
24958 from the list of data references.
24959 * tree-vect-loop.c (vect_determine_vectorization_factor): Skip
24961 (vect_analyze_loop_operations): Likewise.
24962 (vect_transform_loop): Remove clobbers.
24964 2013-05-28 Martin Jambor <mjambor@suse.cz>
24966 * tree-cfg.c (verify_expr): Verify that BIT_FIELD_REFs, IMAGPART_EXPRs
24967 and REALPART_EXPRs have scalar type.
24969 2013-05-28 Richard Biener <rguenther@suse.de>
24971 PR tree-optimization/57411
24972 * tree-ssa-copy.c (may_propagate_copy): Cannot propagate
24974 * tree-ssa-dom.c (eliminate_const_or_copy): Special-case
24975 virtual operand propagation.
24977 2013-05-28 Eric Botcazou <ebotcazou@adacore.com>
24979 * config/sparc/sparc.c (sparc_expand_vec_perm_bmask): Use %g0 as
24980 destination register for bmasksi_vis.
24981 (vector_init_bshuffle): Likewise.
24982 * config/sparc/sparc.md (vec_perm_constv8qi): Likewise.
24984 2013-05-28 Eric Botcazou <ebotcazou@adacore.com>
24986 * doc/invoke.texi (SPARC Options): Document -mfix-ut699.
24987 * builtins.c (expand_builtin_mathfn) <BUILT_IN_SQRT>: Try to widen the
24988 mode if the instruction isn't available in the original mode.
24989 * config/sparc/sparc.opt (mfix-ut699): New option.
24990 * config/sparc/sparc.md (muldf3_extend): Disable if -mfix-ut699.
24991 (divdf3): Turn into expander.
24992 (divdf3_nofix): New insn.
24993 (divdf3_fix): Likewise.
24994 (divsf3): Disable if -mfix-ut699.
24995 (sqrtdf2): Turn into expander.
24996 (sqrtdf2_nofix): New insn.
24997 (sqrtdf2_fix): Likewise.
24998 (sqrtsf2): Disable if -mfix-ut699.
25000 2013-05-27 Richard Biener <rguenther@suse.de>
25002 PR middle-end/57412
25003 * omp-low.c (expand_omp_atomic_pipeline): Use the correct latch
25004 block for the new loop.
25006 2013-05-27 Richard Biener <rguenther@suse.de>
25008 PR tree-optimization/57343
25009 * tree-ssa-loop-niter.c (number_of_iterations_ne_max): Do not
25010 use multiple_of_p if not TYPE_OVERFLOW_UNDEFINED.
25011 (number_of_iterations_cond): Do not build the folded tree.
25013 2013-05-27 Richard Biener <rguenther@suse.de>
25016 PR middle-end/57381
25017 * fold-const.c (operand_equal_p): Compare FIELD_DECLs with
25018 OEP_CONSTANT_ADDRESS_OF retained.
25020 PR tree-optimization/57417
25021 * tree-ssa-sccvn.c (vn_reference_fold_indirect): Fix test
25022 for unchanged base.
25023 (set_ssa_val_to): Compare addresses using
25024 get_addr_base_and_unit_offset.
25026 2013-05-27 Joern Rennecke <joern.rennecke@embecosm.com>
25028 PR rtl-optimization/56833
25029 * postreload.c (move2add_record_mode): New function.
25030 (move2add_record_sym_value, move2add_valid_value_p): Likewise.
25031 (move2add_use_add2_insn): Use move2add_record_sym_value.
25032 (move2add_use_add3_insn): Likewise.
25033 (reload_cse_move2add): Use move2add_valid_value_p and
25034 move2add_record_mode. Invalidate call-clobbered and REG_INC
25035 affected regs by setting reg_mode to VOIDmode.
25036 (move2add_note_store): Don't pretend the inside of a SUBREG is
25037 the actual destination. Invalidate single/leading registers by
25038 setting reg_mode to VOIDmode.
25039 Use move2add_record_sym_value, move2add_valid_value_p and
25040 move2add_record_mode.
25042 2013-05-27 Richard Biener <rguenther@suse.de>
25044 PR tree-optimization/57396
25045 * tree-affine.c (double_int_constant_multiple_p): Properly
25046 return false for val == 0 and div != 0.
25048 2013-05-25 Richard Sandiford <rdsandiford@googlemail.com>
25050 * config/mips/mips.h: Use #elif in preprocessor conditions.
25052 2013-05-25 Richard Sandiford <rdsandiford@googlemail.com>
25055 * config/mips/constraints.md (kl): New constraint.
25056 * config/mips/mips.md (divmod<mode>4, udivmod<mode>4): Delete.
25057 (divmod<mode>4_internal): Rename to divmod<mode>4. Use "kl" as the
25058 constraint for operand 0. Split after CSE for MIPS16. Emit a move
25059 from LO for MIPS16.
25060 (udivmod<mode>4_internal): Likewise udivmod<mode>4.
25062 2013-05-25 Richard Sandiford <rdsandiford@googlemail.com>
25065 * config/mips/mips.c (mips_can_inline_p): New function.
25066 (TARGET_CAN_INLINE_P): Define.
25068 2013-05-25 Steven Bosscher <steven@gcc.gnu.org>
25070 * sched-int.h (ds_t, dw_t): Make unsigned int.
25071 Fix documentation that describes how all the ds_t bits are used.
25072 Reserve the last bit for delayed-branch scheduling.
25073 (BITS_PER_DEP_STATUS): Move to ds_t typedef.
25074 (BITS_PER_DEP_WEAK): Fix definition and documentation.
25075 (gen_dep_weak_1): Remove prototype.
25076 * sched-deps.c (get_dep_weak_1): Make static.
25077 * target.def (speculate_insn, needs_block_p, gen_spec_check,
25078 get_insn_spec_ds, get_insn_checked_ds): Adjust hook prototypes.
25079 * doc/tm.texi: Regenerate.
25080 * config/ia64/ia64.c (ia64_needs_block_p): Update prototype.
25082 2013-05-24 Steven Bosscher <steven@gcc.gnu.org>
25085 * haifa-sched.c (sched_extend_bb): Ignore DEBUG_INSNs.
25087 2013-05-24 Nathan Sidwell <nathan@codesourcery.com>
25088 Sandra Loosemore <sandra@codesourcery.com>
25090 * config.gcc (powerpc-*): Allow native for with-cpu.
25092 2013-05-24 Jeff Law <law@redhat.com>
25094 PR tree-optimization/57124
25095 * tree-vrp.c (simplify_cond_using_ranges): Only simplify a
25096 conversion feeding a condition if the range has an overflow
25097 if -fstrict-overflow. Add warnings for when we do make the
25100 2013-05-24 Dehao Chen <dehao@google.com>
25102 * tree-cfg.c (locus_discrim_map): Fix the typo.
25103 (locus_discrim_hasher): Likewise.
25104 (locus_discrim_hasher::hash): Likewise.
25105 (locus_discrim_hasher::equal): Likewise.
25107 2013-05-24 Martin Jambor <mjambor@suse.cz>
25109 PR tree-optimization/57294
25110 * cgraph.h (ipa_record_stmt_references): Declare.
25111 * cgraphbuild.c (ipa_record_stmt_references): New function.
25112 (build_cgraph_edges): Use ipa_record_stmt_references.
25113 (rebuild_cgraph_edges): Likewise.
25114 (cgraph_rebuild_references): Likewise.
25115 * ipa-prop.c (ipa_modify_call_arguments): Discard references
25116 associated with the old statement and build references from the
25117 newly built statements.
25118 * ipa-ref.c (ipa_remove_stmt_references): New function.
25119 * ipa-ref.h (ipa_remove_stmt_references): Declare.
25121 2013-05-24 Vladimir Makarov <vmakarov@redhat.com>
25123 * lra-constraints.c (emit_spill_move): Use smaller mode for
25125 (check_and_process_move): Consider mem-reg moves for secondary
25127 (curr_insn_transform): Don't lose insns emitted before for
25128 secondary memory moves.
25129 (inherit_in_ebb): Mark defined reg. Add usage only if it is not a
25130 reg set up in the current insn.
25132 2013-05-24 Dehao Chen <dehao@google.com>
25134 * tree-cfg.c (locus_descrim_hasher::hash): Change discriminator
25136 (locus_descrim_hasher::equal): Likewise.
25137 (build_gimple_cfg): New discriminator assignment algorithm.
25138 (make_edges): Likewise.
25139 (next_discriminator_for_locus): Likewise.
25140 (same_line_p): Likewise.
25141 (assign_discriminators): Likewise.
25142 (make_cond_expr_edges): Likewise.
25143 (make_gimple_switch_edges): Likewise.
25144 (make_goto_expr_edges): Likewise.
25145 (make_gimple_asm_edges): Likewise.
25147 2013-05-24 Ian Bolton <ian.bolton@arm.com>
25149 * config/aarch64/aarch64.c (aarch64_print_operand): Change the
25150 X format specifier to only display bottom 16 bits.
25151 * config/aarch64/aarch64.md (insv_imm<mode>): Allow any size of
25152 immediate to match for operand 2, since it will be masked.
25154 2013-05-24 Richard Biener <rguenther@suse.de>
25156 PR tree-optimization/57287
25157 * tree-ssa-uninit.c (compute_uninit_opnds_pos): Disregard
25158 all SSA names that occur in abnormal PHIs.
25160 2013-05-24 Alexander Ivchenko <alexander.ivchenko@intel.com>
25163 * tree-ssa-sccvn.c (fully_constant_vn_reference_p): Check
25164 that index is not negative.
25166 2013-05-24 Eric Botcazou <ebotcazou@adacore.com>
25168 PR rtl-optimization/55177
25169 * simplify-rtx.c (simplify_unary_operation_1) <NOT>: Deal with BSWAP.
25170 (simplify_byte_swapping_operation): New.
25171 (simplify_binary_operation_1): Call it for AND, IOR and XOR.
25172 (simplify_relational_operation_1): Deal with BSWAP.
25174 2013-05-23 Richard Henderson <rth@redhat.com>
25177 * config/i386/i386.c (ix86_seh_fixup_eh_fallthru): New.
25178 (ix86_reorg): Call it.
25180 2013-05-23 Uros Bizjak <ubizjak@gmail.com>
25183 * config/alpha/alpha.md (unspec): Add UNSPEC_XFLT_COMPARE.
25184 * config/alpha/alpha.c (alpha_emit_xfloating_compare): Construct
25185 REG_EQUAL note as UNSPEC_XFLT_COMPARE unspec.
25187 2013-05-23 Christian Bruel <christian.bruel@st.com>
25190 * config/arm/arm.c (arm_dwarf_register_span): Do not use dbx number.
25192 2013-05-23 Chris Schlumberger-Socha <chris.schlumberger-socha@arm.com>
25193 Marcus Shawcroft <marcus.shawcroft@arm.com>
25195 * config/aarch64/aarch64.md (*movdi_aarch64): Replace Usa with S.
25196 * config/aarch64/constraints.md (Usa): Remove.
25197 * doc/md.texi (AArch64 Usa): Remove.
25199 2013-05-23 Chris Schlumberger-Socha <chris.schlumberger-socha@arm.com>
25200 Marcus Shawcroft <marcus.shawcroft@arm.com>
25202 * config/aarch64/aarch64-protos.h (aarch64_mov_operand_p): Define.
25203 * config/aarch64/aarch64.c (aarch64_mov_operand_p): Define.
25204 * config/aarch64/predicates.md (aarch64_const_address): Remove.
25205 (aarch64_mov_operand): Use aarch64_mov_operand_p.
25207 2013-05-23 Vidya Praveen <vidyapraveen@arm.com>
25209 * config/aarch64/aarch64-simd.md (clzv4si2): Support for CLZ
25210 instruction (AdvSIMD).
25211 * config/aarch64/aarch64-builtins.c
25212 (aarch64_builtin_vectorized_function): Handler for BUILT_IN_CLZ.
25213 * config/aarch64/aarch-simd-builtins.def: Entry for CLZ.
25215 2013-05-23 Martin Jambor <mjambor@suse.cz>
25217 PR middle-end/57347
25218 * tree.h (contains_bitfld_component_ref_p): Declare.
25219 * tree-sra.c (contains_bitfld_comp_ref_p): Move...
25220 * tree.c (contains_bitfld_component_ref_p): ...here. Adjust its
25222 * ipa-prop.c (determine_known_aggregate_parts): Check that LHS does
25223 not access a bit-field. Assert all final offsets are byte-aligned.
25225 2013-05-23 Richard Biener <rguenther@suse.de>
25227 PR tree-optimization/57380
25228 * tree-ssa-phiprop.c (propagate_with_phi): Do not require at
25229 least one invariant or re-used load.
25230 * passes.c (init_optimization_passes): Move pass_phiprop before
25233 2013-05-23 James Greenhalgh <james.greenhalgh@arm.com>
25235 * config/aarch64/aarch64-simd.md
25236 (aarch64_cm<optab>di): Add clobber of CC_REGNUM to unsplit pattern.
25238 2013-05-23 Richard Biener <rguenther@suse.de>
25240 PR middle-end/57381
25241 * fold-const.c (operand_equal_p): Compare FIELD_DECLs with
25242 OEP_CONSTANT_ADDRESS_OF retained.
25244 2013-05-23 Jakub Jelinek <jakub@redhat.com>
25246 PR middle-end/57344
25247 * expmed.c (store_split_bit_field): If op0 is a REG or SUBREG of a REG,
25248 don't lower unit. Handle unit not being always BITS_PER_WORD.
25250 2013-05-23 Richard Biener <rguenther@suse.de>
25252 PR rtl-optimization/57341
25253 * ira.c (validate_equiv_mem_from_store): Use anti_dependence
25254 instead of true_dependence.
25256 2013-05-22 David Malcolm <dmalcolm@redhat.com>
25258 * bb-reorder.c (branch_threshold): Make const.
25259 (exec_threshold): Ditto.
25261 2013-05-22 Michael Meissner <meissner@linux.vnet.ibm.com>
25262 Pat Haugen <pthaugen@us.ibm.com>
25263 Peter Bergner <bergner@vnet.ibm.com>
25265 * doc/extend.texi (PowerPC AltiVec/VSX Built-in Functions): Add
25266 documentation for the power8 crypto builtins.
25268 * config/rs6000/t-rs6000 (MD_INCLUDES): Add crypto.md.
25270 * config/rs6000/rs6000-builtin.def (BU_P8V_AV_1): Add support
25271 macros for defining power8 builtin functions.
25272 (BU_P8V_AV_2): Likewise.
25273 (BU_P8V_AV_P): Likewise.
25274 (BU_P8V_VSX_1): Likewise.
25275 (BU_P8V_OVERLOAD_1): Likewise.
25276 (BU_P8V_OVERLOAD_2): Likewise.
25277 (BU_CRYPTO_1): Likewise.
25278 (BU_CRYPTO_2): Likewise.
25279 (BU_CRYPTO_3): Likewise.
25280 (BU_CRYPTO_OVERLOAD_1): Likewise.
25281 (BU_CRYPTO_OVERLOAD_2): Likewise.
25282 (XSCVSPDP): Fix typo, point to the correct instruction.
25283 (VCIPHER): Add power8 crypto builtins.
25284 (VCIPHERLAST): Likewise.
25285 (VNCIPHER): Likewise.
25286 (VNCIPHERLAST): Likewise.
25287 (VPMSUMB): Likewise.
25288 (VPMSUMH): Likewise.
25289 (VPMSUMW): Likewise.
25290 (VPERMXOR_V2DI): Likewise.
25291 (VPERMXOR_V4SI: Likewise.
25292 (VPERMXOR_V8HI: Likewise.
25293 (VPERMXOR_V16QI: Likewise.
25294 (VSHASIGMAW): Likewise.
25295 (VSHASIGMAD): Likewise.
25296 (VPMSUM): Likewise.
25297 (VPERMXOR): Likewise.
25298 (VSHASIGMA): Likewise.
25300 * config/rs6000/rs6000-c.c (rs6000_target_modify_macros): Define
25301 __CRYPTO__ if the crypto instructions are available.
25302 (altivec_overloaded_builtins): Add support for overloaded power8
25305 * config/rs6000/rs6000.c (rs6000_expand_ternop_builtin): Add
25306 support for power8 crypto builtins.
25307 (builtin_function_type): Likewise.
25308 (altivec_init_builtins): Add support for builtins that take vector
25309 long long (V2DI) arguments.
25311 * config/rs6000/crypto.md: New file, define power8 crypto
25314 2013-05-22 Michael Meissner <meissner@linux.vnet.ibm.com>
25315 Pat Haugen <pthaugen@us.ibm.com>
25316 Peter Bergner <bergner@vnet.ibm.com>
25318 * doc/invoke.texi (Option Summary): Add power8 options.
25319 (RS/6000 and PowerPC Options): Likewise.
25321 * doc/md.texi (PowerPC and IBM RS6000 constraints): Update to use
25322 constraints.md instead of rs6000.h. Reorder w* constraints. Add
25323 wm, wn, wr documentation.
25325 * config/rs6000/constraints.md (wm): New constraint for VSX
25326 registers if direct move instructions are enabled.
25327 (wn): New constraint for no registers.
25328 (wq): New constraint for quad word even GPR registers.
25329 (wr): New constraint if 64-bit instructions are enabled.
25330 (wv): New constraint if power8 vector instructions are enabled.
25331 (wQ): New constraint for quad word memory locations.
25333 * config/rs6000/predicates.md (const_0_to_15_operand): New
25334 constraint for 0..15 for crypto instructions.
25335 (gpc_reg_operand): If VSX allow registers in VSX registers as well
25336 as GPR and floating point registers.
25337 (int_reg_operand): New predicate to match only GPR registers.
25338 (base_reg_operand): New predicate to match base registers.
25339 (quad_int_reg_operand): New predicate to match even GPR registers
25340 for quad memory operations.
25341 (vsx_reg_or_cint_operand): New predicate to allow vector logical
25342 operations in both GPR and VSX registers.
25343 (quad_memory_operand): New predicate for quad memory operations.
25344 (reg_or_indexed_operand): New predicate for direct move support.
25346 * config/rs6000/rs6000-cpus.def (ISA_2_5_MASKS_EMBEDDED):
25347 Inherit from ISA_2_4_MASKS, not ISA_2_2_MASKS.
25348 (ISA_2_7_MASKS_SERVER): New mask for ISA 2.07 (i.e. power8).
25349 (POWERPC_MASKS): Add power8 options.
25350 (power8 cpu): Use ISA_2_7_MASKS_SERVER instead of specifying the
25353 * config/rs6000/rs6000-c.c (rs6000_target_modify_macros):
25354 Define _ARCH_PWR8 and __POWER8_VECTOR__ for power8.
25356 * config/rs6000/rs6000.opt (-mvsx-timode): Add documentation.
25357 (-mpower8-fusion): New power8 options.
25358 (-mpower8-fusion-sign): Likewise.
25359 (-mpower8-vector): Likewise.
25360 (-mcrypto): Likewise.
25361 (-mdirect-move): Likewise.
25362 (-mquad-memory): Likewise.
25364 * config/rs6000/rs6000.c (power8_cost): Initial definition for power8.
25365 (rs6000_hard_regno_mode_ok): Make PTImode only match even GPR
25367 (rs6000_debug_reg_print): Print the base register class if -mdebug=reg.
25368 (rs6000_debug_vector_unit): Add p8_vector.
25369 (rs6000_debug_reg_global): If -mdebug=reg, print power8 constraint
25370 definitions. Also print fusion state.
25371 (rs6000_init_hard_regno_mode_ok): Set up power8 constraints.
25372 (rs6000_builtin_mask_calculate): Add power8 builtin support.
25373 (rs6000_option_override_internal): Add support for power8.
25374 (rs6000_common_init_builtins): Add debugging for skipped builtins
25375 if -mdebug=builtin.
25376 (rs6000_adjust_cost): Add power8 support.
25377 (rs6000_issue_rate): Likewise.
25378 (insn_must_be_first_in_group): Likewise.
25379 (insn_must_be_last_in_group): Likewise.
25380 (force_new_group): Likewise.
25381 (rs6000_register_move_cost): Likewise.
25382 (rs6000_opt_masks): Likewise.
25384 * config/rs6000/rs6000.h (ASM_CPU_POWER8_SPEC): If we don't have a
25385 power8 capable assembler, default to power7 options.
25386 (TARGET_DIRECT_MOVE): Likewise.
25387 (TARGET_CRYPTO): Likewise.
25388 (TARGET_P8_VECTOR): Likewise.
25389 (VECTOR_UNIT_P8_VECTOR_P): Define power8 vector support.
25390 (VECTOR_UNIT_VSX_OR_P8_VECTOR_P): Likewise.
25391 (VECTOR_MEM_P8_VECTOR_P): Likewise.
25392 (VECTOR_MEM_VSX_OR_P8_VECTOR_P): Likewise.
25393 (VECTOR_MEM_ALTIVEC_OR_VSX_P): Likewise.
25394 (TARGET_XSCVDPSPN): Likewise.
25395 (TARGET_XSCVSPDPN): Likewsie.
25396 (TARGET_SYNC_HI_QI): Likewise.
25397 (TARGET_SYNC_TI): Likewise.
25398 (MASK_CRYPTO): Likewise.
25399 (MASK_DIRECT_MOVE): Likewise.
25400 (MASK_P8_FUSION): Likewise.
25401 (MASK_P8_VECTOR): Likewise.
25402 (REG_ALLOC_ORDER): Move fr13 to be lower in priority so that the TFmode
25403 temporary used by some of the direct move instructions to get two FP
25404 temporary registers does not force creation of a stack frame.
25405 (VLOGICAL_REGNO_P): Allow vector logical operations in GPRs.
25406 (MODES_TIEABLE_P): Move the VSX tests above the Altivec tests so
25407 that any VSX registers are tieable, even if they are also an
25408 Altivec vector mode.
25409 (r6000_reg_class_enum): Add wm, wr, wv constraints.
25410 (RS6000_BTM_P8_VECTOR): Power8 builtin support.
25411 (RS6000_BTM_CRYPTO): Likewise.
25412 (RS6000_BTM_COMMON): Likewise.
25414 * config/rs6000/rs6000.md (cpu attribute): Add power8.
25415 * config/rs6000/rs6000-opts.h (PROCESSOR_POWER8): Likewise.
25416 (enum rs6000_vector): Add power8 vector support.
25418 2013-05-22 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
25422 * config/arm/arm.c (any_sibcall_uses_r3): Rename to ..
25423 (any_sibcall_could_use_r3): this and handle indirect calls.
25424 (arm_get_frame_offsets): Rename use of any_sibcall_uses_r3.
25426 2013-05-22 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
25428 * config/rs6000/rs6000.h (MALLOC_ABI_ALIGNMENT): New #define.
25430 2013-05-22 Richard Biener <rguenther@suse.de>
25432 PR middle-end/57349
25433 * profile.c (branch_prob): Do not split blocks that are
25434 abnormally receiving from ECF_RETURNS_TWICE functions.
25436 2013-05-22 Richard Sandiford <rsandifo@linux.vnet.ibm.com>
25438 * recog.c (offsettable_address_addr_space_p): Fix calculation of
25439 address mode. Move pointer mode initialization to the same place.
25441 2013-05-22 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
25443 * read-rtl.c (copy_rtx_for_iterators): Continue applying iterators
25444 while it has any effect.
25446 2013-05-21 Easwaran Raman <eraman@google.com>
25448 PR tree-optimization/57322
25449 * tree-ssa-reassoc.c (build_and_add_sum): If a BB is empty, set the
25450 UID of the statement added to the BB to be 1.
25452 2013-05-21 Jakub Jelinek <jakub@redhat.com>
25454 PR tree-optimization/57331
25455 * tree-vrp.c (simplify_cond_using_ranges): Don't optimize comparison
25456 of conversion from pointer type to integral type with integer.
25458 2013-05-21 Martin Jambor <mjambor@suse.cz>
25461 * ipa-prop.c (ipa_read_node_info): Process param_used and
25462 controlled_uses in the same order as when writing.
25464 2013-05-21 Magnus Granberg <baldrick@free.fr>
25467 * Makefile.in (PLUGIN_HEADERS): Add $(TARGET_H).
25469 2013-05-21 Richard Biener <rguenther@suse.de>
25471 PR tree-optimization/57318
25472 * tree-ssa-loop-ivcanon.c (tree_estimate_loop_size): Do not
25473 estimate stmts with side-effects as likely eliminated.
25475 2013-05-21 Richard Biener <rguenther@suse.de>
25477 PR tree-optimization/57330
25478 * cgraph.c (cgraph_redirect_edge_call_stmt_to_callee): Properly
25479 preserve the call stmts fntype.
25481 2013-05-21 Richard Biener <rguenther@suse.de>
25483 PR tree-optimization/57303
25484 * tree-ssa-sink.c (statement_sink_location): Improve killing
25485 stmt detection and properly handle self-assignments.
25487 2013-05-21 Christian Bruel <christian.bruel@st.com>
25489 * dwarf2out.c (multiple_reg_loc_descriptor): Use dbx_reg_number for
25490 spanning registers. LEAF_REG_REMAP is supported only for contiguous
25491 registers. Set register size out of the PARALLEL loop.
25493 2013-05-20 Oleg Endo <olegendo@gcc.gnu.org>
25496 * config/sh/sh.md (fmasf4): Remove empty constraints strings.
25497 (*fmasf4, *fmasf4_media): New insns.
25499 2013-05-19 Richard Sandiford <rdsandiford@googlemail.com>
25501 * config/mips/mips.h (BASE_INSN_LENGTH, NOP_INSN_LENGTH): New macros.
25502 * config/mips/mips.c (mips_symbol_insns, mips_address_insns)
25503 (mips_const_insns, mips_split_const_insns, mips_load_store_insns)
25504 (mips_idiv_insns): Update the comments to say that the returned
25505 instruction counts are in units of BASE_INSN_LENGTH.
25506 (mips_adjust_insn_length): Multiply the mips_load_label_num_insns
25507 by BASE_INSN_LENGTH rather than 4. Add the jump separately,
25508 using 2 rather than 4 as the length of indirect MIPS16 and
25509 microMIPS jumps. Use NOP_INSN_LENGTH rather than 4 as the
25510 length of a NOP. Don't divide MIPS16 lengths by 2.
25511 (mips16_split_long_branches): Assume a branch is long if the
25512 length is greater than 4 rather than 8.
25513 * config/mips/mips.md (length): Give MIPS16 lengths directly,
25514 rather than multiplying them by 2. Multiply instruction counts
25515 by BASE_INSN_LENGTH rather than 4.
25516 (*jump_mips16, tls_get_tp_mips16_<mode>)
25517 (*tls_get_tp_mips16_call_<mode>): Divide lengths by 2.
25519 2013-05-19 Richard Sandiford <rdsandiford@googlemail.com>
25521 * config/mips/mips.md (extended_mips16): Remove branch case.
25522 (length): Remove duplicated extended_mips16 test.
25524 2013-05-19 Richard Sandiford <rdsandiford@googlemail.com>
25526 * config/mips/t-sde: Don't build 64-bit microMIPS multilibs.
25528 2013-05-18 Richard Sandiford <rdsandiford@googlemail.com>
25530 * recog.h (Recog_data): Rename to...
25531 (recog_data_d): ...this.
25532 (recog_data): Update accordingly.
25533 * recog.c (recog_data): Likewise.
25534 * reload.c (save_recog_data): Likewise.
25535 * config/picochip/picochip.c (picochip_saved_recog_data): Likewise.
25536 (picochip_save_recog_data, picochip_restore_recog_data): Likewise.
25538 2013-05-17 Julian Brown <julian@codesourcery.com>
25540 * gcse.c (compute_ld_motion_mems): If a non-simple MEM is
25541 found in a REG_EQUAL note, invalidate it.
25543 2013-05-17 Easwaran Raman <eraman@google.com>
25545 * tree-ssa-reassoc.c (find_insert_point): New function.
25546 (insert_stmt_after): Likewise.
25547 (get_def_stmt): Likewise.
25548 (ensure_ops_are_available): Likewise.
25549 (not_dominated_by): Likewise.
25550 (rewrite_expr_tree): Do not move statements beyond what is
25551 necessary. Remove call to swap_ops_for_binary_stmt...
25552 (reassociate_bb): ... and move it here.
25553 (build_and_add_sum): Assign UIDs for new statements.
25554 (linearize_expr): Likewise.
25555 (do_reassoc): Renumber gimple statement UIDs.
25557 2013-05-17 Jan Hubicka <jh@suse.cz>
25559 * lto-symtab.c (lto_symtab_merge_cgraph_nodes): Resolve cross module
25561 * cgraph.c (dump_cgraph_node): Do not ice on unresolved alias.
25562 * cgraphunit.c (handle_alias_pairs): Store target of unresolved
25564 (output_weakrefs): Update.
25566 2013-05-17 Po-Chun Chang <pchang9@cs.wisc.edu>
25567 Martin Jambor <mjambor@suse.cz>
25569 PR middle-end/57276
25570 * ipa-cp.c (cgraph_edge_brings_all_agg_vals_for_node): Break when a
25571 value that corresponds to the given aggval is found in values vector.
25573 2013-05-17 Uros Bizjak <ubizjak@gmail.com>
25575 * config/i386/driver-i386.c (host_detect_local_cpu): Pass mmx, 3dnow,
25576 sse, sse2, sse3, ssse3 and sse4a flags to options.
25578 2013-05-17 David Malcolm <dmalcolm@redhat.com>
25580 * gengtype-state.c: (s_expr_writer): New class, to handle
25581 prettifying of output layout of s-expressions.
25582 (state_writer): New class, to write out gtype.state.
25583 (state_written_type_count): Move this variable into member data of
25585 (s_expr_writer::s_expr_writer): New code: constructor for new class
25586 (state_writer::state_writer(): ditto
25587 (s_expr_writer::write_new_line): New function
25588 (s_expr_writer::write_any_indent): ditto
25589 (s_expr_writer::begin_s_expr): ditto
25590 (s_expr_writer::end_s_expr): ditto
25591 (write_state_fileloc): convert to method of state_writer...
25592 (state_writer:: write_state_fileloc): ...and use methods of
25593 s_expr_writer to write indentation into the gtype.state output file
25594 to visually represent the hierarchical structure of the list
25596 (write_state_fields): ditto, renaming to...
25597 (state_writer::write_state_fields)
25598 (write_state_a_string): ditto, renaming to...
25599 (state_writer::write_state_a_string)
25600 (write_state_string_option): ditto, renaming to...
25601 (state_writer::write_state_string_option)
25602 (write_state_type_option): ditto, renaming to...
25603 (state_writer::write_state_type_option)
25604 (write_state_nested_option): ditto, renaming to...
25605 (state_writer::write_state_nested_option)
25606 (write_state_option): ditto, renaming to...
25607 (state_writer::write_state_option)
25608 (write_state_options): ditto, renaming to...
25609 (state_writer::write_state_options)
25610 (write_state_lang_bitmap): ditto, renaming to...
25611 (state_writer::write_state_lang_bitmap)
25612 (write_state_version): ditto, renaming to...
25613 (state_writer::write_state_version)
25614 (write_state_scalar_type): ditto, renaming to...
25615 (state_writer::write_state_scalar_type)
25616 (write_state_string_type): ditto, renaming to...
25617 (state_writer::write_state_string_type)
25618 (write_state_undefined_type): ditto, renaming to...
25619 (state_writer::write_state_undefined_type)
25620 (write_state_struct_union_type): ditto, renaming to...
25621 (state_writer::write_state_struct_union_type)
25622 (write_state_struct_type): ditto, renaming to...
25623 (state_writer::write_state_struct_type)
25624 (write_state_user_struct_type): ditto, renaming to...
25625 (state_writer::write_state_user_struct_type)
25626 (write_state_lang_struct_type): ditto, renaming to...
25627 (state_writer::write_state_lang_struct_type)
25628 (write_state_param_struct_type): ditto, renaming to...
25629 (state_writer::write_state_param_struct_type)
25630 (write_state_pointer_type): ditto, renaming to...
25631 (state_writer::write_state_pointer_type)
25632 (write_state_array_type): ditto, renaming to...
25633 (state_writer::write_state_array_type)
25634 (write_state_gc_used): ditto, renaming to...
25635 (state_writer::write_state_gc_used)
25636 (write_state_common_type_content): ditto, renaming to...
25637 (state_writer::write_state_common_type_content)
25638 (write_state_type): ditto, renaming to...
25639 (state_writer::write_state_type)
25640 (write_state_pair_list): ditto, renaming to...
25641 (state_writer::write_state_pair_list)
25642 (write_state_pair): ditto, renaming to...
25643 (state_writer::write_state_pair)
25644 (write_state_typedefs): ditto, renaming to...
25645 (state_writer::write_state_typedefs)
25646 (write_state_structures): ditto, renaming to...
25647 (state_writer::write_state_structures)
25648 (write_state_param_structs): ditto, renaming to...
25649 (state_writer::write_state_param_structs)
25650 (write_state_variables): ditto, renaming to...
25651 (state_writer::write_state_variables)
25652 (write_state_srcdir): ditto, renaming to...
25653 (state_writer::write_state_srcdir)
25654 (write_state_files_list): ditto, renaming to...
25655 (state_writer::write_state_files_list)
25656 (write_state_languages): ditto, renaming to...
25657 (state_writer::write_state_languages)
25658 (write_state): create a state_writer instance and use it when
25659 writing out the state file
25661 2013-05-17 Mike Stump <mikestump@comcast.net>
25663 PR rtl-optimization/57304
25664 * web.c (union_match_dups): Ensure that DF_REF_LOC exists before
25665 accessing DF_REF_REAL_LOC.
25667 2013-05-17 Jakub Jelinek <jakub@redhat.com>
25669 PR rtl-optimization/57281
25670 PR rtl-optimization/57300
25671 * config/i386/i386.md (extendsidi2_1 dead reg splitter): Remove.
25672 (extendsidi2_1 peephole2s): Add instead 2 new peephole2s, that undo
25673 what the other splitter did if the registers are dead.
25675 2013-05-17 Richard Biener <rguenther@suse.de>
25677 * tree-ssa-alias.c (stmt_kills_ref_p_1): Properly compare
25680 2013-05-17 Jakub Jelinek <jakub@redhat.com>
25682 * gcc.c (SANITIZER_SPEC): Reject -fsanitize=address -fsanitize=thread
25685 2013-05-17 Marek Polacek <polacek@redhat.com>
25687 * tree-ssa-strlen.c (handle_char_store): Don't invalidate cached
25688 length when doing non-zero store of storing '\0' to '\0'.
25690 2013-05-17 Jakub Jelinek <jakub@redhat.com>
25692 * tree-vect-patterns.c (vect_recog_rotate_pattern): For
25693 vect_external_def oprnd1 with loop_vinfo, try to emit
25694 optional cast, negation and and stmts on the loop preheader
25695 edge instead of into the pattern def seq.
25697 PR tree-optimization/57051
25698 * fold-const.c (const_binop) <case VEC_LSHIFT_EXPR,
25699 case VEC_RSHIFT_EXPR>: Fix BYTES_BIG_ENDIAN handling.
25701 2013-05-16 Nick Clifton <nickc@redhat.com>
25703 * config/rl78/rl78.c (rl78_attribute_table): Add naked.
25704 (rl78_is_naked_func): New function.
25705 (rl78_expand_prologue): Skip prologue generation for naked functions.
25706 (rl78_expand_epilogue): Skip epilogue generation for naked functions.
25707 * doc/extend.texi (naked): Add RL78 to the list of processors
25708 that supports this attribute.
25710 2013-05-16 Jeff Law <law@redhat.com>
25712 * Makefile.in (tree-switch-conversion.o): Depend on $(OPTABS_H).
25714 2013-05-16 Uros Bizjak <ubizjak@gmail.com>
25716 * config/i386/driver-i386.c (host_detect_local_cpu): Determine
25717 cache parameters using detect_caches_amd also for CYRIX,
25718 NSC and TM2 signatures.
25720 2013-05-16 Uros Bizjak <ubizjak@gmail.com>
25721 Dzianis Kahanovich <mahatma@eu.by>
25725 * config/i386/driver-i386.c (host_detect_local_cpu): Detect
25726 VIA/Centaur processors and determine their cache parameters
25727 using detect_caches_amd.
25729 2013-05-16 Teresa Johnson <tejohnson@google.com>
25731 * cfgrtl.c (verify_hot_cold_block_grouping): Return err.
25732 (rtl_verify_edges): New function.
25733 (rtl_verify_bb_insns): Ditto.
25734 (rtl_verify_bb_pointers): Ditto.
25735 (rtl_verify_bb_insn_chain): Ditto.
25736 (rtl_verify_fallthru): Ditto.
25737 (rtl_verify_bb_layout): Ditto.
25738 (rtl_verify_flow_info_1): Outline checks into new functions.
25739 (rtl_verify_flow_info): Ditto.
25741 2013-05-16 Steve Ellcey <sellcey@imgtec.com>
25743 * cfghooks.c (copy_bbs): Add update_dominance argument.
25744 * cfghooks.h (copy_bbs): Update prototype.
25745 * tree-cfg.c (gimple_duplicate_sese_region):
25746 Add update_dominance argument.
25747 * tree-flow.h (gimple_duplicate_sese_region): Update prototype.
25748 * tree-ssa-loop-ch.c (copy_loop_headers): Update
25749 gimple_duplicate_sese_region call.
25750 * tree-vect-loop-manip.c (slpeel_tree_duplicate_loop_to_edge_cfg):
25751 Update copy_bbs call.
25752 * cfgloopmanip.c (duplicate_loop_to_header_edge): Ditto.
25753 * trans-mem.c (ipa_uninstrument_transaction): Ditto.
25755 2013-05-16 Jakub Jelinek <jakub@redhat.com>
25757 * tree-vectorizer.h (NUM_PATTERNS): Increment.
25758 * tree-vect-patterns.c (vect_vect_recog_func_ptrs): Add
25759 vect_recog_rotate_pattern.
25760 (vect_recog_rotate_pattern): New function.
25762 2013-05-16 Jason Merrill <jason@redhat.com>
25764 * Makefile.in (LLINKER): New variable.
25765 (mostlyclean): Remove link mutex.
25766 * configure.ac: Handle --enable-link-mutex.
25767 * lock-and-run.sh: New script.
25769 2013-05-16 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
25772 * config/arm/arm.c (arm_function_ok_for_sibcall): Add check
25775 2013-05-16 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
25777 * reorg.c (link_cc0_insns): Wrap in #ifdef HAVE_cc0.
25779 2013-05-16 Greta Yorsh <Greta.Yorsh@arm.com>
25781 * config/arm/arm-protos.h (gen_movmem_ldrd_strd): New declaration.
25782 * config/arm/arm.c (next_consecutive_mem): New function.
25783 (gen_movmem_ldrd_strd): Likewise.
25784 * config/arm/arm.md (movmemqi): Update condition and code.
25785 (unaligned_loaddi, unaligned_storedi): New patterns.
25787 2013-05-16 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
25789 * config.gcc: Obsolete *-*-solaris2.9*.
25790 * doc/install.texi (Specific, *-*-solaris2*): Document it.
25792 2013-05-16 Richard Biener <rguenther@suse.de>
25794 * passes.c (init_optimization_passes): Move pass_parallelize_loops
25795 earlier, after GRAPHITE transforms and IV canonicalization.
25797 2013-05-16 Jakub Jelinek <jakub@redhat.com>
25799 * omp-low.c (extract_omp_for_data): For collapsed loops,
25800 if at least one of the loops is known at compile time to
25801 iterate zero times, set count to 0.
25802 (expand_omp_regimplify_p): New function.
25803 (expand_omp_for_generic): For collapsed loops, if at least
25804 one of the loops isn't known to iterate at least once,
25805 add runtime check with setting count to 0.
25806 (expand_omp_for_static_nochunk, expand_omp_for_static_chunk):
25807 For unsigned types if it isn't known at compile time that
25808 the loop will iterate at least once, add runtime check to bypass
25809 the whole loop if initial condition isn't true.
25811 2013-05-16 Nathan Sidwell <nathan@codesourcery.com>
25813 * varasm.c (default_use_anchors_for_symbol_p): Use decl_replaceable_p.
25815 2013-05-16 Marc Glisse <marc.glisse@inria.fr>
25817 PR middle-end/57286
25818 * fold-const.c (fold_ternary_loc) <VEC_COND_EXPR>: Disable some
25819 transformations to avoid an infinite loop.
25821 2013-05-16 Marek Polacek <polacek@redhat.com>
25823 * tree-scalar-evolution.c (scev_const_prop): Add more dumps.
25825 2013-05-15 Leif Ekblad <leif@rdos.net>
25827 * config/i386/i386.c (ix86_decompose_address): Use
25828 DEFAULT_TLS_SEG_REG to access TLS segment register.
25829 * config/i386/i386.h (DEFAULT_TLS_SEG_REG): New define.
25830 * config/i386/rdos.h (DEFAULT_TLS_SEG_REG): Ditto.
25831 (TARGET_TLS_DIRECT_SEG_REFS_DEFAULT): Ditto.
25833 2013-05-15 Richard Sandiford <rdsandiford@googlemail.com>
25836 * config/mips/mips.c (mips_function_ok_for_sibcall): Don't allow
25837 sibling calls to functions that would normally be lazily bound,
25838 unless $gp is call-clobbered.
25840 2013-05-15 Uros Bizjak <ubizjak@gmail.com>
25842 * config/i386/i386.c (ix86_option_override_internal): Update
25843 processor_alias_table for missing PTA_PRFCHW and PTA_FXSR flags. Add
25844 PTA_POPCNT to corei7 entry. Do not enable SSE prefetch on
25845 non-SSE 3dNow! targets. Enable TARGET_PRFCHW for TARGET_3DNOW targets.
25846 * config/i386/i386.md (prefetch): Enable for TARGET_PRFCHW instead
25848 (*prefetch_3dnow): Enable for TARGET_PRFCHW only.
25850 2013-05-15 Andreas Schwab <schwab@suse.de>
25852 * config/m68k/m68k.md (*rotlhi3_lowpart, *rotlqi3_lowpart): Name
25853 for rotlhi3+1 and rotlqi3+1, resp. Fix reference to non-existing
25856 2013-05-15 Teresa Johnson <tejohnson@google.com>
25858 * loop-unroll.c (report_unroll_peel): Check decision before
25859 emitting unroll/peel message.
25861 2013-05-15 Teresa Johnson <tejohnson@google.com>
25863 * function.h (has_bb_partition): New rtl_data flag.
25864 (bb_reorder_complete): Ditto.
25865 * cfgcleanup.c (try_crossjump_to_edge): Check for has_bb_partition
25866 instead of flag_reorder_blocks_and_partition.
25867 * cfgrtl.c (verify_hot_cold_block_grouping): Moved from bb-reorder.c,
25868 with some enhancements.
25869 (rtl_verify_flow_info_1): Call verify_hot_cold_block_grouping.
25870 * bb-reorder.c (connect_traces): Check for has_bb_partition
25871 instead of flag_reorder_blocks_and_partition.
25872 (verify_hot_cold_block_grouping): Moved to cfgrtl.c.
25873 (reorder_basic_blocks): Set bb_reorder_complete flag, remove call to
25874 verify_hot_cold_block_grouping.
25875 (partition_hot_cold_basic_blocks): Set has_bb_partition.
25877 2013-05-15 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
25880 * config/arm/predicates.md (call_insn_operand): New predicate.
25881 * config/arm/constraints.md ("Cs", "Ss"): New constraints.
25882 * config/arm/arm.md (*call_insn, *call_value_insn): Match only
25883 if insn is not a tail call.
25884 (*sibcall_insn, *sibcall_value_insn): Adjust for tailcalling through
25886 * config/arm/arm.h (enum reg_class): New caller save register class.
25887 (REG_CLASS_NAMES): Likewise.
25888 (REG_CLASS_CONTENTS): Likewise.
25889 * config/arm/arm.c (arm_function_ok_for_sibcall): Allow tailcalling
25892 2013-05-15 Richard Biener <rguenther@suse.de>
25894 * tree-vect-loop.c (vect_transform_loop): Use MSG_NOTE instead
25895 of MSG_OPTIMIZED_LOCATIONS.
25896 * tree-vect-slp.c (vect_make_slp_decision): Likewise.
25897 (vect_slp_transform_bb): Indicate location in MSG_OPTIMIZED_LOCATIONS
25899 * tree-vectorizer.c (vectorize_loops): Use MSG_NOTE instead
25900 of MSG_OPTIMIZED_LOCATIONS.
25901 (execute_vect_slp): Likewise.
25902 * tree-vect-loop-manip.c (vect_do_peeling_for_loop_bound): Likewise.
25903 (vect_create_cond_for_alias_checks): Likewise.
25904 * tree-vect-patterns.c (vect_recog_dot_prod_pattern): Likewise.
25905 (vect_recog_widen_mult_pattern): Likewise.
25906 (vect_recog_widen_sum_pattern): Likewise.
25907 (vect_recog_over_widening_pattern): Likewise.
25908 (vect_recog_widen_shift_pattern): Likewise.
25909 (vect_recog_vector_vector_shift_pattern): Likewise.
25910 (vect_recog_divmod_pattern): Likewise.
25911 (vect_recog_mixed_size_cond_pattern): Likewise.
25912 (vect_recog_bool_pattern): Likewise.
25913 (vect_pattern_recog_1): Likewise.
25915 2013-05-15 Martin Jambor <mjambor@suse.cz>
25917 * ipa-prop.c (ipa_make_edge_direct_to_target): Redirect calls to
25918 non-functions to builtin_unreachable.
25919 * ipa-inline-transform.c (inline_call): Do not assert estimates were
25920 correct when new direct edges were discovered.
25922 2013-05-15 Martin Jambor <mjambor@suse.cz>
25924 * ipa-prop.c (ipa_print_node_jump_functions): Print symbol order in
25925 header, print symbol order instead of node uid, print more information
25926 about indirect edge targets.
25927 (ipa_make_edge_direct_to_target): Print symbol order instead of node
25929 (ipa_make_edge_direct_to_target): Likewise.
25930 (remove_described_reference): Likewise.
25931 (propagate_controlled_uses): Likewise.
25932 (ipa_print_node_params): Also print symbol order.
25933 (ipcp_transform_function): Print symbol order instead of node uids.
25934 * cgraph.c (cgraph_redirect_edge_call_stmt_to_callee): Likewise.
25935 (cgraph_get_create_real_symbol_node): Likewise.
25936 * ipa-cp.c (print_lattice): Likewise.
25937 (print_all_lattices): Likewise.
25938 (determine_versionability): Likewise.
25939 (initialize_node_lattices): Likewise.
25940 (estimate_local_effects): Likewise.
25941 (update_profiling_info): Likewise.
25942 (create_specialized_node): Likewise.
25943 (perhaps_add_new_callers): Likewise.
25944 (decide_about_value): Likewise.
25945 (decide_whether_version_node): Likewise.
25946 (identify_dead_nodes): Likewise.
25947 * ipa-inline-analysis.c (dump_inline_edge_summary): Likewise.
25948 (dump_inline_summary): Likewise.
25949 (estimate_node_size_and_time): Likewise.
25950 (inline_analyze_function): Likewise.
25951 * ipa-inline.c (report_inline_failed_reason): Likewise.
25952 (want_early_inline_function_p): Likewise.
25953 (edge_badness): Likewise.
25954 (update_edge_key): Likewise.
25955 (inline_small_functions): Likewise. Add dumping of order to two other
25957 * ipa-pure-const.c (pure_const_read_summary): Print symbol order
25958 instead of node uids.
25959 (propagate_pure_const): Likewise.
25960 (propagate_pure_const): Likewise.
25961 * ipa-utils.c (dump_cgraph_node_set): Likewise.
25962 * lto-cgraph.c (input_node): Explicitly specify we dump uid.
25963 * lto-symtab.c (lto_cgraph_replace_node): Print symbol order instead
25965 * tree-pretty-print.c (dump_function_header): Likewise.
25966 * tree-sra.c (convert_callers_for_node): Dump in traditional format.
25967 Print symbol order instead of node uids.
25969 2013-05-15 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
25971 * config/s390/s390.c (s390_register_move_cost): Don't impose the
25972 FPR<->GPR move cost penalty if ldgr/lgdr can be used.
25974 2013-05-15 Richard Biener <rguenther@suse.de>
25976 PR tree-optimization/57275
25977 * tree-vect-data-refs.c (vect_analyze_data_ref_dependence): Fix
25978 return value for fail to do runtime alias checks for gather loads.
25980 2013-05-15 Jan Hubicka <jh@suse.cz>
25984 * lto-symtab.c (lto_symtab_symbol_p): Add external symbol;
25985 weakrefs are not external.
25986 (lto_symtab_merge_decls): Fix thinko when dealing with
25987 non-lto_symtab decls.
25988 (lto_symtab_merge_cgraph_nodes): Use lto_symtab_symbol_p.
25989 (lto_symtab_prevailing_decl): Get int sync with lto_symtab_symbol_p.
25990 * varpool.c (dump_varpool_node): Dump more flags.
25992 2013-05-15 Ganesh Gopalasubramanian <Ganesh.Gopalasubramanian@amd.com>
25994 * config/i386/i386.c (processor_alias_table): Add instruction
25995 FSGSBASE for AMD bdver3 architecture.
25997 2013-05-14 Jakub Jelinek <jakub@redhat.com>
25999 * tree.c (warn_deprecated_use): Print file:line using locus color.
26000 * diagnostic.c (diagnostic_report_current_module): Print file:line
26001 and file:line:column using locus color.
26003 2013-05-14 Mike Stump <mikestump@comcast.net>
26005 * gdbinit.in: Add __null.
26007 2013-05-14 Mike Stump <mikestump@comcast.net>
26009 * recog.h: Rename struct recog_data to Recog_data.
26010 * recog.c: Likewise.
26011 * reload.c (can_reload_into): Likewise.
26012 * config/picochip/picochip.c: Likewise.
26014 2013-05-14 Mike Stump <mikestump@comcast.net>
26016 * web.c (union_match_dups): Also check DF_REF_REAL_LOC.
26018 2013-05-14 Steven Bosscher <steven@gcc.gnu.org>
26020 * resource.h (struct resources): Remove unch_memory member.
26021 (CLEAR_RESOURCE): Don't clear unch_memory.
26022 * resource.c (mark_referenced_resources): Don't set it.
26023 (mark_set_resources): Likewise.
26024 (mark_target_live_regs): Don't clear it.
26025 (init_resource_info): Likewise.
26026 * reorg.c (resource_conflicts_p): Don't compare it.
26027 (redundant_insn): Don't set it.
26029 * rtl.h (next_label, skip_consecutive_labels, link_cc0_insns):
26031 * emit-rtl.c (next_label): Remove unused function.
26032 (skip_consecutive_labels, link_cc0_insns): Move to ...
26033 * reorg.c (skip_consecutive_labels, link_cc0_insns): ... here, the
26034 only place where these functions are used, and make them static.
26036 2013-05-14 Marc Glisse <marc.glisse@inria.fr>
26038 * fold-const.c (fold_negate_expr): Handle vectors.
26039 (fold_truth_not_expr): Make it static.
26040 (fold_invert_truthvalue): New static function.
26041 (invert_truthvalue_loc): Handle vectors. Do not call
26042 fold_truth_not_expr directly.
26043 (fold_unary_loc) <BIT_NOT_EXPR>: Handle comparisons.
26044 <TRUTH_NOT_EXPR>: Do not cast to boolean.
26045 (fold_comparison): Handle vector constants.
26046 (fold_binary_loc) <TRUTH_XOR_EXPR>: Remove redundant code.
26047 (fold_ternary_loc) <VEC_COND_EXPR>: Adapt more COND_EXPR optimizations.
26048 * tree.h (fold_truth_not_expr): Remove declaration.
26050 2013-05-14 James Greenhalgh <james.greenhalgh@arm.com>
26052 * config/aarch64/aarch64-simd.md
26053 (aarch64_vcond_internal<mode>): Rename to...
26054 (aarch64_vcond_internal<mode><mode>): ...This, for integer modes.
26055 (aarch64_vcond_internal<VDQF_COND:mode><VDQF:mode>): ...This for
26056 float modes. Clarify all iterator modes.
26057 (vcond<mode><mode>): Use new name for vcond expanders.
26058 (vcond<v_cmp_result><mode>): Likewise.
26059 (vcondu<mode><mode>: Likewise.
26060 * config/aarch64/iterators.md (VDQF_COND): New.
26062 2013-05-14 Marc Glisse <marc.glisse@inria.fr>
26065 * fold-const.c (fold_binary_loc) <shift>: Use an unsigned
26066 variable for the shift amount. Check that we shift by non-negative
26069 2013-05-14 Chung-Lin Tang <cltang@codesourcery.com>
26072 * config/arm/arm.h (EPILOGUE_USES): Only return true
26073 for LR_REGNUM after epilogue_completed.
26075 2013-05-14 Joern Rennecke <joern.rennecke@embecosm.com>
26077 * config/avr/avr.c (avr_encode_section_info): Bail out if the type
26078 is error_mark_node.
26080 2013-05-14 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
26083 * configure.ac (gcc_cv_ld_as_needed): Disable before Solaris 11
26084 and Solaris 11+/x86 with gld.
26085 * configure: Regenerate.
26087 2013-05-14 Jakub Jelinek <jakub@redhat.com>
26089 * expmed.c (expand_shift_1): Canonicalize rotates by
26090 constant bitsize / 2 to bitsize - 1.
26091 * simplify-rtx.c (simplify_binary_operation_1) <case ROTATE,
26092 case ROTATERT>: Likewise.
26095 2013-05-10 Jakub Jelinek <jakub@redhat.com>
26097 * config/i386/i386.md (rotateinv): New code attr.
26098 (*<rotate_insn><mode>3_1, *<rotate_insn>si3_1_zext,
26099 *<rotate_insn>qi3_1_slp): Emit rorl %eax instead of
26100 roll $31, %eax, etc.
26102 2013-05-14 Richard Biener <rguenther@suse.de>
26104 PR middle-end/57235
26105 * tree-eh.c (sink_clobbers): Give up for successors with
26106 multiple predecessors and no virtual uses.
26108 2013-05-14 Eric Botcazou <ebotcazou@adacore.com>
26110 * config/sparc/sp64-elf.h (CPP_SUBTARGET_SPEC): Delete.
26111 * config/sparc/openbsd64.h (CPP_SUBTARGET_SPEC): Likewise.
26113 2013-05-14 Jakub Jelinek <jakub@redhat.com>
26115 PR middle-end/57251
26116 * expr.c (expand_expr_real_2) <case WIDEN_MULT_EXPR>: Handle
26117 the case when both op0 and op1 have VOIDmode.
26119 2013-05-14 Kaushik Phatak <kaushik.phatak@kpitcummins.com>
26121 * config/rl78/rl78.md(mulsi3_g13): Add additional 'nop' required
26122 in multiply-accumulate mode.
26124 2013-05-13 Guozhi Wei <carrot@google.com>
26126 * dwarf2asm.c (dw2_output_indirect_constant_1): Mark new decl STATIC.
26128 2013-05-13 Kai Tietz <ktietz@redhat.com>
26131 * config/i386/cygming.h (TARGET_PECOFF): Define as true.
26132 * config/i386/i386.h (TARGET_PECOFF): Define by default as false.
26133 (PIC_OFFSET_TABLE_REGNUM): Use TARGET_PECOFF.
26134 * config/i386/i386.c (ix86_option_override_internal): Likewise.
26135 (ix86_expand_prologue): Likewise.
26136 (ix86_expand_split_stack_prologue): Likewise.
26137 (legitimate_pic_address_disp_p): Likewise.
26138 (legitimize_pic_address): Likewise.
26139 (legitimize_tls_address): Likewise.
26140 (legitimize_pe_coff_symbol): Likewise.
26141 (output_pic_addr_const): Likewise.
26142 (construct_plt_address): Likewise.
26143 (ix86_expand_call): Likewise.
26144 (x86_output_mi_thunk): Likewise.
26145 (x86_function_profiler): Likewise.
26147 2013-05-13 Sofiane Naci <sofiane.naci@arm.com>
26149 * config/aarch64/aarch64-simd.md (aarch64_simd_mov<mode>): Group
26150 similar switch cases.
26151 (aarch64_simd_mov): Rename to aarch64_split_simd_mov. Update.
26152 (aarch64_simd_mov_to_<mode>low): Delete.
26153 (aarch64_simd_mov_to_<mode>high): Delete.
26154 (move_lo_quad_<mode>): Add w<-r alternative.
26155 (aarch64_simd_move_hi_quad_<mode>): Likewise.
26156 (aarch64_simd_mov_from_*): Update type attribute.
26157 * config/aarch64/aarch64.c (aarch64_split_simd_move): Refacror switch
26160 2013-05-13 Jan Hubicka <jh@suse.cz>
26162 * mode-switching.c (optimize_mode_switching): Set correct RTL profile.
26163 * config/i386/i386.c (ix86_compute_frame_layout,
26164 ix86_expand_epilogue, emit_i387_cw_initialization,
26165 ix86_expand_vector_move_misalign, ix86_fp_comparison_strategy,
26166 ix86_local_alignment): Fix use of size/speed predicates.
26168 2013-05-13 Jakub Jelinek <jakub@redhat.com>
26170 PR tree-optimization/45216
26171 PR tree-optimization/57157
26172 * tree-ssa-forwprop.c (simplify_rotate): Only recognize
26173 the (-Y) & (B - 1) variant if OP is |.
26174 * expmed.c (expand_shift_1): For rotations by const0_rtx just
26175 return shifted. Use (-op1) & (prec - 1) as other_amount
26176 instead of prec - op1.
26178 2013-05-13 Martin Jambor <mjambor@suse.cz>
26180 PR middle-end/42371
26181 * ipa-prop.h (IPA_UNDESCRIBED_USE): New macro.
26182 (ipa_constant_data): New type.
26183 (ipa_jump_func): Use ipa_constant_data to hold information about
26184 constant jump functions.
26185 (ipa_get_jf_constant): Adjust to jump function type changes.
26186 (ipa_get_jf_constant_rdesc): New function.
26187 (ipa_param_descriptor): New field controlled_uses.
26188 (ipa_get_controlled_uses): New function.
26189 (ipa_set_controlled_uses): Likewise.
26190 * ipa-ref.h (ipa_find_reference): Declare.
26191 * ipa-prop.c (ipa_cst_ref_desc): New type.
26192 (ipa_print_node_jump_functions_for_edge): Adjust for jump function type
26194 (ipa_set_jf_constant): Likewise. Also create reference descriptions.
26195 New parameter cs. Adjust all callers.
26196 (ipa_analyze_params_uses): Detect uncontrolled and controlled uses.
26197 (remove_described_reference): New function.
26198 (jfunc_rdesc_usable): Likewise.
26199 (try_make_edge_direct_simple_call): Decrement controlled use count,
26200 attempt to remove reference if it hits zero.
26201 (combine_controlled_uses_counters): New function.
26202 (propagate_controlled_uses): Likewise.
26203 (ipa_propagate_indirect_call_infos): Call propagate_controlled_uses.
26204 (ipa_edge_duplication_hook): Duplicate reference descriptions.
26205 (ipa_print_node_params): Print described use counter.
26206 (ipa_write_jump_function): Adjust to jump function type changes.
26207 (ipa_read_jump_function): New parameter CS, pass it to
26208 ipa_set_jf_constant. Adjust caller.
26209 (ipa_write_node_info): Stream controlled use count
26210 (ipa_read_node_info): Likewise.
26211 * cgraph.c (cgraph_mark_address_taken_node): Bail out instead of
26213 * ipa-cp.c (ipcp_discover_new_direct_edges): Decrement controlled use
26214 count. Remove cloning-added reference if it reaches zero.
26215 * ipa-ref.c (ipa_find_reference): New function.
26217 2013-05-13 Ganesh Gopalasubramanian <Ganesh.Gopalasubramanian@amd.com>
26219 * config/i386/i386.c (processor_target_table): Modified default
26220 alignment values for AMD BD and BT architectures.
26222 2013-05-13 Marc Glisse <marc.glisse@inria.fr>
26224 * tree-vect-generic.c (uniform_vector_p): Move ...
26225 * tree.c (uniform_vector_p): ... here.
26226 * tree.h (uniform_vector_p): Declare it.
26227 * fold-const.c (fold_binary_loc) <shift>: Turn the second argument
26230 2013-05-13 Jakub Jelinek <jakub@redhat.com>
26232 PR tree-optimization/57230
26233 * tree-ssa-strlen.c (handle_char_store): Record length for
26234 array store from STRING_CST.
26236 PR tree-optimization/57230
26237 * tree-ssa-strlen.c (handle_char_store): Add missing integer_zerop
26240 2013-05-12 Joern Rennecke <joern.rennecke@embecosm.com>
26242 * config/epiphany/epiphany.c (epiphany_init): Check size of
26243 NUM_MODES_FOR_MODE_SWITCHING.
26244 (epiphany_expand_prologue):
26245 Remove CONFIG_REGNUM initial value handling code.
26246 (epiphany_optimize_mode_switching): Handle EPIPHANY_MSW_ENTITY_CONFIG.
26247 (epiphany_mode_needed, epiphany_mode_entry_exit): Likewise.
26248 (emit_set_fp_mode, epiphany_mode_after): Likewise.
26249 (epiphany_mode_needed) <Handle EPIPHANY_MSW_ENTITY_AND>:
26250 Don't return 1 for FP_MODE_NONE.
26251 * config/epiphany/epiphany.h (NUM_MODES_FOR_MODE_SWITCHING):
26252 Add value for EPIPHANY_MSW_ENTITY_CONFIG.
26253 (EPIPHANY_MSW_ENTITY_CONFIG, EPIPHANY_MSW_ENTITY_NUM): Define.
26254 * config/epiphany/epiphany.md (save_config): New pattern.
26256 2013-05-12 Uros Bizjak <ubizjak@gmail.com>
26258 * config/i386/i386.md (*zero_extendsidi2): Add *x->?r alternative.
26260 2013-05-10 Uros Bizjak <ubizjak@gmail.com>
26262 * config/i386/i386.md (memory): Handle sseishft1.
26263 * config/i386/sse.md (*vec_extractv4si): Remove memory attribute.
26264 (*vec_extractv2di_1): Ditto.
26266 2013-05-10 Vladimir Makarov <vmakarov@redhat.com>
26268 * lra-assigns.c (find_hard_regno_for): Add 1 to the cost of call
26271 2013-05-10 Sebastian Huber <sebastian.huber@embedded-brains.de>
26273 * config/arm/t-rtems-eabi: Remove mthumb/march=armv7 multilib.
26274 Add mthumb/march=armv7-a multilib.
26275 Add mthumb/march=armv7-r multilib.
26276 Add mthumb/march=armv7-a/mfpu=neon/mfloat-abi=hard multilib.
26278 2013-05-10 Ralf Corsépius <ralf.corsepius@rtems.org>
26280 * config/v850/t-rtems: Add more multilibs.
26282 2013-05-10 Richard Biener <rguenther@suse.de>
26284 PR tree-optimization/57214
26285 * tree-ssa-loop-ivcanon.c (propagate_constants_for_unrolling): Do
26286 not propagate from SSA names that occur in abnormal PHI nodes.
26288 2013-05-10 Marc Glisse <marc.glisse@inria.fr>
26290 * stor-layout.c (element_precision): New function.
26291 * machmode.h (element_precision): Declare it.
26292 * tree.c (build_minus_one_cst): New function.
26293 (element_precision): Likewise.
26294 * tree.h (build_minus_one_cst): Declare new function.
26295 (element_precision): Likewise.
26296 * fold-const.c (operand_equal_p): Use element_precision.
26297 (fold_binary_loc): Handle vector types.
26298 * convert.c (convert_to_integer): Use element_precision.
26299 * gimple.c (iterative_hash_canonical_type): Handle complex and vectors
26302 2013-05-10 Richard Sandiford <rdsandiford@googlemail.com>
26304 * config/mips/mips-protos.h (m16_uimm3_b, m16_simm4_1, m16_nsimm4_1)
26305 (m16_simm5_1, m16_nsimm5_1, m16_uimm5_4, m16_nuimm5_4, m16_simm8_1)
26306 (m16_nsimm8_1, m16_uimm8_1, m16_nuimm8_1, m16_uimm8_m1_1, m16_uimm8_4)
26307 (m16_nuimm8_4, m16_simm8_8, m16_nsimm8_8): Delete.
26308 * config/mips/mips.c (m16_check_op, m16_uimm3_b, m16_simm4_1)
26309 (m16_nsimm4_1, m16_simm5_1, m16_nsimm5_1, m16_uimm5_4, m16_nuimm5_4)
26310 (m16_simm8_1, m16_nsimm8_1, m16_uimm8_1, m16_nuimm8_1, m16_uimm8_m1_1)
26311 (m16_uimm8_4, m16_nuimm8_4, m16_simm8_8, m16_nsimm8_8): Delete.
26312 * config/mips/constraints.md (Udb8, Usb5, Usb8, Usd8, Uub8, Uuw5)
26313 (Uuw8): New constraints.
26314 (Usb4): Move into alphabetical order.
26315 * config/mips/predicates.md (db8_operand, sb5_operand, sb8_operand)
26316 (sd8_operand, ub8_operand, uw8_operand): New predicates.
26317 * config/mips/mips.md (*xor<mode>3, *xor<mode>3_mips16): Name
26318 previously unnamed patterns.
26319 (*add<mode>3_mips16, *xor<mode>3_mips16, *<optab>si3_mips16)
26320 (*ashldi3_mips16, *ashrdi3_mips16, *lshrdi3_mips16)
26321 (*slt<u>_<GPR:mode><GPR2:mode>_mips16)
26322 (*sle<u>_<GPR:mode><GPR2:mode>_mips16): Use constraints instead
26323 of set_attr_alternative/if_then_else. Use extended_mips16 instead
26324 of specific lengths.
26326 2013-05-10 Jakub Jelinek <jakub@redhat.com>
26328 * config/i386/i386.md (rotateinv): New code attr.
26329 (*<rotate_insn><mode>3_1, *<rotate_insn>si3_1_zext,
26330 *<rotate_insn>qi3_1_slp): Emit rorl %eax instead of
26331 roll $31, %eax, etc.
26333 PR tree-optimization/45216
26334 PR tree-optimization/57157
26335 * tree-ssa-forwprop.c (simplify_rotate): New function.
26336 (ssa_forward_propagate_and_combine): Call it.
26338 2013-05-10 Richard Biener <rguenther@suse.de>
26340 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment): Do not
26341 disable peeling when we version for aliasing.
26342 (vector_alignment_reachable_p): Honor explicit user alignment.
26343 (vect_supportable_dr_alignment): Likewise.
26344 * tree-vect-loop-manip.c (vect_can_advance_ivs_p): Use
26345 STMT_VINFO_LOOP_PHI_EVOLUTION_PART instead of recomputing it.
26346 * tree-vect-loop.c (vect_transform_loop): First apply versioning,
26347 then peeling to arrange for the cost-model check to come first.
26349 2013-05-10 Alan Modra <amodra@gmail.com>
26351 * configure.ac (HAVE_AS_TLS): Swap powerpc64 and powerpc cases.
26352 (HAVE_LD_LARGE_TOC): Don't mention AIX in help text.
26353 * configure: Regenerate.
26355 2013-05-10 Alan Modra <amodra@gmail.com>
26358 * varasm.c (default_elf_select_section): Move !DECL_P check..
26359 (get_named_section): ..to here before calling get_section_name.
26361 (default_section_type_flags): Add DECL_P check.
26362 * config/i386/winnt.c (i386_pe_section_type_flags): Likewise.
26363 * config/rs6000/rs6000.c (rs6000_xcoff_section_type_flags): Likewise.
26365 2013-05-09 Joern Rennecke <joern.rennecke@embecosm.com>
26367 * config/epiphany/epiphany.c (epiphany_expand_prologue):
26368 When using gen_stack_adjust_str with a register offset, add a
26369 REG_FRAME_RELATED_EXPR note.
26371 2013-05-09 Uros Bizjak <ubizjak@gmail.com>
26373 * config/i386/sse.md (*vec_extractv4si_0_zext): New pattern.
26374 (*vec_extractv4si_zext_mem): Ditto.
26375 (*vec_extractv2di): Add 0->x and x->x alternatives.
26376 * config/i386/mmx.md (*vec_extractv2si_zext_mem): New pattern.
26377 * config/i386/i386.md (*zero_extendsidi2): Add *Yj->?r alternative.
26379 2013-05-09 Jason Merrill <jason@redhat.com>
26381 N3639 C++1y VLA support
26382 * gimplify.c (gimplify_vla_decl): Don't touch an existing
26385 * tree.c (build_constructor_va): New.
26386 * tree.h: Declare it.
26388 2013-05-09 Martin Jambor <mjambor@suse.cz>
26391 * gimple-fold.c (canonicalize_constructor_val): Call
26392 cgraph_get_create_real_symbol_node instead of cgraph_get_create_node.
26394 2013-05-09 Jan Hubicka <jh@suse.cz>
26395 Richard Biener <rguenther@suse.de>
26398 * symtab.c (symtab_make_decl_local): Do not add private names.
26400 2013-05-09 Jan Hubicka <jh@suse.cz>
26403 * symtab.c (insert_to_assembler_name_hash): Handle clones.
26404 (unlink_from_assembler_name_hash): Likewise.
26405 (symtab_prevail_in_asm_name_hash, symtab_register_node,
26406 symtab_unregister_node, symtab_initialize_asm_name_hash,
26407 change_decl_assembler_name): Update.
26409 2013-05-09 Sofiane Naci <sofiane.naci@arm.com>
26411 * config/aarch64/aarch64.md: New movtf split.
26412 (*movtf_aarch64): Update.
26413 (aarch64_movdi_tilow): Handle TF modes and rename to
26414 aarch64_movdi_<mode>low.
26415 (aarch64_movdi_tihigh): Handle TF modes and rename to
26416 aarch64_movdi_<mode>high
26417 (aarch64_movtihigh_di): Handle TF modes and rename to
26418 aarch64_mov<mode>high_di
26419 (aarch64_movtilow_di): Handle TF modes and rename to
26420 aarch64_mov<mode>low_di
26421 (aarch64_movtilow_tilow): Remove spurious whitespace.
26422 * config/aarch64/aarch64.c (aarch64_split_128bit_move): Handle TFmode
26424 (aarch64_print_operand): Update.
26426 2013-05-09 Alan Modra <amodra@gmail.com>
26428 * configure.ac (HAVE_AS_TLS): Enable tests for powerpcle and
26430 * configure: Regenerate.
26432 2013-05-08 Uros Bizjak <ubizjak@gmail.com>
26434 * config/i386/mmx.md (*vec_extract* splitters): Simplify post-reload
26435 splitter preparation statements.
26436 * config/i386/sse.md (*vec_extract* splitters): Ditto.
26437 (*avx_vperm_broadcast_<mode>): Use adjust_address instead of
26440 2013-05-08 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
26442 * gimple-ssa-strength-reduction.c (count_candidates): Change
26443 return value to int.
26444 (analyze_candidates_and_replace): Change type of length to int.
26446 2013-05-08 Uros Bizjak <ubizjak@gmail.com>
26448 * config/i386/sse.md (PEXTR_MODE, PEXTR_MODEx): Remove.
26449 (*vec_extract<mode>): Use VI12_128 mode iterator.
26450 (*vec_extract<mode>_mem): Ditto.
26451 (*vec_extract*_mem splitters): Merge splitters using VI_128 mode
26454 2013-05-08 Diego Novillo <dnovillo@google.com>
26459 2012-08-17 Diego Novillo <dnovillo@google.com>
26462 * configure.ac: Add libintl.h to AC_CHECK_HEADERS list.
26463 * config.in: Regenerate.
26464 * configure: Regenerate.
26465 * intl.h: Always include libintl.h if HAVE_LIBINTL_H is set.
26467 2013-05-08 Jan Hubicka <jh@suse.cz>
26470 * cgraph.c (cgraph_make_node_local_1): Se unique_name.
26471 * cgraph.h (symtab_node_base): Add unique_name.
26472 * lto-cgraph.c (lto_output_node, lto_output_varpool_node,
26473 input_overwrite_node, input_varpool_node): Stream unique_name.
26474 * cgraphclones.c (cgraph_create_virtual_clone,
26475 cgraph_function_versioning): Set unique_name.
26476 * ipa.c (function_and_variable_visibility): Set unique_name.
26478 2013-05-08 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
26480 * gimple-ssa-strength-reduction.c (find_phi_def): Revert former "fix."
26481 (alloc_cand_and_find_basis): Restrict conditional candidate
26482 processing to CAND_MULTs.
26484 2013-05-08 Jan Hubicka <jh@suse.cz>
26487 lto-symtab.c (lto_symtab_symbol_p): New function.
26488 (lto_symtab_resolve_can_prevail_p, lto_symtab_resolve_symbols,
26489 lto_symtab_resolve_symbols, lto_symtab_merge_decls_2,
26490 lto_symtab_merge_decls_1, lto_symtab_merge_cgraph_nodes_1):
26491 Skip static symbols.
26493 2013-05-08 Paolo Carlini <paolo.carlini@oracle.com>
26495 PR tree-optimization/57200
26496 * tree-ssa-loop-niter.c (do_warn_aggressive_loop_optimizations):
26497 Only call inform if the preceding warning_at returns true.
26499 2013-05-07 Han Shen <shenhan@google.com>
26501 * cfgexpand.c (record_or_union_type_has_array_p): New function.
26502 (expand_used_vars): Add logic handling '-fstack-protector-strong'.
26503 * common.opt (fstack-protector-strong): New option.
26504 * doc/cpp.texi (__SSP_STRONG__): New builtin "__SSP_STRONG__".
26505 * doc/invoke.texi (Optimization Options): Document
26506 "-fstack-protector-strong".
26507 * gcc.c (LINK_SSP_SPEC): Add 'fstack-protector-strong'.
26509 2013-05-06 Steven Bosscher <steven@gcc.gnu.org>
26511 * config/mips/mips.c (mips_machine_reorg2): Return 0.
26513 2013-05-07 Vladimir Makarov <vmakarov@redhat.com>
26515 * ira.c (update_equiv_regs): Add insn having equiv memory even if
26516 it is not lhs of the insn.
26517 (setup_reg_equiv): Remove insn having equiv memory which it is not
26519 * lra-constraints.c (process_address): Try to improve generation
26520 code for address base + disp.
26521 (lra_constraints): Make correct the code for checking insn setting
26522 up backward equivalence. Remove insn only if it is in the init
26524 * lra-eliminations.c (update_reg_eliminate): Change return value.
26525 (lra_eliminate): Use the result.
26527 2013-05-07 Uros Bizjak <ubizjak@gmail.com>
26529 * config/i386/sse.md (ssescalarnummask): New mode attribute.
26530 (PEXTR_MODE, PEXTR_MODEx): New mode iterators.
26531 (*vec_extract<mode>): Merge from *sse4_1_pextrb_memory and
26532 *sse4_1_pextrw_memory using PEXTR_MODE mode iterator. Handle
26533 register target operands.
26534 (*vec_extractv8hi_sse2): New pattern.
26535 (*vec_extractv16qi_zext): Rename from *sse4_1_pextrb_<mode>.
26536 (*vec_extractv8hi_zext): Rename from *sse2_pextrw_<mode>.
26537 (*vec_extract<mode>_mem): New insn and split pattern.
26539 2013-05-07 Christophe Lyon <christophe.lyon@linaro.org>
26541 * config/arm/arm.c (arm_asan_shadow_offset): New function.
26542 (TARGET_ASAN_SHADOW_OFFSET): Define.
26543 * config/arm/linux-eabi.h (ASAN_CC1_SPEC): Define.
26544 (LINUX_OR_ANDROID_CC): Add ASAN_CC1_SPEC.
26546 2013-05-07 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
26548 * gimple-ssa-strength-reduction.c (MAX_INCR_VEC_LEN): New constant.
26549 (incr_vec_index): Return -1 if increment not found.
26550 (create_add_on_incoming_edge): Assert if increment not found.
26551 (record_increment): Limit number of increments recorded.
26552 (all_phi_incrs_profitable): Return false if an increment not found.
26553 (replace_profitable_candidates): Don't process increments that were
26555 (analyze_candidates_and_replace): Limit size of incr_vec.
26557 2013-05-07 Richard Biener <rguenther@suse.de>
26559 * calls.c (special_function_p): setjmp-like functions are leaf.
26560 * builtins.def (BUILT_IN_SETJMP): setjmp is leaf.
26561 * tree-inline.c (update_ssa_across_abnormal_edges): Remove assert.
26563 2013-05-07 Sofiane Naci <sofiane.naci@arm.com>
26565 * config/aarch64/aarch64-simd.md (*aarch64_simd_mov<mode>): call splitter.
26566 (aarch64_simd_mov<mode>): New expander.
26567 (aarch64_simd_mov_to_<mode>low): New instruction pattern.
26568 (aarch64_simd_mov_to_<mode>high): Likewise.
26569 (aarch64_simd_mov_from_<mode>low): Likewise.
26570 (aarch64_simd_mov_from_<mode>high): Likewise.
26571 (aarch64_dup_lane<mode>): Update.
26572 (aarch64_dup_lanedi): New instruction pattern.
26573 * config/aarch64/aarch64-protos.h (aarch64_split_simd_move): New prototype.
26574 * config/aarch64/aarch64.c (aarch64_split_simd_move): New function.
26576 2013-05-07 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
26578 * gimple-ssa-strength-reduction.c (lazy_create_slsr_reg): Remove.
26579 (replace_mult_candidate): Remove unnecessary argument; remove
26580 unnecessary parameter from call to introduce_cast_before_cand.
26581 (replace_unconditional_candidate): Remove unnecessary parameter
26582 from call to replace_mult_candidate.
26583 (replace_conditional_candidate): Likewise.
26584 (insert_initializers): Use make_temp_ssa_name.
26585 (introduce_cast_before_cand): Remove unnecessary argument; use
26586 make_temp_ssa_name.
26587 (replace_one_candidate): Remove unnecessary argument; remove
26588 unnecessary parameter from calls to introduce_cast_before_cand.
26589 (replace_profitable_candidates): Remove unnecessary parameters
26590 from calls to replace_one_candidate.
26592 2013-05-07 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
26594 * gimple-ssa-strength-reduction.c (find_phi_def): Don't record a
26595 phi def as possibly hiding a basis for a CAND_ADD whose operands
26596 have been commuted in the analysis.
26597 (alloc_cand_and_find_basis): Add parms to call to find_phi_def.
26599 2013-05-07 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
26601 * config/aarch64/aarch64.md
26602 (cmp_swp_<optab><ALLX:mode>_shft_<GPI:mode>): Restrict the
26603 shift value between 0-4.
26605 2013-05-07 Richard Biener <rguenther@suse.de>
26607 * double-int.h (rshift): New overload.
26608 * double-int.c (rshift): New function.
26609 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Optimize.
26610 (create_reference_ops_from_ref): Remove.
26611 (vn_reference_insert): Use shared ops for constructing the
26612 reference and copy it.
26614 2013-05-07 Richard Biener <rguenther@suse.de>
26616 PR middle-end/57190
26617 * tree-eh.c (sink_clobbers): Properly propagate
26618 SSA_NAME_OCCURS_IN_ABNORMAL_PHI.
26620 2013-05-07 Jakub Jelinek <jakub@redhat.com>
26622 PR tree-optimization/57149
26623 * tree-ssa-uninit.c (uninit_undefined_value_p): New inline.
26624 (can_skip_redundant_opnd, compute_uninit_opnds_pos,
26625 collect_phi_def_edges, execute_late_warn_uninitialized): Use
26626 uninit_undefined_value_p instead of ssa_undefined_value_p.
26629 * expr.c (expand_expr_addr_expr_1): Handle COMPOUND_LITERAL_EXPR
26630 for modifier == EXPAND_INITIALIZER.
26632 2013-05-07 Anton Blanchard <anton@samba.org>
26634 * configure.ac (HAVE_LD_LARGE_TOC): Use correct linker emulation
26635 for powerpc64 little endian.
26636 * configure: Regenerate.
26638 2013-05-06 Graham Stott <grahams@btinternet.com>
26640 * expmed.c (init_expmed_rtl): Remove unused fields reg_fld, plus_fld,
26641 mult_fld, sdiv_fld1, udiv_fld1, sdiv_32_fld1, smod_32_fld1,
26642 wide_mult_fld1, wide_lshr_fld1, shift_fld1, shift_mult_fld1,
26643 shift_add_fld1, shift_sub0_fld1, shift_sub1_fld1.
26645 2013-05-06 Graham Stott <grahams@btinternet.com>
26647 * gensupport.c (add_predicate_code): Also exclude SCRATCH from rtx
26648 codes which allow non-lvalues.
26650 2013-05-06 Marc Glisse <marc.glisse@inria.fr>
26652 * tree.c (integer_all_onesp) <COMPLEX_CST>: Test that both
26653 components are all 1s.
26654 (integer_minus_onep): New function.
26655 * tree.h (integer_minus_onep): Declare it.
26656 * fold-const.c (fold_binary_loc) <MULT_EXPR>: Test
26657 integer_minus_onep instead of integer_all_onesp.
26659 2013-05-06 Oleg Endo <olegendo@gcc.gnu.org>
26662 * config/sh/sh.md (*cmp_div0s_0, *cmp_div0s_1, *movsicc_div0s): Add
26663 variations of these patterns.
26665 2013-05-06 Uros Bizjak <ubizjak@gmail.com>
26667 * config/i386/i386.md (isa): Add x64_sse4 member.
26668 (enabled): Handle x64_sse4.
26669 (*movdi_internal): Add *x->?r alternative to emit pextrq $0,%xmm,%reg
26670 instruction for 64bit SSE4_1 targets. Update insn attributes.
26671 (*movsi_internal): Add *x->?r alternative to emit pextrd $0,%xmm,%reg
26672 instruction for SSE4_1 targets. Update insn attributes.
26673 * config/i386/sse.md (*vec_extract<ssevecmodelower>_0): Merge
26674 with *sse4_1_pextrd and *sse4_1_pextrq having const_0 selector.
26675 (*vec_extractv2di_1): Merge with *sse4_1_pextrq having
26677 (*vec_extractv4si): Rename from *sse4_1_pextrd.
26678 (*vec_extractv4si_zext): Rename from *sse4_1_pextrd_zext.
26679 (*vec_extract<ssevecmodelower>_0 splitters): Merge splitters together.
26681 2013-05-06 Oleg Endo <olegendo@gcc.gnu.org>
26684 * config/sh/sh.md (tstsi_t_zero_extract_eq): Use QIHISIDI mode iterator.
26686 2013-05-06 Maxim Kuznetsov <maks.kuznetsov@gmail.com>
26688 * final.c (do_assembler_dialects): Don't handle curly braces and
26689 vertical bar escaped by % as dialect delimiters.
26690 (output_asm_insn): Print curly braces and vertical bar if escaped
26691 by % and ASSEMBLER_DIALECT defined.
26692 * doc/tm.texi.in (ASSEMBLER_DIALECT): Document new standard escapes.
26693 * doc/tm.texi: Regenerated.
26695 2013-05-06 Steven Bosscher <steven@gcc.gnu.org>
26697 * config/mips/mips.c: Include tree-pass.h.
26698 (mips_reorg): Split in pre- and post-dbr_schedule parts.
26699 (mips_machine_reorg2): Move mips_reorg post-dbr_schedule parts here.
26700 (pass_mips_machine_reorg2): New machine specific pass.
26701 (insert_pass_mips_machine_reorg2): New pass plugin definition.
26702 (mips_option_override): Register the new pass.
26703 * rtl.h (cleanup_barriers): Remove prototype.
26704 (dbr_schedule): Likewise.
26705 * jump.c (cleanup_barriers): Make static.
26706 * reorg.c (dbr_schedule): Likewise.
26708 2013-05-06 Richard Biener <rguenther@suse.de>
26710 PR tree-optimization/57185
26711 * tree-parloops.c (add_field_for_reduction): Handle anonymous
26712 SSA names properly.
26714 2013-05-06 Uros Bizjak <ubizjak@gmail.com>
26717 * config/i386/i386.c (add_parameter_dependencies): Add dependence
26718 between "first_arg" and "insn", not "last" and "insn".
26720 2013-05-06 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
26722 * gimple-ssa-strength-reduction.c (slsr_process_phi): Re-enable.
26723 (find_candidates_in_block): Re-enable slsr_process_phi.
26724 (create_phi_basis): Fix double counting of candidate adjustment.
26726 2013-05-06 Richard Biener <rguenther@suse.de>
26728 PR middle-end/57147
26729 * tree-cfg.c (gimple_purge_dead_abnormal_call_edges): If
26730 the edge is also fallthru, preserve it and just clear the
26732 * tree-cfgcleanup.c (remove_fallthru_edge): If the edge is
26733 also complex, preserve that and just clear the fallthru flag.
26734 * tree-inline.c (update_ssa_across_abnormal_edges): Also
26735 update virtual operands.
26737 2013-05-06 Alan Modra <amodra@gmail.com>
26739 * config/rs6000/linux.h (DEFAULT_ASM_ENDIAN): Define.
26740 (LINK_OS_LINUX_EMUL): Use ENDIAN_SELECT.
26741 * config/rs6000/linux64.h (DEFAULT_ASM_ENDIAN): Define.
26742 * config/rs6000/sysv4le.h (DEFAULT_ASM_ENDIAN): Define.
26743 (LINK_TARGET_SPEC): Use ENDIAN_SELECT.
26744 * config/rs6000/sysv4.h (DEFAULT_ASM_ENDIAN): Define as -mbig.
26746 2013-05-06 Alan Modra <amodra@gmail.com>
26748 * config/rs6000/sysv4.h (ENDIAN_SELECT): Define, extracted from
26749 (ASM_SPEC): ..here. Emit DEFAULT_ASM_ENDIAN too.
26750 (DEFAULT_ASM_ENDIAN): Define.
26751 (CC1_SPEC, LINK_TARGET_SPEC): Use ENDIAN_SELECT.
26752 * config/rs6000/linux64.h (ASM_SPEC32): Remove endian options.
26753 Update -K PIC clause from sysv4.h.
26754 (ASM_SPEC_COMMON): Use ENDIAN_SELECT.
26755 (LINK_OS_LINUX_EMUL32, LINK_OS_LINUX_EMUL64): Likewise.
26757 2013-05-06 Alan Modra <amodra@gmail.com>
26759 * config/rs6000/rs6000.md (bswapdi 2nd splitter): Don't swap words
26760 twice for little-endian.
26761 (ashrdi3_no_power, ashrdi3): Support little-endian.
26763 2013-05-06 Oleg Endo <olegendo@gcc.gnu.org>
26766 * config/sh/sh.c (sh_rtx_costs): Handle SMIN and SMAX cases.
26767 * config/sh/sh.md (*clips, uminsi3, *clipu, clipu_one): New insns and
26769 * config/sh/iterators.md (SMIN_SMAX): New code iterator.
26770 * config/sh/predicates.md (arith_reg_or_0_or_1_operand,
26771 clips_min_const_int, clips_max_const_int, clipu_max_const_int):
26774 2013-05-05 Steven Bosscher <steven@gcc.gnu.org>
26775 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
26777 * config.gcc (hppa*-*-*): Remove MASK_BIG_SWITCH from CPU default.
26778 * config/pa/pa.opt: Make mbig-switch a no-op.
26779 * config/pa/pa.h (TARGET_DEFAULT): Remove MASK_BIG_SWITCH.
26780 (CASE_VECTOR_MODE): Always return SImode.
26781 (ASM_OUTPUT_ADDR_VEC_ELT, ASM_OUTPUT_ADDR_DIFF_ELT): Remove code
26782 for the !TARGET_BIG_SWITCH case.
26783 * config/pa/pa-linux.h: Likewise.
26784 * config/pa/pa-openbsd.h: Likewise.
26785 * config/pa/pa-hpux.h: Define TARGET_DEFAULT to 0.
26786 * config/pa/pa.md (short_jump): Remove define_insn.
26787 (casesi): Remove code for the !TARGET_BIG_SWITCH case.
26788 (casesi0): Remove define_insn.
26789 (type): Remove btable_branch.
26790 (pa_combine_type): Likewise.
26791 (in_nullified_branch_delay): Likewise.
26792 (in_call_delay): Likewise.
26793 (define_delay): Likewise.
26794 (define_insn_reservation "Z3"): Likewise.
26795 (define_insn_reservation "Z4"): Likewise.
26796 * config/pa/pa.c (pa_reorg): Remove code for !TARGET_BIG_SWITCH.
26797 (pa_adjust_insn_length): Remove adjustment for btable branches.
26798 * doc/invoke.texi (HPPA Options): Delete documentation for mbig-switch
26801 2013-05-05 Uros Bizjak <ubizjak@gmail.com>
26803 * config/i386/sse.md (*vec_extract<ssevecmodelower>_0): Merge
26804 from sse2_stored and *sse2_storeq_rex64 using SWI48 mode iterator.
26805 Add m->r,x alternatives.
26806 (*vec_extract<ssevecmodelower>_0 splitters): Merge V2DI and V4SI
26807 splitters using SWI48x mode iterator.
26808 (*vec_extract_v2di_0_sse): Rename from *sse2_storeq. Disable for
26809 TARGET_64BIT. Add m->x alternative.
26810 (*vec_extractv4si_mem): Rename from *vec_ext_v4si_mem.
26811 Add o->x alternative. Enable for TARGET_SSE.
26812 (sse_storeq): Remove expander.
26813 (*vec_extractv2di_1): Enable for TARGET_SSE. Split alternatives
26814 with memory input operand.
26815 (*vec_extractv2di_1 splitter): New.
26816 (*vec_extractv4sf_mem): Rename from *vec_extract_v4sf_mem.
26817 * config/i386/i386.md (ssevecmodelower): New mode attribute.
26819 2013-05-04 Segher Boessenkool <segher@kernel.crashing.org>
26821 * config/rs6000/rs6000.c (INT_P): Reformat. Delete obsolete comment.
26822 (INT_LOWPART): Delete.
26823 (extract_MB): Adjust.
26824 (extract_ME): Adjust.
26825 (print_operand): Adjust.
26827 2013-05-04 Segher Boessenkool <segher@kernel.crashing.org>
26829 * config/rs6000/predicates.md (reg_or_add_cint_operand,
26830 reg_or_sub_cint_operand): Delete "HOST_BITS_PER_WIDE_INT == 32" case.
26831 (reg_or_logical_cint_operand, easy_fp_constant,
26832 logical_const_operand): Delete "CONST_DOUBLE" case.
26833 * config/rs6000/rs6000.c (num_insns_constant_wide): Delete
26834 "HOST_BITS_PER_WIDE_INT == 64" test.
26835 (num_insns_constant): Ditto. Delete CONST_DOUBLE DImode/VOIDmode case.
26836 (build_mask64_2_operands): Delete "HOST_BITS_PER_WIDE_INT >= 64" test.
26837 (rs6000_emit_set_const): Delete CONST_DOUBLE case.
26838 (rs6000_emit_set_long_const): Delete "HOST_BITS_PER_WIDE_INT >= 64"
26840 (includes_rldic_lshift_p, includes_rldicr_lshift_p): Delete
26841 CONST_DOUBLE DImode/VOIDmode case.
26842 (INT_P, INT_LOWPART): Delete CONST_DOUBLE case.
26843 (print_operand): Delete "HOST_BITS_PER_WIDE_INT == 32" case. Delete
26844 CONST_DOUBLE VOIDmode case.
26845 (output_toc): Delete "HOST_BITS_PER_WIDE_INT == 32" case.
26846 (rs6000_rtx_costs): Delete CONST_DOUBLE DImode/VOIDmode case.
26847 * config/rs6000/rs6000.md (iordi3, xordi3, splitter for these):
26848 Delete CONST_DOUBLE case.
26849 (splitters for mov FMOVE64 const_double): Delete
26850 "HOST_BITS_PER_WIDE_INT == 32" case. Delete
26851 "HOST_BITS_PER_WIDE_INT >= 64" test.
26852 (splitter for mov DI const_int): Delete "HOST_BITS_PER_WIDE_INT == 32"
26854 (mov DI const_double): Delete.
26856 2013-05-04 Jakub Jelinek <jakub@redhat.com>
26858 * combine.c (combine_simplify_rtx) <case SUBREG>: If nonzero_bits
26859 on op shows all bits zero in mode of a lowpart subreg, return zero.
26861 2013-05-03 Michael Meissner <meissner@linux.vnet.ibm.com>
26864 * config/rs6000/rs6000.h (HARD_REGNO_CALLER_SAVE_MODE): Use DFmode
26865 to save TFmode registers and DImode to save TImode registers for
26866 caller save operations.
26867 (HARD_REGNO_CALL_PART_CLOBBERED): TFmode and TDmode do not need to
26868 mark being partially clobbered since they only use the first
26871 * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): TFmode
26872 and TDmode only use the upper 64-bits of each VSX register.
26874 2013-05-03 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
26876 * gimple-ssa-strength-reduction.c (slsr_process_phi): Disable.
26877 (find_candidates_in_block): Disable slsr_process_phi.
26879 2013-05-03 Guozhi Wei <carrot@google.com>
26881 * coverage.c (coverage_obj_init): Move the construction of gcov
26883 (build_init_ctor): ... here.
26885 2013-05-03 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
26887 * gimple-ssa-strength-reduction.c (cand_kind): Add CAND_PHI.
26888 (slsr_cand_d): Redefine def_phi.
26889 (stride_status, phi_adjust_status, count_phis_status): New enums.
26890 (find_phi_def): New.
26891 (find_basis_for_base_expr): New.
26892 (find_basis_for_candidate): Handle hidden bases.
26893 (alloc_cand_and_find_basis): Handle phi candidates.
26894 (slsr_process_phi): New.
26895 (create_mul_ssa_cand): Exclude phi base candidates; use integer_onep.
26896 (create_mul_imm_cand): Likewise.
26897 (create_add_ssa_cand): Exclude phi base candidates.
26898 (create_add_imm_cand): Likewise.
26899 (slsr_process_cast): Likewise.
26900 (slsr_process_copy): Likewise.
26901 (find_candidates_in_block): Handle phi candidates.
26902 (dump_candidate): Likewise.
26903 (unconditional_cands): Delete.
26904 (unconditional_cands_with_known_stride_p): Delete.
26905 (phi_dependent_cand_p): New.
26906 (cand_increment): Handle phi-dependent candidates.
26907 (replace_dependent): Delete.
26908 (replace_mult_candidate): New.
26909 (replace_unconditional_candidate): New.
26910 (incr_vec_index): Move to avoid forward reference.
26911 (create_add_on_incoming_edge): New.
26912 (create_phi_basis): New.
26913 (replace_dependents): Delete.
26914 (replace_conditional_candidate): New.
26915 (phi_add_costs): New.
26916 (replace_uncond_cands_and_profitable_phis): New.
26917 (record_increment): Handle phi adjustments.
26918 (record_phi_increments): New.
26919 (record_increments): Handle phi adjustments.
26920 (phi_incr_cost): New.
26921 (lowest_cost_path): Handle phis.
26922 (total_savings): Likewise.
26923 (analyze_increments): Likewise.
26924 (ncd_with_phi): New.
26925 (ncd_of_cand_and_phis): New.
26926 (nearest_common_dominator_for_cands): Handle phi increments.
26927 (all_phi_incrs_profitable): New.
26928 (replace_profitable_candidates): Handle phi-dependent candidates.
26929 (analyze_candidates_and_replace): Likewise.
26931 2013-05-03 Teresa Johnson <tejohnson@google.com>
26934 * sched-rgn.c (compute_dom_prob_ps): Ensure accumulated probabilities
26935 do not exceed REG_BR_PROB_BASE.
26937 2013-05-03 Jeff Law <law@redhat.com>
26939 PR tree-optimization/57144
26940 * tree-vrp.c (simplify_cond_using_ranges): Verify the constant
26941 operand of the condition will bit into the new type when eliminating
26942 a cast feeding a condition.
26944 2013-05-03 Jakub Jelinek <jakub@redhat.com>
26946 PR rtl-optimization/57130
26947 * combine.c (make_compound_operation) <case SUBREG>: Pass SET instead
26948 of COMPARE as in_code to the recursive call if needed.
26950 2013-05-03 Uros Bizjak <ubizjak@gmail.com>
26952 * config/i386/i386.md (isa): Add x64_sse4_noavx and x64_avx members.
26953 (enabled): Handle new members.
26954 * config/i386/sse.md (*vec_concatv2si): Merge from
26955 *vec_concatv2si_sse2 and vec_concatv2si_sse.
26956 (vec_concatv2di): Merge with *vec_concatv2di_rex64.
26958 2013-05-03 Joern Rennecke <joern.rennecke@embecosm.com>
26960 PR tree-optimization/57027
26961 * tree-ssa-math-opts.c (convert_mult_to_fma): When checking
26962 for fnms opportunity, check we got the prerequisite kind
26963 of tree / gimple before using accessor functions.
26965 2013-05-03 Richard Biener <rguenther@suse.de>
26967 * double-int.h (lshift): New overload without precision
26968 and arith argument.
26969 (operator *=, operator +=, operator -=): Move ...
26970 * double-int.c (operator *=, operator +=, operator -=): ... here
26971 and implement more efficiently.
26972 (mul_double_with_sign): Remove.
26973 (lshift_double): Adjust to take unsinged shift argument, push
26974 dispatching code to callers.
26975 (mul_double_wide_with_sign): Add early out for callers that
26976 are not interested in high parts or overflow.
26977 (lshift): New function.
26978 (lshift, rshift, alshift, arshift, llshift, lrshift): Add
26979 dispatch code here.
26980 (lrotate, rrotate): Use logical shifts.
26981 * expr.c (get_inner_reference): Use lshift.
26982 * fixed-value.c (do_fixed_divide): Likewise.
26983 * tree-dfa.c (get_ref_base_and_extent): Likewise.
26984 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Likewise.
26985 (indirect_refs_may_alias_p): Likewise.
26986 (stmt_kills_ref_p_1): Likewise.
26988 2013-05-03 Vidya Praveen <vidyapraveen@arm.com>
26990 * config/aarch64/aarch64-simd.md (simd_fabd): Correct the description.
26992 2013-05-03 Vidya Praveen <vidyapraveen@arm.com>
26994 * config/aarch64/aarch64-simd.md (*fabd_scalar<mode>3): Support
26995 scalar form of FABD instruction.
26997 2013-05-02 Vladimir Makarov <vmakarov@redhat.com>
26999 * lra-constraints.c (process_alt_operands): Add checking alt
27000 number to choose the best alternative.
27002 2013-05-02 Richard Biener <rguenther@suse.de>
27004 * tree-eh.c (cleanup_empty_eh_merge_phis): Remove rename_virts
27005 bitmap and its handling.
27006 (pass_cleanup_eh): Set todo_flags_finish to TODO_verify_ssa.
27008 2013-05-02 Richard Biener <rguenther@suse.de>
27010 PR middle-end/57140
27011 * tree-inline.c (copy_loops): Properly handle removed loops.
27012 (copy_cfg_body): Mark destination loops for fixup if source
27013 loops needed fixup.
27015 2013-05-02 Greta Yorsh <Greta.Yorsh@arm.com>
27018 * config/arm/arm.c (arm_expand_epilogue): Check really_return before
27019 generating simple_return for naked functions.
27021 2013-05-02 Martin Jambor <mjambor@suse.cz>
27023 PR middle-end/56988
27024 * ipa-prop.h (ipa_agg_replacement_value): New flag by_ref.
27025 * ipa-cp.c (ipa_get_indirect_edge_target_1): Also check that by_ref
27027 (find_aggregate_values_for_callers_subset): Fill in the by_ref flag of
27028 ipa_agg_replacement_value structures.
27029 (known_aggs_to_agg_replacement_list): Likewise.
27030 * ipa-prop.c (write_agg_replacement_chain): Stream by_ref flag.
27031 (read_agg_replacement_chain): Likewise.
27032 (ipcp_transform_function): Also check that by_ref flags match.
27034 2013-05-02 Richard Biener <rguenther@suse.de>
27036 * graphds.h (struct graph): Add obstack member.
27037 * graphds.c (new_graph): Initialize obstack and allocate
27039 (add_edge): Allocate edge from the obstack.
27040 (free_graph): Free the obstack instead of all edges and vertices.
27042 2013-05-02 Teresa Johnson <tejohnson@google.com>
27044 * loop-unswitch.c (unswitch_loop): Use helper routines with rounding
27046 * cfg.c (update_bb_profile_for_threading): Ditto.
27047 * tree-inline.c (copy_bb): Ditto.
27048 (copy_edges_for_bb): Ditto.
27049 (initialize_cfun): Ditto.
27050 (copy_cfg_body): Ditto.
27051 (expand_call_inline): Ditto.
27052 * ipa-inline-analysis.c (estimate_edge_size_and_time): Ditto.
27053 (estimate_node_size_and_time): Ditto.
27054 (inline_merge_summary): Ditto.
27055 * cgraphclones.c (cgraph_clone_edge): Ditto.
27056 (cgraph_clone_node): Ditto.
27057 * sched-rgn.c (compute_dom_prob_ps): Ditto.
27058 (compute_trg_info): Ditto.
27060 2013-05-02 Ian Bolton <ian.bolton@arm.com>
27062 * config/aarch64/aarch64.md (movsi_aarch64): Only allow to/from
27063 S reg when fp attribute set.
27064 (movdi_aarch64): Only allow to/from D reg when fp attribute set.
27066 2013-05-02 Ian Bolton <ian.bolton@arm.com>
27068 * config/aarch64/aarch64.md (*and_one_cmpl<mode>3_compare0):
27070 (*and_one_cmplsi3_compare0_uxtw): Likewise.
27071 (*and_one_cmpl_<SHIFT:optab><mode>3_compare0): Likewise.
27072 (*and_one_cmpl_<SHIFT:optab>si3_compare0_uxtw): Likewise.
27074 2013-05-02 Richard Biener <rguenther@suse.de>
27076 * tree-scalar-evolution.c (scev_info_hasher): Remove.
27077 (struct instantiate_cache_entry): New type.
27078 (struct instantiate_cache_entry_hasher): New hashtable descriptor.
27079 (struct instantiate_cache_type): New type.
27080 (set_instantiated_value, get_instantiated_value): Remove.
27081 (get_instantiated_value_entry): New function.
27082 (instantiate_scev_name): Use the new cache and adjust.
27083 (instantiate_scev_poly): Adjust.
27084 (instantiate_scev_binary): Likewise.
27085 (instantiate_array_ref): Likewise.
27086 (instantiate_scev_convert): Likewise.
27087 (instantiate_scev_not): Likewise.
27088 (instantiate_scev_3): Likewise.
27089 (instantiate_scev_2): Likewise.
27090 (instantiate_scev_r): Likewise.
27091 (instantiate_scev): Likewise.
27092 (resolve_mixers): Likewise.
27094 2013-05-01 Vladimir Makarov <vmakarov@redhat.com>
27097 * lra-constraints.c (best_small_class_operands_num): Remove.
27098 (process_alt_operands): Remove small_class_operands_num. Take
27099 small classes operands into losers and only if the operand is not
27100 matched. Modify debugging output.
27101 (curr_insn_transform): Remove best_small_class_operands_num.
27104 2013-05-01 James Greenhalgh <james.greenhalgh@arm.com>
27106 * config/aarch64/aarch64-builtins.c
27107 (aarch64_gimple_fold_builtin.c): Fold more modes for reduc_splus_.
27108 * config/aarch64/aarch64-simd-builtins.def
27109 (reduc_splus_): Add new modes.
27110 (reduc_uplus_): New.
27111 * config/aarch64/aarch64-simd.md (aarch64_addvv4sf): Remove.
27112 (reduc_uplus_v4sf): Likewise.
27113 (reduc_splus_v4sf): Likewise.
27114 (aarch64_addv<mode>): Likewise.
27115 (reduc_uplus_<mode>): Likewise.
27116 (reduc_splus_<mode>): Likewise.
27117 (aarch64_addvv2di): Likewise.
27118 (reduc_uplus_v2di): Likewise.
27119 (reduc_splus_v2di): Likewise.
27120 (aarch64_addvv2si): Likewise.
27121 (reduc_uplus_v2si): Likewise.
27122 (reduc_splus_v2si): Likewise.
27123 (reduc_<sur>plus_<mode>): New.
27124 (reduc_<sur>plus_v2di): Likewise.
27125 (reduc_<sur>plus_v2si): Likewise.
27126 (reduc_<sur>plus_v4sf): Likewise.
27127 (aarch64_addpv4sf): Likewise.
27128 * config/aarch64/arm_neon.h
27129 (vaddv<q>_<s,u,f><8, 16, 32, 64): Rewrite using builtins.
27130 * config/aarch64/iterators.md (unspec): Remove UNSPEC_ADDV,
27131 add UNSPEC_SADDV, UNSPEC_UADDV.
27133 (sur): Add UNSPEC_SADDV, UNSPEC_UADDV.
27135 2013-05-01 James Greenhalgh <james.greenhalgh@arm.com>
27137 * config/aarch64/arm_neon.h
27138 (v<max,min><nm><q><v>_<sfu><8, 16, 32, 64>): Rewrite using builtins.
27140 2013-05-01 James Greenhalgh <james.greenhalgh@arm.com>
27142 * config/aarch64/aarch64-builtins
27143 (aarch64_gimple_fold_builtin): Fold reduc_<su><maxmin>_ builtins.
27145 2013-05-01 James Greenhalgh <james.greenhalgh@arm.com>
27147 * config/aarch64/aarch64-simd-builtins.def
27148 (reduc_smax_): New.
27149 (reduc_smin_): Likewise.
27150 (reduc_umax_): Likewise.
27151 (reduc_umin_): Likewise.
27152 (reduc_smax_nan_): Likewise.
27153 (reduc_smin_nan_): Likewise.
27156 (smax): Update for V2SF, V4SF and V2DF modes.
27159 (smin_nan): Likewise.
27160 * config/aarch64/aarch64-simd.md (<maxmin><mode>3): Rename to...
27161 (<su><maxmin><mode>3): ...This, refactor.
27162 (s<maxmin><mode>3): New.
27163 (<maxmin_uns><mode>3): Likewise.
27164 (reduc_<maxmin_uns>_<mode>): Refactor.
27165 (reduc_<maxmin_uns>_v4sf): Likewise.
27166 (reduc_<maxmin_uns>_v2si): Likewise.
27167 (aarch64_<fmaxmin><mode>: Remove.
27168 * config/aarch64/arm_neon.h (vmax<q>_f<32,64>): Rewrite to use
27170 (vmin<q>_f<32,64>): Likewise.
27171 * config/iterators.md (unspec): Add UNSPEC_FMAXNMV, UNSPEC_FMINNMV.
27173 (su): Add mappings for smax, smin, umax, umin.
27175 (FMAXMINV): Add UNSPEC_FMAXNMV, UNSPEC_FMINNMV.
27176 (FMAXMIN): Rename as...
27177 (FMAXMIN_UNS): ...This.
27179 (fmaxminv): Likewise.
27180 (fmaxmin): Likewise.
27182 (maxmin_uns_op): Likewise.
27184 2013-05-01 James Greenhalgh <james.greenhalgh@arm.com>
27186 * config/aarch64/arm_neon.h
27187 (vac<ge, gt><sd>_f<32, 64>): Rename to...
27188 (vca<ge, gt><sd>_f<32, 64>): ...this, reimpliment in C.
27189 (vca<ge, gt, lt, le><q>_f<32, 64>): Reimpliment in C.
27191 2013-05-01 James Greenhalgh <james.greenhalgh@arm.com>
27193 * config/aarch64/aarch64-simd.md (*aarch64_fac<optab><mode>): New.
27194 * config/aarch64/iterators.md (FAC_COMPARISONS): New.
27196 2013-05-01 James Greenhalgh <james.greenhalgh@arm.com>
27198 * config/aarch64/aarch64-simd.md
27199 (vcond<mode>_internal): Handle special cases for constant masks.
27200 (vcond<mode><mode>): Allow nonmemory_operands for outcome vectors.
27201 (vcondu<mode><mode>): Likewise.
27202 (vcond<v_cmp_result><mode>): New.
27204 2013-05-01 James Greenhalgh <james.greenhalgh@arm.com>
27206 * config/aarch64/aarch64-builtins.c (BUILTIN_VALLDI): Define.
27207 (aarch64_fold_builtin): Add folding for cm<eq,ge,gt,tst>.
27208 * config/aarch64/aarch64-simd-builtins.def
27209 (cmeq): Update to BUILTIN_VALLDI.
27214 * config/aarch64/arm_neon.h
27215 (vc<eq, lt, le, gt, ge, tst><z><qsd>_<fpsu><8,16,32,64>): Remap
27216 to builtins or C as appropriate.
27218 2013-05-01 James Greenhalgh <james.greenhalgh@arm.com>
27220 * config/aarch64/aarch64-simd-builtins.def (cmhs): Rename to...
27222 (cmhi): Rename to...
27224 * config/aarch64/aarch64-simd.md
27225 (simd_mode): Add SF.
27226 (aarch64_vcond_internal): Use new names for unsigned comparison insns.
27227 (aarch64_cm<optab><mode>): Rewrite to not use UNSPECs.
27228 * config/aarch64/aarch64.md (*cstore<mode>_neg): Rename to...
27229 (cstore<mode>_neg): ...This.
27230 * config/aarch64/iterators.md
27232 (unspec): Remove UNSPEC_CM<EQ, LE, LT, GE, GT, HS, HI, TST>.
27233 (COMPARISONS): New.
27234 (UCOMPARISONS): Likewise.
27235 (optab): Add missing comparisons.
27241 (VCMP_S): Likewise.
27242 (VCMP_U): Likewise.
27243 (V_cmp_result): Add DF, SF modes.
27244 (v_cmp_result): Likewise.
27246 (vmtype): Likewise.
27247 * config/aarch64/predicates.md (aarch64_reg_or_fp_zero): New.
27249 2013-05-01 Greta Yorsh <Greta.Yorsh@arm.com>
27251 * config/arm/thumb2.md (thumb2_smaxsi3,thumb2_sminsi3): Convert
27252 define_insn to define_insn_and_split.
27253 (thumb32_umaxsi3,thumb2_uminsi3): Likewise.
27254 (thumb2_negdi2,thumb2_abssi2,thumb2_neg_abssi2): Likewise.
27255 (thumb2_mov_scc,thumb2_mov_negscc,thumb2_mov_notscc): Likewise.
27256 (thumb2_movsicc_insn,thumb2_and_scc,thumb2_ior_scc): Likewise.
27257 (thumb2_negscc): Likewise.
27259 2013-04-30 Greta Yorsh <Greta.Yorsh@arm.com>
27261 * config/arm/thumb2.md (thumb2_incscc, thumb2_decscc): Delete.
27263 2013-04-30 Greta Yorsh <Greta.Yorsh@arm.com>
27265 * config/arm/thumb2.md: Remove trailing whitespaces.
27267 2013-04-30 Richard Sandiford <rsandifo@linux.vnet.ibm.com>
27269 * explow.c (plus_constant): Pass "mode" to immed_double_int_const.
27270 Use gen_int_mode rather than GEN_INT.
27272 2013-04-30 H.J. Lu <hongjiu.lu@intel.com>
27274 * value-prof.c (stream_in_histogram_value): Remove the strayed
27277 2013-04-30 Richard Biener <rguenther@suse.de>
27279 PR middle-end/57122
27280 * cfghooks.c (split_edge): Properly check for the loop latch edge.
27282 2013-04-30 Richard Biener <rguenther@suse.de>
27284 PR middle-end/57107
27285 * tree-eh.c (sink_clobbers): Preserve virtual SSA form.
27287 2013-04-30 Andrey Belevantsev <abel@ispras.ru>
27289 PR rtl-optimization/56957
27290 PR rtl-optimization/57105
27291 * sel-sched.c (move_op_orig_expr_found): Remove insn_emitted
27292 variable. Use just INSN_UID for determining whether an insn
27293 should be only disconnected from the insn stream.
27294 * sel-sched-ir.h (EXPR_WAS_CHANGED): Remove.
27296 2013-04-30 Jakub Jelinek <jakub@redhat.com>
27298 PR tree-optimization/57104
27299 * tsan.c (instrument_expr): Don't instrument accesses to
27300 DECL_HARD_REGISTER VAR_DECLs.
27302 2013-04-30 Richard Biener <rguenther@suse.de>
27304 * function.h (loops_for_fn): New inline function.
27305 (set_loops_for_fn): Likewise.
27306 * cfgloop.h (place_new_loop): Add struct function parameter.
27307 (get_loop): Likewise.
27308 (get_loops): Likewise.
27309 (number_of_loops): Likewise.
27310 (fel_next): Adjust.
27311 (fel_init): Likewise.
27312 * cfg.c (get_loop_copy): Adjust.
27313 * cfgloop.c (flow_loops_dump): Likewise.
27314 (record_loop_exits): Likewise.
27315 (verify_loop_structure): Likewise.
27316 * cfgloopanal.c (mark_irreducible_loops): Likewise.
27317 (estimate_reg_pressure_cost): Likewise.
27318 (mark_loop_exit_edges): Likewise.
27319 * cfgloopmanip.c (place_new_loop): Likewise.
27320 (add_loop): Likewise.
27321 (duplicate_loop): Likewise.
27322 * graph.c (draw_cfg_nodes): Likewise.
27323 * graphite-clast-to-gimple.c (translate_clast_user): Likewise.
27324 * graphite-sese-to-poly.c (build_scop_scattering): Likewise.
27325 (extract_affine_chrec): Likewise.
27326 (build_scop_iteration_domain): Likewise.
27327 * graphite.c (graphite_initialize): Likewise.
27328 * ira-build.c (create_loop_tree_nodes): Likewise.
27329 (more_one_region_p): Likewise.
27330 (rebuild_regno_allocno_maps): Likewise.
27331 (mark_loops_for_removal): Likewise.
27332 (mark_all_loops_for_removal): Likewise.
27333 (remove_unnecessary_regions): Likewise.
27334 (ira_build): Likewise.
27335 * ira-emit.c (setup_entered_from_non_parent_p): Likewise.
27336 * loop-init.c (fix_loop_structure): Likewise.
27337 (gate_rtl_move_loop_invariants): Likewise.
27338 (gate_rtl_unswitch): Likewise.
27339 (gate_rtl_unroll_and_peel_loops): Likewise.
27340 (rtl_doloop): Likewise.
27341 * lto-streamer-in.c (input_cfg): Likewise.
27342 * lto-streamer-out.c (output_cfg): Likewise.
27343 * modulo-sched.c (sms_schedule): Likewise.
27344 * predict.c (tree_estimate_probability): Likewise.
27345 (tree_estimate_probability_driver): Likewise.
27346 (estimate_loops): Likewise.
27347 * tree-cfg.c (fixup_loop_arrays_after_move): Likewise.
27348 (move_sese_region_to_fn): Likewise.
27349 (debug_loop_num): Likewise.
27350 * tree-chrec.c (chrec_evaluate): Likewise.
27351 (hide_evolution_in_other_loops_than_loop): Likewise.
27352 (chrec_component_in_loop_num): Likewise.
27353 (reset_evolution_in_loop): Likewise.
27354 (evolution_function_is_invariant_rec_p): Likewise.
27355 * tree-if-conv.c (main_tree_if_conversion): Likewise.
27356 * tree-inline.c (copy_loops): Likewise.
27357 (copy_cfg_body): Likewise.
27358 (tree_function_versioning): Likewise.
27359 * tree-loop-distribution.c (rdg_flag_loop_exits): Likewise.
27360 * tree-scalar-evolution.c (chrec_contains_symbols_defined_in_loop):
27362 (add_to_evolution_1): Likewise.
27363 (scev_const_prop): Likewise.
27364 * tree-scalar-evolution.h (get_chrec_loop): Likewise.
27365 * tree-ssa-loop-ch.c (copy_loop_headers): Likewise.
27366 * tree-ssa-loop-im.c (analyze_memory_references): Likewise.
27367 (tree_ssa_lim_initialize): Likewise.
27368 * tree-ssa-loop-manip.c (rewrite_into_loop_closed_ssa): Likewise.
27369 (verify_loop_closed_ssa): Likewise.
27370 * tree-ssa-loop.c (tree_ssa_loop_init): Likewise.
27371 (tree_ssa_loop_im): Likewise.
27372 (tree_ssa_loop_unswitch): Likewise.
27373 (tree_vectorize): Likewise.
27374 (check_data_deps): Likewise.
27375 (tree_ssa_loop_ivcanon): Likewise.
27376 (tree_ssa_loop_bounds): Likewise.
27377 (tree_complete_unroll): Likewise.
27378 (tree_complete_unroll_inner): Likewise.
27379 (tree_parallelize_loops): Likewise.
27380 (tree_ssa_loop_prefetch): Likewise.
27381 (tree_ssa_loop_ivopts): Likewise.
27382 * tree-ssa.c (execute_update_addresses_taken): Liekwise.
27383 * tree-vectorizer.c (vectorize_loops): Likewise.
27385 2013-04-29 Mike Frysinger <vapier@gentoo.org>
27387 * config/arm/bpabi.h (EABI_LINK_SPEC): Define.
27388 (BPABI_LINK_SPEC): Use new EABI_LINK_SPEC.
27389 * config/arm/linux-eabi.h (LINK_SPEC): Replace BE8_LINK_SPEC
27390 with EABI_LINK_SPEC.
27392 2013-04-29 Uros Bizjak <ubizjak@gmail.com>
27395 * config/i386/i386.md (*zero_extendsidi2): Add "!" to m->?*y
27398 2013-04-29 Vladimir Makarov <vmakarov@redhat.com>
27401 * lra-constraints.c (process_alt_operands): Discourage a bit more
27402 using memory for pseudos. Print cost dump for alternatives.
27403 Modify cost values for conflicts with early clobbers.
27404 (curr_insn_transform): Spill pseudos reassigned to NO_REGS.
27406 2013-04-29 Uros Bizjak <ubizjak@gmail.com>
27409 * config/i386/i386.c (ix86_expand_vec_perm): Validize constant memory.
27411 2013-04-29 Ian Bolton <ian.bolton@arm.com>
27413 * config/aarch64/aarch64.md (movsi_aarch64): Support LDR/STR
27414 from/to S register.
27415 (movdi_aarch64): Support LDR/STR from/to D register.
27417 2013-04-29 Ian Bolton <ian.bolton@arm.com>
27419 * common/config/aarch64/aarch64-common.c: Enable REE pass at O2
27420 or higher by default.
27422 2013-04-29 Richard Biener <rguenther@suse.de>
27424 PR middle-end/57075
27425 * tree-inline.c (copy_edges_for_bb): Still split the bbs,
27426 even if not adding abnormal edges for calls that can make
27429 2013-04-29 Richard Biener <rguenther@suse.de>
27431 PR middle-end/57103
27432 * tree-cfg.c (move_stmt_op): Fix condition under which to update
27434 (move_stmt_r): Remove redundant checking.
27436 2013-04-29 Teresa Johnson <tejohnson@google.com>
27439 * basic-block.h (apply_scale): New function.
27440 (apply_probability): Use apply_scale.
27441 * gimple-streamer-in.c (input_bb): Ditto.
27442 * lto-streamer-in.c (input_cfg): Ditto.
27443 * lto-cgraph.c (merge_profile_summaries): Ditto.
27444 * tree-optimize.c (execute_fixup_cfg): Ditto.
27445 * tree-inline.c (copy_bb): Update comment to use apply_scale.
27446 (copy_edges_for_bb): Ditto.
27447 (copy_cfg_body): Ditto.
27449 2013-04-29 Tom de Vries <tom@codesourcery.com>
27451 * tree-ssa-tail-merge.c (find_same_succ_bb): Skip loop latch bbs.
27452 (replace_block_by): Don't set LOOPS_NEED_FIXUP.
27453 (tail_merge_optimize): Handle current_loops == NULL.
27455 2013-04-26 Jeff Law <law@redhat.com>
27457 * tree-vrp.c (range_fits_type_p): Move to earlier point in file.
27458 (simplify_cond_using_ranges): Generalize code to simplify
27459 COND_EXPRs where one argument is a constant and the other
27460 is an SSA_NAME created by an integral type conversion.
27462 2013-04-29 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
27464 * config/arm/arm.md (store_minmaxsi): Use only when
27465 optimize_insn_for_size_p.
27467 2013-04-29 Christian Bruel <christian.bruel@st.com>
27470 * sh.md (tstsi_t_zero_extract_eq): Set mode for operand 0.
27472 2013-04-29 Richard Biener <rguenther@suse.de>
27474 PR middle-end/57089
27475 * omp-low.c (expand_omp_taskreg): If the parent function had a broken
27476 loop tree make sure to schedule a fixup for the child as well.
27477 (expand_omp_for_generic): Properly add loops.
27478 (expand_omp_for_static_nochunk): Likewise.
27479 (expand_omp_for_static_chunk): Likewise.
27480 (expand_omp_for): For the degenerate case fixup loops.
27481 (expand_omp_sections): Fix default bb placement in loops.
27482 (expand_omp_atomic_pipeline): Properly add loops.
27484 2013-04-29 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
27486 * predict.c: Fix typo in comment above #define PROB_VERY_UNLIKELY.
27488 2013-04-29 Tom de Vries <tom@codesourcery.com>
27490 * tree-ssa-tail-merge.c: Update header comment.
27492 2013-04-29 James Greenhalgh <james.greenhalgh@arm.com>
27494 * config/aarch64/arm_neon.h
27495 (vcvt<sd>_f<32,64>_s<32,64>): Rewrite in C.
27496 (vcvt<q>_f<32,64>_s<32,64>): Rewrite using builtins.
27497 (vcvt_<high_>_f<32,64>_f<32,64>): Likewise.
27498 (vcvt<qsd>_<su><32,64>_f<32,64>): Likewise.
27499 (vcvta<qsd>_<su><32,64>_f<32,64>): Likewise.
27500 (vcvtm<qsd>_<su><32,64>_f<32,64>): Likewise.
27501 (vcvtn<qsd>_<su><32,64>_f<32,64>): Likewise.
27502 (vcvtp<qsd>_<su><32,64>_f<32,64>): Likewise.
27504 2013-04-29 James Greenhalgh <james.greenhalgh@arm.com>
27506 * config/aarch64/aarch64-simd.md
27507 (<optab><VDQF:mode><fcvt_target>2): New, maps to fix, fixuns.
27508 (<fix_trunc_optab><VDQF:mode><fcvt_target>2): New, maps to
27509 fix_trunc, fixuns_trunc.
27510 (ftrunc<VDQF:mode>2): New.
27511 * config/aarch64/iterators.md (optab): Add fix, fixuns.
27512 (fix_trunc_optab): New.
27514 2013-04-29 James Greenhalgh <james.greenhalgh@arm.com>
27516 * config/aarch64/aarch64-builtins.c
27517 (aarch64_builtin_vectorized_function): Vectorize over ifloorf,
27518 iceilf, lround, iroundf.
27520 2013-04-29 Uros Bizjak <ubizjak@gmail.com>
27523 * config/i386/i386.h (enum ix86_tune_indices)
27524 <X86_TUNE_INTER_UNIT_MOVES_TO_VEC, X86_TUNE_INTER_UNIT_MOVES_FROM_VEC>:
27525 New, split from X86_TUNE_INTER_UNIT_MOVES.
27526 <X86_TUNE_INTER_UNIT_MOVES>: Remove.
27527 (TARGET_INTER_UNIT_MOVES_TO_VEC): New define.
27528 (TARGET_INTER_UNIT_MOVES_FROM_VEC): Ditto.
27529 (TARGET_INTER_UNIT_MOVES): Remove.
27530 * config/i386/i386.c (initial_ix86_tune_features): Update.
27531 Disable X86_TUNE_INTER_UNIT_MOVES_FROM_VEC for m_ATHLON_K8 only.
27532 (ix86_expand_convert_uns_didf_sse): Use
27533 TARGET_INTER_UNIT_MOVES_TO_VEC instead of TARGET_INTER_UNIT_MOVES.
27534 (ix86_expand_vector_init_one_nonzero): Ditto.
27535 (ix86_expand_vector_init_interleave): Ditto.
27536 (inline_secondary_memory_needed): Return true for moves from SSE class
27537 registers for !TARGET_INTER_UNIT_MOVES_FROM_VEC targets and for moves
27538 to SSE class registers for !TARGET_INTER_UNIT_MOVES_TO_VEC targets.
27539 * config/i386/constraints.md (Yi, Ym): Depend on
27540 TARGET_INTER_UNIT_MOVES_TO_VEC.
27541 (Yj, Yn): New constraints.
27542 * config/i386/i386.md (*movdi_internal): Change constraints of
27543 operand 1 from Yi to Yj and from Ym to Yn.
27544 (*movsi_internal): Ditto.
27545 (*movdf_internal): Ditto.
27546 (*movsf_internal): Ditto.
27547 (*float<SWI48x:mode><X87MODEF:mode>2_1): Use
27548 TARGET_INTER_UNIT_MOVES_TO_VEC instead of TARGET_INTER_UNIT_MOVES.
27549 (*float<SWI48x:mode><X87MODEF:mode>2_1 splitters): Ditto.
27550 (floatdi<X87MODEF:mode>2_i387_with_xmm): Ditto.
27551 (floatdi<X87MODEF:mode>2_i387_with_xmm splitters): Ditto.
27552 * config/i386/sse.md (movdi_to_sse): Ditto.
27553 (sse2_stored): Change constraint of operand 1 from Yi to Yj.
27554 Use TARGET_INTER_UNIT_MOVES_FROM_VEC instead of
27555 TARGET_INTER_UNIT_MOVES.
27556 (sse_storeq_rex64): Change constraint of operand 1 from Yi to Yj.
27557 (sse_storeq_rex64 splitter): Use TARGET_INTER_UNIT_MOVES_FROM_VEC
27558 instead of TARGET_INTER_UNIT_MOVES.
27559 * config/i386/mmx.md (*mov<mode>_internal): Change constraint of
27560 operand 1 from Yi to Yj and from Ym to Yn.
27562 2013-04-29 James Greenhalgh <james.greenhalgh@arm.com>
27564 * config/aarch64/aarch64-simd-builtins.def (vec_unpacks_hi_): New.
27565 (float_truncate_hi_): Likewise.
27566 (float_extend_lo_): Likewise.
27567 (float_truncate_lo_): Likewise.
27568 * config/aarch64/aarch64-simd.md (vec_unpacks_lo_v4sf): New.
27569 (aarch64_float_extend_lo_v2df): Likewise.
27570 (vec_unpacks_hi_v4sf): Likewise.
27571 (aarch64_float_truncate_lo_v2sf): Likewise.
27572 (aarch64_float_truncate_hi_v4sf): Likewise.
27573 (vec_pack_trunc_v2df): Likewise.
27574 (vec_pack_trunc_df): Likewise.
27576 2013-04-29 James Greenhalgh <james.greenhalgh@arm.com>
27578 * config/aarch64/aarch64-builtins.c
27579 (aarch64_fold_builtin): Fold float conversions.
27580 * config/aarch64/aarch64-simd-builtins.def
27581 (floatv2si, floatv4si, floatv2di): New.
27582 (floatunsv2si, floatunsv4si, floatunsv2di): Likewise.
27583 * config/aarch64/aarch64-simd.md
27584 (<optab><fcvt_target><VDQF:mode>2): New, expands to float and floatuns.
27585 * config/aarch64/iterators.md (FLOATUORS): New.
27586 (optab): Add float, floatuns.
27587 (su_optab): Likewise.
27589 2013-04-29 James Greenhalgh <james.greenhalgh@arm.com>
27591 * config/aarch64/aarch64-builtins.c
27592 (aarch64_builtin_vectorized_function): Use new names for
27594 * config/aarch64/aarch64-simd-builtins.def (fcvtzs): Split as...
27595 (lbtruncv2sf, lbtruncv4sf, lbtruncv2df): ...This.
27596 (fcvtzu): Split as...
27597 (lbtruncuv2sf, lbtruncuv4sf, lbtruncuv2df): ...This.
27598 (fcvtas): Split as...
27599 (lroundv2sf, lroundv4sf, lroundv2df, lroundsf, lrounddf): ...This.
27600 (fcvtau): Split as...
27601 (lrounduv2sf, lrounduv4sf, lrounduv2df, lroundusf, lroundudf): ...This.
27602 (fcvtps): Split as...
27603 (lceilv2sf, lceilv4sf, lceilv2df): ...This.
27604 (fcvtpu): Split as...
27605 (lceiluv2sf, lceiluv4sf, lceiluv2df, lceilusf, lceiludf): ...This.
27606 (fcvtms): Split as...
27607 (lfloorv2sf, lfloorv4sf, lfloorv2df): ...This.
27608 (fcvtmu): Split as...
27609 (lflooruv2sf, lflooruv4sf, lflooruv2df, lfloorusf, lfloorudf): ...This.
27610 (lfrintnv2sf, lfrintnv4sf, lfrintnv2df, lfrintnsf, lfrintndf): New.
27611 (lfrintnuv2sf, lfrintnuv4sf, lfrintnuv2df): Likewise.
27612 (lfrintnusf, lfrintnudf): Likewise.
27613 * config/aarch64/aarch64-simd.md
27614 (l<fcvt_pattern><su_optab><fcvt_target><VDQF:mode>2): Convert to
27616 (aarch64_fcvt<frint_suffix><su><mode>): Remove.
27617 * config/aarch64/iterators.md (FCVT): Include UNSPEC_FRINTN.
27618 (fcvt_pattern): Likewise.
27620 2013-04-29 James Greenhalgh <james.greenhalgh@arm.com>
27622 * config/aarch64/aarch64-simd.md
27623 (l<fcvt_pattern><su_optab><fcvt_target><VDQF:mode>2): Rename to...
27624 (l<fcvt_pattern><su_optab><VDQF:mode><fcvt_target>2): ... This.
27626 2013-04-29 James Greenhalgh <james.greenhalgh@arm.com>
27628 * config/aarch64/arm_neon.h (vrndq<a,m,n,p>_f<32, 64>): Rename to...
27629 (vrnd<a,m,n,p>q_f<32, 64>): ...This, implement using builtin.
27630 (vrnd<a,m,n,p>_f32): Implement using builtins.
27631 (vrnd<i,x><q>_f<32, 64>): New.
27633 2013-04-29 James Greenhalgh <james.greenhalgh@arm.com>
27635 * config/aarch64/aarch64-builtins.c
27636 (aarch64_builtin_vectorized_function): Fold to standard pattern names.
27637 * config/aarch64/aarch64-simd-builtins.def (frintn): New.
27638 (frintz): Rename to...
27640 (frintp): Rename to...
27642 (frintm): Rename to...
27644 (frinti): Rename to...
27645 (nearbyint): ...this.
27646 (frintx): Rename to...
27648 (frinta): Rename to...
27650 * config/aarch64/aarch64-simd.md
27651 (aarch64_frint<frint_suffix><mode>): Delete.
27652 (<frint_pattern><mode>2): Convert to insn.
27653 * config/aarch64/aarch64.md (unspec): Add UNSPEC_FRINTN.
27654 * config/aarch64/iterators.md (FRINT): Add UNSPEC_FRINTN.
27655 (frint_pattern): Likewise.
27656 (frint_suffix): Likewise.
27658 2013-04-29 Richard Biener <rguenther@suse.de>
27660 PR tree-optimization/57081
27661 * loop-init.c: Include tree-flow.h.
27662 (loop_optimizer_finalize): Free number of iteration estimates.
27663 * Makefile.in (loop-init.o): Add $(TREE_FLOW_H) dependency.
27665 2013-04-29 Jakub Jelinek <jakub@redhat.com>
27667 PR tree-optimization/57083
27668 * tree-vrp.c (extract_range_from_binary_expr_1): For LSHIFT_EXPR with
27669 non-singleton shift count range, zero extend low_bound for uns case.
27671 * config/i386/predicates.md (general_vector_operand): New predicate.
27672 * config/i386/i386.c (const_vector_equal_evenodd_p): New function.
27673 (ix86_expand_mul_widen_evenodd): Force op1 resp. op2 into register
27674 if they aren't nonimmediate operands. If their original values
27675 satisfy const_vector_equal_evenodd_p, don't shift them.
27676 * config/i386/sse.md (mul<mode>3): Use general_vector_operand
27677 predicates. For the SSE4.1 case force operands[{1,2}] into registers
27678 if not nonimmediate_operand.
27679 (vec_widen_smult_even_v4si): Use nonimmediate_operand predicates
27680 instead of register_operand.
27681 (vec_widen_<s>mult_odd_<mode>): Use general_vector_operand predicates.
27683 2013-04-28 Eric Botcazou <ebotcazou@adacore.com>
27685 * stor-layout.c (finalize_size_functions): Allocate a structure and
27686 reset cfun before dumping the functions.
27688 2013-04-27 Jakub Jelinek <jakub@redhat.com>
27690 * config/i386/i386.c (ix86_expand_call): Make cregs_size unsigned.
27693 * config/i386/i386.c (ix86_expand_mul_widen_evenodd): Don't
27694 use xop_pmacsdqh if uns_p.
27695 * config/i386/sse.md (xop_rotr<mode>3): Fix up computation of
27696 the immediate rotate count.
27698 2013-04-26 Vladimir Makarov <vmakarov@redhat.com>
27700 * rtl.h (struct rtx_def): Add comment for field jump.
27701 (LRA_SUBREG_P): New macro.
27702 * recog.c (register_operand): Check LRA_SUBREG_P.
27703 * lra.c (lra): Add note at the end of RTL code. Align non-empty
27705 * lra-spills.c (lra_spill): Align stack after spilling pseudos.
27706 (lra_final_code_change): Skip subreg change for operators.
27707 * lra-eliminations.c (eliminate_regs_in_insn): Make return earlier
27708 if there are no operand changes.
27709 * lra-constraints.c (curr_insn_set): New.
27710 (match_reload): Set LRA_SUBREG_P.
27711 (emit_spill_move): Ditto.
27712 (check_and_process_move): Use curr_insn_set. Process only single
27713 set insns. Don't initialize sec_mem_p and change_p.
27714 (simplify_operand_subreg): Use LRA_SUBREG_P.
27715 (reg_in_class_p): New function.
27716 (process_alt_operands): Use it. Use #if HAVE_ATTR_enabled instead
27717 of #ifdef. Add code to remove cycling.
27718 (process_address): Check EXTRA_CONSTRAINT_STR. Process even if
27719 non-null disp. Reload inner instead of disp when base and index
27720 are null. Try to put lo_sum into register.
27721 (EBB_PROBABILITY_CUTOFF): Redefine probability in percents.
27722 (check_and_process_move): Move code for move cost check to
27723 simple_move_p. Remove equiv_substitution.
27724 (simple_move_p): New function.
27725 (curr_insn_transform): Initialize sec_mem_p and change_p. Set up
27726 curr_insn_set. Call check_and_process_move only for single set
27727 insns. Use the new function. Move call of check_and_process_move
27728 after operand equiv substitution and address process.
27730 2013-04-26 Jakub Jelinek <jakub@redhat.com>
27733 * tree-ssa-uninit.c (compute_uninit_opnds_pos): In functions
27734 with nonlocal goto receivers or returns twice calls, ignore
27735 unininitialized values from abnormal edges to nl goto receiver
27736 or returns twice call.
27738 2013-04-26 Jakub Jelinek <jakub@redhat.com>
27740 PR tree-optimization/57051
27741 * fold-const.c (const_binop): Handle VEC_LSHIFT_EXPR
27742 and VEC_RSHIFT_EXPR if shift count is a multiple of element
27745 2013-04-26 Richard Biener <rguenther@suse.de>
27747 * omp-low.c (finalize_task_copyfn): Do not drop PROP_loops.
27748 (expand_omp_taskreg): Likewise. Mark loops for fixup.
27749 * tree-cfg.c (move_block_to_fn): Remap loop fathers.
27750 (fixup_loop_arrays_after_move): New function.
27751 (move_sese_region_to_fn): Properly outline the loop tree parts
27752 of the SESE region.
27754 2013-04-26 Uros Bizjak <ubizjak@gmail.com>
27756 * config/i386/i386.md (type, unit): Fix long lines.
27758 2013-04-26 Richard Biener <rguenther@suse.de>
27760 * Makefile.in (lto-streamer-in.o): Add $(CFGLOOP_H) dependency.
27761 (lto-streamer-out.o): Likewise.
27762 * cfgloop.c (init_loops_structure): Export, add struct function
27763 argument and adjust.
27764 (flow_loops_find): Adjust.
27765 * cfgloop.h (enum loop_estimation): Add EST_LAST.
27766 (init_loops_structure): Declare.
27767 * lto-streamer-in.c: Include cfgloop.h.
27768 (input_cfg): Input the loop tree.
27769 * lto-streamer-out.c: Include cfgloop.h.
27770 (output_cfg): Output the loop tree.
27771 (output_struct_function_base): Do not drop PROP_loops.
27773 2013-03-26 Richard Biener <rguenther@suse.de>
27775 * tree-cfg.c (execute_build_cfg): Build the loop tree.
27776 (pass_build_cfg): Provide PROP_loops.
27777 (move_sese_region_to_fn): Remove loops that are outlined into fn
27779 * tree-inline.c: Include cfgloop.h.
27780 (initialize_cfun): Do not drop PROP_loops.
27781 (copy_loops): New function.
27782 (copy_cfg_body): Copy loop structure.
27783 (tree_function_versioning): Initialize destination loop tree.
27784 * tree-ssa-loop.c (pass_tree_loop_init): Do not provide PROP_loops.
27785 (pass_parallelize_loops): Do IL verification.
27786 * loop-init.c (loop_optimizer_init): Fixup loops if required.
27787 * tree-optimize.c (execute_fixup_cfg): If we need to cleanup
27788 the CFG make sure we fixup loops as well.
27789 * tree-ssa-tail-merge.c: Include cfgloop.h.
27790 (replace_block_by): When merging loop latches mark loops for fixup.
27791 * lto-streamer-out.c (output_struct_function_base): Drop
27792 PROP_loops for now.
27793 * tree-ssa-phiopt.c: Include tree-scalar-evolution.h.
27794 (tree_ssa_cs_elim): Initialize the loop optimizer and SCEV.
27795 * ipa-split.c: Include cfgloop.h.
27796 (split_function): Add the new return block to the loop tree root.
27797 * tree-cfgcleanup.c (remove_forwarder_block_with_phi): Return
27798 whether we have removed the forwarder block.
27799 (merge_phi_nodes): If we removed a forwarder mark loops for fixup.
27800 * cfgloop.h (place_new_loop): Declare.
27801 * cfgloopmanip.c (place_new_loop): Export.
27802 * Makefile.in (asan.o): Add $(CFGLOOP_H) dependency.
27803 (tree-switch-conversion.o): Likewise.
27804 (tree-complex.o): Likewise.
27805 (tree-inline.o): Likewise.
27806 (tree-ssa-tailmerge.o): Likewise.
27807 (ipa-split.o): Likewise.
27808 (tree-ssa-phiopt.o): Add $(SCEV_H) dependency.
27809 (tree-ssa-copy.o): Likewise.
27810 * tree-switch-conversion.c: Include cfgloop.h
27811 (process_switch): If we emit a bit-test cascade, schedule loops
27813 * tree-complex.c: Include cfgloop.h.
27814 (expand_complex_div_wide): Properly add new basic-blocks to loops.
27815 * asan.c: Include cfgloop.h.
27816 (create_cond_insert_point): Properly add new basic-blocks to
27817 loops, schedule loop fixup.
27818 * cfgloop.c (verify_loop_structure): Check that looks are not
27820 * omp-low.c (expand_parallel_call): Properly add new basic-blocks
27822 (expand_omp_for_generic): Likewise.
27823 (expand_omp_sections): Likewise.
27824 (expand_omp_atomic_pipeline): Schedule loops for fixup.
27825 * tree-ssa-copy.c: Include tree-scalar-evolution.h.
27826 (fini_copy_prop): Disable DCE in substitute_and_fold if SCEV
27827 is initialized, not when loops are present.
27828 * tree-parloops.c (parallelize_loops): Remove checking here.
27829 * passes.c (init_optimization_passes): Schedule a copy-propagation
27830 pass before complete unrolling of inner loops.
27832 2013-04-26 Jakub Jelinek <jakub@redhat.com>
27834 * Makefile.in (toplev.o): Depend on diagnostic-color.h.
27835 * diagnostic-color.c (should_colorize): Remove _WIN32 version.
27836 (colorize_init): Add argument to _WIN32 version.
27837 * toplev.c: Include diagnostic-color.h.
27838 (process_options): Default to -fdiagnostics-color=auto if
27839 GCC_COLORS env var is in the environment.
27840 * common.opt (fdiagnostics-color=): Add Var and Init.
27841 * doc/invoke.texi (-fdiagnostics-color=): Document that if GCC_COLORS
27842 env var is in the environment, the default is auto rather than never.
27844 * diagnostic.h (file_name_as_prefix): Add context argument.
27845 * diagnostic.c (file_name_as_prefix): Likewise. Colorize
27846 the string as locus.
27847 * langhooks.c (lhd_print_error_function): Adjust caller.
27849 2013-04-25 Lawrence Crowl <crowl@google.com>
27851 * var-tracking.c (shared_hash_def::htab):
27852 Change type to hash_table. Update dependent calls and types.
27854 2013-04-25 Lawrence Crowl <crowl@google.com>
27856 * Makefile.in: Update as needed below.
27858 * alloc-pool.c (static hash_table <alloc_pool_hasher> alloc_pool_hash):
27859 Move declaration to after the type's method definitons.
27861 * attribs.c (htab_t scoped_attributes::attribute_hash):
27862 Change type to hash_table. Update dependent calls and types.
27864 * bitmap.c (htab_t bitmap_desc_hash):
27865 Change type to hash_table. Update dependent calls and types.
27867 * cselib.c (htab_t cselib_hash_table):
27868 Change type to hash_table. Update dependent calls and types.
27870 * data-streamer.h (struct string_slot): Move to lto-streamer.h.
27871 (hash_string_slot_node): Move implementation into lto-streamer.h
27872 struct string_slot_hasher.
27873 (eq_string_slot_node): Likewise.
27875 * data-streamer-out.c: Update output_block::string_hash_table
27876 dependent calls and types.
27878 * dwarf2cfi.c (htab_t trace_index):
27879 Change type to hash_table. Update dependent calls and types.
27881 * dwarf2out.c (htab_t break_out_includes::cu_hash_table):
27882 Change type to hash_table. Update dependent calls and types.
27883 (htab_t copy_decls_for_unworthy_types::decl_table): Likewise.
27884 (htab_t optimize_external_refs::map): Likewise.
27885 (htab_t output_comp_unit::extern_map): Likewise.
27886 (htab_t output_comdat_type_unit::extern_map): Likewise.
27887 (htab_t output_macinfo::macinfo_htab): Likewise.
27888 (htab_t optimize_location_lists::htab): Likewise.
27889 (htab_t dwarf2out_finish::comdat_type_table): Likewise.
27891 * except.c (htab_t ehspec_hash_type):
27892 Change type to hash_table. Update dependent calls and types.
27893 (assign_filter_values::ttypes): Likewise.
27894 (assign_filter_values::ehspec): Likewise.
27895 (sjlj_assign_call_site_values::ar_hash): Likewise.
27896 (convert_to_eh_region_ranges::ar_hash): Likewise.
27898 * gcse.c (htab_t pre_ldst_table):
27899 Change type to hash_table. Update dependent calls and types.
27901 * ggc-common.c (htab_t saving_htab):
27902 Change type to hash_table. Update dependent calls and types.
27903 (htab_t loc_hash): Likewise.
27904 (htab_t ptr_hash): Likewise.
27905 (call_count): Rename ggc_call_count.
27906 (call_alloc): Rename ggc_call_alloc.
27907 (loc_descriptor): Rename make_loc_descriptor.
27908 (add_statistics): Rename ggc_add_statistics.
27910 * ggc-common.c (saving_htab):
27911 Change type to hash_table. Update dependent calls and types.
27913 * gimple.h (struct gimplify_ctx): Move to gimplify-ctx.h.
27914 (push_gimplify_context): Likewise.
27915 (pop_gimplify_context): Likewise.
27916 (struct gimple_temp_hash_elt): Added.
27917 (struct gimplify_hasher): Likewise.
27918 (struct gimplify_ctx.temp_htab):
27919 Change type to hash_table. Update dependent calls and types.
27921 * gimple-fold.c: Include gimplify-ctx.h.
27923 * gimple-ssa-strength-reduction.c (htab_t base_cand_map):
27924 Change type to hash_table. Update dependent calls and types.
27925 (base_cand_dump_callback): Rename to ssa_base_cand_dump_callback to
27926 avoid potential global name collision.
27928 * gimplify.c: Include gimplify-ctx.h.
27929 (struct gimple_temp_hash_elt): Move to gimplify-ctx.h.
27930 (htab_t gimplify_ctx::temp_htab):
27931 Update dependent calls and types for new type hash_table.
27932 (gimple_tree_hash): Move into gimplify_hasher in gimplify-ctx.h.
27933 (gimple_tree_eq): Move into gimplify_hasher in gimplify-ctx.h.
27935 * gimplify-ctx.h: New.
27936 (struct gimple_temp_hash_elt): Move from gimplify.c.
27937 (class gimplify_hasher): New.
27938 (struct gimplify_ctx): Move from gimple.h.
27939 (htab_t gimplify_ctx::temp_htab):
27940 Change type to hash_table. Update dependent calls and types.
27942 * graphite-clast-to-gimple.c: Include graphite-htab.h.
27943 (htab_t ivs_params::newivs_index):
27944 Change type to hash_table. Update dependent calls and types.
27945 (htab_t ivs_params::params_index): Likewise.
27946 (htab_t print_generated_program::params_index): Likewise.
27947 (htab_t gloog::newivs_index): Likewise.
27948 (htab_t gloog::params_index): Likewise.
27950 * graphite.c: Include graphite-htab.h.
27951 4htab_t graphite_transform_loops::bb_pbb_mapping):
27952 Change type to hash_table. Update dependent calls and types.
27954 * graphite-clast-to-gimple.h: (extern gloog) Move to graphite-htab.h.
27955 (bb_pbb_map_hash): Fold into bb_pbb_htab_type in graphite-htab.h.
27956 (eq_bb_pbb_map): Fold into bb_pbb_htab_type in graphite-htab.h.
27958 * graphite-dependences.c: Include graphite-htab.h.
27959 (loop_is_parallel_p): Change hash table type of parameter.
27961 * graphite-htab.h: New.
27962 (typedef hash_table <bb_pbb_hasher> bb_pbb_htab_type): New.
27963 (extern find_pbb_via_hash): Move from graphite-poly.h.
27964 (extern loop_is_parallel_p): Move from graphite-poly.h.
27965 (extern get_loop_body_pbbs): Move from graphite-poly.h.
27967 * graphite-poly.h (extern find_pbb_via_hash): Move to graphite-htab.h.
27968 (extern loop_is_parallel_p): Move to graphite-htab.h.
27969 (extern get_loop_body_pbbs): Move to graphite-htab.h.
27971 * haifa-sched.c (htab_t delay_htab):
27972 Change type to hash_table. Update dependent calls and types.
27973 (htab_t delay_htab_i2): Likewise.
27975 * ira-color.c (htab_t allocno_hard_regs_htab):
27976 Change type to hash_table. Update dependent calls and types.
27978 * ira-costs.c (htab_t cost_classes_htab):
27979 Change type to hash_table. Update dependent calls and types.
27981 * loop-invariant.c (htab_t merge_identical_invariants::eq):
27982 Change type to hash_table. Update dependent calls and types.
27984 * loop-iv.c (htab_t bivs):
27985 Change type to hash_table. Update dependent calls and types.
27987 * loop-unroll.c (htab_t opt_info::insns_to_split):
27988 Change type to hash_table. Update dependent calls and types.
27989 (htab_t opt_info::insns_with_var_to_expand): Likewise.
27991 * lto-streamer.h (struct string_slot): Move from data-streamer.h
27992 (struct string_slot_hasher): New.
27993 (htab_t output_block::string_hash_table):
27994 Change type to hash_table. Update dependent calls and types.
27996 * lto-streamer-in.c (freeing_string_slot_hasher): New.
27997 (htab_t file_name_hash_table):
27998 Change type to hash_table. Update dependent calls and types.
28000 * lto-streamer-out.c: Update output_block::string_hash_table dependent
28003 * lto-streamer.c (htab_t tree_htab):
28004 Change type to hash_table. Update dependent calls and types.
28006 * omp-low.c: Include gimplify-ctx.h.
28008 * passes.c (htab_t name_to_pass_map):
28009 Change type to hash_table. Update dependent calls and types.
28010 (pass_traverse): Rename to passes_pass_traverse.
28012 * plugin.c (htab_t event_tab):
28013 Change type to hash_table. Update dependent calls and types.
28015 * postreload-gcse.c (htab_t expr_table):
28016 Change type to hash_table. Update dependent calls and types.
28017 (dump_hash_table_entry): Rename dump_expr_hash_table_entry.
28019 * sese.c (debug_rename_map_1): Make extern.
28020 (htab_t copy_bb_and_scalar_dependences::rename_map):
28021 Change type to hash_table. Update dependent calls and types.
28023 * sese.h (extern debug_rename_map): Move to .c file.
28025 * store-motion.c (htab_t store_motion_mems_table):
28026 Change type to hash_table. Update dependent calls and types.
28028 * trans-mem.c (htab_t tm_new_mem_hash):
28029 Change type to hash_table. Update dependent calls and types.
28031 * tree-browser.c (htab_t TB_up_ht):
28032 Change type to hash_table. Update dependent calls and types.
28034 * tree-cfg.c (htab_t discriminator_per_locus):
28035 Change type to hash_table. Update dependent calls and types.
28037 * tree-complex.c: Include tree-hasher.h
28038 (htab_t complex_variable_components):
28039 Change type to hash_table. Update dependent calls and types.
28041 * tree-eh.c (htab_t finally_tree):
28042 Change type to hash_table. Update dependent calls and types.
28044 * tree-flow.h (extern int_tree_map_hash): Moved into tree-hasher
28045 struct int_tree_hasher.
28046 (extern int_tree_map_eq): Likewise.
28047 (uid_decl_map_hash): Removed.
28048 (extern decl_tree_map_eq): Likewise.
28050 * tree-hasher.h: New.
28051 (struct int_tree_hasher): New.
28052 (typedef int_tree_htab_type): New.
28054 * tree-inline.c: Include gimplify-ctx.h.
28056 * tree-mudflap.c: Include gimplify-ctx.h.
28058 * tree-parloops.c: Include tree-hasher.h.
28059 (htab_t eliminate_local_variables_stmt::decl_address):
28060 Change type to hash_table. Update dependent calls and types.
28061 (htab_t separate_decls_in_region::decl_copies): Likewise.
28063 * tree-scalar-evolution.c (htab_t resolve_mixers::cache):
28064 Change type to hash_table. Update dependent calls and types.
28066 * tree-sra.c (candidates):
28067 Change type to hash_table. Update dependent calls and types.
28069 * tree-ssa.c (int_tree_map_eq): Moved into struct int_tree_hasher
28071 (int_tree_map_hash): Likewise.
28073 * tree-ssa-dom.c (htab_t avail_exprs):
28074 Change type to hash_table. Update dependent calls and types.
28076 * tree-ssa-live.c (var_map_base_init::tree_to_index):
28077 Change type to hash_table. Update dependent calls and types.
28079 * tree-ssa-loop-ivopts.c (struct ivopts_data.inv_expr_tab):
28080 Change type to hash_table. Update dependent calls and types.
28082 * tree-ssa-phiopt.c (seen_ssa_names):
28083 Change type to hash_table. Update dependent calls and types.
28085 * tree-ssa-strlen.c (decl_to_stridxlist_htab):
28086 Change type to hash_table. Update dependent calls and types.
28088 * tree-ssa-uncprop.c (equiv):
28089 Change type to hash_table. Update dependent calls and types.
28091 2013-04-25 Jakub Jelinek <jakub@redhat.com>
28093 PR rtl-optimization/57003
28094 * regcprop.c (copyprop_hardreg_forward_1): If ksvd.ignore_set_reg,
28095 call note_stores with kill_clobbered_value callback again after
28096 killing regs_invalidated_by_call.
28098 2013-04-25 James Greenhalgh <james.greenhalgh@arm.com>
28100 * config/aarch64/aarch64-simd.md
28101 (aarch64_simd_bsl<mode>_internal): Rewrite RTL to not use UNSPEC_BSL.
28102 (aarch64_simd_bsl<mode>): Likewise.
28103 * config/aarch64/iterators.md (unspec): Remove UNSPEC_BSL.
28105 2013-04-25 Marek Polacek <polacek@redhat.com>
28107 PR tree-optimization/57066
28108 * builtins.c (fold_builtin_logb): Return +Inf for -Inf.
28110 2013-04-25 James Greenhalgh <james.greenhalgh@arm.com>
28112 * config/aarch64/aarch64-simd.md (neg<mode>2): Use VDQ iterator.
28114 2013-04-25 James Greenhalgh <james.greenhalgh@arm.com>
28116 * config/aarch64/aarch64-builtins.c
28117 (aarch64_fold_builtin): New.
28118 * config/aarch64/aarch64-protos.h (aarch64_fold_builtin): New.
28119 * config/aarch64/aarch64.c (TARGET_FOLD_BUILTIN): Define.
28120 * config/aarch64/aarch64-simd-builtins.def (abs): New.
28121 * config/aarch64/arm_neon.h
28122 (vabs<q>_<f32, 64>): Implement using __builtin_aarch64_fabs.
28124 2013-04-25 James Greenhalgh <james.greenhalgh@arm.com>
28125 Tejas Belagod <tejas.belagod@arm.com>
28127 * config/aarch64/aarch64-builtins.c
28128 (aarch64_gimple_fold_builtin): New.
28129 * config/aarch64/aarch64-protos.h (aarch64_gimple_fold_builtin): New.
28130 * config/aarch64/aarch64-simd-builtins.def (addv): New.
28131 * config/aarch64/aarch64-simd.md (addpv4sf): New.
28132 (addvv4sf): Update.
28133 * config/aarch64/aarch64.c (TARGET_GIMPLE_FOLD_BUILTIN): Define.
28135 2013-04-25 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
28137 * config/aarch64/aarch64.md
28138 (*cmp_swp_<optab><ALLX:mode>_shft_<GPI:mode>): New pattern.
28140 2013-04-25 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
28142 * config/aarch64/aarch64.md (*ngc<mode>): New pattern.
28143 (*ngcsi_uxtw): New pattern.
28145 2013-04-25 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
28146 Julian Brown <julian@codesourcery.com>
28148 * config/arm/arm.c (neon_builtin_type_mode): Add T_V4HF.
28149 (TB_DREG): Add T_V4HF.
28150 (v4hf_UP): New macro.
28151 (neon_itype): Add NEON_FLOAT_WIDEN, NEON_FLOAT_NARROW.
28152 (arm_init_neon_builtins): Handle NEON_FLOAT_WIDEN, NEON_FLOAT_NARROW.
28153 Handle initialisation of V4HF. Adjust initialisation of reinterpret
28155 (arm_expand_neon_builtin): Handle NEON_FLOAT_WIDEN, NEON_FLOAT_NARROW.
28156 (arm_vector_mode_supported_p): Handle V4HF.
28157 (arm_mangle_map): Handle V4HFmode.
28158 * config/arm/arm.h (VALID_NEON_DREG_MODE): Add V4HF.
28159 * config/arm/arm_neon_builtins.def: Add entries for
28160 vcvtv4hfv4sf, vcvtv4sfv4hf.
28161 * config/arm/neon.md (neon_vcvtv4sfv4hf): New pattern.
28162 (neon_vcvtv4hfv4sf): Likewise.
28163 * config/arm/neon-gen.ml: Handle half-precision floating point
28165 * config/arm/neon-testgen.ml: Handle Requires_FP_bit feature.
28166 * config/arm/arm_neon.h: Regenerate.
28167 * config/arm/neon.ml (type elts): Add F16.
28168 (type vectype): Add T_float16x4, T_floatHF.
28169 (type vecmode): Add V4HF.
28170 (type features): Add Requires_FP_bit feature.
28171 (elt_width): Handle F16.
28172 (elt_class): Likewise.
28173 (elt_of_class_width): Likewise.
28174 (mode_of_elt): Refactor.
28175 (type_for_elt): Handle F16, fix error messages.
28176 (vectype_size): Handle T_float16x4.
28177 (vcvt_sh): New function.
28178 (ops): Add entries for vcvt_f16_f32, vcvt_f32_f16.
28179 (string_of_vectype): Handle T_floatHF, T_float16, T_float16x4.
28180 (string_of_mode): Handle V4HF.
28181 * doc/arm-neon-intrinsics.texi: Regenerate.
28183 2013-04-25 James Greenhalgh <james.greenhalgh@arm.com>
28185 * config/aarch64/aarch64.c (aarch64_print_operand): Fix asm_fprintf
28186 format specifier in 'X' case.
28188 2013-04-25 Alan Modra <amodra@gmail.com>
28191 * config/rs6000/rs6000.md (rotlsi3_internal7): Rename to
28192 rotlsi3_internal7le and condition on !BYTES_BIG_ENDIAN.
28193 (rotlsi3_internal8be): New BYTES_BIG_ENDIAN insn.
28194 Repeat for many other rotate/shift and mask patterns using subregs.
28195 Name lshiftrt insns.
28196 (ashrdisi3_noppc64): Rename to ashrdisi3_noppc64be and condition
28197 on WORDS_BIG_ENDIAN.
28199 2013-04-25 Alan Modra <amodra@gmail.com>
28201 * config.gcc: Support little-endian powerpc-linux targets.
28202 * config/rs6000/linux.h (LINK_OS_LINUX_EMUL): Define.
28203 (LINK_OS_LINUX_SPEC): Define.
28204 * config/rs6000/linuxspe.h (TARGET_DEFAULT):
28205 Preserve MASK_LITTLE_ENDIAN.
28206 * config/rs6000/default64.h (TARGET_DEFAULT): Likewise.
28207 * config/rs6000/linuxaltivec.h (TARGET_DEFAULT): Likewise.
28208 * config/rs6000/linux64.h (OPTION_LITTLE_ENDIAN): Don't zero.
28209 (LINK_OS_LINUX_EMUL32, LINK_OS_LINUX_EMUL64): Define.
28210 (LINK_OS_LINUX_SPEC32, LINK_OS_LINUX_SPEC64): Use above.
28211 * config/rs6000/rs6000.c (output_toc): Don't use .tc for TARGET_ELF.
28212 Correct fp word order for little-endian. Don't shift toc entries
28213 smaller than a word for little-endian.
28214 * config/rs6000/rs6000.md (bswaphi2, bswapsi2 split): Comment.
28215 (bswapdi2 splits): Correct low-part subreg for little-endian.
28216 Remove wrong BYTES_BIG_ENDIAN tests, and rename vars to remove
28217 low/high where such is correct only for be.
28218 * config/rs6000/sysv4.h (SUBTARGET_OVERRIDE_OPTIONS): Allow
28219 little-endian for -mcall-aixdesc.
28221 2013-04-25 Alan Modra <amodra@gmail.com>
28223 * config/rs6000/rs6000.c (rs6000_secondary_reload_inner): Use
28224 replace_equiv_address_nv.
28226 2013-04-25 Alan Modra <amodra@gmail.com>
28228 * config/rs6000/rs6000.c (rs6000_emit_set_long_const): Tidy.
28230 2013-04-24 Vladimir Makarov <vmakarov@redhat.com>
28233 2013-04-24 Vladimir Makarov <vmakarov@redhat.com>
28234 * rtl.h (struct rtx_def): ...
28236 2013-04-24 Vladimir Makarov <vmakarov@redhat.com>
28238 PR rtl-optimizations/57046
28239 * lra-constraints (split_reg): Set up lra_risky_transformations_p
28240 for multi-reg splits.
28242 2013-04-24 H.J. Lu <hongjiu.lu@intel.com>
28244 * config/i386/x86-64.h (ASM_SPEC): Support -mx32.
28246 2013-04-24 Sterling Augustine <saugustine@google.com>
28248 * dwarf2out.c (skeleton_debug_str_hash, add_skeleton_AT_string)
28249 (comp_dir_string, debug_str_dwo_section): New.
28250 (DEBUG_STR_DWO_SECTION): Rename to ...
28251 (DEBUG_DWO_STR_SECTION): ... this.
28252 (DEBUG_NORM_STR_SECTION): Delete.
28253 (DEBUG_STR_SECTION, DEBUG_STR_SECTION_FLAGS): Edit definitions.
28254 (DEBUG_STR_DWO_SECTION_FLAGS): New.
28255 (find_AT_string): Move most logic to ...
28256 (find_AT_string_in_table): ... here. New.
28257 (add_top_level_skeleton_die_attrs): Call comp_dir_string and
28258 add_skeleton_AT_string. Delete logic.
28259 (output_skeleton_debug_sections): Remove call to
28260 add_top_level_skeleton_die_attrs.
28261 (add_comp_dir_attribute): Move logic to comp_dir_string.
28262 (dwarf2out_init): Initialize debug_str_dwo_section.
28263 (output_indirect_string): Call find_string_form.
28264 (output_indirect_strings): Rewrite.
28265 (prune_unused_types): Empty skeleton_debug_str_hash.
28266 Call get_skeleton_type_unit and add_top_level_skeleton_die_attrs.
28267 (dwarf2out_finish): Call output_indirect_strings.
28269 2013-04-24 Paolo Carlini <paolo.carlini@oracle.com>
28271 * doc/cpp.texi: Remove __GXX_EXPERIMENTAL_CXX1Y__.
28273 2013-04-24 Vladimir Makarov <vmakarov@redhat.com>
28275 * rtl.h (struct rtx_def): Add comment for field jump.
28276 (LRA_SUBREG_P): New macro.
28277 * recog.c (register_operand): Check LRA_SUBREG_P.
28278 * lra.c (lra): Add note at the end of RTL code. Align non-empty
28280 * lra-spills.c (lra_spill): Align stack after spilling pseudos.
28281 (lra_final_code_change): Skip subreg change for operators.
28282 * lra-eliminations.c (eliminate_regs_in_insn): Make return earlier
28283 if there are no operand changes.
28284 * lra-constraints.c (curr_insn_set): New.
28285 (match_reload): Set LRA_SUBREG_P.
28286 (emit_spill_move): Ditto.
28287 (check_and_process_move): Use curr_insn_set. Process only single
28288 set insns. Don't initialize sec_mem_p and change_p.
28289 (simplify_operand_subreg): Use LRA_SUBREG_P.
28290 (reg_in_class_p): New function.
28291 (process_alt_operands): Use it. Use #if HAVE_ATTR_enabled instead
28292 of #ifdef. Add code to remove cycling.
28293 (process_address): Check EXTRA_CONSTRAINT_STR. Process even if
28294 non-null disp. Reload inner instead of disp when base and index
28295 are null. Try to put lo_sum into register.
28296 (EBB_PROBABILITY_CUTOFF): Redefine probability in percents.
28297 (check_and_process_move): Move code for move cost check to
28298 simple_move_p. Remove equiv_substitution.
28299 (simple_move_p): New function.
28300 (curr_insn_transform): Initialize sec_mem_p and change_p. Set up
28301 curr_insn_set. Call check_and_process_move only for single set
28302 insns. Use the new function. Move call of check_and_process_move
28303 after operand equiv substitution and address process.
28305 2013-04-24 James Greenhalgh <james.greenhalgh@arm.com>
28307 * config/aarch64/arm_neon.h (vld1<q>_lane*): Fix constraints.
28308 (vld1<q>_dup_<sufp><8, 16, 32, 64>): Likewise.
28309 (vld1<q>_<sufp><8, 16, 32, 64>): Likewise.
28311 2013-04-24 Paolo Carlini <paolo.carlini@oracle.com>
28313 * doc/cpp.texi: Document __GXX_EXPERIMENTAL_CXX1Y__.
28315 2013-04-24 Marek Polacek <polacek@redhat.com>
28317 * tree-scalar-evolution.h (analyze_scalar_evolution): Remove.
28318 * tree-scalar-evolution.c (get_exit_conditions_rec): Likewise.
28319 (select_loops_exit_conditions): Likewise.
28320 (number_of_iterations_for_all_loops): Likewise.
28321 (analyze_scalar_evolution_for_all_loop_phi_nodes): Likewise.
28322 (scev_analysis): Likewise.
28324 2013-04-02 Catherine Moore <clm@codesourcery.com>
28325 Chao-ying Fu <fu@mips.com>
28327 * config/mips/micromips.md (jraddiusp): New pattern.
28328 * config/mips/mips.c (mips_expand_epilogue): Use the JRADDIUSP
28329 instruction if possible.
28331 2013-04-24 Alan Modra <amodra@gmail.com>
28333 * config/rs6000/driver-rs6000.c (elf_dcachebsize): Fix comment pasto.
28335 2013-04-24 Julian Brown <julian@codesourcery.com>
28336 Chung-Lin Tang <cltang@codesourcery.com>
28338 * dwarf2out.c (gen_enumeration_type_die): Fix HOST_BITS_PER_WIDE_INT
28339 dependency behavior in enumeration type DIE generation. Add TODO note
28340 to comments about future DW_FORM_sdata/udata re-work of related code.
28342 2013-04-23 Lawrence Crowl <crowl@google.com>
28344 * Makefile.in: Update as needed below.
28346 * hash-table.h (class hash_table):
28347 Correct many methods with parameter types compare_type to the correct
28348 value_type. (Correct code was unlikely to notice the change.)
28349 (hash_table::elements_with_deleted) New.
28350 (class hashtable::iterator): New.
28351 (hashtable::begin()): New.
28352 (hashtable::end()): New.
28353 (FOR_EACH_HASH_TABLE_ELEMENT): New.
28355 * statistics.c (statistics_hashes):
28356 Change type to hash_table. Update dependent calls and types.
28358 * tree-into-ssa.c (var_infos):
28359 Change type to hash_table. Update dependent calls and types.
28361 * tree-ssa-coalesce.c (struct coalesce_list_d.list):
28362 Change type to hash_table. Update dependent calls and types.
28364 * tree-ssa-loop-im.c (struct mem_ref.refs):
28365 Change type to hash_table. Update dependent calls and types.
28367 * tree-ssa-reassoc.c (undistribute_ops_list::ctable):
28368 Change type to hash_table. Update dependent calls and types.
28370 * tree-ssa-sccvn.c (vn_tables_s::nary):
28371 Change type to hash_table. Update dependent calls and types.
28372 (vn_tables_s::phis): Likewise.
28373 (vn_tables_s::references): Likewise.
28375 * tree-ssa-sccvn.h (vn_nary_op_eq): Update parameter and return types.
28376 (vn_reference_eq): Update parameter and return types.
28378 * tree-ssa-structalias.c (pointer_equiv_class_table):
28379 Change type to hash_table. Update dependent calls and types.
28380 (location_equiv_class_table): Likewise.
28382 * tree-vect-data-refs.c: Consequential changes for making
28383 peeling a hash_table.
28385 * tree-vect-loop.c (new_loop_vec_info): Dependent hash_table update.
28386 (destroy_loop_vec_info): Dependent hash_table update.
28388 * tree-vectorizer.h (peeling_htab):
28389 Change type to hash_table. Update dependent calls and types.
28391 2013-04-23 Shiva Chen <shiva0217@gmail.com>
28393 * lra-assigns.c (find_hard_regno_for): Use lra_reg_val_equal_p
28394 to check the register content is equal or not.
28395 * lra-constraints.c (match_reload): Use lra_assign_reg_val
28396 to assign register content record.
28397 * lra-eliminations.c (update_reg_eliminate): Use
28398 lra_update_reg_val_offset to update register content offset.
28399 * lra-int.h (struct lra_reg): Add offset member.
28400 (lra_reg_val_equal_p): New static inline function.
28401 (lra_update_reg_val_offset): New static inline function.
28402 (lra_assign_reg_val): New static inline function.
28403 * lra.c (lra_create_new_reg): Use lra_assign_reg_val
28404 to assign register content record.
28405 (initialize_lra_reg_info_element): Initial offset to zero.
28407 2013-04-23 Catherine Moore <clm@codesourcery.com>
28409 * config/mips/mips.md (*movhi_internal, *movqi_internal): New
28410 operands. Record compression.
28412 2013-04-23 Xinliang David Li <davidxl@google.com>
28414 * cfghhooks.c (dump_bb_for_graph): Support 'slim' graph dump.
28416 2013-04-23 Richard Biener <rguenther@suse.de>
28418 PR middle-end/57036
28419 * tree-inline.c (copy_edges_for_bb): Add can_make_abnormal_goto
28420 parameter, only add abnormal goto edges from the copied body
28421 if the call could perform abnormal gotos.
28422 (copy_cfg_body): Adjust.
28424 2013-04-23 Sofiane Naci <sofiane.naci@arm.com>
28426 * config/aarch64/aarch64.md (*mov<mode>_aarch64): Add simd attribute.
28428 2013-04-23 Andreas Schwab <schwab@linux-m68k.org>
28430 * coretypes.h (gimple_stmt_iterator): Add struct to make
28433 2013-04-23 Richard Biener <rguenther@suse.de>
28435 PR tree-optimization/57026
28436 * tree-vrp.c (simplify_conversion_using_ranges): Do not propagate
28437 from SSA names occuring in abnormal PHI nodes.
28439 2013-04-22 Andi Kleen <ak@linux.intel.com>
28441 * lto/lto.c (print_lto_report_1): Fix LTO report names.
28443 2013-04-22 Andi Kleen <ak@linux.intel.com>
28445 * lto/lto.c (print_lto_report_1): Declare early.
28446 (read_cgraph_and_symbols): Call print_lto_report_1 early.
28448 2013-04-22 Andi Kleen <ak@linux.intel.com>
28450 * common.opt (-flto-report-wpa): Add.
28451 * doc/invoke.texi (-flto-report-wpa): Add.
28452 * lto/lto.c (do_whole_program_analysis): Check for lto-report-wpa.
28455 2013-04-22 Xinliang David Li <davidxl@google.com>
28457 * graph.c (draw_cfg_node_succ_edges): Add branch probility as label.
28458 * cfghhooks.c (dump_bb_for_graph): Dump profile count and frquency.
28459 * Makefile.in: New dependency
28461 David Daney <ddaney.cavm@gmail.com>
28463 * configure.ac (gcc_cv_as_micromips_support): Use the
28464 --fatal-warnings option.
28465 * configure: Regenerate.
28467 2013-04-22 Marek Polacek <polacek@redhat.com>
28470 * tsan.c (instrument_expr): Don't instrument expression
28471 in case its size is zero.
28473 2013-04-22 Uros Bizjak <ubizjak@gmail.com>
28477 2013-03-17 Uros Bizjak <ubizjak@gmail.com>
28479 * config/alpha/alpha.c (TARGET_LRA_P): New define.
28481 2013-04-22 James Greenhalgh <james.greenhalgh@arm.com>
28483 * coretypes.h (gimple_stmt_iterator_d): Forward declare.
28484 (gimple_stmt_iterator): New typedef.
28485 * gimple.h (gimple_stmt_iterator): Rename to...
28486 (gimple_stmt_iterator_d): ... This.
28487 * doc/tm.texi.in (TARGET_FOLD_BUILTIN): Detail restriction that
28488 trees be valid for GIMPLE and GENERIC.
28489 (TARGET_GIMPLE_FOLD_BUILTIN): New.
28490 * gimple-fold.c (gimple_fold_call): Call target hook
28491 gimple_fold_builtin.
28492 * hooks.c (hook_bool_gsiptr_false): New.
28493 * hooks.h (hook_bool_gsiptr_false): New.
28494 * target.def (fold_stmt): New.
28495 * doc/tm.texi: Regenerate.
28497 2013-04-22 Vladimir Makarov <vmakarov@redhat.com>
28500 * lra-eliminations.c (mark_not_eliminable): Prevent elimination of
28501 a set sp if no stack realignment.
28503 2013-04-22 Nick Clifton <nickc@redhat.com>
28505 * config.gcc (tilegx-linux): Extend extra_objs rather than
28507 (tilepro-linux): Likewise.
28509 2013-04-22 James Greenhalgh <james.greenhalgh@arm.com>
28511 * config/aarch64/aarch64-builtins.c
28513 (CF0, CF1, CF2, CF3, CF4, CF10): New.
28514 (VAR<1-12>): Add MAP parameter.
28515 (BUILTIN_*): Likewise.
28516 * config/aarch64/aarch64-simd-builtins.def: Set MAP parameter.
28517 * config/aarch64/aarch64-simd.md (aarch64_sshl_n<mode>): Remove.
28518 (aarch64_ushl_n<mode>): Likewise.
28519 (aarch64_sshr_n<mode>): Likewise.
28520 (aarch64_ushr_n<mode>): Likewise.
28521 (aarch64_<maxmin><mode>): Likewise.
28522 (aarch64_sqrt<mode>): Likewise.
28523 * config/aarch64/arm_neon.h (vshl<q>_n_*): Use new builtin names.
28524 (vshr<q>_n_*): Likewise.
28526 2013-04-22 James Greenhalgh <james.greenhalgh@arm.com>
28528 * config/aarch64/aarch64-builtins.c
28529 (aarch64_simd_builtin_type_mode): Handle SF types.
28531 (BUILTIN_GPF): Define.
28532 (aarch64_init_simd_builtins): Handle SF types.
28533 * config/aarch64/aarch64-simd-builtins.def (frecpe): Add support.
28534 (frecps): Likewise.
28535 (frecpx): Likewise.
28536 * config/aarch64/aarch64-simd.md
28537 (simd_types): Update simd_frcp<esx> to simd_frecp<esx>.
28538 (aarch64_frecpe<mode>): New.
28539 (aarch64_frecps<mode>): Likewise.
28540 * config/aarch64/aarch64.md (unspec): Add UNSPEC_FRECP<ESX>.
28541 (v8type): Add frecp<esx>.
28542 (aarch64_frecp<FRECP:frecp_suffix><mode>): New.
28543 (aarch64_frecps<mode>): Likewise.
28544 * config/aarch64/iterators.md (FRECP): New.
28545 (frecp_suffix): Likewise.
28546 * config/aarch64/arm_neon.h
28547 (vrecp<esx><qsd>_<fd><32, 64>): Convert to using builtins.
28549 2013-04-22 Christian Bruel <christian.bruel@st.com>
28552 * config/sh/sh.h (enum reg_class): Remove DF_HI_REGS.
28553 (REG_CLASS_NAMES): Idem.
28554 (REG_CLASS_CONTENTS): Idem.
28555 (REGCLASS_HAS_FP_REG): Idem.
28556 * config/sh/sh.c (sh_cannot_change_mode_class): Idem.
28557 (sh_conditional_register_usage): Idem.
28559 2013-04-21 Jeff Law <law@redhat.com>
28561 * tree-ssa-forwprop.c (simplify_conversion_from_bitmask): New function.
28562 (ssa_forward_propagate_and_combine): Use it.
28564 2013-04-19 Vladimir Makarov <vmakarov@redhat.com>
28566 * lra.c: Update the flow chart diagram.
28568 2013-04-19 Vladimir Makarov <vmakarov@redhat.com>
28570 PR rtl-optimization/56847
28571 * lra-constraints.c (process_alt_operands): Discourage alternative
28572 with non-matche doffsettable memory constraint fro memory with
28575 2013-04-19 Richard Biener <rguenther@suse.de>
28577 PR tree-optimization/56982
28578 * builtins.def (BUILT_IN_LONGJMP): longjmp is not a leaf
28580 * gimplify.c (gimplify_call_expr): Notice special calls.
28581 (gimplify_modify_expr): Likewise.
28582 * tree-cfg.c (make_abnormal_goto_edges): Handle setjmp-like
28583 abnormal control flow receivers.
28584 (call_can_make_abnormal_goto): Handle cfun->calls_setjmp
28585 in the same way as cfun->has_nonlocal_labels.
28586 (gimple_purge_dead_abnormal_call_edges): Likewise.
28587 (stmt_starts_bb_p): Make setjmp-like abnormal control flow
28588 receivers start a basic-block.
28590 2013-04-19 Richard Biener <rguenther@suse.de>
28592 * tree-vectorizer.h (struct _slp_instance): Move load_permutation
28594 (struct _slp_tree): ... here. Make it a vector of unsigned ints.
28595 (SLP_INSTANCE_LOAD_PERMUTATION): Remove.
28596 (SLP_TREE_LOAD_PERMUTATION): Add.
28597 (vect_transform_slp_perm_load): Adjust prototype.
28598 * tree-vect-slp.c (vect_free_slp_tree): Adjust.
28599 (vect_free_slp_instance): Likewise.
28600 (vect_create_new_slp_node): Likewise.
28601 (vect_supported_slp_permutation_p): Remove.
28602 (vect_slp_rearrange_stmts): Adjust.
28603 (vect_supported_load_permutation_p): Likewise. Inline
28604 vect_supported_slp_permutation_p here.
28605 (vect_analyze_slp_instance): Compute load permutations per
28606 slp node instead of per instance.
28607 (vect_get_slp_defs): Adjust.
28608 (vect_transform_slp_perm_load): Likewise.
28609 (vect_schedule_slp_instance): Remove redundant code.
28610 (vect_schedule_slp): Remove hack for PR56270, add it ...
28611 * tree-vect-stmts.c (vectorizable_load): ... here, do not
28612 CSE loads for SLP. Adjust.
28614 2013-04-19 Greta Yorsh <Greta.Yorsh@arm.com>
28616 * config/arm/arm.c (load_multiple_sequence, ldm_stm_operation_p): Fix
28617 spelling in two comments.
28619 2013-04-19 Greta Yorsh <Greta.Yorsh@arm.com>
28622 * config/arm/arm.c (load_multiple_sequence): Require SP
28623 as base register for loads if SP is in the register list.
28625 2013-04-19 Martin Jambor <mjambor@suse.cz>
28627 PR tree-optimization/56718
28628 * ipa-cp.c (ipa_value_from_known_type_jfunc): Moved...
28629 * ipa-prop.c (ipa_binfo_from_known_type_jfunc): ...here, renamed
28630 and made public. Adjusted all callers.
28631 (ipa_intraprocedural_devirtualization): New function.
28632 * ipa-prop.h (ipa_binfo_from_known_type_jfunc): Declare.
28633 (ipa_intraprocedural_devirtualization): Likewise.
28634 * Makefile.in (tree-ssa-pre.o): Add ipa-prop.h to dependencies.
28636 2013-04-19 Richard Biener <rguenther@suse.de>
28638 PR tree-optimization/57000
28639 * tree-ssa-reassoc.c (pass_reassoc): Add TODO_update_ssa_only_virtuals.
28641 2013-04-19 Terry Guo <terry.guo@arm.com>
28643 * config/arm/cortex-m4-fpu.md (cortex_m4_v): Delete cpu unit.
28645 (cortex_m4_v_a, cortex_m4_v_b): ... new cpu units.
28646 (cortex_m4_v, cortex_m4_exa_va, cortex_m4_exb_vb): New reservations.
28647 (cortex_m4_fmacs): Use new reservations.
28648 (cortex_m4_f_load, cortex_m4_f_store): Likewise.
28650 2013-04-18 Vladimir Makarov <vmakarov@redhat.com>
28652 PR rtl-optimization/56999
28653 * lra-coalesce.c (coalescable_pseudo_p): Remove 2nd parameter and
28655 (lra_coalesce): Remove split_origin_bitmap and related code.
28656 * lra.c (lra): Coalesce after undoing inheritance. Recreate live
28657 ranges if necessary.
28659 2013-04-18 Uros Bizjak <ubizjak@gmail.com>
28661 * config/i386/i386.c (x86_64_ms_sysv_extra_clobbered_registers):
28663 (ix86_expand_call): Remove clobbered_registers array and use
28664 x86_64_ms_sysv_extra_clobbered_registers instead.
28665 * config/i386/i386.h (x86_64_ms_sysv_extra_clobbered_registers):
28667 * config/i386/predicates.md (call_rex64_ms_sysv_operation): New
28669 * config/i386/i386.md (*call_rex64_ms_sysv): Use
28670 call_rex64_ms_sysv_operation predicate. Remove explicit clobbers.
28671 (*call_value_rex64_ms_sysv): Ditto.
28673 2013-04-18 Cary Coutant <ccoutant@google.com>
28675 * dwarf2out.c (output_pubnames): Check die_perennial_p of
28676 parent instead of die_mark.
28678 2013-04-18 Diego Novillo <dnovillo@google.com>
28680 * gimple.c (create_gimple_tmp): New.
28681 (get_expr_type): New.
28682 (build_assign): New.
28683 (build_type_cast): New.
28684 * gimple.h (enum ssa_mode): Define.
28685 (gimple_seq_set_location): New.
28686 * asan.c (build_check_stmt): Change some gimple_build_* calls
28687 to use build_assign and build_type_cast.
28689 2013-04-18 Richard Biener <rguenther@suse.de>
28691 * tree-vect-data-refs.c (vect_analyze_group_access): Properly
28692 handle negative step. Remove redundant checks.
28693 (vect_create_data_ref_ptr): Avoid ICEs with non-constant steps.
28694 * tree-vect-stmts.c (vectorizable_load): Instead of asserting
28695 for negative step and grouped loads fail to vectorize.
28697 2013-04-18 Steven Bosscher <steven@gcc.gnu.org>
28699 * emit-rtl.c (reset_insn_used_flags): New function.
28700 (reset_all_used_flags): Use it.
28701 (verify_insn_sharing): New function.
28702 (verify_rtl_sharing): Fix verification for SEQUENCEs.
28704 2013-04-18 Jakub Jelinek <jakub@redhat.com>
28706 PR tree-optimization/56984
28707 * tree-vrp.c (register_edge_assert_for_2): For (x >> M) < N
28708 and (x >> M) >= N don't register any assertion if N << M is the
28711 2013-04-18 Steven Bosscher <steven@gcc.gnu.org>
28713 * lower-subreg.c (resolve_simple_move): If called self-recursive,
28714 do not delete_insn insns that have not yet been emitted, only
28715 unlink them with remove_insn.
28716 * df-scan.c (df_insn_delete): Revert r197492.
28718 2013-04-17 Steven Bosscher <steven@gcc.gnu.org>
28720 * emit-rtl.c (link_insn_into_chain): Handle chaining of SEQUENCEs.
28721 * reorg.c (emit_delay_sequence): Simplify with emit-rtl API.
28723 2013-04-17 Greta Yorsh <Greta.Yorsh@arm.com>
28725 * config/arm/arm.md (movsicc_insn): Convert define_insn into
28726 define_insn_and_split.
28727 (and_scc,ior_scc,negscc): Likewise.
28728 (cmpsi2_addneg, subsi3_compare): Convert to named patterns.
28730 2013-04-17 Greta Yorsh <Greta.Yorsh@arm.com>
28732 * config/arm/arm.c (use_return_insn): Return 0 for targets that
28733 can benefit from using a sequence of LDRD instructions in epilogue
28734 instead of a single LDM instruction.
28736 2013-04-17 Manuel López-Ibáñez <manu@gcc.gnu.org>
28739 * doc/extend.texi: Fix typo.
28741 2013-04-17 Richard Biener <rguenther@suse.de>
28743 * tree-vect-slp.c (vect_build_slp_tree_1): Split out from ...
28744 (vect_build_slp_tree): ... here.
28745 (vect_build_slp_tree_1): Compute which stmts of the SLP group
28746 match. Remove special-casing of mismatched complex loads.
28747 (vect_build_slp_tree): Based on the result from vect_build_slp_tree_1
28748 re-try the match with swapped commutative operands.
28749 (vect_supported_load_permutation_p): Remove special-casing of
28750 mismatched complex loads.
28751 (vect_analyze_slp_instance): Adjust.
28753 2013-04-17 Richard Biener <rguenther@suse.de>
28755 PR rtl-optimization/56921
28756 * cfgloop.h (struct loop): Add simple_loop_desc member.
28757 (struct niter_desc): Mark with GTY(()).
28758 (simple_loop_desc): Do not use aux field but simple_loop_desc.
28759 * loop-iv.c (get_simple_loop_desc): Likewise.
28760 (free_simple_loop_desc): Likewise.
28763 2013-04-16 Richard Biener <rguenther@suse.de>
28765 PR rtl-optimization/56921
28766 * loop-init.c (pass_rtl_move_loop_invariants): Add
28767 TODO_do_not_ggc_collect to todo_flags_finish.
28768 (pass_rtl_unswitch): Same.
28769 (pass_rtl_unroll_and_peel_loops): Same.
28770 (pass_rtl_doloop): Same.
28772 2013-04-17 Eric Botcazou <ebotcazou@adacore.com>
28774 * tree-ssa-alias.c (nonoverlapping_component_refs_of_decl_p): New.
28775 (decl_refs_may_alias_p): Add REF1 and REF2 parameters.
28776 Use nonoverlapping_component_refs_of_decl_p to disambiguate component
28778 (refs_may_alias_p_1): Adjust call to decl_refs_may_alias_p.
28779 * tree-streamer.c (record_common_node): Adjust reference in comment.
28781 2013-04-17 Terry Guo <terry.guo@arm.com>
28783 * config/arm/cortex-m4.md: Add a new bypass.
28785 2013-04-16 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
28787 * config/aarch64/aarch64.md (*adds_<optab><mode>_multp2):
28789 (*subs_<optab><mode>_multp2): New pattern.
28790 (*adds_<optab><ALLX:mode>_<GPI:mode>): New pattern.
28791 (*subs_<optab><ALLX:mode>_<GPI:mode>): New pattern.
28793 2013-04-16 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
28795 * config/aarch64/aarch64.md (*adds_mul_imm_<mode>): New pattern.
28796 (*subs_mul_imm_<mode>): New pattern.
28798 2013-04-16 David Edelsohn <dje.gcc@gmail.com>
28801 * config/rs6000/vsx.md (vsx_mov<mode>): Add j->r alternative.
28802 (vsx_movti_64bit): Change j->wa to O->wa. Add n->r alternative.
28803 (vsx_movti_32bit): Change j->wa to O->wa.
28805 2013-04-16 Richard Biener <rguenther@suse.de>
28807 PR rtl-optimization/56921
28808 * loop-init.c (pass_rtl_move_loop_invariants): Add
28809 TODO_do_not_ggc_collect to todo_flags_finish.
28810 (pass_rtl_unswitch): Same.
28811 (pass_rtl_unroll_and_peel_loops): Same.
28812 (pass_rtl_doloop): Same.
28814 2013-04-16 Greta Yorsh <Greta.Yorsh@arm.com>
28816 * config/arm/arm.c (emit_multi_reg_push): New declaration
28817 for an existing function.
28818 (arm_emit_strd_push): New function.
28819 (arm_expand_prologue): Used here.
28820 (arm_emit_ldrd_pop): New function.
28821 (arm_expand_epilogue): Used here.
28822 (arm_get_frame_offsets): Update condition.
28823 (arm_emit_multi_reg_pop): Add a special case for load of a single
28824 register with writeback.
28826 2013-04-16 Uros Bizjak <ubizjak@gmail.com>
28828 * doc/invoke.texi (i386 Option): Reword -mstack-protector-guard
28831 2013-04-16 Richard Biener <rguenther@suse.de>
28833 PR tree-optimization/56756
28834 * tree-ssa-loop-im.c (struct first_mem_ref_loc_1): New functor.
28835 (first_mem_ref_loc): New.
28836 (execute_sm): Place the load temporarily before a previous
28837 access instead of in the latch edge to ensure its SSA dependencies
28838 are defined at points dominating the load.
28840 2013-04-16 Steven Bosscher <steven@gcc.gnu.org>
28842 * cfgrtl.c (cfg_layout_merge_blocks): Revert r184005, implement
28843 correct fix by moving header and footer insn to the footer of
28844 the merged basic block. Clear BB_END of the merged-away block.
28846 PR middle-end/43631
28847 * emit-rtl.c (make_note_raw): New function.
28848 (link_insn_into_chain): New static inline function.
28849 (add_insn): Use it.
28850 (add_insn_before, add_insn_after): Factor insn chain linking code...
28851 (add_insn_before_nobb, add_insn_after_nobb): ...here, new functions
28852 using link_insn_into_chain.
28853 (note_outside_basic_block_p): New helper function for emit_note_after
28854 and emit_note_before.
28855 (emit_note_after): Use nobb variant of add_insn_after if the note
28856 should not be contained in a basic block.
28857 (emit_note_before): Use nobb variant of add_insn_before if the note
28858 should not be contained in a basic block.
28859 (emit_note_copy): Use make_note_raw.
28860 (emit_note): Likewise.
28861 * bb-reorder.c (insert_section_boundary_note): Remove hack to set
28862 BLOCK_FOR_INSN to NULL manually for NOTE_INSN_SWITCH_TEXT_SECTIONS.
28863 * jump.c (cleanup_barriers): Use reorder_insns_nobb to avoid making
28864 the moved barrier the tail of the basic block it follows.
28865 * var-tracking.c (pass_variable_tracking): Add TODO_verify_flow.
28867 2013-04-15 Jakub Jelinek <jakub@redhat.com>
28869 PR tree-optimization/56962
28870 * gimple-ssa-strength-reduction.c (record_increment): Only set
28871 initializer if gimple_assign_rhs_code is {,POINTER_}PLUS_EXPR and
28872 either rhs1 or rhs2 is equal to c->base_expr.
28874 2013-04-15 Richard Biener <rguenther@suse.de>
28876 PR tree-optimization/56933
28877 * tree-vectorizer.h (struct _stmt_vec_info): Remove read_write_dep
28879 (GROUP_READ_WRITE_DEPENDENCE): Remove.
28880 (STMT_VINFO_GROUP_READ_WRITE_DEPENDENCE): Likewise.
28881 * tree-vect-data-refs.c (vect_analyze_group_access): Move
28882 dependence check ...
28883 vect_analyze_data_ref_dependence (vect_analyze_data_ref_dependence):
28885 * tree-vect-stmts.c (new_stmt_vec_info): Do not initialize
28886 GROUP_READ_WRITE_DEPENDENCE.
28888 2013-04-15 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
28890 * emit-rtl.c (reset_all_used_flags): New function.
28891 (verify_rtl_sharing): Call reset_all_used_flags before and after
28892 performing the checks.
28894 2013-04-15 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
28896 * config/arm/arm.c (const_ok_for_dimode_op): Handle AND case.
28897 * config/arm/arm.md (*anddi3_insn): Change to insn_and_split.
28898 * config/arm/constraints.md (De): New constraint.
28899 * config/arm/neon.md (anddi3_neon): Delete.
28900 (neon_vand<mode>): Expand to standard anddi3 pattern.
28901 * config/arm/predicates.md (imm_for_neon_inv_logic_operand):
28902 Move earlier in the file.
28903 (neon_inv_logic_op2): Likewise.
28904 (arm_anddi_operand_neon): New predicate.
28906 2013-04-15 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
28908 * configure.ac (gcc_cv_ld_as_needed): Set
28909 gcc_cv_ld_as_needed_option, gcc_cv_no_as_needed_option.
28910 Use -z ignore, -z record on *-*-solaris2*.
28911 (HAVE_LD_AS_NEEDED): Update comment.
28912 (LD_AS_NEEDED_OPTION, LD_NO_AS_NEEDED_OPTION): Define.
28913 * configure: Regenerate.
28914 * config.in: Regenerate.
28915 * gcc.c (init_gcc_specs) [USE_LD_AS_NEEDED]: Use
28916 LD_AS_NEEDED_OPTION, LD_NO_AS_NEEDED_OPTION.
28917 * config/sol2.h [HAVE_LD_AS_NEEDED] (USE_LD_AS_NEEDED): Define.
28918 * doc/tm.texi.in (USE_LD_AS_NEEDED): Allow for --as-needed
28919 equivalents. Fix markup.
28920 * doc/tm.texi: Regenerate.
28922 2013-04-15 Andrew Hsieh <andrewhsieh.google.com>
28924 * config/i386/i386.opt: New option mstack-protector-guard=.
28925 * config/i386/i386-opts.h: Add enum stack_protector_guard.
28926 * config/i386/i386.h: Define TARGET_SSP_GLOBAL_GUARD and
28927 TARGET_SSP_TLS_GUARD.
28928 * config/i386/i386.c (ix86_option_override_internal): Set
28929 ix86_stack_protector_guard.
28930 * config/i386/i386.md (stack_protect_set): Enable for
28931 TARGET_SSP_TLS_GUARD only.
28932 (stack_protect_set_<mode>): Ditto.
28933 (stack_protect_test): Ditto.
28934 (stack_protect_test_<mode>): Ditto.
28935 * doc/invoke.texi (i386 Option): Document.
28937 2013-04-15 Eric Botcazou <ebotcazou@adacore.com>
28940 * config/sparc/sparc.c (enum sparc_mode_class): Add H_MODE value.
28941 (S_MODES): Set H_MODE bit.
28942 (SF_MODES): Set only S_MODE and SF_MODE bits.
28943 (DF_MODES): Set SF_MODES and only D_MODE and DF_MODE bits.
28944 (sparc_init_modes) <MODE_INT>: Set H_MODE bit for sub-word modes.
28945 <MODE_VECTOR_INT>: Do not set SF_MODE for sub-word modes.
28946 <MODE_FLOAT>: Likewise.
28948 2013-04-15 Joey Ye <joey.ye@arm.com>
28950 * config/arm/arm.c (thumb_far_jump_used_p): Fix typo in comments.
28952 2013-04-15 Joey Ye <joey.ye@arm.com>
28954 * config/arm/arm.c (thumb1_final_prescan_insn): Assert lr save
28956 (thumb_far_jump_used_p): Count instruction size and set
28959 2013-04-14 Eric Botcazou <ebotcazou@adacore.com>
28961 * reorg.c (fill_simple_delay_slots): Reindent block of code.
28962 * resource.c (mark_target_live_regs): Reformat conditional block.
28964 2013-04-13 Steven Bosscher <steven@gcc.gnu.org>
28966 * sched-deps.c (deps_analyze_insn): Do not check for EH_REGION insn
28967 notes, they are emitted only just before final.
28968 * sched-int.h: Include insn-attr.h before checking INSN_SCHEDULING.
28970 2013-04-13 Steven Bosscher <steven@gcc.gnu.org>
28972 * emit-rtl.c (remove_insn): Do not call df_insn_delete here.
28973 * cfgrtl.c (delete_insn): Call it here instead.
28974 * lra-spills.c (lra_final_code_change): Use delete_insn.
28975 * haifa-sched.c (sched_remove_insn): Likewise.
28976 * sel-sched-ir.c (return_nop_to_pool): Clear INSN_DELETED_P for nops
28977 returning to the nop pool.
28978 (sel_remove_insn): Simplify the only_disconnect case via remove_insn,
28979 use delete_insn for definitive removal. Clear BLOCK_FOR_INSN.
28981 2013-04-12 Steven Bosscher <steven@gcc.gnu.org>
28983 * doc/tm.texi.in (LOOP_ALIGN): Remove loop note references.
28984 * doc/tm.texi: Regenerated.
28986 2013-04-12 Uros Bizjak <ubizjak@gmail.com>
28988 * config/i386/i386.c (ix86_hard_regno_mode_ok): Use ANY_QI_REGNO_P in
28991 2013-04-12 Steven Bosscher <steven@gcc.gnu.org>
28993 * df-core.c (df_find_def): Compare register numbers.
28994 (df_find_use): Likewise.
28996 2013-04-12 Vladimir Makarov <vmakarov@redhat.com>
28999 * config/i386/i386.c (ix86_hard_regno_mode_ok): Add
29000 lra_in_progress for return.
29002 2013-04-12 Greta Yorsh <Greta.Yorsh@arm.com>
29004 * config/arm/arm.md (mov_scc,mov_negscc,mov_notscc): Convert
29005 define_insn into define_insn_and_split and emit movsicc patterns.
29007 2013-04-12 Greta Yorsh <Greta.Yorsh@arm.com>
29009 * config/arm/arm.c (gen_operands_ldrd_strd): Initialize "base".
29011 2013-04-12 Richard Biener <rguenther@suse.de>
29013 * tree-pass.h (TODO_do_not_ggc_collect): New.
29014 * passes.c (execute_one_ipa_transform_pass): Honor
29015 TODO_do_not_ggc_collect.
29016 (execute_one_pass): Likewise.
29019 2013-04-10 Richard Biener <rguenther@suse.de>
29021 * passes.c (init_optimization_passes): Remove reload pass.
29022 * ira.c (do_reload): Merge into ...
29024 (rest_of_handle_reload): Remove.
29025 (pass_reload): Likewise.
29026 * config/i386/i386.c (ix86_option_override): Refer to ira instead
29027 of reload for vzeroupper pass placement.
29029 2013-04-12 Jakub Jelinek <jakub@redhat.com>
29031 PR tree-optimization/56918
29032 PR tree-optimization/56920
29033 * fold-const.c (int_const_binop_1): Use op1.mul_with_sign (op2, ...)
29034 instead of op1 - op2. Pass 2 * TYPE_PRECISION (type) as second
29035 argument to rshift method. For 2 * HOST_BITS_PER_WIDE_INT precision
29036 use wide_mul_with_sign method.
29038 2013-04-12 Richard Biener <rguenther@suse.de>
29040 * gimple.c (is_gimple_constant): Vector CONSTRUCTORs should
29041 not be considered a gimple constant.
29043 2013-04-12 Marc Glisse <marc.glisse@inria.fr>
29045 * fold-const.c (const_binop): Handle vector shifts by a scalar.
29046 (fold_binary_loc): Call const_binop also for mixed vector-scalar
29049 2013-04-12 Manuel López-Ibáñez <manu@gcc.gnu.org>
29050 Jakub Jelinek <jakub@redhat.com>
29052 * opts.c: Include diagnostic-color.h.
29053 (common_handle_option): Handle OPT_fdiagnostics_color_.
29054 * Makefile.in (OBJS-libcommon): Add diagnostic-color.o.
29055 (diagnostic.o, opts.o, pretty-print.o): Depend on diagnostic-color.h.
29056 (diagnostic-color.o): New.
29057 * common.opt (fdiagnostics-color, fdiagnostics-color=): New options.
29058 (diagnostic_color_rule): New enum.
29059 * dwarf2out.c (gen_producer_string): Don't print -fdiagnostics-color*.
29060 * langhooks.c (lhd_print_error_function): Add %r "locus" and %R around
29061 the location string.
29062 * diagnostic.def: Add 3rd argument to DEFINE_DIAGNOSTIC_KIND macros,
29063 either NULL, or color kind.
29064 * diagnostic-color.c: New file.
29065 * diagnostic-color.h: New file.
29066 * diagnostic-core.h (DEFINE_DIAGNOSTIC_KIND): Adjust macro for 3
29068 * doc/invoke.texi (-fdiagnostics-color): Document.
29069 * pretty-print.h (pp_show_color): Define.
29070 (struct pretty_print_info): Add show_color field.
29071 * diagnostic.c: Include diagnostic-color.h.
29072 (diagnostic_build_prefix): Adjust for 3 argument DEFINE_DIAGNOSTIC_KIND
29073 macros. Colorize error:, warning: etc. strings and also the location
29075 (diagnostic_show_locus): Colorize the caret line.
29076 * pretty-print.c: Include diagnostic-color.h.
29077 (pp_base_format): Handle %r and %R format specifiers. Colorize strings
29078 inside of %< %> quotes or quoted through q format modifier.
29080 2013-04-12 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
29082 * ifcvt.c (end_ifcvt_sequence): Mark a and b for unsharing as well.
29084 2013-04-11 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
29086 * config/aarch64/aarch64.c (aarch64_select_cc_mode): Allow NEG
29087 code in CC_NZ mode.
29088 * config/aarch64/aarch64.md (*neg_<shift><mode>3_compare0): New
29091 2013-04-11 Marek Polacek <polacek@redhat.com>
29093 PR tree-optimization/48184
29094 * params.def (PARAM_ALIGN_THRESHOLD): Increase the minimum value to 1.
29096 2013-04-11 Eric Botcazou <ebotcazou@adacore.com>
29098 * stor-layout.c (skip_simple_constant_arithmetic): Move to...
29099 * tree.c (skip_simple_constant_arithmetic): ...here and make public.
29100 (skip_simple_arithmetic): Tidy up.
29101 * tree.h (skip_simple_constant_arithmetic): Declare.
29103 2013-04-11 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
29105 * config/aarch64/aarch64.h (REVERSIBLE_CC_MODE): Define.
29107 2013-04-11 Richard Biener <rguenther@suse.de>
29109 * tree-vect-loop.c (get_initial_def_for_induction): Properly
29110 generate vector constants.
29112 2013-04-11 Richard Biener <rguenther@suse.de>
29114 PR tree-optimization/56878
29115 * tree-flow.h (outermost_invariant_loop_for_expr): Declare.
29116 * tree-ssa-loop-ivopts.c (outermost_invariant_loop_for_expr):
29118 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment):
29119 Prefer to align the DR with the most invariant base address.
29121 2013-04-11 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
29123 * opts.c (common_handle_option): Fix formatting and add FALLTHRU
29126 2013-04-11 James Greenhalgh <james.greenhalgh@arm.com>
29128 * config/aarch64/aarch64-simd.md (aarch64_vcond_internal): Fix
29129 floating-point vector comparisons against 0.
29131 2013-04-11 Jakub Jelinek <jakub@redhat.com>
29133 PR tree-optimization/56899
29134 * fold-const.c (extract_muldiv_1): Apply distributive law
29135 only if TYPE_OVERFLOW_WRAPS (ctype).
29137 2013-04-11 Bin Cheng <bin.cheng@arm.com>
29140 * ira-costs.c (scan_one_insn): Check whether the source rtx of
29141 loading has side effect.
29143 2013-04-10 Steven Bosscher <steven@gcc.gnu.org>
29145 * config/sparc/sparc.c: Include tree-pass.h.
29146 (TARGET_MACHINE_DEPENDENT_REORG): Do not redefine.
29147 (sparc_reorg): Rename to sparc_do_work_around_errata. Move to
29148 head of file. Change return type. Split off gate function.
29149 (sparc_gate_work_around_errata): New function.
29150 (pass_work_around_errata): New pass definition.
29151 (insert_pass_work_around_errata) New pass insert definition to
29152 insert pass_work_around_errata just after delayed-branch scheduling.
29153 (sparc_option_override): Insert the pass.
29154 * config/sparc/t-sparc (sparc.o): Add TREE_PASS_H dependence.
29156 2013-04-10 David S. Miller <davem@davemloft.net>
29158 * config/sparc/sparc.h (ASM_CPU_SPEC): Pass -Av8 if -mcpu=supersparc
29159 or -mcpu=hypersparc.
29161 * target.def (cstore_mode): New hook.
29162 * target.h: Include insn-codes.h
29163 * targhooks.c: Likewise.
29164 (default_cstore_mode): New function.
29165 * targhooks.h: Declare it.
29166 * doc/tm.texi.in: New hook slot for TARGET_CSTORE_MODE.
29167 * doc/tm.texi: Rebuild.
29168 * expmed.c (emit_cstore): Obtain cstore boolean result mode using
29169 target hook, rather than inspecting the insn_data.
29170 * config/sparc/sparc.c (sparc_cstore_mode): New function.
29171 (TARGET_CSTORE_MODE): Redefine.
29172 (emit_scc_insn): When TARGET_ARCH64, emit new 64-bit boolean
29174 * config/sparc/predicates.md (cstore_result_operand): New special
29176 * config/sparc/sparc.md (cstoresi4, cstoredi4, cstore<F:mode>4):
29177 Use it for operand 0.
29178 (*seqsi_special): Rewrite using 'P' mode iterator on operand 0.
29179 (*snesi_special): Likewise.
29180 (*snesi_zero): Likewise.
29181 (*seqsi_zero): Likewise.
29182 (*sltu_insn): Likewise.
29183 (*sgeu_insn): Likewise.
29184 (*seqdi_special): Make operand 0 and comparison operation be of
29186 (*snedi_special): Likewise.
29187 (*snedi_special_vis3): Likewise.
29188 (*neg_snesi_zero): Rename to *neg_snesisi_zero.
29189 (*neg_snesi_sign_extend): Rename to *neg_snesidi_zero.
29190 (*snesi_zero_extend): Delete, covered by 'P' mode iterator.
29191 (*neg_seqsi_zero): Rename to *neg_seqsisi_zero.
29192 (*neg_seqsi_sign_extend): Rename to *neg_seqsidi_zero.
29193 (*seqsi_zero_extend): Delete, covered by 'P' mode iterator.
29194 (*sltu_extend_sp64): Likewise.
29195 (*neg_sltu_insn): Rename to *neg_sltusi_insn.
29196 (*neg_sltu_extend_sp64): Rename to *neg_sltudi_insn.
29197 (*sgeu_extend_sp64): Delete, covered by 'P' mode iterator.
29198 (*neg_sgeu_insn): Rename to *neg_sgeusi_insn.
29199 (*neg_sgeu_extend_sp64): Rename to *neg_sgeudi_insn.
29201 2013-04-10 Yufeng Zhang <yufeng.zhang@arm.com>
29203 * config/aarch64/aarch64.c (aarch64_print_extension): New function.
29204 (aarch64_start_file): Use the new function.
29206 2013-04-10 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
29207 Jason Merrill <jason@redhat.com>
29209 * common.opt: Add -gdwarf.
29210 * opts.c (common_handle_option): Handle it.
29211 * gcc.c (ASM_DEBUG_SPEC): Don't expect "-2" for DWARF.
29213 2013-04-10 Richard Biener <rguenther@suse.de>
29215 * passes.c (execute_todo): Do not call ggc_collect conditional here.
29216 (execute_one_ipa_transform_pass): But unconditionally here.
29217 (execute_one_pass): And here.
29218 (init_optimization_passes): Remove reload pass.
29219 * tree-pass.h (TODO_ggc_collect): Remove.
29220 (pass_reload): Likewise.
29221 * ira.c (do_reload): Merge into ...
29223 (rest_of_handle_reload): Remove.
29224 (pass_reload): Likewise.
29225 * config/i386/i386.c (ix86_option_override): Refer to ira instead
29226 of reload for vzeroupper pass placement.
29227 * <everywhere>: Remove TODO_ggc_collect from todo_flags_start
29228 and todo_flags_finish of all passes.
29230 2013-04-10 Richard Biener <rguenther@suse.de>
29232 * tree-vectorizer.h (struct _slp_oprnd_info): Remove
29233 first_const_oprnd field, rename first_def_type to first_op_type.
29234 * tree-vect-slp.c (vect_create_oprnd_info): Adjust.
29235 (vect_get_and_check_slp_defs): Always use the type of the
29236 operand. Allow mixed vect_external_def, vect_constant_def types.
29237 (vect_get_constant_vectors): Handle mixed vect_external_def,
29238 vect_constant_def types.
29240 2013-04-10 Joern Rennecke <joern.rennecke@embecosm.com>
29242 PR tree-optimization/55524
29243 * tree-ssa-math-opts.c
29244 (convert_mult_to_fma): Don't use an fms construct
29245 when we don't have an fms operation, but fnma, and it looks
29246 likely that we'll be able to use the latter.
29248 2013-04-10 Zhouyi Zhou <yizhouzhou@ict.ac.cn>
29250 * cif-code.def (OVERWRITABLE): Correct the comment for overwritable
29252 * ipa-inline.c (can_inline_edge_p): Let dump mechanism report the
29253 inline fail caused by overwritable functions.
29255 2013-04-10 Chung-Ju Wu <jasonwucj@gmail.com>
29257 * combine.c (simplify_compare_const): Use GET_MODE_MASK to filter out
29258 unnecessary bits in the constant power of two case.
29260 2013-04-10 Richard Biener <rguenther@suse.de>
29262 * tree-vect-slp.c (vect_get_and_check_slp_defs): Remove
29263 broken code swapping operands.
29264 (vect_build_slp_tree): Do not compute load permutations here.
29265 (vect_analyze_slp_instance): Compute load permutations here,
29266 after building the SLP tree.
29268 2013-04-09 Christian Bruel <christian.bruel@st.com>
29270 * config/sh/sh.md (barrier_align): Use next/prev_active_insn instead
29271 of next/prev_real_insn.
29273 2013-04-09 Jan Hubicka <jh@suse.cz>
29275 * ipa.c (cgraph_externally_visible_p, varpool_externally_visible_p):
29276 Drop aliased parameter.
29277 (function_and_variable_visibility): Do not handle alias pairs.
29278 * cgraph.c (varpool_externally_visible_p): Update prototype.
29279 * varpool.c (varpool_add_new_variable): Update.
29281 2013-04-09 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
29283 * config/arm/arm.md (minmax_arithsi_non_canon): New pattern.
29285 2013-04-09 Steven Bosscher <steven@gcc.gnu.org>
29287 * sched-vis.c (print_pattern): Print SEQUENCE of insns as insns.
29289 * config/sparc/sparc.md: Use define_c_enum for "unspec" and "unspecv".
29291 2013-04-09 Marek Polacek <polacek@redhat.com>
29293 PR tree-optimization/48762
29294 * params.def (PARAM_MAX_CSE_INSNS): Increase the minimum value to 1.
29296 2013-04-09 Richard Biener <rguenther@suse.de>
29298 * tree-vect-slp.c (vect_get_and_check_slp_defs): Remove code
29300 (vect_build_slp_tree): Likewise.
29301 (vect_analyze_slp_cost_1, vect_analyze_slp_cost): New functions
29302 calculating the cost of a SLP instance.
29303 (vect_analyze_slp_instance): Use it from here, after building
29306 2013-04-09 Jakub Jelinek <jakub@redhat.com>
29308 PR middle-end/56883
29309 * omp-low.c (expand_omp_for_generic, expand_omp_for_static_nochunk,
29310 expand_omp_for_static_chunk): Use simple_p = true in
29311 force_gimple_operand_gsi calls when assigning to addressable decls.
29313 2013-04-09 Jeff Law <law@redhat.com>
29315 * tree-vrp.c (simplify_cond_using_ranges): Simplify test of boolean
29316 when the boolean was created by converting a wider object which
29317 had a boolean range.
29319 2013-04-09 Richard Biener <rguenther@suse.de>
29321 * tree-vectorizer.h (slp_void_p): Remove.
29322 (slp_tree): Typedef before _slp_tree declaration.
29323 (struct _slp_tree): Use a vector of slp_tree as children.
29324 (vect_get_place_in_interleaving_chain): Remove.
29325 * tree-vect-data-refs.c (vect_get_place_in_interleaving_chain):
29327 * tree-vect-slp.c (vect_get_place_in_interleaving_chain): ... here
29329 (vect_free_slp_tree, vect_print_slp_tree, vect_mark_slp_stmts,
29330 vect_mark_slp_stmts_relevant, vect_slp_rearrange_stmts,
29331 vect_detect_hybrid_slp_stmts, vect_slp_analyze_node_operations,
29332 vect_schedule_slp_instance, vect_remove_slp_scalar_calls):
29333 Use slp_node instead of slp_void_p and adjust.
29335 2013-04-09 Richard Biener <rguenther@suse.de>
29337 * tree-ssa-loop-manip.c (rewrite_into_loop_closed_ssa): Avoid
29338 work that is not necessary.
29340 2013-04-09 Jakub Jelinek <jakub@redhat.com>
29342 PR tree-optimization/56854
29343 * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Don't
29344 forward into clobber stmts if it would change MEM_REF lhs into
29347 2013-04-09 Maxim Kuvyrkov <maxim@kugelworks.com>
29349 * tree.c (type_hash_lookup, type_hash_add): Make static.
29350 * tree.h (type_hash_lookup, type_hash_add): Remove global declarations.
29352 2013-04-09 Richard Biener <rguenther@suse.de>
29354 * tree.h (unsave_expr_now): Remove.
29355 * tree-inline.c (mark_local_for_remap_r): Remove.
29356 (unsave_expr_1): Likewise.
29357 (unsave_r): Likewise.
29358 (unsave_expr_now): Likewise.
29359 * tree-ssa-copy.c (replace_exp_1): Use unshare_expr.
29360 (propagate_tree_value): Likewise.
29362 2013-04-08 Steven Bosscher <steven@gcc.gnu.org>
29364 * doc/rtl.texi (sequence): Rewrite documentation to match the
29365 current use of SEQUENCE rtl objects.
29366 * rtl.def (SEQUENCE): Likewise.
29368 * doc/rtl.texi (NOTE_INSN_EH_REGION_BEG, NOTE_INSN_EH_REGION_END):
29369 Update documentation.
29370 (NOTE_INSN_LOOP_BEG, NOTE_INSN_LOOP_END, NOTE_INSN_LOOP_CONT,
29371 NOTE_INSN_LOOP_VTOP): Remove documentation for non-existing notes.
29373 * reg-notes.def (REG_EH_CONTEXT): Remove unused note.
29375 2013-04-08 Teresa Johnson <tejohnson@google.com>
29377 * basic-block.h (GCOV_COMPUTE_SCALE): Define.
29378 * ipa-inline-analysis.c (param_change_prob): Use helper rounding divide
29380 (estimate_edge_size_and_time): Add comment to suggest using rounding
29382 (estimate_node_size_and_time): Ditto.
29383 (remap_edge_change_prob): Use helper rounding divide methods.
29384 * value-prof.c (gimple_divmod_fixed_value_transform): Ditto.
29385 (gimple_mod_pow2_value_transform): Ditto.
29386 (gimple_mod_subtract_transform): Ditto.
29387 (gimple_ic_transform): Ditto.
29388 (gimple_stringops_transform): Ditto.
29389 * stmt.c (conditional_probability): Ditto.
29390 (emit_case_dispatch_table): Ditto.
29391 * lto-cgraph.c (merge_profile_summaries): Ditto.
29392 * tree-optimize.c (execute_fixup_cfg): Ditto.
29393 * cfgcleanup.c (try_forward_edges): Ditto.
29394 * cfgloopmanip.c (scale_loop_profile): Ditto.
29396 (duplicate_loop_to_header_edge): Ditto.
29397 (lv_adjust_loop_entry_edge): Ditto.
29398 * tree-vect-loop.c (vect_transform_loop): Ditto.
29399 * profile.c (compute_branch_probabilities): Ditto.
29400 * cfgbuild.c (compute_outgoing_frequencies): Ditto.
29401 * lto-streamer-in.c (input_cfg): Ditto.
29402 * gimple-streamer-in.c (input_bb): Ditto.
29403 * ipa-cp.c (update_profiling_info): Ditto.
29404 (update_specialized_profile): Ditto.
29405 * tree-vect-loop-manip.c (slpeel_tree_peel_loop_to_edge): Ditto.
29406 * cfg.c (update_bb_profile_for_threading): Add comment to suggest using
29408 * sched-rgn.c (compute_dom_prob_ps): Ditto.
29409 (compute_trg_info): Ditto.
29410 * cfgrtl.c (force_nonfallthru_and_redirect): Ditto.
29411 (purge_dead_edges): Ditto.
29412 * loop-unswitch.c (unswitch_loop): Ditto.
29413 * cgraphclones.c (cgraph_clone_edge): Ditto.
29414 (cgraph_clone_node): Ditto.
29415 * tree-inline.c (copy_bb): Ditto.
29416 (copy_edges_for_bb): Ditto.
29417 (initialize_cfun): Ditto.
29418 (copy_cfg_body): Ditto.
29419 (expand_call_inline): Ditto.
29421 2013-04-08 Kai Tietz <ktietz@redhat.com>
29423 * config/i386/cygwin.h (EXTRA_OS_CPP_BUILTINS): Replaced
29424 TARGET_CYGWIN64 by TARGET_64BIT.
29426 2013-04-08 Joern Rennecke <joern.rennecke@embecosm.com>
29428 * config/epiphany/epiphany.md (GPR_1): New constant.
29429 (define_expand "mov<mode>cc): FAIL if gen_compare_reg returned 0.
29430 * config/epiphany/epiphany.c (gen_compare_reg):
29431 For flag_finite_math_only, avoid swapping operands when r0 and/or r1
29432 is already in place.
29433 Use GPR_0 / GPR_1 instead of 0/1 for r0/r1 register numbers.
29434 Don't require being called during rtl expansion; If y operlaps r0,
29436 (epiphany_compute_frame_size, epiphany_expand_prologue): Use GPR_1.
29437 (epiphany_expand_epilogue): Likewise.
29439 * config/epiphany/epiphany.c (epiphany_select_cc_mode):
29440 Don't use CC_FPmode for ORDERED / UNORDERED.
29441 * config/epiphany/epiphany.md (cmpsf_ord): Make pattern unconditional.
29443 * config/epiphany/constraints.md (CnL): New constraint.
29444 * config/epiphany/epiphany.md (addsi3_i): Add r/r/CnL alternative.
29445 * config/epiphany/predicates.md (add_operand): Allow 1024.
29447 * config/epiphany/epiphany.md (logical_op): New code iterator.
29448 (op_mnc): New code attribute.
29449 (<op_mnc>_f, mov_f, cstoresi4): New patterns.
29450 (mov_f+1, mov_f+2): New peephole2 patterns.
29452 * config/epiphany/epiphany.md (mov_f+2): New peephole2 pattern.
29453 (cstoresi4): Also allow re-use of zero result when doing a NE
29454 comparison to a non-zero operand.
29455 Use (clobber (scratch)) for first insn if the gpr output is not needed.
29457 * config/epiphany/epiphany.md (<insn_opname>v2si3):
29458 Use gen_addsi3_i / gen_subsi3_i.
29460 2013-04-08 Jakub Jelinek <jakub@redhat.com>
29464 * tree-eh.c (optimize_clobbers): Only remove clobbers if bb doesn't
29465 contain anything but clobbers, at most one __builtin_stack_restore,
29466 optionally debug stmts and final resx, and if it has at least one
29467 incoming EH edge. Don't check for SSA_NAME on LHS of a clobber.
29468 (sink_clobbers): Don't check for SSA_NAME on LHS of a clobber.
29469 Instead of moving clobbers with MEM_REF LHS with SSA_NAME address
29470 which isn't defaut definition, remove them.
29471 (unsplit_eh, cleanup_empty_eh): Use single_{pred,succ}_{p,edge}
29472 instead of EDGE_COUNT comparisons or EDGE_{PRED,SUCC}.
29473 * tree-ssa-ccp.c (execute_fold_all_builtins): Remove clobbers
29474 with MEM_REF LHS with SSA_NAME address.
29476 2013-04-08 Jeff Law <law@redhat.com>
29478 * gimple.c (canonicalize_cond_expr_cond): Rewrite x ^ y into x != y.
29480 2013-04-08 Richard Biener <rguenther@suse.de>
29482 * gimple-pretty-print.c (debug_gimple_stmt): Do not print
29484 * tree-vect-loop.c (vect_determine_vectorization_factor): Dump
29485 determined vector type.
29486 (vect_analyze_data_refs): Likewise.
29487 (vect_get_new_vect_var): Adjust.
29488 (vect_create_destination_var): Preserve SSA name versions.
29489 * tree-vect-stmts.c (get_vectype_for_scalar_type_and_size): Do
29490 not dump anything here.
29492 2013-04-08 Joern Rennecke <joern.rennecke@embecosm.com>
29494 * config/epiphany/epiphany.h (struct GTY (()) machine_function):
29495 Add member lr_slot_known.
29496 * config/epiphany/epiphany.md (reload_insi_ra): Compute lr_slot_offs
29498 * config/epiphany/epiphany.c (epiphany_compute_frame_size):
29499 Remove code that sets lr_slot_offset according to what a previous
29500 version of epiphany_emit_save_restore used to do.
29501 (epiphany_emit_save_restore): When doing an lr save or restore,
29502 set/verify lr_slot_known and lr_slot_offset.
29504 2013-04-08 Xinyu Qi <xyqi@marvell.com>
29507 * config/arm/arm.h (REG_CLASS_CONTENTS): Include IWMMXT_GR_REGS
29510 2013-04-08 Richard Biener <rguenther@suse.de>
29512 * alias.c (find_base_term): Fix thinko in previous change.
29514 2013-04-08 Jakub Jelinek <jakub@redhat.com>
29516 * tree-loop-distribution.c (const_with_all_bytes_same): New function.
29517 (generate_memset_builtin): Only handle integer_all_onesp as -1 val if
29518 TYPE_PRECISION is equal to mode bitsize. Use const_with_all_bytes_same
29519 if possible to compute val.
29520 (classify_partition): Verify CONSTRUCTOR doesn't have any elts.
29521 For QImode integers don't require anything about precision. Use
29522 const_with_all_bytes_same to find out if the constant doesn't have
29523 repeated bytes in it.
29525 2013-04-08 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
29527 * config/s390/s390.c (s390_expand_insv): Only accept insertions
29530 2013-04-08 Marek Polacek <polacek@redhat.com>
29532 PR rtl-optimization/48182
29533 * params.def (PARAM_MIN_CROSSJUMP_INSNS): Increase the minimum
29536 2013-04-06 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
29539 * config/pa/pa.c (legitimize_pic_address): Before incrementing label
29540 nuses, make sure we have a label.
29542 2013-04-05 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
29545 * config/rs6000/rs6000.c (rs6000_emit_swdiv_high_precision): Remove.
29546 (rs6000_emit_swdiv_low_precision): Remove.
29547 (rs6000_emit_swdiv): Rewrite to handle between one and four
29548 iterations of Newton-Raphson generally; modify required number of
29549 iterations for some cases.
29550 * config/rs6000/rs6000.h (RS6000_RECIP_HIGH_PRECISION_P): Remove.
29552 2013-04-05 Steven Bosscher <steven@gcc.gnu.org>
29554 * bb-reorder.c (fix_crossing_unconditional_branches): Remove a
29555 set-but-unused variable.
29557 * cgraph.c (cgraph_release_function_body): Clear cfun->cfg to make
29558 basic blocks of released function bodies garbage-collectable.
29560 * ree.c (find_and_remove_re): Do not call df_finish_pass here.
29561 (struct rtl_opt_pass): Add TODO_df_finish.
29563 * rtl.def (DEFINE_SUBST, DEFINE_SUBST_ATTR): Add documentation.
29565 2013-04-05 Greta Yorsh <Greta.Yorsh@arm.com>
29567 * config/arm/constraints.md (q): New constraint.
29568 * config/arm/ldrdstrd.md: New file.
29569 * config/arm/arm.md (ldrdstrd.md) New include.
29570 (arm_movdi): Use "q" instead of "r" constraint
29571 for double-word memory access.
29572 (movdf_soft_insn): Likewise.
29573 * config/arm/vfp.md (movdi_vfp): Likewise.
29574 * config/arm/t-arm (MD_INCLUDES): Add ldrdstrd.md.
29575 * config/arm/arm-protos.h (gen_operands_ldrd_strd): New declaration.
29576 * config/arm/arm.c (gen_operands_ldrd_strd): New function.
29577 (mem_ok_for_ldrd_strd): Likewise.
29578 (output_move_double): Update assertion.
29580 2013-04-05 Greta Yorsh <Greta.Yorsh@arm.com>
29582 * config/arm/arm.md: Comment on splitting Thumb1 patterns.
29584 2013-04-05 Greta Yorsh <Greta.Yorsh@arm.com>
29586 * config/arm/arm.md (arm_smax_insn): Convert define_insn into
29587 define_insn_and_split.
29588 (arm_smin_insn,arm_umaxsi3,arm_uminsi3): Likewise.
29590 2013-04-05 Greta Yorsh <Greta.Yorsh@arm.com>
29592 * config/arm/arm.md (arm_ashldi3_1bit): Convert define_insn into
29593 define_insn_and_split.
29594 (arm_ashrdi3_1bit,arm_lshrdi3_1bit): Likewise.
29595 (shiftsi3_compare): New pattern.
29596 (rrx): New pattern.
29597 * config/arm/unspecs.md (UNSPEC_RRX): New.
29599 2013-04-05 Greta Yorsh <Greta.Yorsh@arm.com>
29601 * config/arm/arm.md (negdi_extendsidi): New pattern.
29602 (negdi_zero_extendsidi): Likewise.
29604 2013-04-05 Greta Yorsh <Greta.Yorsh@arm.com>
29606 * config/arm/arm.md (andsi_iorsi3_notsi): Convert define_insn into
29607 define_insn_and_split.
29608 (arm_negdi2,arm_abssi2,arm_neg_abssi2): Likewise.
29609 (arm_cmpdi_insn,arm_cmpdi_unsigned): Likewise.
29611 2013-04-05 Greta Yorsh <Greta.Yorsh@arm.com>
29613 * config/arm/arm.md (arm_subdi3): Convert define_insn into
29614 define_insn_and_split.
29615 (subdi_di_zesidi,subdi_di_sesidi): Likewise.
29616 (subdi_zesidi_di,subdi_sesidi_di,subdi_zesidi_zesidi): Likewise.
29618 2013-04-05 Greta Yorsh <Greta.Yorsh@arm.com>
29620 * config/arm/arm.md (subsi3_carryin): New pattern.
29621 (subsi3_carryin_const): Likewise.
29622 (subsi3_carryin_compare,subsi3_carryin_compare_const): Likewise.
29623 (subsi3_carryin_shift,rsbsi3_carryin_shift): Likewise.
29625 2013-04-05 Greta Yorsh <Greta.Yorsh@arm.com>
29627 * config/arm/arm.md (incscc,arm_incscc,decscc,arm_decscc): Delete.
29629 2013-04-05 Greta Yorsh <Greta.Yorsh@arm.com>
29631 * config/arm/arm.md (addsi3_carryin_<optab>): Set attribute predicable.
29632 (addsi3_carryin_alt2_<optab>,addsi3_carryin_shift_<optab>): Likewise.
29634 2013-04-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
29636 * config/arm/arm.c (arm_expand_builtin): Change fcode
29637 type to unsigned int.
29639 2013-04-05 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
29641 * doc/invoke.texi (ARM Options): Document cortex-a53 support.
29643 2013-04-04 Ian Lance Taylor <iant@google.com>
29645 * doc/standards.texi (Standards): The Go frontend supports the Go 1
29648 2013-04-04 Steven Bosscher <steven@gcc.gnu.org>
29650 PR middle-end/56729
29651 * df-scan.c (df_insn_delete): Disable failing assert.
29653 2013-04-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
29655 * config/arm/arm-protos.h (arm_builtin_vectorized_function):
29656 New function prototype.
29657 * config/arm/arm.c (TARGET_VECTORIZE_BUILTINS): Define.
29658 (TARGET_VECTORIZE_BUILTIN_VECTORIZED_FUNCTION): Likewise.
29659 (arm_builtin_vectorized_function): New function.
29661 2013-04-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
29663 * config/arm/arm_neon_builtins.def: New file.
29664 * config/arm/arm.c (neon_builtin_data): Move contents to
29665 arm_neon_builtins.def.
29666 (enum arm_builtins): Include neon builtin definitions.
29667 (ARM_BUILTIN_NEON_BASE): Move from enum to macro.
29668 * config/arm/t-arm (arm.o): Add dependency on arm_neon_builtins.def.
29670 2013-04-04 Marek Polacek <polacek@redhat.com>
29672 PR tree-optimization/48186
29673 * predict.c (maybe_hot_frequency_p): Return false if
29674 HOT_BB_FREQUENCY_FRACTION is 0.
29675 (cgraph_maybe_hot_edge_p): Likewise.
29677 2013-04-04 Richard Biener <rguenther@suse.de>
29679 PR tree-optimization/56826
29680 * tree-vect-slp.c (vect_build_slp_tree): Compute ncopies
29683 2013-04-04 Richard Biener <rguenther@suse.de>
29685 PR tree-optimization/56213
29686 * tree-vect-data-refs.c (vect_check_strided_load): Remove.
29687 (vect_analyze_data_refs): Allow all non-nested loads as strided loads.
29689 2013-04-04 Richard Biener <rguenther@suse.de>
29691 PR tree-optimization/56837
29692 * tree-loop-distribution.c (classify_partition): For non-zero
29693 values require that the value has the same precision as its
29694 mode to be useful as memset value.
29696 2013-04-03 Nick Clifton <nickc@redhat.com>
29698 * config/v850/v850e3v5.md (fmasf4): Use fmaf.s on E3V5 architectures.
29699 (fmssf4): Use fmsf.s on E3V5 architectures.
29700 (fnmasf4): Use fnmaf.s on E3V5 architectures.
29701 (fnmssf4): Use fnmsf.s on E3V5 architectures.
29703 2013-04-03 Jeff Law <law@redhat.com>
29705 * Makefile.in (lra-constraints.o): Depend on $(OPTABS_H).
29706 (lra-eliminations.o): Likewise.
29708 2013-04-03 Teresa Johnson <tejohnson@google.com>
29710 * gcov-io.c (compute_working_sets): Moved most of body of old
29711 compute_working_sets here from profile.c.
29712 * gcov-io.h (NUM_GCOV_WORKING_SETS): Moved here from profile.c.
29713 (gcov_working_set_t): Moved typedef here from basic-block.h
29714 (compute_working_set): Declare.
29715 * profile.c (NUM_GCOV_WORKING_SETS): Moved to gcov-io.h.
29716 (get_working_sets): Renamed from compute_working_set,
29717 replace most of body with call to new compute_working_sets.
29718 (get_exec_counts): Replace call to compute_working_sets
29719 to get_working_sets.
29720 * profile.h (get_working_sets): Renamed from compute_working_set.
29721 * lto-cgraph.c (input_symtab): Replace call to compute_working_sets
29722 to get_working_sets.
29723 * basic-block.h (gcov_working_set_t): Moved to gcov-io.h.
29724 * gcov-dump.c (dump_working_sets): New function.
29726 2013-04-03 Kenneth Zadeck <zadeck@naturalbridge.com>
29728 * hwint.c (sext_hwi, zext_hwi): New functions.
29729 * hwint.h (HOST_BITS_PER_HALF_WIDE_INT, HOST_HALF_WIDE_INT,
29730 HOST_HALF_WIDE_INT_PRINT, HOST_HALF_WIDE_INT_PRINT_C,
29731 HOST_HALF_WIDE_INT_PRINT_DEC, HOST_HALF_WIDE_INT_PRINT_DEC_C,
29732 HOST_HALF_WIDE_INT_PRINT_UNSIGNED, HOST_HALF_WIDE_INT_PRINT_HEX,
29733 HOST_HALF_WIDE_INT_PRINT_HEX_PURE): New symbols.
29734 (sext_hwi, zext_hwi): New functions.
29736 2013-04-03 Jeff Law <law@redhat.com>
29738 PR tree-optimization/56799
29739 * tree-ssa-dom.c (record_equivalences_from_incoming_edge): Bring
29740 back test for widening conversion erroneously dropped in prior change.
29742 2013-04-03 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
29745 * config/aarch64/aarch64.c (is_jump_table): Use next_active_insn
29746 instead of next_real_insn.
29748 2013-04-03 Marek Polacek <polacek@redhat.com>
29751 * tsan.c (instrument_func_exit): Allow BUILT_IN_RETURN functions.
29753 2013-04-03 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
29756 * config/arm/arm.c (is_jump_table): Use next_active_insn instead of
29758 (thumb1_output_casesi): Likewise.
29759 (thumb2_output_casesi): Likewise.
29761 2013-04-03 Richard Biener <rguenther@suse.de>
29763 PR tree-optimization/56817
29764 * tree-ssa-loop-ivcanon.c (tree_unroll_loops_completely):
29766 (tree_unroll_loops_completely_1): ... new function to manually
29767 walk the loop tree, properly defering outer loops of unrolled
29768 loops to later iterations.
29770 2013-04-03 Marc Glisse <marc.glisse@inria.fr>
29772 * tree-vect-stmts.c (vectorizable_store): Accept BIT_FIELD_REF.
29773 (vectorizable_load): Likewise.
29774 * tree-vect-slp.c (vect_build_slp_tree): Likewise.
29775 * tree-vect-data-refs.c (vect_create_data_ref_ptr): Handle VECTOR_TYPE.
29777 2013-04-03 Marc Glisse <marc.glisse@inria.fr>
29779 * tree-flow-inline.h (get_addr_base_and_unit_offset_1): Handle
29782 2013-04-03 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
29784 * config/spu/spu.c (emit_nop_for_insn): Handle JUMP_TABLE_DATA.
29786 2013-04-03 Bin Cheng <bin.cheng@arm.com>
29788 * rtl.h (AUTO_INC_DEC): Fix typo of HAVE_POST_MODIFY_DISP.
29790 2013-04-03 Marc Glisse <marc.glisse@inria.fr>
29792 PR tree-optimization/56790
29793 * fold-const.c (fold_ternary_loc) <VEC_COND_EXPR>: Add constant
29796 2013-04-03 Marc Glisse <marc.glisse@inria.fr>
29798 * simplify-rtx.c (simplify_binary_operation_1) <VEC_SELECT>:
29800 (simplify_ternary_operation) <VEC_MERGE>: Use unsigned HOST_WIDE_INT
29801 for masks. Test for side effects. Handle nested VEC_MERGE. Handle
29804 2013-04-03 Jakub Jelinek <jakub@redhat.com>
29807 * tree.h (force_folding_builtin_constant_p): New decl.
29808 * builtins.c (force_folding_builtin_constant_p): New variable.
29809 (fold_builtin_constant_p): Fold immediately also if
29810 force_folding_builtin_constant_p.
29812 2013-04-03 Richard Biener <rguenther@suse.de>
29814 PR tree-optimization/56812
29815 * tree-vect-data-refs.c (vect_slp_analyze_data_ref_dependence):
29816 DRs of the same interleaving chain are independent.
29818 2013-04-02 Jason Merrill <jason@redhat.com>
29820 * gdbinit.in (pbb): Use debug fn.
29822 2013-04-02 Lawrence Crowl <crowl@google.com>
29824 * sese.h (struct ivtype_map_elt_s): Remove unused.
29825 (extern debug_ivtype_map): Remove unused.
29826 (extern eq_ivtype_map_elts): Remove unused.
29827 * sese.c (debug_ivtype_map): Removed unused.
29828 (debug_ivtype_map_1): Removed unused.
29829 (debug_ivtype_elt): Remove unused.
29830 (eq_ivtype_map_elts): Remove unused.
29832 2013-04-02 Kai Tietz <ktietz@redhat.com>
29835 * config/i386/cygming.h (SUB_TARGET_RECORD_STUB): New sub-target macro.
29836 * config/i386/i386-protos.h (i386_pe_record_stub): Add new prototype.
29837 * config/i386/i386.c (legitimize_pe_coff_extern_decl): New static
29839 (legitimize_pe_coff_symbol): Likewise.
29840 (is_imported_p): New helper-function.
29841 (ix86_option_override_internal): Make MEDIUM_PIC the default code-model
29842 for Windows x64 targets.
29843 (ix86_expand_prologue): Optimize for pe-coff targets.
29844 (ix86_expand_split_stack_prologue): Adjust for pe-coff targets.
29845 (legitimate_pic_address_disp_p): Adjust for x64 pe-coff to support
29846 medium/large code-model.
29847 (legitimize_pic_address): Likewise.
29848 (legitimize_tls_address): Likewise.
29849 (ix86_expand_call): Likewise.
29850 (x86_output_mi_thunk): Likewise.
29851 (get_dllimport_decl): Add new beimport argument.
29852 (construct_plt_address): Don't assert for x64 pe-coff targets.
29853 * config/i386/i386.h (PIC_OFFSET_TABLE_REGNUM): Adjust for x64 pe-coff
29855 (SYMBOL_FLAG_STUBVAR): New macro.
29856 (SYMBOL_REF_STUBVAR_P): Likewise.
29857 * config/i386/winnt.c (stub_list): New structure.
29858 (stub_head): New local variable.
29859 (i386_pe_record_stub): New function.
29860 (i386_pe_file_end): Emit refptr-stubs.
29862 2013-04-02 Jakub Jelinek <jakub@redhat.com>
29864 PR rtl-optimization/56745
29865 * ifcvt.c (cond_exec_find_if_block): Don't try to optimize
29866 if then_bb has no successors and else_bb is EXIT_BLOCK_PTR.
29869 * tree-ssa-alias.c (stmt_kills_ref_p_1): If base != ref->base
29870 and both of them are MEM_REFs, just compare first argument for
29871 equality and attempt to deal even with differing offsets.
29874 * tree-cfg.c (verify_gimple_assign_single): Allow lhs
29875 of gimple_clobber_p to be MEM_REF.
29876 * gimplify.c (gimplify_modify_expr): Gimplify *to_p of
29877 an assignment from TREE_CLOBBER_P. Allow it to be MEM_REF
29878 after gimplification.
29879 * asan.c (get_mem_ref_of_assignment): Don't instrument
29880 gimple_clobber_p stmts.
29881 * tree-ssa-dse.c (dse_optimize_stmt): Allow DSE of
29882 gimple_clobber_p stmt if they have MEM_REF lhs and
29883 are dead because of another gimple_clobber_p stmt.
29884 * tree-ssa-live.c (clear_unused_block_pointer): Treat
29885 gimple_clobber_p stmts like debug stmts.
29886 (remove_unused_locals): Remove clobbers with MEM_REF lhs
29887 that refer to unused VAR_DECLs or uninitialized values.
29888 * tree-sra.c (sra_ipa_reset_debug_stmts): Also remove
29889 gimple_clobber_p stmts if they refer to removed parameters.
29890 (get_repl_default_def_ssa_name, sra_ipa_modify_expr): Fix up
29893 2013-04-02 Uros Bizjak <ubizjak@gmail.com>
29895 * config/i386/i386.md (*testqi_ext_3): Merge with *testqi_ext_3_rex64
29896 using SWI48 mode attribute.
29898 2013-04-02 Wei Mi <wmi@google.com>
29900 * config/i386/i386.c (ix86_rtx_costs): Set proper rtx cost for
29901 ashl<mode>3_mask, *<shift_insn><mode>3_mask and
29902 *<rotate_insn><mode>3_mask in i386.md.
29904 2013-04-02 Alexander Ivchenko <alexander.ivchenko@intel.com>
29906 * config.gcc (arm*-*-linux-*): Remove duplicate t-linux-android.
29908 2013-04-02 Richard Biener <rguenther@suse.de>
29910 PR tree-optimization/56778
29911 * tree-vect-data-refs.c (vect_analyze_data_ref_dependence):
29912 Runtime alias tests are not supported for gather loads.
29913 * tree-vect-loop-manip.c (vect_loop_versioning): Insert
29914 stmts referenced from SSA operands before updating SSA form.
29916 2013-04-02 Ian Caulfield <ian.caulfield@arm.com>
29917 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
29919 * config/arm/arm-arches.def (armv8-a): Default to cortex-a53.
29920 * config/arm/t-arm (MD_INCLUDES): Depend on cortex-a53.md.
29921 * config/arm/cortex-a53.md: New file.
29922 * config/arm/bpabi.h (BE8_LINK_SPEC): Handle cortex-a53.
29923 * config/arm/arm.md (generic_sched, generic_vfp): Handle cortex-a53.
29924 * config/arm/arm.c (arm_issue_rate): Likewise.
29925 * config/arm/arm-tune.md: Regenerate
29926 * config/arm/arm-tables.opt: Regenerate.
29927 * config/arm/arm-cores.def: Add cortex-a53.
29929 2013-04-02 Zhenqiang Chen <zhenqiang.chen@arm.com>
29931 * config/arm/uclinux-elf.h: Add %L to LINK_GCC_C_SEQUENCE_SPEC for
29934 2013-04-02 Sofiane Naci <sofiane.naci@arm.com>
29936 * config/aarch64/aarch64.md (*mov<mode>_aarch64): Add variants for
29937 scalar load/store operations using B/H registers.
29938 (*zero_extend<SHORT:mode><GPI:mode>2_aarch64): Likewise.
29940 2013-04-02 Sofiane Naci <sofiane.naci@arm.com>
29942 * config/aarch64/aarch64.md (*mov<mode>_aarch64): Add alternatives for
29944 * config/aarch64/aarch64.c
29945 (aarch64_simd_scalar_immediate_valid_for_move): New.
29946 * config/aarch64/aarch64-protos.h
29947 (aarch64_simd_scalar_immediate_valid_for_move): New.
29948 * config/aarch64/constraints.md (Dh, Dq): New.
29949 * config/aarch64/iterators.md (hq): New.
29951 2013-04-02 Eric Botcazou <ebotcazou@adacore.com>
29953 * reorg.c (get_branch_condition): Deal with conditional returns.
29954 (fill_simple_delay_slots): Remove dead code dealing with jumps.
29956 2013-04-01 Wei Mi <wmi@google.com>
29958 * config/i386/i386.md (*ashl<mode>3_mask): Rewrite as define_insn.
29959 Truncate operand 2 using %b asm operand modifier.
29960 (*<shift_insn><mode>3_mask): Ditto.
29961 (*<rotate_insn><mode>3_mask): Ditto.
29963 2013-04-01 Steven Bosscher <steven@gcc.gnu.org>
29965 PR middle-end/56798
29966 * cfgbuild.c (inside_basic_block_p): Restore check broken at r197234.
29968 2013-03-31 Kaz Kojima <kkojima@gcc.gnu.org>
29970 * config/sh/sh.md (casesi_worker_1): Use next_active_insn instead
29972 (casesi_worker_2, casesi_shift_media, casesi_load_media): Likewise.
29974 2013-03-30 Lawrence Crowl <crowl@google.com>
29976 * dse.c (clear_alias_sets): Remove never set.
29977 (disqualified_clear_alias_sets): Remove never set.
29978 (clear_alias_mode_pool): Remove never set.
29979 (dse_step0): Remove condition that is never true.
29980 (canon_address): Remove condition that is never true.
29981 (dse_step7): Remove condition that is never true.
29982 (rest_of_handle_dse): Remove condition that is never true.
29983 (rest_of_handle_dse::did_global): Remove never read from above.
29984 (dse_step2_spill): Remove never called from above.
29985 (dse_step5_spill): Remove never called from above.
29987 2013-03-30 Steven Bosscher <steven@gcc.gnu.org>
29989 * doc/md.texi (Standard Names) <casesi>: Update documentation for
29990 JUMP_TABLE_DATA changes.
29991 * doc/tm.texi.in (Dispatch Tables) <ASM_OUTPUT_CASE_LABEL>: Likewise.
29992 * doc/rtl.texi (Flags) <INSN_DELETED_P, SCHED_GROUP_P>: Likewise.
29993 (Insns) <jump_table_data>: New entry.
29994 * doc/tm.texi: Regenerate.
29996 * cfgrtl.c (fixup_reorder_chain): Do not emit barriers to BB_FOOTER.
29998 * postreload-gcse.c (bb_has_well_behaved_predecessors): Correct test
29999 for table jump at the end of a basic block using tablejump_p.
30000 * targhooks.c (default_invalid_within_doloop): Likewise.
30001 * config/rs6000/rs6000.c (TARGET_INVALID_WITHIN_DOLOOP): Remove
30002 target hook implementation that is identical to the default hook.
30003 (rs6000_invalid_within_doloop): Remove.
30005 * bb-reorder.c (fix_crossing_unconditional_branches): Remove set but
30006 unused variable from tablejump_p call.
30008 * rtl.def (JUMP_TABLE_DATA): New RTX_INSN object.
30009 * rtl.h (RTX_PREV, RTX_NEXT): Adjust for new JUMP_TABLE_DATA.
30010 (INSN_DELETED_P): Likewise.
30011 (emit_jump_table_data): New prototype.
30012 * gengtype.c (adjust_field_rtx_def): Handle JUMP_TABLE_DATA fields
30013 after 4th as unused.
30014 * print-rtl.c (print_rtl): Handle JUMP_TABLE_DATA.
30015 * sched-vis.c (print_insn): Likewise.
30016 * emit-rtl.c (active_insn_p): Consider JUMP_TABLE_DATA an active
30017 insn for compatibility with back ends that use next_active_insn to
30018 identify jump table data.
30019 (set_insn_deleted): Remove no longer useful JUMP_TABLE_DATA_P check.
30020 (remove_insn): Likewise.
30021 (emit_insn): Do not accept JUMP_TABLE_DATA objects in insn chains
30023 (emit_debug_insn, emit_jump_insn, emit_call_insn, emit_label): Idem.
30024 (emit_jump_table_data): New function.
30026 * cfgbuild.c (inside_basic_block_p): A JUMP_INSN is always inside a
30027 basic block, a JUMP_TABLE_DATA never is.
30028 (control_flow_insn_p): JUMP_TABLE_DATA is not a control flow insn.
30029 * cfgrtl.c (duplicate_insn_chain): Split handling of JUMP_TABLE_DATA
30030 off from code handling real insns.
30031 * final.c (get_attr_length_1): Simplify for JUMP_INSNs.
30032 * function.c (instantiate_virtual_regs): Remove JUMP_TABLE_DATA_P
30033 test, now redundant because JUMP_TABLE_DATA is not an INSN_P insn.
30034 * gcse.c (insert_insn_end_basic_block): Likewise, JUMP_TABLE_DATA_P
30035 is not a NONDEBUG_INSN_P.
30036 * ira-costs.c (scan_one_insn): Likewise.
30037 * jump.c (mark_all_labels): Likewise.
30038 (mark_jump_label_1): Likewise.
30039 * lra-eliminations.c (eliminate_regs_in_insn): Likewise.
30040 * lra.c (get_insn_freq): Expect all insns reaching here to be in
30042 (check_rtl): Remove JUMP_TABLE_DATA_P test, not a NONDEBUG_INSN_P insn.
30043 * predict.c (expensive_function_p): Use FOR_BB_INSNS.
30044 * reload1.c (calculate_needs_all_insns): Call set_label_offsets for
30045 JUMP_TABLE_DATA_P insns.
30046 (calculate_elim_costs_all_insns): Likewise.
30047 (set_label_offsets): Recurse on the PATTERN of JUMP_TABLE_DATA insns.
30048 (elimination_costs_in_insn): Remove redundant JUMP_TABLE_DATA_P test.
30049 (delete_output_reload): Code style fixups.
30050 * reorg.c (dbr_schedule): Move JUMP_TABLE_DATA_P up to avoid setting
30051 insn flags on this non-insn.
30052 * sched-rgn.c (add_branch_dependences): Treat JUMP_TABLE_DATA insns
30053 as scheduling barriers, for pre-change compatibility.
30054 * stmt.c (emit_case_dispatch_table): Emit jump table data not as
30055 JUMP_INSN objects but instead as JUMP_TABLE_DATA objects.
30057 * config/alpha/alpha.c (alpha_does_function_need_gp): Remove
30058 redundant JUMP_TABLE_DATA_P test.
30059 * config/arm/arm.c (thumb_far_jump_used_p): Likewise.
30060 * config/frv/frv.c (frv_function_contains_far_jump): Likewise.
30061 (frv_for_each_packet): Likewise.
30062 * config/i386/i386.c (min_insn_size): Likewise.
30063 (ix86_avoid_jump_mispredicts): Likewise.
30064 * config/m32r/m32r.c (m32r_is_insn): Likewise.
30065 * config/mep/mep.c (mep_reorg_erepeat): Likewise.
30066 * config/mips/mips.c (USEFUL_INSN_P): Likewise.
30067 (mips16_insn_length): Robustify.
30068 (mips_has_long_branch_p): Remove redundant JUMP_TABLE_DATA_P test.
30069 (mips16_split_long_branches): Likewise.
30070 * config/pa/pa.c (pa_combine_instructions): Likewise.
30071 * config/rs6000/rs6000.c (get_next_active_insn): Treat
30072 JUMP_TABLE_DATA objects as active insns, like in active_insn_p.
30073 * config/s390/s390.c (s390_chunkify_start): Treat JUMP_TABLE_DATA
30074 as contributing to pool range lengths.
30075 * config/sh/sh.c (find_barrier): Restore check for ADDR_DIFF_VEC.
30076 Remove redundant JUMP_TABLE_DATA_P test.
30077 (sh_loop_align): Likewise.
30078 (split_branches): Likewise.
30079 (sh_insn_length_adjustment): Likewise.
30080 * config/spu/spu.c (get_branch_target): Likewise.
30082 2013-03-29 Jan Hubicka <jh@suse.cz>
30084 * lto-cgraph.c (output_profile_summary, input_profile_summary): Use
30085 gcov streaming; stream hot bb threshold to ltrans.
30086 * predict.c (get_hot_bb_threshold): Break out from ....
30087 (maybe_hot_count_p): ... here.
30088 (set_hot_bb_threshold): New function.
30089 * lto-section-in.c (lto_section_name): Add profile.
30090 * profile.h (get_hot_bb_threshold, set_hot_bb_threshold): Declare.
30091 * ipa.c: Include hash-table.h, tree-inline.h, profile.h, lto-streamer.h
30092 and data-streamer.h
30093 (histogram_entry): New structure.
30094 (histogram, histogram_pool): New global vars.
30095 (histogram_hash): New structure.
30096 (histogram_hash::hash): New method.
30097 (histogram_hash::equal): Likewise.
30098 (account_time_size): New function.
30099 (cmp_counts): New function.
30100 (dump_histogram): New function.
30101 (ipa_profile_generate_summary): New function.
30102 (ipa_profile_write_summary): New function.
30103 (ipa_profile_read_summary): New function.
30104 (ipa_profile): Decide on threshold.
30105 (pass_ipa_profile): Add ipa_profile_write_summary and
30106 ipa_profile_read_summary.
30107 * Makefile.in (ipa.o): Update dependencies.
30108 * lto-streamer.h (LTO_section_ipa_profile): New section.
30110 2013-03-29 Gabriel Dos Reis <gdr@integrable-solutions.net>
30112 * tree.h (VAR_P): New.
30114 2013-03-29 Paolo Carlini <paolo.carlini@oracle.com>
30117 * doc/invoke.texi ([-fwhole-program]): Fix typo.
30119 2013-03-29 Steven Bosscher <steven@gcc.gnu.org>
30121 * cfgbuild.c (inside_basic_block_p): Use JUMP_TABLE_DATA_P in lieu
30122 of tests for JUMP_P and a ADDR_DIFF_VEC or ADDR_VEC pattern.
30123 (control_flow_insn_p): Likewise.
30124 * cfgrtl.c (duplicate_insn_chain): Likewise.
30125 * final.c (get_attr_length_1): Likewise.
30126 (shorten_branches): Likewise.
30127 (final_scan_insn): Likewise.
30128 * function.c (instantiate_virtual_regs): Likewise.
30129 * gcse.c (insert_insn_end_basic_block): Likewise.
30130 * ira-costs.c (scan_one_insn): Likewise.
30131 * lra-eliminations.c (eliminate_regs_in_insn): Likewise.
30132 * lra.c (check_rtl): Likewise.
30133 * reload1.c (elimination_costs_in_insn): Likewise.
30134 * reorg.c (follow_jumps): Likewise.
30136 * config/arm/arm.c (is_jump_table): Use JUMP_TABLE_DATA_P in lieu
30137 of tests for JUMP_P and a ADDR_DIFF_VEC or ADDR_VEC pattern.
30138 (thumb_far_jump_used_p): Likewise.
30139 * config/bfin/bfin.c (workaround_rts_anomaly): Likewise.
30140 (workaround_speculation): Likewise.
30141 (add_sched_insns_for_speculation): Likewise.
30142 * config/c6x/c6x.c (reorg_emit_nops): Likewise.
30143 * config/frv/frv.c (frv_function_contains_far_jump): Likewise.
30144 (frv_for_each_packet): Likewise.
30145 * config/i386/i386.c (ix86_avoid_jump_mispredicts): Likewise.
30146 * config/ia64/ia64.c (emit_all_insn_group_barriers): Likewise.
30147 (final_emit_insn_group_barriers): Likewise.
30148 * config/m32r/m32r.c (m32r_is_insn): Likewise.
30149 * config/mips/mips.c (USEFUL_INSN_P): Likewise.
30150 (mips16_insn_length): Likewise.
30151 * config/pa/pa.c (pa_reorg): Likewise.
30152 (pa_combine_instructions): Likewise.
30153 * config/rs6000/rs6000.c (rs6000_invalid_within_doloop): Likewise.
30154 * config/sh/sh.c (fixup_addr_diff_vecs): Likewise.
30155 (sh_reorg): Likewise.
30156 (split_branches): Likewise.
30157 * config/spu/spu.c (get_branch_target): Likewise.
30159 * config/s390/s390.c (s390_chunkify_start): Simplify logic using
30162 2013-03-29 Kirill Yukhin <kirill.yukhin@intel.com>
30164 * config/i386/avx2intrin.h (_mm256_broadcastsi128_si256):
30165 Fix declaration name.
30167 2013-03-28 Lawrence Crowl <crowl@google.com>
30169 * graphds.h (struct graph.indicies): Remove unused.
30170 * graphite-poly.h (struct graph.original_pddrs): Remove unused.
30171 (SCOP_ORIGINAL_PDDRS): Remove unused.
30172 * sese.h (extern insert_loop_close_phis): Removed unused.
30173 (extern insert_guard_phis): Removed unused.
30174 (extern ivtype_map_elt_info): Removed unused.
30175 (new_ivtype_map_elt): Removed unused.
30176 * sese.c (ivtype_map_elt_info): Removed unused.
30178 2013-03-28 Lawrence Crowl <crowl@google.com>
30180 * Makefile.in: Add several missing include dependences.
30182 (test-dump.o): New. This object is not added to any executable,
30183 but is present for ad-hoc testing.
30185 (debug (const bitmap_head_def &)): New.
30186 (debug (const bitmap_head_def *)): New.
30188 (extern debug (const bitmap_head_def &)): New.
30189 (extern debug (const bitmap_head_def *)): New.
30191 (debug (edge_def &)): New.
30192 (debug (edge_def *)): New.
30194 (debug (basic_block_def &)): New.
30195 (debug (basic_block_def *)): New.
30197 (dump_node (const_tree, int, FILE *)): Correct source file.
30199 (debug (die_struct &)): New.
30200 (debug (die_struct *)): New.
30202 (extern debug (die_struct &)): New.
30203 (extern debug (die_struct *)): New.
30204 * gimple-pretty-print.c
30205 (debug (gimple_statement_d &)): New.
30206 (debug (gimple_statement_d *)): New.
30207 * gimple-pretty-print.h
30208 (extern debug (gimple_statement_d &)): New.
30209 (extern debug (gimple_statement_d *)): New.
30211 (debug (ira_allocno_copy &)): New.
30212 (debug (ira_allocno_copy *)): New.
30213 (debug (ira_allocno &)): New.
30214 (debug (ira_allocno *)): New.
30216 (extern debug (ira_allocno_copy &)): New.
30217 (extern debug (ira_allocno_copy *)): New.
30218 (extern debug (ira_allocno &)): New.
30219 (extern debug (ira_allocno *)): New.
30221 (debug (live_range &)): New.
30222 (debug (live_range *)): New.
30224 (debug (lra_live_range &)): New.
30225 (debug (lra_live_range *)): New.
30227 (debug (lra_live_range &)): New.
30228 (debug (lra_live_range *)): New.
30230 (debug (omega_pb_d &)): New.
30231 (debug (omega_pb_d *)): New.
30233 (extern debug (omega_pb_d &)): New.
30234 (extern debug (omega_pb_d *)): New.
30236 (debug (const rtx_def &)): New.
30237 (debug (const rtx_def *)): New.
30239 (debug_tree (tree): Move within file.
30240 (debug_raw (const tree_node &)): New.
30241 (debug_raw (const tree_node *)): New.
30242 (dump_tree_via_hooks (const tree_node *, int)): New.
30243 (debug (const tree_node &)): New.
30244 (debug (const tree_node *)): New.
30245 (debug_verbose (const tree_node &)): New.
30246 (debug_verbose (const tree_node *)): New.
30247 (debug_head (const tree_node &)): New.
30248 (debug_head (const tree_node *)): New.
30249 (debug_body (const tree_node &)): New.
30250 (debug_body (const tree_node *)): New.
30251 (debug_vec_tree (tree): Move and reimplement in terms of dump.
30252 (debug (vec<tree, va_gc> &)): New.
30253 (debug (vec<tree, va_gc> *)): New.
30255 (extern debug (const rtx_def &)): New.
30256 (extern debug (const rtx_def *)): New.
30258 (debug_raw (simple_bitmap_def &)): New.
30259 (debug_raw (simple_bitmap_def *)): New.
30260 (debug (simple_bitmap_def &)): New.
30261 (debug (simple_bitmap_def *)): New.
30263 (extern debug (simple_bitmap_def &)): New.
30264 (extern debug (simple_bitmap_def *)): New.
30265 (extern debug_raw (simple_bitmap_def &)): New.
30266 (extern debug_raw (simple_bitmap_def *)): New.
30268 (debug (vinsn_def &)): New.
30269 (debug (vinsn_def *)): New.
30270 (debug_verbose (vinsn_def &)): New.
30271 (debug_verbose (vinsn_def *)): New.
30272 (debug (expr_def &)): New.
30273 (debug (expr_def *)): New.
30274 (debug_verbose (expr_def &)): New.
30275 (debug_verbose (expr_def *)): New.
30276 (debug (vec<rtx> &)): New.
30277 (debug (vec<rtx> *)): New.
30279 (extern debug (vinsn_def &)): New.
30280 (extern debug (vinsn_def *)): New.
30281 (extern debug_verbose (vinsn_def &)): New.
30282 (extern debug_verbose (vinsn_def *)): New.
30283 (extern debug (expr_def &)): New.
30284 (extern debug (expr_def *)): New.
30285 (extern debug_verbose (expr_def &)): New.
30286 (extern debug_verbose (expr_def *)): New.
30287 (extern debug (vec<rtx> &)): New.
30288 (extern debug (vec<rtx> *)): New.
30290 (_list_iter_cond_expr): Make inline instead of static.
30292 (debug (sreal &)): New.
30293 (debug (sreal *)): New.
30295 (extern debug (sreal &)): New.
30296 (extern debug (sreal *)): New.
30298 (extern debug_raw (const tree_node &)): New.
30299 (extern debug_raw (const tree_node *)): New.
30300 (extern debug (const tree_node &)): New.
30301 (extern debug (const tree_node *)): New.
30302 (extern debug_verbose (const tree_node &)): New.
30303 (extern debug_verbose (const tree_node *)): New.
30304 (extern debug_head (const tree_node &)): New.
30305 (extern debug_head (const tree_node *)): New.
30306 (extern debug_body (const tree_node &)): New.
30307 (extern debug_body (const tree_node *)): New.
30308 (extern debug (vec<tree, va_gc> &)): New.
30309 (extern debug (vec<tree, va_gc> *)): New.
30311 (debug (struct loop &)): New.
30312 (debug (struct loop *)): New.
30313 (debug_verbose (struct loop &)): New.
30314 (debug_verbose (struct loop *)): New.
30315 * tree-dump.c: Add header dependence.
30317 (extern debug (struct loop &)): New.
30318 (extern debug (struct loop *)): New.
30319 (extern debug_verbose (struct loop &)): New.
30320 (extern debug_verbose (struct loop *)): New.
30322 (debug (data_reference &)): New.
30323 (debug (data_reference *)): New.
30324 (debug (vec<data_reference_p> &)): New.
30325 (debug (vec<data_reference_p> *)): New.
30326 (debug (vec<ddr_p> &)): New.
30327 (debug (vec<ddr_p> *)): New.
30329 (extern debug (data_reference &)): New.
30330 (extern debug (data_reference *)): New.
30331 (extern debug (vec<data_reference_p> &)): New.
30332 (extern debug (vec<data_reference_p> *)): New.
30333 (extern debug (vec<ddr_p> &)): New.
30334 (extern debug (vec<ddr_p> *)): New.
30336 (debug (pt_solution &)): New.
30337 (debug (pt_solution *)): New.
30339 (extern debug (pt_solution &)): New.
30340 (extern debug (pt_solution *)): New.
30342 (debug (_var_map &)): New.
30343 (debug (_var_map *)): New.
30344 (debug (tree_live_info_d &)): New.
30345 (debug (tree_live_info_d *)): New.
30347 (extern debug (_var_map &)): New.
30348 (extern debug (_var_map *)): New.
30349 (extern debug (tree_live_info_d &)): New.
30350 (extern debug (tree_live_info_d *)): New.
30352 2013-03-28 Jan Hubicka <jh@suse.cz>
30354 * lto-cgraph.c (merge_profile_summaries): Fix overflows.
30356 2013-03-28 Ian Bolton <ian.bolton@arm.com>
30358 * config/aarch64/aarch64.md (aarch64_can_eliminate): Keep frame
30359 record only when desired or required.
30361 2013-03-28 Uros Bizjak <ubizjak@gmail.com>
30363 * config/i386/i386.md (*vec_extract2vdi_1): Merge with
30364 *vec_extractv2di_1_rex64. Use x64 isa attribute.
30366 2013-03-28 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
30368 * config/aarch64/aarch64.md (*and<mode>3_compare0): New pattern.
30369 (*andsi3_compare0_uxtw): New pattern.
30370 (*and_<SHIFT:optab><mode>3_compare0): New pattern.
30371 (*and_<SHIFT:optab>si3_compare0_uxtw): New pattern.
30373 2013-03-28 Jan Hubicka <jh@suse.cz>
30375 * data-streamer-in.c (streamer_read_gcov_count): New function.
30376 * gimple-streamer-out.c: Include value-prof.h.
30377 (output_gimple_stmt): Output histogram.
30378 (output_bb): Use streamer_write_gcov_count.
30379 * value-prof.c: Include data-streamer.h
30380 (dump_histogram_value): Add HIST_TYPE_MAX.
30381 (stream_out_histogram_value): New function.
30382 (stream_in_histogram_value): New function.
30383 * value-prof.h (enum hist_type): Add HIST_TYPE_MAX.
30384 (stream_out_histogram_value, stream_in_histogram_value): Declare.
30385 * data-streamer-out.c (streamer_write_gcov_count): New function.
30386 (streamer_write_gcov_count_stream): New function.
30387 * lto-cgraph.c (lto_output_edge): Update counter streaming.
30388 (lto_output_node): Likewise.
30389 (input_node, input_edge): Likewise.
30390 * lto-streamer-out.c (output_cfg): Update streaming.
30391 * lto-streamer-in.c (input_cfg): Likewise.
30392 * data-streamer.h (streamer_write_gcov_count,
30393 streamer_write_gcov_count_stream, streamer_read_gcov_count): Declare.
30394 * gimple-streamer-in.c: Include value-prof.h
30395 (input_gimple_stmt): Input histograms.
30396 (input_bb): Update profile streaming.
30398 2013-03-28 Kenneth Zadeck <zadeck@naturalbridge.com>
30400 * genmodes.c (emit_max_int): New function.
30401 (emit_insn_modes_h): Added call to emit_max_function.
30402 * doc/rtl.texi (MAX_BITSIZE_MODE_ANY_INT, MAX_BITSIZE_MODE_ANY_MODE):
30404 * machmode.def: Fixed comment.
30406 2013-03-28 Kenneth Zadeck <zadeck@naturalbridge.com>
30408 * combine.c (try_combine): Removed useless assert.
30409 * cselib.c (rtx_equal_for_cselib_1): Removed unnecessary parens.
30411 2013-03-28 Marek Polacek <polacek@redhat.com>
30412 Richard Biener <rguenther@suse.de>
30414 PR tree-optimization/56695
30415 * tree-vect-stmts.c (vectorizable_condition): Unconditionally
30416 build signed result of a vector comparison.
30417 * tree-cfg.c (verify_gimple_comparison): Check that a result
30418 of a vector comparison has signed type.
30420 2013-03-28 Richard Biener <rguenther@suse.de>
30422 PR tree-optimization/37021
30423 * tree-vect-slp.c (vect_build_slp_tree): When not unrolling
30424 do not restrict gaps between groups.
30425 * tree-vect-stmts.c (vectorizable_load): Properly account for
30426 a gap between groups.
30428 2013-03-28 Eric Botcazou <ebotcazou@adacore.com>
30430 * toplev.c (process_options): Do not disable -fomit-frame-pointer on a
30431 general basis if unwind info is requested and ACCUMULATE_OUTGOING_ARGS
30434 2013-03-27 Gerald Pfeifer <gerald@pfeifer.com>
30436 * doc/invoke.texi (AVR Options): Tweak link for AVR-LibC user manual.
30437 * doc/extend.texi (Named Address Spaces): Ditto.
30438 (Variable Attributes): Ditto.
30440 2013-03-27 Kai Tietz <ktietz@redhat.com>
30442 * config.build: Add support for cygwin x64 target.
30443 * config.gcc: Likewise.
30444 * config.host: Likewise.
30445 * configure.ac: Likewise
30446 * configure: Regenerated.
30448 2013-03-27 Kai Tietz <ktietz@redhat.com>
30450 * config/i386/cygwin-stdint.h: Add support for cygwin x64 target.
30451 * config/i386/t-cygwin-w64: New file.
30452 * config/i386/cygwin-w64.h: New file.
30453 * config/i386/cygwin.h (EXTRA_OS_CPP_BUILTINS): Extend
30454 and add support for x64-cygwin target.
30455 (CPP_SPEC): Likewise.
30456 (CXX_WRAP_SPEC_LIST): Undefine before define.
30457 (LIBGCJ_SONAME): Use 15 as version.
30459 2013-03-27 Richard Biener <rguenther@suse.de>
30461 PR tree-optimization/56716
30462 * tree-ssa-structalias.c (perform_var_substitution): Adjust
30463 dumping for ref nodes.
30465 2013-03-27 Martin Jambor <mjambor@suse.cz>
30467 PR tree-optimization/55334
30468 * ipa-cp.c (initialize_node_lattices): Allow IPA-CP through and to
30469 restricted pointers to arrays.
30471 2013-03-27 Gabriel Dos Reis <gdr@integrable-solutions.net>
30473 * Makefile.in (.SUFFIXES): Add .cc.
30474 (.c.o): Apply same recipe for implicit rule .cc.o.
30476 2013-03-27 Richard Biener <rguenther@suse.de>
30478 PR tree-optimization/37021
30479 * tree-vect-data-refs.c (vect_check_strided_load): Allow
30480 REALPART/IMAGPART_EXPRs around the supported refs.
30481 * tree-ssa-structalias.c (find_func_aliases): Assume that
30482 floating-point values are not used to transfer pointers.
30484 2013-03-27 Alexander Ivchenko <alexander.ivchenko@intel.com>
30486 * target.def (TARGET_HAS_IFUNC_P): New target hook.
30487 * doc/tm.texi.in (TARGET_HAS_IFUNC_P): New.
30488 * doc/tm.texi: Regenerate.
30489 * targhooks.h (default_has_ifunc_p): New.
30490 * targhooks.c (default_has_ifunc_p): Ditto.
30491 * config/linux-protos.h: New file.
30492 * config/linux-android.h (TARGET_HAS_IFUNC_P): Using version of this
30493 hook for linux which disables support of indirect functions in android.
30494 * config/linux-android.c: New file.
30495 * config/t-linux-android.c: Ditto.
30496 * config.gcc: Added new object file linux-android.o.
30497 * config/i386/i386.c (ix86_get_function_versions_dispatcher):
30498 Using TARGET_HAS_IFUNC hook instead of HAVE_GNU_INDIRECT_FUNCTION.
30499 * varasm.c (do_assemble_alias): Likewise.
30500 * configure.ac: Define HAVE_GNU_INDIRECT_FUNCTION as zero if the target
30501 doesn't support indirect functions.
30502 * configure: Regenerate.
30504 2013-03-27 Bin Cheng <bin.cheng@arm.com>
30507 * config/arm/arm.c (thumb1_rtx_costs, thumb1_size_rtx_costs): Fix
30508 rtx costs for SET/ASHIFT/ASHIFTRT/LSHIFTRT/ROTATERT patterns with
30511 2013-03-27 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
30513 * config/s390/s390.h (TARGET_FLT_EVAL_METHOD): Define.
30515 2013-03-27 Terry Guo <terry.guo@arm.com>
30517 * config/arm/arm-cores.def: Added core cortex-r7.
30518 * config/arm/arm-tune.md: Regenerated.
30519 * config/arm/arm-tables.opt: Regenerated.
30520 * doc/invoke.texi: Added entry for core cortex-r7.
30522 2013-03-27 Walter Lee <walt@tilera.com>
30524 * config/tilegx/tilegx.c (tilegx_expand_prologue): Avoid
30525 double-decrement of next_scratch_regno.
30527 2013-03-27 Walter Lee <walt@tilera.com>
30529 * config/tilegx/tilegx.md (insn_v1mulu): Fix predicates on
30531 (insn_v1mulus): Ditto.
30532 (insn_v2muls): Ditto.
30534 2013-03-27 Walter Lee <walt@tilera.com>
30536 * config/tilegx/tilegx.h (ASM_OUTPUT_ADDR_VEC_ELT): Delete extra tab.
30537 (ASM_OUTPUT_ADDR_DIFF_ELT): Ditto.
30539 2013-03-27 Walter Lee <walt@tilera.com>
30541 * config/tilegx/tilegx.md (*sibcall_insn): Fix type atribute for jr.
30542 (*sibcall_value): Ditto.
30544 2013-03-27 Walter Lee <walt@tilera.com>
30546 * config/tilegx/tilegx.md (insn_mnz_<mode>): Replaced by ...
30547 (insn_mnz_v8qi): ... this ...
30548 (insn_mnz_v4hi): ... and this. Replace (const_int 0) with the
30550 (insn_v<n>mnz): Replaced by ...
30551 (insn_v1mnz): ... this ...
30552 (insn_v2mnz): ... and this. Replace (const_int 0) with the vector
30554 (insn_mz_<mode>): Replaced by ...
30555 (insn_mz_v8qi): ... this ...
30556 (insn_mz_v4hi): ... and this. Replace (const_int 0) with the
30558 (insn_v<n>mz): Replaced by ...
30559 (insn_v1mz): ... this ...
30560 (insn_v2mz): ... and this. Replace (const_int 0) with the vector
30563 2013-03-26 Eric Botcazou <ebotcazou@adacore.com>
30565 * doc/invoke.texi (SPARC options): Remove -mlittle-endian.
30567 2013-03-26 Roland McGrath <mcgrathr@google.com>
30569 * config/arm/arm.c (arm_print_operand: case 'w'): Use fputs rather
30570 than fprintf with a non-constant, non-format string.
30572 2013-03-26 Uros Bizjak <ubizjak@gmail.com>
30574 * config/i386/i386.md (*cmpqi_ext_1): Merge with *cmpqi_ext_1_rex64
30575 using nox64 isa attribute. Use nonimmediate_x86nomem_operand as
30576 operand 0 predicate.
30577 (*cmpqi_ext_3): Merge with *cmpqi_ext_3_rex64 using nox64 isa
30578 attribute. Use general_x64nomem_operand as operand 1 predicate.
30579 (*movqi_extv_1): Merge with *movqi_extv_1_rex64 using nox64 isa
30580 attribute. Use nonimmediate_x64nomem_operand as operand 0 predicate.
30581 (*movqi_extzv_2): Merge with *movqi_extzv_2_rex64 using nox64 isa
30582 attribute. Use nonimmediate_x64nomem_operand as operand 0 predicate.
30583 (mov<mode>_insv_1): Remove expander. Merge insn with
30584 movsi_insv_1 using SWI48 mode iterator and nox64 isa attribute.
30585 Use general_x64nomem_operand as operand 1 predicate.
30586 (addqi_ext_1): Merge with *addqi_ext_1_rex64 using nox64 isa attribute.
30587 (*testqi_ext_1): Merge with *testqi_ext_1_rex64 using nox64 isa
30588 attribute. Use nonimmediate_x64nomem_operand as operand 1 predicate.
30589 (*andqi_ext_1): Merge with *andqi_ext_1_rex64 using nox64 isa
30590 attribute. Use nonimmediate_x64nomem_operand as operand 2 predicate.
30591 (*<code>qi_ext_1): Merge with *<code>qi_ext_1_rex64 using nox64 isa
30592 attribute. Use nonimmediate_x64nomem_operand as operand 1 predicate.
30593 (*xorqi_cc_ext_1): Merge with *xorqi_cc_ext_1_rex64 using nox64
30594 isa attribute. Use general_x64nomem_operand as operand 2 predicate.
30595 * config/i386/predicates.md (nonimmediate_x64nomem_operand): New.
30596 (general_x64nomem_operand): Ditto.
30598 2013-03-26 Sebastian Huber <sebastian.huber@embedded-brains.de>
30600 * config/rtems.opt: Add -pthread option.
30602 2013-03-26 Richard Biener <rguenther@suse.de>
30604 * alias.c (find_base_term): Avoid redundant and not used recursion.
30605 (base_alias_check): Get the initial base term from the caller.
30606 (true_dependence_1): Compute and pass base terms to base_alias_check.
30607 (write_dependence_p): Likewise.
30608 (may_alias_p): Likewise.
30610 2013-03-26 Sofiane Naci <sofiane.naci@arm.com>
30612 * config/aarch64/aarch64.c (aarch64_classify_address): Support
30613 PC-relative load in SI modes and above only.
30615 2013-03-26 Xinyu Qi <xyqi@marvell.com>
30617 * config/arm/arm.h (FIRST_IWMMXT_GR_REGNUM): Add comment.
30618 * config/arm/iwmmxt.md (WCGR0): Update.
30619 (WCGR1, WCGR2, WCGR3): Likewise.
30621 2013-03-26 Uros Bizjak <ubizjak@gmail.com>
30623 * config/i386/i386.md (*movdfcc_1): Merge with *movdfcc_1_rex64.
30624 Use x64 and nox64 isa attributes.
30626 2013-03-26 Richard Biener <rguenther@suse.de>
30628 * emit-rtl.c (set_mem_attributes_minus_bitpos): Remove
30629 alignment computations and rely on get_object_alignment_1
30630 for the !TYPE_P case.
30631 Commonize DECL/COMPONENT_REF handling in the ARRAY_REF path.
30633 2013-03-26 Walter Lee <walt@tilera.com>
30635 * config/tilegx/tilegx.h (PROFILE_BEFORE_PROLOGUE): Define.
30636 * config/tilegx/tilepro.h (PROFILE_BEFORE_PROLOGUE): Define.
30638 2013-03-25 Jeff Law <law@redhat.com>
30640 * tree-ssa-dom.c (record_equivalences_from_incoming_edge): Add missing
30641 check for INTEGRAL_TYPE_P that was missing due to checking in
30642 wrong version of prior patch.
30644 2013-03-25 Walter Lee <walt@tilera.com>
30646 * config/tilegx/tilegx-builtins.h (enum tilegx_builtin): Add
30647 TILEGX_INSN_SHUFFLEBYTES1.
30648 * config/tilegx/tilegx.c (tilegx_builtin_info): Add entry for
30650 (tilegx_builtins): Ditto.
30651 * config/tilegx/tilegx.md (insn_shufflebytes1): New pattern.
30653 2013-03-25 Walter Lee <walt@tilera.com>
30655 * config/tilegx/tilegx.md (floatsisf2): New pattern.
30656 (floatunssisf2): New pattern.
30657 (floatsidf2): New pattern.
30658 (floatunssidf2): New pattern.
30660 2013-03-25 Walter Lee <walt@tilera.com>
30662 * config/tilegx/tilegx.c (expand_set_cint64_one_inst): Inline
30663 tests for constraint J, K, N, P.
30665 2013-03-25 Walter Lee <walt@tilera.com>
30667 * config/tilegx/tilegx.c (tilegx_asm_preferred_eh_data_format):
30668 Use indirect/pcrel encoding.
30669 * config/tilepro/tilepro.c (tilepro_asm_preferred_eh_data_format):
30672 2013-03-25 Steve Ellcey <sellcey@mips.com>
30674 * config/mips/mmips-cpus.def (74kc, 74kf2_1, 74kf, 74kf, 74kf1_1,
30675 74kfx, 74kx, 74kf3_2): Add PTF_AVOID_IMADD.
30676 * config/mips/mips.c (mips_option_override): Set IMADD default.
30677 * config/mips/mips.h (PTF_AVOID_IMADD): New.
30678 (ISA_HAS_MADD_MSUB): Remove MIPS16 check.
30679 (GENERATE_MADD_MSUB): Remove TUNE_74K check, add MIPS16 check.
30680 * config/mips/mips.md (mimadd): New flag for integer madd/msub.
30681 * doc/invoke.texi (-mimadd/-mno-imadd): New.
30683 2013-03-25 Jeff Law <law@redhat.com>
30685 * tree-ssa-dom.c (record_equivalences_from_incoming_edge): Rework
30686 slightly to avoid creating and folding useless trees. Simplify
30687 slightly by restricting to INTEGER_CSTs and using int_fits_type_p.
30689 2013-03-25 Uros Bizjak <ubizjak@gmail.com>
30691 * config/i386/i386.md (*zero_extendsidi2): Merge with
30692 *zero_extendsidi2_rex64. Use x64 and nox64 isa attributes.
30693 * config/i386/predicates.md (x86_64_zext_operand): Rename from
30694 x86_64_zext_general_operand. Use nonimmediate_operand on 32bit
30695 targets. Clarify comment.
30697 2013-03-25 Martin Jambor <mjambor@suse.cz>
30699 * ipa-prop.c (ipa_write_jump_function): Stream simple and aritmetic
30700 pass-through jump functions differently.
30701 (ipa_read_jump_function): Likewise. Also use setter functions to set
30704 2013-03-25 Martin Jambor <mjambor@suse.cz>
30706 * ipa-cp.c (ipa_get_indirect_edge_target): Renamed to
30707 ipa_get_indirect_edge_target_1, added parameter agg_reps and ability to
30709 (ipa_get_indirect_edge_target): New function.
30710 (devirtualization_time_bonus): New parameter known_aggs, pass it to
30711 ipa_get_indirect_edge_target. Update all callers.
30712 (ipcp_discover_new_direct_edges): New parameter aggvals. Pass it to
30713 ipa_get_indirect_edge_target_1 instead of calling
30714 ipa_get_indirect_edge_target.
30715 (create_specialized_node): Pass aggvlas to
30716 ipcp_discover_new_direct_edges.
30718 2013-03-25 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
30720 * config/arm/arm.md (f_sels, f_seld): New types.
30721 (*cmov<mode>): New pattern.
30722 * config/arm/predicates.md (arm_vsel_comparison_operator): New
30725 2013-03-25 Kai Tietz <ktietz@redhat.com>
30727 * config/i386/xm-mingw32.h (__USE_MINGW_ANSI_STDIO): Enable
30728 POSIX-printf for mingw-hosted builds.
30730 2013-03-25 Richard Biener <rguenther@suse.de>
30732 PR middle-end/56694
30733 * tree-eh.c (lower_eh_must_not_throw): Strip BLOCKs from the
30734 must-not-throw stmt location.
30736 2013-03-25 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
30738 * config/arm/arm.c (arm_emit_load_exclusive): Add acq parameter.
30739 Emit load-acquire versions when acq is true.
30740 (arm_emit_store_exclusive): Add rel parameter.
30741 Emit store-release versions when rel is true.
30742 (arm_split_compare_and_swap): Use acquire-release instructions
30744 of barriers when appropriate.
30745 (arm_split_atomic_op): Likewise.
30746 * config/arm/arm.h (TARGET_HAVE_LDACQ): New macro.
30747 * config/arm/unspecs.md (VUNSPEC_LAX): New unspec.
30748 (VUNSPEC_SLX): Likewise.
30749 (VUNSPEC_LDA): Likewise.
30750 (VUNSPEC_STL): Likewise.
30751 * config/arm/sync.md (atomic_load<mode>): New pattern.
30752 (atomic_store<mode>): Likewise.
30753 (arm_load_acquire_exclusive<mode>): Likewise.
30754 (arm_load_acquire_exclusivesi): Likewise.
30755 (arm_load_acquire_exclusivedi): Likewise.
30756 (arm_store_release_exclusive<mode>): Likewise.
30758 2013-03-25 Catherine Moore <clm@codesourcery.com>
30760 * config/mips/constraints.md (u, Udb7 Uead, Uean, Uesp, Uib3,
30761 Uuw6, Usb4, ZS, ZT, ZU, ZV, ZW): New constraints.
30762 * config/mip/predicates.md (lwsp_swsp_operand,
30763 lw16_sw16_operand, lhu16_sh16_operand, lbu16_operand,
30764 sb16_operand, db4_operand, db7_operand, ib3_operand,
30765 sb4_operand, ub4_operand, uh4_operand, uw4_operand,
30766 uw5_operand, uw6_operand, addiur2_operand, addiusp_operand,
30767 andi16_operand): New predicates.
30768 * config/mips/mips.md (compression): New attribute.
30769 (enabled): New attribute.
30770 (length): Consider compression in computing length.
30771 (shift_compression): New code attribute.
30772 (*add<mode>3): New operands. Record compression.
30773 (sub<mode>3): Likewise.
30774 (one_cmpl<mode>2): Likewise.
30775 (*and<mode>3): Likewise.
30776 (*ior<mode>3): Likewise.
30777 (unnamed pattern for xor): Likewise.
30778 (*zero_extend<SHORT:mode><GPR:mode>2): Likewise.
30779 (*<optab><mode>3): Likewise.
30780 (*mov<mode>_internal: Likewise.
30781 * config/mips/mips-protos.h (mips_signed_immediate_p): New.
30782 (mips_unsigned_immediate_p): New.
30783 (umips_lwsp_swsp_address_p): New.
30784 (m16_based_address_p): New.
30785 * config/mips/mips-protos.h (mips_signed_immediate_p): New prototype.
30786 (mips_unsigned_immediate_p): New prototype.
30787 (lwsp_swsp_address_p): New prototype.
30788 (m16_based_address_p): New prototype.
30789 * config/mips/mips.c (mips_unsigned_immediate_p): New function.
30790 (mips_signed_immediate_p): New function.
30791 (m16_based_address_p): New function.
30792 (lwsp_swsp_address_p): New function.
30793 (mips_print_operand_punctuation): Recognize short delay slot insns
30794 for microMIPS.add<mode>3"
30796 2013-03-25 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
30799 * config/arm/iterators.md (v_cmp_result): New mode attribute.
30800 * config/arm/neon.md (vcond<mode><mode>): Handle unordered cases.
30802 2013-03-25 Richard Biener <rguenther@suse.de>
30804 PR tree-optimization/56689
30805 * tree-vrp.c (execute_vrp): Mark loops for fixup if we removed
30808 2013-03-25 Richard Biener <rguenther@suse.de>
30810 * tree-ssa-loop-im.c (struct mem_ref): Use bitmap_head instead
30812 (memory_references): Likewise.
30813 (outermost_indep_loop, mem_ref_alloc, mark_ref_stored,
30814 gather_mem_refs_stmt, record_dep_loop, ref_indep_loop_p_1,
30815 ref_indep_loop_p_2, find_refs_for_sm): Adjust.
30816 (gather_mem_refs_in_loops): Fold into ...
30817 (analyze_memory_references): ... this. Move initialization
30818 to tree_ssa_lim_initialize.
30819 (fill_always_executed_in): Rename to ...
30820 (fill_always_executed_in_1): ... this.
30821 (fill_always_executed_in): Move contains_call computation to
30822 this new function from ...
30823 (tree_ssa_lim_initialize): ... here.
30824 (tree_ssa_lim): Call fill_always_executed_in.
30826 2013-03-25 Eric Botcazou <ebotcazou@adacore.com>
30828 * postreload.c (reload_combine): Fix code detecting returns.
30830 2013-03-25 Eric Botcazou <ebotcazou@adacore.com>
30832 * function.c (emit_use_return_register_into_block): On cc0 targets,
30833 do not emit the sequence between cc0 setter and user.
30835 2013-03-25 Kai Tietz <ktietz@redhat.com>
30837 * config/i386/predicates.md (local_symbolic_operand): Interpret
30838 dll-imported symbols as none-local.
30840 2013-03-25 Richard Biener <rguenther@suse.de>
30842 * tree-ssa-loop-im.c (struct depend): Remove.
30843 (struct lim_aux_data): Make depends a vec of gimples.
30844 (free_lim_aux_data): Adjust.
30845 (add_dependency): Likewise.
30846 (set_level): Likewise.
30848 2013-03-25 Richard Biener <rguenther@suse.de>
30850 PR middle-end/56434
30851 * calls.c (expand_call): Use MALLOC_ABI_ALIGNMENT to annotate
30852 the pointer returned by calls with ECF_MALLOC set.
30854 2013-03-24 Uros Bizjak <ubizjak@gmail.com>
30856 * config/i386/mmx.md (mov<mode>): Add ?!Ym,r and r,?!Ym alternatives.
30858 2013-03-24 Uros Bizjak <ubizjak@gmail.com>
30860 * config/i386/mmx.md (mov<mode>): Merge with movv2sf expander
30861 using MMXMODE mode iterator.
30862 (*move<mode>_internal): Merge with *movv2sf_internal and
30863 *movv2sf_internal_rex64 using MMXMODE mode iterator.
30865 2013-03-23 Steven Bosscher <steven@gcc.gnu.org>
30867 * gcse.c (oprs_unchanged_p): Respect flag_gcse_lm.
30868 (record_last_mem_set_info): Likewise.
30870 * df-core.c (rest_of_handle_df_initialize): Use XCNEWVEC instead
30871 of XNEWVEC followed by memset.
30872 (df_worklist_dataflow): Use XNEWVEC instead of xmalloc with a cast.
30874 2013-03-23 Steven Bosscher <steven@gcc.gnu.org>
30876 * config/avr/avr.c, config/bfin/bfin.c, config/c6x/c6x.c,
30877 config/epiphany/epiphany.c, config/frv/frv.c, config/ia64/ia64.c,
30878 config/iq2000/iq2000.c, config/mcore/mcore.c, config/mep/mep.c,
30879 config/mmix/mmix.c, config/pa/pa.c, config/rs6000/rs6000.c,
30880 config/s390/s390.c, config/sparc/sparc.c, config/spu/spu.c,
30881 config/stormy16/stormy16.c, config/v850/v850.c, config/xtensa/xtensa.c,
30882 dwarf2out.c, hw-doloop.c, resource.c, rtl.h : Where applicable, use
30883 the predicates NOTE_P, NONJUMP_INSN_P, JUMP_P, CALL_P, LABEL_P, and
30884 BARRIER_P instead of GET_CODE.
30886 2013-03-23 Eric Botcazou <ebotcazou@adacore.com>
30888 * config/sparc/sparc.c (sparc_emit_probe_stack_range): Fix small
30889 inaccuracy in the probing code.
30891 * config/sparc/sparc.md (ctrapsi4): Add predicate for operand #3.
30892 (ctrapdi4): Likewise.
30894 2013-03-23 Eric Botcazou <ebotcazou@adacore.com>
30896 * calls.c (expand_call): Add missing guard to code handling return
30897 of non-BLKmode structures in MSB.
30898 * function.c (expand_function_end): Likewise.
30900 2013-03-23 Eric Botcazou <ebotcazou@adacore.com>
30902 * combine.c (try_combine): Adjust comment. Do not add the set of
30903 insn #0 if the destination indirectly is set or dies in insn #2.
30904 Tidy up code to distribute a new note.
30906 2013-03-22 Uros Bizjak <ubizjak@gmail.com>
30908 * config/i386/i386.md (*movdi_internal): Set prefix_rex attribute
30909 also for alternatives 16 and 17.
30911 2013-03-22 Uros Bizjak <ubizjak@gmail.com>
30913 * config/i386/sse.md (*mov<mode>_internal): Merge with
30914 *mov<mode>_internal_rex64. Use x64 and nox64 isa attributes.
30915 Emit insn template depending on type attribute. Use
30916 HAVE_AS_IX86_INTERUNIT_MOVQ to handle broken assemblers that require
30917 movd instead of movq mnemonic for interunit moves. Rewrite mode
30918 attribute calculation. Remove unit attribute calculation.
30919 Set prefix attribute to maybe_vex for sselog1 and ssemov types.
30920 Set prefix_data16 attribute for DImode ssemov types.
30921 Use Ym instead of y for SSE-MMX conversion alternatives.
30922 Reorder operand constraints.
30924 2013-03-22 Steven Bosscher <steven@gcc.gnu.org>
30926 * df.h (df_insn_delete): Adjust prototype.
30927 * emit-rtl.c (remove_insn): Pass a basic block to df_insn_delete
30928 and let it decide whether mark the basic block dirty.
30929 (set_insn_deleted): Only pass INSN_P insns to df_insn_delete.
30930 * df-scan.c (df_insn_info_delete): New helper function, split
30931 off from df_insn_delete.
30932 (df_scan_free_bb_info): Use it.
30933 (df_insn_rescan, df_insn_rescan_all, df_process_deferred_rescans):
30935 (df_insn_delete): Likewise. Take insn rtx as argument. Verify
30936 that the insn is actually an insn and it has a non-NULL basic block.
30937 Do not mark basic block dirty if only deleting a DEBUG_INSN.
30939 2013-03-22 Richard Biener <rguenther@suse.de>
30941 * tree-ssa-loop-im.c (struct mem_ref): Remove indep_ref and
30943 (mem_ref_alloc): Do not allocate them.
30944 (refs_independent_p): Do not query or maintain a cache.
30946 2013-03-22 Richard Biener <rguenther@suse.de>
30948 * tree-ssa-loop-im.c (memory_references): Drop all_refs_in_loop.
30949 (gather_mem_refs_in_loops): Do not compute it.
30950 (analyze_memory_references): Do not allocate it.
30951 (tree_ssa_lim_finalize): Do not free it.
30952 (for_all_locs_in_loop): Do not query all_refs_in_loop.
30954 2013-03-22 Richard Biener <rguenther@suse.de>
30956 * is-a.h (as_a): Use gcc_checking_assert.
30958 2013-03-22 Ian Bolton <ian.bolton@arm.com>
30960 * config/aarch64/aarch64.c (aarch64_print_operand): New
30961 format specifier for printing a constant in hex.
30962 * config/aarch64/aarch64.md (insv_imm<mode>): Use the X
30963 format specifier for printing second operand.
30965 2013-03-22 Richard Biener <rguenther@suse.de>
30967 * tree-ssa-loop-im.c (memory_references): Add refs_stored_in_loop
30969 (gather_mem_refs_in_loops): Perform store accumulation here.
30970 (create_vop_ref_mapping_loop): Remove.
30971 (create_vop_ref_mapping): Likewise.
30972 (analyze_memory_references): Initialize refs_stored_in_loop.
30973 (LOOP_DEP_BIT): New define to map to bits in (in)dep_loop bitmaps.
30974 (record_indep_loop): Remove.
30975 (record_dep_loop): New function.
30976 (ref_indep_loop_p_1): Adjust to only walk over references
30977 in the loop, not its subloops.
30978 (ref_indep_loop_p): Rename to ...
30979 (ref_indep_loop_p_2): ... this and recurse over the loop tree,
30980 maintaining a more fine-grained cache.
30981 (ref_indep_loop_p): Wrap ref_indep_loop_p_2.
30982 (tree_ssa_lim_finalize): Free refs_stored_in_loop.
30984 2013-03-22 Richard Biener <rguenther@suse.de>
30986 * tree-ssa-loop-im.c (struct mem_ref_locs): Remove.
30987 (struct mem_ref): Make accesses_in_loop a vec of a vec of
30988 aggregate mem_ref_loc.
30989 (free_mem_ref_locs): Inline into ...
30990 (memref_free): ... this and adjust.
30991 (mem_ref_alloc): Adjust.
30992 (mem_ref_locs_alloc): Remove.
30993 (record_mem_ref_loc): Adjust.
30994 (get_all_locs_in_loop): Rewrite into ...
30995 (for_all_locs_in_loop): ... this iterator.
30996 (rewrite_mem_ref_loc): New functor.
30997 (rewrite_mem_refs): Use for_all_locs_in_loop.
30998 (sm_set_flag_if_changed): New functor.
30999 (execute_sm_if_changed_flag_set): Use for_all_locs_in_loop.
31000 (ref_always_accessed): New functor.
31001 (ref_always_accessed_p): Use for_all_locs_in_loop.
31003 2013-03-21 Marc Glisse <marc.glisse@inria.fr>
31005 * tree-pass.h (PROP_gimple_lvec): New.
31006 * passes.c (dump_properties): Handle PROP_gimple_lvec.
31007 (init_optimization_passes): Move pass_lower_vector.
31008 * tree-vect-generic.c (gate_expand_vector_operations_ssa): Test
31010 (pass_lower_vector): Provide PROP_gimple_lvec.
31011 (pass_lower_vector_ssa): Likewise.
31012 * cfgexpand.c (pass_expand): Require PROP_gimple_lvec.
31014 2013-03-21 Mark Wielaard <mjw@redhat.com>
31016 * dwarf2out.c (size_of_aranges): Skip DECL_IGNORED_P functions.
31018 2013-03-21 Uros Bizjak <ubizjak@gmail.com>
31020 * config/i386/i386.md (*movdi_internal): Disparage slightly
31021 all MMX moves to/from memory. Use Yi instead of x for SSE-MMX
31022 conversion alternatives.
31024 2013-03-21 Jakub Jelinek <jakub@redhat.com>
31026 PR middle-end/48087
31027 * diagnostic.def (DK_WERROR): New kind.
31028 * diagnostic.h (werrorcount): Define.
31029 * diagnostic.c (diagnostic_report_diagnostic): For DK_WARNING
31030 promoted to DK_ERROR, increment DK_WERROR counter instead of
31032 * toplev.c (toplev_main): Call print_ignored_options even if
31033 just werrorcount is non-zero. Exit with FATAL_EXIT_CODE
31034 even if just werrorcount is non-zero.
31037 * dwarf2out.c (tree_add_const_value_attribute): Call ggc_free (array)
31039 (resolve_one_addr): Fail if referenced STRING_CST hasn't been written.
31040 (string_cst_pool_decl): New function.
31041 (optimize_one_addr_into_implicit_ptr): New function.
31042 (resolve_addr_in_expr): Optimize DWARF location expression
31043 DW_OP_addr DW_OP_stack_value where DW_OP_addr refers to some variable
31044 which doesn't live in memory, but has DW_AT_location or
31045 DW_AT_const_value, or refers to a string literal, into
31046 DW_OP_GNU_implicit_pointer.
31047 (optimize_location_into_implicit_ptr): New function.
31048 (resolve_addr): If removing DW_AT_location of a variable because
31049 it was DW_OP_addr of address of the variable, but the variable doesn't
31050 live in memory, try to emit const value attribute for the initializer.
31052 2013-03-21 Marc Glisse <marc.glisse@inria.fr>
31054 * tree.h (VECTOR_TYPE_P): New macro.
31055 (VECTOR_INTEGER_TYPE_P, VECTOR_FLOAT_TYPE_P, FLOAT_TYPE_P,
31056 TYPE_MODE): Use it.
31057 * fold-const.c (fold_cond_expr_with_comparison): Use build_zero_cst.
31058 VEC_COND_EXPR cannot be lvalues.
31059 (fold_ternary_loc) <VEC_COND_EXPR>: Merge with the COND_EXPR case.
31061 2013-03-21 Marc Glisse <marc.glisse@inria.fr>
31063 * simplify-rtx.c (simplify_binary_operation_1) <VEC_CONCAT>:
31064 Restrict the transformation to equal modes.
31066 2013-03-21 Richard Biener <rguenther@suse.de>
31068 PR tree-optimization/39326
31069 * tree-ssa-loop-im.c (UNANALYZABLE_MEM_ID): New define.
31070 (MEM_ANALYZABLE): Adjust.
31071 (record_mem_ref_loc): Move bitmap ops ...
31072 (gather_mem_refs_stmt): ... here. Use the shared mem-ref for
31073 unanalyzable refs, do not record locations for it.
31074 (analyze_memory_references): Allocate ref zero as shared
31076 (refs_independent_p): Do not test for unanalyzed mems here.
31077 (ref_indep_loop_p_1): Special-case disambiguation against
31078 the unanalyzed ref.
31079 (ref_indep_loop_p): Assert we are not queried for the unanalyzed mem.
31081 2013-03-21 Christophe Lyon <christophe.lyon@linaro.org>
31083 * config/arm/arm-protos.h (tune_params): Add
31084 prefer_neon_for_64bits field.
31085 * config/arm/arm.c (prefer_neon_for_64bits): New variable.
31086 (arm_slowmul_tune): Default prefer_neon_for_64bits to false.
31087 (arm_fastmul_tune, arm_strongarm_tune, arm_xscale_tune): Ditto.
31088 (arm_9e_tune, arm_v6t2_tune, arm_cortex_tune): Ditto.
31089 (arm_cortex_a15_tune, arm_cortex_a5_tune): Ditto.
31090 (arm_cortex_a9_tune, arm_v6m_tune, arm_fa726te_tune): Ditto.
31091 (arm_option_override): Handle -mneon-for-64bits new option.
31092 * config/arm/arm.h (TARGET_PREFER_NEON_64BITS): New macro.
31093 (prefer_neon_for_64bits): Declare new variable.
31094 * config/arm/arm.md (arch): Rename neon_onlya8 and neon_nota8 to
31095 avoid_neon_for_64bits and neon_for_64bits. Remove onlya8 and nota8.
31096 (arch_enabled): Handle new arch types. Remove support for onlya8
31098 (one_cmpldi2): Use new arch names.
31099 (zero_extend<mode>di2, extend<mode>di2): Ditto.
31100 * config/arm/arm.opt (mneon-for-64bits): Add option.
31101 * config/arm/neon.md (adddi3_neon, subdi3_neon, iordi3_neon)
31102 (anddi3_neon, xordi3_neon, ashldi3_neon, <shift>di3_neon): Use
31103 neon_for_64bits instead of nota8 and avoid_neon_for_64bits instead
31105 * doc/invoke.texi (-mneon-for-64bits): Document.
31107 2013-03-21 Richard Biener <rguenther@suse.de>
31109 PR tree-optimization/39326
31110 * tree-ssa-loop-im.c (bb_loop_postorder): New global static.
31111 (sort_bbs_in_loop_postorder_cmp): New function.
31112 (gather_mem_refs_in_loops): Assign mem-ref IDs in loop postorder.
31114 2013-03-21 Richard Biener <rguenther@suse.de>
31116 * tree-vect-data-refs.c (vect_update_interleaving_chain): Remove.
31117 (vect_insert_into_interleaving_chain): Likewise.
31118 (vect_drs_dependent_in_basic_block): Inline ...
31119 (vect_slp_analyze_data_ref_dependence): ... here. New function,
31121 (vect_analyze_data_ref_dependence): ... here. Simplify.
31122 (vect_check_interleaving): Simplify.
31123 (vect_analyze_data_ref_dependences): Likewise. Split out ...
31124 (vect_slp_analyze_data_ref_dependences): ... this new function.
31125 (dr_group_sort_cmp): New function.
31126 (vect_analyze_data_ref_accesses): Compute data-reference groups
31127 here instead of in vect_analyze_data_ref_dependence. Use
31128 a more efficient algorithm.
31129 * tree-vect-slp.c (vect_slp_analyze_bb_1): Use
31130 vect_slp_analyze_data_ref_dependences. Call
31131 vect_analyze_data_ref_accesses earlier.
31132 * tree-vect-loop.c (vect_analyze_loop_2): Likewise.
31133 * tree-vectorizer.h (vect_analyze_data_ref_dependences): Adjust.
31134 (vect_slp_analyze_data_ref_dependences): New prototype.
31136 2013-03-21 Richard Biener <rguenther@suse.de>
31138 * tree-ssa-loop-im.c (can_sm_ref_p): Do not test whether
31139 ref is stored in the loop.
31140 (find_refs_for_sm): Walk only over all stores.
31141 (store_motion_loop): Allocate from lim_bitmap_obstack.
31142 (store_motion): Likewise.
31144 2013-03-21 Richard Biener <rguenther@suse.de>
31146 * tree-vect-loop-manip.c (slpeel_tree_peel_loop_to_edge):
31147 Update virtual SSA form.
31149 2013-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
31151 * configure.ac (gcc_cv_ld_eh_frame_ciev3): New test.
31152 * configure: Regenerate.
31153 * config.in: Regenerate.
31154 * config/sol2.c (solaris_override_options): Only enforce DWARF 2
31155 if !HAVE_LD_EH_FRAME_CIEV3.
31157 2013-03-21 Richard Biener <rguenther@suse.de>
31159 * tree-cfg.c (verify_expr_no_block): New function.
31160 (verify_expr_location_1): Verify that neither DECL_DEBUG_EXPR
31161 nor DECL_VALUE_EXPR have locations with associated blocks.
31162 * tree-ssa-live.c (clear_unused_block_pointer_1): Remove.
31163 (clear_unused_block_pointer): Remove code dealing with
31164 blocks in DECL_DEBUG_EXPR locations.
31166 2013-03-21 Richard Biener <rguenther@suse.de>
31168 * tree.h (DECL_DEBUG_EXPR_IS_FROM): Rename to ...
31169 (DECL_HAS_DEBUG_EXPR_P): ... this. Guard properly.
31170 * tree.c (copy_node_stat): Do not copy DECL_HAS_DEBUG_EXPR_P.
31171 * dwarf2out.c (add_var_loc_to_decl): Use DECL_HAS_DEBUG_EXPR_P
31172 instead of DECL_DEBUG_EXPR_IS_FROM.
31173 * gimplify.c (gimplify_modify_expr): Likewise.
31174 * tree-cfg.c (verify_expr_location_1): Likewise.
31175 * tree-complex.c (create_one_component_var): Likewise.
31176 * tree-sra.c (create_access_replacement): Likewise.
31177 * tree-ssa-live.c (clear_unused_block_pointer_1): Likewise.
31178 (clear_unused_block_pointer): Likewise.
31179 * tree-streamer-in.c (unpack_ts_decl_common_value_fields): Likewise.
31180 * tree-streamer-out.c (pack_ts_decl_common_value_fields): Likewise.
31181 * var-tracking.c (var_debug_decl): Likewise.
31182 (track_expr_p): Likewise.
31183 * tree-inline.c (add_local_variables): Likewise. Set
31184 DECL_HAS_DEBUG_EXPR_P after copying it.
31185 * tree-diagnostic.c (default_tree_printer): Use DECL_HAS_DEBUG_EXPR_P
31186 instead of DECL_DEBUG_EXPR_IS_FROM. Guard properly.
31188 2013-03-21 Uros Bizjak <ubizjak@gmail.com>
31191 * configure.ac (HAVE_AS_IX86_INTERUNIT_MOVQ): New test.
31192 * configure: Regenerate.
31193 * config.in: Regenerate.
31194 * config/i386/i386.md (*movdf_internal): Use
31195 HAVE_AS_IX86_INTERUNIT_MOVQ to handle broken assemblers that require
31196 movd instead of movq mnemonic for interunit moves.
31197 (*movdi_internal): Ditto.
31199 2013-03-21 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
31201 * config/aarch64/aarch64-simd.md (simd_fabd): New Attribute.
31202 (abd<mode>_3): New pattern.
31203 (aba<mode>_3): New pattern.
31204 (fabd<mode>_3): New pattern.
31206 2013-03-21 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
31208 * config/aarch64/aarch64-elf.h (REGISTER_PREFIX): Remove.
31209 * config/aarch64/aarch64.c (aarch64_print_operand): Remove all
31210 occurrence of REGISTER_PREFIX as its empty string.
31212 2013-03-20 Jeff Law <law@redhat.com>
31214 * tree-ssa-dom.c (record_equivalences_from_incoming_edge): Record
31215 addititional equivalences for equality comparisons between an SSA_NAME
31216 and a constant where the SSA_NAME was set from a widening conversion.
31218 2013-03-20 Walter Lee <walt@tilera.com>
31220 * config/tilegx/sync.md (atomic_test_and_set): New pattern.
31222 2013-03-20 Uros Bizjak <ubizjak@gmail.com>
31224 * config/i386/i386.md (*movoi_internal_avx): Emit insn template
31225 depending on type attribute.
31226 (*movti_internal): Ditto.
31227 (*movtf_internal): Ditto.
31228 (*movxf_internal): Ditto.
31229 (*movdf_internal): Ditto.
31230 (*movsf_internal): Ditto.
31232 2013-03-20 Uros Bizjak <ubizjak@gmail.com>
31234 * config/i386/i386.md (*movti_internal): Set prefix attribute to
31235 maybe_vex for sselog1 and ssemov types.
31236 (*movdi_internal): Reorder operand constraints.
31237 (*movsi_internal): Ditto. Set prefix attribute to
31238 maybe_vex for sselog1 and ssemov types.
31239 (*movtf_internal): Set prefix attribute to maybe_vex
31240 for sselog1 and ssemov types.
31241 (*movdf_internal): Ditto. Set prefix_data16 attribute for
31242 DImode ssemov types. Reorder operand constraints.
31243 (*movsf_internal): Set type of alternatives 3,4 to imov. Set prefix
31244 attribute to maybe_vex for sselog1 and ssemov types. Set prefix_data16
31245 attribute for SImode ssemov types. Reorder operand constraints.
31247 2013-03-20 Martin Jambor <mjambor@suse.cz>
31249 * params.def (PARAM_IPA_CP_ARRAY_INDEX_HINT_BONUS): New parameter.
31250 * ipa-cp.c (hint_time_bonus): Add abonus for known array indices.
31252 2013-03-20 Pat Haugen <pthaugen@us.ibm.com>
31254 * config/rs6000/predicates.md (indexed_address, update_address_mem
31255 update_indexed_address_mem): New predicates.
31256 * config/rs6000/vsx.md (vsx_extract_<mode>_zero): Set correct "type"
31257 attribute for load/store instructions.
31258 * config/rs6000/dfp.md (movsd_store): Likewise.
31259 (movsd_load): Likewise.
31260 * config/rs6000/rs6000.md (zero_extend<mode>di2_internal1): Likewise.
31261 (unnamed HI->DI extend define_insn): Likewise.
31262 (unnamed SI->DI extend define_insn): Likewise.
31263 (unnamed QI->SI extend define_insn): Likewise.
31264 (unnamed QI->HI extend define_insn): Likewise.
31265 (unnamed HI->SI extend define_insn): Likewise.
31266 (unnamed HI->SI extend define_insn): Likewise.
31267 (extendsfdf2_fpr): Likewise.
31268 (movsi_internal1): Likewise.
31269 (movsi_internal1_single): Likewise.
31270 (movhi_internal): Likewise.
31271 (movqi_internal): Likewise.
31272 (movcc_internal1): Correct mnemonic for stw insn. Set correct "type"
31273 attribute for load/store instructions.
31274 (mov<mode>_hardfloat): Set correct "type" attribute for load/store
31276 (mov<mode>_softfloat): Likewise.
31277 (mov<mode>_hardfloat32): Likewise.
31278 (mov<mode>_hardfloat64): Likewise.
31279 (mov<mode>_softfloat64): Likewise.
31280 (movdi_internal32): Likewise.
31281 (movdi_internal64): Likewise.
31282 (probe_stack_<mode>): Likewise.
31284 2013-03-20 Michael Meissner <meissner@linux.vnet.ibm.com>
31286 * config/rs6000/vector.md (VEC_R): Add 32-bit integer, binary
31287 floating point, and decimal floating point to reload iterator.
31289 * config/rs6000/constraints.md (wl constraint): New constraints to
31290 return FLOAT_REGS if certain options are used to reduce the number
31291 of separate patterns that exist in the file.
31292 (wx constraint): Likewise.
31293 (wz constraint): Likewise.
31295 * config/rs6000/rs6000.c (rs6000_debug_reg_global): If
31296 -mdebug=reg, print wg, wl, wx, and wz constraints.
31297 (rs6000_init_hard_regno_mode_ok): Initialize new constraints.
31298 Initialize the reload functions for 64-bit binary/decimal floating
31300 (reg_offset_addressing_ok_p): If we are on a power7 or later, use
31301 LFIWZX and STFIWX to load/store 32-bit decimal types, and don't
31302 create the buffer on the stack to overcome not having a 32-bit
31304 (rs6000_emit_move): Likewise.
31305 (rs6000_secondary_memory_needed_rtx): Likewise.
31306 (rs6000_alloc_sdmode_stack_slot): Likewise.
31307 (rs6000_preferred_reload_class): On VSX, we can create SFmode 0.0f
31308 via xxlxor, just like DFmode 0.0.
31310 * config/rs6000/rs6000.h (TARGET_NO_SDMODE_STACK): New macro,
31311 define as 1 if we are running on a power7 or newer.
31312 (enum r6000_reg_class_enum): Add new constraints.
31314 * config/rs6000/dfp.md (movsd): Delete, combine with binary
31315 floating point moves in rs6000.md. Combine power6x (mfpgpr) moves
31316 with other moves by using conditional constraits (wg). Use LFIWZX
31317 and STFIWX for loading SDmode on power7. Use xxlxor to create 0.0f.
31318 (movsd splitter): Likewise.
31319 (movsd_hardfloat): Likewise.
31320 (movsd_softfloat): Likewise.
31322 * config/rs6000/rs6000.md (FMOVE32): New iterators to combine
31323 binary and decimal floating point moves.
31324 (fmove_ok): New attributes to combine binary and decimal floating
31325 point moves, and to combine power6x (mfpgpr) moves along normal
31327 (real_value_to_target): Likewise.
31328 (f32_lr): Likewise.
31329 (f32_lm): Likewise.
31330 (f32_li): Likewise.
31331 (f32_sr): Likewise.
31332 (f32_sm): Likewise.
31333 (f32_si): Likewise.
31334 (movsf): Combine binary and decimal floating point moves. Combine
31335 power6x (mfpgpr) moves with other moves by using conditional
31336 constraits (wg). Use LFIWZX and STFIWX for loading SDmode on power7.
31337 (mov<mode> for SFmode/SDmode); Likewise.
31338 (SFmode/SDmode splitters): Likewise.
31339 (movsf_hardfloat): Likewise.
31340 (mov<mode>_hardfloat for SFmode/SDmode): Likewise.
31341 (movsf_softfloat): Likewise.
31342 (mov<mode>_softfloat for SFmode/SDmode): Likewise.
31344 * doc/md.texi (PowerPC and IBM RS6000 constraints): Document wl,
31345 wx and wz constraints.
31347 * config/rs6000/constraints.md (wg constraint): New constraint to
31348 return FLOAT_REGS if -mmfpgpr (power6x) was used.
31350 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Add wg
31353 * config/rs6000/rs6000.c (rs6000_debug_reg_global): If
31354 -mdebug=reg, print wg, wl, wx, and wz constraints.
31355 (rs6000_init_hard_regno_mode_ok): Initialize new constraints.
31356 Initialize the reload functions for 64-bit binary/decimal floating
31358 (reg_offset_addressing_ok_p): If we are on a power7 or later, use
31359 LFIWZX and STFIWX to load/store 32-bit decimal types, and don't
31360 create the buffer on the stack to overcome not having a 32-bit
31362 (rs6000_emit_move): Likewise.
31363 (rs6000_secondary_memory_needed_rtx): Likewise.
31364 (rs6000_alloc_sdmode_stack_slot): Likewise.
31365 (rs6000_preferred_reload_class): On VSX, we can create SFmode 0.0f
31366 via xxlxor, just like DFmode 0.0.
31368 * config/rs6000/dfp.md (movdd): Delete, combine with binary
31369 floating point moves in rs6000.md. Combine power6x (mfpgpr) moves
31370 with other moves by using conditional constraits (wg). Use LFIWZX
31371 and STFIWX for loading SDmode on power7.
31372 (movdd splitters): Likewise.
31373 (movdd_hardfloat32): Likewise.
31374 (movdd_softfloat32): Likewise.
31375 (movdd_hardfloat64_mfpgpr): Likewise.
31376 (movdd_hardfloat64): Likewise.
31377 (movdd_softfloat64): Likewise.
31379 * config/rs6000/rs6000.md (FMOVE64): New iterators to combine
31380 64-bit binary and decimal floating point moves.
31381 (FMOVE64X): Likewise.
31382 (movdf): Combine 64-bit binary and decimal floating point moves.
31383 Combine power6x (mfpgpr) moves with other moves by using
31384 conditional constraits (wg).
31385 (mov<mode> for DFmode/DDmode): Likewise.
31386 (DFmode/DDmode splitters): Likewise.
31387 (movdf_hardfloat32): Likewise.
31388 (mov<mode>_hardfloat32 for DFmode/DDmode): Likewise.
31389 (movdf_softfloat32): Likewise.
31390 (movdf_hardfloat64_mfpgpr): Likewise.
31391 (movdf_hardfloat64): Likewise.
31392 (mov<mode>_hardfloat64 for DFmode/DDmode): Likewise.
31393 (movdf_softfloat64): Likewise.
31394 (mov<mode>_softfloat64 for DFmode/DDmode): Likewise.
31395 (reload_<mode>_load): Move to later in the file so they aren't in
31396 the middle of the floating point move insns.
31397 (reload_<mode>_store): Likewise.
31399 * doc/md.texi (PowerPC and IBM RS6000 constraints): Document wg
31402 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Print out wg
31403 constraint if -mdebug=reg.
31404 (rs6000_initi_hard_regno_mode_ok): Enable wg constraint if -mfpgpr.
31405 Enable using dd reload support if needed.
31407 * config/rs6000/dfp.md (movtd): Delete, combine with 128-bit
31408 binary and decimal floating point moves in rs6000.md.
31409 (movtd_internal): Likewise.
31411 * config/rs6000/rs6000.md (FMOVE128): Combine 128-bit binary and
31412 decimal floating point moves.
31414 (movtf_internal): Likewise.
31415 (mov<mode>_internal, TDmode/TFmode): Likewise.
31416 (movtf_softfloat): Likewise.
31417 (mov<mode>_softfloat, TDmode/TFmode): Likewise.
31419 * config/rs6000/rs6000.md (movdi_mfpgpr): Delete, combine with
31420 movdi_internal64, using wg constraint for move direct operations.
31421 (movdi_internal64): Likewise.
31423 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Print
31424 MODES_TIEABLE_P for selected modes. Print the numerical value of
31425 the various virtual registers. Use GPR/FPR first/last values,
31426 instead of hard coding the register numbers. Print which modes
31427 have reload functions registered.
31428 (rs6000_option_override_internal): If -mdebug=reg, trace the options
31429 settings before/after setting cpu, target and subtarget settings.
31430 (rs6000_secondary_reload_trace): Improve the RTL dump for -mdebug=addr
31431 and for secondary reload failures in rs6000_secondary_reload_inner.
31432 (rs6000_secondary_reload_fail): Likewise.
31433 (rs6000_secondary_reload_inner): Likewise.
31435 * config/rs6000/rs6000.md (FIRST_GPR_REGNO): Add convenience
31436 macros for first/last GPR and FPR registers.
31437 (LAST_GPR_REGNO): Likewise.
31438 (FIRST_FPR_REGNO): Likewise.
31439 (LAST_FPR_REGNO): Likewise.
31441 * config/rs6000/vector.md (mul<mode>3): Use the combined macro
31442 VECTOR_UNIT_ALTIVEC_OR_VSX_P instead of separate calls to
31443 VECTOR_UNIT_ALTIVEC_P and VECTOR_UNIT_VSX_P.
31444 (vcond<mode><mode>): Likewise.
31445 (vcondu<mode><mode>): Likewise.
31446 (vector_gtu<mode>): Likewise.
31447 (vector_gte<mode>): Likewise.
31448 (xor<mode>3): Don't allow logical operations on TImode in 32-bit
31449 to prevent the compiler from converting DImode operations to TImode.
31450 (ior<mode>3): Likewise.
31451 (and<mode>3): Likewise.
31452 (one_cmpl<mode>2): Likewise.
31453 (nor<mode>3): Likewise.
31454 (andc<mode>3): Likewise.
31456 * config/rs6000/constraints.md (wt constraint): New constraint
31457 that returns VSX_REGS if TImode is allowed in VSX registers.
31459 * config/rs6000/predicates.md (easy_fp_constant): 0.0f is an easy
31460 constant under VSX.
31462 * config/rs6000/rs6000-modes.def (PTImode): Define, PTImode is
31463 similar to TImode, but it is restricted to being in the GPRs.
31465 * config/rs6000/rs6000.opt (-mvsx-timode): New switch to allow
31466 TImode to occupy a single VSX register.
31468 * config/rs6000/rs6000-cpus.def (ISA_2_6_MASKS_SERVER): Default to
31469 -mvsx-timode for power7/power8.
31470 (power7 cpu): Likewise.
31471 (power8 cpu): Likewise.
31473 * config/rs6000/rs6000.c (rs6000_hard_regno_nregs_internal): Make
31474 sure that TFmode/TDmode take up two registers if they are ever
31475 allowed in the upper VSX registers.
31476 (rs6000_hard_regno_mode_ok): If -mvsx-timode, allow TImode in VSX
31478 (rs6000_init_hard_regno_mode_ok): Likewise.
31479 (rs6000_debug_reg_global): Add debugging for PTImode and wt
31480 constraint. Print if LRA is turned on.
31481 (rs6000_option_override_internal): Give an error if -mvsx-timode
31482 and VSX is not enabled.
31483 (invalid_e500_subreg): Handle PTImode, restricting it to GPRs. If
31484 -mvsx-timode, restrict TImode to reg+reg addressing, and PTImode
31485 to reg+offset addressing. Use PTImode when checking offset
31486 addresses for validity.
31487 (reg_offset_addressing_ok_p): Likewise.
31488 (rs6000_legitimate_offset_address_p): Likewise.
31489 (rs6000_legitimize_address): Likewise.
31490 (rs6000_legitimize_reload_address): Likewise.
31491 (rs6000_legitimate_address_p): Likewise.
31492 (rs6000_eliminate_indexed_memrefs): Likewise.
31493 (rs6000_emit_move): Likewise.
31494 (rs6000_secondary_reload): Likewise.
31495 (rs6000_secondary_reload_inner): Handle PTImode. Allow 64-bit
31496 reloads to fpr registers to continue to use reg+offset addressing,
31497 but 64-bit reloads to altivec registers need reg+reg addressing.
31498 Drop test for PRE_MODIFY, since VSX loads/stores no longer support
31499 it. Treat LO_SUM like a PLUS operation.
31500 (rs6000_secondary_reload_class): If type is 64-bit, prefer to use
31501 FLOAT_REGS instead of VSX_RGS to allow use of reg+offset addressing.
31502 (rs6000_cannot_change_mode_class): Do not allow TImode in VSX
31503 registers to share a register with a smaller sized type, since VSX
31504 puts scalars in the upper 64-bits.
31505 (print_operand): Add support for PTImode.
31506 (rs6000_register_move_cost): Use VECTOR_MEM_VSX_P instead of
31507 VECTOR_UNIT_VSX_P to catch types that can be loaded in VSX
31508 registers, but don't have arithmetic support.
31509 (rs6000_memory_move_cost): Add test for VSX.
31510 (rs6000_opt_masks): Add -mvsx-timode.
31512 * config/rs6000/vsx.md (VSm): Change to use 64-bit aligned moves
31515 (VSr): Use wt constraint for TImode.
31516 (VSv): Drop TImode support.
31517 (vsx_movti): Delete, replace with versions for 32-bit and 64-bit.
31518 (vsx_movti_64bit): Likewise.
31519 (vsx_movti_32bit): Likewise.
31520 (vec_store_<mode>): Use VSX iterator instead of vector iterator.
31521 (vsx_and<mode>3): Delete use of '?' constraint on inputs, just put
31522 one '?' on the appropriate output constraint. Do not allow TImode
31523 logical operations on 32-bit systems.
31524 (vsx_ior<mode>3): Likewise.
31525 (vsx_xor<mode>3): Likewise.
31526 (vsx_one_cmpl<mode>2): Likewise.
31527 (vsx_nor<mode>3): Likewise.
31528 (vsx_andc<mode>3): Likewise.
31529 (vsx_concat_<mode>): Likewise.
31530 (vsx_xxpermdi_<mode>): Fix thinko for non V2DF/V2DI modes.
31532 * config/rs6000/rs6000.h (MASK_VSX_TIMODE): Map from
31533 OPTION_MASK_VSX_TIMODE.
31534 (enum rs6000_reg_class_enum): Add RS6000_CONSTRAINT_wt.
31535 (STACK_SAVEAREA_MODE): Use PTImode instead of TImode.
31537 * config/rs6000/rs6000.md (INT mode attribute): Add PTImode.
31538 (TI2 iterator): New iterator for TImode, PTImode.
31539 (wd mode attribute): Add values for vector types.
31540 (movti_string): Replace TI move operations with operations for TImode
31541 and PTImode. Add support for TImode being allowed in VSX registers.
31542 (mov<mode>_string, TImode/PTImode): Likewise.
31543 (movti_ppc64): Likewise.
31544 (mov<mode>_ppc64, TImode/PTImode): Likewise.
31545 (TI mode splitters): Likewise.
31547 * doc/md.texi (PowerPC and IBM RS6000 constraints): Document wt
31550 2013-03-20 Marc Glisse <marc.glisse@inria.fr>
31552 PR tree-optimization/56355
31553 * fold-const.c (tree_binary_nonnegative_warnv_p) <MULT_EXPR>:
31554 Also handle integers with undefined overflow.
31556 2013-03-20 Catherine Moore <clm@codesourcery.com>
31557 Maciej W. Rozycki <macro@codesourcery.com>
31558 Tom de Vries <tom@codesourcery.com>
31559 Nathan Sidwell <nathan@codesourcery.com>
31560 Iain Sandoe <iain@codesourcery.com>
31561 Nathan Froyd <froydnj@codesourcery.com>
31562 Chao-ying Fu <fu@mips.com>
31564 * doc/extend.texi: (micromips, nomicromips, nocompression):
31565 Document new function attributes.
31566 * doc/invoke.texi (minterlink-compressed, mmicromips,
31567 m14k, m14ke, m14kec): Document new options.
31568 (minterlink-mips16): Update documentation.
31569 * doc/md.texi (ZC, ZD): Document new constraints.
31570 * configure.ac (gcc_cv_as_micromips): Check if linker
31571 supports the .set micromips directive.
31572 * configure: Regenerate.
31573 * config.in: Regenerate.
31574 * config/mips/mips-tables.opt: Regenerate.
31575 * config/mips/micromips.md: New file.
31576 * constraints.md (ZC, ZD): New constraints.
31577 * config/mips/predicates.md (movep_src_register): New predicate.
31578 (movep_src_operand): New predicate.
31579 (non_volatile_mem_operand): New predicate.
31580 * config/mips/mips.md (multimem): New type.
31581 (length): Differentiate between 17-bit and 18-bit branch offsets.
31582 (MOVEP1, MOVEP2): New mode iterator.
31583 (mov_<load>l): Use ZC constraint.
31584 (mov_<load>r): Likewise.
31585 (mov_<store>l): Likewise.
31586 (mov_<store>r): Likewise.
31587 (*branch_equality<mode>_inverted): Add microMIPS support.
31588 (*branch_equality<mode>): Likewise.
31589 (*jump_absolute): Likewise.
31590 (indirect_jump_<mode>): Likewise.
31591 (tablejump_<mode>): Likewise.
31592 (<optab>_internal): Likewise.
31593 (sibcall_internal): Likewise.
31594 (sibcall_value_internal): Likewise.
31595 (prefetch): Use constraint ZD.
31596 * config/mips/mips.opt (minterlink-compressed): New option.
31597 (minterlink-mips16): Now an alias for minterlink-compressed.
31598 (mmicromips): New option.
31599 * config/mips/sync.md (sync_compare_and_swap<mode>): Use ZR constraint.
31600 (compare_and_swap_12): Likewise.
31601 (sync_add<mode>): Likewise.
31602 (sync_<optab>_12): Likewise.
31603 (sync_old_<optab>_12): Likewise.
31604 (sync_new_<optab>_12): Likewise.
31605 (sync_nand_12): Likewise.
31606 (sync_old_nand_12): Likewise.
31607 (sync_new_nand_12): Likewise.
31608 (sync_sub<mode>): Likewise.
31609 (sync_old_add<mode>): Likewise.
31610 (sync_old_sub<mode>): Likewise.
31611 (sync_new_add<mode>): Likewise.
31612 (sync_new_sub<mode>): Likewise.
31613 (sync_<optab><mode>): Likewise.
31614 (sync_old_<optab><mode>): Likewise.
31615 (sync_new_<optab><mode>): Likewise.
31616 (sync_nand<mode>): Likewise.
31617 (sync_old_nand<mode>): Likewise.
31618 (sync_new_nand<mode>): Likewise.
31619 (sync_lock_test_and_set<mode>): Likewise.
31620 (test_and_set_12): Likewise.
31621 (atomic_compare_and_swap<mode>): Likewise.
31622 (atomic_exchange<mode>_llsc): Likewise.
31623 (atomic_fetch_add<mode>_llsc): Likewise.
31624 * config/mips/mips-cpus.def (m14kc, m14k): New processors.
31625 * config/mips/mips-protos.h (umips_output_save_restore): New prototype.
31626 (umips_save_restore_pattern_p): Likewise.
31627 (umips_load_store_pair_p): Likewise.
31628 (umips_output_load_store_pair): Likewise.
31629 (umips_movep_target_p): Likewise.
31630 (umips_12bit_offset_address_p): Likewise.
31631 * config/mips/mips.c (MIPS_MAX_FIRST_STEP): Update for microMIPS.
31632 (mips_base_mips16): Rename this...
31633 (mips_base_compression_flags): ...to this. Update all uses.
31634 (mips_attribute_table): Add micromips, nomicromips and nocompression.
31635 (mips_mips16_decl_p): Delete.
31636 (mips_nomips16_decl_p): Delete.
31637 (mips_get_compress_on_flags): New function.
31638 (mips_get_compress_off_flags): New function.
31639 (mips_get_compress_mode): New function.
31640 (mips_get_compress_on_name): New function.
31641 (mips_get_compress_off_name): New function.
31642 (mips_insert_attributes): Support multiple compression types.
31643 (mips_merge_decl_attributes): Likewise.
31644 (umips_12bit_offset_address_p): New function.
31645 (mips_start_function_definition): Emit .set micromips directive.
31646 (mips_call_may_need_jalx_p): New function.
31647 (mips_function_ok_for_sibcall): Add microMIPS support.
31648 (mips_print_operand_punctuation): Support short delay slots and
31650 (umips_swm_mask, umips_swm_encoding): New.
31651 (umips_build_save_restore): New function.
31652 (mips_for_each_saved_gpr_and_fpr): Add microMIPS support.
31653 (was_mips16_p): Remove.
31654 (old_compression_mode): New.
31655 (mips_set_compression_mode): New function.
31656 (mips_set_current_function): Add microMIPS support.
31657 (mips_option_override): Likewise.
31658 (umips_save_restore_pattern_p): New function.
31659 (umips_output_save_restore): New function.
31660 (umips_load_store_pair_p_1): New function.
31661 (umips_load_store_pair_p): New function.
31662 (umips_output_load_store_pair_1): New function.
31663 (umips_output_load_store_pair): New function.
31664 (umips_movep_target_p) New function.
31665 (mips_prepare_pch_save): Add microMIPS support.
31666 * config/mips/mips.h (TARGET_COMPRESSION): New.
31667 (TARGET_CPU_CPP_BUILTINS): Update macro
31668 to use new compression flags and to support microMIPS.
31669 (MIPS_ISA_LEVEL_SPEC): Add m14k processors.
31670 (MIPS_ARCH_FLOAT_SPEC): Likewise.
31671 (ISA_HAS_LWXS): Include TARGET_MICROMIPS.
31672 (ISA_HAS_LOAD_DELAY): Exclude TARGET_MICROMIPS.
31673 (ASM_SPEC): Support mmicromips and mno-micromips.
31674 (M16STORE_REG_P): New macro.
31675 (MIPS_CALL): Support TARGET_MICROMIPS.
31676 (MICROMIPS_J): New macro.
31677 (mips_base_mips16): Rename this...
31678 (mips_base_compression_flags): ...to this.
31679 (UMIPS_12BIT_OFFSET_P): New macro.
31680 * config/mips/t-sde: (MULTILIB_OPTIONS): Add microMIPS.
31681 (MULTILIB_DIRNAMES): Likewise.
31682 2013-03-20 Richard Biener <rguenther@suse.de>
31684 PR tree-optimization/56661
31685 * tree-ssa-sccvn.c (visit_use): Only value-number calls if
31686 the result does not have to be distinct.
31688 2013-03-20 Richard Biener <rguenther@suse.de>
31690 * tree-inline.c (copy_tree_body_r): Sync MEM_REF code with
31693 2013-03-20 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
31694 Steven Bosscher <steven@gcc.gnu.org>
31696 PR rtl-optimization/56605
31697 * loop-iv.c (implies_p): Handle equal RTXs and subregs.
31699 2013-03-20 Uros Bizjak <ubizjak@gmail.com>
31702 * config/i386/i386.md (*movdi_internal): Handle broken assemblers
31703 that require movd instead of movq.
31705 2013-03-20 Richard Biener <rguenther@suse.de>
31707 * tree-ssa-structalias.c (struct variable_info): Add pointer
31708 to the first field of an aggregate with sub-vars. Make
31709 this and the pointer to the next subfield its ID.
31710 (vi_next): New function.
31711 (nothing_id, anything_id, readonly_id, escaped_id, nonlocal_id,
31712 storedanything_id, integer_id): Increment by one.
31713 (new_var_info, get_call_vi, lookup_call_clobber_vi,
31714 get_call_clobber_vi): Adjust.
31715 (solution_set_expand): Simplify and speedup.
31716 (solution_set_add): Inline into ...
31717 (set_union_with_increment): ... this. Adjust accordingly.
31718 (do_sd_constraint): Likewise.
31719 (do_ds_constraint): Likewise.
31720 (do_complex_constraint): Simplify.
31721 (build_pred_graph): Adjust.
31722 (solve_graph): Likewise. Simplify and speedup.
31723 (get_constraint_for_ssa_var, get_constraint_for_ptr_offset,
31724 get_constraint_for_component_ref, get_constraint_for_1,
31725 first_vi_for_offset, first_or_preceding_vi_for_offset,
31726 create_function_info_for, create_variable_info_for_1,
31727 create_variable_info_for, intra_create_variable_infos): Adjust.
31728 (init_base_vars): Push NULL for ID zero.
31729 (compute_points_to_sets): Adjust.
31731 2013-03-20 Richard Biener <rguenther@suse.de>
31733 * cfgloop.c (verify_loop_structure): Streamline and avoid
31734 ICEing on corrupt loop tree.
31735 * graph.c (draw_cfg_nodes_for_loop): Avoid ICEing on corrupt
31738 2013-03-20 Richard Biener <rguenther@suse.de>
31740 * tree-vect-loop-manip.c (slpeel_can_duplicate_loop_p): Do not
31741 check whether an SSA update is needed.
31743 2013-03-20 Richard Sandiford <rdsandiford@googlemail.com>
31745 * config/mips/constraints.md (T): Rename to...
31749 * config/mips/mips.md (*movdi_64bit, *movdi_64bit_mips16)
31750 (*mov<mode>_internal, *mov<mode>_mips16): Update accordingly.
31752 2013-03-19 Ian Bolton <ian.bolton@arm.com>
31754 * config/aarch64/aarch64.md (*sub<mode>3_carryin): New pattern.
31755 (*subsi3_carryin_uxtw): Likewise.
31757 2013-03-19 Ian Bolton <ian.bolton@arm.com>
31759 * config/aarch64/aarch64.md (*ror<mode>3_insn): New pattern.
31760 (*rorsi3_insn_uxtw): Likewise.
31762 2013-03-19 Ian Bolton <ian.bolton@arm.com>
31764 * config/aarch64/aarch64.md (*extr<mode>5_insn): New pattern.
31765 (*extrsi5_insn_uxtw): Likewise.
31767 2013-03-19 Richard Biener <rguenther@suse.de>
31769 PR tree-optimization/56273
31770 * passes.c (init_optimization_passes): Move second VRP after DOM.
31772 2013-03-19 Uros Bizjak <ubizjak@gmail.com>
31774 * config/i386/i386.md (*movti_internal): Merge from
31775 *movti_internal_rex64 and *movti_internal_sse. Use x64 isa attribute.
31776 (*movdi_internal): Merge with *movdi_internal_rex64. Use x64 and
31777 nox64 isa attributes.
31779 2013-03-18 Richard Biener <rguenther@suse.de>
31781 * tree-ssa-structalias.c (find): Use gcc_checking_assert.
31783 (merge_node_constraints): Likewise.
31784 (build_succ_graph): Likewise.
31785 (valid_graph_edge): Inline into single caller.
31786 (unify_nodes): Likewise. Use bitmap_set_bit return value
31788 (scc_visit): Fix formatting and variable use.
31789 (do_sd_constraint): Use gcc_checking_assert.
31790 (do_ds_constraint): Likewise.
31791 (do_complex_constraint): Likewise.
31792 (condense_visit): Likewise. Cleanup.
31793 (dump_pred_graph): New function.
31794 (perform_var_substitution): Dump the pred-graph before
31795 variable substitution.
31796 (find_equivalent_node): Use gcc_checking_assert.
31797 (rewrite_constraints): Guard checking loop with ENABLE_CHECKING.
31799 2013-03-18 Richard Biener <rguenther@suse.de>
31801 * tree-vect-loop-manip.c (vect_create_cond_for_alias_checks):
31802 Remove cond_expr_stmt_list argument and do not gimplify the
31804 (vect_loop_versioning): Adjust.
31805 * tree-vect-data-refs.c (vect_create_addr_base_for_vector_ref):
31806 Cleanup to use less temporaries.
31807 (vect_create_data_ref_ptr): Cleanup.
31809 2013-03-18 Jakub Jelinek <jakub@redhat.com>
31811 PR tree-optimization/56635
31812 * fold-const.c (operand_equal_p): For MEM_REF and TARGET_MEM_REF,
31813 require types_compatible_p types.
31815 2013-03-18 Nick Clifton <nickc@redhat.com>
31817 * config/stormy16/stormy16.c (xstormy16_expand_prologue): Remove
31818 spurious backslash.
31820 * config/mn10300/mn10300.c (mn10300_get_live_callee_saved_regs):
31821 Add missing line to comment describing function.
31823 2013-03-18 Richard Biener <rguenther@suse.de>
31825 PR tree-optimization/56210
31826 * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
31827 Handle string / character search functions.
31828 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Likewise.
31830 2013-03-18 Richard Biener <rguenther@suse.de>
31832 PR middle-end/56483
31833 * cfgexpand.c (expand_gimple_cond): Inline gimple_cond_single_var_p
31834 and implement properly.
31835 * gimple.h (gimple_cond_single_var_p): Remove.
31837 2013-03-18 Richard Biener <rguenther@suse.de>
31839 * tree-data-ref.h (find_data_references_in_loop): Declare.
31840 * tree-data-ref.c (get_references_in_stmt): Use a stack
31841 vector pre-allocated in the callers.
31842 (find_data_references_in_stmt): Adjust.
31843 (graphite_find_data_references_in_stmt): Likewise.
31844 (create_rdg_vertices): Likewise.
31845 (find_data_references_in_loop): Export.
31846 * tree-vect-data-refs.c (vect_analyze_data_ref_dependences):
31847 Compute dependences here...
31848 (vect_analyze_data_refs): ...not here. When we encounter
31849 a non-vectorizable data reference in basic-block vectorization
31850 truncate the data reference vector. Do not bother to
31851 fixup data-dependence information for gather loads.
31852 * tree-vect-slp.c (vect_slp_analyze_bb_1): Check the number
31853 of data references, as reported.
31855 2013-03-18 Richard Biener <rguenther@suse.de>
31857 PR tree-optimization/3713
31858 * tree-ssa-sccvn.c (visit_copy): Simplify. Always propagate
31859 has_constants and expr.
31860 (stmt_has_constants): Properly valueize SSA names when deciding
31861 whether the stmt has constants.
31863 2013-03-18 Richard Biener <rguenther@suse.de>
31865 * tree-ssa-loop-manip.c (find_uses_to_rename): Do not scan the
31866 whole function when there is nothing to do.
31867 * tree-ssa-loop.c (pass_vectorize): Remove TODO_update_ssa.
31868 * tree-vectorizer.c (vectorize_loops): Update virtual and
31869 loop-closed SSA once.
31870 * tree-vect-loop.c (vect_transform_loop): Do not update SSA here.
31872 2013-03-18 Richard Biener <rguenther@suse.de>
31874 PR middle-end/56113
31875 * domwalk.c (bb_postorder): New global static.
31876 (cmp_bb_postorder): New function.
31877 (walk_dominator_tree): Replace scheme imposing an order for
31878 visiting dominator sons by one sorting them at the time they
31879 are pushed on the stack.
31881 2013-03-18 Richard Biener <rguenther@suse.de>
31883 PR tree-optimization/39326
31884 * tree-ssa-loop-im.c (refs_independent_p): Exploit symmetry.
31885 (struct mem_ref): Replace mem member with ao_ref typed member.
31886 (MEM_ANALYZABLE): Adjust.
31887 (memref_eq): Likewise.
31888 (mem_ref_alloc): Likewise.
31889 (gather_mem_refs_stmt): Likewise.
31890 (mem_refs_may_alias_p): Use the ao_ref to query the alias oracle.
31891 (execute_sm_if_changed_flag_set): Adjust.
31892 (execute_sm): Likewise.
31893 (ref_always_accessed_p): Likewise.
31894 (refs_independent_p): Likewise.
31895 (can_sm_ref_p): Likewise.
31897 2013-03-18 Jakub Jelinek <jakub@redhat.com>
31900 * tree.c (tree_int_cst_min_precision): For integer_zerop (value)
31901 return 1 even for !unsignedp.
31903 2013-03-17 Uros Bizjak <ubizjak@gmail.com>
31905 * config/i386/i386.md (isa): Add x64 and nox64.
31906 (enabled): Define x64 for TARGET_64BIT and nox64 for !TARGET_64BIT.
31907 (*pushtf): Enable *roF alternative for x64 isa only.
31908 (*pushxf): Merge with *pushxf_nointeger. Use Yx*r constraint. Set
31909 mode attribute of integer alternatives to DImode for TARGET_64BIT.
31910 (*pushdf): Merge with *pushdf_rex64. Use x64 and nox64 isa attributes.
31911 (*movtf_internal): Merge from *movtf_internal_rex64 and
31912 *movtf_internal_sse. Use x64 and nox64 isa attributes.
31913 (*movxf_internal): Merge with *movxf_internal_rex64. Use x64 and
31914 nox64 isa attributes.
31915 (*movdf_internal): Merge with *movdf_internal_rex64. Use x64 and
31916 nox64 isa attributes.
31917 * config/i386/constraints.md (Yd): Do not set for TARGET_64BIT.
31919 2013-03-17 Uros Bizjak <ubizjak@gmail.com>
31921 * config/alpha/alpha.c (TARGET_LRA_P): New define.
31923 2013-03-17 Jakub Jelinek <jakub@redhat.com>
31926 * config/arm/arm.h (REG_CLASS_NAMES): Add "SFP_REG" and "AFP_REG"
31927 class names. Remove trailing comma after "ALL_REGS".
31929 2013-03-16 Jan Hubicka <jh@suse.cz>
31931 * cgraph.h (cgraph_get_create_real_symbol_node): Declare.
31932 * cgraph.c (cgraph_get_create_real_symbol_node): New function.
31933 * cgrpahbuild.c: Use cgraph_get_create_real_symbol_node instead
31934 of cgraph_get_create_node.
31935 * ipa-prop.c (ipa_make_edge_direct_to_target): Likewise.
31937 2013-03-16 Jason Merrill <jason@redhat.com>
31940 * dwarf2out.c (gen_generic_params_dies): Indicate default arguments
31941 with DW_AT_default_value.
31943 2013-03-16 Jakub Jelinek <jakub@redhat.com>
31945 * BASE-VER: Set to 4.9.0.
31947 2013-03-14 Andi Kleen <ak@linux.intel.com>
31950 * doc/extend.texi: Document __ATOMIC_HLE_ACQUIRE,
31951 __ATOMIC_HLE_RELEASE. Document __builtin_ia32 TSX intrincs.
31952 Document _x* TSX intrinsics.
31954 2013-03-14 Edgar E. Iglesias <edgar.iglesias@xilinx.com>
31955 David Holsgrove <david.holsgrove@xilinx.com>
31957 * configure.ac: Add MicroBlaze TLS support detection.
31958 * configure: Regenerate.
31959 * config/microblaze/microblaze-protos.h
31960 (microblaze_cannot_force_const_mem, microblaze_tls_referenced_p,
31961 symbol_mentioned_p, label_mentioned_p): Add prototypes.
31962 * config/microblaze/microblaze.c (microblaze_address_type): Add
31963 ADDRESS_TLS and tls_reloc address types.
31964 (microblaze_address_info): Add tls_reloc.
31965 (TARGET_HAVE_TLS): Define.
31966 (get_tls_get_addr, microblaze_tls_symbol_p, microblaze_tls_operand_p_1,
31967 microblaze_tls_referenced_p, microblaze_cannot_force_const_mem,
31968 symbol_mentioned_p, label_mentioned_p, tls_mentioned_p,
31969 load_tls_operand, microblaze_call_tls_get_addr,
31970 microblaze_legitimize_tls_address): New functions.
31971 (microblaze_classify_unspec): Handle UNSPEC_TLS.
31972 (get_base_reg): Use microblaze_tls_symbol_p.
31973 (microblaze_classify_address): Handle TLS.
31974 (microblaze_legitimate_pic_operand): Use symbol_mentioned_p,
31975 label_mentioned_p and microblaze_tls_referenced_p.
31976 (microblaze_legitimize_address): Handle TLS.
31977 (microblaze_address_insns): Handle ADDRESS_TLS.
31978 (pic_address_needs_scratch): Handle TLS.
31979 (print_operand_address): Handle TLS.
31980 (microblaze_expand_prologue): Check TLS_NEEDS_GOT.
31981 (microblaze_expand_move): Handle TLS.
31982 (microblaze_legitimate_constant_p): Check
31983 microblaze_cannot_force_const_mem and microblaze_tls_symbol_p.
31984 (TARGET_CANNOT_FORCE_CONST_MEM): Define.
31985 * config/microblaze/microblaze.h (TLS_NEEDS_GOT): Define
31986 (PIC_OFFSET_TABLE_REGNUM): Set.
31987 * config/microblaze/linux.h (TLS_NEEDS_GOT): Define.
31988 * config/microblaze/microblaze.md (UNSPEC_TLS): Define.
31989 (addsi3, movsi_internal2, movdf_internal): Update constraints
31990 * config/microblaze/predicates.md (arith_plus_operand): Define
31991 (move_operand): Redefine as move_src_operand,
31992 check microblaze_tls_referenced_p.
31994 2013-03-14 Ian Bolton <ian.bolton@arm.com>
31996 * config/aarch64/aarch64.md: (*and<mode>3nr_compare0): Use CC_NZ.
31997 (*and_<SHIFT:optab><mode>3nr_compare0): Likewise.
31999 2013-03-14 Ian Bolton <ian.bolton@arm.com>
32001 * config/aarch64/aarch64.c (aarch64_select_cc_mode): Return correct
32004 2013-03-14 Jakub Jelinek <jakub@redhat.com>
32006 PR tree-optimization/53265
32007 * common.opt (Waggressive-loop-optimizations): New option.
32008 * tree-ssa-loop-niter.c: Include tree-pass.h.
32009 (do_warn_aggressive_loop_optimizations): New function.
32010 (record_estimate): Call it. Don't add !is_exit bounds to loop->bounds
32011 if number_of_latch_executions returned constant.
32012 (estimate_numbers_of_iterations_loop): Call number_of_latch_executions
32013 early. If number_of_latch_executions returned constant, set
32014 nb_iterations_upper_bound back to it.
32015 * cfgloop.h (struct loop): Add warned_aggressive_loop_optimizations
32017 * Makefile.in (tree-ssa-loop-niter.o): Depend on $(TREE_PASS_H).
32018 * doc/invoke.texi (-Wno-aggressive-loop-optimizations): Document.
32020 * config/aarch64/t-aarch64-linux (MULTARCH_DIRNAME): Remove.
32021 (MULTILIB_OSDIRNAMES): Set.
32022 * genmultilib: If defaultosdirname doesn't start with :: , set
32023 defaultosdirname2 instead, clear it and emit two . multilib_raw
32024 entries instead of just one.
32026 2013-03-14 Kaz Kojima <kkojima@gcc.gnu.org>
32028 * config/sh/linux.h (TARGET_DEFAULT): Remove MASK_USERMODE.
32029 (SUBTARGET_OVERRIDE_OPTIONS): Set TARGET_USERMODE as default.
32030 * config/sh/netbsd-elf.h (TARGET_DEFAULT): Remove MASK_USERMODE.
32031 (SUBTARGET_OVERRIDE_OPTIONS): New.
32033 2013-03-13 Oleg Endo <olegendo@gcc.gnu.org>
32036 * config/sh/sh.opt (FPU_SINGLE_ONLY): New mask.
32037 (musermode): Convert to Var(TARGET_USERMODE).
32038 * config/sh/sh.h (SELECT_SH2A_SINGLE_ONLY, SELECT_SH4_SINGLE_ONLY,
32039 MASK_ARCH): Add MASK_FPU_SINGLE_ONLY.
32040 * config/sh/sh.c (sh_option_override): Use
32041 TARGET_FPU_DOUBLE || TARGET_FPU_SINGLE_ONLY for call-fp case.
32042 * config/sh/sh.md (udivsi3_i1, divsi3_i1): Remove ! TARGET_SH4
32044 (udivsi3_i4, divsi3_i4): Use TARGET_FPU_DOUBLE condition instead of
32046 (udivsi3_i4_single, divsi3_i4_single): Use
32047 TARGET_FPU_SINGLE_ONLY || TARGET_FPU_DOUBLE instead of TARGET_HARD_SH4.
32049 2013-03-13 Dave Korn <dave.korn.cygwin@gmail.com>
32051 * config/i386/cygwin.h (SHARED_LIBGCC_SPEC): Make shared libgcc the
32054 2013-03-13 Richard Biener <rguenther@suse.de>
32056 PR tree-optimization/56608
32057 * tree-vect-slp.c (vect_schedule_slp): Do not remove scalar
32058 calls when vectorizing basic-blocks.
32060 2013-03-13 Jakub Jelinek <jakub@redhat.com>
32063 * config.gcc: On arm, mips, sh and sparc add vxworks-dummy.h to
32066 2013-03-12 Jakub Jelinek <jakub@redhat.com>
32068 * doc/invoke.texi (-Waddr-space-convert): Move into the table earlier.
32070 2013-03-11 Jan Hubicka <jh@suse.cz>
32073 * lto-streamer-out.c (output_symbol_p): Skip references from
32074 constructors of external variables.
32076 2013-03-11 Jan Hubicka <jh@suse.cz>
32078 PR middle-end/56571
32079 * valtrack.c (cleanup_auto_inc_dec): Unshare clobbers originating
32081 * emit-rtl.c (verify_rtx_sharing): Likewise.
32082 (copy_insn_1): Likewise.
32083 * rtl.c (copy_rtx): Likewise.
32085 2013-03-11 Georg-Johann Lay <avr@gjlay.de>
32088 * config/avr/avr.c (avr_print_operand): Add space after '%c' in
32089 output_operand_lossage message.
32091 2013-03-11 Richard Earnshaw <rearnsha@arm.com>
32094 * arm.c (shift_op): Validate RTL pattern on the fly.
32095 (arm_print_operand, case 'S'): Don't use shift_operator to validate
32098 2013-03-10 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
32101 * config/pa/pa.md (call_value): Check for calls to powf and direct to
32102 new call patterns that clobber %fr12.
32103 (call_val_powf, call_val_powf_pic, call_val_powf_64bit): New insn,
32104 split and postreload patterns.
32105 * config/pa/pa.c (pa_conditional_register_usage): Revert marking
32106 registers %fr12 and %fr12R as call used.
32108 2013-03-09 Steven Bosscher <steven@gcc.gnu.org>
32110 * dse.c (delete_dead_store_insn): Respect TDF_DETAILS.
32111 (canon_address, record_store, replace_read, check_mem_read_rtx,
32112 scan_insn, dse_step1, dse_step2_init, dse_step2_spill,
32113 dse_step4, dse_step5_nospill, dse_step5_spill, dse_step6,
32114 rest_of_handle_dse): Likewise.
32116 2013-03-09 Richard Sandiford <rdsandiford@googlemail.com>
32118 PR middle-end/56524
32119 * tree.h (tree_optimization_option): Rename target_optabs to optabs.
32121 (TREE_OPTIMIZATION_OPTABS): Update after previous field change.
32122 (TREE_OPTIMIZATION_BASE_OPTABS): New macro.
32123 (save_optabs_if_changed): Replace with...
32124 (init_tree_optimization_optabs): ...this.
32125 * optabs.c (save_optabs_if_changed): Rename to...
32126 (init_tree_optimization_optabs): ...this. Take the optimization node
32127 as argument. Do nothing if the base optabs are already correct.
32128 Reuse the existing TREE_OPTIMIZATION_OPTABS memory if we need
32129 to recompute optabs.
32130 * function.h (function): Remove optabs field.
32131 * function.c (invoke_set_current_function_hook): Call
32132 init_tree_optimization_optabs. Use the result to initialize
32135 2013-02-27 Aldy Hernandez <aldyh@redhat.com>
32137 * trans-mem.c (expand_transaction): Do not set PR_INSTRUMENTEDCODE
32138 if GTMA_HAS_NO_INSTRUMENTATION.
32139 (generate_tm_state): Keep GTMA_HAS_NO_INSTRUMENTATION bit.
32140 (ipa_tm_transform_transaction): Set GTMA_HAS_NO_INSTRUMENTATION.
32141 * gimple.h (GTMA_HAS_NO_INSTRUMENTATION): Define.
32142 * gimple-pretty-print.c (dump_gimple_transaction): Handle
32143 GTMA_HAS_NO_INSTRUMENTATION.
32145 2013-03-08 Jakub Jelinek <jakub@redhat.com>
32147 * config/gnu-user.h (LIBTSAN_EARLY_SPEC): Don't link against
32150 2013-03-08 Marek Polacek <polacek@redhat.com>
32151 Jakub Jelinek <jakub@redhat.com>
32153 PR tree-optimization/56478
32154 * predict.c (is_comparison_with_loop_invariant_p): Change the
32155 type of loop_step to tree.
32156 (predict_loops): Adjust.
32157 (predict_iv_comparison): Perform the computations on double_ints.
32159 2013-03-08 Richard Biener <rguenther@suse.de>
32161 PR tree-optimization/56570
32162 * tree-cfg.c (verify_expr_location_1): Verify locations for
32164 * tree-sra.c (create_access_replacement): Strip locations
32165 from DECL_DEBUG_EXPRs.
32167 2013-03-08 Richard Biener <rguenther@suse.de>
32169 * tree-inline.c (expand_call_inline): Do not associate
32170 a BLOCK with the location in BLOCK_SOURCE_LOCATION.
32171 * tree-cfg.c (verify_location): Verify BLOCK_SOURCE_LOCATION.
32173 2013-03-08 Richard Biener <rguenther@suse.de>
32175 * tree-ssa-ter.c (is_replaceable_p): Do not TER across location
32176 or block changes with -Og. Fix for location / block encoding
32177 changes and PHI arguments with locations.
32179 2013-03-07 Steven Bosscher <steven@gcc.gnu.org>
32181 * bitmap.c (struct bitmap_descriptor_d): Use unsigned HOST_WIDEST_INT
32183 (struct output_info): Likewise.
32184 (register_overhead): Remove bad gcc_assert.
32185 (bitmap_find_bit): If there is only a single bitmap element, do not
32186 count a miss as a search.
32187 (print_statistics): Update for counter type changes.
32188 (dump_bitmap_statistics): Likewise. Print headers such that they
32189 are properly lined up with the printed counters.
32191 2013-03-07 Jakub Jelinek <jakub@redhat.com>
32193 PR tree-optimization/56559
32194 * tree-ssa-reassoc.c (zero_one_operation): When looking at rhs2,
32195 check that it has only a single use.
32197 2013-03-07 Richard Biener <rguenther@suse.de>
32199 * doc/invoke.texi (fwhole-program): Discourage use in combination
32202 2013-03-06 Jakub Jelinek <jakub@redhat.com>
32204 * config/arm/t-arm (TM_H, OPTIONS_H_EXTRA): Add arm-cores.def.
32206 PR tree-optimization/56539
32207 * tree-tailcall.c (adjust_return_value_with_ops): Use GSI_SAME_STMT
32208 instead of GSI_CONTINUE_LINKING as last argument to
32209 force_gimple_operand_gsi. Adjust function comment.
32211 * config/aarch64/t-aarch64 (TM_H, OPTIONS_H_EXTRA): Add
32214 PR middle-end/56548
32215 * expr.c (expand_cond_expr_using_cmove): When expanding cmove in
32216 promoted mode, convert the result back to the original mode.
32218 2013-03-06 Richard Biener <rguenther@suse.de>
32220 PR middle-end/56294
32221 * tree-into-ssa.c (insert_phi_nodes_for): Add dumping.
32222 (insert_updated_phi_nodes_compare_uids): New function.
32223 (update_ssa): Sort symbols_to_rename after UID before
32224 traversing it to insert PHI nodes.
32226 2013-03-06 Richard Biener <rguenther@suse.de>
32228 PR middle-end/50494
32229 * tree-vect-data-refs.c (vect_can_force_dr_alignment_p):
32230 Do not adjust alignment of DECL_IN_CONSTANT_POOL decls.
32233 2013-02-13 Richard Biener <rguenther@suse.de>
32236 * varasm.c (output_constant_def_1): Get the decl representing
32237 the constant as argument.
32238 (output_constant_def): Wrap output_constant_def_1.
32239 (make_decl_rtl): Use output_constant_def_1 with the decl
32240 representing the constant.
32241 (build_constant_desc): Optionally re-use a decl already
32242 representing the constant.
32243 (tree_output_constant_def): Adjust.
32245 2013-03-06 Joey Ye <joey.ye@arm.com>
32248 * gcc.c (convert_white_space): New function.
32249 (main): Handles white space in function name.
32251 2013-03-06 Oleg Endo <olegendo@gcc.gnu.org>
32254 * config/sh/sh.c (sh_option_override): Check for TARGET_DYNSHIFT
32255 instead of TARGET_SH2 for call-table case. Do not set sh_div_strategy
32256 to SH_DIV_CALL_TABLE for TARGET_SH2.
32257 * config.gcc (sh_multilibs): Add m2 and m2a to sh*-*-linux* multilib
32259 * doc/invoke.texi (SH options): Document mdiv= call-div1, call-fp,
32260 call-table options.
32262 2013-03-05 Sterling Augustine <saugustine@google.com>
32263 Cary Coutant <ccoutant@google.com>
32266 * dwarf2out.c (resolve_addr): Don't call
32267 remove_loc_list_addr_table_entries a second time for the same
32270 2013-03-05 Jakub Jelinek <jakub@redhat.com>
32273 * cfgexpand.c (expand_debug_parm_decl): Call copy_rtx on incoming.
32274 (avoid_complex_debug_insns): New function.
32275 (expand_debug_locations): Call it.
32277 PR rtl-optimization/56484
32278 * ifcvt.c (noce_process_if_block): If else_bb is NULL, avoid extending
32279 lifetimes of hard registers on small register class machines.
32281 2013-03-05 David Holsgrove <david.holsgrove@xilinx.com>
32283 * config/microblaze/microblaze-protos.h: Rename
32284 microblaze_is_interrupt_handler to microblaze_is_interrupt_variant.
32285 * config/microblaze/microblaze.c (microblaze_attribute_table): Add
32287 (microblaze_fast_interrupt_function_p): New function.
32288 (microblaze_is_interrupt_handler): Rename to
32289 microblaze_is_interrupt_variant and add fast_interrupt check.
32290 (microblaze_must_save_register): Use microblaze_is_interrupt_variant.
32291 (save_restore_insns): Likewise.
32292 (compute_frame_size): Likewise.
32293 (microblaze_function_prologue): Add FAST_INTERRUPT_NAME.
32294 (microblaze_globalize_label): Likewise.
32295 * config/microblaze/microblaze.h: Define FAST_INTERRUPT_NAME.
32296 * config/microblaze/microblaze.md: Use wrapper
32297 microblaze_is_interrupt_variant.
32299 2013-03-05 Kai Tietz <ktietz@redhat.com>
32301 * sdbout.c (sdbout_one_type): Switch to current function's section
32302 supporting cold/hot.
32304 2013-03-05 David Holsgrove <david.holsgrove@xilinx.com>
32306 * doc/invoke.texi (MicroBlaze): Add -mbig-endian, -mlittle-endian,
32309 2013-03-05 Jakub Jelinek <jakub@redhat.com>
32311 PR middle-end/56461
32312 * ggc-common.c (gt_pch_save): For ENABLE_VALGRIND_CHECKING,
32313 if VALGRIND_GET_VBITS is defined, temporarily make object
32314 memory all defined, and restore previous valgrind addressability
32315 and definability afterwards. Free this_object at the end.
32317 PR middle-end/56461
32318 * lra.c (lra): Call lra_clear_live_ranges if live_p,
32319 right before calling lra_create_live_ranges, also call it
32320 when clearing live_p. Only call lra_clear_live_ranges
32321 at the end if live_p.
32323 PR middle-end/56461
32324 * sched-deps.c (delete_dep_node): Free DEP_REPLACE.
32326 2013-03-05 Richard Biener <rguenther@suse.de>
32328 PR tree-optimization/56521
32329 * tree-ssa-sccvn.c (set_value_id_for_result): Always initialize
32332 2013-03-05 Steven Bosscher <steven@gcc.gnu.org>
32335 * except.h (remove_unreachable_eh_regions): New prototype.
32336 * except.c (remove_eh_handler_splicer): New function, split out
32337 of remove_eh_handler.
32338 (remove_eh_handler): Use remove_eh_handler_splicer. Add comment
32339 warning about running it on many EH regions one at a time.
32340 (remove_unreachable_eh_regions_worker): New function, walk the
32341 EH tree in depth-first order and remove non-marked regions.
32342 (remove_unreachable_eh_regions): New function.
32343 * tree-eh.c (mark_reachable_handlers): New function, split out
32344 from remove_unreachable_handlers.
32345 (remove_unreachable_handlers): Use mark_reachable_handlers and
32346 remove_unreachable_eh_regions.
32347 (remove_unreachable_handlers_no_lp): Use mark_reachable_handlers
32348 and remove_unreachable_eh_regions.
32350 2013-03-05 Richard Biener <rguenther@suse.de>
32352 PR middle-end/56525
32353 * loop-init.c (fix_loop_structure): Remove loops in two stages,
32354 not freeing them until the end.
32356 2013-03-05 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
32358 * config/s390/s390.h: Define DWARF2_ASM_LINE_DEBUG_INFO.
32360 2013-03-05 Richard Biener <rguenther@suse.de>
32362 PR tree-optimization/56270
32363 * tree-vect-slp.c (vect_schedule_slp): Clear vectorized stmts
32364 of loads after scheduling an SLP instance.
32366 2013-03-05 Jakub Jelinek <jakub@redhat.com>
32368 * Makefile.in (dg_target_exps): Add aarch64.exp, epiphany.exp and
32370 (check_gcc_parallelize): Run guality.exp as a separate job from
32371 vect.exp with unsorted.exp and $(dg_target_exps) separately from
32372 struct-layout-1.exp with stackalign.exp.
32374 * alias.c (init_alias_analysis): Clear reg_known_equiv_p bitmap.
32376 PR middle-end/56461
32377 * tree-vect-slp.c (vect_supported_load_permutation_p): Free
32378 load_index sbitmap even if some bit in it isn't set.
32380 PR middle-end/56461
32381 * tree-ssa-loop-niter.c (bb_queue): Remove typedef.
32382 (discover_iteration_bound_by_body_walk): Change queues to
32383 vec<vec<basic_block> > and queue to vec<basic_block>. Fix up
32384 spelling in comment. Call safe_push on queues[bound_index] directly.
32385 Release queues[queue_index] in every iteration unconditionally.
32386 Release bounds vector.
32388 PR middle-end/56461
32389 * tree-vect-stmts.c (free_stmt_vec_info_vec): Call
32390 free_stmt_vec_info on any left-over stmt_vec_info in the vector.
32391 * tree-vect-loop.c (vect_create_epilog_for_reduction): Release
32394 2013-03-05 Richard Biener <rguenther@suse.de>
32397 * tree-inline.c (remap_blocks_to_null): New function.
32398 (expand_call_inline): When expanding a call stmt without
32399 an associated block inline remap all callee blocks to NULL.
32401 2013-03-05 Jakub Jelinek <jakub@redhat.com>
32403 PR rtl-optimization/56494
32404 * simplify-rtx.c (simplify_truncation): If C is narrower than A,
32405 optimize (truncate:A (subreg:B (truncate:C X) 0)) into
32406 (subreg:A (truncate:C X) 0) instead of (truncate:A X).
32408 PR middle-end/56461
32409 * sel-sched-ir.c (free_sched_pools): Release
32410 succs_info_pool.stack[succs_info_pool.max_top] vectors too
32411 if succs_info_pool.max_top isn't -1.
32414 * opts.c (opts_obstack, opts_concat): Moved to...
32415 * opts-common.c (opts_obstack, opts_concat): ... here.
32417 2013-03-04 Jakub Jelinek <jakub@redhat.com>
32419 PR middle-end/56461
32420 * diagnostic.c (diagnostic_append_note): Save and restore old prefix.
32422 2013-03-04 Martin Jambor <mjambor@suse.cz>
32424 * tree-dfa.c (get_or_create_ssa_default_def): Use parameter fn in
32425 all appropriate places.
32427 2013-01-04 Eric Botcazou <ebotcazou@adacore.com>
32429 PR tree-optimization/56424
32430 * ipa-split.c (split_function): Do not set the RSO flag if result is
32431 not by reference and its type is a register type.
32433 2013-03-04 David Holsgrove <david.holsgrove@xilinx.com>
32435 * config/microblaze/microblaze.c (microblaze_valid_pic_const): New
32436 (microblaze_legitimate_pic_operand): Likewise
32437 * config/microblaze/microblaze.h (LEGITIMATE_PIC_OPERAND_P): calls
32438 new function microblaze_legitimate_pic_operand
32439 * config/microblaze/microblaze-protos.h
32440 (microblaze_legitimate_pic_operand): Declare.
32442 2013-03-04 Edgar E. Iglesias <edgar.iglesias@gmail.com>
32444 * config/microblaze/predicates.md (call_insn_simple_operand):
32445 New predicate for supported rtx code types.
32446 * config/microblaze/microblaze.md (call_internal1): Use
32447 call_insn_simple_operand predicate.
32449 2013-03-04 Jakub Jelinek <jakub@redhat.com>
32451 PR middle-end/56461
32452 * tree-loop-distribution.c (ldist_gen): Call partition_free after each
32453 partitions.ordered_remove.
32455 PR middle-end/56461
32456 * tree-vect-stmts.c (vectorizable_conversion): Don't call
32457 vec_oprnds0.create (1) for modifier == NONE.
32459 PR middle-end/56461
32460 * tree-vect-stmts.c (vectorizable_shift): Don't call create methods
32461 on vec_oprnds0 or vec_oprnds1 before loop, only call it on
32462 vec_oprnds1 right before pushing anything to it for
32465 PR middle-end/56461
32466 * tree-vect-loop.c (destroy_loop_vec_info): For !clean_stmts, just
32467 set nbbs to 0 instead of having separate code path.
32468 (vect_analyze_loop_form): Call destroy_loop_vec_info with true
32469 instead of false as last argument if returning NULL.
32471 2013-03-03 Sandra Loosemore <sandra@codesourcery.com>
32473 * target.def (TARGET_OPTION_VALID_ATTRIBUTE_P): Update comments;
32474 the attribute is now called "target" instead of "option".
32475 (TARGET_OPTION_PRAGMA_PARSE): Likewise, for the pragma.
32476 * doc/tm.texi.in (Target Attributes): Likewise document the correct
32477 attribute/pragma name for TARGET_OPTION_VALID_P and
32478 TARGET_OPTION_PRAGMA_PARSE. Also copy-edit and correct markup.
32479 * doc/tm.texi: Regenerated.
32481 2013-03-02 David Holsgrove <david.holsgrove@xilinx.com>
32483 * config/microblaze/microblaze.c:
32484 Check mcpu, pcmp requirement and set TARGET_REORDER to 0 if not met.
32485 * config/microblaze/microblaze.h: Add -mxl-reorder to
32487 * config/microblaze/microblaze.md: New bswapsi2 and bswaphi2.
32488 instructions emitted if TARGET_REORDER.
32489 * config/microblaze/microblaze.opt: New option -mxl-reorder set to 1
32490 or 0 for -m/-mno case, but initialises as 2 to detect default use case
32493 2013-03-01 Xinliang David Li <davidxl@google.com>
32495 * tree-ssa-uninit.c (compute_control_dep_chain): Limit post-dom
32498 2013-03-01 Jakub Jelinek <jakub@redhat.com>
32500 PR middle-end/56461
32501 * tree-ssa-loop-ivcanon.c (tree_estimate_loop_size): Release path
32502 vector even when returning true. Fix up function comment formatting.
32504 PR middle-end/56461
32505 * ira-build.c (ira_loop_nodes_count): New variable.
32506 (create_loop_tree_nodes): Initialize it.
32507 (finish_loop_tree_nodes): Use it instead of looking at current_loops.
32509 PR middle-end/56461
32510 * tree-vect-data-refs.c (vect_permute_store_chain): Avoid using copy
32511 method on dr_chain and result_chain.
32512 * tree-vect-stmts.c (vectorizable_store): Only call
32513 result_chain.create if j == 0.
32515 PR middle-end/56461
32516 * tree-vect-stmts.c (vect_create_vectorized_promotion_stmts): Call
32517 vec_oprnds0->release (); rather than vec_oprnds0->truncate (0)
32518 before overwriting it.
32520 2013-03-01 Tobias Burnus <burnus@net-b.de>
32522 * doc/extended.texi (C Extensions): Change order in @menu
32524 (Other MIPS Built-in Functions): Move last MIPS entry before
32525 "picoChip Built-in Functions".
32526 (SH Built-in Functions): Move after RX Built-in Functions.
32527 * doc/gcc.texi (Introduction): Change order in @menu
32529 * doc/md.texi (Constraints): Ditto.
32530 * gty.texi (Type Information): Ditto.
32531 (User-provided marking routines for template types): Make
32533 * doc/invoke.texi (AArch64 Options): Move before
32534 "Adapteva Epiphany Options".
32536 2013-02-28 Konstantin Serebryany <konstantin.s.serebryany@gmail.com>
32537 Jakub Jelinek <jakub@redhat.com>
32540 * asan.c (gate_asan): Lookup no_sanitize_address instead of
32541 no_address_safety_analysis attribute.
32542 * doc/extend.texi (no_address_safety_attribute): Rename to
32543 no_sanitize_address attribute, mention no_address_safety_analysis
32544 attribute as deprecated alias.
32546 2013-02-28 Jakub Jelinek <jakub@redhat.com>
32548 PR middle-end/56461
32549 * tree-vectorizer.h (vect_get_slp_defs): Change 3rd argument
32550 type to vec<vec<tree> > *.
32551 * tree-vect-slp.c (vect_get_slp_defs): Likewise. Change vec_defs
32552 to be vec<tree> instead of vec<tree> *, set vec_defs
32553 to vNULL and call vec_defs.create (number_of_vects), adjust other
32555 * tree-vect-stmts.c (vect_get_vec_defs, vectorizable_call,
32556 vectorizable_condition): Adjust vect_get_slp_defs callers.
32558 2013-02-28 James Greenhalgh <james.greenhalgh@arm.com>
32560 * config/aarch64/aarch64.c
32561 (aarch64_float_const_representable): Remove unused variable.
32563 2013-02-28 James Greenhalgh <james.greenhalgh@arm.com>
32565 * config/aarch64/aarch64.c (aarch64_mangle_type): Make static.
32567 2013-02-28 James Greenhalgh <james.greenhalgh@arm.com>
32569 * config/aarch64/aarch64-builtins.c
32570 (aarch64_init_simd_builtins): Make static.
32572 2013-02-28 James Greenhalgh <james.greenhalgh@arm.com>
32574 * config/aarch64/aarch64.c
32575 (aarch64_simd_make_constant): Make static.
32577 2013-02-28 Martin Jambor <mjambor@suse.cz>
32579 * tree-sra.c (load_assign_lhs_subreplacements): Do not put replacements
32580 with no initialization to the RHS of debug statements.
32582 2013-02-28 Martin Jambor <mjambor@suse.cz>
32584 PR tree-optimization/56294
32585 * tree-sra.c (analyze_access_subtree): Create replacement declarations.
32587 (get_access_replacement): Do not call create_access_replacement.
32588 Assert a replacement exists.
32589 (get_repl_default_def_ssa_name): Create the replacement declaration
32592 2013-02-28 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
32594 * config/arm/arm.c (arm_output_mi_thunk): Call final_start_function and
32595 final_end_function.
32597 2013-02-28 Marek Polacek <polacek@redhat.com>
32599 PR rtl-optimization/56466
32600 * loop-unroll.c (unroll_and_peel_loops): Call fix_loop_structure
32601 if we're changing a loop.
32602 (peel_loops_completely): Likewise.
32604 2013-02-28 Paolo Carlini <paolo.carlini@oracle.com>
32607 * doc/invoke.texi ([-Wctor-dtor-privacy]): Complete.
32609 2013-02-28 Georg-Johann Lay <avr@gjlay.de>
32612 * config/avr/avr.c (avr_init_builtins): Use 'n' instead of empty
32613 macro parameters with: FX_FTYPE_FX, FX_FTYPE_FX_INT, INT_FTYPE_FX,
32614 INTX_FTYPE_FX, FX_FTYPE_INTX.
32615 * config/avr/builtins.def: Adjust respective DEF_BUILTIN.
32617 2013-02-28 Georg-Johann Lay <avr@gjlay.de>
32619 * avr/avr-mcus.def (ata5272, ata5505, attiny1634, ata6285)
32620 (ata6286, atmega8a, atmega48pa, ata5790, ata5790n, ata5795)
32621 (atmega164pa, atmega165pa, atmega168pa, atmega16hva, atmega16hvb)
32622 (atmega16hvbrevb, atmega16m1, atmega16u4, atmega26hvg, atmega32a)
32623 (atmega32a, atmega3250pa, atmega3290pa, atmega32c1, atmega32m1)
32624 (atmega32u4, atmega32u6, atmega64a, atmega6490a, atmega6490p)
32625 (atmega64c1, atmega64m1, atmega64rfa2, atmega64rfr2, atmega32hvb)
32626 (atmega32hvbrevb, atmega16hva2, atmega48hvf, at90pwm161)
32627 (atmega128a, atmega1284, atmxt112sl, atmxt224, atmxt224e)
32628 (atmxt336s, atxmega16a4u, atxmega16c4, atxmega32a4u, atxmega32c4)
32629 (atxmega32e5, atxmega64a3u, atxmega64a4u, atxmega64b1, atxmega64b3)
32630 (atxmega64c3, atxmega64d4, atxmega128a3u, atxmega128b1)
32631 (atxmega128b3, atxmega128c3, atxmega128d4, atmxt540s, atmxt540sreva)
32632 (atxmega192a3u, atxmega192c3, atxmega256a3u, atxmega256c3)
32633 (atxmega384c3, atxmega384d3, atxmega128a4u): New AVR_MCU.
32634 (avrxmega6): Increase max flash segments from 5 to 6.
32635 * config/avr/t-multilib: Regenerate.
32636 * config/avr/avr-tables.opt: Regenerate.
32637 * doc/avr-mmcu.texi: Regenerate.
32639 2013-02-28 Georg-Johann Lay <avr@gjlay.de>
32641 * config/avr/avr.h (device_to_arch): Rename to device_to_ld.
32642 (avr_device_to_arch): Rename to avr_device_to_ld.
32643 (avr_device_to_as): New prototype.
32644 (EXTRA_SPEC_FUNCTIONS): Add device_to_as.
32645 (ASM_SPEC): Use device_to_as to get -mmcu= and -mno-skip-bug=.
32646 * config/avr/driver-avr.c (avr_device_to_as): New.
32647 (avr_device_to_arch): Rename to avr_device_to_ld.
32649 2013-02-27 Jakub Jelinek <jakub@redhat.com>
32651 PR middle-end/56461
32652 * tree-vect-data-refs.c (vect_permute_load_chain): Avoid using copy
32653 method on dr_chain and result_chain.
32655 PR middle-end/56461
32656 * tree-ssa-loop-niter.c (maybe_lower_iteration_bound): Call
32657 pointer_set_destroy on not_executed_last_iteration.
32659 PR middle-end/56461
32660 * tree-vect-loop.c (vectorizable_reduction): Release vect_defs vector.
32662 PR middle-end/56461
32663 * ipa-pure-const.c (propagate): Use FOR_EACH_FUNCTION instead of
32664 FOR_EACH_DEFINED_FUNCTION when freeing state.
32666 PR middle-end/56461
32667 * df-scan.c (df_insn_delete): Use df_scan_free_mws_vec before
32669 (df_insn_rescan_debug_internal): Use df_scan_free_mws_vec before
32672 PR middle-end/56461
32673 * ipa-cp.c (decide_whether_version_node): Call vec_free on
32674 known_aggs[i].items and release known_aggs vector.
32676 PR middle-end/56461
32677 * ipa-reference.c (propagate): Free node_info even for alias nodes.
32679 2013-02-27 Edgar E. Iglesias <edgar.iglesias@gmail.com>
32681 * config/microblaze/microblaze.c (microblaze_emit_compare):
32682 Use xor for EQ/NE comparisions.
32683 * config/microblaze/microblaze.md (cstoresf4): Add constraints
32684 (cbranchsf4): Adjust operator to comparison_operator.
32686 2013-02-27 Jakub Jelinek <jakub@redhat.com>
32688 PR middle-end/56461
32689 * tree-flow.h (edge_var_map_vector): Change into va_heap, vl_embed
32691 * tree-ssa.c (redirect_edge_var_map_add): Use vec_safe_reserve and
32692 vec_safe_push, always update *slot.
32693 (redirect_edge_var_map_clear): Use vec_free.
32694 (redirect_edge_var_map_dup): Use vec_safe_copy and vec_safe_reserve.
32695 (free_var_map_entry): Use vec_free.
32696 * tree-cfgcleanup.c (remove_forwarder_block_with_phi): Use
32697 FOR_EACH_VEC_SAFE_ELT instead of FOR_EACH_VEC_ELT.
32699 2013-02-27 Andrey Belevantsev <abel@ispras.ru>
32701 PR middle-end/45472
32702 * sel-sched-ir.c (merge_expr): Also change vinsn of merged expr
32703 when the may_trap_p bit of the exprs being merged differs.
32704 Reorder tests for speculativeness in the logical and operator.
32706 2013-02-27 Jakub Jelinek <jakub@redhat.com>
32708 * incpath.c (add_standard_paths): Use reconcat instead of concat
32709 where appropriate and avoid leaking memory.
32711 * opts.h: Include obstack.h.
32712 (opts_concat): New prototype.
32713 (opts_obstack): New declaration.
32714 * opts.c (opts_concat): New function.
32715 (opts_obstack): New variable.
32716 (init_options_struct): Call gcc_init_obstack on opts_obstack.
32717 (finish_options): Use opts_concat instead of concat
32718 and XOBNEWVEC instead of XNEWVEC.
32719 * opts-common.c (generate_canonical_option, decode_cmdline_option,
32720 generate_option): Likewise.
32721 * Makefile.in (OPTS_H): Depend on $(OBSTACK_H).
32722 * lto-wrapper.c (main): Call gcc_init_obstack on opts_obstack.
32725 * stmt.c (expand_switch_as_decision_tree_p): If flag_pic
32726 and ASM_OUTPUT_ADDR_DIFF_ELT isn't defined, return true.
32728 2013-02-26 Jakub Jelinek <jakub@redhat.com>
32730 PR middle-end/56461
32731 * lra-spills.c (lra_spill): Free spill_hard_reg at the end.
32733 2013-02-26 Joern Rennecke <joern.rennecke@embecosm.com>
32735 * config/arm/arm.c (const_ok_for_dimode_op): Back out last change.
32736 (arm_block_move_unaligned_straight): Likewise.
32737 (arm_adjust_block_mem): Likewise.
32739 2013-02-26 Joern Rennecke <joern.rennecke@embecosm.com>
32742 * config/lm32/lm32.c (gen_int_relational): Remove unused variables
32743 temp, cond and label.
32744 * config/lm32/lm32.md (ashlsi3): Remove unused variable one.
32747 * config/c6x/c6x.c (dbx_register_map): Change to unsigned.
32748 * config/c6x/c6x.h (dbx_register_map): Update declaration.
32751 * config/cr16/cr16-protos.h: Move end of RTX_CODE guard below end
32752 of prologue/epilogue functions.
32755 * config/tilegx/tilegx.c (tilegx_expand_prologue):
32756 Remove unused variable cfa_offset.
32757 * config/tilepro/tilepro.c (tilepro_expand_prologue): Likewise.
32760 * config/mn10300/mn10300.c (mn10300_expand_epilogue): Avoid offset
32761 type promotion to unsigned.
32764 * config/arm/arm.c (const_ok_for_dimode_op): Make code consistent
32765 for HOST_WIDE_INT of 32 bit / same size as int.
32766 (arm_block_move_unaligned_straight): Likewise.
32767 (arm_adjust_block_mem): Likewise.
32770 * config/mep/t-mep (mep-pragma.o): Use ALL_COMPILERFLAGS instead of
32773 2013-02-26 Marek Polacek <polacek@redhat.com>
32775 PR tree-optimization/56426
32776 * tree-ssa-loop.c (tree_ssa_loop_init): Always call scev_initialize.
32778 2013-02-26 Richard Biener <rguenther@suse.de>
32781 * config/mn10300/mn10300.c (mn10300_scan_for_setlb_lcc): Remove
32782 unused variable loops.
32784 2013-02-26 Jakub Jelinek <jakub@redhat.com>
32786 PR tree-optimization/56448
32787 * fold-const.c (operand_equal_p) <case tcc_reference>: Don't look at
32788 TREE_SIDE_EFFECTS if flags contain OEP_CONSTANT_ADDRESS_OF.
32789 Clear OEP_CONSTANT_ADDRESS_OF from flags before recursing on second or
32790 later operands of the references, or even first operand for
32791 INDIRECT_REF, TARGET_MEM_REF or MEM_REF.
32793 PR tree-optimization/56443
32794 * tree-vect-stmts.c (get_vectype_for_scalar_type_and_size): For
32795 overaligned types, pass TYPE_UNSIGNED (scalar_type) as second argument
32796 to type_for_mode langhook.
32798 2013-02-25 Matt Turner <mattst88@gmail.com>
32800 * doc/invoke.texi: Document r4700.
32802 2013-02-25 Richard Biener <rguenther@suse.de>
32804 PR tree-optimization/56175
32805 * tree-ssa-forwprop.c (hoist_conversion_for_bitop_p): New predicate,
32807 (simplify_bitwise_binary): ... here. Also guard the conversion
32808 of (type) X op CST to (type) (X op ((type-x) CST)) with it.
32810 2013-02-25 Catherine Moore <clm@codesourcery.com>
32813 2013-02-24 Catherine Moore <clm@codesourcery.com>
32814 Maciej W. Rozycki <macro@codesourcery.com>
32815 Tom de Vries <tom@codesourcery.com>
32816 Nathan Sidwell <nathan@codesourcery.com>
32817 Iain Sandoe <iain@codesourcery.com>
32818 Nathan Froyd <froydnj@codesourcery.com>
32819 Chao-ying Fu <fu@mips.com>
32821 * doc/extend.texi: (micromips, nomicromips, nocompression):
32822 Document new function attributes.
32823 * doc/invoke.texi (minterlink-compressed, mmicromips,
32824 m14k, m14ke, m14kec): Document new options.
32825 (minterlink-mips16): Update documentation.
32826 * doc/md.texi (ZC, ZD): Document new constraints.
32827 * configure.ac (gcc_cv_as_micromips): Check if linker
32828 supports the .set micromips directive.
32829 * configure: Regenerate.
32830 * config.in: Regenerate.
32831 * config/mips/mips-tables.opt: Regenerate.
32832 * config/mips/micromips.md: New file.
32833 * constraints.md (ZC, AD): New constraints.
32834 * config/mips/predicates.md (movep_src_register): New predicate.
32835 (movep_src_operand): New predicate.
32836 (non_volatile_mem_operand): New predicate.
32837 * config/mips/mips.md (multimem): New type.
32838 (length): Differentiate between 17-bit and 18-bit branch offsets.
32839 (MOVEP1, MOVEP2): New mode iterator.
32840 (mov_<load>l): Use ZC constraint.
32841 (mov_<load>r): Likewise.
32842 (mov_<store>l): Likewise.
32843 (mov_<store>r): Likewise.
32844 (*branch_equality<mode>_inverted): Add microMIPS support.
32845 (*branch_equality<mode>): Likewise.
32846 (*jump_absolute): Likewise.
32847 (indirect_jump_<mode>): Likewise.
32848 (tablejump_<mode>): Likewise.
32849 (<optab>_internal): Likewise.
32850 (sibcall_internal): Likewise.
32851 (sibcall_value_internal): Likewise.
32852 (prefetch): Use constraint ZD.
32853 * config/mips/mips.opt (minterlink-compressed): New option.
32854 (minterlink-mips16): Now an alias for minterlink-compressed.
32855 (mmicromips): New option.
32856 * config/mips/sync.md (sync_compare_and_swap<mode>): Use ZR constraint.
32857 (compare_and_swap_12): Likewise.
32858 (sync_add<mode>): Likewise.
32859 (sync_<optab>_12): Likewise.
32860 (sync_old_<optab>_12): Likewise.
32861 (sync_new_<optab>_12): Likewise.
32862 (sync_nand_12): Likewise.
32863 (sync_old_nand_12): Likewise.
32864 (sync_new_nand_12): Likewise.
32865 (sync_sub<mode>): Likewise.
32866 (sync_old_add<mode>): Likewise.
32867 (sync_old_sub<mode>): Likewise.
32868 (sync_new_add<mode>): Likewise.
32869 (sync_new_sub<mode>): Likewise.
32870 (sync_<optab><mode>): Likewise.
32871 (sync_old_<optab><mode>): Likewise.
32872 (sync_new_<optab><mode>): Likewise.
32873 (sync_nand<mode>): Likewise.
32874 (sync_old_nand<mode>): Likewise.
32875 (sync_new_nand<mode>): Likewise.
32876 (sync_lock_test_and_set<mode>): Likewise.
32877 (test_and_set_12): Likewise.
32878 (atomic_compare_and_swap<mode>): Likewise.
32879 (atomic_exchange<mode>_llsc): Likewise.
32880 (atomic_fetch_add<mode>_llsc): Likewise.
32881 * config/mips/mips-cpus.def (m14kc, m14k): New processors.
32882 * config/mips/mips-protos.h (umips_output_save_restore): New prototype.
32883 (umips_save_restore_pattern_p): Likewise.
32884 (umips_load_store_pair_p): Likewise.
32885 (umips_output_load_store_pair): Likewise.
32886 (umips_movep_target_p): Likewise.
32887 (umips_12bit_offset_address_p): Likewise.
32888 * config/mips/mips.c (MIPS_MAX_FIRST_STEP): Update for microMIPS.
32889 (mips_base_mips16): Rename this...
32890 (mips_base_compression_flags): ...to this. Update all uses.
32891 (mips_attribute_table): Add micromips, nomicromips and nocompression.
32892 (mips_mips16_decl_p): Delete.
32893 (mips_nomips16_decl_p): Delete.
32894 (mips_get_compress_on_flags): New function.
32895 (mips_get_compress_off_flags): New function.
32896 (mips_get_compress_mode): New function.
32897 (mips_get_compress_on_name): New function.
32898 (mips_get_compress_off_name): New function.
32899 (mips_insert_attributes): Support multiple compression types.
32900 (mips_merge_decl_attributes): Likewise.
32901 (umips_12bit_offset_address_p): New function.
32902 (mips_start_function_definition): Emit .set micromips directive.
32903 (mips_call_may_need_jalx_p): New function.
32904 (mips_function_ok_for_sibcall): Add microMIPS support.
32905 (mips_print_operand_punctuation): Support short delay slots and
32907 (umips_swm_mask, umips_swm_encoding): New.
32908 (umips_build_save_restore): New function.
32909 (mips_for_each_saved_gpr_and_fpr): Add microMIPS support.
32910 (was_mips16_p): Remove.
32911 (old_compression_mode): New.
32912 (mips_set_compression_mode): New function.
32913 (mips_set_current_function): Add microMIPS support.
32914 (mips_option_override): Likewise.
32915 (umips_save_restore_pattern_p): New function.
32916 (umips_output_save_restore): New function.
32917 (umips_load_store_pair_p_1): New function.
32918 (umips_load_store_pair_p): New function.
32919 (umips_output_load_store_pair_1): New function.
32920 (umips_output_load_store_pair): New function.
32921 (umips_movep_target_p) New function.
32922 (mips_prepare_pch_save): Add microMIPS support.
32923 * config/mips/mips.h (TARGET_COMPRESSION): New.
32924 (TARGET_CPU_CPP_BUILTINS): Update macro
32925 to use new compression flags and to support microMIPS.
32926 (MIPS_ISA_LEVEL_SPEC): Add m14k processors.
32927 (MIPS_ARCH_FLOAT_SPEC): Likewise.
32928 (ISA_HAS_LWXS): Include TARGET_MICROMIPS.
32929 (ISA_HAS_LOAD_DELAY): Exclude TARGET_MICROMIPS.
32930 (ASM_SPEC): Support mmicromips and mno-micromips.
32931 (M16STORE_REG_P): New macro.
32932 (MIPS_CALL): Support TARGET_MICROMIPS.
32933 (MICROMIPS_J): New macro.
32934 (mips_base_mips16): Rename this...
32935 (mips_base_compression_flags): ...to this.
32936 (UMIPS_12BIT_OFFSET_P): New macro.
32937 * config/mips/t-sde: (MULTILIB_OPTIONS): Add microMIPS.
32938 (MULTILIB_DIRNAMES): Likewise.
32940 2013-02-25 Tom de Vries <tom@codesourcery.com>
32942 PR rtl-optimization/56131
32943 * insn-notes.def (INSN_NOTE_BASIC_BLOCK): Update comment.
32944 * cfgrtl.c (delete_insn): Don't reorder NOTE_INSN_DELETED_LABEL and
32945 NOTE_INSN_BASIC_BLOCK if BLOCK_FOR_INSN == NULL.
32947 2013-02-25 Tobias Burnus <burnus@net-b.de>
32949 * doc/invoke.texi (-fsanitize=): Move from optimization
32950 to debugging options.
32952 2013-02-25 Andrey Belevantsev <abel@ispras.ru>
32954 * sched-deps.c (sched_analyze_insn): Fix typo in comment.
32956 2013-02-25 Andrey Belevantsev <abel@ispras.ru>
32957 Alexander Monakov <amonakov@ispras.ru>
32959 PR middle-end/56077
32960 * sched-deps.c (sched_analyze_insn): When reg_pending_barrier,
32961 flush pending lists also on non-jumps. Adjust comment.
32963 2013-02-24 Catherine Moore <clm@codesourcery.com>
32964 Maciej W. Rozycki <macro@codesourcery.com>
32965 Tom de Vries <tom@codesourcery.com>
32966 Nathan Sidwell <nathan@codesourcery.com>
32967 Iain Sandoe <iain@codesourcery.com>
32968 Nathan Froyd <froydnj@codesourcery.com>
32969 Chao-ying Fu <fu@mips.com>
32971 * doc/extend.texi: (micromips, nomicromips, nocompression):
32972 Document new function attributes.
32973 * doc/invoke.texi (minterlink-compressed, mmicromips,
32974 m14k, m14ke, m14kec): Document new options.
32975 (minterlink-mips16): Update documentation.
32976 * doc/md.texi (ZC, ZD): Document new constraints.
32977 * configure.ac (gcc_cv_as_micromips): Check if linker
32978 supports the .set micromips directive.
32979 * configure: Regenerate.
32980 * config.in: Regenerate.
32981 * config/mips/mips-tables.opt: Regenerate.
32982 * config/mips/micromips.md: New file.
32983 * constraints.md (ZC, AD): New constraints.
32984 * config/mips/predicates.md (movep_src_register): New predicate.
32985 (movep_src_operand): New predicate.
32986 (non_volatile_mem_operand): New predicate.
32987 * config/mips/mips.md (multimem): New type.
32988 (length): Differentiate between 17-bit and 18-bit branch offsets.
32989 (MOVEP1, MOVEP2): New mode iterator.
32990 (mov_<load>l): Use ZC constraint.
32991 (mov_<load>r): Likewise.
32992 (mov_<store>l): Likewise.
32993 (mov_<store>r): Likewise.
32994 (*branch_equality<mode>_inverted): Add microMIPS support.
32995 (*branch_equality<mode>): Likewise.
32996 (*jump_absolute): Likewise.
32997 (indirect_jump_<mode>): Likewise.
32998 (tablejump_<mode>): Likewise.
32999 (<optab>_internal): Likewise.
33000 (sibcall_internal): Likewise.
33001 (sibcall_value_internal): Likewise.
33002 (prefetch): Use constraint ZD.
33003 * config/mips/mips.opt (minterlink-compressed): New option.
33004 (minterlink-mips16): Now an alias for minterlink-compressed.
33005 (mmicromips): New option.
33006 * config/mips/sync.md (sync_compare_and_swap<mode>): Use ZR constraint.
33007 (compare_and_swap_12): Likewise.
33008 (sync_add<mode>): Likewise.
33009 (sync_<optab>_12): Likewise.
33010 (sync_old_<optab>_12): Likewise.
33011 (sync_new_<optab>_12): Likewise.
33012 (sync_nand_12): Likewise.
33013 (sync_old_nand_12): Likewise.
33014 (sync_new_nand_12): Likewise.
33015 (sync_sub<mode>): Likewise.
33016 (sync_old_add<mode>): Likewise.
33017 (sync_old_sub<mode>): Likewise.
33018 (sync_new_add<mode>): Likewise.
33019 (sync_new_sub<mode>): Likewise.
33020 (sync_<optab><mode>): Likewise.
33021 (sync_old_<optab><mode>): Likewise.
33022 (sync_new_<optab><mode>): Likewise.
33023 (sync_nand<mode>): Likewise.
33024 (sync_old_nand<mode>): Likewise.
33025 (sync_new_nand<mode>): Likewise.
33026 (sync_lock_test_and_set<mode>): Likewise.
33027 (test_and_set_12): Likewise.
33028 (atomic_compare_and_swap<mode>): Likewise.
33029 (atomic_exchange<mode>_llsc): Likewise.
33030 (atomic_fetch_add<mode>_llsc): Likewise.
33031 * config/mips/mips-cpus.def (m14kc, m14k): New processors.
33032 * config/mips/mips-protos.h (umips_output_save_restore): New prototype.
33033 (umips_save_restore_pattern_p): Likewise.
33034 (umips_load_store_pair_p): Likewise.
33035 (umips_output_load_store_pair): Likewise.
33036 (umips_movep_target_p): Likewise.
33037 (umips_12bit_offset_address_p): Likewise.
33038 * config/mips/mips.c (MIPS_MAX_FIRST_STEP): Update for microMIPS.
33039 (mips_base_mips16): Rename this...
33040 (mips_base_compression_flags): ...to this. Update all uses.
33041 (mips_attribute_table): Add micromips, nomicromips and nocompression.
33042 (mips_mips16_decl_p): Delete.
33043 (mips_nomips16_decl_p): Delete.
33044 (mips_get_compress_on_flags): New function.
33045 (mips_get_compress_off_flags): New function.
33046 (mips_get_compress_mode): New function.
33047 (mips_get_compress_on_name): New function.
33048 (mips_get_compress_off_name): New function.
33049 (mips_insert_attributes): Support multiple compression types.
33050 (mips_merge_decl_attributes): Likewise.
33051 (umips_12bit_offset_address_p): New function.
33052 (mips_start_function_definition): Emit .set micromips directive.
33053 (mips_call_may_need_jalx_p): New function.
33054 (mips_function_ok_for_sibcall): Add microMIPS support.
33055 (mips_print_operand_punctuation): Support short delay slots and
33057 (umips_swm_mask, umips_swm_encoding): New.
33058 (umips_build_save_restore): New function.
33059 (mips_for_each_saved_gpr_and_fpr): Add microMIPS support.
33060 (was_mips16_p): Remove.
33061 (old_compression_mode): New.
33062 (mips_set_compression_mode): New function.
33063 (mips_set_current_function): Add microMIPS support.
33064 (mips_option_override): Likewise.
33065 (umips_save_restore_pattern_p): New function.
33066 (umips_output_save_restore): New function.
33067 (umips_load_store_pair_p_1): New function.
33068 (umips_load_store_pair_p): New function.
33069 (umips_output_load_store_pair_1): New function.
33070 (umips_output_load_store_pair): New function.
33071 (umips_movep_target_p) New function.
33072 (mips_prepare_pch_save): Add microMIPS support.
33073 * config/mips/mips.h (TARGET_COMPRESSION): New.
33074 (TARGET_CPU_CPP_BUILTINS): Update macro
33075 to use new compression flags and to support microMIPS.
33076 (MIPS_ISA_LEVEL_SPEC): Add m14k processors.
33077 (MIPS_ARCH_FLOAT_SPEC): Likewise.
33078 (ISA_HAS_LWXS): Include TARGET_MICROMIPS.
33079 (ISA_HAS_LOAD_DELAY): Exclude TARGET_MICROMIPS.
33080 (ASM_SPEC): Support mmicromips and mno-micromips.
33081 (M16STORE_REG_P): New macro.
33082 (MIPS_CALL): Support TARGET_MICROMIPS.
33083 (MICROMIPS_J): New macro.
33084 (mips_base_mips16): Rename this...
33085 (mips_base_compression_flags): ...to this.
33086 (UMIPS_12BIT_OFFSET_P): New macro.
33087 * config/mips/t-sde: (MULTILIB_OPTIONS): Add microMIPS.
33088 (MULTILIB_DIRNAMES): Likewise.
33090 2013-02-24 Jakub Jelinek <jakub@redhat.com>
33093 * target-globals.c (save_target_globals): For init_reg_sets and
33094 target_reinit remporarily set this_fn_optabs to this_target_optabs.
33096 2013-02-22 James Greenhalgh <james.greenhalgh@arm.com>
33098 * config/aarch64/aarch64-simd-builtins.def: Add copyright header.
33099 * config/aarch64/t-aarch64
33100 (aarch64-builtins.o): Depend on aarch64-simd-builtins.def.
33102 2013-02-22 Vladimir Makarov <vmakarov@redhat.com>
33104 PR inline-asm/56148
33105 * lra-constraints.c (process_alt_operands): Reload operand
33106 conflicting with earlier clobber only if no more other conflicting
33109 2013-02-22 Jakub Jelinek <jakub@redhat.com>
33112 * config/gnu-user.h (LIBASAN_EARLY_SPEC): Link in libasan_preinit.o
33113 if not linking a shared library.
33115 2013-02-22 Seth LaForge <sethml@google.com>
33117 * config.gcc (arm*-*-eabi*): Treat arm*eb as big-endian.
33119 2013-02-22 Greta Yorsh <Greta.Yorsh@arm.com>
33121 * config/arm/arm.md (split for extendsidi): Update condition.
33122 (zero_extend<mode>di2,extend<mode>di2): Add an alternative.
33123 * config/arm/iterators.md (qhs_extenddi_cstr): Likewise.
33124 (qhs_zextenddi_cstr): Likewise.
33126 2013-02-21 Jakub Jelinek <jakub@redhat.com>
33128 PR middle-end/56420
33129 * expmed.c (EXACT_POWER_OF_2_OR_ZERO_P): Do subtraction in uhwi, to
33130 avoid signed wrapping.
33131 (expand_mult): Handle properly multiplication by
33132 ((dword_type) -1) << (BITS_PER_WORD - 1). Improve multiplication by
33133 ((dword_type) 1) << (BITS_PER_WORD - 1). Avoid undefined behavior
33134 in the compiler if coeff is HOST_WIDE_INT_MIN.
33135 (expand_divmod): Don't make ext_op1 static, change it's type to
33136 uhwi. Avoid undefined behavior in -INTVAL (op1).
33138 PR rtl-optimization/50339
33139 * lower-subreg.h (struct lower_subreg_choices): Add splitting_ashiftrt
33141 * lower-subreg.c (compute_splitting_shift): Handle ASHIFTRT.
33142 (compute_costs): Call compute_splitting_shift also for ASHIFTRT
33143 into splitting_ashiftrt field.
33144 (find_decomposable_shift_zext, resolve_shift_zext): Handle also
33146 (dump_choices): Fix up printing LSHIFTRT choices, print ASHIFTRT
33149 2013-02-20 Aldy Hernandez <aldyh@redhat.com>
33151 PR middle-end/56108
33152 * trans-mem.c (execute_tm_mark): Do not expand transactions that
33153 are sure to go irrevocable.
33155 2013-02-21 Hans-Peter Nilsson <hp@axis.com>
33157 * doc/rtl.texi (vec_concat, vec_duplicate): Mention that
33158 scalars are valid operands.
33160 2013-02-21 Martin Jambor <mjambor@suse.cz>
33162 PR tree-optimization/56310
33163 * ipa-cp.c (agg_replacements_to_vector): New parameter index, copy
33164 only matching indices and non-negative final offsets.
33165 (intersect_aggregates_with_edge): Pass src_idx to
33166 agg_replacements_to_vector. Pass src_idx insstead of index to
33167 intersect_with_agg_replacements.
33169 2013-02-21 Martin Jambor <mjambor@suse.cz>
33171 * ipa-cp.c (good_cloning_opportunity_p): Dump the real threshold
33172 instead of hard-wired defaults.
33174 2013-02-21 Maciej W. Rozycki <macro@codesourcery.com>
33176 * doc/invoke.texi (MIPS Options): Update documentation of the
33177 floating-point multiply-accumulate instruction restrictions.
33179 2013-02-21 Kostya Serebryany <kcc@google.com>
33181 * config/i386/i386.c (ix86_asan_shadow_offset): Use 0x7fff8000 as
33182 asan_shadow_offset on x86_64 linux.
33184 2013-02-21 Richard Biener <rguenther@suse.de>
33186 PR tree-optimization/56415
33188 2013-02-11 Richard Biener <rguenther@suse.de>
33190 PR tree-optimization/56273
33191 * tree-vrp.c (simplify_cond_using_ranges): Disable for the
33194 2013-02-21 Jakub Jelinek <jakub@redhat.com>
33197 * doc/invoke.texi (-fdump-rtl-pro_and_epilogue): Use @item
33200 PR inline-asm/56405
33201 * expr.c (expand_expr_real_1) <case TARGET_MEM_REF, MEM_REF>: Don't
33202 use movmisalign or extract_bit_field for EXPAND_MEMORY modifier.
33204 2013-02-20 Jan Hubicka <jh@suse.cz>
33206 PR tree-optimization/56265
33207 * ipa-prop.c (ipa_make_edge_direct_to_target): Fixup callgraph
33208 when target is referenced for first time.
33210 2013-02-20 Richard Biener <rguenther@suse.de>
33212 * tree-call-cdce.c (tree_call_cdce): Do not remove unused locals.
33213 * tree-ssa-forwprop.c (ssa_forward_propagate_and_combine): Likewise.
33214 * tree-ssa-dce.c (perform_tree_ssa_dce): Likewise.
33215 * tree-ssa-copyrename.c (copy_rename_partition_coalesce): Do
33216 not return anything.
33217 (rename_ssa_copies): Do not remove unused locals.
33218 * tree-ssa-ccp.c (do_ssa_ccp): Likewise.
33219 * tree-ssanames.c (pass_release_ssa_names): Remove unused locals first.
33220 * passes.c (execute_function_todo): Do not schedule unused locals
33221 removal if cleanup_tree_cfg did something.
33222 * tree-ssa-live.c (remove_unused_locals): Dump statistics
33223 about the number of removed locals.
33225 2013-02-20 Richard Biener <rguenther@suse.de>
33227 PR tree-optimization/56398
33228 * tree-vect-loop-manip.c (adjust_debug_stmts): Skip SSA default defs.
33230 2013-02-20 Martin Jambor <mjambor@suse.cz>
33232 PR tree-optimization/55334
33233 * ipa-cp.c (initialize_node_lattices): Disable IPA-CP through and to
33234 restricted pointers to arrays.
33236 2013-02-20 Richard Biener <rguenther@suse.de>
33237 Jakub Jelinek <jakub@redhat.com>
33239 PR tree-optimization/56396
33240 * tree-ssa-ccp.c (n_const_val): New static variable.
33241 (get_value): Return NULL for SSA names we don't have a lattice
33243 (ccp_initialize): Initialize n_const_val.
33244 * tree-ssa-copy.c (n_copy_of): New static variable.
33245 (init_copy_prop): Initialize n_copy_of.
33246 (get_value): Return NULL_TREE for SSA names we don't have a
33249 2013-02-20 Martin Jambor <mjambor@suse.cz>
33251 * ipa-cp.c (initialize_node_lattices): Fix dumping condition.
33253 2013-02-20 Richard Biener <rguenther@suse.de>
33255 * genpreds.c (write_lookup_constraint): Do not compare first
33256 letter of the constraint again.
33258 2013-02-20 Richard Biener <rguenther@suse.de>
33260 * tree-ssa-loop-ivopts.c (alloc_use_cost_map): Use bitmap_count_bits
33262 (get_use_iv_cost): Terminate hashtable walk when coming across
33265 2013-02-20 Igor Zamyatin <igor.zamyatin@intel.com>
33267 * config/i386/i386.c (initial_ix86_tune_features): Turn on fp
33268 reassociation for avx2 targets.
33270 2012-02-19 Edgar E. Iglesias <edgar.iglesias@gmail.com>
33272 * config/microblaze/microblaze.c: microblaze_has_clz = 0
33273 Add version check for v8.10.a to enable microblaze_has_clz
33274 * config/microblaze/microblaze.h: Add TARGET_HAS_CLZ as combined
33275 version and TARGET_PATTERN_COMPARE check
33276 * config/microblaze/microblaze.md: New clzsi2 instruction
33278 2012-02-19 Edgar E. Iglesias <edgar.iglesias@gmail.com>
33280 * config/microblaze/microblaze.md (call_value_intern): Check symbol is
33281 function before branching.
33283 2012-02-19 Andrey Belevantsev <abel@ispras.ru>
33285 * sel-sched-dump.c (dump_insn_rtx_flags): Explicitly set
33287 (dump_insn_rtx_1): Pass PATTERN (insn) to str_pattern_slim.
33289 2012-02-19 Andrey Belevantsev <abel@ispras.ru>
33291 PR middle-end/55889
33292 * sel-sched.c: Include ira.h.
33293 (implicit_clobber_conflict_p): New function.
33294 (moveup_expr): Use it.
33295 * Makefile.in (sel-sched.o): Depend on ira.h.
33297 2013-02-19 Richard Biener <rguenther@suse.de>
33299 PR tree-optimization/56384
33300 * tree-ssa-sccvn.h (struct vn_phi_s): Add type member.
33301 (vn_hash_type): Split out from ...
33302 (vn_hash_constant_with_type): ... here.
33303 * tree-ssa-sccvn.c (vn_phi_compute_hash): Use vn_hash_type.
33304 (vn_phi_eq): Compare types from vn_phi_s structure.
33305 (vn_phi_lookup): Populate vn_phi_s type.
33306 (vn_phi_insert): Likewise.
33308 2013-02-19 Jakub Jelinek <jakub@redhat.com>
33310 PR tree-optimization/56350
33311 * tree-vect-loop.c (vectorizable_reduction): If orig_stmt, return false
33312 if haven't found reduction or nested cycle operand, rather than
33313 asserting we must find it.
33315 PR tree-optimization/56381
33316 * tree-ssa-pre.c (create_expression_by_pieces): Fix up last argument
33319 2013-02-18 Aldy Hernandez <aldyh@redhat.com>
33320 Jakub Jelinek <jakub@redhat.com>
33323 * genopinit.c (raw_optab_handler): Use this_fn_optabs.
33324 (swap_optab_enable): Same.
33325 (init_all_optabs): Use argument instead of global.
33326 * tree.h (struct tree_optimization_option): New field target_optabs.
33327 * expr.h (init_all_optabs): Add argument to prototype.
33328 (TREE_OPTIMIZATION_OPTABS): New.
33329 (save_optabs_if_changed): Protoize.
33330 * optabs.h: Declare this_fn_optabs.
33331 * optabs.c (save_optabs_if_changed): New.
33332 Declare this_fn_optabs.
33333 (init_optabs): Add argument to init_all_optabs() call.
33334 * function.c (invoke_set_current_function_hook): Handle per
33336 * function.h (struct function): New field optabs.
33337 * config/mips/mips.c (mips_set_mips16_mode): Handle when
33338 optimization_current_node has changed.
33339 * target-globals.h (save_target_globals_default_opts): Protoize.
33340 * target-globals.c (save_target_globals_default_opts): New.
33342 2013-02-18 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
33345 * config/pa/pa.c (pa_conditional_register_usage): On HP-UX, mark
33346 registers %fr12 and %fr12R as call used.
33349 * config/pa/predicates.md (base14_operand): Except for BLKmode, QImode
33350 and HImode, require all displacements to be an integer multiple of
33352 * config/pa/pa.c (pa_legitimate_address_p): For REG+BASE addresses,
33353 only allow QImode and HImode when reload is in progress and strict is
33354 true. Likewise for symbolic addresses. Use base14_operand to check
33355 displacements in REG+BASE addresses.
33357 2013-02-18 Richard Biener <rguenther@suse.de>
33359 PR tree-optimization/56366
33360 * tree-vect-loop.c (get_initial_def_for_induction): Properly
33361 handle sign-conversion of outer-loop initial induction value.
33363 2013-02-18 Richard Biener <rguenther@suse.de>
33365 PR middle-end/56349
33366 * cfghooks.c (merge_blocks): If we merge a latch into another
33367 block adjust references to it.
33368 * cfgloop.c (flow_loops_find): Reset latch before recomputing it.
33369 (verify_loop_structure): Verify that a recorded latch is in fact
33372 2013-02-18 Richard Biener <rguenther@suse.de>
33374 PR tree-optimization/56321
33375 * tree-ssa-reassoc.c (propagate_op_to_single_use): Properly
33376 order SSA name release and virtual operand unlinking.
33378 2013-02-17 Edgar E. Iglesias <edgar.iglesias@gmail.com>
33380 * config/microblaze/microblaze.md (save_stack_block): Define.
33381 (restore_stack_block): Likewise.
33383 2013-02-16 Edgar E. Iglesias <edgar.iglesias@gmail.com>
33385 * config/microblaze/linux.h (TARGET_SUPPORTS_PIC): Define as 1.
33386 * config/microblaze/microblaze.h (TARGET_SUPPORTS_PIC): Define as 1.
33387 * config/microblaze/microblaze.c (microblaze_option_override):
33388 Bail out early for PIC modes when target does not support PIC.
33390 2013-02-16 Edgar E. Iglesias <edgar.iglesias@gmail.com>
33392 * config/microblaze/microblaze.c (microblaze_asm_trampoline_template):
33393 Replace with a microblaze version.
33394 (microblaze_trampoline_init): Adapt for microblaze.
33395 * config/microblaze/microblaze.h (TRAMPOLINE_SIZE): Adapt for
33398 2013-02-16 Jakub Jelinek <jakub@redhat.com>
33399 Dodji Seketeli <dodji@redhat.com>
33402 * asan.c (get_mem_refs_of_builtin_call): White space and style cleanup.
33403 (instrument_mem_region_access): Do not forget to always put
33404 instrumentation of the of 'base' and 'base + len' in a "if (len !=
33405 0) statement, even for cases where either 'base' or 'base + len'
33406 are not instrumented -- because they have been previously
33407 instrumented. Simplify the logic by putting all the statements
33408 instrument 'base + len' inside a sequence, and then insert that
33409 sequence right before the current insertion point. Then, to
33410 instrument 'base + len', just get an iterator on that statement.
33411 And do not forget to update the pointer to iterator the function
33412 received as argument.
33414 2013-02-15 Vladimir Makarov <vmakarov@redhat.com>
33416 PR rtl-optimization/56348
33417 * lra-assigns.c (reload_pseudo_compare_func): Prefer bigger pseudos.
33419 2013-02-15 Steven Bosscher <steven@gcc.gnu.org>
33421 * graph.c (start_graph_dump): Print dumpfile base as digraph label.
33422 (clean_graph_dump_file): Pass base to start_graph_dump.
33424 2013-02-14 Richard Henderson <rth@redhat.com>
33427 * lower-subreg.c (simple_move): Check dest mode instead of src mode.
33429 2013-02-14 Steven Bosscher <steven@gcc.gnu.org>
33431 * collect2-aix.h: Define F_LOADONLY.
33433 2013-02-14 Richard Biener <rguenther@suse.de>
33436 * varasm.c (output_constant_def_1): Get the decl representing
33437 the constant as argument.
33438 (output_constant_def): Wrap output_constant_def_1.
33439 (make_decl_rtl): Use output_constant_def_1 with the decl
33440 representing the constant.
33441 (build_constant_desc): Optionally re-use a decl already
33442 representing the constant.
33443 (tree_output_constant_def): Adjust.
33445 2013-02-14 Dodji Seketeli <dodji@redhat.com>
33448 * asan.c (instrument_builtin_call): Really put the length of the
33449 second source argument into src1_len.
33451 2013-02-13 Jakub Jelinek <jakub@redhat.com>
33453 * asan.c (create_cond_insert_point): Add create_then_fallthru_edge
33454 argument. If it is false, don't create edge from then_bb to
33456 (insert_if_then_before_iter): Pass true to it.
33457 (build_check_stmt): Pass false to it.
33458 (transform_statements): Flush hash table only on extended basic
33459 block boundaries, rather than at the beginning of every bb.
33460 Don't flush hash table on nonfreeing_call_p calls.
33461 * tree-flow.h (nonfreeing_call_p): New prototype.
33462 * tree-ssa-phiopt.c (nonfreeing_call_p): No longer static.
33464 2013-02-13 David S. Miller <davem@davemloft.net>
33466 * expmed.c (expand_shift_1): Only strip scalar integer subregs.
33468 2013-02-13 Vladimir Makarov <vmakarov@redhat.com>
33471 * ira.c (max_regno_before_ira): Move from ...
33473 (fix_reg_equiv_init): Use max_regno_before_ira instead of
33476 2013-02-13 Jakub Jelinek <jakub@redhat.com>
33478 * config/i386/i386.c (ix86_asan_shadow_offset): Revert last change.
33480 2013-02-13 Richard Biener <rguenther@suse.de>
33483 * gimple-streamer-out.c (output_gimple_stmt): Undo wrapping
33484 globals in MEM_REFs.
33486 2013-02-13 Richard Biener <rguenther@suse.de>
33488 * loop-init.c (loop_optimizer_init): Clear loop state when
33489 re-initializing preserved loops.
33490 * loop-unswitch.c (unswitch_single_loop): Return whether
33491 we unswitched the loop. Do not verify loop state here.
33492 (unswitch_loops): When we unswitched a loop discover new loops.
33494 2013-02-13 Kostya Serebryany <kcc@google.com>
33496 * config/i386/i386.c: Use 0x7fff8000 as asan_shadow_offset
33498 * sanitizer.def: Rename __asan_init to __asan_init_v1.
33500 2013-02-12 Dodji Seketeli <dodji@redhat.com>
33502 Avoid instrumenting duplicated memory access in the same basic block
33503 * Makefile.in (asan.o): Add new dependency on hash-table.h
33504 * asan.c (struct asan_mem_ref, struct mem_ref_hasher): New types.
33505 (asan_mem_ref_init, asan_mem_ref_get_end, get_mem_ref_hash_table)
33506 (has_stmt_been_instrumented_p, empty_mem_ref_hash_table)
33507 (free_mem_ref_resources, has_mem_ref_been_instrumented)
33508 (has_stmt_been_instrumented_p, update_mem_ref_hash_table)
33509 (get_mem_ref_of_assignment): New functions.
33510 (get_mem_refs_of_builtin_call): Extract from
33511 instrument_builtin_call and tweak a little bit to make it fit with
33513 (instrument_builtin_call): Use the new
33514 get_mem_refs_of_builtin_call. Use gimple_call_builtin_p instead
33515 of is_gimple_builtin_call.
33516 (instrument_derefs, instrument_mem_region_access): Insert the
33517 instrumented memory reference into the hash table.
33518 (maybe_instrument_assignment): Renamed instrument_assignment into
33519 this, and change it to advance the iterator when instrumentation
33520 actually happened and return true in that case. This makes it
33521 homogeneous with maybe_instrument_assignment, and thus give a
33522 chance to callers to be more 'regular'.
33523 (transform_statements): Clear the memory reference hash table
33524 whenever we enter a new BB, when we cross a function call, or when
33525 we are done transforming statements. Use
33526 maybe_instrument_assignment instead of instrumentation. No more
33527 need to special case maybe_instrument_assignment and advance the
33528 iterator after calling it; it's now handled just like
33529 maybe_instrument_call. Update comment.
33531 2013-02-13 Richard Biener <rguenther@suse.de>
33533 * config/mn10300/mn10300.c (mn10300_scan_for_setlb_lcc):
33534 Fix loop discovery code.
33536 2013-02-12 Vladimir Makarov <vmakarov@redhat.com>
33538 PR inline-asm/56148
33539 * lra-constraints.c (process_alt_operands): Match early clobber
33540 operand with itself. Check conflicts with earlyclobber only if
33541 the operand is not reloaded. Prefer to reload conflicting operand
33542 if earlyclobber and matching operands are the same.
33544 2013-02-12 Richard Biener <rguenther@suse.de>
33547 * lto-streamer-out.c (write_symbol): Do not output symbols
33548 for hard register variables.
33550 2013-02-12 Georg-Johann Lay <avr@gjlay.de>
33553 * config/avr/avr-dimode.md (umulsidi3, mulsidi3): New expanders.
33554 (umulsidi3_insn, mulsidi3_insn): New insns.
33556 2013-02-12 Christophe Lyon <christophe.lyon@linaro.org>
33558 * config/arm/arm-protos.h (struct cpu_vec_costs): New struct type.
33559 (struct tune_params): Add vec_costs field.
33560 * config/arm/arm.c (arm_builtin_vectorization_cost)
33561 (arm_add_stmt_cost): New functions.
33562 (TARGET_VECTORIZE_BUILTIN_VECTORIZATION_COST)
33563 (TARGET_VECTORIZE_ADD_STMT_COST): Define.
33564 (arm_default_vec_cost): New struct of type cpu_vec_costs.
33565 (arm_slowmul_tune, arm_fastmul_tune, arm_strongarm_tune)
33566 (arm_xscale_tune, arm_9e_tune, arm_v6t2_tune, arm_cortex_tune)
33567 (arm_cortex_a15_tune, arm_cortex_a5_tune, arm_cortex_a9_tune)
33568 (arm_v6m_tune, arm_fa726te_tune): Define new vec_costs field.
33570 2013-02-12 Richard Biener <rguenther@suse.de>
33573 * gimple-streamer-in.c (input_gimple_stmt): Strip MEM_REFs off
33574 decls again if possible.
33576 2013-02-12 Richard Biener <rguenther@suse.de>
33578 PR middle-end/56288
33579 * tree-ssa.c (verify_ssa_name): Fix check, move
33580 SSA_NAME_IN_FREE_LIST check up.
33582 2013-02-12 Jakub Jelinek <jakub@redhat.com>
33583 Steven Bosscher <steven@gcc.gnu.org>
33585 PR rtl-optimization/56151
33586 * optabs.c (add_equal_note): Don't return 0 if target is a MEM,
33587 equal to op0 or op1, and last_insn pattern is CODE operation
33588 with MEM dest and one of the operands matches that MEM.
33590 2013-02-11 Sriraman Tallam <tmsriram@google.com>
33592 * doc/extend.texi: Document Function Multiversioning and "default"
33593 parameter string to target attribute.
33594 * config/i386/i386.c (get_builtin_code_for_version): Return 0 if
33595 target attribute parameter is "default".
33596 (ix86_compare_version_priority): Remove checks for target attribute.
33597 (ix86_mangle_function_version_assembler_name): Change error to sorry.
33598 Remove check for target attribute equal to NULL. Add assert.
33599 (ix86_generate_version_dispatcher_body): Change error to sorry.
33601 2013-02-11 Iain Sandoe <iain@codesourcery.com>
33602 Jack Howarth <howarth@bromo.med.uc.edu>
33603 Patrick Marlier <patrick.marlier@gmail.com>
33606 * config/darwin.h: Replace ENDFILE_SPEC with TM_DESTRUCTOR and
33607 define ENDFILE_SPEC as TM_DESTRUCTOR.
33608 * config/i386/darwin.h (ENDFILE_SPEC): Use TM_DESTRUCTOR.
33610 2013-02-11 Alexander Potapenko <glider@google.com>
33611 Jack Howarth <howarth@bromo.med.uc.edu>
33612 Jakub Jelinek <jakub@redhat.com>
33615 * config/darwin.c (cdtor_record): Rename ctor_record.
33616 (sort_cdtor_records): Rename sort_ctor_records.
33617 (finalize_dtors): New routine to sort destructors by
33618 priority before use in assemble_integer.
33619 (machopic_asm_out_destructor): Use finalize_dtors if needed.
33621 2013-02-11 Uros Bizjak <ubizjak@gmail.com>
33623 PR rtl-optimization/56275
33624 * simplify-rtx.c (avoid_constant_pool_reference): Check that
33625 offset is non-negative and less than cmode size before
33626 calling simplify_subreg.
33628 2013-02-11 Richard Biener <rguenther@suse.de>
33630 PR tree-optimization/56264
33631 * cfgloop.h (fix_loop_structure): Adjust prototype.
33632 * loop-init.c (fix_loop_structure): Return the number of
33633 newly discovered loops.
33634 * tree-cfgcleanup.c (repair_loop_structures): When new loops
33635 are discovered, do a full loop-closed SSA rewrite.
33637 2013-02-11 Richard Biener <rguenther@suse.de>
33639 PR tree-optimization/56273
33640 * tree-vrp.c (simplify_cond_using_ranges): Disable for the
33642 (check_array_ref): Fix missing newline in dumps.
33643 (search_for_addr_array): Likewise.
33645 2013-02-09 David Edelsohn <dje.gcc@gmail.com>
33647 * config/rs6000/aix61.h (OS_MISSING_ALTIVEC): Undefine.
33649 2013-02-09 Jakub Jelinek <jakub@redhat.com>
33652 * config/rs6000/rs6000.h (ASSEMBLER_DIALECT): Define.
33654 2013-02-08 Vladimir Makarov <vmakarov@redhat.com>
33656 PR rtl-optimization/56246
33657 * lra-constraints.c (simplify_operand_subreg): Try to reuse
33659 * lra.c (lra): Clear lra_optional_reload_pseudos only when all
33660 constraints are satisfied.
33662 2013-02-08 Jeff Law <law@redhat.com>
33665 * emit-rtl.c (reg_is_parm_p): New function.
33666 * regs.h (reg_is_parm_p): New prototype.
33667 * ira-conflicts.c (ira_build_conflicts): Allow parameters in
33668 callee-clobbered registers.
33670 2013-02-08 Michael Meissner <meissner@linux.vnet.ibm.com>
33673 * config/rs6000/rs6000.c (rs6000_builtin_vectorized_libmass):
33674 If there is no implicit builtin declaration, just return NULL.
33676 2013-02-08 Uros Bizjak <ubizjak@gmail.com>
33678 * config/i386/sse.md (FMAMODEM): New mode iterator.
33679 (fma<mode>4, fms<mode>4, fnma<mode>4, fnms<mode>4): Use FMAMODEM
33680 mode iterator. Do not use TARGET_SSE_MATH in insn constraint.
33682 2013-02-08 Uros Bizjak <ubizjak@gmail.com>
33684 * config/i386/gnu-user.h (TARGET_CAN_SPLIT_STACK): Define only
33685 when HAVE_GAS_CFI_PERSONALITY_DIRECTIVE is set.
33686 * config/i386/gnu-user64.h (TARGET_CAN_SPLIT_STACK): Ditto.
33688 2013-02-08 Edgar E. Iglesias <edgar.iglesias@gmail.com>
33690 * config.gcc (microblaze*-linux*): Add TARGET_BIG_ENDIAN_DEFAULT.
33691 (microblaze*-*-elf): Likewise.
33692 * config/microblaze/linux.h: Add -mbig-endian / -mlittle-endian to
33694 * config/microblaze/microblaze-c.c: Add builtin defines for
33695 _LITTLE_ENDIAN and _BIG_ENDIAN.
33696 * config/microblaze/microblaze.h: Add TARGET_ENDIAN_DEFAULT and
33697 add to TARGET_DEFAULT flags.
33698 Expand ASM_SPEC and LINK_SPEC.
33699 Update BYTES_BIG_ENDIAN and WORDS_BIG_ENDIAN.
33700 * config/microblaze/microblaze.md: Update extendsidi2 and
33701 movdi_internal instructions to use low-order / high-order reg
33703 * config/microblaze/microblaze.opt: Add mbig-endian and mlittle-endian
33704 options and inversemask / mask of LITTLE_ENDIAN.
33705 * config/microblaze/t-microblaze: Expand multilib options to
33706 include mlittle-endian (le) and update exceptions patterns.
33708 2013-02-08 Jakub Jelinek <jakub@redhat.com>
33710 PR rtl-optimization/56195
33711 * lra-constraints.c (get_reload_reg): Don't reuse regs
33712 if they have smaller mode than requested, if they have
33713 wider mode than requested, try to return a SUBREG.
33715 PR tree-optimization/56250
33716 * fold-const.c (extract_muldiv_1) <case NEGATE_EXPR>: Don't optimize
33717 if type is unsigned and code isn't MULT_EXPR.
33719 2013-02-08 Georg-Johann Lay <avr@gjlay.de>
33721 PR tree-optimization/56064
33722 * fixed-value.c (fixed_from_double_int): Sign/zero extend payload
33723 bits according to mode.
33724 * fixed-value.h (fixed_from_double_int)
33725 (const_fixed_from_double_int): Adjust comments.
33727 2013-02-08 Richard Biener <rguenther@suse.de>
33730 * lto-streamer.h (struct data_in): Remove current_file, current_line
33731 and current_col members.
33732 * lto-streamer-out.c (lto_output_location): Stream changed bits
33733 en-block for efficiency.
33734 * lto-streamer-in.c (clear_line_info): Remove.
33735 (lto_input_location): Cache current file, line and column
33736 globally via local statics. Read changed bits en-block.
33737 (input_function): Do not call clear_line_info.
33738 (lto_read_body): Likewise.
33739 (lto_input_toplevel_asms): Likewise.
33741 2013-02-08 Michael Matz <matz@suse.de>
33743 PR tree-optimization/52448
33744 * tree-ssa-phiopt.c (struct name_to_bb): Add phase member.
33745 (nt_call_phase): New static.
33746 (add_or_mark_expr): Only mark accesses with newer phase than any
33748 (nonfreeing_call_p): New.
33749 (nt_init_block): Update nt_call_phase, mark blocks as visited.
33750 (nt_fini_block): Keep blocks marked as visited.
33751 (get_non_trapping): Initialize nt_call_phase, and reset aux pointer.
33753 2013-02-08 Richard Biener <rguenther@suse.de>
33755 * ira.c (ira): Free broken dominator information.
33757 2013-02-08 Uros Bizjak <ubizjak@gmail.com>
33759 * config/i386/i386.c (ix86_spill_class): Use INTEGER_CLASS_P macro.
33761 2013-02-08 Marek Polacek <polacek@redhat.com>
33763 * cfgloop.c (verify_loop_structure): Add more checking of headers.
33765 2013-02-08 Richard Biener <rguenther@suse.de>
33767 PR middle-end/56181
33768 * cfgloop.h (flow_loops_find): Adjust.
33769 (bb_loop_header_p): Declare.
33770 * cfgloop.c (bb_loop_header_p): New function split out from ...
33771 (flow_loops_find): ... here. Adjust function signature,
33772 support incremental loop structure update.
33773 (verify_loop_structure): Cleanup. Verify a loop is a loop.
33774 * cfgloopmanip.c (fix_loop_structure): Move ...
33775 * loop-init.c (fix_loop_structure): ... here.
33776 (apply_loop_flags): Split out from ...
33777 (loop_optimizer_init): ... here.
33778 (fix_loop_structure): Use apply_loop_flags. Use flow_loops_find
33779 in incremental mode, only remove dead loops here.
33781 2013-02-08 Georg-Johann Lay <avr@gjlay.de>
33784 * config/avr/avr.md (unspec) <UNSPEC_ROUND>: Add.
33785 * config/avr/avr-fixed.md (ALL4QA, ALL124QA): New mode iterators.
33786 (round<mode>3, round<mode>3_const): New expanders for fixed-mode.
33787 (*round<mode>3.libgcc): New insns for fixed-modes.
33788 * config/avr/builtins.def (ABSxx): Use a non-NULL LIBNAME.
33789 (ROUNDxx, COUNTLSxx, BITSxx, xxBITS): New DEF_BUILTINs.
33790 (ROUNDFX, COUNTLSFX, ABSFX): New DEF_BUILTINs.
33791 * config/avr/stdfix.h (absFX, bitsFX, FXbits): Remove inline
33792 implementations. Define to __builtin_avr_absFX,
33793 __builtin_avr_bitsFX, __builtin_avr_FXbits, respectively.
33794 (roundFX, countlsFX): Define to __builtin_avr_roundFX,
33795 __builtin_avr_countlsFX, respectively.
33796 * config/avr/avr-c.c (target.h): Include it.
33797 (enum avr_builtin_id): New enum.
33798 (avr_resolve_overloaded_builtin): New static function.
33799 (avr_register_target_pragmas): Use it to set
33800 targetm.resolve_overloaded_builtin.
33801 * config/avr/avr.c (avr_init_builtins): Supply myriads of local
33802 tree nodes used by DEF_BUILTIN.
33803 (avr_expand_builtin) <AVR_BUILTIN_ROUNDxx>: Sanity-check them.
33804 (avr_fold_builtin) <AVR_BUILTIN_BITSxx>: Fold to VIEW_COVERT_EXPR.
33805 <AVR_BUILTIN_xxBITS>: Same.
33807 2013-02-08 Richard Biener <rguenther@suse.de>
33809 * cfgloop.c (verify_loop_structure): Properly handle
33810 a loop exiting to another loop header.
33811 * ira-int.h (ira_loops): Remove.
33812 * ira.c (ira_loops): Remove.
33813 (ira): Use loop_optimizer_init and loop_optimizer_finalize.
33814 (do_reload): Use loop_optimizer_finalize.
33815 * ira-build.c (create_loop_tree_nodes): Use get_loops and
33816 number_of_loops to access the loop tree.
33817 (more_one_region_p): Likewise.
33818 (finish_loop_tree_nodes): Likewise.
33819 (rebuild_regno_allocno_maps): Likewise.
33820 (mark_loops_for_removal): Likewise.
33821 (mark_all_loops_for_removal): Likewise.
33822 (remove_unnecessary_regions): Likewise.
33823 (ira_build): Likewise.
33824 * ira-emit.c (setup_entered_from_non_parent_p): Likewise.
33826 2013-02-08 Richard Biener <rguenther@suse.de>
33828 * Makefile.in (tree-tailcall.o): Add $(CFGLOOP_H) dependency.
33829 * ipa-pure-const.c (analyze_function): Avoid calling
33830 mark_irreducible_loops twice.
33831 * tree-tailcall.c (tree_optimize_tail_calls_1): Mark loops for fixup.
33833 2013-02-07 David S. Miller <davem@davemloft.net>
33835 * dwarf2out.c (based_loc_descr): Perform leaf register remapping
33837 * var-tracking.c (vt_add_function_parameter): Test the presence of
33838 HAVE_window_save properly and do not remap argument registers when
33839 we have a leaf function.
33841 2013-02-07 Uros Bizjak <ubizjak@gmail.com>
33844 * ggc-page.c (ggc_print_statistics): Use HOST_LONG_LONG_FORMAT
33846 * config/i386/i386.c (ix86_print_operand): Ditto.
33848 2013-02-07 Vladimir Makarov <vmakarov@redhat.com>
33850 * lra-constraints.c (process_alt_operands): Fix recently added comment.
33852 2013-02-07 Vladimir Makarov <vmakarov@redhat.com>
33854 PR rtl-optimization/56225
33855 * lra-constraints.c (process_alt_operands): Check that reload hard
33856 reg can hold value for strict_low_part.
33858 2013-02-07 Jakub Jelinek <jakub@redhat.com>
33861 * dwarf2out.c (dwarf2_debug_hooks): Set end_function hook to
33862 dwarf2out_end_function.
33863 (in_first_function_p, maybe_at_text_label_p,
33864 first_loclabel_num_not_at_text_label): New variables.
33865 (dwarf2out_var_location): In the first function find out
33866 lowest loclabel_num N where .LVLN is known not to be equal to .Ltext0.
33867 (find_empty_loc_ranges_at_text_label, dwarf2out_end_function): New
33870 2013-02-07 Eric Botcazou <ebotcazou@adacore.com>
33872 PR rtl-optimization/56178
33873 * cse.c (cse_insn): Do not create a REG_EQUAL note if the source is a
33874 SUBREG of a register. Tidy up related block of code.
33875 * fwprop.c (forward_propagate_and_simplify): Do not create a REG_EQUAL
33876 note if the source is a register or a SUBREG of a register.
33878 2013-02-07 Jakub Jelinek <jakub@redhat.com>
33881 * config/rs6000/rs6000.md (ptrm): New mode attr.
33882 (call_indirect_aix<ptrsize>, call_indirect_aix<ptrsize>_nor11,
33883 call_value_indirect_aix<pttrsize>,
33884 call_value_indirect_aix<pttrsize>_nor11): Use <ptrm> instead of
33887 2013-02-07 Michael Haubenwallner <michael.haubenwallner@salomon.at>
33889 * collect2.c (main): Set aix64_flag for -G and -bsvr4 too, disable
33890 if -bnortl. Convert to strcmp and strncmp.
33892 2013-02-07 Alan Modra <amodra@gmail.com>
33895 * config/rs6000/rs6000.c (mem_operand_gpr): Check that LO_SUM
33896 addresses won't wrap when offsetting.
33897 (rs6000_secondary_reload): Provide secondary reloads needed for
33898 wrapping LO_SUM addresses.
33900 2013-02-06 Thomas Schwinge <thomas@codesourcery.com>
33902 * config/gnu.h (GNU_USER_TARGET_OS_CPP_BUILTINS): Never define
33903 MACH, just __MACH__.
33905 2013-02-06 Richard Biener <rguenther@suse.de>
33907 * tracer.c (tracer): Mark loops with LOOPS_NEED_FIXUP
33908 instead of calling fix_loop_structure.
33910 2013-02-06 Jakub Jelinek <jakub@redhat.com>
33912 PR middle-end/56217
33913 * omp-low.c (use_pointer_for_field): Return false if
33914 lower_send_shared_vars doesn't generate any copy-out code.
33916 2013-02-06 Tom de Vries <tom@codesourcery.com>
33918 PR rtl-optimization/56131
33919 * cfgrtl.c (delete_insn): Use NOTE_BASIC_BLOCK instead of BLOCK_FOR_INSN
33920 to get the bb of a NOTE_INSN_BASIC_BLOCK. Handle the case that the bb
33921 of the label is NULL. Add comment.
33923 2013-02-05 Jakub Jelinek <jakub@redhat.com>
33925 * tree.h (struct tree_decl_with_vis): Remove thread_local field.
33928 * config/gnu-user.h (LIBTSAN_EARLY_SPEC): Define.
33929 (STATIC_LIBTSAN_LIBS): Likewise.
33930 * gcc.c (ADD_STATIC_LIBTSAN_LIBS, LIBTSAN_EARLY_SPEC): Define.
33931 (LIBTSAN_SPEC): Add ADD_STATIC_LIBTSAN_LIBS, if LIBTSAN_EARLY_SPEC
33932 is defined, don't add anything else beyond that.
33933 (SANITIZER_EARLY_SPEC, SANITIZER_SPEC): Define.
33934 (LINK_COMMAND_SPEC): Use them.
33936 PR tree-optimization/56205
33937 * tree-stdarg.c (check_all_va_list_escapes): Return true if
33938 there are any PHI nodes that set non-va_list_escape_vars SSA_NAME
33939 and some va_list_escape_vars SSA_NAME appears in some PHI argument.
33941 2013-02-05 Richard Biener <rguenther@suse.de>
33943 PR tree-optimization/53342
33944 PR tree-optimization/53185
33945 * tree-vectorizer.h (vect_check_strided_load): Remove.
33946 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment): Do
33947 not disallow peeling for vectorized strided loads.
33948 (vect_check_strided_load): Make static and simplify.
33949 (vect_analyze_data_refs): Adjust.
33950 * tree-vect-stmts.c (vectorizable_load): Handle peeled loops
33951 correctly when vectorizing strided loads.
33953 2013-02-05 Richard Biener <rguenther@suse.de>
33955 * doc/install.texi: Refer to ISL, not PPL.
33957 2013-02-05 Jan Hubicka <jh@suse.cz>
33959 PR tree-optimization/55789
33960 * params.def (PARAM_EARLY_INLINER_MAX_ITERATIONS): Drop to 1.
33962 2013-02-05 Jan Hubicka <jh@suse.cz>
33964 PR tree-optimization/55789
33965 * cgraphclones.c (cgraph_remove_node_and_inline_clones): Remove
33966 the dead call anyway.
33968 2013-02-05 Eric Botcazou <ebotcazou@adacore.com>
33971 * config/gnu-user.h (LIBASAN_EARLY_SPEC): Add missing guard.
33973 2013-02-04 Alexander Potapenko <glider@google.com>
33974 Jack Howarth <howarth@bromo.med.uc.edu>
33975 Jakub Jelinek <jakub@redhat.com>
33978 * config/darwin.c (sort_ctor_records): Stabilized qsort
33979 on constructor priority by using original position.
33980 (finalize_ctors): New routine to sort constructors by
33981 priority before use in assemble_integer.
33982 (machopic_asm_out_constructor): Use finalize_ctors if needed.
33984 2013-02-04 Jakub Jelinek <jakub@redhat.com>
33987 * config/i386/winnt.c (i386_pe_assemble_visibility): Don't warn
33988 about visibility on artificial decls.
33989 * config/sol2.c (solaris_assemble_visibility): Likewise.
33991 2013-02-04 Kai Tietz <ktietz@redhat.com>
33994 * config/i386/i386.c (function_value_ms_64): Add additional valtype
33995 argument and improve checking of return-argument types for 16-byte
33997 (ix86_function_value_1): Add additional valtype argument on call
33998 of function_value_64.
33999 (return_in_memory_ms_64): Sync 16-byte sized mode handling with
34000 handling infunction_value_64 function.
34002 2013-02-04 Matthew Gretton-Dann <matthew.gretton-dann@linaro.org>
34004 * reload.c (subst_reloads): Fix DEBUG_RELOAD build issue.
34006 2013-02-04 Richard Biener <rguenther@suse.de>
34008 PR tree-optimization/56188
34009 * tree-ssa-structalias.c (label_visit): Consider case with
34010 initially non-empty points-to set.
34011 (perform_var_substitution): Dump node mapping and clean up.
34013 2013-02-04 Richard Guenther <rguenther@suse.de>
34016 * lto-symtab.c (lto_symtab_merge_decls_1): Make non-builtin
34017 node prevail as last resort.
34018 (lto_symtab_merge_decls): Remove guard on LTRANS here.
34019 (lto_symtab_prevailing_decl): Builtins are their own prevailing decl.
34021 2013-02-04 Richard Biener <rguenther@suse.de>
34023 PR tree-optimization/56113
34024 * tree-ssa-structalias.c (equiv_class_lookup, equiv_class_add):
34026 (equiv_class_lookup_or_add): ... this.
34027 (label_visit): Adjust and fix error in previous patch.
34028 (perform_var_substitution): Adjust.
34030 2013-02-03 Oleg Endo <olegendo@gcc.gnu.org>
34032 * config/sh/divtab.c: Fix formatting and comments throughout the file.
34033 * config/sh/sh4-300.md: Likewise.
34034 * config/sh/sh4a.md: Likewise.
34035 * config/sh/constraints.md: Likewise.
34036 * config/sh/sh.md: Likewise.
34037 * config/sh/netbsd-elf.h: Likewise.
34038 * config/sh/predicates.md: Likewise.
34039 * config/sh/sh-protos.h: Likewise.
34040 * config/sh/ushmedia.h: Likewise.
34041 * config/sh/linux.h: Likewise.
34042 * config/sh/sh.c: Likewise.
34043 * config/sh/superh.h: Likewise.
34044 * config/sh/elf.h: Likewise.
34045 * config/sh/sh4.md: Likewise.
34046 * config/sh/sh.h: Likewise.
34048 2013-02-03 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
34050 * config/pa/constraints.md: Adjust unused letters. Change "T"
34051 constraint to match_test floating_point_store_memory_operand().
34052 * config/pa/predicates.md (reg_plus_base_memory_operand): New.
34053 (base14_operand): New.
34054 (floating_point_store_memory_operand): New.
34055 (integer_store_memory_operand): Revise to use base14_operand and
34056 reg_plus_base_memory_operand.
34057 (move_dest_operand): Allow symbolic_memory_operands.
34058 (symbolic_memory_operand): Check for LO_SOM.
34059 (symbolic_operand): Change default case to break.
34060 * config/pa/pa.md: Remove unamed DFmode and SFmode patterns to force
34061 CONST_DOUBLE values to be reloaded by putting them into memory when
34062 the destination is a floating point register.
34063 (movdf): Remove code to handle CONST_DOUBLE.
34065 (reload_indf_r1): New.
34066 (reload_insf_r1): New.
34067 Consistently use "Q" and "T" constraints with integer and floating
34068 point move instructions, respectively.
34069 (movdi): Remove FAIL.
34070 Change predicate for source operand unamed DImode move from
34071 general_operand to move_src_operand.
34072 (umulsidi3): Change predicate for destination operand to
34074 Likewise for similar unamed patterns.
34075 * config/pa/pa-protos.h (pa_legitimize_reload_address): Declare.
34076 * config/pa/pa.c (pa_symbolic_expression_p): Remove extra parenthesis.
34077 (hppa_legitimize_address): Simplify mask calculation.
34078 (pa_emit_move_sequence): Revised handling of secondary reloads from
34079 REG+D addresses for floating point loads and stores. Directly handle
34080 loading CONST0_RTX (mode) to a floating point register.
34081 (pa_secondary_reload): Handle reloading DF and SFmode constant values
34082 to floating point registers. Don't restrict secondary reloads to
34083 floating point registers to integer modes. Revise some comments and
34085 (TARGET_LEGITIMATE_ADDRESS_P): Define.
34086 (pa_legitimate_address_p): New.
34087 (pa_legitimize_reload_address): New.
34088 * config/pa/pa.h (STRICT_REG_OK_FOR_INDEX_P): New.
34089 (STRICT_REG_OK_FOR_BASE_P): New.
34090 (GO_IF_LEGITIMATE_ADDRESS): Delete. Update some related comments.
34091 (LEGITIMIZE_RELOAD_ADDRESS): Revise to use pa_legitimize_reload_address.
34093 2013-02-03 David Edelsohn <dje.gcc@gmail.com>
34094 Andrew Dixie <andrewd@gentrack.com>
34096 * collect2.c (GCC_CHECK_HDR): Do not scan objects with F_LOADONLY
34099 2013-02-03 Richard Sandiford <rdsandiford@googlemail.com>
34101 * expmed.c (extract_bit_field_1): Pass the full width of the
34102 structure to get_best_reg_extraction_insn.
34104 2013-02-01 David Edelsohn <dje.gcc@gmail.com>
34107 * configure.ac (use_cxa_atexit): Add AIX.
34108 * configure: Regenerate.
34110 * config/rs6000/aix61.h (STARTFILE_SPEC): Add crtcxa.o.
34112 2013-02-01 Jakub Jelinek <jakub@redhat.com>
34115 * final.c (need_profile_function): New variable.
34116 (final_start_function): Drop ATTRIBUTE_UNUSED from first argument.
34117 If first of NOTE_INSN_BASIC_BLOCK or NOTE_INSN_FUNCTION_BEG
34118 is only preceeded by NOTE_INSN_VAR_LOCATION or NOTE_INSN_DELETED
34119 notes, targetm.asm_out.function_prologue doesn't emit anything,
34120 HAVE_prologue and profiler should be emitted before prologue,
34121 set need_profile_function instead of emitting it.
34122 (final_scan_insn): If need_profile_function, emit
34123 profile_function on the first NOTE_INSN_BASIC_BLOCK or
34124 NOTE_INSN_FUNCTION_BEG note.
34126 2013-02-01 Richard Henderson <rth@redhat.com>
34128 * config/rs6000/rs6000.md (smulditi3): New.
34131 * config/alpha/alpha.md (umulditi3): New.
34133 2013-02-01 David Edelsohn <dje.gcc@gmail.com>
34135 * config/rs6000/xcoff.h (ASM_OUTPUT_ALIGNED_COMMON): Use floor_log2.
34136 (ASM_OUTPUT_ALIGNED_LOCAL): New.
34138 2013-02-01 Richard Biener <rguenther@suse.de>
34140 PR tree-optimization/56113
34141 * tree-ssa-structalias.c (label_visit): Reduce work for
34142 single-predecessor nodes.
34144 2013-02-01 Eric Botcazou <ebotcazou@adacore.com>
34146 * fold-const.c (make_range_step) <TRUTH_NOT_EXPR>: Bail out if the
34147 range isn't testing for zero.
34149 2013-01-31 Steven Bosscher <steven@gcc.gnu.org>
34151 PR middle-end/56113
34152 * fwprop.c (fwprop_init): Set up loops without CFG modifications.
34154 2013-01-31 Hiroyuki Ono <hiroyuki.ono.jc@renesas.com>
34155 Nick Clifton <nickc@redhat.com>
34157 * config/v850/constraints.md (Q): Define as a memory constraint.
34158 * config/v850/predicates.md (label_ref_operand): New predicate.
34159 (e3v5_shift_operand): New predicate.
34160 (ior_operator): New predicate.
34161 * config/v850/t-v850: Add e3v5 multilib.
34162 * config/v850/v850-protos.h (v850_adjust_insn_length): Prototype.
34163 (v850_gen_movdi): Prototype.
34164 * config/v850/v850.c: Add support for e3v5 architecture.
34165 Rename all uses of TARGET_V850E || TARGET_V850E2_ALL to
34167 (construct_save_jarl): Add e3v5 long JARL support.
34168 (v850_adjust_insn_length): New function. Adjust length of call
34169 insns when using e3v5 instructions.
34170 (v850_gen_movdi): New function: Generate instructions to move a
34172 * config/v850/v850.h (TARGET_CPU_v850e3v5): Define.
34173 (CPP_SPEC): Define __v850e3v5__ as appropriate.
34174 (TARGET_USE_FPU): Enable for e3v5.
34175 (CONST_OK_FOR_W): New macro.
34176 (ADJUST_INSN_LENGTH): Define.
34177 * config/v850/v850.md (UNSPEC_LOOP): Define.
34178 (attr cpu): Add v850e3v5.
34179 Rename all uses of TARGET_V850E2 to TARGET_V850E2V3_UP.
34180 (movdi): New pattern.
34181 (movdi_internal): New pattern.
34182 (cbranchsf4): Conditionalize on TARGET_USE_FPU.
34183 (cbranchdf4): Conditionalize on TARGET_USE_FPU.
34184 (cstoresf4): Likewise.
34185 (cstoredf4): Likewise.
34186 (insv): New pattern.
34187 (rotlso3_a): New pattern.
34188 (rotlsi3_b): New pattern
34189 (rotlsi3_v850e3v5): New pattern.
34190 (doloop_begin): New pattern.
34191 (fix_loop_counter): New pattern.
34192 (doloop_end): New pattern.
34193 (branch_normal): Add e3v5 long branch support.
34194 (branch_invert): Likewise.
34195 (branch_z_normal): Likewise.
34196 (branch_z_invert): Likewise.
34197 (branch_nz_normal): Likewise.
34198 (branch_nz_invert): Likewise.
34199 (call_internal_short): Add e3v5 register-indirect JARL support.
34200 (call_internal_long): Likewise.
34201 (call_value_internal_short): Likewise.
34202 (call_value_internal_long): Likewise.
34203 * config/v850/v850.opt (mv850e3v5, mv850e2v4): New options.
34204 (mloop): New option.
34205 * config.gcc: Add support for configuring v840e3v5 target.
34206 * doc/invoke.texi: Document new v850 specific command line options.
34208 2013-01-31 Paul Koning <ni1d@arrl.net>
34212 * dwarf2out.c (prune_unused_types_mark): Mark all of parent's
34213 children if parent is a class.
34214 (prune_unused_types_prune): Don't add DW_AT_declaration.
34216 2013-01-31 Richard Biener <rguenther@suse.de>
34218 PR tree-optimization/56157
34219 * tree-vect-slp.c (vect_get_slp_defs): More thoroughly try to
34220 match up operand with SLP child.
34222 2013-01-31 Jason Merrill <jason@redhat.com>
34225 * dwarf2out.c (gen_struct_or_union_type_die): Always schedule template
34226 parameters the first time.
34227 (gen_scheduled_generic_parms_dies): Check completeness here.
34229 2013-01-31 Richard Biener <rguenther@suse.de>
34231 PR middle-end/53073
34232 * common.opt (faggressive-loop-optimizations): New flag,
34233 enabled by default.
34234 * doc/invoke.texi (faggressive-loop-optimizations): Document.
34235 * tree-ssa-loop-niter.c (estimate_numbers_of_iterations_loop): Guard
34236 infer_loop_bounds_from_undefined by it.
34238 2013-01-31 Richard Biener <rguenther@suse.de>
34240 PR tree-optimization/56150
34241 * tree-ssa-loop-manip.c (find_uses_to_rename_stmt): Do not
34242 visit virtual operands.
34243 (find_uses_to_rename_bb): Likewise.
34245 2013-01-31 Richard Biener <rguenther@suse.de>
34247 PR tree-optimization/56150
34248 * tree-ssa-tail-merge.c (gimple_equal_p): Properly handle
34249 mixed store non-store stmts.
34251 2013-01-30 Jakub Jelinek <jakub@redhat.com>
34254 * gcc.c (LIBASAN_SPEC): Define just to ADD_STATIC_LIBASAN_LIBS if
34255 LIBASAN_EARLY_SPEC is defined.
34256 (LIBASAN_EARLY_SPEC): Define to empty string if not already defined.
34257 (LINK_COMMAND_SPEC): Add LIBASAN_EARLY_SPEC for -fsanitize=address,
34259 * config/gnu-user.h (LIBASAN_EARLY_SPEC): Define.
34262 * config/i386/i386.c (ix86_valid_target_attribute_inner_p): Diagnose
34263 invalid args instead of ICEing on it.
34264 (ix86_valid_target_attribute_tree): Return error_mark_node if
34265 ix86_valid_target_attribute_inner_p failed.
34266 (ix86_valid_target_attribute_p): Return false only if
34267 ix86_valid_target_attribute_tree returned error_mark_node. Allow
34268 target("default") attribute.
34269 (sorted_attr_string): Change argument from const char * to tree,
34270 merge in all target attribute arguments rather than just one.
34271 Formatting fix. Use XNEWVEC instead of xmalloc and XDELETEVEC
34272 instead of free. Avoid using strcat.
34273 (ix86_mangle_function_version_assembler_name): Mangle
34274 target("default") as if no target attribute is present. Adjust
34275 sorted_attr_string caller. Avoid leaking memory. Use XNEWVEC
34276 instead of xmalloc and XDELETEVEC instead of free.
34277 (ix86_function_versions): Don't return true if one of the decls
34278 doesn't have target attribute. If they don't and one of the decls
34279 is DECL_FUNCTION_VERSIONED, report an error. Adjust
34280 sorted_attr_string caller. Use XDELETEVEC instead of free.
34281 (ix86_supports_function_versions): Remove.
34282 (make_name): Fix up formatting.
34283 (make_dispatcher_decl): Remove resolver_name and its initialization.
34284 Avoid leaking memory.
34285 (is_function_default_version): Return true if there is
34286 target("default") attribute rather than no target attribute at all.
34287 (make_resolver_func): Avoid leaking memory.
34288 (ix86_generate_version_dispatcher_body): Likewise.
34289 (TARGET_OPTION_SUPPORTS_FUNCTION_VERSIONS): Remove.
34290 * target.def (supports_function_versions): Remove.
34291 * doc/tm.texi.in (SUPPORTS_FUNCTION_VERSIONS): Remove.
34292 * doc/tm.texi: Regenerated.
34294 2013-01-30 Vladimir Makarov <vmakarov@redhat.com>
34296 PR rtl-optimization/56144
34297 * lra-constraints.c (get_reload_reg): Don't reuse reload pseudo
34298 for values with side effects.
34300 2013-01-30 Richard Biener <rguenther@suse.de>
34302 * sparseset.h (sparseset_bit_p): Use gcc_checking_assert.
34303 (sparseset_pop): Likewise.
34304 * cfganal.c (compute_idf): Likewise. Increase work-stack size
34305 to be able to use quick_push in the worker loop.
34307 2013-01-30 Marek Polacek <polacek@redhat.com>
34309 * cfgcleanup.c (cleanup_cfg): Don't mark affected BBs.
34311 2013-01-30 Richard Biener <rguenther@suse.de>
34314 * lto-symtab.c (lto_symtab_merge_decls_1): Guard DECL_BUILT_IN check.
34316 2013-01-30 Georg-Johann Lay <avr@gjlay.de>
34318 PR tree-optimization/56064
34319 * fixed-value.c (fixed_from_double_int): New function.
34320 * fixed-value.h (fixed_from_double_int): New prototype.
34321 (const_fixed_from_double_int): New static inline function.
34322 * fold-const.c (native_interpret_fixed): New static function.
34323 (native_interpret_expr) <FIXED_POINT_TYPE>: Use it.
34324 (can_native_interpret_type_p) <FIXED_POINT_TYPE>: Return true.
34325 (native_encode_fixed): New static function.
34326 (native_encode_expr) <FIXED_CST>: Use it.
34327 (native_interpret_int): Move double_int worker code to...
34328 * double-int.c (double_int::from_buffer): ...this new static method.
34329 * double-int.h (double_int::from_buffer): Prototype it.
34331 2013-01-30 Richard Biener <rguenther@suse.de>
34333 * tree-ssa-structalias.c (final_solutions, final_solutions_obstack):
34334 New pointer-map and obstack.
34335 (init_alias_vars): Allocate pointer-map and obstack.
34336 (delete_points_to_sets): Free them.
34337 (find_what_var_points_to): Cache result.
34338 (find_what_p_points_to): Adjust for changed interface of
34339 find_what_var_points_to.
34340 (compute_points_to_sets): Likewise.
34341 (ipa_pta_execute): Likewise.
34343 2013-01-30 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
34345 * configure.ac (HAVE_AS_SPARC_NOBITS): New test.
34346 * configure: Regenerate.
34347 * config.in: Regenerate.
34348 * config/sparc/sparc.c (sparc_solaris_elf_asm_named_section): Emit
34349 #nobits/#progbits if supported.
34351 2013-01-29 Oleg Endo <olegendo@gcc.gnu.org>
34354 * config/sh/sh.md (bclr_m2a, bset_m2a, bst_m2a, bld_m2a, bldsign_m2a,
34355 bld_reg, *bld_regqi, band_m2a, bandreg_m2a, bor_m2a, borreg_m2a,
34356 bxor_m2a, bxorreg_m2a): Add satisfies_constraint_K03 condition.
34358 2013-01-29 Greta Yorsh <Greta.Yorsh@arm.com>
34360 * config/arm/cortex-a7.md (cortex_a7_neon, cortex_a7_all): Remove.
34361 (cortex_a7_idiv): Use cortex_a7_both instead of cortex_a7_all.
34363 2013-01-29 Greta Yorsh <Greta.Yorsh@arm.com>
34365 * config/arm/arm.c (cortexa7_younger): Return true for TYPE_CALL.
34366 * config/arm/cortex-a7.md (cortex_a7_call): Update required units.
34368 2013-01-29 Greta Yorsh <Greta.Yorsh@arm.com>
34370 * config/arm/arm-protos.h (arm_mac_accumulator_is_result): New
34372 * config/arm/arm.c (arm_mac_accumulator_is_result): New function.
34373 * config/arm/cortex-a7.md: New bypasses using
34374 arm_mac_accumulator_is_result.
34376 2013-01-29 Greta Yorsh <Greta.Yorsh@arm.com>
34378 * config/arm/cortex-a7.md (cortex_a7_neon_mul): New reservation.
34379 (cortex_a7_neon_mla): Likewise.
34380 (cortex_a7_fpfmad): New reservation.
34381 (cortex_a7_fpmacs): Use ffmas and update required units.
34382 (cortex_a7_fpmuld): Update required units and latency.
34383 (cortex_a7_fpmacd): Likewise.
34384 (cortex_a7_fdivs, cortex_a7_fdivd): Likewise.
34385 (cortex_a7_neon). Likewise.
34386 (bypass) Update participating units.
34388 2013-01-29 Greta Yorsh <Greta.Yorsh@arm.com>
34390 * config/arm/arm.md (type): Add ffmas and ffmad to "type" attribute.
34391 * config/arm/vfp.md (fma,fmsub,fnmsub,fnmadd): Change type
34393 * config/arm/vfp11.md (vfp_farith): Use ffmas.
34394 (vfp_fmul): Use ffmad.
34395 * config/arm/cortex-r4f.md (cortex_r4_fmacs): Use ffmas.
34396 (cortex_r4_fmacd): Use ffmad.
34397 * config/arm/cortex-m4-fpu.md (cortex_m4_fmacs): Use ffmas.
34398 * config/arm/cortex-a9.md (cortex_a9_fmacs): Use ffmas.
34399 (cortex_a9_fmacd): Use ffmad.
34400 * config/arm/cortex-a8-neon.md (cortex_a8_vfp_macs): Use ffmas.
34401 (cortex_a8_vfp_macd): Use ffmad.
34402 * config/arm/cortex-a5.md (cortex_a5_fpmacs): Use ffmas.
34403 (cortex_a5_fpmacd): Use ffmad.
34404 * config/arm/cortex-a15-neon.md (cortex_a15_vfp_macs) Use ffmas.
34405 (cortex_a15_vfp_macd): Use ffmad.
34406 * config/arm/arm1020e.md (v10_fmul): Use ffmas and ffmad.
34408 2013-01-29 Jason Merrill <jason@redhat.com>
34411 * varasm.c (default_assemble_visibility): Don't warn about
34412 visibility on artificial decls.
34414 2013-01-29 Richard Biener <rguenther@suse.de>
34416 PR tree-optimization/56113
34417 * tree-ssa-structalias.c (equiv_class_lookup): Also return
34419 (label_visit): Free duplicate bitmaps and record the leader instead.
34420 (perform_var_substitution): Adjust.
34422 2013-01-29 Richard Biener <rguenther@suse.de>
34424 PR tree-optimization/55270
34425 * tree-ssa-dom.c (eliminate_degenerate_phis): If we changed
34426 the CFG, schedule loops for fixup.
34428 2013-01-29 Nick Clifton <nickc@redhat.com>
34430 * config/rl78/rl78.c (rl78_regno_mode_code_ok_for_base_p): Allow
34433 2013-01-28 Leif Ekblad <leif@rdos.net>
34435 * config.gcc (i[34567]86-*-rdos*, x86_64-*-rdos*): New targets.
34436 * config/i386/i386.h (TARGET_RDOS): New macro.
34437 (DEFAULT_LARGE_SECTION_THRESHOLD): New macro.
34438 * config/i386/i386.c (ix86_option_override_internal): For 64bit
34439 TARGET_RDOS, set ix86_cmodel to CM_MEDIUM_PIC and flag_pic to 1.
34440 * config/i386/i386.opt (mlarge-data-threshold): Initialize to
34441 DEFAULT_LARGE_SECTION_THRESHOLD.
34442 * config/i386/i386.md (R14_REG, R15_REG): New constants.
34443 * config/i386/rdos.h: New file.
34444 * config/i386/rdos64.h: New file.
34446 2013-01-28 Bernd Schmidt <bernds@codesourcery.com>
34449 * reload.c (find_valid_class_1): Use in_hard_reg_set_p instead of
34452 2013-01-28 Jakub Jelinek <jakub@redhat.com>
34454 PR rtl-optimization/56117
34455 * sched-deps.c (sched_analyze_2) <case PREFETCH>: For use_cselib
34456 call cselib_lookup_from_insn on the MEM before calling
34457 add_insn_mem_dependence.
34459 2013-01-28 Richard Biener <rguenther@suse.de>
34461 * tree-inline.c (remap_gimple_stmt): Do not assing a BLOCK
34462 to a stmt that didn't have one.
34463 (copy_phis_for_bb): Likewise for PHI arguments.
34464 (copy_debug_stmt): Likewise for debug stmts.
34466 2013-01-28 Richard Biener <rguenther@suse.de>
34468 PR tree-optimization/56034
34469 * tree-loop-distribution.c (enum partition_kind): Add PKIND_REDUCTION.
34470 (partition_builtin_p): Adjust.
34471 (generate_code_for_partition): Handle PKIND_REDUCTION. Assert
34472 it is the last partition.
34473 (rdg_flag_uses): Check SSA_NAME_IS_DEFAULT_DEF before looking
34474 up the vertex for the definition.
34475 (classify_partition): Classify whether a partition is a
34476 PKIND_REDUCTION, thus has uses outside of the loop.
34477 (ldist_gen): Inherit PKIND_REDUCTION when merging partitions.
34478 Merge all PKIND_REDUCTION partitions into the last partition.
34479 (tree_loop_distribution): Seed partitions from reductions as well.
34481 2013-01-28 Jakub Jelinek <jakub@redhat.com>
34483 PR tree-optimization/56125
34484 * tree-ssa-math-opts.c (gimple_expand_builtin_pow): Don't optimize
34485 pow(x,c) into sqrt(x) * powi(x, n/2) or
34486 1.0 / (sqrt(x) * powi(x, abs(n/2))) if c is an integer or when
34487 optimizing for size.
34488 Don't optimize pow(x,c) into powi(x, n/3) * powi(cbrt(x), n%3) or
34489 1.0 / (powi(x, abs(n)/3) * powi(cbrt(x), abs(n)%3)) if 2c is an
34492 PR tree-optimization/56094
34493 * gimplify.c (force_gimple_operand_1): Temporarily set input_location
34494 to UNKNOWN_LOCATION while gimplifying expr.
34496 2013-01-27 Uros Bizjak <ubizjak@gmail.com>
34499 * config/i386/i386.md (*movabs<mode>_1): Add square brackets around
34500 operand 0 in movabs insn template for -masm=intel asm alternative.
34501 (*movabs<mode>_2): Ditto for operand 1.
34503 2013-01-26 David Holsgrove <david.holsgrove@xilinx.com>
34506 * config.gcc (microblaze*-linux*): Add tmake_file to allow building
34509 2013-01-26 Edgar E. Iglesias <edgar.iglesias@gmail.com>
34511 * config.gcc (microblaze*-*-*): Rename microblaze*-*-elf, update
34514 2013-01-25 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
34516 * config/aarch64/aarch64.c (TARGET_FIXED_CONDITION_CODE_REGS):
34517 Undef to avoid warning.
34519 2013-01-25 Michael Haubenwallner <michael.haubenwallner@salomon.at>
34521 * configure.ac (gcc_cv_ld_static_dynamic): Define for AIX native ld.
34522 * configure: Regenerate.
34524 2013-01-25 Jakub Jelinek <jakub@redhat.com>
34526 PR tree-optimization/56098
34527 * tree-ssa-phiopt.c (nt_init_block): Don't call add_or_mark_expr
34528 for stmts with volatile ops.
34529 (cond_store_replacement): Don't optimize if assign has volatile ops.
34530 (cond_if_else_store_replacement_1): Don't optimize if either
34531 then_assign or else_assign have volatile ops.
34532 (hoist_adjacent_loads): Don't optimize if either def1 or def2 have
34535 2013-01-25 Georg-Johann Lay <avr@gjlay.de>
34537 * doc/invoke.texi (AVR Built-in Macros): Document __XMEGA__.
34539 2013-01-25 Georg-Johann Lay <avr@gjlay.de>
34541 * doc/extend.texi (Example of asm with clobbered asm reg): Fix
34542 missing ':' in asm example.
34544 2013-01-25 Tejas Belagod <tejas.belagod@arm.com>
34546 * config/aarch64/aarch64-simd-builtins.def: Separate sq<r>dmulh_lane
34547 entries into lane and laneq entries.
34548 * config/aarch64/aarch64-simd.md (aarch64_sq<r>dmulh_lane<mode>):
34549 Remove AdvSIMD scalar modes.
34550 (aarch64_sq<r>dmulh_laneq<mode>): New.
34551 (aarch64_sq<r>dmulh_lane<mode>): New RTL pattern for Scalar AdvSIMD
34553 * config/aarch64/arm_neon.h: Fix all the vq<r>dmulh_lane* intrinsics'
34554 builtin implementations to relfect changes in RTL in aarch64-simd.md.
34555 * config/aarch64/iterators.md (VCOND): New.
34558 2013-01-25 Georg-Johann Lay <avr@gjlay.de>
34561 * config/avr/builtins.def (DEF_BUILTIN): Add LIBNAME argument.
34562 Add NULL LIBNAME argument to existing definitions.
34563 (ABSHR, ABSR, ABSLR, ABSLLR, ABSHK, ABSK, ABSLK, ABSLLK): New.
34564 * config/avr/avr-c.c (DEF_BUILTIN): Add LIBNAME argument.
34565 * config/avr/avr.c (DEF_BUILTIN): Same.
34566 (avr_init_builtins): Pass down LIBNAME to add_builtin_function.
34567 (avr_expand_builtin): Expand to a vanilla call if a libgcc
34568 implementation is available (DECL_ASSEMBLER_NAME is set).
34569 (avr_fold_absfx): New static function.
34570 (avr_fold_builtin): Use it to handle: AVR_BUILTIN_ABSHR,
34571 AVR_BUILTIN_ABSR, AVR_BUILTIN_ABSLR, AVR_BUILTIN_ABSLLR,
34572 AVR_BUILTIN_ABSHK, AVR_BUILTIN_ABSK, AVR_BUILTIN_ABSLK,
34573 AVR_BUILTIN_ABSLLK.
34574 * config/avr/stdfix.h (abshr, absr, abslr, absllr)
34575 (abshk, absk, abslk, absllk): Provide as static inline functions.
34577 2013-01-25 Marek Polacek <polacek@redhat.com>
34579 PR tree-optimization/56035
34580 * cfgloopmanip.c (fix_loop_structure): Remove redundant condition.
34582 2012-01-24 Uros Bizjak <ubizjak@gmail.com>
34584 * config/i386/i386.md (*movti_internal_rex64): Add (o,e) alternative.
34585 (*movtf_internal_rex64): Add (!o,C) alternative
34586 (*movxf_internal_rex64): Ditto.
34587 (*movdf_internal_rex64): Add (?r,C) and (?m,C) alternatives.
34589 2013-01-24 Shenghou Ma <minux.ma@gmail.com>
34591 * doc/invoke.texi: fix typo.
34592 * doc/objc.texi: fix typo.
34594 2013-01-24 Richard Sandiford <rdsandiford@googlemail.com>
34596 * config/mips/mips.md (*and<mode>3_mips16): Use the "W" constraint
34597 for the first two alternatives.
34599 2013-01-24 Diego Novillo <dnovillo@google.com>
34601 * Makefile.in (GGC): Remove. Replace all instances with ggc-page.o.
34602 (ggc-zone.o): Remove.
34603 * configure.ac: Remove option --with-gc.
34604 * configure: Re-generate.
34605 * doc/install.texi: Remove documentation for --with-gc.
34606 * gengtype.c (write_enum_defn): Remove. Update all users.
34607 (write_Types_process_field): Remove generation of gt_e_* argument.
34608 (output_type_enum): Remove. Update all users.
34609 (write_enum_defn): Remove. Update all users.
34610 (enum alloc_zone): Remove. Update all users.
34611 (write_splay_tree_allocator_def): Remove generation of gt_e_* argument.
34612 * ggc-common.c (ggc_splay_alloc): Remove first argument.
34613 Update all callers.
34614 (struct ptr_data): Remove field TYPE. Update all users.
34615 (gt_pch_note_object): Remove argument TYPE. Update all users.
34616 * ggc-internal.h (ggc_pch_alloc_object): Remove last argument.
34618 * ggc-none.c (ggc_alloc_typed_stat): Remove.
34619 (struct alloc_zone): Remove.
34620 (ggc_internal_alloc_zone_stat): Remove.
34621 (ggc_internal_cleared_alloc_zone_stat): Remove.
34622 * ggc-page.c (ggc_alloc_typed_stat): Remove.
34623 (ggc_pch_count_object): Remove last argument. Update all users.
34624 (ggc_pch_alloc_object): Remove last argument. Update all users.
34625 (struct alloc_zone): Remove.
34626 * ggc-zone.c: Remove.
34627 * ggc.h (gt_pch_note_object): Remove last argument. Update all users.
34628 (struct alloc_zone): Remove.
34629 (ggc_alloc_typed_stat): Remove.
34630 (ggc_alloc_typed): Remove.
34631 (ggc_splay_alloc): Remove first argument.
34632 (rtl_zone): Remove. Update all users.
34633 (tree_zone): Remove. Update all users.
34634 (tree_id_zone): Remove. Update all users.
34635 (ggc_internal_zone_alloc_stat): Remove. Update all users.
34636 (ggc_internal_zone_cleared_alloc_stat): Remove. Update all users.
34637 (ggc_internal_zone_vec_alloc_stat): Remove. Update all users.
34638 * tree-ssanames.c: Remove references to zone allocator in comments.
34640 2013-01-24 Georg-Johann Lay <avr@gjlay.de>
34642 * config/avr/avr.c (avr_out_fract): Make register numbers that
34643 might be outside of source operand signed.
34645 2013-01-24 Uros Bizjak <ubizjak@gmail.com>
34647 * config/i386/constraints.md (Yf): New constraint.
34648 * config/i386/i386.md (*movdf_internal_rex64): Use Yf*f instead
34649 of f constraint to conditionaly disable x87 register preferences.
34650 (*movdf_internal): Ditto.
34651 (*movsf_internal): Ditto.
34653 2013-01-24 Steven Bosscher <steven@gcc.gnu.org>
34655 PR inline-asm/55934
34656 * lra-assigns.c (assign_by_spills): Throw away the pattern of asms
34657 that have operands with impossible constraints.
34658 Add a FIXME for a speed-up opportunity.
34659 * lra-constraints.c (process_alt_operands): Verify that a class
34660 selected from constraints on asms is valid for the operand mode.
34661 (curr_insn_transform): Remove incorrect comment.
34663 2013-01-23 David Edelsohn <dje.gcc@gmail.com>
34665 * config/rs6000/rs6000.c (rs6000_delegitimize_address): Check that
34666 TOC operand is a valid symbol ref in the constant pool.
34668 2013-01-23 Edgar E. Iglesias <edgar.iglesias@gmail.com>
34670 * config/microblaze/linux.h: Add TARGET_OS_CPP_BUILTINS
34672 2013-01-23 Georg-Johann Lay <avr@gjlay.de>
34675 * config/avr/stdfix.h: New file.
34676 * t-avr (stdfix-gcc.h): New rule to build it.
34677 (EXTRA_HEADERS): Set it to install stdfix.h, stdfix-gcc.h.
34679 2013-01-23 Kostya Serebryany <kcc@google.com>
34681 * config/darwin.h: remove dependency on
34682 CoreFoundation (asan on Mac OS).
34684 2013-01-23 Jakub Jelinek <jakub@redhat.com>
34687 * config/arm/arm.md (cbranchdi4, cstoredi4): Use s_register_operand
34688 instead of cmpdi_operand for first comparison operand.
34689 Don't assert that comparison operands aren't both constants.
34691 2013-01-22 Jonathan Wakely <jwakely.gcc@gmail.com>
34693 * doc/install.texi (Downloading the Source): Update references to
34694 downloading separate components.
34696 2013-01-22 Jonathan Wakely <jwakely.gcc@gmail.com>
34698 * doc/extend.texi (__int128): Improve grammar.
34700 2013-01-22 Uros Bizjak <ubizjak@gmail.com>
34703 * config/i386/i386.md (*movti_internal_rex64): Change (o,riF)
34704 alternative to (o,r).
34705 (*movdi_internal_rex64): Remove (!o,n) alternative.
34706 (DImode immediate->memory splitter): Remove.
34707 (DImode immediate->memory peephole2): Remove.
34708 (movtf): Enable for TARGET_64BIT || TARGET_SSE.
34709 (*movtf_internal_rex64): Rename from *movtf_internal. Change (!o,F*r)
34710 alternative to (!o,*r).
34711 (*movtf_internal_sse): New pattern.
34712 (*movxf_internal_rex64): New pattern.
34713 (*movxf_internal): Disable for TARGET_64BIT.
34714 (*movdf_internal_rex64): Remove (!o,F) alternative.
34716 2013-01-22 Jakub Jelinek <jakub@redhat.com>
34718 PR middle-end/56074
34719 * dumpfile.c (dump_loc): Only print loc if LOCATION_LOCUS (loc)
34720 isn't UNKNOWN_LOCATION nor BUILTINS_LOCATION.
34721 * tree-vect-loop-manip.c (find_loop_location): Also ignore
34722 stmt locations where LOCATION_LOCUS of the stmt location is
34723 UNKNOWN_LOCATION or BUILTINS_LOCATION.
34726 * config/i386/i386.md (UNSPEC_STOS): New.
34727 (strset_singleop, *strsetdi_rex_1, *strsetsi_1, *strsethi_1,
34728 *strsetqi_1): Add UNSPEC_STOS.
34730 2013-01-22 Paolo Carlini <paolo.carlini@oracle.com>
34733 * doc/invoke.texi: Remove left over -Wsynth example.
34735 2013-01-21 Jakub Jelinek <jakub@redhat.com>
34737 PR tree-optimization/56051
34738 * fold-const.c (fold_binary_loc): Don't fold
34739 X < (cast) (1 << Y) into (X >> Y) != 0 if cast is either
34740 a narrowing conversion, or widening conversion from signed
34743 2013-01-21 Uros Bizjak <ubizjak@gmail.com>
34745 PR rtl-optimization/56023
34746 * haifa-sched.c (fix_inter_tick): Do not update ticks of instructions,
34747 dependent on debug instruction.
34749 2013-01-21 Martin Jambor <mjambor@suse.cz>
34751 PR middle-end/56022
34752 * function.c (allocate_struct_function): Call
34753 invoke_set_current_function_hook earlier.
34755 2013-01-21 Jakub Jelinek <jakub@redhat.com>
34757 * reload1.c (init_reload): Only initialize reload_obstack
34758 during the first call.
34760 2013-01-21 Marek Polacek <polacek@redhat.com>
34762 * cfgloop.c (verify_loop_structure): Fix up grammar.
34764 2013-01-21 Yi-Hsiu Hsu <ahsu@marvell.com>
34766 * config/arm/marvell-pj4.md (pj4_shift_conds, pj4_alu_shift,
34767 pj4_alu_shift_conds, pj4_shift): Handle simple_alu_shift.
34769 2013-01-21 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
34772 * config/arm/marvell-pj4.md: Update copyright year.
34773 Fix up use of alu to alu_reg and simple_alu_imm.
34775 2013-01-21 Uros Bizjak <ubizjak@gmail.com>
34777 * config/i386/i386.md (enabled): Do not disable fma4 for TARGET_FMA.
34779 2013-01-20 Vladimir Makarov <vmakarov@redhat.com>
34782 * lra-constraints.c (curr_insn_transform): Don't reuse original
34783 insn for secondary memory move when memory mode should be different.
34785 2013-01-20 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
34787 * config/pa/pa.md (atomic_loaddi, atomic_loaddi_1, atomic_storedi,
34788 atomic_storedi_1): New patterns.
34790 2013-01-20 Venkataramanan Kumar <venkataramanan.kumar@amd.com>
34792 btver2 pipeline descriptions.
34793 * config/i386/i386.c: Enable CPU_BTVER2 to use btver2 pipeline
34795 * config/i386/i386.md (btver2_decode): New type attributes.
34796 * config/i386/sse.md (btver2_decode, btver2_sse_attr): New
34798 * config/i386/btver2.md: New file describing btver2 pipelines.
34800 2013-01-19 Andrew Pinski <apinski@cavium.com>
34802 PR tree-optimization/52631
34803 * tree-ssa-sccvn (visit_use): Before looking up the original
34804 statement, try looking up the simplified expression.
34806 2013-01-19 Anthony Green <green@moxielogic.com>
34808 * config/moxie/moxie.c (moxie_expand_prologue): Set
34809 current_function_static_stack_size.
34811 2013-01-18 Jakub Jelinek <jakub@redhat.com>
34813 PR tree-optimization/56029
34814 * tree-phinodes.c (reserve_phi_args_for_new_edge): Set
34815 gimple_phi_arg_location for the new arg to UNKNOWN_LOCATION.
34817 2013-01-18 Sharad Singhai <singhai@google.com>
34819 PR tree-optimization/55995
34820 * dumpfile.c (dump_loc): Print location only if available.
34821 * tree-vectorizer.c (increase_alignment): Intialize vect_location.
34823 2013-01-18 Vladimir Makarov <vmakarov@redhat.com>
34826 * lra-constraints.c (curr_insn_transform): Reuse original insn for
34827 secondary memory move.
34828 (inherit_reload_reg): Use rclass instead of cl for
34829 check_secondary_memory_needed_p.
34831 2013-01-18 Jakub Jelinek <jakub@redhat.com>
34833 PR middle-end/56015
34834 * expr.c (expand_expr_real_2) <case COMPLEX_EXPR>: Handle
34835 the case where writing real complex part of target modifies op1.
34837 2013-01-18 James Greenhalgh <james.greenhalgh@arm.com>
34839 * config/aarch64/aarch64-simd.md
34840 (aarch64_vcond_internal<mode>): Handle unordered cases.
34841 * config/aarch64/iterators.md (v_cmp_result): New.
34843 2013-01-18 Yi-Hsiu Hsu <ahsu@marvell.com>
34844 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
34846 * config/arm/marvell-pj4.md: New file.
34847 * config/arm/arm.c (arm_issue_rate): Add marvell_pj4.
34848 * config/arm/arm.md (generic_sched): Add marvell_pj4.
34849 (generic_vfp): Likewise.
34850 * config/arm/arm-cores.def: Add marvell-pj4.
34851 * config/arm/arm-tune.md: Regenerate.
34852 * config/arm/arm-tables.opt: Regenerate.
34853 * config/arm/bpabi.h (BE8_LINK_SPEC): Add marvell_pj4.
34854 * doc/invoke.texi: Document marvell-pj4.
34856 2013-01-18 Tejas Belagod <tejas.belagod@arm.com>
34858 * config/aarch64/arm_neon.h: Map scalar types to standard types.
34860 2013-01-18 Alexandre Oliva <aoliva@redhat.com>
34865 * var-tracking.c (negative_power_of_two_p): New.
34866 (global_get_addr_cache, local_get_addr_cache): New.
34867 (get_addr_from_global_cache, get_addr_from_local_cache): New.
34868 (vt_canonicalize_addr): Rewrite using the above. Adjust the
34870 (vt_stack_offset_p): Remove.
34871 (vt_canon_true_dep): Always canonicalize loc's address.
34872 (clobber_overlapping_mems): Make sure we have a MEM.
34873 (local_get_addr_clear_given_value): New.
34874 (val_reset): Clear local cached entries.
34875 (compute_bb_dataflow): Create and release the local cache.
34876 Disable duplicate MEMs clobbering.
34877 (emit_notes_in_bb): Clobber MEMs likewise.
34878 (vt_emit_notes): Create and release the local cache.
34879 (vt_initialize, vt_finalize): Create and release the global
34880 cache, respectively.
34881 * alias.c (rtx_equal_for_memref_p): Compare operands of ENTRY_VALUEs.
34883 2013-01-18 Alexandre Oliva <aoliva@redhat.com>
34885 PR libmudflap/53359
34886 * tree-mudflap.c (mudflap_finish_file): Skip deferred decls
34887 not found in the symtab.
34889 2013-01-18 Alexandre Oliva <aoliva@redhat.com>
34892 PR rtl-optimization/55547
34893 PR rtl-optimization/53827
34896 * alias.c (offset_overlap_p): New, factored out of...
34897 (memrefs_conflict_p): ... this. Use absolute sizes. Retain
34898 the conservative special case for symbolic constants. Don't
34899 adjust zero sizes on alignment.
34901 2013-01-18 Bernd Schmidt <bernds@codesourcery.com>
34903 PR rtl-optimization/52573
34904 * regrename.c (build_def_use): Ignore REG_DEAD notes if there is a
34905 REG_UNUSED for the same register.
34907 2013-01-17 Richard Biener <rguenther@suse.de>
34908 Marek Polacek <polacek@redhat.com>
34910 PR rtl-optimization/55833
34911 * loop-unswitch.c (unswitch_loops): Move loop verification...
34912 (unswitch_single_loop): ...here. Call mark_irreducible_loops.
34913 * cfgloopmanip.c (fix_loop_placement): Add IRRED_INVALIDATED parameter.
34914 Set it to true when we're removing a loop from hierarchy tree in
34915 an irreducible region.
34916 (fix_bb_placements): Adjust caller.
34917 (fix_loop_placements): Likewise.
34919 2013-01-17 Georg-Johann Lay <avr@gjlay.de>
34921 * config/avr/builtins.def (DEF_BUILTIN): Factor out
34922 "__builtin_avr_" from NAME, turn NAME to an uppercase identifier.
34923 Factor out 'CODE_FOR_' from ICODE, use 'nothing' instead of '-1'.
34924 Remove ID. Adjust comments.
34925 * config/avr/avr-c.c (avr_builtin_name): Remove.
34926 (avr_cpu_cpp_builtins): Use DEF_BUILTIN instead of for-loop.
34927 * config/avr/avr.c (avr_tolower): New static function.
34928 (DEF_BUILTIN): Remove parameter ID. Prefix ICODE by 'CODE_FOR_'.
34929 Stringify NAME, prefix it with "__builtin_avr_" and lowercase it.
34930 (avr_expand_builtin): Assert insn_code != CODE_FOR_nothing for
34933 2013-01-17 Jan Hubicka <jh@suse.cz>
34935 PR tree-optimization/55273
34936 * loop-iv.c (iv_number_of_iterations): Consider zero iteration case.
34938 2013-01-17 Uros Bizjak <ubizjak@gmail.com>
34941 * config/i386/sync.md (atomic_store<mode>): Always generate SWImode
34942 store through atomic_store<mode>_1.
34943 (atomic_store<mode>_1): Macroize insn using SWI mode iterator.
34945 2013-01-17 Martin Jambor <mjambor@suse.cz>
34947 PR tree-optimizations/55264
34948 * ipa-inline-transform.c (can_remove_node_now_p_1): Never return true
34949 for virtual methods.
34950 * ipa.c (symtab_remove_unreachable_nodes): Never return true for
34951 virtual methods before inlining is over.
34952 * cgraph.h (cgraph_only_called_directly_or_aliased_p): Return false for
34954 * cgraphclones.c (cgraph_create_virtual_clone): Mark clones as
34957 2013-01-16 Vladimir Makarov <vmakarov@redhat.com>
34959 PR rtl-optimization/56005
34960 * sched-deps.c (sched_analyze_2): Check deps->readonly for adding
34961 pending reads for prefetch.
34963 2013-01-16 Ian Bolton <ian.bolton@arm.com>
34965 * config/aarch64/aarch64.md
34966 (*cstoresi_neg_uxtw): New pattern.
34967 (*cmovsi_insn_uxtw): New pattern.
34968 (*<optab>si3_uxtw): New pattern.
34969 (*<LOGICAL:optab>_<SHIFT:optab>si3_uxtw): New pattern.
34970 (*<optab>si3_insn_uxtw): New pattern.
34971 (*bswapsi2_uxtw): New pattern.
34973 2013-01-16 Richard Biener <rguenther@suse.de>
34975 * tree-inline.c (tree_function_versioning): Remove set but
34976 never used variable.
34978 2013-01-16 Richard Biener <rguenther@suse.de>
34980 PR tree-optimization/55964
34981 * tree-flow.h (rename_variables_in_loop): Remove.
34982 (rename_variables_in_bb): Likewise.
34983 * tree-loop-distribution.c (update_phis_for_loop_copy): Remove.
34984 (copy_loop_before): Adjust and delete update-ssa status.
34985 * tree-vect-loop-manip.c (rename_variables_in_bb): Make static.
34986 (rename_variables_in_bb): Likewise. Properly walk over predecessors.
34987 (rename_variables_in_loop): Remove.
34988 (slpeel_update_phis_for_duplicate_loop): Likewise.
34989 (slpeel_tree_duplicate_loop_to_edge_cfg): Handle nested loops,
34990 use available cfg machinery instead of duplicating it.
34991 Update PHI nodes and perform poor-mans SSA update here.
34992 (slpeel_tree_peel_loop_to_edge): Adjust.
34994 2013-01-16 Richard Biener <rguenther@suse.de>
34996 PR tree-optimization/54767
34997 PR tree-optimization/53465
34998 * tree-vrp.c (vrp_meet_1): Revert original fix for PR53465.
34999 (vrp_visit_phi_node): For PHI arguments coming via backedges
35000 drop all symbolical range information.
35001 (execute_vrp): Compute backedges.
35003 2013-01-16 Richard Biener <rguenther@suse.de>
35005 * doc/install.texi: Update CLooG and ISL requirements to
35008 2013-01-16 Christian Bruel <christian.bruel@st.com>
35011 * config/sh/sh.c (sh_expand_prologue): Postpone new_stack mem symbol.
35012 (broken_move): Handle UNSPECV_SP_SWITCH_B.
35013 * config/sh/sh.md (sp_switch_1): Use set (reg:SI SP_REG).
35015 2013-01-16 DJ Delorie <dj@redhat.com>
35017 * config/sh/sh.md (UNSPECV_SP_SWITCH_B): New.
35018 (UNSPECV_SP_SWITCH_E): New.
35019 (sp_switch_1): Change to an unspec.
35020 (sp_switch_2): Change to an unspec. Don't use post-inc when we
35023 2013-01-16 Uros Bizjak <ubizjak@gmail.com>
35025 * emit-rtl.c (need_atomic_barrier_p): Mask memory model argument
35026 with MEMMODEL_MASK before comparing with MEMMODEL_* memory types.
35027 * optabs.c (maybe_emit_sync_lock_test_and_set): Ditto.
35028 (expand_mem_thread_fence): Ditto.
35029 (expand_mem_signal_fence): Ditto.
35030 (expand_atomic_load): Ditto.
35031 (expand_atomic_store): Ditto.
35033 2013-01-16 Alexandre Oliva <aoliva@redhat.com>
35035 PR rtl-optimization/55547
35036 PR rtl-optimization/53827
35039 * alias.c (memrefs_conflict_p): Set sizes to negative after
35042 2013-01-15 Jakub Jelinek <jakub@redhat.com>
35045 * function.c (thread_prologue_and_epilogue_insns): Always
35046 add crtl->drap_reg to set_up_by_prologue.set, even if
35047 stack_realign_drap is false.
35049 2013-01-15 Jan-Benedict Glaw <jbglaw@lug-owl.de>
35051 * config/vax/vax.md (add<mode>3, sub<mode>3, mul<mode>3, div<mode>3,
35052 and<mode>3, *and<mode>_const_int, ior<mode>3, xor<mode>3, ashrsi3,
35053 *call): Fix indention.
35055 2013-01-15 Tom de Vries <tom@codesourcery.com>
35058 * optabs.c (widen_operand): Use gen_lowpart instead of gen_rtx_SUBREG.
35061 2013-01-15 Vladimir Makarov <vmakarov@redhat.com>
35063 PR rtl-optimization/55153
35064 * sched-deps.c (sched_analyze_2): Add pending reads for prefetch.
35066 2013-01-15 Martin Jambor <mjambor@suse.cz>
35068 PR tree-optimization/55920
35069 * tree-sra.c (analyze_access_subtree): Do not mark non-removable
35070 accesses as grp_to_be_debug_replaced.
35072 2013-01-15 Jakub Jelinek <jakub@redhat.com>
35074 PR tree-optimization/55920
35075 * tree-sra.c (sra_modify_assign): If for lacc->grp_to_be_debug_replaced
35076 there is non-useless type conversion needed from debug rhs to lhs,
35077 use build_debug_ref_for_model and/or VIEW_CONVERT_EXPR.
35079 2013-01-15 Joseph Myers <joseph@codesourcery.com>
35080 Mikael Pettersson <mikpe@it.uu.se>
35083 * config/arm/arm.h (ADDR_VEC_ALIGN): Align SImode jump tables for
35085 (ASM_OUTPUT_CASE_LABEL): Remove.
35086 (ASM_OUTPUT_BEFORE_CASE_LABEL): Define to empty.
35087 * final.c (shorten_branches): Update alignment of labels before
35088 jump tables if CASE_VECTOR_SHORTEN_MODE.
35090 2013-01-15 Richard Biener <rguenther@suse.de>
35093 * system.h: Do not include gmp.h for building host tools.
35095 2013-01-15 Richard Biener <rguenther@suse.de>
35097 PR middle-end/55882
35098 * emit-rtl.c (set_mem_attributes_minus_bitpos): Correctly
35099 account for bitpos when computing alignment.
35101 2013-01-15 Vladimir Yakovlev <vladimir.b.yakovlev@intel.com>
35103 * config/i386/i386-c.c (ix86_target_macros_internal): New case.
35104 (ix86_target_macros_internal): Likewise.
35106 * config/i386/i386.c (m_CORE2I7): Removed.
35107 (m_CORE_HASWELL): New macro.
35108 (m_CORE_ALL): Likewise.
35109 (initial_ix86_tune_features): m_CORE2I7 is replaced by m_CORE_ALL.
35110 (initial_ix86_arch_features): Likewise.
35111 (processor_target_table): Initializations for Core avx2.
35112 (cpu_names): New names "core-avx2".
35113 (ix86_option_override_internal): Changed PROCESSOR_COREI7 by
35114 PROCESSOR_CORE_HASWELL.
35115 (ix86_issue_rate): New case.
35116 (ia32_multipass_dfa_lookahead): Likewise.
35117 (ix86_sched_init_global): Likewise.
35119 * config/i386/i386.h (TARGET_HASWELL): New macro.
35120 (target_cpu_default): New TARGET_CPU_DEFAULT_haswell.
35121 (processor_type): New PROCESSOR_HASWELL.
35123 2013-01-15 Jakub Jelinek <jakub@redhat.com>
35125 PR tree-optimization/55955
35126 * tree-vect-loop.c (vectorizable_reduction): Give up early on
35127 *SHIFT_EXPR and *ROTATE_EXPR codes.
35129 PR tree-optimization/48766
35130 * opts.c (common_handle_option): For -fwrapv disable -ftrapv, for
35131 -ftrapv disable -fwrapv.
35133 2013-01-14 Georg-Johann Lay <avr@gjlay.de>
35136 * config/avr/avr-c.c (avr_cpu_cpp_builtins): Define __FLASH
35137 etc. to 1 and not to __flash.
35138 Use LL suffix for __INT24_MAX__ with -mint8.
35139 Use ULL suffix for __UINT24_MAX__ with -mint8.
35141 2013-01-14 Georg-Johann Lay <avr@gjlay.de>
35143 * config/avr/avr-arch.h
35144 (struct base_arch_s): Use typedef avr_arch_t instead.
35145 (struct arch_info_s): Use typedef avr_arch_info_t instead.
35146 (struct mcu_type_s): Use typedef avr_mcu_t instead.
35147 * config/avr/avr.c: Same.
35148 * config/avr/avr-devices.c: Same.
35149 * config/avr/driver-avr.c: Same.
35150 * config/avr/gen-avr-mmcu-texi.c: Same.
35151 * config/avr/avr-mcus.def: Adjust comment.
35153 2013-01-14 Tejas Belagod <tejas.belagod@arm.com>
35155 * config/aarch64/aarch64-simd.md (*aarch64_simd_ld1r<mode>): New.
35156 * config/aarch64/iterators.md (VALLDI): New.
35158 2013-01-14 Uros Bizjak <ubizjak@gmail.com>
35159 Andi Kleen <ak@linux.intel.com>
35162 * config/i386/sync.md (atomic_store<mode>_1): New pattern.
35163 (atomic_store<mode>): Call atomic_store<mode>_1 for IX86_HLE_RELEASE
35166 2013-01-14 Georg-Johann Lay <avr@gjlay.de>
35168 * config/avr/avr-stdint.h: Remove trailing blanks.
35169 * config/avr/avr-log.h: Same.
35170 * config/avr/avr-arch.h: Same.
35171 * config/avr/avr-devices.c: Same.
35172 * config/avr/avr-dimode.md: Same.
35173 * config/avr/predicates.md: Same.
35174 * config/avr/avr-c.c: Same. And fix typo.
35176 * config/avr/avr-protos.h: Same. And:
35177 (function_arg_regno_p): Rename to avr_function_arg_regno_p.
35178 (init_cumulative_args): Rename to avr_init_cumulative_args.
35179 (expand_prologue): Rename to avr_expand_prologue.
35180 (expand_epilogue): Rename to avr_expand_epilogue.
35181 (adjust_insn_length): Rename to avr_adjust_insn_length.
35182 (notice_update_cc): Rename to avr_notice_update_cc.
35183 (final_prescan_insn): Rename to avr_final_prescan_insn.
35184 * config/avr/avr.c: Same.
35185 * config/avr/avr.h: Same.
35186 * config/avr/avr.md: Remove trailing blanks.
35187 (prologue): Use avr_expand_prologue.
35188 (epilogue, sibcall_epilogue): Use avr_expand_epilogue.
35190 2013-01-14 Richard Biener <rguenther@suse.de>
35192 * tree-cfg.c (verify_expr_location, verify_expr_location_1,
35193 verify_location, collect_subblocks): New functions.
35194 (verify_gimple_in_cfg): Verify that locations only reference
35195 BLOCKs in the functions BLOCK tree.
35197 2013-01-14 Richard Biener <rguenther@suse.de>
35199 * tree-cfgcleanup.c (remove_forwarder_block): Unshare propagated
35201 * graphite-sese-to-poly.c (insert_out_of_ssa_copy): Properly
35203 (insert_out_of_ssa_copy_on_edge): Likewise.
35204 (rewrite_close_phi_out_of_ssa): Likewise.
35205 * tree-ssa.c (insert_debug_temp_for_var_def): Properly unshare
35207 * tree-ssa-pre.c (insert_into_preds_of_block): Properly unshare
35208 propagated constants.
35209 * tree-cfg.c (tree_node_can_be_shared): Handled component-refs
35212 2013-01-14 Georg-Johann Lay <avr@gjlay.de>
35214 * config/avr/avr-modes.def: Add GPL copyright notice.
35216 2013-01-13 Uros Bizjak <ubizjak@gmail.com>
35218 * config/i386/sync.md (mem_thread_fence): Mask operands[0] with
35219 MEMMODEL_MASK to determine memory model.
35220 (atomic_store<mode>): Ditto from operands[2].
35221 * config/i386/i386.c (ix86_memmodel_check): Declare "strong" as bool.
35223 2013-01-13 Jakub Jelinek <jakub@redhat.com>
35226 * gimple-fold.c (get_symbol_constant_value): Call unshare_expr.
35227 (fold_gimple_assign): Don't call unshare_expr here.
35228 (fold_ctor_reference): Call unshare_expr.
35230 2013-01-13 Terry Guo <terry.guo@arm.com>
35232 * Makefile.in (s-mlib): New argument MULTILIB_REUSE.
35233 * doc/fragments.texi: Document MULTILIB_REUSE.
35234 * gcc.c (multilib_reuse): New internal spec.
35235 (set_multilib_dir): Also search multilib from multilib_reuse.
35236 * genmultilib (tmpmultilib3): Refactor code.
35237 (tmpmultilib4): Ditto.
35238 (multilib_reuse): New multilib argument.
35240 2013-01-13 Richard Sandiford <rdsandiford@googlemail.com>
35242 * Makefile.in: Update copyright.
35244 2013-01-12 Tom de Vries <tom@codesourcery.com>
35246 PR middle-end/55890
35247 * calls.c (expand_call): Check if arg_nr is valid.
35249 2013-01-11 Michael Meissner <meissner@linux.vnet.ibm.com>
35251 * doc/extend.texi (X86 Built-in Functions): Add whitespace in
35252 __builtin_ia32_paddb256 and __builtin_ia32_pavgb256
35253 documentation. Add missing '__' in front of
35254 __builtin_ia32_packssdw256.
35256 2013-01-11 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
35259 * config/s390/s390.c (s390_preferred_reload_class): Do not return
35260 NO_REGS for larl operands.
35261 (s390_reload_larl_operand): Use s390_load_address instead of
35264 2013-01-11 Richard Biener <rguenther@suse.de>
35266 * tree-cfg.c (verify_node_sharing_1): Split out from ...
35267 (verify_node_sharing): ... here.
35268 (verify_gimple_in_cfg): Use verify_node_sharing_1 for walk_tree.
35270 2013-01-11 Eric Botcazou <ebotcazou@adacore.com>
35272 * configure.ac (Tree checking): Set TREECHECKING to yes if enabled.
35273 Substitute TREECHECKING.
35274 * configure: Regenerate.
35275 * Makefile.in (TREECHECKING): New.
35277 2013-01-11 Richard Guenther <rguenther@suse.de>
35279 PR tree-optimization/44061
35280 * tree-vrp.c (extract_range_basic): Compute zero as
35281 value-range for __builtin_constant_p of function parameters.
35283 2013-01-10 Richard Sandiford <rdsandiford@googlemail.com>
35285 Update copyright years.
35287 2013-01-10 Vladimir Makarov <vmakarov@redhat.com>
35289 PR rtl-optimization/55672
35290 * lra-eliminations.c (mark_not_eliminable): Permit addition with
35291 const to be eliminable.
35293 2013-01-10 David Edelsohn <dje.gcc@gmail.com>
35295 * configure.ac (HAVE_AS_TLS): Add check for powerpc-ibm-aix.
35296 * configure: Regenerate.
35298 2013-01-10 Richard Biener <rguenther@suse.de>
35300 * builtins.c (expand_builtin_init_trampoline): Use set_mem_attributes.
35302 2013-01-10 Richard Biener <rguenther@suse.de>
35305 * tree-into-ssa.c (rewrite_add_phi_arguments): Do not set
35306 locations for virtual PHI arguments.
35307 (rewrite_update_phi_arguments): Likewise.
35309 2013-01-10 Joel Sherrill <joel.sherrill@OARcorp.com>
35311 * config/v850/rtems.h (ASM_SPEC): Pass -m8byte-align and -mgcc-abi
35314 2013-01-10 Jakub Jelinek <jakub@redhat.com>
35316 PR tree-optimization/55921
35317 * tree-complex.c (expand_complex_asm): New function.
35318 (expand_complex_operations_1): Call it for GIMPLE_ASM.
35320 2013-01-10 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
35323 * config/s390/s390.c (s390_symref_operand_p)
35324 (s390_loadrelative_operand_p): Merge the two functions.
35325 (s390_check_qrst_address, print_operand_address): Add parameters
35326 to s390_loadrelative_operand_p invokation.
35327 (s390_check_symref_alignment): Use s390_loadrelative_operand_p.
35328 (s390_reload_larl_operand, s390_secondary_reload): Use
35329 s390_loadrelative_operand_p instead of s390_symref_operand_p.
35330 (legitimize_pic_address): Handle @GOTENT and @PLT + addend.
35332 2013-01-09 Mike Stump <mikestump@comcast.net>
35334 * dse.c (record_store): Remove unnecessary assert.
35336 2013-01-09 Jan Hubicka <jh@suse.cz>
35338 PR tree-optimization/55569
35339 * cfgloopmanip.c (scale_loop_profile): Make ITERATION_BOUND gcov_type.
35340 * cfgloop.h (scale_loop_profile): Likewise.
35342 2013-01-09 Jan Hubicka <jh@suse.cz>
35345 * ipa-inline.c (ipa_inline): Remove extern inlines and virtual
35347 * cgraphclones.c (cgraph_clone_node): Cpoy also LTO file data.
35349 2013-01-09 Richard Sandiford <rdsandiford@googlemail.com>
35351 PR middle-end/55114
35352 * expr.h (maybe_emit_group_store): Declare.
35353 * expr.c (maybe_emit_group_store): New function.
35354 * builtins.c (expand_builtin_int_roundingfn): Call it.
35355 (expand_builtin_int_roundingfn_2): Likewise.
35357 2013-01-09 Vladimir Makarov <vmakarov@redhat.com>
35359 PR rtl-optimization/55829
35360 * lra-constraints.c (match_reload): Add code for absent output.
35361 (curr_insn_transform): Add code for reloads of matched inputs
35364 2013-01-09 Uros Bizjak <ubizjak@gmail.com>
35366 * config/i386/sse.md (*vec_interleave_highv2df): Change mode
35367 attribute of movddup insn to DF.
35368 (*vec_interleave_lowv2df): Ditto.
35369 (vec_dupv2df): Ditto.
35371 2013-01-09 Jan Hubicka <jh@suse.cz>
35373 PR tree-optimiation/55875
35374 * tree-ssa-loop-niter.c (number_of_iterations_cond): Add
35375 EVERY_ITERATION parameter.
35376 (number_of_iterations_exit): Check if exit is executed every iteration.
35377 (idx_infer_loop_bounds): Similarly here.
35378 (n_of_executions_at_most): Simplify
35379 to only test for cases where statement is dominated by the
35380 particular bound; handle correctly the "postdominance" test.
35381 (scev_probably_wraps_p): Use max loop iterations info
35382 as a global bound first.
35384 2013-01-09 Nguyen Duy Dat <dat.nguyen.yn@rvc.renesas.com>
35385 Nick Clifton <nickc@redhat.com>
35387 * config/v850/v850.md (cbranchsf4): New pattern.
35388 (cstoresf4): New pattern.
35389 (cbranchdf4): New pattern.
35390 (cstoredf4): New pattern.
35391 (movsicc): Disallow floating point comparisons.
35392 (cmpsf_le_insn): Fix order of operators.
35393 (cmpsf_lt_insn): Likewise.
35394 (cmpsf_eq_insn): Likewise.
35395 (cmpdf_le_insn): Likewise.
35396 (cmpdf_lt_insn): Likewise.
35397 (cmpdf_eq_insn): Likewise.
35398 (cmpsf_ge_insn): Use LE comparison.
35399 (cmpdf_ge_insn): Likewise.
35400 (cmpsf_gt_insn): Use LT comparison.
35401 (cmpdf_gt_insn): Likewise.
35402 (cmpsf_ne_insn): Delete pattern.
35403 (cmpdf_ne_insn): Delete pattern.
35404 * config/v850/v850.c (v850_gen_float_compare): Use
35405 gen_cmpdf_eq_insn for NE comparison.
35406 (v850_float_z_comparison_operator)
35407 (v850_float_nz_comparison_operator): Move from here ...
35408 * config/v850/predicates.md: ... to here. Move GT and GE
35409 comparisons into v850_float_z_comparison_operator.
35410 * config/v850/v850-protos.h (v850_float_z_comparison_operator):
35412 (v850_float_nz_comparison_operator): Likewise.
35414 2013-01-09 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
35416 * config/pa/pa.c (pa_emit_move_sequence): Replace calls to gen_insv
35417 with calls to gen_insvsi/gen_insvdi.
35419 2013-01-09 Venkataramanan Kumar <venkataramanan.kumar@amd.com>
35421 * config/i386/i386.c (initial_ix86_tune_features): Set up
35422 X86_TUNE_AVX128_OPTIMAL for m_BTVER2.
35424 2013-01-09 Steven Bosscher <steven@gcc.gnu.org>
35425 Jakub Jelinek <jakub@redhat.com>
35427 PR tree-optimization/48189
35428 * predict.c (predict_loops): If max is 0, don't call compare_tree_int.
35429 If nitercst is 0, don't predict the exit edge.
35431 2013-01-08 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
35433 * config/aarch64/aarch64.c (aarch64_print_operand): Replace %r
35434 in asm_fprintf with reg_names.
35435 (aarch64_print_operand_address): Likewise.
35436 (aarch64_return_addr): Likewise.
35437 * config/aarch64/aarch64.h (ASM_FPRINTF_EXTENSIONS): Remove.
35439 2013-01-08 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
35441 * config/pa/pa.h (VAL_U6_BITS_P): Define.
35442 (INT_U6_BITS): Likewise.
35443 * config/pa/predicates.md (uint6_operand): New predicate.
35444 (shift5_operand, shift6_operand): Likewise.
35445 * config/pa/pa.md (lshrsi3, rotrsi3): Use shift5_operand instead of
35447 (lshrdi3): Use shift6_operand.
35448 (shrpsi4, shrpdi4): New insn patterns.
35449 (extzv): Delete expander.
35450 (extzvsi, extzvdi): New expanders. Use uint5_operand and uint6_operand
35451 predicates in unamed zero extract patterns. Tighten common constraint.
35452 (extv): Delete expander.
35453 (extvsi, extvdi): New expanders. Use uint5_operand and uint6_operand
35454 predicates in unamed sign extract patterns. Tighten common constraint.
35455 (insv): Delete expander.
35456 (insvsi, insvdi): New expanders. Use uint5_operand and uint6_operand
35457 predicates in unamed insert patterns. Tighten common constraint.
35458 Change uint32_operand predicate to uint6_operand predicate in unamed
35459 DImode pattern to insert constant values of type 1...1xxxx.
35461 2013-01-04 Jan Hubicka <jh@suse.cz>
35463 PR tree-optimization/55823
35464 * ipa-prop.c (update_indirect_edges_after_inlining): Fix ordering
35467 2013-01-08 Jakub Jelinek <jakub@redhat.com>
35468 Uros Bizjak <ubizjak@gmail.com>
35470 PR rtl-optimization/55845
35471 * df-problems.c (can_move_insns_across): Stop scanning at
35472 volatile_insn_p source instruction or give up if
35473 across_from .. across_to range contains any volatile_insn_p
35476 2013-01-08 Tejas Belagod <tejas.belagod@arm.com>
35478 * config/aarch64/aarch64-simd.md (vec_init<mode>): New.
35479 * config/aarch64/aarch64-protos.h (aarch64_expand_vector_init):
35481 * config/aarch64/aarch64.c (aarch64_simd_dup_constant,
35482 aarch64_simd_make_constant, aarch64_expand_vector_init): New.
35484 2013-01-08 Jakub Jelinek <jakub@redhat.com>
35487 * asan.c (asan_clear_shadow): New function.
35488 (asan_emit_stack_protection): Use it.
35490 2013-01-08 Tejas Belagod <tejas.belagod@arm.com>
35492 * config/aarch64/aarch64-simd.md (aarch64_simd_vec_<su>mult_lo_<mode>,
35493 aarch64_simd_vec_<su>mult_hi_<mode>): Separate instruction and operand
35494 with tab instead of space.
35496 2013-01-08 Nick Clifton <nickc@redhat.com>
35498 * config/rl78/rl78.c (rl78_expand_prologue): Always select
35499 register bank 0 at the start of an interrupt handler.
35500 * config/rl78/rl78.md (mulsi3_g13): Correct values for MDBL and
35503 2013-01-08 James Greenhalgh <james.greenhalgh@arm.com>
35505 * config/aarch64/aarch64-simd.md
35506 (aarch64_simd_bsl<mode>_internal): Add floating-point modes.
35507 (aarch64_simd_bsl): Likewise.
35508 (aarch64_vcond_internal<mode>): Likewise.
35509 (vcond<mode><mode>): Likewise.
35510 (aarch64_cm<cmp><mode>): Fix constraints, add new modes.
35511 * config/aarch64/iterators.md (V_cmp_result): Add V2DF.
35513 2013-01-08 James Greenhalgh <james.greenhalgh@arm.com>
35515 * config/aarch64/aarch64-builtins.c
35516 (aarch64_builtin_vectorized_function): Handle sqrt, sqrtf.
35518 2013-01-08 Martin Jambor <mjambor@suse.cz>
35521 * tree-sra.c (analyze_access_subtree): Return true also after
35522 potentially creating a debug-only replacement.
35524 2013-01-08 Jakub Jelinek <jakub@redhat.com>
35526 PR middle-end/55890
35527 * tree-ssa-ccp.c (evaluate_stmt): Use gimple_call_builtin_p.
35529 PR tree-optimization/54120
35530 * tree-vrp.c (range_fits_type_p): Don't allow
35531 src_precision < precision from signed vr to unsigned_p
35532 if vr->min or vr->max is negative.
35533 (simplify_float_conversion_using_ranges): Test can_float_p
35534 against CODE_FOR_nothing.
35536 2013-01-08 Jakub Jelinek <jakub@redhat.com>
35537 Richard Biener <rguenther@suse.de>
35539 PR middle-end/55851
35540 * fold-const.c (int_binop_types_match_p): Allow all INTEGRAL_TYPE_P
35541 types instead of just INTEGER_TYPE types.
35543 2013-01-07 Mark Kettenis <kettenis@openbsd.org>
35545 * config/i386/openbsdelf.h (LIBGCC2_HAS_TF_MODE, LIBGCC2_TF_CEXT,
35548 2013-01-07 Steve Ellcey <sellcey@mips.com>
35551 * config/mips/mips.opt: Change mad to mmad to match documentation.
35553 2013-01-07 Georg-Johann Lay <avr@gjlay.de>
35556 * doc/extend.texi (AVR Named Address Spaces): __memx goes into
35557 .progmemx.data now.
35559 2013-01-07 Georg-Johann Lay <avr@gjlay.de>
35562 * config/avr/avr.h (ADDR_SPACE_COUNT): New enum.
35563 (avr_addrspace_t): Add .section_name field.
35564 * config/avr/avr.c (progmem_section): Use ADDR_SPACE_COUNT as
35566 (avr_addrspace): Same. Initialize .section_name. Remove last
35567 NULL entry. Put __memx into .progmemx.data.
35568 (progmem_section_prefix): Remove.
35569 (avr_asm_init_sections): No need to initialize progmem_section.
35570 (avr_asm_named_section): Use avr_addrspace[].section_name to get
35571 section name prefix.
35572 (avr_asm_select_section): Ditto. And use get_unnamed_section to
35573 retrieve the progmem section.
35574 * avr-c.c (avr_cpu_cpp_builtins): Use ADDR_SPACE_COUNT as loop
35575 boundary to run over avr_addrspace[].
35576 (avr_register_target_pragmas): Ditto.
35578 2013-01-06 Jakub Jelinek <jakub@redhat.com>
35580 * varasm.c (output_constant_def_contents): For asan_protect_global
35581 protected strings, adjust DECL_ALIGN if needed, before testing for
35583 (place_block_symbol): Adjust size for asan protected STRING_CSTs if
35584 TREE_CONSTANT_POOL_ADDRESS_P. Increase alignment for asan protected
35586 (output_object_block): For asan protected decls, emit asan padding
35587 after their contents.
35588 * asan.c (asan_protect_global): Don't check TREE_ASM_WRITTEN here.
35589 (asan_finish_file): Test it here instead.
35591 2013-01-07 Nick Clifton <nickc@redhat.com>
35592 Matthias Klose <doko@debian.org>
35593 Doug Kwan <dougkwan@google.com>
35594 H.J. Lu <hongjiu.lu@intel.com>
35597 * collect2.c (main): Support -fuse-ld=bfd and -fuse-ld=gold.
35599 * common.opt: Add fuse-ld=bfd and fuse-ld=gold.
35601 * gcc.c (LINK_COMMAND_SPEC): Pass -fuse-ld=* to collect2.
35603 * opts.c (comman_handle_option): Ignore -fuse-ld=bfd and -fuse-ld=gold.
35605 * doc/invoke.texi: Document -fuse-ld=bfd and -fuse-ld=gold.
35607 2013-01-07 Georg-Johann Lay <avr@gjlay.de>
35610 * doc/install.texi (Cross-Compiler-Specific Options): Document
35613 2013-01-07 Tejas Belagod <tejas.belagod@arm.com>
35615 * config/aarch64/arm_neon.h (vmovn_high_is16, vmovn_high_s32,
35616 vmovn_high_s64, vmovn_high_u16, vmovn_high_u32, vmovn_high_u64,
35617 vqmovn_high_s16, vqmovn_high_s32, vqmovn_high_s64, vqmovn_high_u16,
35618 vqmovn_high_u32, vqmovn_high_u64, vqmovun_high_s16, vqmovun_high_s32,
35619 vqmovun_high_s64): Fix source operand number and update copyright.
35621 2013-01-07 Richard Biener <rguenther@suse.de>
35623 PR middle-end/55890
35624 * gimple.h (gimple_call_builtin_p): New overload.
35625 * gimple.c (validate_call): New function.
35626 (gimple_call_builtin_p): Likewise.
35627 * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
35628 Use gimple_call_builtin_p.
35629 (find_func_clobbers): Likewise.
35630 * tree-ssa-strlen.c (adjust_last_stmt): Likewise.
35631 (strlen_optimize_stmt): Likewise.
35633 2013-01-07 James Greenhalgh <james.greenhalgh@arm.com>
35635 * config/aarch64/arm_neon.h (vld1_dup_*): Make argument const.
35636 (vld1q_dup_*): Likewise.
35637 (vld1_*): Likewise.
35638 (vld1q_*): Likewise.
35639 (vld1_lane_*): Likewise.
35640 (vld1q_lane_*): Likewise.
35642 2013-01-07 Richard Biener <rguenther@suse.de>
35644 * lto-streamer.h (LTO_minor_version): Bump to 2.
35646 2013-01-07 James Greenhalgh <james.greenhalgh@arm.com>
35648 * config/aarch64/aarch64-protos.h
35649 (aarch64_const_double_zero_rtx_p): Rename to...
35650 (aarch64_float_const_zero_rtx_p): ...this.
35651 (aarch64_float_const_representable_p): New.
35652 (aarch64_output_simd_mov_immediate): Likewise.
35653 * config/aarch64/aarch64-simd.md (*aarch64_simd_mov<mode>): Refactor
35654 move immediate case.
35655 * config/aarch64/aarch64.c
35656 (aarch64_const_double_zero_rtx_p): Rename to...
35657 (aarch64_float_const_zero_rtx_p): ...this.
35658 (aarch64_print_operand): Allow printing of new constants.
35659 (aarch64_valid_floating_const): New.
35660 (aarch64_legitimate_constant_p): Check for valid floating-point
35662 (aarch64_simd_valid_immediate): Likewise.
35663 (aarch64_vect_float_const_representable_p): New.
35664 (aarch64_float_const_representable_p): Likewise.
35665 (aarch64_simd_imm_zero_p): Also allow for floating-point 0.0.
35666 (aarch64_output_simd_mov_immediate): New.
35667 * config/aarch64/aarch64.md (*movsf_aarch64): Add new alternative.
35668 (*movdf_aarch64): Likewise.
35669 * config/aarch64/constraints.md (Ufc): New.
35670 (Y): call aarch64_float_const_zero_rtx.
35671 * config/aarch64/predicates.md (aarch64_fp_compare_operand): New.
35673 2013-01-07 Richard Biener <rguenther@suse.de>
35675 PR tree-optimization/55888
35676 PR tree-optimization/55862
35677 * tree-ssa-pre.c (phi_translate_1): Revert previous change.
35678 (valid_in_sets): Check if a NAME has a leader in AVAIL_OUT,
35679 not if it is contained therein.
35681 2013-01-07 Georg-Johann Lay <avr@gjlay.de>
35683 * config/avr/t-avr: Typo.
35685 2013-01-07 Georg-Johann Lay <avr@gjlay.de>
35688 * config/avr/t-avr: Don't automatically rebuild
35689 $(srcdir)/config/avr/t-multilib
35690 $(srcdir)/config/avr/avr-tables.opt
35691 $(srcdir)/doc/avr-mmcu.texi
35692 (avr-mcus): New phony target to build them on request.
35693 (s-avr-mlib, s-avr-mmcu-texi): Remove.
35694 * avr/avr-mcus.def: Adjust comments.
35696 2013-01-07 Uros Bizjak <ubizjak@gmail.com>
35698 * config/i386/i386.c (DEFAULT_PCC_STRUCT_RETURN): Remove.
35700 2013-01-06 Richard Sandiford <rdsandiford@googlemail.com>
35702 * file-find.c, file-find.h, realmpfr.c: Add FSF as copyright holder.
35704 2013-01-06 Richard Sandiford <rdsandiford@googlemail.com>
35706 * config/tilepro/gen-mul-tables.cc: Put copyright on one line.
35708 2013-01-05 David Edelsohn <dje.gcc@gmail.com>
35710 * config/rs6000/aix53.h (LIB_SPEC): Add -lpthreads when compiling
35711 to generate profiling.
35712 * config/rs6000/aix64.h (LIB_SPEC): Same.
35714 2013-01-04 Andrew Pinski <apinski@cavium.com>
35716 * config/aarch64/aarch64.c (aarch64_fixed_condition_code_regs):
35718 (TARGET_FIXED_CONDITION_CODE_REGS): Define.
35720 2013-01-04 Uros Bizjak <ubizjak@gmail.com>
35722 * config/i386/i386.c (ix86_legitimize_address): Call convert_to_mode
35724 (ix86_expand_move): Ditto.
35725 (ix86_zero_extend_to_Pmode): Ditto.
35726 (ix86_expand_call): Ditto.
35727 (ix86_expand_special_args_builtin): Ditto.
35728 (ix86_expand_builtin): Ditto.
35730 2013-01-04 Richard Biener <rguenther@suse.de>
35732 PR tree-optimization/55862
35733 * tree-ssa-pre.c (phi_translate_1): Valueize SSA names after
35734 translating them through PHI nodes.
35736 2013-01-04 Martin Jambor <mjambor@suse.cz>
35738 PR tree-optimization/55755
35739 * tree-sra.c (sra_modify_assign): Do not check that an access has no
35740 children when trying to avoid producing a VIEW_CONVERT_EXPR.
35742 2013-01-04 Marek Polacek <polacek@redhat.com>
35744 PR middle-end/55859
35745 * opts.c (default_options_optimization): Clarify error message.
35747 2013-01-04 Richard Biener <rguenther@suse.de>
35749 PR middle-end/55863
35750 * fold-const.c (split_tree): Undo -X - 1 to ~X folding for
35753 2013-01-03 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
35756 * config/pa/pa.md (movsi): Revert previous change.
35757 * config/pa/pa.c (pa_legitimate_constant_p): Reject all TLS symbol
35760 2013-01-03 Richard Henderson <rth@redhat.com>
35762 * config/i386/i386.c (ix86_expand_move): Always assign to op1
35763 after eliminating TLS symbols.
35765 2013-01-03 Marc Glisse <marc.glisse@inria.fr>
35768 * graphite-interchange.c (pdr_stride_in_loop): Use gmp_fprintf.
35769 * graphite-poly.c (debug_gmp_value): Likewise.
35771 2013-01-03 Uros Bizjak <ubizjak@gmail.com>
35774 * config/i386/i386-c.c (ix86_target_macros_internal): Depending on
35775 selected code model, define __code_mode_small__, __code_model_medium__,
35776 __code_model_large__, __code_model_32__ or __code_model_kernel__.
35777 * config/i386/cpuid.h (__cpuid, __cpuid_count) [__i386__]: Prefix
35778 xchg temporary register with %k. Declare temporary register as
35780 [__x86_64__]: For medium and large code models, preserve %rbx register.
35782 2013-01-03 Richard Biener <rguenther@suse.de>
35784 * tree-data-ref.c (dump_conflict_function): Use less vertical spacing.
35785 (dump_subscript): Adjust.
35786 (finalize_ddr_dependent): Do not dump redundant info.
35787 (analyze_siv_subscript): Adjust.
35788 (subscript_dependence_tester): Likewise.
35789 (compute_affine_dependence): Likewise.
35791 2013-01-03 Richard Biener <rguenther@suse.de>
35794 2013-01-03 Richard Biener <rguenther@suse.de>
35796 PR tree-optimization/55857
35797 * tree-vect-stmts.c (vectorizable_load): Do not setup
35798 re-alignment for invariant loads.
35800 2013-01-02 Richard Biener <rguenther@suse.de>
35802 * tree-vect-stmts.c (vectorizable_load): When vectorizing an
35803 invariant load do not generate a vector load from the scalar location.
35805 2013-01-03 Richard Biener <rguenther@suse.de>
35807 * tree-vect-loop.c (vect_analyze_loop_form): Clarify reason
35808 for not vectorizing.
35809 * tree-vect-data-refs.c (vect_create_addr_base_for_vector_ref): Do
35810 not build INDIRECT_REFs, call get_name once only.
35811 (vect_create_data_ref_ptr): Likewise. Dump base object kind
35812 based on DR_BASE_OBJECT, not DR_BASE_ADDRESS.
35814 2013-01-03 Richard Biener <rguenther@suse.de>
35816 PR tree-optimization/55857
35817 * tree-vect-stmts.c (vectorizable_load): Do not setup
35818 re-alignment for invariant loads.
35820 2013-01-03 Richard Biener <rguenther@suse.de>
35823 * lto-symtab.c (lto_symtab_merge_decls_1): As last resort, always
35824 prefer a built-in decl.
35826 2013-01-03 Jakub Jelinek <jakub@redhat.com>
35828 * gcc.c (process_command): Update copyright notice dates.
35829 * gcov.c (print_version): Likewise.
35830 * gcov-dump.c (print_version): Likewise.
35832 PR rtl-optimization/55838
35833 * loop-iv.c (iv_number_of_iterations): Call lowpart_subreg on
35834 iv0.step, iv1.step and step.
35836 2013-01-03 Jakub Jelinek <jakub@redhat.com>
35837 Marc Glisse <marc.glisse@inria.fr>
35839 PR tree-optimization/55832
35840 * fold-const.c (fold_binary_loc): For ABS_EXPR<x> >= 0 and
35841 ABS_EXPR<x> < 0 folding use constant_boolean_node instead of
35842 integer_{one,zero}_node.
35844 2013-01-03 Jakub Jelinek <jakub@redhat.com>
35847 * params.def (PARAM_MAX_VARTRACK_REVERSE_OP_SIZE): New param.
35848 * var-tracking.c (reverse_op): Don't add reverse ops to
35849 VALUEs that have already
35850 PARAM_VALUE (PARAM_MAX_VARTRACK_REVERSE_OP_SIZE) or longer locs list.
35852 2013-01-02 Gerald Pfeifer <gerald@pfeifer.com>
35854 * doc/contrib.texi: Note years as release manager for Mark Mitchell.
35856 2013-01-02 Teresa Johnson <tejohnson@google.com>
35858 * dumpfile.c (dump_loc): Print filename with location.
35859 * tree-ssa-loop-ivcanon.c (try_unroll_loop_completely): Use
35860 new location_t parameter to emit complete unroll message with
35861 new dump framework.
35862 (canonicalize_loop_induction_variables): Compute loops location
35863 and pass to try_unroll_loop_completely.
35864 * loop-unroll.c (report_unroll_peel): New function.
35865 (peel_loops_completely): Use new dump format with location
35866 for main dumpfile message, and invoke report_unroll_peel on success.
35867 (decide_unrolling_and_peeling): Ditto.
35868 (decide_peel_once_rolling): Remove old dumpfile message subsumed
35869 by report_unroll_peel.
35870 (decide_peel_completely): Ditto.
35871 (decide_unroll_constant_iterations): Ditto.
35872 (decide_unroll_runtime_iterations): Ditto.
35873 (decide_peel_simple): Ditto.
35874 (decide_unroll_stupid): Ditto.
35875 * cfgloop.c (get_loop_location): New function.
35876 * cfgloop.h (get_loop_location): Declare.
35878 2013-01-02 Sriraman Tallam <tmsriram@google.com>
35880 * config/i386/i386.c (fold_builtin_cpu): Remove unnecessary checks for
35883 2013-01-02 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
35885 PR middle-end/55198
35886 * expr.c (expand_expr_real_1): Don't use bitfield extraction for non
35887 BLKmode objects when EXPAND_MEMORY is specified.
35889 2013-01-02 Sriraman Tallam <tmsriram@google.com>
35891 * config/i386/i386.c (ix86_get_function_versions_dispatcher): Fix bug
35893 (fold_builtin_cpu): Do not share cpu model decls across statements.
35895 2013-01-02 Jason Merrill <jason@redhat.com>
35898 * tree.c (build_array_type_1): Revert earlier change.
35900 2013-01-02 Yufeng Zhang <yufeng.zhang@arm.com>
35902 * config/aarch64/aarch64-cores.def: Add entries for "cortex-a53" and
35904 * config/aarch64/aarch64-tune.md: Re-generate.
35906 2013-01-02 Richard Biener <rguenther@suse.de>
35908 * tree-vect-stmts.c (vectorizable_load): When vectorizing an
35909 invariant load do not generate a vector load from the scalar location.
35911 2013-01-02 Richard Biener <rguenther@suse.de>
35914 * configure.ac: Add $GMPINC to CFLAGS/CXXFLAGS.
35915 * configure: Regenerate.
35917 2013-01-02 Richard Sandiford <rdsandiford@googlemail.com>
35919 * builtins.c (expand_builtin_mathfn, expand_builtin_mathfn_2)
35920 (expand_builtin_mathfn_ternary, expand_builtin_mathfn_3)
35921 (expand_builtin_int_roundingfn_2): Keep the original target around
35922 for the fallback case.
35924 2013-01-02 Richard Sandiford <rdsandiford@googlemail.com>
35926 * tree-vrp.c (range_fits_type_p): Require the MSB of the double_int
35927 to be clear for sign changes.
35929 2013-01-01 Jan Hubicka <jh@suse.cz>
35931 * ipa-inline-analysis.c: Fix formatting.
35933 2013-01-01 Jakub Jelinek <jakub@redhat.com>
35935 PR tree-optimization/55831
35936 * tree-vect-loop.c (get_initial_def_for_induction): Use
35937 gsi_after_labels instead of gsi_start_bb.
35939 Copyright (C) 2013 Free Software Foundation, Inc.
35941 Copying and distribution of this file, with or without modification,
35942 are permitted in any medium without royalty provided the copyright
35943 notice and this notice are preserved.