1 2013-11-29 Jakub Jelinek <jakub@redhat.com>
2 Richard Biener <rguenther@suse.de>
5 * omp-low.c (simd_clone_create): Return NULL if for definition
6 !cgraph_function_with_gimple_body_p (old_node). Call cgraph_get_body
7 before calling cgraph_function_versioning.
8 (expand_simd_clones): Look for "omp declare simd" attribute first.
9 Don't check targetm.simd_clone.compute_vecsize_and_simdlen here.
10 Punt if node->global.inlined_to.
11 (pass_omp_simd_clone::gate): Also enable if in_lto_p && !flag_wpa.
12 Disable pass if targetm.simd_clone.compute_vecsize_and_simdlen is NULL.
13 * lto-streamer-out.c (hash_tree): Handle OMP_CLAUSE.
15 2013-11-29 Jakub Jelinek <jakub@redhat.com>
18 * tree-core.h (enum omp_clause_schedule_kind): Add
19 OMP_CLAUSE_SCHEDULE_LAST.
20 (enum omp_clause_default_kind): Add OMP_CLAUSE_DEFAULT_LAST.
21 (enum omp_clause_depend_kind): Add OMP_CLAUSE_DEPEND_LAST.
22 (enum omp_clause_map_kind): Add OMP_CLAUSE_MAP_LAST.
23 (enum omp_clause_proc_bind_kind): Add OMP_CLAUSE_PROC_BIND_LAST.
24 * lto-streamer-out.c (lto_is_streamable): Allow streaming
26 (DFS_write_tree_body): Handle OMP_CLAUSE.
27 * tree-streamer-out.c (pack_ts_omp_clause_value_fields): New
29 (streamer_pack_tree_bitfields): Call it for OMP_CLAUSE.
30 (write_ts_omp_clause_tree_pointers): New function.
31 (streamer_write_tree_body): Call it for OMP_CLAUSE.
32 (streamer_write_tree_header): For OMP_CLAUSE stream OMP_CLAUSE_CODE.
33 * tree-streamer-in.c (unpack_ts_omp_clause_value_fields): New
35 (unpack_value_fields): Call it for OMP_CLAUSE.
36 (streamer_alloc_tree): Handle OMP_CLAUSE.
37 (lto_input_ts_omp_clause_tree_pointers): New function.
38 (streamer_read_tree_body): Call it for OMP_CLAUSE.
40 2013-11-29 Joseph Myers <joseph@codesourcery.com>
42 * doc/implement-c.texi: Document C11 implementation-defined
43 behavior. Refer to -ffp-contract=fast for contraction behavior.
44 * doc/invoke.texi (-std=c99, std=c11): Update description of
46 (-std=gnu99): Don't mention as future default.
47 (-std=gnu11): Mention as intended future default.
48 * doc/standards.texi: Update descriptions of C99 and C11 support.
49 Limit statement about C99 facilities for freestanding
50 implementations to some platforms only.
52 2013-11-28 Jakub Jelinek <jakub@redhat.com>
55 * cfgexpand.c (expand_used_vars): Avoid warning on 32-bit
58 2013-11-28 Vladimir Makarov <vmakarov@redhat.com>
61 * ira.h (ira_setup_eliminable_regset): Remove parameter.
62 * ira.c (ira_setup_eliminable_regset): Ditto. Add
63 SUPPORTS_STACK_ALIGNMENT for crtl->stack_realign_needed.
64 Don't call lra_init_elimination.
65 (ira): Call ira_setup_eliminable_regset without arguments.
66 * loop-invariant.c (calculate_loop_reg_pressure): Remove argument
67 from ira_setup_eliminable_regset call.
68 * gcse.c (calculate_bb_reg_pressure): Ditto.
69 * haifa-sched.c (sched_init): Ditto.
70 * lra.h (lra_init_elimination): Remove the prototype.
71 * lra-int.h (lra_insn_recog_data): New member sp_offset. Move
72 used_insn_alternative upper.
73 (lra_eliminate_regs_1): Add one more parameter.
74 (lra-eliminate): Ditto.
75 * lra.c (lra_invalidate_insn_data): Set sp_offset.
76 (setup_sp_offset): New.
77 (lra_process_new_insns): Call setup_sp_offset.
78 (lra): Add argument to lra_eliminate calls.
79 * lra-constraints.c (get_equiv_substitution): Rename to get_equiv.
80 (get_equiv_with_elimination): New.
81 (process_addr_reg): Call get_equiv_with_elimination instead of
82 get_equiv_substitution.
83 (equiv_address_substitution): Ditto.
84 (loc_equivalence_change_p): Ditto.
85 (loc_equivalence_callback, lra_constraints): Ditto.
86 (curr_insn_transform): Ditto. Print the sp offset
87 (process_alt_operands): Prevent stack pointer reloads.
88 (lra_constraints): Remove one argument from lra_eliminate call.
89 Move it up. Mark used hard regs bfore it. Use
90 get_equiv_with_elimination instead of get_equiv_substitution.
91 * lra-eliminations.c (lra_eliminate_regs_1): Add parameter and
92 assert for param values combination. Use sp offset. Add argument
93 to lra_eliminate_regs_1 calls.
94 (lra_eliminate_regs): Add argument to lra_eliminate_regs_1 call.
95 (curr_sp_change): New static var.
96 (mark_not_eliminable): Add parameter. Update curr_sp_change.
97 Don't prevent elimination to sp if we can calculate its change.
98 Pass the argument to mark_not_eliminable calls.
99 (eliminate_regs_in_insn): Add a parameter. Use sp offset. Add
100 argument to lra_eliminate_regs_1 call.
101 (update_reg_eliminate): Move calculation of hard regs for spill
102 lower. Switch off lra_in_progress temporarily to generate regs
103 involved into elimination.
104 (lra_init_elimination): Rename to init_elimination. Make it
105 static. Set up insn sp offset, check the offsets at the end of
107 (process_insn_for_elimination): Add parameter. Pass its value to
108 eliminate_regs_in_insn.
109 (lra_eliminate): : Add parameter. Pass its value to
110 process_insn_for_elimination. Add assert for param values
111 combination. Call init_elimination. Don't update offsets in
112 equivalence substitutions.
113 * lra-spills.c (assign_mem_slot): Don't call lra_eliminate_regs_1
114 for created stack slot.
115 (remove_pseudos): Call lra_eliminate_regs_1 before changing memory
118 2013-11-28 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
120 * config/arm/iterators.md (vrint_conds): New int attribute.
121 * config/arm/vfp.md (<vrint_pattern><SDF:mode>2): Set conds attribute.
122 (smax<mode>3): Likewise.
123 (smin<mode>3): Likewise.
125 2013-11-28 Richard Sandiford <rdsandiford@googlemail.com>
127 * tree-core.h (tree_base): Document use of static_flag for SSA_NAME.
128 * tree.h (SSA_NAME_ANTI_RANGE_P, SSA_NAME_RANGE_TYPE): New macros.
129 * tree-ssanames.h (set_range_info): Add range_type argument.
130 (duplicate_ssa_name_range_info): Likewise.
131 * tree-ssanames.c (set_range_info): Take the range type as argument
132 and store it in SSA_NAME_ANTI_RANGE_P.
133 (duplicate_ssa_name_range_info): Likewise.
134 (get_range_info): Use SSA_NAME_ANTI_RANGE_P.
135 (set_nonzero_bits): Update call to set_range_info.
136 (duplicate_ssa_name_fn): Update call to duplicate_ssa_name_range_info.
137 * tree-ssa-copy.c (fini_copy_prop): Likewise.
138 * tree-vrp.c (remove_range_assertions): Update call to set_range_info.
139 (vrp_finalize): Likewise, passing anti-ranges directly.
141 2013-11-28 Richard Biener <rguenther@suse.de>
143 PR tree-optimization/59330
144 * tree-ssa-dce.c (eliminate_unnecessary_stmts): Simplify
145 and fix delayed marking of free calls not necessary.
147 2013-11-28 Andrew MacLeod <amacleod@redhat.com>
149 * tree-ssa-propagate.c (valid_gimple_call_p): Pass TREE_TYPE to
151 * ipa-prop.c (determine_known_aggregate_parts): Likewise.
153 2013-11-28 Terry Guo <terry.guo@arm.com>
155 * config/arm/arm.c (v7m_extra_costs): New table.
156 (arm_v7m_tune): Use it.
158 2013-11-28 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
160 * config/sol2.h (TIME_LIBRARY): Define.
162 2013-11-28 Richard Biener <rguenther@suse.de>
165 * lto-streamer-out.c (tree_is_indexable): TYPE_DECLs and
166 CONST_DECLs in function context are not indexable.
168 2013-11-28 Chung-Ju Wu <jasonwucj@gmail.com>
170 * config/nds32/nds32.c (nds32_rtx_costs): Adjust MULT cost if it is
171 not optimized for size.
173 2013-11-28 Jakub Jelinek <jakub@redhat.com>
175 * cfgexpand.c (struct stack_vars_data): Add asan_base and asan_alignb
177 (expand_stack_vars): For -fsanitize=address, use (and set initially)
178 data->asan_base as base for vars and update asan_alignb.
179 (expand_used_vars): Initialize data.asan_base and data.asan_alignb.
180 Pass them to asan_emit_stack_protection.
181 * asan.c (asan_detect_stack_use_after_return): New variable.
182 (asan_emit_stack_protection): Add pbase and alignb arguments.
183 Implement use after return sanitization.
184 * asan.h (asan_emit_stack_protection): Adjust prototype.
185 (ASAN_STACK_MAGIC_USE_AFTER_RET, ASAN_STACK_RETIRED_MAGIC): Define.
187 2013-11-28 Sergey Ostanevich <sergos.gnu@gmail.com>
189 * common.opt: Introduced a new option -fsimd-cost-model.
190 * doc/invoke.texi: Introduced a new openmp-simd warning and
191 a new -fsimd-cost-model option.
192 * tree-vectorizer.h (unlimited_cost_model): Interface updated
193 to rely on the particular loop info.
194 * tree-vect-data-refs.c (vect_peeling_hash_insert): Ditto.
195 (vect_peeling_hash_choose_best_peeling): Ditto.
196 (vect_enhance_data_refs_alignment): Ditto.
197 * tree-vect-slp.c (vect_slp_analyze_bb_1): Ditto.
198 * tree-vect-loop.c (vect_estimate_min_profitable_iters): Ditto
199 plus added openmp-simd warining.
201 2013-11-27 H.J. Lu <hongjiu.lu@intel.com>
203 PR rtl-optimization/59311
204 * dwarf2cfi.c (dwf_regno): Assert reg isn't pseudo register.
205 * lra-spills.c (spill_pseudos): Handle REG_XXX notes.
207 2013-11-27 Eric Botcazou <ebotcazou@adacore.com>
209 * var-tracking.c (track_expr_p): Do not track declarations for parts
210 of tracked parameters.
211 (add_stores): Do not track values for tracked parameters passed in
213 (vt_get_decl_and_offset): Handle PARALLEL.
214 (vt_add_function_parameter): Handle parameters with incoming PARALLEL.
216 2013-11-27 Jeff Law <law@redhat.com>
218 * tree-ssa-threadupdate.c (thread_through_all_blocks): Do not
219 clobber the loop structure thread_block was unsuccessful. If
220 thread_block was unsuccessful, cleanup appropriately.
222 2013-11-27 Chen Liqin <liqin.gcc@gmail.com>
224 * config/score/score.h (REG_CLASS_FROM_LETTER): Delete.
225 (score_char_to_class): Likewise.
227 2013-11-27 Kenneth Zadeck <zadeck@naturalbridge.com>
229 * fold-const.c (int_const_binop_1): Make INT_MIN % -1 return 0 with the
232 2013-11-27 Richard Biener <rguenther@suse.de>
235 * cgraphbuild.c (build_cgraph_edges): Do not build edges
237 (rebuild_cgraph_edges): Likewise.
238 * ipa-inline-analysis.c (estimate_function_body_sizes):
240 * tree-inline.c (estimate_num_insns): Estimate size of internal
242 (gimple_expand_calls_inline): Do not try inline-expanding
244 * lto-streamer-in.c (input_cfg): Stream loop safelen,
245 force_vect and simduid.
246 (input_struct_function_base): Stream has_force_vect_loops
247 and has_simduid_loops.
248 (input_function): Adjust.
249 * lto-streamer-out.c (output_cfg): Stream loop safelen,
250 force_vect and simduid.
251 (output_struct_function_base): Stream has_force_vect_loops
252 and has_simduid_loops.
254 2013-11-27 Kai Tietz <ktietz@redhat.com>
256 * config/i386/winnt.c (i386_pe_section_type_flags): Use const
259 2013-11-27 Kugan Vivekanandarajah <kuganv@linaro.org>
261 * doc/tm.texi.in (TARGET_HAS_NO_HW_DIVIDE): Define.
262 * doc/tm.texi (TARGET_HAS_NO_HW_DIVIDE): Regenerate.
264 2013-11-27 Marek Polacek <polacek@redhat.com>
267 * ubsan.c (instrument_null): Use gimple_store_p/gimple_assign_load_p
268 instead of walk_gimple_op.
269 (ubsan_pass): Adjust. Call instrument_null only if SANITIZE_NULL.
271 2013-11-27 Aldy Hernandez <aldyh@redhat.com>
272 Jakub Jelinek <jakub@redhat.com>
274 * cgraph.h (enum cgraph_simd_clone_arg_type): New.
275 (struct cgraph_simd_clone_arg, struct cgraph_simd_clone): New.
276 (struct cgraph_node): Add simdclone and simd_clones fields.
277 * config/i386/i386.c (ix86_simd_clone_compute_vecsize_and_simdlen,
278 ix86_simd_clone_adjust, ix86_simd_clone_usable): New functions.
279 (TARGET_SIMD_CLONE_COMPUTE_VECSIZE_AND_SIMDLEN,
280 TARGET_SIMD_CLONE_ADJUST, TARGET_SIMD_CLONE_USABLE): Define.
281 * doc/tm.texi.in (TARGET_SIMD_CLONE_COMPUTE_VECSIZE_AND_SIMDLEN,
282 TARGET_SIMD_CLONE_ADJUST, TARGET_SIMD_CLONE_USABLE): Add.
283 * doc/tm.texi: Regenerated.
284 * ggc.h (ggc_alloc_cleared_simd_clone_stat): New function.
285 * ipa-cp.c (determine_versionability): Fail if "omp declare simd"
286 attribute is present.
287 * omp-low.c: Include pretty-print.h, ipa-prop.h and tree-eh.h.
288 (simd_clone_vector_of_formal_parm_types): New function.
289 (simd_clone_struct_alloc, simd_clone_struct_copy,
290 simd_clone_vector_of_formal_parm_types, simd_clone_clauses_extract,
291 simd_clone_compute_base_data_type, simd_clone_mangle,
292 simd_clone_create, simd_clone_adjust_return_type,
293 create_tmp_simd_array, simd_clone_adjust_argument_types,
294 simd_clone_init_simd_arrays): New functions.
295 (struct modify_stmt_info): New type.
296 (ipa_simd_modify_stmt_ops, ipa_simd_modify_function_body,
297 simd_clone_adjust, expand_simd_clones, ipa_omp_simd_clone): New
299 (pass_data_omp_simd_clone): New variable.
300 (pass_omp_simd_clone): New class.
301 (make_pass_omp_simd_clone): New function.
302 * passes.def (pass_omp_simd_clone): New.
303 * target.def (TARGET_SIMD_CLONE_COMPUTE_VECSIZE_AND_SIMDLEN,
304 TARGET_SIMD_CLONE_ADJUST, TARGET_SIMD_CLONE_USABLE): New target
306 * target.h (struct cgraph_node, struct cgraph_simd_node): Declare.
307 * tree-core.h (OMP_CLAUSE_LINEAR_VARIABLE_STRIDE): Document.
308 * tree.h (OMP_CLAUSE_LINEAR_VARIABLE_STRIDE): Define.
309 * tree-pass.h (make_pass_omp_simd_clone): New prototype.
310 * tree-vect-data-refs.c: Include cgraph.h.
311 (vect_analyze_data_refs): Inline by hand find_data_references_in_loop
312 and find_data_references_in_bb, if find_data_references_in_stmt
313 fails, still allow calls to #pragma omp declare simd functions
314 in #pragma omp simd loops unless they contain data references among
315 the call arguments or in lhs.
316 * tree-vect-loop.c (vect_determine_vectorization_factor): Handle
318 (vect_transform_loop): Allow NULL STMT_VINFO_VECTYPE for calls without
320 * tree-vectorizer.h (enum stmt_vec_info_type): Add
321 call_simd_clone_vec_info_type.
322 (struct _stmt_vec_info): Add simd_clone_fndecl field.
323 (STMT_VINFO_SIMD_CLONE_FNDECL): Define.
324 * tree-vect-stmts.c: Include tree-ssa-loop.h,
325 tree-scalar-evolution.h and cgraph.h.
326 (vectorizable_call): Handle calls without lhs. Assert
327 !stmt_can_throw_internal instead of failing for it. Don't update
329 (struct simd_call_arg_info): New.
330 (vectorizable_simd_clone_call): New function.
331 (vect_transform_stmt): Call it.
332 (vect_analyze_stmt): Likewise. Allow NULL STMT_VINFO_VECTYPE for
334 * ipa-prop.c (ipa_add_new_function): Only call ipa_analyze_node
335 if cgraph_function_with_gimple_body_p is true.
337 2013-11-27 Tom de Vries <tom@codesourcery.com>
338 Marc Glisse <marc.glisse@inria.fr>
341 * fold-const.c (fold_indirect_ref_1): Don't create out-of-bounds
343 * gimple-fold.c (gimple_fold_indirect_ref): Same.
344 * tree-cfg.c (verify_expr): Give error if BIT_FIELD_REF is
347 2013-11-27 Eric Botcazou <ebotcazou@adacore.com>
350 * expr.c (emit_group_store): Don't write past the end of the structure.
351 (store_bit_field): Fix formatting.
353 2013-11-27 Richard Biener <rguenther@suse.de>
355 PR tree-optimization/59288
356 * tree-vect-loop.c (get_initial_def_for_induction): Do not
357 re-analyze the PHI but use STMT_VINFO_LOOP_PHI_EVOLUTION_PART.
359 2013-11-27 Marek Polacek <polacek@redhat.com>
361 * ubsan.c (ubsan_type_descriptor): If varpool_get_node returns NULL
362 for a decl, recreate that decl. Save into the hash table VAR_DECLs
363 rather than ADDR_EXPRs.
365 2013-11-27 Alexander Ivchenko <alexander.ivchenko@intel.com>
367 * config/ia64/hpux.h (TARGET_LIBC_HAS_FUNCTION): Fix typo.
369 2013-11-26 David Malcolm <dmalcolm@redhat.com>
371 * gengtype.c (struct seen_tag): New.
372 (already_seen_tag): New.
373 (mark_tag_as_seen): New.
374 (walk_subclasses): Support having multiple subclasses using the
375 same tag by tracking which tags have already been seen, and using
376 this to avoid adding duplicate cases to the "switch" statement.
377 The call to already_seen_tag introduces an O(N^2) when running
378 gengtype on N, the number of tags, due to the repeated linear
379 search, but currently max(N) is relatively small (the number of
380 GSS codes, which is 26).
381 (walk_type): Pass in a seen_tag for use by the walk_subclasses
384 * gimple.def (GIMPLE_OMP_ATOMIC_STORE, GIMPLE_OMP_RETURN): Rename
385 underlying GSS values for these codes (from GSS_OMP_ATOMIC_STORE to
386 GSS_OMP_ATOMIC_STORE_LAYOUT) to make clear that although
387 GIMPLE_OMP_RETURN happens to share the data layout of
388 GIMPLE_OMP_ATOMIC_STORE, they are not otherwise related.
389 (GIMPLE_OMP_PARALLEL, GIMPLE_OMP_TARGET): Likewise, rename
390 underlying GSS value from GSS_OMP_PARALLEL to
391 GSS_OMP_PARALLEL_LAYOUT to make clear that these gimple codes are
392 not directly related; they merely share in-memory layout.
393 (GIMPLE_OMP_SINGLE, GIMPLE_OMP_TEAMS): Likewise, rename GSS values
394 for these two codes from GSS_OMP_SINGLE to GSS_OMP_SINGLE_LAYOUT.
396 * gsstruct.def (GSS_OMP_PARALLEL, gimple_statement_omp_parallel):
398 (GSS_OMP_PARALLEL_LAYOUT, gimple_statement_omp_parallel_layout):
400 (GSS_OMP_SINGLE, gimple_statement_omp_single): Rename to...
401 (GSS_OMP_SINGLE_LAYOUT, gimple_statement_omp_single_layout):
403 (GSS_OMP_ATOMIC_STORE, gimple_statement_omp_atomic_store): Rename
405 (GSS_OMP_ATOMIC_STORE_LAYOUT, gimple_statement_omp_atomic_store):
408 * gimple.h (gimple_statement_resx): New subclass of
409 gimple_statement_eh_ctrl, with the invariant that
410 stmt->code == GIMPLE_RESX.
411 (gimple_statement_eh_dispatch): New subclass of
412 gimple_statement_eh_ctrl, with the invariant that
413 stmt->code == GIMPLE_EH_DISPATH.
415 (gimple_statement_omp_parallel): The existing class expressed
416 a layout (GSS_OMP_PARALLEL), but the codes with that layout
417 are not all related, so it makes more sense for this class to
418 express a *code* (GIMPLE_OMP_PARALLEL). GSS_OMP_PARALLEL has
419 been renamed to GSS_OMP_PARALLEL_LAYOUT to express this, so
420 rename the existing gimple_statement_omp_parallel class to...
421 (gimple_statement_omp_parallel_layout): ...this, expressing
422 a statement of structure layout GSS_OMP_PARALLEL_LAYOUT.
423 (gimple_statement_omp_taskreg): New subclass of
424 gimple_statement_omp_parallel_layout, expressing the invariant
425 that the code is one of GIMPLE_OMP_PARALLEL or GIMPLE_OMP_TASK,
426 as used by the various gimple_omp_taskreg_ accessors.
427 (gimple_statement_omp_parallel): Reintroduce this class, this time
428 as a subclass of gimple_statement_omp_taskreg to express the
429 invariant stmt->code == GIMPLE_OMP_PARALLEL.
430 (gimple_statement_omp_target) New class, subclassing
431 gimple_statement_omp_parallel_layout, to express the invariant
432 stmt->code == GIMPLE_OMP_TARGET.
433 (gimple_statement_omp_task): Update to inherit from
434 gimple_statement_omp_taskreg rather than
435 gimple_statement_omp_parallel.
437 (gimple_statement_omp_single): Rename to...
438 (gimple_statement_omp_single_layout): ...this, expressing the
439 invariant that the layout is GSS_OMP_SINGLE_LAYOUT.
440 (gimple_statement_omp_single): ...and reintroduce this name as
441 a subclass of gimple_statement_omp_single_layout, expressing
442 the invariant that code == GIMPLE_OMP_SINGLE.
443 (gimple_statement_omp_teams): New class, subclassing
444 gimple_statement_omp_single_layout, for the code GIMPLE_OMP_TEAMS.
446 (gimple_statement_omp_atomic_store): Rename to...
447 (gimple_statement_omp_atomic_store_layout): ...this, expressing
448 the invariant that the layout is GSS_OMP_ATOMIC_STORE_LAYOUT.
449 (gimple_statement_omp_atomic_store): ...and reintroduce this
450 name as a subclass of gimple_statement_omp_atomic_store_layout
451 with code == GIMPLE_OMP_ATOMIC_STORE.
452 (gimple_statement_omp_return): New class, subclassing
453 gimple_statement_omp_atomic_store_layout for the code
456 (is_a_helper <gimple_statement_eh_ctrl>::test): Delete.
457 (is_a_helper <gimple_statement_resx>::test): New.
458 (is_a_helper <gimple_statement_eh_dispatch>::test): New.
459 (is_a_helper <gimple_statement_omp_atomic_store>::test): Only
460 check for GIMPLE_OMP_ATOMIC_STORE, not for GIMPLE_OMP_RETURN.
461 (is_a_helper <gimple_statement_omp_return>::test): New.
462 (is_a_helper <gimple_statement_omp_taskreg>::test): New.
463 (is_a_helper <gimple_statement_omp_parallel>::test): Only check
464 for GIMPLE_OMP_PARALLEL, not for GIMPLE_OMP_TASK or
466 (is_a_helper <gimple_statement_omp_target>::test): New.
467 (is_a_helper <gimple_statement_omp_single>::test): Only check
468 for GIMPLE_OMP_SINGLE, not for GIMPLE_OMP_TEAMS.
469 (is_a_helper <gimple_statement_omp_teams>::test): New.
471 (is_a_helper <const gimple_statement_eh_ctrl>::test): Delete.
472 (is_a_helper <const gimple_statement_resx>::test): New.
473 (is_a_helper <const gimple_statement_eh_dispatch>::test): New.
474 (is_a_helper <const gimple_statement_omp_atomic_store>::test): Only
475 check for GIMPLE_OMP_ATOMIC_STORE, not for GIMPLE_OMP_RETURN.
476 (is_a_helper <const gimple_statement_omp_return>::test): New.
477 (is_a_helper <const gimple_statement_omp_taskreg>::test): New.
478 (is_a_helper <const gimple_statement_omp_parallel>::test): Only
479 check for GIMPLE_OMP_PARALLEL, not for GIMPLE_OMP_TASK or
481 (is_a_helper <const gimple_statement_omp_target>::test): New.
482 (is_a_helper <const gimple_statement_omp_single>::test): Only
483 check for GIMPLE_OMP_SINGLE, not for GIMPLE_OMP_TEAMS.
484 (is_a_helper <const gimple_statement_omp_teams>::test): New.
486 (gimple_omp_return_set_lhs, gimple_omp_return_lhs,
487 gimple_omp_return_lhs_ptr): Replace bogus downcasts to
488 gimple_statement_omp_atomic_store with downcasts to
489 gimple_statement_omp_return, thus requiring that the code be
491 (gimple_resx_region, gimple_resx_set_region): Replace bogus
492 downcasts to gimple_statement_eh_ctrl with downcasts to
493 gimple_statement_resx, thus requiring that the code be
495 (gimple_eh_dispatch_region, gimple_eh_dispatch_set_region):
496 Replace bogus downcasts to const gimple_statement_eh_ctrl with
497 downcasts to gimple_statement_eh_dispatch, thus requiring that
498 the code be GIMPLE_EH_DISPATCH.
499 (gimple_omp_taskreg_clauses, gimple_omp_taskreg_clauses_ptr)
500 gimple_omp_taskreg_set_clauses, gimple_omp_taskreg_child_fn,
501 gimple_omp_taskreg_child_fn_ptr, gimple_omp_taskreg_set_child_fn,
502 gimple_omp_taskreg_data_arg, gimple_omp_taskreg_data_arg_ptr,
503 gimple_omp_taskreg_set_data_arg): Replace bogus downcasts to
504 gimple_statement_omp_parallel with downcasts to
505 gimple_statement_omp_taskreg, thus requiring that the code be
506 either GIMPLE_OMP_PARALLEL or GIMPLE_OMP_TASK.
507 (gimple_omp_target_clauses, gimple_omp_target_clauses_ptr
508 gimple_omp_target_set_clauses, gimple_omp_target_child_fn
509 gimple_omp_target_child_fn_ptr, gimple_omp_target_set_child_fn
510 gimple_omp_target_data_arg, gimple_omp_target_data_arg_ptr
511 gimple_omp_target_set_data_arg): Replace bogus downcasts to
512 gimple_statement_omp_parallel with downcasts to
513 gimple_statement_omp_target, thus requiring that the code be
515 (gimple_omp_teams_clauses, gimple_omp_teams_clauses_ptr
516 gimple_omp_teams_set_clauses): Replace bogus downcasts to
517 gimple_statement_omp_single with downcasts to
518 gimple_statement_omp_teams, thus requiring that the code be
521 * gimple.c (gimple_build_resx): Fix bogus as_a<> to use
522 gimple_statement_resx.
523 (gimple_build_eh_dispatch): Fix bogus as_a<> to use
524 gimple_statement_eh_dispatch.
526 2013-11-26 Jakub Jelinek <jakub@redhat.com>
528 PR tree-optimization/59014
529 * tree-vrp.c (register_edge_assert_for_1): Don't look
530 through conversions from non-integral types or through
531 narrowing conversions.
534 * config/i386/i386.c (device_alg): Fix up formatting.
535 (ix86_expand_set_or_movmem): Handle max_size < epilogue_size_needed
536 similarly to count && count < epilogue_size_needed. Fix up
538 * builtins.c (determine_block_size): Fix comment typo.
541 * ubsan.c (ubsan_source_location): Don't add any location
542 to ADDR_EXPR in the ctor. Revert 2013-11-22 change.
543 (ubsan_create_data): Strip block info from LOC.
546 * tree-vect-generic.c (optimize_vector_constructor): Don't optimize
547 if there isn't optab handler for the corresponding vector PLUS_EXPR.
549 PR rtl-optimization/59166
550 * ira.c (find_moveable_pseudos): Use DF_REF_REAL_LOC instead of
551 DF_REF_LOC in validate_change call.
552 (split_live_ranges_for_shrink_wrap): Likewise.
555 * omp-low.c (lower_rec_input_clause): For reduction with placeholder
556 of references to constant size types in simd loops, defer emitting
557 initializer for the new_var, emit it later on only if not using
561 * omp-low.c (expand_omp_for_static_chunk): Don't set loop->latch
562 for the inner loop if collapse_bb is non-NULL.
563 (expand_omp_simd): Use cont_bb rather than e->dest as latch.
565 2013-11-26 Yufeng Zhang <yufeng.zhang@arm.com>
567 * config/arm/arm.c (arm_legitimize_address): Check xop1 is not
568 a constant immediate before force_reg.
570 2013-11-26 Richard Biener <rguenther@suse.de>
572 PR tree-optimization/59245
573 * tree-vrp.c (set_value_range): Assert that we don't have
574 overflowed constants (but our infinities).
575 (set_value_range_to_value): Drop all overflow flags.
576 (vrp_visit_phi_node): Likewise.
577 (vrp_visit_assignment_or_call): Use set_value_range_to_value
578 to set a constant range.
580 2013-11-26 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
583 * config/arm/arm.md (*zextendsidi_negsi): New pattern.
584 * config/arm/arm.c (arm_new_rtx_costs): Initialise cost correctly
585 for zero_extend case.
587 2013-11-26 H.J. Lu <hongjiu.lu@intel.com>
590 * configure.ac (install_gold_as_default): New. Set to yes for
591 --disable-ld or --enable-gold=default.
592 (gcc_cv_ld_gold_srcdir): New.
593 (gcc_cv_ld): Also check in-tree gold if install_gold_as_default
595 (ORIGINAL_LD_BFD_FOR_TARGET): New AC_SUBST.
596 (ORIGINAL_LD_GOLD_FOR_TARGET): Likewise.
597 * configure: Regenerated.
599 * exec-tool.in (ORIGINAL_LD_BFD_FOR_TARGET): New variable.
600 (ORIGINAL_LD_GOLD_FOR_TARGET): Likewise.
601 (original) [collect-ld && -fuse-ld=bfd]: Set to
602 $ORIGINAL_LD_BFD_FOR_TARGET.
603 (original) [collect-ld && -fuse-ld=gold]: Set to
604 $ORIGINAL_LD_GOLD_FOR_TARGET.
605 (dir) [collect-ld && ../gold/ld-new]: Set to gold.
606 (fast_install) [collect-ld && ../gold/ld-new]: Set to yes.
608 2013-11-26 Terry Guo <terry.guo@arm.com>
610 * config/arm/arm.c (require_pic_register): Handle high pic base
611 register for thumb-1.
612 (arm_load_pic_register): Also initialize high pic base register.
613 * doc/invoke.texi: Update documentation for option -mpic-register.
615 2013-11-26 Oleg Endo <olegendo@gcc.gnu.org>
619 * config/sh/sh.c (max_mov_insn_displacement, disp_addr_displacement):
620 Prefix function names with 'sh_'. Make them non-static.
621 * config/sh/sh-protos.h (sh_disp_addr_displacement,
622 sh_max_mov_insn_displacement): Add declarations.
623 * config/sh/constraints.md (Q): Reject QImode.
624 (Sdd): Use match_code "mem".
625 (Snd): Fix erroneous matching of non-memory operands.
626 * config/sh/predicates.md (short_displacement_mem_operand): New
628 (general_movsrc_operand): Disallow PC relative QImode loads.
629 * config/sh/sh.md (*mov<mode>_reg_reg): Remove it.
630 (*movqi, *movhi): Merge both insns into...
631 (*mov<mode>): ... this new insn. Replace generic 'm' constraints with
632 'Snd' and 'Sdd' constraints. Calculate insn length dynamically based
633 on the operand types.
635 2013-11-26 Joern Rennecke <joern.rennecke@embecosm.com>
637 * config/epiphany/epiphany.c (epiphany_expand_prologue):
638 Remove unused variable save_config.
639 (epiphany_compute_frame_size): Avoid signed/unsigned comparison in
642 2013-11-26 James Greenhalgh <james.greenhalgh@arm.com>
644 * config/aarch64/arm_neon.h (vtbx1_<psu>8): Emulate behaviour
645 using other intrinsics.
646 (vtbx3_<psu>8): Likewise.
648 2013-11-26 James Greenhalgh <james.greenhalgh@arm.com>
650 * config/aarch64/aarch64-builtins.c
651 (aarch64_types_bsl_p_qualifiers): New.
652 (aarch64_types_bsl_s_qualifiers): Likewise.
653 (aarch64_types_bsl_u_qualifiers): Likewise.
654 (TYPES_BSL_P): Likewise.
655 (TYPES_BSL_S): Likewise.
656 (TYPES_BSL_U): Likewise.
657 (BUILTIN_VALLDIF): Likewise.
658 (BUILTIN_VDQQH): Likewise.
659 * config/aarch64/aarch64-simd-builtins.def (simd_bsl): New.
660 * config/aarch64/aarch64-simd.md
661 (aarch64_simd_bsl<mode>_internal): Handle more modes.
662 (aarch64_simd_bsl<mode>): Likewise.
663 * config/aarch64/arm_neon.h
664 (vbsl<q>_<fpsu><8,16,32,64): Implement using builtins.
665 * config/aarch64/iterators.md (VALLDIF): New.
666 (Vbtype): Handle more modes.
668 2013-11-26 James Greenhalgh <james.greenhalgh@arm.com>
670 * config/aarch64/aarch64-builtins.c
671 (aarch64_type_qualifiers): Add qualifier_poly.
672 (aarch64_build_scalar_type): Also build Poly types.
673 (aarch64_build_vector_type): Likewise.
674 (aarch64_build_type): Likewise.
675 (aarch64_build_signed_type): New.
676 (aarch64_build_unsigned_type): Likewise.
677 (aarch64_build_poly_type): Likewise.
678 (aarch64_init_simd_builtins): Also handle Poly types.
680 2013-11-26 James Greenhalgh <james.greenhalgh@arm.com>
682 * config/aarch64/aarch64-builtins.c
683 (VAR1): Use new naming scheme for aarch64_builtins.
684 (aarch64_builtin_vectorized_function): Use new
685 aarch64_builtins names.
687 2013-11-26 Richard Biener <rguenther@suse.de>
689 PR tree-optimization/59287
690 * tree-ssa-structalias.c (get_constraint_for_component_ref):
691 Remove no longer necessary special-casing of union accesses.
693 2013-11-26 Richard Biener <rguenther@suse.de>
695 * pretty-print.c (output_buffer::~output_buffer): Really
698 2013-11-25 Jeff Law <law@redhat.com>
700 * tree-ssa-threadupdate.c (thread_through_all_blocks): Selectively
701 invalidate loop information.
703 2013-11-25 Oleg Endo <olegendo@gcc.gnu.org>
705 * config/sh/sh.md (doloop_end_split): Add missing SI mode.
707 2013-11-25 Oleg Endo <olegendo@gcc.gnu.org>
711 * config/sh/sh_optimize_sett_clrt.cc (struct ccreg_value): Update
713 (sh_optimize_sett_clrt::find_last_ccreg_values): Check stack of
714 previously visited basic blocks before recursing instead of only one
717 2013-11-25 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
719 * config/aarch64/aarch64.c (cortexa53_tuning): New struct.
720 * config/aarch64/aarch64-cores.def (cortex-a53):
721 Use cortexa53 tuning struct.
723 2013-11-25 Andrew Macleod <amacleod@redhat.com>
726 * fold-const.c: Include hash-table.h.
728 2013-11-25 Marek Polacek <polacek@redhat.com>
731 * ubsan.c (ubsan_create_data): Increase the size of the fields array.
733 2013-11-25 Richard Biener <rguenther@suse.de>
735 * tree-dfa.c: Remove unused convert.h include.
737 2013-11-25 Terry Guo <terry.guo@arm.com>
739 * doc/invoke.texi (-mslow-flash-data): Document new option.
740 * config/arm/arm.opt (mslow-flash-data): New option.
741 * config/arm/arm-protos.h (arm_max_const_double_inline_cost): Declare
743 * config/arm/arm.h (TARGET_USE_MOVT): Always true when literal pools
745 (arm_disable_literal_pool): Declare it.
746 * config/arm/arm.c (arm_disable_literal_pool): New variable.
747 (arm_option_override): Handle new option.
748 (thumb2_legitimate_address_p): Don't allow symbol references when
749 literal pools are disabled.
750 (arm_max_const_double_inline_cost): New function.
751 * config/arm/arm.md (types.md): Include it before ...
752 (use_literal_pool): New attribute.
753 (enabled): Use new attribute.
754 (split pattern): Replace symbol+offset with MOVW/MOVT.
756 2013-11-24 Steven Bosscher <steven@gcc.gnu.org>
759 Revert previous commit.
761 2013-11-24 Steven Bosscher <steven@gcc.gnu.org>
763 * jump.c (reset_insn_reg_label_operand_notes): New function,
765 (init_label_info): ... here. Reset LABEL_NUSES in cfglayout mode.
766 * cfgcleanup.c (delete_dead_jump_tables_between): New function,
768 (delete_dead_jumptables): ... here. Handle cfglayout mode.
769 (cleanup_cfg): Delete dead jump tables in cfglayout mode if an
770 expensive CFG cleanup is called for.
771 * cfgrtl.c (fixup_reorder_chain): Remove BARRIERs from fallthru paths.
772 (cfg_layout_finalize): Delete dead jump tables before re-building
774 * ira.c (ira): Rebuild jump labels *after* deleting unreachable
775 basic blocks, not before.
776 * loop-init.c (rtl_loop_done): Call for an expensive CFG cleanup.
778 * modulo-sched.c (sms_schedule): Do not look for BARRIERs in the
779 insns chain of a scheduling extended basic block, they cannot appear
780 there in cfglayout mode.
782 2013-11-24 Tobias Burnus <burnus@net-b.de>
784 * doc/invoke.texi (-fsanitize=leak): Add link to the wiki page.
786 2013-11-24 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
788 * config/rs6000/rs6000.c (rs6000_expand_vec_perm_const_1): Correct
791 2013-11-24 H.J. Lu <hongjiu.lu@intel.com>
793 * graphite-sese-to-poly.c: Don't include extra "expr.h".
795 2013-11-23 Eric Botcazou <ebotcazou@adacore.com>
797 * cilk-common.c (expand_builtin_cilk_detach): Dereference worker.
799 2013-11-23 David Edelson <dje.gcc@gmail.com>
800 Andrew Dixie <andrewd@gentrack.com>
803 * config/rs6000/aix.h (COLLECT_SHARED_INIT_FUNC): Define.
804 (COLLECT_SHARED_FINI_FUNC): Define.
806 * collect2.c (aix_shared_initname): Declare.
807 (aix_shared_fininame): Declare.
808 (symkind): Add SYM_AIXI and SYM_AIXD.
809 (scanfilter_masks): Add SCAN_AIXI and SCAN_AIXD.
810 (struct names special): Add GLOBAL__AIXI_ and GLOBAL__AIXD_.
811 (aixlazy_flag): Parse.
812 (extract_init_priority): SYM_AIXI and SYM_AIXD have highest priority.
813 (scan_prog_file, COFF): Handle SYM_AIXI and SYM_AIXD.
815 2013-11-23 David Edelsohn <dje.gcc@gmail.com>
817 * config/rs6000/rs6000.c (IN_NAMED_SECTION): New macro.
818 (rs6000_xcoff_select_section): Place decls with stricter alignment
820 (rs6000_xcoff_unique_section): Allow unique sections for
821 uninitialized data with strict alignment.
823 2013-11-23 Jakub Jelinek <jakub@redhat.com>
825 PR tree-optimization/59154
826 * tree-ssa-reassoc.c (maybe_optimize_range_tests): When changing
827 rhs1 of a cast and new_op is invariant, fold_convert it.
828 * tree-ssa-forwprop.c (ssa_forward_propagate_and_combine): Only call
829 simplify_conversion_from_bitmask if rhs1 is a SSA_NAME.
831 2013-11-23 Uros Bizjak <ubizjak@gmail.com>
834 * config/i386/i386.c (bdesc_multi_arg) <IX86_BUILTIN_VFRCZSS>:
835 Declare as MULTI_ARG_1_SF instruction.
836 <IX86_BUILTIN_VFRCZSD>: Decleare as MULTI_ARG_1_DF instruction.
837 * config/i386/sse.md (*xop_vmfrcz<mode>2): Rename
838 from *xop_vmfrcz_<mode>.
839 * config/i386/xopintrin.h (_mm_frcz_ss): Use __builtin_ia32_movss
840 to merge scalar result with __A.
841 (_mm_frcz_sd): Use __builtin_ia32_movsd to merge scalar
844 2013-11-23 Eric Botcazou <ebotcazou@adacore.com>
846 * gimplify.h (recalculate_side_effects): Delete.
847 * gimplify.c (recalculate_side_effects): Make static and add comment.
849 2013-11-23 Richard Sandiford <rdsandiford@googlemail.com>
851 * config/sh/sh.md: Use nonimmediate_operand rather than general_operand
852 for the destination of a define_peephole2. Likewise register_operand
853 rather than arith_reg_operand. Remove constraints from
856 2013-11-23 Richard Sandiford <rdsandiford@googlemail.com>
858 * config/mn10300/mn10300-protos.h (mn10300_store_multiple_operation):
860 (mn10300_store_multiple_operation_p): Declare.
861 * config/mn10300/mn10300.c (mn10300_store_multiple_operation):
863 (mn10300_store_multiple_operation_p): ...this and remove mode
865 * config/mn10300/predicates.md (mn10300_store_multiple_operation):
868 2013-11-23 Richard Sandiford <rdsandiford@googlemail.com>
870 * config/bfin/bfin-protos.h (push_multiple_operation): Delete.
871 (pop_multiple_operation): Delete.
872 (analyze_push_multiple_operation): Declare.
873 (analyze_pop_multiple_operation): Declare.
874 * config/bfin/bfin.c (push_multiple_operation): Rename to...
875 (analyze_push_multiple_operation): ...this and remove mode argument.
876 (pop_multiple_operation): Rename to...
877 (analyze_pop_multiple_operation): ...this and remove mode argument.
878 * config/bfin/predicates.md (push_multiple_operation): Define.
879 (pop_multiple_operation): Likewise.
881 2013-11-23 Alan Modra <amodra@gmail.com>
883 * config/rs6000/vsx.md (fusion peepholes): Disable when !TARGET_VSX.
885 2013-11-22 Jakub Jelinek <jakub@redhat.com>
888 * common.opt (static-liblsan): Add.
889 * config/gnu-user.h (STATIC_LIBLSAN_LIBS, STATIC_LIBUBSAN_LIBS):
891 * flag-types.h (enum sanitize_code): Add SANITIZE_LEAK. Renumber
892 SANITIZE_SHIFT, SANITIZE_DIVIDE, SANITIZE_UNREACHABLE, SANITIZE_VLA,
894 * opts.c (common_handle_option): Handle -fsanitize=leak.
895 * gcc.c (ADD_STATIC_LIBLSAN_LIBS, LIBLSAN_SPEC): Define.
896 (LIBUBSAN_SPEC): Don't test LIBUBSAN_EARLY_SPEC.
897 (LIBUBSAN_EARLY_SPEC): Remove.
898 (SANITIZER_EARLY_SPEC): Don't do anything for libubsan.
899 (SANITIZER_SPEC): Add -fsanitize=leak handling.
900 (sanitize_spec_function): Handle %sanitize(leak).
901 * doc/invoke.texi (-static-liblsan, -fsanitize=leak): Document.
903 2013-11-22 Aldy Hernandez <aldyh@redhat.com>
904 Jakub Jelinek <jakub@redhat.com>
906 * ipa.c (symtab_remove_unreachable_nodes): Fix up comment typos.
907 * ipa-prop.c (get_vector_of_formal_parm_types): Renamed to ...
908 (ipa_get_vector_of_formal_parm_types): ... this. No longer static.
909 (ipa_modify_formal_parameters): Adjust caller. Remove
910 synth_parm_prefix argument. Use operator enum instead of bit fields.
911 Add assert for properly handling vector of references. Handle
912 creating brand new parameters.
913 (ipa_modify_call_arguments): Use operator enum instead of bit
915 (ipa_combine_adjustments): Same. Assert that IPA_PARM_OP_NEW is not
917 (ipa_modify_expr, get_ssa_base_param, ipa_get_adjustment_candidate):
919 (ipa_dump_param_adjustments): Rename reduction to new_decl.
920 Use operator enum instead of bit fields.
921 * ipa-prop.h (enum ipa_parm_op): New.
922 (struct ipa_parm_adjustment): New field op. Rename reduction
923 to new_decl, new_arg_prefix to arg_prefix and remove remove_param
925 (ipa_modify_formal_parameters): Remove last argument.
926 (ipa_get_vector_of_formal_parm_types, ipa_modify_expr,
927 ipa_get_adjustment_candidate): New prototypes.
928 * tree-sra.c (turn_representatives_into_adjustments): Use operator
929 enum. Set arg_prefix.
930 (get_adjustment_for_base): Use operator enum.
931 (sra_ipa_modify_expr): Rename to ipa_modify_expr and move to
933 (sra_ipa_modify_assign): Rename sra_ipa_modify_expr to ipa_modify_expr.
934 (ipa_sra_modify_function_body): Same. No longer static.
935 (sra_ipa_reset_debug_stmts): Use operator enum.
936 (modify_function): Do not pass prefix argument.
938 2013-11-22 Jakub Jelinek <jakub@redhat.com>
940 * ubsan.c (ubsan_source_location): Don't crash on unknown locations.
941 (ubsan_pass): Ignore clobber stmts.
943 * sanitizer.def (BUILT_IN_UBSAN_HANDLE_MISSING_RETURN): New built-in.
944 * opts.c (common_handle_option): Add -fsanitize=return.
945 * flag-types.h (enum sanitize_code): Add SANITIZE_RETURN and
946 or it into SANITIZE_UNDEFINED.
948 * sanitizer.def (BUILT_IN_ASAN_BEFORE_DYNAMIC_INIT,
949 BUILT_IN_ASAN_AFTER_DYNAMIC_INIT): New.
950 * asan.c (instrument_derefs): Handle also VAR_DECL loads/stores.
951 Don't instrument accesses to VAR_DECLs which are known to fit
952 into their bounds and the vars are known to have shadow bytes
953 indicating allowed access.
954 (asan_dynamic_init_call): New function.
955 (asan_add_global): If vnode->dynamically_initialized,
956 set __has_dynamic_init to 1 instead of 0.
957 (initialize_sanitizer_builtins): Add BT_FN_VOID_CONST_PTR var.
958 * asan.h (asan_dynamic_init_call): New prototype.
959 * cgraph.h (varpool_node): Add dynamically_initialized bitfield.
961 2013-11-22 Martin Jambor <mjambor@suse.cz>
963 PR rtl-optimization/10474
964 * ira.c (interesting_dest_for_shprep_1): New function.
965 (interesting_dest_for_shprep): Use interesting_dest_for_shprep_1,
966 also check parallels.
968 2013-11-22 Jeff Law <law@redhat.com>
970 * tree-ssa-threadedge.c (record_temporary_equivalence): Handle
971 NULL for RHS, which we used to invalidate equivalences.
972 (record_temporary_equivalences_from_phis): New bitmap arguments
973 and a boolean indicating if we have passed a backedge. If we
974 have passed a backedge, then set the appropriate bit in the
975 bitmaps for the SRC & DEST of PHIs creating equivalences.
976 (invalidate_equivalences, dummy_simplify): New functions.
977 (cond_arg_set_in_b): Remove.
978 (record_temporary_equivalences_from_stmts_at_dest): New bitmap
979 arguments and a boolean indicating if we have passed a backedge.
980 If we have passed a backedge, then perform invalidations as needed.
981 (thread_around_empty_blocks): If we have seen a backedge, then
982 use the dummy simplify routine.
983 (thread_through_normal_block): Likewise. Pass bitmaps and
984 backedge status to children. Do not pessimize so much when
985 traversing backedges in the CFG.
986 (thread_across_edge): Manage the SRC_MAP/DST_MAP bitmaps.
987 If we have seen a backedge, then use the dummy simplify routine.
988 Do not pessimize so much when traversing backedges.
990 2013-11-22 Hans-Peter Nilsson <hp@axis.com>
992 * config/cris/cris.c (cris_atomic_align_for_mode): New function.
993 (TARGET_ATOMIC_ALIGN_FOR_MODE): Define.
995 2013-11-22 Yuri Rumyantsev <ysrumyan@gmail.com>
997 * config/i386/i386.c(processor_alias_table): Enable PTA_AES,
998 PTA_PCLMUL and PTA_RDRND for Silvermont.
999 * config/i386/driver-i386.c (host_detect_local_cpu): Set up cpu
1002 * doc/invoke.texi: Mention AES, PCLMUL and RDRND for Silvermont.
1004 2013-11-22 Andrew MacLeod <amacleod@redhat.com>
1006 * hooks.h (hook_uint_mode_0): Add Prototype.
1007 * hooks.c (hook_uint_mode_0): New default function.
1008 * target.def (atomic_align_for_mode): New target hook.
1009 * tree.c (build_atomic_base): Add alignment override parameter.
1010 (build_common_tree_nodes): Use atomic alignment override.
1011 * doc/tm.texi.in (TARGET_ATOMIC_ALIGN_FOR_MODE): Define.
1012 * doc/tm.texi (TARGET_ATOMIC_ALIGN_FOR_MODE): Add description.
1014 2013-11-22 Andrew MacLeod <amacleod@redhat.com>
1016 * gimple.h: Remove all includes.
1017 (recalculate_side_effects): Move prototype to gimplify.h.
1018 * Makefile.in (PLUGIN_HEADERS): Add flattened gimple.h includes.
1019 * gengtype.c (open_base_files): Add gimple.h include list.
1020 * gimplify.h (recalculate_side_effects): Relocate prototype here.
1021 * gimple.c: Adjust include list.
1022 (recalculate_side_effects): Move to gimplify.c.
1023 * gimplify.c: Adjust include list.
1024 (recalculate_side_effects): Relocate from gimple.c.
1025 * alias.c: Add required include files removed from gimple.h.
1027 * builtins.c: Likewise.
1028 * calls.c: Likewise.
1029 * cfgexpand.c: Likewise.
1030 * cfgloop.c: Likewise.
1031 * cfgloopmanip.c: Likewise.
1032 * cgraphbuild.c: Likewise.
1033 * cgraph.c: Likewise.
1034 * cgraphclones.c: Likewise.
1035 * cgraphunit.c: Likewise.
1036 * cilk-common.c: Likewise.
1037 * data-streamer.c: Likewise.
1038 * data-streamer-in.c: Likewise.
1039 * data-streamer-out.c: Likewise.
1041 * dwarf2out.c: Likewise.
1042 * emit-rtl.c: Likewise.
1043 * except.c: Likewise.
1045 * fold-const.c: Likewise.
1046 * function.c: Likewise.
1047 * gimple-builder.c: Likewise.
1048 * gimple-expr.c: Likewise.
1049 * gimple-fold.c: Likewise.
1050 * gimple-iterator.c: Likewise.
1051 * gimple-low.c: Likewise.
1052 * gimple-pretty-print.c: Likewise.
1053 * gimple-ssa-isolate-paths.c: Likewise.
1054 * gimple-ssa-strength-reduction.c: Likewise.
1055 * gimple-streamer-in.c: Likewise.
1056 * gimple-streamer-out.c: Likewise.
1057 * gimple-walk.c: Likewise.
1058 * gimplify-me.c: Likewise.
1059 * graphite-blocking.c: Likewise.
1060 * graphite.c: Likewise.
1061 * graphite-clast-to-gimple.c: Likewise.
1062 * graphite-dependences.c: Likewise.
1063 * graphite-interchange.c: Likewise.
1064 * graphite-optimize-isl.c: Likewise.
1065 * graphite-poly.c: Likewise.
1066 * graphite-scop-detection.c: Likewise.
1067 * graphite-sese-to-poly.c: Likewise.
1068 * internal-fn.c: Likewise.
1070 * ipa-cp.c: Likewise.
1071 * ipa-devirt.c: Likewise.
1072 * ipa-inline-analysis.c: Likewise.
1073 * ipa-inline.c: Likewise.
1074 * ipa-profile.c: Likewise.
1075 * ipa-prop.c: Likewise.
1076 * ipa-pure-const.c: Likewise.
1077 * ipa-reference.c: Likewise.
1078 * ipa-split.c: Likewise.
1079 * ipa-utils.c: Likewise.
1080 * langhooks.c: Likewise.
1081 * lto-cgraph.c: Likewise.
1082 * lto-compress.c: Likewise.
1083 * lto-opts.c: Likewise.
1084 * lto-section-in.c: Likewise.
1085 * lto-section-out.c: Likewise.
1086 * lto-streamer.c: Likewise.
1087 * lto-streamer-in.c: Likewise.
1088 * lto-streamer-out.c: Likewise.
1089 * omp-low.c: Likewise.
1090 * opts-global.c: Likewise.
1091 * passes.c: Likewise.
1092 * predict.c: Likewise.
1093 * profile.c: Likewise.
1096 * stor-layout.c: Likewise.
1097 * symtab.c: Likewise.
1098 * targhooks.c: Likewise.
1099 * toplev.c: Likewise.
1100 * tracer.c: Likewise.
1101 * trans-mem.c: Likewise.
1102 * tree-affine.c: Likewise.
1104 * tree-call-cdce.c: Likewise.
1105 * tree-cfg.c: Likewise.
1106 * tree-cfgcleanup.c: Likewise.
1107 * tree-chrec.c: Likewise.
1108 * tree-complex.c: Likewise.
1109 * tree-data-ref.c: Likewise.
1110 * tree-dfa.c: Likewise.
1111 * tree-eh.c: Likewise.
1112 * tree-emutls.c: Likewise.
1113 * tree-if-conv.c: Likewise.
1114 * tree-inline.c: Likewise.
1115 * tree-into-ssa.c: Likewise.
1116 * tree-loop-distribution.c: Likewise.
1117 * tree-nested.c: Likewise.
1118 * tree-nrv.c: Likewise.
1119 * tree-object-size.c: Likewise.
1120 * tree-outof-ssa.c: Likewise.
1121 * tree-parloops.c: Likewise.
1122 * tree-phinodes.c: Likewise.
1123 * tree-predcom.c: Likewise.
1124 * tree-pretty-print.c: Likewise.
1125 * tree-profile.c: Likewise.
1126 * tree-scalar-evolution.c: Likewise.
1127 * tree-sra.c: Likewise.
1128 * tree-ssa-address.c: Likewise.
1129 * tree-ssa-alias.c: Likewise.
1130 * tree-ssa.c: Likewise.
1131 * tree-ssa-ccp.c: Likewise.
1132 * tree-ssa-coalesce.c: Likewise.
1133 * tree-ssa-copy.c: Likewise.
1134 * tree-ssa-copyrename.c: Likewise.
1135 * tree-ssa-dce.c: Likewise.
1136 * tree-ssa-dom.c: Likewise.
1137 * tree-ssa-dse.c: Likewise.
1138 * tree-ssa-forwprop.c: Likewise.
1139 * tree-ssa-ifcombine.c: Likewise.
1140 * tree-ssa-live.c: Likewise.
1141 * tree-ssa-loop.c: Likewise.
1142 * tree-ssa-loop-ch.c: Likewise.
1143 * tree-ssa-loop-im.c: Likewise.
1144 * tree-ssa-loop-ivcanon.c: Likewise.
1145 * tree-ssa-loop-ivopts.c: Likewise.
1146 * tree-ssa-loop-manip.c: Likewise.
1147 * tree-ssa-loop-niter.c: Likewise.
1148 * tree-ssa-loop-prefetch.c: Likewise.
1149 * tree-ssa-loop-unswitch.c: Likewise.
1150 * tree-ssa-math-opts.c: Likewise.
1151 * tree-ssanames.c: Likewise.
1152 * tree-ssa-operands.c: Likewise.
1153 * tree-ssa-phiopt.c: Likewise.
1154 * tree-ssa-phiprop.c: Likewise.
1155 * tree-ssa-pre.c: Likewise.
1156 * tree-ssa-propagate.c: Likewise.
1157 * tree-ssa-reassoc.c: Likewise.
1158 * tree-ssa-sccvn.c: Likewise.
1159 * tree-ssa-sink.c: Likewise.
1160 * tree-ssa-strlen.c: Likewise.
1161 * tree-ssa-structalias.c: Likewise.
1162 * tree-ssa-tail-merge.c: Likewise.
1163 * tree-ssa-ter.c: Likewise.
1164 * tree-ssa-threadedge.c: Likewise.
1165 * tree-ssa-threadupdate.c: Likewise.
1166 * tree-ssa-uncprop.c: Likewise.
1167 * tree-ssa-uninit.c: Likewise.
1168 * tree-stdarg.c: Likewise.
1169 * tree-streamer.c: Likewise.
1170 * tree-streamer-in.c: Likewise.
1171 * tree-streamer-out.c: Likewise.
1172 * tree-switch-conversion.c: Likewise.
1173 * tree-tailcall.c: Likewise.
1174 * tree-vect-data-refs.c: Likewise.
1175 * tree-vect-generic.c: Likewise.
1176 * tree-vect-loop.c: Likewise.
1177 * tree-vect-loop-manip.c: Likewise.
1178 * tree-vectorizer.c: Likewise.
1179 * tree-vect-patterns.c: Likewise.
1180 * tree-vect-slp.c: Likewise.
1181 * tree-vect-stmts.c: Likewise.
1182 * tree-vrp.c: Likewise.
1184 * ubsan.c: Likewise.
1185 * value-prof.c: Likewise.
1186 * varpool.c: Likewise.
1187 * var-tracking.c: Likewise.
1188 * vtable-verify.c: Likewise.
1189 * config/darwin.c: Likewise.
1190 * config/aarch64/aarch64-builtins.c: Likewise.
1191 * config/aarch64/aarch64.c: Likewise.
1192 * config/alpha/alpha.c: Likewise.
1193 * config/i386/i386.c: Likewise.
1194 * config/i386/winnt.c: Likewise.
1195 * config/ia64/ia64.c: Likewise.
1196 * config/m32c/m32c.c: Likewise.
1197 * config/mep/mep.c: Likewise.
1198 * config/mips/mips.c: Likewise.
1199 * config/rs6000/rs6000.c: Likewise.
1200 * config/s390/s390.c: Likewise.
1201 * config/sh/sh.c: Likewise.
1202 * config/sparc/sparc.c: Likewise.
1203 * config/spu/spu.c: Likewise.
1204 * config/stormy16/stormy16.c: Likewise.
1205 * config/tilegx/tilegx.c: Likewise.
1206 * config/tilepro/tilepro.c: Likewise.
1207 * config/xtensa/xtensa.c: Likewise.
1209 2013-11-22 Richard Earnshaw <rearnsha@arm.com>
1212 * arm.md (negdi_extendsidi): Fix invalid split.
1214 2013-11-22 Alex Velenko <Alex.Velenko@arm.com>
1216 * config/aarch64/arm_neon.h (vmov_n_f32): Implemented in C.
1217 (vmov_n_f64): Likewise.
1218 (vmov_n_p8): Likewise.
1219 (vmov_n_p16): Likewise.
1220 (vmov_n_s8): Likewise.
1221 (vmov_n_s16): Likewise.
1222 (vmov_n_s32): Likewise.
1223 (vmov_n_s64): Likewise.
1224 (vmov_n_u8): Likewise.
1225 (vmov_n_u16): Likewise.
1226 (vmov_n_u32): Likewise.
1227 (vmov_n_u64): Likewise.
1228 (vmovq_n_f32): Likewise.
1229 (vmovq_n_f64): Likewise.
1230 (vmovq_n_p8): Likewise.
1231 (vmovq_n_p16): Likewise.
1232 (vmovq_n_s8): Likewise.
1233 (vmovq_n_s16): Likewise.
1234 (vmovq_n_s32): Likewise.
1235 (vmovq_n_s64): Likewise.
1236 (vmovq_n_u8): Likewise.
1237 (vmovq_n_u16): Likewise.
1238 (vmovq_n_u32): Likewise.
1239 (vmovq_n_u64): Likewise.
1241 2013-11-22 Tejas Belagod <tejas.belagod@arm.com>
1243 * config/aarch64/aarch64-simd.md (vec_pack_trunc_<mode>,
1244 vec_pack_trunc_v2df, vec_pack_trunc_df): Swap for big-endian.
1245 (reduc_<sur>plus_<mode>): Factorize V2DI into this.
1246 (reduc_<sur>plus_<mode>): Change this to reduc_splus_<mode> for floats
1247 and also change to float UNSPEC.
1248 (reduc_maxmin_uns>_<mode>): Remove V2DI.
1249 * config/aarch64/arm_neon.h (vaddv<q>_<suf><8,16,32,64>,
1250 vmaxv<q>_<suf><8,16,32,64>, vminv<q>_<suf><8,16,32,64>): Fix up scalar
1251 result access for big-endian.
1252 (__LANE0): New macro used to fix up lane access of 'across-lanes'
1253 intrinsics for big-endian.
1254 * config/aarch64/iterators.md (VDQV): Add V2DI.
1256 (vp): New mode attribute.
1258 2013-11-22 Tejas Belagod <tejas.belagod@arm.com>
1260 * config/aarch64/aarch64-simd.md (vec_pack_trunc_<mode>,
1261 vec_pack_trunc_v2df, vec_pack_trunc_df): Swap source ops for
1264 2013-11-22 Tejas Belagod <tejas.belagod@arm.com>
1266 * config/aarch64/aarch64-simd.md (aarch64_simd_vec_set<mode>): Adjust
1267 for big-endian element order.
1268 (aarch64_simd_vec_setv2di): Likewise.
1269 (*aarch64_get_lane_extend<GPI:mode><VDQQH:mode>,
1270 *aarch64_get_lane_zero_extendsi<mode>, aarch64_get_lane): Likewise.
1271 (vec_extract): Expand using aarch64_get_lane.
1272 * config/aarch64/aarch64.h (ENDIAN_LANE_N): New.
1274 2013-11-22 Tejas Belagod <tejas.belagod@arm.com>
1276 * config/aarch64/aarch64-simd.md (*aarch64_simd_mov<mode>): Fix loads
1277 and stores to be ABI compliant.
1279 2013-11-22 David Malcolm <dmalcolm@redhat.com>
1281 * input.h (input_line): Remove.
1282 (input_filename): Likewise.
1283 (in_system_header): Likewise.
1284 * tree.h (EXPR_LOC_OR_HERE): Remove.
1285 * config/bfin/bfin.c (output_file_start): Remove use of
1286 input_filename macro.
1287 * builtins.c (c_strlen): Remove use of EXPR_LOC_OR_HERE macro.
1288 * gimplify.c (internal_get_tmp_var): Likewise.
1289 EXPR_LOC_OR_HERE macro.
1290 (shortcut_cond_expr): Likewise.
1291 * tree-diagnostic.c (diagnostic_report_current_function): Remove
1292 use of input_filename macro.
1293 * tree.c (get_file_function_name): Likewise.
1295 2013-11-22 Kenneth Zadeck <zadeck@naturalbridge.com>
1297 * store-layout.c (place-field): Fix hwi test and accessor mismatch.
1299 2013-11-22 Jakub Jelinek <jakub@redhat.com>
1301 * expr.c (store_constructor): Allow CONSTRUCTOR with VECTOR_TYPE
1302 (same sized) elements even if the type of the CONSTRUCTOR has
1303 vector mode and target is a REG.
1305 2013-11-22 Richard Biener <rguenther@suse.de>
1308 2013-11-21 Richard Biener <rguenther@suse.de>
1310 * tree-ssa-loop-ch.c (copy_loop_headers): Decrement
1311 nb_iterations_upper_bound by one.
1313 2013-11-22 H.J. Lu <hongjiu.lu@intel.com>
1315 * config/i386/i386.c (processor_alias_table): Enable PTA_POPCNT
1318 * doc/invoke.texi: Mention POPCNT for corei7, corei7-avx,
1319 core-avx-i, core-avx2 and slm.
1321 2013-11-22 Eric Botcazou <ebotcazou@adacore.com>
1323 * print-rtl.c (print_rtx) <case MEM>: Output a space if no MEM_EXPR.
1325 2013-11-22 Richard Sandiford <rdsandiford@googlemail.com>
1327 * config/m32c/cond.md (stzx_16): Use register_operand for operand 0.
1328 (stzx_24_<mode>): Likewise mra_operand.
1330 2013-11-22 Jeff Law <law@redhat.com>
1332 * tree-ssa-threadupdate.c: Include tree-cfg.h and tree-pass.h
1333 (thread_block_1): Do not cancel jump threads which go from
1334 inside a loop, through the header, then back inside the loop.
1335 (bb_ends_with_multiway_branch): New function.
1336 (thread_through_all_blocks): Handle threading cases which start
1337 in a loop through the loop header to a point in the loop.
1339 * tree-ssa-threadedge.c (thread_across_edge): Mark the start of the
1340 jump thread path properly.
1342 2013-11-22 Trevor Saunders <tsaunders@mozilla.com>
1344 * vec.h (auto_vec): New class.
1345 * cfganal.c, cfgloop.c, cgraphunit.c, config/i386/i386.c, dwarf2out.c,
1346 function.c, genautomata.c, gimple.c, haifa-sched.c, ipa-inline.c,
1347 ira-build.c, loop-unroll.c, omp-low.c, ree.c, trans-mem.c,
1348 tree-call-cdce.c, tree-eh.c, tree-if-conv.c, tree-into-ssa.c,
1349 tree-loop-distribution.c, tree-predcom.c, tree-sra.c,
1350 tree-sssa-forwprop.c, tree-ssa-loop-manip.c, tree-ssa-pre.c,
1351 tree-ssa-reassoc.c, tree-ssa-sccvn.c, tree-ssa-structalias.c,
1352 tree-vect-loop.c, tree-vect-stmts.c: Use auto_vec and stack_vec as
1353 appropriate instead of vec for local variables.
1355 2013-11-21 Teresa Johnson <tejohnson@google.com>
1358 * cfgcleanup.c (outgoing_edges_match): Walk up past note instructions
1359 not understood by old_insns_match_p.
1361 2013-11-21 Bill Schmidt <wschmidt@vnet.ibm.com>
1363 * config/rs6000/vector.md (vec_pack_trunc_v2df): Revert previous
1364 little endian change.
1365 (vec_pack_sfix_trunc_v2df): Likewise.
1366 (vec_pack_ufix_trunc_v2df): Likewise.
1367 * config/rs6000/rs6000.c (rs6000_expand_interleave): Correct
1368 double checking of endianness.
1370 2013-11-22 Jakub Jelinek <jakub@redhat.com>
1372 * tree-vect-generic.c (optimize_vector_constructor): New function.
1373 (expand_vector_operations_1): Call it.
1375 2013-11-21 Uros Bizjak <ubizjak@gmail.com>
1377 * config/i386/i386.c (ix86_expand_special_args_builtin): Use
1378 ix86_zero_extend_to_Pmode where appropriate.
1379 (ix86_expand_builtin): Ditto.
1381 2013-11-21 Cary Coutant <ccoutant@google.com>
1383 * dwarf2out.c (want_pubnames): Don't do pubnames for -g1.
1384 (add_linkage_name): Don't add linkage name for -g1.
1385 (decls_for_scope): Process subblocks for -g1.
1386 (dwarf2out_source_line): Output line tables for -g1.
1387 (dwarf2out_finish): Likewise.
1388 * tree-ssa-live.c (remove_unused_scope_block_p): Don't prune
1389 unused scopes for -g1.
1390 * opts.c (common_handle_option): Handle -g same as -g2.
1391 * doc/invoke.texi: Update description for -g1.
1393 2013-11-21 Peter Bergner <bergner@vnet.ibm.com>
1395 * doc/extend.texi: Document htm builtins.
1397 2013-11-21 Jeff Law <law@redhat.com>
1399 PR tree-optimization/59221
1400 * tree-ssa-threadedge.c (thread_across_edge): Properly manage
1401 temporary equivalences when threading through joiner blocks.
1403 2013-11-21 Joseph Myers <joseph@codesourcery.com>
1405 PR rtl-optimization/55950
1406 * real.c (real_sqrt): Remove function.
1407 * real.h (real_sqrt): Remove prototype.
1408 * simplify-rtx.c (simplify_const_unary_operation): Do not fold
1409 SQRT using real_sqrt.
1411 2013-11-21 Richard Biener <rguenther@suse.de>
1413 PR tree-optimization/59058
1414 * tree-scalar-evolution.h (number_of_exit_cond_executions): Remove.
1415 * tree-scalar-evolution.c (number_of_exit_cond_executions): Likewise.
1416 * tree-vectorizer.h (LOOP_PEELING_FOR_ALIGNMENT): Rename to ...
1417 (LOOP_VINFO_PEELING_FOR_ALIGNMENT): ... this.
1418 (NITERS_KNOWN_P): Fold into ...
1419 (LOOP_VINFO_NITERS_KNOWN_P): ... this.
1420 (LOOP_VINFO_PEELING_FOR_NITER): Add.
1421 * tree-vect-loop-manip.c (vect_gen_niters_for_prolog_loop):
1422 Use LOOP_VINFO_PEELING_FOR_ALIGNMENT.
1423 (vect_do_peeling_for_alignment): Re-use precomputed niter
1424 instead of re-emitting it.
1425 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment):
1426 Use LOOP_VINFO_PEELING_FOR_ALIGNMENT.
1427 * tree-vect-loop.c (vect_get_loop_niters): Use
1428 number_of_latch_executions.
1429 (new_loop_vec_info): Initialize LOOP_VINFO_PEELING_FOR_NITER.
1430 (vect_analyze_loop_form): Simplify.
1431 (vect_analyze_loop_operations): Move epilogue peeling code ...
1432 (vect_analyze_loop_2): ... here and adjust it to compute
1433 LOOP_VINFO_PEELING_FOR_NITER.
1434 (vect_estimate_min_profitable_iters): Use
1435 LOOP_VINFO_PEELING_FOR_ALIGNMENT.
1436 (vect_build_loop_niters): Emit on the preheader.
1437 (vect_generate_tmps_on_preheader): Likewise.
1438 (vect_transform_loop): Use LOOP_VINFO_PEELING_FOR_NITER instead
1439 of recomputing it. Adjust.
1441 2013-11-21 Richard Biener <rguenther@suse.de>
1443 * tree-vectorizer.h (LOC, UNKNOWN_LOC, EXPR_LOC, LOC_FILE,
1444 LOC_LINE): Remove wrappers and fix all users.
1445 (struct _loop_vec_info): Remove loop_line_number member.
1446 (LOOP_VINFO_LOC): Remove.
1447 * tree-parloops.c, tree-vect-loop-manip.c, tree-vect-slp.c,
1448 tree-vectorizer.c: Fix users of LOC, UNKNOWN_LOC, EXPR_LOC, LOC_FILE
1451 2013-11-21 Richard Biener <rguenther@suse.de>
1453 * tree-ssa-forwprop.c (simplify_vce): New function.
1454 (ssa_forward_propagate_and_combine): Call it.
1456 2013-11-21 Richard Biener <rguenther@suse.de>
1458 * tree-vect-loop-manip.c (vect_build_loop_niters,
1459 vect_generate_tmps_on_preheader): Move ...
1460 * tree-vect-loop.c (vect_build_loop_niters,
1461 vect_generate_tmps_on_preheader): ... here and simplify.
1462 (vect_transform_loop): Call them here and pass down results
1464 * tree-vect-loop-manip.c (vect_do_peeling_for_loop_bound):
1465 Get niter variables from caller.
1466 (vect_do_peeling_for_alignment): Likewise.
1467 * tree-vectorizer.h (vect_generate_tmps_on_preheader): Remove.
1468 (vect_do_peeling_for_loop_bound, vect_do_peeling_for_alignment):
1471 2013-11-21 Richard Biener <rguenther@suse.de>
1473 * tree-ssa-loop-ch.c (copy_loop_headers): Decrement
1474 nb_iterations_upper_bound by one.
1476 2013-11-21 Richard Biener <rguenther@suse.de>
1478 PR tree-optimization/59058
1479 * tree-loop-distribution.c (struct partition_s): Add plus_one member.
1480 (build_size_arg_loc): Apply niter adjustment here.
1481 (generate_memset_builtin): Adjust.
1482 (generate_memcpy_builtin): Likewise.
1483 (classify_partition): Do not use number_of_exit_cond_executions
1484 but record whether niter needs to be adjusted.
1486 2013-11-21 Eric Botcazou <ebotcazou@adacore.com>
1488 * tree-ssa-tail-merge.c (stmt_local_def): Return false if the statement
1491 2013-11-21 Oleg Endo <olegendo@gcc.gnu.org>
1494 * config/sh/sh_optimize_sett_clrt.cc: New SH specific RTL pass.
1495 * config/sh/sh.c (register_sh_passes): Add sh_optimize_sett_clrt pass.
1496 * config/sh/sh/t-sh (sh_optimize_sett_clrt pass.o): New entry.
1497 * config.gcc (sh[123456789lbe]*-*-* | sh-*-*): Add
1498 sh_optimize_sett_clrt pass.o to extra_objs.
1500 2013-11-20 David Malcolm <dmalcolm@redhat.com>
1502 * cfg.c (dump_edge_info): Remove redundant comment.
1503 * cfgcleanup.c (outgoing_edges_match): Reword reference to
1504 EXIT_BLOCK_PTR in comment.
1505 (try_optimize_cfg): Likewise.
1506 * cfgrtl.c (last_bb_in_partition): Likewise.
1507 * cgraph.c (cgraph_node_cannot_return): Likewise.
1508 * function.c (thread_prologue_and_epilogue_insns): Likewise.
1509 * graphite-scop-detection.c (scopdet_basic_block_info): Likewise.
1510 * ipa-split.c (consider_split): Likewise.
1511 * profile.c (find_spanning_tree): Likewise.
1512 * sched-int.h (common_sched_info_def.add_block): Likewise.
1513 * dominance.c (calc_dfs_tree_nonrec): Reword references in
1514 comments to now removed ENTRY_BLOCK_PTR and EXIT_BLOCK_PTR macros.
1515 * tree-cfgcleanup.c (cleanup_control_flow_bb): Reword references
1516 in comments to now removed ENTRY_BLOCK_PTR macro.
1517 (tree_forwarder_block_p): Reword reference in comment to
1519 * tree-inline.c (copy_cfg_body): Reword references in comments to
1520 now removed ENTRY_BLOCK_PTR macro.
1521 * tree-ssa-propagate.c (ssa_prop_init): Likewise.
1522 * tree-scalar-evolution.h ( block_before_loop): Likewise. Add
1523 a comma to the comment to clarify the meaning.
1525 2013-11-20 Andrew MacLeod <amacleod@redhat.com>
1527 * gimplify.h (gimplify_hasher:typed_free_remove, struct gimplify_ctx):
1529 (free_gimplify_stack): Add prototype.
1530 * gimplify.c (gimplify_hasher:typed_free_remove): Relocate here.
1531 (struct gimplify_ctx): Relocate here.
1532 (gimplify_ctxp): Make static.
1533 (ctx_pool, ctx_alloc, ctx_free, free_gimplify_stack): New. Manage a
1534 list of struct gimplify_ctx.
1535 (push_gimplify_context): Add default parameters and allocate a struct
1537 (pop_gimplify_context): Free a struct back to the pool.
1538 (gimplify_scan_omp_clauses, gimplify_omp_parallel, gimplify_omp_task,
1539 gimplify_omp_workshare, gimplify_transaction, gimplify_body): Don't
1540 use a local 'struct gimplify_ctx'.
1541 * cgraphunit.c (expand_all_functions): call free_gimplify_stack.
1542 * gimplify-me.c (force_gimple_operand_1, gimple_regimplify_operands):
1544 * omp-low.c (lower_omp_sections, lower_omp_single, lower_omp_master,
1545 lower_omp_ordered, lower_omp_critical, lower_omp_for,
1546 create_task_copyfn, lower_omp_taskreg, lower_omp_target,
1547 lower_omp_teams, execute_lower_omp): Likewise.
1548 * gimple-fold.c (gimplify_and_update_call_from_tree): Likewise.
1549 * tree-inline.c (optimize_inline_calls): Likewise.
1551 2013-11-20 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
1553 * config/rs6000/vsx.md (vsx_set_<mode>): Adjust for little endian.
1554 (vsx_extract_<mode>): Likewise.
1555 (*vsx_extract_<mode>_one_le): New LE variant on
1556 *vsx_extract_<mode>_zero.
1557 (vsx_extract_v4sf): Adjust for little endian.
1559 2013-11-20 Vladimir Makarov <vmakarov@redhat.com>
1561 PR rtl-optimization/59133
1562 * lra.c (expand_reg_data): Add new argument. Set up ALL_REGS for
1564 (lra_create_new_reg_with_unique_value): Pass new argument value.
1565 (lra_emit_add, lra_emit_move): Ditto.
1566 * lra-constraints.c (in_class_p): Add check for move for a new insn.
1567 (change_class): Rename to lra_change_class. Move to lra-int.h.
1568 (get_reload_reg, narrow_reload_pseudo_class): Adjust calls of
1570 (process_addr_reg, process_addr): Ditto.
1571 (curr_insn_transform): Ditto. Add check on old pseudo for
1573 * lra-int.h (lra_get_regno_hard_regno): Move below.
1574 (lra_change_class): Renamed change_class from lra.c.
1576 2013-11-20 David Malcolm <dmalcolm@redhat.com>
1578 * gdbhooks.py (VecPrinter.children): Don't attempt to iterate
1579 the children of a NULL pointer.
1581 2013-11-20 Robert Suchanek <Robert.Suchanek@imgtec.com>
1583 * lra.c (lra): Set lra_in_progress before check_rtl call.
1584 * recog.c (insn_invalid_p): Add !lra_in_progress to prevent
1585 adding clobber regs when LRA is running.
1587 2013-11-20 Maciej W. Rozycki <macro@codesourcery.com>
1589 * config/mips/mips.h (ISA_HAS_FP4): Remove TARGET_FLOAT64
1590 restriction for ISA_MIPS32R2.
1591 (ISA_HAS_LXC1_SXC1): New macro.
1592 (ISA_HAS_FP_MADD4_MSUB4): Remove ISA_MIPS32R2 special-casing.
1593 (ISA_HAS_NMADD4_NMSUB4): Likewise.
1594 (ISA_HAS_FP_RECIP_RSQRT): Likewise.
1595 (ISA_HAS_PREFETCHX): Redefine in terms of ISA_HAS_FP4.
1596 * config/mips/mips.md (*<ANYF:loadx>_<P:mode>): Use
1597 ISA_HAS_LXC1_SXC1 rather than ISA_HAS_FP4.
1598 (*<ANYF:storex>_<P:mode>): Likewise.
1600 2013-11-20 Maciej W. Rozycki <macro@codesourcery.com>
1602 * config/mips/mips.h (ISA_HAS_FP_RECIP_RSQRT): New macro.
1603 * config/mips/mips.c (mips_rtx_costs) <DIV>: Check for
1604 ISA_HAS_FP_RECIP_RSQRT rather than ISA_HAS_FP4.
1605 * config/mips/mips.md (recip_condition): Remove mode attribute.
1606 (div<mode>3): Use ISA_HAS_FP_RECIP_RSQRT rather than
1608 (*recip<mode>3, *rsqrt<mode>a, *rsqrt<mode>b): Likewise.
1610 2013-11-20 Eric Botcazou <ebotcazou@adacore.com>
1613 * config/sparc/sparc.c (sparc_fold_builtin) <case CODE_FOR_pdist_vis>:
1614 Make sure neg2_ovf is set before being used.
1616 2013-11-20 Basile Starynkevitch <basile@starynkevitch.net>
1618 * plugin.def: Add comment about register_callback and
1619 invoke_plugin_callbacks_full.
1621 * plugin.c (register_callback, invoke_plugin_callbacks_full):
1622 Handle PLUGIN_INCLUDE_FILE event.
1624 2013-11-20 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
1626 * config/rs6000/rs6000.c (rs6000_cannot_change_mode_class): Do not
1627 allow subregs of TDmode in FPRs of smaller size in little-endian.
1628 (rs6000_split_multireg_move): When splitting an access to TDmode
1629 in FPRs, do not use simplify_gen_subreg.
1631 2013-11-20 Joseph Myers <joseph@codesourcery.com>
1634 * real.c: Remove comment about decimal string conversion and
1636 (real_from_string): Use MPFR to convert nonzero decimal constant
1639 2013-11-20 Eric Botcazou <ebotcazou@adacore.com>
1641 * config/arm/arm.c (arm_dwarf_register_span): Take into account the
1642 endianness of the D registers for the legacy encodings.
1644 2013-11-20 Richard Earnshaw <rearnsha@arm.com>
1646 PR rtl-optimization/54300
1647 * regcprop.c (copyprop_hardreg_forward_1): Ensure any unused
1648 outputs in a single-set are killed from the value chains.
1650 2013-11-20 Ilya Enkovich <ilya.enkovich@intel.com>
1652 * cgraph.h (varpool_node): Add need_bounds_init field.
1653 * lto-cgraph.c (lto_output_varpool_node): Output
1654 need_bounds_init value.
1655 (input_varpool_node): Read need_bounds_init value.
1656 * varpool.c (dump_varpool_node): Dump need_bounds_init field.
1658 2013-11-20 Jan Hubicka <jh@suse.cz>
1660 * opts.c (finish_options): Imply -ffat-lto-objects with
1661 -fno-use-linker-plugin.
1662 * common.opt (fuse-linker-plugin): Add var.
1664 2013-11-20 Ilya Enkovich <ilya.enkovich@intel.com>
1666 * dbxout.c (dbxout_type): Ignore POINTER_BOUNDS_TYPE.
1667 * dwarf2out.c (gen_subprogram_die): Ignore bound args.
1668 (gen_type_die_with_usage): Skip pointer bounds.
1669 (dwarf2out_global_decl): Likewise.
1671 2013-11-20 James Greenhalgh <james.greenhalgh@arm.com>
1673 * config/aarch64/aarch64.md: Remove "mode" and "mode2" attributes
1676 2013-11-20 Yuri Rumyantsev <ysrumyan@gmail.com>
1679 * config/i386/i386.c (ix86_option_override_internal): Add missed
1680 argument prefix for 'ix86_fpmath'.
1681 * config/i386/ssemath.h: Add missed definition of
1682 TARGET_FPMATH_DEFAULT_P macros.
1684 2013-11-20 Kenneth Zadeck <zadeck@naturalbridge.com>
1685 Mike Stump <mikestump@comcast.net>
1686 Richard Sandiford <rdsandiford@googlemail.com>
1688 * alias.c (ao_ref_from_mem): Use tree_to_shwi and tree_to_uhwi
1689 instead of TREE_INT_CST_LOW, in cases where there is a protecting
1690 tree_fits_shwi_p or tree_fits_uhwi_p.
1691 * builtins.c (fold_builtin_powi): Likewise.
1692 * config/epiphany/epiphany.c (epiphany_special_round_type_align):
1694 * dbxout.c (dbxout_symbol): Likewise.
1695 * expr.c (expand_expr_real_1): Likewise.
1696 * fold-const.c (fold_single_bit_test, fold_plusminus_mult_expr)
1697 (fold_binary_loc): Likewise.
1698 * gimple-fold.c (fold_const_aggregate_ref_1): Likewise.
1699 * gimple-ssa-strength-reduction.c (stmt_cost): Likewise.
1700 * omp-low.c (lower_omp_for_lastprivate): Likewise.
1701 * simplify-rtx.c (delegitimize_mem_from_attrs): Likewise.
1702 * stor-layout.c (compute_record_mode): Likewise.
1703 * tree-cfg.c (verify_expr): Likewise.
1704 * tree-dfa.c (get_ref_base_and_extent): Likewise.
1705 * tree-pretty-print.c (dump_array_domain): Likewise.
1706 * tree-sra.c (build_user_friendly_ref_for_offset): Likewise.
1707 * tree-ssa-ccp.c (fold_builtin_alloca_with_align): Likewise.
1708 * tree-ssa-loop-ivopts.c (get_loop_invariant_expr_id): Likewise.
1709 * tree-ssa-math-opts.c (execute_cse_sincos): Likewise.
1710 * tree-ssa-phiopt.c (hoist_adjacent_loads): Likewise.
1711 * tree-ssa-reassoc.c (acceptable_pow_call): Likewise.
1712 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Likewise.
1713 (ao_ref_init_from_vn_reference, vn_reference_fold_indirect): Likewise.
1714 (vn_reference_lookup_3, simplify_binary_expression): Likewise.
1715 * tree-ssa-structalias.c (bitpos_of_field): Likewise.
1716 (get_constraint_for_1, push_fields_onto_fieldstack): Likewise.
1717 (create_variable_info_for_1): Likewise.
1718 * tree-vect-data-refs.c (vect_compute_data_ref_alignment): Likewise.
1719 (vect_verify_datarefs_alignment): Likewise.
1720 (vect_analyze_data_ref_accesses): Likewise.
1721 (vect_prune_runtime_alias_test_list): Likewise.
1722 * tree-vectorizer.h (NITERS_KNOWN_P): Likewise.
1724 2013-11-20 Richard Sandiford <rdsandiford@googlemail.com>
1726 * tree-ssa-alias.c (ao_ref_init_from_ptr_and_size): Avoid signed
1727 overflow. Use tree_to_shwi.
1729 2013-11-20 Richard Sandiford <rdsandiford@googlemail.com>
1731 * fold-const.c (fold_binary_loc): Use unsigned rather than signed
1732 HOST_WIDE_INTs when folding (x >> c) << c.
1734 2013-11-20 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
1735 Dominik Vogt <vogt@linux.vnet.ibm.com>
1737 * config/s390/s390.c (s390_canonicalize_comparison): Don't fold
1738 int comparisons with an out of range condition code.
1739 (s390_optimize_nonescaping_tx): Skip empty BBs.
1740 Generate the new tbegin RTX when removing the FPR clobbers (with
1742 (s390_expand_tbegin): Fix the retry loop counter. Copy CC to the
1743 result before doing the retry calculations.
1744 (s390_init_builtins): Make tbegin "returns_twice" and tabort
1746 * config/s390/s390.md (UNSPECV_TBEGIN_TDB): New constant used for
1747 the TDB setting part of an tbegin.
1748 ("tbegin_1", "tbegin_nofloat_1"): Add a set for the TDB.
1749 ("tx_assist"): Set unused argument to an immediate zero instead of
1750 loading zero into a GPR and pass it as argument.
1751 * config/s390/htmxlintrin.h (__TM_simple_begin, __TM_begin):
1752 Remove inline and related attributes.
1753 (__TM_nesting_depth, __TM_is_user_abort, __TM_is_named_user_abort)
1754 (__TM_is_illegal, __TM_is_footprint_exceeded)
1755 (__TM_is_nested_too_deep, __TM_is_conflict): Fix format value check.
1757 2013-11-20 Richard Biener <rguenther@suse.de>
1760 * lto-opts.c (lto_write_options): Write defaults only if
1761 they were not explicitely specified. Also write
1762 -ffp-contract default.
1763 * lto-wrapper.c (merge_and_complain): Merge -ffp-contract
1765 (run_gcc): Pass through -ffp-contract.
1767 2013-11-20 Jan-Benedict Glaw <jbglaw@lug-owl.de>
1769 * config/mips/mips.c (r10k_simplify_address): Eliminate macro usage.
1771 2013-11-20 James Greenhalgh <james.greenhalgh@arm.com>
1773 * gcc/config/aarch64/aarch64-builtins.c
1774 (aarch64_simd_itype): Remove.
1775 (aarch64_simd_builtin_datum): Remove itype, add qualifiers pointer.
1776 (VAR1): Use qualifiers.
1777 (aarch64_build_scalar_type): New.
1778 (aarch64_build_vector_type): Likewise.
1779 (aarch64_build_type): Likewise.
1780 (aarch64_init_simd_builtins): Refactor, remove special cases,
1781 consolidate main loop.
1782 (aarch64_simd_expand_args): Likewise.
1784 2013-11-19 Joshua J Cogliati <jrincayc@yahoo.com>
1787 * doc/invoke.texi: Adding documentation about -Wfloat-conversion.
1789 2013-11-19 Miro Kropacek <miro.kropacek@gmail.com>
1791 * config/m68k/m68k.c (m68k_option_overrides): Fix typo.
1793 2013-11-19 David Malcolm <dmalcolm@redhat.com>
1795 * gdbhooks.py (VecPrinter): New class, for prettyprinting pointers
1796 to "vec<>" instances.
1797 (build_pretty_printer): Register the vec<>* prettyprinter.
1799 2013-11-19 David Malcolm <dmalcolm@redhat.com>
1801 * gdbhooks.py (GdbSubprinter.__init__): Drop str_type_ field.
1802 (GdbSubprinter.handles_type): New.
1803 (GdbSubprinterTypeList): New subclass of GdbSubprinter.
1804 (GdbSubprinterRegex): New subclass of GdbSubprinter.
1805 (GdbPrettyPrinters.add_printer): Remove in favor of...
1806 (GdbPrettyPrinters.add_printer_for_types): ...this new method and...
1807 (GdbPrettyPrinters.add_printer_for_regex): ...this other new method.
1808 (GdbPrettyPrinters.__call__): Update search for subprinter
1809 to use handles_type method.
1810 (build_pretty_printer): Update registration of subprinters to
1811 use the new API above, supporting multiple spelling of each type,
1812 and allowing for future regex-based subprinters.
1814 2013-11-19 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
1816 * config/rs6000/rs6000.c (altivec_expand_vec_perm_const): Adjust
1817 V16QI vector splat case for little endian.
1819 2013-11-19 Jeff Law <law@redhat.com>
1821 * tree-ssa-threadedge.c (thread_across_edge): After threading
1822 through a joiner, allow threading a normal block requiring duplication.
1824 * tree-ssa-threadupdate.c (thread_block_1): Improve code to detect
1825 jump threading requests that would muck up the loop structures.
1827 * tree-ssa-threadupdate.c: Fix trailing whitespace.
1828 * tree-ssa-threadupdate.h: Likewise.
1830 2013-11-19 Mike Stump <mikestump@comcast.net>
1832 * gdbinit.in: Add pmz to print out mpz values.
1834 2013-11-20 Jan Hubicka <jh@suse.cz>
1836 * common.opt (ffat-lto-objects): Disable by default.
1837 * doc/invoke.texi (fat-lto-objects): Update documentation.
1838 * opts.c: Enable fat-lto-objects on lto plugin disable setups.
1840 2013-11-19 Martin Jambor <mjambor@suse.cz>
1842 PR rtl-optimization/59099
1843 * ira.c (find_moveable_pseudos): Put back various analyses from ira()
1845 (ira): Move init_reg_equiv and call to
1846 split_live_ranges_for_shrink_wrap up, remove analyses around call
1847 to find_moveable_pseudos.
1849 2013-11-20 Alan Modra <amodra@gmail.com>
1851 * config/rs6000/sysv4.h (CC1_ENDIAN_LITTLE_SPEC): Define as empty.
1852 * config/rs6000/rs6000.c (rs6000_option_override_internal): Default
1853 to strict alignment on older processors when little-endian.
1854 * config/rs6000/linux64.h (PROCESSOR_DEFAULT64): Default to power8
1857 2013-11-19 Teresa Johnson <tejohnson@google.com>
1859 * common/config/i386/i386-common.c: Enable
1860 -freorder-blocks-and-partition at -O2 and up for x86.
1861 * doc/invoke.texi: Update -freorder-blocks-and-partition default.
1862 * opts.c (finish_options): Only warn if
1863 -freorder-blocks-and-partition was set on command line.
1865 2013-11-19 Sriraman Tallam <tmsriram@google.com>
1867 * final.c (final_scan_insn): Emit a label for the split
1868 cold function part. Label name is formed by suffixing
1869 the original function name with "cold".
1871 2013-11-19 David Malcolm <dmalcolm@redhat.com>
1873 * basic-block.h (ENTRY_BLOCK_PTR_FOR_FUNCTION): Rename macro to...
1874 (EXIT_BLOCK_PTR_FOR_FUNCTION): ...this.
1875 (ENTRY_BLOCK_PTR_FOR_FN): Renamed macro to...
1876 (EXIT_BLOCK_PTR_FOR_FN): ...this.
1877 (ENTRY_BLOCK_PTR): Eliminate macro as work towards making uses of
1879 (EXIT_BLOCK_PTR): Likewise.
1880 (FOR_ALL_BB): Rework for now to eliminate use of "ENTRY_BLOCK_PTR".
1881 (FOR_ALL_BB_FN): Update for renaming of
1882 "ENTRY_BLOCK_PTR_FOR_FUNCTION" to "ENTRY_BLOCK_PTR_FOR_FN".
1884 * cfg.c (init_flow): Likewise.
1885 (check_bb_profile): Likewise.
1886 * cfganal.c (pre_and_rev_post_order_compute_fn): Likewise.
1887 * cfgcleanup.c (walk_to_nondebug_insn): Likewise.
1888 * cfghooks.c (account_profile_record): Likewise.
1889 * cfgloop.c (init_loops_structure): Likewise.
1890 * cgraphbuild.c (record_eh_tables): Likewise.
1891 (compute_call_stmt_bb_frequency): Likewise.
1892 * ipa-inline-analysis.c (compute_bb_predicates): Likewise.
1893 * lto-streamer-in.c (input_cfg): Likewise.
1894 * predict.c (maybe_hot_frequency_p): Likewise.
1895 * tree-cfg.c (init_empty_tree_cfg_for_function): Likewise.
1896 * tree-inline.c (initialize_cfun): Likewise.
1897 (copy_cfg_body): Likewise.
1898 (copy_body): Likewise.
1899 (tree_function_versioning): Likewise.
1901 * bb-reorder.c (add_labels_and_missing_jumps): Remove uses of macros:
1902 ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
1903 (duplicate_computed_gotos): Remove usage of EXIT_BLOCK_PTR macro.
1904 (find_rarely_executed_basic_blocks_and_crossing_edges): Remove uses of
1905 macros: ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
1906 (connect_traces): Likewise.
1907 (rest_of_handle_reorder_blocks): Remove usage of EXIT_BLOCK_PTR macro.
1908 (bb_to_key): Remove usage of ENTRY_BLOCK_PTR macro.
1909 (fix_crossing_conditional_branches): Remove usage of EXIT_BLOCK_PTR
1911 (find_traces_1_round): Remove uses of macros: ENTRY_BLOCK_PTR,
1913 (fix_up_fall_thru_edges): Remove usage of EXIT_BLOCK_PTR macro.
1914 (find_traces): Remove usage of ENTRY_BLOCK_PTR macro.
1915 (fix_up_crossing_landing_pad): Remove usage of EXIT_BLOCK_PTR macro.
1916 (rotate_loop): Likewise.
1917 * bt-load.c (migrate_btr_def): Remove usage of ENTRY_BLOCK_PTR macro.
1918 * cfg.c (clear_aux_for_edges): Remove uses of macros: ENTRY_BLOCK_PTR,
1920 (alloc_aux_for_edges): Likewise.
1921 (clear_bb_flags): Remove usage of ENTRY_BLOCK_PTR macro.
1922 (cached_make_edge): Remove uses of macros: ENTRY_BLOCK_PTR,
1924 (compact_blocks): Likewise.
1925 (clear_edges): Likewise.
1926 * cfganal.c (single_pred_before_succ_order): Remove usage of
1927 ENTRY_BLOCK_PTR macro.
1928 (bitmap_union_of_succs): Remove usage of EXIT_BLOCK_PTR macro.
1929 (bitmap_union_of_preds): Remove usage of ENTRY_BLOCK_PTR macro.
1930 (bitmap_intersection_of_succs): Remove usage of EXIT_BLOCK_PTR macro.
1931 (bitmap_intersection_of_preds): Remove usage of ENTRY_BLOCK_PTR macro.
1932 (inverted_post_order_compute): Remove uses of macros: ENTRY_BLOCK_PTR,
1934 (compute_dominance_frontiers_1): Remove usage of ENTRY_BLOCK_PTR macro.
1935 (post_order_compute): Remove uses of macros: ENTRY_BLOCK_PTR,
1937 (connect_infinite_loops_to_exit): Remove usage of EXIT_BLOCK_PTR macro.
1938 (remove_fake_edges): Remove usage of ENTRY_BLOCK_PTR macro.
1939 (add_noreturn_fake_exit_edges): Remove usage of EXIT_BLOCK_PTR macro.
1940 (find_pdom): Remove uses of macros: ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
1941 (remove_fake_exit_edges): Remove usage of EXIT_BLOCK_PTR macro.
1942 (verify_edge_list): Remove uses of macros: ENTRY_BLOCK_PTR,
1944 (print_edge_list): Likewise.
1945 (create_edge_list): Likewise.
1946 (find_unreachable_blocks): Remove usage of ENTRY_BLOCK_PTR macro.
1947 (mark_dfs_back_edges): Remove uses of macros: ENTRY_BLOCK_PTR,
1949 * cfgbuild.c (find_bb_boundaries): Remove usage of ENTRY_BLOCK_PTR
1951 (find_many_sub_basic_blocks): Remove usage of EXIT_BLOCK_PTR macro.
1952 (make_edges): Remove uses of macros: ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
1953 * cfgcleanup.c (delete_unreachable_blocks): Likewise.
1954 (try_optimize_cfg): Likewise.
1955 (try_head_merge_bb): Remove usage of EXIT_BLOCK_PTR macro.
1956 (try_crossjump_to_edge): Remove usage of ENTRY_BLOCK_PTR macro.
1957 (try_crossjump_bb): Remove usage of EXIT_BLOCK_PTR macro.
1958 (merge_blocks_move): Remove usage of ENTRY_BLOCK_PTR macro.
1959 (outgoing_edges_match): Remove usage of EXIT_BLOCK_PTR macro.
1960 (try_forward_edges): Likewise.
1961 (try_simplify_condjump): Likewise.
1962 * cfgexpand.c (gimple_expand_cfg): Remove uses of macros:
1963 ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
1964 (construct_exit_block): Remove usage of EXIT_BLOCK_PTR macro.
1965 (construct_init_block): Remove uses of macros: ENTRY_BLOCK_PTR,
1967 (expand_gimple_basic_block): Remove usage of EXIT_BLOCK_PTR macro.
1968 (expand_gimple_tailcall): Likewise.
1969 * cfghooks.c (can_duplicate_block_p): Remove uses of macros:
1970 ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
1971 (tidy_fallthru_edges): Likewise.
1972 (verify_flow_info): Likewise.
1973 * cfgloop.c (flow_bb_inside_loop_p): Likewise.
1974 (num_loop_branches): Remove usage of EXIT_BLOCK_PTR macro.
1975 (disambiguate_multiple_latches): Remove usage of ENTRY_BLOCK_PTR macro.
1976 (get_loop_exit_edges): Remove usage of EXIT_BLOCK_PTR macro.
1977 (bb_loop_header_p): Remove usage of ENTRY_BLOCK_PTR macro.
1978 (get_loop_body_in_bfs_order): Remove usage of EXIT_BLOCK_PTR macro.
1979 (get_loop_body_in_dom_order): Likewise.
1980 (get_loop_body): Likewise.
1981 * cfgloopanal.c (mark_irreducible_loops): Remove uses of macros:
1982 ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
1983 * cfgloopmanip.c (create_preheader): Remove usage of ENTRY_BLOCK_PTR
1985 (remove_path): Remove usage of EXIT_BLOCK_PTR macro.
1986 (fix_bb_placement): Likewise.
1987 * cfgrtl.c (rtl_block_empty_p): Remove uses of macros:
1988 ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
1989 (rtl_can_remove_branch_p): Remove usage of EXIT_BLOCK_PTR macro.
1990 (cfg_layout_split_edge): Remove uses of macros: ENTRY_BLOCK_PTR,
1992 (rtl_flow_call_edges_add): Remove usage of EXIT_BLOCK_PTR macro.
1993 (cfg_layout_can_merge_blocks_p): Remove uses of macros:
1994 ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
1995 (cfg_layout_redirect_edge_and_branch): Remove usage of ENTRY_BLOCK_PTR
1997 (fixup_fallthru_exit_predecessor): Remove uses of macros:
1998 ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
1999 (fixup_reorder_chain): Likewise.
2000 (relink_block_chain): Likewise.
2001 (cfg_layout_delete_block): Remove usage of EXIT_BLOCK_PTR macro.
2002 (rtl_verify_bb_layout): Remove usage of ENTRY_BLOCK_PTR macro.
2003 (cfg_layout_duplicate_bb): Remove usage of EXIT_BLOCK_PTR macro.
2004 (force_one_exit_fallthru): Likewise.
2005 (rtl_verify_fallthru): Remove uses of macros: ENTRY_BLOCK_PTR,
2007 (rtl_verify_edges): Likewise.
2008 (commit_edge_insertions): Likewise.
2009 (commit_one_edge_insertion): Likewise.
2010 (rtl_split_edge): Likewise.
2011 (force_nonfallthru_and_redirect): Likewise.
2012 (outof_cfg_layout_mode): Remove usage of EXIT_BLOCK_PTR macro.
2013 (skip_insns_after_block): Likewise.
2014 (fixup_partition_crossing): Remove uses of macros: ENTRY_BLOCK_PTR,
2016 (purge_dead_edges): Remove usage of EXIT_BLOCK_PTR macro.
2017 (rtl_can_merge_blocks): Remove uses of macros: ENTRY_BLOCK_PTR,
2019 (contains_no_active_insn_p): Likewise.
2020 (emit_insn_at_entry): Remove usage of ENTRY_BLOCK_PTR macro.
2021 (entry_of_function): Likewise.
2022 (last_bb_in_partition): Remove usage of EXIT_BLOCK_PTR macro.
2023 (fixup_new_cold_bb): Likewise.
2024 (patch_jump_insn): Likewise.
2025 (try_redirect_by_replacing_jump): Likewise.
2026 (block_label): Likewise.
2027 (could_fall_through): Likewise.
2028 (can_fallthru): Likewise.
2029 * cgraphbuild.c (cgraph_rebuild_references): Remove usage of
2030 ENTRY_BLOCK_PTR macro.
2031 (rebuild_cgraph_edges): Likewise.
2032 * cgraphunit.c (init_lowered_empty_function): Remove uses of macros:
2033 ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
2034 (expand_thunk): Remove usage of EXIT_BLOCK_PTR macro.
2035 * combine.c (get_last_value): Remove usage of ENTRY_BLOCK_PTR macro.
2036 (distribute_links): Remove usage of EXIT_BLOCK_PTR macro.
2037 (get_last_value_validate): Remove usage of ENTRY_BLOCK_PTR macro.
2038 (try_combine): Remove usage of EXIT_BLOCK_PTR macro.
2039 (reg_num_sign_bit_copies_for_combine): Remove usage of ENTRY_BLOCK_PTR
2041 (reg_nonzero_bits_for_combine): Likewise.
2042 (set_nonzero_bits_and_sign_copies): Likewise.
2043 (combine_instructions): Likewise.
2044 * cprop.c (one_cprop_pass): Remove uses of macros: ENTRY_BLOCK_PTR,
2046 (bypass_conditional_jumps): Likewise.
2047 (bypass_block): Remove usage of EXIT_BLOCK_PTR macro.
2048 (find_implicit_sets): Likewise.
2049 (cprop_jump): Likewise.
2050 * cse.c (cse_cc_succs): Likewise.
2051 (cse_find_path): Likewise.
2052 * df-problems.c (df_lr_confluence_0): Likewise.
2053 * df-scan.c (df_entry_block_defs_collect): Remove usage of
2054 ENTRY_BLOCK_PTR macro.
2055 (df_exit_block_uses_collect): Remove usage of EXIT_BLOCK_PTR macro.
2056 * dominance.c (iterate_fix_dominators): Remove usage of
2057 ENTRY_BLOCK_PTR macro.
2058 (calc_idoms): Remove uses of macros: ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
2059 (determine_dominators_for_sons): Remove usage of ENTRY_BLOCK_PTR macro.
2060 (calc_dfs_tree): Remove uses of macros: ENTRY_BLOCK_PTR,
2062 (prune_bbs_to_update_dominators): Remove usage of ENTRY_BLOCK_PTR
2064 (calc_dfs_tree_nonrec): Remove uses of macros: ENTRY_BLOCK_PTR,
2066 * domwalk.c (cmp_bb_postorder): Likewise.
2067 * dse.c (dse_step1): Remove usage of EXIT_BLOCK_PTR macro.
2068 * except.c (finish_eh_generation): Remove usage of ENTRY_BLOCK_PTR
2070 (sjlj_emit_function_enter): Likewise.
2071 * final.c (compute_alignments): Likewise.
2072 * function.c (thread_prologue_and_epilogue_insns): Remove uses of
2073 macros: ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
2074 (reposition_prologue_and_epilogue_notes): Remove usage of
2075 EXIT_BLOCK_PTR macro.
2076 (convert_jumps_to_returns): Remove uses of macros: ENTRY_BLOCK_PTR,
2078 (regno_clobbered_at_setjmp): Remove usage of ENTRY_BLOCK_PTR macro.
2079 (next_block_for_reg): Remove usage of EXIT_BLOCK_PTR macro.
2080 * gcse.c (hoist_code): Remove usage of ENTRY_BLOCK_PTR macro.
2081 (update_bb_reg_pressure): Remove usage of EXIT_BLOCK_PTR macro.
2082 (compute_code_hoist_vbeinout): Likewise.
2083 (should_hoist_expr_to_dom): Remove usage of ENTRY_BLOCK_PTR macro.
2084 (pre_expr_reaches_here_p_work): Likewise.
2085 * gimple-iterator.c (gsi_commit_edge_inserts): Likewise.
2086 (gimple_find_edge_insert_loc): Remove uses of macros: ENTRY_BLOCK_PTR,
2088 * gimple-ssa-strength-reduction.c (slsr_process_phi): Remove usage of
2089 ENTRY_BLOCK_PTR macro.
2090 * graph.c (draw_cfg_nodes_for_loop): Remove usage of EXIT_BLOCK_PTR
2092 * graphite-clast-to-gimple.c (translate_clast_user): Remove usage of
2093 ENTRY_BLOCK_PTR macro.
2094 * graphite-scop-detection.c (build_scops): Likewise.
2095 (create_sese_edges): Remove usage of EXIT_BLOCK_PTR macro.
2096 (scopdet_basic_block_info): Remove usage of ENTRY_BLOCK_PTR macro.
2097 * haifa-sched.c (restore_bb_notes): Remove usage of EXIT_BLOCK_PTR
2099 (unlink_bb_notes): Likewise.
2100 (create_check_block_twin): Likewise.
2101 (init_before_recovery): Likewise.
2102 (sched_extend_bb): Likewise.
2103 (priority): Likewise.
2104 * hw-doloop.c (reorder_loops): Likewise.
2105 (discover_loop): Likewise.
2106 * ifcvt.c (dead_or_predicable): Remove uses of macros:
2107 ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
2108 (find_if_case_1): Remove usage of EXIT_BLOCK_PTR macro.
2109 (block_has_only_trap): Likewise.
2110 (cond_exec_find_if_block): Likewise.
2111 (merge_if_block): Likewise.
2112 * ipa-inline-analysis.c (param_change_prob): Remove usage of
2113 ENTRY_BLOCK_PTR macro.
2114 (record_modified): Likewise.
2115 * ipa-pure-const.c (execute_warn_function_noreturn): Remove usage of
2116 EXIT_BLOCK_PTR macro.
2117 (local_pure_const): Likewise.
2118 * ipa-split.c (split_function): Remove uses of macros:
2119 ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
2120 (find_split_points): Likewise.
2121 (consider_split): Likewise.
2122 (find_return_bb): Remove usage of EXIT_BLOCK_PTR macro.
2123 (verify_non_ssa_vars): Remove usage of ENTRY_BLOCK_PTR macro.
2124 * ira-build.c (ira_loop_tree_body_rev_postorder): Likewise.
2125 * ira-color.c (print_loop_title): Remove usage of EXIT_BLOCK_PTR macro.
2126 * ira-emit.c (entered_from_non_parent_p): Remove usage of
2127 ENTRY_BLOCK_PTR macro.
2128 (ira_emit): Remove usage of EXIT_BLOCK_PTR macro.
2129 * ira-int.h (ira_assert): Remove usage of ENTRY_BLOCK_PTR macro.
2130 * ira.c (split_live_ranges_for_shrink_wrap): Remove uses of macros:
2131 ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
2132 * lcm.c (compute_rev_insert_delete): Remove usage of ENTRY_BLOCK_PTR
2134 (compute_nearerout): Remove uses of macros: ENTRY_BLOCK_PTR,
2136 (compute_farthest): Likewise.
2137 (compute_available): Likewise.
2138 (compute_insert_delete): Remove usage of EXIT_BLOCK_PTR macro.
2139 (compute_laterin): Remove uses of macros: ENTRY_BLOCK_PTR,
2141 (compute_earliest): Likewise.
2142 (compute_antinout_edge): Likewise.
2143 * loop-iv.c (simplify_using_initial_values): Remove usage of
2144 ENTRY_BLOCK_PTR macro.
2145 * loop-unswitch.c (unswitch_loop): Remove usage of EXIT_BLOCK_PTR
2147 * lra-assigns.c (find_hard_regno_for): Remove usage of ENTRY_BLOCK_PTR
2149 * lra-constraints.c (lra_inheritance): Remove usage of EXIT_BLOCK_PTR
2151 * lra-lives.c (lra_create_live_ranges): Remove uses of macros:
2152 ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
2153 * lra.c (has_nonexceptional_receiver): Remove usage of EXIT_BLOCK_PTR
2155 * lto-streamer-in.c (input_function): Remove usage of ENTRY_BLOCK_PTR
2157 * lto-streamer-out.c (output_cfg): Likewise.
2158 * mcf.c (adjust_cfg_counts): Remove uses of macros: ENTRY_BLOCK_PTR,
2160 (create_fixup_graph): Remove usage of ENTRY_BLOCK_PTR macro.
2161 * mode-switching.c (optimize_mode_switching): Likewise.
2162 (create_pre_exit): Remove usage of EXIT_BLOCK_PTR macro.
2163 * modulo-sched.c (rest_of_handle_sms): Likewise.
2164 (canon_loop): Likewise.
2165 * omp-low.c (build_omp_regions): Remove usage of ENTRY_BLOCK_PTR macro.
2166 * postreload-gcse.c (eliminate_partially_redundant_loads): Remove uses
2167 of macros: ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
2168 * predict.c (rebuild_frequencies): Remove usage of ENTRY_BLOCK_PTR
2170 (propagate_freq): Remove usage of EXIT_BLOCK_PTR macro.
2171 (estimate_bb_frequencies): Remove usage of ENTRY_BLOCK_PTR macro.
2172 (tree_estimate_probability_bb): Remove usage of EXIT_BLOCK_PTR macro.
2173 (expensive_function_p): Remove usage of ENTRY_BLOCK_PTR macro.
2174 (tree_bb_level_predictions): Remove usage of EXIT_BLOCK_PTR macro.
2175 (counts_to_freqs): Remove usage of ENTRY_BLOCK_PTR macro.
2176 (apply_return_prediction): Remove usage of EXIT_BLOCK_PTR macro.
2177 (estimate_loops): Remove usage of ENTRY_BLOCK_PTR macro.
2178 (gimple_predict_edge): Likewise.
2179 (probably_never_executed): Likewise.
2180 * profile.c (find_spanning_tree): Remove uses of macros:
2181 ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
2182 (branch_prob): Likewise.
2183 (compute_branch_probabilities): Likewise.
2184 (compute_frequency_overlap): Remove usage of ENTRY_BLOCK_PTR macro.
2185 (is_inconsistent): Remove usage of EXIT_BLOCK_PTR macro.
2186 (read_profile_edge_counts): Remove usage of ENTRY_BLOCK_PTR macro.
2187 (set_bb_counts): Likewise.
2188 (correct_negative_edge_counts): Likewise.
2189 (get_exec_counts): Likewise.
2190 (instrument_values): Likewise.
2191 (instrument_edges): Likewise.
2192 * reg-stack.c (convert_regs): Remove uses of macros: ENTRY_BLOCK_PTR,
2194 (compensate_edges): Remove usage of ENTRY_BLOCK_PTR macro.
2195 (convert_regs_exit): Remove usage of EXIT_BLOCK_PTR macro.
2196 (convert_regs_entry): Remove usage of ENTRY_BLOCK_PTR macro.
2197 (reg_to_stack): Likewise.
2198 * regs.h (REG_N_SETS): Likewise.
2199 * reload.c (find_dummy_reload): Likewise.
2200 (combine_reloads): Likewise.
2201 (push_reload): Likewise.
2202 * reload1.c (has_nonexceptional_receiver): Remove usage of
2203 EXIT_BLOCK_PTR macro.
2204 * resource.c (mark_target_live_regs): Remove usage of ENTRY_BLOCK_PTR
2206 (find_basic_block): Likewise.
2207 * sched-ebb.c (ebb_add_block): Remove usage of EXIT_BLOCK_PTR macro.
2208 (schedule_ebbs): Likewise.
2209 * sched-int.h (sel_sched_p): Likewise.
2210 * sched-rgn.c (compute_dom_prob_ps): Remove usage of ENTRY_BLOCK_PTR
2212 (rgn_add_block): Remove usage of EXIT_BLOCK_PTR macro.
2213 (haifa_find_rgns): Remove uses of macros: ENTRY_BLOCK_PTR,
2215 (propagate_deps): Remove usage of EXIT_BLOCK_PTR macro.
2216 (extend_rgns): Likewise.
2217 (find_single_block_region): Likewise.
2218 * sel-sched-ir.c (sel_remove_loop_preheader): Remove usage of
2219 ENTRY_BLOCK_PTR macro.
2220 (setup_nop_and_exit_insns): Remove usage of EXIT_BLOCK_PTR macro.
2221 (sel_create_recovery_block): Likewise.
2222 (bb_ends_ebb_p): Likewise.
2223 (sel_bb_end): Likewise.
2224 (sel_bb_head): Likewise.
2225 (free_lv_sets): Likewise.
2226 (init_lv_sets): Likewise.
2227 (tidy_control_flow): Likewise.
2228 (maybe_tidy_empty_bb): Likewise.
2229 * sel-sched-ir.h (_succ_iter_cond): Likewise.
2230 (_succ_iter_start): Likewise.
2231 (sel_bb_empty_or_nop_p): Likewise.
2232 (get_loop_exit_edges_unique_dests): Likewise.
2233 (inner_loop_header_p): Likewise.
2234 * sel-sched.c (create_block_for_bookkeeping): Likewise.
2235 (find_block_for_bookkeeping): Likewise.
2236 * store-motion.c (remove_reachable_equiv_notes): Likewise.
2237 (insert_store): Likewise.
2238 * trans-mem.c (ipa_tm_transform_clone): Remove usage of
2239 ENTRY_BLOCK_PTR macro.
2240 (tm_memopt_compute_available): Remove usage of EXIT_BLOCK_PTR macro.
2241 (ipa_tm_scan_irr_function): Remove usage of ENTRY_BLOCK_PTR macro.
2242 (gate_tm_init): Likewise.
2243 (tm_region_init): Likewise.
2244 * tree-cfg.c (execute_fixup_cfg): Remove uses of macros:
2245 ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
2246 (execute_warn_function_return): Remove usage of EXIT_BLOCK_PTR macro.
2247 (split_critical_edges): Remove uses of macros: ENTRY_BLOCK_PTR,
2249 (print_loops): Remove usage of ENTRY_BLOCK_PTR macro.
2250 (move_sese_region_to_fn): Remove uses of macros: ENTRY_BLOCK_PTR,
2252 (gimple_redirect_edge_and_branch): Remove usage of ENTRY_BLOCK_PTR
2254 (gimple_verify_flow_info): Remove uses of macros: ENTRY_BLOCK_PTR,
2256 (remove_edge_and_dominated_blocks): Remove usage of EXIT_BLOCK_PTR
2258 (make_edges): Remove uses of macros: ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
2259 (gimple_flow_call_edges_add): Remove usage of EXIT_BLOCK_PTR macro.
2260 (make_blocks): Remove usage of ENTRY_BLOCK_PTR macro.
2261 (build_gimple_cfg): Likewise.
2262 (gimple_duplicate_bb): Remove usage of EXIT_BLOCK_PTR macro.
2263 (gimple_can_merge_blocks_p): Likewise.
2264 * tree-cfgcleanup.c (tree_forwarder_block_p): Remove uses of macros:
2265 ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
2266 * tree-complex.c (update_parameter_components): Remove usage of
2267 ENTRY_BLOCK_PTR macro.
2268 * tree-if-conv.c (get_loop_body_in_if_conv_order): Remove usage of
2269 EXIT_BLOCK_PTR macro.
2270 * tree-inline.c (tree_function_versioning): Remove uses of macros:
2271 ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
2272 (delete_unreachable_blocks_update_callgraph): Likewise.
2273 (initialize_cfun): Likewise.
2274 (copy_cfg_body): Remove usage of ENTRY_BLOCK_PTR macro.
2275 (copy_edges_for_bb): Remove usage of EXIT_BLOCK_PTR macro.
2276 (remap_ssa_name): Remove usage of ENTRY_BLOCK_PTR macro.
2277 * tree-into-ssa.c (update_ssa): Likewise.
2278 (maybe_register_def): Remove usage of EXIT_BLOCK_PTR macro.
2279 (insert_updated_phi_nodes_for): Remove usage of ENTRY_BLOCK_PTR macro.
2280 (rewrite_into_ssa): Likewise.
2281 (rewrite_debug_stmt_uses): Likewise.
2282 * tree-outof-ssa.c (expand_phi_nodes): Remove uses of macros:
2283 ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
2284 * tree-profile.c (gimple_gen_ic_func_profiler): Remove usage of
2285 ENTRY_BLOCK_PTR macro.
2286 * tree-scalar-evolution.h (block_before_loop): Likewise.
2287 * tree-sra.c (sra_ipa_reset_debug_stmts): Likewise.
2288 (dump_dereferences_table): Remove uses of macros: ENTRY_BLOCK_PTR,
2290 (analyze_caller_dereference_legality): Remove usage of ENTRY_BLOCK_PTR
2292 (propagate_dereference_distances): Remove uses of macros:
2293 ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
2294 (initialize_parameter_reductions): Remove usage of ENTRY_BLOCK_PTR
2296 * tree-ssa-ccp.c (gsi_prev_dom_bb_nondebug): Likewise.
2297 (optimize_stack_restore): Remove usage of EXIT_BLOCK_PTR macro.
2298 * tree-ssa-coalesce.c (create_outofssa_var_map): Likewise.
2299 * tree-ssa-dce.c (eliminate_unnecessary_stmts): Remove uses of macros:
2300 ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
2301 (remove_dead_stmt): Remove usage of EXIT_BLOCK_PTR macro.
2302 (propagate_necessity): Remove usage of ENTRY_BLOCK_PTR macro.
2303 (mark_control_dependent_edges_necessary): Remove uses of macros:
2304 ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
2305 * tree-ssa-dom.c (eliminate_degenerate_phis): Remove usage of
2306 ENTRY_BLOCK_PTR macro.
2307 (tree_ssa_dominator_optimize): Remove usage of EXIT_BLOCK_PTR macro.
2308 * tree-ssa-live.c (verify_live_on_entry): Remove uses of macros:
2309 ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
2310 (calculate_live_on_exit): Likewise.
2311 (set_var_live_on_entry): Remove usage of ENTRY_BLOCK_PTR macro.
2312 (loe_visit_block): Likewise.
2313 * tree-ssa-live.h (live_on_exit): Remove uses of macros:
2314 ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
2315 (live_on_entry): Likewise.
2316 * tree-ssa-loop-ivopts.c (find_interesting_uses): Remove usage of
2317 EXIT_BLOCK_PTR macro.
2318 * tree-ssa-loop-manip.c (compute_live_loop_exits): Remove usage of
2319 ENTRY_BLOCK_PTR macro.
2320 * tree-ssa-loop-niter.c (simplify_using_initial_conditions): Likewise.
2321 (bound_difference): Likewise.
2322 * tree-ssa-loop-prefetch.c (may_use_storent_in_loop_p): Remove usage
2323 of EXIT_BLOCK_PTR macro.
2324 * tree-ssa-loop-unswitch.c (simplify_using_entry_checks): Remove usage
2325 of ENTRY_BLOCK_PTR macro.
2326 * tree-ssa-math-opts.c (register_division_in): Likewise.
2327 * tree-ssa-phiprop.c (tree_ssa_phiprop): Likewise.
2328 * tree-ssa-pre.c (compute_avail): Likewise.
2329 (compute_antic): Remove usage of EXIT_BLOCK_PTR macro.
2330 (insert): Remove usage of ENTRY_BLOCK_PTR macro.
2331 * tree-ssa-propagate.c (ssa_prop_init): Likewise.
2332 (simulate_block): Remove usage of EXIT_BLOCK_PTR macro.
2333 (cfg_blocks_add): Remove uses of macros: ENTRY_BLOCK_PTR,
2335 (add_control_edge): Remove usage of EXIT_BLOCK_PTR macro.
2336 * tree-ssa-reassoc.c (do_reassoc): Remove uses of macros:
2337 ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
2338 (build_and_add_sum): Remove usage of ENTRY_BLOCK_PTR macro.
2339 * tree-ssa-sink.c (nearest_common_dominator_of_uses): Likewise.
2340 (execute_sink_code): Remove usage of EXIT_BLOCK_PTR macro.
2341 * tree-ssa-uninit.c (find_dom): Remove usage of ENTRY_BLOCK_PTR macro.
2342 (compute_control_dep_chain): Remove usage of EXIT_BLOCK_PTR macro.
2343 (find_pdom): Likewise.
2344 (warn_uninitialized_vars): Remove usage of ENTRY_BLOCK_PTR macro.
2345 * tree-stdarg.c (reachable_at_most_once): Likewise.
2346 * tree-tailcall.c (tree_optimize_tail_calls_1): Remove uses of macros:
2347 ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
2348 (eliminate_tail_call): Likewise.
2349 * tsan.c (instrument_func_entry): Remove usage of ENTRY_BLOCK_PTR
2351 (instrument_func_exit): Remove usage of EXIT_BLOCK_PTR macro.
2352 * var-tracking.c (vt_initialize): Remove uses of macros:
2353 ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
2354 (vt_add_function_parameter): Remove usage of ENTRY_BLOCK_PTR macro.
2355 (vt_find_locations): Remove usage of EXIT_BLOCK_PTR macro.
2356 (vt_stack_adjustments): Remove uses of macros: ENTRY_BLOCK_PTR,
2358 * varasm.c (assemble_start_function): Remove usage of ENTRY_BLOCK_PTR
2360 * config/bfin/bfin.c (hwloop_optimize): Likewise.
2361 * config/nds32/nds32.c (nds32_fp_as_gp_check_available): Remove usage
2362 of EXIT_BLOCK_PTR macro.
2363 * config/arm/arm.c (require_pic_register): Remove usage of
2364 ENTRY_BLOCK_PTR macro.
2365 (arm_r3_live_at_start_p): Likewise.
2366 (any_sibcall_could_use_r3): Remove usage of EXIT_BLOCK_PTR macro.
2367 * config/rs6000/rs6000.c (rs6000_emit_prologue): Likewise.
2368 * config/frv/frv.c (frv_optimize_membar_global): Likewise.
2369 * config/alpha/alpha.c (alpha_gp_save_rtx): Remove usage of
2370 ENTRY_BLOCK_PTR macro.
2371 * config/i386/i386.c (ix86_count_insn): Likewise.
2372 (ix86_seh_fixup_eh_fallthru): Remove usage of EXIT_BLOCK_PTR macro.
2373 (ix86_pad_short_function): Likewise.
2374 (ix86_compute_frame_layout): Remove usage of ENTRY_BLOCK_PTR macro.
2375 (ix86_pad_returns): Remove usage of EXIT_BLOCK_PTR macro.
2376 (ix86_eax_live_at_start_p): Remove usage of ENTRY_BLOCK_PTR macro.
2377 (add_condition_to_bb): Remove usage of EXIT_BLOCK_PTR macro.
2378 (ix86_expand_epilogue): Likewise.
2379 * config/ia64/ia64.c (ia64_asm_unwind_emit): Likewise.
2380 (ia64_expand_prologue): Likewise.
2382 2013-11-19 Catherine Moore <clm@codesourcery.com>
2384 * doc/invoke.texi (mfix-rm7000, mno-fix-rm7000): Document.
2385 * config/mips/mips.opt (mfix-rm7000): New option.
2386 * config/mips/mips.h (ASM_SPEC): Handle mfix-rm7000.
2387 * config/mips/mips.c (mips_reorg_process_insns): Disable
2388 noreorder for TARGET_FIX_RM7000.
2390 2013-11-19 Oleg Endo <olegendo@gcc.gnu.org>
2392 * config/sh/sh-c.c: Fix typo in include of file attribs.h.
2394 2013-11-19 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2396 * config/arm/arm.c (arm_new_rtx_costs):
2397 Handle narrow mode add-shifts properly.
2398 * config/arm/arm-common.c (arm_rtx_shift_left_p): Remove static.
2399 * config/arm/arm-common-protos.h (arm_rtx_shift_left_p):
2402 2013-11-19 James Greenhalgh <james.greenhalgh@arm.com>
2404 * config/arm/arm.md (zero_extend<mode>di2): Add type attribute.
2406 2013-11-19 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
2408 * config/rs6000/vector.md ("mov<mode>"): Do not call
2409 rs6000_emit_le_vsx_move to move into or out of GPRs.
2410 * config/rs6000/rs6000.c (rs6000_emit_le_vsx_move): Assert
2411 source and destination are not GPR hard regs.
2413 2013-11-19 David Malcolm <dmalcolm@redhat.com>
2415 * basic-block.h (n_edges_for_function): Rename macro to...
2416 (n_edges_for_fn): ...this.
2417 (n_edges): Eliminate macro as work towards making uses of
2420 * cfg.c (init_flow): Update for renaming of "n_edges_for_function"
2421 to "n_edges_for_fn".
2423 * cfg.c (unchecked_make_edge): Remove usage of n_edges macro.
2424 (clear_edges): Likewise.
2425 (free_edge): Likewise.
2426 * cfghooks.c (dump_flow_info): Likewise.
2427 * cprop.c (is_too_expensive): Likewise.
2428 * df-core.c (df_worklist_dataflow_doublequeue): Likewise.
2429 * gcse.c (is_too_expensive): Likewise.
2430 (prune_insertions_deletions): Likewise.
2431 * mcf.c (create_fixup_graph): Likewise.
2432 * sched-rgn.c (haifa_find_rgns): Likewise.
2433 * tree-cfg.c (gimple_dump_cfg): Likewise.
2434 * var-tracking.c (variable_tracking_main_1): Likewise.
2436 2013-11-19 Marcus Shawcroft <marcus.shawcroft@arm.com>
2438 * config/aarch64/aarch64.c (aarch64_save_or_restore_fprs): Fix over
2441 2013-11-19 Marcus Shawcroft <marcus.shawcroft@arm.com>
2443 * config/aarch64/aarch64.md
2444 (aarch64_movdi_<mode>low, *add_<shift>_si_uxtw): Adjust whitespace.
2446 2013-11-19 Marcus Shawcroft <marcus.shawcroft@arm.com>
2448 * config/aarch64/aarch64.h (PROFILE_HOOK): Fix whitespace.
2450 2013-11-19 Joseph Myers <joseph@codesourcery.com>
2452 * varasm.c (align_variable): Give error instead of warning for
2453 unsupported alignment.
2454 (assemble_noswitch_variable): Likewise.
2456 2013-11-19 Basile Starynkevitch <basile@starynkevitch.net>
2458 * plugin.def (PLUGIN_INCLUDE_FILE): New event, invoked in
2461 2013-11-19 Peter Bergner <bergner@vnet.ibm.com>
2463 * loop-doloop.c (doloop_optimize_loops): Remove unused
2464 loop iterator argument from FOR_EACH_LOOP.
2466 2013-11-19 David Malcolm <dmalcolm@redhat.com>
2468 Convert gimple types from a union to C++ inheritance.
2469 * Makefile.in (GIMPLE_H): Add dep on is-a.h.
2470 * coretypes.h (union gimple_statement_d): Remove declaration.
2471 (gimple): Convert from being a "union gimple_statement_d *"
2472 to a "struct gimple_statement_base *".
2473 (const_gimple): Likewise (with "const").
2474 * ggc.h (ggc_alloc_cleared_gimple_statement_d_stat): Replace with...
2475 (ggc_alloc_cleared_gimple_statement_stat): ...this.
2476 * gimple-pretty-print.c (debug): Change parameter from a
2477 "gimple_statement_d &" to a "gimple_statement_base &".
2478 (debug): Change parameter from a "gimple_statement_d *" to
2479 a "gimple_statement_base *".
2480 * gimple-pretty-print.h (debug): Update declarations as above.
2481 * gimple.c (gimple_alloc_stat): Update for renaming of
2482 ggc_alloc_cleared_gimple_statement_d_stat to
2483 ggc_alloc_cleared_gimple_statement_stat.
2484 * gimple.h: Include "is-a.h" for use by is_a_helper
2485 specializations in followup autogenerated patch.
2486 (struct gimple statement_base): Make this type usable as a base
2487 class by adding "desc", "tag" and "variable_size" to GTY, thus
2488 using opting-in to gengtype's support for simple inheritance.
2489 (gimple_statement_with_ops_base): Convert to a subclass of
2490 gimple_statement_base, dropping initial "gsbase" field. Note that
2491 this type is abstract, with no GSS_ value, and thus no GTY tag value.
2492 (gimple_statement_with_ops): Convert to a subclass of
2493 gimple_statement_with_ops_base, dropping initial "opbase" field.
2494 Add tag value to GTY marking. Update marking of op field to
2495 reflect how num_ops field is accessed via inheritance.
2496 (gimple_statement_with_memory_ops_base): Convert to a subclass of
2497 gimple_statement_with_ops_base, dropping initial "opbase" field.
2498 Add tag value to GTY marking.
2499 (gimple_statement_with_memory_ops): Convert to a subclass of
2500 public gimple_statement_with_memory_ops_base, dropping initial
2501 "membase" field. Add tag value to GTY marking. Update marking
2502 of op field to reflect how num_ops field is accessed via inheritance.
2503 (gimple_statement_call): Analogous changes that also update the
2504 marking of the "u" union.
2505 (gimple_statement_omp): Convert to a subclass of
2506 gimple_statement_base, dropping initial "gsbase" field, adding
2507 tag value to GTY marking.
2508 (gimple_statement_bind): Likewise.
2509 (gimple_statement_catch): Likewise.
2510 (gimple_statement_eh_filter): Likewise.
2511 (gimple_statement_eh_else): Likewise.
2512 (gimple_statement_eh_mnt): Likewise.
2513 (gimple_statement_phi): Likewise.
2514 (gimple_statement_eh_ctrl): Likewise.
2515 (gimple_statement_try): Likewise.
2516 (gimple_statement_wce): Likewise.
2517 (gimple_statement_asm): Convert to a subclass of
2518 gimple_statement_with_memory_ops_base, dropping initial
2519 "membase" field, adding tag value to GTY marking, and updating
2520 marking of op field.
2521 (gimple_statement_omp_critical): Convert to a subclass of
2522 gimple_statement_omp, dropping initial "omp" field, adding tag
2523 value to GTY marking.
2524 (gimple_statement_omp_for): Likewise.
2525 (gimple_statement_omp_parallel): Likewise.
2526 (gimple_statement_omp_task): Convert to a subclass of
2527 gimple_statement_omp_parallel, dropping initial "par" field,
2528 adding tag value to GTY marking.
2529 (gimple_statement_omp_sections): Convert to a subclass of
2530 gimple_statement_omp, dropping initial "omp" field, adding
2531 tag value to GTY marking.
2532 (gimple_statement_omp_continue): Convert to a subclass of
2533 gimple_statement_base, dropping initial "gsbase" field, adding
2534 tag value to GTY marking.
2535 (gimple_statement_omp_single): Convert to a subclass of
2536 gimple_statement_omp, dropping initial "omp" field, adding
2537 tag value to GTY marking.
2538 (gimple_statement_omp_atomic_load): Convert to a subclass of
2539 gimple_statement_base, dropping initial "gsbase" field, adding
2540 tag value to GTY marking.
2541 (gimple_statement_omp_atomic_store): Convert to a subclass of
2542 gimple_statement_base, dropping initial "gsbase" field, adding
2543 tag value to GTY marking.
2544 (gimple_statement_transaction): Convert to a subclass of
2545 gimple_statement_with_memory_ops_base, dropping initial "gsbase"
2546 field, adding tag value to GTY marking.
2547 (union gimple_statement_d): Remove.
2548 * system.h (CONST_CAST_GIMPLE): Update to use
2549 "struct gimple_statement_base *" rather than
2550 "union gimple_statement_d *".
2551 * tree-ssa-ccp.c (gimple_htab): Convert underlying type from
2552 gimple_statement_d to gimple_statement_base.
2554 * gimple.h (gimple_use_ops): Port from union to usage of dyn_cast.
2555 (gimple_set_use_ops): Port from union to usage of as_a.
2556 (gimple_set_vuse): Likewise.
2557 (gimple_set_vdef): Likewise.
2558 (gimple_call_internal_fn): Port from union to a static_cast,
2559 given that the type has already been asserted.
2560 (gimple_omp_body_ptr): Port from unchecked union usage to
2562 (gimple_omp_set_body): Likewise.
2564 * gimple-iterator.c (update_bb_for_stmts): Update for conversion of
2565 gimple types to a true class hierarchy.
2566 (update_call_edge_frequencies): Likewise.
2567 (gsi_insert_seq_nodes_before): Likewise.
2568 (gsi_insert_seq_nodes_after): Likewise.
2569 (gsi_split_seq_after): Likewise.
2570 (gsi_set_stmt): Likewise.
2571 (gsi_split_seq_before): Likewise.
2572 (gsi_remove): Likewise.
2573 * gimple-iterator.h (gsi_one_before_end_p): Likewise.
2574 (gsi_next): Likewise.
2575 (gsi_prev): Likewise.
2576 * gimple-pretty-print.c (dump_gimple_debug): Likewise.
2577 * gimple-ssa.h (gimple_vuse_op): Likewise.
2578 (gimple_vdef_op): Likewise.
2579 * gimple-streamer-in.c (input_gimple_stmt): Likewise.
2580 * gimple-streamer-out.c (output_gimple_stmt): Likewise.
2581 * gimple.c (gimple_set_code): Likewise.
2582 (gimple_alloc_stat): Likewise.
2583 (gimple_set_subcode): Likewise.
2584 (gimple_build_call_internal_1): Likewise.
2585 (gimple_check_failed): Likewise.
2586 (gimple_call_flags): Likewise.
2587 (gimple_set_bb): Likewise.
2588 * gimple.h (is_a_helper <gimple_statement_asm> (gimple)): New.
2589 (is_a_helper <gimple_statement_bind> (gimple)): Likewise.
2590 (is_a_helper <gimple_statement_call> (gimple)): Likewise.
2591 (is_a_helper <gimple_statement_catch> (gimple)): Likewise.
2592 (is_a_helper <gimple_statement_eh_ctrl> (gimple)): Likewise.
2593 (is_a_helper <gimple_statement_eh_else> (gimple)): Likewise.
2594 (is_a_helper <gimple_statement_eh_filter> (gimple)): Likewise.
2595 (is_a_helper <gimple_statement_eh_mnt> (gimple)): Likewise.
2596 (is_a_helper <gimple_statement_omp_atomic_load> (gimple)): Likewise.
2597 (is_a_helper <gimple_statement_omp_atomic_store> (gimple)): Likewise.
2598 (is_a_helper <gimple_statement_omp_continue> (gimple)): Likewise.
2599 (is_a_helper <gimple_statement_omp_critical> (gimple)): Likewise.
2600 (is_a_helper <gimple_statement_omp_for> (gimple)): Likewise.
2601 (is_a_helper <gimple_statement_omp_parallel> (gimple)): Likewise.
2602 (is_a_helper <gimple_statement_omp_sections> (gimple)): Likewise.
2603 (is_a_helper <gimple_statement_omp_single> (gimple)): Likewise.
2604 (is_a_helper <gimple_statement_omp_task> (gimple)): Likewise.
2605 (is_a_helper <gimple_statement_phi> (gimple)): Likewise.
2606 (is_a_helper <gimple_statement_transaction> (gimple)): Likewise.
2607 (is_a_helper <gimple_statement_try> (gimple)): Likewise.
2608 (is_a_helper <gimple_statement_wce> (gimple)): Likewise.
2609 (is_a_helper <const gimple_statement_asm> (const_gimple)): Likewise.
2610 (is_a_helper <const gimple_statement_bind> (const_gimple)): Likewise.
2611 (is_a_helper <const gimple_statement_call> (const_gimple)): Likewise.
2612 (is_a_helper <const gimple_statement_catch> (const_gimple)): Likewise.
2613 (is_a_helper <const gimple_statement_eh_ctrl> (const_gimple)):
2615 (is_a_helper <const gimple_statement_eh_filter> (const_gimple)):
2617 (is_a_helper <const gimple_statement_omp_atomic_load> (const_gimple)):
2619 (is_a_helper <const gimple_statement_omp_atomic_store>
2620 (const_gimple)): Likewise.
2621 (is_a_helper <const gimple_statement_omp_continue> (const_gimple)):
2623 (is_a_helper <const gimple_statement_omp_critical> (const_gimple)):
2625 (is_a_helper <const gimple_statement_omp_for> (const_gimple)):
2627 (is_a_helper <const gimple_statement_omp_parallel> (const_gimple)):
2629 (is_a_helper <const gimple_statement_omp_sections> (const_gimple)):
2631 (is_a_helper <const gimple_statement_omp_single> (const_gimple)):
2633 (is_a_helper <const gimple_statement_omp_task> (const_gimple)):
2635 (is_a_helper <const gimple_statement_phi> (const_gimple)): Likewise.
2636 (is_a_helper <const gimple_statement_transaction> (const_gimple)):
2638 (gimple_seq_last): Update for conversion of gimple types to a true
2640 (gimple_seq_set_last): Likewise.
2641 (gimple_code): Likewise.
2642 (gimple_bb): Likewise.
2643 (gimple_block): Likewise.
2644 (gimple_set_block): Likewise.
2645 (gimple_location): Likewise.
2646 (gimple_location_ptr): Likewise.
2647 (gimple_set_location): Likewise.
2648 (gimple_no_warning_p): Likewise.
2649 (gimple_set_no_warning): Likewise.
2650 (gimple_set_visited): Likewise.
2651 (gimple_visited_p): Likewise.
2652 (gimple_set_plf): Likewise.
2653 (gimple_plf): Likewise.
2654 (gimple_set_uid): Likewise.
2655 (gimple_uid): Likewise.
2656 (gimple_init_singleton): Likewise.
2657 (gimple_modified_p): Likewise.
2658 (gimple_set_modified): Likewise.
2659 (gimple_expr_code): Likewise.
2660 (gimple_has_volatile_ops): Likewise.
2661 (gimple_set_has_volatile_ops): Likewise.
2662 (gimple_omp_subcode): Likewise.
2663 (gimple_omp_set_subcode): Likewise.
2664 (gimple_omp_return_set_nowait): Likewise.
2665 (gimple_omp_section_set_last): Likewise.
2666 (gimple_omp_parallel_set_combined_p): Likewise.
2667 (gimple_omp_atomic_set_need_value): Likewise.
2668 (gimple_omp_atomic_set_seq_cst): Likewise.
2669 (gimple_num_ops): Likewise.
2670 (gimple_set_num_ops): Likewise.
2671 (gimple_assign_nontemporal_move_p): Likewise.
2672 (gimple_assign_set_nontemporal_move): Likewise.
2673 (gimple_assign_rhs_code): Likewise.
2674 (gimple_assign_set_rhs_code): Likewise.
2675 (gimple_call_internal_p): Likewise.
2676 (gimple_call_with_bounds_p): Likewise.
2677 (gimple_call_set_with_bounds): Likewise.
2678 (gimple_call_set_tail): Likewise.
2679 (gimple_call_tail_p): Likewise.
2680 (gimple_call_set_return_slot_opt): Likewise.
2681 (gimple_call_return_slot_opt_p): Likewise.
2682 (gimple_call_set_from_thunk): Likewise.
2683 (gimple_call_from_thunk_p): Likewise.
2684 (gimple_call_set_va_arg_pack): Likewise.
2685 (gimple_call_va_arg_pack_p): Likewise.
2686 (gimple_call_set_nothrow): Likewise.
2687 (gimple_call_set_alloca_for_var): Likewise.
2688 (gimple_call_alloca_for_var_p): Likewise.
2689 (gimple_call_copy_flags): Likewise.
2690 (gimple_cond_code): Likewise.
2691 (gimple_cond_set_code): Likewise.
2692 (gimple_cond_make_false): Likewise.
2693 (gimple_cond_make_true): Likewise.
2694 (gimple_asm_volatile_p): Likewise.
2695 (gimple_asm_set_volatile): Likewise.
2696 (gimple_asm_set_input): Likewise.
2697 (gimple_asm_input_p): Likewise.
2698 (gimple_try_kind): Likewise.
2699 (gimple_try_set_kind): Likewise.
2700 (gimple_try_catch_is_cleanup): Likewise.
2701 (gimple_try_set_catch_is_cleanup): Likewise.
2702 (gimple_wce_cleanup_eh_only): Likewise.
2703 (gimple_wce_set_cleanup_eh_only): Likewise.
2704 (gimple_debug_bind_p): Likewise.
2705 (gimple_debug_source_bind_p): Likewise.
2706 (gimple_omp_for_set_kind): Likewise.
2707 (gimple_omp_for_set_combined_p): Likewise.
2708 (gimple_omp_for_set_combined_into_p): Likewise.
2709 (gimple_omp_target_set_kind): Likewise.
2710 (gimple_transaction_subcode): Likewise.
2711 (gimple_transaction_set_subcode): Likewise.
2712 (gimple_predict_predictor): Likewise.
2713 (gimple_predict_set_predictor): Likewise.
2714 (gimple_predict_outcome): Likewise.
2715 (gimple_predict_set_outcome): Likewise.
2716 (gimple_transaction_set_label): Likewise.
2717 (gimple_transaction_set_body): Likewise.
2718 (gimple_transaction_label_ptr): Likewise.
2719 (gimple_transaction_label): Likewise.
2720 (gimple_transaction_body_ptr): Likewise.
2721 (gimple_omp_continue_set_control_use): Likewise.
2722 (gimple_omp_continue_control_use_ptr): Likewise.
2723 (gimple_omp_continue_control_use): Likewise.
2724 (gimple_omp_continue_set_control_def): Likewise.
2725 (gimple_omp_continue_control_def_ptr): Likewise.
2726 (gimple_omp_continue_control_def): Likewise.
2727 (gimple_omp_atomic_load_rhs_ptr): Likewise.
2728 (gimple_omp_atomic_load_rhs): Likewise.
2729 (gimple_omp_atomic_load_set_rhs): Likewise.
2730 (gimple_omp_atomic_load_lhs_ptr): Likewise.
2731 (gimple_omp_atomic_load_lhs): Likewise.
2732 (gimple_omp_atomic_load_set_lhs): Likewise.
2733 (gimple_omp_atomic_store_val_ptr): Likewise.
2734 (gimple_omp_atomic_store_val): Likewise.
2735 (gimple_omp_atomic_store_set_val): Likewise.
2736 (gimple_omp_for_cond): Likewise.
2737 (gimple_omp_for_set_cond): Likewise.
2738 (gimple_omp_sections_set_control): Likewise.
2739 (gimple_omp_sections_control_ptr): Likewise.
2740 (gimple_omp_sections_control): Likewise.
2741 (gimple_omp_sections_set_clauses): Likewise.
2742 (gimple_omp_sections_clauses_ptr): Likewise.
2743 (gimple_omp_sections_clauses): Likewise.
2744 (gimple_omp_teams_set_clauses): Likewise.
2745 (gimple_omp_teams_clauses_ptr): Likewise.
2746 (gimple_omp_teams_clauses): Likewise.
2747 (gimple_omp_target_set_data_arg): Likewise.
2748 (gimple_omp_target_data_arg_ptr): Likewise.
2749 (gimple_omp_target_data_arg): Likewise.
2750 (gimple_omp_target_set_child_fn): Likewise.
2751 (gimple_omp_target_child_fn_ptr): Likewise.
2752 (gimple_omp_target_child_fn): Likewise.
2753 (gimple_omp_target_set_clauses): Likewise.
2754 (gimple_omp_target_clauses_ptr): Likewise.
2755 (gimple_omp_target_clauses): Likewise.
2756 (gimple_omp_single_set_clauses): Likewise.
2757 (gimple_omp_single_clauses_ptr): Likewise.
2758 (gimple_omp_single_clauses): Likewise.
2759 (gimple_omp_task_set_arg_align): Likewise.
2760 (gimple_omp_task_arg_align_ptr): Likewise.
2761 (gimple_omp_task_arg_align): Likewise.
2762 (gimple_omp_task_set_arg_size): Likewise.
2763 (gimple_omp_task_arg_size_ptr): Likewise.
2764 (gimple_omp_task_arg_size): Likewise.
2765 (gimple_omp_task_set_copy_fn): Likewise.
2766 (gimple_omp_task_copy_fn_ptr): Likewise.
2767 (gimple_omp_task_copy_fn): Likewise.
2768 (gimple_omp_task_set_data_arg): Likewise.
2769 (gimple_omp_task_data_arg_ptr): Likewise.
2770 (gimple_omp_task_data_arg): Likewise.
2771 (gimple_omp_task_set_child_fn): Likewise.
2772 (gimple_omp_task_child_fn_ptr): Likewise.
2773 (gimple_omp_task_child_fn): Likewise.
2774 (gimple_omp_task_set_clauses): Likewise.
2775 (gimple_omp_task_clauses_ptr): Likewise.
2776 (gimple_omp_task_clauses): Likewise.
2777 (gimple_omp_parallel_set_data_arg): Likewise.
2778 (gimple_omp_parallel_data_arg_ptr): Likewise.
2779 (gimple_omp_parallel_data_arg): Likewise.
2780 (gimple_omp_parallel_set_child_fn): Likewise.
2781 (gimple_omp_parallel_child_fn_ptr): Likewise.
2782 (gimple_omp_parallel_child_fn): Likewise.
2783 (gimple_omp_parallel_set_clauses): Likewise.
2784 (gimple_omp_parallel_clauses_ptr): Likewise.
2785 (gimple_omp_parallel_clauses): Likewise.
2786 (gimple_omp_for_set_pre_body): Likewise.
2787 (gimple_omp_for_pre_body_ptr): Likewise.
2788 (gimple_omp_for_set_incr): Likewise.
2789 (gimple_omp_for_incr_ptr): Likewise.
2790 (gimple_omp_for_incr): Likewise.
2791 (gimple_omp_for_set_final): Likewise.
2792 (gimple_omp_for_final_ptr): Likewise.
2793 (gimple_omp_for_final): Likewise.
2794 (gimple_omp_for_set_initial): Likewise.
2795 (gimple_omp_for_initial_ptr): Likewise.
2796 (gimple_omp_for_initial): Likewise.
2797 (gimple_omp_for_set_index): Likewise.
2798 (gimple_omp_for_index_ptr): Likewise.
2799 (gimple_omp_for_index): Likewise.
2800 (gimple_omp_for_collapse): Likewise.
2801 (gimple_omp_for_set_clauses): Likewise.
2802 (gimple_omp_for_clauses_ptr): Likewise.
2803 (gimple_omp_for_clauses): Likewise.
2804 (gimple_omp_critical_set_name): Likewise.
2805 (gimple_omp_critical_name_ptr): Likewise.
2806 (gimple_omp_critical_name): Likewise.
2807 (gimple_eh_dispatch_set_region): Likewise.
2808 (gimple_eh_dispatch_region): Likewise.
2809 (gimple_resx_set_region): Likewise.
2810 (gimple_resx_region): Likewise.
2811 (gimple_phi_set_arg): Likewise.
2812 (gimple_phi_arg): Likewise.
2813 (gimple_phi_set_result): Likewise.
2814 (gimple_phi_result_ptr): Likewise.
2815 (gimple_phi_result): Likewise.
2816 (gimple_phi_num_args): Likewise.
2817 (gimple_phi_capacity): Likewise.
2818 (gimple_wce_set_cleanup): Likewise.
2819 (gimple_wce_cleanup_ptr): Likewise.
2820 (gimple_try_set_cleanup): Likewise.
2821 (gimple_try_set_eval): Likewise.
2822 (gimple_try_cleanup_ptr): Likewise.
2823 (gimple_try_eval_ptr): Likewise.
2824 (gimple_eh_else_set_e_body): Likewise.
2825 (gimple_eh_else_set_n_body): Likewise.
2826 (gimple_eh_else_e_body_ptr): Likewise.
2827 (gimple_eh_else_n_body_ptr): Likewise.
2828 (gimple_eh_must_not_throw_set_fndecl): Likewise.
2829 (gimple_eh_must_not_throw_fndecl): Likewise.
2830 (gimple_eh_filter_set_failure): Likewise.
2831 (gimple_eh_filter_set_types): Likewise.
2832 (gimple_eh_filter_failure_ptr): Likewise.
2833 (gimple_eh_filter_types_ptr): Likewise.
2834 (gimple_eh_filter_types): Likewise.
2835 (gimple_catch_set_handler): Likewise.
2836 (gimple_catch_set_types): Likewise.
2837 (gimple_catch_handler_ptr): Likewise.
2838 (gimple_catch_types_ptr): Likewise.
2839 (gimple_catch_types): Likewise.
2840 (gimple_asm_string): Likewise.
2841 (gimple_asm_set_label_op): Likewise.
2842 (gimple_asm_label_op): Likewise.
2843 (gimple_asm_set_clobber_op): Likewise.
2844 (gimple_asm_clobber_op): Likewise.
2845 (gimple_asm_set_output_op): Likewise.
2846 (gimple_asm_output_op_ptr): Likewise.
2847 (gimple_asm_output_op): Likewise.
2848 (gimple_asm_set_input_op): Likewise.
2849 (gimple_asm_input_op_ptr): Likewise.
2850 (gimple_asm_input_op): Likewise.
2851 (gimple_asm_nlabels): Likewise.
2852 (gimple_asm_nclobbers): Likewise.
2853 (gimple_asm_noutputs): Likewise.
2854 (gimple_asm_ninputs): Likewise.
2855 (gimple_bind_set_block): Likewise.
2856 (gimple_bind_block): Likewise.
2857 (gimple_bind_add_seq): Likewise.
2858 (gimple_bind_add_stmt): Likewise.
2859 (gimple_bind_set_body): Likewise.
2860 (gimple_bind_body_ptr): Likewise.
2861 (gimple_bind_append_vars): Likewise.
2862 (gimple_bind_set_vars): Likewise.
2863 (gimple_bind_vars): Likewise.
2864 (gimple_call_clobber_set): Likewise.
2865 (gimple_call_use_set): Likewise.
2866 (gimple_call_set_internal_fn): Likewise.
2867 (gimple_call_set_fntype): Likewise.
2868 (gimple_call_fntype): Likewise.
2869 (gimple_omp_return_lhs_ptr): Likewise.
2870 (gimple_omp_return_lhs): Likewise.
2871 (gimple_omp_return_set_lhs): Likewise.
2872 (gimple_omp_taskreg_set_data_arg): Likewise.
2873 (gimple_omp_taskreg_data_arg_ptr): Likewise.
2874 (gimple_omp_taskreg_data_arg): Likewise.
2875 (gimple_omp_taskreg_set_child_fn): Likewise.
2876 (gimple_omp_taskreg_child_fn_ptr): Likewise.
2877 (gimple_omp_taskreg_child_fn): Likewise.
2878 (gimple_omp_taskreg_set_clauses): Likewise.
2879 (gimple_omp_taskreg_clauses_ptr): Likewise.
2880 (gimple_omp_taskreg_clauses): Likewise.
2881 (gimple_vuse): Likewise.
2882 (gimple_vdef): Likewise.
2883 (gimple_vuse_ptr): Likewise.
2884 (gimple_vdef_ptr): Likewise.
2885 * tree-inline.c (copy_debug_stmt): Likewise.
2886 * tree-phinodes.c (make_phi_node): Likewise.
2888 * gimple.h (is_a_helper <const gimple_statement_with_ops>::test): New.
2889 (is_a_helper <gimple_statement_with_ops>::test): New.
2890 (is_a_helper <const gimple_statement_with_memory_ops>::test): New.
2891 (is_a_helper <gimple_statement_with_memory_ops>::test): New.
2893 * gimple-streamer-in.c (input_gimple_stmt): Port from union
2894 access to use of as_a.
2895 * gimple.c (gimple_build_asm_1): Likewise.
2896 (gimple_build_try): Likewise. Also, return a specific subclass
2897 rather than just gimple.
2898 (gimple_build_resx): Port from union access to use of as_a.
2899 (gimple_build_eh_dispatch): Likewise.
2900 (gimple_build_omp_for): Likewise. Also, convert allocation of iter
2901 now that gengtype no longer provides a typed allocator function.
2902 (gimple_copy): Likewise.
2903 * gimple.h (gimple_build_try): Return a specific subclass rather
2905 * gimplify.c (gimplify_cleanup_point_expr): Replace union access
2906 with subclass access by making use of new return type of
2908 * tree-phinodes.c: (allocate_phi_node): Return a
2909 "gimple_statement_phi *" rather than just a gimple.
2910 (resize_phi_node): Likewise.
2911 (make_phi_node): Replace union access with subclass access by
2912 making use of new return type of allocate_phi_node.
2913 (reserve_phi_args_for_new_edge): Replace union access with as_a.
2914 (remove_phi_arg_num): Accept a "gimple_statement_phi *" rather
2916 (remove_phi_args): Update for change to remove_phi_arg_num.
2918 * gdbhooks.py (GimplePrinter.to_string): Update lookup of
2919 code field to reflect inheritance, rather than embedding of
2920 the base gimple type.
2922 2013-11-19 Richard Biener <rguenther@suse.de>
2924 * cfgloop.h (struct loop_iterator): C++-ify, add constructor
2925 and destructor and make fel_next a member function.
2926 (fel_next): Transform into ...
2927 (loop_iterator::next): ... this.
2928 (fel_init): Transform into ...
2929 (loop_iterator::loop_iterator): ... this.
2930 (loop_iterator::~loop_iterator): New.
2931 (FOR_EACH_LOOP): Remove loop-iterator argument.
2932 (FOR_EACH_LOOP_BREAK): Remove no longer necessary macro.
2933 * cfgloop.c, cfgloopmanip.c, config/mn10300/mn10300.c,
2934 graphite-clast-to-gimple.c, graphite-scop-detection.c,
2935 graphite-sese-to-poly.c, ipa-inline-analysis.c, ipa-pure-const.c,
2936 loop-init.c, loop-invariant.c, loop-unroll.c, loop-unswitch.c,
2937 modulo-sched.c, predict.c, sel-sched-ir.c, tree-cfg.c, tree-data-ref.c,
2938 tree-if-conv.c, tree-loop-distribution.c, tree-parloops.c,
2939 tree-predcom.c, tree-scalar-evolution.c, tree-ssa-dce.c,
2940 tree-ssa-loop-ch.c, tree-ssa-loop-im.c, tree-ssa-loop-ivcanon.c,
2941 tree-ssa-loop-ivopts.c, tree-ssa-loop-manip.c, tree-ssa-loop-niter.c,
2942 tree-ssa-loop-prefetch.c, tree-ssa-loop-unswitch.c,
2943 tree-ssa-threadupdate.c, tree-vectorizer.c, tree-vrp.c: Adjust
2944 uses of FOR_EACH_LOOP and remove loop_iterator variables. Replace
2945 FOR_EACH_LOOP_BREAK with break.
2947 2013-11-19 Richard Biener <rguenther@suse.de>
2949 PR tree-optimization/59164
2950 * tree-vect-loop-manip.c (vect_update_ivs_after_vectorizer):
2952 * tree-vect-loop.c (vect_analyze_loop_operations): Adjust check
2953 whether we can create an epilogue loop to reflect thecases where
2956 2013-11-19 Andrew MacLeod <amacleod@redhat.com>
2958 * graphite-sese-to-poly.c: Include expr.h.
2960 2013-11-19 Richard Biener <rguenther@suse.de>
2963 * tree-ssa-ter.c (find_replaceable_in_bb): Avoid forwarding
2964 loads into stmts that may clobber it.
2966 2013-11-19 Bernd Schmidt <bernds@codesourcery.com>
2968 * cgraphunit.c (symtab_terminator): New variable.
2969 (queued_nodes): Renamed from first. Use symtab_terminator as
2971 (analyze_functions): Adjust accordingly.
2972 (cgraph_process_new_functions): Return void.
2973 * cgraph.h (cgraph_process_new_functions): Adjust declaration.
2975 2013-11-19 Marek Polacek <polacek@redhat.com>
2977 * opts.c (common_handle_option): Add -fsanitize=null option.
2978 Turn off -fdelete-null-pointer-checks option when doing the
2979 NULL pointer checking.
2980 * sanitizer.def (BUILT_IN_UBSAN_HANDLE_TYPE_MISMATCH): Add.
2981 * tree-pass.h (make_pass_ubsan): Declare.
2982 (make_pass_sanopt): Declare.
2983 * timevar.def (TV_TREE_UBSAN): New timevar.
2984 * passes.def: Add pass_sanopt and pass_ubsan.
2985 * ubsan.h (ubsan_null_ckind): New enum.
2986 (ubsan_mismatch_data): New struct.
2987 (ubsan_expand_null_ifn): Declare.
2988 (ubsan_create_data): Adjust declaration.
2989 (ubsan_type_descriptor): Likewise.
2990 * asan.c: Include "ubsan.h".
2991 (pass_data_sanopt): New pass.
2992 (execute_sanopt): New function.
2993 (gate_sanopt): Likewise.
2994 (make_pass_sanopt): Likewise.
2995 (class pass_sanopt): New class.
2996 * ubsan.c: Include tree-pass.h, gimple-ssa.h, gimple-walk.h,
2997 gimple-iterator.h and cfgloop.h.
2998 (PROB_VERY_UNLIKELY): Define.
2999 (tree_type_map_hash): New function.
3000 (ubsan_type_descriptor): Add new parameter.
3001 Improve type name generation.
3002 (ubsan_create_data): Add new parameter. Add pointer data into
3004 (ubsan_expand_null_ifn): New function.
3005 (instrument_member_call): Likewise.
3006 (instrument_mem_ref): Likewise.
3007 (instrument_null): Likewise.
3008 (ubsan_pass): Likewise.
3009 (gate_ubsan): Likewise.
3010 (make_pass_ubsan): Likewise.
3011 (ubsan_instrument_unreachable): Adjust ubsan_create_data call.
3012 (class pass_ubsan): New class.
3013 (pass_data_ubsan): New pass.
3014 * flag-types.h (enum sanitize_code): Add SANITIZE_NULL.
3015 * internal-fn.c (expand_UBSAN_NULL): New function.
3016 * cgraphunit.c (varpool_finalize_decl): Call varpool_assemble_decl
3017 even when !flag_toplevel_reorder.
3018 * internal-fn.def (UBSAN_NULL): New.
3020 2013-11-19 Jan Hubicka <jh@suse.cz>
3022 * cgraph.c (cgraph_create_indirect_edge): Use
3023 get_polymorphic_call_info.
3024 * cgraph.h (cgraph_indirect_call_info): Add outer_type,
3025 maybe_in_construction and maybe_derived_type.
3026 * ipa-utils.h (ipa_polymorphic_call_context): New structure.
3027 (ipa_dummy_polymorphic_call_context): New global var.
3028 (possible_polymorphic_call_targets): Add context paramter.
3029 (dump_possible_polymorphic_call_targets): Likewise; update wrappers.
3030 (possible_polymorphic_call_target_p): Likewise.
3031 (get_polymorphic_call_info): New function.
3032 * ipa-devirt.c (ipa_dummy_polymorphic_call_context): New function.
3033 (add_type_duplicate): Remove forgotten debug output.
3034 (method_class_type): Add sanity check.
3035 (maybe_record_node): Add FINALP parameter.
3036 (record_binfo): Add OUTER_TYPE and OFFSET; walk the inner
3037 by info by get_binfo_at_offset.
3038 (possible_polymorphic_call_targets_1): Add OUTER_TYPE/OFFSET
3039 parameters; pass them to record-binfo.
3040 (polymorphic_call_target_d): Add context and FINAL.
3041 (polymorphic_call_target_hasher::hash): Hash context.
3042 (polymorphic_call_target_hasher::equal): Compare context.
3043 (free_polymorphic_call_targets_hash):
3044 (get_class_context): New function.
3045 (contains_type_p): New function.
3046 (get_polymorphic_call_info): New function.
3047 (walk_bases): New function.
3048 (possible_polymorphic_call_targets): Add context parameter; honnor it.
3049 (dump_possible_polymorphic_call_targets): Dump context.
3050 (possible_polymorphic_call_target_p): Add context.
3051 (update_type_inheritance_graph): Update comment.s
3052 (ipa_set_jf_known_type): Assert that compoentn type is known.
3053 (ipa_note_param_call): Do not tamper with offsets.
3054 (ipa_analyze_indirect_call_uses): When offset is being changed; clear
3056 (update_indirect_edges_after_inlining): Likewise.
3057 (ipa_write_indirect_edge_info): Stream new fields.
3058 (ipa_read_indirect_edge_info): Stream in new fields.
3060 2013-11-19 Jan Hubicka <jh@suse.cz>
3062 * tree-pretty-print.c (dump_generic_node): Print class type of
3065 2013-11-19 Joey Ye <joey.ye@arm.com>
3067 * config/arm/arm.opt (-marm-pic-data-is-text-relative): New option.
3068 * doc/invoke.texi (-marm-pic-data-is-text-relative): Documentation
3070 * config/arm/arm.c (arm_option_override): By default disable
3071 -marm-pic-data-is-text-relative.
3072 (legitimize_pic_address): Use arm_pic_data_is_text_relative.
3073 (arm_assemble_integer): Likewise.
3074 * config/arm/arm.h (TARGET_DEFAULT_PIC_DATA_IS_TEXT_RELATIVE):
3075 New macro to initialize -marm-pic-data-is-text-relative.
3077 2013-11-19 Bin Cheng <bin.cheng@arm.com>
3079 * tree-ssa-loop-ivopts.c (enum ainc_type): New.
3080 (address_cost_data): New field.
3081 (get_address_cost): Compute auto-increment rtx cost in ainc_costs.
3082 Use ainc_costs for auto-increment rtx patterns. Cleanup TWS.
3084 2013-11-19 James Greenhalgh <james.greenhalgh@arm.com>
3086 * config/aarch64/aarch64.md: Remove v8type from all insns.
3088 2013-11-19 Richard Biener <rguenther@suse.de>
3090 PR tree-optimization/57517
3091 * tree-predcom.c (combinable_refs_p): Verify the combination
3092 is always executed when the refs are.
3094 2013-11-19 Jeff Law <law@redhat.com>
3096 * tree-ssa-threadupdate.c: Include ssa-iterators.h
3097 (copy_phi_arg_into_existing_phi): New function.
3098 (any_remaining_duplicated_blocks): Likewise.
3099 (ssa_fix_duplicate_block_edges): Handle multiple duplicated
3100 blocks on a jump threading path.
3102 * tree-ssa-threadupdate.c (thread_through_loop_header): Do not
3103 thread through a joiner which has the latch edge.
3105 2013-11-19 Jan Hubicka <jh@suse.cz>
3107 * md.texi (setmem): Document new parameter.
3108 * optabs.c (maybe_gen_insn): Support 9 operands.
3109 * builtins.c (determine_block_size): Add probable_max_size;
3110 support anti-ranges.
3111 (expand_builtin_memcpy. expand_builtin_memset_args): Pass around
3113 * expr.c (emit_block_move_via_movmem, emit_block_move_hints,
3114 emit_block_move, clear_storage_hints, set_storage_via_setmem):
3116 * expr.h (emit_block_move_hints, clear_storage_hints,
3117 set_storage_via_setmem): Update prototype.
3118 * i386.md (setmem, movmem patterns): Add 9th operand.
3119 * i386-protos.h (ix86_expand_set_or_movmem): Update prototype.
3120 * i386.c (ix86_expand_set_or_movmem): Take probable_max_size_exp
3121 argument; pass it to decide_alg.
3123 2013-11-19 David Malcolm <dmalcolm@redhat.com>
3125 * basic-block.h (n_basic_blocks_for_function): Rename macro to...
3126 (n_basic_blocks_for_fn): ...this.
3128 (n_basic_blocks): Eliminate macro as work towards making uses of
3131 * cfgloop.c (init_loops_structure): Update for renaming of
3132 "n_basic_blocks_for_function" to "n_basic_blocks_for_fn".
3133 * graph.c (draw_cfg_nodes_no_loops): Likewise.
3134 * ipa-utils.c (ipa_merge_profiles): Likewise.
3135 * lto-streamer-in.c (make_new_block): Likewise.
3136 * tree-cfg.c (init_empty_tree_cfg_for_function): Likewise.
3137 (dump_function_to_file): Likewise.
3139 * alias.c (init_alias_analysis): Replace usage of "n_basic_blocks"
3140 macro with "n_basic_blocks_for_fn (cfun)".
3141 * bb-reorder.c (partition_hot_cold_basic_blocks): Likewise.
3142 (duplicate_computed_gotos): Likewise.
3143 (reorder_basic_blocks): Likewise.
3144 * bt-load.c (augment_live_range): Likewise.
3145 * cfg.c (expunge_block): Likewise.
3146 (compact_blocks): Likewise.
3147 * cfganal.c (single_pred_before_succ_order): Likewise.
3148 (compute_idf): Likewise.
3149 (flow_dfs_compute_reverse_init): Likewise.
3150 (pre_and_rev_post_order_compute): Likewise.
3151 (pre_and_rev_post_order_compute_fn): Likewise.
3152 (inverted_post_order_compute): Likewise.
3153 (post_order_compute): Likewise.
3154 (print_edge_list): Likewise.
3155 (find_unreachable_blocks): Likewise.
3156 (mark_dfs_back_edges): Likewise.
3157 * cfgcleanup.c (try_optimize_cfg): Likewise.
3158 (try_forward_edges): Likewise.
3159 * cfghooks.c (dump_flow_info): Likewise.
3160 * cfgloop.c (verify_loop_structure): Likewise.
3161 (get_loop_body): Likewise.
3162 (flow_loops_find): Likewise.
3163 * cfgloopmanip.c (add_loop): Likewise.
3164 (remove_path): Likewise.
3165 (find_path): Likewise.
3166 * cfgrtl.c (rtl_flow_call_edges_add): Likewise.
3167 (rtl_verify_bb_layout): Likewise.
3168 (entry_of_function): Likewise.
3169 (rtl_create_basic_block): Likewise.
3170 * coverage.c (coverage_compute_cfg_checksum): Likewise.
3171 * cprop.c (one_cprop_pass): Likewise.
3172 (is_too_expensive): Likewise.
3173 * df-core.c (df_compute_cfg_image): Likewise.
3174 (df_compact_blocks): Likewise.
3175 (df_worklist_dataflow_doublequeue): Likewise.
3176 * dominance.c (calculate_dominance_info): Likewise.
3177 (calc_dfs_tree): Likewise.
3178 (calc_dfs_tree_nonrec): Likewise.
3179 (init_dom_info): Likewise.
3180 * domwalk.c (cmp_bb_postorder): Likewise.
3181 * function.c (thread_prologue_and_epilogue_insns): Likewise.
3182 (generate_setjmp_warnings): Likewise.
3183 * fwprop.c (build_single_def_use_links): Likewise.
3184 * gcse.c (is_too_expensive): Likewise.
3185 (one_code_hoisting_pass): Likewise.
3186 (one_pre_gcse_pass): Likewise.
3187 * graphite.c (graphite_initialize): Likewise.
3188 * haifa-sched.c (haifa_sched_init): Likewise.
3189 * ipa-inline-analysis.c (estimate_function_body_sizes): Likewise.
3190 * ira.c (split_live_ranges_for_shrink_wrap): Likewise.
3191 * ira-build.c (ira_build): Likewise.
3192 * lcm.c (compute_nearerout): Likewise.
3193 (compute_available): Likewise.
3194 (compute_laterin): Likewise.
3195 (compute_antinout_edge): Likewise.
3196 * lra-lives.c (lra_create_live_ranges): Likewise.
3197 * lra.c (has_nonexceptional_receiver): Likewise.
3198 * mcf.c (create_fixup_graph): Likewise.
3199 * profile.c (branch_prob): Likewise.
3200 * reg-stack.c (convert_regs_2): Likewise.
3201 * regrename.c (regrename_analyze): Likewise.
3202 * reload1.c (has_nonexceptional_receiver): Likewise.
3203 * reorg.c (dbr_schedule): Likewise.
3204 * sched-deps.c (sched_deps_init): Likewise.
3205 * sched-ebb.c (schedule_ebbs): Likewise.
3206 * sched-rgn.c (extend_regions): Likewise.
3207 (schedule_insns): Likewise.
3208 (sched_rgn_init): Likewise.
3209 (extend_rgns): Likewise.
3210 (haifa_find_rgns): Likewise.
3211 * sel-sched-ir.c (recompute_rev_top_order): Likewise.
3212 (sel_recompute_toporder): Likewise.
3213 * sel-sched.c (run_selective_scheduling): Likewise.
3214 * store-motion.c (one_store_motion_pass): Likewise.
3215 (remove_reachable_equiv_notes): Likewise.
3216 * tracer.c (tracer): Likewise.
3217 (tail_duplicate): Likewise.
3218 * tree-cfg.c (gimple_flow_call_edges_add): Likewise.
3219 (dump_cfg_stats): Likewise.
3220 (gimple_dump_cfg): Likewise.
3221 (create_bb): Likewise.
3222 (build_gimple_cfg): Likewise.
3223 * tree-cfgcleanup.c (merge_phi_nodes): Likewise.
3224 * tree-inline.c (optimize_inline_calls): Likewise.
3225 (fold_marked_statements): Likewise.
3226 * tree-ssa-ifcombine.c (tree_ssa_ifcombine): Likewise.
3227 * tree-ssa-loop-ch.c (copy_loop_headers): Likewise.
3228 * tree-ssa-loop-im.c (analyze_memory_references): Likewise.
3229 * tree-ssa-loop-manip.c (compute_live_loop_exits): Likewise.
3230 * tree-ssa-math-opts.c (execute_cse_reciprocals): Likewise.
3231 * tree-ssa-phiopt.c (tree_ssa_phiopt_worker): Likewise.
3232 * tree-ssa-pre.c (do_pre): Likewise.
3233 (init_pre): Likewise.
3234 (compute_avail): Likewise.
3235 * tree-ssa-reassoc.c (init_reassoc): Likewise.
3236 * tree-ssa-sccvn.c (init_scc_vn): Likewise.
3237 * tree-ssa-tail-merge.c (alloc_cluster_vectors): Likewise.
3238 (init_worklist): Likewise.
3239 * tree-ssa-uncprop.c (associate_equivalences_with_edges): Likewise.
3240 * var-tracking.c (variable_tracking_main_1): Likewise.
3241 (vt_find_locations): Likewise.
3242 (vt_stack_adjustments): Likewise.
3243 * config/s390/s390.c (s390_optimize_nonescaping_tx): Likewise.
3244 * config/spu/spu.c (spu_machine_dependent_reorg): Likewise.
3246 2013-11-18 Jan Hubicka <jh@suse.cz>
3248 * profile.c (compute_branch_probabilities): Do not sanity check
3251 2013-11-18 Kenneth Zadeck <zadeck@naturalbridge.com>
3253 * tree.c (int_fits_type_p): Change GET_MODE_BITSIZE to
3255 * fold-const.c (fold_single_bit_test_into_sign_test)
3256 (fold_binary_loc): Change GET_MODE_BITSIZE to GET_MODE_PRECISION.
3258 2013-11-18 Teresa Johnson <tejohnson@google.com>
3260 * cfgrtl.c (cfg_layout_initialize): Assert if we try to go into
3261 cfglayout after bb reordering.
3262 * passes.def: Move compgotos before bb reordering since it goes into
3265 2013-11-18 Bernd Schmidt <bernds@codesourcery.com>
3267 * cgraphunit.c (ipa_passes): Don't execute all_lto_gen_passes.
3268 * lto-streamer-out.c (lto_output, produce_asm_for_decls): No longer
3270 (pass_data_ipa_lto_gimple_out, pass_ipa_lto_gimple_out,
3271 make_pass_ipa_lto_gimple_out, pass_data_ipa_lto_finish_out,
3272 pass_ipa_lto_finish_out, make_pass_ipa_lto_finish_out): Remove.
3273 * lto-streamer.h (lto_output, produce_asm_for_decls): Declare.
3274 * pass-manager.h (GCC_PASS_LISTS, class pass_manager):
3275 Remove all_lto_gen_passes.
3276 * passes.c (pass_manager::dump_passes): Remove its use.
3277 (pass_manager::register_pass): Likewise.
3278 (ipa_read_summaries, ipa_read_optimization_summaries): Likewise.
3279 (pass_manager::pass_manager): Don't initialize or use it.
3280 (write_lto): New static function.
3281 (ipa_write_summaries_1, ipa_write_optimization_summaries): Use it
3282 instead of using all_lto_gen_passes.
3283 * passes.def (all_lto_gen_passes, pass_ipa_lto_gimple_out,
3284 pass_ipa_lto_finish_out): Delete.
3285 * tree-pass.h (make_pass_ipa_lto_gimple_out,
3286 make_pass_ipa_lto_finish_out): Don't declare.
3288 2013-11-18 Jeff Law <law@redhat.com>
3290 * tree-ssa-threadupdate.c (redirection_data): Record two
3291 duplicated blocks instead of just one.
3292 (local_info): Explain why we don't create a template for the
3293 second duplicated block in a thread path.
3294 (create_block_for_threading): Accept argument indicating array
3295 index into redirection_data to store its result.
3296 (lookup_redirection_data): Initialize both duplicate blocks.
3297 (ssa_create_duplicates): If a jump threading path needs multiple
3298 blocks duplicated, then duplicate them.
3299 (ssa_fix_duplicate_block_edges): Corresponding changes.
3300 (ssa_fixup_template_block, thread_single_edge): Likewise.
3302 2013-11-18 Marek Polacek <polacek@redhat.com>
3304 * doc/invoke.texi: Extend -fsanitize=undefined documentation.
3306 2013-11-18 Andrew Pinski <apinski@cavium.com>
3307 Steve Ellcey <sellcey@mips.com>
3310 * config/mips/mips.md (*mov<GPR:mode>_on_<MOVECC:mode>): Remove
3311 type restriction from equality_operator on conditonal move.
3312 (*mov<SCALARF:mode>_on_<MOVECC:mode>): Ditto.
3313 (*mov<GPR:mode>_on_<GPR2:mode>_ne): New.
3315 2013-11-18 Jeff Law <law@redhat.com>
3317 * tree-ssa-threadupdate.c: Fix file block comment.
3318 Fix minor indention issue.
3320 2013-11-18 Uros Bizjak <ubizjak@gmail.com>
3322 * config/i386/i386.c (ix86_decompose_address): Use REG_P instead of
3323 ix86_address_subreg_operand. Move subreg checks to
3324 ix86_validate_address_register. Move address override check to
3325 ix86_legitimate_address_p.
3326 (ix86_validate_address_register): New function.
3327 (ix86_legitimate_address_p): Call ix86_validate_address_register
3328 to validate base and index registers. Add address override check
3329 from ix86_decompose_address.
3330 (ix86_decompose_address): Remove.
3332 2013-11-18 Richard Biener <rguenther@suse.de>
3334 PR tree-optimization/59125
3335 PR tree-optimization/54570
3336 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): When inlining
3337 is not complete do not treat component-references with offset zero
3338 but different fields as equal.
3339 * tree-object-size.c: Include tree-phinodes.h and ssa-iterators.h.
3340 (compute_object_sizes): Apply TLC. Propagate the constant
3341 results into all uses and fold their stmts.
3342 * passes.def (pass_all_optimizations): Move pass_object_sizes
3343 after the first pass_forwprop and before pass_fre.
3345 2013-11-18 Richard Sandiford <rdsandiford@googlemail.com>
3347 * tree.h (tree_to_uhwi): Return an unsigned HOST_WIDE_INT.
3348 * tree.c (tree_to_uhwi): Return an unsigned HOST_WIDE_INT.
3349 (tree_ctz): Remove cast to unsigned type.
3350 * builtins.c (fold_builtin_memory_op): Likewise.
3351 * dwarf2out.c (descr_info_loc): Likewise.
3352 * godump.c (go_output_typedef): Likewise.
3353 * omp-low.c (expand_omp_simd): Likewise.
3354 * stor-layout.c (excess_unit_span): Likewise.
3355 * tree-object-size.c (addr_object_size): Likewise.
3356 * tree-sra.c (analyze_all_variable_accesses): Likewise.
3357 * tree-ssa-forwprop.c (simplify_builtin_call): Likewise.
3358 (simplify_rotate): Likewise.
3359 * tree-ssa-strlen.c (adjust_last_stmt, handle_builtin_memcpy)
3360 (handle_pointer_plus): Likewise.
3361 * tree-switch-conversion.c (check_range): Likewise.
3362 * tree-vect-patterns.c (vect_recog_rotate_pattern): Likewise.
3363 * tsan.c (instrument_builtin_call): Likewise.
3364 * cfgexpand.c (defer_stack_allocation): Add cast to HOST_WIDE_INT.
3365 * trans-mem.c (tm_log_add): Likewise.
3366 * config/aarch64/aarch64.c (aapcs_vfp_sub_candidate): Likewise.
3367 * config/arm/arm.c (aapcs_vfp_sub_candidate): Likewise.
3368 * config/rs6000/rs6000.c (rs6000_aggregate_candidate): Likewise.
3369 * config/mips/mips.c (r10k_safe_mem_expr_p): Make offset unsigned.
3371 2013-11-18 Richard Sandiford <rdsandiford@googlemail.com>
3373 * tree.h (host_integerp, tree_low_cst): Delete.
3374 * tree.c (host_integerp, tree_low_cst): Delete.
3376 2013-11-18 Richard Sandiford <rdsandiford@googlemail.com>
3378 * expr.h: Update comments to refer to tree_to_[su]hwi rather
3380 * fold-const.c (fold_binary_loc): Likewise.
3381 * expr.c (store_constructor): Use tree_to_uhwi rather than
3383 * ipa-utils.h (possible_polymorphic_call_target_p): Likewise.
3384 * stmt.c (emit_case_dispatch_table): Likewise.
3385 * tree-switch-conversion.c (emit_case_bit_tests): Likewise.
3387 2013-11-18 Richard Sandiford <rdsandiford@googlemail.com>
3389 * alias.c, asan.c, builtins.c, cfgexpand.c, cgraph.c,
3390 config/aarch64/aarch64.c, config/alpha/predicates.md,
3391 config/arm/arm.c, config/darwin.c, config/epiphany/epiphany.c,
3392 config/i386/i386.c, config/iq2000/iq2000.c, config/m32c/m32c-pragma.c,
3393 config/mep/mep-pragma.c, config/mips/mips.c,
3394 config/picochip/picochip.c, config/rs6000/rs6000.c, cppbuiltin.c,
3395 dbxout.c, dwarf2out.c, emit-rtl.c, except.c, expr.c, fold-const.c,
3396 function.c, gimple-fold.c, godump.c, ipa-cp.c, ipa-prop.c, omp-low.c,
3397 predict.c, sdbout.c, stor-layout.c, trans-mem.c, tree-object-size.c,
3398 tree-sra.c, tree-ssa-ccp.c, tree-ssa-forwprop.c,
3399 tree-ssa-loop-ivcanon.c, tree-ssa-loop-ivopts.c, tree-ssa-loop-niter.c,
3400 tree-ssa-loop-prefetch.c, tree-ssa-strlen.c, tree-stdarg.c,
3401 tree-switch-conversion.c, tree-vect-generic.c, tree-vect-loop.c,
3402 tree-vect-patterns.c, tree-vrp.c, tree.c, tsan.c, ubsan.c, varasm.c:
3403 Replace tree_low_cst (..., 1) with tree_to_uhwi throughout.
3405 2013-11-18 Richard Sandiford <rdsandiford@googlemail.com>
3407 * builtins.c, cilk-common.c, config/aarch64/aarch64.c,
3408 config/alpha/alpha.c, config/arm/arm.c, config/c6x/predicates.md,
3409 config/i386/i386.c, config/ia64/predicates.md, config/s390/s390.c,
3410 coverage.c, dbxout.c, dwarf2out.c, except.c, explow.c, expr.c, expr.h,
3411 fold-const.c, gimple-fold.c, godump.c, ipa-prop.c, omp-low.c,
3412 predict.c, rtlanal.c, sdbout.c, stmt.c, stor-layout.c, targhooks.c,
3413 tree-cfg.c, tree-data-ref.c, tree-inline.c, tree-ssa-forwprop.c,
3414 tree-ssa-loop-prefetch.c, tree-ssa-phiopt.c, tree-ssa-sccvn.c,
3415 tree-ssa-strlen.c, tree-stdarg.c, tree-vect-data-refs.c,
3416 tree-vect-patterns.c, tree.c, tree.h, var-tracking.c, varasm.c:
3417 Replace tree_low_cst (..., 0) with tree_to_shwi throughout.
3419 2013-11-18 Richard Sandiford <rdsandiford@googlemail.com>
3421 * tree.h (tree_to_shwi, tree_to_uhwi): Declare, with inline expansions.
3422 * tree.c (tree_to_shwi, tree_to_uhwi): New functions.
3424 2013-11-18 Richard Sandiford <rdsandiford@googlemail.com>
3426 * expr.h: Update comments to refer to tree_fits_[su]hwi_p rather
3429 2013-11-18 Richard Sandiford <rdsandiford@googlemail.com>
3431 * builtins.c, config/alpha/alpha.c, config/iq2000/iq2000.c,
3432 config/mips/mips.c, dbxout.c, dwarf2out.c, expr.c, fold-const.c,
3433 gimple-fold.c, godump.c, omp-low.c, predict.c, sdbout.c, stor-layout.c,
3434 tree-dfa.c, tree-sra.c, tree-ssa-forwprop.c, tree-ssa-loop-prefetch.c,
3435 tree-ssa-phiopt.c, tree-ssa-sccvn.c, tree-ssa-strlen.c,
3436 tree-ssa-structalias.c, tree-vect-data-refs.c, tree-vect-patterns.c,
3437 tree.c, varasm.c, alias.c, cfgexpand.c, config/aarch64/aarch64.c,
3438 config/arm/arm.c, config/epiphany/epiphany.c, config/i386/i386.c,
3439 config/m32c/m32c-pragma.c, config/mep/mep-pragma.c,
3440 config/rs6000/rs6000.c, config/sparc/sparc.c, emit-rtl.c, function.c,
3441 gimplify.c, ipa-prop.c, stmt.c, trans-mem.c, tree-cfg.c,
3442 tree-object-size.c, tree-ssa-ccp.c, tree-ssa-loop-ivcanon.c,
3443 tree-stdarg.c, tree-switch-conversion.c, tree-vect-generic.c,
3444 tree-vrp.c, tsan.c, ubsan.c: Replace host_integerp (..., 1) with
3445 tree_fits_uhwi_p throughout.
3447 2013-11-18 Richard Sandiford <rdsandiford@googlemail.com>
3449 * builtins.c, config/alpha/alpha.c, config/c6x/predicates.md,
3450 config/ia64/predicates.md, config/iq2000/iq2000.c, config/mips/mips.c,
3451 config/s390/s390.c, dbxout.c, dwarf2out.c, except.c, explow.c, expr.c,
3452 expr.h, fold-const.c, gimple-fold.c, gimple-ssa-strength-reduction.c,
3453 gimple.c, godump.c, graphite-scop-detection.c, graphite-sese-to-poly.c,
3454 omp-low.c, predict.c, rtlanal.c, sdbout.c, simplify-rtx.c,
3455 stor-layout.c, tree-data-ref.c, tree-dfa.c, tree-pretty-print.c,
3456 tree-sra.c, tree-ssa-alias.c, tree-ssa-forwprop.c,
3457 tree-ssa-loop-ivopts.c, tree-ssa-loop-prefetch.c, tree-ssa-math-opts.c,
3458 tree-ssa-phiopt.c, tree-ssa-reassoc.c, tree-ssa-sccvn.c,
3459 tree-ssa-strlen.c, tree-ssa-structalias.c, tree-vect-data-refs.c,
3460 tree-vect-patterns.c, tree-vectorizer.h, tree.c, var-tracking.c,
3461 varasm.c: Replace host_integerp (..., 0) with tree_fits_shwi_p
3464 2013-11-18 Richard Sandiford <rdsandiford@googlemail.com>
3466 * tree.h (tree_fits_shwi_p, tree_fits_uhwi_p): Declare.
3467 * tree.c (tree_fits_shwi_p, tree_fits_uhwi_p): Define.
3469 2013-11-18 Kirill Yukhin <kirill.yukhin@intel.com>
3471 * config/ia64/ia64.c (ia64_split_tmode_move): Mark load with `dead'
3472 flag if it kills its address, not its post-increment.
3474 2013-11-18 Ilya Enkovich <ilya.enkovich@intel.com>
3476 * builtin-types.def (BT_FN_PTR_CONST_PTR_VAR): New.
3477 * chkp-builtins.def (BUILT_IN_CHKP_BIND_BOUNDS): New.
3478 * cfgexpand.c (expand_call_stmt): Expand BUILT_IN_CHKP_BIND_BOUNDS.
3479 * gimple.c (gimple_call_get_nobnd_arg_index): Remove.
3480 * gimple.h (gf_mask): Add GF_CALL_WITH_BOUNDS.
3481 (gimple_call_with_bounds_p): New.
3482 (gimple_call_set_with_bounds): New.
3483 (gimple_call_num_nobnd_args): Remove.
3484 (gimple_call_nobnd_arg): Remove.
3485 * tree.h (CALL_WITH_BOUNDS_P): New.
3486 * rtl.h (CALL_EXPR_WITH_BOUNDS_P): New.
3488 2013-11-18 Trevor Saunders <tsaunders@mozilla.com>
3490 * cgraph.h (symtab_node_asm_name): Rename to symtab_node::asm_name.
3491 (symtab_node_name): Rename to symtab_node::name.
3492 (cgraph_node_asm_name): Remove.
3493 (varpool_node_asm_name): Remove.
3494 * cgraph.c cgraphclones.c cgraphunit.c ipa-cp.c ipa-devirt.c
3495 ipa-inline-analysis.c ipa-inline-transform.c ipa-inline.c
3496 ipa-profile.c ipa-prop.c ipa-pure-const.c ipa-ref.c ipa-reference.c
3497 ipa-utils.c ipa.c symtab.c tree-inline.c tree-sra.c
3498 tree-ssa-structalias.c value-prof.c varpool.c Adjust.
3500 2013-11-18 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3502 * config/arm/aarch-cost-tables.h (cortexa53_extra_costs): New table.
3503 * config/arm/arm.c (arm_cortex_a53_tune): New.
3504 * config/arm/arm-cores.def (cortex-a53): Use cortex_a53 tuning struct.
3506 2013-11-12 Ganesh Gopalasubramanian <Ganesh.Gopalasubramanian@amd.com>
3508 * config.gcc (i[34567]86-*-linux* | ...): Add bdver4.
3509 (case ${target}): Add bdver4.
3510 * config/i386/bdver3.md: Add bdver4.
3511 * config/i386/driver-i386.c: (host_detect_local_cpu): Let
3512 -march=native recognize bdver4 processors.
3513 * config/i386/i386-c.c (ix86_target_macros_internal): Add
3514 bdver4 def_and_undef
3515 * config/i386/i386.c (struct processor_costs bdver4_cost): New.
3516 (m_BDVER4): New definition.
3517 (m_AMD_MULTIPLE): Includes m_BDVER4.
3518 (processor_target_table): Add bdver4 entry.
3519 (static const char *const cpu_names): Add bdver4 entry.
3520 (software_prefetching_beneficial_p): Add bdver3.
3521 (ix86_option_override_internal): Add bdver4 instruction sets.
3522 (ix86_issue_rate): Add bdver4.
3523 (ix86_adjust_cost): Add bdver4.
3524 (ia32_multipass_dfa_lookahead): Add bdver4.
3525 (enum processor_model): Add M_AMDFAM15H_BDVER4.
3526 (struct _arch_names_table): Add M_AMDFAM15H_BDVER4.
3527 (has_dispatch): Add bdver4.
3528 * config/i386/i386.h (TARGET_BDVER4): New definition.
3529 (enum target_cpu_default): Add TARGET_CPU_DEFAULT_bdver4.
3530 (enum processor_type): Add PROCESSOR_BDVER4.
3531 * config/i386/i386.md (define_attr "cpu"): Add bdver4.
3532 * config/i386/i386.opt (flag_dispatch_scheduler): Add bdver4.
3533 * doc/extend.texi: Add details about bdver4.
3534 * doc/invoke.texi: Add details about bdver4. Add
3535 fma4 and fsgsbase for bdver3. Add fma4 for bdver2.
3537 2013-11-17 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
3539 * config/rs6000/rs6000.c (rs6000_emit_move): Use low word of
3540 sdmode_stack_slot also in little-endian mode.
3542 2013-11-17 Jan Hubicka <jh@suse.cz>
3544 * doc/md.texi (setmem, movstr): Update documentation.
3545 * builtins.c (determine_block_size): New function.
3546 (expand_builtin_memcpy): Use it and pass it to emit_block_move_hints.
3547 (expand_builtin_memset_args): Use it and pass it to
3548 set_storage_via_setmem.
3549 * expr.c (emit_block_move_via_movmem): Add min_size/max_size
3550 parameters; update call to expander.
3551 (emit_block_move_hints): Add min_size/max_size parameters.
3552 (clear_storage_hints): Likewise.
3553 (set_storage_via_setmem): Likewise.
3554 (clear_storage): Update.
3555 * expr.h (emit_block_move_hints, clear_storage_hints,
3556 set_storage_via_setmem): Update prototypes.
3557 * i386.c (ix86_expand_set_or_movmem): Add bounds; export.
3558 (ix86_expand_movmem, ix86_expand_setmem): Remove.
3559 (ix86_expand_movmem, ix86_expand_setmem): Remove.
3560 * i386.md (movmem, setmem): Pass parameters.
3562 2013-11-17 Uros Bizjak <ubizjak@gmail.com>
3565 * config/i386/i386.c (ix86_address_subreg_operand): Do not
3566 reject non-integer subregs.
3567 (ix86_decompose_address): Do not reject invalid CONST_INT RTXes.
3568 Move check for invalid x32 constant addresses ...
3569 (ix86_legitimate_address_p): ... here.
3571 2011-11-17 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
3573 * config/rs6000/rs6000.c (rs6000_frame_related): Add split_reg
3574 parameter and use it in REG_FRAME_RELATED_EXPR note.
3575 (emit_frame_save): Call rs6000_frame_related with extra NULL_RTX
3577 (rs6000_emit_prologue): Likewise, but for little endian VSX
3578 stores, pass the source register of the store instead.
3580 2013-11-17 Andrew MacLeod <amacleod@redhat.com>
3582 * gimple.h: Reorder prototypes to match .c declaration order, and
3583 remove protyotypes for functions not in gimple.c.
3584 (LABEL): Move to tree-into-ssa.c.
3585 * gimple.c: Remove unused prototypes.
3586 (get_base_address): Move to tree.c.
3587 * tree.c (get_base_address): Relocate from gimple.c.
3588 * builtins.h (validate_gimple_arglist): Add prototype.
3589 * trans-mem.h (compute_transaction_bits, is_tm_ending): Add prototype.
3590 * cfgexpand.h: New File.
3591 (gimple_assign_rhs_to_tree, estimated_stack_frame_size): Add protoype.
3592 * tree.h (build_addr): Move to tree-nested.h.
3593 * tree-nested.h: New File.
3594 (build_addr, lower_nested_functions, insert_field_into_struct): Add
3596 * tree-inline.h (estimated_stack_frame_size): Remove prototype.
3597 * ipa-inline-analysis.c: Include cfgexpand.h.
3598 * cgraphunit.c: Include tree-nested.h.
3599 * omp-low.c: Likewise.
3600 * tree-parloops.c: Likewise.
3601 * gimple-low.h: Likewise.
3602 * tree-profile.h: Likewise.
3603 * expr.c: Include cfgexpand.h.
3604 * tree-affine.c: Likewise.
3605 * tree-ssa.c: Likewise.
3606 * tree-ssa-loop-im.c: Include trans-mem.h.
3607 * tree-ssa-tail-merge.c: Likewise.
3608 * value-prof.c: Include builtins.h and tree-nested.h.
3609 * tree-into-ssa.c (LABEL): Define here.
3611 2013-11-16 Joern Rennecke <joern.rennecke@embecosm.com>
3613 * config/arc/arc.c (arc_predicate_delay_insns): New function.
3614 (pass_data_arc_predicate_delay_insns): New pass_data instance.
3615 (pass_arc_predicate_delay_insns): New subclass of rtl_opt_class.
3616 (make_pass_arc_predicate_delay_insns): New function.
3617 (arc_init): Register pass_arc_predicate_delay_insns if
3618 flag_delayed_branch is active.
3620 2013-11-16 Joern Rennecke <joern.rennecke@embecosm.com>
3622 * config/arc/constraints.md (Rcq): Simplify register number test.
3624 2013-11-15 Aldy Hernandez <aldyh@redhat.com>
3626 * gimple.h (enum gf_mask): Change the ordering of GF_OMP_* bits.
3628 2013-11-15 Kaz Kojima <kkojima@gcc.gnu.org>
3630 * config/sh/sh.c (barrier_align): Return 0 when barrier_or_label
3633 2013-11-15 Aldy Hernandez <aldyh@redhat.com>
3635 * Makefile.in (C_COMMON_OBJS): Depend on c-cilkplus.o.
3636 * gimple-pretty-print.c (dump_omp_for): Add case for
3637 GF_OMP_FOR_KIND_CILKSIMD.
3638 * gimple.h (enum gf_mask): Restructure entries to add
3639 GF_OMP_FOR_KIND_CILKSIMD.
3640 * gimplify.c (is_gimple_stmt): Add case for CILK_SIMD.
3641 (gimplify_omp_for): Handle CILK_SIMD.
3642 (gimplify_expr): Add ccase for CILK_SIMD.
3643 * omp-low.c (extract_omp_for_data): Handle CILK_SIMD.
3644 (build_outer_var_ref): Same.
3645 (check_omp_nesting_restrictions): Same.
3646 (lower_rec_input_clauses): Same.
3647 (lower_lastprivate_clauses): Same.
3648 (expand_omp_for): Same.
3649 (execute_expand_omp): Check flag_enable_cilkplus.
3650 (execute_lower_omp): Same.
3651 (diagnose_sb_0): Handle CILK_SIMD.
3652 (diagnose_omp_structured_block_errors): Check flag_enable_cilkplus.
3653 (setjmp_or_longjmp_p): New.
3654 (scan_omp_1_stmt): Error on setjmp/longjmp in a simd construct.
3655 * tree-pretty-print.c (dump_generic_node): Add case for CILK_SIMD.
3656 * tree.def: Add tree code for CILK_SIMD.
3658 2013-11-15 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
3660 * config/rs6000/altivec.md (UNSPEC_VPERM_X, UNSPEC_VPERM_UNS_X):
3662 (altivec_vperm_<mode>): Revert earlier little endian change.
3663 (*altivec_vperm_<mode>_internal): Remove.
3664 (altivec_vperm_<mode>_uns): Revert earlier little endian change.
3665 (*altivec_vperm_<mode>_uns_internal): Remove.
3666 * config/rs6000/vector.md (vec_realign_load_<mode>): Revise commentary.
3668 2013-11-15 Jeff Law <law@redhat.com>
3670 * basic-block.h (has_abnormal_or_eh_outgoing_edge): Renamed from
3671 has_abnormal_or_outgoing_edge. Check for EH edges as well.
3672 * gimple-ssa-isolate-paths.c
3673 (find_implicit_erroneous_behaviour): Corresponding changes.
3674 Do not check stmt_ends_bb_p or GIMPLE_RETURN anymore.
3675 (find_explicit_erroneous_behaviour): Likewise.
3677 2013-11-15 Jeff Law <law@redhat.com>
3679 * ifcvt.c (find_cond_trap): Properly handle case where
3682 2013-11-15 Andreas Schwab <schwab@linux-m68k.org>
3684 * configure: Regenerate.
3686 2013-11-15 James Greenhalgh <james.greenhalgh@arm.com>
3688 * config/aarch64/aarch64-simd.md: Remove simd_type from all patterns.
3689 * config/aarch64/aarch64.md: Likewise, correct "type" attribute
3690 where it is incorrect or missing.
3692 2013-11-15 Richard Sandiford <rdsandiford@googlemail.com>
3694 * dwarf2out.c (gen_enumeration_type_die): Remove unnecessary
3696 * tree-vect-patterns.c (vect_recog_divmod_pattern): Likewise.
3697 Use TREE_INT_CST_LOW rather than tree_low_cst when reading the
3699 * fold-const.c (fold_binary_loc): Replace a host_integerp/tree_low_cst
3700 pair with a TREE_CODE test and TREE_INT_CST_LOW.
3701 * tree-vect-generic.c (expand_vector_divmod): Likewise.
3703 2013-11-15 Richard Biener <rguenther@suse.de>
3705 PR tree-optimization/50262
3706 * tree-ssa-alias.h (struct pt_solution): Split
3707 vars_contains_global into vars_contains_nonlocal,
3708 vars_contains_escaped and vars_contains_escaped_heap.
3709 * tree-ssa-structalias.c (label_visit): Expand comment.
3710 (handle_lhs_call): Adjust comment.
3711 (set_uids_in_ptset): Set the new flags appropriately.
3712 (pt_solution_set): Adjust.
3713 (pt_solution_set_var): Likewise.
3714 (pt_solution_ior_into): Likewise.
3715 (pt_solution_includes_global): Likewise.
3716 (pt_solutions_intersect_1): Optimize escaped handling.
3717 (compute_points_to_sets): Remove heap variable globalization.
3718 (ipa_escaped_pt): Adjust initializer.
3719 (pass_data_ipa_pta): Do not run TODO_update_ssa.
3720 * gimple-pretty-print.c (pp_points_to_solution): Print split flags.
3721 * tree-ssa-alias.c (dump_points_to_solution): Likewise.
3723 2013-11-15 Richard Biener <rguenther@suse.de>
3725 * tree-loop-distribution.c (tree_loop_distribution): Make sure
3726 to distribute all stores.
3728 2013-11-15 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
3730 * doc/invoke.texi (-mabi=elfv1, -mabi=elfv2): Document.
3732 2013-11-15 Joseph Myers <joseph@codesourcery.com>
3734 * acinclude.m4 (GCC_GLIBC_VERSION_GTE_IFELSE): New configure macro.
3735 * configure.ac: Determine target_header_dir earlier.
3736 (--with-glibc-version): New configure option.
3737 Use GCC_GLIBC_VERSION_GTE_IFELSE in enable_gnu_unique_object,
3738 gcc_cv_libc_provides_ssp and gcc_cv_target_ldbl128 tests.
3739 * configure: Regenerate.
3740 * doc/install.texi (--enable-gnu-unique-object): Don't refer to
3741 native toolchains for default.
3742 (--with-glibc-version): Document.
3744 2013-11-15 Eric Botcazou <ebotcazou@adacore.com>
3746 * fold-const.c (fold_binary_loc) <comparisons>: Reuse local variable.
3748 2013-11-15 Uros Bizjak <ubizjak@gmail.com>
3750 * lto-streamer-in.c (input function): Call cgraph_create_node if
3751 cgraph_get_node failed.
3753 2013-11-14 Olivier Hainque <hainque@adacore.com>
3755 * cfgexpand.c (defer_stack_allocation): When optimization is enabled,
3756 defer allocation of DECL_IGNORED_P variables at toplevel unless really
3757 small. Factorize size threshold computation from the existing one.
3758 (expand_used_vars): Refine comment.
3760 2013-11-14 Cong Hou <congh@google.com>
3762 * tree-vectorizer.h (struct dr_with_seg_len): Remove the base
3763 address field as it can be obtained from dr. Rename the struct.
3764 * tree-vect-data-refs.c (comp_dr_with_seg_len_pair): Consider
3765 steps of data references during sort.
3766 (vect_prune_runtime_alias_test_list): Adjust with the change to
3767 struct dr_with_seg_len.
3768 * tree-vect-loop-manip.c (vect_create_cond_for_alias_checks):
3769 Adjust with the change to struct dr_with_seg_len.
3771 2013-11-14 Jeff Law <law@redhat.com>
3774 * basic-block.h (has_abnormal_outgoing_edge_p): Moved here from...
3775 * tree-inline.c (has_abnormal_outgoing_edge_p): Remove.
3776 * gimple-ssa-isolate-paths.c: Include tree-cfg.h.
3777 (find_implicit_erroneous_behaviour): If a block has abnormal outgoing
3778 edges, then ignore it. If the statement exhibiting erroneous
3779 behaviour ends basic blocks, with the exception of GIMPLE_RETURNs,
3780 then we can not optimize.
3781 (find_explicit_erroneous_behaviour): Likewise.
3783 2013-11-14 Andrew MacLeod <amacleod@redhat.com>
3785 * gimplify-me.h: New file. Add prototypes.
3786 * gimplify.h: Don't include gimple.h.
3787 (struct gimplify_hasher, struct gimplify_ctx, is_gimple_sizepos):
3788 Relocate from gimple.h.
3789 * gimple.h (struct gimplify_hasher, struct gimplify_ctx,
3790 is_gimple_sizepos): Move to gimplify.h.
3791 (gimplify_hasher::hash, gimplify_hasher::equal): Move to gimplify.c.
3792 (enum gsi_iterator_update): Move to gimple-iterator.h.
3793 * gimple-iterator.h (enum gsi_iterator_update): Relocate from gimple.h.
3794 * gimplify-me.c: New File.
3795 (force_gimple_operand_1, force_gimple_operand,
3796 force_gimple_operand_gsi_1, force_gimple_operand_gsi,
3797 gimple_regimplify_operands): Relocate from gimplify.c.
3798 * gimplify.c (force_gimple_operand_1, force_gimple_operand,
3799 force_gimple_operand_gsi_1, force_gimple_operand_gsi,
3800 gimple_regimplify_operands): Move to gimplify-me.c.
3801 (gimplify_hasher::hash, gimplify_hasher::equal): Relocate
3803 * Makefile.in (OBJS): Add gimplify-me.o
3804 * asan.c: Include only gimplify.h, gimplify-me.h, and/or gimple.h as
3806 * cfgloopmanip.c: Likewise.
3807 * cgraphunit.c: Likewise.
3808 * cilk-common.c: Likewise.
3809 * fold-const.c: Likewise.
3810 * function.c: Likewise.
3811 * gimple-expr.c: Likewise.
3812 * gimple-fold.c: Likewise.
3813 * gimple-ssa-strength-reduction.c: Likewise.
3814 * gimple.c: Likewise.
3815 * graphite-clast-to-gimple.c: Likewise.
3816 * graphite-sese-to-poly.c: Likewise.
3817 * ipa-prop.c: Likewise.
3818 * ipa-split.c: Likewise.
3820 * langhooks.c: Likewise.
3821 * omp-low.c: Likewise.
3823 * stor-layout.c: Likewise.
3824 * targhooks.c: Likewise.
3825 * trans-mem.c: Likewise.
3826 * tree-affine.c: Likewise.
3827 * tree-cfg.c: Likewise.
3828 * tree-cfgcleanup.c: Likewise.
3829 * tree-complex.c: Likewise.
3830 * tree-if-conv.c: Likewise.
3831 * tree-inline.c: Likewise.
3832 * tree-loop-distribution.c: Likewise.
3833 * tree-nested.c: Likewise.
3834 * tree-parloops.c: Likewise.
3835 * tree-predcom.c: Likewise.
3836 * tree-profile.c: Likewise.
3837 * tree-scalar-evolution.c: Likewise.
3838 * tree-sra.c: Likewise.
3839 * tree-ssa-address.c: Likewise.
3840 * tree-ssa-ccp.c: Likewise.
3841 * tree-ssa-dce.c: Likewise.
3842 * tree-ssa-forwprop.c: Likewise.
3843 * tree-ssa-ifcombine.c: Likewise.
3844 * tree-ssa-loop-im.c: Likewise.
3845 * tree-ssa-loop-ivopts.c: Likewise.
3846 * tree-ssa-loop-manip.c: Likewise.
3847 * tree-ssa-loop-niter.c: Likewise.
3848 * tree-ssa-loop-prefetch.c: Likewise.
3849 * tree-ssa-loop-unswitch.c: Likewise.
3850 * tree-ssa-math-opts.c: Likewise.
3851 * tree-ssa-phiopt.c: Likewise.
3852 * tree-ssa-phiprop.c: Likewise.
3853 * tree-ssa-pre.c: Likewise.
3854 * tree-ssa-propagate.c: Likewise.
3855 * tree-ssa-reassoc.c: Likewise.
3856 * tree-ssa-sccvn.c: Likewise.
3857 * tree-ssa-strlen.c: Likewise.
3858 * tree-ssa.c: Likewise.
3859 * tree-switch-conversion.c: Likewise.
3860 * tree-tailcall.c: Likewise.
3861 * tree-vect-data-refs.c: Likewise.
3862 * tree-vect-generic.c: Likewise.
3863 * tree-vect-loop-manip.c: Likewise.
3864 * tree-vect-loop.c: Likewise.
3865 * tree-vect-patterns.c: Likewise.
3866 * tree-vect-stmts.c: Likewise.
3869 * value-prof.c: Likewise.
3870 * config/aarch64/aarch64.c: Likewise.
3871 * config/alpha/alpha.c: Likewise.
3872 * config/darwin.c: Likewise.
3873 * config/i386/i386.c: Likewise.
3874 * config/ia64/ia64.c: Likewise.
3875 * config/mep/mep.c: Likewise.
3876 * config/mips/mips.c: Likewise.
3877 * config/rs6000/rs6000.c: Likewise.
3878 * config/s390/s390.c: Likewise.
3879 * config/sh/sh.c: Likewise.
3880 * config/sparc/sparc.c: Likewise.
3881 * config/spu/spu.c: Likewise.
3882 * config/stormy16/stormy16.c: Likewise.
3883 * config/tilegx/tilegx.c: Likewise.
3884 * config/tilepro/tilepro.c: Likewise.
3885 * config/xtensa/xtensa.c: Likewise.
3887 2013-11-14 Diego Novillo <dnovillo@google.com>
3889 * Makefile.in (PLUGIN_HEADERS): Add stringpool.h.
3891 2013-11-14 Diego Novillo <dnovillo@google.com>
3893 * tree.h: Include fold-const.h.
3894 (aggregate_value_p): Moved to function.h.
3895 (alloca_call_p): Moved to calls.h.
3896 (allocate_struct_function): Moved to function.h.
3897 (apply_tm_attr): Moved to attribs.h.
3898 (array_at_struct_end_p): Moved to expr.h.
3899 (array_ref_element_size): Moved to tree-dfa.h.
3900 (array_ref_low_bound): Moved to tree-dfa.h.
3901 (array_ref_up_bound): Moved to tree.h.
3902 (assemble_alias): Moved to cgraph.h.
3903 (bit_from_pos): Moved to stor-layout.h.
3904 (build_addr): Moved to tree-nested.h.
3905 (build_duplicate_type): Moved to tree-inline.h.
3906 (build_fold_addr_expr): Moved to fold-const.h.
3907 (build_fold_addr_expr_with_type): Moved to fold-const.h.
3908 (build_fold_addr_expr_with_type_loc): Moved to fold-const.h.
3909 (build_fold_indirect_ref): Moved to fold-const.h.
3910 (build_fold_indirect_ref_loc): Moved to fold-const.h.
3911 (build_personality_function): Moved to tree.h.
3912 (build_range_check): Moved to fold-const.h.
3913 (build_simple_mem_ref): Moved to fold-const.h.
3914 (build_simple_mem_ref_loc): Moved to fold-const.h.
3915 (build_tm_abort_call): Moved to trans-mem.h.
3916 (byte_from_pos): Moved to stor-layout.h.
3917 (call_expr_flags): Moved to calls.h.
3918 (can_move_by_pieces): Moved to expr.h.
3919 (categorize_ctor_elements): Moved to expr.h.
3920 (change_decl_assembler_name): Moved to gcc-symtab.h.
3921 (combine_comparisons): Moved to fold-const.h.
3922 (complete_ctor_at_level_p): Moved to tree.h.
3923 (component_ref_field_offset): Moved to tree-dfa.h.
3924 (compute_builtin_object_size): Moved to tree-object-size.h.
3925 (compute_record_mode): Moved to stor-layout.h.
3926 (constant_boolean_node): Moved to fold-const.h.
3927 (constructor_static_from_elts_p): Moved to varasm.h.
3928 (cxx11_attribute_p): Moved to attribs.h.
3929 (debug_body): Moved to print-tree.h.
3930 (debug_find_tree): Moved to tree-inline.h.
3931 (debug_fold_checksum): Moved to fold-const.h.
3932 (debug_head): Moved to print-tree.h.
3933 (debug_head): Moved to print-tree.h.
3934 (debug_raw): Moved to print-tree.h.
3935 (debug_tree): Moved to print-tree.h.
3936 (debug_vec_tree): Moved to print-tree.h.
3937 (debug_verbose): Moved to print-tree.h.
3938 (debug_verbose): Moved to print-tree.h.
3939 (decl_attributes): Moved to attribs.h.
3940 (decl_binds_to_current_def_p): Moved to varasm.h.
3941 (decl_default_tls_model): Moved to varasm.h.
3942 (decl_replaceable_p): Moved to varasm.h.
3943 (div_if_zero_remainder): Moved to fold-const.h.
3944 (double_int mem_ref_offset): Moved to fold-const.h.
3945 (dump_addr): Moved to print-tree.h.
3946 (element_precision): Moved to machmode.h.
3947 (expand_dummy_function_end): Moved to function.h.
3948 (expand_function_end): Moved to function.h.
3949 (expand_function_start): Moved to function.h.
3950 (expand_label): Moved to stmt.h.
3951 (expr_first): Moved to tree-iterator.h.
3952 (expr_last): Moved to tree-iterator.h.
3953 (finalize_size_functions): Moved to stor-layout.h.
3954 (finish_builtin_struct): Moved to stor-layout.h.
3955 (finish_record_layout): Moved to stor-layout.h.
3956 (fixup_signed_type): Moved to stor-layout.h.
3957 (fixup_unsigned_type): Moved to stor-layout.h.
3958 (flags_from_decl_or_type): Moved to calls.h.
3959 (fold): Moved to fold-const.h.
3960 (fold_abs_const): Moved to fold-const.h.
3961 (fold_binary): Moved to fold-const.h.
3962 (fold_binary_loc): Moved to fold-const.h.
3963 (fold_binary_to_constant): Moved to fold-const.h.
3964 (fold_build1): Moved to fold-const.h.
3965 (fold_build1_initializer_loc): Moved to fold-const.h.
3966 (fold_build1_loc): Moved to fold-const.h.
3967 (fold_build1_stat_loc): Moved to fold-const.h.
3968 (fold_build2): Moved to fold-const.h.
3969 (fold_build2_initializer_loc): Moved to fold-const.h.
3970 (fold_build2_loc): Moved to fold-const.h.
3971 (fold_build2_stat_loc): Moved to fold-const.h.
3972 (fold_build3): Moved to fold-const.h.
3973 (fold_build3_loc): Moved to fold-const.h.
3974 (fold_build3_stat_loc): Moved to fold-const.h.
3975 (fold_build_call_array): Moved to fold-const.h.
3976 (fold_build_call_array_initializer): Moved to fold-const.h.
3977 (fold_build_call_array_initializer_loc): Moved to fold-const.h.
3978 (fold_build_call_array_loc): Moved to fold-const.h.
3979 (fold_build_cleanup_point_expr): Moved to fold-const.h.
3980 (fold_convert): Moved to fold-const.h.
3981 (fold_convert_loc): Moved to fold-const.h.
3982 (fold_convertible_p): Moved to fold-const.h.
3983 (fold_defer_overflow_warnings): Moved to fold-const.h.
3984 (fold_deferring_overflow_warnings_p): Moved to fold-const.h.
3985 (fold_fma): Moved to fold-const.h.
3986 (fold_ignored_result): Moved to fold-const.h.
3987 (fold_indirect_ref): Moved to fold-const.h.
3988 (fold_indirect_ref_1): Moved to fold-const.h.
3989 (fold_indirect_ref_loc): Moved to fold-const.h.
3990 (fold_read_from_constant_string): Moved to fold-const.h.
3991 (fold_real_zero_addition_p): Moved to fold-const.h.
3992 (fold_single_bit_test): Moved to fold-const.h.
3993 (fold_strip_sign_ops): Moved to fold-const.h.
3994 (fold_ternary): Moved to fold-const.h.
3995 (fold_ternary_loc): Moved to fold-const.h.
3996 (fold_unary): Moved to tree-data-ref.h.
3997 (fold_unary_ignore_overflow): Moved to fold-const.h.
3998 (fold_unary_ignore_overflow_loc): Moved to fold-const.h.
3999 (fold_unary_loc): Moved to fold-const.h.
4000 (fold_unary_to_constant): Moved to fold-const.h.
4001 (fold_undefer_and_ignore_overflow_warnings): Moved to fold-const.h.
4002 (fold_undefer_overflow_warnings): Moved to fold-const.h.
4003 (folding_initializer): Moved to fold-const.h.
4004 (free_temp_slots): Moved to function.h.
4005 (generate_setjmp_warnings): Moved to function.h.
4006 (get_attribute_name): Moved to attribs.h.
4007 (get_identifier): Moved to stringpool.h.
4008 (get_identifier_with_length): Moved to stringpool.h.
4009 (get_inner_reference): Moved to tree.h.
4010 (gimple_alloca_call_p): Moved to calls.h.
4011 (gimplify_parameters): Moved to function.h.
4012 (highest_pow2_factor): Moved to expr.h.
4013 (indent_to): Moved to print-tree.h.
4014 (init_attributes): Moved to attribs.h.
4015 (init_dummy_function_start): Moved to function.h.
4016 (init_function_start): Moved to function.h.
4017 (init_inline_once): Moved to tree-inline.h.
4018 (init_object_sizes): Moved to tree-object-size.h.
4019 (init_temp_slots): Moved to function.h.
4020 (init_tree_optimization_optabs): Moved to optabs.h.
4021 (initialize_sizetypes): Moved to stor-layout.h.
4022 (initializer_constant_valid_for_bitfield_p): Moved to varasm.h.
4023 (initializer_constant_valid_p): Moved to varasm.h.
4024 (int_const_binop): Moved to fold-const.h.
4025 (internal_reference_types): Moved to stor-layout.h.
4026 (invert_tree_comparison): Moved to fold-const.h.
4027 (invert_truthvalue): Moved to fold-const.h.
4028 (invert_truthvalue_loc): Moved to fold-const.h.
4029 (is_tm_ending_fndecl): Moved to trans-mem.h.
4030 (is_tm_may_cancel_outer): Moved to trans-mem.h.
4031 (is_tm_pure): Moved to trans-mem.h.
4032 (is_tm_safe): Moved to trans-mem.h.
4033 (layout_decl): Moved to stor-layout.h.
4034 (layout_type): Moved to stor-layout.h.
4035 (lookup_attribute_spec): Moved to attribs.h.
4036 (make_accum_type): Moved to stor-layout.h.
4037 (make_decl_one_only): Moved to varasm.h.
4038 (make_decl_rtl): Moved to tree.h.
4039 (make_decl_rtl_for_debug): Moved to varasm.h.
4040 (make_fract_type): Moved to stor-layout.h.
4041 (make_or_reuse_sat_signed_accum_type): Moved to stor-layout.h.
4042 (make_or_reuse_sat_signed_fract_type): Moved to stor-layout.h.
4043 (make_or_reuse_sat_unsigned_accum_type): Moved to stor-layout.h.
4044 (make_or_reuse_sat_unsigned_fract_type): Moved to stor-layout.h.
4045 (make_or_reuse_signed_accum_type): Moved to stor-layout.h.
4046 (make_or_reuse_signed_fract_type): Moved to stor-layout.h.
4047 (make_or_reuse_unsigned_accum_type): Moved to stor-layout.h.
4048 (make_or_reuse_unsigned_fract_type): Moved to stor-layout.h.
4049 (make_range): Moved to fold-const.h.
4050 (make_range_step): Moved to fold-const.h.
4051 (make_sat_signed_accum_type): Moved to stor-layout.h.
4052 (make_sat_signed_fract_type): Moved to stor-layout.h.
4053 (make_sat_unsigned_accum_type): Moved to stor-layout.h.
4054 (make_sat_unsigned_fract_type): Moved to stor-layout.h.
4055 (make_signed_accum_type): Moved to stor-layout.h.
4056 (make_signed_fract_type): Moved to stor-layout.h.
4057 (make_signed_type): Moved to stor-layout.h.
4058 (make_unsigned_accum_type): Moved to stor-layout.h.
4059 (make_unsigned_fract_type): Moved to stor-layout.h.
4060 (make_unsigned_type): Moved to stor-layout.h.
4061 (mark_decl_referenced): Moved to varasm.h.
4062 (mark_referenced): Moved to varasm.h.
4063 (may_negate_without_overflow_p): Moved to fold-const.h.
4064 (maybe_get_identifier): Moved to stringpool.h.
4065 (merge_ranges): Moved to fold-const.h.
4066 (merge_weak): Moved to varasm.h.
4067 (mode_for_size_tree): Moved to stor-layout.h.
4068 (multiple_of_p): Moved to fold-const.h.
4069 (must_pass_in_stack_var_size): Moved to calls.h.
4070 (must_pass_in_stack_var_size_or_pad): Moved to calls.h.
4071 (native_encode_expr): Moved to fold-const.h.
4072 (native_interpret_expr): Moved to fold-const.h.
4073 (non_lvalue): Moved to fold-const.h.
4074 (non_lvalue_loc): Moved to fold-const.h.
4075 (normalize_offset): Moved to stor-layout.h.
4076 (normalize_rli): Moved to stor-layout.h.
4077 (notice_global_symbol): Moved to varasm.h.
4078 (omit_one_operand): Moved to fold-const.h.
4079 (omit_one_operand_loc): Moved to fold-const.h.
4080 (omit_two_operands): Moved to fold-const.h.
4081 (omit_two_operands_loc): Moved to fold-const.h.
4082 (operand_equal_p): Moved to tree-data-ref.h.
4083 (parse_input_constraint): Moved to stmt.h.
4084 (parse_output_constraint): Moved to stmt.h.
4085 (place_field): Moved to stor-layout.h.
4086 (pop_function_context): Moved to function.h.
4087 (pop_temp_slots): Moved to function.h.
4088 (pos_from_bit): Moved to stor-layout.h.
4089 (preserve_temp_slots): Moved to function.h.
4090 (print_node): Moved to print-tree.h.
4091 (print_node_brief): Moved to print-tree.h.
4092 (print_rtl): Moved to rtl.h.
4093 (process_pending_assemble_externals): Moved to varasm.h.
4094 (ptr_difference_const): Moved to fold-const.h.
4095 (push_function_context): Moved to function.h.
4096 (push_struct_function): Moved to function.h.
4097 (push_temp_slots): Moved to function.h.
4098 (record_tm_replacement): Moved to trans-mem.h.
4099 (relayout_decl): Moved to stor-layout.h.
4100 (resolve_asm_operand_names): Moved to stmt.h.
4101 (resolve_unique_section): Moved to varasm.h.
4102 (rli_size_so_far): Moved to stor-layout.h.
4103 (rli_size_unit_so_far): Moved to stor-layout.h.
4104 (round_down): Moved to fold-const.h.
4105 (round_down_loc): Moved to fold-const.h.
4106 (round_up): Moved to fold-const.h.
4107 (round_up_loc): Moved to fold-const.h.
4108 (set_decl_incoming_rtl): Moved to emit-rtl.h.
4109 (set_decl_rtl): Moved to tree.h.
4110 (set_min_and_max_values_for_integral_type): Moved to stor-layout.h.
4111 (set_user_assembler_name): Moved to varasm.h.
4112 (setjmp_call_p): Moved to calls.h.
4113 (size_binop): Moved to fold-const.h.
4114 (size_binop_loc): Moved to fold-const.h.
4115 (size_diffop): Moved to fold-const.h.
4116 (size_diffop_loc): Moved to fold-const.h.
4117 (size_int_kind): Moved to fold-const.h.
4118 (stack_protect_epilogue): Moved to function.h.
4119 (start_record_layout): Moved to stor-layout.h.
4120 (supports_one_only): Moved to varasm.h.
4121 (swap_tree_comparison): Moved to fold-const.h.
4122 (tm_malloc_replacement): Moved to trans-mem.h.
4123 (tree build_fold_addr_expr_loc): Moved to fold-const.h.
4124 (tree build_invariant_address): Moved to fold-const.h.
4125 (tree_binary_nonnegative_warnv_p): Moved to fold-const.h.
4126 (tree_binary_nonzero_warnv_p): Moved to fold-const.h.
4127 (tree_call_nonnegative_warnv_p): Moved to fold-const.h.
4128 (tree_expr_nonnegative_p): Moved to fold-const.h.
4129 (tree_expr_nonnegative_warnv_p): Moved to fold-const.h.
4130 (tree_output_constant_def): Moved to varasm.h.
4131 (tree_overlaps_hard_reg_set): Moved to stmt.h.
4132 (tree_single_nonnegative_warnv_p): Moved to fold-const.h.
4133 (tree_single_nonzero_warnv_p): Moved to fold-const.h.
4134 (tree_swap_operands_p): Moved to fold-const.h.
4135 (tree_unary_nonnegative_warnv_p): Moved to fold-const.h.
4136 (tree_unary_nonzero_warnv_p): Moved to fold-const.h.
4137 (update_alignment_for_field): Moved to stor-layout.h.
4138 (use_register_for_decl): Moved to function.h.
4139 (variable_size): Moved to rtl.h.
4140 (vector_type_mode): Moved to stor-layout.h.
4141 * cgraph.h: Corresponding changes.
4142 * emit-rtl.h: Corresponding changes.
4143 * expr.h: Corresponding changes.
4144 * function.h: Corresponding changes.
4145 * optabs.h: Corresponding changes.
4146 * trans-mem.h: Corresponding changes.
4147 Protect against multiple inclusion.
4148 * tree-inline.h: Corresponding changes.
4149 * tree-iterator.h: Corresponding changes.
4150 * tree-dfa.h: Include expr.h.
4151 * tree-ssanames.h: Include stringpool.h.
4152 * attribs.h: New file.
4153 * calls.h: New file.
4154 * fold-const.h: New file.
4155 * gcc-symtab.h: New file.
4156 * print-rtl.h: New file.
4157 * print-tree.h: New file.
4159 * stor-layout.h: New file.
4160 * strinpool.h: New file.
4161 * tree-nested.h: New file
4162 * tree-object-size.h: New file.
4163 * varasm.h: New file.
4165 2013-11-14 Diego Novillo <dnovillo@google.com>
4167 * alias.c: Include varasm.h.
4169 * asan.c: Include calls.h.
4170 Include stor-layout.h.
4172 * attribs.c: Include stringpool.h.
4174 Include stor-layout.h.
4175 * builtins.c: Include stringpool.h.
4176 Include stor-layout.h.
4179 Include tree-object-size.h.
4180 * calls.c: Include stor-layout.h.
4182 Include stringpool.h.
4184 * cfgexpand.c: Include stringpool.h.
4186 Include stor-layout.h.
4188 Include print-tree.h.
4189 * cgraph.c: Include varasm.h.
4191 Include print-tree.h.
4192 * cgraphclones.c: Include stringpool.h.
4195 Move inclusion of rtl.h earlier in the file.
4196 * cgraphunit.c: Include varasm.h.
4197 Include stor-layout.h.
4198 Include stringpool.h.
4199 * cilk-common.c: Include stringpool.h.
4200 Include stor-layout.h.
4201 * combine.c: Include stor-layout.h.
4202 * config/aarch64/aarch64-builtins.c: Include stor-layout.h.
4203 Include stringpool.h.
4205 * config/aarch64/aarch64.c: Include stringpool.h.
4206 Include stor-layout.h.
4209 * config/alpha/alpha.c: Include stor-layout.h.
4212 * config/arc/arc.c: Include varasm.h.
4213 Include stor-layout.h.
4214 Include stringpool.h.
4216 * config/arm/arm.c: Include stringpool.h.
4217 Include stor-layout.h.
4220 * config/avr/avr-c.c: Include stor-layout.h.
4221 * config/avr/avr-log.c: Include print-tree.h.
4222 * config/avr/avr.c: Include print-tree.h.
4224 Include stor-layout.h.
4225 Include stringpool.h.
4226 * config/bfin/bfin.c: Include varasm.h.
4228 * config/c6x/c6x.c: Include stor-layout.h.
4231 Include stringpool.h.
4232 * config/cr16/cr16.c: Include stor-layout.h.
4234 * config/cris/cris.c: Include varasm.h.
4235 Include stor-layout.h.
4238 * config/darwin.c: Include stringpool.h.
4240 Include stor-layout.h.
4241 * config/epiphany/epiphany.c: Include stor-layout.h.
4244 Include stringpool.h.
4245 * config/fr30/fr30.c: Include stor-layout.h.
4247 * config/frv/frv.c: Include varasm.h.
4248 Include stor-layout.h.
4249 Include stringpool.h.
4250 * config/h8300/h8300.c: Include stor-layout.h.
4253 Include stringpool.h.
4254 * config/i386/i386.c: Include stringpool.h.
4257 Include stor-layout.h.
4259 * config/i386/winnt-cxx.c: Include stringpool.h.
4261 * config/i386/winnt.c: Include stringpool.h.
4263 * config/ia64/ia64-c.c: Include stringpool.h.
4264 * config/ia64/ia64.c: Include stringpool.h.
4265 Include stor-layout.h.
4268 * config/iq2000/iq2000.c: Include stor-layout.h.
4271 * config/lm32/lm32.c: Include calls.h.
4272 * config/m32c/m32c.c: Include stor-layout.h.
4275 * config/m32r/m32r.c: Include stor-layout.h.
4277 Include stringpool.h.
4279 * config/m68k/m68k.c: Include calls.h.
4280 Include stor-layout.h.
4282 * config/mcore/mcore.c: Include stor-layout.h.
4284 Include stringpool.h.
4286 * config/mep/mep.c: Include varasm.h.
4288 Include stringpool.h.
4289 Include stor-layout.h.
4290 * config/microblaze/microblaze.c: Include varasm.h.
4291 Include stor-layout.h.
4293 * config/mips/mips.c: Include varasm.h.
4294 Include stringpool.h.
4295 Include stor-layout.h.
4297 * config/mmix/mmix.c: Include varasm.h.
4298 Include stor-layout.h.
4300 * config/mn10300/mn10300.c: Include stor-layout.h.
4303 * config/moxie/moxie.c: Include stor-layout.h.
4306 * config/msp430/msp430.c: Include stor-layout.h.
4308 * config/nds32/nds32.c: Include stor-layout.h.
4311 * config/pa/pa.c: Include stor-layout.h.
4312 Include stringpool.h.
4315 * config/pdp11/pdp11.c: Include stor-layout.h.
4318 * config/picochip/picochip.c: Include calls.h.
4319 Include stor-layout.h.
4320 Include stringpool.h.
4322 * config/rl78/rl78.c: Include varasm.h.
4323 Include stor-layout.h.
4325 * config/rs6000/rs6000-c.c: Include stor-layout.h.
4326 Include stringpool.h.
4327 * config/rs6000/rs6000.c: Include stringpool.h.
4328 Include stor-layout.h.
4330 Include print-tree.h.
4332 * config/rx/rx.c: Include varasm.h.
4333 Include stor-layout.h.
4335 * config/s390/s390.c: Include print-tree.h.
4336 Include stringpool.h.
4337 Include stor-layout.h.
4340 * config/score/score.c: Include stringpool.h.
4343 Include stor-layout.h.
4344 * config/sh/sh-c.c: Include stringpool.h.
4345 Include attribs.h.h.
4346 * config/sh/sh.c: Include stringpool.h.
4347 Include stor-layout.h.
4350 * config/sol2-c.c: Include stringpool.h.
4352 * config/sol2-cxx.c: Include stringpool.h.
4353 * config/sol2.c: Include stringpool.h.
4355 * config/sparc/sparc.c: Include stringpool.h.
4356 Include stor-layout.h.
4359 * config/spu/spu-c.c: Include stringpool.h.
4360 * config/spu/spu.c: Include stringpool.h.
4361 Include stor-layout.h.
4364 * config/stormy16/stormy16.c: Include stringpool.h.
4365 Include stor-layout.h.
4368 * config/tilegx/tilegx.c: Include stringpool.h.
4369 Include stor-layout.h.
4372 * config/tilepro/tilepro.c: Include stringpool.h.
4373 Include stor-layout.h.
4376 * config/v850/v850-c.c: Include stringpool.h.
4378 * config/v850/v850.c: Include stringpool.h.
4379 Include stor-layout.h.
4382 * config/vax/vax.c: Include calls.h.
4384 * config/vms/vms.c: Include stringpool.h.
4385 * config/vxworks.c: Include stringpool.h.
4386 * config/xtensa/xtensa.c: Include stringpool.h.
4387 Include stor-layout.h.
4390 * convert.c: Include stor-layout.h.
4391 * coverage.c: Include stringpool.h.
4392 Include stor-layout.h.
4393 * dbxout.c: Include varasm.h.
4394 Include stor-layout.h.
4395 * dojump.c: Include stor-layout.h.
4396 * dse.c: Include stor-layout.h.
4397 * dwarf2asm.c: Include stringpool.h.
4399 * dwarf2cfi.c: Include stor-layout.h.
4400 * dwarf2out.c: Include rtl.h.
4401 Include stringpool.h.
4402 Include stor-layout.h.
4406 Move inclusion of rtl.h earlier in the file.
4407 * emit-rtl.c: Include varasm.h.
4408 * except.c: Include stringpool.h.
4409 Include stor-layout.h.
4410 * explow.c: Include stor-layout.h.
4411 * expmed.c: Include stor-layout.h.
4412 * expr.c: Include stringpool.h.
4413 Include stor-layout.h.
4416 * final.c: Include varasm.h.
4417 * fold-const.c: Include stor-layout.h.
4419 Include tree-iterator.h.
4420 * function.c: Include stor-layout.h.
4422 Include stringpool.h.
4423 * genattrtab.c (write_header): Emit includes for varasm.h,
4424 stor-layout.h and calls.h.
4425 * genautomata.c (main): Likewise.
4426 * genemit.c: Likewise.
4427 * genopinit.c: Likewise.
4428 * genoutput.c (output_prologue): Likewise.
4429 * genpeep.c: Likewise.
4430 * genpreds.c (write_insn_preds_c): Likewise.
4431 * gengtype.c (open_base_files): Add stringpool.h.
4432 * gimple-expr.c: Include stringpool.h.
4433 Include stor-layout.h.
4434 * gimple-fold.c: Include stringpool.h.
4437 Include stor-layout.h.
4438 * gimple-low.c: Include tree-nested.h.
4440 * gimple-pretty-print.c: Include stringpool.h.
4441 * gimple-ssa-strength-reduction.c: Include stor-layout.h.
4443 * gimple-walk.c: Include stmt.h.
4444 * gimple.c: Include calls.h.
4446 Include stor-layout.h.
4447 * gimplify.c: Include stringpool.h.
4450 Include stor-layout.h.
4452 Include print-tree.h.
4454 * gimplify-me.c: Include stmt.h
4455 Include stor-layout.h
4456 * internal-fn.c: Include stor-layout.h.
4457 * ipa-devirt.c: Include print-tree.h.
4459 * ipa-inline-analysis.c: Include stor-layout.h.
4460 Include stringpool.h.
4461 Include print-tree.h.
4462 * ipa-inline.c: Include trans-mem.h.
4464 * ipa-prop.c: Include expr.h.
4465 Include stor-layout.h.
4466 Include print-tree.h.
4467 * ipa-pure-const.c: Include print-tree.h.
4469 * ipa-reference.c: Include calls.h.
4470 * ipa-split.c: Include stringpool.h.
4473 * ipa.c: Include calls.h.
4474 Include stringpool.h.
4475 * langhooks.c: Include stringpool.h.
4477 * lto-cgraph.c: Include stringpool.h.
4478 * lto-streamer-in.c: Include stringpool.h.
4479 * lto-streamer-out.c: Include stor-layout.h.
4480 Include stringpool.h.
4481 * omp-low.c: Include stringpool.h.
4482 Include stor-layout.h.
4484 * optabs.c: Include stor-layout.h.
4485 Include stringpool.h.
4487 * passes.c: Include varasm.h.
4488 * predict.c: Include calls.h.
4489 * print-rtl.c: Include print-tree.h.
4490 * print-tree.c: Include varasm.h.
4491 Include print-rtl.h.
4492 Include stor-layout.h.
4493 * realmpfr.c: Include stor-layout.h.
4494 * reg-stack.c: Include varasm.h.
4495 * sdbout.c: Include varasm.h.
4496 Include stor-layout.h.
4497 * simplify-rtx.c: Include varasm.h.
4498 * stmt.c: Include varasm.h.
4499 Include stor-layout.h.
4500 * stor-layout.c: Include stor-layout.h.
4501 Include stringpool.h.
4503 Include print-tree.h.
4504 * symtab.c: Include rtl.h.
4505 Include print-tree.h.
4509 * targhooks.c: Include stor-layout.h.
4511 * toplev.c: Include varasm.h.
4512 Include tree-inline.h.
4513 * trans-mem.c: Include calls.h.
4517 * tree-affine.c: Include expr.h.
4518 * tree-browser.c: Include print-tree.h.
4519 * tree-call-cdce.c: Include stor-layout.h.
4520 * tree-cfg.c: Include trans-mem.h.
4521 Include stor-layout.h.
4522 Include print-tree.h.
4523 * tree-complex.c: Include stor-layout.h.
4524 * tree-data-ref.c: Include expr.h.
4525 * tree-dfa.c: Include stor-layout.h.
4526 * tree-eh.c: Include expr.h.
4528 * tree-emutls.c: Include stor-layout.h.
4530 * tree-if-conv.c: Include stor-layout.h.
4531 * tree-inline.c: Include stor-layout.h.
4533 * tree-loop-distribution.c: Include stor-layout.h.
4534 * tree-nested.c: Include stringpool.h.
4535 Include stor-layout.h.
4536 * tree-object-size.c: Include tree-object-size.h.
4537 * tree-outof-ssa.c: Include stor-layout.h.
4538 * tree-parloops.c: Include stor-layout.h.
4539 Include tree-nested.h.
4540 * tree-pretty-print.c: Include stor-layout.h.
4542 * tree-profile.c: Include varasm.h.
4543 Include tree-nested.h.
4544 * tree-scalar-evolution.c: Include expr.h.
4545 * tree-sra.c: Include stor-layout.h.
4546 * tree-ssa-address.c: Include stor-layout.h.
4547 * tree-ssa-ccp.c: Include stor-layout.h.
4548 * tree-ssa-dce.c: Include calls.h.
4549 * tree-ssa-dom.c: Include stor-layout.h.
4550 * tree-ssa-forwprop.c: Include stor-layout.h.
4551 * tree-ssa-ifcombine.c: Include stor-layout.h.
4552 * tree-ssa-loop-ivopts.c: Include stor-layout.h.
4553 * tree-ssa-loop-niter.c: Include calls.h.
4555 * tree-ssa-loop-prefetch.c: Include stor-layout.h.
4556 * tree-ssa-math-opts.c: Include stor-layout.h.
4557 * tree-ssa-operands.c: Include stmt.h.
4558 Include print-tree.h.
4559 * tree-ssa-phiopt.c: Include stor-layout.h.
4560 * tree-ssa-reassoc.c: Include stor-layout.h.
4561 * tree-ssa-sccvn.c: Include stor-layout.h.
4562 * tree-ssa-sink.c: Include stor-layout.h.
4563 * tree-ssa-strlen.c: Include stor-layout.h.
4564 * tree-ssa-structalias.c: Include stor-layout.h.
4566 * tree-ssa-tail-merge.c: Include stor-layout.h.
4567 Include trans-mem.h.
4568 * tree-ssa-uncprop.c: Include stor-layout.h.
4569 * tree-ssa.c: Include stor-layout.h.
4570 * tree-ssanames.c: Include stor-layout.h.
4571 * tree-streamer-in.c: Include stringpool.h.
4572 * tree-streamer-out.c: Include stor-layout.h.
4573 * tree-switch-conversion.c: Include varasm.h.
4574 Include stor-layout.h.
4575 * tree-tailcall.c: Include stor-layout.h.
4576 * tree-vect-data-refs.c: Include stor-layout.h.
4577 * tree-vect-generic.c: Include stor-layout.h.
4578 * tree-vect-loop.c: Include stor-layout.h.
4579 * tree-vect-patterns.c: Include stor-layout.h.
4580 * tree-vect-slp.c: Include stor-layout.h.
4581 * tree-vect-stmts.c: Include stor-layout.h.
4582 * tree-vectorizer.c: Include stor-layout.h.
4583 * tree-vrp.c: Include stor-layout.h.
4585 * tree.c: Include stor-layout.h.
4589 * tsan.c: Include expr.h.
4590 * ubsan.c: Include stor-layout.h.
4591 Include stringpool.h.
4592 * value-prof.c: Include tree-nested.h.
4594 * var-tracking.c: Include varasm.h.
4595 Include stor-layout.h.
4596 * varasm.c: Include stor-layout.h.
4597 Include stringpool.h.
4598 Include gcc-symtab.h.
4600 * varpool.c: Include varasm.h.
4601 * vmsdbgout.c: Include varasm.h.
4602 * xcoffout.c: Include varasm.h.
4604 2013-11-14 Joern Rennecke <joern.rennecke@embecosm.com>
4606 * config/arc/arc.md (doloop_begin_i): Remove extra alignment;
4609 2013-11-14 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
4611 * config/rs6000/sysv4le.h (LINUX64_DEFAULT_ABI_ELFv2): Define.
4613 2013-11-14 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
4614 Alan Modra <amodra@gmail.com>
4616 * config/rs6000/rs6000.h (RS6000_SAVE_AREA): Handle ABI_ELFv2.
4617 (RS6000_SAVE_TOC): Remove.
4618 (RS6000_TOC_SAVE_SLOT): New macro.
4619 * config/rs6000/rs6000.c (rs6000_parm_offset): New function.
4620 (rs6000_parm_start): Use it.
4621 (rs6000_function_arg_advance_1): Likewise.
4622 (rs6000_emit_prologue): Use RS6000_TOC_SAVE_SLOT.
4623 (rs6000_emit_epilogue): Likewise.
4624 (rs6000_call_aix): Likewise.
4625 (rs6000_output_function_prologue): Do not save/restore r11
4626 around calling _mcount for ABI_ELFv2.
4628 2013-11-14 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
4629 Alan Modra <amodra@gmail.com>
4631 * config/rs6000/rs6000-protos.h (rs6000_reg_parm_stack_space):
4633 * config/rs6000/rs6000.h (RS6000_REG_SAVE): Remove.
4634 (REG_PARM_STACK_SPACE): Call rs6000_reg_parm_stack_space.
4635 * config/rs6000/rs6000.c (rs6000_parm_needs_stack): New function.
4636 (rs6000_function_parms_need_stack): Likewise.
4637 (rs6000_reg_parm_stack_space): Likewise.
4638 (rs6000_function_arg): Do not replace BLKmode by Pmode when
4639 returning a register argument.
4641 2013-11-14 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
4642 Michael Gschwind <mkg@us.ibm.com>
4644 * config/rs6000/rs6000.h (FP_ARG_MAX_RETURN): New macro.
4645 (ALTIVEC_ARG_MAX_RETURN): Likewise.
4646 (FUNCTION_VALUE_REGNO_P): Use them.
4647 * config/rs6000/rs6000.c (TARGET_RETURN_IN_MSB): Define.
4648 (rs6000_return_in_msb): New function.
4649 (rs6000_return_in_memory): Handle ELFv2 homogeneous aggregates.
4650 Handle aggregates of up to 16 bytes for ELFv2.
4651 (rs6000_function_value): Handle ELFv2 homogeneous aggregates.
4653 2013-11-14 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
4654 Michael Gschwind <mkg@us.ibm.com>
4656 * config/rs6000/rs6000.h (AGGR_ARG_NUM_REG): Define.
4657 * config/rs6000/rs6000.c (rs6000_aggregate_candidate): New function.
4658 (rs6000_discover_homogeneous_aggregate): Likewise.
4659 (rs6000_function_arg_boundary): Handle homogeneous aggregates.
4660 (rs6000_function_arg_advance_1): Likewise.
4661 (rs6000_function_arg): Likewise.
4662 (rs6000_arg_partial_bytes): Likewise.
4663 (rs6000_psave_function_arg): Handle BLKmode arguments.
4665 2013-11-14 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
4666 Michael Gschwind <mkg@us.ibm.com>
4668 * config/rs6000/rs6000.h (AGGR_ARG_NUM_REG): Define.
4669 * config/rs6000/rs6000.c (rs6000_aggregate_candidate): New function.
4670 (rs6000_discover_homogeneous_aggregate): Likewise.
4671 (rs6000_function_arg_boundary): Handle homogeneous aggregates.
4672 (rs6000_function_arg_advance_1): Likewise.
4673 (rs6000_function_arg): Likewise.
4674 (rs6000_arg_partial_bytes): Likewise.
4675 (rs6000_psave_function_arg): Handle BLKmode arguments.
4677 2013-11-14 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
4679 * config/rs6000/rs6000.c (machine_function): New member
4681 (rs6000_emit_prologue): Set r2_setup_needed if necessary.
4682 (rs6000_output_mi_thunk): Set r2_setup_needed.
4683 (rs6000_output_function_prologue): Output global entry point
4684 prologue and local entry point marker if needed for ABI_ELFv2.
4685 Output -mprofile-kernel code here.
4686 (output_function_profiler): Do not output -mprofile-kernel
4687 code here; moved to rs6000_output_function_prologue.
4688 (rs6000_file_start): Output ".abiversion 2" for ABI_ELFv2.
4690 (rs6000_emit_move): Do not handle dot symbols for ABI_ELFv2.
4691 (rs6000_output_function_entry): Likewise.
4692 (rs6000_assemble_integer): Likewise.
4693 (rs6000_elf_encode_section_info): Likewise.
4694 (rs6000_elf_declare_function_name): Do not create dot symbols
4695 or .opd section for ABI_ELFv2.
4697 (rs6000_trampoline_size): Update for ABI_ELFv2 trampolines.
4698 (rs6000_trampoline_init): Likewise.
4699 (rs6000_elf_file_end): Call file_end_indicate_exec_stack for ABI_ELFv2.
4701 (rs6000_call_aix): Handle ELFv2 indirect calls. Do not check
4702 for function descriptors in ABI_ELFv2.
4704 * config/rs6000/rs6000.md ("*call_indirect_aix<mode>"): Support
4705 on ABI_AIX only, not ABI_ELFv2.
4706 ("*call_value_indirect_aix<mode>"): Likewise.
4707 ("*call_indirect_elfv2<mode>"): New pattern.
4708 ("*call_value_indirect_elfv2<mode>"): Likewise.
4710 * config/rs6000/predicates.md ("symbol_ref_operand"): Do not
4711 check for function descriptors in ABI_ELFv2.
4712 ("current_file_function_operand"): Likewise.
4714 * config/rs6000/ppc-asm.h [__powerpc64__ && _CALL_ELF == 2]:
4716 (FUNC_NAME): Define ELFv2 variant.
4717 (JUMP_TARGET): Likewise.
4718 (FUNC_START): Likewise.
4719 (HIDDEN_FUNC): Likewise.
4720 (FUNC_END): Likeiwse.
4722 2013-11-14 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
4724 * config.gcc [powerpc*-*-* | rs6000-*-*]: Support --with-abi=elfv1
4725 and --with-abi=elfv2.
4726 * config/rs6000/option-defaults.h (OPTION_DEFAULT_SPECS): Add "abi".
4727 * config/rs6000/rs6000.opt (mabi=elfv1): New option.
4728 (mabi=elfv2): Likewise.
4729 * config/rs6000/rs6000-opts.h (enum rs6000_abi): Add ABI_ELFv2.
4730 * config/rs6000/linux64.h (DEFAULT_ABI): Do not hard-code to AIX_ABI
4732 (ELFv2_ABI_CHECK): New macro.
4733 (SUBSUBTARGET_OVERRIDE_OPTIONS): Use it to decide whether to set
4734 rs6000_current_abi to ABI_AIX or ABI_ELFv2.
4735 (GLIBC_DYNAMIC_LINKER64): Support ELFv2 ld.so version.
4736 * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Predefine
4737 _CALL_ELF and __STRUCT_PARM_ALIGN__ if appropriate.
4739 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Handle ABI_ELFv2.
4740 (debug_stack_info): Likewise.
4741 (rs6000_file_start): Treat ABI_ELFv2 the same as ABI_AIX.
4742 (rs6000_legitimize_tls_address): Likewise.
4743 (rs6000_conditional_register_usage): Likewise.
4744 (rs6000_emit_move): Likewise.
4745 (init_cumulative_args): Likewise.
4746 (rs6000_function_arg_advance_1): Likewise.
4747 (rs6000_function_arg): Likewise.
4748 (rs6000_arg_partial_bytes): Likewise.
4749 (rs6000_output_function_entry): Likewise.
4750 (rs6000_assemble_integer): Likewise.
4751 (rs6000_savres_strategy): Likewise.
4752 (rs6000_stack_info): Likewise.
4753 (rs6000_function_ok_for_sibcall): Likewise.
4754 (rs6000_emit_load_toc_table): Likewise.
4755 (rs6000_savres_routine_name): Likewise.
4756 (ptr_regno_for_savres): Likewise.
4757 (rs6000_emit_prologue): Likewise.
4758 (rs6000_emit_epilogue): Likewise.
4759 (rs6000_output_function_epilogue): Likewise.
4760 (output_profile_hook): Likewise.
4761 (output_function_profiler): Likewise.
4762 (rs6000_trampoline_size): Likewise.
4763 (rs6000_trampoline_init): Likewise.
4764 (rs6000_elf_output_toc_section_asm_op): Likewise.
4765 (rs6000_elf_encode_section_info): Likewise.
4766 (rs6000_elf_reloc_rw_mask): Likewise.
4767 (rs6000_elf_declare_function_name): Likewise.
4768 (rs6000_function_arg_boundary): Treat ABI_ELFv2 the same as ABI_AIX,
4769 except that rs6000_compat_align_parm is always assumed false.
4770 (rs6000_gimplify_va_arg): Likewise.
4771 (rs6000_call_aix): Update comment.
4772 (rs6000_sibcall_aix): Likewise.
4773 * config/rs6000/rs6000.md ("tls_gd_aix<TLSmode:tls_abi_suffix>"):
4774 Treat ABI_ELFv2 the same as ABI_AIX.
4775 ("*tls_gd_call_aix<TLSmode:tls_abi_suffix>"): Likewise.
4776 ("tls_ld_aix<TLSmode:tls_abi_suffix>"): Likewise.
4777 ("*tls_ld_call_aix<TLSmode:tls_abi_suffix>"): Likewise.
4778 ("load_toc_aix_si"): Likewise.
4779 ("load_toc_aix_di"): Likewise.
4781 ("call_value"): Likewise.
4782 ("*call_local_aix<mode>"): Likewise.
4783 ("*call_value_local_aix<mode>"): Likewise.
4784 ("*call_nonlocal_aix<mode>"): Likewise.
4785 ("*call_value_nonlocal_aix<mode>"): Likewise.
4786 ("*call_indirect_aix<mode>"): Likewise.
4787 ("*call_value_indirect_aix<mode>"): Likewise.
4788 ("sibcall"): Likewise.
4789 ("sibcall_value"): Likewise.
4790 ("*sibcall_aix<mode>"): Likewise.
4791 ("*sibcall_value_aix<mode>"): Likewise.
4792 * config/rs6000/predicates.md ("symbol_ref_operand"): Likewise.
4793 ("current_file_function_operand"): Likewise.
4795 2013-11-14 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
4797 * config/rs6000/rs6000.c (rs6000_arg_partial_bytes): Simplify logic
4798 by making use of the fact that for vector / floating point arguments
4799 passed both in VRs/FPRs and in the fixed parameter area, the partial
4800 bytes mechanism is in fact not used.
4802 2013-11-14 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
4804 * config/rs6000/rs6000.c (rs6000_psave_function_arg): New function.
4805 (rs6000_finish_function_arg): Likewise.
4806 (rs6000_function_arg): Use rs6000_psave_function_arg and
4807 rs6000_finish_function_arg to handle both vector and floating
4808 point arguments that are also passed in GPRs / the stack.
4810 2013-11-14 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
4812 * config/rs6000/rs6000.c (USE_FP_FOR_ARG_P): Remove TYPE argument.
4813 (USE_ALTIVEC_FOR_ARG_P): Likewise.
4814 (rs6000_darwin64_record_arg_advance_recurse): Update uses.
4815 (rs6000_function_arg_advance_1):Likewise.
4816 (rs6000_darwin64_record_arg_recurse): Likewise.
4817 (rs6000_function_arg): Likewise.
4818 (rs6000_arg_partial_bytes): Likewise.
4820 2013-11-14 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
4822 * config/rs6000/rs6000.c (rs6000_option_override_internal): Replace
4823 "DEFAULT_ABI != ABI_AIX" test by testing for ABI_V4 or ABI_DARWIN.
4824 (rs6000_savres_strategy): Likewise.
4825 (rs6000_return_addr): Likewise.
4826 (rs6000_emit_load_toc_table): Replace "DEFAULT_ABI != ABI_AIX" by
4827 testing for ABI_V4 (since ABI_DARWIN is impossible here).
4828 (rs6000_emit_prologue): Likewise.
4829 (legitimate_lo_sum_address_p): Simplify DEFAULT_ABI test.
4830 (rs6000_elf_declare_function_name): Remove duplicated test.
4831 * config/rs6000/rs6000.md ("load_toc_v4_PIC_1"): Explicitly test
4832 for ABI_V4 (instead of "DEFAULT_ABI != ABI_AIX" test).
4833 ("load_toc_v4_PIC_1_normal"): Likewise.
4834 ("load_toc_v4_PIC_1_476"): Likewise.
4835 ("load_toc_v4_PIC_1b"): Likewise.
4836 ("load_toc_v4_PIC_1b_normal"): Likewise.
4837 ("load_toc_v4_PIC_1b_476"): Likewise.
4838 ("load_toc_v4_PIC_2"): Likewise.
4839 ("load_toc_v4_PIC_3b"): Likewise.
4840 ("load_toc_v4_PIC_3c"): Likewise.
4841 * config/rs6000/rs6000.h (RS6000_REG_SAVE): Simplify DEFAULT_ABI test.
4842 (RS6000_SAVE_AREA): Likewise.
4843 (FP_ARG_MAX_REG): Likewise.
4844 (RETURN_ADDRESS_OFFSET): Likewise.
4845 * config/rs6000/sysv.h (TARGET_TOC): Test for ABI_V4 instead
4847 (SUBTARGET_OVERRIDE_OPTIONS): Likewise.
4848 (MINIMAL_TOC_SECTION_ASM_OP): Likewise.
4850 2013-11-14 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
4852 * config/rs6000/rs6000.c (rs6000_call_indirect_aix): Rename to ...
4853 (rs6000_call_aix): ... this. Handle both direct and indirect calls.
4854 Create call insn directly instead of via various gen_... routines.
4855 Mention special registers used by the call in CALL_INSN_FUNCTION_USAGE.
4856 (rs6000_sibcall_aix): New function.
4857 * config/rs6000/rs6000.md (TOC_SAVE_OFFSET_32BIT): Remove.
4858 (TOC_SAVE_OFFSET_64BIT): Likewise.
4859 (AIX_FUNC_DESC_TOC_32BIT): Likewise.
4860 (AIX_FUNC_DESC_TOC_64BIT): Likewise.
4861 (AIX_FUNC_DESC_SC_32BIT): Likewise.
4862 (AIX_FUNC_DESC_SC_64BIT): Likewise.
4863 ("call" expander): Call rs6000_call_aix.
4864 ("call_value" expander): Likewise.
4865 ("call_indirect_aix<ptrsize>"): Replace this pattern ...
4866 ("call_indirect_aix<ptrsize>_nor11"): ... and this pattern ...
4867 ("*call_indirect_aix<mode>"): ... by this insn pattern.
4868 ("call_value_indirect_aix<ptrsize>"): Replace this pattern ...
4869 ("call_value_indirect_aix<ptrsize>_nor11"): ... and this pattern ...
4870 ("*call_value_indirect_aix<mode>"): ... by this insn pattern.
4871 ("*call_nonlocal_aix32", "*call_nonlocal_aix64"): Replace by ...
4872 ("*call_nonlocal_aix<mode>"): ... this pattern.
4873 ("*call_value_nonlocal_aix32", "*call_value_nonlocal_aix64"): Replace
4874 ("*call_value_nonlocal_aix<mode>"): ... by this pattern.
4875 ("*call_local_aix<mode>"): New insn pattern.
4876 ("*call_value_local_aix<mode>"): Likewise.
4877 ("sibcall" expander): Call rs6000_sibcall_aix.
4878 ("sibcall_value" expander): Likewise. Move earlier in file.
4879 ("*sibcall_nonlocal_aix<mode>"): Replace by ...
4880 ("*sibcall_aix<mode>"): ... this pattern.
4881 ("*sibcall_value_nonlocal_aix<mode>"): Replace by ...
4882 ("*sibcall_value_aix<mode>"): ... this pattern.
4883 * config/rs6000/rs6000-protos.h (rs6000_call_indirect_aix): Remove.
4884 (rs6000_call_aix): Add prototype.
4885 (rs6000_sibcall_aix): Likewise.
4887 2013-11-14 Jakub Jelinek <jakub@redhat.com>
4890 * asan.c (asan_emit_stack_protection): Ensure -fsection-anchors
4891 isn't confused by the artificial decl.
4893 2013-11-14 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
4895 * config/rs6000/rs6000.c (rs6000_emit_prologue): Do not place a
4896 RTX_FRAME_RELATED_P marker on the UNSPEC_MOVESI_FROM_CR insn.
4897 Instead, add USEs of all modified call-saved CR fields to the
4898 insn storing the result to the stack slot, and provide an
4899 appropriate REG_FRAME_RELATED_EXPR for that insn.
4900 * config/rs6000/rs6000.md ("*crsave"): New insn pattern.
4901 * config/rs6000/predicates.md ("crsave_operation"): New predicate.
4903 2013-11-14 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
4904 Alan Modra <amodra@gmail.com>
4906 * function.c (assign_parms): Use all.reg_parm_stack_space instead
4907 of re-evaluating REG_PARM_STACK_SPACE target macro.
4908 (locate_and_pad_parm): New parameter REG_PARM_STACK_SPACE. Use it
4909 instead of evaluating target macro REG_PARM_STACK_SPACE every time.
4910 (assign_parm_find_entry_rtl): Update call.
4911 * calls.c (initialize_argument_information): Update call.
4912 (emit_library_call_value_1): Likewise.
4913 * expr.h (locate_and_pad_parm): Update prototype.
4915 2013-11-14 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
4917 * calls.c (store_unaligned_arguments_into_pseudos): Skip PARALLEL
4920 2013-11-14 DJ Delorie <dj@redhat.com>
4922 * config/rx/rx.c (rx_mode_dependent_address_p): Allow offsets up
4925 2013-11-14 Jeff Law <law@redhat.com>
4927 * tree-ssa-threadedge.c (thread_through_normal_block): Only push the
4928 EDGE_START_JUMP_THREAD marker if the jump threading path is empty.
4930 2013-11-14 James Greenhalgh <james.greenhalgh@arm.com>
4932 * doc/invoke.texi: Update documentation for AArch64's -mcpu
4935 2013-11-14 James Greenhalgh <james.greenhalgh@arm.com>
4937 * config/aarch64/aarch64-cores.def (example-1): Remove.
4938 (example-2): Likewise.
4939 * config/aarch64/aarch64-tune.md: Regenerate.
4940 * config/aarch64/aarch64.md: Do not include "large.md" or "small.md".
4941 (generic_sched): Remove "large", "small".
4942 * config/aarch64/large.md: Delete.
4943 * config/aarch64/small.md: Delete.
4945 2013-11-14 James Greenhalgh <james.greenhalgh@arm.com>
4947 * config/aarch64/aarch64-cores.def (cortex-a57): Tune for cortexa15.
4948 * config/aarch64/aarch64-tune.md: Regenerate.
4949 * config/aarch64/aarch64.md: Include cortex-a15 pipeline model.
4950 (generic_sched): "no" if we are tuning for cortexa15.
4951 * config/arm/cortex-a15.md: Include cortex-a15-neon.md by
4954 2013-11-14 James Greenhalgh <james.greenhalgh@arm.com>
4956 * config/aarch64/aarch64-arches.def (armv8-a): Tune for cortex-a53.
4957 * config/aarch64/aarch64.md: Do not include aarch64-generic.md.
4958 * config/aarch64/aarch64.c (aarch64_tune): Initialize to cortexa53.
4959 (all_cores): Use cortexa53 when tuning for "generic".
4960 (aarch64_override_options): Fix comment.
4961 * config/aarch64/aarch64.h (TARGET_CPU_DEFAULT): Set to cortexa53.
4962 * config/aarch64/aarch64-generic.md: Delete.
4964 2013-11-14 James Greenhalgh <james.greenhalgh@arm.com>
4966 * config/aarch64/aarch64.c (all_architectures): Remove "generic".
4968 2013-11-14 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
4970 * config/aarch64/aarch64.c: Include aarch-cost-tables.h.
4971 (generic_rtx_cost_table): Remove.
4972 (aarch64_rtx_costs): Use fields from cpu_cost_table.
4973 * config/aarch64/aarch64-protos.h (tune_params): Use cpu_cost_table for
4975 (cpu_rtx_cost_table): Remove.
4977 2013-11-14 Julian Brown <julian@codesourcery.com>
4978 Joey Ye <joey.ye@arm.com>
4980 * config/arm/arm.c (arm_cortex_m_branch_cost): New.
4981 (arm_v7m_tune): New.
4982 (arm_slowmul_tune, arm_fastmul_tune, arm_strongarm_tune, arm_9e_tune,
4983 arm_v6t2_tune, arm_cortex_tune, arm_cortex_a15_tune,
4984 arm_cortex_a5_tune, arm_v6m_tune): Add comments for Sched adj cost.
4985 * config/arm/arm-cores.def (cortex-m4, cortex-m3): Use arm_v7m_tune.
4987 2013-11-14 Kirill Yukhin <kirill.yukhin@intel.com>
4990 * config/ia64/ia64.c (ia64_split_tmode_move): Relax `dead'
4993 2013-11-14 Jakub Jelinek <jakub@redhat.com>
4994 Uros Bizjak <ubizjak@gmail.com>
4997 * config/i386/i386.md (*anddi_2): Only allow CCZmode if
4998 operands[2] satisfies_constraint_Z that might have bit 31 set.
5000 2013-11-13 Jeff Law <law@redhat.com>
5002 PR tree-optimization/59102
5003 * gimple-ssa-isolate-paths.c
5004 (insert_trap_and_remove_trailing_statments): Ensure STMT is a
5005 gimple assignment before looking at gimple_assign_lhs.
5007 2013-11-13 Vladimir Makarov <vmakarov@redhat.com>
5009 * ira.c: Add comment about threads at the top of file.
5011 2013-11-13 Vladimir Makarov <vmakarov@redhat.com>
5013 * ira-color.c (coalesce_allocnos): Don't allocate and free
5016 2013-11-14 Tom de Vries <tom@codesourcery.com>
5018 * tree-ssa-tail-merge.c (gimple_equal_p): Add test for structural
5019 equality for GIMPLE_ASSIGN.
5021 2013-11-14 Tom de Vries <tom@codesourcery.com>
5023 * tree-ssa-tail-merge.c (gimple_operand_equal_value_p): Factor new
5025 (gimple_equal_p): ... here.
5027 2013-11-14 Tom de Vries <tom@codesourcery.com>
5029 * trans-mem.c (is_tm_ending): New function.
5030 * gimple.h (is_tm_ending): Declare.
5031 * tree-ssa-tail-merge.c (gimple_equal_p): Remove test on
5033 (find_duplicate): Use is_tm_ending instead of is_tm_ending_fndecl.
5035 2013-11-14 Tom de Vries <tom@codesourcery.com>
5037 * tree-ssa-tail-merge.c (gimple_equal_p): Remove equal variable.
5039 2013-11-13 Andrew MacLeod <amacleod@redhat.com>
5041 * gimple-walk.h: New File. Relocate prototypes from gimple.h.
5042 (struct walk_stmt_info): Relocate here from gimple.h.
5043 * gimple-iterator.h: New File. Relocate prototypes from gimple.h.
5044 (struct gimple_stmt_iterator_d): Relocate here from gimple.h.
5045 (gsi_start_1, gsi_none, gsi_start_bb, gsi_last_1, gsi_last_bb,
5046 gsi_end_p, gsi_one_before_end_p, gsi_next, gsi_prev, gsi_stmt,
5047 gsi_after_labels, gsi_next_nondebug, gsi_prev_nondebug,
5048 gsi_start_nondebug_bb, gsi_start_nondebug_after_labels_bb,
5049 gsi_last_nondebug_bb, gsi_bb, gsi_seq): Relocate here from gimple.h.
5050 * gimple.h (struct gimple_stmt_iterator_d): Move to gimple-iterator.h.
5051 (gsi_start_1, gsi_none, gsi_start_bb, gsi_last_1, gsi_last_bb,
5052 gsi_end_p, gsi_one_before_end_p, gsi_next, gsi_prev, gsi_stmt,
5053 gsi_after_labels, gsi_next_nondebug, gsi_prev_nondebug,
5054 gsi_start_nondebug_bb, gsi_start_nondebug_after_labels_bb,
5055 gsi_last_nondebug_bb, gsi_bb, gsi_seq): Move to gimple-iterator.h.
5056 (struct walk_stmt_info): Move to gimple-walk.h.
5057 (gimple_seq_set_location): Move to gimple.c
5058 * gimple-walk.c: New File.
5059 (walk_gimple_seq_mod, walk_gimple_seq, walk_gimple_asm, walk_gimple_op,
5060 walk_gimple_stmt, get_base_loadstore, walk_stmt_load_store_addr_ops,
5061 walk_stmt_load_store_ops): Relocate here from gimple.c.
5062 * gimple-iterator.c: Include gimple-iterator.h.
5063 * gimple.c (walk_gimple_seq_mod, walk_gimple_seq, walk_gimple_asm,
5064 walk_gimple_op, walk_gimple_stmt, get_base_loadstore,
5065 walk_stmt_load_store_addr_ops, walk_stmt_load_store_ops): Move to
5067 (gimple_seq_set_location): Relocate from gimple.h.
5068 * tree-phinodes.h (set_phi_nodes): Move to tree-phinodes.c.
5069 * tree-phinodes.c (set_phi_nodes): Relocate from tree-phinodes.h.
5070 * gengtype.c (open_base_files): Add gimple-iterator.h to include list.
5071 * Makefile.in (OBJS): Add gimple-walk.o
5072 * asan.c: Update Include list as required for gimple-iterator.h and
5074 * cfgexpand.c: Likewise.
5075 * cfgloop.c: Likewise.
5076 * cfgloopmanip.c: Likewise.
5077 * cgraph.c: Likewise.
5078 * cgraphbuild.c: Likewise.
5079 * cgraphunit.c: Likewise.
5080 * gimple-fold.c: Likewise.
5081 * gimple-low.c: Likewise.
5082 * gimple-pretty-print.c: Likewise.
5083 * gimple-ssa-isolate-paths.c: Likewise.
5084 * gimple-ssa-strength-reduction.c: Likewise.
5085 * gimple-streamer-in.c: Likewise.
5086 * gimple-streamer-out.c: Likewise.
5087 * gimplify.c: Likewise.
5088 * graphite-blocking.c: Likewise.
5089 * graphite-clast-to-gimple.c: Likewise.
5090 * graphite-dependences.c: Likewise.
5091 * graphite-interchange.c: Likewise.
5092 * graphite-optimize-isl.c: Likewise.
5093 * graphite-poly.c: Likewise.
5094 * graphite-scop-detection.c: Likewise.
5095 * graphite-sese-to-poly.c: Likewise.
5096 * graphite.c: Likewise.
5097 * ipa-inline-analysis.c: Likewise.
5098 * ipa-profile.c: Likewise.
5099 * ipa-prop.c: Likewise.
5100 * ipa-pure-const.c: Likewise.
5101 * ipa-split.c: Likewise.
5102 * lto-streamer-in.c: Likewise.
5103 * lto-streamer-out.c: Likewise.
5104 * omp-low.c: Likewise.
5105 * predict.c: Likewise.
5106 * profile.c: Likewise.
5108 * tracer.c: Likewise.
5109 * trans-mem.c: Likewise.
5110 * tree-call-cdce.c: Likewise.
5111 * tree-cfg.c: Likewise.
5112 * tree-cfgcleanup.c: Likewise.
5113 * tree-complex.c: Likewise.
5114 * tree-data-ref.c: Likewise.
5115 * tree-dfa.c: Likewise.
5116 * tree-eh.c: Likewise.
5117 * tree-emutls.c: Likewise.
5118 * tree-if-conv.c: Likewise.
5119 * tree-inline.c: Likewise.
5120 * tree-into-ssa.c: Likewise.
5121 * tree-loop-distribution.c: Likewise.
5122 * tree-nested.c: Likewise.
5123 * tree-nrv.c: Likewise.
5124 * tree-object-size.c: Likewise.
5125 * tree-outof-ssa.c: Likewise.
5126 * tree-parloops.c: Likewise.
5127 * tree-predcom.c: Likewise.
5128 * tree-profile.c: Likewise.
5129 * tree-scalar-evolution.c: Likewise.
5130 * tree-sra.c: Likewise.
5131 * tree-ssa-ccp.c: Likewise.
5132 * tree-ssa-coalesce.c: Likewise.
5133 * tree-ssa-copy.c: Likewise.
5134 * tree-ssa-copyrename.c: Likewise.
5135 * tree-ssa-dce.c: Likewise.
5136 * tree-ssa-dom.c: Likewise.
5137 * tree-ssa-dse.c: Likewise.
5138 * tree-ssa-forwprop.c: Likewise.
5139 * tree-ssa-ifcombine.c: Likewise.
5140 * tree-ssa-live.c: Likewise.
5141 * tree-ssa-loop-ch.c: Likewise.
5142 * tree-ssa-loop-im.c: Likewise.
5143 * tree-ssa-loop-ivcanon.c: Likewise.
5144 * tree-ssa-loop-ivopts.c: Likewise.
5145 * tree-ssa-loop-manip.c: Likewise.
5146 * tree-ssa-loop-niter.c: Likewise.
5147 * tree-ssa-loop-prefetch.c: Likewise.
5148 * tree-ssa-loop.c: Likewise.
5149 * tree-ssa-math-opts.c: Likewise.
5150 * tree-ssa-phiopt.c: Likewise.
5151 * tree-ssa-phiprop.c: Likewise.
5152 * tree-ssa-pre.c: Likewise.
5153 * tree-ssa-propagate.c: Likewise.
5154 * tree-ssa-reassoc.c: Likewise.
5155 * tree-ssa-sink.c: Likewise.
5156 * tree-ssa-strlen.c: Likewise.
5157 * tree-ssa-structalias.c: Likewise.
5158 * tree-ssa-tail-merge.c: Likewise.
5159 * tree-ssa-ter.c: Likewise.
5160 * tree-ssa-threadedge.c: Likewise.
5161 * tree-ssa-threadupdate.c: Likewise.
5162 * tree-ssa-uncprop.c: Likewise.
5163 * tree-ssa-uninit.c: Likewise.
5164 * tree-ssa.c: Likewise.
5165 * tree-stdarg.c: Likewise.
5166 * tree-switch-conversion.c: Likewise.
5167 * tree-tailcall.c: Likewise.
5168 * tree-vect-data-refs.c: Likewise.
5169 * tree-vect-generic.c: Likewise.
5170 * tree-vect-loop-manip.c: Likewise.
5171 * tree-vect-loop.c: Likewise.
5172 * tree-vect-patterns.c: Likewise.
5173 * tree-vect-slp.c: Likewise.
5174 * tree-vect-stmts.c: Likewise.
5175 * tree-vectorizer.c: Likewise.
5176 * tree-vrp.c: Likewise.
5179 * value-prof.c: Likewise.
5180 * vtable-verify.c: Likewise.
5182 2013-11-13 Steven Bosscher <steven@gcc.gnu.org>
5184 * gimple-ssa-isolate-paths.c (pass_isolate_erroneous_paths): Comment
5187 2013-11-13 Jeff Law <law@redhat.com>
5189 * PR middle-end/59119
5190 * gimple-ssa-isolate-paths.c (find_implicit_erroneous_behaviour): New
5191 function, extracted from gimple_ssa_isolate_erroneous_paths.
5192 (find_explicit_erroneous_behaviour): Similarly.
5193 (insert_trap_and_remove_trailing_statements): Remove statements
5196 2013-11-13 Steven Bosscher <steven@gcc.gnu.org>
5198 * cfgrtl.c (can_fallthru): Reorder code to move tablejump check up.
5199 Make that check explicit. BB_HEAD cannot be NULL, remove check for it.
5200 * haifa-sched.c (ready_remove_first_dispatch): Check INSN_P before
5201 looking at INSN_CODE.
5202 * reload1.c (delete_dead_insn) Do not expect JUMP_TABLE_DATA to be an
5203 active_insn_p object, respect basic block boundaries.
5204 * reorg.c (follow_jumps): Use invariant that JUMP_TABLE_DATA always
5205 follows immediately after the jump table data label.
5206 * config/nds32/nds32.c (nds32_output_casesi_pc_relative): Likewise.
5207 * config/sh/sh.c (barrier_align): Likewise. Rearrange code such
5208 that JUMP_TABLE_DATA is not expected to be an active_insn_p object.
5210 2013-11-13 Teresa Johnson <tejohnson@google.com>
5213 * predict.c (drop_profile): Error is currently too strict.
5214 (handle_missing_profiles): Pass call_count to drop_profile.
5216 2013-11-13 Teresa Johnson <tejohnson@google.com>
5219 * ipa-inline.c (edge_badness): Fix overflow.
5221 2013-11-13 Vladimir Makarov <vmakarov@redhat.com>
5223 PR rtl-optimization/59036
5224 * ira-color.c (struct allocno_color_data): Add new members
5225 first_thread_allocno, next_thread_allocno, thread_freq.
5226 (sorted_copies): New static var.
5227 (allocnos_conflict_by_live_ranges_p, copy_freq_compare_func): Move up.
5228 (allocno_thread_conflict_p, merge_threads)
5229 (form_threads_from_copies, form_threads_from_bucket)
5230 (form_threads_from_colorable_allocno, init_allocno_threads): New
5232 (bucket_allocno_compare_func): Add comparison by thread frequency
5234 (add_allocno_to_ordered_bucket): Rename to
5235 add_allocno_to_ordered_colorable_bucket. Remove parameter.
5236 (push_only_colorable): Call form_threads_from_bucket.
5237 (color_pass): Call init_allocno_threads. Use
5238 consideration_allocno_bitmap instead of coloring_allocno_bitmap
5239 for nuillify allocno color data.
5240 (ira_initiate_assign, ira_finish_assign): Allocate/free sorted_copies.
5241 (coalesce_allocnos): Use static sorted copies.
5243 2013-11-13 Jakub Jelinek <jakub@redhat.com>
5245 * passes.c (execute_todo): Don't call do_per_function if
5247 (execute_one_ipa_transform_pass, execute_one_pass): Don't call
5248 execute_function_dump if dump_file is NULL.
5250 2013-11-13 Martin Jambor <mjambor@suse.cz>
5252 * cgraph.c (cgraph_get_create_node): Do what
5253 cgraph_get_create_real_symbol_node used to do.
5254 (cgraph_get_create_real_symbol_node): Removed. Changed all users to
5255 call cgraph_get_create_node.
5256 * cgraph.h (cgraph_get_create_real_symbol_node): Removed.
5257 * lto-streamer-in.c (input_function): Call cgraph_get_node instead of
5258 cgraph_get_create_node. Assert we get a node.
5260 2013-11-13 Tejas Belagod <tejas.belagod@arm.com>
5262 * config/aarch64/aarch64-simd.md (vec_extract): New.
5264 2013-11-13 Tejas Belagod <tejas.belagod@arm.com>
5266 * config/aarch64/aarch64-simd.md (vec_set<mode>): Add w -> w option to
5269 2013-11-13 Eric Botcazou <ebotcazou@adacore.com>
5271 * cfgexpand.c (expand_used_vars): Allocate space for partitions based
5272 on PARM_DECLs or RESULT_DECLs only if they are ignored for debug info
5273 or if optimization is enabled.
5274 * tree-ssa-coalesce.c (coalesce_ssa_name): If optimization is disabled,
5275 require that all the names based on a PARM_DECL or a RESULT_DECL that
5276 isn't ignored for debug info be coalesced.
5278 2013-11-13 Jan-Benedict Glaw <jbglaw@lug-owl.de>
5280 * config/c6x/c6x.c: Include "gimple-expr.h".
5282 2013-11-13 Richard Biener <rguenther@suse.de>
5284 * gimple-streamer-out.c (output_gimple_stmt): Also wrap
5285 decls in ADDR_EXPR operands inside a MEM_REF and optimize that.
5286 * gimple-streamer-in.c (input_gimple_stmt): Remove now dead code
5287 dealing with type mismatches inside component reference chains.
5289 2013-11-13 Marc Glisse <marc.glisse@inria.fr>
5291 PR tree-optimization/59077
5292 * ipa-pure-const.c (better_state): Update *state.
5294 2013-11-13 Christophe Lyon <christophe.lyon@linaro.org>
5296 * config/aarch64/aarch64.h (FRAME_GROWS_DOWNWARD): Define to 1.
5297 * config/aarch64/aarch64.c (aarch64_initial_elimination_offset):
5298 Update offset calculations.
5300 2013-11-13 Eric Botcazou <ebotcazou@adacore.com>
5303 * dwarf2out.c (add_byte_size_attribute): Also use int_size_in_bytes
5304 for fields. Do not add the attribute if the size is negative.
5306 2013-11-13 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
5308 * config/arm/arm.c: Include aarch-cost-tables.h.
5309 (generic_extra_costs): Move from here...
5310 * config/arm/aarch-cost-tables.h: ... To here. New file.
5312 2013-11-13 Alexander Ivchenko <alexander.ivchenko@intel.com>
5313 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
5314 Sergey Lega <sergey.s.lega@intel.com>
5315 Anna Tikhonova <anna.tikhonova@intel.com>
5316 Ilya Tocar <ilya.tocar@intel.com>
5317 Andrey Turetskiy <andrey.turetskiy@intel.com>
5318 Ilya Verbin <ilya.verbin@intel.com>
5319 Kirill Yukhin <kirill.yukhin@intel.com>
5320 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
5322 * config/i386/i386.c (ix86_print_operand): Support z-masking.
5323 * config/i386/predicate.md (const_0_to_4_operand): New.
5324 (const_0_to_5_operand): Ditto.
5325 * config/i386/sse.md (UNSPEC_COMPRESS): New.
5326 (UNSPEC_COMPRESS_STORE): Ditto.
5327 (UNSPEC_EXPAND): Ditto.
5328 (UNSPEC_EMBEDDED_ROUNDING): Ditto.
5329 (define_mode_attr ssescalarsize): Ditto.
5330 (avx512f_load<mode>_mask): Ditto.
5331 (avx512f_store<mode>_mask): Ditto.
5332 (avx512f_storedqu<mode>_mask): Ditto.
5333 (avx512f_vmcmp<mode>3_mask): Ditto.
5334 (avx512f_fmadd_<mode>_mask): Ditto.
5335 (avx512f_fmadd_<mode>_mask3): Ditto.
5336 (avx512f_fmsub_<mode>_mask): Ditto.
5337 (avx512f_fmsub_<mode>_mask3): Ditto.
5338 (avx512f_fnmadd_<mode>_mask): Ditto.
5339 (avx512f_fnmadd_<mode>_mask3): Ditto.
5340 (avx512f_fnmsub_<mode>_mask): Ditto.
5341 (avx512f_fnmsub_<mode>_mask3): Ditto.
5342 (avx512f_fmaddsub_<mode>_mask): Ditto.
5343 (avx512f_fmaddsub_<mode>_mask3): Ditto.
5344 (avx512f_fmsubadd_<mode>_mask): Ditto.
5345 (avx512f_fmsubadd_<mode>_mask3): Ditto.
5346 (vec_unpacku_float_lo_v16si): Ditto.
5347 (avx512f_vextract<shuffletype>32x4_mask): Ditto.
5348 (avx512f_vextract<shuffletype>32x4_1_maskm): Ditto.
5349 (avx512f_vextract<shuffletype>64x4_mask): Ditto.
5350 (vec_extract_lo_<mode>_maskm): Ditto.
5351 (vec_extract_hi_<mode>_maskm): Ditto.
5352 (avx512f_vternlog<mode>_mask): Ditto.
5353 (avx512f_shufps512_mask): Ditto.
5354 (avx512f_fixupimm<mode>_mask): Ditto.
5355 (avx512f_shufpd512_mask): Ditto.
5356 (avx512f_<code><pmov_src_lower><mode>2_mask): Ditto.
5357 (avx512f_<code>v8div16qi2_mask/trunc): Ditto.
5358 (*avx512f_<code>v8div16qi2_store_mask): Ditto.
5359 (ashr<mode>3<mask_name>): Ditto.
5360 (avx512f_vinsert<shuffletype>32x4_mask): Ditto.
5361 (avx512f_vinsert<shuffletype>64x4_mask): Ditto.
5362 (avx512f_shuf_<shuffletype>64x2_mask): Ditto.
5363 (avx512f_shuf_<shuffletype>32x4_mask): Ditto.
5364 (avx512f_pshufdv3_mask): Ditto.
5365 (avx512f_perm<mode>_mask): Ditto.
5366 (avx512f_vpermi2var<mode>3_mask): Ditto.
5367 (avx512f_vpermt2var<mode>3_mask): Ditto.
5368 (avx512f_compress<mode>_mask): Ditto.
5369 (avx512f_compressstore<mode>_mask): Ditto.
5370 (avx512f_expand<mode>_mask): Ditto.
5371 (<sse>_loadu<ssemodesuffix><avxsizesuffix><mask_name>): Extend
5373 (avx512f_storeu<ssemodesuffix>512_mask): Ditto.
5374 (<plusminus_insn><mode>3<mask_name>): Ditto.
5375 (*<plusminus_insn><mode>3<mask_name>): Ditto.
5376 (mul<mode>3<mask_name>): Ditto.
5377 (*mul<mode>3<mask_name>): Ditto.
5378 (<sse>_div<mode>3<mask_name>): Ditto.
5379 (<mask_codefor>rcp14<mode><mask_name>): Ditto.
5380 (<sse>_sqrt<mode>2<mask_name>): Ditto.
5381 (<mask_codefor>rsqrt14<mode><mask_name>): Ditto.
5382 (<code><mode>3<mask_name>/smaxmin): Ditto.
5383 (*<code><mode>3_finite<mask_name>/smaxmin): Ditto.
5384 (*<code><mode>3<mask_name>/smaxmin): Ditto.
5385 (float<sseintvecmodelower><mode>2<mask_name>): Ditto.
5386 (ufloatv16siv16sf2<mask_name>): Ditto.
5387 (<mask_codefor>avx512f_fix_notruncv16sfv16si<mask_name>): Ditto.
5388 (<mask_codefor>avx512f_ufix_notruncv16sfv16si<mask_name>): Ditto.
5389 (<fixsuffix>fix_truncv16sfv16si2<mask_name>): Ditto.
5390 (float<si2dfmodelower><mode>2<mask_name>): Ditto.
5391 (ufloatv8siv8df<mask_name>): Ditto.
5392 (<mask_codefor>avx512f_cvtpd2dq512<mask_name>): Ditto.
5393 (avx512f_ufix_notruncv8dfv8si<mask_name>): Ditto.
5394 (<fixsuffix>fix_truncv8dfv8si2<mask_name>): Ditto.
5395 (<mask_codefor>avx512f_cvtpd2ps512<mask_name>): Ditto.
5396 (<sse2_avx_avx512f>_cvtps2pd<avxsizesuffix><mask_name>): Ditto.
5397 (<mask_codefor>avx512f_unpckhps512<mask_name>): Ditto.
5398 (<mask_codefor>avx512f_unpcklps512<mask_name>): Ditto.
5399 (<mask_codefor>avx512f_movshdup512<mask_name>): Ditto.
5400 (<mask_codefor>avx512f_movsldup512<mask_name>): Ditto.
5401 (<mask_codefor>avx512f_vextract<shuffletype>32x4_1<mask_name>): Ditto.
5402 (vec_extract_lo_<mode><mask_name>): Ditto.
5403 (vec_extract_hi_<mode><mask_name>): Ditto.
5404 (<mask_codefor>avx512f_unpckhpd512<mask_name>): Ditto.
5405 (avx512f_movddup512<mask_name>): Ditto.
5406 (avx512f_unpcklpd512<mask_name>): Ditto.
5407 (*avx512f_unpcklpd512<mask_name>): Ditto.
5408 (*avx512f_vmscalef<mode>): Ditto.
5409 (avx512f_scalef<mode><mask_name>): Ditto.
5410 (avx512f_getexp<mode><mask_name>): Ditto.
5411 (<mask_codefor>avx512f_align<mode><mask_name>): Ditto.
5412 (avx512f_rndscale<mode><mask_name>): Ditto.
5413 (avx512f_shufps512_1<mask_name>): Ditto.
5414 (avx512f_shufpd512_1<mask_name>): Ditto.
5415 (<plusminus_insn><mode>3<mask_name>): Ditto.
5416 (*<plusminus_insn><mode>3<mask_name>): Ditto.
5417 (vec_widen_umult_even_v16si<mask_name>): Ditto.
5418 (*vec_widen_umult_even_v16si<mask_name>): Ditto.
5419 (vec_widen_smult_even_v16si<mask_name>): Ditto.
5420 (*vec_widen_smult_even_v16si<mask_name>): Ditto.
5421 (mul<mode>3<mask_name>): Ditto.
5422 (*<sse4_1_avx2>_mul<mode>3<mask_name>): Ditto.
5423 (<shift_insn><mode>3<mask_name>): Ditto.
5424 (avx512f_<rotate>v<mode><mask_name>/rotate): Ditto.
5425 (avx512f_<rotate><mode><mask_name>): Ditto.
5426 (<code><mode>3<mask_name>/maxmin): Ditto.
5427 (*avx2_<code><mode>3<mask_name>/maxmin): Ditto.
5428 (<sse2_avx2>_andnot<mode>3<mask_name>): Ditto.
5429 (*andnot<mode>3<mask_name>): Ditto.
5430 (<mask_codefor><code><mode>3<mask_name>/any_logic): Ditto.
5431 (<mask_codefor>avx512f_interleave_highv16si<mask_name>): Ditto.
5432 (<mask_codefor>avx512f_interleave_lowv16si<mask_name>): Ditto.
5433 (<mask_codefor>avx512f_vinsert<shuffletype>32x4_1<mask_name>): Ditto.
5434 (vec_set_lo_<mode><mask_name>): Ditto.
5435 (vec_set_hi_<mode><mask_name>): Ditto.
5436 (avx512f_shuf_<shuffletype>64x2_1<mask_name>): Ditto.
5437 (avx512f_shuf_<shuffletype>32x4_1<mask_name>): Ditto.
5438 (avx512f_pshufd_1<mask_name>): Ditto.
5439 (<mask_codefor>abs<mode>2<mask_name>): Ditto.
5440 (<mask_codefor>avx512f_<code>v16qiv16si2<mask_name>): Ditto.
5441 (avx512f_<code>v16hiv16si2<mask_name>/any_extend): Ditto.
5442 (avx512f_<code>v8qiv8di2<mask_name>/any_extend): Ditto.
5443 (avx512f_<code>v8hiv8di2<mask_name>/any_extend): Ditto.
5444 (avx512f_<code>v8siv8di2<mask_name>/any_extend): Ditto.
5445 (avx512er_exp2<mode><mask_name>): Ditto.
5446 (<mask_codefor>avx512er_rcp28<mode><mask_name>): Ditto.
5447 (<mask_codefor>avx512er_rsqrt28<mode><mask_name>): Ditto.
5448 (<avx2_avx512f>_permvar<mode><mask_name>): Ditto.
5449 (<avx2_avx512f>_perm<mode>_1<mask_name>): Ditto.
5450 (<mask_codefor>avx512f_vec_dup<mode><mask_name>): Ditto.
5451 (<mask_codefor>avx512f_broadcast<mode><mask_name>/V16FI): Ditto.
5452 (<mask_codefor>avx512f_broadcast<mode><mask_name>/V8FI): Ditto.
5453 (<mask_codefor>avx512f_vec_dup_gpr<mode><mask_name>): Ditto.
5454 (<mask_codefor>avx512f_vec_dup_mem<mode><mask_name>): Ditto.
5455 (<sse2_avx_avx512f>_vpermil<mode><mask_name>/VF2): Ditto.
5456 (<sse2_avx_avx512f>_vpermil<mode><mask_name>/VF1): Ditto.
5457 (*<sse2_avx_avx512f>_vpermilp<mode><mask_name>): Ditto.
5458 (<sse2_avx_avx512f>_vpermilvar<mode>3<mask_name>): Ditto.
5459 (<avx2_avx512f>_ashrv<mode><mask_name>): Ditto.
5460 (<avx2_avx512f>_<shift_insn>v<mode><mask_name>): Ditto.
5461 (<mask_codefor>avx512f_vcvtph2ps512<mask_name>): Ditto.
5462 (<mask_codefor>avx512f_vcvtps2ph512<mask_name>): Ditto.
5463 (avx512f_getmant<mode><mask_name>): Ditto.
5464 (clz<mode>2<mask_name>): Ditto.
5465 (<mask_codefor>conflict<mode><mask_name>): Ditto.
5466 (*srcp14<mode>): Remove visibility.
5467 (*rsqrt14<mode>): Ditto.
5468 (*fma_fmsub_<mode>): Ditto.
5469 (*fma_fnmadd_<mode>): Ditto.
5470 (*avx512f_rndscale<mode>): Ditto.
5471 * config/i386/subst.md: New file.
5473 2013-11-13 Joseph Myers <joseph@codesourcery.com>
5475 * doc/extend.texi (Statement Exprs, Typeof): Discuss __auto_type.
5476 * ginclude/stdatomic.h (kill_dependency, atomic_store_explicit)
5477 (atomic_load_explicit, atomic_exchange_explicit)
5478 (atomic_compare_exchange_strong_explicit)
5479 (atomic_compare_exchange_weak_explicit): Use __auto_type to
5480 declare variable initialized with PTR argument.
5482 2013-11-12 Jeff Law <law@redhat.com>
5484 * tree-ssa-threadedge.c (thread_around_empty_blocks): New argument
5485 backedge_seen_p. Set, use and pass it to children appropriately.
5486 (thread_through_normal_block): Similarly.
5487 (thread_across_edge): Similarly.
5489 * gimple-ssa-isolate-paths.c (check_loadstore): Mark discovered
5490 memory references as volatile.
5491 (insert_trap_and_remove_trailing_statements): Fix comment.
5493 2013-11-12 Vladimir Makarov <vmakarov@redhat.com>
5496 * ira-costs.c (record_operand_costs): Check operands number for
5499 2013-11-12 Michael Meissner <meissner@linux.vnet.ibm.com>
5502 * config/rs6000/rs6000.md (movdi_internal32): Eliminate
5503 constraints that would allow DImode into the traditional Altivec
5504 registers, but cause undesirable code generation when loading 0 as
5506 (movdi_internal64): Likewise.
5507 (cmp<mode>_fpr): Do not use %x for CR register output.
5508 (extendsfdf2_fpr): Fix constraints when -mallow-upper-df and
5509 -mallow-upper-sf debug switches are used.
5511 2013-11-12 Andrew MacLeod <amacleod@redhat.com>
5513 * gimple-expr.h (create_tmp_var_name, create_tmp_var_raw,
5514 create_tmp_var, create_tmp_reg, mark_addressable, is_gimple_reg_rhs):
5515 Relocate prototypes from gimple.h.
5516 * gimplify.h: New File. Relocate some prototypes from gimple.h here.
5517 (gimple_predicate, enum fallback, enum gimplify_status): Relocate
5519 * gimple.h: Move some prototypes to gimplify.h.
5520 (gimple_predicate, enum fallback, enum gimplify_status): Move to
5522 (gimple_do_not_emit_location_p, gimple_set_do_not_emit_location):
5523 Relocate from gimpify.c.
5524 * gimple-expr.c (remove_suffix, tmp_var_id_num, create_tmp_var_name,
5525 create_tmp_var_raw, create_tmp_var, create_tmp_reg, mark_addressable,
5526 is_gimple_reg_rhs) Relocate from gimplify.c.
5527 * gimplify.c (mark_addressable): Move to gimple-expr.c.
5528 (gimple_seq_add_stmt_without_update): Move to gimple.c.
5529 (remove_suffix, tmp_var_id_num, create_tmp_var_name,
5530 create_tmp_var_raw, create_tmp_var, create_tmp_reg,
5531 is_gimple_reg_rhs): Move to gimple-expr.c.
5532 (should_carry_location_p): Move to gimple.c.
5533 (gimple_do_not_emit_location_p, gimple_set_do_not_emit_location): Move
5535 (annotate_one_with_location, annotate_all_with_location_after,
5536 annotate_all_with_location): Move to gimple.c.
5537 (compare_case_labels, sort_case_labels,
5538 preprocess_case_label_vec_for_gimple): Move to gimple.c.
5539 (rhs_predicate_for): Make static.
5540 (gimplify_assign): Relocate from gimple.c.
5541 * gimple.c (gimplify_assign): Move to gimplify.c.
5542 (gimple_seq_add_stmt_without_update, should_carry_location_p,
5543 annotate_one_with_location, annotate_all_with_location_after,
5544 annotate_all_with_location, compare_case_labels, sort_case_labels,
5545 preprocess_case_label_vec_for_gimple): Relocate from gimplify.c.
5546 * tree.h (unshare_expr, unshare_expr_without_location,
5547 mark_addressable): Move prototypes to gimplify.h.
5548 * Makefile.in (GTFILES): gimple-expr.c now has the GTY tag for
5550 * asan.c: Include gimplify.h rather than gimple.h.
5551 * cfgloopmanip.c: Likewise.
5552 * cgraphunit.c: Likewise.
5553 * cilk-common.c: Likewise.
5554 * dwarf2out.c: Dont include gimple.h.
5555 * fold-const.c: Include gimplify.h rather than gimple.h.
5556 * function.c: Likewise.
5557 * gimple-fold.c: Likewise.
5558 * gimple-ssa-strength-reduction.c: Likewise.
5559 * graphite-clast-to-gimple.c: Likewise.
5560 * graphite-sese-to-poly.c: Likewise.
5561 * ipa-prop.c: Likewise.
5562 * ipa-split.c: Likewise.
5564 * langhooks.c: Dont include gimple.h.
5565 * loop-init.c: Include gimplify.h rather than gimple.h.
5566 * omp-low.c: Likewise.
5568 * stor-layout.c: Likewise.
5569 * targhooks.c: Likewise.
5570 * trans-mem.c: Likewise.
5571 * tree-affine.c: Likewise.
5572 * tree-cfg.c: Likewise.
5573 * tree-cfgcleanup.c: Likewise.
5574 * tree-complex.c: Likewise.
5575 * tree-if-conv.c: Likewise.
5576 * tree-inline.c: Likewise.
5577 * tree-iterator.c: Likewise.
5578 * tree-loop-distribution.c: Likewise.
5579 * tree-nested.c: Likewise.
5580 * tree-parloops.c: Likewise.
5581 * tree-predcom.c: Likewise.
5582 * tree-profile.c: Likewise.
5583 * tree-scalar-evolution.c: Likewise.
5584 * tree-sra.c: Likewise.
5585 * tree-ssa-address.c: Likewise.
5586 * tree-ssa-ccp.c: Likewise.
5587 * tree-ssa-dce.c: Likewise.
5588 * tree-ssa-forwprop.c: Likewise.
5589 * tree-ssa-ifcombine.c: Likewise.
5590 * tree-ssa-loop-im.c: Likewise.
5591 * tree-ssa-loop-ivopts.c: Likewise.
5592 * tree-ssa-loop-manip.c: Likewise.
5593 * tree-ssa-loop-niter.c: Likewise.
5594 * tree-ssa-loop-prefetch.c: Likewise.
5595 * tree-ssa-loop-unswitch.c: Likewise.
5596 * tree-ssa-math-opts.c: Likewise.
5597 * tree-ssa-phiopt.c: Likewise.
5598 * tree-ssa-phiprop.c: Likewise.
5599 * tree-ssa-pre.c: Likewise.
5600 * tree-ssa-propagate.c: Likewise.
5601 * tree-ssa-reassoc.c: Likewise.
5602 * tree-ssa-sccvn.c: Likewise.
5603 * tree-ssa-strlen.c: Likewise.
5604 * tree-ssa.c: Likewise.
5605 * tree-switch-conversio: Likewise.n.c
5606 * tree-tailcall.c: Likewise.
5607 * tree-vect-data-refs.c: Likewise.
5608 * tree-vect-generic.c: Likewise.
5609 * tree-vect-loop-manip.c: Likewise.
5610 * tree-vect-loop.c: Likewise.
5611 * tree-vect-patterns.c: Likewise.
5612 * tree-vect-stmts.c: Likewise.
5614 * value-prof.c: Likewise.
5615 * config/aarch64/aarch64.c: Include gimplify.h instead of gimple.h.
5616 * config/alpha/alpha.c: Likewise.
5617 * config/darwin.c: Likewise.
5618 * config/i386/i386.c: Likewise.
5619 * config/ia64/ia64.c: Likewise.
5620 * config/mep/mep.c: Likewise.
5621 * config/mips/mips.c: Likewise.
5622 * config/rs6000/rs6000.c: Likewise.
5623 * config/s390/s390.c: Likewise.
5624 * config/sh/sh.c: Likewise.
5625 * config/sparc/sparc.c: Likewise.
5626 * config/spu/spu.c: Likewise.
5627 * config/stormy16/stormy16.c: Likewise.
5628 * config/tilegx/tilegx.c: Likewise.
5629 * config/tilepro/tilepro.c: Likewise.
5630 * config/xtensa/xtensa.c: Likewise.
5632 2013-11-12 Adam Butcher <adam@jessamine.co.uk>
5634 * tree.c (grow_tree_vec_stat): New function ...
5635 * tree.h (grow_tree_vec_stat) (grow_tree_vec): ... and its declaration
5636 and macro front-end.
5638 2013-11-12 Marek Polacek <polacek@redhat.com>
5640 * final.c (update_alignments): Initialize label to NULL_RTX.
5642 2013-11-12 Jeff Law <law@redhat.com>
5644 * gimple-ssa-isolate-paths.c (check_loadstore): New function.
5645 (insert_trap_and_remove_trailing_statements): New argument OP which
5646 is the NULL pointer. Emit the trap after the load/store through
5647 the NULL pointer. Simplify the RHS of a store through a NULL pointer
5648 when trivial to do so.
5649 (isolate_path): Corresponding changes.
5650 (gimple_ssa_isolate_erroneous_path): Likewise.
5652 2013-11-12 Teresa Johnson <tejohnson@google.com>
5653 Jan Hubicka <jh@suse.cz>
5655 * predict.c (drop_profile): New function.
5656 (handle_missing_profiles): Ditto.
5657 (counts_to_freqs): Don't overwrite estimated frequencies
5658 when function has no profile counts.
5659 * predict.h (handle_missing_profiles): Declare.
5660 * tree-inline.c (freqs_to_counts): New function.
5661 (copy_cfg_body): Invoke freqs_to_counts as needed.
5662 * tree-profile.c (tree_profiling): Invoke handle_missing_profiles.
5664 2013-11-12 H.J. Lu <hongjiu.lu@intel.com>
5667 * config/i386/x86-tune.def (X86_TUNE_SSE_UNALIGNED_LOAD_OPTIMAL):
5669 (X86_TUNE_SSE_UNALIGNED_STORE_OPTIMAL): Set for m_HASWELL.
5671 2013-11-12 H.J. Lu <hongjiu.lu@intel.com>
5674 * config/i386/i386.c (ix86_option_override_internal): Check
5675 X86_TUNE_AVX256_UNALIGNED_LOAD_OPTIMAL and
5676 X86_TUNE_AVX256_UNALIGNED_STORE_OPTIMAL for
5677 MASK_AVX256_SPLIT_UNALIGNED_LOAD and
5678 MASK_AVX256_SPLIT_UNALIGNED_STORE.
5680 * config/i386/x86-tune.def (X86_TUNE_AVX256_UNALIGNED_LOAD_OPTIMAL):
5681 Clear m_COREI7_AVX and update comments.
5682 (X86_TUNE_AVX256_UNALIGNED_STORE_OPTIMAL): Likewise.
5684 2013-11-12 Martin Jambor <mjambor@suse.cz>
5686 PR rtl-optimization/10474
5687 * ira.c (interesting_dest_for_shprep): New function.
5688 (split_live_ranges_for_shrink_wrap): Likewise.
5689 (find_moveable_pseudos): Move calculation of dominance info,
5690 df_analysios and the final anlyses to...
5691 (ira): ...here, call split_live_ranges_for_shrink_wrap.
5693 2013-11-12 Bin Cheng <bin.cheng@arm.com>
5695 * tree-ssa-loop-ivopts.c (force_expr_to_var_cost): Refactor the code.
5696 Handle type conversion.
5698 2013-11-11 Martin Liska <marxin.liska@gmail.com>
5699 Jan Hubicka <jh@suse.cz>
5701 * cgraph.c (dump_cgraph_node): Profile dump added.
5702 * cgraph.h (struct cgraph_node): New time profile variable added.
5703 * cgraphclones.c (cgraph_clone_node): Time profile is cloned.
5704 * gcov-io.h (gcov_type): New profiler type introduced.
5705 * ipa-profile.c (lto_output_node): Streaming for time profile added.
5706 (input_node): Time profiler is read from LTO stream.
5707 * predict.c (maybe_hot_count_p): Hot prediction changed.
5708 * profile.c (instrument_values): New case for time profiler added.
5709 (compute_value_histograms): Read of time profile.
5710 * tree-pretty-print.c (dump_function_header): Time profiler is dumped.
5711 * tree-profile.c (init_ic_make_global_vars): Time profiler
5713 (gimple_init_edge_profiler): TP function instrumentation.
5714 (gimple_gen_time_profiler): New.
5715 * value-prof.c (gimple_add_histogram_value): Support for time profiler
5717 (dump_histogram_value): TP type added to dumps.
5718 (visit_hist): More sensitive check that takes TP into account.
5719 (gimple_find_values_to_profile): TP instrumentation.
5720 * value-prof.h (hist_type): New histogram type added.
5721 (struct histogram_value_t): Pointer to struct function added.
5722 * libgcc/Makefile.in: New GCOV merge function for TP added.
5723 * libgcov.c: function_counter variable introduced.
5724 (_gcov_merge_time_profile): New.
5725 (_gcov_time_profiler): New.
5727 2013-11-11 Marc Glisse <marc.glisse@inria.fr>
5728 Jeff Law <law@redhat.com>
5730 * tree-ssa-alias.c (stmt_kills_ref_p_1): Use
5731 ao_ref_init_from_ptr_and_size for builtins.
5733 2013-11-11 Uros Bizjak <ubizjak@gmail.com>
5734 H.J. Lu <hongjiu.lu@intel.com>
5737 * config/i386/x86-tune.def
5738 (X86_TUNE_MISALIGNED_MOVE_STRING_PRO_EPILOGUES): Rename from
5739 TARGET_MISALIGNED_MOVE_STRING_PROLOGUES.
5740 * config/i386/i386.h
5741 (TARGET_MISALIGNED_MOVE_STRING_PRO_EPILOGUES): Rename from
5742 TARGET_MISALIGNED_MOVE_STRING_PROLOGUES_EPILOGUES. Update for renamed
5743 X86_TUNE_MISALIGNED_MOVE_STRING_PRO_EPILOGUES.
5744 * config/i386/i386.c (ix86_expand_set_or_movmem): Use
5745 TARGET_MISALIGNED_MOVE_STRING_PRO_EPILOGUES to calculate
5746 misaligned_prologue_used. Check that
5747 desired_aling <= epilogue_size_needed.
5749 2013-11-11 Cong Hou <congh@google.com>
5751 PR tree-optimization/59050
5752 * tree-vect-data-refs.c (comp_dr_addr_with_seg_len_pair): Bug fix.
5754 2013-11-11 Joern Rennecke <joern.rennecke@embecosm.com>
5757 * expmed.c (emit_store_flag): Fail for const-const comparison.
5759 2013-11-11 Tristan Gingold <gingold@adacore.com>
5760 Eric Botcazou <ebotcazou@adacore.com>
5762 * tree.h (CONSTRUCTOR_NO_CLEARING): Define.
5763 * tree-core.h (CONSTRUCTOR_NO_CLEARING): Document it.
5764 * tree.def (CONSTRUCTOR): Likewise.
5765 * doc/generic.texi (CONSTRUCTOR): Likewise. Update description.
5766 * gimplify.c (gimplify_init_constructor): Do not clear the object when
5767 the constructor is incomplete and CONSTRUCTOR_NO_CLEARING is set.
5769 2013-11-11 Basile Starynkevitch <basile@starynkevitch.net>
5771 * toplev.c (toplev_main): Move PLUGIN_FINISH invocation before
5774 2013-11-11 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
5776 * config/arm/arm.c (arm_new_rtx_costs): Return after handling
5779 2013-11-11 Joern Rennecke <joern.rennecke@embecosm.com>
5781 * config/arc/arc.h (LOGICAL_OP_NON_SHORT_CIRCUIT): Define.
5783 2013-11-08 Jeff Law <law@redhat.com>
5785 * tree-ssa-threadupdate.c (mark_threaded_blocks): Truncate jump
5786 threading paths first, then perform PHI node checks if applicable.
5788 2013-11-10 Karlson2k <k2k@narod.ru>
5789 Kai Tietz <ktietz@redhat.com>
5792 * configure.ac: Adding for exported symbols check
5793 and for rdynamic-check executable-extension.
5794 * configure: Regenerated.
5796 2013-11-10 Uros Bizjak <ubizjak@gmail.com>
5798 * mode-switching.c (optimize_mode_switching): Mark block as
5799 nontransparent, if last_mode at block exit is different from no_mode.
5801 2013-11-09 Jan-Benedict Glaw <jbglaw@lug-owl.de>
5803 * function.c (NAME__MAIN): Move to...
5804 * cfgexpand.c (NAME__MAIN): ...here.
5806 2013-11-09 Richard Sandiford <rdsandiford@googlemail.com>
5808 * target.def (can_use_doloop_p): New hook.
5809 * doc/tm.texi.in (TARGET_CAN_USE_DOLOOP_P): Add.
5810 * doc/tm.texi: Regenerate.
5811 * doc/md.texi (doloop_begin, doloop_end): Update documentation.
5812 * hooks.h (hook_bool_dint_dint_uint_true): Declare.
5813 * hooks.c (hook_bool_dint_dint_uint_true): New function.
5814 * targhooks.h (can_use_doloop_if_innermost): Declare.
5815 * targhooks.c (can_use_doloop_if_innermost): New function.
5816 * target.h: Include double-int.h.
5817 * loop-doloop.c (doloop_optimize): Call targetm.can_use_doloop_p.
5818 Remove iteration count, maximum iteration count, loop depth and
5819 enter-at-top inputs from doloop_begin and doloop_end.
5820 * config/arc/arc.md (doloop_begin, doloop_end): Update for new
5822 * config/arc/arc.c (arc_can_use_doloop_p): New function.
5823 (TARGET_CAN_USE_DOLOOP_P): Define.
5824 * config/arm/thumb2.md (doloop_end): Update for new interface.
5825 * config/arm/arm.c (TARGET_CAN_USE_DOLOOP_P): Define.
5826 * config/bfin/bfin.md (doloop_end): Update for new interface.
5827 * config/bfin/bfin.c (bfin_can_use_doloop_p): New function.
5828 (TARGET_CAN_USE_DOLOOP_P): Define.
5829 * config/c6x/c6x.md (doloop_end): Update for new interface.
5830 * config/ia64/ia64.md (doloop_end): Update for new interface.
5831 * config/ia64/ia64.c (TARGET_CAN_USE_DOLOOP_P): Define.
5832 * config/mep/mep.md (doloop_begin, doloop_end): Update for new
5834 * config/mep/mep.c (mep_emit_doloop): Likewise.
5835 (TARGET_CAN_USE_DOLOOP_P): Define.
5836 * config/rs6000/rs6000.md (doloop_end): Update for new interface.
5837 * config/rs6000/rs6000.c (TARGET_CAN_USE_DOLOOP_P): Define.
5838 * config/s390/s390.md (doloop_end): Update for new interface.
5839 * config/sh/sh.md (doloop_end): Likewise.
5840 * config/spu/spu.md (doloop_end): Likewise.
5841 * config/spu/spu.c (TARGET_CAN_USE_DOLOOP_P): Define.
5842 * config/tilegx/tilegx.md (doloop_end): Update for new interface.
5843 * config/tilegx/tilegx.c (TARGET_CAN_USE_DOLOOP_P): Define.
5844 * config/tilepro/tilepro.md (doloop_end): Update for new interface.
5845 * config/tilepro/tilepro.c (TARGET_CAN_USE_DOLOOP_P): Define.
5846 * config/v850/v850.md (doloop_begin, doloop_end): Update for new
5848 * config/v850/v850.c (TARGET_CAN_USE_DOLOOP_P): Define.
5850 2013-11-08 H.J. Lu <hongjiu.lu@intel.com>
5853 * doc/extend.texi: Move Cilk Plus Builtins node before Other
5856 2013-11-08 Andrew MacLeod <amacleod@redhat.com>
5857 Joseph Myers <joseph@codesourcery.com>
5859 * ginclude/stdatomic.h: New file.
5860 * Makefile.in (USER_H): Add stdatomic.h.
5862 2013-11-08 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
5864 * config/arm/arm.c (arm_new_rtx_costs): Break after handling
5867 2013-11-08 Jeff Law <law@redhat.com>
5869 * tree-ssa-threadupdate.h (delete_thread_path): Declare.
5870 * tree-ssa-threadupdate.c (delete_thread_path): New function.
5871 (ssa_redirect_edges, thread_block_1): Use it.
5872 (thread_through_loop_header, mark_threaded_blocks): Likewise.
5873 (thread_through_all_blocks, register_jump_thread): Likewise.
5874 * tree-ssa-threadedge.c (thread_across_edge): Likewise.
5876 2013-11-08 James Greenhalgh <james.greenhalgh@arm.com>
5878 * config/arm/aarch-common.c
5879 (search_term): New typedef.
5880 (shift_rtx_costs): New array.
5881 (arm_rtx_shift_left_p): New.
5882 (arm_find_sub_rtx_with_search_term): Likewise.
5883 (arm_find_sub_rtx_with_code): Likewise.
5884 (arm_early_load_addr_dep): Add sanity checking.
5885 (arm_no_early_alu_shift_dep): Likewise.
5886 (arm_no_early_alu_shift_value_dep): Likewise.
5887 (arm_no_early_mul_dep): Likewise.
5888 (arm_no_early_store_addr_dep): Likewise.
5890 2013-11-08 Richard Biener <rguenther@suse.de>
5892 PR tree-optimization/59047
5893 * tree-predcom.c (ref_at_iteration): Handle bitfield accesses properly.
5895 2013-11-08 Ilya Enkovich <ilya.enkovich@intel.com>
5897 * common.opt (fcheck-pointer-bounds): Move to ...
5898 * c-family/c.opt: ... here.
5899 * langhooks-def.h (LANG_HOOKS_CHKP_SUPPORTED): Remove.
5900 (LANG_HOOKS_INITIALIZER): Remove LANG_HOOKS_CHKP_SUPPORTED.
5901 * langhooks.h (lang_hooks): Remove chkp_supported field.
5902 * toplev.c (process_options): Remove chkp_supported check.
5904 2013-11-08 Richard Biener <rguenther@suse.de>
5906 PR tree-optimization/59038
5907 PR tree-optimization/58955
5908 * tree-loop-distribution.c (pg_add_dependence_edges): Revert
5909 previous change. Handle known dependences correctly.
5911 2013-11-08 Tom de Vries <tom@codesourcery.com>
5913 * config/rs6000/t-xilinx: Remove duplicate contents.
5915 2013-11-07 Andrew MacLeod <amacleod@redhat.com>
5916 Joseph Myers <joseph@codesourcery.com>
5918 * tree-core.h (enum cv_qualifier): Add TYPE_QUAL_ATOMIC.
5919 (enum tree_index): Add TI_ATOMICQI_TYPE, TI_ATOMICHI_TYPE,
5920 TI_ATOMICSI_TYPE, TI_ATOMICDI_TYPE and TI_ATOMICTI_TYPE.
5921 (struct tree_base): Add atomic_flag field.
5922 * tree.h (TYPE_ATOMIC): New accessor macro.
5923 (TYPE_QUALS, TYPE_QUALS_NO_ADDR_SPACE): Add TYPE_QUAL_ATOMIC.
5924 (TYPE_QUALS_NO_ADDR_SPACE_NO_ATOMIC): New macro.
5925 (atomicQI_type_node, atomicHI_type_node, atomicSI_type_node)
5926 (atomicDI_type_node, atomicTI_type_node): New macros for type nodes.
5927 * tree.c (set_type_quals): Set TYPE_ATOMIC.
5928 (find_atomic_core_type): New function.
5929 (build_qualified_type): Adjust alignment for qualified types.
5930 (build_atomic_base): New function
5931 (build_common_tree_nodes): Build atomicQI_type_node,
5932 atomicHI_type_node, atomicSI_type_node, atomicDI_type_node and
5934 * print-tree.c (print_node): Print atomic qualifier.
5935 * tree-pretty-print.c (dump_generic_node): Print atomic type attribute.
5936 * target.def (atomic_assign_expand_fenv): New hook.
5937 * doc/tm.texi.in (TARGET_ATOMIC_ASSIGN_EXPAND_FENV): New @hook.
5938 * doc/tm.texi: Regenerate.
5939 * targhooks.c (default_atomic_assign_expand_fenv): New function.
5940 * targhooks.h (default_atomic_assign_expand_fenv): Declare.
5941 * sync-builtins.def (__atomic_feraiseexcept): New built-in function.
5942 * config/i386/i386-builtin-types.def (VOID_FTYPE_PUSHORT): New
5944 * config/i386/i386.c (enum ix86_builtins): Add
5945 IX86_BUILTIN_FNSTENV, IX86_BUILTIN_FLDENV, IX86_BUILTIN_FNSTSW and
5946 IX86_BUILTIN_FNCLEX.
5947 (bdesc_special_args): Add __builtin_ia32_fnstenv,
5948 __builtin_ia32_fldenv, __builtin_ia32_fnstsw and __builtin_ia32_fnclex.
5949 (ix86_expand_builtin): Handle the new built-in functions.
5950 (ix86_atomic_assign_expand_fenv): New function.
5951 (TARGET_ATOMIC_ASSIGN_EXPAND_FENV): New macro.
5952 * config/i386/i386.md (UNSPECV_FNSTENV, UNSPECV_FLDENV)
5953 (UNSPECV_FNSTSW, UNSPECV_FNCLEX): New unspecs.
5954 (fnstenv, fldenv, fnstsw, fnclex): New insns.
5956 2013-11-07 Steve Ellcey <sellcey@mips.com>
5958 * config/mips/mti-linux.h (SYSROOT_SUFFIX_SPEC): Add fp64 directory.
5959 * config/mips/t-mti-linux (MULTILIB_OPTIONS): Add -mfp64 flag.
5960 (MULTILIB_DIRNAMES): Add fp64 directory.
5961 (MULTILIB_EXCEPTIONS): Add new exclusions.
5963 2013-11-07 Aldy Hernandez <aldyh@redhat.com>
5965 * gimplify.c (gimple_regimplify_operands): Do not set
5967 * graphite-sese-to-poly.c (remove_simple_copy_phi): Same.
5968 (rewrite_close_phi_out_of_ssa): Same.
5969 (rewrite_phi_out_of_ssa): Same.
5970 (rewrite_degenerate_phi): Same.
5971 (handle_scalar_deps_crossing_scop_limits): Same.
5972 * tree-if-conv.c (predicate_scalar_phi): Same.
5973 * tree-parloops.c (create_loads_for_reductions): Same.
5974 (create_final_loads_for_reduction): Same.
5975 (create_loads_and_stores_for_name): Same.
5976 (transform_to_exit_first_loop): Same.
5977 (create_parallel_loop): Same.
5978 * tree-ssa-loop-im.c
5979 (move_computations_dom_walker::before_dom_children): Same.
5980 * tree-ssa-loop-manip.c (rewrite_phi_with_iv): Same.
5981 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children): Same.
5982 * tree-ssa-propagate.c (substitute_and_fold): Same.
5983 * tree-vect-loop.c (vect_finalize_reduction): Same.
5984 * tree-vect-stmts.c (vectorizable_call): Same.
5986 2013-11-07 Mike Stump <mikestump@comcast.net>
5988 * config/pdp11/pdp11.c: Include dbxout.h.
5989 * config/picochip/picochip.c: Likewise.
5991 2013-11-07 Cong Hou <congh@google.com>
5993 PR tree-optimization/56764
5994 * tree-vect-loop-manip.c (vect_create_cond_for_alias_checks):
5995 Combine alias checks if it is possible to amortize the runtime
5996 overhead. Return the number of alias checks after merging.
5997 * tree-vect-data-refs.c (vect_prune_runtime_alias_test_list):
5998 Use the function vect_create_cond_for_alias_checks () to check
5999 the number of alias checks.
6001 2013-11-07 Jeff Law <law@redhat.com>
6003 * varpool.c (ctor_for_folding): Fix typo in comment.
6005 2013-11-07 Joern Rennecke <joern.rennecke@embecosm.com>
6007 * config/arc/arc.c (arc_ifcvt): Use commutativity, e.g.:
6008 reg_a := reg_b + reg_a ==> reg_a := reg_a + reg_b
6010 2013-11-07 Jeff Law <law@redhat.com>
6012 * doc/invoke.texi (-fisolate-erroneous-paths): Document.
6014 * gimple-ssa-isolate-paths.c (gate_isolate_erroneous_paths):
6015 No longer check if we have __builtin_trap, assume it's available.
6017 2013-11-07 Diego Novillo <dnovillo@google.com>
6019 * attribs.c (lookup_scoped_attribute_spec): Make static.
6020 (get_attribute_namespace): Likewise.
6021 * builtins.c (more_const_call_expr_args_p): Move from tree.h.
6022 (validate_arglist): Move earlier in the file. Make static.
6023 (expand_stack_restore): Move from stmt.c
6024 (expand_stack_save): Move from stmt.c
6025 (rewrite_call_expr_array): Move earlier in the file.
6026 (rewrite_call_expr_valist): Likewise.
6027 * cfgexpand.c: Include hard-reg-set.h before tree.h
6030 (expand_asm_loc): Move from stmt.c.
6031 (n_occurrences): Move from stmt.c.
6032 (check_operand_nalternatives): Move from stmt.c.
6033 (tree_conflicts_with_clobbers_p): Move from stmt.c.
6034 (expand_asm_operands): Move from stmt.c
6035 (expand_asm_stmt): Move from stmt.c
6036 (expand_computed_goto): Move from stmt.c
6037 (expand_goto): Move from stmt.c
6038 (expand_null_return_1): Move from stmt.c
6039 (expand_null_return): Move from stmt.c
6040 (expand_value_return): Move from stmt.c
6041 (expand_return): Move from stmt.c
6042 (expand_main_function): Move from function.c
6043 (stack_protect_prologue): Move from function.c
6044 * cgraphclones.c (build_function_type_skip_args): Move from tree.c.
6045 (build_function_decl_skip_args): Move from tree.c.
6046 * explow.c (tree_expr_size): Move from tree.c.
6047 * expr.c (addr_expr_of_non_mem_decl_p): Remove.
6048 (fields_length): Move from tree.c.
6049 * fold-const.c (size_low_cst): Move from tree.c.
6050 (tree_expr_nonzero_warnv_p): Make static. Move earlier in the file.
6051 (tree_expr_nonzero_p): Make static. Move earlier in the file.
6052 (fold_build3_initializer_loc): Remove.
6053 (tree_invalid_nonnegative_warnv_p): Make static.
6054 * function.c (expand_main_function): Move to cfgexpand.c.
6055 (stack_protect_prologue): Move to cfgexpand.c.
6056 (set_insn_locations): Move earlier in the file.
6057 * gimple-fold.c: Include langhooks.h.
6058 (truth_type_for): Move from tree.c.
6059 * print-tree.c (print_vec_tree): Remove.
6060 * stmt.c (expand_computed_goto): Move to cfgexpand.c.
6061 (expand_goto): Move to cfgexpand.c.
6062 (n_occurrences): Move to cfgexpand.c.
6063 (expand_asm_loc): Move to cfgexpand.c
6064 (tree_conflicts_with_clobbers_p): Move to cfgexpand.c.
6065 (expand_asm_operands): Move to cfgexpand.c.
6066 (expand_asm_stmt): Move to cfgexpand.c.
6067 (check_operand_nalternatives): Move to cfgexpand.c
6068 (expand_null_return): Move to cfgexpand.c.
6069 (expand_value_return): Move to cfgexpand.c.
6070 (expand_null_return_1): Move to cfgexpand.c.
6071 (expand_return): Move to cfgexpand.c.
6072 (expand_stack_save): Move to builtins.c.
6073 (expand_stack_restore): Move to builtins.c
6074 * symtab.c: Include output.h.
6075 (decl_assembler_name_hash): Move from tree.c.
6076 (decl_assembler_name_equal): Move from tree.c.
6077 * trans-mem.c (is_tm_safe_or_pure): Move from tree.h.
6078 * tree-eh.c (in_array_bounds_p): Move from tree.c.
6079 (range_in_array_bounds_p): Move from tree.c.
6080 * tree-object-size.c (fini_object_sizes): Make static.
6081 * tree-ssa-dom.c (iterative_hash_exprs_commutative): Move from tree.h.
6082 * tree-vrp.c (ssa_name_nonnegative_p): Remove.
6083 * tree.c (decl_assembler_name_equal): Move to symtab.c.
6084 (tree_expr_size): Move to explow.c.
6085 (decl_assembler_name_hash): Move to symtab.c.
6086 (real_twop): Remove.
6087 (tree_expr_size): Move to explow.c.
6088 (stabilize_reference_1): Move earlier in the file. Make static.
6089 (omp_remove_redundant_declare_simd_attrs): Remove.
6090 (simple_cst_list_equal): Move earlier in the file. Make static.
6091 (size_low_cst): Move to fold-const.c.
6092 (build_type_no_quals): Remove.
6093 (build_function_type_skip_args): Move to cgraphclones.c.
6094 (build_function_decl_skip_args): Move to cgraphclones.c.
6095 (in_array_bounds_p): Move to tree-eh.c.
6096 (range_in_array_bounds_p): Move to tree-eh.c.
6097 (truth_type_for): Move to gimple-fold.c.
6098 (list_equal_p): Remove.
6099 * tree.h (decl_assembler_name_equal): Remove.
6100 (decl_assembler_name_hash): Remove.
6101 (truth_type_for): Remove.
6102 (build_type_no_quals): Remove.
6103 (build_function_decl_skip_args): Remove.
6104 (in_array_bounds_p): Remove.
6105 (range_in_array_bounds_p): Remove.
6106 (size_low_cst): Remove.
6107 (omp_remove_redundant_declare_simd_attrs): Remove.
6108 (tree_expr_size): Remove.
6109 (fields_length): Remove.
6110 (stabilize_reference_1): Remove.
6111 (expand_goto): Remove.
6112 (expand_stack_save): Remove.
6113 (expand_stack_restore): Remove.
6114 (expand_return): Remove.
6115 (fold_build3_initializer_loc): Remove.
6116 (tree_expr_nonzero_p): Remove.
6117 (tree_invalid_nonnegative_warnv_p): Remove.
6118 (tree_expr_nonzero_warnv_p): Remove.
6119 (fold_builtin_snprintf_chk): Remove.
6120 (validate_arglist): Remove.
6121 (iterative_hash_exprs_commutative): Move to tree-ssa-dom.c.
6122 (simple_cst_list_equal): Remove.
6123 (real_twop): Remove.
6124 (expand_main_function): Remove.
6125 (stack_protect_prologue): Remove.
6126 (print_vec_tree): Remove.
6127 (lookup_scoped_attribute_spec): Remove.
6128 (get_attribute_namespace): Remove.
6129 (expand_computed_goto): Remove.
6130 (expand_asm_stmt): Remove.
6131 (list_equal_p): Remove.
6132 (ssa_name_nonnegative_p): Remove.
6133 (fini_object_sizes): Remove.
6134 (addr_expr_of_non_mem_decl_p): Remove.
6135 (is_tm_safe_or_pure): Move to trans-mem.c.
6136 (more_const_call_expr_args_p): Remove.
6137 (save_vtable_map_decl): Remove.
6139 2013-11-07 Thomas Schwinge <thomas@codesourcery.com>
6141 * doc/sourcebuild.texi (Top Level) <lto-plugin>: GNU ld can use
6142 linker plugins, too.
6144 * config/arc/arc.h (LINK_COMMAND_SPEC): For -ftree-parallelize-loops=*,
6145 link to libgomp and its dependencies.
6146 * config/ia64/hpux.h (LIB_SPEC): Likewise.
6147 * config/pa/pa-hpux11.h (LIB_SPEC): Likewise.
6148 * config/pa/pa64-hpux.h (LIB_SPEC): Likewise.
6149 * gcc.c (GOMP_SELF_SPECS): Update comment about libgomp's dependencies.
6151 2013-11-07 Jakub Jelinek <jakub@redhat.com>
6153 * tree-ssa-loop-niter.c: Include tree-ssanames.h.
6154 (determine_value_range): Add loop argument. Use get_range_info to
6156 (bound_difference): Adjust caller.
6158 2013-11-07 Richard Biener <rguenther@suse.de>
6159 Jakub Jelinek <jakub@redhat.com>
6161 * tree-vrp.c (find_assert_locations): Pre-seed live bitmaps for loop
6162 latches from header PHI arguments from the latch edge.
6164 2013-11-07 Paolo Carlini <paolo.carlini@oracle.com>
6167 * varasm.c (output_constant): Handle NULLPTR_TYPE.
6169 2013-11-07 H.J. Lu <hongjiu.lu@intel.com>
6171 * config/i386/i386.c (ix86_expand_set_or_movmem): Don't set
6172 misaligned_prologue_used when it has been set.
6174 2013-11-07 Yury Gribov <y.gribov@samsung.com>
6175 Jakub Jelinek <jakub@redhat.com>
6178 * asan.c (get_mem_refs_of_builtin_call): Allow
6179 integer literals as addresses in instrumented builtins.
6181 2013-11-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
6183 * config/aarch64/aarch64.c (aarch64_legitimize_reload_address):
6184 Explain why plus_constant is not used.
6186 2013-11-07 Richard Biener <rguenther@suse.de>
6188 * tree-ssa-ccp.c (canonicalize_float_value): Rename to ...
6189 (canonicalize_value): ... this. Also handle stripping of
6191 (get_value, set_lattice_value, get_value_for_expr): Adjust.
6192 * gimple-fold.c (canonicalize_constructor_val): Strip TREE_OVERFLOW.
6193 * tree-ssa-threadedge.c (set_ssa_name_value): Likewise.
6195 2013-11-07 Richard Biener <rguenther@suse.de>
6197 * tree-dfa.c (get_ref_base_and_extent): Fix casting.
6199 2013-11-07 H.J. Lu <hongjiu.lu@intel.com>
6202 * config/i386/i386.md (push peepholer/splitter): Use Pmode
6203 with stack_pointer_rtx.
6205 2013-11-07 Bin Cheng <bin.cheng@arm.com>
6207 * tree-ssa-loop-ivopts.c (get_shiftadd_cost): Check equality
6208 using operand_equal_p.
6210 2013-11-07 Bin Cheng <bin.cheng@arm.com>
6212 * tree-ssa-loop-ivopts.c (alloc_iv): Lower address expressions.
6213 * tree-affine.c (get_inner_reference_aff): Return base.
6214 * tree-affine.h (get_inner_reference_aff): Change prototype.
6216 2013-11-06 Tobias Burnus <burnus@net-b.de>
6218 * doc/invoke.texi (Wdate-time): Fix typo.
6220 2013-11-06 Oleg Endo <olegendo@gcc.gnu.org>
6222 * config/sh/sh.md (addsf3, divsf3, divsf3_i, rsqrtsf2, cmpgtdf_t,
6223 cmpeqdf_t, *ieee_ccmpeqdf_t, negdf2, sqrtdf2, absdf2): Use
6224 fp_arith_reg_operand instead of arith_reg_operand.
6226 2013-11-06 Oleg Endo <olegendo@gcc.gnu.org>
6228 * config/sh/sh.md (adddi3): Remove empty constraints.
6229 Remove can_create_pseudo_p and arith_reg_operand check.
6230 (adddi3_compact, subdi3_compact, *negdi2): Remove constraints.
6231 Split before reload.
6233 2013-11-06 Jeff Law <law@redhat.com>
6234 Tom Tromey <tromey@redhat.com>
6236 * gdbinit.in: Disable strict type checking.
6238 2013-11-06 Vladimir Makarov <vmakarov@redhat.com>
6240 * tree-pass.h (make_pass_live_range_shrinkage): New external.
6241 * timevar.def (TV_LIVE_RANGE_SHRINKAGE): New.
6242 * sched-rgn.c (gate_handle_live_range_shrinkage): New.
6243 (rest_of_handle_live_range_shrinkage): Ditto
6244 (class pass_live_range_shrinkage): Ditto.
6245 (pass_data_live_range_shrinkage): Ditto.
6246 (make_pass_live_range_shrinkage): Ditto.
6247 * sched-int.h (initialize_live_range_shrinkage): New prototype.
6248 (finish_live_range_shrinkage): Ditto.
6249 * sched-deps.c (create_insn_reg_set): Make void return value.
6250 * passes.def: Add pass_live_range_shrinkage.
6251 * ira.c (update_equiv_regs): Don't move if flag_live_range_shrinkage.
6252 * haifa-sched.c (live_range_shrinkage_p): New.
6253 (initialize_live_range_shrinkage, finish_live_range_shrinkage):
6255 (rank_for_schedule): Add code for pressure relief through live
6257 (schedule_insn): Print more debug info.
6258 (sched_init): Setup SCHED_PRESSURE_WEIGHTED for pressure relief
6259 through live range shrinkage.
6260 * doc/invoke.texi (-flive-range-shrinkage): New.
6261 * common.opt (flive-range-shrinkage): New.
6263 2013-11-06 Uros Bizjak <ubizjak@gmail.com>
6266 * config/i386/i386.c (ix86_avx_u128_mode_needed): Require
6267 AVX_U128_DIRTY mode for call_insn RTXes that use AVX256 registers.
6268 (ix86_avx_u128_mode_needed): Return AVX_U128_DIRTY mode for call_insn
6269 RTXes that return in AVX256 register.
6271 2013-11-06 Richard Biener <rguenther@suse.de>
6273 PR tree-optimization/58653
6274 * tree-predcom.c (ref_at_iteration): Rewrite to generate a MEM_REF.
6275 (prepare_initializers_chain): Adjust.
6277 2013-11-06 Andrew MacLeod <amacleod@redhat.com>
6279 * gimple.h (block_in_transaction): Move to basic-block.h and rename.
6280 (gimple_in_transaction): Use bb_in_transaction.
6281 * basic-block.h (bb_in_transaction): Relocate here and rename.
6282 * tree-ssa-loop-im.c (execute_sm): Use bb_in_transaction.
6284 2013-11-06 Richard Biener <rguenther@suse.de>
6286 * tree.c (drop_tree_overflow): New function.
6287 * tree.h (drop_tree_overflow): Declare.
6288 * gimplify.c (gimplify_expr): Drop TREE_OVERFLOW.
6289 * tree-vrp.c (range_int_cst_singleton_p): Use
6290 is_overflow_infinity instead of testing TREE_OVERFLOW.
6291 (extract_range_from_assert): Likewise.
6292 (zero_nonzero_bits_from_vr): Likewise.
6293 (extract_range_basic): Likewise.
6294 (register_new_assert_for): Use drop_tree_overflow.
6295 (vrp_visit_phi_node): Likewise.
6297 2013-11-06 Eric Botcazou <ebotcazou@adacore.com>
6299 * config/i386/i386.c (ix86_expand_prologue): Optimize stack
6300 checking for leaf functions without dynamic stack allocation.
6301 * config/ia64/ia64.c (ia64_emit_probe_stack_range): Adjust.
6302 (ia64_expand_prologue): Likewise.
6303 * config/mips/mips.c (mips_expand_prologue): Likewise.
6304 * config/rs6000/rs6000.c (rs6000_emit_prologue): Likewise.
6305 * config/sparc/sparc.c (sparc_expand_prologue): Likewise.
6306 (sparc_flat_expand_prologue): Likewise.
6308 2013-11-06 James Greenhalgh <james.greenhalgh@arm.com>
6310 * config/aarch64/arm_neon.h (__ST2_LANE_FUNC): Better model data size.
6311 (__ST3_LANE_FUNC): Likewise.
6312 (__ST4_LANE_FUNC): Likewise.
6314 2013-11-06 Nick Clifton <nickc@redhat.com>
6316 * config/msp430/msp430.h (TARGET_CPU_CPP_BUILTINS): Define the
6317 name returned by msp430_mcu_name.
6318 (LIB_SPEC): If a -T option has not been specified then set a
6319 default, mcu-specific, linker script.
6320 * config/msp430/t-msp430 (MULTILIB_MATCHES): Add more mcu names.
6321 * config/msp430/msp430.c (msp430x_names): Likewise.
6322 Alpha sort the names for ease of comparison.
6323 (msp430_mcu_name): New function: Returns a string suitable for
6324 use as a C preprocessor symbol based upon the name of the MCU
6326 (msp430_option_override): Accept msp430x and msp430xv2 as generic
6328 * config/msp430/msp430-protos.h (msp430_mcu_name): Prototype.
6330 * gcc.c (do_spec_1): Do not insert a space after a %* substitution
6331 unless it is the last part of a spec substring.
6332 * doc/invoke.texi (Spec Files): Document space insertion
6335 2013-11-06 Christian Bruel <christian.bruel@st.com>
6337 * config/sh/sh-mem.cc (sh_expand_cmpnstr, sh_expand_cmpstr):
6338 Factorize probabilities, Use adjust_address instead of
6339 adjust_automodify_address when possible. Enable for optimize.
6340 (sh_expand_strlen): New function.
6341 * config/sh/sh-protos.h (sh_expand_strlen): Declare.
6342 * config/sh/sh.md (strlensi): New pattern.
6343 (UNSPEC_BUILTIN_STRLEN): Define.
6345 2013-11-06 Jakub Jelinek <jakub@redhat.com>
6348 * expr.c (get_bit_range): Handle *offset == NULL_TREE.
6349 (expand_assignment): If *bitpos is negative, set *offset
6350 and adjust *bitpos, so that it is not negative.
6352 2013-11-06 Ganesh Gopalasubramanian <Ganesh.Gopalasubramanian@amd.com>
6354 * config/i386/bdver3.md : Added two additional decoder units
6355 to support issue rate of 4 and remodeled vector unit.
6356 * config/i386/i386.c (ix86_issue_rate): Issue rate for BD
6357 architectures is set to 4.
6358 * config/i386/i386.c (ia32_multipass_dfa_lookahead): DFA
6359 lookahead is set to 4 for BD architectures.
6361 2013-11-05 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
6363 * config/rs6000/rs6000.c (rs6000_option_override_internal):
6364 Remove restriction against use of VSX instructions when generating
6365 code for little endian mode.
6367 2013-11-05 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
6369 * config/rs6000/altivec.md (mulv4si3): Ensure we generate vmulouh
6370 for both big and little endian.
6371 (mulv8hi3): Swap input operands for merge high and merge low
6372 instructions for little endian.
6374 2013-11-05 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
6376 * config/rs6000/altivec.md (vec_widen_umult_even_v16qi): Change
6377 define_insn to define_expand that uses even patterns for big
6378 endian and odd patterns for little endian.
6379 (vec_widen_smult_even_v16qi): Likewise.
6380 (vec_widen_umult_even_v8hi): Likewise.
6381 (vec_widen_smult_even_v8hi): Likewise.
6382 (vec_widen_umult_odd_v16qi): Likewise.
6383 (vec_widen_smult_odd_v16qi): Likewise.
6384 (vec_widen_umult_odd_v8hi): Likewise.
6385 (vec_widen_smult_odd_v8hi): Likewise.
6386 (altivec_vmuleub): New define_insn.
6387 (altivec_vmuloub): Likewise.
6388 (altivec_vmulesb): Likewise.
6389 (altivec_vmulosb): Likewise.
6390 (altivec_vmuleuh): Likewise.
6391 (altivec_vmulouh): Likewise.
6392 (altivec_vmulesh): Likewise.
6393 (altivec_vmulosh): Likewise.
6395 2013-11-05 Mike Stump <mikestump@comcast.net>
6397 * Makefile.in (mostlyclean): Remove c-family objects.
6399 2013-11-05 Ian Lance Taylor <iant@google.com>
6401 * config/i386/sync.md (atomic_compare_and_swap<dwi>_doubleword):
6402 If possible, add .cfi directives to record change to bx.
6403 * config/i386/i386.c (ix86_emit_cfi): New function.
6404 * config/i386/i386-protos.h (ix86_emit_cfi): Declare.
6406 2013-11-05 Steven Bosscher <steven@gcc.gnu.org>
6408 * rtlanal.c (tablejump_p): Expect a JUMP_TABLE_DATA to always follow
6409 immediately after a label for a tablejump pattern.
6411 * config/arm/arm.c (is_jump_table): Remove.
6412 (create_fix_barrier): Use tablejump_p instead.
6413 (arm_reorg): Likewise.
6414 (thumb1_output_casesi): Expect JUMP_TABLE_DATA to always be NEXT_INSN.
6415 (thumb2_output_casesi): Likewise.
6416 * config/aarch64/aarch64.c (aarch64_output_casesi): Likewise.
6417 * config/sh/sh.md (casesi_worker_1, casesi_worker_2,
6418 casesi_shift_media, casesi_load_media): Likewise.
6419 * config/iq2000/iq2000.md: Likewise (in anonymous define_insn).
6420 * config/microblaze/microblaze.md: Likewise.
6422 2013-11-05 Tobias Burnus <burnus@net-b.de>
6424 * doc/invoke.texi (-Wdate-time): Document.
6426 2013-11-05 Richard Sandiford <rdsandiford@googlemail.com>
6428 * double-int.c (lshift_double, rshift_double): Remove
6429 SHIFT_COUNT_TRUNCATED handling.
6431 2013-11-05 Jeff Law <law@redhat.com>
6433 * Makefile.in (OBJS): Add gimple-ssa-isolate-paths.o
6434 * common.opt (-fisolate-erroneous-paths): Add option and documentation.
6435 * gimple-ssa-isolate-paths.c: New file.
6436 * gimple.c (check_loadstore): New function.
6437 (infer_nonnull_range): Moved into gimple.c from tree-vrp.c
6438 Verify OP is in the argument list and the argument corresponding
6439 to OP is a pointer type. Use operand_equal_p rather than
6440 pointer equality when testing if OP is on the nonnull list.
6441 Use check_loadstore rather than count_ptr_derefs. Handle
6442 GIMPLE_RETURN statements.
6443 * tree-vrp.c (infer_nonnull_range): Remove.
6444 * gimple.h (infer_nonnull_range): Declare.
6445 * opts.c (default_options_table): Add OPT_fisolate_erroneous_paths.
6446 * passes.def: Add pass_isolate_erroneous_paths.
6447 * timevar.def (TV_ISOLATE_ERRONEOUS_PATHS): New timevar.
6448 * tree-pass.h (make_pass_isolate_erroneous_paths): Declare.
6449 * tree-ssa.c (struct count_ptr_d): Remove.
6450 (count_ptr_derefs, count_uses_and_derefs): Remove.
6451 * tree-ssa.h (count_uses_and_derefs): Remove.
6453 2013-11-05 Jakub Jelinek <jakub@redhat.com>
6455 PR rtl-optimization/58997
6456 * loop-iv.c (iv_subreg): For IV_UNKNOWN_EXTEND, expect
6457 get_iv_value to be in iv->mode rather than iv->extend_mode.
6458 (iv_extend): Likewise. Otherwise, if iv->extend != extend,
6459 use lowpart_subreg on get_iv_value before calling simplify_gen_unary.
6460 * loop-unswitch.c (may_unswitch_on): Make sure op[i] is in the right
6463 2013-11-05 Andrew MacLeod <amacleod@redhat.com>
6465 * gimple.h: Move some prototypes to gimple-expr.h and add to include
6467 (extract_ops_from_tree, gimple_call_addr_fndecl, is_gimple_reg_type):
6468 Move to gimple-expr.h.
6469 * gimple-expr.h: New file. Relocate some prototypes from gimple.h.
6470 (types_compatible_p, is_gimple_reg_type, is_gimple_variable,
6471 is_gimple_id, virtual_operand_p, is_gimple_addressable,
6472 is_gimple_constant, extract_ops_from_tree, gimple_call_addr_fndecl):
6474 * gimple.c (extract_ops_from_tree_1, gimple_cond_get_ops_from_tree,
6475 gimple_set_body, gimple_body, gimple_has_body_p, is_gimple_lvalue,
6476 is_gimple_condexpr, is_gimple_addressable, is_gimple_constant,
6477 is_gimple_address, is_gimple_invariant_address,
6478 is_gimple_ip_invariant_address, is_gimple_min_invariant,
6479 is_gimple_ip_invariant, is_gimple_variable, is_gimple_id,
6480 virtual_operand_p, is_gimple_reg, is_gimple_val, is_gimple_asm_val,
6481 is_gimple_min_lval, is_gimple_call_addr, is_gimple_mem_ref_addr,
6482 gimple_decl_printable_name, useless_type_conversion_p,
6483 types_compatible_p, gimple_can_coalesce_p, copy_var_decl): Move to
6485 * gimple-expr.c: New File.
6486 (useless_type_conversion_p, gimple_set_body, gimple_body,
6487 gimple_has_body_p, gimple_decl_printable_name, copy_var_decl,
6488 gimple_can_coalesce_p, extract_ops_from_tree_1,
6489 gimple_cond_get_ops_from_tree, is_gimple_lvalue, is_gimple_condexpr,
6490 is_gimple_address, is_gimple_invariant_address,
6491 is_gimple_ip_invariant_address, is_gimple_min_invariant,
6492 is_gimple_ip_invariant, is_gimple_reg, is_gimple_val,
6493 is_gimple_asm_val, is_gimple_min_lval, is_gimple_call_addr,
6494 is_gimple_mem_ref_addr): Relocate here.
6495 * Makefile.in (OBJS): Add gimple-expr.o.
6497 2013-11-05 David Malcolm <dmalcolm@redhat.com>
6499 * gengtype-parse.c (struct_field_seq): Support empty structs.
6501 2013-11-05 Uros Bizjak <ubizjak@gmail.com>
6503 * config/i386/t-rtems (MULTILIB_MATCHES): Fix option typos.
6505 2013-11-05 Uros Bizjak <ubizjak@gmail.com>
6507 * config/i386/i386-c.c (ix86_target_macros): Define _SOFT_FLOAT
6509 * config/i386/rtemself.h (TARGET_OS_CPP_BUILTINS): Do not define
6511 (LONG_DOUBLE_TYPE_SIZE): New define.
6512 (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Ditto.
6514 2013-11-05 Paolo Carlini <paolo.carlini@oracle.com>
6517 * doc/extend.texi [visibility ("visibility_type")]: Add example
6518 about visibility attribute on namespace declaration.
6520 2013-11-05 Richard Biener <rguenther@suse.de>
6523 * passes.def (all_passes): Start with pass_fixup_cfg again.
6525 2013-11-05 Richard Biener <rguenther@suse.de>
6527 PR tree-optimization/58955
6528 * tree-loop-distribution.c (pg_add_dependence_edges): Fix
6531 2013-11-05 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
6533 * config/rs6000/vector.md (vec_pack_sfix_trunc_v2df): Adjust for
6535 (vec_pack_ufix_trunc_v2df): Likewise.
6537 2013-11-05 H.J. Lu <hongjiu.lu@intel.com>
6540 * doc/md.texi (@code{movmem@var{m}}): Specify Pmode as mode of
6541 pattern, instead of word_mode.
6543 * expr.c (emit_block_move_via_movmem): Don't use mode wider than
6545 (set_storage_via_setmem): Likewise.
6547 2013-11-05 Andrew MacLeod <amacleod@redhat.com>
6549 * tree-outof-ssa.c (queue_phi_copy_p): Combine phi_ssa_name_p from
6550 gimple.h and the rest of the condition in eliminate_build.
6551 (eliminate_build): Call new routine.
6552 * gimple.h (phi_ssa_name_p): Delete.
6554 2013-11-05 Trevor Saunders <tsaunders@mozilla.com>
6556 * vec.c (vec_prefix::calculate_allocation): Don't try to handle the
6557 case of no prefix and reserving zero slots, because when that's the
6558 case we'll never get here.
6559 * vec.h (va_heap::reserve): Don't try and handle
6560 vec_prefix::calculate_allocation returning zero because that should
6563 2013-11-05 Richard Biener <rguenther@suse.de>
6566 * tree-dfa.c (get_ref_base_and_extent): Merge common code
6567 in MEM_REF and TARGET_MEM_REF handling. Make sure to
6568 process trailing array detection before diving into the
6569 view-converted object (and possibly apply some extra offset).
6571 2013-11-05 Joseph Myers <joseph@codesourcery.com>
6573 * config/i386/i386.c (ix86_float_exceptions_rounding_supported_p):
6575 (TARGET_FLOAT_EXCEPTIONS_ROUNDING_SUPPORTED_P): Define.
6577 2013-11-05 Marc Glisse <marc.glisse@inria.fr>
6579 PR tree-optimization/58958
6580 * tree-ssa-alias.c (ao_ref_init_from_ptr_and_size): Use
6581 get_addr_base_and_unit_offset instead of get_ref_base_and_extent.
6583 2013-11-05 Marc Glisse <marc.glisse@inria.fr>
6585 * tree-ssa-alias.h (ranges_overlap_p): Handle negative offsets.
6586 * tree-ssa-alias.c (ao_ref_init_from_ptr_and_size): Likewise.
6588 2013-11-05 Jakub Jelinek <jakub@redhat.com>
6590 PR tree-optimization/58984
6591 * ipa-prop.c (ipa_load_from_parm_agg_1): Add SIZE_P argument,
6592 set *SIZE_P if non-NULL on success.
6593 (ipa_load_from_parm_agg, ipa_analyze_indirect_call_uses): Adjust
6595 (ipcp_transform_function): Likewise. Punt if size of access
6596 is different from TYPE_SIZE on v->value's type.
6598 2013-11-05 Tobias Burnus <burnus@net-b.de>
6600 * doc/invoke.texi (-fopenmp-simd): Document new option.
6601 * gimplify.c (gimplify_body): Accept -fopenmp-simd.
6602 * omp-low.c (execute_expand_omp, execute_lower_omp): Ditto.
6603 * tree.c (attribute_value_equal): Ditto.
6605 2013-11-04 Wei Mi <wmi@google.com>
6607 * sched-rgn.c (add_branch_dependences): Keep insns in
6608 a SCHED_GROUP at the end of BB to remain their location.
6610 2013-11-04 Wei Mi <wmi@google.com>
6612 * config/i386/i386.c (memory_address_length): Extract a part
6613 of code to rip_relative_addr_p.
6614 (rip_relative_addr_p): New Function.
6615 (ix86_macro_fusion_p): Ditto.
6616 (ix86_macro_fusion_pair_p): Ditto.
6617 * config/i386/i386.h: Add new tune features about macro-fusion.
6618 * config/i386/x86-tune.def (DEF_TUNE): Ditto.
6619 * doc/tm.texi: Generated.
6620 * doc/tm.texi.in: Ditto.
6621 * haifa-sched.c (try_group_insn): New Function.
6622 (group_insns_for_macro_fusion): Ditto.
6623 (sched_init): Call group_insns_for_macro_fusion.
6624 * target.def: Add two hooks: macro_fusion_p and
6625 macro_fusion_pair_p.
6627 2013-11-04 Kostya Serebryany <kcc@google.com>
6629 Update to match the changed asan API.
6630 * asan.c (asan_function_start): New function.
6631 (asan_emit_stack_protection): Update the string stored in the
6632 stack red zone to match new API. Store the PC of the current
6633 function in the red zone.
6634 (asan_global_struct): Update the __asan_global definition to match
6636 (asan_add_global): Ditto.
6637 * asan.h (asan_function_start): New prototype.
6638 * final.c (final_start_function): Call asan_function_start.
6639 * sanitizer.def (BUILT_IN_ASAN_INIT): Rename __asan_init_v1
6642 2013-11-04 Wei Mi <wmi@google.com>
6644 * config/i386/i386-c.c (ix86_target_macros_internal): Separate
6645 PROCESSOR_COREI7_AVX out from PROCESSOR_COREI7.
6646 * config/i386/i386.c (ix86_option_override_internal): Ditto.
6647 (ix86_issue_rate): Ditto.
6648 (ix86_adjust_cost): Ditto.
6649 (ia32_multipass_dfa_lookahead): Ditto.
6650 (ix86_sched_init_global): Ditto.
6651 (get_builtin_code_for_version): Ditto.
6652 * config/i386/i386.h (enum target_cpu_default): Ditto.
6653 (enum processor_type): Ditto.
6654 * config/i386/x86-tune.def (DEF_TUNE): Ditto.
6656 2013-11-04 Vladimir Makarov <vmakarov@redhat.com>
6658 PR rtl-optimization/58967
6659 * config/rs6000/rs6000.c (legitimate_lo_sum_address_p): Remove
6660 !lra_in_progress for mode sizes bigger word.
6662 2013-11-04 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
6664 * config/rs6000/altivec.md (vec_widen_umult_hi_v16qi): Swap
6665 arguments to merge instruction for little endian.
6666 (vec_widen_umult_lo_v16qi): Likewise.
6667 (vec_widen_smult_hi_v16qi): Likewise.
6668 (vec_widen_smult_lo_v16qi): Likewise.
6669 (vec_widen_umult_hi_v8hi): Likewise.
6670 (vec_widen_umult_lo_v8hi): Likewise.
6671 (vec_widen_smult_hi_v8hi): Likewise.
6672 (vec_widen_smult_lo_v8hi): Likewise.
6674 2013-11-04 Ian Lance Taylor <iant@google.com>
6676 * builtins.def (ATTR_NOTHROWCALL_LEAF_LIST): Define.
6677 * sync-builtins.def: Use ATTR_NOTHROWCALL_LEAF_LIST for all sync
6678 builtins that take pointers.
6679 * lto-opts.c (lto_write_options): Write -fnon-call-exceptions if set.
6680 * lto-wrapper.c (merge_and_complain): Collect OPT_fnon_call_exceptions.
6681 (run_gcc): Pass -fnon-call-exceptions.
6683 2013-11-04 Jakub Jelinek <jakub@redhat.com>
6685 * optabs.c (expand_vec_perm): Revert one incorrect line from
6688 PR tree-optimization/58978
6689 * tree-vrp.c (all_imm_uses_in_stmt_or_feed_cond): Don't modify
6690 use_stmt by single_imm_use directly. Only call single_imm_use
6693 2013-11-04 Vladimir Makarov <vmakarov@redhat.com>
6695 PR rtl-optimization/58968
6696 * lra-spills.c (return_regno_p): New function.
6697 (lra_final_code_change): Use it.
6699 2013-11-04 Joseph Myers <joseph@codesourcery.com>
6701 * doc/cpp.texi (__GCC_IEC_559, __GCC_IEC_559_COMPLEX): Document macros.
6702 * target.def (float_exceptions_rounding_supported_p): New hook.
6703 * targhooks.c (default_float_exceptions_rounding_supported_p): New
6705 * targhooks.h (default_float_exceptions_rounding_supported_p): Declare.
6706 * doc/tm.texi.in (TARGET_FLOAT_EXCEPTIONS_ROUNDING_SUPPORTED_P):
6708 * doc/tm.texi: Regenerate.
6709 * config.gcc (powerpc*-*-linux*): Set extra_objs.
6710 * config/rs6000/rs6000-linux.c: New file.
6711 * config/rs6000/rs6000-protos.h
6712 (rs6000_linux_float_exceptions_rounding_supported_p): Declare.
6713 * config/rs6000/linux.h
6714 (TARGET_FLOAT_EXCEPTIONS_ROUNDING_SUPPORTED_P): New macro.
6715 * config/rs6000/linux64.h
6716 (TARGET_FLOAT_EXCEPTIONS_ROUNDING_SUPPORTED_P): Likewise.
6717 * config/rs6000/t-linux (rs6000-linux.o): New rule.
6718 * config/rs6000/t-linux64 (rs6000-linux.o): Likewise.
6720 2013-11-04 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
6722 * config/rs6000/vsx.md (*vsx_le_perm_store_<mode> for VSX_D):
6723 Replace the define_insn_and_split with a define_insn and two
6724 define_splits, with the split after reload re-permuting the source
6725 register to its original value.
6726 (*vsx_le_perm_store_<mode> for VSX_W): Likewise.
6727 (*vsx_le_perm_store_v8hi): Likewise.
6728 (*vsx_le_perm_store_v16qi): Likewise.
6730 2013-11-04 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
6732 * config/rs6000/vector.md (vec_pack_trunc_v2df): Adjust for
6735 2013-11-04 Jakub Jelinek <jakub@redhat.com>
6737 PR tree-optimization/58946
6738 * tree-ssa-reassoc.c (maybe_optimize_range_tests): Update all
6739 bbs with bbinfo[idx].op != NULL before all blocks with
6740 bbinfo[idx].op == NULL.
6742 2013-11-04 Richard Sandiford <rdsandiford@googlemail.com>
6744 * config/avr/avr-log.c (avr_double_int_pop_digit): Delete.
6745 (avr_dump_double_int_hex): Likewise.
6746 (avr_log_vadump): Remove %D and %X handling.
6747 * config/avr/avr.c (avr_double_int_push_digit): Delete.
6748 (avr_map_op_t): Change map from double_int to unsigned int.
6749 (avr_map_op): Update accordingly.
6750 (avr_map, avr_map_metric, avr_has_nibble_0xf, avr_map_decompose)
6751 (avr_move_bits, avr_out_insert_bits, avr_fold_builtin): Operate on
6752 unsigned ints rather than double_ints.
6754 2013-11-03 Marek Polacek <polacek@redhat.com>
6756 Implement -fsanitize=vla-bound.
6757 * opts.c (common_handle_option): Handle vla-bound.
6758 * sanitizer.def (BUILT_IN_UBSAN_HANDLE_VLA_BOUND_NOT_POSITIVE): Define.
6759 * flag-types.h (enum sanitize_code): Add SANITIZE_VLA.
6760 * asan.c (initialize_sanitizer_builtins): Build BT_FN_VOID_PTR_PTR.
6762 2013-11-02 Bill Schmidt <wschmidt@vnet.linux.ibm.com>
6764 * config/rs6000/rs6000.c (rs6000_expand_vector_set): Adjust for
6767 2013-11-02 Uros Bizjak <ubizjak@gmail.com>
6769 * config/i386/constraints.md (Ts, Tv): New address constrains.
6770 * config/i386/i386.md (*lea<mode>, *<mode>_<bndcheck>): Use Ts
6771 constraint for address_no_seg_operand.
6772 * config/i386/sse.md (*avx512pf_gatherpf<mode>_mask)
6773 (*avx512pf_gatherpf<mode>, *avx512pf_scatterpf<mode>_mask)
6774 (*avx512pf_scatterpf<mode>, *avx2_gathersi<mode>)
6775 (*avx2_gathersi<mode>_2, *avx2_gatherdi<mode>, *avx2_gatherdi<mode>_2)
6776 (*avx2_gatherdi<mode>_3, *avx2_gatherdi<mode>_4)
6777 (*avx512f_gathersi<mode>, *avx512f_gathersi<mode>_2)
6778 (*avx512f_gatherdi<mode>, *avx512f_gatherdi<mode>_2)
6779 (*avx512f_scattersi<mode> *avx512f_scatterdi<mode>): Use Tv
6780 constraint for vsib_address_operand.
6782 2013-11-02 Steven Bosscher <steven@gcc.gnu.org>
6784 * gcse.c (pre_delete): Remove references to regmove from comments.
6785 * recog.c: (validate_replace_rtx_1): Likewise.
6786 * config/rl78/rl78.c: Likewise.
6787 * config/v850/v850.h: Likewise, and remove unused ENABLE_REGMOVE_PASS.
6788 * common/config/m32r/m32r-common.c: Don't manipulate OPT_fregmove.
6789 * common/config/mmix/mmix-common.c: Likewise.
6791 2013-11-01 Trevor Saunders <tsaunders@mozilla.com>
6793 * function.c (reorder_blocks): Convert block_stack to a stack_vec.
6794 * gimplify.c (gimplify_compound_lval): Likewise.
6795 * graphite-clast-to-gimple.c (gloog): Likewise.
6796 * graphite-dependences.c (loop_is_parallel_p): Likewise.
6797 * graphite-scop-detection.c (scopdet_basic_block_info): Likewise.
6798 (limit_scop); Likewise.
6799 (build_scops): Likewise.
6800 (dot_scop): Likewise.
6801 * graphite-sese-to-poly.c (sese_dom_walker): Likewise.
6802 (build_scop_drs): Likewise.
6803 (insert_stmts): Likewise.
6804 (insert_out_of_ssa_copy): Likewise.
6805 (remove_phi): Likewise.
6806 (rewrite_commutative_reductions_out_of_ssa_close_phi): Likewise.
6807 * hw-doloop.c (discover_loop): Likewise.
6808 * tree-call-cdce.c (shrink_wrap_one_built_in_call): Likewise.
6809 * tree-dfa.c (dump_enumerated_decls): Likewise.
6810 * tree-if-conv.c (if_convertable_loop_p): Likewise.
6811 * tree-inline.c (tree_function_versioning): Likewise.
6812 * tree-loop-distribution.c (build_rdg): Likewise.
6813 (rdg_flag_vertex_and_dependent): Likewise.
6814 (distribute_loop): Likewise.
6815 * tree-parloops.c (loop_parallel_p): Likewise.
6816 (eliminate_local_variables): Likewise.
6817 (separate_decls_in_region): Likewise.
6818 * tree-predcom.c (tree_predictive_commoning_loop): Likewise.
6819 * tree-ssa-phiopt.c (cond_if_else_store_replacement): Likewise.
6820 * tree-ssa-uncprop.c (uncprop_dom_walker): Likewise.
6821 * tree-vect-loop.c (vect_analyze_scaler_cycles_1): Likewise.
6822 * tree-vect-patterns.c (vect_pattern_recog): Likewise.
6823 * tree-vect-stmts.c (vect_mark_stmts_to_be_vectorized): Likewise.
6824 (vectorizable_condition): Likewise.
6826 2013-11-01 Uros Bizjak <ubizjak@gmail.com>
6828 * configure.ac (HAVE_AS_IX86_INTERUNIT_MOVQ): Always define as 0/1.
6829 * configure: Regenerate.
6830 * config/i386/i386.md (*movdi_internal): Change
6831 HAVE_AS_IX86_INTERUNIT_MOVQ to runtime check.
6832 (*movdf_internal): Ditto.
6833 * config/i386/mmx.md (*mov<mode>_internal): Ditto.
6834 * config/i386/sse.md (vec_concatv2di): Output interunit movq
6835 for HAVE_AS_IX86_INTERUNIT_MOVQ targets.
6837 2013-10-31 Robert Suchanek <Robert.Suchanek@imgtec.com>
6839 * lra-spills.c (assign_spill_hard_regs): Remove statement terminator
6842 2013-10-31 David Malcolm <dmalcolm@redhat.com>
6844 Automated part of renaming of symtab_node_base to symtab_node.
6846 Patch autogenerated by rename_symtab.py from
6847 https://github.com/davidmalcolm/gcc-refactoring-scripts
6848 revision 58bb219cc090b2f4516a9297d868c245495ee622
6849 with ChangeLog entry fixed up by hand.
6851 * cgraph.c (x_cgraph_nodes_queue): Rename symtab_node_base to
6853 (cgraph_node_for_asm): Likewise.
6854 * cgraph.h (symtab_node_base): Likewise.
6855 (cgraph_node): Likewise.
6856 (varpool_node): Likewise.
6857 (is_a_helper <cgraph_node>::test): Likewise.
6858 (is_a_helper <varpool_node>::test): Likewise.
6859 (symtab_nodes): Likewise.
6860 (symtab_register_node): Likewise.
6861 (symtab_unregister_node): Likewise.
6862 (symtab_remove_node): Likewise.
6863 (symtab_get_node): Likewise.
6864 (symtab_node_for_asm): Likewise.
6865 (symtab_node_asm_name): Likewise.
6866 (symtab_node_name): Likewise.
6867 (symtab_insert_node_to_hashtable): Likewise.
6868 (symtab_add_to_same_comdat_group): Likewise.
6869 (symtab_dissolve_same_comdat_group_list): Likewise.
6870 (dump_symtab_node): Likewise.
6871 (debug_symtab_node): Likewise.
6872 (dump_symtab_base): Likewise.
6873 (verify_symtab_node): Likewise.
6874 (verify_symtab_base): Likewise.
6875 (symtab_used_from_object_file_p): Likewise.
6876 (symtab_alias_ultimate_target): Likewise.
6877 (symtab_resolve_alias): Likewise.
6878 (fixup_same_cpp_alias_visibility): Likewise.
6879 (symtab_for_node_and_aliases): Likewise.
6880 (symtab_nonoverwritable_alias): Likewise.
6881 (availability symtab_node_availability): Likewise.
6882 (symtab_semantically_equivalent_p): Likewise.
6883 (fixup_same_cpp_alias_visibility): Likewise.
6884 (symtab_prevail_in_asm_name_hash): Likewise.
6886 (varpool): Likewise.
6887 (varpool_first_variable): Likewise.
6888 (varpool_next_variable): Likewise.
6889 (varpool_first_static_initializer): Likewise.
6890 (varpool_next_static_initializer): Likewise.
6891 (varpool_first_defined_variable): Likewise.
6892 (varpool_next_defined_variable): Likewise.
6893 (cgraph_first_defined_function): Likewise.
6894 (cgraph_next_defined_function): Likewise.
6895 (cgraph_first_function): Likewise.
6896 (cgraph_next_function): Likewise.
6897 (cgraph_first_function_with_gimple_body): Likewise.
6898 (cgraph_next_function_with_gimple_body): Likewise.
6899 (symtab_alias_target): Likewise.
6900 (symtab_real_symbol_p): Likewise.
6901 (symtab_can_be_discarded): Likewise.
6902 * cgraphbuild.c (mark_address): Likewise.
6903 (mark_load): Likewise.
6904 (mark_store): Likewise.
6905 * cgraphunit.c (decide_is_symbol_needed): Likewise.
6907 (enqueue_node): Likewise.
6908 (referred_to_p): Likewise.
6909 (cgraph_process_same_body_aliases): Likewise.
6910 (analyze_functions): Likewise.
6911 (handle_alias_pairs): Likewise.
6912 (output_weakrefs): Likewise.
6913 (compile): Likewise.
6914 * gimple-fold.c (can_refer_decl_in_current_unit_p): Likewise.
6915 * ipa-inline-analysis.c (inline_write_summary): Likewise.
6916 * ipa-prop.c (remove_described_reference): Likewise.
6917 (try_decrement_rdesc_refcount): Likewise.
6918 (ipa_edge_duplication_hook): Likewise.
6919 * ipa-ref.c (ipa_record_reference): Likewise.
6920 (ipa_maybe_record_reference): Likewise.
6921 (ipa_clone_ref): Likewise.
6922 (ipa_clone_references): Likewise.
6923 (ipa_clone_referring): Likewise.
6924 (ipa_find_reference): Likewise.
6925 (ipa_remove_stmt_references): Likewise.
6926 (ipa_clear_stmts_in_references): Likewise.
6927 * ipa-ref.h (symtab_node_base): Likewise.
6928 (ipa_ref): Likewise.
6929 (ipa_record_reference): Likewise.
6930 (ipa_maybe_record_reference): Likewise.
6931 (ipa_clone_references): Likewise.
6932 (ipa_clone_referring): Likewise.
6933 (ipa_clone_ref): Likewise.
6934 (ipa_find_reference): Likewise.
6935 (ipa_remove_stmt_references): Likewise.
6936 (ipa_clear_stmts_in_references): Likewise.
6937 * ipa-reference.c (ipa_reference_write_optimization_summary):
6939 * ipa.c (enqueue_node): Likewise.
6940 (process_references): Likewise.
6941 (walk_polymorphic_call_targets): Likewise.
6942 (symtab_remove_unreachable_nodes): Likewise.
6943 (address_taken_from_non_vtable_p): Likewise.
6944 (comdat_can_be_unshared_p_1): Likewise.
6945 (comdat_can_be_unshared_p): Likewise.
6946 (can_replace_by_local_alias): Likewise.
6947 (function_and_variable_visibility): Likewise.
6948 * is-a.h: Likewise (within example in comment).
6949 * lto-cgraph.c (input_cgraph_opt_summary): Likewise.
6950 (lto_symtab_encoder_encode): Likewise.
6951 (lto_symtab_encoder_delete_node): Likewise.
6952 (lto_symtab_encoder_in_partition_p): Likewise.
6953 (lto_set_symtab_encoder_in_partition): Likewise.
6954 (output_refs): Likewise.
6955 (compute_ltrans_boundary): Likewise.
6956 (output_symtab): Likewise.
6957 (input_node): Likewise.
6958 (input_ref): Likewise.
6959 (input_edge): Likewise.
6960 (input_cgraph_1): Likewise.
6961 (input_refs): Likewise.
6962 (output_cgraph_opt_summary): Likewise.
6963 (input_node_opt_summary): Likewise.
6964 (input_cgraph_opt_section): Likewise.
6965 * lto-section-in.c (lto_free_function_in_decl_state_for_node):
6967 * lto-streamer-out.c (lto_output): Likewise.
6968 (output_symbol_p): Likewise.
6969 (produce_symtab): Likewise.
6970 * lto-streamer.h (lto_encoder_entry): Likewise.
6971 (lto_free_function_in_decl_state_for_node): Likewise.
6972 (lto_symtab_encoder_encode): Likewise.
6973 (lto_symtab_encoder_delete_node): Likewise.
6974 (lto_symtab_encoder_in_partition_p): Likewise.
6975 (lto_set_symtab_encoder_in_partition): Likewise.
6976 (lto_symtab_encoder_lookup): Likewise.
6977 (lsei_node): Likewise.
6978 (lto_symtab_encoder_deref): Likewise.
6979 * symtab.c (symtab_hash): Likewise.
6980 (assembler_name_hash): Likewise.
6981 (symtab_nodes): Likewise.
6982 (hash_node): Likewise.
6983 (eq_node): Likewise.
6984 (hash_node_by_assembler_name): Likewise.
6985 (eq_assembler_name): Likewise.
6986 (insert_to_assembler_name_hash): Likewise.
6987 (unlink_from_assembler_name_hash): Likewise.
6988 (symtab_prevail_in_asm_name_hash): Likewise.
6989 (symtab_register_node): Likewise.
6990 (symtab_insert_node_to_hashtable): Likewise.
6991 (symtab_unregister_node): Likewise.
6992 (symtab_get_node): Likewise.
6993 (symtab_remove_node): Likewise.
6994 (symtab_initialize_asm_name_hash): Likewise.
6995 (symtab_node_for_asm): Likewise.
6996 (symtab_add_to_same_comdat_group): Likewise.
6997 (symtab_dissolve_same_comdat_group_list): Likewise.
6998 (symtab_node_asm_name): Likewise.
6999 (symtab_node_name): Likewise.
7000 (dump_symtab_base): Likewise.
7001 (dump_symtab_node): Likewise.
7002 (dump_symtab): Likewise.
7003 (debug_symtab_node): Likewise.
7004 (verify_symtab_base): Likewise.
7005 (verify_symtab_node): Likewise.
7006 (verify_symtab): Likewise.
7007 (symtab_used_from_object_file_p): Likewise.
7008 (symtab_node_availability): Likewise.
7009 (symtab_alias_ultimate_target): Likewise.
7010 (fixup_same_cpp_alias_visibility): Likewise.
7011 (symtab_resolve_alias): Likewise.
7012 (symtab_for_node_and_aliases): Likewise.
7013 (symtab_for_node_and_aliases): Likewise.
7014 (symtab_nonoverwritable_alias_1): Likewise.
7015 (symtab_nonoverwritable_alias): Likewise.
7016 (symtab_semantically_equivalent_p): Likewise.
7017 * value-prof.c (init_node_map): Likewise.
7018 * varasm.c (find_decl): Likewise.
7019 * varpool.c (varpool_node_for_asm): Likewise.
7020 (varpool_remove_unreferenced_decls): Likewise.
7022 2013-10-31 David Malcolm <dmalcolm@redhat.com>
7024 Manual part of renaming of symtab_node_base to symtab_node.
7026 * ipa-ref.h (symtab_node): Remove typedef to pointer type, as it
7027 clashes with the preferred name for the base class.
7028 (const_symtab_node): Remove redundant typedef.
7030 2013-10-31 Jakub Jelinek <jakub@redhat.com>
7032 * optabs.c (expand_vec_perm): Avoid vector mode punning
7033 SUBREGs in SET_DEST.
7034 * expmed.c (store_bit_field_1): Likewise.
7035 * config/i386/sse.md (movdi_to_sse, vec_pack_sfix_trunc_v2df,
7036 vec_pack_sfix_v2df, vec_shl_<mode>, vec_shr_<mode>,
7037 vec_interleave_high<mode>, vec_interleave_low<mode>): Likewise.
7038 * config/i386/i386.c (ix86_expand_vector_move_misalign,
7039 ix86_expand_sse_movcc, ix86_expand_int_vcond, ix86_expand_vec_perm,
7040 ix86_expand_sse_unpack, ix86_expand_args_builtin,
7041 ix86_expand_vector_init_duplicate, ix86_expand_vector_set,
7042 emit_reduc_half, expand_vec_perm_blend, expand_vec_perm_pshufb,
7043 expand_vec_perm_interleave2, expand_vec_perm_pshufb2,
7044 expand_vec_perm_vpshufb2_vpermq,
7045 expand_vec_perm_vpshufb2_vpermq_even_odd, expand_vec_perm_even_odd_1,
7046 expand_vec_perm_broadcast_1, expand_vec_perm_vpshufb4_vpermq2,
7047 ix86_expand_sse2_mulv4si3, ix86_expand_pinsr): Likewise.
7048 (expand_vec_perm_palignr): Likewise. Modify a copy of *d rather
7051 2013-10-31 Uros Bizjak <ubizjak@gmail.com>
7053 * config/i386/i386.c (ix86_expand_sse2_abs): Rename function arguments.
7054 Use gcc_unreachable for unhandled modes. Do not check results of
7055 expand_simple_binop. If not expanded to target, move the result.
7057 2013-10-31 Chung-Ju Wu <jasonwucj@gmail.com>
7058 Shiva Chen <shiva0217@gmail.com>
7060 * config.gcc (nds32*-*-*): Add nds32 target.
7061 * config/nds32/nds32.c: New file.
7062 * config/nds32/nds32.h: New file.
7063 * config/nds32/nds32.md: New file.
7064 * config/nds32/constants.md: New file.
7065 * config/nds32/constraints.md: New file.
7066 * config/nds32/iterators.md: New file.
7067 * config/nds32/nds32-doubleword.md: New file.
7068 * config/nds32/nds32-intrinsic.md: New file.
7069 * config/nds32/nds32_intrinsic.h: New file.
7070 * config/nds32/nds32-modes.def: New file.
7071 * config/nds32/nds32-multiple.md: New file.
7072 * config/nds32/nds32.opt: New file.
7073 * config/nds32/nds32-opts.h: New file.
7074 * config/nds32/nds32-protos.h: New file.
7075 * config/nds32/nds32-peephole2.md: New file.
7076 * config/nds32/pipelines.md: New file.
7077 * config/nds32/predicates.md: New file.
7078 * config/nds32/t-mlibs: New file.
7079 * common/config/nds32: New directory and files.
7081 * doc/invoke.texi (NDS32 options): Document nds32 specific options.
7082 * doc/md.texi (NDS32 family): Document nds32 specific constraints.
7083 * doc/install.texi (Cross-Compiler-Specific Options): Document
7084 --with-nds32-lib for nds32 target.
7085 * doc/extend.texi (Function Attributes, Target Builtins): Document
7086 nds32 specific attributes.
7088 2013-10-31 Vladimir Makarov <vmakarov@redhat.com>
7090 * lra-constraints (process_alt_operands): Use the result
7091 elimination register for operand when matching constraints.
7093 2013-10-31 Jakub Jelinek <jakub@redhat.com>
7095 * tree-vrp.c (maybe_set_nonzero_bits): New function.
7096 (remove_range_assertions): Call it.
7098 * tree.c (tree_ctz): New function.
7099 * tree.h (tree_ctz): New prototype.
7100 * tree-ssanames.h (get_range_info, get_nonzero_bits): Change
7101 first argument from tree to const_tree.
7102 * tree-ssanames.c (get_range_info, get_nonzero_bits): Likewise.
7103 * tree-vectorizer.h (vect_generate_tmps_on_preheader): New prototype.
7104 * tree-vect-loop-manip.c (vect_generate_tmps_on_preheader): No longer
7106 * expr.c (highest_pow2_factor): Reimplemented using tree_ctz.
7107 * tree-vect-loop.c (vect_analyze_loop_operations,
7108 vect_transform_loop): Don't force scalar loop for bound just because
7109 number of iterations is unknown, only do it if it is not known to be
7110 a multiple of vectorization_factor.
7111 * builtins.c (get_object_alignment_2): Use tree_ctz on offset.
7113 * gimple-pretty-print.c (dump_ssaname_info): Print newline also
7114 in case of VR_VARYING. Print get_nonzero_bits if not all ones.
7115 * tree-ssanames.h (struct range_info_def): Add nonzero_bits field.
7116 (set_nonzero_bits, get_nonzero_bits): New prototypes.
7117 * tree-ssa-ccp.c (get_default_value): Use get_range_info to see if
7118 a default def isn't partially constant.
7119 (ccp_finalize): If after IPA, set_range_info if integral SSA_NAME
7120 is known to be partially zero.
7121 (evaluate_stmt): If we'd return otherwise VARYING, use get_range_info
7122 to see if a default def isn't partially constant.
7123 * tree-ssanames.c (set_range_info): Initialize nonzero_bits upon
7124 creation of a range, if VR_RANGE, try to improve nonzero_bits from
7126 (set_nonzero_bits, get_nonzero_bits): New functions.
7128 * tree-cfg.c (assert_unreachable_fallthru_edge_p): New function.
7129 * tree-cfg.h (assert_unreachable_fallthru_edge_p): New prototype.
7130 * tree-vrp.c (all_imm_uses_in_stmt_or_feed_cond): New function.
7131 (remove_range_assertions): If ASSERT_EXPR_VAR has no other immediate
7132 uses but in the condition and ASSERT_EXPR and the other successor of
7133 the predecessor bb is __builtin_unreachable (), set_range_info of the
7134 ASSERT_EXPR_VAR to the range info of the ASSERT_EXPR's lhs.
7136 2013-10-31 Martin Jambor <mjambor@suse.cz>
7138 PR rtl-optimization/58934
7140 2013-10-30 Martin Jambor <mjambor@suse.cz>
7141 PR rtl-optimization/10474
7142 * ira.c (find_moveable_pseudos): Do not calculate dominance info
7144 (interesting_dest_for_shprep): New function.
7145 (split_live_ranges_for_shrink_wrap): Likewise.
7146 (ira): Calculate dominance info and df analysis. Call
7147 split_live_ranges_for_shrink_wrap.
7149 2013-10-31 Richard Sandiford <rsandifo@linux.vnet.ibm.com>
7150 Yury Gribov <y.gribov@samsung.com>
7153 * asan.c (asan_clear_shadow): Allocate a new vreg for temporary
7154 shadow pointer to avoid clobbering the main one.
7156 2013-10-31 Zhenqiang Chen <zhenqiang.chen@linaro.org>
7158 * lower-subreg.c (resolve_simple_move): Copy REG_INC note.
7160 2013-10-30 Vladimir Makarov <vmakarov@redhat.com>
7163 * ira-color.c (update_costs_from_copies): Add new parameter. Use
7164 it for calling update_costs_from_allocno.
7165 (assign_hard_reg): Call restore_costs_from_copies only for
7166 !retry_p. Pass new argument to update_costs_from_copies.
7167 (color_pass): Pass new argument to update_costs_from_copies.
7168 (ira_mark_allocation_change): Ditto.
7170 2013-10-30 Sharad Singhai <singhai@google.com>
7173 * opts.c (common_handle_option): Remove deprecated option
7174 -ftree-vectorizer-verbose.
7175 * doc/invoke.texi (Debugging Options): Ditto.
7176 * opts-global.c (handle_common_deferred_options): Ditto.
7177 (dump_remap_tree_vectorizer_verbose): Delete.
7178 * common.opt: Set -ftree-vectorizer-verbose as an ignored option.
7180 2013-10-30 DJ Delorie <dj@redhat.com>
7182 * config/rx/rx.c (ADD_RX_BUILTIN0): New macro, used for builtins
7183 that take no arguments.
7185 2013-10-30 Joern Rennecke <joern.rennecke@embecosm.com>
7188 * reload1.c (update_eliminables_and_spill): New function, broken
7190 (reload): Use it. Check for frame size change after frame size
7191 alignment, and call update_eliminables_and_spill first if continue-ing.
7193 2013-10-30 Cong Hou <congh@google.com>
7196 * config/i386/i386-protos.h (ix86_expand_sse2_abs): New function.
7197 * config/i386/i386.c (ix86_expand_sse2_abs): New function.
7198 * config/i386/sse.md: Add SSE2 support to abs (8/16/32-bit-int).
7200 2013-10-18 Mikael Pettersson <mikpelinux@gmail.com>
7202 PR rtl-optimization/58369
7203 * reload1.c (compute_reload_subreg_offset): New function.
7204 (choose_reload_regs): Use it to pass endian-correct
7205 offset to subreg_regno_offset.
7207 2013-10-30 Tobias Burnus <burnus@net-b.de>
7210 * tree-cfg.c (replace_loop_annotate): Replace warning by
7213 2013-10-30 Jason Merrill <jason@redhat.com>
7215 * configure.ac (loose_warn): Add -Wno-format if
7216 --disable-build-format-warnings.
7218 2013-10-30 David Malcolm <dmalcolm@redhat.com>
7220 * cgraphunit.c (analyze_functions): Split symtab_node declarations
7221 onto multiple lines to make things easier for rename_symtab.py.
7223 * symtab.c (symtab_dissolve_same_comdat_group_list): Likewise.
7224 (symtab_semantically_equivalent_p): Likewise.
7226 2013-10-30 Vladimir Makarov <vmakarov@redhat.com>
7229 * lra.c (check_rtl): Remove address check before LRA work.
7231 2013-10-30 Marc Glisse <marc.glisse@inria.fr>
7233 * tree-ssa-alias.c (ao_ref_init_from_ptr_and_size): Look for a
7234 POINTER_PLUS_EXPR in the defining statement.
7236 2013-10-30 Vladimir Makarov <vmakarov@redhat.com>
7238 * regmove.c: Remove.
7239 * tree-pass.h (make_pass_regmove): Remove.
7240 * timevar.def (TV_REGMOVE): Remove.
7241 * passes.def (pass_regmove): Remove.
7242 * opts.c (default_options_table): Remove entry for regmove.
7243 * doc/passes.texi: Remove regmove pass description.
7244 * doc/invoke.texi (-foptimize-register-move, -fregmove): Remove
7246 (-fdump-rtl-regmove): Ditto.
7247 * common.opt (foptimize-register-move, fregmove): Ignore.
7248 * Makefile.in (OBJS): Remove regmove.o.
7249 * regmove.c: Remove.
7250 * ira-int.h (struct ira_allocno_pref, ira_pref_t): New structure
7252 (struct ira_allocno) New member allocno_prefs.
7253 (ALLOCNO_PREFS): New macro.
7254 (ira_prefs, ira_prefs_num): New external vars.
7255 (ira_setup_alts, ira_get_dup_out_num, ira_debug_pref): New prototypes.
7256 (ira_debug_prefs, ira_debug_allocno_prefs, ira_create_pref): Ditto.
7257 (ira_add_allocno_pref, ira_remove_pref, ira_remove_allocno_prefs):
7259 (ira_add_allocno_copy_to_list): Remove prototype.
7260 (ira_swap_allocno_copy_ends_if_necessary): Ditto.
7261 (ira_pref_iterator): New type.
7262 (ira_pref_iter_init, ira_pref_iter_cond): New functions.
7263 (FOR_EACH_PREF): New macro.
7264 * ira.c (commutative_constraint_p): Move from ira-conflicts.c.
7265 (ira_get_dup_out_num): Ditto. Rename from get_dup_num. Modify the
7267 (ira_setup_alts): New function.
7268 (decrease_live_ranges_number): New function.
7269 (ira): Call the above function.
7270 * ira-build.c (ira_prefs, ira_prefs_num): New global vars.
7271 (ira_create_allocno): Initialize allocno prefs.
7272 (pref_pool, pref_vec): New static vars.
7273 (initiate_prefs, find_allocno_pref, ira_create_pref): New
7275 (add_allocno_pref_to_list, ira_add_allocno_pref, print_pref): Ditto.
7276 (ira_debug_pref, print_prefs, ira_debug_prefs): Ditto.
7277 (print_allocno_prefs, ira_debug_allocno_prefs, finish_pref): Ditto.
7278 (ira_remove_pref, ira_remove_allocno_prefs, finish_prefs): Ditto.
7279 (ira_add_allocno_copy_to_list): Make static. Rename to
7280 add_allocno_copy_to_list.
7281 (ira_swap_allocno_copy_ends_if_necessary): Make static. Rename to
7282 swap_allocno_copy_ends_if_necessary.
7283 (remove_unnecessary_allocnos, remove_low_level_allocnos): Call
7284 ira_remove_allocno_prefs.
7285 (ira_flattening): Ditto.
7286 (ira_build): Call initiate_prefs, print_prefs.
7287 (ira_destroy): Call finish_prefs.
7288 * ira-color.c (struct update_cost_record): New.
7289 (struct allocno_color_data): Add new member update_cost_records.
7290 (update_cost_record_pool): New static var.
7291 (init_update_cost_records, get_update_cost_record): New functions.
7292 (free_update_cost_record_list, finish_update_cost_records): Ditto.
7293 (struct update_cost_queue_elem): Add member from.
7294 (initiate_cost_update): Call init_update_cost_records.
7295 (finish_cost_update): Call finish_update_cost_records.
7296 (queue_update_cost, get_next_update_cost): Add new param from.
7297 (Update_allocno_cost, update_costs_from_allocno): New functions.
7298 (update_costs_from_prefs): Ditto.
7299 (update_copy_costs): Rename to update_costs_from_copies.
7300 (restore_costs_from_copies): New function.
7301 (update_conflict_hard_regno_costs): Don't go back.
7302 (assign_hard_reg): Call restore_costs_from_copies. Add printing
7304 (pop_allocnos): Add priniting more debug info.
7305 (color_allocnos): Remove prefs for conflicting hard regs.
7306 Call update_costs_from_prefs.
7307 * ira-conflicts.c (commutative_constraint_p): Move to ira.c
7308 (get_dup_num): Rename, modify, and move to ira.c
7309 (process_regs_for_copy): Add prefs.
7310 (add_insn_allocno_copies): Put src as first arg of
7311 process_regs_for_copy. Remove dead code. Call ira_setup_alts.
7312 * ira-costs.c (record_reg_classes): Modify and move code into
7313 record_operands_costs.
7314 (find_costs_and_classes): Create prefs for the hard reg of small
7316 (process_bb_node_for_hard_reg_moves): Add prefs.
7318 2013-10-30 Richard Biener <rguenther@suse.de>
7321 * basic-block.h (pre_and_rev_post_order_compute_fn): New function.
7322 * cfganal.c (pre_and_rev_post_order_compute_fn): New function
7324 (pre_and_rev_post_order_compute): ... which now wraps it.
7325 * graph.c (draw_cfg_nodes_no_loops): Use
7326 pre_and_rev_post_order_compute_fn to avoid ICEing and dependence
7329 2013-10-30 Christian Bruel <christian.bruel@st.com>
7331 * config/sh/sh-mem.cc (sh_expand_cmpnstr): New function.
7332 (sh_expand_cmpstr): Handle known align and schedule improvements.
7333 * config/sh/sh-protos.h (sh_expand_cmpstrn): Declare.
7334 * config/sh/sh.md (cmpstrnsi): New pattern.
7336 2013-10-30 Martin Jambor <mjambor@suse.cz>
7338 PR rtl-optimization/10474
7339 * ira.c (find_moveable_pseudos): Do not calculate dominance info
7341 (interesting_dest_for_shprep): New function.
7342 (split_live_ranges_for_shrink_wrap): Likewise.
7343 (ira): Calculate dominance info and df analysis. Call
7344 split_live_ranges_for_shrink_wrap.
7346 2013-10-30 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
7349 * config/arm/arm.c (arm_expand_epilogue_apcs_frame): Emit blockage.
7351 2013-10-30 Ilya Enkovich <ilya.enkovich@intel.com>
7353 * tree-core.h (tree_index): Add TI_POINTER_BOUNDS_TYPE.
7354 * tree.h (POINTER_BOUNDS_P): New.
7355 (BOUNDED_TYPE_P): New.
7357 (pointer_bounds_type_node): New.
7358 * tree.c (build_common_tree_nodes): Initialize
7359 pointer_bounds_type_node.
7360 * gimple.h (gimple_call_get_nobnd_arg_index): New.
7361 (gimple_call_num_nobnd_args): New.
7362 (gimple_call_nobnd_arg): New.
7363 (gimple_return_retbnd): New.
7364 (gimple_return_set_retbnd): New
7365 * gimple.c (gimple_build_return): Increase number of ops
7366 for return statement.
7367 (gimple_call_get_nobnd_arg_index): New.
7368 * gimple-pretty-print.c (dump_gimple_return): Print second op.
7370 2013-10-30 Ilya Enkovich <ilya.enkovich@intel.com>
7372 * ipa.c (cgraph_build_static_cdtor_1): Support contructors
7373 with "chkp ctor" and "bnd_legacy" attributes.
7374 * gimplify.c (gimplify_init_constructor): Avoid infinite
7375 loop during gimplification of bounds initializer.
7377 2013-10-30 Ilya Enkovich <ilya.enkovich@intel.com>
7379 * c-family/c-common.c (handle_bnd_variable_size_attribute): New.
7380 (handle_bnd_legacy): New.
7381 (c_common_attribute_table): Add bnd_variable_size and bnd_legacy.
7382 * doc/extend.texi: Document bnd_variable_size and bnd_legacy
7385 2013-10-29 Ilya Enkovich <ilya.enkovich@intel.com>
7387 * builtin-types.def (BT_FN_VOID_CONST_PTR): New.
7388 (BT_FN_PTR_CONST_PTR): New.
7389 (BT_FN_CONST_PTR_CONST_PTR): New.
7390 (BT_FN_PTR_CONST_PTR_SIZE): New.
7391 (BT_FN_PTR_CONST_PTR_CONST_PTR): New.
7392 (BT_FN_VOID_PTRPTR_CONST_PTR): New.
7393 (BT_FN_VOID_CONST_PTR_SIZE): New.
7394 (BT_FN_PTR_CONST_PTR_CONST_PTR_SIZE): New.
7395 * chkp-builtins.def: New.
7396 * builtins.def: include chkp-builtins.def.
7397 (DEF_CHKP_BUILTIN): New.
7398 * builtins.c (expand_builtin): Support BUILT_IN_CHKP_INIT_PTR_BOUNDS,
7399 BUILT_IN_CHKP_NULL_PTR_BOUNDS, BUILT_IN_CHKP_COPY_PTR_BOUNDS,
7400 BUILT_IN_CHKP_CHECK_PTR_LBOUNDS, BUILT_IN_CHKP_CHECK_PTR_UBOUNDS,
7401 BUILT_IN_CHKP_CHECK_PTR_BOUNDS, BUILT_IN_CHKP_SET_PTR_BOUNDS,
7402 BUILT_IN_CHKP_NARROW_PTR_BOUNDS, BUILT_IN_CHKP_STORE_PTR_BOUNDS,
7403 BUILT_IN_CHKP_GET_PTR_LBOUND, BUILT_IN_CHKP_GET_PTR_UBOUND,
7404 BUILT_IN_CHKP_BNDMK, BUILT_IN_CHKP_BNDSTX, BUILT_IN_CHKP_BNDCL,
7405 BUILT_IN_CHKP_BNDCU, BUILT_IN_CHKP_BNDLDX, BUILT_IN_CHKP_BNDRET,
7406 BUILT_IN_CHKP_INTERSECT, BUILT_IN_CHKP_ARG_BND, BUILT_IN_CHKP_NARROW,
7407 BUILT_IN_CHKP_EXTRACT_LOWER, BUILT_IN_CHKP_EXTRACT_UPPER.
7408 * common.opt (fcheck-pointer-bounds): New.
7409 * toplev.c (process_options): Check Pointer Bounds Checker is
7411 * doc/extend.texi: Document Pointer Bounds Checker built-in functions.
7413 2013-10-30 Ilya Enkovich <ilya.enkovich@intel.com>
7415 * target.def (builtin_chkp_function): New.
7416 (chkp_bound_type): New.
7417 (chkp_bound_mode): New.
7418 (fn_abi_va_list_bounds_size): New.
7419 (load_bounds_for_arg): New.
7420 (store_bounds_for_arg): New.
7421 * targhooks.h (default_load_bounds_for_arg): New.
7422 (default_store_bounds_for_arg): New.
7423 (default_fn_abi_va_list_bounds_size): New.
7424 (default_chkp_bound_type): New.
7425 (default_chkp_bound_mode): New.
7426 (default_builtin_chkp_function): New.
7427 * targhooks.c (default_load_bounds_for_arg): New.
7428 (default_store_bounds_for_arg): New.
7429 (default_fn_abi_va_list_bounds_size): New.
7430 (default_chkp_bound_type): New.
7431 (default_chkp_bound_mode); New.
7432 (default_builtin_chkp_function): New.
7433 * doc/tm.texi.in (TARGET_FN_ABI_VA_LIST_BOUNDS_SIZE): New.
7434 (TARGET_LOAD_BOUNDS_FOR_ARG): New.
7435 (TARGET_STORE_BOUNDS_FOR_ARG): New.
7436 (TARGET_BUILTIN_CHKP_FUNCTION): New.
7437 (TARGET_CHKP_BOUND_TYPE): New.
7438 (TARGET_CHKP_BOUND_MODE): New.
7439 * doc/tm.texi: Regenerated.
7440 * langhooks.h (lang_hooks): Add chkp_supported field.
7441 * langhooks-def.h (LANG_HOOKS_CHKP_SUPPORTED): New.
7442 (LANG_HOOKS_INITIALIZER); Add LANG_HOOKS_CHKP_SUPPORTED.
7444 2013-10-29 Andrew Pinski <apinski@cavium.com>
7446 * tree-ssa-ifcombine.c: Include rtl.h and tm_p.h.
7447 (ifcombine_ifandif): Handle cases where maybe_fold_and_comparisons
7448 fails, combining the branches anyways.
7449 (tree_ssa_ifcombine): Inverse the order of the basic block walk,
7450 increases the number of combinings.
7451 * gimple.h (gsi_start_nondebug_after_labels_bb): New function.
7453 2013-10-29 Mike Stump <mikestump@comcast.net>
7455 * machmode.def (PARTIAL_INT_MODE): Add precision and name.
7456 * genmodes.c (PARTIAL_INT_MODE): Add precision and name.
7457 (make_vector_mode): Increase namebuf to 16.
7458 (emit_insn_modes_h): When processing BImode, don't
7459 also match partial int modes.
7460 (emit_class_narrowest_mode): Likewise.
7462 * config/bfin/bfin-modes.def: Add precision to PDI.
7463 * config/m32c/m32c-modes.def: Add precision to PSI.
7464 * config/msp430/msp430-modes.def: Add precision to PSI.
7465 * config/rs6000/rs6000-modes.def: Add precision to PTI.
7466 * config/sh/sh-modes.def: Add precision to PSI and PDI.
7468 2013-10-29 Oleg Endo <olegendo@gcc.gnu.org>
7471 * config/sh/sh.md (*addc): Rename existing variations to ...
7472 (*addc_r_r_1, *addc_2r_1, *addc_r_1): ... these.
7473 (*addc_r_lsb, *addc_r_r_lsb, *addc_r_lsb_r, *addc_2r_lsb, *addc_r_msb,
7474 *addc_r_r_msb, *addc_2r_msb): New insn_and_split patterns.
7475 * config/sh/sh.c (addsubcosts): Handle some addc special cases.
7477 2013-10-29 Teresa Johnson <tejohnson@google.com>
7480 * tree-ssa-tail-merge.c (replace_block_by): Tolerate profile
7481 insanities when updating probabilities.
7483 2013-10-29 David Malcolm <dmalcolm@redhat.com>
7485 * gdbhooks.py (CGraphNodePrinter.to_string): Update gdb
7486 prettyprinter for cgraph_node to reflect the conversion of the
7487 symtable types to a C++ class hierarchy: it now *is* a
7488 symtab_node_base, rather than having one (named "symbol").
7490 2013-10-29 Balaji V. Iyer <balaji.v.iyer@intel.com>
7492 * builtins.c (is_builtin_name): Added a check for __cilkrts_detach and
7493 __cilkrts_pop_frame. If matched, then return true for built-in
7495 (expand_builtin): Added BUILT_IN_CILK_DETACH and
7496 BUILT_IN_CILK_POP_FRAME case.
7497 * langhooks-def.h (lhd_install_body_with_frame_cleanup): New prototype.
7498 (lhs_cilk_detect_spawn): Likewise.
7499 (LANG_HOOKS_DECLS): Added LANG_HOOKS_CILKPLUS.
7500 (LANG_HOOKS_CILKPLUS_DETECT_SPAWN_AND_UNWRAP): New #define.
7501 (LANG_HOOKS_CILKPLUS_FRAME_CLEANUP): Likewise.
7502 (LANG_HOOKS_CILKPLUS_GIMPLIFY_SPAWN): Likewise.
7503 (LANG_HOOKS_CILKPLUS): Likewise.
7504 * tree.h (CILK_SPAWN_FN): Likewise.
7505 * builtin.def (DEF_CILK_BUILTIN_STUB): Likewise.
7506 * Makefile.in (C_COMMON_OBJS): Added c-family/cilk.o.
7507 (OBJS): Added cilk-common.o.
7508 (BUILTINS_DEF): Added cilk-builtins.def.
7509 * langhooks.c (lhd_install_body_with_frame_cleanup): New function.
7510 (lhd_cilk_detect_spawn): Likewise.
7511 * langhooks.h (lang_hooks_for_cilkplus): New struct.
7512 (struct lang_hooks): Added new field called "cilkplus."
7513 * cilk-common.c: New file.
7515 * cilk-builtins.def: Likewise.
7516 * cppbuiltin.c (define_builtin_macros_for_compilation_flags): Added
7517 "__cilk" macro and set it to 200.
7518 * function.h (struct function::cilk_frame_decl): New field.
7519 (struct function::is_cilk_function): Likewise.
7520 (struct function::calls_cilk_spawn): Likewise.
7521 * gimplify.c (gimplify_call_expr): Added a check if the function call
7522 being gimplified is a spawn detach point. If so, then add pop_frame
7523 and detach function calls.
7524 (gimplify_expr): Added a CILK_SPAWN_STMT and CILK_SYNC_STMT case
7525 for gimplifying _Cilk_spawn and _Cilk_sync statements.
7526 (gimplify_return_expr): Added a check for _Cilk_spawn usage in
7527 function. If so, added a _Cilk_sync and gimplified it.
7528 (gimplify_modify_expr): Added a check for _Cilk_spawn in MODIFY and
7529 INIT_EXPRs. If so, then call gimplify_cilk_spawn.
7530 * ipa-inline-analysis (initialize_inline_failed): Prevent inlining of
7532 (can_inline_edge_p): Prevent inling of spawnee function.
7533 * ira.c (ira_setup_eliminable_regset): Force usage of frame pointer
7534 for functions that use Cilk keywords.
7535 * tree-inline.h (struct copy_body_data::remap_var_for_cilk): New field.
7536 * tree-pretty-print.c (dump_generic_node): Added CILK_SPAWN_STMT and
7537 CILK_SYNC_STMT cases.
7538 * tree.def (DEFTREECODE): Added CILK_SPAWN_STMT and CILK_SYNC_STMT
7540 * generic.texi (CILK_SPAWN_STMT): Added documentation for _Cilk_spawn.
7541 (CILK_SYNC_STMT): Added documentation for _Cilk_sync.
7542 * passes.texi (Cilk Keywords): New section that describes the compiler
7543 code changes for handling Cilk Keywords.
7545 2013-10-29 David Malcolm <dmalcolm@redhat.com>
7547 Patch autogenerated by refactor_symtab.py from
7548 https://github.com/davidmalcolm/gcc-refactoring-scripts
7549 revision 58bb219cc090b2f4516a9297d868c245495ee622
7551 * asan.c (asan_finish_file): Update for conversion of symtab types to
7552 a true class hierarchy.
7553 * cfgexpand.c (estimated_stack_frame_size): Likewise.
7554 * cgraph.c (cgraph_get_body): Likewise.
7555 (cgraph_get_create_real_symbol_node): Likewise.
7556 (verify_cgraph_node): Likewise.
7557 (verify_edge_corresponds_to_fndecl): Likewise.
7558 (verify_edge_count_and_frequency): Likewise.
7559 (cgraph_will_be_removed_from_program_if_no_direct_calls): Likewise.
7560 (cgraph_can_remove_if_no_direct_calls_p): Likewise.
7561 (cgraph_can_remove_if_no_direct_calls_and_refs_p): Likewise.
7562 (cgraph_node_cannot_return): Likewise.
7563 (cgraph_set_pure_flag_1): Likewise.
7564 (cgraph_set_const_flag_1): Likewise.
7565 (cgraph_set_nothrow_flag_1): Likewise.
7566 (cgraph_make_node_local_1): Likewise.
7567 (cgraph_for_node_and_aliases): Likewise.
7568 (cgraph_for_node_thunks_and_aliases): Likewise.
7569 (cgraph_node_can_be_local_p): Likewise.
7570 (cgraph_node_cannot_be_local_p_1): Likewise.
7571 (cgraph_function_body_availability): Likewise.
7572 (dump_cgraph_node): Likewise.
7573 (cgraph_rtl_info): Likewise.
7574 (cgraph_mark_address_taken_node): Likewise.
7575 (cgraph_remove_node): Likewise.
7576 (cgraph_release_function_body): Likewise.
7577 (cgraph_update_edges_for_call_stmt_node): Likewise.
7578 (cgraph_redirect_edge_call_stmt_to_callee): Likewise.
7579 (cgraph_make_edge_direct): Likewise.
7580 (cgraph_resolve_speculation): Likewise.
7581 (cgraph_speculative_call_info): Likewise.
7582 (cgraph_turn_edge_to_speculative): Likewise.
7583 (cgraph_create_edge_1): Likewise.
7584 (cgraph_set_call_stmt): Likewise.
7585 (cgraph_node_for_asm): Likewise.
7586 (cgraph_add_thunk): Likewise.
7587 (cgraph_same_body_alias): Likewise.
7588 (cgraph_create_function_alias): Likewise.
7589 (cgraph_create_node): Likewise.
7590 (cgraph_create_empty_node): Likewise.
7591 (record_function_versions): Likewise.
7592 (used_from_object_file_p): Likewise.
7593 * cgraph.h (symtab_can_be_discarded): Likewise.
7594 (symtab_real_symbol_p): Likewise.
7595 (cgraph_mark_force_output_node): Likewise.
7596 (cgraph_edge_recursive_p): Likewise.
7597 (symtab_alias_target): Likewise.
7598 (varpool_all_refs_explicit_p): Likewise.
7599 (varpool_can_remove_if_no_refs): Likewise.
7600 (cgraph_only_called_directly_or_aliased_p): Likewise.
7601 (cgraph_next_function_with_gimple_body): Likewise.
7602 (cgraph_first_function_with_gimple_body): Likewise.
7603 (cgraph_function_with_gimple_body_p): Likewise.
7604 (cgraph_next_function): Likewise.
7605 (cgraph_first_function): Likewise.
7606 (cgraph_next_defined_function): Likewise.
7607 (cgraph_first_defined_function): Likewise.
7608 (varpool_next_defined_variable): Likewise.
7609 (varpool_first_defined_variable): Likewise.
7610 (varpool_next_static_initializer): Likewise.
7611 (varpool_first_static_initializer): Likewise.
7612 (varpool_next_variable): Likewise.
7613 (varpool_first_variable): Likewise.
7614 (varpool_node_name): Likewise.
7615 (varpool): Likewise.
7617 (is_a_helper <varpool_node>::test): Likewise.
7618 (is_a_helper <cgraph_node>::test): Likewise.
7619 (varpool_variable_node): Likewise.
7620 (cgraph_function_or_thunk_node): Likewise.
7621 (varpool_alias_target): Likewise.
7622 (cgraph_alias_target): Likewise.
7623 (cgraph_node_name): Likewise.
7624 (varpool_node_asm_name): Likewise.
7625 (cgraph_node_asm_name): Likewise.
7626 * cgraphbuild.c (remove_cgraph_callee_edges): Likewise.
7627 (cgraph_rebuild_references): Likewise.
7628 (rebuild_cgraph_edges): Likewise.
7629 (record_eh_tables): Likewise.
7630 (build_cgraph_edges): Likewise.
7631 (mark_store): Likewise.
7632 (mark_load): Likewise.
7633 (mark_address): Likewise.
7634 (record_type_list): Likewise.
7635 (record_reference): Likewise.
7636 * cgraphclones.c (cgraph_materialize_all_clones): Likewise.
7637 (cgraph_materialize_clone): Likewise.
7638 (cgraph_function_versioning): Likewise.
7639 (cgraph_copy_node_for_versioning): Likewise.
7640 (update_call_expr): Likewise.
7641 (cgraph_find_replacement_node): Likewise.
7642 (cgraph_create_virtual_clone): Likewise.
7643 (cgraph_clone_node): Likewise.
7644 * cgraphunit.c (compile): Likewise.
7645 (output_weakrefs): Likewise.
7646 (output_in_order): Likewise.
7647 (expand_function): Likewise.
7648 (assemble_thunks_and_aliases): Likewise.
7649 (expand_thunk): Likewise.
7650 (mark_functions_to_output): Likewise.
7651 (handle_alias_pairs): Likewise.
7652 (analyze_functions): Likewise.
7653 (walk_polymorphic_call_targets): Likewise.
7654 (varpool_finalize_decl): Likewise.
7655 (process_function_and_variable_attributes): Likewise.
7656 (cgraph_process_same_body_aliases): Likewise.
7657 (analyze_function): Likewise.
7658 (cgraph_add_new_function): Likewise.
7659 (cgraph_finalize_function): Likewise.
7660 (referred_to_p): Likewise.
7661 (cgraph_reset_node): Likewise.
7662 (cgraph_process_new_functions): Likewise.
7663 (enqueue_node): Likewise.
7664 (decide_is_symbol_needed): Likewise.
7665 * coverage.c (coverage_compute_profile_id): Likewise.
7666 * dbxout.c (dbxout_expand_expr): Likewise.
7667 * dwarf2out.c (premark_types_used_by_global_vars_helper): Likewise.
7668 (reference_to_unused): Likewise.
7669 * gimple-fold.c (can_refer_decl_in_current_unit_p): Likewise.
7670 * gimplify.c (unvisit_body): Likewise.
7671 (unshare_body): Likewise.
7672 * ipa-cp.c (ipcp_generate_summary): Likewise.
7673 (ipcp_decision_stage): Likewise.
7674 (identify_dead_nodes): Likewise.
7675 (decide_whether_version_node): Likewise.
7676 (decide_about_value): Likewise.
7677 (perhaps_add_new_callers): Likewise.
7678 (create_specialized_node): Likewise.
7679 (update_profiling_info): Likewise.
7680 (ipcp_propagate_stage): Likewise.
7681 (estimate_local_effects): Likewise.
7682 (good_cloning_opportunity_p): Likewise.
7683 (devirtualization_time_bonus): Likewise.
7684 (propagate_constants_accross_call): Likewise.
7685 (initialize_node_lattices): Likewise.
7686 (ipcp_cloning_candidate_p): Likewise.
7687 (determine_versionability): Likewise.
7688 (print_all_lattices): Likewise.
7689 (print_lattice): Likewise.
7690 (ipcp_discover_new_direct_edges): Likewise.
7691 * ipa-devirt.c (ipa_devirt): Likewise.
7692 (likely_target_p): Likewise.
7693 (update_type_inheritance_graph): Likewise.
7694 (possible_polymorphic_call_target_p): Likewise.
7695 (dump_possible_polymorphic_call_targets): Likewise.
7696 (devirt_variable_node_removal_hook): Likewise.
7697 (record_binfo): Likewise.
7698 (maybe_record_node): Likewise.
7699 (build_type_inheritance_graph): Likewise.
7700 * ipa-inline-analysis.c (inline_write_summary): Likewise.
7701 (inline_generate_summary): Likewise.
7702 (inline_analyze_function): Likewise.
7703 (do_estimate_growth): Likewise.
7704 (simple_edge_hints): Likewise.
7705 (estimate_node_size_and_time): Likewise.
7706 (estimate_edge_devirt_benefit): Likewise.
7707 (compute_inline_parameters): Likewise.
7708 (estimate_function_body_sizes): Likewise.
7709 (compute_bb_predicates): Likewise.
7710 (initialize_inline_failed): Likewise.
7711 (dump_inline_summary): Likewise.
7712 (dump_inline_edge_summary): Likewise.
7713 * ipa-inline-transform.c (inline_transform): Likewise.
7714 (preserve_function_body_p): Likewise.
7715 (save_inline_function_body): Likewise.
7716 (inline_call): Likewise.
7717 (clone_inlined_nodes): Likewise.
7718 (can_remove_node_now_p): Likewise.
7719 (can_remove_node_now_p_1): Likewise.
7720 * ipa-inline.c (early_inliner): Likewise.
7721 (early_inline_small_functions): Likewise.
7722 (inline_always_inline_functions): Likewise.
7723 (ipa_inline): Likewise.
7724 (flatten_function): Likewise.
7725 (inline_small_functions): Likewise.
7726 (speculation_useful_p): Likewise.
7727 (recursive_inlining): Likewise.
7728 (update_caller_keys): Likewise.
7729 (reset_edge_caches): Likewise.
7730 (update_edge_key): Likewise.
7731 (edge_badness): Likewise.
7732 (relative_time_benefit): Likewise.
7733 (want_inline_self_recursive_call_p): Likewise.
7734 (want_inline_small_function_p): Likewise.
7735 (want_early_inline_function_p): Likewise.
7736 (num_calls): Likewise.
7737 (can_early_inline_edge_p): Likewise.
7738 (can_inline_edge_p): Likewise.
7739 (report_inline_failed_reason): Likewise.
7740 * ipa-profile.c (ipa_profile): Likewise.
7741 (ipa_propagate_frequency): Likewise.
7742 (ipa_propagate_frequency_1): Likewise.
7743 (ipa_profile_generate_summary): Likewise.
7744 * ipa-prop.c (ipcp_transform_function): Likewise.
7745 (read_replacements_section): Likewise.
7746 (ipa_prop_read_section): Likewise.
7747 (ipa_modify_call_arguments): Likewise.
7748 (ipa_print_node_params): Likewise.
7749 (propagate_controlled_uses): Likewise.
7750 (update_indirect_edges_after_inlining): Likewise.
7751 (remove_described_reference): Likewise.
7752 (ipa_make_edge_direct_to_target): Likewise.
7753 (ipa_analyze_node): Likewise.
7754 (ipa_analyze_params_uses): Likewise.
7755 (ipa_compute_jump_functions): Likewise.
7756 (ipa_get_callee_param_type): Likewise.
7757 (ipa_print_node_jump_functions): Likewise.
7758 (ipa_initialize_node_params): Likewise.
7759 (ipa_populate_param_decls): Likewise.
7760 (ipa_func_spec_opts_forbid_analysis_p): Likewise.
7761 (write_agg_replacement_chain): Likewise.
7762 (ipa_write_node_info): Likewise.
7763 (ipa_edge_duplication_hook): Likewise.
7764 (try_decrement_rdesc_refcount): Likewise.
7765 * ipa-pure-const.c (propagate_nothrow): Likewise.
7766 (propagate_pure_const): Likewise.
7767 (pure_const_read_summary): Likewise.
7768 (pure_const_write_summary): Likewise.
7769 (analyze_function): Likewise.
7770 * ipa-ref-inline.h (ipa_ref_referred_ref_list): Likewise.
7771 (ipa_ref_referring_ref_list): Likewise.
7772 * ipa-ref.c (ipa_clear_stmts_in_references): Likewise.
7773 (ipa_remove_stmt_references): Likewise.
7774 (ipa_find_reference): Likewise.
7775 (ipa_dump_referring): Likewise.
7776 (ipa_dump_references): Likewise.
7777 (ipa_record_reference): Likewise.
7778 * ipa-reference.c (ipa_reference_read_optimization_summary): Likewise.
7779 (ipa_reference_write_optimization_summary): Likewise.
7780 (write_node_summary_p): Likewise.
7781 (propagate): Likewise.
7782 (read_write_all_from_decl): Likewise.
7783 (generate_summary): Likewise.
7784 (analyze_function): Likewise.
7785 (propagate_bits): Likewise.
7786 (ipa_reference_get_not_written_global): Likewise.
7787 (ipa_reference_get_not_read_global): Likewise.
7788 * ipa-split.c (execute_split_functions): Likewise.
7789 (split_function): Likewise.
7790 * ipa-utils.c (ipa_merge_profiles): Likewise.
7791 (dump_cgraph_node_set): Likewise.
7792 (ipa_reverse_postorder): Likewise.
7793 (ipa_edge_within_scc): Likewise.
7794 (ipa_get_nodes_in_cycle): Likewise.
7795 (ipa_free_postorder_info): Likewise.
7796 (ipa_reduced_postorder): Likewise.
7797 (searchc): Likewise.
7798 (recursive_call_p): Likewise.
7799 * ipa.c (ipa_cdtor_merge): Likewise.
7800 (record_cdtor_fn): Likewise.
7801 (function_and_variable_visibility): Likewise.
7802 (varpool_externally_visible_p): Likewise.
7803 (cgraph_externally_visible_p): Likewise.
7804 (comdat_can_be_unshared_p): Likewise.
7805 (comdat_can_be_unshared_p_1): Likewise.
7806 (address_taken_from_non_vtable_p): Likewise.
7807 (ipa_discover_readonly_nonaddressable_vars): Likewise.
7808 (symtab_remove_unreachable_nodes): Likewise.
7809 (walk_polymorphic_call_targets): Likewise.
7810 (process_references): Likewise.
7811 (enqueue_node): Likewise.
7812 (has_addr_references_p): Likewise.
7813 (cgraph_non_local_node_p_1): Likewise.
7814 * is-a.h (varpool_analyze_node): Likewise.
7815 * lto-cgraph.c (input_symtab): Likewise.
7816 (merge_profile_summaries): Likewise.
7817 (input_cgraph_1): Likewise.
7818 (input_edge): Likewise.
7819 (input_varpool_node): Likewise.
7820 (input_node): Likewise.
7821 (input_overwrite_node): Likewise.
7822 (compute_ltrans_boundary): Likewise.
7823 (output_refs): Likewise.
7824 (lto_output_varpool_node): Likewise.
7825 (lto_output_node): Likewise.
7826 (reachable_from_other_partition_p): Likewise.
7827 (referenced_from_other_partition_p): Likewise.
7828 (lto_output_edge): Likewise.
7829 (output_node_opt_summary): Likewise.
7830 (add_node_to): Likewise.
7831 (reachable_from_this_partition_p): Likewise.
7832 (lto_set_symtab_encoder_in_partition): Likewise.
7833 (lto_symtab_encoder_in_partition_p): Likewise.
7834 (lto_set_symtab_encoder_encode_initializer): Likewise.
7835 (lto_symtab_encoder_encode_initializer_p): Likewise.
7836 (lto_set_symtab_encoder_encode_body): Likewise.
7837 (lto_symtab_encoder_encode_body_p): Likewise.
7838 * lto-section-in.c (lto_free_function_in_decl_state_for_node):
7840 * lto-streamer-in.c (lto_read_body): Likewise.
7841 (fixup_call_stmt_edges): Likewise.
7842 (fixup_call_stmt_edges_1): Likewise.
7843 * lto-streamer-out.c (produce_symtab): Likewise.
7844 (output_symbol_p): Likewise.
7845 (write_symbol): Likewise.
7846 (lto_output): Likewise.
7847 (copy_function): Likewise.
7848 (output_function): Likewise.
7849 * passes.c (function_called_by_processed_nodes_p): Likewise.
7850 (ipa_write_optimization_summaries): Likewise.
7851 (ipa_write_summaries): Likewise.
7852 (do_per_function_toporder): Likewise.
7853 (do_per_function): Likewise.
7854 (dump_passes): Likewise.
7855 * symtab.c (symtab_semantically_equivalent_p): Likewise.
7856 (symtab_nonoverwritable_alias): Likewise.
7857 (symtab_nonoverwritable_alias_1): Likewise.
7858 (symtab_for_node_and_aliases): Likewise.
7859 (symtab_resolve_alias): Likewise.
7860 (fixup_same_cpp_alias_visibility): Likewise.
7861 (symtab_alias_ultimate_target): Likewise.
7862 (symtab_used_from_object_file_p): Likewise.
7863 (verify_symtab_base): Likewise.
7864 (dump_symtab_base): Likewise.
7865 (symtab_node_name): Likewise.
7866 (symtab_node_asm_name): Likewise.
7867 (symtab_dissolve_same_comdat_group_list): Likewise.
7868 (symtab_add_to_same_comdat_group): Likewise.
7869 (symtab_unregister_node): Likewise.
7870 (symtab_insert_node_to_hashtable): Likewise.
7871 (symtab_register_node): Likewise.
7872 (unlink_from_assembler_name_hash): Likewise.
7873 (insert_to_assembler_name_hash): Likewise.
7874 (eq_assembler_name): Likewise.
7875 (hash_node_by_assembler_name): Likewise.
7876 (eq_node): Likewise.
7877 (hash_node): Likewise.
7878 * toplev.c (wrapup_global_declaration_2): Likewise.
7879 * trans-mem.c (ipa_tm_execute): Likewise.
7880 (ipa_tm_transform_clone): Likewise.
7881 (ipa_tm_transform_transaction): Likewise.
7882 (ipa_tm_transform_calls_redirect): Likewise.
7883 (ipa_tm_insert_gettmclone_call): Likewise.
7884 (ipa_tm_insert_irr_call): Likewise.
7885 (ipa_tm_create_version): Likewise.
7886 (ipa_tm_create_version_alias): Likewise.
7887 (ipa_tm_mark_forced_by_abi_node): Likewise.
7888 (ipa_tm_mark_force_output_node): Likewise.
7889 (ipa_tm_diagnose_tm_safe): Likewise.
7890 (ipa_tm_mayenterirr_function): Likewise.
7891 (ipa_tm_scan_irr_function): Likewise.
7892 (ipa_tm_note_irrevocable): Likewise.
7893 (ipa_tm_scan_calls_clone): Likewise.
7894 (get_cg_data): Likewise.
7895 * tree-eh.c (tree_could_trap_p): Likewise.
7896 * tree-emutls.c (ipa_lower_emutls): Likewise.
7897 (create_emultls_var): Likewise.
7898 (lower_emutls_function_body): Likewise.
7899 (gen_emutls_addr): Likewise.
7900 (emutls_decl): Likewise.
7901 (new_emutls_decl): Likewise.
7902 * tree-inline.c (tree_function_versioning): Likewise.
7903 (optimize_inline_calls): Likewise.
7904 (expand_call_inline): Likewise.
7905 (estimate_num_insns): Likewise.
7906 (copy_bb): Likewise.
7907 (delete_unreachable_blocks_update_callgraph): Likewise.
7908 * tree-nested.c (gimplify_all_functions): Likewise.
7909 (create_nesting_tree): Likewise.
7910 (check_for_nested_with_variably_modified): Likewise.
7911 * tree-pretty-print.c (dump_function_header): Likewise.
7912 * tree-profile.c (tree_profiling): Likewise.
7913 * tree-sra.c (ipa_sra_preliminary_function_checks): Likewise.
7914 (modify_function): Likewise.
7915 (convert_callers): Likewise.
7916 (convert_callers_for_node): Likewise.
7917 * tree-ssa-structalias.c (ipa_pta_execute): Likewise.
7918 (associate_varinfo_to_alias): Likewise.
7919 (create_variable_info_for): Likewise.
7920 (get_constraint_for_ssa_var): Likewise.
7921 * tree-vectorizer.c (increase_alignment): Likewise.
7922 * tree.c (find_decls_types_in_var): Likewise.
7923 (find_decls_types_in_node): Likewise.
7924 (free_lang_data_in_decl): Likewise.
7925 * value-prof.c (gimple_ic_transform): Likewise.
7926 (gimple_ic): Likewise.
7927 (check_ic_target): Likewise.
7928 (init_node_map): Likewise.
7929 * varasm.c (decl_binds_to_current_def_p): Likewise.
7930 (default_binds_local_p_1): Likewise.
7931 (dump_tm_clone_pairs): Likewise.
7932 (assemble_alias): Likewise.
7933 (find_decl): Likewise.
7934 (mark_decl_referenced): Likewise.
7935 * varpool.c (varpool_for_node_and_aliases): Likewise.
7936 (varpool_extra_name_alias): Likewise.
7937 (varpool_create_variable_alias): Likewise.
7938 (add_new_static_var): Likewise.
7939 (varpool_finalize_named_section_flags): Likewise.
7940 (varpool_remove_unreferenced_decls): Likewise.
7941 (enqueue_node): Likewise.
7942 (varpool_assemble_decl): Likewise.
7943 (assemble_aliases): Likewise.
7944 (varpool_analyze_node): Likewise.
7945 (cgraph_variable_initializer_availability): Likewise.
7946 (varpool_add_new_variable): Likewise.
7947 (ctor_for_folding): Likewise.
7948 (dump_varpool_node): Likewise.
7949 (varpool_remove_initializer): Likewise.
7950 (varpool_remove_node): Likewise.
7951 (varpool_node_for_decl): Likewise.
7952 (varpool_create_empty_node): Likewise.
7953 * config/i386/i386.c (ix86_generate_version_dispatcher_body): Likewise.
7954 (ix86_get_function_versions_dispatcher): Likewise.
7956 2013-10-29 David Malcolm <dmalcolm@redhat.com>
7958 * cgraph.h (symtab_node_base): Convert to a class;
7959 add GTY((desc ("%h.type"), tag ("SYMTAB_SYMBOL"))), and take
7960 chain_next/prev from symtab_node_def.
7961 (cgraph_node): Inherit from symtab_node; add GTY option
7962 tag ("SYMTAB_FUNCTION").
7963 (varpool_node): Inherit from symtab_node; add GTY option
7964 tag ("SYMTAB_VARIABLE").
7965 (symtab_node_def): Remove.
7966 (is_a_helper <cgraph_node>::test (symtab_node_def *)): Convert to...
7967 (is_a_helper <cgraph_node>::test (symtab_node_base *)): ...this.
7968 (is_a_helper <varpool_node>::test (symtab_node_def *)): Convert to...
7969 (is_a_helper <varpool_node>::test (symtab_node_base *)): ...this.
7971 * ipa-ref.h (symtab_node_def): Drop.
7972 (symtab_node): Change underlying type from symtab_node_def to
7974 (const_symtab_node): Likwise.
7976 * is-a.h: Update examples in comment.
7978 * symtab.c (symtab_hash): Change symtab_node_def to symtab_node_base.
7979 (assembler_name_hash): Likewise.
7981 2013-10-29 Martin Liska <marxin.liska@gmail.com>
7983 * doc/tree-ssa.texi (gimple_phi_result): Document.
7984 (gimple_phi_num_args, gimple_phi_arg): Likewise.
7985 (gimple_phi_arg_edge, gimple_phi_arg_def): Likewise.
7986 (PHI_RESULT, PHI_NUM_ARGS): Remove.
7987 (PHI_ARG_ELT, PHI_ARG_EDGE, PHI_ARG_DEF): Likewise.
7989 2013-10-29 Andrew MacLeod <amacleod@redhat.com>
7991 * expr.h: Revert change and include tree-core.h.
7992 * rtl.h: Revert change and don't include tree-core.h.
7994 2013-10-29 Andrew MacLeod <amacleod@redhat.com>
7996 * config/darwin.c: Include gimple.h.
7997 * config/i386/winnt.c: Likewise.
7999 2013-10-29 Marc Glisse <marc.glisse@inria.fr>
8001 PR tree-optimization/19831
8002 * tree-ssa-alias.c (stmt_kills_ref_p_1): Handle BUILT_IN_FREE.
8004 2013-10-29 Andrew MacLeod <amacleod@redhat.com>
8006 * tree-outof-ssa.h: Remove include files.
8007 * tree-outof-ssa.c: Add required include files from tree-outof-ssa.h.
8009 * tree-ssa-coalesce.c: Likewise.
8010 * cfgexpand.c: Likewise.
8011 * tree-ssa-ter.c: Likewise.
8012 * ipa-prop.h: Remove gimple.h and tree-core.h from include list.
8013 * lto-streamer.h: Likewise.
8014 * cgraphbuild.c: Add gimple.h to include list.
8015 * data-streamer-in.c: Likewise.
8016 * ipa-cp.c: Likewise.
8017 * tree-streamer.c: Likewise.
8018 * lto-compress.c: Likewise.
8019 * ipa-reference.c: Likewise.
8020 * data-streamer-out.c: Likewise.
8021 * lto-cgraph.c: Likewise.
8022 * cgraphclones.c: Likewise.
8023 * ipa-utils.c: Likewise.
8024 * data-streamer.c: Likewise.
8025 * ipa-split.c: Likewise.
8026 * lto-section-in.c: Likewise.
8027 * tree-streamer-out.c: Likewise.
8028 * ipa-prop.c: Likewise.
8029 * tree-streamer-in.c: Likewise.
8030 * symtab.c: Likewise.
8031 * opts-global.c: Likewise.
8032 * lto-opts.c: Likewise.
8033 * lto-section-out.c: Likewise.
8034 * lto-streamer.c: Likewise.
8035 * rtl.h: Add tree-core.h to include list.
8036 * expr.h: Remove tree-core.h from include list.
8037 * gimple.h: Likewise.
8038 * ipa-utils.h: Likewise.
8039 * streamer-hooks.h: Likewise.
8040 * streamer-hooks.c: Include input.h.
8042 2013-10-29 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
8044 * config/arm/arm.c (cortexa7_extra_costs): New table.
8045 (arm_cortex_a7_tune): New.
8046 * config/arm/arm-cores.def: Use cortex_a7 tuning for cortex-a7.
8048 2013-10-29 Eric Botcazou <ebotcazou@adacore.com>
8050 * expr.c (expand_expr_real_1) <MEM_EXPR>: Eliminate small redundancy.
8052 2013-10-29 David Malcolm <dmalcolm@redhat.com>
8054 * doc/gty.texi ("Inheritance and GTY"): Make it clear that
8055 to use autogenerated markers for a class-hierarchy, every class
8056 must have a GTY marker.
8057 * gengtype.h (struct type): Add linked list of subclasses to
8058 the "s" member of the union.
8059 (add_subclass): New decl.
8060 * gengtype-state.c (read_state_struct_type): Set up subclass
8062 * gengtype.c (get_ultimate_base_class): New.
8063 (add_subclass): New.
8064 (new_structure): Set up subclass linked list.
8065 (set_gc_used_type): Propagate usage information to subclasses.
8066 (output_mangled_typename): Use get_ultimate_base_class.
8067 (walk_subclasses): Use the subclass linked list, avoiding an
8068 O(N^2) when writing out all types.
8069 (walk_type): Issue an error if the base class is missing a tag,
8070 rather than generating bogus C code. Add a gcc_unreachable
8071 default case, in case people omit tags from concrete subclasses,
8072 or get the values wrong.
8073 (write_func_for_structure): Issue an error for subclasses for
8074 which the base doesn't have a "desc", since otherwise the
8075 autogenerated routines for the base would silently fail to visit
8076 any subclass fields.
8077 (write_root): Use get_ultimate_base_class, tweaking constness of
8078 tp to match that function's signature.
8080 2013-10-29 David Malcolm <dmalcolm@redhat.com>
8082 * doc/gty.texi (GTY Options): Add note about inheritance to
8083 description of desc and tag.
8084 (Inheritance and GTY): New.
8086 2013-10-29 David Malcolm <dmalcolm@redhat.com>
8088 * gengtype-parse.c (opts_have): Drop "static" so that
8089 we can use this from gengtype.c.
8090 * gengtype.c (set_gc_used_type): Mark any base class as used;
8091 update field traversal to visit inherited fields.
8092 (output_mangled_typename): Convert references to classes within
8093 an inheritance hierarchy to reference the ultimate base class,
8094 since only it will have gt_ functions.
8095 (get_string_option): New.
8096 (walk_subclasses): New.
8097 (walk_type): Treat GTY structs that have a "desc" as being the
8098 root of an inheritance hierarchy. Generate a switch on it
8099 within the marking function which walks all subclasses, adding
8100 cases for them via walk_subclasses. For subclasses, visit all
8101 fields of the type (including inherited ones).
8102 (write_func_for_structure): Don't write fns for subclasses, only
8103 for the ultimate base class within an inheritance hierarchy.
8104 Subclasses-marking will be handled by the base class marking functions.
8105 (write_types): Likewise.
8106 (write_local_func_for_structure): Likewise.
8107 (USED_BY_TYPED_GC_P): Emit allocators for subclasses that have
8108 a "tag" option (and are thus concrete subclasses).
8109 (write_root): Use the marker function for the ultimate base class.
8110 * gengtype.h (FOR_ALL_INHERITED_FIELDS): New.
8111 (opts_have): Add declaration.
8113 2013-10-28 Vladimir Makarov <vmakarov@redhat.com>
8115 * lra-spills.c (lra_final_code_change): Remove useless move insns
8116 originated from moves of pseudos.
8118 2013-10-28 Jeff Law <law@redhat.com>
8120 * lower-subreg.c (resolve_simple_move): Fix comment typo.
8122 2013-10-28 Trevor Saunders <tsaunders@mozilla.com>
8124 * df-scan.c (df_collection_rec): Adjust.
8125 (copy_defs): New constant.
8126 (copy_uses): Likewise.
8127 (copy_eq_uses): Likewise.
8128 (copy_mw): Likewise.
8129 (copy_all): Likewise.
8130 (df_insn_rescan): Adjust.
8131 (df_notes_rescan): Likewise.
8132 (df_swap_refs): Likewise.
8133 (df_sort_and_compress_refs): Likewise.
8134 (df_sort_and_compress_mws): Likewise.
8135 (df_install_refs): Likewise.
8136 (df_install_mws): Likewise.
8137 (df_refs_add_to_chains): Add flags parameter controlling which vectors
8139 (df_bb_refs_record): Adjust.
8140 (df_record_entry_block_defs): Likewise.
8141 (df_record_exit_block_defs): Likewise.
8142 (df_refs_verify): Likewise.
8143 (df_mws_verify): Likewise.
8144 (df_insn_refs_verify): Likewise.
8145 (df_bb_verify): Likewise.
8146 * ipa-pure-const.c (finish_state): Remove.
8147 (propagate): Adjust.
8148 * tree-data-ref.c tree-ssa-alias.c tree-ssa-loop-ivcanon.c
8149 tree-ssa-threadedge.c tree-vect-loop-manip.c tree-vect-slp.c
8150 var-tracking.c: Adjust.
8151 * vec.c (stack_vecs): Remove.
8152 (register_stack_vec): Likewise.
8153 (stack_vec_register_index): Likewise.
8154 (unregister_stack_vec): Likewise.
8155 * vec.h (struct va_stack): Remove.
8156 (struct vec<T, A, vl_ptr>): Specialize as
8157 struct vec<T, va_heap, vl_ptr> instead since va_heap is the only
8158 allocation strategy compatable with the vl_ptr layout.
8159 (struct vec<T, va_gc, vl_ptr>): Remove because it now gets an empty
8160 specialization anyway.
8161 (class stack_vec): New class.
8162 (vec_stack_alloc): Remove.
8163 (vec<T, va_heap, vl_ptr>::using_auto_storage): New method.
8165 2013-10-28 Alexander Ivchenko <alexander.ivchenko@intel.com>
8166 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
8167 Sergey Lega <sergey.s.lega@intel.com>
8168 Anna Tikhonova <anna.tikhonova@intel.com>
8169 Ilya Tocar <ilya.tocar@intel.com>
8170 Andrey Turetskiy <andrey.turetskiy@intel.com>
8171 Ilya Verbin <ilya.verbin@intel.com>
8172 Kirill Yukhin <kirill.yukhin@intel.com>
8173 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
8175 * config/i386/i386.md (prefetch): Allow TARGET_AVX512PF.
8176 (*prefetch_avx512pf_<mode>): New.
8177 * config/i386/sse.md (avx512f_vmcmp<mode>3): Ditto.
8178 (avx512f_maskcmp<mode>3): Ditto.
8179 (vashrv16si3): Ditto.
8181 2013-10-28 Alexander Ivchenko <alexander.ivchenko@intel.com>
8182 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
8183 Sergey Lega <sergey.s.lega@intel.com>
8184 Anna Tikhonova <anna.tikhonova@intel.com>
8185 Ilya Tocar <ilya.tocar@intel.com>
8186 Andrey Turetskiy <andrey.turetskiy@intel.com>
8187 Ilya Verbin <ilya.verbin@intel.com>
8188 Kirill Yukhin <kirill.yukhin@intel.com>
8189 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
8191 * config/i386/i386.md (any_truncate): New.
8192 (trunsuffix): Ditto.
8193 * config/i386/predicates.md (const_8_to_9_operand): New.
8194 (const_10_to_11_operand): Ditto.
8195 (const_12_to_13_operand): Ditto.
8196 (const_14_to_15_operand): Ditto.
8197 (const_16_to_19_operand): Ditto.
8198 (const_20_to_23_operand): Ditto.
8199 (const_24_to_27_operand): Ditto.
8200 (const_28_to_31_operand): Ditto.
8201 * config/i386/sse.md (unspec): Add UNSPEC_UNSIGNED_FIX_NOTRUNC.
8202 (cvtusi2<ssescalarmodesuffix>32): New.
8203 (cvtusi2<ssescalarmodesuffix>64): Ditto.
8204 (ufloatv16siv16sf2): Ditto.
8205 (avx512f_fix_notruncv16sfv16si): Ditto.
8206 (avx512f_ufix_notruncv16sfv16si): Ditto.
8207 (avx512f_vcvtss2usi): Ditto.
8208 (avx512f_vcvtss2usiq): Ditto.
8209 (avx512f_vcvttss2usi): Ditto.
8210 (avx512f_vcvttss2usiq): Ditto.
8211 (avx512f_vcvtsd2usi): Ditto.
8212 (avx512f_vcvtsd2usiq): Ditto.
8213 (avx512f_vcvttsd2usi): Ditto.
8214 (avx512f_vcvttsd2usiq): Ditto.
8215 (ufloatv8siv8df): Ditto.
8216 (avx512f_cvtdq2pd512_2): Ditto.
8217 (avx512f_cvtpd2dq512): Ditto.
8218 (avx512f_ufix_notruncv8dfv8si): Ditto.
8219 (avx512f_cvtpd2ps512): Ditto.
8220 (vec_unpacks_lo_v16sf): Ditto.
8221 (vec_unpacks_hi_v16sf): Ditto.
8222 (vec_unpacks_float_hi_v16si): Ditto.
8223 (vec_unpacks_float_lo_v16si): Ditto.
8224 (avx512f_unpckhps512): Ditto.
8225 (avx512f_unpcklps512): Ditto.
8226 (avx512f_movshdup512): Ditto.
8227 (avx512f_movsldup512): Ditto.
8228 (vec_extract_lo_v32hi): Ditto.
8229 (vec_extract_hi_v32hi): Ditto.
8230 (vec_extract_lo_v64qi): Ditto.
8231 (vec_extract_hi_v64qi): Ditto.
8232 (avx512f_unpckhpd512): Ditto.
8233 (avx512f_movddup512): Ditto.
8234 (avx512f_unpcklpd512): Ditto.
8235 (*avx512f_unpcklpd512): Ditto.
8236 (avx512f_shufps512_1): Ditto.
8237 (avx512f_shufpd512_1): Ditto.
8238 (avx512f_interleave_highv8di): Ditto.
8239 (avx512f_interleave_lowv8di): Ditto.
8240 (PMOV_DST_MODE): Ditto.
8241 (pmov_src_mode): Ditto.
8242 (pmov_src_lower): Ditto.
8244 (*avx512f_<code><pmov_src_lower><mode>2): Ditto.
8245 (*avx512f_<code>v8div16qi2): Ditto.
8246 (*avx512f_<code>v8div16qi2_store): Ditto.
8247 (vec_widen_umult_even_v16si): Ditto.
8248 (*vec_widen_umult_even_v16si): Ditto.
8249 (vec_widen_smult_even_v16si): Ditto.
8250 (*vec_widen_smult_even_v16si): Ditto.
8251 (avx512f_interleave_highv16si): Ditto.
8252 (avx512f_interleave_lowv16si): Ditto.
8253 (avx512f_<code>v16qiv16si2): Ditto.
8254 (avx512f_<code>v16hiv16si2): Ditto.
8255 (avx512f_<code>v8qiv8di2): Ditto.
8256 (avx512f_<code>v8hiv8di2): Ditto.
8257 (avx512f_<code>v8siv8di2): Ditto.
8258 (avx512cd_maskb_vec_dupv8di): Ditto.
8259 (avx512cd_maskw_vec_dupv16si): Ditto.
8260 (avx512f_vcvtph2ps512): Ditto.
8261 (avx512f_vcvtps2ph512): Ditto.
8262 (VEC_EXTRACT_MODE): Extened with wider modes.
8263 (VEC_PERM_AVX2): Ditto.
8264 (VEC_PERM_CONST): Ditto.
8266 2013-10-28 Joern Rennecke <joern.rennecke@embecosm.com>
8268 * config/arc/arc.c (arc_ccfsm_post_advance):
8269 Add comment about TYPE_RETURN.
8271 2013-10-28 Bin Cheng <bin.cheng@arm.com>
8273 * tree-ssa-loop-ivopts.c (strip_offset_1): Change parameter type.
8274 Count DECL_FIELD_BIT_OFFSET for COMPONENT_REF.
8275 (strip_offset): Convert offset to unsigned number.
8277 2013-10-27 Tom de Vries <tom@codesourcery.com>
8279 * cfgexpand.c (gimple_expand_cfg): Remove test for parm_birth_insn.
8280 Don't commit insertions after NOTE_INSN_FUNCTION_BEG.
8282 2013-10-27 Oleg Endo <olegendo@gcc.gnu.org>
8284 * config/sh/sh.c (MSW, LSW): Move and rename macros to...
8285 * config/sh/sh.h (SH_REG_MSW_OFFSET, SH_REG_LSW_OFFSET): ... here.
8286 (TARGET_BIG_ENDIAN): New macro.
8287 * config/sh/sh.md: Use it instead of !TARGET_LITTLE_ENDIAN.
8288 Use SH_REG_MSW_OFFSET and SH_REG_LSW_OFFSET.
8289 * config/sh/sh.c: Likewise.
8290 * config/sh/sh.h: Likewise.
8292 2013-10-27 Hans-Peter Nilsson <hp@axis.com>
8294 * config/cris/cris.c (cris_emit_trap_for_misalignment): Replace the
8295 removed PRED_MUDFLAP with PRED_NORETURN. Correct file-path in comment.
8297 2013-10-26 Oleg Endo <olegendo@gcc.gnu.org>
8299 * config/sh/sh.md (movmemsi): Remove empty constraints and predicates.
8301 (cmpstr_t, cmpstrsi): Fix formatting.
8303 2013-10-26 Oleg Endo <olegendo@gcc.gnu.org>
8306 * config/sh/predicates.md (general_movdst_operand): Allow reg+reg
8307 addressing, do not use general_operand for memory operands.
8309 2013-10-26 Vladimir Makarov <vmakarov@redhat.com>
8312 2013-10-25 Vladimir Makarov <vmakarov@redhat.com>
8313 * lra-spills.c (lra_final_code_change): Remove useless move insns.
8315 2013-10-26 Jeff Law <law@redhat.com>
8317 * predict.c (PRED_MUDFLAP): Remove.
8318 * targhooks.c (build_va_arg_indirect_ref): Remove mudflap support.
8320 * Makefile.in (C_COMMON_OBJS): Remove tree-mudflap.
8321 (OBJS): Remove tree-nomudflap.o
8322 (GTFILES): Remove tree-mudflap.c
8323 * builtins.c (expand_builtin_alloc): Remove mudflap support.
8324 * gcc.c (MFWRAP_SPEC, MFLIB_SPEC): Likewise.
8325 (mfwrap_spec, mflib_spec): Likewise.
8326 (cpp_unique_options, cc1_options, static_specs): Likewise.
8327 * gimplify (gimplify_vla_decl, build_va_arg_indirect_ref): Likewise.
8328 * passes.def: Likewise.
8329 * toplev.c (compile_file, process_options): Likewise.
8330 * tree-inline.c (copy_tree_r): Likewise.
8331 * tree-pass.,h (make_pass_mudflap_1, make_pass_mudflap_2): Likewise.
8332 * varasm.c (make_decl_rtl, make_decl_rtl_for_debug): Likewise.
8333 (build_constant_desc, output_constant_def_contents): Likewise.
8334 (categorize_decl_for_section): Likewise.
8335 * tree-mudflap.c: Removed.
8336 * tree-mudflap.h: Removed.
8337 * tree-nomudflap.c: Removed.
8338 * bfin/uclinux.h (MFWRAP_SPEC): Remove.
8339 * moxie/uclinux.h (MFWRAP_SPEC): Likewise.
8340 * rs6000/aix.h (MFWRAP_SPEC, MFLIB_SPEC): Likewise.
8341 * config/sol2.h (MFLIB_SPEC): Likewise.
8342 * doc/install.texi: Remove mudflap references.
8343 * doc/passes.texi: Similarly.
8344 * doc/sourcebuild.texi: Similarly.
8345 * doc/invoke.texi: Remove mudlfap related options.
8347 2013-10-25 Vladimir Makarov <vmakarov@redhat.com>
8349 PR rtl-optimization/58759
8350 * lra-constraints.c (lra_constraints): Remove wrong condition to
8351 remove insn setting up an equivalent pseudo.
8353 2013-10-25 Vladimir Makarov <vmakarov@redhat.com>
8355 * config/rs6000/rs6000-protos.h
8356 (rs6000_secondary_memory_needed_mode): New prototype.
8357 * config/rs6000/rs6000.c: Include ira.h.
8358 (TARGET_LRA_P): Redefine.
8359 (rs6000_legitimate_offset_address_p): Call
8360 legitimate_constant_pool_address_p in strict mode for LRA.
8361 (rs6000_legitimate_address_p): Ditto.
8362 (legitimate_lo_sum_address_p): Add code for LRA. Use lra_in_progress.
8363 (rs6000_emit_move): Add LRA version of code to generate load/store
8365 (rs6000_secondary_memory_needed_mode): New.
8366 (rs6000_alloc_sdmode_stack_slot): Do nothing for LRA.
8367 (rs6000_secondary_reload_class): Return NO_REGS for LRA for
8368 constants, memory, and FP registers.
8369 (rs6000_lra_p): New.
8370 * config/rs6000/rs6000.h (SECONDARY_MEMORY_NEEDED_MODE): New macro.
8371 * config/rs6000/rs6000.opt (mlra): New option.
8372 * lra-spills.c (lra_final_code_change): Remove useless move insns.
8374 2013-10-25 Yufeng Zhang <yufeng.zhang@arm.com>
8376 * tree-ssa-math-opts.c (convert_plusminus_to_widen): Call
8377 has_single_use () and not do the conversion if has_single_use ()
8378 returns false for the multiplication result.
8380 2013-10-25 David Malcolm <dmalcolm@redhat.com>
8382 * tree.h (EXCEPTIONAL_CLASS_P): Rename parameter from "CODE"
8383 to "NODE", since this works on a "tree", not an
8385 (CONSTANT_CLASS_P): Likewise.
8388 (INDIRECT_REF_P): Likewise.
8389 (REFERENCE_CLASS_P): Likewise.
8390 (COMPARISON_CLASS_P): Likewise.
8391 (UNARY_CLASS_P): Likewise.
8392 (BINARY_CLASS_P): Likewise.
8393 (STATEMENT_CLASS_P): Likewise.
8394 (VL_EXP_CLASS_P): Likewise.
8395 (EXPRESSION_CLASS_P): Likewise.
8396 (IS_TYPE_OR_DECL_P): Likewise.
8398 2013-10-25 Marc Glisse <marc.glisse@inria.fr>
8400 * tree-ssa-alias.c (ao_ref_init_from_ptr_and_size): Look for an
8401 ADDR_EXPR in the defining statement.
8403 2013-10-25 Richard Biener <rguenther@suse.de>
8405 PR tree-optimization/58626
8406 * tree-loop-distribution.c (enum rdg_dep_type): Remove
8407 anti_dd, output_dd and input_dd.
8408 (struct rdg_edge): Remove level and relation members.
8409 (RDGE_LEVEL, RDGE_RELATION): Remove.
8410 (dot_rdg_1): Adjust.
8411 (create_rdg_edge_for_ddr): Remove.
8412 (create_rdg_edges_for_scalar): Adjust.
8413 (create_edge_for_control_dependence): Likewise.
8414 (create_rdg_edges): Split into ...
8415 (create_rdg_flow_edges): ... this
8416 (create_rdg_cd_edges): ... and this.
8418 (build_rdg): Likewise, do not compute data dependences or
8420 (pg_add_dependence_edges): New function.
8422 (distribute_loop): First apply all non-dependence based
8423 partition mergings. Then compute dependences between partitions
8424 and merge and order partitions according to them.
8426 2013-10-25 Eric Botcazou <ebotcazou@adacore.com>
8428 PR rtl-optimization/58831
8429 * alias.c (init_alias_analysis): At the beginning of each iteration,
8430 set the reg_seen[N] bit if static_reg_base_value[N] is non-null.
8432 2013-10-25 Eric Botcazou <ebotcazou@adacore.com>
8434 * recog.c (search_ofs): New static variable moved from...
8435 (peep2_find_free_register): ...here.
8436 (peephole2_optimize): Initialize it.
8438 2013-10-25 Tobias Burnus <burnus@net-b.de>
8440 * doc/invoke.texi (fopenmp): Change supported OpenMP version to 4.0.
8442 2013-10-25 Uros Bizjak <ubizjak@gmail.com>
8444 * config/i386/i386.h (TARGET_MPX): New define.
8445 (TARGET_MPX_P): Ditto.
8447 2013-10-24 Ilya Enkovich <ilya.enkovich@intel.com>
8449 * config/i386/constraints.md (B): New.
8452 * config/i386/i386-c.c (ix86_target_macros_internal): Add __MPX__.
8453 * config/i386/i386-modes.def (BND32): New.
8455 * config/i386/i386-protos.h (ix86_bnd_prefixed_insn_p): New.
8456 * config/i386/i386.c (isa_opts): Add mmpx.
8457 (regclass_map): Add bound registers.
8458 (dbx_register_map): Likewise.
8459 (dbx64_register_map): Likewise.
8460 (svr4_dbx_register_map): Likewise.
8462 (ix86_option_override_internal): Support MPX ISA.
8463 (ix86_conditional_register_usage): Support bound registers.
8464 (print_reg): Likewise.
8465 (ix86_code_end): Add MPX bnd prefix.
8466 (output_set_got): Likewise.
8467 (ix86_output_call_insn): Likewise.
8468 (ix86_print_operand): Add '!' (MPX bnd) print prefix support.
8469 (ix86_print_operand_punct_valid_p): Likewise.
8470 (ix86_print_operand_address): Support UNSPEC_BNDMK_ADDR and
8472 (ix86_class_likely_spilled_p): Add bound regs support.
8473 (ix86_hard_regno_mode_ok): Likewise.
8474 (x86_order_regs_for_local_alloc): Likewise.
8475 (ix86_bnd_prefixed_insn_p): New.
8476 * config/i386/i386.h (FIRST_PSEUDO_REGISTER): Fix to new value.
8477 (FIXED_REGISTERS): Add bound registers.
8478 (CALL_USED_REGISTERS): Likewise.
8479 (REG_ALLOC_ORDER): Likewise.
8480 (HARD_REGNO_NREGS): Likewise.
8482 (VALID_BND_REG_MODE): New.
8483 (FIRST_BND_REG): New.
8484 (LAST_BND_REG): New.
8485 (reg_class): Add BND_REGS.
8486 (REG_CLASS_NAMES): Likewise.
8487 (REG_CLASS_CONTENTS): Likewise.
8489 (ANY_BND_REG_P): New.
8491 (HI_REGISTER_NAMES): Add bound registers.
8492 * config/i386/i386.md (UNSPEC_BNDMK): New.
8493 (UNSPEC_BNDMK_ADDR): New.
8494 (UNSPEC_BNDSTX): New.
8495 (UNSPEC_BNDLDX): New.
8496 (UNSPEC_BNDLDX_ADDR): New.
8497 (UNSPEC_BNDCL): New.
8498 (UNSPEC_BNDCU): New.
8499 (UNSPEC_BNDCN): New.
8500 (UNSPEC_MPX_FENCE): New.
8503 (type): Add mpxmov, mpxmk, mpxchk, mpxld, mpxst.
8504 (length_immediate): Likewise.
8505 (prefix_0f): Likewise.
8507 (prefix_rep): Check for bnd prefix.
8508 (length_nobnd): New.
8509 (length): Use length_nobnd if specified.
8514 (*jcc_1): Add bnd prefix and rename length attr to length_nobnd.
8517 (simple_return_internal): Likewise.
8518 (simple_return_pop_internal): Likewise.
8519 (*indirect_jump): Add MPX bnd prefix.
8520 (*tablejump_1): Likewise.
8521 (simple_return_internal_long): Likewise.
8522 (simple_return_indirect_internal): Likewise.
8526 (*mov<mode>_internal_mpx): New.
8527 (<mode>_<bndcheck>): New.
8528 (*<mode>_<bndcheck>): New.
8533 * config/i386/predicates.md (lea_address_operand): Rename to...
8534 (address_no_seg_operand): ... this.
8535 (address_mpx_no_base_operand): New.
8536 (address_mpx_no_index_operand): New.
8537 (bnd_mem_operator): New.
8538 * config/i386/i386.opt (mmpx): New.
8539 * doc/invoke.texi: Add documentation for the flags -mmpx, -mno-mpx.
8540 * doc/rtl.texi Add documentation for BND32mode and BND64mode.
8542 2013-10-24 Ilya Enkovich <ilya.enkovich@intel.com>
8544 * mode-classes.def (MODE_POINTER_BOUNDS): New.
8545 * tree.def (POINTER_BOUNDS_TYPE): New.
8546 * genmodes.c (complete_mode): Support MODE_POINTER_BOUNDS.
8547 (POINTER_BOUNDS_MODE): New.
8548 (make_pointer_bounds_mode): New.
8549 * machmode.h (POINTER_BOUNDS_MODE_P): New.
8550 * stor-layout.c (int_mode_for_mode): Support MODE_POINTER_BOUNDS.
8551 (layout_type): Support POINTER_BOUNDS_TYPE.
8552 * tree-pretty-print.c (dump_generic_node): Support POINTER_BOUNDS_TYPE.
8553 * tree.c (build_int_cst_wide): Support POINTER_BOUNDS_TYPE.
8554 (type_contains_placeholder_1): Likewise.
8555 * tree.h (POINTER_BOUNDS_TYPE_P): New.
8556 * varasm.c (output_constant): Support POINTER_BOUNDS_TYPE.
8557 * doc/rtl.texi (MODE_POINTER_BOUNDS): New.
8559 2013-10-24 Igor Shevlyakov <igor.shevlyakov@gmail.com>
8561 * expr.c (expand_expr_real_1): Use mode of memory reference rather than
8562 mode of address computation when calling memory_address_addr_space.
8564 2013-08-24 Richard Henderson <rth@twiddle.net>
8567 * optabs.c (maybe_emit_atomic_exchange): Use create_input_operand
8568 instead of create_convert_operand_to.
8569 (maybe_emit_sync_lock_test_and_set): Likewise.
8570 (expand_atomic_compare_and_swap): Likewise.
8571 (maybe_emit_compare_and_swap_exchange_loop): Don't convert_modes.
8573 2013-08-24 Sriraman Tallam <tmsriram@google.com>
8575 * cgraph.c (cgraph_fnver_htab): Move GTY((...)) to be before htab_t.
8576 Change param_is to use the struct and not the pointer to the struct.
8578 2013-10-24 Andrew MacLeod <amacleod@redhat.com>
8580 * builtins.c (dummy_object, gimplify_va_arg_expr): Move to gimplify.c.
8581 * gimplify.c (build_va_arg_indirect_ref, std_gimplify_va_arg_expr):
8582 Move to targhooks.c.
8583 (dummy_object, gimplify_va_arg_expr): Relocate from builtins.c.
8584 * targhooks.c (build_va_arg_indirect_ref, std_gimplify_va_arg_expr):
8585 Relocate from gimplify.c.
8586 * targhooks.h: Add 2 prototypes.
8587 * tree.h: Delete 2 prototypes.
8589 2013-10-24 Igor Shevlyakov <igor.shevlyakov@gmail.com>
8591 * tree-ssa-loop-ivopts.c (multiplier_allowed_in_address_p ): Check both
8592 [reg+mult*reg] and [mult*reg] to determine if multiplier is allowed.
8594 2013-10-24 Cong Hou <congh@google.com>
8596 * convert.c (convert_to_real): Guard those unsafe math function
8597 convertions with flag_unsafe_math_optimizations. Handle sqrt()
8600 2013-10-24 Markus Trippelsdorf <markus@trippelsdorf.de>
8603 * cgraph.c (cgraph_create_edge_1): Add indirect_unknown_callee
8605 (cgraph_create_edge): Use the new argument.
8606 (cgraph_create_indirect_edge): Likewise.
8608 2013-10-24 Joern Rennecke <joern.rennecke@embecosm.com>
8610 * config/arc/arc.c (arc_ccfsm_post_advance): Also handle
8612 (arc_ifcvt) <case 1 and 2>: Check that arc_ccfsm_post_advance
8613 changes statep->state.
8615 2013-10-24 Tobias Burnus <burnus@net-b.de>
8618 * tree-cfg.c (replace_loop_annotate): New function.
8619 (execute_build_cfg): Call it.
8620 * gimplify.c (gimple_boolify, gimplify_expr): Handle ANNOTATE_EXPR.
8621 * internal-fn.c (expand_ANNOTATE): New function.
8622 * internal-fn.def (ANNOTATE): Define as new internal function.
8623 * tree-core.h (tree_node_kind): Add annot_expr_ivdep_kind.
8624 * tree-pretty-print.c (dump_generic_node): Handle ANNOTATE_EXPR.
8625 * tree.def (ANNOTATE_EXPR): New DEFTREECODE.
8626 * doc/extend.texi (Pragmas): Document #pragma ivdep.
8627 * doc/generic.texi (Expressions): Document ANNOTATE_EXPR.
8629 2013-10-17 Ian Bolton <ian.bolton@arm.com>
8630 Marcus Shawcroft <marcus.shawcroft@arm.com>
8632 * config/aarch64/aarch64.c (aarch64_preferred_reload_class):
8633 Special case reload SP+C into none GENERAL_REGS.
8635 2013-10-24 Michael Matz <matz@suse.de>
8637 * gengtype.c (is_file_equal): Check that files will be same length.
8639 2013-10-25 Christian Bruel <christian.bruel@st.com>
8641 * config.gcc (sh-*): Add sh-mem.o to extra_obj.
8642 * config/sh/t-sh (sh-mem.o): New rule.
8643 * config/sh/sh-mem.cc (expand_block_move): Moved here.
8644 (sh_expand_cmpstr): New function.
8645 * config/sh/sh.c (force_into, expand_block_move): Move to sh-mem.c.
8646 * config/sh/sh-protos.h (sh_expand_cmpstr): Declare.
8647 * config/sh/sh.md (cmpstrsi, cmpstr_t): New patterns.
8648 (rotlhi3_8): Rename.
8650 2013-10-24 Jan-Benedict Glaw <jbglaw@lug-owl.de>
8652 * configure.ac (ZW_PROG_COMPILER_DEPENDENCIES): Use CXX instead of CC.
8653 * Makefile.in (CXXDEPMODE): Assign and change users.
8654 (CCDEPMODE): Delete.
8655 * configure: Regenerate.
8657 2013-10-23 David Malcolm <dmalcolm@redhat.com>
8659 * gengtype-parse.c (require_without_advance): New.
8660 (type): For GTY-marked types that are not GTY((user)), parse any
8661 base classes, requiring them to be single-inheritance, and not
8662 be templates. For non-GTY-marked types and GTY((user)),
8663 continue to skip over any C++ inheritance specification.
8664 * gengtype-state.c (state_writer::write_state_struct_type):
8665 Write base class of type (if any).
8666 (read_state_struct_type): Read base class of type (if any).
8667 * gengtype.c (new_structure): Add a "base_class" parameter.
8668 (create_optional_field_): Update for new parameter to new_structure.
8669 (adjust_field_rtx_def): Likewise.
8670 (adjust_field_tree_exp): Likewise.
8671 * gengtype.h (struct type): Add "base_class" field to the s
8673 (new_structure): Add "base" parameter.
8675 2013-10-23 Sriraman Tallam <tmsriram@google.com>
8678 * config/i386/i386.c (ix86_option_override_internal):
8679 Change TARGET_SSE2 to TARGET_SSE2_P (opts->...)
8680 (ix86_valid_target_attribute_tree):
8681 Change TARGET_64BIT to TARGET_64BIT_P (opts->...)
8682 Change TARGET_SSE to TARGET_SSE_P (opts->...)
8684 2013-10-23 Andrew MacLeod <amacleod@redhat.com>
8686 * tree-ssa-loop.h: Remove include files.
8687 * gengtype.c (open_base_files): Adjust include list for gtype-desc.c.
8688 * cfgloopmanip.c: Move required includes from tree-ssa-loop.h.
8689 * graphite-clast-to-gimple.c: Likewise.
8690 * graphite-scop-detection.c: Likewise.
8691 * graphite-sese-to-poly.c: Likewise.
8692 * ipa-inline-analysis.c: Likewise.
8693 * ipa-pure-const.c: Likewise.
8694 * loop-init.c: Likewise.
8695 * passes.c: Likewise.
8696 * predict.c: Likewise.
8697 * tree-cfg.c: Likewise.
8698 * tree-cfgcleanup.c: Likewise.
8699 * tree-chrec.c: Likewise.
8700 * tree-data-ref.c: Likewise.
8701 * tree-loop-distribution.c: Likewise.
8702 * tree-parloops.c: Likewise.
8703 * tree-predcom.c: Likewise.
8704 * tree-scalar-evolution.c: Likewise.
8705 * tree-ssa-address.c: Likewise.
8706 * tree-ssa.c: Likewise.
8707 * tree-ssa-dce.c: Likewise.
8708 * tree-ssa-loop.c: Likewise.
8709 * tree-ssa-loop-im.c: Likewise.
8710 * tree-ssa-loop-ivcanon.c: Likewise.
8711 * tree-ssa-loop-ivopts.c: Likewise.
8712 * tree-ssa-loop-manip.c: Likewise.
8713 * tree-ssa-loop-niter.c: Likewise.
8714 * tree-ssa-loop-prefetch.c: Likewise.
8715 * tree-ssa-loop-unswitch.c: Likewise.
8716 * tree-ssa-reassoc.c: Likewise.
8717 * tree-vect-data-refs.c: Likewise.
8718 * tree-vect-loop.c: Likewise.
8719 * tree-vect-loop-manip.c: Likewise.
8720 * tree-vectorizer.c: Likewise.
8721 * tree-vect-stmts.c: Likewise.
8722 * tree-vrp.c: Likewise.
8724 2013-10-23 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
8726 * config/rs6000/altivec.md (mulv8hi3): Adjust for little endian.
8728 2013-10-23 Jakub Jelinek <jakub@redhat.com>
8730 PR tree-optimization/58775
8731 PR tree-optimization/58791
8732 * tree-ssa-reassoc.c (reassoc_stmt_dominates_stmt_p): New function.
8733 (insert_stmt_after): Rewritten, don't move the stmt, but really
8735 (get_stmt_uid_with_default): Remove.
8736 (build_and_add_sum): Use insert_stmt_after and
8737 reassoc_stmt_dominates_stmt_p. Fix up uid if bb contains only labels.
8738 (update_range_test): Set uid on stmts added by
8739 force_gimple_operand_gsi. Don't immediately modify statements
8740 in inter-bb optimization, just update oe->op values.
8741 (optimize_range_tests): Return bool whether any changed have been made.
8742 (update_ops): New function.
8743 (struct inter_bb_range_test_entry): New type.
8744 (maybe_optimize_range_tests): Perform statement changes here.
8745 (not_dominated_by, appears_later_in_bb, get_def_stmt,
8746 ensure_ops_are_available): Remove.
8747 (find_insert_point): Rewritten.
8748 (rewrite_expr_tree): Remove MOVED argument, add CHANGED argument,
8749 return LHS of the (new resp. old) stmt. Don't call
8750 ensure_ops_are_available, don't reuse SSA_NAMEs, recurse first
8751 instead of last, move new stmt at the right place.
8752 (linearize_expr, repropagate_negates): Don't reuse SSA_NAMEs.
8753 (negate_value): Likewise. Set uids.
8754 (break_up_subtract_bb): Initialize uids.
8755 (reassociate_bb): Adjust rewrite_expr_tree caller.
8756 (do_reassoc): Don't call renumber_gimple_stmt_uids.
8758 2013-10-23 David Edelsohn <dje.gcc@gmail.com>
8761 * config/rs6000/rs6000.md (mulsi3_internal1 and splitter): Add
8762 TARGET_32BIT final condition.
8763 (mulsi3_internal2 and splitter): Same.
8765 2013-10-23 Jeff Law <law@redhat.com>
8767 * tree-ssa-threadedge.c (thread_across_edge): Do not allow threading
8768 through joiner blocks with abnormal outgoing edges.
8770 * tree-ssa-threadupdate.c (thread_block_1): Renamed from thread_block.
8771 Add parameter JOINERS, to allow/disallow threading through joiner
8773 (thread_block): New. Call thread_block_1.
8774 (mark_threaded_blocks): Remove code to filter out certain cases
8775 of threading through joiner blocks.
8776 (thread_through_all_blocks): Document how we can have a dangling
8777 edge AUX field and clear it.
8779 2013-10-23 Ian Lance Taylor <iant@google.com>
8781 * doc/invoke.texi (Option Summary): Remove -fno-default-inline.
8782 (C++ Dialect Options): Likewise.
8783 (Optimize Options): Likewise.
8785 2013-10-23 Tom de Vries <tom@codesourcery.com>
8787 PR tree-optimization/58805
8788 * tree-ssa-tail-merge.c (stmt_local_def): Add gimple_vdef check.
8790 2013-10-23 Jakub Jelinek <jakub@redhat.com>
8792 * tree-vect-patterns.c (vect_recog_divmod_pattern): Optimize
8793 sequence based on get_range_info returned range.
8795 2013-10-23 Andrew MacLeod <amacleod@redhat.com>
8797 * tree-ssa.h: Remove all #include's
8798 * gengtype.c (open_base_files): Adjust include list for gtype-desc.c.
8799 * alias.c: Move required includes from tree-ssa.h.
8801 * builtins.c: Likewise.
8802 * calls.c: Likewise.
8803 * cfgexpand.c: Likewise.
8804 * cfghooks.c: Likewise.
8805 * cfgloop.c: Likewise.
8806 * cfgloopmanip.c: Likewise.
8807 * cgraph.c: Likewise.
8808 * cgraphbuild.c: Likewise.
8809 * cgraphclones.c: Likewise.
8810 * cgraphunit.c: Likewise.
8812 * except.c: Likewise.
8814 * final.c: Likewise.
8815 * fold-const.c: Likewise.
8816 * ggc-page.c: Likewise.
8817 * gimple-builder.c: Likewise.
8818 * gimple-fold.c: Likewise.
8819 * gimple-iterator.c: Likewise.
8820 * gimple-low.c: Likewise.
8821 * gimple-pretty-print.c: Likewise.
8822 * gimple-ssa-strength-reduction.c: Likewise.
8823 * gimple-streamer-in.c: Likewise.
8824 * gimple-streamer-out.c: Likewise.
8825 * gimplify.c: Likewise.
8826 * graphite-blocking.c: Likewise.
8827 * graphite-clast-to-gimple.c: Likewise.
8828 * graphite-dependences.c: Likewise.
8829 * graphite-interchange.c: Likewise.
8830 * graphite-optimize-isl.c: Likewise.
8831 * graphite-poly.c: Likewise.
8832 * graphite-scop-detection.c: Likewise.
8833 * graphite-sese-to-poly.c: Likewise.
8834 * graphite.c: Likewise.
8835 * ipa-cp.c: Likewise.
8836 * ipa-inline-analysis.c: Likewise.
8837 * ipa-inline-transform.c: Likewise.
8838 * ipa-inline.c: Likewise.
8839 * ipa-prop.c: Likewise.
8840 * ipa-pure-const.c: Likewise.
8841 * ipa-reference.c: Likewise.
8842 * ipa-split.c: Likewise.
8843 * ipa-utils.c: Likewise.
8844 * loop-init.c: Likewise.
8845 * lto-cgraph.c: Likewise.
8846 * lto-section-in.c: Likewise.
8847 * lto-section-out.c: Likewise.
8848 * lto-streamer-in.c: Likewise.
8849 * lto-streamer-out.c: Likewise.
8850 * lto-streamer.c: Likewise.
8851 * omp-low.c: Likewise.
8852 * passes.c: Likewise.
8853 * predict.c: Likewise.
8854 * print-tree.c: Likewise.
8855 * profile.c: Likewise.
8857 * targhooks.c: Likewise.
8858 * tracer.c: Likewise.
8859 * trans-mem.c: Likewise.
8860 * tree-call-cdce.c: Likewise.
8861 * tree-cfg.c: Likewise.
8862 * tree-cfgcleanup.c: Likewise.
8863 * tree-chrec.c: Likewise.
8864 * tree-complex.c: Likewise.
8865 * tree-data-ref.c: Likewise.
8866 * tree-dfa.c: Likewise.
8867 * tree-eh.c: Likewise.
8868 * tree-emutls.c: Likewise.
8869 * tree-if-conv.c: Likewise.
8870 * tree-inline.c: Likewise.
8871 * tree-into-ssa.c: Likewise.
8872 * tree-loop-distribution.c: Likewise.
8873 * tree-mudflap.c: Likewise.
8874 * tree-nested.c: Likewise.
8875 * tree-nrv.c: Likewise.
8876 * tree-object-size.c: Likewise.
8877 * tree-outof-ssa.c: Likewise.
8878 * tree-parloops.c: Likewise.
8879 * tree-phinodes.c: Likewise.
8880 * tree-predcom.c: Likewise.
8881 * tree-pretty-print.c: Likewise.
8882 * tree-profile.c: Likewise.
8883 * tree-scalar-evolution.c: Likewise.
8884 * tree-sra.c: Likewise.
8885 * tree-ssa-address.c: Likewise.
8886 * tree-ssa-alias.c: Likewise.
8887 * tree-ssa-ccp.c: Likewise.
8888 * tree-ssa-coalesce.c: Likewise.
8889 * tree-ssa-copy.c: Likewise.
8890 * tree-ssa-copyrename.c: Likewise.
8891 * tree-ssa-dce.c: Likewise.
8892 * tree-ssa-dom.c: Likewise.
8893 * tree-ssa-dse.c: Likewise.
8894 * tree-ssa-forwprop.c: Likewise.
8895 * tree-ssa-ifcombine.c: Likewise.
8896 * tree-ssa-live.c: Likewise.
8897 * tree-ssa-loop-ch.c: Likewise.
8898 * tree-ssa-loop-im.c: Likewise.
8899 * tree-ssa-loop-ivcanon.c: Likewise.
8900 * tree-ssa-loop-ivopts.c: Likewise.
8901 * tree-ssa-loop-manip.c: Likewise.
8902 * tree-ssa-loop-niter.c: Likewise.
8903 * tree-ssa-loop-prefetch.c: Likewise.
8904 * tree-ssa-loop-unswitch.c: Likewise.
8905 * tree-ssa-loop.c: Likewise.
8906 * tree-ssa-math-opts.c: Likewise.
8907 * tree-ssa-operands.c: Likewise.
8908 * tree-ssa-phiopt.c: Likewise.
8909 * tree-ssa-phiprop.c: Likewise.
8910 * tree-ssa-pre.c: Likewise.
8911 * tree-ssa-propagate.c: Likewise.
8912 * tree-ssa-reassoc.c: Likewise.
8913 * tree-ssa-sccvn.c: Likewise.
8914 * tree-ssa-sink.c: Likewise.
8915 * tree-ssa-strlen.c: Likewise.
8916 * tree-ssa-structalias.c: Likewise.
8917 * tree-ssa-tail-merge.c: Likewise.
8918 * tree-ssa-ter.c: Likewise.
8919 * tree-ssa-threadedge.c: Likewise.
8920 * tree-ssa-threadupdate.c: Likewise.
8921 * tree-ssa-uncprop.c: Likewise.
8922 * tree-ssa-uninit.c: Likewise.
8923 * tree-ssa.c: Likewise.
8924 * tree-ssanames.c: Likewise.
8925 * tree-stdarg.c: Likewise.
8926 * tree-streamer-in.c: Likewise.
8927 * tree-switch-conversion.c: Likewise.
8928 * tree-tailcall.c: Likewise.
8929 * tree-vect-data-refs.c: Likewise.
8930 * tree-vect-generic.c: Likewise.
8931 * tree-vect-loop-manip.c: Likewise.
8932 * tree-vect-loop.c: Likewise.
8933 * tree-vect-patterns.c: Likewise.
8934 * tree-vect-slp.c: Likewise.
8935 * tree-vect-stmts.c: Likewise.
8936 * tree-vectorizer.c: Likewise.
8937 * tree-vrp.c: Likewise.
8940 * value-prof.c: Likewise.
8941 * var-tracking.c: Likewise.
8942 * varpool.c: Likewise.
8943 * vtable-verify.c: Likewise.
8945 2013-10-23 Jan-Benedict Glaw <jbglaw@lug-owl.de>
8947 * config/tilegx/tilegx.c: Include "tree.h".
8949 2013-10-23 Jakub Jelinek <jakub@redhat.com>
8951 * gimple-pretty-print.c (dump_ssaname_info): Always print "# " before
8952 the info, not after it.
8953 (gump_gimple_phi): Add COMMENT argument, if true, print "# " after
8954 dump_ssaname_info call.
8955 (pp_gimple_stmt_1): Adjust caller.
8956 (dump_phi_nodes): Likewise. Don't print "# " here.
8958 2013-10-22 Jan Hubicka <jh@suse.cz>
8960 * i386.h (TARGET_MISALIGNED_MOVE_STRING_PROLOGUES_EPILOGUES): New
8962 * x86-tune.def (TARGET_MISALIGNED_MOVE_STRING_PROLOGUES): Define it.
8963 * i386.c (expand_small_movmem_or_setmem): New function.
8964 (expand_set_or_movmem_prologue_epilogue_by_misaligned_moves): New
8966 (alg_usable_p): Add support for value ranges; cleanup.
8967 (ix86_expand_set_or_movmem): Add support for misaligned moves.
8969 2013-10-22 Sterling Augustine <saugustine@google.com>
8971 * doc/invoke.texi: Document -ggnu-pubnames.
8972 * common.opt: Add new option -ggnu-pubnames and modify -gpubnames
8974 * dwarf2out.c: Include gdb/gdb-index.h.
8975 (DEBUG_PUBNAMES_SECTION, DEBUG_PUBTYPES_SECTION): Handle
8976 debug_generate_pub_sections.
8977 (is_java, output_pubtables, output_pubname): New functions.
8978 (include_pubname_in_output): Handle debug_generate_pub_sections at
8980 (size_of_pubnames): Use new local space_for_flags based on
8981 debug_generate_pub_sections.
8982 (output_pubnames): Unify pubnames and pubtypes output logic.
8983 Genericize comments. Call output_pubname.
8984 (dwarf2out_finish): Move logic to output_pubnames and call it.
8986 2013-10-22 Uros Bizjak <ubizjak@gmail.com>
8989 * config/i386/i386.c (put_condition_code) <case GTU, case LEU>:
8990 Remove CCCmode handling.
8991 <case LTU>: Return 'c' suffix for CCCmode.
8992 <case GEU>: Return 'nc' suffix for CCCmode.
8993 (ix86_cc_mode) <case GTU, case LEU>: Do not generate overflow checks.
8994 * config/i386/i386.md (*sub<mode>3_cconly_overflow): Remove.
8995 (*sub<mode>3_cc_overflow): Ditto.
8996 (*subsi3_zext_cc_overflow): Ditto.
8998 2013-10-22 Steve Ellcey <sellcey@mips.com>
9000 * config/mips/mips.c (mips_rtx_costs): Fix cost estimate for nor
9001 (AND (NOT OP1) (NOT OP2)).
9003 2013-10-22 Bill Schmidt <wschmidt@vnet.ibm.com>
9005 * config/rs6000/rs6000.c (altivec_expand_vec_perm_const): Reverse
9006 meaning of merge-high and merge-low masks for little endian; avoid
9007 use of vector-pack masks for little endian for mismatched modes.
9009 2013-10-22 Jan-Benedict Glaw <jbglaw@lug-owl.de>
9011 * config/tilepro/tilepro.c: Include "tree.h".
9013 2013-10-22 Andreas Schwab <schwab@suse.de>
9015 * config/m68k/m68k.c (notice_update_cc): Handle register conflict
9018 2013-10-22 Paolo Carlini <paolo.carlini@oracle.com>
9020 * doc/contrib.texi ([Fran@,{c}ois Dumont], [Tim Shen],
9021 [Ed Smith-Rowland]): New entries.
9022 ([Stephen M. Webb]): Update.
9024 2013-10-22 Andrew MacLeod <amacleod@redhat.com>
9026 * tree-ssa-ter.h: Remove duplicate copy of file contents.
9028 2013-10-21 Marek Polacek <polacek@redhat.com>
9031 * fold-const.c (fold_range_test): Return 0 if the type is not
9034 2013-10-21 Richard Sandiford <rdsandiford@googlemail.com>
9036 * system.h: Move hwint.h include further down.
9037 * hwint.h (sext_hwi, zext_hwi): Define unconditionally. Add
9038 gcc_checking_asserts.
9039 * hwint.c (sext_hwi, zext_hwi): Delete ENABLE_CHECKING versions.
9041 2013-10-21 Bernd Edlinger <bernd.edlinger@hotmail.de>
9043 Fix volatile issues in optimize_bit_field_compare.
9044 * fold-const.c (optimize_bit_field_compare): Bail out if
9045 lvolatilep or rvolatilep.
9047 2013-10-21 Bernd Edlinger <bernd.edlinger@hotmail.de>
9049 Fix DECL_BIT_FIELD depencency on flag_strict_volatile_bitfields
9050 and get_inner_reference returning different pmode for non-volatile
9051 bit-field members dependent on flag_strict_volatile_bitfields.
9052 * stor-layout.c (layout_decl): Remove special handling of
9053 flag_strict_volatile_bitfields.
9054 * expr.c (get_inner_reference): Don't use DECL_BIT_FIELD
9055 if flag_strict_volatile_bitfields > 0 and TREE_THIS_VOLATILE.
9057 2013-10-21 Paulo Matos <pmatos@broadcom.com>
9059 * ipa-inline.c (edge_badness): Cap edge->count at max_count for badness
9062 2013-10-21 Jeff Law <law@redhat.com>
9064 * tree-ssa-threadedge.c (thread_through_normal_block): New
9065 argument VISITED. Remove VISISTED as a local variable. When we
9066 have a threadable jump, verify the destination of the jump has not
9068 (thread_across_edge): Allocate VISITED bitmap once at function
9069 scope and use it throughout. Make sure to set appropriate bits in
9070 VISITED for E (start of jump thread path).
9071 * tree-ssa-threadupdate.c (mark_threaded_blocks): Reject threading
9072 through a joiner if any edge on the path has a recorded jump thread.
9074 2013-10-21 Ian Lance Taylor <iant@google.com>
9076 * doc/invoke.texi (Optimize Options): For -fno-toplevel-reorder,
9077 don't imply that attributes can solve all problems.
9078 (Directory Options): Fix typo.
9080 2013-10-21 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
9082 * config/arm/arm.c (cortexa9_extra_costs): Update mult costs for
9083 extend and extend_add.
9085 2013-10-21 Richard Biener <rguenther@suse.de>
9087 PR tree-optimization/58794
9088 * fold-const.c (operand_equal_p): Compare FIELD_DECL operand
9089 of COMPONENT_REFs with OEP_CONSTANT_ADDRESS_OF left in place.
9091 2013-10-21 Richard Biener <rguenther@suse.de>
9094 * fold-const.c (fold_binary_loc): Fold ((T) (X /[ex] C)) * C
9095 to (T) X for sign-changing conversions (or no conversion).
9097 2013-10-20 Uros Bizjak <ubizjak@gmail.com>
9099 * config/i386/i386.md (kxnor<mode>): Add FLAGS_REG clobber.
9101 2013-10-20 Jan Hubicka <jh@suse.cz>
9103 * config/i386/i386-tune.def: Add comment; organize into categories
9105 2013-10-21 Michael Zolotukhin <michael.v.zolotukhin@gmail.com>
9107 * config/i386/i386.c (expand_set_or_movmem_via_loop): Add issetmem
9108 argument. Update function comment.
9109 (expand_set_or_movmem_via_rep): New function combining
9110 expand_movmem_via_rep_mov and expand_setmem_via_rep_stos.
9111 (expand_movmem_via_rep_mov): Remove.
9112 expand_setmem_via_rep_stos): Remove.
9113 (expand_movmem_epilogue): Update calls correspondingly.
9114 (expand_setmem_epilogue_via_loop): Likewise.
9116 (expand_setmem_epilogue): Add VEC_VALUE argument, refactor.
9117 (expand_set_or_movmem_prologue): New function combining
9118 expand_movmem_prologue and expand_setmem_prologue.
9119 (expand_movmem_prologue): Remove.
9120 (expand_setmem_prologue): Remove.
9121 (expand_set_or_movmem_constant_prologue): New function combining
9122 expand_constant_movmem_prologue and expand_constant_setmem_prologue.
9123 (expand_constant_movmem_prologue): Remove.
9124 (expand_constant_setmem_prologue): Remove.
9125 (promote_duplicated_reg): Allow vector-const0 value.
9126 (ix86_expand_set_or_movmem): New function combining ix86_expand_movmem
9127 and ix86_expand_setmem.
9128 (ix86_expand_movmem): Call ix86_expand_set_or_movmem.
9129 (ix86_expand_setmem): Call ix86_expand_set_or_movmem.
9131 2013-10-21 Diego Novillo <dnovillo@google.com>
9133 * asan.c: Include tree.h
9134 * bb-reorder.c: Likewise.
9135 * cfgcleanup.c: Likewise.
9136 * cfgloopmanip.c: Likewise.
9137 * data-streamer-in.c: Likewise.
9138 * data-streamer-out.c: Likewise.
9139 * data-streamer.c: Likewise.
9140 * dwarf2cfi.c: Likewise.
9141 * graphite-blocking.c: Likewise.
9142 * graphite-clast-to-gimple.c: Likewise.
9143 * graphite-dependences.c: Likewise.
9144 * graphite-interchange.c: Likewise.
9145 * graphite-optimize-isl.c: Likewise.
9146 * graphite-poly.c: Likewise.
9147 * graphite-scop-detection.c: Likewise.
9148 * graphite-sese-to-poly.c: Likewise.
9149 * graphite.c: Likewise.
9150 * ipa-devirt.c: Likewise.
9151 * ipa-profile.c: Likewise.
9154 * loop-init.c: Likewise.
9155 * loop-unroll.c: Likewise.
9156 * lower-subreg.c: Likewise.
9157 * lto/lto-object.c: Likewise.
9158 * recog.c: Likewise.
9159 * reginfo.c: Likewise.
9160 * tree-loop-distribution.c: Likewise.
9161 * tree-parloops.c: Likewise.
9162 * tree-ssa-strlen.c: Likewise.
9163 * tree-streamer.c: Likewise.
9164 * value-prof.c: Likewise.
9165 * target-globals.c: Likewise.
9166 * expr.h: Include tree-core.h instead of tree.h.
9167 * gimple.h: Likewise.
9168 * ipa-prop.h: Likewise.
9169 * ipa-utils.h: Likewise.
9170 * lto-streamer.h: Likewise.
9171 * streamer-hooks.h: Likewise.
9172 * ipa-reference.h: Include cgraph.h instead of tree.h.
9173 * cgraph.h: Include basic-block.h instead of tree.h.
9174 * tree-streamer.h: Do not include tree.h.
9175 * genattrtab.c (write_header): Generate inclusion of tree.h.
9176 * genautomata.c (main): Likewise.
9177 * genemit.c: Likewise.
9178 * genopinit.c: Likewise.
9179 * genoutput.c (output_prologue): Likewise.
9180 * genpeep.c: Likewise.
9182 2013-10-20 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
9184 * config/rs6000/altivec.md (vec_unpacku_hi_v16qi): Adjust for
9186 (vec_unpacku_hi_v8hi): Likewise.
9187 (vec_unpacku_lo_v16qi): Likewise.
9188 (vec_unpacku_lo_v8hi): Likewise.
9190 2013-10-20 Jan Hubicka <jh@suse.cz>
9192 * config/i386/x86-tune.def (X86_TUNE_SLOW_IMUL_IMM32_MEM,
9193 X86_TUNE_SLOW_IMUL_IMM8): Keep enabled only for K8 and AMDFAM10.
9194 (X86_TUNE_USE_VECTOR_FP_CONVERTS): Disable for generic.
9196 2013-10-20 Richard Sandiford <rdsandiford@googlemail.com>
9198 * config/mips/mips.h (ISA_HAS_WSBH): Define.
9199 * config/mips/mips.md (UNSPEC_WSBH, UNSPEC_DSBH, UNSPEC_DSHD): New
9201 (bswaphi2, bswapsi2, bswapdi2, wsbh, dsbh, dshd): New patterns.
9203 2013-10-19 John David Anglin <danglin@gcc.gnu.org>
9206 * system.h: Undef m_slot.
9208 2013-10-19 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
9210 * config/rs6000/rs6000.c (vspltis_constant): Make sure we check
9211 all elements for both endian flavors.
9213 2013-10-19 Uros Bizjak <ubizjak@gmail.com>
9216 * config/i386/i386.c (ix86_function_value_regno): Add DX_REG,
9217 ST1_REG and XMM1_REG for 32bit and 64bit targets. Also add DI_REG
9218 and SI_REG for 64bit SYSV ABI targets.
9220 2013-10-19 Uros Bizjak <ubizjak@gmail.com>
9222 * mode-switching.c (create_pre_exit): Rename maybe_builtin_apply
9223 to multi_reg_return. Clarify that we are skipping USEs of multiple
9224 return registers. Use bool type where appropriate.
9226 2013-10-18 Jan Hubicka <jh@suse.cz>
9228 * config/i386/i386.h (ACCUMULATE_OUTGOING_ARGS): Disable accumulation
9230 * x86-tune.def (X86_TUNE_USE_LEAVE): Update comment.
9231 (X86_TUNE_PUSH_MEMORY): Likewise.
9232 (X86_TUNE_AVX256_UNALIGNED_LOAD_OPTIMAL,
9233 X86_TUNE_AVX256_UNALIGNED_STORE_OPTIMAL): New.
9234 (X86_TUNE_ACCUMULATE_OUTGOING_ARGS, X86_TUNE_ALWAYS_FANCY_MATH_387):
9236 * i386.c (x86_accumulate_outgoing_args, x86_arch_always_fancy_math_387,
9237 x86_avx256_split_unaligned_load, x86_avx256_split_unaligned_store):
9239 (ix86_option_override_internal): Update to use tune features instead
9242 2013-10-18 Cong Hou <congh@google.com>
9244 PR tree-optimization/58508
9245 * tree-vect-loop-manip.c (vect_loop_versioning): Hoist loop invariant
9246 statement that contains data refs with zero-step.
9248 2013-10-18 Andrew MacLeod <amacleod@redhat.com>
9250 * tree-ssa.h: Don't include gimple-low.h, tree-ssa-address.h,
9251 sbitmap.h, tree-ssa-threadedge.h, tree-ssa-dom.h and tree-cfgcleanup.h.
9252 * gimple-low.c (gimple_check_call_arg,
9253 gimple_check_call_matching_types): Move to cgraph.c.
9254 * gimple-low.h: Remove prototype.
9255 * cgraph.c: (gimple_check_call_arg, gimple_check_call_matching_types):
9256 Relocate from gimple-low.c.
9257 * cgraph.h: Add prototype. Don't include basic-block.h.
9258 * gimplify.c: Add gimple-low to include list.
9259 * omp-low.c: Add gimple-low and tree-cfgcleanup.h to include list.
9260 * tree-eh.c: Add gimple-low to include list.
9261 * tree-nested.c: Likewise.
9262 * cfgexpand.c: Add tree-ssa-address.h to include list.
9264 * gimple-fold.c: Likewise.
9265 * gimple-ssa-strength-reduction.c: Likewise.
9266 * trans-mem.c: Likewise.
9267 * tree-mudflap.c: Likewise.
9268 * tree-ssa-loop-ivopts.c: Likewise.
9269 * tree-ssa-dom.c: Include tree-ssa-threadedge.h and tree-ssa-dom.h.
9270 (degenerate_phi_result): Move to tree-phinodes.c.
9271 * tree-ssa-loop-ch.c: Include tree-ssa-threadedge.h.
9272 * tree-ssa-threadedge.c: Likewise.
9273 * tree-vrp.c: Likewise.
9274 * tree-phinodes.c (degenerate_phi_result): Relocate here.
9275 * tree-ssa-dom.h (degenerate_phi_result): Remove Prototype.
9276 * tree-phinodes.h (degenerate_phi_result): Add prototype.
9277 * tree-ssa-copy.c: Include tree-ssa-dom.h.
9278 * tree-ssa-forwprop.c: Likewise.
9279 * tree-cfgcleanup.c (execute_cleanup_cfg_post_optimizing,
9280 pass_data_cleanup_cfg_post_optimizing,
9281 make_pass_cleanup_cfg_post_optimizing): Relocate from tree-optimize.c.
9282 * tree-optimize.c: Delete File.
9283 * graphite.c: Include tree-cfgcleanup.h.
9284 * passes.c: Likewise.
9285 * tree-cfg.c: Likewise.
9286 * tree-profile.c: Likewise.
9287 * tree-ssa-dse.c: Likewise.
9288 * tree-ssa-loop-ivcanon.c: Likewise.
9289 * tree-switch-conversion.c: Don't include tree-ssa-operands.h.
9290 * tree-outof-ssa.c: Include sbitmap.h.
9291 * tree-ssa-live.c: Likewise.
9292 * tree-ssa-propagate.c: Likewise.
9293 * tree-ssa-structalias.c: Likewise.
9294 * tree-stdarg.c: Likewise.
9295 * Makefile.in (OBJS): Delete tree-optimize.o.
9296 * basic-block.h (gcov_type, gcov_type_unsigned): Move to coretypes.h.
9297 * coretypes.h (gcov_type, gcov_type_unsigned): Relocate here.
9298 * varasm.c: Include basic-block.h.
9299 * cfgloop.h: Include function.h instead of basic-block.h
9300 (bb_loop_depth): Move to cfgloop.c.
9301 * cfgloop.c (bb_loop_depth): Relocate from cfgloop.h.
9303 2013-10-18 Teresa Johnson <tejohnson@google.com>
9305 * predict.c (probably_never_executed): Compare frequency-based
9306 count to number of training runs.
9307 * params.def (UNLIKELY_BB_COUNT_FRACTION): New parameter.
9309 2013-10-18 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
9311 * config/arm/arm.c (cortexa9_extra_costs): New table.
9312 (arm_cortex_a9_tune): Use cortexa9_extra_costs.
9314 2013-10-18 Jeff Law <law@redhat.com>
9316 * tree-ssa-threadupdate.c: Do not include "tm.h" or "tm_p.h".
9318 * tree-ssa-threadupdate.c: Include "dbgcnt.h".
9319 (register_jump_thread): Add "registered_jump_thread" debug
9321 * dbgcnt.def (registered_jump_thread): New debug counter.
9323 2013-10-18 Andrew MacLeod <amacleod@redhat.com>
9325 * config/rs6000/rs6000.c: Include cgraph.h.
9327 2013-10-18 Teresa Johnson <tejohnson@google.com>
9329 * tree-ssa-tail-merge.c (replace_block_by): Update edge
9330 weights during merging.
9332 2013-10-18 Andrew MacLeod <amacleod@redhat.com>
9334 * tree-cfg.h: Rename from tree-flow.h. Remove #includes.
9335 * tree-ssa.h: Relocate required #includes from tree-cfg.h.
9336 * tree-ssa-operands.h: Remove prototype.
9337 * tree-ssa-operands.c (virtual_operand_p): Move to gimple.c.
9338 * gimple.c (virtual_operand_p): Relocate from gimple.c.
9339 * gimple.h: Add prototype.
9340 * gimple-ssa.h: Include tree-ssa-operands.h.
9341 * tree-dump.c: Add tree-cfg.h to include list.
9342 * tree-ssa-alias.c: Add ipa-reference.h to include list.
9343 * config/alpha/alpha.c: Include gimple-ssa.h instead of tree-flow.h.
9344 * config/i386/i386.c: Don't include tree-flow.h.
9345 * config/rs6000/rs6000.c: Likewise.
9347 2013-10-18 Jan-Benedict Glaw <jbglaw@lug-owl.de>
9349 * config/frv/frv.c (frv_init_cumulative_args): Fix wrong cast.
9351 2013-10-18 Richard Biener <rguenther@suse.de>
9353 * stor-layout.c (layout_type): Do not change TYPE_PRECISION
9354 or TYPE_UNSIGNED of integral types.
9355 (set_min_and_max_values_for_integral_type): Leave TYPE_MIN/MAX_VALUE
9356 NULL_TREE for zero-precision integral types.
9358 2013-10-18 James Greenhalgh <james.greenhalgh@arm.com>
9360 * config/aarch64/arm_neon.h
9361 (vcvt<ds>_n_<fsu><32,64>_<fsu><32,64>): Correct argument types.
9363 2013-10-17 Sriraman Tallam <tmsriram@google.com>
9366 * opth-gen.awk: Define target_flags_explicit.
9368 2013-10-17 Michael Meissner <meissner@linux.vnet.ibm.com>
9370 * config/rs6000/rs6000.c (enum rs6000_reload_reg_type): Add new
9371 fields to the reg_addr array that describes the valid addressing
9372 mode for any register, general purpose registers, floating point
9373 registers, and Altivec registers.
9374 (FIRST_RELOAD_REG_CLASS): Likewise.
9375 (LAST_RELOAD_REG_CLASS): Likewise.
9376 (struct reload_reg_map_type): Likewise.
9377 (reload_reg_map_type): Likewise.
9378 (RELOAD_REG_VALID): Likewise.
9379 (RELOAD_REG_MULTIPLE): Likewise.
9380 (RELOAD_REG_INDEXED): Likewise.
9381 (RELOAD_REG_OFFSET): Likewise.
9382 (RELOAD_REG_PRE_INCDEC): Likewise.
9383 (RELOAD_REG_PRE_MODIFY): Likewise.
9384 (reg_addr): Likewise.
9385 (mode_supports_pre_incdec_p): New helper functions to say whether
9386 a given mode supports PRE_INC, PRE_DEC, and PRE_MODIFY.
9387 (mode_supports_pre_modify_p): Likewise.
9388 (rs6000_debug_vector_unit): Rearrange the -mdebug=reg output to
9389 print the valid address mode bits for each mode.
9390 (rs6000_debug_print_mode): Likewise.
9391 (rs6000_debug_reg_global): Likewise.
9392 (rs6000_setup_reg_addr_masks): New function to set up the address
9393 mask bits for each type.
9394 (rs6000_init_hard_regno_mode_ok): Use memset to clear arrays.
9395 Call rs6000_setup_reg_addr_masks to set up the address mask bits.
9396 (rs6000_legitimate_address_p): Use mode_supports_pre_incdec_p and
9397 mode_supports_pre_modify_p to determine if PRE_INC, PRE_DEC, and
9398 PRE_MODIFY are supported.
9399 (rs6000_output_move_128bit): Change to use {src,dest}_vmx_p for altivec
9400 registers, instead of {src,dest}_av_p.
9401 (rs6000_print_options_internal): Tweak the debug output slightly.
9403 2013-10-17 Uros Bizjak <ubizjak@gmail.com>
9405 * config/i386/sse.md (*vec_widen_smult_even_v8si): Remove
9408 2013-10-17 Andrew MacLeod <amacleod@redhat.com>
9410 * tree-flow.h (struct omp_region): Move to omp-low.c.
9411 Remove omp_ prototypes and variables.
9412 * gimple.h (omp_reduction_init): Move prototype to omp-low.h.
9413 (copy_var_decl): Relocate prototype from tree-flow.h.
9414 * gimple.c (copy_var_decl): Relocate from omp-low.c.
9415 * tree.h: Move prototype to omp-low.h.
9416 * omp-low.h: New File. Relocate prototypes here.
9417 * omp-low.c (struct omp_region): Make local here.
9418 (root_omp_region): Make static.
9419 (copy_var_decl) Move to gimple.c.
9420 (new_omp_region): Make static.
9421 (make_gimple_omp_edges): New. Refactored from tree-cfg.c make_edges.
9422 * tree-cfg.c: Include omp-low.h.
9423 (make_edges): Factor out OMP specific bits to make_gimple_omp_edges.
9424 * gimplify.c: Include omp-low.h.
9425 * tree-parloops.c: Likewise.
9427 2013-10-17 Uros Bizjak <ubizjak@gmail.com>
9429 * config/i386/i386.c (ix86_fixup_binary_operands): When both source
9430 operands are in memory, prefer to force non-matched operand 1 to
9433 2013-10-17 Michael Meissner <meissner@linux.vnet.ibm.com>
9436 * config/rs6000/rs6000.c (rs6000_legitimate_address_p): Only
9437 restrict TImode addresses to single indirect registers if both
9438 -mquad-memory and -mvsx-timode are used.
9439 (rs6000_output_move_128bit): Use quad_load_store_p to determine if
9440 we should emit load/store quad. Remove using %y for quad memory
9443 * config/rs6000/rs6000.md (mov<mode>_ppc64, TI/PTImode): Add
9444 constraints to allow load/store quad on machines where TImode is
9445 not allowed in VSX registers. Use 'n' instead of 'F' constraint
9446 for TImode to load integer constants.
9448 2013-10-17 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
9450 * config/aarch64/aarch64.c (aarch64_print_operand): Handle 'c'.
9452 2013-10-17 Marcus Shawcroft <marcus.shawcroft@arm.com>
9454 * config/aarch64/aarch64.c (aarch64_preferred_reload_class): Adjust
9455 handling of STACK_REG.
9457 2013-10-17 Richard Biener <rguenther@suse.de>
9459 PR tree-optimization/58143
9460 * tree-ssa-loop-im.c (arith_code_with_undefined_signed_overflow):
9462 (rewrite_to_defined_overflow): Likewise.
9463 (move_computations_dom_walker::before_dom): Rewrite stmts
9464 with undefined signed overflow that are not always executed
9465 into unsigned arithmetic.
9467 2013-10-16 Michael Meissner <meissner@linux.vnet.ibm.com>
9470 * config/rs6000/rs6000.opt (rs6000_isa_flags_explicit): Move the
9471 explicit isa flag to be an options variable, instead of using
9472 global_options_set. Remove define from rs6000.h.
9473 * config/rs6000/rs6000.h (rs6000_isa_flags_explicit): Likewise.
9475 * config/rs6000/rs6000.c (rs6000_option_override_internal):
9476 Initialize rs6000_isa_flags_explicit.
9477 (rs6000_function_specific_save): Add gcc_options* parameter, so
9478 that the powerpc builds after the 2013-10-15 changes.
9479 (rs6000_function_specific_restore): Likewise.
9481 2013-10-16 DJ Delorie <dj@redhat.com>
9483 * config/rl78/rl78.c (rl78_alloc_address_registers_macax): Verify
9484 op is a REG before checking REGNO.
9485 (rl78_alloc_physical_registers): Verify pattern is a SET before
9488 2013-10-16 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
9490 * config/rs6000/vector.md (vec_unpacks_hi_v4sf): Correct for
9492 (vec_unpacks_lo_v4sf): Likewise.
9493 (vec_unpacks_float_hi_v4si): Likewise.
9494 (vec_unpacks_float_lo_v4si): Likewise.
9495 (vec_unpacku_float_hi_v4si): Likewise.
9496 (vec_unpacku_float_lo_v4si): Likewise.
9498 2013-10-16 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
9500 * config/rs6000/vsx.md (vsx_concat_<mode>): Adjust output for LE.
9501 (vsx_concat_v2sf): Likewise.
9503 2013-10-16 James Greenhalgh <james.greenhalgh@arm.com>
9505 * config/aarch64/aarch64.md
9506 (*mov<mode>_aarch64): Fix output template for DUP (element) Scalar.
9508 2013-10-16 Andrew MacLeod <amacleod@redhat.com>
9510 PR tree-optimization/58697
9511 * cfgloop.c (get_estimated_loop_iterations_int): Rename from
9512 estimated_loop_iterations_int.
9513 (max_stmt_executions_int): Call get_max_loop_iterations_int.
9514 (get_max_loop_iterations_int): New. HWINT version of
9515 get_max_loop_iterations.
9516 * cfgloop.h: Add prototypes.
9517 * loop-iv.c (find_simple_exit): call get_estimated_loop_iterations_int.
9518 * loop-unroll.c (decide_peel_once_rolling): Call
9519 get_estimated_loop_iterations_int.
9520 * tree-ssa-loop-niter.c (estimated_loop_iterations_int): Add back.
9521 * tree-ssa-loop-niter.h: Tweak prototypes.
9523 2013-10-16 David Malcolm <dmalcolm@redhat.com>
9525 * gengtype-parse.c (struct_field_seq): Ignore access-control
9526 keywords ("public:" etc).
9528 2013-10-16 Marcus Shawcroft <marcus.shawcroft@arm.com>
9530 * config/aarch64/aarch64.c (aarch64_regno_regclass): Classify
9531 FRAME_POINTER_REGNUM and ARG_POINTER_REGNUM as POINTER_REGS.
9533 2013-10-16 Yvan Roux <yvan.roux@linaro.org>
9535 * config/arm/arm.opt (mlra): New option.
9536 * config/arm/arm.c (arm_lra_p): New function.
9537 (TARGET_LRA_P): Define.
9539 2013-10-16 Paulo Matos <pmatos@broadcom.com>
9541 * tree-core.h (tree_code_name): Remove.
9542 * tree.h (get_tree_code_name): New prototype.
9543 * tree.c (tree_code_name): Make static.
9544 (get_tree_code_name): New function.
9545 (dump_tree_statistics, tree_check_failed, tree_not_check_failed,
9546 tree_class_check_failed, tree_range_check_failed,
9547 tree_not_class_check_failed, omp_clause_check_failed,
9548 tree_contains_struct_check_failed, tree_operand_check_failed): Use new
9549 wrapper get_tree_code_name instead of calling tree_code_name directly.
9550 * tree-vrp.c (dump_asserts_for): Likewise.
9551 * tree-dump.c (dequeue_and_dump): Likewise.
9552 * tree-pretty-print.c (do_niy, dump_generic_node): Likewise.
9553 * tree-pretty-print.h (pp_unsupported_tree): Likewise.
9554 * lto-streamer-out.c (lto_write_tree, DFS_write_tree): Likewise.
9555 * tree-ssa-dom.c (print_expr_hash_elt): Likewise.
9556 * gimple-pretty-print.c (dump_unary_rhs, dump_binary_rhs,
9557 dump_ternary_rhs, dump_gimple_assign, dump_gimple_cond,
9558 dump_gimple_omp_for): Likewise.
9559 * tree-vect-data-refs.c (vect_create_data_ref_ptr): Likewise.
9560 * tree-ssa-pre.c (print_pre_expr): Likewise.
9561 * ipa-prop.c (ipa_print_node_jump_functions_for_edge): Likewise.
9562 * print-tree.c (print_node_brief, print_node): Likewise.
9563 * gimple.c (gimple_check_failed): Likewise.
9564 * lto-streamer.c (lto_tag_name, print_lto_report): Likewise.
9565 * config/frv/frv.c (frv_init_cumulative_args): Likewise.
9566 * config/mep/mep.c (mep_validate_vliw): Likewise.
9567 * config/iq2000/iq2000.c (init_cumulative_args): Likewise.
9568 * config/rs6000/rs6000.c (init_cumulative_args): Likewise.
9570 2013-10-16 Ganesh Gopalasubramanian <Ganesh.Gopalasubramanian@amd.com>
9572 * config/i386/i386.c (ix86_option_override_internal): Enable FMA4
9575 2013-10-16 Hans-Peter Nilsson <hp@axis.com>
9577 * config/cris/t-elfmulti (MULTILIB_OPTIONS, MULTILIB_DIRNAMES)
9578 (MULTILIB_MATCHES): Add multilib for -march=v8.
9580 2013-10-15 Sriraman Tallam <tmsriram@google.com>
9583 * optc-save-gen.awk: Add extra parameter to the save and restore
9585 * opth-gen.awk: Generate new TARGET_* macros to accept a parameter.
9586 * tree.c (build_optimization_node): New parameter. Add extra parameter
9587 to call to cl_optimization_save.
9588 (build_target_option_node): New parameter. Add extra parameter
9589 to call to cl_target_option_save.
9590 * tree.h (build_optimization_node): New parameter.
9591 (build_target_option_node): New parameter.
9592 * c-family/c-common.c (handle_optimize_attribute): Fix calls to
9593 build_optimization_node and build_target_option_node.
9594 * c-family/c-pragma.c (handle_pragma_optimize): Ditto.
9595 (handle_pragma_push_options): Ditto.
9596 * toplev.c (process_options): Ditto.
9597 * opts.c (init_options_struct): Check for opts_set non-null.
9598 * target.def (target_option.save): New parameter.
9599 (target_option.restore): New parameter.
9600 * tm.texi: Generate.
9601 * config/i386/i386-c.c (ix86_target_macros_internal): Ditto.
9602 (ix86_pragma_target_parse): Ditto.
9603 * config/i386/i386-protos.h (ix86_valid_target_attribute_tree): New
9605 * config/rs6000/rs6000.c (rs6000_option_override_internal): Fix calls
9606 to build_optimization_node and build_target_option_node.
9607 (rs6000_valid_attribute_p): Ditto.
9608 (rs6000_pragma_target_parse): Ditto.
9609 * config/i386/i386.opt (x_ix86_target_flags_explicit): New TargetSave
9611 * config/i386/i386.h:
9612 TARGET_64BIT_P: New Macro
9613 TARGET_MMX_P: New Macro.
9614 TARGET_3DNOW_P: New Macro.
9615 TARGET_3DNOW_A_P: New Macro.
9616 TARGET_SSE_P: New Macro.
9617 TARGET_SSE2_P: New Macro.
9618 TARGET_SSE3_P: New Macro.
9619 TARGET_SSSE3_P: New Macro.
9620 TARGET_SSE4_1_P: New Macro.
9621 TARGET_SSE4_2_P: New Macro.
9622 TARGET_AVX_P: New Macro.
9623 TARGET_AVX2_P: New Macro.
9624 TARGET_AVX512F_P: New Macro.
9625 TARGET_AVX512PF_P: New Macro.
9626 TARGET_AVX512ER_P: New Macro.
9627 TARGET_AVX512CD_P: New Macro.
9628 TARGET_FMA_P: New Macro.
9629 TARGET_SSE4A_P: New Macro.
9630 TARGET_FMA4_P: New Macro.
9631 TARGET_XOP_P: New Macro.
9632 TARGET_LWP_P: New Macro.
9633 TARGET_ABM_P: New Macro.
9634 TARGET_BMI_P: New Macro.
9635 TARGET_BMI2_P: New Macro.
9636 TARGET_LZCNT_P: New Macro.
9637 TARGET_TBM_P: New Macro.
9638 TARGET_POPCNT_P: New Macro.
9639 TARGET_SAHF_P: New Macro.
9640 TARGET_MOVBE_P: New Macro.
9641 TARGET_CRC32_P: New Macro.
9642 TARGET_AES_P: New Macro.
9643 TARGET_PCLMUL_P: New Macro.
9644 TARGET_CMPXCHG16B_P: New Macro.
9645 TARGET_FSGSBASE_P: New Macro.
9646 TARGET_RDRND_P: New Macro.
9647 TARGET_F16C_P: New Macro.
9648 TARGET_RTM_P: New Macro.
9649 TARGET_HLE_P: New Macro.
9650 TARGET_RDSEED_P: New Macro.
9651 TARGET_PRFCHW_P: New Macro.
9652 TARGET_ADX_P: New Macro.
9653 TARGET_FXSR_P: New Macro.
9654 TARGET_XSAVE_P: New Macro.
9655 TARGET_XSAVEOPT_P: New Macro.
9656 TARGET_LP64_P: New Macro.
9657 TARGET_X32_P: New Macro.
9658 TARGET_FPMATH_DEFAULT_P: New Macro.
9659 TARGET_FLOAT_RETURNS_IN_80387_P: New Macro.
9660 * config/i386/i386.c (ix86_option_override_internal): New parameters.
9662 Change ix86_tune_string to access opts->x_ix86_tune_string.
9663 Change ix86_isa_flags to access opts->x_ix86_isa_flags.
9664 Change ix86_arch_string to access opts->x_ix86_arch_string.
9665 Change ix86_stringop_alg to access opts->x_ix86_stringop_alg.
9666 Change ix86_pmode to access opts->x_ix86_pmode.
9667 Change ix86_abi to access opts->x_ix86_abi.
9668 Change ix86_cmodel to access opts->x_ix86_cmodel.
9669 Change ix86_asm_dialect to access opts->x_ix86_asm_dialect.
9670 Change ix86_isa_flags_explicit to access
9671 opts->x_ix86_isa_flags_explicit.
9672 Change ix86_dump_tunes to access opts->x_ix86_dump_tunes.
9673 Change ix86_regparm to access opts->x_ix86_regparm.
9674 Change ix86_branch_cost to access opts->x_ix86_branch_cost.
9675 Change ix86_preferred_stack_boundary_arg to access
9676 opts->x_ix86_preferred_stack_boundary_arg.
9677 Change ix86_force_align_arg_pointer to access
9678 opts->x_ix86_force_align_arg_pointer.
9679 Change ix86_incoming_stack_boundar_arg to access
9680 opts->x_ix86_incoming_stack_boundar_arg.
9681 Change ix86_fpmath to access opts->x_ix86_fpmath.
9682 Change ix86_veclibabi_type to access opts->x_ix86_veclibabi_type.
9683 Change ix86_recip_name to access opts->x_ix86_recip_name.
9684 Change ix86_stack_protector_guard to access
9685 opts->x_ix86_stack_protector_guard.
9686 Change ix86_tune_memcpy_strategy to access
9687 opts->x_ix86_tune_memcpy_strategy.
9688 Change ix86_tune_memset_strategy to access
9689 opts->x_ix86_tune_memset_strategy.
9690 Change global_options to access opts.
9691 Change global_options_set to access opts_set.
9692 Change TARGET_64BIT to TARGET_64BIT_P (opts->...).
9693 Change TARGET_MMX to TARGET_MMX_P (opts->...).
9694 Change TARGET_3DNOW to TARGET_3DNOW_P (opts->...).
9695 Change TARGET_3DNOW_A to TARGET_3DNOW_A_P (opts->...).
9696 Change TARGET_SSE to TARGET_SSE_P (opts->...).
9697 Change TARGET_SSE2 to TARGET_SSE2_P (opts->...).
9698 Change TARGET_SSE3 to TARGET_SSE3_P (opts->...).
9699 Change TARGET_SSSE3 to TARGET_SSSE3_P (opts->...).
9700 Change TARGET_SSE4_1 to TARGET_SSE4_1_P (opts->...).
9701 Change TARGET_SSE4_2 to TARGET_SSE4_2_P (opts->...).
9702 Change TARGET_AVX to TARGET_AVX_P (opts->...).
9703 Change TARGET_AVX2 to TARGET_AVX2_P (opts->...).
9704 Change TARGET_AVX512F to TARGET_AVX512F_P (opts->...).
9705 Change TARGET_AVX512PF to TARGET_AVX512PF_P (opts->...).
9706 Change TARGET_AVX512ER to TARGET_AVX512ER_P (opts->...).
9707 Change TARGET_AVX512CD to TARGET_AVX512CD_P (opts->...).
9708 Change TARGET_FMA to TARGET_FMA_P (opts->...).
9709 Change TARGET_SSE4A to TARGET_SSE4A_P (opts->...).
9710 Change TARGET_FMA4 to TARGET_FMA4_P (opts->...).
9711 Change TARGET_XOP to TARGET_XOP_P (opts->...).
9712 Change TARGET_LWP to TARGET_LWP_P (opts->...).
9713 Change TARGET_ABM to TARGET_ABM_P (opts->...).
9714 Change TARGET_BMI to TARGET_BMI_P (opts->...).
9715 Change TARGET_BMI2 to TARGET_BMI2_P (opts->...).
9716 Change TARGET_LZCNT to TARGET_LZCNT_P (opts->...).
9717 Change TARGET_TBM to TARGET_TBM_P (opts->...).
9718 Change TARGET_POPCNT to TARGET_POPCNT_P (opts->...).
9719 Change TARGET_SAHF to TARGET_SAHF_P (opts->...).
9720 Change TARGET_MOVBE to TARGET_MOVBE_P (opts->...).
9721 Change TARGET_CRC32 to TARGET_CRC32_P (opts->...).
9722 Change TARGET_AES to TARGET_AES_P (opts->...).
9723 Change TARGET_PCLMUL to TARGET_PCLMUL_P (opts->...).
9724 Change TARGET_CMPXCHG16B to TARGET_CMPXCHG16B_P (opts->...).
9725 Change TARGET_FSGSBASE to TARGET_FSGSBASE_P (opts->...).
9726 Change TARGET_RDRND to TARGET_RDRND_P (opts->...).
9727 Change TARGET_F16C to TARGET_F16C_P (opts->...).
9728 Change TARGET_RTM to TARGET_RTM_P (opts->...).
9729 Change TARGET_HLE to TARGET_HLE_P (opts->...).
9730 Change TARGET_RDSEED to TARGET_RDSEED_P (opts->...).
9731 Change TARGET_PRFCHW to TARGET_PRFCHW_P (opts->...).
9732 Change TARGET_ADX to TARGET_ADX_P (opts->...).
9733 Change TARGET_FXSR to TARGET_FXSR_P (opts->...).
9734 Change TARGET_XSAVE to TARGET_XSAVE_P (opts->...).
9735 Change TARGET_XSAVEOPT to TARGET_XSAVEOPT_P (opts->...).
9736 Change TARGET_LP64 to TARGET_LP64_P (opts->...).
9737 Change TARGET_X32 to TARGET_X32_P (opts->...).
9738 Change TARGET_FPMATH_DEFAULT to TARGET_FPMATH_DEFAULT_P (opts->...).
9739 Change TARGET_FLOAT_RETURNS_IN_80387 to
9740 TARGET_FLOAT_RETURNS_IN_80387_P (opts->...).
9741 (ix86_function_specific_save): New parameter. Use opts-> fields
9742 to replace global fields.
9743 (ix86_function_specific_restore): Ditto.
9744 (ix86_valid_target_attribute_inner_p): New parameters.
9746 Fix call to ix86_handle_option and set_option.
9747 (ix86_valid_target_attribute_tree): New parameters.
9748 Change global_options to access opts.
9749 Change global_options_set to access opts_set.
9750 Fix call to ix86_valid_target_attribute_inner_p.
9751 Change ix86_tune_string to access opts->x_ix86_tune_string.
9752 Change ix86_arch_string to access opts->x_ix86_arch_string.
9753 Change ix86_fpmath to access opts->x_ix86_fpmath
9754 Fix call to ix86_option_override_internal.
9755 Fix call to ix86_add_new_builtins.
9756 Fix calls to build_optimization_node and build_target_option_node.
9757 (ix86_valid_target_attribute_p): Remove access to global_options.
9758 Use new gcc_options structure func_options.
9759 Fix call to ix86_valid_target_attribute_tree.
9760 Fix call to build_optimization_node.
9761 (get_builtin_code_for_version): Fix call to
9762 ix86_valid_target_attribute_tree.
9764 2013-10-15 David Malcolm <dmalcolm@redhat.com>
9766 * Makefile.in (PICFLAG): New.
9767 (enable_host_shared): New.
9768 (INTERNAL_CFLAGS): Use PICFLAG.
9769 (LIBIBERTY): Use pic build of libiberty.a if configured with
9770 --enable-host-shared.
9771 * configure.ac: Add --enable-host-shared, setting up new
9773 * configure: Regenerate.
9774 * doc/install.texi (--enable-shared): Add note contrasting it with ...
9775 (--enable-host-shared): New option.
9777 2013-10-15 Richard Biener <rguenther@suse.de>
9779 * tree-tailcall.c (find_tail_calls): Don't use tail-call recursion
9780 for built-in functions.
9782 2013-10-15 Zhenqiang Chen <zhenqiang.chen@arm.com>
9784 * tree-ssa-reassoc.c: Include rtl.h and tm_p.h.
9785 (optimize_range_tests_1): New function,
9786 extracted from optimize_range_tests.
9787 (optimize_range_tests_xor): Similarly.
9788 (optimize_range_tests_diff): New function.
9789 (optimize_range_tests): Use optimize_range_tests_1.
9791 2013-10-15 Cong Hou <congh@google.com>
9793 * tree-vect-loop.c (vect_is_simple_reduction_1): Relax the
9794 requirement of the reduction pattern so that one operand of the
9795 reduction operation can come from outside of the loop.
9797 2013-10-15 James Greenhalgh <james.greenhalgh@arm.com>
9799 * config/arm/neon-schedgen.ml: Remove.
9800 * config/arm/cortex-a9-neon.md: Remove comment regarding
9803 2013-10-15 James Greenhalgh <james.greenhalgh@arm.com>
9805 * config/arm/types: Remove old neon types.
9807 2013-10-15 James Greenhalgh <james.greenhalgh@arm.com>
9809 * config/arm/cortex-a7.md
9810 (cortex_a7_neon_type): New.
9811 (cortex_a7_neon_mul): Update for new types.
9812 (cortex_a7_neon_mla): Likewise.
9813 (cortex_a7_neon): Likewise.
9815 2013-10-15 James Greenhalgh <james.greenhalgh@arm.com>
9817 * config/arm/cortex-a15-neon.md
9818 (cortex_a15_neon_type): New,
9820 (cortex_a15_neon_int_1): Remove.
9821 (cortex_a15_neon_int_2): Likewise.
9822 (cortex_a15_neon_int_3): Likewise.
9823 (cortex_a15_neon_int_4): Likewise.
9824 (cortex_a15_neon_int_5): Likewise.
9825 (cortex_a15_neon_vqneg_vqabs): Likewise.
9826 (cortex_a15_neon_vmov): Likewise.
9827 (cortex_a15_neon_vaba): Likewise.
9828 (cortex_a15_neon_vaba_qqq): Likewise.
9829 (cortex_a15_neon_mul_ddd_8_16_qdd_16_8_long_32_16_long): Likewise.
9830 (cortex_a15_neon_mul_qqq_8_16_32_ddd_32): Likewise.
9831 (cortex_a15_neon_mul_qdd_64_32_long_qqd_16_ddd_32_scalar_64_32_long_scalar):
9833 (cortex_a15_neon_mla_ddd_8_16_qdd_16_8_long_32_16_long): Likewise.
9834 (cortex_a15_neon_mla_qqq_8_16): Likewise.
9835 (cortex_a15_neon_mla_ddd_32_qqd_16_ddd_32_scalar): Likewise.
9836 (cortex_a15_neon_mla_qqq_32_qqd_32_scalar): Likewise.
9837 (cortex_a15_neon_mul_ddd_16_scalar_32_16_long_scalar): Likewise.
9838 (cortex_a15_neon_mul_qqd_32_scalar): Likewise.
9839 (cortex_a15_neon_mla_ddd_16_scalar_qdd_32_16_long_scalar): Likewise.
9840 (cortex_a15_neon_shift_1): Likewise.
9841 (cortex_a15_neon_shift_2): Likewise.
9842 (cortex_a15_neon_shift_3): Likewise.
9843 (cortex_a15_neon_vshl_ddd): Likewise.
9844 (cortex_a15_neon_vqshl_vrshl_vqrshl_qqq): Likewise.
9845 (cortex_a15_neon_vsra_vrsra): Likewise.
9846 (cortex_a15_neon_fp_vmla_ddd_scalar): Likewise.
9847 (cortex_a15_neon_fp_vmla_qqq_scalar): Likewise.
9848 (cortex_a15_neon_bp_3cycle): Likewise.
9849 (cortex_a15_neon_ldm_2): Likewise.
9850 (cortex_a15_neon_stm_2): Likewise.
9851 (cortex_a15_neon_mcr): Likewise.
9852 (cortex_a15_neon_mrc): Likewise.
9853 (cortex_a15_neon_fp_vadd_ddd_vabs_dd): Likewise.
9854 (cortex_a15_neon_fp_vadd_qqq_vabs_qq): Likewise.
9855 (cortex_a15_neon_fp_vmul_ddd): Likewise.
9856 (cortex_a15_neon_fp_vmul_qqd): Likewise.
9857 (cortex_a15_neon_fp_vmla_ddd): Likewise.
9858 (cortex_a15_neon_fp_vmla_qqq): Likewise.
9859 (cortex_a15_neon_fp_vmla_ddd_scalar): Likewise.
9860 (cortex_a15_neon_fp_vmla_qqq_scalar): Likewise.
9861 (cortex_a15_neon_fp_vrecps_vrsqrts_ddd): Likewise.
9862 (cortex_a15_neon_fp_vrecps_vrsqrts_qqq): Likewise.
9863 (cortex_a15_neon_bp_simple): Likewise.
9864 (cortex_a15_neon_bp_2cycle): Likewise.
9865 (cortex_a15_neon_bp_3cycle): Likewise.
9866 (cortex_a15_neon_vld1_1_2_regs): Likewise.
9867 (cortex_a15_neon_vld1_3_4_regs): Likewise.
9868 (cortex_a15_neon_vld2_2_regs_vld1_vld2_all_lanes): Likewise.
9869 (cortex_a15_neon_vld2_4_regs): Likewise.
9870 (cortex_a15_neon_vld3_vld4): Likewise.
9871 (cortex_a15_neon_vst1_1_2_regs_vst2_2_regs): Likewise.
9872 (cortex_a15_neon_vst1_3_4_regs): Likewise.
9873 (cortex_a15_neon_vst2_4_regs_vst3_vst4): Rename to...
9874 (cortex_a15_neon_vst2_4_regs_vst3): ...This, update for new attributes.
9875 (cortex_a15_neon_vst3_vst4): Rename to...
9876 (cortex_a15_neon_vst4): This, update for new attributes.
9877 (cortex_a15_neon_vld1_vld2_lane): Update for new attributes.
9878 (cortex_a15_neon_vld3_vld4_lane): Likewise.
9879 (cortex_a15_neon_vst1_vst2_lane): Likewise.
9880 (cortex_a15_neon_vst3_vst4_lane): Likewise.
9881 (cortex_a15_neon_vld3_vld4_all_lanes): Likewise.
9882 (cortex_a15_neon_ldm_2): Likewise.
9883 (cortex_a15_neon_stm_2): Likewise.
9884 (cortex_a15_neon_mcr): Likewise.
9885 (cortex_a15_neon_mcr_2_mcrr): Likewise.
9886 (cortex_a15_neon_mrc): Likewise.
9887 (cortex_a15_neon_mrrc): Likewise.
9889 (cortex_a15_neon_abd): New.
9890 (cortex_a15_neon_abd_q): Likewise.
9891 (cortex_a15_neon_aba): Likewise.
9892 (cortex_a15_neon_aba_q): Likewise.
9893 (cortex_a15_neon_acc): Likewise.
9894 (cortex_a15_neon_acc_q): Likewise.
9895 (cortex_a15_neon_arith_basic): Likewise.
9896 (cortex_a15_neon_arith_complex): Likewise.
9897 (cortex_a15_neon_multiply): Likewise.
9898 (cortex_a15_neon_multiply_q): Likewise.
9899 (cortex_a15_neon_mla): Likewise.
9900 (cortex_a15_neon_mla_q): Likewise.
9901 (cortex_a15_neon_sat_mla_long): Likewise.
9902 (cortex_a15_neon_shift_acc): Likewise.
9903 (cortex_a15_neon_shift_imm_basic): Likewise.
9904 (cortex_a15_neon_shift_imm_complex): Likewise.
9905 (cortex_a15_neon_shift_reg_basic): Likewise.
9906 (cortex_a15_neon_shift_reg_basic_q): Likewise.
9907 (cortex_a15_neon_shift_reg_complex): Likewise.
9908 (cortex_a15_neon_shift_reg_complex_q): Likewise.
9909 (cortex_a15_neon_fp_negabs): Likewise
9910 (cortex_a15_neon_fp_arith): Likewise
9911 (cortex_a15_neon_fp_arith_q): Likewise
9912 (cortex_a15_neon_fp_cvt_int): Likewise
9913 (cortex_a15_neon_fp_cvt_int_q): Likewise
9914 (cortex_a15_neon_fp_cvt_16): Likewise
9915 (cortex_a15_neon_fp_mul): Likewise
9916 (cortex_a15_neon_fp_mul_q): Likewise
9917 (cortex_a15_neon_fp_mla): Likewise
9918 (cortex_a15_neon_fp_mla_q): Likewise
9919 (cortex_a15_neon_fp_recps_rsqrte): Likewise.
9920 (cortex_a15_neon_fp_recps_rsqrte_q): Likewise.
9921 (cortex_a15_neon_bitops): Likewise.
9922 (cortex_a15_neon_bitops_q): Likewise.
9923 (cortex_a15_neon_from_gp): Likewise.
9924 (cortex_a15_neon_from_gp_q): Likewise.
9925 (cortex_a15_neon_tbl3_tbl4): Likewise.
9926 (cortex_a15_neon_zip_q): Likewise.
9927 (cortex_a15_neon_to_gp): Likewise.
9928 (cortex_a15_neon_load_a): Likewise.
9929 (cortex_a15_neon_load_b): Likewise.
9930 (cortex_a15_neon_load_c): Likewise.
9931 (cortex_a15_neon_load_d): Likewise.
9932 (cortex_a15_neon_load_e): Likewise.
9933 (cortex_a15_neon_load_f): Likewise.
9934 (cortex_a15_neon_store_a): Likewise.
9935 (cortex_a15_neon_store_b): Likewise.
9936 (cortex_a15_neon_store_c): Likewise.
9937 (cortex_a15_neon_store_d): Likewise.
9938 (cortex_a15_neon_store_e): Likewise.
9939 (cortex_a15_neon_store_f): Likewise.
9940 (cortex_a15_neon_store_g): Likewise.
9941 (cortex_a15_neon_store_h): Likewise.
9942 (cortex_a15_vfp_to_from_gp): Likewise.
9944 2013-10-15 James Greenhalgh <james.greenhalgh@arm.com>
9946 * config/arm/cortex-a9-neon.md (cortex_a9_neon_type): New.
9948 (cortex_a9_neon_vshl_ddd): Remove.
9949 (cortex_a9_neon_vst3_vst4): Likewise.
9950 (cortex_a9_neon_vld3_vld4_all_lanes): Likewise.
9952 (cortex_a9_neon_bit_ops_q): New.
9954 (cortex_a9_neon_int_1): Use cortex_a8_neon_type.
9955 (cortex_a9_neon_int_2): Likewise.
9956 (cortex_a9_neon_int_3): Likewise.
9957 (cortex_a9_neon_int_4): Likewise.
9958 (cortex_a9_neon_int_5): Likewise.
9959 (cortex_a9_neon_vqneg_vqabs): Likewise.
9960 (cortex_a9_neon_vmov): Likewise.
9961 (cortex_a9_neon_vaba): Likewise.
9962 (cortex_a9_neon_vaba_qqq): Likewise.
9963 (cortex_a9_neon_shift_1): Likewise.
9964 (cortex_a9_neon_shift_2): Likewise.
9965 (cortex_a9_neon_shift_3): Likewise.
9966 (cortex_a9_neon_vqshl_vrshl_vqrshl_qqq): Likewise.
9967 (cortex_a9_neon_vsra_vrsra): Likewise.
9968 (cortex_a9_neon_mul_ddd_8_16_qdd_16_8_long_32_16_long): Likewise.
9969 (cortex_a9_neon_mul_qqq_8_16_32_ddd_32): Likewise.
9970 (cortex_a9_neon_mul_qdd_64_32_long_qqd_16_ddd_32_scalar_64_32_long_scalar):
9972 (cortex_a9_neon_mla_ddd_8_16_qdd_16_8_long_32_16_long): Likewise.
9973 (cortex_a9_neon_mla_qqq_8_16): Likewise.
9974 (cortex_a9_neon_mla_ddd_32_qqd_16_ddd_32_scalar_qdd_64_32_long_scalar_qdd_64_32_long):
9976 (cortex_a9_neon_mla_qqq_32_qqd_32_scalar): Likewise.
9977 (cortex_a9_neon_mul_ddd_16_scalar_32_16_long_scalar): Likewise.
9978 (cortex_a9_neon_mul_qqd_32_scalar): Likewise.
9979 (cortex_a9_neon_mla_ddd_16_scalar_qdd_32_16_long_scalar): Likewise.
9980 (cortex_a9_neon_fp_vadd_ddd_vabs_dd): Likewise.
9981 (cortex_a9_neon_fp_vadd_qqq_vabs_qq): Likewise.
9982 (cortex_a9_neon_fp_vsum): Likewise.
9983 (cortex_a9_neon_fp_vmul_ddd): Likewise.
9984 (cortex_a9_neon_fp_vmul_qqd): Likewise.
9985 (cortex_a9_neon_fp_vmla_ddd): Likewise.
9986 (cortex_a9_neon_fp_vmla_qqq): Likewise.
9987 (cortex_a9_neon_fp_vmla_ddd_scalar): Likewise.
9988 (cortex_a9_neon_fp_vmla_qqq_scalar): Likewise.
9989 (cortex_a9_neon_fp_vrecps_vrsqrts_ddd): Likewise.
9990 (cortex_a9_neon_fp_vrecps_vrsqrts_qqq): Likewise.
9991 (cortex_a9_neon_bp_simple): Likewise.
9992 (cortex_a9_neon_bp_2cycle): Likewise.
9993 (cortex_a9_neon_bp_3cycle): Likewise.
9994 (cortex_a9_neon_ldr): Likewise.
9995 (cortex_a9_neon_str): Likewise.
9996 (cortex_a9_neon_vld1_1_2_regs): Likewise.
9997 (cortex_a9_neon_vld1_3_4_regs): Likewise.
9998 (cortex_a9_neon_vld2_2_regs_vld1_vld2_all_lanes): Likewise.
9999 (cortex_a9_neon_vld2_4_regs): Likewise.
10000 (cortex_a9_neon_vld3_vld4): Likewise.
10001 (cortex_a9_neon_vld1_vld2_lane): Likewise.
10002 (cortex_a9_neon_vld3_vld4_lane): Likewise.
10003 (cortex_a9_neon_vld3_vld4_all_lanes): Likewise.
10004 (cortex_a9_neon_vst1_1_2_regs_vst2_2_regs): Likewise.
10005 (cortex_a9_neon_vst1_3_4_regs): Likewise.
10006 (cortex_a9_neon_vst2_4_regs_vst3_vst4): Likewise.
10007 (cortex_a9_neon_vst1_vst2_lane): Likewise.
10008 (cortex_a9_neon_vst3_vst4_lane): Likewise.
10009 (cortex_a9_neon_mcr): Likewise.
10010 (cortex_a9_neon_mcr_2_mcrr): Likewise.
10011 (cortex_a9_neon_mrc): Likewise.
10012 (cortex_a9_neon_mrrc): Likewise.
10014 2013-10-15 James Greenhalgh <james.greenhalgh@arm.com>
10016 * config/arm/cortex-a8-neon.md (cortex_a8_neon_type): New.
10018 (cortex_a8_neon_vshl_ddd): Remove.
10019 (cortex_a8_neon_vst3_vst4): Likewise.
10020 (cortex_a8_neon_vld3_vld4_all_lanes): Likewise.
10022 (cortex_a8_neon_bit_ops_q): New.
10024 (cortex_a8_neon_int_1): Use cortex_a8_neon_type.
10025 (cortex_a8_neon_int_2): Likewise..
10026 (cortex_a8_neon_int_3): Likewise.
10027 (cortex_a8_neon_int_5): Likewise.
10028 (cortex_a8_neon_vqneg_vqabs): Likewise.
10029 (cortex_a8_neon_int_4): Likewise.
10030 (cortex_a8_neon_vaba): Likewise.
10031 (cortex_a8_neon_vaba_qqq): Likewise.
10032 (cortex_a8_neon_shift_1): Likewise.
10033 (cortex_a8_neon_shift_2): Likewise.
10034 (cortex_a8_neon_shift_3): Likewise.
10035 (cortex_a8_neon_vqshl_vrshl_vqrshl_qqq): Likewise.
10036 (cortex_a8_neon_vsra_vrsra): Likewise.
10037 (cortex_a8_neon_mul_ddd_8_16_qdd_16_8_long_32_16_long): Likewise.
10038 (cortex_a8_neon_mul_qqq_8_16_32_ddd_32): Likewise.
10039 (cortex_a8_neon_mul_qdd_64_32_long_qqd_16_ddd_32_scalar_64_32_long_scalar):
10041 (cortex_a8_neon_mla_ddd_8_16_qdd_16_8_long_32_16_long): Likewise.
10042 (cortex_a8_neon_mla_qqq_8_16): Likewise.
10043 (cortex_a8_neon_mla_ddd_32_qqd_16_ddd_32_scalar_qdd_64_32_long_scalar_qdd_64_32_long):
10045 (cortex_a8_neon_mla_qqq_32_qqd_32_scalar): Likewise.
10046 (cortex_a8_neon_mul_ddd_16_scalar_32_16_long_scalar): Likewise.
10047 (cortex_a8_neon_mul_qqd_32_scalar): Likewise.
10048 (cortex_a8_neon_mla_ddd_16_scalar_qdd_32_16_long_scalar): Likewise.
10049 (cortex_a8_neon_fp_vadd_ddd_vabs_dd): Likewise.
10050 (cortex_a8_neon_fp_vadd_qqq_vabs_qq): Likewise.
10051 (cortex_a8_neon_fp_vsum): Likewise.
10052 (cortex_a8_neon_fp_vmul_ddd): Likewise.
10053 (cortex_a8_neon_fp_vmul_qqd): Likewise.
10054 (cortex_a8_neon_fp_vmla_ddd): Likewise.
10055 (cortex_a8_neon_fp_vmla_qqq): Likewise.
10056 (cortex_a8_neon_fp_vmla_ddd_scalar): Likewise.
10057 (cortex_a8_neon_fp_vmla_qqq_scalar): Likewise.
10058 (cortex_a8_neon_fp_vrecps_vrsqrts_ddd): Likewise.
10059 (cortex_a8_neon_fp_vrecps_vrsqrts_qqq): Likewise.
10060 (cortex_a8_neon_bp_simple): Likewise.
10061 (cortex_a8_neon_bp_2cycle): Likewise.
10062 (cortex_a8_neon_bp_3cycle): Likewise.
10063 (cortex_a8_neon_ldr): Likewise.
10064 (cortex_a8_neon_str): Likewise.
10065 (cortex_a8_neon_vld1_1_2_regs): Likewise.
10066 (cortex_a8_neon_vld1_3_4_regs): Likewise.
10067 (cortex_a8_neon_vld2_2_regs_vld1_vld2_all_lanes): Likewise.
10068 (cortex_a8_neon_vld2_4_regs): Likewise.
10069 (cortex_a8_neon_vld3_vld4): Likewise.
10070 (cortex_a8_neon_vld1_vld2_lane): Likewise.
10071 (cortex_a8_neon_vld3_vld4_lane): Likewise.
10072 (cortex_a8_neon_vst1_1_2_regs_vst2_2_regs): Likewise.
10073 (cortex_a8_neon_vst1_3_4_regs): Likewise.
10074 (cortex_a8_neon_vst2_4_regs_vst3_vst4): Likewise.
10075 (cortex_a8_neon_vst1_vst2_lane): Likewise.
10076 (cortex_a8_neon_vst3_vst4_lane): Likewise.
10077 (cortex_a8_neon_mcr): Likewise.
10078 (cortex_a8_neon_mcr_2_mcrr): Likewise.
10079 (cortex_a8_neon_mrc): Likewise.
10080 (cortex_a8_neon_mrrc): Likewise.
10082 2013-10-15 James Greenhalgh <james.greenhalgh@arm.com>
10084 * config/aarch64/iterators.md (Vetype): Add SF and DF modes.
10086 * config/aarch64/aarch64-simd.md (neon_type): Remove.
10087 (aarch64_simd_dup<mode>): Add "type" attribute.
10088 (aarch64_dup_lane<mode>): Likewise.
10089 (aarch64_dup_lane_<vswap_width_name><mode>): Likewise.
10090 (*aarch64_simd_mov<mode>): Likewise.
10091 (aarch64_simd_mov_from_<mode>low): Likewise.
10092 (aarch64_simd_mov_from_<mode>high): Likewise.
10093 (orn<mode>3): Likewise.
10094 (bic<mode>3): Likewise.
10095 (add<mode>3): Likewise.
10096 (sub<mode>3): Likewise.
10097 (mul<mode>3): Likewise.
10098 (*aarch64_mul3_elt<mode>): Likewise.
10099 (*aarch64_mul3_elt_<vswap_width_name><mode>): Likewise.
10100 (*aarch64_mul3_elt_to_128df): Likewise.
10101 (*aarch64_mul3_elt_to_64v2df): Likewise.
10102 (neg<mode>2): Likewise.
10103 (abs<mode>2): Likewise.
10104 (abd<mode>_3): Likewise.
10105 (aba<mode>_3): Likewise.
10106 (fabd<mode>_3): Likewise.
10107 (*fabd_scalar<mode>3): Likewise.
10108 (and<mode>3): Likewise.
10109 (ior<mode>3): Likewise.
10110 (xor<mode>3): Likewise.
10111 (one_cmpl<mode>2): Likewise.
10112 (aarch64_simd_vec_set<mode>): Likewise.
10113 (aarch64_simd_lshr<mode>): Likewise.
10114 (aarch64_simd_ashr<mode>): Likewise.
10115 (aarch64_simd_imm_shl<mode>): Likewise.
10116 (aarch64_simd_reg_sshl<mode): Likewise.
10117 (aarch64_simd_reg_shl<mode>_unsigned): Likewise.
10118 (aarch64_simd_reg_shl<mode>_signed): Likewise.
10119 (aarch64_simd_vec_setv2di): Likewise.
10120 (aarch64_simd_vec_set<mode>): Likewise.
10121 (aarch64_mla<mode>): Likewise.
10122 (*aarch64_mla_elt<mode>): Likewise.
10123 (*aarch64_mla_elt_<vswap_width_name><mode>): Likewise.
10124 (aarch64_mls<mode>): Likewise.
10125 (*aarch64_mls_elt<mode>): Likewise.
10126 (*aarch64_mls_elt_<vswap_width_name><mode>): Likewise.
10127 (<su><maxmin><mode>3): Likewise.
10128 (move_lo_quad_<mode>): Likewise.
10129 (aarch64_simd_move_hi_quad_<mode>): Likewise.
10130 (aarch64_simd_vec_pack_trunc_<mode>): Likewise.
10131 (vec_pack_trunc_<mode>): Likewise.
10132 (aarch64_simd_vec_unpack<su>_lo_<mode>): Likewise.
10133 (aarch64_simd_vec_unpack<su>_hi_<mode>): Likewise.
10134 (*aarch64_<su>mlal_lo<mode>): Likewise.
10135 (*aarch64_<su>mlal_hi<mode>): Likewise.
10136 (*aarch64_<su>mlsl_lo<mode>): Likewise.
10137 (*aarch64_<su>mlsl_hi<mode>): Likewise.
10138 (*aarch64_<su>mlal<mode>): Likewise.
10139 (*aarch64_<su>mlsl<mode>): Likewise.
10140 (aarch64_simd_vec_<su>mult_lo_<mode>): Likewise.
10141 (aarch64_simd_vec_<su>mult_hi_<mode>): Likewise.
10142 (add<mode>3): Likewise.
10143 (sub<mode>3): Likewise.
10144 (mul<mode>3): Likewise.
10145 (div<mode>3): Likewise.
10146 (neg<mode>2): Likewise.
10147 (abs<mode>2): Likewise.
10148 (fma<mode>4): Likewise.
10149 (*aarch64_fma4_elt<mode>): Likewise.
10150 (*aarch64_fma4_elt_<vswap_width_name><mode>): Likewise.
10151 (*aarch64_fma4_elt_to_128df): Likewise.
10152 (*aarch64_fma4_elt_to_64v2df): Likewise.
10153 (fnma<mode>4): Likewise.
10154 (*aarch64_fnma4_elt<mode>): Likewise.
10155 (*aarch64_fnma4_elt_<vswap_width_name><mode>
10156 (*aarch64_fnma4_elt_to_128df): Likewise.
10157 (*aarch64_fnma4_elt_to_64v2df): Likewise.
10158 (<frint_pattern><mode>2): Likewise.
10159 (l<fcvt_pattern><su_optab><VDQF:mode><fcvt_target>2): Likewise.
10160 (<optab><fcvt_target><VDQF:VDQF:mode>2): Likewise.
10161 (vec_unpacks_lo_v4sf): Likewise.
10162 (aarch64_float_extend_lo_v2df): Likewise.
10163 (vec_unpacks_hi_v4sf): Likewise.
10164 (aarch64_float_truncate_lo_v2sf): Likewise.
10165 (aarch64_float_truncate_hi_v4sf): Likewise.
10166 (aarch64_vmls<mode>): Likewise.
10167 (<su><maxmin><mode>3): Likewise.
10168 (<maxmin_uns><mode>3): Likewise.
10169 (reduc_<sur>plus_<mode>): Likewise.
10170 (reduc_<sur>plus_v2di): Likewise.
10171 (reduc_<sur>plus_v2si): Likewise.
10172 (reduc_<sur>plus_<mode>): Likewise.
10173 (aarch64_addpv4sf): Likewise.
10174 (clz<mode>2): Likewise.
10175 (reduc_<maxmin_uns>_<mode>): Likewise.
10176 (reduc_<maxmin_uns>_v2di): Likewise.
10177 (reduc_<maxmin_uns>_v2si): Likewise.
10178 (reduc_<maxmin_uns>_<mode>): Likewise.
10179 (reduc_<maxmin_uns>_v4sf): Likewise.
10180 (aarch64_simd_bsl<mode>_internal): Likewise.
10181 (*aarch64_get_lane_extend<GPI:mode><VDQQH:mode>): Likewise.
10182 (*aarch64_get_lane_zero_extendsi<mode>): Likewise.
10183 (aarch64_get_lane<mode>): Likewise.
10184 (*aarch64_combinez<mode>): Likewise.
10185 (aarch64_combine<mode>): Likewise.
10186 (aarch64_simd_combine<mode>): Likewise.
10187 (aarch64_<ANY_EXTEND:su><ADDSUB:optab>l<mode>_hi_internal): Likewise.
10188 (aarch64_<ANY_EXTEND:su><ADDSUB:optab>l<mode>_lo_internal): Likewise.
10189 (aarch64_<ANY_EXTEND:su><ADDSUB:optab>l<mode>): Likewise.
10190 (aarch64_<ANY_EXTEND:su><ADDSUB:optab>w<mode>): Likewise.
10191 (aarch64_<ANY_EXTEND:su><ADDSUB:optab>w2<mode>_internal): Likewise.
10192 (aarch64_<sur>h<addsub><mode>): Likewise.
10193 (aarch64_<sur><addsub>hn<mode>): Likewise.
10194 (aarch64_<sur><addsub>hn2<mode>): Likewise.
10195 (aarch64_pmul<mode>): Likewise.
10196 (aarch64_<su_optab><optab><mode>): Likewise.
10197 (aarch64_<sur>qadd<mode>): Likewise.
10198 (aarch64_sqmovun<mode>): Likewise.
10199 (aarch64_<sur>qmovn<mode>): Likewise.
10200 (aarch64_s<optab><mode>): Likewise.
10201 (aarch64_sq<r>dmulh<mode>): Likewise.
10202 (aarch64_sq<r>dmulh_lane<mode>): Likewise.
10203 (aarch64_sq<r>dmulh_laneq<mode>): Likewise.
10204 (aarch64_sq<r>dmulh_lane<mode>): Likewise.
10205 (aarch64_sqdml<SBINQOPS:as>l<mode>): Likewise.
10206 (aarch64_sqdml<SBINQOPS:as>l_lane<mode>_internal): Likewise.
10207 (aarch64_sqdml<SBINQOPS:as>l_lane<mode>_internal): Likewise.
10208 (aarch64_sqdml<SBINQOPS:as>l_n<mode>): Likewise.
10209 (aarch64_sqdml<SBINQOPS:as>l2<mode>_internal): Likewise.
10210 (aarch64_sqdml<SBINQOPS:as>l2_lane<mode>_internal): Likewise.
10211 (aarch64_sqdml<SBINQOPS:as>l2_n<mode>_internal): Likewise.
10212 (aarch64_sqdmull<mode>): Likewise.
10213 (aarch64_sqdmull_lane<mode>_internal): Likewise.
10214 (aarch64_sqdmull_n<mode>): Likewise.
10215 (aarch64_sqdmull2<mode>_internal): Likewise.
10216 (aarch64_sqdmull2_lane<mode>_internal): Likewise.
10217 (aarch64_sqdmull2_n<mode>_internal): Likewise.
10218 (aarch64_<sur>shl<mode>): Likewise.
10219 (aarch64_<sur>q<r>shl<mode>
10220 (aarch64_<sur>shll_n<mode>): Likewise.
10221 (aarch64_<sur>shll2_n<mode>): Likewise.
10222 (aarch64_<sur>shr_n<mode>): Likewise.
10223 (aarch64_<sur>sra_n<mode>): Likewise.
10224 (aarch64_<sur>s<lr>i_n<mode>): Likewise.
10225 (aarch64_<sur>qshl<u>_n<mode>): Likewise.
10226 (aarch64_<sur>q<r>shr<u>n_n<mode>): Likewise.
10227 (aarch64_cm<optab><mode>): Likewise.
10228 (aarch64_cm<optab>di): Likewise.
10229 (aarch64_cm<optab><mode>): Likewise.
10230 (aarch64_cm<optab>di): Likewise.
10231 (aarch64_cmtst<mode>): Likewise.
10232 (aarch64_cmtstdi): Likewise.
10233 (aarch64_cm<optab><mode>): Likewise.
10234 (*aarch64_fac<optab><mode>): Likewise.
10235 (aarch64_addp<mode>): Likewise.
10236 (aarch64_addpdi): Likewise.
10237 (sqrt<mode>2): Likewise.
10238 (vec_load_lanesoi<mode>): Likewise.
10239 (vec_store_lanesoi<mode>): Likewise.
10240 (vec_load_lanesci<mode>): Likewise.
10241 (vec_store_lanesci<mode>): Likewise.
10242 (vec_load_lanesxi<mode>): Likewise.
10243 (vec_store_lanesxi<mode>): Likewise.
10244 (*aarch64_mov<mode>): Likewise.
10245 (aarch64_ld2<mode>_dreg): Likewise.
10246 (aarch64_ld2<mode>_dreg): Likewise.
10247 (aarch64_ld3<mode>_dreg): Likewise.
10248 (aarch64_ld3<mode>_dreg): Likewise.
10249 (aarch64_ld4<mode>_dreg): Likewise.
10250 (aarch64_ld4<mode>_dreg): Likewise.
10251 (aarch64_tbl1<mode>): Likewise.
10252 (aarch64_tbl2v16qi): Likewise.
10253 (aarch64_combinev16qi): Likewise.
10254 (aarch64_<PERMUTE:perm_insn><PERMUTE:perm_hilo><mode>): Likewise.
10255 (aarch64_st2<mode>_dreg): Likewise.
10256 (aarch64_st2<mode>_dreg): Likewise.
10257 (aarch64_st3<mode>_dreg): Likewise.
10258 (aarch64_st3<mode>_dreg): Likewise.
10259 (aarch64_st4<mode>_dreg): Likewise.
10260 (aarch64_st4<mode>_dreg): Likewise.
10261 (*aarch64_simd_ld1r<mode>): Likewise.
10262 (aarch64_frecpe<mode>): Likewise.
10263 (aarch64_frecp<FRECP:frecp_suffix><mode>): Likewise.
10264 (aarch64_frecps<mode>): Likewise.
10266 2013-10-15 James Greenhalgh <james.greenhalgh@arm.com>
10268 * config/arm/iterators.md (V_elem_ch): New.
10270 (VQH_type): Likewise.
10271 * config/arm/arm.md (is_neon_type): New.
10272 (conds): Use is_neon_type.
10273 (anddi3_insn): Update type attribute.
10274 (xordi3_insn): Likewise.
10275 (one_cmpldi2): Likewise.
10276 * config/arm/vfp.md (movhf_vfp_neon): Update type attribute.
10277 * config/arm/neon.md (neon_mov): Update type attribute.
10278 (*movmisalign<mode>_neon_store): Likewise.
10279 (*movmisalign<mode>_neon_load): Likewise.
10280 (vec_set<mode>_internal): Likewise.
10281 (vec_set<mode>_internal): Likewise.
10282 (vec_setv2di_internal): Likewise.
10283 (vec_extract<mode>): Likewise.
10284 (vec_extract<mode>): Likewise.
10285 (vec_extractv2di): Likewise.
10286 (*add<mode>3_neon): Likewise.
10287 (adddi3_neon): Likewise.
10288 (*sub<mode>3_neon): Likewise.
10289 (subdi3_neon): Likewise.
10290 (fma<VCVTF:mode>4): Likewise.
10291 (fma<VCVTF:mode>4_intrinsic): Likewise.
10292 (*fmsub<VCVTF:mode>4): Likewise.
10293 (fmsub<VCVTF:mode>4_intrinsic): Likewise.
10294 (neon_vrint<NEON_VRINT:nvrint_variant><VCVTF:mode>): Likewise.
10295 (ior<mode>3): Likewise.
10296 (and<mode>3): Likewise.
10297 (orn<mode>3_neon): Likewise.
10298 (orndi3_neon): Likewise.
10299 (bic<mode>3_neon): Likewise.
10300 (bicdi3_neon): Likewise.
10301 (xor<mode>3): Likewise.
10302 (one_cmpl<mode>2): Likewise.
10303 (abs<mode>2): Likewise.
10304 (neg<mode>2): Likewise.
10305 (negdi2_neon): Likewise.
10306 (*umin<mode>3_neon): Likewise.
10307 (*umax<mode>3_neon): Likewise.
10308 (*smin<mode>3_neon): Likewise.
10309 (*smax<mode>3_neon): Likewise.
10310 (vashl<mode>3): Likewise.
10311 (vashr<mode>3_imm): Likewise.
10312 (vlshr<mode>3_imm): Likewise.
10313 (ashl<mode>3_signed): Likewise.
10314 (ashl<mode>3_unsigned): Likewise.
10315 (neon_load_count): Likewise.
10316 (ashldi3_neon_noclobber): Likewise.
10317 (ashldi3_neon): Likewise.
10318 (signed_shift_di3_neon): Likewise.
10319 (unsigned_shift_di3_neon): Likewise.
10320 (ashrdi3_neon_imm_noclobber): Likewise.
10321 (lshrdi3_neon_imm_noclobber): Likewise.
10322 (<shift>di3_neon): Likewise.
10323 (widen_ssum<mode>3): Likewise.
10324 (widen_usum<mode>3): Likewise.
10325 (quad_halves_<code>v4si): Likewise.
10326 (quad_halves_<code>v4sf): Likewise.
10327 (quad_halves_<code>v8hi): Likewise.
10328 (quad_halves_<code>v16qi): Likewise.
10329 (reduc_splus_v2di): Likewise.
10330 (neon_vpadd_internal<mode>): Likewise.
10331 (neon_vpsmin<mode>): Likewise.
10332 (neon_vpsmax<mode>): Likewise.
10333 (neon_vpumin<mode>): Likewise.
10334 (neon_vpumax<mode>): Likewise.
10335 (*ss_add<mode>_neon): Likewise.
10336 (*us_add<mode>_neon): Likewise.
10337 (*ss_sub<mode>_neon): Likewise.
10338 (*us_sub<mode>_neon): Likewise.
10339 (neon_vadd<mode>_unspec): Likewise.
10340 (neon_vaddl<mode>): Likewise.
10341 (neon_vaddw<mode>): Likewise.
10342 (neon_vhadd<mode>): Likewise.
10343 (neon_vqadd<mode>): Likewise.
10344 (neon_vaddhn<mode>): Likewise.
10345 (neon_vmul<mode>): Likewise.
10346 (neon_vfms<VCVTF:mode>): Likewise.
10347 (neon_vmlal<mode>): Likewise.
10348 (neon_vmls<mode>): Likewise.
10349 (neon_vmlsl<mode>): Likewise.
10350 (neon_vqdmulh<mode>): Likewise.
10351 (neon_vqdmlal<mode>): Likewise.
10352 (neon_vqdmlsl<mode>): Likewise.
10353 (neon_vmull<mode>): Likewise.
10354 (neon_vqdmull<mode>): Likewise.
10355 (neon_vsub<mode>_unspec): Likewise.
10356 (neon_vsubl<mode>): Likewise.
10357 (neon_vsubw<mode>): Likewise.
10358 (neon_vqsub<mode>): Likewise.
10359 (neon_vhsub<mode>): Likewise.
10360 (neon_vsubhn<mode>): Likewise.
10361 (neon_vceq<mode>): Likewise.
10362 (neon_vcge<mode>): Likewise.
10363 (neon_vcgeu<mode>): Likewise.
10364 (neon_vcgt<mode>): Likewise.
10365 (neon_vcgtu<mode>): Likewise.
10366 (neon_vcle<mode>): Likewise.
10367 (neon_vclt<mode>): Likewise.
10368 (neon_vcage<mode>): Likewise.
10369 (neon_vcagt<mode>): Likewise.
10370 (neon_vtst<mode>): Likewise.
10371 (neon_vabd<mode>): Likewise.
10372 (neon_vabdl<mode>): Likewise.
10373 (neon_vaba<mode>): Likewise.
10374 (neon_vabal<mode>): Likewise.
10375 (neon_vmax<mode>): Likewise.
10376 (neon_vmin<mode>): Likewise.
10377 (neon_vpaddl<mode>): Likewise.
10378 (neon_vpadal<mode>): Likewise.
10379 (neon_vpmax<mode>): Likewise.
10380 (neon_vpmin<mode>): Likewise.
10381 (neon_vrecps<mode>): Likewise.
10382 (neon_vrsqrts<mode>): Likewise.
10383 (neon_vqabs<mode>): Likewise.
10384 (neon_vqneg<mode>): Likewise.
10385 (neon_vcls<mode>): Likewise.
10386 (clz<mode>2): Likewise.
10387 (popcount<mode>2): Likewise.
10388 (neon_vrecpe<mode>): Likewise.
10389 (neon_vrsqrte<mode>): Likewise.
10390 (neon_vget_lane<mode>_sext_internal): Likewise.
10391 (neon_vget_lane<mode>_zext_internal): Likewise.
10392 (neon_vdup_n<mode>): Likewise.
10393 (neon_vdup_n<mode>): Likewise.
10394 (neon_vdup_nv2di): Likewise.
10395 (neon_vdup_lane<mode>_interal): Likewise.
10396 (*neon_vswp<mode>): Likewise.
10397 (neon_vcombine<mode>): Likewise.
10398 (float<mode><V_cvtto>2): Likewise.
10399 (floatuns<mode><V_cvtto>2): Likewise.
10400 (fix_trunc<mode><V_cvtto>2): Likewise.
10401 (fixuns_trunc<mode><V_cvtto>2
10402 (neon_vcvt<mode>): Likewise.
10403 (neon_vcvt<mode>): Likewise.
10404 (neon_vcvtv4sfv4hf): Likewise.
10405 (neon_vcvtv4hfv4sf): Likewise.
10406 (neon_vcvt_n<mode>): Likewise.
10407 (neon_vcvt_n<mode>): Likewise.
10408 (neon_vmovn<mode>): Likewise.
10409 (neon_vqmovn<mode>): Likewise.
10410 (neon_vqmovun<mode>): Likewise.
10411 (neon_vmovl<mode>): Likewise.
10412 (neon_vmul_lane<mode>): Likewise.
10413 (neon_vmul_lane<mode>): Likewise.
10414 (neon_vmull_lane<mode>): Likewise.
10415 (neon_vqdmull_lane<mode>): Likewise.
10416 (neon_vqdmulh_lane<mode>): Likewise.
10417 (neon_vqdmulh_lane<mode>): Likewise.
10418 (neon_vmla_lane<mode>): Likewise.
10419 (neon_vmla_lane<mode>): Likewise.
10420 (neon_vmlal_lane<mode>): Likewise.
10421 (neon_vqdmlal_lane<mode>): Likewise.
10422 (neon_vmls_lane<mode>): Likewise.
10423 (neon_vmls_lane<mode>): Likewise.
10424 (neon_vmlsl_lane<mode>): Likewise.
10425 (neon_vqdmlsl_lane<mode>): Likewise.
10426 (neon_vext<mode>): Likewise.
10427 (neon_vrev64<mode>): Likewise.
10428 (neon_vrev32<mode>): Likewise.
10429 (neon_vrev16<mode>): Likewise.
10430 (neon_vbsl<mode>_internal): Likewise.
10431 (neon_vshl<mode>): Likewise.
10432 (neon_vqshl<mode>): Likewise.
10433 (neon_vshr_n<mode>): Likewise.
10434 (neon_vshrn_n<mode>): Likewise.
10435 (neon_vqshrn_n<mode>): Likewise.
10436 (neon_vqshrun_n<mode>): Likewise.
10437 (neon_vshl_n<mode>): Likewise.
10438 (neon_vqshl_n<mode>): Likewise.
10439 (neon_vqshlu_n<mode>): Likewise.
10440 (neon_vshll_n<mode>): Likewise.
10441 (neon_vsra_n<mode>): Likewise.
10442 (neon_vsri_n<mode>): Likewise.
10443 (neon_vsli_n<mode>): Likewise.
10444 (neon_vtbl1v8qi): Likewise.
10445 (neon_vtbl2v8qi): Likewise.
10446 (neon_vtbl3v8qi): Likewise.
10447 (neon_vtbl4v8qi): Likewise.
10448 (neon_vtbl1v16qi): Likewise.
10449 (neon_vtbl2v16qi): Likewise.
10450 (neon_vcombinev16qi): Likewise.
10451 (neon_vtbx1v8qi): Likewise.
10452 (neon_vtbx2v8qi): Likewise.
10453 (neon_vtbx3v8qi): Likewise.
10454 (neon_vtbx4v8qi): Likewise.
10455 (*neon_vtrn<mode>_insn): Likewise.
10456 (*neon_vzip<mode>_insn): Likewise.
10457 (*neon_vuzp<mode>_insn): Likewise.
10458 (neon_vld1<mode>): Likewise.
10459 (neon_vld1_lane<mode>): Likewise.
10460 (neon_vld1_lane<mode>): Likewise.
10461 (neon_vld1_dup<mode>): Likewise.
10462 (neon_vld1_dup<mode>): Likewise.
10463 (neon_vld1_dupv2di): Likewise.
10464 (neon_vst1<mode>): Likewise.
10465 (neon_vst1_lane<mode>): Likewise.
10466 (neon_vst1_lane<mode>): Likewise.
10467 (neon_vld2<mode>): Likewise.
10468 (neon_vld2<mode>): Likewise.
10469 (neon_vld2_lane<mode>): Likewise.
10470 (neon_vld2_lane<mode>): Likewise.
10471 (neon_vld2_dup<mode>): Likewise.
10472 (neon_vst2<mode>): Likewise.
10473 (neon_vst2<mode>): Likewise.
10474 (neon_vst2_lane<mode>): Likewise.
10475 (neon_vst2_lane<mode>): Likewise.
10476 (neon_vld3<mode>): Likewise.
10477 (neon_vld3qa<mode>): Likewise.
10478 (neon_vld3qb<mode>): Likewise.
10479 (neon_vld3_lane<mode>): Likewise.
10480 (neon_vld3_lane<mode>): Likewise.
10481 (neon_vld3_dup<mode>): Likewise.
10482 (neon_vst3<mode>): Likewise.
10483 (neon_vst3qa<mode>): Likewise.
10484 (neon_vst3qb<mode>): Likewise.
10485 (neon_vst3_lane<mode>): Likewise.
10486 (neon_vst3_lane<mode>): Likewise.
10487 (neon_vld4<mode>): Likewise.
10488 (neon_vld4qa<mode>): Likewise.
10489 (neon_vld4qb<mode>): Likewise.
10490 (neon_vld4_lane<mode>): Likewise.
10491 (neon_vld4_lane<mode>): Likewise.
10492 (neon_vld4_dup<mode>): Likewise.
10493 (neon_vst4<mode>): Likewise.
10494 (neon_vst4qa<mode>): Likewise.
10495 (neon_vst4qb<mode>): Likewise.
10496 (neon_vst4_lane<mode>): Likewise.
10497 (neon_vst4_lane<mode>): Likewise.
10498 (neon_vec_unpack<US>_lo_<mode>): Likewise.
10499 (neon_vec_unpack<US>_hi_<mode>): Likewise.
10500 (neon_vec_<US>mult_lo_<mode>): Likewise.
10501 (neon_vec_<US>mult_hi_<mode>): Likewise.
10502 (neon_vec_<US>shiftl_<mode>): Likewise.
10503 (neon_unpack<US>_<mode>): Likewise.
10504 (neon_vec_<US>mult_<mode>): Likewise.
10505 (vec_pack_trunc_<mode>): Likewise.
10506 (neon_vec_pack_trunc_<mode>): Likewise.
10507 (neon_vabd<mode>_2): Likewise.
10508 (neon_vabd<mode>_3): Likewise.
10510 2013-10-15 James Greenhalgh <james.greenhalgh@arm.com>
10512 * config/aarch64/aarch64.md (movtf_aarch64): Update type attribute.
10513 (load_pair): Update type attribute.
10514 (store_pair): Update type attribute.
10515 * config/aarch64/iterators.md (q): New.
10517 2013-10-15 James Greenhalgh <james.greenhalgh@arm.com>
10519 * config/arm/types.md: Add new types for Neon insns.
10521 2013-10-15 Alexander Ivchenko <alexander.ivchenko@intel.com>
10522 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
10523 Sergey Lega <sergey.s.lega@intel.com>
10524 Anna Tikhonova <anna.tikhonova@intel.com>
10525 Ilya Tocar <ilya.tocar@intel.com>
10526 Andrey Turetskiy <andrey.turetskiy@intel.com>
10527 Ilya Verbin <ilya.verbin@intel.com>
10528 Kirill Yukhin <kirill.yukhin@intel.com>
10529 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
10531 * config/i386/sse.md (unspec): Add UNSPEC_RCP14, UNSPEC_RSQRT14,
10532 UNSPEC_FIXUPIMM, UNSPEC_SCALEF, UNSPEC_GETEXP, UNSPEC_GETMANT,
10533 UNSPEC_EXP2, UNSPEC_RCP28, UNSPEC_RSQRT28.
10534 (rcp14<mode>): New.
10535 (srcp14<mode>): Ditto.
10536 (rsqrt14<mode>): Ditto.
10537 (rsqrt14<mode>): Ditto.
10538 (avx512f_vmscalef<mode>): Ditto.
10539 (avx512f_scalef<mode>): Ditto.
10540 (avx512f_getexp<mode>): Ditto.
10541 (avx512f_sgetexp<mode>): Ditto.
10542 (avx512f_fixupimm<mode>): Ditto.
10543 (avx512f_sfixupimm<mode>): Ditto.
10544 (avx512f_rndscale<mode>): Ditto.
10545 (*avx512er_exp2<mode>): Ditto.
10546 (*avx512er_rcp28<mode>): Ditto.
10547 (avx512er_rsqrt28<mode>): Ditto.
10548 (avx512f_getmant<mode>): Ditto.
10549 (avx512f_getmant<mode>): Ditto.
10550 (avx512f_rndscale<mode>): Fix formatting.
10552 2013-10-15 Martin Jambor <mjambor@suse.cz>
10554 * ipa-utils.h (ipa_edge_within_scc): Declare.
10555 * ipa-cp.c (edge_within_scc): Moved...
10556 * ipa-utils.c (ipa_edge_within_scc): ...here. Updated all callers.
10558 2013-10-15 Alexander Ivchenko <alexander.ivchenko@intel.com>
10559 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
10560 Sergey Lega <sergey.s.lega@intel.com>
10561 Anna Tikhonova <anna.tikhonova@intel.com>
10562 Ilya Tocar <ilya.tocar@intel.com>
10563 Andrey Turetskiy <andrey.turetskiy@intel.com>
10564 Ilya Verbin <ilya.verbin@intel.com>
10565 Kirill Yukhin <kirill.yukhin@intel.com>
10566 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
10568 * config/i386/predicates.md (const_8_to_15_operand): New.
10569 (const_16_to_31_operand): Ditto.
10570 * config/i386/sse.md (V8FI): New.
10572 (reduc_splus_v8df): Ditto.
10573 (reduc_splus_v16sf): Ditto.
10574 (avx512f_vextract<shuffletype>32x4_1): Ditto.
10575 (vec_extract_hi_<mode>): Ditto.
10576 (avx512f_vinsert<shuffletype>32x4_1): Ditto.
10577 (vec_set_lo_<mode>): Ditto.
10578 (vec_set_hi_<mode>): Ditto.
10579 (avx512f_shuf_<shuffletype>64x2_1): Ditto.
10580 (avx512f_shuf_<shuffletype>32x4_1): Ditto.
10581 (avx512f_pshufd_1): Ditto.
10582 (avx512f_broadcast<mode>): Ditto.
10583 (avx512f_broadcast<mode>): Ditto.
10584 (define_split): Split vec_extract_lo into move.
10585 (ssequartermode): Ditto.
10586 (ssedoublemode): Extened with wider modes.
10587 (vec_extract_lo_<mode>): Ditto.
10589 2013-10-15 Alexander Ivchenko <alexander.ivchenko@intel.com>
10590 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
10591 Sergey Lega <sergey.s.lega@intel.com>
10592 Anna Tikhonova <anna.tikhonova@intel.com>
10593 Ilya Tocar <ilya.tocar@intel.com>
10594 Andrey Turetskiy <andrey.turetskiy@intel.com>
10595 Ilya Verbin <ilya.verbin@intel.com>
10596 Kirill Yukhin <kirill.yukhin@intel.com>
10597 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
10599 * config/i386/predicates.md (register_or_constm1_operand): New.
10600 * config/i386/sse.md (unspec): Add UNSPEC_UNSIGNED_PCMP, UNSPEC_TESTM,
10601 UNSPEC_TESTNM, UNSPEC_VTERNLOG, UNSPEC_ALIGN, UNSPEC_CONFLICT,
10602 UNSPEC_MASKED_EQ, UNSPEC_MASKED_GT, UNSPEC_GATHER_PREFETCH,
10603 UNSPEC_SCATTER_PREFETCH
10605 (avx512f_ucmp<mode>3): Ditto.
10606 (avx512f_vternlog<mode>): Ditto.
10607 (avx512f_align<mode>): Ditto.
10608 (<shift_insn><mode>3): Ditto.
10609 (avx512f_<rotate>v<mode>): Ditto.
10610 (avx512f_<rotate><mode>): Ditto.
10611 (avx512f_eq<mode>3): Ditto.
10612 (avx512f_eq<mode>3_1): Ditto.
10613 (avx512f_gt<mode>3): Ditto.
10614 (avx512f_testm<mode>3): Ditto.
10615 (avx512f_testnm<mode>3): Ditto.
10616 (avx512pf_gatherpf<mode>): Ditto.
10617 (*avx512pf_gatherpf<mode>_mask): Ditto.
10618 (*avx512pf_gatherpf<mode>): Ditto.
10619 (avx512pf_scatterpf<mode>): Ditto.
10620 (*avx512pf_scatterpf<mode>_mask): Ditto.
10621 (*avx512pf_scatterpf<mode>): Ditto.
10622 (avx512f_vec_dup_gpr<mode>): Ditto.
10623 (clz<mode>2): Ditto.
10624 (conflict<mode>): Ditto.
10625 (REDUC_SMINMAX_MODE): Extened with wider modes.
10626 (reduc_<code>_<mode>): Ditto.
10627 (vlshr<mode>3): Ditto.
10628 (vashl<mode>3): Ditto.
10630 2013-10-15 Alexander Ivchenko <alexander.ivchenko@intel.com>
10631 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
10632 Sergey Lega <sergey.s.lega@intel.com>
10633 Anna Tikhonova <anna.tikhonova@intel.com>
10634 Ilya Tocar <ilya.tocar@intel.com>
10635 Andrey Turetskiy <andrey.turetskiy@intel.com>
10636 Ilya Verbin <ilya.verbin@intel.com>
10637 Kirill Yukhin <kirill.yukhin@intel.com>
10638 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
10640 * config/i386/sse.md (unspec): Added UNSPEC_VPERMI2, UNSPEC_VPERMT2,
10643 (avx512fmaskmode): Ditto.
10644 (bcstscalarsuff): Ditto.
10645 (avx512f_blendm<mode>): Ditto.
10646 (cmp_imm_predicate): Ditto.
10647 (avx512f_cmp<mode>3): Ditto.
10648 (avx512f_vec_dup<mode>): Ditto.
10649 (avx512f_vec_dup_mem<mode>): Ditto.
10650 (avx512f_vpermi2var<mode>3): Ditto.
10651 (avx512f_vpermt2var<mode>3): Ditto.
10652 (vec_init<mode>): Ditto.
10653 (avx512f_gathersi<mode>): Ditto.
10654 (*avx512f_gathersi<mode>): Ditto.
10655 (*avx512f_gathersi<mode>_2): Ditto.
10656 (avx512f_gatherdi<mode>): Ditto.
10657 (*avx512f_gatherdi<mode>): Ditto.
10658 (*avx512f_gatherdi<mode>_2): Ditto.
10659 (avx512f_scattersi<mode>): Ditto.
10660 (*avx512f_scattersi<mode>): Ditto.
10661 (avx512f_scatterdi<mode>): Ditto.
10662 (*avx512f_scatterdi<mode>): Ditto.
10663 (sseintprefix): Extened with wider modes.
10664 (VEC_GATHER_IDXSI): Ditto.
10665 (VEC_GATHER_IDXDI): Ditto.
10666 (VEC_GATHER_SRCDI): Ditto.
10668 2013-10-15 Matthew Gretton-Dann <matthew.gretton-dann@arm.com>
10669 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
10671 * config/arm/t-aprofile: New file.
10672 * config.gcc: Handle --with-multilib-list option.
10674 2013-10-15 Bernd Schmidt <bernds@codesourcery.com>
10676 * reload1.c (reloads_unique_chain_p): Ensure that r1 is
10679 2013-10-15 Richard Biener <rguenther@suse.de>
10681 * tree-loop-distribution.c (build_empty_rdg): Inline into
10683 (rdg_flag_vertex): Inline into single user.
10684 (rdg_flag_vertex_and_dependent): Likewise.
10685 (build_rdg_partition_for_vertex): Remove processed bitmap.
10686 (rdg_build_partitions): Simplify.
10688 2013-10-15 Richard Biener <rguenther@suse.de>
10690 * tree-ssa-forwprop.c (forward_propagate_addr_expr_1):
10691 Restructure forwarding through conversions and copies to
10692 avoid performing copy-propagation the wrong way. Adjust
10693 recursion invocations.
10694 (forward_propagate_addr_expr): Add argument stating if we
10695 are recursing from a single-use.
10696 (ssa_forward_propagate_and_combine): Adjust.
10698 2013-10-14 David Malcolm <dmalcolm@redhat.com>
10700 * dumpfile.h (gcc::dump_manager): New class, to hold state
10701 relating to dumpfile management.
10702 (get_dump_file_name): Remove in favor of method of dump_manager.
10703 (dump_initialized_p): Likewise.
10704 (dump_start): Likewise.
10705 (dump_finish): Likewise.
10706 (dump_switch_p): Likewise.
10707 (dump_register): Likewise.
10708 (get_dump_file_info): Likewise.
10709 * context.c (gcc::context::context): Construct the dump_manager
10711 * context.h (gcc::context::get_dumps): New.
10712 (gcc::context::m_dumps): New.
10713 * coverage.c (coverage_init): Port to dump_manager API.
10714 * dumpfile.c (extra_dump_files): Convert to field of gcc::dump_manager.
10715 (extra_dump_files_in_use): Likewise.
10716 (extra_dump_files_alloced): Likewise.
10717 (gcc::dump_manager::dump_manager): New.
10718 (dump_register): Convert to...
10719 (gcc::dump_manager::dump_register): ...method, replacing
10720 function-static next_dump with m_next_dump field.
10721 (get_dump_file_info): Convert to...
10722 (gcc::dump_manager::get_dump_file_info): ...method.
10723 (get_dump_file_name): Convert to...
10724 (gcc::dump_manager::get_dump_file_name): ...method.
10725 (dump_start): Convert to...
10726 (gcc::dump_manager::dump_start): ...method.
10727 (dump_finish): Convert to...
10728 (gcc::dump_manager::dump_finish): ...method.
10729 (dump_begin): Replace body with...
10730 (gcc::dump_manager::dump_begin): ...new method.
10731 (dump_phase_enabled_p): Convert to...
10732 (gcc::dump_manager::dump_phase_enabled_p): ...method.
10733 (dump_phase_enabled_p): Convert to...
10734 (gcc::dump_manager::dump_phase_enabled_p): ...method.
10735 (dump_initialized_p): Convert to...
10736 (gcc::dump_manager::dump_initialized_p): ...method.
10737 (dump_flag_name): Replace body with...
10738 (gcc::dump_manager::dump_flag_name): ...new method.
10739 (dump_enable_all): Convert to...
10740 (gcc::dump_manager::dump_enable_all): ...new method.
10741 (opt_info_enable_passes): Convert to...
10742 (gcc::dump_manager::opt_info_enable_passes): ...new method.
10743 (dump_switch_p_1): Convert to...
10744 (gcc::dump_manager::dump_switch_p_1): ...new method.
10745 (dump_switch_p): Convert to...
10746 (gcc::dump_manager::dump_switch_p): ...new method.
10747 (opt_info_switch_p): Port to dump_manager API.
10748 (enable_rtl_dump_file): Likewise.
10749 * opts-global.c (handle_common_deferred_options): Port to new
10751 * passes.c (pass_manager::finish_optimization_passes): Likewise.
10752 (pass_manager::register_one_dump_file): Likewise.
10753 (pass_manager::register_pass): Likewise.
10754 (pass_init_dump_file): Likewise.
10755 (pass_fini_dump_file): Likewise.
10756 * statistics.c (statistics_early_init): Likewise.
10758 2013-10-14 Richard Biener <rguenther@suse.de>
10760 * gimple.c (gimple_canonical_types, canonical_type_hash_cache,
10761 iterative_hash_canonical_type, gimple_canonical_type_hash,
10762 gimple_canonical_types_compatible_p, gimple_canonical_type_eq,
10763 gimple_register_canonical_type, print_gimple_types_stats,
10764 free_gimple_type_tables): Move to lto/lto.c
10765 (gt-gimple.h): Do not include.
10766 * gimple.h (gimple_register_canonical_type,
10767 print_gimple_types_stats, free_gimple_type_tables): Remove.
10768 * Makefile.in (GTFILES): Remove gimple.c.
10770 2013-10-14 Travis Snoozy <quandary@remstate.com>
10773 * config/msp430/msp430.c (msp430_option_override): Correct thinko
10774 scanning for msp430x targets.
10776 2013-10-14 Eric Botcazou <ebotcazou@adacore.com>
10779 * config/sparc/sparc-protos.h (widen_mem_for_ldd_peep): Declare.
10780 (registers_ok_for_ldd_peep): Move around.
10781 * config/sparc/sparc.c (widen_mem_for_ldd_peep): New.
10782 * config/sparc/sparc.md (widening peepholes): Use it.
10784 2013-10-14 Richard Biener <rguenther@suse.de>
10786 PR middle-end/58712
10787 PR middle-end/55358
10788 * gimple.c (iterative_hash_canonical_type): Make sure to
10789 record the hash into the correct hashtable slot.
10791 2013-10-13 Eric Botcazou <ebotcazou@adacore.com>
10793 PR rtl-optimization/58662
10794 * combine.c (try_combine): Take into account death nodes on I2 when
10795 splitting a PARALLEL of two independent SETs. Fix dump message.
10797 2013-10-12 Oleg Endo <olegendo@gcc.gnu.org>
10800 * config/sh/sh_treg_combine.cc: New SH specific RTL pass.
10801 * config.gcc (sh[123456789lbe]*-*-* | sh-*-*): Add sh_treg_combine.o to
10803 * config/sh/t-sh (sh_treg_combine.o): New entry.
10804 * config/sh/sh.c (sh_fixed_condition_code_regs): New function that
10805 implements the target hook TARGET_FIXED_CONDITION_CODE_REGS.
10806 (register_sh_passes): New function. Register sh_treg_combine pass.
10807 (sh_option_override): Invoke it.
10808 (sh_canonicalize_comparison): Handle op0_preserve_value.
10809 * sh.md (*cbranch_t"): Do not try to optimize missed test and branch
10810 opportunities. Canonicalize branch condition.
10811 (nott): Allow only if pseudos can be created for non-SH2A.
10813 2013-10-12 H.J. Lu <hongjiu.lu@intel.com>
10816 * config/i386/i386.c (ix86_copy_addr_to_reg): New function.
10817 (ix86_expand_movmem): Replace copy_addr_to_reg with
10818 ix86_copy_addr_to_reg.
10819 (ix86_expand_setmem): Likewise.
10821 2013-10-12 Alexander Monakov <amonakov@ispras.ru>
10823 * config/i386/i386.c (ix86_expand_sse_compare_and_jump): Use mode
10824 provided by ix86_fp_compare_mode instead of CCFPUmode.
10826 2013-10-12 James Greenhalgh <james.greenhalgh@arm.com>
10828 * config/aarch64/arm_neon.h
10829 (vtbx<1,3>_<psu>8): Fix register constriants.
10831 2013-10-11 Jeff Law <law@redhat.com>
10833 PR tree-optimization/58640
10834 * tree-ssa-threadupdate.c (mark_threaded_blocks): Truncate jump
10835 threading paths that cross over two loop entry points.
10837 2013-10-11 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
10839 * config/rs6000/vsx.md (*vsx_le_perm_load_v2di): Generalize to
10840 handle vector float as well.
10841 (*vsx_le_perm_load_v4si): Likewise.
10842 (*vsx_le_perm_store_v2di): Likewise.
10843 (*vsx_le_perm_store_v4si): Likewise.
10845 2013-10-11 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
10847 * config/rs6000/vector.md (vec_realign_load<mode>): Generate vperm
10848 directly to circumvent subtract from splat{31} workaround.
10849 * config/rs6000/rs6000-protos.h (altivec_expand_vec_perm_le): New
10851 * config/rs6000/rs6000.c (altivec_expand_vec_perm_le): New.
10852 * config/rs6000/altivec.md (define_c_enum "unspec"): Add
10853 UNSPEC_VPERM_X and UNSPEC_VPERM_UNS_X.
10854 (altivec_vperm_<mode>): Convert to define_insn_and_split to
10855 separate big and little endian logic.
10856 (*altivec_vperm_<mode>_internal): New define_insn.
10857 (altivec_vperm_<mode>_uns): Convert to define_insn_and_split to
10858 separate big and little endian logic.
10859 (*altivec_vperm_<mode>_uns_internal): New define_insn.
10860 (vec_permv16qi): Add little endian logic.
10862 2013-10-11 Marc Glisse <marc.glisse@inria.fr>
10864 * doc/extend.texi (returns_nonnull): Remove arguments.
10866 2013-10-11 Alexander Ivchenko <alexander.ivchenko@intel.com>
10867 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
10868 Sergey Lega <sergey.s.lega@intel.com>
10869 Anna Tikhonova <anna.tikhonova@intel.com>
10870 Ilya Tocar <ilya.tocar@intel.com>
10871 Andrey Turetskiy <andrey.turetskiy@intel.com>
10872 Ilya Verbin <ilya.verbin@intel.com>
10873 Kirill Yukhin <kirill.yukhin@intel.com>
10874 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
10876 * config/i386/sse.md (VI48F_256_512): New.
10877 (avx2_permvar<mode>): Change to ...
10878 (<avx2_avx512f>_permvar<mode>): This.
10880 2013-10-11 Alexander Ivchenko <alexander.ivchenko@intel.com>
10881 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
10882 Sergey Lega <sergey.s.lega@intel.com>
10883 Anna Tikhonova <anna.tikhonova@intel.com>
10884 Ilya Tocar <ilya.tocar@intel.com>
10885 Andrey Turetskiy <andrey.turetskiy@intel.com>
10886 Ilya Verbin <ilya.verbin@intel.com>
10887 Kirill Yukhin <kirill.yukhin@intel.com>
10888 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
10890 * config/i386/i386.c (bdesc_args): Change corresponding pattern for
10891 __builtin_ia32_cvtps2dq, __builtin_ia32_cvtps2dq256.
10892 * config/i386/sse.md (VI4_AVX): New.
10893 (sf2simodelower): Ditto.
10894 (sse2_cvtps2dq): Change to ...
10895 (<sse2_avx_avx512f>_fix_notrunc<sf2simodelower><mode>): This.
10897 2013-10-11 Alexander Ivchenko <alexander.ivchenko@intel.com>
10898 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
10899 Sergey Lega <sergey.s.lega@intel.com>
10900 Anna Tikhonova <anna.tikhonova@intel.com>
10901 Ilya Tocar <ilya.tocar@intel.com>
10902 Andrey Turetskiy <andrey.turetskiy@intel.com>
10903 Ilya Verbin <ilya.verbin@intel.com>
10904 Kirill Yukhin <kirill.yukhin@intel.com>
10905 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
10907 * config/i386/sse.md (V_512): New.
10909 (vcond<V_512:mode><VF_512:mode>): Ditto.
10910 (vcond<V_512:mode><VI_512:mode>): Ditto.
10911 (vcondu<V_512:mode><VI_512:mode>): Ditto.
10913 2013-10-11 Alexander Ivchenko <alexander.ivchenko@intel.com>
10914 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
10915 Sergey Lega <sergey.s.lega@intel.com>
10916 Anna Tikhonova <anna.tikhonova@intel.com>
10917 Ilya Tocar <ilya.tocar@intel.com>
10918 Andrey Turetskiy <andrey.turetskiy@intel.com>
10919 Ilya Verbin <ilya.verbin@intel.com>
10920 Kirill Yukhin <kirill.yukhin@intel.com>
10921 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
10923 * config/i386/i386.c (ix86_rtx_costs): Enable fma for TARGET_AVX512F.
10924 * config/i386/sse.md (FMAMODEM): Changed modes and conditions.
10926 (fma<mode>4): Removed condition.
10927 (fms<mode>4): Ditto.
10928 (fnma<mode>4): Ditto.
10929 (fnms<mode>4): Ditto.
10930 (fma4i_fmadd_<mode>): Ditto.
10931 (*fma_fmadd_<mode>): Ditto.
10932 (*fma_fmsub_<mode>): Ditto.
10933 (*fma_fnmadd_<mode>): Ditto.
10934 (*fma_fnmsub_<mode>): Ditto.
10935 (fmaddsub_<mode>): Allow for TARGET_AVX512F.
10936 (*fma_fmaddsub_<mode>): Ditto.
10937 (*fma_fmsubadd_<mode>): Ditto.
10938 (*fmai_fmadd_<mode>): Ditto.
10939 (*fmai_fmsub_<mode>): Ditto.
10940 (*fmai_fnmadd_<mode>): Ditto.
10941 (*fmai_fnmsub_<mode>): Ditto.
10943 2013-10-11 Alexander Ivchenko <alexander.ivchenko@intel.com>
10944 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
10945 Sergey Lega <sergey.s.lega@intel.com>
10946 Anna Tikhonova <anna.tikhonova@intel.com>
10947 Ilya Tocar <ilya.tocar@intel.com>
10948 Andrey Turetskiy <andrey.turetskiy@intel.com>
10949 Ilya Verbin <ilya.verbin@intel.com>
10950 Kirill Yukhin <kirill.yukhin@intel.com>
10951 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
10953 * config/i386/sse.md (VI248_AVX2_8_AVX512F): New.
10954 (VI124_256): Changed to ...
10955 (VI124_256_48_512): This.
10956 (ssepackmode): Extended with wider modes.
10957 (<code><mode>3): Changed iterator.
10958 (*avx2_<code><mode>3): Ditto.
10959 (vec_pack_trunc_<mode>): Ditto.
10961 2013-10-11 Alexander Ivchenko <alexander.ivchenko@intel.com>
10962 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
10963 Sergey Lega <sergey.s.lega@intel.com>
10964 Anna Tikhonova <anna.tikhonova@intel.com>
10965 Ilya Tocar <ilya.tocar@intel.com>
10966 Andrey Turetskiy <andrey.turetskiy@intel.com>
10967 Ilya Verbin <ilya.verbin@intel.com>
10968 Kirill Yukhin <kirill.yukhin@intel.com>
10969 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
10971 * config/i386/sse.md (VI124_AVX2_48_AVX512F): New.
10972 (VI8F_256_512): Ditto.
10973 (abs<mode>2): Changed iterator.
10974 (avx2_perm<mode>): Changed to ...
10975 (<avx2_avx512f>_perm<mode>): This.
10976 (avx2_perm<mode>_1): Changed to ...
10977 (<avx2_avx512f>_perm<mode>_1): This.
10979 2013-10-11 Alexander Ivchenko <alexander.ivchenko@intel.com>
10980 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
10981 Sergey Lega <sergey.s.lega@intel.com>
10982 Anna Tikhonova <anna.tikhonova@intel.com>
10983 Ilya Tocar <ilya.tocar@intel.com>
10984 Andrey Turetskiy <andrey.turetskiy@intel.com>
10985 Ilya Verbin <ilya.verbin@intel.com>
10986 Kirill Yukhin <kirill.yukhin@intel.com>
10987 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
10989 * config/i386/sse.md (VI48_AVX512F): New.
10990 (VI48_AVX2): Changed to ...
10991 (VI48_AVX2_48_AVX512F): This.
10992 (avx2_ashrv<mode>): Changed to ...
10993 (<avx2_avx512f>_ashrv<mode>): This.
10994 (avx2_<shift_insn>v<mode>): Changed to ...
10995 (<avx2_avx512f>_<shift_insn>v<mode>): This.
10997 2013-10-11 Alexander Ivchenko <alexander.ivchenko@intel.com>
10998 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
10999 Sergey Lega <sergey.s.lega@intel.com>
11000 Anna Tikhonova <anna.tikhonova@intel.com>
11001 Ilya Tocar <ilya.tocar@intel.com>
11002 Andrey Turetskiy <andrey.turetskiy@intel.com>
11003 Ilya Verbin <ilya.verbin@intel.com>
11004 Kirill Yukhin <kirill.yukhin@intel.com>
11005 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
11007 * config/i386/sse.md (VI4_AVX512F): New.
11008 (VI8_AVX2_AVX512F): Ditto.
11009 (mul<mode>3): Extended with wider modes.
11010 (*<sse4_1_avx2>_mul<mode>3): Ditto.
11011 (mul<mode>3): Ditto.
11012 (vec_widen_<s>mult_odd_<mode>): Ditto.
11014 2013-10-11 Alexander Ivchenko <alexander.ivchenko@intel.com>
11015 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
11016 Sergey Lega <sergey.s.lega@intel.com>
11017 Anna Tikhonova <anna.tikhonova@intel.com>
11018 Ilya Tocar <ilya.tocar@intel.com>
11019 Andrey Turetskiy <andrey.turetskiy@intel.com>
11020 Ilya Verbin <ilya.verbin@intel.com>
11021 Kirill Yukhin <kirill.yukhin@intel.com>
11022 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
11024 * config/i386/sse.md (VI2_AVX512F): New.
11025 (VI124_AVX512F): Ditto.
11026 (sseunpackmode): Extended with wider modes.
11027 (sseunpackfltmode): Ditto.
11028 (vec_unpacks_float_hi_<mode>): Ditto.
11029 (vec_unpacks_float_lo_<mode>): Ditto.
11030 (vec_unpacku_float_hi_<mode>): Ditto.
11031 (vec_unpacku_float_lo_<mode>): Ditto.
11032 (vec_unpacks_lo_<mode>): Ditto.
11033 (vec_unpacks_hi_<mode>): Ditto.
11034 (vec_unpacku_lo_<mode>): Ditto.
11035 (vec_unpacku_hi_<mode>): Ditto.
11037 2013-10-11 Alexander Ivchenko <alexander.ivchenko@intel.com>
11038 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
11039 Sergey Lega <sergey.s.lega@intel.com>
11040 Anna Tikhonova <anna.tikhonova@intel.com>
11041 Ilya Tocar <ilya.tocar@intel.com>
11042 Andrey Turetskiy <andrey.turetskiy@intel.com>
11043 Ilya Verbin <ilya.verbin@intel.com>
11044 Kirill Yukhin <kirill.yukhin@intel.com>
11045 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
11047 * config/i386/i386.md (multdiv): New.
11048 (multdiv_mnemonic): Ditto.
11049 * config/i386/sse.md (<sse>_vmmul<mode>3): Changed to...
11050 (<sse>_vm<multdiv_mnemonic><mode>3): This.
11051 (<sse>_vmdiv<mode>3): Removed.
11053 2013-10-11 Alexander Ivchenko <alexander.ivchenko@intel.com>
11054 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
11055 Sergey Lega <sergey.s.lega@intel.com>
11056 Anna Tikhonova <anna.tikhonova@intel.com>
11057 Ilya Tocar <ilya.tocar@intel.com>
11058 Andrey Turetskiy <andrey.turetskiy@intel.com>
11059 Ilya Verbin <ilya.verbin@intel.com>
11060 Kirill Yukhin <kirill.yukhin@intel.com>
11061 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
11063 * config/i386/sse.md (V): Extended with wider modes.
11065 (ssehalfvecmode): Ditto.
11067 (ssepackfltmode): Ditto.
11068 (avx_vec_concat<mode>): Ditto.
11069 (V_256_512): New iterator.
11070 (VF2_512_256): Ditto.
11071 (si2dfmode): New attribute.
11072 (si2dfmodelower): Ditto.
11073 (sf2dfmode): Ditto.
11074 (concat_tg_mode): Ditto.
11075 (floatv4siv4df2): Changed to ...
11076 (float<si2dfmodelower><mode>2): This.
11077 (avx_cvtps2pd256): Changed to ...
11078 (<sse2_avx_avx512f>_cvtps2pd<avxsizesuffix>): This.
11079 (vec_pack_trunc_v4df): Changed to ...
11080 (vec_pack_trunc_<mode>): This.
11081 (avx_vpermil<mode>): Changed to ...
11082 (<sse2_avx_avx512f>_vpermil<mode>): This.
11083 (<fixsuffix>fix_truncv8dfv8si2): New.
11084 (vec_pack_sfix_trunc_v8df): Ditto.
11085 (avx512f_rndscale<mode>): Ditto.
11086 (avx512f_roundpd512): Ditto.
11087 (vec_pack_ufix_trunc_<mode>): Updated iterator.
11089 2013-10-11 Alexander Ivchenko <alexander.ivchenko@intel.com>
11090 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
11091 Sergey Lega <sergey.s.lega@intel.com>
11092 Anna Tikhonova <anna.tikhonova@intel.com>
11093 Ilya Tocar <ilya.tocar@intel.com>
11094 Andrey Turetskiy <andrey.turetskiy@intel.com>
11095 Ilya Verbin <ilya.verbin@intel.com>
11096 Kirill Yukhin <kirill.yukhin@intel.com>
11097 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
11099 * config/i386/i386.md (any_fix): New iterator.
11100 (fixsuffix): New attribute.
11101 * config/i386/sse.md (VF1): Extened with wider modes.
11105 (sseintvecmodelower): Ditto.
11106 (ssescalarmode): Ditto.
11107 (ssescalarnum): Ditto.
11108 (VF1_128_256): New.
11109 (ssexmmmode): Ditto.
11110 (<fixsuffix>fix_truncv16sfv16si2): Ditto.
11111 (<sse>_rcp<mode>2): Change iterator.
11112 (rsqrt<mode>2): Ditto.
11113 (<sse>_rsqrt<mode>2): Ditto.
11114 (avx2_vec_dup<mode>): Ditto.
11115 (<sse4_1>_round<ssemodesuffix>_sfix<avxsizesuffix>): Ditto.
11116 (round<mode>2_sfix): Ditto.
11117 (avx2_pbroadcast<mode>): Ditto.
11118 (*andnot<mode>3): Handle XI mode.
11119 (*<code><mode>3): Ditto.
11120 (AVXTOSSEMODE): Removed.
11121 (avx_vpermil<mode>): Changed to ...
11122 (<sse2_avx_avx512f>_vpermil<mode>): This.
11124 2013-10-11 Alexander Ivchenko <alexander.ivchenko@intel.com>
11125 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
11126 Sergey Lega <sergey.s.lega@intel.com>
11127 Anna Tikhonova <anna.tikhonova@intel.com>
11128 Ilya Tocar <ilya.tocar@intel.com>
11129 Andrey Turetskiy <andrey.turetskiy@intel.com>
11130 Ilya Verbin <ilya.verbin@intel.com>
11131 Kirill Yukhin <kirill.yukhin@intel.com>
11132 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
11134 * config/i386/sse.md (<sse2>_movnt<mode>): Update constraint to "v".
11135 (<sse>_comi): Ditto.
11136 (<sse>_ucomi): Ditto.
11137 (sse_cvtss2siq_2): Ditto.
11138 (sse2_cvtsd2si): Ditto.
11139 (sse2_cvtsd2siq): Ditto.
11140 (sse2_cvttsd2si): Ditto.
11141 (sse2_cvttsd2siq): Ditto.
11142 (<shift_insn><mode>3): Ditto.
11143 (sse2_cvtsi2sdq): Update constraint and prefix.
11144 (sse_cvtsi2ss): Update prefix.
11145 (sse_cvtsi2ssq): Ditto.
11147 2013-10-11 Jakub Jelinek <jakub@redhat.com>
11149 * tree-vrp.c (infer_nonnull_range): Use is_gimple_call,
11150 ignore internal calls.
11152 2013-10-11 Richard Biener <rguenther@suse.de>
11154 * tree-pretty-print.c (dump_generic_node): Allow to dump both (D)
11155 and (ab) for SSA_NAMEs. Mark INTEGER_CSTs with (OVF) if
11156 TREE_OVERFLOW is set.
11158 2013-10-11 Thomas Schwinge <thomas@codesourcery.com>
11160 * tree.h (OMP_CLAUSE_CODE): Remove duplicate definition.
11162 * gimple.c: GIMPLE statements have subcodes, not sub-codes.
11163 * gimple.h: Likewise.
11165 * doc/generic.texi (OpenMP): OMP_CLAUSE_* are subcodes, not sub-codes.
11167 * doc/generic.texi (Adding new DECL node types): Explain *_CHECK
11170 * doc/gimple.texi (is_gimple_omp): Move into the correct section.
11172 * acinclude.m4 (gcc_GAS_FLAGS): Add more gcc_cv_as_flags overrides.
11173 * configure: Regenerate.
11175 2013-10-11 Jakub Jelinek <jakub@redhat.com>
11177 * tree-pretty-print.c (dump_omp_clause): Handle OMP_CLAUSE__LOOPTEMP_
11178 and new OpenMP 4.0 clauses, handle UDR OMP_CLAUSE_REDUCTION,
11179 formatting fixes, use pp_colon instead of pp_character (..., ':'),
11180 similarly pp_right_paren.
11181 (dump_generic_node): Handle OMP_DISTRIBUTE, OMP_TEAMS,
11182 OMP_TARGET_DATA, OMP_TARGET, OMP_TARGET_UPDATE, OMP_TASKGROUP,
11183 allow OMP_FOR_INIT to be NULL, handle OMP_ATOMIC_SEQ_CST.
11184 * tree.c (omp_clause_num_ops, omp_clause_code_name): Add OpenMP 4.0
11186 (omp_declare_simd_clauses_equal,
11187 omp_remove_redundant_declare_simd_attrs): New functions.
11188 (attribute_value_equal): Use omp_declare_simd_clauses_equal.
11189 (walk_tree_1): Handle new OpenMP 4.0 clauses.
11190 * tree.h (OMP_LOOP_CHECK): Define.
11191 (OMP_FOR_BODY, OMP_FOR_CLAUSES, OMP_FOR_INIT, OMP_FOR_COND,
11192 OMP_FOR_INCR, OMP_FOR_PRE_BODY): Use it.
11193 (OMP_TASKGROUP_BODY, OMP_TEAMS_BODY, OMP_TEAMS_CLAUSES,
11194 OMP_TARGET_DATA_BODY, OMP_TARGET_DATA_CLAUSES, OMP_TARGET_BODY,
11195 OMP_TARGET_CLAUSES, OMP_TARGET_UPDATE_CLAUSES, OMP_CLAUSE_SIZE,
11196 OMP_ATOMIC_SEQ_CST, OMP_CLAUSE_DEPEND_KIND, OMP_CLAUSE_MAP_KIND,
11197 OMP_CLAUSE_MAP_ZERO_BIAS_ARRAY_SECTION, OMP_CLAUSE_PROC_BIND_KIND,
11198 OMP_CLAUSE_REDUCTION_OMP_ORIG_REF, OMP_CLAUSE_ALIGNED_ALIGNMENT,
11199 OMP_CLAUSE_NUM_TEAMS_EXPR, OMP_CLAUSE_THREAD_LIMIT_EXPR,
11200 OMP_CLAUSE_DEVICE_ID, OMP_CLAUSE_DIST_SCHEDULE_CHUNK_EXPR,
11201 OMP_CLAUSE_SIMDLEN_EXPR): Define.
11202 (OMP_CLAUSE_DECL): Change range up to OMP_CLAUSE__LOOPTEMP_.
11203 (omp_remove_redundant_declare_simd_attrs): New prototype.
11204 * gimple.def (GIMPLE_OMP_TASKGROUP, GIMPLE_OMP_TARGET,
11205 GIMPLE_OMP_TEAMS): New codes.
11206 (GIMPLE_OMP_RETURN): Use GSS_OMP_ATOMIC_STORE instead of GSS_BASE.
11207 * omp-low.c (struct omp_context): Add cancel_label and cancellable
11209 (target_nesting_level): New variable.
11210 (extract_omp_for_data): Handle GF_OMP_FOR_KIND_DISTRIBUTE and
11211 OMP_CLAUSE_DIST_SCHEDULE. Don't fallback to library implementation
11212 for collapse > 1 static schedule unless ordered.
11213 (get_ws_args_for): Add par_stmt argument. Handle combined loops.
11214 (determine_parallel_type): Adjust get_ws_args_for caller.
11215 (install_var_field): Handle mask & 4 for double indirection.
11216 (scan_sharing_clauses): Ignore shared clause on teams construct.
11217 Handle OMP_CLAUSE__LOOPTEMP_ and new OpenMP 4.0 clauses.
11218 (create_omp_child_function): If inside target or declare target
11219 constructs, set "omp declare target" attribute on the child function.
11220 (find_combined_for): New function.
11221 (scan_omp_parallel): Handle combined loops.
11222 (scan_omp_target, scan_omp_teams): New functions.
11223 (check_omp_nesting_restrictions): Check new OpenMP 4.0 nesting
11224 restrictions and set ctx->cancellable for cancellable constructs.
11225 (scan_omp_1_stmt): Call check_omp_nesting_restrictions also on
11226 selected builtin calls. Handle GIMPLE_OMP_TASKGROUP,
11227 GIMPLE_OMP_TARGET, GIMPLE_OMP_TEAMS.
11228 (build_omp_barrier): Add lhs argument, return gimple rather than tree.
11229 (omp_clause_aligned_alignment): New function.
11230 (lower_rec_simd_input_clauses): Only call SET_DECL_VALUE_EXPR on decls.
11231 (lower_rec_input_clauses): Add FD argument. Ignore shared clauses
11232 on teams constructs. Handle user defined reductions and new
11233 OpenMP 4.0 clauses.
11234 (lower_reduction_clauses): Don't set placeholder to address of ref
11235 if it has already the right type.
11236 (lower_send_clauses): Handle OMP_CLAUSE__LOOPTEMP_.
11237 (expand_parallel_call): Use the new non-_start suffixed builtins,
11238 handle OMP_CLAUSE_PROC_BIND, don't call the outlined function
11239 and GOMP_parallel_end after the call.
11240 (expand_task_call): Handle OMP_CLAUSE_DEPEND.
11241 (expand_omp_for_init_counts): Handle combined loops.
11242 (expand_omp_for_init_vars): Add inner_stmt argument, handle combined
11244 (expand_omp_for_generic): Likewise. Use GOMP_loop_end_cancel at the
11245 end of cancellable loops.
11246 (expand_omp_for_static_nochunk, expand_omp_for_static_chunk):
11247 Likewise. Handle collapse > 1 loops.
11248 (expand_omp_simd): Handle combined loops.
11249 (expand_omp_for): Add inner_stmt argument, adjust callers of
11250 expand_omp_for* functions, use expand_omp_for_static*chunk even
11251 for collapse > 1 unless ordered.
11252 (expand_omp_sections): Use GOMP_sections_end_cancel at the end
11253 of cancellable sections.
11254 (expand_omp_single): Remove need_barrier variable, just rely on
11255 gimple_omp_return_nowait_p. Adjust build_omp_barrier caller.
11256 (expand_omp_synch): Allow GIMPLE_OMP_TASKGROUP and GIMPLE_OMP_TEAMS.
11257 (expand_omp_atomic_load, expand_omp_atomic_store,
11258 expand_omp_atomic_fetch_op): Handle gimple_omp_atomic_seq_cst_p.
11259 (expand_omp_target): New function.
11260 (expand_omp): Handle combined loops. Handle GIMPLE_OMP_TASKGROUP,
11261 GIMPLE_OMP_TEAMS, GIMPLE_OMP_TARGET.
11262 (build_omp_regions_1): Immediately close region for
11263 GF_OMP_TARGET_KIND_UPDATE.
11264 (maybe_add_implicit_barrier_cancel): New function.
11265 (lower_omp_sections): Adjust lower_rec_input_clauses caller. Handle
11267 (lower_omp_single): Likewise. Add clobber after the barrier.
11268 (lower_omp_taskgroup): New function.
11269 (lower_omp_for): Handle combined loops. Adjust
11270 lower_rec_input_clauses caller. Handle cancellation.
11271 (lower_depend_clauses): New function.
11272 (lower_omp_taskreg): Lower depend clauses. Adjust
11273 lower_rec_input_clauses caller. Add clobber after the call. Handle
11275 (lower_omp_target, lower_omp_teams): New functions.
11276 (lower_omp_1): Handle cancellation. Handle GIMPLE_OMP_TASKGROUP,
11277 GIMPLE_OMP_TARGET, GIMPLE_OMP_TEAMS and GOMP_barrier, GOMP_cancel
11278 and GOMP_cancellation_point calls.
11279 (lower_omp): Fold stmts inside of target region.
11280 (diagnose_sb_1, diagnose_sb_2): Handle GIMPLE_OMP_TASKGROUP,
11281 GIMPLE_OMP_TARGET and GIMPLE_OMP_TEAMS.
11282 * builtin-types.def (DEF_FUNCTION_TYPE_8): Document.
11283 (BT_FN_VOID_OMPFN_PTR_UINT,
11284 BT_FN_VOID_OMPFN_PTR_UINT_LONG_LONG_LONG,
11285 BT_FN_VOID_OMPFN_PTR_UINT_LONG_LONG_LONG_LONG,
11286 BT_FN_VOID_OMPFN_PTR_OMPCPYFN_LONG_LONG_BOOL_UINT): Remove.
11287 (BT_FN_VOID_OMPFN_PTR_UINT_UINT_UINT,
11288 BT_FN_VOID_OMPFN_PTR_UINT_LONG_LONG_LONG_UINT,
11289 BT_FN_VOID_OMPFN_PTR_UINT_LONG_LONG_LONG_LONG_UINT,
11290 BT_FN_BOOL_INT, BT_FN_BOOL_INT_BOOL, BT_FN_VOID_UINT_UINT,
11291 BT_FN_VOID_INT_PTR_SIZE_PTR_PTR_PTR,
11292 BT_FN_VOID_INT_OMPFN_PTR_SIZE_PTR_PTR_PTR,
11293 BT_FN_VOID_OMPFN_PTR_OMPCPYFN_LONG_LONG_BOOL_UINT_PTR): New.
11294 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1,
11295 call_may_clobber_ref_p_1): Handle BUILT_IN_GOMP_BARRIER_CANCEL,
11296 BUILT_IN_GOMP_TASKGROUP_END, BUILT_IN_GOMP_LOOP_END_CANCEL,
11297 BUILT_IN_GOMP_SECTIONS_END_CANCEL. Don't handle
11298 BUILT_IN_GOMP_PARALLEL_END.
11299 * gimple-low.c (lower_stmt): Handle GIMPLE_OMP_TASKGROUP,
11300 GIMPLE_OMP_TARGET and GIMPLE_OMP_TEAMS.
11301 * gimple-pretty-print.c (dump_gimple_omp_for): Handle
11302 GF_OMP_FOR_KIND_DISTRIBUTE.
11303 (dump_gimple_omp_target, dump_gimple_omp_teams): New functions.
11304 (dump_gimple_omp_block): Handle GIMPLE_OMP_TASKGROUP.
11305 (dump_gimple_omp_return): Print lhs if it has any.
11306 (dump_gimple_omp_atomic_load, dump_gimple_omp_atomic_store): Handle
11307 gimple_omp_atomic_seq_cst_p.
11308 (pp_gimple_stmt_1): Handle GIMPLE_OMP_TASKGROUP, GIMPLE_OMP_TARGET
11309 and GIMPLE_OMP_TEAMS.
11310 * langhooks.c (lhd_omp_mappable_type): New function.
11311 * tree-vectorizer.c (struct simd_array_to_simduid): Fix up comment.
11312 * langhooks.h (struct lang_hooks_for_types): Add omp_mappable_type
11314 * gimplify.c (enum gimplify_omp_var_data): Add GOVD_MAP,
11315 GOVD_ALIGNED and GOVD_MAP_TO_ONLY.
11316 (enum omp_region_type): Add ORT_TEAMS, ORT_TARGET_DATA and ORT_TARGET.
11317 (struct gimplify_omp_ctx): Add combined_loop field.
11318 (gimplify_call_expr, gimplify_modify_expr): Don't call fold_stmt
11319 on stmts inside of target region.
11320 (is_gimple_stmt): Return true for OMP_DISTRIBUTE and OMP_TASKGROUP.
11321 (omp_firstprivatize_variable): Handle GOVD_MAP, GOVD_ALIGNED,
11322 ORT_TARGET and ORT_TARGET_DATA.
11323 (omp_add_variable): Avoid checks on readding var for GOVD_ALIGNED.
11325 (omp_notice_threadprivate_variable): Complain about threadprivate
11326 variables in target region.
11327 (omp_notice_variable): Complain about vars with non-mappable type
11328 in target region. Handle ORT_TEAMS, ORT_TARGET and ORT_TARGET_DATA.
11329 (omp_check_private): Ignore ORT_TARGET* regions.
11330 (gimplify_scan_omp_clauses, gimplify_adjust_omp_clauses_1,
11331 gimplify_adjust_omp_clauses): Handle new OpenMP 4.0 clauses.
11332 (find_combined_omp_for): New function.
11333 (gimplify_omp_for): Handle gimplification of combined loops.
11334 (gimplify_omp_workshare): Gimplify also OMP_TARGET, OMP_TARGET_DATA,
11336 (gimplify_omp_target_update): New function.
11337 (gimplify_omp_atomic): Handle OMP_ATOMIC_SEQ_CST.
11338 (gimplify_expr): Handle OMP_DISTRIBUTE, OMP_TARGET, OMP_TARGET_DATA,
11339 OMP_TARGET_UPDATE, OMP_TEAMS, OMP_TASKGROUP.
11340 (gimplify_body): If fndecl has "omp declare target" attribute, add
11341 implicit ORT_TARGET context around it.
11342 * tree.def (OMP_DISTRIBUTE, OMP_TEAMS, OMP_TARGET_DATA, OMP_TARGET,
11343 OMP_TASKGROUP, OMP_TARGET_UPDATE): New tree codes.
11344 * tree-nested.c (convert_nonlocal_reference_stmt,
11345 convert_local_reference_stmt, convert_gimple_call): Handle
11346 GIMPLE_OMP_TARGET, GIMPLE_OMP_TEAMS and GIMPLE_OMP_TASKGROUP.
11347 * omp-builtins.def (BUILT_IN_GOMP_TASK): Use
11348 BT_FN_VOID_OMPFN_PTR_OMPCPYFN_LONG_LONG_BOOL_UINT_PTR
11349 instead of BT_FN_VOID_OMPFN_PTR_OMPCPYFN_LONG_LONG_BOOL_UINT.
11350 (BUILT_IN_GOMP_TARGET, BUILT_IN_GOMP_TARGET_DATA,
11351 BUILT_IN_GOMP_TARGET_END_DATA, BUILT_IN_GOMP_TARGET_UPDATE,
11352 BUILT_IN_GOMP_TEAMS, BUILT_IN_BARRIER_CANCEL,
11353 BUILT_IN_GOMP_LOOP_END_CANCEL,
11354 BUILT_IN_GOMP_SECTIONS_END_CANCEL, BUILT_IN_OMP_GET_TEAM_NUM,
11355 BUILT_IN_OMP_GET_NUM_TEAMS, BUILT_IN_GOMP_TASKGROUP_START,
11356 BUILT_IN_GOMP_TASKGROUP_END, BUILT_IN_GOMP_PARALLEL_LOOP_STATIC,
11357 BUILT_IN_GOMP_PARALLEL_LOOP_DYNAMIC,
11358 BUILT_IN_GOMP_PARALLEL_LOOP_GUIDED,
11359 BUILT_IN_GOMP_PARALLEL_LOOP_RUNTIME, BUILT_IN_GOMP_PARALLEL,
11360 BUILT_IN_GOMP_PARALLEL_SECTIONS, BUILT_IN_GOMP_CANCEL,
11361 BUILT_IN_GOMP_CANCELLATION_POINT): New built-ins.
11362 (BUILT_IN_GOMP_PARALLEL_LOOP_STATIC_START,
11363 BUILT_IN_GOMP_PARALLEL_LOOP_DYNAMIC_START,
11364 BUILT_IN_GOMP_PARALLEL_LOOP_GUIDED_START,
11365 BUILT_IN_GOMP_PARALLEL_LOOP_RUNTIME_START,
11366 BUILT_IN_GOMP_PARALLEL_START, BUILT_IN_GOMP_PARALLEL_END,
11367 BUILT_IN_GOMP_PARALLEL_SECTIONS_START): Remove.
11368 * tree-inline.c (remap_gimple_stmt, estimate_num_insns):
11369 Handle GIMPLE_OMP_TARGET, GIMPLE_OMP_TEAMS and GIMPLE_OMP_TASKGROUP.
11370 * gimple.c (gimple_build_omp_taskgroup, gimple_build_omp_target,
11371 gimple_build_omp_teams): New functions.
11372 (walk_gimple_op): Handle GIMPLE_OMP_TARGET, GIMPLE_OMP_TEAMS and
11373 GIMPLE_OMP_TASKGROUP. Walk optional lhs on GIMPLE_OMP_RETURN.
11374 (walk_gimple_stmt, gimple_copy): Handle GIMPLE_OMP_TARGET,
11375 GIMPLE_OMP_TEAMS and GIMPLE_OMP_TASKGROUP.
11376 * gimple.h (enum gf_mask): GF_OMP_FOR_KIND_DISTRIBUTE,
11377 GF_OMP_FOR_COMBINED, GF_OMP_FOR_COMBINED_INTO,
11378 GF_OMP_TARGET_KIND_MASK, GF_OMP_TARGET_KIND_REGION,
11379 GF_OMP_TARGET_KIND_DATA, GF_OMP_TARGET_KIND_UPDATE,
11380 GF_OMP_ATOMIC_SEQ_CST): New.
11381 (gimple_build_omp_taskgroup, gimple_build_omp_target,
11382 gimple_build_omp_teams): New prototypes.
11383 (gimple_has_substatements): Handle GIMPLE_OMP_TARGET,
11384 GIMPLE_OMP_TEAMS and GIMPLE_OMP_TASKGROUP.
11385 (gimple_omp_subcode): Use GIMPLE_OMP_TEAMS instead of
11386 GIMPLE_OMP_SINGLE as end of range.
11387 (gimple_omp_return_set_lhs, gimple_omp_return_lhs,
11388 gimple_omp_return_lhs_ptr, gimple_omp_atomic_seq_cst_p,
11389 gimple_omp_atomic_set_seq_cst, gimple_omp_for_combined_p,
11390 gimple_omp_for_set_combined_p, gimple_omp_for_combined_into_p,
11391 gimple_omp_for_set_combined_into_p, gimple_omp_target_clauses,
11392 gimple_omp_target_clauses_ptr, gimple_omp_target_set_clauses,
11393 gimple_omp_target_kind, gimple_omp_target_set_kind,
11394 gimple_omp_target_child_fn, gimple_omp_target_child_fn_ptr,
11395 gimple_omp_target_set_child_fn, gimple_omp_target_data_arg,
11396 gimple_omp_target_data_arg_ptr, gimple_omp_target_set_data_arg,
11397 gimple_omp_teams_clauses, gimple_omp_teams_clauses_ptr,
11398 gimple_omp_teams_set_clauses): New inlines.
11399 (CASE_GIMPLE_OMP): Add GIMPLE_OMP_TARGET, GIMPLE_OMP_TEAMS
11400 and GIMPLE_OMP_TASKGROUP.
11401 * tree-core.h (enum omp_clause_code): Add new OpenMP 4.0 clause codes.
11402 (enum omp_clause_depend_kind, enum omp_clause_map_kind,
11403 enum omp_clause_proc_bind_kind): New.
11404 (union omp_clause_subcode): Add depend_kind, map_kind and
11405 proc_bind_kind fields.
11406 * tree-cfg.c (make_edges): Handle GIMPLE_OMP_TARGET,
11407 GIMPLE_OMP_TEAMS and GIMPLE_OMP_TASKGROUP.
11408 * langhooks-def.h (lhd_omp_mappable_type): New prototype.
11409 (LANG_HOOKS_OMP_MAPPABLE_TYPE): Define.
11410 (LANG_HOOKS_FOR_TYPES_INITIALIZER): Add it.
11412 2013-10-10 Teresa Johnson <tejohnson@google.com>
11414 * predict.c (tree_estimate_probability): Add new parameter
11415 for estimate_bb_frequencies.
11416 (estimate_bb_frequencies): Add new parameter to force estimation.
11417 (rebuild_frequencies): When max frequency in function is small,
11418 recompute counts from frequencies.
11419 * predict.h (estimate_bb_frequencies): New parameter.
11421 2013-10-10 David Malcolm <dmalcolm@redhat.com>
11423 * ipa-inline.c (ipa_inline): Fix leak of "order" when
11424 optimizations are disabled.
11426 2013-10-10 David Malcolm <dmalcolm@redhat.com>
11428 * coverage.c (coverage_finish): Fix leak of da_file_name.
11430 2013-10-10 Jan Hubicka <jh@suse.cz>
11432 * config/i386/x86-tune.def: Enable X86_TUNE_SSE_TYPELESS_STORES
11433 for generic, enable X86_TUNE_SSE_LOAD0_BY_PXOR for Bulldozer,
11434 Bobcat and generic.
11436 2013-10-10 Jakub Jelinek <jakub@redhat.com>
11438 PR middle-end/58670
11439 * stmt.c (expand_asm_operands): Add FALLTHRU_BB argument,
11440 if any labels are in FALLTHRU_BB, use a special label emitted
11441 immediately after the asm goto insn rather than label_rtx
11443 (expand_asm_stmt): Adjust caller.
11444 * cfgrtl.c (commit_one_edge_insertion): Force splitting of
11445 edge if the last insn in predecessor is a jump with single successor,
11446 but it isn't simplejump_p.
11448 2013-10-10 Richard Biener <rguenther@suse.de>
11450 PR tree-optimization/58656
11451 * tree-ssa-pre.c (phi_translate): Do not cache failed translations.
11453 2013-10-10 Andrew MacLeod <amacleod@redhat.com>
11455 * gimplify.c: Include expr.h and tm_p.h for targets with special
11456 va-arg padding requirements.
11458 2013-10-10 Andrew MacLeod <amacleod@redhat.com>
11460 * tree-flow.h: Move some prototypes to gimple.h.
11461 (gimple_fold_indirect_ref): Move prototype to gimple-fold.h.
11462 * gimple.h: Relocate some prototypes from tree-flow.h
11463 * builtins.c (std_gimplify_va_arg_expr, build_va_arg_indirect_ref):
11464 Move to gimplify.c.
11465 * gimplify.c (gimple_fold_indirect_ref): Move to gimple-fold.c.
11466 (build_va_arg_indirect_ref): Relocate and make static.
11467 (std_gimplify_va_arg_expr): Relocate here.
11468 * gimple-fold.c (gimple_fold_indirect_ref): Relocate here.
11469 * gimple-fold.h (gimple_fold_indirect_ref): Add prototype.
11471 2013-10-10 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
11473 * doc/md.texi: Document the mnemonic attribute.
11475 2013-10-10 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
11478 * gensupport.c (gen_mnemonic_attr): Handle (set (attr x) y) and
11479 (set_attr_alternative x ...) when searching for user defined
11480 mnemonic attribute.
11482 2013-10-10 Andrew MacLeod <amacleod@redhat.com>
11484 * config/aplha/alpha.c: Add gimple-ssa.h to include list.
11486 2013-10-09 Easwaran Raman <eraman@google.com>
11488 * params.def (PARAM_MIN_SIZE_FOR_STACK_SHARING): New param...
11489 * cfgexpand.c (defer_stack_allocation): ...use here
11490 * doc/invoke.texi: Add documentation for min-size-for-stack-sharing.
11492 2013-10-09 Zhenqiang Chen <zhenqiang.chen@arm.com>
11494 * tree-ssa-phiopts.c (rhs_is_fed_for_value_replacement): New function.
11495 (operand_equal_for_value_replacement): New function, extracted from
11496 value_replacement and enhanced to catch more cases.
11497 (value_replacement): Use operand_equal_for_value_replacement.
11499 2013-10-09 Andrew MacLeod <amacleod@redhat.com>
11501 * loop-doloop.c (doloop_modify, doloop_optimize): Use
11502 get_max_loop_iterations.
11504 2013-10-09 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
11506 * config/arm/aarch-common.c (arm_early_load_addr_dep):
11507 Place comment above function.
11509 2013-10-09 Andrew MacLeod <amacleod@redhat.com>
11511 * tree-flow.h: Remove all remaining prototypes, enums and structs that
11512 are not related to tree-cfg.c.
11513 * tree-ssa-address.h: New file. Relocate prototypes.
11514 * tree-ssa-address.c: (struct mem_address): Relocate from tree-flow.h.
11515 (addr_for_mem_ref): New. Combine call to get_address_description and
11516 return addr_for_mem_ref.
11517 * expr.c (expand_expr_real_1): Use new addr_for_mem_ref routine.
11518 * tree-ssa-live.h: Adjust prototypes.
11519 * passes.c: Include tree-ssa-live.h.
11520 * gimple-pretty-print.h (gimple_dump_bb): Add prototype.
11521 * graphite.c (graphite_transform_loops): Make static.
11522 (graphite_transforms, gate_graphite_transforms, pass_data_graphite,
11523 make_pass_graphite, pass_data_graphite_transforms,
11524 make_pass_graphite_transforms): Relocate here from tree-ssa-loop.c.
11525 * ipa-pure-const.c (warn_function_noreturn): Make static.
11526 (execute_warn_function_noreturn, gate_warn_function_noreturn,
11527 class pass_warn_function_noreturn, make_pass_warn_function_noreturn):
11528 Relocate from tree-cfg.c
11529 * tree-cfg.c (tree_node_can_be_shared, gimple_empty_block_p): Make
11531 (execute_warn_function_noreturn, gate_warn_function_noreturn,
11532 class pass_warn_function_noreturn, make_pass_warn_function_noreturn):
11533 Move to ipa-pure-const.c.
11534 (execute_fixup_cfg, class pass_fixup_cfg, make_pass_fixup_cfg):
11535 Relocate from tree-optimize.c.
11536 * tree-optimize.c (execute_fixup_cfg, class pass_fixup_cfg,
11537 make_pass_fixup_cfg): Move to tree-cfg.c.
11538 * tree-chrec.h: (enum ev_direction): Relocate here from tree-flow.h.
11539 Relocate some prototypes.
11540 * tree-data-ref.h (tree_check_data_deps) Add prototype.
11541 * tree-dump.c (dump_function_to_file): Remove prototype.
11542 Add tree-flow.h to the include file.
11543 * tree-dump.h: Remove prototype.
11544 * tree-parloops.h: New File. Add prototypes.
11545 * tree-parloops.c (gate_tree_parallelize_loops, tree_parallelize_loops,
11546 pass_data_parallelize_loops, make_pass_parallelize_loops): Relocate
11547 from tree-ssa-loop.c.
11548 * tree-predcom.c (run_tree_predictive_commoning,
11549 gate_tree_predictive_commoning, pass_data_predcom, make_pass_predcom):
11550 Relocate here from tree-ssa-loop.c.
11551 * tree-ssa-dom.c (tree_ssa_dominator_optimize) Don't call
11552 ssa_name_values.release ().
11553 * tree-ssa-threadedge.h: New File. Relocate prototypes here.
11554 (ssa_name_values): Relocate from tree-flow.h.
11555 * tree-ssa.h: Include tree-ssa-threadedge.h and tree-ssa-address.h.
11556 * tree-ssa-loop.c (run_tree_predictive_commoning,
11557 gate_tree_predictive_commoning, pass_data_predcom, make_pass_predcom,
11558 graphite_transforms, gate_graphite_transforms, pass_data_graphite,
11559 make_pass_graphite, pass_data_graphite_transforms,
11560 make_pass_graphite_transforms, gate_tree_parallelize_loops,
11561 tree_parallelize_loops, pass_data_parallelize_loops,
11562 make_pass_parallelize_loops): Move to other files.
11563 * tree-vectorizer.h (lpeel_tree_duplicate_loop_to_edge_cfg): Prototype
11565 * tree.h: Remove prototypes from tree-address.c.
11567 2013-10-09 Andrew MacLeod <amacleod@redhat.com>
11569 * tree-flow.h (tm_restart_node, gimple_df): Move to gimple-ssa.h.
11570 (struct int_tree_map): Move to tree-hasher.h
11571 (SCALE, LABEL, PERCENT): Move to gimple.h
11572 * tree-flow-inline.h: Delete. Move functions to other files.
11573 (unmodifiable_var_p, ref_contains_array_ref): Unused, so delete.
11574 * gimple-ssa.h (tm_restart_node, gimple_df): Relocate from tree-flow.h.
11575 (gimple_in_ssa_p, gimple_vop): Relocate from tree-flow-inline.h
11576 * gimple.h (imple_stmt_max_uid, set_gimple_stmt_max_uid,
11577 inc_gimple_stmt_max_uid, get_lineno): Relocate from tree-flow-inline.h.
11578 (SCALE, LABEL, PERCENT): Relocate from tree-flow.h
11579 * tree-hasher.h: Don't include tree-flow.h.
11580 (struct int_tree_map): Relocate from tree-flow.h.
11581 * tree-sra.c (contains_view_convert_expr_p): Relocate from
11582 tree-flow-inline.h and make static.
11583 * tree-ssa-alias.h (ranges_overlap_p): Relocate from
11584 tree-flow-inline.h.
11585 * tree-ssa-operands.c (gimple_ssa_operands): Relocate from
11586 tree-flow-inline.h and make static.
11587 * tree.h (is_global_var, may_be_aliased): Relocate from
11588 tree-flow-inline.h.
11589 * Makefile.in (GTFILES): Remove tree-flow.h and add gimple-ssa.h.
11590 * value-prof.c: No longer include tree-flow-inline.h.
11591 * tree-switch-conversion.c: No longer include tree-flow-inline.h.
11593 2013-10-09 Andrew MacLeod <amacleod@redhat.com>
11595 * tree-flow.h: Move some protoypes. Include new tree-ssa-loop.h.
11596 (struct affine_iv, struct tree_niter_desc): Move to tree-ssa-loop.h.
11597 (enum move_pos): Move to tree-ssa-loop-im.h
11598 * cfgloop.h: Move some prototypes.
11599 (gcov_type_to_double_int): relocate from tree-ssa-loop.niter.c.
11600 * tree-flow-inline.h (loop_containing_stmt): Move to tree-ssa-loop.h.
11601 * tree-ssa-loop.h: New File. Include other tree-ssa-loop-*.h files.
11602 (struct affine_iv, struct tree_niter_desc): Relocate from tree-flow.h.
11603 (loop_containing_stmt): Relocate from tree-flow-inline.h.
11604 * tree-ssa-loop-ch.c: (do_while_loop_p): Make static.
11605 * tree-ssa-loop-im.c (for_each_index): Move to tree-ssa-loop.c.
11606 (enum move_pos): Relocate here.
11607 (lsm_tmp_name_add, gen_lsm_tmp_name, get_lsm_tmp_name): Move to
11609 (execute_sm_if_changed_flag_set): Change get_lsm_tmp_name call.
11610 (tree_ssa_loop_im, gate_tree_ssa_loop_im, pass_data_lim,
11611 make_pass_lim): Relocate here from tree-ssa-loop.c.
11612 * tree-ssa-loop-ivcanon.c (tree_num_loop_insns): Move to
11614 (loop_edge_to_cancel, unloop_loops): Make static.
11615 (tree_ssa_loop_ivcanon, gate_tree_ssa_loop_ivcanon, pass_data_iv_canon,
11616 make_pass_iv_canon): Relocate from tree-ssa-loop.c.
11617 (tree_complete_unroll, gate_tree_complete_unroll,
11618 pass_data_complete_unroll, make_pass_complete_unroll): Relocate here.
11619 (tree_complete_unroll_inner, gate_tree_complete_unroll_inner,
11620 pass_data_complete_unrolli, make_pass_complete_unrolli): Relocate here.
11621 * tree-ssa-loop-ivopts.c: Remove local prototypes.
11622 (stmt_invariant_in_loop_p): Remove unused function.
11623 * tree-ssa-loop-ivopts.h: New file. Add prototypes.
11624 * tree-ssa-loop-manip.h: New file. Add prototypes.
11625 * tree-ssa-loop-niter.c (record_niter_bound): Move to cfgloop.c.
11626 (gcov_type_to_double_int): Move to cfgloop.h.
11627 (double_int_cmp, bound_index,
11628 estimate_numbers_of_iterations_loop): Make static.
11629 (estimated_loop_iterations): Factor out get_estimated_loop_iterations.
11630 (max_loop_iterations): Factor out get_max_loop_iterations.
11631 (estimated_loop_iterations_int, max_stmt_executions_int): Move to
11633 * tree-ssa-loop-niter.h: New file. Add prototypes.
11634 * tree-ssa-loop-prefetch.c (tree_ssa_loop_prefetch,
11635 gate_tree_ssa_loop_prefetch, pass_data_loop_prefetch,
11636 make_pass_loop_prefetch): Relocate from tree-ssa-loop.c.
11637 * tree-ssa-loop-unswitch.c (tree_ssa_loop_unswitch,
11638 gate_tree_ssa_loop_unswitch, pass_data_tree_unswitch,
11639 make_pass_tree_unswitch): Relocate from tree-ssa-loop.c.
11640 * tree-ssa-loop.c (tree_ssa_loop_im, gate_tree_ssa_loop_im,
11641 pass_data_lim, make_pass_lim): Move to tree-ssa-loop-im.c.
11642 (tree_ssa_loop_unswitch, gate_tree_ssa_loop_unswitch,
11643 pass_data_tree_unswitch, make_pass_tree_unswitch): Move.
11644 (tree_ssa_loop_ivcanon, gate_tree_ssa_loop_ivcanon, pass_data_iv_canon,
11645 make_pass_iv_canon, tree_complete_unroll, gate_tree_complete_unroll,
11646 pass_data_complete_unroll, make_pass_complete_unroll,
11647 tree_complete_unroll_inner, gate_tree_complete_unroll_inner,
11648 pass_data_complete_unrolli, make_pass_complete_unrolli): Move to
11649 tree-ssa-loop-ivcanon.c.
11650 (tree_ssa_loop_prefetch, gate_tree_ssa_loop_prefetch,
11651 pass_data_loop_prefetch, make_pass_loop_prefetch): Move to
11652 tree-ssa-loop-prefetch.c.
11653 (for_each_index, lsm_tmp_name_add, gen_lsm_tmp_name): Relocate from
11654 tree-ssa-loop-im.c.
11655 (get_lsm_tmp_name): Relocate and add suffix parameter.
11656 (tree_num_loop_insns): Relocate from tree-ssa-ivcanon.c.
11657 * tree-scalar-evolution.h (simple_iv): Don't use affive_iv typedef.
11658 * cfgloop.c (record_niter_bound, estimated_loop_iterations_int,
11659 max_stmt_executions_int): Move from tree-ssa-loop-niter.c.
11660 (get_estimated_loop_iterations): Factor out accessor from
11661 estimated_loop_iterations in tree-ssa-loop-niter.c.
11662 (get_max_loop_iterations): Factor out accessor from
11663 _max_loop_iterations in tree-ssa-niter.c.
11664 * loop-unroll.c (decide_unroll_constant_iterations,
11665 decide_unroll_runtime_iterations, decide_peel_simple,
11666 decide_unroll_stupid): Use new get_* accessors.
11668 2013-10-09 Marc Glisse <marc.glisse@inria.fr>
11670 PR tree-optimization/20318
11671 * doc/extend.texi (returns_nonnull): New function attribute.
11672 * fold-const.c (tree_expr_nonzero_warnv_p): Look for returns_nonnull
11674 * tree-vrp.c (gimple_stmt_nonzero_warnv_p): Likewise.
11675 (stmt_interesting_for_vrp): Accept all GIMPLE_CALL.
11677 2013-10-09 Eric Botcazou <ebotcazou@adacore.com>
11679 PR middle-end/58570
11680 * tree-ssa-alias.c (nonoverlapping_component_refs_of_decl_p): Return
11681 false if both components are bitfields.
11683 2013-10-09 Alex Velenko <Alex.Velenko@arm.com>
11685 * config/aarch64/arm_neon.h (vclz_s8, vclz_s16, vclz_s32)
11686 (vclzq_s8, vclzq_s16, vclzq_s32, vclz_u8, vclz_u16, vclz_u32)
11687 (vclzq_u8, vclzq_u16, vclzq_u32): Replace ASM with C.
11688 * config/aarch64/aarch64.h
11689 (CLZ_DEFINED_VALUE_AT_ZERO): Macro fixed for clz.
11690 * config/aarch64/aarch64-simd-builtins.def
11691 (VAR1 (UNOP, clz, 0, v4si)): Replaced with iterator.
11693 2013-10-09 Alex Velenko <Alex.Velenko@arm.com>
11695 * config/aarch64/arm_neon.h (vadd_f64, vsub_f64): Implementation added.
11697 2013-10-09 Alex Velenko <Alex.Velenko@arm.com>
11699 * config/aarch64/arm_neon.h (vdiv_f64): Added.
11701 2013-10-09 Alex Velenko <Alex.Velenko@arm.com>
11703 * config/aarch64/arm_neon.h (vneg_f32): Asm replaced with C.
11704 (vneg_f64): New intrinsic.
11705 (vneg_s8): Asm replaced with C.
11706 (vneg_s16): Likewise.
11707 (vneg_s32): Likewise.
11708 (vneg_s64): New intrinsic.
11709 (vnegq_f32): Asm replaced with C.
11710 (vnegq_f64): Likewise.
11711 (vnegq_s8): Likewise.
11712 (vnegq_s16): Likewise.
11713 (vnegq_s32): Likewise.
11714 (vnegq_s64): Likewise.
11716 2013-10-09 Renlin Li <Renlin.Li@arm.com>
11718 * config/arm/arm.c (arm_output_mi_thunk): Use plus_constant.
11720 2013-10-09 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
11722 * config/s390/s390.c (s390_register_info_stdarg_fpr): Remove
11723 packed stack special handling.
11724 (s390_frame_info, s390_emit_prologue, s390_emit_epilogue): Switch
11725 back to fixed stack slots for FPRs saved due to stdarg.
11727 2013-10-09 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
11729 * config/s390/s390.c (s390_frame_info): Restructure function.
11731 2013-10-09 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
11733 * config/s390/s390.c (struct s390_frame_layout): New field
11735 (cfun_save_arg_fprs_p, cfun_gpr_save_slot): New macros.
11736 (s390_reg_clobbered_rtx, s390_regs_ever_clobbered): Change type of
11737 regs_ever_clobbered to char*.
11738 (s390_regs_ever_clobbered): Check crtl->saves_all_registers instead
11739 of cfun->has_nonlocal_label. Ignore frame related restore INSNs.
11740 (s390_register_info): Enable FPR save slots. Move/Copy some
11741 functionality into ...
11742 (s390_register_info_gprtofpr, s390_register_info_stdarg_fpr)
11743 (s390_register_info_stdarg_gpr, s390_optimize_register_info): New
11745 (s390_frame_info): Do gpr slot allocation here now. stdarg does
11746 not imply a stack frame.
11747 (s390_init_frame_layout): Remove variable clobbered_regs.
11748 (s390_update_register_info): Remove function.
11749 (s390_hard_regno_rename_ok): Call-saved regs without a save slot
11750 cannot be used for register renaming.
11751 (s390_hard_regno_scratch_ok): New function.
11752 (TARGET_HARD_REGNO_SCRATCH_OK): Define target hook.
11753 (s390_initial_elimination_offset): Change offset calculation of
11754 the return address pointer.
11755 (save_gprs): Deal with only r6 being saved from the call-saved regs.
11756 (restore_gprs): Set frame related flag.
11757 (s390_save_gprs_to_fprs, s390_restore_gprs_from_fprs): New functions.
11758 (s390_emit_prologue): Call s390_register_info instead of
11759 s390_update_frame_layout. Call s390_save_gprs_to_fprs.
11760 (s390_emit_epilogue): Call s390_restore_gprs_from_fprs.
11761 (s390_optimize_prologue): Call s390_optimize_register_info.
11762 Try to remove also FPR slot save/restore INSNs. Remove frame
11763 related flags from restore INSNs.
11765 2013-10-08 DJ Delorie <dj@redhat.com>
11767 * config/rl78/rl78-expand.md (movqi): use operands[] not operandN.
11770 * config/rl78/rl78.c (rl78_print_operand_1): Change %c to %C to
11771 avoid conflict with the MI use of %c.
11772 * config/rl78/rl78-real.md: change %c to %C throughout.
11773 * config/rl78/rl78-virt.md: Likewise.
11775 2013-10-08 Jan Hubicka <jh@suse.cz>
11777 * config/i386/i386.c (ix86_option_override_internal): Switch
11778 to SSE math for -ffast-math when target ISA supports SSE2.
11780 2013-10-08 Andrew MacLeod <amacleod@redhat.com>
11782 * tree-flow.h: Remove some prototypes.
11783 * tree.h: Remove some protypes, add a couple.
11784 * tree.c (using_eh_for_cleanups_flag, using_eh_for_cleanups,
11785 using_eh_for_cleanups_p): Add interface routines for front ends.
11786 * tree-eh.h: New file. Add protoptyes.
11787 * tree-eh.c (using_eh_for_cleanups_p, using_eh_for_cleanups): Delete.
11788 (add_stmt_to_eh_lp_fn): Make static.
11789 (lower_try_finally): Use new using_eh_for_cleanups_p.
11790 * emit-rtl.c: Include tree-eh.h.
11791 * gimple.h: Include tree-eh.h.
11793 2013-10-08 Marc Glisse <marc.glisse@inria.fr>
11795 PR tree-optimization/58480
11796 * tree-vrp.c (infer_nonnull_range): New function.
11797 (infer_value_range): Call infer_nonnull_range.
11799 2013-10-08 Dehao Chen <dehao@google.com>
11801 PR tree-optimization/58619
11802 * tree-inline.c (copy_phis_for_bb): Combine location data
11805 2013-10-08 Zhenqiang Chen <zhenqiang.chen@linaro.org>
11808 * config/arm/arm.c (arm_emit_ldrd_pop): Attach
11809 RTX_FRAME_RELATED_P on INSN.
11811 2013-10-07 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
11813 * config/rs6000/rs6000.c (altivec_expand_vec_perm_const_le): New.
11814 (altivec_expand_vec_perm_const): Call it.
11816 2013-10-07 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
11818 * config/rs6000/vector.md (mov<mode>): Emit permuted move
11819 sequences for LE VSX loads and stores at expand time.
11820 * config/rs6000/rs6000-protos.h (rs6000_emit_le_vsx_move): New
11822 * config/rs6000/rs6000.c (rs6000_const_vec): New.
11823 (rs6000_gen_le_vsx_permute): New.
11824 (rs6000_gen_le_vsx_load): New.
11825 (rs6000_gen_le_vsx_store): New.
11826 (rs6000_gen_le_vsx_move): New.
11827 * config/rs6000/vsx.md (*vsx_le_perm_load_v2di): New.
11828 (*vsx_le_perm_load_v4si): New.
11829 (*vsx_le_perm_load_v8hi): New.
11830 (*vsx_le_perm_load_v16qi): New.
11831 (*vsx_le_perm_store_v2di): New.
11832 (*vsx_le_perm_store_v4si): New.
11833 (*vsx_le_perm_store_v8hi): New.
11834 (*vsx_le_perm_store_v16qi): New.
11835 (*vsx_xxpermdi2_le_<mode>): New.
11836 (*vsx_xxpermdi4_le_<mode>): New.
11837 (*vsx_xxpermdi8_le_V8HI): New.
11838 (*vsx_xxpermdi16_le_V16QI): New.
11839 (*vsx_lxvd2x2_le_<mode>): New.
11840 (*vsx_lxvd2x4_le_<mode>): New.
11841 (*vsx_lxvd2x8_le_V8HI): New.
11842 (*vsx_lxvd2x16_le_V16QI): New.
11843 (*vsx_stxvd2x2_le_<mode>): New.
11844 (*vsx_stxvd2x4_le_<mode>): New.
11845 (*vsx_stxvd2x8_le_V8HI): New.
11846 (*vsx_stxvd2x16_le_V16QI): New.
11848 2013-10-07 Renlin Li <Renlin.Li@arm.com>
11850 * config/arm/arm-cores.def (cortex-a53): Use cortex tuning.
11852 2013-10-07 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
11854 * config/s390/s390.c (s390_register_info): Make the call-saved FPR
11855 loop to work also for 31bit ABI.
11856 Save the stack pointer for frame_size > 0.
11858 2013-10-07 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
11860 * config/s390/s390.md ("tbegin", "tbegin_nofloat", "tbegin_retry")
11861 ("tbegin_retry_nofloat", "tend", "tabort", "tx_assist"): Remove
11862 constraint letters from expanders.
11863 ("tbegin_retry", "tbegin_retry_nofloat"): Change predicate of the
11864 retry count to general_operand.
11865 ("tabort"): Give operand 0 a mode.
11866 ("tabort_1"): Add mode and constraint letter for operand 0.
11867 * doc/extend.texi: Fix protoype of __builtin_non_tx_store.
11869 2013-10-04 Jeff Law <law@redhat.com>
11871 * tree-ssa-threadedge.c: Fix some trailing whitespace problems.
11873 * tree-ssa-threadedge.c (thread_through_normal_block): Broken
11875 (thread_across_edge): Here. Call it.
11877 2013-10-04 Cary Coutant <ccoutant@google.com>
11879 * dwarf2out.c (dw_sra_loc_expr): Release addr_table entries when
11880 discarding a location list expression (or a piece of one).
11882 2013-10-03 Jan Hubicka <jh@suse.cz>
11884 * config/i386/i386.c (ix86_issue_rate): Pentium4, Nocona has issue
11885 rate of 2. Core2, Corei7 and Haswell has issue rate of 4.
11886 (ix86_adjust_cost): Remove Atom case; fix core2/corei7/Haswell case.
11888 2013-10-03 Jan Hubicka <jh@suse.cz>
11890 * config/i386/i386.c (ix86_option_override_internal): Do not enable
11891 accumulate-outgoing-args when producing unwind info.
11893 2013-10-03 Wei Mi <wmi@google.com>
11895 * lra-constraints.c (insert_move_for_subreg): New function
11896 extracted from simplify_operand_subreg.
11897 (simplify_operand_subreg): Add reload for paradoxical subreg.
11899 2013-10-03 Rong Xu <xur@google.com>
11901 * ipa-inline-analysis.c (find_foldable_builtin_expect): Find
11902 the candidate of builtin_expect such that we should fix the
11903 size/time estimation.
11904 (estimate_function_body_sizes): Do the acutally size/time fix-up
11905 for builtin_expect.
11907 2013-10-03 Rong Xu <xur@google.com>
11909 * predict.c (tree_predict_by_opcode): Get the probability
11910 for builtin_expect from param builtin_expect_probability.
11911 * params.def (BUILTIN_EXPECT_PROBABILITY): New parameter.
11912 * predict.def (PRED_BUILTIN_EXPECT_RELAXED): Fix comments.
11913 * doc/invoke.texi: Add documentation for builtin-expect-probability.
11915 2013-10-03 Marc Glisse <marc.glisse@inria.fr>
11918 * common.opt (fcheck-new): Moved from c.opt. Make it 'Common'.
11919 * calls.c (alloca_call_p): Use get_callee_fndecl.
11920 * fold-const.c (tree_expr_nonzero_warnv_p): Handle operator new.
11921 * tree-vrp.c (gimple_stmt_nonzero_warnv_p, stmt_interesting_for_vrp):
11923 (vrp_visit_stmt): Remove duplicated code.
11925 2013-10-03 Michael Meissner <meissner@linux.vnet.ibm.com>
11927 * config/rs6000/rs6000-builtin.def (XSRDPIM): Use floatdf2,
11928 ceildf2, btruncdf2, instead of vsx_* name.
11930 * config/rs6000/vsx.md (vsx_add<mode>3): Change arithmetic
11931 iterators to only do V2DF and V4SF here. Move the DF code to
11932 rs6000.md where it is combined with SF mode. Replace <VSv> with
11933 just 'v' since only vector operations are handled with these insns
11934 after moving the DF support to rs6000.md.
11935 (vsx_sub<mode>3): Likewise.
11936 (vsx_mul<mode>3): Likewise.
11937 (vsx_div<mode>3): Likewise.
11938 (vsx_fre<mode>2): Likewise.
11939 (vsx_neg<mode>2): Likewise.
11940 (vsx_abs<mode>2): Likewise.
11941 (vsx_nabs<mode>2): Likewise.
11942 (vsx_smax<mode>3): Likewise.
11943 (vsx_smin<mode>3): Likewise.
11944 (vsx_sqrt<mode>2): Likewise.
11945 (vsx_rsqrte<mode>2): Likewise.
11946 (vsx_fms<mode>4): Likewise.
11947 (vsx_nfma<mode>4): Likewise.
11948 (vsx_copysign<mode>3): Likewise.
11949 (vsx_btrunc<mode>2): Likewise.
11950 (vsx_floor<mode>2): Likewise.
11951 (vsx_ceil<mode>2): Likewise.
11952 (vsx_smaxsf3): Delete scalar ops that were moved to rs6000.md.
11953 (vsx_sminsf3): Likewise.
11954 (vsx_fmadf4): Likewise.
11955 (vsx_fmsdf4): Likewise.
11956 (vsx_nfmadf4): Likewise.
11957 (vsx_nfmsdf4): Likewise.
11958 (vsx_cmpdf_internal1): Likewise.
11960 * config/rs6000/rs6000.h (TARGET_SF_SPE): Define macros to make it
11961 simpler to select whether a target has SPE or traditional floating
11962 point support in iterators.
11963 (TARGET_DF_SPE): Likewise.
11964 (TARGET_SF_FPR): Likewise.
11965 (TARGET_DF_FPR): Likewise.
11966 (TARGET_SF_INSN): Macros to say whether floating point support
11967 exists for a given operation for expanders.
11968 (TARGET_DF_INSN): Likewise.
11970 * config/rs6000/rs6000.c (Ftrad): New mode attributes to allow
11971 combining of SF/DF mode operations, using both traditional and VSX
11979 (abs<mode>2): Combine SF/DF modes using traditional floating point
11980 instructions. Add support for using the upper DF registers with
11981 VSX support, and SF registers with power8-vector support. Update
11982 expanders for operations supported by both the SPE and traditional
11983 floating point units.
11984 (abs<mode>2_fpr): Likewise.
11985 (nabs<mode>2): Likewise.
11986 (nabs<mode>2_fpr): Likewise.
11987 (neg<mode>2): Likewise.
11988 (neg<mode>2_fpr): Likewise.
11989 (add<mode>3): Likewise.
11990 (add<mode>3_fpr): Likewise.
11991 (sub<mode>3): Likewise.
11992 (sub<mode>3_fpr): Likewise.
11993 (mul<mode>3): Likewise.
11994 (mul<mode>3_fpr): Likewise.
11995 (div<mode>3): Likewise.
11996 (div<mode>3_fpr): Likewise.
11997 (sqrt<mode>3): Likewise.
11998 (sqrt<mode>3_fpr): Likewise.
11999 (fre<Fs>): Likewise.
12000 (rsqrt<mode>2): Likewise.
12001 (cmp<mode>_fpr): Likewise.
12002 (smax<mode>3): Likewise.
12003 (smin<mode>3): Likewise.
12004 (smax<mode>3_vsx): Likewise.
12005 (smin<mode>3_vsx): Likewise.
12006 (negsf2): Delete SF operations that are merged with DF.
12007 (abssf2): Likewise.
12008 (addsf3): Likewise.
12009 (subsf3): Likewise.
12010 (mulsf3): Likewise.
12011 (divsf3): Likewise.
12013 (fmasf4_fpr): Likewise.
12014 (fmssf4_fpr): Likewise.
12015 (nfmasf4_fpr): Likewise.
12016 (nfmssf4_fpr): Likewise.
12017 (sqrtsf2): Likewise.
12018 (rsqrtsf_internal1): Likewise.
12019 (smaxsf3): Likewise.
12020 (sminsf3): Likewise.
12021 (cmpsf_internal1): Likewise.
12022 (copysign<mode>3_fcpsgn): Add VSX/power8-vector support.
12023 (negdf2): Delete DF operations that are merged with SF.
12024 (absdf2): Likewise.
12025 (nabsdf2): Likewise.
12026 (adddf3): Likewise.
12027 (subdf3): Likewise.
12028 (muldf3): Likewise.
12029 (divdf3): Likewise.
12031 (rsqrtdf_internal1): Likewise.
12032 (fmadf4_fpr): Likewise.
12033 (fmsdf4_fpr): Likewise.
12034 (nfmadf4_fpr): Likewise.
12035 (nfmsdf4_fpr): Likewise.
12036 (sqrtdf2): Likewise.
12037 (smaxdf3): Likewise.
12038 (smindf3): Likewise.
12039 (cmpdf_internal1): Likewise.
12040 (lrint<mode>di2): Use TARGET_<MODE>_FPR macro.
12041 (btrunc<mode>2): Delete separate expander, and combine with the
12042 insn and add VSX instruction support. Use TARGET_<MODE>_FPR.
12043 (btrunc<mode>2_fpr): Likewise.
12044 (ceil<mode>2): Likewise.
12045 (ceil<mode>2_fpr): Likewise.
12046 (floor<mode>2): Likewise.
12047 (floor<mode>2_fpr): Likewise.
12048 (fma<mode>4_fpr): Combine SF and DF fused multiply/add support.
12049 Add support for using the upper registers with VSX and
12050 power8-vector. Move insns to be closer to the define_expands. On
12051 VSX systems, prefer the traditional form of FMA over the VSX
12052 version, since the traditional form allows the target not to
12053 overlap with the inputs.
12054 (fms<mode>4_fpr): Likewise.
12055 (nfma<mode>4_fpr): Likewise.
12056 (nfms<mode>4_fpr): Likewise.
12058 2013-10-03 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
12059 Richard Earnshaw <richard.earnshaw@arm.com>
12061 * config/arm/aarch-common-protos.h (struct alu_cost_table): New.
12062 (struct mult_cost_table): Likewise.
12063 (struct mem_cost_table): Likewise.
12064 (struct fp_cost_table): Likewise.
12065 (struct vector_cost_table): Likewise.
12066 (cpu_cost_table): Likewise.
12067 * config/arm/arm.opt (mold-rts-costs): New option.
12068 (mnew-generic-costs): Likewise.
12069 * config/arm/arm.c (generic_extra_costs): New table.
12070 (cortexa15_extra_costs): Likewise.
12071 (arm_slowmul_tune): Use NULL as new costs.
12072 (arm_fastmul_tune): Likewise.
12073 (arm_strongarm_tune): Likewise.
12074 (arm_xscale_tune): Likewise.
12075 (arm_9e_tune): Likewise.
12076 (arm_v6t2_tune): Likewise.
12077 (arm_cortex_a5_tune): Likewise.
12078 (arm_cortex_a9_tune): Likewise.
12079 (arm_v6m_tune): Likewise.
12080 (arm_fa726te_tune): Likewise.
12081 (arm_cortex_a15_tune): Use cortex15_extra_costs.
12082 (arm_cortex_tune): Use generict_extra_costs.
12083 (shifter_op_p): New function.
12084 (arm_unspec_cost): Likewise.
12085 (LIBCALL_COST): Define.
12086 (arm_new_rtx_costs): New function.
12087 (arm_rtx_costs): Use arm_new_rtx_costs when core-specific
12088 table is available. Use old costs otherwise unless mnew-generic-costs
12090 * config/arm/arm-protos.h (tune_params): Add insn_extra_cost field.
12091 (cpu_cost_table): Declare.
12093 2013-10-03 Marcus Shawcroft <marcus.shawcroft@arm.com>
12096 * config/aarch64/aarch64.md (*adds_mul_imm_<mode>)
12097 (*subs_mul_imm_<mode>)
12098 (*add_<shift>_<mode>, *add_<shift>_si_uxtw,*add_mul_imm_<mode>)
12099 (*sub_<shift>_<mode>)
12100 (*sub_<shift>_si_uxtw,*sub_mul_imm_<mode>, *sub_mul_imm_si_uxtw):
12101 Remove k constraint.
12103 2013-10-03 Ian Bolton <ian.bolton@arm.com>
12105 * config/aarch64/aarch64.c (aarch64_secondary_reload): Remove legacy
12107 * config/aarch64/aarch64.md (reload_sp_immediate): Likewise.
12109 2013-10-02 Teresa Johnson <tejohnson@google.com>
12111 * predict.c (probably_never_executed): New function.
12112 (probably_never_executed_bb_p): Invoke probably_never_executed.
12113 (probably_never_executed_edge_p): Ditto.
12114 * bb-reorder.c (find_rarely_executed_basic_blocks_and_crossing_edges):
12115 Treat profile insanities conservatively.
12117 2013-10-02 John David Anglin <danglin@gcc.gnu.org>
12119 * config.gcc (hppa*64*-*-linux*): Don't add pa/t-linux to tmake_file.
12121 2013-10-02 Vladimir Makarov <vmakarov@redhat.com>
12123 * lra-constraints.c (process_alt_operand): Calculate scratch_p and
12124 use it. Use smaller increase for scratch. Don't increase reject
12125 for early clobber scratch.
12126 * lra-eliminations.c (eliminate_regs_in_insn): Remove all insns
12127 setting eliminated regs except setting fp from hfp.
12128 (lra_eliminate): Check lra_insn_recog_data on NULL.
12130 2013-10-02 Michael Meissner <meissner@linux.vnet.ibm.com>
12133 * config/rs6000/rs6000-cpus.def (ISA_2_6_MASKS_SERVER): Turn off
12134 setting -mvsx-timode by default until the underlying problem is fixed.
12135 (RS6000_CPU, power7 defaults): Likewise.
12137 2013-10-02 Uros Bizjak <ubizjak@gmail.com>
12139 * config/x-linux (host-linux.o): Remove header dependencies.
12140 Use $(COMPILE) and $(POSTCOMPILE).
12141 * config/t-linux-android (linux-android.o): Ditto.
12143 2013-10-02 Uros Bizjak <ubizjak@gmail.com>
12145 * Makefile.in (expmed.o-warn): Remove.
12147 2013-10-02 Andrew MacLeod <amacleod@redhat.com>
12149 * graphite-scop-detection.c: Include tree-ssa-propagate,h.
12150 * graphite-sese-to-poly.c: Include tree-ssa-propagate.h.
12152 2013-10-02 Teresa Johnson <tejohnson@google.com>
12154 * dojump.c (do_jump_1): Divide probability between
12155 both conditions of a TRUTH_ANDIF_EXPR/TRUTH_ORIF_EXPR.
12157 2013-10-02 Tom Tromey <tromey@redhat.com>
12159 * Makefile.in (DRIVER_DEFINES): Use $(if), not $(and).
12161 2013-10-02 Andrew MacLeod <amacleod@redhat.com>
12163 * tree-flow.h: Remove some prototypes.
12164 * tree-ssa-dce.c (mark_virtual_operand_for_renaming,
12165 mark_virtual_phi_result_for_renaming): Move to tree-into-ssa.c.
12166 * tree-into-ssa.c (mark_virtual_operand_for_renaming,
12167 mark_virtual_phi_result_for_renaming): Relocate here.
12168 * tree-into-ssa.h: Add prototypes.
12169 * tree-ssa-phiopt.c: (tree_ssa_phiopt_worker) Use
12170 single_pred_before_succ_order.
12171 (blocks_in_phiopt_order): Rename and move to cfganal.c.
12172 (nonfreeing_call_p) Move to gimple.c.
12173 * cfganal.c (single_pred_before_succ_order): Move and renamed from
12175 * basic-block.h (single_pred_before_succ_order): Add prototype.
12176 * gimple.c (nonfreeing_call_p): Relocate here.
12177 * gimple.h: Add prototype.
12178 * tree-ssa-ifcombine.c: Include tree-ssa-phiopt.h.
12179 * tree-ssa-dom.h: New file. Relocate prototypes here.
12180 * tree-ssa.h: Include tree-ssa-dom.h.
12182 2013-10-02 Uros Bizjak <ubizjak@gmail.com>
12184 * config/i386/x-i386 (driver-i386.o): Remove header dependencies.
12185 Use $(COMPILE) and $(POSTCOMPILE).
12187 * config/alpha/x-alpha (driver-alpha.o): Ditto.
12189 2013-10-02 Andrew MacLeod <amacleod@redhat.com>
12191 * tree-flow.h: Remove some prototypes.
12192 * gimple-fold.h: Add prototypes from gimple.h and tree-flow.h.
12193 * tree-ssa-propagate.h: Relocate prototypes from tree-flow.h.
12194 * tree-ssa-copy.c (may_propagate*, propagate_value, replace_exp,
12195 propagate_tree_value*): Move from here to...
12196 * tree-ssa-propagate.c (may_propagate*, propagate_value, replace_exp,
12197 propagate_tree_value*): Relocate here.
12198 * tree-ssa-propagate.h: Relocate prototypes from tree-flow.h.
12199 * gimple.h: Include gimple-fold.h, move prototypes into gimple-fold.h.
12200 * gimple-fold.c: Remove gimple-fold.h from include list.
12201 * tree-vrp.c: Remove gimple-fold.h from include list.
12202 * tree-ssa-sccvn.c: Remove gimple-fold.h from include list.
12203 * tree-ssa-ccp.c: Remove gimple-fold.h from include list.
12204 * tree-scalar-evolution.c: Add tree-ssa-propagate.h to include list.
12205 * tree-ssa-pre.c: Add tree-ssa-propagate.h to include list.
12206 * sese.c: Add tree-ssa-propagate.h to include list.
12208 2013-10-02 Richard Biener <rguenther@suse.de>
12210 * tree-loop-distribution.c: Include tree-vectorizer.h for
12211 find_loop_location.
12212 (enum partition_kind): Remove PKIND_REDUCTION.
12213 (struct partition_s): Remove has_writes member, add reduction_p member.
12214 (partition_alloc): Adjust.
12215 (partition_builtin_p): Likewise.
12216 (partition_has_writes): Remove.
12217 (partition_reduction_p): New function.
12218 (partition_merge_into): Likewise.
12219 (generate_code_for_partition): Commonize builtin partition
12221 (rdg_cannot_recompute_vertex_p): Remove.
12222 (already_processed_vertex_p): Likewise.
12223 (rdg_flag_vertex): Do not set has_writes.
12224 (classify_partition): Adjust.
12225 (rdg_build_partitions): Do not set has_writes, treat all
12226 partitions as useful.
12227 (distribute_loop): Record number of library calls generated. Adjust.
12228 (tree_loop_distribution): Report number of loops and library
12229 calls generated as opt-info.
12231 2013-10-02 Andrew MacLeod <amacleod@redhat.com>
12233 * tree-flow.h: Include new .h files. Move prototypes.
12234 * tree-cfgcleanup.h: New file. Add prototypes from tree-flow.h.
12235 * tree-dfa.h: New File. Add prototypes from tree-flow.h.
12236 (get_addr_base_and_unit_offset_1) Move from tree-flow-inline.h.
12237 * tree-pretty-print.h: Add prototypes from tree-flow.h.
12238 * tree-into-ssa.h: New File. Add prototypes from tree-flow.h.
12239 ({debug|dump}*): Move debugging prototypes out of tree-into-ssa.c.
12240 * tree-into-ssa.c ({debug|dump}*): Move prototypes to header file.
12241 * tree.h (get_ref_base_and_extent): Move prototype out.
12242 * tree-flow-inline.h (get_addr_base_and_unit_offset_1): Move to
12244 * gimple-low.h: New File. Add prototypes from tree-flow.h.
12245 * gimple-low.c (try_catch_may_fallthru, block_may_fallthru): Move to...
12246 * tree.c (try_catch_may_fallthru, block_may_fallthru): Here.
12247 * tree-scalar-evolution.c: Include tree.h.
12248 * sese.c: Include tree.h.
12249 * dumpfile.c: Move gimple-pretty-print.h include after tree.h.
12250 * dwarf2out.c: Include tree-dfa.h.
12251 * tree-chrec.c: Include tree.h.
12252 * tree-data-ref.c: Include tree.h.
12254 2013-10-02 Yufeng Zhang <yufeng.zhang@arm.com>
12256 * gimple-ssa-strength-reduction.c (backtrace_base_for_ref):
12259 2013-10-02 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
12261 * config/t-sol2 (sol2-c.o): Remove header dependencies.
12262 Use $(COMPILE) and $(POSTCOMPILE).
12263 (sol2-cxx.o): Likewise.
12264 (sol2-stubs.o): Likewise.
12265 (sol2.o): Likewise.
12266 * config/x-solaris (host-solaris.o): Likewise.
12268 * config/sparc/t-sparc (sparc.o): Remove.
12269 (sparc-c.o): Remove header dependencies.
12270 Use $(COMPILE) and $(POSTCOMPILE).
12271 * config/sparc/x-sparc: Likewise.
12273 2013-10-02 Joern Rennecke <joern.rennecke@embecosm.com>
12275 * config/arc/arc-opts.h: Add 2013 to Copyright years.
12276 * config/arc/arc700.md: Likewise.
12277 * config/arc/arc-modes.def: Likewise.
12278 * config/arc/arc-simd.h: Likewise.
12279 * config/arc/t-arc-uClibc: Likewise.
12280 * config/arc/t-arc-newlib: Likewise.
12282 2013-10-02 Renlin Li <renlin.li@arm.com>
12284 * config/aarch64/aarch64.c (aarch64_expand_prologue): Use
12286 (aarch64_expand_epilogue): Likewise.
12288 2013-10-02 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
12289 Yufeng Zhang <yufeng.zhang@arm.com>
12291 * gimple-ssa-strength-reduction.c (legal_cast_p_1): Forward
12293 (backtrace_base_for_ref): Call get_unwidened with 'base_in' if
12294 'base_in' represent a conversion and legal_cast_p_1 holds; set
12295 'base_in' with the returned value from get_unwidened.
12297 2013-10-02 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
12299 * config/arm/arm.c (arm_legitimize_reload_address): Explain why
12300 plus_constant is not used.
12302 2013-10-01 Wei Mi <wmi@google.com>
12304 * config/i386/x86-tune.def (DEF_TUNE): Remove m_CORE_ALL.
12305 * config/i386/i386.md: Add define_peephole2 to
12306 break partial reg stall for cvtss2sd/cvtsd2ss.
12308 2013-10-01 Joern Rennecke <joern.rennecke@embecosm.com>
12310 * config/arc/arc.c (pass_arc_ifcvt::clone):
12311 Update for ctxt_ -> m_ctxt change.
12313 2013-10-01 Jeff Law <law@redhat.com>
12315 * tree-ssa-threadupdate.c (struct redirection_data): Delete
12316 outgoing_edge and intermediate_edge fields. Instead store the path.
12317 (redirection_data::hash): Hash on the last edge's destination index.
12318 (redirection_data::equal): Check the entire thread path.
12319 (lookup_redirectio_data): Corresponding changes.
12320 (create_edge_and_update_destination_phis): Likewise.
12321 (thread_single_edge): Likewise.
12323 2013-10-01 Joern Rennecke <joern.rennecke@embecosm.com>
12324 Diego Novillo <dnovillo@google.com>
12326 * config/arc/simdext.md (UNSPEC_ARC_SIMD_VLD32WH): Delete.
12327 (UNSPEC_ARC_SIMD_VLD32WL): Likewise.
12328 (vld32wh_insn, vld32wl_insn): Delete commented-out old
12329 versions of these patterns.
12331 * doc/extend.texi (long_call/medium_call/short_call): Typo fix.
12332 (__builtin_arc_aligned): Likewise.
12334 * config/arc/arc.md: Expand adc_0 comment stating the intended
12335 purpose and why it isn't ready.
12336 Replace commented out call_value_via_label_mixed with a
12337 plain comment about bl_s.
12339 * config/arc/arc.c (stdio.h): Don't include directly.
12340 (arc_expand_epilogue): Remove [0]: Remove fp_restored_p.
12341 Remove if (1) condition.
12342 (arc_encode_section_info): Fix comment.
12344 2013-10-01 Joern Rennecke <joern.rennecke@embecosm.com>
12346 * config/arc/arc.c (arc_conditional_register_usage):
12347 Use ARC_FIRST_SIMD_VR_REG / ARC_LAST_SIMD_VR_REG.
12348 Also set reg_alloc_order for DMA config regs.
12350 2013-10-01 Joern Rennecke <joern.rennecke@embecosm.com>
12351 Jeremy Bennett <jeremy.bennett@embecosm.com>
12353 * doc/install.texi (--with-cpu): Mention ARC.
12354 (arc-*-elf32): New paragraph.
12355 (arc-linux-uclibc): Likewise.
12356 * doc/md.texi (Machine Constraints): Add ARC part.
12357 * doc/invoke.texi: (menu): Add ARC Options.
12358 (Machine Dependent Options) <ARC Options>: Add synopsis.
12359 (node ARC Options): Add.
12360 * doc/extend.texi (long_call / short_call attribute): Add ARC.
12361 (ARC Built-in Functions): New section defining
12362 generic ARC built-in functions.
12363 (ARC SIMD Built-in Functions): New section defining SIMD specific
12364 built-in functions.
12365 (Declaring Attributes of Functions): Extended
12366 description of short_call and long_call attributes for ARC and
12367 added index entries.
12369 2013-10-01 Saurabh Verma <saurabh.verma@codito.com>
12370 Ramana Radhakrishnan <ramana.radhakrishnan@codito.com>
12371 Joern Rennecke <joern.rennecke@embecosm.com>
12372 Muhammad Khurram Riaz <khurram.riaz@arc.com>
12373 Brendan Kehoe <brendan@zen.org>
12374 Michael Eager <eager@eagercon.com>
12375 Simon Cook <simon.cook@embecosm.com>
12376 Jeremy Bennett <jeremy.bennett@embecosm.com>
12378 * config/arc, common/config/arc: New directories.
12380 2013-10-01 Joern Rennecke <joern.rennecke@embecosm.com>
12381 Brendan Kehoe <brendan@zen.org>
12382 Simon Cook <simon.cook@embecosm.com>
12384 * config.gcc (arc*-*-elf*, arc*-*-linux-uclibc*): New configurations.
12386 2013-10-01 Andrew MacLeod <amacleod@redhat.com>
12388 * tree-ssa-live.h (coalesce_ssa_name): Move Prototype to...
12389 * tree-ssa-coalesce.h: New. Move prototype to here.
12390 * tree-outof-ssa.h: Include tree-ssa-coalesce.h.
12391 * tree-ssa-coalesce.c: Include tree-outof-ssa.h.
12392 (gimple_can_coalesce_p): Move to...
12393 * gimple.c (gimple_can_coalesce_p): Here.
12395 2013-10-01 Andrew MacLeod <amacleod@redhat.com>
12397 * tree-into-ssa.c (enum need_phi_state): Relocate from tree-flow.h.
12398 (dump_decl_set): Move to gimple.c.
12399 * gimple.h: Don't include tree-ssa-operands.h.
12400 (dump_decl_set): Add prototype.
12401 (gimple_vuse_op, gimple_vdef_op, update_stmt, update_stmt_if_modified):
12402 Move to gimple-ssa.h.
12403 (phi_ssa_name_p, phi_nodes, phi_nodes_ptr, gimple_phi_arg_def,
12404 gimple_phi_arg_def_ptr, gimple_phi_arg_edge, gimple_phi_arg_location,
12405 gimple_phi_arg_location_from_edge, gimple_phi_arg_set_location,
12406 gimple_phi_arg_has_location): Relocate from tree-flow-inline.h
12407 * gimple.c (walk_stmt_load_store_ops): Use gimple_phi_arg_def rather
12409 (dump_decl_set): Relocate here.
12410 * gimple-ssa.h: New file.
12411 (gimple_vuse_op, gimple_vdef_op, update_stmt, update_stmt_if_modified):
12412 Relocate from gimple.h.
12413 * tree-cfg.c (has_zero_uses_1, single_imm_use_1): Move to...
12414 * tree-ssa-operands.c (swap_ssa_operands): Rename from
12415 swap_tree_operands and remove non-ssa path.
12416 (has_zero_uses_1, single_imm_use_1): Relocate from tree-cfg.c.
12417 * tree-ssa-reassoc.c (linearize_expr_tree, repropagate_negates): Use
12419 * tree-vect-loop.c (destroy_loop_vec_info, vect_is_slp_reduction,
12420 vect_is_simple_reduction_1): Use swap_ssa_operands.
12421 * tree-flow.h: Move various prototypes to tree-phinodes.h.
12422 (enum need_phi_state): Move to tree-into-ssa.c.
12423 (struct immediate_use_iterator_d, FOR_EACH_IMM_*,
12424 BREAK_FROM_IMM_USE_STMT): Move to ssa-iterators.h.
12425 (swap_tree_operands): Rename and move prototype to tree-ssa-operands.h.
12426 * tree-flow-inline.h (delink_imm_use, link_imm_use_to_list,
12427 link_imm_use, set_ssa_use_from_ptr, link_imm_use_stmt, relink_imm_use,
12428 relink_imm_use_stmt, end_readonly_imm_use_p, first_readonly_imm_use,
12429 next_readonly_imm_use, has_zero_uses, has_single_use, single_imm_use,
12430 num_imm_uses): Move to ssa-iterators.h.
12431 (get_use_from_ptr, get_def_from_ptr): Move to tree-ssa-operands.h
12432 (gimple_phi_arg_imm_use_ptr, phi_arg_index_from_use): Move to
12434 (op_iter_done, op_iter_next_def, op_iter_next_tree,
12435 clear_and_done_ssa_iter, op_iter_init, op_iter_init_use,
12436 op_iter_init_def, op_iter_init_tree, single_ssa_tree_operand,
12437 single_ssa_use_operand, single_ssa_def_operand, zero_ssa_operands,
12438 num_ssa_operands, delink_stmt_imm_use, single_phi_def,
12439 op_iter_init_phiuse, op_iter_init_phidef, end_imm_use_stmt_p,
12440 end_imm_use_stmt_traverse, move_use_after_head, link_use_stmts_after,
12441 first_imm_use_stmt, next_imm_use_stmt, first_imm_use_on_stmt,
12442 end_imm_use_on_stmt_p, next_imm_use_on_stmt): Move to ssa-iterators.h.
12443 (gimple_phi_arg_def, gimple_phi_arg_def_ptr, gimple_phi_arg_edge,
12444 gimple_phi_arg_location, gimple_phi_arg_location_from_edge,
12445 gimple_phi_arg_set_location, gimple_phi_arg_has_location, phi_nodes,
12446 phi_nodes_ptr, phi_ssa_name_p): Move to gimple.h.
12447 (set_phi_nodes): Move to tree-phinodes.h.
12448 * tree-ssa-operands.h (enum ssa_op_iter_type,
12449 struct ssa_operand_iterator_d, SSA_OP*, FOR_EACH_SSA*, SINGLE_SSA*,
12450 ZERO_SSA_OPERANDS, NUM_SSA_OPERANDS): Move to ssa-iterators.h.
12451 (dump_decl_set): Remove prototype.
12452 (get_use_from_ptr, get_def_from_ptr): Relocate from tree-flow.h.
12453 * tree-phinodes.h: New file. Move some prototypes from tree-flow.h.
12454 (set_phi_nodes): Relocate from tree-flow-inline.h.
12455 (gimple_phi_arg_imm_use_ptr, phi_arg_index_from_use): Relocate from
12457 * tree-ssa.h: Add tree-phinodes.h, gimple-ssa.h, ssa-iterators.h to
12458 include list. Temporarily add gimple.h to include list.
12459 * ssa-iterators.h: New file.
12460 (struct immediate_use_iterator_d, FOR_EACH_IMM_*,
12461 BREAK_FROM_IMM_USE_STMT): Relocate from tree-flow.h.
12462 (enum ssa_op_iter_type, struct ssa_operand_iterator_d, SSA_OP*,
12463 FOR_EACH_SSA*, SINGLE_SSA*, ZERO_SSA_OPERANDS, NUM_SSA_OPERANDS):
12464 Relocate from tree-ssa-operands.h.
12465 (delink_imm_use, link_imm_use_to_list, link_imm_use,
12466 set_ssa_use_from_ptr, link_imm_use_stmt, relink_imm_use,
12467 relink_imm_use_stmt, end_readonly_imm_use_p, first_readonly_imm_use,
12468 next_readonly_imm_use, has_zero_uses, has_single_use, single_imm_use,
12469 num_imm_uses, get_use_from_ptr, get_def_from_ptr,
12470 phi_arg_index_from_use, op_iter_done, op_iter_next_def,
12471 op_iter_next_tree, clear_and_done_ssa_iter, op_iter_init,
12472 op_iter_init_use, op_iter_init_def, op_iter_init_tree,
12473 single_ssa_tree_operand, single_ssa_use_operand, single_ssa_def_operand,
12474 zero_ssa_operands, num_ssa_operands, delink_stmt_imm_use,
12475 single_phi_def, op_iter_init_phiuse, op_iter_init_phidef,
12476 end_imm_use_stmt_p, end_imm_use_stmt_traverse, move_use_after_head,
12477 link_use_stmts_after, first_imm_use_stmt, next_imm_use_stmt,
12478 first_imm_use_on_stmt, end_imm_use_on_stmt_p, next_imm_use_on_stmt):
12479 Relocate from tree-flow-inline.h.
12480 * tree-outof-ssa.h: Change _SSAEXPAND_H macro to GCC_TREE_OUTOF_SSA_H.
12482 2013-10-01 Vidya Praveen <vidyapraveen@arm.com>
12485 (aarch64_<ANY_EXTEND:su><ADDSUB:optab>l2<mode>_internal): Rename to ...
12486 (aarch64_<ANY_EXTEND:su><ADDSUB:optab>l<mode>_hi_internal): ... this;
12487 Insert '\t' to output template.
12488 (aarch64_<ANY_EXTEND:su><ADDSUB:optab>l<mode>_lo_internal): New.
12489 (aarch64_saddl2<mode>, aarch64_uaddl2<mode>): Modify to call
12490 gen_aarch64_<ANY_EXTEND:su><ADDSUB:optab>l<mode>_hi_internal() instead.
12491 (aarch64_ssubl2<mode>, aarch64_usubl2<mode>): Ditto.
12493 2013-10-01 Uros Bizjak <ubizjak@gmail.com>
12495 * doc/install.texi (Host/target specific installation notes for GCC):
12496 Put @anchor before @heading.
12497 * doc/gcc.texi (titlepage): Use @uref and http:// prefix for website.
12498 Use @email for email addresses.
12500 2013-10-01 Jeff Law <law@redhat.com>
12502 * tree-ssa-threadedge.c (thread_across_edge): Make path a pointer to
12503 a vec. Only delete the path if we create one without successfully
12504 registering a jump thread.
12505 * tree-ssa-threadupdate.h (register_jump_thread): Pass in path vector
12507 * tree-ssa-threadupdate.c (threaded_edges): Remove. No longer used
12508 (paths): New vector of jump threading paths.
12509 (THREAD_TARGET, THREAD_TARGET2): Remove accessor macros.
12510 (THREAD_PATH): New accessor macro for the entire thread path.
12511 (lookup_redirection_data): Get intermediate and final outgoing edge
12512 from the thread path.
12513 (create_edge_and_update_destination_phis): Copy the threading path.
12514 (ssa_fix_duplicate_block_edges): Get edges and block types from the
12515 jump threading path.
12516 (ssa_redirect_edges): Get edges and block types from the jump threading
12517 path. Free the path vector.
12518 (thread_block): Get edges from the jump threading path. Look at the
12519 entire path to see if we thread to a loop exit. If we cancel a jump
12520 thread request, then free the path vector.
12521 (thread_single_edge): Get edges and block types from the jump threading
12522 path. Free the path vector.
12523 (thread_through_loop_header): Get edges and block types from the jump
12524 threading path. Free the path vector.
12525 (mark_threaded_blocks): Iterate over the vector of paths and store
12526 the path on the appropriate edge. Get edges and block types from the
12527 jump threading path.
12528 (mark_threaded_blocks): Get edges and block types from the jump
12529 threading path. Free the path vector.
12530 (thread_through_all_blocks): Use the vector of paths rather than
12531 a vector of 3-edge sets.
12532 (register_jump_thread): Accept pointer to a path vector rather
12533 than the path vector itself. Store the path vector for later use.
12536 2013-10-01 Jakub Jelinek <jakub@redhat.com>
12537 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
12540 * config/s390/s390.c (s390_split_branches): Modify check for table
12542 (s390_chunkify_start): Rearrange table jump insn check in order to
12543 deal with compare and branch insns correctly.
12545 2013-10-01 Kugan Vivekanandarajah <kuganv@linaro.org>
12549 2013-04-05 Greta Yorsh <Greta.Yorsh@arm.com>
12550 * config/arm/arm.md (arm_ashldi3_1bit): define_insn into
12551 define_insn_and_split.
12552 (arm_ashrdi3_1bit,arm_lshrdi3_1bit): Likewise.
12553 (shiftsi3_compare): New pattern.
12554 (rrx): New pattern.
12555 * config/arm/unspecs.md (UNSPEC_RRX): New.
12557 2013-10-01 Alan Modra <amodra@gmail.com>
12559 * stmt.c (expand_asm_operands): Revert part of 2013-09-24 special
12560 casing inout operands.
12562 2013-10-01 Richard Biener <rguenther@suse.de>
12564 PR tree-optimization/58553
12565 * tree-loop-distribution.c (struct partition_s): Add niter member.
12566 (classify_partition): Populate niter member for the partition
12567 and properly identify whether the relevant store happens before
12568 or after the loop exit.
12569 (generate_memset_builtin): Use niter member from the partition.
12570 (generate_memcpy_builtin): Likewise.
12572 2013-09-30 Richard Sandiford <rdsandiford@googlemail.com>
12574 * vec.h (vec_prefix, vec): Prefix member names with "m_".
12575 * vec.c (vec_prefix::calculate_allocation): Update accordingly.
12577 2013-09-30 Richard Sandiford <rdsandiford@googlemail.com>
12579 * basic-block.h (edge_list): Prefix member names with "m_".
12580 * context.h (context): Likewise.
12581 * domwalk.h (dom_walker): Likewise.
12582 * gengtype-state.c (s_expr_writer, state_writer): Likewise.
12583 * graphite-sese-to-poly.c (sese_dom_walker): Likewise.
12584 * hash-table.h (hash_table): Likewise.
12585 * machmode.h (bit_field_mode_iterator): Likewise.
12586 * pass_manager.h (pass_list): Likewise.
12587 * tree-into-ssa.c (mark_def_dom_walker): Likewise.
12588 * tree-pass.h (pass_data): Likewise.
12589 * tree-ssa-dom.c (dom_opt_dom_walker): Likewise.
12590 * tree-ssa-phiopt.c (nontrapping_dom_walker): Likewise,
12591 * tree-ssa-uncprop.c (uncprop_dom_walker): Likewise.
12592 * asan.c (pass_data_asan): Update accordingly.
12593 * cfganal.c (control_dependences::find_control_dependence): Likewise.
12594 (control_dependences::control_dependences): Likewise.
12595 (control_dependences::~control_dependences): Likewise.
12596 (control_dependences::~control_dependences): Likewise.
12597 (control_dependences::get_edges_dependent_on): Likewise.
12598 * cgraphbuild.c (pass_data_rebuild_cgraph_edges::clone): Likewise.
12599 (pass_data_remove_cgraph_callee_edges::clone): Likewise.
12600 * context.c (gcc::context::context): Likewise.
12601 * cprop.c (pass_rtl_cprop::clone): Likewise.
12602 * domwalk.c (dom_walker::walk): Likewise.
12603 * ipa-inline-analysis.c (pass_inline_parameters::clone): Likewise.
12604 * ipa-pure-const.c (pass_local_pure_const::clone): Likewise.
12605 * mode-switching.c (pass_mode_switching::clone): Likewise.
12606 * passes.c (opt_pass::opt_pass): Likewise.
12607 (pass_manager::pass_manager): Likewise.
12608 * predict.c (pass_strip_predict_hints::clone): Likewise.
12609 * recog.c (pass_data pass_data_peephole2::clone): Likewise.
12610 (pass_split_all_insns::clone): Likewise.
12611 * stor-layout.c (bit_field_mode_iterator::bit_field_mode_iterator):
12613 (bit_field_mode_iterator::next_mode): Likewise.
12614 (bit_field_mode_iterator::prefer_smaller_modes): Likewise.
12615 * tree-cfg.c (pass_split_crit_edges::clone): Likewise.
12616 * tree-cfgcleanup.c (pass_merge_phi::clone): Likewise.
12617 * tree-complex.c (pass_lower_complex::clone): Likewise.
12618 * tree-eh.c (pass_cleanup_eh::clone): Likewise.
12619 * tree-object-size.c (pass_object_sizes::clone): Likewise.
12620 * tree-optimize.c (pass_fixup_cfg::clone): Likewise.
12621 * tree-ssa-ccp.c (pass_data_ccp::clone): Likewise.
12622 (pass_fold_builtins::clone): Likewise.
12623 * tree-ssa-copy.c (pass_data_copy_prop::clone): Likewise.
12624 * tree-ssa-copyrename.c (pass_rename_ssa_copies::clone): Likewise.
12625 * tree-ssa-dce.c (pass_dce::clone, pass_dce_loop::clone): Likewise.
12626 (pass_cd_dce::clone): Likewise.
12627 * tree-ssa-dom.c (pass_dominator::clone): Likewise.
12628 (pass_phi_only_cprop::clone): Likewise.
12629 * tree-ssa-dse.c (pass_dse::clone): Likewise.
12630 * tree-ssa-forwprop.c (pass_forwprop::clone): Likewise.
12631 * tree-ssa-loop.c (pass_lim::clone): Likewise.
12632 * tree-ssa-phiopt.c (pass_phiopt::clone): Likewise.
12633 * tree-ssa-pre.c (pass_fre::clone): Likewise.
12634 * tree-ssa-reassoc.c (pass_reassoc::clone): Likewise.
12635 * tree-ssa-uninit.c (pass_late_warn_uninitialized::clone): Likewise.
12636 * tree-tailcall.c (pass_tail_recursion::clone): Likewise.
12637 * tree-vect-generic.c (pass_lower_vector_ssa::clone): Likewise.
12638 * tree-vrp.c (pass_vrp::clone): Likewise.
12639 * tsan.c (pass_tsan::clone): Likewise.
12641 2013-09-30 Jakub Jelinek <jakub@redhat.com>
12643 PR middle-end/58564
12644 * fold-const.c (tree_unary_nonnegative_warnv_p): Use
12645 INTEGRAL_TYPE_P (t) instead of TREE_CODE (t) == INTEGER_TYPE.
12647 PR middle-end/58564
12648 * fold-const.c (fold_ternary_loc): For A < 0 : <sign bit of A> : 0
12649 optimization, punt if sign_bit_p looked through any zero extension.
12651 2013-09-30 Teresa Johnson <tejohnson@google.com>
12653 * tree-ssa-threadupdate.c (ssa_fix_duplicate_block_edges):
12654 Update redirected out edge count in joiner case.
12655 (ssa_redirect_edges): Common the joiner and non-joiner cases
12656 so that joiner case gets profile updates.
12658 2013-09-30 Richard Biener <rguenther@suse.de>
12660 PR tree-optimization/58554
12661 * tree-loop-distribution.c (classify_partition): Require
12662 unconditionally executed stores for memcpy and memset recognition.
12663 (tree_loop_distribution): Calculate dominance info.
12665 2013-09-30 Venkataramanan Kumar <venkataramanan.kumar@linaro.org>
12667 * config/aarch64/aarch64.h (MCOUNT_NAME): Define.
12668 (NO_PROFILE_COUNTERS): Likewise.
12669 (PROFILE_HOOK): Likewise.
12670 (FUNCTION_PROFILER): Likewise.
12671 * config/aarch64/aarch64.c (aarch64_function_profiler): Remove.
12673 2013-09-30 Iain Sandoe <iain@codesourcery.com>
12675 * config/rs6000/darwin.md (load_macho_picbase_si): Wrap machopic
12676 calls and defines in TARGET_MACHO conditional.
12677 (load_macho_picbase_di): Likewise.
12678 (reload_macho_picbase): Likewise.
12679 (reload_macho_picbase_si): Likewise.
12680 (reload_macho_picbase_di): Likewise.
12681 (nonlocal_goto_receiver): Likewise.
12683 2013-09-30 Nick Clifton <nickc@redhat.com>
12685 * config/msp430/msp430.c (msp430x_names): New array. Lists MCUs
12686 that use the MSP430X ISA.
12687 (msp430_option_override): Scan -mmcu command line option for any
12688 MCU name that supports the MSP430X ISA.
12689 * config/msp430/t-msp430 (MULTILIB_MATCHES): Add matches for known
12690 -mmcu options which enable the MSP430X ISA.
12692 2013-09-30 Richard Biener <rguenther@suse.de>
12694 PR middle-end/58532
12695 * tree-cfg.c (make_abnormal_goto_edges): Skip debug statements
12696 before looking for setjmp-like calls.
12698 2013-09-29 Iain Sandoe <iain@codesourcery.com>
12701 * config/darwin-protos.h (machopic_get_function_picbase): New.
12702 * config/darwin.c (machopic_get_function_picbase): New.
12703 * config/rs6000/darwin.md (load_macho_picbase_si): Update picbase
12704 label for a new func. (load_macho_picbase_di): Likewise.
12705 (reload_macho_picbase): New expand.
12706 (reload_macho_picbase_si): New insn.
12707 (reload_macho_picbase_di): New insn.
12708 (nonlocal_goto_receiver): New define and split.
12709 * config/rs6000/rs6000.md (unspec enum): Add UNSPEC_RELD_MPIC.
12710 (unspecv enum): Add UNSPECV_NLGR.
12712 2013-09-29 Iain Sandoe <iain@codesourcery.com>
12714 * config/rs6000/rs6000.c (rs6000_init_dwarf_reg_sizes_extra): Ensure
12715 that altivec registers are correctly sized on Darwin.
12717 2013-09-29 Iain Sandoe <iain@codesourcery.com>
12719 * config/t-darwin (darwin.o, darwin-c.o, darwin-f.o,
12720 darwin-driver.o): Use COMPILE and POSTCOMPILE.
12721 * config/x-darwin (host-darwin.o): Likewise.
12722 * config/i386/x-darwin (host-i386-darwin.o): Likewise.
12723 * config/rs6000/x-darwin (host-ppc-darwin.o): Likewise.
12724 * config/rs6000/x-darwin64 (host-ppc64-darwin.o): Likewise.
12726 2013-09-29 Uros Bizjak <ubizjak@gmail.com>
12728 * doc/invoke.texi: Fix usage of @tie{} command.
12730 2013-09-29 Eric Botcazou <ebotcazou@adacore.com>
12732 * config/sparc/sync.md: Add peephole for consecutive memory barriers.
12734 2013-09-28 Jan Hubicka <jh@suse.cz>
12736 * config/i386/x86-tune.def: Add documentation for each of the options;
12739 2013-09-28 Jan Hubicka <jh@suse.cz>
12741 * x86-tune.def (X86_TUNE_SSE_UNALIGNED_LOAD_OPTIMAL): Enable for
12743 (X86_TUNE_SSE_UNALIGNED_STORE_OPTIMAL): Likewise.
12744 (X86_TUNE_FOUR_JUMP_LIMIT): Drop for generic and buldozer.
12745 (X86_TUNE_PAD_RETURNS): Drop for buldozer chips.
12746 (X86_TUNE_AVOID_VECTOR_DECODE): Drop for generic.
12747 (X86_TUNE_REASSOC_FP_TO_PARALLEL): Enable for generic.
12749 2013-09-28 Richard Sandiford <rdsandiford@googlemail.com>
12751 * alloc-pool.c, asan.c, auto-inc-dec.c, basic-block.h, bb-reorder.c,
12752 bitmap.c, bitmap.h, bt-load.c, builtins.c, calls.c, cfgcleanup.c,
12753 cfgexpand.c, cfghooks.c, cfgloop.c, cfgloopmanip.c, cfgrtl.c, cgraph.c,
12754 cgraph.h, cgraphbuild.c, cgraphclones.c, cgraphunit.c, collect2.c,
12755 combine-stack-adj.c, combine.c, compare-elim.c, context.c, context.h,
12756 cprop.c, cse.c, cselib.c, dbxout.c, dce.c, defaults.h, df-core.c,
12757 df-problems.c, df-scan.c, df.h, diagnostic.c, double-int.c, dse.c,
12758 dumpfile.c, dwarf2asm.c, dwarf2cfi.c, dwarf2out.c, emit-rtl.c,
12759 errors.c, except.c, expmed.c, expr.c, file-find.c, final.c,
12760 fixed-value.c, fold-const.c, function.c, fwprop.c, gcc-ar.c, gcc.c,
12761 gcov-io.c, gcov-io.h, gcov.c, gcse.c, genattr-common.c, genattr.c,
12762 genattrtab.c, genautomata.c, genconfig.c, genemit.c, genextract.c,
12763 genflags.c, gengenrtl.c, gengtype-state.c, gengtype.c, genmodes.c,
12764 genopinit.c, genoutput.c, genpeep.c, genpreds.c, genrecog.c,
12765 gensupport.c, ggc-common.c, ggc-page.c, gimple-fold.c, gimple-low.c,
12766 gimple-pretty-print.c, gimple-ssa-strength-reduction.c, gimple.c,
12767 gimple.h, godump.c, graphite-clast-to-gimple.c,
12768 graphite-optimize-isl.c, graphite-poly.h, graphite-sese-to-poly.c,
12769 graphite.c, haifa-sched.c, hash-table.c, hash-table.h, hwint.c,
12770 hwint.h, ifcvt.c, incpath.c, init-regs.c, input.h, intl.c, intl.h,
12771 ipa-cp.c, ipa-devirt.c, ipa-inline-analysis.c, ipa-inline.c,
12772 ipa-profile.c, ipa-pure-const.c, ipa-reference.c, ipa-split.c,
12773 ipa-utils.c, ipa.c, ira-build.c, ira.c, jump.c, loop-doloop.c,
12774 loop-init.c, loop-invariant.c, loop-iv.c, lower-subreg.c, lto-cgraph.c,
12775 lto-streamer-in.c, lto-streamer-out.c, lto-wrapper.c, mcf.c,
12776 mode-switching.c, modulo-sched.c, omp-low.c, optabs.c, opts.c,
12777 pass_manager.h, passes.c, plugin.c, postreload-gcse.c, postreload.c,
12778 predict.c, prefix.c, pretty-print.c, print-rtl.c, print-tree.c,
12779 profile.c, read-md.c, real.c, real.h, recog.c, ree.c, reg-stack.c,
12780 regcprop.c, reginfo.c, regmove.c, regrename.c, regs.h, regstat.c,
12781 reload1.c, reorg.c, rtl.c, rtl.h, rtlanal.c, sbitmap.c, sched-rgn.c,
12782 sdbout.c, sel-sched-ir.c, sel-sched.c, sparseset.c, stack-ptr-mod.c,
12783 statistics.c, stmt.c, stor-layout.c, store-motion.c, streamer-hooks.h,
12784 system.h, target-hooks-macros.h, targhooks.c, targhooks.h, toplev.c,
12785 tracer.c, trans-mem.c, tree-browser.c, tree-call-cdce.c, tree-cfg.c,
12786 tree-cfgcleanup.c, tree-complex.c, tree-data-ref.c, tree-data-ref.h,
12787 tree-eh.c, tree-emutls.c, tree-flow.h, tree-if-conv.c, tree-into-ssa.c,
12788 tree-iterator.c, tree-loop-distribution.c, tree-mudflap.c,
12789 tree-nested.c, tree-nomudflap.c, tree-nrv.c, tree-object-size.c,
12790 tree-optimize.c, tree-pass.h, tree-pretty-print.c, tree-profile.c,
12791 tree-scalar-evolution.c, tree-sra.c, tree-ssa-ccp.c,
12792 tree-ssa-coalesce.c, tree-ssa-copy.c, tree-ssa-copyrename.c,
12793 tree-ssa-dce.c, tree-ssa-dom.c, tree-ssa-dse.c, tree-ssa-forwprop.c,
12794 tree-ssa-ifcombine.c, tree-ssa-live.c, tree-ssa-loop-ch.c,
12795 tree-ssa-loop-im.c, tree-ssa-loop-ivopts.c, tree-ssa-loop-prefetch.c,
12796 tree-ssa-loop.c, tree-ssa-math-opts.c, tree-ssa-operands.c,
12797 tree-ssa-phiopt.c, tree-ssa-phiprop.c, tree-ssa-pre.c,
12798 tree-ssa-reassoc.c, tree-ssa-sink.c, tree-ssa-strlen.c,
12799 tree-ssa-structalias.c, tree-ssa-threadedge.c, tree-ssa-threadupdate.c,
12800 tree-ssa-uncprop.c, tree-ssa-uninit.c, tree-ssa.c, tree-ssanames.c,
12801 tree-stdarg.c, tree-switch-conversion.c, tree-tailcall.c,
12802 tree-vect-data-refs.c, tree-vect-generic.c, tree-vect-loop-manip.c,
12803 tree-vect-stmts.c, tree-vectorizer.c, tree-vectorizer.h, tree-vrp.c,
12804 tree.c, tree.h, tsan.c, tsystem.h, value-prof.c, var-tracking.c,
12805 varasm.c, vec.h, vmsdbgout.c, vtable-verify.c, web.c: Add missing
12806 whitespace before "(".
12808 2013-09-28 Sandra Loosemore <sandra@codesourcery.com>
12810 * expr.h (extract_bit_field): Remove packedp parameter.
12811 * expmed.c (extract_fixed_bit_field): Remove packedp parameter
12812 from forward declaration.
12813 (store_split_bit_field): Remove packedp arg from calls to
12814 extract_fixed_bit_field.
12815 (extract_bit_field_1): Remove packedp parameter and packedp
12816 argument from recursive calls and calls to extract_fixed_bit_field.
12817 (extract_bit_field): Remove packedp parameter and corresponding
12818 arg to extract_bit_field_1.
12819 (extract_fixed_bit_field): Remove packedp parameter. Remove code
12821 (extract_split_bit_field): Remove packedp arg from call to
12822 extract_fixed_bit_field.
12823 * expr.c (emit_group_load_1): Adjust calls to extract_bit_field.
12824 (copy_blkmode_from_reg): Likewise.
12825 (copy_blkmode_to_reg): Likewise.
12826 (read_complex_part): Likewise.
12827 (store_field): Likewise.
12828 (expand_expr_real_1): Likewise.
12829 * calls.c (store_unaligned_arguments_into_pseudos): Adjust call
12830 to extract_bit_field.
12831 * config/tilegx/tilegx.c (tilegx_expand_unaligned_load): Adjust
12832 call to extract_bit_field.
12833 * config/tilepro/tilepro.c (tilepro_expand_unaligned_load): Adjust
12834 call to extract_bit_field.
12835 * doc/invoke.texi (Code Gen Options): Remove mention of warnings
12836 and special packedp behavior from -fstrict-volatile-bitfields
12839 2013-09-27 Jan-Benedict Glaw <jbglaw@lug-owl.de>
12841 * lra-eliminations.c (init_elim_table): Guard value_p.
12843 2013-09-27 Michael Meissner <meissner@linux.vnet.ibm.com>
12845 * config/rs6000/rs6000.c (rs6000_hard_regno_mode_ok): Allow
12846 DFmode, DImode, and SFmode in the upper VSX registers based on the
12847 -mupper-regs-{df,sf} flags. Fix wu constraint to be ALTIVEC_REGS
12848 if -mpower8-vector. Combine -mvsx-timode handling with the rest
12849 of the VSX register handling.
12851 * config/rs6000/rs6000.md (f32_lv): Use %x0 for VSX regsters.
12852 (f32_sv): Likewise.
12853 (zero_extendsidi2_lfiwzx): Add support for loading into the
12854 Altivec registers with -mpower8-vector. Use wu/wv constraints to
12855 only do VSX memory options on Altivec registers.
12856 (extendsidi2_lfiwax): Likewise.
12857 (extendsfdf2_fpr): Likewise.
12858 (mov<mode>_hardfloat, SF/SD modes): Likewise.
12859 (mov<mode>_hardfloat32, DF/DD modes): Likewise.
12860 (mov<mode>_hardfloat64, DF/DD modes): Likewise.
12861 (movdi_internal64): Likewise.
12863 2013-09-27 Xinliang David Li <davidxl@google.com>
12865 * opts.c (finish_options): Adjust parameters
12866 according to vect cost model.
12867 (common_handle_option): Set dynamic vect cost
12869 targhooks.c (default_add_stmt_cost): Compute stmt cost
12871 * tree-vect-loop.c (vect_estimate_min_profitable_iters):
12872 Use helper function.
12873 * tree-vectorizer.h (unlimited_cost_model): New function.
12874 * tree-vect-slp.c (vect_slp_analyze_bb_1): Use helper function.
12875 * tree-vect-data-refs.c (vect_peeling_hash_insert): Use helper
12877 (vect_enhance_data_refs_alignment): Ditto.
12878 * flag-types.h: New enum.
12879 * common/config/i386/i386-common.c (ix86_option_init_struct):
12880 No need to initialize vect_cost_model flag.
12881 * config/i386/i386.c (ix86_add_stmt_cost): Compute stmt cost
12884 2013-09-27 Diego Novillo <dnovillo@google.com>
12886 * gimple.h (enum ssa_mode): Remove.
12888 2013-09-27 Paulo Matos <pmatos@broadcom.com>
12890 * cfgloop.h (number_of_loops): Fix typo in check for null.
12892 2013-09-27 Jakub Jelinek <jakub@redhat.com>
12894 PR middle-end/58551
12895 * tree-cfg.c (move_sese_region_to_fn): Also move loops that
12896 are children of outermost saved_cfun's loop, and set it up to
12897 be moved to dest_cfun's outermost loop. Fix up num_nodes adjustments
12898 if loop != loop0 and SESE region contains bbs that belong to loop0.
12900 2013-09-27 Richard Sandiford <rdsandiford@googlemail.com>
12902 * rtlanal.c (must_be_base_p, must_be_index_p): Delete.
12903 (binary_scale_code_p, get_base_term, get_index_term): New functions.
12904 (set_address_segment, set_address_base, set_address_index)
12905 (set_address_disp): Accept the argument unconditionally.
12906 (baseness): Remove must_be_base_p and must_be_index_p checks.
12907 (decompose_normal_address): Classify as much as possible in the
12910 2013-09-27 Richard Sandiford <rdsandiford@googlemail.com>
12912 * cse.c (count_reg_usage): Handle INT_LIST.
12913 * lra-eliminations.c (lra_eliminate_regs_1): Likewise.
12914 * reginfo.c (reg_scan_mark_refs): Likewise.
12915 * reload1.c (eliminate_regs_1): Likewise.
12917 2013-09-27 Iain Sandoe <iain@codesourcery.com>
12919 PR middle-end/58547
12920 * rtlanal.c (lsb_bitfield_op_p): Make both parts of the comparison
12923 2013-09-27 Richard Biener <rguenther@suse.de>
12925 PR tree-optimization/58459
12926 * tree-ssa-forwprop.c (forward_propagate_addr_expr): Remove
12927 restriction not propagating into loops.
12929 2013-09-26 Florian Weimer <fw@deneb.enyo.de>
12931 * tree-ssa.h (walk_use_def_chains_fn, walk_use_def_chains): Delete.
12932 * tree-ssa.c (walk_use_def_chains_1, walk_use_def_chains): Delete.
12933 * doc/tree-ssa.texi (Walking use-def chains): Delete.
12935 2013-09-26 Richard Biener <rguenther@suse.de>
12937 * tree-into-ssa.c (rewrite_into_ssa): Make more SSA names to anonymous.
12939 2013-09-26 Richard Biener <rguenther@suse.de>
12941 * alias.h (component_uses_parent_alias_set): Rename to ...
12942 (component_uses_parent_alias_set_from): ... this.
12943 * alias.c (component_uses_parent_alias_set): Rename to ...
12944 (component_uses_parent_alias_set_from): ... this and return
12945 the desired parent.
12946 (reference_alias_ptr_type_1): Use the result from
12947 component_uses_parent_alias_set_from instead of stripping
12948 components one at a time.
12949 * emit-rtl.c (set_mem_attributes_minus_bitpos): Adjust.
12951 2013-09-26 Andrew MacLeod <amacleod@redhat.com>
12953 * tree-ssa-live.h (find_replaceable_exprs, dump_replaceable_exprs):
12954 Move prototypes to...
12955 * tree-ssa-ter.h: New File. Move prototypes here.
12956 * tree-flow.h (stmt_is_replaceable_p): Remove prototype.
12957 * tree-outof-ssa.h: New. Rename ssaexpand.h, include tree-ssa-ter.h.
12958 * tree-outof-ssa.c (ssa_is_replaceable_p): New. Refactor common bits
12959 from is_replaceable_p.
12960 * tree-ssa-ter.c (is_replaceable_p, stmt_is_replaceable_p): Delete.
12961 (ter_is_replaceable_p): New. Use new refactored ssa_is_replaceable_p.
12962 (process_replaceable): Use ter_is_replaceable_p.
12963 (find_replaceable_in_bb): Use ter_is_replaceable_p.
12964 * expr.c (stmt_is_replaceable_p): Relocate from tree-ssa-ter.c. Use
12965 newly refactored ssa_is_replaceable_p.
12966 * cfgexpand.c: Include tree-outof-ssa.h.
12967 * ssaexpand.h: Delete.
12969 2013-09-26 Andrew MacLeod <amacleod@redhat.com>
12971 * gimple.c (gimple_replace_lhs): Move to tree-ssa.c and rename.
12972 (struct count_ptr_d, count_ptr_derefs, count_uses_and_derefs): Move to
12974 (create_gimple_tmp): Delete.
12975 (get_expr_type, build_assign, build_type_cast): Move to...
12976 * gimple-builder.c: New File.
12977 (get_expr_type): Relocate from gimple.c.
12978 (build_assign, build_type_cast): Change to only create ssanames.
12979 * gimple.h: Move prototypes to...
12980 * gimple-builder.h: New File. Here.
12981 * tree-ssa.h: And here.
12982 * tree-ssa.c (struct count_ptr_d, count_ptr_derefs,
12983 count_uses_and_derefs): Relocate from gimple.c.
12984 (gimple_replace_ssa_lhs): Renamed gimple_replace_ssa from gimple.c
12985 * tree-ssa-reassoc.c (repropagate_negates): Use gimple_replace_ssa_lhs.
12986 * tree-ssa-math-opts (execute_cse_reciprocals): Use
12987 gimple_replace_ssa_lhs.
12988 * asan.c: Include gimple-builder.h.
12989 * Makefile.in: Add gimple-builder.o.
12991 2013-09-26 Richard Biener <rguenther@suse.de>
12993 * tree-ssa-live.c (var_map_base_init): Handle SSA names with
12994 DECL_IGNORED_P base VAR_DECLs like anonymous SSA names.
12995 (loe_visit_block): Use gcc_checking_assert.
12996 * tree-ssa-coalesce.c (create_outofssa_var_map): Use
12997 gimple_assign_ssa_name_copy_p.
12998 (gimple_can_coalesce_p): Adjust according to the var_map_base_init
13001 2013-09-26 David Edelsohn <dje.gcc@gmail.com>
13003 * config/rs6000/t-rs6000 (rs6000.o): Remove.
13004 (rs6000-c.o): Use COMPILE and POSTCOMPILE.
13006 2013-09-26 Richard Biener <rguenther@suse.de>
13008 PR tree-optimization/58539
13009 * tree-vect-loop.c (vect_create_epilog_for_reduction): Honor
13010 the fact that debug statements are not taking part in loop-closed
13013 2013-09-26 Nick Clifton <nickc@redhat.com>
13015 * config/msp430/msp430.c (msp430_expand_epilogue): Fix compile
13016 time warning message.
13017 (msp430_print_operand_raw): Delete unused letter parameter.
13018 (TARGET_PRINT_OPERAND_ADDRESS): Define.
13019 (msp430_print_operand_address): New function.
13020 (msp430_print_operand): Move address printing code from here to
13022 * config/msp430/msp430.md (movsipsi2): Add comment in generated
13024 (zero_extendpsisi2): Likewise.
13025 (extendpsisi2): New pattern.
13026 (andneghi3): New pattern.
13028 2013-09-26 Yvan Roux <yvan.roux@linaro.org>
13030 * config/aarch64/aarch64.opt (mlra): New option.
13031 * config/aarch64/aarch64.c (aarch64_lra_p): New function.
13032 (TARGET_LRA_P): Define.
13034 2013-09-26 Eric Botcazou <ebotcazou@adacore.com>
13036 * expr.c (expand_assignment): Remove obsolete comment.
13038 2013-09-25 Jeff Law <law@redhat.com>
13040 * tree-flow.h (thread_through_all_blocks): Prototype moved into
13041 tree-ssa-threadupdate.h.
13042 (register_jump_thread): Similarly.
13043 * tree-ssa-threadupdate.h: New header file.
13044 * tree-ssa-dom.c: Include tree-ssa-threadupdate.h.
13045 * tree-vrp.c: Likewise.
13046 * tree-ssa-threadedge.c: Include tree-ssa-threadupdate.h.
13047 (thread_around_empty_blocks): Change type of path vector argument to
13048 an edge,type pair from just an edge. Initialize both elements when
13049 appending to a jump threading path. Tweak references to elements
13051 (thread_across_edge): Similarly. Release memory for the elements
13053 * tree-ssa-threadupdate.c: Include tree-ssa-threadupdate.h.
13054 (dump_jump_thread_path): New function broken out from
13055 register_jump_thread.
13056 (register_jump_thread): Use dump_jump_thread_path. Change type of
13057 path vector entries. Search the path for NULL edges and dump
13058 the path if one is found. Tweak the conversion of path to 3-edge
13059 form to use the block copy type information embedded in the path.
13061 2013-09-25 Yvan Roux <yvan.roux@linaro.org>
13063 * lra.c (update_inc_notes): Remove all REG_DEAD and REG_UNUSED notes.
13065 2013-09-25 Yvan Roux <yvan.roux@linaro.org>
13066 Vladimir Makarov <vmakarov@redhat.com>
13068 * rtlanal.c (lsb_bitfield_op_p): New predicate for bitfield operations
13069 from the least significant bit.
13070 (strip_address_mutations): Add bitfield operations handling.
13071 (must_be_index_p): Add shifting and rotate operations handling.
13072 (set_address_base): Use must_be_base_p predicate.
13073 (set_address_index): Use must_be_index_p predicate.
13075 2013-09-25 Alexander Ivchenko <alexander.ivchenko@intel.com>
13076 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
13077 Sergey Lega <sergey.s.lega@intel.com>
13078 Anna Tikhonova <anna.tikhonova@intel.com>
13079 Ilya Tocar <ilya.tocar@intel.com>
13080 Andrey Turetskiy <andrey.turetskiy@intel.com>
13081 Ilya Verbin <ilya.verbin@intel.com>
13082 Kirill Yukhin <kirill.yukhin@intel.com>
13083 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
13085 * config/i386/i386.c (ix86_avx256_split_vector_move_misalign):
13087 (ix86_expand_vector_move_misalign): Support new unaligned load and
13088 stores and use new names.
13089 (CODE_FOR_sse2_storedqu): Rename to ...
13090 (CODE_FOR_sse2_storedquv16qi): ... this.
13091 (CODE_FOR_sse2_loaddqu): Rename to ...
13092 (CODE_FOR_sse2_loaddquv16qi): ... this.
13093 (CODE_FOR_avx_loaddqu256): Rename to ...
13094 (CODE_FOR_avx_loaddquv32qi): ... this.
13095 (CODE_FOR_avx_storedqu256): Rename to ...
13096 (CODE_FOR_avx_storedquv32qi): ... this.
13097 * config/i386/i386.md (fpint_logic): New.
13098 * config/i386/sse.md (VMOVE): Extend for AVX512.
13102 (VI_UNALIGNED_LOADSTORE): Ditto.
13103 (sse2_avx_avx512f): Ditto.
13104 (sse2_avx2): Extend for AVX512.
13105 (sse4_1_avx2): Ditto.
13106 (avx2_avx512f): New.
13107 (sse): Extend for AVX512.
13110 (avxsizesuffix): Ditto.
13111 (sseintvecmode): Ditto.
13112 (ssePSmode): Ditto.
13113 (<sse>_loadu<ssemodesuffix><avxsizesuffix>): Ditto.
13114 (<sse>_storeu<ssemodesuffix><avxsizesuffix>): Ditto.
13115 (<sse2>_loaddqu<avxsizesuffix>): Extend for AVX512 and rename to ...
13116 (<sse2_avx_avx512f>_loaddqu<mode>): ... this.
13117 (<sse2>_storedqu<avxsizesuffix>): Extend for AVX512 and rename to ...
13118 (<sse2_avx_avx512f>_storedqu<mode): ... this.
13119 (<sse>_movnt<mode>): Replace constraint "x" with "v".
13120 (STORENT_MODE): Extend for AVX512.
13121 (*absneg<mode>2): Replace constraint "x" with "v".
13122 (*mul<mode>3): Ditto.
13123 (*ieee_smin<mode>3): Ditto.
13124 (*ieee_smax<mode>3): Ditto.
13125 (avx_cmp<mode>3): Replace VF with VF_128_256.
13126 (*<sse>_maskcmp<mode>3_comm): Ditto.
13127 (<sse>_maskcmp<mode>3): Ditto.
13128 (<sse>_andnot<mode>3): Extend for AVX512.
13129 (<code><mode>3, anylogic): Replace VF with VF_128_256.
13130 (<code><mode>3, fpint_logic): New.
13131 (*<code><mode>3): Extend for AVX512.
13132 (avx512flogicsuff): New.
13133 (avx512f_<logic><mode>): Ditto.
13134 (<sse>_movmsk<ssemodesuffix><avxsizesuffix>): Replace VF with
13136 (<sse4_1>_blend<ssemodesuffix><avxsizesuffix>): Ditto.
13137 (<sse4_1>_blendv<ssemodesuffix><avxsizesuffix>): Ditto.
13138 (<sse4_1>_dp<ssemodesuffix><avxsizesuffix>): Ditto.
13139 (avx_vtest<ssemodesuffix><avxsizesuffix>): Ditto.
13140 (<sse4_1>_round<ssemodesuffix><avxsizesuffix>): Ditto.
13141 (xop_vpermil2<mode>3): Ditto.
13142 (*avx_vpermilp<mode>): Extend for AVX512 and rename to ...
13143 (*<sse2_avx_avx512f>_vpermilp<mode>): ... this.
13144 (avx_vpermilvar<mode>3): Extend for AVX512 and rename to ...
13145 (<sse2_avx_avx512f>_vpermilvar<mode>3): ... this.
13147 2013-09-25 Tom Tromey <tromey@redhat.com>
13149 * Makefile.in (PARTITION_H, LTO_SYMTAB_H, COMMON_TARGET_DEF_H)
13150 (RTL_ERROR_H, TRANS_MEM_H, COVERAGE_H, DEMANGLE_H, ALIAS_H)
13151 (SCHED_INT_H, SEL_SCHED_IR_H, SEL_SCHED_DUMP_H, VALTRACK_H, DDG_H)
13152 (GGC_INTERNAL_H, DECNUM_H, BACKTRACE_H, MKDEPS_H, TREE_HASHER_H)
13153 (TREE_SSA_LIVE_H, SSAEXPAND_H, DWARF2OUT_H, SCEV_H, OMEGA_H)
13154 (TREE_DATA_REF_H, IRA_INT_H, LRA_INT_H, DBGCNT_H, DATA_STREAMER_H)
13155 (GIMPLE_STREAMER_H, TREE_STREAMER_H, STREAMER_HOOKS_H)
13156 (TREE_VECTORIZER_H, IPA_INLINE_H, GSTAB_H, LIBFUNCS_H)
13157 (GRAPHITE_HTAB_H): Remove.
13159 2013-09-25 Tom Tromey <tromey@redhat.com>
13161 * config/mcore/t-mcore (CROSS_FLOAT_H): Remove.
13163 2013-09-25 Tom Tromey <tromey@redhat.com>
13165 * config/t-glibc (glibc-c.o): Use COMPILE and POSTCOMPILE.
13167 2013-09-25 Tom Tromey <tromey@redhat.com>
13169 * config/i386/t-i386 (i386.o): Remove.
13170 (i386-c.o): Use COMPILE and POSTCOMPILE.
13172 2013-09-25 Tom Tromey <tromey@redhat.com>
13174 * Makefile.in ($(out_object_file)): Use COMPILE and POSTCOMPILE.
13176 2013-09-25 Tom Tromey <tromey@redhat.com>
13178 * Makefile.in (graph.o, sbitmap.o, sparseset.o, gcc-ar.o)
13179 (gcc-ranlib.o, gcc-nm.o, collect2.o, collect2-aix.o, tlink.o)
13180 (lto-wrapper.o, default-c.o, attribs.o, incpath.o, prefix.o)
13181 (gcc.o, options.o, options-save.o, version.o, gtype-desc.o)
13182 (trans-mem.o, ggc-common.o, ggc-page.o, ggc-none.o, stringpool.o)
13183 (convert.o, double-int.o, lto-compress.o, data-streamer-in.o)
13184 (data-streamer-out.o, data-streamer.o, gimple-streamer-in.o)
13185 (gimple-streamer-out.o, tree-streamer.o, tree-streamer-in.o)
13186 (tree-streamer-out.o, streamer-hooks.o, lto-cgraph.o)
13187 (lto-streamer-in.o, lto-streamer-out.o, lto-section-in.o)
13188 (lto-section-out.o, lto-opts.o, lto-streamer.o, langhooks.o)
13189 (test-dump.o, tree.o, tree-dump.o, tree-inline.o, print-tree.o)
13190 (stor-layout.o, asan.o, tsan.o, ubsan.o, tree-ssa-tail-merge.o)
13191 (tree-ssa-structalias.o, tree-ssa-uninit.o, tree-ssa.o)
13192 (tree-into-ssa.o, tree-ssa-ter.o, tree-ssa-coalesce.o)
13193 (tree-outof-ssa.o, tree-ssa-dse.o, tree-ssa-forwprop.o)
13194 (tree-ssa-phiprop.o, tree-ssa-ifcombine.o, tree-ssa-phiopt.o)
13195 (tree-nrv.o, tree-ssa-copy.o, tree-ssa-propagate.o)
13196 (tree-ssa-dom.o, tree-ssa-uncprop.o, tree-ssa-threadedge.o)
13197 (tree-ssa-threadupdate.o, tree-ssanames.o, tree-phinodes.o)
13198 (domwalk.o, tree-ssa-live.o, tree-ssa-copyrename.o)
13199 (tree-ssa-pre.o, tree-ssa-sccvn.o)
13200 (gimple-ssa-strength-reduction.o, tree-vrp.o, tree-cfg.o)
13201 (tree-cfgcleanup.o, tree-tailcall.o, tree-ssa-sink.o)
13202 (tree-nested.o, tree-if-conv.o, tree-iterator.o, tree-dfa.o)
13203 (tree-ssa-operands.o, tree-eh.o, tree-ssa-loop.o)
13204 (tree-ssa-loop-unswitch.o, tree-ssa-address.o)
13205 (tree-ssa-loop-niter.o, tree-ssa-loop-ivcanon.o)
13206 (tree-ssa-loop-ch.o, tree-ssa-loop-prefetch.o, tree-predcom.o)
13207 (tree-ssa-loop-ivopts.o, tree-affine.o, tree-ssa-loop-manip.o)
13208 (tree-ssa-loop-im.o, tree-ssa-math-opts.o, tree-ssa-alias.o)
13209 (tree-ssa-reassoc.o, tree-optimize.o, gimplify.o)
13210 (gimple-iterator.o, gimple-fold.o, gimple-low.o, omp-low.o)
13211 (tree-browser.o, omega.o, tree-chrec.o, tree-scalar-evolution.o)
13212 (tree-data-ref.o, sese.o, graphite.o, graphite-blocking.o)
13213 (graphite-clast-to-gimple.o, graphite-dependences.o)
13214 (graphite-interchange.o, graphite-poly.o)
13215 (graphite-scop-detection.o, graphite-sese-to-poly.o)
13216 (graphite-optimize-isl.o, tree-vect-loop.o)
13217 (tree-vect-loop-manip.o, tree-vect-patterns.o, tree-vect-slp.o)
13218 (tree-vect-stmts.o, tree-vect-data-refs.o, tree-vectorizer.o)
13219 (vtable-verify.o, tree-loop-distribution.o, tree-parloops.o)
13220 (tree-stdarg.o, tree-object-size.o, internal-fn.o, gimple.o)
13221 (gimple-pretty-print.o, tree-mudflap.o, tree-nomudflap.o)
13222 (tree-pretty-print.o, tree-diagnostic.o, fold-const.o)
13223 (diagnostic.o, diagnostic-color.o, opts.o, opts-global.o)
13224 (opts-common.o, targhooks.o, common/common-targhooks.o, input.o)
13225 (toplev.o, hwint.o, passes.o, plugin.o, main.o, host-default.o)
13226 (rtl-error.o, rtl.o, print-rtl.o, rtlanal.o, varasm.o, function.o)
13227 (statistics.o, stmt.o, except.o, expr.o, dojump.o, builtins.o)
13228 (calls.o, expmed.o, explow.o, optabs.o, dbxout.o, debug.o)
13229 (sdbout.o, dwarf2out.o, dwarf2cfi.o, dwarf2asm.o, vmsdbgout.o)
13230 (xcoffout.o, godump.o, emit-rtl.o, real.o, realmpfr.o, dfp.o)
13231 (fixed-value.o, jump.o, simplify-rtx.o, symtab.o, cgraph.o)
13232 (cgraphunit.o, cgraphclones.o, cgraphbuild.o, varpool.o, ipa.o)
13233 (ipa-profile.o, ipa-devirt.o, ipa-prop.o, ipa-ref.o, ipa-cp.o)
13234 (ipa-split.o, ipa-inline.o, ipa-inline-analysis.o)
13235 (ipa-inline-transform.o, ipa-utils.o, ipa-reference.o)
13236 (ipa-pure-const.o, coverage.o, cselib.o, cse.o, dce.o, dumpfile.o)
13237 (dse.o, fwprop.o, web.o, ree.o, cprop.o, gcse.o, store-motion.o)
13238 (resource.o, lcm.o, mode-switching.o, tree-ssa-dce.o)
13239 (tree-call-cdce.o, tree-ssa-ccp.o, tree-ssa-strlen.o, tree-sra.o)
13240 (tree-switch-conversion.o, tree-complex.o, tree-emutls.o)
13241 (tree-vect-generic.o, df-core.o, df-problems.o, df-scan.o)
13242 (regstat.o, valtrack.o, var-tracking.o, profile.o, mcf.o)
13243 (tree-profile.o, value-prof.o, loop-doloop.o, alloc-pool.o)
13244 (auto-inc-dec.o, cfg.o, cfghooks.o, cfgexpand.o, cfgrtl.o)
13245 (cfganal.o, cfgbuild.o, cfgcleanup.o, cfgloop.o, cfgloopanal.o)
13246 (graphds.o, loop-iv.o, loop-invariant.o, cfgloopmanip.o)
13247 (loop-init.o, loop-unswitch.o, loop-unroll.o, dominance.o)
13248 (et-forest.o, combine.o, reginfo.o, bitmap.o, vec.o, hash-table.o)
13249 (reload.o, reload1.o, rtlhooks.o, postreload.o, postreload-gcse.o)
13250 (caller-save.o, bt-load.o, reorg.o, alias.o, stack-ptr-mod.o)
13251 (init-regs.o, ira-build.o, ira-costs.o, ira-conflicts.o)
13252 (ira-color.o, ira-emit.o, ira-lives.o, ira.o, lra.o)
13253 (lra-assigns.o, lra-coalesce.o, lra-constraints.o)
13254 (lra-eliminations.o, lra-lives.o, lra-spills.o, regmove.o)
13255 (combine-stack-adj.o, compare-elim.o, ddg.o, modulo-sched.o)
13256 (haifa-sched.o, sched-deps.o, sched-rgn.o, sched-ebb.o)
13257 (sched-vis.o, sel-sched.o, sel-sched-dump.o, sel-sched-ir.o)
13258 (final.o, recog.o, reg-stack.o, sreal.o, predict.o, lists.o)
13259 (bb-reorder.o, tracer.o, timevar.o, regcprop.o, regrename.o)
13260 (ifcvt.o, params.o, pointer-set.o, hooks.o, pretty-print.o)
13261 (errors.o, dbgcnt.o, lower-subreg.o, target-globals.o)
13262 (hw-doloop.o, file-find.o, context.o, $(common_out_object_file))
13263 (insn-attrtab.o, insn-automata.o, insn-dfatab.o, insn-emit.o)
13264 (insn-enums.o, insn-extract.o, insn-latencytab.o, insn-modes.o)
13265 (insn-opinit.o, insn-output.o, insn-peep.o, insn-preds.o)
13266 (insn-recog.o, intl.o, cppbuiltin.o, cppdefault.o, gcov.o)
13267 (gcov-dump.o): Remove.
13268 (default-c.o): Use COMPILE and POSTCOMPILE.
13269 (CFLAGS-gcc.o): New variable.
13270 ($(common_out_object_file)): Use COMPILE and POSTCOMPILE.
13272 2013-09-25 Tom Tromey <tromey@redhat.com>
13274 * Makefile.in (c-family/cppspec.o, c-family/c-common.o)
13275 (c-family/c-cppbuiltin.o, c-family/c-dump.o, c-family/c-format.o)
13276 (c-family/c-gimplify.o, c-family/c-lex.o, c-family/c-omp.o)
13277 (c-family/c-opts.o, c-family/c-pch.o, c-family/c-ppoutput.o)
13278 (c-family/c-pragma.o, c-family/c-pretty-print.o)
13279 (c-family/c-semantics.o, c-family/c-ada-spec.o)
13280 (c-family/array-notation-common.o, c-family/stub-objc.o)
13281 (c-family/c-ubsan.o): Remove.
13283 2013-09-25 Tom Tromey <tromey@redhat.com>
13285 * Makefile.in (C_TREE_H): Reference c/c-tree.h.
13287 2013-09-25 Tom Tromey <tromey@redhat.com>
13289 * Makefile.in (DRIVER_DEFINES): Use $(and), not shell code,
13290 to add -DENABLE_SHARED_LIBGCC.
13291 (gcc.o): Don't use subshell.
13293 2013-09-25 Tom Tromey <tromey@redhat.com>
13295 * Makefile.in (OUTPUT_OPTION): Define as "-o $@".
13296 * configure.ac: Don't invoke AM_PROG_CC_C_O.
13297 (NO_MINUS_C_MINUS_O, OUTPUT_OPTION): Don't subst.
13298 * configure, config.in: Rebuild.
13300 2013-09-25 Tom Tromey <tromey@redhat.com>
13302 * Makefile.in (CCDEPMODE, DEPDIR, depcomp, COMPILE.base)
13303 (COMPILE, POSTCOMPILE): New variables.
13304 (.cc.o .c.o): Use COMPILE, POSTCOMPILE.
13305 (DEPFILES): New variable.
13306 Include ".Po" files.
13307 * configure.ac: Add checks for dependency checking.
13308 * configure, aclocal.m4: Regenerate.
13310 2013-09-25 Tom Tromey <tromey@redhat.com>
13312 * Makefile.in (ALL_HOST_BACKEND_OBJS): Add lto-wrapper.o.
13313 ($(ALL_HOST_OBJS)): Move order-only dependency to end of file.
13315 2013-09-25 Tom Tromey <tromey@redhat.com>
13317 * Makefile.in (generated_files): Add options.h,
13318 target-hooks-def.h, insn-opinit.h,
13319 common/common-target-hooks-def.h, pass-instances.def,
13320 c-family/c-target-hooks-def.h.
13322 2013-09-25 Jeff Law <law@redhat.com>
13324 * tree-ssa-threadedge.c (thread_across_edge): Use foo.last () rather
13325 than foo[foo.length () - 1] to access last member in a vec.
13326 * tree-ssa-threadupdate.c (register_jump_thread): Similarly.
13328 2013-09-25 Richard Biener <rguenther@suse.de>
13330 PR middle-end/58521
13331 * tree.c (iterative_hash_expr): Remove MEM_REF special handling.
13333 2013-09-25 Jan Hubicka <jh@suse.cz>
13335 * cgraph.c (cgraph_resolve_speculation): Use semantical equivalency
13338 2013-09-25 Marek Polacek <polacek@redhat.com>
13341 * ubsan.c (ubsan_type_descriptor): Handle IDENTIFIER_NODEs
13342 when determining the type name.
13344 2013-09-24 Oleg Endo <olegendo@gcc.gnu.org>
13346 * config/sh/sh.md: Fix formatting.
13348 2013-09-24 Xinliang David Li <davidxl@google.com>
13350 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment): Check
13351 max peel iterations parameter.
13352 * param.def: New parameter.
13353 * doc/invoke.texi: Document New parameter.
13355 2013-09-24 Christophe Lyon <christophe.lyon@linaro.org>
13357 * gimple-pretty-print.c: Various whitespace tweaks.
13358 * tree-core.h: Likewise.
13359 * tree-pretty-print.c: Likewise.
13360 * tree-ssa-alias.c: Likewise.
13361 * tree-ssa-copy.c: Likewise.
13362 * tree-ssanames.c: Likewise.
13363 * tree-ssanames.h: Likewise.
13364 * tree-vrp.c: Likewise.
13366 2013-09-24 Alan Modra <amodra@gmail.com>
13368 PR middle-end/57134
13369 PR middle-end/57586
13370 * stmt.c (expand_asm_operands): Call expand_expr with EXPAND_MEMORY
13371 for output operands that disallow regs. Don't use EXPAND_WRITE on
13374 2013-09-24 Richard Biener <rguenther@suse.de>
13376 PR middle-end/58513
13377 * tree.c (reference_alias_ptr_type): Move ...
13378 * alias.c (reference_alias_ptr_type): ... here and implement
13379 in terms of the new reference_alias_ptr_type_1.
13380 (ref_all_alias_ptr_type_p): New helper.
13381 (get_deref_alias_set_1): Drop flag_strict_aliasing here,
13382 use ref_all_alias_ptr_type_p.
13383 (get_deref_alias_set): Add flag_strict_aliasing check here.
13384 (reference_alias_ptr_type_1): New function, split out from ...
13385 (get_alias_set): ... here.
13386 (alias_ptr_types_compatible_p): New function.
13387 * alias.h (reference_alias_ptr_type): Declare.
13388 (alias_ptr_types_compatible_p): Likewise.
13389 * tree.h (reference_alias_ptr_type): Remove.
13390 * fold-const.c (operand_equal_p): Use alias_ptr_types_compatible_p
13391 to compare MEM_REF alias types.
13393 2013-09-24 Richard Biener <rguenther@suse.de>
13395 * tree-vrp.c (vrp_finalize): Check for SSA name presence.
13397 2013-09-23 Michael Meissner <meissner@linux.vnet.ibm.com>
13399 * config/rs6000/rs6000.c (rs6000_vector_reload): Delete, combine
13400 reload helper function arrays into a single array reg_addr.
13401 (reload_fpr_gpr): Likewise.
13402 (reload_gpr_vsx): Likewise.
13403 (reload_vsx_gpr): Likewise.
13404 (struct rs6000_reg_addr): Likewise.
13405 (reg_addr): Likewise.
13406 (rs6000_debug_reg_global): Change rs6000_vector_reload,
13407 reload_fpr_gpr, reload_gpr_vsx, reload_vsx_gpr uses to reg_addr.
13408 (rs6000_init_hard_regno_mode_ok): Likewise.
13409 (rs6000_secondary_reload_direct_move): Likewise.
13410 (rs6000_secondary_reload): Likewise.
13412 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Add new
13413 constraints: wu, ww, and wy. Repurpose wv constraint added during
13414 power8 changes. Put wg constraint in alphabetical order.
13416 * config/rs6000/rs6000.opt (-mvsx-scalar-float): New debug switch
13417 for future work to add ISA 2.07 VSX single precision support.
13418 (-mvsx-scalar-double): Change default from -1 to 1, update
13419 documentation comment.
13420 (-mvsx-scalar-memory): Rename debug switch to -mupper-regs-df.
13421 (-mupper-regs-df): New debug switch to control whether DF values
13422 can go in the traditional Altivec registers.
13423 (-mupper-regs-sf): New debug switch to control whether SF values
13424 can go in the traditional Altivec registers.
13426 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Print wu, ww,
13427 and wy constraints.
13428 (rs6000_init_hard_regno_mode_ok): Use ssize_t instead of int for
13429 loop variables. Rename -mvsx-scalar-memory to -mupper-regs-df.
13430 Add new constraints, wu/ww/wy. Repurpose wv constraint.
13431 (rs6000_debug_legitimate_address_p): Print if we are running
13432 before, during, or after reload.
13433 (rs6000_secondary_reload): Add a comment.
13434 (rs6000_opt_masks): Add -mupper-regs-df, -mupper-regs-sf.
13436 * config/rs6000/constraints.md (wa constraint): Sort w<x>
13437 constraints. Update documentation string.
13438 (wd constraint): Likewise.
13439 (wf constraint): Likewise.
13440 (wg constraint): Likewise.
13441 (wn constraint): Likewise.
13442 (ws constraint): Likewise.
13443 (wt constraint): Likewise.
13444 (wx constraint): Likewise.
13445 (wz constraint): Likewise.
13446 (wu constraint): New constraint for ISA 2.07 SFmode scalar
13448 (ww constraint): Likewise.
13449 (wy constraint): Likewise.
13450 (wv constraint): Repurpose ISA 2.07 constraint that we did not use
13451 in the previous submissions.
13452 * doc/md.texi (PowerPC and IBM RS6000): Likewise.
13454 2013-09-23 Richard Sandiford <rdsandiford@googlemail.com>
13456 * doc/rtl.texi (REG_NOTES): Say that int_list can also be used.
13457 (REG_BR_PROB): Say that the probability is stored in an int_list.
13458 * reg-notes.def: Update commentary to mention INT_LIST.
13459 * rtl.def (EXPR_LIST, INSN_LIST): Capitalize comments.
13460 (INT_LIST): New rtx.
13461 * rtl.h (add_int_reg_note, add_shallow_copy_of_reg_note): Declare.
13462 * rtlanal.c (int_reg_note_p): New function.
13463 (alloc_reg_note): Assert that the note does not have an int argument.
13464 (add_int_reg_note, add_shallow_copy_of_reg_note): New functions.
13465 * combine.c (distribute_notes): Use add_shallow_copy_of_rtx.
13466 * cse.c (cse_process_notes_1): Expect REG_EQUAL to be an EXPR_LIST
13467 rather than an INSN_LIST. Handle INT_LIST.
13468 * ifcvt.c (cond_exec_process_insns): Take the probability as an int
13469 rather than an rtx. Use gen_rtx_INT_LIST to create a REG_BR_PROB note.
13470 (cond_exec_process_if_block): Use XINT to extract REG_BR_PROB values.
13471 Manipulate them as ints rather than rtxes.
13472 * reg-stack.c (subst_asm_stack_regs): Only handle EXPR_LIST notes.
13473 * regmove.c (copy_src_to_dest): Likewise.
13474 * sched-vis.c (print_insn_with_notes): Handle INT_LIST.
13476 * config/i386/winnt.c (i386_pe_seh_unwind_emit): Sink pat assignment
13477 into the cases that need it.
13478 * config/arm/arm.c (arm_unwind_emit): Likewise.
13480 * asan.c (asan_clear_shadow): Use add_int_reg_note for REG_BR_PROB.
13481 * emit-rtl.c (try_split, emit_copy_of_insn_after): Likewise.
13482 * loop-doloop.c (add_test, doloop_modify): Likewise.
13483 * loop-unswitch.c (compare_and_jump_seq): Likewise.
13484 * optabs.c (emit_cmp_and_jump_insn_1): Likewise.
13485 * predict.c (combine_predictions_for_insn): Likewise.
13486 * print-rtl.c (print_rtx): Handle INT_LIST.
13487 * config/aarch64/aarch64.c (aarch64_emit_unlikely_jump): Likewise.
13488 * config/alpha/alpha.c (emit_unlikely_jump): Likewise.
13489 * config/arm/arm.c (emit_unlikely_jump): Likewise.
13490 * config/i386/i386.c (ix86_expand_split_stack_prologue): Likewise.
13491 (ix86_split_fp_branch, predict_jump): Likewise.
13492 * config/rs6000/rs6000.c (emit_unlikely_jump): Likewise.
13493 * config/sh/sh.c (expand_cbranchsi4): Likewise.
13494 * config/spu/spu.c (ea_load_store_inline): Likewise.
13496 * cfgbuild.c (compute_outgoing_frequencies): Use XINT to access the
13497 value of a REG_BR_PROB note.
13498 * cfgrtl.c (force_nonfallthru_and_redirect): Likewise.
13499 (update_br_prob_note, rtl_verify_edges, purge_dead_edges): Likewise.
13500 * emit-rtl.c (try_split): Likewise.
13501 * predict.c (br_prob_note_reliable_p): Likewise.
13502 (invert_br_probabilities, combine_predictions_for_insn): Likewise.
13503 * reorg.c (mostly_true_jump): Likewise.
13504 * config/bfin/bfin.c (cbranch_predicted_taken_p): Likewise.
13505 * config/frv/frv.c (frv_print_operand_jump_hint): Likewise.
13506 * config/i386/i386.c (ix86_print_operand): Likewise.
13507 * config/ia64/ia64.c (ia64_print_operand): Likewise.
13508 * config/mmix/mmix.c (mmix_print_operand): Likewise.
13509 * config/rs6000/rs6000.c (output_cbranch): Likewise.
13510 * config/s390/s390.c (s390_expand_tbegin): Likewise.
13511 * config/sh/sh.c (sh_print_operand, sh_adjust_cost): Likewise.
13512 * config/sparc/sparc.c (output_cbranch): Likewise.
13513 * config/spu/spu.c (get_branch_target): Likewise.
13514 * config/tilegx/tilegx.c (cbranch_predicted_p): Likewise.
13515 * config/tilepro/tilepro.c (cbranch_predicted_p): Likewise.
13517 2013-09-23 Jan Hubicka <jh@suse.cz>
13519 * ipa-cp.c (ipa_get_indirect_edge_target_1): Add sanity check
13521 * ipa-utils.h (possible_polymorphic_call_target_p): New function.
13522 * ipa-devirt.c (possible_polymorphic_call_target_p): Be tolerant
13524 * gimple-fold.c: Include ipa-utils.h and gimple-pretty-print.h
13525 (gimple_fold_call): Dump inconsistent devirtualizations; add
13526 sanity check for type based devirtualizations.
13527 * ipa-prop.c: Include ipa-utils.h
13528 (ipa_intraprocedural_devirtualization): Add sanity check.
13529 (try_make_edge_direct_virtual_call): Likewise.
13531 2013-09-23 Eric Botcazou <ebotcazou@adacore.com>
13533 * tree-ssa-ccp.c (insert_clobber_before_stack_restore): Recurse on copy
13534 assignment statements.
13536 2013-09-23 Kugan Vivekanandarajah <kuganv@linaro.org>
13538 * gimple-pretty-print.c (dump_ssaname_info): New function.
13539 (dump_gimple_phi): Call it.
13540 (pp_gimple_stmt_1): Likewise.
13541 * tree-core.h (tree_ssa_name): New union ssa_name_info_type field.
13542 (range_info_def): Declare.
13543 * tree-pretty-print.c (pp_double_int): New function.
13544 (dump_generic_node): Call it.
13545 * tree-pretty-print.h (pp_double_int): Declare.
13546 * tree-ssa-alias.c (dump_alias_info): Check pointer type.
13547 * tree-ssanames.h (range_info_def): New structure.
13548 (value_range_type): Move definition here.
13549 (set_range_info, value_range_type, duplicate_ssa_name_range_info):
13551 * tree-ssanames.c (make_ssa_name_fn): Check pointer type at
13553 (set_range_info): New function.
13554 (get_range_info): Likewise.
13555 (duplicate_ssa_name_range_info): Likewise.
13556 (duplicate_ssa_name_fn): Check pointer type and call
13557 duplicate_ssa_name_range_info.
13558 * tree-ssa-copy.c (fini_copy_prop): Likewise.
13559 * tree-vrp.c (value_range_type): Remove definition, now in
13561 (vrp_finalize): Call set_range_info to update value range of SSA_NAMEs.
13562 * tree.h (SSA_NAME_PTR_INFO): Macro changed to access via union.
13563 (SSA_NAME_RANGE_INFO): New macro.
13565 2013-09-23 Richard Biener <rguenther@suse.de>
13567 PR tree-optimization/58464
13568 * tree-ssa-pre.c (phi_trans_lookup): Remove.
13569 (phi_trans_add): Change to add conditionally on being not present.
13570 (phi_translate_1): Remove recursion detection here.
13571 (phi_translate): Pre-seed the cache with NULL to catch
13572 recursion here in a more generic way.
13573 (bitmap_find_leader): Adjust comment.
13574 (get_representative_for): Dump value-numbers.
13575 (create_expression_by_pieces): Likewise.
13576 (insert_into_preds_of_block): Likewise.
13578 2013-09-23 Christian Bruel <christian.bruel@st.com>
13581 * config/sh/sh.md (movsf_ie): Allow fpul_operand.
13582 * config/sh/predicate.md (arith_reg_operand): Disallow FPUL_REG.
13584 2013-09-23 James Greenhalgh <james.greenhalgh@arm.com>
13587 2013-09-20 Renlin Li <renlin.li@arm.com>
13589 * config/aarch64/aarch64.c (aarch64_expand_prologue): Use
13591 (aarch64_expand_epilogue): Likewise.
13592 (aarch64_legitimize_reload_address): Likewise.
13594 2013-09-22 Eric Botcazou <ebotcazou@adacore.com>
13596 * gimplify.c (gimplify_asm_expr): Reset the TREE_CHAIN of clobbers to
13597 NULL_TREE before pushing them onto the vector. Likewise for labels.
13599 2013-09-21 Eric Botcazou <ebotcazou@adacore.com>
13601 * config/ia64/predicates.md (ia64_cbranch_operator): Accept unordered
13602 comparison operators when -fno-trapping-math is in effect.
13603 * config/ia64/ia64.c (ia64_expand_compare): Add support for unordered
13604 comparison operators in TFmode and assert that unsupported operators
13606 (ia64_print_operand): Likewise.
13608 2013-09-21 Jan Hubicka <jh@suse.cz>
13610 * x86-tune.def (partial_reg_stall): Disable for CoreI7 and newer.
13611 (sse_typeless_stores): Enable for core
13612 (sse_load0_by_pxor): Likewise.
13613 (four_jump_limit): Disable for core.
13614 (pad_returns): Likewise.
13615 (avoid_vector_decode): Likewise.
13616 (fuse_cmp_and_branch): Enable for cores.
13617 * i386.c (x86_accumulate_outgoing_args): Disable for cores.
13619 2013-09-20 John David Anglin <danglin@gcc.gnu.org>
13621 PR middle-end/56791
13622 * config/pa/pa.c (pa_option_override): Disable auto increment and
13623 decrement instructions until reload is completed.
13625 * config/pa/pa-linux.h (TARGET_OS_CPP_BUILTINS): Define
13626 __GCC_HAVE_SYNC_COMPARE_AND_SWAP_1, __GCC_HAVE_SYNC_COMPARE_AND_SWAP_2,
13627 and __GCC_HAVE_SYNC_COMPARE_AND_SWAP_4.
13629 2013-09-20 DJ Delorie <dj@redhat.com>
13630 Nick Clifton <nickc@redhat.com>
13632 * config/rl78/rl78.c: Various whitespace and comment tweaks.
13633 (need_to_save): Save bank 0 on interrupts.
13634 (characterize_address): Strip far address wrappers.
13635 (rl78_as_legitimate_address): Likewise.
13636 (transcode_memory_rtx): Likewise.
13637 (rl78_peep_movhi_p): Disable this peephole after devirt.
13638 (rl78_propogate_register_origins): Forget all origins when a
13640 * config/rl78/rl78-virt.md: Various whitespace tweaks.
13641 * config/rl78/rl78-real.md: Various whitespace tweaks. Additional
13643 * config/rl78/rl78.md (sel_rb): Disable for G10 just in case.
13644 * config/rl78/rl78-expand.md (movqi): Check for subregs of consts.
13645 * config/rl78/rl78.h (LINK_SPEC): Pass -gc-sections unless
13647 * config/rl78/constraints.md: Various whitespace and paren tweaks.
13649 2013-09-20 John David Anglin <danglin@gcc.gnu.org>
13651 * config/pa/pa.md: In "scc" insn patterns, change output template to
13652 handle const0_rtx in reg_or_0_operand operands.
13654 2013-09-20 Martin Husemann <martin@NetBSD.org>
13657 * config/vax/vax.c (vax_output_int_move): Use D format specifier.
13658 * config/vax/vax.md (ashldi3, <unnamed>): Ditto.
13660 2013-09-20 Richard Biener <rguenther@suse.de>
13662 PR middle-end/58484
13663 * tree-scalar-evolution.c (struct scev_info_str): Shrink by
13664 remembering SSA name version and block index.
13665 (new_scev_info_str): Adjust.
13666 (hash_scev_info): Likewise. Also hash the block index.
13667 (eq_scev_info): Adjust.
13668 (find_var_scev_info): Likewise.
13669 (struct instantiate_cache_entry): Remove.
13670 (struct instantiate_cache_type): Use a htab to map name, block
13672 (instantiate_cache_type::~instantiate_cache_type): Adjust.
13673 (get_instantiated_value_entry): Likewise.
13674 (hash_idx_scev_info, eq_idx_scev_info): New functions.
13675 (instantiate_scev_name): Adjust.
13677 2013-09-20 Jeff Law <law@redhat.com>
13679 * tree-ssa-dom.c (record_temporary_equivalences): Add comment.
13681 2013-09-20 Yufeng Zhang <yufeng.zhang@arm.com>
13683 * config/aarch64/aarch64-builtins.c (aarch64_simd_expand_args):
13684 Call aarch64_simd_expand_args to update op[argc].
13686 2013-09-20 Basile Starynkevitch <basile@starynkevitch.net>
13688 * plugin.c (parse_plugin_arg_opt): Accept equal sign inside
13691 2013-09-20 Basile Starynkevitch <basile@starynkevitch.net>
13693 * gengtype.c (file_rules): Added rule for *.cc files.
13694 (get_output_file_with_visibility): Give fatal message when no
13697 2013-09-20 Renlin Li <renlin.li@arm.com>
13699 * config/aarch64/aarch64.c (aarch64_expand_prologue): Use plus_constant.
13700 (aarch64_expand_epilogue): Likewise.
13701 (aarch64_legitimize_reload_address): Likewise.
13703 2013-09-20 Bernd Edlinger <bernd.edlinger@hotmail.de>
13705 PR middle-end/57748
13706 * expr.c (expand_assignment): Remove misalignp code path.
13708 2013-09-20 Marek Polacek <polacek@redhat.com>
13711 * ubsan.c (get_ubsan_type_info_for_type): Use TYPE_SIZE instead of
13712 TYPE_PRECISION. Add asserts.
13714 2013-09-20 Richard Biener <rguenther@suse.de>
13716 PR tree-optimization/58453
13717 * tree-loop-distribution.c (distribute_loop): Apply the cost
13718 model for -ftree-loop-distribute-patterns, too.
13720 2013-09-20 Richard Biener <rguenther@suse.de>
13722 PR middle-end/58473
13723 * tree-chrec.h (build_polynomial_chrec): Use gcc_checking_assert,
13724 make type comparison less strict.
13726 2013-09-20 Alan Modra <amodra@gmail.com>
13728 * configure: Regenerate.
13729 * aclocal.m4: Regenerate.
13731 2013-09-20 Marek Polacek <polacek@redhat.com>
13734 * doc/extend.texi: Document that attribute used is meant to be used
13735 on variables with static storage duration.
13737 2013-09-19 Jakub Jelinek <jakub@redhat.com>
13739 PR tree-optimization/58472
13740 * tree-vect-stmts.c (vectorizable_store, vectorizable_load): For
13741 simd_lane_access set inv_p = false.
13742 * omp-low.c (lower_rec_input_clauses): Set TREE_NO_WARNING on
13743 the simduid magic VAR_DECL.
13745 2013-09-19 Jan Hubicka <jh@suse.cz>
13747 * i386.c (generic_memcpy, generic_memset): Fix 32bit template.
13749 2013-09-17 Jeff Law <law@redhat.com>
13751 * tree-ssa-dom.c (record_temporary_equivalences): New function
13752 split out of dom_opt_dom_walker::after_dom_children.
13753 (dom_opt_dom_walker::thread_across_edge): Move common code
13754 in here from dom_opt_dom_walker::after_dom_children.
13755 (dom_opt_dom_walker::after_dom_children): Corresponding simplifictions.
13757 2013-09-19 Jan Hubicka <jh@suse.cz>
13759 * i386.h (TARGET_GENERIC32, TARGET_GENERIC64): Remove.
13760 (TARGET_GENERIC): Use PROCESOR_GENERIC
13761 (enum processor_type): Unify generic32 and 64.
13762 * i386.md (cpu): Likewise.
13763 * x86-tune.def (use_leave): Enable for generic32.
13764 (avoid_vector_decode, slow_imul_imm32_mem, slow_imul_imm8): Likewise.
13765 * athlon.md: Change generic64 to generic in all occurences.
13766 * i386-c.c (ix86_target_macros_internal): Unify generic64 and 32.
13767 (ix86_target_macros_internal): Likewise.
13768 * driver-i386.c (host_detect_local_cpu): Likewise.
13769 * i386.c (generic64_memcpy, generic64_memset, generic64_cost): Rename
13771 (generic_memcpy, generic_memset, generic_cost): This one.
13772 (generic32_memcpy, generic32_memset, generic32_cost): Remove.
13773 (m_GENERIC32, m_GENERIC64): Remove.
13774 (m_GENERIC): Turn into one flag.
13775 (processor_target): Unify generic tunnings.
13776 (ix86_option_override_internal): Replace generic32/64 by generic.
13777 (ix86_issue_rate): Likewise.
13778 (ix86_adjust_cost): Likewise.
13780 2013-09-19 Jan Hubicka <jh@suse.cz>
13782 * cgraph.c (cgraph_create_edge_1): Avoid uninitialized read
13783 of speculative flag.
13785 2013-09-19 Jakub Jelinek <jakub@redhat.com>
13787 * omp-low.c (expand_omp_sections): Always pass len - 1 to
13788 GOMP_sections_start, even if !exit_reachable.
13790 2013-09-18 Vladimir Makarov <vmakarov@redhat.com>
13792 * lra-constraints.c (need_for_all_save_p): Use macro
13793 HARD_REGNO_CALL_PART_CLOBBERED.
13794 * lra-lives.c (check_pseudos_live_through_calls): Use the macro to
13795 set up pseudo conflict hard regs.
13797 2013-09-18 Michael Meissner <meissner@linux.vnet.ibm.com>
13800 * config/rs6000/paired.md (movmisalignv2sf): Fix to allow memory
13803 2013-09-18 Vladimir Makarov <vmakarov@redhat.com>
13805 PR rtl-optimization/58438
13806 * lra.c (lra): Clear lra_optional_reload_pseudos in upper loop.
13807 * lra-constraints.c (undo_optional_reloads): Keep optional reloads
13808 from previous subpasses.
13810 2013-09-18 Richard Earnshaw <rearnsha@arm.com>
13812 * arm.c (arm_get_frame_offsets): Validate architecture supports
13813 LDRD/STRD before accepting the tuning preference.
13814 (arm_expand_prologue): Likewise.
13815 (arm_expand_epilogue): Likewise.
13817 2013-09-18 Richard Biener <rguenther@suse.de>
13819 PR tree-optimization/58417
13820 * tree-chrec.c (chrec_fold_plus_1): Assert that we do not
13821 have chrecs with symbols defined in the loop as operands.
13822 (chrec_fold_multiply): Likewise.
13823 * tree-scalar-evolution.c (interpret_rhs_expr): Instantiate
13824 parameters before folding binary operations.
13825 (struct instantiate_cache_entry_hasher): Remove.
13826 (struct instantiate_cache_type): Use a pointer-map.
13827 (instantiate_cache_type::instantiate_cache_type): New function.
13828 (instantiate_cache_type::get): Likewise.
13829 (instantiate_cache_type::set): Likewise.
13830 (instantiate_cache_type::~instantiate_cache_type): Adjust.
13831 (get_instantiated_value_entry): Likewise.
13832 (global_cache): New global.
13833 (instantiate_scev_r, instantiate_scev_poly, instantiate_scev_binary,
13834 instantiate_array_ref, instantiate_scev_convert, instantiate_scev_3,
13835 instantiate_scev_2, instantiate_scev_1): Do not pass along cache.
13836 (instantiate_scev_name): Adjust.
13837 (instantiate_scev): Construct global instead of local cache.
13838 (resolve_mixers): Likewise.
13840 2013-09-18 Daniel Morris <danielm@ecoscentric.com>
13841 Paolo Carlini <paolo.carlini@oracle.com>
13844 * doc/implement-cxx.texi: Fix references to the C++ standards.
13846 2013-09-18 Jakub Jelinek <jakub@redhat.com>
13848 * omp-low.c (copy_var_decl): Copy DECL_ATTRIBUTES.
13849 * tree-vect-data-refs.c (vect_analyze_data_refs): For
13850 simd_lane_access drs, update also DR_ALIGNED_TO.
13852 2013-09-18 Marek Polacek <polacek@redhat.com>
13855 * doc/extend.texi: Document no_sanitize_undefined attribute.
13856 * builtins.c (fold_builtin_0): Don't sanitize function if it has the
13857 no_sanitize_undefined attribute.
13859 2013-09-18 Nick Clifton <nickc@redhat.com>
13861 * config/msp430/msp430.h (ASM_SPEC): Pass -md on to the assembler.
13862 (ASM_DECLARE_FUNCTION_NAME): Define.
13864 2013-09-17 Trevor Saunders <tsaunders@mozilla.com>
13866 * compare-elim.c (find_comparison_dom_walker): New class
13867 (find_comparisons_in_bb): Rename to
13868 find_comparison_dom_walker::before_dom_children
13869 (find_comparisons): Adjust
13870 * domwalk.c (walk_dominator_tree): Rename to dom_walker::walk, and
13872 (init_walk_dominator_tree, fini_walk_dominator_tree): Remove
13873 * domwalk.h (dom_walk_data): Convert it To a class dom_walker.
13874 (init_walk_dominator_tree): Remove declaration.
13875 (fini_walk_dominator_tree): Remove declaration.
13876 * fwprop.c (single_def_use_dom_walker): New class
13877 (single_def_use_enter_block): Convert to
13878 single_def_use_dom_walker::before_dom_children.
13879 (single_def_use_leave_block): Convert to
13880 single_def_use_dom_walker::after_dom_children.
13881 (build_single_def_use_links): Adjust.
13882 * gimple-ssa-strength-reduction.c (find_candidates_dom_walker): New
13884 (find_candidates_in_block): Convert to
13885 find_candidates_dom_walker::before_dom_children.
13886 (execute_strength_reduction): Adjust.
13887 * graphite-sese-to-poly.c (struct bsc, build_sese_conditions): Remove.
13888 (sese_dom_walker): New class.
13889 (sese_dom_walker::sese_dom_walker): New constructor.
13890 (sese_dom_walker::~sese_dom_walker): New destructor.
13891 (build_sese_conditions_before): Convert to
13892 sese_dom_walker::before_dom_children.
13893 (build_sese_conditions_after): Convert to
13894 sese_dom_walker::after_dom_children.
13895 (build_poly_scop): Adjust
13896 * tree-into-ssa.c (rewrite_dom_walker): New class
13897 (rewrite_enter_block): Convert to
13898 rewrite_dom_walker::before_dom_children.
13899 (rewrite_leave_block): Convert to
13900 rewrite_dom_walker::after_dom_children.
13901 (rewrite_update_dom_walker): New class.
13902 (rewrite_update_enter_block): Convert to
13903 rewrite_update_dom_walker::before_dom_children.
13904 (rewrite_update_leave_block): Convert to
13905 rewrite_update_dom_walker::after_dom_children.
13906 (rewrite_blocks, rewrite_into_ssa): Adjust.
13907 (mark_def_dom_walker): New class.
13908 (mark_def_dom_walker::mark_def_dom_walker): New constructor.
13909 (mark_def_dom_walker::~mark_def_dom_walker): New destructor.
13910 (mark_def_sites_blocks): Convert to
13911 mark_def_dom_walker::before_dom_children.
13912 (mark_def_site_blocks): Remove.
13913 * tree-ssa-dom.c (dom_opt_dom_walker): New class.
13914 (tree_ssa_dominator_optimize): Adjust.
13915 (dom_thread_across_edge): Convert to method
13916 dom_opt_dom_walker::thread_across_edge.
13917 (dom_opt_enter_block): Convert to member function
13918 dom_opt_dom_walker::before_dom_children.
13919 (dom_opt_leave_block): Convert to member function
13920 dom_opt_dom_walker::after_dom_children.
13921 * tree-ssa-dse.c (dse_dom_walker): New class.
13922 (dse_enter_block): Convert to member function
13923 dse_dom_walker::before_dom_children.
13924 (tree_ssa_dse): Adjust.
13925 * tree-ssa-loop-im.c (invariantness_dom_walker): New class.
13926 (determine_invariantness_stmt): Convert to method
13927 invariantness_dom_walker::before_dom_children.
13928 (determine_invariantness): Remove
13929 (move_computations_dom_walker): New class.
13930 (move_computations_stmt): Convert to method
13931 move_computations_dom_walker::before_dom_children.
13932 (move_computations, tree_ssa_lim): Adjust.
13933 * tree-ssa-phiopt.c (nontrapping_dom_walker): New class.
13934 (nt_init_block): Convert to method
13935 notrappping_dom_walker::before_dom_children.
13936 (nt_fini_block): Convert to method
13937 method nontrapping_dom_walker::after_dom_children.
13938 (get_non_trapping): Adjust.
13939 * tree-ssa-pre.c (eliminate_dom_walker): New class.
13940 (eliminate_bb): Convert to method
13941 eliminate_dom_walker::before_dom_children.
13942 (eliminate_leave_block): Convert to method
13943 eliminate_dom_walker::after_dom_children.
13944 (eliminate): Adjust.
13945 * tree-ssa-strlen.c (strlen_dom_walker): New class.
13946 (strlen_enter_block): Convert to method
13947 strlen_dom_walker::before_dom_children.
13948 (strlen_leave_block): Convert to method
13949 method strlen_dom_walker::after_dom_children.
13950 (tree_ssa_strlen): Adjust.
13951 * tree-ssa-uncprop.c (uncprop_dom_walker): New class.
13952 (tree_ssa_uncprop): Adjust.
13953 (uncprop_leave_block): Convert to method
13954 uncprop_dom_walker::after_dom_children.
13955 (uncprop_leave_block): Convert to method
13956 uncprop_dom_walker::before_dom_children.
13958 2013-09-18 Bin Cheng <bin.cheng@arm.com>
13960 * config/arm/arm.c (thumb1_reorg): Search for flag setting insn before
13961 branch in same basic block. Check both src and dest of the move insn.
13963 2013-09-17 Nick Clifton <nickc@redhat.com>
13965 * config/rl78/rl78-real.md (bf): New pattern.
13967 * config/rl78/rl78.c (rl78_print_operand_1): Handle %B.
13968 (rl78_print_operand): Do not put a # before a %B.
13969 * config/rl78/rl78.opt: Tweak doc strings.
13971 2013-09-17 DJ Delorie <dj@redhat.com>
13973 * config/rl78/constraints.md (Wcv): Allow up to $r31.
13974 * config/rl78/rl78.c (rl78_asm_file_start: Likewise.
13975 (rl78_option_override): Likewise, if -mallregs.
13976 (is_virtual_register): Likewise.
13977 * config/rl78/rl78.h (reg_class): Extend VREGS to $r31.
13978 (REGNO_OK_FOR_BASE_P): Likewise.
13979 * config/rl78/rl78.opt (-mallregs): New.
13981 2013-09-17 Nick Clifton <nickc@redhat.com>
13983 * config/rl78/rl78.c (need_to_save): Change return type to bool.
13984 For interrupt functions: save all call clobbered registers if the
13985 interrupt handler is not a leaf function.
13986 (rl78_expand_prologue): Always recompute the frame information.
13987 For interrupt functions: only select bank 0 if one of the bank 0
13988 registers is going to be psuhed.
13990 2013-09-17 DJ Delorie <dj@redhat.com>
13992 * config/rl78/constraints.md: For each W* constraint, rename to C*
13993 and create a W* constraint that checks for an optional ES: prefix
13995 * config/rl78/rl78.md (UNS_ES_ADDR): New.
13996 (es_addr): New. Used to wrap far addresses.
13997 * config/rl78/rl78-protos.h (rl78_es_addr): New.
13998 (rl78_es_base): New.
13999 * config/rl78/rl78.c (rl78_as_legitimate_address): Accept "unspec"
14000 wrapped far addresses.
14001 (rl78_print_operand_1): Unwrap far addresses before processing.
14002 (rl78_lo16): Wrap far addresses in unspecs.
14003 (rl78_es_addr): New.
14004 (rl78_es_base): New.
14005 (insn_ok_now): Check for not-yet-wrapped far addresses.
14006 (transcode_memory_rtx): Properly re-wrap far addresses.
14008 2013-09-17 Sebastian Huber <sebastian.huber@embedded-brains.de>
14010 * config/sparc/t-rtems: Add leon3 multilibs.
14012 2013-09-17 Cong Hou <congh@google.com>
14014 * tree-vect-patterns.c (vect_recog_dot_prod_pattern): Fix a bug
14015 when checking the dot production pattern. The type of rhs operand
14016 of multiply is now checked correctly.
14018 2013-09-17 Jeff Law <law@redhat.com>
14020 * tree-ssa-dom.c (cprop_into_successor_phis): Also propagate
14021 edge implied equivalences into successor phis.
14022 * tree-ssa-threadupdate.c (phi_args_equal_on_edges): Moved into
14023 here from tree-ssa-threadedge.c.
14024 (mark_threaded_blocks): When threading through a joiner, if both
14025 successors of the joiner's clone reach the same block, verify the
14026 PHI arguments are equal. If not, cancel the jump threading request.
14027 * tree-ssa-threadedge.c (phi_args_equal_on_edges): Moved into
14028 tree-ssa-threadupdate.c
14029 (thread_across_edge): Don't check PHI argument equality when
14030 threading through joiner block here.
14032 2013-09-17 Andrew MacLeod <amacleod@redhat.com>
14034 * tree-flow.h (ssa_undefined_value_p): Remove prototype.
14035 * tree-ssa.c (ssa_undefined_value_p): Move pass independent parts here.
14036 (warn_uninit, warn_uninitialized_vars,
14037 execute_early_warn_uninitialized, make_pass_early_warn_uninitialized):
14038 Move to tree-ssa-uninit.c.
14039 * tree-ssa-uninit.c (ssa_undefined_value_p): Move to tree-ssa.c.
14040 (has_undefined_value_p): New. Pass dependant parts of
14041 ssa_undefined_value_p.
14042 (uninit_undefined_value_p): Use has_undefined_value_p.
14043 (warn_uninit, warn_uninitialized_vars,
14044 execute_early_warn_uninitialized, make_pass_early_warn_uninitialized):
14045 Move from tree-ssa.c.
14046 * tree-ssa.h: Adjust prototypes.
14048 2013-09-17 Jan Hubicka <jh@suse.cz>
14050 PR middle-end/58332
14051 * cif-code.def (FUNCTION_NOT_OPTIMIZED): New CIF code.
14052 * ipa-inline.c (can_inline_edge_p): Do not downgrade
14053 FUNCTION_NOT_OPTIMIZED.
14054 * ipa-inline-analysis.c (compute_inline_parameters): Function
14055 not optimized is not inlinable unless it is alwaysinline.
14056 (inline_analyze_function): Force calls in not optimized
14057 function not inlinable.
14059 2013-09-17 Jan Hubicka <jh@suse.cz>
14061 PR middle-end/58329
14062 * ipa-devirt.c (ipa_devirt): Be ready for symtab_nonoverwritable_alias
14064 * ipa.c (function_and_variable_visibility): Likewise.
14065 * ipa-profile.c (ipa_profile): Likewise.
14067 2013-09-17 Bernd Edlinger <bernd.edlinger@hotmail.de>
14070 * cgraph.c (cgraph_function_body_availability): Check for ifunc
14071 attribute, and don't inline the resolver in this case.
14073 2013-09-17 Teresa Johnson <tejohnson@google.com>
14075 * coverage.c (get_coverage_counts): Add missing newline.
14077 2013-09-17 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
14079 PR tree-optimization/58088
14080 * fold-const.c (mask_with_trailing_zeros): New function.
14081 (fold_binary_loc): Make sure we don't recurse infinitely
14082 when the X in (X & C1) | C2 is a tree of the form (Y * K1) & K2.
14083 Use mask_with_trailing_zeros where appropriate.
14085 2013-09-17 Yuri Rumyantsev <ysrumyan@gmail.com>
14087 * config/i386/i386.c (distance_agu_use_in_bb) : Proper initialization
14088 of 'prev' var to get better distance estimation.
14090 2013-09-17 Eric Botcazou <ebotcazou@adacore.com>
14092 * tree-inline.h (struct copy_body_data): Add transform_parameter.
14093 * tree-inline.c (is_parameter_of): New predicate.
14094 (remap_gimple_op_r): Do not propagate TREE_THIS_NOTRAP on MEM_REF if
14095 a parameter has been remapped.
14096 (copy_tree_body_r): Likewise on INDIRECT_REF and MEM_REF.
14097 (optimize_inline_calls): Initialize transform_parameter.
14098 (copy_gimple_seq_and_replace_locals): Likewise.
14099 (tree_function_versioning): Likewise.
14100 (maybe_inline_call_in_expr): Likewise.
14102 2013-09-17 Nick Clifton <nickc@redhat.com>
14104 * config/msp430/msp430-protos.h: Add prototypes for new functions.
14105 * config/msp430/msp430.c (msp430_preserve_reg_p): Add support for
14106 interrupt handlers.
14107 (is_attr_func): New function.
14108 (msp430_is_interrupt_func): New function.
14109 (is_naked_func): New function.
14110 (is_reentrant_func): New function.
14111 (is_critical_func): New function.
14112 (msp430_start_function): Add annotations for function attributes.
14113 (msp430_attr): New function.
14114 (msp430_attribute_table): New.
14115 (msp430_function_section): New function.
14116 (TARGET_ASM_FUNCTION_SECTION): Define.
14117 (msp430_builtin): New enum.
14118 (msp430_init_builtins): New function.
14119 (msp430_builtin_devl): New function.
14120 (msp430_expand_builtin): New function.
14121 (TARGET_INIT_BUILTINS): Define.
14122 (TARGET_EXPAND_BUILTINS): Define.
14123 (TARGET_BUILTIN_DECL): Define.
14124 (msp430_expand_prologue): Add support for naked, interrupt,
14125 critical and reentrant functions.
14126 (msp430_expand_epilogue): Likewise.
14127 (msp430_print_operand): Handle 'O' character.
14128 * config/msp430/msp430.h (TARGET_CPU_CPP_BUILTINS): Define
14130 * config/msp430/msp430.md (unspec): Add UNS_DINT, UNS_EINT,
14131 UNS_PUSH_INTR, UNS_POP_INTR, UNS_BIC_SR, UNS_BIS_SR.
14132 (pushm): Use a 'n' rather than an 'i' constraint.
14133 (msp_return): Add generation of the interrupt return instruction.
14134 (disable_interrupts): New pattern.
14135 (enable_interrupts): New pattern.
14136 (push_intr_state): New pattern.
14137 (pop_intr_state): New pattern.
14138 (bic_SR): New pattern.
14139 (bis_SR): New pattern.
14140 * doc/extend.texi: Document MSP430 function attributes and builtin
14143 2013-09-17 Richard Biener <rguenther@suse.de>
14145 PR tree-optimization/58432
14146 * tree-loop-distribution.c (tree_loop_distribution): Also
14147 scan PHIs for outside loop uses and seed a partition from them.
14149 2013-09-17 Bin Cheng <bin.cheng@arm.com>
14151 * gimple-ssa-strength-reduction.c (backtrace_base_for_ref): New.
14152 (restructure_reference): Call backtrace_base_for_ref.
14154 2013-09-17 Alan Modra <amodra@gmail.com>
14157 * config/rs6000/driver-rs6000.c (elf_platform): Revert 2013-06-11
14160 2013-09-16 DJ Delorie <dj@redhat.com>
14162 * config/rl78/rl78.c (rl78_asm_file_start): Specify alternate
14163 vregs location for RL78/G10.
14164 (rl78_expand_prologue): Avoid SEL on G10.
14165 (rl78_expand_epilogue): Likewise.
14166 (rl78_peep_movhi_p): Can't move a constant to memory in HImode.
14167 * config/rl78/rl78.h (TARGET_CPU_CPP_BUILTINS): Define
14168 __RL78_G10__ when appropriate.
14169 (ASM_SPEC): Pass -mg10 along to the assembler.
14170 * config/rl78/rl78.md (sel_rb): Disable for G10.
14171 * config/rl78/rl78.opt: Add -mg10 option.
14172 * config/rl78/t-rl78: Add -mg10 multilib.
14174 2013-09-16 Xinliang David Li <davidxl@google.com>
14176 * tree-if-conv.c (main_tree_if_conversion): Check new flag.
14177 * omp-low.c (omp_max_vf): Ditto.
14178 (expand_omp_simd): Ditto.
14179 * tree-vectorizer.c (vectorize_loops): Ditto.
14180 (gate_vect_slp): Ditto.
14181 (gate_increase_alignment): Ditto.
14182 * tree-ssa-pre.c (inhibit_phi_insertion): Ditto.
14183 * tree-ssa-loop.c (gate_tree_vectorize): Ditto.
14184 (gate_tree_vectorize): Name change.
14185 (tree_vectorize): Ditto.
14186 (pass_vectorize::gate): Call new function.
14187 (pass_vectorize::execute): Ditto.
14188 * opts.c: O3 default setting change.
14189 (finish_options): Check new flag.
14190 * doc/invoke.texi: Document new flags.
14191 * common.opt: New flags.
14193 2013-09-16 Andreas Schwab <schwab@linux-m68k.org>
14195 * doc/tm.texi.in (Cond Exec Macros): Remove node.
14196 (Condition Code): Don't reference it.
14197 * doc/tm.texi: Regenerate.
14199 2013-09-16 Vladimir Makarov <vmakarov@redhat.com>
14201 PR middle-end/58418
14202 * lra-constraints.c (undo_optional_reloads): Consider all optional
14203 reload even if it did not get a hard reg.
14205 2013-09-16 Teresa Johnson <tejohnson@google.com>
14207 * dumpfile.c (dump_loc): Remove newline emission.
14208 * tree-vect-data-refs.c (vect_lanes_optab_supported_p): Add newline
14209 emission to dump_printf_loc calls where missing.
14210 (vect_mark_for_runtime_alias_test): Ditto.
14211 (vect_analyze_data_ref_dependence): Ditto.
14212 (vect_analyze_data_ref_dependences): Ditto.
14213 (vect_slp_analyze_data_ref_dependence): Ditto.
14214 (vect_slp_analyze_data_ref_dependences): Ditto.
14215 (vect_compute_data_ref_alignment): Ditto.
14216 (vect_update_misalignment_for_peel): Ditto.
14217 (vect_verify_datarefs_alignment): Ditto.
14218 (vector_alignment_reachable_p): Ditto.
14219 (vect_get_data_access_cost): Ditto.
14220 (vect_enhance_data_refs_alignment): Ditto.
14221 (vect_find_same_alignment_drs): Ditto.
14222 (vect_analyze_data_refs_alignment): Ditto.
14223 (vect_analyze_group_access): Ditto.
14224 (vect_analyze_data_ref_access): Ditto.
14225 (vect_analyze_data_ref_accesses): Ditto.
14226 (vect_prune_runtime_alias_test_list): Ditto.
14227 (vect_analyze_data_refs): Ditto.
14228 (vect_create_addr_base_for_vector_ref): Ditto.
14229 (vect_create_data_ref_ptr): Ditto.
14230 (vect_grouped_store_supported): Ditto.
14231 (vect_grouped_load_supported): Ditto.
14232 * value-prof.c (check_counter): Ditto.
14233 (check_ic_target): Ditto.
14234 * tree-vect-patterns.c (vect_recog_dot_prod_pattern): Ditto.
14235 (vect_recog_widen_mult_pattern): Ditto.
14236 (vect_recog_widen_sum_pattern): Ditto.
14237 (vect_recog_over_widening_pattern): Ditto.
14238 (vect_recog_widen_shift_pattern): Ditto.
14239 (vect_recog_rotate_pattern): Ditto.
14240 (vect_recog_vector_vector_shift_pattern): Ditto.
14241 (vect_recog_divmod_pattern): Ditto.
14242 (vect_recog_mixed_size_cond_pattern): Ditto.
14243 (vect_recog_bool_pattern): Ditto.
14244 (vect_pattern_recog_1): Ditto.
14245 (vect_pattern_recog): Ditto.
14246 * tree-vect-loop.c (vect_determine_vectorization_factor): Ditto.
14247 (vect_is_simple_iv_evolution): Ditto.
14248 (vect_analyze_scalar_cycles_1): Ditto.
14249 (vect_get_loop_niters): Ditto.
14250 (vect_analyze_loop_1): Ditto.
14251 (vect_analyze_loop_form): Ditto.
14252 (vect_analyze_loop_operations): Ditto.
14253 (vect_analyze_loop_2): Ditto.
14254 (vect_analyze_loop): Ditto.
14255 (report_vect_op): Ditto.
14256 (vect_is_slp_reduction): Ditto.
14257 (vect_is_simple_reduction_1): Ditto.
14258 (vect_get_known_peeling_cost): Ditto.
14259 (vect_estimate_min_profitable_iters): Ditto.
14260 (vect_model_reduction_cost): Ditto.
14261 (vect_model_induction_cost): Ditto.
14262 (get_initial_def_for_induction): Ditto.
14263 (vect_create_epilog_for_reduction): Ditto.
14264 (vectorizable_reduction): Ditto.
14265 (vectorizable_induction): Ditto.
14266 (vectorizable_live_operation): Ditto.
14267 (vect_loop_kill_debug_uses): Ditto.
14268 (vect_transform_loop): Ditto.
14269 * tree-vect-stmts.c (vect_mark_relevant): Ditto.
14270 (vect_stmt_relevant_p): Ditto.
14271 (process_use): Ditto.
14272 (vect_mark_stmts_to_be_vectorized): Ditto.
14273 (vect_model_simple_cost): Ditto.
14274 (vect_model_promotion_demotion_cost): Ditto.
14275 (vect_model_store_cost): Ditto.
14276 (vect_get_store_cost): Ditto.
14277 (vect_model_load_cost): Ditto.
14278 (vect_get_load_cost): Ditto.
14279 (vect_init_vector_1): Ditto.
14280 (vect_get_vec_def_for_operand): Ditto.
14281 (vect_finish_stmt_generation): Ditto.
14282 (vectorizable_call): Ditto.
14283 (vectorizable_conversion): Ditto.
14284 (vectorizable_assignment): Ditto.
14285 (vectorizable_shift): Ditto.
14286 (vectorizable_operation): Ditto.
14287 (vectorizable_store): Ditto.
14288 (vectorizable_load): Ditto.
14289 (vectorizable_condition): Ditto.
14290 (vect_analyze_stmt): Ditto.
14291 (vect_transform_stmt): Ditto.
14292 (vect_is_simple_use): Ditto.
14293 * tree-vect-loop-manip.c (slpeel_make_loop_iterate_ntimes): Ditto.
14294 (vect_can_advance_ivs_p): Ditto.
14295 (vect_update_ivs_after_vectorizer): Ditto.
14296 (vect_do_peeling_for_loop_bound): Ditto.
14297 (vect_gen_niters_for_prolog_loop): Ditto.
14298 (vect_update_inits_of_drs): Ditto.
14299 (vect_create_cond_for_alias_checks): Ditto.
14300 * tree-vect-slp.c (vect_get_and_check_slp_defs): Ditto.
14301 (vect_build_slp_tree_1): Ditto.
14302 (vect_supported_load_permutation_p): Ditto.
14303 (vect_analyze_slp_instance): Ditto.
14304 (vect_analyze_slp): Ditto.
14305 (vect_make_slp_decision): Ditto.
14306 (vect_detect_hybrid_slp): Ditto.
14307 (vect_bb_vectorization_profitable_p): Ditto.
14308 (vect_slp_analyze_bb_1): Ditto.
14309 (vect_update_slp_costs_according_to_vf): Ditto.
14310 (vect_get_mask_element): Ditto.
14311 (vect_transform_slp_perm_load): Ditto.
14312 (vect_schedule_slp_instance): Ditto.
14313 (vect_schedule_slp): Ditto.
14314 (vect_slp_transform_bb): Ditto.
14315 * profile.c (read_profile_edge_counts): Ditto.
14316 (compute_branch_probabilities): Ditto.
14317 * coverage.c (get_coverage_counts): Ditto.
14319 2013-09-16 Diego Novillo <dnovillo@google.com>
14321 * tree-core.h: Add missing comment lines from refactoring of tree.h.
14323 2013-09-16 Jan Hubicka <jh@suse.cz>
14325 * gimple-fold.c (can_refer_decl_in_current_unit_p): Do not accept
14326 abstract functions; for static functions check the presence of body.
14328 2013-09-16 James Greenhalgh <james.greenhalgh@arm.com>
14330 * config/aarch64/aarch64-simd-builtins.def (fma): New.
14331 * config/aarch64/aarch64-simd.md
14332 (aarch64_mla_elt<mode>): New.
14333 (aarch64_mla_elt_<vswap_width_name><mode>): Likewise.
14334 (aarch64_mls_elt<mode>): Likewise.
14335 (aarch64_mls_elt_<vswap_width_name><mode>): Likewise.
14336 (aarch64_fma4_elt<mode>): Likewise.
14337 (aarch64_fma4_elt_<vswap_width_name><mode>): Likewise.
14338 (aarch64_fma4_elt_to_128v2df): Likewise.
14339 (aarch64_fma4_elt_to_64df): Likewise.
14340 (fnma<mode>4): Likewise.
14341 (aarch64_fnma4_elt<mode>): Likewise.
14342 (aarch64_fnma4_elt_<vswap_width_name><mode>): Likewise.
14343 (aarch64_fnma4_elt_to_128v2df): Likewise.
14344 (aarch64_fnma4_elt_to_64df): Likewise.
14345 * config/aarch64/iterators.md (VDQSF): New.
14346 * config/aarch64/arm_neon.h
14347 (vfm<as><sdq>_lane<q>_f<32, 64>): Convert to C implementation.
14348 (vml<sa><q>_lane<q>_<fsu><16, 32, 64>): Likewise.
14350 2013-09-16 James Greenhalgh <james.greenhalgh@arm.com>
14352 * config/aarch64/aarch64-simd.md (aarch64_mul3_elt<mode>): New.
14353 (aarch64_mul3_elt_<vswap_width_name><mode>): Likewise.
14354 (aarch64_mul3_elt_to_128df): Likewise.
14355 (aarch64_mul3_elt_to_64v2df): Likewise.
14356 * config/aarch64/iterators.md (VEL): Also handle DFmode.
14358 (VMUL_CHANGE_NLANES) Likewise.
14361 * config/aarch64/arm_neon.h
14362 (vmul<q>_lane<q>_<suf><16,32,64>): Convert to C implementation.
14364 2013-09-16 James Greenhalgh <james.greenhalgh@arm.com>
14366 * config/aarch64/arm_neon.h
14367 (vcvtx_high_f32_f64): Fix parameters.
14369 2013-09-16 Jan-Benedict Glaw <jbglaw@lug-owl.de>
14370 Uros Bizjak <ubizjak@gmail.com>
14372 * config/alpha.c: Include tree-ssanames.h.
14374 2013-09-16 Richard Biener <rguenther@suse.de>
14376 * tree-loop-distribution.c (enum rdg_dep_type): Add control_dd.
14377 (dot_rdg_1): Handle control_dd.
14378 (create_edge_for_control_dependence): New function.
14379 (create_rdg_edges): Add control dependences if asked for.
14380 (build_rdg): Likewise.
14381 (generate_loops_for_partition): If there are not necessary
14382 control stmts remove all their dependencies.
14383 (collect_condition_stmts, rdg_flag_loop_exits): Remove.
14384 (distribute_loop): Pass on control dependences.
14385 (tree_loop_distribution): Compute control dependences and remove
14386 restriction on number of loop nodes.
14388 2013-09-16 Jakub Jelinek <jakub@redhat.com>
14390 * ipa-prop.c (ipa_compute_jump_functions_for_edge): Return early
14391 for internal calls.
14393 2013-09-16 Richard Sandiford <rdsandiford@googlemail.com>
14395 * cse.c (try_const_anchors): Punt on CC modes.
14397 2013-09-15 Jan-Benedict Glaw <jbglaw@lug-owl.de>
14399 * config/vax/constraints.md (T): Add missing CONSTANT_P check.
14401 2013-09-14 John David Anglin <danglin@gcc.gnu.org>
14404 * config/pa/pa.c (pa_expand_prologue): Change mode in gen_rtx_POST_INC
14405 calls to word_mode.
14407 2013-09-14 Iain Sandoe <iain@codesourcery.com>
14410 * config/darwin.c (darwin_objc2_section): Note if ObjC Metadata is
14412 (darwin_objc1_section): Likewise.
14413 (darwin_file_end): Emit Image Info section when required.
14415 2013-09-14 Jan Hubicka <jh@suse.cz>
14417 * tree-into-ssa.c (gate_into_ssa): New.
14418 (pass_data_build_ssa): Use it.
14419 * cgraph.h (expand_thunk): Update prototype.
14420 * cgraphunit.c (analyze_function): Expand thunks early.
14421 (expand_thunk): Fix DECL_CONTEXT of reust_decl;
14422 build proper cgraph; set in_ssa_p; clear bogus TREE_ASM_WRITTEN;
14423 set lowered flag; do not add new function.
14424 (assemble_thunks_and_aliases): Update.
14425 * tree-ssa.c (gate_init_datastructures): New gate.
14426 (pass_data_init_datastructures): Use it.
14428 2013-09-14 Iain Sandoe <iain@codesourcery.com>
14431 * config/i386/i386.c (ix86_function_arg_regno_p): Make Darwin use the
14432 xmm register set described in the psABI.
14434 2013-09-13 Evgeny Gavrin <e.gavrin@samsung.com>
14436 * dwarf2out.c (should_emit_struct_debug): Add check
14437 for type_decl variable is not NULL.
14439 2013-09-13 Jacek Caban <jacek@codeweavers.com>
14441 * config.gcc: Use new winnt-c.c target hooks
14442 * config/t-winnt: New file
14443 * config/winnt-c.c: New file
14444 * doc/tm.texi.in: Document new hook
14445 * doc/tm.texi: Regenerated
14447 2013-09-13 Jan Hubicka <jh@suse.cz>
14449 PR middle-end/58094
14450 * ipa-inline.c (check_callers): New function.
14451 (check_caller_edge): Remove.
14452 (want_inline_function_to_all_callers_p): Also permit alises that are
14454 (inline_to_all_callers): Terminate the walk when devirtualization
14455 introduce new calls.
14457 2013-09-13 Jan Hubicka <jh@suse.cz>
14459 * ipa-inline-analysis.c (struct growth_data): Add node.
14460 (do_estimate_growth_1): Fix detection of recursion.
14462 2013-09-13 Jakub Jelinek <jakub@redhat.com>
14464 PR tree-optimization/58392
14465 * tree-cfg.c (move_sese_region_to_fn): Rename loop variable
14466 to avoid shadowing of outer loop variable. If
14467 saved_cfun->has_simduid_loops or saved_cfun->has_force_vect_loops,
14468 replace_by_duplicate_decl simduid of loops that have it set and
14469 set dest_cfun->has_simduid_loops and/or
14470 dest_cfun->has_force_vect_loops.
14471 * omp-low.c (build_outer_var_ref): Call maybe_lookup_decl_in_outer_ctx
14472 instead of maybe_lookup_decl.
14473 * tree-inline.c (copy_loops): Change blocks_to_copy argument to id.
14474 Use id->blocks_to_copy instead of blocks_to_copy. Adjust recursive
14475 call. Copy over force_vect and copy and remap simduid. Set
14476 cfun->has_simduid_loops and/or cfun->has_force_vect_loops.
14477 (copy_cfg_body): Remove blocks_to_copy argument. Use
14478 id->blocks_to_copy instead of blocks_to_copy. Adjust copy_loops
14479 caller. Don't set cfun->has_simduid_loops and/or
14480 cfun->has_force_vect_loops here.
14481 (copy_body): Remove blocks_to_copy argument. Adjust copy_cfg_body
14483 (expand_call_inline, tree_function_versioning): Adjust copy_body
14486 2013-09-13 Martin Jambor <mjambor@suse.cz>
14489 * ipa-prop.c (try_make_edge_direct_simple_call): Be less strict in
14490 the assert if the edge was a speculative one.
14492 2013-09-13 Richard Biener <rguenther@suse.de>
14494 * tree-data-ref.h (known_dependences_p): Move here ...
14495 * tree-loop-distribution.c (known_dependences_p): ... from here.
14496 (dump_rdg_component, debug_rdg_component): Remove.
14497 (dump_rdg): Adjust.
14498 (generate_loops_for_partition): Use gimple_uid instead of
14499 relying on matching stmt visit order.
14500 (rdg_build_partitions): Take starting stmt vector.
14501 (ldist_gen): Merge into ...
14502 (distribute_loop): ... this function. Do not compute starting
14504 * tree-cfg.c (gimple_duplicate_bb): Copy UID for PHIs.
14506 2013-09-13 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
14508 * config/arm/arm.md (arm_cmpsi_insn): Split rI alternative.
14509 Set type attribute correctly. Set predicable_short_it attribute.
14510 (cmpsi_shiftsi): Remove %? from output template.
14512 2013-09-13 Richard Biener <rguenther@suse.de>
14514 * tree-loop-distribution.c (struct rdg_component,
14515 rdg_defs_used_in_other_loops_p, free_rdg_components,
14516 rdg_build_components): Remove.
14517 (stmts_from_loop): Do not record virtual PHIs.
14518 (generate_loops_for_partition): Skip virtual PHIs.
14519 (build_rdg_partition_for_component): Rename to ...
14520 (build_rdg_partition_for_vertex): ... this and adjust.
14521 (rdg_build_partitions): Take a vector of starting vertices
14522 instead of components. Remove unnecessary leftover handling.
14523 (ldist_gen): Do not build components or record other stores.
14524 (distribute_loop): Do not distribute loops containing stmts
14527 2013-09-13 Christian Bruel <christian.bruel@st.com>
14530 * config/sh/sh.md (mov<mode>_reg_reg): Allow memory reloads.
14532 2013-09-13 Kai Tietz <ktietz@redhat.com>
14534 * config.gcc: Separate cases for mingw and cygwin targets,
14535 and add 64-bit cygwin target case.
14537 * config/i386/winnt-cxx.c (i386_pe_type_dllexport_p): Don't
14538 dll-export inline-functions.
14539 * config/i386/winnt.c (i386_pe_determine_dllexport_p): Likewise.
14541 2013-09-13 Jeff Law <law@redhat.com>
14543 PR middle-end/58387
14545 2013-09-06 Jeff Law <law@redhat.com>
14547 * tree-ssa-dom.c (cprop_into_successor_phis): Also propagate
14548 edge implied equivalences into successor phis.
14550 2013-09-12 DJ Delorie <dj@redhat.com>
14552 * config/rl78/rl78-virt.md: Change from | to \; for asm line
14555 2013-09-12 Brooks Moses <bmoses@google.com>
14558 * Makefile.in: Do not install driver binaries in $(target)/bin.
14560 2013-09-12 DJ Delorie <dj@redhat.com>
14562 * config/rl78/rl78.opt (mrelax): New.
14563 * config/rl78/rl78.h (ASM_SPEC): New, pass on -mrelax to gas.
14564 * config/rl78/rl78.h (LINK_SPEC): New, pass on -mrelax to ld.
14566 * config/rl78/rl78.c (rl78_expand_prologue): Use AX to copy
14568 (rl78_expand_epilogue): Likewise.
14570 2013-09-12 Vladimir Makarov <vmakarov@redhat.com>
14572 PR middle-end/58335
14573 * lra-eliminations.c (remove_reg_equal_offset_note): New.
14574 (eliminate_regs_in_insn): Rewrite frame pointer to hard frame
14575 pointer elimination with using remove_reg_equal_offset_note.
14577 2013-09-12 DJ Delorie <dj@redhat.com>
14579 * config/msp430/: New port.
14580 * config.gcc (msp430): Added.
14581 * doc/invoke.texi: Document MSP430 options.
14582 * doc/install.texi: Document msp430-elf
14583 * doc/md.texi: Document msp430-elf
14584 * doc/contrib.texi: Document msp430-elf
14586 * cfgexpand.c (expand_debug_expr): Avoid sign-extending SImode to
14589 2013-09-12 Martin Jambor <mjambor@suse.cz>
14592 * ipa-prop.c (remove_described_reference): Give up if the edge in the
14593 reference descriptor is NULL.
14594 (ipa_edge_removal_hook): If owning a reference descriptor, set its
14597 2013-09-12 Andrew MacLeod <amacleod@redhat.com>
14599 * tree-flow.h (FREE_SSANAMES): Move to tree-ssanames.c
14600 (SSANAMES, MODIFIED_NORETURN_CALLS, DEFAULT_DEFS, ptr_info_def,
14601 num_ssa_names, ssa_name): Move to tree-ssanames.h + prototypes.
14602 * tree-flow-inline.h (make_ssa_name, copy_ssa_name, duplicate_ssa_name,
14603 make_temp_ssa_name): move to tree-ssanames.h
14604 * tree-ssa-alias.h: Move prototype.
14605 * tree-ssa.h: Include tree-ssanames.h.
14606 * tree-ssanames.c (FREE_SSANAMES): Move to here.
14607 * tree-ssanames.h: New. Move items from tree-flow*.h
14608 * Makefile.in (tree-ssanames.h): Add to tree-ssanames.o and GTFILES.
14610 2013-09-12 Richard Biener <rguenther@suse.de>
14612 PR tree-optimization/58404
14613 * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Also
14614 propagate non-invariant addresses into dereferences wrapped
14615 in component references.
14617 2013-09-12 Richard Biener <rguenther@suse.de>
14619 PR tree-optimization/58402
14620 * passes.def: Move pass_late_warn_uninitialized later.
14622 2013-09-12 Andrew MacLeod <amacleod@redhat.com>
14624 * tree-ssa.h: New. Move content from tree-flow.h and
14625 tree-flow-inline.h.
14626 * tree-flow.h (_edge_var_map, edge_var_map_vector): Move to tree-ssa.h.
14627 Move prototypes belonging to tree-ssa.c.
14628 * tree-flow-inline.h (redirect_edge_var_map_def,
14629 redirect_edge_var_map_result, redirect_edge_var_map_location): Move to
14631 * gimple.h: Adjust prototypes.
14632 * tree-ssa.c (useless_type_conversion_p, types_compatible_p): Move
14634 * gimple.c (useless_type_conversion_p, types_compatible_p): Here.
14635 * tree.h: Move prototype to tree-ssa.h.
14636 * gengtype.c (open_base_files): Replace tree-flow.h with tree-ssa.h.
14637 * Makefile.in: (TREE_SSA_H, TREE_FLOW_H): Adjust dependencies.
14638 * alias.c, asan.c, builtins.c, calls.c, cfgexpand.c, cfghooks.c,
14639 cfgloop.c, cfgloopmanip.c, cgraph.c, cgraphbuild.c, cgraphclones.c,
14640 cgraphunit.c, dse.c, except.c, expr.c, final.c, fold-const.c,
14641 ggc-page.c, gimple-fold.c, gimple-iterator.c, gimple-low.c,
14642 gimple-pretty-print.c, gimple-ssa-strength-reduction.c,
14643 gimple-streamer-in.c, gimple-streamer-out.c, gimple.c, gimplify.c,
14644 graphite-blocking.c, graphite-clast-to-gimple.c,
14645 graphite-dependences.c, graphite-interchange.c,
14646 graphite-optimize-isl.c, graphite-poly.c, graphite-scop-detection.c,
14647 graphite-sese-to-poly.c, graphite.c, ipa-cp.c, ipa-inline-analysis.c,
14648 ipa-inline-transform.c, ipa-inline.c, ipa-prop.c, ipa-pure-const.c,
14649 ipa-reference.c, ipa-split.c, ipa-utils.c,
14650 loop-init.c, lto-cgraph.c, lto-section-in.c, lto-section-out.c,
14651 lto-streamer-in.c, lto-streamer-out.c, lto-streamer.c, omp-low.c,
14652 passes.c, predict.c, print-tree.c, profile.c, sese.c, targhooks.c,
14653 tracer.c, trans-mem.c, tree-call-cdce.c, tree-cfg.c, tree-cfgcleanup.c,
14654 tree-chrec.c, tree-complex.c, tree-data-ref.c, tree-dfa.c, tree-eh.c,
14655 tree-emutls.c, tree-if-conv.c, tree-inline.c, tree-into-ssa.c,
14656 tree-loop-distribution.c, tree-mudflap.c, tree-nested.c, tree-nrv.c,
14657 tree-object-size.c, tree-optimize.c, tree-outof-ssa.c, tree-parloops.c,
14658 tree-phinodes.c, tree-predcom.c, tree-pretty-print.c, tree-profile.c,
14659 tree-scalar-evolution.c, tree-sra.c, tree-ssa*.c, tree-stdarg.c,
14660 tree-streamer-in.c, tree-switch-conversion.c, tree-tailcall.c,
14661 tree-vect-data-refs.c, tree-vect-generic.c, tree-vect-loop-manip.c,
14662 tree-vect-loop.c, tree-vect-patterns.c, tree-vect-slp.c,
14663 tree-vect-stmts.c, tree-vectorizer.c, tree-vrp.c, tsan.c,
14664 value-prof.c, var-tracking.c,
14665 varpool.c, vtable-verify.c: Replace tree-flow.h with tree-ssa.h
14667 2013-09-12 Richard Biener <rguenther@suse.de>
14669 PR tree-optimization/58396
14670 * tree-loop-distribution.c (create_rdg_edges): Free unused DDRs.
14671 (build_rdg): Take a loop-nest parameter, fix memleaks.
14672 (distribute_loop): Compute loop-nest here and pass it to build_rdg.
14674 2013-09-12 Yuri Rumyantsev <ysrumyan@gmail.com>
14676 * config/i386/x86-tune.def: Turn on X86_TUNE_AVOID_MEM_OPND_FOR_CMOVE
14679 2013-09-12 Cameron McInally <cameron.mcinally@nyu.edu>
14681 * doc/extend.texi: Fix errors in x86 FMA builtin naming.
14682 The FMA instruction names should have a 'v' prefix.
14684 2013-09-12 Richard Biener <rguenther@suse.de>
14686 * tree-loop-distribution.c (dot_rdg_1): Make graph prettier.
14687 (dot_rdg): Use popen instead of system in optional code.
14688 (remaining_stmts, upstream_mem_writes): Remove global bitmaps.
14689 (already_processed_vertex_p): Adjust.
14690 (has_anti_or_output_dependence, predecessor_has_mem_write,
14691 mark_nodes_having_upstream_mem_writes, has_upstream_mem_writes,
14692 rdg_flag_uses): Remove.
14693 (rdg_flag_vertex): Simplify.
14694 (rdg_flag_vertex_and_dependent): Rely on a correct RDG and
14696 (build_rdg_partition_for_component): Process the first vertex
14697 of a component only.
14698 (ldist_gen): Do not compute remaining_stmts or upstream_mem_writes.
14700 2013-09-12 Alan Modra <amodra@gmail.com>
14702 * config/rs6000/rs6000.c (toc_relative_expr_p): Use add_cint_operand.
14704 2013-09-11 DJ Delorie <dj@redhat.com>
14705 Nick Clifton <nickc@redhat.com>
14707 * config/rl78/predicates.md (rl78_cmp_operator_signed): New.
14708 (rl78_stack_based_mem): New.
14709 * config/rl78/constraints.md (Iv08): New.
14718 * config/rl78/rl78-expand.md (movqi): Reject more SUBREG operands.
14720 (movsi): Change from expand to insn-and-split.
14721 (ashrsi3): Clobber AX.
14725 * config/rl78/rl78.md (CC_REG): Fix.
14726 (addsi3): Allow memory and immediate operands.
14727 (addsi3_internal): Split into...
14728 (addsi3_internal_virt): ...new, and ...
14729 (addsi3_internal_real): ...new.
14731 (subsi3_internal_virt): New.
14732 (subsi3_internal_real): New.
14733 (mulsi3): Add memory operand.
14734 (mulsi3_rl78): Likewise.
14735 (mulsi3_g13): Likewise.
14736 * config/rl78/rl78-real.md (cbranchqi4_real_signed): New.
14737 (cbranchqi4_real): Add more constraint options.
14738 (cbranchhi4_real): Expand pattern.
14739 (cbranchhi4_real_signed): New.
14740 (cbranchhi4_real_inverted): New.
14741 (cbranchsi4_real_lt): New.
14742 (cbranchsi4_real_ge): New.
14743 (cbranchsi4_real_signed): New.
14744 (cbranchsi4_real): New.
14746 * config/rl78/rl78-virt.md (ashrsi3_virt): Add custom cases for
14748 (lshrsi3_virt): Likewise.
14749 (ashlsi3_virt): Likewise.
14750 (cbranchqi4_virt_signed): New.
14751 (cbranchhi4_virt_signed): New.
14752 (cbranchsi4_virt): New.
14753 * config/rl78/rl78.c: Whitespace fixes throughout.
14754 (move_elim_pass): New.
14755 (pass_data_rl78_move_elim): New.
14756 (pass_rl78_move_elim): New.
14757 (make_pass_rl78_move_elim): New.
14758 (rl78_devirt_info): Run devirt earlier.
14759 (rl78_move_elim_info): New.
14760 (rl78_asm_file_start): Register it.
14761 (rl78_split_movsi): New.
14762 (rl78_as_legitimate_address): Allow virtual base registers when
14764 (rl78_addr_space_convert): Remove spurious debug stuff.
14765 (rl78_print_operand_1): Add z,s,S,r,E modifiers.
14766 (rl78_print_operand): More cases for not printing '#'.
14767 (rl78_expand_compare): Remove most of the logic.
14768 (content_memory): New.
14769 (clear_content_memory): New.
14770 (get_content_index): New.
14771 (get_content_name): New.
14772 (display_content_memory): New.
14773 (update_content): New.
14774 (record_content): New.
14775 (already_contains): New.
14776 (insn_ok_now): Re-recog insns with virtual registers.
14777 (add_postponed_content_update): New.
14778 (process_postponed_content_update): New.
14779 (gen_and_emit_move): New.
14780 (transcode_memory_rtx): Record new location content.
14781 Use gen_and_emit_move.
14782 (force_into_acc): New.
14783 (move_to_acc): Use gen_and_emit_move.
14784 (move_from_acc): Likewise.
14785 (move_acc_to_reg): Likewise.
14786 (move_to_x): Likewise.
14787 (move_to_hl): Likewise.
14788 (move_to_de): Likewise.
14789 (rl78_alloc_physical_registers_op1): Record location content.
14790 (has_constraint): New.
14791 (rl78_alloc_physical_registers_op2): Record location content.
14792 Optimize use of HL.
14793 (rl78_alloc_physical_registers_ro1): Likewise.
14794 (rl78_alloc_physical_registers_cmp): Likewise.
14795 (rl78_alloc_physical_registers_umul): Likewise.
14796 (rl78_alloc_address_registers_macax): New.
14797 (rl78_alloc_physical_registers): Initialize and set location
14798 content memory as needed.
14799 (rl78_reorg): Make sure split2 is called.
14800 (rl78_rtx_costs): New.
14802 2013-09-11 Richard Sandiford <rdsandiford@googlemail.com>
14804 * simplify-rtx.c (simplify_unary_operation_1): Use simplify_gen_binary
14805 for (not (neg ...)) and (neg (not ...)) cases.
14807 2013-09-11 Richard Biener <rguenther@suse.de>
14809 PR middle-end/58377
14810 * passes.def: Split critical edges before late uninit warning passes.
14811 * tree-cfg.c (pass_split_crit_edges): Implement clone method.
14813 2013-09-11 Jakub Jelinek <jakub@redhat.com>
14815 PR tree-optimization/58385
14816 * fold-const.c (build_range_check): If both low and high are NULL,
14817 use omit_one_operand_loc to preserve exp side-effects.
14819 2013-09-11 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
14821 * config/arm/arm.md (arm_shiftsi3): New alternative l/l/M.
14823 2013-09-11 Richard Biener <rguenther@suse.de>
14825 * tree-data-ref.c (dump_rdg_vertex, debug_rdg_vertex,
14826 dump_rdg_component, debug_rdg_component, dump_rdg, debug_rdg,
14827 dot_rdg_1, dot_rdg, rdg_vertex_for_stmt, create_rdg_edge_for_ddr,
14828 create_rdg_edges_for_scalar, create_rdg_edges, create_rdg_vertices,
14829 stmts_from_loop, known_dependences_p, build_empty_rdg,
14830 build_rdg, free_rdg, rdg_defs_used_in_other_loops_p): Move ...
14831 * tree-loop-distribution.c: ... here.
14832 * tree-data-ref.h (struct rdg_vertex, RDGV_STMT, RDGV_DATAREFS,
14833 RDGV_HAS_MEM_WRITE, RDGV_HAS_MEM_READS, RDG_STMT, RDG_DATAREFS,
14834 RDG_MEM_WRITE_STMT, RDG_MEM_READS_STMT, enum rdg_dep_type,
14835 struct rdg_edge, RDGE_TYPE, RDGE_LEVEL, RDGE_RELATION): Move ...
14836 * tree-loop-distribution.c: ... here.
14837 * tree-loop-distribution.c: Include gimple-pretty-print.h.
14838 (struct partition_s): Add loops member.
14839 (partition_alloc, partition_free, rdg_flag_uses, rdg_flag_vertex,
14840 rdg_flag_vertex_and_dependent, rdg_flag_loop_exits,
14841 build_rdg_partition_for_component, rdg_build_partitions): Adjust.
14843 2013-09-11 Alexander Ivchenko <alexander.ivchenko@intel.com>
14844 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
14845 Sergey Lega <sergey.s.lega@intel.com>
14846 Anna Tikhonova <anna.tikhonova@intel.com>
14847 Ilya Tocar <ilya.tocar@intel.com>
14848 Andrey Turetskiy <andrey.turetskiy@intel.com>
14849 Ilya Verbin <ilya.verbin@intel.com>
14850 Kirill Yukhin <kirill.yukhin@intel.com>
14851 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
14853 * config/i386/constraints.md (k): New.
14855 * config/i386/i386.c (const regclass_map): Add new mask registers.
14856 (dbx_register_map): Ditto.
14857 (dbx64_register_map): Ditto.
14858 (svr4_dbx_register_map): Ditto.
14859 (ix86_conditional_register_usage): Squash mask registers if AVX512F is
14861 (ix86_preferred_reload_class): Disable constants for mask registers.
14862 (ix86_secondary_reload): Do spill of mask register using 32-bit insn.
14863 (ix86_hard_regno_mode_ok): Support new mask registers.
14864 (x86_order_regs_for_local_alloc): Ditto.
14865 * config/i386/i386.h (FIRST_PSEUDO_REGISTER): Update.
14866 (FIXED_REGISTERS): Add new mask registers.
14867 (CALL_USED_REGISTERS): Ditto.
14868 (REG_ALLOC_ORDER): Ditto.
14869 (VALID_MASK_REG_MODE): New.
14870 (FIRST_MASK_REG): Ditto.
14871 (LAST_MASK_REG): Ditto.
14872 (reg_class): Add MASK_EVEX_REGS, MASK_REGS.
14873 (MAYBE_MASK_CLASS_P): New.
14874 (REG_CLASS_NAMES): Add MASK_EVEX_REGS, MASK_REGS.
14875 (REG_CLASS_CONTENTS): Ditto.
14876 (MASK_REGNO_P): New.
14877 (ANY_MASK_REG_P): Ditto.
14878 (HI_REGISTER_NAMES): Add new mask registers.
14879 * config/i386/i386.md (MASK0_REG, MASK1_REG, MASK2_REG, MASK3_REG,
14880 MASK4_REG, MASK5_REG, MASK6_REG, MASK7_REG): Constants for new
14882 (attribute "type"): Add mskmov, msklog.
14883 (attribute "length_immediate"): Support them.
14884 (attribute "memory"): Ditto.
14885 (attribute "prefix_0f"): Ditto.
14886 (*movhi_internal): Support new mask registers.
14887 (*movqi_internal): Ditto.
14888 (define_split): Split out clobber pattern is a logic
14889 insn on mask registers.
14890 (*k<logic><mode>): New.
14891 (*andhi_1): Extend to support mask regs.
14892 (*andqi_1): Extend to support mask regs.
14893 (kandn<mode>): New.
14894 (define_split): Split and-not to and and not if operands
14896 (*<code><mode>_1): Separate HI mode to new pattern...
14897 (*<code>hi_1): This.
14898 (*<code>qi_1): Extend to support mask regs.
14899 (kxnor<mode>): New.
14900 (kortestzhi): Ditto.
14901 (kortestchi): Ditto.
14903 (*one_cmpl<mode>2_1): Remove HImode and handle it...
14904 (*one_cmplhi2_1): ...Here, now with mask registers support.
14905 (*one_cmplqi2_1): Support new mask registers.
14906 (HI/QImode arithmetics splitter): Don't split if mask registers
14908 (HI/QImode not splitter): Ditto.
14909 * config/i386/predicated.md (mask_reg_operand): New.
14910 (general_reg_operand): Ditto.
14912 2013-09-11 Alexander Ivchenko <alexander.ivchenko@intel.com>
14914 * doc/invoke.texi: Document fxsr, xsave and xsaveopt options.
14915 * doc/extend.texi: Document fxsr, xsave and xsaveopt builtins.
14917 2013-09-10 Jeff Law <law@redhat.com>
14919 PR tree-optimization/58380
14920 * tree-ssa-threadupdate.c (thread_block): Recognize another case
14921 of threading through a buried loop header.
14923 * tree-ssa-threadedge.c (thread_around_empty_blocks): Correct
14924 return value for single successor case.
14926 2013-09-10 Jan Hubicka <jh@suse.cz>
14928 * ipa-devirt.c (ipa_devirt): Enable with LTO.
14930 2013-09-10 Richard Earnshaw <rearnsha@arm.com>
14933 * arm/vfp.md (combine_vcvt_f32_<FCVTI32typename>): Fix pattern to
14934 support conditional execution.
14935 (combine_vcvt_f64_<FCVTI32typename>): Likewise.
14937 2013-09-10 Vladimir Makarov <vmakarov@redhat.com>
14939 * lra.c (lra): Clear lra_optional_reload_pseudos before every
14941 * lra-constraints.c (curr_insn_transform): Switch on optional reloads.
14942 Check destination too to check move insn.
14943 (undo_optional_reloads): Add check that the original peudo did not
14944 changed its allocation and the optional reload was inherited on last
14945 inheritance pass. Break loop after deciding to keep optional reload.
14946 (lra_undo_inheritance): Add check that inherited pseudo still in
14949 2013-09-10 James Greenhalgh <james.greenhalgh@arm.com>
14951 * config/aarch64/aarch64.md (generic_sched): New.
14952 * config/aarch64/aarch64-generic.md (load): Make conditional
14953 on generic_sched attribute.
14954 (nonload): Likewise.
14956 2013-09-10 Jan Hubicka <jh@suse.cz>
14958 * lto-cgraph.c: Include ipa-utils.h.
14959 (compute_ltrans_boundary): Also add possible targets into the boundary.
14961 2013-09-10 Jan Hubicka <jh@suse.cz>
14963 * gimple-fold.c (gimple_get_virt_method_for_binfo): Pass real
14964 VAR_DECL of vtable rather than full expression.
14966 2013-09-10 Jan Hubicka <jh@suse.cz>
14967 Paolo Carlini <paolo.carlini@oracle.com>
14969 * cgraphunit.c (analyze_functions): Save input_location, set it
14970 to UNKNOWN_LOCATION and restore it at the end.
14972 2013-09-10 Martin Jambor <mjambor@suse.cz>
14974 * ipa-cp.c (propagate_constants_topo): Do not ignore SCC
14975 represented by a thunk.
14977 2013-09-10 Jeff Law <law@redhat.com>
14979 PR tree-optimization/58343
14980 * tree-ssa-threadupdate.c (thread_block): Identify and disable
14981 jump threading requests through loop headers buried in the middle
14982 of a jump threading path.
14984 * tree-ssa-threadedge.c (thread_around_empty_blocks): Fix thinko
14985 in return value/type.
14987 2013-09-10 Jakub Jelinek <jakub@redhat.com>
14989 PR rtl-optimization/58365
14990 * cfgcleanup.c (merge_memattrs): Also clear MEM_READONLY_P
14991 resp. MEM_NOTRAP_P if they differ, or set MEM_VOLATILE_P if
14994 2013-09-10 Richard Biener <rguenther@suse.de>
14996 * tree-data-ref.h (build_rdg): Drop all parameters but loop.
14997 * tree-data-ref.c (create_rdg_vertices): Collect all data
14998 references, signal failure to the caller, use data-ref API.
14999 (build_rdg): Compute data references only once. Maintain lifetime
15000 of data references and data dependences from within RDG.
15001 (free_rdg): Free dependence relations.
15002 * tree-loop-distribution.c (rdg_flag_uses): Drop weird code
15003 inventing extra dependences.
15004 (distribute_loop): Update for RDG API changes.
15006 2013-09-10 Kai Tietz <ktietz@redhat.com>
15008 * doc/invoke.texi (fms-extensions): Document changed
15009 behavior for ms-abi targets.
15010 * config/i386/i386.c (ix86_option_override_internal):
15011 Set default value of option -fms-extension for ms-abi targets.
15013 2013-09-10 Michael Zolotukhin <michael.v.zolotukhin@gmail.com>
15015 * config/i386/i386.c (ix86_expand_movmem): Fix epilogue generation.
15017 2013-09-10 Alan Modra <amodra@gmail.com>
15020 * config/rs6000/rs6000.md (bswapdi2_64bit): Disable for volatile mems.
15022 2013-09-10 Alan Modra <amodra@gmail.com>
15024 * config/rs6000/predicates.md (add_cint_operand): New.
15025 (reg_or_add_cint_operand, small_toc_ref): Use add_cint_operand.
15026 * config/rs6000/rs6000.md (largetoc_high_plus): Restrict offset
15027 using add_cint_operand.
15028 (largetoc_high_plus_aix): Likewise.
15030 2013-09-09 Jakub Jelinek <jakub@redhat.com>
15032 PR tree-optimization/58364
15033 * tree-ssa-reassoc.c (init_range_entry): For BIT_NOT_EXPR on
15034 BOOLEAN_TYPE, only invert in_p and continue with arg0 if
15035 the current range can't be an unconditional true or false.
15037 2013-09-09 James Greenhalgh <james.greenhalgh@arm.com>
15039 * config/aarch64/arm_neon.h (vrsqrte_f64): Fix parameter type.
15041 2013-09-09 Uros Bizjak <ubizjak@gmail.com>
15043 * ipa-prop.c (ipa_modify_call_arguments): Initialize deref_align.
15045 2013-09-09 Paolo Carlini <paolo.carlini@oracle.com>
15048 * doc/invoke.texi (-Wdelete-incomplete): Document it.
15050 2013-09-09 Ian Bolton <ian.bolton@arm.com>
15052 * config/aarch64/aarch64.c (aarch64_preferred_reload_class): Return
15053 NO_REGS for immediate that can't be moved directly into FP_REGS.
15055 2013-09-09 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
15057 * config/aarch64/aarch64.c (aarch64_select_cc_mode): Return CC_SWP for
15058 comparison with negated operand.
15059 * config/aarch64/aarch64.md (compare_neg<mode>): Match canonical
15062 2013-09-09 Richard Biener <rguenther@suse.de>
15064 PR middle-end/58326
15065 * cfgloopmanip.c (fix_bb_placements): When fixing the placement
15066 of a subloop record all its block as affecting loop-closed SSA form.
15068 2013-09-09 Richard Sandiford <rdsandiford@googlemail.com>
15070 * expmed.c (lshift_value): Take an unsigned HOST_WIDE_INT instead
15071 of an rtx/bitpos pair.
15072 (store_fixed_bit_field): Update accordingly.
15074 2013-09-09 Richard Sandiford <rdsandiford@googlemail.com>
15076 * asan.c (asan_emit_stack_protection): Use gen_int_mode instead of
15078 * builtins.c (expand_errno_check): Likewise.
15079 * dwarf2cfi.c (init_return_column_size): Likewise.
15080 * except.c (sjlj_mark_call_sites): Likewise.
15081 * expr.c (move_by_pieces_1, store_by_pieces_2): Likewise.
15082 * lra-constraints.c (emit_inc): Likewise.
15083 * ree.c (combine_set_extension): Likewise.
15084 * regmove.c (fixup_match_2): Likewise.
15085 * reload1.c (inc_for_reload): Likewise.
15087 2013-09-09 Richard Sandiford <rdsandiford@googlemail.com>
15089 * combine.c (simplify_set, expand_field_assignment, extract_left_shift)
15090 (force_to_mode, simplify_shift_const_1, simplify_comparison):
15091 Use gen_int_mode with the mode of the associated simplify_* call.
15092 * explow.c (probe_stack_range, anti_adjust_stack_and_probe): Likewise.
15093 * expmed.c (expand_shift_1): Likewise.
15094 * function.c (instantiate_virtual_regs_in_insn): Likewise.
15095 * loop-iv.c (iv_number_of_iterations): Likewise.
15096 * loop-unroll.c (unroll_loop_runtime_iterations): Likewise.
15097 * simplify-rtx.c (simplify_binary_operation_1): Likewise.
15099 2013-09-09 Richard Sandiford <rdsandiford@googlemail.com>
15101 * asan.c (asan_clear_shadow): Use gen_int_mode with the mode
15102 of the associated expand_* call.
15103 (asan_emit_stack_protection): Likewise.
15104 * builtins.c (round_trampoline_addr): Likewise.
15105 * explow.c (allocate_dynamic_stack_space, probe_stack_range): Likewise.
15106 * expmed.c (expand_smod_pow2, expand_sdiv_pow2, expand_divmod)
15107 (emit_store_flag): Likewise.
15108 * expr.c (emit_move_resolve_push, push_block, emit_single_push_insn_1)
15109 (emit_push_insn, optimize_bitfield_assignment_op, expand_expr_real_1):
15111 * function.c (instantiate_virtual_regs_in_insn): Likewise.
15112 * ifcvt.c (noce_try_store_flag_constants): Likewise.
15113 * loop-unroll.c (unroll_loop_runtime_iterations): Likewise.
15114 * modulo-sched.c (generate_prolog_epilog): Likewise.
15115 * optabs.c (expand_binop, widen_leading, expand_doubleword_clz)
15116 (expand_ctz, expand_ffs, expand_unop): Likewise.
15118 2013-09-09 Richard Sandiford <rdsandiford@googlemail.com>
15120 * alias.c (addr_side_effect_eval): Use gen_int_mode with the mode
15121 of the associated gen_rtx_* call.
15122 * caller-save.c (init_caller_save): Likewise.
15123 * combine.c (find_split_point, make_extraction): Likewise.
15124 (make_compound_operation): Likewise.
15125 * dwarf2out.c (mem_loc_descriptor): Likewise.
15126 * explow.c (plus_constant, probe_stack_range): Likewise.
15127 * expmed.c (expand_mult_const): Likewise.
15128 * expr.c (emit_single_push_insn_1, do_tablejump): Likewise.
15129 * reload1.c (init_reload): Likewise.
15130 * valtrack.c (cleanup_auto_inc_dec): Likewise.
15131 * var-tracking.c (adjust_mems): Likewise.
15132 * modulo-sched.c (sms_schedule): Likewise, but use gen_rtx_GT
15133 rather than gen_rtx_fmt_ee.
15135 2013-09-09 Jan Hubicka <jh@suse.cz>
15137 PR middle-end/58294
15138 * value-prof.c (gimple_ic): Copy also abnormal edges.
15140 2013-09-09 Richard Sandiford <rdsandiford@googlemail.com>
15142 * asan.c (asan_shadow_cst): Use gen_int_mode.
15144 2013-09-08 Jan Hubicka <jh@suse.cz>
15146 * ipa-profile.c: Add toplevel comment.
15147 (ipa_propagate_frequency_1): Be more conservative when profile is read.
15148 (contains_hot_call_p): New function.
15149 (ipa_propagate_frequency): Set frequencies based on counts when
15151 * predict.c (compute_function_frequency): Use PROFILE_READ gueard for
15152 profile; do not tamper with profile after inlining if it is read.
15154 2013-09-08 Jan Hubicka <jh@suse.cz>
15156 * ipa-prop.c (try_make_edge_direct_simple_call): Do not special case
15159 2013-09-08 Jan Hubicka <jh@suse.cz>
15161 * ipa.c (walk_polymorphic_call_targets): Fix redirection before IPA
15162 summary generation.
15164 2013-09-08 Jeff Law <law@redhat.com>
15167 * tree-ssa-threadedge.c (thread_across_edge): Fix initialization
15170 2013-09-08 Andi Kleen <ak@linux.intel.com>
15172 * tree-inline.c (estimate_num_insns): Limit asm cost to 1000.
15174 2013-09-08 Jan Hubicka <jh@suse.cz>
15176 * ipa.c (walk_polymorphic_call_targets): Fix inliner summary update.
15178 2013-09-08 Richard Sandiford <rdsandiford@googlemail.com>
15180 * ira.c (update_equiv_regs): Only call set_paradoxical_subreg
15181 for non-debug insns.
15182 * lra.c (new_insn_reg): Take the containing insn as a parameter.
15183 Only modify lra_reg_info[].biggest_mode if it's non-debug insn.
15184 (collect_non_operand_hard_regs, add_regs_to_insn_regno_info): Update
15187 2013-09-08 Jan Hubicka <jh@suse.cz>
15189 * cgraphunit.c (walk_polymorphic_call_targets): Permit 0 possible
15190 targets and devirtualize to BUILT_IN_UNREACHABLE.
15191 * timevar.def (TV_IPA_UNREACHABLE): New timevar.
15192 * ipa.c (walk_polymorphic_call_targets): New function.
15193 (symtab_remove_unreachable_nodes): Use it; do not keep all virtual
15194 functions; use the new timevar.
15195 * ipa-devirt.c (maybe_record_node): Do not insert static nodes that
15196 was removed from the program.
15197 (record_binfo): If BINFO corresponds to an anonymous namespace, we may
15198 not consider it in the walk when its vtable is dead.
15199 (possible_polymorphic_call_targets_1): Pass anonymous flag to
15201 (devirt_variable_node_removal_hook): New function.
15202 (possible_polymorphic_call_targets): Also register
15203 devirt_variable_node_removal_hook.
15204 (ipa_devirt): Do not do non-speculative devirtualization.
15205 (gate_ipa_devirt): One execute if devirtualizing speculatively.
15207 2013-09-08 Jan Hubicka <jh@suse.cz>
15209 * cgraph.h (varpool_node_hook, varpool_node_hook_list,
15210 varpool_add_node_removal_hook, varpool_add_variable_insertion_hook,
15211 varpool_remove_variable_insertion_hook): Declare.
15212 * varpool.c (varpool_node_hook_list): New structure.
15213 (first_varpool_node_removal_hook,
15214 first_varpool_variable_insertion_hook): New variables.
15215 (varpool_add_node_removal_hook, varpool_remove_node_removal_hook,
15216 varpool_call_node_removal_hooks, varpool_add_variable_insertion_hook,
15217 varpool_remove_variable_insertion_hook,
15218 varpool_call_variable_insertion_hooks): New functions.
15219 (varpool_remove_node): Use it.
15221 2013-09-08 Paolo Carlini <paolo.carlini@oracle.com>
15224 * diagnostic.c (diagnostic_build_prefix): When s.file is
15225 "<built-in>" don't output line and column numbers.
15227 2013-09-06 Jan Hubicka <jh@suse.cz>
15229 * cgraphunit.c (expand_thunk): Get body before touching arguments.
15230 * lto-streamer-out.c: Stream thunks, too.
15231 * lto-streamer-in.c (input_function): Pop cfun here
15232 (lto_read_body): Instead of here.
15234 2013-09-06 Caroline Tice <cmtice@google.com>
15236 * doc/install.texi: Add documentation for the --enable-vtable-verify
15237 and the --disable-libvtv configure options.
15239 2013-09-06 Jeff Law <law@redhat.com>
15241 * tree-ssa-dom.c (cprop_into_successor_phis): Also propagate
15242 edge implied equivalences into successor phis.
15244 2013-09-06 Joern Rennecke <joern.rennecke@embecosm.com>
15246 * resource.c (mark_referenced_resources): Handle COND_EXEC.
15248 2013-09-06 Claudiu Zissulescu <claziss@synopsys.com>
15250 * resource.c (mark_target_live_regs): Compute resources taking
15251 into account if a call is predicated or not.
15253 2013-09-06 Eric Botcazou <ebotcazou@adacore.com>
15255 * toplev.c (output_stack_usage): Be prepared for suffixes created by
15256 the compiler in the function names.
15258 2013-09-06 Jan Hubicka <jh@suse.cz>
15260 PR middle-end/58094
15261 * ipa-inline.c (has_caller_p): New function.
15262 (want_inline_function_to_all_callers_p): Use it.
15263 (sum_callers, inline_to_all_callers): Break out from ...
15264 (ipa_inline): ... here.
15266 2013-09-06 Jan Hubicka <jh@suse.cz>
15268 * config/i386/i386.c (ix86_hard_regno_mode_ok): AVX modes are valid
15269 only when AVX is enabled.
15271 2013-09-06 James Greenhalgh <james.greenhalgh@arm.com>
15273 * config/aarch64/aarch64.md
15274 (*movtf_aarch64): Use neon_<ls>dm_2 as type where v8type
15275 is fpsimd_<load/store>2.
15276 (load_pair<mode>): Likewise.
15277 (store_pair<mode>): Likewise.
15279 2013-09-06 James Greenhalgh <james.greenhalgh@arm.com>
15281 * config/arm/types.md (type): Add "mrs" type.
15282 * config/aarch64/aarch64.md
15283 (aarch64_load_tp_hard): Make type "mrs".
15284 * config/arm/arm.md
15285 (load_tp_hard): Make type "mrs".
15286 * config/arm/cortex-a15.md: Update with new attributes.
15287 * config/arm/cortex-a5.md: Update with new attributes.
15288 * config/arm/cortex-a53.md: Update with new attributes.
15289 * config/arm/cortex-a7.md: Update with new attributes.
15290 * config/arm/cortex-a8.md: Update with new attributes.
15291 * config/arm/cortex-a9.md: Update with new attributes.
15292 * config/arm/cortex-m4.md: Update with new attributes.
15293 * config/arm/cortex-r4.md: Update with new attributes.
15294 * config/arm/fa526.md: Update with new attributes.
15295 * config/arm/fa606te.md: Update with new attributes.
15296 * config/arm/fa626te.md: Update with new attributes.
15297 * config/arm/fa726te.md: Update with new attributes.
15299 2013-09-06 James Greenhalgh <james.greenhalgh@arm.com>
15301 * config/aarch64/aarch64.md
15302 (*movti_aarch64): Use "multiple" for type where v8type is "move2".
15303 (*movtf_aarch64): Likewise.
15304 * config/arm/arm.md
15305 (thumb1_movdi_insn): Use "multiple" for type where more than one
15306 instruction is used for a move.
15307 (*arm32_movhf): Likewise.
15308 (*thumb_movdf_insn): Likewise.
15310 2013-09-06 James Greenhalgh <james.greenhalgh@arm.com>
15312 * config/arm/types.md (type): Rename fcpys to fmov.
15313 * config/arm/vfp.md
15314 (*arm_movsi_vfp): Rename type fcpys as fmov.
15315 (*thumb2_movsi_vfp): Likewise
15316 (*movhf_vfp_neon): Likewise
15317 (*movhf_vfp): Likewise
15318 (*movsf_vfp): Likewise
15319 (*thumb2_movsf_vfp): Likewise
15320 (*movsfcc_vfp): Likewise
15321 (*thumb2_movsfcc_vfp): Likewise
15322 * config/aarch64/aarch64-simd.md
15323 (move_lo_quad_<mode>): Replace type mov_reg with fmovs.
15324 * config/aarch64/aarch64.md
15325 (*movsi_aarch64): Replace type mov_reg with fmovs.
15326 (*movdi_aarch64): Likewise
15327 (*movsf_aarch64): Likewise
15328 (*movdf_aarch64): Likewise
15330 (cortexa7_older_only): Rename TYPE_FCPYS to TYPE_FMOV.
15331 * config/arm/iwmmxt.md
15332 (*iwmmxt_movsi_insn): Rename type fcpys as fmov.
15333 * config/arm/arm1020e.md: Update with new attributes.
15334 * config/arm/cortex-a15-neon.md: Update with new attributes.
15335 * config/arm/cortex-a5.md: Update with new attributes.
15336 * config/arm/cortex-a53.md: Update with new attributes.
15337 * config/arm/cortex-a7.md: Update with new attributes.
15338 * config/arm/cortex-a8-neon.md: Update with new attributes.
15339 * config/arm/cortex-a9.md: Update with new attributes.
15340 * config/arm/cortex-m4-fpu.md: Update with new attributes.
15341 * config/arm/cortex-r4f.md: Update with new attributes.
15342 * config/arm/marvell-pj4.md: Update with new attributes.
15343 * config/arm/vfp11.md: Update with new attributes.
15345 2013-09-06 James Greenhalgh <james.greenhalgh@arm.com>
15347 * config/aarch64/aarch64.md
15348 (*madd<mode>): Fix type attribute.
15349 (*maddsi_uxtw): Likewise.
15350 (*msub<mode>): Likewise.
15351 (*msubsi_uxtw): Likewise.
15352 (<su_optab>maddsidi4): Likewise.
15353 (<su_optab>msubsidi4): Likewise.
15355 2013-09-06 James Greenhalgh <james.greenhalgh@arm.com>
15357 * config/arm/types.md: Split fdiv<sd> as fsqrt<sd>, fdiv<sd>.
15358 * config/arm/arm.md (core_cycles): Remove fdiv.
15359 * config/arm/vfp.md:
15360 (*sqrtsf2_vfp): Update for attribute changes.
15361 (*sqrtdf2_vfp): Likewise.
15362 * config/aarch64/aarch64.md:
15363 (sqrt<mode>2): Update for attribute changes.
15364 * config/arm/arm1020e.md: Update with new attributes.
15365 * config/arm/cortex-a15-neon.md: Update with new attributes.
15366 * config/arm/cortex-a5.md: Update with new attributes.
15367 * config/arm/cortex-a53.md: Update with new attributes.
15368 * config/arm/cortex-a7.md: Update with new attributes.
15369 * config/arm/cortex-a8-neon.md: Update with new attributes.
15370 * config/arm/cortex-a9.md: Update with new attributes.
15371 * config/arm/cortex-m4-fpu.md: Update with new attributes.
15372 * config/arm/cortex-r4f.md: Update with new attributes.
15373 * config/arm/marvell-pj4.md: Update with new attributes.
15374 * config/arm/vfp11.md: Update with new attributes.
15376 2013-09-06 James Greenhalgh <james.greenhalgh@arm.com>
15378 * config/arm/types.md
15379 (type): Split f_cvt as f_cvt, f_cvtf2i, f_cvti2f.
15380 * config/aarch64/aarch64.md
15381 (l<fcvt_pattern><su_optab><GPF:mode><GPI:mode>2): Update with
15383 (fix_trunc<GPF:mode><GPI:mode>2): Likewise.
15384 (fixuns_trunc<GPF:mode><GPI:mode>2): Likewise.
15385 (float<GPI:mode><GPF:mode>2): Likewise.
15386 * config/arm/vfp.md
15387 (*truncsisf2_vfp): Update with new attributes.
15388 (*truncsidf2_vfp): Likewise.
15389 (fixuns_truncsfsi2): Likewise.
15390 (fixuns_truncdfsi2): Likewise.
15391 (*floatsisf2_vfp): Likewise.
15392 (*floatsidf2_vfp): Likewise.
15393 (floatunssisf2): Likewise.
15394 (floatunssidf2): Likewise.
15395 (*combine_vcvt_f32_<FCVTI32typename>): Likewise.
15396 (*combine_vcvt_f64_<FCVTI32typename>): Likewise.
15397 * config/arm/arm1020e.md: Update with new attributes.
15398 * config/arm/cortex-a15-neon.md: Update with new attributes.
15399 * config/arm/cortex-a5.md: Update with new attributes.
15400 * config/arm/cortex-a53.md: Update with new attributes.
15401 * config/arm/cortex-a7.md: Update with new attributes.
15402 * config/arm/cortex-a8-neon.md: Update with new attributes.
15403 * config/arm/cortex-a9.md: Update with new attributes.
15404 * config/arm/cortex-m4-fpu.md: Update with new attributes.
15405 * config/arm/cortex-r4f.md: Update with new attributes.
15406 * config/arm/marvell-pj4.md: Update with new attributes.
15407 * config/arm/vfp11.md: Update with new attributes.
15409 2013-09-06 James Greenhalgh <james.greenhalgh@arm.com>
15411 * config/aarch64/arm_neon.h
15412 (vqtbl<1,2,3,4><q>_s8): Fix control vector parameter type.
15413 (vqtbx<1,2,3,4><q>_s8): Likewise.
15415 2013-09-06 James Greenhalgh <james.greenhalgh@arm.com>
15417 * config/arm/types.md: Add "no_insn", "multiple" and "untyped" types.
15418 * config/arm/arm-fixed.md: Add type attribute to all insn patterns.
15419 (add<mode>3): Add type attribute.
15420 (add<mode>3): Likewise.
15421 (usadd<mode>3): Likewise.
15422 (ssadd<mode>3): Likewise.
15423 (sub<mode>3): Likewise.
15424 (sub<mode>3): Likewise.
15425 (ussub<mode>3): Likewise.
15426 (sssub<mode>3): Likewise.
15427 (ssmulsa3): Likewise.
15428 (usmulusa3): Likewise.
15429 (arm_usatsihi): Likewise.
15430 * config/arm/vfp.md
15431 (*movdi_vfp): Add types for all instructions.
15432 (*movdi_vfp_cortexa8): Likewise.
15433 (*movhf_vfp_neon): Likewise.
15434 (*movhf_vfp): Likewise.
15435 (*movdf_vfp): Likewise.
15436 (*thumb2_movdf_vfp): Likewise.
15437 (*thumb2_movdfcc_vfp): Likewise.
15438 * config/arm/arm.md: Add type attribute to all insn patterns.
15439 (*thumb1_adddi3): Add type attribute.
15440 (*arm_adddi3): Likewise.
15441 (*adddi_sesidi_di): Likewise.
15442 (*adddi_zesidi_di): Likewise.
15443 (*thumb1_addsi3): Likewise.
15444 (addsi3_compare0): Likewise.
15445 (*addsi3_compare0_scratch): Likewise.
15446 (*compare_negsi_si): Likewise.
15447 (cmpsi2_addneg): Likewise.
15448 (*addsi3_carryin_<optab>): Likewise.
15449 (*addsi3_carryin_alt2_<optab>): Likewise.
15450 (*addsi3_carryin_clobercc_<optab>): Likewise.
15451 (*subsi3_carryin): Likewise.
15452 (*subsi3_carryin_const): Likewise.
15453 (*subsi3_carryin_compare): Likewise.
15454 (*subsi3_carryin_compare_const): Likewise.
15455 (*arm_subdi3): Likewise.
15456 (*thumb_subdi3): Likewise.
15457 (*subdi_di_zesidi): Likewise.
15458 (*subdi_di_sesidi): Likewise.
15459 (*subdi_zesidi_di): Likewise.
15460 (*subdi_sesidi_di): Likewise.
15461 (*subdi_zesidi_ze): Likewise.
15462 (thumb1_subsi3_insn): Likewise.
15463 (*arm_subsi3_insn): Likewise.
15464 (*anddi3_insn): Likewise.
15465 (*anddi_zesidi_di): Likewise.
15466 (*anddi_sesdi_di): Likewise.
15467 (*ne_zeroextracts): Likewise.
15468 (*ne_zeroextracts): Likewise.
15469 (*ite_ne_zeroextr): Likewise.
15470 (*ite_ne_zeroextr): Likewise.
15471 (*anddi_notdi_di): Likewise.
15472 (*anddi_notzesidi): Likewise.
15473 (*anddi_notsesidi): Likewise.
15474 (andsi_notsi_si): Likewise.
15475 (thumb1_bicsi3): Likewise.
15476 (*iordi3_insn): Likewise.
15477 (*iordi_zesidi_di): Likewise.
15478 (*iordi_sesidi_di): Likewise.
15479 (*thumb1_iorsi3_insn): Likewise.
15480 (*xordi3_insn): Likewise.
15481 (*xordi_zesidi_di): Likewise.
15482 (*xordi_sesidi_di): Likewise.
15483 (*arm_xorsi3): Likewise.
15484 (*andsi_iorsi3_no): Likewise.
15485 (*smax_0): Likewise.
15486 (*smax_m1): Likewise.
15487 (*arm_smax_insn): Likewise.
15488 (*smin_0): Likewise.
15489 (*arm_smin_insn): Likewise.
15490 (*arm_umaxsi3): Likewise.
15491 (*arm_uminsi3): Likewise.
15492 (*minmax_arithsi): Likewise.
15493 (*minmax_arithsi_): Likewise.
15494 (*satsi_<SAT:code>): Likewise.
15495 (arm_ashldi3_1bit): Likewise.
15496 (arm_ashrdi3_1bit): Likewise.
15497 (arm_lshrdi3_1bit): Likewise.
15498 (*arm_negdi2): Likewise.
15499 (*thumb1_negdi2): Likewise.
15500 (*arm_negsi2): Likewise.
15501 (*thumb1_negsi2): Likewise.
15502 (*negdi_extendsid): Likewise.
15503 (*negdi_zero_extend): Likewise.
15504 (*arm_abssi2): Likewise.
15505 (*thumb1_abssi2): Likewise.
15506 (*arm_neg_abssi2): Likewise.
15507 (*thumb1_neg_abss): Likewise.
15508 (one_cmpldi2): Likewise.
15509 (extend<mode>di2): Likewise.
15510 (*compareqi_eq0): Likewise.
15511 (*arm_extendhisi2addsi): Likewise.
15512 (*arm_movdi): Likewise.
15513 (*thumb1_movdi_insn): Likewise.
15514 (*arm_movt): Likewise.
15515 (*thumb1_movsi_insn): Likewise.
15516 (pic_add_dot_plus_four): Likewise.
15517 (pic_add_dot_plus_eight): Likewise.
15518 (tls_load_dot_plus_eight): Likewise.
15519 (*thumb1_movhi_insn): Likewise.
15520 (*thumb1_movsf_insn): Likewise.
15521 (*movdf_soft_insn): Likewise.
15522 (*thumb_movdf_insn): Likewise.
15523 (cbranchsi4_insn): Likewise.
15524 (cbranchsi4_scratch): Likewise.
15525 (*negated_cbranchsi4): Likewise.
15526 (*tbit_cbranch): Likewise.
15527 (*tlobits_cbranch): Likewise.
15528 (*tstsi3_cbranch): Likewise.
15529 (*cbranchne_decr1): Likewise.
15530 (*addsi3_cbranch): Likewise.
15531 (*addsi3_cbranch_scratch): Likewise.
15532 (*arm_cmpdi_insn): Likewise.
15533 (*arm_cmpdi_unsig): Likewise.
15534 (*arm_cmpdi_zero): Likewise.
15535 (*thumb_cmpdi_zero): Likewise.
15536 (*deleted_compare): Likewise.
15537 (*mov_scc): Likewise.
15538 (*mov_negscc): Likewise.
15539 (*mov_notscc): Likewise.
15540 (*cstoresi_eq0_thumb1_insn): Likewise.
15541 (cstoresi_nltu_thumb1): Likewise.
15542 (cstoresi_ltu_thu): Likewise.
15543 (thumb1_addsi3_addgeu): Likewise.
15544 (*arm_jump): Likewise.
15545 (*thumb_jump): Likewise.
15546 (*check_arch2): Likewise.
15547 (arm_casesi_internal): Likewise.
15548 (thumb1_casesi_dispatch): Likewise.
15549 (*arm_indirect_jump): Likewise.
15550 (*thumb1_indirect_jump): Likewise.
15552 (*and_scc): Likewise.
15553 (*ior_scc): Likewise.
15554 (*compare_scc): Likewise.
15555 (*cond_move): Likewise.
15556 (*cond_arith): Likewise.
15557 (*cond_sub): Likewise.
15558 (*cmp_ite0): Likewise.
15559 (*cmp_ite1): Likewise.
15560 (*cmp_and): Likewise.
15561 (*cmp_ior): Likewise.
15562 (*ior_scc_scc): Likewise.
15563 (*ior_scc_scc_cmp): Likewise.
15564 (*and_scc_scc): Likewise.
15565 (*and_scc_scc_cmp): Likewise.
15566 (*and_scc_scc_nod): Likewise.
15567 (*negscc): Likewise.
15568 (movcond_addsi): Likewise.
15569 (movcond): Likewise.
15570 (*ifcompare_plus_move): Likewise.
15571 (*if_plus_move): Likewise.
15572 (*ifcompare_move_plus): Likewise.
15573 (*if_move_plus): Likewise.
15574 (*ifcompare_arith_arith): Likewise.
15575 (*if_arith_arith): Likewise.
15576 (*ifcompare_arith_move): Likewise.
15577 (*if_arith_move): Likewise.
15578 (*ifcompare_move_arith): Likewise.
15579 (*if_move_arith): Likewise.
15580 (*ifcompare_move_not): Likewise.
15581 (*if_move_not): Likewise.
15582 (*ifcompare_not_move): Likewise.
15583 (*if_not_move): Likewise.
15584 (*ifcompare_shift_move): Likewise.
15585 (*if_shift_move): Likewise.
15586 (*ifcompare_move_shift): Likewise.
15587 (*if_move_shift): Likewise.
15588 (*ifcompare_shift_shift): Likewise.
15589 (*ifcompare_not_arith): Likewise.
15590 (*ifcompare_arith_not): Likewise.
15591 (*if_arith_not): Likewise.
15592 (*ifcompare_neg_move): Likewise.
15593 (*if_neg_move): Likewise.
15594 (*ifcompare_move_neg): Likewise.
15595 (*if_move_neg): Likewise.
15596 (prologue_thumb1_interwork): Likewise.
15597 (*cond_move_not): Likewise.
15598 (*sign_extract_onebit): Likewise.
15599 (*not_signextract_onebit): Likewise.
15600 (stack_tie): Likewise.
15601 (align_4): Likewise.
15602 (align_8): Likewise.
15603 (consttable_end): Likewise.
15604 (consttable_1): Likewise.
15605 (consttable_2): Likewise.
15606 (consttable_4): Likewise.
15607 (consttable_8): Likewise.
15608 (consttable_16): Likewise.
15609 (*thumb1_tablejump): Likewise.
15610 (prefetch): Likewise.
15611 (force_register_use): Likewise.
15612 (thumb_eh_return): Likewise.
15613 (load_tp_hard): Likewise.
15614 (load_tp_soft): Likewise.
15615 (tlscall): Likewise.
15616 (*arm_movtas_ze): Likewise.
15617 (*arm_rev): Likewise.
15618 (*arm_revsh): Likewise.
15619 (*arm_rev16): Likewise.
15620 * config/arm/thumb2.md
15621 (*thumb2_smaxsi3): Likewise.
15622 (*thumb2_sminsi3): Likewise.
15623 (*thumb32_umaxsi3): Likewise.
15624 (*thumb2_uminsi3): Likewise.
15625 (*thumb2_negdi2): Likewise.
15626 (*thumb2_abssi2): Likewise.
15627 (*thumb2_neg_abss): Likewise.
15628 (*thumb2_movsi_insn): Likewise.
15629 (tls_load_dot_plus_four): Likewise.
15630 (*thumb2_movhi_insn): Likewise.
15631 (*thumb2_mov_scc): Likewise.
15632 (*thumb2_mov_negs): Likewise.
15633 (*thumb2_mov_negs): Likewise.
15634 (*thumb2_mov_nots): Likewise.
15635 (*thumb2_mov_nots): Likewise.
15636 (*thumb2_movsicc_): Likewise.
15637 (*thumb2_movsfcc_soft_insn): Likewise.
15638 (*thumb2_indirect_jump): Likewise.
15639 (*thumb2_and_scc): Likewise.
15640 (*thumb2_ior_scc): Likewise.
15641 (*thumb2_ior_scc_strict_it): Likewise.
15642 (*thumb2_cond_move): Likewise.
15643 (*thumb2_cond_arith): Likewise.
15644 (*thumb2_cond_ari): Likewise.
15645 (*thumb2_cond_sub): Likewise.
15646 (*thumb2_negscc): Likewise.
15647 (*thumb2_movcond): Likewise.
15648 (thumb2_casesi_internal): Likewise.
15649 (thumb2_casesi_internal_pic): Likewise.
15650 (*thumb2_alusi3_short): Likewise.
15651 (*thumb2_mov<mode>_shortim): Likewise.
15652 (*thumb2_addsi_short): Likewise.
15653 (*thumb2_subsi_short): Likewise.
15654 (thumb2_addsi3_compare0): Likewise.
15655 (*thumb2_cbz): Likewise.
15656 (*thumb2_cbnz): Likewise.
15657 (*thumb2_one_cmplsi2_short): Likewise.
15658 (*thumb2_negsi2_short): Likewise.
15659 (*orsi_notsi_si): Likewise.
15660 * config/arm/arm1020e.md: Update with new attributes.
15661 * config/arm/arm1026ejs.md: Update with new attributes.
15662 * config/arm/arm1136jfs.md: Update with new attributes.
15663 * config/arm/arm926ejs.md: Update with new attributes.
15664 * config/arm/cortex-a15.md: Update with new attributes.
15665 * config/arm/cortex-a5.md: Update with new attributes.
15666 * config/arm/cortex-a53.md: Update with new attributes.
15667 * config/arm/cortex-a7.md: Update with new attributes.
15668 * config/arm/cortex-a8.md: Update with new attributes.
15669 * config/arm/cortex-a9.md: Update with new attributes.
15670 * config/arm/cortex-m4.md: Update with new attributes.
15671 * config/arm/cortex-r4.md: Update with new attributes.
15672 * config/arm/fa526.md: Update with new attributes.
15673 * config/arm/fa606te.md: Update with new attributes.
15674 * config/arm/fa626te.md: Update with new attributes.
15675 * config/arm/fa726te.md: Update with new attributes.
15677 2013-09-06 James Greenhalgh <james.greenhalgh@arm.com>
15679 * config/aarch64/aarch64-simd.md
15680 (aarch64_sqdml<SBINQOPS:as>l_n<mode>_internal): Use
15681 <vwx> iterator to ensure correct register choice.
15682 (aarch64_sqdml<SBINQOPS:as>l2_n<mode>_internal): Likewise.
15683 (aarch64_sqdmull_n<mode>): Likewise.
15684 (aarch64_sqdmull2_n<mode>_internal): Likewise.
15685 * config/aarch64/arm_neon.h
15686 (vml<as><q>_lane<q>_<su>16): Use 'x' constraint for element vector.
15687 (vml<as><q>_n_<su>16): Likewise.
15688 (vml<as>l_high_lane<q>_<su>16): Likewise.
15689 (vml<as>l_high_n_<su>16): Likewise.
15690 (vml<as>l_lane<q>_<su>16): Likewise.
15691 (vml<as>l_n_<su>16): Likewise.
15692 (vmul<q>_lane<q>_<su>16): Likewise.
15693 (vmul<q>_n_<su>16): Likewise.
15694 (vmull_lane<q>_<su>16): Likewise.
15695 (vmull_n_<su>16): Likewise.
15696 (vmull_high_lane<q>_<su>16): Likewise.
15697 (vmull_high_n_<su>16): Likewise.
15698 (vqrdmulh<q>_n_s16): Likewise.
15700 2013-09-06 Tejas Belagod <tejas.belagod@arm.com>
15702 * config/aarch64/arm_neon.h: Fix all vdup<bhsd_lane<q> intrinsics to
15703 have the correct lane parameter.
15705 2013-09-06 Richard Biener <rguenther@suse.de>
15707 * cfganal.c (control_dependences::~control_dependences):
15708 Properly free all of the vector.
15710 2013-09-06 Kirill Yukhin <kirill.yukhin@intel.com>
15713 * config/i386/i386.c (ix86_conditional_register_usage):
15714 Proper initialize extended SSE registers.
15716 2013-09-06 Jan Hubicka <jh@suse.cz>
15718 PR tree-optimization/58311
15719 * ipa-devirt.c (gate_ipa_devirt): Only execute when optimizing.
15721 2013-09-06 Jan Hubicka <jh@suse.cz>
15723 * Makefile.in (tree-sra.o): Update dependencies.
15724 * tree-sra.c: Include ipa-utils.h
15725 (scan_function): Use recursive_call_p.
15726 (has_caller_p): New function.
15727 (cgraph_for_node_and_aliases): Count also callers of aliases.
15729 2013-09-06 Jan Hubicka <jh@suse.cz>
15731 PR middle-end/58094
15732 * cgraph.h (symtab_semantically_equivalent_p): Declare.
15733 * tree-tailcall.c: Include ipa-utils.h.
15734 (find_tail_calls): Use it.
15735 * ipa-pure-const.c (check_call): Likewise.
15736 * ipa-utils.c (recursive_call_p): New function.
15737 * ipa-utils.h (recursive_call_p): Dclare.
15738 * symtab.c (symtab_nonoverwritable_alias): Fix formatting.
15739 (symtab_semantically_equivalent_p): New function.
15740 * Makefile.in (tree-tailcall.o): Update dependencies.
15742 2013-09-06 Eric Botcazou <ebotcazou@adacore.com>
15744 * ipa-split.c (split_function): Set DECL_NO_INLINE_WARNING_P on the
15745 non-inlinable part.
15747 2013-09-06 Richard Biener <rguenther@suse.de>
15749 * lto-streamer.h (lto_global_var_decls): Remove.
15750 * Makefile.in (OBJS): Remove lto-symtab.o.
15751 (lto-symtab.o): Remove.
15752 (GTFILES): Remove lto-symtab.c
15753 * lto-symtab.c: Move to lto/
15755 2013-09-06 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
15757 * config/s390/s390.md (UNSPEC_FPINT_FLOOR, UNSPEC_FPINT_BTRUNC)
15758 (UNSPEC_FPINT_ROUND, UNSPEC_FPINT_CEIL, UNSPEC_FPINT_NEARBYINT)
15759 (UNSPEC_FPINT_RINT): New constant definitions.
15760 (FPINT, fpint_name, fpint_roundingmode): New integer iterator
15761 definition with 2 attributes.
15762 ("<FPINT:fpint_name><BFP:mode>2", "rint<BFP:mode>2")
15763 ("<FPINT:fpint_name><DFP:mode>2", "rint<DFP:mode>2"): New pattern
15766 2013-09-06 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
15768 * config/s390/s390.md: Add "bcr_flush" value to mnemonic attribute.
15769 ("mem_thread_fence_1"): Use bcr 14,0 for z196 and later.
15770 Set the mnemonic attribute to "bcr_flush". Set the "z196prop"
15771 attribute to "z196_alone".
15772 * config/s390/2827.md: Add "bcr_flush" to "ooo_groupalone" and
15775 2013-09-06 Richard Biener <rguenther@suse.de>
15777 * basic-block.h (class control_dependences): New.
15778 * tree-ssa-dce.c (control_dependence_map): Remove.
15780 (EXECUTE_IF_CONTROL_DEPENDENT): Remove.
15781 (set_control_dependence_map_bit, clear_control_dependence_bitmap,
15782 find_pdom, find_control_dependence, find_all_control_dependences):
15784 (mark_control_dependent_edges_necessary,
15785 find_obviously_necessary_stmts, propagate_necessity, tree_dce_init,
15786 tree_dce_done, perform_tree_ssa_dce): Adjust.
15787 * cfganal.c (set_control_dependence_map_bit,
15788 clear_control_dependence_bitmap, find_pdom, find_control_dependence,
15789 find_all_control_dependences): Move from tree-ssa-dce.c and
15790 implement as methods of control_dependences class.
15791 (control_dependences::control_dependences): New.
15792 (control_dependences::~control_dependences): Likewise.
15793 (control_dependences::get_edges_dependent_on): Likewise.
15794 (control_dependences::get_edge): Likewise.
15796 2013-09-04 Jan Hubicka <jh@suse.cz>
15798 * tree.c (types_same_for_odr): Drop overactive check.
15799 * ipa-devirt.c (hash_type_name): Likewise.
15801 2013-09-04 Jan Hubicka <jh@suse.cz>
15803 * cgraphunit.c (walk_polymorphic_call_targets): Break out from ...
15804 (analyze_functions): ... here.
15806 2013-09-04 Jan Hubicka <jh@suse.cz>
15808 PR middle-end/58201
15809 * cgraphunit.c (analyze_functions): Clear AUX fields
15810 after processing; initialize assembler name has.
15812 2013-09-05 Jeff Law <law@redhat.com>
15814 * tree-ssa-threadedge.c (thread_around_empty_blocks): Renamed
15815 from thread_around_empty_block. Record threading path into PATH.
15816 Recurse if threading through the initial block is successful.
15817 (thread_across_edge): Corresponding changes to slightly simplify.
15819 2013-09-05 James Greenhalgh <james.greenhalgh@arm.com>
15821 * config/aarch64/aarch64.md
15822 (type): Remove frecpe, frecps, frecpx.
15823 (aarch64_frecp<FRECP:frecp_suffix><mode>): Move to aarch64-simd.md,
15824 fix to be a TARGET_SIMD instruction.
15825 (aarch64_frecps): Remove.
15826 * config/aarch64/aarch64-simd.md
15827 (aarch64_frecp<FRECP:frecp_suffix><mode>): New, moved from aarch64.md
15828 (aarch64_frecps<mode>): Handle all float/vector of float modes.
15830 2013-09-05 James Greenhalgh <james.greenhalgh@arm.com>
15831 Sofiane Naci <sofiane.naci@arm.com>
15833 * config/arm/types.md (define_attr "type"): Expand "arlo_imm"
15834 into "adr", "alu_imm", "alus_imm", "logic_imm", "logics_imm".
15835 Expand "arlo_reg" into "adc_reg", "adc_imm", "adcs_reg", "adcs_imm",
15836 "alu_ext", "alu_reg", "alus_ext", "alus_reg", "bfm", "csel",
15837 "logic_reg", "logics_reg", "rev". Expand "arlo_shift" into
15838 "alu_shift_imm", "alus_shift_imm", "logic_shift_imm",
15839 "logics_shift_imm". Expand "arlo_shift_reg" into "alu_shift_reg",
15840 "alus_shift_reg", "logic_shift_reg", "logics_shift_reg". Expand "clz"
15841 into "clz, "rbit". Rename "shift" to "shift_imm".
15842 * config/arm/arm.md (define_attr "core_cycles"): Update for attribute
15843 changes. Update for attribute changes all occurrences of arlo_* and
15845 * config/arm/arm-fixed.md: Update for attribute changes
15846 all occurrences of arlo_* types.
15847 * config/arm/thumb2.md: Update for attribute changes all occurrences
15849 * config/arm/arm.c (xscale_sched_adjust_cost): (rtx insn, rtx
15850 (cortexa7_older_only): Likewise.
15851 (cortexa7_younger): Likewise.
15852 * config/arm/arm1020e.md (1020alu_op): Update for attribute changes.
15853 (1020alu_shift_op): Likewise.
15854 (1020alu_shift_reg_op): Likewise.
15855 * config/arm/arm1026ejs.md (alu_op): Update for attribute changes.
15856 (alu_shift_op): Likewise.
15857 (alu_shift_reg_op): Likewise.
15858 * config/arm/arm1136jfs.md (11_alu_op): Update for attribute changes.
15859 (11_alu_shift_op): Likewise.
15860 (11_alu_shift_reg_op): Likewise.
15861 * config/arm/arm926ejs.md (9_alu_op): Update for attribute changes.
15862 (9_alu_shift_reg_op): Likewise.
15863 * config/arm/cortex-a15.md (cortex_a15_alu): Update for
15865 (cortex_a15_alu_shift): Likewise.
15866 (cortex_a15_alu_shift_reg): Likewise.
15867 * config/arm/cortex-a5.md (cortex_a5_alu): Update for
15869 (cortex_a5_alu_shift): Likewise.
15870 * config/arm/cortex-a53.md (cortex_a53_alu): Update for
15872 (cortex_a53_alu_shift): Likewise.
15873 * config/arm/cortex-a7.md (cortex_a7_alu_imm): Update for
15875 (cortex_a7_alu_reg): Likewise.
15876 (cortex_a7_alu_shift): Likewise.
15877 * config/arm/cortex-a8.md (cortex_a8_alu): Update for
15879 (cortex_a8_alu_shift): Likewise.
15880 (cortex_a8_alu_shift_reg): Likewise.
15881 * config/arm/cortex-a9.md (cortex_a9_dp): Update for attribute changes.
15882 (cortex_a9_dp_shift): Likewise.
15883 * config/arm/cortex-m4.md (cortex_m4_alu): Update for
15885 * config/arm/cortex-r4.md
15886 (cortex_r4_alu): Update for attribute changes.
15887 (cortex_r4_mov): Likewise.
15888 (cortex_r4_alu_shift_reg): Likewise.
15889 * config/arm/fa526.md (526_alu_op): Update for attribute changes.
15890 (526_alu_shift_op): Likewise.
15891 * config/arm/fa606te.md (606te_alu_op): Update for attribute changes.
15892 * config/arm/fa626te.md (626te_alu_op): Update for attribute changes.
15893 (626te_alu_shift_op): Likewise.
15894 * config/arm/fa726te.md (726te_alu_op): Update for attribute changes.
15895 (726te_alu_shift_op): Likewise.
15896 (726te_alu_shift_reg_op): Likewise.
15897 * config/arm/fmp626.md (mp626_alu_op): Update for attribute changes.
15898 (mp626_alu_shift_op): Likewise.
15899 * config/arm/marvell-pj4.md (pj4_alu): Update for attribute changes.
15900 (pj4_alu_conds): Likewise.
15901 (pj4_shift): Likewise.
15902 (pj4_shift_conds): Likewise.
15903 (pj4_alu_shift): Likewise.
15904 (pj4_alu_shift_conds): Likewise.
15905 * config/aarch64/aarch64.md: Update for attribute change
15906 all occurrences of arlo_* and shift* types.
15908 2013-09-05 Mike Stump <mikestump@comcast.net>
15910 * tree.h: Move documentation for tree_function_decl to tree-core.h
15911 with the declaration.
15913 2013-09-05 Peter Bergner <bergner@vnet.ibm.com>
15916 * reginfo.c (choose_hard_reg_mode): Scan through all mode classes
15917 looking for widest mode.
15919 2013-09-05 Eric Botcazou <ebotcazou@adacore.com>
15921 * config.gcc (*-*-vxworks*): Do not override an existing extra_objs.
15923 2013-09-05 Richard Biener <rguenther@suse.de>
15925 PR tree-optimization/58137
15926 * tree-vect-stmts.c (get_vectype_for_scalar_type_and_size):
15927 Do not create vectors of pointers.
15928 * tree-vect-loop.c (get_initial_def_for_induction): Use proper
15929 types for the components of the vector initializer.
15930 * tree-cfg.c (verify_gimple_assign_binary): Remove special-casing
15931 allowing pointer vectors with PLUS_EXPR/MINUS_EXPR.
15933 2013-09-05 Martin Jambor <mjambor@suse.cz>
15935 * ipa-prop.c (remove_described_reference): Accept missing references,
15936 return false if that hppens, otherwise return true.
15937 (cgraph_node_for_jfunc): New function.
15938 (try_decrement_rdesc_refcount): Likewise.
15939 (try_make_edge_direct_simple_call): Use them.
15940 (ipa_edge_removal_hook): Remove references from rdescs.
15941 (ipa_edge_duplication_hook): Clone rdescs and their references
15942 when the new edge has the same caller as the old one.
15943 * cgraph.c (cgraph_resolve_speculation): Remove speculative
15944 reference before removing any edges.
15946 2013-09-05 Richard Earnshaw <rearnsha@arm.com>
15948 * arm.c (thumb2_emit_strd_push): Rewrite to use pre-decrement on
15950 * thumb2.md (thumb2_storewb_parisi): New pattern.
15952 2013-09-05 Yufeng Zhang <yufeng.zhang@arm.com>
15954 * config/aarch64/aarch64-option-extensions.def: Add
15955 AARCH64_OPT_EXTENSION of 'crc'.
15956 * config/aarch64/aarch64.h (AARCH64_FL_CRC): New define.
15957 (AARCH64_ISA_CRC): Ditto.
15958 * doc/invoke.texi (-march and -mcpu feature modifiers): Add
15959 description of the CRC extension.
15961 2013-09-05 Alexander Ivchenko <alexander.ivchenko@intel.com>
15963 * config/rs6000/linux64.h: Define OPTION_BIONIC and OPTION_UCLIBC.
15964 * config/rs6000/linux.h: Ditto.
15965 * alpha/linux.h: Ditto.
15966 * config/bfin/uclinux.h: Define TARGET_LIBC_HAS_FUNCTION as
15967 no_c99_libc_has_function.
15968 * config/c6x/uclinux-elf.h: Ditto.
15969 * config/lm32/uclinux-elf.h: Ditto.
15970 * config/m68k/uclinux.h: Ditto.
15971 * config/moxie/uclinux.h: Ditto.
15972 * config.gcc (bfin*-linux-uclibc*): Add t-linux-android to tmake_file.
15973 (crisv32-*-linux*, cris-*-linux*): Ditto.
15974 * config/bfin/bfin.c: Include "tm_p.h".
15976 2013-09-05 Richard Biener <rguenther@suse.de>
15978 * tree-vect-loop.c (vect_analyze_loop_operations): Properly
15979 check for a definition without a basic-block.
15981 2013-09-05 James Greenhalgh <james.greenhalgh@arm.com>
15982 Sofiane Naci <sofiane.naci@arm.com>
15984 * config/aarch64/aarch64.md
15985 (*movti_aarch64): Rename r_2_f and f_2_r.
15986 (*movsf_aarch64): Likewise.
15987 (*movdf_aarch64): Likewise.
15988 (*movtf_aarch64): Likewise.
15989 (aarch64_movdi_<mode>low): Likewise.
15990 (aarch64_movdi_<mode>high): Likewise.
15991 (aarch64_mov<mode>high_di): Likewise.
15992 (aarch64_mov<mode>low_di): Likewise.
15993 (aarch64_movtilow_tilow): Likewise.
15994 * config/arm/arm.md (attribute "neon_type"): Delete. Move attribute
15995 values to config/arm/types.md
15996 (attribute "conds"): Update for attribute change.
15997 (anddi3_insn): Likewise.
15998 (iordi3_insn): Likewise.
15999 (xordi3_insn): Likewise.
16000 (one_cmpldi2): Likewise.
16001 * config/arm/types.md (type): Add Neon types.
16002 * config/arm/neon.md (neon_mov<mode>): Remove "neon_type" attribute,
16003 use "type" attribute.
16004 (movmisalign<mode>_neon_store): Likewise.
16005 (movmisalign<mode>_neon_load): Likewise.
16006 (vec_set<mode>_internal): Likewise.
16007 (vec_setv2di_internal): Likewise.
16008 (vec_extract<mode>): Likewise.
16009 (vec_extractv2di): Likewise.
16010 (add<mode>3_neon): Likewise.
16011 (adddi3_neon): Likewise.
16012 (sub<mode>3_neon): Likewise.
16013 (subdi3_neon): Likewise.
16014 (mul<mode>3_neon): Likewise.
16015 (mul<mode>3add<mode>_neon): Likewise.
16016 (mul<mode>3neg<mode>add<mode>_neon): Likewise.
16017 (fma<VCVTF:mode>4)): Likewise.
16018 (fma<VCVTF:mode>4_intrinsic): Likewise.
16019 (fmsub<VCVTF:mode>4)): Likewise.
16020 (fmsub<VCVTF:mode>4_intrinsic): Likewise.
16021 (neon_vrint<NEON_VRINT:nvrint_variant><VCVTF:mode>): Likewise.
16022 (ior<mode>3): Likewise.
16023 (and<mode>3): Likewise.
16024 (anddi3_neon): Likewise.
16025 (orn<mode>3_neon): Likewise.
16026 (orndi3_neon): Likewise.
16027 (bic<mode>3_neon): Likewise.
16028 (bicdi3_neon): Likewise.
16029 (xor<mode>3): Likewise.
16030 (one_cmpl<mode>2): Likewise.
16031 (abs<mode>2): Likewise.
16032 (neg<mode>2): Likewise.
16033 (umin<mode>3_neon): Likewise.
16034 (umax<mode>3_neon): Likewise.
16035 (smin<mode>3_neon): Likewise.
16036 (smax<mode>3_neon): Likewise.
16037 (vashl<mode>3): Likewise.
16038 (vashr<mode>3_imm): Likewise.
16039 (vlshr<mode>3_imm): Likewise.
16040 (ashl<mode>3_signed): Likewise.
16041 (ashl<mode>3_unsigned): Likewise.
16042 (neon_load_count): Likewise.
16043 (ashldi3_neon_noclobber): Likewise.
16044 (signed_shift_di3_neon): Likewise.
16045 (unsigned_shift_di3_neon): Likewise.
16046 (ashrdi3_neon_imm_noclobber): Likewise.
16047 (lshrdi3_neon_imm_noclobber): Likewise.
16048 (widen_ssum<mode>3): Likewise.
16049 (widen_usum<mode>3): Likewise.
16050 (quad_halves_<code>v4si): Likewise.
16051 (quad_halves_<code>v4sf): Likewise.
16052 (quad_halves_<code>v8hi): Likewise.
16053 (quad_halves_<code>v16qi): Likewise.
16054 (reduc_splus_v2di): Likewise.
16055 (neon_vpadd_internal<mode>): Likewise.
16056 (neon_vpsmin<mode>): Likewise.
16057 (neon_vpsmax<mode>): Likewise.
16058 (neon_vpumin<mode>): Likewise.
16059 (neon_vpumax<mode>): Likewise.
16060 (ss_add<mode>_neon): Likewise.
16061 (us_add<mode>_neon): Likewise.
16062 (ss_sub<mode>_neon): Likewise.
16063 (us_sub<mode>_neon): Likewise.
16064 (neon_vadd<mode>_unspec): Likewise.
16065 (neon_vaddl<mode>): Likewise.
16066 (neon_vaddw<mode>): Likewise.
16067 (neon_vhadd<mode>): Likewise.
16068 (neon_vqadd<mode>): Likewise.
16069 (neon_vaddhn<mode>): Likewise.
16070 (neon_vmul<mode>): Likewise.
16071 (neon_vmla<mode>): Likewise.
16072 (neon_vmlal<mode>): Likewise.
16073 (neon_vmls<mode>): Likewise.
16074 (neon_vmlsl<mode>): Likewise.
16075 (neon_vqdmulh<mode>): Likewise.
16076 (neon_vqdmlal<mode>): Likewise.
16077 (neon_vqdmlsl<mode>): Likewise.
16078 (neon_vmull<mode>): Likewise.
16079 (neon_vqdmull<mode>): Likewise.
16080 (neon_vsub<mode>_unspec): Likewise.
16081 (neon_vsubl<mode>): Likewise.
16082 (neon_vsubw<mode>): Likewise.
16083 (neon_vqsub<mode>): Likewise.
16084 (neon_vhsub<mode>): Likewise.
16085 (neon_vsubhn<mode>): Likewise.
16086 (neon_vceq<mode>): Likewise.
16087 (neon_vcge<mode>): Likewise.
16088 (neon_vcgeu<mode>): Likewise.
16089 (neon_vcgt<mode>): Likewise.
16090 (neon_vcgtu<mode>): Likewise.
16091 (neon_vcle<mode>): Likewise.
16092 (neon_vclt<mode>): Likewise.
16093 (neon_vcage<mode>): Likewise.
16094 (neon_vcagt<mode>): Likewise.
16095 (neon_vtst<mode>): Likewise.
16096 (neon_vabd<mode>): Likewise.
16097 (neon_vabdl<mode>): Likewise.
16098 (neon_vaba<mode>): Likewise.
16099 (neon_vabal<mode>): Likewise.
16100 (neon_vmax<mode>): Likewise.
16101 (neon_vmin<mode>): Likewise.
16102 (neon_vpaddl<mode>): Likewise.
16103 (neon_vpadal<mode>): Likewise.
16104 (neon_vpmax<mode>): Likewise.
16105 (neon_vpmin<mode>): Likewise.
16106 (neon_vrecps<mode>): Likewise.
16107 (neon_vrsqrts<mode>): Likewise.
16108 (neon_vqabs<mode>): Likewise.
16109 (neon_vqneg<mode>): Likewise.
16110 (neon_vcls<mode>): Likewise.
16111 (clz<mode>2): Likewise.
16112 (popcount<mode>2): Likewise.
16113 (neon_vrecpe): Likewise.
16114 (neon_vrsqrte): Likewise.
16115 (neon_vget_lane<mode>_sext_internal): Likewise.
16116 (neon_vget_lane<mode>_zext_internal): Likewise.
16117 (neon_vdup_n<mode>): Likewise.
16118 (neon_vdup_nv2di): Likewise.
16119 (neon_vdpu_lane<mode>_internal): Likewise.
16120 (neon_vswp<mode>): Likewise.
16121 (float<mode><V_cvtto>2): Likewise.
16122 (floatuns<mode><V_cvtto>2): Likewise.
16123 (fix_trunc<mode><V_cvtto>)2): Likewise
16124 (fixuns_trunc<mode><V_cvtto)2): Likewise.
16125 (neon_vcvt<mode>): Likewise.
16126 (neon_vcvtv4sfv4hf): Likewise.
16127 (neon_vcvtv4hfv4sf): Likewise.
16128 (neon_vcvt_n<mode>): Likewise.
16129 (neon_vmovn<mode>): Likewise.
16130 (neon_vqmovn<mode>): Likewise.
16131 (neon_vqmovun<mode>): Likewise.
16132 (neon_vmovl<mode>): Likewise.
16133 (neon_vmul_lane<mode>): Likewise.
16134 (neon_vmull_lane<mode>): Likewise.
16135 (neon_vqdmull_lane<mode>): Likewise.
16136 (neon_vqdmulh_lane<mode>): Likewise.
16137 (neon_vmla_lane<mode>): Likewise.
16138 (neon_vmlal_lane<mode>): Likewise.
16139 (neon_vqdmlal_lane<mode>): Likewise.
16140 (neon_vmls_lane<mode>): Likewise.
16141 (neon_vmlsl_lane<mode>): Likewise.
16142 (neon_vqdmlsl_lane<mode>): Likewise.
16143 (neon_vext<mode>): Likewise.
16144 (neon_vrev64<mode>): Likewise.
16145 (neon_vrev32<mode>): Likewise.
16146 (neon_vrev16<mode>): Likewise.
16147 (neon_vbsl<mode>_internal): Likewise.
16148 (neon_vshl<mode>): Likewise.
16149 (neon_vqshl<mode>): Likewise.
16150 (neon_vshr_n<mode>): Likewise.
16151 (neon_vshrn_n<mode>): Likewise.
16152 (neon_vqshrn_n<mode>): Likewise.
16153 (neon_vqshrun_n<mode>): Likewise.
16154 (neon_vshl_n<mode>): Likewise.
16155 (neon_vqshl_n<mode>): Likewise.
16156 (neon_vqshlu_n<mode>): Likewise.
16157 (neon_vshll_n<mode>): Likewise.
16158 (neon_vsra_n<mode>): Likewise.
16159 (neon_vsri_n<mode>): Likewise.
16160 (neon_vsli_n<mode>): Likewise.
16161 (neon_vtbl1v8qi): Likewise.
16162 (neon_vtbl2v8qi): Likewise.
16163 (neon_vtbl3v8qi): Likewise.
16164 (neon_vtbl4v8qi): Likewise.
16165 (neon_vtbx1v8qi): Likewise.
16166 (neon_vtbx2v8qi): Likewise.
16167 (neon_vtbx3v8qi): Likewise.
16168 (neon_vtbx4v8qi): Likewise.
16169 (neon_vtrn<mode>_internal): Likewise.
16170 (neon_vzip<mode>_internal): Likewise.
16171 (neon_vuzp<mode>_internal): Likewise.
16172 (neon_vld1<mode>): Likewise.
16173 (neon_vld1_lane<mode>): Likewise.
16174 (neon_vld1_dup<mode>): Likewise.
16175 (neon_vld1_dupv2di): Likewise.
16176 (neon_vst1<mode>): Likewise.
16177 (neon_vst1_lane<mode>): Likewise.
16178 (neon_vld2<mode>): Likewise.
16179 (neon_vld2_lane<mode>): Likewise.
16180 (neon_vld2_dup<mode>): Likewise.
16181 (neon_vst2<mode>): Likewise.
16182 (neon_vst2_lane<mode>): Likewise.
16183 (neon_vld3<mode>): Likewise.
16184 (neon_vld3qa<mode>): Likewise.
16185 (neon_vld3qb<mode>): Likewise.
16186 (neon_vld3_lane<mode>): Likewise.
16187 (neon_vld3_dup<mode>): Likewise.
16188 (neon_vst3<mode>): Likewise.
16189 (neon_vst3qa<mode>): Likewise.
16190 (neon_vst3qb<mode>): Likewise.
16191 (neon_vst3_lane<mode>): Likewise.
16192 (neon_vld4<mode>): Likewise.
16193 (neon_vld4qa<mode>): Likewise.
16194 (neon_vld4qb<mode>): Likewise.
16195 (neon_vld4_lane<mode>): Likewise.
16196 (neon_vld4_dup<mode>): Likewise.
16197 (neon_vst4<mode>): Likewise.
16198 (neon_vst4qa<mode>): Likewise.
16199 (neon_vst4qb<mode>): Likewise.
16200 (neon_vst4_lane<mode>): Likewise.
16201 (neon_vec_unpack<US>_lo_<mode>): Likewise.
16202 (neon_vec_unpack<US>_hi_<mode>): Likewise.
16203 (neon_vec_<US>mult_lo_<mode>): Likewise.
16204 (neon_vec_<US>mult_hi_<mode>): Likewise.
16205 (neon_vec_<US>shiftl_<mode>): Likewise.
16206 (neon_unpack<US>_<mode>): Likewise.
16207 (neon_vec_<US>mult_<mode>): Likewise.
16208 (vec_pack_trunc_<mode>): Likewise.
16209 (neon_vec_pack_trunk_<mode>): Likewise.
16210 (neon_vabd<mode>_2): Likewise.
16211 (neon_vabd<mode>_3): Likewise.
16212 * config/arm/vfp.md (arm_movsi_vfp): Update for attribute changes.
16213 (thumb2_movsi_vfp): Likewise.
16214 (movdi_vfp): Likewise.
16215 (movdi_vfp_cortexa8): Likewise.
16216 (movhf_vfp_neon): Likewise.
16217 (movhf_vfp): Likewiwse.
16218 (movsf_vfp): Likewiwse.
16219 (thumb2_movsf_vfp): Likewiwse.
16220 (movdf_vfp): Likewise.
16221 (thumb2_movdf_vfp): Likewise.
16222 (movsfcc_vfp): Likewise.
16223 (thumb2_movsfcc_vfp): Likewise.
16224 (movdfcc_vfp): Likewise.
16225 (thumb2_movdfcc_vfp): Likewise.
16226 * config/arm/arm.c (cortexa7_older_only): Update for attribute change.
16227 * config/arm/arm1020e.md (v10_c2v): Update for attribute change.
16228 (v10_v2c): Likewise.
16229 * config/arm/cortex-a15-neon.md (cortex_a15_neon_int_1): Update for
16231 (cortex_a15_neon_int_2): Likewise.
16232 (cortex_a15_neon_int_3): Likewise.
16233 (cortex_a15_neon_int_4): Likewise.
16234 (cortex_a15_neon_int_5): Likewise.
16235 (cortex_a15_neon_vqneg_vqabs): Likewise.
16236 (cortex_a15_neon_vmov): Likewise.
16237 (cortex_a15_neon_vaba): Likewise.
16238 (cortex_a15_neon_vaba_qqq): Likewise.
16239 (cortex_a15_neon_mul_ddd_8_16_qdd_16_8_long_32_16_long): Likewise.
16240 (cortex_a15_neon_mul_qqq_8_16_32_ddd_32): Likewise.
16241 (cortex_a15_neon_mul_qdd_64_32_long_qqd_16_ddd_32_\
16242 scalar_64_32_long_scalar): Likewise.
16243 (cortex_a15_neon_mla_ddd_8_16_qdd_16_8_long_32_16_long): Likewise.
16244 (cortex_a15_neon_mla_qqq_8_16): Likewise.
16245 (cortex_a15_neon_mla_ddd_32_qqd_16_ddd_32_scalar_qdd_64_32_\
16246 lotype_qdd_64_32_long): Likewise.
16247 (cortex_a15_neon_mla_qqq_32_qqd_32_scalar): Likewise.
16248 (cortex_a15_neon_mul_ddd_16_scalar_32_16_long_scalar): Likewise.
16249 (cortex_a15_neon_mul_qqd_32_scalar): Likewise.
16250 (cortex_a15_neon_mla_ddd_16_scalar_qdd_32_16_long_scalar): Likewise.
16251 (cortex_a15_neon_shift_1): Likewise.
16252 (cortex_a15_neon_shift_2): Likewise.
16253 (cortex_a15_neon_shift_3): Likewise.
16254 (cortex_a15_neon_vshl_ddd): Likewise.
16255 (cortex_a15_neon_vqshl_vrshl_vqrshl_qqq): Likewise.
16256 (cortex_a15_neon_vsra_vrsra): Likewise.
16257 (cortex_a15_neon_fp_vadd_ddd_vabs_dd): Likewise.
16258 (cortex_a15_neon_fp_vadd_qqq_vabs_qq): Likewise.
16259 (cortex_a15_neon_fp_vmul_ddd): Likewise.
16260 (cortex_a15_neon_fp_vmul_qqd): Likewise.
16261 (cortex_a15_neon_fp_vmla_ddd): Likewise.
16262 (cortex_a15_neon_fp_vmla_qqq): Likewise.
16263 (cortex_a15_neon_fp_vmla_ddd_scalar): Likewise.
16264 (cortex_a15_neon_fp_vmla_qqq_scalar): Likewise.
16265 (cortex_a15_neon_fp_vrecps_vrsqrts_ddd): Likewise.
16266 (cortex_a15_neon_fp_vrecps_vrsqrts_qqq): Likewise.
16267 (cortex_a15_neon_bp_simple): Likewise.
16268 (cortex_a15_neon_bp_2cycle): Likewise.
16269 (cortex_a15_neon_bp_3cycle): Likewise.
16270 (cortex_a15_neon_vld1_1_2_regs): Likewise.
16271 (cortex_a15_neon_vld1_3_4_regs): Likewise.
16272 (cortex_a15_neon_vld2_2_regs_vld1_vld2_all_lanes): Likewise.
16273 (cortex_a15_neon_vld2_4_regs): Likewise.
16274 (cortex_a15_neon_vld3_vld4): Likewise.
16275 (cortex_a15_neon_vst1_1_2_regs_vst2_2_regs): Likewise.
16276 (cortex_a15_neon_vst1_3_4_regs): Likewise.
16277 (cortex_a15_neon_vst2_4_regs_vst3_vst4): Likewise.
16278 (cortex_a15_neon_vst3_vst4): Likewise.
16279 (cortex_a15_neon_vld1_vld2_lane): Likewise.
16280 (cortex_a15_neon_vld3_vld4_lane" 10
16281 (cortex_a15_neon_vst1_vst2_lane): Likewise.
16282 (cortex_a15_neon_vst3_vst4_lane): Likewise.
16283 (cortex_a15_neon_vld3_vld4_all_lanes): Likewise.
16284 (cortex_a15_neon_ldm_2): Likewise.0
16285 (cortex_a15_neon_stm_2): Likewise.
16286 (cortex_a15_neon_mcr): Likewise.
16287 (cortex_a15_neon_mcr_2_mcrr): Likewise.
16288 (cortex_a15_neon_mrc): Likewise.
16289 (cortex_a15_neon_mrrc): Likewise.
16290 * config/arm/cortex-a15.md (cortex_a15_alu): Update for attribute
16292 (cortex_a15_alu_shift): Likewise.
16293 (cortex_a15_alu_shift_reg): Likewise.
16294 (cortex_a15_mult32): Likewise.
16295 (cortex_a15_mult64): Likewise.
16296 (cortex_a15_block): Likewise.
16297 (cortex_a15_branch): Likewise.
16298 (cortex_a15_load1): Likewise.
16299 (cortex_a15_load3): Likewise.
16300 (cortex_a15_store1): Likewise.
16301 (cortex_a15_store3): Likewise.
16302 (cortex_a15_call): Likewise.
16303 * config/arm/cortex-a5.md (cortex_a5_r2f): Update for attribute change.
16304 (cortex_a5_f2r): Likewise.
16305 * config/arm/cortex-a53.md (cortex_a53_r2f): Update for attribute
16307 (cortex_a53_f2r): Likewise.
16308 * config/arm/cortex-a7.md
16309 (cortex_a7_branch): Update for attribute change.
16310 (cortex_a7_call): Likewise.
16311 (cortex_a7_alu_imm): Likewise.
16312 (cortex_a7_alu_reg): Likewise.
16313 (cortex_a7_alu_shift): Likewise.
16314 (cortex_a7_mul): Likewise.
16315 (cortex_a7_load1): Likewise.
16316 (cortex_a7_store1): Likewise.
16317 (cortex_a7_load2): Likewise.
16318 (cortex_a7_store2): Likewise.
16319 (cortex_a7_load3): Likewise.
16320 (cortex_a7_store3): Likewise.
16321 (cortex_a7_load4): Likewise.
16322 (cortex_a7_store4): Likewise.
16323 (cortex_a7_fpalu): Likewise.
16324 (cortex_a7_fconst): Likewise.
16325 (cortex_a7_fpmuls): Likewise.
16326 (cortex_a7_neon_mul): Likewise.
16327 (cortex_a7_fpmacs): Likewise.
16328 (cortex_a7_neon_mla: Likewise.
16329 (cortex_a7_fpmuld: Likewise.
16330 (cortex_a7_fpmacd: Likewise.
16331 (cortex_a7_fpfmad: Likewise.
16332 (cortex_a7_fdivs: Likewise.
16333 (cortex_a7_fdivd: Likewise.
16334 (cortex_a7_r2f: Likewise.
16335 (cortex_a7_f2r: Likewise.
16336 (cortex_a7_f_flags: Likewise.
16337 (cortex_a7_f_loads: Likewise.
16338 (cortex_a7_f_loadd: Likewise.
16339 (cortex_a7_f_stores: Likewise.
16340 (cortex_a7_f_stored: Likewise.
16341 (cortex_a7_neon): Likewise.
16342 * config/arm/cortex-a8-neon.md
16343 (cortex_a8_neon_mrc): Update for attribute change.
16344 (cortex_a8_neon_mrrc): Likewise.
16345 (cortex_a8_neon_int_1): Likewise.
16346 (cortex_a8_neon_int_2): Likewise.
16347 (cortex_a8_neon_int_3): Likewise.
16348 (cortex_a8_neon_int_4): Likewise.
16349 (cortex_a8_neon_int_5): Likewise.
16350 (cortex_a8_neon_vqneg_vqabs): Likewise.
16351 (cortex_a8_neon_vmov): Likewise.
16352 (cortex_a8_neon_vaba): Likewise.
16353 (cortex_a8_neon_vaba_qqq): Likewise.
16354 (cortex_a8_neon_vsma): Likewise.
16355 (cortex_a8_neon_mul_ddd_8_16_qdd_16_8_long_32_16_long): Likewise.
16356 (cortex_a8_neon_mul_qqq_8_16_32_ddd_32): Likewise.
16357 (cortex_a8_neon_mul_qdd_64_32_long_qqd_16_ddd_32_scalar_64_32_\
16358 long_scalar): Likewise.
16359 (cortex_a8_neon_mla_ddd_8_16_qdd_16_8_long_32_16_long): Likewise.
16360 (cortex_a8_neon_mla_qqq_8_16): Likewise.
16361 (cortex_a8_neon_mla_ddd_32_qqd_16_ddd_32_scalar_qdd_64_32_\
16362 long_scalar_qdd_64_32_long): Likewise.
16363 (cortex_a8_neon_mla_qqq_32_qqd_32_scalar): Likewise.
16364 (cortex_a8_neon_mul_ddd_16_scalar_32_16_long_scalar): Likewise.
16365 (cortex_a8_neon_mul_qqd_32_scalar): Likewise.
16366 (cortex_a8_neon_mla_ddd_16_scalar_qdd_32_16_long_scalar): Likewise.
16367 (cortex_a8_neon_shift_1): Likewise.
16368 (cortex_a8_neon_shift_2): Likewise.
16369 (cortex_a8_neon_shift_3): Likewise.
16370 (cortex_a8_neon_vshl_ddd): Likewise.
16371 (cortex_a8_neon_vqshl_vrshl_vqrshl_qqq): Likewise.
16372 (cortex_a8_neon_vsra_vrsra): Likewise.
16373 (cortex_a8_neon_fp_vadd_ddd_vabs_dd): Likewise.
16374 (cortex_a8_neon_fp_vadd_qqq_vabs_qq): Likewise.
16375 (cortex_a8_neon_fp_vsum): Likewise.
16376 (cortex_a8_neon_fp_vmul_ddd): Likewise.
16377 (cortex_a8_neon_fp_vmul_qqd): Likewise.
16378 (cortex_a8_neon_fp_vmla_ddd): Likewise.
16379 (cortex_a8_neon_fp_vmla_qqq): Likewise.
16380 (cortex_a8_neon_fp_vmla_ddd_scalar): Likewise.
16381 (cortex_a8_neon_fp_vmla_qqq_scalar): Likewise.
16382 (cortex_a8_neon_fp_vrecps_vrsqrts_ddd): Likewise.
16383 (cortex_a8_neon_fp_vrecps_vrsqrts_qqq): Likewise.
16384 (cortex_a8_neon_bp_simple): Likewise.
16385 (cortex_a8_neon_bp_2cycle): Likewise.
16386 (cortex_a8_neon_bp_3cycle): Likewise.
16387 (cortex_a8_neon_ldr): Likewise.
16388 (cortex_a8_neon_str): Likewise.
16389 (cortex_a8_neon_vld1_1_2_regs): Likewise.
16390 (cortex_a8_neon_vld1_3_4_regs): Likewise.
16391 (cortex_a8_neon_vld2_2_regs_vld1_vld2_all_lanes): Likewise.
16392 (cortex_a8_neon_vld2_4_regs): Likewise.
16393 (cortex_a8_neon_vld3_vld4): Likewise.
16394 (cortex_a8_neon_vst1_1_2_regs_vst2_2_regs): Likewise.
16395 (cortex_a8_neon_vst1_3_4_regs): Likewise.
16396 (cortex_a8_neon_vst2_4_regs_vst3_vst4): Likewise.
16397 (cortex_a8_neon_vst3_vst4): Likewise.
16398 (cortex_a8_neon_vld1_vld2_lane): Likewise.
16399 (cortex_a8_neon_vld3_vld4_lane): Likewise.
16400 (cortex_a8_neon_vst1_vst2_lane): Likewise.
16401 (cortex_a8_neon_vst3_vst4_lane): Likewise.
16402 (cortex_a8_neon_vld3_vld4_all_lanes): Likewise.
16403 (cortex_a8_neon_mcr): Likewise.
16404 (cortex_a8_neon_mcr_2_mcrr): Likewise.
16405 * config/arm/cortex-a8.md (cortex_a8_alu): Update for attribute change.
16406 * config/arm/cortex-a9-neon.md (ca9_neon_mrc): Update for attribute
16408 (ca9_neon_mrrc): Likewise.
16409 (cortex_a9_neon_int_1): Likewise.
16410 (cortex_a9_neon_int_2): Likewise.
16411 (cortex_a9_neon_int_3): Likewise.
16412 (cortex_a9_neon_int_4): Likewise.
16413 (cortex_a9_neon_int_5): Likewise.
16414 (cortex_a9_neon_vqneg_vqabs): Likewise.
16415 (cortex_a9_neon_vmov): Likewise.
16416 (cortex_a9_neon_vaba): Likewise.
16417 (cortex_a9_neon_vaba_qqq): Likewise.
16418 (cortex_a9_neon_vsma): Likewise.
16419 (cortex_a9_neon_mul_ddd_8_16_qdd_16_8_long_32_16_long): Likewise.
16420 (cortex_a9_neon_mul_qqq_8_16_32_ddd_32): Likewise.
16421 (cortex_a9_neon_mul_qdd_64_32_long_qqd_16_ddd_32_scalar_64_32_\
16422 long_scalar): Likewise.
16423 (cortex_a9_neon_mla_ddd_8_16_qdd_16_8_long_32_16_long): Likewise.
16424 (cortex_a9_neon_mla_qqq_8_16): Likewise.
16425 (cortex_a9_neon_mla_ddd_32_qqd_16_ddd_32_scalar_qdd_64_32_\
16426 long_scalar_qdd_64_32_long): Likewise.
16427 (cortex_a9_neon_mla_qqq_32_qqd_32_scalar): Likewise.
16428 (cortex_a9_neon_mul_ddd_16_scalar_32_16_long_scalar): Likewise.
16429 (cortex_a9_neon_mul_qqd_32_scalar): Likewise.
16430 (cortex_a9_neon_mla_ddd_16_scalar_qdd_32_16_long_scalar): Likewise.
16431 (cortex_a9_neon_shift_1): Likewise.
16432 (cortex_a9_neon_shift_2): Likewise.
16433 (cortex_a9_neon_shift_3): Likewise.
16434 (cortex_a9_neon_vshl_ddd): Likewise.
16435 (cortex_a9_neon_vqshl_vrshl_vqrshl_qqq): Likewise.
16436 (cortex_a9_neon_vsra_vrsra): Likewise.
16437 (cortex_a9_neon_fp_vadd_ddd_vabs_dd): Likewise.
16438 (cortex_a9_neon_fp_vadd_qqq_vabs_qq): Likewise.
16439 (cortex_a9_neon_fp_vsum): Likewise.
16440 (cortex_a9_neon_fp_vmul_ddd): Likewise.
16441 (cortex_a9_neon_fp_vmul_qqd): Likewise.
16442 (cortex_a9_neon_fp_vmla_ddd): Likewise.
16443 (cortex_a9_neon_fp_vmla_qqq): Likewise.
16444 (cortex_a9_neon_fp_vmla_ddd_scalar): Likewise.
16445 (cortex_a9_neon_fp_vmla_qqq_scalar): Likewise.
16446 (cortex_a9_neon_fp_vrecps_vrsqrts_ddd): Likewise.
16447 (cortex_a9_neon_fp_vrecps_vrsqrts_qqq): Likewise.
16448 (cortex_a9_neon_bp_simple): Likewise.
16449 (cortex_a9_neon_bp_2cycle): Likewise.
16450 (cortex_a9_neon_bp_3cycle): Likewise.
16451 (cortex_a9_neon_ldr): Likewise.
16452 (cortex_a9_neon_str): Likewise.
16453 (cortex_a9_neon_vld1_1_2_regs): Likewise.
16454 (cortex_a9_neon_vld1_3_4_regs): Likewise.
16455 (cortex_a9_neon_vld2_2_regs_vld1_vld2_all_lanes): Likewise.
16456 (cortex_a9_neon_vld2_4_regs): Likewise.
16457 (cortex_a9_neon_vld3_vld4): Likewise.
16458 (cortex_a9_neon_vst1_1_2_regs_vst2_2_regs): Likewise.
16459 (cortex_a9_neon_vst1_3_4_regs): Likewise.
16460 (cortex_a9_neon_vst2_4_regs_vst3_vst4): Likewise.
16461 (cortex_a9_neon_vst3_vst4): Likewise.
16462 (cortex_a9_neon_vld1_vld2_lane): Likewise.
16463 (cortex_a9_neon_vld3_vld4_lane): Likewise.
16464 (cortex_a9_neon_vst1_vst2_lane): Likewise.
16465 (cortex_a9_neon_vst3_vst4_lane): Likewise.
16466 (cortex_a9_neon_vld3_vld4_all_lanes): Likewise.
16467 (cortex_a9_neon_mcr): Likewise.
16468 (cortex_a9_neon_mcr_2_mcrr): Likewise.
16469 * config/arm/cortex-a9.md (cortex_a9_dp): Update for attribute change.
16470 (cortex_a9_fps): Likewise.
16471 * config/arm/cortex-m4-fpu.md (cortex_m4_vmov_2): Update for attribute
16473 (cortex_m4_fmuls): Likewise.
16474 * config/arm/cortex-r4f.md (cortex_r4_mcr): Update for attribute
16476 (cortex_r4_mrc): Likewise.
16477 * config/arm/iterators.md: Update comment referring to neon_type.
16478 * config/arm/iwmmxt.md (iwmmxt_arm_movdi): Update for attribute change.
16479 (iwmmxt_movsi_insn): Likewise.
16480 * config/arm/marvell-pj4.md (pj4_vfp_to_core): Update for
16482 (pj4_core_to_vfp): Likewise.
16483 * config/arm/neon-schedgen.ml (emit_insn_reservations): Update for
16485 * config/arm/vfp11.md (vfp_fload): Update for attribute change.
16486 (vfp_fstore): Likewise.
16487 * doc/md.texi: Change references to neon_type to refer to type.
16489 2013-09-04 Dodji Seketeli <dodji@redhat.com>
16491 * tree.h (DECL_BUILT_IN): Fix typo in comment.
16493 2013-09-04 David Edelsohn <dje.gcc@gmail.com>
16495 * config/rs6000/rs6000.h (ASM_OUTPUT_DEF_FROM_DECLS): Only emit
16496 lglobl if not weak.
16498 2013-09-04 Easwaran Raman <eraman@google.com>
16500 PR middle-end/57370
16501 * tree-ssa-reassoc.c (get_stmt_uid_with_default): New function,
16502 (build_and_add_sum): Use it.
16503 (appears_later_in_bb): Simplify code.
16505 2013-09-04 Teresa Johnson <tejohnson@google.com>
16507 * dumpfile.c (dump_finish): Don't close stderr/stdout.
16509 2013-09-04 James Greenhalgh <james.greenhalgh@arm.com>
16511 * config/aarch64/arm_neon.h (vaddvq_<su>64): Fix return types.
16513 2013-09-04 Jan Hubicka <jh@suse.cz>
16515 * Makefile.in (ipa-devirt.o): Add dependency on diagnostic.h
16516 * ipa-devirt.c: Include diganostic.h
16517 (odr_type_d): Add types and types_set.
16518 (hash_type_name): Work for types with vtables during LTO.
16519 (odr_hasher::remove): Fix comment; destroy types_set.
16520 (add_type_duplicate): New function,
16521 (get_odr_type): Use it.
16522 (dump_type_inheritance_graph): Dump type duplicates.
16523 * ipa.c (symtab_remove_unreachable_nodes): Build type inheritance
16525 * tree.c (types_same_for_odr): Give exact answers on types with
16528 2013-09-04 Dodji Seketeli <dodji@redhat.com>
16530 * tree.h (DECL_BUILT_IN, DECL_IS_BUILTIN): Add more comments
16531 explaining their differences.
16533 2013-09-04 Sandeep Kumar Singh<Sandeep.Singh2@kpitcummins.com>
16535 * config/rx/rx.h: Add option -mcpu for target variants RX100 and RX200.
16537 2013-09-03 Jeff Law <law@redhat.com>
16539 * tree-ssa-threadedge.c (thread_across_edge): Record entire path
16540 when not threading through a joiner block. Pass joiner/no joiner
16541 state to register_jump_thread.
16542 * tree-ssa-threadupdate.c (register_jump_thread): Get joiner/no joiner
16543 state from argument rather than implying on path length.
16544 Dump the entire jump thread path into debugging dump.
16545 * tree-flow.h (register_jump_thread): Update prototype.
16547 2013-08-29 Xinliang David Li <davidxl@google.com>
16549 * tree-vect-data-refs.c (vect_compute_data_ref_alignment):
16550 Remove a trivial gcc_assert.
16552 2013-08-29 Xinliang David Li <davidxl@google.com>
16554 * tree-vect-slp.c (destroy_bb_vec_info): Data ref cleanup.
16555 * tree-vect-loop.c (destroy_bb_vec_info): Ditto.
16556 * tree-vect-data-refs.c (vect_compute_data_ref_alignment):
16557 Delay base decl alignment adjustment.
16558 * tree-vectorizer.c (vect_destroy_datarefs): New function.
16559 * tree-vectorizer.h: New data structure.
16560 (set_dr_misalignment): New function.
16561 (dr_misalignment): Ditto.
16562 * tree-vect-stmts.c (vectorizable_store): Ensure alignment.
16563 (vectorizable_load): Ditto.
16564 (ensure_base_align): New function.
16565 (vectorize_loops): Add dbg_cnt support.
16566 (execute_vect_slp): Ditto.
16567 * dbgcnt.def: New debug counter.
16568 * Makefile: New dependency.
16570 2013-09-03 Meador Inge <meadori@codesourcery.com>
16574 2013-08-30 Meador Inge <meadori@codesourcery.com>
16576 * tree-vrp.c (check_array_ref): Bail out on zero-length arrays.
16578 2013-09-03 David Edelsohn <dje.gcc@gmail.com>
16580 * config/rs6000/rs6000.h (ASM_OUTPUT_DEF_FROM_DECLS): Emit lglobl for
16581 function descriptor.
16583 2013-09-03 Richard Biener <rguenther@suse.de>
16585 * tree-affine.c (add_elt_to_tree): Fix association issue,
16586 avoid useless converts and make sure to always return a
16587 properly typed result.
16589 2013-09-03 Richard Biener <rguenther@suse.de>
16591 PR middle-end/57656
16592 * fold-const.c (negate_expr_p): Fix division case.
16593 (negate_expr): Likewise.
16595 2013-09-03 Richard Biener <rguenther@suse.de>
16598 * tree-streamer-out.c: Include tm.h.
16599 * Makefile.in (tree-streamer-out.o): Depend on $(TM_H).
16601 2013-09-03 Jan Hubicka <jh@suse.cz>
16603 * tree-profile.c (tree_profiling): Cleanup CFG when done.
16605 2013-09-03 Alan Modra <amodra@gmail.com>
16607 * config.gcc (powerpc*-*-linux*): Add support for little-endian
16608 multilibs to big-endian target and vice versa.
16609 * config/rs6000/t-linux64: Use := assignment on all vars.
16610 (MULTILIB_EXTRA_OPTS): Remove fPIC.
16611 (MULTILIB_OSDIRNAMES): Specify using mapping from multilib_options.
16612 * config/rs6000/t-linux64le: New file.
16613 * config/rs6000/t-linux64bele: New file.
16614 * config/rs6000/t-linux64lebe: New file.
16616 2013-09-02 Jan Hubicka <jh@suse.cz>
16618 * ipa-inline-transform.c (inline_transform): Do not
16619 optimize_inline_calls when not optimizing.
16621 2013-09-02 Jan Hubicka <jh@suse.cz>
16623 * lto-symtab.c (lto_symtab_merge_symbols): Add comments; merge
16624 duplicated nodes for assembler names.
16625 * symtab.c (symtab_unregister_node): Do not attempt to unlink
16626 hard registers from assembler name hash.
16628 2013-09-02 Jan Hubicka <jh@suse.cz>
16630 * ipa-split.c (execute_split_functions): Split externally visible
16631 functions called once.
16633 2013-09-02 Martin Jambor <mjambor@suse.cz>
16636 * ipa-prop.c (ipa_edge_duplication_hook): Always put new rdesc to the
16637 linked list. When finding the correct duplicate, also consider also
16638 the caller in additon to its inlined_to node.
16640 2013-09-02 James Greenhalgh <james.greenhalgh@arm.com>
16642 * config/aarch64/aarch64-simd-builtins.def
16643 (dup_lane_scalar): Remove.
16644 * config/aarch64/aarch64-simd.md
16645 (aarch64_simd_dup): Add 'w->w' alternative.
16646 (aarch64_dup_lane<mode>): Allow for VALL.
16647 (aarch64_dup_lane_scalar<mode>): Remove.
16648 (aarch64_dup_lane_<vswap_width_name><mode>): New.
16649 (aarch64_get_lane_signed<mode>): Add w->w altenative.
16650 (aarch64_get_lane_unsigned<mode>): Likewise.
16651 (aarch64_get_lane<mode>): Likewise.
16652 * config/aarch64/aarch64.c (aarch64_evpc_dup): New.
16653 (aarch64_expand_vec_perm_const_1): Use aarch64_evpc_dup.
16654 * config/aarch64/iterators.md (VSWAP_WIDTH): New.
16655 (VCON): Change container of V2SF.
16656 (vswap_width_name): Likewise.
16657 * config/aarch64/arm_neon.h
16658 (__aarch64_vdup_lane_any): New.
16659 (__aarch64_vdup<q>_lane<q>_<fpsu><8,16,32,64>): Likewise.
16660 (vdup<q>_n_<psuf><8,16,32,64>): Convert to C implementation.
16661 (vdup<q>_lane<q>_<fpsu><8,16,32,64>): Likewise.
16663 2013-09-02 Eric Botcazou <ebotcazou@adacore.com>
16665 PR middle-end/56382
16666 * expr.c (emit_move_complex): Do not move complex FP values as parts if
16667 the source or the destination is a single hard register.
16669 2013-09-02 Richard Biener <rguenther@suse.de>
16671 PR middle-end/57511
16672 * tree-scalar-evolution.c (instantiate_scev_name): Allow
16675 2013-09-02 Richard Biener <rguenther@suse.de>
16677 * tree-affine.c (add_elt_to_tree): Avoid converting all pointer
16678 arithmetic to sizetype.
16680 2013-09-02 Bin Cheng <bin.cheng@arm.com>
16682 * tree-ssa-loop-ivopts.c (set_autoinc_for_original_candidates):
16683 Find auto-increment use both before and after candidate.
16685 2013-09-02 Marek Polacek <polacek@redhat.com>
16687 * Makefile.in (ubsan.o): Add $(TM_P_H) dependency.
16689 2013-09-01 Jan Hubicka <jh@suse.cz>
16691 * Makefile.in: Add ipa-profile.o
16692 (ipa.o, ipa-devrit.o, ipa-inline-analysis.o): Adjust dependencies.
16693 * cgraph.c (struct cgraph_propagate_frequency_data,
16694 cgraph_propagate_frequency_1, cgraph_propagate_frequency): Move to
16695 ipa-profile.c; replace cgraph_ by ipa_ prefix.
16696 * cgraph.h (cgraph_propagate_frequency): Remove.
16697 * ipa-inline-analysis.c: Include ipa-utils.h;
16698 drop duplicated cfgloop.h.
16699 (inline_update_callee_summaries): Update.
16700 * ipa-profile.c: New file.
16701 * ipa-utils.h (ipa_propagate_frequency): Declare.
16702 * ipa.c: Do not include pointer-set.h, hash-table.h, lto-streamer.h,
16703 data-streamer.h, value-prof.h.
16704 (symtab_remove_unreachable_nodes): Update profile.
16705 (struct histogram_entry, histogram, histogram_pool, histogram_hash,
16706 account_time_size, cmp_counts, dump_histogram,
16707 ipa_profile_generate_summary, ipa_profile_write_summary,
16708 ipa_profile_read_summary, ipa_profile, gate_ipa_profile,
16709 pass_data_ipa_profile, pass_ipa_profile, make_pass_ipa_profile):
16710 Move to ipa-profile.c.
16712 2013-09-01 John David Anglin <danglin@gcc.gnu.org>
16714 * config/pa/pa.md: Allow "const 0" operand 1 in "scc" insns.
16716 2013-09-01 Jan Hubicka <jh@suse.cz>
16718 * common.opt (fdevirtualize-speculatively): New function.
16719 * invoke.texi (fdevirtualize-speculatively): Document.
16720 * ipa-devirt.c: Include ipa-inline.h
16721 (likely_target_p): New function.
16722 (ipa_devirt): New function.
16723 (gate_ipa_devirt): New function.
16724 (pass_data_ipa_devirt): New static var.
16725 (pass_ipa_devirt): Likewise.
16726 (make_pass_ipa_devirt): New function.
16727 * opts.c (default_options): Add OPT_fdevirtualize_speculatively.
16728 (common_handle_option): Disable devirtualization when
16729 value range profiling is available.
16730 * passes.def (pass_ipa_devirt): Add.
16731 * timever.def (TV_IPA_DEVIRT): New timevar.
16732 * tree-pass.h (make_pass_ipa_devirt):
16734 2013-09-01 Iain Sandoe <iain@codesourcery.com>
16736 * config/darwin.h (LINK_COMMAND_SPEC_A): Revise sanitizer specs to
16737 include sanitize(undefined).
16739 2013-08-31 Diego Novillo <dnovillo@google.com>
16741 * Makefile.in (TREE_CORE_H): Define.
16743 (GTFILES): Add tree-core.h.
16744 * builtins.c (built_in_class_names): Use BUILT_IN_LAST to
16746 * tree-core.h: New file.
16747 Move all data structures, enum, typedefs, global
16748 declarations and constants from ...
16749 * tree.h: ... here.
16751 2013-08-31 Jan Hubicka <jh@suse.cz>
16753 * bulitins.c (expand_builtin): Do not early exit for gcov
16754 instrumented functions.
16756 2013-08-31 Marek Polacek <polacek@redhat.com>
16758 * ubsan.c: Include tm_p.h.
16760 2013-08-31 Jan Hubicka <jh@suse.cz>
16762 * gimple-streamer-in.c (input_gimple_stmt): Silence parameter unused
16765 * cgraph.c (cgraph_get_body): Update call of lto_input_function_body.
16766 * gimple-streamer-in.c (input_gimple_stmt): Move sanity check to ...
16767 * tree-cfg.c (verify_gimple_label): ... here.
16768 * ipa-utils.c: Include lto-streamer.h, ipa-inline.h
16769 (ipa_merge_profiles): New function.
16770 * lto-streamer-in.c (lto_read_body): Take node instead of fn_decl.
16771 (lto_input_function_body): Likewise.
16772 * ipa-utils.h (ipa_merge_profiles): Declare.
16773 * lto-streamer.h (lto_input_function_body): Update prototype.
16774 (emit_label_in_global_context_p): Remove.
16775 * lto-symtab.c: Include ipa-utils.h
16776 (lto_cgraph_replace_node): Use ipa_merge_profiles.
16778 2013-08-31 Jan Hubicka <jh@suse.cz>
16780 * cgraph.c (cgraph_speculative_call_info): Fix ref lookup
16782 2013-08-31 Jan Hubicka <jh@suse.cz>
16784 * basic-block.h (apply_scale): Make scale parmeter gcov_type.
16786 2013-08-31 Uros Bizjak <ubizjak@gmail.com>
16788 * config/alpha/alpha.c (alpha_emit_conditional_move): Update
16789 "cmp" RTX before signed_comparison_operator check to account
16790 for "code" changes.
16792 2013-08-30 Jan Hubicka <jh@suse.cz>
16794 * ipa-prop.c (ipa_set_jf_known_type): Check that we add only records.
16795 (detect_type_change_1): Rename to ...
16796 (detect_type_change): ... this one; early return on non-polymorphic
16798 (detect_type_change_ssa): Add comp_type parameter; update
16799 use of detect_type_change.
16800 (compute_complex_assign_jump_func): Add param_type parameter;
16801 update use of detect_type_change_ssa.
16802 (compute_complex_ancestor_jump_func): Likewise.
16803 (ipa_get_callee_param_type): New function.
16804 (ipa_compute_jump_functions_for_edge): Compute parameter type;
16805 update calls to the jump function computation functions.
16807 2013-08-30 Teresa Johnson <tejohnson@google.com>
16808 Steven Bosscher <steven@gcc.gnu.org>
16810 * cfgrtl.c (fixup_new_cold_bb): New routine.
16811 (commit_edge_insertions): Invoke fixup_partitions.
16812 (find_partition_fixes): New routine.
16813 (fixup_partitions): Ditto.
16814 (verify_hot_cold_block_grouping): Update comments.
16815 (rtl_verify_edges): Invoke find_partition_fixes.
16816 (rtl_verify_bb_pointers): Update comments.
16817 (rtl_verify_bb_layout): Ditto.
16818 * basic-block.h (probably_never_executed_edge_p): Declare.
16819 (fixup_partitions): Ditto.
16820 * cfgcleanup.c (try_optimize_cfg): Invoke fixup_partitions.
16821 * bb-reorder.c (sanitize_hot_paths): New function.
16822 (find_rarely_executed_basic_blocks_and_crossing_edges): Invoke
16823 sanitize_hot_paths.
16824 * predict.c (probably_never_executed_edge_p): New routine.
16825 * cfg.c (check_bb_profile): Add partition insanity warnings.
16827 2013-08-30 Meador Inge <meadori@codesourcery.com>
16829 * tree-vrp.c (check_array_ref): Bail out on zero-length arrays.
16831 2013-08-30 Marek Polacek <polacek@redhat.com>
16833 * Makefile.in (ubsan.o): Add.
16834 (c-family/c-ubsan.o): Add.
16835 (builtins.o): Add ubsan.h dependency.
16836 * ubsan.h: New file.
16837 * ubsan.c: New file.
16838 * common.opt: Add -fsanitize=undefined option.
16839 (flag_sanitize): Add variable.
16840 (fsanitize=): Add option. Add Driver.
16841 (fsanitize=thread): Remove option.
16842 (fsanitize=address): Likewise.
16843 (static-libubsan): New option.
16844 * doc/invoke.texi: Document the new flag and -static-libubsan.
16845 * sanitizer.def (DEF_SANITIZER_BUILTIN): Define.
16846 (BUILT_IN_UBSAN_HANDLE_BUILTIN_UNREACHABLE): Define.
16847 * builtin-attrs.def (ATTR_COLD): Define.
16848 (ATTR_COLD_NOTHROW_LEAF_LIST): Define.
16849 * builtins.def (BUILT_IN_UBSAN_HANDLE_DIVREM_OVERFLOW,
16850 BUILT_IN_UBSAN_HANDLE_SHIFT_OUT_OF_BOUNDS): Define.
16851 * flag-types.h (sanitize_code): New enum.
16852 * opts.c (common_handle_option): Parse command line arguments
16853 of -fsanitize=. Add -fsanitize=unreachable option.
16854 * varasm.c (get_variable_section): Adjust.
16855 (assemble_noswitch_variable): Likewise.
16856 (assemble_variable): Likewise.
16857 (output_constant_def_contents): Likewise.
16858 (categorize_decl_for_section): Likewise.
16859 (place_block_symbol): Likewise.
16860 (output_object_block): Likewise.
16861 * builtins.def: Likewise.
16862 * toplev.c (compile_file): Likewise.
16863 (process_options): Likewise.
16864 * cppbuiltin.c: Likewise.
16865 * tsan.c (tsan_pass): Likewise.
16866 (tsan_gate): Likewise.
16867 (tsan_gate_O0): Likewise.
16868 * cfgexpand.c (partition_stack_vars): Likewise.
16869 (expand_stack_vars): Likewise.
16870 (defer_stack_allocation): Likewise.
16871 (expand_used_vars): Likewise.
16872 * cfgcleanup.c (old_insns_match_p): Likewise.
16873 * asan.c (asan_finish_file): Likewise.
16874 (asan_instrument): Likewise.
16875 (gate_asan): Likewise.
16876 (initialize_sanitizer_builtins): Build BT_FN_VOID_PTR_PTR_PTR.
16877 (ATTR_COLD_NOTHROW_LEAF_LIST): Define.
16878 (asan_global_struct): Use pointer_sized_int_node instead
16879 calling build_nonstandard_integer_type.
16880 (initialize_sanitizer_builtins): Likewise.
16881 (asan_finish_file): Likewise.
16882 * gcc.c: Document %{%:function(args):X}.
16883 (static_spec_functions): Add sanitize.
16884 (handle_spec_function): Add retval_nonnull argument and if non-NULL,
16885 store funcval != NULL there.
16886 (do_spec_1): Adjust handle_spec_function caller.
16887 (handle_braces): Allow %:function(args) as condition.
16888 (sanitize_spec_function): New function.
16889 (ADD_STATIC_LIBUBSAN_LIBS): Define.
16890 (LIBUBSAN_SPEC): Likewise.
16891 (LIBUBSAN_EARLY_SPEC): Likewise.
16892 (SANITIZER_SPEC): Handle libubsan.
16893 (SANITIZER_EARLY_SPEC): Likewise.
16894 * config/darwin.h (LINK_COMMAND_SPEC_A): Use %:sanitize(address)
16895 instead of fsanitize=address.
16896 * config/arm/linux-eabi.h (ASAN_CC1_SPEC): Use %:sanitize(address)
16897 instead of fsanitize=address*.
16898 * builtins.c: Include ubsan.h.
16899 (fold_builtin_0): Instrument __builtin_unreachable.
16900 * config/rs6000/rs6000.h (FRAME_GROWS_DOWNWARD): Use flag_sanitize
16901 instead of flag_asan.
16902 * tree.h (enum tree_index): Add TI_POINTER_SIZED_TYPE.
16903 (pointer_sized_int_node): Define.
16904 * tree.c (build_common_tree_nodes): Initialize pointer_sized_int_node.
16906 2013-08-30 Mike Stump <mikestump@comcast.net>
16908 * doc/install.texi (Prerequisites): Note regression in Tcl 8.6
16911 2013-08-29 Jan Hubicka <jh@suse.cz>
16913 * cgraph.c (cgraph_function_body_availability): Handle weakref
16915 * passes.def: Remove pass_fixup_cfg.
16916 * ipa-inline.c (ipa_inline): When not optimizing, do not inline;
16917 track when we need to remove functions.
16918 (gate_ipa_inline): Execute inlining always; add comment why.
16919 (pass_data_ipa_inline): Remove TODO_remove_functions.
16920 * ipa-inline-analysis.c (inline_generate_summary): When not optimizing
16921 do not produce summaries.
16922 * symtab.c (change_decl_assembler_name): Handle renaming of weakrefs.
16923 (symtab_nonoverwritable_alias): Assert we are not called on weakref.
16924 * varpool.c (cgraph_variable_initializer_availability): Fix weakrefs,
16925 constant pool and vtable.
16927 2013-08-30 Tejas Belagod <tejas.belagod@arm.com>
16929 * config/aarch64/arm_neon.h (__AARCH64_UINT64_C, __AARCH64_INT64_C):
16930 New arm_neon.h's internal macros to specify 64-bit constants.
16931 Avoid using stdint.h's macros.
16933 2013-08-30 Joern Rennecke <joern.rennecke@embecosm.com>
16935 * recog.c (verify_changes): Verify that changes[i].old is non-zero
16936 before applying REG_P.
16938 2013-08-30 Jakub Jelinek <jakub@redhat.com>
16940 PR tree-optimization/58277
16941 * tree-ssa-strlen.c (strlen_enter_block): If do_invalidate gave up
16942 after seeing too many stmts with vdef in between dombb and current
16943 bb, invalidate everything.
16945 2013-08-30 Richard Biener <rguenther@suse.de>
16947 * fold-const.c (fold_single_bit_test): Fix overflow test.
16949 2013-08-30 Eric Botcazou <ebotcazou@adacore.com>
16951 * function.c (assign_parm_setup_reg): For a parameter passed by pointer
16952 and which can live in a register, always retrieve the value on entry.
16953 * var-tracking.c (add_stores): Treat the copy on entry for a parameter
16954 passed by invisible reference specially.
16955 (emit_notes_in_bb) <MO_VAL_USE>: Emit notes before the instruction.
16956 (vt_add_function_parameter): Correctly deal with a parameter passed by
16957 invisible reference.
16959 2013-08-30 Jan Hubicka <jh@suse.cz>
16961 * tree.c (set_call_expr_flags): Fix handling of TM_PURE.
16963 2013-08-30 Richard Biener <rguenther@suse.de>
16965 PR tree-optimization/58228
16966 * tree-vect-data-refs.c (vect_analyze_data_ref_access): Do not
16967 allow invariant loads in nested loop vectorization.
16969 2013-08-30 Richard Biener <rguenther@suse.de>
16971 PR tree-optimization/58223
16972 * tree-loop-distribution.c (has_anti_dependence): Rename to ...
16973 (has_anti_or_output_dependence): ... this and adjust to also
16974 look for output dependences.
16975 (mark_nodes_having_upstream_mem_writes): Adjust.
16976 (rdg_flag_uses): Likewise.
16978 2013-08-30 Richard Biener <rguenther@suse.de>
16980 PR tree-optimization/58010
16981 * tree-vect-loop.c (vect_create_epilog_for_reduction): Remove
16982 assert that we have a loop-closed PHI.
16984 2013-08-29 Jan Hubicka <jh@suse.cz>
16986 * lto-symtab.c (lto_cgraph_replace_node): Free decl_in_state.
16987 * cgraph.c (cgraph_release_function_body): Free decl_in_state.
16988 * lto-section-in.c (lto_free_function_in_decl_state): New function.
16989 (lto_free_function_in_decl_state_for_node): New function.
16991 2013-08-29 Xinliang David Li <davidxl@google.com>
16993 * loop-unroll.c (report_unroll_peel): Minor message change.
16994 * tree-vect-loop-manip.c (vect_do_peeling_for_alignment):
16995 Emit alignment peeling message with default -fopt-info.
16996 (vect_loop_versioning): Emit loop version info message.
16997 * tree-vectorizer.c (vectorize_loops): Minor message change.
16998 (execute_vect_slp): Ditto.
17000 2013-08-29 Eric Botcazou <ebotcazou@adacore.com>
17002 * cgraphclones.c (cgraph_create_virtual_clone): Compute the DECL_NAME
17003 of the clone from the DECL_NAME of the original function.
17005 2013-08-29 Oleg Endo <olegendo@gcc.gnu.org>
17007 * passes.c (register_pass): Add overload.
17008 * tree-pass.h (register_pass): Forward declare it. Add comment.
17010 2013-08-29 Jan Hubicka <jh@suse.cz>
17012 * lto-streamer-out.c (hash_tree): Stream DECL_FINAL_P,
17013 DECL_CXX_CONSTRUCTOR_P, DECL_CXX_DESTRUCTOR_P and TYPE_FINAL_P.
17014 * lto-streamer-in.c (unpack_ts_decl_with_vis_value_fields): Stream
17015 DECL_FINAL_P, DECL_CXX_CONSTRUCTOR_P and DECL_CXX_DESTRUCTOR_P.
17016 (unpack_ts_type_common_value_fields): Stream TYPE_FINAL_P.
17017 * tree-streamer-out.c (pack_ts_decl_with_vis_value_fields):
17018 Add DECL_FINAL_P, DECL_CXX_CONSTRUCTOR_P and DECL_CXX_DESTRUCTOR_P.
17019 (pack_ts_type_common_value_fields): Add TYPE_FINAL_P.
17021 2013-08-29 Teresa Johnson <tejohnson@google.com>
17023 * dumpfile.c (dump_loc): Output column number.
17024 * dumpfile.h (OPTGROUP_OTHER): Add and enable under OPTGROUP_ALL.
17025 * doc/invoke.texi: Document optall -fopt-info flag.
17026 * profile.c (read_profile_edge_counts): Use new dump framework.
17027 (compute_branch_probabilities): Ditto.
17028 * passes.c (pass_manager::register_one_dump_file): Use OPTGROUP_OTHER
17029 when pass not in any opt group.
17030 * pass_manager.h (pass_manager::get_pass_profile): New method.
17031 * value-prof.c (check_counter): Use new dump framework.
17032 (check_ic_target): Ditto.
17033 * coverage.c (get_coverage_counts): Ditto.
17034 (coverage_init): Setup new dump framework.
17036 2013-08-29 Richard Biener <rguenther@suse.de>
17038 PR tree-optimization/58246
17039 * tree-ssa-dce.c (mark_aliased_reaching_defs_necessary_1): Properly
17040 handle the dominance check inside a basic-block.
17042 2013-08-29 Richard Biener <rguenther@suse.de>
17044 PR middle-end/57287
17045 * tree-ssa-copy.c (may_propagate_copy): Allow propagating
17046 of default defs that appear in abnormal PHI nodes.
17048 2013-08-29 Richard Biener <rguenther@suse.de>
17050 PR tree-optimization/57685
17051 * tree-vrp.c (register_edge_assert_for_1): Recurse only for
17052 single-use operands to avoid exponential complexity.
17054 2013-08-28 Dehao Chen <dehao@google.com>
17056 * ipa-inline.c (edge_badness): Fix integer underflow.
17058 2013-08-28 Uros Bizjak <ubizjak@gmail.com>
17060 * gtm-builtins.def (_ITM_free): Declare leaf.
17062 2013-08-28 Jakub Jelinek <jakub@redhat.com>
17065 * config/i386/i386.md (*tls_global_dynamic_64_largepic): New insn.
17066 (*tls_local_dynamic_base_64_largepic): Likewise.
17067 (tls_global_dynamic_64_<mode>, tls_local_dynamic_base_64_<mode>):
17068 Remove predicate from call operand.
17069 * config/i386/i386.c (ix86_tls_get_addr): For -mcmodel=large -fpic
17070 return sum of pic_offset_table_rtx and UNSPEC_PLTOFF of the symbol.
17072 2013-08-28 Jeff Law <law@redhat.com>
17074 * tree-ssa-threadedge.c (thread_around_empty_block): Remove
17075 checks for the number of predecessors and successors allowed.
17076 * tree-ssa-threadupdate.c (mark_threaded_blocks): Ignore requests
17077 which require copying a joiner block if there is a request which
17078 is a subpath that requires no joiner block copying.
17080 2013-08-28 Jan Hubicka <jh@suse.cz>
17082 * lto-streamer-out.c (DFS_write_tree_body): Drop
17083 BINFO_INHERITANCE_CHAIN, BINFO_SUBVTT_INDEX and BINFO_VPTR_INDEX.
17084 (hash_tree): Do not hash DECL_DEFER_OUTPUT, BINFO_INHERITANCE_CHAIN,
17085 BINFO_SUBVTT_INDEX, BINFO_VPTR_INDEX, DECL_IN_TEXT_SECTION.
17086 * tree-streamer-in.c (unpack_ts_decl_common_value_fields):
17087 Do not read DECL_ERROR_ISSUED.
17088 (unpack_ts_decl_with_vis_value_fields): Do not read
17090 (lto_input_ts_binfo_tree_pointers): Do not read
17091 BINFO_INHERITANCE_CHAIN, BINFO_SUBVTT_INDEX, BINFO_VPTR_INDEX
17092 * tree-streamer-out.c (pack_ts_decl_common_value_fields): Do not
17093 write DECL_ERROR_ISSUED..
17094 (pack_ts_decl_with_vis_value_fields): Do not write
17096 (write_ts_binfo_tree_pointers): Do not read BINFO_INHERITANCE_CHAIN,
17097 BINFO_SUBVTT_INDEX, BINFO_VPTR_INDEX.
17098 * print-tree.c (print_node): Do not print DECL_ERROR_ISSUED.
17099 * tree.h (tree_decl_common): Update comment.
17100 (DECL_ERROR_ISSUED): Remove.
17102 2013-08-28 Jakub Jelinek <jakub@redhat.com>
17104 PR middle-end/58257
17105 * omp-low.c (copy_var_decl): Copy over TREE_NO_WARNING flag.
17107 2013-08-28 Jan Hubicka <jh@suse.cz>
17109 * builtins.def (free): Declare leaf.
17111 2013-08-27 David Malcolm <dmalcolm@redhat.com>
17113 * gdbhooks.py: New.
17114 * configure.ac (gdbinit.in): Add import of gcc/gdbhooks.py.
17115 * configure: Regenerate.
17117 2013-08-27 Martin Jambor <mjambor@suse.cz>
17119 * ipa-prop.h (ipa_pass_through_data): New field type_preserved.
17120 (ipa_ancestor_jf_data): Likewise.
17121 (ipa_get_jf_pass_through_agg_preserved): Fix comment typo.
17122 (ipa_get_jf_pass_through_type_preserved): New function.
17123 (ipa_get_jf_ancestor_agg_preserved): Fix comment typo.
17124 (ipa_get_jf_ancestor_type_preserved): New function.
17125 * ipa-cp.c (ipa_get_jf_pass_through_result): Honor type_preserved flag.
17126 (ipa_get_jf_ancestor_result): Likewise.
17127 (propagate_vals_accross_pass_through): Use
17128 ipa_get_jf_pass_through_result to do all the value mappings.
17129 * ipa-prop.c (ipa_print_node_jump_functions_for_edge): Dump the
17130 type_preserved flag.
17131 (ipa_set_jf_cst_copy): New function.
17132 (ipa_set_jf_simple_pass_through): Set the type_preserved flag.
17133 (ipa_set_jf_arith_pass_through): Likewise.
17134 (ipa_set_ancestor_jf): Likewise.
17135 (compute_complex_assign_jump_func): Set type_preserved instead of
17137 (ipa_compute_jump_functions_for_edge): Likewise.
17138 (combine_known_type_and_ancestor_jfs): Honor type_preserved.
17139 (update_jump_functions_after_inlining): Update type_preserved.
17140 Explicitely create jump functions when combining one with pass_through.
17141 (ipa_write_jump_function): Stream the type_preserved flags.
17142 (ipa_read_jump_function): Likewise.
17144 2013-08-27 Jakub Jelinek <jakub@redhat.com>
17145 Aldy Hernandez <aldyh@redhat.com>
17147 * Makefile.in (omp-low.o): Depend on $(TARGET_H).
17148 * cfgloop.h (struct loop): Add safelen, force_vect, simduid.
17149 * function.h (struct function): Add has_force_vect_loops and
17151 * gimple-pretty-print.c (dump_gimple_omp_for): Handle GF_OMP_FOR_KIND*.
17152 * gimple.c (gimple_build_omp_critical): Add KIND argument and
17154 * gimple.def: Update CLAUSES comments.
17155 * gimple.h (enum gf_mask): Add GF_OMP_FOR_KIND_{FOR,SIMD}.
17156 (gimple_build_omp_for): Add argument to prototype.
17157 (gimple_omp_for_kind): New.
17158 (gimple_omp_for_set_kind): New.
17159 * gimplify.c (enum gimplify_omp_var_data): Add GOVD_LINEAR to
17160 GOVD_DATA_SHARE_CLASS.
17161 (enum omp_region_type): Add ORT_SIMD.
17162 (gimple_add_tmp_var): Handle ORT_SIMD.
17163 (gimplify_var_or_parm_decl): Same.
17164 (is_gimple_stmt): Same.
17165 (omp_firstprivatize_variable): Same.
17166 (omp_add_variable): Only use splay_tree_insert if lookup failed.
17167 (omp_notice_variable): Handle ORT_SIMD.
17168 (omp_is_private): Add SIMD argument and handle it as well as ORT_SIMD.
17169 (omp_check_private): Handle ORT_SIMD.
17170 (gimplify_scan_omp_clauses): Handle OMP_CLAUSE_LINEAR and
17171 OMP_CLAUSE_SAFELEN.
17172 (gimplify_adjust_omp_clauses_1): Handle GOVD_LINEAR.
17173 Handle OMP_CLAUSE_LASTPRIVATE.
17174 (gimplify_adjust_omp_clauses): Handle OMP_CLAUSE_LINEAR and
17175 OMP_CLAUSE_SAFELEN.
17176 (gimplify_omp_for): Handle OMP_SIMD and OMP_CLAUSE_LINEAR.
17177 (gimplify_expr): Handle OMP_SIMD.
17178 * internal-fn.c (expand_GOMP_SIMD_LANE): New.
17179 (expand_GOMP_SIMD_VF): New.
17180 (expand_GOMP_SIMD_LAST_LANE): New.
17181 * internal-fn.def (GOMP_SIMD_LANE): New.
17182 (GOMP_SIMD_VF): New.
17183 (GOMP_SIMD_LAST_LANE): New.
17184 * omp-low.c: Include target.h.
17185 (extract_omp_for_data): Handle OMP_SIMD, OMP_CLAUSE_LINEAR,
17186 OMP_CLAUSE_SAFELEN.
17187 (check_omp_nesting_restrictions): Same.
17189 (lower_rec_simd_input_clauses): New.
17190 (lower_rec_input_clauses): Handle OMP_SIMD, GF_OMP_FOR_KIND_SIMD,
17192 (lower_lastprivate_clauses): Handle OMP_CLAUSE_LINEAR,
17193 GF_OMP_FOR_KIND_SIMD, OMP_SIMD.
17194 (expand_omp_build_assign): New.
17195 (expand_omp_for_init_counts): New.
17196 (expand_omp_for_init_vars): New.
17197 (extract_omp_for_update_vars): New.
17198 (expand_omp_for_generic): Use expand_omp_for_{init,update}_vars
17199 and rewrite accordingly.
17200 (expand_omp_simd): New.
17201 (expand_omp_for): Use expand_omp_simd.
17202 (lower_omp_for_lastprivate): Unshare vinit when appropriate.
17203 (lower_omp_for): Do not lower the body.
17204 * tree-data-ref (get_references_in_stmt): Allow IFN_GOMP_SIMD_LANE
17205 in their own loops.
17206 * tree-flow.h (find_omp_clause): Remove prototype.
17207 * tree-if-conv.c (main_tree_if_conversion): Run if doing if conversion,
17208 forcing vectorization of the loop, or if flag_tree_vectorize.
17209 (gate_tree_if_conversion): Similarly.
17210 * tree-inline.c (remap_gimple_stmt): Pass for kind argument to
17211 gimple_build_omp_for.
17212 (copy_cfg_body): set has_force_vect_loops and has_simduid_loops.
17213 * tree-parloops (create_parallel_loop): Pass kind argument to
17214 gimple_build_omp_for.
17215 * tree-pretty-print.c (dump_omp_clause): Add cases for
17216 OMP_CLAUSE_UNIFORM, OMP_CLAUSE_LINEAR, OMP_CLAUSE_SAFELEN,
17217 OMP_CLAUSE__SIMDUID_.
17218 (dump_generic_node): Handle OMP_SIMD.
17219 * tree-ssa-ccp.c (likely_value): Handle IFN_GOMP_SIMD*.
17220 * tree-ssa-loop-ivcanon.c (tree_unroll_loops_completely_1): Do not
17221 unroll OMP_SIMD loops here.
17222 * tree-ssa-loop.c (gate_tree_vectorize): Run if has_force_vect_loops.
17223 * tree-vect-data-refs.c (vect_analyze_data_ref_dependence): Handle
17225 (vect_analyze_data_refs): Handle simd loops.
17226 * tree-vect-loop.c (vectorizable_live_operation): Handle
17228 * tree-vect-stmts.c (vectorizable_call): Handle IFN_GOMP_SIMD_LANE.
17229 (vectorizable_store): Handle STMT_VINFO_SIMD_LANE_ACCESS_P.
17230 (vectorizable_load): Same.
17231 * tree-vectorizer.c: Include hash-table.h and tree-ssa-propagate.h.
17232 (struct simduid_to_vf): New.
17233 (simduid_to_vf::hash): New.
17234 (simduid_to-vf::equal): New.
17235 (struct simd_array_to_simduid): New.
17236 (simd_array_to_simduid::hash): New.
17237 (simd_array_to_simduid::equal): New.
17238 (adjust_simduid_builtins): New.
17239 (struct note_simd_array_uses_struct): New.
17240 (note_simd_array_uses_cb): New.
17241 (note_simd_array_uses): New.
17242 (vectorize_loops): Handle simd hints and adjust simd builtins
17244 * tree-vectorizer.h (struct _stmt_vec_info): Add
17245 simd_lane_access_p field.
17246 (STMT_VINFO_SIMD_LANE_ACCESS_P): New macro.
17247 * tree.c (omp_clause_num_ops): Add entries for OMP_CLAUSE_LINEAR,
17248 OMP_CLAUSE_SAFELEN, OMP_CLAUSE__SIMDUID_, OMP_CLAUSE_UNIFORM.
17249 (omp_clause_code_name): Same.
17250 (walk_tree_1): Handle OMP_CLAUSE_UNIFORM, OMP_CLAUSE_SAFELEN,
17251 OMP_CLAUSE__SIMDUID_, OMP_CLAUSE_LINEAR.
17252 * tree.def (OMP_SIMD): New entry.
17253 * tree.h (enum omp_clause_code): Add entries for OMP_CLAUSE_LINEAR,
17254 OMP_CLAUSE_UNIFORM, OMP_CLAUSE_SAFELEN, OMP_CLAUSE__SIMDUID_.
17255 (OMP_CLAUSE_DECL): Adjust range for new clauses.
17256 (OMP_CLAUSE_LINEAR_NO_COPYIN): New.
17257 (OMP_CLAUSE_LINEAR_NO_COPYOUT): New.
17258 (OMP_CLAUSE_LINEAR_STEP): New.
17259 (OMP_CLAUSE_SAFELEN_EXPR): New.
17260 (OMP_CLAUSE__SIMDUID__DECL): New.
17261 (find_omp_clause): New prototype.
17263 2013-08-27 H.J. Lu <hongjiu.lu@intel.com>
17265 * config/i386/driver-i386.c (host_detect_local_cpu): Update
17266 Haswell processor detection.
17268 2013-08-27 Christian Widmer <shadow@umbrox.de>
17271 * config/i386/driver-i386.c (host_detect_local_cpu): Add detection
17272 of Ivy Bridge and Haswell processors. Assume core-avx2 for unknown
17273 AVX2 capable processors.
17275 2013-08-27 Tejas Belagod <tejas.belagod@arm.com>
17277 * config/aarch64/arm_neon.h: Replace all inline asm implementations
17278 of vget_low_* with implementations in terms of other intrinsics.
17280 2013-08-27 Marc Glisse <marc.glisse@inria.fr>
17282 PR middle-end/57219
17283 * doc/extend.texi (__builtin_isinf_sign): Restrict the return
17284 values to -1, 0 and 1.
17286 2013-08-27 Vidya Praveen <vidyapraveen@arm.com>
17288 * config/aarch64/aarch64.md (unspec): Add UNSPEC_SISD_SSHL,
17289 UNSPEC_SISD_USHL, UNSPEC_USHL_2S, UNSPEC_SSHL_2S, UNSPEC_SISD_NEG.
17290 (<optab><mode>3_insn): Remove.
17291 (aarch64_ashl_sisd_or_int_<mode>3): New Pattern.
17292 (aarch64_lshr_sisd_or_int_<mode>3): Likewise.
17293 (aarch64_ashr_sisd_or_int_<mode>3): Likewise.
17294 (define_split for aarch64_lshr_sisd_or_int_di3): Likewise.
17295 (define_split for aarch64_lshr_sisd_or_int_si3): Likewise.
17296 (define_split for aarch64_ashr_sisd_or_int_di3): Likewise.
17297 (define_split for aarch64_ashr_sisd_or_int_si3): Likewise.
17298 (aarch64_sisd_ushl, aarch64_sisd_sshl): Likewise.
17299 (aarch64_ushl_2s, aarch64_sshl_2s, aarch64_sisd_neg_qi): Likewise.
17300 (ror<mode>3_insn): Likewise.
17301 * config/aarch64/predicates.md (aarch64_simd_register): New.
17303 2013-08-27 Richard Biener <rguenther@suse.de>
17305 PR tree-optimization/57521
17306 * tree-if-conv.c (if_convertible_bb_p): Verify that at least
17307 one edge is non-critical.
17308 (find_phi_replacement_condition): Make sure to use a non-critical
17309 edge. Cleanup and remove old bug workarounds.
17310 (bb_postdominates_preds): Remove.
17311 (if_convertible_loop_p_1): Do not compute post-dominators.
17312 (combine_blocks): Do not free post-dominators.
17313 (main_tree_if_conversion): Likewise.
17314 (pass_data_if_conversion): Add TODO_verify_ssa.
17316 2013-08-27 DJ Delorie <dj@redhat.com>
17318 * config/i386/djgpp.h (ASM_DECLARE_FUNCTION_NAME): New.
17320 2013-08-27 Yufeng Zhang <yufeng.zhang@arm.com>
17322 * function.c (assign_parm_find_data_types): Set passed_mode and
17323 nominal_mode to the TYPE_MODE of nominal_type for the built
17324 pointer type in case of the struct-pass-by-reference.
17326 2013-08-26 Joern Rennecke <joern.rennecke@embecosm.com>
17328 * config/avr/avr-stdint.h (INT16_TYPE): Change default to "int".
17329 (UINT16_TYPE): Change default to "unsigned int".
17331 * config/avr/avr.opt (mfract-convert-truncate): New option.
17332 * config/avr/avr.c (avr_out_fract): Unless TARGET_FRACT_CONV_TRUNC
17333 is set, round negative fractional integers according to n1169
17334 when converting to integer types.
17336 2013-08-26 Jan Hubicka <jh@suse.cz>
17338 * cgraph.c (cgraph_propagate_frequency): Do not assume that virtual
17339 methods can not be called indirectly when their address is not taken.
17341 2013-08-26 Jan Hubicka <jh@suse.cz>
17343 * gimple-fold.c (gimple_get_virt_method_for_binfo): Use
17346 2013-08-26 Jan Hubicka <jh@suse.cz>
17348 * ipa.c (comdat_can_be_unshared_p_1): C++ constructors and destructors
17351 2013-08-26 Joern Rennecke <joern.rennecke@embecosm.com>
17353 * reload.c (find_valid_class): Allow classes that do not include
17354 FIRST_PSEUDO_REGISTER - 1.
17356 2013-08-26 Jan Hubicka <jh@suse.cz>
17358 * cgraph.c (cgraph_redirect_edge_call_stmt_to_callee): Fix formatting;
17359 fix edge count/frequency when speculation failed; fix type check
17360 for the direct call.
17362 2013-08-26 Jan Hubicka <jh@suse.cz>
17364 * ipa-prop.c (ipa_print_node_params): Do not ICE during WPA.
17366 2013-08-26 Jan Hubicka <jh@suse.cz>
17368 * ipa-inline-transform.c (inline_transform): Be ready for basic block
17369 to be changed by edge redirection.
17371 2013-08-26 Jan Hubicka <jh@suse.cz>
17373 * cgraph.c (cgraph_speculative_call_info): Fix parameter order and
17374 formating; add sanity check.
17375 (cgraph_resolve_speculation): Add FIXME about scaling profiles.
17376 (cgraph_redirect_edge_call_stmt_to_callee): Fix ICE in debug dump.
17377 * ipa-inline.c (heap_edge_removal_hook): Reset node growth cache.
17378 (resolve_noninline_speculation): Update callee keys, too.
17380 2013-08-26 Jan Hubicka <jh@suse.cz>
17382 * tree.h (tree_decl_with_vis): Add cxx_constructor, cxx_destructor.
17383 (DECL_CXX_CONSTRUCTOR_P, DECL_CXX_DESTRUCTOR_P): New macros.
17385 2013-08-26 Joern Rennecke <joern.rennecke@embecosm.com>
17387 * config/i386/i386.c (x86_64_elf_select_section): Put ATTRIBUTE_UNUSED
17390 2013-08-26 Uros Bizjak <ubizjak@gmail.com>
17392 * config/i386/i386.c (ix86_debug_options): Remove prototype.
17393 (x86_64_elf_select_section): Ditto.
17394 (ix86_handle_tm_regparm_attribute): Remove ATTRIBUTE_UNUSED on used
17396 (ix86_pass_by_reference): Ditto.
17397 (output_set_got): Ditto.
17398 (ix86_unary_operator_ok): Ditto.
17399 (ix86_expand_builtin): Ditto.
17401 2013-08-23 Jan Hubicka <jh@suse.cz>
17403 * cgraph.c (cgraph_turn_edge_to_speculative): Fix debug output.
17405 2013-08-23 Jan Hubicka <jh@suse.cz>
17407 * tree.h (TYPE_FINAL_P, DECL_FINAL_P): New macros.
17408 (tree_decl_with_vis): Add FINAL field.
17410 2013-08-23 Jeff Law <law@redhat.com>
17412 * tree-ssa-pre.c (do_regular_insertion): Include the expression in
17413 the debugging dump when the expression is fully redundant.
17415 2013-08-23 Gabriel Dos Reis <gdr@integrable-solutions.net>
17417 * diagnostic.c (diagnostic_set_caret_max_width): Use pp_buffer.
17418 * gimple-pretty-print.c (gimple_dump_bb_buff): Likewise.
17419 * pretty-print.c (pp_formatted_text_data): Likewise.
17420 (pp_write_text_to_stream): Likewise.
17421 (pp_write_text_as_dot_label_to_stream): Likewise.
17422 (pp_append_r): Likewise.
17423 (pp_format): Likewise.
17424 (pp_flush): Likewise.
17425 (pp_clear_output_area): Likewise.
17426 (pp_append_text): Likewise.
17427 (pp_formatted_text): Likewise.
17428 (pp_remaining_character_count_for_line): Likewise.
17429 (pp_newline): Likewise.
17430 (pp_character): Likewise.
17431 (output_buffer::~output_buffer): Define.
17432 (pretty_printer::~pretty_printer): Destruct output buffer.
17433 * pretty-print.h (output_buffer::~output_buffer): Declare.
17434 (pretty_printer::~pretty_printer): Declare virtual.
17436 2013-08-24 Marc Glisse <marc.glisse@inria.fr>
17439 * hwint.h (HOST_WIDE_INT_UC, HOST_WIDE_INT_1U, HOST_WIDE_INT_M1,
17440 HOST_WIDE_INT_M1U): New macros.
17441 * fold-const.c (sign_bit_p, build_range_check, fold_unary_loc,
17442 fold_binary_loc, fold_ternary_loc): Use the new macros. Use an
17443 unsigned -1 for lshift.
17444 * cse.c (cse_insn): Likewise.
17445 * double-int.c (rshift_double, lshift_double): Likewise.
17446 * builtins.c (fold_builtin_bitop): Likewise.
17447 * combine.c (force_to_mode): Likewise.
17448 * tree.c (integer_pow2p, tree_log2, tree_floor_log2): Likewise.
17449 * simplify-rtx.c (simplify_const_unary_operation,
17450 simplify_const_binary_operation): Likewise.
17451 * tree-stdarg.c (va_list_counter_bump, va_list_ptr_read,
17452 check_va_list_escapes): Likewise.
17453 * rtlanal.c (nonzero_bits1): Likewise.
17454 * expmed.c (expand_smod_pow2): Likewise.
17455 * tree-ssa-structalias.c (UNKNOWN_OFFSET): Use HOST_WIDE_INT_MIN.
17457 2013-08-23 Jan Hubicka <jh@suse.cz>
17459 * cgraph.c (cgraph_turn_edge_to_speculative): Mark target node
17460 as having address taken.
17462 2013-08-23 Jan Hubicka <jh@suse.cz>
17464 * ipa-utils.h (method_class_type): Declare.
17465 * ipa-devirt.c (method_class_type): Export.
17467 * cgraphunit.c (analyze_functions): Do basic devirtualization;
17468 do not walk base classes of anonymous types.
17470 2013-08-23 Kaz Kojima <kkojima@gcc.gnu.org>
17472 PR rtl-optimization/58220
17473 PR regression/58221
17474 * final.c (reemit_insn_block_notes): Use NEXT_INSN to
17475 handle SEQUENCE insns properly.
17477 2013-08-23 Gabriel Dos Reis <gdr@integrable-solutions.net>
17479 * pretty-print.h (pp_newline_and_flush): Declare. Remove macro
17481 (pp_newline_and_indent): Likewise.
17482 (pp_separate_with): Likewise.
17483 * pretty-print.c (pp_newline_and_flush): Define.
17484 (pp_newline_and_indent): Likewise.
17485 (pp_separate_with): Likewise.
17487 2013-08-23 Jakub Jelinek <jakub@redhat.com>
17490 * config/i386/x86-64.h (TARGET_SECTION_TYPE_FLAGS): Define.
17491 * config/i386/i386.c (x86_64_elf_section_type_flags): New function.
17493 2013-08-23 Kirill Yukhin <kirill.yukhin@intel.com>
17495 * config/i386/predicates.md (ext_sse_reg_operand): New.
17496 * config/i386/i386.md (*movti_internal): Use
17497 predicate to determine if EVEX is needed.
17498 (*movsi_internal): Ditto.
17499 (*movdf_internal): Ditto.
17500 (*movsf_internal): Ditto.
17501 * config/i386/mmx.md (*mov<mode>_internal): Ditto.
17503 2013-08-23 Jakub Jelinek <jakub@redhat.com>
17505 PR tree-optimization/58209
17506 * tree-tailcall.c (process_assignment): Handle POINTER_PLUS_EXPR.
17507 (find_tail_calls): Give up for pointer result types if m is non-NULL.
17508 (adjust_return_value_with_ops): For PLUS_EXPR and pointer result type
17509 emit POINTER_PLUS_EXPR.
17510 (create_tailcall_accumulator): For pointer result type accumulate in
17513 2013-08-22 Paolo Carlini <paolo.carlini@oracle.com>
17515 * configure.ac: Add backslashes missing from the last change.
17516 * configure: Regenerate.
17518 2013-08-22 Jan Hubicka <jh@susue.cz>
17520 * ipa.c (function_and_variable_visibility): First remember function
17521 was global and then make it local.
17523 2013-08-22 Julian Brown <julian@codesourcery.com>
17525 * configure.ac: Add aarch64 to list of arches which use "nop" in
17527 * configure: Regenerate.
17529 2013-08-22 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
17531 * config/s390/linux.h (TARGET_LIBC_HAS_FUNCTION): Define as
17532 gnu_libc_has_function.
17533 * config/s390/tpf.h: Likewise.
17535 2013-08-22 Jan Hubicka <jh@susue.cz>
17537 * timevar.c (validate_phases): Add cast.
17539 2013-08-22 Jan Hubicka <jh@susue.cz>
17541 * timevar.c (validate_phases): Use size_t for memory.
17542 * timevar.h (struct timevar_time_def): Use size_t for ggc_mem.
17544 2013-08-22 Gabriel Dos Reis <gdr@integrable-solutions.net>
17546 * pretty-print.h (output_buffer::output_buffer): Declare.
17547 (pretty_printer::pretty_printer): Likewise.
17548 (pp_construct): Remove.
17549 * pretty-print.c (output_buffer::output_buffer): Define.
17550 (pretty_printer::pretty_printer): Rename from pp_construct. Simplify.
17551 * gimple-pretty-print.c (print_gimple_stmt): Do not call pp_construct.
17552 (print_gimple_expr): Likewise.
17553 (print_gimple_seq): Likewise.
17554 (gimple_dump_bb): Likewise.
17555 * sched-vis.c (dump_value_slim): Likewise.
17556 (dump_insn_slim): Likewise.
17557 (dump_rtl_slim): Likewise.
17558 (str_pattern_slim): Likewise.
17559 * tree-mudflap.c (mf_varname_tree): Likewise.
17560 * graph.c (print_graph_cfg): Likewise.
17561 (start_graph_dump): Likewise.
17562 * tree-pretty-print.c (maybe_init_pretty_print): Likewise. Use
17564 * diagnostic.c (diagnostic_initialize): Simplify early diagnostic
17565 pretty printer initialization.
17566 * coretypes.h (diagnostic_context): Remove superflous type alias
17568 (pretty_printer): Likewise. Declare directly as a class.
17569 (pretty_print_info): Remove declaration as class.
17570 * asan.c (asan_emit_stack_protection): Remove call to pp_construct
17571 and pp_clear_output_area.
17572 (asan_add_global): Likewise.
17574 2013-08-22 Jan Hubicka <jh@suse.cz>
17576 * cgraphunit.c (analyze_functions) Use update_type_inheritance_graph.
17577 * ipa-utils.h (update_type_inheritance_graph): Declare.
17578 (possible_polymorphic_call_target_p): Declare.
17579 (possible_polymorphic_call_target_p): New.
17580 * ipa-devirt.c: Update toplevel comments.
17581 (cached_polymorphic_call_targets): Move up.
17582 (odr_type_d): Move ID down.
17583 (polymorphic_type_binfo_p): Update comment.
17584 (odr_hasher::remove): Likewise;
17585 (get_odr_type): Set anonymous_namespace.
17586 (dump_odr_type): Dump it.
17587 (dump_type_inheritance_graph): Do not ICE when there are no ODR types.
17588 (maybe_record_node): Record node in cached_polymorphic_call_targets.
17589 (record_binfo): Add comment.
17590 (free_polymorphic_call_targets_hash): Do not ICE when cache is not
17592 (devirt_node_removal_hook): Do not iCE when cache is freed.
17593 (possible_polymorphic_call_target_p): New predicate.
17594 (update_type_inheritance_graph): New function.
17596 2013-08-22 Alexander Ivchenko <alexander.ivchenko@intel.com>
17597 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
17598 Sergey Lega <sergey.s.lega@intel.com>
17599 Anna Tikhonova <anna.tikhonova@intel.com>
17600 Ilya Tocar <ilya.tocar@intel.com>
17601 Andrey Turetskiy <andrey.turetskiy@intel.com>
17602 Ilya Verbin <ilya.verbin@intel.com>
17603 Kirill Yukhin <kirill.yukhin@intel.com>
17604 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
17606 * common/config/i386/i386-common.c (OPTION_MASK_ISA_AVX512F_SET): New.
17607 (OPTION_MASK_ISA_AVX512CD_SET): Ditto.
17608 (OPTION_MASK_ISA_AVX512PF_SET): Ditto.
17609 (OPTION_MASK_ISA_AVX512ER_SET): Ditto.
17610 (OPTION_MASK_ISA_AVX2_UNSET): Update.
17611 (OPTION_MASK_ISA_AVX512F_UNSET): New.
17612 (OPTION_MASK_ISA_AVX512CD_UNSET): Ditto.
17613 (OPTION_MASK_ISA_AVX512PF_UNSET): Ditto.
17614 (OPTION_MASK_ISA_AVX512ER_UNSET): Ditto.
17615 (ix86_handle_option): Handle OPT_mavx512f, OPT_mavx512cd,
17616 OPT_mavx512pf, OPT_mavx512er cases.
17617 * config/i386/constraints.md (v): New constraint.
17618 (Yi, Yj): Replace SSE_REGS with ALL_SSE_REGS.
17619 * config/i386/cpuid.h (bit_AVX512F, bit_AVX512PF, bit_AVX512ER)
17620 (bit_AVX512CD): New.
17621 * config/i386/driver-i386.c (host_detect_local_cpu): Detect
17622 AVX512F, AVX512ER, AVX512PF, AVX512CD features.
17623 * config/i386/i386-c.c (ix86_target_macros_internal):
17624 Conditionally define __AVX512F__, __AVX512ER__, __AVX512CD__,
17626 * config/i386/i386-modes.def (VECTOR_MODES (INT, 128))
17627 (VECTOR_MODES (FLOAT, 128), INT_MODE (XI, 64)): New modes.
17628 * config/i386/i386.c (regclass_map, dbx_register_map)
17629 (dbx64_register_map, svr4_dbx_register_map): Add new SSE registers.
17630 (gate_insert_vzeroupper): Disable vzeroupper for TARGET_AVX512F.
17631 (ix86_target_string): Define -mavx512f, -mavx512er, -mavx512cd,
17632 -mavx512pf options.
17633 (ix86_option_override_internal): Define PTA_AVX512F, PTA_AVX512ER,
17634 PTA_AVX512PF, PTA_AVX512CD. Handle -mavx512f, -mavx512er, -mavx512cd,
17635 -mavx512pf options. Fix formatting.
17636 (ix86_conditional_register_usage): Squash EXT_REX_SSE_REGs for 32-bit
17637 targets. Squash EVEX_SSE_REGS if AVX512F is disabled.
17638 (ix86_valid_target_attribute_inner_p): Handle -mavx512f, -mavx512er,
17639 -mavx512cd, -mavx512pf options.
17640 (standard_sse_constant_opcode): Add vpternlogd for 512-bit modes.
17641 (print_reg, ix86_print_operand): Handle 'g' to output 512-bit operands.
17642 (ix86_preferred_output_reload_class): Replace SSE_REGS with
17644 (ix86_hard_regno_mode_ok): Support 512-bit registers.
17645 (ix86_set_reg_reg_cost): Ditto.
17646 (x86_order_regs_for_local_alloc): Ditto.
17647 (MAX_VECT_LEN): Extend to 64-byte.
17648 (ix86_spill_class): Replace SSE_REGS with ALL_SSE_REGS.
17649 * config/i386/i386.h (TARGET_AVX512F, TARGET_AVX512PF)
17650 (TARGET_AVX512ER, TARGET_AVX512CD): New.
17651 (BIGGEST_ALIGNMENT): Extend to 512-bits.
17652 (FIRST_PSEUDO_REGISTER, FIXED_REGISTERS): Add new registers.
17653 (CALL_USED_REGISTERS, REG_ALLOC_ORDER): Likewise.
17654 (VALID_AVX512F_SCALAR_MODE, VALID_AVX512F_REG_MODE): New.
17655 (SSE_REG_MODE_P): Support new modes.
17656 (FIRST_MMX_REG, FIRST_REX_INT_REG, FIRST_REX_SSE_REG): Add comments.
17657 (FIRST_EXT_REX_SSE_REG, LAST_EXT_REX_SSE_REG): New.
17658 (reg_class, REG_CLASS_NAMES): Add EVEX_SSE_REGS, ALL_SSE_REGS.
17659 (SSE_CLASS_P, MAYBE_SSE_CLASS_P): Replace SSE_REGS with ALL_SSE_REGS.
17660 (REG_CLASS_CONTENTS): Add new registers.
17661 (SSE_REGNO_P, SSE_REGNO, HARD_REGNO_RENAME_OK): Support new registers.
17662 (EXT_REX_SSE_REGNO_P): New.
17663 (HI_REGISTER_NAMES): Add new registers.
17664 * config/i386/i386.md: Define constants for new registers.
17665 (mode): Add new 512-bit modes.
17666 (prefix): Support evex prefix.
17667 (isa): Support avx512f, noavx512f, fma_avx512f.
17668 (ssemodesuffix): Add new 512-bit modes.
17670 (*movxi_internal_avx512f): Ditto.
17671 (*movdi_internal): Replace constraint "x" with the new constraint "v".
17673 (*movsi_internal): Likewise.
17674 (*movdf_internal): Likewise.
17675 (*movsf_internal): Likewise.
17676 (*fop_<mode>_comm_sse): Replace constraint "x" with new constraint "v".
17677 (<code><mode>3): Likewise.
17678 * config/i386/i386.opt (mavx512f, mavx512pf, mavx512er, mavx512cd):
17680 * config/i386/mmx.md (*mov<mode>_internal): Replace constraint "x"
17681 with the new constraint "v".
17682 * config/i386/sse.md (*mov<mode>_internal): Support new registers and
17684 (<sse>_loadu<ssemodesuffix><avxsizesuffix>): Replace constraint "x"
17685 with the new constraint "v".
17686 (<sse2>_loaddqu<avxsizesuffix>): Likewise.
17687 (<sse2>_storedqu<avxsizesuffix>): Likewise.
17688 (*<plusminus_insn><mode>3): Likewise.
17689 (<sse>_vm<plusminus_insn><mode>3): Likewise.
17690 (*mul<mode>3): Likewise.
17691 (<sse>_vmmul<mode>3): Likewise.
17692 (<sse>_div<mode>3): Likewise.
17693 (<sse>_vmdiv<mode>3): Likewise.
17694 (<sse>_sqrt<mode>2): Likewise.
17695 (<sse>_vmsqrt<mode>2): Likewise.
17696 (*<code><mode>3_finite): Likewise.
17697 (*<code><mode>3) <smaxmin>: Likewise.
17698 (<sse>_vm<code><mode>3): Likewise.
17699 (*<code><mode>3) <any_logic>: Likewise.
17700 (*fma_fmadd_<mode>): Likewise.
17701 (*fma_fmsub_<mode>): Likewise.
17702 (*fma_fnmadd_<mode>): Likewise.
17703 (*fma_fnmsub_<mode>): Likewise.
17704 (*fma_fmaddsub_<mode>): Likewise.
17705 (*fma_fmsubadd_<mode>): Likewise.
17706 (*fmai_fmadd_<mode>): Likewise.
17707 (*fmai_fmsub_<mode>): Likewise.
17708 (*fmai_fnmadd_<mode>): Likewise.
17709 (*fmai_fnmsub_<mode>): Likewise.
17710 (sse_cvtsi2ss): Likewise.
17711 (sse_cvtsi2ssq): Likewise.
17712 (sse_cvtss2si): Likewise.
17713 (sse_cvtss2si_2): Likewise.
17714 (sse_cvtss2siq): Likewise.
17715 (sse_cvtss2siq_2): Likewise.
17716 (sse_cvttss2si): Likewise.
17717 (sse_cvtss2siq_2): Likewise.
17718 (float<sseintvecmodelower><mode>2): Likewise.
17719 (sse2_cvtsd2si_2): Likewise.
17720 (sse2_cvtsd2siq_2): Likewise.
17721 (*<plusminus_insn><mode>3): Likewise.
17722 (*<sse2_avx2>_<plusminus_insn><mode>3): Likewise.
17723 (*<sse4_1_avx2>_mul<mode>3): Likewise.
17724 (ashr<mode>3): Likewise.
17725 (<shift_insn><mode>3): Likewise.
17726 (avx2_<code><mode>3): Likewise.
17727 (*avx2_<code><mode>3): Likewise.
17728 (*andnot<mode>3): Likewise.
17729 (*<code><mode>3) <any_logic>: Likewise.
17730 (abs<mode>2): Likewise.
17731 (avx2_permvar<mode>): Likewise.
17732 (avx2_perm<mode>_1): Likewise.
17733 (*avx_vpermilp<mode>): Likewise.
17734 (avx_vpermilvar<mode>3): Likewise.
17735 (avx2_ashrv<mode>): Likewise.
17736 (avx2_<shift_insn>v<mode>): Likewise.
17737 * doc/invoke.texi: Document -mavx512f, -mavx512pf, -mavx512er,
17739 * doc/rtl.texi: Document XImode.
17741 2013-08-21 Jeff Law <law@redhat.com>
17743 * tree-flow.h (register_jump_thread): Pass vector of edges
17744 instead of each important edge.
17745 * tree-ssa-threadedge.c (thread_across_edge): Build the jump
17746 thread path into a vector and pass that to register_jump_thread.
17747 * tree-ssa-threadupdate.c (register_jump_thread): Conver the
17748 passed in edge vector to the current 3-edge form.
17751 2013-08-20 Alexey Makhalov <makhaloff@gmail.com>
17753 * dce.c (fini_dce): Call df_analyze again just in case
17754 delete_unmarked_insns removed anything.
17756 2013-08-21 Joern Rennecke <joern.rennecke@embecosm.com>
17758 * reload.h (struct reg_equivs): Rename to ..
17759 (struct reg_equivs_s): .. this.
17761 2013-08-20 Martin Liska <marxin.liska@gmail.com>
17763 * ipa.c (ipa_profile_read_summary): Fix buffer overflow.
17765 2013-08-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
17767 * config/sol2-10.h (TARGET_LIBC_HAS_FUNCTION): Don't nest comment.
17769 2013-08-21 Jeff Law <law@redhat.com>
17771 * tree-vrp.c (simplify_stmt_for_jump_threading): Try to
17772 simplify assignments too. If the RHS collapses to a singleton
17773 range, then return the value for the range.
17775 2013-08-21 Kirill Yukhin <kirill.yukhin@intel.com>
17777 * config/i386/sse.md (V16): Rename to...
17779 (mov<mode>): Update iterator name.
17780 (*mov<mode>_internal): Ditto.
17781 (push<mode>1): Ditto.
17782 (movmisalign<mode>): Ditto.
17784 2013-08-20 Jan Hubicka <jh@suse.cz>
17787 * cgraph.c (cgraph_add_edge_to_call_site_hash): Overwrite hash
17788 entry for direct edges.
17789 (cgraph_turn_edge_to_speculative): Fix setting of can_throw_external.
17791 2013-08-20 David Malcolm <dmalcolm@redhat.com>
17793 Revert my last two changes, r201865 and r201864:
17796 2013-08-20 David Malcolm <dmalcolm@redhat.com>
17798 Make opt_pass and gcc::pass_manager be GC-managed, so that pass
17799 instances can own GC refs.
17801 * Makefile.in (GTFILES): Add pass_manager.h and tree-pass.h.
17802 * context.c (gcc::context::gt_ggc_mx): Traverse passes_.
17803 (gcc::context::gt_pch_nx): Likewise.
17804 (gcc::context::gt_pch_nx): Likewise.
17805 * ggc.h (gt_ggc_mx <T>): New.
17806 (gt_pch_nx_with_op <T>): New.
17807 (gt_pch_nx <T>): New.
17808 * passes.c (opt_pass::gt_ggc_mx): New.
17809 (opt_pass::gt_pch_nx): New.
17810 (opt_pass::gt_pch_nx_with_op): New.
17811 (pass_manager::gt_ggc_mx): New.
17812 (pass_manager::gt_pch_nx): New.
17813 (pass_manager::gt_pch_nx_with_op): New.
17814 (pass_manager::operator new): Use
17815 ggc_internal_cleared_alloc_stat rather than xcalloc.
17816 * pass_manager.h (class pass_manager): Add GTY((user)) marking.
17817 (pass_manager::gt_ggc_mx): New.
17818 (pass_manager::gt_pch_nx): New.
17819 (pass_manager::gt_pch_nx_with_op): New.
17820 * tree-pass.h (class opt_pass): Add GTY((user)) marking.
17821 (opt_pass::operator new): New.
17822 (opt_pass::gt_ggc_mx): New.
17823 (opt_pass::gt_pch_nx): New.
17824 (opt_pass::gt_pch_nx_with_op): New.
17827 2013-08-20 David Malcolm <dmalcolm@redhat.com>
17829 * Makefile.in (GTFILES): Add context.h.
17830 * context.c (gcc::context::operator new): New.
17831 (gcc::context::gt_ggc_mx): New.
17832 (gcc::context::gt_pch_nx): New.
17833 (gcc::context::gt_pch_nx): New.
17834 * context.h (gcc::context): Add GTY((user)) marking.
17835 (gcc::context::operator new): New.
17836 (gcc::context::gt_ggc_mx): New.
17837 (gcc::context::gt_pch_nx): New.
17838 (gcc::context::gt_pch_nx): New.
17839 (g): Add GTY marking.
17840 (gt_ggc_mx (gcc::context *)): New.
17841 (gt_pch_nx (gcc::context *)): New.
17842 (gt_pch_nx (gcc::context *ctxt, gt_pointer_operator op,
17843 void *cookie)): New.
17844 * gengtype.c (open_base_files) <ifiles>: Add context.h.
17846 2013-08-20 Alexey Makhalov <makhaloff@gmail.com>
17848 * dce.c (fini_dce): Call df_analyze again just in case
17849 delete_unmarked_insns removed anything.
17851 2013-08-20 Teresa Johnson <tejohnson@google.com>
17853 PR rtl-optimizations/57451
17854 * final.c (reemit_insn_block_notes): Prevent lexical blocks
17855 from crossing split section boundaries.
17857 2013-08-20 Matthew Gretton-Dann <matthew.gretton-dann@linaro.org>
17859 * config/arm/linux-elf.h (MULTILIB_DEFAULTS): Remove definition.
17860 * config/arm/t-linux-eabi (MULTILIB_OPTIONS): Document association
17861 with MULTLIB_DEFAULTS.
17863 2013-08-20 Nick Clifton <nickc@redhat.com>
17865 * target.def (narrow_volatile_bitfield): Note that the default
17866 value is false, not !TARGET_STRICT_ALIGN.
17867 * doc/tm.texi: Regenerate.
17869 2013-08-20 Pavel Chupin <pavel.v.chupin@intel.com>
17871 Fix LIB_SPEC for systems without libpthread.
17873 * config/gnu-user.h: Introduce GNU_USER_TARGET_NO_PTHREADS_LIB_SPEC.
17874 * config/arm/linux-eabi.h: Use GNU_USER_TARGET_NO_PTHREADS_LIB_SPEC
17876 * config/i386/linux-common.h: Likewise.
17877 * config/mips/linux-common.h: Likewise.
17879 2013-08-20 Zhouyi Zhou <yizhouzhou@ict.ac.cn>
17881 * tree-ssa-ccp.c (get_default_value): Remove redundant condition
17884 2013-08-20 David Malcolm <dmalcolm@redhat.com>
17886 Make opt_pass and gcc::pass_manager be GC-managed, so that pass
17887 instances can own GC refs.
17889 * Makefile.in (GTFILES): Add pass_manager.h and tree-pass.h.
17890 * context.c (gcc::context::gt_ggc_mx): Traverse passes_.
17891 (gcc::context::gt_pch_nx): Likewise.
17892 (gcc::context::gt_pch_nx): Likewise.
17893 * ggc.h (gt_ggc_mx <T>): New.
17894 (gt_pch_nx_with_op <T>): New.
17895 (gt_pch_nx <T>): New.
17896 * passes.c (opt_pass::gt_ggc_mx): New.
17897 (opt_pass::gt_pch_nx): New.
17898 (opt_pass::gt_pch_nx_with_op): New.
17899 (pass_manager::gt_ggc_mx): New.
17900 (pass_manager::gt_pch_nx): New.
17901 (pass_manager::gt_pch_nx_with_op): New.
17902 (pass_manager::operator new): Use
17903 ggc_internal_cleared_alloc_stat rather than xcalloc.
17904 * pass_manager.h (class pass_manager): Add GTY((user)) marking.
17905 (pass_manager::gt_ggc_mx): New.
17906 (pass_manager::gt_pch_nx): New.
17907 (pass_manager::gt_pch_nx_with_op): New.
17908 * tree-pass.h (class opt_pass): Add GTY((user)) marking.
17909 (opt_pass::operator new): New.
17910 (opt_pass::gt_ggc_mx): New.
17911 (opt_pass::gt_pch_nx): New.
17912 (opt_pass::gt_pch_nx_with_op): New.
17914 2013-08-20 David Malcolm <dmalcolm@redhat.com>
17916 * Makefile.in (GTFILES): Add context.h.
17917 * context.c (gcc::context::operator new): New.
17918 (gcc::context::gt_ggc_mx): New.
17919 (gcc::context::gt_pch_nx): New.
17920 (gcc::context::gt_pch_nx): New.
17921 * context.h (gcc::context): Add GTY((user)) marking.
17922 (gcc::context::operator new): New.
17923 (gcc::context::gt_ggc_mx): New.
17924 (gcc::context::gt_pch_nx): New.
17925 (gcc::context::gt_pch_nx): New.
17926 (g): Add GTY marking.
17927 (gt_ggc_mx (gcc::context *)): New.
17928 (gt_pch_nx (gcc::context *)): New.
17929 (gt_pch_nx (gcc::context *ctxt, gt_pointer_operator op,
17930 void *cookie)): New.
17931 * gengtype.c (open_base_files) <ifiles>: Add context.h.
17933 2013-08-20 Alan Modra <amodra@gmail.com>
17936 * config/rs6000/rs6000.c (rs6000_emit_prologue): Correct ool_adjust.
17937 (rs6000_emit_epilogue): Likewise.
17939 2013-08-19 Dehao Chen <dehao@google.com>
17941 * value-prof.c (gimple_ic): Fix the bug of adding EH edge.
17943 2013-08-19 Peter Bergner <bergner@vnet.ibm.com>
17944 Jakub Jelinek <jakub@redhat.com>
17946 * builtins.def (BUILT_IN_FABSD32): New DFP ABS builtin.
17947 (BUILT_IN_FABSD64): Likewise.
17948 (BUILT_IN_FABSD128): Likewise.
17949 * builtins.c (expand_builtin): Add support for new DFP ABS builtins.
17950 (fold_builtin_1): Likewise.
17951 * config/rs6000/dfp.md (*negtd2_fpr): Handle non-overlapping
17952 destination and source operands.
17953 (*abstd2_fpr): Likewise.
17954 (*nabstd2_fpr): Likewise.
17956 2013-08-19 Richard Sandiford <rdsandiford@googlemail.com>
17958 * config/mips/mips.c (mips_adjust_insn_length): Add checks for
17961 2013-08-19 Aldy Hernandez <aldyh@redhat.com>
17963 * doc/invoke.texi (-fcilkplus): Clarify that implementation is
17966 2013-08-19 Alexander Ivchenko <alexander.ivchenko@intel.com>
17968 * target.def (TARGET_LIBC_HAS_FUNCTION): New target hook.
17969 * builtins.c (default_libc_has_function): New.
17970 (gnu_libc_has_function): Ditto.
17971 (no_c99_libc_has_function): Ditto.
17972 (expand_builtin_cexpi): Using new target hook TARGET_LIBC_HAS_FUNCTION
17973 instead of TARGET_HAS_SINCOS and TARGET_C99_FUNCTIONS.
17974 (fold_builtin_sincos): Likewise.
17975 (fold_builtin_cexp): Likewise.
17976 * builtins.def (DEF_C94_BUILTIN): Likewise.
17977 (DEF_C99_BUILTIN): Likewise.
17978 (DEF_C99_C90RES_BUILTIN): Likewise.
17979 (DEF_C99_COMPL_BUILTIN): New define. Change all complex c99 builtin
17980 definitions to using this define.
17981 * config/darwin-protos.h (darwin_libc_has_function): New.
17982 * config/darwin.c (darwin_libc_has_function): Ditto.
17983 * config/alpha/linux.h: Remove TARGET_C99_FUNCTIONS and
17984 TARGET_HAS_SINCOS. Redefine TARGET_LIBC_HAS_FUNCTION.
17985 * config/darwin.h: Ditto.
17986 * config/elfos.h: Ditto.
17987 * config/freebsd.h: Ditto.
17988 * config/i386/cygming.h: Ditto.
17989 * config/i386/djgpp.h: Ditto.
17990 * config/i386/i386-interix.h: Ditto.
17991 * config/microblaze/microblaze.h: Ditto.
17992 * config/mmix/mmix.h: Ditto.
17993 * config/gnu-user.h: Ditto.
17994 * config/ia64/hpux.h: Ditto.
17995 * config/pa/pa-hpux.h: Ditto.
17996 * config/pdp11/pdp11.h: Ditto.
17997 * config/picochip/picochip.h: Ditto.
17998 * config/linux.h: Ditto.
17999 * config/netbsd.h: Ditto.
18000 * config/openbsd.h: Ditto.
18001 * config/rs6000/aix43.h: Ditto.
18002 * config/rs6000/aix51.h: Ditto.
18003 * config/rs6000/aix52.h: Ditto.
18004 * config/rs6000/aix53.h: Ditto.
18005 * config/rs6000/aix61.h: Ditto.
18006 * config/rs6000/darwin.h: Ditto.
18007 * config/rs6000/linux.h: Ditto.
18008 * config/rs6000/linux64.h: Ditto.
18009 * config/s390/tpf.h: Ditto.
18010 * config/sol2-10.h: Ditto.
18011 * config/sol2.h: Ditto.
18012 * config/vms/vms.h: Ditto.
18013 * config/vxworks.h: Ditto.
18014 * config/linux-android.c (linux_android_libc_has_function):
18015 New linux-specific implementation of TARGET_LIBC_HAS_FUNCTION.
18016 * config/linux-protos.h (linux_android_libc_has_function):
18018 * config/i386/i386.c (ix86_libc_has_function): New.
18019 * config/i386/i386-protos.h
18020 (ix86_libc_has_function): New declaration.
18021 * config/i386/i386.md
18022 ("isinfxf2"): Change condition for TARGET_LIBC_HAS_FUNCTION.
18023 ("isinf<mode>2): Likewise.
18024 * convert.c (convert_to_integer): Using new target hook
18025 TARGET_LIBC_HAS_FUNCTION istead of TARGET_HAS_SINCOS and
18026 TARGET_C99_FUNCTIONS.
18027 * fortran/f95-lang.c (gfc_init_builtin_functions): Ditto.
18028 * tree-ssa-math-opts.c (execute_cse_sincos): Ditto.
18029 * coretypes.h (function_class): New enum for different
18030 classes of functions.
18031 * defaults.h: Remove TARGET_C99_FUNCTIONS and TARGET_HAS_SINCOS.
18032 * doc/tm.texi.in (TARGET_C99_FUNCTIONS): Remove documentation.
18033 (TARGET_HAS_SINCOS): Likewise.
18034 (TARGET_LIBC_HAS_FUNCTION): New.
18035 * doc/tm.texi: Regenerated.
18036 * targhooks.h (default_libc_has_function): New declaration.
18037 (no_c99_libc_has_function): Ditto.
18038 (gnu_libc_has_function): Ditto.
18039 * system.h: Add the poisoning of TARGET_C99_FUNCTIONS
18040 and TARGET_HAS_SINCOS.
18042 2013-08-18 Jan Hubicka <jh@suse.cz>
18044 * Makeifle-in (ipa-devirt.o): New.
18045 (GTFILES): Add ipa-utils.h and ipa-devirt.c
18046 * cgraphunit.c (decide_is_symbol_needed): Do not care about virtuals.
18047 (analyze_functions): Look into possible targets of polymorphic call.
18048 * dumpfile.c (dump_files): Add type-inheritance dump.
18049 * dumpfile.h (TDI_inheritance): New.
18050 * ipa-devirt.c: New file.
18051 * ipa-utils.h (odr_type_d): Forward declare.
18052 (odr_type): New type.
18053 (build_type_inheritance_graph): Declare.
18054 (possible_polymorphic_call_targets): Declare and introduce inline
18055 variant when only edge is pased.
18056 (dump_possible_polymorphic_call_targets): Likewise.
18057 * timevar.def (TV_IPA_INHERITANCE, TV_IPA_VIRTUAL_CALL): New.
18058 * tree.c (type_in_anonymous_namespace_p): Break out from ...
18059 (types_same_for_odr): ... here.
18060 * tree.h (type_in_anonymous_namespace_p): Declare.
18062 2013-08-18 Jakub Jelinek <jakub@redhat.com>
18064 PR tree-optimization/58006
18065 * tree-parloops.c (take_address_of): Don't ICE if get_name
18067 (eliminate_local_variables_stmt): Remove clobber stmts.
18069 2013-08-18 Eric Botcazou <ebotcazou@adacore.com>
18071 * cgraphunit.c (handle_alias_pairs): Reset the alias flag after the
18072 error message is issued for an alias to undefined symbol.
18074 2013-08-18 Jan Hubicka <jh@suse.cz>
18076 * cgraph.c (cgraph_create_indirect_edge): Discover
18077 polymorphic calls and record basic info into indirect_info.
18078 * gimple-fold.c (gimple_fold_call): When doing BINFO based
18079 devirtualization, ignore objc function calls.
18080 * ipa-cp.c (initialize_node_lattices): Be ready for polymorphic
18081 call with no parm index info.
18082 * ipa-prop.c (ipa_analyze_call_uses): Likewise.
18083 * tree.c (virtual_method_call_p): New function.
18084 * tree.h (virtual_method_call_p): Declare.
18086 2013-08-16 Jan Hubicka <jh@suse.cz>
18088 PR middle-end/58179
18089 * tree.c (obj_type_ref_class): Do not ICE on non-method calls.
18091 2013-08-16 David Edelsohn <dje.gcc@gmail.com>
18093 * config/rs6000/rs6000.md (rs6000_get_timebase_ppc32): Add length
18096 2013-08-16 David Malcolm <dmalcolm@redhat.com>
18098 * gengtype.c (type_for_name): Add special-case support for
18099 locating types within the "gcc::" namespace.
18100 (open_base_files): Emit a "using namespace gcc" directive.
18102 2013-08-16 Michael Meissner <meissner@linux.vnet.ibm.com>
18105 * config/rs6000/predicates.md (fusion_gpr_mem_load): Allow the
18106 memory rtx to contain ZERO_EXTEND and SIGN_EXTEND.
18108 * config/rs6000/rs6000-protos.h (fusion_gpr_load_p): Pass operands
18109 array instead of each individual operand as a separate argument.
18110 (emit_fusion_gpr_load): Likewise.
18111 (expand_fusion_gpr_load): Add new function declaration.
18113 * config/rs6000/rs6000.c (fusion_gpr_load_p): Change the calling
18114 signature to have the operands passed as an array, instead of as
18115 separate arguments. Allow ZERO_EXTEND to be in the memory
18116 address, and also SIGN_EXTEND if -mpower8-fusion-sign. Do not
18117 depend on the register live/dead flags when peepholes are run.
18118 (expand_fusion_gpr_load): New function to be called from the
18119 peephole2 pass, to change the register that addis sets to be the
18121 (emit_fusion_gpr_load): Change the calling signature to have the
18122 operands passed as an array, instead of as separate arguments.
18123 Allow ZERO_EXTEND to be in the memory address, and also
18124 SIGN_EXTEND if -mpower8-fusion-sign.
18126 * config/rs6000/rs6000.md (UNSPEC_FUSION_GPR): Delete unused
18127 unspec enumeration.
18128 (power8 fusion peephole/peephole2): Rework the fusion peepholes to
18129 adjust the register addis loads up in the peephole2 pass. Do not
18130 depend on the register live/dead state when the peephole pass is done.
18132 2013-08-16 David Malcolm <dmalcolm@redhat.com>
18134 * gengtype.c (create_user_defined_type): Ensure that the kind
18135 is set to TYPE_USER_STRUCT, fixing a bug seen when an incomplete
18136 declaration is seen before the GTY((user)) marking.
18138 2013-08-16 Bernd Edlinger <bernd.edlinger@hotmail.de>
18141 * config/i386/i386.c (make_resolver_func): Set DECL_UNINLINABLE.
18143 2013-08-16 Jan Hubicka <jh@suse.cz>
18145 * gimple-fold.c (gimple_extract_devirt_binfo_from_cst): Add new
18146 arugment expected_type.
18147 (gimple_fold_call): Use it.
18148 * gimple.h (gimple_extract_devirt_binfo_from_cst): Update prototype.
18149 * ipa-cp.c (ipa_get_indirect_edge_target_1): Update.
18150 * ipa-prop.c (ipa_analyze_virtual_call_uses): Use obj_type_ref_class.
18151 (try_make_edge_direct_virtual_call): Likewise.
18152 * tree.c (obj_type_ref_class): New.
18153 * tree.h (obj_type_ref_class): Use it.
18155 2013-08-16 Gabriel Dos Reis <gdr@integrable-solutions.net>
18157 * sched-vis.c (rtl_slim_pp_initialized): Remove.
18158 (rtl_slim_pp): Likewise.
18159 (init_rtl_slim_pretty_print): Likewise.
18160 (dump_value_slim): Don't call it. Use local pretty printer.
18161 (dump_insn_slim): Likewise.
18162 (dump_rtl_slim): Likewise.
18163 (str_pattern_slim): Likewise.
18164 * tree-mudflap.c (mf_varname_tree): Use local pretty printer.
18167 2013-08-16 Jakub Jelinek <jakub@redhat.com>
18169 PR tree-optimization/58164
18170 * gimple.c (walk_stmt_load_store_addr_ops): For visit_addr
18171 walk gimple_goto_dest of GIMPLE_GOTO.
18173 PR tree-optimization/58165
18174 * tree-call-cdce.c (shrink_wrap_one_built_in_call): If
18175 bi_call must be the last stmt in a bb, don't split_block, instead
18176 use fallthru edge from it and give up if there is none.
18177 Release conds vector when returning early.
18179 2013-08-14 Xinliang David Li <davidxl@google.com>
18181 * config/i386/i386.c (ix86_option_override_internal):
18182 Remove unused variable and field.
18184 2013-08-14 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
18187 * doc/invoke.texi: Add documentation of mcompat-align-parm option.
18188 * config/rs6000/rs6000.opt: Add mcompat-align-parm option.
18189 * config/rs6000/rs6000.c (rs6000_function_arg_boundary): For AIX
18190 and Linux, correct BLKmode alignment when 128-bit alignment is
18191 required and compatibility flag is not set.
18192 (rs6000_gimplify_va_arg): For AIX and Linux, honor specified alignment
18193 for zero-size arguments when compatibility flag is not set.
18195 2013-08-14 Jakub Jelinek <jakub@redhat.com>
18197 PR tree-optimization/58145
18198 * tree-sra.c (build_ref_for_offset): If prev_base has
18199 TREE_THIS_VOLATILE or TREE_SIDE_EFFECTS, propagate it to MEM_REF.
18201 2013-08-14 Xinliang David Li <davidxl@google.com>
18203 * config/i386/i386.c (ix86_option_override_internal):
18204 Fix uninitialized variable error.
18206 2013-08-14 Xinliang David Li <davidxl@google.com>
18208 * config/i386/i386.opt: Define two new options.
18209 * config/i386/x86-tune.def: Add arch selector field in macros.
18210 * config/i386/i386.h: Adjust macro definition.
18211 * config/i386/i386.c (ix86_option_override_internal):
18213 (parse_mtune_ctrl_str): New function.
18214 (set_ix86_tune_features): New function.
18215 (ix86_function_specific_restore): Call the new helper function.
18217 2013-08-14 Andrey Belevantsev <abel@ispras.ru>
18219 PR rtl-optimization/57662
18220 * sel-sched.c (code_motion_process_successors): When the current insn
18221 is removed after the recursive traversal, break from the loop.
18222 Add comments and debug printouts.
18224 2013-08-14 Jakub Jelinek <jakub@redhat.com>
18225 Alexandre Oliva <aoliva@redhat.com>
18228 * config/i386/i386.c (ix86_delegitimize_address): For CM_MEDIUM_PIC
18229 and CM_LARGE_PIC ix86_cmodel fall thru into the -m32 code, handle
18230 there also UNSPEC_PLTOFF.
18232 2013-08-14 Marek Polacek <polacek@redhat.com>
18234 * ipa-inline-analysis.c (add_clause): Avoid shifting integer
18235 NUM_CONDITIONS bit positions.
18237 2013-08-13 Cary Coutant <ccoutant@google.com>
18239 * dwarf2out.c (CHECKSUM_BLOCK): New macro.
18240 (attr_checksum): Hash vector contents instead of pointer.
18241 (attr_checksum_ordered): Likewise.
18243 2013-08-13 Uros Bizjak <ubizjak@gmail.com>
18245 * config/i386/sse.md (*sse2_maskmovdqu): Emit addr32 prefix
18246 when Pmode != word_mode. Add length_address attribute.
18247 (sse3_monitor_<mode>): Merge from sse3_monitor and
18248 sse3_monitor64_<mode> insn patterns. Emit addr32 prefix when
18249 Pmode != word_mode. Update insn length attribute.
18250 * config/i386/i386.c (ix86_option_override_internal): Update
18251 ix86_gen_monitor selection for merged sse3_monitor insn.
18253 2013-08-13 Julian Brown <julian@codesourcery.com>
18255 * config/rs6000/rs6000.c (rs6000_legitimize_reload_address): Don't
18256 perform invalid legitimization on greater-than-word-size modes for
18257 TARGET_E500_DOUBLE.
18259 2013-08-13 Vladimir Makarov <vmakarov@redhat.com>
18261 * ira.c (setup_class_translate_array): Use aclass instead of cl
18262 for classes not fully covered by allocno classes.
18264 2013-08-13 Jakub Jelinek <jakub@redhat.com>
18266 PR tree-optimization/57661
18267 * tree-inline.h (struct copy_body_data): Add blocks_to_copy field.
18268 * tree-inline.c (tree_function_versioning): Initialize it.
18269 (remap_gimple_stmt): Return GIMPLE_NOP for MEM_REF lhs clobber stmts
18270 if id->blocks_to_copy and MEM_REF's SSA_NAME is defined in a block
18271 that is not being copied.
18274 * asan.c (instrument_strlen_call): Fix typo in comment.
18275 Use char * type even for the lhs of POINTER_PLUS_EXPR.
18277 2013-08-13 Steve Ellcey <sellcey@mips.com>
18279 * config/mips/mips.md (prefetch): Use lw instead of ld on
18280 loongson in 32bit mode.
18282 2013-08-13 Nick Clifton <nickc@redhat.com>
18284 * config.gcc: (avr-linux): Allow for tmake_file not being empty.
18286 2013-08-13 Jan Hubicka <jh@suse.cz>
18288 * cgraph.c (cgraph_turn_edge_to_speculative): Return newly
18289 introduced edge; fix typo in sanity check.
18290 (cgraph_resolve_speculation): Export; improve diagnostic.
18291 (cgraph_redirect_edge_call_stmt_to_callee): Better diagnostic; cancel
18292 speculation at type mismatch.
18293 * cgraph.h (cgraph_turn_edge_to_speculative): Update.
18294 (cgraph_resolve_speculation): Declare.
18295 (symtab_can_be_discarded): New function.
18296 * value-prof.c (gimple_ic_transform): Remove actual transform code.
18297 * ipa-inline-transform.c (speculation_removed): New global var.
18298 (clone_inlined_nodes): See if speculation can be removed.
18299 (inline_call): If speculations was removed, we growths may not match.
18300 * ipa-inline.c (can_inline_edge_p): Add DISREGARD_LIMITS parameter.
18301 (speculation_useful_p): New function.
18302 (resolve_noninline_speculation): New function.
18303 (inline_small_functions): Resolve useless speculations.
18304 * ipa-inline.h (speculation_useful_p): Declare
18305 * ipa.c (can_replace_by_local_alias): Simplify.
18306 (ipa_profile): Produce speculative calls in non-lto, too;
18307 add simple cost model; produce local aliases.
18309 2013-08-13 David Malcolm <dmalcolm@redhat.com>
18311 * config/i386/t-i386 (i386.o): Rename stray PIPELINE_H to
18314 2013-08-12 Paolo Carlini <paolo.carlini@oracle.com>
18316 * config/i386/i386.c (ix86_function_versions): Use error + inform.
18318 2013-08-12 Uros Bizjak <ubizjak@gmail.com>
18320 * config/i386/i386.md (floatunssi<mode>2 expand): Use MODEF mode
18321 iterator instead of X87MODEF.
18323 2013-08-12 Perez Read <netfirewall@gmail.com>
18326 * config/i386/i386.md (*movabs<mode>_1): Add <ptrsize> PTR before
18327 operand 0 for intel asm alternative.
18328 (*movabs<mode>_2): Ditto for operand 1.
18330 2013-08-12 James Greenhalgh <james.greenhalgh@arm.com>
18332 * config/aarch64/arm_none.h
18333 (vdup<bhsd>_lane_<su><8,16,32,64>): Fix macro call.
18335 2013-08-12 Nick Clifton <nickc@redhat.com>
18337 * config.gcc (m32r-linux): Allow for tmake_file not being empty.
18339 2013-08-12 Yuri Rumyantsev <ysrumyan@gmail.com>
18341 * config/i386/i386.md (floatunssi<mode>2 expand): Add new
18342 expand for QI/HImode operand to produce more effictive code for
18343 unsigned char(short) --> float(double) conversion.
18345 2013-08-12 Alexander Monakov <amonakov@ispras.ru>
18347 * doc/invoke.texi: Mention that -ftls-model does not force the final
18350 2013-08-12 Marek Polacek <polacek@redhat.com>
18351 Marc Glisse <marc.glisse@inria.fr>
18353 PR tree-optimization/57980
18354 * tree-tailcall.c (process_assignment): Call build_minus_one_cst
18355 when creating -1 constant.
18357 2013-08-10 Jan Hubicka <jh@suse.cz>
18359 Workaround binutils PR14342.
18360 * tree-profile.c (init_ic_make_global_vars): Add LTO path.
18361 (gimple_init_edge_profiler): Likewise.
18362 (gimple_gen_ic_func_profiler): Likewise.
18364 2013-08-09 Jan Hubicka <jh@suse.cz>
18366 * cgraph.c (cgraph_create_edge_1): Clear speculative flag.
18368 2013-08-09 Xinliang David Li <davidxl@google.com>
18370 * config/i386/stringop.def: New file.
18371 * config/i386/stringop.opt: New file.
18372 * config/i386/i386-opts.h: Include stringopt.def.
18373 * config/i386/i386.opt: Include stringopt.opt.
18374 * config/i386/i386.c (ix86_option_override_internal):
18375 Override default size based stringop inline strategies with options.
18376 * config/i386/i386.c (ix86_parse_stringop_strategy_string):
18379 2013-08-09 Jan Hubicka <jh@suse.cz>
18381 * ipa-ref.c (ipa_clear_stmts_in_references): Clear lto_stmt_uid, too.
18383 2013-08-09 Jan Hubicka <jh@suse.cz>
18385 * cgraph.c (cgraph_resolve_speculation): Cut frequency to
18387 (dump_cgraph_node): Dump profile-id.
18388 * cgraph.h (cgraph_indirect_call_info): Add common_target_id
18389 and common_target_probability.
18390 * lto-cgraph.c (lto_output_edge): Stream common targets.
18391 (lto_output_node): Stream profile ids.
18392 (input_node): Stream profile ids.
18393 (input_edge): Stream common targets.
18394 * lto-streamer-in.c (fixup_call_stmt_edges_1): Fix formatting.
18395 * ipa.c: Include value-prof.h
18396 (ipa_profile_generate_summary): Turn indirect call statement histograms
18397 into common targets.
18398 (ipa_profile): Turn common targets into speculative edges.
18400 2013-08-09 Jan Hubicka <jh@suse.cz>
18402 * cgraph.h (cgraph_node): Add profile_id.
18403 * value-prof.c (cgraph_node_map): Turn into pointer_map.
18404 (init_node_map): Rewrite to handle hashes increas of incremental IDs.
18405 (del_node_map): Update.
18406 (find_func_by_funcdef_no): Replace by ...
18407 (find_func_by_profile_id): ... this one.
18408 (gimple_ic_transform): Do not remove useful histograms when
18409 speculation is not done; dump info when indirect call removal
18411 * value-prof.h (find_func_by_profile_id, gimple_ic): Declare.
18412 * gcov-io.h (__gcov_indirect_call_profiler): Replace by ...
18413 (__gcov_indirect_call_profiler_v2): .. this one.
18414 * profile.h (init_node_map): Update.
18415 * coverage.c (coverage_compute_profile_id): New function.
18416 * coverage.h (coverage_compute_profile_id): Declare.
18417 * tree-profile.c (init_ic_make_global_vars): Make
18418 __gcov_indirect_call_callee and __gcov_indirect_call_counters global.
18419 (gimple_init_edge_profiler): Update prototype of
18420 __gcov_indirect_call_profiler.
18421 (gimple_gen_ic_func_profiler): Simplify.
18422 (tree_profiling): Use init_node_map
18424 2013-08-09 Jan Hubicka <jh@suse.cz>
18426 * cgraphbuild.c (cgraph_rebuild_references): Rebuild only
18427 non-speculative refs.
18428 * cgraph.c (cgraph_update_edge_in_call_site_hash): New function.
18429 (cgraph_add_edge_to_call_site_hash): Deal with speculative calls.
18430 (cgraph_set_call_stmt): Likewise.
18431 (cgraph_create_edge_1): Fix release checking compilatoin;
18432 clear lto_stmt_uid.
18433 (cgraph_free_edge): Free indirect info.
18434 (cgraph_turn_edge_to_speculative): New function.
18435 (cgraph_speculative_call_info): New function.
18436 (cgraph_make_edge_direct): Return direct edge; handle speculation.
18437 (cgraph_redirect_edge_call_stmt_to_callee): Expand speculative edges.
18438 (dump_cgraph_node): Dump speculation.
18439 (verify_edge_count_and_frequency): Accept speculative edges.
18440 (verify_edge_corresponds_to_fndecl): Handle partitioned cgraph.
18441 (verify_cgraph_node): Handle speculation.
18442 * cgraph.h (cgraph_edge): Add SPECULATIVE flag.
18443 (cgraph_set_call_stmt): Update prototype.
18444 (cgraph_make_edge_direct): Update prototype.
18445 (cgraph_speculative_call_info): Declare.
18446 * ipa-cp.c (ipcp_discover_new_direct_edges): Be ready for edge
18447 to change; update call of ipa_find_references.
18448 * ipa-ref.c (ipa_record_reference): Fix return value; clear
18449 lto_stmt_uid and speculative flags.
18450 (ipa_dump_references): Dump speculation.
18451 (ipa_clone_references): Clone speculative flag.
18452 (ipa_clone_referring): Likewise.
18453 (ipa_clone_ref): New function.
18454 (ipa_find_reference): Look into lto_stmt_uids
18455 (ipa_clear_stmts_in_references): Do not clear speculative calls.
18456 * ipa-ref.h (ipa_ref): Add lto_stmt_uid and speculative flags.
18457 (ipa_find_reference): Update declaration.
18458 (ipa_clone_ref): Declare.
18459 * lto-cgraph.c (lto_output_edge): Make lto_stmt_uids start from 0;
18460 stream speculative flag.
18461 (lto_output_ref): Stream statements uids and speculation.
18462 (input_ref): Likewise.
18463 (input_edge): Stream speuclation.
18464 * cgraphclones.c (cgraph_clone_edge): Clone speculation.
18465 (cgraph_set_call_stmt_including_clones): Handle speculation.
18466 * ipa-inline.c (heap_edge_removal_hook): New function.
18467 (inline_small_functions): Register it.
18468 * lto-streamer-in.c (fixup_call_stmt_edges_1): Bounds checking;
18469 also initialize refs.
18470 * ipa-prop.c (ipa_make_edge_direct_to_target): Be ready for
18472 (try_make_edge_direct_simple_call): Likewise.
18473 (try_make_edge_direct_simple_call): Likewise.
18474 (update_indirect_edges_after_inlining): Likewise.
18475 (remove_described_reference): Look proper lto_stmt_uid.
18476 (propagate_controlled_uses): Likewise.
18477 (propagate_controlled_uses): Liekwise.
18478 * tree-inline.c (copy_bb): Copy speculative edges.
18479 (redirect_all_calls): New function.
18480 (copy_cfg_body): Do redirection after loop info is updated.
18481 (delete_unreachable_blocks_update_callgraph): Updadte speculation.
18483 2013-08-09 Jan Hubicka <jh@suse.cz>
18485 * lto-streamer-out.c (output_function): Renumber PHIs.
18486 * lto-streamer-in.c (input_function): Likewise.
18488 2013-08-09 James Greenhalgh <james.greenhalgh@arm.com>
18490 * config/aarch64/aarch64-simd-builtins.def (get_lane_signed): Remove.
18491 (get_lane_unsigned): Likewise.
18492 (dup_lane_scalar): Likewise.
18493 (get_lane): enable for VALL.
18494 * config/aarch64/aarch64-simd.md
18495 (aarch64_dup_lane_scalar<mode>): Remove.
18496 (aarch64_get_lane_signed<mode>): Likewise.
18497 (aarch64_get_lane_unsigned<mode>): Likewise.
18498 (aarch64_get_lane_extend<GPI:mode><VDQQH:mode>): New.
18499 (aarch64_get_lane_zero_extendsi<mode>): Likewise.
18500 (aarch64_get_lane<mode>): Enable for all vector modes.
18501 (aarch64_get_lanedi): Remove misleading constraints.
18502 * config/aarch64/arm_neon.h
18503 (__aarch64_vget_lane_any): Define.
18504 (__aarch64_vget<q>_lane_<fpsu><8,16,32,64>): Likewise.
18505 (vget<q>_lane_<fpsu><8,16,32,64>): Use __aarch64_vget_lane macros.
18506 (vdup<bhsd>_lane_<su><8,16,32,64>): Likewise.
18507 * config/aarch64/iterators.md (VDQQH): New.
18508 (VDQQHS): Likewise.
18509 (vwcore): Likewise.
18511 2013-08-09 Eric Botcazou <ebotcazou@adacore.com>
18513 * configure.ac: Add GAS check for LEON instructions on SPARC.
18514 * configure: Regenerate.
18515 * config.in: Likewise.
18516 * config.gcc (with_cpu): Remove sparc-leon*-* and deal with LEON in the
18518 * config/sparc/sparc.opt (LEON, LEON3): New masks.
18519 * config/sparc/sparc.h (ASM_CPU32_DEFAULT_SPEC): Set to AS_LEON_FLAG
18521 (ASM_CPU_SPEC): Pass AS_LEON_FLAG if -mcpu=leon or -mcpu=leon3.
18522 (AS_LEON_FLAG): New macro.
18523 * config/sparc/sparc.c (sparc_option_override): Set MASK_LEON for leon
18524 and MASK_LEON3 for leon3 and unset them if HAVE_AS_LEON is not defined.
18525 Deal with LEON and LEON3 for the memory model.
18526 * config/sparc/sync.md (atomic_compare_and_swap<mode>): Enable if LEON3
18527 (atomic_compare_and_swap<mode>_1): Likewise.
18528 (*atomic_compare_and_swap<mode>_1): Likewise.
18530 2013-08-09 Zhenqiang Chen <zhenqiang.chen@linaro.org>
18532 * config/arm/neon.md (vcond): Fix floating-point vector
18533 comparisons against 0.
18535 2013-08-08 Vladimir Makarov <vmakarov@redhat.com>
18537 * lra-constraints.c (emit_spill_move): Remove assert.
18538 (process_alt_operands): Add more debugging
18539 output. Increase reject for spilling into memory. Decrease
18540 reject for reloading scratch.
18541 (split_reg): Use HARD_REGNO_CALLER_SAVE_MODE.
18543 2013-08-08 Steve Ellcey <sellcey@mips.com>
18545 * config/mips/mti-linux.h (SYSROOT_SUFFIX_SPEC): Add nan2008.
18546 * config/mips/t-mti-elf (MULTILIB_OPTIONS): Make mips16 and
18547 micromips incompatible. Add nan2008.
18548 (MULTILIB_DIRNAMES): Add nan2008.
18549 (MULTILIB_EXCEPTIONS): Remove mips16/micromips entry.
18550 * config/mips/t-mti-linux (MULTILIB_OPTIONS): Make mips16
18551 and micromips incompatible. Add nan2008.
18552 (MULTILIB_DIRNAMES): Add nan2008.
18553 (MULTILIB_EXCEPTIONS): Remove mips16/micromips entry.
18555 2013-08-08 Richard Sandiford <rdsandiford@googlemail.com>
18557 PR rtl-optimization/58079
18558 * combine.c (combine_simplify_rtx): Avoid using SUBST if
18559 simplify_comparison has widened a comparison with an integer.
18561 2013-08-08 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
18563 * config/arm/neon.md (movmisalign<mode>): Disable when we
18564 don't allow unaligned accesses.
18565 (*movmisalign<mode>_neon_store): Likewise.
18566 (*movmisalign<mode>_neon_load): Likewise.
18567 (*movmisalign<mode>_neon_store): Likewise.
18568 (*movmisalign<mode>_neon_load): Likewise.
18570 2013-08-08 Jan Hubicka <jh@suse.cz>
18572 * cgraphbuild.c (build_cgraph_edges): Do not walk into debugs.
18573 (make_pass_rebuild_cgraph_edges): Also clear references.
18574 * cgraph.c (verify_cgraph_node): Add basic ipa-ref verifier.
18575 * ipa-inline-transform.c (inline_transform): Remove all references
18577 * cgraphunit.c (expand_function): Remove all references after
18579 * ipa-ref.c (ipa_ref_has_aliases_p): Fix formatting.
18580 (ipa_find_reference): Rewrite to iterator.
18581 (remove_stmt_references): Likewise.
18582 (ipa_clear_stmts_in_references): New function.
18583 * ipa-ref.h (ipa_clear_stmts_in_references): Declare.
18584 * cgraphclones.c (cgraph_materialize_all_clones): Remove or
18586 * ipa-split.c (split_function): Remove references in split function.
18588 2013-08-08 Richard Earnshaw <rearnsha@arm.com>
18591 * config/arm/arm/neon.md (neon_vld1_dupdi): New expand pattern.
18592 (neon_vld1_dup<mode> VD iterator): Iterate over VD not VDX.
18594 2013-08-08 Richard Earnshaw <rearnsha@arm.com>
18597 * config/arm/arm.c (aapcs_vfp_allocate): Decompose the argument if the
18598 suggested mode for the assignment isn't compatible with the
18599 registers required.
18601 2013-08-08 Bernd Edlinger <bernd.edlinger@hotmail.de>
18604 * config/arm/arm.h (MALLOC_ABI_ALIGNMENT): Define.
18606 2013-08-07 Xinliang David Li <davidxl@google.com>
18608 * config/i386/i386.opt: New option -mtune-ctrl=.
18609 * config/i386/x86-tune.def: New file.
18610 * config/i386/i386.h: include x86-tune.def.
18611 * config/i386/i386.c (ix86_option_override_internal):
18612 Parsing -mtune-ctrl= option and set tune features.
18614 2013-08-07 Oleg Endo <olegendo@gcc.gnu.org>
18617 * config/rs6000/rs6000.c (gen_2arg_fn_t): Remove typedef.
18618 (rs6000_emit_swdiv, rs6000_emit_swrsqrt): Don't cast result of GEN_FCN
18621 2013-08-07 Eric Botcazou <ebotcazou@adacore.com>
18623 * rtl.h (update_alignments): Declare.
18624 * final.c (grow_label_align): New function extracted from...
18625 (shorten_branches): ...here. Call it.
18626 (update_alignments): New function.
18627 * reorg.c (sibling_labels): New variable.
18628 (get_label_before): Add SIBLING parameter. If it is non-zero, push
18629 the new label along with it onto the sibling_labels vector.
18630 (fill_simple_delay_slots): Adjust call to get_label_before.
18631 (fill_slots_from_thread): Likewise.
18632 (relax_delay_slots): Likewise.
18633 (make_return_insns): Likewise.
18634 (dbr_schedule): Invoke update_alignment on the sibling_labels vector.
18636 2013-08-07 Eric Botcazou <ebotcazou@adacore.com>
18638 * diagnostic.c (diagnostic_classify_diagnostic): Accept zero index and
18639 document its semantics.
18640 (diagnostic_report_diagnostic): Adjust accordingly.
18642 2013-08-07 David Malcolm <dmalcolm@redhat.com>
18644 * config/sparc/sparc.c (insert_pass_work_around_errata): Move into...
18645 (sparc_option_override): ...and port to new C++ pass API.
18646 * config/sparc/t-sparc (sparc.o): Add dep on CONTEXT_H
18648 2013-08-07 Peter Bergner <bergner@vnet.ibm.com>
18650 * config/rs6000/rs6000.c (htm_expand_builtin) <case 0>: Remove.
18652 2013-08-06 Caroline Tice <cmtice@google.com>
18654 * gcc.c (VTABLE_VERIFICATION_SPEC): New definition.
18655 (LINK_COMMAND_SPEC): Add VTABLE_VERIFICATION_SPEC.
18656 * tree-pass.h: Add pass_vtable_verify.
18657 * varasm.c (assemble_variable): Add code to properly set the comdat
18658 section and name for the .vtable_map_vars section.
18659 (assemble_vtyv_preinit_initializer): New function.
18660 (default_sectin_type_flags): Make sure .vtable_map_vars section has
18662 * output.h: Add function decl for assemble_vtv_preinit_initializer.
18663 * vtable-verify.c: New file.
18664 * vtable-verify.h: New file.
18665 * flag-types.h (enum vtv_priority): Defintions for flag_vtable_verify
18666 initialiation levels.
18667 * timevar.def (TV_VTABLE_VERIFICATION): New definition.
18668 * passes.def: Insert pass_vtable_verify.
18669 * aclocal.m4: Reorder includes.
18670 * doc/invoke.texi: Document the -fvtable-verify=, -fvtv-debug, and
18671 -fvtv-counts options.
18672 * config/gnu-user.h (GNU_USER_TARGET_STARTFILE_SPEC): Add vtv_start*.o,
18673 as appropriate, if -fvtable-verify=... is used.
18674 (GNU_USER_TARGET_ENDFILE_SPEC): Add vtv_end*.o as appropriate, if
18675 -fvtable-verify=... is used.
18676 * Makefile.in (OBJS): Add vtable-verify.o to list.
18677 (vtable-verify.o): Add new build rule.
18678 (GTFILES): Add vtable-verify.c to list.
18679 * common.opt (fvtable-verify=): New flag.
18680 (vtv_priority): Values for fvtable-verify= flag.
18681 (fvtv-counts): New flag.
18682 (fvtv-debug): New flag.
18683 * tree.h (save_vtable_map_decl): New extern function decl.
18685 2013-08-07 David Malcolm <dmalcolm@redhat.com>
18687 * config/rl78/rl78.c (rl78_devirt_pass): Convert from a struct to...
18688 (pass_rl78_devirt): ...new subclass of rtl_opt_pass along with...
18689 (pass_data_rl78_devirt): ...new pass_data instance and...
18690 (make_pass_rl78_devirt): ...new function.
18691 (rl78_asm_file_start): Port pass registration to new C++ API.
18693 2013-08-07 David Malcolm <dmalcolm@redhat.com>
18695 * coretypes.h (rtl_opt_pass): Add.
18696 (gcc::context): Add.
18697 * config/epiphany/epiphany.c (pass_mode_switch_use): New.
18698 (epiphany_init): Port to new C++ pass API.
18699 (epiphany_optimize_mode_switching): Likewise.
18700 * pass_manager.h (pass_manager::get_pass_split_all_insns): New.
18701 (pass_manager::get_pass_mode_switching): New.
18702 (pass_manager::get_pass_peephole2): New.
18703 * mode-switching.c (pass_mode_switching): Add clone method.
18704 * recog.c (pass_peephole2): Add clone method.
18705 (pass_split_all_insns): Add clone method.
18707 2013-08-06 David Malcolm <dmalcolm@redhat.com>
18709 * config/mips/mips.c (insert_pass_mips_machine_reorg2): Move into...
18710 (mips_option_override): ...here, porting to new C++ API for passes.
18712 2013-08-06 Jan Hubicka <jh@suse.cz>
18714 * cgraph.c (cgraph_get_body): New function based on lto.c
18716 * cgraph.h (cgraph_get_body): Declare.
18717 * cgraphclones.c (cgraph_create_virtual_clone): Commonize WPA and
18719 * cgraphunit.c (expand_function): Get body prior expanding.
18720 * ipa.c (function_and_variable_visibility): Use gimple_has_body_p test.
18721 * lto-cgraph.c (lto_output_node): Do not stream bodies we don't
18723 * passes.c (do_per_function_toporder): Get body.
18724 * tree-inline.c (expand_call_inline): Get body prior inlining it.
18725 * tree-ssa-structalias.c (ipa_pta_execute): Get body; skip clones.
18727 2013-08-06 Martin Jambor <mjambor@suse.cz>
18730 * cgraphunit.c (cgraph_finalize_function): Assert that nested function
18731 is not re-finalized. Rename second parameter to no_collect.
18733 2013-08-06 Martin Jambor <mjambor@suse.cz>
18735 PR middle-end/58041
18736 * gimple-ssa-strength-reduction.c (replace_ref): Make sure built
18737 MEM_REF has proper alignment information.
18739 2013-08-05 Oleg Endo <olegendo@gcc.gnu.org>
18742 * recog.h (rtx (*insn_gen_fn) (rtx, ...)): Replace typedef with new
18744 * expr.c (move_by_pieces_1, store_by_pieces_2): Replace argument
18745 rtx (*) (rtx, ...) with insn_gen_fn.
18746 * genoutput.c (output_insn_data): Cast gen_? function pointers to
18747 insn_gen_fn::stored_funcptr. Add initializer braces.
18749 2013-08-05 David Malcolm <dmalcolm@redhat.com>
18751 Rewrite how instances of passes are cloned to remove assumptions
18752 about their sizes (thus allowing pass subclasses to have
18753 additional data fields, albeit non-GC-managed ones at this point).
18755 * passes.c (make_pass_instance): Now that passes have clone
18756 methods, rewrite this function to eliminate XNEW and memcpy
18757 calls that used hardcoded sizes. Since this function no longer
18758 creates pass instances, rename it to...
18759 (add_pass_instance): ...this. Document the old way that passes were
18760 numbered and flagged, and rework this function to continue using it.
18761 (next_pass_1): Add an initial_pass argument for use by
18763 (position_pass): When adding multiple instances of a pass, use
18764 the pass's clone method, rather than relying on the XNEW/memcpy
18765 within the former make_pass_instance (now add_pass_instance).
18766 (pass_manager::pass_manager): When invoking next_pass_1, also supply
18767 the initial instance of the current pass within the pass manager.
18769 2013-08-05 David Malcolm <dmalcolm@redhat.com>
18771 This is the automated part of the conversion of passes from C
18772 structs to C++ classes.
18774 Patch autogenerated by refactor_passes.py from
18775 https://github.com/davidmalcolm/gcc-refactoring-scripts
18776 revision 03fe39476a4c4ea450b49e087cfa817b5f92021e
18778 * asan.c (pass_asan): Convert from a global struct to a subclass of
18779 gimple_opt_pass along with...
18780 (pass_data_asan): ...new pass_data instance and...
18781 (make_pass_asan): ...new function.
18782 (pass_asan_O0): Convert from a global struct to a subclass of
18783 gimple_opt_pass along with...
18784 (pass_data_asan_O0): ...new pass_data instance and...
18785 (make_pass_asan_O0): ...new function.
18786 * auto-inc-dec.c (pass_inc_dec): Convert from a global struct to a
18787 subclass of rtl_opt_pass along with...
18788 (pass_data_inc_dec): ...new pass_data instance and...
18789 (make_pass_inc_dec): ...new function.
18790 * bb-reorder.c (pass_reorder_blocks): Convert from a global struct to
18791 a subclass of rtl_opt_pass along with...
18792 (pass_data_reorder_blocks): ...new pass_data instance and...
18793 (make_pass_reorder_blocks): ...new function.
18794 (pass_duplicate_computed_gotos): Convert from a global struct to a
18795 subclass of rtl_opt_pass along with...
18796 (pass_data_duplicate_computed_gotos): ...new pass_data instance and...
18797 (make_pass_duplicate_computed_gotos): ...new function.
18798 (pass_partition_blocks): Convert from a global struct to a subclass of
18799 rtl_opt_pass along with...
18800 (pass_data_partition_blocks): ...new pass_data instance and...
18801 (make_pass_partition_blocks): ...new function.
18802 * bt-load.c (pass_branch_target_load_optimize1): Convert from a global
18803 struct to a subclass of rtl_opt_pass along with...
18804 (pass_data_branch_target_load_optimize1): ...new pass_data instance
18806 (make_pass_branch_target_load_optimize1): ...new function.
18807 (pass_branch_target_load_optimize2): Convert from a global struct to a
18808 subclass of rtl_opt_pass along with...
18809 (pass_data_branch_target_load_optimize2): ...new pass_data instance
18811 (make_pass_branch_target_load_optimize2): ...new function.
18812 * cfgcleanup.c (pass_jump): Convert from a global struct to a subclass
18813 of rtl_opt_pass along with...
18814 (pass_data_jump): ...new pass_data instance and...
18815 (make_pass_jump): ...new function.
18816 (pass_jump2): Convert from a global struct to a subclass of
18817 rtl_opt_pass along with...
18818 (pass_data_jump2): ...new pass_data instance and...
18819 (make_pass_jump2): ...new function.
18820 * cfgexpand.c (pass_expand): Convert from a global struct to a
18821 subclass of rtl_opt_pass along with...
18822 (pass_data_expand): ...new pass_data instance and...
18823 (make_pass_expand): ...new function.
18824 * cfgrtl.c (pass_free_cfg): Convert from a global struct to a subclass
18825 of rtl_opt_pass along with...
18826 (pass_data_free_cfg): ...new pass_data instance and...
18827 (make_pass_free_cfg): ...new function.
18828 (pass_into_cfg_layout_mode): Convert from a global struct to a
18829 subclass of rtl_opt_pass along with...
18830 (pass_data_into_cfg_layout_mode): ...new pass_data instance and...
18831 (make_pass_into_cfg_layout_mode): ...new function.
18832 (pass_outof_cfg_layout_mode): Convert from a global struct to a
18833 subclass of rtl_opt_pass along with...
18834 (pass_data_outof_cfg_layout_mode): ...new pass_data instance and...
18835 (make_pass_outof_cfg_layout_mode): ...new function.
18836 * cgraphbuild.c (pass_build_cgraph_edges): Convert from a global
18837 struct to a subclass of gimple_opt_pass along with...
18838 (pass_data_build_cgraph_edges): ...new pass_data instance and...
18839 (make_pass_build_cgraph_edges): ...new function.
18840 (pass_rebuild_cgraph_edges): Convert from a global struct to a
18841 subclass of gimple_opt_pass along with...
18842 (pass_data_rebuild_cgraph_edges): ...new pass_data instance and...
18843 (make_pass_rebuild_cgraph_edges): ...new function.
18844 (pass_remove_cgraph_callee_edges): Convert from a global struct to a
18845 subclass of gimple_opt_pass along with...
18846 (pass_data_remove_cgraph_callee_edges): ...new pass_data instance
18848 (make_pass_remove_cgraph_callee_edges): ...new function.
18849 * combine-stack-adj.c (pass_stack_adjustments): Convert from a global
18850 struct to a subclass of rtl_opt_pass along with...
18851 (pass_data_stack_adjustments): ...new pass_data instance and...
18852 (make_pass_stack_adjustments): ...new function.
18853 * combine.c (pass_combine): Convert from a global struct to a subclass
18854 of rtl_opt_pass along with...
18855 (pass_data_combine): ...new pass_data instance and...
18856 (make_pass_combine): ...new function.
18857 * compare-elim.c (pass_compare_elim_after_reload): Convert from a
18858 global struct to a subclass of rtl_opt_pass along with...
18859 (pass_data_compare_elim_after_reload): ...new pass_data instance
18861 (make_pass_compare_elim_after_reload): ...new function.
18862 * cprop.c (pass_rtl_cprop): Convert from a global struct to a subclass
18863 of rtl_opt_pass along with...
18864 (pass_data_rtl_cprop): ...new pass_data instance and...
18865 (make_pass_rtl_cprop): ...new function.
18866 * cse.c (pass_cse): Convert from a global struct to a subclass of
18867 rtl_opt_pass along with...
18868 (pass_data_cse): ...new pass_data instance and...
18869 (make_pass_cse): ...new function.
18870 (pass_cse2): Convert from a global struct to a subclass of
18871 rtl_opt_pass along with...
18872 (pass_data_cse2): ...new pass_data instance and...
18873 (make_pass_cse2): ...new function.
18874 (pass_cse_after_global_opts): Convert from a global struct to a
18875 subclass of rtl_opt_pass along with...
18876 (pass_data_cse_after_global_opts): ...new pass_data instance and...
18877 (make_pass_cse_after_global_opts): ...new function.
18878 * dce.c (pass_ud_rtl_dce): Convert from a global struct to a subclass
18879 of rtl_opt_pass along with...
18880 (pass_data_ud_rtl_dce): ...new pass_data instance and...
18881 (make_pass_ud_rtl_dce): ...new function.
18882 (pass_fast_rtl_dce): Convert from a global struct to a subclass of
18883 rtl_opt_pass along with...
18884 (pass_data_fast_rtl_dce): ...new pass_data instance and...
18885 (make_pass_fast_rtl_dce): ...new function.
18886 * df-core.c (pass_df_initialize_opt): Convert from a global struct to
18887 a subclass of rtl_opt_pass along with...
18888 (pass_data_df_initialize_opt): ...new pass_data instance and...
18889 (make_pass_df_initialize_opt): ...new function.
18890 (pass_df_initialize_no_opt): Convert from a global struct to a
18891 subclass of rtl_opt_pass along with...
18892 (pass_data_df_initialize_no_opt): ...new pass_data instance and...
18893 (make_pass_df_initialize_no_opt): ...new function.
18894 (pass_df_finish): Convert from a global struct to a subclass of
18895 rtl_opt_pass along with...
18896 (pass_data_df_finish): ...new pass_data instance and...
18897 (make_pass_df_finish): ...new function.
18898 * dse.c (pass_rtl_dse1): Convert from a global struct to a subclass of
18899 rtl_opt_pass along with...
18900 (pass_data_rtl_dse1): ...new pass_data instance and...
18901 (make_pass_rtl_dse1): ...new function.
18902 (pass_rtl_dse2): Convert from a global struct to a subclass of
18903 rtl_opt_pass along with...
18904 (pass_data_rtl_dse2): ...new pass_data instance and...
18905 (make_pass_rtl_dse2): ...new function.
18906 * dwarf2cfi.c (pass_dwarf2_frame): Convert from a global struct to a
18907 subclass of rtl_opt_pass along with...
18908 (pass_data_dwarf2_frame): ...new pass_data instance and...
18909 (make_pass_dwarf2_frame): ...new function.
18910 * except.c (pass_set_nothrow_function_flags): Convert from a global
18911 struct to a subclass of rtl_opt_pass along with...
18912 (pass_data_set_nothrow_function_flags): ...new pass_data instance
18914 (make_pass_set_nothrow_function_flags): ...new function.
18915 (pass_convert_to_eh_region_ranges): Convert from a global struct to a
18916 subclass of rtl_opt_pass along with...
18917 (pass_data_convert_to_eh_region_ranges): ...new pass_data instance
18919 (make_pass_convert_to_eh_region_ranges): ...new function.
18920 * final.c (pass_compute_alignments): Convert from a global struct to a
18921 subclass of rtl_opt_pass along with...
18922 (pass_data_compute_alignments): ...new pass_data instance and...
18923 (make_pass_compute_alignments): ...new function.
18924 (pass_final): Convert from a global struct to a subclass of
18925 rtl_opt_pass along with...
18926 (pass_data_final): ...new pass_data instance and...
18927 (make_pass_final): ...new function.
18928 (pass_shorten_branches): Convert from a global struct to a subclass of
18929 rtl_opt_pass along with...
18930 (pass_data_shorten_branches): ...new pass_data instance and...
18931 (make_pass_shorten_branches): ...new function.
18932 (pass_clean_state): Convert from a global struct to a subclass of
18933 rtl_opt_pass along with...
18934 (pass_data_clean_state): ...new pass_data instance and...
18935 (make_pass_clean_state): ...new function.
18936 * function.c (pass_instantiate_virtual_regs): Convert from a global
18937 struct to a subclass of rtl_opt_pass along with...
18938 (pass_data_instantiate_virtual_regs): ...new pass_data instance and...
18939 (make_pass_instantiate_virtual_regs): ...new function.
18940 (pass_leaf_regs): Convert from a global struct to a subclass of
18941 rtl_opt_pass along with...
18942 (pass_data_leaf_regs): ...new pass_data instance and...
18943 (make_pass_leaf_regs): ...new function.
18944 (pass_thread_prologue_and_epilogue): Convert from a global struct to a
18945 subclass of rtl_opt_pass along with...
18946 (pass_data_thread_prologue_and_epilogue): ...new pass_data instance
18948 (make_pass_thread_prologue_and_epilogue): ...new function.
18949 (pass_match_asm_constraints): Convert from a global struct to a
18950 subclass of rtl_opt_pass along with...
18951 (pass_data_match_asm_constraints): ...new pass_data instance and...
18952 (make_pass_match_asm_constraints): ...new function.
18953 * fwprop.c (pass_rtl_fwprop): Convert from a global struct to a
18954 subclass of rtl_opt_pass along with...
18955 (pass_data_rtl_fwprop): ...new pass_data instance and...
18956 (make_pass_rtl_fwprop): ...new function.
18957 (pass_rtl_fwprop_addr): Convert from a global struct to a subclass of
18958 rtl_opt_pass along with...
18959 (pass_data_rtl_fwprop_addr): ...new pass_data instance and...
18960 (make_pass_rtl_fwprop_addr): ...new function.
18961 * gcse.c (pass_rtl_pre): Convert from a global struct to a subclass of
18962 rtl_opt_pass along with...
18963 (pass_data_rtl_pre): ...new pass_data instance and...
18964 (make_pass_rtl_pre): ...new function.
18965 (pass_rtl_hoist): Convert from a global struct to a subclass of
18966 rtl_opt_pass along with...
18967 (pass_data_rtl_hoist): ...new pass_data instance and...
18968 (make_pass_rtl_hoist): ...new function.
18969 * gimple-low.c (pass_lower_cf): Convert from a global struct to a
18970 subclass of gimple_opt_pass along with...
18971 (pass_data_lower_cf): ...new pass_data instance and...
18972 (make_pass_lower_cf): ...new function.
18973 * gimple-ssa-strength-reduction.c (pass_strength_reduction): Convert
18974 from a global struct to a subclass of gimple_opt_pass along with...
18975 (pass_data_strength_reduction): ...new pass_data instance and...
18976 (make_pass_strength_reduction): ...new function.
18977 * ifcvt.c (pass_rtl_ifcvt): Convert from a global struct to a subclass
18978 of rtl_opt_pass along with...
18979 (pass_data_rtl_ifcvt): ...new pass_data instance and...
18980 (make_pass_rtl_ifcvt): ...new function.
18981 (pass_if_after_combine): Convert from a global struct to a subclass of
18982 rtl_opt_pass along with...
18983 (pass_data_if_after_combine): ...new pass_data instance and...
18984 (make_pass_if_after_combine): ...new function.
18985 (pass_if_after_reload): Convert from a global struct to a subclass of
18986 rtl_opt_pass along with...
18987 (pass_data_if_after_reload): ...new pass_data instance and...
18988 (make_pass_if_after_reload): ...new function.
18989 * init-regs.c (pass_initialize_regs): Convert from a global struct to
18990 a subclass of rtl_opt_pass along with...
18991 (pass_data_initialize_regs): ...new pass_data instance and...
18992 (make_pass_initialize_regs): ...new function.
18993 * ipa-cp.c (pass_ipa_cp): Convert from a global struct to a subclass
18994 of ipa_opt_pass_d along with...
18995 (pass_data_ipa_cp): ...new pass_data instance and...
18996 (make_pass_ipa_cp): ...new function.
18997 * ipa-inline-analysis.c (pass_inline_parameters): Convert from a
18998 global struct to a subclass of gimple_opt_pass along with...
18999 (pass_data_inline_parameters): ...new pass_data instance and...
19000 (make_pass_inline_parameters): ...new function.
19001 * ipa-inline.c (pass_early_inline): Convert from a global struct to a
19002 subclass of gimple_opt_pass along with...
19003 (pass_data_early_inline): ...new pass_data instance and...
19004 (make_pass_early_inline): ...new function.
19005 (pass_ipa_inline): Convert from a global struct to a subclass of
19006 ipa_opt_pass_d along with...
19007 (pass_data_ipa_inline): ...new pass_data instance and...
19008 (make_pass_ipa_inline): ...new function.
19009 * ipa-pure-const.c (pass_local_pure_const): Convert from a global
19010 struct to a subclass of gimple_opt_pass along with...
19011 (pass_data_local_pure_const): ...new pass_data instance and...
19012 (make_pass_local_pure_const): ...new function.
19013 (pass_ipa_pure_const): Convert from a global struct to a subclass of
19014 ipa_opt_pass_d along with...
19015 (pass_data_ipa_pure_const): ...new pass_data instance and...
19016 (make_pass_ipa_pure_const): ...new function.
19017 * ipa-reference.c (pass_ipa_reference): Convert from a global struct
19018 to a subclass of ipa_opt_pass_d along with...
19019 (pass_data_ipa_reference): ...new pass_data instance and...
19020 (make_pass_ipa_reference): ...new function.
19021 * ipa-split.c (pass_split_functions): Convert from a global struct to
19022 a subclass of gimple_opt_pass along with...
19023 (pass_data_split_functions): ...new pass_data instance and...
19024 (make_pass_split_functions): ...new function.
19025 (pass_feedback_split_functions): Convert from a global struct to a
19026 subclass of gimple_opt_pass along with...
19027 (pass_data_feedback_split_functions): ...new pass_data instance and...
19028 (make_pass_feedback_split_functions): ...new function.
19029 * ipa.c (pass_ipa_function_and_variable_visibility): Convert from a
19030 global struct to a subclass of simple_ipa_opt_pass along with...
19031 (pass_data_ipa_function_and_variable_visibility): ...new pass_data
19033 (make_pass_ipa_function_and_variable_visibility): ...new function.
19034 (pass_ipa_free_inline_summary): Convert from a global struct to a
19035 subclass of simple_ipa_opt_pass along with...
19036 (pass_data_ipa_free_inline_summary): ...new pass_data instance and...
19037 (make_pass_ipa_free_inline_summary): ...new function.
19038 (pass_ipa_whole_program_visibility): Convert from a global struct to a
19039 subclass of ipa_opt_pass_d along with...
19040 (pass_data_ipa_whole_program_visibility): ...new pass_data instance
19042 (make_pass_ipa_whole_program_visibility): ...new function.
19043 (pass_ipa_profile): Convert from a global struct to a subclass of
19044 ipa_opt_pass_d along with...
19045 (pass_data_ipa_profile): ...new pass_data instance and...
19046 (make_pass_ipa_profile): ...new function.
19047 (pass_ipa_cdtor_merge): Convert from a global struct to a subclass of
19048 ipa_opt_pass_d along with...
19049 (pass_data_ipa_cdtor_merge): ...new pass_data instance and...
19050 (make_pass_ipa_cdtor_merge): ...new function.
19051 * ira.c (pass_ira): Convert from a global struct to a subclass of
19052 rtl_opt_pass along with...
19053 (pass_data_ira): ...new pass_data instance and...
19054 (make_pass_ira): ...new function.
19055 (pass_reload): Convert from a global struct to a subclass of
19056 rtl_opt_pass along with...
19057 (pass_data_reload): ...new pass_data instance and...
19058 (make_pass_reload): ...new function.
19059 * jump.c (pass_cleanup_barriers): Convert from a global struct to a
19060 subclass of rtl_opt_pass along with...
19061 (pass_data_cleanup_barriers): ...new pass_data instance and...
19062 (make_pass_cleanup_barriers): ...new function.
19063 * loop-init.c (pass_loop2): Convert from a global struct to a subclass
19064 of rtl_opt_pass along with...
19065 (pass_data_loop2): ...new pass_data instance and...
19066 (make_pass_loop2): ...new function.
19067 (pass_rtl_loop_init): Convert from a global struct to a subclass of
19068 rtl_opt_pass along with...
19069 (pass_data_rtl_loop_init): ...new pass_data instance and...
19070 (make_pass_rtl_loop_init): ...new function.
19071 (pass_rtl_loop_done): Convert from a global struct to a subclass of
19072 rtl_opt_pass along with...
19073 (pass_data_rtl_loop_done): ...new pass_data instance and...
19074 (make_pass_rtl_loop_done): ...new function.
19075 (pass_rtl_move_loop_invariants): Convert from a global struct to a
19076 subclass of rtl_opt_pass along with...
19077 (pass_data_rtl_move_loop_invariants): ...new pass_data instance and...
19078 (make_pass_rtl_move_loop_invariants): ...new function.
19079 (pass_rtl_unswitch): Convert from a global struct to a subclass of
19080 rtl_opt_pass along with...
19081 (pass_data_rtl_unswitch): ...new pass_data instance and...
19082 (make_pass_rtl_unswitch): ...new function.
19083 (pass_rtl_unroll_and_peel_loops): Convert from a global struct to a
19084 subclass of rtl_opt_pass along with...
19085 (pass_data_rtl_unroll_and_peel_loops): ...new pass_data instance
19087 (make_pass_rtl_unroll_and_peel_loops): ...new function.
19088 (pass_rtl_doloop): Convert from a global struct to a subclass of
19089 rtl_opt_pass along with...
19090 (pass_data_rtl_doloop): ...new pass_data instance and...
19091 (make_pass_rtl_doloop): ...new function.
19092 * lower-subreg.c (pass_lower_subreg): Convert from a global struct to
19093 a subclass of rtl_opt_pass along with...
19094 (pass_data_lower_subreg): ...new pass_data instance and...
19095 (make_pass_lower_subreg): ...new function.
19096 (pass_lower_subreg2): Convert from a global struct to a subclass of
19097 rtl_opt_pass along with...
19098 (pass_data_lower_subreg2): ...new pass_data instance and...
19099 (make_pass_lower_subreg2): ...new function.
19100 * lto-streamer-out.c (pass_ipa_lto_gimple_out): Convert from a global
19101 struct to a subclass of ipa_opt_pass_d along with...
19102 (pass_data_ipa_lto_gimple_out): ...new pass_data instance and...
19103 (make_pass_ipa_lto_gimple_out): ...new function.
19104 (pass_ipa_lto_finish_out): Convert from a global struct to a subclass
19105 of ipa_opt_pass_d along with...
19106 (pass_data_ipa_lto_finish_out): ...new pass_data instance and...
19107 (make_pass_ipa_lto_finish_out): ...new function.
19108 * mode-switching.c (pass_mode_switching): Convert from a global struct
19109 to a subclass of rtl_opt_pass along with...
19110 (pass_data_mode_switching): ...new pass_data instance and...
19111 (make_pass_mode_switching): ...new function.
19112 * modulo-sched.c (pass_sms): Convert from a global struct to a
19113 subclass of rtl_opt_pass along with...
19114 (pass_data_sms): ...new pass_data instance and...
19115 (make_pass_sms): ...new function.
19116 * omp-low.c (pass_expand_omp): Convert from a global struct to a
19117 subclass of gimple_opt_pass along with...
19118 (pass_data_expand_omp): ...new pass_data instance and...
19119 (make_pass_expand_omp): ...new function.
19120 (pass_lower_omp): Convert from a global struct to a subclass of
19121 gimple_opt_pass along with...
19122 (pass_data_lower_omp): ...new pass_data instance and...
19123 (make_pass_lower_omp): ...new function.
19124 (pass_diagnose_omp_blocks): Convert from a global struct to a subclass
19125 of gimple_opt_pass along with...
19126 (pass_data_diagnose_omp_blocks): ...new pass_data instance and...
19127 (make_pass_diagnose_omp_blocks): ...new function.
19128 * passes.c (pass_early_local_passes): Convert from a global struct to
19129 a subclass of simple_ipa_opt_pass along with...
19130 (pass_data_early_local_passes): ...new pass_data instance and...
19131 (make_pass_early_local_passes): ...new function.
19132 (pass_all_early_optimizations): Convert from a global struct to a
19133 subclass of gimple_opt_pass along with...
19134 (pass_data_all_early_optimizations): ...new pass_data instance and...
19135 (make_pass_all_early_optimizations): ...new function.
19136 (pass_all_optimizations): Convert from a global struct to a subclass
19137 of gimple_opt_pass along with...
19138 (pass_data_all_optimizations): ...new pass_data instance and...
19139 (make_pass_all_optimizations): ...new function.
19140 (pass_all_optimizations_g): Convert from a global struct to a subclass
19141 of gimple_opt_pass along with...
19142 (pass_data_all_optimizations_g): ...new pass_data instance and...
19143 (make_pass_all_optimizations_g): ...new function.
19144 (pass_rest_of_compilation): Convert from a global struct to a subclass
19145 of rtl_opt_pass along with...
19146 (pass_data_rest_of_compilation): ...new pass_data instance and...
19147 (make_pass_rest_of_compilation): ...new function.
19148 (pass_postreload): Convert from a global struct to a subclass of
19149 rtl_opt_pass along with...
19150 (pass_data_postreload): ...new pass_data instance and...
19151 (make_pass_postreload): ...new function.
19152 * postreload-gcse.c (pass_gcse2): Convert from a global struct to a
19153 subclass of rtl_opt_pass along with...
19154 (pass_data_gcse2): ...new pass_data instance and...
19155 (make_pass_gcse2): ...new function.
19156 * postreload.c (pass_postreload_cse): Convert from a global struct to
19157 a subclass of rtl_opt_pass along with...
19158 (pass_data_postreload_cse): ...new pass_data instance and...
19159 (make_pass_postreload_cse): ...new function.
19160 * predict.c (pass_profile): Convert from a global struct to a subclass
19161 of gimple_opt_pass along with...
19162 (pass_data_profile): ...new pass_data instance and...
19163 (make_pass_profile): ...new function.
19164 (pass_strip_predict_hints): Convert from a global struct to a subclass
19165 of gimple_opt_pass along with...
19166 (pass_data_strip_predict_hints): ...new pass_data instance and...
19167 (make_pass_strip_predict_hints): ...new function.
19168 * recog.c (pass_peephole2): Convert from a global struct to a subclass
19169 of rtl_opt_pass along with...
19170 (pass_data_peephole2): ...new pass_data instance and...
19171 (make_pass_peephole2): ...new function.
19172 (pass_split_all_insns): Convert from a global struct to a subclass of
19173 rtl_opt_pass along with...
19174 (pass_data_split_all_insns): ...new pass_data instance and...
19175 (make_pass_split_all_insns): ...new function.
19176 (pass_split_after_reload): Convert from a global struct to a subclass
19177 of rtl_opt_pass along with...
19178 (pass_data_split_after_reload): ...new pass_data instance and...
19179 (make_pass_split_after_reload): ...new function.
19180 (pass_split_before_regstack): Convert from a global struct to a
19181 subclass of rtl_opt_pass along with...
19182 (pass_data_split_before_regstack): ...new pass_data instance and...
19183 (make_pass_split_before_regstack): ...new function.
19184 (pass_split_before_sched2): Convert from a global struct to a subclass
19185 of rtl_opt_pass along with...
19186 (pass_data_split_before_sched2): ...new pass_data instance and...
19187 (make_pass_split_before_sched2): ...new function.
19188 (pass_split_for_shorten_branches): Convert from a global struct to a
19189 subclass of rtl_opt_pass along with...
19190 (pass_data_split_for_shorten_branches): ...new pass_data instance
19192 (make_pass_split_for_shorten_branches): ...new function.
19193 * ree.c (pass_ree): Convert from a global struct to a subclass of
19194 rtl_opt_pass along with...
19195 (pass_data_ree): ...new pass_data instance and...
19196 (make_pass_ree): ...new function.
19197 * reg-stack.c (pass_stack_regs): Convert from a global struct to a
19198 subclass of rtl_opt_pass along with...
19199 (pass_data_stack_regs): ...new pass_data instance and...
19200 (make_pass_stack_regs): ...new function.
19201 (pass_stack_regs_run): Convert from a global struct to a subclass of
19202 rtl_opt_pass along with...
19203 (pass_data_stack_regs_run): ...new pass_data instance and...
19204 (make_pass_stack_regs_run): ...new function.
19205 * regcprop.c (pass_cprop_hardreg): Convert from a global struct to a
19206 subclass of rtl_opt_pass along with...
19207 (pass_data_cprop_hardreg): ...new pass_data instance and...
19208 (make_pass_cprop_hardreg): ...new function.
19209 * reginfo.c (pass_reginfo_init): Convert from a global struct to a
19210 subclass of rtl_opt_pass along with...
19211 (pass_data_reginfo_init): ...new pass_data instance and...
19212 (make_pass_reginfo_init): ...new function.
19213 * regmove.c (pass_regmove): Convert from a global struct to a subclass
19214 of rtl_opt_pass along with...
19215 (pass_data_regmove): ...new pass_data instance and...
19216 (make_pass_regmove): ...new function.
19217 * regrename.c (pass_regrename): Convert from a global struct to a
19218 subclass of rtl_opt_pass along with...
19219 (pass_data_regrename): ...new pass_data instance and...
19220 (make_pass_regrename): ...new function.
19221 * reorg.c (pass_delay_slots): Convert from a global struct to a
19222 subclass of rtl_opt_pass along with...
19223 (pass_data_delay_slots): ...new pass_data instance and...
19224 (make_pass_delay_slots): ...new function.
19225 (pass_machine_reorg): Convert from a global struct to a subclass of
19226 rtl_opt_pass along with...
19227 (pass_data_machine_reorg): ...new pass_data instance and...
19228 (make_pass_machine_reorg): ...new function.
19229 * sched-rgn.c (pass_sched): Convert from a global struct to a subclass
19230 of rtl_opt_pass along with...
19231 (pass_data_sched): ...new pass_data instance and...
19232 (make_pass_sched): ...new function.
19233 (pass_sched2): Convert from a global struct to a subclass of
19234 rtl_opt_pass along with...
19235 (pass_data_sched2): ...new pass_data instance and...
19236 (make_pass_sched2): ...new function.
19237 * stack-ptr-mod.c (pass_stack_ptr_mod): Convert from a global struct
19238 to a subclass of rtl_opt_pass along with...
19239 (pass_data_stack_ptr_mod): ...new pass_data instance and...
19240 (make_pass_stack_ptr_mod): ...new function.
19241 * store-motion.c (pass_rtl_store_motion): Convert from a global struct
19242 to a subclass of rtl_opt_pass along with...
19243 (pass_data_rtl_store_motion): ...new pass_data instance and...
19244 (make_pass_rtl_store_motion): ...new function.
19245 * tracer.c (pass_tracer): Convert from a global struct to a subclass
19246 of gimple_opt_pass along with...
19247 (pass_data_tracer): ...new pass_data instance and...
19248 (make_pass_tracer): ...new function.
19249 * trans-mem.c (pass_diagnose_tm_blocks): Convert from a global struct
19250 to a subclass of gimple_opt_pass along with...
19251 (pass_data_diagnose_tm_blocks): ...new pass_data instance and...
19252 (make_pass_diagnose_tm_blocks): ...new function.
19253 (pass_lower_tm): Convert from a global struct to a subclass of
19254 gimple_opt_pass along with...
19255 (pass_data_lower_tm): ...new pass_data instance and...
19256 (make_pass_lower_tm): ...new function.
19257 (pass_tm_init): Convert from a global struct to a subclass of
19258 gimple_opt_pass along with...
19259 (pass_data_tm_init): ...new pass_data instance and...
19260 (make_pass_tm_init): ...new function.
19261 (pass_tm_mark): Convert from a global struct to a subclass of
19262 gimple_opt_pass along with...
19263 (pass_data_tm_mark): ...new pass_data instance and...
19264 (make_pass_tm_mark): ...new function.
19265 (pass_tm_edges): Convert from a global struct to a subclass of
19266 gimple_opt_pass along with...
19267 (pass_data_tm_edges): ...new pass_data instance and...
19268 (make_pass_tm_edges): ...new function.
19269 (pass_tm_memopt): Convert from a global struct to a subclass of
19270 gimple_opt_pass along with...
19271 (pass_data_tm_memopt): ...new pass_data instance and...
19272 (make_pass_tm_memopt): ...new function.
19273 (pass_ipa_tm): Convert from a global struct to a subclass of
19274 simple_ipa_opt_pass along with...
19275 (pass_data_ipa_tm): ...new pass_data instance and...
19276 (make_pass_ipa_tm): ...new function.
19277 * tree-call-cdce.c (pass_call_cdce): Convert from a global struct to a
19278 subclass of gimple_opt_pass along with...
19279 (pass_data_call_cdce): ...new pass_data instance and...
19280 (make_pass_call_cdce): ...new function.
19281 * tree-cfg.c (pass_build_cfg): Convert from a global struct to a
19282 subclass of gimple_opt_pass along with...
19283 (pass_data_build_cfg): ...new pass_data instance and...
19284 (make_pass_build_cfg): ...new function.
19285 (pass_split_crit_edges): Convert from a global struct to a subclass of
19286 gimple_opt_pass along with...
19287 (pass_data_split_crit_edges): ...new pass_data instance and...
19288 (make_pass_split_crit_edges): ...new function.
19289 (pass_warn_function_return): Convert from a global struct to a
19290 subclass of gimple_opt_pass along with...
19291 (pass_data_warn_function_return): ...new pass_data instance and...
19292 (make_pass_warn_function_return): ...new function.
19293 (pass_warn_function_noreturn): Convert from a global struct to a
19294 subclass of gimple_opt_pass along with...
19295 (pass_data_warn_function_noreturn): ...new pass_data instance and...
19296 (make_pass_warn_function_noreturn): ...new function.
19297 (pass_warn_unused_result): Convert from a global struct to a subclass
19298 of gimple_opt_pass along with...
19299 (pass_data_warn_unused_result): ...new pass_data instance and...
19300 (make_pass_warn_unused_result): ...new function.
19301 * tree-cfgcleanup.c (pass_merge_phi): Convert from a global struct to
19302 a subclass of gimple_opt_pass along with...
19303 (pass_data_merge_phi): ...new pass_data instance and...
19304 (make_pass_merge_phi): ...new function.
19305 * tree-complex.c (pass_lower_complex): Convert from a global struct to
19306 a subclass of gimple_opt_pass along with...
19307 (pass_data_lower_complex): ...new pass_data instance and...
19308 (make_pass_lower_complex): ...new function.
19309 (pass_lower_complex_O0): Convert from a global struct to a subclass of
19310 gimple_opt_pass along with...
19311 (pass_data_lower_complex_O0): ...new pass_data instance and...
19312 (make_pass_lower_complex_O0): ...new function.
19313 * tree-eh.c (pass_lower_eh): Convert from a global struct to a
19314 subclass of gimple_opt_pass along with...
19315 (pass_data_lower_eh): ...new pass_data instance and...
19316 (make_pass_lower_eh): ...new function.
19317 (pass_refactor_eh): Convert from a global struct to a subclass of
19318 gimple_opt_pass along with...
19319 (pass_data_refactor_eh): ...new pass_data instance and...
19320 (make_pass_refactor_eh): ...new function.
19321 (pass_lower_resx): Convert from a global struct to a subclass of
19322 gimple_opt_pass along with...
19323 (pass_data_lower_resx): ...new pass_data instance and...
19324 (make_pass_lower_resx): ...new function.
19325 (pass_lower_eh_dispatch): Convert from a global struct to a subclass
19326 of gimple_opt_pass along with...
19327 (pass_data_lower_eh_dispatch): ...new pass_data instance and...
19328 (make_pass_lower_eh_dispatch): ...new function.
19329 (pass_cleanup_eh): Convert from a global struct to a subclass of
19330 gimple_opt_pass along with...
19331 (pass_data_cleanup_eh): ...new pass_data instance and...
19332 (make_pass_cleanup_eh): ...new function.
19333 * tree-emutls.c (pass_ipa_lower_emutls): Convert from a global struct
19334 to a subclass of simple_ipa_opt_pass along with...
19335 (pass_data_ipa_lower_emutls): ...new pass_data instance and...
19336 (make_pass_ipa_lower_emutls): ...new function.
19337 * tree-if-conv.c (pass_if_conversion): Convert from a global struct to
19338 a subclass of gimple_opt_pass along with...
19339 (pass_data_if_conversion): ...new pass_data instance and...
19340 (make_pass_if_conversion): ...new function.
19341 * tree-into-ssa.c (pass_build_ssa): Convert from a global struct to a
19342 subclass of gimple_opt_pass along with...
19343 (pass_data_build_ssa): ...new pass_data instance and...
19344 (make_pass_build_ssa): ...new function.
19345 * tree-loop-distribution.c (pass_loop_distribution): Convert from a
19346 global struct to a subclass of gimple_opt_pass along with...
19347 (pass_data_loop_distribution): ...new pass_data instance and...
19348 (make_pass_loop_distribution): ...new function.
19349 * tree-mudflap.c (pass_mudflap_1): Convert from a global struct to a
19350 subclass of gimple_opt_pass along with...
19351 (pass_data_mudflap_1): ...new pass_data instance and...
19352 (make_pass_mudflap_1): ...new function.
19353 (pass_mudflap_2): Convert from a global struct to a subclass of
19354 gimple_opt_pass along with...
19355 (pass_data_mudflap_2): ...new pass_data instance and...
19356 (make_pass_mudflap_2): ...new function.
19357 * tree-nomudflap.c (pass_mudflap_1): Convert from a global struct to a
19358 subclass of gimple_opt_pass along with...
19359 (pass_data_mudflap_1): ...new pass_data instance and...
19360 (make_pass_mudflap_1): ...new function.
19361 (pass_mudflap_2): Convert from a global struct to a subclass of
19362 gimple_opt_pass along with...
19363 (pass_data_mudflap_2): ...new pass_data instance and...
19364 (make_pass_mudflap_2): ...new function.
19365 * tree-nrv.c (pass_nrv): Convert from a global struct to a subclass of
19366 gimple_opt_pass along with...
19367 (pass_data_nrv): ...new pass_data instance and...
19368 (make_pass_nrv): ...new function.
19369 (pass_return_slot): Convert from a global struct to a subclass of
19370 gimple_opt_pass along with...
19371 (pass_data_return_slot): ...new pass_data instance and...
19372 (make_pass_return_slot): ...new function.
19373 * tree-object-size.c (pass_object_sizes): Convert from a global struct
19374 to a subclass of gimple_opt_pass along with...
19375 (pass_data_object_sizes): ...new pass_data instance and...
19376 (make_pass_object_sizes): ...new function.
19377 * tree-optimize.c (pass_cleanup_cfg_post_optimizing): Convert from a
19378 global struct to a subclass of gimple_opt_pass along with...
19379 (pass_data_cleanup_cfg_post_optimizing): ...new pass_data instance
19381 (make_pass_cleanup_cfg_post_optimizing): ...new function.
19382 (pass_fixup_cfg): Convert from a global struct to a subclass of
19383 gimple_opt_pass along with...
19384 (pass_data_fixup_cfg): ...new pass_data instance and...
19385 (make_pass_fixup_cfg): ...new function.
19386 * tree-pass.h (pass_mudflap_1): Replace declaration with that of...
19387 (make_pass_mudflap_1): ...new function.
19388 (pass_mudflap_2): Replace declaration with that of...
19389 (make_pass_mudflap_2): ...new function.
19390 (pass_asan): Replace declaration with that of...
19391 (make_pass_asan): ...new function.
19392 (pass_asan_O0): Replace declaration with that of...
19393 (make_pass_asan_O0): ...new function.
19394 (pass_tsan): Replace declaration with that of...
19395 (make_pass_tsan): ...new function.
19396 (pass_tsan_O0): Replace declaration with that of...
19397 (make_pass_tsan_O0): ...new function.
19398 (pass_lower_cf): Replace declaration with that of...
19399 (make_pass_lower_cf): ...new function.
19400 (pass_refactor_eh): Replace declaration with that of...
19401 (make_pass_refactor_eh): ...new function.
19402 (pass_lower_eh): Replace declaration with that of...
19403 (make_pass_lower_eh): ...new function.
19404 (pass_lower_eh_dispatch): Replace declaration with that of...
19405 (make_pass_lower_eh_dispatch): ...new function.
19406 (pass_lower_resx): Replace declaration with that of...
19407 (make_pass_lower_resx): ...new function.
19408 (pass_build_cfg): Replace declaration with that of...
19409 (make_pass_build_cfg): ...new function.
19410 (pass_early_tree_profile): Replace declaration with that of...
19411 (make_pass_early_tree_profile): ...new function.
19412 (pass_cleanup_eh): Replace declaration with that of...
19413 (make_pass_cleanup_eh): ...new function.
19414 (pass_sra): Replace declaration with that of...
19415 (make_pass_sra): ...new function.
19416 (pass_sra_early): Replace declaration with that of...
19417 (make_pass_sra_early): ...new function.
19418 (pass_early_ipa_sra): Replace declaration with that of...
19419 (make_pass_early_ipa_sra): ...new function.
19420 (pass_tail_recursion): Replace declaration with that of...
19421 (make_pass_tail_recursion): ...new function.
19422 (pass_tail_calls): Replace declaration with that of...
19423 (make_pass_tail_calls): ...new function.
19424 (pass_tree_loop): Replace declaration with that of...
19425 (make_pass_tree_loop): ...new function.
19426 (pass_tree_loop_init): Replace declaration with that of...
19427 (make_pass_tree_loop_init): ...new function.
19428 (pass_lim): Replace declaration with that of...
19429 (make_pass_lim): ...new function.
19430 (pass_tree_unswitch): Replace declaration with that of...
19431 (make_pass_tree_unswitch): ...new function.
19432 (pass_predcom): Replace declaration with that of...
19433 (make_pass_predcom): ...new function.
19434 (pass_iv_canon): Replace declaration with that of...
19435 (make_pass_iv_canon): ...new function.
19436 (pass_scev_cprop): Replace declaration with that of...
19437 (make_pass_scev_cprop): ...new function.
19438 (pass_empty_loop): Replace declaration with that of...
19439 (make_pass_empty_loop): ...new function.
19440 (pass_record_bounds): Replace declaration with that of...
19441 (make_pass_record_bounds): ...new function.
19442 (pass_graphite): Replace declaration with that of...
19443 (make_pass_graphite): ...new function.
19444 (pass_graphite_transforms): Replace declaration with that of...
19445 (make_pass_graphite_transforms): ...new function.
19446 (pass_if_conversion): Replace declaration with that of...
19447 (make_pass_if_conversion): ...new function.
19448 (pass_loop_distribution): Replace declaration with that of...
19449 (make_pass_loop_distribution): ...new function.
19450 (pass_vectorize): Replace declaration with that of...
19451 (make_pass_vectorize): ...new function.
19452 (pass_slp_vectorize): Replace declaration with that of...
19453 (make_pass_slp_vectorize): ...new function.
19454 (pass_complete_unroll): Replace declaration with that of...
19455 (make_pass_complete_unroll): ...new function.
19456 (pass_complete_unrolli): Replace declaration with that of...
19457 (make_pass_complete_unrolli): ...new function.
19458 (pass_parallelize_loops): Replace declaration with that of...
19459 (make_pass_parallelize_loops): ...new function.
19460 (pass_loop_prefetch): Replace declaration with that of...
19461 (make_pass_loop_prefetch): ...new function.
19462 (pass_iv_optimize): Replace declaration with that of...
19463 (make_pass_iv_optimize): ...new function.
19464 (pass_tree_loop_done): Replace declaration with that of...
19465 (make_pass_tree_loop_done): ...new function.
19466 (pass_ch): Replace declaration with that of...
19467 (make_pass_ch): ...new function.
19468 (pass_ccp): Replace declaration with that of...
19469 (make_pass_ccp): ...new function.
19470 (pass_phi_only_cprop): Replace declaration with that of...
19471 (make_pass_phi_only_cprop): ...new function.
19472 (pass_build_ssa): Replace declaration with that of...
19473 (make_pass_build_ssa): ...new function.
19474 (pass_build_alias): Replace declaration with that of...
19475 (make_pass_build_alias): ...new function.
19476 (pass_build_ealias): Replace declaration with that of...
19477 (make_pass_build_ealias): ...new function.
19478 (pass_dominator): Replace declaration with that of...
19479 (make_pass_dominator): ...new function.
19480 (pass_dce): Replace declaration with that of...
19481 (make_pass_dce): ...new function.
19482 (pass_dce_loop): Replace declaration with that of...
19483 (make_pass_dce_loop): ...new function.
19484 (pass_cd_dce): Replace declaration with that of...
19485 (make_pass_cd_dce): ...new function.
19486 (pass_call_cdce): Replace declaration with that of...
19487 (make_pass_call_cdce): ...new function.
19488 (pass_merge_phi): Replace declaration with that of...
19489 (make_pass_merge_phi): ...new function.
19490 (pass_split_crit_edges): Replace declaration with that of...
19491 (make_pass_split_crit_edges): ...new function.
19492 (pass_pre): Replace declaration with that of...
19493 (make_pass_pre): ...new function.
19494 (pass_profile): Replace declaration with that of...
19495 (make_pass_profile): ...new function.
19496 (pass_strip_predict_hints): Replace declaration with that of...
19497 (make_pass_strip_predict_hints): ...new function.
19498 (pass_lower_complex_O0): Replace declaration with that of...
19499 (make_pass_lower_complex_O0): ...new function.
19500 (pass_lower_complex): Replace declaration with that of...
19501 (make_pass_lower_complex): ...new function.
19502 (pass_lower_vector): Replace declaration with that of...
19503 (make_pass_lower_vector): ...new function.
19504 (pass_lower_vector_ssa): Replace declaration with that of...
19505 (make_pass_lower_vector_ssa): ...new function.
19506 (pass_lower_omp): Replace declaration with that of...
19507 (make_pass_lower_omp): ...new function.
19508 (pass_diagnose_omp_blocks): Replace declaration with that of...
19509 (make_pass_diagnose_omp_blocks): ...new function.
19510 (pass_expand_omp): Replace declaration with that of...
19511 (make_pass_expand_omp): ...new function.
19512 (pass_expand_omp_ssa): Replace declaration with that of...
19513 (make_pass_expand_omp_ssa): ...new function.
19514 (pass_object_sizes): Replace declaration with that of...
19515 (make_pass_object_sizes): ...new function.
19516 (pass_strlen): Replace declaration with that of...
19517 (make_pass_strlen): ...new function.
19518 (pass_fold_builtins): Replace declaration with that of...
19519 (make_pass_fold_builtins): ...new function.
19520 (pass_stdarg): Replace declaration with that of...
19521 (make_pass_stdarg): ...new function.
19522 (pass_early_warn_uninitialized): Replace declaration with that of...
19523 (make_pass_early_warn_uninitialized): ...new function.
19524 (pass_late_warn_uninitialized): Replace declaration with that of...
19525 (make_pass_late_warn_uninitialized): ...new function.
19526 (pass_cse_reciprocals): Replace declaration with that of...
19527 (make_pass_cse_reciprocals): ...new function.
19528 (pass_cse_sincos): Replace declaration with that of...
19529 (make_pass_cse_sincos): ...new function.
19530 (pass_optimize_bswap): Replace declaration with that of...
19531 (make_pass_optimize_bswap): ...new function.
19532 (pass_optimize_widening_mul): Replace declaration with that of...
19533 (make_pass_optimize_widening_mul): ...new function.
19534 (pass_warn_function_return): Replace declaration with that of...
19535 (make_pass_warn_function_return): ...new function.
19536 (pass_warn_function_noreturn): Replace declaration with that of...
19537 (make_pass_warn_function_noreturn): ...new function.
19538 (pass_cselim): Replace declaration with that of...
19539 (make_pass_cselim): ...new function.
19540 (pass_phiopt): Replace declaration with that of...
19541 (make_pass_phiopt): ...new function.
19542 (pass_forwprop): Replace declaration with that of...
19543 (make_pass_forwprop): ...new function.
19544 (pass_phiprop): Replace declaration with that of...
19545 (make_pass_phiprop): ...new function.
19546 (pass_tree_ifcombine): Replace declaration with that of...
19547 (make_pass_tree_ifcombine): ...new function.
19548 (pass_dse): Replace declaration with that of...
19549 (make_pass_dse): ...new function.
19550 (pass_nrv): Replace declaration with that of...
19551 (make_pass_nrv): ...new function.
19552 (pass_rename_ssa_copies): Replace declaration with that of...
19553 (make_pass_rename_ssa_copies): ...new function.
19554 (pass_sink_code): Replace declaration with that of...
19555 (make_pass_sink_code): ...new function.
19556 (pass_fre): Replace declaration with that of...
19557 (make_pass_fre): ...new function.
19558 (pass_check_data_deps): Replace declaration with that of...
19559 (make_pass_check_data_deps): ...new function.
19560 (pass_copy_prop): Replace declaration with that of...
19561 (make_pass_copy_prop): ...new function.
19562 (pass_vrp): Replace declaration with that of...
19563 (make_pass_vrp): ...new function.
19564 (pass_uncprop): Replace declaration with that of...
19565 (make_pass_uncprop): ...new function.
19566 (pass_return_slot): Replace declaration with that of...
19567 (make_pass_return_slot): ...new function.
19568 (pass_reassoc): Replace declaration with that of...
19569 (make_pass_reassoc): ...new function.
19570 (pass_rebuild_cgraph_edges): Replace declaration with that of...
19571 (make_pass_rebuild_cgraph_edges): ...new function.
19572 (pass_remove_cgraph_callee_edges): Replace declaration with that of...
19573 (make_pass_remove_cgraph_callee_edges): ...new function.
19574 (pass_build_cgraph_edges): Replace declaration with that of...
19575 (make_pass_build_cgraph_edges): ...new function.
19576 (pass_local_pure_const): Replace declaration with that of...
19577 (make_pass_local_pure_const): ...new function.
19578 (pass_tracer): Replace declaration with that of...
19579 (make_pass_tracer): ...new function.
19580 (pass_warn_unused_result): Replace declaration with that of...
19581 (make_pass_warn_unused_result): ...new function.
19582 (pass_diagnose_tm_blocks): Replace declaration with that of...
19583 (make_pass_diagnose_tm_blocks): ...new function.
19584 (pass_lower_tm): Replace declaration with that of...
19585 (make_pass_lower_tm): ...new function.
19586 (pass_tm_init): Replace declaration with that of...
19587 (make_pass_tm_init): ...new function.
19588 (pass_tm_mark): Replace declaration with that of...
19589 (make_pass_tm_mark): ...new function.
19590 (pass_tm_memopt): Replace declaration with that of...
19591 (make_pass_tm_memopt): ...new function.
19592 (pass_tm_edges): Replace declaration with that of...
19593 (make_pass_tm_edges): ...new function.
19594 (pass_split_functions): Replace declaration with that of...
19595 (make_pass_split_functions): ...new function.
19596 (pass_feedback_split_functions): Replace declaration with that of...
19597 (make_pass_feedback_split_functions): ...new function.
19598 (pass_strength_reduction): Replace declaration with that of...
19599 (make_pass_strength_reduction): ...new function.
19600 (pass_ipa_lower_emutls): Replace declaration with that of...
19601 (make_pass_ipa_lower_emutls): ...new function.
19602 (pass_ipa_function_and_variable_visibility): Replace declaration with
19604 (make_pass_ipa_function_and_variable_visibility): ...new function.
19605 (pass_ipa_tree_profile): Replace declaration with that of...
19606 (make_pass_ipa_tree_profile): ...new function.
19607 (pass_early_local_passes): Replace declaration with that of...
19608 (make_pass_early_local_passes): ...new function.
19609 (pass_ipa_whole_program_visibility): Replace declaration with that
19611 (make_pass_ipa_whole_program_visibility): ...new function.
19612 (pass_ipa_lto_gimple_out): Replace declaration with that of...
19613 (make_pass_ipa_lto_gimple_out): ...new function.
19614 (pass_ipa_increase_alignment): Replace declaration with that of...
19615 (make_pass_ipa_increase_alignment): ...new function.
19616 (pass_ipa_inline): Replace declaration with that of...
19617 (make_pass_ipa_inline): ...new function.
19618 (pass_ipa_free_lang_data): Replace declaration with that of...
19619 (make_pass_ipa_free_lang_data): ...new function.
19620 (pass_ipa_free_inline_summary): Replace declaration with that of...
19621 (make_pass_ipa_free_inline_summary): ...new function.
19622 (pass_ipa_cp): Replace declaration with that of...
19623 (make_pass_ipa_cp): ...new function.
19624 (pass_ipa_reference): Replace declaration with that of...
19625 (make_pass_ipa_reference): ...new function.
19626 (pass_ipa_pure_const): Replace declaration with that of...
19627 (make_pass_ipa_pure_const): ...new function.
19628 (pass_ipa_pta): Replace declaration with that of...
19629 (make_pass_ipa_pta): ...new function.
19630 (pass_ipa_lto_finish_out): Replace declaration with that of...
19631 (make_pass_ipa_lto_finish_out): ...new function.
19632 (pass_ipa_tm): Replace declaration with that of...
19633 (make_pass_ipa_tm): ...new function.
19634 (pass_ipa_profile): Replace declaration with that of...
19635 (make_pass_ipa_profile): ...new function.
19636 (pass_ipa_cdtor_merge): Replace declaration with that of...
19637 (make_pass_ipa_cdtor_merge): ...new function.
19638 (pass_cleanup_cfg_post_optimizing): Replace declaration with that
19640 (make_pass_cleanup_cfg_post_optimizing): ...new function.
19641 (pass_init_datastructures): Replace declaration with that of...
19642 (make_pass_init_datastructures): ...new function.
19643 (pass_fixup_cfg): Replace declaration with that of...
19644 (make_pass_fixup_cfg): ...new function.
19645 (pass_expand): Replace declaration with that of...
19646 (make_pass_expand): ...new function.
19647 (pass_instantiate_virtual_regs): Replace declaration with that of...
19648 (make_pass_instantiate_virtual_regs): ...new function.
19649 (pass_rtl_fwprop): Replace declaration with that of...
19650 (make_pass_rtl_fwprop): ...new function.
19651 (pass_rtl_fwprop_addr): Replace declaration with that of...
19652 (make_pass_rtl_fwprop_addr): ...new function.
19653 (pass_jump): Replace declaration with that of...
19654 (make_pass_jump): ...new function.
19655 (pass_jump2): Replace declaration with that of...
19656 (make_pass_jump2): ...new function.
19657 (pass_lower_subreg): Replace declaration with that of...
19658 (make_pass_lower_subreg): ...new function.
19659 (pass_cse): Replace declaration with that of...
19660 (make_pass_cse): ...new function.
19661 (pass_fast_rtl_dce): Replace declaration with that of...
19662 (make_pass_fast_rtl_dce): ...new function.
19663 (pass_ud_rtl_dce): Replace declaration with that of...
19664 (make_pass_ud_rtl_dce): ...new function.
19665 (pass_rtl_dce): Replace declaration with that of...
19666 (make_pass_rtl_dce): ...new function.
19667 (pass_rtl_dse1): Replace declaration with that of...
19668 (make_pass_rtl_dse1): ...new function.
19669 (pass_rtl_dse2): Replace declaration with that of...
19670 (make_pass_rtl_dse2): ...new function.
19671 (pass_rtl_dse3): Replace declaration with that of...
19672 (make_pass_rtl_dse3): ...new function.
19673 (pass_rtl_cprop): Replace declaration with that of...
19674 (make_pass_rtl_cprop): ...new function.
19675 (pass_rtl_pre): Replace declaration with that of...
19676 (make_pass_rtl_pre): ...new function.
19677 (pass_rtl_hoist): Replace declaration with that of...
19678 (make_pass_rtl_hoist): ...new function.
19679 (pass_rtl_store_motion): Replace declaration with that of...
19680 (make_pass_rtl_store_motion): ...new function.
19681 (pass_cse_after_global_opts): Replace declaration with that of...
19682 (make_pass_cse_after_global_opts): ...new function.
19683 (pass_rtl_ifcvt): Replace declaration with that of...
19684 (make_pass_rtl_ifcvt): ...new function.
19685 (pass_into_cfg_layout_mode): Replace declaration with that of...
19686 (make_pass_into_cfg_layout_mode): ...new function.
19687 (pass_outof_cfg_layout_mode): Replace declaration with that of...
19688 (make_pass_outof_cfg_layout_mode): ...new function.
19689 (pass_loop2): Replace declaration with that of...
19690 (make_pass_loop2): ...new function.
19691 (pass_rtl_loop_init): Replace declaration with that of...
19692 (make_pass_rtl_loop_init): ...new function.
19693 (pass_rtl_move_loop_invariants): Replace declaration with that of...
19694 (make_pass_rtl_move_loop_invariants): ...new function.
19695 (pass_rtl_unswitch): Replace declaration with that of...
19696 (make_pass_rtl_unswitch): ...new function.
19697 (pass_rtl_unroll_and_peel_loops): Replace declaration with that of...
19698 (make_pass_rtl_unroll_and_peel_loops): ...new function.
19699 (pass_rtl_doloop): Replace declaration with that of...
19700 (make_pass_rtl_doloop): ...new function.
19701 (pass_rtl_loop_done): Replace declaration with that of...
19702 (make_pass_rtl_loop_done): ...new function.
19703 (pass_web): Replace declaration with that of...
19704 (make_pass_web): ...new function.
19705 (pass_cse2): Replace declaration with that of...
19706 (make_pass_cse2): ...new function.
19707 (pass_df_initialize_opt): Replace declaration with that of...
19708 (make_pass_df_initialize_opt): ...new function.
19709 (pass_df_initialize_no_opt): Replace declaration with that of...
19710 (make_pass_df_initialize_no_opt): ...new function.
19711 (pass_reginfo_init): Replace declaration with that of...
19712 (make_pass_reginfo_init): ...new function.
19713 (pass_inc_dec): Replace declaration with that of...
19714 (make_pass_inc_dec): ...new function.
19715 (pass_stack_ptr_mod): Replace declaration with that of...
19716 (make_pass_stack_ptr_mod): ...new function.
19717 (pass_initialize_regs): Replace declaration with that of...
19718 (make_pass_initialize_regs): ...new function.
19719 (pass_combine): Replace declaration with that of...
19720 (make_pass_combine): ...new function.
19721 (pass_if_after_combine): Replace declaration with that of...
19722 (make_pass_if_after_combine): ...new function.
19723 (pass_ree): Replace declaration with that of...
19724 (make_pass_ree): ...new function.
19725 (pass_partition_blocks): Replace declaration with that of...
19726 (make_pass_partition_blocks): ...new function.
19727 (pass_match_asm_constraints): Replace declaration with that of...
19728 (make_pass_match_asm_constraints): ...new function.
19729 (pass_regmove): Replace declaration with that of...
19730 (make_pass_regmove): ...new function.
19731 (pass_split_all_insns): Replace declaration with that of...
19732 (make_pass_split_all_insns): ...new function.
19733 (pass_fast_rtl_byte_dce): Replace declaration with that of...
19734 (make_pass_fast_rtl_byte_dce): ...new function.
19735 (pass_lower_subreg2): Replace declaration with that of...
19736 (make_pass_lower_subreg2): ...new function.
19737 (pass_mode_switching): Replace declaration with that of...
19738 (make_pass_mode_switching): ...new function.
19739 (pass_sms): Replace declaration with that of...
19740 (make_pass_sms): ...new function.
19741 (pass_sched): Replace declaration with that of...
19742 (make_pass_sched): ...new function.
19743 (pass_ira): Replace declaration with that of...
19744 (make_pass_ira): ...new function.
19745 (pass_reload): Replace declaration with that of...
19746 (make_pass_reload): ...new function.
19747 (pass_clean_state): Replace declaration with that of...
19748 (make_pass_clean_state): ...new function.
19749 (pass_branch_prob): Replace declaration with that of...
19750 (make_pass_branch_prob): ...new function.
19751 (pass_value_profile_transformations): Replace declaration with that
19753 (make_pass_value_profile_transformations): ...new function.
19754 (pass_postreload_cse): Replace declaration with that of...
19755 (make_pass_postreload_cse): ...new function.
19756 (pass_gcse2): Replace declaration with that of...
19757 (make_pass_gcse2): ...new function.
19758 (pass_split_after_reload): Replace declaration with that of...
19759 (make_pass_split_after_reload): ...new function.
19760 (pass_branch_target_load_optimize1): Replace declaration with that
19762 (make_pass_branch_target_load_optimize1): ...new function.
19763 (pass_thread_prologue_and_epilogue): Replace declaration with that
19765 (make_pass_thread_prologue_and_epilogue): ...new function.
19766 (pass_stack_adjustments): Replace declaration with that of...
19767 (make_pass_stack_adjustments): ...new function.
19768 (pass_peephole2): Replace declaration with that of...
19769 (make_pass_peephole2): ...new function.
19770 (pass_if_after_reload): Replace declaration with that of...
19771 (make_pass_if_after_reload): ...new function.
19772 (pass_regrename): Replace declaration with that of...
19773 (make_pass_regrename): ...new function.
19774 (pass_cprop_hardreg): Replace declaration with that of...
19775 (make_pass_cprop_hardreg): ...new function.
19776 (pass_reorder_blocks): Replace declaration with that of...
19777 (make_pass_reorder_blocks): ...new function.
19778 (pass_branch_target_load_optimize2): Replace declaration with that
19780 (make_pass_branch_target_load_optimize2): ...new function.
19781 (pass_leaf_regs): Replace declaration with that of...
19782 (make_pass_leaf_regs): ...new function.
19783 (pass_split_before_sched2): Replace declaration with that of...
19784 (make_pass_split_before_sched2): ...new function.
19785 (pass_compare_elim_after_reload): Replace declaration with that of...
19786 (make_pass_compare_elim_after_reload): ...new function.
19787 (pass_sched2): Replace declaration with that of...
19788 (make_pass_sched2): ...new function.
19789 (pass_stack_regs): Replace declaration with that of...
19790 (make_pass_stack_regs): ...new function.
19791 (pass_stack_regs_run): Replace declaration with that of...
19792 (make_pass_stack_regs_run): ...new function.
19793 (pass_df_finish): Replace declaration with that of...
19794 (make_pass_df_finish): ...new function.
19795 (pass_compute_alignments): Replace declaration with that of...
19796 (make_pass_compute_alignments): ...new function.
19797 (pass_duplicate_computed_gotos): Replace declaration with that of...
19798 (make_pass_duplicate_computed_gotos): ...new function.
19799 (pass_variable_tracking): Replace declaration with that of...
19800 (make_pass_variable_tracking): ...new function.
19801 (pass_free_cfg): Replace declaration with that of...
19802 (make_pass_free_cfg): ...new function.
19803 (pass_machine_reorg): Replace declaration with that of...
19804 (make_pass_machine_reorg): ...new function.
19805 (pass_cleanup_barriers): Replace declaration with that of...
19806 (make_pass_cleanup_barriers): ...new function.
19807 (pass_delay_slots): Replace declaration with that of...
19808 (make_pass_delay_slots): ...new function.
19809 (pass_split_for_shorten_branches): Replace declaration with that of...
19810 (make_pass_split_for_shorten_branches): ...new function.
19811 (pass_split_before_regstack): Replace declaration with that of...
19812 (make_pass_split_before_regstack): ...new function.
19813 (pass_convert_to_eh_region_ranges): Replace declaration with that
19815 (make_pass_convert_to_eh_region_ranges): ...new function.
19816 (pass_shorten_branches): Replace declaration with that of...
19817 (make_pass_shorten_branches): ...new function.
19818 (pass_set_nothrow_function_flags): Replace declaration with that of...
19819 (make_pass_set_nothrow_function_flags): ...new function.
19820 (pass_dwarf2_frame): Replace declaration with that of...
19821 (make_pass_dwarf2_frame): ...new function.
19822 (pass_final): Replace declaration with that of...
19823 (make_pass_final): ...new function.
19824 (pass_rtl_seqabstr): Replace declaration with that of...
19825 (make_pass_rtl_seqabstr): ...new function.
19826 (pass_release_ssa_names): Replace declaration with that of...
19827 (make_pass_release_ssa_names): ...new function.
19828 (pass_early_inline): Replace declaration with that of...
19829 (make_pass_early_inline): ...new function.
19830 (pass_inline_parameters): Replace declaration with that of...
19831 (make_pass_inline_parameters): ...new function.
19832 (pass_update_address_taken): Replace declaration with that of...
19833 (make_pass_update_address_taken): ...new function.
19834 (pass_convert_switch): Replace declaration with that of...
19835 (make_pass_convert_switch): ...new function.
19836 * tree-profile.c (pass_ipa_tree_profile): Convert from a global struct
19837 to a subclass of simple_ipa_opt_pass along with...
19838 (pass_data_ipa_tree_profile): ...new pass_data instance and...
19839 (make_pass_ipa_tree_profile): ...new function.
19840 * tree-sra.c (pass_sra_early): Convert from a global struct to a
19841 subclass of gimple_opt_pass along with...
19842 (pass_data_sra_early): ...new pass_data instance and...
19843 (make_pass_sra_early): ...new function.
19844 (pass_sra): Convert from a global struct to a subclass of
19845 gimple_opt_pass along with...
19846 (pass_data_sra): ...new pass_data instance and...
19847 (make_pass_sra): ...new function.
19848 (pass_early_ipa_sra): Convert from a global struct to a subclass of
19849 gimple_opt_pass along with...
19850 (pass_data_early_ipa_sra): ...new pass_data instance and...
19851 (make_pass_early_ipa_sra): ...new function.
19852 * tree-ssa-ccp.c (pass_ccp): Convert from a global struct to a
19853 subclass of gimple_opt_pass along with...
19854 (pass_data_ccp): ...new pass_data instance and...
19855 (make_pass_ccp): ...new function.
19856 (pass_fold_builtins): Convert from a global struct to a subclass of
19857 gimple_opt_pass along with...
19858 (pass_data_fold_builtins): ...new pass_data instance and...
19859 (make_pass_fold_builtins): ...new function.
19860 * tree-ssa-copy.c (pass_copy_prop): Convert from a global struct to a
19861 subclass of gimple_opt_pass along with...
19862 (pass_data_copy_prop): ...new pass_data instance and...
19863 (make_pass_copy_prop): ...new function.
19864 * tree-ssa-copyrename.c (pass_rename_ssa_copies): Convert from a
19865 global struct to a subclass of gimple_opt_pass along with...
19866 (pass_data_rename_ssa_copies): ...new pass_data instance and...
19867 (make_pass_rename_ssa_copies): ...new function.
19868 * tree-ssa-dce.c (pass_dce): Convert from a global struct to a
19869 subclass of gimple_opt_pass along with...
19870 (pass_data_dce): ...new pass_data instance and...
19871 (make_pass_dce): ...new function.
19872 (pass_dce_loop): Convert from a global struct to a subclass of
19873 gimple_opt_pass along with...
19874 (pass_data_dce_loop): ...new pass_data instance and...
19875 (make_pass_dce_loop): ...new function.
19876 (pass_cd_dce): Convert from a global struct to a subclass of
19877 gimple_opt_pass along with...
19878 (pass_data_cd_dce): ...new pass_data instance and...
19879 (make_pass_cd_dce): ...new function.
19880 * tree-ssa-dom.c (pass_dominator): Convert from a global struct to a
19881 subclass of gimple_opt_pass along with...
19882 (pass_data_dominator): ...new pass_data instance and...
19883 (make_pass_dominator): ...new function.
19884 (pass_phi_only_cprop): Convert from a global struct to a subclass of
19885 gimple_opt_pass along with...
19886 (pass_data_phi_only_cprop): ...new pass_data instance and...
19887 (make_pass_phi_only_cprop): ...new function.
19888 * tree-ssa-dse.c (pass_dse): Convert from a global struct to a
19889 subclass of gimple_opt_pass along with...
19890 (pass_data_dse): ...new pass_data instance and...
19891 (make_pass_dse): ...new function.
19892 * tree-ssa-forwprop.c (pass_forwprop): Convert from a global struct to
19893 a subclass of gimple_opt_pass along with...
19894 (pass_data_forwprop): ...new pass_data instance and...
19895 (make_pass_forwprop): ...new function.
19896 * tree-ssa-ifcombine.c (pass_tree_ifcombine): Convert from a global
19897 struct to a subclass of gimple_opt_pass along with...
19898 (pass_data_tree_ifcombine): ...new pass_data instance and...
19899 (make_pass_tree_ifcombine): ...new function.
19900 * tree-ssa-loop-ch.c (pass_ch): Convert from a global struct to a
19901 subclass of gimple_opt_pass along with...
19902 (pass_data_ch): ...new pass_data instance and...
19903 (make_pass_ch): ...new function.
19904 * tree-ssa-loop.c (pass_tree_loop): Convert from a global struct to a
19905 subclass of gimple_opt_pass along with...
19906 (pass_data_tree_loop): ...new pass_data instance and...
19907 (make_pass_tree_loop): ...new function.
19908 (pass_tree_loop_init): Convert from a global struct to a subclass of
19909 gimple_opt_pass along with...
19910 (pass_data_tree_loop_init): ...new pass_data instance and...
19911 (make_pass_tree_loop_init): ...new function.
19912 (pass_lim): Convert from a global struct to a subclass of
19913 gimple_opt_pass along with...
19914 (pass_data_lim): ...new pass_data instance and...
19915 (make_pass_lim): ...new function.
19916 (pass_tree_unswitch): Convert from a global struct to a subclass of
19917 gimple_opt_pass along with...
19918 (pass_data_tree_unswitch): ...new pass_data instance and...
19919 (make_pass_tree_unswitch): ...new function.
19920 (pass_predcom): Convert from a global struct to a subclass of
19921 gimple_opt_pass along with...
19922 (pass_data_predcom): ...new pass_data instance and...
19923 (make_pass_predcom): ...new function.
19924 (pass_vectorize): Convert from a global struct to a subclass of
19925 gimple_opt_pass along with...
19926 (pass_data_vectorize): ...new pass_data instance and...
19927 (make_pass_vectorize): ...new function.
19928 (pass_graphite): Convert from a global struct to a subclass of
19929 gimple_opt_pass along with...
19930 (pass_data_graphite): ...new pass_data instance and...
19931 (make_pass_graphite): ...new function.
19932 (pass_graphite_transforms): Convert from a global struct to a subclass
19933 of gimple_opt_pass along with...
19934 (pass_data_graphite_transforms): ...new pass_data instance and...
19935 (make_pass_graphite_transforms): ...new function.
19936 (pass_check_data_deps): Convert from a global struct to a subclass of
19937 gimple_opt_pass along with...
19938 (pass_data_check_data_deps): ...new pass_data instance and...
19939 (make_pass_check_data_deps): ...new function.
19940 (pass_iv_canon): Convert from a global struct to a subclass of
19941 gimple_opt_pass along with...
19942 (pass_data_iv_canon): ...new pass_data instance and...
19943 (make_pass_iv_canon): ...new function.
19944 (pass_scev_cprop): Convert from a global struct to a subclass of
19945 gimple_opt_pass along with...
19946 (pass_data_scev_cprop): ...new pass_data instance and...
19947 (make_pass_scev_cprop): ...new function.
19948 (pass_record_bounds): Convert from a global struct to a subclass of
19949 gimple_opt_pass along with...
19950 (pass_data_record_bounds): ...new pass_data instance and...
19951 (make_pass_record_bounds): ...new function.
19952 (pass_complete_unroll): Convert from a global struct to a subclass of
19953 gimple_opt_pass along with...
19954 (pass_data_complete_unroll): ...new pass_data instance and...
19955 (make_pass_complete_unroll): ...new function.
19956 (pass_complete_unrolli): Convert from a global struct to a subclass of
19957 gimple_opt_pass along with...
19958 (pass_data_complete_unrolli): ...new pass_data instance and...
19959 (make_pass_complete_unrolli): ...new function.
19960 (pass_parallelize_loops): Convert from a global struct to a subclass
19961 of gimple_opt_pass along with...
19962 (pass_data_parallelize_loops): ...new pass_data instance and...
19963 (make_pass_parallelize_loops): ...new function.
19964 (pass_loop_prefetch): Convert from a global struct to a subclass of
19965 gimple_opt_pass along with...
19966 (pass_data_loop_prefetch): ...new pass_data instance and...
19967 (make_pass_loop_prefetch): ...new function.
19968 (pass_iv_optimize): Convert from a global struct to a subclass of
19969 gimple_opt_pass along with...
19970 (pass_data_iv_optimize): ...new pass_data instance and...
19971 (make_pass_iv_optimize): ...new function.
19972 (pass_tree_loop_done): Convert from a global struct to a subclass of
19973 gimple_opt_pass along with...
19974 (pass_data_tree_loop_done): ...new pass_data instance and...
19975 (make_pass_tree_loop_done): ...new function.
19976 * tree-ssa-math-opts.c (pass_cse_reciprocals): Convert from a global
19977 struct to a subclass of gimple_opt_pass along with...
19978 (pass_data_cse_reciprocals): ...new pass_data instance and...
19979 (make_pass_cse_reciprocals): ...new function.
19980 (pass_cse_sincos): Convert from a global struct to a subclass of
19981 gimple_opt_pass along with...
19982 (pass_data_cse_sincos): ...new pass_data instance and...
19983 (make_pass_cse_sincos): ...new function.
19984 (pass_optimize_bswap): Convert from a global struct to a subclass of
19985 gimple_opt_pass along with...
19986 (pass_data_optimize_bswap): ...new pass_data instance and...
19987 (make_pass_optimize_bswap): ...new function.
19988 (pass_optimize_widening_mul): Convert from a global struct to a
19989 subclass of gimple_opt_pass along with...
19990 (pass_data_optimize_widening_mul): ...new pass_data instance and...
19991 (make_pass_optimize_widening_mul): ...new function.
19992 * tree-ssa-phiopt.c (pass_phiopt): Convert from a global struct to a
19993 subclass of gimple_opt_pass along with...
19994 (pass_data_phiopt): ...new pass_data instance and...
19995 (make_pass_phiopt): ...new function.
19996 (pass_cselim): Convert from a global struct to a subclass of
19997 gimple_opt_pass along with...
19998 (pass_data_cselim): ...new pass_data instance and...
19999 (make_pass_cselim): ...new function.
20000 * tree-ssa-phiprop.c (pass_phiprop): Convert from a global struct to a
20001 subclass of gimple_opt_pass along with...
20002 (pass_data_phiprop): ...new pass_data instance and...
20003 (make_pass_phiprop): ...new function.
20004 * tree-ssa-pre.c (pass_pre): Convert from a global struct to a
20005 subclass of gimple_opt_pass along with...
20006 (pass_data_pre): ...new pass_data instance and...
20007 (make_pass_pre): ...new function.
20008 (pass_fre): Convert from a global struct to a subclass of
20009 gimple_opt_pass along with...
20010 (pass_data_fre): ...new pass_data instance and...
20011 (make_pass_fre): ...new function.
20012 * tree-ssa-reassoc.c (pass_reassoc): Convert from a global struct to a
20013 subclass of gimple_opt_pass along with...
20014 (pass_data_reassoc): ...new pass_data instance and...
20015 (make_pass_reassoc): ...new function.
20016 * tree-ssa-sink.c (pass_sink_code): Convert from a global struct to a
20017 subclass of gimple_opt_pass along with...
20018 (pass_data_sink_code): ...new pass_data instance and...
20019 (make_pass_sink_code): ...new function.
20020 * tree-ssa-strlen.c (pass_strlen): Convert from a global struct to a
20021 subclass of gimple_opt_pass along with...
20022 (pass_data_strlen): ...new pass_data instance and...
20023 (make_pass_strlen): ...new function.
20024 * tree-ssa-structalias.c (pass_build_alias): Convert from a global
20025 struct to a subclass of gimple_opt_pass along with...
20026 (pass_data_build_alias): ...new pass_data instance and...
20027 (make_pass_build_alias): ...new function.
20028 (pass_build_ealias): Convert from a global struct to a subclass of
20029 gimple_opt_pass along with...
20030 (pass_data_build_ealias): ...new pass_data instance and...
20031 (make_pass_build_ealias): ...new function.
20032 (pass_ipa_pta): Convert from a global struct to a subclass of
20033 simple_ipa_opt_pass along with...
20034 (pass_data_ipa_pta): ...new pass_data instance and...
20035 (make_pass_ipa_pta): ...new function.
20036 * tree-ssa-uncprop.c (pass_uncprop): Convert from a global struct to a
20037 subclass of gimple_opt_pass along with...
20038 (pass_data_uncprop): ...new pass_data instance and...
20039 (make_pass_uncprop): ...new function.
20040 * tree-ssa-uninit.c (pass_late_warn_uninitialized): Convert from a
20041 global struct to a subclass of gimple_opt_pass along with...
20042 (pass_data_late_warn_uninitialized): ...new pass_data instance and...
20043 (make_pass_late_warn_uninitialized): ...new function.
20044 * tree-ssa.c (pass_init_datastructures): Convert from a global struct
20045 to a subclass of gimple_opt_pass along with...
20046 (pass_data_init_datastructures): ...new pass_data instance and...
20047 (make_pass_init_datastructures): ...new function.
20048 (pass_early_warn_uninitialized): Convert from a global struct to a
20049 subclass of gimple_opt_pass along with...
20050 (pass_data_early_warn_uninitialized): ...new pass_data instance and...
20051 (make_pass_early_warn_uninitialized): ...new function.
20052 (pass_update_address_taken): Convert from a global struct to a
20053 subclass of gimple_opt_pass along with...
20054 (pass_data_update_address_taken): ...new pass_data instance and...
20055 (make_pass_update_address_taken): ...new function.
20056 * tree-ssanames.c (pass_release_ssa_names): Convert from a global
20057 struct to a subclass of gimple_opt_pass along with...
20058 (pass_data_release_ssa_names): ...new pass_data instance and...
20059 (make_pass_release_ssa_names): ...new function.
20060 * tree-stdarg.c (pass_stdarg): Convert from a global struct to a
20061 subclass of gimple_opt_pass along with...
20062 (pass_data_stdarg): ...new pass_data instance and...
20063 (make_pass_stdarg): ...new function.
20064 * tree-switch-conversion.c (pass_convert_switch): Convert from a
20065 global struct to a subclass of gimple_opt_pass along with...
20066 (pass_data_convert_switch): ...new pass_data instance and...
20067 (make_pass_convert_switch): ...new function.
20068 * tree-tailcall.c (pass_tail_recursion): Convert from a global struct
20069 to a subclass of gimple_opt_pass along with...
20070 (pass_data_tail_recursion): ...new pass_data instance and...
20071 (make_pass_tail_recursion): ...new function.
20072 (pass_tail_calls): Convert from a global struct to a subclass of
20073 gimple_opt_pass along with...
20074 (pass_data_tail_calls): ...new pass_data instance and...
20075 (make_pass_tail_calls): ...new function.
20076 * tree-vect-generic.c (pass_lower_vector): Convert from a global
20077 struct to a subclass of gimple_opt_pass along with...
20078 (pass_data_lower_vector): ...new pass_data instance and...
20079 (make_pass_lower_vector): ...new function.
20080 (pass_lower_vector_ssa): Convert from a global struct to a subclass of
20081 gimple_opt_pass along with...
20082 (pass_data_lower_vector_ssa): ...new pass_data instance and...
20083 (make_pass_lower_vector_ssa): ...new function.
20084 * tree-vectorizer.c (pass_slp_vectorize): Convert from a global struct
20085 to a subclass of gimple_opt_pass along with...
20086 (pass_data_slp_vectorize): ...new pass_data instance and...
20087 (make_pass_slp_vectorize): ...new function.
20088 (pass_ipa_increase_alignment): Convert from a global struct to a
20089 subclass of simple_ipa_opt_pass along with...
20090 (pass_data_ipa_increase_alignment): ...new pass_data instance and...
20091 (make_pass_ipa_increase_alignment): ...new function.
20092 * tree-vrp.c (pass_vrp): Convert from a global struct to a subclass of
20093 gimple_opt_pass along with...
20094 (pass_data_vrp): ...new pass_data instance and...
20095 (make_pass_vrp): ...new function.
20096 * tree.c (pass_ipa_free_lang_data): Convert from a global struct to a
20097 subclass of simple_ipa_opt_pass along with...
20098 (pass_data_ipa_free_lang_data): ...new pass_data instance and...
20099 (make_pass_ipa_free_lang_data): ...new function.
20100 * tsan.c (pass_tsan): Convert from a global struct to a subclass of
20101 gimple_opt_pass along with...
20102 (pass_data_tsan): ...new pass_data instance and...
20103 (make_pass_tsan): ...new function.
20104 (pass_tsan_O0): Convert from a global struct to a subclass of
20105 gimple_opt_pass along with...
20106 (pass_data_tsan_O0): ...new pass_data instance and...
20107 (make_pass_tsan_O0): ...new function.
20108 * var-tracking.c (pass_variable_tracking): Convert from a global
20109 struct to a subclass of rtl_opt_pass along with...
20110 (pass_data_variable_tracking): ...new pass_data instance and...
20111 (make_pass_variable_tracking): ...new function.
20112 * web.c (pass_web): Convert from a global struct to a subclass of
20113 rtl_opt_pass along with...
20114 (pass_data_web): ...new pass_data instance and...
20115 (make_pass_web): ...new function.
20116 * config/epiphany/epiphany.h (pass_mode_switch_use): Replace
20117 declaration with that of...
20118 (make_pass_mode_switch_use): ...new function.
20119 (pass_resolve_sw_modes): Replace declaration with that of...
20120 (make_pass_resolve_sw_modes): ...new function.
20121 * config/epiphany/mode-switch-use.c (pass_mode_switch_use): Convert
20122 from a global struct to a subclass of rtl_opt_pass along with...
20123 (pass_data_mode_switch_use): ...new pass_data instance and...
20124 (make_pass_mode_switch_use): ...new function.
20125 * config/epiphany/resolve-sw-modes.c (pass_resolve_sw_modes): Convert
20126 from a global struct to a subclass of rtl_opt_pass along with...
20127 (pass_data_resolve_sw_modes): ...new pass_data instance and...
20128 (make_pass_resolve_sw_modes): ...new function.
20129 * config/i386/i386.c (pass_insert_vzeroupper): Convert from a global
20130 struct to a subclass of rtl_opt_pass along with...
20131 (pass_data_insert_vzeroupper): ...new pass_data instance and...
20132 (make_pass_insert_vzeroupper): ...new function.
20133 * config/sparc/sparc.c (pass_work_around_errata): Convert from a
20134 global struct to a subclass of rtl_opt_pass along with...
20135 (pass_data_work_around_errata): ...new pass_data instance and...
20136 (make_pass_work_around_errata): ...new function.
20137 * config/mips/mips.c (pass_mips_machine_reorg2): Convert from a global
20138 struct to a subclass of rtl_opt_pass along with...
20139 (pass_data_mips_machine_reorg2): ...new pass_data instance and...
20140 (make_pass_mips_machine_reorg2): ...new function.
20142 2013-08-05 David Malcolm <dmalcolm@redhat.com>
20144 * passes.c (pass_manager::operator new): New.
20146 2013-08-05 David Malcolm <dmalcolm@redhat.com>
20148 Handwritten part of conversion of passes to C++ classes.
20150 * Makefile.in (PASS_MANAGER_H): Add dep on pass-instances.def.
20151 (toplev.o): Add dep on PASS_MANAGER_H.
20152 * cgraphunit.c (cgraph_process_new_functions): Rework invocation
20153 of early local pases to reflect this moving from a global to a
20154 member of gcc::pass_manager.
20155 (cgraph_add_new_function): Likewise.
20156 * lto-cgraph.c (lto_output_node): Update for conversion of
20157 struct ipa_opt_pass_d to a C++ subclass of opt_pass.
20158 * passes.c (opt_pass::clone): New.
20159 (opt_pass::gate): New.
20160 (opt_pass::execute): New.
20161 (opt_pass::opt_pass): New.
20162 (pass_manager::execute_early_local_passes): New.
20163 (pass_manager::execute_pass_mode_switching): new.
20164 (finish_optimization_passes): Convert to...
20165 (pass_manager::finish_optimization_passes): ...this.
20166 (finish_optimization_passes): Update for conversion of passes to
20168 (register_dump_files_1): Use has_gate since we cannot portably
20169 check a vtable entry against NULL.
20170 (dump_one_pass): Likewise.
20171 (ipa_write_summaries_2): Likewise.
20172 (ipa_write_optimization_summaries_1): Likewise.
20173 (ipa_read_summaries_1): Likewise.
20174 (ipa_read_optimization_summaries_1): Likewise.
20175 (execute_ipa_stmt_fixups): Likewise.
20176 (pass_manager::pass_manager): Rewrite pass-creation, invoking
20177 pass-creation functions rather than wiring up globals, and
20178 storing the results in fields of pass_manager generated using
20179 pass-instances.def.
20180 (pass_manager::dump_profile_report): Update for conversion of
20181 passes to C++ classes.
20182 (pass_manager::execute_ipa_summary_passes): Likewise.
20183 (execute_one_ipa_transform_pass): Likewise.
20184 (execute_one_pass): Use has_gate and has_execute since we cannot
20185 portably check a vtable entry against NULL.
20186 * pass_manager.h (pass_manager::finish_optimization_passes): New.
20187 (pass_manager): Use pass-instances.def to add fields for the
20188 various pass instances.
20189 * toplev.c (finalize): Update for move of
20190 finish_optimization_passes to a method of gcc::pass_manager.
20191 * toplev.h (finish_optimization_passes): Move to method of class
20193 * tree-pass.h (struct pass_data): New.
20194 (opt_pass): Convert to C++ class, make it a subclass of pass_data.
20195 (opt_pass::gate): Convert to virtual function.
20196 (opt_pass::~opt_pass): New.
20197 (opt_pass::clone): New.
20198 (opt_pass::execute): Convert to virtual function.
20199 (opt_pass::opt_pass): New.
20200 (opt_pass::ctxt_): new.
20201 (gimple_opt_pass): Convert to subclass of opt_pass.
20202 (gimple_opt_pass::gimple_opt_pass): New.
20203 (rtl_opt_pass): Convert to subclass of opt_pass.
20204 (rtl_opt_pass::rtl_opt_pass): New.
20205 (ipa_opt_pass_d): Convert to subclass of opt_pass.
20206 (ipa_opt_pass_d::ipa_opt_pass_d): New.
20207 (simple_ipa_opt_pass): Convert to subclass of opt_pass.
20208 (simple_ipa_opt_pass::simple_ipa_opt_pass): New.
20209 * config/i386/i386.c (rest_of_handle_insert_vzeroupper): Rework
20210 invocation of pass_mode_switching to reflect this moving from a
20211 global to a member of gcc::pass_manager.
20212 (ix86_option_override): Rework how pass_insert_vzeroupper is
20213 added to the pass_manager to reflect autogenerated changes.
20214 * config/i386/t-i386 (i386.o) Add deps on CONTEXT_H and PASS_MANAGER_H.
20216 2013-08-05 Richard Earnshaw <rearnsha@arm.com>
20218 PR rtl-optimization/57708
20219 * recog.c (peep2_find_free_register): Validate all regs in a
20222 2013-08-05 Jan Hubicka <jh@suse.cz>
20225 * cgraph.c (verify_cgraph_node): Accept local flags from other
20227 * ipa.c (symtab_remove_unreachable_nodes): Do not clear local flag.
20228 (function_and_variable_visibility): Likewise.
20229 * trans-mem.c (ipa_tm_create_version): TM versions are not local.
20231 2013-08-05 Gabriel Dos Reis <gdr@integrable-solutions.net>
20233 * graph.c (init_graph_slim_pretty_print): Remove.
20234 (print_graph_cfg): Do not call it. Use local pretty printer.
20235 (start_graph_dump): Likewise.
20237 2013-08-05 Gabriel Dos Reis <gdr@integrable-solutions.net>
20239 * gimple-pretty-print.c (buffer): Remove.
20240 (initialized): Likewise.
20241 (maybe_init_pretty_print): Likewise.
20242 (print_gimple_stmt): Do not call it. Use non-static local
20243 pretty_printer variable.
20244 (print_gimple_expr): Likewise.
20245 (print_gimple_seq): Likewise.
20246 (gimple_dump_bb): Likewise.
20248 2013-08-05 Gabriel Dos Reis <gdr@integrable-solutions.net>
20250 * asan.c (asan_pp): Remove.
20251 (asan_pp_initialized): Likewise.
20252 (asan_pp_initialize): Likewise.
20253 (asan_pp_string): Take a pretty_printer parameter. Adjust callers.
20254 (asan_emit_stack_protection): Tidy. Use local pretty printer.
20255 (asan_add_global): Likewise.
20257 2013-08-04 Gabriel Dos Reis <gdr@integrable-solutions.net>
20259 * pretty-print.h (pp_base): Remove. Adjust dependent macros.
20260 * diagnostic.h (diagnostic_flush_buffer): Adjust.
20261 * pretty-print.c (pp_formatted_text_data): Likewise.
20262 (pp_indent): Rename from pp_base_indent.
20263 (pp_format): Rename from pp_base_format.
20264 (pp_output_formatted_text): Rename from pp_base_output_formatted_text.
20265 (pp_format_verbatim): Rename from pp_base_format_verbatim.
20266 (pp_flush): Rename from pp_base_flush.
20267 (pp_set_line_maximum_length): Rename from
20268 pp_base_set_line_maximum_length.
20269 (pp_clear_output_area): Rename from pp_base_clear_output_area.
20270 (pp_set_prefix): Rename from pp_base_set_prefix.
20271 (pp_destroy_prefix): Rename from pp_base_destroy_prefix.
20272 (pp_emit_prefix): Rename from pp_base_emit_prefix.
20273 (pp_append_text): Rename from pp_base_append_text.
20274 (pp_formatted_text): Rename from pp_base_formatted_text.
20275 (pp_last_position_in_text): Rename from pp_base_last_position_in_text.
20276 (pp_remaining_character_count_for_line): Rename from
20277 pp_base_remaining_character_count_for_line.
20278 (pp_newline): Rename from pp_base_newline.
20279 (pp_character): Rename from pp_base_character.
20280 (pp_string): Rename from pp_base_string.
20281 (pp_maybe_space): Rename from pp_base_maybe_space.
20282 * asan.c (asan_pp_string): Adjust.
20283 (asan_emit_stack_protection): Likewise.
20284 (asan_add_global): Likewise.
20285 * sched-vis.c (str_pattern_slim): Adjust pretty printer function call.
20286 * tree-mudflap.c (mf_varname_tree): Likewise.
20287 * tree-pretty-print.c (pp_tree_identifier): Rename from
20288 pp_base_tree_identifier.
20289 * tree-pretty-print.h (pp_tree_identifier): Remove macro definition.
20290 Declare as function.
20292 2013-08-03 Gabriel Dos Reis <gdr@integrable-solutions.net>
20294 * pretty-print.h (pp_bar_bar): New.
20295 (pp_ampersand_ampersand): Likewise.
20296 (pp_less_equal): Likewise.
20297 (pp_greater_equal): Likewise.
20298 * gimple-pretty-print.c (dump_ternary_rhs): Use specialized pretty
20299 printer functions instead of pp_string or operators and punctuators.
20300 (dump_gimple_call): Likewise.
20301 (dump_gimple_omp_for): Likewise.
20302 (dump_gimple_transaction): Likewise.
20303 (dump_gimple_phi): Likewise.
20304 (pp_gimple_stmt_1): Likewise.
20305 * sched-vis.c (print_insn): Likewise.
20306 * tree-mudflap.c (mf_varname_tree): Likewise.
20307 * tree-pretty-print.c (dump_block_node): Likewise.
20308 (dump_generic_node): Likewise.
20310 2013-08-02 Jan Hubicka <jh@suse.cz>
20312 * lto-cgraph.c (compute_ltrans_boundary): Add abstract origins into
20314 * lto-streamer-out.c (tree_is_indexable): Results decls and
20315 parm decls are not indexable.
20316 (DFS_write_tree_body): Do not follow args and results.
20317 (hash_tree): Likewise.
20318 (output_functions): Rearrange so struct function is needed
20319 only when real body is output; be able to also ouptut abstract
20320 functions; output DECL_ARGUMENTS and DECL_RESULT.
20321 (lto_output): When not in WPA, ale store abstract functions.
20322 (write_symbol): Do not care about RESULT_DECL.
20323 (output_symbol_p): Handle correctly sbtract decls.
20324 * lto-streamer-in.c (input_function): Rearrange so struct
20325 function can be NULL at entry; allow streaming of
20326 functions w/o body; store DECL_ARGUMENTS and DECL_RESULT.
20327 * ipa.c (symtab_remove_unreachable_nodes): Silence confused
20328 sanity check during LTO.
20329 * tree-streamer-out.c (write_ts_decl_non_common_tree_pointers): Skip
20330 RESULT_DECl and DECL_ARGUMENTS.
20331 * tree-streamer-in.c (lto_input_ts_decl_non_common_tree_pointers):
20334 2013-08-03 Gabriel Dos Reis <gdr@integrable-solutions.net>
20336 * pretty-print.h (pp_underscore): New.
20338 * gimple-pretty-print.c (dump_unary_rhs): Use specialized pretty
20339 printer functions instead of pp_character.
20340 (dump_binary_rhs): Likewise.
20341 (dump_ternary_rhs): Likewise.
20342 (dump_gimple_call_args): Likewise.
20343 (pp_points_to_solution): Likewise.
20344 (dump_gimple_call): Likewise.
20345 (dump_gimple_switch): Likewise.
20346 (dump_gimple_cond): Likewise.
20347 (dump_gimple_bind): Likewise.
20348 (dump_gimple_try): Likewise.
20349 (dump_gimple_omp_for): Likewise.
20350 (dump_gimple_omp_continue): Likewise.
20351 (dump_gimple_omp_single): Likewise.
20352 (dump_gimple_omp_sections): Likewise.
20353 (dump_gimple_omp_block): Likewise.
20354 (dump_gimple_omp_critical): Likewise.
20355 (dump_gimple_transaction): Likewise.
20356 (dump_gimple_asm): Likewise.
20357 (dump_gimple_phi): Likewise.
20358 (dump_gimple_omp_parallel): Likewise.
20359 (dump_gimple_omp_task): Likewise.
20360 (dump_gimple_omp_atomic_load): Likewise.
20361 (dump_gimple_omp_atomic_store): Likewise.
20362 (dump_gimple_mem_ops): Likewise.
20363 (pp_gimple_stmt_1): Likewise.
20364 (pp_cfg_jump): Likewise.
20365 (dump_implicit_edges): Likewise.
20366 (gimple_dump_bb_for_graph): Likewise.
20367 * graph.c (draw_cfg_node): Likewise.
20368 * langhooks.c (lhd_print_error_function): Likewise.
20369 * sched-vis.c (print_exp): Likewise.
20370 (print_value): Likewise.
20371 (print_pattern): Likewise.
20372 (print_insn): Likewise.
20373 (rtl_dump_bb_for_graph): Likewise.
20374 * tree-pretty-print.c (dump_function_declaration): Likewise.
20375 (dump_array_domain): Likewise.
20376 (dump_omp_clause): Likewise.
20377 (dump_location): Likewise.
20378 (dump_generic_node): Likewise.
20379 (print_struct_decl): Likewise.
20380 * diagnostic.c (diagnostic_show_locus): Use pp_space.
20382 2013-08-03 Bill Schmidt <wschmidt@vnet.linux.ibm.com>
20384 * gimple-ssa-strength-reduction.c (replace_mult_candidate): Update
20385 candidate table when replacing a candidate statement.
20386 (replace_rhs_if_not_dup): Likewise.
20387 (replace_one_candidate): Likewise.
20389 2013-08-02 Jan Hubicka <jh@suse.cz>
20390 Martin Liska <marxin.liska@gmail.com>
20392 * cgraphunit.c (add_new_function): Fix logic when adding from
20394 (assemble_thunk): Rename to ...
20395 (expand_thunk); .. this one; export; get it working with
20396 general functions; make produced gimple valid.
20397 * cgraph.h (expand_thunk): Declare.
20399 2013-08-02 Jan Hubicka <jh@suse.cz>
20401 * ipa-cp.c (gather_context_independent_values): Use
20402 ipa_get_param_move_cost.
20403 (get_replacement_map): Remove PARAM; move parameter folding
20405 (create_specialized_node): Update.
20406 * ipa-prop.c (ipa_populate_param_decls): Do not look for origins;
20407 assert that we have gimple body; update move_cost.
20408 (count_formal_params): Assert that we have gimple body.
20409 (ipa_dump_param): New function.
20410 (ipa_alloc_node_params): Break out from ...
20411 (ipa_initialize_node_params): ... here.
20412 (ipa_get_vector_of_formal_parms): ICE when used in WPA.
20413 (ipa_write_node_info): Stream move costs.
20414 (ipa_read_node_info): Read move costs.
20415 (ipa_update_after_lto_read): Do not recompute node params.
20416 * ipa-prop.h (ipa_param_descriptor): Add move_cost.
20417 (ipa_get_param): Check we are not in WPA.
20418 (ipa_get_param_move_cost): New.
20419 * tree-inline.c (tree_function_versioning): Fold replacement as needed.
20420 * ipa-inline-analysis.c (inline_node_duplication_hook): Expect only
20421 parm numbers to be present.
20423 2013-08-02 Vladimir Makarov <vmakarov@redhat.com>
20425 PR rtl-optimization/58048
20426 * lra-constraints.c (process_alt_operands): Don't check asm
20427 operand on register.
20429 2013-08-02 Eric Botcazou <ebotcazou@adacore.com>
20431 * config/sparc/sparc.c (sparc_emit_membar_for_model) <SMM_TSO>: Add
20432 the implied StoreLoad barrier for atomic operations if before.
20434 2013-08-02 Jan Hubicka <jh@suse.cz>
20435 Martin Liska <marxin.liska@gmail.com>
20437 * cgraph.c (cgraph_function_body_availability): Do not check
20439 * cgraph.h (symtab_for_node_and_aliases, symtab_nonoverwritable_alias,
20440 symtab_node_availability): Declare.
20441 * ipa.c (can_replace_by_local_alias): New.
20442 (function_and_variable_visibility): Use it.
20443 * symtab.c (symtab_for_node_and_aliases,
20444 symtab_nonoverwritable_alias_1, symtab_nonoverwritable_alias): New.
20446 2013-08-02 Vladimir Makarov <vmakarov@redhat.com>
20448 PR rtl-optimization/57963
20449 * lra-constraints.c (reverse_equiv_p, contains_reloaded_insn_p): New.
20450 (lra_constraints): Use them.
20452 2013-08-02 Sofiane Naci <sofiane.naci@arm.com>
20454 * config/arm/types.md (define_attr "type"): Add "load_acq"
20456 * config/arm/cortex-a53.md (cortex_a53_load1): Update for attribute
20458 (cortex_a53_store1): Likewise.
20460 2013-08-01 Jan Hubicka <jh@suse.cz>
20462 * ipa.c (symtab_remove_unreachable_nodes): Nodes in other
20463 partitions are not needed.
20465 2013-08-01 Uros Bizjak <ubizjak@gmail.com>
20467 * config/i386/i386.h (MAYBE_NON_Q_CLASS_P): New.
20468 * config/i386/i386.c (ix86_secondary_reload): Use INTEGER_CLASS_P and
20469 MAYBE_NON_Q_CLASS_P where appropriate.
20471 2013-08-01 Jan Hubicka <jh@suse.cz>
20473 * cgraph.h (release_function_body): Declare.
20474 * tree.c (free_lang_data_in_decl): Free, parameters and return values
20475 of unused delcarations.
20477 2013-08-01 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
20479 * config/arm/arm.md (minmax_arithsi_non_canon): Emit canonical
20480 RTL form when subtracting a constant.
20482 2013-08-01 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
20484 * config/arm/arm.md (peepholes for eq (reg1) (reg2/imm)):
20485 Generate canonical plus rtx with negated immediate instead of minus
20487 * config/arm/arm.c (thumb2_reorg): Handle ADCS <Rd>, <Rn> case.
20489 2013-08-01 Jan Hubicka <jh@suse.cz>
20491 * cgraph.c (cgraph_release_function_body): Use used_as_abstract_origin.
20492 (cgraph_release_function_body): Likewise.
20493 (cgraph_can_remove_if_no_direct_calls_p): Likewise.
20494 * cgraph.h (cgrpah_node): Rename abstract_and_needed
20495 to used_as_abstract_origin.
20496 * tree-inline-transfrom.c (can_remove_node_now_p_1): Do not remove
20497 symbols used as abstract origins.
20498 * cgraphunit.c (analyze_functions): Update.
20499 * ipa.c (symtab_remove_unreachable_nodes): Recompute
20500 used_as_abstract_origin.
20501 * tree-inline.c (tree_function_versioning): Update
20502 used_as_abstract_origin; be ready for DECL_RESULT and
20503 DECL_ARGUMENTS to be NULL.
20505 * lto-symtab.c (lto_symtab_merge_symbols): Merge duplicated nodes
20506 for abstract functions.
20507 * cgraph.h (symtab_real_symbol_p): Abstract declarations are not
20510 2013-08-01 Jan Hubicka <jh@suse.cz>
20512 * profile.c (compute_value_histograms): Fix thinko.
20514 2013-08-01 Sofiane Naci <sofiane.naci@arm.com>
20516 * config.gcc (aarch64*-*-*): Add aarch-common.o to extra_objs. Add
20517 aarch-common-protos.h to extra_headers.
20518 (aarch64*-*-*): Add arm/aarch-common-protos.h to tm_p_file.
20519 * config/aarch64/aarch64.md: Include "../arm/cortex-a53.md".
20520 * config/aarch64/t-aarch64 (aarch-common.o): Define.
20522 2013-08-01 Sofiane Naci <sofiane.naci@arm.com>
20524 * config/aarch64/aarch64.md (define_attr "type"): Delete.
20525 Include "../arm/types.md". Define "type" attribute for all patterns.
20526 * config/aarch64/aarch64-simd.md (move_lo_quad_<mode>): Update for
20529 2013-07-31 Michael Meissner <meissner@linux.vnet.ibm.com>
20531 * config/rs6000/predicates.md (fusion_gpr_addis): New predicates
20532 to support power8 load fusion.
20533 (fusion_gpr_mem_load): Likewise.
20535 * config/rs6000/rs6000-modes.def (PTImode): Update a comment.
20537 * config/rs6000/rs6000-protos.h (fusion_gpr_load_p): New
20538 declarations for power8 load fusion.
20539 (emit_fusion_gpr_load): Likewise.
20541 * config/rs6000/rs6000.c (rs6000_option_override_internal): If
20542 tuning for power8, turn on fusion mode by default. Turn on sign
20543 extending fusion mode if normal fusion mode is on, and we are at
20545 (fusion_gpr_load_p): New function, return true if we can fuse an
20546 addis instruction with a dependent load to a GPR.
20547 (emit_fusion_gpr_load): Emit the instructions for power8 load
20550 * config/rs6000/vsx.md (VSX_M2): New iterator for fusion peepholes.
20551 (VSX load fusion peepholes): New peepholes to fuse together an
20552 addi instruction with a VSX load instruction.
20554 * config/rs6000/rs6000.md (GPR load fusion peepholes): New
20555 peepholes to fuse an addis instruction with a load to a GPR base
20556 register. If we are supporting sign extending fusions, convert
20557 sign extending loads to zero extending loads and add an explicit
20560 2013-07-31 Sofiane Naci <sofiane.naci@arm.com>
20562 * config.gcc (arm*-*-*): Add aarch-common.o to extra_objs. Add
20563 aarch-common-protos.h to extra_headers.
20564 (arm*-*-*): Add arm/aarch-common-protos.h to tm_p_file.
20565 * config/arm/arm.c (arm_early_load_addr_dep): Move from here to ...
20566 (arm_early_store_addr_dep): Likewise.
20567 (arm_no_early_alu_shift_dep): Likewise.
20568 (arm_no_early_alu_shift_value_dep): Likewise.
20569 (arm_no_early_mul_dep): Likewise.
20570 (arm_no_early_store_addr_dep): Likewise.
20571 (arm_mac_accumulator_is_mul_result): Likewise.
20572 (arm_mac_accumulator_is_result): Likewise.
20573 * config/arm/aarch-common.c: ... here. New file.
20574 * config/arm/arm-protos.h (arm_early_load_addr_dep): Move from
20576 (arm_early_store_addr_dep): Likewise.
20577 (arm_no_early_alu_shift_dep): Likewise.
20578 (arm_no_early_alu_shift_value_dep): Likewise.
20579 (arm_no_early_mul_dep): Likewise.
20580 (arm_no_early_store_addr_dep): Likewise.
20581 (arm_mac_accumulator_is_mul_result): Likewise.
20582 (arm_mac_accumulator_is_result): Likewise.
20583 * config/arm/aarch-common-protos.h: ... here. New file.
20584 * config/arm/t-arm (aarch-common.o): Define.
20586 2013-07-31 Sofiane Naci <sofiane.naci@arm.com>
20588 * config/arm/arm.md: Include new file "types.md".
20589 (define_attr "type"): Move from here to ...
20590 (define_attr "mul32"): Likewise.
20591 (define_attr "mul64"): Likewise.
20592 * config/arm/types.md: ... here. New file.
20594 2013-07-31 Sebastian Huber <sebastian.huber@embedded-brains.de>
20596 * config.gcc (*-*-rtems*): Use __cxa_atexit by default.
20597 * config/rs6000/rtems.h (TARGET_LIBGCC_SDATA_SECTION): Define.
20599 2013-07-31 Jan-Benedict Glaw <jbglaw@lug-owl.de>
20601 * gen-pass-instances.awk: Fix offset of substr().
20603 2013-07-31 David Malcolm <dmalcolm@redhat.com>
20605 * Makefile.in (pass-instances.def): New.
20606 (passes.o): Replace dependency on passes.def with one on
20609 * gen-pass-instances.awk: New.
20611 * passes.c (pass_manager::pass_manager): Use pass-instances.def
20612 rather than passes.def, updating local definition of NEXT_PASS
20613 macro to add an extra NUM parameter (currently unused).
20615 2013-07-30 David Malcolm <dmalcolm@redhat.com>
20617 * Makefile.in (PASS_MANAGER_H): New.
20618 (lto-cgraph.o): Depend on CONTEXT_H and PASS_MANAGER_H.
20619 (passes.o): Likewise.
20620 (statistics.o): Likewise.
20621 (cgraphunit.o): Likewise.
20622 (context.o): Depend on PASS_MANAGER_H.
20624 * pass_manager.h: New.
20626 * cgraphunit.c (cgraph_add_new_function): Update for moves
20627 of globals to fields of pass_manager.
20628 (analyze_function): Likewise.
20629 (expand_function): Likewise.
20630 (ipa_passes): Likewise.
20631 (compile): Likewise.
20633 * context.c (context::context): New.
20634 * context.h (context::context): New.
20635 (context::get_passes): New.
20636 (context::passes_): New.
20638 * lto-cgraph.c (input_node): Update for moves of globals to
20639 fields of pass_manager.
20641 * passes.c (all_passes): Remove, in favor of a field of the
20642 same name within the new class pass_manager.
20643 (all_small_ipa_passes): Likewise.
20644 (all_lowering_passes): Likewise.
20645 (all_regular_ipa_passes): Likewise.
20646 (all_late_ipa_passes): Likewise.
20647 (all_lto_gen_passes): Likewise.
20648 (passes_by_id): Likewise.
20649 (passes_by_id_size): Likewise.
20650 (gcc_pass_lists): Remove, in favor of "pass_lists" field within
20651 the new class pass_manager.
20652 (set_pass_for_id): Convert to...
20653 (pass_manager::set_pass_for_id): ...method.
20654 (get_pass_for_id): Convert to...
20655 (pass_manager::get_pass_for_id): ...method.
20656 (register_one_dump_file): Move body of implementation into...
20657 (pass_manager::register_one_dump_file): ...here.
20658 (register_dump_files_1): Convert to...
20659 (pass_manager::register_dump_files_1): ...method.
20660 (register_dump_files): Convert to...
20661 (pass_manager::register_dump_files): ...method.
20662 (create_pass_tab): Update for moves of globals to fields of
20664 (dump_passes): Move body of implementation into...
20665 (pass_manager::dump_passes): ...here.
20666 (register_pass): Move body of implementation into...
20667 (pass_manager::register_pass): ...here.
20668 (init_optimization_passes): Convert into...
20669 (pass_manager::pass_manager): ...constructor for new
20670 pass_manager class, and initialize the pass_lists array.
20671 (check_profile_consistency): Update for moves of globals to
20672 fields of pass_manager.
20673 (dump_profile_report): Move body of implementation into...
20674 (pass_manager::dump_profile_report): ...here.
20675 (ipa_write_summaries_1): Update for moves of pass lists from
20676 being globals to fields of pass_manager.
20677 (ipa_write_optimization_summaries): Likewise.
20678 (ipa_read_summaries): Likewise.
20679 (ipa_read_optimization_summaries): Likewise.
20680 (execute_all_ipa_stmt_fixups): Likewise.
20682 * statistics.c (statistics_fini): Update for moves of globals to
20683 fields of pass_manager.
20685 * toplev.c (general_init): Replace call to
20686 init_optimization_passes with construction of the pass_manager
20689 * tree-pass.h (all_passes): Remove, in favor of a field of the
20690 same name within the new class pass_manager.
20691 (all_small_ipa_passes): Likewise.
20692 (all_lowering_passes): Likewise.
20693 (all_regular_ipa_passes): Likewise.
20694 (all_lto_gen_passes): Likewise.
20695 (all_late_ipa_passes): Likewise.
20696 (passes_by_id): Likewise.
20697 (passes_by_id_size): Likewise.
20698 (gcc_pass_lists): Remove, in favor of "pass_lists" field within
20699 the new class pass_manager.
20700 (get_pass_for_id): Remove.
20702 2013-07-30 Richard Earnshaw <rearnsha@arm.com>
20704 * config.gcc (arm): Require 64-bit host-wide-int for all ARM target
20707 2013-07-30 Richard Earnshaw <rearnsha@arm.com>
20709 * arm.md (mulhi3): New expand pattern.
20711 2013-07-30 Jan Hubicka <jh@suse.cz>
20712 Martin Liska <marxin.liska@gmail.com>
20714 * profile.c (compute_value_histograms): Do not ICE when
20715 there is mismatch only on some counters.
20717 2013-07-30 Zhenqiang Chen <zhenqiang.chen@linaro.org>
20719 PR rtl-optimization/57637
20720 * function.c (move_insn_for_shrink_wrap): Also check the
20721 GEN set of the LIVE problem for the liveness analysis
20722 if it exists, otherwise give up.
20724 2013-07-29 Bill Schmidt <wschmidt@vnet.linux.ibm.com>
20726 PR tree-optimization/57993
20727 * gimple-ssa-strength-reduction.c (replace_mult_candidate): Record
20728 replaced statement in the candidate table.
20729 (phi_add_costs): Return infinite cost when the hidden basis does
20730 not dominate all phis on which the candidate is dependent.
20731 (replace_one_candidate): Record replaced statement in the
20734 2013-07-29 Joern Rennecke <joern.rennecke@embecosm.com>
20736 * config/epiphany/epiphany.md (*isub_i+2): New peephole.
20737 (ashlv2si3): New expander.
20738 (*ashlv2si3_i): New define_insn_and_split.
20739 * predicates.md (float_operation): Allow patterns with three
20740 basic sub-patterns.
20742 PR rtl-optimization/58021
20743 * mode-switching.c (create_pre_exit): Always split off preceding
20744 insns if we are not at the basic block head.
20746 2013-07-29 Maciej W. Rozycki <macro@codesourcery.com>
20748 * config/mips/linux.h (GLIBC_DYNAMIC_LINKER): Handle `-mnan=2008'.
20749 (UCLIBC_DYNAMIC_LINKER): New macro.
20750 * config/mips/linux64.h (GLIBC_DYNAMIC_LINKER32): Handle
20752 (GLIBC_DYNAMIC_LINKER64, GLIBC_DYNAMIC_LINKERN32): Likewise.
20753 (UCLIBC_DYNAMIC_LINKER32): Undefine macro first. Handle
20755 (UCLIBC_DYNAMIC_LINKER64): Redefine macro.
20756 (UCLIBC_DYNAMIC_LINKERN32): Likewise.
20757 * config/mips/mips-modes.def: Remove RESET_FLOAT_FORMAT calls
20758 for SF and DF modes. Use ieee_quad_format for TF mode.
20759 * config/mips/mips-opts.h (mips_ieee_754_setting): New enum.
20760 * config/mips/mips.c (mips_file_start): Output a `.nan' directive.
20761 (mips_option_override): Handle `-mnan=legacy'.
20762 * config/mips/mips.h (TARGET_CPU_CPP_BUILTINS): Handle
20763 `-mabs=2008' and `-mnan=2008'.
20764 (OPTION_DEFAULT_SPECS): Add "nan" default.
20765 (ASM_SPEC): Handle `-mnan='.
20766 [!HAVE_AS_NAN] (HAVE_AS_NAN): New macro.
20767 * config/mips/mips.md (abs<mode>2): Handle `-mabs=2008', update
20768 comment accordingly.
20769 (neg<mode>2): Likewise.
20770 * config/mips/mips.opt (mabs, mnan): New options.
20771 * doc/install.texi (Configuration): Document `--with-nan=' option.
20772 * doc/invoke.texi (Option Summary): List MIPS `-mabs=' and
20774 (MIPS Options): Document them.
20775 * config.gcc <mips*-*-*>: Handle `--with-nan='.
20776 * configure.ac <mips*-*-*>: Check for GAS `-mnan=2008' support.
20777 * configure: Regenerate.
20778 * config.in: Regenerate.
20780 2013-07-29 Uros Bizjak <ubizjak@gmail.com>
20782 * config/i386/i386.md (float post-reload splitters): Do not check
20783 for subregs of SSE registers.
20785 2013-07-29 Uros Bizjak <ubizjak@gmail.com>
20786 H.J. Lu <hongjiu.lu@intel.com>
20790 * config/i386/i386.md (post-reload splitter
20791 to avoid partial SSE reg dependency stalls): New pattern.
20793 2013-07-29 Dominik Vogt <vogt@linux.vnet.ibm.com>
20795 * config/s390/s390.md ("movcc"): Swap load and store instructions.
20797 2013-07-27 Joern Rennecke <joern.rennecke@embecosm.com>
20799 * config/epiphany/epiphany.c (epiphany_compute_frame_size):
20800 Also reserve space for saving UNKNOWN_REGNUM for leaf functions.
20802 2013-07-26 Cary Coutant <ccoutant@google.com>
20804 * dwarf2out.c (die_checksum_ordered): Don't include template
20805 instantiations in signature.
20806 (is_template_parameter): New function.
20807 (is_template_instantiation): New function.
20808 (generate_skeleton_bottom_up): Don't include template instantiations
20810 (generate_skeleton): Likewise.
20811 (break_out_comdat_types): Move recursive call to break out nested
20813 (prune_unused_types_mark_generic_parms_dies): Call
20814 is_template_parameter.
20816 2013-07-26 Ian Bolton <ian.bolton@arm.com>
20818 * config/aarch64/aarch64.md (neg<mode>2): Offer alternative that
20819 uses vector registers.
20820 * config/aarch64/iterators.md: Add attributes rtn and vas.
20822 2013-07-26 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
20823 Richard Earnshaw <richard.earnshaw@arm.com>
20825 * combine.c (simplify_comparison): Re-canonicalize operands
20827 * config/arm/arm.md (movcond_addsi): New splitter.
20829 2013-07-25 Sterling Augustine <saugustine@google.com>
20831 * dwarf2out.c (size_of_pubnames): Move code to...
20832 (include_pubname_in_output): ...here. New.
20833 (want_pubnames): Rearrange.
20834 (output_pubnames): Call include_pubname_in_output. Move assertion.
20836 2013-07-25 Cameron McInally <cameron.mcinally@nyu.edu>
20838 * doc/extend.texi: Fix return types for __builtin_ia32_cmp*s builtins.
20840 2013-07-25 Cameron McInally <cameron.mcinally@nyu.edu>
20843 * doc/extend.texi: Remove obsolete builtins. Fix
20844 typo for __builtin_ia32_loadss and __builtin_ia32_cmpnltss.
20846 2013-07-25 Jan Hubicka <jh@suse.cz>
20848 * cgraph.c (release_function_body): Break out from ...
20849 (cgraph_release_function_body): ... this one; also release DECL_RESULT
20850 and DECL_ARGUMENTS.
20851 * ipa-cp.c (get_replacement_map): Add parm_num argument; do not set
20852 old_tree in the map.
20853 (create_specialized_node): Update.
20854 * lto-cgraph.c (output_node_opt_summary): Do not translate old_tree
20856 * cgraphclones.c (cgraph_create_virtual_clone): Do not copy
20857 DECL_ARGUMENTS, DECL_INITIAL and DECL_RESULT.
20858 * ipa-prop.c (ipa_populate_param_decls): Look for origin of clones.
20859 * tree-inline.c (initialize_cfun): Initialize DECL_ARGUMENTS and
20862 2013-07-25 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
20864 * config/arm/arm.md (arm_addsi3, addsi3_carryin_<optab>,
20865 addsi3_carryin_alt2_<optab>): Correct output template.
20867 2013-07-25 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
20869 * config/arm/arm-fixed.md (ssmulsa3, usmulusa3):
20870 Adjust for arm_restrict_it.
20871 Remove trailing whitespace.
20873 2013-07-25  Mark Kettenis  <kettenis@openbsd.org>
20875 * config/pa/pa.c (pa_trampoline_init): Emit __enable_execute_stack
20876 libcall if HAVE_ENABLE_EXECUTE_STACK is defined.
20878 * config.gcc (hppa-*-openbsd*): Don't set tmake_file.
20880 2013-07-25 Vladimir Makarov <vmakarov@redhat.com>
20882 PR rtl-optimization/57960
20883 * lra-constraints.c (process_alt_operands): Use the right mode
20884 when checking strict_low.
20886 2013-07-25 Jan Hubicka <jh@suse.cz>
20888 * lto-symtab.c (lto_cgraph_replace_node): Release function body.
20889 * cgraph.c (cgraph_remove_node): Do not release function body
20890 when in cgraph streaming.
20891 * ipa.c (process_references, symtab_remove_unreachable_nodes): Objects
20892 in other partitions are not considered reachable; fix handling of
20895 2013-07-25 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
20897 * config/arm/arm.md (*sibcall_insn): Remove unnecessary space.
20899 2013-07-25 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
20904 * config/arm/arm.md ("*sibcall_insn): Replace use of
20905 Ss with US. Adjust output for v5 and v4t.
20906 (*sibcall_value_insn): Likewise and loosen predicate on operand0.
20908 * config/arm/constraints.md ("Ss"): Rename to US.
20910 2013-07-25 Terry Guo <terry.guo@arm.com>
20912 * config/arm/arm.c (thumb1_size_rtx_costs): Assign proper cost for
20913 shift_add/shift_sub0/shift_sub1 RTXs.
20915 2013-07-24 Bill Schmidt <wschmidt@linux.ibm.com>
20916 Anton Blanchard <anton@au1.ibm.com>
20918 * config/rs6000/altivec.md (altivec_vpkpx): Handle little endian.
20919 (altivec_vpks<VI_char>ss): Likewise.
20920 (altivec_vpks<VI_char>us): Likewise.
20921 (altivec_vpku<VI_char>us): Likewise.
20922 (altivec_vpku<VI_char>um): Likewise.
20924 2013-07-24 David Malcolm <dmalcolm@redhat.com>
20926 Introduce context class.
20928 * Makefile.in (CONTEXT_H): New.
20929 (OBJS): Add context.o.
20930 (toplev.o): Add CONTEXT_H to dependencies.
20933 * toplev.c (general_init): Create the singleton gcc::context instance.
20939 2013-07-24 Joern Rennecke <joern.rennecke@embecosm.com>
20941 PR rtl-optimization/57968
20942 * mode-switching.c (create_pre_exit): Allow instructions that
20943 don't set a return register to need a non-exit mode.
20945 2013-07-24 Bill Schmidt <wschmidt@vnet.linux.ibm.com>
20946 Anton Blanchard <anton@au1.ibm.com>
20948 * config/rs6000/vector.md (vec_realign_load_<mode>): Reorder input
20949 operands to vperm for little endian.
20950 * config/rs6000/rs6000.c (rs6000_expand_builtin): Use lvsr instead
20951 of lvsl to create the control mask for a vperm for little endian.
20953 2013-07-23 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
20954 Anton Blanchard <anton@au1.ibm.com>
20956 * config/rs6000/rs6000.c (altivec_expand_vec_perm_const): Reverse
20957 two operands for little-endian.
20959 2013-07-23 Steve Ellcey <sellcey@mips.com>
20961 * config/mips/mips.c (mips_case_values_threshold): New.
20962 (TARGET_CASE_VALUES_THRESHOLD): Define.
20964 2013-07-23 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
20965 Anton Blanchard <anton@au1.ibm.com>
20967 * config/rs6000/rs6000.c (altivec_expand_vec_perm_const): Correct
20968 selection of field for vector splat in little endian mode.
20970 2013-07-23 Michael Meissner <meissner@linux.vnet.ibm.com>
20972 * config/rs6000/vector.md (xor<mode>3): Move 128-bit boolean
20973 expanders to rs6000.md.
20974 (ior<mode>3): Likewise.
20975 (and<mode>3): Likewise.
20976 (one_cmpl<mode>2): Likewise.
20977 (nor<mode>3): Likewise.
20978 (andc<mode>3): Likewise.
20979 (eqv<mode>3): Likewise.
20980 (nand<mode>3): Likewise.
20981 (orc<mode>3): Likewise.
20983 * config/rs6000/rs6000-protos.h (rs6000_split_logical): New
20986 * config/rs6000/rs6000.c (rs6000_split_logical_inner): Add support
20987 to split multi-word logical operations.
20988 (rs6000_split_logical_di): Likewise.
20989 (rs6000_split_logical): Likewise.
20991 * config/rs6000/vsx.md (VSX_L2): Delete, no longer used.
20992 (vsx_and<mode>3_32bit): Move 128-bit logical insns to rs6000.md,
20993 and allow TImode operations in 32-bit.
20994 (vsx_and<mode>3_64bit): Likewise.
20995 (vsx_ior<mode>3_32bit): Likewise.
20996 (vsx_ior<mode>3_64bit): Likewise.
20997 (vsx_xor<mode>3_32bit): Likewise.
20998 (vsx_xor<mode>3_64bit): Likewise.
20999 (vsx_one_cmpl<mode>2_32bit): Likewise.
21000 (vsx_one_cmpl<mode>2_64bit): Likewise.
21001 (vsx_nor<mode>3_32bit): Likewise.
21002 (vsx_nor<mode>3_64bit): Likewise.
21003 (vsx_andc<mode>3_32bit): Likewise.
21004 (vsx_andc<mode>3_64bit): Likewise.
21005 (vsx_eqv<mode>3_32bit): Likewise.
21006 (vsx_eqv<mode>3_64bit): Likewise.
21007 (vsx_nand<mode>3_32bit): Likewise.
21008 (vsx_nand<mode>3_64bit): Likewise.
21009 (vsx_orc<mode>3_32bit): Likewise.
21010 (vsx_orc<mode>3_64bit): Likewise.
21012 * config/rs6000/rs6000.h (VLOGICAL_REGNO_P): Always allow vector
21013 logical types in GPRs.
21015 * config/rs6000/altivec.md (altivec_and<mode>3): Move 128-bit
21016 logical insns to rs6000.md, and allow TImode operations in
21018 (altivec_ior<mode>3): Likewise.
21019 (altivec_xor<mode>3): Likewise.
21020 (altivec_one_cmpl<mode>2): Likewise.
21021 (altivec_nor<mode>3): Likewise.
21022 (altivec_andc<mode>3): Likewise.
21024 * config/rs6000/rs6000.md (BOOL_128): New mode iterators and mode
21025 attributes for moving the 128-bit logical operations into
21027 (BOOL_REGS_OUTPUT): Likewise.
21028 (BOOL_REGS_OP1): Likewise.
21029 (BOOL_REGS_OP2): Likewise.
21030 (BOOL_REGS_UNARY): Likewise.
21031 (BOOL_REGS_AND_CR0): Likewise.
21032 (one_cmpl<mode>2): Add support for DI logical operations on
21033 32-bit, splitting the operations to 32-bit.
21034 (anddi3): Likewise.
21035 (iordi3): Likewise.
21036 (xordi3): Likewise.
21037 (and<mode>3, 128-bit types): Rewrite 2013-06-06 logical operator
21038 changes to combine the 32/64-bit code, allow logical operations on
21039 TI mode in 32-bit, and to use similar match_operator patterns like
21040 scalar mode uses. Combine the Altivec and VSX code for logical
21041 operations, and move it here.
21042 (ior<mode>3, 128-bit types): Likewise.
21043 (xor<mode>3, 128-bit types): Likewise.
21044 (one_cmpl<mode>3, 128-bit types): Likewise.
21045 (nor<mode>3, 128-bit types): Likewise.
21046 (andc<mode>3, 128-bit types): Likewise.
21047 (eqv<mode>3, 128-bit types): Likewise.
21048 (nand<mode>3, 128-bit types): Likewise.
21049 (orc<mode>3, 128-bit types): Likewise.
21050 (and<mode>3_internal): Likewise.
21051 (bool<mode>3_internal): Likewise.
21052 (boolc<mode>3_internal1): Likewise.
21053 (boolc<mode>3_internal2): Likewise.
21054 (boolcc<mode>3_internal1): Likewise.
21055 (boolcc<mode>3_internal2): Likewise.
21056 (eqv<mode>3_internal1): Likewise.
21057 (eqv<mode>3_internal2): Likewise.
21058 (one_cmpl1<mode>3_internal): Likewise.
21060 2013-07-23 David Holsgrove <david.holsgrove@xilinx.com>
21062 * config/microblaze/microblaze.c (microblaze_expand_prologue):
21063 Rename flag_stack_usage to flag_stack_usage_info.
21065 2013-07-23 David Holsgrove <david.holsgrove@xilinx.com>
21067 * config/microblaze/sync.md: New file.
21068 * config/microblaze/microblaze.md: Include sync.md
21069 * config/microblaze/microblaze.c: Add print_operand 'y'.
21070 * config/microblaze/constraints.md: Add memory_contraint
21071 'Q' which is a single register.
21073 2013-07-23 Eric Botcazou <ebotcazou@adacore.com>
21075 * doc/invoke.texi (SPARC Options): Document new leon3 processor value.
21077 2013-07-22 Po-Chun Chang <pchang9@cs.wisc.edu>
21079 * reload.c (find_reloads): Exit loop once we find this operand
21080 cannot be reloaded somehow for this alternative.
21082 * reload.c (find_reloads): Exit loop once we find a hard register.
21084 * rtlanal.c (computed_jump_p): Exit loop once we find label
21087 * i386.c (ix86_pad_returns): Exit loop after setting replace.
21089 * cfgloopmanip.c (remove_path): Exit loop after setting
21092 * gensupport.c (subst_dup): Avoid loop if code is not
21093 MATCH_DUP nor MATCH_OP_DUP.
21095 2013-07-23 Nicklas Bo Jensen <nbjensen@gmail.com>
21097 * doc/md.texi (Machine-Specific Peephole Optimizers): Fix a typo.
21099 2013-07-23 Yufeng Zhang <yufeng.zhang@arm.com>
21101 * config/aarch64/aarch64.c (aarch64_hard_regno_mode_ok): Also return
21102 true for SP_REGNUM if mode == ptr_mode.
21103 * config/aarch64/aarch64.h (ADDITIONAL_REGISTER_NAMES): Add "wsp"
21104 with value R0_REGNUM + 31.
21106 2013-07-23 Yufeng Zhang <yufeng.zhang@arm.com>
21108 * config/aarch64/aarch64.c (aarch64_pad_arg_upward): In big-endian,
21109 pad pointer-typed argument downward.
21111 2013-07-23 Yufeng Zhang <yufeng.zhang@arm.com>
21113 * config/aarch64/aarch64.h (TARGET_CPU_CPP_BUILTINS): Define _ILP32
21114 and __ILP32__ when the ILP32 model is in use.
21116 2013-07-23 Yufeng Zhang <yufeng.zhang@arm.com>
21118 * config/aarch64/aarch64.c (POINTER_BYTES): New define.
21119 (aarch64_load_symref_appropriately): In the case of
21120 SYMBOL_SMALL_ABSOLUTE, use the mode of 'dest' instead of Pmode
21121 to generate new rtx; likewise to the case of SYMBOL_SMALL_GOT.
21122 (aarch64_expand_mov_immediate): In the case of SYMBOL_FORCE_TO_MEM,
21123 change to pass 'ptr_mode' to force_const_mem and zero-extend 'mem'
21124 if 'mode' doesn't equal to 'ptr_mode'.
21125 (aarch64_output_mi_thunk): Add an assertion on the alignment of
21126 'vcall_offset'; change to call aarch64_emit_move differently depending
21127 on whether 'Pmode' equals to 'ptr_mode' or not; use 'POINTER_BYTES'
21128 to calculate the upper bound of 'vcall_offset'.
21129 (aarch64_cannot_force_const_mem): Change to also return true if
21131 (aarch64_legitimize_reload_address): In the case of large
21132 displacements, add new local variable 'xmode' and an assertion
21133 based on it; change to use 'xmode' to generate the new rtx and
21135 (aarch64_asm_trampoline_template): Change to generate the template
21136 differently depending on TARGET_ILP32 or not; change to use
21137 'POINTER_BYTES' in the argument passed to assemble_aligned_integer.
21138 (aarch64_trampoline_size): Removed.
21139 (aarch64_trampoline_init): Add new local constant 'tramp_code_sz'
21140 and replace immediate literals with it. Change to use 'ptr_mode'
21141 instead of 'DImode' and call convert_memory_address if the mode
21142 of 'fnaddr' doesn't equal to 'ptr_mode'.
21143 (aarch64_elf_asm_constructor): Change to use assemble_aligned_integer
21145 (aarch64_elf_asm_destructor): Likewise.
21146 * config/aarch64/aarch64.h (TRAMPOLINE_SIZE): Change to be dependent
21147 on TARGET_ILP32 instead of aarch64_trampoline_size.
21148 * config/aarch64/aarch64.md (movsi_aarch64): Add new alternatives
21149 of 'mov' between WSP and W registers as well as 'adr' and 'adrp'.
21150 (loadwb_pair<GPI:mode>_<PTR:mode>): Rename to ...
21151 (loadwb_pair<GPI:mode>_<P:mode>): ... this. Replace PTR with P.
21152 (storewb_pair<GPI:mode>_<PTR:mode>): Likewise; rename to ...
21153 (storewb_pair<GPI:mode>_<P:mode>): ... this.
21154 (add_losym): Change to 'define_expand' and call gen_add_losym_<mode>
21155 depending on the value of 'mode'.
21156 (add_losym_<mode>): New.
21157 (ldr_got_small_<mode>): New, based on ldr_got_small.
21158 (ldr_got_small): Remove.
21159 (ldr_got_small_sidi): New.
21160 * config/aarch64/iterators.md (P): New.
21161 (PTR): Change to 'ptr_mode' in the condition.
21163 2013-07-23 Yufeng Zhang <yufeng.zhang@arm.com>
21165 * config.gcc (aarch64*-*-*): Support --with-abi.
21166 (aarch64*-*-elf): Support --with-multilib-list.
21167 (aarch64*-*-linux*): Likewise.
21168 (supported_defaults): Add abi to aarch64*-*-*.
21169 * configure.ac: Mention AArch64 for --with-multilib-list.
21170 * configure: Re-generated.
21171 * config/aarch64/biarchilp32.h: New file.
21172 * config/aarch64/biarchlp64.h: New file.
21173 * config/aarch64/aarch64-elf.h (ENDIAN_SPEC): New define.
21175 (MULTILIB_DEFAULTS): Ditto.
21176 (DRIVER_SELF_SPECS): Ditto.
21177 (ASM_SPEC): Update to also substitute -mabi.
21178 * config/aarch64/aarch64-elf-raw.h (LINK_SPEC): Add linker script
21179 file whose name depends on -mabi= and -mbig-endian.
21180 * config/aarch64/aarch64.h (LONG_TYPE_SIZE): Change to depend on
21182 (POINTER_SIZE): New define.
21183 (POINTERS_EXTEND_UNSIGNED): Ditto.
21184 (enum aarch64_abi_type): New enumeration tag.
21185 (AARCH64_ABI_LP64, AARCH64_ABI_ILP32): New enumerators.
21186 (AARCH64_ABI_DEFAULT): Define to AARCH64_ABI_LP64 if undefined.
21187 (TARGET_ILP32): New define.
21188 * config/aarch64/aarch64.opt (mabi): New.
21189 (aarch64_abi): New.
21190 (ilp32, lp64): New values for -mabi.
21191 * config/aarch64/t-aarch64 (comma): New define.
21192 (MULTILIB_OPTIONS): Ditto.
21193 (MULTILIB_DIRNAMES): Ditto.
21194 * config/aarch64/t-aarch64-linux (MULTIARCH_DIRNAME): New define.
21195 * doc/invoke.texi: Document -mabi for AArch64.
21197 2013-07-23 Georg-Johann Lay <avr@gjlay.de>
21199 * config/avr/avr.md: Explain asm print modifier 'r' for REG.
21201 2013-07-22 Bill Schmidt <wschmidt@vnet.linux.ibm.com>
21202 Anton Blanchard <anton@au1.ibm.com>
21204 * config/rs6000/rs6000.c (rs6000_expand_vector_init): Fix
21205 endianness when selecting field to splat.
21207 2013-07-22 Eric Christopher <echristo@gmail.com>
21209 * dwarf2out.c (die_odr_checksum): New function to use
21210 CHECKSUM_ macros and ULEB128 for DIE tag.
21211 (generate_type_signature): Use.
21213 2013-07-22 Eric Botcazou <ebotcazou@adacore.com>
21215 * config.gcc (sparc*-*-*): Accept leon3 processor.
21216 (sparc-leon*-*): Merge with sparc*-*-* and add leon3 support.
21217 * doc/invoke.texi (SPARC Options): Adjust -mfix-ut699 entry.
21218 * config/sparc/sparc-opts.h (enum processor_type): Add PROCESSOR_LEON3.
21219 * config/sparc/sparc.opt (enum processor_type): Add leon3.
21220 (mfix-ut699): Adjust comment.
21221 * config/sparc/sparc.h (TARGET_CPU_leon3): New define.
21222 (CPP_CPU32_DEFAULT_SPEC): Add leon3 support.
21223 (CPP_CPU_SPEC): Likewise.
21224 (ASM_CPU_SPEC): Likewise.
21225 * config/sparc/sparc.c (leon3_cost): New constant.
21226 (sparc_option_override): Add leon3 support.
21227 (mem_ref): New function.
21228 (sparc_gate_work_around_errata): Return true if -mfix-ut699 is enabled.
21229 (sparc_do_work_around_errata): Look into the instruction in the delay
21230 slot and adjust accordingly. Add fix for the data cache nullify issues
21231 of the UT699. Change insertion position for the NOP.
21232 * config/sparc/leon.md (leon_fpalu, leon_fpmds, write_buf): Delete.
21233 (leon3_load): New reservation.
21234 (leon_store): Bump latency to 2.
21235 (grfpu): New automaton.
21236 (grfpu_alu): New unit.
21237 (grfpu_ds): Likewise.
21238 (leon_fp_alu): Adjust.
21239 (leon_fp_mult): Delete.
21240 (leon_fp_div): Split into leon_fp_divs and leon_fp_divd.
21241 (leon_fp_sqrt): Split into leon_fp_sqrts and leon_fp_sqrtd.
21242 * config/sparc/sparc.md (cpu): Add leon3.
21243 * config/sparc/sync.md (atomic_exchangesi): Disable if -mfix-ut699.
21244 (swapsi): Likewise.
21245 (atomic_test_and_set): Likewise.
21246 (ldstub): Likewise.
21248 2013-07-22 Jürgen Urban <JuergenUrban@gmx.de>
21250 * config.gcc (mips*-*-*): Add --with-fpu support. Make single the
21251 default for R5900 targets.
21252 * config/mips/mips.h (OPTION_DEFAULT_SPECS): Handle --with-fpu.
21253 (ISA_HAS_LDC1_SDC1): Set to false for TARGET_MIPS5900.
21254 * config/mips/mips.c (mips_option_override): Report an error for
21255 -march=r5900 -mhard-float -mdouble-float. Use spu_single_format
21256 for -march=r5900 -mhard-float.
21258 2013-07-22 Po-Chun Chang <pchang9@cs.wisc.edu>
21260 * df-problems.c (can_move_insns_across): Exit loop once we
21261 find a non-fixed, non-global register.
21263 * ipa-pure-const.c (propagate_nothrow): Exit loop after
21266 * omega.c (omega_eliminate_red): Break after setting red_found.
21267 (omega_problem_has_red_equations): Similarly after setting found.
21268 (omega_query_variable): Similarly after setting coupled.
21270 2013-07-22 Marek Polacek <polacek@redhat.com>
21272 * gimplify.c: Don't include gimple.h twice.
21274 2013-07-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
21276 * config/arm/constraints.md (Pd): Allow TARGET_THUMB
21277 instead of TARGET_THUMB1.
21278 (Pz): New constraint.
21279 * config/arm/arm.md (arm_addsi3): Add alternatives for 16-bit
21281 (compare_negsi_si): Likewise.
21282 (compare_addsi2_op0): Likewise.
21283 (compare_addsi2_op1): Likewise.
21284 (addsi3_carryin_<optab>): Likewise.
21285 (addsi3_carryin_alt2_<optab>): Likewise.
21286 (addsi3_carryin_shift_<optab>): Disable cond_exec variant
21287 for arm_restrict_it.
21288 (subsi3_carryin): Likewise.
21289 (arm_subsi3_insn): Add alternatives for 16-bit encoding.
21290 (minmax_arithsi): Disable for arm_restrict_it.
21291 (minmax_arithsi_non_canon): Adjust for arm_restrict_it.
21292 (satsi_<SAT:code>): Disable cond_exec variant for arm_restrict_it.
21293 (satsi_<SAT:code>_shift): Likewise.
21294 (arm_shiftsi3): Add alternative for 16-bit encoding.
21295 (arm32_movhf): Disable for arm_restrict_it.
21296 (arm_cmpdi_unsigned): Add alternatives for 16-bit encoding.
21297 (arm_movtas_ze): Disable cond_exec variant for arm_restrict_it.
21299 2013-07-22 Sofiane Naci <sofiane.naci@arm.com>
21301 * config/arm/arm.md (attribute "insn"): Delete.
21302 (attribute "type"): Add "mov_imm", "mov_reg", "mov_shift",
21303 "mov_shift_reg", "mvn_imm", "mvn_reg", "mvn_shift" and "mvn_shift_reg".
21304 (not_shiftsi): Update for attribute change.
21305 (not_shiftsi_compare0): Likewise.
21306 (not_shiftsi_compare0_scratch): Likewise.
21307 (arm_one_cmplsi2): Likewise.
21308 (thumb1_one_cmplsi2): Likewise.
21309 (notsi_compare0): Likewise.
21310 (notsi_compare0_scratch): Likewise.
21311 (thumb1_movdi_insn): Likewise.
21312 (arm_movsi_insn): Likewise.
21313 (movhi_insn_arch4): Likewise.
21314 (movhi_bytes): Likewise.
21315 (arm_movqi_insn): Likewise.
21316 (thumb1_movqi_insn): Likewise.
21317 (arm32_movhf): Likewise.
21318 (thumb1_movhf): Likewise.
21319 (arm_movsf_soft_insn): Likewise.
21320 (thumb1_movsf_insn): Likewise.
21321 (thumb_movdf_insn): Likewise.
21322 (movsicc_insn): Likewise.
21323 (movsfcc_soft_insn): Likewise.
21324 (and_scc): Likewise.
21325 (cond_move): Likewise.
21326 (if_move_not): Likewise.
21327 (if_not_move): Likewise.
21328 (if_shift_move): Likewise.
21329 (if_move_shift): Likewise.
21330 (if_shift_shift): Likewise.
21331 (if_not_arith): Likewise.
21332 (if_arith_not): Likewise.
21333 (cond_move_not): Likewise.
21334 * config/arm/neon.md (neon_mov<mode>): Update for attribute change.
21335 (neon_mov<mode>): Likewise.
21336 * config/arm/vfp.md (arm_movsi_vfp): Update for attribute change.
21337 (thumb2_movsi_vfp): Likewise.
21338 (movsf_vfp): Likewise.
21339 (thumb2_movsf_vfp): Likewise.
21340 * config/arm/arm.c (xscale_sched_adjust_cost): Update for attribute
21342 (cortexa7_older_only): Likewise.
21343 (cortexa7_younger): Likewise.
21344 * config/arm/arm1020e.md (1020alu_op): Update for attribute change.
21345 (1020alu_shift_op): Likewise.
21346 (1020alu_shift_reg_op): Likewise.
21347 * config/arm/arm1026ejs.md (alu_op): Update for attribute change.
21348 (alu_shift_op): Likewise.
21349 (alu_shift_reg_op): Likewise.
21350 * config/arm/arm1136jfs.md (11_alu_op): Update for attribute change.
21351 (11_alu_shift_op): Likewise.
21352 (11_alu_shift_reg_op): Likewise.
21353 * config/arm/arm926ejs.md (9_alu_op): Update for attribute change.
21354 (9_alu_shift_reg_op): Likewise.
21355 * config/arm/cortex-a15.md (cortex_a15_alu): Update for attribute
21357 (cortex_a15_alu_shift): Likewise.
21358 (cortex_a15_alu_shift_reg): Likewise.
21359 * config/arm/cortex-a5.md (cortex_a5_alu): Update for attribute change.
21360 (cortex_a5_alu_shift): Likewise.
21361 * config/arm/cortex-a53.md (cortex_a53_alu): Update for attribute
21363 (cortex_a53_alu_shift): Likewise.
21364 * config/arm/cortex-a7.md (cortex_a7_alu_imm): Update for attribute
21366 (cortex_a7_alu_reg): Likewise.
21367 (cortex_a7_alu_shift): Likewise.
21368 * config/arm/cortex-a8.md (cortex_a8_alu): Update for attribute change.
21369 (cortex_a8_alu_shift): Likewise.
21370 (cortex_a8_alu_shift_reg): Likewise.
21371 (cortex_a8_mov): Likewise.
21372 * config/arm/cortex-a9.md (cortex_a9_dp): Update for attribute change.
21373 (cortex_a9_dp_shift): Likewise.
21374 * config/arm/cortex-m4.md (cortex_m4_alu): Update for attribute change.
21375 * config/arm/cortex-r4.md (cortex_r4_alu): Update for attribute change.
21376 (cortex_r4_mov): Likewise.
21377 (cortex_r4_alu_shift): Likewise.
21378 (cortex_r4_alu_shift_reg): Likewise.
21379 * config/arm/fa526.md (526_alu_op): Update for attribute change.
21380 (526_alu_shift_op): Likewise.
21381 * config/arm/fa606te.md (606te_alu_op): Update for attribute change.
21382 * config/arm/fa626te.md (626te_alu_op): Update for attribute change.
21383 (626te_alu_shift_op): Likewise.
21384 * config/arm/fa726te.md (726te_shift_op): Update for attribute change.
21385 (726te_alu_op): Likewise.
21386 (726te_alu_shift_op): Likewise.
21387 (726te_alu_shift_reg_op): Likewise.
21388 * config/arm/fmp626.md (mp626_alu_op): Update for attribute change.
21389 (mp626_alu_shift_op): Likewise.
21390 * config/arm/marvell-pj4.md (pj4_alu_e1): Update for attribute change.
21391 (pj4_alu_e1_conds): Likewise.
21392 (pj4_alu): Likewise.
21393 (pj4_alu_conds): Likewise.
21394 (pj4_shift): Likewise.
21395 (pj4_shift_conds): Likewise.
21396 (pj4_alu_shift): Likewise.
21397 (pj4_alu_shift_conds): Likewise.
21399 2013-07-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
21401 * config/arm/predicates.md (shiftable_operator_strict_it):
21403 * config/arm/thumb2.md (thumb_andsi_not_shiftsi_si):
21404 Disable cond_exec version for arm_restrict_it.
21405 (thumb2_smaxsi3): Convert to generate cond_exec.
21406 (thumb2_sminsi3): Likewise.
21407 (thumb32_umaxsi3): Likewise.
21408 (thumb2_uminsi3): Likewise.
21409 (thumb2_abssi2): Adjust constraints for arm_restrict_it.
21410 (thumb2_neg_abssi2): Likewise.
21411 (thumb2_mov_scc): Add alternative for 16-bit encoding.
21412 (thumb2_movsicc_insn): Adjust alternatives.
21413 (thumb2_mov_negscc): Disable for arm_restrict_it.
21414 (thumb2_mov_negscc_strict_it): New pattern.
21415 (thumb2_mov_notscc_strict_it): New pattern.
21416 (thumb2_mov_notscc): Disable for arm_restrict_it.
21417 (thumb2_ior_scc): Likewise.
21418 (thumb2_ior_scc_strict_it): New pattern.
21419 (thumb2_cond_move): Adjust for arm_restrict_it.
21420 (thumb2_cond_arith): Disable for arm_restrict_it.
21421 (thumb2_cond_arith_strict_it): New pattern.
21422 (thumb2_cond_sub): Adjust for arm_restrict_it.
21423 (thumb2_movcond): Likewise.
21424 (thumb2_extendqisi_v6): Disable cond_exec variant for arm_restrict_it.
21425 (thumb2_zero_extendhisi2_v6): Likewise.
21426 (thumb2_zero_extendqisi2_v6): Likewise.
21427 (orsi_notsi_si): Likewise.
21428 (orsi_not_shiftsi_si): Likewise.
21430 2013-07-22 Georg-Johann Lay <avr@gjlay.de>
21432 * config/avr/avr.c (avr_out_xload): No SBIS around LPM so that
21433 instruction sequence is 1 byte shorter.
21435 2013-07-22 Uros Bizjak <ubizjak@gmail.com>
21437 * config/i386/i386.md (nonlocal_goto_receiver): Delete insn if
21438 it is not needed after split.
21440 2013-07-20 Iain Sandoe <iain@codesourcery.com>
21443 * config/i386/i386.c (output_set_got) [TARGET_MACHO]: Adjust to emit a
21444 second label for nonlocal goto receivers. Don't output pic base labels
21445 unless we're producing PIC; mark that action unreachable().
21446 (ix86_save_reg): If the function contains a nonlocal label, save the
21448 * config/darwin-protos.h (machopic_should_output_picbase_label): New.
21449 * config/darwin.c (emitted_pic_label_num): New GTY.
21450 (update_pic_label_number_if_needed): New.
21451 (machopic_output_function_base_name): Adjust for nonlocal receiver
21453 (machopic_should_output_picbase_label): New.
21454 * config/i386/i386.md (enum unspecv): UNSPECV_NLGR: New.
21455 (nonlocal_goto_receiver): New insn and split.
21457 2013-07-20 James Greenhalgh <james.greenhalgh@arm.com>
21459 * config/aarch64/aarch64-builtins.c
21460 (aarch64_fold_builtin): Fold abs in all modes.
21461 * config/aarch64/aarch64-simd-builtins.def
21462 (abs): Enable for all modes.
21463 * config/aarch64/arm_neon.h
21464 (vabs<q>_s<8,16,32,64): Rewrite using builtins.
21465 (vabs_f64): Add missing intrinsic.
21467 2013-07-19 Ian Bolton <ian.bolton@arm.com>
21469 * config/aarch64/arm_neon.h (vabs_s64): New function
21471 2013-07-19 Georg-Johann Lay <avr@gjlay.de>
21474 * config/avr/avr-fixed.md (round<mode>3_const): Turn expander to insn.
21475 * config/avr/avr.md (adjust_len): Add `round'.
21476 * config/avr/avr-protos.h (avr_out_round): New prototype.
21477 (avr_out_plus): Add `out_label' argument.
21478 * config/avr/avr.c (avr_out_plus_1): Add `out_label' argument.
21479 (avr_out_plus): Pass down `out_label' to avr_out_plus_1.
21480 Handle the case where `insn' is just a pattern.
21481 (avr_out_bitop): Handle the case where `insn' is just a pattern.
21482 (avr_out_round): New function.
21483 (avr_adjust_insn_length): Handle ADJUST_LEN_ROUND.
21485 2013-07-18 David Holsgrove <david.holsgrove@xilinx.com>
21487 * config/microblaze/microblaze.c (microblaze_expand_prologue):
21488 Add check for flag_stack_usage to handle -fstack-usage support
21490 2013-07-18 Pat Haugen <pthaugen@us.ibm.com>
21492 * config/rs6000/rs6000.c (rs6000_option_override_internal): Adjust flag
21493 interaction for new Power8 flags and VSX.
21495 2013-07-18 Sriraman Tallam <tmsriram@google.com>
21497 PR middle-end/57698
21498 * tree-inline.c (expand_call_inline): Emit errors during
21499 early_inlining only if optimization is not turned on.
21501 2013-07-18 David Malcolm <dmalcolm@redhat.com>
21505 * passes.c (init_optimization_passes): Move the construction of
21506 the pass hierarchy into a new passes.def file.
21508 * Makefile.in (passes.o): Add dependency on passes.def.
21510 2013-07-18 David Malcolm <dmalcolm@redhat.com>
21512 * passes.c (init_optimization_passes): Introduce macros for
21513 constructing the tree of passes (INSERT_PASSES_AFTER,
21514 PUSH_INSERT_PASSES_WITHIN, POP_INSERT_PASSES,
21515 TERMINATE_PASS_LIST).
21517 2013-07-18 Vladimir Makarov <vmakarov@redhat.com>
21518 Wei Mi <wmi@google.com>
21520 PR rtl-optimization/57878
21521 * lra-assigns.c (assign_by_spills): Move non_reload_pseudos to the
21523 (reload_pseudo_compare_func): Check nregs first for reload
21526 2013-07-18 David Malcolm <dmalcolm@redhat.com>
21528 * tree-pass.h (pass_ipa_lto_wpa_fixup): Remove redundant decl.
21530 2013-07-18 Po-Chun Chang <pchang9@cs.wisc.edu>
21532 * read-rtl.c (validate_const_int): Once an invalid character is
21533 seen, quit the loop.
21535 * gengtype.c (write_roots): Similarly once we find the "deletable"
21536 or "if_marked" option.
21538 2013-07-18 Sofiane Naci <sofiane.naci@arm.com>
21540 * config/arm/arm.md (attribute "insn"): Delete values "mrs", "msr",
21541 "xtab" and "sat". Move value "clz" from here to ...
21542 (attriubte "type"): ... here.
21543 (satsi_<SAT:code>): Delete "insn" attribute.
21544 (satsi_<SAT:code>_shift): Likewise.
21545 (arm_zero_extendqisi2addsi): Likewise.
21546 (arm_extendqisi2addsi): Likewise.
21547 (clzsi2): Update for attribute changes.
21548 (rbitsi2): Likewise.
21549 * config/arm/arm-fixed.md (arm_ssatsihi_shift): Delete "insn"
21551 (arm_usatsihi): Likewise.
21552 * config/arm/cortex-a8.md (cortex_a8_alu): Update for attribute change.
21554 2013-07-18 Sofiane Naci <sofiane.naci@arm.com>
21556 * config/arm/arm.md (attribute "type"): Rename "simple_alu_imm" to
21557 "arlo_imm". Rename "alu_reg" to "arlo_reg". Rename "simple_alu_shift"
21558 to "extend". Split "alu_shift" into "shift" and "arlo_shift". Split
21559 "alu_shift_reg" into "shift_reg" and "arlo_shift_reg". List types
21560 in alphabetical order.
21561 (attribute "core_cycles"): Update for attribute changes.
21562 (arm_addsi3): Likewise.
21563 (addsi3_compare0): Likewise.
21564 (addsi3_compare0_scratch): Likewise.
21565 (addsi3_compare_op1): Likewise.
21566 (addsi3_compare_op2): Likewise.
21567 (compare_addsi2_op0): Likewise.
21568 (compare_addsi2_op1): Likewise.
21569 (addsi3_carryin_shift_<optab>): Likewise.
21570 (subsi3_carryin_shift): Likewise.
21571 (rsbsi3_carryin_shift): Likewise.
21572 (arm_subsi3_insn): Likewise.
21573 (subsi3_compare0): Likewise.
21574 (subsi3_compare): Likewise.
21575 (arm_andsi3_insn): Likewise.
21576 (thumb1_andsi3_insn): Likewise.
21577 (andsi3_compare0): Likewise.
21578 (andsi3_compare0_scratch): Likewise.
21579 (zeroextractsi_compare0_scratch
21580 (andsi_not_shiftsi_si): Likewise.
21581 (iorsi3_insn): Likewise.
21582 (iorsi3_compare0): Likewise.
21583 (iorsi3_compare0_scratch): Likewise.
21584 (arm_xorsi3): Likewise.
21585 (thumb1_xorsi3_insn): Likewise.
21586 (xorsi3_compare0): Likewise.
21587 (xorsi3_compare0_scratch): Likewise.
21588 (satsi_<SAT:code>_shift): Likewise.
21590 (arm_shiftsi3): Likewise.
21591 (shiftsi3_compare0): Likewise.
21592 (not_shiftsi): Likewise.
21593 (not_shiftsi_compare0): Likewise.
21594 (not_shiftsi_compare0_scratch): Likewise.
21595 (arm_one_cmplsi2): Likewise.
21596 (thumb_one_complsi2): Likewise.
21597 (notsi_compare0): Likewise.
21598 (notsi_compare0_scratch): Likewise.
21599 (thumb1_zero_extendhisi2): Likewise.
21600 (arm_zero_extendhisi2): Likewise.
21601 (arm_zero_extendhisi2_v6): Likewise.
21602 (arm_zero_extendhisi2addsi): Likewise.
21603 (thumb1_zero_extendqisi2): Likewise.
21604 (thumb1_zero_extendqisi2_v6): Likewise.
21605 (arm_zero_extendqisi2): Likewise.
21606 (arm_zero_extendqisi2_v6): Likewise.
21607 (arm_zero_extendqisi2addsi): Likewise.
21608 (thumb1_extendhisi2): Likewise.
21609 (arm_extendhisi2): Likewise.
21610 (arm_extendhisi2_v6): Likewise.
21611 (arm_extendqisi): Likewise.
21612 (arm_extendqisi_v6): Likewise.
21613 (arm_extendqisi2addsi): Likewise.
21614 (thumb1_extendqisi2): Likewise.
21615 (thumb1_movdi_insn): Likewise.
21616 (arm_movsi_insn): Likewise.
21617 (movsi_compare0): Likewise.
21618 (movhi_insn_arch4): Likewise.
21619 (movhi_bytes): Likewise.
21620 (arm_movqi_insn): Likewise.
21621 (thumb1_movqi_insn): Likewise.
21622 (arm32_movhf): Likewise.
21623 (thumb1_movhf): Likewise.
21624 (arm_movsf_soft_insn): Likewise.
21625 (thumb1_movsf_insn): Likewise.
21626 (movdf_soft_insn): Likewise.
21627 (thumb_movdf_insn): Likewise.
21628 (arm_cmpsi_insn): Likewise.
21629 (cmpsi_shiftsi): Likewise.
21630 (cmpsi_shiftsi_swp): Likewise.
21631 (arm_cmpsi_negshiftsi_si): Likewise.
21632 (movsicc_insn): Likewise.
21633 (movsfcc_soft_insn): Likewise.
21634 (arith_shiftsi): Likewise.
21635 (arith_shiftsi_compare0
21636 (arith_shiftsi_compare0_scratch
21637 (sub_shiftsi): Likewise.
21638 (sub_shiftsi_compare0
21639 (sub_shiftsi_compare0_scratch
21640 (and_scc): Likewise.
21641 (cond_move): Likewise.
21642 (if_plus_move): Likewise.
21643 (if_move_plus): Likewise.
21644 (if_move_not): Likewise.
21645 (if_not_move): Likewise.
21646 (if_shift_move): Likewise.
21647 (if_move_shift): Likewise.
21648 (if_shift_shift): Likewise.
21649 (if_not_arith): Likewise.
21650 (if_arith_not): Likewise.
21651 (cond_move_not): Likewise.
21652 (thumb1_ashlsi3): Set type attribute.
21653 (thumb1_ashrsi3): Likewise.
21654 (thumb1_lshrsi3): Likewise.
21655 (thumb1_rotrsi3): Likewise.
21656 (shiftsi3_compare0_scratch): Likewise.
21657 * config/arm/neon.md (neon_mov<mode>): Update for attribute changes.
21658 (neon_mov<mode>): Likewise.
21659 * config/arm/thumb2.md (thumb_andsi_not_shiftsi_si): Update for
21661 (thumb2_movsi_insn): Likewise.
21662 (thumb2_cmpsi_neg_shiftsi): Likewise.
21663 (thumb2_extendqisi_v6): Likewise.
21664 (thumb2_zero_extendhisi2_v6): Likewise.
21665 (thumb2_zero_extendqisi2_v6): Likewise.
21666 (thumb2_shiftsi3_short): Likewise.
21667 (thumb2_addsi3_compare0_scratch): Likewise.
21668 (orsi_not_shiftsi_si): Likewise.
21669 * config/arm/vfp.md (arm_movsi_vfp): Update for attribute changes.
21670 * config/arm/arm-fixed.md (arm_ssatsihi_shift): Update for attribute
21672 * config/arm/arm1020e.md (1020alu_op): Update for attribute changes.
21673 (1020alu_shift_op): Likewise.
21674 (1020alu_shift_reg_op): Likewise.
21675 * config/arm/arm1026ejs.md (alu_op): Update for attribute changes.
21676 (alu_shift_op): Likewise.
21677 (alu_shift_reg_op): Likewise.
21678 * config/arm/arm1136jfs.md (11_alu_op): Update for attribute changes.
21679 (11_alu_shift_op): Likewise.
21680 (11_alu_shift_reg_op): Likewise.
21681 * config/arm/arm926ejs.md (9_alu_op): Update for attribute changes.
21682 (9_alu_shift_reg_op): Likewise.
21683 * config/arm/cortex-a15.md (cortex_a15_alu): Update for attribute
21685 (cortex_a15_alu_shift): Likewise.
21686 (cortex_a15_alu_shift_reg): Likewise.
21687 * config/arm/cortex-a5.md (cortex_a5_alu): Update for attribute
21689 (cortex_a5_alu_shift): Likewise.
21690 * config/arm/cortex-a53.md (cortex_a53_alu) : Update for attribute
21692 (cortex_a53_alu_shift): Likewise.
21693 * config/arm/cortex-a7.md (cortex_a7_alu_imm): Update for attribute
21695 (cortex_a7_alu_reg): Likewise.
21696 (cortex_a7_alu_shift): Likewise.
21697 * config/arm/cortex-a8.md (cortex_a8_alu): Update for attribute
21699 (cortex_a8_alu_shift): Likewise.
21700 (cortex_a8_alu_shift_reg): Likewise.
21701 (cortex_a8_mov): Likewise.
21702 * config/arm/cortex-a9.md (cortex_a9_dp): Update for attribute changes.
21703 (cortex_a9_dp_shift): Likewise.
21704 * config/arm/cortex-m4.md (cortex_m4_alu): Update for attribute
21706 * config/arm/cortex-r4.md (cortex_r4_alu): Update for attribute
21708 (cortex_r4_mov): Likewise.
21709 (cortex_r4_alu_shift): Likewise.
21710 (cortex_r4_alu_shift_reg): Likewise.
21711 * config/arm/fa526.md (526_alu_op): Update for attribute changes.
21712 (526_alu_shift_op): Likewise.
21713 * config/arm/fa606te.md (606te_alu_op): Update for attribute changes.
21714 * config/arm/fa626te.md (626te_alu_op): Update for attribute changes.
21715 (626te_alu_shift_op): Likewise.
21716 * config/arm/fa726te.md (726te_shift_op): Update for attribute changes.
21717 (726te_alu_op): Likewise.
21718 (726te_alu_shift_op): Likewise.
21719 (726te_alu_shift_reg_op): Likewise.
21720 * config/arm/fmp626.md (mp626_alu_op): Update for attribute changes.
21721 (mp626_alu_shift_op): Likewise.
21722 * config/arm/marvell-pj4.md (pj4_alu_e1): Update for attribute changes.
21723 (pj4_alu_e1_conds): Likewise.
21724 (pj4_alu): Likewise.
21725 (pj4_alu_conds): Likewise.
21726 (pj4_shift): Likewise.
21727 (pj4_shift_conds): Likewise.
21728 (pj4_alu_shift): Likewise.
21729 (pj4_alu_shift_conds): Likewise.
21730 * config/arm/arm.c (xscale_sched_adjust_cost): Update for attribute
21732 (cortexa7_older_only): Likewise.
21733 (cortexa7_younger): Likewise.
21735 2013-07-18 David Malcolm <dmalcolm@redhat.com>
21737 * ipa-pure-const.c (generate_summary): Rename to...
21738 (pure_const_generate_summary): ... this.
21740 2013-07-17 Iain Sandoe <iain@codesourcery.com>
21742 * config/rs6000/darwin.h (REGISTER_NAMES): Add HTM registers.
21744 2013-07-17 Yvan Roux <yvan.roux@linaro.org>
21747 * config/arm/arm.c (gen_movmem_ldrd_strd): Fix unaligned load/store
21750 2013-07-17 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
21752 * config/s390/s390.c: (s390_expand_builtin): Allow -mhtm to be
21753 enabled without -march=zEC12.
21754 * config/s390/s390.h (TARGET_HTM): Do not require EC12 machine
21757 2013-07-16 Maciej W. Rozycki <macro@codesourcery.com>
21759 * config/mips/mips.h (ISA_HAS_FP4): Correct formatting.
21760 (ISA_HAS_FP_MADD4_MSUB4): Also enable for ISA_MIPS32R2.
21761 (ISA_HAS_NMADD4_NMSUB4): Remove the MODE argument; rewrite in
21762 terms of ISA_HAS_FP4, and also enable for ISA_MIPS32R2.
21763 (ISA_HAS_NMADD3_NMSUB3): Remove the MODE argument.
21764 * config/mips/mips.c (mips_rtx_costs) <PLUS>: Check for
21765 ISA_HAS_FP_MADD4_MSUB4 || ISA_HAS_FP_MADD3_MSUB3 rather than
21767 <MINUS, NEG>: Update according to changes to ISA_HAS_NMADD4_NMSUB4
21768 and ISA_HAS_NMADD3_NMSUB3.
21769 * config/mips/mips.md (nmadd4<mode>, nmadd3<mode>): Likewise.
21770 (nmadd4<mode>_fastmath, nmadd3<mode>_fastmath): Likewise.
21771 (nmsub4<mode>, nmsub3<mode>): Likewise.
21772 (nmsub4<mode>_fastmath, nmsub3<mode>_fastmath): Likewise.
21774 2013-07-16 Maciej W. Rozycki <macro@codesourcery.com>
21776 * config/mips/mips.h (ISA_HAS_NMADD4_NMSUB4): Remove
21777 TARGET_MIPS5400 checking.
21779 2013-07-16 Jakub Jelinek <jakub@redhat.com>
21780 Peter Bergner <bergner@vnet.ibm.com>
21782 * config/rs6000/rs6000.h (FIRST_PSEUDO_REGISTERS): Mention HTM
21783 registers in the comment.
21784 (DWARF_FRAME_REGISTERS): Subtract also the 3 HTM registers.
21785 (DWARF_REG_TO_UNWIND_COLUMN): Use DWARF_FRAME_REGISTERS
21786 rather than FIRST_PSEUDO_REGISTERS.
21788 2013-07-16 Peter Bergner <bergner@vnet.ibm.com>
21790 * config/rs6000/rs6000.c (rs6000_option_override_internal): Do not
21791 enable extra ISA flags with TARGET_HTM.
21793 2013-07-16 Maciej W. Rozycki <macro@codesourcery.com>
21795 * config/mips/mips.h (ISA_HAS_MULS, ISA_HAS_MSAC, ISA_HAS_MACC):
21798 2013-07-15 Cong Hou <congh@google.com>
21800 * tree-vect-data-refs.c (dr_group_sort_cmp): Do not use hash function
21801 in compare function for sorting.
21803 2013-07-15 Peter Bergner <bergner@vnet.ibm.com>
21805 * config.gcc (powerpc*-*-*): Install htmintrin.h and htmxlintrin.h.
21806 * config/rs6000/t-rs6000 (MD_INCLUDES): Add htm.md.
21807 * config/rs6000/rs6000.opt: Add -mhtm option.
21808 * config/rs6000/rs6000-cpus.def (POWERPC_MASKS): Add OPTION_MASK_HTM.
21809 (ISA_2_7_MASKS_SERVER): Add OPTION_MASK_HTM.
21810 * config/rs6000/rs6000-c.c (rs6000_target_modify_macros): Define
21811 __HTM__ if the HTM instructions are available.
21812 * config/rs6000/predicates.md (u3bit_cint_operand, u10bit_cint_operand,
21813 htm_spr_reg_operand): New define_predicates.
21814 * config/rs6000/rs6000.md (define_attr "type"): Add htm.
21815 (TFHAR_REGNO, TFIAR_REGNO, TEXASR_REGNO): New define_constants.
21817 * config/rs6000/rs6000-builtin.def (BU_HTM_0, BU_HTM_1, BU_HTM_2,
21818 BU_HTM_3, BU_HTM_SPR0, BU_HTM_SPR1): Add support macros for defining
21819 HTM builtin functions.
21820 * config/rs6000/rs6000.c (RS6000_BUILTIN_H): New macro.
21821 (rs6000_reg_names, alt_reg_names): Add HTM SPR register names.
21822 (rs6000_init_hard_regno_mode_ok): Add support for HTM instructions.
21823 (rs6000_builtin_mask_calculate): Likewise.
21824 (rs6000_option_override_internal): Likewise.
21825 (bdesc_htm): Add new HTM builtin support.
21826 (htm_spr_num): New function.
21827 (htm_spr_regno): Likewise.
21828 (rs6000_htm_spr_icode): Likewise.
21829 (htm_expand_builtin): Likewise.
21830 (htm_init_builtins): Likewise.
21831 (rs6000_expand_builtin): Add support for HTM builtin functions.
21832 (rs6000_init_builtins): Likewise.
21833 (rs6000_invalid_builtin, rs6000_opt_mask): Add support for -mhtm
21835 * config/rs6000/rs6000.h (ASM_CPU_SPEC): Add support for -mhtm.
21836 (TARGET_HTM, MASK_HTM): Define macros.
21837 (FIRST_PSEUDO_REGISTER): Adjust for new HTM SPR registers.
21838 (FIXED_REGISTERS): Likewise.
21839 (CALL_USED_REGISTERS): Likewise.
21840 (CALL_REALLY_USED_REGISTERS): Likewise.
21841 (REG_ALLOC_ORDER): Likewise.
21842 (enum reg_class): Likewise.
21843 (REG_CLASS_NAMES): Likewise.
21844 (REG_CLASS_CONTENTS): Likewise.
21845 (REGISTER_NAMES): Likewise.
21846 (ADDITIONAL_REGISTER_NAMES): Likewise.
21847 (RS6000_BTC_SPR, RS6000_BTC_VOID, RS6000_BTC_32BIT, RS6000_BTC_64BIT,
21848 RS6000_BTC_MISC_MASK, RS6000_BTM_HTM): New macros.
21849 (RS6000_BTM_COMMON): Add RS6000_BTM_HTM.
21850 * config/rs6000/htm.md: New file.
21851 * config/rs6000/htmintrin.h: New file.
21852 * config/rs6000/htmxlintrin.h: New file.
21854 2013-07-15 Marcus Shawcroft <marcus.shawcroft@arm.com>
21856 * config/aarch64/aarch64-protos.h (aarch64_symbol_type):
21857 Define SYMBOL_TINY_GOT, update comment.
21858 * config/aarch64/aarch64.c
21859 (aarch64_load_symref_appropriately): Handle SYMBOL_TINY_GOT.
21860 (aarch64_expand_mov_immediate): Likewise.
21861 (aarch64_print_operand): Likewise.
21862 (aarch64_classify_symbol): Likewise.
21863 * config/aarch64/aarch64.md (UNSPEC_GOTTINYPIC): Define.
21864 (ldr_got_tiny): Define.
21866 2013-07-13 Tobias Grosser <tobias@grosser.es>
21868 PR tree-optimization/54094
21869 * graphite-clast-to-gimple.c (translate_clast_for_loop): Derive the
21870 scheduling dimension for the parallelism check from the polyhedral
21871 information in the AST.
21872 * graphite-dependences.c (carries_deps): Do not assume the schedule is
21875 2013-07-13 Jason Merrill <jason@redhat.com>
21877 * print-tree.c (debug_vec_tree): Use debug_raw.
21878 (debug_raw (vec<tree, va_gc> &)): New.
21879 (debug_raw (vec<tree, va_gc> *)): New.
21880 * tree.h: Declare them.
21882 2013-07-13 Bin Cheng <bin.cheng@arm.com>
21884 * ifcvt.c (ifcvt_after_combine): New static variable.
21885 (cheap_bb_rtx_cost_p): Set scale to REG_BR_PROB_BASE when optimizing
21887 (if_convert): New parameter after_combine. Set ifcvt_after_combine.
21888 (rest_of_handle_if_conversion, rest_of_handle_if_after_combine,
21889 rest_of_handle_if_after_reload): Pass new argument for if_convert.
21891 2013-07-12 Maciej W. Rozycki <macro@codesourcery.com>
21893 * config/mips/mips.c (mips_expand_call): Remove empty statement.
21895 2013-07-12 Michael Matz <matz@suse.de>
21897 PR middle-end/55771
21898 * convert.c (convert_to_real): Reject non-float inner types.
21900 2013-07-12 Tejas Belagod <tejas.belagod@arm.com>
21902 * config/aarch64/aarch64-protos.h
21903 (aarch64_simd_immediate_valid_for_move): Remove.
21904 * config/aarch64/aarch64.c (simd_immediate_info): New member.
21905 (aarch64_simd_valid_immediate): Recognize idioms for shifting ones
21907 (aarch64_output_simd_mov_immediate): Print the correct shift specifier.
21909 2013-07-11 Steve Ellcey <sellcey@mips.com>
21911 * config/mips/mips.c (mips_conditional_register_usage): Do not
21912 use t[0-7] registers in MIPS16 mode when optimizing for size.
21914 2013-07-11 Sriraman Tallam <tmsriram@google.com>
21916 * config/i386/i386.c (dispatch_function_versions): Fix array
21917 indexing of function_version_info to match actual_versions.
21919 2013-07-11 Teresa Johnson <tejohnson@google.com>
21921 * vec.h (struct va_gc): Move release out-of-line.
21922 (va_gc::release): Call ggc_free on released vec.
21924 2013-07-11 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
21926 * config/rs6000/rs6000.md (""*tls_gd_low<TLSmode:tls_abi_suffix>"):
21927 Require GOT register as additional operand in UNSPEC.
21928 ("*tls_ld_low<TLSmode:tls_abi_suffix>"): Likewise.
21929 ("*tls_got_dtprel_low<TLSmode:tls_abi_suffix>"): Likewise.
21930 ("*tls_got_tprel_low<TLSmode:tls_abi_suffix>"): Likewise.
21931 ("*tls_gd<TLSmode:tls_abi_suffix>"): Update splitter.
21932 ("*tls_ld<TLSmode:tls_abi_suffix>"): Likewise.
21933 ("tls_got_dtprel_<TLSmode:tls_abi_suffix>"): Likewise.
21934 ("tls_got_tprel_<TLSmode:tls_abi_suffix>"): Likewise.
21936 2013-07-11 Georg-Johann Lay <avr@gjlay.de>
21939 * config/avr/avr.c (avr_set_current_function): Sanity-check signal
21940 name seen by assembler/linker rather if available.
21942 2013-07-11 Andreas Schwab <schwab@suse.de>
21944 * config/aarch64/aarch64-linux.h (CPP_SPEC): Define.
21946 2013-07-10 Vladimir Makarov <vmakarov@redhat.com>
21948 * lra-constraints.c (curr_insn_transform): Switch off optional reloads.
21950 2013-07-10 Joseph Myers <joseph@codesourcery.com>
21952 * doc/tm.texi.in: Move hook documentation to ....
21953 * target.def: ... here.
21955 * doc/tm.texi.in (TARGET_CANONICALIZE_COMPARISON): Remove stray
21956 text on @hook line.
21957 * doc/tm.texi: Regenerate.
21959 2013-07-10 Paolo Carlini <paolo.carlini@oracle.com>
21962 * doc/invoke.texi: Document -Wconditionally-supported.
21964 2013-07-10 Georg-Johann Lay <avr@gjlay.de>
21967 * config/avr/avr.c (avr_prologue_setup_frame): Trunk -size to mode
21970 2013-07-10 Georg-Johann Lay <avr@gjlay.de>
21973 * config/avr/avr-mcus.def (atmega16hva, atmega16hva2, atmega16hvb)
21974 (atmega16m1, atmega16u4, atmega32a, atmega32c1, atmega32hvb)
21975 (atmega32m1, atmega32u4, atmega32u6, atmega64c1, atmega64m1):
21976 Remove duplicate devices.
21977 * config/avr/gen-avr-mmcu-texi.c (print_mcus): Fail on duplicate MCUs.
21978 * config/avr/t-multilib: Regenerate.
21979 * config/avr/avr-tables.opt: Regenerate.
21980 * doc/avr-mmcu.texi: Regenerate.
21982 2013-07-10 Georg-Johann Lay <avr@gjlay.de>
21985 * config/avr/avr.opt (Waddr-space-convert): Fix typo.
21987 2013-07-10 Graham Stott <graham.stott@btinternet.com>
21989 * config/mips/mips.c (mips_rtx_costs): Very slightly increase
21990 the cost of MULT when optimizing for size.
21992 2013-07-10 Jan-Benedict Glaw <jbglaw@lug-owl.de>
21994 * config/cr16/cr16-protos.h: Don't include target.h.
21996 2013-07-09 Joseph Myers <joseph@codesourcery.com>
21998 * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Only
21999 adjust register size for TDmode and TFmode for VSX registers.
22001 2013-07-08 Kai Tietz <ktietz@redhat.com>
22004 * config/i386/i386.c (TARGET_FUNCTION_ATTRIBUTE_INLINABLE_P): Define as
22005 hook_bool_const_tree_true.
22007 2013-07-08 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
22009 * config/s390/s390.c: Replace F*_REGNUM with FPR*_REGNUM.
22010 * config/s390/s390.h: Remove F*_REGNUM macro definitions.
22011 * config/s390/s390.md: Define FPR*_REGNUM constants.
22012 Fix FPR2_REGNUM constant (18 -> 17).
22013 ("*trunc<BFP:mode><DFP_ALL:mode>2")
22014 ("*trunc<DFP_ALL:mode><BFP:mode>2")
22015 ("trunc<BFP:mode><DFP_ALL:mode>2")
22016 ("trunc<DFP_ALL:mode><BFP:mode>2")
22017 ("*extend<BFP:mode><DFP_ALL:mode>2")
22018 ("*extend<DFP_ALL:mode><BFP:mode>2")
22019 ("extend<BFP:mode><DFP_ALL:mode>2")
22020 ("extend<DFP_ALL:mode><BFP:mode>2"): Replace FPR2_REGNUM with
22023 2013-07-08 Graham Stott <graham.stott@btinternet.com>
22025 * Makefile.in: (c-family-warn): Define to $(STRICT_WARN)
22027 2013-07-08 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
22029 * config/s390/s390.c: Rename cfun_set_fpr_bit to cfun_set_fpr_save
22030 and cfun_fpr_bit_p to cfun_fpr_save_p.
22031 (s390_frame_area, s390_register_info, s390_frame_info)
22032 (s390_emit_prologue, s390_emit_epilogue)
22033 (s390_conditional_register_usage): Use the *_REGNUM macros for FPR
22035 * config/s390/s390.h: Define *_REGNUM macros for floating point
22038 2013-07-08 Eric Botcazou <ebotcazou@adacore.com>
22040 * Makefile.in (tree-ssa-reassoc.o): Add dependency on $(PARAMS_H).
22042 2013-07-08 Po-Chun Chang <pchang9@cs.wisc.edu>
22044 PR rtl-optimization/57786
22045 * combine.c (distribute_notes) <case REG_DEAD>: Change all_used to bool
22046 and break out of the loop when it is set to false.
22048 2013-07-08 Jakub Jelinek <jakub@redhat.com>
22051 * simplify-rtx.c (simplify_unary_operation_1) <case ZERO_EXTEND>:
22052 Simplify (zero_extend:SI (subreg:QI (and:SI (reg:SI)
22053 (const_int 63)) 0)).
22054 * combine.c (make_extraction): Create ZERO_EXTEND or SIGN_EXTEND
22055 using simplify_gen_unary instead of gen_rtx_*_EXTEND.
22056 * config/i386/i386.md (*jcc_bt<mode>_1): New define_insn_and_split.
22058 PR rtl-optimization/57829
22059 * simplify-rtx.c (simplify_binary_operation_1) <case IOR>: Ensure that
22060 mask bits outside of mode are just sign-extension from mode to HWI.
22062 2013-07-08 Michael Zolotukhin <michael.v.zolotukhin@gmail.com>
22064 * config/i386/i386-opts.h (enum stringop_alg): Add vector_loop.
22065 * config/i386/i386.c (expand_set_or_movmem_via_loop): Use
22066 adjust_address instead of change_address to keep info about alignment.
22067 (emit_strmov): Remove.
22068 (emit_memmov): New function.
22069 (expand_movmem_epilogue): Refactor to properly handle bigger sizes.
22070 (expand_movmem_epilogue): Likewise and return updated rtx for
22072 (expand_constant_movmem_prologue): Likewise and return updated rtx for
22073 destination and source.
22074 (decide_alignment): Refactor, handle vector_loop.
22075 (ix86_expand_movmem): Likewise.
22076 (ix86_expand_setmem): Likewise.
22077 * config/i386/i386.opt (Enum): Add vector_loop to option stringop_alg.
22079 2013-07-07 Uros Bizjak <ubizjak@gmail.com>
22081 * config/i386/driver-i386.c (host_detect_local_cpu): Do not check
22082 signature_TM2_ebx, it interferes with signature_INTEL_ebx.
22084 2013-07-06 Uros Bizjak <ubizjak@gmail.com>
22086 * config/i386/sse.md (sse_movlhps): Change alternative 3
22087 of operand 2 to "m".
22089 2013-07-06 Uros Bizjak <ubizjak@gmail.com>
22092 * config/i386/sse.md (iptr): New mode attribute.
22093 (sse2_movq128): Add pointer size overrides for Intel asm dialect.
22094 (<sse>_vm<plusminus_insn><mode>3): Ditto.
22095 (<sse>_vmmul<mode>3): Ditto.
22096 (<sse>_vmdiv<mode>3): Ditto.
22097 (sse_vmrcpv4sf2): Ditto.
22098 (<sse>_vmsqrt<mode>2): Ditto.
22099 (sse_vmrsqrtv4sf2): Ditto.
22100 (<sse>_vm<code><mode>3): Ditto.
22101 (avx_vmcmp<mode>3): Ditto.
22102 (<sse>_vmmaskcmp<mode>3): Ditto.
22103 (<sse>_comi): Ditto.
22104 (<sse>_ucomi): Ditto.
22105 (*xop_vmfrcz_<mode>): Ditto.
22106 (*fmai_fmadd_<mode>): Ditto.
22107 (*fmai_fmsub_<mode>): Ditto.
22108 (*fmai_fnmadd_<mode>): Ditto.
22109 (*fmai_fnmsub_<mode>): Ditto.
22110 (*fma4i_vmfmadd_<mode>): Ditto.
22111 (*fma4i_vmfmsub_<mode>): Ditto.
22112 (*fma4i_vmfnmadd_<mode>): Ditto.
22113 (*fma4i_vmfnmsub_<mode>): Ditto.
22114 (*xop_vmfrcz_<mode>): Ditto.
22115 (sse_cvtps2pi): Ditto.
22116 (sse_cvttps2pi): Ditto.
22117 (sse_cvtss2si): Ditto.
22118 (sse_cvtss2si_2): Ditto.
22119 (sse_cvtss2siq_2): Ditto.
22120 (sse_cvttss2si): Ditto.
22121 (sse_cvttss2siq): Ditto.
22122 (sse_cvtsd2si): Ditto.
22123 (sse_cvtsd2si_2): Ditto.
22124 (sse_cvtsd2siq_2): Ditto.
22125 (sse_cvttsd2si): Ditto.
22126 (sse_cvttsd2siq): Ditto.
22127 (sse_cvtsd2ss): Ditto.
22128 (sse_cvtss2sd): Ditto.
22129 (avx2_pbroadcast<mode>): Ditto.
22130 (avx2_pbroadcast<mode>_1): Ditto.
22131 (*avx_vperm_broadcast_v4sf): Ditto.
22133 (sse_movhlps): Ditto for movlp[sd]/movhp[sd] alternatives.
22134 (sse_movlhps): Ditto.
22135 (sse_storehps): Ditto.
22136 (sse_loadhps): Ditto.
22137 (sse_storelps): Ditto.
22138 (sse_loadlps): Ditto.
22139 (*vec_concatv4sf): Ditto.
22140 (*vec_interleave_highv2df): Ditto.
22141 (*vec_interleave_lowv2df): Ditto.
22142 (*vec_extractv2df_1_sse): Ditto.
22143 (*vec_extractv2df_0_sse): Ditto.
22144 (sse2_storelpd): Ditto.
22145 (sse2_loadlpd): Ditto.
22146 (sse2_movsd): Ditto.
22147 (*vec_concatv4si): Ditto.
22148 (vec_concatv2di): Ditto.
22150 * config/i386/mmx.md (mmx_punpcklbw): Add pointer size overrides
22151 for Intel asm dialect.
22152 (mmx_punpcklwd): Ditto.
22153 (mmx_punpckldq): Ditto.
22155 * config/i386/i386.c (ix86_print_operand) ['H']: Output 'qword ptr'
22156 for intel assembler dialect.
22158 2013-07-06 Jakub Jelinek <jakub@redhat.com>
22161 * fold-const.c (tree_call_nonnegative_warnv_p): Return true
22162 for BUILT_IN_C{LZ,LRSB}*.
22163 * tree.h (CASE_INT_FN): Add FN##IMAX case.
22164 * tree-vrp.c (extract_range_basic): Handle
22165 BUILT_IN_{FFS,PARITY,POPCOUNT,C{LZ,TZ,LRSB}}*. For
22166 BUILT_IN_CONSTANT_P if argument isn't (D) of PARM_DECL,
22167 fall thru to code calling set_value*.
22168 * builtins.c (expand_builtin): Remove *IMAX cases.
22169 (fold_builtin_bitop): For BUILT_IN_CLRSB* return NULL_TREE
22170 if width is bigger than 2*HWI.
22172 2013-07-05 Vladimir Makarov <vmakarov@redhat.com>
22174 PR rtl-optimization/55342
22175 * lra-int.h (lra_subreg_reload_pseudos): New.
22176 * lra.c: Add undoing optional reloads to the block diagram.
22177 (lra_subreg_reload_pseudos): New.
22178 (lra_optional_reload_pseudos): Change comments.
22179 (lra): Init and clear lra_subreg_reload_pseudos. Clear
22180 lra_optional_reload_pseudos after undo transformations.
22181 * lra-assigns.c (pseudo_prefix_title): New.
22182 (lra_setup_reg_renumber): Use it.
22183 (spill_for): Ditto. Check subreg reload pseudos too.
22184 (assign_by_spills): Consider subreg reload pseudos too.
22185 * lra-constraints.c (simplify_operand_subreg): Use
22186 lra_subreg_reload_pseudos instead of lra_optional_reload_pseudos.
22187 (curr_insn_transform): Recognize and do optional reloads.
22188 (undo_optional_reloads): New.
22189 (lra_undo_inheritance): Call undo_optional_reloads.
22191 2013-07-05 Thomas Quinot <quinot@adacore.com>
22193 * tree-complex.c (expand_complex_operations_1): Fix typo.
22195 2013-07-04 Tejas Belagod <tejas.belagod@arm.com>
22197 * config/aarch64/aarch64-protos.h (cpu_vector_cost): New.
22198 (tune_params): New member 'const vec_costs'.
22199 * config/aarch64/aarch64.c (generic_vector_cost): New.
22200 (generic_tunings): New member 'generic_vector_cost'.
22201 (aarch64_builtin_vectorization_cost): New.
22202 (aarch64_add_stmt_cost): New.
22203 (TARGET_VECTORIZE_ADD_STMT_COST): New.
22204 (TARGET_VECTORIZE_BUILTIN_VECTORIZATION_COST): New.
22206 2013-07-03 Jakub Jelinek <jakub@redhat.com>
22209 * config/i386/predicates.md (vsib_address_operand): Disallow
22210 SYMBOL_REF or LABEL_REF in parts.disp if TARGET_64BIT && flag_pic.
22212 2013-07-03 Hans-Peter Nilsson <hp@bitrange.com>
22214 PR middle-end/55030
22215 * stmt.c (expand_nl_goto_receiver): Remove almost-copy of
22216 expand_builtin_setjmp_receiver.
22217 (expand_label): Adjust, call expand_builtin_setjmp_receiver
22218 with NULL for the label parameter.
22219 * builtins.c (expand_builtin_setjmp_receiver): Don't clobber
22220 the frame-pointer. Adjust comments.
22221 [HAVE_builtin_setjmp_receiver]: Emit builtin_setjmp_receiver
22222 only if LABEL is non-NULL.
22224 2013-07-03 Yufeng Zhang <yufeng.zhang@arm.com>
22226 * config/aarch64/aarch64.h (enum arm_abi_type): Remove.
22227 (ARM_ABI_AAPCS64): Ditto.
22229 (ARM_DEFAULT_ABI): Ditto.
22231 2013-07-03 James Greenhalgh <james.greenhalgh@arm.com>
22233 * config/aarch64/aarch64-builtins.c
22234 (aarch64_simd_expand_builtin): Handle AARCH64_SIMD_STORE1.
22235 * config/aarch64/aarch64-simd-builtins.def (ld1): New.
22237 * config/aarch64/aarch64-simd.md
22238 (aarch64_ld1<VALL:mode>): New.
22239 (aarch64_st1<VALL:mode>): Likewise.
22240 * config/aarch64/arm_neon.h
22241 (vld1<q>_<fpsu><8, 16, 32, 64>): Convert to RTL builtins.
22243 2013-07-02 Sriraman Tallam <tmsriram@google.com>
22245 * config/i386/i386.c (gate_insert_vzeroupper): Check if
22247 (ix86_option_override_internal):Turn on all -mavx target flags by
22248 default as they are dependent on AVX anyway.
22250 2013-07-02 Cary Coutant <ccoutant@google.com>
22252 * dwarf2out.c (loc_checksum): Call hash_loc_operands for a
22253 deterministic hash.
22254 (loc_checksum_ordered): Likewise.
22255 (hash_loc_operands): Remove inline keyword.
22257 2013-07-02 Jakub Jelinek <jakub@redhat.com>
22259 PR tree-optimization/57741
22260 * tree-vect-loop.c (vect_is_simple_iv_evolution): Disallow
22261 non-INTEGRAL_TYPE_P non-SCALAR_FLOAT_TYPE_P SSA_NAME step_exprs,
22262 or SCALAR_FLOAT_TYPE_P SSA_NAMEs if !flag_associative_math.
22263 Allow REAL_CST step_exprs if flag_associative_math.
22264 (get_initial_def_for_induction): Handle SCALAR_FLOAT_TYPE_P step_expr.
22266 2013-07-02 Ian Bolton <ian.bolton@arm.com>
22268 * config/aarch64/aarch64-simd.md (absdi2): Support abs for DI mode.
22270 2013-07-02 Ian Bolton <ian.bolton@arm.com>
22272 * config/aarch64/aarch64.md (*extr_insv_reg<mode>): New pattern.
22274 2013-07-02 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
22276 * config/arm/arm.md (arm_andsi3_insn): Add alternatives for 16-bit
22278 (iorsi3_insn): Likewise.
22279 (arm_xorsi3): Likewise.
22281 2013-07-01 Sofiane Naci <sofiane.naci@arm.com>
22283 * arm.md (attribute "wtype"): Delete. Move attribute values from here
22285 (attribute "type"): ... here, and prefix with "wmmx_".
22286 (attribute "core_cycles"): Update for attribute changes.
22287 * iwmmxt.md (tbcstv8qi): Update for attribute changes.
22288 (tbcstv4hi): Likewise.
22289 (tbcstv2si): Likewise.
22290 (iwmmxt_iordi3): Likewise.
22291 (iwmmxt_xordi3): Likewise.
22292 (iwmmxt_anddi3): Likewise.
22293 (iwmmxt_nanddi3): Likewise.
22294 (iwmmxt_arm_movdi): Likewise.
22295 (iwmmxt_movsi_insn): Likewise.
22296 (mov<mode>_internal): Likewise.
22297 (and<mode>3_iwmmxt): Likewise.
22298 (ior<mode>3_iwmmxt): Likewise.
22299 (xor<mode>3_iwmmxt): Likewise.
22300 (add<mode>3_iwmmxt): Likewise.
22301 (ssaddv8qi3): Likewise.
22302 (ssaddv4hi3): Likewise.
22303 (ssaddv2si3): Likewise.
22304 (usaddv8qi3): Likewise.
22305 (usaddv4hi3): Likewise.
22306 (usaddv2si3): Likewise.
22307 (sub<mode>3_iwmmxt): Likewise.
22308 (sssubv8qi3): Likewise.
22309 (sssubv4hi3): Likewise.
22310 (sssubv2si3): Likewise.
22311 (ussubv8qi3): Likewise.
22312 (ussubv4hi3): Likewise.
22313 (ussubv2si3): Likewise.
22314 (mulv4hi3_iwmmxt): Likewise.
22315 (smulv4hi3_highpart): Likewise.
22316 (umulv4hi3_highpart): Likewise.
22317 (iwmmxt_wmacs): Likewise.
22318 (iwmmxt_wmacsz): Likewise.
22319 (iwmmxt_wmacu): Likewise.
22320 (iwmmxt_wmacuz): Likewise.
22321 (iwmmxt_clrdi): Likewise.
22322 (iwmmxt_clrv8qi): Likewise.
22323 (iwmmxt_clr4hi): Likewise.
22324 (iwmmxt_clr2si): Likewise.
22325 (iwmmxt_uavgrndv8qi3): Likewise.
22326 (iwmmxt_uavgrndv4hi3): Likewise.
22327 (iwmmxt_uavgv8qi3): Likewise.
22328 (iwmmxt_uavgv4hi3): Likewise.
22329 (iwmmxt_tinsrb): Likewise.
22330 (iwmmxt_tinsrh): Likewise.
22331 (iwmmxt_tinsrw): Likewise.
22332 (iwmmxt_textrmub): Likewise.
22333 (iwmmxt_textrmsb): Likewise.
22334 (iwmmxt_textrmuh): Likewise.
22335 (iwmmxt_textrmsh): Likewise.
22336 (iwmmxt_textrmw): Likewise.
22337 (iwmxxt_wshufh): Likewise.
22338 (eqv8qi3): Likewise.
22339 (eqv4hi3): Likewise.
22340 (eqv2si3): Likewise.
22341 (gtuv8qi3): Likewise.
22342 (gtuv4hi3): Likewise.
22343 (gtuv2si3): Likewise.
22344 (gtv8qi3): Likewise.
22345 (gtv4hi3): Likewise.
22346 (gtv2si3): Likewise.
22347 (smax<mode>3_iwmmxt): Likewise.
22348 (umax<mode>3_iwmmxt): Likewise.
22349 (smin<mode>3_iwmmxt): Likewise.
22350 (umin<mode>3_iwmmxt): Likewise.
22351 (iwmmxt_wpackhss): Likewise.
22352 (iwmmxt_wpackwss): Likewise.
22353 (iwmmxt_wpackdss): Likewise.
22354 (iwmmxt_wpackhus): Likewise.
22355 (iwmmxt_wpackwus): Likewise.
22356 (iwmmxt_wpackdus): Likewise.
22357 (iwmmxt_wunpckihb): Likewise.
22358 (iwmmxt_wunpckihh): Likewise.
22359 (iwmmxt_wunpckihw): Likewise.
22360 (iwmmxt_wunpckilb): Likewise.
22361 (iwmmxt_wunpckilh): Likewise.
22362 (iwmmxt_wunpckilw): Likewise.
22363 (iwmmxt_wunpckehub): Likewise.
22364 (iwmmxt_wunpckehuh): Likewise.
22365 (iwmmxt_wunpckehuw): Likewise.
22366 (iwmmxt_wunpckehsb): Likewise.
22367 (iwmmxt_wunpckehsh): Likewise.
22368 (iwmmxt_wunpckehsw): Likewise.
22369 (iwmmxt_wunpckelub): Likewise.
22370 (iwmmxt_wunpckeluh): Likewise.
22371 (iwmmxt_wunpckeluw): Likewise.
22372 (iwmmxt_wunpckelsb): Likewise.
22373 (iwmmxt_wunpckelsh): Likewise.
22374 (iwmmxt_wunpckelsw): Likewise.
22375 (ror<mode>3): Likewise.
22376 (ashr<mode>3_iwmmxt): Likewise.
22377 (lshr<mode>3_iwmmxt): Likewise.
22378 (ashl<mode>3_iwmmxt): Likewise.
22379 (ror<mode>3_di): Likewise.
22380 (ashr<mode>3_di): Likewise.
22381 (lshr<mode>3_di): Likewise.
22382 (ashl<mode>3_di): Likewise.
22383 (iwmmxt_wmadds): Likewise.
22384 (iwmmxt_wmaddu): Likewise.
22385 (iwmmxt_tmia): Likewise.
22386 (iwmmxt_tmiaph): Likewise.
22387 (iwmmxt_tmiabb): Likewise.
22388 (iwmmxt_tmiatb): Likewise.
22389 (iwmmxt_tmiabt): Likewise.
22390 (iwmmxt_tmiatt): Likewise.
22391 (iwmmxt_tmovmskb): Likewise.
22392 (iwmmxt_tmovmskh): Likewise.
22393 (iwmmxt_tmovmskw): Likewise.
22394 (iwmmxt_waccb): Likewise.
22395 (iwmmxt_wacch): Likewise.
22396 (iwmmxt_waccw): Likewise.
22397 (iwmmxt_waligni): Likewise.
22398 (iwmmxt_walignr): Likewise.
22399 (iwmmxt_walignr0): Likewise.
22400 (iwmmxt_walignr1): Likewise.
22401 (iwmmxt_walignr2): Likewise.
22402 (iwmmxt_walignr3): Likewise.
22403 (iwmmxt_wsadb): Likewise.
22404 (iwmmxt_wsadh): Likewise.
22405 (iwmmxt_wsadbz): Likewise.
22406 (iwmmxt_wsadhz): Likewise.
22407 * iwmmxt2.md (iwmmxt_wabs<mode>3): Update for attribute changes.
22408 (iwmmxt_wabsdiffb): Likewise.
22409 (iwmmxt_wabsdiffh): Likewise.
22410 (iwmmxt_wabsdiffw): Likewise.
22411 (iwmmxt_waddsubhx): Likewise
22412 (iwmmxt_wsubaddhx): Likewise.
22413 (addc<mode>3): Likewise.
22414 (iwmmxt_avg4): Likewise.
22415 (iwmmxt_avg4r): Likewise.
22416 (iwmmxt_wmaddsx): Likewise.
22417 (iwmmxt_wmaddux): Likewise.
22418 (iwmmxt_wmaddsn): Likewise.
22419 (iwmmxt_wmaddun): Likewise.
22420 (iwmmxt_wmulwsm): Likewise.
22421 (iwmmxt_wmulwum): Likewise.
22422 (iwmmxt_wmulsmr): Likewise.
22423 (iwmmxt_wmulumr): Likewise.
22424 (iwmmxt_wmulwsmr): Likewise.
22425 (iwmmxt_wmulwumr): Likewise.
22426 (iwmmxt_wmulwl): Likewise.
22427 (iwmmxt_wqmulm): Likewise.
22428 (iwmmxt_wqmulwm): Likewise.
22429 (iwmmxt_wqmulmr): Likewise.
22430 (iwmmxt_wqmulwmr): Likewise.
22431 (iwmmxt_waddbhusm): Likewise.
22432 (iwmmxt_waddbhusl): Likewise.
22433 (iwmmxt_wqmiabb): Likewise.
22434 (iwmmxt_wqmiabt): Likewise.
22435 (iwmmxt_wqmiatb): Likewise.
22436 (iwmmxt_wqmiatt): Likewise.
22437 (iwmmxt_wqmiabbn): Likewise.
22438 (iwmmxt_wqmiabtn): Likewise.
22439 (iwmmxt_wqmiatbn): Likewise.
22440 (iwmmxt_wqmiattn): Likewise.
22441 (iwmmxt_wmiabb): Likewise.
22442 (iwmmxt_wmiabt): Likewise.
22443 (iwmmxt_wmiatb): Likewise.
22444 (iwmmxt_wmiatt): Likewise.
22445 (iwmmxt_wmiabbn): Likewise.
22446 (iwmmxt_wmiabtn): Likewise.
22447 (iwmmxt_wmiatbn): Likewise.
22448 (iwmmxt_wmiattn): Likewise.
22449 (iwmmxt_wmiawbb): Likewise.
22450 (iwmmxt_wmiawbt): Likewise.
22451 (iwmmxt_wmiawtb): Likewise.
22452 (iwmmxt_wmiawtt): Likewise.
22453 (iwmmxt_wmiawbbn): Likewise.
22454 (iwmmxt_wmiawbtn): Likewise.
22455 (iwmmxt_wmiawtbn): Likewise.
22456 (iwmmxt_wmiawttn): Likewise.
22457 (iwmmxt_wmerge): Likewise.
22458 (iwmmxt_tandc<mode>3): Likewise.
22459 (iwmmxt_torc<mode>3): Likewise.
22460 (iwmmxt_torvsc<mode>3): Likewise.
22461 (iwmmxt_textrc<mode>3): Likewise.
22462 * marvell-f-iwmmxt.md (wmmxt_shift): Update for attribute changes.
22463 (wmmxt_pack): Likewise.
22464 (wmmxt_mult_c1): Likewise.
22465 (wmmxt_mult_c2): Likewise.
22466 (wmmxt_alu_c1): Likewise.
22467 (wmmxt_alu_c2): Likewise.
22468 (wmmxt_alu_c3): Likewise.
22469 (wmmxt_transfer_c1): Likewise.
22470 (wmmxt_transfer_c2): Likewise.
22471 (wmmxt_transfer_c3): Likewise.
22472 (marvell_f_iwmmxt_wstr): Likewise.
22473 (marvell_f_iwmmxt_wldr): Likewise.
22475 2013-06-29 Yufeng Zhang <yufeng.zhang@arm.com>
22477 * config/aarch64/aarch64.c: Remove junk from the beginning of the file.
22479 2013-06-28 Vladimir Makarov <vmakarov@redhat.com>
22482 2013-06-28 Vladimir Makarov <vmakarov@redhat.com>
22483 * lra-constraints.c (need_for_split_p): Check call used hard regs
22484 living through calls.
22486 * lra-constraints.c (inherit_in_ebb): Reset live_hard_regs for
22487 call used regs for call insn.
22489 2013-06-28 Jakub Jelinek <jakub@redhat.com>
22492 * config/i386/i386.c (ix86_expand_builtin): If target == NULL and
22493 mode is VOIDmode, don't create a VOIDmode pseudo to copy result into.
22495 2013-06-28 Balaji V. Iyer <balaji.v.iyer@intel.com>
22497 * builtins.def: Fixed the function type of CILKPLUS_BUILTIN.
22499 2013-06-28 Vladimir Makarov <vmakarov@redhat.com>
22501 * lra-constraints.c (need_for_split_p): Check call used hard regs
22502 living through calls.
22504 2013-06-28 Michael Meissner <meissner@linux.vnet.ibm.com>
22507 * config/rs6000/rs6000.h (MODES_TIEABLE_P): Do not allow PTImode
22508 to tie with any other modes. Eliminate Altivec vector mode tests,
22509 since these are a subset of ALTIVEC or VSX vector modes. Simplify
22510 code, to return 0 if testing MODE2 for a condition, if we've
22511 already tested MODE1 for the same condition.
22513 2013-06-28 Marcus Shawcroft <marcus.shawcroft@arm.com>
22515 * config/aarch64/aarch64.c (aarch64_cannot_force_const_mem): Adjust
22518 2013-06-28 Marcus Shawcroft <marcus.shawcroft@arm.com>
22520 * config/aarch64/aarch64-protos.h (aarch64_symbol_type):
22521 Update comment w.r.t SYMBOL_TINY_ABSOLUTE.
22523 2013-06-28 Marcus Shawcroft <marcus.shawcroft@arm.com>
22525 * config/aarch64/aarch64-protos.h (aarch64_classify_symbol_expression):
22527 (aarch64_symbolic_constant_p): Remove.
22528 * config/aarch64/aarch64.c (aarch64_classify_symbol_expression): Remove
22529 static. Fix line length and white space.
22530 (aarch64_symbolic_constant_p): Remove.
22531 * config/aarch64/predicates.md (aarch64_valid_symref):
22532 Use aarch64_classify_symbol_expression.
22534 2013-06-28 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
22536 * config/arm/constraints.md (Ts): New constraint.
22537 * config/arm/arm.md (arm_movqi_insn): Add alternatives for
22539 (compare_scc): Use "Ts" constraint for operand 0.
22540 (ior_scc_scc): Likewise.
22541 (and_scc_scc): Likewise.
22542 (and_scc_scc_nodom): Likewise.
22543 (ior_scc_scc_cmp): Likewise for operand 7.
22544 (and_scc_scc_cmp): Likewise.
22545 * config/arm/thumb2.md (thumb2_movsi_insn):
22546 Add alternatives for 16-bit encodings.
22547 (thumb2_movhi_insn): Likewise.
22548 (thumb2_movsicc_insn): Likewise.
22549 (thumb2_and_scc): Take 'and' outside cond_exec. Use "Ts" constraint.
22550 (thumb2_negscc): Use "Ts" constraint.
22551 Move mvn instruction outside cond_exec block.
22552 * config/arm/vfp.md (thumb2_movsi_vfp): Add alternatives
22553 for 16-bit encodings.
22555 2013-06-28 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
22557 * config/arm/arm.md (arm_mulsi3_v6): Add alternative for 16-bit
22559 (mulsi3addsi_v6): Disable predicable variant for arm_restrict_it.
22560 (mulsi3subsi): Likewise.
22561 (mulsidi3adddi): Likewise.
22562 (mulsidi3_v6): Likewise.
22563 (umulsidi3_v6): Likewise.
22564 (umulsidi3adddi_v6): Likewise.
22565 (smulsi3_highpart_v6): Likewise.
22566 (umulsi3_highpart_v6): Likewise.
22567 (mulhisi3tb): Likewise.
22568 (mulhisi3bt): Likewise.
22569 (mulhisi3tt): Likewise.
22570 (maddhisi4): Likewise.
22571 (maddhisi4tb): Likewise.
22572 (maddhisi4tt): Likewise.
22573 (maddhidi4): Likewise.
22574 (maddhidi4tb): Likewise.
22575 (maddhidi4tt): Likewise.
22576 (zeroextractsi_compare0_scratch): Likewise.
22577 (insv_zero): Likewise.
22578 (insv_t2): Likewise.
22579 (anddi_notzesidi_di): Likewise.
22580 (anddi_notsesidi_di): Likewise.
22581 (andsi_notsi_si): Likewise.
22582 (iordi_zesidi_di): Likewise.
22583 (xordi_zesidi_di): Likewise.
22584 (andsi_iorsi3_notsi): Likewise.
22585 (smax_0): Likewise.
22586 (smax_m1): Likewise.
22587 (smin_0): Likewise.
22588 (not_shiftsi): Likewise.
22589 (unaligned_loadsi): Likewise.
22590 (unaligned_loadhis): Likewise.
22591 (unaligned_loadhiu): Likewise.
22592 (unaligned_storesi): Likewise.
22593 (unaligned_storehi): Likewise.
22594 (extv_reg): Likewise.
22595 (extzv_t2): Likewise.
22596 (divsi3): Likewise.
22597 (udivsi3): Likewise.
22598 (arm_zero_extendhisi2addsi): Likewise.
22599 (arm_zero_extendqisi2addsi): Likewise.
22600 (compareqi_eq0): Likewise.
22601 (arm_extendhisi2_v6): Likewise.
22602 (arm_extendqisi2addsi): Likewise.
22603 (arm_movt): Likewise.
22604 (thumb2_ldrd): Likewise.
22605 (thumb2_ldrd_base): Likewise.
22606 (thumb2_ldrd_base_neg): Likewise.
22607 (thumb2_strd): Likewise.
22608 (thumb2_strd_base): Likewise.
22609 (thumb2_strd_base_neg): Likewise.
22610 (arm_negsi2): Add alternative for 16-bit encoding.
22611 (arm_one_cmplsi2): Likewise.
22613 2013-06-28 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
22615 * config/arm/predicates.md (arm_cond_move_operator): New predicate.
22616 * config/arm/arm.md (movsfcc): Use arm_cond_move_operator predicate.
22617 (movdfcc): Likewise.
22618 * config/arm/vfp.md (*thumb2_movsf_vfp):
22619 Disable predication for arm_restrict_it.
22620 (*thumb2_movsfcc_vfp): Disable for arm_restrict_it.
22621 (*thumb2_movdfcc_vfp): Likewise.
22622 (*abssf2_vfp, *absdf2_vfp, *negsf2_vfp, *negdf2_vfp,*addsf3_vfp,
22623 *adddf3_vfp, *subsf3_vfp, *subdf3_vfpc, *divsf3_vfp,*divdf3_vfp,
22624 *mulsf3_vfp, *muldf3_vfp, *mulsf3negsf_vfp, *muldf3negdf_vfp,
22625 *mulsf3addsf_vfp, *muldf3adddf_vfp, *mulsf3subsf_vfp,
22626 *muldf3subdf_vfp, *mulsf3negsfaddsf_vfp, *fmuldf3negdfadddf_vfp,
22627 *mulsf3negsfsubsf_vfp, *muldf3negdfsubdf_vfp, *fma<SDF:mode>4,
22628 *fmsub<SDF:mode>4, *fnmsub<SDF:mode>4, *fnmadd<SDF:mode>4,
22629 *extendsfdf2_vfp, *truncdfsf2_vfp, *extendhfsf2, *truncsfhf2,
22630 *truncsisf2_vfp, *truncsidf2_vfp, fixuns_truncsfsi2, fixuns_truncdfsi2,
22631 *floatsisf2_vfp, *floatsidf2_vfp, floatunssisf2, floatunssidf2,
22632 *sqrtsf2_vfp, *sqrtdf2_vfp, *cmpsf_vfp, *cmpsf_trap_vfp, *cmpdf_vfp,
22633 *cmpdf_trap_vfp, <vrint_pattern><SDF:mode>2):
22634 Disable predication for arm_restrict_it.
22636 2013-06-28 Kirill Yukhin <kirill.yukhin@intel.com>
22638 * config/i386/bmiintrin.h (_bextr_u32): New.
22639 (_bextr_u64): Ditto.
22641 2013-06-27 Richard Sandiford <rdsandiford@googlemail.com>
22643 * config.gcc (mips*-mti-elf*, mips*-sde-elf*, mips64r5900-*-elf*)
22644 (mips64r5900el-*-elf*): Include mips/n32-elf.h.
22645 * config/mips/sde.h (LOCAL_LABEL_PREFIX, NO_DOLLAR_IN_LABEL)
22646 (LONG_DOUBLE_TYPE_SIZE, LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Move to...
22647 * config/mips/n32-elf.h: ...this new file.
22649 2013-06-27 Marc Glisse <marc.glisse@inria.fr>
22652 * config/i386/i386.c (enum ix86_builtins, bdesc_args): Remove
22653 IX86_BUILTIN_CMPNGTSS and IX86_BUILTIN_CMPNGESS.
22655 2013-06-27 Catherine Moore <clm@codesourcery.com>
22657 * config/mips/mips-tables.opt: Regenerate.
22658 * config/mips/mips-cpus.def: Add m14ke and m14kec.
22659 * config/mips/mips.h (BASE_DRIVER_SELF_SPECS): m14ke* implies -mdspr2.
22660 * doc/invoke.texi: Add -m14kc.
22662 2013-06-27 Jakub Jelinek <jakub@redhat.com>
22665 * config/i386/i386.md (bmi_bextr_<mode>): Swap predicates and
22666 constraints of operand 1 and 2.
22669 * config/i386/i386.md (bmi2_bzhi_<mode>3): Swap AND arguments
22670 to match RTL canonicalization. Swap predicates and
22671 constraints of operand 1 and 2.
22673 2013-06-27 Vladimir Makarov <vmakarov@redhat.com>
22675 * lra-constraints.c (inherit_in_ebb): Process static hard regs too.
22676 Process OP_INOUT regs for splitting too.
22678 2013-06-27 Jakub Jelinek <jakub@redhat.com>
22680 * tree-vect-stmts.c (vectorizable_store): Move ptr_incr var
22681 decl before the loop, initialize to NULL.
22682 (vectorizable_load): Initialize ptr_incr to NULL.
22684 2013-06-27 Martin Jambor <mjambor@suse.cz>
22687 * ipa-ref.h (ipa_maybe_record_reference): Declare.
22688 * ipa-ref.c (ipa_maybe_record_reference): New function.
22689 * cgraphclones.c (cgraph_create_virtual_clone): Use it.
22690 * ipa-cp.c (create_specialized_node): Record potential references from
22692 * Makefile.in (ipa-ref.o): Add IPA_REF_H to dependencies.
22694 2013-06-27 Yufeng Zhang <yufeng.zhang@arm.com>
22696 * config/aarch64/aarch64.c (aarch64_force_temporary): Add an extra
22697 parameter 'mode' of type 'enum machine_mode mode'; change to pass
22698 'mode' to force_reg.
22699 (aarch64_add_offset): Update calls to aarch64_force_temporary.
22700 (aarch64_expand_mov_immediate): Likewise.
22702 2013-06-27 Yufeng Zhang <yufeng.zhang@arm.com>
22704 * config/aarch64/aarch64.c (aarch64_add_offset): Change to pass
22705 'mode' to aarch64_plus_immediate and gen_rtx_PLUS.
22707 2013-06-27 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
22709 * config/s390/s390.c: Rename UNSPEC_CCU_TO_INT to
22710 UNSPEC_STRCMPCC_TO_INT and UNSPEC_CCZ_TO_INT to UNSPEC_CC_TO_INT.
22711 (struct machine_function): Add tbegin_p.
22712 (s390_canonicalize_comparison): Fold CC mode compares to
22713 conditional jump if possible.
22714 (s390_emit_jump): Return the emitted jump.
22715 (s390_branch_condition_mask, s390_branch_condition_mnemonic):
22716 Handle CCRAWmode compares.
22717 (s390_option_override): Default to -mhtm if available.
22718 (s390_reg_clobbered_rtx): Handle floating point regs as well.
22719 (s390_regs_ever_clobbered): Use s390_regs_ever_clobbered also for
22720 FPRs instead of df_regs_ever_live_p.
22721 (s390_optimize_nonescaping_tx): New function.
22722 (s390_init_frame_layout): Extend clobbered_regs array to cover
22724 (s390_emit_prologue): Call s390_optimize_nonescaping_tx.
22725 (s390_expand_tbegin): New function.
22726 (enum s390_builtin): New enum definition.
22727 (code_for_builtin): New array definition.
22728 (s390_init_builtins): New function.
22729 (s390_expand_builtin): New function.
22730 (TARGET_INIT_BUILTINS): Define.
22731 (TARGET_EXPAND_BUILTIN): Define.
22732 * common/config/s390/s390-common.c (processor_flags_table): Add PF_TX.
22733 * config/s390/predicates.md (s390_comparison): Handle CCRAWmode.
22734 (s390_alc_comparison): Likewise.
22735 * config/s390/s390-modes.def: Add CCRAWmode.
22736 * config/s390/s390.h (processor_flags): Add PF_TX.
22737 (TARGET_CPU_HTM): Define macro.
22738 (TARGET_HTM): Define macro.
22739 (TARGET_CPU_CPP_BUILTINS): Define __HTM__ for htm.
22740 * config/s390/s390.md: Rename UNSPEC_CCU_TO_INT to
22741 UNSPEC_STRCMPCC_TO_INT and UNSPEC_CCZ_TO_INT to UNSPEC_CC_TO_INT.
22742 (UNSPECV_TBEGIN, UNSPECV_TBEGINC, UNSPECV_TEND, UNSPECV_TABORT)
22743 (UNSPECV_ETND, UNSPECV_NTSTG, UNSPECV_PPA): New unspecv enum values.
22744 (TBEGIN_MASK, TBEGINC_MASK): New constants.
22745 ("*cc_to_int"): Move up.
22746 ("*mov<mode>cc", "*cjump_64", "*cjump_31"): Accept integer
22747 constants other than 0.
22748 ("*ccraw_to_int"): New insn and splitter definition.
22749 ("tbegin", "tbegin_nofloat", "tbegin_retry")
22750 ("tbegin_retry_nofloat", "tbeginc", "tend", "tabort")
22751 ("tx_assist"): New expander.
22752 ("tbegin_1", "tbegin_nofloat_1", "*tbeginc_1", "*tend_1")
22753 ("*tabort_1", "etnd", "ntstg", "*ppa"): New insn definition.
22754 * config/s390/s390.opt: Add -mhtm option.
22755 * config/s390/s390-protos.h (s390_emit_jump): Add return type.
22756 * config/s390/htmxlintrin.h: New file.
22757 * config/s390/htmintrin.h: New file.
22758 * config/s390/s390intrin.h: New file.
22759 * doc/extend.texi: Document htm builtins.
22760 * config.gcc: Add the new header files to extra_headers.
22762 2013-06-26 Thomas Schwinge <thomas@codesourcery.com>
22764 * config/i386/gnu.h [TARGET_LIBC_PROVIDES_SSP]
22765 (TARGET_CAN_SPLIT_STACK, TARGET_THREAD_SPLIT_STACK_OFFSET): Undefine.
22767 2013-06-26 Michael Meissner <meissner@linux.vnet.ibm.com>
22768 Pat Haugen <pthaugen@us.ibm.com>
22769 Peter Bergner <bergner@vnet.ibm.com>
22771 * config/rs6000/power8.md: New.
22772 * config/rs6000/rs6000-cpus.def (RS6000_CPU table): Adjust processor
22773 setting for power8 entry.
22774 * config/rs6000/t-rs6000 (MD_INCLUDES): Add power8.md.
22775 * config/rs6000/rs6000.c (is_microcoded_insn, is_cracked_insn): Adjust
22776 test for Power4/Power5 only.
22777 (insn_must_be_first_in_group, insn_must_be_last_in_group): Add Power8
22779 (force_new_group): Adjust comment.
22780 * config/rs6000/rs6000.md: Include power8.md.
22782 2013-06-26 Greta Yorsh <Greta.Yorsh@arm.com>
22784 * config/arm/arm.h (MAX_CONDITIONAL_EXECUTE): Define macro.
22785 * config/arm/arm-protos.h (arm_max_conditional_execute): New
22787 (tune_params): Update comment.
22788 * config/arm/arm.c (arm_cortex_a15_tune): Set max_cond_insns to 2.
22789 (arm_max_conditional_execute): New function.
22790 (thumb2_final_prescan_insn): Use max_insn_skipped and
22791 MAX_INSN_PER_IT_BLOCK to compute maximum instructions in a block.
22793 2013-06-25 Jakub Jelinek <jakub@redhat.com>
22795 PR tree-optimization/57705
22796 * tree-vect-loop.c (vect_is_simple_iv_evolution): Allow
22797 SSA_NAME step, provided that it is not defined inside the loop.
22798 (vect_analyze_scalar_cycles_1): Disallow SSA_NAME step in nested loop.
22799 (get_initial_def_for_induction): Handle SSA_NAME IV step.
22801 2013-06-25 Martin Jambor <mjambor@suse.cz>
22803 PR middle-end/57670
22804 * cgraph.h (cgraph_indirect_call_info): New flag member_ptr.
22805 * ipa-prop.c (ipa_print_node_jump_functions): Mark member pointer
22807 (ipa_note_param_call): Initialize member_ptr flag.
22808 (ipa_analyze_indirect_call_uses): Set member_ptr flag.
22809 (ipa_make_edge_direct_to_target): Bail out if member_ptr is set.
22810 (ipa_write_indirect_edge_info): Stream member_ptr flag.
22811 (ipa_read_indirect_edge_info): Likewise.
22813 2013-06-25 Richard Biener <rguenther@suse.de>
22815 PR middle-end/56977
22816 * passes.c (init_optimization_passes): Move pass_fold_builtins
22817 and pass_dce earlier with -Og.
22819 2013-06-25 Eric Botcazou <ebotcazou@adacore.com>
22821 * expr.c (expand_expr_real_1) <ARRAY_REF>: Fix formatting glitches.
22822 <BIT_FIELD_REF>: Remove trailing TAB.
22823 * varasm.c (output_constructor_bitfield): Fix formatting glitch and
22826 2013-06-24 Martin Jambor <mjambor@suse.cz>
22828 PR tree-optimization/57358
22829 * ipa-prop.c (ipa_func_spec_opts_forbid_analysis_p): New function.
22830 (ipa_compute_jump_functions_for_edge): Bail out if it returns true.
22831 (ipa_analyze_params_uses): Generate pessimistic info when true.
22833 2013-06-24 Martin Jambor <mjambor@suse.cz>
22835 PR tree-optimization/57539
22836 * cgraphclones.c (cgraph_clone_node): Add parameter new_inlined_to, set
22837 global.inlined_to of the new node to it. All callers changed.
22838 * ipa-inline-transform.c (clone_inlined_nodes): New variable
22839 inlining_into, pass it to cgraph_clone_node.
22840 * ipa-prop.c (ipa_propagate_indirect_call_infos): Do not call
22841 ipa_free_edge_args_substructures.
22842 (ipa_edge_duplication_hook): Only add edges from inlined nodes to
22843 rdesc linked list. Do not assert rdesc edges have inlined caller.
22844 Assert we have found an rdesc in the rdesc list.
22846 2013-06-24 Richard Biener <rguenther@suse.de>
22848 * pointer-set.h (struct pointer_set_t): Move here from pointer-set.c.
22849 (pointer_set_lookup): Declare.
22850 (class pointer_map): New template class implementing a
22851 generic pointer to T map.
22852 (pointer_map<T>::pointer_map, pointer_map<T>::~pointer_map,
22853 pointer_map<T>::contains, pointer_map<T>::insert,
22854 pointer_map<T>::traverse): New functions.
22855 * pointer-set.c (struct pointer_set_t): Moved to pointer-set.h.
22856 (pointer_set_lookup): New function.
22857 (pointer_set_contains): Use pointer_set_lookup.
22858 (pointer_set_insert): Likewise.
22859 (insert_aux): Remove.
22860 (struct pointer_map_t): Embed a pointer_set_t.
22861 (pointer_map_create): Adjust.
22862 (pointer_map_destroy): Likewise.
22863 (pointer_map_contains): Likewise.
22864 (pointer_map_insert): Likewise.
22865 (pointer_map_traverse): Likewise.
22866 * tree-streamer.h (struct streamer_tree_cache_d): Use a
22867 pointer_map<unsigned> instead of a pointer_map_t.
22868 * tree-streamer.c (streamer_tree_cache_insert_1): Adjust.
22869 (streamer_tree_cache_lookup): Likewise.
22870 (streamer_tree_cache_create): Likewise.
22871 (streamer_tree_cache_delete): Likewise.
22872 * lto-streamer.h (struct lto_tree_ref_encoder): Use a
22873 pointer_map<unsigned> instead of a pointer_map_t.
22874 (lto_init_tree_ref_encoder): Adjust.
22875 (lto_destroy_tree_ref_encoder): Likewise.
22876 * lto-section-out.c (lto_output_decl_index): Likewise.
22877 (lto_record_function_out_decl_state): Likewise.
22878 * dominance.c (iterate_fix_dominators): Use pointer_map<int>.
22880 2013-06-24 Richard Biener <rguenther@suse.de>
22882 PR tree-optimization/57488
22883 * tree-ssa-pre.c (insert): Clear NEW sets before each iteration.
22885 2013-06-24 Alan Modra <amodra@gmail.com>
22887 * config/rs6000/rs6000.c (vspltis_constant): Correct for little-endian.
22888 (gen_easy_altivec_constant): Likewise.
22889 * config/rs6000/predicates.md (easy_vector_constant_add_self,
22890 easy_vector_constant_msb): Likewise.
22892 2013-06-23 Jakub Jelinek <jakub@redhat.com>
22895 * common/config/i386/i386-common.c (ix86_handle_option): For OPT_mlzcnt
22896 add missing return true.
22898 2013-06-23 Oleg Endo <olegendo@gcc.gnu.org>
22901 * config/sh/predicates.md (general_extend_operand): Invoke
22902 general_movsrc_operand for memory operands.
22903 (general_movsrc_operand): Allow reg+reg addressing, do not use
22904 general_operand for memory operands.
22906 2013-06-23 Sriraman Tallam <tmsriram@google.com>
22908 * config/i386/i386.c (ix86_pragma_target_parse): Restore target
22909 when current target options does not apply.
22910 * config/i386/i386-protos.h (ix86_reset_previous_fndecl): New function.
22911 * config/i386/i386.c (ix86_reset_previous_fndecl): Ditto.
22912 * config/i386/bmiintrin.h: Pass appropriate target
22913 attributes to header.
22914 * config/i386/mmintrin.h: Ditto.
22915 * config/i386/nmmintrin.h: Ditto.
22916 * config/i386/avx2intrin.h: Ditto.
22917 * config/i386/fxsrintrin.h: Ditto.
22918 * config/i386/tbmintrin.h: Ditto.
22919 * config/i386/xsaveintrin.h: Ditto.
22920 * config/i386/f16cintrin.h: Ditto.
22921 * config/i386/xtestintrin.h: Ditto.
22922 * config/i386/xsaveoptintrin.h: Ditto.
22923 * config/i386/bmi2intrin.h: Ditto.
22924 * config/i386/lzcntintrin.h: Ditto.
22925 * config/i386/smmintrin.h: Ditto.
22926 * config/i386/wmmintrin.h: Ditto.
22927 * config/i386/x86intrin.h: Remove all header include guards.
22928 * config/i386/prfchwintrin.h: Ditto.
22929 * config/i386/pmmintrin.h: Ditto.
22930 * config/i386/tmmintrin.h: Ditto.
22931 * config/i386/xmmintrin.h: Ditto.
22932 * config/i386/popcntintrin.h: Ditto.
22933 * config/i386/rdseedintrin.h: Ditto.
22934 * config/i386/ammintrin.h: Ditto.
22935 * config/i386/emmintrin.h: Ditto.
22936 * config/i386/immintrin.h: Remove all header include guards.
22937 * config/i386/fma4intrin.h: Ditto.
22938 * config/i386/lwpintrin.h: Ditto.
22939 * config/i386/xopintrin.h: Ditto.
22940 * config/i386/ia32intrin.h: Ditto.
22941 * config/i386/avxintrin.h: Ditto.
22942 * config/i386/rtmintrin.h: Ditto.
22943 * config/i386/fmaintrin.h: Ditto.
22944 * config/i386/mm3dnow.h: Ditto.
22946 2013-06-22 Sriraman Tallam <tmsriram@google.com>
22948 * common/config/i386/i386-common.c: Handle LZCNT.
22950 2013-06-22 Andi Kleen <ak@linux.intel.com>
22952 * doc/extend.texi: Use __atomic_store_n instead of
22953 __atomic_store in HLE example.
22955 2013-06-22 Oleg Endo <olegendo@gcc.gnu.org>
22957 * config/sh/sh.c: Remove <cstdlib> workaround.
22959 2013-06-21 Andi Kleen <ak@linux.intel.com>
22961 * doc/extend.texi: Dont use __atomic_clear in HLE example. Fix typo.
22963 2013-06-21 Andi Kleen <ak@linux.intel.com>
22965 * doc/extend.texi: Document that __atomic_clear and
22966 __atomic_test_and_set should only be used with bool.
22968 2013-06-20 Jan Hubicka <jh@suse.cz>
22970 * gimple-fold.c (gimple_extract_devirt_binfo_from_cst): Use
22971 types_same_for_odr.
22972 * tree.c (decls_same_for_odr): New function.
22973 (same_for_edr): New function.
22974 (types_same_for_odr): New function.
22975 (get_binfo_at_offset): Use it.
22976 * tree.h (types_same_for_odr): Declare.
22978 2013-06-20 Oleg Endo <olegendo@gcc.gnu.org>
22979 Jason Merrill <jason@redhat.com>
22981 * system.h: Include <cstdlib> as well as <stdlib.h>.
22983 2013-06-20 Uros Bizjak <ubizjak@gmail.com>
22986 * config/i386/i386.c (construct_container): Report error if
22987 long double is used with disabled x87 float returns.
22989 2013-06-20 Jan Hubicka <jh@suse.cz>
22991 * lto-cgraph.c (input_symtab): Do not set cgraph state.
22993 2013-06-20 Joern Rennecke <joern.rennecke@embecosm.com>
22995 PR rtl-optimization/57425
22996 PR rtl-optimization/57569
22997 * alias.c (write_dependence_p): Remove parameters mem_mode and
22998 canon_mem_addr. Add parameters x_mode, x_addr and x_canonicalized.
22999 Changed all callers.
23000 (canon_anti_dependence): Get comments and semantics in sync.
23001 Add parameter mem_canonicalized. Changed all callers.
23002 * rtl.h (canon_anti_dependence): Update prototype.
23004 2013-06-20 Richard Biener <rguenther@suse.de>
23006 * data-streamer-in.c (streamer_read_uhwi): Optimize single
23007 byte case, inline streamer_read_uchar and defer section
23010 2013-06-20 Richard Biener <rguenther@suse.de>
23012 PR tree-optimization/57584
23013 * tree-ssa-loop-niter.c (expand_simple_operations): Avoid including
23014 SSA names into the expanded expression that take part in
23015 abnormal coalescing.
23017 2013-06-19 Sharad Singhai <singhai@google.com>
23019 * gcov.c (print_usage): Handle new option.
23020 (process_args): Ditto.
23021 (get_gcov_intermediate_filename): New function.
23022 (output_intermediate_file): New function.
23023 (output_gcov_file): New function
23024 (generate_results): Handle new option.
23025 (release_function): Relase demangled name.
23026 (read_graph_file): Handle demangled name.
23027 (output_lines): Ditto.
23028 * doc/gcov.texi: Document gcov intermediate format.
23030 2013-06-19 Vladimir Makarov <vmakarov@redhat.com>
23033 * lra.c (emit_add3_insn, emit_add2_insn): New functions.
23034 (lra_emit_add): Use the functions. Add comment about Y as an
23037 2013-06-19 David Edelsohn <dje.gcc@gmail.com>
23040 * collect2.c (collect_atexit): New.
23041 (collect_exit): Delete.
23042 (main): Register collect_atexit with atexit.
23043 (collect_wait): Change collect_exit to exit.
23045 * collect2.h (collect_exit): Delete.
23046 * tlink.c (do_tlink): Rename exit to ret. Change collect_exit to exit.
23048 2013-06-19 Wei Mi <wmi@google.com>
23050 PR rtl-optimization/57518
23051 * ira.c (set_paradoxical_subreg): Set pdx_subregs[regno]
23052 if regno is used in paradoxical subreg.
23053 (update_equiv_regs): Check pdx_subregs[regno] before
23054 set a reg to be equivalent with a mem.
23056 2013-06-19 Matthias Klose <doko@ubuntu.com>
23059 * file-find.h (find_a_file): Add a mode parameter.
23060 * file-find.c (find_a_file): Likewise.
23061 * gcc-ar.c (main): Call find_a_file with R_OK for the plugin,
23062 with X_OK for the executables.
23063 * collect2.c (main): Call find_a_file with X_OK.
23065 2013-06-19 Steve Ellcey <sellcey@mips.com>
23068 * config/mips/mips.md (casesi_internal_mips16_<mode>):
23069 Use NEXT_INSN instead of next_real_insn.
23071 2013-06-19 Jan Hubicka <jh@suse.cz>
23073 * cgraph.h (const_value_known_p): Replace by ...
23074 (ctor_for_folding): .. this one.
23075 * cgraphunit.c (process_function_and_variable_attributes): Use it.
23076 * lto-cgraph.c (compute_ltrans_boundary): Use ctor_for_folding.
23077 * expr.c (expand_expr_real_1): Likewise.
23078 (string_constant): Likewise.
23079 * tree-ssa-loop-ivcanon.c (constant_after_peeling): Likewise.
23080 * ipa.c (process_references): Likewise.
23081 (symtab_remove_unreachable_nodes): Likewise.
23082 * ipa-inline-analysis.c (param_change_prob): Likewise.
23083 * gimple-fold.c (canonicalize_constructor_val): Likewise.
23084 (get_base_constructor): Likwise.
23085 * varpool.c (varpool_remove_node): Likewise.
23086 (varpool_remove_initializer): LIkewise.
23087 (dump_varpool_node): LIkwise.
23088 (const_value_known_p): Rewrite to ...
23089 (ctor_for_folding): ... this one.
23091 2013-06-19 Jakub Jelinek <jakub@redhat.com>
23094 * gcc-ar.c (main): If not CROSS_DIRECTORY_STRUCTURE, look for
23095 PERSONALITY in $PATH derived prefixes.
23097 2013-06-19 Jeff Law <law@redhat.com>
23099 * tree-ssa-forwprop.c (simplify_bitwise_binary_boolean): Fix typo
23102 * tree-ssa-forwprop.c (simplify_bitwise_binary_boolean): New function.
23103 (simplify_bitwise_binary): Use it to simpify certain binary ops on
23106 2013-06-19 Sofiane Naci <sofiane.naci@arm.com>
23108 * config/arm/vfp.md: Move VFP instruction classification documentation
23110 * config/arm/arm.md: ... here. Update instruction classification
23113 2013-06-19 Richard Earnshaw <rearnsha@arm.com>
23115 arm.md (split for eq(reg, 0)): Add variants for ARMv5 and Thumb2.
23116 (peepholes for eq(reg, not-0)): Ensure condition register is dead after
23117 pattern. Use more efficient sequences on ARMv5 and Thumb2.
23119 2013-06-19 Steven Bosscher <steven@gcc.gnu.org>
23122 * config/s390/s390.c (s390_chunkify_start): Replace next_real_insn
23123 with NEXT_INSN. Use tablejump_p to check for jump table data
23126 2013-06-19 Paolo Carlini <paolo.carlini@oracle.com>
23129 * doc/cpp.texi [Standard Predefined Macros, __cplusplus]: Document
23130 that now in C++ the value is correct per the C++ standards.
23132 2013-06-19 Richard Biener <rguenther@suse.de>
23134 * expr.c (expand_expr_real_1): Use SCOPE_FILE_SCOPE_P to check
23135 for global context.
23137 2013-06-19 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
23140 2013-06-18 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
23143 * config/s390/s390.c (s390_chunkify_start): Replace next_real_insn
23144 with next_active_insn.
23146 2013-06-18 Sriraman Tallam <tmsriram@google.com>
23148 * ipa-inline.c (inline_always_inline_functions): Pretend always_inline
23149 functions are inlined during failures to flag an error.
23150 * tree-inline.c (expand_call_inline): Allow the error to be flagged
23151 in early inline pass.
23153 2013-06-18 H.J. Lu <hongjiu.lu@intel.com>
23155 * config/i386/i386.c (initial_ix86_tune_features): Fix a typo
23158 2013-06-18 Julian Brown <julian@codesourcery.com>
23160 * config/arm/arm.c (neon_vector_mem_operand): Add strict argument.
23161 Permit virtual register pre-reload if !strict.
23162 (coproc_secondary_reload_class): Adjust for neon_vector_mem_operand
23164 * config/arm/arm-protos.h (neon_vector_mem_operand): Adjust
23166 * config/arm/neon.md (movmisalign<mode>): Use
23167 neon_perm_struct_or_reg_operand instead of
23168 neon_struct_or_register_operand.
23169 (*movmisalign<mode>_neon_load, *movmisalign<mode>_neon_store): Use
23170 neon_permissive_struct_operand instead of neon_struct_operand.
23171 * config/arm/constraints.md (Un, Um, Us): Adjust calls to
23172 neon_vector_mem_operand.
23173 * config/arm/predicates.md (neon_struct_operand): Adjust call to
23174 neon_vector_mem_operand.
23175 (neon_permissive_struct_operand): New.
23176 (neon_struct_or_register_operand): Rename to...
23177 (neon_perm_struct_or_reg_operand): This. Adjust call to
23178 neon_vector_mem_operand.
23180 2013-06-18 Richard Biener <rguenther@suse.de>
23182 * Makefile.in (LTO_STREAMER_H): Add pointer-set.h dependency.
23183 * lto-streamer.h: Include pointer-set.h.
23184 (struct lto_decl_slot): Remove.
23185 (struct lto_tree_ref_encoder): Make tree_hash_table a pointer-map.
23186 Remove next_index entry.
23187 (lto_hash_decl_slot_node, lto_eq_decl_slot_node,
23188 lto_hash_type_slot_node, lto_eq_type_slot_node): Remove.
23189 (lto_init_tree_ref_encoder): Adjust.
23190 (lto_destroy_tree_ref_encoder): Likewise.
23191 * lto-section-out.c (lto_hash_decl_slot_node, lto_eq_decl_slot_node,
23192 lto_hash_type_slot_node, lto_eq_type_slot_node): Remove.
23193 (lto_output_decl_index): Adjust.
23194 (lto_new_out_decl_state): Likewise.
23195 (lto_record_function_out_decl_state): Likewise.
23196 * lto-streamer-out.c (copy_function): Likewise.
23198 2013-06-18 Richard Biener <rguenther@suse.de>
23200 * Makefile.in (cgraphunit.o): Add $(CFGLOOP_H) dependency.
23201 * cgraphunit.c: Include cfgloop.h.
23202 (init_lowered_empty_function): Initialize the loop tree.
23203 (assemble_thunk): Insert new BBs into loops.
23205 2013-06-18 Richard Biener <rguenther@suse.de>
23207 * tree-streamer.h (streamer_tree_cache_create): Adjust prototype.
23208 * tree-streamer.c (streamer_tree_cache_create): Make maintaining
23209 the map from cache entry to cache index optional.
23210 (streamer_tree_cache_replace_tree): Adjust accordingly.
23211 (streamer_tree_cache_append): Likewise.
23212 (streamer_tree_cache_delete): Likewise.
23213 * lto-streamer-in.c (lto_data_in_create): Do not maintain the
23214 streamer cache map from cache entry to cache index.
23215 * lto-streamer-out.c (create_output_block): Adjust.
23217 2013-06-18 Sofiane Naci <sofiane.naci@arm.com>
23219 * config/arm/arm.md (attribute "insn"): Move multiplication and
23220 division attributes to...
23221 (attribute "type"): ... here. Remove mult.
23222 (attribute "mul32"): New attribute.
23223 (attribute "mul64"): Add umaal.
23224 (*arm_mulsi3): Update attributes.
23225 (*arm_mulsi3_v6): Likewise.
23226 (*thumb_mulsi3): Likewise.
23227 (*thumb_mulsi3_v6): Likewise.
23228 (*mulsi3_compare0): Likewise.
23229 (*mulsi3_compare0_v6): Likewise.
23230 (*mulsi_compare0_scratch): Likewise.
23231 (*mulsi_compare0_scratch_v6): Likewise.
23232 (*mulsi3addsi): Likewise.
23233 (*mulsi3addsi_v6): Likewise.
23234 (*mulsi3addsi_compare0): Likewise.
23235 (*mulsi3addsi_compare0_v6): Likewise.
23236 (*mulsi3addsi_compare0_scratch): Likewise.
23237 (*mulsi3addsi_compare0_scratch_v6): Likewise.
23238 (*mulsi3subsi): Likewise.
23239 (*mulsidi3adddi): Likewise.
23240 (*mulsi3addsi_v6): Likewise.
23241 (*mulsidi3adddi_v6): Likewise.
23242 (*mulsidi3_nov6): Likewise.
23243 (*mulsidi3_v6): Likewise.
23244 (*umulsidi3_nov6): Likewise.
23245 (*umulsidi3_v6): Likewise.
23246 (*umulsidi3adddi): Likewise.
23247 (*umulsidi3adddi_v6): Likewise.
23248 (*smulsi3_highpart_nov6): Likewise.
23249 (*smulsi3_highpart_v6): Likewise.
23250 (*umulsi3_highpart_nov6): Likewise.
23251 (*umulsi3_highpart_v6): Likewise.
23252 (mulhisi3): Likewise.
23253 (*mulhisi3tb): Likewise.
23254 (*mulhisi3bt): Likewise.
23255 (*mulhisi3tt): Likewise.
23256 (maddhisi4): Likewise.
23257 (*maddhisi4tb): Likewise.
23258 (*maddhisi4tt): Likewise.
23259 (maddhidi4): Likewise.
23260 (*maddhidi4tb): Likewise.
23261 (*maddhidi4tt): Likewise.
23262 (divsi3): Likewise.
23263 (udivsi3): Likewise.
23264 * config/arm/thumb2.md (thumb2_mulsi_short): Update attributes.
23265 (thumb2_mulsi_short_compare0): Likewise.
23266 (thumb2_mulsi_short_compare0_scratch): Likewise.
23267 * config/arm/arm1020e.md (1020mult1): Update attribute change.
23268 (1020mult2): Likewise.
23269 (1020mult3): Likewise.
23270 (1020mult4): Likewise.
23271 (1020mult5): Likewise.
23272 (1020mult6): Likewise.
23273 * config/arm/cortex-a15.md (cortex_a15_mult32): Update attribute
23275 (cortex_a15_mult64): Likewise.
23276 (cortex_a15_sdiv): Likewise.
23277 (cortex_a15_udiv): Likewise.
23278 * config/arm/arm1026ejs.md (mult1): Update attribute change.
23284 * config/arm/marvell-pj4.md (pj4_ir_mul): Update attribute change.
23285 (pj4_ir_div): Likewise.
23286 * config/arm/arm1136jfs.md (11_mult1): Update attribute change.
23287 (11_mult2): Likewise.
23288 (11_mult3): Likewise.
23289 (11_mult4): Likewise.
23290 (11_mult5): Likewise.
23291 (11_mult6): Likewise.
23292 (11_mult7): Likewise.
23293 * config/arm/cortex-a8.md (cortex_a8_mul): Update attribute change.
23294 (cortex_a8_mla): Likewise.
23295 (cortex_a8_mull): Likewise.
23296 (cortex_a8_smulwy): Likewise.
23297 (cortex_a8_smlald): Likewise.
23298 * config/arm/cortex-m4.md (cortex_m4_alu): Update attribute change.
23299 * config/arm/cortex-r4.md (cortex_r4_mul_4): Update attribute change.
23300 (cortex_r4_mul_3): Likewise.
23301 (cortex_r4_mla_4): Likewise.
23302 (cortex_r4_mla_3): Likewise.
23303 (cortex_r4_smlald): Likewise.
23304 (cortex_r4_mull): Likewise.
23305 (cortex_r4_sdiv): Likewise.
23306 (cortex_r4_udiv): Likewise.
23307 * config/arm/cortex-a7.md (cortex_a7_mul): Update attribute change.
23308 (cortex_a7_idiv): Likewise.
23309 * config/arm/arm926ejs.md (9_mult1): Update attribute change.
23310 (9_mult2): Likewise.
23311 (9_mult3): Likewise.
23312 (9_mult4): Likewise.
23313 (9_mult5): Likewise.
23314 (9_mult6): Likewise.
23315 * config/arm/cortex-a53.md (cortex_a53_mul): Update attribute change.
23316 (cortex_a53_sdiv): Likewise.
23317 (cortex_a53_udiv): Likewise.
23318 * config/arm/fa726te.md (726te_mult_op): Update attribute change.
23319 * config/arm/fmp626.md (mp626_mult1): Update attribute change.
23320 (mp626_mult2): Likewise.
23321 (mp626_mult3): Likewise.
23322 (mp626_mult4): Likewise.
23323 * config/arm/fa526.md (526_mult1): Update attribute change.
23324 (526_mult2): Likewise.
23325 * config/arm/arm-generic.md (mult): Update attribute change.
23326 (mult_ldsched_strongarm): Likewise.
23327 (mult_ldsched): Likewise.
23328 (multi_cycle): Likewise.
23329 * config/arm/cortex-a5.md (cortex_a5_mul): Update attribute change.
23330 * config/arm/fa606te.md (606te_mult1): Update attribute change.
23331 (606te_mult2): Likewise.
23332 (606te_mult3): Likewise.
23333 (606te_mult4): Likewise.
23334 * config/arm/cortex-a9.md (cortex_a9_mult16): Update attribute change.
23335 (cortex_a9_mac16): Likewise.
23336 (cortex_a9_multiply): Likewise.
23337 (cortex_a9_mac): Likewise.
23338 (cortex_a9_multiply_long): Likewise.
23339 * config/arm/fa626te.md (626te_mult1): Update attribute change.
23340 (626te_mult2): Likewise.
23341 (626te_mult3): Likewise.
23342 (626te_mult4): Likewise.
23344 2013-06-18 Richard Biener <rguenther@suse.de>
23347 * lto-symtab.c (lto_symtab_merge_decls): Process nodes properly.
23349 2013-06-18 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
23352 * config/s390/s390.c (s390_chunkify_start): Replace next_real_insn
23353 with next_active_insn.
23355 2013-06-18 Alan Modra <amodra@gmail.com>
23357 * config/rs6000/rs6000.h (enum data_align): New.
23358 (LOCAL_ALIGNMENT, DATA_ALIGNMENT): Use rs6000_data_alignment.
23359 (DATA_ABI_ALIGNMENT): Define.
23360 (CONSTANT_ALIGNMENT): Correct comment.
23361 * config/rs6000/rs6000-protos.h (rs6000_data_alignment): Declare.
23362 * config/rs6000/rs6000.c (rs6000_data_alignment): New function.
23364 2013-06-17 David Malcolm <dmalcolm@redhat.com>
23366 * ggc-page.c (ggc_pch_write_object) <d>: Remove erroneous
23367 ATTRIBUTE_UNUSED marking.
23369 2013-06-17 Sofiane Naci <sofiane.naci@arm.com>
23371 * config/aarch64/aarch64-simd.md (aarch64_dup_lane<mode>): Add r<-w
23372 alternative and update.
23373 (aarch64_dup_lanedi): Delete.
23374 * config/aarch64/arm_neon.h (vdup<bhsd>_lane_*): Update.
23375 * config/aarch64/aarch64-simd-builtins.def: Update.
23377 2013-06-17 Richard Biener <rguenther@suse.de>
23379 * lto-streamer.h (enum LTO_tags): Add LTO_tree_scc.
23380 (lto_input_scc): Declare.
23381 (lto_input_tree_1): Likewise.
23382 (struct lto_stats_d): Add num_tree_bodies_output and
23383 num_pickle_refs_output.
23384 * lto-streamer-in.c (lto_read_body): Use streamer_tree_cache_get_tree.
23385 (lto_read_tree_1): Split out from ...
23386 (lto_read_tree): ... this.
23387 (lto_input_scc): New function.
23388 (lto_input_tree_1): Split out from ...
23389 (lto_input_tree): ... this. Handle LTO_tree_scc.
23390 (lto_data_in_create): Create the streamer cache without hashes.
23391 * lto-streamer-out.c (create_output_block): Create the streamer
23392 cache with hashes when not doing WPA.
23393 (lto_write_tree_1): Split out from ...
23394 (lto_write_tree): ... this.
23395 (get_symbol_initial_value): New function.
23396 (lto_output_tree_1): Split out from ...
23397 (lto_output_tree): ... this. Write trees as series of SCCs
23398 using a DFS walk via DFS_write_tree.
23399 (struct sccs, struct scc_entry): New types.
23400 (next_dfs_num, sccstack, sccstate, sccstate_obstack): New globals.
23401 (DFS_write_tree_body): New function.
23402 (DFS_write_tree): Likewise.
23403 (hash_tree): Likewise.
23404 (scc_entry_compare): Likewise.
23405 (hash_scc): Likewise.
23406 (tree_is_indexable): DEBUG_EXPR_DECLs are local entities.
23407 * tree-streamer-in.c (lto_input_ts_list_tree_pointers): Stream
23408 TREE_CHAIN as regular reference.
23409 (streamer_read_integer_cst): Remove.
23410 (streamer_get_pickled_tree): Adjust.
23411 * tree-streamer-out.c (streamer_write_chain): Disable streaming
23412 of DECL_EXTERNALs in BLOCK_VARS for now.
23413 (write_ts_list_tree_pointers): Stream TREE_CHAIN as regular
23415 * tree-streamer.c (streamer_tree_cache_add_to_node_array):
23416 Add hash value argument and record that if hashes are recorded
23418 (streamer_tree_cache_insert_1): Adjust.
23419 (streamer_tree_cache_insert): Likewise.
23420 (streamer_tree_cache_insert_at): Rename to ...
23421 (streamer_tree_cache_replace_tree): ... this and adjust.
23422 (streamer_tree_cache_append): Adjust.
23423 (record_common_node): Likewise.
23424 (streamer_tree_cache_create): Add argument whether to
23425 record hash values together with trees.
23426 (streamer_tree_cache_delete): Adjust.
23427 * tree-streamer.h (struct streamer_tree_cache_d): Add
23429 (streamer_read_integer_cst): Remove.
23430 (streamer_tree_cache_insert): Adjust.
23431 (streamer_tree_cache_append): Likewise.
23432 (streamer_tree_cache_insert_at): Rename to ...
23433 (streamer_tree_cache_replace_tree): ... this and adjust.
23434 (streamer_tree_cache_create): Add argument whether to record hashes.
23435 (streamer_tree_cache_get): Rename to ...
23436 (streamer_tree_cache_get_tree): ... this.
23437 (streamer_tree_cache_get_hash): New function.
23438 * tree.c (cache_integer_cst): New function.
23439 * tree.h (cache_integer_cst): Declare.
23440 (ANON_AGGRNAME_FORMAT, ANON_AGGRNAME_P): Move here from cp/cp-tree.h.
23441 * lto-symtab.c (lto_varpool_replace_node): Only release
23442 DECL_INITIAL of non-prevailing decls.
23443 * varpool.c (varpool_remove_initializer): Do not release
23444 DECL_INITIAL when we are still in CGRAPH_LTO_STREAMING.
23446 2013-06-16 Jürgen Urban <JuergenUrban@gmx.de>
23448 * config/mips/mips.h (ISA_HAS_MUL3): Include TARGET_MIPS5900.
23449 (ISA_HAS_MULT, ISA_HAS_DMULT, ISA_HAS_DIV, ISA_HAS_DDIV): New macros.
23450 * config/mips/mips.md (mul<mode>3, mul<mode>3_internal)
23451 (mul<mode>3_r4000): Require ISA_HAS_<D>MULT.
23452 (mul<mode>3_mul3): Handle TARGET_MIPS5900.
23453 (mulsidi3_64bit_dmul): Remove redundant TARGET_64BIT test.
23454 (<su>muldi3_highpart, <su>muldi3_highpart_internal, <u>mulditi3)
23455 (<u>mulditi3_internal, <u>mulditi3_r4000): Require ISA_HAS_DMULT
23456 instead of TARGET_64BIT.
23457 (divmod<mode>4, udivmod<mode>4, <u>divmod<GPR:mode>4_hilo_<HILO:mode>):
23458 Require ISA_HAS_<D>DIV.
23460 2013-06-16 Richard Sandiford <rdsandiford@googlemail.com>
23462 * config.gcc (mips*-mti-linux*, mips64*-*-linux*, mipsisa64*-*-linux*)
23463 (mips*-*-linux*): Move default with_llsc setting to where other
23465 (mips*-*-vxworks*): Move with_arch default from with_cpu block to
23467 (mips64r5900-*-*, mips64r5900el-*-*, mipsr5900-*-*, mipsr5900el-*-*):
23468 Likewise. Remove default with_tune setting. Move default float
23469 setting to its own block. Handle with_llsc in the same block as above.
23471 2013-06-16 Joern Rennecke <joern.rennecke@embecosm.com>
23473 PR rtl-optimization/57425
23474 PR rtl-optimization/57569
23475 * alias.c (write_dependence_p): Add new parameters mem_mode,
23476 canon_mem_addr and mem_canonicalized. Change type of writep to bool.
23477 Changed all callers.
23478 (canon_anti_dependence): New function.
23479 * cse.c (check_dependence): Use canon_anti_dependence.
23480 * cselib.c (cselib_invalidate_mem): Likewise.
23481 * rtl.h (canon_anti_dependence): Declare.
23483 2013-06-16 Jürgen Urban <JuergenUrban@gmx.de>
23485 * config/mips/mips.h (ISA_HAS_LL_SC): Exclude TARGET_MIPS5900.
23486 * config/mips/mips.c (mips_start_ll_sc_sync_block): Output
23487 ".set mips3" for 64-bit targets.
23489 2013-06-15 Dehao Chen <dehao@google.com>
23491 * tree-flow.h (gimple_check_call_matching_types): Add new argument.
23492 * gimple-low.c (gimple_check_call_matching_types): Likewise.
23493 (gimple_check_call_args): Likewise.
23494 * value-prof.c (check_ic_target): Likewise.
23495 * ipa-inline.c (early_inliner): Likewise.
23496 * ipa-prop.c (update_indirect_edges_after_inlining): Likewise.
23497 * cgraph.c (cgraph_create_edge_1): Likewise.
23498 (cgraph_make_edge_direct): Likewise.
23500 2013-06-14 Michael Meissner <meissner@linux.vnet.ibm.com>
23503 * config/rs6000/rs6000.md (mov<mode>_ppc64): Call
23504 rs6000_output_move_128bit to handle emitting quad memory
23505 operations. Set attribute length to 8 bytes.
23507 2013-06-14 Vidya Praveen <vidyapraveen@arm.com>
23509 * config/aarch64/aarch64-simd.md (aarch64_<su>mlal_lo<mode>):
23511 (aarch64_<su>mlal_hi<mode>, aarch64_<su>mlsl_lo<mode>): Likewise.
23512 (aarch64_<su>mlsl_hi<mode>, aarch64_<su>mlal<mode>): Likewise.
23513 (aarch64_<su>mlsl<mode>): Likewise.
23515 2013-06-14 Mike Stump <mikestump@comcast.net>
23517 * Makefile.in (TARGET_H): Add insn-codes.h.
23519 2013-06-14 Alan Modra <amodra@gmail.com>
23521 PR middle-end/57134
23522 PR middle-end/57586
23523 * expr.c (expand_expr_real_1 <normal_inner_ref>): Pass
23524 EXPAND_MEMORY and EXPAND_WRITE to recursive call. Don't use
23525 bitfield expansion when EXPAND_MEMORY.
23526 (expand_expr_real_1 <VIEW_CONVERT_EXPR>): Pass modifier likewise.
23528 2013-06-13 Michael Meissner <meissner@linux.vnet.ibm.com>
23530 * config/rs6000/rs6000.c (rs6000_option_override_internal): Move
23531 test for clearing quad memory on 32-bit later.
23533 2013-06-13 Marc Glisse <marc.glisse@inria.fr>
23535 * fold-const.c (negate_expr_p): Handle VECTOR_CST.
23536 (fold_negate_expr): Likewise.
23537 (fold_real_zero_addition_p): Handle vectors.
23538 (fold_binary_loc) <PLUS_EXPR, MINUS_EXPR>: Likewise.
23540 2013-06-14 Alan Modra <amodra@gmail.com>
23542 * varasm.c (force_const_mem): Revert 2013-06-07 change.
23544 2013-06-13 Jan Hubicka <jh@suse.cz>
23546 * ipa.c (cgraph_externally_visible_p, varpool_externally_visible_p):
23547 Local comdats are not externally visible.
23548 * symtab.c (dump_symtab_base): Dump externally visible.
23549 (verify_symtab_base): Verify back links in the symtab hash.
23551 2013-06-13 Bin Cheng <bin.cheng@arm.com>
23553 * fold-const.c (operand_equal_p): Consider NOP_EXPR and
23554 CONVERT_EXPR as equal nodes.
23556 2013-06-13 Bin Cheng <bin.cheng@arm.com>
23558 * rtlanal.c (noop_move_p): Check the code to be executed for COND_EXEC.
23560 2013-06-13 Marc Glisse <marc.glisse@inria.fr>
23562 * tree-ssa-forwprop.c (simplify_bitwise_binary, associate_plusminus):
23563 Generalize to complex and vector.
23564 * tree.c (build_all_ones_cst): New function.
23565 * tree.h (build_all_ones_cst): Declare it.
23567 2013-06-13 Alan Modra <amodra@gmail.com>
23569 * config/rs6000/rs6000.h (LONG_DOUBLE_LARGE_FIRST): Define.
23570 * config/rs6000/rs6000.md (signbittf2): New insn.
23571 (extenddftf2_internal): Use LONG_DOUBLE_LARGE_FIRST.
23572 (abstf2_internal, cmptf_internal2): Likewise.
23573 * config/rs6000/spe.md (spe_abstf2_cmp, spe_abstf2_tst): Likewise.
23575 2013-06-12 Michael Meissner <meissner@linux.vnet.ibm.com>
23576 Pat Haugen <pthaugen@us.ibm.com>
23577 Peter Bergner <bergner@vnet.ibm.com>
23579 * config/rs6000/rs6000.c (emit_load_locked): Add support for
23580 power8 byte, half-word, and quad-word atomic instructions.
23581 (emit_store_conditional): Likewise.
23582 (rs6000_expand_atomic_compare_and_swap): Likewise.
23583 (rs6000_expand_atomic_op): Likewise.
23585 * config/rs6000/sync.md (larx): Add new modes for power8.
23587 (AINT): New mode iterator to include TImode as well as normal
23588 integer modes on power8.
23589 (fetchop_pred): Use int_reg_operand instead of gpc_reg_operand so
23590 that VSX registers are not considered. Use AINT mode iterator
23591 instead of INT1 to allow inclusion of quad word atomic operations
23593 (load_locked<mode>): Likewise.
23594 (store_conditional<mode>): Likewise.
23595 (atomic_compare_and_swap<mode>): Likewise.
23596 (atomic_exchange<mode>): Likewise.
23597 (atomic_nand<mode>): Likewise.
23598 (atomic_fetch_<fetchop_name><mode>): Likewise.
23599 (atomic_nand_fetch<mode>): Likewise.
23600 (mem_thread_fence): Use gen_loadsync_<mode> instead of enumerating
23602 (ATOMIC): On power8, add QImode, HImode modes.
23603 (load_locked<QHI:mode>_si): Varients of load_locked for QI/HI
23604 modes that promote to SImode.
23605 (load_lockedti): Convert TImode arguments to PTImode, so that we
23606 get a guaranteed even/odd register pair.
23607 (load_lockedpti): Likewise.
23608 (store_conditionalti): Likewise.
23609 (store_conditionalpti): Likewise.
23611 * config/rs6000/rs6000.md (QHI): New mode iterator for power8
23612 atomic load/store instructions.
23615 2013-06-12 Richard Sandiford <rdsandiford@googlemail.com>
23617 * config/mips/mips.md (extended_mips16): Include GOT and constant-pool
23619 (insn_count): New attribute, with most cases extracted from...
23620 (length): ...here. Redefine most cases in terms of insn_count.
23621 (single_insn): Delete.
23622 (can_delay): Use insn_count to check for single instructions.
23623 (*mul<mode>3_r4300, mul<mode>3_r4000, *mul_acc_si, *mul_acc_si_r3900)
23624 (*msac_using_macc, *mul_sub_si, <u>mulsidi3_32bit_r4000)
23625 (<u>mulsidi3_64bit_r4000, <su>muldi3_highpart_internal)
23626 (<su>mulsi3_highpart_split, <su>muldi3_highpart_internal)
23627 (<u>mulditi3_r4000, *div<mode>3, *recip<mode>3, divmod<mode>4)
23628 (udivmod<mode>4, sqrt<mode>2, *rsqrt<mode>a, *rsqrt<mode>b)
23629 (fix_truncdfsi2_macro, fix_truncsfsi2_macro, *lea_high64)
23630 (*lea64, cprestore_<mode>, clear_hazard_<mode>, <unnamed insn>)
23631 (casesi_internal_mips16_<mode>, *tls_get_tp_<mode>_split)
23632 (tls_get_tp_mips16, *tls_get_tp_mips16_call_<mode>): Use "insn_count"
23633 rather than "length".
23634 (tls_get_tp_<mode>): Likewise. Remove redundant "no_delay" attribute.
23635 * config/mips/mips-ps-3d.md (mips_c_cond_4s, mips_cabs_cond_4s):
23636 Use "insn_count" rather than "length".
23637 * config/mips/mips-dsp.md
23638 (mips_l<SHORT:size><u>x_ext<GPR:mode>_<P:mode>)
23639 (mips_l<GPR:size>x_<P:mode>, *mips_lw<u>x_<P:mode>_ext): Remove
23642 2013-06-12 Marc Glisse <marc.glisse@inria.fr>
23644 PR tree-optimization/57361
23645 * tree-ssa-dse.c (dse_possible_dead_store_p): Handle self-assignment.
23647 2013-06-12 Sofiane Naci <sofiane.naci@arm.com>
23649 * config/aarch64/aarch64-simd.md (aarch64_combine<mode>): Convert
23651 (aarch64_simd_combine<mode>): New instruction expansion.
23652 * config/aarch64/aarch64-protos.h (aarch64_split_simd_combine): New
23653 function prototype.
23654 * config/aarch64/aarch64.c (aarch64_split_combine): New function.
23655 * config/aarch64/iterators.md (Vdbl): Add entry for DF.
23657 2013-06-12 Jan Hubicka <jh@suse.cz>
23659 * cgraph.c (verify_edge_corresponds_to_fndecl): Be lax about
23660 decl has when in streaming stage.
23661 * lto-symtab.c (lto_symtab_merge_symbols): Likewise.
23662 * cgraph.h (cgraph_state): Add CGRAPH_LTO_STREAMING.
23664 2013-06-12 Roland Stigge <stigge@antcom.de>
23667 * config/rs6000/t-linux (MULTIARCH_DIRNAME): Fix SPE version detection.
23669 2013-06-12 Jakub Jelinek <jakub@redhat.com>
23671 PR tree-optimization/57537
23672 * tree-vect-patterns.c (vect_recog_widen_mult_pattern): If
23673 vect_handle_widen_op_by_const, convert oprnd1 to half_type1.
23675 2013-06-12 Richard Biener <rguenther@suse.de>
23677 * data-streamer.h (streamer_write_char_stream): CSE
23678 obs->current_pointer.
23679 * data-streamer-out.c (streamer_write_uhwi_stream): Inline
23680 streamer_write_char_stream manually and optimize the resulting loop.
23681 (streamer_write_hwi_stream): Likewise.
23683 2013-06-12 Jan Hubicka <jh@suse.cz>
23685 * lto-symtab.c (lto_symtab_merge_symbols): Populate symtab hashtable.
23686 * cgraph.h (varpool_create_empty_node): Declare.
23687 * lto-cgraph.c (input_node, input_varpool_node): Forcingly create
23689 * symtab.c (symtab_unregister_node): Be lax about missin entries
23691 (symtab_get_node): Update comment.
23692 * varpool.c (varpool_create_empty_node): Break out from ...
23693 (varpool_node_for_decl): ... here.
23694 * lto-streamer.h (lto_file_decl_data): Add RESOLUTION_MAP.
23696 2013-06-12 Eric Botcazou <ebotcazou@adacore.com>
23698 * expr.c (expand_expr_real_1) <TARGET_MEM_REF>: Use straight-line flow.
23699 <MEM_REF>: Use 'type' instead of TREE_TYPE (exp) and tidy up the first
23700 part. Use straight-line flow at the end.
23701 <COMPONENT_REF>: Remove superfluous else.
23702 <VIEW_CONVERT_EXPR>: Use 'type' instead of TREE_TYPE (exp).
23704 2013-06-12 Jakub Jelinek <jakub@redhat.com>
23707 * varasm.c (decl_binds_to_current_def_p): Call binds_local_p
23708 target hook even for !TREE_PUBLIC decls. If no resolution info
23709 is available, return false for common and external decls.
23711 2013-06-12 Kaushik Phatak <kaushik.phatak@kpitcummins.com>
23713 * config/rl78/constraints.md (U): New constraint.
23714 * config/rl78/rl78.md (*mulqi3_rl78,*mulhi3_rl78,*mulhi3_g13): Add
23717 2013-06-11 Michael Meissner <meissner@linux.vnet.ibm.com>
23720 * config/rs6000/driver-rs6000.c (elf_platform): Make buffer static
23721 to allow returning address to AT_PLATFORM name.
23723 2013-06-11 Jan Hubicka <jh@suse.cz>
23725 * cgraph.c (cgraph_create_function_alias): Set weakref flag.
23726 * cgraph.h (symtab_node_base): Add weakref flag.
23727 * cgraphunit.c (cgraph_reset_node): Clear weakref flag.
23728 (handle_alias_pairs): Set weakref flag, do not set DECL_EXTERNAL.
23729 (output_weakrefs): Use weakref flag.
23730 * fold-const.c (simple_operand_p): Handle WEAK.
23731 * gimple-fold.c (can_refer_decl_in_current_unit_p): Drop weakref.
23732 * ipa.c (varpool_externally_visible_p): Drop weakref.
23733 (function_and_variable_visibility): Update comment; fix weakref
23734 sanity checks; do not clear DECL_WEAK on them.
23735 * lto-cgraph.c (lto_output_node): update.
23736 (lto_output_varpool_node): Update.
23737 (input_overwrite_node): Update.
23738 (input_node): Update.
23739 (input_varpool_node): Update.
23740 * lto-symtab.c (lto_symtab_symbol_p): Do not special case weakrefs.
23741 (lto_symtab_merge_symbols): Add sanity check.
23742 (lto_symtab_prevailing_decl): Do not special case weakrefs.
23743 * passes.c (rest_of_decl_compilation): Set static flag, too.
23744 * symtab.c (dump_symtab_base): Dump weakref.
23745 (verify_symtab_base): Sanity check weakrefs.
23746 (symtab_make_decl_local): Remove duplicated code.
23747 (symtab_alias_ultimate_target): Simplify.
23748 * varpool.c (varpool_create_variable_alias): Set weakref flag.
23750 2013-06-11 Tom de Vries <tom@codesourcery.com>
23752 * genautomata.c (gen_regexp_sequence): Handle els_num == -1. Handle
23753 sequence_vect == NULL.
23755 2013-06-11 DJ Delorie <dj@redhat.com>
23757 * config/rl78/rl78.c (TARGET_UNWIND_WORD_MODE): Define.
23758 (rl78_unwind_word_mode): New.
23760 2013-06-11 David Malcolm <dmalcolm@redhat.com>
23762 * final.c (debug_prefix_maps): Make static.
23764 2013-06-11 David Malcolm <dmalcolm@redhat.com>
23766 * function.c (initial_trampoline): Remove stray copy.
23768 2013-06-11 Sofiane Naci <sofiane.naci@arm.com>
23770 * config/aarch64/aarch64-simd.md (move_lo_quad_<mode>): Update.
23772 2013-06-11 Martin Jambor <mjambor@suse.cz>
23774 * ipa-cp.c (ipa_get_indirect_edge_target_1): Check that param_index is
23775 within bounds at the beginning of the function.
23777 2013-06-11 Alan Modra <amodra@gmail.com>
23779 * varasm.c (get_section): Don't die on !DECL_P decl. Tidy error
23781 (get_named_section): Don't NULL !DECL_P decl.
23783 2013-06-11 Igor Zamyatin <igor.zamyatin@intel.com>
23785 * doc/invoke.texi (core-avx2): Document.
23787 (atom): Updated with MOVBE.
23789 2013-06-11 Richard Biener <rguenther@suse.de>
23791 * collect2.c (main): Do not redirect ld stdout/stderr when debugging.
23793 2013-06-11 Anton Blanchard <anton@samba.org>
23795 * config/rs6000/rs6000.c (rs6000_adjust_atomic_subword): Calculate
23796 correct shift value in little-endian mode.
23798 2013-06-11 Jakub Jelinek <jakub@redhat.com>
23801 * varasm.c (get_variable_align): Move #endif to the right place.
23803 2013-06-10 Cary Coutant <ccoutant@google.com>
23805 * dwarf2out.c (hash_external_ref): Use die_symbol or signature
23806 for hash so that hash table traversal order is deterministic.
23808 2013-06-10 Michael Meissner <meissner@linux.vnet.ibm.com>
23809 Pat Haugen <pthaugen@us.ibm.com>
23810 Peter Bergner <bergner@vnet.ibm.com>
23812 * config/rs6000/vector.md (GPR move splitter): Do not split moves
23813 of vectors in GPRS if they are direct moves or quad word load or
23816 * config/rs6000/rs6000-protos.h (rs6000_output_move_128bit): Add
23818 (direct_move_p): Likewise.
23819 (quad_load_store_p): Likewise.
23821 * config/rs6000/rs6000.c (enum rs6000_reg_type): Simplify register
23822 classes into bins based on the physical register type.
23823 (reg_class_to_reg_type): Likewise.
23824 (IS_STD_REG_TYPE): Likewise.
23825 (IS_FP_VECT_REG_TYPE): Likewise.
23826 (reload_fpr_gpr): Arrays to determine what insn to use if we can
23827 use direct move instructions.
23828 (reload_gpr_vsx): Likewise.
23829 (reload_vsx_gpr): Likewise.
23830 (rs6000_init_hard_regno_mode_ok): Precalculate the register type
23831 information that is a simplification of register classes. Also
23832 precalculate direct move reload helpers.
23833 (direct_move_p): New function to return true if the operation can
23834 be done as a direct move instruciton.
23835 (quad_load_store_p): New function to return true if the operation
23836 is a quad memory operation.
23837 (rs6000_legitimize_address): If quad memory, only allow register
23838 indirect for TImode addresses.
23839 (rs6000_legitimate_address_p): Likewise.
23840 (enum reload_reg_type): Delete, replace with rs6000_reg_type.
23841 (rs6000_reload_register_type): Likewise.
23842 (register_to_reg_type): Return register type.
23843 (rs6000_secondary_reload_simple_move): New helper function for
23844 secondary reload and secondary memory needed to identify anything
23845 that is a simple move, and does not need reloading.
23846 (rs6000_secondary_reload_direct_move): New helper function for
23847 secondary reload to identify cases that can be done with several
23848 instructions via the direct move instructions.
23849 (rs6000_secondary_reload_move): New helper function for secondary
23850 reload to identify moves between register types that can be done.
23851 (rs6000_secondary_reload): Add support for quad memory operations
23852 and for direct move.
23853 (rs6000_secondary_memory_needed): Likewise.
23854 (rs6000_debug_secondary_memory_needed): Change argument names.
23855 (rs6000_output_move_128bit): New function to return the move to
23856 use for 128-bit moves, including knowing about the various
23857 limitations of quad memory operations.
23859 * config/rs6000/vsx.md (vsx_mov<mode>): Add support for quad
23860 memory operations. call rs6000_output_move_128bit for the actual
23861 instruciton(s) to generate.
23862 (vsx_movti_64bit): Likewise.
23864 * config/rs6000/rs6000.md (UNSPEC_P8V_FMRGOW): New unspec values.
23865 (UNSPEC_P8V_MTVSRWZ): Likewise.
23866 (UNSPEC_P8V_RELOAD_FROM_GPR): Likewise.
23867 (UNSPEC_P8V_MTVSRD): Likewise.
23868 (UNSPEC_P8V_XXPERMDI): Likewise.
23869 (UNSPEC_P8V_RELOAD_FROM_VSX): Likewise.
23870 (UNSPEC_FUSION_GPR): Likewise.
23871 (FMOVE128_GPR): New iterator for direct move.
23872 (f32_lv): New mode attribute for load/store of SFmode/SDmode values.
23873 (f32_sv): Likewise.
23874 (f32_dm): Likewise.
23875 (zero_extend<mode>di2_internal1): Add support for power8 32-bit
23876 loads and direct move instructions.
23877 (zero_extendsidi2_lfiwzx): Likewise.
23878 (extendsidi2_lfiwax): Likewise.
23879 (extendsidi2_nocell): Likewise.
23880 (floatsi<mode>2_lfiwax): Likewise.
23881 (lfiwax): Likewise.
23882 (floatunssi<mode>2_lfiwzx): Likewise.
23883 (lfiwzx): Likewise.
23884 (fix_trunc<mode>_stfiwx): Likewise.
23885 (fixuns_trunc<mode>_stfiwx): Likewise.
23886 (mov<mode>_hardfloat, 32-bit floating point): Likewise.
23887 (mov<move>_hardfloat64, 64-bit floating point): Likewise.
23888 (parity<mode>2_cmpb): Set length/type attr.
23889 (unnamed shift right patterns, mov<mode>_internal2): Change type attr
23890 for 'mr.' to fast_compare.
23891 (bpermd_<mode>): Change type attr to popcnt.
23892 (p8_fmrgow_<mode>): New insns for power8 direct move support.
23893 (p8_mtvsrwz_1): Likewise.
23894 (p8_mtvsrwz_2): Likewise.
23895 (reload_fpr_from_gpr<mode>): Likewise.
23896 (p8_mtvsrd_1): Likewise.
23897 (p8_mtvsrd_2): Likewise.
23898 (p8_xxpermdi_<mode>): Likewise.
23899 (reload_vsx_from_gpr<mode>): Likewise.
23900 (reload_vsx_from_gprsf): Likewise.
23901 (p8_mfvsrd_3_<mode>): LIkewise.
23902 (reload_gpr_from_vsx<mode>): Likewise.
23903 (reload_gpr_from_vsxsf): Likewise.
23904 (p8_mfvsrd_4_disf): Likewise.
23905 (multi-word GPR splits): Do not split direct moves or quad memory
23908 2013-06-10 David Malcolm <dmalcolm@redhat.com>
23910 * tree-into-ssa.c (interesting_blocks): Make static.
23912 2013-06-10 Jakub Jelinek <jakub@redhat.com>
23915 * varasm.c (align_variable): Don't use DATA_ALIGNMENT or
23916 CONSTANT_ALIGNMENT if !decl_binds_to_current_def_p (decl).
23917 Use DATA_ABI_ALIGNMENT for that case instead if defined.
23918 (get_variable_align): New function.
23919 (get_variable_section, emit_bss, emit_common,
23920 assemble_variable_contents, place_block_symbol): Use
23921 get_variable_align instead of DECL_ALIGN.
23922 (assemble_noswitch_variable): Add align argument, use it
23923 instead of DECL_ALIGN.
23924 (assemble_variable): Adjust caller. Use get_variable_align
23925 instead of DECL_ALIGN.
23926 * config/i386/i386.h (DATA_ALIGNMENT): Adjust x86_data_alignment
23928 (DATA_ABI_ALIGNMENT): Define.
23929 * config/i386/i386-protos.h (x86_data_alignment): Adjust prototype.
23930 * config/i386/i386.c (x86_data_alignment): Add opt argument. If
23931 opt is false, only return the psABI mandated alignment increase.
23932 * config/c6x/c6x.h (DATA_ALIGNMENT): Renamed to...
23933 (DATA_ABI_ALIGNMENT): ... this.
23934 * config/mmix/mmix.h (DATA_ALIGNMENT): Renamed to...
23935 (DATA_ABI_ALIGNMENT): ... this.
23936 * config/mmix/mmix.c (mmix_data_alignment): Adjust function comment.
23937 * config/s390/s390.h (DATA_ALIGNMENT): Renamed to...
23938 (DATA_ABI_ALIGNMENT): ... this.
23939 * doc/tm.texi.in (DATA_ABI_ALIGNMENT): Document.
23940 * doc/tm.texi: Regenerated.
23942 2013-06-10 Uros Bizjak <ubizjak@gmail.com>
23944 * config/alpha/alpha.c (alpha_emit_xfloating_compare): Also use
23945 cmp_code to construct REG_EQUAL note.
23947 2013-06-09 Jakub Jelinek <jakub@redhat.com>
23950 * config/i386/i386.md (TARGET_READ_MODIFY_WRITE peepholes): Ensure
23951 that operands[2] doesn't overlap with operands[0].
23953 2013-06-09 David Edelsohn <dje.gcc@gmail.com>
23954 Jan Hubicka <jh@suse.cz>
23956 * config/rs6000/rs6000.c (print_operand, 'z'): Remove historical
23957 hack to mark symbols as used.
23959 2013-06-08 Vladimir Makarov <vmakarov@redhat.com>
23961 PR rtl-optimization/57559
23962 * lra-constraints.c (process_alt_operands): Don't discourage
23963 memory with known offset for offsetable memory constraint.
23964 * lra.c (lra_emit_add): Exchange y and z for 2-op add insn.
23966 2013-06-08 Eric Botcazou <ebotcazou@adacore.com>
23968 * varasm.c (struct oc_local_state): Reorder fields.
23969 (output_constructor_bitfield): Replace OUTER parameter with BIT_OFFSET
23970 and adjust accordingly.
23971 (output_constructor): Reorder initialization code and adjust call to
23972 output_constructor_bitfield.
23974 2013-06-07 Jan Hubicka <jh@suse.cz>
23976 * symtab.c (symtab_resolve_alias): Do not remove alias attribute.
23978 2013-06-07 David Malcolm <dmalcolm@redhat.com>
23980 * tree-object-size.c (unknown): Make const.
23982 2013-06-07 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
23984 * config/s390/s390.md (cpu_facility): Add cpu_zarch.
23985 ("*movmem_short", "*clrmem_short", "*cmpmem_short): Use cpu_zarch
23986 for last alternative in the cpu_facility attribute.
23988 2013-06-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
23991 * config/arm/arm.md (*xordi3_insn): Change to insn_and_split.
23992 (xordi3): Change operand 2 constraint to arm_xordi_operand.
23993 * config/arm/arm.c (const_ok_for_dimode_op): Handle XOR.
23994 * config/arm/constraints.md (Dg): New constraint.
23995 * config/arm/neon.md (xordi3_neon): Remove.
23996 (neon_veor<mode>): Generate xordi3 instead of xordi3_neon.
23997 * config/arm/predicates.md (arm_xordi_operand): New predicate.
23999 2013-06-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
24001 * config/arm/arm.md (anddi3_insn): Remove duplicate alternatives.
24002 Clean up alternatives.
24004 2013-06-07 Alan Modra <amodra@gmail.com>
24006 * config/rs6000/rs6000.c (setup_incoming_varargs): Round up
24009 2013-06-07 Alan Modra <amodra@gmail.com>
24011 * varasm.c (force_const_mem): Assert mode is not VOID or BLK.
24013 2013-06-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
24015 * config/arm/constraints.md (Df): New constraint.
24016 * config/arm/arm.md (iordi3_insn): Use Df constraint instead of De.
24017 Correct length attribute for last two alternatives.
24019 2013-06-07 Alan Modra <amodra@gmail.com>
24021 * config/rs6000/rs6000.c (rs6000_option_override_internal): Don't
24022 override user -mfp-in-toc.
24023 (offsettable_ok_by_alignment): Consider just the current access
24024 rather than the whole object, unless BLKmode. Handle
24025 CONSTANT_POOL_ADDRESS_P constants that lack a decl too.
24026 (use_toc_relative_ref): Allow CONSTANT_POOL_ADDRESS_P constants
24027 for -mcmodel=medium.
24028 * config/rs6000/linux64.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Don't
24029 override user -mfp-in-toc or -msum-in-toc. Default to
24030 -mno-fp-in-toc for -mcmodel=medium.
24032 2013-06-06 DJ Delorie <dj@redhat.com>
24034 * config/rl78/rl78.c (rl78_valid_pointer_mode): New, implements
24035 TARGET_VALID_POINTER_MODE.
24037 2013-06-06 Michael Meissner <meissner@linux.vnet.ibm.com>
24038 Pat Haugen <pthaugen@us.ibm.com>
24039 Peter Bergner <bergner@vnet.ibm.com>
24041 * doc/extend.texi (PowerPC AltiVec/VSX Built-in Functions):
24042 Document new power8 builtins.
24044 * config/rs6000/vector.md (and<mode>3): Add a clobber/scratch of a
24045 condition code register, to allow 128-bit logical operations to be
24046 done in the VSX or GPR registers.
24047 (nor<mode>3): Use the canonical form for nor.
24048 (eqv<mode>3): Add expanders for power8 xxleqv, xxlnand, xxlorc,
24049 vclz*, and vpopcnt* vector instructions.
24050 (nand<mode>3): Likewise.
24051 (orc<mode>3): Likewise.
24052 (clz<mode>2): LIkewise.
24053 (popcount<mode>2): Likewise.
24055 * config/rs6000/predicates.md (int_reg_operand): Rework tests so
24056 that only the GPRs are recognized.
24058 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
24059 support for new power8 builtins.
24061 * config/rs6000/rs6000-builtin.def (xscvspdpn): Add new power8
24063 (xscvdpspn): Likewise.
24069 (vpopcnt): Likewise.
24070 (vpopcntb): Likewise.
24071 (vpopcnth): Likewise.
24072 (vpopcntw): Likewise.
24073 (vpopcntd): Likewise.
24075 (vmrgew): Likewise.
24076 (vmrgow): Likewise.
24078 (eqv_v16qi3): Likewise.
24079 (eqv_v8hi3): Likewise.
24080 (eqv_v4si3): Likewise.
24081 (eqv_v2di3): Likewise.
24082 (eqv_v4sf3): Likewise.
24083 (eqv_v2df3): Likewise.
24085 (nand_v16qi3): Likewise.
24086 (nand_v8hi3): Likewise.
24087 (nand_v4si3): Likewise.
24088 (nand_v2di3): Likewise.
24089 (nand_v4sf3): Likewise.
24090 (nand_v2df3): Likewise.
24092 (orc_v16qi3): Likewise.
24093 (orc_v8hi3): Likewise.
24094 (orc_v4si3): Likewise.
24095 (orc_v2di3): Likewise.
24096 (orc_v4sf3): Likewise.
24097 (orc_v2df3): Likewise.
24099 * config/rs6000/rs6000.c (rs6000_option_override_internal): Only
24100 allow power8 quad mode in 64-bit.
24101 (rs6000_builtin_vectorized_function): Add support to vectorize
24102 ISA 2.07 count leading zeros, population count builtins.
24103 (rs6000_expand_vector_init): On ISA 2.07 use xscvdpspn to form
24104 V4SF vectors instead of xscvdpsp to avoid IEEE related traps.
24105 (builtin_function_type): Add vgbbd builtin function which takes an
24107 (altivec_expand_vec_perm_const): Add support for new power8 merge
24110 * config/rs6000/vsx.md (VSX_L2): New iterator for 128-bit types,
24111 that does not include TImdoe for use with 32-bit.
24112 (UNSPEC_VSX_CVSPDPN): Support for power8 xscvdpspn and xscvspdpn
24114 (UNSPEC_VSX_CVDPSPN): Likewise.
24115 (vsx_xscvdpspn): Likewise.
24116 (vsx_xscvspdpn): Likewise.
24117 (vsx_xscvdpspn_scalar): Likewise.
24118 (vsx_xscvspdpn_directmove): Likewise.
24119 (vsx_and<mode>3): Split logical operations into 32-bit and
24120 64-bit. Add support to do logical operations on TImode as well as
24121 VSX vector types. Allow logical operations to be done in either
24122 VSX registers or in general purpose registers in 64-bit mode. Add
24123 splitters if GPRs were used. For AND, add clobber of CCmode to
24124 allow use of ANDI on GPRs. Rewrite nor to use the canonical RTL
24126 (vsx_and<mode>3_32bit): Likewise.
24127 (vsx_and<mode>3_64bit): Likewise.
24128 (vsx_ior<mode>3): Likewise.
24129 (vsx_ior<mode>3_32bit): Likewise.
24130 (vsx_ior<mode>3_64bit): Likewise.
24131 (vsx_xor<mode>3): Likewise.
24132 (vsx_xor<mode>3_32bit): Likewise.
24133 (vsx_xor<mode>3_64bit): Likewise.
24134 (vsx_one_cmpl<mode>2): Likewise.
24135 (vsx_one_cmpl<mode>2_32bit): Likewise.
24136 (vsx_one_cmpl<mode>2_64bit): Likewise.
24137 (vsx_nor<mode>3): Likewise.
24138 (vsx_nor<mode>3_32bit): Likewise.
24139 (vsx_nor<mode>3_64bit): Likewise.
24140 (vsx_andc<mode>3): Likewise.
24141 (vsx_andc<mode>3_32bit): Likewise.
24142 (vsx_andc<mode>3_64bit): Likewise.
24143 (vsx_eqv<mode>3_32bit): Add support for power8 xxleqv, xxlnand,
24144 and xxlorc instructions.
24145 (vsx_eqv<mode>3_64bit): Likewise.
24146 (vsx_nand<mode>3_32bit): Likewise.
24147 (vsx_nand<mode>3_64bit): Likewise.
24148 (vsx_orc<mode>3_32bit): Likewise.
24149 (vsx_orc<mode>3_64bit): Likewise.
24151 * config/rs6000/rs6000.h (VLOGICAL_REGNO_P): Update comment.
24153 * config/rs6000/altivec.md (UNSPEC_VGBBD): Add power8 vgbbd
24155 (p8_vmrgew): Add power8 vmrgew and vmrgow instructions.
24156 (p8_vmrgow): Likewise.
24157 (altivec_and<mode>3): Add clobber of CCmode to allow AND using
24158 GPRs to be split under VSX.
24159 (p8v_clz<mode>2): Add power8 count leading zero support.
24160 (p8v_popcount<mode>2): Add power8 population count support.
24161 (p8v_vgbbd): Add power8 gather bits by bytes by doubleword
24164 * config/rs6000/rs6000.md (eqv<mode>3): Add support for powerp eqv
24167 * config/rs6000/altivec.h (vec_eqv): Add defines to export power8
24169 (vec_nand): Likewise.
24170 (vec_vclz): Likewise.
24171 (vec_vclzb): Likewise.
24172 (vec_vclzd): Likewise.
24173 (vec_vclzh): Likewise.
24174 (vec_vclzw): Likewise.
24175 (vec_vgbbd): Likewise.
24176 (vec_vmrgew): Likewise.
24177 (vec_vmrgow): Likewise.
24178 (vec_vpopcnt): Likewise.
24179 (vec_vpopcntb): Likewise.
24180 (vec_vpopcntd): Likewise.
24181 (vec_vpopcnth): Likewise.
24182 (vec_vpopcntw): Likewise.
24184 2013-06-06 Vladimir Makarov <vmakarov@redhat.com>
24186 PR rtl-optimization/57468
24187 * config/i386/i386.c (inline_secondary_memory_needed): Ignore
24190 2013-06-06 Vladimir Makarov <vmakarov@redhat.com>
24192 PR rtl-optimization/57459
24193 * lra-constraints.c (update_ebb_live_info): Fix typo for operand
24194 type when setting live regs.
24196 2013-06-06 Vladimir Makarov <vmakarov@redhat.com>
24198 * config/s390/s390.opt (mlra): New option.
24199 * config/s390/s390.c (s390_decompose_address): Check displacement
24200 for all registers for LRA.
24201 (s390_secondary_reload): Don't used secondary reloads for LRA.
24202 (s390_lra_p): New function.
24203 (TARGET_LRA_P): Define.
24204 * config/s390/s390.md (*movmem_short, *clrmem_short): Change value
24205 of attribute cpu_facility to zarch for the last alternative.
24206 (*cmpmem_short): Ditto.
24208 2013-06-06 Eric Botcazou <ebotcazou@adacore.com>
24210 * config/arm/arm.c (arm_r3_live_at_start_p): New predicate.
24211 (arm_compute_static_chain_stack_bytes): Use it. Tidy up.
24212 (arm_expand_prologue): Likewise.
24214 2013-06-06 Teresa Johnson <tejohnson@google.com>
24217 * ifcvt.c (find_if_case_1): Replace BB_COPY_PARTITION with assert
24218 as this is now done by redirect_edge_and_branch_force.
24219 * function.c (thread_prologue_and_epilogue_insns): Insert new bb after
24220 barriers, and fix interaction with splitting.
24221 * emit-rtl.c (try_split): Copy REG_CROSSING_JUMP notes.
24222 * cfgcleanup.c (try_forward_edges): Fix early return value to properly
24223 reflect changes made in the routine.
24224 * bb-reorder.c (emit_barrier_after_bb): Move to cfgrtl.c.
24225 (fix_up_fall_thru_edges): Remove incorrect check for bb layout order
24226 since this is called in cfglayout mode, and replace partition fixup
24227 with assert as that is now done by force_nonfallthru_and_redirect.
24228 (add_reg_crossing_jump_notes): Handle the fact that some jumps may
24229 already be marked with region crossing note.
24230 (insert_section_boundary_note): Make non-static, gate on flag
24231 has_bb_partition, rewrite to also check for multiple partitions.
24232 (rest_of_handle_reorder_blocks): Remove call to
24233 insert_section_boundary_note, now done later during free_cfg.
24234 (duplicate_computed_gotos): Don't duplicate partition crossing edge.
24235 * bb-reorder.h (insert_section_boundary_note): Declare.
24236 * Makefile.in (cfgrtl.o): Depend on bb-reorder.h
24237 * cfgrtl.c (rest_of_pass_free_cfg): If partitions exist
24238 invoke insert_section_boundary_note.
24239 (try_redirect_by_replacing_jump): Remove unnecessary
24240 check for region crossing note.
24241 (fixup_partition_crossing): New function.
24242 (rtl_redirect_edge_and_branch): Fixup partition boundaries.
24243 (emit_barrier_after_bb): Move here from bb-reorder.c, handle insertion
24244 in non-cfglayout mode.
24245 (force_nonfallthru_and_redirect): Fixup partition boundaries,
24246 remove old code that tried to do this. Emit barrier correctly
24247 when we are in cfglayout mode.
24248 (last_bb_in_partition): New function.
24249 (rtl_split_edge): Correctly fixup partition boundaries.
24250 (commit_one_edge_insertion): Remove old code that tried to
24251 fixup region crossing edge since this is now handled in
24252 split_block, and set up insertion point correctly since
24253 block may now end in a jump.
24254 (verify_hot_cold_block_grouping): Guard against checking when not in
24255 linearized RTL mode.
24256 (rtl_verify_edges): Add checks for incorrect/missing REG_CROSSING_JUMP
24258 (rtl_verify_flow_info_1): Move verify_hot_cold_block_grouping to
24259 rtl_verify_flow_info, so not called in cfglayout mode.
24260 (rtl_verify_flow_info): Move verify_hot_cold_block_grouping here.
24261 (fixup_reorder_chain): Remove old code that attempted to fixup region
24262 crossing note as this is now handled in force_nonfallthru_and_redirect.
24263 (duplicate_insn_chain): Don't duplicate switch section notes.
24264 (rtl_can_remove_branch_p): Remove unnecessary check for region crossing
24266 * basic-block.h (emit_barrier_after_bb): Declare.
24268 2013-06-06 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
24270 * config/arm/arm-fixed.md (add<mode>3,usadd<mode>3,ssadd<mode>3,
24271 sub<mode>3, ussub<mode>3, sssub<mode>3, arm_ssatsihi_shift,
24272 arm_usatsihi): Adjust alternatives for arm_restrict_it.
24274 2013-06-06 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
24276 * config/arm/arm-ldmstm.ml: Set "predicable_short_it" to "no"
24278 * config/arm/ldmstm.md: Regenerate.
24280 2013-06-06 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
24282 * config/arm/sync.md (atomic_loaddi_1):
24283 Disable predication for arm_restrict_it.
24284 (arm_load_exclusive<mode>): Likewise.
24285 (arm_load_exclusivesi): Likewise.
24286 (arm_load_exclusivedi): Likewise.
24287 (arm_load_acquire_exclusive<mode>): Likewise.
24288 (arm_load_acquire_exclusivesi): Likewise.
24289 (arm_load_acquire_exclusivedi): Likewise.
24290 (arm_store_exclusive<mode>): Likewise.
24291 (arm_store_exclusive<mode>): Likewise.
24292 (arm_store_release_exclusivedi): Likewise.
24293 (arm_store_release_exclusive<mode>): Likewise.
24295 2013-06-06 Richard Biener <rguenther@suse.de>
24297 * lto-streamer.h (enum LTO_tags): Move LTO_tree_pickle_reference
24299 (lto_tag_is_tree_code_p): Adjust.
24300 (lto_tag_is_gimple_code_p): Likewise.
24301 (lto_gimple_code_to_tag): Likewise.
24302 (lto_tag_to_gimple_code): Likewise.
24303 (lto_tree_code_to_tag): Likewise.
24304 (lto_tag_to_tree_code): Likewise.
24305 * data-streamer.h (streamer_write_hwi_in_range): Use
24306 uhwi streaming to stream the normalized range.
24307 (streamer_read_hwi_in_range): Likewise.
24309 2013-06-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
24311 * config/arm/arm.md (enabled_for_depr_it): New attribute.
24312 (predicable_short_it): Likewise.
24313 (predicated): Likewise.
24314 (enabled): Handle above.
24315 (define_cond_exec): Set predicated attribute to yes.
24317 2013-06-05 Mike Stump <mikestump@comcast.net>
24319 * gdbinit.in (__FUNCTION__): Add.
24321 2013-06-05 Uros Bizjak <ubizjak@gmail.com>
24323 * config/alpha/alpha.c (alpha_emit_conditional_move): Swap all
24324 GE, GT, GEU and GTU compares, modulo DImode compares with zero.
24326 2013-06-05 Jan Hubicka <jh@suse.cz>
24328 * varasm.c (mark_decl_referenced): Revert the removal until targets
24331 2013-06-05 David Edelsohn <dje.gcc@gmail.com>
24333 * config/rs6000/rs6000.c (print_operand, 'z'): Use DECL_PRESERVE_P
24334 instead of mark_decl_referenced.
24336 2013-06-05 Jan Hubicka <jh@suse.cz>
24338 * cgraph.c (cgraph_remove_node): Clear forced_by_abi.
24339 (cgraph_node_cannot_be_local_p_1): Honnor symbol.forced_by_abi
24340 and symtab_used_from_object_file_p.
24341 (cgraph_make_node_local_1): Clear forced_by_abi.
24342 (cgraph_can_remove_if_no_direct_calls_and): Use forced_by_abi
24343 * cgraph.h (symtab_node_base): Add forced_by_abi.
24344 (decide_is_variable_needed): Remove.
24345 (varpool_can_remove_if_no_refs): Honnor symbol.forced_by_abi.
24346 * cgraphunit.c (cgraph_decide_is_function_needed): Rename to ..
24347 (decide_is_symbol_needed): ... this one; handle symbols in general;
24348 always analyze virtuals; honnor forced_by_abi.
24349 (cgraph_finalize_function): Update.
24350 (varpool_finalize_decl): Update.
24351 (symbol_defined_and_needed): Remove.
24352 (analyze_functions): Update.
24353 * lto-cgraph.c (lto_output_node, lto_output_varpool_node,
24354 output_refs, input_overwrite_node): Handle forced_by_abi.
24355 * ipa.c (cgraph_address_taken_from_non_vtable_p): Rename to ...
24356 (address_taken_from_non_vtable_p): ... this one.
24357 (comdat_can_be_unshared_p_1): New function.
24358 (cgraph_comdat_can_be_unshared_p): Rename to ...
24359 (comdat_can_be_unshared_p): ... this one; handle symbols in general.
24360 (varpool_externally_visible_p): Use comdat_can_be_unshared_p.
24361 (function_and_variable_visibility): Clear forced_by_abi as needed.
24362 * trans-mem.c (ipa_tm_mark_forced_by_abi_node): New functoin.
24363 (ipa_tm_create_version_alias, ipa_tm_create_version): Update.
24364 * symtab.c (dump_symtab_base): Dump forced_by_abi.
24365 * varpool.c (decide_is_variable_needed): Remove.
24367 2013-06-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
24369 * config/arm/arm.c (MAX_INSN_PER_IT_BLOCK): New macro.
24370 (arm_option_override): Override arm_restrict_it where appropriate.
24371 (thumb2_final_prescan_insn): Use MAX_INSN_PER_IT_BLOCK.
24372 * config/arm/arm.opt (mrestrict-it): New command-line option.
24373 * doc/invoke.texi: Document -mrestrict-it.
24375 2013-06-05 David Malcolm <dmalcolm@redhat.com>
24377 * tsan.c (tsan_atomic_table): Make const.
24379 2013-06-05 Richard Biener <rguenther@suse.de>
24381 * tree-streamer.c (streamer_tree_cache_insert_1): Update the
24382 index associated with the tree we are supposed to replace.
24383 * tree-streamer-out.c (pack_ts_base_value_fields): Output
24384 TREE_ASM_WRITTEN as zero for everything but SSA names.
24386 2013-06-05 David Malcolm <dmalcolm@redhat.com>
24388 * tree-ssa-structalias.c (call_stmt_vars): Make static.
24390 2013-06-04 Jan Hubicka <jh@suse.cz>
24392 * lto-cgraph.c (get_alias_symbol): Remove weakref sanity check.
24393 (input_node, input_varpool_node): Handle correctly external same
24395 * ipa.c (symtab_remove_unreachable_nodes): Do not remove external
24396 nodes at ltrans stage.
24398 2013-06-04 Jan Hubicka <jh@suse.cz>
24400 * ipa-inline.c (update_caller_keys): Fix availability test.
24401 (update_callee_keys): Likewise.
24402 * symtab.c (symtab_alias_ultimate_target): Make availaiblity logic
24403 to follow ELF standard.
24405 2013-06-04 Jürgen Urban <JuergenUrban@gmx.de>
24407 * config.gcc (mipsr5900-*-elf*, mipsr5900el-*-elf*, mips64r5900-*-elf*)
24408 (mips64r5900el-*-elf*): New configurations.
24409 * config/mips/mips-cpus.def (r5900): New processor.
24410 * config/mips/mips-tables.opt: Regenerate.
24411 * config/mips/mips.c (mips_rtx_cost_data): Add an R5900 entry.
24412 (mips_issue_rate): Handle PROCESSOR_R5900.
24413 (mips_reorg_process_insns): Force reorder mode for the R5900.
24414 * config/mips/mips.h (TARGET_MIPS5900): Define.
24415 (ISA_HAS_CONDMOVE, ISA_HAS_PREFETCH, ISA_HAS_HILO_INTERLOCKS): Include
24417 (ISA_HAS_LOAD_DELAY, ISA_HAS_XFER_DELAY, ISA_HAS_FCMP_DELAY): Exclude
24419 * config/mips/mips.md (processor): Add r5900.
24420 (MOVECC): Disallow CCmode conditions for TARGET_MIPS5900.
24422 2013-06-04 Ian Bolton <ian.bolton@arm.com>
24424 * config/aarch64/aarch64.md (*mov<mode>_aarch64): Call
24425 into function to generate MOVI instruction.
24426 * config/aarch64/aarch64.c (aarch64_simd_container_mode): New function.
24427 (aarch64_preferred_simd_mode): Turn into wrapper.
24428 (aarch64_output_scalar_simd_mov_immediate): New function.
24429 * config/aarch64/aarch64-protos.h: Add prototype for above.
24431 2013-06-04 Ian Bolton <ian.bolton@arm.com>
24433 * config/aarch64/aarch64.c (simd_immediate_info): Remove
24434 element_char member.
24435 (sizetochar): Return signed char.
24436 (aarch64_simd_valid_immediate): Remove elchar and other
24437 unnecessary variables.
24438 (aarch64_output_simd_mov_immediate): Take rtx instead of &rtx.
24439 Calculate element_char as required.
24440 * config/aarch64/aarch64-protos.h: Update and move prototype
24441 for aarch64_output_simd_mov_immediate.
24442 * config/aarch64/aarch64-simd.md (*aarch64_simd_mov<mode>):
24445 2013-06-04 Ian Bolton <ian.bolton@arm.com>
24447 * config/aarch64/aarch64.c (simd_immediate_info): Struct to hold
24448 information completed by aarch64_simd_valid_immediate.
24449 (aarch64_legitimate_constant_p): Update arguments.
24450 (aarch64_simd_valid_immediate): Work with struct rather than many
24452 (aarch64_simd_scalar_immediate_valid_for_move): Update arguments.
24453 (aarch64_simd_make_constant): Update arguments.
24454 (aarch64_output_simd_mov_immediate): Work with struct rather than
24455 many pointers. Output immediate directly rather than as operand.
24456 * config/aarch64/aarch64-protos.h (aarch64_simd_valid_immediate):
24458 * config/aarch64/constraints.md (Dn): Update arguments.
24460 2013-06-04 Ian Bolton <ian.bolton@arm.com>
24462 * config/aarch64/aarch64.c (aarch64_simd_valid_immediate): No
24464 (aarch64_simd_immediate_valid_for_move): Remove.
24465 (aarch64_simd_scalar_immediate_valid_for_move): Update call.
24466 (aarch64_simd_make_constant): Update call.
24467 (aarch64_output_simd_mov_immediate): Update call.
24468 * config/aarch64/aarch64-protos.h (aarch64_simd_valid_immediate):
24470 * config/aarch64/constraints.md (Dn): Update call.
24472 2013-06-04 Ian Bolton <ian.bolton@arm.com>
24474 * config/aarch64/aarch64.c (aarch64_simd_valid_immediate): Change
24475 return type to bool for prototype.
24476 (aarch64_legitimate_constant_p): Check for true instead of not -1.
24477 (aarch64_simd_valid_immediate): Fix up each return to return a bool.
24478 (aarch64_simd_immediate_valid_for_move): Update retval for bool.
24480 2013-06-04 Catherine Moore <clm@codesourcery.com>
24482 * config/mips/mips.opt (meva): New.
24483 * config/mips/mips.h (TARGET_CPU_CPP_BUILTINS): Define __mips_eva.
24484 (ASM_SPEC): Handle -meva.
24485 * doc/invoke.texi (meva): Document.
24487 2013-06-04 Alan Modra <amodra@gmail.com>
24489 * config/rs6000/rs6000.c (output_toc): Correct little-endian float
24492 2013-06-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
24494 * rtl.def: Add extra fourth optional field to define_cond_exec.
24495 * gensupport.c (process_one_cond_exec): Process attributes from
24497 * doc/md.texi: Document fourth field in define_cond_exec.
24499 2013-06-04 Eric Botcazou <ebotcazou@adacore.com>
24501 * expmed.c (extract_bit_field_1): In the larger-than-a-word case, factor
24502 out the processing order as in store_bit_field_1.
24504 2013-06-04 Jan Hubicka <jh@suse.cz>
24506 PR middle-end/57500
24507 * cgraphunit.c (cgraph_process_same_body_aliases): Create
24508 non-VAR_DECL node if it does not exist yet.
24510 2013-06-03 Richard Sandiford <rdsandiford@googlemail.com>
24512 * config.gcc (mipsisa64sr71k-*-elf*, mipsisa64sb1-*-elf*)
24513 (mipsisa64sb1el-*-elf*, mips64-*-elf*, mips64el-*-elf*)
24514 (mips64orion-*-elf*, mips64orionel-*-elf*): Remove
24515 target_cpu_default setting.
24517 2013-06-03 Teresa Johnson <tejohnson@google.com>
24519 * dumpfile.c (opt_info_switch_p): Change -fopt-info
24520 default to -fopt-info=optimized instead of all.
24521 * doc/invoke.texi: Ditto.
24522 * tree-vectorizer.c (vectorize_loops): Emit loop vectorization
24523 success under MSG_OPTIMIZED_LOCATIONS, and use dump_printf_loc.
24524 (execute_vect_slp): Emit BB vectorization success under
24525 MSG_OPTIMIZED_LOCATIONS.
24526 * tree-vect-slp.c (vect_slp_transform_bb): Change
24527 MSG_OPTIMIZED_LOCATIONS to MSG_NOTE.
24528 * tree-vect-loop.c (vect_transform_loop): Ditto.
24530 2013-06-03 Jason Merrill <jason@redhat.com>
24533 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
24534 Use TARGET_EXPR for C++.
24536 2013-06-03 Jakub Jelinek <jakub@redhat.com>
24538 PR rtl-optimization/57268
24539 * sched-deps.c (sched_analyze_2): Don't flush_pending_lists
24540 if DEBUG_INSN_P (insn).
24543 2013-05-31 Dinar Temirbulatov <dinar@kugelworks.com>
24545 PR rtl-optimization/57268
24546 * sched-deps.c (sched_analyze_2): Flush dependence lists if
24547 the sum of the read and write lists exceeds MAX_PENDING_LIST_LENGTH.
24549 2013-06-03 Yuri Rumyantsev <yuri.s.rumyantsev@intel.com>
24551 * config/i386/i386.c (ix86_lea_outperforms): Fix formatting.
24552 (ix86_avoid_lea_for_addr): Likewise.
24553 (exact_dependency_1): Likewise.
24554 (ix86_adjust_cost): Likewise.
24555 (swap_top_of_ready_list): Fix formatting and !reload_completed check
24557 (do_reorder_for_imul): Fix typo, formatting and
24558 !reload_completed check removed.
24559 (ix86_sched_reorder): Fix typo and formatting.
24560 (fold_builtin_cpu): Move M_INTEL_SLM at the end of processor types
24563 2013-06-03 Sofiane Naci <sofiane.naci@arm.com>
24565 * config/aarch64/aarch64.md (*movdi_aarch64): Define "simd" attribute.
24567 2013-06-03 Eric Botcazou <ebotcazou@adacore.com>
24569 * varasm.c (output_constant) <CONSTRUCTOR>: Minor formatting tweak.
24570 <STRING_CST>: Likewise.
24571 <VECTOR_CST>: Likewise.
24573 2013-06-01 Janus Weil <janus@gcc.gnu.org>
24574 Mikael Morin <mikael@gcc.gnu.org>
24576 * configure.ac: Add AC_HEADER_TIOCGWINSZ macro.
24577 * config.in: Regenerated.
24578 * configure: Regenerated.
24580 2013-06-01 Jan Hubicka <jh@suse.cz>
24582 PR middle-end/57366
24583 * cgraphunit.c (compile): When weakref is not supported,
24584 set up transparent aliases before final output pass.
24585 * varasm.c (assemble_alias): Do not try to do it here.
24587 2013-06-01 Jan Hubicka <jh@suse.cz>
24589 PR middle-end/57467
24590 * passes.c (for_per_function): Skip unanalyzed functions.
24592 2013-06-01 Jan Hubicka <jh@suse.cz>
24594 * lto-symtab.c (lto_symtab_merge_cgraph_nodes_1): Rename to ...
24595 (lto_symtab_merge_symbols_1): ... this one.
24596 (lto_symtab_merge_cgraph_nodes): Rename to ...
24597 (lto_symtab_merge_symbols): ... this one; simplify.
24598 * cgraph.c (same_body_aliases_done): Rename to ...
24599 (cpp_implicit_aliases_done): ... this one.
24600 (cgraph_create_function_alias): Update.
24601 (cgraph_same_body_alias): Update.
24602 (dump_cgraph_node): Remove alias dumping; simplify thunk dumping.
24603 (verify_edge_corresponds_to_fndecl): Simplify.
24604 * cgraph.h (symtab_node_base): Add cpp_implicit_alias, alias_target.
24605 (cgraph_node): Remove same_body_alias.
24606 (varpool_node): Remove alias_of and extra_name_alias.
24607 (same_body_aliases_done): Rename to ..
24608 (cpp_implicit_aliases_done): ... this one.
24609 (symtab_alias_ultimate_target): Add default parameter.
24610 (symtab_resolve_alias): New function.
24611 (fixup_same_cpp_alias_visibility): Declare.
24612 (cgraph_function_node): Add default parameter.
24613 (cgraph_node_asm_name): Likewise.
24614 (cgraph_function_or_thunk_node): Add default parameter; do
24615 not ICE when it is NULL.
24616 (varpool_variable_node): Likewise.
24617 * tree-emutls.c (create_emultls_var): Update.
24618 (ipa_lower_emutls): Update.
24619 * cgraphunit.c (cgraph_decide_is_function_needed): Update.
24620 (cgraph_reset_node): Reset alias info.
24621 (cgraph_finalize_function): Update.
24622 (fixup_same_cpp_alias_visibility): Move to symtab.c.
24623 (analyze_function): Simplify.
24624 (cgraph_process_same_body_aliases): Simplify.
24625 (analyze_functions): Fixup same body aliases.
24626 (handle_alias_pairs): Simplify.
24627 (assemble_thunk): Update.
24628 (assemble_thunks_and_aliases): Update.
24629 (output_weakrefs): Rewrite.
24630 * lto-cgraph.c (lto_output_node): Rewrite alias handling.
24631 (lto_output_varpool_node): Likewise.
24632 (compute_ltrans_boundary): Remve assert.
24633 (get_alias_symbol): New functoin.
24634 (input_node): Rewrite alias handling.
24635 (input_varpool_node): Likewise.
24636 * ipa-pure-const.c (propagate_pure_const): Fix formating.
24637 * ipa.c (process_references): Handle weakrefs correctly.
24638 (symtab_remove_unreachable_nodes): Likewise.
24639 * trans-mem.c (get_cg_data): Update.
24640 (ipa_tm_create_version_alias): Update.
24641 (ipa_tm_execute): Update.
24642 * symtab.c (dump_symtab_base): Dump aliases.
24643 (verify_symtab_base): Verify aliases.
24644 (symtab_node_availability): New function.
24645 (symtab_alias_ultimate_target): Simplify.
24646 (fixup_same_cpp_alias_visibility): Move here from cgraphunit.c;
24647 handle all the fixup cases.
24648 (symtab_resolve_alias): New function.
24649 * passes.c (ipa_write_summaries): Handle weakrefs.
24650 * varpool.c (varpool_analyze_node): Simplify.
24651 (assemble_aliases): Update.
24652 (varpool_create_variable_alias): Simplify.
24653 (varpool_extra_name_alias): Simplify.
24654 * lto-streamer.h (lto_symtab_merge_cgraph_nodes): Rename to...
24655 (lto_symtab_merge_symbols): ... this one.
24657 2013-06-01 Dinar Temirbulatov <dinar@kugelworks.com>
24660 PR rtl-optimization/57268
24661 * sched-deps.c (sched_analyze_2): Flush dependence lists if
24662 the sum of the read and write lists exceeds MAX_PENDING_LIST_LENGTH.
24664 2013-06-01 Tobias Burnus <burnus@net-b.de>
24666 Partially reverted:
24667 2013-05-31 Tobias Burnus <burnus@net-b.de>
24669 PR middle-end/57073
24670 * tree-ssa-math-opts.c (execute_cse_sincos): Move check
24673 2013-05-31 Dinar Temirbulatov <dinar@kugelworks.com>
24675 PR rtl-optimization/57268
24676 * sched-deps.c (sched_analyze_2): Flush dependence lists if
24677 the sum of the read and write lists exceeds MAX_PENDING_LIST_LENGTH.
24679 2013-05-31 Eric Botcazou <ebotcazou@adacore.com>
24681 * config/rs6000/predicates.md (rs6000_cbranch_operator): Accept some
24682 unordered comparison operators when -fno-trapping-math is in effect
24684 * config/rs6000/rs6000.c (rs6000_generate_compare): Remove dead code
24685 and implement unordered comparison operators properly on the e500.
24687 2013-05-31 Eric Botcazou <ebotcazou@adacore.com>
24689 * simplify-rtx.c (simplify_byte_swapping_operation): Use proper macro
24690 for constant scalar integers.
24691 (simplify_relational_operation_1): Likewise.
24693 2013-05-31 Segher Boessenkool <segher@kernel.crashing.org>
24695 * config/rs6000/rs6000-opts.h (enum processor_type): Reorder.
24696 * config/rs6000/rs6000.md (cpu): Reorder. Split long line.
24699 2013-05-31 Yuri Rumyantsev <yuri.s.rumyantsev@intel.com>
24700 Igor Zamyatin <igor.zamyatin@intel.com>
24702 Silvermont (SLM) architecture performance tuning.
24703 * config/i386/i386.h (enum ix86_tune_indices): Add
24704 X86_TUNE_SPLIT_MEM_OPND_FOR_FP_CONVERTS.
24705 (TARGET_SPLIT_MEM_OPND_FOR_FP_CONVERTS): New define.
24707 * config/i386/i386.c (initial_ix86_tune_features)
24708 <X86_TUNE_SPLIT_MEM_OPND_FOR_FP_CONVERTS>: Initialize.
24709 (ix86_lea_outperforms): Handle Silvermont tuning.
24710 (ix86_avoid_lea_for_add): Add new argument to ix86_lea_outperforms
24712 (ix86_use_lea_for_mov): Likewise.
24713 (ix86_avoid_lea_for_addr): Likewise.
24714 (ix86_lea_for_add_ok): Likewise.
24715 (exact_dependency_1): New function.
24716 (exact_store_load_dependency): Likewise.
24717 (ix86_adjust_cost): Handle Silvermont tuning.
24718 (do_reoder_for_imul): Likewise.
24719 (swap_top_of_ready_list): New function.
24720 (ix86_sched_reorder): Changed to handle Silvermont tuning.
24722 * config/i386/i386.md (peepholes that split memory operand in fp
24725 2013-05-31 Marcus Shawcroft <marcus.shawcroft@arm.com>
24727 * config/aarch64/aarch64.c (aarch64_load_symref_appropriately):
24728 Remove un-necessary braces.
24730 2013-05-31 Marcus Shawcroft <marcus.shawcroft@arm.com>
24732 * config/aarch64/aarch64.c (aarch64_classify_symbol):
24733 Use SYMBOL_TINY_ABSOLUTE for AARCH64_CMODEL_TINY_PIC.
24735 2013-05-31 Tobias Burnus <burnus@net-b.de>
24737 PR middle-end/57073
24738 * tree-ssa-math-opts.c (execute_cse_sincos): Move check further up.
24740 2013-05-31 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
24743 * config/arm/arm.c (const_ok_for_dimode_op): Handle IOR.
24744 * config/arm/arm.md (*iordi3_insn): Change to insn_and_split.
24745 * config/arm/neon.md (iordi3_neon): Remove.
24746 (neon_vorr<mode>): Generate iordi3 instead of iordi3_neon.
24747 * config/arm/predicates.md (imm_for_neon_logic_operand):
24748 Move to earlier in the file.
24749 (neon_logic_op2): Likewise.
24750 (arm_iordi_operand_neon): New predicate.
24752 2013-05-31 Richard Biener <rguenther@suse.de>
24754 PR tree-optimization/57478
24755 PR tree-optimization/57453
24756 * tree-vect-slp.c (vect_bb_slp_scalar_cost): Uses in PHI nodes
24759 2013-05-31 Kaushik Phatak <kaushik.phatak@kpitcummins.com>
24761 * config/rl78/rl78.md (mulqi3,mulhi3): New define_expands.
24762 (*mulqi3_rl78,*mulhi3_rl78,*mulhi3_g13): New define_insns.
24764 2013-05-30 Tobias Burnus <burnus@net-b.de>
24765 Thomas Koenig <tkoenig@gcc.gnu.org>
24767 PR middle-end/57073
24768 * tree-ssa-math-opts.c (execute_cse_sincos): Optimize
24769 powi (-1.0, k) to (k & 1) ? -1.0 : 1.0.
24771 2013-05-30 Steven Bosscher <steven@gcc.gnu.org>
24773 * rtlanal.c (tablejump_p): Expect table and label to be adjacent.
24775 2013-05-30 Vladimir Makarov <vmakarov@redhat.com>
24777 * target.def (register_usage_leveling_p): New hook.
24778 * targhooks.c (default_register_usage_leveling_p): New.
24779 * targhooks.h (default_register_usage_leveling_p): New prototype.
24780 * lra-assigns.c (register_usage_leveling_p): Use the hook.
24781 * doc/tm.texi.in (TARGET_REGISTER_USAGE_LEVELING_P): New hook.
24782 * doc/tm.texi: Update.
24783 * config/i386/i386.c (TARGET_REGISTER_USAGE_LEVELING_P): Define.
24785 2013-05-30 Ian Bolton <ian.bolton@arm.com>
24787 * config/aarch64/aarch64.md (insv<mode>): New define_expand.
24788 (*insv_reg<mode>): New define_insn.
24790 2013-05-30 Joern Rennecke <joern.rennecke@embecosm.com>
24792 PR rtl-optimization/57439
24793 * postreload.c (move2add_valid_value_p): Check that we have
24794 a zero subreg_regno_offset when accessing the register in
24795 the requested mode.
24797 2013-05-30 Yuri Rumyantsev <yuri.s.rumyantsev@intel.com>
24798 Igor Zamyatin <igor.zamyatin@intel.com>
24800 Silvermont (SLM) architecture pipeline model, tuning and
24802 * config.gcc: Add slm config options and target.
24804 * config/i386/slm.md: New.
24806 * config/i386/driver-i386.c (host_detect_local_cpu): Check movbe.
24808 * config/i386/i386-c.c (ix86_target_macros_internal): New case
24810 (ix86_target_macros_internal): Likewise.
24812 * config/i386/i386.c (slm_cost): New cost.
24813 (m_SLM): New macro flag.
24814 (initial_ix86_tune_features): Set m_SLM.
24815 (x86_accumulate_outgoing_args): Likewise.
24816 (x86_arch_always_fancy_math_387): Likewise.
24817 (processor_target_table): Add slm cost.
24818 (cpu_names): Add slm cpu name.
24819 (x86_option_override_internal): Set SLM ISA.
24820 (ix86_issue_rate): New case PROCESSOR_SLM.
24821 (ia32_multipass_dfa_lookahead): Likewise.
24822 (fold_builtin_cpu): Add slm.
24824 * config/i386/i386.h (TARGET_SLM): New target macro.
24825 (target_cpu_default): Add TARGET_CPU_DEFAULT_slm.
24826 (processor_type): Add PROCESSOR_SLM.
24828 * config/i386/i386.md (cpu): Add new value "slm".
24829 (slm.md): Include slm.md.
24831 2013-05-30 Bernd Schmidt <bernds@codesourcery.com>
24832 Zhenqiang Chen <zhenqiang.chen@linaro.org>
24834 * config/arm/arm-protos.h: Add and update function protos.
24835 * config/arm/arm.c (use_simple_return_p): New added.
24836 (thumb2_expand_return): Check simple_return flag.
24837 * config/arm/arm.md: Add simple_return and conditional simple_return.
24838 * config/arm/iterators.md: Add iterator for return and simple_return.
24840 2013-05-30 Zhenqiang Chen <zhenqiang.chen@linaro.org>
24842 * config/arm/arm.c (arm_add_cfa_adjust_cfa_note): New added.
24843 (arm_emit_multi_reg_pop): Add REG_CFA_ADJUST_CFA notes.
24844 (arm_emit_vfp_multi_reg_pop): Likewise.
24845 (thumb2_emit_ldrd_pop): Likewise.
24846 (arm_expand_epilogue): Add misc REG_CFA notes.
24847 (arm_unwind_emit): Skip REG_CFA_ADJUST_CFA and REG_CFA_RESTORE.
24849 2013-05-29 Lawrence Crowl <crowl@google.com>
24851 * config/arm/t-arm: Update for below.
24853 * config/arm/arm.c (arm_libcall_uses_aapcs_base::libcall_htab):
24854 Change type to hash_table. Update dependent calls and types.
24856 * config/i386/t-cygming: Update for below.
24858 * config/i386/t-interix: Update for below.
24860 * config/i386/winnt.c (i386_pe_section_type_flags::htab):
24861 Change type to hash_table. Update dependent calls and types.
24862 (i386_find_on_wrapper_list::wrappers): Likewise.
24864 * config/ia64/t-ia64: Update for below.
24866 * config/ia64/ia64.c (bundle_state_table):
24867 Change type to hash_table. Update dependent calls and types.
24869 * config/mips/mips.c (mips_reorg_process_insns::htab):
24870 Change type to hash_table. Update dependent calls and types.
24872 * config/sol2.c (solaris_comdat_htab):
24873 Change type to hash_table. Update dependent calls and types.
24875 * config/t-sol2: Update for above.
24877 2013-05-29 Teresa Johnson <tejohnson@google.com>
24879 * passes.c (dump_passes): Use FOR_EACH_FUNCTION since
24880 functions are not yet marked as defined.
24882 2013-05-29 Michael Meissner <meissner@linux.vnet.ibm.com>
24883 Pat Haugen <pthaugen@us.ibm.com>
24884 Peter Bergner <bergner@vnet.ibm.com>
24886 * config/rs6000/vector.md (VEC_I): Add support for new power8 V2DI
24890 (vrotl<mode>3): Likewise.
24891 (vashl<mode>3): Likewise.
24892 (vlshr<mode>3): Likewise.
24893 (vashr<mode>3): Likewise.
24895 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
24896 support for power8 V2DI builtins.
24898 * config/rs6000/rs6000-builtin.def (abs_v2di): Add support for
24899 power8 V2DI builtins.
24900 (vupkhsw): Likewise.
24901 (vupklsw): Likewise.
24902 (vaddudm): Likewise.
24903 (vminsd): Likewise.
24904 (vmaxsd): Likewise.
24905 (vminud): Likewise.
24906 (vmaxud): Likewise.
24907 (vpkudum): Likewise.
24908 (vpksdss): Likewise.
24909 (vpkudus): Likewise.
24910 (vpksdus): Likewise.
24915 (vsubudm): Likewise.
24916 (vcmpequd): Likewise.
24917 (vcmpgtsd): Likewise.
24918 (vcmpgtud): Likewise.
24919 (vcmpequd_p): Likewise.
24920 (vcmpgtsd_p): Likewise.
24921 (vcmpgtud_p): Likewise.
24922 (vupkhsw): Likewise.
24923 (vupklsw): Likewise.
24924 (vaddudm): Likewise.
24925 (vmaxsd): Likewise.
24926 (vmaxud): Likewise.
24927 (vminsd): Likewise.
24928 (vminud): Likewise.
24929 (vpksdss): Likewise.
24930 (vpksdus): Likewise.
24931 (vpkudum): Likewise.
24932 (vpkudus): Likewise.
24937 (vsubudm): Likewise.
24939 * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Add
24940 support for power8 V2DI instructions.
24942 * config/rs6000/altivec.md (UNSPEC_VPKUHUM): Add support for
24943 power8 V2DI instructions. Combine pack and unpack insns to use an
24944 iterator for each mode. Check whether a particular mode supports
24945 Altivec instructions instead of just checking TARGET_ALTIVEC.
24946 (UNSPEC_VPKUWUM): Likewise.
24947 (UNSPEC_VPKSHSS): Likewise.
24948 (UNSPEC_VPKSWSS): Likewise.
24949 (UNSPEC_VPKUHUS): Likewise.
24950 (UNSPEC_VPKSHUS): Likewise.
24951 (UNSPEC_VPKUWUS): Likewise.
24952 (UNSPEC_VPKSWUS): Likewise.
24953 (UNSPEC_VPACK_SIGN_SIGN_SAT): Likewise.
24954 (UNSPEC_VPACK_SIGN_UNS_SAT): Likewise.
24955 (UNSPEC_VPACK_UNS_UNS_SAT): Likewise.
24956 (UNSPEC_VPACK_UNS_UNS_MOD): Likewise.
24957 (UNSPEC_VUPKHSB): Likewise.
24958 (UNSPEC_VUNPACK_HI_SIGN): Likewise.
24959 (UNSPEC_VUNPACK_LO_SIGN): Likewise.
24960 (UNSPEC_VUPKHSH): Likewise.
24961 (UNSPEC_VUPKLSB): Likewise.
24962 (UNSPEC_VUPKLSH): Likewise.
24964 (VI_char): Likewise.
24965 (VI_scalar): Likewise.
24966 (VI_unit): Likewise.
24968 (VP_small): Likewise.
24969 (VP_small_lc): Likewise.
24970 (VU_char): Likewise.
24971 (add<mode>3): Likewise.
24972 (altivec_vaddcuw): Likewise.
24973 (altivec_vaddu<VI_char>s): Likewise.
24974 (altivec_vadds<VI_char>s): Likewise.
24975 (sub<mode>3): Likewise.
24976 (altivec_vsubcuw): Likewise.
24977 (altivec_vsubu<VI_char>s): Likewise.
24978 (altivec_vsubs<VI_char>s): Likewise.
24979 (altivec_vavgs<VI_char>): Likewise.
24980 (altivec_vcmpbfp): Likewise.
24981 (altivec_eq<mode>): Likewise.
24982 (altivec_gt<mode>): Likewise.
24983 (altivec_gtu<mode>): Likewise.
24984 (umax<mode>3): Likewise.
24985 (smax<mode>3): Likewise.
24986 (umin<mode>3): Likewise.
24987 (smin<mode>3): Likewise.
24988 (altivec_vpkuhum): Likewise.
24989 (altivec_vpkuwum): Likewise.
24990 (altivec_vpkshss): Likewise.
24991 (altivec_vpkswss): Likewise.
24992 (altivec_vpkuhus): Likewise.
24993 (altivec_vpkshus): Likewise.
24994 (altivec_vpkuwus): Likewise.
24995 (altivec_vpkswus): Likewise.
24996 (altivec_vpks<VI_char>ss): Likewise.
24997 (altivec_vpks<VI_char>us): Likewise.
24998 (altivec_vpku<VI_char>us): Likewise.
24999 (altivec_vpku<VI_char>um): Likewise.
25000 (altivec_vrl<VI_char>): Likewise.
25001 (altivec_vsl<VI_char>): Likewise.
25002 (altivec_vsr<VI_char>): Likewise.
25003 (altivec_vsra<VI_char>): Likewise.
25004 (altivec_vsldoi_<mode>): Likewise.
25005 (altivec_vupkhsb): Likewise.
25006 (altivec_vupkhs<VU_char>): Likewise.
25007 (altivec_vupkls<VU_char>): Likewise.
25008 (altivec_vupkhsh): Likewise.
25009 (altivec_vupklsb): Likewise.
25010 (altivec_vupklsh): Likewise.
25011 (altivec_vcmpequ<VI_char>_p): Likewise.
25012 (altivec_vcmpgts<VI_char>_p): Likewise.
25013 (altivec_vcmpgtu<VI_char>_p): Likewise.
25014 (abs<mode>2): Likewise.
25015 (vec_unpacks_hi_v16qi): Likewise.
25016 (vec_unpacks_hi_v8hi): Likewise.
25017 (vec_unpacks_lo_v16qi): Likewise.
25018 (vec_unpacks_hi_<VP_small_lc>): Likewise.
25019 (vec_unpacks_lo_v8hi): Likewise.
25020 (vec_unpacks_lo_<VP_small_lc>): Likewise.
25021 (vec_pack_trunc_v8h): Likewise.
25022 (vec_pack_trunc_v4si): Likewise.
25023 (vec_pack_trunc_<mode>): Likewise.
25025 * config/rs6000/altivec.h (vec_vaddudm): Add defines for power8
25027 (vec_vmaxsd): Likewise.
25028 (vec_vmaxud): Likewise.
25029 (vec_vminsd): Likewise.
25030 (vec_vminud): Likewise.
25031 (vec_vpksdss): Likewise.
25032 (vec_vpksdus): Likewise.
25033 (vec_vpkudum): Likewise.
25034 (vec_vpkudus): Likewise.
25035 (vec_vrld): Likewise.
25036 (vec_vsld): Likewise.
25037 (vec_vsrad): Likewise.
25038 (vec_vsrd): Likewise.
25039 (vec_vsubudm): Likewise.
25040 (vec_vupkhsw): Likewise.
25041 (vec_vupklsw): Likewise.
25043 2013-05-29 Jan Hubicka <jh@suse.cz>
25045 * cgraph.h (symtab_node_base): Add definition, alias and analyzed
25046 flags; reorder rest of fields in more consistent way.
25047 (varpool_node): Remove analyzed, finalized and alias.
25048 (cgraph_ndoe): Likewise.
25049 (symtab_alias_ultimate_target): New function.
25050 (cgraph_function_node): Move offline.
25051 (cgraph_reset_node): Declare.
25052 (cgraph_comdat_can_be_unshared_p): Remove.
25053 (varpool_remove_initializer): Declare.
25054 (varpool_first_defined_variable, varpool_next_defined_variable
25055 cgraph_first_defined_function, cgraph_next_defined_function): Update.
25056 (cgraph_function_with_gimple_body_p): Update.
25057 (varpool_all_refs_explicit_p): Update.
25058 (symtab_alias_target): New function.
25059 (cgraph_alias_aliased_node, varpool_alias_aliased_node): Rename to ...
25060 (cgraph_alias_target, varpool_alias_target): .. this one; simplify.
25061 (cgraph_function_or_thunk_node): Simplify using
25062 symtab_alias_ultimate_target.
25063 (varpool_variable_node): Likewise.
25064 * cgraph.c (cgraph_create_function_alias): Update.
25065 (cgraph_add_thunk): Update.
25066 (cgraph_remove_node): Update.
25067 (dump_cgraph_node): Do not dump removed flags.
25068 (cgraph_function_body_availability): Update.
25069 (cgraph_propagate_frequency): Update.
25070 (verify_cgraph_node): Check sanity of local flag.
25071 (cgraph_function_node): Move here from cgraph.h; revamp for
25072 cgraph_function_or_thunk_node.
25073 * lto-symtab.c (lto_varpool_replace_node): Update.
25074 (lto_symtab_resolve_can_prevail_p): Update.
25075 (lto_symtab_merge_cgraph_nodes): Update.
25076 * ipa-cp.c (determine_versionability, initialize_node_lattices,
25077 propagate_constants_accross_call, devirtualization_time_bonus,
25078 ipcp_propagate_stage): Update.
25079 * tree-emutls.c (create_emultls_var, ipa_lower_emutls): Update.
25080 * ipa-inline-transform.c (clone_inlined_nodes,
25081 preserve_function_body_p): Update.
25082 * ipa-reference.c (propagate): Update.
25083 (write_node_summary_p): Update.
25084 * toplev.c (wrapup_global_declaration_2): Update.
25085 * cgraphunit.c (cgraph_analyze_function): Rename to ...
25086 (analyze_function) ... this one.
25087 (cgraph_process_new_functions): Update.
25088 (cgraph_reset_node): Export.
25089 (cgraph_finalize_function): Update.
25090 (cgraph_add_new_function): Update.
25091 (process_function_and_variable_attributes): Update.
25092 (varpool_finalize_decl): Update.
25093 (symbol_finalized): Remove.
25094 (symbol_finalized_and_needed): Rename to ...
25095 (symbol_defined_and_needed): ... update.
25096 (cgraph_analyze_functions): Update.
25097 (handle_alias_pairs): Update.
25098 (mark_functions_to_output): Update.
25099 (assemble_thunk): Update.
25100 (output_in_order): Update.
25101 (output_weakrefs): Update.
25102 (finalize_compilation_unit): Update.
25103 * lto-cgraph.c (reachable_from_other_partition_p, lto_output_node,
25104 lto_output_varpool_node, compute_ltrans_boundary, input_overwrite_node,
25105 input_node, input_varpool_node): Update.
25106 * dbxout.c (dbxout_expand_expr): Update.
25107 * cgraphclones.c (cgraph_clone_node): Update.
25108 (cgraph_copy_node_for_versioning): Update.
25109 (cgraph_materialize_clone): Update.
25110 (cgraph_materialize_all_clones): Update.
25111 * ipa-pure-const.c (analyze_function, pure_const_write_summary,
25112 propagate_pure_const, propagate_nothrow): Update.
25113 * lto-streamer-out.c (lto_output, write_symbol): Update.
25114 * ipa-utils.c (ipa_reverse_postorder): Update.
25115 * ipa-inline.c (can_inline_edge_p): Update.
25116 (update_caller_keys, ipa_inline): Update.
25117 * dwarf2out.c (reference_to_unused,
25118 premark_types_used_by_global_vars_helper): Update.
25119 * tree-eh.c (tree_could_trap_p): Update.
25120 * ipa-split.c (consider_split, execute_split_functions): Update.
25121 * ipa.c (cgraph_non_local_node_p_1, cgraph_local_node_p,
25122 has_addr_references_p): Update; move ahead in file for better
25124 (process_references): Simplify.
25125 (symtab_remove_unreachable_nodes): Update; cleanup way function/var
25126 bodies are removed.
25127 (cgraph_comdat_can_be_unshared_p): Make static.
25128 (cgraph_externally_visible_p): Update.
25129 (varpool_externally_visible_p): Update.
25130 (function_and_variable_visibility): Update.
25131 * trans-mem.c (get_cg_data, ipa_tm_mayenterirr_function,
25132 ipa_tm_mark_force_output_node): Update.
25133 * ipa-inline-analysis.c (dump_inline_summary, initialize_inline_failed,
25134 estimate_edge_devirt_benefit, inline_generate_summary,
25135 inline_write_summary): Update.
25136 * gimple-fold.c (can_refer_decl_in_current_unit_p): Update.
25137 * ipa-prop.c (ipa_compute_jump_functions): Update.
25138 (ipa_print_node_params, ipa_prop_read_section,
25139 ipa_update_after_lto_read, read_replacements_section): Update.
25140 * varasm.c (mark_decl_referenced): Update.
25141 (assemble_alias, dump_tm_clone_pairs): Update.
25142 * tree-inline.c (copy_bb): Update.
25143 (estimate_num_insns, optimize_inline_calls, tree_function_versioning):
25145 * symtab.c (dump_symtab_base): Print new flags.
25146 (verify_symtab_base): Verify new flags.
25147 (symtab_alias_ultimate_target): New function.
25148 * tree-ssa-structalias.c (get_constraint_for_ssa_var,
25149 create_variable_info_for, associate_varinfo_to_alias, ipa_pta_execute):
25151 * passes.c (ipa_write_summaries, ipa_write_optimization_summaries):
25153 * i386.c (ix86_get_function_versions_dispatcher,
25154 ix86_generate_version_dispatcher_body): Update.
25155 (fold_builtin_cpu): Use varpool_add_new_variable.
25156 * varpool.c (varpool_remove_initializer): Break out from ...
25157 (varpool_remove_node): ... this one.
25158 (dump_varpool_node, varpool_node_for_asm,
25159 cgraph_variable_initializer_availability, varpool_analyze_node,
25160 varpool_assemble_decl, varpool_remove_unreferenced_decls,
25161 varpool_finalize_named_section_flags, varpool_create_variable_alias):
25164 2013-05-29 Jan Hubicka <jh@suse.cz>
25166 * passes.c (init_optimization_passes): Move OMP expansion into lowering.
25168 2013-05-29 Easwaran Raman <eraman@google.com>
25170 PR tree-optimization/57442
25171 * tree-ssa-reassoc.c (appears_later_in_bb): Return correct value
25172 when control exits the main loop.
25174 2013-05-29 Sandeep Kumar Singh <Sandeep.Singh2@kpitcummins.com>
25176 * rx/rx.h (TARGET_CPU_CPP_BUILTINS): Add macros for RX100, RX200,
25178 * rx/rx.opt: Add macro for rx100 with string rx100 and value RX100.
25179 * rx/rx-opts.h (rx_cpu_types): Add new cpu type rx100.
25180 * rx/t-rx: Add rx100 under multi library matches option for nofpu
25183 2013-05-29 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
25185 PR tree-optimization/57441
25186 * gimple-ssa-strength-reduction.c (analyze_candidates_and_replace):
25187 Don't limit size of incr_vec to number of candidates.
25189 2013-05-29 Steve Ellcey <sellcey@imgtec.com>
25191 * config/mips/mti-linux.h (SYSROOT_SUFFIX_SPEC): Add micromips
25192 and mips16 directories.
25193 * config/mips/t-mti-linux (MULTILIB_OPTIONS): Add micromips and mips16.
25194 (MULTILIB_DIRNAMES): Ditto.
25195 (MULTILIB_EXCEPTIONS): Add new exceptions.
25196 * config/mips/t-mti-elf (MULTILIB_OPTIONS): Add micromips.
25197 (MULTILIB_DIRNAMES): Ditto.
25198 (MULTILIB_EXCEPTIONS): Add new exceptions.
25200 2012-05-29 Chris Schlumberger-Socha <chris.schlumberger-socha@arm.com>
25201 Marcus Shawcroft <marcus.shawcroft@arm.com>
25203 * config/aarch64/aarch64-protos.h (aarch64_symbol_type): Define
25204 SYMBOL_TINY_ABSOLUTE.
25205 * config/aarch64/aarch64.c (aarch64_load_symref_appropriately): Handle
25206 SYMBOL_TINY_ABSOLUTE.
25207 (aarch64_expand_mov_immediate): Likewise.
25208 (aarch64_classify_symbol): Likewise.
25209 (aarch64_mov_operand_p): Remove ATTRIBUTE_UNUSED.
25210 Permit SYMBOL_TINY_ABSOLUTE.
25211 * config/aarch64/predicates.md (aarch64_mov_operand): Permit CONST.
25213 2013-05-29 Chris Schlumberger-Socha <chris.schlumberger-socha@arm.com>
25214 Marcus Shawcroft <marcus.shawcroft@arm.com>
25216 * config/aarch64/aarch64.c (aarch64_classify_symbol): Remove comment.
25217 Refactor if/switch. Replace gcc_assert with if.
25219 2013-05-29 Ganesh Gopalasubramanian <Ganesh.Gopalasubramanian@amd.com>
25221 * config/i386/i386.c (initial_ix86_tune_features): Enable
25222 FP Reassociation for AMD bdver1 and bdver2.
25224 2013-05-29 Martin Jambor <mjambor@suse.cz>
25226 * tree-cfg.c (verify_expr): Verify that BIT_FIELD_REF, REALPART_EXPR
25227 and IMAGPART_EXPR do not occur within other handled_components.
25229 2013-05-29 Richard Biener <rguenther@suse.de>
25231 * tree-vect-slp.c (vect_bb_slp_scalar_cost): Guard vinfo
25232 access on whether the use is in the BB we currently try to
25234 (vect_bb_vectorization_profitable_p): Pass the BB we currently
25235 vectorize to vect_bb_slp_scalar_cost.
25237 2013-05-29 Richard Biener <rguenther@suse.de>
25239 * tree-vect-slp.c (vect_bb_slp_scalar_cost): New function
25240 computing scalar cost offsetted by stmts that are kept live
25242 (vect_bb_vectorization_profitable_p): Use vect_bb_slp_scalar_cost
25243 for computation of scalar cost.
25245 2013-05-28 Steve Ellcey <sellcey@mips.com>
25247 * config/mips/mips-cpus.def (mips32r2): Change processor type.
25249 2013-05-28 Balaji V. Iyer <balaji.v.iyer@intel.com>
25251 * doc/extend.texi (C Extensions): Added documentation about Cilk Plus
25252 array notation built-in reduction functions.
25253 * doc/passes.texi (Passes): Added documentation about changes done
25255 * doc/invoke.texi (C Dialect Options): Added documentation about
25256 the -fcilkplus flag.
25257 * Makefile.in (C_COMMON_OBJS): Added c-family/array-notation-common.o.
25258 (BUILTINS_DEF): Depend on cilkplus.def.
25259 * builtins.def: Include cilkplus.def. Define DEF_CILKPLUS_BUILTIN.
25260 * builtin-types.def: Define BT_FN_INT_PTR_PTR_PTR.
25261 * cilkplus.def: New file.
25263 2013-05-28 Joern Rennecke <joern.rennecke@embecosm.com>
25265 PR rtl-optimization/57439
25266 * postreload.c (move2add_use_add2_insn): Use gen_lowpart_common.
25268 2013-05-28 Easwaran Raman <eraman@google.com>
25270 PR tree-optimization/57337
25271 * tree-ssa-reassoc.c (appears_later_in_bb): New function.
25272 (find_insert_point): Correctly identify the insertion point
25273 when two statements with the same UID is compared.
25275 2013-05-28 Richard Biener <rguenther@suse.de>
25277 PR tree-optimization/56787
25278 * tree-vect-data-refs.c (vect_analyze_data_refs): Drop clobbers
25279 from the list of data references.
25280 * tree-vect-loop.c (vect_determine_vectorization_factor): Skip
25282 (vect_analyze_loop_operations): Likewise.
25283 (vect_transform_loop): Remove clobbers.
25285 2013-05-28 Martin Jambor <mjambor@suse.cz>
25287 * tree-cfg.c (verify_expr): Verify that BIT_FIELD_REFs, IMAGPART_EXPRs
25288 and REALPART_EXPRs have scalar type.
25290 2013-05-28 Richard Biener <rguenther@suse.de>
25292 PR tree-optimization/57411
25293 * tree-ssa-copy.c (may_propagate_copy): Cannot propagate
25295 * tree-ssa-dom.c (eliminate_const_or_copy): Special-case
25296 virtual operand propagation.
25298 2013-05-28 Eric Botcazou <ebotcazou@adacore.com>
25300 * config/sparc/sparc.c (sparc_expand_vec_perm_bmask): Use %g0 as
25301 destination register for bmasksi_vis.
25302 (vector_init_bshuffle): Likewise.
25303 * config/sparc/sparc.md (vec_perm_constv8qi): Likewise.
25305 2013-05-28 Eric Botcazou <ebotcazou@adacore.com>
25307 * doc/invoke.texi (SPARC Options): Document -mfix-ut699.
25308 * builtins.c (expand_builtin_mathfn) <BUILT_IN_SQRT>: Try to widen the
25309 mode if the instruction isn't available in the original mode.
25310 * config/sparc/sparc.opt (mfix-ut699): New option.
25311 * config/sparc/sparc.md (muldf3_extend): Disable if -mfix-ut699.
25312 (divdf3): Turn into expander.
25313 (divdf3_nofix): New insn.
25314 (divdf3_fix): Likewise.
25315 (divsf3): Disable if -mfix-ut699.
25316 (sqrtdf2): Turn into expander.
25317 (sqrtdf2_nofix): New insn.
25318 (sqrtdf2_fix): Likewise.
25319 (sqrtsf2): Disable if -mfix-ut699.
25321 2013-05-27 Richard Biener <rguenther@suse.de>
25323 PR middle-end/57412
25324 * omp-low.c (expand_omp_atomic_pipeline): Use the correct latch
25325 block for the new loop.
25327 2013-05-27 Richard Biener <rguenther@suse.de>
25329 PR tree-optimization/57343
25330 * tree-ssa-loop-niter.c (number_of_iterations_ne_max): Do not
25331 use multiple_of_p if not TYPE_OVERFLOW_UNDEFINED.
25332 (number_of_iterations_cond): Do not build the folded tree.
25334 2013-05-27 Richard Biener <rguenther@suse.de>
25337 PR middle-end/57381
25338 * fold-const.c (operand_equal_p): Compare FIELD_DECLs with
25339 OEP_CONSTANT_ADDRESS_OF retained.
25341 PR tree-optimization/57417
25342 * tree-ssa-sccvn.c (vn_reference_fold_indirect): Fix test
25343 for unchanged base.
25344 (set_ssa_val_to): Compare addresses using
25345 get_addr_base_and_unit_offset.
25347 2013-05-27 Joern Rennecke <joern.rennecke@embecosm.com>
25349 PR rtl-optimization/56833
25350 * postreload.c (move2add_record_mode): New function.
25351 (move2add_record_sym_value, move2add_valid_value_p): Likewise.
25352 (move2add_use_add2_insn): Use move2add_record_sym_value.
25353 (move2add_use_add3_insn): Likewise.
25354 (reload_cse_move2add): Use move2add_valid_value_p and
25355 move2add_record_mode. Invalidate call-clobbered and REG_INC
25356 affected regs by setting reg_mode to VOIDmode.
25357 (move2add_note_store): Don't pretend the inside of a SUBREG is
25358 the actual destination. Invalidate single/leading registers by
25359 setting reg_mode to VOIDmode.
25360 Use move2add_record_sym_value, move2add_valid_value_p and
25361 move2add_record_mode.
25363 2013-05-27 Richard Biener <rguenther@suse.de>
25365 PR tree-optimization/57396
25366 * tree-affine.c (double_int_constant_multiple_p): Properly
25367 return false for val == 0 and div != 0.
25369 2013-05-25 Richard Sandiford <rdsandiford@googlemail.com>
25371 * config/mips/mips.h: Use #elif in preprocessor conditions.
25373 2013-05-25 Richard Sandiford <rdsandiford@googlemail.com>
25376 * config/mips/constraints.md (kl): New constraint.
25377 * config/mips/mips.md (divmod<mode>4, udivmod<mode>4): Delete.
25378 (divmod<mode>4_internal): Rename to divmod<mode>4. Use "kl" as the
25379 constraint for operand 0. Split after CSE for MIPS16. Emit a move
25380 from LO for MIPS16.
25381 (udivmod<mode>4_internal): Likewise udivmod<mode>4.
25383 2013-05-25 Richard Sandiford <rdsandiford@googlemail.com>
25386 * config/mips/mips.c (mips_can_inline_p): New function.
25387 (TARGET_CAN_INLINE_P): Define.
25389 2013-05-25 Steven Bosscher <steven@gcc.gnu.org>
25391 * sched-int.h (ds_t, dw_t): Make unsigned int.
25392 Fix documentation that describes how all the ds_t bits are used.
25393 Reserve the last bit for delayed-branch scheduling.
25394 (BITS_PER_DEP_STATUS): Move to ds_t typedef.
25395 (BITS_PER_DEP_WEAK): Fix definition and documentation.
25396 (gen_dep_weak_1): Remove prototype.
25397 * sched-deps.c (get_dep_weak_1): Make static.
25398 * target.def (speculate_insn, needs_block_p, gen_spec_check,
25399 get_insn_spec_ds, get_insn_checked_ds): Adjust hook prototypes.
25400 * doc/tm.texi: Regenerate.
25401 * config/ia64/ia64.c (ia64_needs_block_p): Update prototype.
25403 2013-05-24 Steven Bosscher <steven@gcc.gnu.org>
25406 * haifa-sched.c (sched_extend_bb): Ignore DEBUG_INSNs.
25408 2013-05-24 Nathan Sidwell <nathan@codesourcery.com>
25409 Sandra Loosemore <sandra@codesourcery.com>
25411 * config.gcc (powerpc-*): Allow native for with-cpu.
25413 2013-05-24 Jeff Law <law@redhat.com>
25415 PR tree-optimization/57124
25416 * tree-vrp.c (simplify_cond_using_ranges): Only simplify a
25417 conversion feeding a condition if the range has an overflow
25418 if -fstrict-overflow. Add warnings for when we do make the
25421 2013-05-24 Dehao Chen <dehao@google.com>
25423 * tree-cfg.c (locus_discrim_map): Fix the typo.
25424 (locus_discrim_hasher): Likewise.
25425 (locus_discrim_hasher::hash): Likewise.
25426 (locus_discrim_hasher::equal): Likewise.
25428 2013-05-24 Martin Jambor <mjambor@suse.cz>
25430 PR tree-optimization/57294
25431 * cgraph.h (ipa_record_stmt_references): Declare.
25432 * cgraphbuild.c (ipa_record_stmt_references): New function.
25433 (build_cgraph_edges): Use ipa_record_stmt_references.
25434 (rebuild_cgraph_edges): Likewise.
25435 (cgraph_rebuild_references): Likewise.
25436 * ipa-prop.c (ipa_modify_call_arguments): Discard references
25437 associated with the old statement and build references from the
25438 newly built statements.
25439 * ipa-ref.c (ipa_remove_stmt_references): New function.
25440 * ipa-ref.h (ipa_remove_stmt_references): Declare.
25442 2013-05-24 Vladimir Makarov <vmakarov@redhat.com>
25444 * lra-constraints.c (emit_spill_move): Use smaller mode for
25446 (check_and_process_move): Consider mem-reg moves for secondary
25448 (curr_insn_transform): Don't lose insns emitted before for
25449 secondary memory moves.
25450 (inherit_in_ebb): Mark defined reg. Add usage only if it is not a
25451 reg set up in the current insn.
25453 2013-05-24 Dehao Chen <dehao@google.com>
25455 * tree-cfg.c (locus_descrim_hasher::hash): Change discriminator
25457 (locus_descrim_hasher::equal): Likewise.
25458 (build_gimple_cfg): New discriminator assignment algorithm.
25459 (make_edges): Likewise.
25460 (next_discriminator_for_locus): Likewise.
25461 (same_line_p): Likewise.
25462 (assign_discriminators): Likewise.
25463 (make_cond_expr_edges): Likewise.
25464 (make_gimple_switch_edges): Likewise.
25465 (make_goto_expr_edges): Likewise.
25466 (make_gimple_asm_edges): Likewise.
25468 2013-05-24 Ian Bolton <ian.bolton@arm.com>
25470 * config/aarch64/aarch64.c (aarch64_print_operand): Change the
25471 X format specifier to only display bottom 16 bits.
25472 * config/aarch64/aarch64.md (insv_imm<mode>): Allow any size of
25473 immediate to match for operand 2, since it will be masked.
25475 2013-05-24 Richard Biener <rguenther@suse.de>
25477 PR tree-optimization/57287
25478 * tree-ssa-uninit.c (compute_uninit_opnds_pos): Disregard
25479 all SSA names that occur in abnormal PHIs.
25481 2013-05-24 Alexander Ivchenko <alexander.ivchenko@intel.com>
25484 * tree-ssa-sccvn.c (fully_constant_vn_reference_p): Check
25485 that index is not negative.
25487 2013-05-24 Eric Botcazou <ebotcazou@adacore.com>
25489 PR rtl-optimization/55177
25490 * simplify-rtx.c (simplify_unary_operation_1) <NOT>: Deal with BSWAP.
25491 (simplify_byte_swapping_operation): New.
25492 (simplify_binary_operation_1): Call it for AND, IOR and XOR.
25493 (simplify_relational_operation_1): Deal with BSWAP.
25495 2013-05-23 Richard Henderson <rth@redhat.com>
25498 * config/i386/i386.c (ix86_seh_fixup_eh_fallthru): New.
25499 (ix86_reorg): Call it.
25501 2013-05-23 Uros Bizjak <ubizjak@gmail.com>
25504 * config/alpha/alpha.md (unspec): Add UNSPEC_XFLT_COMPARE.
25505 * config/alpha/alpha.c (alpha_emit_xfloating_compare): Construct
25506 REG_EQUAL note as UNSPEC_XFLT_COMPARE unspec.
25508 2013-05-23 Christian Bruel <christian.bruel@st.com>
25511 * config/arm/arm.c (arm_dwarf_register_span): Do not use dbx number.
25513 2013-05-23 Chris Schlumberger-Socha <chris.schlumberger-socha@arm.com>
25514 Marcus Shawcroft <marcus.shawcroft@arm.com>
25516 * config/aarch64/aarch64.md (*movdi_aarch64): Replace Usa with S.
25517 * config/aarch64/constraints.md (Usa): Remove.
25518 * doc/md.texi (AArch64 Usa): Remove.
25520 2013-05-23 Chris Schlumberger-Socha <chris.schlumberger-socha@arm.com>
25521 Marcus Shawcroft <marcus.shawcroft@arm.com>
25523 * config/aarch64/aarch64-protos.h (aarch64_mov_operand_p): Define.
25524 * config/aarch64/aarch64.c (aarch64_mov_operand_p): Define.
25525 * config/aarch64/predicates.md (aarch64_const_address): Remove.
25526 (aarch64_mov_operand): Use aarch64_mov_operand_p.
25528 2013-05-23 Vidya Praveen <vidyapraveen@arm.com>
25530 * config/aarch64/aarch64-simd.md (clzv4si2): Support for CLZ
25531 instruction (AdvSIMD).
25532 * config/aarch64/aarch64-builtins.c
25533 (aarch64_builtin_vectorized_function): Handler for BUILT_IN_CLZ.
25534 * config/aarch64/aarch-simd-builtins.def: Entry for CLZ.
25536 2013-05-23 Martin Jambor <mjambor@suse.cz>
25538 PR middle-end/57347
25539 * tree.h (contains_bitfld_component_ref_p): Declare.
25540 * tree-sra.c (contains_bitfld_comp_ref_p): Move...
25541 * tree.c (contains_bitfld_component_ref_p): ...here. Adjust its
25543 * ipa-prop.c (determine_known_aggregate_parts): Check that LHS does
25544 not access a bit-field. Assert all final offsets are byte-aligned.
25546 2013-05-23 Richard Biener <rguenther@suse.de>
25548 PR tree-optimization/57380
25549 * tree-ssa-phiprop.c (propagate_with_phi): Do not require at
25550 least one invariant or re-used load.
25551 * passes.c (init_optimization_passes): Move pass_phiprop before
25554 2013-05-23 James Greenhalgh <james.greenhalgh@arm.com>
25556 * config/aarch64/aarch64-simd.md
25557 (aarch64_cm<optab>di): Add clobber of CC_REGNUM to unsplit pattern.
25559 2013-05-23 Richard Biener <rguenther@suse.de>
25561 PR middle-end/57381
25562 * fold-const.c (operand_equal_p): Compare FIELD_DECLs with
25563 OEP_CONSTANT_ADDRESS_OF retained.
25565 2013-05-23 Jakub Jelinek <jakub@redhat.com>
25567 PR middle-end/57344
25568 * expmed.c (store_split_bit_field): If op0 is a REG or SUBREG of a REG,
25569 don't lower unit. Handle unit not being always BITS_PER_WORD.
25571 2013-05-23 Richard Biener <rguenther@suse.de>
25573 PR rtl-optimization/57341
25574 * ira.c (validate_equiv_mem_from_store): Use anti_dependence
25575 instead of true_dependence.
25577 2013-05-22 David Malcolm <dmalcolm@redhat.com>
25579 * bb-reorder.c (branch_threshold): Make const.
25580 (exec_threshold): Ditto.
25582 2013-05-22 Michael Meissner <meissner@linux.vnet.ibm.com>
25583 Pat Haugen <pthaugen@us.ibm.com>
25584 Peter Bergner <bergner@vnet.ibm.com>
25586 * doc/extend.texi (PowerPC AltiVec/VSX Built-in Functions): Add
25587 documentation for the power8 crypto builtins.
25589 * config/rs6000/t-rs6000 (MD_INCLUDES): Add crypto.md.
25591 * config/rs6000/rs6000-builtin.def (BU_P8V_AV_1): Add support
25592 macros for defining power8 builtin functions.
25593 (BU_P8V_AV_2): Likewise.
25594 (BU_P8V_AV_P): Likewise.
25595 (BU_P8V_VSX_1): Likewise.
25596 (BU_P8V_OVERLOAD_1): Likewise.
25597 (BU_P8V_OVERLOAD_2): Likewise.
25598 (BU_CRYPTO_1): Likewise.
25599 (BU_CRYPTO_2): Likewise.
25600 (BU_CRYPTO_3): Likewise.
25601 (BU_CRYPTO_OVERLOAD_1): Likewise.
25602 (BU_CRYPTO_OVERLOAD_2): Likewise.
25603 (XSCVSPDP): Fix typo, point to the correct instruction.
25604 (VCIPHER): Add power8 crypto builtins.
25605 (VCIPHERLAST): Likewise.
25606 (VNCIPHER): Likewise.
25607 (VNCIPHERLAST): Likewise.
25608 (VPMSUMB): Likewise.
25609 (VPMSUMH): Likewise.
25610 (VPMSUMW): Likewise.
25611 (VPERMXOR_V2DI): Likewise.
25612 (VPERMXOR_V4SI: Likewise.
25613 (VPERMXOR_V8HI: Likewise.
25614 (VPERMXOR_V16QI: Likewise.
25615 (VSHASIGMAW): Likewise.
25616 (VSHASIGMAD): Likewise.
25617 (VPMSUM): Likewise.
25618 (VPERMXOR): Likewise.
25619 (VSHASIGMA): Likewise.
25621 * config/rs6000/rs6000-c.c (rs6000_target_modify_macros): Define
25622 __CRYPTO__ if the crypto instructions are available.
25623 (altivec_overloaded_builtins): Add support for overloaded power8
25626 * config/rs6000/rs6000.c (rs6000_expand_ternop_builtin): Add
25627 support for power8 crypto builtins.
25628 (builtin_function_type): Likewise.
25629 (altivec_init_builtins): Add support for builtins that take vector
25630 long long (V2DI) arguments.
25632 * config/rs6000/crypto.md: New file, define power8 crypto
25635 2013-05-22 Michael Meissner <meissner@linux.vnet.ibm.com>
25636 Pat Haugen <pthaugen@us.ibm.com>
25637 Peter Bergner <bergner@vnet.ibm.com>
25639 * doc/invoke.texi (Option Summary): Add power8 options.
25640 (RS/6000 and PowerPC Options): Likewise.
25642 * doc/md.texi (PowerPC and IBM RS6000 constraints): Update to use
25643 constraints.md instead of rs6000.h. Reorder w* constraints. Add
25644 wm, wn, wr documentation.
25646 * config/rs6000/constraints.md (wm): New constraint for VSX
25647 registers if direct move instructions are enabled.
25648 (wn): New constraint for no registers.
25649 (wq): New constraint for quad word even GPR registers.
25650 (wr): New constraint if 64-bit instructions are enabled.
25651 (wv): New constraint if power8 vector instructions are enabled.
25652 (wQ): New constraint for quad word memory locations.
25654 * config/rs6000/predicates.md (const_0_to_15_operand): New
25655 constraint for 0..15 for crypto instructions.
25656 (gpc_reg_operand): If VSX allow registers in VSX registers as well
25657 as GPR and floating point registers.
25658 (int_reg_operand): New predicate to match only GPR registers.
25659 (base_reg_operand): New predicate to match base registers.
25660 (quad_int_reg_operand): New predicate to match even GPR registers
25661 for quad memory operations.
25662 (vsx_reg_or_cint_operand): New predicate to allow vector logical
25663 operations in both GPR and VSX registers.
25664 (quad_memory_operand): New predicate for quad memory operations.
25665 (reg_or_indexed_operand): New predicate for direct move support.
25667 * config/rs6000/rs6000-cpus.def (ISA_2_5_MASKS_EMBEDDED):
25668 Inherit from ISA_2_4_MASKS, not ISA_2_2_MASKS.
25669 (ISA_2_7_MASKS_SERVER): New mask for ISA 2.07 (i.e. power8).
25670 (POWERPC_MASKS): Add power8 options.
25671 (power8 cpu): Use ISA_2_7_MASKS_SERVER instead of specifying the
25674 * config/rs6000/rs6000-c.c (rs6000_target_modify_macros):
25675 Define _ARCH_PWR8 and __POWER8_VECTOR__ for power8.
25677 * config/rs6000/rs6000.opt (-mvsx-timode): Add documentation.
25678 (-mpower8-fusion): New power8 options.
25679 (-mpower8-fusion-sign): Likewise.
25680 (-mpower8-vector): Likewise.
25681 (-mcrypto): Likewise.
25682 (-mdirect-move): Likewise.
25683 (-mquad-memory): Likewise.
25685 * config/rs6000/rs6000.c (power8_cost): Initial definition for power8.
25686 (rs6000_hard_regno_mode_ok): Make PTImode only match even GPR
25688 (rs6000_debug_reg_print): Print the base register class if -mdebug=reg.
25689 (rs6000_debug_vector_unit): Add p8_vector.
25690 (rs6000_debug_reg_global): If -mdebug=reg, print power8 constraint
25691 definitions. Also print fusion state.
25692 (rs6000_init_hard_regno_mode_ok): Set up power8 constraints.
25693 (rs6000_builtin_mask_calculate): Add power8 builtin support.
25694 (rs6000_option_override_internal): Add support for power8.
25695 (rs6000_common_init_builtins): Add debugging for skipped builtins
25696 if -mdebug=builtin.
25697 (rs6000_adjust_cost): Add power8 support.
25698 (rs6000_issue_rate): Likewise.
25699 (insn_must_be_first_in_group): Likewise.
25700 (insn_must_be_last_in_group): Likewise.
25701 (force_new_group): Likewise.
25702 (rs6000_register_move_cost): Likewise.
25703 (rs6000_opt_masks): Likewise.
25705 * config/rs6000/rs6000.h (ASM_CPU_POWER8_SPEC): If we don't have a
25706 power8 capable assembler, default to power7 options.
25707 (TARGET_DIRECT_MOVE): Likewise.
25708 (TARGET_CRYPTO): Likewise.
25709 (TARGET_P8_VECTOR): Likewise.
25710 (VECTOR_UNIT_P8_VECTOR_P): Define power8 vector support.
25711 (VECTOR_UNIT_VSX_OR_P8_VECTOR_P): Likewise.
25712 (VECTOR_MEM_P8_VECTOR_P): Likewise.
25713 (VECTOR_MEM_VSX_OR_P8_VECTOR_P): Likewise.
25714 (VECTOR_MEM_ALTIVEC_OR_VSX_P): Likewise.
25715 (TARGET_XSCVDPSPN): Likewise.
25716 (TARGET_XSCVSPDPN): Likewsie.
25717 (TARGET_SYNC_HI_QI): Likewise.
25718 (TARGET_SYNC_TI): Likewise.
25719 (MASK_CRYPTO): Likewise.
25720 (MASK_DIRECT_MOVE): Likewise.
25721 (MASK_P8_FUSION): Likewise.
25722 (MASK_P8_VECTOR): Likewise.
25723 (REG_ALLOC_ORDER): Move fr13 to be lower in priority so that the TFmode
25724 temporary used by some of the direct move instructions to get two FP
25725 temporary registers does not force creation of a stack frame.
25726 (VLOGICAL_REGNO_P): Allow vector logical operations in GPRs.
25727 (MODES_TIEABLE_P): Move the VSX tests above the Altivec tests so
25728 that any VSX registers are tieable, even if they are also an
25729 Altivec vector mode.
25730 (r6000_reg_class_enum): Add wm, wr, wv constraints.
25731 (RS6000_BTM_P8_VECTOR): Power8 builtin support.
25732 (RS6000_BTM_CRYPTO): Likewise.
25733 (RS6000_BTM_COMMON): Likewise.
25735 * config/rs6000/rs6000.md (cpu attribute): Add power8.
25736 * config/rs6000/rs6000-opts.h (PROCESSOR_POWER8): Likewise.
25737 (enum rs6000_vector): Add power8 vector support.
25739 2013-05-22 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
25743 * config/arm/arm.c (any_sibcall_uses_r3): Rename to ..
25744 (any_sibcall_could_use_r3): this and handle indirect calls.
25745 (arm_get_frame_offsets): Rename use of any_sibcall_uses_r3.
25747 2013-05-22 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
25749 * config/rs6000/rs6000.h (MALLOC_ABI_ALIGNMENT): New #define.
25751 2013-05-22 Richard Biener <rguenther@suse.de>
25753 PR middle-end/57349
25754 * profile.c (branch_prob): Do not split blocks that are
25755 abnormally receiving from ECF_RETURNS_TWICE functions.
25757 2013-05-22 Richard Sandiford <rsandifo@linux.vnet.ibm.com>
25759 * recog.c (offsettable_address_addr_space_p): Fix calculation of
25760 address mode. Move pointer mode initialization to the same place.
25762 2013-05-22 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
25764 * read-rtl.c (copy_rtx_for_iterators): Continue applying iterators
25765 while it has any effect.
25767 2013-05-21 Easwaran Raman <eraman@google.com>
25769 PR tree-optimization/57322
25770 * tree-ssa-reassoc.c (build_and_add_sum): If a BB is empty, set the
25771 UID of the statement added to the BB to be 1.
25773 2013-05-21 Jakub Jelinek <jakub@redhat.com>
25775 PR tree-optimization/57331
25776 * tree-vrp.c (simplify_cond_using_ranges): Don't optimize comparison
25777 of conversion from pointer type to integral type with integer.
25779 2013-05-21 Martin Jambor <mjambor@suse.cz>
25782 * ipa-prop.c (ipa_read_node_info): Process param_used and
25783 controlled_uses in the same order as when writing.
25785 2013-05-21 Magnus Granberg <baldrick@free.fr>
25788 * Makefile.in (PLUGIN_HEADERS): Add $(TARGET_H).
25790 2013-05-21 Richard Biener <rguenther@suse.de>
25792 PR tree-optimization/57318
25793 * tree-ssa-loop-ivcanon.c (tree_estimate_loop_size): Do not
25794 estimate stmts with side-effects as likely eliminated.
25796 2013-05-21 Richard Biener <rguenther@suse.de>
25798 PR tree-optimization/57330
25799 * cgraph.c (cgraph_redirect_edge_call_stmt_to_callee): Properly
25800 preserve the call stmts fntype.
25802 2013-05-21 Richard Biener <rguenther@suse.de>
25804 PR tree-optimization/57303
25805 * tree-ssa-sink.c (statement_sink_location): Improve killing
25806 stmt detection and properly handle self-assignments.
25808 2013-05-21 Christian Bruel <christian.bruel@st.com>
25810 * dwarf2out.c (multiple_reg_loc_descriptor): Use dbx_reg_number for
25811 spanning registers. LEAF_REG_REMAP is supported only for contiguous
25812 registers. Set register size out of the PARALLEL loop.
25814 2013-05-20 Oleg Endo <olegendo@gcc.gnu.org>
25817 * config/sh/sh.md (fmasf4): Remove empty constraints strings.
25818 (*fmasf4, *fmasf4_media): New insns.
25820 2013-05-19 Richard Sandiford <rdsandiford@googlemail.com>
25822 * config/mips/mips.h (BASE_INSN_LENGTH, NOP_INSN_LENGTH): New macros.
25823 * config/mips/mips.c (mips_symbol_insns, mips_address_insns)
25824 (mips_const_insns, mips_split_const_insns, mips_load_store_insns)
25825 (mips_idiv_insns): Update the comments to say that the returned
25826 instruction counts are in units of BASE_INSN_LENGTH.
25827 (mips_adjust_insn_length): Multiply the mips_load_label_num_insns
25828 by BASE_INSN_LENGTH rather than 4. Add the jump separately,
25829 using 2 rather than 4 as the length of indirect MIPS16 and
25830 microMIPS jumps. Use NOP_INSN_LENGTH rather than 4 as the
25831 length of a NOP. Don't divide MIPS16 lengths by 2.
25832 (mips16_split_long_branches): Assume a branch is long if the
25833 length is greater than 4 rather than 8.
25834 * config/mips/mips.md (length): Give MIPS16 lengths directly,
25835 rather than multiplying them by 2. Multiply instruction counts
25836 by BASE_INSN_LENGTH rather than 4.
25837 (*jump_mips16, tls_get_tp_mips16_<mode>)
25838 (*tls_get_tp_mips16_call_<mode>): Divide lengths by 2.
25840 2013-05-19 Richard Sandiford <rdsandiford@googlemail.com>
25842 * config/mips/mips.md (extended_mips16): Remove branch case.
25843 (length): Remove duplicated extended_mips16 test.
25845 2013-05-19 Richard Sandiford <rdsandiford@googlemail.com>
25847 * config/mips/t-sde: Don't build 64-bit microMIPS multilibs.
25849 2013-05-18 Richard Sandiford <rdsandiford@googlemail.com>
25851 * recog.h (Recog_data): Rename to...
25852 (recog_data_d): ...this.
25853 (recog_data): Update accordingly.
25854 * recog.c (recog_data): Likewise.
25855 * reload.c (save_recog_data): Likewise.
25856 * config/picochip/picochip.c (picochip_saved_recog_data): Likewise.
25857 (picochip_save_recog_data, picochip_restore_recog_data): Likewise.
25859 2013-05-17 Julian Brown <julian@codesourcery.com>
25861 * gcse.c (compute_ld_motion_mems): If a non-simple MEM is
25862 found in a REG_EQUAL note, invalidate it.
25864 2013-05-17 Easwaran Raman <eraman@google.com>
25866 * tree-ssa-reassoc.c (find_insert_point): New function.
25867 (insert_stmt_after): Likewise.
25868 (get_def_stmt): Likewise.
25869 (ensure_ops_are_available): Likewise.
25870 (not_dominated_by): Likewise.
25871 (rewrite_expr_tree): Do not move statements beyond what is
25872 necessary. Remove call to swap_ops_for_binary_stmt...
25873 (reassociate_bb): ... and move it here.
25874 (build_and_add_sum): Assign UIDs for new statements.
25875 (linearize_expr): Likewise.
25876 (do_reassoc): Renumber gimple statement UIDs.
25878 2013-05-17 Jan Hubicka <jh@suse.cz>
25880 * lto-symtab.c (lto_symtab_merge_cgraph_nodes): Resolve cross module
25882 * cgraph.c (dump_cgraph_node): Do not ice on unresolved alias.
25883 * cgraphunit.c (handle_alias_pairs): Store target of unresolved
25885 (output_weakrefs): Update.
25887 2013-05-17 Po-Chun Chang <pchang9@cs.wisc.edu>
25888 Martin Jambor <mjambor@suse.cz>
25890 PR middle-end/57276
25891 * ipa-cp.c (cgraph_edge_brings_all_agg_vals_for_node): Break when a
25892 value that corresponds to the given aggval is found in values vector.
25894 2013-05-17 Uros Bizjak <ubizjak@gmail.com>
25896 * config/i386/driver-i386.c (host_detect_local_cpu): Pass mmx, 3dnow,
25897 sse, sse2, sse3, ssse3 and sse4a flags to options.
25899 2013-05-17 David Malcolm <dmalcolm@redhat.com>
25901 * gengtype-state.c: (s_expr_writer): New class, to handle
25902 prettifying of output layout of s-expressions.
25903 (state_writer): New class, to write out gtype.state.
25904 (state_written_type_count): Move this variable into member data of
25906 (s_expr_writer::s_expr_writer): New code: constructor for new class
25907 (state_writer::state_writer(): ditto
25908 (s_expr_writer::write_new_line): New function
25909 (s_expr_writer::write_any_indent): ditto
25910 (s_expr_writer::begin_s_expr): ditto
25911 (s_expr_writer::end_s_expr): ditto
25912 (write_state_fileloc): convert to method of state_writer...
25913 (state_writer:: write_state_fileloc): ...and use methods of
25914 s_expr_writer to write indentation into the gtype.state output file
25915 to visually represent the hierarchical structure of the list
25917 (write_state_fields): ditto, renaming to...
25918 (state_writer::write_state_fields)
25919 (write_state_a_string): ditto, renaming to...
25920 (state_writer::write_state_a_string)
25921 (write_state_string_option): ditto, renaming to...
25922 (state_writer::write_state_string_option)
25923 (write_state_type_option): ditto, renaming to...
25924 (state_writer::write_state_type_option)
25925 (write_state_nested_option): ditto, renaming to...
25926 (state_writer::write_state_nested_option)
25927 (write_state_option): ditto, renaming to...
25928 (state_writer::write_state_option)
25929 (write_state_options): ditto, renaming to...
25930 (state_writer::write_state_options)
25931 (write_state_lang_bitmap): ditto, renaming to...
25932 (state_writer::write_state_lang_bitmap)
25933 (write_state_version): ditto, renaming to...
25934 (state_writer::write_state_version)
25935 (write_state_scalar_type): ditto, renaming to...
25936 (state_writer::write_state_scalar_type)
25937 (write_state_string_type): ditto, renaming to...
25938 (state_writer::write_state_string_type)
25939 (write_state_undefined_type): ditto, renaming to...
25940 (state_writer::write_state_undefined_type)
25941 (write_state_struct_union_type): ditto, renaming to...
25942 (state_writer::write_state_struct_union_type)
25943 (write_state_struct_type): ditto, renaming to...
25944 (state_writer::write_state_struct_type)
25945 (write_state_user_struct_type): ditto, renaming to...
25946 (state_writer::write_state_user_struct_type)
25947 (write_state_lang_struct_type): ditto, renaming to...
25948 (state_writer::write_state_lang_struct_type)
25949 (write_state_param_struct_type): ditto, renaming to...
25950 (state_writer::write_state_param_struct_type)
25951 (write_state_pointer_type): ditto, renaming to...
25952 (state_writer::write_state_pointer_type)
25953 (write_state_array_type): ditto, renaming to...
25954 (state_writer::write_state_array_type)
25955 (write_state_gc_used): ditto, renaming to...
25956 (state_writer::write_state_gc_used)
25957 (write_state_common_type_content): ditto, renaming to...
25958 (state_writer::write_state_common_type_content)
25959 (write_state_type): ditto, renaming to...
25960 (state_writer::write_state_type)
25961 (write_state_pair_list): ditto, renaming to...
25962 (state_writer::write_state_pair_list)
25963 (write_state_pair): ditto, renaming to...
25964 (state_writer::write_state_pair)
25965 (write_state_typedefs): ditto, renaming to...
25966 (state_writer::write_state_typedefs)
25967 (write_state_structures): ditto, renaming to...
25968 (state_writer::write_state_structures)
25969 (write_state_param_structs): ditto, renaming to...
25970 (state_writer::write_state_param_structs)
25971 (write_state_variables): ditto, renaming to...
25972 (state_writer::write_state_variables)
25973 (write_state_srcdir): ditto, renaming to...
25974 (state_writer::write_state_srcdir)
25975 (write_state_files_list): ditto, renaming to...
25976 (state_writer::write_state_files_list)
25977 (write_state_languages): ditto, renaming to...
25978 (state_writer::write_state_languages)
25979 (write_state): create a state_writer instance and use it when
25980 writing out the state file
25982 2013-05-17 Mike Stump <mikestump@comcast.net>
25984 PR rtl-optimization/57304
25985 * web.c (union_match_dups): Ensure that DF_REF_LOC exists before
25986 accessing DF_REF_REAL_LOC.
25988 2013-05-17 Jakub Jelinek <jakub@redhat.com>
25990 PR rtl-optimization/57281
25991 PR rtl-optimization/57300
25992 * config/i386/i386.md (extendsidi2_1 dead reg splitter): Remove.
25993 (extendsidi2_1 peephole2s): Add instead 2 new peephole2s, that undo
25994 what the other splitter did if the registers are dead.
25996 2013-05-17 Richard Biener <rguenther@suse.de>
25998 * tree-ssa-alias.c (stmt_kills_ref_p_1): Properly compare
26001 2013-05-17 Jakub Jelinek <jakub@redhat.com>
26003 * gcc.c (SANITIZER_SPEC): Reject -fsanitize=address -fsanitize=thread
26006 2013-05-17 Marek Polacek <polacek@redhat.com>
26008 * tree-ssa-strlen.c (handle_char_store): Don't invalidate cached
26009 length when doing non-zero store of storing '\0' to '\0'.
26011 2013-05-17 Jakub Jelinek <jakub@redhat.com>
26013 * tree-vect-patterns.c (vect_recog_rotate_pattern): For
26014 vect_external_def oprnd1 with loop_vinfo, try to emit
26015 optional cast, negation and and stmts on the loop preheader
26016 edge instead of into the pattern def seq.
26018 PR tree-optimization/57051
26019 * fold-const.c (const_binop) <case VEC_LSHIFT_EXPR,
26020 case VEC_RSHIFT_EXPR>: Fix BYTES_BIG_ENDIAN handling.
26022 2013-05-16 Nick Clifton <nickc@redhat.com>
26024 * config/rl78/rl78.c (rl78_attribute_table): Add naked.
26025 (rl78_is_naked_func): New function.
26026 (rl78_expand_prologue): Skip prologue generation for naked functions.
26027 (rl78_expand_epilogue): Skip epilogue generation for naked functions.
26028 * doc/extend.texi (naked): Add RL78 to the list of processors
26029 that supports this attribute.
26031 2013-05-16 Jeff Law <law@redhat.com>
26033 * Makefile.in (tree-switch-conversion.o): Depend on $(OPTABS_H).
26035 2013-05-16 Uros Bizjak <ubizjak@gmail.com>
26037 * config/i386/driver-i386.c (host_detect_local_cpu): Determine
26038 cache parameters using detect_caches_amd also for CYRIX,
26039 NSC and TM2 signatures.
26041 2013-05-16 Uros Bizjak <ubizjak@gmail.com>
26042 Dzianis Kahanovich <mahatma@eu.by>
26046 * config/i386/driver-i386.c (host_detect_local_cpu): Detect
26047 VIA/Centaur processors and determine their cache parameters
26048 using detect_caches_amd.
26050 2013-05-16 Teresa Johnson <tejohnson@google.com>
26052 * cfgrtl.c (verify_hot_cold_block_grouping): Return err.
26053 (rtl_verify_edges): New function.
26054 (rtl_verify_bb_insns): Ditto.
26055 (rtl_verify_bb_pointers): Ditto.
26056 (rtl_verify_bb_insn_chain): Ditto.
26057 (rtl_verify_fallthru): Ditto.
26058 (rtl_verify_bb_layout): Ditto.
26059 (rtl_verify_flow_info_1): Outline checks into new functions.
26060 (rtl_verify_flow_info): Ditto.
26062 2013-05-16 Steve Ellcey <sellcey@imgtec.com>
26064 * cfghooks.c (copy_bbs): Add update_dominance argument.
26065 * cfghooks.h (copy_bbs): Update prototype.
26066 * tree-cfg.c (gimple_duplicate_sese_region):
26067 Add update_dominance argument.
26068 * tree-flow.h (gimple_duplicate_sese_region): Update prototype.
26069 * tree-ssa-loop-ch.c (copy_loop_headers): Update
26070 gimple_duplicate_sese_region call.
26071 * tree-vect-loop-manip.c (slpeel_tree_duplicate_loop_to_edge_cfg):
26072 Update copy_bbs call.
26073 * cfgloopmanip.c (duplicate_loop_to_header_edge): Ditto.
26074 * trans-mem.c (ipa_uninstrument_transaction): Ditto.
26076 2013-05-16 Jakub Jelinek <jakub@redhat.com>
26078 * tree-vectorizer.h (NUM_PATTERNS): Increment.
26079 * tree-vect-patterns.c (vect_vect_recog_func_ptrs): Add
26080 vect_recog_rotate_pattern.
26081 (vect_recog_rotate_pattern): New function.
26083 2013-05-16 Jason Merrill <jason@redhat.com>
26085 * Makefile.in (LLINKER): New variable.
26086 (mostlyclean): Remove link mutex.
26087 * configure.ac: Handle --enable-link-mutex.
26088 * lock-and-run.sh: New script.
26090 2013-05-16 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
26093 * config/arm/arm.c (arm_function_ok_for_sibcall): Add check
26096 2013-05-16 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
26098 * reorg.c (link_cc0_insns): Wrap in #ifdef HAVE_cc0.
26100 2013-05-16 Greta Yorsh <Greta.Yorsh@arm.com>
26102 * config/arm/arm-protos.h (gen_movmem_ldrd_strd): New declaration.
26103 * config/arm/arm.c (next_consecutive_mem): New function.
26104 (gen_movmem_ldrd_strd): Likewise.
26105 * config/arm/arm.md (movmemqi): Update condition and code.
26106 (unaligned_loaddi, unaligned_storedi): New patterns.
26108 2013-05-16 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
26110 * config.gcc: Obsolete *-*-solaris2.9*.
26111 * doc/install.texi (Specific, *-*-solaris2*): Document it.
26113 2013-05-16 Richard Biener <rguenther@suse.de>
26115 * passes.c (init_optimization_passes): Move pass_parallelize_loops
26116 earlier, after GRAPHITE transforms and IV canonicalization.
26118 2013-05-16 Jakub Jelinek <jakub@redhat.com>
26120 * omp-low.c (extract_omp_for_data): For collapsed loops,
26121 if at least one of the loops is known at compile time to
26122 iterate zero times, set count to 0.
26123 (expand_omp_regimplify_p): New function.
26124 (expand_omp_for_generic): For collapsed loops, if at least
26125 one of the loops isn't known to iterate at least once,
26126 add runtime check with setting count to 0.
26127 (expand_omp_for_static_nochunk, expand_omp_for_static_chunk):
26128 For unsigned types if it isn't known at compile time that
26129 the loop will iterate at least once, add runtime check to bypass
26130 the whole loop if initial condition isn't true.
26132 2013-05-16 Nathan Sidwell <nathan@codesourcery.com>
26134 * varasm.c (default_use_anchors_for_symbol_p): Use decl_replaceable_p.
26136 2013-05-16 Marc Glisse <marc.glisse@inria.fr>
26138 PR middle-end/57286
26139 * fold-const.c (fold_ternary_loc) <VEC_COND_EXPR>: Disable some
26140 transformations to avoid an infinite loop.
26142 2013-05-16 Marek Polacek <polacek@redhat.com>
26144 * tree-scalar-evolution.c (scev_const_prop): Add more dumps.
26146 2013-05-15 Leif Ekblad <leif@rdos.net>
26148 * config/i386/i386.c (ix86_decompose_address): Use
26149 DEFAULT_TLS_SEG_REG to access TLS segment register.
26150 * config/i386/i386.h (DEFAULT_TLS_SEG_REG): New define.
26151 * config/i386/rdos.h (DEFAULT_TLS_SEG_REG): Ditto.
26152 (TARGET_TLS_DIRECT_SEG_REFS_DEFAULT): Ditto.
26154 2013-05-15 Richard Sandiford <rdsandiford@googlemail.com>
26157 * config/mips/mips.c (mips_function_ok_for_sibcall): Don't allow
26158 sibling calls to functions that would normally be lazily bound,
26159 unless $gp is call-clobbered.
26161 2013-05-15 Uros Bizjak <ubizjak@gmail.com>
26163 * config/i386/i386.c (ix86_option_override_internal): Update
26164 processor_alias_table for missing PTA_PRFCHW and PTA_FXSR flags. Add
26165 PTA_POPCNT to corei7 entry. Do not enable SSE prefetch on
26166 non-SSE 3dNow! targets. Enable TARGET_PRFCHW for TARGET_3DNOW targets.
26167 * config/i386/i386.md (prefetch): Enable for TARGET_PRFCHW instead
26169 (*prefetch_3dnow): Enable for TARGET_PRFCHW only.
26171 2013-05-15 Andreas Schwab <schwab@suse.de>
26173 * config/m68k/m68k.md (*rotlhi3_lowpart, *rotlqi3_lowpart): Name
26174 for rotlhi3+1 and rotlqi3+1, resp. Fix reference to non-existing
26177 2013-05-15 Teresa Johnson <tejohnson@google.com>
26179 * loop-unroll.c (report_unroll_peel): Check decision before
26180 emitting unroll/peel message.
26182 2013-05-15 Teresa Johnson <tejohnson@google.com>
26184 * function.h (has_bb_partition): New rtl_data flag.
26185 (bb_reorder_complete): Ditto.
26186 * cfgcleanup.c (try_crossjump_to_edge): Check for has_bb_partition
26187 instead of flag_reorder_blocks_and_partition.
26188 * cfgrtl.c (verify_hot_cold_block_grouping): Moved from bb-reorder.c,
26189 with some enhancements.
26190 (rtl_verify_flow_info_1): Call verify_hot_cold_block_grouping.
26191 * bb-reorder.c (connect_traces): Check for has_bb_partition
26192 instead of flag_reorder_blocks_and_partition.
26193 (verify_hot_cold_block_grouping): Moved to cfgrtl.c.
26194 (reorder_basic_blocks): Set bb_reorder_complete flag, remove call to
26195 verify_hot_cold_block_grouping.
26196 (partition_hot_cold_basic_blocks): Set has_bb_partition.
26198 2013-05-15 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
26201 * config/arm/predicates.md (call_insn_operand): New predicate.
26202 * config/arm/constraints.md ("Cs", "Ss"): New constraints.
26203 * config/arm/arm.md (*call_insn, *call_value_insn): Match only
26204 if insn is not a tail call.
26205 (*sibcall_insn, *sibcall_value_insn): Adjust for tailcalling through
26207 * config/arm/arm.h (enum reg_class): New caller save register class.
26208 (REG_CLASS_NAMES): Likewise.
26209 (REG_CLASS_CONTENTS): Likewise.
26210 * config/arm/arm.c (arm_function_ok_for_sibcall): Allow tailcalling
26213 2013-05-15 Richard Biener <rguenther@suse.de>
26215 * tree-vect-loop.c (vect_transform_loop): Use MSG_NOTE instead
26216 of MSG_OPTIMIZED_LOCATIONS.
26217 * tree-vect-slp.c (vect_make_slp_decision): Likewise.
26218 (vect_slp_transform_bb): Indicate location in MSG_OPTIMIZED_LOCATIONS
26220 * tree-vectorizer.c (vectorize_loops): Use MSG_NOTE instead
26221 of MSG_OPTIMIZED_LOCATIONS.
26222 (execute_vect_slp): Likewise.
26223 * tree-vect-loop-manip.c (vect_do_peeling_for_loop_bound): Likewise.
26224 (vect_create_cond_for_alias_checks): Likewise.
26225 * tree-vect-patterns.c (vect_recog_dot_prod_pattern): Likewise.
26226 (vect_recog_widen_mult_pattern): Likewise.
26227 (vect_recog_widen_sum_pattern): Likewise.
26228 (vect_recog_over_widening_pattern): Likewise.
26229 (vect_recog_widen_shift_pattern): Likewise.
26230 (vect_recog_vector_vector_shift_pattern): Likewise.
26231 (vect_recog_divmod_pattern): Likewise.
26232 (vect_recog_mixed_size_cond_pattern): Likewise.
26233 (vect_recog_bool_pattern): Likewise.
26234 (vect_pattern_recog_1): Likewise.
26236 2013-05-15 Martin Jambor <mjambor@suse.cz>
26238 * ipa-prop.c (ipa_make_edge_direct_to_target): Redirect calls to
26239 non-functions to builtin_unreachable.
26240 * ipa-inline-transform.c (inline_call): Do not assert estimates were
26241 correct when new direct edges were discovered.
26243 2013-05-15 Martin Jambor <mjambor@suse.cz>
26245 * ipa-prop.c (ipa_print_node_jump_functions): Print symbol order in
26246 header, print symbol order instead of node uid, print more information
26247 about indirect edge targets.
26248 (ipa_make_edge_direct_to_target): Print symbol order instead of node
26250 (ipa_make_edge_direct_to_target): Likewise.
26251 (remove_described_reference): Likewise.
26252 (propagate_controlled_uses): Likewise.
26253 (ipa_print_node_params): Also print symbol order.
26254 (ipcp_transform_function): Print symbol order instead of node uids.
26255 * cgraph.c (cgraph_redirect_edge_call_stmt_to_callee): Likewise.
26256 (cgraph_get_create_real_symbol_node): Likewise.
26257 * ipa-cp.c (print_lattice): Likewise.
26258 (print_all_lattices): Likewise.
26259 (determine_versionability): Likewise.
26260 (initialize_node_lattices): Likewise.
26261 (estimate_local_effects): Likewise.
26262 (update_profiling_info): Likewise.
26263 (create_specialized_node): Likewise.
26264 (perhaps_add_new_callers): Likewise.
26265 (decide_about_value): Likewise.
26266 (decide_whether_version_node): Likewise.
26267 (identify_dead_nodes): Likewise.
26268 * ipa-inline-analysis.c (dump_inline_edge_summary): Likewise.
26269 (dump_inline_summary): Likewise.
26270 (estimate_node_size_and_time): Likewise.
26271 (inline_analyze_function): Likewise.
26272 * ipa-inline.c (report_inline_failed_reason): Likewise.
26273 (want_early_inline_function_p): Likewise.
26274 (edge_badness): Likewise.
26275 (update_edge_key): Likewise.
26276 (inline_small_functions): Likewise. Add dumping of order to two other
26278 * ipa-pure-const.c (pure_const_read_summary): Print symbol order
26279 instead of node uids.
26280 (propagate_pure_const): Likewise.
26281 (propagate_pure_const): Likewise.
26282 * ipa-utils.c (dump_cgraph_node_set): Likewise.
26283 * lto-cgraph.c (input_node): Explicitly specify we dump uid.
26284 * lto-symtab.c (lto_cgraph_replace_node): Print symbol order instead
26286 * tree-pretty-print.c (dump_function_header): Likewise.
26287 * tree-sra.c (convert_callers_for_node): Dump in traditional format.
26288 Print symbol order instead of node uids.
26290 2013-05-15 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
26292 * config/s390/s390.c (s390_register_move_cost): Don't impose the
26293 FPR<->GPR move cost penalty if ldgr/lgdr can be used.
26295 2013-05-15 Richard Biener <rguenther@suse.de>
26297 PR tree-optimization/57275
26298 * tree-vect-data-refs.c (vect_analyze_data_ref_dependence): Fix
26299 return value for fail to do runtime alias checks for gather loads.
26301 2013-05-15 Jan Hubicka <jh@suse.cz>
26305 * lto-symtab.c (lto_symtab_symbol_p): Add external symbol;
26306 weakrefs are not external.
26307 (lto_symtab_merge_decls): Fix thinko when dealing with
26308 non-lto_symtab decls.
26309 (lto_symtab_merge_cgraph_nodes): Use lto_symtab_symbol_p.
26310 (lto_symtab_prevailing_decl): Get int sync with lto_symtab_symbol_p.
26311 * varpool.c (dump_varpool_node): Dump more flags.
26313 2013-05-15 Ganesh Gopalasubramanian <Ganesh.Gopalasubramanian@amd.com>
26315 * config/i386/i386.c (processor_alias_table): Add instruction
26316 FSGSBASE for AMD bdver3 architecture.
26318 2013-05-14 Jakub Jelinek <jakub@redhat.com>
26320 * tree.c (warn_deprecated_use): Print file:line using locus color.
26321 * diagnostic.c (diagnostic_report_current_module): Print file:line
26322 and file:line:column using locus color.
26324 2013-05-14 Mike Stump <mikestump@comcast.net>
26326 * gdbinit.in: Add __null.
26328 2013-05-14 Mike Stump <mikestump@comcast.net>
26330 * recog.h: Rename struct recog_data to Recog_data.
26331 * recog.c: Likewise.
26332 * reload.c (can_reload_into): Likewise.
26333 * config/picochip/picochip.c: Likewise.
26335 2013-05-14 Mike Stump <mikestump@comcast.net>
26337 * web.c (union_match_dups): Also check DF_REF_REAL_LOC.
26339 2013-05-14 Steven Bosscher <steven@gcc.gnu.org>
26341 * resource.h (struct resources): Remove unch_memory member.
26342 (CLEAR_RESOURCE): Don't clear unch_memory.
26343 * resource.c (mark_referenced_resources): Don't set it.
26344 (mark_set_resources): Likewise.
26345 (mark_target_live_regs): Don't clear it.
26346 (init_resource_info): Likewise.
26347 * reorg.c (resource_conflicts_p): Don't compare it.
26348 (redundant_insn): Don't set it.
26350 * rtl.h (next_label, skip_consecutive_labels, link_cc0_insns):
26352 * emit-rtl.c (next_label): Remove unused function.
26353 (skip_consecutive_labels, link_cc0_insns): Move to ...
26354 * reorg.c (skip_consecutive_labels, link_cc0_insns): ... here, the
26355 only place where these functions are used, and make them static.
26357 2013-05-14 Marc Glisse <marc.glisse@inria.fr>
26359 * fold-const.c (fold_negate_expr): Handle vectors.
26360 (fold_truth_not_expr): Make it static.
26361 (fold_invert_truthvalue): New static function.
26362 (invert_truthvalue_loc): Handle vectors. Do not call
26363 fold_truth_not_expr directly.
26364 (fold_unary_loc) <BIT_NOT_EXPR>: Handle comparisons.
26365 <TRUTH_NOT_EXPR>: Do not cast to boolean.
26366 (fold_comparison): Handle vector constants.
26367 (fold_binary_loc) <TRUTH_XOR_EXPR>: Remove redundant code.
26368 (fold_ternary_loc) <VEC_COND_EXPR>: Adapt more COND_EXPR optimizations.
26369 * tree.h (fold_truth_not_expr): Remove declaration.
26371 2013-05-14 James Greenhalgh <james.greenhalgh@arm.com>
26373 * config/aarch64/aarch64-simd.md
26374 (aarch64_vcond_internal<mode>): Rename to...
26375 (aarch64_vcond_internal<mode><mode>): ...This, for integer modes.
26376 (aarch64_vcond_internal<VDQF_COND:mode><VDQF:mode>): ...This for
26377 float modes. Clarify all iterator modes.
26378 (vcond<mode><mode>): Use new name for vcond expanders.
26379 (vcond<v_cmp_result><mode>): Likewise.
26380 (vcondu<mode><mode>: Likewise.
26381 * config/aarch64/iterators.md (VDQF_COND): New.
26383 2013-05-14 Marc Glisse <marc.glisse@inria.fr>
26386 * fold-const.c (fold_binary_loc) <shift>: Use an unsigned
26387 variable for the shift amount. Check that we shift by non-negative
26390 2013-05-14 Chung-Lin Tang <cltang@codesourcery.com>
26393 * config/arm/arm.h (EPILOGUE_USES): Only return true
26394 for LR_REGNUM after epilogue_completed.
26396 2013-05-14 Joern Rennecke <joern.rennecke@embecosm.com>
26398 * config/avr/avr.c (avr_encode_section_info): Bail out if the type
26399 is error_mark_node.
26401 2013-05-14 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
26404 * configure.ac (gcc_cv_ld_as_needed): Disable before Solaris 11
26405 and Solaris 11+/x86 with gld.
26406 * configure: Regenerate.
26408 2013-05-14 Jakub Jelinek <jakub@redhat.com>
26410 * expmed.c (expand_shift_1): Canonicalize rotates by
26411 constant bitsize / 2 to bitsize - 1.
26412 * simplify-rtx.c (simplify_binary_operation_1) <case ROTATE,
26413 case ROTATERT>: Likewise.
26416 2013-05-10 Jakub Jelinek <jakub@redhat.com>
26418 * config/i386/i386.md (rotateinv): New code attr.
26419 (*<rotate_insn><mode>3_1, *<rotate_insn>si3_1_zext,
26420 *<rotate_insn>qi3_1_slp): Emit rorl %eax instead of
26421 roll $31, %eax, etc.
26423 2013-05-14 Richard Biener <rguenther@suse.de>
26425 PR middle-end/57235
26426 * tree-eh.c (sink_clobbers): Give up for successors with
26427 multiple predecessors and no virtual uses.
26429 2013-05-14 Eric Botcazou <ebotcazou@adacore.com>
26431 * config/sparc/sp64-elf.h (CPP_SUBTARGET_SPEC): Delete.
26432 * config/sparc/openbsd64.h (CPP_SUBTARGET_SPEC): Likewise.
26434 2013-05-14 Jakub Jelinek <jakub@redhat.com>
26436 PR middle-end/57251
26437 * expr.c (expand_expr_real_2) <case WIDEN_MULT_EXPR>: Handle
26438 the case when both op0 and op1 have VOIDmode.
26440 2013-05-14 Kaushik Phatak <kaushik.phatak@kpitcummins.com>
26442 * config/rl78/rl78.md(mulsi3_g13): Add additional 'nop' required
26443 in multiply-accumulate mode.
26445 2013-05-13 Guozhi Wei <carrot@google.com>
26447 * dwarf2asm.c (dw2_output_indirect_constant_1): Mark new decl STATIC.
26449 2013-05-13 Kai Tietz <ktietz@redhat.com>
26452 * config/i386/cygming.h (TARGET_PECOFF): Define as true.
26453 * config/i386/i386.h (TARGET_PECOFF): Define by default as false.
26454 (PIC_OFFSET_TABLE_REGNUM): Use TARGET_PECOFF.
26455 * config/i386/i386.c (ix86_option_override_internal): Likewise.
26456 (ix86_expand_prologue): Likewise.
26457 (ix86_expand_split_stack_prologue): Likewise.
26458 (legitimate_pic_address_disp_p): Likewise.
26459 (legitimize_pic_address): Likewise.
26460 (legitimize_tls_address): Likewise.
26461 (legitimize_pe_coff_symbol): Likewise.
26462 (output_pic_addr_const): Likewise.
26463 (construct_plt_address): Likewise.
26464 (ix86_expand_call): Likewise.
26465 (x86_output_mi_thunk): Likewise.
26466 (x86_function_profiler): Likewise.
26468 2013-05-13 Sofiane Naci <sofiane.naci@arm.com>
26470 * config/aarch64/aarch64-simd.md (aarch64_simd_mov<mode>): Group
26471 similar switch cases.
26472 (aarch64_simd_mov): Rename to aarch64_split_simd_mov. Update.
26473 (aarch64_simd_mov_to_<mode>low): Delete.
26474 (aarch64_simd_mov_to_<mode>high): Delete.
26475 (move_lo_quad_<mode>): Add w<-r alternative.
26476 (aarch64_simd_move_hi_quad_<mode>): Likewise.
26477 (aarch64_simd_mov_from_*): Update type attribute.
26478 * config/aarch64/aarch64.c (aarch64_split_simd_move): Refacror switch
26481 2013-05-13 Jan Hubicka <jh@suse.cz>
26483 * mode-switching.c (optimize_mode_switching): Set correct RTL profile.
26484 * config/i386/i386.c (ix86_compute_frame_layout,
26485 ix86_expand_epilogue, emit_i387_cw_initialization,
26486 ix86_expand_vector_move_misalign, ix86_fp_comparison_strategy,
26487 ix86_local_alignment): Fix use of size/speed predicates.
26489 2013-05-13 Jakub Jelinek <jakub@redhat.com>
26491 PR tree-optimization/45216
26492 PR tree-optimization/57157
26493 * tree-ssa-forwprop.c (simplify_rotate): Only recognize
26494 the (-Y) & (B - 1) variant if OP is |.
26495 * expmed.c (expand_shift_1): For rotations by const0_rtx just
26496 return shifted. Use (-op1) & (prec - 1) as other_amount
26497 instead of prec - op1.
26499 2013-05-13 Martin Jambor <mjambor@suse.cz>
26501 PR middle-end/42371
26502 * ipa-prop.h (IPA_UNDESCRIBED_USE): New macro.
26503 (ipa_constant_data): New type.
26504 (ipa_jump_func): Use ipa_constant_data to hold information about
26505 constant jump functions.
26506 (ipa_get_jf_constant): Adjust to jump function type changes.
26507 (ipa_get_jf_constant_rdesc): New function.
26508 (ipa_param_descriptor): New field controlled_uses.
26509 (ipa_get_controlled_uses): New function.
26510 (ipa_set_controlled_uses): Likewise.
26511 * ipa-ref.h (ipa_find_reference): Declare.
26512 * ipa-prop.c (ipa_cst_ref_desc): New type.
26513 (ipa_print_node_jump_functions_for_edge): Adjust for jump function type
26515 (ipa_set_jf_constant): Likewise. Also create reference descriptions.
26516 New parameter cs. Adjust all callers.
26517 (ipa_analyze_params_uses): Detect uncontrolled and controlled uses.
26518 (remove_described_reference): New function.
26519 (jfunc_rdesc_usable): Likewise.
26520 (try_make_edge_direct_simple_call): Decrement controlled use count,
26521 attempt to remove reference if it hits zero.
26522 (combine_controlled_uses_counters): New function.
26523 (propagate_controlled_uses): Likewise.
26524 (ipa_propagate_indirect_call_infos): Call propagate_controlled_uses.
26525 (ipa_edge_duplication_hook): Duplicate reference descriptions.
26526 (ipa_print_node_params): Print described use counter.
26527 (ipa_write_jump_function): Adjust to jump function type changes.
26528 (ipa_read_jump_function): New parameter CS, pass it to
26529 ipa_set_jf_constant. Adjust caller.
26530 (ipa_write_node_info): Stream controlled use count
26531 (ipa_read_node_info): Likewise.
26532 * cgraph.c (cgraph_mark_address_taken_node): Bail out instead of
26534 * ipa-cp.c (ipcp_discover_new_direct_edges): Decrement controlled use
26535 count. Remove cloning-added reference if it reaches zero.
26536 * ipa-ref.c (ipa_find_reference): New function.
26538 2013-05-13 Ganesh Gopalasubramanian <Ganesh.Gopalasubramanian@amd.com>
26540 * config/i386/i386.c (processor_target_table): Modified default
26541 alignment values for AMD BD and BT architectures.
26543 2013-05-13 Marc Glisse <marc.glisse@inria.fr>
26545 * tree-vect-generic.c (uniform_vector_p): Move ...
26546 * tree.c (uniform_vector_p): ... here.
26547 * tree.h (uniform_vector_p): Declare it.
26548 * fold-const.c (fold_binary_loc) <shift>: Turn the second argument
26551 2013-05-13 Jakub Jelinek <jakub@redhat.com>
26553 PR tree-optimization/57230
26554 * tree-ssa-strlen.c (handle_char_store): Record length for
26555 array store from STRING_CST.
26557 PR tree-optimization/57230
26558 * tree-ssa-strlen.c (handle_char_store): Add missing integer_zerop
26561 2013-05-12 Joern Rennecke <joern.rennecke@embecosm.com>
26563 * config/epiphany/epiphany.c (epiphany_init): Check size of
26564 NUM_MODES_FOR_MODE_SWITCHING.
26565 (epiphany_expand_prologue):
26566 Remove CONFIG_REGNUM initial value handling code.
26567 (epiphany_optimize_mode_switching): Handle EPIPHANY_MSW_ENTITY_CONFIG.
26568 (epiphany_mode_needed, epiphany_mode_entry_exit): Likewise.
26569 (emit_set_fp_mode, epiphany_mode_after): Likewise.
26570 (epiphany_mode_needed) <Handle EPIPHANY_MSW_ENTITY_AND>:
26571 Don't return 1 for FP_MODE_NONE.
26572 * config/epiphany/epiphany.h (NUM_MODES_FOR_MODE_SWITCHING):
26573 Add value for EPIPHANY_MSW_ENTITY_CONFIG.
26574 (EPIPHANY_MSW_ENTITY_CONFIG, EPIPHANY_MSW_ENTITY_NUM): Define.
26575 * config/epiphany/epiphany.md (save_config): New pattern.
26577 2013-05-12 Uros Bizjak <ubizjak@gmail.com>
26579 * config/i386/i386.md (*zero_extendsidi2): Add *x->?r alternative.
26581 2013-05-10 Uros Bizjak <ubizjak@gmail.com>
26583 * config/i386/i386.md (memory): Handle sseishft1.
26584 * config/i386/sse.md (*vec_extractv4si): Remove memory attribute.
26585 (*vec_extractv2di_1): Ditto.
26587 2013-05-10 Vladimir Makarov <vmakarov@redhat.com>
26589 * lra-assigns.c (find_hard_regno_for): Add 1 to the cost of call
26592 2013-05-10 Sebastian Huber <sebastian.huber@embedded-brains.de>
26594 * config/arm/t-rtems-eabi: Remove mthumb/march=armv7 multilib.
26595 Add mthumb/march=armv7-a multilib.
26596 Add mthumb/march=armv7-r multilib.
26597 Add mthumb/march=armv7-a/mfpu=neon/mfloat-abi=hard multilib.
26599 2013-05-10 Ralf Corsépius <ralf.corsepius@rtems.org>
26601 * config/v850/t-rtems: Add more multilibs.
26603 2013-05-10 Richard Biener <rguenther@suse.de>
26605 PR tree-optimization/57214
26606 * tree-ssa-loop-ivcanon.c (propagate_constants_for_unrolling): Do
26607 not propagate from SSA names that occur in abnormal PHI nodes.
26609 2013-05-10 Marc Glisse <marc.glisse@inria.fr>
26611 * stor-layout.c (element_precision): New function.
26612 * machmode.h (element_precision): Declare it.
26613 * tree.c (build_minus_one_cst): New function.
26614 (element_precision): Likewise.
26615 * tree.h (build_minus_one_cst): Declare new function.
26616 (element_precision): Likewise.
26617 * fold-const.c (operand_equal_p): Use element_precision.
26618 (fold_binary_loc): Handle vector types.
26619 * convert.c (convert_to_integer): Use element_precision.
26620 * gimple.c (iterative_hash_canonical_type): Handle complex and vectors
26623 2013-05-10 Richard Sandiford <rdsandiford@googlemail.com>
26625 * config/mips/mips-protos.h (m16_uimm3_b, m16_simm4_1, m16_nsimm4_1)
26626 (m16_simm5_1, m16_nsimm5_1, m16_uimm5_4, m16_nuimm5_4, m16_simm8_1)
26627 (m16_nsimm8_1, m16_uimm8_1, m16_nuimm8_1, m16_uimm8_m1_1, m16_uimm8_4)
26628 (m16_nuimm8_4, m16_simm8_8, m16_nsimm8_8): Delete.
26629 * config/mips/mips.c (m16_check_op, m16_uimm3_b, m16_simm4_1)
26630 (m16_nsimm4_1, m16_simm5_1, m16_nsimm5_1, m16_uimm5_4, m16_nuimm5_4)
26631 (m16_simm8_1, m16_nsimm8_1, m16_uimm8_1, m16_nuimm8_1, m16_uimm8_m1_1)
26632 (m16_uimm8_4, m16_nuimm8_4, m16_simm8_8, m16_nsimm8_8): Delete.
26633 * config/mips/constraints.md (Udb8, Usb5, Usb8, Usd8, Uub8, Uuw5)
26634 (Uuw8): New constraints.
26635 (Usb4): Move into alphabetical order.
26636 * config/mips/predicates.md (db8_operand, sb5_operand, sb8_operand)
26637 (sd8_operand, ub8_operand, uw8_operand): New predicates.
26638 * config/mips/mips.md (*xor<mode>3, *xor<mode>3_mips16): Name
26639 previously unnamed patterns.
26640 (*add<mode>3_mips16, *xor<mode>3_mips16, *<optab>si3_mips16)
26641 (*ashldi3_mips16, *ashrdi3_mips16, *lshrdi3_mips16)
26642 (*slt<u>_<GPR:mode><GPR2:mode>_mips16)
26643 (*sle<u>_<GPR:mode><GPR2:mode>_mips16): Use constraints instead
26644 of set_attr_alternative/if_then_else. Use extended_mips16 instead
26645 of specific lengths.
26647 2013-05-10 Jakub Jelinek <jakub@redhat.com>
26649 * config/i386/i386.md (rotateinv): New code attr.
26650 (*<rotate_insn><mode>3_1, *<rotate_insn>si3_1_zext,
26651 *<rotate_insn>qi3_1_slp): Emit rorl %eax instead of
26652 roll $31, %eax, etc.
26654 PR tree-optimization/45216
26655 PR tree-optimization/57157
26656 * tree-ssa-forwprop.c (simplify_rotate): New function.
26657 (ssa_forward_propagate_and_combine): Call it.
26659 2013-05-10 Richard Biener <rguenther@suse.de>
26661 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment): Do not
26662 disable peeling when we version for aliasing.
26663 (vector_alignment_reachable_p): Honor explicit user alignment.
26664 (vect_supportable_dr_alignment): Likewise.
26665 * tree-vect-loop-manip.c (vect_can_advance_ivs_p): Use
26666 STMT_VINFO_LOOP_PHI_EVOLUTION_PART instead of recomputing it.
26667 * tree-vect-loop.c (vect_transform_loop): First apply versioning,
26668 then peeling to arrange for the cost-model check to come first.
26670 2013-05-10 Alan Modra <amodra@gmail.com>
26672 * configure.ac (HAVE_AS_TLS): Swap powerpc64 and powerpc cases.
26673 (HAVE_LD_LARGE_TOC): Don't mention AIX in help text.
26674 * configure: Regenerate.
26676 2013-05-10 Alan Modra <amodra@gmail.com>
26679 * varasm.c (default_elf_select_section): Move !DECL_P check..
26680 (get_named_section): ..to here before calling get_section_name.
26682 (default_section_type_flags): Add DECL_P check.
26683 * config/i386/winnt.c (i386_pe_section_type_flags): Likewise.
26684 * config/rs6000/rs6000.c (rs6000_xcoff_section_type_flags): Likewise.
26686 2013-05-09 Joern Rennecke <joern.rennecke@embecosm.com>
26688 * config/epiphany/epiphany.c (epiphany_expand_prologue):
26689 When using gen_stack_adjust_str with a register offset, add a
26690 REG_FRAME_RELATED_EXPR note.
26692 2013-05-09 Uros Bizjak <ubizjak@gmail.com>
26694 * config/i386/sse.md (*vec_extractv4si_0_zext): New pattern.
26695 (*vec_extractv4si_zext_mem): Ditto.
26696 (*vec_extractv2di): Add 0->x and x->x alternatives.
26697 * config/i386/mmx.md (*vec_extractv2si_zext_mem): New pattern.
26698 * config/i386/i386.md (*zero_extendsidi2): Add *Yj->?r alternative.
26700 2013-05-09 Jason Merrill <jason@redhat.com>
26702 N3639 C++1y VLA support
26703 * gimplify.c (gimplify_vla_decl): Don't touch an existing
26706 * tree.c (build_constructor_va): New.
26707 * tree.h: Declare it.
26709 2013-05-09 Martin Jambor <mjambor@suse.cz>
26712 * gimple-fold.c (canonicalize_constructor_val): Call
26713 cgraph_get_create_real_symbol_node instead of cgraph_get_create_node.
26715 2013-05-09 Jan Hubicka <jh@suse.cz>
26716 Richard Biener <rguenther@suse.de>
26719 * symtab.c (symtab_make_decl_local): Do not add private names.
26721 2013-05-09 Jan Hubicka <jh@suse.cz>
26724 * symtab.c (insert_to_assembler_name_hash): Handle clones.
26725 (unlink_from_assembler_name_hash): Likewise.
26726 (symtab_prevail_in_asm_name_hash, symtab_register_node,
26727 symtab_unregister_node, symtab_initialize_asm_name_hash,
26728 change_decl_assembler_name): Update.
26730 2013-05-09 Sofiane Naci <sofiane.naci@arm.com>
26732 * config/aarch64/aarch64.md: New movtf split.
26733 (*movtf_aarch64): Update.
26734 (aarch64_movdi_tilow): Handle TF modes and rename to
26735 aarch64_movdi_<mode>low.
26736 (aarch64_movdi_tihigh): Handle TF modes and rename to
26737 aarch64_movdi_<mode>high
26738 (aarch64_movtihigh_di): Handle TF modes and rename to
26739 aarch64_mov<mode>high_di
26740 (aarch64_movtilow_di): Handle TF modes and rename to
26741 aarch64_mov<mode>low_di
26742 (aarch64_movtilow_tilow): Remove spurious whitespace.
26743 * config/aarch64/aarch64.c (aarch64_split_128bit_move): Handle TFmode
26745 (aarch64_print_operand): Update.
26747 2013-05-09 Alan Modra <amodra@gmail.com>
26749 * configure.ac (HAVE_AS_TLS): Enable tests for powerpcle and
26751 * configure: Regenerate.
26753 2013-05-08 Uros Bizjak <ubizjak@gmail.com>
26755 * config/i386/mmx.md (*vec_extract* splitters): Simplify post-reload
26756 splitter preparation statements.
26757 * config/i386/sse.md (*vec_extract* splitters): Ditto.
26758 (*avx_vperm_broadcast_<mode>): Use adjust_address instead of
26761 2013-05-08 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
26763 * gimple-ssa-strength-reduction.c (count_candidates): Change
26764 return value to int.
26765 (analyze_candidates_and_replace): Change type of length to int.
26767 2013-05-08 Uros Bizjak <ubizjak@gmail.com>
26769 * config/i386/sse.md (PEXTR_MODE, PEXTR_MODEx): Remove.
26770 (*vec_extract<mode>): Use VI12_128 mode iterator.
26771 (*vec_extract<mode>_mem): Ditto.
26772 (*vec_extract*_mem splitters): Merge splitters using VI_128 mode
26775 2013-05-08 Diego Novillo <dnovillo@google.com>
26780 2012-08-17 Diego Novillo <dnovillo@google.com>
26783 * configure.ac: Add libintl.h to AC_CHECK_HEADERS list.
26784 * config.in: Regenerate.
26785 * configure: Regenerate.
26786 * intl.h: Always include libintl.h if HAVE_LIBINTL_H is set.
26788 2013-05-08 Jan Hubicka <jh@suse.cz>
26791 * cgraph.c (cgraph_make_node_local_1): Se unique_name.
26792 * cgraph.h (symtab_node_base): Add unique_name.
26793 * lto-cgraph.c (lto_output_node, lto_output_varpool_node,
26794 input_overwrite_node, input_varpool_node): Stream unique_name.
26795 * cgraphclones.c (cgraph_create_virtual_clone,
26796 cgraph_function_versioning): Set unique_name.
26797 * ipa.c (function_and_variable_visibility): Set unique_name.
26799 2013-05-08 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
26801 * gimple-ssa-strength-reduction.c (find_phi_def): Revert former "fix."
26802 (alloc_cand_and_find_basis): Restrict conditional candidate
26803 processing to CAND_MULTs.
26805 2013-05-08 Jan Hubicka <jh@suse.cz>
26808 lto-symtab.c (lto_symtab_symbol_p): New function.
26809 (lto_symtab_resolve_can_prevail_p, lto_symtab_resolve_symbols,
26810 lto_symtab_resolve_symbols, lto_symtab_merge_decls_2,
26811 lto_symtab_merge_decls_1, lto_symtab_merge_cgraph_nodes_1):
26812 Skip static symbols.
26814 2013-05-08 Paolo Carlini <paolo.carlini@oracle.com>
26816 PR tree-optimization/57200
26817 * tree-ssa-loop-niter.c (do_warn_aggressive_loop_optimizations):
26818 Only call inform if the preceding warning_at returns true.
26820 2013-05-07 Han Shen <shenhan@google.com>
26822 * cfgexpand.c (record_or_union_type_has_array_p): New function.
26823 (expand_used_vars): Add logic handling '-fstack-protector-strong'.
26824 * common.opt (fstack-protector-strong): New option.
26825 * doc/cpp.texi (__SSP_STRONG__): New builtin "__SSP_STRONG__".
26826 * doc/invoke.texi (Optimization Options): Document
26827 "-fstack-protector-strong".
26828 * gcc.c (LINK_SSP_SPEC): Add 'fstack-protector-strong'.
26830 2013-05-06 Steven Bosscher <steven@gcc.gnu.org>
26832 * config/mips/mips.c (mips_machine_reorg2): Return 0.
26834 2013-05-07 Vladimir Makarov <vmakarov@redhat.com>
26836 * ira.c (update_equiv_regs): Add insn having equiv memory even if
26837 it is not lhs of the insn.
26838 (setup_reg_equiv): Remove insn having equiv memory which it is not
26840 * lra-constraints.c (process_address): Try to improve generation
26841 code for address base + disp.
26842 (lra_constraints): Make correct the code for checking insn setting
26843 up backward equivalence. Remove insn only if it is in the init
26845 * lra-eliminations.c (update_reg_eliminate): Change return value.
26846 (lra_eliminate): Use the result.
26848 2013-05-07 Uros Bizjak <ubizjak@gmail.com>
26850 * config/i386/sse.md (ssescalarnummask): New mode attribute.
26851 (PEXTR_MODE, PEXTR_MODEx): New mode iterators.
26852 (*vec_extract<mode>): Merge from *sse4_1_pextrb_memory and
26853 *sse4_1_pextrw_memory using PEXTR_MODE mode iterator. Handle
26854 register target operands.
26855 (*vec_extractv8hi_sse2): New pattern.
26856 (*vec_extractv16qi_zext): Rename from *sse4_1_pextrb_<mode>.
26857 (*vec_extractv8hi_zext): Rename from *sse2_pextrw_<mode>.
26858 (*vec_extract<mode>_mem): New insn and split pattern.
26860 2013-05-07 Christophe Lyon <christophe.lyon@linaro.org>
26862 * config/arm/arm.c (arm_asan_shadow_offset): New function.
26863 (TARGET_ASAN_SHADOW_OFFSET): Define.
26864 * config/arm/linux-eabi.h (ASAN_CC1_SPEC): Define.
26865 (LINUX_OR_ANDROID_CC): Add ASAN_CC1_SPEC.
26867 2013-05-07 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
26869 * gimple-ssa-strength-reduction.c (MAX_INCR_VEC_LEN): New constant.
26870 (incr_vec_index): Return -1 if increment not found.
26871 (create_add_on_incoming_edge): Assert if increment not found.
26872 (record_increment): Limit number of increments recorded.
26873 (all_phi_incrs_profitable): Return false if an increment not found.
26874 (replace_profitable_candidates): Don't process increments that were
26876 (analyze_candidates_and_replace): Limit size of incr_vec.
26878 2013-05-07 Richard Biener <rguenther@suse.de>
26880 * calls.c (special_function_p): setjmp-like functions are leaf.
26881 * builtins.def (BUILT_IN_SETJMP): setjmp is leaf.
26882 * tree-inline.c (update_ssa_across_abnormal_edges): Remove assert.
26884 2013-05-07 Sofiane Naci <sofiane.naci@arm.com>
26886 * config/aarch64/aarch64-simd.md (*aarch64_simd_mov<mode>): call splitter.
26887 (aarch64_simd_mov<mode>): New expander.
26888 (aarch64_simd_mov_to_<mode>low): New instruction pattern.
26889 (aarch64_simd_mov_to_<mode>high): Likewise.
26890 (aarch64_simd_mov_from_<mode>low): Likewise.
26891 (aarch64_simd_mov_from_<mode>high): Likewise.
26892 (aarch64_dup_lane<mode>): Update.
26893 (aarch64_dup_lanedi): New instruction pattern.
26894 * config/aarch64/aarch64-protos.h (aarch64_split_simd_move): New prototype.
26895 * config/aarch64/aarch64.c (aarch64_split_simd_move): New function.
26897 2013-05-07 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
26899 * gimple-ssa-strength-reduction.c (lazy_create_slsr_reg): Remove.
26900 (replace_mult_candidate): Remove unnecessary argument; remove
26901 unnecessary parameter from call to introduce_cast_before_cand.
26902 (replace_unconditional_candidate): Remove unnecessary parameter
26903 from call to replace_mult_candidate.
26904 (replace_conditional_candidate): Likewise.
26905 (insert_initializers): Use make_temp_ssa_name.
26906 (introduce_cast_before_cand): Remove unnecessary argument; use
26907 make_temp_ssa_name.
26908 (replace_one_candidate): Remove unnecessary argument; remove
26909 unnecessary parameter from calls to introduce_cast_before_cand.
26910 (replace_profitable_candidates): Remove unnecessary parameters
26911 from calls to replace_one_candidate.
26913 2013-05-07 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
26915 * gimple-ssa-strength-reduction.c (find_phi_def): Don't record a
26916 phi def as possibly hiding a basis for a CAND_ADD whose operands
26917 have been commuted in the analysis.
26918 (alloc_cand_and_find_basis): Add parms to call to find_phi_def.
26920 2013-05-07 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
26922 * config/aarch64/aarch64.md
26923 (cmp_swp_<optab><ALLX:mode>_shft_<GPI:mode>): Restrict the
26924 shift value between 0-4.
26926 2013-05-07 Richard Biener <rguenther@suse.de>
26928 * double-int.h (rshift): New overload.
26929 * double-int.c (rshift): New function.
26930 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Optimize.
26931 (create_reference_ops_from_ref): Remove.
26932 (vn_reference_insert): Use shared ops for constructing the
26933 reference and copy it.
26935 2013-05-07 Richard Biener <rguenther@suse.de>
26937 PR middle-end/57190
26938 * tree-eh.c (sink_clobbers): Properly propagate
26939 SSA_NAME_OCCURS_IN_ABNORMAL_PHI.
26941 2013-05-07 Jakub Jelinek <jakub@redhat.com>
26943 PR tree-optimization/57149
26944 * tree-ssa-uninit.c (uninit_undefined_value_p): New inline.
26945 (can_skip_redundant_opnd, compute_uninit_opnds_pos,
26946 collect_phi_def_edges, execute_late_warn_uninitialized): Use
26947 uninit_undefined_value_p instead of ssa_undefined_value_p.
26950 * expr.c (expand_expr_addr_expr_1): Handle COMPOUND_LITERAL_EXPR
26951 for modifier == EXPAND_INITIALIZER.
26953 2013-05-07 Anton Blanchard <anton@samba.org>
26955 * configure.ac (HAVE_LD_LARGE_TOC): Use correct linker emulation
26956 for powerpc64 little endian.
26957 * configure: Regenerate.
26959 2013-05-06 Graham Stott <grahams@btinternet.com>
26961 * expmed.c (init_expmed_rtl): Remove unused fields reg_fld, plus_fld,
26962 mult_fld, sdiv_fld1, udiv_fld1, sdiv_32_fld1, smod_32_fld1,
26963 wide_mult_fld1, wide_lshr_fld1, shift_fld1, shift_mult_fld1,
26964 shift_add_fld1, shift_sub0_fld1, shift_sub1_fld1.
26966 2013-05-06 Graham Stott <grahams@btinternet.com>
26968 * gensupport.c (add_predicate_code): Also exclude SCRATCH from rtx
26969 codes which allow non-lvalues.
26971 2013-05-06 Marc Glisse <marc.glisse@inria.fr>
26973 * tree.c (integer_all_onesp) <COMPLEX_CST>: Test that both
26974 components are all 1s.
26975 (integer_minus_onep): New function.
26976 * tree.h (integer_minus_onep): Declare it.
26977 * fold-const.c (fold_binary_loc) <MULT_EXPR>: Test
26978 integer_minus_onep instead of integer_all_onesp.
26980 2013-05-06 Oleg Endo <olegendo@gcc.gnu.org>
26983 * config/sh/sh.md (*cmp_div0s_0, *cmp_div0s_1, *movsicc_div0s): Add
26984 variations of these patterns.
26986 2013-05-06 Uros Bizjak <ubizjak@gmail.com>
26988 * config/i386/i386.md (isa): Add x64_sse4 member.
26989 (enabled): Handle x64_sse4.
26990 (*movdi_internal): Add *x->?r alternative to emit pextrq $0,%xmm,%reg
26991 instruction for 64bit SSE4_1 targets. Update insn attributes.
26992 (*movsi_internal): Add *x->?r alternative to emit pextrd $0,%xmm,%reg
26993 instruction for SSE4_1 targets. Update insn attributes.
26994 * config/i386/sse.md (*vec_extract<ssevecmodelower>_0): Merge
26995 with *sse4_1_pextrd and *sse4_1_pextrq having const_0 selector.
26996 (*vec_extractv2di_1): Merge with *sse4_1_pextrq having
26998 (*vec_extractv4si): Rename from *sse4_1_pextrd.
26999 (*vec_extractv4si_zext): Rename from *sse4_1_pextrd_zext.
27000 (*vec_extract<ssevecmodelower>_0 splitters): Merge splitters together.
27002 2013-05-06 Oleg Endo <olegendo@gcc.gnu.org>
27005 * config/sh/sh.md (tstsi_t_zero_extract_eq): Use QIHISIDI mode iterator.
27007 2013-05-06 Maxim Kuznetsov <maks.kuznetsov@gmail.com>
27009 * final.c (do_assembler_dialects): Don't handle curly braces and
27010 vertical bar escaped by % as dialect delimiters.
27011 (output_asm_insn): Print curly braces and vertical bar if escaped
27012 by % and ASSEMBLER_DIALECT defined.
27013 * doc/tm.texi.in (ASSEMBLER_DIALECT): Document new standard escapes.
27014 * doc/tm.texi: Regenerated.
27016 2013-05-06 Steven Bosscher <steven@gcc.gnu.org>
27018 * config/mips/mips.c: Include tree-pass.h.
27019 (mips_reorg): Split in pre- and post-dbr_schedule parts.
27020 (mips_machine_reorg2): Move mips_reorg post-dbr_schedule parts here.
27021 (pass_mips_machine_reorg2): New machine specific pass.
27022 (insert_pass_mips_machine_reorg2): New pass plugin definition.
27023 (mips_option_override): Register the new pass.
27024 * rtl.h (cleanup_barriers): Remove prototype.
27025 (dbr_schedule): Likewise.
27026 * jump.c (cleanup_barriers): Make static.
27027 * reorg.c (dbr_schedule): Likewise.
27029 2013-05-06 Richard Biener <rguenther@suse.de>
27031 PR tree-optimization/57185
27032 * tree-parloops.c (add_field_for_reduction): Handle anonymous
27033 SSA names properly.
27035 2013-05-06 Uros Bizjak <ubizjak@gmail.com>
27038 * config/i386/i386.c (add_parameter_dependencies): Add dependence
27039 between "first_arg" and "insn", not "last" and "insn".
27041 2013-05-06 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
27043 * gimple-ssa-strength-reduction.c (slsr_process_phi): Re-enable.
27044 (find_candidates_in_block): Re-enable slsr_process_phi.
27045 (create_phi_basis): Fix double counting of candidate adjustment.
27047 2013-05-06 Richard Biener <rguenther@suse.de>
27049 PR middle-end/57147
27050 * tree-cfg.c (gimple_purge_dead_abnormal_call_edges): If
27051 the edge is also fallthru, preserve it and just clear the
27053 * tree-cfgcleanup.c (remove_fallthru_edge): If the edge is
27054 also complex, preserve that and just clear the fallthru flag.
27055 * tree-inline.c (update_ssa_across_abnormal_edges): Also
27056 update virtual operands.
27058 2013-05-06 Alan Modra <amodra@gmail.com>
27060 * config/rs6000/linux.h (DEFAULT_ASM_ENDIAN): Define.
27061 (LINK_OS_LINUX_EMUL): Use ENDIAN_SELECT.
27062 * config/rs6000/linux64.h (DEFAULT_ASM_ENDIAN): Define.
27063 * config/rs6000/sysv4le.h (DEFAULT_ASM_ENDIAN): Define.
27064 (LINK_TARGET_SPEC): Use ENDIAN_SELECT.
27065 * config/rs6000/sysv4.h (DEFAULT_ASM_ENDIAN): Define as -mbig.
27067 2013-05-06 Alan Modra <amodra@gmail.com>
27069 * config/rs6000/sysv4.h (ENDIAN_SELECT): Define, extracted from
27070 (ASM_SPEC): ..here. Emit DEFAULT_ASM_ENDIAN too.
27071 (DEFAULT_ASM_ENDIAN): Define.
27072 (CC1_SPEC, LINK_TARGET_SPEC): Use ENDIAN_SELECT.
27073 * config/rs6000/linux64.h (ASM_SPEC32): Remove endian options.
27074 Update -K PIC clause from sysv4.h.
27075 (ASM_SPEC_COMMON): Use ENDIAN_SELECT.
27076 (LINK_OS_LINUX_EMUL32, LINK_OS_LINUX_EMUL64): Likewise.
27078 2013-05-06 Alan Modra <amodra@gmail.com>
27080 * config/rs6000/rs6000.md (bswapdi 2nd splitter): Don't swap words
27081 twice for little-endian.
27082 (ashrdi3_no_power, ashrdi3): Support little-endian.
27084 2013-05-06 Oleg Endo <olegendo@gcc.gnu.org>
27087 * config/sh/sh.c (sh_rtx_costs): Handle SMIN and SMAX cases.
27088 * config/sh/sh.md (*clips, uminsi3, *clipu, clipu_one): New insns and
27090 * config/sh/iterators.md (SMIN_SMAX): New code iterator.
27091 * config/sh/predicates.md (arith_reg_or_0_or_1_operand,
27092 clips_min_const_int, clips_max_const_int, clipu_max_const_int):
27095 2013-05-05 Steven Bosscher <steven@gcc.gnu.org>
27096 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
27098 * config.gcc (hppa*-*-*): Remove MASK_BIG_SWITCH from CPU default.
27099 * config/pa/pa.opt: Make mbig-switch a no-op.
27100 * config/pa/pa.h (TARGET_DEFAULT): Remove MASK_BIG_SWITCH.
27101 (CASE_VECTOR_MODE): Always return SImode.
27102 (ASM_OUTPUT_ADDR_VEC_ELT, ASM_OUTPUT_ADDR_DIFF_ELT): Remove code
27103 for the !TARGET_BIG_SWITCH case.
27104 * config/pa/pa-linux.h: Likewise.
27105 * config/pa/pa-openbsd.h: Likewise.
27106 * config/pa/pa-hpux.h: Define TARGET_DEFAULT to 0.
27107 * config/pa/pa.md (short_jump): Remove define_insn.
27108 (casesi): Remove code for the !TARGET_BIG_SWITCH case.
27109 (casesi0): Remove define_insn.
27110 (type): Remove btable_branch.
27111 (pa_combine_type): Likewise.
27112 (in_nullified_branch_delay): Likewise.
27113 (in_call_delay): Likewise.
27114 (define_delay): Likewise.
27115 (define_insn_reservation "Z3"): Likewise.
27116 (define_insn_reservation "Z4"): Likewise.
27117 * config/pa/pa.c (pa_reorg): Remove code for !TARGET_BIG_SWITCH.
27118 (pa_adjust_insn_length): Remove adjustment for btable branches.
27119 * doc/invoke.texi (HPPA Options): Delete documentation for mbig-switch
27122 2013-05-05 Uros Bizjak <ubizjak@gmail.com>
27124 * config/i386/sse.md (*vec_extract<ssevecmodelower>_0): Merge
27125 from sse2_stored and *sse2_storeq_rex64 using SWI48 mode iterator.
27126 Add m->r,x alternatives.
27127 (*vec_extract<ssevecmodelower>_0 splitters): Merge V2DI and V4SI
27128 splitters using SWI48x mode iterator.
27129 (*vec_extract_v2di_0_sse): Rename from *sse2_storeq. Disable for
27130 TARGET_64BIT. Add m->x alternative.
27131 (*vec_extractv4si_mem): Rename from *vec_ext_v4si_mem.
27132 Add o->x alternative. Enable for TARGET_SSE.
27133 (sse_storeq): Remove expander.
27134 (*vec_extractv2di_1): Enable for TARGET_SSE. Split alternatives
27135 with memory input operand.
27136 (*vec_extractv2di_1 splitter): New.
27137 (*vec_extractv4sf_mem): Rename from *vec_extract_v4sf_mem.
27138 * config/i386/i386.md (ssevecmodelower): New mode attribute.
27140 2013-05-04 Segher Boessenkool <segher@kernel.crashing.org>
27142 * config/rs6000/rs6000.c (INT_P): Reformat. Delete obsolete comment.
27143 (INT_LOWPART): Delete.
27144 (extract_MB): Adjust.
27145 (extract_ME): Adjust.
27146 (print_operand): Adjust.
27148 2013-05-04 Segher Boessenkool <segher@kernel.crashing.org>
27150 * config/rs6000/predicates.md (reg_or_add_cint_operand,
27151 reg_or_sub_cint_operand): Delete "HOST_BITS_PER_WIDE_INT == 32" case.
27152 (reg_or_logical_cint_operand, easy_fp_constant,
27153 logical_const_operand): Delete "CONST_DOUBLE" case.
27154 * config/rs6000/rs6000.c (num_insns_constant_wide): Delete
27155 "HOST_BITS_PER_WIDE_INT == 64" test.
27156 (num_insns_constant): Ditto. Delete CONST_DOUBLE DImode/VOIDmode case.
27157 (build_mask64_2_operands): Delete "HOST_BITS_PER_WIDE_INT >= 64" test.
27158 (rs6000_emit_set_const): Delete CONST_DOUBLE case.
27159 (rs6000_emit_set_long_const): Delete "HOST_BITS_PER_WIDE_INT >= 64"
27161 (includes_rldic_lshift_p, includes_rldicr_lshift_p): Delete
27162 CONST_DOUBLE DImode/VOIDmode case.
27163 (INT_P, INT_LOWPART): Delete CONST_DOUBLE case.
27164 (print_operand): Delete "HOST_BITS_PER_WIDE_INT == 32" case. Delete
27165 CONST_DOUBLE VOIDmode case.
27166 (output_toc): Delete "HOST_BITS_PER_WIDE_INT == 32" case.
27167 (rs6000_rtx_costs): Delete CONST_DOUBLE DImode/VOIDmode case.
27168 * config/rs6000/rs6000.md (iordi3, xordi3, splitter for these):
27169 Delete CONST_DOUBLE case.
27170 (splitters for mov FMOVE64 const_double): Delete
27171 "HOST_BITS_PER_WIDE_INT == 32" case. Delete
27172 "HOST_BITS_PER_WIDE_INT >= 64" test.
27173 (splitter for mov DI const_int): Delete "HOST_BITS_PER_WIDE_INT == 32"
27175 (mov DI const_double): Delete.
27177 2013-05-04 Jakub Jelinek <jakub@redhat.com>
27179 * combine.c (combine_simplify_rtx) <case SUBREG>: If nonzero_bits
27180 on op shows all bits zero in mode of a lowpart subreg, return zero.
27182 2013-05-03 Michael Meissner <meissner@linux.vnet.ibm.com>
27185 * config/rs6000/rs6000.h (HARD_REGNO_CALLER_SAVE_MODE): Use DFmode
27186 to save TFmode registers and DImode to save TImode registers for
27187 caller save operations.
27188 (HARD_REGNO_CALL_PART_CLOBBERED): TFmode and TDmode do not need to
27189 mark being partially clobbered since they only use the first
27192 * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): TFmode
27193 and TDmode only use the upper 64-bits of each VSX register.
27195 2013-05-03 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
27197 * gimple-ssa-strength-reduction.c (slsr_process_phi): Disable.
27198 (find_candidates_in_block): Disable slsr_process_phi.
27200 2013-05-03 Guozhi Wei <carrot@google.com>
27202 * coverage.c (coverage_obj_init): Move the construction of gcov
27204 (build_init_ctor): ... here.
27206 2013-05-03 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
27208 * gimple-ssa-strength-reduction.c (cand_kind): Add CAND_PHI.
27209 (slsr_cand_d): Redefine def_phi.
27210 (stride_status, phi_adjust_status, count_phis_status): New enums.
27211 (find_phi_def): New.
27212 (find_basis_for_base_expr): New.
27213 (find_basis_for_candidate): Handle hidden bases.
27214 (alloc_cand_and_find_basis): Handle phi candidates.
27215 (slsr_process_phi): New.
27216 (create_mul_ssa_cand): Exclude phi base candidates; use integer_onep.
27217 (create_mul_imm_cand): Likewise.
27218 (create_add_ssa_cand): Exclude phi base candidates.
27219 (create_add_imm_cand): Likewise.
27220 (slsr_process_cast): Likewise.
27221 (slsr_process_copy): Likewise.
27222 (find_candidates_in_block): Handle phi candidates.
27223 (dump_candidate): Likewise.
27224 (unconditional_cands): Delete.
27225 (unconditional_cands_with_known_stride_p): Delete.
27226 (phi_dependent_cand_p): New.
27227 (cand_increment): Handle phi-dependent candidates.
27228 (replace_dependent): Delete.
27229 (replace_mult_candidate): New.
27230 (replace_unconditional_candidate): New.
27231 (incr_vec_index): Move to avoid forward reference.
27232 (create_add_on_incoming_edge): New.
27233 (create_phi_basis): New.
27234 (replace_dependents): Delete.
27235 (replace_conditional_candidate): New.
27236 (phi_add_costs): New.
27237 (replace_uncond_cands_and_profitable_phis): New.
27238 (record_increment): Handle phi adjustments.
27239 (record_phi_increments): New.
27240 (record_increments): Handle phi adjustments.
27241 (phi_incr_cost): New.
27242 (lowest_cost_path): Handle phis.
27243 (total_savings): Likewise.
27244 (analyze_increments): Likewise.
27245 (ncd_with_phi): New.
27246 (ncd_of_cand_and_phis): New.
27247 (nearest_common_dominator_for_cands): Handle phi increments.
27248 (all_phi_incrs_profitable): New.
27249 (replace_profitable_candidates): Handle phi-dependent candidates.
27250 (analyze_candidates_and_replace): Likewise.
27252 2013-05-03 Teresa Johnson <tejohnson@google.com>
27255 * sched-rgn.c (compute_dom_prob_ps): Ensure accumulated probabilities
27256 do not exceed REG_BR_PROB_BASE.
27258 2013-05-03 Jeff Law <law@redhat.com>
27260 PR tree-optimization/57144
27261 * tree-vrp.c (simplify_cond_using_ranges): Verify the constant
27262 operand of the condition will bit into the new type when eliminating
27263 a cast feeding a condition.
27265 2013-05-03 Jakub Jelinek <jakub@redhat.com>
27267 PR rtl-optimization/57130
27268 * combine.c (make_compound_operation) <case SUBREG>: Pass SET instead
27269 of COMPARE as in_code to the recursive call if needed.
27271 2013-05-03 Uros Bizjak <ubizjak@gmail.com>
27273 * config/i386/i386.md (isa): Add x64_sse4_noavx and x64_avx members.
27274 (enabled): Handle new members.
27275 * config/i386/sse.md (*vec_concatv2si): Merge from
27276 *vec_concatv2si_sse2 and vec_concatv2si_sse.
27277 (vec_concatv2di): Merge with *vec_concatv2di_rex64.
27279 2013-05-03 Joern Rennecke <joern.rennecke@embecosm.com>
27281 PR tree-optimization/57027
27282 * tree-ssa-math-opts.c (convert_mult_to_fma): When checking
27283 for fnms opportunity, check we got the prerequisite kind
27284 of tree / gimple before using accessor functions.
27286 2013-05-03 Richard Biener <rguenther@suse.de>
27288 * double-int.h (lshift): New overload without precision
27289 and arith argument.
27290 (operator *=, operator +=, operator -=): Move ...
27291 * double-int.c (operator *=, operator +=, operator -=): ... here
27292 and implement more efficiently.
27293 (mul_double_with_sign): Remove.
27294 (lshift_double): Adjust to take unsinged shift argument, push
27295 dispatching code to callers.
27296 (mul_double_wide_with_sign): Add early out for callers that
27297 are not interested in high parts or overflow.
27298 (lshift): New function.
27299 (lshift, rshift, alshift, arshift, llshift, lrshift): Add
27300 dispatch code here.
27301 (lrotate, rrotate): Use logical shifts.
27302 * expr.c (get_inner_reference): Use lshift.
27303 * fixed-value.c (do_fixed_divide): Likewise.
27304 * tree-dfa.c (get_ref_base_and_extent): Likewise.
27305 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Likewise.
27306 (indirect_refs_may_alias_p): Likewise.
27307 (stmt_kills_ref_p_1): Likewise.
27309 2013-05-03 Vidya Praveen <vidyapraveen@arm.com>
27311 * config/aarch64/aarch64-simd.md (simd_fabd): Correct the description.
27313 2013-05-03 Vidya Praveen <vidyapraveen@arm.com>
27315 * config/aarch64/aarch64-simd.md (*fabd_scalar<mode>3): Support
27316 scalar form of FABD instruction.
27318 2013-05-02 Vladimir Makarov <vmakarov@redhat.com>
27320 * lra-constraints.c (process_alt_operands): Add checking alt
27321 number to choose the best alternative.
27323 2013-05-02 Richard Biener <rguenther@suse.de>
27325 * tree-eh.c (cleanup_empty_eh_merge_phis): Remove rename_virts
27326 bitmap and its handling.
27327 (pass_cleanup_eh): Set todo_flags_finish to TODO_verify_ssa.
27329 2013-05-02 Richard Biener <rguenther@suse.de>
27331 PR middle-end/57140
27332 * tree-inline.c (copy_loops): Properly handle removed loops.
27333 (copy_cfg_body): Mark destination loops for fixup if source
27334 loops needed fixup.
27336 2013-05-02 Greta Yorsh <Greta.Yorsh@arm.com>
27339 * config/arm/arm.c (arm_expand_epilogue): Check really_return before
27340 generating simple_return for naked functions.
27342 2013-05-02 Martin Jambor <mjambor@suse.cz>
27344 PR middle-end/56988
27345 * ipa-prop.h (ipa_agg_replacement_value): New flag by_ref.
27346 * ipa-cp.c (ipa_get_indirect_edge_target_1): Also check that by_ref
27348 (find_aggregate_values_for_callers_subset): Fill in the by_ref flag of
27349 ipa_agg_replacement_value structures.
27350 (known_aggs_to_agg_replacement_list): Likewise.
27351 * ipa-prop.c (write_agg_replacement_chain): Stream by_ref flag.
27352 (read_agg_replacement_chain): Likewise.
27353 (ipcp_transform_function): Also check that by_ref flags match.
27355 2013-05-02 Richard Biener <rguenther@suse.de>
27357 * graphds.h (struct graph): Add obstack member.
27358 * graphds.c (new_graph): Initialize obstack and allocate
27360 (add_edge): Allocate edge from the obstack.
27361 (free_graph): Free the obstack instead of all edges and vertices.
27363 2013-05-02 Teresa Johnson <tejohnson@google.com>
27365 * loop-unswitch.c (unswitch_loop): Use helper routines with rounding
27367 * cfg.c (update_bb_profile_for_threading): Ditto.
27368 * tree-inline.c (copy_bb): Ditto.
27369 (copy_edges_for_bb): Ditto.
27370 (initialize_cfun): Ditto.
27371 (copy_cfg_body): Ditto.
27372 (expand_call_inline): Ditto.
27373 * ipa-inline-analysis.c (estimate_edge_size_and_time): Ditto.
27374 (estimate_node_size_and_time): Ditto.
27375 (inline_merge_summary): Ditto.
27376 * cgraphclones.c (cgraph_clone_edge): Ditto.
27377 (cgraph_clone_node): Ditto.
27378 * sched-rgn.c (compute_dom_prob_ps): Ditto.
27379 (compute_trg_info): Ditto.
27381 2013-05-02 Ian Bolton <ian.bolton@arm.com>
27383 * config/aarch64/aarch64.md (movsi_aarch64): Only allow to/from
27384 S reg when fp attribute set.
27385 (movdi_aarch64): Only allow to/from D reg when fp attribute set.
27387 2013-05-02 Ian Bolton <ian.bolton@arm.com>
27389 * config/aarch64/aarch64.md (*and_one_cmpl<mode>3_compare0):
27391 (*and_one_cmplsi3_compare0_uxtw): Likewise.
27392 (*and_one_cmpl_<SHIFT:optab><mode>3_compare0): Likewise.
27393 (*and_one_cmpl_<SHIFT:optab>si3_compare0_uxtw): Likewise.
27395 2013-05-02 Richard Biener <rguenther@suse.de>
27397 * tree-scalar-evolution.c (scev_info_hasher): Remove.
27398 (struct instantiate_cache_entry): New type.
27399 (struct instantiate_cache_entry_hasher): New hashtable descriptor.
27400 (struct instantiate_cache_type): New type.
27401 (set_instantiated_value, get_instantiated_value): Remove.
27402 (get_instantiated_value_entry): New function.
27403 (instantiate_scev_name): Use the new cache and adjust.
27404 (instantiate_scev_poly): Adjust.
27405 (instantiate_scev_binary): Likewise.
27406 (instantiate_array_ref): Likewise.
27407 (instantiate_scev_convert): Likewise.
27408 (instantiate_scev_not): Likewise.
27409 (instantiate_scev_3): Likewise.
27410 (instantiate_scev_2): Likewise.
27411 (instantiate_scev_r): Likewise.
27412 (instantiate_scev): Likewise.
27413 (resolve_mixers): Likewise.
27415 2013-05-01 Vladimir Makarov <vmakarov@redhat.com>
27418 * lra-constraints.c (best_small_class_operands_num): Remove.
27419 (process_alt_operands): Remove small_class_operands_num. Take
27420 small classes operands into losers and only if the operand is not
27421 matched. Modify debugging output.
27422 (curr_insn_transform): Remove best_small_class_operands_num.
27425 2013-05-01 James Greenhalgh <james.greenhalgh@arm.com>
27427 * config/aarch64/aarch64-builtins.c
27428 (aarch64_gimple_fold_builtin.c): Fold more modes for reduc_splus_.
27429 * config/aarch64/aarch64-simd-builtins.def
27430 (reduc_splus_): Add new modes.
27431 (reduc_uplus_): New.
27432 * config/aarch64/aarch64-simd.md (aarch64_addvv4sf): Remove.
27433 (reduc_uplus_v4sf): Likewise.
27434 (reduc_splus_v4sf): Likewise.
27435 (aarch64_addv<mode>): Likewise.
27436 (reduc_uplus_<mode>): Likewise.
27437 (reduc_splus_<mode>): Likewise.
27438 (aarch64_addvv2di): Likewise.
27439 (reduc_uplus_v2di): Likewise.
27440 (reduc_splus_v2di): Likewise.
27441 (aarch64_addvv2si): Likewise.
27442 (reduc_uplus_v2si): Likewise.
27443 (reduc_splus_v2si): Likewise.
27444 (reduc_<sur>plus_<mode>): New.
27445 (reduc_<sur>plus_v2di): Likewise.
27446 (reduc_<sur>plus_v2si): Likewise.
27447 (reduc_<sur>plus_v4sf): Likewise.
27448 (aarch64_addpv4sf): Likewise.
27449 * config/aarch64/arm_neon.h
27450 (vaddv<q>_<s,u,f><8, 16, 32, 64): Rewrite using builtins.
27451 * config/aarch64/iterators.md (unspec): Remove UNSPEC_ADDV,
27452 add UNSPEC_SADDV, UNSPEC_UADDV.
27454 (sur): Add UNSPEC_SADDV, UNSPEC_UADDV.
27456 2013-05-01 James Greenhalgh <james.greenhalgh@arm.com>
27458 * config/aarch64/arm_neon.h
27459 (v<max,min><nm><q><v>_<sfu><8, 16, 32, 64>): Rewrite using builtins.
27461 2013-05-01 James Greenhalgh <james.greenhalgh@arm.com>
27463 * config/aarch64/aarch64-builtins
27464 (aarch64_gimple_fold_builtin): Fold reduc_<su><maxmin>_ builtins.
27466 2013-05-01 James Greenhalgh <james.greenhalgh@arm.com>
27468 * config/aarch64/aarch64-simd-builtins.def
27469 (reduc_smax_): New.
27470 (reduc_smin_): Likewise.
27471 (reduc_umax_): Likewise.
27472 (reduc_umin_): Likewise.
27473 (reduc_smax_nan_): Likewise.
27474 (reduc_smin_nan_): Likewise.
27477 (smax): Update for V2SF, V4SF and V2DF modes.
27480 (smin_nan): Likewise.
27481 * config/aarch64/aarch64-simd.md (<maxmin><mode>3): Rename to...
27482 (<su><maxmin><mode>3): ...This, refactor.
27483 (s<maxmin><mode>3): New.
27484 (<maxmin_uns><mode>3): Likewise.
27485 (reduc_<maxmin_uns>_<mode>): Refactor.
27486 (reduc_<maxmin_uns>_v4sf): Likewise.
27487 (reduc_<maxmin_uns>_v2si): Likewise.
27488 (aarch64_<fmaxmin><mode>: Remove.
27489 * config/aarch64/arm_neon.h (vmax<q>_f<32,64>): Rewrite to use
27491 (vmin<q>_f<32,64>): Likewise.
27492 * config/iterators.md (unspec): Add UNSPEC_FMAXNMV, UNSPEC_FMINNMV.
27494 (su): Add mappings for smax, smin, umax, umin.
27496 (FMAXMINV): Add UNSPEC_FMAXNMV, UNSPEC_FMINNMV.
27497 (FMAXMIN): Rename as...
27498 (FMAXMIN_UNS): ...This.
27500 (fmaxminv): Likewise.
27501 (fmaxmin): Likewise.
27503 (maxmin_uns_op): Likewise.
27505 2013-05-01 James Greenhalgh <james.greenhalgh@arm.com>
27507 * config/aarch64/arm_neon.h
27508 (vac<ge, gt><sd>_f<32, 64>): Rename to...
27509 (vca<ge, gt><sd>_f<32, 64>): ...this, reimpliment in C.
27510 (vca<ge, gt, lt, le><q>_f<32, 64>): Reimpliment in C.
27512 2013-05-01 James Greenhalgh <james.greenhalgh@arm.com>
27514 * config/aarch64/aarch64-simd.md (*aarch64_fac<optab><mode>): New.
27515 * config/aarch64/iterators.md (FAC_COMPARISONS): New.
27517 2013-05-01 James Greenhalgh <james.greenhalgh@arm.com>
27519 * config/aarch64/aarch64-simd.md
27520 (vcond<mode>_internal): Handle special cases for constant masks.
27521 (vcond<mode><mode>): Allow nonmemory_operands for outcome vectors.
27522 (vcondu<mode><mode>): Likewise.
27523 (vcond<v_cmp_result><mode>): New.
27525 2013-05-01 James Greenhalgh <james.greenhalgh@arm.com>
27527 * config/aarch64/aarch64-builtins.c (BUILTIN_VALLDI): Define.
27528 (aarch64_fold_builtin): Add folding for cm<eq,ge,gt,tst>.
27529 * config/aarch64/aarch64-simd-builtins.def
27530 (cmeq): Update to BUILTIN_VALLDI.
27535 * config/aarch64/arm_neon.h
27536 (vc<eq, lt, le, gt, ge, tst><z><qsd>_<fpsu><8,16,32,64>): Remap
27537 to builtins or C as appropriate.
27539 2013-05-01 James Greenhalgh <james.greenhalgh@arm.com>
27541 * config/aarch64/aarch64-simd-builtins.def (cmhs): Rename to...
27543 (cmhi): Rename to...
27545 * config/aarch64/aarch64-simd.md
27546 (simd_mode): Add SF.
27547 (aarch64_vcond_internal): Use new names for unsigned comparison insns.
27548 (aarch64_cm<optab><mode>): Rewrite to not use UNSPECs.
27549 * config/aarch64/aarch64.md (*cstore<mode>_neg): Rename to...
27550 (cstore<mode>_neg): ...This.
27551 * config/aarch64/iterators.md
27553 (unspec): Remove UNSPEC_CM<EQ, LE, LT, GE, GT, HS, HI, TST>.
27554 (COMPARISONS): New.
27555 (UCOMPARISONS): Likewise.
27556 (optab): Add missing comparisons.
27562 (VCMP_S): Likewise.
27563 (VCMP_U): Likewise.
27564 (V_cmp_result): Add DF, SF modes.
27565 (v_cmp_result): Likewise.
27567 (vmtype): Likewise.
27568 * config/aarch64/predicates.md (aarch64_reg_or_fp_zero): New.
27570 2013-05-01 Greta Yorsh <Greta.Yorsh@arm.com>
27572 * config/arm/thumb2.md (thumb2_smaxsi3,thumb2_sminsi3): Convert
27573 define_insn to define_insn_and_split.
27574 (thumb32_umaxsi3,thumb2_uminsi3): Likewise.
27575 (thumb2_negdi2,thumb2_abssi2,thumb2_neg_abssi2): Likewise.
27576 (thumb2_mov_scc,thumb2_mov_negscc,thumb2_mov_notscc): Likewise.
27577 (thumb2_movsicc_insn,thumb2_and_scc,thumb2_ior_scc): Likewise.
27578 (thumb2_negscc): Likewise.
27580 2013-04-30 Greta Yorsh <Greta.Yorsh@arm.com>
27582 * config/arm/thumb2.md (thumb2_incscc, thumb2_decscc): Delete.
27584 2013-04-30 Greta Yorsh <Greta.Yorsh@arm.com>
27586 * config/arm/thumb2.md: Remove trailing whitespaces.
27588 2013-04-30 Richard Sandiford <rsandifo@linux.vnet.ibm.com>
27590 * explow.c (plus_constant): Pass "mode" to immed_double_int_const.
27591 Use gen_int_mode rather than GEN_INT.
27593 2013-04-30 H.J. Lu <hongjiu.lu@intel.com>
27595 * value-prof.c (stream_in_histogram_value): Remove the strayed
27598 2013-04-30 Richard Biener <rguenther@suse.de>
27600 PR middle-end/57122
27601 * cfghooks.c (split_edge): Properly check for the loop latch edge.
27603 2013-04-30 Richard Biener <rguenther@suse.de>
27605 PR middle-end/57107
27606 * tree-eh.c (sink_clobbers): Preserve virtual SSA form.
27608 2013-04-30 Andrey Belevantsev <abel@ispras.ru>
27610 PR rtl-optimization/56957
27611 PR rtl-optimization/57105
27612 * sel-sched.c (move_op_orig_expr_found): Remove insn_emitted
27613 variable. Use just INSN_UID for determining whether an insn
27614 should be only disconnected from the insn stream.
27615 * sel-sched-ir.h (EXPR_WAS_CHANGED): Remove.
27617 2013-04-30 Jakub Jelinek <jakub@redhat.com>
27619 PR tree-optimization/57104
27620 * tsan.c (instrument_expr): Don't instrument accesses to
27621 DECL_HARD_REGISTER VAR_DECLs.
27623 2013-04-30 Richard Biener <rguenther@suse.de>
27625 * function.h (loops_for_fn): New inline function.
27626 (set_loops_for_fn): Likewise.
27627 * cfgloop.h (place_new_loop): Add struct function parameter.
27628 (get_loop): Likewise.
27629 (get_loops): Likewise.
27630 (number_of_loops): Likewise.
27631 (fel_next): Adjust.
27632 (fel_init): Likewise.
27633 * cfg.c (get_loop_copy): Adjust.
27634 * cfgloop.c (flow_loops_dump): Likewise.
27635 (record_loop_exits): Likewise.
27636 (verify_loop_structure): Likewise.
27637 * cfgloopanal.c (mark_irreducible_loops): Likewise.
27638 (estimate_reg_pressure_cost): Likewise.
27639 (mark_loop_exit_edges): Likewise.
27640 * cfgloopmanip.c (place_new_loop): Likewise.
27641 (add_loop): Likewise.
27642 (duplicate_loop): Likewise.
27643 * graph.c (draw_cfg_nodes): Likewise.
27644 * graphite-clast-to-gimple.c (translate_clast_user): Likewise.
27645 * graphite-sese-to-poly.c (build_scop_scattering): Likewise.
27646 (extract_affine_chrec): Likewise.
27647 (build_scop_iteration_domain): Likewise.
27648 * graphite.c (graphite_initialize): Likewise.
27649 * ira-build.c (create_loop_tree_nodes): Likewise.
27650 (more_one_region_p): Likewise.
27651 (rebuild_regno_allocno_maps): Likewise.
27652 (mark_loops_for_removal): Likewise.
27653 (mark_all_loops_for_removal): Likewise.
27654 (remove_unnecessary_regions): Likewise.
27655 (ira_build): Likewise.
27656 * ira-emit.c (setup_entered_from_non_parent_p): Likewise.
27657 * loop-init.c (fix_loop_structure): Likewise.
27658 (gate_rtl_move_loop_invariants): Likewise.
27659 (gate_rtl_unswitch): Likewise.
27660 (gate_rtl_unroll_and_peel_loops): Likewise.
27661 (rtl_doloop): Likewise.
27662 * lto-streamer-in.c (input_cfg): Likewise.
27663 * lto-streamer-out.c (output_cfg): Likewise.
27664 * modulo-sched.c (sms_schedule): Likewise.
27665 * predict.c (tree_estimate_probability): Likewise.
27666 (tree_estimate_probability_driver): Likewise.
27667 (estimate_loops): Likewise.
27668 * tree-cfg.c (fixup_loop_arrays_after_move): Likewise.
27669 (move_sese_region_to_fn): Likewise.
27670 (debug_loop_num): Likewise.
27671 * tree-chrec.c (chrec_evaluate): Likewise.
27672 (hide_evolution_in_other_loops_than_loop): Likewise.
27673 (chrec_component_in_loop_num): Likewise.
27674 (reset_evolution_in_loop): Likewise.
27675 (evolution_function_is_invariant_rec_p): Likewise.
27676 * tree-if-conv.c (main_tree_if_conversion): Likewise.
27677 * tree-inline.c (copy_loops): Likewise.
27678 (copy_cfg_body): Likewise.
27679 (tree_function_versioning): Likewise.
27680 * tree-loop-distribution.c (rdg_flag_loop_exits): Likewise.
27681 * tree-scalar-evolution.c (chrec_contains_symbols_defined_in_loop):
27683 (add_to_evolution_1): Likewise.
27684 (scev_const_prop): Likewise.
27685 * tree-scalar-evolution.h (get_chrec_loop): Likewise.
27686 * tree-ssa-loop-ch.c (copy_loop_headers): Likewise.
27687 * tree-ssa-loop-im.c (analyze_memory_references): Likewise.
27688 (tree_ssa_lim_initialize): Likewise.
27689 * tree-ssa-loop-manip.c (rewrite_into_loop_closed_ssa): Likewise.
27690 (verify_loop_closed_ssa): Likewise.
27691 * tree-ssa-loop.c (tree_ssa_loop_init): Likewise.
27692 (tree_ssa_loop_im): Likewise.
27693 (tree_ssa_loop_unswitch): Likewise.
27694 (tree_vectorize): Likewise.
27695 (check_data_deps): Likewise.
27696 (tree_ssa_loop_ivcanon): Likewise.
27697 (tree_ssa_loop_bounds): Likewise.
27698 (tree_complete_unroll): Likewise.
27699 (tree_complete_unroll_inner): Likewise.
27700 (tree_parallelize_loops): Likewise.
27701 (tree_ssa_loop_prefetch): Likewise.
27702 (tree_ssa_loop_ivopts): Likewise.
27703 * tree-ssa.c (execute_update_addresses_taken): Liekwise.
27704 * tree-vectorizer.c (vectorize_loops): Likewise.
27706 2013-04-29 Mike Frysinger <vapier@gentoo.org>
27708 * config/arm/bpabi.h (EABI_LINK_SPEC): Define.
27709 (BPABI_LINK_SPEC): Use new EABI_LINK_SPEC.
27710 * config/arm/linux-eabi.h (LINK_SPEC): Replace BE8_LINK_SPEC
27711 with EABI_LINK_SPEC.
27713 2013-04-29 Uros Bizjak <ubizjak@gmail.com>
27716 * config/i386/i386.md (*zero_extendsidi2): Add "!" to m->?*y
27719 2013-04-29 Vladimir Makarov <vmakarov@redhat.com>
27722 * lra-constraints.c (process_alt_operands): Discourage a bit more
27723 using memory for pseudos. Print cost dump for alternatives.
27724 Modify cost values for conflicts with early clobbers.
27725 (curr_insn_transform): Spill pseudos reassigned to NO_REGS.
27727 2013-04-29 Uros Bizjak <ubizjak@gmail.com>
27730 * config/i386/i386.c (ix86_expand_vec_perm): Validize constant memory.
27732 2013-04-29 Ian Bolton <ian.bolton@arm.com>
27734 * config/aarch64/aarch64.md (movsi_aarch64): Support LDR/STR
27735 from/to S register.
27736 (movdi_aarch64): Support LDR/STR from/to D register.
27738 2013-04-29 Ian Bolton <ian.bolton@arm.com>
27740 * common/config/aarch64/aarch64-common.c: Enable REE pass at O2
27741 or higher by default.
27743 2013-04-29 Richard Biener <rguenther@suse.de>
27745 PR middle-end/57075
27746 * tree-inline.c (copy_edges_for_bb): Still split the bbs,
27747 even if not adding abnormal edges for calls that can make
27750 2013-04-29 Richard Biener <rguenther@suse.de>
27752 PR middle-end/57103
27753 * tree-cfg.c (move_stmt_op): Fix condition under which to update
27755 (move_stmt_r): Remove redundant checking.
27757 2013-04-29 Teresa Johnson <tejohnson@google.com>
27760 * basic-block.h (apply_scale): New function.
27761 (apply_probability): Use apply_scale.
27762 * gimple-streamer-in.c (input_bb): Ditto.
27763 * lto-streamer-in.c (input_cfg): Ditto.
27764 * lto-cgraph.c (merge_profile_summaries): Ditto.
27765 * tree-optimize.c (execute_fixup_cfg): Ditto.
27766 * tree-inline.c (copy_bb): Update comment to use apply_scale.
27767 (copy_edges_for_bb): Ditto.
27768 (copy_cfg_body): Ditto.
27770 2013-04-29 Tom de Vries <tom@codesourcery.com>
27772 * tree-ssa-tail-merge.c (find_same_succ_bb): Skip loop latch bbs.
27773 (replace_block_by): Don't set LOOPS_NEED_FIXUP.
27774 (tail_merge_optimize): Handle current_loops == NULL.
27776 2013-04-26 Jeff Law <law@redhat.com>
27778 * tree-vrp.c (range_fits_type_p): Move to earlier point in file.
27779 (simplify_cond_using_ranges): Generalize code to simplify
27780 COND_EXPRs where one argument is a constant and the other
27781 is an SSA_NAME created by an integral type conversion.
27783 2013-04-29 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
27785 * config/arm/arm.md (store_minmaxsi): Use only when
27786 optimize_insn_for_size_p.
27788 2013-04-29 Christian Bruel <christian.bruel@st.com>
27791 * sh.md (tstsi_t_zero_extract_eq): Set mode for operand 0.
27793 2013-04-29 Richard Biener <rguenther@suse.de>
27795 PR middle-end/57089
27796 * omp-low.c (expand_omp_taskreg): If the parent function had a broken
27797 loop tree make sure to schedule a fixup for the child as well.
27798 (expand_omp_for_generic): Properly add loops.
27799 (expand_omp_for_static_nochunk): Likewise.
27800 (expand_omp_for_static_chunk): Likewise.
27801 (expand_omp_for): For the degenerate case fixup loops.
27802 (expand_omp_sections): Fix default bb placement in loops.
27803 (expand_omp_atomic_pipeline): Properly add loops.
27805 2013-04-29 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
27807 * predict.c: Fix typo in comment above #define PROB_VERY_UNLIKELY.
27809 2013-04-29 Tom de Vries <tom@codesourcery.com>
27811 * tree-ssa-tail-merge.c: Update header comment.
27813 2013-04-29 James Greenhalgh <james.greenhalgh@arm.com>
27815 * config/aarch64/arm_neon.h
27816 (vcvt<sd>_f<32,64>_s<32,64>): Rewrite in C.
27817 (vcvt<q>_f<32,64>_s<32,64>): Rewrite using builtins.
27818 (vcvt_<high_>_f<32,64>_f<32,64>): Likewise.
27819 (vcvt<qsd>_<su><32,64>_f<32,64>): Likewise.
27820 (vcvta<qsd>_<su><32,64>_f<32,64>): Likewise.
27821 (vcvtm<qsd>_<su><32,64>_f<32,64>): Likewise.
27822 (vcvtn<qsd>_<su><32,64>_f<32,64>): Likewise.
27823 (vcvtp<qsd>_<su><32,64>_f<32,64>): Likewise.
27825 2013-04-29 James Greenhalgh <james.greenhalgh@arm.com>
27827 * config/aarch64/aarch64-simd.md
27828 (<optab><VDQF:mode><fcvt_target>2): New, maps to fix, fixuns.
27829 (<fix_trunc_optab><VDQF:mode><fcvt_target>2): New, maps to
27830 fix_trunc, fixuns_trunc.
27831 (ftrunc<VDQF:mode>2): New.
27832 * config/aarch64/iterators.md (optab): Add fix, fixuns.
27833 (fix_trunc_optab): New.
27835 2013-04-29 James Greenhalgh <james.greenhalgh@arm.com>
27837 * config/aarch64/aarch64-builtins.c
27838 (aarch64_builtin_vectorized_function): Vectorize over ifloorf,
27839 iceilf, lround, iroundf.
27841 2013-04-29 Uros Bizjak <ubizjak@gmail.com>
27844 * config/i386/i386.h (enum ix86_tune_indices)
27845 <X86_TUNE_INTER_UNIT_MOVES_TO_VEC, X86_TUNE_INTER_UNIT_MOVES_FROM_VEC>:
27846 New, split from X86_TUNE_INTER_UNIT_MOVES.
27847 <X86_TUNE_INTER_UNIT_MOVES>: Remove.
27848 (TARGET_INTER_UNIT_MOVES_TO_VEC): New define.
27849 (TARGET_INTER_UNIT_MOVES_FROM_VEC): Ditto.
27850 (TARGET_INTER_UNIT_MOVES): Remove.
27851 * config/i386/i386.c (initial_ix86_tune_features): Update.
27852 Disable X86_TUNE_INTER_UNIT_MOVES_FROM_VEC for m_ATHLON_K8 only.
27853 (ix86_expand_convert_uns_didf_sse): Use
27854 TARGET_INTER_UNIT_MOVES_TO_VEC instead of TARGET_INTER_UNIT_MOVES.
27855 (ix86_expand_vector_init_one_nonzero): Ditto.
27856 (ix86_expand_vector_init_interleave): Ditto.
27857 (inline_secondary_memory_needed): Return true for moves from SSE class
27858 registers for !TARGET_INTER_UNIT_MOVES_FROM_VEC targets and for moves
27859 to SSE class registers for !TARGET_INTER_UNIT_MOVES_TO_VEC targets.
27860 * config/i386/constraints.md (Yi, Ym): Depend on
27861 TARGET_INTER_UNIT_MOVES_TO_VEC.
27862 (Yj, Yn): New constraints.
27863 * config/i386/i386.md (*movdi_internal): Change constraints of
27864 operand 1 from Yi to Yj and from Ym to Yn.
27865 (*movsi_internal): Ditto.
27866 (*movdf_internal): Ditto.
27867 (*movsf_internal): Ditto.
27868 (*float<SWI48x:mode><X87MODEF:mode>2_1): Use
27869 TARGET_INTER_UNIT_MOVES_TO_VEC instead of TARGET_INTER_UNIT_MOVES.
27870 (*float<SWI48x:mode><X87MODEF:mode>2_1 splitters): Ditto.
27871 (floatdi<X87MODEF:mode>2_i387_with_xmm): Ditto.
27872 (floatdi<X87MODEF:mode>2_i387_with_xmm splitters): Ditto.
27873 * config/i386/sse.md (movdi_to_sse): Ditto.
27874 (sse2_stored): Change constraint of operand 1 from Yi to Yj.
27875 Use TARGET_INTER_UNIT_MOVES_FROM_VEC instead of
27876 TARGET_INTER_UNIT_MOVES.
27877 (sse_storeq_rex64): Change constraint of operand 1 from Yi to Yj.
27878 (sse_storeq_rex64 splitter): Use TARGET_INTER_UNIT_MOVES_FROM_VEC
27879 instead of TARGET_INTER_UNIT_MOVES.
27880 * config/i386/mmx.md (*mov<mode>_internal): Change constraint of
27881 operand 1 from Yi to Yj and from Ym to Yn.
27883 2013-04-29 James Greenhalgh <james.greenhalgh@arm.com>
27885 * config/aarch64/aarch64-simd-builtins.def (vec_unpacks_hi_): New.
27886 (float_truncate_hi_): Likewise.
27887 (float_extend_lo_): Likewise.
27888 (float_truncate_lo_): Likewise.
27889 * config/aarch64/aarch64-simd.md (vec_unpacks_lo_v4sf): New.
27890 (aarch64_float_extend_lo_v2df): Likewise.
27891 (vec_unpacks_hi_v4sf): Likewise.
27892 (aarch64_float_truncate_lo_v2sf): Likewise.
27893 (aarch64_float_truncate_hi_v4sf): Likewise.
27894 (vec_pack_trunc_v2df): Likewise.
27895 (vec_pack_trunc_df): Likewise.
27897 2013-04-29 James Greenhalgh <james.greenhalgh@arm.com>
27899 * config/aarch64/aarch64-builtins.c
27900 (aarch64_fold_builtin): Fold float conversions.
27901 * config/aarch64/aarch64-simd-builtins.def
27902 (floatv2si, floatv4si, floatv2di): New.
27903 (floatunsv2si, floatunsv4si, floatunsv2di): Likewise.
27904 * config/aarch64/aarch64-simd.md
27905 (<optab><fcvt_target><VDQF:mode>2): New, expands to float and floatuns.
27906 * config/aarch64/iterators.md (FLOATUORS): New.
27907 (optab): Add float, floatuns.
27908 (su_optab): Likewise.
27910 2013-04-29 James Greenhalgh <james.greenhalgh@arm.com>
27912 * config/aarch64/aarch64-builtins.c
27913 (aarch64_builtin_vectorized_function): Use new names for
27915 * config/aarch64/aarch64-simd-builtins.def (fcvtzs): Split as...
27916 (lbtruncv2sf, lbtruncv4sf, lbtruncv2df): ...This.
27917 (fcvtzu): Split as...
27918 (lbtruncuv2sf, lbtruncuv4sf, lbtruncuv2df): ...This.
27919 (fcvtas): Split as...
27920 (lroundv2sf, lroundv4sf, lroundv2df, lroundsf, lrounddf): ...This.
27921 (fcvtau): Split as...
27922 (lrounduv2sf, lrounduv4sf, lrounduv2df, lroundusf, lroundudf): ...This.
27923 (fcvtps): Split as...
27924 (lceilv2sf, lceilv4sf, lceilv2df): ...This.
27925 (fcvtpu): Split as...
27926 (lceiluv2sf, lceiluv4sf, lceiluv2df, lceilusf, lceiludf): ...This.
27927 (fcvtms): Split as...
27928 (lfloorv2sf, lfloorv4sf, lfloorv2df): ...This.
27929 (fcvtmu): Split as...
27930 (lflooruv2sf, lflooruv4sf, lflooruv2df, lfloorusf, lfloorudf): ...This.
27931 (lfrintnv2sf, lfrintnv4sf, lfrintnv2df, lfrintnsf, lfrintndf): New.
27932 (lfrintnuv2sf, lfrintnuv4sf, lfrintnuv2df): Likewise.
27933 (lfrintnusf, lfrintnudf): Likewise.
27934 * config/aarch64/aarch64-simd.md
27935 (l<fcvt_pattern><su_optab><fcvt_target><VDQF:mode>2): Convert to
27937 (aarch64_fcvt<frint_suffix><su><mode>): Remove.
27938 * config/aarch64/iterators.md (FCVT): Include UNSPEC_FRINTN.
27939 (fcvt_pattern): Likewise.
27941 2013-04-29 James Greenhalgh <james.greenhalgh@arm.com>
27943 * config/aarch64/aarch64-simd.md
27944 (l<fcvt_pattern><su_optab><fcvt_target><VDQF:mode>2): Rename to...
27945 (l<fcvt_pattern><su_optab><VDQF:mode><fcvt_target>2): ... This.
27947 2013-04-29 James Greenhalgh <james.greenhalgh@arm.com>
27949 * config/aarch64/arm_neon.h (vrndq<a,m,n,p>_f<32, 64>): Rename to...
27950 (vrnd<a,m,n,p>q_f<32, 64>): ...This, implement using builtin.
27951 (vrnd<a,m,n,p>_f32): Implement using builtins.
27952 (vrnd<i,x><q>_f<32, 64>): New.
27954 2013-04-29 James Greenhalgh <james.greenhalgh@arm.com>
27956 * config/aarch64/aarch64-builtins.c
27957 (aarch64_builtin_vectorized_function): Fold to standard pattern names.
27958 * config/aarch64/aarch64-simd-builtins.def (frintn): New.
27959 (frintz): Rename to...
27961 (frintp): Rename to...
27963 (frintm): Rename to...
27965 (frinti): Rename to...
27966 (nearbyint): ...this.
27967 (frintx): Rename to...
27969 (frinta): Rename to...
27971 * config/aarch64/aarch64-simd.md
27972 (aarch64_frint<frint_suffix><mode>): Delete.
27973 (<frint_pattern><mode>2): Convert to insn.
27974 * config/aarch64/aarch64.md (unspec): Add UNSPEC_FRINTN.
27975 * config/aarch64/iterators.md (FRINT): Add UNSPEC_FRINTN.
27976 (frint_pattern): Likewise.
27977 (frint_suffix): Likewise.
27979 2013-04-29 Richard Biener <rguenther@suse.de>
27981 PR tree-optimization/57081
27982 * loop-init.c: Include tree-flow.h.
27983 (loop_optimizer_finalize): Free number of iteration estimates.
27984 * Makefile.in (loop-init.o): Add $(TREE_FLOW_H) dependency.
27986 2013-04-29 Jakub Jelinek <jakub@redhat.com>
27988 PR tree-optimization/57083
27989 * tree-vrp.c (extract_range_from_binary_expr_1): For LSHIFT_EXPR with
27990 non-singleton shift count range, zero extend low_bound for uns case.
27992 * config/i386/predicates.md (general_vector_operand): New predicate.
27993 * config/i386/i386.c (const_vector_equal_evenodd_p): New function.
27994 (ix86_expand_mul_widen_evenodd): Force op1 resp. op2 into register
27995 if they aren't nonimmediate operands. If their original values
27996 satisfy const_vector_equal_evenodd_p, don't shift them.
27997 * config/i386/sse.md (mul<mode>3): Use general_vector_operand
27998 predicates. For the SSE4.1 case force operands[{1,2}] into registers
27999 if not nonimmediate_operand.
28000 (vec_widen_smult_even_v4si): Use nonimmediate_operand predicates
28001 instead of register_operand.
28002 (vec_widen_<s>mult_odd_<mode>): Use general_vector_operand predicates.
28004 2013-04-28 Eric Botcazou <ebotcazou@adacore.com>
28006 * stor-layout.c (finalize_size_functions): Allocate a structure and
28007 reset cfun before dumping the functions.
28009 2013-04-27 Jakub Jelinek <jakub@redhat.com>
28011 * config/i386/i386.c (ix86_expand_call): Make cregs_size unsigned.
28014 * config/i386/i386.c (ix86_expand_mul_widen_evenodd): Don't
28015 use xop_pmacsdqh if uns_p.
28016 * config/i386/sse.md (xop_rotr<mode>3): Fix up computation of
28017 the immediate rotate count.
28019 2013-04-26 Vladimir Makarov <vmakarov@redhat.com>
28021 * rtl.h (struct rtx_def): Add comment for field jump.
28022 (LRA_SUBREG_P): New macro.
28023 * recog.c (register_operand): Check LRA_SUBREG_P.
28024 * lra.c (lra): Add note at the end of RTL code. Align non-empty
28026 * lra-spills.c (lra_spill): Align stack after spilling pseudos.
28027 (lra_final_code_change): Skip subreg change for operators.
28028 * lra-eliminations.c (eliminate_regs_in_insn): Make return earlier
28029 if there are no operand changes.
28030 * lra-constraints.c (curr_insn_set): New.
28031 (match_reload): Set LRA_SUBREG_P.
28032 (emit_spill_move): Ditto.
28033 (check_and_process_move): Use curr_insn_set. Process only single
28034 set insns. Don't initialize sec_mem_p and change_p.
28035 (simplify_operand_subreg): Use LRA_SUBREG_P.
28036 (reg_in_class_p): New function.
28037 (process_alt_operands): Use it. Use #if HAVE_ATTR_enabled instead
28038 of #ifdef. Add code to remove cycling.
28039 (process_address): Check EXTRA_CONSTRAINT_STR. Process even if
28040 non-null disp. Reload inner instead of disp when base and index
28041 are null. Try to put lo_sum into register.
28042 (EBB_PROBABILITY_CUTOFF): Redefine probability in percents.
28043 (check_and_process_move): Move code for move cost check to
28044 simple_move_p. Remove equiv_substitution.
28045 (simple_move_p): New function.
28046 (curr_insn_transform): Initialize sec_mem_p and change_p. Set up
28047 curr_insn_set. Call check_and_process_move only for single set
28048 insns. Use the new function. Move call of check_and_process_move
28049 after operand equiv substitution and address process.
28051 2013-04-26 Jakub Jelinek <jakub@redhat.com>
28054 * tree-ssa-uninit.c (compute_uninit_opnds_pos): In functions
28055 with nonlocal goto receivers or returns twice calls, ignore
28056 unininitialized values from abnormal edges to nl goto receiver
28057 or returns twice call.
28059 2013-04-26 Jakub Jelinek <jakub@redhat.com>
28061 PR tree-optimization/57051
28062 * fold-const.c (const_binop): Handle VEC_LSHIFT_EXPR
28063 and VEC_RSHIFT_EXPR if shift count is a multiple of element
28066 2013-04-26 Richard Biener <rguenther@suse.de>
28068 * omp-low.c (finalize_task_copyfn): Do not drop PROP_loops.
28069 (expand_omp_taskreg): Likewise. Mark loops for fixup.
28070 * tree-cfg.c (move_block_to_fn): Remap loop fathers.
28071 (fixup_loop_arrays_after_move): New function.
28072 (move_sese_region_to_fn): Properly outline the loop tree parts
28073 of the SESE region.
28075 2013-04-26 Uros Bizjak <ubizjak@gmail.com>
28077 * config/i386/i386.md (type, unit): Fix long lines.
28079 2013-04-26 Richard Biener <rguenther@suse.de>
28081 * Makefile.in (lto-streamer-in.o): Add $(CFGLOOP_H) dependency.
28082 (lto-streamer-out.o): Likewise.
28083 * cfgloop.c (init_loops_structure): Export, add struct function
28084 argument and adjust.
28085 (flow_loops_find): Adjust.
28086 * cfgloop.h (enum loop_estimation): Add EST_LAST.
28087 (init_loops_structure): Declare.
28088 * lto-streamer-in.c: Include cfgloop.h.
28089 (input_cfg): Input the loop tree.
28090 * lto-streamer-out.c: Include cfgloop.h.
28091 (output_cfg): Output the loop tree.
28092 (output_struct_function_base): Do not drop PROP_loops.
28094 2013-03-26 Richard Biener <rguenther@suse.de>
28096 * tree-cfg.c (execute_build_cfg): Build the loop tree.
28097 (pass_build_cfg): Provide PROP_loops.
28098 (move_sese_region_to_fn): Remove loops that are outlined into fn
28100 * tree-inline.c: Include cfgloop.h.
28101 (initialize_cfun): Do not drop PROP_loops.
28102 (copy_loops): New function.
28103 (copy_cfg_body): Copy loop structure.
28104 (tree_function_versioning): Initialize destination loop tree.
28105 * tree-ssa-loop.c (pass_tree_loop_init): Do not provide PROP_loops.
28106 (pass_parallelize_loops): Do IL verification.
28107 * loop-init.c (loop_optimizer_init): Fixup loops if required.
28108 * tree-optimize.c (execute_fixup_cfg): If we need to cleanup
28109 the CFG make sure we fixup loops as well.
28110 * tree-ssa-tail-merge.c: Include cfgloop.h.
28111 (replace_block_by): When merging loop latches mark loops for fixup.
28112 * lto-streamer-out.c (output_struct_function_base): Drop
28113 PROP_loops for now.
28114 * tree-ssa-phiopt.c: Include tree-scalar-evolution.h.
28115 (tree_ssa_cs_elim): Initialize the loop optimizer and SCEV.
28116 * ipa-split.c: Include cfgloop.h.
28117 (split_function): Add the new return block to the loop tree root.
28118 * tree-cfgcleanup.c (remove_forwarder_block_with_phi): Return
28119 whether we have removed the forwarder block.
28120 (merge_phi_nodes): If we removed a forwarder mark loops for fixup.
28121 * cfgloop.h (place_new_loop): Declare.
28122 * cfgloopmanip.c (place_new_loop): Export.
28123 * Makefile.in (asan.o): Add $(CFGLOOP_H) dependency.
28124 (tree-switch-conversion.o): Likewise.
28125 (tree-complex.o): Likewise.
28126 (tree-inline.o): Likewise.
28127 (tree-ssa-tailmerge.o): Likewise.
28128 (ipa-split.o): Likewise.
28129 (tree-ssa-phiopt.o): Add $(SCEV_H) dependency.
28130 (tree-ssa-copy.o): Likewise.
28131 * tree-switch-conversion.c: Include cfgloop.h
28132 (process_switch): If we emit a bit-test cascade, schedule loops
28134 * tree-complex.c: Include cfgloop.h.
28135 (expand_complex_div_wide): Properly add new basic-blocks to loops.
28136 * asan.c: Include cfgloop.h.
28137 (create_cond_insert_point): Properly add new basic-blocks to
28138 loops, schedule loop fixup.
28139 * cfgloop.c (verify_loop_structure): Check that looks are not
28141 * omp-low.c (expand_parallel_call): Properly add new basic-blocks
28143 (expand_omp_for_generic): Likewise.
28144 (expand_omp_sections): Likewise.
28145 (expand_omp_atomic_pipeline): Schedule loops for fixup.
28146 * tree-ssa-copy.c: Include tree-scalar-evolution.h.
28147 (fini_copy_prop): Disable DCE in substitute_and_fold if SCEV
28148 is initialized, not when loops are present.
28149 * tree-parloops.c (parallelize_loops): Remove checking here.
28150 * passes.c (init_optimization_passes): Schedule a copy-propagation
28151 pass before complete unrolling of inner loops.
28153 2013-04-26 Jakub Jelinek <jakub@redhat.com>
28155 * Makefile.in (toplev.o): Depend on diagnostic-color.h.
28156 * diagnostic-color.c (should_colorize): Remove _WIN32 version.
28157 (colorize_init): Add argument to _WIN32 version.
28158 * toplev.c: Include diagnostic-color.h.
28159 (process_options): Default to -fdiagnostics-color=auto if
28160 GCC_COLORS env var is in the environment.
28161 * common.opt (fdiagnostics-color=): Add Var and Init.
28162 * doc/invoke.texi (-fdiagnostics-color=): Document that if GCC_COLORS
28163 env var is in the environment, the default is auto rather than never.
28165 * diagnostic.h (file_name_as_prefix): Add context argument.
28166 * diagnostic.c (file_name_as_prefix): Likewise. Colorize
28167 the string as locus.
28168 * langhooks.c (lhd_print_error_function): Adjust caller.
28170 2013-04-25 Lawrence Crowl <crowl@google.com>
28172 * var-tracking.c (shared_hash_def::htab):
28173 Change type to hash_table. Update dependent calls and types.
28175 2013-04-25 Lawrence Crowl <crowl@google.com>
28177 * Makefile.in: Update as needed below.
28179 * alloc-pool.c (static hash_table <alloc_pool_hasher> alloc_pool_hash):
28180 Move declaration to after the type's method definitons.
28182 * attribs.c (htab_t scoped_attributes::attribute_hash):
28183 Change type to hash_table. Update dependent calls and types.
28185 * bitmap.c (htab_t bitmap_desc_hash):
28186 Change type to hash_table. Update dependent calls and types.
28188 * cselib.c (htab_t cselib_hash_table):
28189 Change type to hash_table. Update dependent calls and types.
28191 * data-streamer.h (struct string_slot): Move to lto-streamer.h.
28192 (hash_string_slot_node): Move implementation into lto-streamer.h
28193 struct string_slot_hasher.
28194 (eq_string_slot_node): Likewise.
28196 * data-streamer-out.c: Update output_block::string_hash_table
28197 dependent calls and types.
28199 * dwarf2cfi.c (htab_t trace_index):
28200 Change type to hash_table. Update dependent calls and types.
28202 * dwarf2out.c (htab_t break_out_includes::cu_hash_table):
28203 Change type to hash_table. Update dependent calls and types.
28204 (htab_t copy_decls_for_unworthy_types::decl_table): Likewise.
28205 (htab_t optimize_external_refs::map): Likewise.
28206 (htab_t output_comp_unit::extern_map): Likewise.
28207 (htab_t output_comdat_type_unit::extern_map): Likewise.
28208 (htab_t output_macinfo::macinfo_htab): Likewise.
28209 (htab_t optimize_location_lists::htab): Likewise.
28210 (htab_t dwarf2out_finish::comdat_type_table): Likewise.
28212 * except.c (htab_t ehspec_hash_type):
28213 Change type to hash_table. Update dependent calls and types.
28214 (assign_filter_values::ttypes): Likewise.
28215 (assign_filter_values::ehspec): Likewise.
28216 (sjlj_assign_call_site_values::ar_hash): Likewise.
28217 (convert_to_eh_region_ranges::ar_hash): Likewise.
28219 * gcse.c (htab_t pre_ldst_table):
28220 Change type to hash_table. Update dependent calls and types.
28222 * ggc-common.c (htab_t saving_htab):
28223 Change type to hash_table. Update dependent calls and types.
28224 (htab_t loc_hash): Likewise.
28225 (htab_t ptr_hash): Likewise.
28226 (call_count): Rename ggc_call_count.
28227 (call_alloc): Rename ggc_call_alloc.
28228 (loc_descriptor): Rename make_loc_descriptor.
28229 (add_statistics): Rename ggc_add_statistics.
28231 * ggc-common.c (saving_htab):
28232 Change type to hash_table. Update dependent calls and types.
28234 * gimple.h (struct gimplify_ctx): Move to gimplify-ctx.h.
28235 (push_gimplify_context): Likewise.
28236 (pop_gimplify_context): Likewise.
28237 (struct gimple_temp_hash_elt): Added.
28238 (struct gimplify_hasher): Likewise.
28239 (struct gimplify_ctx.temp_htab):
28240 Change type to hash_table. Update dependent calls and types.
28242 * gimple-fold.c: Include gimplify-ctx.h.
28244 * gimple-ssa-strength-reduction.c (htab_t base_cand_map):
28245 Change type to hash_table. Update dependent calls and types.
28246 (base_cand_dump_callback): Rename to ssa_base_cand_dump_callback to
28247 avoid potential global name collision.
28249 * gimplify.c: Include gimplify-ctx.h.
28250 (struct gimple_temp_hash_elt): Move to gimplify-ctx.h.
28251 (htab_t gimplify_ctx::temp_htab):
28252 Update dependent calls and types for new type hash_table.
28253 (gimple_tree_hash): Move into gimplify_hasher in gimplify-ctx.h.
28254 (gimple_tree_eq): Move into gimplify_hasher in gimplify-ctx.h.
28256 * gimplify-ctx.h: New.
28257 (struct gimple_temp_hash_elt): Move from gimplify.c.
28258 (class gimplify_hasher): New.
28259 (struct gimplify_ctx): Move from gimple.h.
28260 (htab_t gimplify_ctx::temp_htab):
28261 Change type to hash_table. Update dependent calls and types.
28263 * graphite-clast-to-gimple.c: Include graphite-htab.h.
28264 (htab_t ivs_params::newivs_index):
28265 Change type to hash_table. Update dependent calls and types.
28266 (htab_t ivs_params::params_index): Likewise.
28267 (htab_t print_generated_program::params_index): Likewise.
28268 (htab_t gloog::newivs_index): Likewise.
28269 (htab_t gloog::params_index): Likewise.
28271 * graphite.c: Include graphite-htab.h.
28272 4htab_t graphite_transform_loops::bb_pbb_mapping):
28273 Change type to hash_table. Update dependent calls and types.
28275 * graphite-clast-to-gimple.h: (extern gloog) Move to graphite-htab.h.
28276 (bb_pbb_map_hash): Fold into bb_pbb_htab_type in graphite-htab.h.
28277 (eq_bb_pbb_map): Fold into bb_pbb_htab_type in graphite-htab.h.
28279 * graphite-dependences.c: Include graphite-htab.h.
28280 (loop_is_parallel_p): Change hash table type of parameter.
28282 * graphite-htab.h: New.
28283 (typedef hash_table <bb_pbb_hasher> bb_pbb_htab_type): New.
28284 (extern find_pbb_via_hash): Move from graphite-poly.h.
28285 (extern loop_is_parallel_p): Move from graphite-poly.h.
28286 (extern get_loop_body_pbbs): Move from graphite-poly.h.
28288 * graphite-poly.h (extern find_pbb_via_hash): Move to graphite-htab.h.
28289 (extern loop_is_parallel_p): Move to graphite-htab.h.
28290 (extern get_loop_body_pbbs): Move to graphite-htab.h.
28292 * haifa-sched.c (htab_t delay_htab):
28293 Change type to hash_table. Update dependent calls and types.
28294 (htab_t delay_htab_i2): Likewise.
28296 * ira-color.c (htab_t allocno_hard_regs_htab):
28297 Change type to hash_table. Update dependent calls and types.
28299 * ira-costs.c (htab_t cost_classes_htab):
28300 Change type to hash_table. Update dependent calls and types.
28302 * loop-invariant.c (htab_t merge_identical_invariants::eq):
28303 Change type to hash_table. Update dependent calls and types.
28305 * loop-iv.c (htab_t bivs):
28306 Change type to hash_table. Update dependent calls and types.
28308 * loop-unroll.c (htab_t opt_info::insns_to_split):
28309 Change type to hash_table. Update dependent calls and types.
28310 (htab_t opt_info::insns_with_var_to_expand): Likewise.
28312 * lto-streamer.h (struct string_slot): Move from data-streamer.h
28313 (struct string_slot_hasher): New.
28314 (htab_t output_block::string_hash_table):
28315 Change type to hash_table. Update dependent calls and types.
28317 * lto-streamer-in.c (freeing_string_slot_hasher): New.
28318 (htab_t file_name_hash_table):
28319 Change type to hash_table. Update dependent calls and types.
28321 * lto-streamer-out.c: Update output_block::string_hash_table dependent
28324 * lto-streamer.c (htab_t tree_htab):
28325 Change type to hash_table. Update dependent calls and types.
28327 * omp-low.c: Include gimplify-ctx.h.
28329 * passes.c (htab_t name_to_pass_map):
28330 Change type to hash_table. Update dependent calls and types.
28331 (pass_traverse): Rename to passes_pass_traverse.
28333 * plugin.c (htab_t event_tab):
28334 Change type to hash_table. Update dependent calls and types.
28336 * postreload-gcse.c (htab_t expr_table):
28337 Change type to hash_table. Update dependent calls and types.
28338 (dump_hash_table_entry): Rename dump_expr_hash_table_entry.
28340 * sese.c (debug_rename_map_1): Make extern.
28341 (htab_t copy_bb_and_scalar_dependences::rename_map):
28342 Change type to hash_table. Update dependent calls and types.
28344 * sese.h (extern debug_rename_map): Move to .c file.
28346 * store-motion.c (htab_t store_motion_mems_table):
28347 Change type to hash_table. Update dependent calls and types.
28349 * trans-mem.c (htab_t tm_new_mem_hash):
28350 Change type to hash_table. Update dependent calls and types.
28352 * tree-browser.c (htab_t TB_up_ht):
28353 Change type to hash_table. Update dependent calls and types.
28355 * tree-cfg.c (htab_t discriminator_per_locus):
28356 Change type to hash_table. Update dependent calls and types.
28358 * tree-complex.c: Include tree-hasher.h
28359 (htab_t complex_variable_components):
28360 Change type to hash_table. Update dependent calls and types.
28362 * tree-eh.c (htab_t finally_tree):
28363 Change type to hash_table. Update dependent calls and types.
28365 * tree-flow.h (extern int_tree_map_hash): Moved into tree-hasher
28366 struct int_tree_hasher.
28367 (extern int_tree_map_eq): Likewise.
28368 (uid_decl_map_hash): Removed.
28369 (extern decl_tree_map_eq): Likewise.
28371 * tree-hasher.h: New.
28372 (struct int_tree_hasher): New.
28373 (typedef int_tree_htab_type): New.
28375 * tree-inline.c: Include gimplify-ctx.h.
28377 * tree-mudflap.c: Include gimplify-ctx.h.
28379 * tree-parloops.c: Include tree-hasher.h.
28380 (htab_t eliminate_local_variables_stmt::decl_address):
28381 Change type to hash_table. Update dependent calls and types.
28382 (htab_t separate_decls_in_region::decl_copies): Likewise.
28384 * tree-scalar-evolution.c (htab_t resolve_mixers::cache):
28385 Change type to hash_table. Update dependent calls and types.
28387 * tree-sra.c (candidates):
28388 Change type to hash_table. Update dependent calls and types.
28390 * tree-ssa.c (int_tree_map_eq): Moved into struct int_tree_hasher
28392 (int_tree_map_hash): Likewise.
28394 * tree-ssa-dom.c (htab_t avail_exprs):
28395 Change type to hash_table. Update dependent calls and types.
28397 * tree-ssa-live.c (var_map_base_init::tree_to_index):
28398 Change type to hash_table. Update dependent calls and types.
28400 * tree-ssa-loop-ivopts.c (struct ivopts_data.inv_expr_tab):
28401 Change type to hash_table. Update dependent calls and types.
28403 * tree-ssa-phiopt.c (seen_ssa_names):
28404 Change type to hash_table. Update dependent calls and types.
28406 * tree-ssa-strlen.c (decl_to_stridxlist_htab):
28407 Change type to hash_table. Update dependent calls and types.
28409 * tree-ssa-uncprop.c (equiv):
28410 Change type to hash_table. Update dependent calls and types.
28412 2013-04-25 Jakub Jelinek <jakub@redhat.com>
28414 PR rtl-optimization/57003
28415 * regcprop.c (copyprop_hardreg_forward_1): If ksvd.ignore_set_reg,
28416 call note_stores with kill_clobbered_value callback again after
28417 killing regs_invalidated_by_call.
28419 2013-04-25 James Greenhalgh <james.greenhalgh@arm.com>
28421 * config/aarch64/aarch64-simd.md
28422 (aarch64_simd_bsl<mode>_internal): Rewrite RTL to not use UNSPEC_BSL.
28423 (aarch64_simd_bsl<mode>): Likewise.
28424 * config/aarch64/iterators.md (unspec): Remove UNSPEC_BSL.
28426 2013-04-25 Marek Polacek <polacek@redhat.com>
28428 PR tree-optimization/57066
28429 * builtins.c (fold_builtin_logb): Return +Inf for -Inf.
28431 2013-04-25 James Greenhalgh <james.greenhalgh@arm.com>
28433 * config/aarch64/aarch64-simd.md (neg<mode>2): Use VDQ iterator.
28435 2013-04-25 James Greenhalgh <james.greenhalgh@arm.com>
28437 * config/aarch64/aarch64-builtins.c
28438 (aarch64_fold_builtin): New.
28439 * config/aarch64/aarch64-protos.h (aarch64_fold_builtin): New.
28440 * config/aarch64/aarch64.c (TARGET_FOLD_BUILTIN): Define.
28441 * config/aarch64/aarch64-simd-builtins.def (abs): New.
28442 * config/aarch64/arm_neon.h
28443 (vabs<q>_<f32, 64>): Implement using __builtin_aarch64_fabs.
28445 2013-04-25 James Greenhalgh <james.greenhalgh@arm.com>
28446 Tejas Belagod <tejas.belagod@arm.com>
28448 * config/aarch64/aarch64-builtins.c
28449 (aarch64_gimple_fold_builtin): New.
28450 * config/aarch64/aarch64-protos.h (aarch64_gimple_fold_builtin): New.
28451 * config/aarch64/aarch64-simd-builtins.def (addv): New.
28452 * config/aarch64/aarch64-simd.md (addpv4sf): New.
28453 (addvv4sf): Update.
28454 * config/aarch64/aarch64.c (TARGET_GIMPLE_FOLD_BUILTIN): Define.
28456 2013-04-25 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
28458 * config/aarch64/aarch64.md
28459 (*cmp_swp_<optab><ALLX:mode>_shft_<GPI:mode>): New pattern.
28461 2013-04-25 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
28463 * config/aarch64/aarch64.md (*ngc<mode>): New pattern.
28464 (*ngcsi_uxtw): New pattern.
28466 2013-04-25 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
28467 Julian Brown <julian@codesourcery.com>
28469 * config/arm/arm.c (neon_builtin_type_mode): Add T_V4HF.
28470 (TB_DREG): Add T_V4HF.
28471 (v4hf_UP): New macro.
28472 (neon_itype): Add NEON_FLOAT_WIDEN, NEON_FLOAT_NARROW.
28473 (arm_init_neon_builtins): Handle NEON_FLOAT_WIDEN, NEON_FLOAT_NARROW.
28474 Handle initialisation of V4HF. Adjust initialisation of reinterpret
28476 (arm_expand_neon_builtin): Handle NEON_FLOAT_WIDEN, NEON_FLOAT_NARROW.
28477 (arm_vector_mode_supported_p): Handle V4HF.
28478 (arm_mangle_map): Handle V4HFmode.
28479 * config/arm/arm.h (VALID_NEON_DREG_MODE): Add V4HF.
28480 * config/arm/arm_neon_builtins.def: Add entries for
28481 vcvtv4hfv4sf, vcvtv4sfv4hf.
28482 * config/arm/neon.md (neon_vcvtv4sfv4hf): New pattern.
28483 (neon_vcvtv4hfv4sf): Likewise.
28484 * config/arm/neon-gen.ml: Handle half-precision floating point
28486 * config/arm/neon-testgen.ml: Handle Requires_FP_bit feature.
28487 * config/arm/arm_neon.h: Regenerate.
28488 * config/arm/neon.ml (type elts): Add F16.
28489 (type vectype): Add T_float16x4, T_floatHF.
28490 (type vecmode): Add V4HF.
28491 (type features): Add Requires_FP_bit feature.
28492 (elt_width): Handle F16.
28493 (elt_class): Likewise.
28494 (elt_of_class_width): Likewise.
28495 (mode_of_elt): Refactor.
28496 (type_for_elt): Handle F16, fix error messages.
28497 (vectype_size): Handle T_float16x4.
28498 (vcvt_sh): New function.
28499 (ops): Add entries for vcvt_f16_f32, vcvt_f32_f16.
28500 (string_of_vectype): Handle T_floatHF, T_float16, T_float16x4.
28501 (string_of_mode): Handle V4HF.
28502 * doc/arm-neon-intrinsics.texi: Regenerate.
28504 2013-04-25 James Greenhalgh <james.greenhalgh@arm.com>
28506 * config/aarch64/aarch64.c (aarch64_print_operand): Fix asm_fprintf
28507 format specifier in 'X' case.
28509 2013-04-25 Alan Modra <amodra@gmail.com>
28512 * config/rs6000/rs6000.md (rotlsi3_internal7): Rename to
28513 rotlsi3_internal7le and condition on !BYTES_BIG_ENDIAN.
28514 (rotlsi3_internal8be): New BYTES_BIG_ENDIAN insn.
28515 Repeat for many other rotate/shift and mask patterns using subregs.
28516 Name lshiftrt insns.
28517 (ashrdisi3_noppc64): Rename to ashrdisi3_noppc64be and condition
28518 on WORDS_BIG_ENDIAN.
28520 2013-04-25 Alan Modra <amodra@gmail.com>
28522 * config.gcc: Support little-endian powerpc-linux targets.
28523 * config/rs6000/linux.h (LINK_OS_LINUX_EMUL): Define.
28524 (LINK_OS_LINUX_SPEC): Define.
28525 * config/rs6000/linuxspe.h (TARGET_DEFAULT):
28526 Preserve MASK_LITTLE_ENDIAN.
28527 * config/rs6000/default64.h (TARGET_DEFAULT): Likewise.
28528 * config/rs6000/linuxaltivec.h (TARGET_DEFAULT): Likewise.
28529 * config/rs6000/linux64.h (OPTION_LITTLE_ENDIAN): Don't zero.
28530 (LINK_OS_LINUX_EMUL32, LINK_OS_LINUX_EMUL64): Define.
28531 (LINK_OS_LINUX_SPEC32, LINK_OS_LINUX_SPEC64): Use above.
28532 * config/rs6000/rs6000.c (output_toc): Don't use .tc for TARGET_ELF.
28533 Correct fp word order for little-endian. Don't shift toc entries
28534 smaller than a word for little-endian.
28535 * config/rs6000/rs6000.md (bswaphi2, bswapsi2 split): Comment.
28536 (bswapdi2 splits): Correct low-part subreg for little-endian.
28537 Remove wrong BYTES_BIG_ENDIAN tests, and rename vars to remove
28538 low/high where such is correct only for be.
28539 * config/rs6000/sysv4.h (SUBTARGET_OVERRIDE_OPTIONS): Allow
28540 little-endian for -mcall-aixdesc.
28542 2013-04-25 Alan Modra <amodra@gmail.com>
28544 * config/rs6000/rs6000.c (rs6000_secondary_reload_inner): Use
28545 replace_equiv_address_nv.
28547 2013-04-25 Alan Modra <amodra@gmail.com>
28549 * config/rs6000/rs6000.c (rs6000_emit_set_long_const): Tidy.
28551 2013-04-24 Vladimir Makarov <vmakarov@redhat.com>
28554 2013-04-24 Vladimir Makarov <vmakarov@redhat.com>
28555 * rtl.h (struct rtx_def): ...
28557 2013-04-24 Vladimir Makarov <vmakarov@redhat.com>
28559 PR rtl-optimizations/57046
28560 * lra-constraints (split_reg): Set up lra_risky_transformations_p
28561 for multi-reg splits.
28563 2013-04-24 H.J. Lu <hongjiu.lu@intel.com>
28565 * config/i386/x86-64.h (ASM_SPEC): Support -mx32.
28567 2013-04-24 Sterling Augustine <saugustine@google.com>
28569 * dwarf2out.c (skeleton_debug_str_hash, add_skeleton_AT_string)
28570 (comp_dir_string, debug_str_dwo_section): New.
28571 (DEBUG_STR_DWO_SECTION): Rename to ...
28572 (DEBUG_DWO_STR_SECTION): ... this.
28573 (DEBUG_NORM_STR_SECTION): Delete.
28574 (DEBUG_STR_SECTION, DEBUG_STR_SECTION_FLAGS): Edit definitions.
28575 (DEBUG_STR_DWO_SECTION_FLAGS): New.
28576 (find_AT_string): Move most logic to ...
28577 (find_AT_string_in_table): ... here. New.
28578 (add_top_level_skeleton_die_attrs): Call comp_dir_string and
28579 add_skeleton_AT_string. Delete logic.
28580 (output_skeleton_debug_sections): Remove call to
28581 add_top_level_skeleton_die_attrs.
28582 (add_comp_dir_attribute): Move logic to comp_dir_string.
28583 (dwarf2out_init): Initialize debug_str_dwo_section.
28584 (output_indirect_string): Call find_string_form.
28585 (output_indirect_strings): Rewrite.
28586 (prune_unused_types): Empty skeleton_debug_str_hash.
28587 Call get_skeleton_type_unit and add_top_level_skeleton_die_attrs.
28588 (dwarf2out_finish): Call output_indirect_strings.
28590 2013-04-24 Paolo Carlini <paolo.carlini@oracle.com>
28592 * doc/cpp.texi: Remove __GXX_EXPERIMENTAL_CXX1Y__.
28594 2013-04-24 Vladimir Makarov <vmakarov@redhat.com>
28596 * rtl.h (struct rtx_def): Add comment for field jump.
28597 (LRA_SUBREG_P): New macro.
28598 * recog.c (register_operand): Check LRA_SUBREG_P.
28599 * lra.c (lra): Add note at the end of RTL code. Align non-empty
28601 * lra-spills.c (lra_spill): Align stack after spilling pseudos.
28602 (lra_final_code_change): Skip subreg change for operators.
28603 * lra-eliminations.c (eliminate_regs_in_insn): Make return earlier
28604 if there are no operand changes.
28605 * lra-constraints.c (curr_insn_set): New.
28606 (match_reload): Set LRA_SUBREG_P.
28607 (emit_spill_move): Ditto.
28608 (check_and_process_move): Use curr_insn_set. Process only single
28609 set insns. Don't initialize sec_mem_p and change_p.
28610 (simplify_operand_subreg): Use LRA_SUBREG_P.
28611 (reg_in_class_p): New function.
28612 (process_alt_operands): Use it. Use #if HAVE_ATTR_enabled instead
28613 of #ifdef. Add code to remove cycling.
28614 (process_address): Check EXTRA_CONSTRAINT_STR. Process even if
28615 non-null disp. Reload inner instead of disp when base and index
28616 are null. Try to put lo_sum into register.
28617 (EBB_PROBABILITY_CUTOFF): Redefine probability in percents.
28618 (check_and_process_move): Move code for move cost check to
28619 simple_move_p. Remove equiv_substitution.
28620 (simple_move_p): New function.
28621 (curr_insn_transform): Initialize sec_mem_p and change_p. Set up
28622 curr_insn_set. Call check_and_process_move only for single set
28623 insns. Use the new function. Move call of check_and_process_move
28624 after operand equiv substitution and address process.
28626 2013-04-24 James Greenhalgh <james.greenhalgh@arm.com>
28628 * config/aarch64/arm_neon.h (vld1<q>_lane*): Fix constraints.
28629 (vld1<q>_dup_<sufp><8, 16, 32, 64>): Likewise.
28630 (vld1<q>_<sufp><8, 16, 32, 64>): Likewise.
28632 2013-04-24 Paolo Carlini <paolo.carlini@oracle.com>
28634 * doc/cpp.texi: Document __GXX_EXPERIMENTAL_CXX1Y__.
28636 2013-04-24 Marek Polacek <polacek@redhat.com>
28638 * tree-scalar-evolution.h (analyze_scalar_evolution): Remove.
28639 * tree-scalar-evolution.c (get_exit_conditions_rec): Likewise.
28640 (select_loops_exit_conditions): Likewise.
28641 (number_of_iterations_for_all_loops): Likewise.
28642 (analyze_scalar_evolution_for_all_loop_phi_nodes): Likewise.
28643 (scev_analysis): Likewise.
28645 2013-04-02 Catherine Moore <clm@codesourcery.com>
28646 Chao-ying Fu <fu@mips.com>
28648 * config/mips/micromips.md (jraddiusp): New pattern.
28649 * config/mips/mips.c (mips_expand_epilogue): Use the JRADDIUSP
28650 instruction if possible.
28652 2013-04-24 Alan Modra <amodra@gmail.com>
28654 * config/rs6000/driver-rs6000.c (elf_dcachebsize): Fix comment pasto.
28656 2013-04-24 Julian Brown <julian@codesourcery.com>
28657 Chung-Lin Tang <cltang@codesourcery.com>
28659 * dwarf2out.c (gen_enumeration_type_die): Fix HOST_BITS_PER_WIDE_INT
28660 dependency behavior in enumeration type DIE generation. Add TODO note
28661 to comments about future DW_FORM_sdata/udata re-work of related code.
28663 2013-04-23 Lawrence Crowl <crowl@google.com>
28665 * Makefile.in: Update as needed below.
28667 * hash-table.h (class hash_table):
28668 Correct many methods with parameter types compare_type to the correct
28669 value_type. (Correct code was unlikely to notice the change.)
28670 (hash_table::elements_with_deleted) New.
28671 (class hashtable::iterator): New.
28672 (hashtable::begin()): New.
28673 (hashtable::end()): New.
28674 (FOR_EACH_HASH_TABLE_ELEMENT): New.
28676 * statistics.c (statistics_hashes):
28677 Change type to hash_table. Update dependent calls and types.
28679 * tree-into-ssa.c (var_infos):
28680 Change type to hash_table. Update dependent calls and types.
28682 * tree-ssa-coalesce.c (struct coalesce_list_d.list):
28683 Change type to hash_table. Update dependent calls and types.
28685 * tree-ssa-loop-im.c (struct mem_ref.refs):
28686 Change type to hash_table. Update dependent calls and types.
28688 * tree-ssa-reassoc.c (undistribute_ops_list::ctable):
28689 Change type to hash_table. Update dependent calls and types.
28691 * tree-ssa-sccvn.c (vn_tables_s::nary):
28692 Change type to hash_table. Update dependent calls and types.
28693 (vn_tables_s::phis): Likewise.
28694 (vn_tables_s::references): Likewise.
28696 * tree-ssa-sccvn.h (vn_nary_op_eq): Update parameter and return types.
28697 (vn_reference_eq): Update parameter and return types.
28699 * tree-ssa-structalias.c (pointer_equiv_class_table):
28700 Change type to hash_table. Update dependent calls and types.
28701 (location_equiv_class_table): Likewise.
28703 * tree-vect-data-refs.c: Consequential changes for making
28704 peeling a hash_table.
28706 * tree-vect-loop.c (new_loop_vec_info): Dependent hash_table update.
28707 (destroy_loop_vec_info): Dependent hash_table update.
28709 * tree-vectorizer.h (peeling_htab):
28710 Change type to hash_table. Update dependent calls and types.
28712 2013-04-23 Shiva Chen <shiva0217@gmail.com>
28714 * lra-assigns.c (find_hard_regno_for): Use lra_reg_val_equal_p
28715 to check the register content is equal or not.
28716 * lra-constraints.c (match_reload): Use lra_assign_reg_val
28717 to assign register content record.
28718 * lra-eliminations.c (update_reg_eliminate): Use
28719 lra_update_reg_val_offset to update register content offset.
28720 * lra-int.h (struct lra_reg): Add offset member.
28721 (lra_reg_val_equal_p): New static inline function.
28722 (lra_update_reg_val_offset): New static inline function.
28723 (lra_assign_reg_val): New static inline function.
28724 * lra.c (lra_create_new_reg): Use lra_assign_reg_val
28725 to assign register content record.
28726 (initialize_lra_reg_info_element): Initial offset to zero.
28728 2013-04-23 Catherine Moore <clm@codesourcery.com>
28730 * config/mips/mips.md (*movhi_internal, *movqi_internal): New
28731 operands. Record compression.
28733 2013-04-23 Xinliang David Li <davidxl@google.com>
28735 * cfghhooks.c (dump_bb_for_graph): Support 'slim' graph dump.
28737 2013-04-23 Richard Biener <rguenther@suse.de>
28739 PR middle-end/57036
28740 * tree-inline.c (copy_edges_for_bb): Add can_make_abnormal_goto
28741 parameter, only add abnormal goto edges from the copied body
28742 if the call could perform abnormal gotos.
28743 (copy_cfg_body): Adjust.
28745 2013-04-23 Sofiane Naci <sofiane.naci@arm.com>
28747 * config/aarch64/aarch64.md (*mov<mode>_aarch64): Add simd attribute.
28749 2013-04-23 Andreas Schwab <schwab@linux-m68k.org>
28751 * coretypes.h (gimple_stmt_iterator): Add struct to make
28754 2013-04-23 Richard Biener <rguenther@suse.de>
28756 PR tree-optimization/57026
28757 * tree-vrp.c (simplify_conversion_using_ranges): Do not propagate
28758 from SSA names occuring in abnormal PHI nodes.
28760 2013-04-22 Andi Kleen <ak@linux.intel.com>
28762 * lto/lto.c (print_lto_report_1): Fix LTO report names.
28764 2013-04-22 Andi Kleen <ak@linux.intel.com>
28766 * lto/lto.c (print_lto_report_1): Declare early.
28767 (read_cgraph_and_symbols): Call print_lto_report_1 early.
28769 2013-04-22 Andi Kleen <ak@linux.intel.com>
28771 * common.opt (-flto-report-wpa): Add.
28772 * doc/invoke.texi (-flto-report-wpa): Add.
28773 * lto/lto.c (do_whole_program_analysis): Check for lto-report-wpa.
28776 2013-04-22 Xinliang David Li <davidxl@google.com>
28778 * graph.c (draw_cfg_node_succ_edges): Add branch probility as label.
28779 * cfghhooks.c (dump_bb_for_graph): Dump profile count and frquency.
28780 * Makefile.in: New dependency
28782 David Daney <ddaney.cavm@gmail.com>
28784 * configure.ac (gcc_cv_as_micromips_support): Use the
28785 --fatal-warnings option.
28786 * configure: Regenerate.
28788 2013-04-22 Marek Polacek <polacek@redhat.com>
28791 * tsan.c (instrument_expr): Don't instrument expression
28792 in case its size is zero.
28794 2013-04-22 Uros Bizjak <ubizjak@gmail.com>
28798 2013-03-17 Uros Bizjak <ubizjak@gmail.com>
28800 * config/alpha/alpha.c (TARGET_LRA_P): New define.
28802 2013-04-22 James Greenhalgh <james.greenhalgh@arm.com>
28804 * coretypes.h (gimple_stmt_iterator_d): Forward declare.
28805 (gimple_stmt_iterator): New typedef.
28806 * gimple.h (gimple_stmt_iterator): Rename to...
28807 (gimple_stmt_iterator_d): ... This.
28808 * doc/tm.texi.in (TARGET_FOLD_BUILTIN): Detail restriction that
28809 trees be valid for GIMPLE and GENERIC.
28810 (TARGET_GIMPLE_FOLD_BUILTIN): New.
28811 * gimple-fold.c (gimple_fold_call): Call target hook
28812 gimple_fold_builtin.
28813 * hooks.c (hook_bool_gsiptr_false): New.
28814 * hooks.h (hook_bool_gsiptr_false): New.
28815 * target.def (fold_stmt): New.
28816 * doc/tm.texi: Regenerate.
28818 2013-04-22 Vladimir Makarov <vmakarov@redhat.com>
28821 * lra-eliminations.c (mark_not_eliminable): Prevent elimination of
28822 a set sp if no stack realignment.
28824 2013-04-22 Nick Clifton <nickc@redhat.com>
28826 * config.gcc (tilegx-linux): Extend extra_objs rather than
28828 (tilepro-linux): Likewise.
28830 2013-04-22 James Greenhalgh <james.greenhalgh@arm.com>
28832 * config/aarch64/aarch64-builtins.c
28834 (CF0, CF1, CF2, CF3, CF4, CF10): New.
28835 (VAR<1-12>): Add MAP parameter.
28836 (BUILTIN_*): Likewise.
28837 * config/aarch64/aarch64-simd-builtins.def: Set MAP parameter.
28838 * config/aarch64/aarch64-simd.md (aarch64_sshl_n<mode>): Remove.
28839 (aarch64_ushl_n<mode>): Likewise.
28840 (aarch64_sshr_n<mode>): Likewise.
28841 (aarch64_ushr_n<mode>): Likewise.
28842 (aarch64_<maxmin><mode>): Likewise.
28843 (aarch64_sqrt<mode>): Likewise.
28844 * config/aarch64/arm_neon.h (vshl<q>_n_*): Use new builtin names.
28845 (vshr<q>_n_*): Likewise.
28847 2013-04-22 James Greenhalgh <james.greenhalgh@arm.com>
28849 * config/aarch64/aarch64-builtins.c
28850 (aarch64_simd_builtin_type_mode): Handle SF types.
28852 (BUILTIN_GPF): Define.
28853 (aarch64_init_simd_builtins): Handle SF types.
28854 * config/aarch64/aarch64-simd-builtins.def (frecpe): Add support.
28855 (frecps): Likewise.
28856 (frecpx): Likewise.
28857 * config/aarch64/aarch64-simd.md
28858 (simd_types): Update simd_frcp<esx> to simd_frecp<esx>.
28859 (aarch64_frecpe<mode>): New.
28860 (aarch64_frecps<mode>): Likewise.
28861 * config/aarch64/aarch64.md (unspec): Add UNSPEC_FRECP<ESX>.
28862 (v8type): Add frecp<esx>.
28863 (aarch64_frecp<FRECP:frecp_suffix><mode>): New.
28864 (aarch64_frecps<mode>): Likewise.
28865 * config/aarch64/iterators.md (FRECP): New.
28866 (frecp_suffix): Likewise.
28867 * config/aarch64/arm_neon.h
28868 (vrecp<esx><qsd>_<fd><32, 64>): Convert to using builtins.
28870 2013-04-22 Christian Bruel <christian.bruel@st.com>
28873 * config/sh/sh.h (enum reg_class): Remove DF_HI_REGS.
28874 (REG_CLASS_NAMES): Idem.
28875 (REG_CLASS_CONTENTS): Idem.
28876 (REGCLASS_HAS_FP_REG): Idem.
28877 * config/sh/sh.c (sh_cannot_change_mode_class): Idem.
28878 (sh_conditional_register_usage): Idem.
28880 2013-04-21 Jeff Law <law@redhat.com>
28882 * tree-ssa-forwprop.c (simplify_conversion_from_bitmask): New function.
28883 (ssa_forward_propagate_and_combine): Use it.
28885 2013-04-19 Vladimir Makarov <vmakarov@redhat.com>
28887 * lra.c: Update the flow chart diagram.
28889 2013-04-19 Vladimir Makarov <vmakarov@redhat.com>
28891 PR rtl-optimization/56847
28892 * lra-constraints.c (process_alt_operands): Discourage alternative
28893 with non-matche doffsettable memory constraint fro memory with
28896 2013-04-19 Richard Biener <rguenther@suse.de>
28898 PR tree-optimization/56982
28899 * builtins.def (BUILT_IN_LONGJMP): longjmp is not a leaf
28901 * gimplify.c (gimplify_call_expr): Notice special calls.
28902 (gimplify_modify_expr): Likewise.
28903 * tree-cfg.c (make_abnormal_goto_edges): Handle setjmp-like
28904 abnormal control flow receivers.
28905 (call_can_make_abnormal_goto): Handle cfun->calls_setjmp
28906 in the same way as cfun->has_nonlocal_labels.
28907 (gimple_purge_dead_abnormal_call_edges): Likewise.
28908 (stmt_starts_bb_p): Make setjmp-like abnormal control flow
28909 receivers start a basic-block.
28911 2013-04-19 Richard Biener <rguenther@suse.de>
28913 * tree-vectorizer.h (struct _slp_instance): Move load_permutation
28915 (struct _slp_tree): ... here. Make it a vector of unsigned ints.
28916 (SLP_INSTANCE_LOAD_PERMUTATION): Remove.
28917 (SLP_TREE_LOAD_PERMUTATION): Add.
28918 (vect_transform_slp_perm_load): Adjust prototype.
28919 * tree-vect-slp.c (vect_free_slp_tree): Adjust.
28920 (vect_free_slp_instance): Likewise.
28921 (vect_create_new_slp_node): Likewise.
28922 (vect_supported_slp_permutation_p): Remove.
28923 (vect_slp_rearrange_stmts): Adjust.
28924 (vect_supported_load_permutation_p): Likewise. Inline
28925 vect_supported_slp_permutation_p here.
28926 (vect_analyze_slp_instance): Compute load permutations per
28927 slp node instead of per instance.
28928 (vect_get_slp_defs): Adjust.
28929 (vect_transform_slp_perm_load): Likewise.
28930 (vect_schedule_slp_instance): Remove redundant code.
28931 (vect_schedule_slp): Remove hack for PR56270, add it ...
28932 * tree-vect-stmts.c (vectorizable_load): ... here, do not
28933 CSE loads for SLP. Adjust.
28935 2013-04-19 Greta Yorsh <Greta.Yorsh@arm.com>
28937 * config/arm/arm.c (load_multiple_sequence, ldm_stm_operation_p): Fix
28938 spelling in two comments.
28940 2013-04-19 Greta Yorsh <Greta.Yorsh@arm.com>
28943 * config/arm/arm.c (load_multiple_sequence): Require SP
28944 as base register for loads if SP is in the register list.
28946 2013-04-19 Martin Jambor <mjambor@suse.cz>
28948 PR tree-optimization/56718
28949 * ipa-cp.c (ipa_value_from_known_type_jfunc): Moved...
28950 * ipa-prop.c (ipa_binfo_from_known_type_jfunc): ...here, renamed
28951 and made public. Adjusted all callers.
28952 (ipa_intraprocedural_devirtualization): New function.
28953 * ipa-prop.h (ipa_binfo_from_known_type_jfunc): Declare.
28954 (ipa_intraprocedural_devirtualization): Likewise.
28955 * Makefile.in (tree-ssa-pre.o): Add ipa-prop.h to dependencies.
28957 2013-04-19 Richard Biener <rguenther@suse.de>
28959 PR tree-optimization/57000
28960 * tree-ssa-reassoc.c (pass_reassoc): Add TODO_update_ssa_only_virtuals.
28962 2013-04-19 Terry Guo <terry.guo@arm.com>
28964 * config/arm/cortex-m4-fpu.md (cortex_m4_v): Delete cpu unit.
28966 (cortex_m4_v_a, cortex_m4_v_b): ... new cpu units.
28967 (cortex_m4_v, cortex_m4_exa_va, cortex_m4_exb_vb): New reservations.
28968 (cortex_m4_fmacs): Use new reservations.
28969 (cortex_m4_f_load, cortex_m4_f_store): Likewise.
28971 2013-04-18 Vladimir Makarov <vmakarov@redhat.com>
28973 PR rtl-optimization/56999
28974 * lra-coalesce.c (coalescable_pseudo_p): Remove 2nd parameter and
28976 (lra_coalesce): Remove split_origin_bitmap and related code.
28977 * lra.c (lra): Coalesce after undoing inheritance. Recreate live
28978 ranges if necessary.
28980 2013-04-18 Uros Bizjak <ubizjak@gmail.com>
28982 * config/i386/i386.c (x86_64_ms_sysv_extra_clobbered_registers):
28984 (ix86_expand_call): Remove clobbered_registers array and use
28985 x86_64_ms_sysv_extra_clobbered_registers instead.
28986 * config/i386/i386.h (x86_64_ms_sysv_extra_clobbered_registers):
28988 * config/i386/predicates.md (call_rex64_ms_sysv_operation): New
28990 * config/i386/i386.md (*call_rex64_ms_sysv): Use
28991 call_rex64_ms_sysv_operation predicate. Remove explicit clobbers.
28992 (*call_value_rex64_ms_sysv): Ditto.
28994 2013-04-18 Cary Coutant <ccoutant@google.com>
28996 * dwarf2out.c (output_pubnames): Check die_perennial_p of
28997 parent instead of die_mark.
28999 2013-04-18 Diego Novillo <dnovillo@google.com>
29001 * gimple.c (create_gimple_tmp): New.
29002 (get_expr_type): New.
29003 (build_assign): New.
29004 (build_type_cast): New.
29005 * gimple.h (enum ssa_mode): Define.
29006 (gimple_seq_set_location): New.
29007 * asan.c (build_check_stmt): Change some gimple_build_* calls
29008 to use build_assign and build_type_cast.
29010 2013-04-18 Richard Biener <rguenther@suse.de>
29012 * tree-vect-data-refs.c (vect_analyze_group_access): Properly
29013 handle negative step. Remove redundant checks.
29014 (vect_create_data_ref_ptr): Avoid ICEs with non-constant steps.
29015 * tree-vect-stmts.c (vectorizable_load): Instead of asserting
29016 for negative step and grouped loads fail to vectorize.
29018 2013-04-18 Steven Bosscher <steven@gcc.gnu.org>
29020 * emit-rtl.c (reset_insn_used_flags): New function.
29021 (reset_all_used_flags): Use it.
29022 (verify_insn_sharing): New function.
29023 (verify_rtl_sharing): Fix verification for SEQUENCEs.
29025 2013-04-18 Jakub Jelinek <jakub@redhat.com>
29027 PR tree-optimization/56984
29028 * tree-vrp.c (register_edge_assert_for_2): For (x >> M) < N
29029 and (x >> M) >= N don't register any assertion if N << M is the
29032 2013-04-18 Steven Bosscher <steven@gcc.gnu.org>
29034 * lower-subreg.c (resolve_simple_move): If called self-recursive,
29035 do not delete_insn insns that have not yet been emitted, only
29036 unlink them with remove_insn.
29037 * df-scan.c (df_insn_delete): Revert r197492.
29039 2013-04-17 Steven Bosscher <steven@gcc.gnu.org>
29041 * emit-rtl.c (link_insn_into_chain): Handle chaining of SEQUENCEs.
29042 * reorg.c (emit_delay_sequence): Simplify with emit-rtl API.
29044 2013-04-17 Greta Yorsh <Greta.Yorsh@arm.com>
29046 * config/arm/arm.md (movsicc_insn): Convert define_insn into
29047 define_insn_and_split.
29048 (and_scc,ior_scc,negscc): Likewise.
29049 (cmpsi2_addneg, subsi3_compare): Convert to named patterns.
29051 2013-04-17 Greta Yorsh <Greta.Yorsh@arm.com>
29053 * config/arm/arm.c (use_return_insn): Return 0 for targets that
29054 can benefit from using a sequence of LDRD instructions in epilogue
29055 instead of a single LDM instruction.
29057 2013-04-17 Manuel López-Ibáñez <manu@gcc.gnu.org>
29060 * doc/extend.texi: Fix typo.
29062 2013-04-17 Richard Biener <rguenther@suse.de>
29064 * tree-vect-slp.c (vect_build_slp_tree_1): Split out from ...
29065 (vect_build_slp_tree): ... here.
29066 (vect_build_slp_tree_1): Compute which stmts of the SLP group
29067 match. Remove special-casing of mismatched complex loads.
29068 (vect_build_slp_tree): Based on the result from vect_build_slp_tree_1
29069 re-try the match with swapped commutative operands.
29070 (vect_supported_load_permutation_p): Remove special-casing of
29071 mismatched complex loads.
29072 (vect_analyze_slp_instance): Adjust.
29074 2013-04-17 Richard Biener <rguenther@suse.de>
29076 PR rtl-optimization/56921
29077 * cfgloop.h (struct loop): Add simple_loop_desc member.
29078 (struct niter_desc): Mark with GTY(()).
29079 (simple_loop_desc): Do not use aux field but simple_loop_desc.
29080 * loop-iv.c (get_simple_loop_desc): Likewise.
29081 (free_simple_loop_desc): Likewise.
29084 2013-04-16 Richard Biener <rguenther@suse.de>
29086 PR rtl-optimization/56921
29087 * loop-init.c (pass_rtl_move_loop_invariants): Add
29088 TODO_do_not_ggc_collect to todo_flags_finish.
29089 (pass_rtl_unswitch): Same.
29090 (pass_rtl_unroll_and_peel_loops): Same.
29091 (pass_rtl_doloop): Same.
29093 2013-04-17 Eric Botcazou <ebotcazou@adacore.com>
29095 * tree-ssa-alias.c (nonoverlapping_component_refs_of_decl_p): New.
29096 (decl_refs_may_alias_p): Add REF1 and REF2 parameters.
29097 Use nonoverlapping_component_refs_of_decl_p to disambiguate component
29099 (refs_may_alias_p_1): Adjust call to decl_refs_may_alias_p.
29100 * tree-streamer.c (record_common_node): Adjust reference in comment.
29102 2013-04-17 Terry Guo <terry.guo@arm.com>
29104 * config/arm/cortex-m4.md: Add a new bypass.
29106 2013-04-16 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
29108 * config/aarch64/aarch64.md (*adds_<optab><mode>_multp2):
29110 (*subs_<optab><mode>_multp2): New pattern.
29111 (*adds_<optab><ALLX:mode>_<GPI:mode>): New pattern.
29112 (*subs_<optab><ALLX:mode>_<GPI:mode>): New pattern.
29114 2013-04-16 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
29116 * config/aarch64/aarch64.md (*adds_mul_imm_<mode>): New pattern.
29117 (*subs_mul_imm_<mode>): New pattern.
29119 2013-04-16 David Edelsohn <dje.gcc@gmail.com>
29122 * config/rs6000/vsx.md (vsx_mov<mode>): Add j->r alternative.
29123 (vsx_movti_64bit): Change j->wa to O->wa. Add n->r alternative.
29124 (vsx_movti_32bit): Change j->wa to O->wa.
29126 2013-04-16 Richard Biener <rguenther@suse.de>
29128 PR rtl-optimization/56921
29129 * loop-init.c (pass_rtl_move_loop_invariants): Add
29130 TODO_do_not_ggc_collect to todo_flags_finish.
29131 (pass_rtl_unswitch): Same.
29132 (pass_rtl_unroll_and_peel_loops): Same.
29133 (pass_rtl_doloop): Same.
29135 2013-04-16 Greta Yorsh <Greta.Yorsh@arm.com>
29137 * config/arm/arm.c (emit_multi_reg_push): New declaration
29138 for an existing function.
29139 (arm_emit_strd_push): New function.
29140 (arm_expand_prologue): Used here.
29141 (arm_emit_ldrd_pop): New function.
29142 (arm_expand_epilogue): Used here.
29143 (arm_get_frame_offsets): Update condition.
29144 (arm_emit_multi_reg_pop): Add a special case for load of a single
29145 register with writeback.
29147 2013-04-16 Uros Bizjak <ubizjak@gmail.com>
29149 * doc/invoke.texi (i386 Option): Reword -mstack-protector-guard
29152 2013-04-16 Richard Biener <rguenther@suse.de>
29154 PR tree-optimization/56756
29155 * tree-ssa-loop-im.c (struct first_mem_ref_loc_1): New functor.
29156 (first_mem_ref_loc): New.
29157 (execute_sm): Place the load temporarily before a previous
29158 access instead of in the latch edge to ensure its SSA dependencies
29159 are defined at points dominating the load.
29161 2013-04-16 Steven Bosscher <steven@gcc.gnu.org>
29163 * cfgrtl.c (cfg_layout_merge_blocks): Revert r184005, implement
29164 correct fix by moving header and footer insn to the footer of
29165 the merged basic block. Clear BB_END of the merged-away block.
29167 PR middle-end/43631
29168 * emit-rtl.c (make_note_raw): New function.
29169 (link_insn_into_chain): New static inline function.
29170 (add_insn): Use it.
29171 (add_insn_before, add_insn_after): Factor insn chain linking code...
29172 (add_insn_before_nobb, add_insn_after_nobb): ...here, new functions
29173 using link_insn_into_chain.
29174 (note_outside_basic_block_p): New helper function for emit_note_after
29175 and emit_note_before.
29176 (emit_note_after): Use nobb variant of add_insn_after if the note
29177 should not be contained in a basic block.
29178 (emit_note_before): Use nobb variant of add_insn_before if the note
29179 should not be contained in a basic block.
29180 (emit_note_copy): Use make_note_raw.
29181 (emit_note): Likewise.
29182 * bb-reorder.c (insert_section_boundary_note): Remove hack to set
29183 BLOCK_FOR_INSN to NULL manually for NOTE_INSN_SWITCH_TEXT_SECTIONS.
29184 * jump.c (cleanup_barriers): Use reorder_insns_nobb to avoid making
29185 the moved barrier the tail of the basic block it follows.
29186 * var-tracking.c (pass_variable_tracking): Add TODO_verify_flow.
29188 2013-04-15 Jakub Jelinek <jakub@redhat.com>
29190 PR tree-optimization/56962
29191 * gimple-ssa-strength-reduction.c (record_increment): Only set
29192 initializer if gimple_assign_rhs_code is {,POINTER_}PLUS_EXPR and
29193 either rhs1 or rhs2 is equal to c->base_expr.
29195 2013-04-15 Richard Biener <rguenther@suse.de>
29197 PR tree-optimization/56933
29198 * tree-vectorizer.h (struct _stmt_vec_info): Remove read_write_dep
29200 (GROUP_READ_WRITE_DEPENDENCE): Remove.
29201 (STMT_VINFO_GROUP_READ_WRITE_DEPENDENCE): Likewise.
29202 * tree-vect-data-refs.c (vect_analyze_group_access): Move
29203 dependence check ...
29204 vect_analyze_data_ref_dependence (vect_analyze_data_ref_dependence):
29206 * tree-vect-stmts.c (new_stmt_vec_info): Do not initialize
29207 GROUP_READ_WRITE_DEPENDENCE.
29209 2013-04-15 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
29211 * emit-rtl.c (reset_all_used_flags): New function.
29212 (verify_rtl_sharing): Call reset_all_used_flags before and after
29213 performing the checks.
29215 2013-04-15 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
29217 * config/arm/arm.c (const_ok_for_dimode_op): Handle AND case.
29218 * config/arm/arm.md (*anddi3_insn): Change to insn_and_split.
29219 * config/arm/constraints.md (De): New constraint.
29220 * config/arm/neon.md (anddi3_neon): Delete.
29221 (neon_vand<mode>): Expand to standard anddi3 pattern.
29222 * config/arm/predicates.md (imm_for_neon_inv_logic_operand):
29223 Move earlier in the file.
29224 (neon_inv_logic_op2): Likewise.
29225 (arm_anddi_operand_neon): New predicate.
29227 2013-04-15 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
29229 * configure.ac (gcc_cv_ld_as_needed): Set
29230 gcc_cv_ld_as_needed_option, gcc_cv_no_as_needed_option.
29231 Use -z ignore, -z record on *-*-solaris2*.
29232 (HAVE_LD_AS_NEEDED): Update comment.
29233 (LD_AS_NEEDED_OPTION, LD_NO_AS_NEEDED_OPTION): Define.
29234 * configure: Regenerate.
29235 * config.in: Regenerate.
29236 * gcc.c (init_gcc_specs) [USE_LD_AS_NEEDED]: Use
29237 LD_AS_NEEDED_OPTION, LD_NO_AS_NEEDED_OPTION.
29238 * config/sol2.h [HAVE_LD_AS_NEEDED] (USE_LD_AS_NEEDED): Define.
29239 * doc/tm.texi.in (USE_LD_AS_NEEDED): Allow for --as-needed
29240 equivalents. Fix markup.
29241 * doc/tm.texi: Regenerate.
29243 2013-04-15 Andrew Hsieh <andrewhsieh.google.com>
29245 * config/i386/i386.opt: New option mstack-protector-guard=.
29246 * config/i386/i386-opts.h: Add enum stack_protector_guard.
29247 * config/i386/i386.h: Define TARGET_SSP_GLOBAL_GUARD and
29248 TARGET_SSP_TLS_GUARD.
29249 * config/i386/i386.c (ix86_option_override_internal): Set
29250 ix86_stack_protector_guard.
29251 * config/i386/i386.md (stack_protect_set): Enable for
29252 TARGET_SSP_TLS_GUARD only.
29253 (stack_protect_set_<mode>): Ditto.
29254 (stack_protect_test): Ditto.
29255 (stack_protect_test_<mode>): Ditto.
29256 * doc/invoke.texi (i386 Option): Document.
29258 2013-04-15 Eric Botcazou <ebotcazou@adacore.com>
29261 * config/sparc/sparc.c (enum sparc_mode_class): Add H_MODE value.
29262 (S_MODES): Set H_MODE bit.
29263 (SF_MODES): Set only S_MODE and SF_MODE bits.
29264 (DF_MODES): Set SF_MODES and only D_MODE and DF_MODE bits.
29265 (sparc_init_modes) <MODE_INT>: Set H_MODE bit for sub-word modes.
29266 <MODE_VECTOR_INT>: Do not set SF_MODE for sub-word modes.
29267 <MODE_FLOAT>: Likewise.
29269 2013-04-15 Joey Ye <joey.ye@arm.com>
29271 * config/arm/arm.c (thumb_far_jump_used_p): Fix typo in comments.
29273 2013-04-15 Joey Ye <joey.ye@arm.com>
29275 * config/arm/arm.c (thumb1_final_prescan_insn): Assert lr save
29277 (thumb_far_jump_used_p): Count instruction size and set
29280 2013-04-14 Eric Botcazou <ebotcazou@adacore.com>
29282 * reorg.c (fill_simple_delay_slots): Reindent block of code.
29283 * resource.c (mark_target_live_regs): Reformat conditional block.
29285 2013-04-13 Steven Bosscher <steven@gcc.gnu.org>
29287 * sched-deps.c (deps_analyze_insn): Do not check for EH_REGION insn
29288 notes, they are emitted only just before final.
29289 * sched-int.h: Include insn-attr.h before checking INSN_SCHEDULING.
29291 2013-04-13 Steven Bosscher <steven@gcc.gnu.org>
29293 * emit-rtl.c (remove_insn): Do not call df_insn_delete here.
29294 * cfgrtl.c (delete_insn): Call it here instead.
29295 * lra-spills.c (lra_final_code_change): Use delete_insn.
29296 * haifa-sched.c (sched_remove_insn): Likewise.
29297 * sel-sched-ir.c (return_nop_to_pool): Clear INSN_DELETED_P for nops
29298 returning to the nop pool.
29299 (sel_remove_insn): Simplify the only_disconnect case via remove_insn,
29300 use delete_insn for definitive removal. Clear BLOCK_FOR_INSN.
29302 2013-04-12 Steven Bosscher <steven@gcc.gnu.org>
29304 * doc/tm.texi.in (LOOP_ALIGN): Remove loop note references.
29305 * doc/tm.texi: Regenerated.
29307 2013-04-12 Uros Bizjak <ubizjak@gmail.com>
29309 * config/i386/i386.c (ix86_hard_regno_mode_ok): Use ANY_QI_REGNO_P in
29312 2013-04-12 Steven Bosscher <steven@gcc.gnu.org>
29314 * df-core.c (df_find_def): Compare register numbers.
29315 (df_find_use): Likewise.
29317 2013-04-12 Vladimir Makarov <vmakarov@redhat.com>
29320 * config/i386/i386.c (ix86_hard_regno_mode_ok): Add
29321 lra_in_progress for return.
29323 2013-04-12 Greta Yorsh <Greta.Yorsh@arm.com>
29325 * config/arm/arm.md (mov_scc,mov_negscc,mov_notscc): Convert
29326 define_insn into define_insn_and_split and emit movsicc patterns.
29328 2013-04-12 Greta Yorsh <Greta.Yorsh@arm.com>
29330 * config/arm/arm.c (gen_operands_ldrd_strd): Initialize "base".
29332 2013-04-12 Richard Biener <rguenther@suse.de>
29334 * tree-pass.h (TODO_do_not_ggc_collect): New.
29335 * passes.c (execute_one_ipa_transform_pass): Honor
29336 TODO_do_not_ggc_collect.
29337 (execute_one_pass): Likewise.
29340 2013-04-10 Richard Biener <rguenther@suse.de>
29342 * passes.c (init_optimization_passes): Remove reload pass.
29343 * ira.c (do_reload): Merge into ...
29345 (rest_of_handle_reload): Remove.
29346 (pass_reload): Likewise.
29347 * config/i386/i386.c (ix86_option_override): Refer to ira instead
29348 of reload for vzeroupper pass placement.
29350 2013-04-12 Jakub Jelinek <jakub@redhat.com>
29352 PR tree-optimization/56918
29353 PR tree-optimization/56920
29354 * fold-const.c (int_const_binop_1): Use op1.mul_with_sign (op2, ...)
29355 instead of op1 - op2. Pass 2 * TYPE_PRECISION (type) as second
29356 argument to rshift method. For 2 * HOST_BITS_PER_WIDE_INT precision
29357 use wide_mul_with_sign method.
29359 2013-04-12 Richard Biener <rguenther@suse.de>
29361 * gimple.c (is_gimple_constant): Vector CONSTRUCTORs should
29362 not be considered a gimple constant.
29364 2013-04-12 Marc Glisse <marc.glisse@inria.fr>
29366 * fold-const.c (const_binop): Handle vector shifts by a scalar.
29367 (fold_binary_loc): Call const_binop also for mixed vector-scalar
29370 2013-04-12 Manuel López-Ibáñez <manu@gcc.gnu.org>
29371 Jakub Jelinek <jakub@redhat.com>
29373 * opts.c: Include diagnostic-color.h.
29374 (common_handle_option): Handle OPT_fdiagnostics_color_.
29375 * Makefile.in (OBJS-libcommon): Add diagnostic-color.o.
29376 (diagnostic.o, opts.o, pretty-print.o): Depend on diagnostic-color.h.
29377 (diagnostic-color.o): New.
29378 * common.opt (fdiagnostics-color, fdiagnostics-color=): New options.
29379 (diagnostic_color_rule): New enum.
29380 * dwarf2out.c (gen_producer_string): Don't print -fdiagnostics-color*.
29381 * langhooks.c (lhd_print_error_function): Add %r "locus" and %R around
29382 the location string.
29383 * diagnostic.def: Add 3rd argument to DEFINE_DIAGNOSTIC_KIND macros,
29384 either NULL, or color kind.
29385 * diagnostic-color.c: New file.
29386 * diagnostic-color.h: New file.
29387 * diagnostic-core.h (DEFINE_DIAGNOSTIC_KIND): Adjust macro for 3
29389 * doc/invoke.texi (-fdiagnostics-color): Document.
29390 * pretty-print.h (pp_show_color): Define.
29391 (struct pretty_print_info): Add show_color field.
29392 * diagnostic.c: Include diagnostic-color.h.
29393 (diagnostic_build_prefix): Adjust for 3 argument DEFINE_DIAGNOSTIC_KIND
29394 macros. Colorize error:, warning: etc. strings and also the location
29396 (diagnostic_show_locus): Colorize the caret line.
29397 * pretty-print.c: Include diagnostic-color.h.
29398 (pp_base_format): Handle %r and %R format specifiers. Colorize strings
29399 inside of %< %> quotes or quoted through q format modifier.
29401 2013-04-12 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
29403 * ifcvt.c (end_ifcvt_sequence): Mark a and b for unsharing as well.
29405 2013-04-11 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
29407 * config/aarch64/aarch64.c (aarch64_select_cc_mode): Allow NEG
29408 code in CC_NZ mode.
29409 * config/aarch64/aarch64.md (*neg_<shift><mode>3_compare0): New
29412 2013-04-11 Marek Polacek <polacek@redhat.com>
29414 PR tree-optimization/48184
29415 * params.def (PARAM_ALIGN_THRESHOLD): Increase the minimum value to 1.
29417 2013-04-11 Eric Botcazou <ebotcazou@adacore.com>
29419 * stor-layout.c (skip_simple_constant_arithmetic): Move to...
29420 * tree.c (skip_simple_constant_arithmetic): ...here and make public.
29421 (skip_simple_arithmetic): Tidy up.
29422 * tree.h (skip_simple_constant_arithmetic): Declare.
29424 2013-04-11 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
29426 * config/aarch64/aarch64.h (REVERSIBLE_CC_MODE): Define.
29428 2013-04-11 Richard Biener <rguenther@suse.de>
29430 * tree-vect-loop.c (get_initial_def_for_induction): Properly
29431 generate vector constants.
29433 2013-04-11 Richard Biener <rguenther@suse.de>
29435 PR tree-optimization/56878
29436 * tree-flow.h (outermost_invariant_loop_for_expr): Declare.
29437 * tree-ssa-loop-ivopts.c (outermost_invariant_loop_for_expr):
29439 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment):
29440 Prefer to align the DR with the most invariant base address.
29442 2013-04-11 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
29444 * opts.c (common_handle_option): Fix formatting and add FALLTHRU
29447 2013-04-11 James Greenhalgh <james.greenhalgh@arm.com>
29449 * config/aarch64/aarch64-simd.md (aarch64_vcond_internal): Fix
29450 floating-point vector comparisons against 0.
29452 2013-04-11 Jakub Jelinek <jakub@redhat.com>
29454 PR tree-optimization/56899
29455 * fold-const.c (extract_muldiv_1): Apply distributive law
29456 only if TYPE_OVERFLOW_WRAPS (ctype).
29458 2013-04-11 Bin Cheng <bin.cheng@arm.com>
29461 * ira-costs.c (scan_one_insn): Check whether the source rtx of
29462 loading has side effect.
29464 2013-04-10 Steven Bosscher <steven@gcc.gnu.org>
29466 * config/sparc/sparc.c: Include tree-pass.h.
29467 (TARGET_MACHINE_DEPENDENT_REORG): Do not redefine.
29468 (sparc_reorg): Rename to sparc_do_work_around_errata. Move to
29469 head of file. Change return type. Split off gate function.
29470 (sparc_gate_work_around_errata): New function.
29471 (pass_work_around_errata): New pass definition.
29472 (insert_pass_work_around_errata) New pass insert definition to
29473 insert pass_work_around_errata just after delayed-branch scheduling.
29474 (sparc_option_override): Insert the pass.
29475 * config/sparc/t-sparc (sparc.o): Add TREE_PASS_H dependence.
29477 2013-04-10 David S. Miller <davem@davemloft.net>
29479 * config/sparc/sparc.h (ASM_CPU_SPEC): Pass -Av8 if -mcpu=supersparc
29480 or -mcpu=hypersparc.
29482 * target.def (cstore_mode): New hook.
29483 * target.h: Include insn-codes.h
29484 * targhooks.c: Likewise.
29485 (default_cstore_mode): New function.
29486 * targhooks.h: Declare it.
29487 * doc/tm.texi.in: New hook slot for TARGET_CSTORE_MODE.
29488 * doc/tm.texi: Rebuild.
29489 * expmed.c (emit_cstore): Obtain cstore boolean result mode using
29490 target hook, rather than inspecting the insn_data.
29491 * config/sparc/sparc.c (sparc_cstore_mode): New function.
29492 (TARGET_CSTORE_MODE): Redefine.
29493 (emit_scc_insn): When TARGET_ARCH64, emit new 64-bit boolean
29495 * config/sparc/predicates.md (cstore_result_operand): New special
29497 * config/sparc/sparc.md (cstoresi4, cstoredi4, cstore<F:mode>4):
29498 Use it for operand 0.
29499 (*seqsi_special): Rewrite using 'P' mode iterator on operand 0.
29500 (*snesi_special): Likewise.
29501 (*snesi_zero): Likewise.
29502 (*seqsi_zero): Likewise.
29503 (*sltu_insn): Likewise.
29504 (*sgeu_insn): Likewise.
29505 (*seqdi_special): Make operand 0 and comparison operation be of
29507 (*snedi_special): Likewise.
29508 (*snedi_special_vis3): Likewise.
29509 (*neg_snesi_zero): Rename to *neg_snesisi_zero.
29510 (*neg_snesi_sign_extend): Rename to *neg_snesidi_zero.
29511 (*snesi_zero_extend): Delete, covered by 'P' mode iterator.
29512 (*neg_seqsi_zero): Rename to *neg_seqsisi_zero.
29513 (*neg_seqsi_sign_extend): Rename to *neg_seqsidi_zero.
29514 (*seqsi_zero_extend): Delete, covered by 'P' mode iterator.
29515 (*sltu_extend_sp64): Likewise.
29516 (*neg_sltu_insn): Rename to *neg_sltusi_insn.
29517 (*neg_sltu_extend_sp64): Rename to *neg_sltudi_insn.
29518 (*sgeu_extend_sp64): Delete, covered by 'P' mode iterator.
29519 (*neg_sgeu_insn): Rename to *neg_sgeusi_insn.
29520 (*neg_sgeu_extend_sp64): Rename to *neg_sgeudi_insn.
29522 2013-04-10 Yufeng Zhang <yufeng.zhang@arm.com>
29524 * config/aarch64/aarch64.c (aarch64_print_extension): New function.
29525 (aarch64_start_file): Use the new function.
29527 2013-04-10 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
29528 Jason Merrill <jason@redhat.com>
29530 * common.opt: Add -gdwarf.
29531 * opts.c (common_handle_option): Handle it.
29532 * gcc.c (ASM_DEBUG_SPEC): Don't expect "-2" for DWARF.
29534 2013-04-10 Richard Biener <rguenther@suse.de>
29536 * passes.c (execute_todo): Do not call ggc_collect conditional here.
29537 (execute_one_ipa_transform_pass): But unconditionally here.
29538 (execute_one_pass): And here.
29539 (init_optimization_passes): Remove reload pass.
29540 * tree-pass.h (TODO_ggc_collect): Remove.
29541 (pass_reload): Likewise.
29542 * ira.c (do_reload): Merge into ...
29544 (rest_of_handle_reload): Remove.
29545 (pass_reload): Likewise.
29546 * config/i386/i386.c (ix86_option_override): Refer to ira instead
29547 of reload for vzeroupper pass placement.
29548 * <everywhere>: Remove TODO_ggc_collect from todo_flags_start
29549 and todo_flags_finish of all passes.
29551 2013-04-10 Richard Biener <rguenther@suse.de>
29553 * tree-vectorizer.h (struct _slp_oprnd_info): Remove
29554 first_const_oprnd field, rename first_def_type to first_op_type.
29555 * tree-vect-slp.c (vect_create_oprnd_info): Adjust.
29556 (vect_get_and_check_slp_defs): Always use the type of the
29557 operand. Allow mixed vect_external_def, vect_constant_def types.
29558 (vect_get_constant_vectors): Handle mixed vect_external_def,
29559 vect_constant_def types.
29561 2013-04-10 Joern Rennecke <joern.rennecke@embecosm.com>
29563 PR tree-optimization/55524
29564 * tree-ssa-math-opts.c
29565 (convert_mult_to_fma): Don't use an fms construct
29566 when we don't have an fms operation, but fnma, and it looks
29567 likely that we'll be able to use the latter.
29569 2013-04-10 Zhouyi Zhou <yizhouzhou@ict.ac.cn>
29571 * cif-code.def (OVERWRITABLE): Correct the comment for overwritable
29573 * ipa-inline.c (can_inline_edge_p): Let dump mechanism report the
29574 inline fail caused by overwritable functions.
29576 2013-04-10 Chung-Ju Wu <jasonwucj@gmail.com>
29578 * combine.c (simplify_compare_const): Use GET_MODE_MASK to filter out
29579 unnecessary bits in the constant power of two case.
29581 2013-04-10 Richard Biener <rguenther@suse.de>
29583 * tree-vect-slp.c (vect_get_and_check_slp_defs): Remove
29584 broken code swapping operands.
29585 (vect_build_slp_tree): Do not compute load permutations here.
29586 (vect_analyze_slp_instance): Compute load permutations here,
29587 after building the SLP tree.
29589 2013-04-09 Christian Bruel <christian.bruel@st.com>
29591 * config/sh/sh.md (barrier_align): Use next/prev_active_insn instead
29592 of next/prev_real_insn.
29594 2013-04-09 Jan Hubicka <jh@suse.cz>
29596 * ipa.c (cgraph_externally_visible_p, varpool_externally_visible_p):
29597 Drop aliased parameter.
29598 (function_and_variable_visibility): Do not handle alias pairs.
29599 * cgraph.c (varpool_externally_visible_p): Update prototype.
29600 * varpool.c (varpool_add_new_variable): Update.
29602 2013-04-09 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
29604 * config/arm/arm.md (minmax_arithsi_non_canon): New pattern.
29606 2013-04-09 Steven Bosscher <steven@gcc.gnu.org>
29608 * sched-vis.c (print_pattern): Print SEQUENCE of insns as insns.
29610 * config/sparc/sparc.md: Use define_c_enum for "unspec" and "unspecv".
29612 2013-04-09 Marek Polacek <polacek@redhat.com>
29614 PR tree-optimization/48762
29615 * params.def (PARAM_MAX_CSE_INSNS): Increase the minimum value to 1.
29617 2013-04-09 Richard Biener <rguenther@suse.de>
29619 * tree-vect-slp.c (vect_get_and_check_slp_defs): Remove code
29621 (vect_build_slp_tree): Likewise.
29622 (vect_analyze_slp_cost_1, vect_analyze_slp_cost): New functions
29623 calculating the cost of a SLP instance.
29624 (vect_analyze_slp_instance): Use it from here, after building
29627 2013-04-09 Jakub Jelinek <jakub@redhat.com>
29629 PR middle-end/56883
29630 * omp-low.c (expand_omp_for_generic, expand_omp_for_static_nochunk,
29631 expand_omp_for_static_chunk): Use simple_p = true in
29632 force_gimple_operand_gsi calls when assigning to addressable decls.
29634 2013-04-09 Jeff Law <law@redhat.com>
29636 * tree-vrp.c (simplify_cond_using_ranges): Simplify test of boolean
29637 when the boolean was created by converting a wider object which
29638 had a boolean range.
29640 2013-04-09 Richard Biener <rguenther@suse.de>
29642 * tree-vectorizer.h (slp_void_p): Remove.
29643 (slp_tree): Typedef before _slp_tree declaration.
29644 (struct _slp_tree): Use a vector of slp_tree as children.
29645 (vect_get_place_in_interleaving_chain): Remove.
29646 * tree-vect-data-refs.c (vect_get_place_in_interleaving_chain):
29648 * tree-vect-slp.c (vect_get_place_in_interleaving_chain): ... here
29650 (vect_free_slp_tree, vect_print_slp_tree, vect_mark_slp_stmts,
29651 vect_mark_slp_stmts_relevant, vect_slp_rearrange_stmts,
29652 vect_detect_hybrid_slp_stmts, vect_slp_analyze_node_operations,
29653 vect_schedule_slp_instance, vect_remove_slp_scalar_calls):
29654 Use slp_node instead of slp_void_p and adjust.
29656 2013-04-09 Richard Biener <rguenther@suse.de>
29658 * tree-ssa-loop-manip.c (rewrite_into_loop_closed_ssa): Avoid
29659 work that is not necessary.
29661 2013-04-09 Jakub Jelinek <jakub@redhat.com>
29663 PR tree-optimization/56854
29664 * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Don't
29665 forward into clobber stmts if it would change MEM_REF lhs into
29668 2013-04-09 Maxim Kuvyrkov <maxim@kugelworks.com>
29670 * tree.c (type_hash_lookup, type_hash_add): Make static.
29671 * tree.h (type_hash_lookup, type_hash_add): Remove global declarations.
29673 2013-04-09 Richard Biener <rguenther@suse.de>
29675 * tree.h (unsave_expr_now): Remove.
29676 * tree-inline.c (mark_local_for_remap_r): Remove.
29677 (unsave_expr_1): Likewise.
29678 (unsave_r): Likewise.
29679 (unsave_expr_now): Likewise.
29680 * tree-ssa-copy.c (replace_exp_1): Use unshare_expr.
29681 (propagate_tree_value): Likewise.
29683 2013-04-08 Steven Bosscher <steven@gcc.gnu.org>
29685 * doc/rtl.texi (sequence): Rewrite documentation to match the
29686 current use of SEQUENCE rtl objects.
29687 * rtl.def (SEQUENCE): Likewise.
29689 * doc/rtl.texi (NOTE_INSN_EH_REGION_BEG, NOTE_INSN_EH_REGION_END):
29690 Update documentation.
29691 (NOTE_INSN_LOOP_BEG, NOTE_INSN_LOOP_END, NOTE_INSN_LOOP_CONT,
29692 NOTE_INSN_LOOP_VTOP): Remove documentation for non-existing notes.
29694 * reg-notes.def (REG_EH_CONTEXT): Remove unused note.
29696 2013-04-08 Teresa Johnson <tejohnson@google.com>
29698 * basic-block.h (GCOV_COMPUTE_SCALE): Define.
29699 * ipa-inline-analysis.c (param_change_prob): Use helper rounding divide
29701 (estimate_edge_size_and_time): Add comment to suggest using rounding
29703 (estimate_node_size_and_time): Ditto.
29704 (remap_edge_change_prob): Use helper rounding divide methods.
29705 * value-prof.c (gimple_divmod_fixed_value_transform): Ditto.
29706 (gimple_mod_pow2_value_transform): Ditto.
29707 (gimple_mod_subtract_transform): Ditto.
29708 (gimple_ic_transform): Ditto.
29709 (gimple_stringops_transform): Ditto.
29710 * stmt.c (conditional_probability): Ditto.
29711 (emit_case_dispatch_table): Ditto.
29712 * lto-cgraph.c (merge_profile_summaries): Ditto.
29713 * tree-optimize.c (execute_fixup_cfg): Ditto.
29714 * cfgcleanup.c (try_forward_edges): Ditto.
29715 * cfgloopmanip.c (scale_loop_profile): Ditto.
29717 (duplicate_loop_to_header_edge): Ditto.
29718 (lv_adjust_loop_entry_edge): Ditto.
29719 * tree-vect-loop.c (vect_transform_loop): Ditto.
29720 * profile.c (compute_branch_probabilities): Ditto.
29721 * cfgbuild.c (compute_outgoing_frequencies): Ditto.
29722 * lto-streamer-in.c (input_cfg): Ditto.
29723 * gimple-streamer-in.c (input_bb): Ditto.
29724 * ipa-cp.c (update_profiling_info): Ditto.
29725 (update_specialized_profile): Ditto.
29726 * tree-vect-loop-manip.c (slpeel_tree_peel_loop_to_edge): Ditto.
29727 * cfg.c (update_bb_profile_for_threading): Add comment to suggest using
29729 * sched-rgn.c (compute_dom_prob_ps): Ditto.
29730 (compute_trg_info): Ditto.
29731 * cfgrtl.c (force_nonfallthru_and_redirect): Ditto.
29732 (purge_dead_edges): Ditto.
29733 * loop-unswitch.c (unswitch_loop): Ditto.
29734 * cgraphclones.c (cgraph_clone_edge): Ditto.
29735 (cgraph_clone_node): Ditto.
29736 * tree-inline.c (copy_bb): Ditto.
29737 (copy_edges_for_bb): Ditto.
29738 (initialize_cfun): Ditto.
29739 (copy_cfg_body): Ditto.
29740 (expand_call_inline): Ditto.
29742 2013-04-08 Kai Tietz <ktietz@redhat.com>
29744 * config/i386/cygwin.h (EXTRA_OS_CPP_BUILTINS): Replaced
29745 TARGET_CYGWIN64 by TARGET_64BIT.
29747 2013-04-08 Joern Rennecke <joern.rennecke@embecosm.com>
29749 * config/epiphany/epiphany.md (GPR_1): New constant.
29750 (define_expand "mov<mode>cc): FAIL if gen_compare_reg returned 0.
29751 * config/epiphany/epiphany.c (gen_compare_reg):
29752 For flag_finite_math_only, avoid swapping operands when r0 and/or r1
29753 is already in place.
29754 Use GPR_0 / GPR_1 instead of 0/1 for r0/r1 register numbers.
29755 Don't require being called during rtl expansion; If y operlaps r0,
29757 (epiphany_compute_frame_size, epiphany_expand_prologue): Use GPR_1.
29758 (epiphany_expand_epilogue): Likewise.
29760 * config/epiphany/epiphany.c (epiphany_select_cc_mode):
29761 Don't use CC_FPmode for ORDERED / UNORDERED.
29762 * config/epiphany/epiphany.md (cmpsf_ord): Make pattern unconditional.
29764 * config/epiphany/constraints.md (CnL): New constraint.
29765 * config/epiphany/epiphany.md (addsi3_i): Add r/r/CnL alternative.
29766 * config/epiphany/predicates.md (add_operand): Allow 1024.
29768 * config/epiphany/epiphany.md (logical_op): New code iterator.
29769 (op_mnc): New code attribute.
29770 (<op_mnc>_f, mov_f, cstoresi4): New patterns.
29771 (mov_f+1, mov_f+2): New peephole2 patterns.
29773 * config/epiphany/epiphany.md (mov_f+2): New peephole2 pattern.
29774 (cstoresi4): Also allow re-use of zero result when doing a NE
29775 comparison to a non-zero operand.
29776 Use (clobber (scratch)) for first insn if the gpr output is not needed.
29778 * config/epiphany/epiphany.md (<insn_opname>v2si3):
29779 Use gen_addsi3_i / gen_subsi3_i.
29781 2013-04-08 Jakub Jelinek <jakub@redhat.com>
29785 * tree-eh.c (optimize_clobbers): Only remove clobbers if bb doesn't
29786 contain anything but clobbers, at most one __builtin_stack_restore,
29787 optionally debug stmts and final resx, and if it has at least one
29788 incoming EH edge. Don't check for SSA_NAME on LHS of a clobber.
29789 (sink_clobbers): Don't check for SSA_NAME on LHS of a clobber.
29790 Instead of moving clobbers with MEM_REF LHS with SSA_NAME address
29791 which isn't defaut definition, remove them.
29792 (unsplit_eh, cleanup_empty_eh): Use single_{pred,succ}_{p,edge}
29793 instead of EDGE_COUNT comparisons or EDGE_{PRED,SUCC}.
29794 * tree-ssa-ccp.c (execute_fold_all_builtins): Remove clobbers
29795 with MEM_REF LHS with SSA_NAME address.
29797 2013-04-08 Jeff Law <law@redhat.com>
29799 * gimple.c (canonicalize_cond_expr_cond): Rewrite x ^ y into x != y.
29801 2013-04-08 Richard Biener <rguenther@suse.de>
29803 * gimple-pretty-print.c (debug_gimple_stmt): Do not print
29805 * tree-vect-loop.c (vect_determine_vectorization_factor): Dump
29806 determined vector type.
29807 (vect_analyze_data_refs): Likewise.
29808 (vect_get_new_vect_var): Adjust.
29809 (vect_create_destination_var): Preserve SSA name versions.
29810 * tree-vect-stmts.c (get_vectype_for_scalar_type_and_size): Do
29811 not dump anything here.
29813 2013-04-08 Joern Rennecke <joern.rennecke@embecosm.com>
29815 * config/epiphany/epiphany.h (struct GTY (()) machine_function):
29816 Add member lr_slot_known.
29817 * config/epiphany/epiphany.md (reload_insi_ra): Compute lr_slot_offs
29819 * config/epiphany/epiphany.c (epiphany_compute_frame_size):
29820 Remove code that sets lr_slot_offset according to what a previous
29821 version of epiphany_emit_save_restore used to do.
29822 (epiphany_emit_save_restore): When doing an lr save or restore,
29823 set/verify lr_slot_known and lr_slot_offset.
29825 2013-04-08 Xinyu Qi <xyqi@marvell.com>
29828 * config/arm/arm.h (REG_CLASS_CONTENTS): Include IWMMXT_GR_REGS
29831 2013-04-08 Richard Biener <rguenther@suse.de>
29833 * alias.c (find_base_term): Fix thinko in previous change.
29835 2013-04-08 Jakub Jelinek <jakub@redhat.com>
29837 * tree-loop-distribution.c (const_with_all_bytes_same): New function.
29838 (generate_memset_builtin): Only handle integer_all_onesp as -1 val if
29839 TYPE_PRECISION is equal to mode bitsize. Use const_with_all_bytes_same
29840 if possible to compute val.
29841 (classify_partition): Verify CONSTRUCTOR doesn't have any elts.
29842 For QImode integers don't require anything about precision. Use
29843 const_with_all_bytes_same to find out if the constant doesn't have
29844 repeated bytes in it.
29846 2013-04-08 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
29848 * config/s390/s390.c (s390_expand_insv): Only accept insertions
29851 2013-04-08 Marek Polacek <polacek@redhat.com>
29853 PR rtl-optimization/48182
29854 * params.def (PARAM_MIN_CROSSJUMP_INSNS): Increase the minimum
29857 2013-04-06 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
29860 * config/pa/pa.c (legitimize_pic_address): Before incrementing label
29861 nuses, make sure we have a label.
29863 2013-04-05 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
29866 * config/rs6000/rs6000.c (rs6000_emit_swdiv_high_precision): Remove.
29867 (rs6000_emit_swdiv_low_precision): Remove.
29868 (rs6000_emit_swdiv): Rewrite to handle between one and four
29869 iterations of Newton-Raphson generally; modify required number of
29870 iterations for some cases.
29871 * config/rs6000/rs6000.h (RS6000_RECIP_HIGH_PRECISION_P): Remove.
29873 2013-04-05 Steven Bosscher <steven@gcc.gnu.org>
29875 * bb-reorder.c (fix_crossing_unconditional_branches): Remove a
29876 set-but-unused variable.
29878 * cgraph.c (cgraph_release_function_body): Clear cfun->cfg to make
29879 basic blocks of released function bodies garbage-collectable.
29881 * ree.c (find_and_remove_re): Do not call df_finish_pass here.
29882 (struct rtl_opt_pass): Add TODO_df_finish.
29884 * rtl.def (DEFINE_SUBST, DEFINE_SUBST_ATTR): Add documentation.
29886 2013-04-05 Greta Yorsh <Greta.Yorsh@arm.com>
29888 * config/arm/constraints.md (q): New constraint.
29889 * config/arm/ldrdstrd.md: New file.
29890 * config/arm/arm.md (ldrdstrd.md) New include.
29891 (arm_movdi): Use "q" instead of "r" constraint
29892 for double-word memory access.
29893 (movdf_soft_insn): Likewise.
29894 * config/arm/vfp.md (movdi_vfp): Likewise.
29895 * config/arm/t-arm (MD_INCLUDES): Add ldrdstrd.md.
29896 * config/arm/arm-protos.h (gen_operands_ldrd_strd): New declaration.
29897 * config/arm/arm.c (gen_operands_ldrd_strd): New function.
29898 (mem_ok_for_ldrd_strd): Likewise.
29899 (output_move_double): Update assertion.
29901 2013-04-05 Greta Yorsh <Greta.Yorsh@arm.com>
29903 * config/arm/arm.md: Comment on splitting Thumb1 patterns.
29905 2013-04-05 Greta Yorsh <Greta.Yorsh@arm.com>
29907 * config/arm/arm.md (arm_smax_insn): Convert define_insn into
29908 define_insn_and_split.
29909 (arm_smin_insn,arm_umaxsi3,arm_uminsi3): Likewise.
29911 2013-04-05 Greta Yorsh <Greta.Yorsh@arm.com>
29913 * config/arm/arm.md (arm_ashldi3_1bit): Convert define_insn into
29914 define_insn_and_split.
29915 (arm_ashrdi3_1bit,arm_lshrdi3_1bit): Likewise.
29916 (shiftsi3_compare): New pattern.
29917 (rrx): New pattern.
29918 * config/arm/unspecs.md (UNSPEC_RRX): New.
29920 2013-04-05 Greta Yorsh <Greta.Yorsh@arm.com>
29922 * config/arm/arm.md (negdi_extendsidi): New pattern.
29923 (negdi_zero_extendsidi): Likewise.
29925 2013-04-05 Greta Yorsh <Greta.Yorsh@arm.com>
29927 * config/arm/arm.md (andsi_iorsi3_notsi): Convert define_insn into
29928 define_insn_and_split.
29929 (arm_negdi2,arm_abssi2,arm_neg_abssi2): Likewise.
29930 (arm_cmpdi_insn,arm_cmpdi_unsigned): Likewise.
29932 2013-04-05 Greta Yorsh <Greta.Yorsh@arm.com>
29934 * config/arm/arm.md (arm_subdi3): Convert define_insn into
29935 define_insn_and_split.
29936 (subdi_di_zesidi,subdi_di_sesidi): Likewise.
29937 (subdi_zesidi_di,subdi_sesidi_di,subdi_zesidi_zesidi): Likewise.
29939 2013-04-05 Greta Yorsh <Greta.Yorsh@arm.com>
29941 * config/arm/arm.md (subsi3_carryin): New pattern.
29942 (subsi3_carryin_const): Likewise.
29943 (subsi3_carryin_compare,subsi3_carryin_compare_const): Likewise.
29944 (subsi3_carryin_shift,rsbsi3_carryin_shift): Likewise.
29946 2013-04-05 Greta Yorsh <Greta.Yorsh@arm.com>
29948 * config/arm/arm.md (incscc,arm_incscc,decscc,arm_decscc): Delete.
29950 2013-04-05 Greta Yorsh <Greta.Yorsh@arm.com>
29952 * config/arm/arm.md (addsi3_carryin_<optab>): Set attribute predicable.
29953 (addsi3_carryin_alt2_<optab>,addsi3_carryin_shift_<optab>): Likewise.
29955 2013-04-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
29957 * config/arm/arm.c (arm_expand_builtin): Change fcode
29958 type to unsigned int.
29960 2013-04-05 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
29962 * doc/invoke.texi (ARM Options): Document cortex-a53 support.
29964 2013-04-04 Ian Lance Taylor <iant@google.com>
29966 * doc/standards.texi (Standards): The Go frontend supports the Go 1
29969 2013-04-04 Steven Bosscher <steven@gcc.gnu.org>
29971 PR middle-end/56729
29972 * df-scan.c (df_insn_delete): Disable failing assert.
29974 2013-04-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
29976 * config/arm/arm-protos.h (arm_builtin_vectorized_function):
29977 New function prototype.
29978 * config/arm/arm.c (TARGET_VECTORIZE_BUILTINS): Define.
29979 (TARGET_VECTORIZE_BUILTIN_VECTORIZED_FUNCTION): Likewise.
29980 (arm_builtin_vectorized_function): New function.
29982 2013-04-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
29984 * config/arm/arm_neon_builtins.def: New file.
29985 * config/arm/arm.c (neon_builtin_data): Move contents to
29986 arm_neon_builtins.def.
29987 (enum arm_builtins): Include neon builtin definitions.
29988 (ARM_BUILTIN_NEON_BASE): Move from enum to macro.
29989 * config/arm/t-arm (arm.o): Add dependency on arm_neon_builtins.def.
29991 2013-04-04 Marek Polacek <polacek@redhat.com>
29993 PR tree-optimization/48186
29994 * predict.c (maybe_hot_frequency_p): Return false if
29995 HOT_BB_FREQUENCY_FRACTION is 0.
29996 (cgraph_maybe_hot_edge_p): Likewise.
29998 2013-04-04 Richard Biener <rguenther@suse.de>
30000 PR tree-optimization/56826
30001 * tree-vect-slp.c (vect_build_slp_tree): Compute ncopies
30004 2013-04-04 Richard Biener <rguenther@suse.de>
30006 PR tree-optimization/56213
30007 * tree-vect-data-refs.c (vect_check_strided_load): Remove.
30008 (vect_analyze_data_refs): Allow all non-nested loads as strided loads.
30010 2013-04-04 Richard Biener <rguenther@suse.de>
30012 PR tree-optimization/56837
30013 * tree-loop-distribution.c (classify_partition): For non-zero
30014 values require that the value has the same precision as its
30015 mode to be useful as memset value.
30017 2013-04-03 Nick Clifton <nickc@redhat.com>
30019 * config/v850/v850e3v5.md (fmasf4): Use fmaf.s on E3V5 architectures.
30020 (fmssf4): Use fmsf.s on E3V5 architectures.
30021 (fnmasf4): Use fnmaf.s on E3V5 architectures.
30022 (fnmssf4): Use fnmsf.s on E3V5 architectures.
30024 2013-04-03 Jeff Law <law@redhat.com>
30026 * Makefile.in (lra-constraints.o): Depend on $(OPTABS_H).
30027 (lra-eliminations.o): Likewise.
30029 2013-04-03 Teresa Johnson <tejohnson@google.com>
30031 * gcov-io.c (compute_working_sets): Moved most of body of old
30032 compute_working_sets here from profile.c.
30033 * gcov-io.h (NUM_GCOV_WORKING_SETS): Moved here from profile.c.
30034 (gcov_working_set_t): Moved typedef here from basic-block.h
30035 (compute_working_set): Declare.
30036 * profile.c (NUM_GCOV_WORKING_SETS): Moved to gcov-io.h.
30037 (get_working_sets): Renamed from compute_working_set,
30038 replace most of body with call to new compute_working_sets.
30039 (get_exec_counts): Replace call to compute_working_sets
30040 to get_working_sets.
30041 * profile.h (get_working_sets): Renamed from compute_working_set.
30042 * lto-cgraph.c (input_symtab): Replace call to compute_working_sets
30043 to get_working_sets.
30044 * basic-block.h (gcov_working_set_t): Moved to gcov-io.h.
30045 * gcov-dump.c (dump_working_sets): New function.
30047 2013-04-03 Kenneth Zadeck <zadeck@naturalbridge.com>
30049 * hwint.c (sext_hwi, zext_hwi): New functions.
30050 * hwint.h (HOST_BITS_PER_HALF_WIDE_INT, HOST_HALF_WIDE_INT,
30051 HOST_HALF_WIDE_INT_PRINT, HOST_HALF_WIDE_INT_PRINT_C,
30052 HOST_HALF_WIDE_INT_PRINT_DEC, HOST_HALF_WIDE_INT_PRINT_DEC_C,
30053 HOST_HALF_WIDE_INT_PRINT_UNSIGNED, HOST_HALF_WIDE_INT_PRINT_HEX,
30054 HOST_HALF_WIDE_INT_PRINT_HEX_PURE): New symbols.
30055 (sext_hwi, zext_hwi): New functions.
30057 2013-04-03 Jeff Law <law@redhat.com>
30059 PR tree-optimization/56799
30060 * tree-ssa-dom.c (record_equivalences_from_incoming_edge): Bring
30061 back test for widening conversion erroneously dropped in prior change.
30063 2013-04-03 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
30066 * config/aarch64/aarch64.c (is_jump_table): Use next_active_insn
30067 instead of next_real_insn.
30069 2013-04-03 Marek Polacek <polacek@redhat.com>
30072 * tsan.c (instrument_func_exit): Allow BUILT_IN_RETURN functions.
30074 2013-04-03 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
30077 * config/arm/arm.c (is_jump_table): Use next_active_insn instead of
30079 (thumb1_output_casesi): Likewise.
30080 (thumb2_output_casesi): Likewise.
30082 2013-04-03 Richard Biener <rguenther@suse.de>
30084 PR tree-optimization/56817
30085 * tree-ssa-loop-ivcanon.c (tree_unroll_loops_completely):
30087 (tree_unroll_loops_completely_1): ... new function to manually
30088 walk the loop tree, properly defering outer loops of unrolled
30089 loops to later iterations.
30091 2013-04-03 Marc Glisse <marc.glisse@inria.fr>
30093 * tree-vect-stmts.c (vectorizable_store): Accept BIT_FIELD_REF.
30094 (vectorizable_load): Likewise.
30095 * tree-vect-slp.c (vect_build_slp_tree): Likewise.
30096 * tree-vect-data-refs.c (vect_create_data_ref_ptr): Handle VECTOR_TYPE.
30098 2013-04-03 Marc Glisse <marc.glisse@inria.fr>
30100 * tree-flow-inline.h (get_addr_base_and_unit_offset_1): Handle
30103 2013-04-03 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
30105 * config/spu/spu.c (emit_nop_for_insn): Handle JUMP_TABLE_DATA.
30107 2013-04-03 Bin Cheng <bin.cheng@arm.com>
30109 * rtl.h (AUTO_INC_DEC): Fix typo of HAVE_POST_MODIFY_DISP.
30111 2013-04-03 Marc Glisse <marc.glisse@inria.fr>
30113 PR tree-optimization/56790
30114 * fold-const.c (fold_ternary_loc) <VEC_COND_EXPR>: Add constant
30117 2013-04-03 Marc Glisse <marc.glisse@inria.fr>
30119 * simplify-rtx.c (simplify_binary_operation_1) <VEC_SELECT>:
30121 (simplify_ternary_operation) <VEC_MERGE>: Use unsigned HOST_WIDE_INT
30122 for masks. Test for side effects. Handle nested VEC_MERGE. Handle
30125 2013-04-03 Jakub Jelinek <jakub@redhat.com>
30128 * tree.h (force_folding_builtin_constant_p): New decl.
30129 * builtins.c (force_folding_builtin_constant_p): New variable.
30130 (fold_builtin_constant_p): Fold immediately also if
30131 force_folding_builtin_constant_p.
30133 2013-04-03 Richard Biener <rguenther@suse.de>
30135 PR tree-optimization/56812
30136 * tree-vect-data-refs.c (vect_slp_analyze_data_ref_dependence):
30137 DRs of the same interleaving chain are independent.
30139 2013-04-02 Jason Merrill <jason@redhat.com>
30141 * gdbinit.in (pbb): Use debug fn.
30143 2013-04-02 Lawrence Crowl <crowl@google.com>
30145 * sese.h (struct ivtype_map_elt_s): Remove unused.
30146 (extern debug_ivtype_map): Remove unused.
30147 (extern eq_ivtype_map_elts): Remove unused.
30148 * sese.c (debug_ivtype_map): Removed unused.
30149 (debug_ivtype_map_1): Removed unused.
30150 (debug_ivtype_elt): Remove unused.
30151 (eq_ivtype_map_elts): Remove unused.
30153 2013-04-02 Kai Tietz <ktietz@redhat.com>
30156 * config/i386/cygming.h (SUB_TARGET_RECORD_STUB): New sub-target macro.
30157 * config/i386/i386-protos.h (i386_pe_record_stub): Add new prototype.
30158 * config/i386/i386.c (legitimize_pe_coff_extern_decl): New static
30160 (legitimize_pe_coff_symbol): Likewise.
30161 (is_imported_p): New helper-function.
30162 (ix86_option_override_internal): Make MEDIUM_PIC the default code-model
30163 for Windows x64 targets.
30164 (ix86_expand_prologue): Optimize for pe-coff targets.
30165 (ix86_expand_split_stack_prologue): Adjust for pe-coff targets.
30166 (legitimate_pic_address_disp_p): Adjust for x64 pe-coff to support
30167 medium/large code-model.
30168 (legitimize_pic_address): Likewise.
30169 (legitimize_tls_address): Likewise.
30170 (ix86_expand_call): Likewise.
30171 (x86_output_mi_thunk): Likewise.
30172 (get_dllimport_decl): Add new beimport argument.
30173 (construct_plt_address): Don't assert for x64 pe-coff targets.
30174 * config/i386/i386.h (PIC_OFFSET_TABLE_REGNUM): Adjust for x64 pe-coff
30176 (SYMBOL_FLAG_STUBVAR): New macro.
30177 (SYMBOL_REF_STUBVAR_P): Likewise.
30178 * config/i386/winnt.c (stub_list): New structure.
30179 (stub_head): New local variable.
30180 (i386_pe_record_stub): New function.
30181 (i386_pe_file_end): Emit refptr-stubs.
30183 2013-04-02 Jakub Jelinek <jakub@redhat.com>
30185 PR rtl-optimization/56745
30186 * ifcvt.c (cond_exec_find_if_block): Don't try to optimize
30187 if then_bb has no successors and else_bb is EXIT_BLOCK_PTR.
30190 * tree-ssa-alias.c (stmt_kills_ref_p_1): If base != ref->base
30191 and both of them are MEM_REFs, just compare first argument for
30192 equality and attempt to deal even with differing offsets.
30195 * tree-cfg.c (verify_gimple_assign_single): Allow lhs
30196 of gimple_clobber_p to be MEM_REF.
30197 * gimplify.c (gimplify_modify_expr): Gimplify *to_p of
30198 an assignment from TREE_CLOBBER_P. Allow it to be MEM_REF
30199 after gimplification.
30200 * asan.c (get_mem_ref_of_assignment): Don't instrument
30201 gimple_clobber_p stmts.
30202 * tree-ssa-dse.c (dse_optimize_stmt): Allow DSE of
30203 gimple_clobber_p stmt if they have MEM_REF lhs and
30204 are dead because of another gimple_clobber_p stmt.
30205 * tree-ssa-live.c (clear_unused_block_pointer): Treat
30206 gimple_clobber_p stmts like debug stmts.
30207 (remove_unused_locals): Remove clobbers with MEM_REF lhs
30208 that refer to unused VAR_DECLs or uninitialized values.
30209 * tree-sra.c (sra_ipa_reset_debug_stmts): Also remove
30210 gimple_clobber_p stmts if they refer to removed parameters.
30211 (get_repl_default_def_ssa_name, sra_ipa_modify_expr): Fix up
30214 2013-04-02 Uros Bizjak <ubizjak@gmail.com>
30216 * config/i386/i386.md (*testqi_ext_3): Merge with *testqi_ext_3_rex64
30217 using SWI48 mode attribute.
30219 2013-04-02 Wei Mi <wmi@google.com>
30221 * config/i386/i386.c (ix86_rtx_costs): Set proper rtx cost for
30222 ashl<mode>3_mask, *<shift_insn><mode>3_mask and
30223 *<rotate_insn><mode>3_mask in i386.md.
30225 2013-04-02 Alexander Ivchenko <alexander.ivchenko@intel.com>
30227 * config.gcc (arm*-*-linux-*): Remove duplicate t-linux-android.
30229 2013-04-02 Richard Biener <rguenther@suse.de>
30231 PR tree-optimization/56778
30232 * tree-vect-data-refs.c (vect_analyze_data_ref_dependence):
30233 Runtime alias tests are not supported for gather loads.
30234 * tree-vect-loop-manip.c (vect_loop_versioning): Insert
30235 stmts referenced from SSA operands before updating SSA form.
30237 2013-04-02 Ian Caulfield <ian.caulfield@arm.com>
30238 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
30240 * config/arm/arm-arches.def (armv8-a): Default to cortex-a53.
30241 * config/arm/t-arm (MD_INCLUDES): Depend on cortex-a53.md.
30242 * config/arm/cortex-a53.md: New file.
30243 * config/arm/bpabi.h (BE8_LINK_SPEC): Handle cortex-a53.
30244 * config/arm/arm.md (generic_sched, generic_vfp): Handle cortex-a53.
30245 * config/arm/arm.c (arm_issue_rate): Likewise.
30246 * config/arm/arm-tune.md: Regenerate
30247 * config/arm/arm-tables.opt: Regenerate.
30248 * config/arm/arm-cores.def: Add cortex-a53.
30250 2013-04-02 Zhenqiang Chen <zhenqiang.chen@arm.com>
30252 * config/arm/uclinux-elf.h: Add %L to LINK_GCC_C_SEQUENCE_SPEC for
30255 2013-04-02 Sofiane Naci <sofiane.naci@arm.com>
30257 * config/aarch64/aarch64.md (*mov<mode>_aarch64): Add variants for
30258 scalar load/store operations using B/H registers.
30259 (*zero_extend<SHORT:mode><GPI:mode>2_aarch64): Likewise.
30261 2013-04-02 Sofiane Naci <sofiane.naci@arm.com>
30263 * config/aarch64/aarch64.md (*mov<mode>_aarch64): Add alternatives for
30265 * config/aarch64/aarch64.c
30266 (aarch64_simd_scalar_immediate_valid_for_move): New.
30267 * config/aarch64/aarch64-protos.h
30268 (aarch64_simd_scalar_immediate_valid_for_move): New.
30269 * config/aarch64/constraints.md (Dh, Dq): New.
30270 * config/aarch64/iterators.md (hq): New.
30272 2013-04-02 Eric Botcazou <ebotcazou@adacore.com>
30274 * reorg.c (get_branch_condition): Deal with conditional returns.
30275 (fill_simple_delay_slots): Remove dead code dealing with jumps.
30277 2013-04-01 Wei Mi <wmi@google.com>
30279 * config/i386/i386.md (*ashl<mode>3_mask): Rewrite as define_insn.
30280 Truncate operand 2 using %b asm operand modifier.
30281 (*<shift_insn><mode>3_mask): Ditto.
30282 (*<rotate_insn><mode>3_mask): Ditto.
30284 2013-04-01 Steven Bosscher <steven@gcc.gnu.org>
30286 PR middle-end/56798
30287 * cfgbuild.c (inside_basic_block_p): Restore check broken at r197234.
30289 2013-03-31 Kaz Kojima <kkojima@gcc.gnu.org>
30291 * config/sh/sh.md (casesi_worker_1): Use next_active_insn instead
30293 (casesi_worker_2, casesi_shift_media, casesi_load_media): Likewise.
30295 2013-03-30 Lawrence Crowl <crowl@google.com>
30297 * dse.c (clear_alias_sets): Remove never set.
30298 (disqualified_clear_alias_sets): Remove never set.
30299 (clear_alias_mode_pool): Remove never set.
30300 (dse_step0): Remove condition that is never true.
30301 (canon_address): Remove condition that is never true.
30302 (dse_step7): Remove condition that is never true.
30303 (rest_of_handle_dse): Remove condition that is never true.
30304 (rest_of_handle_dse::did_global): Remove never read from above.
30305 (dse_step2_spill): Remove never called from above.
30306 (dse_step5_spill): Remove never called from above.
30308 2013-03-30 Steven Bosscher <steven@gcc.gnu.org>
30310 * doc/md.texi (Standard Names) <casesi>: Update documentation for
30311 JUMP_TABLE_DATA changes.
30312 * doc/tm.texi.in (Dispatch Tables) <ASM_OUTPUT_CASE_LABEL>: Likewise.
30313 * doc/rtl.texi (Flags) <INSN_DELETED_P, SCHED_GROUP_P>: Likewise.
30314 (Insns) <jump_table_data>: New entry.
30315 * doc/tm.texi: Regenerate.
30317 * cfgrtl.c (fixup_reorder_chain): Do not emit barriers to BB_FOOTER.
30319 * postreload-gcse.c (bb_has_well_behaved_predecessors): Correct test
30320 for table jump at the end of a basic block using tablejump_p.
30321 * targhooks.c (default_invalid_within_doloop): Likewise.
30322 * config/rs6000/rs6000.c (TARGET_INVALID_WITHIN_DOLOOP): Remove
30323 target hook implementation that is identical to the default hook.
30324 (rs6000_invalid_within_doloop): Remove.
30326 * bb-reorder.c (fix_crossing_unconditional_branches): Remove set but
30327 unused variable from tablejump_p call.
30329 * rtl.def (JUMP_TABLE_DATA): New RTX_INSN object.
30330 * rtl.h (RTX_PREV, RTX_NEXT): Adjust for new JUMP_TABLE_DATA.
30331 (INSN_DELETED_P): Likewise.
30332 (emit_jump_table_data): New prototype.
30333 * gengtype.c (adjust_field_rtx_def): Handle JUMP_TABLE_DATA fields
30334 after 4th as unused.
30335 * print-rtl.c (print_rtl): Handle JUMP_TABLE_DATA.
30336 * sched-vis.c (print_insn): Likewise.
30337 * emit-rtl.c (active_insn_p): Consider JUMP_TABLE_DATA an active
30338 insn for compatibility with back ends that use next_active_insn to
30339 identify jump table data.
30340 (set_insn_deleted): Remove no longer useful JUMP_TABLE_DATA_P check.
30341 (remove_insn): Likewise.
30342 (emit_insn): Do not accept JUMP_TABLE_DATA objects in insn chains
30344 (emit_debug_insn, emit_jump_insn, emit_call_insn, emit_label): Idem.
30345 (emit_jump_table_data): New function.
30347 * cfgbuild.c (inside_basic_block_p): A JUMP_INSN is always inside a
30348 basic block, a JUMP_TABLE_DATA never is.
30349 (control_flow_insn_p): JUMP_TABLE_DATA is not a control flow insn.
30350 * cfgrtl.c (duplicate_insn_chain): Split handling of JUMP_TABLE_DATA
30351 off from code handling real insns.
30352 * final.c (get_attr_length_1): Simplify for JUMP_INSNs.
30353 * function.c (instantiate_virtual_regs): Remove JUMP_TABLE_DATA_P
30354 test, now redundant because JUMP_TABLE_DATA is not an INSN_P insn.
30355 * gcse.c (insert_insn_end_basic_block): Likewise, JUMP_TABLE_DATA_P
30356 is not a NONDEBUG_INSN_P.
30357 * ira-costs.c (scan_one_insn): Likewise.
30358 * jump.c (mark_all_labels): Likewise.
30359 (mark_jump_label_1): Likewise.
30360 * lra-eliminations.c (eliminate_regs_in_insn): Likewise.
30361 * lra.c (get_insn_freq): Expect all insns reaching here to be in
30363 (check_rtl): Remove JUMP_TABLE_DATA_P test, not a NONDEBUG_INSN_P insn.
30364 * predict.c (expensive_function_p): Use FOR_BB_INSNS.
30365 * reload1.c (calculate_needs_all_insns): Call set_label_offsets for
30366 JUMP_TABLE_DATA_P insns.
30367 (calculate_elim_costs_all_insns): Likewise.
30368 (set_label_offsets): Recurse on the PATTERN of JUMP_TABLE_DATA insns.
30369 (elimination_costs_in_insn): Remove redundant JUMP_TABLE_DATA_P test.
30370 (delete_output_reload): Code style fixups.
30371 * reorg.c (dbr_schedule): Move JUMP_TABLE_DATA_P up to avoid setting
30372 insn flags on this non-insn.
30373 * sched-rgn.c (add_branch_dependences): Treat JUMP_TABLE_DATA insns
30374 as scheduling barriers, for pre-change compatibility.
30375 * stmt.c (emit_case_dispatch_table): Emit jump table data not as
30376 JUMP_INSN objects but instead as JUMP_TABLE_DATA objects.
30378 * config/alpha/alpha.c (alpha_does_function_need_gp): Remove
30379 redundant JUMP_TABLE_DATA_P test.
30380 * config/arm/arm.c (thumb_far_jump_used_p): Likewise.
30381 * config/frv/frv.c (frv_function_contains_far_jump): Likewise.
30382 (frv_for_each_packet): Likewise.
30383 * config/i386/i386.c (min_insn_size): Likewise.
30384 (ix86_avoid_jump_mispredicts): Likewise.
30385 * config/m32r/m32r.c (m32r_is_insn): Likewise.
30386 * config/mep/mep.c (mep_reorg_erepeat): Likewise.
30387 * config/mips/mips.c (USEFUL_INSN_P): Likewise.
30388 (mips16_insn_length): Robustify.
30389 (mips_has_long_branch_p): Remove redundant JUMP_TABLE_DATA_P test.
30390 (mips16_split_long_branches): Likewise.
30391 * config/pa/pa.c (pa_combine_instructions): Likewise.
30392 * config/rs6000/rs6000.c (get_next_active_insn): Treat
30393 JUMP_TABLE_DATA objects as active insns, like in active_insn_p.
30394 * config/s390/s390.c (s390_chunkify_start): Treat JUMP_TABLE_DATA
30395 as contributing to pool range lengths.
30396 * config/sh/sh.c (find_barrier): Restore check for ADDR_DIFF_VEC.
30397 Remove redundant JUMP_TABLE_DATA_P test.
30398 (sh_loop_align): Likewise.
30399 (split_branches): Likewise.
30400 (sh_insn_length_adjustment): Likewise.
30401 * config/spu/spu.c (get_branch_target): Likewise.
30403 2013-03-29 Jan Hubicka <jh@suse.cz>
30405 * lto-cgraph.c (output_profile_summary, input_profile_summary): Use
30406 gcov streaming; stream hot bb threshold to ltrans.
30407 * predict.c (get_hot_bb_threshold): Break out from ....
30408 (maybe_hot_count_p): ... here.
30409 (set_hot_bb_threshold): New function.
30410 * lto-section-in.c (lto_section_name): Add profile.
30411 * profile.h (get_hot_bb_threshold, set_hot_bb_threshold): Declare.
30412 * ipa.c: Include hash-table.h, tree-inline.h, profile.h, lto-streamer.h
30413 and data-streamer.h
30414 (histogram_entry): New structure.
30415 (histogram, histogram_pool): New global vars.
30416 (histogram_hash): New structure.
30417 (histogram_hash::hash): New method.
30418 (histogram_hash::equal): Likewise.
30419 (account_time_size): New function.
30420 (cmp_counts): New function.
30421 (dump_histogram): New function.
30422 (ipa_profile_generate_summary): New function.
30423 (ipa_profile_write_summary): New function.
30424 (ipa_profile_read_summary): New function.
30425 (ipa_profile): Decide on threshold.
30426 (pass_ipa_profile): Add ipa_profile_write_summary and
30427 ipa_profile_read_summary.
30428 * Makefile.in (ipa.o): Update dependencies.
30429 * lto-streamer.h (LTO_section_ipa_profile): New section.
30431 2013-03-29 Gabriel Dos Reis <gdr@integrable-solutions.net>
30433 * tree.h (VAR_P): New.
30435 2013-03-29 Paolo Carlini <paolo.carlini@oracle.com>
30438 * doc/invoke.texi ([-fwhole-program]): Fix typo.
30440 2013-03-29 Steven Bosscher <steven@gcc.gnu.org>
30442 * cfgbuild.c (inside_basic_block_p): Use JUMP_TABLE_DATA_P in lieu
30443 of tests for JUMP_P and a ADDR_DIFF_VEC or ADDR_VEC pattern.
30444 (control_flow_insn_p): Likewise.
30445 * cfgrtl.c (duplicate_insn_chain): Likewise.
30446 * final.c (get_attr_length_1): Likewise.
30447 (shorten_branches): Likewise.
30448 (final_scan_insn): Likewise.
30449 * function.c (instantiate_virtual_regs): Likewise.
30450 * gcse.c (insert_insn_end_basic_block): Likewise.
30451 * ira-costs.c (scan_one_insn): Likewise.
30452 * lra-eliminations.c (eliminate_regs_in_insn): Likewise.
30453 * lra.c (check_rtl): Likewise.
30454 * reload1.c (elimination_costs_in_insn): Likewise.
30455 * reorg.c (follow_jumps): Likewise.
30457 * config/arm/arm.c (is_jump_table): Use JUMP_TABLE_DATA_P in lieu
30458 of tests for JUMP_P and a ADDR_DIFF_VEC or ADDR_VEC pattern.
30459 (thumb_far_jump_used_p): Likewise.
30460 * config/bfin/bfin.c (workaround_rts_anomaly): Likewise.
30461 (workaround_speculation): Likewise.
30462 (add_sched_insns_for_speculation): Likewise.
30463 * config/c6x/c6x.c (reorg_emit_nops): Likewise.
30464 * config/frv/frv.c (frv_function_contains_far_jump): Likewise.
30465 (frv_for_each_packet): Likewise.
30466 * config/i386/i386.c (ix86_avoid_jump_mispredicts): Likewise.
30467 * config/ia64/ia64.c (emit_all_insn_group_barriers): Likewise.
30468 (final_emit_insn_group_barriers): Likewise.
30469 * config/m32r/m32r.c (m32r_is_insn): Likewise.
30470 * config/mips/mips.c (USEFUL_INSN_P): Likewise.
30471 (mips16_insn_length): Likewise.
30472 * config/pa/pa.c (pa_reorg): Likewise.
30473 (pa_combine_instructions): Likewise.
30474 * config/rs6000/rs6000.c (rs6000_invalid_within_doloop): Likewise.
30475 * config/sh/sh.c (fixup_addr_diff_vecs): Likewise.
30476 (sh_reorg): Likewise.
30477 (split_branches): Likewise.
30478 * config/spu/spu.c (get_branch_target): Likewise.
30480 * config/s390/s390.c (s390_chunkify_start): Simplify logic using
30483 2013-03-29 Kirill Yukhin <kirill.yukhin@intel.com>
30485 * config/i386/avx2intrin.h (_mm256_broadcastsi128_si256):
30486 Fix declaration name.
30488 2013-03-28 Lawrence Crowl <crowl@google.com>
30490 * graphds.h (struct graph.indicies): Remove unused.
30491 * graphite-poly.h (struct graph.original_pddrs): Remove unused.
30492 (SCOP_ORIGINAL_PDDRS): Remove unused.
30493 * sese.h (extern insert_loop_close_phis): Removed unused.
30494 (extern insert_guard_phis): Removed unused.
30495 (extern ivtype_map_elt_info): Removed unused.
30496 (new_ivtype_map_elt): Removed unused.
30497 * sese.c (ivtype_map_elt_info): Removed unused.
30499 2013-03-28 Lawrence Crowl <crowl@google.com>
30501 * Makefile.in: Add several missing include dependences.
30503 (test-dump.o): New. This object is not added to any executable,
30504 but is present for ad-hoc testing.
30506 (debug (const bitmap_head_def &)): New.
30507 (debug (const bitmap_head_def *)): New.
30509 (extern debug (const bitmap_head_def &)): New.
30510 (extern debug (const bitmap_head_def *)): New.
30512 (debug (edge_def &)): New.
30513 (debug (edge_def *)): New.
30515 (debug (basic_block_def &)): New.
30516 (debug (basic_block_def *)): New.
30518 (dump_node (const_tree, int, FILE *)): Correct source file.
30520 (debug (die_struct &)): New.
30521 (debug (die_struct *)): New.
30523 (extern debug (die_struct &)): New.
30524 (extern debug (die_struct *)): New.
30525 * gimple-pretty-print.c
30526 (debug (gimple_statement_d &)): New.
30527 (debug (gimple_statement_d *)): New.
30528 * gimple-pretty-print.h
30529 (extern debug (gimple_statement_d &)): New.
30530 (extern debug (gimple_statement_d *)): New.
30532 (debug (ira_allocno_copy &)): New.
30533 (debug (ira_allocno_copy *)): New.
30534 (debug (ira_allocno &)): New.
30535 (debug (ira_allocno *)): New.
30537 (extern debug (ira_allocno_copy &)): New.
30538 (extern debug (ira_allocno_copy *)): New.
30539 (extern debug (ira_allocno &)): New.
30540 (extern debug (ira_allocno *)): New.
30542 (debug (live_range &)): New.
30543 (debug (live_range *)): New.
30545 (debug (lra_live_range &)): New.
30546 (debug (lra_live_range *)): New.
30548 (debug (lra_live_range &)): New.
30549 (debug (lra_live_range *)): New.
30551 (debug (omega_pb_d &)): New.
30552 (debug (omega_pb_d *)): New.
30554 (extern debug (omega_pb_d &)): New.
30555 (extern debug (omega_pb_d *)): New.
30557 (debug (const rtx_def &)): New.
30558 (debug (const rtx_def *)): New.
30560 (debug_tree (tree): Move within file.
30561 (debug_raw (const tree_node &)): New.
30562 (debug_raw (const tree_node *)): New.
30563 (dump_tree_via_hooks (const tree_node *, int)): New.
30564 (debug (const tree_node &)): New.
30565 (debug (const tree_node *)): New.
30566 (debug_verbose (const tree_node &)): New.
30567 (debug_verbose (const tree_node *)): New.
30568 (debug_head (const tree_node &)): New.
30569 (debug_head (const tree_node *)): New.
30570 (debug_body (const tree_node &)): New.
30571 (debug_body (const tree_node *)): New.
30572 (debug_vec_tree (tree): Move and reimplement in terms of dump.
30573 (debug (vec<tree, va_gc> &)): New.
30574 (debug (vec<tree, va_gc> *)): New.
30576 (extern debug (const rtx_def &)): New.
30577 (extern debug (const rtx_def *)): New.
30579 (debug_raw (simple_bitmap_def &)): New.
30580 (debug_raw (simple_bitmap_def *)): New.
30581 (debug (simple_bitmap_def &)): New.
30582 (debug (simple_bitmap_def *)): New.
30584 (extern debug (simple_bitmap_def &)): New.
30585 (extern debug (simple_bitmap_def *)): New.
30586 (extern debug_raw (simple_bitmap_def &)): New.
30587 (extern debug_raw (simple_bitmap_def *)): New.
30589 (debug (vinsn_def &)): New.
30590 (debug (vinsn_def *)): New.
30591 (debug_verbose (vinsn_def &)): New.
30592 (debug_verbose (vinsn_def *)): New.
30593 (debug (expr_def &)): New.
30594 (debug (expr_def *)): New.
30595 (debug_verbose (expr_def &)): New.
30596 (debug_verbose (expr_def *)): New.
30597 (debug (vec<rtx> &)): New.
30598 (debug (vec<rtx> *)): New.
30600 (extern debug (vinsn_def &)): New.
30601 (extern debug (vinsn_def *)): New.
30602 (extern debug_verbose (vinsn_def &)): New.
30603 (extern debug_verbose (vinsn_def *)): New.
30604 (extern debug (expr_def &)): New.
30605 (extern debug (expr_def *)): New.
30606 (extern debug_verbose (expr_def &)): New.
30607 (extern debug_verbose (expr_def *)): New.
30608 (extern debug (vec<rtx> &)): New.
30609 (extern debug (vec<rtx> *)): New.
30611 (_list_iter_cond_expr): Make inline instead of static.
30613 (debug (sreal &)): New.
30614 (debug (sreal *)): New.
30616 (extern debug (sreal &)): New.
30617 (extern debug (sreal *)): New.
30619 (extern debug_raw (const tree_node &)): New.
30620 (extern debug_raw (const tree_node *)): New.
30621 (extern debug (const tree_node &)): New.
30622 (extern debug (const tree_node *)): New.
30623 (extern debug_verbose (const tree_node &)): New.
30624 (extern debug_verbose (const tree_node *)): New.
30625 (extern debug_head (const tree_node &)): New.
30626 (extern debug_head (const tree_node *)): New.
30627 (extern debug_body (const tree_node &)): New.
30628 (extern debug_body (const tree_node *)): New.
30629 (extern debug (vec<tree, va_gc> &)): New.
30630 (extern debug (vec<tree, va_gc> *)): New.
30632 (debug (struct loop &)): New.
30633 (debug (struct loop *)): New.
30634 (debug_verbose (struct loop &)): New.
30635 (debug_verbose (struct loop *)): New.
30636 * tree-dump.c: Add header dependence.
30638 (extern debug (struct loop &)): New.
30639 (extern debug (struct loop *)): New.
30640 (extern debug_verbose (struct loop &)): New.
30641 (extern debug_verbose (struct loop *)): New.
30643 (debug (data_reference &)): New.
30644 (debug (data_reference *)): New.
30645 (debug (vec<data_reference_p> &)): New.
30646 (debug (vec<data_reference_p> *)): New.
30647 (debug (vec<ddr_p> &)): New.
30648 (debug (vec<ddr_p> *)): New.
30650 (extern debug (data_reference &)): New.
30651 (extern debug (data_reference *)): New.
30652 (extern debug (vec<data_reference_p> &)): New.
30653 (extern debug (vec<data_reference_p> *)): New.
30654 (extern debug (vec<ddr_p> &)): New.
30655 (extern debug (vec<ddr_p> *)): New.
30657 (debug (pt_solution &)): New.
30658 (debug (pt_solution *)): New.
30660 (extern debug (pt_solution &)): New.
30661 (extern debug (pt_solution *)): New.
30663 (debug (_var_map &)): New.
30664 (debug (_var_map *)): New.
30665 (debug (tree_live_info_d &)): New.
30666 (debug (tree_live_info_d *)): New.
30668 (extern debug (_var_map &)): New.
30669 (extern debug (_var_map *)): New.
30670 (extern debug (tree_live_info_d &)): New.
30671 (extern debug (tree_live_info_d *)): New.
30673 2013-03-28 Jan Hubicka <jh@suse.cz>
30675 * lto-cgraph.c (merge_profile_summaries): Fix overflows.
30677 2013-03-28 Ian Bolton <ian.bolton@arm.com>
30679 * config/aarch64/aarch64.md (aarch64_can_eliminate): Keep frame
30680 record only when desired or required.
30682 2013-03-28 Uros Bizjak <ubizjak@gmail.com>
30684 * config/i386/i386.md (*vec_extract2vdi_1): Merge with
30685 *vec_extractv2di_1_rex64. Use x64 isa attribute.
30687 2013-03-28 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
30689 * config/aarch64/aarch64.md (*and<mode>3_compare0): New pattern.
30690 (*andsi3_compare0_uxtw): New pattern.
30691 (*and_<SHIFT:optab><mode>3_compare0): New pattern.
30692 (*and_<SHIFT:optab>si3_compare0_uxtw): New pattern.
30694 2013-03-28 Jan Hubicka <jh@suse.cz>
30696 * data-streamer-in.c (streamer_read_gcov_count): New function.
30697 * gimple-streamer-out.c: Include value-prof.h.
30698 (output_gimple_stmt): Output histogram.
30699 (output_bb): Use streamer_write_gcov_count.
30700 * value-prof.c: Include data-streamer.h
30701 (dump_histogram_value): Add HIST_TYPE_MAX.
30702 (stream_out_histogram_value): New function.
30703 (stream_in_histogram_value): New function.
30704 * value-prof.h (enum hist_type): Add HIST_TYPE_MAX.
30705 (stream_out_histogram_value, stream_in_histogram_value): Declare.
30706 * data-streamer-out.c (streamer_write_gcov_count): New function.
30707 (streamer_write_gcov_count_stream): New function.
30708 * lto-cgraph.c (lto_output_edge): Update counter streaming.
30709 (lto_output_node): Likewise.
30710 (input_node, input_edge): Likewise.
30711 * lto-streamer-out.c (output_cfg): Update streaming.
30712 * lto-streamer-in.c (input_cfg): Likewise.
30713 * data-streamer.h (streamer_write_gcov_count,
30714 streamer_write_gcov_count_stream, streamer_read_gcov_count): Declare.
30715 * gimple-streamer-in.c: Include value-prof.h
30716 (input_gimple_stmt): Input histograms.
30717 (input_bb): Update profile streaming.
30719 2013-03-28 Kenneth Zadeck <zadeck@naturalbridge.com>
30721 * genmodes.c (emit_max_int): New function.
30722 (emit_insn_modes_h): Added call to emit_max_function.
30723 * doc/rtl.texi (MAX_BITSIZE_MODE_ANY_INT, MAX_BITSIZE_MODE_ANY_MODE):
30725 * machmode.def: Fixed comment.
30727 2013-03-28 Kenneth Zadeck <zadeck@naturalbridge.com>
30729 * combine.c (try_combine): Removed useless assert.
30730 * cselib.c (rtx_equal_for_cselib_1): Removed unnecessary parens.
30732 2013-03-28 Marek Polacek <polacek@redhat.com>
30733 Richard Biener <rguenther@suse.de>
30735 PR tree-optimization/56695
30736 * tree-vect-stmts.c (vectorizable_condition): Unconditionally
30737 build signed result of a vector comparison.
30738 * tree-cfg.c (verify_gimple_comparison): Check that a result
30739 of a vector comparison has signed type.
30741 2013-03-28 Richard Biener <rguenther@suse.de>
30743 PR tree-optimization/37021
30744 * tree-vect-slp.c (vect_build_slp_tree): When not unrolling
30745 do not restrict gaps between groups.
30746 * tree-vect-stmts.c (vectorizable_load): Properly account for
30747 a gap between groups.
30749 2013-03-28 Eric Botcazou <ebotcazou@adacore.com>
30751 * toplev.c (process_options): Do not disable -fomit-frame-pointer on a
30752 general basis if unwind info is requested and ACCUMULATE_OUTGOING_ARGS
30755 2013-03-27 Gerald Pfeifer <gerald@pfeifer.com>
30757 * doc/invoke.texi (AVR Options): Tweak link for AVR-LibC user manual.
30758 * doc/extend.texi (Named Address Spaces): Ditto.
30759 (Variable Attributes): Ditto.
30761 2013-03-27 Kai Tietz <ktietz@redhat.com>
30763 * config.build: Add support for cygwin x64 target.
30764 * config.gcc: Likewise.
30765 * config.host: Likewise.
30766 * configure.ac: Likewise
30767 * configure: Regenerated.
30769 2013-03-27 Kai Tietz <ktietz@redhat.com>
30771 * config/i386/cygwin-stdint.h: Add support for cygwin x64 target.
30772 * config/i386/t-cygwin-w64: New file.
30773 * config/i386/cygwin-w64.h: New file.
30774 * config/i386/cygwin.h (EXTRA_OS_CPP_BUILTINS): Extend
30775 and add support for x64-cygwin target.
30776 (CPP_SPEC): Likewise.
30777 (CXX_WRAP_SPEC_LIST): Undefine before define.
30778 (LIBGCJ_SONAME): Use 15 as version.
30780 2013-03-27 Richard Biener <rguenther@suse.de>
30782 PR tree-optimization/56716
30783 * tree-ssa-structalias.c (perform_var_substitution): Adjust
30784 dumping for ref nodes.
30786 2013-03-27 Martin Jambor <mjambor@suse.cz>
30788 PR tree-optimization/55334
30789 * ipa-cp.c (initialize_node_lattices): Allow IPA-CP through and to
30790 restricted pointers to arrays.
30792 2013-03-27 Gabriel Dos Reis <gdr@integrable-solutions.net>
30794 * Makefile.in (.SUFFIXES): Add .cc.
30795 (.c.o): Apply same recipe for implicit rule .cc.o.
30797 2013-03-27 Richard Biener <rguenther@suse.de>
30799 PR tree-optimization/37021
30800 * tree-vect-data-refs.c (vect_check_strided_load): Allow
30801 REALPART/IMAGPART_EXPRs around the supported refs.
30802 * tree-ssa-structalias.c (find_func_aliases): Assume that
30803 floating-point values are not used to transfer pointers.
30805 2013-03-27 Alexander Ivchenko <alexander.ivchenko@intel.com>
30807 * target.def (TARGET_HAS_IFUNC_P): New target hook.
30808 * doc/tm.texi.in (TARGET_HAS_IFUNC_P): New.
30809 * doc/tm.texi: Regenerate.
30810 * targhooks.h (default_has_ifunc_p): New.
30811 * targhooks.c (default_has_ifunc_p): Ditto.
30812 * config/linux-protos.h: New file.
30813 * config/linux-android.h (TARGET_HAS_IFUNC_P): Using version of this
30814 hook for linux which disables support of indirect functions in android.
30815 * config/linux-android.c: New file.
30816 * config/t-linux-android.c: Ditto.
30817 * config.gcc: Added new object file linux-android.o.
30818 * config/i386/i386.c (ix86_get_function_versions_dispatcher):
30819 Using TARGET_HAS_IFUNC hook instead of HAVE_GNU_INDIRECT_FUNCTION.
30820 * varasm.c (do_assemble_alias): Likewise.
30821 * configure.ac: Define HAVE_GNU_INDIRECT_FUNCTION as zero if the target
30822 doesn't support indirect functions.
30823 * configure: Regenerate.
30825 2013-03-27 Bin Cheng <bin.cheng@arm.com>
30828 * config/arm/arm.c (thumb1_rtx_costs, thumb1_size_rtx_costs): Fix
30829 rtx costs for SET/ASHIFT/ASHIFTRT/LSHIFTRT/ROTATERT patterns with
30832 2013-03-27 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
30834 * config/s390/s390.h (TARGET_FLT_EVAL_METHOD): Define.
30836 2013-03-27 Terry Guo <terry.guo@arm.com>
30838 * config/arm/arm-cores.def: Added core cortex-r7.
30839 * config/arm/arm-tune.md: Regenerated.
30840 * config/arm/arm-tables.opt: Regenerated.
30841 * doc/invoke.texi: Added entry for core cortex-r7.
30843 2013-03-27 Walter Lee <walt@tilera.com>
30845 * config/tilegx/tilegx.c (tilegx_expand_prologue): Avoid
30846 double-decrement of next_scratch_regno.
30848 2013-03-27 Walter Lee <walt@tilera.com>
30850 * config/tilegx/tilegx.md (insn_v1mulu): Fix predicates on
30852 (insn_v1mulus): Ditto.
30853 (insn_v2muls): Ditto.
30855 2013-03-27 Walter Lee <walt@tilera.com>
30857 * config/tilegx/tilegx.h (ASM_OUTPUT_ADDR_VEC_ELT): Delete extra tab.
30858 (ASM_OUTPUT_ADDR_DIFF_ELT): Ditto.
30860 2013-03-27 Walter Lee <walt@tilera.com>
30862 * config/tilegx/tilegx.md (*sibcall_insn): Fix type atribute for jr.
30863 (*sibcall_value): Ditto.
30865 2013-03-27 Walter Lee <walt@tilera.com>
30867 * config/tilegx/tilegx.md (insn_mnz_<mode>): Replaced by ...
30868 (insn_mnz_v8qi): ... this ...
30869 (insn_mnz_v4hi): ... and this. Replace (const_int 0) with the
30871 (insn_v<n>mnz): Replaced by ...
30872 (insn_v1mnz): ... this ...
30873 (insn_v2mnz): ... and this. Replace (const_int 0) with the vector
30875 (insn_mz_<mode>): Replaced by ...
30876 (insn_mz_v8qi): ... this ...
30877 (insn_mz_v4hi): ... and this. Replace (const_int 0) with the
30879 (insn_v<n>mz): Replaced by ...
30880 (insn_v1mz): ... this ...
30881 (insn_v2mz): ... and this. Replace (const_int 0) with the vector
30884 2013-03-26 Eric Botcazou <ebotcazou@adacore.com>
30886 * doc/invoke.texi (SPARC options): Remove -mlittle-endian.
30888 2013-03-26 Roland McGrath <mcgrathr@google.com>
30890 * config/arm/arm.c (arm_print_operand: case 'w'): Use fputs rather
30891 than fprintf with a non-constant, non-format string.
30893 2013-03-26 Uros Bizjak <ubizjak@gmail.com>
30895 * config/i386/i386.md (*cmpqi_ext_1): Merge with *cmpqi_ext_1_rex64
30896 using nox64 isa attribute. Use nonimmediate_x86nomem_operand as
30897 operand 0 predicate.
30898 (*cmpqi_ext_3): Merge with *cmpqi_ext_3_rex64 using nox64 isa
30899 attribute. Use general_x64nomem_operand as operand 1 predicate.
30900 (*movqi_extv_1): Merge with *movqi_extv_1_rex64 using nox64 isa
30901 attribute. Use nonimmediate_x64nomem_operand as operand 0 predicate.
30902 (*movqi_extzv_2): Merge with *movqi_extzv_2_rex64 using nox64 isa
30903 attribute. Use nonimmediate_x64nomem_operand as operand 0 predicate.
30904 (mov<mode>_insv_1): Remove expander. Merge insn with
30905 movsi_insv_1 using SWI48 mode iterator and nox64 isa attribute.
30906 Use general_x64nomem_operand as operand 1 predicate.
30907 (addqi_ext_1): Merge with *addqi_ext_1_rex64 using nox64 isa attribute.
30908 (*testqi_ext_1): Merge with *testqi_ext_1_rex64 using nox64 isa
30909 attribute. Use nonimmediate_x64nomem_operand as operand 1 predicate.
30910 (*andqi_ext_1): Merge with *andqi_ext_1_rex64 using nox64 isa
30911 attribute. Use nonimmediate_x64nomem_operand as operand 2 predicate.
30912 (*<code>qi_ext_1): Merge with *<code>qi_ext_1_rex64 using nox64 isa
30913 attribute. Use nonimmediate_x64nomem_operand as operand 1 predicate.
30914 (*xorqi_cc_ext_1): Merge with *xorqi_cc_ext_1_rex64 using nox64
30915 isa attribute. Use general_x64nomem_operand as operand 2 predicate.
30916 * config/i386/predicates.md (nonimmediate_x64nomem_operand): New.
30917 (general_x64nomem_operand): Ditto.
30919 2013-03-26 Sebastian Huber <sebastian.huber@embedded-brains.de>
30921 * config/rtems.opt: Add -pthread option.
30923 2013-03-26 Richard Biener <rguenther@suse.de>
30925 * alias.c (find_base_term): Avoid redundant and not used recursion.
30926 (base_alias_check): Get the initial base term from the caller.
30927 (true_dependence_1): Compute and pass base terms to base_alias_check.
30928 (write_dependence_p): Likewise.
30929 (may_alias_p): Likewise.
30931 2013-03-26 Sofiane Naci <sofiane.naci@arm.com>
30933 * config/aarch64/aarch64.c (aarch64_classify_address): Support
30934 PC-relative load in SI modes and above only.
30936 2013-03-26 Xinyu Qi <xyqi@marvell.com>
30938 * config/arm/arm.h (FIRST_IWMMXT_GR_REGNUM): Add comment.
30939 * config/arm/iwmmxt.md (WCGR0): Update.
30940 (WCGR1, WCGR2, WCGR3): Likewise.
30942 2013-03-26 Uros Bizjak <ubizjak@gmail.com>
30944 * config/i386/i386.md (*movdfcc_1): Merge with *movdfcc_1_rex64.
30945 Use x64 and nox64 isa attributes.
30947 2013-03-26 Richard Biener <rguenther@suse.de>
30949 * emit-rtl.c (set_mem_attributes_minus_bitpos): Remove
30950 alignment computations and rely on get_object_alignment_1
30951 for the !TYPE_P case.
30952 Commonize DECL/COMPONENT_REF handling in the ARRAY_REF path.
30954 2013-03-26 Walter Lee <walt@tilera.com>
30956 * config/tilegx/tilegx.h (PROFILE_BEFORE_PROLOGUE): Define.
30957 * config/tilegx/tilepro.h (PROFILE_BEFORE_PROLOGUE): Define.
30959 2013-03-25 Jeff Law <law@redhat.com>
30961 * tree-ssa-dom.c (record_equivalences_from_incoming_edge): Add missing
30962 check for INTEGRAL_TYPE_P that was missing due to checking in
30963 wrong version of prior patch.
30965 2013-03-25 Walter Lee <walt@tilera.com>
30967 * config/tilegx/tilegx-builtins.h (enum tilegx_builtin): Add
30968 TILEGX_INSN_SHUFFLEBYTES1.
30969 * config/tilegx/tilegx.c (tilegx_builtin_info): Add entry for
30971 (tilegx_builtins): Ditto.
30972 * config/tilegx/tilegx.md (insn_shufflebytes1): New pattern.
30974 2013-03-25 Walter Lee <walt@tilera.com>
30976 * config/tilegx/tilegx.md (floatsisf2): New pattern.
30977 (floatunssisf2): New pattern.
30978 (floatsidf2): New pattern.
30979 (floatunssidf2): New pattern.
30981 2013-03-25 Walter Lee <walt@tilera.com>
30983 * config/tilegx/tilegx.c (expand_set_cint64_one_inst): Inline
30984 tests for constraint J, K, N, P.
30986 2013-03-25 Walter Lee <walt@tilera.com>
30988 * config/tilegx/tilegx.c (tilegx_asm_preferred_eh_data_format):
30989 Use indirect/pcrel encoding.
30990 * config/tilepro/tilepro.c (tilepro_asm_preferred_eh_data_format):
30993 2013-03-25 Steve Ellcey <sellcey@mips.com>
30995 * config/mips/mmips-cpus.def (74kc, 74kf2_1, 74kf, 74kf, 74kf1_1,
30996 74kfx, 74kx, 74kf3_2): Add PTF_AVOID_IMADD.
30997 * config/mips/mips.c (mips_option_override): Set IMADD default.
30998 * config/mips/mips.h (PTF_AVOID_IMADD): New.
30999 (ISA_HAS_MADD_MSUB): Remove MIPS16 check.
31000 (GENERATE_MADD_MSUB): Remove TUNE_74K check, add MIPS16 check.
31001 * config/mips/mips.md (mimadd): New flag for integer madd/msub.
31002 * doc/invoke.texi (-mimadd/-mno-imadd): New.
31004 2013-03-25 Jeff Law <law@redhat.com>
31006 * tree-ssa-dom.c (record_equivalences_from_incoming_edge): Rework
31007 slightly to avoid creating and folding useless trees. Simplify
31008 slightly by restricting to INTEGER_CSTs and using int_fits_type_p.
31010 2013-03-25 Uros Bizjak <ubizjak@gmail.com>
31012 * config/i386/i386.md (*zero_extendsidi2): Merge with
31013 *zero_extendsidi2_rex64. Use x64 and nox64 isa attributes.
31014 * config/i386/predicates.md (x86_64_zext_operand): Rename from
31015 x86_64_zext_general_operand. Use nonimmediate_operand on 32bit
31016 targets. Clarify comment.
31018 2013-03-25 Martin Jambor <mjambor@suse.cz>
31020 * ipa-prop.c (ipa_write_jump_function): Stream simple and aritmetic
31021 pass-through jump functions differently.
31022 (ipa_read_jump_function): Likewise. Also use setter functions to set
31025 2013-03-25 Martin Jambor <mjambor@suse.cz>
31027 * ipa-cp.c (ipa_get_indirect_edge_target): Renamed to
31028 ipa_get_indirect_edge_target_1, added parameter agg_reps and ability to
31030 (ipa_get_indirect_edge_target): New function.
31031 (devirtualization_time_bonus): New parameter known_aggs, pass it to
31032 ipa_get_indirect_edge_target. Update all callers.
31033 (ipcp_discover_new_direct_edges): New parameter aggvals. Pass it to
31034 ipa_get_indirect_edge_target_1 instead of calling
31035 ipa_get_indirect_edge_target.
31036 (create_specialized_node): Pass aggvlas to
31037 ipcp_discover_new_direct_edges.
31039 2013-03-25 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
31041 * config/arm/arm.md (f_sels, f_seld): New types.
31042 (*cmov<mode>): New pattern.
31043 * config/arm/predicates.md (arm_vsel_comparison_operator): New
31046 2013-03-25 Kai Tietz <ktietz@redhat.com>
31048 * config/i386/xm-mingw32.h (__USE_MINGW_ANSI_STDIO): Enable
31049 POSIX-printf for mingw-hosted builds.
31051 2013-03-25 Richard Biener <rguenther@suse.de>
31053 PR middle-end/56694
31054 * tree-eh.c (lower_eh_must_not_throw): Strip BLOCKs from the
31055 must-not-throw stmt location.
31057 2013-03-25 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
31059 * config/arm/arm.c (arm_emit_load_exclusive): Add acq parameter.
31060 Emit load-acquire versions when acq is true.
31061 (arm_emit_store_exclusive): Add rel parameter.
31062 Emit store-release versions when rel is true.
31063 (arm_split_compare_and_swap): Use acquire-release instructions
31065 of barriers when appropriate.
31066 (arm_split_atomic_op): Likewise.
31067 * config/arm/arm.h (TARGET_HAVE_LDACQ): New macro.
31068 * config/arm/unspecs.md (VUNSPEC_LAX): New unspec.
31069 (VUNSPEC_SLX): Likewise.
31070 (VUNSPEC_LDA): Likewise.
31071 (VUNSPEC_STL): Likewise.
31072 * config/arm/sync.md (atomic_load<mode>): New pattern.
31073 (atomic_store<mode>): Likewise.
31074 (arm_load_acquire_exclusive<mode>): Likewise.
31075 (arm_load_acquire_exclusivesi): Likewise.
31076 (arm_load_acquire_exclusivedi): Likewise.
31077 (arm_store_release_exclusive<mode>): Likewise.
31079 2013-03-25 Catherine Moore <clm@codesourcery.com>
31081 * config/mips/constraints.md (u, Udb7 Uead, Uean, Uesp, Uib3,
31082 Uuw6, Usb4, ZS, ZT, ZU, ZV, ZW): New constraints.
31083 * config/mip/predicates.md (lwsp_swsp_operand,
31084 lw16_sw16_operand, lhu16_sh16_operand, lbu16_operand,
31085 sb16_operand, db4_operand, db7_operand, ib3_operand,
31086 sb4_operand, ub4_operand, uh4_operand, uw4_operand,
31087 uw5_operand, uw6_operand, addiur2_operand, addiusp_operand,
31088 andi16_operand): New predicates.
31089 * config/mips/mips.md (compression): New attribute.
31090 (enabled): New attribute.
31091 (length): Consider compression in computing length.
31092 (shift_compression): New code attribute.
31093 (*add<mode>3): New operands. Record compression.
31094 (sub<mode>3): Likewise.
31095 (one_cmpl<mode>2): Likewise.
31096 (*and<mode>3): Likewise.
31097 (*ior<mode>3): Likewise.
31098 (unnamed pattern for xor): Likewise.
31099 (*zero_extend<SHORT:mode><GPR:mode>2): Likewise.
31100 (*<optab><mode>3): Likewise.
31101 (*mov<mode>_internal: Likewise.
31102 * config/mips/mips-protos.h (mips_signed_immediate_p): New.
31103 (mips_unsigned_immediate_p): New.
31104 (umips_lwsp_swsp_address_p): New.
31105 (m16_based_address_p): New.
31106 * config/mips/mips-protos.h (mips_signed_immediate_p): New prototype.
31107 (mips_unsigned_immediate_p): New prototype.
31108 (lwsp_swsp_address_p): New prototype.
31109 (m16_based_address_p): New prototype.
31110 * config/mips/mips.c (mips_unsigned_immediate_p): New function.
31111 (mips_signed_immediate_p): New function.
31112 (m16_based_address_p): New function.
31113 (lwsp_swsp_address_p): New function.
31114 (mips_print_operand_punctuation): Recognize short delay slot insns
31115 for microMIPS.add<mode>3"
31117 2013-03-25 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
31120 * config/arm/iterators.md (v_cmp_result): New mode attribute.
31121 * config/arm/neon.md (vcond<mode><mode>): Handle unordered cases.
31123 2013-03-25 Richard Biener <rguenther@suse.de>
31125 PR tree-optimization/56689
31126 * tree-vrp.c (execute_vrp): Mark loops for fixup if we removed
31129 2013-03-25 Richard Biener <rguenther@suse.de>
31131 * tree-ssa-loop-im.c (struct mem_ref): Use bitmap_head instead
31133 (memory_references): Likewise.
31134 (outermost_indep_loop, mem_ref_alloc, mark_ref_stored,
31135 gather_mem_refs_stmt, record_dep_loop, ref_indep_loop_p_1,
31136 ref_indep_loop_p_2, find_refs_for_sm): Adjust.
31137 (gather_mem_refs_in_loops): Fold into ...
31138 (analyze_memory_references): ... this. Move initialization
31139 to tree_ssa_lim_initialize.
31140 (fill_always_executed_in): Rename to ...
31141 (fill_always_executed_in_1): ... this.
31142 (fill_always_executed_in): Move contains_call computation to
31143 this new function from ...
31144 (tree_ssa_lim_initialize): ... here.
31145 (tree_ssa_lim): Call fill_always_executed_in.
31147 2013-03-25 Eric Botcazou <ebotcazou@adacore.com>
31149 * postreload.c (reload_combine): Fix code detecting returns.
31151 2013-03-25 Eric Botcazou <ebotcazou@adacore.com>
31153 * function.c (emit_use_return_register_into_block): On cc0 targets,
31154 do not emit the sequence between cc0 setter and user.
31156 2013-03-25 Kai Tietz <ktietz@redhat.com>
31158 * config/i386/predicates.md (local_symbolic_operand): Interpret
31159 dll-imported symbols as none-local.
31161 2013-03-25 Richard Biener <rguenther@suse.de>
31163 * tree-ssa-loop-im.c (struct depend): Remove.
31164 (struct lim_aux_data): Make depends a vec of gimples.
31165 (free_lim_aux_data): Adjust.
31166 (add_dependency): Likewise.
31167 (set_level): Likewise.
31169 2013-03-25 Richard Biener <rguenther@suse.de>
31171 PR middle-end/56434
31172 * calls.c (expand_call): Use MALLOC_ABI_ALIGNMENT to annotate
31173 the pointer returned by calls with ECF_MALLOC set.
31175 2013-03-24 Uros Bizjak <ubizjak@gmail.com>
31177 * config/i386/mmx.md (mov<mode>): Add ?!Ym,r and r,?!Ym alternatives.
31179 2013-03-24 Uros Bizjak <ubizjak@gmail.com>
31181 * config/i386/mmx.md (mov<mode>): Merge with movv2sf expander
31182 using MMXMODE mode iterator.
31183 (*move<mode>_internal): Merge with *movv2sf_internal and
31184 *movv2sf_internal_rex64 using MMXMODE mode iterator.
31186 2013-03-23 Steven Bosscher <steven@gcc.gnu.org>
31188 * gcse.c (oprs_unchanged_p): Respect flag_gcse_lm.
31189 (record_last_mem_set_info): Likewise.
31191 * df-core.c (rest_of_handle_df_initialize): Use XCNEWVEC instead
31192 of XNEWVEC followed by memset.
31193 (df_worklist_dataflow): Use XNEWVEC instead of xmalloc with a cast.
31195 2013-03-23 Steven Bosscher <steven@gcc.gnu.org>
31197 * config/avr/avr.c, config/bfin/bfin.c, config/c6x/c6x.c,
31198 config/epiphany/epiphany.c, config/frv/frv.c, config/ia64/ia64.c,
31199 config/iq2000/iq2000.c, config/mcore/mcore.c, config/mep/mep.c,
31200 config/mmix/mmix.c, config/pa/pa.c, config/rs6000/rs6000.c,
31201 config/s390/s390.c, config/sparc/sparc.c, config/spu/spu.c,
31202 config/stormy16/stormy16.c, config/v850/v850.c, config/xtensa/xtensa.c,
31203 dwarf2out.c, hw-doloop.c, resource.c, rtl.h : Where applicable, use
31204 the predicates NOTE_P, NONJUMP_INSN_P, JUMP_P, CALL_P, LABEL_P, and
31205 BARRIER_P instead of GET_CODE.
31207 2013-03-23 Eric Botcazou <ebotcazou@adacore.com>
31209 * config/sparc/sparc.c (sparc_emit_probe_stack_range): Fix small
31210 inaccuracy in the probing code.
31212 * config/sparc/sparc.md (ctrapsi4): Add predicate for operand #3.
31213 (ctrapdi4): Likewise.
31215 2013-03-23 Eric Botcazou <ebotcazou@adacore.com>
31217 * calls.c (expand_call): Add missing guard to code handling return
31218 of non-BLKmode structures in MSB.
31219 * function.c (expand_function_end): Likewise.
31221 2013-03-23 Eric Botcazou <ebotcazou@adacore.com>
31223 * combine.c (try_combine): Adjust comment. Do not add the set of
31224 insn #0 if the destination indirectly is set or dies in insn #2.
31225 Tidy up code to distribute a new note.
31227 2013-03-22 Uros Bizjak <ubizjak@gmail.com>
31229 * config/i386/i386.md (*movdi_internal): Set prefix_rex attribute
31230 also for alternatives 16 and 17.
31232 2013-03-22 Uros Bizjak <ubizjak@gmail.com>
31234 * config/i386/sse.md (*mov<mode>_internal): Merge with
31235 *mov<mode>_internal_rex64. Use x64 and nox64 isa attributes.
31236 Emit insn template depending on type attribute. Use
31237 HAVE_AS_IX86_INTERUNIT_MOVQ to handle broken assemblers that require
31238 movd instead of movq mnemonic for interunit moves. Rewrite mode
31239 attribute calculation. Remove unit attribute calculation.
31240 Set prefix attribute to maybe_vex for sselog1 and ssemov types.
31241 Set prefix_data16 attribute for DImode ssemov types.
31242 Use Ym instead of y for SSE-MMX conversion alternatives.
31243 Reorder operand constraints.
31245 2013-03-22 Steven Bosscher <steven@gcc.gnu.org>
31247 * df.h (df_insn_delete): Adjust prototype.
31248 * emit-rtl.c (remove_insn): Pass a basic block to df_insn_delete
31249 and let it decide whether mark the basic block dirty.
31250 (set_insn_deleted): Only pass INSN_P insns to df_insn_delete.
31251 * df-scan.c (df_insn_info_delete): New helper function, split
31252 off from df_insn_delete.
31253 (df_scan_free_bb_info): Use it.
31254 (df_insn_rescan, df_insn_rescan_all, df_process_deferred_rescans):
31256 (df_insn_delete): Likewise. Take insn rtx as argument. Verify
31257 that the insn is actually an insn and it has a non-NULL basic block.
31258 Do not mark basic block dirty if only deleting a DEBUG_INSN.
31260 2013-03-22 Richard Biener <rguenther@suse.de>
31262 * tree-ssa-loop-im.c (struct mem_ref): Remove indep_ref and
31264 (mem_ref_alloc): Do not allocate them.
31265 (refs_independent_p): Do not query or maintain a cache.
31267 2013-03-22 Richard Biener <rguenther@suse.de>
31269 * tree-ssa-loop-im.c (memory_references): Drop all_refs_in_loop.
31270 (gather_mem_refs_in_loops): Do not compute it.
31271 (analyze_memory_references): Do not allocate it.
31272 (tree_ssa_lim_finalize): Do not free it.
31273 (for_all_locs_in_loop): Do not query all_refs_in_loop.
31275 2013-03-22 Richard Biener <rguenther@suse.de>
31277 * is-a.h (as_a): Use gcc_checking_assert.
31279 2013-03-22 Ian Bolton <ian.bolton@arm.com>
31281 * config/aarch64/aarch64.c (aarch64_print_operand): New
31282 format specifier for printing a constant in hex.
31283 * config/aarch64/aarch64.md (insv_imm<mode>): Use the X
31284 format specifier for printing second operand.
31286 2013-03-22 Richard Biener <rguenther@suse.de>
31288 * tree-ssa-loop-im.c (memory_references): Add refs_stored_in_loop
31290 (gather_mem_refs_in_loops): Perform store accumulation here.
31291 (create_vop_ref_mapping_loop): Remove.
31292 (create_vop_ref_mapping): Likewise.
31293 (analyze_memory_references): Initialize refs_stored_in_loop.
31294 (LOOP_DEP_BIT): New define to map to bits in (in)dep_loop bitmaps.
31295 (record_indep_loop): Remove.
31296 (record_dep_loop): New function.
31297 (ref_indep_loop_p_1): Adjust to only walk over references
31298 in the loop, not its subloops.
31299 (ref_indep_loop_p): Rename to ...
31300 (ref_indep_loop_p_2): ... this and recurse over the loop tree,
31301 maintaining a more fine-grained cache.
31302 (ref_indep_loop_p): Wrap ref_indep_loop_p_2.
31303 (tree_ssa_lim_finalize): Free refs_stored_in_loop.
31305 2013-03-22 Richard Biener <rguenther@suse.de>
31307 * tree-ssa-loop-im.c (struct mem_ref_locs): Remove.
31308 (struct mem_ref): Make accesses_in_loop a vec of a vec of
31309 aggregate mem_ref_loc.
31310 (free_mem_ref_locs): Inline into ...
31311 (memref_free): ... this and adjust.
31312 (mem_ref_alloc): Adjust.
31313 (mem_ref_locs_alloc): Remove.
31314 (record_mem_ref_loc): Adjust.
31315 (get_all_locs_in_loop): Rewrite into ...
31316 (for_all_locs_in_loop): ... this iterator.
31317 (rewrite_mem_ref_loc): New functor.
31318 (rewrite_mem_refs): Use for_all_locs_in_loop.
31319 (sm_set_flag_if_changed): New functor.
31320 (execute_sm_if_changed_flag_set): Use for_all_locs_in_loop.
31321 (ref_always_accessed): New functor.
31322 (ref_always_accessed_p): Use for_all_locs_in_loop.
31324 2013-03-21 Marc Glisse <marc.glisse@inria.fr>
31326 * tree-pass.h (PROP_gimple_lvec): New.
31327 * passes.c (dump_properties): Handle PROP_gimple_lvec.
31328 (init_optimization_passes): Move pass_lower_vector.
31329 * tree-vect-generic.c (gate_expand_vector_operations_ssa): Test
31331 (pass_lower_vector): Provide PROP_gimple_lvec.
31332 (pass_lower_vector_ssa): Likewise.
31333 * cfgexpand.c (pass_expand): Require PROP_gimple_lvec.
31335 2013-03-21 Mark Wielaard <mjw@redhat.com>
31337 * dwarf2out.c (size_of_aranges): Skip DECL_IGNORED_P functions.
31339 2013-03-21 Uros Bizjak <ubizjak@gmail.com>
31341 * config/i386/i386.md (*movdi_internal): Disparage slightly
31342 all MMX moves to/from memory. Use Yi instead of x for SSE-MMX
31343 conversion alternatives.
31345 2013-03-21 Jakub Jelinek <jakub@redhat.com>
31347 PR middle-end/48087
31348 * diagnostic.def (DK_WERROR): New kind.
31349 * diagnostic.h (werrorcount): Define.
31350 * diagnostic.c (diagnostic_report_diagnostic): For DK_WARNING
31351 promoted to DK_ERROR, increment DK_WERROR counter instead of
31353 * toplev.c (toplev_main): Call print_ignored_options even if
31354 just werrorcount is non-zero. Exit with FATAL_EXIT_CODE
31355 even if just werrorcount is non-zero.
31358 * dwarf2out.c (tree_add_const_value_attribute): Call ggc_free (array)
31360 (resolve_one_addr): Fail if referenced STRING_CST hasn't been written.
31361 (string_cst_pool_decl): New function.
31362 (optimize_one_addr_into_implicit_ptr): New function.
31363 (resolve_addr_in_expr): Optimize DWARF location expression
31364 DW_OP_addr DW_OP_stack_value where DW_OP_addr refers to some variable
31365 which doesn't live in memory, but has DW_AT_location or
31366 DW_AT_const_value, or refers to a string literal, into
31367 DW_OP_GNU_implicit_pointer.
31368 (optimize_location_into_implicit_ptr): New function.
31369 (resolve_addr): If removing DW_AT_location of a variable because
31370 it was DW_OP_addr of address of the variable, but the variable doesn't
31371 live in memory, try to emit const value attribute for the initializer.
31373 2013-03-21 Marc Glisse <marc.glisse@inria.fr>
31375 * tree.h (VECTOR_TYPE_P): New macro.
31376 (VECTOR_INTEGER_TYPE_P, VECTOR_FLOAT_TYPE_P, FLOAT_TYPE_P,
31377 TYPE_MODE): Use it.
31378 * fold-const.c (fold_cond_expr_with_comparison): Use build_zero_cst.
31379 VEC_COND_EXPR cannot be lvalues.
31380 (fold_ternary_loc) <VEC_COND_EXPR>: Merge with the COND_EXPR case.
31382 2013-03-21 Marc Glisse <marc.glisse@inria.fr>
31384 * simplify-rtx.c (simplify_binary_operation_1) <VEC_CONCAT>:
31385 Restrict the transformation to equal modes.
31387 2013-03-21 Richard Biener <rguenther@suse.de>
31389 PR tree-optimization/39326
31390 * tree-ssa-loop-im.c (UNANALYZABLE_MEM_ID): New define.
31391 (MEM_ANALYZABLE): Adjust.
31392 (record_mem_ref_loc): Move bitmap ops ...
31393 (gather_mem_refs_stmt): ... here. Use the shared mem-ref for
31394 unanalyzable refs, do not record locations for it.
31395 (analyze_memory_references): Allocate ref zero as shared
31397 (refs_independent_p): Do not test for unanalyzed mems here.
31398 (ref_indep_loop_p_1): Special-case disambiguation against
31399 the unanalyzed ref.
31400 (ref_indep_loop_p): Assert we are not queried for the unanalyzed mem.
31402 2013-03-21 Christophe Lyon <christophe.lyon@linaro.org>
31404 * config/arm/arm-protos.h (tune_params): Add
31405 prefer_neon_for_64bits field.
31406 * config/arm/arm.c (prefer_neon_for_64bits): New variable.
31407 (arm_slowmul_tune): Default prefer_neon_for_64bits to false.
31408 (arm_fastmul_tune, arm_strongarm_tune, arm_xscale_tune): Ditto.
31409 (arm_9e_tune, arm_v6t2_tune, arm_cortex_tune): Ditto.
31410 (arm_cortex_a15_tune, arm_cortex_a5_tune): Ditto.
31411 (arm_cortex_a9_tune, arm_v6m_tune, arm_fa726te_tune): Ditto.
31412 (arm_option_override): Handle -mneon-for-64bits new option.
31413 * config/arm/arm.h (TARGET_PREFER_NEON_64BITS): New macro.
31414 (prefer_neon_for_64bits): Declare new variable.
31415 * config/arm/arm.md (arch): Rename neon_onlya8 and neon_nota8 to
31416 avoid_neon_for_64bits and neon_for_64bits. Remove onlya8 and nota8.
31417 (arch_enabled): Handle new arch types. Remove support for onlya8
31419 (one_cmpldi2): Use new arch names.
31420 (zero_extend<mode>di2, extend<mode>di2): Ditto.
31421 * config/arm/arm.opt (mneon-for-64bits): Add option.
31422 * config/arm/neon.md (adddi3_neon, subdi3_neon, iordi3_neon)
31423 (anddi3_neon, xordi3_neon, ashldi3_neon, <shift>di3_neon): Use
31424 neon_for_64bits instead of nota8 and avoid_neon_for_64bits instead
31426 * doc/invoke.texi (-mneon-for-64bits): Document.
31428 2013-03-21 Richard Biener <rguenther@suse.de>
31430 PR tree-optimization/39326
31431 * tree-ssa-loop-im.c (bb_loop_postorder): New global static.
31432 (sort_bbs_in_loop_postorder_cmp): New function.
31433 (gather_mem_refs_in_loops): Assign mem-ref IDs in loop postorder.
31435 2013-03-21 Richard Biener <rguenther@suse.de>
31437 * tree-vect-data-refs.c (vect_update_interleaving_chain): Remove.
31438 (vect_insert_into_interleaving_chain): Likewise.
31439 (vect_drs_dependent_in_basic_block): Inline ...
31440 (vect_slp_analyze_data_ref_dependence): ... here. New function,
31442 (vect_analyze_data_ref_dependence): ... here. Simplify.
31443 (vect_check_interleaving): Simplify.
31444 (vect_analyze_data_ref_dependences): Likewise. Split out ...
31445 (vect_slp_analyze_data_ref_dependences): ... this new function.
31446 (dr_group_sort_cmp): New function.
31447 (vect_analyze_data_ref_accesses): Compute data-reference groups
31448 here instead of in vect_analyze_data_ref_dependence. Use
31449 a more efficient algorithm.
31450 * tree-vect-slp.c (vect_slp_analyze_bb_1): Use
31451 vect_slp_analyze_data_ref_dependences. Call
31452 vect_analyze_data_ref_accesses earlier.
31453 * tree-vect-loop.c (vect_analyze_loop_2): Likewise.
31454 * tree-vectorizer.h (vect_analyze_data_ref_dependences): Adjust.
31455 (vect_slp_analyze_data_ref_dependences): New prototype.
31457 2013-03-21 Richard Biener <rguenther@suse.de>
31459 * tree-ssa-loop-im.c (can_sm_ref_p): Do not test whether
31460 ref is stored in the loop.
31461 (find_refs_for_sm): Walk only over all stores.
31462 (store_motion_loop): Allocate from lim_bitmap_obstack.
31463 (store_motion): Likewise.
31465 2013-03-21 Richard Biener <rguenther@suse.de>
31467 * tree-vect-loop-manip.c (slpeel_tree_peel_loop_to_edge):
31468 Update virtual SSA form.
31470 2013-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
31472 * configure.ac (gcc_cv_ld_eh_frame_ciev3): New test.
31473 * configure: Regenerate.
31474 * config.in: Regenerate.
31475 * config/sol2.c (solaris_override_options): Only enforce DWARF 2
31476 if !HAVE_LD_EH_FRAME_CIEV3.
31478 2013-03-21 Richard Biener <rguenther@suse.de>
31480 * tree-cfg.c (verify_expr_no_block): New function.
31481 (verify_expr_location_1): Verify that neither DECL_DEBUG_EXPR
31482 nor DECL_VALUE_EXPR have locations with associated blocks.
31483 * tree-ssa-live.c (clear_unused_block_pointer_1): Remove.
31484 (clear_unused_block_pointer): Remove code dealing with
31485 blocks in DECL_DEBUG_EXPR locations.
31487 2013-03-21 Richard Biener <rguenther@suse.de>
31489 * tree.h (DECL_DEBUG_EXPR_IS_FROM): Rename to ...
31490 (DECL_HAS_DEBUG_EXPR_P): ... this. Guard properly.
31491 * tree.c (copy_node_stat): Do not copy DECL_HAS_DEBUG_EXPR_P.
31492 * dwarf2out.c (add_var_loc_to_decl): Use DECL_HAS_DEBUG_EXPR_P
31493 instead of DECL_DEBUG_EXPR_IS_FROM.
31494 * gimplify.c (gimplify_modify_expr): Likewise.
31495 * tree-cfg.c (verify_expr_location_1): Likewise.
31496 * tree-complex.c (create_one_component_var): Likewise.
31497 * tree-sra.c (create_access_replacement): Likewise.
31498 * tree-ssa-live.c (clear_unused_block_pointer_1): Likewise.
31499 (clear_unused_block_pointer): Likewise.
31500 * tree-streamer-in.c (unpack_ts_decl_common_value_fields): Likewise.
31501 * tree-streamer-out.c (pack_ts_decl_common_value_fields): Likewise.
31502 * var-tracking.c (var_debug_decl): Likewise.
31503 (track_expr_p): Likewise.
31504 * tree-inline.c (add_local_variables): Likewise. Set
31505 DECL_HAS_DEBUG_EXPR_P after copying it.
31506 * tree-diagnostic.c (default_tree_printer): Use DECL_HAS_DEBUG_EXPR_P
31507 instead of DECL_DEBUG_EXPR_IS_FROM. Guard properly.
31509 2013-03-21 Uros Bizjak <ubizjak@gmail.com>
31512 * configure.ac (HAVE_AS_IX86_INTERUNIT_MOVQ): New test.
31513 * configure: Regenerate.
31514 * config.in: Regenerate.
31515 * config/i386/i386.md (*movdf_internal): Use
31516 HAVE_AS_IX86_INTERUNIT_MOVQ to handle broken assemblers that require
31517 movd instead of movq mnemonic for interunit moves.
31518 (*movdi_internal): Ditto.
31520 2013-03-21 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
31522 * config/aarch64/aarch64-simd.md (simd_fabd): New Attribute.
31523 (abd<mode>_3): New pattern.
31524 (aba<mode>_3): New pattern.
31525 (fabd<mode>_3): New pattern.
31527 2013-03-21 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
31529 * config/aarch64/aarch64-elf.h (REGISTER_PREFIX): Remove.
31530 * config/aarch64/aarch64.c (aarch64_print_operand): Remove all
31531 occurrence of REGISTER_PREFIX as its empty string.
31533 2013-03-20 Jeff Law <law@redhat.com>
31535 * tree-ssa-dom.c (record_equivalences_from_incoming_edge): Record
31536 addititional equivalences for equality comparisons between an SSA_NAME
31537 and a constant where the SSA_NAME was set from a widening conversion.
31539 2013-03-20 Walter Lee <walt@tilera.com>
31541 * config/tilegx/sync.md (atomic_test_and_set): New pattern.
31543 2013-03-20 Uros Bizjak <ubizjak@gmail.com>
31545 * config/i386/i386.md (*movoi_internal_avx): Emit insn template
31546 depending on type attribute.
31547 (*movti_internal): Ditto.
31548 (*movtf_internal): Ditto.
31549 (*movxf_internal): Ditto.
31550 (*movdf_internal): Ditto.
31551 (*movsf_internal): Ditto.
31553 2013-03-20 Uros Bizjak <ubizjak@gmail.com>
31555 * config/i386/i386.md (*movti_internal): Set prefix attribute to
31556 maybe_vex for sselog1 and ssemov types.
31557 (*movdi_internal): Reorder operand constraints.
31558 (*movsi_internal): Ditto. Set prefix attribute to
31559 maybe_vex for sselog1 and ssemov types.
31560 (*movtf_internal): Set prefix attribute to maybe_vex
31561 for sselog1 and ssemov types.
31562 (*movdf_internal): Ditto. Set prefix_data16 attribute for
31563 DImode ssemov types. Reorder operand constraints.
31564 (*movsf_internal): Set type of alternatives 3,4 to imov. Set prefix
31565 attribute to maybe_vex for sselog1 and ssemov types. Set prefix_data16
31566 attribute for SImode ssemov types. Reorder operand constraints.
31568 2013-03-20 Martin Jambor <mjambor@suse.cz>
31570 * params.def (PARAM_IPA_CP_ARRAY_INDEX_HINT_BONUS): New parameter.
31571 * ipa-cp.c (hint_time_bonus): Add abonus for known array indices.
31573 2013-03-20 Pat Haugen <pthaugen@us.ibm.com>
31575 * config/rs6000/predicates.md (indexed_address, update_address_mem
31576 update_indexed_address_mem): New predicates.
31577 * config/rs6000/vsx.md (vsx_extract_<mode>_zero): Set correct "type"
31578 attribute for load/store instructions.
31579 * config/rs6000/dfp.md (movsd_store): Likewise.
31580 (movsd_load): Likewise.
31581 * config/rs6000/rs6000.md (zero_extend<mode>di2_internal1): Likewise.
31582 (unnamed HI->DI extend define_insn): Likewise.
31583 (unnamed SI->DI extend define_insn): Likewise.
31584 (unnamed QI->SI extend define_insn): Likewise.
31585 (unnamed QI->HI extend define_insn): Likewise.
31586 (unnamed HI->SI extend define_insn): Likewise.
31587 (unnamed HI->SI extend define_insn): Likewise.
31588 (extendsfdf2_fpr): Likewise.
31589 (movsi_internal1): Likewise.
31590 (movsi_internal1_single): Likewise.
31591 (movhi_internal): Likewise.
31592 (movqi_internal): Likewise.
31593 (movcc_internal1): Correct mnemonic for stw insn. Set correct "type"
31594 attribute for load/store instructions.
31595 (mov<mode>_hardfloat): Set correct "type" attribute for load/store
31597 (mov<mode>_softfloat): Likewise.
31598 (mov<mode>_hardfloat32): Likewise.
31599 (mov<mode>_hardfloat64): Likewise.
31600 (mov<mode>_softfloat64): Likewise.
31601 (movdi_internal32): Likewise.
31602 (movdi_internal64): Likewise.
31603 (probe_stack_<mode>): Likewise.
31605 2013-03-20 Michael Meissner <meissner@linux.vnet.ibm.com>
31607 * config/rs6000/vector.md (VEC_R): Add 32-bit integer, binary
31608 floating point, and decimal floating point to reload iterator.
31610 * config/rs6000/constraints.md (wl constraint): New constraints to
31611 return FLOAT_REGS if certain options are used to reduce the number
31612 of separate patterns that exist in the file.
31613 (wx constraint): Likewise.
31614 (wz constraint): Likewise.
31616 * config/rs6000/rs6000.c (rs6000_debug_reg_global): If
31617 -mdebug=reg, print wg, wl, wx, and wz constraints.
31618 (rs6000_init_hard_regno_mode_ok): Initialize new constraints.
31619 Initialize the reload functions for 64-bit binary/decimal floating
31621 (reg_offset_addressing_ok_p): If we are on a power7 or later, use
31622 LFIWZX and STFIWX to load/store 32-bit decimal types, and don't
31623 create the buffer on the stack to overcome not having a 32-bit
31625 (rs6000_emit_move): Likewise.
31626 (rs6000_secondary_memory_needed_rtx): Likewise.
31627 (rs6000_alloc_sdmode_stack_slot): Likewise.
31628 (rs6000_preferred_reload_class): On VSX, we can create SFmode 0.0f
31629 via xxlxor, just like DFmode 0.0.
31631 * config/rs6000/rs6000.h (TARGET_NO_SDMODE_STACK): New macro,
31632 define as 1 if we are running on a power7 or newer.
31633 (enum r6000_reg_class_enum): Add new constraints.
31635 * config/rs6000/dfp.md (movsd): Delete, combine with binary
31636 floating point moves in rs6000.md. Combine power6x (mfpgpr) moves
31637 with other moves by using conditional constraits (wg). Use LFIWZX
31638 and STFIWX for loading SDmode on power7. Use xxlxor to create 0.0f.
31639 (movsd splitter): Likewise.
31640 (movsd_hardfloat): Likewise.
31641 (movsd_softfloat): Likewise.
31643 * config/rs6000/rs6000.md (FMOVE32): New iterators to combine
31644 binary and decimal floating point moves.
31645 (fmove_ok): New attributes to combine binary and decimal floating
31646 point moves, and to combine power6x (mfpgpr) moves along normal
31648 (real_value_to_target): Likewise.
31649 (f32_lr): Likewise.
31650 (f32_lm): Likewise.
31651 (f32_li): Likewise.
31652 (f32_sr): Likewise.
31653 (f32_sm): Likewise.
31654 (f32_si): Likewise.
31655 (movsf): Combine binary and decimal floating point moves. Combine
31656 power6x (mfpgpr) moves with other moves by using conditional
31657 constraits (wg). Use LFIWZX and STFIWX for loading SDmode on power7.
31658 (mov<mode> for SFmode/SDmode); Likewise.
31659 (SFmode/SDmode splitters): Likewise.
31660 (movsf_hardfloat): Likewise.
31661 (mov<mode>_hardfloat for SFmode/SDmode): Likewise.
31662 (movsf_softfloat): Likewise.
31663 (mov<mode>_softfloat for SFmode/SDmode): Likewise.
31665 * doc/md.texi (PowerPC and IBM RS6000 constraints): Document wl,
31666 wx and wz constraints.
31668 * config/rs6000/constraints.md (wg constraint): New constraint to
31669 return FLOAT_REGS if -mmfpgpr (power6x) was used.
31671 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Add wg
31674 * config/rs6000/rs6000.c (rs6000_debug_reg_global): If
31675 -mdebug=reg, print wg, wl, wx, and wz constraints.
31676 (rs6000_init_hard_regno_mode_ok): Initialize new constraints.
31677 Initialize the reload functions for 64-bit binary/decimal floating
31679 (reg_offset_addressing_ok_p): If we are on a power7 or later, use
31680 LFIWZX and STFIWX to load/store 32-bit decimal types, and don't
31681 create the buffer on the stack to overcome not having a 32-bit
31683 (rs6000_emit_move): Likewise.
31684 (rs6000_secondary_memory_needed_rtx): Likewise.
31685 (rs6000_alloc_sdmode_stack_slot): Likewise.
31686 (rs6000_preferred_reload_class): On VSX, we can create SFmode 0.0f
31687 via xxlxor, just like DFmode 0.0.
31689 * config/rs6000/dfp.md (movdd): Delete, combine with binary
31690 floating point moves in rs6000.md. Combine power6x (mfpgpr) moves
31691 with other moves by using conditional constraits (wg). Use LFIWZX
31692 and STFIWX for loading SDmode on power7.
31693 (movdd splitters): Likewise.
31694 (movdd_hardfloat32): Likewise.
31695 (movdd_softfloat32): Likewise.
31696 (movdd_hardfloat64_mfpgpr): Likewise.
31697 (movdd_hardfloat64): Likewise.
31698 (movdd_softfloat64): Likewise.
31700 * config/rs6000/rs6000.md (FMOVE64): New iterators to combine
31701 64-bit binary and decimal floating point moves.
31702 (FMOVE64X): Likewise.
31703 (movdf): Combine 64-bit binary and decimal floating point moves.
31704 Combine power6x (mfpgpr) moves with other moves by using
31705 conditional constraits (wg).
31706 (mov<mode> for DFmode/DDmode): Likewise.
31707 (DFmode/DDmode splitters): Likewise.
31708 (movdf_hardfloat32): Likewise.
31709 (mov<mode>_hardfloat32 for DFmode/DDmode): Likewise.
31710 (movdf_softfloat32): Likewise.
31711 (movdf_hardfloat64_mfpgpr): Likewise.
31712 (movdf_hardfloat64): Likewise.
31713 (mov<mode>_hardfloat64 for DFmode/DDmode): Likewise.
31714 (movdf_softfloat64): Likewise.
31715 (mov<mode>_softfloat64 for DFmode/DDmode): Likewise.
31716 (reload_<mode>_load): Move to later in the file so they aren't in
31717 the middle of the floating point move insns.
31718 (reload_<mode>_store): Likewise.
31720 * doc/md.texi (PowerPC and IBM RS6000 constraints): Document wg
31723 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Print out wg
31724 constraint if -mdebug=reg.
31725 (rs6000_initi_hard_regno_mode_ok): Enable wg constraint if -mfpgpr.
31726 Enable using dd reload support if needed.
31728 * config/rs6000/dfp.md (movtd): Delete, combine with 128-bit
31729 binary and decimal floating point moves in rs6000.md.
31730 (movtd_internal): Likewise.
31732 * config/rs6000/rs6000.md (FMOVE128): Combine 128-bit binary and
31733 decimal floating point moves.
31735 (movtf_internal): Likewise.
31736 (mov<mode>_internal, TDmode/TFmode): Likewise.
31737 (movtf_softfloat): Likewise.
31738 (mov<mode>_softfloat, TDmode/TFmode): Likewise.
31740 * config/rs6000/rs6000.md (movdi_mfpgpr): Delete, combine with
31741 movdi_internal64, using wg constraint for move direct operations.
31742 (movdi_internal64): Likewise.
31744 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Print
31745 MODES_TIEABLE_P for selected modes. Print the numerical value of
31746 the various virtual registers. Use GPR/FPR first/last values,
31747 instead of hard coding the register numbers. Print which modes
31748 have reload functions registered.
31749 (rs6000_option_override_internal): If -mdebug=reg, trace the options
31750 settings before/after setting cpu, target and subtarget settings.
31751 (rs6000_secondary_reload_trace): Improve the RTL dump for -mdebug=addr
31752 and for secondary reload failures in rs6000_secondary_reload_inner.
31753 (rs6000_secondary_reload_fail): Likewise.
31754 (rs6000_secondary_reload_inner): Likewise.
31756 * config/rs6000/rs6000.md (FIRST_GPR_REGNO): Add convenience
31757 macros for first/last GPR and FPR registers.
31758 (LAST_GPR_REGNO): Likewise.
31759 (FIRST_FPR_REGNO): Likewise.
31760 (LAST_FPR_REGNO): Likewise.
31762 * config/rs6000/vector.md (mul<mode>3): Use the combined macro
31763 VECTOR_UNIT_ALTIVEC_OR_VSX_P instead of separate calls to
31764 VECTOR_UNIT_ALTIVEC_P and VECTOR_UNIT_VSX_P.
31765 (vcond<mode><mode>): Likewise.
31766 (vcondu<mode><mode>): Likewise.
31767 (vector_gtu<mode>): Likewise.
31768 (vector_gte<mode>): Likewise.
31769 (xor<mode>3): Don't allow logical operations on TImode in 32-bit
31770 to prevent the compiler from converting DImode operations to TImode.
31771 (ior<mode>3): Likewise.
31772 (and<mode>3): Likewise.
31773 (one_cmpl<mode>2): Likewise.
31774 (nor<mode>3): Likewise.
31775 (andc<mode>3): Likewise.
31777 * config/rs6000/constraints.md (wt constraint): New constraint
31778 that returns VSX_REGS if TImode is allowed in VSX registers.
31780 * config/rs6000/predicates.md (easy_fp_constant): 0.0f is an easy
31781 constant under VSX.
31783 * config/rs6000/rs6000-modes.def (PTImode): Define, PTImode is
31784 similar to TImode, but it is restricted to being in the GPRs.
31786 * config/rs6000/rs6000.opt (-mvsx-timode): New switch to allow
31787 TImode to occupy a single VSX register.
31789 * config/rs6000/rs6000-cpus.def (ISA_2_6_MASKS_SERVER): Default to
31790 -mvsx-timode for power7/power8.
31791 (power7 cpu): Likewise.
31792 (power8 cpu): Likewise.
31794 * config/rs6000/rs6000.c (rs6000_hard_regno_nregs_internal): Make
31795 sure that TFmode/TDmode take up two registers if they are ever
31796 allowed in the upper VSX registers.
31797 (rs6000_hard_regno_mode_ok): If -mvsx-timode, allow TImode in VSX
31799 (rs6000_init_hard_regno_mode_ok): Likewise.
31800 (rs6000_debug_reg_global): Add debugging for PTImode and wt
31801 constraint. Print if LRA is turned on.
31802 (rs6000_option_override_internal): Give an error if -mvsx-timode
31803 and VSX is not enabled.
31804 (invalid_e500_subreg): Handle PTImode, restricting it to GPRs. If
31805 -mvsx-timode, restrict TImode to reg+reg addressing, and PTImode
31806 to reg+offset addressing. Use PTImode when checking offset
31807 addresses for validity.
31808 (reg_offset_addressing_ok_p): Likewise.
31809 (rs6000_legitimate_offset_address_p): Likewise.
31810 (rs6000_legitimize_address): Likewise.
31811 (rs6000_legitimize_reload_address): Likewise.
31812 (rs6000_legitimate_address_p): Likewise.
31813 (rs6000_eliminate_indexed_memrefs): Likewise.
31814 (rs6000_emit_move): Likewise.
31815 (rs6000_secondary_reload): Likewise.
31816 (rs6000_secondary_reload_inner): Handle PTImode. Allow 64-bit
31817 reloads to fpr registers to continue to use reg+offset addressing,
31818 but 64-bit reloads to altivec registers need reg+reg addressing.
31819 Drop test for PRE_MODIFY, since VSX loads/stores no longer support
31820 it. Treat LO_SUM like a PLUS operation.
31821 (rs6000_secondary_reload_class): If type is 64-bit, prefer to use
31822 FLOAT_REGS instead of VSX_RGS to allow use of reg+offset addressing.
31823 (rs6000_cannot_change_mode_class): Do not allow TImode in VSX
31824 registers to share a register with a smaller sized type, since VSX
31825 puts scalars in the upper 64-bits.
31826 (print_operand): Add support for PTImode.
31827 (rs6000_register_move_cost): Use VECTOR_MEM_VSX_P instead of
31828 VECTOR_UNIT_VSX_P to catch types that can be loaded in VSX
31829 registers, but don't have arithmetic support.
31830 (rs6000_memory_move_cost): Add test for VSX.
31831 (rs6000_opt_masks): Add -mvsx-timode.
31833 * config/rs6000/vsx.md (VSm): Change to use 64-bit aligned moves
31836 (VSr): Use wt constraint for TImode.
31837 (VSv): Drop TImode support.
31838 (vsx_movti): Delete, replace with versions for 32-bit and 64-bit.
31839 (vsx_movti_64bit): Likewise.
31840 (vsx_movti_32bit): Likewise.
31841 (vec_store_<mode>): Use VSX iterator instead of vector iterator.
31842 (vsx_and<mode>3): Delete use of '?' constraint on inputs, just put
31843 one '?' on the appropriate output constraint. Do not allow TImode
31844 logical operations on 32-bit systems.
31845 (vsx_ior<mode>3): Likewise.
31846 (vsx_xor<mode>3): Likewise.
31847 (vsx_one_cmpl<mode>2): Likewise.
31848 (vsx_nor<mode>3): Likewise.
31849 (vsx_andc<mode>3): Likewise.
31850 (vsx_concat_<mode>): Likewise.
31851 (vsx_xxpermdi_<mode>): Fix thinko for non V2DF/V2DI modes.
31853 * config/rs6000/rs6000.h (MASK_VSX_TIMODE): Map from
31854 OPTION_MASK_VSX_TIMODE.
31855 (enum rs6000_reg_class_enum): Add RS6000_CONSTRAINT_wt.
31856 (STACK_SAVEAREA_MODE): Use PTImode instead of TImode.
31858 * config/rs6000/rs6000.md (INT mode attribute): Add PTImode.
31859 (TI2 iterator): New iterator for TImode, PTImode.
31860 (wd mode attribute): Add values for vector types.
31861 (movti_string): Replace TI move operations with operations for TImode
31862 and PTImode. Add support for TImode being allowed in VSX registers.
31863 (mov<mode>_string, TImode/PTImode): Likewise.
31864 (movti_ppc64): Likewise.
31865 (mov<mode>_ppc64, TImode/PTImode): Likewise.
31866 (TI mode splitters): Likewise.
31868 * doc/md.texi (PowerPC and IBM RS6000 constraints): Document wt
31871 2013-03-20 Marc Glisse <marc.glisse@inria.fr>
31873 PR tree-optimization/56355
31874 * fold-const.c (tree_binary_nonnegative_warnv_p) <MULT_EXPR>:
31875 Also handle integers with undefined overflow.
31877 2013-03-20 Catherine Moore <clm@codesourcery.com>
31878 Maciej W. Rozycki <macro@codesourcery.com>
31879 Tom de Vries <tom@codesourcery.com>
31880 Nathan Sidwell <nathan@codesourcery.com>
31881 Iain Sandoe <iain@codesourcery.com>
31882 Nathan Froyd <froydnj@codesourcery.com>
31883 Chao-ying Fu <fu@mips.com>
31885 * doc/extend.texi: (micromips, nomicromips, nocompression):
31886 Document new function attributes.
31887 * doc/invoke.texi (minterlink-compressed, mmicromips,
31888 m14k, m14ke, m14kec): Document new options.
31889 (minterlink-mips16): Update documentation.
31890 * doc/md.texi (ZC, ZD): Document new constraints.
31891 * configure.ac (gcc_cv_as_micromips): Check if linker
31892 supports the .set micromips directive.
31893 * configure: Regenerate.
31894 * config.in: Regenerate.
31895 * config/mips/mips-tables.opt: Regenerate.
31896 * config/mips/micromips.md: New file.
31897 * constraints.md (ZC, ZD): New constraints.
31898 * config/mips/predicates.md (movep_src_register): New predicate.
31899 (movep_src_operand): New predicate.
31900 (non_volatile_mem_operand): New predicate.
31901 * config/mips/mips.md (multimem): New type.
31902 (length): Differentiate between 17-bit and 18-bit branch offsets.
31903 (MOVEP1, MOVEP2): New mode iterator.
31904 (mov_<load>l): Use ZC constraint.
31905 (mov_<load>r): Likewise.
31906 (mov_<store>l): Likewise.
31907 (mov_<store>r): Likewise.
31908 (*branch_equality<mode>_inverted): Add microMIPS support.
31909 (*branch_equality<mode>): Likewise.
31910 (*jump_absolute): Likewise.
31911 (indirect_jump_<mode>): Likewise.
31912 (tablejump_<mode>): Likewise.
31913 (<optab>_internal): Likewise.
31914 (sibcall_internal): Likewise.
31915 (sibcall_value_internal): Likewise.
31916 (prefetch): Use constraint ZD.
31917 * config/mips/mips.opt (minterlink-compressed): New option.
31918 (minterlink-mips16): Now an alias for minterlink-compressed.
31919 (mmicromips): New option.
31920 * config/mips/sync.md (sync_compare_and_swap<mode>): Use ZR constraint.
31921 (compare_and_swap_12): Likewise.
31922 (sync_add<mode>): Likewise.
31923 (sync_<optab>_12): Likewise.
31924 (sync_old_<optab>_12): Likewise.
31925 (sync_new_<optab>_12): Likewise.
31926 (sync_nand_12): Likewise.
31927 (sync_old_nand_12): Likewise.
31928 (sync_new_nand_12): Likewise.
31929 (sync_sub<mode>): Likewise.
31930 (sync_old_add<mode>): Likewise.
31931 (sync_old_sub<mode>): Likewise.
31932 (sync_new_add<mode>): Likewise.
31933 (sync_new_sub<mode>): Likewise.
31934 (sync_<optab><mode>): Likewise.
31935 (sync_old_<optab><mode>): Likewise.
31936 (sync_new_<optab><mode>): Likewise.
31937 (sync_nand<mode>): Likewise.
31938 (sync_old_nand<mode>): Likewise.
31939 (sync_new_nand<mode>): Likewise.
31940 (sync_lock_test_and_set<mode>): Likewise.
31941 (test_and_set_12): Likewise.
31942 (atomic_compare_and_swap<mode>): Likewise.
31943 (atomic_exchange<mode>_llsc): Likewise.
31944 (atomic_fetch_add<mode>_llsc): Likewise.
31945 * config/mips/mips-cpus.def (m14kc, m14k): New processors.
31946 * config/mips/mips-protos.h (umips_output_save_restore): New prototype.
31947 (umips_save_restore_pattern_p): Likewise.
31948 (umips_load_store_pair_p): Likewise.
31949 (umips_output_load_store_pair): Likewise.
31950 (umips_movep_target_p): Likewise.
31951 (umips_12bit_offset_address_p): Likewise.
31952 * config/mips/mips.c (MIPS_MAX_FIRST_STEP): Update for microMIPS.
31953 (mips_base_mips16): Rename this...
31954 (mips_base_compression_flags): ...to this. Update all uses.
31955 (mips_attribute_table): Add micromips, nomicromips and nocompression.
31956 (mips_mips16_decl_p): Delete.
31957 (mips_nomips16_decl_p): Delete.
31958 (mips_get_compress_on_flags): New function.
31959 (mips_get_compress_off_flags): New function.
31960 (mips_get_compress_mode): New function.
31961 (mips_get_compress_on_name): New function.
31962 (mips_get_compress_off_name): New function.
31963 (mips_insert_attributes): Support multiple compression types.
31964 (mips_merge_decl_attributes): Likewise.
31965 (umips_12bit_offset_address_p): New function.
31966 (mips_start_function_definition): Emit .set micromips directive.
31967 (mips_call_may_need_jalx_p): New function.
31968 (mips_function_ok_for_sibcall): Add microMIPS support.
31969 (mips_print_operand_punctuation): Support short delay slots and
31971 (umips_swm_mask, umips_swm_encoding): New.
31972 (umips_build_save_restore): New function.
31973 (mips_for_each_saved_gpr_and_fpr): Add microMIPS support.
31974 (was_mips16_p): Remove.
31975 (old_compression_mode): New.
31976 (mips_set_compression_mode): New function.
31977 (mips_set_current_function): Add microMIPS support.
31978 (mips_option_override): Likewise.
31979 (umips_save_restore_pattern_p): New function.
31980 (umips_output_save_restore): New function.
31981 (umips_load_store_pair_p_1): New function.
31982 (umips_load_store_pair_p): New function.
31983 (umips_output_load_store_pair_1): New function.
31984 (umips_output_load_store_pair): New function.
31985 (umips_movep_target_p) New function.
31986 (mips_prepare_pch_save): Add microMIPS support.
31987 * config/mips/mips.h (TARGET_COMPRESSION): New.
31988 (TARGET_CPU_CPP_BUILTINS): Update macro
31989 to use new compression flags and to support microMIPS.
31990 (MIPS_ISA_LEVEL_SPEC): Add m14k processors.
31991 (MIPS_ARCH_FLOAT_SPEC): Likewise.
31992 (ISA_HAS_LWXS): Include TARGET_MICROMIPS.
31993 (ISA_HAS_LOAD_DELAY): Exclude TARGET_MICROMIPS.
31994 (ASM_SPEC): Support mmicromips and mno-micromips.
31995 (M16STORE_REG_P): New macro.
31996 (MIPS_CALL): Support TARGET_MICROMIPS.
31997 (MICROMIPS_J): New macro.
31998 (mips_base_mips16): Rename this...
31999 (mips_base_compression_flags): ...to this.
32000 (UMIPS_12BIT_OFFSET_P): New macro.
32001 * config/mips/t-sde: (MULTILIB_OPTIONS): Add microMIPS.
32002 (MULTILIB_DIRNAMES): Likewise.
32003 2013-03-20 Richard Biener <rguenther@suse.de>
32005 PR tree-optimization/56661
32006 * tree-ssa-sccvn.c (visit_use): Only value-number calls if
32007 the result does not have to be distinct.
32009 2013-03-20 Richard Biener <rguenther@suse.de>
32011 * tree-inline.c (copy_tree_body_r): Sync MEM_REF code with
32014 2013-03-20 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
32015 Steven Bosscher <steven@gcc.gnu.org>
32017 PR rtl-optimization/56605
32018 * loop-iv.c (implies_p): Handle equal RTXs and subregs.
32020 2013-03-20 Uros Bizjak <ubizjak@gmail.com>
32023 * config/i386/i386.md (*movdi_internal): Handle broken assemblers
32024 that require movd instead of movq.
32026 2013-03-20 Richard Biener <rguenther@suse.de>
32028 * tree-ssa-structalias.c (struct variable_info): Add pointer
32029 to the first field of an aggregate with sub-vars. Make
32030 this and the pointer to the next subfield its ID.
32031 (vi_next): New function.
32032 (nothing_id, anything_id, readonly_id, escaped_id, nonlocal_id,
32033 storedanything_id, integer_id): Increment by one.
32034 (new_var_info, get_call_vi, lookup_call_clobber_vi,
32035 get_call_clobber_vi): Adjust.
32036 (solution_set_expand): Simplify and speedup.
32037 (solution_set_add): Inline into ...
32038 (set_union_with_increment): ... this. Adjust accordingly.
32039 (do_sd_constraint): Likewise.
32040 (do_ds_constraint): Likewise.
32041 (do_complex_constraint): Simplify.
32042 (build_pred_graph): Adjust.
32043 (solve_graph): Likewise. Simplify and speedup.
32044 (get_constraint_for_ssa_var, get_constraint_for_ptr_offset,
32045 get_constraint_for_component_ref, get_constraint_for_1,
32046 first_vi_for_offset, first_or_preceding_vi_for_offset,
32047 create_function_info_for, create_variable_info_for_1,
32048 create_variable_info_for, intra_create_variable_infos): Adjust.
32049 (init_base_vars): Push NULL for ID zero.
32050 (compute_points_to_sets): Adjust.
32052 2013-03-20 Richard Biener <rguenther@suse.de>
32054 * cfgloop.c (verify_loop_structure): Streamline and avoid
32055 ICEing on corrupt loop tree.
32056 * graph.c (draw_cfg_nodes_for_loop): Avoid ICEing on corrupt
32059 2013-03-20 Richard Biener <rguenther@suse.de>
32061 * tree-vect-loop-manip.c (slpeel_can_duplicate_loop_p): Do not
32062 check whether an SSA update is needed.
32064 2013-03-20 Richard Sandiford <rdsandiford@googlemail.com>
32066 * config/mips/constraints.md (T): Rename to...
32070 * config/mips/mips.md (*movdi_64bit, *movdi_64bit_mips16)
32071 (*mov<mode>_internal, *mov<mode>_mips16): Update accordingly.
32073 2013-03-19 Ian Bolton <ian.bolton@arm.com>
32075 * config/aarch64/aarch64.md (*sub<mode>3_carryin): New pattern.
32076 (*subsi3_carryin_uxtw): Likewise.
32078 2013-03-19 Ian Bolton <ian.bolton@arm.com>
32080 * config/aarch64/aarch64.md (*ror<mode>3_insn): New pattern.
32081 (*rorsi3_insn_uxtw): Likewise.
32083 2013-03-19 Ian Bolton <ian.bolton@arm.com>
32085 * config/aarch64/aarch64.md (*extr<mode>5_insn): New pattern.
32086 (*extrsi5_insn_uxtw): Likewise.
32088 2013-03-19 Richard Biener <rguenther@suse.de>
32090 PR tree-optimization/56273
32091 * passes.c (init_optimization_passes): Move second VRP after DOM.
32093 2013-03-19 Uros Bizjak <ubizjak@gmail.com>
32095 * config/i386/i386.md (*movti_internal): Merge from
32096 *movti_internal_rex64 and *movti_internal_sse. Use x64 isa attribute.
32097 (*movdi_internal): Merge with *movdi_internal_rex64. Use x64 and
32098 nox64 isa attributes.
32100 2013-03-18 Richard Biener <rguenther@suse.de>
32102 * tree-ssa-structalias.c (find): Use gcc_checking_assert.
32104 (merge_node_constraints): Likewise.
32105 (build_succ_graph): Likewise.
32106 (valid_graph_edge): Inline into single caller.
32107 (unify_nodes): Likewise. Use bitmap_set_bit return value
32109 (scc_visit): Fix formatting and variable use.
32110 (do_sd_constraint): Use gcc_checking_assert.
32111 (do_ds_constraint): Likewise.
32112 (do_complex_constraint): Likewise.
32113 (condense_visit): Likewise. Cleanup.
32114 (dump_pred_graph): New function.
32115 (perform_var_substitution): Dump the pred-graph before
32116 variable substitution.
32117 (find_equivalent_node): Use gcc_checking_assert.
32118 (rewrite_constraints): Guard checking loop with ENABLE_CHECKING.
32120 2013-03-18 Richard Biener <rguenther@suse.de>
32122 * tree-vect-loop-manip.c (vect_create_cond_for_alias_checks):
32123 Remove cond_expr_stmt_list argument and do not gimplify the
32125 (vect_loop_versioning): Adjust.
32126 * tree-vect-data-refs.c (vect_create_addr_base_for_vector_ref):
32127 Cleanup to use less temporaries.
32128 (vect_create_data_ref_ptr): Cleanup.
32130 2013-03-18 Jakub Jelinek <jakub@redhat.com>
32132 PR tree-optimization/56635
32133 * fold-const.c (operand_equal_p): For MEM_REF and TARGET_MEM_REF,
32134 require types_compatible_p types.
32136 2013-03-18 Nick Clifton <nickc@redhat.com>
32138 * config/stormy16/stormy16.c (xstormy16_expand_prologue): Remove
32139 spurious backslash.
32141 * config/mn10300/mn10300.c (mn10300_get_live_callee_saved_regs):
32142 Add missing line to comment describing function.
32144 2013-03-18 Richard Biener <rguenther@suse.de>
32146 PR tree-optimization/56210
32147 * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
32148 Handle string / character search functions.
32149 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Likewise.
32151 2013-03-18 Richard Biener <rguenther@suse.de>
32153 PR middle-end/56483
32154 * cfgexpand.c (expand_gimple_cond): Inline gimple_cond_single_var_p
32155 and implement properly.
32156 * gimple.h (gimple_cond_single_var_p): Remove.
32158 2013-03-18 Richard Biener <rguenther@suse.de>
32160 * tree-data-ref.h (find_data_references_in_loop): Declare.
32161 * tree-data-ref.c (get_references_in_stmt): Use a stack
32162 vector pre-allocated in the callers.
32163 (find_data_references_in_stmt): Adjust.
32164 (graphite_find_data_references_in_stmt): Likewise.
32165 (create_rdg_vertices): Likewise.
32166 (find_data_references_in_loop): Export.
32167 * tree-vect-data-refs.c (vect_analyze_data_ref_dependences):
32168 Compute dependences here...
32169 (vect_analyze_data_refs): ...not here. When we encounter
32170 a non-vectorizable data reference in basic-block vectorization
32171 truncate the data reference vector. Do not bother to
32172 fixup data-dependence information for gather loads.
32173 * tree-vect-slp.c (vect_slp_analyze_bb_1): Check the number
32174 of data references, as reported.
32176 2013-03-18 Richard Biener <rguenther@suse.de>
32178 PR tree-optimization/3713
32179 * tree-ssa-sccvn.c (visit_copy): Simplify. Always propagate
32180 has_constants and expr.
32181 (stmt_has_constants): Properly valueize SSA names when deciding
32182 whether the stmt has constants.
32184 2013-03-18 Richard Biener <rguenther@suse.de>
32186 * tree-ssa-loop-manip.c (find_uses_to_rename): Do not scan the
32187 whole function when there is nothing to do.
32188 * tree-ssa-loop.c (pass_vectorize): Remove TODO_update_ssa.
32189 * tree-vectorizer.c (vectorize_loops): Update virtual and
32190 loop-closed SSA once.
32191 * tree-vect-loop.c (vect_transform_loop): Do not update SSA here.
32193 2013-03-18 Richard Biener <rguenther@suse.de>
32195 PR middle-end/56113
32196 * domwalk.c (bb_postorder): New global static.
32197 (cmp_bb_postorder): New function.
32198 (walk_dominator_tree): Replace scheme imposing an order for
32199 visiting dominator sons by one sorting them at the time they
32200 are pushed on the stack.
32202 2013-03-18 Richard Biener <rguenther@suse.de>
32204 PR tree-optimization/39326
32205 * tree-ssa-loop-im.c (refs_independent_p): Exploit symmetry.
32206 (struct mem_ref): Replace mem member with ao_ref typed member.
32207 (MEM_ANALYZABLE): Adjust.
32208 (memref_eq): Likewise.
32209 (mem_ref_alloc): Likewise.
32210 (gather_mem_refs_stmt): Likewise.
32211 (mem_refs_may_alias_p): Use the ao_ref to query the alias oracle.
32212 (execute_sm_if_changed_flag_set): Adjust.
32213 (execute_sm): Likewise.
32214 (ref_always_accessed_p): Likewise.
32215 (refs_independent_p): Likewise.
32216 (can_sm_ref_p): Likewise.
32218 2013-03-18 Jakub Jelinek <jakub@redhat.com>
32221 * tree.c (tree_int_cst_min_precision): For integer_zerop (value)
32222 return 1 even for !unsignedp.
32224 2013-03-17 Uros Bizjak <ubizjak@gmail.com>
32226 * config/i386/i386.md (isa): Add x64 and nox64.
32227 (enabled): Define x64 for TARGET_64BIT and nox64 for !TARGET_64BIT.
32228 (*pushtf): Enable *roF alternative for x64 isa only.
32229 (*pushxf): Merge with *pushxf_nointeger. Use Yx*r constraint. Set
32230 mode attribute of integer alternatives to DImode for TARGET_64BIT.
32231 (*pushdf): Merge with *pushdf_rex64. Use x64 and nox64 isa attributes.
32232 (*movtf_internal): Merge from *movtf_internal_rex64 and
32233 *movtf_internal_sse. Use x64 and nox64 isa attributes.
32234 (*movxf_internal): Merge with *movxf_internal_rex64. Use x64 and
32235 nox64 isa attributes.
32236 (*movdf_internal): Merge with *movdf_internal_rex64. Use x64 and
32237 nox64 isa attributes.
32238 * config/i386/constraints.md (Yd): Do not set for TARGET_64BIT.
32240 2013-03-17 Uros Bizjak <ubizjak@gmail.com>
32242 * config/alpha/alpha.c (TARGET_LRA_P): New define.
32244 2013-03-17 Jakub Jelinek <jakub@redhat.com>
32247 * config/arm/arm.h (REG_CLASS_NAMES): Add "SFP_REG" and "AFP_REG"
32248 class names. Remove trailing comma after "ALL_REGS".
32250 2013-03-16 Jan Hubicka <jh@suse.cz>
32252 * cgraph.h (cgraph_get_create_real_symbol_node): Declare.
32253 * cgraph.c (cgraph_get_create_real_symbol_node): New function.
32254 * cgrpahbuild.c: Use cgraph_get_create_real_symbol_node instead
32255 of cgraph_get_create_node.
32256 * ipa-prop.c (ipa_make_edge_direct_to_target): Likewise.
32258 2013-03-16 Jason Merrill <jason@redhat.com>
32261 * dwarf2out.c (gen_generic_params_dies): Indicate default arguments
32262 with DW_AT_default_value.
32264 2013-03-16 Jakub Jelinek <jakub@redhat.com>
32266 * BASE-VER: Set to 4.9.0.
32268 2013-03-14 Andi Kleen <ak@linux.intel.com>
32271 * doc/extend.texi: Document __ATOMIC_HLE_ACQUIRE,
32272 __ATOMIC_HLE_RELEASE. Document __builtin_ia32 TSX intrincs.
32273 Document _x* TSX intrinsics.
32275 2013-03-14 Edgar E. Iglesias <edgar.iglesias@xilinx.com>
32276 David Holsgrove <david.holsgrove@xilinx.com>
32278 * configure.ac: Add MicroBlaze TLS support detection.
32279 * configure: Regenerate.
32280 * config/microblaze/microblaze-protos.h
32281 (microblaze_cannot_force_const_mem, microblaze_tls_referenced_p,
32282 symbol_mentioned_p, label_mentioned_p): Add prototypes.
32283 * config/microblaze/microblaze.c (microblaze_address_type): Add
32284 ADDRESS_TLS and tls_reloc address types.
32285 (microblaze_address_info): Add tls_reloc.
32286 (TARGET_HAVE_TLS): Define.
32287 (get_tls_get_addr, microblaze_tls_symbol_p, microblaze_tls_operand_p_1,
32288 microblaze_tls_referenced_p, microblaze_cannot_force_const_mem,
32289 symbol_mentioned_p, label_mentioned_p, tls_mentioned_p,
32290 load_tls_operand, microblaze_call_tls_get_addr,
32291 microblaze_legitimize_tls_address): New functions.
32292 (microblaze_classify_unspec): Handle UNSPEC_TLS.
32293 (get_base_reg): Use microblaze_tls_symbol_p.
32294 (microblaze_classify_address): Handle TLS.
32295 (microblaze_legitimate_pic_operand): Use symbol_mentioned_p,
32296 label_mentioned_p and microblaze_tls_referenced_p.
32297 (microblaze_legitimize_address): Handle TLS.
32298 (microblaze_address_insns): Handle ADDRESS_TLS.
32299 (pic_address_needs_scratch): Handle TLS.
32300 (print_operand_address): Handle TLS.
32301 (microblaze_expand_prologue): Check TLS_NEEDS_GOT.
32302 (microblaze_expand_move): Handle TLS.
32303 (microblaze_legitimate_constant_p): Check
32304 microblaze_cannot_force_const_mem and microblaze_tls_symbol_p.
32305 (TARGET_CANNOT_FORCE_CONST_MEM): Define.
32306 * config/microblaze/microblaze.h (TLS_NEEDS_GOT): Define
32307 (PIC_OFFSET_TABLE_REGNUM): Set.
32308 * config/microblaze/linux.h (TLS_NEEDS_GOT): Define.
32309 * config/microblaze/microblaze.md (UNSPEC_TLS): Define.
32310 (addsi3, movsi_internal2, movdf_internal): Update constraints
32311 * config/microblaze/predicates.md (arith_plus_operand): Define
32312 (move_operand): Redefine as move_src_operand,
32313 check microblaze_tls_referenced_p.
32315 2013-03-14 Ian Bolton <ian.bolton@arm.com>
32317 * config/aarch64/aarch64.md: (*and<mode>3nr_compare0): Use CC_NZ.
32318 (*and_<SHIFT:optab><mode>3nr_compare0): Likewise.
32320 2013-03-14 Ian Bolton <ian.bolton@arm.com>
32322 * config/aarch64/aarch64.c (aarch64_select_cc_mode): Return correct
32325 2013-03-14 Jakub Jelinek <jakub@redhat.com>
32327 PR tree-optimization/53265
32328 * common.opt (Waggressive-loop-optimizations): New option.
32329 * tree-ssa-loop-niter.c: Include tree-pass.h.
32330 (do_warn_aggressive_loop_optimizations): New function.
32331 (record_estimate): Call it. Don't add !is_exit bounds to loop->bounds
32332 if number_of_latch_executions returned constant.
32333 (estimate_numbers_of_iterations_loop): Call number_of_latch_executions
32334 early. If number_of_latch_executions returned constant, set
32335 nb_iterations_upper_bound back to it.
32336 * cfgloop.h (struct loop): Add warned_aggressive_loop_optimizations
32338 * Makefile.in (tree-ssa-loop-niter.o): Depend on $(TREE_PASS_H).
32339 * doc/invoke.texi (-Wno-aggressive-loop-optimizations): Document.
32341 * config/aarch64/t-aarch64-linux (MULTARCH_DIRNAME): Remove.
32342 (MULTILIB_OSDIRNAMES): Set.
32343 * genmultilib: If defaultosdirname doesn't start with :: , set
32344 defaultosdirname2 instead, clear it and emit two . multilib_raw
32345 entries instead of just one.
32347 2013-03-14 Kaz Kojima <kkojima@gcc.gnu.org>
32349 * config/sh/linux.h (TARGET_DEFAULT): Remove MASK_USERMODE.
32350 (SUBTARGET_OVERRIDE_OPTIONS): Set TARGET_USERMODE as default.
32351 * config/sh/netbsd-elf.h (TARGET_DEFAULT): Remove MASK_USERMODE.
32352 (SUBTARGET_OVERRIDE_OPTIONS): New.
32354 2013-03-13 Oleg Endo <olegendo@gcc.gnu.org>
32357 * config/sh/sh.opt (FPU_SINGLE_ONLY): New mask.
32358 (musermode): Convert to Var(TARGET_USERMODE).
32359 * config/sh/sh.h (SELECT_SH2A_SINGLE_ONLY, SELECT_SH4_SINGLE_ONLY,
32360 MASK_ARCH): Add MASK_FPU_SINGLE_ONLY.
32361 * config/sh/sh.c (sh_option_override): Use
32362 TARGET_FPU_DOUBLE || TARGET_FPU_SINGLE_ONLY for call-fp case.
32363 * config/sh/sh.md (udivsi3_i1, divsi3_i1): Remove ! TARGET_SH4
32365 (udivsi3_i4, divsi3_i4): Use TARGET_FPU_DOUBLE condition instead of
32367 (udivsi3_i4_single, divsi3_i4_single): Use
32368 TARGET_FPU_SINGLE_ONLY || TARGET_FPU_DOUBLE instead of TARGET_HARD_SH4.
32370 2013-03-13 Dave Korn <dave.korn.cygwin@gmail.com>
32372 * config/i386/cygwin.h (SHARED_LIBGCC_SPEC): Make shared libgcc the
32375 2013-03-13 Richard Biener <rguenther@suse.de>
32377 PR tree-optimization/56608
32378 * tree-vect-slp.c (vect_schedule_slp): Do not remove scalar
32379 calls when vectorizing basic-blocks.
32381 2013-03-13 Jakub Jelinek <jakub@redhat.com>
32384 * config.gcc: On arm, mips, sh and sparc add vxworks-dummy.h to
32387 2013-03-12 Jakub Jelinek <jakub@redhat.com>
32389 * doc/invoke.texi (-Waddr-space-convert): Move into the table earlier.
32391 2013-03-11 Jan Hubicka <jh@suse.cz>
32394 * lto-streamer-out.c (output_symbol_p): Skip references from
32395 constructors of external variables.
32397 2013-03-11 Jan Hubicka <jh@suse.cz>
32399 PR middle-end/56571
32400 * valtrack.c (cleanup_auto_inc_dec): Unshare clobbers originating
32402 * emit-rtl.c (verify_rtx_sharing): Likewise.
32403 (copy_insn_1): Likewise.
32404 * rtl.c (copy_rtx): Likewise.
32406 2013-03-11 Georg-Johann Lay <avr@gjlay.de>
32409 * config/avr/avr.c (avr_print_operand): Add space after '%c' in
32410 output_operand_lossage message.
32412 2013-03-11 Richard Earnshaw <rearnsha@arm.com>
32415 * arm.c (shift_op): Validate RTL pattern on the fly.
32416 (arm_print_operand, case 'S'): Don't use shift_operator to validate
32419 2013-03-10 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
32422 * config/pa/pa.md (call_value): Check for calls to powf and direct to
32423 new call patterns that clobber %fr12.
32424 (call_val_powf, call_val_powf_pic, call_val_powf_64bit): New insn,
32425 split and postreload patterns.
32426 * config/pa/pa.c (pa_conditional_register_usage): Revert marking
32427 registers %fr12 and %fr12R as call used.
32429 2013-03-09 Steven Bosscher <steven@gcc.gnu.org>
32431 * dse.c (delete_dead_store_insn): Respect TDF_DETAILS.
32432 (canon_address, record_store, replace_read, check_mem_read_rtx,
32433 scan_insn, dse_step1, dse_step2_init, dse_step2_spill,
32434 dse_step4, dse_step5_nospill, dse_step5_spill, dse_step6,
32435 rest_of_handle_dse): Likewise.
32437 2013-03-09 Richard Sandiford <rdsandiford@googlemail.com>
32439 PR middle-end/56524
32440 * tree.h (tree_optimization_option): Rename target_optabs to optabs.
32442 (TREE_OPTIMIZATION_OPTABS): Update after previous field change.
32443 (TREE_OPTIMIZATION_BASE_OPTABS): New macro.
32444 (save_optabs_if_changed): Replace with...
32445 (init_tree_optimization_optabs): ...this.
32446 * optabs.c (save_optabs_if_changed): Rename to...
32447 (init_tree_optimization_optabs): ...this. Take the optimization node
32448 as argument. Do nothing if the base optabs are already correct.
32449 Reuse the existing TREE_OPTIMIZATION_OPTABS memory if we need
32450 to recompute optabs.
32451 * function.h (function): Remove optabs field.
32452 * function.c (invoke_set_current_function_hook): Call
32453 init_tree_optimization_optabs. Use the result to initialize
32456 2013-02-27 Aldy Hernandez <aldyh@redhat.com>
32458 * trans-mem.c (expand_transaction): Do not set PR_INSTRUMENTEDCODE
32459 if GTMA_HAS_NO_INSTRUMENTATION.
32460 (generate_tm_state): Keep GTMA_HAS_NO_INSTRUMENTATION bit.
32461 (ipa_tm_transform_transaction): Set GTMA_HAS_NO_INSTRUMENTATION.
32462 * gimple.h (GTMA_HAS_NO_INSTRUMENTATION): Define.
32463 * gimple-pretty-print.c (dump_gimple_transaction): Handle
32464 GTMA_HAS_NO_INSTRUMENTATION.
32466 2013-03-08 Jakub Jelinek <jakub@redhat.com>
32468 * config/gnu-user.h (LIBTSAN_EARLY_SPEC): Don't link against
32471 2013-03-08 Marek Polacek <polacek@redhat.com>
32472 Jakub Jelinek <jakub@redhat.com>
32474 PR tree-optimization/56478
32475 * predict.c (is_comparison_with_loop_invariant_p): Change the
32476 type of loop_step to tree.
32477 (predict_loops): Adjust.
32478 (predict_iv_comparison): Perform the computations on double_ints.
32480 2013-03-08 Richard Biener <rguenther@suse.de>
32482 PR tree-optimization/56570
32483 * tree-cfg.c (verify_expr_location_1): Verify locations for
32485 * tree-sra.c (create_access_replacement): Strip locations
32486 from DECL_DEBUG_EXPRs.
32488 2013-03-08 Richard Biener <rguenther@suse.de>
32490 * tree-inline.c (expand_call_inline): Do not associate
32491 a BLOCK with the location in BLOCK_SOURCE_LOCATION.
32492 * tree-cfg.c (verify_location): Verify BLOCK_SOURCE_LOCATION.
32494 2013-03-08 Richard Biener <rguenther@suse.de>
32496 * tree-ssa-ter.c (is_replaceable_p): Do not TER across location
32497 or block changes with -Og. Fix for location / block encoding
32498 changes and PHI arguments with locations.
32500 2013-03-07 Steven Bosscher <steven@gcc.gnu.org>
32502 * bitmap.c (struct bitmap_descriptor_d): Use unsigned HOST_WIDEST_INT
32504 (struct output_info): Likewise.
32505 (register_overhead): Remove bad gcc_assert.
32506 (bitmap_find_bit): If there is only a single bitmap element, do not
32507 count a miss as a search.
32508 (print_statistics): Update for counter type changes.
32509 (dump_bitmap_statistics): Likewise. Print headers such that they
32510 are properly lined up with the printed counters.
32512 2013-03-07 Jakub Jelinek <jakub@redhat.com>
32514 PR tree-optimization/56559
32515 * tree-ssa-reassoc.c (zero_one_operation): When looking at rhs2,
32516 check that it has only a single use.
32518 2013-03-07 Richard Biener <rguenther@suse.de>
32520 * doc/invoke.texi (fwhole-program): Discourage use in combination
32523 2013-03-06 Jakub Jelinek <jakub@redhat.com>
32525 * config/arm/t-arm (TM_H, OPTIONS_H_EXTRA): Add arm-cores.def.
32527 PR tree-optimization/56539
32528 * tree-tailcall.c (adjust_return_value_with_ops): Use GSI_SAME_STMT
32529 instead of GSI_CONTINUE_LINKING as last argument to
32530 force_gimple_operand_gsi. Adjust function comment.
32532 * config/aarch64/t-aarch64 (TM_H, OPTIONS_H_EXTRA): Add
32535 PR middle-end/56548
32536 * expr.c (expand_cond_expr_using_cmove): When expanding cmove in
32537 promoted mode, convert the result back to the original mode.
32539 2013-03-06 Richard Biener <rguenther@suse.de>
32541 PR middle-end/56294
32542 * tree-into-ssa.c (insert_phi_nodes_for): Add dumping.
32543 (insert_updated_phi_nodes_compare_uids): New function.
32544 (update_ssa): Sort symbols_to_rename after UID before
32545 traversing it to insert PHI nodes.
32547 2013-03-06 Richard Biener <rguenther@suse.de>
32549 PR middle-end/50494
32550 * tree-vect-data-refs.c (vect_can_force_dr_alignment_p):
32551 Do not adjust alignment of DECL_IN_CONSTANT_POOL decls.
32554 2013-02-13 Richard Biener <rguenther@suse.de>
32557 * varasm.c (output_constant_def_1): Get the decl representing
32558 the constant as argument.
32559 (output_constant_def): Wrap output_constant_def_1.
32560 (make_decl_rtl): Use output_constant_def_1 with the decl
32561 representing the constant.
32562 (build_constant_desc): Optionally re-use a decl already
32563 representing the constant.
32564 (tree_output_constant_def): Adjust.
32566 2013-03-06 Joey Ye <joey.ye@arm.com>
32569 * gcc.c (convert_white_space): New function.
32570 (main): Handles white space in function name.
32572 2013-03-06 Oleg Endo <olegendo@gcc.gnu.org>
32575 * config/sh/sh.c (sh_option_override): Check for TARGET_DYNSHIFT
32576 instead of TARGET_SH2 for call-table case. Do not set sh_div_strategy
32577 to SH_DIV_CALL_TABLE for TARGET_SH2.
32578 * config.gcc (sh_multilibs): Add m2 and m2a to sh*-*-linux* multilib
32580 * doc/invoke.texi (SH options): Document mdiv= call-div1, call-fp,
32581 call-table options.
32583 2013-03-05 Sterling Augustine <saugustine@google.com>
32584 Cary Coutant <ccoutant@google.com>
32587 * dwarf2out.c (resolve_addr): Don't call
32588 remove_loc_list_addr_table_entries a second time for the same
32591 2013-03-05 Jakub Jelinek <jakub@redhat.com>
32594 * cfgexpand.c (expand_debug_parm_decl): Call copy_rtx on incoming.
32595 (avoid_complex_debug_insns): New function.
32596 (expand_debug_locations): Call it.
32598 PR rtl-optimization/56484
32599 * ifcvt.c (noce_process_if_block): If else_bb is NULL, avoid extending
32600 lifetimes of hard registers on small register class machines.
32602 2013-03-05 David Holsgrove <david.holsgrove@xilinx.com>
32604 * config/microblaze/microblaze-protos.h: Rename
32605 microblaze_is_interrupt_handler to microblaze_is_interrupt_variant.
32606 * config/microblaze/microblaze.c (microblaze_attribute_table): Add
32608 (microblaze_fast_interrupt_function_p): New function.
32609 (microblaze_is_interrupt_handler): Rename to
32610 microblaze_is_interrupt_variant and add fast_interrupt check.
32611 (microblaze_must_save_register): Use microblaze_is_interrupt_variant.
32612 (save_restore_insns): Likewise.
32613 (compute_frame_size): Likewise.
32614 (microblaze_function_prologue): Add FAST_INTERRUPT_NAME.
32615 (microblaze_globalize_label): Likewise.
32616 * config/microblaze/microblaze.h: Define FAST_INTERRUPT_NAME.
32617 * config/microblaze/microblaze.md: Use wrapper
32618 microblaze_is_interrupt_variant.
32620 2013-03-05 Kai Tietz <ktietz@redhat.com>
32622 * sdbout.c (sdbout_one_type): Switch to current function's section
32623 supporting cold/hot.
32625 2013-03-05 David Holsgrove <david.holsgrove@xilinx.com>
32627 * doc/invoke.texi (MicroBlaze): Add -mbig-endian, -mlittle-endian,
32630 2013-03-05 Jakub Jelinek <jakub@redhat.com>
32632 PR middle-end/56461
32633 * ggc-common.c (gt_pch_save): For ENABLE_VALGRIND_CHECKING,
32634 if VALGRIND_GET_VBITS is defined, temporarily make object
32635 memory all defined, and restore previous valgrind addressability
32636 and definability afterwards. Free this_object at the end.
32638 PR middle-end/56461
32639 * lra.c (lra): Call lra_clear_live_ranges if live_p,
32640 right before calling lra_create_live_ranges, also call it
32641 when clearing live_p. Only call lra_clear_live_ranges
32642 at the end if live_p.
32644 PR middle-end/56461
32645 * sched-deps.c (delete_dep_node): Free DEP_REPLACE.
32647 2013-03-05 Richard Biener <rguenther@suse.de>
32649 PR tree-optimization/56521
32650 * tree-ssa-sccvn.c (set_value_id_for_result): Always initialize
32653 2013-03-05 Steven Bosscher <steven@gcc.gnu.org>
32656 * except.h (remove_unreachable_eh_regions): New prototype.
32657 * except.c (remove_eh_handler_splicer): New function, split out
32658 of remove_eh_handler.
32659 (remove_eh_handler): Use remove_eh_handler_splicer. Add comment
32660 warning about running it on many EH regions one at a time.
32661 (remove_unreachable_eh_regions_worker): New function, walk the
32662 EH tree in depth-first order and remove non-marked regions.
32663 (remove_unreachable_eh_regions): New function.
32664 * tree-eh.c (mark_reachable_handlers): New function, split out
32665 from remove_unreachable_handlers.
32666 (remove_unreachable_handlers): Use mark_reachable_handlers and
32667 remove_unreachable_eh_regions.
32668 (remove_unreachable_handlers_no_lp): Use mark_reachable_handlers
32669 and remove_unreachable_eh_regions.
32671 2013-03-05 Richard Biener <rguenther@suse.de>
32673 PR middle-end/56525
32674 * loop-init.c (fix_loop_structure): Remove loops in two stages,
32675 not freeing them until the end.
32677 2013-03-05 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
32679 * config/s390/s390.h: Define DWARF2_ASM_LINE_DEBUG_INFO.
32681 2013-03-05 Richard Biener <rguenther@suse.de>
32683 PR tree-optimization/56270
32684 * tree-vect-slp.c (vect_schedule_slp): Clear vectorized stmts
32685 of loads after scheduling an SLP instance.
32687 2013-03-05 Jakub Jelinek <jakub@redhat.com>
32689 * Makefile.in (dg_target_exps): Add aarch64.exp, epiphany.exp and
32691 (check_gcc_parallelize): Run guality.exp as a separate job from
32692 vect.exp with unsorted.exp and $(dg_target_exps) separately from
32693 struct-layout-1.exp with stackalign.exp.
32695 * alias.c (init_alias_analysis): Clear reg_known_equiv_p bitmap.
32697 PR middle-end/56461
32698 * tree-vect-slp.c (vect_supported_load_permutation_p): Free
32699 load_index sbitmap even if some bit in it isn't set.
32701 PR middle-end/56461
32702 * tree-ssa-loop-niter.c (bb_queue): Remove typedef.
32703 (discover_iteration_bound_by_body_walk): Change queues to
32704 vec<vec<basic_block> > and queue to vec<basic_block>. Fix up
32705 spelling in comment. Call safe_push on queues[bound_index] directly.
32706 Release queues[queue_index] in every iteration unconditionally.
32707 Release bounds vector.
32709 PR middle-end/56461
32710 * tree-vect-stmts.c (free_stmt_vec_info_vec): Call
32711 free_stmt_vec_info on any left-over stmt_vec_info in the vector.
32712 * tree-vect-loop.c (vect_create_epilog_for_reduction): Release
32715 2013-03-05 Richard Biener <rguenther@suse.de>
32718 * tree-inline.c (remap_blocks_to_null): New function.
32719 (expand_call_inline): When expanding a call stmt without
32720 an associated block inline remap all callee blocks to NULL.
32722 2013-03-05 Jakub Jelinek <jakub@redhat.com>
32724 PR rtl-optimization/56494
32725 * simplify-rtx.c (simplify_truncation): If C is narrower than A,
32726 optimize (truncate:A (subreg:B (truncate:C X) 0)) into
32727 (subreg:A (truncate:C X) 0) instead of (truncate:A X).
32729 PR middle-end/56461
32730 * sel-sched-ir.c (free_sched_pools): Release
32731 succs_info_pool.stack[succs_info_pool.max_top] vectors too
32732 if succs_info_pool.max_top isn't -1.
32735 * opts.c (opts_obstack, opts_concat): Moved to...
32736 * opts-common.c (opts_obstack, opts_concat): ... here.
32738 2013-03-04 Jakub Jelinek <jakub@redhat.com>
32740 PR middle-end/56461
32741 * diagnostic.c (diagnostic_append_note): Save and restore old prefix.
32743 2013-03-04 Martin Jambor <mjambor@suse.cz>
32745 * tree-dfa.c (get_or_create_ssa_default_def): Use parameter fn in
32746 all appropriate places.
32748 2013-01-04 Eric Botcazou <ebotcazou@adacore.com>
32750 PR tree-optimization/56424
32751 * ipa-split.c (split_function): Do not set the RSO flag if result is
32752 not by reference and its type is a register type.
32754 2013-03-04 David Holsgrove <david.holsgrove@xilinx.com>
32756 * config/microblaze/microblaze.c (microblaze_valid_pic_const): New
32757 (microblaze_legitimate_pic_operand): Likewise
32758 * config/microblaze/microblaze.h (LEGITIMATE_PIC_OPERAND_P): calls
32759 new function microblaze_legitimate_pic_operand
32760 * config/microblaze/microblaze-protos.h
32761 (microblaze_legitimate_pic_operand): Declare.
32763 2013-03-04 Edgar E. Iglesias <edgar.iglesias@gmail.com>
32765 * config/microblaze/predicates.md (call_insn_simple_operand):
32766 New predicate for supported rtx code types.
32767 * config/microblaze/microblaze.md (call_internal1): Use
32768 call_insn_simple_operand predicate.
32770 2013-03-04 Jakub Jelinek <jakub@redhat.com>
32772 PR middle-end/56461
32773 * tree-loop-distribution.c (ldist_gen): Call partition_free after each
32774 partitions.ordered_remove.
32776 PR middle-end/56461
32777 * tree-vect-stmts.c (vectorizable_conversion): Don't call
32778 vec_oprnds0.create (1) for modifier == NONE.
32780 PR middle-end/56461
32781 * tree-vect-stmts.c (vectorizable_shift): Don't call create methods
32782 on vec_oprnds0 or vec_oprnds1 before loop, only call it on
32783 vec_oprnds1 right before pushing anything to it for
32786 PR middle-end/56461
32787 * tree-vect-loop.c (destroy_loop_vec_info): For !clean_stmts, just
32788 set nbbs to 0 instead of having separate code path.
32789 (vect_analyze_loop_form): Call destroy_loop_vec_info with true
32790 instead of false as last argument if returning NULL.
32792 2013-03-03 Sandra Loosemore <sandra@codesourcery.com>
32794 * target.def (TARGET_OPTION_VALID_ATTRIBUTE_P): Update comments;
32795 the attribute is now called "target" instead of "option".
32796 (TARGET_OPTION_PRAGMA_PARSE): Likewise, for the pragma.
32797 * doc/tm.texi.in (Target Attributes): Likewise document the correct
32798 attribute/pragma name for TARGET_OPTION_VALID_P and
32799 TARGET_OPTION_PRAGMA_PARSE. Also copy-edit and correct markup.
32800 * doc/tm.texi: Regenerated.
32802 2013-03-02 David Holsgrove <david.holsgrove@xilinx.com>
32804 * config/microblaze/microblaze.c:
32805 Check mcpu, pcmp requirement and set TARGET_REORDER to 0 if not met.
32806 * config/microblaze/microblaze.h: Add -mxl-reorder to
32808 * config/microblaze/microblaze.md: New bswapsi2 and bswaphi2.
32809 instructions emitted if TARGET_REORDER.
32810 * config/microblaze/microblaze.opt: New option -mxl-reorder set to 1
32811 or 0 for -m/-mno case, but initialises as 2 to detect default use case
32814 2013-03-01 Xinliang David Li <davidxl@google.com>
32816 * tree-ssa-uninit.c (compute_control_dep_chain): Limit post-dom
32819 2013-03-01 Jakub Jelinek <jakub@redhat.com>
32821 PR middle-end/56461
32822 * tree-ssa-loop-ivcanon.c (tree_estimate_loop_size): Release path
32823 vector even when returning true. Fix up function comment formatting.
32825 PR middle-end/56461
32826 * ira-build.c (ira_loop_nodes_count): New variable.
32827 (create_loop_tree_nodes): Initialize it.
32828 (finish_loop_tree_nodes): Use it instead of looking at current_loops.
32830 PR middle-end/56461
32831 * tree-vect-data-refs.c (vect_permute_store_chain): Avoid using copy
32832 method on dr_chain and result_chain.
32833 * tree-vect-stmts.c (vectorizable_store): Only call
32834 result_chain.create if j == 0.
32836 PR middle-end/56461
32837 * tree-vect-stmts.c (vect_create_vectorized_promotion_stmts): Call
32838 vec_oprnds0->release (); rather than vec_oprnds0->truncate (0)
32839 before overwriting it.
32841 2013-03-01 Tobias Burnus <burnus@net-b.de>
32843 * doc/extended.texi (C Extensions): Change order in @menu
32845 (Other MIPS Built-in Functions): Move last MIPS entry before
32846 "picoChip Built-in Functions".
32847 (SH Built-in Functions): Move after RX Built-in Functions.
32848 * doc/gcc.texi (Introduction): Change order in @menu
32850 * doc/md.texi (Constraints): Ditto.
32851 * gty.texi (Type Information): Ditto.
32852 (User-provided marking routines for template types): Make
32854 * doc/invoke.texi (AArch64 Options): Move before
32855 "Adapteva Epiphany Options".
32857 2013-02-28 Konstantin Serebryany <konstantin.s.serebryany@gmail.com>
32858 Jakub Jelinek <jakub@redhat.com>
32861 * asan.c (gate_asan): Lookup no_sanitize_address instead of
32862 no_address_safety_analysis attribute.
32863 * doc/extend.texi (no_address_safety_attribute): Rename to
32864 no_sanitize_address attribute, mention no_address_safety_analysis
32865 attribute as deprecated alias.
32867 2013-02-28 Jakub Jelinek <jakub@redhat.com>
32869 PR middle-end/56461
32870 * tree-vectorizer.h (vect_get_slp_defs): Change 3rd argument
32871 type to vec<vec<tree> > *.
32872 * tree-vect-slp.c (vect_get_slp_defs): Likewise. Change vec_defs
32873 to be vec<tree> instead of vec<tree> *, set vec_defs
32874 to vNULL and call vec_defs.create (number_of_vects), adjust other
32876 * tree-vect-stmts.c (vect_get_vec_defs, vectorizable_call,
32877 vectorizable_condition): Adjust vect_get_slp_defs callers.
32879 2013-02-28 James Greenhalgh <james.greenhalgh@arm.com>
32881 * config/aarch64/aarch64.c
32882 (aarch64_float_const_representable): Remove unused variable.
32884 2013-02-28 James Greenhalgh <james.greenhalgh@arm.com>
32886 * config/aarch64/aarch64.c (aarch64_mangle_type): Make static.
32888 2013-02-28 James Greenhalgh <james.greenhalgh@arm.com>
32890 * config/aarch64/aarch64-builtins.c
32891 (aarch64_init_simd_builtins): Make static.
32893 2013-02-28 James Greenhalgh <james.greenhalgh@arm.com>
32895 * config/aarch64/aarch64.c
32896 (aarch64_simd_make_constant): Make static.
32898 2013-02-28 Martin Jambor <mjambor@suse.cz>
32900 * tree-sra.c (load_assign_lhs_subreplacements): Do not put replacements
32901 with no initialization to the RHS of debug statements.
32903 2013-02-28 Martin Jambor <mjambor@suse.cz>
32905 PR tree-optimization/56294
32906 * tree-sra.c (analyze_access_subtree): Create replacement declarations.
32908 (get_access_replacement): Do not call create_access_replacement.
32909 Assert a replacement exists.
32910 (get_repl_default_def_ssa_name): Create the replacement declaration
32913 2013-02-28 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
32915 * config/arm/arm.c (arm_output_mi_thunk): Call final_start_function and
32916 final_end_function.
32918 2013-02-28 Marek Polacek <polacek@redhat.com>
32920 PR rtl-optimization/56466
32921 * loop-unroll.c (unroll_and_peel_loops): Call fix_loop_structure
32922 if we're changing a loop.
32923 (peel_loops_completely): Likewise.
32925 2013-02-28 Paolo Carlini <paolo.carlini@oracle.com>
32928 * doc/invoke.texi ([-Wctor-dtor-privacy]): Complete.
32930 2013-02-28 Georg-Johann Lay <avr@gjlay.de>
32933 * config/avr/avr.c (avr_init_builtins): Use 'n' instead of empty
32934 macro parameters with: FX_FTYPE_FX, FX_FTYPE_FX_INT, INT_FTYPE_FX,
32935 INTX_FTYPE_FX, FX_FTYPE_INTX.
32936 * config/avr/builtins.def: Adjust respective DEF_BUILTIN.
32938 2013-02-28 Georg-Johann Lay <avr@gjlay.de>
32940 * avr/avr-mcus.def (ata5272, ata5505, attiny1634, ata6285)
32941 (ata6286, atmega8a, atmega48pa, ata5790, ata5790n, ata5795)
32942 (atmega164pa, atmega165pa, atmega168pa, atmega16hva, atmega16hvb)
32943 (atmega16hvbrevb, atmega16m1, atmega16u4, atmega26hvg, atmega32a)
32944 (atmega32a, atmega3250pa, atmega3290pa, atmega32c1, atmega32m1)
32945 (atmega32u4, atmega32u6, atmega64a, atmega6490a, atmega6490p)
32946 (atmega64c1, atmega64m1, atmega64rfa2, atmega64rfr2, atmega32hvb)
32947 (atmega32hvbrevb, atmega16hva2, atmega48hvf, at90pwm161)
32948 (atmega128a, atmega1284, atmxt112sl, atmxt224, atmxt224e)
32949 (atmxt336s, atxmega16a4u, atxmega16c4, atxmega32a4u, atxmega32c4)
32950 (atxmega32e5, atxmega64a3u, atxmega64a4u, atxmega64b1, atxmega64b3)
32951 (atxmega64c3, atxmega64d4, atxmega128a3u, atxmega128b1)
32952 (atxmega128b3, atxmega128c3, atxmega128d4, atmxt540s, atmxt540sreva)
32953 (atxmega192a3u, atxmega192c3, atxmega256a3u, atxmega256c3)
32954 (atxmega384c3, atxmega384d3, atxmega128a4u): New AVR_MCU.
32955 (avrxmega6): Increase max flash segments from 5 to 6.
32956 * config/avr/t-multilib: Regenerate.
32957 * config/avr/avr-tables.opt: Regenerate.
32958 * doc/avr-mmcu.texi: Regenerate.
32960 2013-02-28 Georg-Johann Lay <avr@gjlay.de>
32962 * config/avr/avr.h (device_to_arch): Rename to device_to_ld.
32963 (avr_device_to_arch): Rename to avr_device_to_ld.
32964 (avr_device_to_as): New prototype.
32965 (EXTRA_SPEC_FUNCTIONS): Add device_to_as.
32966 (ASM_SPEC): Use device_to_as to get -mmcu= and -mno-skip-bug=.
32967 * config/avr/driver-avr.c (avr_device_to_as): New.
32968 (avr_device_to_arch): Rename to avr_device_to_ld.
32970 2013-02-27 Jakub Jelinek <jakub@redhat.com>
32972 PR middle-end/56461
32973 * tree-vect-data-refs.c (vect_permute_load_chain): Avoid using copy
32974 method on dr_chain and result_chain.
32976 PR middle-end/56461
32977 * tree-ssa-loop-niter.c (maybe_lower_iteration_bound): Call
32978 pointer_set_destroy on not_executed_last_iteration.
32980 PR middle-end/56461
32981 * tree-vect-loop.c (vectorizable_reduction): Release vect_defs vector.
32983 PR middle-end/56461
32984 * ipa-pure-const.c (propagate): Use FOR_EACH_FUNCTION instead of
32985 FOR_EACH_DEFINED_FUNCTION when freeing state.
32987 PR middle-end/56461
32988 * df-scan.c (df_insn_delete): Use df_scan_free_mws_vec before
32990 (df_insn_rescan_debug_internal): Use df_scan_free_mws_vec before
32993 PR middle-end/56461
32994 * ipa-cp.c (decide_whether_version_node): Call vec_free on
32995 known_aggs[i].items and release known_aggs vector.
32997 PR middle-end/56461
32998 * ipa-reference.c (propagate): Free node_info even for alias nodes.
33000 2013-02-27 Edgar E. Iglesias <edgar.iglesias@gmail.com>
33002 * config/microblaze/microblaze.c (microblaze_emit_compare):
33003 Use xor for EQ/NE comparisions.
33004 * config/microblaze/microblaze.md (cstoresf4): Add constraints
33005 (cbranchsf4): Adjust operator to comparison_operator.
33007 2013-02-27 Jakub Jelinek <jakub@redhat.com>
33009 PR middle-end/56461
33010 * tree-flow.h (edge_var_map_vector): Change into va_heap, vl_embed
33012 * tree-ssa.c (redirect_edge_var_map_add): Use vec_safe_reserve and
33013 vec_safe_push, always update *slot.
33014 (redirect_edge_var_map_clear): Use vec_free.
33015 (redirect_edge_var_map_dup): Use vec_safe_copy and vec_safe_reserve.
33016 (free_var_map_entry): Use vec_free.
33017 * tree-cfgcleanup.c (remove_forwarder_block_with_phi): Use
33018 FOR_EACH_VEC_SAFE_ELT instead of FOR_EACH_VEC_ELT.
33020 2013-02-27 Andrey Belevantsev <abel@ispras.ru>
33022 PR middle-end/45472
33023 * sel-sched-ir.c (merge_expr): Also change vinsn of merged expr
33024 when the may_trap_p bit of the exprs being merged differs.
33025 Reorder tests for speculativeness in the logical and operator.
33027 2013-02-27 Jakub Jelinek <jakub@redhat.com>
33029 * incpath.c (add_standard_paths): Use reconcat instead of concat
33030 where appropriate and avoid leaking memory.
33032 * opts.h: Include obstack.h.
33033 (opts_concat): New prototype.
33034 (opts_obstack): New declaration.
33035 * opts.c (opts_concat): New function.
33036 (opts_obstack): New variable.
33037 (init_options_struct): Call gcc_init_obstack on opts_obstack.
33038 (finish_options): Use opts_concat instead of concat
33039 and XOBNEWVEC instead of XNEWVEC.
33040 * opts-common.c (generate_canonical_option, decode_cmdline_option,
33041 generate_option): Likewise.
33042 * Makefile.in (OPTS_H): Depend on $(OBSTACK_H).
33043 * lto-wrapper.c (main): Call gcc_init_obstack on opts_obstack.
33046 * stmt.c (expand_switch_as_decision_tree_p): If flag_pic
33047 and ASM_OUTPUT_ADDR_DIFF_ELT isn't defined, return true.
33049 2013-02-26 Jakub Jelinek <jakub@redhat.com>
33051 PR middle-end/56461
33052 * lra-spills.c (lra_spill): Free spill_hard_reg at the end.
33054 2013-02-26 Joern Rennecke <joern.rennecke@embecosm.com>
33056 * config/arm/arm.c (const_ok_for_dimode_op): Back out last change.
33057 (arm_block_move_unaligned_straight): Likewise.
33058 (arm_adjust_block_mem): Likewise.
33060 2013-02-26 Joern Rennecke <joern.rennecke@embecosm.com>
33063 * config/lm32/lm32.c (gen_int_relational): Remove unused variables
33064 temp, cond and label.
33065 * config/lm32/lm32.md (ashlsi3): Remove unused variable one.
33068 * config/c6x/c6x.c (dbx_register_map): Change to unsigned.
33069 * config/c6x/c6x.h (dbx_register_map): Update declaration.
33072 * config/cr16/cr16-protos.h: Move end of RTX_CODE guard below end
33073 of prologue/epilogue functions.
33076 * config/tilegx/tilegx.c (tilegx_expand_prologue):
33077 Remove unused variable cfa_offset.
33078 * config/tilepro/tilepro.c (tilepro_expand_prologue): Likewise.
33081 * config/mn10300/mn10300.c (mn10300_expand_epilogue): Avoid offset
33082 type promotion to unsigned.
33085 * config/arm/arm.c (const_ok_for_dimode_op): Make code consistent
33086 for HOST_WIDE_INT of 32 bit / same size as int.
33087 (arm_block_move_unaligned_straight): Likewise.
33088 (arm_adjust_block_mem): Likewise.
33091 * config/mep/t-mep (mep-pragma.o): Use ALL_COMPILERFLAGS instead of
33094 2013-02-26 Marek Polacek <polacek@redhat.com>
33096 PR tree-optimization/56426
33097 * tree-ssa-loop.c (tree_ssa_loop_init): Always call scev_initialize.
33099 2013-02-26 Richard Biener <rguenther@suse.de>
33102 * config/mn10300/mn10300.c (mn10300_scan_for_setlb_lcc): Remove
33103 unused variable loops.
33105 2013-02-26 Jakub Jelinek <jakub@redhat.com>
33107 PR tree-optimization/56448
33108 * fold-const.c (operand_equal_p) <case tcc_reference>: Don't look at
33109 TREE_SIDE_EFFECTS if flags contain OEP_CONSTANT_ADDRESS_OF.
33110 Clear OEP_CONSTANT_ADDRESS_OF from flags before recursing on second or
33111 later operands of the references, or even first operand for
33112 INDIRECT_REF, TARGET_MEM_REF or MEM_REF.
33114 PR tree-optimization/56443
33115 * tree-vect-stmts.c (get_vectype_for_scalar_type_and_size): For
33116 overaligned types, pass TYPE_UNSIGNED (scalar_type) as second argument
33117 to type_for_mode langhook.
33119 2013-02-25 Matt Turner <mattst88@gmail.com>
33121 * doc/invoke.texi: Document r4700.
33123 2013-02-25 Richard Biener <rguenther@suse.de>
33125 PR tree-optimization/56175
33126 * tree-ssa-forwprop.c (hoist_conversion_for_bitop_p): New predicate,
33128 (simplify_bitwise_binary): ... here. Also guard the conversion
33129 of (type) X op CST to (type) (X op ((type-x) CST)) with it.
33131 2013-02-25 Catherine Moore <clm@codesourcery.com>
33134 2013-02-24 Catherine Moore <clm@codesourcery.com>
33135 Maciej W. Rozycki <macro@codesourcery.com>
33136 Tom de Vries <tom@codesourcery.com>
33137 Nathan Sidwell <nathan@codesourcery.com>
33138 Iain Sandoe <iain@codesourcery.com>
33139 Nathan Froyd <froydnj@codesourcery.com>
33140 Chao-ying Fu <fu@mips.com>
33142 * doc/extend.texi: (micromips, nomicromips, nocompression):
33143 Document new function attributes.
33144 * doc/invoke.texi (minterlink-compressed, mmicromips,
33145 m14k, m14ke, m14kec): Document new options.
33146 (minterlink-mips16): Update documentation.
33147 * doc/md.texi (ZC, ZD): Document new constraints.
33148 * configure.ac (gcc_cv_as_micromips): Check if linker
33149 supports the .set micromips directive.
33150 * configure: Regenerate.
33151 * config.in: Regenerate.
33152 * config/mips/mips-tables.opt: Regenerate.
33153 * config/mips/micromips.md: New file.
33154 * constraints.md (ZC, AD): New constraints.
33155 * config/mips/predicates.md (movep_src_register): New predicate.
33156 (movep_src_operand): New predicate.
33157 (non_volatile_mem_operand): New predicate.
33158 * config/mips/mips.md (multimem): New type.
33159 (length): Differentiate between 17-bit and 18-bit branch offsets.
33160 (MOVEP1, MOVEP2): New mode iterator.
33161 (mov_<load>l): Use ZC constraint.
33162 (mov_<load>r): Likewise.
33163 (mov_<store>l): Likewise.
33164 (mov_<store>r): Likewise.
33165 (*branch_equality<mode>_inverted): Add microMIPS support.
33166 (*branch_equality<mode>): Likewise.
33167 (*jump_absolute): Likewise.
33168 (indirect_jump_<mode>): Likewise.
33169 (tablejump_<mode>): Likewise.
33170 (<optab>_internal): Likewise.
33171 (sibcall_internal): Likewise.
33172 (sibcall_value_internal): Likewise.
33173 (prefetch): Use constraint ZD.
33174 * config/mips/mips.opt (minterlink-compressed): New option.
33175 (minterlink-mips16): Now an alias for minterlink-compressed.
33176 (mmicromips): New option.
33177 * config/mips/sync.md (sync_compare_and_swap<mode>): Use ZR constraint.
33178 (compare_and_swap_12): Likewise.
33179 (sync_add<mode>): Likewise.
33180 (sync_<optab>_12): Likewise.
33181 (sync_old_<optab>_12): Likewise.
33182 (sync_new_<optab>_12): Likewise.
33183 (sync_nand_12): Likewise.
33184 (sync_old_nand_12): Likewise.
33185 (sync_new_nand_12): Likewise.
33186 (sync_sub<mode>): Likewise.
33187 (sync_old_add<mode>): Likewise.
33188 (sync_old_sub<mode>): Likewise.
33189 (sync_new_add<mode>): Likewise.
33190 (sync_new_sub<mode>): Likewise.
33191 (sync_<optab><mode>): Likewise.
33192 (sync_old_<optab><mode>): Likewise.
33193 (sync_new_<optab><mode>): Likewise.
33194 (sync_nand<mode>): Likewise.
33195 (sync_old_nand<mode>): Likewise.
33196 (sync_new_nand<mode>): Likewise.
33197 (sync_lock_test_and_set<mode>): Likewise.
33198 (test_and_set_12): Likewise.
33199 (atomic_compare_and_swap<mode>): Likewise.
33200 (atomic_exchange<mode>_llsc): Likewise.
33201 (atomic_fetch_add<mode>_llsc): Likewise.
33202 * config/mips/mips-cpus.def (m14kc, m14k): New processors.
33203 * config/mips/mips-protos.h (umips_output_save_restore): New prototype.
33204 (umips_save_restore_pattern_p): Likewise.
33205 (umips_load_store_pair_p): Likewise.
33206 (umips_output_load_store_pair): Likewise.
33207 (umips_movep_target_p): Likewise.
33208 (umips_12bit_offset_address_p): Likewise.
33209 * config/mips/mips.c (MIPS_MAX_FIRST_STEP): Update for microMIPS.
33210 (mips_base_mips16): Rename this...
33211 (mips_base_compression_flags): ...to this. Update all uses.
33212 (mips_attribute_table): Add micromips, nomicromips and nocompression.
33213 (mips_mips16_decl_p): Delete.
33214 (mips_nomips16_decl_p): Delete.
33215 (mips_get_compress_on_flags): New function.
33216 (mips_get_compress_off_flags): New function.
33217 (mips_get_compress_mode): New function.
33218 (mips_get_compress_on_name): New function.
33219 (mips_get_compress_off_name): New function.
33220 (mips_insert_attributes): Support multiple compression types.
33221 (mips_merge_decl_attributes): Likewise.
33222 (umips_12bit_offset_address_p): New function.
33223 (mips_start_function_definition): Emit .set micromips directive.
33224 (mips_call_may_need_jalx_p): New function.
33225 (mips_function_ok_for_sibcall): Add microMIPS support.
33226 (mips_print_operand_punctuation): Support short delay slots and
33228 (umips_swm_mask, umips_swm_encoding): New.
33229 (umips_build_save_restore): New function.
33230 (mips_for_each_saved_gpr_and_fpr): Add microMIPS support.
33231 (was_mips16_p): Remove.
33232 (old_compression_mode): New.
33233 (mips_set_compression_mode): New function.
33234 (mips_set_current_function): Add microMIPS support.
33235 (mips_option_override): Likewise.
33236 (umips_save_restore_pattern_p): New function.
33237 (umips_output_save_restore): New function.
33238 (umips_load_store_pair_p_1): New function.
33239 (umips_load_store_pair_p): New function.
33240 (umips_output_load_store_pair_1): New function.
33241 (umips_output_load_store_pair): New function.
33242 (umips_movep_target_p) New function.
33243 (mips_prepare_pch_save): Add microMIPS support.
33244 * config/mips/mips.h (TARGET_COMPRESSION): New.
33245 (TARGET_CPU_CPP_BUILTINS): Update macro
33246 to use new compression flags and to support microMIPS.
33247 (MIPS_ISA_LEVEL_SPEC): Add m14k processors.
33248 (MIPS_ARCH_FLOAT_SPEC): Likewise.
33249 (ISA_HAS_LWXS): Include TARGET_MICROMIPS.
33250 (ISA_HAS_LOAD_DELAY): Exclude TARGET_MICROMIPS.
33251 (ASM_SPEC): Support mmicromips and mno-micromips.
33252 (M16STORE_REG_P): New macro.
33253 (MIPS_CALL): Support TARGET_MICROMIPS.
33254 (MICROMIPS_J): New macro.
33255 (mips_base_mips16): Rename this...
33256 (mips_base_compression_flags): ...to this.
33257 (UMIPS_12BIT_OFFSET_P): New macro.
33258 * config/mips/t-sde: (MULTILIB_OPTIONS): Add microMIPS.
33259 (MULTILIB_DIRNAMES): Likewise.
33261 2013-02-25 Tom de Vries <tom@codesourcery.com>
33263 PR rtl-optimization/56131
33264 * insn-notes.def (INSN_NOTE_BASIC_BLOCK): Update comment.
33265 * cfgrtl.c (delete_insn): Don't reorder NOTE_INSN_DELETED_LABEL and
33266 NOTE_INSN_BASIC_BLOCK if BLOCK_FOR_INSN == NULL.
33268 2013-02-25 Tobias Burnus <burnus@net-b.de>
33270 * doc/invoke.texi (-fsanitize=): Move from optimization
33271 to debugging options.
33273 2013-02-25 Andrey Belevantsev <abel@ispras.ru>
33275 * sched-deps.c (sched_analyze_insn): Fix typo in comment.
33277 2013-02-25 Andrey Belevantsev <abel@ispras.ru>
33278 Alexander Monakov <amonakov@ispras.ru>
33280 PR middle-end/56077
33281 * sched-deps.c (sched_analyze_insn): When reg_pending_barrier,
33282 flush pending lists also on non-jumps. Adjust comment.
33284 2013-02-24 Catherine Moore <clm@codesourcery.com>
33285 Maciej W. Rozycki <macro@codesourcery.com>
33286 Tom de Vries <tom@codesourcery.com>
33287 Nathan Sidwell <nathan@codesourcery.com>
33288 Iain Sandoe <iain@codesourcery.com>
33289 Nathan Froyd <froydnj@codesourcery.com>
33290 Chao-ying Fu <fu@mips.com>
33292 * doc/extend.texi: (micromips, nomicromips, nocompression):
33293 Document new function attributes.
33294 * doc/invoke.texi (minterlink-compressed, mmicromips,
33295 m14k, m14ke, m14kec): Document new options.
33296 (minterlink-mips16): Update documentation.
33297 * doc/md.texi (ZC, ZD): Document new constraints.
33298 * configure.ac (gcc_cv_as_micromips): Check if linker
33299 supports the .set micromips directive.
33300 * configure: Regenerate.
33301 * config.in: Regenerate.
33302 * config/mips/mips-tables.opt: Regenerate.
33303 * config/mips/micromips.md: New file.
33304 * constraints.md (ZC, AD): New constraints.
33305 * config/mips/predicates.md (movep_src_register): New predicate.
33306 (movep_src_operand): New predicate.
33307 (non_volatile_mem_operand): New predicate.
33308 * config/mips/mips.md (multimem): New type.
33309 (length): Differentiate between 17-bit and 18-bit branch offsets.
33310 (MOVEP1, MOVEP2): New mode iterator.
33311 (mov_<load>l): Use ZC constraint.
33312 (mov_<load>r): Likewise.
33313 (mov_<store>l): Likewise.
33314 (mov_<store>r): Likewise.
33315 (*branch_equality<mode>_inverted): Add microMIPS support.
33316 (*branch_equality<mode>): Likewise.
33317 (*jump_absolute): Likewise.
33318 (indirect_jump_<mode>): Likewise.
33319 (tablejump_<mode>): Likewise.
33320 (<optab>_internal): Likewise.
33321 (sibcall_internal): Likewise.
33322 (sibcall_value_internal): Likewise.
33323 (prefetch): Use constraint ZD.
33324 * config/mips/mips.opt (minterlink-compressed): New option.
33325 (minterlink-mips16): Now an alias for minterlink-compressed.
33326 (mmicromips): New option.
33327 * config/mips/sync.md (sync_compare_and_swap<mode>): Use ZR constraint.
33328 (compare_and_swap_12): Likewise.
33329 (sync_add<mode>): Likewise.
33330 (sync_<optab>_12): Likewise.
33331 (sync_old_<optab>_12): Likewise.
33332 (sync_new_<optab>_12): Likewise.
33333 (sync_nand_12): Likewise.
33334 (sync_old_nand_12): Likewise.
33335 (sync_new_nand_12): Likewise.
33336 (sync_sub<mode>): Likewise.
33337 (sync_old_add<mode>): Likewise.
33338 (sync_old_sub<mode>): Likewise.
33339 (sync_new_add<mode>): Likewise.
33340 (sync_new_sub<mode>): Likewise.
33341 (sync_<optab><mode>): Likewise.
33342 (sync_old_<optab><mode>): Likewise.
33343 (sync_new_<optab><mode>): Likewise.
33344 (sync_nand<mode>): Likewise.
33345 (sync_old_nand<mode>): Likewise.
33346 (sync_new_nand<mode>): Likewise.
33347 (sync_lock_test_and_set<mode>): Likewise.
33348 (test_and_set_12): Likewise.
33349 (atomic_compare_and_swap<mode>): Likewise.
33350 (atomic_exchange<mode>_llsc): Likewise.
33351 (atomic_fetch_add<mode>_llsc): Likewise.
33352 * config/mips/mips-cpus.def (m14kc, m14k): New processors.
33353 * config/mips/mips-protos.h (umips_output_save_restore): New prototype.
33354 (umips_save_restore_pattern_p): Likewise.
33355 (umips_load_store_pair_p): Likewise.
33356 (umips_output_load_store_pair): Likewise.
33357 (umips_movep_target_p): Likewise.
33358 (umips_12bit_offset_address_p): Likewise.
33359 * config/mips/mips.c (MIPS_MAX_FIRST_STEP): Update for microMIPS.
33360 (mips_base_mips16): Rename this...
33361 (mips_base_compression_flags): ...to this. Update all uses.
33362 (mips_attribute_table): Add micromips, nomicromips and nocompression.
33363 (mips_mips16_decl_p): Delete.
33364 (mips_nomips16_decl_p): Delete.
33365 (mips_get_compress_on_flags): New function.
33366 (mips_get_compress_off_flags): New function.
33367 (mips_get_compress_mode): New function.
33368 (mips_get_compress_on_name): New function.
33369 (mips_get_compress_off_name): New function.
33370 (mips_insert_attributes): Support multiple compression types.
33371 (mips_merge_decl_attributes): Likewise.
33372 (umips_12bit_offset_address_p): New function.
33373 (mips_start_function_definition): Emit .set micromips directive.
33374 (mips_call_may_need_jalx_p): New function.
33375 (mips_function_ok_for_sibcall): Add microMIPS support.
33376 (mips_print_operand_punctuation): Support short delay slots and
33378 (umips_swm_mask, umips_swm_encoding): New.
33379 (umips_build_save_restore): New function.
33380 (mips_for_each_saved_gpr_and_fpr): Add microMIPS support.
33381 (was_mips16_p): Remove.
33382 (old_compression_mode): New.
33383 (mips_set_compression_mode): New function.
33384 (mips_set_current_function): Add microMIPS support.
33385 (mips_option_override): Likewise.
33386 (umips_save_restore_pattern_p): New function.
33387 (umips_output_save_restore): New function.
33388 (umips_load_store_pair_p_1): New function.
33389 (umips_load_store_pair_p): New function.
33390 (umips_output_load_store_pair_1): New function.
33391 (umips_output_load_store_pair): New function.
33392 (umips_movep_target_p) New function.
33393 (mips_prepare_pch_save): Add microMIPS support.
33394 * config/mips/mips.h (TARGET_COMPRESSION): New.
33395 (TARGET_CPU_CPP_BUILTINS): Update macro
33396 to use new compression flags and to support microMIPS.
33397 (MIPS_ISA_LEVEL_SPEC): Add m14k processors.
33398 (MIPS_ARCH_FLOAT_SPEC): Likewise.
33399 (ISA_HAS_LWXS): Include TARGET_MICROMIPS.
33400 (ISA_HAS_LOAD_DELAY): Exclude TARGET_MICROMIPS.
33401 (ASM_SPEC): Support mmicromips and mno-micromips.
33402 (M16STORE_REG_P): New macro.
33403 (MIPS_CALL): Support TARGET_MICROMIPS.
33404 (MICROMIPS_J): New macro.
33405 (mips_base_mips16): Rename this...
33406 (mips_base_compression_flags): ...to this.
33407 (UMIPS_12BIT_OFFSET_P): New macro.
33408 * config/mips/t-sde: (MULTILIB_OPTIONS): Add microMIPS.
33409 (MULTILIB_DIRNAMES): Likewise.
33411 2013-02-24 Jakub Jelinek <jakub@redhat.com>
33414 * target-globals.c (save_target_globals): For init_reg_sets and
33415 target_reinit remporarily set this_fn_optabs to this_target_optabs.
33417 2013-02-22 James Greenhalgh <james.greenhalgh@arm.com>
33419 * config/aarch64/aarch64-simd-builtins.def: Add copyright header.
33420 * config/aarch64/t-aarch64
33421 (aarch64-builtins.o): Depend on aarch64-simd-builtins.def.
33423 2013-02-22 Vladimir Makarov <vmakarov@redhat.com>
33425 PR inline-asm/56148
33426 * lra-constraints.c (process_alt_operands): Reload operand
33427 conflicting with earlier clobber only if no more other conflicting
33430 2013-02-22 Jakub Jelinek <jakub@redhat.com>
33433 * config/gnu-user.h (LIBASAN_EARLY_SPEC): Link in libasan_preinit.o
33434 if not linking a shared library.
33436 2013-02-22 Seth LaForge <sethml@google.com>
33438 * config.gcc (arm*-*-eabi*): Treat arm*eb as big-endian.
33440 2013-02-22 Greta Yorsh <Greta.Yorsh@arm.com>
33442 * config/arm/arm.md (split for extendsidi): Update condition.
33443 (zero_extend<mode>di2,extend<mode>di2): Add an alternative.
33444 * config/arm/iterators.md (qhs_extenddi_cstr): Likewise.
33445 (qhs_zextenddi_cstr): Likewise.
33447 2013-02-21 Jakub Jelinek <jakub@redhat.com>
33449 PR middle-end/56420
33450 * expmed.c (EXACT_POWER_OF_2_OR_ZERO_P): Do subtraction in uhwi, to
33451 avoid signed wrapping.
33452 (expand_mult): Handle properly multiplication by
33453 ((dword_type) -1) << (BITS_PER_WORD - 1). Improve multiplication by
33454 ((dword_type) 1) << (BITS_PER_WORD - 1). Avoid undefined behavior
33455 in the compiler if coeff is HOST_WIDE_INT_MIN.
33456 (expand_divmod): Don't make ext_op1 static, change it's type to
33457 uhwi. Avoid undefined behavior in -INTVAL (op1).
33459 PR rtl-optimization/50339
33460 * lower-subreg.h (struct lower_subreg_choices): Add splitting_ashiftrt
33462 * lower-subreg.c (compute_splitting_shift): Handle ASHIFTRT.
33463 (compute_costs): Call compute_splitting_shift also for ASHIFTRT
33464 into splitting_ashiftrt field.
33465 (find_decomposable_shift_zext, resolve_shift_zext): Handle also
33467 (dump_choices): Fix up printing LSHIFTRT choices, print ASHIFTRT
33470 2013-02-20 Aldy Hernandez <aldyh@redhat.com>
33472 PR middle-end/56108
33473 * trans-mem.c (execute_tm_mark): Do not expand transactions that
33474 are sure to go irrevocable.
33476 2013-02-21 Hans-Peter Nilsson <hp@axis.com>
33478 * doc/rtl.texi (vec_concat, vec_duplicate): Mention that
33479 scalars are valid operands.
33481 2013-02-21 Martin Jambor <mjambor@suse.cz>
33483 PR tree-optimization/56310
33484 * ipa-cp.c (agg_replacements_to_vector): New parameter index, copy
33485 only matching indices and non-negative final offsets.
33486 (intersect_aggregates_with_edge): Pass src_idx to
33487 agg_replacements_to_vector. Pass src_idx insstead of index to
33488 intersect_with_agg_replacements.
33490 2013-02-21 Martin Jambor <mjambor@suse.cz>
33492 * ipa-cp.c (good_cloning_opportunity_p): Dump the real threshold
33493 instead of hard-wired defaults.
33495 2013-02-21 Maciej W. Rozycki <macro@codesourcery.com>
33497 * doc/invoke.texi (MIPS Options): Update documentation of the
33498 floating-point multiply-accumulate instruction restrictions.
33500 2013-02-21 Kostya Serebryany <kcc@google.com>
33502 * config/i386/i386.c (ix86_asan_shadow_offset): Use 0x7fff8000 as
33503 asan_shadow_offset on x86_64 linux.
33505 2013-02-21 Richard Biener <rguenther@suse.de>
33507 PR tree-optimization/56415
33509 2013-02-11 Richard Biener <rguenther@suse.de>
33511 PR tree-optimization/56273
33512 * tree-vrp.c (simplify_cond_using_ranges): Disable for the
33515 2013-02-21 Jakub Jelinek <jakub@redhat.com>
33518 * doc/invoke.texi (-fdump-rtl-pro_and_epilogue): Use @item
33521 PR inline-asm/56405
33522 * expr.c (expand_expr_real_1) <case TARGET_MEM_REF, MEM_REF>: Don't
33523 use movmisalign or extract_bit_field for EXPAND_MEMORY modifier.
33525 2013-02-20 Jan Hubicka <jh@suse.cz>
33527 PR tree-optimization/56265
33528 * ipa-prop.c (ipa_make_edge_direct_to_target): Fixup callgraph
33529 when target is referenced for first time.
33531 2013-02-20 Richard Biener <rguenther@suse.de>
33533 * tree-call-cdce.c (tree_call_cdce): Do not remove unused locals.
33534 * tree-ssa-forwprop.c (ssa_forward_propagate_and_combine): Likewise.
33535 * tree-ssa-dce.c (perform_tree_ssa_dce): Likewise.
33536 * tree-ssa-copyrename.c (copy_rename_partition_coalesce): Do
33537 not return anything.
33538 (rename_ssa_copies): Do not remove unused locals.
33539 * tree-ssa-ccp.c (do_ssa_ccp): Likewise.
33540 * tree-ssanames.c (pass_release_ssa_names): Remove unused locals first.
33541 * passes.c (execute_function_todo): Do not schedule unused locals
33542 removal if cleanup_tree_cfg did something.
33543 * tree-ssa-live.c (remove_unused_locals): Dump statistics
33544 about the number of removed locals.
33546 2013-02-20 Richard Biener <rguenther@suse.de>
33548 PR tree-optimization/56398
33549 * tree-vect-loop-manip.c (adjust_debug_stmts): Skip SSA default defs.
33551 2013-02-20 Martin Jambor <mjambor@suse.cz>
33553 PR tree-optimization/55334
33554 * ipa-cp.c (initialize_node_lattices): Disable IPA-CP through and to
33555 restricted pointers to arrays.
33557 2013-02-20 Richard Biener <rguenther@suse.de>
33558 Jakub Jelinek <jakub@redhat.com>
33560 PR tree-optimization/56396
33561 * tree-ssa-ccp.c (n_const_val): New static variable.
33562 (get_value): Return NULL for SSA names we don't have a lattice
33564 (ccp_initialize): Initialize n_const_val.
33565 * tree-ssa-copy.c (n_copy_of): New static variable.
33566 (init_copy_prop): Initialize n_copy_of.
33567 (get_value): Return NULL_TREE for SSA names we don't have a
33570 2013-02-20 Martin Jambor <mjambor@suse.cz>
33572 * ipa-cp.c (initialize_node_lattices): Fix dumping condition.
33574 2013-02-20 Richard Biener <rguenther@suse.de>
33576 * genpreds.c (write_lookup_constraint): Do not compare first
33577 letter of the constraint again.
33579 2013-02-20 Richard Biener <rguenther@suse.de>
33581 * tree-ssa-loop-ivopts.c (alloc_use_cost_map): Use bitmap_count_bits
33583 (get_use_iv_cost): Terminate hashtable walk when coming across
33586 2013-02-20 Igor Zamyatin <igor.zamyatin@intel.com>
33588 * config/i386/i386.c (initial_ix86_tune_features): Turn on fp
33589 reassociation for avx2 targets.
33591 2012-02-19 Edgar E. Iglesias <edgar.iglesias@gmail.com>
33593 * config/microblaze/microblaze.c: microblaze_has_clz = 0
33594 Add version check for v8.10.a to enable microblaze_has_clz
33595 * config/microblaze/microblaze.h: Add TARGET_HAS_CLZ as combined
33596 version and TARGET_PATTERN_COMPARE check
33597 * config/microblaze/microblaze.md: New clzsi2 instruction
33599 2012-02-19 Edgar E. Iglesias <edgar.iglesias@gmail.com>
33601 * config/microblaze/microblaze.md (call_value_intern): Check symbol is
33602 function before branching.
33604 2012-02-19 Andrey Belevantsev <abel@ispras.ru>
33606 * sel-sched-dump.c (dump_insn_rtx_flags): Explicitly set
33608 (dump_insn_rtx_1): Pass PATTERN (insn) to str_pattern_slim.
33610 2012-02-19 Andrey Belevantsev <abel@ispras.ru>
33612 PR middle-end/55889
33613 * sel-sched.c: Include ira.h.
33614 (implicit_clobber_conflict_p): New function.
33615 (moveup_expr): Use it.
33616 * Makefile.in (sel-sched.o): Depend on ira.h.
33618 2013-02-19 Richard Biener <rguenther@suse.de>
33620 PR tree-optimization/56384
33621 * tree-ssa-sccvn.h (struct vn_phi_s): Add type member.
33622 (vn_hash_type): Split out from ...
33623 (vn_hash_constant_with_type): ... here.
33624 * tree-ssa-sccvn.c (vn_phi_compute_hash): Use vn_hash_type.
33625 (vn_phi_eq): Compare types from vn_phi_s structure.
33626 (vn_phi_lookup): Populate vn_phi_s type.
33627 (vn_phi_insert): Likewise.
33629 2013-02-19 Jakub Jelinek <jakub@redhat.com>
33631 PR tree-optimization/56350
33632 * tree-vect-loop.c (vectorizable_reduction): If orig_stmt, return false
33633 if haven't found reduction or nested cycle operand, rather than
33634 asserting we must find it.
33636 PR tree-optimization/56381
33637 * tree-ssa-pre.c (create_expression_by_pieces): Fix up last argument
33640 2013-02-18 Aldy Hernandez <aldyh@redhat.com>
33641 Jakub Jelinek <jakub@redhat.com>
33644 * genopinit.c (raw_optab_handler): Use this_fn_optabs.
33645 (swap_optab_enable): Same.
33646 (init_all_optabs): Use argument instead of global.
33647 * tree.h (struct tree_optimization_option): New field target_optabs.
33648 * expr.h (init_all_optabs): Add argument to prototype.
33649 (TREE_OPTIMIZATION_OPTABS): New.
33650 (save_optabs_if_changed): Protoize.
33651 * optabs.h: Declare this_fn_optabs.
33652 * optabs.c (save_optabs_if_changed): New.
33653 Declare this_fn_optabs.
33654 (init_optabs): Add argument to init_all_optabs() call.
33655 * function.c (invoke_set_current_function_hook): Handle per
33657 * function.h (struct function): New field optabs.
33658 * config/mips/mips.c (mips_set_mips16_mode): Handle when
33659 optimization_current_node has changed.
33660 * target-globals.h (save_target_globals_default_opts): Protoize.
33661 * target-globals.c (save_target_globals_default_opts): New.
33663 2013-02-18 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
33666 * config/pa/pa.c (pa_conditional_register_usage): On HP-UX, mark
33667 registers %fr12 and %fr12R as call used.
33670 * config/pa/predicates.md (base14_operand): Except for BLKmode, QImode
33671 and HImode, require all displacements to be an integer multiple of
33673 * config/pa/pa.c (pa_legitimate_address_p): For REG+BASE addresses,
33674 only allow QImode and HImode when reload is in progress and strict is
33675 true. Likewise for symbolic addresses. Use base14_operand to check
33676 displacements in REG+BASE addresses.
33678 2013-02-18 Richard Biener <rguenther@suse.de>
33680 PR tree-optimization/56366
33681 * tree-vect-loop.c (get_initial_def_for_induction): Properly
33682 handle sign-conversion of outer-loop initial induction value.
33684 2013-02-18 Richard Biener <rguenther@suse.de>
33686 PR middle-end/56349
33687 * cfghooks.c (merge_blocks): If we merge a latch into another
33688 block adjust references to it.
33689 * cfgloop.c (flow_loops_find): Reset latch before recomputing it.
33690 (verify_loop_structure): Verify that a recorded latch is in fact
33693 2013-02-18 Richard Biener <rguenther@suse.de>
33695 PR tree-optimization/56321
33696 * tree-ssa-reassoc.c (propagate_op_to_single_use): Properly
33697 order SSA name release and virtual operand unlinking.
33699 2013-02-17 Edgar E. Iglesias <edgar.iglesias@gmail.com>
33701 * config/microblaze/microblaze.md (save_stack_block): Define.
33702 (restore_stack_block): Likewise.
33704 2013-02-16 Edgar E. Iglesias <edgar.iglesias@gmail.com>
33706 * config/microblaze/linux.h (TARGET_SUPPORTS_PIC): Define as 1.
33707 * config/microblaze/microblaze.h (TARGET_SUPPORTS_PIC): Define as 1.
33708 * config/microblaze/microblaze.c (microblaze_option_override):
33709 Bail out early for PIC modes when target does not support PIC.
33711 2013-02-16 Edgar E. Iglesias <edgar.iglesias@gmail.com>
33713 * config/microblaze/microblaze.c (microblaze_asm_trampoline_template):
33714 Replace with a microblaze version.
33715 (microblaze_trampoline_init): Adapt for microblaze.
33716 * config/microblaze/microblaze.h (TRAMPOLINE_SIZE): Adapt for
33719 2013-02-16 Jakub Jelinek <jakub@redhat.com>
33720 Dodji Seketeli <dodji@redhat.com>
33723 * asan.c (get_mem_refs_of_builtin_call): White space and style cleanup.
33724 (instrument_mem_region_access): Do not forget to always put
33725 instrumentation of the of 'base' and 'base + len' in a "if (len !=
33726 0) statement, even for cases where either 'base' or 'base + len'
33727 are not instrumented -- because they have been previously
33728 instrumented. Simplify the logic by putting all the statements
33729 instrument 'base + len' inside a sequence, and then insert that
33730 sequence right before the current insertion point. Then, to
33731 instrument 'base + len', just get an iterator on that statement.
33732 And do not forget to update the pointer to iterator the function
33733 received as argument.
33735 2013-02-15 Vladimir Makarov <vmakarov@redhat.com>
33737 PR rtl-optimization/56348
33738 * lra-assigns.c (reload_pseudo_compare_func): Prefer bigger pseudos.
33740 2013-02-15 Steven Bosscher <steven@gcc.gnu.org>
33742 * graph.c (start_graph_dump): Print dumpfile base as digraph label.
33743 (clean_graph_dump_file): Pass base to start_graph_dump.
33745 2013-02-14 Richard Henderson <rth@redhat.com>
33748 * lower-subreg.c (simple_move): Check dest mode instead of src mode.
33750 2013-02-14 Steven Bosscher <steven@gcc.gnu.org>
33752 * collect2-aix.h: Define F_LOADONLY.
33754 2013-02-14 Richard Biener <rguenther@suse.de>
33757 * varasm.c (output_constant_def_1): Get the decl representing
33758 the constant as argument.
33759 (output_constant_def): Wrap output_constant_def_1.
33760 (make_decl_rtl): Use output_constant_def_1 with the decl
33761 representing the constant.
33762 (build_constant_desc): Optionally re-use a decl already
33763 representing the constant.
33764 (tree_output_constant_def): Adjust.
33766 2013-02-14 Dodji Seketeli <dodji@redhat.com>
33769 * asan.c (instrument_builtin_call): Really put the length of the
33770 second source argument into src1_len.
33772 2013-02-13 Jakub Jelinek <jakub@redhat.com>
33774 * asan.c (create_cond_insert_point): Add create_then_fallthru_edge
33775 argument. If it is false, don't create edge from then_bb to
33777 (insert_if_then_before_iter): Pass true to it.
33778 (build_check_stmt): Pass false to it.
33779 (transform_statements): Flush hash table only on extended basic
33780 block boundaries, rather than at the beginning of every bb.
33781 Don't flush hash table on nonfreeing_call_p calls.
33782 * tree-flow.h (nonfreeing_call_p): New prototype.
33783 * tree-ssa-phiopt.c (nonfreeing_call_p): No longer static.
33785 2013-02-13 David S. Miller <davem@davemloft.net>
33787 * expmed.c (expand_shift_1): Only strip scalar integer subregs.
33789 2013-02-13 Vladimir Makarov <vmakarov@redhat.com>
33792 * ira.c (max_regno_before_ira): Move from ...
33794 (fix_reg_equiv_init): Use max_regno_before_ira instead of
33797 2013-02-13 Jakub Jelinek <jakub@redhat.com>
33799 * config/i386/i386.c (ix86_asan_shadow_offset): Revert last change.
33801 2013-02-13 Richard Biener <rguenther@suse.de>
33804 * gimple-streamer-out.c (output_gimple_stmt): Undo wrapping
33805 globals in MEM_REFs.
33807 2013-02-13 Richard Biener <rguenther@suse.de>
33809 * loop-init.c (loop_optimizer_init): Clear loop state when
33810 re-initializing preserved loops.
33811 * loop-unswitch.c (unswitch_single_loop): Return whether
33812 we unswitched the loop. Do not verify loop state here.
33813 (unswitch_loops): When we unswitched a loop discover new loops.
33815 2013-02-13 Kostya Serebryany <kcc@google.com>
33817 * config/i386/i386.c: Use 0x7fff8000 as asan_shadow_offset
33819 * sanitizer.def: Rename __asan_init to __asan_init_v1.
33821 2013-02-12 Dodji Seketeli <dodji@redhat.com>
33823 Avoid instrumenting duplicated memory access in the same basic block
33824 * Makefile.in (asan.o): Add new dependency on hash-table.h
33825 * asan.c (struct asan_mem_ref, struct mem_ref_hasher): New types.
33826 (asan_mem_ref_init, asan_mem_ref_get_end, get_mem_ref_hash_table)
33827 (has_stmt_been_instrumented_p, empty_mem_ref_hash_table)
33828 (free_mem_ref_resources, has_mem_ref_been_instrumented)
33829 (has_stmt_been_instrumented_p, update_mem_ref_hash_table)
33830 (get_mem_ref_of_assignment): New functions.
33831 (get_mem_refs_of_builtin_call): Extract from
33832 instrument_builtin_call and tweak a little bit to make it fit with
33834 (instrument_builtin_call): Use the new
33835 get_mem_refs_of_builtin_call. Use gimple_call_builtin_p instead
33836 of is_gimple_builtin_call.
33837 (instrument_derefs, instrument_mem_region_access): Insert the
33838 instrumented memory reference into the hash table.
33839 (maybe_instrument_assignment): Renamed instrument_assignment into
33840 this, and change it to advance the iterator when instrumentation
33841 actually happened and return true in that case. This makes it
33842 homogeneous with maybe_instrument_assignment, and thus give a
33843 chance to callers to be more 'regular'.
33844 (transform_statements): Clear the memory reference hash table
33845 whenever we enter a new BB, when we cross a function call, or when
33846 we are done transforming statements. Use
33847 maybe_instrument_assignment instead of instrumentation. No more
33848 need to special case maybe_instrument_assignment and advance the
33849 iterator after calling it; it's now handled just like
33850 maybe_instrument_call. Update comment.
33852 2013-02-13 Richard Biener <rguenther@suse.de>
33854 * config/mn10300/mn10300.c (mn10300_scan_for_setlb_lcc):
33855 Fix loop discovery code.
33857 2013-02-12 Vladimir Makarov <vmakarov@redhat.com>
33859 PR inline-asm/56148
33860 * lra-constraints.c (process_alt_operands): Match early clobber
33861 operand with itself. Check conflicts with earlyclobber only if
33862 the operand is not reloaded. Prefer to reload conflicting operand
33863 if earlyclobber and matching operands are the same.
33865 2013-02-12 Richard Biener <rguenther@suse.de>
33868 * lto-streamer-out.c (write_symbol): Do not output symbols
33869 for hard register variables.
33871 2013-02-12 Georg-Johann Lay <avr@gjlay.de>
33874 * config/avr/avr-dimode.md (umulsidi3, mulsidi3): New expanders.
33875 (umulsidi3_insn, mulsidi3_insn): New insns.
33877 2013-02-12 Christophe Lyon <christophe.lyon@linaro.org>
33879 * config/arm/arm-protos.h (struct cpu_vec_costs): New struct type.
33880 (struct tune_params): Add vec_costs field.
33881 * config/arm/arm.c (arm_builtin_vectorization_cost)
33882 (arm_add_stmt_cost): New functions.
33883 (TARGET_VECTORIZE_BUILTIN_VECTORIZATION_COST)
33884 (TARGET_VECTORIZE_ADD_STMT_COST): Define.
33885 (arm_default_vec_cost): New struct of type cpu_vec_costs.
33886 (arm_slowmul_tune, arm_fastmul_tune, arm_strongarm_tune)
33887 (arm_xscale_tune, arm_9e_tune, arm_v6t2_tune, arm_cortex_tune)
33888 (arm_cortex_a15_tune, arm_cortex_a5_tune, arm_cortex_a9_tune)
33889 (arm_v6m_tune, arm_fa726te_tune): Define new vec_costs field.
33891 2013-02-12 Richard Biener <rguenther@suse.de>
33894 * gimple-streamer-in.c (input_gimple_stmt): Strip MEM_REFs off
33895 decls again if possible.
33897 2013-02-12 Richard Biener <rguenther@suse.de>
33899 PR middle-end/56288
33900 * tree-ssa.c (verify_ssa_name): Fix check, move
33901 SSA_NAME_IN_FREE_LIST check up.
33903 2013-02-12 Jakub Jelinek <jakub@redhat.com>
33904 Steven Bosscher <steven@gcc.gnu.org>
33906 PR rtl-optimization/56151
33907 * optabs.c (add_equal_note): Don't return 0 if target is a MEM,
33908 equal to op0 or op1, and last_insn pattern is CODE operation
33909 with MEM dest and one of the operands matches that MEM.
33911 2013-02-11 Sriraman Tallam <tmsriram@google.com>
33913 * doc/extend.texi: Document Function Multiversioning and "default"
33914 parameter string to target attribute.
33915 * config/i386/i386.c (get_builtin_code_for_version): Return 0 if
33916 target attribute parameter is "default".
33917 (ix86_compare_version_priority): Remove checks for target attribute.
33918 (ix86_mangle_function_version_assembler_name): Change error to sorry.
33919 Remove check for target attribute equal to NULL. Add assert.
33920 (ix86_generate_version_dispatcher_body): Change error to sorry.
33922 2013-02-11 Iain Sandoe <iain@codesourcery.com>
33923 Jack Howarth <howarth@bromo.med.uc.edu>
33924 Patrick Marlier <patrick.marlier@gmail.com>
33927 * config/darwin.h: Replace ENDFILE_SPEC with TM_DESTRUCTOR and
33928 define ENDFILE_SPEC as TM_DESTRUCTOR.
33929 * config/i386/darwin.h (ENDFILE_SPEC): Use TM_DESTRUCTOR.
33931 2013-02-11 Alexander Potapenko <glider@google.com>
33932 Jack Howarth <howarth@bromo.med.uc.edu>
33933 Jakub Jelinek <jakub@redhat.com>
33936 * config/darwin.c (cdtor_record): Rename ctor_record.
33937 (sort_cdtor_records): Rename sort_ctor_records.
33938 (finalize_dtors): New routine to sort destructors by
33939 priority before use in assemble_integer.
33940 (machopic_asm_out_destructor): Use finalize_dtors if needed.
33942 2013-02-11 Uros Bizjak <ubizjak@gmail.com>
33944 PR rtl-optimization/56275
33945 * simplify-rtx.c (avoid_constant_pool_reference): Check that
33946 offset is non-negative and less than cmode size before
33947 calling simplify_subreg.
33949 2013-02-11 Richard Biener <rguenther@suse.de>
33951 PR tree-optimization/56264
33952 * cfgloop.h (fix_loop_structure): Adjust prototype.
33953 * loop-init.c (fix_loop_structure): Return the number of
33954 newly discovered loops.
33955 * tree-cfgcleanup.c (repair_loop_structures): When new loops
33956 are discovered, do a full loop-closed SSA rewrite.
33958 2013-02-11 Richard Biener <rguenther@suse.de>
33960 PR tree-optimization/56273
33961 * tree-vrp.c (simplify_cond_using_ranges): Disable for the
33963 (check_array_ref): Fix missing newline in dumps.
33964 (search_for_addr_array): Likewise.
33966 2013-02-09 David Edelsohn <dje.gcc@gmail.com>
33968 * config/rs6000/aix61.h (OS_MISSING_ALTIVEC): Undefine.
33970 2013-02-09 Jakub Jelinek <jakub@redhat.com>
33973 * config/rs6000/rs6000.h (ASSEMBLER_DIALECT): Define.
33975 2013-02-08 Vladimir Makarov <vmakarov@redhat.com>
33977 PR rtl-optimization/56246
33978 * lra-constraints.c (simplify_operand_subreg): Try to reuse
33980 * lra.c (lra): Clear lra_optional_reload_pseudos only when all
33981 constraints are satisfied.
33983 2013-02-08 Jeff Law <law@redhat.com>
33986 * emit-rtl.c (reg_is_parm_p): New function.
33987 * regs.h (reg_is_parm_p): New prototype.
33988 * ira-conflicts.c (ira_build_conflicts): Allow parameters in
33989 callee-clobbered registers.
33991 2013-02-08 Michael Meissner <meissner@linux.vnet.ibm.com>
33994 * config/rs6000/rs6000.c (rs6000_builtin_vectorized_libmass):
33995 If there is no implicit builtin declaration, just return NULL.
33997 2013-02-08 Uros Bizjak <ubizjak@gmail.com>
33999 * config/i386/sse.md (FMAMODEM): New mode iterator.
34000 (fma<mode>4, fms<mode>4, fnma<mode>4, fnms<mode>4): Use FMAMODEM
34001 mode iterator. Do not use TARGET_SSE_MATH in insn constraint.
34003 2013-02-08 Uros Bizjak <ubizjak@gmail.com>
34005 * config/i386/gnu-user.h (TARGET_CAN_SPLIT_STACK): Define only
34006 when HAVE_GAS_CFI_PERSONALITY_DIRECTIVE is set.
34007 * config/i386/gnu-user64.h (TARGET_CAN_SPLIT_STACK): Ditto.
34009 2013-02-08 Edgar E. Iglesias <edgar.iglesias@gmail.com>
34011 * config.gcc (microblaze*-linux*): Add TARGET_BIG_ENDIAN_DEFAULT.
34012 (microblaze*-*-elf): Likewise.
34013 * config/microblaze/linux.h: Add -mbig-endian / -mlittle-endian to
34015 * config/microblaze/microblaze-c.c: Add builtin defines for
34016 _LITTLE_ENDIAN and _BIG_ENDIAN.
34017 * config/microblaze/microblaze.h: Add TARGET_ENDIAN_DEFAULT and
34018 add to TARGET_DEFAULT flags.
34019 Expand ASM_SPEC and LINK_SPEC.
34020 Update BYTES_BIG_ENDIAN and WORDS_BIG_ENDIAN.
34021 * config/microblaze/microblaze.md: Update extendsidi2 and
34022 movdi_internal instructions to use low-order / high-order reg
34024 * config/microblaze/microblaze.opt: Add mbig-endian and mlittle-endian
34025 options and inversemask / mask of LITTLE_ENDIAN.
34026 * config/microblaze/t-microblaze: Expand multilib options to
34027 include mlittle-endian (le) and update exceptions patterns.
34029 2013-02-08 Jakub Jelinek <jakub@redhat.com>
34031 PR rtl-optimization/56195
34032 * lra-constraints.c (get_reload_reg): Don't reuse regs
34033 if they have smaller mode than requested, if they have
34034 wider mode than requested, try to return a SUBREG.
34036 PR tree-optimization/56250
34037 * fold-const.c (extract_muldiv_1) <case NEGATE_EXPR>: Don't optimize
34038 if type is unsigned and code isn't MULT_EXPR.
34040 2013-02-08 Georg-Johann Lay <avr@gjlay.de>
34042 PR tree-optimization/56064
34043 * fixed-value.c (fixed_from_double_int): Sign/zero extend payload
34044 bits according to mode.
34045 * fixed-value.h (fixed_from_double_int)
34046 (const_fixed_from_double_int): Adjust comments.
34048 2013-02-08 Richard Biener <rguenther@suse.de>
34051 * lto-streamer.h (struct data_in): Remove current_file, current_line
34052 and current_col members.
34053 * lto-streamer-out.c (lto_output_location): Stream changed bits
34054 en-block for efficiency.
34055 * lto-streamer-in.c (clear_line_info): Remove.
34056 (lto_input_location): Cache current file, line and column
34057 globally via local statics. Read changed bits en-block.
34058 (input_function): Do not call clear_line_info.
34059 (lto_read_body): Likewise.
34060 (lto_input_toplevel_asms): Likewise.
34062 2013-02-08 Michael Matz <matz@suse.de>
34064 PR tree-optimization/52448
34065 * tree-ssa-phiopt.c (struct name_to_bb): Add phase member.
34066 (nt_call_phase): New static.
34067 (add_or_mark_expr): Only mark accesses with newer phase than any
34069 (nonfreeing_call_p): New.
34070 (nt_init_block): Update nt_call_phase, mark blocks as visited.
34071 (nt_fini_block): Keep blocks marked as visited.
34072 (get_non_trapping): Initialize nt_call_phase, and reset aux pointer.
34074 2013-02-08 Richard Biener <rguenther@suse.de>
34076 * ira.c (ira): Free broken dominator information.
34078 2013-02-08 Uros Bizjak <ubizjak@gmail.com>
34080 * config/i386/i386.c (ix86_spill_class): Use INTEGER_CLASS_P macro.
34082 2013-02-08 Marek Polacek <polacek@redhat.com>
34084 * cfgloop.c (verify_loop_structure): Add more checking of headers.
34086 2013-02-08 Richard Biener <rguenther@suse.de>
34088 PR middle-end/56181
34089 * cfgloop.h (flow_loops_find): Adjust.
34090 (bb_loop_header_p): Declare.
34091 * cfgloop.c (bb_loop_header_p): New function split out from ...
34092 (flow_loops_find): ... here. Adjust function signature,
34093 support incremental loop structure update.
34094 (verify_loop_structure): Cleanup. Verify a loop is a loop.
34095 * cfgloopmanip.c (fix_loop_structure): Move ...
34096 * loop-init.c (fix_loop_structure): ... here.
34097 (apply_loop_flags): Split out from ...
34098 (loop_optimizer_init): ... here.
34099 (fix_loop_structure): Use apply_loop_flags. Use flow_loops_find
34100 in incremental mode, only remove dead loops here.
34102 2013-02-08 Georg-Johann Lay <avr@gjlay.de>
34105 * config/avr/avr.md (unspec) <UNSPEC_ROUND>: Add.
34106 * config/avr/avr-fixed.md (ALL4QA, ALL124QA): New mode iterators.
34107 (round<mode>3, round<mode>3_const): New expanders for fixed-mode.
34108 (*round<mode>3.libgcc): New insns for fixed-modes.
34109 * config/avr/builtins.def (ABSxx): Use a non-NULL LIBNAME.
34110 (ROUNDxx, COUNTLSxx, BITSxx, xxBITS): New DEF_BUILTINs.
34111 (ROUNDFX, COUNTLSFX, ABSFX): New DEF_BUILTINs.
34112 * config/avr/stdfix.h (absFX, bitsFX, FXbits): Remove inline
34113 implementations. Define to __builtin_avr_absFX,
34114 __builtin_avr_bitsFX, __builtin_avr_FXbits, respectively.
34115 (roundFX, countlsFX): Define to __builtin_avr_roundFX,
34116 __builtin_avr_countlsFX, respectively.
34117 * config/avr/avr-c.c (target.h): Include it.
34118 (enum avr_builtin_id): New enum.
34119 (avr_resolve_overloaded_builtin): New static function.
34120 (avr_register_target_pragmas): Use it to set
34121 targetm.resolve_overloaded_builtin.
34122 * config/avr/avr.c (avr_init_builtins): Supply myriads of local
34123 tree nodes used by DEF_BUILTIN.
34124 (avr_expand_builtin) <AVR_BUILTIN_ROUNDxx>: Sanity-check them.
34125 (avr_fold_builtin) <AVR_BUILTIN_BITSxx>: Fold to VIEW_COVERT_EXPR.
34126 <AVR_BUILTIN_xxBITS>: Same.
34128 2013-02-08 Richard Biener <rguenther@suse.de>
34130 * cfgloop.c (verify_loop_structure): Properly handle
34131 a loop exiting to another loop header.
34132 * ira-int.h (ira_loops): Remove.
34133 * ira.c (ira_loops): Remove.
34134 (ira): Use loop_optimizer_init and loop_optimizer_finalize.
34135 (do_reload): Use loop_optimizer_finalize.
34136 * ira-build.c (create_loop_tree_nodes): Use get_loops and
34137 number_of_loops to access the loop tree.
34138 (more_one_region_p): Likewise.
34139 (finish_loop_tree_nodes): Likewise.
34140 (rebuild_regno_allocno_maps): Likewise.
34141 (mark_loops_for_removal): Likewise.
34142 (mark_all_loops_for_removal): Likewise.
34143 (remove_unnecessary_regions): Likewise.
34144 (ira_build): Likewise.
34145 * ira-emit.c (setup_entered_from_non_parent_p): Likewise.
34147 2013-02-08 Richard Biener <rguenther@suse.de>
34149 * Makefile.in (tree-tailcall.o): Add $(CFGLOOP_H) dependency.
34150 * ipa-pure-const.c (analyze_function): Avoid calling
34151 mark_irreducible_loops twice.
34152 * tree-tailcall.c (tree_optimize_tail_calls_1): Mark loops for fixup.
34154 2013-02-07 David S. Miller <davem@davemloft.net>
34156 * dwarf2out.c (based_loc_descr): Perform leaf register remapping
34158 * var-tracking.c (vt_add_function_parameter): Test the presence of
34159 HAVE_window_save properly and do not remap argument registers when
34160 we have a leaf function.
34162 2013-02-07 Uros Bizjak <ubizjak@gmail.com>
34165 * ggc-page.c (ggc_print_statistics): Use HOST_LONG_LONG_FORMAT
34167 * config/i386/i386.c (ix86_print_operand): Ditto.
34169 2013-02-07 Vladimir Makarov <vmakarov@redhat.com>
34171 * lra-constraints.c (process_alt_operands): Fix recently added comment.
34173 2013-02-07 Vladimir Makarov <vmakarov@redhat.com>
34175 PR rtl-optimization/56225
34176 * lra-constraints.c (process_alt_operands): Check that reload hard
34177 reg can hold value for strict_low_part.
34179 2013-02-07 Jakub Jelinek <jakub@redhat.com>
34182 * dwarf2out.c (dwarf2_debug_hooks): Set end_function hook to
34183 dwarf2out_end_function.
34184 (in_first_function_p, maybe_at_text_label_p,
34185 first_loclabel_num_not_at_text_label): New variables.
34186 (dwarf2out_var_location): In the first function find out
34187 lowest loclabel_num N where .LVLN is known not to be equal to .Ltext0.
34188 (find_empty_loc_ranges_at_text_label, dwarf2out_end_function): New
34191 2013-02-07 Eric Botcazou <ebotcazou@adacore.com>
34193 PR rtl-optimization/56178
34194 * cse.c (cse_insn): Do not create a REG_EQUAL note if the source is a
34195 SUBREG of a register. Tidy up related block of code.
34196 * fwprop.c (forward_propagate_and_simplify): Do not create a REG_EQUAL
34197 note if the source is a register or a SUBREG of a register.
34199 2013-02-07 Jakub Jelinek <jakub@redhat.com>
34202 * config/rs6000/rs6000.md (ptrm): New mode attr.
34203 (call_indirect_aix<ptrsize>, call_indirect_aix<ptrsize>_nor11,
34204 call_value_indirect_aix<pttrsize>,
34205 call_value_indirect_aix<pttrsize>_nor11): Use <ptrm> instead of
34208 2013-02-07 Michael Haubenwallner <michael.haubenwallner@salomon.at>
34210 * collect2.c (main): Set aix64_flag for -G and -bsvr4 too, disable
34211 if -bnortl. Convert to strcmp and strncmp.
34213 2013-02-07 Alan Modra <amodra@gmail.com>
34216 * config/rs6000/rs6000.c (mem_operand_gpr): Check that LO_SUM
34217 addresses won't wrap when offsetting.
34218 (rs6000_secondary_reload): Provide secondary reloads needed for
34219 wrapping LO_SUM addresses.
34221 2013-02-06 Thomas Schwinge <thomas@codesourcery.com>
34223 * config/gnu.h (GNU_USER_TARGET_OS_CPP_BUILTINS): Never define
34224 MACH, just __MACH__.
34226 2013-02-06 Richard Biener <rguenther@suse.de>
34228 * tracer.c (tracer): Mark loops with LOOPS_NEED_FIXUP
34229 instead of calling fix_loop_structure.
34231 2013-02-06 Jakub Jelinek <jakub@redhat.com>
34233 PR middle-end/56217
34234 * omp-low.c (use_pointer_for_field): Return false if
34235 lower_send_shared_vars doesn't generate any copy-out code.
34237 2013-02-06 Tom de Vries <tom@codesourcery.com>
34239 PR rtl-optimization/56131
34240 * cfgrtl.c (delete_insn): Use NOTE_BASIC_BLOCK instead of BLOCK_FOR_INSN
34241 to get the bb of a NOTE_INSN_BASIC_BLOCK. Handle the case that the bb
34242 of the label is NULL. Add comment.
34244 2013-02-05 Jakub Jelinek <jakub@redhat.com>
34246 * tree.h (struct tree_decl_with_vis): Remove thread_local field.
34249 * config/gnu-user.h (LIBTSAN_EARLY_SPEC): Define.
34250 (STATIC_LIBTSAN_LIBS): Likewise.
34251 * gcc.c (ADD_STATIC_LIBTSAN_LIBS, LIBTSAN_EARLY_SPEC): Define.
34252 (LIBTSAN_SPEC): Add ADD_STATIC_LIBTSAN_LIBS, if LIBTSAN_EARLY_SPEC
34253 is defined, don't add anything else beyond that.
34254 (SANITIZER_EARLY_SPEC, SANITIZER_SPEC): Define.
34255 (LINK_COMMAND_SPEC): Use them.
34257 PR tree-optimization/56205
34258 * tree-stdarg.c (check_all_va_list_escapes): Return true if
34259 there are any PHI nodes that set non-va_list_escape_vars SSA_NAME
34260 and some va_list_escape_vars SSA_NAME appears in some PHI argument.
34262 2013-02-05 Richard Biener <rguenther@suse.de>
34264 PR tree-optimization/53342
34265 PR tree-optimization/53185
34266 * tree-vectorizer.h (vect_check_strided_load): Remove.
34267 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment): Do
34268 not disallow peeling for vectorized strided loads.
34269 (vect_check_strided_load): Make static and simplify.
34270 (vect_analyze_data_refs): Adjust.
34271 * tree-vect-stmts.c (vectorizable_load): Handle peeled loops
34272 correctly when vectorizing strided loads.
34274 2013-02-05 Richard Biener <rguenther@suse.de>
34276 * doc/install.texi: Refer to ISL, not PPL.
34278 2013-02-05 Jan Hubicka <jh@suse.cz>
34280 PR tree-optimization/55789
34281 * params.def (PARAM_EARLY_INLINER_MAX_ITERATIONS): Drop to 1.
34283 2013-02-05 Jan Hubicka <jh@suse.cz>
34285 PR tree-optimization/55789
34286 * cgraphclones.c (cgraph_remove_node_and_inline_clones): Remove
34287 the dead call anyway.
34289 2013-02-05 Eric Botcazou <ebotcazou@adacore.com>
34292 * config/gnu-user.h (LIBASAN_EARLY_SPEC): Add missing guard.
34294 2013-02-04 Alexander Potapenko <glider@google.com>
34295 Jack Howarth <howarth@bromo.med.uc.edu>
34296 Jakub Jelinek <jakub@redhat.com>
34299 * config/darwin.c (sort_ctor_records): Stabilized qsort
34300 on constructor priority by using original position.
34301 (finalize_ctors): New routine to sort constructors by
34302 priority before use in assemble_integer.
34303 (machopic_asm_out_constructor): Use finalize_ctors if needed.
34305 2013-02-04 Jakub Jelinek <jakub@redhat.com>
34308 * config/i386/winnt.c (i386_pe_assemble_visibility): Don't warn
34309 about visibility on artificial decls.
34310 * config/sol2.c (solaris_assemble_visibility): Likewise.
34312 2013-02-04 Kai Tietz <ktietz@redhat.com>
34315 * config/i386/i386.c (function_value_ms_64): Add additional valtype
34316 argument and improve checking of return-argument types for 16-byte
34318 (ix86_function_value_1): Add additional valtype argument on call
34319 of function_value_64.
34320 (return_in_memory_ms_64): Sync 16-byte sized mode handling with
34321 handling infunction_value_64 function.
34323 2013-02-04 Matthew Gretton-Dann <matthew.gretton-dann@linaro.org>
34325 * reload.c (subst_reloads): Fix DEBUG_RELOAD build issue.
34327 2013-02-04 Richard Biener <rguenther@suse.de>
34329 PR tree-optimization/56188
34330 * tree-ssa-structalias.c (label_visit): Consider case with
34331 initially non-empty points-to set.
34332 (perform_var_substitution): Dump node mapping and clean up.
34334 2013-02-04 Richard Guenther <rguenther@suse.de>
34337 * lto-symtab.c (lto_symtab_merge_decls_1): Make non-builtin
34338 node prevail as last resort.
34339 (lto_symtab_merge_decls): Remove guard on LTRANS here.
34340 (lto_symtab_prevailing_decl): Builtins are their own prevailing decl.
34342 2013-02-04 Richard Biener <rguenther@suse.de>
34344 PR tree-optimization/56113
34345 * tree-ssa-structalias.c (equiv_class_lookup, equiv_class_add):
34347 (equiv_class_lookup_or_add): ... this.
34348 (label_visit): Adjust and fix error in previous patch.
34349 (perform_var_substitution): Adjust.
34351 2013-02-03 Oleg Endo <olegendo@gcc.gnu.org>
34353 * config/sh/divtab.c: Fix formatting and comments throughout the file.
34354 * config/sh/sh4-300.md: Likewise.
34355 * config/sh/sh4a.md: Likewise.
34356 * config/sh/constraints.md: Likewise.
34357 * config/sh/sh.md: Likewise.
34358 * config/sh/netbsd-elf.h: Likewise.
34359 * config/sh/predicates.md: Likewise.
34360 * config/sh/sh-protos.h: Likewise.
34361 * config/sh/ushmedia.h: Likewise.
34362 * config/sh/linux.h: Likewise.
34363 * config/sh/sh.c: Likewise.
34364 * config/sh/superh.h: Likewise.
34365 * config/sh/elf.h: Likewise.
34366 * config/sh/sh4.md: Likewise.
34367 * config/sh/sh.h: Likewise.
34369 2013-02-03 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
34371 * config/pa/constraints.md: Adjust unused letters. Change "T"
34372 constraint to match_test floating_point_store_memory_operand().
34373 * config/pa/predicates.md (reg_plus_base_memory_operand): New.
34374 (base14_operand): New.
34375 (floating_point_store_memory_operand): New.
34376 (integer_store_memory_operand): Revise to use base14_operand and
34377 reg_plus_base_memory_operand.
34378 (move_dest_operand): Allow symbolic_memory_operands.
34379 (symbolic_memory_operand): Check for LO_SOM.
34380 (symbolic_operand): Change default case to break.
34381 * config/pa/pa.md: Remove unamed DFmode and SFmode patterns to force
34382 CONST_DOUBLE values to be reloaded by putting them into memory when
34383 the destination is a floating point register.
34384 (movdf): Remove code to handle CONST_DOUBLE.
34386 (reload_indf_r1): New.
34387 (reload_insf_r1): New.
34388 Consistently use "Q" and "T" constraints with integer and floating
34389 point move instructions, respectively.
34390 (movdi): Remove FAIL.
34391 Change predicate for source operand unamed DImode move from
34392 general_operand to move_src_operand.
34393 (umulsidi3): Change predicate for destination operand to
34395 Likewise for similar unamed patterns.
34396 * config/pa/pa-protos.h (pa_legitimize_reload_address): Declare.
34397 * config/pa/pa.c (pa_symbolic_expression_p): Remove extra parenthesis.
34398 (hppa_legitimize_address): Simplify mask calculation.
34399 (pa_emit_move_sequence): Revised handling of secondary reloads from
34400 REG+D addresses for floating point loads and stores. Directly handle
34401 loading CONST0_RTX (mode) to a floating point register.
34402 (pa_secondary_reload): Handle reloading DF and SFmode constant values
34403 to floating point registers. Don't restrict secondary reloads to
34404 floating point registers to integer modes. Revise some comments and
34406 (TARGET_LEGITIMATE_ADDRESS_P): Define.
34407 (pa_legitimate_address_p): New.
34408 (pa_legitimize_reload_address): New.
34409 * config/pa/pa.h (STRICT_REG_OK_FOR_INDEX_P): New.
34410 (STRICT_REG_OK_FOR_BASE_P): New.
34411 (GO_IF_LEGITIMATE_ADDRESS): Delete. Update some related comments.
34412 (LEGITIMIZE_RELOAD_ADDRESS): Revise to use pa_legitimize_reload_address.
34414 2013-02-03 David Edelsohn <dje.gcc@gmail.com>
34415 Andrew Dixie <andrewd@gentrack.com>
34417 * collect2.c (GCC_CHECK_HDR): Do not scan objects with F_LOADONLY
34420 2013-02-03 Richard Sandiford <rdsandiford@googlemail.com>
34422 * expmed.c (extract_bit_field_1): Pass the full width of the
34423 structure to get_best_reg_extraction_insn.
34425 2013-02-01 David Edelsohn <dje.gcc@gmail.com>
34428 * configure.ac (use_cxa_atexit): Add AIX.
34429 * configure: Regenerate.
34431 * config/rs6000/aix61.h (STARTFILE_SPEC): Add crtcxa.o.
34433 2013-02-01 Jakub Jelinek <jakub@redhat.com>
34436 * final.c (need_profile_function): New variable.
34437 (final_start_function): Drop ATTRIBUTE_UNUSED from first argument.
34438 If first of NOTE_INSN_BASIC_BLOCK or NOTE_INSN_FUNCTION_BEG
34439 is only preceeded by NOTE_INSN_VAR_LOCATION or NOTE_INSN_DELETED
34440 notes, targetm.asm_out.function_prologue doesn't emit anything,
34441 HAVE_prologue and profiler should be emitted before prologue,
34442 set need_profile_function instead of emitting it.
34443 (final_scan_insn): If need_profile_function, emit
34444 profile_function on the first NOTE_INSN_BASIC_BLOCK or
34445 NOTE_INSN_FUNCTION_BEG note.
34447 2013-02-01 Richard Henderson <rth@redhat.com>
34449 * config/rs6000/rs6000.md (smulditi3): New.
34452 * config/alpha/alpha.md (umulditi3): New.
34454 2013-02-01 David Edelsohn <dje.gcc@gmail.com>
34456 * config/rs6000/xcoff.h (ASM_OUTPUT_ALIGNED_COMMON): Use floor_log2.
34457 (ASM_OUTPUT_ALIGNED_LOCAL): New.
34459 2013-02-01 Richard Biener <rguenther@suse.de>
34461 PR tree-optimization/56113
34462 * tree-ssa-structalias.c (label_visit): Reduce work for
34463 single-predecessor nodes.
34465 2013-02-01 Eric Botcazou <ebotcazou@adacore.com>
34467 * fold-const.c (make_range_step) <TRUTH_NOT_EXPR>: Bail out if the
34468 range isn't testing for zero.
34470 2013-01-31 Steven Bosscher <steven@gcc.gnu.org>
34472 PR middle-end/56113
34473 * fwprop.c (fwprop_init): Set up loops without CFG modifications.
34475 2013-01-31 Hiroyuki Ono <hiroyuki.ono.jc@renesas.com>
34476 Nick Clifton <nickc@redhat.com>
34478 * config/v850/constraints.md (Q): Define as a memory constraint.
34479 * config/v850/predicates.md (label_ref_operand): New predicate.
34480 (e3v5_shift_operand): New predicate.
34481 (ior_operator): New predicate.
34482 * config/v850/t-v850: Add e3v5 multilib.
34483 * config/v850/v850-protos.h (v850_adjust_insn_length): Prototype.
34484 (v850_gen_movdi): Prototype.
34485 * config/v850/v850.c: Add support for e3v5 architecture.
34486 Rename all uses of TARGET_V850E || TARGET_V850E2_ALL to
34488 (construct_save_jarl): Add e3v5 long JARL support.
34489 (v850_adjust_insn_length): New function. Adjust length of call
34490 insns when using e3v5 instructions.
34491 (v850_gen_movdi): New function: Generate instructions to move a
34493 * config/v850/v850.h (TARGET_CPU_v850e3v5): Define.
34494 (CPP_SPEC): Define __v850e3v5__ as appropriate.
34495 (TARGET_USE_FPU): Enable for e3v5.
34496 (CONST_OK_FOR_W): New macro.
34497 (ADJUST_INSN_LENGTH): Define.
34498 * config/v850/v850.md (UNSPEC_LOOP): Define.
34499 (attr cpu): Add v850e3v5.
34500 Rename all uses of TARGET_V850E2 to TARGET_V850E2V3_UP.
34501 (movdi): New pattern.
34502 (movdi_internal): New pattern.
34503 (cbranchsf4): Conditionalize on TARGET_USE_FPU.
34504 (cbranchdf4): Conditionalize on TARGET_USE_FPU.
34505 (cstoresf4): Likewise.
34506 (cstoredf4): Likewise.
34507 (insv): New pattern.
34508 (rotlso3_a): New pattern.
34509 (rotlsi3_b): New pattern
34510 (rotlsi3_v850e3v5): New pattern.
34511 (doloop_begin): New pattern.
34512 (fix_loop_counter): New pattern.
34513 (doloop_end): New pattern.
34514 (branch_normal): Add e3v5 long branch support.
34515 (branch_invert): Likewise.
34516 (branch_z_normal): Likewise.
34517 (branch_z_invert): Likewise.
34518 (branch_nz_normal): Likewise.
34519 (branch_nz_invert): Likewise.
34520 (call_internal_short): Add e3v5 register-indirect JARL support.
34521 (call_internal_long): Likewise.
34522 (call_value_internal_short): Likewise.
34523 (call_value_internal_long): Likewise.
34524 * config/v850/v850.opt (mv850e3v5, mv850e2v4): New options.
34525 (mloop): New option.
34526 * config.gcc: Add support for configuring v840e3v5 target.
34527 * doc/invoke.texi: Document new v850 specific command line options.
34529 2013-01-31 Paul Koning <ni1d@arrl.net>
34533 * dwarf2out.c (prune_unused_types_mark): Mark all of parent's
34534 children if parent is a class.
34535 (prune_unused_types_prune): Don't add DW_AT_declaration.
34537 2013-01-31 Richard Biener <rguenther@suse.de>
34539 PR tree-optimization/56157
34540 * tree-vect-slp.c (vect_get_slp_defs): More thoroughly try to
34541 match up operand with SLP child.
34543 2013-01-31 Jason Merrill <jason@redhat.com>
34546 * dwarf2out.c (gen_struct_or_union_type_die): Always schedule template
34547 parameters the first time.
34548 (gen_scheduled_generic_parms_dies): Check completeness here.
34550 2013-01-31 Richard Biener <rguenther@suse.de>
34552 PR middle-end/53073
34553 * common.opt (faggressive-loop-optimizations): New flag,
34554 enabled by default.
34555 * doc/invoke.texi (faggressive-loop-optimizations): Document.
34556 * tree-ssa-loop-niter.c (estimate_numbers_of_iterations_loop): Guard
34557 infer_loop_bounds_from_undefined by it.
34559 2013-01-31 Richard Biener <rguenther@suse.de>
34561 PR tree-optimization/56150
34562 * tree-ssa-loop-manip.c (find_uses_to_rename_stmt): Do not
34563 visit virtual operands.
34564 (find_uses_to_rename_bb): Likewise.
34566 2013-01-31 Richard Biener <rguenther@suse.de>
34568 PR tree-optimization/56150
34569 * tree-ssa-tail-merge.c (gimple_equal_p): Properly handle
34570 mixed store non-store stmts.
34572 2013-01-30 Jakub Jelinek <jakub@redhat.com>
34575 * gcc.c (LIBASAN_SPEC): Define just to ADD_STATIC_LIBASAN_LIBS if
34576 LIBASAN_EARLY_SPEC is defined.
34577 (LIBASAN_EARLY_SPEC): Define to empty string if not already defined.
34578 (LINK_COMMAND_SPEC): Add LIBASAN_EARLY_SPEC for -fsanitize=address,
34580 * config/gnu-user.h (LIBASAN_EARLY_SPEC): Define.
34583 * config/i386/i386.c (ix86_valid_target_attribute_inner_p): Diagnose
34584 invalid args instead of ICEing on it.
34585 (ix86_valid_target_attribute_tree): Return error_mark_node if
34586 ix86_valid_target_attribute_inner_p failed.
34587 (ix86_valid_target_attribute_p): Return false only if
34588 ix86_valid_target_attribute_tree returned error_mark_node. Allow
34589 target("default") attribute.
34590 (sorted_attr_string): Change argument from const char * to tree,
34591 merge in all target attribute arguments rather than just one.
34592 Formatting fix. Use XNEWVEC instead of xmalloc and XDELETEVEC
34593 instead of free. Avoid using strcat.
34594 (ix86_mangle_function_version_assembler_name): Mangle
34595 target("default") as if no target attribute is present. Adjust
34596 sorted_attr_string caller. Avoid leaking memory. Use XNEWVEC
34597 instead of xmalloc and XDELETEVEC instead of free.
34598 (ix86_function_versions): Don't return true if one of the decls
34599 doesn't have target attribute. If they don't and one of the decls
34600 is DECL_FUNCTION_VERSIONED, report an error. Adjust
34601 sorted_attr_string caller. Use XDELETEVEC instead of free.
34602 (ix86_supports_function_versions): Remove.
34603 (make_name): Fix up formatting.
34604 (make_dispatcher_decl): Remove resolver_name and its initialization.
34605 Avoid leaking memory.
34606 (is_function_default_version): Return true if there is
34607 target("default") attribute rather than no target attribute at all.
34608 (make_resolver_func): Avoid leaking memory.
34609 (ix86_generate_version_dispatcher_body): Likewise.
34610 (TARGET_OPTION_SUPPORTS_FUNCTION_VERSIONS): Remove.
34611 * target.def (supports_function_versions): Remove.
34612 * doc/tm.texi.in (SUPPORTS_FUNCTION_VERSIONS): Remove.
34613 * doc/tm.texi: Regenerated.
34615 2013-01-30 Vladimir Makarov <vmakarov@redhat.com>
34617 PR rtl-optimization/56144
34618 * lra-constraints.c (get_reload_reg): Don't reuse reload pseudo
34619 for values with side effects.
34621 2013-01-30 Richard Biener <rguenther@suse.de>
34623 * sparseset.h (sparseset_bit_p): Use gcc_checking_assert.
34624 (sparseset_pop): Likewise.
34625 * cfganal.c (compute_idf): Likewise. Increase work-stack size
34626 to be able to use quick_push in the worker loop.
34628 2013-01-30 Marek Polacek <polacek@redhat.com>
34630 * cfgcleanup.c (cleanup_cfg): Don't mark affected BBs.
34632 2013-01-30 Richard Biener <rguenther@suse.de>
34635 * lto-symtab.c (lto_symtab_merge_decls_1): Guard DECL_BUILT_IN check.
34637 2013-01-30 Georg-Johann Lay <avr@gjlay.de>
34639 PR tree-optimization/56064
34640 * fixed-value.c (fixed_from_double_int): New function.
34641 * fixed-value.h (fixed_from_double_int): New prototype.
34642 (const_fixed_from_double_int): New static inline function.
34643 * fold-const.c (native_interpret_fixed): New static function.
34644 (native_interpret_expr) <FIXED_POINT_TYPE>: Use it.
34645 (can_native_interpret_type_p) <FIXED_POINT_TYPE>: Return true.
34646 (native_encode_fixed): New static function.
34647 (native_encode_expr) <FIXED_CST>: Use it.
34648 (native_interpret_int): Move double_int worker code to...
34649 * double-int.c (double_int::from_buffer): ...this new static method.
34650 * double-int.h (double_int::from_buffer): Prototype it.
34652 2013-01-30 Richard Biener <rguenther@suse.de>
34654 * tree-ssa-structalias.c (final_solutions, final_solutions_obstack):
34655 New pointer-map and obstack.
34656 (init_alias_vars): Allocate pointer-map and obstack.
34657 (delete_points_to_sets): Free them.
34658 (find_what_var_points_to): Cache result.
34659 (find_what_p_points_to): Adjust for changed interface of
34660 find_what_var_points_to.
34661 (compute_points_to_sets): Likewise.
34662 (ipa_pta_execute): Likewise.
34664 2013-01-30 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
34666 * configure.ac (HAVE_AS_SPARC_NOBITS): New test.
34667 * configure: Regenerate.
34668 * config.in: Regenerate.
34669 * config/sparc/sparc.c (sparc_solaris_elf_asm_named_section): Emit
34670 #nobits/#progbits if supported.
34672 2013-01-29 Oleg Endo <olegendo@gcc.gnu.org>
34675 * config/sh/sh.md (bclr_m2a, bset_m2a, bst_m2a, bld_m2a, bldsign_m2a,
34676 bld_reg, *bld_regqi, band_m2a, bandreg_m2a, bor_m2a, borreg_m2a,
34677 bxor_m2a, bxorreg_m2a): Add satisfies_constraint_K03 condition.
34679 2013-01-29 Greta Yorsh <Greta.Yorsh@arm.com>
34681 * config/arm/cortex-a7.md (cortex_a7_neon, cortex_a7_all): Remove.
34682 (cortex_a7_idiv): Use cortex_a7_both instead of cortex_a7_all.
34684 2013-01-29 Greta Yorsh <Greta.Yorsh@arm.com>
34686 * config/arm/arm.c (cortexa7_younger): Return true for TYPE_CALL.
34687 * config/arm/cortex-a7.md (cortex_a7_call): Update required units.
34689 2013-01-29 Greta Yorsh <Greta.Yorsh@arm.com>
34691 * config/arm/arm-protos.h (arm_mac_accumulator_is_result): New
34693 * config/arm/arm.c (arm_mac_accumulator_is_result): New function.
34694 * config/arm/cortex-a7.md: New bypasses using
34695 arm_mac_accumulator_is_result.
34697 2013-01-29 Greta Yorsh <Greta.Yorsh@arm.com>
34699 * config/arm/cortex-a7.md (cortex_a7_neon_mul): New reservation.
34700 (cortex_a7_neon_mla): Likewise.
34701 (cortex_a7_fpfmad): New reservation.
34702 (cortex_a7_fpmacs): Use ffmas and update required units.
34703 (cortex_a7_fpmuld): Update required units and latency.
34704 (cortex_a7_fpmacd): Likewise.
34705 (cortex_a7_fdivs, cortex_a7_fdivd): Likewise.
34706 (cortex_a7_neon). Likewise.
34707 (bypass) Update participating units.
34709 2013-01-29 Greta Yorsh <Greta.Yorsh@arm.com>
34711 * config/arm/arm.md (type): Add ffmas and ffmad to "type" attribute.
34712 * config/arm/vfp.md (fma,fmsub,fnmsub,fnmadd): Change type
34714 * config/arm/vfp11.md (vfp_farith): Use ffmas.
34715 (vfp_fmul): Use ffmad.
34716 * config/arm/cortex-r4f.md (cortex_r4_fmacs): Use ffmas.
34717 (cortex_r4_fmacd): Use ffmad.
34718 * config/arm/cortex-m4-fpu.md (cortex_m4_fmacs): Use ffmas.
34719 * config/arm/cortex-a9.md (cortex_a9_fmacs): Use ffmas.
34720 (cortex_a9_fmacd): Use ffmad.
34721 * config/arm/cortex-a8-neon.md (cortex_a8_vfp_macs): Use ffmas.
34722 (cortex_a8_vfp_macd): Use ffmad.
34723 * config/arm/cortex-a5.md (cortex_a5_fpmacs): Use ffmas.
34724 (cortex_a5_fpmacd): Use ffmad.
34725 * config/arm/cortex-a15-neon.md (cortex_a15_vfp_macs) Use ffmas.
34726 (cortex_a15_vfp_macd): Use ffmad.
34727 * config/arm/arm1020e.md (v10_fmul): Use ffmas and ffmad.
34729 2013-01-29 Jason Merrill <jason@redhat.com>
34732 * varasm.c (default_assemble_visibility): Don't warn about
34733 visibility on artificial decls.
34735 2013-01-29 Richard Biener <rguenther@suse.de>
34737 PR tree-optimization/56113
34738 * tree-ssa-structalias.c (equiv_class_lookup): Also return
34740 (label_visit): Free duplicate bitmaps and record the leader instead.
34741 (perform_var_substitution): Adjust.
34743 2013-01-29 Richard Biener <rguenther@suse.de>
34745 PR tree-optimization/55270
34746 * tree-ssa-dom.c (eliminate_degenerate_phis): If we changed
34747 the CFG, schedule loops for fixup.
34749 2013-01-29 Nick Clifton <nickc@redhat.com>
34751 * config/rl78/rl78.c (rl78_regno_mode_code_ok_for_base_p): Allow
34754 2013-01-28 Leif Ekblad <leif@rdos.net>
34756 * config.gcc (i[34567]86-*-rdos*, x86_64-*-rdos*): New targets.
34757 * config/i386/i386.h (TARGET_RDOS): New macro.
34758 (DEFAULT_LARGE_SECTION_THRESHOLD): New macro.
34759 * config/i386/i386.c (ix86_option_override_internal): For 64bit
34760 TARGET_RDOS, set ix86_cmodel to CM_MEDIUM_PIC and flag_pic to 1.
34761 * config/i386/i386.opt (mlarge-data-threshold): Initialize to
34762 DEFAULT_LARGE_SECTION_THRESHOLD.
34763 * config/i386/i386.md (R14_REG, R15_REG): New constants.
34764 * config/i386/rdos.h: New file.
34765 * config/i386/rdos64.h: New file.
34767 2013-01-28 Bernd Schmidt <bernds@codesourcery.com>
34770 * reload.c (find_valid_class_1): Use in_hard_reg_set_p instead of
34773 2013-01-28 Jakub Jelinek <jakub@redhat.com>
34775 PR rtl-optimization/56117
34776 * sched-deps.c (sched_analyze_2) <case PREFETCH>: For use_cselib
34777 call cselib_lookup_from_insn on the MEM before calling
34778 add_insn_mem_dependence.
34780 2013-01-28 Richard Biener <rguenther@suse.de>
34782 * tree-inline.c (remap_gimple_stmt): Do not assing a BLOCK
34783 to a stmt that didn't have one.
34784 (copy_phis_for_bb): Likewise for PHI arguments.
34785 (copy_debug_stmt): Likewise for debug stmts.
34787 2013-01-28 Richard Biener <rguenther@suse.de>
34789 PR tree-optimization/56034
34790 * tree-loop-distribution.c (enum partition_kind): Add PKIND_REDUCTION.
34791 (partition_builtin_p): Adjust.
34792 (generate_code_for_partition): Handle PKIND_REDUCTION. Assert
34793 it is the last partition.
34794 (rdg_flag_uses): Check SSA_NAME_IS_DEFAULT_DEF before looking
34795 up the vertex for the definition.
34796 (classify_partition): Classify whether a partition is a
34797 PKIND_REDUCTION, thus has uses outside of the loop.
34798 (ldist_gen): Inherit PKIND_REDUCTION when merging partitions.
34799 Merge all PKIND_REDUCTION partitions into the last partition.
34800 (tree_loop_distribution): Seed partitions from reductions as well.
34802 2013-01-28 Jakub Jelinek <jakub@redhat.com>
34804 PR tree-optimization/56125
34805 * tree-ssa-math-opts.c (gimple_expand_builtin_pow): Don't optimize
34806 pow(x,c) into sqrt(x) * powi(x, n/2) or
34807 1.0 / (sqrt(x) * powi(x, abs(n/2))) if c is an integer or when
34808 optimizing for size.
34809 Don't optimize pow(x,c) into powi(x, n/3) * powi(cbrt(x), n%3) or
34810 1.0 / (powi(x, abs(n)/3) * powi(cbrt(x), abs(n)%3)) if 2c is an
34813 PR tree-optimization/56094
34814 * gimplify.c (force_gimple_operand_1): Temporarily set input_location
34815 to UNKNOWN_LOCATION while gimplifying expr.
34817 2013-01-27 Uros Bizjak <ubizjak@gmail.com>
34820 * config/i386/i386.md (*movabs<mode>_1): Add square brackets around
34821 operand 0 in movabs insn template for -masm=intel asm alternative.
34822 (*movabs<mode>_2): Ditto for operand 1.
34824 2013-01-26 David Holsgrove <david.holsgrove@xilinx.com>
34827 * config.gcc (microblaze*-linux*): Add tmake_file to allow building
34830 2013-01-26 Edgar E. Iglesias <edgar.iglesias@gmail.com>
34832 * config.gcc (microblaze*-*-*): Rename microblaze*-*-elf, update
34835 2013-01-25 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
34837 * config/aarch64/aarch64.c (TARGET_FIXED_CONDITION_CODE_REGS):
34838 Undef to avoid warning.
34840 2013-01-25 Michael Haubenwallner <michael.haubenwallner@salomon.at>
34842 * configure.ac (gcc_cv_ld_static_dynamic): Define for AIX native ld.
34843 * configure: Regenerate.
34845 2013-01-25 Jakub Jelinek <jakub@redhat.com>
34847 PR tree-optimization/56098
34848 * tree-ssa-phiopt.c (nt_init_block): Don't call add_or_mark_expr
34849 for stmts with volatile ops.
34850 (cond_store_replacement): Don't optimize if assign has volatile ops.
34851 (cond_if_else_store_replacement_1): Don't optimize if either
34852 then_assign or else_assign have volatile ops.
34853 (hoist_adjacent_loads): Don't optimize if either def1 or def2 have
34856 2013-01-25 Georg-Johann Lay <avr@gjlay.de>
34858 * doc/invoke.texi (AVR Built-in Macros): Document __XMEGA__.
34860 2013-01-25 Georg-Johann Lay <avr@gjlay.de>
34862 * doc/extend.texi (Example of asm with clobbered asm reg): Fix
34863 missing ':' in asm example.
34865 2013-01-25 Tejas Belagod <tejas.belagod@arm.com>
34867 * config/aarch64/aarch64-simd-builtins.def: Separate sq<r>dmulh_lane
34868 entries into lane and laneq entries.
34869 * config/aarch64/aarch64-simd.md (aarch64_sq<r>dmulh_lane<mode>):
34870 Remove AdvSIMD scalar modes.
34871 (aarch64_sq<r>dmulh_laneq<mode>): New.
34872 (aarch64_sq<r>dmulh_lane<mode>): New RTL pattern for Scalar AdvSIMD
34874 * config/aarch64/arm_neon.h: Fix all the vq<r>dmulh_lane* intrinsics'
34875 builtin implementations to relfect changes in RTL in aarch64-simd.md.
34876 * config/aarch64/iterators.md (VCOND): New.
34879 2013-01-25 Georg-Johann Lay <avr@gjlay.de>
34882 * config/avr/builtins.def (DEF_BUILTIN): Add LIBNAME argument.
34883 Add NULL LIBNAME argument to existing definitions.
34884 (ABSHR, ABSR, ABSLR, ABSLLR, ABSHK, ABSK, ABSLK, ABSLLK): New.
34885 * config/avr/avr-c.c (DEF_BUILTIN): Add LIBNAME argument.
34886 * config/avr/avr.c (DEF_BUILTIN): Same.
34887 (avr_init_builtins): Pass down LIBNAME to add_builtin_function.
34888 (avr_expand_builtin): Expand to a vanilla call if a libgcc
34889 implementation is available (DECL_ASSEMBLER_NAME is set).
34890 (avr_fold_absfx): New static function.
34891 (avr_fold_builtin): Use it to handle: AVR_BUILTIN_ABSHR,
34892 AVR_BUILTIN_ABSR, AVR_BUILTIN_ABSLR, AVR_BUILTIN_ABSLLR,
34893 AVR_BUILTIN_ABSHK, AVR_BUILTIN_ABSK, AVR_BUILTIN_ABSLK,
34894 AVR_BUILTIN_ABSLLK.
34895 * config/avr/stdfix.h (abshr, absr, abslr, absllr)
34896 (abshk, absk, abslk, absllk): Provide as static inline functions.
34898 2013-01-25 Marek Polacek <polacek@redhat.com>
34900 PR tree-optimization/56035
34901 * cfgloopmanip.c (fix_loop_structure): Remove redundant condition.
34903 2012-01-24 Uros Bizjak <ubizjak@gmail.com>
34905 * config/i386/i386.md (*movti_internal_rex64): Add (o,e) alternative.
34906 (*movtf_internal_rex64): Add (!o,C) alternative
34907 (*movxf_internal_rex64): Ditto.
34908 (*movdf_internal_rex64): Add (?r,C) and (?m,C) alternatives.
34910 2013-01-24 Shenghou Ma <minux.ma@gmail.com>
34912 * doc/invoke.texi: fix typo.
34913 * doc/objc.texi: fix typo.
34915 2013-01-24 Richard Sandiford <rdsandiford@googlemail.com>
34917 * config/mips/mips.md (*and<mode>3_mips16): Use the "W" constraint
34918 for the first two alternatives.
34920 2013-01-24 Diego Novillo <dnovillo@google.com>
34922 * Makefile.in (GGC): Remove. Replace all instances with ggc-page.o.
34923 (ggc-zone.o): Remove.
34924 * configure.ac: Remove option --with-gc.
34925 * configure: Re-generate.
34926 * doc/install.texi: Remove documentation for --with-gc.
34927 * gengtype.c (write_enum_defn): Remove. Update all users.
34928 (write_Types_process_field): Remove generation of gt_e_* argument.
34929 (output_type_enum): Remove. Update all users.
34930 (write_enum_defn): Remove. Update all users.
34931 (enum alloc_zone): Remove. Update all users.
34932 (write_splay_tree_allocator_def): Remove generation of gt_e_* argument.
34933 * ggc-common.c (ggc_splay_alloc): Remove first argument.
34934 Update all callers.
34935 (struct ptr_data): Remove field TYPE. Update all users.
34936 (gt_pch_note_object): Remove argument TYPE. Update all users.
34937 * ggc-internal.h (ggc_pch_alloc_object): Remove last argument.
34939 * ggc-none.c (ggc_alloc_typed_stat): Remove.
34940 (struct alloc_zone): Remove.
34941 (ggc_internal_alloc_zone_stat): Remove.
34942 (ggc_internal_cleared_alloc_zone_stat): Remove.
34943 * ggc-page.c (ggc_alloc_typed_stat): Remove.
34944 (ggc_pch_count_object): Remove last argument. Update all users.
34945 (ggc_pch_alloc_object): Remove last argument. Update all users.
34946 (struct alloc_zone): Remove.
34947 * ggc-zone.c: Remove.
34948 * ggc.h (gt_pch_note_object): Remove last argument. Update all users.
34949 (struct alloc_zone): Remove.
34950 (ggc_alloc_typed_stat): Remove.
34951 (ggc_alloc_typed): Remove.
34952 (ggc_splay_alloc): Remove first argument.
34953 (rtl_zone): Remove. Update all users.
34954 (tree_zone): Remove. Update all users.
34955 (tree_id_zone): Remove. Update all users.
34956 (ggc_internal_zone_alloc_stat): Remove. Update all users.
34957 (ggc_internal_zone_cleared_alloc_stat): Remove. Update all users.
34958 (ggc_internal_zone_vec_alloc_stat): Remove. Update all users.
34959 * tree-ssanames.c: Remove references to zone allocator in comments.
34961 2013-01-24 Georg-Johann Lay <avr@gjlay.de>
34963 * config/avr/avr.c (avr_out_fract): Make register numbers that
34964 might be outside of source operand signed.
34966 2013-01-24 Uros Bizjak <ubizjak@gmail.com>
34968 * config/i386/constraints.md (Yf): New constraint.
34969 * config/i386/i386.md (*movdf_internal_rex64): Use Yf*f instead
34970 of f constraint to conditionaly disable x87 register preferences.
34971 (*movdf_internal): Ditto.
34972 (*movsf_internal): Ditto.
34974 2013-01-24 Steven Bosscher <steven@gcc.gnu.org>
34976 PR inline-asm/55934
34977 * lra-assigns.c (assign_by_spills): Throw away the pattern of asms
34978 that have operands with impossible constraints.
34979 Add a FIXME for a speed-up opportunity.
34980 * lra-constraints.c (process_alt_operands): Verify that a class
34981 selected from constraints on asms is valid for the operand mode.
34982 (curr_insn_transform): Remove incorrect comment.
34984 2013-01-23 David Edelsohn <dje.gcc@gmail.com>
34986 * config/rs6000/rs6000.c (rs6000_delegitimize_address): Check that
34987 TOC operand is a valid symbol ref in the constant pool.
34989 2013-01-23 Edgar E. Iglesias <edgar.iglesias@gmail.com>
34991 * config/microblaze/linux.h: Add TARGET_OS_CPP_BUILTINS
34993 2013-01-23 Georg-Johann Lay <avr@gjlay.de>
34996 * config/avr/stdfix.h: New file.
34997 * t-avr (stdfix-gcc.h): New rule to build it.
34998 (EXTRA_HEADERS): Set it to install stdfix.h, stdfix-gcc.h.
35000 2013-01-23 Kostya Serebryany <kcc@google.com>
35002 * config/darwin.h: remove dependency on
35003 CoreFoundation (asan on Mac OS).
35005 2013-01-23 Jakub Jelinek <jakub@redhat.com>
35008 * config/arm/arm.md (cbranchdi4, cstoredi4): Use s_register_operand
35009 instead of cmpdi_operand for first comparison operand.
35010 Don't assert that comparison operands aren't both constants.
35012 2013-01-22 Jonathan Wakely <jwakely.gcc@gmail.com>
35014 * doc/install.texi (Downloading the Source): Update references to
35015 downloading separate components.
35017 2013-01-22 Jonathan Wakely <jwakely.gcc@gmail.com>
35019 * doc/extend.texi (__int128): Improve grammar.
35021 2013-01-22 Uros Bizjak <ubizjak@gmail.com>
35024 * config/i386/i386.md (*movti_internal_rex64): Change (o,riF)
35025 alternative to (o,r).
35026 (*movdi_internal_rex64): Remove (!o,n) alternative.
35027 (DImode immediate->memory splitter): Remove.
35028 (DImode immediate->memory peephole2): Remove.
35029 (movtf): Enable for TARGET_64BIT || TARGET_SSE.
35030 (*movtf_internal_rex64): Rename from *movtf_internal. Change (!o,F*r)
35031 alternative to (!o,*r).
35032 (*movtf_internal_sse): New pattern.
35033 (*movxf_internal_rex64): New pattern.
35034 (*movxf_internal): Disable for TARGET_64BIT.
35035 (*movdf_internal_rex64): Remove (!o,F) alternative.
35037 2013-01-22 Jakub Jelinek <jakub@redhat.com>
35039 PR middle-end/56074
35040 * dumpfile.c (dump_loc): Only print loc if LOCATION_LOCUS (loc)
35041 isn't UNKNOWN_LOCATION nor BUILTINS_LOCATION.
35042 * tree-vect-loop-manip.c (find_loop_location): Also ignore
35043 stmt locations where LOCATION_LOCUS of the stmt location is
35044 UNKNOWN_LOCATION or BUILTINS_LOCATION.
35047 * config/i386/i386.md (UNSPEC_STOS): New.
35048 (strset_singleop, *strsetdi_rex_1, *strsetsi_1, *strsethi_1,
35049 *strsetqi_1): Add UNSPEC_STOS.
35051 2013-01-22 Paolo Carlini <paolo.carlini@oracle.com>
35054 * doc/invoke.texi: Remove left over -Wsynth example.
35056 2013-01-21 Jakub Jelinek <jakub@redhat.com>
35058 PR tree-optimization/56051
35059 * fold-const.c (fold_binary_loc): Don't fold
35060 X < (cast) (1 << Y) into (X >> Y) != 0 if cast is either
35061 a narrowing conversion, or widening conversion from signed
35064 2013-01-21 Uros Bizjak <ubizjak@gmail.com>
35066 PR rtl-optimization/56023
35067 * haifa-sched.c (fix_inter_tick): Do not update ticks of instructions,
35068 dependent on debug instruction.
35070 2013-01-21 Martin Jambor <mjambor@suse.cz>
35072 PR middle-end/56022
35073 * function.c (allocate_struct_function): Call
35074 invoke_set_current_function_hook earlier.
35076 2013-01-21 Jakub Jelinek <jakub@redhat.com>
35078 * reload1.c (init_reload): Only initialize reload_obstack
35079 during the first call.
35081 2013-01-21 Marek Polacek <polacek@redhat.com>
35083 * cfgloop.c (verify_loop_structure): Fix up grammar.
35085 2013-01-21 Yi-Hsiu Hsu <ahsu@marvell.com>
35087 * config/arm/marvell-pj4.md (pj4_shift_conds, pj4_alu_shift,
35088 pj4_alu_shift_conds, pj4_shift): Handle simple_alu_shift.
35090 2013-01-21 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
35093 * config/arm/marvell-pj4.md: Update copyright year.
35094 Fix up use of alu to alu_reg and simple_alu_imm.
35096 2013-01-21 Uros Bizjak <ubizjak@gmail.com>
35098 * config/i386/i386.md (enabled): Do not disable fma4 for TARGET_FMA.
35100 2013-01-20 Vladimir Makarov <vmakarov@redhat.com>
35103 * lra-constraints.c (curr_insn_transform): Don't reuse original
35104 insn for secondary memory move when memory mode should be different.
35106 2013-01-20 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
35108 * config/pa/pa.md (atomic_loaddi, atomic_loaddi_1, atomic_storedi,
35109 atomic_storedi_1): New patterns.
35111 2013-01-20 Venkataramanan Kumar <venkataramanan.kumar@amd.com>
35113 btver2 pipeline descriptions.
35114 * config/i386/i386.c: Enable CPU_BTVER2 to use btver2 pipeline
35116 * config/i386/i386.md (btver2_decode): New type attributes.
35117 * config/i386/sse.md (btver2_decode, btver2_sse_attr): New
35119 * config/i386/btver2.md: New file describing btver2 pipelines.
35121 2013-01-19 Andrew Pinski <apinski@cavium.com>
35123 PR tree-optimization/52631
35124 * tree-ssa-sccvn (visit_use): Before looking up the original
35125 statement, try looking up the simplified expression.
35127 2013-01-19 Anthony Green <green@moxielogic.com>
35129 * config/moxie/moxie.c (moxie_expand_prologue): Set
35130 current_function_static_stack_size.
35132 2013-01-18 Jakub Jelinek <jakub@redhat.com>
35134 PR tree-optimization/56029
35135 * tree-phinodes.c (reserve_phi_args_for_new_edge): Set
35136 gimple_phi_arg_location for the new arg to UNKNOWN_LOCATION.
35138 2013-01-18 Sharad Singhai <singhai@google.com>
35140 PR tree-optimization/55995
35141 * dumpfile.c (dump_loc): Print location only if available.
35142 * tree-vectorizer.c (increase_alignment): Intialize vect_location.
35144 2013-01-18 Vladimir Makarov <vmakarov@redhat.com>
35147 * lra-constraints.c (curr_insn_transform): Reuse original insn for
35148 secondary memory move.
35149 (inherit_reload_reg): Use rclass instead of cl for
35150 check_secondary_memory_needed_p.
35152 2013-01-18 Jakub Jelinek <jakub@redhat.com>
35154 PR middle-end/56015
35155 * expr.c (expand_expr_real_2) <case COMPLEX_EXPR>: Handle
35156 the case where writing real complex part of target modifies op1.
35158 2013-01-18 James Greenhalgh <james.greenhalgh@arm.com>
35160 * config/aarch64/aarch64-simd.md
35161 (aarch64_vcond_internal<mode>): Handle unordered cases.
35162 * config/aarch64/iterators.md (v_cmp_result): New.
35164 2013-01-18 Yi-Hsiu Hsu <ahsu@marvell.com>
35165 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
35167 * config/arm/marvell-pj4.md: New file.
35168 * config/arm/arm.c (arm_issue_rate): Add marvell_pj4.
35169 * config/arm/arm.md (generic_sched): Add marvell_pj4.
35170 (generic_vfp): Likewise.
35171 * config/arm/arm-cores.def: Add marvell-pj4.
35172 * config/arm/arm-tune.md: Regenerate.
35173 * config/arm/arm-tables.opt: Regenerate.
35174 * config/arm/bpabi.h (BE8_LINK_SPEC): Add marvell_pj4.
35175 * doc/invoke.texi: Document marvell-pj4.
35177 2013-01-18 Tejas Belagod <tejas.belagod@arm.com>
35179 * config/aarch64/arm_neon.h: Map scalar types to standard types.
35181 2013-01-18 Alexandre Oliva <aoliva@redhat.com>
35186 * var-tracking.c (negative_power_of_two_p): New.
35187 (global_get_addr_cache, local_get_addr_cache): New.
35188 (get_addr_from_global_cache, get_addr_from_local_cache): New.
35189 (vt_canonicalize_addr): Rewrite using the above. Adjust the
35191 (vt_stack_offset_p): Remove.
35192 (vt_canon_true_dep): Always canonicalize loc's address.
35193 (clobber_overlapping_mems): Make sure we have a MEM.
35194 (local_get_addr_clear_given_value): New.
35195 (val_reset): Clear local cached entries.
35196 (compute_bb_dataflow): Create and release the local cache.
35197 Disable duplicate MEMs clobbering.
35198 (emit_notes_in_bb): Clobber MEMs likewise.
35199 (vt_emit_notes): Create and release the local cache.
35200 (vt_initialize, vt_finalize): Create and release the global
35201 cache, respectively.
35202 * alias.c (rtx_equal_for_memref_p): Compare operands of ENTRY_VALUEs.
35204 2013-01-18 Alexandre Oliva <aoliva@redhat.com>
35206 PR libmudflap/53359
35207 * tree-mudflap.c (mudflap_finish_file): Skip deferred decls
35208 not found in the symtab.
35210 2013-01-18 Alexandre Oliva <aoliva@redhat.com>
35213 PR rtl-optimization/55547
35214 PR rtl-optimization/53827
35217 * alias.c (offset_overlap_p): New, factored out of...
35218 (memrefs_conflict_p): ... this. Use absolute sizes. Retain
35219 the conservative special case for symbolic constants. Don't
35220 adjust zero sizes on alignment.
35222 2013-01-18 Bernd Schmidt <bernds@codesourcery.com>
35224 PR rtl-optimization/52573
35225 * regrename.c (build_def_use): Ignore REG_DEAD notes if there is a
35226 REG_UNUSED for the same register.
35228 2013-01-17 Richard Biener <rguenther@suse.de>
35229 Marek Polacek <polacek@redhat.com>
35231 PR rtl-optimization/55833
35232 * loop-unswitch.c (unswitch_loops): Move loop verification...
35233 (unswitch_single_loop): ...here. Call mark_irreducible_loops.
35234 * cfgloopmanip.c (fix_loop_placement): Add IRRED_INVALIDATED parameter.
35235 Set it to true when we're removing a loop from hierarchy tree in
35236 an irreducible region.
35237 (fix_bb_placements): Adjust caller.
35238 (fix_loop_placements): Likewise.
35240 2013-01-17 Georg-Johann Lay <avr@gjlay.de>
35242 * config/avr/builtins.def (DEF_BUILTIN): Factor out
35243 "__builtin_avr_" from NAME, turn NAME to an uppercase identifier.
35244 Factor out 'CODE_FOR_' from ICODE, use 'nothing' instead of '-1'.
35245 Remove ID. Adjust comments.
35246 * config/avr/avr-c.c (avr_builtin_name): Remove.
35247 (avr_cpu_cpp_builtins): Use DEF_BUILTIN instead of for-loop.
35248 * config/avr/avr.c (avr_tolower): New static function.
35249 (DEF_BUILTIN): Remove parameter ID. Prefix ICODE by 'CODE_FOR_'.
35250 Stringify NAME, prefix it with "__builtin_avr_" and lowercase it.
35251 (avr_expand_builtin): Assert insn_code != CODE_FOR_nothing for
35254 2013-01-17 Jan Hubicka <jh@suse.cz>
35256 PR tree-optimization/55273
35257 * loop-iv.c (iv_number_of_iterations): Consider zero iteration case.
35259 2013-01-17 Uros Bizjak <ubizjak@gmail.com>
35262 * config/i386/sync.md (atomic_store<mode>): Always generate SWImode
35263 store through atomic_store<mode>_1.
35264 (atomic_store<mode>_1): Macroize insn using SWI mode iterator.
35266 2013-01-17 Martin Jambor <mjambor@suse.cz>
35268 PR tree-optimizations/55264
35269 * ipa-inline-transform.c (can_remove_node_now_p_1): Never return true
35270 for virtual methods.
35271 * ipa.c (symtab_remove_unreachable_nodes): Never return true for
35272 virtual methods before inlining is over.
35273 * cgraph.h (cgraph_only_called_directly_or_aliased_p): Return false for
35275 * cgraphclones.c (cgraph_create_virtual_clone): Mark clones as
35278 2013-01-16 Vladimir Makarov <vmakarov@redhat.com>
35280 PR rtl-optimization/56005
35281 * sched-deps.c (sched_analyze_2): Check deps->readonly for adding
35282 pending reads for prefetch.
35284 2013-01-16 Ian Bolton <ian.bolton@arm.com>
35286 * config/aarch64/aarch64.md
35287 (*cstoresi_neg_uxtw): New pattern.
35288 (*cmovsi_insn_uxtw): New pattern.
35289 (*<optab>si3_uxtw): New pattern.
35290 (*<LOGICAL:optab>_<SHIFT:optab>si3_uxtw): New pattern.
35291 (*<optab>si3_insn_uxtw): New pattern.
35292 (*bswapsi2_uxtw): New pattern.
35294 2013-01-16 Richard Biener <rguenther@suse.de>
35296 * tree-inline.c (tree_function_versioning): Remove set but
35297 never used variable.
35299 2013-01-16 Richard Biener <rguenther@suse.de>
35301 PR tree-optimization/55964
35302 * tree-flow.h (rename_variables_in_loop): Remove.
35303 (rename_variables_in_bb): Likewise.
35304 * tree-loop-distribution.c (update_phis_for_loop_copy): Remove.
35305 (copy_loop_before): Adjust and delete update-ssa status.
35306 * tree-vect-loop-manip.c (rename_variables_in_bb): Make static.
35307 (rename_variables_in_bb): Likewise. Properly walk over predecessors.
35308 (rename_variables_in_loop): Remove.
35309 (slpeel_update_phis_for_duplicate_loop): Likewise.
35310 (slpeel_tree_duplicate_loop_to_edge_cfg): Handle nested loops,
35311 use available cfg machinery instead of duplicating it.
35312 Update PHI nodes and perform poor-mans SSA update here.
35313 (slpeel_tree_peel_loop_to_edge): Adjust.
35315 2013-01-16 Richard Biener <rguenther@suse.de>
35317 PR tree-optimization/54767
35318 PR tree-optimization/53465
35319 * tree-vrp.c (vrp_meet_1): Revert original fix for PR53465.
35320 (vrp_visit_phi_node): For PHI arguments coming via backedges
35321 drop all symbolical range information.
35322 (execute_vrp): Compute backedges.
35324 2013-01-16 Richard Biener <rguenther@suse.de>
35326 * doc/install.texi: Update CLooG and ISL requirements to
35329 2013-01-16 Christian Bruel <christian.bruel@st.com>
35332 * config/sh/sh.c (sh_expand_prologue): Postpone new_stack mem symbol.
35333 (broken_move): Handle UNSPECV_SP_SWITCH_B.
35334 * config/sh/sh.md (sp_switch_1): Use set (reg:SI SP_REG).
35336 2013-01-16 DJ Delorie <dj@redhat.com>
35338 * config/sh/sh.md (UNSPECV_SP_SWITCH_B): New.
35339 (UNSPECV_SP_SWITCH_E): New.
35340 (sp_switch_1): Change to an unspec.
35341 (sp_switch_2): Change to an unspec. Don't use post-inc when we
35344 2013-01-16 Uros Bizjak <ubizjak@gmail.com>
35346 * emit-rtl.c (need_atomic_barrier_p): Mask memory model argument
35347 with MEMMODEL_MASK before comparing with MEMMODEL_* memory types.
35348 * optabs.c (maybe_emit_sync_lock_test_and_set): Ditto.
35349 (expand_mem_thread_fence): Ditto.
35350 (expand_mem_signal_fence): Ditto.
35351 (expand_atomic_load): Ditto.
35352 (expand_atomic_store): Ditto.
35354 2013-01-16 Alexandre Oliva <aoliva@redhat.com>
35356 PR rtl-optimization/55547
35357 PR rtl-optimization/53827
35360 * alias.c (memrefs_conflict_p): Set sizes to negative after
35363 2013-01-15 Jakub Jelinek <jakub@redhat.com>
35366 * function.c (thread_prologue_and_epilogue_insns): Always
35367 add crtl->drap_reg to set_up_by_prologue.set, even if
35368 stack_realign_drap is false.
35370 2013-01-15 Jan-Benedict Glaw <jbglaw@lug-owl.de>
35372 * config/vax/vax.md (add<mode>3, sub<mode>3, mul<mode>3, div<mode>3,
35373 and<mode>3, *and<mode>_const_int, ior<mode>3, xor<mode>3, ashrsi3,
35374 *call): Fix indention.
35376 2013-01-15 Tom de Vries <tom@codesourcery.com>
35379 * optabs.c (widen_operand): Use gen_lowpart instead of gen_rtx_SUBREG.
35382 2013-01-15 Vladimir Makarov <vmakarov@redhat.com>
35384 PR rtl-optimization/55153
35385 * sched-deps.c (sched_analyze_2): Add pending reads for prefetch.
35387 2013-01-15 Martin Jambor <mjambor@suse.cz>
35389 PR tree-optimization/55920
35390 * tree-sra.c (analyze_access_subtree): Do not mark non-removable
35391 accesses as grp_to_be_debug_replaced.
35393 2013-01-15 Jakub Jelinek <jakub@redhat.com>
35395 PR tree-optimization/55920
35396 * tree-sra.c (sra_modify_assign): If for lacc->grp_to_be_debug_replaced
35397 there is non-useless type conversion needed from debug rhs to lhs,
35398 use build_debug_ref_for_model and/or VIEW_CONVERT_EXPR.
35400 2013-01-15 Joseph Myers <joseph@codesourcery.com>
35401 Mikael Pettersson <mikpe@it.uu.se>
35404 * config/arm/arm.h (ADDR_VEC_ALIGN): Align SImode jump tables for
35406 (ASM_OUTPUT_CASE_LABEL): Remove.
35407 (ASM_OUTPUT_BEFORE_CASE_LABEL): Define to empty.
35408 * final.c (shorten_branches): Update alignment of labels before
35409 jump tables if CASE_VECTOR_SHORTEN_MODE.
35411 2013-01-15 Richard Biener <rguenther@suse.de>
35414 * system.h: Do not include gmp.h for building host tools.
35416 2013-01-15 Richard Biener <rguenther@suse.de>
35418 PR middle-end/55882
35419 * emit-rtl.c (set_mem_attributes_minus_bitpos): Correctly
35420 account for bitpos when computing alignment.
35422 2013-01-15 Vladimir Yakovlev <vladimir.b.yakovlev@intel.com>
35424 * config/i386/i386-c.c (ix86_target_macros_internal): New case.
35425 (ix86_target_macros_internal): Likewise.
35427 * config/i386/i386.c (m_CORE2I7): Removed.
35428 (m_CORE_HASWELL): New macro.
35429 (m_CORE_ALL): Likewise.
35430 (initial_ix86_tune_features): m_CORE2I7 is replaced by m_CORE_ALL.
35431 (initial_ix86_arch_features): Likewise.
35432 (processor_target_table): Initializations for Core avx2.
35433 (cpu_names): New names "core-avx2".
35434 (ix86_option_override_internal): Changed PROCESSOR_COREI7 by
35435 PROCESSOR_CORE_HASWELL.
35436 (ix86_issue_rate): New case.
35437 (ia32_multipass_dfa_lookahead): Likewise.
35438 (ix86_sched_init_global): Likewise.
35440 * config/i386/i386.h (TARGET_HASWELL): New macro.
35441 (target_cpu_default): New TARGET_CPU_DEFAULT_haswell.
35442 (processor_type): New PROCESSOR_HASWELL.
35444 2013-01-15 Jakub Jelinek <jakub@redhat.com>
35446 PR tree-optimization/55955
35447 * tree-vect-loop.c (vectorizable_reduction): Give up early on
35448 *SHIFT_EXPR and *ROTATE_EXPR codes.
35450 PR tree-optimization/48766
35451 * opts.c (common_handle_option): For -fwrapv disable -ftrapv, for
35452 -ftrapv disable -fwrapv.
35454 2013-01-14 Georg-Johann Lay <avr@gjlay.de>
35457 * config/avr/avr-c.c (avr_cpu_cpp_builtins): Define __FLASH
35458 etc. to 1 and not to __flash.
35459 Use LL suffix for __INT24_MAX__ with -mint8.
35460 Use ULL suffix for __UINT24_MAX__ with -mint8.
35462 2013-01-14 Georg-Johann Lay <avr@gjlay.de>
35464 * config/avr/avr-arch.h
35465 (struct base_arch_s): Use typedef avr_arch_t instead.
35466 (struct arch_info_s): Use typedef avr_arch_info_t instead.
35467 (struct mcu_type_s): Use typedef avr_mcu_t instead.
35468 * config/avr/avr.c: Same.
35469 * config/avr/avr-devices.c: Same.
35470 * config/avr/driver-avr.c: Same.
35471 * config/avr/gen-avr-mmcu-texi.c: Same.
35472 * config/avr/avr-mcus.def: Adjust comment.
35474 2013-01-14 Tejas Belagod <tejas.belagod@arm.com>
35476 * config/aarch64/aarch64-simd.md (*aarch64_simd_ld1r<mode>): New.
35477 * config/aarch64/iterators.md (VALLDI): New.
35479 2013-01-14 Uros Bizjak <ubizjak@gmail.com>
35480 Andi Kleen <ak@linux.intel.com>
35483 * config/i386/sync.md (atomic_store<mode>_1): New pattern.
35484 (atomic_store<mode>): Call atomic_store<mode>_1 for IX86_HLE_RELEASE
35487 2013-01-14 Georg-Johann Lay <avr@gjlay.de>
35489 * config/avr/avr-stdint.h: Remove trailing blanks.
35490 * config/avr/avr-log.h: Same.
35491 * config/avr/avr-arch.h: Same.
35492 * config/avr/avr-devices.c: Same.
35493 * config/avr/avr-dimode.md: Same.
35494 * config/avr/predicates.md: Same.
35495 * config/avr/avr-c.c: Same. And fix typo.
35497 * config/avr/avr-protos.h: Same. And:
35498 (function_arg_regno_p): Rename to avr_function_arg_regno_p.
35499 (init_cumulative_args): Rename to avr_init_cumulative_args.
35500 (expand_prologue): Rename to avr_expand_prologue.
35501 (expand_epilogue): Rename to avr_expand_epilogue.
35502 (adjust_insn_length): Rename to avr_adjust_insn_length.
35503 (notice_update_cc): Rename to avr_notice_update_cc.
35504 (final_prescan_insn): Rename to avr_final_prescan_insn.
35505 * config/avr/avr.c: Same.
35506 * config/avr/avr.h: Same.
35507 * config/avr/avr.md: Remove trailing blanks.
35508 (prologue): Use avr_expand_prologue.
35509 (epilogue, sibcall_epilogue): Use avr_expand_epilogue.
35511 2013-01-14 Richard Biener <rguenther@suse.de>
35513 * tree-cfg.c (verify_expr_location, verify_expr_location_1,
35514 verify_location, collect_subblocks): New functions.
35515 (verify_gimple_in_cfg): Verify that locations only reference
35516 BLOCKs in the functions BLOCK tree.
35518 2013-01-14 Richard Biener <rguenther@suse.de>
35520 * tree-cfgcleanup.c (remove_forwarder_block): Unshare propagated
35522 * graphite-sese-to-poly.c (insert_out_of_ssa_copy): Properly
35524 (insert_out_of_ssa_copy_on_edge): Likewise.
35525 (rewrite_close_phi_out_of_ssa): Likewise.
35526 * tree-ssa.c (insert_debug_temp_for_var_def): Properly unshare
35528 * tree-ssa-pre.c (insert_into_preds_of_block): Properly unshare
35529 propagated constants.
35530 * tree-cfg.c (tree_node_can_be_shared): Handled component-refs
35533 2013-01-14 Georg-Johann Lay <avr@gjlay.de>
35535 * config/avr/avr-modes.def: Add GPL copyright notice.
35537 2013-01-13 Uros Bizjak <ubizjak@gmail.com>
35539 * config/i386/sync.md (mem_thread_fence): Mask operands[0] with
35540 MEMMODEL_MASK to determine memory model.
35541 (atomic_store<mode>): Ditto from operands[2].
35542 * config/i386/i386.c (ix86_memmodel_check): Declare "strong" as bool.
35544 2013-01-13 Jakub Jelinek <jakub@redhat.com>
35547 * gimple-fold.c (get_symbol_constant_value): Call unshare_expr.
35548 (fold_gimple_assign): Don't call unshare_expr here.
35549 (fold_ctor_reference): Call unshare_expr.
35551 2013-01-13 Terry Guo <terry.guo@arm.com>
35553 * Makefile.in (s-mlib): New argument MULTILIB_REUSE.
35554 * doc/fragments.texi: Document MULTILIB_REUSE.
35555 * gcc.c (multilib_reuse): New internal spec.
35556 (set_multilib_dir): Also search multilib from multilib_reuse.
35557 * genmultilib (tmpmultilib3): Refactor code.
35558 (tmpmultilib4): Ditto.
35559 (multilib_reuse): New multilib argument.
35561 2013-01-13 Richard Sandiford <rdsandiford@googlemail.com>
35563 * Makefile.in: Update copyright.
35565 2013-01-12 Tom de Vries <tom@codesourcery.com>
35567 PR middle-end/55890
35568 * calls.c (expand_call): Check if arg_nr is valid.
35570 2013-01-11 Michael Meissner <meissner@linux.vnet.ibm.com>
35572 * doc/extend.texi (X86 Built-in Functions): Add whitespace in
35573 __builtin_ia32_paddb256 and __builtin_ia32_pavgb256
35574 documentation. Add missing '__' in front of
35575 __builtin_ia32_packssdw256.
35577 2013-01-11 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
35580 * config/s390/s390.c (s390_preferred_reload_class): Do not return
35581 NO_REGS for larl operands.
35582 (s390_reload_larl_operand): Use s390_load_address instead of
35585 2013-01-11 Richard Biener <rguenther@suse.de>
35587 * tree-cfg.c (verify_node_sharing_1): Split out from ...
35588 (verify_node_sharing): ... here.
35589 (verify_gimple_in_cfg): Use verify_node_sharing_1 for walk_tree.
35591 2013-01-11 Eric Botcazou <ebotcazou@adacore.com>
35593 * configure.ac (Tree checking): Set TREECHECKING to yes if enabled.
35594 Substitute TREECHECKING.
35595 * configure: Regenerate.
35596 * Makefile.in (TREECHECKING): New.
35598 2013-01-11 Richard Guenther <rguenther@suse.de>
35600 PR tree-optimization/44061
35601 * tree-vrp.c (extract_range_basic): Compute zero as
35602 value-range for __builtin_constant_p of function parameters.
35604 2013-01-10 Richard Sandiford <rdsandiford@googlemail.com>
35606 Update copyright years.
35608 2013-01-10 Vladimir Makarov <vmakarov@redhat.com>
35610 PR rtl-optimization/55672
35611 * lra-eliminations.c (mark_not_eliminable): Permit addition with
35612 const to be eliminable.
35614 2013-01-10 David Edelsohn <dje.gcc@gmail.com>
35616 * configure.ac (HAVE_AS_TLS): Add check for powerpc-ibm-aix.
35617 * configure: Regenerate.
35619 2013-01-10 Richard Biener <rguenther@suse.de>
35621 * builtins.c (expand_builtin_init_trampoline): Use set_mem_attributes.
35623 2013-01-10 Richard Biener <rguenther@suse.de>
35626 * tree-into-ssa.c (rewrite_add_phi_arguments): Do not set
35627 locations for virtual PHI arguments.
35628 (rewrite_update_phi_arguments): Likewise.
35630 2013-01-10 Joel Sherrill <joel.sherrill@OARcorp.com>
35632 * config/v850/rtems.h (ASM_SPEC): Pass -m8byte-align and -mgcc-abi
35635 2013-01-10 Jakub Jelinek <jakub@redhat.com>
35637 PR tree-optimization/55921
35638 * tree-complex.c (expand_complex_asm): New function.
35639 (expand_complex_operations_1): Call it for GIMPLE_ASM.
35641 2013-01-10 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
35644 * config/s390/s390.c (s390_symref_operand_p)
35645 (s390_loadrelative_operand_p): Merge the two functions.
35646 (s390_check_qrst_address, print_operand_address): Add parameters
35647 to s390_loadrelative_operand_p invokation.
35648 (s390_check_symref_alignment): Use s390_loadrelative_operand_p.
35649 (s390_reload_larl_operand, s390_secondary_reload): Use
35650 s390_loadrelative_operand_p instead of s390_symref_operand_p.
35651 (legitimize_pic_address): Handle @GOTENT and @PLT + addend.
35653 2013-01-09 Mike Stump <mikestump@comcast.net>
35655 * dse.c (record_store): Remove unnecessary assert.
35657 2013-01-09 Jan Hubicka <jh@suse.cz>
35659 PR tree-optimization/55569
35660 * cfgloopmanip.c (scale_loop_profile): Make ITERATION_BOUND gcov_type.
35661 * cfgloop.h (scale_loop_profile): Likewise.
35663 2013-01-09 Jan Hubicka <jh@suse.cz>
35666 * ipa-inline.c (ipa_inline): Remove extern inlines and virtual
35668 * cgraphclones.c (cgraph_clone_node): Cpoy also LTO file data.
35670 2013-01-09 Richard Sandiford <rdsandiford@googlemail.com>
35672 PR middle-end/55114
35673 * expr.h (maybe_emit_group_store): Declare.
35674 * expr.c (maybe_emit_group_store): New function.
35675 * builtins.c (expand_builtin_int_roundingfn): Call it.
35676 (expand_builtin_int_roundingfn_2): Likewise.
35678 2013-01-09 Vladimir Makarov <vmakarov@redhat.com>
35680 PR rtl-optimization/55829
35681 * lra-constraints.c (match_reload): Add code for absent output.
35682 (curr_insn_transform): Add code for reloads of matched inputs
35685 2013-01-09 Uros Bizjak <ubizjak@gmail.com>
35687 * config/i386/sse.md (*vec_interleave_highv2df): Change mode
35688 attribute of movddup insn to DF.
35689 (*vec_interleave_lowv2df): Ditto.
35690 (vec_dupv2df): Ditto.
35692 2013-01-09 Jan Hubicka <jh@suse.cz>
35694 PR tree-optimiation/55875
35695 * tree-ssa-loop-niter.c (number_of_iterations_cond): Add
35696 EVERY_ITERATION parameter.
35697 (number_of_iterations_exit): Check if exit is executed every iteration.
35698 (idx_infer_loop_bounds): Similarly here.
35699 (n_of_executions_at_most): Simplify
35700 to only test for cases where statement is dominated by the
35701 particular bound; handle correctly the "postdominance" test.
35702 (scev_probably_wraps_p): Use max loop iterations info
35703 as a global bound first.
35705 2013-01-09 Nguyen Duy Dat <dat.nguyen.yn@rvc.renesas.com>
35706 Nick Clifton <nickc@redhat.com>
35708 * config/v850/v850.md (cbranchsf4): New pattern.
35709 (cstoresf4): New pattern.
35710 (cbranchdf4): New pattern.
35711 (cstoredf4): New pattern.
35712 (movsicc): Disallow floating point comparisons.
35713 (cmpsf_le_insn): Fix order of operators.
35714 (cmpsf_lt_insn): Likewise.
35715 (cmpsf_eq_insn): Likewise.
35716 (cmpdf_le_insn): Likewise.
35717 (cmpdf_lt_insn): Likewise.
35718 (cmpdf_eq_insn): Likewise.
35719 (cmpsf_ge_insn): Use LE comparison.
35720 (cmpdf_ge_insn): Likewise.
35721 (cmpsf_gt_insn): Use LT comparison.
35722 (cmpdf_gt_insn): Likewise.
35723 (cmpsf_ne_insn): Delete pattern.
35724 (cmpdf_ne_insn): Delete pattern.
35725 * config/v850/v850.c (v850_gen_float_compare): Use
35726 gen_cmpdf_eq_insn for NE comparison.
35727 (v850_float_z_comparison_operator)
35728 (v850_float_nz_comparison_operator): Move from here ...
35729 * config/v850/predicates.md: ... to here. Move GT and GE
35730 comparisons into v850_float_z_comparison_operator.
35731 * config/v850/v850-protos.h (v850_float_z_comparison_operator):
35733 (v850_float_nz_comparison_operator): Likewise.
35735 2013-01-09 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
35737 * config/pa/pa.c (pa_emit_move_sequence): Replace calls to gen_insv
35738 with calls to gen_insvsi/gen_insvdi.
35740 2013-01-09 Venkataramanan Kumar <venkataramanan.kumar@amd.com>
35742 * config/i386/i386.c (initial_ix86_tune_features): Set up
35743 X86_TUNE_AVX128_OPTIMAL for m_BTVER2.
35745 2013-01-09 Steven Bosscher <steven@gcc.gnu.org>
35746 Jakub Jelinek <jakub@redhat.com>
35748 PR tree-optimization/48189
35749 * predict.c (predict_loops): If max is 0, don't call compare_tree_int.
35750 If nitercst is 0, don't predict the exit edge.
35752 2013-01-08 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
35754 * config/aarch64/aarch64.c (aarch64_print_operand): Replace %r
35755 in asm_fprintf with reg_names.
35756 (aarch64_print_operand_address): Likewise.
35757 (aarch64_return_addr): Likewise.
35758 * config/aarch64/aarch64.h (ASM_FPRINTF_EXTENSIONS): Remove.
35760 2013-01-08 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
35762 * config/pa/pa.h (VAL_U6_BITS_P): Define.
35763 (INT_U6_BITS): Likewise.
35764 * config/pa/predicates.md (uint6_operand): New predicate.
35765 (shift5_operand, shift6_operand): Likewise.
35766 * config/pa/pa.md (lshrsi3, rotrsi3): Use shift5_operand instead of
35768 (lshrdi3): Use shift6_operand.
35769 (shrpsi4, shrpdi4): New insn patterns.
35770 (extzv): Delete expander.
35771 (extzvsi, extzvdi): New expanders. Use uint5_operand and uint6_operand
35772 predicates in unamed zero extract patterns. Tighten common constraint.
35773 (extv): Delete expander.
35774 (extvsi, extvdi): New expanders. Use uint5_operand and uint6_operand
35775 predicates in unamed sign extract patterns. Tighten common constraint.
35776 (insv): Delete expander.
35777 (insvsi, insvdi): New expanders. Use uint5_operand and uint6_operand
35778 predicates in unamed insert patterns. Tighten common constraint.
35779 Change uint32_operand predicate to uint6_operand predicate in unamed
35780 DImode pattern to insert constant values of type 1...1xxxx.
35782 2013-01-04 Jan Hubicka <jh@suse.cz>
35784 PR tree-optimization/55823
35785 * ipa-prop.c (update_indirect_edges_after_inlining): Fix ordering
35788 2013-01-08 Jakub Jelinek <jakub@redhat.com>
35789 Uros Bizjak <ubizjak@gmail.com>
35791 PR rtl-optimization/55845
35792 * df-problems.c (can_move_insns_across): Stop scanning at
35793 volatile_insn_p source instruction or give up if
35794 across_from .. across_to range contains any volatile_insn_p
35797 2013-01-08 Tejas Belagod <tejas.belagod@arm.com>
35799 * config/aarch64/aarch64-simd.md (vec_init<mode>): New.
35800 * config/aarch64/aarch64-protos.h (aarch64_expand_vector_init):
35802 * config/aarch64/aarch64.c (aarch64_simd_dup_constant,
35803 aarch64_simd_make_constant, aarch64_expand_vector_init): New.
35805 2013-01-08 Jakub Jelinek <jakub@redhat.com>
35808 * asan.c (asan_clear_shadow): New function.
35809 (asan_emit_stack_protection): Use it.
35811 2013-01-08 Tejas Belagod <tejas.belagod@arm.com>
35813 * config/aarch64/aarch64-simd.md (aarch64_simd_vec_<su>mult_lo_<mode>,
35814 aarch64_simd_vec_<su>mult_hi_<mode>): Separate instruction and operand
35815 with tab instead of space.
35817 2013-01-08 Nick Clifton <nickc@redhat.com>
35819 * config/rl78/rl78.c (rl78_expand_prologue): Always select
35820 register bank 0 at the start of an interrupt handler.
35821 * config/rl78/rl78.md (mulsi3_g13): Correct values for MDBL and
35824 2013-01-08 James Greenhalgh <james.greenhalgh@arm.com>
35826 * config/aarch64/aarch64-simd.md
35827 (aarch64_simd_bsl<mode>_internal): Add floating-point modes.
35828 (aarch64_simd_bsl): Likewise.
35829 (aarch64_vcond_internal<mode>): Likewise.
35830 (vcond<mode><mode>): Likewise.
35831 (aarch64_cm<cmp><mode>): Fix constraints, add new modes.
35832 * config/aarch64/iterators.md (V_cmp_result): Add V2DF.
35834 2013-01-08 James Greenhalgh <james.greenhalgh@arm.com>
35836 * config/aarch64/aarch64-builtins.c
35837 (aarch64_builtin_vectorized_function): Handle sqrt, sqrtf.
35839 2013-01-08 Martin Jambor <mjambor@suse.cz>
35842 * tree-sra.c (analyze_access_subtree): Return true also after
35843 potentially creating a debug-only replacement.
35845 2013-01-08 Jakub Jelinek <jakub@redhat.com>
35847 PR middle-end/55890
35848 * tree-ssa-ccp.c (evaluate_stmt): Use gimple_call_builtin_p.
35850 PR tree-optimization/54120
35851 * tree-vrp.c (range_fits_type_p): Don't allow
35852 src_precision < precision from signed vr to unsigned_p
35853 if vr->min or vr->max is negative.
35854 (simplify_float_conversion_using_ranges): Test can_float_p
35855 against CODE_FOR_nothing.
35857 2013-01-08 Jakub Jelinek <jakub@redhat.com>
35858 Richard Biener <rguenther@suse.de>
35860 PR middle-end/55851
35861 * fold-const.c (int_binop_types_match_p): Allow all INTEGRAL_TYPE_P
35862 types instead of just INTEGER_TYPE types.
35864 2013-01-07 Mark Kettenis <kettenis@openbsd.org>
35866 * config/i386/openbsdelf.h (LIBGCC2_HAS_TF_MODE, LIBGCC2_TF_CEXT,
35869 2013-01-07 Steve Ellcey <sellcey@mips.com>
35872 * config/mips/mips.opt: Change mad to mmad to match documentation.
35874 2013-01-07 Georg-Johann Lay <avr@gjlay.de>
35877 * doc/extend.texi (AVR Named Address Spaces): __memx goes into
35878 .progmemx.data now.
35880 2013-01-07 Georg-Johann Lay <avr@gjlay.de>
35883 * config/avr/avr.h (ADDR_SPACE_COUNT): New enum.
35884 (avr_addrspace_t): Add .section_name field.
35885 * config/avr/avr.c (progmem_section): Use ADDR_SPACE_COUNT as
35887 (avr_addrspace): Same. Initialize .section_name. Remove last
35888 NULL entry. Put __memx into .progmemx.data.
35889 (progmem_section_prefix): Remove.
35890 (avr_asm_init_sections): No need to initialize progmem_section.
35891 (avr_asm_named_section): Use avr_addrspace[].section_name to get
35892 section name prefix.
35893 (avr_asm_select_section): Ditto. And use get_unnamed_section to
35894 retrieve the progmem section.
35895 * avr-c.c (avr_cpu_cpp_builtins): Use ADDR_SPACE_COUNT as loop
35896 boundary to run over avr_addrspace[].
35897 (avr_register_target_pragmas): Ditto.
35899 2013-01-06 Jakub Jelinek <jakub@redhat.com>
35901 * varasm.c (output_constant_def_contents): For asan_protect_global
35902 protected strings, adjust DECL_ALIGN if needed, before testing for
35904 (place_block_symbol): Adjust size for asan protected STRING_CSTs if
35905 TREE_CONSTANT_POOL_ADDRESS_P. Increase alignment for asan protected
35907 (output_object_block): For asan protected decls, emit asan padding
35908 after their contents.
35909 * asan.c (asan_protect_global): Don't check TREE_ASM_WRITTEN here.
35910 (asan_finish_file): Test it here instead.
35912 2013-01-07 Nick Clifton <nickc@redhat.com>
35913 Matthias Klose <doko@debian.org>
35914 Doug Kwan <dougkwan@google.com>
35915 H.J. Lu <hongjiu.lu@intel.com>
35918 * collect2.c (main): Support -fuse-ld=bfd and -fuse-ld=gold.
35920 * common.opt: Add fuse-ld=bfd and fuse-ld=gold.
35922 * gcc.c (LINK_COMMAND_SPEC): Pass -fuse-ld=* to collect2.
35924 * opts.c (comman_handle_option): Ignore -fuse-ld=bfd and -fuse-ld=gold.
35926 * doc/invoke.texi: Document -fuse-ld=bfd and -fuse-ld=gold.
35928 2013-01-07 Georg-Johann Lay <avr@gjlay.de>
35931 * doc/install.texi (Cross-Compiler-Specific Options): Document
35934 2013-01-07 Tejas Belagod <tejas.belagod@arm.com>
35936 * config/aarch64/arm_neon.h (vmovn_high_is16, vmovn_high_s32,
35937 vmovn_high_s64, vmovn_high_u16, vmovn_high_u32, vmovn_high_u64,
35938 vqmovn_high_s16, vqmovn_high_s32, vqmovn_high_s64, vqmovn_high_u16,
35939 vqmovn_high_u32, vqmovn_high_u64, vqmovun_high_s16, vqmovun_high_s32,
35940 vqmovun_high_s64): Fix source operand number and update copyright.
35942 2013-01-07 Richard Biener <rguenther@suse.de>
35944 PR middle-end/55890
35945 * gimple.h (gimple_call_builtin_p): New overload.
35946 * gimple.c (validate_call): New function.
35947 (gimple_call_builtin_p): Likewise.
35948 * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
35949 Use gimple_call_builtin_p.
35950 (find_func_clobbers): Likewise.
35951 * tree-ssa-strlen.c (adjust_last_stmt): Likewise.
35952 (strlen_optimize_stmt): Likewise.
35954 2013-01-07 James Greenhalgh <james.greenhalgh@arm.com>
35956 * config/aarch64/arm_neon.h (vld1_dup_*): Make argument const.
35957 (vld1q_dup_*): Likewise.
35958 (vld1_*): Likewise.
35959 (vld1q_*): Likewise.
35960 (vld1_lane_*): Likewise.
35961 (vld1q_lane_*): Likewise.
35963 2013-01-07 Richard Biener <rguenther@suse.de>
35965 * lto-streamer.h (LTO_minor_version): Bump to 2.
35967 2013-01-07 James Greenhalgh <james.greenhalgh@arm.com>
35969 * config/aarch64/aarch64-protos.h
35970 (aarch64_const_double_zero_rtx_p): Rename to...
35971 (aarch64_float_const_zero_rtx_p): ...this.
35972 (aarch64_float_const_representable_p): New.
35973 (aarch64_output_simd_mov_immediate): Likewise.
35974 * config/aarch64/aarch64-simd.md (*aarch64_simd_mov<mode>): Refactor
35975 move immediate case.
35976 * config/aarch64/aarch64.c
35977 (aarch64_const_double_zero_rtx_p): Rename to...
35978 (aarch64_float_const_zero_rtx_p): ...this.
35979 (aarch64_print_operand): Allow printing of new constants.
35980 (aarch64_valid_floating_const): New.
35981 (aarch64_legitimate_constant_p): Check for valid floating-point
35983 (aarch64_simd_valid_immediate): Likewise.
35984 (aarch64_vect_float_const_representable_p): New.
35985 (aarch64_float_const_representable_p): Likewise.
35986 (aarch64_simd_imm_zero_p): Also allow for floating-point 0.0.
35987 (aarch64_output_simd_mov_immediate): New.
35988 * config/aarch64/aarch64.md (*movsf_aarch64): Add new alternative.
35989 (*movdf_aarch64): Likewise.
35990 * config/aarch64/constraints.md (Ufc): New.
35991 (Y): call aarch64_float_const_zero_rtx.
35992 * config/aarch64/predicates.md (aarch64_fp_compare_operand): New.
35994 2013-01-07 Richard Biener <rguenther@suse.de>
35996 PR tree-optimization/55888
35997 PR tree-optimization/55862
35998 * tree-ssa-pre.c (phi_translate_1): Revert previous change.
35999 (valid_in_sets): Check if a NAME has a leader in AVAIL_OUT,
36000 not if it is contained therein.
36002 2013-01-07 Georg-Johann Lay <avr@gjlay.de>
36004 * config/avr/t-avr: Typo.
36006 2013-01-07 Georg-Johann Lay <avr@gjlay.de>
36009 * config/avr/t-avr: Don't automatically rebuild
36010 $(srcdir)/config/avr/t-multilib
36011 $(srcdir)/config/avr/avr-tables.opt
36012 $(srcdir)/doc/avr-mmcu.texi
36013 (avr-mcus): New phony target to build them on request.
36014 (s-avr-mlib, s-avr-mmcu-texi): Remove.
36015 * avr/avr-mcus.def: Adjust comments.
36017 2013-01-07 Uros Bizjak <ubizjak@gmail.com>
36019 * config/i386/i386.c (DEFAULT_PCC_STRUCT_RETURN): Remove.
36021 2013-01-06 Richard Sandiford <rdsandiford@googlemail.com>
36023 * file-find.c, file-find.h, realmpfr.c: Add FSF as copyright holder.
36025 2013-01-06 Richard Sandiford <rdsandiford@googlemail.com>
36027 * config/tilepro/gen-mul-tables.cc: Put copyright on one line.
36029 2013-01-05 David Edelsohn <dje.gcc@gmail.com>
36031 * config/rs6000/aix53.h (LIB_SPEC): Add -lpthreads when compiling
36032 to generate profiling.
36033 * config/rs6000/aix64.h (LIB_SPEC): Same.
36035 2013-01-04 Andrew Pinski <apinski@cavium.com>
36037 * config/aarch64/aarch64.c (aarch64_fixed_condition_code_regs):
36039 (TARGET_FIXED_CONDITION_CODE_REGS): Define.
36041 2013-01-04 Uros Bizjak <ubizjak@gmail.com>
36043 * config/i386/i386.c (ix86_legitimize_address): Call convert_to_mode
36045 (ix86_expand_move): Ditto.
36046 (ix86_zero_extend_to_Pmode): Ditto.
36047 (ix86_expand_call): Ditto.
36048 (ix86_expand_special_args_builtin): Ditto.
36049 (ix86_expand_builtin): Ditto.
36051 2013-01-04 Richard Biener <rguenther@suse.de>
36053 PR tree-optimization/55862
36054 * tree-ssa-pre.c (phi_translate_1): Valueize SSA names after
36055 translating them through PHI nodes.
36057 2013-01-04 Martin Jambor <mjambor@suse.cz>
36059 PR tree-optimization/55755
36060 * tree-sra.c (sra_modify_assign): Do not check that an access has no
36061 children when trying to avoid producing a VIEW_CONVERT_EXPR.
36063 2013-01-04 Marek Polacek <polacek@redhat.com>
36065 PR middle-end/55859
36066 * opts.c (default_options_optimization): Clarify error message.
36068 2013-01-04 Richard Biener <rguenther@suse.de>
36070 PR middle-end/55863
36071 * fold-const.c (split_tree): Undo -X - 1 to ~X folding for
36074 2013-01-03 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
36077 * config/pa/pa.md (movsi): Revert previous change.
36078 * config/pa/pa.c (pa_legitimate_constant_p): Reject all TLS symbol
36081 2013-01-03 Richard Henderson <rth@redhat.com>
36083 * config/i386/i386.c (ix86_expand_move): Always assign to op1
36084 after eliminating TLS symbols.
36086 2013-01-03 Marc Glisse <marc.glisse@inria.fr>
36089 * graphite-interchange.c (pdr_stride_in_loop): Use gmp_fprintf.
36090 * graphite-poly.c (debug_gmp_value): Likewise.
36092 2013-01-03 Uros Bizjak <ubizjak@gmail.com>
36095 * config/i386/i386-c.c (ix86_target_macros_internal): Depending on
36096 selected code model, define __code_mode_small__, __code_model_medium__,
36097 __code_model_large__, __code_model_32__ or __code_model_kernel__.
36098 * config/i386/cpuid.h (__cpuid, __cpuid_count) [__i386__]: Prefix
36099 xchg temporary register with %k. Declare temporary register as
36101 [__x86_64__]: For medium and large code models, preserve %rbx register.
36103 2013-01-03 Richard Biener <rguenther@suse.de>
36105 * tree-data-ref.c (dump_conflict_function): Use less vertical spacing.
36106 (dump_subscript): Adjust.
36107 (finalize_ddr_dependent): Do not dump redundant info.
36108 (analyze_siv_subscript): Adjust.
36109 (subscript_dependence_tester): Likewise.
36110 (compute_affine_dependence): Likewise.
36112 2013-01-03 Richard Biener <rguenther@suse.de>
36115 2013-01-03 Richard Biener <rguenther@suse.de>
36117 PR tree-optimization/55857
36118 * tree-vect-stmts.c (vectorizable_load): Do not setup
36119 re-alignment for invariant loads.
36121 2013-01-02 Richard Biener <rguenther@suse.de>
36123 * tree-vect-stmts.c (vectorizable_load): When vectorizing an
36124 invariant load do not generate a vector load from the scalar location.
36126 2013-01-03 Richard Biener <rguenther@suse.de>
36128 * tree-vect-loop.c (vect_analyze_loop_form): Clarify reason
36129 for not vectorizing.
36130 * tree-vect-data-refs.c (vect_create_addr_base_for_vector_ref): Do
36131 not build INDIRECT_REFs, call get_name once only.
36132 (vect_create_data_ref_ptr): Likewise. Dump base object kind
36133 based on DR_BASE_OBJECT, not DR_BASE_ADDRESS.
36135 2013-01-03 Richard Biener <rguenther@suse.de>
36137 PR tree-optimization/55857
36138 * tree-vect-stmts.c (vectorizable_load): Do not setup
36139 re-alignment for invariant loads.
36141 2013-01-03 Richard Biener <rguenther@suse.de>
36144 * lto-symtab.c (lto_symtab_merge_decls_1): As last resort, always
36145 prefer a built-in decl.
36147 2013-01-03 Jakub Jelinek <jakub@redhat.com>
36149 * gcc.c (process_command): Update copyright notice dates.
36150 * gcov.c (print_version): Likewise.
36151 * gcov-dump.c (print_version): Likewise.
36153 PR rtl-optimization/55838
36154 * loop-iv.c (iv_number_of_iterations): Call lowpart_subreg on
36155 iv0.step, iv1.step and step.
36157 2013-01-03 Jakub Jelinek <jakub@redhat.com>
36158 Marc Glisse <marc.glisse@inria.fr>
36160 PR tree-optimization/55832
36161 * fold-const.c (fold_binary_loc): For ABS_EXPR<x> >= 0 and
36162 ABS_EXPR<x> < 0 folding use constant_boolean_node instead of
36163 integer_{one,zero}_node.
36165 2013-01-03 Jakub Jelinek <jakub@redhat.com>
36168 * params.def (PARAM_MAX_VARTRACK_REVERSE_OP_SIZE): New param.
36169 * var-tracking.c (reverse_op): Don't add reverse ops to
36170 VALUEs that have already
36171 PARAM_VALUE (PARAM_MAX_VARTRACK_REVERSE_OP_SIZE) or longer locs list.
36173 2013-01-02 Gerald Pfeifer <gerald@pfeifer.com>
36175 * doc/contrib.texi: Note years as release manager for Mark Mitchell.
36177 2013-01-02 Teresa Johnson <tejohnson@google.com>
36179 * dumpfile.c (dump_loc): Print filename with location.
36180 * tree-ssa-loop-ivcanon.c (try_unroll_loop_completely): Use
36181 new location_t parameter to emit complete unroll message with
36182 new dump framework.
36183 (canonicalize_loop_induction_variables): Compute loops location
36184 and pass to try_unroll_loop_completely.
36185 * loop-unroll.c (report_unroll_peel): New function.
36186 (peel_loops_completely): Use new dump format with location
36187 for main dumpfile message, and invoke report_unroll_peel on success.
36188 (decide_unrolling_and_peeling): Ditto.
36189 (decide_peel_once_rolling): Remove old dumpfile message subsumed
36190 by report_unroll_peel.
36191 (decide_peel_completely): Ditto.
36192 (decide_unroll_constant_iterations): Ditto.
36193 (decide_unroll_runtime_iterations): Ditto.
36194 (decide_peel_simple): Ditto.
36195 (decide_unroll_stupid): Ditto.
36196 * cfgloop.c (get_loop_location): New function.
36197 * cfgloop.h (get_loop_location): Declare.
36199 2013-01-02 Sriraman Tallam <tmsriram@google.com>
36201 * config/i386/i386.c (fold_builtin_cpu): Remove unnecessary checks for
36204 2013-01-02 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
36206 PR middle-end/55198
36207 * expr.c (expand_expr_real_1): Don't use bitfield extraction for non
36208 BLKmode objects when EXPAND_MEMORY is specified.
36210 2013-01-02 Sriraman Tallam <tmsriram@google.com>
36212 * config/i386/i386.c (ix86_get_function_versions_dispatcher): Fix bug
36214 (fold_builtin_cpu): Do not share cpu model decls across statements.
36216 2013-01-02 Jason Merrill <jason@redhat.com>
36219 * tree.c (build_array_type_1): Revert earlier change.
36221 2013-01-02 Yufeng Zhang <yufeng.zhang@arm.com>
36223 * config/aarch64/aarch64-cores.def: Add entries for "cortex-a53" and
36225 * config/aarch64/aarch64-tune.md: Re-generate.
36227 2013-01-02 Richard Biener <rguenther@suse.de>
36229 * tree-vect-stmts.c (vectorizable_load): When vectorizing an
36230 invariant load do not generate a vector load from the scalar location.
36232 2013-01-02 Richard Biener <rguenther@suse.de>
36235 * configure.ac: Add $GMPINC to CFLAGS/CXXFLAGS.
36236 * configure: Regenerate.
36238 2013-01-02 Richard Sandiford <rdsandiford@googlemail.com>
36240 * builtins.c (expand_builtin_mathfn, expand_builtin_mathfn_2)
36241 (expand_builtin_mathfn_ternary, expand_builtin_mathfn_3)
36242 (expand_builtin_int_roundingfn_2): Keep the original target around
36243 for the fallback case.
36245 2013-01-02 Richard Sandiford <rdsandiford@googlemail.com>
36247 * tree-vrp.c (range_fits_type_p): Require the MSB of the double_int
36248 to be clear for sign changes.
36250 2013-01-01 Jan Hubicka <jh@suse.cz>
36252 * ipa-inline-analysis.c: Fix formatting.
36254 2013-01-01 Jakub Jelinek <jakub@redhat.com>
36256 PR tree-optimization/55831
36257 * tree-vect-loop.c (get_initial_def_for_induction): Use
36258 gsi_after_labels instead of gsi_start_bb.
36260 Copyright (C) 2013 Free Software Foundation, Inc.
36262 Copying and distribution of this file, with or without modification,
36263 are permitted in any medium without royalty provided the copyright
36264 notice and this notice are preserved.