1 2013-12-05 Jan-Benedict Glaw <jbglaw@lug-owl.de>
3 * config/score/score.c (score_force_temporary): Delete function.
4 (score_split_symbol): Ditto.
5 * config/score/score.h (ASM_OUTPUT_ADDR_DIFF_ELT): Add extra
6 parentheses to silence ambiguity warning and reindent.
8 2013-12-05 Marek Polacek <polacek@redhat.com>
10 * doc/invoke.texi: Document -fsanitize=signed-integer-overflow.
12 2013-12-05 H.J. Lu <hongjiu.lu@intel.com>
14 * config.gcc: Support --with-cpu=ia.
16 * config/i386/i386.c (cpu_names): Add "ia".
17 (processor_alias_table): Likewise.
18 (ix86_option_override_internal): Disallow -march=ia.
19 * config/i386/i386.h (target_cpu_default): Add
20 TARGET_CPU_DEFAULT_ia.
22 * doc/invoke.texi: Document -mtune=ia.
24 2013-12-05 Vladimir Makarov <vmakarov@redhat.com>
26 PR rtl-optimization/59317
27 * lra-constraints.c (in_class_p): Don't ignore insn with constant
30 2013-12-05 Martin Jambor <mjambor@suse.cz>
33 * ipa-prop.c (ipa_modify_formal_parameters): Create decls of
34 non-BLKmode in their naturally aligned type.
36 2013-12-05 Marek Polacek <polacek@redhat.com>
40 * ubsan.c: Include rtl.h and expr.h.
41 (ubsan_encode_value): Add new parameter. If expanding, assign
42 a stack slot for DECL_RTL of the temporary and call expand_assignment.
43 Handle BOOLEAN_TYPE and ENUMERAL_TYPE.
44 (ubsan_build_overflow_builtin): Adjust ubsan_encode_value call.
45 * ubsan.h (ubsan_encode_value): Adjust declaration.
46 * internal-fn.c (ubsan_expand_si_overflow_addsub_check): Move
47 ubsan_build_overflow_builtin above expand_normal call. Surround this call
48 with push_temp_slots and pop_temp_slots.
49 (ubsan_expand_si_overflow_neg_check): Likewise.
50 (ubsan_expand_si_overflow_mul_check): Likewise.
52 2013-12-05 Yufeng Zhang <yufeng.zhang@arm.com>
54 * gimple-ssa-strength-reduction.c (find_basis_for_candidate): Guard
55 the get_alternative_base call with flag_expensive_optimizations.
56 (alloc_cand_and_find_basis): Likewise.
58 2013-12-05 Tejas Belagod <tejas.belagod@arm.com>
60 * rtlanal.c (set_noop_p): Return nonzero in case of redundant vec_select
61 for overlapping register lanes.
63 2013-12-05 Kirill Yukhin <kirill.yukhin@intel.com>
65 * config/i386/i386.c (ix86_expand_builtin): Generate
66 reg for readflags built-in when optimizing.
67 * config/i386/i386.md (*pushfl<mode>): Rename to ...
68 (pushfl<mode>2): This. Fix iterator.
69 (*popfl<mode>): Rename to ...
70 (*popfl<mode>1): This. Fix iterator.
72 2013-12-05 Kirill Yukhin <kirill.yukhin@intel.com>
74 * config/i386/i386.c (IX86_BUILTIN_READ_FLAGS): New.
75 (IX86_BUILTIN_WRITE_FLAGS): Ditto.
76 (ix86_init_mmx_sse_builtins): Define
77 __builtin_ia32_writeeflags_u32, __builtin_ia32_writeeflags_u64,
78 __builtin_ia32_readeflags_u32, __builtin_ia32_readeflags_u64.
79 (ix86_expand_builtin): Expand them.
80 * config/i386/ia32intrin.h (__readeflags): New.
81 (__writeeflags): Ditto.
82 * gcc/config/i386/i386.md (*pushfl<mode>): Ditto.
83 (*popfl<mode>1): Ditto.
85 2013-12-05 Richard Biener <rguenther@suse.de>
87 PR tree-optimization/59374
88 * tree-vect-data-refs.c (vect_slp_analyze_data_ref_dependence):
89 Commonize known and unknown dependence case fixing the allowed
90 read-write dependence case and dropping code that should not
93 2013-12-05 Kirill Yukhin <kirill.yukhin@intel.com>
95 * config/ia64/ia64.md (prologue_allocate_stack): Block auto-
96 generation of predicated version.
97 (epilogue_deallocate_stack): Ditto.
98 (prologue_allocate_stack_pr): Add explicit predicated version.
99 (epilogue_deallocate_stack_pr): Ditto.
100 * config/ia64/ia64.c (ia64_single_set): Use explicit version.
102 2013-12-05 Alan Modra <amodra@gmail.com>
104 * configure.ac (BUILD_CXXFLAGS) Don't use ALL_CXXFLAGS for
106 <recursive call for build != host>: Clear GMPINC. Don't bother
109 2013-12-04 Jakub Jelinek <jakub@redhat.com>
110 Marek Polacek <polacek@redhat.com>
112 * opts.c (common_handle_option): Handle
113 -fsanitize=signed-integer-overflow.
114 * config/i386/i386.md (addv<mode>4, subv<mode>4, mulv<mode>4,
115 negv<mode>3, negv<mode>3_1): Define expands.
116 (*addv<mode>4, *subv<mode>4, *mulv<mode>4, *negv<mode>3): Define
118 * sanitizer.def (BUILT_IN_UBSAN_HANDLE_ADD_OVERFLOW,
119 BUILT_IN_UBSAN_HANDLE_SUB_OVERFLOW,
120 BUILT_IN_UBSAN_HANDLE_MUL_OVERFLOW,
121 BUILT_IN_UBSAN_HANDLE_NEGATE_OVERFLOW): Define.
122 * ubsan.h (PROB_VERY_UNLIKELY, PROB_EVEN, PROB_VERY_LIKELY,
123 PROB_ALWAYS): Define.
124 (ubsan_build_overflow_builtin): Declare.
125 * gimple-fold.c (gimple_fold_stmt_to_constant_1): Add folding of
127 * ubsan.c (PROB_VERY_UNLIKELY): Don't define here.
128 (ubsan_build_overflow_builtin): New function.
129 (instrument_si_overflow): Likewise.
130 (ubsan_pass): Add signed integer overflow checking.
131 (gate_ubsan): Enable the pass also when SANITIZE_SI_OVERFLOW.
132 * flag-types.h (enum sanitize_code): Add SANITIZE_SI_OVERFLOW.
133 * internal-fn.c: Include ubsan.h and target.h.
134 (ubsan_expand_si_overflow_addsub_check): New function.
135 (ubsan_expand_si_overflow_neg_check): Likewise.
136 (ubsan_expand_si_overflow_mul_check): Likewise.
137 (expand_UBSAN_CHECK_ADD): Likewise.
138 (expand_UBSAN_CHECK_SUB): Likewise.
139 (expand_UBSAN_CHECK_MUL): Likewise.
140 * fold-const.c (fold_binary_loc): Don't fold A + (-B) -> A - B and
141 (-A) + B -> B - A when doing the signed integer overflow checking.
142 * internal-fn.def (UBSAN_CHECK_ADD, UBSAN_CHECK_SUB, UBSAN_CHECK_MUL):
144 * tree-vrp.c (extract_range_basic): Handle internal calls.
145 * optabs.def (addv4_optab, subv4_optab, mulv4_optab, negv4_optab): New
147 * asan.c: Include predict.h.
148 (PROB_VERY_UNLIKELY, PROB_ALWAYS): Don't define here.
149 * predict.c: Move the PROB_* macros...
150 * predict.h (enum br_predictor): ...here.
151 (PROB_LIKELY, PROB_UNLIKELY): Define.
152 * trans-mem.c: Include predict.h.
153 (PROB_VERY_UNLIKELY, PROB_ALWAYS, PROB_VERY_LIKELY,
154 PROB_LIKELY, PROB_UNLIKELY): Don't define here.
156 2013-12-04 Jeff Law <law@redhat.com>
158 * common.opt: Split up -fisolate-erroneous-paths into
159 -fisolate-erroneous-paths-dereference and
160 -fisolate-erroneous-paths-attribute.
161 * invoke.texi: Corresponding changes.
162 * gimple.c (infer_nonnull_range): Add and use new arguments
163 to control what kind of statements can be used to infer a
165 * gimple.h (infer_nonnull_range): Update prototype.
166 * tree-vrp.c (infer_value_range): Corresponding changes.
167 * opts.c (default_options_table): Update due to option split.
168 * gimple-ssa-isolate-paths.c: Fix trailing whitespace.
169 (find_implicit_erroneous_behaviour): Pass additional arguments
170 to infer_nonnull_range.
171 (find_explicit_erroneous_behaviour): Similarly.
172 (gate_isolate_erroneous_paths): Check both of the new
175 2013-12-04 Jeff Law <law@redhat.com>
177 * expr.c (expand_assignment): Update comments.
179 2013-12-04 Tobias Burnus <burnus@net-b.de>
182 * lto-streamer.h (LTO_tags): Add LTO_namelist_decl_ref.
183 * tree.def (NAMELIST_DECL): Add.
184 * tree.h (NAMELIST_DECL_ASSOCIATED_DECL): New macro.
185 * tree.c (initialize_tree_contains_struct): Add asserts for it.
186 * dwarf2out.c (gen_namelist_decl): New function.
187 (gen_decl_die, dwarf2out_decl): Call it.
188 (dwarf2out_imported_module_or_decl_1): Handle NAMELIST_DECL.
189 * lto-streamer-in.c (lto_input_tree_ref): Handle NAMELIST_DECL.
190 (lto_input_tree_ref, lto_input_tree_1): Update lto_tag_check_range
192 * lto-streamer-out.c (lto_output_tree_ref): Handle NAMELIST_DECL.
194 2013-12-03 Xinliang David Li <davidxl@google.com>
196 * tree-ssa-structalias.c (constraint_set_union): Change return type
198 (merge_node_constraints): Ditto.
199 (unify_nodes): Update changed set when constraints set changes.
201 2013-12-04 H.J. Lu <hongjiu.lu@intel.com>
203 * configure.ac: Append gdbasan.in to .gdbinit if CFLAGS contains
205 * configure: Regenerated.
207 * gdbasan.in: New file.
209 2013-12-04 Jakub Jelinek <jakub@redhat.com>
211 PR rtl-optimization/58726
212 * combine.c (force_to_mode): Fix comment typo. Don't destructively
213 modify x for ROTATE, ROTATERT and IF_THEN_ELSE.
215 2013-12-04 Jakub Jelinek <jakub@redhat.com>
216 Uros Bizjak <ubizjak@gmail.com>
219 * config/i386/i386.c (ix86_legitimate_combined_insn): If for
220 !TARGET_AVX there is misaligned MEM operand with vector mode
221 and get_attr_ssememalign is 0, return false.
222 (ix86_expand_special_args_builtin): Add get_pointer_alignment
223 computed alignment and for non-temporal loads/stores also
224 at least GET_MODE_ALIGNMENT as MEM_ALIGN.
226 (<sse>_loadu<ssemodesuffix><avxsizesuffix><mask_name>,
227 <sse>_storeu<ssemodesuffix><avxsizesuffix>,
228 <sse2_avx_avx512f>_loaddqu<mode><mask_name>,
229 <sse2_avx_avx512f>_storedqu<mode>, <sse3>_lddqu<avxsizesuffix>,
230 sse_vmrcpv4sf2, sse_vmrsqrtv4sf2, sse2_cvtdq2pd, sse_movhlps,
231 sse_movlhps, sse_storehps, sse_loadhps, sse_loadlps,
232 *vec_interleave_highv2df, *vec_interleave_lowv2df,
233 *vec_extractv2df_1_sse, sse2_movsd, sse4_1_<code>v8qiv8hi2,
234 sse4_1_<code>v4qiv4si2, sse4_1_<code>v4hiv4si2,
235 sse4_1_<code>v2qiv2di2, sse4_1_<code>v2hiv2di2,
236 sse4_1_<code>v2siv2di2, sse4_2_pcmpestr, *sse4_2_pcmpestr_unaligned,
237 sse4_2_pcmpestri, sse4_2_pcmpestrm, sse4_2_pcmpestr_cconly,
238 sse4_2_pcmpistr, *sse4_2_pcmpistr_unaligned, sse4_2_pcmpistri,
239 sse4_2_pcmpistrm, sse4_2_pcmpistr_cconly): Add ssememalign attribute.
240 * config/i386/i386.md (ssememalign): New define_attr.
242 2013-12-04 Jakub Jelinek <jakub@redhat.com>
244 PR tree-optimization/59355
245 * ipa-devirt.c (gate_ipa_devirt): Return false if !flag_devirtualize.
246 * opts.c (common_handle_option): Fix comment spelling.
248 2013-12-04 Yufeng Zhang <yufeng.zhang@arm.com>
250 * gimple-ssa-strength-reduction.c: Include tree-affine.h.
251 (name_expansions): New static variable.
252 (alt_base_map): Ditto.
253 (get_alternative_base): New function.
254 (find_basis_for_candidate): For CAND_REF, optionally call
255 find_basis_for_base_expr with the returned value from
256 get_alternative_base.
257 (record_potential_basis): Add new parameter 'base' of type 'tree';
258 add an assertion of non-NULL base; use base to set node->base_expr.
259 (alloc_cand_and_find_basis): Update; call record_potential_basis
260 for CAND_REF with the returned value from get_alternative_base.
261 (replace_refs): Dump details on the replacing.
262 (execute_strength_reduction): Call pointer_map_create for
263 alt_base_map; call free_affine_expand_cache with &name_expansions.
265 2013-12-03 Wei Mi <wmi@google.com>
267 PR rtl-optimization/59020
268 * sched-deps.c (try_group_insn): Move it from haifa-sched.c to here.
269 (sched_analyze_insn): Call try_group_insn.
270 (sched_analyze): Cleanup SCHED_GROUP_P before start the analysis.
271 * haifa-sched.c (try_group_insn): Moved to sched-deps.c.
272 (group_insns_for_macro_fusion): Removed.
273 (sched_init): Remove calling group_insns_for_macro_fusion.
275 2013-12-03 Peter Bergner <bergner@vnet.ibm.com>
277 * config/rs6000/htmintrin.h (_TEXASR_INSTRUCTION_FETCH_CONFLICT): Fix
279 (_TEXASRU_INSTRUCTION_FETCH_CONFLICT): Likewise.
281 2013-12-03 Vladimir Makarov <vmakarov@redhat.com>
283 * config/aarch64/aarch64.c (aarch64_frame_pointer_required): Check
285 (aarch64_can_eliminate): Don't check elimination source when
286 frame_pointer_required is false.
288 2013-12-03 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
290 * config/avr/avr.c (avr_option_override): Warn if asked to generate
291 position independent code.
292 * config/avr/avr.h: Modify LINK_SPEC to reject -shared.
294 2013-12-03 H.J. Lu <hongjiu.lu@intel.com>
297 * config/i386/i386.c (emit_memset): Adjust destination address
299 (expand_setmem_epilogue): Likewise.
301 2013-12-03 Marek Polacek <polacek@redhat.com>
304 * calls.c (expand_call): Disallow passing huge arguments by value.
306 2013-12-03 Jakub Jelinek <jakub@redhat.com>
308 PR tree-optimization/59362
309 * tree-object-size.c (object_sizes): Change into array of
310 vec<unsigned HOST_WIDE_INT>.
311 (compute_builtin_object_size): Check computed bitmap for
312 non-NULL instead of object_sizes. Call safe_grow on object_sizes
313 vector if new SSA_NAMEs appeared.
314 (init_object_sizes): Check computed bitmap for non-NULL.
315 Call safe_grow on object_sizes elements instead of initializing
317 (fini_object_sizes): Call release on object_sizes elements, don't
321 * gimplify.c (nonlocal_vla_vars): New variable.
322 (gimplify_var_or_parm_decl): Put VAR_DECLs for VLAs into
323 nonlocal_vla_vars chain.
324 (gimplify_body): Call declare_vars on nonlocal_vla_vars chain
325 if outer_bind has DECL_INITIAL (current_function_decl) block.
328 * dojump.c (save_pending_stack_adjust, restore_pending_stack_adjust):
330 * expr.h (struct saved_pending_stack_adjust): New type.
331 (save_pending_stack_adjust, restore_pending_stack_adjust): New
333 * optabs.c (emit_conditional_move): Call save_pending_stack_adjust
334 and get_last_insn before do_pending_stack_adjust, call
335 restore_pending_stack_adjust after delete_insns_since.
336 * expr.c (expand_expr_real_2): Don't call do_pending_stack_adjust
337 before calling emit_conditional_move.
338 * expmed.c (expand_sdiv_pow2): Likewise.
339 * calls.c (expand_call): Use {save,restore}_pending_stack_adjust.
341 2013-12-02 Jeff Law <law@redhat.com>
343 PR tree-optimization/59322
344 * tree-ssa-threadedge.c (create_edge_and_update_destination_phis):
345 Remove code which copied jump threading paths.
347 2013-12-02 Sriraman Tallam <tmsriram@google.com>
350 * config/i386/i386.opt (ix86_arch_string): Mark this variable
351 for saving in cl_target_option.
352 (ix86_tune_string): Ditto.
353 (ix86_cmodel): Ditto.
355 (ix86_asm_dialect): Ditto.
356 (ix86_branch_cost): Ditto.
357 (ix86_dump_tunes): Ditto.
358 (ix86_force_align_arg_pointer): Ditto.
359 (ix86_force_drap): Ditto.
360 (ix86_incoming_stack_boundary_arg): Ditto.
362 (ix86_preferred_stack_boundary_arg): Ditto.
363 (ix86_recip_name): Ditto.
364 (ix86_regparm): Ditto.
365 (ix86_section_threshold): Ditto.
366 (ix86_sse2avx): Ditto.
367 (ix86_stack_protector_guard): Ditto.
368 (ix86_stringop_alg): Ditto.
369 (ix86_tls_dialect): Ditto.
370 (ix86_tune_ctrl_string): Ditto.
371 (ix86_tune_memcpy_strategy): Ditto.
372 (ix86_tune_memset_strategy): Ditto.
373 (ix86_tune_no_default): Ditto.
374 (ix86_veclibabi_type): Ditto.
375 * config/i386/i386.c (function_specific_save): Save the above
376 variables in gcc_options to cl_target_option.
377 (function_specific_restore): Do the reverse done in
378 function_specific_save.
379 (ix86_valid_target_attribute_tree): Change ix86_arch_string
380 and ix86_tune_string to use the opts structure.
381 (ix86_option_override_internal):Change
382 ix86_incoming_stack_boundary_arg to
383 opts->x_ix86_incoming_stack_boundary_arg
385 2013-12-02 Joern Rennecke <joern.rennecke@embecosm.com>
387 * config/epiphany/epiphany.h: Wrap rtl_opt_pass declarations
388 in #ifndef IN_LIBGCC2 / #endif.
390 2013-12-02 Jakub Jelinek <jakub@redhat.com>
392 PR tree-optimization/59358
393 * tree-vrp.c (union_ranges): To check for the partially overlapping
394 ranges or adjacent ranges, also compare *vr0max with vr1max.
396 2013-12-02 Sterling Augustine  <saugustine@google.com>
398 * dwarf2out.c (output_pubnames): Use comp_unit_die ()->die_offset
399 when there isn't a skeleton die.
401 2013-12-02 Marek Polacek <polacek@redhat.com>
404 * doc/invoke.texi: Document -fsanitize=return.
406 2013-12-02 Tobias Burnus <burnus@net-b.de>
407 Manuel López-Ibáñez <manu@gcc.gnu.org>
410 * doc/invoke.texi: Add missing @opindex.
411 (-fsanitize=): Use @gcctabopt instead of @itemize.
413 2013-12-02 Bernd Edlinger <bernd.edlinger@hotmail.de>
415 Fix C++0x memory model for unaligned fields in packed, aligned(4)
416 structures with -fno-strict-volatile-bitfields on STRICT_ALIGNMENT
417 targets like arm-none-eabi.
418 * expr.c (expand_assignment): Handle normal fields like bit regions.
420 2013-12-02 Bernd Edlinger <bernd.edlinger@hotmail.de>
423 * function.c (invoke_set_current_function_hook): Call
424 targetm.set_current_function after setting this_fn_optabs.
426 2013-12-02 Richard Biener <rguenther@suse.de>
428 PR tree-optimization/59139
429 * tree-ssa-loop-niter.c (chain_of_csts_start): Properly match
431 (get_val_for): Use gcc_checking_asserts.
433 2013-12-02 Richard Biener <rguenther@suse.de>
436 * tree-ssa-operands.c (opf_implicit): Remove.
437 (opf_address_taken): New flag.
438 (get_expr_operands): Remove early out, pass down opf_address_taken for
439 ADDR_EXPRs, add a use operand only for non-opf_address_taken bases.
440 (get_indirect_ref_operands): Rename to ...
441 (get_mem_ref_operands): ... this.
442 (get_asm_expr_operands): Rename to ...
443 (get_asm_stmt_operands): ... this.
445 2013-12-02 Yuri Rumyantsev <ysrumyan@gmail.com>
447 * ipa-inline.c (check_callers): Add missed pointer de-reference.
449 2013-12-02 Eric Botcazou <ebotcazou@adacore.com>
451 PR tree-optimization/59356
452 * tree-dfa.h (get_addr_base_and_unit_offset_1) <case ARRAY_REF>: Do the
453 offset computation using the precision of the index type.
455 2013-12-02 Yvan Roux <yvan.roux@linaro.org>
458 * config/arm/arm.c (arm_preferred_reload_class): Only return LO_REGS
459 when rclass is GENERAL_REGS.
461 2013-12-02 Ganesh Gopalasubramanian <Ganesh.Gopalasubramanian@amd.com>
463 * loop-unroll.c (decide_unroll_constant_iterations): Check macro
464 TARGET_LOOP_UNROLL_ADJUST while deciding unroll factor.
466 2013-12-01 Eric Botcazou <ebotcazou@adacore.com>
468 * config/i386/winnt.c (i386_pe_asm_named_section): Be prepared for an
471 2013-12-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
473 * expr.c (emit_group_store): Fix off-by-one BITFIELD_END argument.
475 2013-11-30 Paulo Matos <pmatos@broadcom.com>
476 Eric Botcazou <ebotcazou@adacore.com>
478 * combine.c (reg_nonzero_bits_for_combine): Apply mask transformation
479 as applied to nonzero_sign_valid when last_set_mode has less precision
482 2013-11-30 Tobias Burnus <burnus@net-b.de>
485 * doc/invoke.texi (-fsanitize=address,leak): Mention the associated
486 environment variable and link to a list with flags.
487 (-fsanitize=thread): Ditto and update link.
489 2013-11-29 Vladimir Makarov <vmakarov@redhat.com>
491 PR rtl-optimization/59340
492 * lra.c (check_rtl): Use recog_memoized instead of insn_invalid_p.
495 2013-11-20 Robert Suchanek <Robert.Suchanek@imgtec.com>
497 * lra.c (lra): Set lra_in_progress before check_rtl call.
498 * recog.c (insn_invalid_p): Add !lra_in_progress to prevent
499 adding clobber regs when LRA is running.
501 2013-11-29 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
504 * config/arm/arm.c (cortexa15_extra_costs): Adjust costs.
506 2013-11-29 Richard Biener <rguenther@suse.de>
509 * tree-ssa-operands.h (fini_ssa_operands, verify_ssa_operands,
510 free_stmt_operands, update_stmt_operands): Add struct function
512 * tree-ssa-operands.c: Remove uses of cfun, propagate struct
513 function argument from fini_ssa_operands, verify_ssa_operands,
514 free_stmt_operands and update_stmt_operands everywhere.
515 * tree-ssanames.h (release_ssa_name_fn): New.
516 (release_ssa_name): Inline wrapper around release_ssa_name_fn.
517 * tree-ssanames.c (release_ssa_name): Rename to ...
518 (release_ssa_name_fn): ... this and add struct function argument.
519 * gimple-ssa.h (update_stmt, update_stmt_if_modified): Adjust.
520 (update_stmt_fn): New function.
521 * tree-cfg.c (move_block_to_fn): Adjust.
522 * tree-if-conv.c (free_bb_predicate): Likewise.
523 * tree-ssa.c (verify_ssa): Likewise.
524 (delete_tree_ssa): Likewise.
525 * gimple-pretty-print.c (dump_gimple_mem_ops): Remove guard.
526 * cgraph.c (cgraph_redirect_edge_call_stmt_to_callee): Call
527 update_stmt_fn instead of update_stmt.
529 2013-11-29 Yvan Roux <yvan.roux@linaro.org>
531 * config/arm/arm.h (THUMB_SECONDARY_INPUT_RELOAD_CLASS): Return NO_REGS
534 2013-11-29 Yvan Roux <yvan.roux@linaro.org>
536 * config/arm/arm.md (store_minmaxsi): Use only when
537 optimize_function_for_size_p.
539 2013-11-29 Jakub Jelinek <jakub@redhat.com>
540 Yury Gribov <y.gribov@samsung.com>
543 * config/gnu-user.h: Removed old code for setting up sanitizer libs.
544 * gcc.c: Using libsanitizer spec instead of explicit libs.
546 2013-11-29 Ilya Enkovich <ilya.enkovich@intel.com>
549 2013-11-20 Ilya Enkovich <ilya.enkovich@intel.com>
550 * cgraph.h (varpool_node): Add need_bounds_init field.
551 * lto-cgraph.c (lto_output_varpool_node): Output
552 need_bounds_init value.
553 (input_varpool_node): Read need_bounds_init value.
554 * varpool.c (dump_varpool_node): Dump need_bounds_init field.
557 2013-11-20 Ilya Enkovich <ilya.enkovich@intel.com>
558 * dbxout.c (dbxout_type): Ignore POINTER_BOUNDS_TYPE.
559 * dwarf2out.c (gen_subprogram_die): Ignore bound args.
560 (gen_type_die_with_usage): Skip pointer bounds.
561 (dwarf2out_global_decl): Likewise.
564 2013-11-18 Ilya Enkovich <ilya.enkovich@intel.com>
565 * builtin-types.def (BT_FN_PTR_CONST_PTR_VAR): New.
566 * chkp-builtins.def (BUILT_IN_CHKP_BIND_BOUNDS): New.
567 * cfgexpand.c (expand_call_stmt): Expand BUILT_IN_CHKP_BIND_BOUNDS.
568 * gimple.c (gimple_call_get_nobnd_arg_index): Remove.
569 * gimple.h (gf_mask): Add GF_CALL_WITH_BOUNDS.
570 (gimple_call_with_bounds_p): New.
571 (gimple_call_set_with_bounds): New.
572 (gimple_call_num_nobnd_args): Remove.
573 (gimple_call_nobnd_arg): Remove.
574 * tree.h (CALL_WITH_BOUNDS_P): New.
575 * rtl.h (CALL_EXPR_WITH_BOUNDS_P): New.
578 2013-11-08 Ilya Enkovich <ilya.enkovich@intel.com>
579 * common.opt (fcheck-pointer-bounds): Move to ...
580 * c-family/c.opt: ... here.
581 * langhooks-def.h (LANG_HOOKS_CHKP_SUPPORTED): Remove.
582 (LANG_HOOKS_INITIALIZER): Remove LANG_HOOKS_CHKP_SUPPORTED.
583 * langhooks.h (lang_hooks): Remove chkp_supported field.
584 * toplev.c (process_options): Remove chkp_supported check.
587 2013-10-30 Ilya Enkovich <ilya.enkovich@intel.com>
588 * tree-core.h (tree_index): Add TI_POINTER_BOUNDS_TYPE.
589 * tree.h (POINTER_BOUNDS_P): New.
590 (BOUNDED_TYPE_P): New.
592 (pointer_bounds_type_node): New.
593 * tree.c (build_common_tree_nodes): Initialize
594 pointer_bounds_type_node.
595 * gimple.h (gimple_call_get_nobnd_arg_index): New.
596 (gimple_call_num_nobnd_args): New.
597 (gimple_call_nobnd_arg): New.
598 (gimple_return_retbnd): New.
599 (gimple_return_set_retbnd): New
600 * gimple.c (gimple_build_return): Increase number of ops
601 for return statement.
602 (gimple_call_get_nobnd_arg_index): New.
603 * gimple-pretty-print.c (dump_gimple_return): Print second op.
606 2013-10-30 Ilya Enkovich <ilya.enkovich@intel.com>
607 * ipa.c (cgraph_build_static_cdtor_1): Support contructors
608 with "chkp ctor" and "bnd_legacy" attributes.
609 * gimplify.c (gimplify_init_constructor): Avoid infinite
610 loop during gimplification of bounds initializer.
613 2013-10-30 Ilya Enkovich <ilya.enkovich@intel.com>
614 * c-family/c-common.c (handle_bnd_variable_size_attribute): New.
615 (handle_bnd_legacy): New.
616 (c_common_attribute_table): Add bnd_variable_size and bnd_legacy.
617 * doc/extend.texi: Document bnd_variable_size and bnd_legacy
621 2013-10-29 Ilya Enkovich <ilya.enkovich@intel.com>
622 * builtin-types.def (BT_FN_VOID_CONST_PTR): New.
623 (BT_FN_PTR_CONST_PTR): New.
624 (BT_FN_CONST_PTR_CONST_PTR): New.
625 (BT_FN_PTR_CONST_PTR_SIZE): New.
626 (BT_FN_PTR_CONST_PTR_CONST_PTR): New.
627 (BT_FN_VOID_PTRPTR_CONST_PTR): New.
628 (BT_FN_VOID_CONST_PTR_SIZE): New.
629 (BT_FN_PTR_CONST_PTR_CONST_PTR_SIZE): New.
630 * chkp-builtins.def: New.
631 * builtins.def: include chkp-builtins.def.
632 (DEF_CHKP_BUILTIN): New.
633 * builtins.c (expand_builtin): Support BUILT_IN_CHKP_INIT_PTR_BOUNDS,
634 BUILT_IN_CHKP_NULL_PTR_BOUNDS, BUILT_IN_CHKP_COPY_PTR_BOUNDS,
635 BUILT_IN_CHKP_CHECK_PTR_LBOUNDS, BUILT_IN_CHKP_CHECK_PTR_UBOUNDS,
636 BUILT_IN_CHKP_CHECK_PTR_BOUNDS, BUILT_IN_CHKP_SET_PTR_BOUNDS,
637 BUILT_IN_CHKP_NARROW_PTR_BOUNDS, BUILT_IN_CHKP_STORE_PTR_BOUNDS,
638 BUILT_IN_CHKP_GET_PTR_LBOUND, BUILT_IN_CHKP_GET_PTR_UBOUND,
639 BUILT_IN_CHKP_BNDMK, BUILT_IN_CHKP_BNDSTX, BUILT_IN_CHKP_BNDCL,
640 BUILT_IN_CHKP_BNDCU, BUILT_IN_CHKP_BNDLDX, BUILT_IN_CHKP_BNDRET,
641 BUILT_IN_CHKP_INTERSECT, BUILT_IN_CHKP_ARG_BND, BUILT_IN_CHKP_NARROW,
642 BUILT_IN_CHKP_EXTRACT_LOWER, BUILT_IN_CHKP_EXTRACT_UPPER.
643 * common.opt (fcheck-pointer-bounds): New.
644 * toplev.c (process_options): Check Pointer Bounds Checker is
646 * doc/extend.texi: Document Pointer Bounds Checker built-in functions.
649 2013-10-30 Ilya Enkovich <ilya.enkovich@intel.com>
650 * target.def (builtin_chkp_function): New.
651 (chkp_bound_type): New.
652 (chkp_bound_mode): New.
653 (fn_abi_va_list_bounds_size): New.
654 (load_bounds_for_arg): New.
655 (store_bounds_for_arg): New.
656 * targhooks.h (default_load_bounds_for_arg): New.
657 (default_store_bounds_for_arg): New.
658 (default_fn_abi_va_list_bounds_size): New.
659 (default_chkp_bound_type): New.
660 (default_chkp_bound_mode): New.
661 (default_builtin_chkp_function): New.
662 * targhooks.c (default_load_bounds_for_arg): New.
663 (default_store_bounds_for_arg): New.
664 (default_fn_abi_va_list_bounds_size): New.
665 (default_chkp_bound_type): New.
666 (default_chkp_bound_mode); New.
667 (default_builtin_chkp_function): New.
668 * doc/tm.texi.in (TARGET_FN_ABI_VA_LIST_BOUNDS_SIZE): New.
669 (TARGET_LOAD_BOUNDS_FOR_ARG): New.
670 (TARGET_STORE_BOUNDS_FOR_ARG): New.
671 (TARGET_BUILTIN_CHKP_FUNCTION): New.
672 (TARGET_CHKP_BOUND_TYPE): New.
673 (TARGET_CHKP_BOUND_MODE): New.
674 * doc/tm.texi: Regenerated.
675 * langhooks.h (lang_hooks): Add chkp_supported field.
676 * langhooks-def.h (LANG_HOOKS_CHKP_SUPPORTED): New.
677 (LANG_HOOKS_INITIALIZER); Add LANG_HOOKS_CHKP_SUPPORTED.
680 2013-10-24 Ilya Enkovich <ilya.enkovich@intel.com>
681 * config/i386/constraints.md (B): New.
684 * config/i386/i386-c.c (ix86_target_macros_internal): Add __MPX__.
685 * config/i386/i386-modes.def (BND32): New.
687 * config/i386/i386-protos.h (ix86_bnd_prefixed_insn_p): New.
688 * config/i386/i386.c (isa_opts): Add mmpx.
689 (regclass_map): Add bound registers.
690 (dbx_register_map): Likewise.
691 (dbx64_register_map): Likewise.
692 (svr4_dbx_register_map): Likewise.
694 (ix86_option_override_internal): Support MPX ISA.
695 (ix86_conditional_register_usage): Support bound registers.
696 (print_reg): Likewise.
697 (ix86_code_end): Add MPX bnd prefix.
698 (output_set_got): Likewise.
699 (ix86_output_call_insn): Likewise.
700 (ix86_print_operand): Add '!' (MPX bnd) print prefix support.
701 (ix86_print_operand_punct_valid_p): Likewise.
702 (ix86_print_operand_address): Support UNSPEC_BNDMK_ADDR and
704 (ix86_class_likely_spilled_p): Add bound regs support.
705 (ix86_hard_regno_mode_ok): Likewise.
706 (x86_order_regs_for_local_alloc): Likewise.
707 (ix86_bnd_prefixed_insn_p): New.
708 * config/i386/i386.h (FIRST_PSEUDO_REGISTER): Fix to new value.
709 (FIXED_REGISTERS): Add bound registers.
710 (CALL_USED_REGISTERS): Likewise.
711 (REG_ALLOC_ORDER): Likewise.
712 (HARD_REGNO_NREGS): Likewise.
714 (VALID_BND_REG_MODE): New.
715 (FIRST_BND_REG): New.
717 (reg_class): Add BND_REGS.
718 (REG_CLASS_NAMES): Likewise.
719 (REG_CLASS_CONTENTS): Likewise.
721 (ANY_BND_REG_P): New.
723 (HI_REGISTER_NAMES): Add bound registers.
724 * config/i386/i386.md (UNSPEC_BNDMK): New.
725 (UNSPEC_BNDMK_ADDR): New.
726 (UNSPEC_BNDSTX): New.
727 (UNSPEC_BNDLDX): New.
728 (UNSPEC_BNDLDX_ADDR): New.
732 (UNSPEC_MPX_FENCE): New.
735 (type): Add mpxmov, mpxmk, mpxchk, mpxld, mpxst.
736 (length_immediate): Likewise.
737 (prefix_0f): Likewise.
739 (prefix_rep): Check for bnd prefix.
741 (length): Use length_nobnd if specified.
746 (*jcc_1): Add bnd prefix and rename length attr to length_nobnd.
749 (simple_return_internal): Likewise.
750 (simple_return_pop_internal): Likewise.
751 (*indirect_jump): Add MPX bnd prefix.
752 (*tablejump_1): Likewise.
753 (simple_return_internal_long): Likewise.
754 (simple_return_indirect_internal): Likewise.
758 (*mov<mode>_internal_mpx): New.
759 (<mode>_<bndcheck>): New.
760 (*<mode>_<bndcheck>): New.
765 * config/i386/predicates.md (lea_address_operand): Rename to...
766 (address_no_seg_operand): ... this.
767 (address_mpx_no_base_operand): New.
768 (address_mpx_no_index_operand): New.
769 (bnd_mem_operator): New.
770 * config/i386/i386.opt (mmpx): New.
771 * doc/invoke.texi: Add documentation for the flags -mmpx, -mno-mpx.
772 * doc/rtl.texi Add documentation for BND32mode and BND64mode.
775 2013-10-24 Ilya Enkovich <ilya.enkovich@intel.com>
776 * mode-classes.def (MODE_POINTER_BOUNDS): New.
777 * tree.def (POINTER_BOUNDS_TYPE): New.
778 * genmodes.c (complete_mode): Support MODE_POINTER_BOUNDS.
779 (POINTER_BOUNDS_MODE): New.
780 (make_pointer_bounds_mode): New.
781 * machmode.h (POINTER_BOUNDS_MODE_P): New.
782 * stor-layout.c (int_mode_for_mode): Support MODE_POINTER_BOUNDS.
783 (layout_type): Support POINTER_BOUNDS_TYPE.
784 * tree-pretty-print.c (dump_generic_node): Support POINTER_BOUNDS_TYPE.
785 * tree.c (build_int_cst_wide): Support POINTER_BOUNDS_TYPE.
786 (type_contains_placeholder_1): Likewise.
787 * tree.h (POINTER_BOUNDS_TYPE_P): New.
788 * varasm.c (output_constant): Support POINTER_BOUNDS_TYPE.
789 * doc/rtl.texi (MODE_POINTER_BOUNDS): New.
791 2013-11-29 Richard Biener <rguenther@suse.de>
794 * tree-cfg.c (verify_expr): Restrict bounds verification of
795 BIT_FIELD_REF arguments to non-aggregate typed base objects.
797 2013-11-29 Richard Biener <rguenther@suse.de>
799 PR tree-optimization/59334
800 * tree-ssa-dce.c (eliminate_unnecessary_stmts): Fix bug
803 2013-11-29 Jakub Jelinek <jakub@redhat.com>
804 Richard Biener <rguenther@suse.de>
807 * omp-low.c (simd_clone_create): Return NULL if for definition
808 !cgraph_function_with_gimple_body_p (old_node). Call cgraph_get_body
809 before calling cgraph_function_versioning.
810 (expand_simd_clones): Look for "omp declare simd" attribute first.
811 Don't check targetm.simd_clone.compute_vecsize_and_simdlen here.
812 Punt if node->global.inlined_to.
813 (pass_omp_simd_clone::gate): Also enable if in_lto_p && !flag_wpa.
814 Disable pass if targetm.simd_clone.compute_vecsize_and_simdlen is NULL.
815 * lto-streamer-out.c (hash_tree): Handle OMP_CLAUSE.
817 2013-11-29 Jakub Jelinek <jakub@redhat.com>
820 * tree-core.h (enum omp_clause_schedule_kind): Add
821 OMP_CLAUSE_SCHEDULE_LAST.
822 (enum omp_clause_default_kind): Add OMP_CLAUSE_DEFAULT_LAST.
823 (enum omp_clause_depend_kind): Add OMP_CLAUSE_DEPEND_LAST.
824 (enum omp_clause_map_kind): Add OMP_CLAUSE_MAP_LAST.
825 (enum omp_clause_proc_bind_kind): Add OMP_CLAUSE_PROC_BIND_LAST.
826 * lto-streamer-out.c (lto_is_streamable): Allow streaming OMP_CLAUSE.
827 (DFS_write_tree_body): Handle OMP_CLAUSE.
828 * tree-streamer-out.c (pack_ts_omp_clause_value_fields): New function.
829 (streamer_pack_tree_bitfields): Call it for OMP_CLAUSE.
830 (write_ts_omp_clause_tree_pointers): New function.
831 (streamer_write_tree_body): Call it for OMP_CLAUSE.
832 (streamer_write_tree_header): For OMP_CLAUSE stream OMP_CLAUSE_CODE.
833 * tree-streamer-in.c (unpack_ts_omp_clause_value_fields): New function.
834 (unpack_value_fields): Call it for OMP_CLAUSE.
835 (streamer_alloc_tree): Handle OMP_CLAUSE.
836 (lto_input_ts_omp_clause_tree_pointers): New function.
837 (streamer_read_tree_body): Call it for OMP_CLAUSE.
839 2013-11-29 Joseph Myers <joseph@codesourcery.com>
841 * doc/implement-c.texi: Document C11 implementation-defined
842 behavior. Refer to -ffp-contract=fast for contraction behavior.
843 * doc/invoke.texi (-std=c99, std=c11): Update description of
845 (-std=gnu99): Don't mention as future default.
846 (-std=gnu11): Mention as intended future default.
847 * doc/standards.texi: Update descriptions of C99 and C11 support.
848 Limit statement about C99 facilities for freestanding
849 implementations to some platforms only.
851 2013-11-28 Jakub Jelinek <jakub@redhat.com>
854 * cfgexpand.c (expand_used_vars): Avoid warning on 32-bit HWI hosts.
856 2013-11-28 Vladimir Makarov <vmakarov@redhat.com>
859 * ira.h (ira_setup_eliminable_regset): Remove parameter.
860 * ira.c (ira_setup_eliminable_regset): Ditto. Add
861 SUPPORTS_STACK_ALIGNMENT for crtl->stack_realign_needed.
862 Don't call lra_init_elimination.
863 (ira): Call ira_setup_eliminable_regset without arguments.
864 * loop-invariant.c (calculate_loop_reg_pressure): Remove argument
865 from ira_setup_eliminable_regset call.
866 * gcse.c (calculate_bb_reg_pressure): Ditto.
867 * haifa-sched.c (sched_init): Ditto.
868 * lra.h (lra_init_elimination): Remove the prototype.
869 * lra-int.h (lra_insn_recog_data): New member sp_offset. Move
870 used_insn_alternative upper.
871 (lra_eliminate_regs_1): Add one more parameter.
872 (lra-eliminate): Ditto.
873 * lra.c (lra_invalidate_insn_data): Set sp_offset.
874 (setup_sp_offset): New.
875 (lra_process_new_insns): Call setup_sp_offset.
876 (lra): Add argument to lra_eliminate calls.
877 * lra-constraints.c (get_equiv_substitution): Rename to get_equiv.
878 (get_equiv_with_elimination): New.
879 (process_addr_reg): Call get_equiv_with_elimination instead of
880 get_equiv_substitution.
881 (equiv_address_substitution): Ditto.
882 (loc_equivalence_change_p): Ditto.
883 (loc_equivalence_callback, lra_constraints): Ditto.
884 (curr_insn_transform): Ditto. Print the sp offset
885 (process_alt_operands): Prevent stack pointer reloads.
886 (lra_constraints): Remove one argument from lra_eliminate call.
887 Move it up. Mark used hard regs bfore it. Use
888 get_equiv_with_elimination instead of get_equiv_substitution.
889 * lra-eliminations.c (lra_eliminate_regs_1): Add parameter and
890 assert for param values combination. Use sp offset. Add argument
891 to lra_eliminate_regs_1 calls.
892 (lra_eliminate_regs): Add argument to lra_eliminate_regs_1 call.
893 (curr_sp_change): New static var.
894 (mark_not_eliminable): Add parameter. Update curr_sp_change.
895 Don't prevent elimination to sp if we can calculate its change.
896 Pass the argument to mark_not_eliminable calls.
897 (eliminate_regs_in_insn): Add a parameter. Use sp offset. Add
898 argument to lra_eliminate_regs_1 call.
899 (update_reg_eliminate): Move calculation of hard regs for spill
900 lower. Switch off lra_in_progress temporarily to generate regs
901 involved into elimination.
902 (lra_init_elimination): Rename to init_elimination. Make it
903 static. Set up insn sp offset, check the offsets at the end of BBs.
904 (process_insn_for_elimination): Add parameter. Pass its value to
905 eliminate_regs_in_insn.
906 (lra_eliminate): : Add parameter. Pass its value to
907 process_insn_for_elimination. Add assert for param values
908 combination. Call init_elimination. Don't update offsets in
909 equivalence substitutions.
910 * lra-spills.c (assign_mem_slot): Don't call lra_eliminate_regs_1
911 for created stack slot.
912 (remove_pseudos): Call lra_eliminate_regs_1 before changing memory
915 2013-11-28 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
917 * config/arm/iterators.md (vrint_conds): New int attribute.
918 * config/arm/vfp.md (<vrint_pattern><SDF:mode>2): Set conds attribute.
919 (smax<mode>3): Likewise.
920 (smin<mode>3): Likewise.
922 2013-11-28 Richard Sandiford <rdsandiford@googlemail.com>
924 * tree-core.h (tree_base): Document use of static_flag for SSA_NAME.
925 * tree.h (SSA_NAME_ANTI_RANGE_P, SSA_NAME_RANGE_TYPE): New macros.
926 * tree-ssanames.h (set_range_info): Add range_type argument.
927 (duplicate_ssa_name_range_info): Likewise.
928 * tree-ssanames.c (set_range_info): Take the range type as argument
929 and store it in SSA_NAME_ANTI_RANGE_P.
930 (duplicate_ssa_name_range_info): Likewise.
931 (get_range_info): Use SSA_NAME_ANTI_RANGE_P.
932 (set_nonzero_bits): Update call to set_range_info.
933 (duplicate_ssa_name_fn): Update call to duplicate_ssa_name_range_info.
934 * tree-ssa-copy.c (fini_copy_prop): Likewise.
935 * tree-vrp.c (remove_range_assertions): Update call to set_range_info.
936 (vrp_finalize): Likewise, passing anti-ranges directly.
938 2013-11-28 Richard Biener <rguenther@suse.de>
940 PR tree-optimization/59330
941 * tree-ssa-dce.c (eliminate_unnecessary_stmts): Simplify
942 and fix delayed marking of free calls not necessary.
944 2013-11-28 Andrew MacLeod <amacleod@redhat.com>
946 * tree-ssa-propagate.c (valid_gimple_call_p): Pass TREE_TYPE to
948 * ipa-prop.c (determine_known_aggregate_parts): Likewise.
950 2013-11-28 Terry Guo <terry.guo@arm.com>
952 * config/arm/arm.c (v7m_extra_costs): New table.
953 (arm_v7m_tune): Use it.
955 2013-11-28 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
957 * config/sol2.h (TIME_LIBRARY): Define.
959 2013-11-28 Richard Biener <rguenther@suse.de>
962 * lto-streamer-out.c (tree_is_indexable): TYPE_DECLs and
963 CONST_DECLs in function context are not indexable.
965 2013-11-28 Chung-Ju Wu <jasonwucj@gmail.com>
967 * config/nds32/nds32.c (nds32_rtx_costs): Adjust MULT cost if it is
968 not optimized for size.
970 2013-11-28 Jakub Jelinek <jakub@redhat.com>
972 * cfgexpand.c (struct stack_vars_data): Add asan_base and asan_alignb
974 (expand_stack_vars): For -fsanitize=address, use (and set initially)
975 data->asan_base as base for vars and update asan_alignb.
976 (expand_used_vars): Initialize data.asan_base and data.asan_alignb.
977 Pass them to asan_emit_stack_protection.
978 * asan.c (asan_detect_stack_use_after_return): New variable.
979 (asan_emit_stack_protection): Add pbase and alignb arguments.
980 Implement use after return sanitization.
981 * asan.h (asan_emit_stack_protection): Adjust prototype.
982 (ASAN_STACK_MAGIC_USE_AFTER_RET, ASAN_STACK_RETIRED_MAGIC): Define.
984 2013-11-28 Sergey Ostanevich <sergos.gnu@gmail.com>
986 * common.opt: Introduced a new option -fsimd-cost-model.
987 * doc/invoke.texi: Introduced a new openmp-simd warning and
988 a new -fsimd-cost-model option.
989 * tree-vectorizer.h (unlimited_cost_model): Interface updated
990 to rely on the particular loop info.
991 * tree-vect-data-refs.c (vect_peeling_hash_insert): Ditto.
992 (vect_peeling_hash_choose_best_peeling): Ditto.
993 (vect_enhance_data_refs_alignment): Ditto.
994 * tree-vect-slp.c (vect_slp_analyze_bb_1): Ditto.
995 * tree-vect-loop.c (vect_estimate_min_profitable_iters): Ditto
996 plus added openmp-simd warining.
998 2013-11-27 H.J. Lu <hongjiu.lu@intel.com>
1000 PR rtl-optimization/59311
1001 * dwarf2cfi.c (dwf_regno): Assert reg isn't pseudo register.
1002 * lra-spills.c (spill_pseudos): Handle REG_XXX notes.
1004 2013-11-27 Eric Botcazou <ebotcazou@adacore.com>
1006 * var-tracking.c (track_expr_p): Do not track declarations for parts
1007 of tracked parameters.
1008 (add_stores): Do not track values for tracked parameters passed in
1010 (vt_get_decl_and_offset): Handle PARALLEL.
1011 (vt_add_function_parameter): Handle parameters with incoming PARALLEL.
1013 2013-11-27 Jeff Law <law@redhat.com>
1015 * tree-ssa-threadupdate.c (thread_through_all_blocks): Do not
1016 clobber the loop structure thread_block was unsuccessful. If
1017 thread_block was unsuccessful, cleanup appropriately.
1019 2013-11-27 Chen Liqin <liqin.gcc@gmail.com>
1021 * config/score/score.h (REG_CLASS_FROM_LETTER): Delete.
1022 (score_char_to_class): Likewise.
1024 2013-11-27 Kenneth Zadeck <zadeck@naturalbridge.com>
1026 * fold-const.c (int_const_binop_1): Make INT_MIN % -1 return 0 with
1027 the overflow bit set.
1029 2013-11-27 Richard Biener <rguenther@suse.de>
1032 * cgraphbuild.c (build_cgraph_edges): Do not build edges
1034 (rebuild_cgraph_edges): Likewise.
1035 * ipa-inline-analysis.c (estimate_function_body_sizes):
1036 Skip internal calls.
1037 * tree-inline.c (estimate_num_insns): Estimate size of internal
1039 (gimple_expand_calls_inline): Do not try inline-expanding
1041 * lto-streamer-in.c (input_cfg): Stream loop safelen,
1042 force_vect and simduid.
1043 (input_struct_function_base): Stream has_force_vect_loops
1044 and has_simduid_loops.
1045 (input_function): Adjust.
1046 * lto-streamer-out.c (output_cfg): Stream loop safelen,
1047 force_vect and simduid.
1048 (output_struct_function_base): Stream has_force_vect_loops
1049 and has_simduid_loops.
1051 2013-11-27 Kai Tietz <ktietz@redhat.com>
1053 * config/i386/winnt.c (i386_pe_section_type_flags): Use const
1056 2013-11-27 Kugan Vivekanandarajah <kuganv@linaro.org>
1058 * doc/tm.texi.in (TARGET_HAS_NO_HW_DIVIDE): Define.
1059 * doc/tm.texi (TARGET_HAS_NO_HW_DIVIDE): Regenerate.
1061 2013-11-27 Marek Polacek <polacek@redhat.com>
1064 * ubsan.c (instrument_null): Use gimple_store_p/gimple_assign_load_p
1065 instead of walk_gimple_op.
1066 (ubsan_pass): Adjust. Call instrument_null only if SANITIZE_NULL.
1068 2013-11-27 Aldy Hernandez <aldyh@redhat.com>
1069 Jakub Jelinek <jakub@redhat.com>
1071 * cgraph.h (enum cgraph_simd_clone_arg_type): New.
1072 (struct cgraph_simd_clone_arg, struct cgraph_simd_clone): New.
1073 (struct cgraph_node): Add simdclone and simd_clones fields.
1074 * config/i386/i386.c (ix86_simd_clone_compute_vecsize_and_simdlen,
1075 ix86_simd_clone_adjust, ix86_simd_clone_usable): New functions.
1076 (TARGET_SIMD_CLONE_COMPUTE_VECSIZE_AND_SIMDLEN,
1077 TARGET_SIMD_CLONE_ADJUST, TARGET_SIMD_CLONE_USABLE): Define.
1078 * doc/tm.texi.in (TARGET_SIMD_CLONE_COMPUTE_VECSIZE_AND_SIMDLEN,
1079 TARGET_SIMD_CLONE_ADJUST, TARGET_SIMD_CLONE_USABLE): Add.
1080 * doc/tm.texi: Regenerated.
1081 * ggc.h (ggc_alloc_cleared_simd_clone_stat): New function.
1082 * ipa-cp.c (determine_versionability): Fail if "omp declare simd"
1083 attribute is present.
1084 * omp-low.c: Include pretty-print.h, ipa-prop.h and tree-eh.h.
1085 (simd_clone_vector_of_formal_parm_types): New function.
1086 (simd_clone_struct_alloc, simd_clone_struct_copy,
1087 simd_clone_vector_of_formal_parm_types, simd_clone_clauses_extract,
1088 simd_clone_compute_base_data_type, simd_clone_mangle,
1089 simd_clone_create, simd_clone_adjust_return_type,
1090 create_tmp_simd_array, simd_clone_adjust_argument_types,
1091 simd_clone_init_simd_arrays): New functions.
1092 (struct modify_stmt_info): New type.
1093 (ipa_simd_modify_stmt_ops, ipa_simd_modify_function_body,
1094 simd_clone_adjust, expand_simd_clones, ipa_omp_simd_clone): New
1096 (pass_data_omp_simd_clone): New variable.
1097 (pass_omp_simd_clone): New class.
1098 (make_pass_omp_simd_clone): New function.
1099 * passes.def (pass_omp_simd_clone): New.
1100 * target.def (TARGET_SIMD_CLONE_COMPUTE_VECSIZE_AND_SIMDLEN,
1101 TARGET_SIMD_CLONE_ADJUST, TARGET_SIMD_CLONE_USABLE): New target hooks.
1102 * target.h (struct cgraph_node, struct cgraph_simd_node): Declare.
1103 * tree-core.h (OMP_CLAUSE_LINEAR_VARIABLE_STRIDE): Document.
1104 * tree.h (OMP_CLAUSE_LINEAR_VARIABLE_STRIDE): Define.
1105 * tree-pass.h (make_pass_omp_simd_clone): New prototype.
1106 * tree-vect-data-refs.c: Include cgraph.h.
1107 (vect_analyze_data_refs): Inline by hand find_data_references_in_loop
1108 and find_data_references_in_bb, if find_data_references_in_stmt
1109 fails, still allow calls to #pragma omp declare simd functions
1110 in #pragma omp simd loops unless they contain data references among
1111 the call arguments or in lhs.
1112 * tree-vect-loop.c (vect_determine_vectorization_factor): Handle
1114 (vect_transform_loop): Allow NULL STMT_VINFO_VECTYPE for calls
1116 * tree-vectorizer.h (enum stmt_vec_info_type): Add
1117 call_simd_clone_vec_info_type.
1118 (struct _stmt_vec_info): Add simd_clone_fndecl field.
1119 (STMT_VINFO_SIMD_CLONE_FNDECL): Define.
1120 * tree-vect-stmts.c: Include tree-ssa-loop.h,
1121 tree-scalar-evolution.h and cgraph.h.
1122 (vectorizable_call): Handle calls without lhs. Assert
1123 !stmt_can_throw_internal instead of failing for it. Don't update
1125 (struct simd_call_arg_info): New.
1126 (vectorizable_simd_clone_call): New function.
1127 (vect_transform_stmt): Call it.
1128 (vect_analyze_stmt): Likewise. Allow NULL STMT_VINFO_VECTYPE for
1130 * ipa-prop.c (ipa_add_new_function): Only call ipa_analyze_node
1131 if cgraph_function_with_gimple_body_p is true.
1133 2013-11-27 Tom de Vries <tom@codesourcery.com>
1134 Marc Glisse <marc.glisse@inria.fr>
1137 * fold-const.c (fold_indirect_ref_1): Don't create out-of-bounds
1139 * gimple-fold.c (gimple_fold_indirect_ref): Same.
1140 * tree-cfg.c (verify_expr): Give error if BIT_FIELD_REF is
1143 2013-11-27 Eric Botcazou <ebotcazou@adacore.com>
1146 * expr.c (emit_group_store): Don't write past the end of the structure.
1147 (store_bit_field): Fix formatting.
1149 2013-11-27 Richard Biener <rguenther@suse.de>
1151 PR tree-optimization/59288
1152 * tree-vect-loop.c (get_initial_def_for_induction): Do not
1153 re-analyze the PHI but use STMT_VINFO_LOOP_PHI_EVOLUTION_PART.
1155 2013-11-27 Marek Polacek <polacek@redhat.com>
1157 * ubsan.c (ubsan_type_descriptor): If varpool_get_node returns NULL
1158 for a decl, recreate that decl. Save into the hash table VAR_DECLs
1159 rather than ADDR_EXPRs.
1161 2013-11-27 Alexander Ivchenko <alexander.ivchenko@intel.com>
1163 * config/ia64/hpux.h (TARGET_LIBC_HAS_FUNCTION): Fix typo.
1165 2013-11-26 David Malcolm <dmalcolm@redhat.com>
1167 * gengtype.c (struct seen_tag): New.
1168 (already_seen_tag): New.
1169 (mark_tag_as_seen): New.
1170 (walk_subclasses): Support having multiple subclasses using the
1171 same tag by tracking which tags have already been seen, and using
1172 this to avoid adding duplicate cases to the "switch" statement.
1173 The call to already_seen_tag introduces an O(N^2) when running
1174 gengtype on N, the number of tags, due to the repeated linear
1175 search, but currently max(N) is relatively small (the number of
1176 GSS codes, which is 26).
1177 (walk_type): Pass in a seen_tag for use by the walk_subclasses
1180 * gimple.def (GIMPLE_OMP_ATOMIC_STORE, GIMPLE_OMP_RETURN): Rename
1181 underlying GSS values for these codes (from GSS_OMP_ATOMIC_STORE to
1182 GSS_OMP_ATOMIC_STORE_LAYOUT) to make clear that although
1183 GIMPLE_OMP_RETURN happens to share the data layout of
1184 GIMPLE_OMP_ATOMIC_STORE, they are not otherwise related.
1185 (GIMPLE_OMP_PARALLEL, GIMPLE_OMP_TARGET): Likewise, rename
1186 underlying GSS value from GSS_OMP_PARALLEL to
1187 GSS_OMP_PARALLEL_LAYOUT to make clear that these gimple codes are
1188 not directly related; they merely share in-memory layout.
1189 (GIMPLE_OMP_SINGLE, GIMPLE_OMP_TEAMS): Likewise, rename GSS values
1190 for these two codes from GSS_OMP_SINGLE to GSS_OMP_SINGLE_LAYOUT.
1192 * gsstruct.def (GSS_OMP_PARALLEL, gimple_statement_omp_parallel):
1194 (GSS_OMP_PARALLEL_LAYOUT, gimple_statement_omp_parallel_layout):
1196 (GSS_OMP_SINGLE, gimple_statement_omp_single): Rename to...
1197 (GSS_OMP_SINGLE_LAYOUT, gimple_statement_omp_single_layout): ...these.
1198 (GSS_OMP_ATOMIC_STORE, gimple_statement_omp_atomic_store): Rename to...
1199 (GSS_OMP_ATOMIC_STORE_LAYOUT, gimple_statement_omp_atomic_store):
1202 * gimple.h (gimple_statement_resx): New subclass of
1203 gimple_statement_eh_ctrl, with the invariant that
1204 stmt->code == GIMPLE_RESX.
1205 (gimple_statement_eh_dispatch): New subclass of
1206 gimple_statement_eh_ctrl, with the invariant that
1207 stmt->code == GIMPLE_EH_DISPATH.
1209 (gimple_statement_omp_parallel): The existing class expressed
1210 a layout (GSS_OMP_PARALLEL), but the codes with that layout
1211 are not all related, so it makes more sense for this class to
1212 express a *code* (GIMPLE_OMP_PARALLEL). GSS_OMP_PARALLEL has
1213 been renamed to GSS_OMP_PARALLEL_LAYOUT to express this, so
1214 rename the existing gimple_statement_omp_parallel class to...
1215 (gimple_statement_omp_parallel_layout): ...this, expressing
1216 a statement of structure layout GSS_OMP_PARALLEL_LAYOUT.
1217 (gimple_statement_omp_taskreg): New subclass of
1218 gimple_statement_omp_parallel_layout, expressing the invariant
1219 that the code is one of GIMPLE_OMP_PARALLEL or GIMPLE_OMP_TASK,
1220 as used by the various gimple_omp_taskreg_ accessors.
1221 (gimple_statement_omp_parallel): Reintroduce this class, this time
1222 as a subclass of gimple_statement_omp_taskreg to express the
1223 invariant stmt->code == GIMPLE_OMP_PARALLEL.
1224 (gimple_statement_omp_target) New class, subclassing
1225 gimple_statement_omp_parallel_layout, to express the invariant
1226 stmt->code == GIMPLE_OMP_TARGET.
1227 (gimple_statement_omp_task): Update to inherit from
1228 gimple_statement_omp_taskreg rather than
1229 gimple_statement_omp_parallel.
1231 (gimple_statement_omp_single): Rename to...
1232 (gimple_statement_omp_single_layout): ...this, expressing the
1233 invariant that the layout is GSS_OMP_SINGLE_LAYOUT.
1234 (gimple_statement_omp_single): ...and reintroduce this name as
1235 a subclass of gimple_statement_omp_single_layout, expressing
1236 the invariant that code == GIMPLE_OMP_SINGLE.
1237 (gimple_statement_omp_teams): New class, subclassing
1238 gimple_statement_omp_single_layout, for the code GIMPLE_OMP_TEAMS.
1240 (gimple_statement_omp_atomic_store): Rename to...
1241 (gimple_statement_omp_atomic_store_layout): ...this, expressing
1242 the invariant that the layout is GSS_OMP_ATOMIC_STORE_LAYOUT.
1243 (gimple_statement_omp_atomic_store): ...and reintroduce this
1244 name as a subclass of gimple_statement_omp_atomic_store_layout
1245 with code == GIMPLE_OMP_ATOMIC_STORE.
1246 (gimple_statement_omp_return): New class, subclassing
1247 gimple_statement_omp_atomic_store_layout for the code
1250 (is_a_helper <gimple_statement_eh_ctrl>::test): Delete.
1251 (is_a_helper <gimple_statement_resx>::test): New.
1252 (is_a_helper <gimple_statement_eh_dispatch>::test): New.
1253 (is_a_helper <gimple_statement_omp_atomic_store>::test): Only
1254 check for GIMPLE_OMP_ATOMIC_STORE, not for GIMPLE_OMP_RETURN.
1255 (is_a_helper <gimple_statement_omp_return>::test): New.
1256 (is_a_helper <gimple_statement_omp_taskreg>::test): New.
1257 (is_a_helper <gimple_statement_omp_parallel>::test): Only check
1258 for GIMPLE_OMP_PARALLEL, not for GIMPLE_OMP_TASK or
1260 (is_a_helper <gimple_statement_omp_target>::test): New.
1261 (is_a_helper <gimple_statement_omp_single>::test): Only check
1262 for GIMPLE_OMP_SINGLE, not for GIMPLE_OMP_TEAMS.
1263 (is_a_helper <gimple_statement_omp_teams>::test): New.
1265 (is_a_helper <const gimple_statement_eh_ctrl>::test): Delete.
1266 (is_a_helper <const gimple_statement_resx>::test): New.
1267 (is_a_helper <const gimple_statement_eh_dispatch>::test): New.
1268 (is_a_helper <const gimple_statement_omp_atomic_store>::test): Only
1269 check for GIMPLE_OMP_ATOMIC_STORE, not for GIMPLE_OMP_RETURN.
1270 (is_a_helper <const gimple_statement_omp_return>::test): New.
1271 (is_a_helper <const gimple_statement_omp_taskreg>::test): New.
1272 (is_a_helper <const gimple_statement_omp_parallel>::test): Only
1273 check for GIMPLE_OMP_PARALLEL, not for GIMPLE_OMP_TASK or
1275 (is_a_helper <const gimple_statement_omp_target>::test): New.
1276 (is_a_helper <const gimple_statement_omp_single>::test): Only
1277 check for GIMPLE_OMP_SINGLE, not for GIMPLE_OMP_TEAMS.
1278 (is_a_helper <const gimple_statement_omp_teams>::test): New.
1280 (gimple_omp_return_set_lhs, gimple_omp_return_lhs,
1281 gimple_omp_return_lhs_ptr): Replace bogus downcasts to
1282 gimple_statement_omp_atomic_store with downcasts to
1283 gimple_statement_omp_return, thus requiring that the code be
1285 (gimple_resx_region, gimple_resx_set_region): Replace bogus
1286 downcasts to gimple_statement_eh_ctrl with downcasts to
1287 gimple_statement_resx, thus requiring that the code be GIMPLE_RESX.
1288 (gimple_eh_dispatch_region, gimple_eh_dispatch_set_region):
1289 Replace bogus downcasts to const gimple_statement_eh_ctrl with
1290 downcasts to gimple_statement_eh_dispatch, thus requiring that
1291 the code be GIMPLE_EH_DISPATCH.
1292 (gimple_omp_taskreg_clauses, gimple_omp_taskreg_clauses_ptr)
1293 gimple_omp_taskreg_set_clauses, gimple_omp_taskreg_child_fn,
1294 gimple_omp_taskreg_child_fn_ptr, gimple_omp_taskreg_set_child_fn,
1295 gimple_omp_taskreg_data_arg, gimple_omp_taskreg_data_arg_ptr,
1296 gimple_omp_taskreg_set_data_arg): Replace bogus downcasts to
1297 gimple_statement_omp_parallel with downcasts to
1298 gimple_statement_omp_taskreg, thus requiring that the code be
1299 either GIMPLE_OMP_PARALLEL or GIMPLE_OMP_TASK.
1300 (gimple_omp_target_clauses, gimple_omp_target_clauses_ptr
1301 gimple_omp_target_set_clauses, gimple_omp_target_child_fn
1302 gimple_omp_target_child_fn_ptr, gimple_omp_target_set_child_fn
1303 gimple_omp_target_data_arg, gimple_omp_target_data_arg_ptr
1304 gimple_omp_target_set_data_arg): Replace bogus downcasts to
1305 gimple_statement_omp_parallel with downcasts to
1306 gimple_statement_omp_target, thus requiring that the code be
1308 (gimple_omp_teams_clauses, gimple_omp_teams_clauses_ptr
1309 gimple_omp_teams_set_clauses): Replace bogus downcasts to
1310 gimple_statement_omp_single with downcasts to
1311 gimple_statement_omp_teams, thus requiring that the code be
1314 * gimple.c (gimple_build_resx): Fix bogus as_a<> to use
1315 gimple_statement_resx.
1316 (gimple_build_eh_dispatch): Fix bogus as_a<> to use
1317 gimple_statement_eh_dispatch.
1319 2013-11-26 Jakub Jelinek <jakub@redhat.com>
1321 PR tree-optimization/59014
1322 * tree-vrp.c (register_edge_assert_for_1): Don't look
1323 through conversions from non-integral types or through
1324 narrowing conversions.
1327 * config/i386/i386.c (device_alg): Fix up formatting.
1328 (ix86_expand_set_or_movmem): Handle max_size < epilogue_size_needed
1329 similarly to count && count < epilogue_size_needed. Fix up
1331 * builtins.c (determine_block_size): Fix comment typo.
1334 * ubsan.c (ubsan_source_location): Don't add any location
1335 to ADDR_EXPR in the ctor. Revert 2013-11-22 change.
1336 (ubsan_create_data): Strip block info from LOC.
1339 * tree-vect-generic.c (optimize_vector_constructor): Don't optimize
1340 if there isn't optab handler for the corresponding vector PLUS_EXPR.
1342 PR rtl-optimization/59166
1343 * ira.c (find_moveable_pseudos): Use DF_REF_REAL_LOC instead of
1344 DF_REF_LOC in validate_change call.
1345 (split_live_ranges_for_shrink_wrap): Likewise.
1348 * omp-low.c (lower_rec_input_clause): For reduction with placeholder
1349 of references to constant size types in simd loops, defer emitting
1350 initializer for the new_var, emit it later on only if not using
1354 * omp-low.c (expand_omp_for_static_chunk): Don't set loop->latch
1355 for the inner loop if collapse_bb is non-NULL.
1356 (expand_omp_simd): Use cont_bb rather than e->dest as latch.
1358 2013-11-26 Yufeng Zhang <yufeng.zhang@arm.com>
1360 * config/arm/arm.c (arm_legitimize_address): Check xop1 is not
1361 a constant immediate before force_reg.
1363 2013-11-26 Richard Biener <rguenther@suse.de>
1365 PR tree-optimization/59245
1366 * tree-vrp.c (set_value_range): Assert that we don't have
1367 overflowed constants (but our infinities).
1368 (set_value_range_to_value): Drop all overflow flags.
1369 (vrp_visit_phi_node): Likewise.
1370 (vrp_visit_assignment_or_call): Use set_value_range_to_value
1371 to set a constant range.
1373 2013-11-26 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
1376 * config/arm/arm.md (*zextendsidi_negsi): New pattern.
1377 * config/arm/arm.c (arm_new_rtx_costs): Initialise cost correctly
1378 for zero_extend case.
1380 2013-11-26 H.J. Lu <hongjiu.lu@intel.com>
1383 * configure.ac (install_gold_as_default): New. Set to yes for
1384 --disable-ld or --enable-gold=default.
1385 (gcc_cv_ld_gold_srcdir): New.
1386 (gcc_cv_ld): Also check in-tree gold if install_gold_as_default is yes.
1387 (ORIGINAL_LD_BFD_FOR_TARGET): New AC_SUBST.
1388 (ORIGINAL_LD_GOLD_FOR_TARGET): Likewise.
1389 * configure: Regenerated.
1391 * exec-tool.in (ORIGINAL_LD_BFD_FOR_TARGET): New variable.
1392 (ORIGINAL_LD_GOLD_FOR_TARGET): Likewise.
1393 (original) [collect-ld && -fuse-ld=bfd]: Set to
1394 $ORIGINAL_LD_BFD_FOR_TARGET.
1395 (original) [collect-ld && -fuse-ld=gold]: Set to
1396 $ORIGINAL_LD_GOLD_FOR_TARGET.
1397 (dir) [collect-ld && ../gold/ld-new]: Set to gold.
1398 (fast_install) [collect-ld && ../gold/ld-new]: Set to yes.
1400 2013-11-26 Terry Guo <terry.guo@arm.com>
1402 * config/arm/arm.c (require_pic_register): Handle high pic base
1403 register for thumb-1.
1404 (arm_load_pic_register): Also initialize high pic base register.
1405 * doc/invoke.texi: Update documentation for option -mpic-register.
1407 2013-11-26 Oleg Endo <olegendo@gcc.gnu.org>
1411 * config/sh/sh.c (max_mov_insn_displacement, disp_addr_displacement):
1412 Prefix function names with 'sh_'. Make them non-static.
1413 * config/sh/sh-protos.h (sh_disp_addr_displacement,
1414 sh_max_mov_insn_displacement): Add declarations.
1415 * config/sh/constraints.md (Q): Reject QImode.
1416 (Sdd): Use match_code "mem".
1417 (Snd): Fix erroneous matching of non-memory operands.
1418 * config/sh/predicates.md (short_displacement_mem_operand): New
1420 (general_movsrc_operand): Disallow PC relative QImode loads.
1421 * config/sh/sh.md (*mov<mode>_reg_reg): Remove it.
1422 (*movqi, *movhi): Merge both insns into...
1423 (*mov<mode>): ... this new insn. Replace generic 'm' constraints with
1424 'Snd' and 'Sdd' constraints. Calculate insn length dynamically based
1425 on the operand types.
1427 2013-11-26 Joern Rennecke <joern.rennecke@embecosm.com>
1429 * config/epiphany/epiphany.c (epiphany_expand_prologue):
1430 Remove unused variable save_config.
1431 (epiphany_compute_frame_size): Avoid signed/unsigned comparison in
1434 2013-11-26 James Greenhalgh <james.greenhalgh@arm.com>
1436 * config/aarch64/arm_neon.h (vtbx1_<psu>8): Emulate behaviour
1437 using other intrinsics.
1438 (vtbx3_<psu>8): Likewise.
1440 2013-11-26 James Greenhalgh <james.greenhalgh@arm.com>
1442 * config/aarch64/aarch64-builtins.c
1443 (aarch64_types_bsl_p_qualifiers): New.
1444 (aarch64_types_bsl_s_qualifiers): Likewise.
1445 (aarch64_types_bsl_u_qualifiers): Likewise.
1446 (TYPES_BSL_P): Likewise.
1447 (TYPES_BSL_S): Likewise.
1448 (TYPES_BSL_U): Likewise.
1449 (BUILTIN_VALLDIF): Likewise.
1450 (BUILTIN_VDQQH): Likewise.
1451 * config/aarch64/aarch64-simd-builtins.def (simd_bsl): New.
1452 * config/aarch64/aarch64-simd.md
1453 (aarch64_simd_bsl<mode>_internal): Handle more modes.
1454 (aarch64_simd_bsl<mode>): Likewise.
1455 * config/aarch64/arm_neon.h
1456 (vbsl<q>_<fpsu><8,16,32,64): Implement using builtins.
1457 * config/aarch64/iterators.md (VALLDIF): New.
1458 (Vbtype): Handle more modes.
1460 2013-11-26 James Greenhalgh <james.greenhalgh@arm.com>
1462 * config/aarch64/aarch64-builtins.c
1463 (aarch64_type_qualifiers): Add qualifier_poly.
1464 (aarch64_build_scalar_type): Also build Poly types.
1465 (aarch64_build_vector_type): Likewise.
1466 (aarch64_build_type): Likewise.
1467 (aarch64_build_signed_type): New.
1468 (aarch64_build_unsigned_type): Likewise.
1469 (aarch64_build_poly_type): Likewise.
1470 (aarch64_init_simd_builtins): Also handle Poly types.
1472 2013-11-26 James Greenhalgh <james.greenhalgh@arm.com>
1474 * config/aarch64/aarch64-builtins.c
1475 (VAR1): Use new naming scheme for aarch64_builtins.
1476 (aarch64_builtin_vectorized_function): Use new aarch64_builtins names.
1478 2013-11-26 Richard Biener <rguenther@suse.de>
1480 PR tree-optimization/59287
1481 * tree-ssa-structalias.c (get_constraint_for_component_ref):
1482 Remove no longer necessary special-casing of union accesses.
1484 2013-11-26 Richard Biener <rguenther@suse.de>
1486 * pretty-print.c (output_buffer::~output_buffer): Really
1489 2013-11-25 Jeff Law <law@redhat.com>
1491 * tree-ssa-threadupdate.c (thread_through_all_blocks): Selectively
1492 invalidate loop information.
1494 2013-11-25 Oleg Endo <olegendo@gcc.gnu.org>
1496 * config/sh/sh.md (doloop_end_split): Add missing SI mode.
1498 2013-11-25 Oleg Endo <olegendo@gcc.gnu.org>
1502 * config/sh/sh_optimize_sett_clrt.cc (struct ccreg_value): Update
1504 (sh_optimize_sett_clrt::find_last_ccreg_values): Check stack of
1505 previously visited basic blocks before recursing instead of only one
1508 2013-11-25 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
1510 * config/aarch64/aarch64.c (cortexa53_tuning): New struct.
1511 * config/aarch64/aarch64-cores.def (cortex-a53):
1512 Use cortexa53 tuning struct.
1514 2013-11-25 Andrew Macleod <amacleod@redhat.com>
1517 * fold-const.c: Include hash-table.h.
1519 2013-11-25 Marek Polacek <polacek@redhat.com>
1522 * ubsan.c (ubsan_create_data): Increase the size of the fields array.
1524 2013-11-25 Richard Biener <rguenther@suse.de>
1526 * tree-dfa.c: Remove unused convert.h include.
1528 2013-11-25 Terry Guo <terry.guo@arm.com>
1530 * doc/invoke.texi (-mslow-flash-data): Document new option.
1531 * config/arm/arm.opt (mslow-flash-data): New option.
1532 * config/arm/arm-protos.h (arm_max_const_double_inline_cost):
1534 * config/arm/arm.h (TARGET_USE_MOVT): Always true when literal pools
1536 (arm_disable_literal_pool): Declare it.
1537 * config/arm/arm.c (arm_disable_literal_pool): New variable.
1538 (arm_option_override): Handle new option.
1539 (thumb2_legitimate_address_p): Don't allow symbol references when
1540 literal pools are disabled.
1541 (arm_max_const_double_inline_cost): New function.
1542 * config/arm/arm.md (types.md): Include it before ...
1543 (use_literal_pool): New attribute.
1544 (enabled): Use new attribute.
1545 (split pattern): Replace symbol+offset with MOVW/MOVT.
1547 2013-11-24 Steven Bosscher <steven@gcc.gnu.org>
1550 Revert previous commit.
1552 2013-11-24 Steven Bosscher <steven@gcc.gnu.org>
1554 * jump.c (reset_insn_reg_label_operand_notes): New function,
1556 (init_label_info): ... here. Reset LABEL_NUSES in cfglayout mode.
1557 * cfgcleanup.c (delete_dead_jump_tables_between): New function,
1559 (delete_dead_jumptables): ... here. Handle cfglayout mode.
1560 (cleanup_cfg): Delete dead jump tables in cfglayout mode if an
1561 expensive CFG cleanup is called for.
1562 * cfgrtl.c (fixup_reorder_chain): Remove BARRIERs from fallthru paths.
1563 (cfg_layout_finalize): Delete dead jump tables before re-building
1565 * ira.c (ira): Rebuild jump labels *after* deleting unreachable
1566 basic blocks, not before.
1567 * loop-init.c (rtl_loop_done): Call for an expensive CFG cleanup.
1569 * modulo-sched.c (sms_schedule): Do not look for BARRIERs in the
1570 insns chain of a scheduling extended basic block, they cannot appear
1571 there in cfglayout mode.
1573 2013-11-24 Tobias Burnus <burnus@net-b.de>
1575 * doc/invoke.texi (-fsanitize=leak): Add link to the wiki page.
1577 2013-11-24 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
1579 * config/rs6000/rs6000.c (rs6000_expand_vec_perm_const_1): Correct
1582 2013-11-24 H.J. Lu <hongjiu.lu@intel.com>
1584 * graphite-sese-to-poly.c: Don't include extra "expr.h".
1586 2013-11-23 Eric Botcazou <ebotcazou@adacore.com>
1588 * cilk-common.c (expand_builtin_cilk_detach): Dereference worker.
1590 2013-11-23 David Edelson <dje.gcc@gmail.com>
1591 Andrew Dixie <andrewd@gentrack.com>
1594 * config/rs6000/aix.h (COLLECT_SHARED_INIT_FUNC): Define.
1595 (COLLECT_SHARED_FINI_FUNC): Define.
1597 * collect2.c (aix_shared_initname): Declare.
1598 (aix_shared_fininame): Declare.
1599 (symkind): Add SYM_AIXI and SYM_AIXD.
1600 (scanfilter_masks): Add SCAN_AIXI and SCAN_AIXD.
1601 (struct names special): Add GLOBAL__AIXI_ and GLOBAL__AIXD_.
1602 (aixlazy_flag): Parse.
1603 (extract_init_priority): SYM_AIXI and SYM_AIXD have highest priority.
1604 (scan_prog_file, COFF): Handle SYM_AIXI and SYM_AIXD.
1606 2013-11-23 David Edelsohn <dje.gcc@gmail.com>
1608 * config/rs6000/rs6000.c (IN_NAMED_SECTION): New macro.
1609 (rs6000_xcoff_select_section): Place decls with stricter alignment
1610 into named sections.
1611 (rs6000_xcoff_unique_section): Allow unique sections for
1612 uninitialized data with strict alignment.
1614 2013-11-23 Jakub Jelinek <jakub@redhat.com>
1616 PR tree-optimization/59154
1617 * tree-ssa-reassoc.c (maybe_optimize_range_tests): When changing
1618 rhs1 of a cast and new_op is invariant, fold_convert it.
1619 * tree-ssa-forwprop.c (ssa_forward_propagate_and_combine): Only call
1620 simplify_conversion_from_bitmask if rhs1 is a SSA_NAME.
1622 2013-11-23 Uros Bizjak <ubizjak@gmail.com>
1625 * config/i386/i386.c (bdesc_multi_arg) <IX86_BUILTIN_VFRCZSS>:
1626 Declare as MULTI_ARG_1_SF instruction.
1627 <IX86_BUILTIN_VFRCZSD>: Decleare as MULTI_ARG_1_DF instruction.
1628 * config/i386/sse.md (*xop_vmfrcz<mode>2): Rename
1629 from *xop_vmfrcz_<mode>.
1630 * config/i386/xopintrin.h (_mm_frcz_ss): Use __builtin_ia32_movss
1631 to merge scalar result with __A.
1632 (_mm_frcz_sd): Use __builtin_ia32_movsd to merge scalar
1635 2013-11-23 Eric Botcazou <ebotcazou@adacore.com>
1637 * gimplify.h (recalculate_side_effects): Delete.
1638 * gimplify.c (recalculate_side_effects): Make static and add comment.
1640 2013-11-23 Richard Sandiford <rdsandiford@googlemail.com>
1642 * config/sh/sh.md: Use nonimmediate_operand rather than general_operand
1643 for the destination of a define_peephole2. Likewise register_operand
1644 rather than arith_reg_operand. Remove constraints from
1647 2013-11-23 Richard Sandiford <rdsandiford@googlemail.com>
1649 * config/mn10300/mn10300-protos.h (mn10300_store_multiple_operation):
1651 (mn10300_store_multiple_operation_p): Declare.
1652 * config/mn10300/mn10300.c (mn10300_store_multiple_operation):
1654 (mn10300_store_multiple_operation_p): ...this and remove mode
1656 * config/mn10300/predicates.md (mn10300_store_multiple_operation):
1659 2013-11-23 Richard Sandiford <rdsandiford@googlemail.com>
1661 * config/bfin/bfin-protos.h (push_multiple_operation): Delete.
1662 (pop_multiple_operation): Delete.
1663 (analyze_push_multiple_operation): Declare.
1664 (analyze_pop_multiple_operation): Declare.
1665 * config/bfin/bfin.c (push_multiple_operation): Rename to...
1666 (analyze_push_multiple_operation): ...this and remove mode argument.
1667 (pop_multiple_operation): Rename to...
1668 (analyze_pop_multiple_operation): ...this and remove mode argument.
1669 * config/bfin/predicates.md (push_multiple_operation): Define.
1670 (pop_multiple_operation): Likewise.
1672 2013-11-23 Alan Modra <amodra@gmail.com>
1674 * config/rs6000/vsx.md (fusion peepholes): Disable when !TARGET_VSX.
1676 2013-11-22 Jakub Jelinek <jakub@redhat.com>
1679 * common.opt (static-liblsan): Add.
1680 * config/gnu-user.h (STATIC_LIBLSAN_LIBS, STATIC_LIBUBSAN_LIBS):
1682 * flag-types.h (enum sanitize_code): Add SANITIZE_LEAK. Renumber
1683 SANITIZE_SHIFT, SANITIZE_DIVIDE, SANITIZE_UNREACHABLE, SANITIZE_VLA,
1685 * opts.c (common_handle_option): Handle -fsanitize=leak.
1686 * gcc.c (ADD_STATIC_LIBLSAN_LIBS, LIBLSAN_SPEC): Define.
1687 (LIBUBSAN_SPEC): Don't test LIBUBSAN_EARLY_SPEC.
1688 (LIBUBSAN_EARLY_SPEC): Remove.
1689 (SANITIZER_EARLY_SPEC): Don't do anything for libubsan.
1690 (SANITIZER_SPEC): Add -fsanitize=leak handling.
1691 (sanitize_spec_function): Handle %sanitize(leak).
1692 * doc/invoke.texi (-static-liblsan, -fsanitize=leak): Document.
1694 2013-11-22 Aldy Hernandez <aldyh@redhat.com>
1695 Jakub Jelinek <jakub@redhat.com>
1697 * ipa.c (symtab_remove_unreachable_nodes): Fix up comment typos.
1698 * ipa-prop.c (get_vector_of_formal_parm_types): Renamed to ...
1699 (ipa_get_vector_of_formal_parm_types): ... this. No longer static.
1700 (ipa_modify_formal_parameters): Adjust caller. Remove
1701 synth_parm_prefix argument. Use operator enum instead of bit fields.
1702 Add assert for properly handling vector of references. Handle
1703 creating brand new parameters.
1704 (ipa_modify_call_arguments): Use operator enum instead of bit
1706 (ipa_combine_adjustments): Same. Assert that IPA_PARM_OP_NEW is not
1708 (ipa_modify_expr, get_ssa_base_param, ipa_get_adjustment_candidate):
1710 (ipa_dump_param_adjustments): Rename reduction to new_decl.
1711 Use operator enum instead of bit fields.
1712 * ipa-prop.h (enum ipa_parm_op): New.
1713 (struct ipa_parm_adjustment): New field op. Rename reduction
1714 to new_decl, new_arg_prefix to arg_prefix and remove remove_param
1716 (ipa_modify_formal_parameters): Remove last argument.
1717 (ipa_get_vector_of_formal_parm_types, ipa_modify_expr,
1718 ipa_get_adjustment_candidate): New prototypes.
1719 * tree-sra.c (turn_representatives_into_adjustments): Use operator
1720 enum. Set arg_prefix.
1721 (get_adjustment_for_base): Use operator enum.
1722 (sra_ipa_modify_expr): Rename to ipa_modify_expr and move to
1724 (sra_ipa_modify_assign): Rename sra_ipa_modify_expr to ipa_modify_expr.
1725 (ipa_sra_modify_function_body): Same. No longer static.
1726 (sra_ipa_reset_debug_stmts): Use operator enum.
1727 (modify_function): Do not pass prefix argument.
1729 2013-11-22 Jakub Jelinek <jakub@redhat.com>
1731 * ubsan.c (ubsan_source_location): Don't crash on unknown locations.
1732 (ubsan_pass): Ignore clobber stmts.
1734 * sanitizer.def (BUILT_IN_UBSAN_HANDLE_MISSING_RETURN): New built-in.
1735 * opts.c (common_handle_option): Add -fsanitize=return.
1736 * flag-types.h (enum sanitize_code): Add SANITIZE_RETURN and
1737 or it into SANITIZE_UNDEFINED.
1739 * sanitizer.def (BUILT_IN_ASAN_BEFORE_DYNAMIC_INIT,
1740 BUILT_IN_ASAN_AFTER_DYNAMIC_INIT): New.
1741 * asan.c (instrument_derefs): Handle also VAR_DECL loads/stores.
1742 Don't instrument accesses to VAR_DECLs which are known to fit
1743 into their bounds and the vars are known to have shadow bytes
1744 indicating allowed access.
1745 (asan_dynamic_init_call): New function.
1746 (asan_add_global): If vnode->dynamically_initialized,
1747 set __has_dynamic_init to 1 instead of 0.
1748 (initialize_sanitizer_builtins): Add BT_FN_VOID_CONST_PTR var.
1749 * asan.h (asan_dynamic_init_call): New prototype.
1750 * cgraph.h (varpool_node): Add dynamically_initialized bitfield.
1752 2013-11-22 Martin Jambor <mjambor@suse.cz>
1754 PR rtl-optimization/10474
1755 * ira.c (interesting_dest_for_shprep_1): New function.
1756 (interesting_dest_for_shprep): Use interesting_dest_for_shprep_1,
1757 also check parallels.
1759 2013-11-22 Jeff Law <law@redhat.com>
1761 * tree-ssa-threadedge.c (record_temporary_equivalence): Handle
1762 NULL for RHS, which we used to invalidate equivalences.
1763 (record_temporary_equivalences_from_phis): New bitmap arguments
1764 and a boolean indicating if we have passed a backedge. If we
1765 have passed a backedge, then set the appropriate bit in the
1766 bitmaps for the SRC & DEST of PHIs creating equivalences.
1767 (invalidate_equivalences, dummy_simplify): New functions.
1768 (cond_arg_set_in_b): Remove.
1769 (record_temporary_equivalences_from_stmts_at_dest): New bitmap
1770 arguments and a boolean indicating if we have passed a backedge.
1771 If we have passed a backedge, then perform invalidations as needed.
1772 (thread_around_empty_blocks): If we have seen a backedge, then
1773 use the dummy simplify routine.
1774 (thread_through_normal_block): Likewise. Pass bitmaps and
1775 backedge status to children. Do not pessimize so much when
1776 traversing backedges in the CFG.
1777 (thread_across_edge): Manage the SRC_MAP/DST_MAP bitmaps.
1778 If we have seen a backedge, then use the dummy simplify routine.
1779 Do not pessimize so much when traversing backedges.
1781 2013-11-22 Hans-Peter Nilsson <hp@axis.com>
1783 * config/cris/cris.c (cris_atomic_align_for_mode): New function.
1784 (TARGET_ATOMIC_ALIGN_FOR_MODE): Define.
1786 2013-11-22 Yuri Rumyantsev <ysrumyan@gmail.com>
1788 * config/i386/i386.c (processor_alias_table): Enable PTA_AES,
1789 PTA_PCLMUL and PTA_RDRND for Silvermont.
1790 * config/i386/driver-i386.c (host_detect_local_cpu): Set up cpu
1793 * doc/invoke.texi: Mention AES, PCLMUL and RDRND for Silvermont.
1795 2013-11-22 Andrew MacLeod <amacleod@redhat.com>
1797 * hooks.h (hook_uint_mode_0): Add Prototype.
1798 * hooks.c (hook_uint_mode_0): New default function.
1799 * target.def (atomic_align_for_mode): New target hook.
1800 * tree.c (build_atomic_base): Add alignment override parameter.
1801 (build_common_tree_nodes): Use atomic alignment override.
1802 * doc/tm.texi.in (TARGET_ATOMIC_ALIGN_FOR_MODE): Define.
1803 * doc/tm.texi (TARGET_ATOMIC_ALIGN_FOR_MODE): Add description.
1805 2013-11-22 Andrew MacLeod <amacleod@redhat.com>
1807 * gimple.h: Remove all includes.
1808 (recalculate_side_effects): Move prototype to gimplify.h.
1809 * Makefile.in (PLUGIN_HEADERS): Add flattened gimple.h includes.
1810 * gengtype.c (open_base_files): Add gimple.h include list.
1811 * gimplify.h (recalculate_side_effects): Relocate prototype here.
1812 * gimple.c: Adjust include list.
1813 (recalculate_side_effects): Move to gimplify.c.
1814 * gimplify.c: Adjust include list.
1815 (recalculate_side_effects): Relocate from gimple.c.
1816 * alias.c: Add required include files removed from gimple.h.
1818 * builtins.c: Likewise.
1819 * calls.c: Likewise.
1820 * cfgexpand.c: Likewise.
1821 * cfgloop.c: Likewise.
1822 * cfgloopmanip.c: Likewise.
1823 * cgraphbuild.c: Likewise.
1824 * cgraph.c: Likewise.
1825 * cgraphclones.c: Likewise.
1826 * cgraphunit.c: Likewise.
1827 * cilk-common.c: Likewise.
1828 * data-streamer.c: Likewise.
1829 * data-streamer-in.c: Likewise.
1830 * data-streamer-out.c: Likewise.
1832 * dwarf2out.c: Likewise.
1833 * emit-rtl.c: Likewise.
1834 * except.c: Likewise.
1836 * fold-const.c: Likewise.
1837 * function.c: Likewise.
1838 * gimple-builder.c: Likewise.
1839 * gimple-expr.c: Likewise.
1840 * gimple-fold.c: Likewise.
1841 * gimple-iterator.c: Likewise.
1842 * gimple-low.c: Likewise.
1843 * gimple-pretty-print.c: Likewise.
1844 * gimple-ssa-isolate-paths.c: Likewise.
1845 * gimple-ssa-strength-reduction.c: Likewise.
1846 * gimple-streamer-in.c: Likewise.
1847 * gimple-streamer-out.c: Likewise.
1848 * gimple-walk.c: Likewise.
1849 * gimplify-me.c: Likewise.
1850 * graphite-blocking.c: Likewise.
1851 * graphite.c: Likewise.
1852 * graphite-clast-to-gimple.c: Likewise.
1853 * graphite-dependences.c: Likewise.
1854 * graphite-interchange.c: Likewise.
1855 * graphite-optimize-isl.c: Likewise.
1856 * graphite-poly.c: Likewise.
1857 * graphite-scop-detection.c: Likewise.
1858 * graphite-sese-to-poly.c: Likewise.
1859 * internal-fn.c: Likewise.
1861 * ipa-cp.c: Likewise.
1862 * ipa-devirt.c: Likewise.
1863 * ipa-inline-analysis.c: Likewise.
1864 * ipa-inline.c: Likewise.
1865 * ipa-profile.c: Likewise.
1866 * ipa-prop.c: Likewise.
1867 * ipa-pure-const.c: Likewise.
1868 * ipa-reference.c: Likewise.
1869 * ipa-split.c: Likewise.
1870 * ipa-utils.c: Likewise.
1871 * langhooks.c: Likewise.
1872 * lto-cgraph.c: Likewise.
1873 * lto-compress.c: Likewise.
1874 * lto-opts.c: Likewise.
1875 * lto-section-in.c: Likewise.
1876 * lto-section-out.c: Likewise.
1877 * lto-streamer.c: Likewise.
1878 * lto-streamer-in.c: Likewise.
1879 * lto-streamer-out.c: Likewise.
1880 * omp-low.c: Likewise.
1881 * opts-global.c: Likewise.
1882 * passes.c: Likewise.
1883 * predict.c: Likewise.
1884 * profile.c: Likewise.
1887 * stor-layout.c: Likewise.
1888 * symtab.c: Likewise.
1889 * targhooks.c: Likewise.
1890 * toplev.c: Likewise.
1891 * tracer.c: Likewise.
1892 * trans-mem.c: Likewise.
1893 * tree-affine.c: Likewise.
1895 * tree-call-cdce.c: Likewise.
1896 * tree-cfg.c: Likewise.
1897 * tree-cfgcleanup.c: Likewise.
1898 * tree-chrec.c: Likewise.
1899 * tree-complex.c: Likewise.
1900 * tree-data-ref.c: Likewise.
1901 * tree-dfa.c: Likewise.
1902 * tree-eh.c: Likewise.
1903 * tree-emutls.c: Likewise.
1904 * tree-if-conv.c: Likewise.
1905 * tree-inline.c: Likewise.
1906 * tree-into-ssa.c: Likewise.
1907 * tree-loop-distribution.c: Likewise.
1908 * tree-nested.c: Likewise.
1909 * tree-nrv.c: Likewise.
1910 * tree-object-size.c: Likewise.
1911 * tree-outof-ssa.c: Likewise.
1912 * tree-parloops.c: Likewise.
1913 * tree-phinodes.c: Likewise.
1914 * tree-predcom.c: Likewise.
1915 * tree-pretty-print.c: Likewise.
1916 * tree-profile.c: Likewise.
1917 * tree-scalar-evolution.c: Likewise.
1918 * tree-sra.c: Likewise.
1919 * tree-ssa-address.c: Likewise.
1920 * tree-ssa-alias.c: Likewise.
1921 * tree-ssa.c: Likewise.
1922 * tree-ssa-ccp.c: Likewise.
1923 * tree-ssa-coalesce.c: Likewise.
1924 * tree-ssa-copy.c: Likewise.
1925 * tree-ssa-copyrename.c: Likewise.
1926 * tree-ssa-dce.c: Likewise.
1927 * tree-ssa-dom.c: Likewise.
1928 * tree-ssa-dse.c: Likewise.
1929 * tree-ssa-forwprop.c: Likewise.
1930 * tree-ssa-ifcombine.c: Likewise.
1931 * tree-ssa-live.c: Likewise.
1932 * tree-ssa-loop.c: Likewise.
1933 * tree-ssa-loop-ch.c: Likewise.
1934 * tree-ssa-loop-im.c: Likewise.
1935 * tree-ssa-loop-ivcanon.c: Likewise.
1936 * tree-ssa-loop-ivopts.c: Likewise.
1937 * tree-ssa-loop-manip.c: Likewise.
1938 * tree-ssa-loop-niter.c: Likewise.
1939 * tree-ssa-loop-prefetch.c: Likewise.
1940 * tree-ssa-loop-unswitch.c: Likewise.
1941 * tree-ssa-math-opts.c: Likewise.
1942 * tree-ssanames.c: Likewise.
1943 * tree-ssa-operands.c: Likewise.
1944 * tree-ssa-phiopt.c: Likewise.
1945 * tree-ssa-phiprop.c: Likewise.
1946 * tree-ssa-pre.c: Likewise.
1947 * tree-ssa-propagate.c: Likewise.
1948 * tree-ssa-reassoc.c: Likewise.
1949 * tree-ssa-sccvn.c: Likewise.
1950 * tree-ssa-sink.c: Likewise.
1951 * tree-ssa-strlen.c: Likewise.
1952 * tree-ssa-structalias.c: Likewise.
1953 * tree-ssa-tail-merge.c: Likewise.
1954 * tree-ssa-ter.c: Likewise.
1955 * tree-ssa-threadedge.c: Likewise.
1956 * tree-ssa-threadupdate.c: Likewise.
1957 * tree-ssa-uncprop.c: Likewise.
1958 * tree-ssa-uninit.c: Likewise.
1959 * tree-stdarg.c: Likewise.
1960 * tree-streamer.c: Likewise.
1961 * tree-streamer-in.c: Likewise.
1962 * tree-streamer-out.c: Likewise.
1963 * tree-switch-conversion.c: Likewise.
1964 * tree-tailcall.c: Likewise.
1965 * tree-vect-data-refs.c: Likewise.
1966 * tree-vect-generic.c: Likewise.
1967 * tree-vect-loop.c: Likewise.
1968 * tree-vect-loop-manip.c: Likewise.
1969 * tree-vectorizer.c: Likewise.
1970 * tree-vect-patterns.c: Likewise.
1971 * tree-vect-slp.c: Likewise.
1972 * tree-vect-stmts.c: Likewise.
1973 * tree-vrp.c: Likewise.
1975 * ubsan.c: Likewise.
1976 * value-prof.c: Likewise.
1977 * varpool.c: Likewise.
1978 * var-tracking.c: Likewise.
1979 * vtable-verify.c: Likewise.
1980 * config/darwin.c: Likewise.
1981 * config/aarch64/aarch64-builtins.c: Likewise.
1982 * config/aarch64/aarch64.c: Likewise.
1983 * config/alpha/alpha.c: Likewise.
1984 * config/i386/i386.c: Likewise.
1985 * config/i386/winnt.c: Likewise.
1986 * config/ia64/ia64.c: Likewise.
1987 * config/m32c/m32c.c: Likewise.
1988 * config/mep/mep.c: Likewise.
1989 * config/mips/mips.c: Likewise.
1990 * config/rs6000/rs6000.c: Likewise.
1991 * config/s390/s390.c: Likewise.
1992 * config/sh/sh.c: Likewise.
1993 * config/sparc/sparc.c: Likewise.
1994 * config/spu/spu.c: Likewise.
1995 * config/stormy16/stormy16.c: Likewise.
1996 * config/tilegx/tilegx.c: Likewise.
1997 * config/tilepro/tilepro.c: Likewise.
1998 * config/xtensa/xtensa.c: Likewise.
2000 2013-11-22 Richard Earnshaw <rearnsha@arm.com>
2003 * arm.md (negdi_extendsidi): Fix invalid split.
2005 2013-11-22 Alex Velenko <Alex.Velenko@arm.com>
2007 * config/aarch64/arm_neon.h (vmov_n_f32): Implemented in C.
2008 (vmov_n_f64): Likewise.
2009 (vmov_n_p8): Likewise.
2010 (vmov_n_p16): Likewise.
2011 (vmov_n_s8): Likewise.
2012 (vmov_n_s16): Likewise.
2013 (vmov_n_s32): Likewise.
2014 (vmov_n_s64): Likewise.
2015 (vmov_n_u8): Likewise.
2016 (vmov_n_u16): Likewise.
2017 (vmov_n_u32): Likewise.
2018 (vmov_n_u64): Likewise.
2019 (vmovq_n_f32): Likewise.
2020 (vmovq_n_f64): Likewise.
2021 (vmovq_n_p8): Likewise.
2022 (vmovq_n_p16): Likewise.
2023 (vmovq_n_s8): Likewise.
2024 (vmovq_n_s16): Likewise.
2025 (vmovq_n_s32): Likewise.
2026 (vmovq_n_s64): Likewise.
2027 (vmovq_n_u8): Likewise.
2028 (vmovq_n_u16): Likewise.
2029 (vmovq_n_u32): Likewise.
2030 (vmovq_n_u64): Likewise.
2032 2013-11-22 Tejas Belagod <tejas.belagod@arm.com>
2034 * config/aarch64/aarch64-simd.md (vec_pack_trunc_<mode>,
2035 vec_pack_trunc_v2df, vec_pack_trunc_df): Swap for big-endian.
2036 (reduc_<sur>plus_<mode>): Factorize V2DI into this.
2037 (reduc_<sur>plus_<mode>): Change this to reduc_splus_<mode> for floats
2038 and also change to float UNSPEC.
2039 (reduc_maxmin_uns>_<mode>): Remove V2DI.
2040 * config/aarch64/arm_neon.h (vaddv<q>_<suf><8,16,32,64>,
2041 vmaxv<q>_<suf><8,16,32,64>, vminv<q>_<suf><8,16,32,64>): Fix up scalar
2042 result access for big-endian.
2043 (__LANE0): New macro used to fix up lane access of 'across-lanes'
2044 intrinsics for big-endian.
2045 * config/aarch64/iterators.md (VDQV): Add V2DI.
2047 (vp): New mode attribute.
2049 2013-11-22 Tejas Belagod <tejas.belagod@arm.com>
2051 * config/aarch64/aarch64-simd.md (vec_pack_trunc_<mode>,
2052 vec_pack_trunc_v2df, vec_pack_trunc_df): Swap source ops for
2055 2013-11-22 Tejas Belagod <tejas.belagod@arm.com>
2057 * config/aarch64/aarch64-simd.md (aarch64_simd_vec_set<mode>): Adjust
2058 for big-endian element order.
2059 (aarch64_simd_vec_setv2di): Likewise.
2060 (*aarch64_get_lane_extend<GPI:mode><VDQQH:mode>,
2061 *aarch64_get_lane_zero_extendsi<mode>, aarch64_get_lane): Likewise.
2062 (vec_extract): Expand using aarch64_get_lane.
2063 * config/aarch64/aarch64.h (ENDIAN_LANE_N): New.
2065 2013-11-22 Tejas Belagod <tejas.belagod@arm.com>
2067 * config/aarch64/aarch64-simd.md (*aarch64_simd_mov<mode>): Fix loads
2068 and stores to be ABI compliant.
2070 2013-11-22 David Malcolm <dmalcolm@redhat.com>
2072 * input.h (input_line): Remove.
2073 (input_filename): Likewise.
2074 (in_system_header): Likewise.
2075 * tree.h (EXPR_LOC_OR_HERE): Remove.
2076 * config/bfin/bfin.c (output_file_start): Remove use of
2077 input_filename macro.
2078 * builtins.c (c_strlen): Remove use of EXPR_LOC_OR_HERE macro.
2079 * gimplify.c (internal_get_tmp_var): Likewise.
2080 EXPR_LOC_OR_HERE macro.
2081 (shortcut_cond_expr): Likewise.
2082 * tree-diagnostic.c (diagnostic_report_current_function): Remove
2083 use of input_filename macro.
2084 * tree.c (get_file_function_name): Likewise.
2086 2013-11-22 Kenneth Zadeck <zadeck@naturalbridge.com>
2088 * store-layout.c (place-field): Fix hwi test and accessor mismatch.
2090 2013-11-22 Jakub Jelinek <jakub@redhat.com>
2092 * expr.c (store_constructor): Allow CONSTRUCTOR with VECTOR_TYPE
2093 (same sized) elements even if the type of the CONSTRUCTOR has
2094 vector mode and target is a REG.
2096 2013-11-22 Richard Biener <rguenther@suse.de>
2099 2013-11-21 Richard Biener <rguenther@suse.de>
2101 * tree-ssa-loop-ch.c (copy_loop_headers): Decrement
2102 nb_iterations_upper_bound by one.
2104 2013-11-22 H.J. Lu <hongjiu.lu@intel.com>
2106 * config/i386/i386.c (processor_alias_table): Enable PTA_POPCNT
2109 * doc/invoke.texi: Mention POPCNT for corei7, corei7-avx,
2110 core-avx-i, core-avx2 and slm.
2112 2013-11-22 Eric Botcazou <ebotcazou@adacore.com>
2114 * print-rtl.c (print_rtx) <case MEM>: Output a space if no MEM_EXPR.
2116 2013-11-22 Richard Sandiford <rdsandiford@googlemail.com>
2118 * config/m32c/cond.md (stzx_16): Use register_operand for operand 0.
2119 (stzx_24_<mode>): Likewise mra_operand.
2121 2013-11-22 Jeff Law <law@redhat.com>
2123 * tree-ssa-threadupdate.c: Include tree-cfg.h and tree-pass.h
2124 (thread_block_1): Do not cancel jump threads which go from
2125 inside a loop, through the header, then back inside the loop.
2126 (bb_ends_with_multiway_branch): New function.
2127 (thread_through_all_blocks): Handle threading cases which start
2128 in a loop through the loop header to a point in the loop.
2130 * tree-ssa-threadedge.c (thread_across_edge): Mark the start of the
2131 jump thread path properly.
2133 2013-11-22 Trevor Saunders <tsaunders@mozilla.com>
2135 * vec.h (auto_vec): New class.
2136 * cfganal.c, cfgloop.c, cgraphunit.c, config/i386/i386.c, dwarf2out.c,
2137 function.c, genautomata.c, gimple.c, haifa-sched.c, ipa-inline.c,
2138 ira-build.c, loop-unroll.c, omp-low.c, ree.c, trans-mem.c,
2139 tree-call-cdce.c, tree-eh.c, tree-if-conv.c, tree-into-ssa.c,
2140 tree-loop-distribution.c, tree-predcom.c, tree-sra.c,
2141 tree-sssa-forwprop.c, tree-ssa-loop-manip.c, tree-ssa-pre.c,
2142 tree-ssa-reassoc.c, tree-ssa-sccvn.c, tree-ssa-structalias.c,
2143 tree-vect-loop.c, tree-vect-stmts.c: Use auto_vec and stack_vec as
2144 appropriate instead of vec for local variables.
2146 2013-11-21 Teresa Johnson <tejohnson@google.com>
2149 * cfgcleanup.c (outgoing_edges_match): Walk up past note instructions
2150 not understood by old_insns_match_p.
2152 2013-11-21 Bill Schmidt <wschmidt@vnet.ibm.com>
2154 * config/rs6000/vector.md (vec_pack_trunc_v2df): Revert previous
2155 little endian change.
2156 (vec_pack_sfix_trunc_v2df): Likewise.
2157 (vec_pack_ufix_trunc_v2df): Likewise.
2158 * config/rs6000/rs6000.c (rs6000_expand_interleave): Correct
2159 double checking of endianness.
2161 2013-11-22 Jakub Jelinek <jakub@redhat.com>
2163 * tree-vect-generic.c (optimize_vector_constructor): New function.
2164 (expand_vector_operations_1): Call it.
2166 2013-11-21 Uros Bizjak <ubizjak@gmail.com>
2168 * config/i386/i386.c (ix86_expand_special_args_builtin): Use
2169 ix86_zero_extend_to_Pmode where appropriate.
2170 (ix86_expand_builtin): Ditto.
2172 2013-11-21 Cary Coutant <ccoutant@google.com>
2174 * dwarf2out.c (want_pubnames): Don't do pubnames for -g1.
2175 (add_linkage_name): Don't add linkage name for -g1.
2176 (decls_for_scope): Process subblocks for -g1.
2177 (dwarf2out_source_line): Output line tables for -g1.
2178 (dwarf2out_finish): Likewise.
2179 * tree-ssa-live.c (remove_unused_scope_block_p): Don't prune
2180 unused scopes for -g1.
2181 * opts.c (common_handle_option): Handle -g same as -g2.
2182 * doc/invoke.texi: Update description for -g1.
2184 2013-11-21 Peter Bergner <bergner@vnet.ibm.com>
2186 * doc/extend.texi: Document htm builtins.
2188 2013-11-21 Jeff Law <law@redhat.com>
2190 PR tree-optimization/59221
2191 * tree-ssa-threadedge.c (thread_across_edge): Properly manage
2192 temporary equivalences when threading through joiner blocks.
2194 2013-11-21 Joseph Myers <joseph@codesourcery.com>
2196 PR rtl-optimization/55950
2197 * real.c (real_sqrt): Remove function.
2198 * real.h (real_sqrt): Remove prototype.
2199 * simplify-rtx.c (simplify_const_unary_operation): Do not fold
2200 SQRT using real_sqrt.
2202 2013-11-21 Richard Biener <rguenther@suse.de>
2204 PR tree-optimization/59058
2205 * tree-scalar-evolution.h (number_of_exit_cond_executions): Remove.
2206 * tree-scalar-evolution.c (number_of_exit_cond_executions): Likewise.
2207 * tree-vectorizer.h (LOOP_PEELING_FOR_ALIGNMENT): Rename to ...
2208 (LOOP_VINFO_PEELING_FOR_ALIGNMENT): ... this.
2209 (NITERS_KNOWN_P): Fold into ...
2210 (LOOP_VINFO_NITERS_KNOWN_P): ... this.
2211 (LOOP_VINFO_PEELING_FOR_NITER): Add.
2212 * tree-vect-loop-manip.c (vect_gen_niters_for_prolog_loop):
2213 Use LOOP_VINFO_PEELING_FOR_ALIGNMENT.
2214 (vect_do_peeling_for_alignment): Re-use precomputed niter
2215 instead of re-emitting it.
2216 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment):
2217 Use LOOP_VINFO_PEELING_FOR_ALIGNMENT.
2218 * tree-vect-loop.c (vect_get_loop_niters): Use
2219 number_of_latch_executions.
2220 (new_loop_vec_info): Initialize LOOP_VINFO_PEELING_FOR_NITER.
2221 (vect_analyze_loop_form): Simplify.
2222 (vect_analyze_loop_operations): Move epilogue peeling code ...
2223 (vect_analyze_loop_2): ... here and adjust it to compute
2224 LOOP_VINFO_PEELING_FOR_NITER.
2225 (vect_estimate_min_profitable_iters): Use
2226 LOOP_VINFO_PEELING_FOR_ALIGNMENT.
2227 (vect_build_loop_niters): Emit on the preheader.
2228 (vect_generate_tmps_on_preheader): Likewise.
2229 (vect_transform_loop): Use LOOP_VINFO_PEELING_FOR_NITER instead
2230 of recomputing it. Adjust.
2232 2013-11-21 Richard Biener <rguenther@suse.de>
2234 * tree-vectorizer.h (LOC, UNKNOWN_LOC, EXPR_LOC, LOC_FILE,
2235 LOC_LINE): Remove wrappers and fix all users.
2236 (struct _loop_vec_info): Remove loop_line_number member.
2237 (LOOP_VINFO_LOC): Remove.
2238 * tree-parloops.c, tree-vect-loop-manip.c, tree-vect-slp.c,
2239 tree-vectorizer.c: Fix users of LOC, UNKNOWN_LOC, EXPR_LOC, LOC_FILE
2242 2013-11-21 Richard Biener <rguenther@suse.de>
2244 * tree-ssa-forwprop.c (simplify_vce): New function.
2245 (ssa_forward_propagate_and_combine): Call it.
2247 2013-11-21 Richard Biener <rguenther@suse.de>
2249 * tree-vect-loop-manip.c (vect_build_loop_niters,
2250 vect_generate_tmps_on_preheader): Move ...
2251 * tree-vect-loop.c (vect_build_loop_niters,
2252 vect_generate_tmps_on_preheader): ... here and simplify.
2253 (vect_transform_loop): Call them here and pass down results
2255 * tree-vect-loop-manip.c (vect_do_peeling_for_loop_bound):
2256 Get niter variables from caller.
2257 (vect_do_peeling_for_alignment): Likewise.
2258 * tree-vectorizer.h (vect_generate_tmps_on_preheader): Remove.
2259 (vect_do_peeling_for_loop_bound, vect_do_peeling_for_alignment):
2262 2013-11-21 Richard Biener <rguenther@suse.de>
2264 * tree-ssa-loop-ch.c (copy_loop_headers): Decrement
2265 nb_iterations_upper_bound by one.
2267 2013-11-21 Richard Biener <rguenther@suse.de>
2269 PR tree-optimization/59058
2270 * tree-loop-distribution.c (struct partition_s): Add plus_one member.
2271 (build_size_arg_loc): Apply niter adjustment here.
2272 (generate_memset_builtin): Adjust.
2273 (generate_memcpy_builtin): Likewise.
2274 (classify_partition): Do not use number_of_exit_cond_executions
2275 but record whether niter needs to be adjusted.
2277 2013-11-21 Eric Botcazou <ebotcazou@adacore.com>
2279 * tree-ssa-tail-merge.c (stmt_local_def): Return false if the statement
2282 2013-11-21 Oleg Endo <olegendo@gcc.gnu.org>
2285 * config/sh/sh_optimize_sett_clrt.cc: New SH specific RTL pass.
2286 * config/sh/sh.c (register_sh_passes): Add sh_optimize_sett_clrt pass.
2287 * config/sh/sh/t-sh (sh_optimize_sett_clrt pass.o): New entry.
2288 * config.gcc (sh[123456789lbe]*-*-* | sh-*-*): Add
2289 sh_optimize_sett_clrt pass.o to extra_objs.
2291 2013-11-20 David Malcolm <dmalcolm@redhat.com>
2293 * cfg.c (dump_edge_info): Remove redundant comment.
2294 * cfgcleanup.c (outgoing_edges_match): Reword reference to
2295 EXIT_BLOCK_PTR in comment.
2296 (try_optimize_cfg): Likewise.
2297 * cfgrtl.c (last_bb_in_partition): Likewise.
2298 * cgraph.c (cgraph_node_cannot_return): Likewise.
2299 * function.c (thread_prologue_and_epilogue_insns): Likewise.
2300 * graphite-scop-detection.c (scopdet_basic_block_info): Likewise.
2301 * ipa-split.c (consider_split): Likewise.
2302 * profile.c (find_spanning_tree): Likewise.
2303 * sched-int.h (common_sched_info_def.add_block): Likewise.
2304 * dominance.c (calc_dfs_tree_nonrec): Reword references in
2305 comments to now removed ENTRY_BLOCK_PTR and EXIT_BLOCK_PTR macros.
2306 * tree-cfgcleanup.c (cleanup_control_flow_bb): Reword references
2307 in comments to now removed ENTRY_BLOCK_PTR macro.
2308 (tree_forwarder_block_p): Reword reference in comment to
2310 * tree-inline.c (copy_cfg_body): Reword references in comments to
2311 now removed ENTRY_BLOCK_PTR macro.
2312 * tree-ssa-propagate.c (ssa_prop_init): Likewise.
2313 * tree-scalar-evolution.h ( block_before_loop): Likewise. Add
2314 a comma to the comment to clarify the meaning.
2316 2013-11-20 Andrew MacLeod <amacleod@redhat.com>
2318 * gimplify.h (gimplify_hasher:typed_free_remove, struct gimplify_ctx):
2320 (free_gimplify_stack): Add prototype.
2321 * gimplify.c (gimplify_hasher:typed_free_remove): Relocate here.
2322 (struct gimplify_ctx): Relocate here.
2323 (gimplify_ctxp): Make static.
2324 (ctx_pool, ctx_alloc, ctx_free, free_gimplify_stack): New. Manage a
2325 list of struct gimplify_ctx.
2326 (push_gimplify_context): Add default parameters and allocate a struct
2328 (pop_gimplify_context): Free a struct back to the pool.
2329 (gimplify_scan_omp_clauses, gimplify_omp_parallel, gimplify_omp_task,
2330 gimplify_omp_workshare, gimplify_transaction, gimplify_body): Don't
2331 use a local 'struct gimplify_ctx'.
2332 * cgraphunit.c (expand_all_functions): call free_gimplify_stack.
2333 * gimplify-me.c (force_gimple_operand_1, gimple_regimplify_operands):
2335 * omp-low.c (lower_omp_sections, lower_omp_single, lower_omp_master,
2336 lower_omp_ordered, lower_omp_critical, lower_omp_for,
2337 create_task_copyfn, lower_omp_taskreg, lower_omp_target,
2338 lower_omp_teams, execute_lower_omp): Likewise.
2339 * gimple-fold.c (gimplify_and_update_call_from_tree): Likewise.
2340 * tree-inline.c (optimize_inline_calls): Likewise.
2342 2013-11-20 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
2344 * config/rs6000/vsx.md (vsx_set_<mode>): Adjust for little endian.
2345 (vsx_extract_<mode>): Likewise.
2346 (*vsx_extract_<mode>_one_le): New LE variant on
2347 *vsx_extract_<mode>_zero.
2348 (vsx_extract_v4sf): Adjust for little endian.
2350 2013-11-20 Vladimir Makarov <vmakarov@redhat.com>
2352 PR rtl-optimization/59133
2353 * lra.c (expand_reg_data): Add new argument. Set up ALL_REGS for
2355 (lra_create_new_reg_with_unique_value): Pass new argument value.
2356 (lra_emit_add, lra_emit_move): Ditto.
2357 * lra-constraints.c (in_class_p): Add check for move for a new insn.
2358 (change_class): Rename to lra_change_class. Move to lra-int.h.
2359 (get_reload_reg, narrow_reload_pseudo_class): Adjust calls of
2361 (process_addr_reg, process_addr): Ditto.
2362 (curr_insn_transform): Ditto. Add check on old pseudo for
2364 * lra-int.h (lra_get_regno_hard_regno): Move below.
2365 (lra_change_class): Renamed change_class from lra.c.
2367 2013-11-20 David Malcolm <dmalcolm@redhat.com>
2369 * gdbhooks.py (VecPrinter.children): Don't attempt to iterate
2370 the children of a NULL pointer.
2372 2013-11-20 Robert Suchanek <Robert.Suchanek@imgtec.com>
2374 * lra.c (lra): Set lra_in_progress before check_rtl call.
2375 * recog.c (insn_invalid_p): Add !lra_in_progress to prevent
2376 adding clobber regs when LRA is running.
2378 2013-11-20 Maciej W. Rozycki <macro@codesourcery.com>
2380 * config/mips/mips.h (ISA_HAS_FP4): Remove TARGET_FLOAT64
2381 restriction for ISA_MIPS32R2.
2382 (ISA_HAS_LXC1_SXC1): New macro.
2383 (ISA_HAS_FP_MADD4_MSUB4): Remove ISA_MIPS32R2 special-casing.
2384 (ISA_HAS_NMADD4_NMSUB4): Likewise.
2385 (ISA_HAS_FP_RECIP_RSQRT): Likewise.
2386 (ISA_HAS_PREFETCHX): Redefine in terms of ISA_HAS_FP4.
2387 * config/mips/mips.md (*<ANYF:loadx>_<P:mode>): Use
2388 ISA_HAS_LXC1_SXC1 rather than ISA_HAS_FP4.
2389 (*<ANYF:storex>_<P:mode>): Likewise.
2391 2013-11-20 Maciej W. Rozycki <macro@codesourcery.com>
2393 * config/mips/mips.h (ISA_HAS_FP_RECIP_RSQRT): New macro.
2394 * config/mips/mips.c (mips_rtx_costs) <DIV>: Check for
2395 ISA_HAS_FP_RECIP_RSQRT rather than ISA_HAS_FP4.
2396 * config/mips/mips.md (recip_condition): Remove mode attribute.
2397 (div<mode>3): Use ISA_HAS_FP_RECIP_RSQRT rather than
2399 (*recip<mode>3, *rsqrt<mode>a, *rsqrt<mode>b): Likewise.
2401 2013-11-20 Eric Botcazou <ebotcazou@adacore.com>
2404 * config/sparc/sparc.c (sparc_fold_builtin) <case CODE_FOR_pdist_vis>:
2405 Make sure neg2_ovf is set before being used.
2407 2013-11-20 Basile Starynkevitch <basile@starynkevitch.net>
2409 * plugin.def: Add comment about register_callback and
2410 invoke_plugin_callbacks_full.
2412 * plugin.c (register_callback, invoke_plugin_callbacks_full):
2413 Handle PLUGIN_INCLUDE_FILE event.
2415 2013-11-20 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
2417 * config/rs6000/rs6000.c (rs6000_cannot_change_mode_class): Do not
2418 allow subregs of TDmode in FPRs of smaller size in little-endian.
2419 (rs6000_split_multireg_move): When splitting an access to TDmode
2420 in FPRs, do not use simplify_gen_subreg.
2422 2013-11-20 Joseph Myers <joseph@codesourcery.com>
2425 * real.c: Remove comment about decimal string conversion and
2427 (real_from_string): Use MPFR to convert nonzero decimal constant
2430 2013-11-20 Eric Botcazou <ebotcazou@adacore.com>
2432 * config/arm/arm.c (arm_dwarf_register_span): Take into account the
2433 endianness of the D registers for the legacy encodings.
2435 2013-11-20 Richard Earnshaw <rearnsha@arm.com>
2437 PR rtl-optimization/54300
2438 * regcprop.c (copyprop_hardreg_forward_1): Ensure any unused
2439 outputs in a single-set are killed from the value chains.
2441 2013-11-20 Ilya Enkovich <ilya.enkovich@intel.com>
2443 * cgraph.h (varpool_node): Add need_bounds_init field.
2444 * lto-cgraph.c (lto_output_varpool_node): Output
2445 need_bounds_init value.
2446 (input_varpool_node): Read need_bounds_init value.
2447 * varpool.c (dump_varpool_node): Dump need_bounds_init field.
2449 2013-11-20 Jan Hubicka <jh@suse.cz>
2451 * opts.c (finish_options): Imply -ffat-lto-objects with
2452 -fno-use-linker-plugin.
2453 * common.opt (fuse-linker-plugin): Add var.
2455 2013-11-20 Ilya Enkovich <ilya.enkovich@intel.com>
2457 * dbxout.c (dbxout_type): Ignore POINTER_BOUNDS_TYPE.
2458 * dwarf2out.c (gen_subprogram_die): Ignore bound args.
2459 (gen_type_die_with_usage): Skip pointer bounds.
2460 (dwarf2out_global_decl): Likewise.
2462 2013-11-20 James Greenhalgh <james.greenhalgh@arm.com>
2464 * config/aarch64/aarch64.md: Remove "mode" and "mode2" attributes
2467 2013-11-20 Yuri Rumyantsev <ysrumyan@gmail.com>
2470 * config/i386/i386.c (ix86_option_override_internal): Add missed
2471 argument prefix for 'ix86_fpmath'.
2472 * config/i386/ssemath.h: Add missed definition of
2473 TARGET_FPMATH_DEFAULT_P macros.
2475 2013-11-20 Kenneth Zadeck <zadeck@naturalbridge.com>
2476 Mike Stump <mikestump@comcast.net>
2477 Richard Sandiford <rdsandiford@googlemail.com>
2479 * alias.c (ao_ref_from_mem): Use tree_to_shwi and tree_to_uhwi
2480 instead of TREE_INT_CST_LOW, in cases where there is a protecting
2481 tree_fits_shwi_p or tree_fits_uhwi_p.
2482 * builtins.c (fold_builtin_powi): Likewise.
2483 * config/epiphany/epiphany.c (epiphany_special_round_type_align):
2485 * dbxout.c (dbxout_symbol): Likewise.
2486 * expr.c (expand_expr_real_1): Likewise.
2487 * fold-const.c (fold_single_bit_test, fold_plusminus_mult_expr)
2488 (fold_binary_loc): Likewise.
2489 * gimple-fold.c (fold_const_aggregate_ref_1): Likewise.
2490 * gimple-ssa-strength-reduction.c (stmt_cost): Likewise.
2491 * omp-low.c (lower_omp_for_lastprivate): Likewise.
2492 * simplify-rtx.c (delegitimize_mem_from_attrs): Likewise.
2493 * stor-layout.c (compute_record_mode): Likewise.
2494 * tree-cfg.c (verify_expr): Likewise.
2495 * tree-dfa.c (get_ref_base_and_extent): Likewise.
2496 * tree-pretty-print.c (dump_array_domain): Likewise.
2497 * tree-sra.c (build_user_friendly_ref_for_offset): Likewise.
2498 * tree-ssa-ccp.c (fold_builtin_alloca_with_align): Likewise.
2499 * tree-ssa-loop-ivopts.c (get_loop_invariant_expr_id): Likewise.
2500 * tree-ssa-math-opts.c (execute_cse_sincos): Likewise.
2501 * tree-ssa-phiopt.c (hoist_adjacent_loads): Likewise.
2502 * tree-ssa-reassoc.c (acceptable_pow_call): Likewise.
2503 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Likewise.
2504 (ao_ref_init_from_vn_reference, vn_reference_fold_indirect): Likewise.
2505 (vn_reference_lookup_3, simplify_binary_expression): Likewise.
2506 * tree-ssa-structalias.c (bitpos_of_field): Likewise.
2507 (get_constraint_for_1, push_fields_onto_fieldstack): Likewise.
2508 (create_variable_info_for_1): Likewise.
2509 * tree-vect-data-refs.c (vect_compute_data_ref_alignment): Likewise.
2510 (vect_verify_datarefs_alignment): Likewise.
2511 (vect_analyze_data_ref_accesses): Likewise.
2512 (vect_prune_runtime_alias_test_list): Likewise.
2513 * tree-vectorizer.h (NITERS_KNOWN_P): Likewise.
2515 2013-11-20 Richard Sandiford <rdsandiford@googlemail.com>
2517 * tree-ssa-alias.c (ao_ref_init_from_ptr_and_size): Avoid signed
2518 overflow. Use tree_to_shwi.
2520 2013-11-20 Richard Sandiford <rdsandiford@googlemail.com>
2522 * fold-const.c (fold_binary_loc): Use unsigned rather than signed
2523 HOST_WIDE_INTs when folding (x >> c) << c.
2525 2013-11-20 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
2526 Dominik Vogt <vogt@linux.vnet.ibm.com>
2528 * config/s390/s390.c (s390_canonicalize_comparison): Don't fold
2529 int comparisons with an out of range condition code.
2530 (s390_optimize_nonescaping_tx): Skip empty BBs.
2531 Generate the new tbegin RTX when removing the FPR clobbers (with
2533 (s390_expand_tbegin): Fix the retry loop counter. Copy CC to the
2534 result before doing the retry calculations.
2535 (s390_init_builtins): Make tbegin "returns_twice" and tabort
2537 * config/s390/s390.md (UNSPECV_TBEGIN_TDB): New constant used for
2538 the TDB setting part of an tbegin.
2539 ("tbegin_1", "tbegin_nofloat_1"): Add a set for the TDB.
2540 ("tx_assist"): Set unused argument to an immediate zero instead of
2541 loading zero into a GPR and pass it as argument.
2542 * config/s390/htmxlintrin.h (__TM_simple_begin, __TM_begin):
2543 Remove inline and related attributes.
2544 (__TM_nesting_depth, __TM_is_user_abort, __TM_is_named_user_abort)
2545 (__TM_is_illegal, __TM_is_footprint_exceeded)
2546 (__TM_is_nested_too_deep, __TM_is_conflict): Fix format value check.
2548 2013-11-20 Richard Biener <rguenther@suse.de>
2551 * lto-opts.c (lto_write_options): Write defaults only if
2552 they were not explicitely specified. Also write
2553 -ffp-contract default.
2554 * lto-wrapper.c (merge_and_complain): Merge -ffp-contract
2556 (run_gcc): Pass through -ffp-contract.
2558 2013-11-20 Jan-Benedict Glaw <jbglaw@lug-owl.de>
2560 * config/mips/mips.c (r10k_simplify_address): Eliminate macro usage.
2562 2013-11-20 James Greenhalgh <james.greenhalgh@arm.com>
2564 * gcc/config/aarch64/aarch64-builtins.c
2565 (aarch64_simd_itype): Remove.
2566 (aarch64_simd_builtin_datum): Remove itype, add qualifiers pointer.
2567 (VAR1): Use qualifiers.
2568 (aarch64_build_scalar_type): New.
2569 (aarch64_build_vector_type): Likewise.
2570 (aarch64_build_type): Likewise.
2571 (aarch64_init_simd_builtins): Refactor, remove special cases,
2572 consolidate main loop.
2573 (aarch64_simd_expand_args): Likewise.
2575 2013-11-19 Joshua J Cogliati <jrincayc@yahoo.com>
2578 * doc/invoke.texi: Adding documentation about -Wfloat-conversion.
2580 2013-11-19 Miro Kropacek <miro.kropacek@gmail.com>
2582 * config/m68k/m68k.c (m68k_option_overrides): Fix typo.
2584 2013-11-19 David Malcolm <dmalcolm@redhat.com>
2586 * gdbhooks.py (VecPrinter): New class, for prettyprinting pointers
2587 to "vec<>" instances.
2588 (build_pretty_printer): Register the vec<>* prettyprinter.
2590 2013-11-19 David Malcolm <dmalcolm@redhat.com>
2592 * gdbhooks.py (GdbSubprinter.__init__): Drop str_type_ field.
2593 (GdbSubprinter.handles_type): New.
2594 (GdbSubprinterTypeList): New subclass of GdbSubprinter.
2595 (GdbSubprinterRegex): New subclass of GdbSubprinter.
2596 (GdbPrettyPrinters.add_printer): Remove in favor of...
2597 (GdbPrettyPrinters.add_printer_for_types): ...this new method and...
2598 (GdbPrettyPrinters.add_printer_for_regex): ...this other new method.
2599 (GdbPrettyPrinters.__call__): Update search for subprinter
2600 to use handles_type method.
2601 (build_pretty_printer): Update registration of subprinters to
2602 use the new API above, supporting multiple spelling of each type,
2603 and allowing for future regex-based subprinters.
2605 2013-11-19 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
2607 * config/rs6000/rs6000.c (altivec_expand_vec_perm_const): Adjust
2608 V16QI vector splat case for little endian.
2610 2013-11-19 Jeff Law <law@redhat.com>
2612 * tree-ssa-threadedge.c (thread_across_edge): After threading
2613 through a joiner, allow threading a normal block requiring duplication.
2615 * tree-ssa-threadupdate.c (thread_block_1): Improve code to detect
2616 jump threading requests that would muck up the loop structures.
2618 * tree-ssa-threadupdate.c: Fix trailing whitespace.
2619 * tree-ssa-threadupdate.h: Likewise.
2621 2013-11-19 Mike Stump <mikestump@comcast.net>
2623 * gdbinit.in: Add pmz to print out mpz values.
2625 2013-11-20 Jan Hubicka <jh@suse.cz>
2627 * common.opt (ffat-lto-objects): Disable by default.
2628 * doc/invoke.texi (fat-lto-objects): Update documentation.
2629 * opts.c: Enable fat-lto-objects on lto plugin disable setups.
2631 2013-11-19 Martin Jambor <mjambor@suse.cz>
2633 PR rtl-optimization/59099
2634 * ira.c (find_moveable_pseudos): Put back various analyses from ira()
2636 (ira): Move init_reg_equiv and call to
2637 split_live_ranges_for_shrink_wrap up, remove analyses around call
2638 to find_moveable_pseudos.
2640 2013-11-20 Alan Modra <amodra@gmail.com>
2642 * config/rs6000/sysv4.h (CC1_ENDIAN_LITTLE_SPEC): Define as empty.
2643 * config/rs6000/rs6000.c (rs6000_option_override_internal): Default
2644 to strict alignment on older processors when little-endian.
2645 * config/rs6000/linux64.h (PROCESSOR_DEFAULT64): Default to power8
2648 2013-11-19 Teresa Johnson <tejohnson@google.com>
2650 * common/config/i386/i386-common.c: Enable
2651 -freorder-blocks-and-partition at -O2 and up for x86.
2652 * doc/invoke.texi: Update -freorder-blocks-and-partition default.
2653 * opts.c (finish_options): Only warn if
2654 -freorder-blocks-and-partition was set on command line.
2656 2013-11-19 Sriraman Tallam <tmsriram@google.com>
2658 * final.c (final_scan_insn): Emit a label for the split
2659 cold function part. Label name is formed by suffixing
2660 the original function name with "cold".
2662 2013-11-19 David Malcolm <dmalcolm@redhat.com>
2664 * basic-block.h (ENTRY_BLOCK_PTR_FOR_FUNCTION): Rename macro to...
2665 (EXIT_BLOCK_PTR_FOR_FUNCTION): ...this.
2666 (ENTRY_BLOCK_PTR_FOR_FN): Renamed macro to...
2667 (EXIT_BLOCK_PTR_FOR_FN): ...this.
2668 (ENTRY_BLOCK_PTR): Eliminate macro as work towards making uses of
2670 (EXIT_BLOCK_PTR): Likewise.
2671 (FOR_ALL_BB): Rework for now to eliminate use of "ENTRY_BLOCK_PTR".
2672 (FOR_ALL_BB_FN): Update for renaming of
2673 "ENTRY_BLOCK_PTR_FOR_FUNCTION" to "ENTRY_BLOCK_PTR_FOR_FN".
2675 * cfg.c (init_flow): Likewise.
2676 (check_bb_profile): Likewise.
2677 * cfganal.c (pre_and_rev_post_order_compute_fn): Likewise.
2678 * cfgcleanup.c (walk_to_nondebug_insn): Likewise.
2679 * cfghooks.c (account_profile_record): Likewise.
2680 * cfgloop.c (init_loops_structure): Likewise.
2681 * cgraphbuild.c (record_eh_tables): Likewise.
2682 (compute_call_stmt_bb_frequency): Likewise.
2683 * ipa-inline-analysis.c (compute_bb_predicates): Likewise.
2684 * lto-streamer-in.c (input_cfg): Likewise.
2685 * predict.c (maybe_hot_frequency_p): Likewise.
2686 * tree-cfg.c (init_empty_tree_cfg_for_function): Likewise.
2687 * tree-inline.c (initialize_cfun): Likewise.
2688 (copy_cfg_body): Likewise.
2689 (copy_body): Likewise.
2690 (tree_function_versioning): Likewise.
2692 * bb-reorder.c (add_labels_and_missing_jumps): Remove uses of macros:
2693 ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
2694 (duplicate_computed_gotos): Remove usage of EXIT_BLOCK_PTR macro.
2695 (find_rarely_executed_basic_blocks_and_crossing_edges): Remove uses of
2696 macros: ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
2697 (connect_traces): Likewise.
2698 (rest_of_handle_reorder_blocks): Remove usage of EXIT_BLOCK_PTR macro.
2699 (bb_to_key): Remove usage of ENTRY_BLOCK_PTR macro.
2700 (fix_crossing_conditional_branches): Remove usage of EXIT_BLOCK_PTR
2702 (find_traces_1_round): Remove uses of macros: ENTRY_BLOCK_PTR,
2704 (fix_up_fall_thru_edges): Remove usage of EXIT_BLOCK_PTR macro.
2705 (find_traces): Remove usage of ENTRY_BLOCK_PTR macro.
2706 (fix_up_crossing_landing_pad): Remove usage of EXIT_BLOCK_PTR macro.
2707 (rotate_loop): Likewise.
2708 * bt-load.c (migrate_btr_def): Remove usage of ENTRY_BLOCK_PTR macro.
2709 * cfg.c (clear_aux_for_edges): Remove uses of macros: ENTRY_BLOCK_PTR,
2711 (alloc_aux_for_edges): Likewise.
2712 (clear_bb_flags): Remove usage of ENTRY_BLOCK_PTR macro.
2713 (cached_make_edge): Remove uses of macros: ENTRY_BLOCK_PTR,
2715 (compact_blocks): Likewise.
2716 (clear_edges): Likewise.
2717 * cfganal.c (single_pred_before_succ_order): Remove usage of
2718 ENTRY_BLOCK_PTR macro.
2719 (bitmap_union_of_succs): Remove usage of EXIT_BLOCK_PTR macro.
2720 (bitmap_union_of_preds): Remove usage of ENTRY_BLOCK_PTR macro.
2721 (bitmap_intersection_of_succs): Remove usage of EXIT_BLOCK_PTR macro.
2722 (bitmap_intersection_of_preds): Remove usage of ENTRY_BLOCK_PTR macro.
2723 (inverted_post_order_compute): Remove uses of macros: ENTRY_BLOCK_PTR,
2725 (compute_dominance_frontiers_1): Remove usage of ENTRY_BLOCK_PTR macro.
2726 (post_order_compute): Remove uses of macros: ENTRY_BLOCK_PTR,
2728 (connect_infinite_loops_to_exit): Remove usage of EXIT_BLOCK_PTR macro.
2729 (remove_fake_edges): Remove usage of ENTRY_BLOCK_PTR macro.
2730 (add_noreturn_fake_exit_edges): Remove usage of EXIT_BLOCK_PTR macro.
2731 (find_pdom): Remove uses of macros: ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
2732 (remove_fake_exit_edges): Remove usage of EXIT_BLOCK_PTR macro.
2733 (verify_edge_list): Remove uses of macros: ENTRY_BLOCK_PTR,
2735 (print_edge_list): Likewise.
2736 (create_edge_list): Likewise.
2737 (find_unreachable_blocks): Remove usage of ENTRY_BLOCK_PTR macro.
2738 (mark_dfs_back_edges): Remove uses of macros: ENTRY_BLOCK_PTR,
2740 * cfgbuild.c (find_bb_boundaries): Remove usage of ENTRY_BLOCK_PTR
2742 (find_many_sub_basic_blocks): Remove usage of EXIT_BLOCK_PTR macro.
2743 (make_edges): Remove uses of macros: ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
2744 * cfgcleanup.c (delete_unreachable_blocks): Likewise.
2745 (try_optimize_cfg): Likewise.
2746 (try_head_merge_bb): Remove usage of EXIT_BLOCK_PTR macro.
2747 (try_crossjump_to_edge): Remove usage of ENTRY_BLOCK_PTR macro.
2748 (try_crossjump_bb): Remove usage of EXIT_BLOCK_PTR macro.
2749 (merge_blocks_move): Remove usage of ENTRY_BLOCK_PTR macro.
2750 (outgoing_edges_match): Remove usage of EXIT_BLOCK_PTR macro.
2751 (try_forward_edges): Likewise.
2752 (try_simplify_condjump): Likewise.
2753 * cfgexpand.c (gimple_expand_cfg): Remove uses of macros:
2754 ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
2755 (construct_exit_block): Remove usage of EXIT_BLOCK_PTR macro.
2756 (construct_init_block): Remove uses of macros: ENTRY_BLOCK_PTR,
2758 (expand_gimple_basic_block): Remove usage of EXIT_BLOCK_PTR macro.
2759 (expand_gimple_tailcall): Likewise.
2760 * cfghooks.c (can_duplicate_block_p): Remove uses of macros:
2761 ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
2762 (tidy_fallthru_edges): Likewise.
2763 (verify_flow_info): Likewise.
2764 * cfgloop.c (flow_bb_inside_loop_p): Likewise.
2765 (num_loop_branches): Remove usage of EXIT_BLOCK_PTR macro.
2766 (disambiguate_multiple_latches): Remove usage of ENTRY_BLOCK_PTR macro.
2767 (get_loop_exit_edges): Remove usage of EXIT_BLOCK_PTR macro.
2768 (bb_loop_header_p): Remove usage of ENTRY_BLOCK_PTR macro.
2769 (get_loop_body_in_bfs_order): Remove usage of EXIT_BLOCK_PTR macro.
2770 (get_loop_body_in_dom_order): Likewise.
2771 (get_loop_body): Likewise.
2772 * cfgloopanal.c (mark_irreducible_loops): Remove uses of macros:
2773 ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
2774 * cfgloopmanip.c (create_preheader): Remove usage of ENTRY_BLOCK_PTR
2776 (remove_path): Remove usage of EXIT_BLOCK_PTR macro.
2777 (fix_bb_placement): Likewise.
2778 * cfgrtl.c (rtl_block_empty_p): Remove uses of macros:
2779 ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
2780 (rtl_can_remove_branch_p): Remove usage of EXIT_BLOCK_PTR macro.
2781 (cfg_layout_split_edge): Remove uses of macros: ENTRY_BLOCK_PTR,
2783 (rtl_flow_call_edges_add): Remove usage of EXIT_BLOCK_PTR macro.
2784 (cfg_layout_can_merge_blocks_p): Remove uses of macros:
2785 ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
2786 (cfg_layout_redirect_edge_and_branch): Remove usage of ENTRY_BLOCK_PTR
2788 (fixup_fallthru_exit_predecessor): Remove uses of macros:
2789 ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
2790 (fixup_reorder_chain): Likewise.
2791 (relink_block_chain): Likewise.
2792 (cfg_layout_delete_block): Remove usage of EXIT_BLOCK_PTR macro.
2793 (rtl_verify_bb_layout): Remove usage of ENTRY_BLOCK_PTR macro.
2794 (cfg_layout_duplicate_bb): Remove usage of EXIT_BLOCK_PTR macro.
2795 (force_one_exit_fallthru): Likewise.
2796 (rtl_verify_fallthru): Remove uses of macros: ENTRY_BLOCK_PTR,
2798 (rtl_verify_edges): Likewise.
2799 (commit_edge_insertions): Likewise.
2800 (commit_one_edge_insertion): Likewise.
2801 (rtl_split_edge): Likewise.
2802 (force_nonfallthru_and_redirect): Likewise.
2803 (outof_cfg_layout_mode): Remove usage of EXIT_BLOCK_PTR macro.
2804 (skip_insns_after_block): Likewise.
2805 (fixup_partition_crossing): Remove uses of macros: ENTRY_BLOCK_PTR,
2807 (purge_dead_edges): Remove usage of EXIT_BLOCK_PTR macro.
2808 (rtl_can_merge_blocks): Remove uses of macros: ENTRY_BLOCK_PTR,
2810 (contains_no_active_insn_p): Likewise.
2811 (emit_insn_at_entry): Remove usage of ENTRY_BLOCK_PTR macro.
2812 (entry_of_function): Likewise.
2813 (last_bb_in_partition): Remove usage of EXIT_BLOCK_PTR macro.
2814 (fixup_new_cold_bb): Likewise.
2815 (patch_jump_insn): Likewise.
2816 (try_redirect_by_replacing_jump): Likewise.
2817 (block_label): Likewise.
2818 (could_fall_through): Likewise.
2819 (can_fallthru): Likewise.
2820 * cgraphbuild.c (cgraph_rebuild_references): Remove usage of
2821 ENTRY_BLOCK_PTR macro.
2822 (rebuild_cgraph_edges): Likewise.
2823 * cgraphunit.c (init_lowered_empty_function): Remove uses of macros:
2824 ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
2825 (expand_thunk): Remove usage of EXIT_BLOCK_PTR macro.
2826 * combine.c (get_last_value): Remove usage of ENTRY_BLOCK_PTR macro.
2827 (distribute_links): Remove usage of EXIT_BLOCK_PTR macro.
2828 (get_last_value_validate): Remove usage of ENTRY_BLOCK_PTR macro.
2829 (try_combine): Remove usage of EXIT_BLOCK_PTR macro.
2830 (reg_num_sign_bit_copies_for_combine): Remove usage of ENTRY_BLOCK_PTR
2832 (reg_nonzero_bits_for_combine): Likewise.
2833 (set_nonzero_bits_and_sign_copies): Likewise.
2834 (combine_instructions): Likewise.
2835 * cprop.c (one_cprop_pass): Remove uses of macros: ENTRY_BLOCK_PTR,
2837 (bypass_conditional_jumps): Likewise.
2838 (bypass_block): Remove usage of EXIT_BLOCK_PTR macro.
2839 (find_implicit_sets): Likewise.
2840 (cprop_jump): Likewise.
2841 * cse.c (cse_cc_succs): Likewise.
2842 (cse_find_path): Likewise.
2843 * df-problems.c (df_lr_confluence_0): Likewise.
2844 * df-scan.c (df_entry_block_defs_collect): Remove usage of
2845 ENTRY_BLOCK_PTR macro.
2846 (df_exit_block_uses_collect): Remove usage of EXIT_BLOCK_PTR macro.
2847 * dominance.c (iterate_fix_dominators): Remove usage of
2848 ENTRY_BLOCK_PTR macro.
2849 (calc_idoms): Remove uses of macros: ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
2850 (determine_dominators_for_sons): Remove usage of ENTRY_BLOCK_PTR macro.
2851 (calc_dfs_tree): Remove uses of macros: ENTRY_BLOCK_PTR,
2853 (prune_bbs_to_update_dominators): Remove usage of ENTRY_BLOCK_PTR
2855 (calc_dfs_tree_nonrec): Remove uses of macros: ENTRY_BLOCK_PTR,
2857 * domwalk.c (cmp_bb_postorder): Likewise.
2858 * dse.c (dse_step1): Remove usage of EXIT_BLOCK_PTR macro.
2859 * except.c (finish_eh_generation): Remove usage of ENTRY_BLOCK_PTR
2861 (sjlj_emit_function_enter): Likewise.
2862 * final.c (compute_alignments): Likewise.
2863 * function.c (thread_prologue_and_epilogue_insns): Remove uses of
2864 macros: ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
2865 (reposition_prologue_and_epilogue_notes): Remove usage of
2866 EXIT_BLOCK_PTR macro.
2867 (convert_jumps_to_returns): Remove uses of macros: ENTRY_BLOCK_PTR,
2869 (regno_clobbered_at_setjmp): Remove usage of ENTRY_BLOCK_PTR macro.
2870 (next_block_for_reg): Remove usage of EXIT_BLOCK_PTR macro.
2871 * gcse.c (hoist_code): Remove usage of ENTRY_BLOCK_PTR macro.
2872 (update_bb_reg_pressure): Remove usage of EXIT_BLOCK_PTR macro.
2873 (compute_code_hoist_vbeinout): Likewise.
2874 (should_hoist_expr_to_dom): Remove usage of ENTRY_BLOCK_PTR macro.
2875 (pre_expr_reaches_here_p_work): Likewise.
2876 * gimple-iterator.c (gsi_commit_edge_inserts): Likewise.
2877 (gimple_find_edge_insert_loc): Remove uses of macros: ENTRY_BLOCK_PTR,
2879 * gimple-ssa-strength-reduction.c (slsr_process_phi): Remove usage of
2880 ENTRY_BLOCK_PTR macro.
2881 * graph.c (draw_cfg_nodes_for_loop): Remove usage of EXIT_BLOCK_PTR
2883 * graphite-clast-to-gimple.c (translate_clast_user): Remove usage of
2884 ENTRY_BLOCK_PTR macro.
2885 * graphite-scop-detection.c (build_scops): Likewise.
2886 (create_sese_edges): Remove usage of EXIT_BLOCK_PTR macro.
2887 (scopdet_basic_block_info): Remove usage of ENTRY_BLOCK_PTR macro.
2888 * haifa-sched.c (restore_bb_notes): Remove usage of EXIT_BLOCK_PTR
2890 (unlink_bb_notes): Likewise.
2891 (create_check_block_twin): Likewise.
2892 (init_before_recovery): Likewise.
2893 (sched_extend_bb): Likewise.
2894 (priority): Likewise.
2895 * hw-doloop.c (reorder_loops): Likewise.
2896 (discover_loop): Likewise.
2897 * ifcvt.c (dead_or_predicable): Remove uses of macros:
2898 ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
2899 (find_if_case_1): Remove usage of EXIT_BLOCK_PTR macro.
2900 (block_has_only_trap): Likewise.
2901 (cond_exec_find_if_block): Likewise.
2902 (merge_if_block): Likewise.
2903 * ipa-inline-analysis.c (param_change_prob): Remove usage of
2904 ENTRY_BLOCK_PTR macro.
2905 (record_modified): Likewise.
2906 * ipa-pure-const.c (execute_warn_function_noreturn): Remove usage of
2907 EXIT_BLOCK_PTR macro.
2908 (local_pure_const): Likewise.
2909 * ipa-split.c (split_function): Remove uses of macros:
2910 ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
2911 (find_split_points): Likewise.
2912 (consider_split): Likewise.
2913 (find_return_bb): Remove usage of EXIT_BLOCK_PTR macro.
2914 (verify_non_ssa_vars): Remove usage of ENTRY_BLOCK_PTR macro.
2915 * ira-build.c (ira_loop_tree_body_rev_postorder): Likewise.
2916 * ira-color.c (print_loop_title): Remove usage of EXIT_BLOCK_PTR macro.
2917 * ira-emit.c (entered_from_non_parent_p): Remove usage of
2918 ENTRY_BLOCK_PTR macro.
2919 (ira_emit): Remove usage of EXIT_BLOCK_PTR macro.
2920 * ira-int.h (ira_assert): Remove usage of ENTRY_BLOCK_PTR macro.
2921 * ira.c (split_live_ranges_for_shrink_wrap): Remove uses of macros:
2922 ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
2923 * lcm.c (compute_rev_insert_delete): Remove usage of ENTRY_BLOCK_PTR
2925 (compute_nearerout): Remove uses of macros: ENTRY_BLOCK_PTR,
2927 (compute_farthest): Likewise.
2928 (compute_available): Likewise.
2929 (compute_insert_delete): Remove usage of EXIT_BLOCK_PTR macro.
2930 (compute_laterin): Remove uses of macros: ENTRY_BLOCK_PTR,
2932 (compute_earliest): Likewise.
2933 (compute_antinout_edge): Likewise.
2934 * loop-iv.c (simplify_using_initial_values): Remove usage of
2935 ENTRY_BLOCK_PTR macro.
2936 * loop-unswitch.c (unswitch_loop): Remove usage of EXIT_BLOCK_PTR
2938 * lra-assigns.c (find_hard_regno_for): Remove usage of ENTRY_BLOCK_PTR
2940 * lra-constraints.c (lra_inheritance): Remove usage of EXIT_BLOCK_PTR
2942 * lra-lives.c (lra_create_live_ranges): Remove uses of macros:
2943 ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
2944 * lra.c (has_nonexceptional_receiver): Remove usage of EXIT_BLOCK_PTR
2946 * lto-streamer-in.c (input_function): Remove usage of ENTRY_BLOCK_PTR
2948 * lto-streamer-out.c (output_cfg): Likewise.
2949 * mcf.c (adjust_cfg_counts): Remove uses of macros: ENTRY_BLOCK_PTR,
2951 (create_fixup_graph): Remove usage of ENTRY_BLOCK_PTR macro.
2952 * mode-switching.c (optimize_mode_switching): Likewise.
2953 (create_pre_exit): Remove usage of EXIT_BLOCK_PTR macro.
2954 * modulo-sched.c (rest_of_handle_sms): Likewise.
2955 (canon_loop): Likewise.
2956 * omp-low.c (build_omp_regions): Remove usage of ENTRY_BLOCK_PTR macro.
2957 * postreload-gcse.c (eliminate_partially_redundant_loads): Remove uses
2958 of macros: ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
2959 * predict.c (rebuild_frequencies): Remove usage of ENTRY_BLOCK_PTR
2961 (propagate_freq): Remove usage of EXIT_BLOCK_PTR macro.
2962 (estimate_bb_frequencies): Remove usage of ENTRY_BLOCK_PTR macro.
2963 (tree_estimate_probability_bb): Remove usage of EXIT_BLOCK_PTR macro.
2964 (expensive_function_p): Remove usage of ENTRY_BLOCK_PTR macro.
2965 (tree_bb_level_predictions): Remove usage of EXIT_BLOCK_PTR macro.
2966 (counts_to_freqs): Remove usage of ENTRY_BLOCK_PTR macro.
2967 (apply_return_prediction): Remove usage of EXIT_BLOCK_PTR macro.
2968 (estimate_loops): Remove usage of ENTRY_BLOCK_PTR macro.
2969 (gimple_predict_edge): Likewise.
2970 (probably_never_executed): Likewise.
2971 * profile.c (find_spanning_tree): Remove uses of macros:
2972 ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
2973 (branch_prob): Likewise.
2974 (compute_branch_probabilities): Likewise.
2975 (compute_frequency_overlap): Remove usage of ENTRY_BLOCK_PTR macro.
2976 (is_inconsistent): Remove usage of EXIT_BLOCK_PTR macro.
2977 (read_profile_edge_counts): Remove usage of ENTRY_BLOCK_PTR macro.
2978 (set_bb_counts): Likewise.
2979 (correct_negative_edge_counts): Likewise.
2980 (get_exec_counts): Likewise.
2981 (instrument_values): Likewise.
2982 (instrument_edges): Likewise.
2983 * reg-stack.c (convert_regs): Remove uses of macros: ENTRY_BLOCK_PTR,
2985 (compensate_edges): Remove usage of ENTRY_BLOCK_PTR macro.
2986 (convert_regs_exit): Remove usage of EXIT_BLOCK_PTR macro.
2987 (convert_regs_entry): Remove usage of ENTRY_BLOCK_PTR macro.
2988 (reg_to_stack): Likewise.
2989 * regs.h (REG_N_SETS): Likewise.
2990 * reload.c (find_dummy_reload): Likewise.
2991 (combine_reloads): Likewise.
2992 (push_reload): Likewise.
2993 * reload1.c (has_nonexceptional_receiver): Remove usage of
2994 EXIT_BLOCK_PTR macro.
2995 * resource.c (mark_target_live_regs): Remove usage of ENTRY_BLOCK_PTR
2997 (find_basic_block): Likewise.
2998 * sched-ebb.c (ebb_add_block): Remove usage of EXIT_BLOCK_PTR macro.
2999 (schedule_ebbs): Likewise.
3000 * sched-int.h (sel_sched_p): Likewise.
3001 * sched-rgn.c (compute_dom_prob_ps): Remove usage of ENTRY_BLOCK_PTR
3003 (rgn_add_block): Remove usage of EXIT_BLOCK_PTR macro.
3004 (haifa_find_rgns): Remove uses of macros: ENTRY_BLOCK_PTR,
3006 (propagate_deps): Remove usage of EXIT_BLOCK_PTR macro.
3007 (extend_rgns): Likewise.
3008 (find_single_block_region): Likewise.
3009 * sel-sched-ir.c (sel_remove_loop_preheader): Remove usage of
3010 ENTRY_BLOCK_PTR macro.
3011 (setup_nop_and_exit_insns): Remove usage of EXIT_BLOCK_PTR macro.
3012 (sel_create_recovery_block): Likewise.
3013 (bb_ends_ebb_p): Likewise.
3014 (sel_bb_end): Likewise.
3015 (sel_bb_head): Likewise.
3016 (free_lv_sets): Likewise.
3017 (init_lv_sets): Likewise.
3018 (tidy_control_flow): Likewise.
3019 (maybe_tidy_empty_bb): Likewise.
3020 * sel-sched-ir.h (_succ_iter_cond): Likewise.
3021 (_succ_iter_start): Likewise.
3022 (sel_bb_empty_or_nop_p): Likewise.
3023 (get_loop_exit_edges_unique_dests): Likewise.
3024 (inner_loop_header_p): Likewise.
3025 * sel-sched.c (create_block_for_bookkeeping): Likewise.
3026 (find_block_for_bookkeeping): Likewise.
3027 * store-motion.c (remove_reachable_equiv_notes): Likewise.
3028 (insert_store): Likewise.
3029 * trans-mem.c (ipa_tm_transform_clone): Remove usage of
3030 ENTRY_BLOCK_PTR macro.
3031 (tm_memopt_compute_available): Remove usage of EXIT_BLOCK_PTR macro.
3032 (ipa_tm_scan_irr_function): Remove usage of ENTRY_BLOCK_PTR macro.
3033 (gate_tm_init): Likewise.
3034 (tm_region_init): Likewise.
3035 * tree-cfg.c (execute_fixup_cfg): Remove uses of macros:
3036 ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
3037 (execute_warn_function_return): Remove usage of EXIT_BLOCK_PTR macro.
3038 (split_critical_edges): Remove uses of macros: ENTRY_BLOCK_PTR,
3040 (print_loops): Remove usage of ENTRY_BLOCK_PTR macro.
3041 (move_sese_region_to_fn): Remove uses of macros: ENTRY_BLOCK_PTR,
3043 (gimple_redirect_edge_and_branch): Remove usage of ENTRY_BLOCK_PTR
3045 (gimple_verify_flow_info): Remove uses of macros: ENTRY_BLOCK_PTR,
3047 (remove_edge_and_dominated_blocks): Remove usage of EXIT_BLOCK_PTR
3049 (make_edges): Remove uses of macros: ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
3050 (gimple_flow_call_edges_add): Remove usage of EXIT_BLOCK_PTR macro.
3051 (make_blocks): Remove usage of ENTRY_BLOCK_PTR macro.
3052 (build_gimple_cfg): Likewise.
3053 (gimple_duplicate_bb): Remove usage of EXIT_BLOCK_PTR macro.
3054 (gimple_can_merge_blocks_p): Likewise.
3055 * tree-cfgcleanup.c (tree_forwarder_block_p): Remove uses of macros:
3056 ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
3057 * tree-complex.c (update_parameter_components): Remove usage of
3058 ENTRY_BLOCK_PTR macro.
3059 * tree-if-conv.c (get_loop_body_in_if_conv_order): Remove usage of
3060 EXIT_BLOCK_PTR macro.
3061 * tree-inline.c (tree_function_versioning): Remove uses of macros:
3062 ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
3063 (delete_unreachable_blocks_update_callgraph): Likewise.
3064 (initialize_cfun): Likewise.
3065 (copy_cfg_body): Remove usage of ENTRY_BLOCK_PTR macro.
3066 (copy_edges_for_bb): Remove usage of EXIT_BLOCK_PTR macro.
3067 (remap_ssa_name): Remove usage of ENTRY_BLOCK_PTR macro.
3068 * tree-into-ssa.c (update_ssa): Likewise.
3069 (maybe_register_def): Remove usage of EXIT_BLOCK_PTR macro.
3070 (insert_updated_phi_nodes_for): Remove usage of ENTRY_BLOCK_PTR macro.
3071 (rewrite_into_ssa): Likewise.
3072 (rewrite_debug_stmt_uses): Likewise.
3073 * tree-outof-ssa.c (expand_phi_nodes): Remove uses of macros:
3074 ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
3075 * tree-profile.c (gimple_gen_ic_func_profiler): Remove usage of
3076 ENTRY_BLOCK_PTR macro.
3077 * tree-scalar-evolution.h (block_before_loop): Likewise.
3078 * tree-sra.c (sra_ipa_reset_debug_stmts): Likewise.
3079 (dump_dereferences_table): Remove uses of macros: ENTRY_BLOCK_PTR,
3081 (analyze_caller_dereference_legality): Remove usage of ENTRY_BLOCK_PTR
3083 (propagate_dereference_distances): Remove uses of macros:
3084 ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
3085 (initialize_parameter_reductions): Remove usage of ENTRY_BLOCK_PTR
3087 * tree-ssa-ccp.c (gsi_prev_dom_bb_nondebug): Likewise.
3088 (optimize_stack_restore): Remove usage of EXIT_BLOCK_PTR macro.
3089 * tree-ssa-coalesce.c (create_outofssa_var_map): Likewise.
3090 * tree-ssa-dce.c (eliminate_unnecessary_stmts): Remove uses of macros:
3091 ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
3092 (remove_dead_stmt): Remove usage of EXIT_BLOCK_PTR macro.
3093 (propagate_necessity): Remove usage of ENTRY_BLOCK_PTR macro.
3094 (mark_control_dependent_edges_necessary): Remove uses of macros:
3095 ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
3096 * tree-ssa-dom.c (eliminate_degenerate_phis): Remove usage of
3097 ENTRY_BLOCK_PTR macro.
3098 (tree_ssa_dominator_optimize): Remove usage of EXIT_BLOCK_PTR macro.
3099 * tree-ssa-live.c (verify_live_on_entry): Remove uses of macros:
3100 ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
3101 (calculate_live_on_exit): Likewise.
3102 (set_var_live_on_entry): Remove usage of ENTRY_BLOCK_PTR macro.
3103 (loe_visit_block): Likewise.
3104 * tree-ssa-live.h (live_on_exit): Remove uses of macros:
3105 ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
3106 (live_on_entry): Likewise.
3107 * tree-ssa-loop-ivopts.c (find_interesting_uses): Remove usage of
3108 EXIT_BLOCK_PTR macro.
3109 * tree-ssa-loop-manip.c (compute_live_loop_exits): Remove usage of
3110 ENTRY_BLOCK_PTR macro.
3111 * tree-ssa-loop-niter.c (simplify_using_initial_conditions): Likewise.
3112 (bound_difference): Likewise.
3113 * tree-ssa-loop-prefetch.c (may_use_storent_in_loop_p): Remove usage
3114 of EXIT_BLOCK_PTR macro.
3115 * tree-ssa-loop-unswitch.c (simplify_using_entry_checks): Remove usage
3116 of ENTRY_BLOCK_PTR macro.
3117 * tree-ssa-math-opts.c (register_division_in): Likewise.
3118 * tree-ssa-phiprop.c (tree_ssa_phiprop): Likewise.
3119 * tree-ssa-pre.c (compute_avail): Likewise.
3120 (compute_antic): Remove usage of EXIT_BLOCK_PTR macro.
3121 (insert): Remove usage of ENTRY_BLOCK_PTR macro.
3122 * tree-ssa-propagate.c (ssa_prop_init): Likewise.
3123 (simulate_block): Remove usage of EXIT_BLOCK_PTR macro.
3124 (cfg_blocks_add): Remove uses of macros: ENTRY_BLOCK_PTR,
3126 (add_control_edge): Remove usage of EXIT_BLOCK_PTR macro.
3127 * tree-ssa-reassoc.c (do_reassoc): Remove uses of macros:
3128 ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
3129 (build_and_add_sum): Remove usage of ENTRY_BLOCK_PTR macro.
3130 * tree-ssa-sink.c (nearest_common_dominator_of_uses): Likewise.
3131 (execute_sink_code): Remove usage of EXIT_BLOCK_PTR macro.
3132 * tree-ssa-uninit.c (find_dom): Remove usage of ENTRY_BLOCK_PTR macro.
3133 (compute_control_dep_chain): Remove usage of EXIT_BLOCK_PTR macro.
3134 (find_pdom): Likewise.
3135 (warn_uninitialized_vars): Remove usage of ENTRY_BLOCK_PTR macro.
3136 * tree-stdarg.c (reachable_at_most_once): Likewise.
3137 * tree-tailcall.c (tree_optimize_tail_calls_1): Remove uses of macros:
3138 ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
3139 (eliminate_tail_call): Likewise.
3140 * tsan.c (instrument_func_entry): Remove usage of ENTRY_BLOCK_PTR
3142 (instrument_func_exit): Remove usage of EXIT_BLOCK_PTR macro.
3143 * var-tracking.c (vt_initialize): Remove uses of macros:
3144 ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
3145 (vt_add_function_parameter): Remove usage of ENTRY_BLOCK_PTR macro.
3146 (vt_find_locations): Remove usage of EXIT_BLOCK_PTR macro.
3147 (vt_stack_adjustments): Remove uses of macros: ENTRY_BLOCK_PTR,
3149 * varasm.c (assemble_start_function): Remove usage of ENTRY_BLOCK_PTR
3151 * config/bfin/bfin.c (hwloop_optimize): Likewise.
3152 * config/nds32/nds32.c (nds32_fp_as_gp_check_available): Remove usage
3153 of EXIT_BLOCK_PTR macro.
3154 * config/arm/arm.c (require_pic_register): Remove usage of
3155 ENTRY_BLOCK_PTR macro.
3156 (arm_r3_live_at_start_p): Likewise.
3157 (any_sibcall_could_use_r3): Remove usage of EXIT_BLOCK_PTR macro.
3158 * config/rs6000/rs6000.c (rs6000_emit_prologue): Likewise.
3159 * config/frv/frv.c (frv_optimize_membar_global): Likewise.
3160 * config/alpha/alpha.c (alpha_gp_save_rtx): Remove usage of
3161 ENTRY_BLOCK_PTR macro.
3162 * config/i386/i386.c (ix86_count_insn): Likewise.
3163 (ix86_seh_fixup_eh_fallthru): Remove usage of EXIT_BLOCK_PTR macro.
3164 (ix86_pad_short_function): Likewise.
3165 (ix86_compute_frame_layout): Remove usage of ENTRY_BLOCK_PTR macro.
3166 (ix86_pad_returns): Remove usage of EXIT_BLOCK_PTR macro.
3167 (ix86_eax_live_at_start_p): Remove usage of ENTRY_BLOCK_PTR macro.
3168 (add_condition_to_bb): Remove usage of EXIT_BLOCK_PTR macro.
3169 (ix86_expand_epilogue): Likewise.
3170 * config/ia64/ia64.c (ia64_asm_unwind_emit): Likewise.
3171 (ia64_expand_prologue): Likewise.
3173 2013-11-19 Catherine Moore <clm@codesourcery.com>
3175 * doc/invoke.texi (mfix-rm7000, mno-fix-rm7000): Document.
3176 * config/mips/mips.opt (mfix-rm7000): New option.
3177 * config/mips/mips.h (ASM_SPEC): Handle mfix-rm7000.
3178 * config/mips/mips.c (mips_reorg_process_insns): Disable
3179 noreorder for TARGET_FIX_RM7000.
3181 2013-11-19 Oleg Endo <olegendo@gcc.gnu.org>
3183 * config/sh/sh-c.c: Fix typo in include of file attribs.h.
3185 2013-11-19 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3187 * config/arm/arm.c (arm_new_rtx_costs):
3188 Handle narrow mode add-shifts properly.
3189 * config/arm/arm-common.c (arm_rtx_shift_left_p): Remove static.
3190 * config/arm/arm-common-protos.h (arm_rtx_shift_left_p):
3193 2013-11-19 James Greenhalgh <james.greenhalgh@arm.com>
3195 * config/arm/arm.md (zero_extend<mode>di2): Add type attribute.
3197 2013-11-19 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
3199 * config/rs6000/vector.md ("mov<mode>"): Do not call
3200 rs6000_emit_le_vsx_move to move into or out of GPRs.
3201 * config/rs6000/rs6000.c (rs6000_emit_le_vsx_move): Assert
3202 source and destination are not GPR hard regs.
3204 2013-11-19 David Malcolm <dmalcolm@redhat.com>
3206 * basic-block.h (n_edges_for_function): Rename macro to...
3207 (n_edges_for_fn): ...this.
3208 (n_edges): Eliminate macro as work towards making uses of
3211 * cfg.c (init_flow): Update for renaming of "n_edges_for_function"
3212 to "n_edges_for_fn".
3214 * cfg.c (unchecked_make_edge): Remove usage of n_edges macro.
3215 (clear_edges): Likewise.
3216 (free_edge): Likewise.
3217 * cfghooks.c (dump_flow_info): Likewise.
3218 * cprop.c (is_too_expensive): Likewise.
3219 * df-core.c (df_worklist_dataflow_doublequeue): Likewise.
3220 * gcse.c (is_too_expensive): Likewise.
3221 (prune_insertions_deletions): Likewise.
3222 * mcf.c (create_fixup_graph): Likewise.
3223 * sched-rgn.c (haifa_find_rgns): Likewise.
3224 * tree-cfg.c (gimple_dump_cfg): Likewise.
3225 * var-tracking.c (variable_tracking_main_1): Likewise.
3227 2013-11-19 Marcus Shawcroft <marcus.shawcroft@arm.com>
3229 * config/aarch64/aarch64.c (aarch64_save_or_restore_fprs): Fix over
3232 2013-11-19 Marcus Shawcroft <marcus.shawcroft@arm.com>
3234 * config/aarch64/aarch64.md
3235 (aarch64_movdi_<mode>low, *add_<shift>_si_uxtw): Adjust whitespace.
3237 2013-11-19 Marcus Shawcroft <marcus.shawcroft@arm.com>
3239 * config/aarch64/aarch64.h (PROFILE_HOOK): Fix whitespace.
3241 2013-11-19 Joseph Myers <joseph@codesourcery.com>
3243 * varasm.c (align_variable): Give error instead of warning for
3244 unsupported alignment.
3245 (assemble_noswitch_variable): Likewise.
3247 2013-11-19 Basile Starynkevitch <basile@starynkevitch.net>
3249 * plugin.def (PLUGIN_INCLUDE_FILE): New event, invoked in
3252 2013-11-19 Peter Bergner <bergner@vnet.ibm.com>
3254 * loop-doloop.c (doloop_optimize_loops): Remove unused
3255 loop iterator argument from FOR_EACH_LOOP.
3257 2013-11-19 David Malcolm <dmalcolm@redhat.com>
3259 Convert gimple types from a union to C++ inheritance.
3260 * Makefile.in (GIMPLE_H): Add dep on is-a.h.
3261 * coretypes.h (union gimple_statement_d): Remove declaration.
3262 (gimple): Convert from being a "union gimple_statement_d *"
3263 to a "struct gimple_statement_base *".
3264 (const_gimple): Likewise (with "const").
3265 * ggc.h (ggc_alloc_cleared_gimple_statement_d_stat): Replace with...
3266 (ggc_alloc_cleared_gimple_statement_stat): ...this.
3267 * gimple-pretty-print.c (debug): Change parameter from a
3268 "gimple_statement_d &" to a "gimple_statement_base &".
3269 (debug): Change parameter from a "gimple_statement_d *" to
3270 a "gimple_statement_base *".
3271 * gimple-pretty-print.h (debug): Update declarations as above.
3272 * gimple.c (gimple_alloc_stat): Update for renaming of
3273 ggc_alloc_cleared_gimple_statement_d_stat to
3274 ggc_alloc_cleared_gimple_statement_stat.
3275 * gimple.h: Include "is-a.h" for use by is_a_helper
3276 specializations in followup autogenerated patch.
3277 (struct gimple statement_base): Make this type usable as a base
3278 class by adding "desc", "tag" and "variable_size" to GTY, thus
3279 using opting-in to gengtype's support for simple inheritance.
3280 (gimple_statement_with_ops_base): Convert to a subclass of
3281 gimple_statement_base, dropping initial "gsbase" field. Note that
3282 this type is abstract, with no GSS_ value, and thus no GTY tag value.
3283 (gimple_statement_with_ops): Convert to a subclass of
3284 gimple_statement_with_ops_base, dropping initial "opbase" field.
3285 Add tag value to GTY marking. Update marking of op field to
3286 reflect how num_ops field is accessed via inheritance.
3287 (gimple_statement_with_memory_ops_base): Convert to a subclass of
3288 gimple_statement_with_ops_base, dropping initial "opbase" field.
3289 Add tag value to GTY marking.
3290 (gimple_statement_with_memory_ops): Convert to a subclass of
3291 public gimple_statement_with_memory_ops_base, dropping initial
3292 "membase" field. Add tag value to GTY marking. Update marking
3293 of op field to reflect how num_ops field is accessed via inheritance.
3294 (gimple_statement_call): Analogous changes that also update the
3295 marking of the "u" union.
3296 (gimple_statement_omp): Convert to a subclass of
3297 gimple_statement_base, dropping initial "gsbase" field, adding
3298 tag value to GTY marking.
3299 (gimple_statement_bind): Likewise.
3300 (gimple_statement_catch): Likewise.
3301 (gimple_statement_eh_filter): Likewise.
3302 (gimple_statement_eh_else): Likewise.
3303 (gimple_statement_eh_mnt): Likewise.
3304 (gimple_statement_phi): Likewise.
3305 (gimple_statement_eh_ctrl): Likewise.
3306 (gimple_statement_try): Likewise.
3307 (gimple_statement_wce): Likewise.
3308 (gimple_statement_asm): Convert to a subclass of
3309 gimple_statement_with_memory_ops_base, dropping initial
3310 "membase" field, adding tag value to GTY marking, and updating
3311 marking of op field.
3312 (gimple_statement_omp_critical): Convert to a subclass of
3313 gimple_statement_omp, dropping initial "omp" field, adding tag
3314 value to GTY marking.
3315 (gimple_statement_omp_for): Likewise.
3316 (gimple_statement_omp_parallel): Likewise.
3317 (gimple_statement_omp_task): Convert to a subclass of
3318 gimple_statement_omp_parallel, dropping initial "par" field,
3319 adding tag value to GTY marking.
3320 (gimple_statement_omp_sections): Convert to a subclass of
3321 gimple_statement_omp, dropping initial "omp" field, adding
3322 tag value to GTY marking.
3323 (gimple_statement_omp_continue): Convert to a subclass of
3324 gimple_statement_base, dropping initial "gsbase" field, adding
3325 tag value to GTY marking.
3326 (gimple_statement_omp_single): Convert to a subclass of
3327 gimple_statement_omp, dropping initial "omp" field, adding
3328 tag value to GTY marking.
3329 (gimple_statement_omp_atomic_load): Convert to a subclass of
3330 gimple_statement_base, dropping initial "gsbase" field, adding
3331 tag value to GTY marking.
3332 (gimple_statement_omp_atomic_store): Convert to a subclass of
3333 gimple_statement_base, dropping initial "gsbase" field, adding
3334 tag value to GTY marking.
3335 (gimple_statement_transaction): Convert to a subclass of
3336 gimple_statement_with_memory_ops_base, dropping initial "gsbase"
3337 field, adding tag value to GTY marking.
3338 (union gimple_statement_d): Remove.
3339 * system.h (CONST_CAST_GIMPLE): Update to use
3340 "struct gimple_statement_base *" rather than
3341 "union gimple_statement_d *".
3342 * tree-ssa-ccp.c (gimple_htab): Convert underlying type from
3343 gimple_statement_d to gimple_statement_base.
3345 * gimple.h (gimple_use_ops): Port from union to usage of dyn_cast.
3346 (gimple_set_use_ops): Port from union to usage of as_a.
3347 (gimple_set_vuse): Likewise.
3348 (gimple_set_vdef): Likewise.
3349 (gimple_call_internal_fn): Port from union to a static_cast,
3350 given that the type has already been asserted.
3351 (gimple_omp_body_ptr): Port from unchecked union usage to
3353 (gimple_omp_set_body): Likewise.
3355 * gimple-iterator.c (update_bb_for_stmts): Update for conversion of
3356 gimple types to a true class hierarchy.
3357 (update_call_edge_frequencies): Likewise.
3358 (gsi_insert_seq_nodes_before): Likewise.
3359 (gsi_insert_seq_nodes_after): Likewise.
3360 (gsi_split_seq_after): Likewise.
3361 (gsi_set_stmt): Likewise.
3362 (gsi_split_seq_before): Likewise.
3363 (gsi_remove): Likewise.
3364 * gimple-iterator.h (gsi_one_before_end_p): Likewise.
3365 (gsi_next): Likewise.
3366 (gsi_prev): Likewise.
3367 * gimple-pretty-print.c (dump_gimple_debug): Likewise.
3368 * gimple-ssa.h (gimple_vuse_op): Likewise.
3369 (gimple_vdef_op): Likewise.
3370 * gimple-streamer-in.c (input_gimple_stmt): Likewise.
3371 * gimple-streamer-out.c (output_gimple_stmt): Likewise.
3372 * gimple.c (gimple_set_code): Likewise.
3373 (gimple_alloc_stat): Likewise.
3374 (gimple_set_subcode): Likewise.
3375 (gimple_build_call_internal_1): Likewise.
3376 (gimple_check_failed): Likewise.
3377 (gimple_call_flags): Likewise.
3378 (gimple_set_bb): Likewise.
3379 * gimple.h (is_a_helper <gimple_statement_asm> (gimple)): New.
3380 (is_a_helper <gimple_statement_bind> (gimple)): Likewise.
3381 (is_a_helper <gimple_statement_call> (gimple)): Likewise.
3382 (is_a_helper <gimple_statement_catch> (gimple)): Likewise.
3383 (is_a_helper <gimple_statement_eh_ctrl> (gimple)): Likewise.
3384 (is_a_helper <gimple_statement_eh_else> (gimple)): Likewise.
3385 (is_a_helper <gimple_statement_eh_filter> (gimple)): Likewise.
3386 (is_a_helper <gimple_statement_eh_mnt> (gimple)): Likewise.
3387 (is_a_helper <gimple_statement_omp_atomic_load> (gimple)): Likewise.
3388 (is_a_helper <gimple_statement_omp_atomic_store> (gimple)): Likewise.
3389 (is_a_helper <gimple_statement_omp_continue> (gimple)): Likewise.
3390 (is_a_helper <gimple_statement_omp_critical> (gimple)): Likewise.
3391 (is_a_helper <gimple_statement_omp_for> (gimple)): Likewise.
3392 (is_a_helper <gimple_statement_omp_parallel> (gimple)): Likewise.
3393 (is_a_helper <gimple_statement_omp_sections> (gimple)): Likewise.
3394 (is_a_helper <gimple_statement_omp_single> (gimple)): Likewise.
3395 (is_a_helper <gimple_statement_omp_task> (gimple)): Likewise.
3396 (is_a_helper <gimple_statement_phi> (gimple)): Likewise.
3397 (is_a_helper <gimple_statement_transaction> (gimple)): Likewise.
3398 (is_a_helper <gimple_statement_try> (gimple)): Likewise.
3399 (is_a_helper <gimple_statement_wce> (gimple)): Likewise.
3400 (is_a_helper <const gimple_statement_asm> (const_gimple)): Likewise.
3401 (is_a_helper <const gimple_statement_bind> (const_gimple)): Likewise.
3402 (is_a_helper <const gimple_statement_call> (const_gimple)): Likewise.
3403 (is_a_helper <const gimple_statement_catch> (const_gimple)): Likewise.
3404 (is_a_helper <const gimple_statement_eh_ctrl> (const_gimple)):
3406 (is_a_helper <const gimple_statement_eh_filter> (const_gimple)):
3408 (is_a_helper <const gimple_statement_omp_atomic_load> (const_gimple)):
3410 (is_a_helper <const gimple_statement_omp_atomic_store>
3411 (const_gimple)): Likewise.
3412 (is_a_helper <const gimple_statement_omp_continue> (const_gimple)):
3414 (is_a_helper <const gimple_statement_omp_critical> (const_gimple)):
3416 (is_a_helper <const gimple_statement_omp_for> (const_gimple)):
3418 (is_a_helper <const gimple_statement_omp_parallel> (const_gimple)):
3420 (is_a_helper <const gimple_statement_omp_sections> (const_gimple)):
3422 (is_a_helper <const gimple_statement_omp_single> (const_gimple)):
3424 (is_a_helper <const gimple_statement_omp_task> (const_gimple)):
3426 (is_a_helper <const gimple_statement_phi> (const_gimple)): Likewise.
3427 (is_a_helper <const gimple_statement_transaction> (const_gimple)):
3429 (gimple_seq_last): Update for conversion of gimple types to a true
3431 (gimple_seq_set_last): Likewise.
3432 (gimple_code): Likewise.
3433 (gimple_bb): Likewise.
3434 (gimple_block): Likewise.
3435 (gimple_set_block): Likewise.
3436 (gimple_location): Likewise.
3437 (gimple_location_ptr): Likewise.
3438 (gimple_set_location): Likewise.
3439 (gimple_no_warning_p): Likewise.
3440 (gimple_set_no_warning): Likewise.
3441 (gimple_set_visited): Likewise.
3442 (gimple_visited_p): Likewise.
3443 (gimple_set_plf): Likewise.
3444 (gimple_plf): Likewise.
3445 (gimple_set_uid): Likewise.
3446 (gimple_uid): Likewise.
3447 (gimple_init_singleton): Likewise.
3448 (gimple_modified_p): Likewise.
3449 (gimple_set_modified): Likewise.
3450 (gimple_expr_code): Likewise.
3451 (gimple_has_volatile_ops): Likewise.
3452 (gimple_set_has_volatile_ops): Likewise.
3453 (gimple_omp_subcode): Likewise.
3454 (gimple_omp_set_subcode): Likewise.
3455 (gimple_omp_return_set_nowait): Likewise.
3456 (gimple_omp_section_set_last): Likewise.
3457 (gimple_omp_parallel_set_combined_p): Likewise.
3458 (gimple_omp_atomic_set_need_value): Likewise.
3459 (gimple_omp_atomic_set_seq_cst): Likewise.
3460 (gimple_num_ops): Likewise.
3461 (gimple_set_num_ops): Likewise.
3462 (gimple_assign_nontemporal_move_p): Likewise.
3463 (gimple_assign_set_nontemporal_move): Likewise.
3464 (gimple_assign_rhs_code): Likewise.
3465 (gimple_assign_set_rhs_code): Likewise.
3466 (gimple_call_internal_p): Likewise.
3467 (gimple_call_with_bounds_p): Likewise.
3468 (gimple_call_set_with_bounds): Likewise.
3469 (gimple_call_set_tail): Likewise.
3470 (gimple_call_tail_p): Likewise.
3471 (gimple_call_set_return_slot_opt): Likewise.
3472 (gimple_call_return_slot_opt_p): Likewise.
3473 (gimple_call_set_from_thunk): Likewise.
3474 (gimple_call_from_thunk_p): Likewise.
3475 (gimple_call_set_va_arg_pack): Likewise.
3476 (gimple_call_va_arg_pack_p): Likewise.
3477 (gimple_call_set_nothrow): Likewise.
3478 (gimple_call_set_alloca_for_var): Likewise.
3479 (gimple_call_alloca_for_var_p): Likewise.
3480 (gimple_call_copy_flags): Likewise.
3481 (gimple_cond_code): Likewise.
3482 (gimple_cond_set_code): Likewise.
3483 (gimple_cond_make_false): Likewise.
3484 (gimple_cond_make_true): Likewise.
3485 (gimple_asm_volatile_p): Likewise.
3486 (gimple_asm_set_volatile): Likewise.
3487 (gimple_asm_set_input): Likewise.
3488 (gimple_asm_input_p): Likewise.
3489 (gimple_try_kind): Likewise.
3490 (gimple_try_set_kind): Likewise.
3491 (gimple_try_catch_is_cleanup): Likewise.
3492 (gimple_try_set_catch_is_cleanup): Likewise.
3493 (gimple_wce_cleanup_eh_only): Likewise.
3494 (gimple_wce_set_cleanup_eh_only): Likewise.
3495 (gimple_debug_bind_p): Likewise.
3496 (gimple_debug_source_bind_p): Likewise.
3497 (gimple_omp_for_set_kind): Likewise.
3498 (gimple_omp_for_set_combined_p): Likewise.
3499 (gimple_omp_for_set_combined_into_p): Likewise.
3500 (gimple_omp_target_set_kind): Likewise.
3501 (gimple_transaction_subcode): Likewise.
3502 (gimple_transaction_set_subcode): Likewise.
3503 (gimple_predict_predictor): Likewise.
3504 (gimple_predict_set_predictor): Likewise.
3505 (gimple_predict_outcome): Likewise.
3506 (gimple_predict_set_outcome): Likewise.
3507 (gimple_transaction_set_label): Likewise.
3508 (gimple_transaction_set_body): Likewise.
3509 (gimple_transaction_label_ptr): Likewise.
3510 (gimple_transaction_label): Likewise.
3511 (gimple_transaction_body_ptr): Likewise.
3512 (gimple_omp_continue_set_control_use): Likewise.
3513 (gimple_omp_continue_control_use_ptr): Likewise.
3514 (gimple_omp_continue_control_use): Likewise.
3515 (gimple_omp_continue_set_control_def): Likewise.
3516 (gimple_omp_continue_control_def_ptr): Likewise.
3517 (gimple_omp_continue_control_def): Likewise.
3518 (gimple_omp_atomic_load_rhs_ptr): Likewise.
3519 (gimple_omp_atomic_load_rhs): Likewise.
3520 (gimple_omp_atomic_load_set_rhs): Likewise.
3521 (gimple_omp_atomic_load_lhs_ptr): Likewise.
3522 (gimple_omp_atomic_load_lhs): Likewise.
3523 (gimple_omp_atomic_load_set_lhs): Likewise.
3524 (gimple_omp_atomic_store_val_ptr): Likewise.
3525 (gimple_omp_atomic_store_val): Likewise.
3526 (gimple_omp_atomic_store_set_val): Likewise.
3527 (gimple_omp_for_cond): Likewise.
3528 (gimple_omp_for_set_cond): Likewise.
3529 (gimple_omp_sections_set_control): Likewise.
3530 (gimple_omp_sections_control_ptr): Likewise.
3531 (gimple_omp_sections_control): Likewise.
3532 (gimple_omp_sections_set_clauses): Likewise.
3533 (gimple_omp_sections_clauses_ptr): Likewise.
3534 (gimple_omp_sections_clauses): Likewise.
3535 (gimple_omp_teams_set_clauses): Likewise.
3536 (gimple_omp_teams_clauses_ptr): Likewise.
3537 (gimple_omp_teams_clauses): Likewise.
3538 (gimple_omp_target_set_data_arg): Likewise.
3539 (gimple_omp_target_data_arg_ptr): Likewise.
3540 (gimple_omp_target_data_arg): Likewise.
3541 (gimple_omp_target_set_child_fn): Likewise.
3542 (gimple_omp_target_child_fn_ptr): Likewise.
3543 (gimple_omp_target_child_fn): Likewise.
3544 (gimple_omp_target_set_clauses): Likewise.
3545 (gimple_omp_target_clauses_ptr): Likewise.
3546 (gimple_omp_target_clauses): Likewise.
3547 (gimple_omp_single_set_clauses): Likewise.
3548 (gimple_omp_single_clauses_ptr): Likewise.
3549 (gimple_omp_single_clauses): Likewise.
3550 (gimple_omp_task_set_arg_align): Likewise.
3551 (gimple_omp_task_arg_align_ptr): Likewise.
3552 (gimple_omp_task_arg_align): Likewise.
3553 (gimple_omp_task_set_arg_size): Likewise.
3554 (gimple_omp_task_arg_size_ptr): Likewise.
3555 (gimple_omp_task_arg_size): Likewise.
3556 (gimple_omp_task_set_copy_fn): Likewise.
3557 (gimple_omp_task_copy_fn_ptr): Likewise.
3558 (gimple_omp_task_copy_fn): Likewise.
3559 (gimple_omp_task_set_data_arg): Likewise.
3560 (gimple_omp_task_data_arg_ptr): Likewise.
3561 (gimple_omp_task_data_arg): Likewise.
3562 (gimple_omp_task_set_child_fn): Likewise.
3563 (gimple_omp_task_child_fn_ptr): Likewise.
3564 (gimple_omp_task_child_fn): Likewise.
3565 (gimple_omp_task_set_clauses): Likewise.
3566 (gimple_omp_task_clauses_ptr): Likewise.
3567 (gimple_omp_task_clauses): Likewise.
3568 (gimple_omp_parallel_set_data_arg): Likewise.
3569 (gimple_omp_parallel_data_arg_ptr): Likewise.
3570 (gimple_omp_parallel_data_arg): Likewise.
3571 (gimple_omp_parallel_set_child_fn): Likewise.
3572 (gimple_omp_parallel_child_fn_ptr): Likewise.
3573 (gimple_omp_parallel_child_fn): Likewise.
3574 (gimple_omp_parallel_set_clauses): Likewise.
3575 (gimple_omp_parallel_clauses_ptr): Likewise.
3576 (gimple_omp_parallel_clauses): Likewise.
3577 (gimple_omp_for_set_pre_body): Likewise.
3578 (gimple_omp_for_pre_body_ptr): Likewise.
3579 (gimple_omp_for_set_incr): Likewise.
3580 (gimple_omp_for_incr_ptr): Likewise.
3581 (gimple_omp_for_incr): Likewise.
3582 (gimple_omp_for_set_final): Likewise.
3583 (gimple_omp_for_final_ptr): Likewise.
3584 (gimple_omp_for_final): Likewise.
3585 (gimple_omp_for_set_initial): Likewise.
3586 (gimple_omp_for_initial_ptr): Likewise.
3587 (gimple_omp_for_initial): Likewise.
3588 (gimple_omp_for_set_index): Likewise.
3589 (gimple_omp_for_index_ptr): Likewise.
3590 (gimple_omp_for_index): Likewise.
3591 (gimple_omp_for_collapse): Likewise.
3592 (gimple_omp_for_set_clauses): Likewise.
3593 (gimple_omp_for_clauses_ptr): Likewise.
3594 (gimple_omp_for_clauses): Likewise.
3595 (gimple_omp_critical_set_name): Likewise.
3596 (gimple_omp_critical_name_ptr): Likewise.
3597 (gimple_omp_critical_name): Likewise.
3598 (gimple_eh_dispatch_set_region): Likewise.
3599 (gimple_eh_dispatch_region): Likewise.
3600 (gimple_resx_set_region): Likewise.
3601 (gimple_resx_region): Likewise.
3602 (gimple_phi_set_arg): Likewise.
3603 (gimple_phi_arg): Likewise.
3604 (gimple_phi_set_result): Likewise.
3605 (gimple_phi_result_ptr): Likewise.
3606 (gimple_phi_result): Likewise.
3607 (gimple_phi_num_args): Likewise.
3608 (gimple_phi_capacity): Likewise.
3609 (gimple_wce_set_cleanup): Likewise.
3610 (gimple_wce_cleanup_ptr): Likewise.
3611 (gimple_try_set_cleanup): Likewise.
3612 (gimple_try_set_eval): Likewise.
3613 (gimple_try_cleanup_ptr): Likewise.
3614 (gimple_try_eval_ptr): Likewise.
3615 (gimple_eh_else_set_e_body): Likewise.
3616 (gimple_eh_else_set_n_body): Likewise.
3617 (gimple_eh_else_e_body_ptr): Likewise.
3618 (gimple_eh_else_n_body_ptr): Likewise.
3619 (gimple_eh_must_not_throw_set_fndecl): Likewise.
3620 (gimple_eh_must_not_throw_fndecl): Likewise.
3621 (gimple_eh_filter_set_failure): Likewise.
3622 (gimple_eh_filter_set_types): Likewise.
3623 (gimple_eh_filter_failure_ptr): Likewise.
3624 (gimple_eh_filter_types_ptr): Likewise.
3625 (gimple_eh_filter_types): Likewise.
3626 (gimple_catch_set_handler): Likewise.
3627 (gimple_catch_set_types): Likewise.
3628 (gimple_catch_handler_ptr): Likewise.
3629 (gimple_catch_types_ptr): Likewise.
3630 (gimple_catch_types): Likewise.
3631 (gimple_asm_string): Likewise.
3632 (gimple_asm_set_label_op): Likewise.
3633 (gimple_asm_label_op): Likewise.
3634 (gimple_asm_set_clobber_op): Likewise.
3635 (gimple_asm_clobber_op): Likewise.
3636 (gimple_asm_set_output_op): Likewise.
3637 (gimple_asm_output_op_ptr): Likewise.
3638 (gimple_asm_output_op): Likewise.
3639 (gimple_asm_set_input_op): Likewise.
3640 (gimple_asm_input_op_ptr): Likewise.
3641 (gimple_asm_input_op): Likewise.
3642 (gimple_asm_nlabels): Likewise.
3643 (gimple_asm_nclobbers): Likewise.
3644 (gimple_asm_noutputs): Likewise.
3645 (gimple_asm_ninputs): Likewise.
3646 (gimple_bind_set_block): Likewise.
3647 (gimple_bind_block): Likewise.
3648 (gimple_bind_add_seq): Likewise.
3649 (gimple_bind_add_stmt): Likewise.
3650 (gimple_bind_set_body): Likewise.
3651 (gimple_bind_body_ptr): Likewise.
3652 (gimple_bind_append_vars): Likewise.
3653 (gimple_bind_set_vars): Likewise.
3654 (gimple_bind_vars): Likewise.
3655 (gimple_call_clobber_set): Likewise.
3656 (gimple_call_use_set): Likewise.
3657 (gimple_call_set_internal_fn): Likewise.
3658 (gimple_call_set_fntype): Likewise.
3659 (gimple_call_fntype): Likewise.
3660 (gimple_omp_return_lhs_ptr): Likewise.
3661 (gimple_omp_return_lhs): Likewise.
3662 (gimple_omp_return_set_lhs): Likewise.
3663 (gimple_omp_taskreg_set_data_arg): Likewise.
3664 (gimple_omp_taskreg_data_arg_ptr): Likewise.
3665 (gimple_omp_taskreg_data_arg): Likewise.
3666 (gimple_omp_taskreg_set_child_fn): Likewise.
3667 (gimple_omp_taskreg_child_fn_ptr): Likewise.
3668 (gimple_omp_taskreg_child_fn): Likewise.
3669 (gimple_omp_taskreg_set_clauses): Likewise.
3670 (gimple_omp_taskreg_clauses_ptr): Likewise.
3671 (gimple_omp_taskreg_clauses): Likewise.
3672 (gimple_vuse): Likewise.
3673 (gimple_vdef): Likewise.
3674 (gimple_vuse_ptr): Likewise.
3675 (gimple_vdef_ptr): Likewise.
3676 * tree-inline.c (copy_debug_stmt): Likewise.
3677 * tree-phinodes.c (make_phi_node): Likewise.
3679 * gimple.h (is_a_helper <const gimple_statement_with_ops>::test): New.
3680 (is_a_helper <gimple_statement_with_ops>::test): New.
3681 (is_a_helper <const gimple_statement_with_memory_ops>::test): New.
3682 (is_a_helper <gimple_statement_with_memory_ops>::test): New.
3684 * gimple-streamer-in.c (input_gimple_stmt): Port from union
3685 access to use of as_a.
3686 * gimple.c (gimple_build_asm_1): Likewise.
3687 (gimple_build_try): Likewise. Also, return a specific subclass
3688 rather than just gimple.
3689 (gimple_build_resx): Port from union access to use of as_a.
3690 (gimple_build_eh_dispatch): Likewise.
3691 (gimple_build_omp_for): Likewise. Also, convert allocation of iter
3692 now that gengtype no longer provides a typed allocator function.
3693 (gimple_copy): Likewise.
3694 * gimple.h (gimple_build_try): Return a specific subclass rather
3696 * gimplify.c (gimplify_cleanup_point_expr): Replace union access
3697 with subclass access by making use of new return type of
3699 * tree-phinodes.c: (allocate_phi_node): Return a
3700 "gimple_statement_phi *" rather than just a gimple.
3701 (resize_phi_node): Likewise.
3702 (make_phi_node): Replace union access with subclass access by
3703 making use of new return type of allocate_phi_node.
3704 (reserve_phi_args_for_new_edge): Replace union access with as_a.
3705 (remove_phi_arg_num): Accept a "gimple_statement_phi *" rather
3707 (remove_phi_args): Update for change to remove_phi_arg_num.
3709 * gdbhooks.py (GimplePrinter.to_string): Update lookup of
3710 code field to reflect inheritance, rather than embedding of
3711 the base gimple type.
3713 2013-11-19 Richard Biener <rguenther@suse.de>
3715 * cfgloop.h (struct loop_iterator): C++-ify, add constructor
3716 and destructor and make fel_next a member function.
3717 (fel_next): Transform into ...
3718 (loop_iterator::next): ... this.
3719 (fel_init): Transform into ...
3720 (loop_iterator::loop_iterator): ... this.
3721 (loop_iterator::~loop_iterator): New.
3722 (FOR_EACH_LOOP): Remove loop-iterator argument.
3723 (FOR_EACH_LOOP_BREAK): Remove no longer necessary macro.
3724 * cfgloop.c, cfgloopmanip.c, config/mn10300/mn10300.c,
3725 graphite-clast-to-gimple.c, graphite-scop-detection.c,
3726 graphite-sese-to-poly.c, ipa-inline-analysis.c, ipa-pure-const.c,
3727 loop-init.c, loop-invariant.c, loop-unroll.c, loop-unswitch.c,
3728 modulo-sched.c, predict.c, sel-sched-ir.c, tree-cfg.c, tree-data-ref.c,
3729 tree-if-conv.c, tree-loop-distribution.c, tree-parloops.c,
3730 tree-predcom.c, tree-scalar-evolution.c, tree-ssa-dce.c,
3731 tree-ssa-loop-ch.c, tree-ssa-loop-im.c, tree-ssa-loop-ivcanon.c,
3732 tree-ssa-loop-ivopts.c, tree-ssa-loop-manip.c, tree-ssa-loop-niter.c,
3733 tree-ssa-loop-prefetch.c, tree-ssa-loop-unswitch.c,
3734 tree-ssa-threadupdate.c, tree-vectorizer.c, tree-vrp.c: Adjust
3735 uses of FOR_EACH_LOOP and remove loop_iterator variables. Replace
3736 FOR_EACH_LOOP_BREAK with break.
3738 2013-11-19 Richard Biener <rguenther@suse.de>
3740 PR tree-optimization/59164
3741 * tree-vect-loop-manip.c (vect_update_ivs_after_vectorizer):
3743 * tree-vect-loop.c (vect_analyze_loop_operations): Adjust check
3744 whether we can create an epilogue loop to reflect thecases where
3747 2013-11-19 Andrew MacLeod <amacleod@redhat.com>
3749 * graphite-sese-to-poly.c: Include expr.h.
3751 2013-11-19 Richard Biener <rguenther@suse.de>
3754 * tree-ssa-ter.c (find_replaceable_in_bb): Avoid forwarding
3755 loads into stmts that may clobber it.
3757 2013-11-19 Bernd Schmidt <bernds@codesourcery.com>
3759 * cgraphunit.c (symtab_terminator): New variable.
3760 (queued_nodes): Renamed from first. Use symtab_terminator as
3762 (analyze_functions): Adjust accordingly.
3763 (cgraph_process_new_functions): Return void.
3764 * cgraph.h (cgraph_process_new_functions): Adjust declaration.
3766 2013-11-19 Marek Polacek <polacek@redhat.com>
3768 * opts.c (common_handle_option): Add -fsanitize=null option.
3769 Turn off -fdelete-null-pointer-checks option when doing the
3770 NULL pointer checking.
3771 * sanitizer.def (BUILT_IN_UBSAN_HANDLE_TYPE_MISMATCH): Add.
3772 * tree-pass.h (make_pass_ubsan): Declare.
3773 (make_pass_sanopt): Declare.
3774 * timevar.def (TV_TREE_UBSAN): New timevar.
3775 * passes.def: Add pass_sanopt and pass_ubsan.
3776 * ubsan.h (ubsan_null_ckind): New enum.
3777 (ubsan_mismatch_data): New struct.
3778 (ubsan_expand_null_ifn): Declare.
3779 (ubsan_create_data): Adjust declaration.
3780 (ubsan_type_descriptor): Likewise.
3781 * asan.c: Include "ubsan.h".
3782 (pass_data_sanopt): New pass.
3783 (execute_sanopt): New function.
3784 (gate_sanopt): Likewise.
3785 (make_pass_sanopt): Likewise.
3786 (class pass_sanopt): New class.
3787 * ubsan.c: Include tree-pass.h, gimple-ssa.h, gimple-walk.h,
3788 gimple-iterator.h and cfgloop.h.
3789 (PROB_VERY_UNLIKELY): Define.
3790 (tree_type_map_hash): New function.
3791 (ubsan_type_descriptor): Add new parameter.
3792 Improve type name generation.
3793 (ubsan_create_data): Add new parameter. Add pointer data into
3795 (ubsan_expand_null_ifn): New function.
3796 (instrument_member_call): Likewise.
3797 (instrument_mem_ref): Likewise.
3798 (instrument_null): Likewise.
3799 (ubsan_pass): Likewise.
3800 (gate_ubsan): Likewise.
3801 (make_pass_ubsan): Likewise.
3802 (ubsan_instrument_unreachable): Adjust ubsan_create_data call.
3803 (class pass_ubsan): New class.
3804 (pass_data_ubsan): New pass.
3805 * flag-types.h (enum sanitize_code): Add SANITIZE_NULL.
3806 * internal-fn.c (expand_UBSAN_NULL): New function.
3807 * cgraphunit.c (varpool_finalize_decl): Call varpool_assemble_decl
3808 even when !flag_toplevel_reorder.
3809 * internal-fn.def (UBSAN_NULL): New.
3811 2013-11-19 Jan Hubicka <jh@suse.cz>
3813 * cgraph.c (cgraph_create_indirect_edge): Use
3814 get_polymorphic_call_info.
3815 * cgraph.h (cgraph_indirect_call_info): Add outer_type,
3816 maybe_in_construction and maybe_derived_type.
3817 * ipa-utils.h (ipa_polymorphic_call_context): New structure.
3818 (ipa_dummy_polymorphic_call_context): New global var.
3819 (possible_polymorphic_call_targets): Add context paramter.
3820 (dump_possible_polymorphic_call_targets): Likewise; update wrappers.
3821 (possible_polymorphic_call_target_p): Likewise.
3822 (get_polymorphic_call_info): New function.
3823 * ipa-devirt.c (ipa_dummy_polymorphic_call_context): New function.
3824 (add_type_duplicate): Remove forgotten debug output.
3825 (method_class_type): Add sanity check.
3826 (maybe_record_node): Add FINALP parameter.
3827 (record_binfo): Add OUTER_TYPE and OFFSET; walk the inner
3828 by info by get_binfo_at_offset.
3829 (possible_polymorphic_call_targets_1): Add OUTER_TYPE/OFFSET
3830 parameters; pass them to record-binfo.
3831 (polymorphic_call_target_d): Add context and FINAL.
3832 (polymorphic_call_target_hasher::hash): Hash context.
3833 (polymorphic_call_target_hasher::equal): Compare context.
3834 (free_polymorphic_call_targets_hash):
3835 (get_class_context): New function.
3836 (contains_type_p): New function.
3837 (get_polymorphic_call_info): New function.
3838 (walk_bases): New function.
3839 (possible_polymorphic_call_targets): Add context parameter; honnor it.
3840 (dump_possible_polymorphic_call_targets): Dump context.
3841 (possible_polymorphic_call_target_p): Add context.
3842 (update_type_inheritance_graph): Update comment.s
3843 (ipa_set_jf_known_type): Assert that compoentn type is known.
3844 (ipa_note_param_call): Do not tamper with offsets.
3845 (ipa_analyze_indirect_call_uses): When offset is being changed; clear
3847 (update_indirect_edges_after_inlining): Likewise.
3848 (ipa_write_indirect_edge_info): Stream new fields.
3849 (ipa_read_indirect_edge_info): Stream in new fields.
3851 2013-11-19 Jan Hubicka <jh@suse.cz>
3853 * tree-pretty-print.c (dump_generic_node): Print class type of
3856 2013-11-19 Joey Ye <joey.ye@arm.com>
3858 * config/arm/arm.opt (-marm-pic-data-is-text-relative): New option.
3859 * doc/invoke.texi (-marm-pic-data-is-text-relative): Documentation
3861 * config/arm/arm.c (arm_option_override): By default disable
3862 -marm-pic-data-is-text-relative.
3863 (legitimize_pic_address): Use arm_pic_data_is_text_relative.
3864 (arm_assemble_integer): Likewise.
3865 * config/arm/arm.h (TARGET_DEFAULT_PIC_DATA_IS_TEXT_RELATIVE):
3866 New macro to initialize -marm-pic-data-is-text-relative.
3868 2013-11-19 Bin Cheng <bin.cheng@arm.com>
3870 * tree-ssa-loop-ivopts.c (enum ainc_type): New.
3871 (address_cost_data): New field.
3872 (get_address_cost): Compute auto-increment rtx cost in ainc_costs.
3873 Use ainc_costs for auto-increment rtx patterns. Cleanup TWS.
3875 2013-11-19 James Greenhalgh <james.greenhalgh@arm.com>
3877 * config/aarch64/aarch64.md: Remove v8type from all insns.
3879 2013-11-19 Richard Biener <rguenther@suse.de>
3881 PR tree-optimization/57517
3882 * tree-predcom.c (combinable_refs_p): Verify the combination
3883 is always executed when the refs are.
3885 2013-11-19 Jeff Law <law@redhat.com>
3887 * tree-ssa-threadupdate.c: Include ssa-iterators.h
3888 (copy_phi_arg_into_existing_phi): New function.
3889 (any_remaining_duplicated_blocks): Likewise.
3890 (ssa_fix_duplicate_block_edges): Handle multiple duplicated
3891 blocks on a jump threading path.
3893 * tree-ssa-threadupdate.c (thread_through_loop_header): Do not
3894 thread through a joiner which has the latch edge.
3896 2013-11-19 Jan Hubicka <jh@suse.cz>
3898 * md.texi (setmem): Document new parameter.
3899 * optabs.c (maybe_gen_insn): Support 9 operands.
3900 * builtins.c (determine_block_size): Add probable_max_size;
3901 support anti-ranges.
3902 (expand_builtin_memcpy. expand_builtin_memset_args): Pass around
3904 * expr.c (emit_block_move_via_movmem, emit_block_move_hints,
3905 emit_block_move, clear_storage_hints, set_storage_via_setmem):
3907 * expr.h (emit_block_move_hints, clear_storage_hints,
3908 set_storage_via_setmem): Update prototype.
3909 * i386.md (setmem, movmem patterns): Add 9th operand.
3910 * i386-protos.h (ix86_expand_set_or_movmem): Update prototype.
3911 * i386.c (ix86_expand_set_or_movmem): Take probable_max_size_exp
3912 argument; pass it to decide_alg.
3914 2013-11-19 David Malcolm <dmalcolm@redhat.com>
3916 * basic-block.h (n_basic_blocks_for_function): Rename macro to...
3917 (n_basic_blocks_for_fn): ...this.
3919 (n_basic_blocks): Eliminate macro as work towards making uses of
3922 * cfgloop.c (init_loops_structure): Update for renaming of
3923 "n_basic_blocks_for_function" to "n_basic_blocks_for_fn".
3924 * graph.c (draw_cfg_nodes_no_loops): Likewise.
3925 * ipa-utils.c (ipa_merge_profiles): Likewise.
3926 * lto-streamer-in.c (make_new_block): Likewise.
3927 * tree-cfg.c (init_empty_tree_cfg_for_function): Likewise.
3928 (dump_function_to_file): Likewise.
3930 * alias.c (init_alias_analysis): Replace usage of "n_basic_blocks"
3931 macro with "n_basic_blocks_for_fn (cfun)".
3932 * bb-reorder.c (partition_hot_cold_basic_blocks): Likewise.
3933 (duplicate_computed_gotos): Likewise.
3934 (reorder_basic_blocks): Likewise.
3935 * bt-load.c (augment_live_range): Likewise.
3936 * cfg.c (expunge_block): Likewise.
3937 (compact_blocks): Likewise.
3938 * cfganal.c (single_pred_before_succ_order): Likewise.
3939 (compute_idf): Likewise.
3940 (flow_dfs_compute_reverse_init): Likewise.
3941 (pre_and_rev_post_order_compute): Likewise.
3942 (pre_and_rev_post_order_compute_fn): Likewise.
3943 (inverted_post_order_compute): Likewise.
3944 (post_order_compute): Likewise.
3945 (print_edge_list): Likewise.
3946 (find_unreachable_blocks): Likewise.
3947 (mark_dfs_back_edges): Likewise.
3948 * cfgcleanup.c (try_optimize_cfg): Likewise.
3949 (try_forward_edges): Likewise.
3950 * cfghooks.c (dump_flow_info): Likewise.
3951 * cfgloop.c (verify_loop_structure): Likewise.
3952 (get_loop_body): Likewise.
3953 (flow_loops_find): Likewise.
3954 * cfgloopmanip.c (add_loop): Likewise.
3955 (remove_path): Likewise.
3956 (find_path): Likewise.
3957 * cfgrtl.c (rtl_flow_call_edges_add): Likewise.
3958 (rtl_verify_bb_layout): Likewise.
3959 (entry_of_function): Likewise.
3960 (rtl_create_basic_block): Likewise.
3961 * coverage.c (coverage_compute_cfg_checksum): Likewise.
3962 * cprop.c (one_cprop_pass): Likewise.
3963 (is_too_expensive): Likewise.
3964 * df-core.c (df_compute_cfg_image): Likewise.
3965 (df_compact_blocks): Likewise.
3966 (df_worklist_dataflow_doublequeue): Likewise.
3967 * dominance.c (calculate_dominance_info): Likewise.
3968 (calc_dfs_tree): Likewise.
3969 (calc_dfs_tree_nonrec): Likewise.
3970 (init_dom_info): Likewise.
3971 * domwalk.c (cmp_bb_postorder): Likewise.
3972 * function.c (thread_prologue_and_epilogue_insns): Likewise.
3973 (generate_setjmp_warnings): Likewise.
3974 * fwprop.c (build_single_def_use_links): Likewise.
3975 * gcse.c (is_too_expensive): Likewise.
3976 (one_code_hoisting_pass): Likewise.
3977 (one_pre_gcse_pass): Likewise.
3978 * graphite.c (graphite_initialize): Likewise.
3979 * haifa-sched.c (haifa_sched_init): Likewise.
3980 * ipa-inline-analysis.c (estimate_function_body_sizes): Likewise.
3981 * ira.c (split_live_ranges_for_shrink_wrap): Likewise.
3982 * ira-build.c (ira_build): Likewise.
3983 * lcm.c (compute_nearerout): Likewise.
3984 (compute_available): Likewise.
3985 (compute_laterin): Likewise.
3986 (compute_antinout_edge): Likewise.
3987 * lra-lives.c (lra_create_live_ranges): Likewise.
3988 * lra.c (has_nonexceptional_receiver): Likewise.
3989 * mcf.c (create_fixup_graph): Likewise.
3990 * profile.c (branch_prob): Likewise.
3991 * reg-stack.c (convert_regs_2): Likewise.
3992 * regrename.c (regrename_analyze): Likewise.
3993 * reload1.c (has_nonexceptional_receiver): Likewise.
3994 * reorg.c (dbr_schedule): Likewise.
3995 * sched-deps.c (sched_deps_init): Likewise.
3996 * sched-ebb.c (schedule_ebbs): Likewise.
3997 * sched-rgn.c (extend_regions): Likewise.
3998 (schedule_insns): Likewise.
3999 (sched_rgn_init): Likewise.
4000 (extend_rgns): Likewise.
4001 (haifa_find_rgns): Likewise.
4002 * sel-sched-ir.c (recompute_rev_top_order): Likewise.
4003 (sel_recompute_toporder): Likewise.
4004 * sel-sched.c (run_selective_scheduling): Likewise.
4005 * store-motion.c (one_store_motion_pass): Likewise.
4006 (remove_reachable_equiv_notes): Likewise.
4007 * tracer.c (tracer): Likewise.
4008 (tail_duplicate): Likewise.
4009 * tree-cfg.c (gimple_flow_call_edges_add): Likewise.
4010 (dump_cfg_stats): Likewise.
4011 (gimple_dump_cfg): Likewise.
4012 (create_bb): Likewise.
4013 (build_gimple_cfg): Likewise.
4014 * tree-cfgcleanup.c (merge_phi_nodes): Likewise.
4015 * tree-inline.c (optimize_inline_calls): Likewise.
4016 (fold_marked_statements): Likewise.
4017 * tree-ssa-ifcombine.c (tree_ssa_ifcombine): Likewise.
4018 * tree-ssa-loop-ch.c (copy_loop_headers): Likewise.
4019 * tree-ssa-loop-im.c (analyze_memory_references): Likewise.
4020 * tree-ssa-loop-manip.c (compute_live_loop_exits): Likewise.
4021 * tree-ssa-math-opts.c (execute_cse_reciprocals): Likewise.
4022 * tree-ssa-phiopt.c (tree_ssa_phiopt_worker): Likewise.
4023 * tree-ssa-pre.c (do_pre): Likewise.
4024 (init_pre): Likewise.
4025 (compute_avail): Likewise.
4026 * tree-ssa-reassoc.c (init_reassoc): Likewise.
4027 * tree-ssa-sccvn.c (init_scc_vn): Likewise.
4028 * tree-ssa-tail-merge.c (alloc_cluster_vectors): Likewise.
4029 (init_worklist): Likewise.
4030 * tree-ssa-uncprop.c (associate_equivalences_with_edges): Likewise.
4031 * var-tracking.c (variable_tracking_main_1): Likewise.
4032 (vt_find_locations): Likewise.
4033 (vt_stack_adjustments): Likewise.
4034 * config/s390/s390.c (s390_optimize_nonescaping_tx): Likewise.
4035 * config/spu/spu.c (spu_machine_dependent_reorg): Likewise.
4037 2013-11-18 Jan Hubicka <jh@suse.cz>
4039 * profile.c (compute_branch_probabilities): Do not sanity check
4042 2013-11-18 Kenneth Zadeck <zadeck@naturalbridge.com>
4044 * tree.c (int_fits_type_p): Change GET_MODE_BITSIZE to
4046 * fold-const.c (fold_single_bit_test_into_sign_test)
4047 (fold_binary_loc): Change GET_MODE_BITSIZE to GET_MODE_PRECISION.
4049 2013-11-18 Teresa Johnson <tejohnson@google.com>
4051 * cfgrtl.c (cfg_layout_initialize): Assert if we try to go into
4052 cfglayout after bb reordering.
4053 * passes.def: Move compgotos before bb reordering since it goes into
4056 2013-11-18 Bernd Schmidt <bernds@codesourcery.com>
4058 * cgraphunit.c (ipa_passes): Don't execute all_lto_gen_passes.
4059 * lto-streamer-out.c (lto_output, produce_asm_for_decls): No longer
4061 (pass_data_ipa_lto_gimple_out, pass_ipa_lto_gimple_out,
4062 make_pass_ipa_lto_gimple_out, pass_data_ipa_lto_finish_out,
4063 pass_ipa_lto_finish_out, make_pass_ipa_lto_finish_out): Remove.
4064 * lto-streamer.h (lto_output, produce_asm_for_decls): Declare.
4065 * pass-manager.h (GCC_PASS_LISTS, class pass_manager):
4066 Remove all_lto_gen_passes.
4067 * passes.c (pass_manager::dump_passes): Remove its use.
4068 (pass_manager::register_pass): Likewise.
4069 (ipa_read_summaries, ipa_read_optimization_summaries): Likewise.
4070 (pass_manager::pass_manager): Don't initialize or use it.
4071 (write_lto): New static function.
4072 (ipa_write_summaries_1, ipa_write_optimization_summaries): Use it
4073 instead of using all_lto_gen_passes.
4074 * passes.def (all_lto_gen_passes, pass_ipa_lto_gimple_out,
4075 pass_ipa_lto_finish_out): Delete.
4076 * tree-pass.h (make_pass_ipa_lto_gimple_out,
4077 make_pass_ipa_lto_finish_out): Don't declare.
4079 2013-11-18 Jeff Law <law@redhat.com>
4081 * tree-ssa-threadupdate.c (redirection_data): Record two
4082 duplicated blocks instead of just one.
4083 (local_info): Explain why we don't create a template for the
4084 second duplicated block in a thread path.
4085 (create_block_for_threading): Accept argument indicating array
4086 index into redirection_data to store its result.
4087 (lookup_redirection_data): Initialize both duplicate blocks.
4088 (ssa_create_duplicates): If a jump threading path needs multiple
4089 blocks duplicated, then duplicate them.
4090 (ssa_fix_duplicate_block_edges): Corresponding changes.
4091 (ssa_fixup_template_block, thread_single_edge): Likewise.
4093 2013-11-18 Marek Polacek <polacek@redhat.com>
4095 * doc/invoke.texi: Extend -fsanitize=undefined documentation.
4097 2013-11-18 Andrew Pinski <apinski@cavium.com>
4098 Steve Ellcey <sellcey@mips.com>
4101 * config/mips/mips.md (*mov<GPR:mode>_on_<MOVECC:mode>): Remove
4102 type restriction from equality_operator on conditonal move.
4103 (*mov<SCALARF:mode>_on_<MOVECC:mode>): Ditto.
4104 (*mov<GPR:mode>_on_<GPR2:mode>_ne): New.
4106 2013-11-18 Jeff Law <law@redhat.com>
4108 * tree-ssa-threadupdate.c: Fix file block comment.
4109 Fix minor indention issue.
4111 2013-11-18 Uros Bizjak <ubizjak@gmail.com>
4113 * config/i386/i386.c (ix86_decompose_address): Use REG_P instead of
4114 ix86_address_subreg_operand. Move subreg checks to
4115 ix86_validate_address_register. Move address override check to
4116 ix86_legitimate_address_p.
4117 (ix86_validate_address_register): New function.
4118 (ix86_legitimate_address_p): Call ix86_validate_address_register
4119 to validate base and index registers. Add address override check
4120 from ix86_decompose_address.
4121 (ix86_decompose_address): Remove.
4123 2013-11-18 Richard Biener <rguenther@suse.de>
4125 PR tree-optimization/59125
4126 PR tree-optimization/54570
4127 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): When inlining
4128 is not complete do not treat component-references with offset zero
4129 but different fields as equal.
4130 * tree-object-size.c: Include tree-phinodes.h and ssa-iterators.h.
4131 (compute_object_sizes): Apply TLC. Propagate the constant
4132 results into all uses and fold their stmts.
4133 * passes.def (pass_all_optimizations): Move pass_object_sizes
4134 after the first pass_forwprop and before pass_fre.
4136 2013-11-18 Richard Sandiford <rdsandiford@googlemail.com>
4138 * tree.h (tree_to_uhwi): Return an unsigned HOST_WIDE_INT.
4139 * tree.c (tree_to_uhwi): Return an unsigned HOST_WIDE_INT.
4140 (tree_ctz): Remove cast to unsigned type.
4141 * builtins.c (fold_builtin_memory_op): Likewise.
4142 * dwarf2out.c (descr_info_loc): Likewise.
4143 * godump.c (go_output_typedef): Likewise.
4144 * omp-low.c (expand_omp_simd): Likewise.
4145 * stor-layout.c (excess_unit_span): Likewise.
4146 * tree-object-size.c (addr_object_size): Likewise.
4147 * tree-sra.c (analyze_all_variable_accesses): Likewise.
4148 * tree-ssa-forwprop.c (simplify_builtin_call): Likewise.
4149 (simplify_rotate): Likewise.
4150 * tree-ssa-strlen.c (adjust_last_stmt, handle_builtin_memcpy)
4151 (handle_pointer_plus): Likewise.
4152 * tree-switch-conversion.c (check_range): Likewise.
4153 * tree-vect-patterns.c (vect_recog_rotate_pattern): Likewise.
4154 * tsan.c (instrument_builtin_call): Likewise.
4155 * cfgexpand.c (defer_stack_allocation): Add cast to HOST_WIDE_INT.
4156 * trans-mem.c (tm_log_add): Likewise.
4157 * config/aarch64/aarch64.c (aapcs_vfp_sub_candidate): Likewise.
4158 * config/arm/arm.c (aapcs_vfp_sub_candidate): Likewise.
4159 * config/rs6000/rs6000.c (rs6000_aggregate_candidate): Likewise.
4160 * config/mips/mips.c (r10k_safe_mem_expr_p): Make offset unsigned.
4162 2013-11-18 Richard Sandiford <rdsandiford@googlemail.com>
4164 * tree.h (host_integerp, tree_low_cst): Delete.
4165 * tree.c (host_integerp, tree_low_cst): Delete.
4167 2013-11-18 Richard Sandiford <rdsandiford@googlemail.com>
4169 * expr.h: Update comments to refer to tree_to_[su]hwi rather
4171 * fold-const.c (fold_binary_loc): Likewise.
4172 * expr.c (store_constructor): Use tree_to_uhwi rather than
4174 * ipa-utils.h (possible_polymorphic_call_target_p): Likewise.
4175 * stmt.c (emit_case_dispatch_table): Likewise.
4176 * tree-switch-conversion.c (emit_case_bit_tests): Likewise.
4178 2013-11-18 Richard Sandiford <rdsandiford@googlemail.com>
4180 * alias.c, asan.c, builtins.c, cfgexpand.c, cgraph.c,
4181 config/aarch64/aarch64.c, config/alpha/predicates.md,
4182 config/arm/arm.c, config/darwin.c, config/epiphany/epiphany.c,
4183 config/i386/i386.c, config/iq2000/iq2000.c, config/m32c/m32c-pragma.c,
4184 config/mep/mep-pragma.c, config/mips/mips.c,
4185 config/picochip/picochip.c, config/rs6000/rs6000.c, cppbuiltin.c,
4186 dbxout.c, dwarf2out.c, emit-rtl.c, except.c, expr.c, fold-const.c,
4187 function.c, gimple-fold.c, godump.c, ipa-cp.c, ipa-prop.c, omp-low.c,
4188 predict.c, sdbout.c, stor-layout.c, trans-mem.c, tree-object-size.c,
4189 tree-sra.c, tree-ssa-ccp.c, tree-ssa-forwprop.c,
4190 tree-ssa-loop-ivcanon.c, tree-ssa-loop-ivopts.c, tree-ssa-loop-niter.c,
4191 tree-ssa-loop-prefetch.c, tree-ssa-strlen.c, tree-stdarg.c,
4192 tree-switch-conversion.c, tree-vect-generic.c, tree-vect-loop.c,
4193 tree-vect-patterns.c, tree-vrp.c, tree.c, tsan.c, ubsan.c, varasm.c:
4194 Replace tree_low_cst (..., 1) with tree_to_uhwi throughout.
4196 2013-11-18 Richard Sandiford <rdsandiford@googlemail.com>
4198 * builtins.c, cilk-common.c, config/aarch64/aarch64.c,
4199 config/alpha/alpha.c, config/arm/arm.c, config/c6x/predicates.md,
4200 config/i386/i386.c, config/ia64/predicates.md, config/s390/s390.c,
4201 coverage.c, dbxout.c, dwarf2out.c, except.c, explow.c, expr.c, expr.h,
4202 fold-const.c, gimple-fold.c, godump.c, ipa-prop.c, omp-low.c,
4203 predict.c, rtlanal.c, sdbout.c, stmt.c, stor-layout.c, targhooks.c,
4204 tree-cfg.c, tree-data-ref.c, tree-inline.c, tree-ssa-forwprop.c,
4205 tree-ssa-loop-prefetch.c, tree-ssa-phiopt.c, tree-ssa-sccvn.c,
4206 tree-ssa-strlen.c, tree-stdarg.c, tree-vect-data-refs.c,
4207 tree-vect-patterns.c, tree.c, tree.h, var-tracking.c, varasm.c:
4208 Replace tree_low_cst (..., 0) with tree_to_shwi throughout.
4210 2013-11-18 Richard Sandiford <rdsandiford@googlemail.com>
4212 * tree.h (tree_to_shwi, tree_to_uhwi): Declare, with inline expansions.
4213 * tree.c (tree_to_shwi, tree_to_uhwi): New functions.
4215 2013-11-18 Richard Sandiford <rdsandiford@googlemail.com>
4217 * expr.h: Update comments to refer to tree_fits_[su]hwi_p rather
4220 2013-11-18 Richard Sandiford <rdsandiford@googlemail.com>
4222 * builtins.c, config/alpha/alpha.c, config/iq2000/iq2000.c,
4223 config/mips/mips.c, dbxout.c, dwarf2out.c, expr.c, fold-const.c,
4224 gimple-fold.c, godump.c, omp-low.c, predict.c, sdbout.c, stor-layout.c,
4225 tree-dfa.c, tree-sra.c, tree-ssa-forwprop.c, tree-ssa-loop-prefetch.c,
4226 tree-ssa-phiopt.c, tree-ssa-sccvn.c, tree-ssa-strlen.c,
4227 tree-ssa-structalias.c, tree-vect-data-refs.c, tree-vect-patterns.c,
4228 tree.c, varasm.c, alias.c, cfgexpand.c, config/aarch64/aarch64.c,
4229 config/arm/arm.c, config/epiphany/epiphany.c, config/i386/i386.c,
4230 config/m32c/m32c-pragma.c, config/mep/mep-pragma.c,
4231 config/rs6000/rs6000.c, config/sparc/sparc.c, emit-rtl.c, function.c,
4232 gimplify.c, ipa-prop.c, stmt.c, trans-mem.c, tree-cfg.c,
4233 tree-object-size.c, tree-ssa-ccp.c, tree-ssa-loop-ivcanon.c,
4234 tree-stdarg.c, tree-switch-conversion.c, tree-vect-generic.c,
4235 tree-vrp.c, tsan.c, ubsan.c: Replace host_integerp (..., 1) with
4236 tree_fits_uhwi_p throughout.
4238 2013-11-18 Richard Sandiford <rdsandiford@googlemail.com>
4240 * builtins.c, config/alpha/alpha.c, config/c6x/predicates.md,
4241 config/ia64/predicates.md, config/iq2000/iq2000.c, config/mips/mips.c,
4242 config/s390/s390.c, dbxout.c, dwarf2out.c, except.c, explow.c, expr.c,
4243 expr.h, fold-const.c, gimple-fold.c, gimple-ssa-strength-reduction.c,
4244 gimple.c, godump.c, graphite-scop-detection.c, graphite-sese-to-poly.c,
4245 omp-low.c, predict.c, rtlanal.c, sdbout.c, simplify-rtx.c,
4246 stor-layout.c, tree-data-ref.c, tree-dfa.c, tree-pretty-print.c,
4247 tree-sra.c, tree-ssa-alias.c, tree-ssa-forwprop.c,
4248 tree-ssa-loop-ivopts.c, tree-ssa-loop-prefetch.c, tree-ssa-math-opts.c,
4249 tree-ssa-phiopt.c, tree-ssa-reassoc.c, tree-ssa-sccvn.c,
4250 tree-ssa-strlen.c, tree-ssa-structalias.c, tree-vect-data-refs.c,
4251 tree-vect-patterns.c, tree-vectorizer.h, tree.c, var-tracking.c,
4252 varasm.c: Replace host_integerp (..., 0) with tree_fits_shwi_p
4255 2013-11-18 Richard Sandiford <rdsandiford@googlemail.com>
4257 * tree.h (tree_fits_shwi_p, tree_fits_uhwi_p): Declare.
4258 * tree.c (tree_fits_shwi_p, tree_fits_uhwi_p): Define.
4260 2013-11-18 Kirill Yukhin <kirill.yukhin@intel.com>
4262 * config/ia64/ia64.c (ia64_split_tmode_move): Mark load with `dead'
4263 flag if it kills its address, not its post-increment.
4265 2013-11-18 Ilya Enkovich <ilya.enkovich@intel.com>
4267 * builtin-types.def (BT_FN_PTR_CONST_PTR_VAR): New.
4268 * chkp-builtins.def (BUILT_IN_CHKP_BIND_BOUNDS): New.
4269 * cfgexpand.c (expand_call_stmt): Expand BUILT_IN_CHKP_BIND_BOUNDS.
4270 * gimple.c (gimple_call_get_nobnd_arg_index): Remove.
4271 * gimple.h (gf_mask): Add GF_CALL_WITH_BOUNDS.
4272 (gimple_call_with_bounds_p): New.
4273 (gimple_call_set_with_bounds): New.
4274 (gimple_call_num_nobnd_args): Remove.
4275 (gimple_call_nobnd_arg): Remove.
4276 * tree.h (CALL_WITH_BOUNDS_P): New.
4277 * rtl.h (CALL_EXPR_WITH_BOUNDS_P): New.
4279 2013-11-18 Trevor Saunders <tsaunders@mozilla.com>
4281 * cgraph.h (symtab_node_asm_name): Rename to symtab_node::asm_name.
4282 (symtab_node_name): Rename to symtab_node::name.
4283 (cgraph_node_asm_name): Remove.
4284 (varpool_node_asm_name): Remove.
4285 * cgraph.c cgraphclones.c cgraphunit.c ipa-cp.c ipa-devirt.c
4286 ipa-inline-analysis.c ipa-inline-transform.c ipa-inline.c
4287 ipa-profile.c ipa-prop.c ipa-pure-const.c ipa-ref.c ipa-reference.c
4288 ipa-utils.c ipa.c symtab.c tree-inline.c tree-sra.c
4289 tree-ssa-structalias.c value-prof.c varpool.c Adjust.
4291 2013-11-18 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
4293 * config/arm/aarch-cost-tables.h (cortexa53_extra_costs): New table.
4294 * config/arm/arm.c (arm_cortex_a53_tune): New.
4295 * config/arm/arm-cores.def (cortex-a53): Use cortex_a53 tuning struct.
4297 2013-11-12 Ganesh Gopalasubramanian <Ganesh.Gopalasubramanian@amd.com>
4299 * config.gcc (i[34567]86-*-linux* | ...): Add bdver4.
4300 (case ${target}): Add bdver4.
4301 * config/i386/bdver3.md: Add bdver4.
4302 * config/i386/driver-i386.c: (host_detect_local_cpu): Let
4303 -march=native recognize bdver4 processors.
4304 * config/i386/i386-c.c (ix86_target_macros_internal): Add
4305 bdver4 def_and_undef
4306 * config/i386/i386.c (struct processor_costs bdver4_cost): New.
4307 (m_BDVER4): New definition.
4308 (m_AMD_MULTIPLE): Includes m_BDVER4.
4309 (processor_target_table): Add bdver4 entry.
4310 (static const char *const cpu_names): Add bdver4 entry.
4311 (software_prefetching_beneficial_p): Add bdver3.
4312 (ix86_option_override_internal): Add bdver4 instruction sets.
4313 (ix86_issue_rate): Add bdver4.
4314 (ix86_adjust_cost): Add bdver4.
4315 (ia32_multipass_dfa_lookahead): Add bdver4.
4316 (enum processor_model): Add M_AMDFAM15H_BDVER4.
4317 (struct _arch_names_table): Add M_AMDFAM15H_BDVER4.
4318 (has_dispatch): Add bdver4.
4319 * config/i386/i386.h (TARGET_BDVER4): New definition.
4320 (enum target_cpu_default): Add TARGET_CPU_DEFAULT_bdver4.
4321 (enum processor_type): Add PROCESSOR_BDVER4.
4322 * config/i386/i386.md (define_attr "cpu"): Add bdver4.
4323 * config/i386/i386.opt (flag_dispatch_scheduler): Add bdver4.
4324 * doc/extend.texi: Add details about bdver4.
4325 * doc/invoke.texi: Add details about bdver4. Add
4326 fma4 and fsgsbase for bdver3. Add fma4 for bdver2.
4328 2013-11-17 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
4330 * config/rs6000/rs6000.c (rs6000_emit_move): Use low word of
4331 sdmode_stack_slot also in little-endian mode.
4333 2013-11-17 Jan Hubicka <jh@suse.cz>
4335 * doc/md.texi (setmem, movstr): Update documentation.
4336 * builtins.c (determine_block_size): New function.
4337 (expand_builtin_memcpy): Use it and pass it to emit_block_move_hints.
4338 (expand_builtin_memset_args): Use it and pass it to
4339 set_storage_via_setmem.
4340 * expr.c (emit_block_move_via_movmem): Add min_size/max_size
4341 parameters; update call to expander.
4342 (emit_block_move_hints): Add min_size/max_size parameters.
4343 (clear_storage_hints): Likewise.
4344 (set_storage_via_setmem): Likewise.
4345 (clear_storage): Update.
4346 * expr.h (emit_block_move_hints, clear_storage_hints,
4347 set_storage_via_setmem): Update prototypes.
4348 * i386.c (ix86_expand_set_or_movmem): Add bounds; export.
4349 (ix86_expand_movmem, ix86_expand_setmem): Remove.
4350 (ix86_expand_movmem, ix86_expand_setmem): Remove.
4351 * i386.md (movmem, setmem): Pass parameters.
4353 2013-11-17 Uros Bizjak <ubizjak@gmail.com>
4356 * config/i386/i386.c (ix86_address_subreg_operand): Do not
4357 reject non-integer subregs.
4358 (ix86_decompose_address): Do not reject invalid CONST_INT RTXes.
4359 Move check for invalid x32 constant addresses ...
4360 (ix86_legitimate_address_p): ... here.
4362 2011-11-17 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
4364 * config/rs6000/rs6000.c (rs6000_frame_related): Add split_reg
4365 parameter and use it in REG_FRAME_RELATED_EXPR note.
4366 (emit_frame_save): Call rs6000_frame_related with extra NULL_RTX
4368 (rs6000_emit_prologue): Likewise, but for little endian VSX
4369 stores, pass the source register of the store instead.
4371 2013-11-17 Andrew MacLeod <amacleod@redhat.com>
4373 * gimple.h: Reorder prototypes to match .c declaration order, and
4374 remove protyotypes for functions not in gimple.c.
4375 (LABEL): Move to tree-into-ssa.c.
4376 * gimple.c: Remove unused prototypes.
4377 (get_base_address): Move to tree.c.
4378 * tree.c (get_base_address): Relocate from gimple.c.
4379 * builtins.h (validate_gimple_arglist): Add prototype.
4380 * trans-mem.h (compute_transaction_bits, is_tm_ending): Add prototype.
4381 * cfgexpand.h: New File.
4382 (gimple_assign_rhs_to_tree, estimated_stack_frame_size): Add protoype.
4383 * tree.h (build_addr): Move to tree-nested.h.
4384 * tree-nested.h: New File.
4385 (build_addr, lower_nested_functions, insert_field_into_struct): Add
4387 * tree-inline.h (estimated_stack_frame_size): Remove prototype.
4388 * ipa-inline-analysis.c: Include cfgexpand.h.
4389 * cgraphunit.c: Include tree-nested.h.
4390 * omp-low.c: Likewise.
4391 * tree-parloops.c: Likewise.
4392 * gimple-low.h: Likewise.
4393 * tree-profile.h: Likewise.
4394 * expr.c: Include cfgexpand.h.
4395 * tree-affine.c: Likewise.
4396 * tree-ssa.c: Likewise.
4397 * tree-ssa-loop-im.c: Include trans-mem.h.
4398 * tree-ssa-tail-merge.c: Likewise.
4399 * value-prof.c: Include builtins.h and tree-nested.h.
4400 * tree-into-ssa.c (LABEL): Define here.
4402 2013-11-16 Joern Rennecke <joern.rennecke@embecosm.com>
4404 * config/arc/arc.c (arc_predicate_delay_insns): New function.
4405 (pass_data_arc_predicate_delay_insns): New pass_data instance.
4406 (pass_arc_predicate_delay_insns): New subclass of rtl_opt_class.
4407 (make_pass_arc_predicate_delay_insns): New function.
4408 (arc_init): Register pass_arc_predicate_delay_insns if
4409 flag_delayed_branch is active.
4411 2013-11-16 Joern Rennecke <joern.rennecke@embecosm.com>
4413 * config/arc/constraints.md (Rcq): Simplify register number test.
4415 2013-11-15 Aldy Hernandez <aldyh@redhat.com>
4417 * gimple.h (enum gf_mask): Change the ordering of GF_OMP_* bits.
4419 2013-11-15 Kaz Kojima <kkojima@gcc.gnu.org>
4421 * config/sh/sh.c (barrier_align): Return 0 when barrier_or_label
4424 2013-11-15 Aldy Hernandez <aldyh@redhat.com>
4426 * Makefile.in (C_COMMON_OBJS): Depend on c-cilkplus.o.
4427 * gimple-pretty-print.c (dump_omp_for): Add case for
4428 GF_OMP_FOR_KIND_CILKSIMD.
4429 * gimple.h (enum gf_mask): Restructure entries to add
4430 GF_OMP_FOR_KIND_CILKSIMD.
4431 * gimplify.c (is_gimple_stmt): Add case for CILK_SIMD.
4432 (gimplify_omp_for): Handle CILK_SIMD.
4433 (gimplify_expr): Add ccase for CILK_SIMD.
4434 * omp-low.c (extract_omp_for_data): Handle CILK_SIMD.
4435 (build_outer_var_ref): Same.
4436 (check_omp_nesting_restrictions): Same.
4437 (lower_rec_input_clauses): Same.
4438 (lower_lastprivate_clauses): Same.
4439 (expand_omp_for): Same.
4440 (execute_expand_omp): Check flag_enable_cilkplus.
4441 (execute_lower_omp): Same.
4442 (diagnose_sb_0): Handle CILK_SIMD.
4443 (diagnose_omp_structured_block_errors): Check flag_enable_cilkplus.
4444 (setjmp_or_longjmp_p): New.
4445 (scan_omp_1_stmt): Error on setjmp/longjmp in a simd construct.
4446 * tree-pretty-print.c (dump_generic_node): Add case for CILK_SIMD.
4447 * tree.def: Add tree code for CILK_SIMD.
4449 2013-11-15 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
4451 * config/rs6000/altivec.md (UNSPEC_VPERM_X, UNSPEC_VPERM_UNS_X):
4453 (altivec_vperm_<mode>): Revert earlier little endian change.
4454 (*altivec_vperm_<mode>_internal): Remove.
4455 (altivec_vperm_<mode>_uns): Revert earlier little endian change.
4456 (*altivec_vperm_<mode>_uns_internal): Remove.
4457 * config/rs6000/vector.md (vec_realign_load_<mode>): Revise commentary.
4459 2013-11-15 Jeff Law <law@redhat.com>
4461 * basic-block.h (has_abnormal_or_eh_outgoing_edge): Renamed from
4462 has_abnormal_or_outgoing_edge. Check for EH edges as well.
4463 * gimple-ssa-isolate-paths.c
4464 (find_implicit_erroneous_behaviour): Corresponding changes.
4465 Do not check stmt_ends_bb_p or GIMPLE_RETURN anymore.
4466 (find_explicit_erroneous_behaviour): Likewise.
4468 2013-11-15 Jeff Law <law@redhat.com>
4470 * ifcvt.c (find_cond_trap): Properly handle case where
4473 2013-11-15 Andreas Schwab <schwab@linux-m68k.org>
4475 * configure: Regenerate.
4477 2013-11-15 James Greenhalgh <james.greenhalgh@arm.com>
4479 * config/aarch64/aarch64-simd.md: Remove simd_type from all patterns.
4480 * config/aarch64/aarch64.md: Likewise, correct "type" attribute
4481 where it is incorrect or missing.
4483 2013-11-15 Richard Sandiford <rdsandiford@googlemail.com>
4485 * dwarf2out.c (gen_enumeration_type_die): Remove unnecessary
4487 * tree-vect-patterns.c (vect_recog_divmod_pattern): Likewise.
4488 Use TREE_INT_CST_LOW rather than tree_low_cst when reading the
4490 * fold-const.c (fold_binary_loc): Replace a host_integerp/tree_low_cst
4491 pair with a TREE_CODE test and TREE_INT_CST_LOW.
4492 * tree-vect-generic.c (expand_vector_divmod): Likewise.
4494 2013-11-15 Richard Biener <rguenther@suse.de>
4496 PR tree-optimization/50262
4497 * tree-ssa-alias.h (struct pt_solution): Split
4498 vars_contains_global into vars_contains_nonlocal,
4499 vars_contains_escaped and vars_contains_escaped_heap.
4500 * tree-ssa-structalias.c (label_visit): Expand comment.
4501 (handle_lhs_call): Adjust comment.
4502 (set_uids_in_ptset): Set the new flags appropriately.
4503 (pt_solution_set): Adjust.
4504 (pt_solution_set_var): Likewise.
4505 (pt_solution_ior_into): Likewise.
4506 (pt_solution_includes_global): Likewise.
4507 (pt_solutions_intersect_1): Optimize escaped handling.
4508 (compute_points_to_sets): Remove heap variable globalization.
4509 (ipa_escaped_pt): Adjust initializer.
4510 (pass_data_ipa_pta): Do not run TODO_update_ssa.
4511 * gimple-pretty-print.c (pp_points_to_solution): Print split flags.
4512 * tree-ssa-alias.c (dump_points_to_solution): Likewise.
4514 2013-11-15 Richard Biener <rguenther@suse.de>
4516 * tree-loop-distribution.c (tree_loop_distribution): Make sure
4517 to distribute all stores.
4519 2013-11-15 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
4521 * doc/invoke.texi (-mabi=elfv1, -mabi=elfv2): Document.
4523 2013-11-15 Joseph Myers <joseph@codesourcery.com>
4525 * acinclude.m4 (GCC_GLIBC_VERSION_GTE_IFELSE): New configure macro.
4526 * configure.ac: Determine target_header_dir earlier.
4527 (--with-glibc-version): New configure option.
4528 Use GCC_GLIBC_VERSION_GTE_IFELSE in enable_gnu_unique_object,
4529 gcc_cv_libc_provides_ssp and gcc_cv_target_ldbl128 tests.
4530 * configure: Regenerate.
4531 * doc/install.texi (--enable-gnu-unique-object): Don't refer to
4532 native toolchains for default.
4533 (--with-glibc-version): Document.
4535 2013-11-15 Eric Botcazou <ebotcazou@adacore.com>
4537 * fold-const.c (fold_binary_loc) <comparisons>: Reuse local variable.
4539 2013-11-15 Uros Bizjak <ubizjak@gmail.com>
4541 * lto-streamer-in.c (input function): Call cgraph_create_node if
4542 cgraph_get_node failed.
4544 2013-11-14 Olivier Hainque <hainque@adacore.com>
4546 * cfgexpand.c (defer_stack_allocation): When optimization is enabled,
4547 defer allocation of DECL_IGNORED_P variables at toplevel unless really
4548 small. Factorize size threshold computation from the existing one.
4549 (expand_used_vars): Refine comment.
4551 2013-11-14 Cong Hou <congh@google.com>
4553 * tree-vectorizer.h (struct dr_with_seg_len): Remove the base
4554 address field as it can be obtained from dr. Rename the struct.
4555 * tree-vect-data-refs.c (comp_dr_with_seg_len_pair): Consider
4556 steps of data references during sort.
4557 (vect_prune_runtime_alias_test_list): Adjust with the change to
4558 struct dr_with_seg_len.
4559 * tree-vect-loop-manip.c (vect_create_cond_for_alias_checks):
4560 Adjust with the change to struct dr_with_seg_len.
4562 2013-11-14 Jeff Law <law@redhat.com>
4565 * basic-block.h (has_abnormal_outgoing_edge_p): Moved here from...
4566 * tree-inline.c (has_abnormal_outgoing_edge_p): Remove.
4567 * gimple-ssa-isolate-paths.c: Include tree-cfg.h.
4568 (find_implicit_erroneous_behaviour): If a block has abnormal outgoing
4569 edges, then ignore it. If the statement exhibiting erroneous
4570 behaviour ends basic blocks, with the exception of GIMPLE_RETURNs,
4571 then we can not optimize.
4572 (find_explicit_erroneous_behaviour): Likewise.
4574 2013-11-14 Andrew MacLeod <amacleod@redhat.com>
4576 * gimplify-me.h: New file. Add prototypes.
4577 * gimplify.h: Don't include gimple.h.
4578 (struct gimplify_hasher, struct gimplify_ctx, is_gimple_sizepos):
4579 Relocate from gimple.h.
4580 * gimple.h (struct gimplify_hasher, struct gimplify_ctx,
4581 is_gimple_sizepos): Move to gimplify.h.
4582 (gimplify_hasher::hash, gimplify_hasher::equal): Move to gimplify.c.
4583 (enum gsi_iterator_update): Move to gimple-iterator.h.
4584 * gimple-iterator.h (enum gsi_iterator_update): Relocate from gimple.h.
4585 * gimplify-me.c: New File.
4586 (force_gimple_operand_1, force_gimple_operand,
4587 force_gimple_operand_gsi_1, force_gimple_operand_gsi,
4588 gimple_regimplify_operands): Relocate from gimplify.c.
4589 * gimplify.c (force_gimple_operand_1, force_gimple_operand,
4590 force_gimple_operand_gsi_1, force_gimple_operand_gsi,
4591 gimple_regimplify_operands): Move to gimplify-me.c.
4592 (gimplify_hasher::hash, gimplify_hasher::equal): Relocate
4594 * Makefile.in (OBJS): Add gimplify-me.o
4595 * asan.c: Include only gimplify.h, gimplify-me.h, and/or gimple.h as
4597 * cfgloopmanip.c: Likewise.
4598 * cgraphunit.c: Likewise.
4599 * cilk-common.c: Likewise.
4600 * fold-const.c: Likewise.
4601 * function.c: Likewise.
4602 * gimple-expr.c: Likewise.
4603 * gimple-fold.c: Likewise.
4604 * gimple-ssa-strength-reduction.c: Likewise.
4605 * gimple.c: Likewise.
4606 * graphite-clast-to-gimple.c: Likewise.
4607 * graphite-sese-to-poly.c: Likewise.
4608 * ipa-prop.c: Likewise.
4609 * ipa-split.c: Likewise.
4611 * langhooks.c: Likewise.
4612 * omp-low.c: Likewise.
4614 * stor-layout.c: Likewise.
4615 * targhooks.c: Likewise.
4616 * trans-mem.c: Likewise.
4617 * tree-affine.c: Likewise.
4618 * tree-cfg.c: Likewise.
4619 * tree-cfgcleanup.c: Likewise.
4620 * tree-complex.c: Likewise.
4621 * tree-if-conv.c: Likewise.
4622 * tree-inline.c: Likewise.
4623 * tree-loop-distribution.c: Likewise.
4624 * tree-nested.c: Likewise.
4625 * tree-parloops.c: Likewise.
4626 * tree-predcom.c: Likewise.
4627 * tree-profile.c: Likewise.
4628 * tree-scalar-evolution.c: Likewise.
4629 * tree-sra.c: Likewise.
4630 * tree-ssa-address.c: Likewise.
4631 * tree-ssa-ccp.c: Likewise.
4632 * tree-ssa-dce.c: Likewise.
4633 * tree-ssa-forwprop.c: Likewise.
4634 * tree-ssa-ifcombine.c: Likewise.
4635 * tree-ssa-loop-im.c: Likewise.
4636 * tree-ssa-loop-ivopts.c: Likewise.
4637 * tree-ssa-loop-manip.c: Likewise.
4638 * tree-ssa-loop-niter.c: Likewise.
4639 * tree-ssa-loop-prefetch.c: Likewise.
4640 * tree-ssa-loop-unswitch.c: Likewise.
4641 * tree-ssa-math-opts.c: Likewise.
4642 * tree-ssa-phiopt.c: Likewise.
4643 * tree-ssa-phiprop.c: Likewise.
4644 * tree-ssa-pre.c: Likewise.
4645 * tree-ssa-propagate.c: Likewise.
4646 * tree-ssa-reassoc.c: Likewise.
4647 * tree-ssa-sccvn.c: Likewise.
4648 * tree-ssa-strlen.c: Likewise.
4649 * tree-ssa.c: Likewise.
4650 * tree-switch-conversion.c: Likewise.
4651 * tree-tailcall.c: Likewise.
4652 * tree-vect-data-refs.c: Likewise.
4653 * tree-vect-generic.c: Likewise.
4654 * tree-vect-loop-manip.c: Likewise.
4655 * tree-vect-loop.c: Likewise.
4656 * tree-vect-patterns.c: Likewise.
4657 * tree-vect-stmts.c: Likewise.
4660 * value-prof.c: Likewise.
4661 * config/aarch64/aarch64.c: Likewise.
4662 * config/alpha/alpha.c: Likewise.
4663 * config/darwin.c: Likewise.
4664 * config/i386/i386.c: Likewise.
4665 * config/ia64/ia64.c: Likewise.
4666 * config/mep/mep.c: Likewise.
4667 * config/mips/mips.c: Likewise.
4668 * config/rs6000/rs6000.c: Likewise.
4669 * config/s390/s390.c: Likewise.
4670 * config/sh/sh.c: Likewise.
4671 * config/sparc/sparc.c: Likewise.
4672 * config/spu/spu.c: Likewise.
4673 * config/stormy16/stormy16.c: Likewise.
4674 * config/tilegx/tilegx.c: Likewise.
4675 * config/tilepro/tilepro.c: Likewise.
4676 * config/xtensa/xtensa.c: Likewise.
4678 2013-11-14 Diego Novillo <dnovillo@google.com>
4680 * Makefile.in (PLUGIN_HEADERS): Add stringpool.h.
4682 2013-11-14 Diego Novillo <dnovillo@google.com>
4684 * tree.h: Include fold-const.h.
4685 (aggregate_value_p): Moved to function.h.
4686 (alloca_call_p): Moved to calls.h.
4687 (allocate_struct_function): Moved to function.h.
4688 (apply_tm_attr): Moved to attribs.h.
4689 (array_at_struct_end_p): Moved to expr.h.
4690 (array_ref_element_size): Moved to tree-dfa.h.
4691 (array_ref_low_bound): Moved to tree-dfa.h.
4692 (array_ref_up_bound): Moved to tree.h.
4693 (assemble_alias): Moved to cgraph.h.
4694 (bit_from_pos): Moved to stor-layout.h.
4695 (build_addr): Moved to tree-nested.h.
4696 (build_duplicate_type): Moved to tree-inline.h.
4697 (build_fold_addr_expr): Moved to fold-const.h.
4698 (build_fold_addr_expr_with_type): Moved to fold-const.h.
4699 (build_fold_addr_expr_with_type_loc): Moved to fold-const.h.
4700 (build_fold_indirect_ref): Moved to fold-const.h.
4701 (build_fold_indirect_ref_loc): Moved to fold-const.h.
4702 (build_personality_function): Moved to tree.h.
4703 (build_range_check): Moved to fold-const.h.
4704 (build_simple_mem_ref): Moved to fold-const.h.
4705 (build_simple_mem_ref_loc): Moved to fold-const.h.
4706 (build_tm_abort_call): Moved to trans-mem.h.
4707 (byte_from_pos): Moved to stor-layout.h.
4708 (call_expr_flags): Moved to calls.h.
4709 (can_move_by_pieces): Moved to expr.h.
4710 (categorize_ctor_elements): Moved to expr.h.
4711 (change_decl_assembler_name): Moved to gcc-symtab.h.
4712 (combine_comparisons): Moved to fold-const.h.
4713 (complete_ctor_at_level_p): Moved to tree.h.
4714 (component_ref_field_offset): Moved to tree-dfa.h.
4715 (compute_builtin_object_size): Moved to tree-object-size.h.
4716 (compute_record_mode): Moved to stor-layout.h.
4717 (constant_boolean_node): Moved to fold-const.h.
4718 (constructor_static_from_elts_p): Moved to varasm.h.
4719 (cxx11_attribute_p): Moved to attribs.h.
4720 (debug_body): Moved to print-tree.h.
4721 (debug_find_tree): Moved to tree-inline.h.
4722 (debug_fold_checksum): Moved to fold-const.h.
4723 (debug_head): Moved to print-tree.h.
4724 (debug_head): Moved to print-tree.h.
4725 (debug_raw): Moved to print-tree.h.
4726 (debug_tree): Moved to print-tree.h.
4727 (debug_vec_tree): Moved to print-tree.h.
4728 (debug_verbose): Moved to print-tree.h.
4729 (debug_verbose): Moved to print-tree.h.
4730 (decl_attributes): Moved to attribs.h.
4731 (decl_binds_to_current_def_p): Moved to varasm.h.
4732 (decl_default_tls_model): Moved to varasm.h.
4733 (decl_replaceable_p): Moved to varasm.h.
4734 (div_if_zero_remainder): Moved to fold-const.h.
4735 (double_int mem_ref_offset): Moved to fold-const.h.
4736 (dump_addr): Moved to print-tree.h.
4737 (element_precision): Moved to machmode.h.
4738 (expand_dummy_function_end): Moved to function.h.
4739 (expand_function_end): Moved to function.h.
4740 (expand_function_start): Moved to function.h.
4741 (expand_label): Moved to stmt.h.
4742 (expr_first): Moved to tree-iterator.h.
4743 (expr_last): Moved to tree-iterator.h.
4744 (finalize_size_functions): Moved to stor-layout.h.
4745 (finish_builtin_struct): Moved to stor-layout.h.
4746 (finish_record_layout): Moved to stor-layout.h.
4747 (fixup_signed_type): Moved to stor-layout.h.
4748 (fixup_unsigned_type): Moved to stor-layout.h.
4749 (flags_from_decl_or_type): Moved to calls.h.
4750 (fold): Moved to fold-const.h.
4751 (fold_abs_const): Moved to fold-const.h.
4752 (fold_binary): Moved to fold-const.h.
4753 (fold_binary_loc): Moved to fold-const.h.
4754 (fold_binary_to_constant): Moved to fold-const.h.
4755 (fold_build1): Moved to fold-const.h.
4756 (fold_build1_initializer_loc): Moved to fold-const.h.
4757 (fold_build1_loc): Moved to fold-const.h.
4758 (fold_build1_stat_loc): Moved to fold-const.h.
4759 (fold_build2): Moved to fold-const.h.
4760 (fold_build2_initializer_loc): Moved to fold-const.h.
4761 (fold_build2_loc): Moved to fold-const.h.
4762 (fold_build2_stat_loc): Moved to fold-const.h.
4763 (fold_build3): Moved to fold-const.h.
4764 (fold_build3_loc): Moved to fold-const.h.
4765 (fold_build3_stat_loc): Moved to fold-const.h.
4766 (fold_build_call_array): Moved to fold-const.h.
4767 (fold_build_call_array_initializer): Moved to fold-const.h.
4768 (fold_build_call_array_initializer_loc): Moved to fold-const.h.
4769 (fold_build_call_array_loc): Moved to fold-const.h.
4770 (fold_build_cleanup_point_expr): Moved to fold-const.h.
4771 (fold_convert): Moved to fold-const.h.
4772 (fold_convert_loc): Moved to fold-const.h.
4773 (fold_convertible_p): Moved to fold-const.h.
4774 (fold_defer_overflow_warnings): Moved to fold-const.h.
4775 (fold_deferring_overflow_warnings_p): Moved to fold-const.h.
4776 (fold_fma): Moved to fold-const.h.
4777 (fold_ignored_result): Moved to fold-const.h.
4778 (fold_indirect_ref): Moved to fold-const.h.
4779 (fold_indirect_ref_1): Moved to fold-const.h.
4780 (fold_indirect_ref_loc): Moved to fold-const.h.
4781 (fold_read_from_constant_string): Moved to fold-const.h.
4782 (fold_real_zero_addition_p): Moved to fold-const.h.
4783 (fold_single_bit_test): Moved to fold-const.h.
4784 (fold_strip_sign_ops): Moved to fold-const.h.
4785 (fold_ternary): Moved to fold-const.h.
4786 (fold_ternary_loc): Moved to fold-const.h.
4787 (fold_unary): Moved to tree-data-ref.h.
4788 (fold_unary_ignore_overflow): Moved to fold-const.h.
4789 (fold_unary_ignore_overflow_loc): Moved to fold-const.h.
4790 (fold_unary_loc): Moved to fold-const.h.
4791 (fold_unary_to_constant): Moved to fold-const.h.
4792 (fold_undefer_and_ignore_overflow_warnings): Moved to fold-const.h.
4793 (fold_undefer_overflow_warnings): Moved to fold-const.h.
4794 (folding_initializer): Moved to fold-const.h.
4795 (free_temp_slots): Moved to function.h.
4796 (generate_setjmp_warnings): Moved to function.h.
4797 (get_attribute_name): Moved to attribs.h.
4798 (get_identifier): Moved to stringpool.h.
4799 (get_identifier_with_length): Moved to stringpool.h.
4800 (get_inner_reference): Moved to tree.h.
4801 (gimple_alloca_call_p): Moved to calls.h.
4802 (gimplify_parameters): Moved to function.h.
4803 (highest_pow2_factor): Moved to expr.h.
4804 (indent_to): Moved to print-tree.h.
4805 (init_attributes): Moved to attribs.h.
4806 (init_dummy_function_start): Moved to function.h.
4807 (init_function_start): Moved to function.h.
4808 (init_inline_once): Moved to tree-inline.h.
4809 (init_object_sizes): Moved to tree-object-size.h.
4810 (init_temp_slots): Moved to function.h.
4811 (init_tree_optimization_optabs): Moved to optabs.h.
4812 (initialize_sizetypes): Moved to stor-layout.h.
4813 (initializer_constant_valid_for_bitfield_p): Moved to varasm.h.
4814 (initializer_constant_valid_p): Moved to varasm.h.
4815 (int_const_binop): Moved to fold-const.h.
4816 (internal_reference_types): Moved to stor-layout.h.
4817 (invert_tree_comparison): Moved to fold-const.h.
4818 (invert_truthvalue): Moved to fold-const.h.
4819 (invert_truthvalue_loc): Moved to fold-const.h.
4820 (is_tm_ending_fndecl): Moved to trans-mem.h.
4821 (is_tm_may_cancel_outer): Moved to trans-mem.h.
4822 (is_tm_pure): Moved to trans-mem.h.
4823 (is_tm_safe): Moved to trans-mem.h.
4824 (layout_decl): Moved to stor-layout.h.
4825 (layout_type): Moved to stor-layout.h.
4826 (lookup_attribute_spec): Moved to attribs.h.
4827 (make_accum_type): Moved to stor-layout.h.
4828 (make_decl_one_only): Moved to varasm.h.
4829 (make_decl_rtl): Moved to tree.h.
4830 (make_decl_rtl_for_debug): Moved to varasm.h.
4831 (make_fract_type): Moved to stor-layout.h.
4832 (make_or_reuse_sat_signed_accum_type): Moved to stor-layout.h.
4833 (make_or_reuse_sat_signed_fract_type): Moved to stor-layout.h.
4834 (make_or_reuse_sat_unsigned_accum_type): Moved to stor-layout.h.
4835 (make_or_reuse_sat_unsigned_fract_type): Moved to stor-layout.h.
4836 (make_or_reuse_signed_accum_type): Moved to stor-layout.h.
4837 (make_or_reuse_signed_fract_type): Moved to stor-layout.h.
4838 (make_or_reuse_unsigned_accum_type): Moved to stor-layout.h.
4839 (make_or_reuse_unsigned_fract_type): Moved to stor-layout.h.
4840 (make_range): Moved to fold-const.h.
4841 (make_range_step): Moved to fold-const.h.
4842 (make_sat_signed_accum_type): Moved to stor-layout.h.
4843 (make_sat_signed_fract_type): Moved to stor-layout.h.
4844 (make_sat_unsigned_accum_type): Moved to stor-layout.h.
4845 (make_sat_unsigned_fract_type): Moved to stor-layout.h.
4846 (make_signed_accum_type): Moved to stor-layout.h.
4847 (make_signed_fract_type): Moved to stor-layout.h.
4848 (make_signed_type): Moved to stor-layout.h.
4849 (make_unsigned_accum_type): Moved to stor-layout.h.
4850 (make_unsigned_fract_type): Moved to stor-layout.h.
4851 (make_unsigned_type): Moved to stor-layout.h.
4852 (mark_decl_referenced): Moved to varasm.h.
4853 (mark_referenced): Moved to varasm.h.
4854 (may_negate_without_overflow_p): Moved to fold-const.h.
4855 (maybe_get_identifier): Moved to stringpool.h.
4856 (merge_ranges): Moved to fold-const.h.
4857 (merge_weak): Moved to varasm.h.
4858 (mode_for_size_tree): Moved to stor-layout.h.
4859 (multiple_of_p): Moved to fold-const.h.
4860 (must_pass_in_stack_var_size): Moved to calls.h.
4861 (must_pass_in_stack_var_size_or_pad): Moved to calls.h.
4862 (native_encode_expr): Moved to fold-const.h.
4863 (native_interpret_expr): Moved to fold-const.h.
4864 (non_lvalue): Moved to fold-const.h.
4865 (non_lvalue_loc): Moved to fold-const.h.
4866 (normalize_offset): Moved to stor-layout.h.
4867 (normalize_rli): Moved to stor-layout.h.
4868 (notice_global_symbol): Moved to varasm.h.
4869 (omit_one_operand): Moved to fold-const.h.
4870 (omit_one_operand_loc): Moved to fold-const.h.
4871 (omit_two_operands): Moved to fold-const.h.
4872 (omit_two_operands_loc): Moved to fold-const.h.
4873 (operand_equal_p): Moved to tree-data-ref.h.
4874 (parse_input_constraint): Moved to stmt.h.
4875 (parse_output_constraint): Moved to stmt.h.
4876 (place_field): Moved to stor-layout.h.
4877 (pop_function_context): Moved to function.h.
4878 (pop_temp_slots): Moved to function.h.
4879 (pos_from_bit): Moved to stor-layout.h.
4880 (preserve_temp_slots): Moved to function.h.
4881 (print_node): Moved to print-tree.h.
4882 (print_node_brief): Moved to print-tree.h.
4883 (print_rtl): Moved to rtl.h.
4884 (process_pending_assemble_externals): Moved to varasm.h.
4885 (ptr_difference_const): Moved to fold-const.h.
4886 (push_function_context): Moved to function.h.
4887 (push_struct_function): Moved to function.h.
4888 (push_temp_slots): Moved to function.h.
4889 (record_tm_replacement): Moved to trans-mem.h.
4890 (relayout_decl): Moved to stor-layout.h.
4891 (resolve_asm_operand_names): Moved to stmt.h.
4892 (resolve_unique_section): Moved to varasm.h.
4893 (rli_size_so_far): Moved to stor-layout.h.
4894 (rli_size_unit_so_far): Moved to stor-layout.h.
4895 (round_down): Moved to fold-const.h.
4896 (round_down_loc): Moved to fold-const.h.
4897 (round_up): Moved to fold-const.h.
4898 (round_up_loc): Moved to fold-const.h.
4899 (set_decl_incoming_rtl): Moved to emit-rtl.h.
4900 (set_decl_rtl): Moved to tree.h.
4901 (set_min_and_max_values_for_integral_type): Moved to stor-layout.h.
4902 (set_user_assembler_name): Moved to varasm.h.
4903 (setjmp_call_p): Moved to calls.h.
4904 (size_binop): Moved to fold-const.h.
4905 (size_binop_loc): Moved to fold-const.h.
4906 (size_diffop): Moved to fold-const.h.
4907 (size_diffop_loc): Moved to fold-const.h.
4908 (size_int_kind): Moved to fold-const.h.
4909 (stack_protect_epilogue): Moved to function.h.
4910 (start_record_layout): Moved to stor-layout.h.
4911 (supports_one_only): Moved to varasm.h.
4912 (swap_tree_comparison): Moved to fold-const.h.
4913 (tm_malloc_replacement): Moved to trans-mem.h.
4914 (tree build_fold_addr_expr_loc): Moved to fold-const.h.
4915 (tree build_invariant_address): Moved to fold-const.h.
4916 (tree_binary_nonnegative_warnv_p): Moved to fold-const.h.
4917 (tree_binary_nonzero_warnv_p): Moved to fold-const.h.
4918 (tree_call_nonnegative_warnv_p): Moved to fold-const.h.
4919 (tree_expr_nonnegative_p): Moved to fold-const.h.
4920 (tree_expr_nonnegative_warnv_p): Moved to fold-const.h.
4921 (tree_output_constant_def): Moved to varasm.h.
4922 (tree_overlaps_hard_reg_set): Moved to stmt.h.
4923 (tree_single_nonnegative_warnv_p): Moved to fold-const.h.
4924 (tree_single_nonzero_warnv_p): Moved to fold-const.h.
4925 (tree_swap_operands_p): Moved to fold-const.h.
4926 (tree_unary_nonnegative_warnv_p): Moved to fold-const.h.
4927 (tree_unary_nonzero_warnv_p): Moved to fold-const.h.
4928 (update_alignment_for_field): Moved to stor-layout.h.
4929 (use_register_for_decl): Moved to function.h.
4930 (variable_size): Moved to rtl.h.
4931 (vector_type_mode): Moved to stor-layout.h.
4932 * cgraph.h: Corresponding changes.
4933 * emit-rtl.h: Corresponding changes.
4934 * expr.h: Corresponding changes.
4935 * function.h: Corresponding changes.
4936 * optabs.h: Corresponding changes.
4937 * trans-mem.h: Corresponding changes.
4938 Protect against multiple inclusion.
4939 * tree-inline.h: Corresponding changes.
4940 * tree-iterator.h: Corresponding changes.
4941 * tree-dfa.h: Include expr.h.
4942 * tree-ssanames.h: Include stringpool.h.
4943 * attribs.h: New file.
4944 * calls.h: New file.
4945 * fold-const.h: New file.
4946 * gcc-symtab.h: New file.
4947 * print-rtl.h: New file.
4948 * print-tree.h: New file.
4950 * stor-layout.h: New file.
4951 * strinpool.h: New file.
4952 * tree-nested.h: New file
4953 * tree-object-size.h: New file.
4954 * varasm.h: New file.
4956 2013-11-14 Diego Novillo <dnovillo@google.com>
4958 * alias.c: Include varasm.h.
4960 * asan.c: Include calls.h.
4961 Include stor-layout.h.
4963 * attribs.c: Include stringpool.h.
4965 Include stor-layout.h.
4966 * builtins.c: Include stringpool.h.
4967 Include stor-layout.h.
4970 Include tree-object-size.h.
4971 * calls.c: Include stor-layout.h.
4973 Include stringpool.h.
4975 * cfgexpand.c: Include stringpool.h.
4977 Include stor-layout.h.
4979 Include print-tree.h.
4980 * cgraph.c: Include varasm.h.
4982 Include print-tree.h.
4983 * cgraphclones.c: Include stringpool.h.
4986 Move inclusion of rtl.h earlier in the file.
4987 * cgraphunit.c: Include varasm.h.
4988 Include stor-layout.h.
4989 Include stringpool.h.
4990 * cilk-common.c: Include stringpool.h.
4991 Include stor-layout.h.
4992 * combine.c: Include stor-layout.h.
4993 * config/aarch64/aarch64-builtins.c: Include stor-layout.h.
4994 Include stringpool.h.
4996 * config/aarch64/aarch64.c: Include stringpool.h.
4997 Include stor-layout.h.
5000 * config/alpha/alpha.c: Include stor-layout.h.
5003 * config/arc/arc.c: Include varasm.h.
5004 Include stor-layout.h.
5005 Include stringpool.h.
5007 * config/arm/arm.c: Include stringpool.h.
5008 Include stor-layout.h.
5011 * config/avr/avr-c.c: Include stor-layout.h.
5012 * config/avr/avr-log.c: Include print-tree.h.
5013 * config/avr/avr.c: Include print-tree.h.
5015 Include stor-layout.h.
5016 Include stringpool.h.
5017 * config/bfin/bfin.c: Include varasm.h.
5019 * config/c6x/c6x.c: Include stor-layout.h.
5022 Include stringpool.h.
5023 * config/cr16/cr16.c: Include stor-layout.h.
5025 * config/cris/cris.c: Include varasm.h.
5026 Include stor-layout.h.
5029 * config/darwin.c: Include stringpool.h.
5031 Include stor-layout.h.
5032 * config/epiphany/epiphany.c: Include stor-layout.h.
5035 Include stringpool.h.
5036 * config/fr30/fr30.c: Include stor-layout.h.
5038 * config/frv/frv.c: Include varasm.h.
5039 Include stor-layout.h.
5040 Include stringpool.h.
5041 * config/h8300/h8300.c: Include stor-layout.h.
5044 Include stringpool.h.
5045 * config/i386/i386.c: Include stringpool.h.
5048 Include stor-layout.h.
5050 * config/i386/winnt-cxx.c: Include stringpool.h.
5052 * config/i386/winnt.c: Include stringpool.h.
5054 * config/ia64/ia64-c.c: Include stringpool.h.
5055 * config/ia64/ia64.c: Include stringpool.h.
5056 Include stor-layout.h.
5059 * config/iq2000/iq2000.c: Include stor-layout.h.
5062 * config/lm32/lm32.c: Include calls.h.
5063 * config/m32c/m32c.c: Include stor-layout.h.
5066 * config/m32r/m32r.c: Include stor-layout.h.
5068 Include stringpool.h.
5070 * config/m68k/m68k.c: Include calls.h.
5071 Include stor-layout.h.
5073 * config/mcore/mcore.c: Include stor-layout.h.
5075 Include stringpool.h.
5077 * config/mep/mep.c: Include varasm.h.
5079 Include stringpool.h.
5080 Include stor-layout.h.
5081 * config/microblaze/microblaze.c: Include varasm.h.
5082 Include stor-layout.h.
5084 * config/mips/mips.c: Include varasm.h.
5085 Include stringpool.h.
5086 Include stor-layout.h.
5088 * config/mmix/mmix.c: Include varasm.h.
5089 Include stor-layout.h.
5091 * config/mn10300/mn10300.c: Include stor-layout.h.
5094 * config/moxie/moxie.c: Include stor-layout.h.
5097 * config/msp430/msp430.c: Include stor-layout.h.
5099 * config/nds32/nds32.c: Include stor-layout.h.
5102 * config/pa/pa.c: Include stor-layout.h.
5103 Include stringpool.h.
5106 * config/pdp11/pdp11.c: Include stor-layout.h.
5109 * config/picochip/picochip.c: Include calls.h.
5110 Include stor-layout.h.
5111 Include stringpool.h.
5113 * config/rl78/rl78.c: Include varasm.h.
5114 Include stor-layout.h.
5116 * config/rs6000/rs6000-c.c: Include stor-layout.h.
5117 Include stringpool.h.
5118 * config/rs6000/rs6000.c: Include stringpool.h.
5119 Include stor-layout.h.
5121 Include print-tree.h.
5123 * config/rx/rx.c: Include varasm.h.
5124 Include stor-layout.h.
5126 * config/s390/s390.c: Include print-tree.h.
5127 Include stringpool.h.
5128 Include stor-layout.h.
5131 * config/score/score.c: Include stringpool.h.
5134 Include stor-layout.h.
5135 * config/sh/sh-c.c: Include stringpool.h.
5136 Include attribs.h.h.
5137 * config/sh/sh.c: Include stringpool.h.
5138 Include stor-layout.h.
5141 * config/sol2-c.c: Include stringpool.h.
5143 * config/sol2-cxx.c: Include stringpool.h.
5144 * config/sol2.c: Include stringpool.h.
5146 * config/sparc/sparc.c: Include stringpool.h.
5147 Include stor-layout.h.
5150 * config/spu/spu-c.c: Include stringpool.h.
5151 * config/spu/spu.c: Include stringpool.h.
5152 Include stor-layout.h.
5155 * config/stormy16/stormy16.c: Include stringpool.h.
5156 Include stor-layout.h.
5159 * config/tilegx/tilegx.c: Include stringpool.h.
5160 Include stor-layout.h.
5163 * config/tilepro/tilepro.c: Include stringpool.h.
5164 Include stor-layout.h.
5167 * config/v850/v850-c.c: Include stringpool.h.
5169 * config/v850/v850.c: Include stringpool.h.
5170 Include stor-layout.h.
5173 * config/vax/vax.c: Include calls.h.
5175 * config/vms/vms.c: Include stringpool.h.
5176 * config/vxworks.c: Include stringpool.h.
5177 * config/xtensa/xtensa.c: Include stringpool.h.
5178 Include stor-layout.h.
5181 * convert.c: Include stor-layout.h.
5182 * coverage.c: Include stringpool.h.
5183 Include stor-layout.h.
5184 * dbxout.c: Include varasm.h.
5185 Include stor-layout.h.
5186 * dojump.c: Include stor-layout.h.
5187 * dse.c: Include stor-layout.h.
5188 * dwarf2asm.c: Include stringpool.h.
5190 * dwarf2cfi.c: Include stor-layout.h.
5191 * dwarf2out.c: Include rtl.h.
5192 Include stringpool.h.
5193 Include stor-layout.h.
5197 Move inclusion of rtl.h earlier in the file.
5198 * emit-rtl.c: Include varasm.h.
5199 * except.c: Include stringpool.h.
5200 Include stor-layout.h.
5201 * explow.c: Include stor-layout.h.
5202 * expmed.c: Include stor-layout.h.
5203 * expr.c: Include stringpool.h.
5204 Include stor-layout.h.
5207 * final.c: Include varasm.h.
5208 * fold-const.c: Include stor-layout.h.
5210 Include tree-iterator.h.
5211 * function.c: Include stor-layout.h.
5213 Include stringpool.h.
5214 * genattrtab.c (write_header): Emit includes for varasm.h,
5215 stor-layout.h and calls.h.
5216 * genautomata.c (main): Likewise.
5217 * genemit.c: Likewise.
5218 * genopinit.c: Likewise.
5219 * genoutput.c (output_prologue): Likewise.
5220 * genpeep.c: Likewise.
5221 * genpreds.c (write_insn_preds_c): Likewise.
5222 * gengtype.c (open_base_files): Add stringpool.h.
5223 * gimple-expr.c: Include stringpool.h.
5224 Include stor-layout.h.
5225 * gimple-fold.c: Include stringpool.h.
5228 Include stor-layout.h.
5229 * gimple-low.c: Include tree-nested.h.
5231 * gimple-pretty-print.c: Include stringpool.h.
5232 * gimple-ssa-strength-reduction.c: Include stor-layout.h.
5234 * gimple-walk.c: Include stmt.h.
5235 * gimple.c: Include calls.h.
5237 Include stor-layout.h.
5238 * gimplify.c: Include stringpool.h.
5241 Include stor-layout.h.
5243 Include print-tree.h.
5245 * gimplify-me.c: Include stmt.h
5246 Include stor-layout.h
5247 * internal-fn.c: Include stor-layout.h.
5248 * ipa-devirt.c: Include print-tree.h.
5250 * ipa-inline-analysis.c: Include stor-layout.h.
5251 Include stringpool.h.
5252 Include print-tree.h.
5253 * ipa-inline.c: Include trans-mem.h.
5255 * ipa-prop.c: Include expr.h.
5256 Include stor-layout.h.
5257 Include print-tree.h.
5258 * ipa-pure-const.c: Include print-tree.h.
5260 * ipa-reference.c: Include calls.h.
5261 * ipa-split.c: Include stringpool.h.
5264 * ipa.c: Include calls.h.
5265 Include stringpool.h.
5266 * langhooks.c: Include stringpool.h.
5268 * lto-cgraph.c: Include stringpool.h.
5269 * lto-streamer-in.c: Include stringpool.h.
5270 * lto-streamer-out.c: Include stor-layout.h.
5271 Include stringpool.h.
5272 * omp-low.c: Include stringpool.h.
5273 Include stor-layout.h.
5275 * optabs.c: Include stor-layout.h.
5276 Include stringpool.h.
5278 * passes.c: Include varasm.h.
5279 * predict.c: Include calls.h.
5280 * print-rtl.c: Include print-tree.h.
5281 * print-tree.c: Include varasm.h.
5282 Include print-rtl.h.
5283 Include stor-layout.h.
5284 * realmpfr.c: Include stor-layout.h.
5285 * reg-stack.c: Include varasm.h.
5286 * sdbout.c: Include varasm.h.
5287 Include stor-layout.h.
5288 * simplify-rtx.c: Include varasm.h.
5289 * stmt.c: Include varasm.h.
5290 Include stor-layout.h.
5291 * stor-layout.c: Include stor-layout.h.
5292 Include stringpool.h.
5294 Include print-tree.h.
5295 * symtab.c: Include rtl.h.
5296 Include print-tree.h.
5300 * targhooks.c: Include stor-layout.h.
5302 * toplev.c: Include varasm.h.
5303 Include tree-inline.h.
5304 * trans-mem.c: Include calls.h.
5308 * tree-affine.c: Include expr.h.
5309 * tree-browser.c: Include print-tree.h.
5310 * tree-call-cdce.c: Include stor-layout.h.
5311 * tree-cfg.c: Include trans-mem.h.
5312 Include stor-layout.h.
5313 Include print-tree.h.
5314 * tree-complex.c: Include stor-layout.h.
5315 * tree-data-ref.c: Include expr.h.
5316 * tree-dfa.c: Include stor-layout.h.
5317 * tree-eh.c: Include expr.h.
5319 * tree-emutls.c: Include stor-layout.h.
5321 * tree-if-conv.c: Include stor-layout.h.
5322 * tree-inline.c: Include stor-layout.h.
5324 * tree-loop-distribution.c: Include stor-layout.h.
5325 * tree-nested.c: Include stringpool.h.
5326 Include stor-layout.h.
5327 * tree-object-size.c: Include tree-object-size.h.
5328 * tree-outof-ssa.c: Include stor-layout.h.
5329 * tree-parloops.c: Include stor-layout.h.
5330 Include tree-nested.h.
5331 * tree-pretty-print.c: Include stor-layout.h.
5333 * tree-profile.c: Include varasm.h.
5334 Include tree-nested.h.
5335 * tree-scalar-evolution.c: Include expr.h.
5336 * tree-sra.c: Include stor-layout.h.
5337 * tree-ssa-address.c: Include stor-layout.h.
5338 * tree-ssa-ccp.c: Include stor-layout.h.
5339 * tree-ssa-dce.c: Include calls.h.
5340 * tree-ssa-dom.c: Include stor-layout.h.
5341 * tree-ssa-forwprop.c: Include stor-layout.h.
5342 * tree-ssa-ifcombine.c: Include stor-layout.h.
5343 * tree-ssa-loop-ivopts.c: Include stor-layout.h.
5344 * tree-ssa-loop-niter.c: Include calls.h.
5346 * tree-ssa-loop-prefetch.c: Include stor-layout.h.
5347 * tree-ssa-math-opts.c: Include stor-layout.h.
5348 * tree-ssa-operands.c: Include stmt.h.
5349 Include print-tree.h.
5350 * tree-ssa-phiopt.c: Include stor-layout.h.
5351 * tree-ssa-reassoc.c: Include stor-layout.h.
5352 * tree-ssa-sccvn.c: Include stor-layout.h.
5353 * tree-ssa-sink.c: Include stor-layout.h.
5354 * tree-ssa-strlen.c: Include stor-layout.h.
5355 * tree-ssa-structalias.c: Include stor-layout.h.
5357 * tree-ssa-tail-merge.c: Include stor-layout.h.
5358 Include trans-mem.h.
5359 * tree-ssa-uncprop.c: Include stor-layout.h.
5360 * tree-ssa.c: Include stor-layout.h.
5361 * tree-ssanames.c: Include stor-layout.h.
5362 * tree-streamer-in.c: Include stringpool.h.
5363 * tree-streamer-out.c: Include stor-layout.h.
5364 * tree-switch-conversion.c: Include varasm.h.
5365 Include stor-layout.h.
5366 * tree-tailcall.c: Include stor-layout.h.
5367 * tree-vect-data-refs.c: Include stor-layout.h.
5368 * tree-vect-generic.c: Include stor-layout.h.
5369 * tree-vect-loop.c: Include stor-layout.h.
5370 * tree-vect-patterns.c: Include stor-layout.h.
5371 * tree-vect-slp.c: Include stor-layout.h.
5372 * tree-vect-stmts.c: Include stor-layout.h.
5373 * tree-vectorizer.c: Include stor-layout.h.
5374 * tree-vrp.c: Include stor-layout.h.
5376 * tree.c: Include stor-layout.h.
5380 * tsan.c: Include expr.h.
5381 * ubsan.c: Include stor-layout.h.
5382 Include stringpool.h.
5383 * value-prof.c: Include tree-nested.h.
5385 * var-tracking.c: Include varasm.h.
5386 Include stor-layout.h.
5387 * varasm.c: Include stor-layout.h.
5388 Include stringpool.h.
5389 Include gcc-symtab.h.
5391 * varpool.c: Include varasm.h.
5392 * vmsdbgout.c: Include varasm.h.
5393 * xcoffout.c: Include varasm.h.
5395 2013-11-14 Joern Rennecke <joern.rennecke@embecosm.com>
5397 * config/arc/arc.md (doloop_begin_i): Remove extra alignment;
5400 2013-11-14 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
5402 * config/rs6000/sysv4le.h (LINUX64_DEFAULT_ABI_ELFv2): Define.
5404 2013-11-14 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
5405 Alan Modra <amodra@gmail.com>
5407 * config/rs6000/rs6000.h (RS6000_SAVE_AREA): Handle ABI_ELFv2.
5408 (RS6000_SAVE_TOC): Remove.
5409 (RS6000_TOC_SAVE_SLOT): New macro.
5410 * config/rs6000/rs6000.c (rs6000_parm_offset): New function.
5411 (rs6000_parm_start): Use it.
5412 (rs6000_function_arg_advance_1): Likewise.
5413 (rs6000_emit_prologue): Use RS6000_TOC_SAVE_SLOT.
5414 (rs6000_emit_epilogue): Likewise.
5415 (rs6000_call_aix): Likewise.
5416 (rs6000_output_function_prologue): Do not save/restore r11
5417 around calling _mcount for ABI_ELFv2.
5419 2013-11-14 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
5420 Alan Modra <amodra@gmail.com>
5422 * config/rs6000/rs6000-protos.h (rs6000_reg_parm_stack_space):
5424 * config/rs6000/rs6000.h (RS6000_REG_SAVE): Remove.
5425 (REG_PARM_STACK_SPACE): Call rs6000_reg_parm_stack_space.
5426 * config/rs6000/rs6000.c (rs6000_parm_needs_stack): New function.
5427 (rs6000_function_parms_need_stack): Likewise.
5428 (rs6000_reg_parm_stack_space): Likewise.
5429 (rs6000_function_arg): Do not replace BLKmode by Pmode when
5430 returning a register argument.
5432 2013-11-14 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
5433 Michael Gschwind <mkg@us.ibm.com>
5435 * config/rs6000/rs6000.h (FP_ARG_MAX_RETURN): New macro.
5436 (ALTIVEC_ARG_MAX_RETURN): Likewise.
5437 (FUNCTION_VALUE_REGNO_P): Use them.
5438 * config/rs6000/rs6000.c (TARGET_RETURN_IN_MSB): Define.
5439 (rs6000_return_in_msb): New function.
5440 (rs6000_return_in_memory): Handle ELFv2 homogeneous aggregates.
5441 Handle aggregates of up to 16 bytes for ELFv2.
5442 (rs6000_function_value): Handle ELFv2 homogeneous aggregates.
5444 2013-11-14 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
5445 Michael Gschwind <mkg@us.ibm.com>
5447 * config/rs6000/rs6000.h (AGGR_ARG_NUM_REG): Define.
5448 * config/rs6000/rs6000.c (rs6000_aggregate_candidate): New function.
5449 (rs6000_discover_homogeneous_aggregate): Likewise.
5450 (rs6000_function_arg_boundary): Handle homogeneous aggregates.
5451 (rs6000_function_arg_advance_1): Likewise.
5452 (rs6000_function_arg): Likewise.
5453 (rs6000_arg_partial_bytes): Likewise.
5454 (rs6000_psave_function_arg): Handle BLKmode arguments.
5456 2013-11-14 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
5457 Michael Gschwind <mkg@us.ibm.com>
5459 * config/rs6000/rs6000.h (AGGR_ARG_NUM_REG): Define.
5460 * config/rs6000/rs6000.c (rs6000_aggregate_candidate): New function.
5461 (rs6000_discover_homogeneous_aggregate): Likewise.
5462 (rs6000_function_arg_boundary): Handle homogeneous aggregates.
5463 (rs6000_function_arg_advance_1): Likewise.
5464 (rs6000_function_arg): Likewise.
5465 (rs6000_arg_partial_bytes): Likewise.
5466 (rs6000_psave_function_arg): Handle BLKmode arguments.
5468 2013-11-14 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
5470 * config/rs6000/rs6000.c (machine_function): New member
5472 (rs6000_emit_prologue): Set r2_setup_needed if necessary.
5473 (rs6000_output_mi_thunk): Set r2_setup_needed.
5474 (rs6000_output_function_prologue): Output global entry point
5475 prologue and local entry point marker if needed for ABI_ELFv2.
5476 Output -mprofile-kernel code here.
5477 (output_function_profiler): Do not output -mprofile-kernel
5478 code here; moved to rs6000_output_function_prologue.
5479 (rs6000_file_start): Output ".abiversion 2" for ABI_ELFv2.
5481 (rs6000_emit_move): Do not handle dot symbols for ABI_ELFv2.
5482 (rs6000_output_function_entry): Likewise.
5483 (rs6000_assemble_integer): Likewise.
5484 (rs6000_elf_encode_section_info): Likewise.
5485 (rs6000_elf_declare_function_name): Do not create dot symbols
5486 or .opd section for ABI_ELFv2.
5488 (rs6000_trampoline_size): Update for ABI_ELFv2 trampolines.
5489 (rs6000_trampoline_init): Likewise.
5490 (rs6000_elf_file_end): Call file_end_indicate_exec_stack for ABI_ELFv2.
5492 (rs6000_call_aix): Handle ELFv2 indirect calls. Do not check
5493 for function descriptors in ABI_ELFv2.
5495 * config/rs6000/rs6000.md ("*call_indirect_aix<mode>"): Support
5496 on ABI_AIX only, not ABI_ELFv2.
5497 ("*call_value_indirect_aix<mode>"): Likewise.
5498 ("*call_indirect_elfv2<mode>"): New pattern.
5499 ("*call_value_indirect_elfv2<mode>"): Likewise.
5501 * config/rs6000/predicates.md ("symbol_ref_operand"): Do not
5502 check for function descriptors in ABI_ELFv2.
5503 ("current_file_function_operand"): Likewise.
5505 * config/rs6000/ppc-asm.h [__powerpc64__ && _CALL_ELF == 2]:
5507 (FUNC_NAME): Define ELFv2 variant.
5508 (JUMP_TARGET): Likewise.
5509 (FUNC_START): Likewise.
5510 (HIDDEN_FUNC): Likewise.
5511 (FUNC_END): Likeiwse.
5513 2013-11-14 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
5515 * config.gcc [powerpc*-*-* | rs6000-*-*]: Support --with-abi=elfv1
5516 and --with-abi=elfv2.
5517 * config/rs6000/option-defaults.h (OPTION_DEFAULT_SPECS): Add "abi".
5518 * config/rs6000/rs6000.opt (mabi=elfv1): New option.
5519 (mabi=elfv2): Likewise.
5520 * config/rs6000/rs6000-opts.h (enum rs6000_abi): Add ABI_ELFv2.
5521 * config/rs6000/linux64.h (DEFAULT_ABI): Do not hard-code to AIX_ABI
5523 (ELFv2_ABI_CHECK): New macro.
5524 (SUBSUBTARGET_OVERRIDE_OPTIONS): Use it to decide whether to set
5525 rs6000_current_abi to ABI_AIX or ABI_ELFv2.
5526 (GLIBC_DYNAMIC_LINKER64): Support ELFv2 ld.so version.
5527 * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Predefine
5528 _CALL_ELF and __STRUCT_PARM_ALIGN__ if appropriate.
5530 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Handle ABI_ELFv2.
5531 (debug_stack_info): Likewise.
5532 (rs6000_file_start): Treat ABI_ELFv2 the same as ABI_AIX.
5533 (rs6000_legitimize_tls_address): Likewise.
5534 (rs6000_conditional_register_usage): Likewise.
5535 (rs6000_emit_move): Likewise.
5536 (init_cumulative_args): Likewise.
5537 (rs6000_function_arg_advance_1): Likewise.
5538 (rs6000_function_arg): Likewise.
5539 (rs6000_arg_partial_bytes): Likewise.
5540 (rs6000_output_function_entry): Likewise.
5541 (rs6000_assemble_integer): Likewise.
5542 (rs6000_savres_strategy): Likewise.
5543 (rs6000_stack_info): Likewise.
5544 (rs6000_function_ok_for_sibcall): Likewise.
5545 (rs6000_emit_load_toc_table): Likewise.
5546 (rs6000_savres_routine_name): Likewise.
5547 (ptr_regno_for_savres): Likewise.
5548 (rs6000_emit_prologue): Likewise.
5549 (rs6000_emit_epilogue): Likewise.
5550 (rs6000_output_function_epilogue): Likewise.
5551 (output_profile_hook): Likewise.
5552 (output_function_profiler): Likewise.
5553 (rs6000_trampoline_size): Likewise.
5554 (rs6000_trampoline_init): Likewise.
5555 (rs6000_elf_output_toc_section_asm_op): Likewise.
5556 (rs6000_elf_encode_section_info): Likewise.
5557 (rs6000_elf_reloc_rw_mask): Likewise.
5558 (rs6000_elf_declare_function_name): Likewise.
5559 (rs6000_function_arg_boundary): Treat ABI_ELFv2 the same as ABI_AIX,
5560 except that rs6000_compat_align_parm is always assumed false.
5561 (rs6000_gimplify_va_arg): Likewise.
5562 (rs6000_call_aix): Update comment.
5563 (rs6000_sibcall_aix): Likewise.
5564 * config/rs6000/rs6000.md ("tls_gd_aix<TLSmode:tls_abi_suffix>"):
5565 Treat ABI_ELFv2 the same as ABI_AIX.
5566 ("*tls_gd_call_aix<TLSmode:tls_abi_suffix>"): Likewise.
5567 ("tls_ld_aix<TLSmode:tls_abi_suffix>"): Likewise.
5568 ("*tls_ld_call_aix<TLSmode:tls_abi_suffix>"): Likewise.
5569 ("load_toc_aix_si"): Likewise.
5570 ("load_toc_aix_di"): Likewise.
5572 ("call_value"): Likewise.
5573 ("*call_local_aix<mode>"): Likewise.
5574 ("*call_value_local_aix<mode>"): Likewise.
5575 ("*call_nonlocal_aix<mode>"): Likewise.
5576 ("*call_value_nonlocal_aix<mode>"): Likewise.
5577 ("*call_indirect_aix<mode>"): Likewise.
5578 ("*call_value_indirect_aix<mode>"): Likewise.
5579 ("sibcall"): Likewise.
5580 ("sibcall_value"): Likewise.
5581 ("*sibcall_aix<mode>"): Likewise.
5582 ("*sibcall_value_aix<mode>"): Likewise.
5583 * config/rs6000/predicates.md ("symbol_ref_operand"): Likewise.
5584 ("current_file_function_operand"): Likewise.
5586 2013-11-14 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
5588 * config/rs6000/rs6000.c (rs6000_arg_partial_bytes): Simplify logic
5589 by making use of the fact that for vector / floating point arguments
5590 passed both in VRs/FPRs and in the fixed parameter area, the partial
5591 bytes mechanism is in fact not used.
5593 2013-11-14 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
5595 * config/rs6000/rs6000.c (rs6000_psave_function_arg): New function.
5596 (rs6000_finish_function_arg): Likewise.
5597 (rs6000_function_arg): Use rs6000_psave_function_arg and
5598 rs6000_finish_function_arg to handle both vector and floating
5599 point arguments that are also passed in GPRs / the stack.
5601 2013-11-14 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
5603 * config/rs6000/rs6000.c (USE_FP_FOR_ARG_P): Remove TYPE argument.
5604 (USE_ALTIVEC_FOR_ARG_P): Likewise.
5605 (rs6000_darwin64_record_arg_advance_recurse): Update uses.
5606 (rs6000_function_arg_advance_1):Likewise.
5607 (rs6000_darwin64_record_arg_recurse): Likewise.
5608 (rs6000_function_arg): Likewise.
5609 (rs6000_arg_partial_bytes): Likewise.
5611 2013-11-14 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
5613 * config/rs6000/rs6000.c (rs6000_option_override_internal): Replace
5614 "DEFAULT_ABI != ABI_AIX" test by testing for ABI_V4 or ABI_DARWIN.
5615 (rs6000_savres_strategy): Likewise.
5616 (rs6000_return_addr): Likewise.
5617 (rs6000_emit_load_toc_table): Replace "DEFAULT_ABI != ABI_AIX" by
5618 testing for ABI_V4 (since ABI_DARWIN is impossible here).
5619 (rs6000_emit_prologue): Likewise.
5620 (legitimate_lo_sum_address_p): Simplify DEFAULT_ABI test.
5621 (rs6000_elf_declare_function_name): Remove duplicated test.
5622 * config/rs6000/rs6000.md ("load_toc_v4_PIC_1"): Explicitly test
5623 for ABI_V4 (instead of "DEFAULT_ABI != ABI_AIX" test).
5624 ("load_toc_v4_PIC_1_normal"): Likewise.
5625 ("load_toc_v4_PIC_1_476"): Likewise.
5626 ("load_toc_v4_PIC_1b"): Likewise.
5627 ("load_toc_v4_PIC_1b_normal"): Likewise.
5628 ("load_toc_v4_PIC_1b_476"): Likewise.
5629 ("load_toc_v4_PIC_2"): Likewise.
5630 ("load_toc_v4_PIC_3b"): Likewise.
5631 ("load_toc_v4_PIC_3c"): Likewise.
5632 * config/rs6000/rs6000.h (RS6000_REG_SAVE): Simplify DEFAULT_ABI test.
5633 (RS6000_SAVE_AREA): Likewise.
5634 (FP_ARG_MAX_REG): Likewise.
5635 (RETURN_ADDRESS_OFFSET): Likewise.
5636 * config/rs6000/sysv.h (TARGET_TOC): Test for ABI_V4 instead
5638 (SUBTARGET_OVERRIDE_OPTIONS): Likewise.
5639 (MINIMAL_TOC_SECTION_ASM_OP): Likewise.
5641 2013-11-14 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
5643 * config/rs6000/rs6000.c (rs6000_call_indirect_aix): Rename to ...
5644 (rs6000_call_aix): ... this. Handle both direct and indirect calls.
5645 Create call insn directly instead of via various gen_... routines.
5646 Mention special registers used by the call in CALL_INSN_FUNCTION_USAGE.
5647 (rs6000_sibcall_aix): New function.
5648 * config/rs6000/rs6000.md (TOC_SAVE_OFFSET_32BIT): Remove.
5649 (TOC_SAVE_OFFSET_64BIT): Likewise.
5650 (AIX_FUNC_DESC_TOC_32BIT): Likewise.
5651 (AIX_FUNC_DESC_TOC_64BIT): Likewise.
5652 (AIX_FUNC_DESC_SC_32BIT): Likewise.
5653 (AIX_FUNC_DESC_SC_64BIT): Likewise.
5654 ("call" expander): Call rs6000_call_aix.
5655 ("call_value" expander): Likewise.
5656 ("call_indirect_aix<ptrsize>"): Replace this pattern ...
5657 ("call_indirect_aix<ptrsize>_nor11"): ... and this pattern ...
5658 ("*call_indirect_aix<mode>"): ... by this insn pattern.
5659 ("call_value_indirect_aix<ptrsize>"): Replace this pattern ...
5660 ("call_value_indirect_aix<ptrsize>_nor11"): ... and this pattern ...
5661 ("*call_value_indirect_aix<mode>"): ... by this insn pattern.
5662 ("*call_nonlocal_aix32", "*call_nonlocal_aix64"): Replace by ...
5663 ("*call_nonlocal_aix<mode>"): ... this pattern.
5664 ("*call_value_nonlocal_aix32", "*call_value_nonlocal_aix64"): Replace
5665 ("*call_value_nonlocal_aix<mode>"): ... by this pattern.
5666 ("*call_local_aix<mode>"): New insn pattern.
5667 ("*call_value_local_aix<mode>"): Likewise.
5668 ("sibcall" expander): Call rs6000_sibcall_aix.
5669 ("sibcall_value" expander): Likewise. Move earlier in file.
5670 ("*sibcall_nonlocal_aix<mode>"): Replace by ...
5671 ("*sibcall_aix<mode>"): ... this pattern.
5672 ("*sibcall_value_nonlocal_aix<mode>"): Replace by ...
5673 ("*sibcall_value_aix<mode>"): ... this pattern.
5674 * config/rs6000/rs6000-protos.h (rs6000_call_indirect_aix): Remove.
5675 (rs6000_call_aix): Add prototype.
5676 (rs6000_sibcall_aix): Likewise.
5678 2013-11-14 Jakub Jelinek <jakub@redhat.com>
5681 * asan.c (asan_emit_stack_protection): Ensure -fsection-anchors
5682 isn't confused by the artificial decl.
5684 2013-11-14 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
5686 * config/rs6000/rs6000.c (rs6000_emit_prologue): Do not place a
5687 RTX_FRAME_RELATED_P marker on the UNSPEC_MOVESI_FROM_CR insn.
5688 Instead, add USEs of all modified call-saved CR fields to the
5689 insn storing the result to the stack slot, and provide an
5690 appropriate REG_FRAME_RELATED_EXPR for that insn.
5691 * config/rs6000/rs6000.md ("*crsave"): New insn pattern.
5692 * config/rs6000/predicates.md ("crsave_operation"): New predicate.
5694 2013-11-14 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
5695 Alan Modra <amodra@gmail.com>
5697 * function.c (assign_parms): Use all.reg_parm_stack_space instead
5698 of re-evaluating REG_PARM_STACK_SPACE target macro.
5699 (locate_and_pad_parm): New parameter REG_PARM_STACK_SPACE. Use it
5700 instead of evaluating target macro REG_PARM_STACK_SPACE every time.
5701 (assign_parm_find_entry_rtl): Update call.
5702 * calls.c (initialize_argument_information): Update call.
5703 (emit_library_call_value_1): Likewise.
5704 * expr.h (locate_and_pad_parm): Update prototype.
5706 2013-11-14 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
5708 * calls.c (store_unaligned_arguments_into_pseudos): Skip PARALLEL
5711 2013-11-14 DJ Delorie <dj@redhat.com>
5713 * config/rx/rx.c (rx_mode_dependent_address_p): Allow offsets up
5716 2013-11-14 Jeff Law <law@redhat.com>
5718 * tree-ssa-threadedge.c (thread_through_normal_block): Only push the
5719 EDGE_START_JUMP_THREAD marker if the jump threading path is empty.
5721 2013-11-14 James Greenhalgh <james.greenhalgh@arm.com>
5723 * doc/invoke.texi: Update documentation for AArch64's -mcpu
5726 2013-11-14 James Greenhalgh <james.greenhalgh@arm.com>
5728 * config/aarch64/aarch64-cores.def (example-1): Remove.
5729 (example-2): Likewise.
5730 * config/aarch64/aarch64-tune.md: Regenerate.
5731 * config/aarch64/aarch64.md: Do not include "large.md" or "small.md".
5732 (generic_sched): Remove "large", "small".
5733 * config/aarch64/large.md: Delete.
5734 * config/aarch64/small.md: Delete.
5736 2013-11-14 James Greenhalgh <james.greenhalgh@arm.com>
5738 * config/aarch64/aarch64-cores.def (cortex-a57): Tune for cortexa15.
5739 * config/aarch64/aarch64-tune.md: Regenerate.
5740 * config/aarch64/aarch64.md: Include cortex-a15 pipeline model.
5741 (generic_sched): "no" if we are tuning for cortexa15.
5742 * config/arm/cortex-a15.md: Include cortex-a15-neon.md by
5745 2013-11-14 James Greenhalgh <james.greenhalgh@arm.com>
5747 * config/aarch64/aarch64-arches.def (armv8-a): Tune for cortex-a53.
5748 * config/aarch64/aarch64.md: Do not include aarch64-generic.md.
5749 * config/aarch64/aarch64.c (aarch64_tune): Initialize to cortexa53.
5750 (all_cores): Use cortexa53 when tuning for "generic".
5751 (aarch64_override_options): Fix comment.
5752 * config/aarch64/aarch64.h (TARGET_CPU_DEFAULT): Set to cortexa53.
5753 * config/aarch64/aarch64-generic.md: Delete.
5755 2013-11-14 James Greenhalgh <james.greenhalgh@arm.com>
5757 * config/aarch64/aarch64.c (all_architectures): Remove "generic".
5759 2013-11-14 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
5761 * config/aarch64/aarch64.c: Include aarch-cost-tables.h.
5762 (generic_rtx_cost_table): Remove.
5763 (aarch64_rtx_costs): Use fields from cpu_cost_table.
5764 * config/aarch64/aarch64-protos.h (tune_params): Use cpu_cost_table for
5766 (cpu_rtx_cost_table): Remove.
5768 2013-11-14 Julian Brown <julian@codesourcery.com>
5769 Joey Ye <joey.ye@arm.com>
5771 * config/arm/arm.c (arm_cortex_m_branch_cost): New.
5772 (arm_v7m_tune): New.
5773 (arm_slowmul_tune, arm_fastmul_tune, arm_strongarm_tune, arm_9e_tune,
5774 arm_v6t2_tune, arm_cortex_tune, arm_cortex_a15_tune,
5775 arm_cortex_a5_tune, arm_v6m_tune): Add comments for Sched adj cost.
5776 * config/arm/arm-cores.def (cortex-m4, cortex-m3): Use arm_v7m_tune.
5778 2013-11-14 Kirill Yukhin <kirill.yukhin@intel.com>
5781 * config/ia64/ia64.c (ia64_split_tmode_move): Relax `dead'
5784 2013-11-14 Jakub Jelinek <jakub@redhat.com>
5785 Uros Bizjak <ubizjak@gmail.com>
5788 * config/i386/i386.md (*anddi_2): Only allow CCZmode if
5789 operands[2] satisfies_constraint_Z that might have bit 31 set.
5791 2013-11-13 Jeff Law <law@redhat.com>
5793 PR tree-optimization/59102
5794 * gimple-ssa-isolate-paths.c
5795 (insert_trap_and_remove_trailing_statments): Ensure STMT is a
5796 gimple assignment before looking at gimple_assign_lhs.
5798 2013-11-13 Vladimir Makarov <vmakarov@redhat.com>
5800 * ira.c: Add comment about threads at the top of file.
5802 2013-11-13 Vladimir Makarov <vmakarov@redhat.com>
5804 * ira-color.c (coalesce_allocnos): Don't allocate and free
5807 2013-11-14 Tom de Vries <tom@codesourcery.com>
5809 * tree-ssa-tail-merge.c (gimple_equal_p): Add test for structural
5810 equality for GIMPLE_ASSIGN.
5812 2013-11-14 Tom de Vries <tom@codesourcery.com>
5814 * tree-ssa-tail-merge.c (gimple_operand_equal_value_p): Factor new
5816 (gimple_equal_p): ... here.
5818 2013-11-14 Tom de Vries <tom@codesourcery.com>
5820 * trans-mem.c (is_tm_ending): New function.
5821 * gimple.h (is_tm_ending): Declare.
5822 * tree-ssa-tail-merge.c (gimple_equal_p): Remove test on
5824 (find_duplicate): Use is_tm_ending instead of is_tm_ending_fndecl.
5826 2013-11-14 Tom de Vries <tom@codesourcery.com>
5828 * tree-ssa-tail-merge.c (gimple_equal_p): Remove equal variable.
5830 2013-11-13 Andrew MacLeod <amacleod@redhat.com>
5832 * gimple-walk.h: New File. Relocate prototypes from gimple.h.
5833 (struct walk_stmt_info): Relocate here from gimple.h.
5834 * gimple-iterator.h: New File. Relocate prototypes from gimple.h.
5835 (struct gimple_stmt_iterator_d): Relocate here from gimple.h.
5836 (gsi_start_1, gsi_none, gsi_start_bb, gsi_last_1, gsi_last_bb,
5837 gsi_end_p, gsi_one_before_end_p, gsi_next, gsi_prev, gsi_stmt,
5838 gsi_after_labels, gsi_next_nondebug, gsi_prev_nondebug,
5839 gsi_start_nondebug_bb, gsi_start_nondebug_after_labels_bb,
5840 gsi_last_nondebug_bb, gsi_bb, gsi_seq): Relocate here from gimple.h.
5841 * gimple.h (struct gimple_stmt_iterator_d): Move to gimple-iterator.h.
5842 (gsi_start_1, gsi_none, gsi_start_bb, gsi_last_1, gsi_last_bb,
5843 gsi_end_p, gsi_one_before_end_p, gsi_next, gsi_prev, gsi_stmt,
5844 gsi_after_labels, gsi_next_nondebug, gsi_prev_nondebug,
5845 gsi_start_nondebug_bb, gsi_start_nondebug_after_labels_bb,
5846 gsi_last_nondebug_bb, gsi_bb, gsi_seq): Move to gimple-iterator.h.
5847 (struct walk_stmt_info): Move to gimple-walk.h.
5848 (gimple_seq_set_location): Move to gimple.c
5849 * gimple-walk.c: New File.
5850 (walk_gimple_seq_mod, walk_gimple_seq, walk_gimple_asm, walk_gimple_op,
5851 walk_gimple_stmt, get_base_loadstore, walk_stmt_load_store_addr_ops,
5852 walk_stmt_load_store_ops): Relocate here from gimple.c.
5853 * gimple-iterator.c: Include gimple-iterator.h.
5854 * gimple.c (walk_gimple_seq_mod, walk_gimple_seq, walk_gimple_asm,
5855 walk_gimple_op, walk_gimple_stmt, get_base_loadstore,
5856 walk_stmt_load_store_addr_ops, walk_stmt_load_store_ops): Move to
5858 (gimple_seq_set_location): Relocate from gimple.h.
5859 * tree-phinodes.h (set_phi_nodes): Move to tree-phinodes.c.
5860 * tree-phinodes.c (set_phi_nodes): Relocate from tree-phinodes.h.
5861 * gengtype.c (open_base_files): Add gimple-iterator.h to include list.
5862 * Makefile.in (OBJS): Add gimple-walk.o
5863 * asan.c: Update Include list as required for gimple-iterator.h and
5865 * cfgexpand.c: Likewise.
5866 * cfgloop.c: Likewise.
5867 * cfgloopmanip.c: Likewise.
5868 * cgraph.c: Likewise.
5869 * cgraphbuild.c: Likewise.
5870 * cgraphunit.c: Likewise.
5871 * gimple-fold.c: Likewise.
5872 * gimple-low.c: Likewise.
5873 * gimple-pretty-print.c: Likewise.
5874 * gimple-ssa-isolate-paths.c: Likewise.
5875 * gimple-ssa-strength-reduction.c: Likewise.
5876 * gimple-streamer-in.c: Likewise.
5877 * gimple-streamer-out.c: Likewise.
5878 * gimplify.c: Likewise.
5879 * graphite-blocking.c: Likewise.
5880 * graphite-clast-to-gimple.c: Likewise.
5881 * graphite-dependences.c: Likewise.
5882 * graphite-interchange.c: Likewise.
5883 * graphite-optimize-isl.c: Likewise.
5884 * graphite-poly.c: Likewise.
5885 * graphite-scop-detection.c: Likewise.
5886 * graphite-sese-to-poly.c: Likewise.
5887 * graphite.c: Likewise.
5888 * ipa-inline-analysis.c: Likewise.
5889 * ipa-profile.c: Likewise.
5890 * ipa-prop.c: Likewise.
5891 * ipa-pure-const.c: Likewise.
5892 * ipa-split.c: Likewise.
5893 * lto-streamer-in.c: Likewise.
5894 * lto-streamer-out.c: Likewise.
5895 * omp-low.c: Likewise.
5896 * predict.c: Likewise.
5897 * profile.c: Likewise.
5899 * tracer.c: Likewise.
5900 * trans-mem.c: Likewise.
5901 * tree-call-cdce.c: Likewise.
5902 * tree-cfg.c: Likewise.
5903 * tree-cfgcleanup.c: Likewise.
5904 * tree-complex.c: Likewise.
5905 * tree-data-ref.c: Likewise.
5906 * tree-dfa.c: Likewise.
5907 * tree-eh.c: Likewise.
5908 * tree-emutls.c: Likewise.
5909 * tree-if-conv.c: Likewise.
5910 * tree-inline.c: Likewise.
5911 * tree-into-ssa.c: Likewise.
5912 * tree-loop-distribution.c: Likewise.
5913 * tree-nested.c: Likewise.
5914 * tree-nrv.c: Likewise.
5915 * tree-object-size.c: Likewise.
5916 * tree-outof-ssa.c: Likewise.
5917 * tree-parloops.c: Likewise.
5918 * tree-predcom.c: Likewise.
5919 * tree-profile.c: Likewise.
5920 * tree-scalar-evolution.c: Likewise.
5921 * tree-sra.c: Likewise.
5922 * tree-ssa-ccp.c: Likewise.
5923 * tree-ssa-coalesce.c: Likewise.
5924 * tree-ssa-copy.c: Likewise.
5925 * tree-ssa-copyrename.c: Likewise.
5926 * tree-ssa-dce.c: Likewise.
5927 * tree-ssa-dom.c: Likewise.
5928 * tree-ssa-dse.c: Likewise.
5929 * tree-ssa-forwprop.c: Likewise.
5930 * tree-ssa-ifcombine.c: Likewise.
5931 * tree-ssa-live.c: Likewise.
5932 * tree-ssa-loop-ch.c: Likewise.
5933 * tree-ssa-loop-im.c: Likewise.
5934 * tree-ssa-loop-ivcanon.c: Likewise.
5935 * tree-ssa-loop-ivopts.c: Likewise.
5936 * tree-ssa-loop-manip.c: Likewise.
5937 * tree-ssa-loop-niter.c: Likewise.
5938 * tree-ssa-loop-prefetch.c: Likewise.
5939 * tree-ssa-loop.c: Likewise.
5940 * tree-ssa-math-opts.c: Likewise.
5941 * tree-ssa-phiopt.c: Likewise.
5942 * tree-ssa-phiprop.c: Likewise.
5943 * tree-ssa-pre.c: Likewise.
5944 * tree-ssa-propagate.c: Likewise.
5945 * tree-ssa-reassoc.c: Likewise.
5946 * tree-ssa-sink.c: Likewise.
5947 * tree-ssa-strlen.c: Likewise.
5948 * tree-ssa-structalias.c: Likewise.
5949 * tree-ssa-tail-merge.c: Likewise.
5950 * tree-ssa-ter.c: Likewise.
5951 * tree-ssa-threadedge.c: Likewise.
5952 * tree-ssa-threadupdate.c: Likewise.
5953 * tree-ssa-uncprop.c: Likewise.
5954 * tree-ssa-uninit.c: Likewise.
5955 * tree-ssa.c: Likewise.
5956 * tree-stdarg.c: Likewise.
5957 * tree-switch-conversion.c: Likewise.
5958 * tree-tailcall.c: Likewise.
5959 * tree-vect-data-refs.c: Likewise.
5960 * tree-vect-generic.c: Likewise.
5961 * tree-vect-loop-manip.c: Likewise.
5962 * tree-vect-loop.c: Likewise.
5963 * tree-vect-patterns.c: Likewise.
5964 * tree-vect-slp.c: Likewise.
5965 * tree-vect-stmts.c: Likewise.
5966 * tree-vectorizer.c: Likewise.
5967 * tree-vrp.c: Likewise.
5970 * value-prof.c: Likewise.
5971 * vtable-verify.c: Likewise.
5973 2013-11-13 Steven Bosscher <steven@gcc.gnu.org>
5975 * gimple-ssa-isolate-paths.c (pass_isolate_erroneous_paths): Comment
5978 2013-11-13 Jeff Law <law@redhat.com>
5980 * PR middle-end/59119
5981 * gimple-ssa-isolate-paths.c (find_implicit_erroneous_behaviour): New
5982 function, extracted from gimple_ssa_isolate_erroneous_paths.
5983 (find_explicit_erroneous_behaviour): Similarly.
5984 (insert_trap_and_remove_trailing_statements): Remove statements
5987 2013-11-13 Steven Bosscher <steven@gcc.gnu.org>
5989 * cfgrtl.c (can_fallthru): Reorder code to move tablejump check up.
5990 Make that check explicit. BB_HEAD cannot be NULL, remove check for it.
5991 * haifa-sched.c (ready_remove_first_dispatch): Check INSN_P before
5992 looking at INSN_CODE.
5993 * reload1.c (delete_dead_insn) Do not expect JUMP_TABLE_DATA to be an
5994 active_insn_p object, respect basic block boundaries.
5995 * reorg.c (follow_jumps): Use invariant that JUMP_TABLE_DATA always
5996 follows immediately after the jump table data label.
5997 * config/nds32/nds32.c (nds32_output_casesi_pc_relative): Likewise.
5998 * config/sh/sh.c (barrier_align): Likewise. Rearrange code such
5999 that JUMP_TABLE_DATA is not expected to be an active_insn_p object.
6001 2013-11-13 Teresa Johnson <tejohnson@google.com>
6004 * predict.c (drop_profile): Error is currently too strict.
6005 (handle_missing_profiles): Pass call_count to drop_profile.
6007 2013-11-13 Teresa Johnson <tejohnson@google.com>
6010 * ipa-inline.c (edge_badness): Fix overflow.
6012 2013-11-13 Vladimir Makarov <vmakarov@redhat.com>
6014 PR rtl-optimization/59036
6015 * ira-color.c (struct allocno_color_data): Add new members
6016 first_thread_allocno, next_thread_allocno, thread_freq.
6017 (sorted_copies): New static var.
6018 (allocnos_conflict_by_live_ranges_p, copy_freq_compare_func): Move up.
6019 (allocno_thread_conflict_p, merge_threads)
6020 (form_threads_from_copies, form_threads_from_bucket)
6021 (form_threads_from_colorable_allocno, init_allocno_threads): New
6023 (bucket_allocno_compare_func): Add comparison by thread frequency
6025 (add_allocno_to_ordered_bucket): Rename to
6026 add_allocno_to_ordered_colorable_bucket. Remove parameter.
6027 (push_only_colorable): Call form_threads_from_bucket.
6028 (color_pass): Call init_allocno_threads. Use
6029 consideration_allocno_bitmap instead of coloring_allocno_bitmap
6030 for nuillify allocno color data.
6031 (ira_initiate_assign, ira_finish_assign): Allocate/free sorted_copies.
6032 (coalesce_allocnos): Use static sorted copies.
6034 2013-11-13 Jakub Jelinek <jakub@redhat.com>
6036 * passes.c (execute_todo): Don't call do_per_function if
6038 (execute_one_ipa_transform_pass, execute_one_pass): Don't call
6039 execute_function_dump if dump_file is NULL.
6041 2013-11-13 Martin Jambor <mjambor@suse.cz>
6043 * cgraph.c (cgraph_get_create_node): Do what
6044 cgraph_get_create_real_symbol_node used to do.
6045 (cgraph_get_create_real_symbol_node): Removed. Changed all users to
6046 call cgraph_get_create_node.
6047 * cgraph.h (cgraph_get_create_real_symbol_node): Removed.
6048 * lto-streamer-in.c (input_function): Call cgraph_get_node instead of
6049 cgraph_get_create_node. Assert we get a node.
6051 2013-11-13 Tejas Belagod <tejas.belagod@arm.com>
6053 * config/aarch64/aarch64-simd.md (vec_extract): New.
6055 2013-11-13 Tejas Belagod <tejas.belagod@arm.com>
6057 * config/aarch64/aarch64-simd.md (vec_set<mode>): Add w -> w option to
6060 2013-11-13 Eric Botcazou <ebotcazou@adacore.com>
6062 * cfgexpand.c (expand_used_vars): Allocate space for partitions based
6063 on PARM_DECLs or RESULT_DECLs only if they are ignored for debug info
6064 or if optimization is enabled.
6065 * tree-ssa-coalesce.c (coalesce_ssa_name): If optimization is disabled,
6066 require that all the names based on a PARM_DECL or a RESULT_DECL that
6067 isn't ignored for debug info be coalesced.
6069 2013-11-13 Jan-Benedict Glaw <jbglaw@lug-owl.de>
6071 * config/c6x/c6x.c: Include "gimple-expr.h".
6073 2013-11-13 Richard Biener <rguenther@suse.de>
6075 * gimple-streamer-out.c (output_gimple_stmt): Also wrap
6076 decls in ADDR_EXPR operands inside a MEM_REF and optimize that.
6077 * gimple-streamer-in.c (input_gimple_stmt): Remove now dead code
6078 dealing with type mismatches inside component reference chains.
6080 2013-11-13 Marc Glisse <marc.glisse@inria.fr>
6082 PR tree-optimization/59077
6083 * ipa-pure-const.c (better_state): Update *state.
6085 2013-11-13 Christophe Lyon <christophe.lyon@linaro.org>
6087 * config/aarch64/aarch64.h (FRAME_GROWS_DOWNWARD): Define to 1.
6088 * config/aarch64/aarch64.c (aarch64_initial_elimination_offset):
6089 Update offset calculations.
6091 2013-11-13 Eric Botcazou <ebotcazou@adacore.com>
6094 * dwarf2out.c (add_byte_size_attribute): Also use int_size_in_bytes
6095 for fields. Do not add the attribute if the size is negative.
6097 2013-11-13 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
6099 * config/arm/arm.c: Include aarch-cost-tables.h.
6100 (generic_extra_costs): Move from here...
6101 * config/arm/aarch-cost-tables.h: ... To here. New file.
6103 2013-11-13 Alexander Ivchenko <alexander.ivchenko@intel.com>
6104 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
6105 Sergey Lega <sergey.s.lega@intel.com>
6106 Anna Tikhonova <anna.tikhonova@intel.com>
6107 Ilya Tocar <ilya.tocar@intel.com>
6108 Andrey Turetskiy <andrey.turetskiy@intel.com>
6109 Ilya Verbin <ilya.verbin@intel.com>
6110 Kirill Yukhin <kirill.yukhin@intel.com>
6111 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
6113 * config/i386/i386.c (ix86_print_operand): Support z-masking.
6114 * config/i386/predicate.md (const_0_to_4_operand): New.
6115 (const_0_to_5_operand): Ditto.
6116 * config/i386/sse.md (UNSPEC_COMPRESS): New.
6117 (UNSPEC_COMPRESS_STORE): Ditto.
6118 (UNSPEC_EXPAND): Ditto.
6119 (UNSPEC_EMBEDDED_ROUNDING): Ditto.
6120 (define_mode_attr ssescalarsize): Ditto.
6121 (avx512f_load<mode>_mask): Ditto.
6122 (avx512f_store<mode>_mask): Ditto.
6123 (avx512f_storedqu<mode>_mask): Ditto.
6124 (avx512f_vmcmp<mode>3_mask): Ditto.
6125 (avx512f_fmadd_<mode>_mask): Ditto.
6126 (avx512f_fmadd_<mode>_mask3): Ditto.
6127 (avx512f_fmsub_<mode>_mask): Ditto.
6128 (avx512f_fmsub_<mode>_mask3): Ditto.
6129 (avx512f_fnmadd_<mode>_mask): Ditto.
6130 (avx512f_fnmadd_<mode>_mask3): Ditto.
6131 (avx512f_fnmsub_<mode>_mask): Ditto.
6132 (avx512f_fnmsub_<mode>_mask3): Ditto.
6133 (avx512f_fmaddsub_<mode>_mask): Ditto.
6134 (avx512f_fmaddsub_<mode>_mask3): Ditto.
6135 (avx512f_fmsubadd_<mode>_mask): Ditto.
6136 (avx512f_fmsubadd_<mode>_mask3): Ditto.
6137 (vec_unpacku_float_lo_v16si): Ditto.
6138 (avx512f_vextract<shuffletype>32x4_mask): Ditto.
6139 (avx512f_vextract<shuffletype>32x4_1_maskm): Ditto.
6140 (avx512f_vextract<shuffletype>64x4_mask): Ditto.
6141 (vec_extract_lo_<mode>_maskm): Ditto.
6142 (vec_extract_hi_<mode>_maskm): Ditto.
6143 (avx512f_vternlog<mode>_mask): Ditto.
6144 (avx512f_shufps512_mask): Ditto.
6145 (avx512f_fixupimm<mode>_mask): Ditto.
6146 (avx512f_shufpd512_mask): Ditto.
6147 (avx512f_<code><pmov_src_lower><mode>2_mask): Ditto.
6148 (avx512f_<code>v8div16qi2_mask/trunc): Ditto.
6149 (*avx512f_<code>v8div16qi2_store_mask): Ditto.
6150 (ashr<mode>3<mask_name>): Ditto.
6151 (avx512f_vinsert<shuffletype>32x4_mask): Ditto.
6152 (avx512f_vinsert<shuffletype>64x4_mask): Ditto.
6153 (avx512f_shuf_<shuffletype>64x2_mask): Ditto.
6154 (avx512f_shuf_<shuffletype>32x4_mask): Ditto.
6155 (avx512f_pshufdv3_mask): Ditto.
6156 (avx512f_perm<mode>_mask): Ditto.
6157 (avx512f_vpermi2var<mode>3_mask): Ditto.
6158 (avx512f_vpermt2var<mode>3_mask): Ditto.
6159 (avx512f_compress<mode>_mask): Ditto.
6160 (avx512f_compressstore<mode>_mask): Ditto.
6161 (avx512f_expand<mode>_mask): Ditto.
6162 (<sse>_loadu<ssemodesuffix><avxsizesuffix><mask_name>): Extend
6164 (avx512f_storeu<ssemodesuffix>512_mask): Ditto.
6165 (<plusminus_insn><mode>3<mask_name>): Ditto.
6166 (*<plusminus_insn><mode>3<mask_name>): Ditto.
6167 (mul<mode>3<mask_name>): Ditto.
6168 (*mul<mode>3<mask_name>): Ditto.
6169 (<sse>_div<mode>3<mask_name>): Ditto.
6170 (<mask_codefor>rcp14<mode><mask_name>): Ditto.
6171 (<sse>_sqrt<mode>2<mask_name>): Ditto.
6172 (<mask_codefor>rsqrt14<mode><mask_name>): Ditto.
6173 (<code><mode>3<mask_name>/smaxmin): Ditto.
6174 (*<code><mode>3_finite<mask_name>/smaxmin): Ditto.
6175 (*<code><mode>3<mask_name>/smaxmin): Ditto.
6176 (float<sseintvecmodelower><mode>2<mask_name>): Ditto.
6177 (ufloatv16siv16sf2<mask_name>): Ditto.
6178 (<mask_codefor>avx512f_fix_notruncv16sfv16si<mask_name>): Ditto.
6179 (<mask_codefor>avx512f_ufix_notruncv16sfv16si<mask_name>): Ditto.
6180 (<fixsuffix>fix_truncv16sfv16si2<mask_name>): Ditto.
6181 (float<si2dfmodelower><mode>2<mask_name>): Ditto.
6182 (ufloatv8siv8df<mask_name>): Ditto.
6183 (<mask_codefor>avx512f_cvtpd2dq512<mask_name>): Ditto.
6184 (avx512f_ufix_notruncv8dfv8si<mask_name>): Ditto.
6185 (<fixsuffix>fix_truncv8dfv8si2<mask_name>): Ditto.
6186 (<mask_codefor>avx512f_cvtpd2ps512<mask_name>): Ditto.
6187 (<sse2_avx_avx512f>_cvtps2pd<avxsizesuffix><mask_name>): Ditto.
6188 (<mask_codefor>avx512f_unpckhps512<mask_name>): Ditto.
6189 (<mask_codefor>avx512f_unpcklps512<mask_name>): Ditto.
6190 (<mask_codefor>avx512f_movshdup512<mask_name>): Ditto.
6191 (<mask_codefor>avx512f_movsldup512<mask_name>): Ditto.
6192 (<mask_codefor>avx512f_vextract<shuffletype>32x4_1<mask_name>): Ditto.
6193 (vec_extract_lo_<mode><mask_name>): Ditto.
6194 (vec_extract_hi_<mode><mask_name>): Ditto.
6195 (<mask_codefor>avx512f_unpckhpd512<mask_name>): Ditto.
6196 (avx512f_movddup512<mask_name>): Ditto.
6197 (avx512f_unpcklpd512<mask_name>): Ditto.
6198 (*avx512f_unpcklpd512<mask_name>): Ditto.
6199 (*avx512f_vmscalef<mode>): Ditto.
6200 (avx512f_scalef<mode><mask_name>): Ditto.
6201 (avx512f_getexp<mode><mask_name>): Ditto.
6202 (<mask_codefor>avx512f_align<mode><mask_name>): Ditto.
6203 (avx512f_rndscale<mode><mask_name>): Ditto.
6204 (avx512f_shufps512_1<mask_name>): Ditto.
6205 (avx512f_shufpd512_1<mask_name>): Ditto.
6206 (<plusminus_insn><mode>3<mask_name>): Ditto.
6207 (*<plusminus_insn><mode>3<mask_name>): Ditto.
6208 (vec_widen_umult_even_v16si<mask_name>): Ditto.
6209 (*vec_widen_umult_even_v16si<mask_name>): Ditto.
6210 (vec_widen_smult_even_v16si<mask_name>): Ditto.
6211 (*vec_widen_smult_even_v16si<mask_name>): Ditto.
6212 (mul<mode>3<mask_name>): Ditto.
6213 (*<sse4_1_avx2>_mul<mode>3<mask_name>): Ditto.
6214 (<shift_insn><mode>3<mask_name>): Ditto.
6215 (avx512f_<rotate>v<mode><mask_name>/rotate): Ditto.
6216 (avx512f_<rotate><mode><mask_name>): Ditto.
6217 (<code><mode>3<mask_name>/maxmin): Ditto.
6218 (*avx2_<code><mode>3<mask_name>/maxmin): Ditto.
6219 (<sse2_avx2>_andnot<mode>3<mask_name>): Ditto.
6220 (*andnot<mode>3<mask_name>): Ditto.
6221 (<mask_codefor><code><mode>3<mask_name>/any_logic): Ditto.
6222 (<mask_codefor>avx512f_interleave_highv16si<mask_name>): Ditto.
6223 (<mask_codefor>avx512f_interleave_lowv16si<mask_name>): Ditto.
6224 (<mask_codefor>avx512f_vinsert<shuffletype>32x4_1<mask_name>): Ditto.
6225 (vec_set_lo_<mode><mask_name>): Ditto.
6226 (vec_set_hi_<mode><mask_name>): Ditto.
6227 (avx512f_shuf_<shuffletype>64x2_1<mask_name>): Ditto.
6228 (avx512f_shuf_<shuffletype>32x4_1<mask_name>): Ditto.
6229 (avx512f_pshufd_1<mask_name>): Ditto.
6230 (<mask_codefor>abs<mode>2<mask_name>): Ditto.
6231 (<mask_codefor>avx512f_<code>v16qiv16si2<mask_name>): Ditto.
6232 (avx512f_<code>v16hiv16si2<mask_name>/any_extend): Ditto.
6233 (avx512f_<code>v8qiv8di2<mask_name>/any_extend): Ditto.
6234 (avx512f_<code>v8hiv8di2<mask_name>/any_extend): Ditto.
6235 (avx512f_<code>v8siv8di2<mask_name>/any_extend): Ditto.
6236 (avx512er_exp2<mode><mask_name>): Ditto.
6237 (<mask_codefor>avx512er_rcp28<mode><mask_name>): Ditto.
6238 (<mask_codefor>avx512er_rsqrt28<mode><mask_name>): Ditto.
6239 (<avx2_avx512f>_permvar<mode><mask_name>): Ditto.
6240 (<avx2_avx512f>_perm<mode>_1<mask_name>): Ditto.
6241 (<mask_codefor>avx512f_vec_dup<mode><mask_name>): Ditto.
6242 (<mask_codefor>avx512f_broadcast<mode><mask_name>/V16FI): Ditto.
6243 (<mask_codefor>avx512f_broadcast<mode><mask_name>/V8FI): Ditto.
6244 (<mask_codefor>avx512f_vec_dup_gpr<mode><mask_name>): Ditto.
6245 (<mask_codefor>avx512f_vec_dup_mem<mode><mask_name>): Ditto.
6246 (<sse2_avx_avx512f>_vpermil<mode><mask_name>/VF2): Ditto.
6247 (<sse2_avx_avx512f>_vpermil<mode><mask_name>/VF1): Ditto.
6248 (*<sse2_avx_avx512f>_vpermilp<mode><mask_name>): Ditto.
6249 (<sse2_avx_avx512f>_vpermilvar<mode>3<mask_name>): Ditto.
6250 (<avx2_avx512f>_ashrv<mode><mask_name>): Ditto.
6251 (<avx2_avx512f>_<shift_insn>v<mode><mask_name>): Ditto.
6252 (<mask_codefor>avx512f_vcvtph2ps512<mask_name>): Ditto.
6253 (<mask_codefor>avx512f_vcvtps2ph512<mask_name>): Ditto.
6254 (avx512f_getmant<mode><mask_name>): Ditto.
6255 (clz<mode>2<mask_name>): Ditto.
6256 (<mask_codefor>conflict<mode><mask_name>): Ditto.
6257 (*srcp14<mode>): Remove visibility.
6258 (*rsqrt14<mode>): Ditto.
6259 (*fma_fmsub_<mode>): Ditto.
6260 (*fma_fnmadd_<mode>): Ditto.
6261 (*avx512f_rndscale<mode>): Ditto.
6262 * config/i386/subst.md: New file.
6264 2013-11-13 Joseph Myers <joseph@codesourcery.com>
6266 * doc/extend.texi (Statement Exprs, Typeof): Discuss __auto_type.
6267 * ginclude/stdatomic.h (kill_dependency, atomic_store_explicit)
6268 (atomic_load_explicit, atomic_exchange_explicit)
6269 (atomic_compare_exchange_strong_explicit)
6270 (atomic_compare_exchange_weak_explicit): Use __auto_type to
6271 declare variable initialized with PTR argument.
6273 2013-11-12 Jeff Law <law@redhat.com>
6275 * tree-ssa-threadedge.c (thread_around_empty_blocks): New argument
6276 backedge_seen_p. Set, use and pass it to children appropriately.
6277 (thread_through_normal_block): Similarly.
6278 (thread_across_edge): Similarly.
6280 * gimple-ssa-isolate-paths.c (check_loadstore): Mark discovered
6281 memory references as volatile.
6282 (insert_trap_and_remove_trailing_statements): Fix comment.
6284 2013-11-12 Vladimir Makarov <vmakarov@redhat.com>
6287 * ira-costs.c (record_operand_costs): Check operands number for
6290 2013-11-12 Michael Meissner <meissner@linux.vnet.ibm.com>
6293 * config/rs6000/rs6000.md (movdi_internal32): Eliminate
6294 constraints that would allow DImode into the traditional Altivec
6295 registers, but cause undesirable code generation when loading 0 as
6297 (movdi_internal64): Likewise.
6298 (cmp<mode>_fpr): Do not use %x for CR register output.
6299 (extendsfdf2_fpr): Fix constraints when -mallow-upper-df and
6300 -mallow-upper-sf debug switches are used.
6302 2013-11-12 Andrew MacLeod <amacleod@redhat.com>
6304 * gimple-expr.h (create_tmp_var_name, create_tmp_var_raw,
6305 create_tmp_var, create_tmp_reg, mark_addressable, is_gimple_reg_rhs):
6306 Relocate prototypes from gimple.h.
6307 * gimplify.h: New File. Relocate some prototypes from gimple.h here.
6308 (gimple_predicate, enum fallback, enum gimplify_status): Relocate
6310 * gimple.h: Move some prototypes to gimplify.h.
6311 (gimple_predicate, enum fallback, enum gimplify_status): Move to
6313 (gimple_do_not_emit_location_p, gimple_set_do_not_emit_location):
6314 Relocate from gimpify.c.
6315 * gimple-expr.c (remove_suffix, tmp_var_id_num, create_tmp_var_name,
6316 create_tmp_var_raw, create_tmp_var, create_tmp_reg, mark_addressable,
6317 is_gimple_reg_rhs) Relocate from gimplify.c.
6318 * gimplify.c (mark_addressable): Move to gimple-expr.c.
6319 (gimple_seq_add_stmt_without_update): Move to gimple.c.
6320 (remove_suffix, tmp_var_id_num, create_tmp_var_name,
6321 create_tmp_var_raw, create_tmp_var, create_tmp_reg,
6322 is_gimple_reg_rhs): Move to gimple-expr.c.
6323 (should_carry_location_p): Move to gimple.c.
6324 (gimple_do_not_emit_location_p, gimple_set_do_not_emit_location): Move
6326 (annotate_one_with_location, annotate_all_with_location_after,
6327 annotate_all_with_location): Move to gimple.c.
6328 (compare_case_labels, sort_case_labels,
6329 preprocess_case_label_vec_for_gimple): Move to gimple.c.
6330 (rhs_predicate_for): Make static.
6331 (gimplify_assign): Relocate from gimple.c.
6332 * gimple.c (gimplify_assign): Move to gimplify.c.
6333 (gimple_seq_add_stmt_without_update, should_carry_location_p,
6334 annotate_one_with_location, annotate_all_with_location_after,
6335 annotate_all_with_location, compare_case_labels, sort_case_labels,
6336 preprocess_case_label_vec_for_gimple): Relocate from gimplify.c.
6337 * tree.h (unshare_expr, unshare_expr_without_location,
6338 mark_addressable): Move prototypes to gimplify.h.
6339 * Makefile.in (GTFILES): gimple-expr.c now has the GTY tag for
6341 * asan.c: Include gimplify.h rather than gimple.h.
6342 * cfgloopmanip.c: Likewise.
6343 * cgraphunit.c: Likewise.
6344 * cilk-common.c: Likewise.
6345 * dwarf2out.c: Dont include gimple.h.
6346 * fold-const.c: Include gimplify.h rather than gimple.h.
6347 * function.c: Likewise.
6348 * gimple-fold.c: Likewise.
6349 * gimple-ssa-strength-reduction.c: Likewise.
6350 * graphite-clast-to-gimple.c: Likewise.
6351 * graphite-sese-to-poly.c: Likewise.
6352 * ipa-prop.c: Likewise.
6353 * ipa-split.c: Likewise.
6355 * langhooks.c: Dont include gimple.h.
6356 * loop-init.c: Include gimplify.h rather than gimple.h.
6357 * omp-low.c: Likewise.
6359 * stor-layout.c: Likewise.
6360 * targhooks.c: Likewise.
6361 * trans-mem.c: Likewise.
6362 * tree-affine.c: Likewise.
6363 * tree-cfg.c: Likewise.
6364 * tree-cfgcleanup.c: Likewise.
6365 * tree-complex.c: Likewise.
6366 * tree-if-conv.c: Likewise.
6367 * tree-inline.c: Likewise.
6368 * tree-iterator.c: Likewise.
6369 * tree-loop-distribution.c: Likewise.
6370 * tree-nested.c: Likewise.
6371 * tree-parloops.c: Likewise.
6372 * tree-predcom.c: Likewise.
6373 * tree-profile.c: Likewise.
6374 * tree-scalar-evolution.c: Likewise.
6375 * tree-sra.c: Likewise.
6376 * tree-ssa-address.c: Likewise.
6377 * tree-ssa-ccp.c: Likewise.
6378 * tree-ssa-dce.c: Likewise.
6379 * tree-ssa-forwprop.c: Likewise.
6380 * tree-ssa-ifcombine.c: Likewise.
6381 * tree-ssa-loop-im.c: Likewise.
6382 * tree-ssa-loop-ivopts.c: Likewise.
6383 * tree-ssa-loop-manip.c: Likewise.
6384 * tree-ssa-loop-niter.c: Likewise.
6385 * tree-ssa-loop-prefetch.c: Likewise.
6386 * tree-ssa-loop-unswitch.c: Likewise.
6387 * tree-ssa-math-opts.c: Likewise.
6388 * tree-ssa-phiopt.c: Likewise.
6389 * tree-ssa-phiprop.c: Likewise.
6390 * tree-ssa-pre.c: Likewise.
6391 * tree-ssa-propagate.c: Likewise.
6392 * tree-ssa-reassoc.c: Likewise.
6393 * tree-ssa-sccvn.c: Likewise.
6394 * tree-ssa-strlen.c: Likewise.
6395 * tree-ssa.c: Likewise.
6396 * tree-switch-conversio: Likewise.n.c
6397 * tree-tailcall.c: Likewise.
6398 * tree-vect-data-refs.c: Likewise.
6399 * tree-vect-generic.c: Likewise.
6400 * tree-vect-loop-manip.c: Likewise.
6401 * tree-vect-loop.c: Likewise.
6402 * tree-vect-patterns.c: Likewise.
6403 * tree-vect-stmts.c: Likewise.
6405 * value-prof.c: Likewise.
6406 * config/aarch64/aarch64.c: Include gimplify.h instead of gimple.h.
6407 * config/alpha/alpha.c: Likewise.
6408 * config/darwin.c: Likewise.
6409 * config/i386/i386.c: Likewise.
6410 * config/ia64/ia64.c: Likewise.
6411 * config/mep/mep.c: Likewise.
6412 * config/mips/mips.c: Likewise.
6413 * config/rs6000/rs6000.c: Likewise.
6414 * config/s390/s390.c: Likewise.
6415 * config/sh/sh.c: Likewise.
6416 * config/sparc/sparc.c: Likewise.
6417 * config/spu/spu.c: Likewise.
6418 * config/stormy16/stormy16.c: Likewise.
6419 * config/tilegx/tilegx.c: Likewise.
6420 * config/tilepro/tilepro.c: Likewise.
6421 * config/xtensa/xtensa.c: Likewise.
6423 2013-11-12 Adam Butcher <adam@jessamine.co.uk>
6425 * tree.c (grow_tree_vec_stat): New function ...
6426 * tree.h (grow_tree_vec_stat) (grow_tree_vec): ... and its declaration
6427 and macro front-end.
6429 2013-11-12 Marek Polacek <polacek@redhat.com>
6431 * final.c (update_alignments): Initialize label to NULL_RTX.
6433 2013-11-12 Jeff Law <law@redhat.com>
6435 * gimple-ssa-isolate-paths.c (check_loadstore): New function.
6436 (insert_trap_and_remove_trailing_statements): New argument OP which
6437 is the NULL pointer. Emit the trap after the load/store through
6438 the NULL pointer. Simplify the RHS of a store through a NULL pointer
6439 when trivial to do so.
6440 (isolate_path): Corresponding changes.
6441 (gimple_ssa_isolate_erroneous_path): Likewise.
6443 2013-11-12 Teresa Johnson <tejohnson@google.com>
6444 Jan Hubicka <jh@suse.cz>
6446 * predict.c (drop_profile): New function.
6447 (handle_missing_profiles): Ditto.
6448 (counts_to_freqs): Don't overwrite estimated frequencies
6449 when function has no profile counts.
6450 * predict.h (handle_missing_profiles): Declare.
6451 * tree-inline.c (freqs_to_counts): New function.
6452 (copy_cfg_body): Invoke freqs_to_counts as needed.
6453 * tree-profile.c (tree_profiling): Invoke handle_missing_profiles.
6455 2013-11-12 H.J. Lu <hongjiu.lu@intel.com>
6458 * config/i386/x86-tune.def (X86_TUNE_SSE_UNALIGNED_LOAD_OPTIMAL):
6460 (X86_TUNE_SSE_UNALIGNED_STORE_OPTIMAL): Set for m_HASWELL.
6462 2013-11-12 H.J. Lu <hongjiu.lu@intel.com>
6465 * config/i386/i386.c (ix86_option_override_internal): Check
6466 X86_TUNE_AVX256_UNALIGNED_LOAD_OPTIMAL and
6467 X86_TUNE_AVX256_UNALIGNED_STORE_OPTIMAL for
6468 MASK_AVX256_SPLIT_UNALIGNED_LOAD and
6469 MASK_AVX256_SPLIT_UNALIGNED_STORE.
6471 * config/i386/x86-tune.def (X86_TUNE_AVX256_UNALIGNED_LOAD_OPTIMAL):
6472 Clear m_COREI7_AVX and update comments.
6473 (X86_TUNE_AVX256_UNALIGNED_STORE_OPTIMAL): Likewise.
6475 2013-11-12 Martin Jambor <mjambor@suse.cz>
6477 PR rtl-optimization/10474
6478 * ira.c (interesting_dest_for_shprep): New function.
6479 (split_live_ranges_for_shrink_wrap): Likewise.
6480 (find_moveable_pseudos): Move calculation of dominance info,
6481 df_analysios and the final anlyses to...
6482 (ira): ...here, call split_live_ranges_for_shrink_wrap.
6484 2013-11-12 Bin Cheng <bin.cheng@arm.com>
6486 * tree-ssa-loop-ivopts.c (force_expr_to_var_cost): Refactor the code.
6487 Handle type conversion.
6489 2013-11-11 Martin Liska <marxin.liska@gmail.com>
6490 Jan Hubicka <jh@suse.cz>
6492 * cgraph.c (dump_cgraph_node): Profile dump added.
6493 * cgraph.h (struct cgraph_node): New time profile variable added.
6494 * cgraphclones.c (cgraph_clone_node): Time profile is cloned.
6495 * gcov-io.h (gcov_type): New profiler type introduced.
6496 * ipa-profile.c (lto_output_node): Streaming for time profile added.
6497 (input_node): Time profiler is read from LTO stream.
6498 * predict.c (maybe_hot_count_p): Hot prediction changed.
6499 * profile.c (instrument_values): New case for time profiler added.
6500 (compute_value_histograms): Read of time profile.
6501 * tree-pretty-print.c (dump_function_header): Time profiler is dumped.
6502 * tree-profile.c (init_ic_make_global_vars): Time profiler
6504 (gimple_init_edge_profiler): TP function instrumentation.
6505 (gimple_gen_time_profiler): New.
6506 * value-prof.c (gimple_add_histogram_value): Support for time profiler
6508 (dump_histogram_value): TP type added to dumps.
6509 (visit_hist): More sensitive check that takes TP into account.
6510 (gimple_find_values_to_profile): TP instrumentation.
6511 * value-prof.h (hist_type): New histogram type added.
6512 (struct histogram_value_t): Pointer to struct function added.
6513 * libgcc/Makefile.in: New GCOV merge function for TP added.
6514 * libgcov.c: function_counter variable introduced.
6515 (_gcov_merge_time_profile): New.
6516 (_gcov_time_profiler): New.
6518 2013-11-11 Marc Glisse <marc.glisse@inria.fr>
6519 Jeff Law <law@redhat.com>
6521 * tree-ssa-alias.c (stmt_kills_ref_p_1): Use
6522 ao_ref_init_from_ptr_and_size for builtins.
6524 2013-11-11 Uros Bizjak <ubizjak@gmail.com>
6525 H.J. Lu <hongjiu.lu@intel.com>
6528 * config/i386/x86-tune.def
6529 (X86_TUNE_MISALIGNED_MOVE_STRING_PRO_EPILOGUES): Rename from
6530 TARGET_MISALIGNED_MOVE_STRING_PROLOGUES.
6531 * config/i386/i386.h
6532 (TARGET_MISALIGNED_MOVE_STRING_PRO_EPILOGUES): Rename from
6533 TARGET_MISALIGNED_MOVE_STRING_PROLOGUES_EPILOGUES. Update for renamed
6534 X86_TUNE_MISALIGNED_MOVE_STRING_PRO_EPILOGUES.
6535 * config/i386/i386.c (ix86_expand_set_or_movmem): Use
6536 TARGET_MISALIGNED_MOVE_STRING_PRO_EPILOGUES to calculate
6537 misaligned_prologue_used. Check that
6538 desired_aling <= epilogue_size_needed.
6540 2013-11-11 Cong Hou <congh@google.com>
6542 PR tree-optimization/59050
6543 * tree-vect-data-refs.c (comp_dr_addr_with_seg_len_pair): Bug fix.
6545 2013-11-11 Joern Rennecke <joern.rennecke@embecosm.com>
6548 * expmed.c (emit_store_flag): Fail for const-const comparison.
6550 2013-11-11 Tristan Gingold <gingold@adacore.com>
6551 Eric Botcazou <ebotcazou@adacore.com>
6553 * tree.h (CONSTRUCTOR_NO_CLEARING): Define.
6554 * tree-core.h (CONSTRUCTOR_NO_CLEARING): Document it.
6555 * tree.def (CONSTRUCTOR): Likewise.
6556 * doc/generic.texi (CONSTRUCTOR): Likewise. Update description.
6557 * gimplify.c (gimplify_init_constructor): Do not clear the object when
6558 the constructor is incomplete and CONSTRUCTOR_NO_CLEARING is set.
6560 2013-11-11 Basile Starynkevitch <basile@starynkevitch.net>
6562 * toplev.c (toplev_main): Move PLUGIN_FINISH invocation before
6565 2013-11-11 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
6567 * config/arm/arm.c (arm_new_rtx_costs): Return after handling
6570 2013-11-11 Joern Rennecke <joern.rennecke@embecosm.com>
6572 * config/arc/arc.h (LOGICAL_OP_NON_SHORT_CIRCUIT): Define.
6574 2013-11-08 Jeff Law <law@redhat.com>
6576 * tree-ssa-threadupdate.c (mark_threaded_blocks): Truncate jump
6577 threading paths first, then perform PHI node checks if applicable.
6579 2013-11-10 Karlson2k <k2k@narod.ru>
6580 Kai Tietz <ktietz@redhat.com>
6583 * configure.ac: Adding for exported symbols check
6584 and for rdynamic-check executable-extension.
6585 * configure: Regenerated.
6587 2013-11-10 Uros Bizjak <ubizjak@gmail.com>
6589 * mode-switching.c (optimize_mode_switching): Mark block as
6590 nontransparent, if last_mode at block exit is different from no_mode.
6592 2013-11-09 Jan-Benedict Glaw <jbglaw@lug-owl.de>
6594 * function.c (NAME__MAIN): Move to...
6595 * cfgexpand.c (NAME__MAIN): ...here.
6597 2013-11-09 Richard Sandiford <rdsandiford@googlemail.com>
6599 * target.def (can_use_doloop_p): New hook.
6600 * doc/tm.texi.in (TARGET_CAN_USE_DOLOOP_P): Add.
6601 * doc/tm.texi: Regenerate.
6602 * doc/md.texi (doloop_begin, doloop_end): Update documentation.
6603 * hooks.h (hook_bool_dint_dint_uint_true): Declare.
6604 * hooks.c (hook_bool_dint_dint_uint_true): New function.
6605 * targhooks.h (can_use_doloop_if_innermost): Declare.
6606 * targhooks.c (can_use_doloop_if_innermost): New function.
6607 * target.h: Include double-int.h.
6608 * loop-doloop.c (doloop_optimize): Call targetm.can_use_doloop_p.
6609 Remove iteration count, maximum iteration count, loop depth and
6610 enter-at-top inputs from doloop_begin and doloop_end.
6611 * config/arc/arc.md (doloop_begin, doloop_end): Update for new
6613 * config/arc/arc.c (arc_can_use_doloop_p): New function.
6614 (TARGET_CAN_USE_DOLOOP_P): Define.
6615 * config/arm/thumb2.md (doloop_end): Update for new interface.
6616 * config/arm/arm.c (TARGET_CAN_USE_DOLOOP_P): Define.
6617 * config/bfin/bfin.md (doloop_end): Update for new interface.
6618 * config/bfin/bfin.c (bfin_can_use_doloop_p): New function.
6619 (TARGET_CAN_USE_DOLOOP_P): Define.
6620 * config/c6x/c6x.md (doloop_end): Update for new interface.
6621 * config/ia64/ia64.md (doloop_end): Update for new interface.
6622 * config/ia64/ia64.c (TARGET_CAN_USE_DOLOOP_P): Define.
6623 * config/mep/mep.md (doloop_begin, doloop_end): Update for new
6625 * config/mep/mep.c (mep_emit_doloop): Likewise.
6626 (TARGET_CAN_USE_DOLOOP_P): Define.
6627 * config/rs6000/rs6000.md (doloop_end): Update for new interface.
6628 * config/rs6000/rs6000.c (TARGET_CAN_USE_DOLOOP_P): Define.
6629 * config/s390/s390.md (doloop_end): Update for new interface.
6630 * config/sh/sh.md (doloop_end): Likewise.
6631 * config/spu/spu.md (doloop_end): Likewise.
6632 * config/spu/spu.c (TARGET_CAN_USE_DOLOOP_P): Define.
6633 * config/tilegx/tilegx.md (doloop_end): Update for new interface.
6634 * config/tilegx/tilegx.c (TARGET_CAN_USE_DOLOOP_P): Define.
6635 * config/tilepro/tilepro.md (doloop_end): Update for new interface.
6636 * config/tilepro/tilepro.c (TARGET_CAN_USE_DOLOOP_P): Define.
6637 * config/v850/v850.md (doloop_begin, doloop_end): Update for new
6639 * config/v850/v850.c (TARGET_CAN_USE_DOLOOP_P): Define.
6641 2013-11-08 H.J. Lu <hongjiu.lu@intel.com>
6644 * doc/extend.texi: Move Cilk Plus Builtins node before Other
6647 2013-11-08 Andrew MacLeod <amacleod@redhat.com>
6648 Joseph Myers <joseph@codesourcery.com>
6650 * ginclude/stdatomic.h: New file.
6651 * Makefile.in (USER_H): Add stdatomic.h.
6653 2013-11-08 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
6655 * config/arm/arm.c (arm_new_rtx_costs): Break after handling
6658 2013-11-08 Jeff Law <law@redhat.com>
6660 * tree-ssa-threadupdate.h (delete_thread_path): Declare.
6661 * tree-ssa-threadupdate.c (delete_thread_path): New function.
6662 (ssa_redirect_edges, thread_block_1): Use it.
6663 (thread_through_loop_header, mark_threaded_blocks): Likewise.
6664 (thread_through_all_blocks, register_jump_thread): Likewise.
6665 * tree-ssa-threadedge.c (thread_across_edge): Likewise.
6667 2013-11-08 James Greenhalgh <james.greenhalgh@arm.com>
6669 * config/arm/aarch-common.c
6670 (search_term): New typedef.
6671 (shift_rtx_costs): New array.
6672 (arm_rtx_shift_left_p): New.
6673 (arm_find_sub_rtx_with_search_term): Likewise.
6674 (arm_find_sub_rtx_with_code): Likewise.
6675 (arm_early_load_addr_dep): Add sanity checking.
6676 (arm_no_early_alu_shift_dep): Likewise.
6677 (arm_no_early_alu_shift_value_dep): Likewise.
6678 (arm_no_early_mul_dep): Likewise.
6679 (arm_no_early_store_addr_dep): Likewise.
6681 2013-11-08 Richard Biener <rguenther@suse.de>
6683 PR tree-optimization/59047
6684 * tree-predcom.c (ref_at_iteration): Handle bitfield accesses properly.
6686 2013-11-08 Ilya Enkovich <ilya.enkovich@intel.com>
6688 * common.opt (fcheck-pointer-bounds): Move to ...
6689 * c-family/c.opt: ... here.
6690 * langhooks-def.h (LANG_HOOKS_CHKP_SUPPORTED): Remove.
6691 (LANG_HOOKS_INITIALIZER): Remove LANG_HOOKS_CHKP_SUPPORTED.
6692 * langhooks.h (lang_hooks): Remove chkp_supported field.
6693 * toplev.c (process_options): Remove chkp_supported check.
6695 2013-11-08 Richard Biener <rguenther@suse.de>
6697 PR tree-optimization/59038
6698 PR tree-optimization/58955
6699 * tree-loop-distribution.c (pg_add_dependence_edges): Revert
6700 previous change. Handle known dependences correctly.
6702 2013-11-08 Tom de Vries <tom@codesourcery.com>
6704 * config/rs6000/t-xilinx: Remove duplicate contents.
6706 2013-11-07 Andrew MacLeod <amacleod@redhat.com>
6707 Joseph Myers <joseph@codesourcery.com>
6709 * tree-core.h (enum cv_qualifier): Add TYPE_QUAL_ATOMIC.
6710 (enum tree_index): Add TI_ATOMICQI_TYPE, TI_ATOMICHI_TYPE,
6711 TI_ATOMICSI_TYPE, TI_ATOMICDI_TYPE and TI_ATOMICTI_TYPE.
6712 (struct tree_base): Add atomic_flag field.
6713 * tree.h (TYPE_ATOMIC): New accessor macro.
6714 (TYPE_QUALS, TYPE_QUALS_NO_ADDR_SPACE): Add TYPE_QUAL_ATOMIC.
6715 (TYPE_QUALS_NO_ADDR_SPACE_NO_ATOMIC): New macro.
6716 (atomicQI_type_node, atomicHI_type_node, atomicSI_type_node)
6717 (atomicDI_type_node, atomicTI_type_node): New macros for type nodes.
6718 * tree.c (set_type_quals): Set TYPE_ATOMIC.
6719 (find_atomic_core_type): New function.
6720 (build_qualified_type): Adjust alignment for qualified types.
6721 (build_atomic_base): New function
6722 (build_common_tree_nodes): Build atomicQI_type_node,
6723 atomicHI_type_node, atomicSI_type_node, atomicDI_type_node and
6725 * print-tree.c (print_node): Print atomic qualifier.
6726 * tree-pretty-print.c (dump_generic_node): Print atomic type attribute.
6727 * target.def (atomic_assign_expand_fenv): New hook.
6728 * doc/tm.texi.in (TARGET_ATOMIC_ASSIGN_EXPAND_FENV): New @hook.
6729 * doc/tm.texi: Regenerate.
6730 * targhooks.c (default_atomic_assign_expand_fenv): New function.
6731 * targhooks.h (default_atomic_assign_expand_fenv): Declare.
6732 * sync-builtins.def (__atomic_feraiseexcept): New built-in function.
6733 * config/i386/i386-builtin-types.def (VOID_FTYPE_PUSHORT): New
6735 * config/i386/i386.c (enum ix86_builtins): Add
6736 IX86_BUILTIN_FNSTENV, IX86_BUILTIN_FLDENV, IX86_BUILTIN_FNSTSW and
6737 IX86_BUILTIN_FNCLEX.
6738 (bdesc_special_args): Add __builtin_ia32_fnstenv,
6739 __builtin_ia32_fldenv, __builtin_ia32_fnstsw and __builtin_ia32_fnclex.
6740 (ix86_expand_builtin): Handle the new built-in functions.
6741 (ix86_atomic_assign_expand_fenv): New function.
6742 (TARGET_ATOMIC_ASSIGN_EXPAND_FENV): New macro.
6743 * config/i386/i386.md (UNSPECV_FNSTENV, UNSPECV_FLDENV)
6744 (UNSPECV_FNSTSW, UNSPECV_FNCLEX): New unspecs.
6745 (fnstenv, fldenv, fnstsw, fnclex): New insns.
6747 2013-11-07 Steve Ellcey <sellcey@mips.com>
6749 * config/mips/mti-linux.h (SYSROOT_SUFFIX_SPEC): Add fp64 directory.
6750 * config/mips/t-mti-linux (MULTILIB_OPTIONS): Add -mfp64 flag.
6751 (MULTILIB_DIRNAMES): Add fp64 directory.
6752 (MULTILIB_EXCEPTIONS): Add new exclusions.
6754 2013-11-07 Aldy Hernandez <aldyh@redhat.com>
6756 * gimplify.c (gimple_regimplify_operands): Do not set
6758 * graphite-sese-to-poly.c (remove_simple_copy_phi): Same.
6759 (rewrite_close_phi_out_of_ssa): Same.
6760 (rewrite_phi_out_of_ssa): Same.
6761 (rewrite_degenerate_phi): Same.
6762 (handle_scalar_deps_crossing_scop_limits): Same.
6763 * tree-if-conv.c (predicate_scalar_phi): Same.
6764 * tree-parloops.c (create_loads_for_reductions): Same.
6765 (create_final_loads_for_reduction): Same.
6766 (create_loads_and_stores_for_name): Same.
6767 (transform_to_exit_first_loop): Same.
6768 (create_parallel_loop): Same.
6769 * tree-ssa-loop-im.c
6770 (move_computations_dom_walker::before_dom_children): Same.
6771 * tree-ssa-loop-manip.c (rewrite_phi_with_iv): Same.
6772 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children): Same.
6773 * tree-ssa-propagate.c (substitute_and_fold): Same.
6774 * tree-vect-loop.c (vect_finalize_reduction): Same.
6775 * tree-vect-stmts.c (vectorizable_call): Same.
6777 2013-11-07 Mike Stump <mikestump@comcast.net>
6779 * config/pdp11/pdp11.c: Include dbxout.h.
6780 * config/picochip/picochip.c: Likewise.
6782 2013-11-07 Cong Hou <congh@google.com>
6784 PR tree-optimization/56764
6785 * tree-vect-loop-manip.c (vect_create_cond_for_alias_checks):
6786 Combine alias checks if it is possible to amortize the runtime
6787 overhead. Return the number of alias checks after merging.
6788 * tree-vect-data-refs.c (vect_prune_runtime_alias_test_list):
6789 Use the function vect_create_cond_for_alias_checks () to check
6790 the number of alias checks.
6792 2013-11-07 Jeff Law <law@redhat.com>
6794 * varpool.c (ctor_for_folding): Fix typo in comment.
6796 2013-11-07 Joern Rennecke <joern.rennecke@embecosm.com>
6798 * config/arc/arc.c (arc_ifcvt): Use commutativity, e.g.:
6799 reg_a := reg_b + reg_a ==> reg_a := reg_a + reg_b
6801 2013-11-07 Jeff Law <law@redhat.com>
6803 * doc/invoke.texi (-fisolate-erroneous-paths): Document.
6805 * gimple-ssa-isolate-paths.c (gate_isolate_erroneous_paths):
6806 No longer check if we have __builtin_trap, assume it's available.
6808 2013-11-07 Diego Novillo <dnovillo@google.com>
6810 * attribs.c (lookup_scoped_attribute_spec): Make static.
6811 (get_attribute_namespace): Likewise.
6812 * builtins.c (more_const_call_expr_args_p): Move from tree.h.
6813 (validate_arglist): Move earlier in the file. Make static.
6814 (expand_stack_restore): Move from stmt.c
6815 (expand_stack_save): Move from stmt.c
6816 (rewrite_call_expr_array): Move earlier in the file.
6817 (rewrite_call_expr_valist): Likewise.
6818 * cfgexpand.c: Include hard-reg-set.h before tree.h
6821 (expand_asm_loc): Move from stmt.c.
6822 (n_occurrences): Move from stmt.c.
6823 (check_operand_nalternatives): Move from stmt.c.
6824 (tree_conflicts_with_clobbers_p): Move from stmt.c.
6825 (expand_asm_operands): Move from stmt.c
6826 (expand_asm_stmt): Move from stmt.c
6827 (expand_computed_goto): Move from stmt.c
6828 (expand_goto): Move from stmt.c
6829 (expand_null_return_1): Move from stmt.c
6830 (expand_null_return): Move from stmt.c
6831 (expand_value_return): Move from stmt.c
6832 (expand_return): Move from stmt.c
6833 (expand_main_function): Move from function.c
6834 (stack_protect_prologue): Move from function.c
6835 * cgraphclones.c (build_function_type_skip_args): Move from tree.c.
6836 (build_function_decl_skip_args): Move from tree.c.
6837 * explow.c (tree_expr_size): Move from tree.c.
6838 * expr.c (addr_expr_of_non_mem_decl_p): Remove.
6839 (fields_length): Move from tree.c.
6840 * fold-const.c (size_low_cst): Move from tree.c.
6841 (tree_expr_nonzero_warnv_p): Make static. Move earlier in the file.
6842 (tree_expr_nonzero_p): Make static. Move earlier in the file.
6843 (fold_build3_initializer_loc): Remove.
6844 (tree_invalid_nonnegative_warnv_p): Make static.
6845 * function.c (expand_main_function): Move to cfgexpand.c.
6846 (stack_protect_prologue): Move to cfgexpand.c.
6847 (set_insn_locations): Move earlier in the file.
6848 * gimple-fold.c: Include langhooks.h.
6849 (truth_type_for): Move from tree.c.
6850 * print-tree.c (print_vec_tree): Remove.
6851 * stmt.c (expand_computed_goto): Move to cfgexpand.c.
6852 (expand_goto): Move to cfgexpand.c.
6853 (n_occurrences): Move to cfgexpand.c.
6854 (expand_asm_loc): Move to cfgexpand.c
6855 (tree_conflicts_with_clobbers_p): Move to cfgexpand.c.
6856 (expand_asm_operands): Move to cfgexpand.c.
6857 (expand_asm_stmt): Move to cfgexpand.c.
6858 (check_operand_nalternatives): Move to cfgexpand.c
6859 (expand_null_return): Move to cfgexpand.c.
6860 (expand_value_return): Move to cfgexpand.c.
6861 (expand_null_return_1): Move to cfgexpand.c.
6862 (expand_return): Move to cfgexpand.c.
6863 (expand_stack_save): Move to builtins.c.
6864 (expand_stack_restore): Move to builtins.c
6865 * symtab.c: Include output.h.
6866 (decl_assembler_name_hash): Move from tree.c.
6867 (decl_assembler_name_equal): Move from tree.c.
6868 * trans-mem.c (is_tm_safe_or_pure): Move from tree.h.
6869 * tree-eh.c (in_array_bounds_p): Move from tree.c.
6870 (range_in_array_bounds_p): Move from tree.c.
6871 * tree-object-size.c (fini_object_sizes): Make static.
6872 * tree-ssa-dom.c (iterative_hash_exprs_commutative): Move from tree.h.
6873 * tree-vrp.c (ssa_name_nonnegative_p): Remove.
6874 * tree.c (decl_assembler_name_equal): Move to symtab.c.
6875 (tree_expr_size): Move to explow.c.
6876 (decl_assembler_name_hash): Move to symtab.c.
6877 (real_twop): Remove.
6878 (tree_expr_size): Move to explow.c.
6879 (stabilize_reference_1): Move earlier in the file. Make static.
6880 (omp_remove_redundant_declare_simd_attrs): Remove.
6881 (simple_cst_list_equal): Move earlier in the file. Make static.
6882 (size_low_cst): Move to fold-const.c.
6883 (build_type_no_quals): Remove.
6884 (build_function_type_skip_args): Move to cgraphclones.c.
6885 (build_function_decl_skip_args): Move to cgraphclones.c.
6886 (in_array_bounds_p): Move to tree-eh.c.
6887 (range_in_array_bounds_p): Move to tree-eh.c.
6888 (truth_type_for): Move to gimple-fold.c.
6889 (list_equal_p): Remove.
6890 * tree.h (decl_assembler_name_equal): Remove.
6891 (decl_assembler_name_hash): Remove.
6892 (truth_type_for): Remove.
6893 (build_type_no_quals): Remove.
6894 (build_function_decl_skip_args): Remove.
6895 (in_array_bounds_p): Remove.
6896 (range_in_array_bounds_p): Remove.
6897 (size_low_cst): Remove.
6898 (omp_remove_redundant_declare_simd_attrs): Remove.
6899 (tree_expr_size): Remove.
6900 (fields_length): Remove.
6901 (stabilize_reference_1): Remove.
6902 (expand_goto): Remove.
6903 (expand_stack_save): Remove.
6904 (expand_stack_restore): Remove.
6905 (expand_return): Remove.
6906 (fold_build3_initializer_loc): Remove.
6907 (tree_expr_nonzero_p): Remove.
6908 (tree_invalid_nonnegative_warnv_p): Remove.
6909 (tree_expr_nonzero_warnv_p): Remove.
6910 (fold_builtin_snprintf_chk): Remove.
6911 (validate_arglist): Remove.
6912 (iterative_hash_exprs_commutative): Move to tree-ssa-dom.c.
6913 (simple_cst_list_equal): Remove.
6914 (real_twop): Remove.
6915 (expand_main_function): Remove.
6916 (stack_protect_prologue): Remove.
6917 (print_vec_tree): Remove.
6918 (lookup_scoped_attribute_spec): Remove.
6919 (get_attribute_namespace): Remove.
6920 (expand_computed_goto): Remove.
6921 (expand_asm_stmt): Remove.
6922 (list_equal_p): Remove.
6923 (ssa_name_nonnegative_p): Remove.
6924 (fini_object_sizes): Remove.
6925 (addr_expr_of_non_mem_decl_p): Remove.
6926 (is_tm_safe_or_pure): Move to trans-mem.c.
6927 (more_const_call_expr_args_p): Remove.
6928 (save_vtable_map_decl): Remove.
6930 2013-11-07 Thomas Schwinge <thomas@codesourcery.com>
6932 * doc/sourcebuild.texi (Top Level) <lto-plugin>: GNU ld can use
6933 linker plugins, too.
6935 * config/arc/arc.h (LINK_COMMAND_SPEC): For -ftree-parallelize-loops=*,
6936 link to libgomp and its dependencies.
6937 * config/ia64/hpux.h (LIB_SPEC): Likewise.
6938 * config/pa/pa-hpux11.h (LIB_SPEC): Likewise.
6939 * config/pa/pa64-hpux.h (LIB_SPEC): Likewise.
6940 * gcc.c (GOMP_SELF_SPECS): Update comment about libgomp's dependencies.
6942 2013-11-07 Jakub Jelinek <jakub@redhat.com>
6944 * tree-ssa-loop-niter.c: Include tree-ssanames.h.
6945 (determine_value_range): Add loop argument. Use get_range_info to
6947 (bound_difference): Adjust caller.
6949 2013-11-07 Richard Biener <rguenther@suse.de>
6950 Jakub Jelinek <jakub@redhat.com>
6952 * tree-vrp.c (find_assert_locations): Pre-seed live bitmaps for loop
6953 latches from header PHI arguments from the latch edge.
6955 2013-11-07 Paolo Carlini <paolo.carlini@oracle.com>
6958 * varasm.c (output_constant): Handle NULLPTR_TYPE.
6960 2013-11-07 H.J. Lu <hongjiu.lu@intel.com>
6962 * config/i386/i386.c (ix86_expand_set_or_movmem): Don't set
6963 misaligned_prologue_used when it has been set.
6965 2013-11-07 Yury Gribov <y.gribov@samsung.com>
6966 Jakub Jelinek <jakub@redhat.com>
6969 * asan.c (get_mem_refs_of_builtin_call): Allow
6970 integer literals as addresses in instrumented builtins.
6972 2013-11-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
6974 * config/aarch64/aarch64.c (aarch64_legitimize_reload_address):
6975 Explain why plus_constant is not used.
6977 2013-11-07 Richard Biener <rguenther@suse.de>
6979 * tree-ssa-ccp.c (canonicalize_float_value): Rename to ...
6980 (canonicalize_value): ... this. Also handle stripping of
6982 (get_value, set_lattice_value, get_value_for_expr): Adjust.
6983 * gimple-fold.c (canonicalize_constructor_val): Strip TREE_OVERFLOW.
6984 * tree-ssa-threadedge.c (set_ssa_name_value): Likewise.
6986 2013-11-07 Richard Biener <rguenther@suse.de>
6988 * tree-dfa.c (get_ref_base_and_extent): Fix casting.
6990 2013-11-07 H.J. Lu <hongjiu.lu@intel.com>
6993 * config/i386/i386.md (push peepholer/splitter): Use Pmode
6994 with stack_pointer_rtx.
6996 2013-11-07 Bin Cheng <bin.cheng@arm.com>
6998 * tree-ssa-loop-ivopts.c (get_shiftadd_cost): Check equality
6999 using operand_equal_p.
7001 2013-11-07 Bin Cheng <bin.cheng@arm.com>
7003 * tree-ssa-loop-ivopts.c (alloc_iv): Lower address expressions.
7004 * tree-affine.c (get_inner_reference_aff): Return base.
7005 * tree-affine.h (get_inner_reference_aff): Change prototype.
7007 2013-11-06 Tobias Burnus <burnus@net-b.de>
7009 * doc/invoke.texi (Wdate-time): Fix typo.
7011 2013-11-06 Oleg Endo <olegendo@gcc.gnu.org>
7013 * config/sh/sh.md (addsf3, divsf3, divsf3_i, rsqrtsf2, cmpgtdf_t,
7014 cmpeqdf_t, *ieee_ccmpeqdf_t, negdf2, sqrtdf2, absdf2): Use
7015 fp_arith_reg_operand instead of arith_reg_operand.
7017 2013-11-06 Oleg Endo <olegendo@gcc.gnu.org>
7019 * config/sh/sh.md (adddi3): Remove empty constraints.
7020 Remove can_create_pseudo_p and arith_reg_operand check.
7021 (adddi3_compact, subdi3_compact, *negdi2): Remove constraints.
7022 Split before reload.
7024 2013-11-06 Jeff Law <law@redhat.com>
7025 Tom Tromey <tromey@redhat.com>
7027 * gdbinit.in: Disable strict type checking.
7029 2013-11-06 Vladimir Makarov <vmakarov@redhat.com>
7031 * tree-pass.h (make_pass_live_range_shrinkage): New external.
7032 * timevar.def (TV_LIVE_RANGE_SHRINKAGE): New.
7033 * sched-rgn.c (gate_handle_live_range_shrinkage): New.
7034 (rest_of_handle_live_range_shrinkage): Ditto
7035 (class pass_live_range_shrinkage): Ditto.
7036 (pass_data_live_range_shrinkage): Ditto.
7037 (make_pass_live_range_shrinkage): Ditto.
7038 * sched-int.h (initialize_live_range_shrinkage): New prototype.
7039 (finish_live_range_shrinkage): Ditto.
7040 * sched-deps.c (create_insn_reg_set): Make void return value.
7041 * passes.def: Add pass_live_range_shrinkage.
7042 * ira.c (update_equiv_regs): Don't move if flag_live_range_shrinkage.
7043 * haifa-sched.c (live_range_shrinkage_p): New.
7044 (initialize_live_range_shrinkage, finish_live_range_shrinkage):
7046 (rank_for_schedule): Add code for pressure relief through live
7048 (schedule_insn): Print more debug info.
7049 (sched_init): Setup SCHED_PRESSURE_WEIGHTED for pressure relief
7050 through live range shrinkage.
7051 * doc/invoke.texi (-flive-range-shrinkage): New.
7052 * common.opt (flive-range-shrinkage): New.
7054 2013-11-06 Uros Bizjak <ubizjak@gmail.com>
7057 * config/i386/i386.c (ix86_avx_u128_mode_needed): Require
7058 AVX_U128_DIRTY mode for call_insn RTXes that use AVX256 registers.
7059 (ix86_avx_u128_mode_needed): Return AVX_U128_DIRTY mode for call_insn
7060 RTXes that return in AVX256 register.
7062 2013-11-06 Richard Biener <rguenther@suse.de>
7064 PR tree-optimization/58653
7065 * tree-predcom.c (ref_at_iteration): Rewrite to generate a MEM_REF.
7066 (prepare_initializers_chain): Adjust.
7068 2013-11-06 Andrew MacLeod <amacleod@redhat.com>
7070 * gimple.h (block_in_transaction): Move to basic-block.h and rename.
7071 (gimple_in_transaction): Use bb_in_transaction.
7072 * basic-block.h (bb_in_transaction): Relocate here and rename.
7073 * tree-ssa-loop-im.c (execute_sm): Use bb_in_transaction.
7075 2013-11-06 Richard Biener <rguenther@suse.de>
7077 * tree.c (drop_tree_overflow): New function.
7078 * tree.h (drop_tree_overflow): Declare.
7079 * gimplify.c (gimplify_expr): Drop TREE_OVERFLOW.
7080 * tree-vrp.c (range_int_cst_singleton_p): Use
7081 is_overflow_infinity instead of testing TREE_OVERFLOW.
7082 (extract_range_from_assert): Likewise.
7083 (zero_nonzero_bits_from_vr): Likewise.
7084 (extract_range_basic): Likewise.
7085 (register_new_assert_for): Use drop_tree_overflow.
7086 (vrp_visit_phi_node): Likewise.
7088 2013-11-06 Eric Botcazou <ebotcazou@adacore.com>
7090 * config/i386/i386.c (ix86_expand_prologue): Optimize stack
7091 checking for leaf functions without dynamic stack allocation.
7092 * config/ia64/ia64.c (ia64_emit_probe_stack_range): Adjust.
7093 (ia64_expand_prologue): Likewise.
7094 * config/mips/mips.c (mips_expand_prologue): Likewise.
7095 * config/rs6000/rs6000.c (rs6000_emit_prologue): Likewise.
7096 * config/sparc/sparc.c (sparc_expand_prologue): Likewise.
7097 (sparc_flat_expand_prologue): Likewise.
7099 2013-11-06 James Greenhalgh <james.greenhalgh@arm.com>
7101 * config/aarch64/arm_neon.h (__ST2_LANE_FUNC): Better model data size.
7102 (__ST3_LANE_FUNC): Likewise.
7103 (__ST4_LANE_FUNC): Likewise.
7105 2013-11-06 Nick Clifton <nickc@redhat.com>
7107 * config/msp430/msp430.h (TARGET_CPU_CPP_BUILTINS): Define the
7108 name returned by msp430_mcu_name.
7109 (LIB_SPEC): If a -T option has not been specified then set a
7110 default, mcu-specific, linker script.
7111 * config/msp430/t-msp430 (MULTILIB_MATCHES): Add more mcu names.
7112 * config/msp430/msp430.c (msp430x_names): Likewise.
7113 Alpha sort the names for ease of comparison.
7114 (msp430_mcu_name): New function: Returns a string suitable for
7115 use as a C preprocessor symbol based upon the name of the MCU
7117 (msp430_option_override): Accept msp430x and msp430xv2 as generic
7119 * config/msp430/msp430-protos.h (msp430_mcu_name): Prototype.
7121 * gcc.c (do_spec_1): Do not insert a space after a %* substitution
7122 unless it is the last part of a spec substring.
7123 * doc/invoke.texi (Spec Files): Document space insertion
7126 2013-11-06 Christian Bruel <christian.bruel@st.com>
7128 * config/sh/sh-mem.cc (sh_expand_cmpnstr, sh_expand_cmpstr):
7129 Factorize probabilities, Use adjust_address instead of
7130 adjust_automodify_address when possible. Enable for optimize.
7131 (sh_expand_strlen): New function.
7132 * config/sh/sh-protos.h (sh_expand_strlen): Declare.
7133 * config/sh/sh.md (strlensi): New pattern.
7134 (UNSPEC_BUILTIN_STRLEN): Define.
7136 2013-11-06 Jakub Jelinek <jakub@redhat.com>
7139 * expr.c (get_bit_range): Handle *offset == NULL_TREE.
7140 (expand_assignment): If *bitpos is negative, set *offset
7141 and adjust *bitpos, so that it is not negative.
7143 2013-11-06 Ganesh Gopalasubramanian <Ganesh.Gopalasubramanian@amd.com>
7145 * config/i386/bdver3.md : Added two additional decoder units
7146 to support issue rate of 4 and remodeled vector unit.
7147 * config/i386/i386.c (ix86_issue_rate): Issue rate for BD
7148 architectures is set to 4.
7149 * config/i386/i386.c (ia32_multipass_dfa_lookahead): DFA
7150 lookahead is set to 4 for BD architectures.
7152 2013-11-05 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
7154 * config/rs6000/rs6000.c (rs6000_option_override_internal):
7155 Remove restriction against use of VSX instructions when generating
7156 code for little endian mode.
7158 2013-11-05 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
7160 * config/rs6000/altivec.md (mulv4si3): Ensure we generate vmulouh
7161 for both big and little endian.
7162 (mulv8hi3): Swap input operands for merge high and merge low
7163 instructions for little endian.
7165 2013-11-05 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
7167 * config/rs6000/altivec.md (vec_widen_umult_even_v16qi): Change
7168 define_insn to define_expand that uses even patterns for big
7169 endian and odd patterns for little endian.
7170 (vec_widen_smult_even_v16qi): Likewise.
7171 (vec_widen_umult_even_v8hi): Likewise.
7172 (vec_widen_smult_even_v8hi): Likewise.
7173 (vec_widen_umult_odd_v16qi): Likewise.
7174 (vec_widen_smult_odd_v16qi): Likewise.
7175 (vec_widen_umult_odd_v8hi): Likewise.
7176 (vec_widen_smult_odd_v8hi): Likewise.
7177 (altivec_vmuleub): New define_insn.
7178 (altivec_vmuloub): Likewise.
7179 (altivec_vmulesb): Likewise.
7180 (altivec_vmulosb): Likewise.
7181 (altivec_vmuleuh): Likewise.
7182 (altivec_vmulouh): Likewise.
7183 (altivec_vmulesh): Likewise.
7184 (altivec_vmulosh): Likewise.
7186 2013-11-05 Mike Stump <mikestump@comcast.net>
7188 * Makefile.in (mostlyclean): Remove c-family objects.
7190 2013-11-05 Ian Lance Taylor <iant@google.com>
7192 * config/i386/sync.md (atomic_compare_and_swap<dwi>_doubleword):
7193 If possible, add .cfi directives to record change to bx.
7194 * config/i386/i386.c (ix86_emit_cfi): New function.
7195 * config/i386/i386-protos.h (ix86_emit_cfi): Declare.
7197 2013-11-05 Steven Bosscher <steven@gcc.gnu.org>
7199 * rtlanal.c (tablejump_p): Expect a JUMP_TABLE_DATA to always follow
7200 immediately after a label for a tablejump pattern.
7202 * config/arm/arm.c (is_jump_table): Remove.
7203 (create_fix_barrier): Use tablejump_p instead.
7204 (arm_reorg): Likewise.
7205 (thumb1_output_casesi): Expect JUMP_TABLE_DATA to always be NEXT_INSN.
7206 (thumb2_output_casesi): Likewise.
7207 * config/aarch64/aarch64.c (aarch64_output_casesi): Likewise.
7208 * config/sh/sh.md (casesi_worker_1, casesi_worker_2,
7209 casesi_shift_media, casesi_load_media): Likewise.
7210 * config/iq2000/iq2000.md: Likewise (in anonymous define_insn).
7211 * config/microblaze/microblaze.md: Likewise.
7213 2013-11-05 Tobias Burnus <burnus@net-b.de>
7215 * doc/invoke.texi (-Wdate-time): Document.
7217 2013-11-05 Richard Sandiford <rdsandiford@googlemail.com>
7219 * double-int.c (lshift_double, rshift_double): Remove
7220 SHIFT_COUNT_TRUNCATED handling.
7222 2013-11-05 Jeff Law <law@redhat.com>
7224 * Makefile.in (OBJS): Add gimple-ssa-isolate-paths.o
7225 * common.opt (-fisolate-erroneous-paths): Add option and documentation.
7226 * gimple-ssa-isolate-paths.c: New file.
7227 * gimple.c (check_loadstore): New function.
7228 (infer_nonnull_range): Moved into gimple.c from tree-vrp.c
7229 Verify OP is in the argument list and the argument corresponding
7230 to OP is a pointer type. Use operand_equal_p rather than
7231 pointer equality when testing if OP is on the nonnull list.
7232 Use check_loadstore rather than count_ptr_derefs. Handle
7233 GIMPLE_RETURN statements.
7234 * tree-vrp.c (infer_nonnull_range): Remove.
7235 * gimple.h (infer_nonnull_range): Declare.
7236 * opts.c (default_options_table): Add OPT_fisolate_erroneous_paths.
7237 * passes.def: Add pass_isolate_erroneous_paths.
7238 * timevar.def (TV_ISOLATE_ERRONEOUS_PATHS): New timevar.
7239 * tree-pass.h (make_pass_isolate_erroneous_paths): Declare.
7240 * tree-ssa.c (struct count_ptr_d): Remove.
7241 (count_ptr_derefs, count_uses_and_derefs): Remove.
7242 * tree-ssa.h (count_uses_and_derefs): Remove.
7244 2013-11-05 Jakub Jelinek <jakub@redhat.com>
7246 PR rtl-optimization/58997
7247 * loop-iv.c (iv_subreg): For IV_UNKNOWN_EXTEND, expect
7248 get_iv_value to be in iv->mode rather than iv->extend_mode.
7249 (iv_extend): Likewise. Otherwise, if iv->extend != extend,
7250 use lowpart_subreg on get_iv_value before calling simplify_gen_unary.
7251 * loop-unswitch.c (may_unswitch_on): Make sure op[i] is in the right
7254 2013-11-05 Andrew MacLeod <amacleod@redhat.com>
7256 * gimple.h: Move some prototypes to gimple-expr.h and add to include
7258 (extract_ops_from_tree, gimple_call_addr_fndecl, is_gimple_reg_type):
7259 Move to gimple-expr.h.
7260 * gimple-expr.h: New file. Relocate some prototypes from gimple.h.
7261 (types_compatible_p, is_gimple_reg_type, is_gimple_variable,
7262 is_gimple_id, virtual_operand_p, is_gimple_addressable,
7263 is_gimple_constant, extract_ops_from_tree, gimple_call_addr_fndecl):
7265 * gimple.c (extract_ops_from_tree_1, gimple_cond_get_ops_from_tree,
7266 gimple_set_body, gimple_body, gimple_has_body_p, is_gimple_lvalue,
7267 is_gimple_condexpr, is_gimple_addressable, is_gimple_constant,
7268 is_gimple_address, is_gimple_invariant_address,
7269 is_gimple_ip_invariant_address, is_gimple_min_invariant,
7270 is_gimple_ip_invariant, is_gimple_variable, is_gimple_id,
7271 virtual_operand_p, is_gimple_reg, is_gimple_val, is_gimple_asm_val,
7272 is_gimple_min_lval, is_gimple_call_addr, is_gimple_mem_ref_addr,
7273 gimple_decl_printable_name, useless_type_conversion_p,
7274 types_compatible_p, gimple_can_coalesce_p, copy_var_decl): Move to
7276 * gimple-expr.c: New File.
7277 (useless_type_conversion_p, gimple_set_body, gimple_body,
7278 gimple_has_body_p, gimple_decl_printable_name, copy_var_decl,
7279 gimple_can_coalesce_p, extract_ops_from_tree_1,
7280 gimple_cond_get_ops_from_tree, is_gimple_lvalue, is_gimple_condexpr,
7281 is_gimple_address, is_gimple_invariant_address,
7282 is_gimple_ip_invariant_address, is_gimple_min_invariant,
7283 is_gimple_ip_invariant, is_gimple_reg, is_gimple_val,
7284 is_gimple_asm_val, is_gimple_min_lval, is_gimple_call_addr,
7285 is_gimple_mem_ref_addr): Relocate here.
7286 * Makefile.in (OBJS): Add gimple-expr.o.
7288 2013-11-05 David Malcolm <dmalcolm@redhat.com>
7290 * gengtype-parse.c (struct_field_seq): Support empty structs.
7292 2013-11-05 Uros Bizjak <ubizjak@gmail.com>
7294 * config/i386/t-rtems (MULTILIB_MATCHES): Fix option typos.
7296 2013-11-05 Uros Bizjak <ubizjak@gmail.com>
7298 * config/i386/i386-c.c (ix86_target_macros): Define _SOFT_FLOAT
7300 * config/i386/rtemself.h (TARGET_OS_CPP_BUILTINS): Do not define
7302 (LONG_DOUBLE_TYPE_SIZE): New define.
7303 (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Ditto.
7305 2013-11-05 Paolo Carlini <paolo.carlini@oracle.com>
7308 * doc/extend.texi [visibility ("visibility_type")]: Add example
7309 about visibility attribute on namespace declaration.
7311 2013-11-05 Richard Biener <rguenther@suse.de>
7314 * passes.def (all_passes): Start with pass_fixup_cfg again.
7316 2013-11-05 Richard Biener <rguenther@suse.de>
7318 PR tree-optimization/58955
7319 * tree-loop-distribution.c (pg_add_dependence_edges): Fix
7322 2013-11-05 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
7324 * config/rs6000/vector.md (vec_pack_sfix_trunc_v2df): Adjust for
7326 (vec_pack_ufix_trunc_v2df): Likewise.
7328 2013-11-05 H.J. Lu <hongjiu.lu@intel.com>
7331 * doc/md.texi (@code{movmem@var{m}}): Specify Pmode as mode of
7332 pattern, instead of word_mode.
7334 * expr.c (emit_block_move_via_movmem): Don't use mode wider than
7336 (set_storage_via_setmem): Likewise.
7338 2013-11-05 Andrew MacLeod <amacleod@redhat.com>
7340 * tree-outof-ssa.c (queue_phi_copy_p): Combine phi_ssa_name_p from
7341 gimple.h and the rest of the condition in eliminate_build.
7342 (eliminate_build): Call new routine.
7343 * gimple.h (phi_ssa_name_p): Delete.
7345 2013-11-05 Trevor Saunders <tsaunders@mozilla.com>
7347 * vec.c (vec_prefix::calculate_allocation): Don't try to handle the
7348 case of no prefix and reserving zero slots, because when that's the
7349 case we'll never get here.
7350 * vec.h (va_heap::reserve): Don't try and handle
7351 vec_prefix::calculate_allocation returning zero because that should
7354 2013-11-05 Richard Biener <rguenther@suse.de>
7357 * tree-dfa.c (get_ref_base_and_extent): Merge common code
7358 in MEM_REF and TARGET_MEM_REF handling. Make sure to
7359 process trailing array detection before diving into the
7360 view-converted object (and possibly apply some extra offset).
7362 2013-11-05 Joseph Myers <joseph@codesourcery.com>
7364 * config/i386/i386.c (ix86_float_exceptions_rounding_supported_p):
7366 (TARGET_FLOAT_EXCEPTIONS_ROUNDING_SUPPORTED_P): Define.
7368 2013-11-05 Marc Glisse <marc.glisse@inria.fr>
7370 PR tree-optimization/58958
7371 * tree-ssa-alias.c (ao_ref_init_from_ptr_and_size): Use
7372 get_addr_base_and_unit_offset instead of get_ref_base_and_extent.
7374 2013-11-05 Marc Glisse <marc.glisse@inria.fr>
7376 * tree-ssa-alias.h (ranges_overlap_p): Handle negative offsets.
7377 * tree-ssa-alias.c (ao_ref_init_from_ptr_and_size): Likewise.
7379 2013-11-05 Jakub Jelinek <jakub@redhat.com>
7381 PR tree-optimization/58984
7382 * ipa-prop.c (ipa_load_from_parm_agg_1): Add SIZE_P argument,
7383 set *SIZE_P if non-NULL on success.
7384 (ipa_load_from_parm_agg, ipa_analyze_indirect_call_uses): Adjust
7386 (ipcp_transform_function): Likewise. Punt if size of access
7387 is different from TYPE_SIZE on v->value's type.
7389 2013-11-05 Tobias Burnus <burnus@net-b.de>
7391 * doc/invoke.texi (-fopenmp-simd): Document new option.
7392 * gimplify.c (gimplify_body): Accept -fopenmp-simd.
7393 * omp-low.c (execute_expand_omp, execute_lower_omp): Ditto.
7394 * tree.c (attribute_value_equal): Ditto.
7396 2013-11-04 Wei Mi <wmi@google.com>
7398 * sched-rgn.c (add_branch_dependences): Keep insns in
7399 a SCHED_GROUP at the end of BB to remain their location.
7401 2013-11-04 Wei Mi <wmi@google.com>
7403 * config/i386/i386.c (memory_address_length): Extract a part
7404 of code to rip_relative_addr_p.
7405 (rip_relative_addr_p): New Function.
7406 (ix86_macro_fusion_p): Ditto.
7407 (ix86_macro_fusion_pair_p): Ditto.
7408 * config/i386/i386.h: Add new tune features about macro-fusion.
7409 * config/i386/x86-tune.def (DEF_TUNE): Ditto.
7410 * doc/tm.texi: Generated.
7411 * doc/tm.texi.in: Ditto.
7412 * haifa-sched.c (try_group_insn): New Function.
7413 (group_insns_for_macro_fusion): Ditto.
7414 (sched_init): Call group_insns_for_macro_fusion.
7415 * target.def: Add two hooks: macro_fusion_p and
7416 macro_fusion_pair_p.
7418 2013-11-04 Kostya Serebryany <kcc@google.com>
7420 Update to match the changed asan API.
7421 * asan.c (asan_function_start): New function.
7422 (asan_emit_stack_protection): Update the string stored in the
7423 stack red zone to match new API. Store the PC of the current
7424 function in the red zone.
7425 (asan_global_struct): Update the __asan_global definition to match
7427 (asan_add_global): Ditto.
7428 * asan.h (asan_function_start): New prototype.
7429 * final.c (final_start_function): Call asan_function_start.
7430 * sanitizer.def (BUILT_IN_ASAN_INIT): Rename __asan_init_v1
7433 2013-11-04 Wei Mi <wmi@google.com>
7435 * config/i386/i386-c.c (ix86_target_macros_internal): Separate
7436 PROCESSOR_COREI7_AVX out from PROCESSOR_COREI7.
7437 * config/i386/i386.c (ix86_option_override_internal): Ditto.
7438 (ix86_issue_rate): Ditto.
7439 (ix86_adjust_cost): Ditto.
7440 (ia32_multipass_dfa_lookahead): Ditto.
7441 (ix86_sched_init_global): Ditto.
7442 (get_builtin_code_for_version): Ditto.
7443 * config/i386/i386.h (enum target_cpu_default): Ditto.
7444 (enum processor_type): Ditto.
7445 * config/i386/x86-tune.def (DEF_TUNE): Ditto.
7447 2013-11-04 Vladimir Makarov <vmakarov@redhat.com>
7449 PR rtl-optimization/58967
7450 * config/rs6000/rs6000.c (legitimate_lo_sum_address_p): Remove
7451 !lra_in_progress for mode sizes bigger word.
7453 2013-11-04 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
7455 * config/rs6000/altivec.md (vec_widen_umult_hi_v16qi): Swap
7456 arguments to merge instruction for little endian.
7457 (vec_widen_umult_lo_v16qi): Likewise.
7458 (vec_widen_smult_hi_v16qi): Likewise.
7459 (vec_widen_smult_lo_v16qi): Likewise.
7460 (vec_widen_umult_hi_v8hi): Likewise.
7461 (vec_widen_umult_lo_v8hi): Likewise.
7462 (vec_widen_smult_hi_v8hi): Likewise.
7463 (vec_widen_smult_lo_v8hi): Likewise.
7465 2013-11-04 Ian Lance Taylor <iant@google.com>
7467 * builtins.def (ATTR_NOTHROWCALL_LEAF_LIST): Define.
7468 * sync-builtins.def: Use ATTR_NOTHROWCALL_LEAF_LIST for all sync
7469 builtins that take pointers.
7470 * lto-opts.c (lto_write_options): Write -fnon-call-exceptions if set.
7471 * lto-wrapper.c (merge_and_complain): Collect OPT_fnon_call_exceptions.
7472 (run_gcc): Pass -fnon-call-exceptions.
7474 2013-11-04 Jakub Jelinek <jakub@redhat.com>
7476 * optabs.c (expand_vec_perm): Revert one incorrect line from
7479 PR tree-optimization/58978
7480 * tree-vrp.c (all_imm_uses_in_stmt_or_feed_cond): Don't modify
7481 use_stmt by single_imm_use directly. Only call single_imm_use
7484 2013-11-04 Vladimir Makarov <vmakarov@redhat.com>
7486 PR rtl-optimization/58968
7487 * lra-spills.c (return_regno_p): New function.
7488 (lra_final_code_change): Use it.
7490 2013-11-04 Joseph Myers <joseph@codesourcery.com>
7492 * doc/cpp.texi (__GCC_IEC_559, __GCC_IEC_559_COMPLEX): Document macros.
7493 * target.def (float_exceptions_rounding_supported_p): New hook.
7494 * targhooks.c (default_float_exceptions_rounding_supported_p): New
7496 * targhooks.h (default_float_exceptions_rounding_supported_p): Declare.
7497 * doc/tm.texi.in (TARGET_FLOAT_EXCEPTIONS_ROUNDING_SUPPORTED_P):
7499 * doc/tm.texi: Regenerate.
7500 * config.gcc (powerpc*-*-linux*): Set extra_objs.
7501 * config/rs6000/rs6000-linux.c: New file.
7502 * config/rs6000/rs6000-protos.h
7503 (rs6000_linux_float_exceptions_rounding_supported_p): Declare.
7504 * config/rs6000/linux.h
7505 (TARGET_FLOAT_EXCEPTIONS_ROUNDING_SUPPORTED_P): New macro.
7506 * config/rs6000/linux64.h
7507 (TARGET_FLOAT_EXCEPTIONS_ROUNDING_SUPPORTED_P): Likewise.
7508 * config/rs6000/t-linux (rs6000-linux.o): New rule.
7509 * config/rs6000/t-linux64 (rs6000-linux.o): Likewise.
7511 2013-11-04 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
7513 * config/rs6000/vsx.md (*vsx_le_perm_store_<mode> for VSX_D):
7514 Replace the define_insn_and_split with a define_insn and two
7515 define_splits, with the split after reload re-permuting the source
7516 register to its original value.
7517 (*vsx_le_perm_store_<mode> for VSX_W): Likewise.
7518 (*vsx_le_perm_store_v8hi): Likewise.
7519 (*vsx_le_perm_store_v16qi): Likewise.
7521 2013-11-04 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
7523 * config/rs6000/vector.md (vec_pack_trunc_v2df): Adjust for
7526 2013-11-04 Jakub Jelinek <jakub@redhat.com>
7528 PR tree-optimization/58946
7529 * tree-ssa-reassoc.c (maybe_optimize_range_tests): Update all
7530 bbs with bbinfo[idx].op != NULL before all blocks with
7531 bbinfo[idx].op == NULL.
7533 2013-11-04 Richard Sandiford <rdsandiford@googlemail.com>
7535 * config/avr/avr-log.c (avr_double_int_pop_digit): Delete.
7536 (avr_dump_double_int_hex): Likewise.
7537 (avr_log_vadump): Remove %D and %X handling.
7538 * config/avr/avr.c (avr_double_int_push_digit): Delete.
7539 (avr_map_op_t): Change map from double_int to unsigned int.
7540 (avr_map_op): Update accordingly.
7541 (avr_map, avr_map_metric, avr_has_nibble_0xf, avr_map_decompose)
7542 (avr_move_bits, avr_out_insert_bits, avr_fold_builtin): Operate on
7543 unsigned ints rather than double_ints.
7545 2013-11-03 Marek Polacek <polacek@redhat.com>
7547 Implement -fsanitize=vla-bound.
7548 * opts.c (common_handle_option): Handle vla-bound.
7549 * sanitizer.def (BUILT_IN_UBSAN_HANDLE_VLA_BOUND_NOT_POSITIVE): Define.
7550 * flag-types.h (enum sanitize_code): Add SANITIZE_VLA.
7551 * asan.c (initialize_sanitizer_builtins): Build BT_FN_VOID_PTR_PTR.
7553 2013-11-02 Bill Schmidt <wschmidt@vnet.linux.ibm.com>
7555 * config/rs6000/rs6000.c (rs6000_expand_vector_set): Adjust for
7558 2013-11-02 Uros Bizjak <ubizjak@gmail.com>
7560 * config/i386/constraints.md (Ts, Tv): New address constrains.
7561 * config/i386/i386.md (*lea<mode>, *<mode>_<bndcheck>): Use Ts
7562 constraint for address_no_seg_operand.
7563 * config/i386/sse.md (*avx512pf_gatherpf<mode>_mask)
7564 (*avx512pf_gatherpf<mode>, *avx512pf_scatterpf<mode>_mask)
7565 (*avx512pf_scatterpf<mode>, *avx2_gathersi<mode>)
7566 (*avx2_gathersi<mode>_2, *avx2_gatherdi<mode>, *avx2_gatherdi<mode>_2)
7567 (*avx2_gatherdi<mode>_3, *avx2_gatherdi<mode>_4)
7568 (*avx512f_gathersi<mode>, *avx512f_gathersi<mode>_2)
7569 (*avx512f_gatherdi<mode>, *avx512f_gatherdi<mode>_2)
7570 (*avx512f_scattersi<mode> *avx512f_scatterdi<mode>): Use Tv
7571 constraint for vsib_address_operand.
7573 2013-11-02 Steven Bosscher <steven@gcc.gnu.org>
7575 * gcse.c (pre_delete): Remove references to regmove from comments.
7576 * recog.c: (validate_replace_rtx_1): Likewise.
7577 * config/rl78/rl78.c: Likewise.
7578 * config/v850/v850.h: Likewise, and remove unused ENABLE_REGMOVE_PASS.
7579 * common/config/m32r/m32r-common.c: Don't manipulate OPT_fregmove.
7580 * common/config/mmix/mmix-common.c: Likewise.
7582 2013-11-01 Trevor Saunders <tsaunders@mozilla.com>
7584 * function.c (reorder_blocks): Convert block_stack to a stack_vec.
7585 * gimplify.c (gimplify_compound_lval): Likewise.
7586 * graphite-clast-to-gimple.c (gloog): Likewise.
7587 * graphite-dependences.c (loop_is_parallel_p): Likewise.
7588 * graphite-scop-detection.c (scopdet_basic_block_info): Likewise.
7589 (limit_scop); Likewise.
7590 (build_scops): Likewise.
7591 (dot_scop): Likewise.
7592 * graphite-sese-to-poly.c (sese_dom_walker): Likewise.
7593 (build_scop_drs): Likewise.
7594 (insert_stmts): Likewise.
7595 (insert_out_of_ssa_copy): Likewise.
7596 (remove_phi): Likewise.
7597 (rewrite_commutative_reductions_out_of_ssa_close_phi): Likewise.
7598 * hw-doloop.c (discover_loop): Likewise.
7599 * tree-call-cdce.c (shrink_wrap_one_built_in_call): Likewise.
7600 * tree-dfa.c (dump_enumerated_decls): Likewise.
7601 * tree-if-conv.c (if_convertable_loop_p): Likewise.
7602 * tree-inline.c (tree_function_versioning): Likewise.
7603 * tree-loop-distribution.c (build_rdg): Likewise.
7604 (rdg_flag_vertex_and_dependent): Likewise.
7605 (distribute_loop): Likewise.
7606 * tree-parloops.c (loop_parallel_p): Likewise.
7607 (eliminate_local_variables): Likewise.
7608 (separate_decls_in_region): Likewise.
7609 * tree-predcom.c (tree_predictive_commoning_loop): Likewise.
7610 * tree-ssa-phiopt.c (cond_if_else_store_replacement): Likewise.
7611 * tree-ssa-uncprop.c (uncprop_dom_walker): Likewise.
7612 * tree-vect-loop.c (vect_analyze_scaler_cycles_1): Likewise.
7613 * tree-vect-patterns.c (vect_pattern_recog): Likewise.
7614 * tree-vect-stmts.c (vect_mark_stmts_to_be_vectorized): Likewise.
7615 (vectorizable_condition): Likewise.
7617 2013-11-01 Uros Bizjak <ubizjak@gmail.com>
7619 * configure.ac (HAVE_AS_IX86_INTERUNIT_MOVQ): Always define as 0/1.
7620 * configure: Regenerate.
7621 * config/i386/i386.md (*movdi_internal): Change
7622 HAVE_AS_IX86_INTERUNIT_MOVQ to runtime check.
7623 (*movdf_internal): Ditto.
7624 * config/i386/mmx.md (*mov<mode>_internal): Ditto.
7625 * config/i386/sse.md (vec_concatv2di): Output interunit movq
7626 for HAVE_AS_IX86_INTERUNIT_MOVQ targets.
7628 2013-10-31 Robert Suchanek <Robert.Suchanek@imgtec.com>
7630 * lra-spills.c (assign_spill_hard_regs): Remove statement terminator
7633 2013-10-31 David Malcolm <dmalcolm@redhat.com>
7635 Automated part of renaming of symtab_node_base to symtab_node.
7637 Patch autogenerated by rename_symtab.py from
7638 https://github.com/davidmalcolm/gcc-refactoring-scripts
7639 revision 58bb219cc090b2f4516a9297d868c245495ee622
7640 with ChangeLog entry fixed up by hand.
7642 * cgraph.c (x_cgraph_nodes_queue): Rename symtab_node_base to
7644 (cgraph_node_for_asm): Likewise.
7645 * cgraph.h (symtab_node_base): Likewise.
7646 (cgraph_node): Likewise.
7647 (varpool_node): Likewise.
7648 (is_a_helper <cgraph_node>::test): Likewise.
7649 (is_a_helper <varpool_node>::test): Likewise.
7650 (symtab_nodes): Likewise.
7651 (symtab_register_node): Likewise.
7652 (symtab_unregister_node): Likewise.
7653 (symtab_remove_node): Likewise.
7654 (symtab_get_node): Likewise.
7655 (symtab_node_for_asm): Likewise.
7656 (symtab_node_asm_name): Likewise.
7657 (symtab_node_name): Likewise.
7658 (symtab_insert_node_to_hashtable): Likewise.
7659 (symtab_add_to_same_comdat_group): Likewise.
7660 (symtab_dissolve_same_comdat_group_list): Likewise.
7661 (dump_symtab_node): Likewise.
7662 (debug_symtab_node): Likewise.
7663 (dump_symtab_base): Likewise.
7664 (verify_symtab_node): Likewise.
7665 (verify_symtab_base): Likewise.
7666 (symtab_used_from_object_file_p): Likewise.
7667 (symtab_alias_ultimate_target): Likewise.
7668 (symtab_resolve_alias): Likewise.
7669 (fixup_same_cpp_alias_visibility): Likewise.
7670 (symtab_for_node_and_aliases): Likewise.
7671 (symtab_nonoverwritable_alias): Likewise.
7672 (availability symtab_node_availability): Likewise.
7673 (symtab_semantically_equivalent_p): Likewise.
7674 (fixup_same_cpp_alias_visibility): Likewise.
7675 (symtab_prevail_in_asm_name_hash): Likewise.
7677 (varpool): Likewise.
7678 (varpool_first_variable): Likewise.
7679 (varpool_next_variable): Likewise.
7680 (varpool_first_static_initializer): Likewise.
7681 (varpool_next_static_initializer): Likewise.
7682 (varpool_first_defined_variable): Likewise.
7683 (varpool_next_defined_variable): Likewise.
7684 (cgraph_first_defined_function): Likewise.
7685 (cgraph_next_defined_function): Likewise.
7686 (cgraph_first_function): Likewise.
7687 (cgraph_next_function): Likewise.
7688 (cgraph_first_function_with_gimple_body): Likewise.
7689 (cgraph_next_function_with_gimple_body): Likewise.
7690 (symtab_alias_target): Likewise.
7691 (symtab_real_symbol_p): Likewise.
7692 (symtab_can_be_discarded): Likewise.
7693 * cgraphbuild.c (mark_address): Likewise.
7694 (mark_load): Likewise.
7695 (mark_store): Likewise.
7696 * cgraphunit.c (decide_is_symbol_needed): Likewise.
7698 (enqueue_node): Likewise.
7699 (referred_to_p): Likewise.
7700 (cgraph_process_same_body_aliases): Likewise.
7701 (analyze_functions): Likewise.
7702 (handle_alias_pairs): Likewise.
7703 (output_weakrefs): Likewise.
7704 (compile): Likewise.
7705 * gimple-fold.c (can_refer_decl_in_current_unit_p): Likewise.
7706 * ipa-inline-analysis.c (inline_write_summary): Likewise.
7707 * ipa-prop.c (remove_described_reference): Likewise.
7708 (try_decrement_rdesc_refcount): Likewise.
7709 (ipa_edge_duplication_hook): Likewise.
7710 * ipa-ref.c (ipa_record_reference): Likewise.
7711 (ipa_maybe_record_reference): Likewise.
7712 (ipa_clone_ref): Likewise.
7713 (ipa_clone_references): Likewise.
7714 (ipa_clone_referring): Likewise.
7715 (ipa_find_reference): Likewise.
7716 (ipa_remove_stmt_references): Likewise.
7717 (ipa_clear_stmts_in_references): Likewise.
7718 * ipa-ref.h (symtab_node_base): Likewise.
7719 (ipa_ref): Likewise.
7720 (ipa_record_reference): Likewise.
7721 (ipa_maybe_record_reference): Likewise.
7722 (ipa_clone_references): Likewise.
7723 (ipa_clone_referring): Likewise.
7724 (ipa_clone_ref): Likewise.
7725 (ipa_find_reference): Likewise.
7726 (ipa_remove_stmt_references): Likewise.
7727 (ipa_clear_stmts_in_references): Likewise.
7728 * ipa-reference.c (ipa_reference_write_optimization_summary):
7730 * ipa.c (enqueue_node): Likewise.
7731 (process_references): Likewise.
7732 (walk_polymorphic_call_targets): Likewise.
7733 (symtab_remove_unreachable_nodes): Likewise.
7734 (address_taken_from_non_vtable_p): Likewise.
7735 (comdat_can_be_unshared_p_1): Likewise.
7736 (comdat_can_be_unshared_p): Likewise.
7737 (can_replace_by_local_alias): Likewise.
7738 (function_and_variable_visibility): Likewise.
7739 * is-a.h: Likewise (within example in comment).
7740 * lto-cgraph.c (input_cgraph_opt_summary): Likewise.
7741 (lto_symtab_encoder_encode): Likewise.
7742 (lto_symtab_encoder_delete_node): Likewise.
7743 (lto_symtab_encoder_in_partition_p): Likewise.
7744 (lto_set_symtab_encoder_in_partition): Likewise.
7745 (output_refs): Likewise.
7746 (compute_ltrans_boundary): Likewise.
7747 (output_symtab): Likewise.
7748 (input_node): Likewise.
7749 (input_ref): Likewise.
7750 (input_edge): Likewise.
7751 (input_cgraph_1): Likewise.
7752 (input_refs): Likewise.
7753 (output_cgraph_opt_summary): Likewise.
7754 (input_node_opt_summary): Likewise.
7755 (input_cgraph_opt_section): Likewise.
7756 * lto-section-in.c (lto_free_function_in_decl_state_for_node):
7758 * lto-streamer-out.c (lto_output): Likewise.
7759 (output_symbol_p): Likewise.
7760 (produce_symtab): Likewise.
7761 * lto-streamer.h (lto_encoder_entry): Likewise.
7762 (lto_free_function_in_decl_state_for_node): Likewise.
7763 (lto_symtab_encoder_encode): Likewise.
7764 (lto_symtab_encoder_delete_node): Likewise.
7765 (lto_symtab_encoder_in_partition_p): Likewise.
7766 (lto_set_symtab_encoder_in_partition): Likewise.
7767 (lto_symtab_encoder_lookup): Likewise.
7768 (lsei_node): Likewise.
7769 (lto_symtab_encoder_deref): Likewise.
7770 * symtab.c (symtab_hash): Likewise.
7771 (assembler_name_hash): Likewise.
7772 (symtab_nodes): Likewise.
7773 (hash_node): Likewise.
7774 (eq_node): Likewise.
7775 (hash_node_by_assembler_name): Likewise.
7776 (eq_assembler_name): Likewise.
7777 (insert_to_assembler_name_hash): Likewise.
7778 (unlink_from_assembler_name_hash): Likewise.
7779 (symtab_prevail_in_asm_name_hash): Likewise.
7780 (symtab_register_node): Likewise.
7781 (symtab_insert_node_to_hashtable): Likewise.
7782 (symtab_unregister_node): Likewise.
7783 (symtab_get_node): Likewise.
7784 (symtab_remove_node): Likewise.
7785 (symtab_initialize_asm_name_hash): Likewise.
7786 (symtab_node_for_asm): Likewise.
7787 (symtab_add_to_same_comdat_group): Likewise.
7788 (symtab_dissolve_same_comdat_group_list): Likewise.
7789 (symtab_node_asm_name): Likewise.
7790 (symtab_node_name): Likewise.
7791 (dump_symtab_base): Likewise.
7792 (dump_symtab_node): Likewise.
7793 (dump_symtab): Likewise.
7794 (debug_symtab_node): Likewise.
7795 (verify_symtab_base): Likewise.
7796 (verify_symtab_node): Likewise.
7797 (verify_symtab): Likewise.
7798 (symtab_used_from_object_file_p): Likewise.
7799 (symtab_node_availability): Likewise.
7800 (symtab_alias_ultimate_target): Likewise.
7801 (fixup_same_cpp_alias_visibility): Likewise.
7802 (symtab_resolve_alias): Likewise.
7803 (symtab_for_node_and_aliases): Likewise.
7804 (symtab_for_node_and_aliases): Likewise.
7805 (symtab_nonoverwritable_alias_1): Likewise.
7806 (symtab_nonoverwritable_alias): Likewise.
7807 (symtab_semantically_equivalent_p): Likewise.
7808 * value-prof.c (init_node_map): Likewise.
7809 * varasm.c (find_decl): Likewise.
7810 * varpool.c (varpool_node_for_asm): Likewise.
7811 (varpool_remove_unreferenced_decls): Likewise.
7813 2013-10-31 David Malcolm <dmalcolm@redhat.com>
7815 Manual part of renaming of symtab_node_base to symtab_node.
7817 * ipa-ref.h (symtab_node): Remove typedef to pointer type, as it
7818 clashes with the preferred name for the base class.
7819 (const_symtab_node): Remove redundant typedef.
7821 2013-10-31 Jakub Jelinek <jakub@redhat.com>
7823 * optabs.c (expand_vec_perm): Avoid vector mode punning
7824 SUBREGs in SET_DEST.
7825 * expmed.c (store_bit_field_1): Likewise.
7826 * config/i386/sse.md (movdi_to_sse, vec_pack_sfix_trunc_v2df,
7827 vec_pack_sfix_v2df, vec_shl_<mode>, vec_shr_<mode>,
7828 vec_interleave_high<mode>, vec_interleave_low<mode>): Likewise.
7829 * config/i386/i386.c (ix86_expand_vector_move_misalign,
7830 ix86_expand_sse_movcc, ix86_expand_int_vcond, ix86_expand_vec_perm,
7831 ix86_expand_sse_unpack, ix86_expand_args_builtin,
7832 ix86_expand_vector_init_duplicate, ix86_expand_vector_set,
7833 emit_reduc_half, expand_vec_perm_blend, expand_vec_perm_pshufb,
7834 expand_vec_perm_interleave2, expand_vec_perm_pshufb2,
7835 expand_vec_perm_vpshufb2_vpermq,
7836 expand_vec_perm_vpshufb2_vpermq_even_odd, expand_vec_perm_even_odd_1,
7837 expand_vec_perm_broadcast_1, expand_vec_perm_vpshufb4_vpermq2,
7838 ix86_expand_sse2_mulv4si3, ix86_expand_pinsr): Likewise.
7839 (expand_vec_perm_palignr): Likewise. Modify a copy of *d rather
7842 2013-10-31 Uros Bizjak <ubizjak@gmail.com>
7844 * config/i386/i386.c (ix86_expand_sse2_abs): Rename function arguments.
7845 Use gcc_unreachable for unhandled modes. Do not check results of
7846 expand_simple_binop. If not expanded to target, move the result.
7848 2013-10-31 Chung-Ju Wu <jasonwucj@gmail.com>
7849 Shiva Chen <shiva0217@gmail.com>
7851 * config.gcc (nds32*-*-*): Add nds32 target.
7852 * config/nds32/nds32.c: New file.
7853 * config/nds32/nds32.h: New file.
7854 * config/nds32/nds32.md: New file.
7855 * config/nds32/constants.md: New file.
7856 * config/nds32/constraints.md: New file.
7857 * config/nds32/iterators.md: New file.
7858 * config/nds32/nds32-doubleword.md: New file.
7859 * config/nds32/nds32-intrinsic.md: New file.
7860 * config/nds32/nds32_intrinsic.h: New file.
7861 * config/nds32/nds32-modes.def: New file.
7862 * config/nds32/nds32-multiple.md: New file.
7863 * config/nds32/nds32.opt: New file.
7864 * config/nds32/nds32-opts.h: New file.
7865 * config/nds32/nds32-protos.h: New file.
7866 * config/nds32/nds32-peephole2.md: New file.
7867 * config/nds32/pipelines.md: New file.
7868 * config/nds32/predicates.md: New file.
7869 * config/nds32/t-mlibs: New file.
7870 * common/config/nds32: New directory and files.
7872 * doc/invoke.texi (NDS32 options): Document nds32 specific options.
7873 * doc/md.texi (NDS32 family): Document nds32 specific constraints.
7874 * doc/install.texi (Cross-Compiler-Specific Options): Document
7875 --with-nds32-lib for nds32 target.
7876 * doc/extend.texi (Function Attributes, Target Builtins): Document
7877 nds32 specific attributes.
7879 2013-10-31 Vladimir Makarov <vmakarov@redhat.com>
7881 * lra-constraints (process_alt_operands): Use the result
7882 elimination register for operand when matching constraints.
7884 2013-10-31 Jakub Jelinek <jakub@redhat.com>
7886 * tree-vrp.c (maybe_set_nonzero_bits): New function.
7887 (remove_range_assertions): Call it.
7889 * tree.c (tree_ctz): New function.
7890 * tree.h (tree_ctz): New prototype.
7891 * tree-ssanames.h (get_range_info, get_nonzero_bits): Change
7892 first argument from tree to const_tree.
7893 * tree-ssanames.c (get_range_info, get_nonzero_bits): Likewise.
7894 * tree-vectorizer.h (vect_generate_tmps_on_preheader): New prototype.
7895 * tree-vect-loop-manip.c (vect_generate_tmps_on_preheader): No longer
7897 * expr.c (highest_pow2_factor): Reimplemented using tree_ctz.
7898 * tree-vect-loop.c (vect_analyze_loop_operations,
7899 vect_transform_loop): Don't force scalar loop for bound just because
7900 number of iterations is unknown, only do it if it is not known to be
7901 a multiple of vectorization_factor.
7902 * builtins.c (get_object_alignment_2): Use tree_ctz on offset.
7904 * gimple-pretty-print.c (dump_ssaname_info): Print newline also
7905 in case of VR_VARYING. Print get_nonzero_bits if not all ones.
7906 * tree-ssanames.h (struct range_info_def): Add nonzero_bits field.
7907 (set_nonzero_bits, get_nonzero_bits): New prototypes.
7908 * tree-ssa-ccp.c (get_default_value): Use get_range_info to see if
7909 a default def isn't partially constant.
7910 (ccp_finalize): If after IPA, set_range_info if integral SSA_NAME
7911 is known to be partially zero.
7912 (evaluate_stmt): If we'd return otherwise VARYING, use get_range_info
7913 to see if a default def isn't partially constant.
7914 * tree-ssanames.c (set_range_info): Initialize nonzero_bits upon
7915 creation of a range, if VR_RANGE, try to improve nonzero_bits from
7917 (set_nonzero_bits, get_nonzero_bits): New functions.
7919 * tree-cfg.c (assert_unreachable_fallthru_edge_p): New function.
7920 * tree-cfg.h (assert_unreachable_fallthru_edge_p): New prototype.
7921 * tree-vrp.c (all_imm_uses_in_stmt_or_feed_cond): New function.
7922 (remove_range_assertions): If ASSERT_EXPR_VAR has no other immediate
7923 uses but in the condition and ASSERT_EXPR and the other successor of
7924 the predecessor bb is __builtin_unreachable (), set_range_info of the
7925 ASSERT_EXPR_VAR to the range info of the ASSERT_EXPR's lhs.
7927 2013-10-31 Martin Jambor <mjambor@suse.cz>
7929 PR rtl-optimization/58934
7931 2013-10-30 Martin Jambor <mjambor@suse.cz>
7932 PR rtl-optimization/10474
7933 * ira.c (find_moveable_pseudos): Do not calculate dominance info
7935 (interesting_dest_for_shprep): New function.
7936 (split_live_ranges_for_shrink_wrap): Likewise.
7937 (ira): Calculate dominance info and df analysis. Call
7938 split_live_ranges_for_shrink_wrap.
7940 2013-10-31 Richard Sandiford <rsandifo@linux.vnet.ibm.com>
7941 Yury Gribov <y.gribov@samsung.com>
7944 * asan.c (asan_clear_shadow): Allocate a new vreg for temporary
7945 shadow pointer to avoid clobbering the main one.
7947 2013-10-31 Zhenqiang Chen <zhenqiang.chen@linaro.org>
7949 * lower-subreg.c (resolve_simple_move): Copy REG_INC note.
7951 2013-10-30 Vladimir Makarov <vmakarov@redhat.com>
7954 * ira-color.c (update_costs_from_copies): Add new parameter. Use
7955 it for calling update_costs_from_allocno.
7956 (assign_hard_reg): Call restore_costs_from_copies only for
7957 !retry_p. Pass new argument to update_costs_from_copies.
7958 (color_pass): Pass new argument to update_costs_from_copies.
7959 (ira_mark_allocation_change): Ditto.
7961 2013-10-30 Sharad Singhai <singhai@google.com>
7964 * opts.c (common_handle_option): Remove deprecated option
7965 -ftree-vectorizer-verbose.
7966 * doc/invoke.texi (Debugging Options): Ditto.
7967 * opts-global.c (handle_common_deferred_options): Ditto.
7968 (dump_remap_tree_vectorizer_verbose): Delete.
7969 * common.opt: Set -ftree-vectorizer-verbose as an ignored option.
7971 2013-10-30 DJ Delorie <dj@redhat.com>
7973 * config/rx/rx.c (ADD_RX_BUILTIN0): New macro, used for builtins
7974 that take no arguments.
7976 2013-10-30 Joern Rennecke <joern.rennecke@embecosm.com>
7979 * reload1.c (update_eliminables_and_spill): New function, broken
7981 (reload): Use it. Check for frame size change after frame size
7982 alignment, and call update_eliminables_and_spill first if continue-ing.
7984 2013-10-30 Cong Hou <congh@google.com>
7987 * config/i386/i386-protos.h (ix86_expand_sse2_abs): New function.
7988 * config/i386/i386.c (ix86_expand_sse2_abs): New function.
7989 * config/i386/sse.md: Add SSE2 support to abs (8/16/32-bit-int).
7991 2013-10-18 Mikael Pettersson <mikpelinux@gmail.com>
7993 PR rtl-optimization/58369
7994 * reload1.c (compute_reload_subreg_offset): New function.
7995 (choose_reload_regs): Use it to pass endian-correct
7996 offset to subreg_regno_offset.
7998 2013-10-30 Tobias Burnus <burnus@net-b.de>
8001 * tree-cfg.c (replace_loop_annotate): Replace warning by
8004 2013-10-30 Jason Merrill <jason@redhat.com>
8006 * configure.ac (loose_warn): Add -Wno-format if
8007 --disable-build-format-warnings.
8009 2013-10-30 David Malcolm <dmalcolm@redhat.com>
8011 * cgraphunit.c (analyze_functions): Split symtab_node declarations
8012 onto multiple lines to make things easier for rename_symtab.py.
8014 * symtab.c (symtab_dissolve_same_comdat_group_list): Likewise.
8015 (symtab_semantically_equivalent_p): Likewise.
8017 2013-10-30 Vladimir Makarov <vmakarov@redhat.com>
8020 * lra.c (check_rtl): Remove address check before LRA work.
8022 2013-10-30 Marc Glisse <marc.glisse@inria.fr>
8024 * tree-ssa-alias.c (ao_ref_init_from_ptr_and_size): Look for a
8025 POINTER_PLUS_EXPR in the defining statement.
8027 2013-10-30 Vladimir Makarov <vmakarov@redhat.com>
8029 * regmove.c: Remove.
8030 * tree-pass.h (make_pass_regmove): Remove.
8031 * timevar.def (TV_REGMOVE): Remove.
8032 * passes.def (pass_regmove): Remove.
8033 * opts.c (default_options_table): Remove entry for regmove.
8034 * doc/passes.texi: Remove regmove pass description.
8035 * doc/invoke.texi (-foptimize-register-move, -fregmove): Remove
8037 (-fdump-rtl-regmove): Ditto.
8038 * common.opt (foptimize-register-move, fregmove): Ignore.
8039 * Makefile.in (OBJS): Remove regmove.o.
8040 * regmove.c: Remove.
8041 * ira-int.h (struct ira_allocno_pref, ira_pref_t): New structure
8043 (struct ira_allocno) New member allocno_prefs.
8044 (ALLOCNO_PREFS): New macro.
8045 (ira_prefs, ira_prefs_num): New external vars.
8046 (ira_setup_alts, ira_get_dup_out_num, ira_debug_pref): New prototypes.
8047 (ira_debug_prefs, ira_debug_allocno_prefs, ira_create_pref): Ditto.
8048 (ira_add_allocno_pref, ira_remove_pref, ira_remove_allocno_prefs):
8050 (ira_add_allocno_copy_to_list): Remove prototype.
8051 (ira_swap_allocno_copy_ends_if_necessary): Ditto.
8052 (ira_pref_iterator): New type.
8053 (ira_pref_iter_init, ira_pref_iter_cond): New functions.
8054 (FOR_EACH_PREF): New macro.
8055 * ira.c (commutative_constraint_p): Move from ira-conflicts.c.
8056 (ira_get_dup_out_num): Ditto. Rename from get_dup_num. Modify the
8058 (ira_setup_alts): New function.
8059 (decrease_live_ranges_number): New function.
8060 (ira): Call the above function.
8061 * ira-build.c (ira_prefs, ira_prefs_num): New global vars.
8062 (ira_create_allocno): Initialize allocno prefs.
8063 (pref_pool, pref_vec): New static vars.
8064 (initiate_prefs, find_allocno_pref, ira_create_pref): New
8066 (add_allocno_pref_to_list, ira_add_allocno_pref, print_pref): Ditto.
8067 (ira_debug_pref, print_prefs, ira_debug_prefs): Ditto.
8068 (print_allocno_prefs, ira_debug_allocno_prefs, finish_pref): Ditto.
8069 (ira_remove_pref, ira_remove_allocno_prefs, finish_prefs): Ditto.
8070 (ira_add_allocno_copy_to_list): Make static. Rename to
8071 add_allocno_copy_to_list.
8072 (ira_swap_allocno_copy_ends_if_necessary): Make static. Rename to
8073 swap_allocno_copy_ends_if_necessary.
8074 (remove_unnecessary_allocnos, remove_low_level_allocnos): Call
8075 ira_remove_allocno_prefs.
8076 (ira_flattening): Ditto.
8077 (ira_build): Call initiate_prefs, print_prefs.
8078 (ira_destroy): Call finish_prefs.
8079 * ira-color.c (struct update_cost_record): New.
8080 (struct allocno_color_data): Add new member update_cost_records.
8081 (update_cost_record_pool): New static var.
8082 (init_update_cost_records, get_update_cost_record): New functions.
8083 (free_update_cost_record_list, finish_update_cost_records): Ditto.
8084 (struct update_cost_queue_elem): Add member from.
8085 (initiate_cost_update): Call init_update_cost_records.
8086 (finish_cost_update): Call finish_update_cost_records.
8087 (queue_update_cost, get_next_update_cost): Add new param from.
8088 (Update_allocno_cost, update_costs_from_allocno): New functions.
8089 (update_costs_from_prefs): Ditto.
8090 (update_copy_costs): Rename to update_costs_from_copies.
8091 (restore_costs_from_copies): New function.
8092 (update_conflict_hard_regno_costs): Don't go back.
8093 (assign_hard_reg): Call restore_costs_from_copies. Add printing
8095 (pop_allocnos): Add priniting more debug info.
8096 (color_allocnos): Remove prefs for conflicting hard regs.
8097 Call update_costs_from_prefs.
8098 * ira-conflicts.c (commutative_constraint_p): Move to ira.c
8099 (get_dup_num): Rename, modify, and move to ira.c
8100 (process_regs_for_copy): Add prefs.
8101 (add_insn_allocno_copies): Put src as first arg of
8102 process_regs_for_copy. Remove dead code. Call ira_setup_alts.
8103 * ira-costs.c (record_reg_classes): Modify and move code into
8104 record_operands_costs.
8105 (find_costs_and_classes): Create prefs for the hard reg of small
8107 (process_bb_node_for_hard_reg_moves): Add prefs.
8109 2013-10-30 Richard Biener <rguenther@suse.de>
8112 * basic-block.h (pre_and_rev_post_order_compute_fn): New function.
8113 * cfganal.c (pre_and_rev_post_order_compute_fn): New function
8115 (pre_and_rev_post_order_compute): ... which now wraps it.
8116 * graph.c (draw_cfg_nodes_no_loops): Use
8117 pre_and_rev_post_order_compute_fn to avoid ICEing and dependence
8120 2013-10-30 Christian Bruel <christian.bruel@st.com>
8122 * config/sh/sh-mem.cc (sh_expand_cmpnstr): New function.
8123 (sh_expand_cmpstr): Handle known align and schedule improvements.
8124 * config/sh/sh-protos.h (sh_expand_cmpstrn): Declare.
8125 * config/sh/sh.md (cmpstrnsi): New pattern.
8127 2013-10-30 Martin Jambor <mjambor@suse.cz>
8129 PR rtl-optimization/10474
8130 * ira.c (find_moveable_pseudos): Do not calculate dominance info
8132 (interesting_dest_for_shprep): New function.
8133 (split_live_ranges_for_shrink_wrap): Likewise.
8134 (ira): Calculate dominance info and df analysis. Call
8135 split_live_ranges_for_shrink_wrap.
8137 2013-10-30 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
8140 * config/arm/arm.c (arm_expand_epilogue_apcs_frame): Emit blockage.
8142 2013-10-30 Ilya Enkovich <ilya.enkovich@intel.com>
8144 * tree-core.h (tree_index): Add TI_POINTER_BOUNDS_TYPE.
8145 * tree.h (POINTER_BOUNDS_P): New.
8146 (BOUNDED_TYPE_P): New.
8148 (pointer_bounds_type_node): New.
8149 * tree.c (build_common_tree_nodes): Initialize
8150 pointer_bounds_type_node.
8151 * gimple.h (gimple_call_get_nobnd_arg_index): New.
8152 (gimple_call_num_nobnd_args): New.
8153 (gimple_call_nobnd_arg): New.
8154 (gimple_return_retbnd): New.
8155 (gimple_return_set_retbnd): New
8156 * gimple.c (gimple_build_return): Increase number of ops
8157 for return statement.
8158 (gimple_call_get_nobnd_arg_index): New.
8159 * gimple-pretty-print.c (dump_gimple_return): Print second op.
8161 2013-10-30 Ilya Enkovich <ilya.enkovich@intel.com>
8163 * ipa.c (cgraph_build_static_cdtor_1): Support contructors
8164 with "chkp ctor" and "bnd_legacy" attributes.
8165 * gimplify.c (gimplify_init_constructor): Avoid infinite
8166 loop during gimplification of bounds initializer.
8168 2013-10-30 Ilya Enkovich <ilya.enkovich@intel.com>
8170 * c-family/c-common.c (handle_bnd_variable_size_attribute): New.
8171 (handle_bnd_legacy): New.
8172 (c_common_attribute_table): Add bnd_variable_size and bnd_legacy.
8173 * doc/extend.texi: Document bnd_variable_size and bnd_legacy
8176 2013-10-29 Ilya Enkovich <ilya.enkovich@intel.com>
8178 * builtin-types.def (BT_FN_VOID_CONST_PTR): New.
8179 (BT_FN_PTR_CONST_PTR): New.
8180 (BT_FN_CONST_PTR_CONST_PTR): New.
8181 (BT_FN_PTR_CONST_PTR_SIZE): New.
8182 (BT_FN_PTR_CONST_PTR_CONST_PTR): New.
8183 (BT_FN_VOID_PTRPTR_CONST_PTR): New.
8184 (BT_FN_VOID_CONST_PTR_SIZE): New.
8185 (BT_FN_PTR_CONST_PTR_CONST_PTR_SIZE): New.
8186 * chkp-builtins.def: New.
8187 * builtins.def: include chkp-builtins.def.
8188 (DEF_CHKP_BUILTIN): New.
8189 * builtins.c (expand_builtin): Support BUILT_IN_CHKP_INIT_PTR_BOUNDS,
8190 BUILT_IN_CHKP_NULL_PTR_BOUNDS, BUILT_IN_CHKP_COPY_PTR_BOUNDS,
8191 BUILT_IN_CHKP_CHECK_PTR_LBOUNDS, BUILT_IN_CHKP_CHECK_PTR_UBOUNDS,
8192 BUILT_IN_CHKP_CHECK_PTR_BOUNDS, BUILT_IN_CHKP_SET_PTR_BOUNDS,
8193 BUILT_IN_CHKP_NARROW_PTR_BOUNDS, BUILT_IN_CHKP_STORE_PTR_BOUNDS,
8194 BUILT_IN_CHKP_GET_PTR_LBOUND, BUILT_IN_CHKP_GET_PTR_UBOUND,
8195 BUILT_IN_CHKP_BNDMK, BUILT_IN_CHKP_BNDSTX, BUILT_IN_CHKP_BNDCL,
8196 BUILT_IN_CHKP_BNDCU, BUILT_IN_CHKP_BNDLDX, BUILT_IN_CHKP_BNDRET,
8197 BUILT_IN_CHKP_INTERSECT, BUILT_IN_CHKP_ARG_BND, BUILT_IN_CHKP_NARROW,
8198 BUILT_IN_CHKP_EXTRACT_LOWER, BUILT_IN_CHKP_EXTRACT_UPPER.
8199 * common.opt (fcheck-pointer-bounds): New.
8200 * toplev.c (process_options): Check Pointer Bounds Checker is
8202 * doc/extend.texi: Document Pointer Bounds Checker built-in functions.
8204 2013-10-30 Ilya Enkovich <ilya.enkovich@intel.com>
8206 * target.def (builtin_chkp_function): New.
8207 (chkp_bound_type): New.
8208 (chkp_bound_mode): New.
8209 (fn_abi_va_list_bounds_size): New.
8210 (load_bounds_for_arg): New.
8211 (store_bounds_for_arg): New.
8212 * targhooks.h (default_load_bounds_for_arg): New.
8213 (default_store_bounds_for_arg): New.
8214 (default_fn_abi_va_list_bounds_size): New.
8215 (default_chkp_bound_type): New.
8216 (default_chkp_bound_mode): New.
8217 (default_builtin_chkp_function): New.
8218 * targhooks.c (default_load_bounds_for_arg): New.
8219 (default_store_bounds_for_arg): New.
8220 (default_fn_abi_va_list_bounds_size): New.
8221 (default_chkp_bound_type): New.
8222 (default_chkp_bound_mode); New.
8223 (default_builtin_chkp_function): New.
8224 * doc/tm.texi.in (TARGET_FN_ABI_VA_LIST_BOUNDS_SIZE): New.
8225 (TARGET_LOAD_BOUNDS_FOR_ARG): New.
8226 (TARGET_STORE_BOUNDS_FOR_ARG): New.
8227 (TARGET_BUILTIN_CHKP_FUNCTION): New.
8228 (TARGET_CHKP_BOUND_TYPE): New.
8229 (TARGET_CHKP_BOUND_MODE): New.
8230 * doc/tm.texi: Regenerated.
8231 * langhooks.h (lang_hooks): Add chkp_supported field.
8232 * langhooks-def.h (LANG_HOOKS_CHKP_SUPPORTED): New.
8233 (LANG_HOOKS_INITIALIZER); Add LANG_HOOKS_CHKP_SUPPORTED.
8235 2013-10-29 Andrew Pinski <apinski@cavium.com>
8237 * tree-ssa-ifcombine.c: Include rtl.h and tm_p.h.
8238 (ifcombine_ifandif): Handle cases where maybe_fold_and_comparisons
8239 fails, combining the branches anyways.
8240 (tree_ssa_ifcombine): Inverse the order of the basic block walk,
8241 increases the number of combinings.
8242 * gimple.h (gsi_start_nondebug_after_labels_bb): New function.
8244 2013-10-29 Mike Stump <mikestump@comcast.net>
8246 * machmode.def (PARTIAL_INT_MODE): Add precision and name.
8247 * genmodes.c (PARTIAL_INT_MODE): Add precision and name.
8248 (make_vector_mode): Increase namebuf to 16.
8249 (emit_insn_modes_h): When processing BImode, don't
8250 also match partial int modes.
8251 (emit_class_narrowest_mode): Likewise.
8253 * config/bfin/bfin-modes.def: Add precision to PDI.
8254 * config/m32c/m32c-modes.def: Add precision to PSI.
8255 * config/msp430/msp430-modes.def: Add precision to PSI.
8256 * config/rs6000/rs6000-modes.def: Add precision to PTI.
8257 * config/sh/sh-modes.def: Add precision to PSI and PDI.
8259 2013-10-29 Oleg Endo <olegendo@gcc.gnu.org>
8262 * config/sh/sh.md (*addc): Rename existing variations to ...
8263 (*addc_r_r_1, *addc_2r_1, *addc_r_1): ... these.
8264 (*addc_r_lsb, *addc_r_r_lsb, *addc_r_lsb_r, *addc_2r_lsb, *addc_r_msb,
8265 *addc_r_r_msb, *addc_2r_msb): New insn_and_split patterns.
8266 * config/sh/sh.c (addsubcosts): Handle some addc special cases.
8268 2013-10-29 Teresa Johnson <tejohnson@google.com>
8271 * tree-ssa-tail-merge.c (replace_block_by): Tolerate profile
8272 insanities when updating probabilities.
8274 2013-10-29 David Malcolm <dmalcolm@redhat.com>
8276 * gdbhooks.py (CGraphNodePrinter.to_string): Update gdb
8277 prettyprinter for cgraph_node to reflect the conversion of the
8278 symtable types to a C++ class hierarchy: it now *is* a
8279 symtab_node_base, rather than having one (named "symbol").
8281 2013-10-29 Balaji V. Iyer <balaji.v.iyer@intel.com>
8283 * builtins.c (is_builtin_name): Added a check for __cilkrts_detach and
8284 __cilkrts_pop_frame. If matched, then return true for built-in
8286 (expand_builtin): Added BUILT_IN_CILK_DETACH and
8287 BUILT_IN_CILK_POP_FRAME case.
8288 * langhooks-def.h (lhd_install_body_with_frame_cleanup): New prototype.
8289 (lhs_cilk_detect_spawn): Likewise.
8290 (LANG_HOOKS_DECLS): Added LANG_HOOKS_CILKPLUS.
8291 (LANG_HOOKS_CILKPLUS_DETECT_SPAWN_AND_UNWRAP): New #define.
8292 (LANG_HOOKS_CILKPLUS_FRAME_CLEANUP): Likewise.
8293 (LANG_HOOKS_CILKPLUS_GIMPLIFY_SPAWN): Likewise.
8294 (LANG_HOOKS_CILKPLUS): Likewise.
8295 * tree.h (CILK_SPAWN_FN): Likewise.
8296 * builtin.def (DEF_CILK_BUILTIN_STUB): Likewise.
8297 * Makefile.in (C_COMMON_OBJS): Added c-family/cilk.o.
8298 (OBJS): Added cilk-common.o.
8299 (BUILTINS_DEF): Added cilk-builtins.def.
8300 * langhooks.c (lhd_install_body_with_frame_cleanup): New function.
8301 (lhd_cilk_detect_spawn): Likewise.
8302 * langhooks.h (lang_hooks_for_cilkplus): New struct.
8303 (struct lang_hooks): Added new field called "cilkplus."
8304 * cilk-common.c: New file.
8306 * cilk-builtins.def: Likewise.
8307 * cppbuiltin.c (define_builtin_macros_for_compilation_flags): Added
8308 "__cilk" macro and set it to 200.
8309 * function.h (struct function::cilk_frame_decl): New field.
8310 (struct function::is_cilk_function): Likewise.
8311 (struct function::calls_cilk_spawn): Likewise.
8312 * gimplify.c (gimplify_call_expr): Added a check if the function call
8313 being gimplified is a spawn detach point. If so, then add pop_frame
8314 and detach function calls.
8315 (gimplify_expr): Added a CILK_SPAWN_STMT and CILK_SYNC_STMT case
8316 for gimplifying _Cilk_spawn and _Cilk_sync statements.
8317 (gimplify_return_expr): Added a check for _Cilk_spawn usage in
8318 function. If so, added a _Cilk_sync and gimplified it.
8319 (gimplify_modify_expr): Added a check for _Cilk_spawn in MODIFY and
8320 INIT_EXPRs. If so, then call gimplify_cilk_spawn.
8321 * ipa-inline-analysis (initialize_inline_failed): Prevent inlining of
8323 (can_inline_edge_p): Prevent inling of spawnee function.
8324 * ira.c (ira_setup_eliminable_regset): Force usage of frame pointer
8325 for functions that use Cilk keywords.
8326 * tree-inline.h (struct copy_body_data::remap_var_for_cilk): New field.
8327 * tree-pretty-print.c (dump_generic_node): Added CILK_SPAWN_STMT and
8328 CILK_SYNC_STMT cases.
8329 * tree.def (DEFTREECODE): Added CILK_SPAWN_STMT and CILK_SYNC_STMT
8331 * generic.texi (CILK_SPAWN_STMT): Added documentation for _Cilk_spawn.
8332 (CILK_SYNC_STMT): Added documentation for _Cilk_sync.
8333 * passes.texi (Cilk Keywords): New section that describes the compiler
8334 code changes for handling Cilk Keywords.
8336 2013-10-29 David Malcolm <dmalcolm@redhat.com>
8338 Patch autogenerated by refactor_symtab.py from
8339 https://github.com/davidmalcolm/gcc-refactoring-scripts
8340 revision 58bb219cc090b2f4516a9297d868c245495ee622
8342 * asan.c (asan_finish_file): Update for conversion of symtab types to
8343 a true class hierarchy.
8344 * cfgexpand.c (estimated_stack_frame_size): Likewise.
8345 * cgraph.c (cgraph_get_body): Likewise.
8346 (cgraph_get_create_real_symbol_node): Likewise.
8347 (verify_cgraph_node): Likewise.
8348 (verify_edge_corresponds_to_fndecl): Likewise.
8349 (verify_edge_count_and_frequency): Likewise.
8350 (cgraph_will_be_removed_from_program_if_no_direct_calls): Likewise.
8351 (cgraph_can_remove_if_no_direct_calls_p): Likewise.
8352 (cgraph_can_remove_if_no_direct_calls_and_refs_p): Likewise.
8353 (cgraph_node_cannot_return): Likewise.
8354 (cgraph_set_pure_flag_1): Likewise.
8355 (cgraph_set_const_flag_1): Likewise.
8356 (cgraph_set_nothrow_flag_1): Likewise.
8357 (cgraph_make_node_local_1): Likewise.
8358 (cgraph_for_node_and_aliases): Likewise.
8359 (cgraph_for_node_thunks_and_aliases): Likewise.
8360 (cgraph_node_can_be_local_p): Likewise.
8361 (cgraph_node_cannot_be_local_p_1): Likewise.
8362 (cgraph_function_body_availability): Likewise.
8363 (dump_cgraph_node): Likewise.
8364 (cgraph_rtl_info): Likewise.
8365 (cgraph_mark_address_taken_node): Likewise.
8366 (cgraph_remove_node): Likewise.
8367 (cgraph_release_function_body): Likewise.
8368 (cgraph_update_edges_for_call_stmt_node): Likewise.
8369 (cgraph_redirect_edge_call_stmt_to_callee): Likewise.
8370 (cgraph_make_edge_direct): Likewise.
8371 (cgraph_resolve_speculation): Likewise.
8372 (cgraph_speculative_call_info): Likewise.
8373 (cgraph_turn_edge_to_speculative): Likewise.
8374 (cgraph_create_edge_1): Likewise.
8375 (cgraph_set_call_stmt): Likewise.
8376 (cgraph_node_for_asm): Likewise.
8377 (cgraph_add_thunk): Likewise.
8378 (cgraph_same_body_alias): Likewise.
8379 (cgraph_create_function_alias): Likewise.
8380 (cgraph_create_node): Likewise.
8381 (cgraph_create_empty_node): Likewise.
8382 (record_function_versions): Likewise.
8383 (used_from_object_file_p): Likewise.
8384 * cgraph.h (symtab_can_be_discarded): Likewise.
8385 (symtab_real_symbol_p): Likewise.
8386 (cgraph_mark_force_output_node): Likewise.
8387 (cgraph_edge_recursive_p): Likewise.
8388 (symtab_alias_target): Likewise.
8389 (varpool_all_refs_explicit_p): Likewise.
8390 (varpool_can_remove_if_no_refs): Likewise.
8391 (cgraph_only_called_directly_or_aliased_p): Likewise.
8392 (cgraph_next_function_with_gimple_body): Likewise.
8393 (cgraph_first_function_with_gimple_body): Likewise.
8394 (cgraph_function_with_gimple_body_p): Likewise.
8395 (cgraph_next_function): Likewise.
8396 (cgraph_first_function): Likewise.
8397 (cgraph_next_defined_function): Likewise.
8398 (cgraph_first_defined_function): Likewise.
8399 (varpool_next_defined_variable): Likewise.
8400 (varpool_first_defined_variable): Likewise.
8401 (varpool_next_static_initializer): Likewise.
8402 (varpool_first_static_initializer): Likewise.
8403 (varpool_next_variable): Likewise.
8404 (varpool_first_variable): Likewise.
8405 (varpool_node_name): Likewise.
8406 (varpool): Likewise.
8408 (is_a_helper <varpool_node>::test): Likewise.
8409 (is_a_helper <cgraph_node>::test): Likewise.
8410 (varpool_variable_node): Likewise.
8411 (cgraph_function_or_thunk_node): Likewise.
8412 (varpool_alias_target): Likewise.
8413 (cgraph_alias_target): Likewise.
8414 (cgraph_node_name): Likewise.
8415 (varpool_node_asm_name): Likewise.
8416 (cgraph_node_asm_name): Likewise.
8417 * cgraphbuild.c (remove_cgraph_callee_edges): Likewise.
8418 (cgraph_rebuild_references): Likewise.
8419 (rebuild_cgraph_edges): Likewise.
8420 (record_eh_tables): Likewise.
8421 (build_cgraph_edges): Likewise.
8422 (mark_store): Likewise.
8423 (mark_load): Likewise.
8424 (mark_address): Likewise.
8425 (record_type_list): Likewise.
8426 (record_reference): Likewise.
8427 * cgraphclones.c (cgraph_materialize_all_clones): Likewise.
8428 (cgraph_materialize_clone): Likewise.
8429 (cgraph_function_versioning): Likewise.
8430 (cgraph_copy_node_for_versioning): Likewise.
8431 (update_call_expr): Likewise.
8432 (cgraph_find_replacement_node): Likewise.
8433 (cgraph_create_virtual_clone): Likewise.
8434 (cgraph_clone_node): Likewise.
8435 * cgraphunit.c (compile): Likewise.
8436 (output_weakrefs): Likewise.
8437 (output_in_order): Likewise.
8438 (expand_function): Likewise.
8439 (assemble_thunks_and_aliases): Likewise.
8440 (expand_thunk): Likewise.
8441 (mark_functions_to_output): Likewise.
8442 (handle_alias_pairs): Likewise.
8443 (analyze_functions): Likewise.
8444 (walk_polymorphic_call_targets): Likewise.
8445 (varpool_finalize_decl): Likewise.
8446 (process_function_and_variable_attributes): Likewise.
8447 (cgraph_process_same_body_aliases): Likewise.
8448 (analyze_function): Likewise.
8449 (cgraph_add_new_function): Likewise.
8450 (cgraph_finalize_function): Likewise.
8451 (referred_to_p): Likewise.
8452 (cgraph_reset_node): Likewise.
8453 (cgraph_process_new_functions): Likewise.
8454 (enqueue_node): Likewise.
8455 (decide_is_symbol_needed): Likewise.
8456 * coverage.c (coverage_compute_profile_id): Likewise.
8457 * dbxout.c (dbxout_expand_expr): Likewise.
8458 * dwarf2out.c (premark_types_used_by_global_vars_helper): Likewise.
8459 (reference_to_unused): Likewise.
8460 * gimple-fold.c (can_refer_decl_in_current_unit_p): Likewise.
8461 * gimplify.c (unvisit_body): Likewise.
8462 (unshare_body): Likewise.
8463 * ipa-cp.c (ipcp_generate_summary): Likewise.
8464 (ipcp_decision_stage): Likewise.
8465 (identify_dead_nodes): Likewise.
8466 (decide_whether_version_node): Likewise.
8467 (decide_about_value): Likewise.
8468 (perhaps_add_new_callers): Likewise.
8469 (create_specialized_node): Likewise.
8470 (update_profiling_info): Likewise.
8471 (ipcp_propagate_stage): Likewise.
8472 (estimate_local_effects): Likewise.
8473 (good_cloning_opportunity_p): Likewise.
8474 (devirtualization_time_bonus): Likewise.
8475 (propagate_constants_accross_call): Likewise.
8476 (initialize_node_lattices): Likewise.
8477 (ipcp_cloning_candidate_p): Likewise.
8478 (determine_versionability): Likewise.
8479 (print_all_lattices): Likewise.
8480 (print_lattice): Likewise.
8481 (ipcp_discover_new_direct_edges): Likewise.
8482 * ipa-devirt.c (ipa_devirt): Likewise.
8483 (likely_target_p): Likewise.
8484 (update_type_inheritance_graph): Likewise.
8485 (possible_polymorphic_call_target_p): Likewise.
8486 (dump_possible_polymorphic_call_targets): Likewise.
8487 (devirt_variable_node_removal_hook): Likewise.
8488 (record_binfo): Likewise.
8489 (maybe_record_node): Likewise.
8490 (build_type_inheritance_graph): Likewise.
8491 * ipa-inline-analysis.c (inline_write_summary): Likewise.
8492 (inline_generate_summary): Likewise.
8493 (inline_analyze_function): Likewise.
8494 (do_estimate_growth): Likewise.
8495 (simple_edge_hints): Likewise.
8496 (estimate_node_size_and_time): Likewise.
8497 (estimate_edge_devirt_benefit): Likewise.
8498 (compute_inline_parameters): Likewise.
8499 (estimate_function_body_sizes): Likewise.
8500 (compute_bb_predicates): Likewise.
8501 (initialize_inline_failed): Likewise.
8502 (dump_inline_summary): Likewise.
8503 (dump_inline_edge_summary): Likewise.
8504 * ipa-inline-transform.c (inline_transform): Likewise.
8505 (preserve_function_body_p): Likewise.
8506 (save_inline_function_body): Likewise.
8507 (inline_call): Likewise.
8508 (clone_inlined_nodes): Likewise.
8509 (can_remove_node_now_p): Likewise.
8510 (can_remove_node_now_p_1): Likewise.
8511 * ipa-inline.c (early_inliner): Likewise.
8512 (early_inline_small_functions): Likewise.
8513 (inline_always_inline_functions): Likewise.
8514 (ipa_inline): Likewise.
8515 (flatten_function): Likewise.
8516 (inline_small_functions): Likewise.
8517 (speculation_useful_p): Likewise.
8518 (recursive_inlining): Likewise.
8519 (update_caller_keys): Likewise.
8520 (reset_edge_caches): Likewise.
8521 (update_edge_key): Likewise.
8522 (edge_badness): Likewise.
8523 (relative_time_benefit): Likewise.
8524 (want_inline_self_recursive_call_p): Likewise.
8525 (want_inline_small_function_p): Likewise.
8526 (want_early_inline_function_p): Likewise.
8527 (num_calls): Likewise.
8528 (can_early_inline_edge_p): Likewise.
8529 (can_inline_edge_p): Likewise.
8530 (report_inline_failed_reason): Likewise.
8531 * ipa-profile.c (ipa_profile): Likewise.
8532 (ipa_propagate_frequency): Likewise.
8533 (ipa_propagate_frequency_1): Likewise.
8534 (ipa_profile_generate_summary): Likewise.
8535 * ipa-prop.c (ipcp_transform_function): Likewise.
8536 (read_replacements_section): Likewise.
8537 (ipa_prop_read_section): Likewise.
8538 (ipa_modify_call_arguments): Likewise.
8539 (ipa_print_node_params): Likewise.
8540 (propagate_controlled_uses): Likewise.
8541 (update_indirect_edges_after_inlining): Likewise.
8542 (remove_described_reference): Likewise.
8543 (ipa_make_edge_direct_to_target): Likewise.
8544 (ipa_analyze_node): Likewise.
8545 (ipa_analyze_params_uses): Likewise.
8546 (ipa_compute_jump_functions): Likewise.
8547 (ipa_get_callee_param_type): Likewise.
8548 (ipa_print_node_jump_functions): Likewise.
8549 (ipa_initialize_node_params): Likewise.
8550 (ipa_populate_param_decls): Likewise.
8551 (ipa_func_spec_opts_forbid_analysis_p): Likewise.
8552 (write_agg_replacement_chain): Likewise.
8553 (ipa_write_node_info): Likewise.
8554 (ipa_edge_duplication_hook): Likewise.
8555 (try_decrement_rdesc_refcount): Likewise.
8556 * ipa-pure-const.c (propagate_nothrow): Likewise.
8557 (propagate_pure_const): Likewise.
8558 (pure_const_read_summary): Likewise.
8559 (pure_const_write_summary): Likewise.
8560 (analyze_function): Likewise.
8561 * ipa-ref-inline.h (ipa_ref_referred_ref_list): Likewise.
8562 (ipa_ref_referring_ref_list): Likewise.
8563 * ipa-ref.c (ipa_clear_stmts_in_references): Likewise.
8564 (ipa_remove_stmt_references): Likewise.
8565 (ipa_find_reference): Likewise.
8566 (ipa_dump_referring): Likewise.
8567 (ipa_dump_references): Likewise.
8568 (ipa_record_reference): Likewise.
8569 * ipa-reference.c (ipa_reference_read_optimization_summary): Likewise.
8570 (ipa_reference_write_optimization_summary): Likewise.
8571 (write_node_summary_p): Likewise.
8572 (propagate): Likewise.
8573 (read_write_all_from_decl): Likewise.
8574 (generate_summary): Likewise.
8575 (analyze_function): Likewise.
8576 (propagate_bits): Likewise.
8577 (ipa_reference_get_not_written_global): Likewise.
8578 (ipa_reference_get_not_read_global): Likewise.
8579 * ipa-split.c (execute_split_functions): Likewise.
8580 (split_function): Likewise.
8581 * ipa-utils.c (ipa_merge_profiles): Likewise.
8582 (dump_cgraph_node_set): Likewise.
8583 (ipa_reverse_postorder): Likewise.
8584 (ipa_edge_within_scc): Likewise.
8585 (ipa_get_nodes_in_cycle): Likewise.
8586 (ipa_free_postorder_info): Likewise.
8587 (ipa_reduced_postorder): Likewise.
8588 (searchc): Likewise.
8589 (recursive_call_p): Likewise.
8590 * ipa.c (ipa_cdtor_merge): Likewise.
8591 (record_cdtor_fn): Likewise.
8592 (function_and_variable_visibility): Likewise.
8593 (varpool_externally_visible_p): Likewise.
8594 (cgraph_externally_visible_p): Likewise.
8595 (comdat_can_be_unshared_p): Likewise.
8596 (comdat_can_be_unshared_p_1): Likewise.
8597 (address_taken_from_non_vtable_p): Likewise.
8598 (ipa_discover_readonly_nonaddressable_vars): Likewise.
8599 (symtab_remove_unreachable_nodes): Likewise.
8600 (walk_polymorphic_call_targets): Likewise.
8601 (process_references): Likewise.
8602 (enqueue_node): Likewise.
8603 (has_addr_references_p): Likewise.
8604 (cgraph_non_local_node_p_1): Likewise.
8605 * is-a.h (varpool_analyze_node): Likewise.
8606 * lto-cgraph.c (input_symtab): Likewise.
8607 (merge_profile_summaries): Likewise.
8608 (input_cgraph_1): Likewise.
8609 (input_edge): Likewise.
8610 (input_varpool_node): Likewise.
8611 (input_node): Likewise.
8612 (input_overwrite_node): Likewise.
8613 (compute_ltrans_boundary): Likewise.
8614 (output_refs): Likewise.
8615 (lto_output_varpool_node): Likewise.
8616 (lto_output_node): Likewise.
8617 (reachable_from_other_partition_p): Likewise.
8618 (referenced_from_other_partition_p): Likewise.
8619 (lto_output_edge): Likewise.
8620 (output_node_opt_summary): Likewise.
8621 (add_node_to): Likewise.
8622 (reachable_from_this_partition_p): Likewise.
8623 (lto_set_symtab_encoder_in_partition): Likewise.
8624 (lto_symtab_encoder_in_partition_p): Likewise.
8625 (lto_set_symtab_encoder_encode_initializer): Likewise.
8626 (lto_symtab_encoder_encode_initializer_p): Likewise.
8627 (lto_set_symtab_encoder_encode_body): Likewise.
8628 (lto_symtab_encoder_encode_body_p): Likewise.
8629 * lto-section-in.c (lto_free_function_in_decl_state_for_node):
8631 * lto-streamer-in.c (lto_read_body): Likewise.
8632 (fixup_call_stmt_edges): Likewise.
8633 (fixup_call_stmt_edges_1): Likewise.
8634 * lto-streamer-out.c (produce_symtab): Likewise.
8635 (output_symbol_p): Likewise.
8636 (write_symbol): Likewise.
8637 (lto_output): Likewise.
8638 (copy_function): Likewise.
8639 (output_function): Likewise.
8640 * passes.c (function_called_by_processed_nodes_p): Likewise.
8641 (ipa_write_optimization_summaries): Likewise.
8642 (ipa_write_summaries): Likewise.
8643 (do_per_function_toporder): Likewise.
8644 (do_per_function): Likewise.
8645 (dump_passes): Likewise.
8646 * symtab.c (symtab_semantically_equivalent_p): Likewise.
8647 (symtab_nonoverwritable_alias): Likewise.
8648 (symtab_nonoverwritable_alias_1): Likewise.
8649 (symtab_for_node_and_aliases): Likewise.
8650 (symtab_resolve_alias): Likewise.
8651 (fixup_same_cpp_alias_visibility): Likewise.
8652 (symtab_alias_ultimate_target): Likewise.
8653 (symtab_used_from_object_file_p): Likewise.
8654 (verify_symtab_base): Likewise.
8655 (dump_symtab_base): Likewise.
8656 (symtab_node_name): Likewise.
8657 (symtab_node_asm_name): Likewise.
8658 (symtab_dissolve_same_comdat_group_list): Likewise.
8659 (symtab_add_to_same_comdat_group): Likewise.
8660 (symtab_unregister_node): Likewise.
8661 (symtab_insert_node_to_hashtable): Likewise.
8662 (symtab_register_node): Likewise.
8663 (unlink_from_assembler_name_hash): Likewise.
8664 (insert_to_assembler_name_hash): Likewise.
8665 (eq_assembler_name): Likewise.
8666 (hash_node_by_assembler_name): Likewise.
8667 (eq_node): Likewise.
8668 (hash_node): Likewise.
8669 * toplev.c (wrapup_global_declaration_2): Likewise.
8670 * trans-mem.c (ipa_tm_execute): Likewise.
8671 (ipa_tm_transform_clone): Likewise.
8672 (ipa_tm_transform_transaction): Likewise.
8673 (ipa_tm_transform_calls_redirect): Likewise.
8674 (ipa_tm_insert_gettmclone_call): Likewise.
8675 (ipa_tm_insert_irr_call): Likewise.
8676 (ipa_tm_create_version): Likewise.
8677 (ipa_tm_create_version_alias): Likewise.
8678 (ipa_tm_mark_forced_by_abi_node): Likewise.
8679 (ipa_tm_mark_force_output_node): Likewise.
8680 (ipa_tm_diagnose_tm_safe): Likewise.
8681 (ipa_tm_mayenterirr_function): Likewise.
8682 (ipa_tm_scan_irr_function): Likewise.
8683 (ipa_tm_note_irrevocable): Likewise.
8684 (ipa_tm_scan_calls_clone): Likewise.
8685 (get_cg_data): Likewise.
8686 * tree-eh.c (tree_could_trap_p): Likewise.
8687 * tree-emutls.c (ipa_lower_emutls): Likewise.
8688 (create_emultls_var): Likewise.
8689 (lower_emutls_function_body): Likewise.
8690 (gen_emutls_addr): Likewise.
8691 (emutls_decl): Likewise.
8692 (new_emutls_decl): Likewise.
8693 * tree-inline.c (tree_function_versioning): Likewise.
8694 (optimize_inline_calls): Likewise.
8695 (expand_call_inline): Likewise.
8696 (estimate_num_insns): Likewise.
8697 (copy_bb): Likewise.
8698 (delete_unreachable_blocks_update_callgraph): Likewise.
8699 * tree-nested.c (gimplify_all_functions): Likewise.
8700 (create_nesting_tree): Likewise.
8701 (check_for_nested_with_variably_modified): Likewise.
8702 * tree-pretty-print.c (dump_function_header): Likewise.
8703 * tree-profile.c (tree_profiling): Likewise.
8704 * tree-sra.c (ipa_sra_preliminary_function_checks): Likewise.
8705 (modify_function): Likewise.
8706 (convert_callers): Likewise.
8707 (convert_callers_for_node): Likewise.
8708 * tree-ssa-structalias.c (ipa_pta_execute): Likewise.
8709 (associate_varinfo_to_alias): Likewise.
8710 (create_variable_info_for): Likewise.
8711 (get_constraint_for_ssa_var): Likewise.
8712 * tree-vectorizer.c (increase_alignment): Likewise.
8713 * tree.c (find_decls_types_in_var): Likewise.
8714 (find_decls_types_in_node): Likewise.
8715 (free_lang_data_in_decl): Likewise.
8716 * value-prof.c (gimple_ic_transform): Likewise.
8717 (gimple_ic): Likewise.
8718 (check_ic_target): Likewise.
8719 (init_node_map): Likewise.
8720 * varasm.c (decl_binds_to_current_def_p): Likewise.
8721 (default_binds_local_p_1): Likewise.
8722 (dump_tm_clone_pairs): Likewise.
8723 (assemble_alias): Likewise.
8724 (find_decl): Likewise.
8725 (mark_decl_referenced): Likewise.
8726 * varpool.c (varpool_for_node_and_aliases): Likewise.
8727 (varpool_extra_name_alias): Likewise.
8728 (varpool_create_variable_alias): Likewise.
8729 (add_new_static_var): Likewise.
8730 (varpool_finalize_named_section_flags): Likewise.
8731 (varpool_remove_unreferenced_decls): Likewise.
8732 (enqueue_node): Likewise.
8733 (varpool_assemble_decl): Likewise.
8734 (assemble_aliases): Likewise.
8735 (varpool_analyze_node): Likewise.
8736 (cgraph_variable_initializer_availability): Likewise.
8737 (varpool_add_new_variable): Likewise.
8738 (ctor_for_folding): Likewise.
8739 (dump_varpool_node): Likewise.
8740 (varpool_remove_initializer): Likewise.
8741 (varpool_remove_node): Likewise.
8742 (varpool_node_for_decl): Likewise.
8743 (varpool_create_empty_node): Likewise.
8744 * config/i386/i386.c (ix86_generate_version_dispatcher_body): Likewise.
8745 (ix86_get_function_versions_dispatcher): Likewise.
8747 2013-10-29 David Malcolm <dmalcolm@redhat.com>
8749 * cgraph.h (symtab_node_base): Convert to a class;
8750 add GTY((desc ("%h.type"), tag ("SYMTAB_SYMBOL"))), and take
8751 chain_next/prev from symtab_node_def.
8752 (cgraph_node): Inherit from symtab_node; add GTY option
8753 tag ("SYMTAB_FUNCTION").
8754 (varpool_node): Inherit from symtab_node; add GTY option
8755 tag ("SYMTAB_VARIABLE").
8756 (symtab_node_def): Remove.
8757 (is_a_helper <cgraph_node>::test (symtab_node_def *)): Convert to...
8758 (is_a_helper <cgraph_node>::test (symtab_node_base *)): ...this.
8759 (is_a_helper <varpool_node>::test (symtab_node_def *)): Convert to...
8760 (is_a_helper <varpool_node>::test (symtab_node_base *)): ...this.
8762 * ipa-ref.h (symtab_node_def): Drop.
8763 (symtab_node): Change underlying type from symtab_node_def to
8765 (const_symtab_node): Likwise.
8767 * is-a.h: Update examples in comment.
8769 * symtab.c (symtab_hash): Change symtab_node_def to symtab_node_base.
8770 (assembler_name_hash): Likewise.
8772 2013-10-29 Martin Liska <marxin.liska@gmail.com>
8774 * doc/tree-ssa.texi (gimple_phi_result): Document.
8775 (gimple_phi_num_args, gimple_phi_arg): Likewise.
8776 (gimple_phi_arg_edge, gimple_phi_arg_def): Likewise.
8777 (PHI_RESULT, PHI_NUM_ARGS): Remove.
8778 (PHI_ARG_ELT, PHI_ARG_EDGE, PHI_ARG_DEF): Likewise.
8780 2013-10-29 Andrew MacLeod <amacleod@redhat.com>
8782 * expr.h: Revert change and include tree-core.h.
8783 * rtl.h: Revert change and don't include tree-core.h.
8785 2013-10-29 Andrew MacLeod <amacleod@redhat.com>
8787 * config/darwin.c: Include gimple.h.
8788 * config/i386/winnt.c: Likewise.
8790 2013-10-29 Marc Glisse <marc.glisse@inria.fr>
8792 PR tree-optimization/19831
8793 * tree-ssa-alias.c (stmt_kills_ref_p_1): Handle BUILT_IN_FREE.
8795 2013-10-29 Andrew MacLeod <amacleod@redhat.com>
8797 * tree-outof-ssa.h: Remove include files.
8798 * tree-outof-ssa.c: Add required include files from tree-outof-ssa.h.
8800 * tree-ssa-coalesce.c: Likewise.
8801 * cfgexpand.c: Likewise.
8802 * tree-ssa-ter.c: Likewise.
8803 * ipa-prop.h: Remove gimple.h and tree-core.h from include list.
8804 * lto-streamer.h: Likewise.
8805 * cgraphbuild.c: Add gimple.h to include list.
8806 * data-streamer-in.c: Likewise.
8807 * ipa-cp.c: Likewise.
8808 * tree-streamer.c: Likewise.
8809 * lto-compress.c: Likewise.
8810 * ipa-reference.c: Likewise.
8811 * data-streamer-out.c: Likewise.
8812 * lto-cgraph.c: Likewise.
8813 * cgraphclones.c: Likewise.
8814 * ipa-utils.c: Likewise.
8815 * data-streamer.c: Likewise.
8816 * ipa-split.c: Likewise.
8817 * lto-section-in.c: Likewise.
8818 * tree-streamer-out.c: Likewise.
8819 * ipa-prop.c: Likewise.
8820 * tree-streamer-in.c: Likewise.
8821 * symtab.c: Likewise.
8822 * opts-global.c: Likewise.
8823 * lto-opts.c: Likewise.
8824 * lto-section-out.c: Likewise.
8825 * lto-streamer.c: Likewise.
8826 * rtl.h: Add tree-core.h to include list.
8827 * expr.h: Remove tree-core.h from include list.
8828 * gimple.h: Likewise.
8829 * ipa-utils.h: Likewise.
8830 * streamer-hooks.h: Likewise.
8831 * streamer-hooks.c: Include input.h.
8833 2013-10-29 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
8835 * config/arm/arm.c (cortexa7_extra_costs): New table.
8836 (arm_cortex_a7_tune): New.
8837 * config/arm/arm-cores.def: Use cortex_a7 tuning for cortex-a7.
8839 2013-10-29 Eric Botcazou <ebotcazou@adacore.com>
8841 * expr.c (expand_expr_real_1) <MEM_EXPR>: Eliminate small redundancy.
8843 2013-10-29 David Malcolm <dmalcolm@redhat.com>
8845 * doc/gty.texi ("Inheritance and GTY"): Make it clear that
8846 to use autogenerated markers for a class-hierarchy, every class
8847 must have a GTY marker.
8848 * gengtype.h (struct type): Add linked list of subclasses to
8849 the "s" member of the union.
8850 (add_subclass): New decl.
8851 * gengtype-state.c (read_state_struct_type): Set up subclass
8853 * gengtype.c (get_ultimate_base_class): New.
8854 (add_subclass): New.
8855 (new_structure): Set up subclass linked list.
8856 (set_gc_used_type): Propagate usage information to subclasses.
8857 (output_mangled_typename): Use get_ultimate_base_class.
8858 (walk_subclasses): Use the subclass linked list, avoiding an
8859 O(N^2) when writing out all types.
8860 (walk_type): Issue an error if the base class is missing a tag,
8861 rather than generating bogus C code. Add a gcc_unreachable
8862 default case, in case people omit tags from concrete subclasses,
8863 or get the values wrong.
8864 (write_func_for_structure): Issue an error for subclasses for
8865 which the base doesn't have a "desc", since otherwise the
8866 autogenerated routines for the base would silently fail to visit
8867 any subclass fields.
8868 (write_root): Use get_ultimate_base_class, tweaking constness of
8869 tp to match that function's signature.
8871 2013-10-29 David Malcolm <dmalcolm@redhat.com>
8873 * doc/gty.texi (GTY Options): Add note about inheritance to
8874 description of desc and tag.
8875 (Inheritance and GTY): New.
8877 2013-10-29 David Malcolm <dmalcolm@redhat.com>
8879 * gengtype-parse.c (opts_have): Drop "static" so that
8880 we can use this from gengtype.c.
8881 * gengtype.c (set_gc_used_type): Mark any base class as used;
8882 update field traversal to visit inherited fields.
8883 (output_mangled_typename): Convert references to classes within
8884 an inheritance hierarchy to reference the ultimate base class,
8885 since only it will have gt_ functions.
8886 (get_string_option): New.
8887 (walk_subclasses): New.
8888 (walk_type): Treat GTY structs that have a "desc" as being the
8889 root of an inheritance hierarchy. Generate a switch on it
8890 within the marking function which walks all subclasses, adding
8891 cases for them via walk_subclasses. For subclasses, visit all
8892 fields of the type (including inherited ones).
8893 (write_func_for_structure): Don't write fns for subclasses, only
8894 for the ultimate base class within an inheritance hierarchy.
8895 Subclasses-marking will be handled by the base class marking functions.
8896 (write_types): Likewise.
8897 (write_local_func_for_structure): Likewise.
8898 (USED_BY_TYPED_GC_P): Emit allocators for subclasses that have
8899 a "tag" option (and are thus concrete subclasses).
8900 (write_root): Use the marker function for the ultimate base class.
8901 * gengtype.h (FOR_ALL_INHERITED_FIELDS): New.
8902 (opts_have): Add declaration.
8904 2013-10-28 Vladimir Makarov <vmakarov@redhat.com>
8906 * lra-spills.c (lra_final_code_change): Remove useless move insns
8907 originated from moves of pseudos.
8909 2013-10-28 Jeff Law <law@redhat.com>
8911 * lower-subreg.c (resolve_simple_move): Fix comment typo.
8913 2013-10-28 Trevor Saunders <tsaunders@mozilla.com>
8915 * df-scan.c (df_collection_rec): Adjust.
8916 (copy_defs): New constant.
8917 (copy_uses): Likewise.
8918 (copy_eq_uses): Likewise.
8919 (copy_mw): Likewise.
8920 (copy_all): Likewise.
8921 (df_insn_rescan): Adjust.
8922 (df_notes_rescan): Likewise.
8923 (df_swap_refs): Likewise.
8924 (df_sort_and_compress_refs): Likewise.
8925 (df_sort_and_compress_mws): Likewise.
8926 (df_install_refs): Likewise.
8927 (df_install_mws): Likewise.
8928 (df_refs_add_to_chains): Add flags parameter controlling which vectors
8930 (df_bb_refs_record): Adjust.
8931 (df_record_entry_block_defs): Likewise.
8932 (df_record_exit_block_defs): Likewise.
8933 (df_refs_verify): Likewise.
8934 (df_mws_verify): Likewise.
8935 (df_insn_refs_verify): Likewise.
8936 (df_bb_verify): Likewise.
8937 * ipa-pure-const.c (finish_state): Remove.
8938 (propagate): Adjust.
8939 * tree-data-ref.c tree-ssa-alias.c tree-ssa-loop-ivcanon.c
8940 tree-ssa-threadedge.c tree-vect-loop-manip.c tree-vect-slp.c
8941 var-tracking.c: Adjust.
8942 * vec.c (stack_vecs): Remove.
8943 (register_stack_vec): Likewise.
8944 (stack_vec_register_index): Likewise.
8945 (unregister_stack_vec): Likewise.
8946 * vec.h (struct va_stack): Remove.
8947 (struct vec<T, A, vl_ptr>): Specialize as
8948 struct vec<T, va_heap, vl_ptr> instead since va_heap is the only
8949 allocation strategy compatable with the vl_ptr layout.
8950 (struct vec<T, va_gc, vl_ptr>): Remove because it now gets an empty
8951 specialization anyway.
8952 (class stack_vec): New class.
8953 (vec_stack_alloc): Remove.
8954 (vec<T, va_heap, vl_ptr>::using_auto_storage): New method.
8956 2013-10-28 Alexander Ivchenko <alexander.ivchenko@intel.com>
8957 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
8958 Sergey Lega <sergey.s.lega@intel.com>
8959 Anna Tikhonova <anna.tikhonova@intel.com>
8960 Ilya Tocar <ilya.tocar@intel.com>
8961 Andrey Turetskiy <andrey.turetskiy@intel.com>
8962 Ilya Verbin <ilya.verbin@intel.com>
8963 Kirill Yukhin <kirill.yukhin@intel.com>
8964 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
8966 * config/i386/i386.md (prefetch): Allow TARGET_AVX512PF.
8967 (*prefetch_avx512pf_<mode>): New.
8968 * config/i386/sse.md (avx512f_vmcmp<mode>3): Ditto.
8969 (avx512f_maskcmp<mode>3): Ditto.
8970 (vashrv16si3): Ditto.
8972 2013-10-28 Alexander Ivchenko <alexander.ivchenko@intel.com>
8973 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
8974 Sergey Lega <sergey.s.lega@intel.com>
8975 Anna Tikhonova <anna.tikhonova@intel.com>
8976 Ilya Tocar <ilya.tocar@intel.com>
8977 Andrey Turetskiy <andrey.turetskiy@intel.com>
8978 Ilya Verbin <ilya.verbin@intel.com>
8979 Kirill Yukhin <kirill.yukhin@intel.com>
8980 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
8982 * config/i386/i386.md (any_truncate): New.
8983 (trunsuffix): Ditto.
8984 * config/i386/predicates.md (const_8_to_9_operand): New.
8985 (const_10_to_11_operand): Ditto.
8986 (const_12_to_13_operand): Ditto.
8987 (const_14_to_15_operand): Ditto.
8988 (const_16_to_19_operand): Ditto.
8989 (const_20_to_23_operand): Ditto.
8990 (const_24_to_27_operand): Ditto.
8991 (const_28_to_31_operand): Ditto.
8992 * config/i386/sse.md (unspec): Add UNSPEC_UNSIGNED_FIX_NOTRUNC.
8993 (cvtusi2<ssescalarmodesuffix>32): New.
8994 (cvtusi2<ssescalarmodesuffix>64): Ditto.
8995 (ufloatv16siv16sf2): Ditto.
8996 (avx512f_fix_notruncv16sfv16si): Ditto.
8997 (avx512f_ufix_notruncv16sfv16si): Ditto.
8998 (avx512f_vcvtss2usi): Ditto.
8999 (avx512f_vcvtss2usiq): Ditto.
9000 (avx512f_vcvttss2usi): Ditto.
9001 (avx512f_vcvttss2usiq): Ditto.
9002 (avx512f_vcvtsd2usi): Ditto.
9003 (avx512f_vcvtsd2usiq): Ditto.
9004 (avx512f_vcvttsd2usi): Ditto.
9005 (avx512f_vcvttsd2usiq): Ditto.
9006 (ufloatv8siv8df): Ditto.
9007 (avx512f_cvtdq2pd512_2): Ditto.
9008 (avx512f_cvtpd2dq512): Ditto.
9009 (avx512f_ufix_notruncv8dfv8si): Ditto.
9010 (avx512f_cvtpd2ps512): Ditto.
9011 (vec_unpacks_lo_v16sf): Ditto.
9012 (vec_unpacks_hi_v16sf): Ditto.
9013 (vec_unpacks_float_hi_v16si): Ditto.
9014 (vec_unpacks_float_lo_v16si): Ditto.
9015 (avx512f_unpckhps512): Ditto.
9016 (avx512f_unpcklps512): Ditto.
9017 (avx512f_movshdup512): Ditto.
9018 (avx512f_movsldup512): Ditto.
9019 (vec_extract_lo_v32hi): Ditto.
9020 (vec_extract_hi_v32hi): Ditto.
9021 (vec_extract_lo_v64qi): Ditto.
9022 (vec_extract_hi_v64qi): Ditto.
9023 (avx512f_unpckhpd512): Ditto.
9024 (avx512f_movddup512): Ditto.
9025 (avx512f_unpcklpd512): Ditto.
9026 (*avx512f_unpcklpd512): Ditto.
9027 (avx512f_shufps512_1): Ditto.
9028 (avx512f_shufpd512_1): Ditto.
9029 (avx512f_interleave_highv8di): Ditto.
9030 (avx512f_interleave_lowv8di): Ditto.
9031 (PMOV_DST_MODE): Ditto.
9032 (pmov_src_mode): Ditto.
9033 (pmov_src_lower): Ditto.
9035 (*avx512f_<code><pmov_src_lower><mode>2): Ditto.
9036 (*avx512f_<code>v8div16qi2): Ditto.
9037 (*avx512f_<code>v8div16qi2_store): Ditto.
9038 (vec_widen_umult_even_v16si): Ditto.
9039 (*vec_widen_umult_even_v16si): Ditto.
9040 (vec_widen_smult_even_v16si): Ditto.
9041 (*vec_widen_smult_even_v16si): Ditto.
9042 (avx512f_interleave_highv16si): Ditto.
9043 (avx512f_interleave_lowv16si): Ditto.
9044 (avx512f_<code>v16qiv16si2): Ditto.
9045 (avx512f_<code>v16hiv16si2): Ditto.
9046 (avx512f_<code>v8qiv8di2): Ditto.
9047 (avx512f_<code>v8hiv8di2): Ditto.
9048 (avx512f_<code>v8siv8di2): Ditto.
9049 (avx512cd_maskb_vec_dupv8di): Ditto.
9050 (avx512cd_maskw_vec_dupv16si): Ditto.
9051 (avx512f_vcvtph2ps512): Ditto.
9052 (avx512f_vcvtps2ph512): Ditto.
9053 (VEC_EXTRACT_MODE): Extened with wider modes.
9054 (VEC_PERM_AVX2): Ditto.
9055 (VEC_PERM_CONST): Ditto.
9057 2013-10-28 Joern Rennecke <joern.rennecke@embecosm.com>
9059 * config/arc/arc.c (arc_ccfsm_post_advance):
9060 Add comment about TYPE_RETURN.
9062 2013-10-28 Bin Cheng <bin.cheng@arm.com>
9064 * tree-ssa-loop-ivopts.c (strip_offset_1): Change parameter type.
9065 Count DECL_FIELD_BIT_OFFSET for COMPONENT_REF.
9066 (strip_offset): Convert offset to unsigned number.
9068 2013-10-27 Tom de Vries <tom@codesourcery.com>
9070 * cfgexpand.c (gimple_expand_cfg): Remove test for parm_birth_insn.
9071 Don't commit insertions after NOTE_INSN_FUNCTION_BEG.
9073 2013-10-27 Oleg Endo <olegendo@gcc.gnu.org>
9075 * config/sh/sh.c (MSW, LSW): Move and rename macros to...
9076 * config/sh/sh.h (SH_REG_MSW_OFFSET, SH_REG_LSW_OFFSET): ... here.
9077 (TARGET_BIG_ENDIAN): New macro.
9078 * config/sh/sh.md: Use it instead of !TARGET_LITTLE_ENDIAN.
9079 Use SH_REG_MSW_OFFSET and SH_REG_LSW_OFFSET.
9080 * config/sh/sh.c: Likewise.
9081 * config/sh/sh.h: Likewise.
9083 2013-10-27 Hans-Peter Nilsson <hp@axis.com>
9085 * config/cris/cris.c (cris_emit_trap_for_misalignment): Replace the
9086 removed PRED_MUDFLAP with PRED_NORETURN. Correct file-path in comment.
9088 2013-10-26 Oleg Endo <olegendo@gcc.gnu.org>
9090 * config/sh/sh.md (movmemsi): Remove empty constraints and predicates.
9092 (cmpstr_t, cmpstrsi): Fix formatting.
9094 2013-10-26 Oleg Endo <olegendo@gcc.gnu.org>
9097 * config/sh/predicates.md (general_movdst_operand): Allow reg+reg
9098 addressing, do not use general_operand for memory operands.
9100 2013-10-26 Vladimir Makarov <vmakarov@redhat.com>
9103 2013-10-25 Vladimir Makarov <vmakarov@redhat.com>
9104 * lra-spills.c (lra_final_code_change): Remove useless move insns.
9106 2013-10-26 Jeff Law <law@redhat.com>
9108 * predict.c (PRED_MUDFLAP): Remove.
9109 * targhooks.c (build_va_arg_indirect_ref): Remove mudflap support.
9111 * Makefile.in (C_COMMON_OBJS): Remove tree-mudflap.
9112 (OBJS): Remove tree-nomudflap.o
9113 (GTFILES): Remove tree-mudflap.c
9114 * builtins.c (expand_builtin_alloc): Remove mudflap support.
9115 * gcc.c (MFWRAP_SPEC, MFLIB_SPEC): Likewise.
9116 (mfwrap_spec, mflib_spec): Likewise.
9117 (cpp_unique_options, cc1_options, static_specs): Likewise.
9118 * gimplify (gimplify_vla_decl, build_va_arg_indirect_ref): Likewise.
9119 * passes.def: Likewise.
9120 * toplev.c (compile_file, process_options): Likewise.
9121 * tree-inline.c (copy_tree_r): Likewise.
9122 * tree-pass.,h (make_pass_mudflap_1, make_pass_mudflap_2): Likewise.
9123 * varasm.c (make_decl_rtl, make_decl_rtl_for_debug): Likewise.
9124 (build_constant_desc, output_constant_def_contents): Likewise.
9125 (categorize_decl_for_section): Likewise.
9126 * tree-mudflap.c: Removed.
9127 * tree-mudflap.h: Removed.
9128 * tree-nomudflap.c: Removed.
9129 * bfin/uclinux.h (MFWRAP_SPEC): Remove.
9130 * moxie/uclinux.h (MFWRAP_SPEC): Likewise.
9131 * rs6000/aix.h (MFWRAP_SPEC, MFLIB_SPEC): Likewise.
9132 * config/sol2.h (MFLIB_SPEC): Likewise.
9133 * doc/install.texi: Remove mudflap references.
9134 * doc/passes.texi: Similarly.
9135 * doc/sourcebuild.texi: Similarly.
9136 * doc/invoke.texi: Remove mudlfap related options.
9138 2013-10-25 Vladimir Makarov <vmakarov@redhat.com>
9140 PR rtl-optimization/58759
9141 * lra-constraints.c (lra_constraints): Remove wrong condition to
9142 remove insn setting up an equivalent pseudo.
9144 2013-10-25 Vladimir Makarov <vmakarov@redhat.com>
9146 * config/rs6000/rs6000-protos.h
9147 (rs6000_secondary_memory_needed_mode): New prototype.
9148 * config/rs6000/rs6000.c: Include ira.h.
9149 (TARGET_LRA_P): Redefine.
9150 (rs6000_legitimate_offset_address_p): Call
9151 legitimate_constant_pool_address_p in strict mode for LRA.
9152 (rs6000_legitimate_address_p): Ditto.
9153 (legitimate_lo_sum_address_p): Add code for LRA. Use lra_in_progress.
9154 (rs6000_emit_move): Add LRA version of code to generate load/store
9156 (rs6000_secondary_memory_needed_mode): New.
9157 (rs6000_alloc_sdmode_stack_slot): Do nothing for LRA.
9158 (rs6000_secondary_reload_class): Return NO_REGS for LRA for
9159 constants, memory, and FP registers.
9160 (rs6000_lra_p): New.
9161 * config/rs6000/rs6000.h (SECONDARY_MEMORY_NEEDED_MODE): New macro.
9162 * config/rs6000/rs6000.opt (mlra): New option.
9163 * lra-spills.c (lra_final_code_change): Remove useless move insns.
9165 2013-10-25 Yufeng Zhang <yufeng.zhang@arm.com>
9167 * tree-ssa-math-opts.c (convert_plusminus_to_widen): Call
9168 has_single_use () and not do the conversion if has_single_use ()
9169 returns false for the multiplication result.
9171 2013-10-25 David Malcolm <dmalcolm@redhat.com>
9173 * tree.h (EXCEPTIONAL_CLASS_P): Rename parameter from "CODE"
9174 to "NODE", since this works on a "tree", not an
9176 (CONSTANT_CLASS_P): Likewise.
9179 (INDIRECT_REF_P): Likewise.
9180 (REFERENCE_CLASS_P): Likewise.
9181 (COMPARISON_CLASS_P): Likewise.
9182 (UNARY_CLASS_P): Likewise.
9183 (BINARY_CLASS_P): Likewise.
9184 (STATEMENT_CLASS_P): Likewise.
9185 (VL_EXP_CLASS_P): Likewise.
9186 (EXPRESSION_CLASS_P): Likewise.
9187 (IS_TYPE_OR_DECL_P): Likewise.
9189 2013-10-25 Marc Glisse <marc.glisse@inria.fr>
9191 * tree-ssa-alias.c (ao_ref_init_from_ptr_and_size): Look for an
9192 ADDR_EXPR in the defining statement.
9194 2013-10-25 Richard Biener <rguenther@suse.de>
9196 PR tree-optimization/58626
9197 * tree-loop-distribution.c (enum rdg_dep_type): Remove
9198 anti_dd, output_dd and input_dd.
9199 (struct rdg_edge): Remove level and relation members.
9200 (RDGE_LEVEL, RDGE_RELATION): Remove.
9201 (dot_rdg_1): Adjust.
9202 (create_rdg_edge_for_ddr): Remove.
9203 (create_rdg_edges_for_scalar): Adjust.
9204 (create_edge_for_control_dependence): Likewise.
9205 (create_rdg_edges): Split into ...
9206 (create_rdg_flow_edges): ... this
9207 (create_rdg_cd_edges): ... and this.
9209 (build_rdg): Likewise, do not compute data dependences or
9211 (pg_add_dependence_edges): New function.
9213 (distribute_loop): First apply all non-dependence based
9214 partition mergings. Then compute dependences between partitions
9215 and merge and order partitions according to them.
9217 2013-10-25 Eric Botcazou <ebotcazou@adacore.com>
9219 PR rtl-optimization/58831
9220 * alias.c (init_alias_analysis): At the beginning of each iteration,
9221 set the reg_seen[N] bit if static_reg_base_value[N] is non-null.
9223 2013-10-25 Eric Botcazou <ebotcazou@adacore.com>
9225 * recog.c (search_ofs): New static variable moved from...
9226 (peep2_find_free_register): ...here.
9227 (peephole2_optimize): Initialize it.
9229 2013-10-25 Tobias Burnus <burnus@net-b.de>
9231 * doc/invoke.texi (fopenmp): Change supported OpenMP version to 4.0.
9233 2013-10-25 Uros Bizjak <ubizjak@gmail.com>
9235 * config/i386/i386.h (TARGET_MPX): New define.
9236 (TARGET_MPX_P): Ditto.
9238 2013-10-24 Ilya Enkovich <ilya.enkovich@intel.com>
9240 * config/i386/constraints.md (B): New.
9243 * config/i386/i386-c.c (ix86_target_macros_internal): Add __MPX__.
9244 * config/i386/i386-modes.def (BND32): New.
9246 * config/i386/i386-protos.h (ix86_bnd_prefixed_insn_p): New.
9247 * config/i386/i386.c (isa_opts): Add mmpx.
9248 (regclass_map): Add bound registers.
9249 (dbx_register_map): Likewise.
9250 (dbx64_register_map): Likewise.
9251 (svr4_dbx_register_map): Likewise.
9253 (ix86_option_override_internal): Support MPX ISA.
9254 (ix86_conditional_register_usage): Support bound registers.
9255 (print_reg): Likewise.
9256 (ix86_code_end): Add MPX bnd prefix.
9257 (output_set_got): Likewise.
9258 (ix86_output_call_insn): Likewise.
9259 (ix86_print_operand): Add '!' (MPX bnd) print prefix support.
9260 (ix86_print_operand_punct_valid_p): Likewise.
9261 (ix86_print_operand_address): Support UNSPEC_BNDMK_ADDR and
9263 (ix86_class_likely_spilled_p): Add bound regs support.
9264 (ix86_hard_regno_mode_ok): Likewise.
9265 (x86_order_regs_for_local_alloc): Likewise.
9266 (ix86_bnd_prefixed_insn_p): New.
9267 * config/i386/i386.h (FIRST_PSEUDO_REGISTER): Fix to new value.
9268 (FIXED_REGISTERS): Add bound registers.
9269 (CALL_USED_REGISTERS): Likewise.
9270 (REG_ALLOC_ORDER): Likewise.
9271 (HARD_REGNO_NREGS): Likewise.
9273 (VALID_BND_REG_MODE): New.
9274 (FIRST_BND_REG): New.
9275 (LAST_BND_REG): New.
9276 (reg_class): Add BND_REGS.
9277 (REG_CLASS_NAMES): Likewise.
9278 (REG_CLASS_CONTENTS): Likewise.
9280 (ANY_BND_REG_P): New.
9282 (HI_REGISTER_NAMES): Add bound registers.
9283 * config/i386/i386.md (UNSPEC_BNDMK): New.
9284 (UNSPEC_BNDMK_ADDR): New.
9285 (UNSPEC_BNDSTX): New.
9286 (UNSPEC_BNDLDX): New.
9287 (UNSPEC_BNDLDX_ADDR): New.
9288 (UNSPEC_BNDCL): New.
9289 (UNSPEC_BNDCU): New.
9290 (UNSPEC_BNDCN): New.
9291 (UNSPEC_MPX_FENCE): New.
9294 (type): Add mpxmov, mpxmk, mpxchk, mpxld, mpxst.
9295 (length_immediate): Likewise.
9296 (prefix_0f): Likewise.
9298 (prefix_rep): Check for bnd prefix.
9299 (length_nobnd): New.
9300 (length): Use length_nobnd if specified.
9305 (*jcc_1): Add bnd prefix and rename length attr to length_nobnd.
9308 (simple_return_internal): Likewise.
9309 (simple_return_pop_internal): Likewise.
9310 (*indirect_jump): Add MPX bnd prefix.
9311 (*tablejump_1): Likewise.
9312 (simple_return_internal_long): Likewise.
9313 (simple_return_indirect_internal): Likewise.
9317 (*mov<mode>_internal_mpx): New.
9318 (<mode>_<bndcheck>): New.
9319 (*<mode>_<bndcheck>): New.
9324 * config/i386/predicates.md (lea_address_operand): Rename to...
9325 (address_no_seg_operand): ... this.
9326 (address_mpx_no_base_operand): New.
9327 (address_mpx_no_index_operand): New.
9328 (bnd_mem_operator): New.
9329 * config/i386/i386.opt (mmpx): New.
9330 * doc/invoke.texi: Add documentation for the flags -mmpx, -mno-mpx.
9331 * doc/rtl.texi Add documentation for BND32mode and BND64mode.
9333 2013-10-24 Ilya Enkovich <ilya.enkovich@intel.com>
9335 * mode-classes.def (MODE_POINTER_BOUNDS): New.
9336 * tree.def (POINTER_BOUNDS_TYPE): New.
9337 * genmodes.c (complete_mode): Support MODE_POINTER_BOUNDS.
9338 (POINTER_BOUNDS_MODE): New.
9339 (make_pointer_bounds_mode): New.
9340 * machmode.h (POINTER_BOUNDS_MODE_P): New.
9341 * stor-layout.c (int_mode_for_mode): Support MODE_POINTER_BOUNDS.
9342 (layout_type): Support POINTER_BOUNDS_TYPE.
9343 * tree-pretty-print.c (dump_generic_node): Support POINTER_BOUNDS_TYPE.
9344 * tree.c (build_int_cst_wide): Support POINTER_BOUNDS_TYPE.
9345 (type_contains_placeholder_1): Likewise.
9346 * tree.h (POINTER_BOUNDS_TYPE_P): New.
9347 * varasm.c (output_constant): Support POINTER_BOUNDS_TYPE.
9348 * doc/rtl.texi (MODE_POINTER_BOUNDS): New.
9350 2013-10-24 Igor Shevlyakov <igor.shevlyakov@gmail.com>
9352 * expr.c (expand_expr_real_1): Use mode of memory reference rather than
9353 mode of address computation when calling memory_address_addr_space.
9355 2013-08-24 Richard Henderson <rth@twiddle.net>
9358 * optabs.c (maybe_emit_atomic_exchange): Use create_input_operand
9359 instead of create_convert_operand_to.
9360 (maybe_emit_sync_lock_test_and_set): Likewise.
9361 (expand_atomic_compare_and_swap): Likewise.
9362 (maybe_emit_compare_and_swap_exchange_loop): Don't convert_modes.
9364 2013-08-24 Sriraman Tallam <tmsriram@google.com>
9366 * cgraph.c (cgraph_fnver_htab): Move GTY((...)) to be before htab_t.
9367 Change param_is to use the struct and not the pointer to the struct.
9369 2013-10-24 Andrew MacLeod <amacleod@redhat.com>
9371 * builtins.c (dummy_object, gimplify_va_arg_expr): Move to gimplify.c.
9372 * gimplify.c (build_va_arg_indirect_ref, std_gimplify_va_arg_expr):
9373 Move to targhooks.c.
9374 (dummy_object, gimplify_va_arg_expr): Relocate from builtins.c.
9375 * targhooks.c (build_va_arg_indirect_ref, std_gimplify_va_arg_expr):
9376 Relocate from gimplify.c.
9377 * targhooks.h: Add 2 prototypes.
9378 * tree.h: Delete 2 prototypes.
9380 2013-10-24 Igor Shevlyakov <igor.shevlyakov@gmail.com>
9382 * tree-ssa-loop-ivopts.c (multiplier_allowed_in_address_p ): Check both
9383 [reg+mult*reg] and [mult*reg] to determine if multiplier is allowed.
9385 2013-10-24 Cong Hou <congh@google.com>
9387 * convert.c (convert_to_real): Guard those unsafe math function
9388 convertions with flag_unsafe_math_optimizations. Handle sqrt()
9391 2013-10-24 Markus Trippelsdorf <markus@trippelsdorf.de>
9394 * cgraph.c (cgraph_create_edge_1): Add indirect_unknown_callee
9396 (cgraph_create_edge): Use the new argument.
9397 (cgraph_create_indirect_edge): Likewise.
9399 2013-10-24 Joern Rennecke <joern.rennecke@embecosm.com>
9401 * config/arc/arc.c (arc_ccfsm_post_advance): Also handle
9403 (arc_ifcvt) <case 1 and 2>: Check that arc_ccfsm_post_advance
9404 changes statep->state.
9406 2013-10-24 Tobias Burnus <burnus@net-b.de>
9409 * tree-cfg.c (replace_loop_annotate): New function.
9410 (execute_build_cfg): Call it.
9411 * gimplify.c (gimple_boolify, gimplify_expr): Handle ANNOTATE_EXPR.
9412 * internal-fn.c (expand_ANNOTATE): New function.
9413 * internal-fn.def (ANNOTATE): Define as new internal function.
9414 * tree-core.h (tree_node_kind): Add annot_expr_ivdep_kind.
9415 * tree-pretty-print.c (dump_generic_node): Handle ANNOTATE_EXPR.
9416 * tree.def (ANNOTATE_EXPR): New DEFTREECODE.
9417 * doc/extend.texi (Pragmas): Document #pragma ivdep.
9418 * doc/generic.texi (Expressions): Document ANNOTATE_EXPR.
9420 2013-10-17 Ian Bolton <ian.bolton@arm.com>
9421 Marcus Shawcroft <marcus.shawcroft@arm.com>
9423 * config/aarch64/aarch64.c (aarch64_preferred_reload_class):
9424 Special case reload SP+C into none GENERAL_REGS.
9426 2013-10-24 Michael Matz <matz@suse.de>
9428 * gengtype.c (is_file_equal): Check that files will be same length.
9430 2013-10-25 Christian Bruel <christian.bruel@st.com>
9432 * config.gcc (sh-*): Add sh-mem.o to extra_obj.
9433 * config/sh/t-sh (sh-mem.o): New rule.
9434 * config/sh/sh-mem.cc (expand_block_move): Moved here.
9435 (sh_expand_cmpstr): New function.
9436 * config/sh/sh.c (force_into, expand_block_move): Move to sh-mem.c.
9437 * config/sh/sh-protos.h (sh_expand_cmpstr): Declare.
9438 * config/sh/sh.md (cmpstrsi, cmpstr_t): New patterns.
9439 (rotlhi3_8): Rename.
9441 2013-10-24 Jan-Benedict Glaw <jbglaw@lug-owl.de>
9443 * configure.ac (ZW_PROG_COMPILER_DEPENDENCIES): Use CXX instead of CC.
9444 * Makefile.in (CXXDEPMODE): Assign and change users.
9445 (CCDEPMODE): Delete.
9446 * configure: Regenerate.
9448 2013-10-23 David Malcolm <dmalcolm@redhat.com>
9450 * gengtype-parse.c (require_without_advance): New.
9451 (type): For GTY-marked types that are not GTY((user)), parse any
9452 base classes, requiring them to be single-inheritance, and not
9453 be templates. For non-GTY-marked types and GTY((user)),
9454 continue to skip over any C++ inheritance specification.
9455 * gengtype-state.c (state_writer::write_state_struct_type):
9456 Write base class of type (if any).
9457 (read_state_struct_type): Read base class of type (if any).
9458 * gengtype.c (new_structure): Add a "base_class" parameter.
9459 (create_optional_field_): Update for new parameter to new_structure.
9460 (adjust_field_rtx_def): Likewise.
9461 (adjust_field_tree_exp): Likewise.
9462 * gengtype.h (struct type): Add "base_class" field to the s
9464 (new_structure): Add "base" parameter.
9466 2013-10-23 Sriraman Tallam <tmsriram@google.com>
9469 * config/i386/i386.c (ix86_option_override_internal):
9470 Change TARGET_SSE2 to TARGET_SSE2_P (opts->...)
9471 (ix86_valid_target_attribute_tree):
9472 Change TARGET_64BIT to TARGET_64BIT_P (opts->...)
9473 Change TARGET_SSE to TARGET_SSE_P (opts->...)
9475 2013-10-23 Andrew MacLeod <amacleod@redhat.com>
9477 * tree-ssa-loop.h: Remove include files.
9478 * gengtype.c (open_base_files): Adjust include list for gtype-desc.c.
9479 * cfgloopmanip.c: Move required includes from tree-ssa-loop.h.
9480 * graphite-clast-to-gimple.c: Likewise.
9481 * graphite-scop-detection.c: Likewise.
9482 * graphite-sese-to-poly.c: Likewise.
9483 * ipa-inline-analysis.c: Likewise.
9484 * ipa-pure-const.c: Likewise.
9485 * loop-init.c: Likewise.
9486 * passes.c: Likewise.
9487 * predict.c: Likewise.
9488 * tree-cfg.c: Likewise.
9489 * tree-cfgcleanup.c: Likewise.
9490 * tree-chrec.c: Likewise.
9491 * tree-data-ref.c: Likewise.
9492 * tree-loop-distribution.c: Likewise.
9493 * tree-parloops.c: Likewise.
9494 * tree-predcom.c: Likewise.
9495 * tree-scalar-evolution.c: Likewise.
9496 * tree-ssa-address.c: Likewise.
9497 * tree-ssa.c: Likewise.
9498 * tree-ssa-dce.c: Likewise.
9499 * tree-ssa-loop.c: Likewise.
9500 * tree-ssa-loop-im.c: Likewise.
9501 * tree-ssa-loop-ivcanon.c: Likewise.
9502 * tree-ssa-loop-ivopts.c: Likewise.
9503 * tree-ssa-loop-manip.c: Likewise.
9504 * tree-ssa-loop-niter.c: Likewise.
9505 * tree-ssa-loop-prefetch.c: Likewise.
9506 * tree-ssa-loop-unswitch.c: Likewise.
9507 * tree-ssa-reassoc.c: Likewise.
9508 * tree-vect-data-refs.c: Likewise.
9509 * tree-vect-loop.c: Likewise.
9510 * tree-vect-loop-manip.c: Likewise.
9511 * tree-vectorizer.c: Likewise.
9512 * tree-vect-stmts.c: Likewise.
9513 * tree-vrp.c: Likewise.
9515 2013-10-23 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
9517 * config/rs6000/altivec.md (mulv8hi3): Adjust for little endian.
9519 2013-10-23 Jakub Jelinek <jakub@redhat.com>
9521 PR tree-optimization/58775
9522 PR tree-optimization/58791
9523 * tree-ssa-reassoc.c (reassoc_stmt_dominates_stmt_p): New function.
9524 (insert_stmt_after): Rewritten, don't move the stmt, but really
9526 (get_stmt_uid_with_default): Remove.
9527 (build_and_add_sum): Use insert_stmt_after and
9528 reassoc_stmt_dominates_stmt_p. Fix up uid if bb contains only labels.
9529 (update_range_test): Set uid on stmts added by
9530 force_gimple_operand_gsi. Don't immediately modify statements
9531 in inter-bb optimization, just update oe->op values.
9532 (optimize_range_tests): Return bool whether any changed have been made.
9533 (update_ops): New function.
9534 (struct inter_bb_range_test_entry): New type.
9535 (maybe_optimize_range_tests): Perform statement changes here.
9536 (not_dominated_by, appears_later_in_bb, get_def_stmt,
9537 ensure_ops_are_available): Remove.
9538 (find_insert_point): Rewritten.
9539 (rewrite_expr_tree): Remove MOVED argument, add CHANGED argument,
9540 return LHS of the (new resp. old) stmt. Don't call
9541 ensure_ops_are_available, don't reuse SSA_NAMEs, recurse first
9542 instead of last, move new stmt at the right place.
9543 (linearize_expr, repropagate_negates): Don't reuse SSA_NAMEs.
9544 (negate_value): Likewise. Set uids.
9545 (break_up_subtract_bb): Initialize uids.
9546 (reassociate_bb): Adjust rewrite_expr_tree caller.
9547 (do_reassoc): Don't call renumber_gimple_stmt_uids.
9549 2013-10-23 David Edelsohn <dje.gcc@gmail.com>
9552 * config/rs6000/rs6000.md (mulsi3_internal1 and splitter): Add
9553 TARGET_32BIT final condition.
9554 (mulsi3_internal2 and splitter): Same.
9556 2013-10-23 Jeff Law <law@redhat.com>
9558 * tree-ssa-threadedge.c (thread_across_edge): Do not allow threading
9559 through joiner blocks with abnormal outgoing edges.
9561 * tree-ssa-threadupdate.c (thread_block_1): Renamed from thread_block.
9562 Add parameter JOINERS, to allow/disallow threading through joiner
9564 (thread_block): New. Call thread_block_1.
9565 (mark_threaded_blocks): Remove code to filter out certain cases
9566 of threading through joiner blocks.
9567 (thread_through_all_blocks): Document how we can have a dangling
9568 edge AUX field and clear it.
9570 2013-10-23 Ian Lance Taylor <iant@google.com>
9572 * doc/invoke.texi (Option Summary): Remove -fno-default-inline.
9573 (C++ Dialect Options): Likewise.
9574 (Optimize Options): Likewise.
9576 2013-10-23 Tom de Vries <tom@codesourcery.com>
9578 PR tree-optimization/58805
9579 * tree-ssa-tail-merge.c (stmt_local_def): Add gimple_vdef check.
9581 2013-10-23 Jakub Jelinek <jakub@redhat.com>
9583 * tree-vect-patterns.c (vect_recog_divmod_pattern): Optimize
9584 sequence based on get_range_info returned range.
9586 2013-10-23 Andrew MacLeod <amacleod@redhat.com>
9588 * tree-ssa.h: Remove all #include's
9589 * gengtype.c (open_base_files): Adjust include list for gtype-desc.c.
9590 * alias.c: Move required includes from tree-ssa.h.
9592 * builtins.c: Likewise.
9593 * calls.c: Likewise.
9594 * cfgexpand.c: Likewise.
9595 * cfghooks.c: Likewise.
9596 * cfgloop.c: Likewise.
9597 * cfgloopmanip.c: Likewise.
9598 * cgraph.c: Likewise.
9599 * cgraphbuild.c: Likewise.
9600 * cgraphclones.c: Likewise.
9601 * cgraphunit.c: Likewise.
9603 * except.c: Likewise.
9605 * final.c: Likewise.
9606 * fold-const.c: Likewise.
9607 * ggc-page.c: Likewise.
9608 * gimple-builder.c: Likewise.
9609 * gimple-fold.c: Likewise.
9610 * gimple-iterator.c: Likewise.
9611 * gimple-low.c: Likewise.
9612 * gimple-pretty-print.c: Likewise.
9613 * gimple-ssa-strength-reduction.c: Likewise.
9614 * gimple-streamer-in.c: Likewise.
9615 * gimple-streamer-out.c: Likewise.
9616 * gimplify.c: Likewise.
9617 * graphite-blocking.c: Likewise.
9618 * graphite-clast-to-gimple.c: Likewise.
9619 * graphite-dependences.c: Likewise.
9620 * graphite-interchange.c: Likewise.
9621 * graphite-optimize-isl.c: Likewise.
9622 * graphite-poly.c: Likewise.
9623 * graphite-scop-detection.c: Likewise.
9624 * graphite-sese-to-poly.c: Likewise.
9625 * graphite.c: Likewise.
9626 * ipa-cp.c: Likewise.
9627 * ipa-inline-analysis.c: Likewise.
9628 * ipa-inline-transform.c: Likewise.
9629 * ipa-inline.c: Likewise.
9630 * ipa-prop.c: Likewise.
9631 * ipa-pure-const.c: Likewise.
9632 * ipa-reference.c: Likewise.
9633 * ipa-split.c: Likewise.
9634 * ipa-utils.c: Likewise.
9635 * loop-init.c: Likewise.
9636 * lto-cgraph.c: Likewise.
9637 * lto-section-in.c: Likewise.
9638 * lto-section-out.c: Likewise.
9639 * lto-streamer-in.c: Likewise.
9640 * lto-streamer-out.c: Likewise.
9641 * lto-streamer.c: Likewise.
9642 * omp-low.c: Likewise.
9643 * passes.c: Likewise.
9644 * predict.c: Likewise.
9645 * print-tree.c: Likewise.
9646 * profile.c: Likewise.
9648 * targhooks.c: Likewise.
9649 * tracer.c: Likewise.
9650 * trans-mem.c: Likewise.
9651 * tree-call-cdce.c: Likewise.
9652 * tree-cfg.c: Likewise.
9653 * tree-cfgcleanup.c: Likewise.
9654 * tree-chrec.c: Likewise.
9655 * tree-complex.c: Likewise.
9656 * tree-data-ref.c: Likewise.
9657 * tree-dfa.c: Likewise.
9658 * tree-eh.c: Likewise.
9659 * tree-emutls.c: Likewise.
9660 * tree-if-conv.c: Likewise.
9661 * tree-inline.c: Likewise.
9662 * tree-into-ssa.c: Likewise.
9663 * tree-loop-distribution.c: Likewise.
9664 * tree-mudflap.c: Likewise.
9665 * tree-nested.c: Likewise.
9666 * tree-nrv.c: Likewise.
9667 * tree-object-size.c: Likewise.
9668 * tree-outof-ssa.c: Likewise.
9669 * tree-parloops.c: Likewise.
9670 * tree-phinodes.c: Likewise.
9671 * tree-predcom.c: Likewise.
9672 * tree-pretty-print.c: Likewise.
9673 * tree-profile.c: Likewise.
9674 * tree-scalar-evolution.c: Likewise.
9675 * tree-sra.c: Likewise.
9676 * tree-ssa-address.c: Likewise.
9677 * tree-ssa-alias.c: Likewise.
9678 * tree-ssa-ccp.c: Likewise.
9679 * tree-ssa-coalesce.c: Likewise.
9680 * tree-ssa-copy.c: Likewise.
9681 * tree-ssa-copyrename.c: Likewise.
9682 * tree-ssa-dce.c: Likewise.
9683 * tree-ssa-dom.c: Likewise.
9684 * tree-ssa-dse.c: Likewise.
9685 * tree-ssa-forwprop.c: Likewise.
9686 * tree-ssa-ifcombine.c: Likewise.
9687 * tree-ssa-live.c: Likewise.
9688 * tree-ssa-loop-ch.c: Likewise.
9689 * tree-ssa-loop-im.c: Likewise.
9690 * tree-ssa-loop-ivcanon.c: Likewise.
9691 * tree-ssa-loop-ivopts.c: Likewise.
9692 * tree-ssa-loop-manip.c: Likewise.
9693 * tree-ssa-loop-niter.c: Likewise.
9694 * tree-ssa-loop-prefetch.c: Likewise.
9695 * tree-ssa-loop-unswitch.c: Likewise.
9696 * tree-ssa-loop.c: Likewise.
9697 * tree-ssa-math-opts.c: Likewise.
9698 * tree-ssa-operands.c: Likewise.
9699 * tree-ssa-phiopt.c: Likewise.
9700 * tree-ssa-phiprop.c: Likewise.
9701 * tree-ssa-pre.c: Likewise.
9702 * tree-ssa-propagate.c: Likewise.
9703 * tree-ssa-reassoc.c: Likewise.
9704 * tree-ssa-sccvn.c: Likewise.
9705 * tree-ssa-sink.c: Likewise.
9706 * tree-ssa-strlen.c: Likewise.
9707 * tree-ssa-structalias.c: Likewise.
9708 * tree-ssa-tail-merge.c: Likewise.
9709 * tree-ssa-ter.c: Likewise.
9710 * tree-ssa-threadedge.c: Likewise.
9711 * tree-ssa-threadupdate.c: Likewise.
9712 * tree-ssa-uncprop.c: Likewise.
9713 * tree-ssa-uninit.c: Likewise.
9714 * tree-ssa.c: Likewise.
9715 * tree-ssanames.c: Likewise.
9716 * tree-stdarg.c: Likewise.
9717 * tree-streamer-in.c: Likewise.
9718 * tree-switch-conversion.c: Likewise.
9719 * tree-tailcall.c: Likewise.
9720 * tree-vect-data-refs.c: Likewise.
9721 * tree-vect-generic.c: Likewise.
9722 * tree-vect-loop-manip.c: Likewise.
9723 * tree-vect-loop.c: Likewise.
9724 * tree-vect-patterns.c: Likewise.
9725 * tree-vect-slp.c: Likewise.
9726 * tree-vect-stmts.c: Likewise.
9727 * tree-vectorizer.c: Likewise.
9728 * tree-vrp.c: Likewise.
9731 * value-prof.c: Likewise.
9732 * var-tracking.c: Likewise.
9733 * varpool.c: Likewise.
9734 * vtable-verify.c: Likewise.
9736 2013-10-23 Jan-Benedict Glaw <jbglaw@lug-owl.de>
9738 * config/tilegx/tilegx.c: Include "tree.h".
9740 2013-10-23 Jakub Jelinek <jakub@redhat.com>
9742 * gimple-pretty-print.c (dump_ssaname_info): Always print "# " before
9743 the info, not after it.
9744 (gump_gimple_phi): Add COMMENT argument, if true, print "# " after
9745 dump_ssaname_info call.
9746 (pp_gimple_stmt_1): Adjust caller.
9747 (dump_phi_nodes): Likewise. Don't print "# " here.
9749 2013-10-22 Jan Hubicka <jh@suse.cz>
9751 * i386.h (TARGET_MISALIGNED_MOVE_STRING_PROLOGUES_EPILOGUES): New
9753 * x86-tune.def (TARGET_MISALIGNED_MOVE_STRING_PROLOGUES): Define it.
9754 * i386.c (expand_small_movmem_or_setmem): New function.
9755 (expand_set_or_movmem_prologue_epilogue_by_misaligned_moves): New
9757 (alg_usable_p): Add support for value ranges; cleanup.
9758 (ix86_expand_set_or_movmem): Add support for misaligned moves.
9760 2013-10-22 Sterling Augustine <saugustine@google.com>
9762 * doc/invoke.texi: Document -ggnu-pubnames.
9763 * common.opt: Add new option -ggnu-pubnames and modify -gpubnames
9765 * dwarf2out.c: Include gdb/gdb-index.h.
9766 (DEBUG_PUBNAMES_SECTION, DEBUG_PUBTYPES_SECTION): Handle
9767 debug_generate_pub_sections.
9768 (is_java, output_pubtables, output_pubname): New functions.
9769 (include_pubname_in_output): Handle debug_generate_pub_sections at
9771 (size_of_pubnames): Use new local space_for_flags based on
9772 debug_generate_pub_sections.
9773 (output_pubnames): Unify pubnames and pubtypes output logic.
9774 Genericize comments. Call output_pubname.
9775 (dwarf2out_finish): Move logic to output_pubnames and call it.
9777 2013-10-22 Uros Bizjak <ubizjak@gmail.com>
9780 * config/i386/i386.c (put_condition_code) <case GTU, case LEU>:
9781 Remove CCCmode handling.
9782 <case LTU>: Return 'c' suffix for CCCmode.
9783 <case GEU>: Return 'nc' suffix for CCCmode.
9784 (ix86_cc_mode) <case GTU, case LEU>: Do not generate overflow checks.
9785 * config/i386/i386.md (*sub<mode>3_cconly_overflow): Remove.
9786 (*sub<mode>3_cc_overflow): Ditto.
9787 (*subsi3_zext_cc_overflow): Ditto.
9789 2013-10-22 Steve Ellcey <sellcey@mips.com>
9791 * config/mips/mips.c (mips_rtx_costs): Fix cost estimate for nor
9792 (AND (NOT OP1) (NOT OP2)).
9794 2013-10-22 Bill Schmidt <wschmidt@vnet.ibm.com>
9796 * config/rs6000/rs6000.c (altivec_expand_vec_perm_const): Reverse
9797 meaning of merge-high and merge-low masks for little endian; avoid
9798 use of vector-pack masks for little endian for mismatched modes.
9800 2013-10-22 Jan-Benedict Glaw <jbglaw@lug-owl.de>
9802 * config/tilepro/tilepro.c: Include "tree.h".
9804 2013-10-22 Andreas Schwab <schwab@suse.de>
9806 * config/m68k/m68k.c (notice_update_cc): Handle register conflict
9809 2013-10-22 Paolo Carlini <paolo.carlini@oracle.com>
9811 * doc/contrib.texi ([Fran@,{c}ois Dumont], [Tim Shen],
9812 [Ed Smith-Rowland]): New entries.
9813 ([Stephen M. Webb]): Update.
9815 2013-10-22 Andrew MacLeod <amacleod@redhat.com>
9817 * tree-ssa-ter.h: Remove duplicate copy of file contents.
9819 2013-10-21 Marek Polacek <polacek@redhat.com>
9822 * fold-const.c (fold_range_test): Return 0 if the type is not
9825 2013-10-21 Richard Sandiford <rdsandiford@googlemail.com>
9827 * system.h: Move hwint.h include further down.
9828 * hwint.h (sext_hwi, zext_hwi): Define unconditionally. Add
9829 gcc_checking_asserts.
9830 * hwint.c (sext_hwi, zext_hwi): Delete ENABLE_CHECKING versions.
9832 2013-10-21 Bernd Edlinger <bernd.edlinger@hotmail.de>
9834 Fix volatile issues in optimize_bit_field_compare.
9835 * fold-const.c (optimize_bit_field_compare): Bail out if
9836 lvolatilep or rvolatilep.
9838 2013-10-21 Bernd Edlinger <bernd.edlinger@hotmail.de>
9840 Fix DECL_BIT_FIELD depencency on flag_strict_volatile_bitfields
9841 and get_inner_reference returning different pmode for non-volatile
9842 bit-field members dependent on flag_strict_volatile_bitfields.
9843 * stor-layout.c (layout_decl): Remove special handling of
9844 flag_strict_volatile_bitfields.
9845 * expr.c (get_inner_reference): Don't use DECL_BIT_FIELD
9846 if flag_strict_volatile_bitfields > 0 and TREE_THIS_VOLATILE.
9848 2013-10-21 Paulo Matos <pmatos@broadcom.com>
9850 * ipa-inline.c (edge_badness): Cap edge->count at max_count for badness
9853 2013-10-21 Jeff Law <law@redhat.com>
9855 * tree-ssa-threadedge.c (thread_through_normal_block): New
9856 argument VISITED. Remove VISISTED as a local variable. When we
9857 have a threadable jump, verify the destination of the jump has not
9859 (thread_across_edge): Allocate VISITED bitmap once at function
9860 scope and use it throughout. Make sure to set appropriate bits in
9861 VISITED for E (start of jump thread path).
9862 * tree-ssa-threadupdate.c (mark_threaded_blocks): Reject threading
9863 through a joiner if any edge on the path has a recorded jump thread.
9865 2013-10-21 Ian Lance Taylor <iant@google.com>
9867 * doc/invoke.texi (Optimize Options): For -fno-toplevel-reorder,
9868 don't imply that attributes can solve all problems.
9869 (Directory Options): Fix typo.
9871 2013-10-21 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
9873 * config/arm/arm.c (cortexa9_extra_costs): Update mult costs for
9874 extend and extend_add.
9876 2013-10-21 Richard Biener <rguenther@suse.de>
9878 PR tree-optimization/58794
9879 * fold-const.c (operand_equal_p): Compare FIELD_DECL operand
9880 of COMPONENT_REFs with OEP_CONSTANT_ADDRESS_OF left in place.
9882 2013-10-21 Richard Biener <rguenther@suse.de>
9885 * fold-const.c (fold_binary_loc): Fold ((T) (X /[ex] C)) * C
9886 to (T) X for sign-changing conversions (or no conversion).
9888 2013-10-20 Uros Bizjak <ubizjak@gmail.com>
9890 * config/i386/i386.md (kxnor<mode>): Add FLAGS_REG clobber.
9892 2013-10-20 Jan Hubicka <jh@suse.cz>
9894 * config/i386/i386-tune.def: Add comment; organize into categories
9896 2013-10-21 Michael Zolotukhin <michael.v.zolotukhin@gmail.com>
9898 * config/i386/i386.c (expand_set_or_movmem_via_loop): Add issetmem
9899 argument. Update function comment.
9900 (expand_set_or_movmem_via_rep): New function combining
9901 expand_movmem_via_rep_mov and expand_setmem_via_rep_stos.
9902 (expand_movmem_via_rep_mov): Remove.
9903 expand_setmem_via_rep_stos): Remove.
9904 (expand_movmem_epilogue): Update calls correspondingly.
9905 (expand_setmem_epilogue_via_loop): Likewise.
9907 (expand_setmem_epilogue): Add VEC_VALUE argument, refactor.
9908 (expand_set_or_movmem_prologue): New function combining
9909 expand_movmem_prologue and expand_setmem_prologue.
9910 (expand_movmem_prologue): Remove.
9911 (expand_setmem_prologue): Remove.
9912 (expand_set_or_movmem_constant_prologue): New function combining
9913 expand_constant_movmem_prologue and expand_constant_setmem_prologue.
9914 (expand_constant_movmem_prologue): Remove.
9915 (expand_constant_setmem_prologue): Remove.
9916 (promote_duplicated_reg): Allow vector-const0 value.
9917 (ix86_expand_set_or_movmem): New function combining ix86_expand_movmem
9918 and ix86_expand_setmem.
9919 (ix86_expand_movmem): Call ix86_expand_set_or_movmem.
9920 (ix86_expand_setmem): Call ix86_expand_set_or_movmem.
9922 2013-10-21 Diego Novillo <dnovillo@google.com>
9924 * asan.c: Include tree.h
9925 * bb-reorder.c: Likewise.
9926 * cfgcleanup.c: Likewise.
9927 * cfgloopmanip.c: Likewise.
9928 * data-streamer-in.c: Likewise.
9929 * data-streamer-out.c: Likewise.
9930 * data-streamer.c: Likewise.
9931 * dwarf2cfi.c: Likewise.
9932 * graphite-blocking.c: Likewise.
9933 * graphite-clast-to-gimple.c: Likewise.
9934 * graphite-dependences.c: Likewise.
9935 * graphite-interchange.c: Likewise.
9936 * graphite-optimize-isl.c: Likewise.
9937 * graphite-poly.c: Likewise.
9938 * graphite-scop-detection.c: Likewise.
9939 * graphite-sese-to-poly.c: Likewise.
9940 * graphite.c: Likewise.
9941 * ipa-devirt.c: Likewise.
9942 * ipa-profile.c: Likewise.
9945 * loop-init.c: Likewise.
9946 * loop-unroll.c: Likewise.
9947 * lower-subreg.c: Likewise.
9948 * lto/lto-object.c: Likewise.
9949 * recog.c: Likewise.
9950 * reginfo.c: Likewise.
9951 * tree-loop-distribution.c: Likewise.
9952 * tree-parloops.c: Likewise.
9953 * tree-ssa-strlen.c: Likewise.
9954 * tree-streamer.c: Likewise.
9955 * value-prof.c: Likewise.
9956 * target-globals.c: Likewise.
9957 * expr.h: Include tree-core.h instead of tree.h.
9958 * gimple.h: Likewise.
9959 * ipa-prop.h: Likewise.
9960 * ipa-utils.h: Likewise.
9961 * lto-streamer.h: Likewise.
9962 * streamer-hooks.h: Likewise.
9963 * ipa-reference.h: Include cgraph.h instead of tree.h.
9964 * cgraph.h: Include basic-block.h instead of tree.h.
9965 * tree-streamer.h: Do not include tree.h.
9966 * genattrtab.c (write_header): Generate inclusion of tree.h.
9967 * genautomata.c (main): Likewise.
9968 * genemit.c: Likewise.
9969 * genopinit.c: Likewise.
9970 * genoutput.c (output_prologue): Likewise.
9971 * genpeep.c: Likewise.
9973 2013-10-20 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
9975 * config/rs6000/altivec.md (vec_unpacku_hi_v16qi): Adjust for
9977 (vec_unpacku_hi_v8hi): Likewise.
9978 (vec_unpacku_lo_v16qi): Likewise.
9979 (vec_unpacku_lo_v8hi): Likewise.
9981 2013-10-20 Jan Hubicka <jh@suse.cz>
9983 * config/i386/x86-tune.def (X86_TUNE_SLOW_IMUL_IMM32_MEM,
9984 X86_TUNE_SLOW_IMUL_IMM8): Keep enabled only for K8 and AMDFAM10.
9985 (X86_TUNE_USE_VECTOR_FP_CONVERTS): Disable for generic.
9987 2013-10-20 Richard Sandiford <rdsandiford@googlemail.com>
9989 * config/mips/mips.h (ISA_HAS_WSBH): Define.
9990 * config/mips/mips.md (UNSPEC_WSBH, UNSPEC_DSBH, UNSPEC_DSHD): New
9992 (bswaphi2, bswapsi2, bswapdi2, wsbh, dsbh, dshd): New patterns.
9994 2013-10-19 John David Anglin <danglin@gcc.gnu.org>
9997 * system.h: Undef m_slot.
9999 2013-10-19 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
10001 * config/rs6000/rs6000.c (vspltis_constant): Make sure we check
10002 all elements for both endian flavors.
10004 2013-10-19 Uros Bizjak <ubizjak@gmail.com>
10007 * config/i386/i386.c (ix86_function_value_regno): Add DX_REG,
10008 ST1_REG and XMM1_REG for 32bit and 64bit targets. Also add DI_REG
10009 and SI_REG for 64bit SYSV ABI targets.
10011 2013-10-19 Uros Bizjak <ubizjak@gmail.com>
10013 * mode-switching.c (create_pre_exit): Rename maybe_builtin_apply
10014 to multi_reg_return. Clarify that we are skipping USEs of multiple
10015 return registers. Use bool type where appropriate.
10017 2013-10-18 Jan Hubicka <jh@suse.cz>
10019 * config/i386/i386.h (ACCUMULATE_OUTGOING_ARGS): Disable accumulation
10020 for cold functions.
10021 * x86-tune.def (X86_TUNE_USE_LEAVE): Update comment.
10022 (X86_TUNE_PUSH_MEMORY): Likewise.
10023 (X86_TUNE_AVX256_UNALIGNED_LOAD_OPTIMAL,
10024 X86_TUNE_AVX256_UNALIGNED_STORE_OPTIMAL): New.
10025 (X86_TUNE_ACCUMULATE_OUTGOING_ARGS, X86_TUNE_ALWAYS_FANCY_MATH_387):
10027 * i386.c (x86_accumulate_outgoing_args, x86_arch_always_fancy_math_387,
10028 x86_avx256_split_unaligned_load, x86_avx256_split_unaligned_store):
10030 (ix86_option_override_internal): Update to use tune features instead
10033 2013-10-18 Cong Hou <congh@google.com>
10035 PR tree-optimization/58508
10036 * tree-vect-loop-manip.c (vect_loop_versioning): Hoist loop invariant
10037 statement that contains data refs with zero-step.
10039 2013-10-18 Andrew MacLeod <amacleod@redhat.com>
10041 * tree-ssa.h: Don't include gimple-low.h, tree-ssa-address.h,
10042 sbitmap.h, tree-ssa-threadedge.h, tree-ssa-dom.h and tree-cfgcleanup.h.
10043 * gimple-low.c (gimple_check_call_arg,
10044 gimple_check_call_matching_types): Move to cgraph.c.
10045 * gimple-low.h: Remove prototype.
10046 * cgraph.c: (gimple_check_call_arg, gimple_check_call_matching_types):
10047 Relocate from gimple-low.c.
10048 * cgraph.h: Add prototype. Don't include basic-block.h.
10049 * gimplify.c: Add gimple-low to include list.
10050 * omp-low.c: Add gimple-low and tree-cfgcleanup.h to include list.
10051 * tree-eh.c: Add gimple-low to include list.
10052 * tree-nested.c: Likewise.
10053 * cfgexpand.c: Add tree-ssa-address.h to include list.
10054 * expr.c: Likewise.
10055 * gimple-fold.c: Likewise.
10056 * gimple-ssa-strength-reduction.c: Likewise.
10057 * trans-mem.c: Likewise.
10058 * tree-mudflap.c: Likewise.
10059 * tree-ssa-loop-ivopts.c: Likewise.
10060 * tree-ssa-dom.c: Include tree-ssa-threadedge.h and tree-ssa-dom.h.
10061 (degenerate_phi_result): Move to tree-phinodes.c.
10062 * tree-ssa-loop-ch.c: Include tree-ssa-threadedge.h.
10063 * tree-ssa-threadedge.c: Likewise.
10064 * tree-vrp.c: Likewise.
10065 * tree-phinodes.c (degenerate_phi_result): Relocate here.
10066 * tree-ssa-dom.h (degenerate_phi_result): Remove Prototype.
10067 * tree-phinodes.h (degenerate_phi_result): Add prototype.
10068 * tree-ssa-copy.c: Include tree-ssa-dom.h.
10069 * tree-ssa-forwprop.c: Likewise.
10070 * tree-cfgcleanup.c (execute_cleanup_cfg_post_optimizing,
10071 pass_data_cleanup_cfg_post_optimizing,
10072 make_pass_cleanup_cfg_post_optimizing): Relocate from tree-optimize.c.
10073 * tree-optimize.c: Delete File.
10074 * graphite.c: Include tree-cfgcleanup.h.
10075 * passes.c: Likewise.
10076 * tree-cfg.c: Likewise.
10077 * tree-profile.c: Likewise.
10078 * tree-ssa-dse.c: Likewise.
10079 * tree-ssa-loop-ivcanon.c: Likewise.
10080 * tree-switch-conversion.c: Don't include tree-ssa-operands.h.
10081 * tree-outof-ssa.c: Include sbitmap.h.
10082 * tree-ssa-live.c: Likewise.
10083 * tree-ssa-propagate.c: Likewise.
10084 * tree-ssa-structalias.c: Likewise.
10085 * tree-stdarg.c: Likewise.
10086 * Makefile.in (OBJS): Delete tree-optimize.o.
10087 * basic-block.h (gcov_type, gcov_type_unsigned): Move to coretypes.h.
10088 * coretypes.h (gcov_type, gcov_type_unsigned): Relocate here.
10089 * varasm.c: Include basic-block.h.
10090 * cfgloop.h: Include function.h instead of basic-block.h
10091 (bb_loop_depth): Move to cfgloop.c.
10092 * cfgloop.c (bb_loop_depth): Relocate from cfgloop.h.
10094 2013-10-18 Teresa Johnson <tejohnson@google.com>
10096 * predict.c (probably_never_executed): Compare frequency-based
10097 count to number of training runs.
10098 * params.def (UNLIKELY_BB_COUNT_FRACTION): New parameter.
10100 2013-10-18 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
10102 * config/arm/arm.c (cortexa9_extra_costs): New table.
10103 (arm_cortex_a9_tune): Use cortexa9_extra_costs.
10105 2013-10-18 Jeff Law <law@redhat.com>
10107 * tree-ssa-threadupdate.c: Do not include "tm.h" or "tm_p.h".
10109 * tree-ssa-threadupdate.c: Include "dbgcnt.h".
10110 (register_jump_thread): Add "registered_jump_thread" debug
10112 * dbgcnt.def (registered_jump_thread): New debug counter.
10114 2013-10-18 Andrew MacLeod <amacleod@redhat.com>
10116 * config/rs6000/rs6000.c: Include cgraph.h.
10118 2013-10-18 Teresa Johnson <tejohnson@google.com>
10120 * tree-ssa-tail-merge.c (replace_block_by): Update edge
10121 weights during merging.
10123 2013-10-18 Andrew MacLeod <amacleod@redhat.com>
10125 * tree-cfg.h: Rename from tree-flow.h. Remove #includes.
10126 * tree-ssa.h: Relocate required #includes from tree-cfg.h.
10127 * tree-ssa-operands.h: Remove prototype.
10128 * tree-ssa-operands.c (virtual_operand_p): Move to gimple.c.
10129 * gimple.c (virtual_operand_p): Relocate from gimple.c.
10130 * gimple.h: Add prototype.
10131 * gimple-ssa.h: Include tree-ssa-operands.h.
10132 * tree-dump.c: Add tree-cfg.h to include list.
10133 * tree-ssa-alias.c: Add ipa-reference.h to include list.
10134 * config/alpha/alpha.c: Include gimple-ssa.h instead of tree-flow.h.
10135 * config/i386/i386.c: Don't include tree-flow.h.
10136 * config/rs6000/rs6000.c: Likewise.
10138 2013-10-18 Jan-Benedict Glaw <jbglaw@lug-owl.de>
10140 * config/frv/frv.c (frv_init_cumulative_args): Fix wrong cast.
10142 2013-10-18 Richard Biener <rguenther@suse.de>
10144 * stor-layout.c (layout_type): Do not change TYPE_PRECISION
10145 or TYPE_UNSIGNED of integral types.
10146 (set_min_and_max_values_for_integral_type): Leave TYPE_MIN/MAX_VALUE
10147 NULL_TREE for zero-precision integral types.
10149 2013-10-18 James Greenhalgh <james.greenhalgh@arm.com>
10151 * config/aarch64/arm_neon.h
10152 (vcvt<ds>_n_<fsu><32,64>_<fsu><32,64>): Correct argument types.
10154 2013-10-17 Sriraman Tallam <tmsriram@google.com>
10157 * opth-gen.awk: Define target_flags_explicit.
10159 2013-10-17 Michael Meissner <meissner@linux.vnet.ibm.com>
10161 * config/rs6000/rs6000.c (enum rs6000_reload_reg_type): Add new
10162 fields to the reg_addr array that describes the valid addressing
10163 mode for any register, general purpose registers, floating point
10164 registers, and Altivec registers.
10165 (FIRST_RELOAD_REG_CLASS): Likewise.
10166 (LAST_RELOAD_REG_CLASS): Likewise.
10167 (struct reload_reg_map_type): Likewise.
10168 (reload_reg_map_type): Likewise.
10169 (RELOAD_REG_VALID): Likewise.
10170 (RELOAD_REG_MULTIPLE): Likewise.
10171 (RELOAD_REG_INDEXED): Likewise.
10172 (RELOAD_REG_OFFSET): Likewise.
10173 (RELOAD_REG_PRE_INCDEC): Likewise.
10174 (RELOAD_REG_PRE_MODIFY): Likewise.
10175 (reg_addr): Likewise.
10176 (mode_supports_pre_incdec_p): New helper functions to say whether
10177 a given mode supports PRE_INC, PRE_DEC, and PRE_MODIFY.
10178 (mode_supports_pre_modify_p): Likewise.
10179 (rs6000_debug_vector_unit): Rearrange the -mdebug=reg output to
10180 print the valid address mode bits for each mode.
10181 (rs6000_debug_print_mode): Likewise.
10182 (rs6000_debug_reg_global): Likewise.
10183 (rs6000_setup_reg_addr_masks): New function to set up the address
10184 mask bits for each type.
10185 (rs6000_init_hard_regno_mode_ok): Use memset to clear arrays.
10186 Call rs6000_setup_reg_addr_masks to set up the address mask bits.
10187 (rs6000_legitimate_address_p): Use mode_supports_pre_incdec_p and
10188 mode_supports_pre_modify_p to determine if PRE_INC, PRE_DEC, and
10189 PRE_MODIFY are supported.
10190 (rs6000_output_move_128bit): Change to use {src,dest}_vmx_p for altivec
10191 registers, instead of {src,dest}_av_p.
10192 (rs6000_print_options_internal): Tweak the debug output slightly.
10194 2013-10-17 Uros Bizjak <ubizjak@gmail.com>
10196 * config/i386/sse.md (*vec_widen_smult_even_v8si): Remove
10199 2013-10-17 Andrew MacLeod <amacleod@redhat.com>
10201 * tree-flow.h (struct omp_region): Move to omp-low.c.
10202 Remove omp_ prototypes and variables.
10203 * gimple.h (omp_reduction_init): Move prototype to omp-low.h.
10204 (copy_var_decl): Relocate prototype from tree-flow.h.
10205 * gimple.c (copy_var_decl): Relocate from omp-low.c.
10206 * tree.h: Move prototype to omp-low.h.
10207 * omp-low.h: New File. Relocate prototypes here.
10208 * omp-low.c (struct omp_region): Make local here.
10209 (root_omp_region): Make static.
10210 (copy_var_decl) Move to gimple.c.
10211 (new_omp_region): Make static.
10212 (make_gimple_omp_edges): New. Refactored from tree-cfg.c make_edges.
10213 * tree-cfg.c: Include omp-low.h.
10214 (make_edges): Factor out OMP specific bits to make_gimple_omp_edges.
10215 * gimplify.c: Include omp-low.h.
10216 * tree-parloops.c: Likewise.
10218 2013-10-17 Uros Bizjak <ubizjak@gmail.com>
10220 * config/i386/i386.c (ix86_fixup_binary_operands): When both source
10221 operands are in memory, prefer to force non-matched operand 1 to
10224 2013-10-17 Michael Meissner <meissner@linux.vnet.ibm.com>
10227 * config/rs6000/rs6000.c (rs6000_legitimate_address_p): Only
10228 restrict TImode addresses to single indirect registers if both
10229 -mquad-memory and -mvsx-timode are used.
10230 (rs6000_output_move_128bit): Use quad_load_store_p to determine if
10231 we should emit load/store quad. Remove using %y for quad memory
10234 * config/rs6000/rs6000.md (mov<mode>_ppc64, TI/PTImode): Add
10235 constraints to allow load/store quad on machines where TImode is
10236 not allowed in VSX registers. Use 'n' instead of 'F' constraint
10237 for TImode to load integer constants.
10239 2013-10-17 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
10241 * config/aarch64/aarch64.c (aarch64_print_operand): Handle 'c'.
10243 2013-10-17 Marcus Shawcroft <marcus.shawcroft@arm.com>
10245 * config/aarch64/aarch64.c (aarch64_preferred_reload_class): Adjust
10246 handling of STACK_REG.
10248 2013-10-17 Richard Biener <rguenther@suse.de>
10250 PR tree-optimization/58143
10251 * tree-ssa-loop-im.c (arith_code_with_undefined_signed_overflow):
10253 (rewrite_to_defined_overflow): Likewise.
10254 (move_computations_dom_walker::before_dom): Rewrite stmts
10255 with undefined signed overflow that are not always executed
10256 into unsigned arithmetic.
10258 2013-10-16 Michael Meissner <meissner@linux.vnet.ibm.com>
10261 * config/rs6000/rs6000.opt (rs6000_isa_flags_explicit): Move the
10262 explicit isa flag to be an options variable, instead of using
10263 global_options_set. Remove define from rs6000.h.
10264 * config/rs6000/rs6000.h (rs6000_isa_flags_explicit): Likewise.
10266 * config/rs6000/rs6000.c (rs6000_option_override_internal):
10267 Initialize rs6000_isa_flags_explicit.
10268 (rs6000_function_specific_save): Add gcc_options* parameter, so
10269 that the powerpc builds after the 2013-10-15 changes.
10270 (rs6000_function_specific_restore): Likewise.
10272 2013-10-16 DJ Delorie <dj@redhat.com>
10274 * config/rl78/rl78.c (rl78_alloc_address_registers_macax): Verify
10275 op is a REG before checking REGNO.
10276 (rl78_alloc_physical_registers): Verify pattern is a SET before
10279 2013-10-16 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
10281 * config/rs6000/vector.md (vec_unpacks_hi_v4sf): Correct for
10283 (vec_unpacks_lo_v4sf): Likewise.
10284 (vec_unpacks_float_hi_v4si): Likewise.
10285 (vec_unpacks_float_lo_v4si): Likewise.
10286 (vec_unpacku_float_hi_v4si): Likewise.
10287 (vec_unpacku_float_lo_v4si): Likewise.
10289 2013-10-16 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
10291 * config/rs6000/vsx.md (vsx_concat_<mode>): Adjust output for LE.
10292 (vsx_concat_v2sf): Likewise.
10294 2013-10-16 James Greenhalgh <james.greenhalgh@arm.com>
10296 * config/aarch64/aarch64.md
10297 (*mov<mode>_aarch64): Fix output template for DUP (element) Scalar.
10299 2013-10-16 Andrew MacLeod <amacleod@redhat.com>
10301 PR tree-optimization/58697
10302 * cfgloop.c (get_estimated_loop_iterations_int): Rename from
10303 estimated_loop_iterations_int.
10304 (max_stmt_executions_int): Call get_max_loop_iterations_int.
10305 (get_max_loop_iterations_int): New. HWINT version of
10306 get_max_loop_iterations.
10307 * cfgloop.h: Add prototypes.
10308 * loop-iv.c (find_simple_exit): call get_estimated_loop_iterations_int.
10309 * loop-unroll.c (decide_peel_once_rolling): Call
10310 get_estimated_loop_iterations_int.
10311 * tree-ssa-loop-niter.c (estimated_loop_iterations_int): Add back.
10312 * tree-ssa-loop-niter.h: Tweak prototypes.
10314 2013-10-16 David Malcolm <dmalcolm@redhat.com>
10316 * gengtype-parse.c (struct_field_seq): Ignore access-control
10317 keywords ("public:" etc).
10319 2013-10-16 Marcus Shawcroft <marcus.shawcroft@arm.com>
10321 * config/aarch64/aarch64.c (aarch64_regno_regclass): Classify
10322 FRAME_POINTER_REGNUM and ARG_POINTER_REGNUM as POINTER_REGS.
10324 2013-10-16 Yvan Roux <yvan.roux@linaro.org>
10326 * config/arm/arm.opt (mlra): New option.
10327 * config/arm/arm.c (arm_lra_p): New function.
10328 (TARGET_LRA_P): Define.
10330 2013-10-16 Paulo Matos <pmatos@broadcom.com>
10332 * tree-core.h (tree_code_name): Remove.
10333 * tree.h (get_tree_code_name): New prototype.
10334 * tree.c (tree_code_name): Make static.
10335 (get_tree_code_name): New function.
10336 (dump_tree_statistics, tree_check_failed, tree_not_check_failed,
10337 tree_class_check_failed, tree_range_check_failed,
10338 tree_not_class_check_failed, omp_clause_check_failed,
10339 tree_contains_struct_check_failed, tree_operand_check_failed): Use new
10340 wrapper get_tree_code_name instead of calling tree_code_name directly.
10341 * tree-vrp.c (dump_asserts_for): Likewise.
10342 * tree-dump.c (dequeue_and_dump): Likewise.
10343 * tree-pretty-print.c (do_niy, dump_generic_node): Likewise.
10344 * tree-pretty-print.h (pp_unsupported_tree): Likewise.
10345 * lto-streamer-out.c (lto_write_tree, DFS_write_tree): Likewise.
10346 * tree-ssa-dom.c (print_expr_hash_elt): Likewise.
10347 * gimple-pretty-print.c (dump_unary_rhs, dump_binary_rhs,
10348 dump_ternary_rhs, dump_gimple_assign, dump_gimple_cond,
10349 dump_gimple_omp_for): Likewise.
10350 * tree-vect-data-refs.c (vect_create_data_ref_ptr): Likewise.
10351 * tree-ssa-pre.c (print_pre_expr): Likewise.
10352 * ipa-prop.c (ipa_print_node_jump_functions_for_edge): Likewise.
10353 * print-tree.c (print_node_brief, print_node): Likewise.
10354 * gimple.c (gimple_check_failed): Likewise.
10355 * lto-streamer.c (lto_tag_name, print_lto_report): Likewise.
10356 * config/frv/frv.c (frv_init_cumulative_args): Likewise.
10357 * config/mep/mep.c (mep_validate_vliw): Likewise.
10358 * config/iq2000/iq2000.c (init_cumulative_args): Likewise.
10359 * config/rs6000/rs6000.c (init_cumulative_args): Likewise.
10361 2013-10-16 Ganesh Gopalasubramanian <Ganesh.Gopalasubramanian@amd.com>
10363 * config/i386/i386.c (ix86_option_override_internal): Enable FMA4
10366 2013-10-16 Hans-Peter Nilsson <hp@axis.com>
10368 * config/cris/t-elfmulti (MULTILIB_OPTIONS, MULTILIB_DIRNAMES)
10369 (MULTILIB_MATCHES): Add multilib for -march=v8.
10371 2013-10-15 Sriraman Tallam <tmsriram@google.com>
10374 * optc-save-gen.awk: Add extra parameter to the save and restore
10376 * opth-gen.awk: Generate new TARGET_* macros to accept a parameter.
10377 * tree.c (build_optimization_node): New parameter. Add extra parameter
10378 to call to cl_optimization_save.
10379 (build_target_option_node): New parameter. Add extra parameter
10380 to call to cl_target_option_save.
10381 * tree.h (build_optimization_node): New parameter.
10382 (build_target_option_node): New parameter.
10383 * c-family/c-common.c (handle_optimize_attribute): Fix calls to
10384 build_optimization_node and build_target_option_node.
10385 * c-family/c-pragma.c (handle_pragma_optimize): Ditto.
10386 (handle_pragma_push_options): Ditto.
10387 * toplev.c (process_options): Ditto.
10388 * opts.c (init_options_struct): Check for opts_set non-null.
10389 * target.def (target_option.save): New parameter.
10390 (target_option.restore): New parameter.
10391 * tm.texi: Generate.
10392 * config/i386/i386-c.c (ix86_target_macros_internal): Ditto.
10393 (ix86_pragma_target_parse): Ditto.
10394 * config/i386/i386-protos.h (ix86_valid_target_attribute_tree): New
10396 * config/rs6000/rs6000.c (rs6000_option_override_internal): Fix calls
10397 to build_optimization_node and build_target_option_node.
10398 (rs6000_valid_attribute_p): Ditto.
10399 (rs6000_pragma_target_parse): Ditto.
10400 * config/i386/i386.opt (x_ix86_target_flags_explicit): New TargetSave
10402 * config/i386/i386.h:
10403 TARGET_64BIT_P: New Macro
10404 TARGET_MMX_P: New Macro.
10405 TARGET_3DNOW_P: New Macro.
10406 TARGET_3DNOW_A_P: New Macro.
10407 TARGET_SSE_P: New Macro.
10408 TARGET_SSE2_P: New Macro.
10409 TARGET_SSE3_P: New Macro.
10410 TARGET_SSSE3_P: New Macro.
10411 TARGET_SSE4_1_P: New Macro.
10412 TARGET_SSE4_2_P: New Macro.
10413 TARGET_AVX_P: New Macro.
10414 TARGET_AVX2_P: New Macro.
10415 TARGET_AVX512F_P: New Macro.
10416 TARGET_AVX512PF_P: New Macro.
10417 TARGET_AVX512ER_P: New Macro.
10418 TARGET_AVX512CD_P: New Macro.
10419 TARGET_FMA_P: New Macro.
10420 TARGET_SSE4A_P: New Macro.
10421 TARGET_FMA4_P: New Macro.
10422 TARGET_XOP_P: New Macro.
10423 TARGET_LWP_P: New Macro.
10424 TARGET_ABM_P: New Macro.
10425 TARGET_BMI_P: New Macro.
10426 TARGET_BMI2_P: New Macro.
10427 TARGET_LZCNT_P: New Macro.
10428 TARGET_TBM_P: New Macro.
10429 TARGET_POPCNT_P: New Macro.
10430 TARGET_SAHF_P: New Macro.
10431 TARGET_MOVBE_P: New Macro.
10432 TARGET_CRC32_P: New Macro.
10433 TARGET_AES_P: New Macro.
10434 TARGET_PCLMUL_P: New Macro.
10435 TARGET_CMPXCHG16B_P: New Macro.
10436 TARGET_FSGSBASE_P: New Macro.
10437 TARGET_RDRND_P: New Macro.
10438 TARGET_F16C_P: New Macro.
10439 TARGET_RTM_P: New Macro.
10440 TARGET_HLE_P: New Macro.
10441 TARGET_RDSEED_P: New Macro.
10442 TARGET_PRFCHW_P: New Macro.
10443 TARGET_ADX_P: New Macro.
10444 TARGET_FXSR_P: New Macro.
10445 TARGET_XSAVE_P: New Macro.
10446 TARGET_XSAVEOPT_P: New Macro.
10447 TARGET_LP64_P: New Macro.
10448 TARGET_X32_P: New Macro.
10449 TARGET_FPMATH_DEFAULT_P: New Macro.
10450 TARGET_FLOAT_RETURNS_IN_80387_P: New Macro.
10451 * config/i386/i386.c (ix86_option_override_internal): New parameters.
10453 Change ix86_tune_string to access opts->x_ix86_tune_string.
10454 Change ix86_isa_flags to access opts->x_ix86_isa_flags.
10455 Change ix86_arch_string to access opts->x_ix86_arch_string.
10456 Change ix86_stringop_alg to access opts->x_ix86_stringop_alg.
10457 Change ix86_pmode to access opts->x_ix86_pmode.
10458 Change ix86_abi to access opts->x_ix86_abi.
10459 Change ix86_cmodel to access opts->x_ix86_cmodel.
10460 Change ix86_asm_dialect to access opts->x_ix86_asm_dialect.
10461 Change ix86_isa_flags_explicit to access
10462 opts->x_ix86_isa_flags_explicit.
10463 Change ix86_dump_tunes to access opts->x_ix86_dump_tunes.
10464 Change ix86_regparm to access opts->x_ix86_regparm.
10465 Change ix86_branch_cost to access opts->x_ix86_branch_cost.
10466 Change ix86_preferred_stack_boundary_arg to access
10467 opts->x_ix86_preferred_stack_boundary_arg.
10468 Change ix86_force_align_arg_pointer to access
10469 opts->x_ix86_force_align_arg_pointer.
10470 Change ix86_incoming_stack_boundar_arg to access
10471 opts->x_ix86_incoming_stack_boundar_arg.
10472 Change ix86_fpmath to access opts->x_ix86_fpmath.
10473 Change ix86_veclibabi_type to access opts->x_ix86_veclibabi_type.
10474 Change ix86_recip_name to access opts->x_ix86_recip_name.
10475 Change ix86_stack_protector_guard to access
10476 opts->x_ix86_stack_protector_guard.
10477 Change ix86_tune_memcpy_strategy to access
10478 opts->x_ix86_tune_memcpy_strategy.
10479 Change ix86_tune_memset_strategy to access
10480 opts->x_ix86_tune_memset_strategy.
10481 Change global_options to access opts.
10482 Change global_options_set to access opts_set.
10483 Change TARGET_64BIT to TARGET_64BIT_P (opts->...).
10484 Change TARGET_MMX to TARGET_MMX_P (opts->...).
10485 Change TARGET_3DNOW to TARGET_3DNOW_P (opts->...).
10486 Change TARGET_3DNOW_A to TARGET_3DNOW_A_P (opts->...).
10487 Change TARGET_SSE to TARGET_SSE_P (opts->...).
10488 Change TARGET_SSE2 to TARGET_SSE2_P (opts->...).
10489 Change TARGET_SSE3 to TARGET_SSE3_P (opts->...).
10490 Change TARGET_SSSE3 to TARGET_SSSE3_P (opts->...).
10491 Change TARGET_SSE4_1 to TARGET_SSE4_1_P (opts->...).
10492 Change TARGET_SSE4_2 to TARGET_SSE4_2_P (opts->...).
10493 Change TARGET_AVX to TARGET_AVX_P (opts->...).
10494 Change TARGET_AVX2 to TARGET_AVX2_P (opts->...).
10495 Change TARGET_AVX512F to TARGET_AVX512F_P (opts->...).
10496 Change TARGET_AVX512PF to TARGET_AVX512PF_P (opts->...).
10497 Change TARGET_AVX512ER to TARGET_AVX512ER_P (opts->...).
10498 Change TARGET_AVX512CD to TARGET_AVX512CD_P (opts->...).
10499 Change TARGET_FMA to TARGET_FMA_P (opts->...).
10500 Change TARGET_SSE4A to TARGET_SSE4A_P (opts->...).
10501 Change TARGET_FMA4 to TARGET_FMA4_P (opts->...).
10502 Change TARGET_XOP to TARGET_XOP_P (opts->...).
10503 Change TARGET_LWP to TARGET_LWP_P (opts->...).
10504 Change TARGET_ABM to TARGET_ABM_P (opts->...).
10505 Change TARGET_BMI to TARGET_BMI_P (opts->...).
10506 Change TARGET_BMI2 to TARGET_BMI2_P (opts->...).
10507 Change TARGET_LZCNT to TARGET_LZCNT_P (opts->...).
10508 Change TARGET_TBM to TARGET_TBM_P (opts->...).
10509 Change TARGET_POPCNT to TARGET_POPCNT_P (opts->...).
10510 Change TARGET_SAHF to TARGET_SAHF_P (opts->...).
10511 Change TARGET_MOVBE to TARGET_MOVBE_P (opts->...).
10512 Change TARGET_CRC32 to TARGET_CRC32_P (opts->...).
10513 Change TARGET_AES to TARGET_AES_P (opts->...).
10514 Change TARGET_PCLMUL to TARGET_PCLMUL_P (opts->...).
10515 Change TARGET_CMPXCHG16B to TARGET_CMPXCHG16B_P (opts->...).
10516 Change TARGET_FSGSBASE to TARGET_FSGSBASE_P (opts->...).
10517 Change TARGET_RDRND to TARGET_RDRND_P (opts->...).
10518 Change TARGET_F16C to TARGET_F16C_P (opts->...).
10519 Change TARGET_RTM to TARGET_RTM_P (opts->...).
10520 Change TARGET_HLE to TARGET_HLE_P (opts->...).
10521 Change TARGET_RDSEED to TARGET_RDSEED_P (opts->...).
10522 Change TARGET_PRFCHW to TARGET_PRFCHW_P (opts->...).
10523 Change TARGET_ADX to TARGET_ADX_P (opts->...).
10524 Change TARGET_FXSR to TARGET_FXSR_P (opts->...).
10525 Change TARGET_XSAVE to TARGET_XSAVE_P (opts->...).
10526 Change TARGET_XSAVEOPT to TARGET_XSAVEOPT_P (opts->...).
10527 Change TARGET_LP64 to TARGET_LP64_P (opts->...).
10528 Change TARGET_X32 to TARGET_X32_P (opts->...).
10529 Change TARGET_FPMATH_DEFAULT to TARGET_FPMATH_DEFAULT_P (opts->...).
10530 Change TARGET_FLOAT_RETURNS_IN_80387 to
10531 TARGET_FLOAT_RETURNS_IN_80387_P (opts->...).
10532 (ix86_function_specific_save): New parameter. Use opts-> fields
10533 to replace global fields.
10534 (ix86_function_specific_restore): Ditto.
10535 (ix86_valid_target_attribute_inner_p): New parameters.
10536 Fix recursive call.
10537 Fix call to ix86_handle_option and set_option.
10538 (ix86_valid_target_attribute_tree): New parameters.
10539 Change global_options to access opts.
10540 Change global_options_set to access opts_set.
10541 Fix call to ix86_valid_target_attribute_inner_p.
10542 Change ix86_tune_string to access opts->x_ix86_tune_string.
10543 Change ix86_arch_string to access opts->x_ix86_arch_string.
10544 Change ix86_fpmath to access opts->x_ix86_fpmath
10545 Fix call to ix86_option_override_internal.
10546 Fix call to ix86_add_new_builtins.
10547 Fix calls to build_optimization_node and build_target_option_node.
10548 (ix86_valid_target_attribute_p): Remove access to global_options.
10549 Use new gcc_options structure func_options.
10550 Fix call to ix86_valid_target_attribute_tree.
10551 Fix call to build_optimization_node.
10552 (get_builtin_code_for_version): Fix call to
10553 ix86_valid_target_attribute_tree.
10555 2013-10-15 David Malcolm <dmalcolm@redhat.com>
10557 * Makefile.in (PICFLAG): New.
10558 (enable_host_shared): New.
10559 (INTERNAL_CFLAGS): Use PICFLAG.
10560 (LIBIBERTY): Use pic build of libiberty.a if configured with
10561 --enable-host-shared.
10562 * configure.ac: Add --enable-host-shared, setting up new
10564 * configure: Regenerate.
10565 * doc/install.texi (--enable-shared): Add note contrasting it with ...
10566 (--enable-host-shared): New option.
10568 2013-10-15 Richard Biener <rguenther@suse.de>
10570 * tree-tailcall.c (find_tail_calls): Don't use tail-call recursion
10571 for built-in functions.
10573 2013-10-15 Zhenqiang Chen <zhenqiang.chen@arm.com>
10575 * tree-ssa-reassoc.c: Include rtl.h and tm_p.h.
10576 (optimize_range_tests_1): New function,
10577 extracted from optimize_range_tests.
10578 (optimize_range_tests_xor): Similarly.
10579 (optimize_range_tests_diff): New function.
10580 (optimize_range_tests): Use optimize_range_tests_1.
10582 2013-10-15 Cong Hou <congh@google.com>
10584 * tree-vect-loop.c (vect_is_simple_reduction_1): Relax the
10585 requirement of the reduction pattern so that one operand of the
10586 reduction operation can come from outside of the loop.
10588 2013-10-15 James Greenhalgh <james.greenhalgh@arm.com>
10590 * config/arm/neon-schedgen.ml: Remove.
10591 * config/arm/cortex-a9-neon.md: Remove comment regarding
10594 2013-10-15 James Greenhalgh <james.greenhalgh@arm.com>
10596 * config/arm/types: Remove old neon types.
10598 2013-10-15 James Greenhalgh <james.greenhalgh@arm.com>
10600 * config/arm/cortex-a7.md
10601 (cortex_a7_neon_type): New.
10602 (cortex_a7_neon_mul): Update for new types.
10603 (cortex_a7_neon_mla): Likewise.
10604 (cortex_a7_neon): Likewise.
10606 2013-10-15 James Greenhalgh <james.greenhalgh@arm.com>
10608 * config/arm/cortex-a15-neon.md
10609 (cortex_a15_neon_type): New,
10611 (cortex_a15_neon_int_1): Remove.
10612 (cortex_a15_neon_int_2): Likewise.
10613 (cortex_a15_neon_int_3): Likewise.
10614 (cortex_a15_neon_int_4): Likewise.
10615 (cortex_a15_neon_int_5): Likewise.
10616 (cortex_a15_neon_vqneg_vqabs): Likewise.
10617 (cortex_a15_neon_vmov): Likewise.
10618 (cortex_a15_neon_vaba): Likewise.
10619 (cortex_a15_neon_vaba_qqq): Likewise.
10620 (cortex_a15_neon_mul_ddd_8_16_qdd_16_8_long_32_16_long): Likewise.
10621 (cortex_a15_neon_mul_qqq_8_16_32_ddd_32): Likewise.
10622 (cortex_a15_neon_mul_qdd_64_32_long_qqd_16_ddd_32_scalar_64_32_long_scalar):
10624 (cortex_a15_neon_mla_ddd_8_16_qdd_16_8_long_32_16_long): Likewise.
10625 (cortex_a15_neon_mla_qqq_8_16): Likewise.
10626 (cortex_a15_neon_mla_ddd_32_qqd_16_ddd_32_scalar): Likewise.
10627 (cortex_a15_neon_mla_qqq_32_qqd_32_scalar): Likewise.
10628 (cortex_a15_neon_mul_ddd_16_scalar_32_16_long_scalar): Likewise.
10629 (cortex_a15_neon_mul_qqd_32_scalar): Likewise.
10630 (cortex_a15_neon_mla_ddd_16_scalar_qdd_32_16_long_scalar): Likewise.
10631 (cortex_a15_neon_shift_1): Likewise.
10632 (cortex_a15_neon_shift_2): Likewise.
10633 (cortex_a15_neon_shift_3): Likewise.
10634 (cortex_a15_neon_vshl_ddd): Likewise.
10635 (cortex_a15_neon_vqshl_vrshl_vqrshl_qqq): Likewise.
10636 (cortex_a15_neon_vsra_vrsra): Likewise.
10637 (cortex_a15_neon_fp_vmla_ddd_scalar): Likewise.
10638 (cortex_a15_neon_fp_vmla_qqq_scalar): Likewise.
10639 (cortex_a15_neon_bp_3cycle): Likewise.
10640 (cortex_a15_neon_ldm_2): Likewise.
10641 (cortex_a15_neon_stm_2): Likewise.
10642 (cortex_a15_neon_mcr): Likewise.
10643 (cortex_a15_neon_mrc): Likewise.
10644 (cortex_a15_neon_fp_vadd_ddd_vabs_dd): Likewise.
10645 (cortex_a15_neon_fp_vadd_qqq_vabs_qq): Likewise.
10646 (cortex_a15_neon_fp_vmul_ddd): Likewise.
10647 (cortex_a15_neon_fp_vmul_qqd): Likewise.
10648 (cortex_a15_neon_fp_vmla_ddd): Likewise.
10649 (cortex_a15_neon_fp_vmla_qqq): Likewise.
10650 (cortex_a15_neon_fp_vmla_ddd_scalar): Likewise.
10651 (cortex_a15_neon_fp_vmla_qqq_scalar): Likewise.
10652 (cortex_a15_neon_fp_vrecps_vrsqrts_ddd): Likewise.
10653 (cortex_a15_neon_fp_vrecps_vrsqrts_qqq): Likewise.
10654 (cortex_a15_neon_bp_simple): Likewise.
10655 (cortex_a15_neon_bp_2cycle): Likewise.
10656 (cortex_a15_neon_bp_3cycle): Likewise.
10657 (cortex_a15_neon_vld1_1_2_regs): Likewise.
10658 (cortex_a15_neon_vld1_3_4_regs): Likewise.
10659 (cortex_a15_neon_vld2_2_regs_vld1_vld2_all_lanes): Likewise.
10660 (cortex_a15_neon_vld2_4_regs): Likewise.
10661 (cortex_a15_neon_vld3_vld4): Likewise.
10662 (cortex_a15_neon_vst1_1_2_regs_vst2_2_regs): Likewise.
10663 (cortex_a15_neon_vst1_3_4_regs): Likewise.
10664 (cortex_a15_neon_vst2_4_regs_vst3_vst4): Rename to...
10665 (cortex_a15_neon_vst2_4_regs_vst3): ...This, update for new attributes.
10666 (cortex_a15_neon_vst3_vst4): Rename to...
10667 (cortex_a15_neon_vst4): This, update for new attributes.
10668 (cortex_a15_neon_vld1_vld2_lane): Update for new attributes.
10669 (cortex_a15_neon_vld3_vld4_lane): Likewise.
10670 (cortex_a15_neon_vst1_vst2_lane): Likewise.
10671 (cortex_a15_neon_vst3_vst4_lane): Likewise.
10672 (cortex_a15_neon_vld3_vld4_all_lanes): Likewise.
10673 (cortex_a15_neon_ldm_2): Likewise.
10674 (cortex_a15_neon_stm_2): Likewise.
10675 (cortex_a15_neon_mcr): Likewise.
10676 (cortex_a15_neon_mcr_2_mcrr): Likewise.
10677 (cortex_a15_neon_mrc): Likewise.
10678 (cortex_a15_neon_mrrc): Likewise.
10680 (cortex_a15_neon_abd): New.
10681 (cortex_a15_neon_abd_q): Likewise.
10682 (cortex_a15_neon_aba): Likewise.
10683 (cortex_a15_neon_aba_q): Likewise.
10684 (cortex_a15_neon_acc): Likewise.
10685 (cortex_a15_neon_acc_q): Likewise.
10686 (cortex_a15_neon_arith_basic): Likewise.
10687 (cortex_a15_neon_arith_complex): Likewise.
10688 (cortex_a15_neon_multiply): Likewise.
10689 (cortex_a15_neon_multiply_q): Likewise.
10690 (cortex_a15_neon_mla): Likewise.
10691 (cortex_a15_neon_mla_q): Likewise.
10692 (cortex_a15_neon_sat_mla_long): Likewise.
10693 (cortex_a15_neon_shift_acc): Likewise.
10694 (cortex_a15_neon_shift_imm_basic): Likewise.
10695 (cortex_a15_neon_shift_imm_complex): Likewise.
10696 (cortex_a15_neon_shift_reg_basic): Likewise.
10697 (cortex_a15_neon_shift_reg_basic_q): Likewise.
10698 (cortex_a15_neon_shift_reg_complex): Likewise.
10699 (cortex_a15_neon_shift_reg_complex_q): Likewise.
10700 (cortex_a15_neon_fp_negabs): Likewise
10701 (cortex_a15_neon_fp_arith): Likewise
10702 (cortex_a15_neon_fp_arith_q): Likewise
10703 (cortex_a15_neon_fp_cvt_int): Likewise
10704 (cortex_a15_neon_fp_cvt_int_q): Likewise
10705 (cortex_a15_neon_fp_cvt_16): Likewise
10706 (cortex_a15_neon_fp_mul): Likewise
10707 (cortex_a15_neon_fp_mul_q): Likewise
10708 (cortex_a15_neon_fp_mla): Likewise
10709 (cortex_a15_neon_fp_mla_q): Likewise
10710 (cortex_a15_neon_fp_recps_rsqrte): Likewise.
10711 (cortex_a15_neon_fp_recps_rsqrte_q): Likewise.
10712 (cortex_a15_neon_bitops): Likewise.
10713 (cortex_a15_neon_bitops_q): Likewise.
10714 (cortex_a15_neon_from_gp): Likewise.
10715 (cortex_a15_neon_from_gp_q): Likewise.
10716 (cortex_a15_neon_tbl3_tbl4): Likewise.
10717 (cortex_a15_neon_zip_q): Likewise.
10718 (cortex_a15_neon_to_gp): Likewise.
10719 (cortex_a15_neon_load_a): Likewise.
10720 (cortex_a15_neon_load_b): Likewise.
10721 (cortex_a15_neon_load_c): Likewise.
10722 (cortex_a15_neon_load_d): Likewise.
10723 (cortex_a15_neon_load_e): Likewise.
10724 (cortex_a15_neon_load_f): Likewise.
10725 (cortex_a15_neon_store_a): Likewise.
10726 (cortex_a15_neon_store_b): Likewise.
10727 (cortex_a15_neon_store_c): Likewise.
10728 (cortex_a15_neon_store_d): Likewise.
10729 (cortex_a15_neon_store_e): Likewise.
10730 (cortex_a15_neon_store_f): Likewise.
10731 (cortex_a15_neon_store_g): Likewise.
10732 (cortex_a15_neon_store_h): Likewise.
10733 (cortex_a15_vfp_to_from_gp): Likewise.
10735 2013-10-15 James Greenhalgh <james.greenhalgh@arm.com>
10737 * config/arm/cortex-a9-neon.md (cortex_a9_neon_type): New.
10739 (cortex_a9_neon_vshl_ddd): Remove.
10740 (cortex_a9_neon_vst3_vst4): Likewise.
10741 (cortex_a9_neon_vld3_vld4_all_lanes): Likewise.
10743 (cortex_a9_neon_bit_ops_q): New.
10745 (cortex_a9_neon_int_1): Use cortex_a8_neon_type.
10746 (cortex_a9_neon_int_2): Likewise.
10747 (cortex_a9_neon_int_3): Likewise.
10748 (cortex_a9_neon_int_4): Likewise.
10749 (cortex_a9_neon_int_5): Likewise.
10750 (cortex_a9_neon_vqneg_vqabs): Likewise.
10751 (cortex_a9_neon_vmov): Likewise.
10752 (cortex_a9_neon_vaba): Likewise.
10753 (cortex_a9_neon_vaba_qqq): Likewise.
10754 (cortex_a9_neon_shift_1): Likewise.
10755 (cortex_a9_neon_shift_2): Likewise.
10756 (cortex_a9_neon_shift_3): Likewise.
10757 (cortex_a9_neon_vqshl_vrshl_vqrshl_qqq): Likewise.
10758 (cortex_a9_neon_vsra_vrsra): Likewise.
10759 (cortex_a9_neon_mul_ddd_8_16_qdd_16_8_long_32_16_long): Likewise.
10760 (cortex_a9_neon_mul_qqq_8_16_32_ddd_32): Likewise.
10761 (cortex_a9_neon_mul_qdd_64_32_long_qqd_16_ddd_32_scalar_64_32_long_scalar):
10763 (cortex_a9_neon_mla_ddd_8_16_qdd_16_8_long_32_16_long): Likewise.
10764 (cortex_a9_neon_mla_qqq_8_16): Likewise.
10765 (cortex_a9_neon_mla_ddd_32_qqd_16_ddd_32_scalar_qdd_64_32_long_scalar_qdd_64_32_long):
10767 (cortex_a9_neon_mla_qqq_32_qqd_32_scalar): Likewise.
10768 (cortex_a9_neon_mul_ddd_16_scalar_32_16_long_scalar): Likewise.
10769 (cortex_a9_neon_mul_qqd_32_scalar): Likewise.
10770 (cortex_a9_neon_mla_ddd_16_scalar_qdd_32_16_long_scalar): Likewise.
10771 (cortex_a9_neon_fp_vadd_ddd_vabs_dd): Likewise.
10772 (cortex_a9_neon_fp_vadd_qqq_vabs_qq): Likewise.
10773 (cortex_a9_neon_fp_vsum): Likewise.
10774 (cortex_a9_neon_fp_vmul_ddd): Likewise.
10775 (cortex_a9_neon_fp_vmul_qqd): Likewise.
10776 (cortex_a9_neon_fp_vmla_ddd): Likewise.
10777 (cortex_a9_neon_fp_vmla_qqq): Likewise.
10778 (cortex_a9_neon_fp_vmla_ddd_scalar): Likewise.
10779 (cortex_a9_neon_fp_vmla_qqq_scalar): Likewise.
10780 (cortex_a9_neon_fp_vrecps_vrsqrts_ddd): Likewise.
10781 (cortex_a9_neon_fp_vrecps_vrsqrts_qqq): Likewise.
10782 (cortex_a9_neon_bp_simple): Likewise.
10783 (cortex_a9_neon_bp_2cycle): Likewise.
10784 (cortex_a9_neon_bp_3cycle): Likewise.
10785 (cortex_a9_neon_ldr): Likewise.
10786 (cortex_a9_neon_str): Likewise.
10787 (cortex_a9_neon_vld1_1_2_regs): Likewise.
10788 (cortex_a9_neon_vld1_3_4_regs): Likewise.
10789 (cortex_a9_neon_vld2_2_regs_vld1_vld2_all_lanes): Likewise.
10790 (cortex_a9_neon_vld2_4_regs): Likewise.
10791 (cortex_a9_neon_vld3_vld4): Likewise.
10792 (cortex_a9_neon_vld1_vld2_lane): Likewise.
10793 (cortex_a9_neon_vld3_vld4_lane): Likewise.
10794 (cortex_a9_neon_vld3_vld4_all_lanes): Likewise.
10795 (cortex_a9_neon_vst1_1_2_regs_vst2_2_regs): Likewise.
10796 (cortex_a9_neon_vst1_3_4_regs): Likewise.
10797 (cortex_a9_neon_vst2_4_regs_vst3_vst4): Likewise.
10798 (cortex_a9_neon_vst1_vst2_lane): Likewise.
10799 (cortex_a9_neon_vst3_vst4_lane): Likewise.
10800 (cortex_a9_neon_mcr): Likewise.
10801 (cortex_a9_neon_mcr_2_mcrr): Likewise.
10802 (cortex_a9_neon_mrc): Likewise.
10803 (cortex_a9_neon_mrrc): Likewise.
10805 2013-10-15 James Greenhalgh <james.greenhalgh@arm.com>
10807 * config/arm/cortex-a8-neon.md (cortex_a8_neon_type): New.
10809 (cortex_a8_neon_vshl_ddd): Remove.
10810 (cortex_a8_neon_vst3_vst4): Likewise.
10811 (cortex_a8_neon_vld3_vld4_all_lanes): Likewise.
10813 (cortex_a8_neon_bit_ops_q): New.
10815 (cortex_a8_neon_int_1): Use cortex_a8_neon_type.
10816 (cortex_a8_neon_int_2): Likewise..
10817 (cortex_a8_neon_int_3): Likewise.
10818 (cortex_a8_neon_int_5): Likewise.
10819 (cortex_a8_neon_vqneg_vqabs): Likewise.
10820 (cortex_a8_neon_int_4): Likewise.
10821 (cortex_a8_neon_vaba): Likewise.
10822 (cortex_a8_neon_vaba_qqq): Likewise.
10823 (cortex_a8_neon_shift_1): Likewise.
10824 (cortex_a8_neon_shift_2): Likewise.
10825 (cortex_a8_neon_shift_3): Likewise.
10826 (cortex_a8_neon_vqshl_vrshl_vqrshl_qqq): Likewise.
10827 (cortex_a8_neon_vsra_vrsra): Likewise.
10828 (cortex_a8_neon_mul_ddd_8_16_qdd_16_8_long_32_16_long): Likewise.
10829 (cortex_a8_neon_mul_qqq_8_16_32_ddd_32): Likewise.
10830 (cortex_a8_neon_mul_qdd_64_32_long_qqd_16_ddd_32_scalar_64_32_long_scalar):
10832 (cortex_a8_neon_mla_ddd_8_16_qdd_16_8_long_32_16_long): Likewise.
10833 (cortex_a8_neon_mla_qqq_8_16): Likewise.
10834 (cortex_a8_neon_mla_ddd_32_qqd_16_ddd_32_scalar_qdd_64_32_long_scalar_qdd_64_32_long):
10836 (cortex_a8_neon_mla_qqq_32_qqd_32_scalar): Likewise.
10837 (cortex_a8_neon_mul_ddd_16_scalar_32_16_long_scalar): Likewise.
10838 (cortex_a8_neon_mul_qqd_32_scalar): Likewise.
10839 (cortex_a8_neon_mla_ddd_16_scalar_qdd_32_16_long_scalar): Likewise.
10840 (cortex_a8_neon_fp_vadd_ddd_vabs_dd): Likewise.
10841 (cortex_a8_neon_fp_vadd_qqq_vabs_qq): Likewise.
10842 (cortex_a8_neon_fp_vsum): Likewise.
10843 (cortex_a8_neon_fp_vmul_ddd): Likewise.
10844 (cortex_a8_neon_fp_vmul_qqd): Likewise.
10845 (cortex_a8_neon_fp_vmla_ddd): Likewise.
10846 (cortex_a8_neon_fp_vmla_qqq): Likewise.
10847 (cortex_a8_neon_fp_vmla_ddd_scalar): Likewise.
10848 (cortex_a8_neon_fp_vmla_qqq_scalar): Likewise.
10849 (cortex_a8_neon_fp_vrecps_vrsqrts_ddd): Likewise.
10850 (cortex_a8_neon_fp_vrecps_vrsqrts_qqq): Likewise.
10851 (cortex_a8_neon_bp_simple): Likewise.
10852 (cortex_a8_neon_bp_2cycle): Likewise.
10853 (cortex_a8_neon_bp_3cycle): Likewise.
10854 (cortex_a8_neon_ldr): Likewise.
10855 (cortex_a8_neon_str): Likewise.
10856 (cortex_a8_neon_vld1_1_2_regs): Likewise.
10857 (cortex_a8_neon_vld1_3_4_regs): Likewise.
10858 (cortex_a8_neon_vld2_2_regs_vld1_vld2_all_lanes): Likewise.
10859 (cortex_a8_neon_vld2_4_regs): Likewise.
10860 (cortex_a8_neon_vld3_vld4): Likewise.
10861 (cortex_a8_neon_vld1_vld2_lane): Likewise.
10862 (cortex_a8_neon_vld3_vld4_lane): Likewise.
10863 (cortex_a8_neon_vst1_1_2_regs_vst2_2_regs): Likewise.
10864 (cortex_a8_neon_vst1_3_4_regs): Likewise.
10865 (cortex_a8_neon_vst2_4_regs_vst3_vst4): Likewise.
10866 (cortex_a8_neon_vst1_vst2_lane): Likewise.
10867 (cortex_a8_neon_vst3_vst4_lane): Likewise.
10868 (cortex_a8_neon_mcr): Likewise.
10869 (cortex_a8_neon_mcr_2_mcrr): Likewise.
10870 (cortex_a8_neon_mrc): Likewise.
10871 (cortex_a8_neon_mrrc): Likewise.
10873 2013-10-15 James Greenhalgh <james.greenhalgh@arm.com>
10875 * config/aarch64/iterators.md (Vetype): Add SF and DF modes.
10877 * config/aarch64/aarch64-simd.md (neon_type): Remove.
10878 (aarch64_simd_dup<mode>): Add "type" attribute.
10879 (aarch64_dup_lane<mode>): Likewise.
10880 (aarch64_dup_lane_<vswap_width_name><mode>): Likewise.
10881 (*aarch64_simd_mov<mode>): Likewise.
10882 (aarch64_simd_mov_from_<mode>low): Likewise.
10883 (aarch64_simd_mov_from_<mode>high): Likewise.
10884 (orn<mode>3): Likewise.
10885 (bic<mode>3): Likewise.
10886 (add<mode>3): Likewise.
10887 (sub<mode>3): Likewise.
10888 (mul<mode>3): Likewise.
10889 (*aarch64_mul3_elt<mode>): Likewise.
10890 (*aarch64_mul3_elt_<vswap_width_name><mode>): Likewise.
10891 (*aarch64_mul3_elt_to_128df): Likewise.
10892 (*aarch64_mul3_elt_to_64v2df): Likewise.
10893 (neg<mode>2): Likewise.
10894 (abs<mode>2): Likewise.
10895 (abd<mode>_3): Likewise.
10896 (aba<mode>_3): Likewise.
10897 (fabd<mode>_3): Likewise.
10898 (*fabd_scalar<mode>3): Likewise.
10899 (and<mode>3): Likewise.
10900 (ior<mode>3): Likewise.
10901 (xor<mode>3): Likewise.
10902 (one_cmpl<mode>2): Likewise.
10903 (aarch64_simd_vec_set<mode>): Likewise.
10904 (aarch64_simd_lshr<mode>): Likewise.
10905 (aarch64_simd_ashr<mode>): Likewise.
10906 (aarch64_simd_imm_shl<mode>): Likewise.
10907 (aarch64_simd_reg_sshl<mode): Likewise.
10908 (aarch64_simd_reg_shl<mode>_unsigned): Likewise.
10909 (aarch64_simd_reg_shl<mode>_signed): Likewise.
10910 (aarch64_simd_vec_setv2di): Likewise.
10911 (aarch64_simd_vec_set<mode>): Likewise.
10912 (aarch64_mla<mode>): Likewise.
10913 (*aarch64_mla_elt<mode>): Likewise.
10914 (*aarch64_mla_elt_<vswap_width_name><mode>): Likewise.
10915 (aarch64_mls<mode>): Likewise.
10916 (*aarch64_mls_elt<mode>): Likewise.
10917 (*aarch64_mls_elt_<vswap_width_name><mode>): Likewise.
10918 (<su><maxmin><mode>3): Likewise.
10919 (move_lo_quad_<mode>): Likewise.
10920 (aarch64_simd_move_hi_quad_<mode>): Likewise.
10921 (aarch64_simd_vec_pack_trunc_<mode>): Likewise.
10922 (vec_pack_trunc_<mode>): Likewise.
10923 (aarch64_simd_vec_unpack<su>_lo_<mode>): Likewise.
10924 (aarch64_simd_vec_unpack<su>_hi_<mode>): Likewise.
10925 (*aarch64_<su>mlal_lo<mode>): Likewise.
10926 (*aarch64_<su>mlal_hi<mode>): Likewise.
10927 (*aarch64_<su>mlsl_lo<mode>): Likewise.
10928 (*aarch64_<su>mlsl_hi<mode>): Likewise.
10929 (*aarch64_<su>mlal<mode>): Likewise.
10930 (*aarch64_<su>mlsl<mode>): Likewise.
10931 (aarch64_simd_vec_<su>mult_lo_<mode>): Likewise.
10932 (aarch64_simd_vec_<su>mult_hi_<mode>): Likewise.
10933 (add<mode>3): Likewise.
10934 (sub<mode>3): Likewise.
10935 (mul<mode>3): Likewise.
10936 (div<mode>3): Likewise.
10937 (neg<mode>2): Likewise.
10938 (abs<mode>2): Likewise.
10939 (fma<mode>4): Likewise.
10940 (*aarch64_fma4_elt<mode>): Likewise.
10941 (*aarch64_fma4_elt_<vswap_width_name><mode>): Likewise.
10942 (*aarch64_fma4_elt_to_128df): Likewise.
10943 (*aarch64_fma4_elt_to_64v2df): Likewise.
10944 (fnma<mode>4): Likewise.
10945 (*aarch64_fnma4_elt<mode>): Likewise.
10946 (*aarch64_fnma4_elt_<vswap_width_name><mode>
10947 (*aarch64_fnma4_elt_to_128df): Likewise.
10948 (*aarch64_fnma4_elt_to_64v2df): Likewise.
10949 (<frint_pattern><mode>2): Likewise.
10950 (l<fcvt_pattern><su_optab><VDQF:mode><fcvt_target>2): Likewise.
10951 (<optab><fcvt_target><VDQF:VDQF:mode>2): Likewise.
10952 (vec_unpacks_lo_v4sf): Likewise.
10953 (aarch64_float_extend_lo_v2df): Likewise.
10954 (vec_unpacks_hi_v4sf): Likewise.
10955 (aarch64_float_truncate_lo_v2sf): Likewise.
10956 (aarch64_float_truncate_hi_v4sf): Likewise.
10957 (aarch64_vmls<mode>): Likewise.
10958 (<su><maxmin><mode>3): Likewise.
10959 (<maxmin_uns><mode>3): Likewise.
10960 (reduc_<sur>plus_<mode>): Likewise.
10961 (reduc_<sur>plus_v2di): Likewise.
10962 (reduc_<sur>plus_v2si): Likewise.
10963 (reduc_<sur>plus_<mode>): Likewise.
10964 (aarch64_addpv4sf): Likewise.
10965 (clz<mode>2): Likewise.
10966 (reduc_<maxmin_uns>_<mode>): Likewise.
10967 (reduc_<maxmin_uns>_v2di): Likewise.
10968 (reduc_<maxmin_uns>_v2si): Likewise.
10969 (reduc_<maxmin_uns>_<mode>): Likewise.
10970 (reduc_<maxmin_uns>_v4sf): Likewise.
10971 (aarch64_simd_bsl<mode>_internal): Likewise.
10972 (*aarch64_get_lane_extend<GPI:mode><VDQQH:mode>): Likewise.
10973 (*aarch64_get_lane_zero_extendsi<mode>): Likewise.
10974 (aarch64_get_lane<mode>): Likewise.
10975 (*aarch64_combinez<mode>): Likewise.
10976 (aarch64_combine<mode>): Likewise.
10977 (aarch64_simd_combine<mode>): Likewise.
10978 (aarch64_<ANY_EXTEND:su><ADDSUB:optab>l<mode>_hi_internal): Likewise.
10979 (aarch64_<ANY_EXTEND:su><ADDSUB:optab>l<mode>_lo_internal): Likewise.
10980 (aarch64_<ANY_EXTEND:su><ADDSUB:optab>l<mode>): Likewise.
10981 (aarch64_<ANY_EXTEND:su><ADDSUB:optab>w<mode>): Likewise.
10982 (aarch64_<ANY_EXTEND:su><ADDSUB:optab>w2<mode>_internal): Likewise.
10983 (aarch64_<sur>h<addsub><mode>): Likewise.
10984 (aarch64_<sur><addsub>hn<mode>): Likewise.
10985 (aarch64_<sur><addsub>hn2<mode>): Likewise.
10986 (aarch64_pmul<mode>): Likewise.
10987 (aarch64_<su_optab><optab><mode>): Likewise.
10988 (aarch64_<sur>qadd<mode>): Likewise.
10989 (aarch64_sqmovun<mode>): Likewise.
10990 (aarch64_<sur>qmovn<mode>): Likewise.
10991 (aarch64_s<optab><mode>): Likewise.
10992 (aarch64_sq<r>dmulh<mode>): Likewise.
10993 (aarch64_sq<r>dmulh_lane<mode>): Likewise.
10994 (aarch64_sq<r>dmulh_laneq<mode>): Likewise.
10995 (aarch64_sq<r>dmulh_lane<mode>): Likewise.
10996 (aarch64_sqdml<SBINQOPS:as>l<mode>): Likewise.
10997 (aarch64_sqdml<SBINQOPS:as>l_lane<mode>_internal): Likewise.
10998 (aarch64_sqdml<SBINQOPS:as>l_lane<mode>_internal): Likewise.
10999 (aarch64_sqdml<SBINQOPS:as>l_n<mode>): Likewise.
11000 (aarch64_sqdml<SBINQOPS:as>l2<mode>_internal): Likewise.
11001 (aarch64_sqdml<SBINQOPS:as>l2_lane<mode>_internal): Likewise.
11002 (aarch64_sqdml<SBINQOPS:as>l2_n<mode>_internal): Likewise.
11003 (aarch64_sqdmull<mode>): Likewise.
11004 (aarch64_sqdmull_lane<mode>_internal): Likewise.
11005 (aarch64_sqdmull_n<mode>): Likewise.
11006 (aarch64_sqdmull2<mode>_internal): Likewise.
11007 (aarch64_sqdmull2_lane<mode>_internal): Likewise.
11008 (aarch64_sqdmull2_n<mode>_internal): Likewise.
11009 (aarch64_<sur>shl<mode>): Likewise.
11010 (aarch64_<sur>q<r>shl<mode>
11011 (aarch64_<sur>shll_n<mode>): Likewise.
11012 (aarch64_<sur>shll2_n<mode>): Likewise.
11013 (aarch64_<sur>shr_n<mode>): Likewise.
11014 (aarch64_<sur>sra_n<mode>): Likewise.
11015 (aarch64_<sur>s<lr>i_n<mode>): Likewise.
11016 (aarch64_<sur>qshl<u>_n<mode>): Likewise.
11017 (aarch64_<sur>q<r>shr<u>n_n<mode>): Likewise.
11018 (aarch64_cm<optab><mode>): Likewise.
11019 (aarch64_cm<optab>di): Likewise.
11020 (aarch64_cm<optab><mode>): Likewise.
11021 (aarch64_cm<optab>di): Likewise.
11022 (aarch64_cmtst<mode>): Likewise.
11023 (aarch64_cmtstdi): Likewise.
11024 (aarch64_cm<optab><mode>): Likewise.
11025 (*aarch64_fac<optab><mode>): Likewise.
11026 (aarch64_addp<mode>): Likewise.
11027 (aarch64_addpdi): Likewise.
11028 (sqrt<mode>2): Likewise.
11029 (vec_load_lanesoi<mode>): Likewise.
11030 (vec_store_lanesoi<mode>): Likewise.
11031 (vec_load_lanesci<mode>): Likewise.
11032 (vec_store_lanesci<mode>): Likewise.
11033 (vec_load_lanesxi<mode>): Likewise.
11034 (vec_store_lanesxi<mode>): Likewise.
11035 (*aarch64_mov<mode>): Likewise.
11036 (aarch64_ld2<mode>_dreg): Likewise.
11037 (aarch64_ld2<mode>_dreg): Likewise.
11038 (aarch64_ld3<mode>_dreg): Likewise.
11039 (aarch64_ld3<mode>_dreg): Likewise.
11040 (aarch64_ld4<mode>_dreg): Likewise.
11041 (aarch64_ld4<mode>_dreg): Likewise.
11042 (aarch64_tbl1<mode>): Likewise.
11043 (aarch64_tbl2v16qi): Likewise.
11044 (aarch64_combinev16qi): Likewise.
11045 (aarch64_<PERMUTE:perm_insn><PERMUTE:perm_hilo><mode>): Likewise.
11046 (aarch64_st2<mode>_dreg): Likewise.
11047 (aarch64_st2<mode>_dreg): Likewise.
11048 (aarch64_st3<mode>_dreg): Likewise.
11049 (aarch64_st3<mode>_dreg): Likewise.
11050 (aarch64_st4<mode>_dreg): Likewise.
11051 (aarch64_st4<mode>_dreg): Likewise.
11052 (*aarch64_simd_ld1r<mode>): Likewise.
11053 (aarch64_frecpe<mode>): Likewise.
11054 (aarch64_frecp<FRECP:frecp_suffix><mode>): Likewise.
11055 (aarch64_frecps<mode>): Likewise.
11057 2013-10-15 James Greenhalgh <james.greenhalgh@arm.com>
11059 * config/arm/iterators.md (V_elem_ch): New.
11061 (VQH_type): Likewise.
11062 * config/arm/arm.md (is_neon_type): New.
11063 (conds): Use is_neon_type.
11064 (anddi3_insn): Update type attribute.
11065 (xordi3_insn): Likewise.
11066 (one_cmpldi2): Likewise.
11067 * config/arm/vfp.md (movhf_vfp_neon): Update type attribute.
11068 * config/arm/neon.md (neon_mov): Update type attribute.
11069 (*movmisalign<mode>_neon_store): Likewise.
11070 (*movmisalign<mode>_neon_load): Likewise.
11071 (vec_set<mode>_internal): Likewise.
11072 (vec_set<mode>_internal): Likewise.
11073 (vec_setv2di_internal): Likewise.
11074 (vec_extract<mode>): Likewise.
11075 (vec_extract<mode>): Likewise.
11076 (vec_extractv2di): Likewise.
11077 (*add<mode>3_neon): Likewise.
11078 (adddi3_neon): Likewise.
11079 (*sub<mode>3_neon): Likewise.
11080 (subdi3_neon): Likewise.
11081 (fma<VCVTF:mode>4): Likewise.
11082 (fma<VCVTF:mode>4_intrinsic): Likewise.
11083 (*fmsub<VCVTF:mode>4): Likewise.
11084 (fmsub<VCVTF:mode>4_intrinsic): Likewise.
11085 (neon_vrint<NEON_VRINT:nvrint_variant><VCVTF:mode>): Likewise.
11086 (ior<mode>3): Likewise.
11087 (and<mode>3): Likewise.
11088 (orn<mode>3_neon): Likewise.
11089 (orndi3_neon): Likewise.
11090 (bic<mode>3_neon): Likewise.
11091 (bicdi3_neon): Likewise.
11092 (xor<mode>3): Likewise.
11093 (one_cmpl<mode>2): Likewise.
11094 (abs<mode>2): Likewise.
11095 (neg<mode>2): Likewise.
11096 (negdi2_neon): Likewise.
11097 (*umin<mode>3_neon): Likewise.
11098 (*umax<mode>3_neon): Likewise.
11099 (*smin<mode>3_neon): Likewise.
11100 (*smax<mode>3_neon): Likewise.
11101 (vashl<mode>3): Likewise.
11102 (vashr<mode>3_imm): Likewise.
11103 (vlshr<mode>3_imm): Likewise.
11104 (ashl<mode>3_signed): Likewise.
11105 (ashl<mode>3_unsigned): Likewise.
11106 (neon_load_count): Likewise.
11107 (ashldi3_neon_noclobber): Likewise.
11108 (ashldi3_neon): Likewise.
11109 (signed_shift_di3_neon): Likewise.
11110 (unsigned_shift_di3_neon): Likewise.
11111 (ashrdi3_neon_imm_noclobber): Likewise.
11112 (lshrdi3_neon_imm_noclobber): Likewise.
11113 (<shift>di3_neon): Likewise.
11114 (widen_ssum<mode>3): Likewise.
11115 (widen_usum<mode>3): Likewise.
11116 (quad_halves_<code>v4si): Likewise.
11117 (quad_halves_<code>v4sf): Likewise.
11118 (quad_halves_<code>v8hi): Likewise.
11119 (quad_halves_<code>v16qi): Likewise.
11120 (reduc_splus_v2di): Likewise.
11121 (neon_vpadd_internal<mode>): Likewise.
11122 (neon_vpsmin<mode>): Likewise.
11123 (neon_vpsmax<mode>): Likewise.
11124 (neon_vpumin<mode>): Likewise.
11125 (neon_vpumax<mode>): Likewise.
11126 (*ss_add<mode>_neon): Likewise.
11127 (*us_add<mode>_neon): Likewise.
11128 (*ss_sub<mode>_neon): Likewise.
11129 (*us_sub<mode>_neon): Likewise.
11130 (neon_vadd<mode>_unspec): Likewise.
11131 (neon_vaddl<mode>): Likewise.
11132 (neon_vaddw<mode>): Likewise.
11133 (neon_vhadd<mode>): Likewise.
11134 (neon_vqadd<mode>): Likewise.
11135 (neon_vaddhn<mode>): Likewise.
11136 (neon_vmul<mode>): Likewise.
11137 (neon_vfms<VCVTF:mode>): Likewise.
11138 (neon_vmlal<mode>): Likewise.
11139 (neon_vmls<mode>): Likewise.
11140 (neon_vmlsl<mode>): Likewise.
11141 (neon_vqdmulh<mode>): Likewise.
11142 (neon_vqdmlal<mode>): Likewise.
11143 (neon_vqdmlsl<mode>): Likewise.
11144 (neon_vmull<mode>): Likewise.
11145 (neon_vqdmull<mode>): Likewise.
11146 (neon_vsub<mode>_unspec): Likewise.
11147 (neon_vsubl<mode>): Likewise.
11148 (neon_vsubw<mode>): Likewise.
11149 (neon_vqsub<mode>): Likewise.
11150 (neon_vhsub<mode>): Likewise.
11151 (neon_vsubhn<mode>): Likewise.
11152 (neon_vceq<mode>): Likewise.
11153 (neon_vcge<mode>): Likewise.
11154 (neon_vcgeu<mode>): Likewise.
11155 (neon_vcgt<mode>): Likewise.
11156 (neon_vcgtu<mode>): Likewise.
11157 (neon_vcle<mode>): Likewise.
11158 (neon_vclt<mode>): Likewise.
11159 (neon_vcage<mode>): Likewise.
11160 (neon_vcagt<mode>): Likewise.
11161 (neon_vtst<mode>): Likewise.
11162 (neon_vabd<mode>): Likewise.
11163 (neon_vabdl<mode>): Likewise.
11164 (neon_vaba<mode>): Likewise.
11165 (neon_vabal<mode>): Likewise.
11166 (neon_vmax<mode>): Likewise.
11167 (neon_vmin<mode>): Likewise.
11168 (neon_vpaddl<mode>): Likewise.
11169 (neon_vpadal<mode>): Likewise.
11170 (neon_vpmax<mode>): Likewise.
11171 (neon_vpmin<mode>): Likewise.
11172 (neon_vrecps<mode>): Likewise.
11173 (neon_vrsqrts<mode>): Likewise.
11174 (neon_vqabs<mode>): Likewise.
11175 (neon_vqneg<mode>): Likewise.
11176 (neon_vcls<mode>): Likewise.
11177 (clz<mode>2): Likewise.
11178 (popcount<mode>2): Likewise.
11179 (neon_vrecpe<mode>): Likewise.
11180 (neon_vrsqrte<mode>): Likewise.
11181 (neon_vget_lane<mode>_sext_internal): Likewise.
11182 (neon_vget_lane<mode>_zext_internal): Likewise.
11183 (neon_vdup_n<mode>): Likewise.
11184 (neon_vdup_n<mode>): Likewise.
11185 (neon_vdup_nv2di): Likewise.
11186 (neon_vdup_lane<mode>_interal): Likewise.
11187 (*neon_vswp<mode>): Likewise.
11188 (neon_vcombine<mode>): Likewise.
11189 (float<mode><V_cvtto>2): Likewise.
11190 (floatuns<mode><V_cvtto>2): Likewise.
11191 (fix_trunc<mode><V_cvtto>2): Likewise.
11192 (fixuns_trunc<mode><V_cvtto>2
11193 (neon_vcvt<mode>): Likewise.
11194 (neon_vcvt<mode>): Likewise.
11195 (neon_vcvtv4sfv4hf): Likewise.
11196 (neon_vcvtv4hfv4sf): Likewise.
11197 (neon_vcvt_n<mode>): Likewise.
11198 (neon_vcvt_n<mode>): Likewise.
11199 (neon_vmovn<mode>): Likewise.
11200 (neon_vqmovn<mode>): Likewise.
11201 (neon_vqmovun<mode>): Likewise.
11202 (neon_vmovl<mode>): Likewise.
11203 (neon_vmul_lane<mode>): Likewise.
11204 (neon_vmul_lane<mode>): Likewise.
11205 (neon_vmull_lane<mode>): Likewise.
11206 (neon_vqdmull_lane<mode>): Likewise.
11207 (neon_vqdmulh_lane<mode>): Likewise.
11208 (neon_vqdmulh_lane<mode>): Likewise.
11209 (neon_vmla_lane<mode>): Likewise.
11210 (neon_vmla_lane<mode>): Likewise.
11211 (neon_vmlal_lane<mode>): Likewise.
11212 (neon_vqdmlal_lane<mode>): Likewise.
11213 (neon_vmls_lane<mode>): Likewise.
11214 (neon_vmls_lane<mode>): Likewise.
11215 (neon_vmlsl_lane<mode>): Likewise.
11216 (neon_vqdmlsl_lane<mode>): Likewise.
11217 (neon_vext<mode>): Likewise.
11218 (neon_vrev64<mode>): Likewise.
11219 (neon_vrev32<mode>): Likewise.
11220 (neon_vrev16<mode>): Likewise.
11221 (neon_vbsl<mode>_internal): Likewise.
11222 (neon_vshl<mode>): Likewise.
11223 (neon_vqshl<mode>): Likewise.
11224 (neon_vshr_n<mode>): Likewise.
11225 (neon_vshrn_n<mode>): Likewise.
11226 (neon_vqshrn_n<mode>): Likewise.
11227 (neon_vqshrun_n<mode>): Likewise.
11228 (neon_vshl_n<mode>): Likewise.
11229 (neon_vqshl_n<mode>): Likewise.
11230 (neon_vqshlu_n<mode>): Likewise.
11231 (neon_vshll_n<mode>): Likewise.
11232 (neon_vsra_n<mode>): Likewise.
11233 (neon_vsri_n<mode>): Likewise.
11234 (neon_vsli_n<mode>): Likewise.
11235 (neon_vtbl1v8qi): Likewise.
11236 (neon_vtbl2v8qi): Likewise.
11237 (neon_vtbl3v8qi): Likewise.
11238 (neon_vtbl4v8qi): Likewise.
11239 (neon_vtbl1v16qi): Likewise.
11240 (neon_vtbl2v16qi): Likewise.
11241 (neon_vcombinev16qi): Likewise.
11242 (neon_vtbx1v8qi): Likewise.
11243 (neon_vtbx2v8qi): Likewise.
11244 (neon_vtbx3v8qi): Likewise.
11245 (neon_vtbx4v8qi): Likewise.
11246 (*neon_vtrn<mode>_insn): Likewise.
11247 (*neon_vzip<mode>_insn): Likewise.
11248 (*neon_vuzp<mode>_insn): Likewise.
11249 (neon_vld1<mode>): Likewise.
11250 (neon_vld1_lane<mode>): Likewise.
11251 (neon_vld1_lane<mode>): Likewise.
11252 (neon_vld1_dup<mode>): Likewise.
11253 (neon_vld1_dup<mode>): Likewise.
11254 (neon_vld1_dupv2di): Likewise.
11255 (neon_vst1<mode>): Likewise.
11256 (neon_vst1_lane<mode>): Likewise.
11257 (neon_vst1_lane<mode>): Likewise.
11258 (neon_vld2<mode>): Likewise.
11259 (neon_vld2<mode>): Likewise.
11260 (neon_vld2_lane<mode>): Likewise.
11261 (neon_vld2_lane<mode>): Likewise.
11262 (neon_vld2_dup<mode>): Likewise.
11263 (neon_vst2<mode>): Likewise.
11264 (neon_vst2<mode>): Likewise.
11265 (neon_vst2_lane<mode>): Likewise.
11266 (neon_vst2_lane<mode>): Likewise.
11267 (neon_vld3<mode>): Likewise.
11268 (neon_vld3qa<mode>): Likewise.
11269 (neon_vld3qb<mode>): Likewise.
11270 (neon_vld3_lane<mode>): Likewise.
11271 (neon_vld3_lane<mode>): Likewise.
11272 (neon_vld3_dup<mode>): Likewise.
11273 (neon_vst3<mode>): Likewise.
11274 (neon_vst3qa<mode>): Likewise.
11275 (neon_vst3qb<mode>): Likewise.
11276 (neon_vst3_lane<mode>): Likewise.
11277 (neon_vst3_lane<mode>): Likewise.
11278 (neon_vld4<mode>): Likewise.
11279 (neon_vld4qa<mode>): Likewise.
11280 (neon_vld4qb<mode>): Likewise.
11281 (neon_vld4_lane<mode>): Likewise.
11282 (neon_vld4_lane<mode>): Likewise.
11283 (neon_vld4_dup<mode>): Likewise.
11284 (neon_vst4<mode>): Likewise.
11285 (neon_vst4qa<mode>): Likewise.
11286 (neon_vst4qb<mode>): Likewise.
11287 (neon_vst4_lane<mode>): Likewise.
11288 (neon_vst4_lane<mode>): Likewise.
11289 (neon_vec_unpack<US>_lo_<mode>): Likewise.
11290 (neon_vec_unpack<US>_hi_<mode>): Likewise.
11291 (neon_vec_<US>mult_lo_<mode>): Likewise.
11292 (neon_vec_<US>mult_hi_<mode>): Likewise.
11293 (neon_vec_<US>shiftl_<mode>): Likewise.
11294 (neon_unpack<US>_<mode>): Likewise.
11295 (neon_vec_<US>mult_<mode>): Likewise.
11296 (vec_pack_trunc_<mode>): Likewise.
11297 (neon_vec_pack_trunc_<mode>): Likewise.
11298 (neon_vabd<mode>_2): Likewise.
11299 (neon_vabd<mode>_3): Likewise.
11301 2013-10-15 James Greenhalgh <james.greenhalgh@arm.com>
11303 * config/aarch64/aarch64.md (movtf_aarch64): Update type attribute.
11304 (load_pair): Update type attribute.
11305 (store_pair): Update type attribute.
11306 * config/aarch64/iterators.md (q): New.
11308 2013-10-15 James Greenhalgh <james.greenhalgh@arm.com>
11310 * config/arm/types.md: Add new types for Neon insns.
11312 2013-10-15 Alexander Ivchenko <alexander.ivchenko@intel.com>
11313 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
11314 Sergey Lega <sergey.s.lega@intel.com>
11315 Anna Tikhonova <anna.tikhonova@intel.com>
11316 Ilya Tocar <ilya.tocar@intel.com>
11317 Andrey Turetskiy <andrey.turetskiy@intel.com>
11318 Ilya Verbin <ilya.verbin@intel.com>
11319 Kirill Yukhin <kirill.yukhin@intel.com>
11320 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
11322 * config/i386/sse.md (unspec): Add UNSPEC_RCP14, UNSPEC_RSQRT14,
11323 UNSPEC_FIXUPIMM, UNSPEC_SCALEF, UNSPEC_GETEXP, UNSPEC_GETMANT,
11324 UNSPEC_EXP2, UNSPEC_RCP28, UNSPEC_RSQRT28.
11325 (rcp14<mode>): New.
11326 (srcp14<mode>): Ditto.
11327 (rsqrt14<mode>): Ditto.
11328 (rsqrt14<mode>): Ditto.
11329 (avx512f_vmscalef<mode>): Ditto.
11330 (avx512f_scalef<mode>): Ditto.
11331 (avx512f_getexp<mode>): Ditto.
11332 (avx512f_sgetexp<mode>): Ditto.
11333 (avx512f_fixupimm<mode>): Ditto.
11334 (avx512f_sfixupimm<mode>): Ditto.
11335 (avx512f_rndscale<mode>): Ditto.
11336 (*avx512er_exp2<mode>): Ditto.
11337 (*avx512er_rcp28<mode>): Ditto.
11338 (avx512er_rsqrt28<mode>): Ditto.
11339 (avx512f_getmant<mode>): Ditto.
11340 (avx512f_getmant<mode>): Ditto.
11341 (avx512f_rndscale<mode>): Fix formatting.
11343 2013-10-15 Martin Jambor <mjambor@suse.cz>
11345 * ipa-utils.h (ipa_edge_within_scc): Declare.
11346 * ipa-cp.c (edge_within_scc): Moved...
11347 * ipa-utils.c (ipa_edge_within_scc): ...here. Updated all callers.
11349 2013-10-15 Alexander Ivchenko <alexander.ivchenko@intel.com>
11350 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
11351 Sergey Lega <sergey.s.lega@intel.com>
11352 Anna Tikhonova <anna.tikhonova@intel.com>
11353 Ilya Tocar <ilya.tocar@intel.com>
11354 Andrey Turetskiy <andrey.turetskiy@intel.com>
11355 Ilya Verbin <ilya.verbin@intel.com>
11356 Kirill Yukhin <kirill.yukhin@intel.com>
11357 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
11359 * config/i386/predicates.md (const_8_to_15_operand): New.
11360 (const_16_to_31_operand): Ditto.
11361 * config/i386/sse.md (V8FI): New.
11363 (reduc_splus_v8df): Ditto.
11364 (reduc_splus_v16sf): Ditto.
11365 (avx512f_vextract<shuffletype>32x4_1): Ditto.
11366 (vec_extract_hi_<mode>): Ditto.
11367 (avx512f_vinsert<shuffletype>32x4_1): Ditto.
11368 (vec_set_lo_<mode>): Ditto.
11369 (vec_set_hi_<mode>): Ditto.
11370 (avx512f_shuf_<shuffletype>64x2_1): Ditto.
11371 (avx512f_shuf_<shuffletype>32x4_1): Ditto.
11372 (avx512f_pshufd_1): Ditto.
11373 (avx512f_broadcast<mode>): Ditto.
11374 (avx512f_broadcast<mode>): Ditto.
11375 (define_split): Split vec_extract_lo into move.
11376 (ssequartermode): Ditto.
11377 (ssedoublemode): Extened with wider modes.
11378 (vec_extract_lo_<mode>): Ditto.
11380 2013-10-15 Alexander Ivchenko <alexander.ivchenko@intel.com>
11381 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
11382 Sergey Lega <sergey.s.lega@intel.com>
11383 Anna Tikhonova <anna.tikhonova@intel.com>
11384 Ilya Tocar <ilya.tocar@intel.com>
11385 Andrey Turetskiy <andrey.turetskiy@intel.com>
11386 Ilya Verbin <ilya.verbin@intel.com>
11387 Kirill Yukhin <kirill.yukhin@intel.com>
11388 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
11390 * config/i386/predicates.md (register_or_constm1_operand): New.
11391 * config/i386/sse.md (unspec): Add UNSPEC_UNSIGNED_PCMP, UNSPEC_TESTM,
11392 UNSPEC_TESTNM, UNSPEC_VTERNLOG, UNSPEC_ALIGN, UNSPEC_CONFLICT,
11393 UNSPEC_MASKED_EQ, UNSPEC_MASKED_GT, UNSPEC_GATHER_PREFETCH,
11394 UNSPEC_SCATTER_PREFETCH
11396 (avx512f_ucmp<mode>3): Ditto.
11397 (avx512f_vternlog<mode>): Ditto.
11398 (avx512f_align<mode>): Ditto.
11399 (<shift_insn><mode>3): Ditto.
11400 (avx512f_<rotate>v<mode>): Ditto.
11401 (avx512f_<rotate><mode>): Ditto.
11402 (avx512f_eq<mode>3): Ditto.
11403 (avx512f_eq<mode>3_1): Ditto.
11404 (avx512f_gt<mode>3): Ditto.
11405 (avx512f_testm<mode>3): Ditto.
11406 (avx512f_testnm<mode>3): Ditto.
11407 (avx512pf_gatherpf<mode>): Ditto.
11408 (*avx512pf_gatherpf<mode>_mask): Ditto.
11409 (*avx512pf_gatherpf<mode>): Ditto.
11410 (avx512pf_scatterpf<mode>): Ditto.
11411 (*avx512pf_scatterpf<mode>_mask): Ditto.
11412 (*avx512pf_scatterpf<mode>): Ditto.
11413 (avx512f_vec_dup_gpr<mode>): Ditto.
11414 (clz<mode>2): Ditto.
11415 (conflict<mode>): Ditto.
11416 (REDUC_SMINMAX_MODE): Extened with wider modes.
11417 (reduc_<code>_<mode>): Ditto.
11418 (vlshr<mode>3): Ditto.
11419 (vashl<mode>3): Ditto.
11421 2013-10-15 Alexander Ivchenko <alexander.ivchenko@intel.com>
11422 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
11423 Sergey Lega <sergey.s.lega@intel.com>
11424 Anna Tikhonova <anna.tikhonova@intel.com>
11425 Ilya Tocar <ilya.tocar@intel.com>
11426 Andrey Turetskiy <andrey.turetskiy@intel.com>
11427 Ilya Verbin <ilya.verbin@intel.com>
11428 Kirill Yukhin <kirill.yukhin@intel.com>
11429 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
11431 * config/i386/sse.md (unspec): Added UNSPEC_VPERMI2, UNSPEC_VPERMT2,
11434 (avx512fmaskmode): Ditto.
11435 (bcstscalarsuff): Ditto.
11436 (avx512f_blendm<mode>): Ditto.
11437 (cmp_imm_predicate): Ditto.
11438 (avx512f_cmp<mode>3): Ditto.
11439 (avx512f_vec_dup<mode>): Ditto.
11440 (avx512f_vec_dup_mem<mode>): Ditto.
11441 (avx512f_vpermi2var<mode>3): Ditto.
11442 (avx512f_vpermt2var<mode>3): Ditto.
11443 (vec_init<mode>): Ditto.
11444 (avx512f_gathersi<mode>): Ditto.
11445 (*avx512f_gathersi<mode>): Ditto.
11446 (*avx512f_gathersi<mode>_2): Ditto.
11447 (avx512f_gatherdi<mode>): Ditto.
11448 (*avx512f_gatherdi<mode>): Ditto.
11449 (*avx512f_gatherdi<mode>_2): Ditto.
11450 (avx512f_scattersi<mode>): Ditto.
11451 (*avx512f_scattersi<mode>): Ditto.
11452 (avx512f_scatterdi<mode>): Ditto.
11453 (*avx512f_scatterdi<mode>): Ditto.
11454 (sseintprefix): Extened with wider modes.
11455 (VEC_GATHER_IDXSI): Ditto.
11456 (VEC_GATHER_IDXDI): Ditto.
11457 (VEC_GATHER_SRCDI): Ditto.
11459 2013-10-15 Matthew Gretton-Dann <matthew.gretton-dann@arm.com>
11460 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
11462 * config/arm/t-aprofile: New file.
11463 * config.gcc: Handle --with-multilib-list option.
11465 2013-10-15 Bernd Schmidt <bernds@codesourcery.com>
11467 * reload1.c (reloads_unique_chain_p): Ensure that r1 is
11470 2013-10-15 Richard Biener <rguenther@suse.de>
11472 * tree-loop-distribution.c (build_empty_rdg): Inline into
11474 (rdg_flag_vertex): Inline into single user.
11475 (rdg_flag_vertex_and_dependent): Likewise.
11476 (build_rdg_partition_for_vertex): Remove processed bitmap.
11477 (rdg_build_partitions): Simplify.
11479 2013-10-15 Richard Biener <rguenther@suse.de>
11481 * tree-ssa-forwprop.c (forward_propagate_addr_expr_1):
11482 Restructure forwarding through conversions and copies to
11483 avoid performing copy-propagation the wrong way. Adjust
11484 recursion invocations.
11485 (forward_propagate_addr_expr): Add argument stating if we
11486 are recursing from a single-use.
11487 (ssa_forward_propagate_and_combine): Adjust.
11489 2013-10-14 David Malcolm <dmalcolm@redhat.com>
11491 * dumpfile.h (gcc::dump_manager): New class, to hold state
11492 relating to dumpfile management.
11493 (get_dump_file_name): Remove in favor of method of dump_manager.
11494 (dump_initialized_p): Likewise.
11495 (dump_start): Likewise.
11496 (dump_finish): Likewise.
11497 (dump_switch_p): Likewise.
11498 (dump_register): Likewise.
11499 (get_dump_file_info): Likewise.
11500 * context.c (gcc::context::context): Construct the dump_manager
11502 * context.h (gcc::context::get_dumps): New.
11503 (gcc::context::m_dumps): New.
11504 * coverage.c (coverage_init): Port to dump_manager API.
11505 * dumpfile.c (extra_dump_files): Convert to field of gcc::dump_manager.
11506 (extra_dump_files_in_use): Likewise.
11507 (extra_dump_files_alloced): Likewise.
11508 (gcc::dump_manager::dump_manager): New.
11509 (dump_register): Convert to...
11510 (gcc::dump_manager::dump_register): ...method, replacing
11511 function-static next_dump with m_next_dump field.
11512 (get_dump_file_info): Convert to...
11513 (gcc::dump_manager::get_dump_file_info): ...method.
11514 (get_dump_file_name): Convert to...
11515 (gcc::dump_manager::get_dump_file_name): ...method.
11516 (dump_start): Convert to...
11517 (gcc::dump_manager::dump_start): ...method.
11518 (dump_finish): Convert to...
11519 (gcc::dump_manager::dump_finish): ...method.
11520 (dump_begin): Replace body with...
11521 (gcc::dump_manager::dump_begin): ...new method.
11522 (dump_phase_enabled_p): Convert to...
11523 (gcc::dump_manager::dump_phase_enabled_p): ...method.
11524 (dump_phase_enabled_p): Convert to...
11525 (gcc::dump_manager::dump_phase_enabled_p): ...method.
11526 (dump_initialized_p): Convert to...
11527 (gcc::dump_manager::dump_initialized_p): ...method.
11528 (dump_flag_name): Replace body with...
11529 (gcc::dump_manager::dump_flag_name): ...new method.
11530 (dump_enable_all): Convert to...
11531 (gcc::dump_manager::dump_enable_all): ...new method.
11532 (opt_info_enable_passes): Convert to...
11533 (gcc::dump_manager::opt_info_enable_passes): ...new method.
11534 (dump_switch_p_1): Convert to...
11535 (gcc::dump_manager::dump_switch_p_1): ...new method.
11536 (dump_switch_p): Convert to...
11537 (gcc::dump_manager::dump_switch_p): ...new method.
11538 (opt_info_switch_p): Port to dump_manager API.
11539 (enable_rtl_dump_file): Likewise.
11540 * opts-global.c (handle_common_deferred_options): Port to new
11542 * passes.c (pass_manager::finish_optimization_passes): Likewise.
11543 (pass_manager::register_one_dump_file): Likewise.
11544 (pass_manager::register_pass): Likewise.
11545 (pass_init_dump_file): Likewise.
11546 (pass_fini_dump_file): Likewise.
11547 * statistics.c (statistics_early_init): Likewise.
11549 2013-10-14 Richard Biener <rguenther@suse.de>
11551 * gimple.c (gimple_canonical_types, canonical_type_hash_cache,
11552 iterative_hash_canonical_type, gimple_canonical_type_hash,
11553 gimple_canonical_types_compatible_p, gimple_canonical_type_eq,
11554 gimple_register_canonical_type, print_gimple_types_stats,
11555 free_gimple_type_tables): Move to lto/lto.c
11556 (gt-gimple.h): Do not include.
11557 * gimple.h (gimple_register_canonical_type,
11558 print_gimple_types_stats, free_gimple_type_tables): Remove.
11559 * Makefile.in (GTFILES): Remove gimple.c.
11561 2013-10-14 Travis Snoozy <quandary@remstate.com>
11564 * config/msp430/msp430.c (msp430_option_override): Correct thinko
11565 scanning for msp430x targets.
11567 2013-10-14 Eric Botcazou <ebotcazou@adacore.com>
11570 * config/sparc/sparc-protos.h (widen_mem_for_ldd_peep): Declare.
11571 (registers_ok_for_ldd_peep): Move around.
11572 * config/sparc/sparc.c (widen_mem_for_ldd_peep): New.
11573 * config/sparc/sparc.md (widening peepholes): Use it.
11575 2013-10-14 Richard Biener <rguenther@suse.de>
11577 PR middle-end/58712
11578 PR middle-end/55358
11579 * gimple.c (iterative_hash_canonical_type): Make sure to
11580 record the hash into the correct hashtable slot.
11582 2013-10-13 Eric Botcazou <ebotcazou@adacore.com>
11584 PR rtl-optimization/58662
11585 * combine.c (try_combine): Take into account death nodes on I2 when
11586 splitting a PARALLEL of two independent SETs. Fix dump message.
11588 2013-10-12 Oleg Endo <olegendo@gcc.gnu.org>
11591 * config/sh/sh_treg_combine.cc: New SH specific RTL pass.
11592 * config.gcc (sh[123456789lbe]*-*-* | sh-*-*): Add sh_treg_combine.o to
11594 * config/sh/t-sh (sh_treg_combine.o): New entry.
11595 * config/sh/sh.c (sh_fixed_condition_code_regs): New function that
11596 implements the target hook TARGET_FIXED_CONDITION_CODE_REGS.
11597 (register_sh_passes): New function. Register sh_treg_combine pass.
11598 (sh_option_override): Invoke it.
11599 (sh_canonicalize_comparison): Handle op0_preserve_value.
11600 * sh.md (*cbranch_t"): Do not try to optimize missed test and branch
11601 opportunities. Canonicalize branch condition.
11602 (nott): Allow only if pseudos can be created for non-SH2A.
11604 2013-10-12 H.J. Lu <hongjiu.lu@intel.com>
11607 * config/i386/i386.c (ix86_copy_addr_to_reg): New function.
11608 (ix86_expand_movmem): Replace copy_addr_to_reg with
11609 ix86_copy_addr_to_reg.
11610 (ix86_expand_setmem): Likewise.
11612 2013-10-12 Alexander Monakov <amonakov@ispras.ru>
11614 * config/i386/i386.c (ix86_expand_sse_compare_and_jump): Use mode
11615 provided by ix86_fp_compare_mode instead of CCFPUmode.
11617 2013-10-12 James Greenhalgh <james.greenhalgh@arm.com>
11619 * config/aarch64/arm_neon.h
11620 (vtbx<1,3>_<psu>8): Fix register constriants.
11622 2013-10-11 Jeff Law <law@redhat.com>
11624 PR tree-optimization/58640
11625 * tree-ssa-threadupdate.c (mark_threaded_blocks): Truncate jump
11626 threading paths that cross over two loop entry points.
11628 2013-10-11 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
11630 * config/rs6000/vsx.md (*vsx_le_perm_load_v2di): Generalize to
11631 handle vector float as well.
11632 (*vsx_le_perm_load_v4si): Likewise.
11633 (*vsx_le_perm_store_v2di): Likewise.
11634 (*vsx_le_perm_store_v4si): Likewise.
11636 2013-10-11 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
11638 * config/rs6000/vector.md (vec_realign_load<mode>): Generate vperm
11639 directly to circumvent subtract from splat{31} workaround.
11640 * config/rs6000/rs6000-protos.h (altivec_expand_vec_perm_le): New
11642 * config/rs6000/rs6000.c (altivec_expand_vec_perm_le): New.
11643 * config/rs6000/altivec.md (define_c_enum "unspec"): Add
11644 UNSPEC_VPERM_X and UNSPEC_VPERM_UNS_X.
11645 (altivec_vperm_<mode>): Convert to define_insn_and_split to
11646 separate big and little endian logic.
11647 (*altivec_vperm_<mode>_internal): New define_insn.
11648 (altivec_vperm_<mode>_uns): Convert to define_insn_and_split to
11649 separate big and little endian logic.
11650 (*altivec_vperm_<mode>_uns_internal): New define_insn.
11651 (vec_permv16qi): Add little endian logic.
11653 2013-10-11 Marc Glisse <marc.glisse@inria.fr>
11655 * doc/extend.texi (returns_nonnull): Remove arguments.
11657 2013-10-11 Alexander Ivchenko <alexander.ivchenko@intel.com>
11658 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
11659 Sergey Lega <sergey.s.lega@intel.com>
11660 Anna Tikhonova <anna.tikhonova@intel.com>
11661 Ilya Tocar <ilya.tocar@intel.com>
11662 Andrey Turetskiy <andrey.turetskiy@intel.com>
11663 Ilya Verbin <ilya.verbin@intel.com>
11664 Kirill Yukhin <kirill.yukhin@intel.com>
11665 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
11667 * config/i386/sse.md (VI48F_256_512): New.
11668 (avx2_permvar<mode>): Change to ...
11669 (<avx2_avx512f>_permvar<mode>): This.
11671 2013-10-11 Alexander Ivchenko <alexander.ivchenko@intel.com>
11672 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
11673 Sergey Lega <sergey.s.lega@intel.com>
11674 Anna Tikhonova <anna.tikhonova@intel.com>
11675 Ilya Tocar <ilya.tocar@intel.com>
11676 Andrey Turetskiy <andrey.turetskiy@intel.com>
11677 Ilya Verbin <ilya.verbin@intel.com>
11678 Kirill Yukhin <kirill.yukhin@intel.com>
11679 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
11681 * config/i386/i386.c (bdesc_args): Change corresponding pattern for
11682 __builtin_ia32_cvtps2dq, __builtin_ia32_cvtps2dq256.
11683 * config/i386/sse.md (VI4_AVX): New.
11684 (sf2simodelower): Ditto.
11685 (sse2_cvtps2dq): Change to ...
11686 (<sse2_avx_avx512f>_fix_notrunc<sf2simodelower><mode>): This.
11688 2013-10-11 Alexander Ivchenko <alexander.ivchenko@intel.com>
11689 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
11690 Sergey Lega <sergey.s.lega@intel.com>
11691 Anna Tikhonova <anna.tikhonova@intel.com>
11692 Ilya Tocar <ilya.tocar@intel.com>
11693 Andrey Turetskiy <andrey.turetskiy@intel.com>
11694 Ilya Verbin <ilya.verbin@intel.com>
11695 Kirill Yukhin <kirill.yukhin@intel.com>
11696 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
11698 * config/i386/sse.md (V_512): New.
11700 (vcond<V_512:mode><VF_512:mode>): Ditto.
11701 (vcond<V_512:mode><VI_512:mode>): Ditto.
11702 (vcondu<V_512:mode><VI_512:mode>): Ditto.
11704 2013-10-11 Alexander Ivchenko <alexander.ivchenko@intel.com>
11705 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
11706 Sergey Lega <sergey.s.lega@intel.com>
11707 Anna Tikhonova <anna.tikhonova@intel.com>
11708 Ilya Tocar <ilya.tocar@intel.com>
11709 Andrey Turetskiy <andrey.turetskiy@intel.com>
11710 Ilya Verbin <ilya.verbin@intel.com>
11711 Kirill Yukhin <kirill.yukhin@intel.com>
11712 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
11714 * config/i386/i386.c (ix86_rtx_costs): Enable fma for TARGET_AVX512F.
11715 * config/i386/sse.md (FMAMODEM): Changed modes and conditions.
11717 (fma<mode>4): Removed condition.
11718 (fms<mode>4): Ditto.
11719 (fnma<mode>4): Ditto.
11720 (fnms<mode>4): Ditto.
11721 (fma4i_fmadd_<mode>): Ditto.
11722 (*fma_fmadd_<mode>): Ditto.
11723 (*fma_fmsub_<mode>): Ditto.
11724 (*fma_fnmadd_<mode>): Ditto.
11725 (*fma_fnmsub_<mode>): Ditto.
11726 (fmaddsub_<mode>): Allow for TARGET_AVX512F.
11727 (*fma_fmaddsub_<mode>): Ditto.
11728 (*fma_fmsubadd_<mode>): Ditto.
11729 (*fmai_fmadd_<mode>): Ditto.
11730 (*fmai_fmsub_<mode>): Ditto.
11731 (*fmai_fnmadd_<mode>): Ditto.
11732 (*fmai_fnmsub_<mode>): Ditto.
11734 2013-10-11 Alexander Ivchenko <alexander.ivchenko@intel.com>
11735 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
11736 Sergey Lega <sergey.s.lega@intel.com>
11737 Anna Tikhonova <anna.tikhonova@intel.com>
11738 Ilya Tocar <ilya.tocar@intel.com>
11739 Andrey Turetskiy <andrey.turetskiy@intel.com>
11740 Ilya Verbin <ilya.verbin@intel.com>
11741 Kirill Yukhin <kirill.yukhin@intel.com>
11742 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
11744 * config/i386/sse.md (VI248_AVX2_8_AVX512F): New.
11745 (VI124_256): Changed to ...
11746 (VI124_256_48_512): This.
11747 (ssepackmode): Extended with wider modes.
11748 (<code><mode>3): Changed iterator.
11749 (*avx2_<code><mode>3): Ditto.
11750 (vec_pack_trunc_<mode>): Ditto.
11752 2013-10-11 Alexander Ivchenko <alexander.ivchenko@intel.com>
11753 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
11754 Sergey Lega <sergey.s.lega@intel.com>
11755 Anna Tikhonova <anna.tikhonova@intel.com>
11756 Ilya Tocar <ilya.tocar@intel.com>
11757 Andrey Turetskiy <andrey.turetskiy@intel.com>
11758 Ilya Verbin <ilya.verbin@intel.com>
11759 Kirill Yukhin <kirill.yukhin@intel.com>
11760 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
11762 * config/i386/sse.md (VI124_AVX2_48_AVX512F): New.
11763 (VI8F_256_512): Ditto.
11764 (abs<mode>2): Changed iterator.
11765 (avx2_perm<mode>): Changed to ...
11766 (<avx2_avx512f>_perm<mode>): This.
11767 (avx2_perm<mode>_1): Changed to ...
11768 (<avx2_avx512f>_perm<mode>_1): This.
11770 2013-10-11 Alexander Ivchenko <alexander.ivchenko@intel.com>
11771 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
11772 Sergey Lega <sergey.s.lega@intel.com>
11773 Anna Tikhonova <anna.tikhonova@intel.com>
11774 Ilya Tocar <ilya.tocar@intel.com>
11775 Andrey Turetskiy <andrey.turetskiy@intel.com>
11776 Ilya Verbin <ilya.verbin@intel.com>
11777 Kirill Yukhin <kirill.yukhin@intel.com>
11778 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
11780 * config/i386/sse.md (VI48_AVX512F): New.
11781 (VI48_AVX2): Changed to ...
11782 (VI48_AVX2_48_AVX512F): This.
11783 (avx2_ashrv<mode>): Changed to ...
11784 (<avx2_avx512f>_ashrv<mode>): This.
11785 (avx2_<shift_insn>v<mode>): Changed to ...
11786 (<avx2_avx512f>_<shift_insn>v<mode>): This.
11788 2013-10-11 Alexander Ivchenko <alexander.ivchenko@intel.com>
11789 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
11790 Sergey Lega <sergey.s.lega@intel.com>
11791 Anna Tikhonova <anna.tikhonova@intel.com>
11792 Ilya Tocar <ilya.tocar@intel.com>
11793 Andrey Turetskiy <andrey.turetskiy@intel.com>
11794 Ilya Verbin <ilya.verbin@intel.com>
11795 Kirill Yukhin <kirill.yukhin@intel.com>
11796 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
11798 * config/i386/sse.md (VI4_AVX512F): New.
11799 (VI8_AVX2_AVX512F): Ditto.
11800 (mul<mode>3): Extended with wider modes.
11801 (*<sse4_1_avx2>_mul<mode>3): Ditto.
11802 (mul<mode>3): Ditto.
11803 (vec_widen_<s>mult_odd_<mode>): Ditto.
11805 2013-10-11 Alexander Ivchenko <alexander.ivchenko@intel.com>
11806 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
11807 Sergey Lega <sergey.s.lega@intel.com>
11808 Anna Tikhonova <anna.tikhonova@intel.com>
11809 Ilya Tocar <ilya.tocar@intel.com>
11810 Andrey Turetskiy <andrey.turetskiy@intel.com>
11811 Ilya Verbin <ilya.verbin@intel.com>
11812 Kirill Yukhin <kirill.yukhin@intel.com>
11813 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
11815 * config/i386/sse.md (VI2_AVX512F): New.
11816 (VI124_AVX512F): Ditto.
11817 (sseunpackmode): Extended with wider modes.
11818 (sseunpackfltmode): Ditto.
11819 (vec_unpacks_float_hi_<mode>): Ditto.
11820 (vec_unpacks_float_lo_<mode>): Ditto.
11821 (vec_unpacku_float_hi_<mode>): Ditto.
11822 (vec_unpacku_float_lo_<mode>): Ditto.
11823 (vec_unpacks_lo_<mode>): Ditto.
11824 (vec_unpacks_hi_<mode>): Ditto.
11825 (vec_unpacku_lo_<mode>): Ditto.
11826 (vec_unpacku_hi_<mode>): Ditto.
11828 2013-10-11 Alexander Ivchenko <alexander.ivchenko@intel.com>
11829 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
11830 Sergey Lega <sergey.s.lega@intel.com>
11831 Anna Tikhonova <anna.tikhonova@intel.com>
11832 Ilya Tocar <ilya.tocar@intel.com>
11833 Andrey Turetskiy <andrey.turetskiy@intel.com>
11834 Ilya Verbin <ilya.verbin@intel.com>
11835 Kirill Yukhin <kirill.yukhin@intel.com>
11836 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
11838 * config/i386/i386.md (multdiv): New.
11839 (multdiv_mnemonic): Ditto.
11840 * config/i386/sse.md (<sse>_vmmul<mode>3): Changed to...
11841 (<sse>_vm<multdiv_mnemonic><mode>3): This.
11842 (<sse>_vmdiv<mode>3): Removed.
11844 2013-10-11 Alexander Ivchenko <alexander.ivchenko@intel.com>
11845 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
11846 Sergey Lega <sergey.s.lega@intel.com>
11847 Anna Tikhonova <anna.tikhonova@intel.com>
11848 Ilya Tocar <ilya.tocar@intel.com>
11849 Andrey Turetskiy <andrey.turetskiy@intel.com>
11850 Ilya Verbin <ilya.verbin@intel.com>
11851 Kirill Yukhin <kirill.yukhin@intel.com>
11852 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
11854 * config/i386/sse.md (V): Extended with wider modes.
11856 (ssehalfvecmode): Ditto.
11858 (ssepackfltmode): Ditto.
11859 (avx_vec_concat<mode>): Ditto.
11860 (V_256_512): New iterator.
11861 (VF2_512_256): Ditto.
11862 (si2dfmode): New attribute.
11863 (si2dfmodelower): Ditto.
11864 (sf2dfmode): Ditto.
11865 (concat_tg_mode): Ditto.
11866 (floatv4siv4df2): Changed to ...
11867 (float<si2dfmodelower><mode>2): This.
11868 (avx_cvtps2pd256): Changed to ...
11869 (<sse2_avx_avx512f>_cvtps2pd<avxsizesuffix>): This.
11870 (vec_pack_trunc_v4df): Changed to ...
11871 (vec_pack_trunc_<mode>): This.
11872 (avx_vpermil<mode>): Changed to ...
11873 (<sse2_avx_avx512f>_vpermil<mode>): This.
11874 (<fixsuffix>fix_truncv8dfv8si2): New.
11875 (vec_pack_sfix_trunc_v8df): Ditto.
11876 (avx512f_rndscale<mode>): Ditto.
11877 (avx512f_roundpd512): Ditto.
11878 (vec_pack_ufix_trunc_<mode>): Updated iterator.
11880 2013-10-11 Alexander Ivchenko <alexander.ivchenko@intel.com>
11881 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
11882 Sergey Lega <sergey.s.lega@intel.com>
11883 Anna Tikhonova <anna.tikhonova@intel.com>
11884 Ilya Tocar <ilya.tocar@intel.com>
11885 Andrey Turetskiy <andrey.turetskiy@intel.com>
11886 Ilya Verbin <ilya.verbin@intel.com>
11887 Kirill Yukhin <kirill.yukhin@intel.com>
11888 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
11890 * config/i386/i386.md (any_fix): New iterator.
11891 (fixsuffix): New attribute.
11892 * config/i386/sse.md (VF1): Extened with wider modes.
11896 (sseintvecmodelower): Ditto.
11897 (ssescalarmode): Ditto.
11898 (ssescalarnum): Ditto.
11899 (VF1_128_256): New.
11900 (ssexmmmode): Ditto.
11901 (<fixsuffix>fix_truncv16sfv16si2): Ditto.
11902 (<sse>_rcp<mode>2): Change iterator.
11903 (rsqrt<mode>2): Ditto.
11904 (<sse>_rsqrt<mode>2): Ditto.
11905 (avx2_vec_dup<mode>): Ditto.
11906 (<sse4_1>_round<ssemodesuffix>_sfix<avxsizesuffix>): Ditto.
11907 (round<mode>2_sfix): Ditto.
11908 (avx2_pbroadcast<mode>): Ditto.
11909 (*andnot<mode>3): Handle XI mode.
11910 (*<code><mode>3): Ditto.
11911 (AVXTOSSEMODE): Removed.
11912 (avx_vpermil<mode>): Changed to ...
11913 (<sse2_avx_avx512f>_vpermil<mode>): This.
11915 2013-10-11 Alexander Ivchenko <alexander.ivchenko@intel.com>
11916 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
11917 Sergey Lega <sergey.s.lega@intel.com>
11918 Anna Tikhonova <anna.tikhonova@intel.com>
11919 Ilya Tocar <ilya.tocar@intel.com>
11920 Andrey Turetskiy <andrey.turetskiy@intel.com>
11921 Ilya Verbin <ilya.verbin@intel.com>
11922 Kirill Yukhin <kirill.yukhin@intel.com>
11923 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
11925 * config/i386/sse.md (<sse2>_movnt<mode>): Update constraint to "v".
11926 (<sse>_comi): Ditto.
11927 (<sse>_ucomi): Ditto.
11928 (sse_cvtss2siq_2): Ditto.
11929 (sse2_cvtsd2si): Ditto.
11930 (sse2_cvtsd2siq): Ditto.
11931 (sse2_cvttsd2si): Ditto.
11932 (sse2_cvttsd2siq): Ditto.
11933 (<shift_insn><mode>3): Ditto.
11934 (sse2_cvtsi2sdq): Update constraint and prefix.
11935 (sse_cvtsi2ss): Update prefix.
11936 (sse_cvtsi2ssq): Ditto.
11938 2013-10-11 Jakub Jelinek <jakub@redhat.com>
11940 * tree-vrp.c (infer_nonnull_range): Use is_gimple_call,
11941 ignore internal calls.
11943 2013-10-11 Richard Biener <rguenther@suse.de>
11945 * tree-pretty-print.c (dump_generic_node): Allow to dump both (D)
11946 and (ab) for SSA_NAMEs. Mark INTEGER_CSTs with (OVF) if
11947 TREE_OVERFLOW is set.
11949 2013-10-11 Thomas Schwinge <thomas@codesourcery.com>
11951 * tree.h (OMP_CLAUSE_CODE): Remove duplicate definition.
11953 * gimple.c: GIMPLE statements have subcodes, not sub-codes.
11954 * gimple.h: Likewise.
11956 * doc/generic.texi (OpenMP): OMP_CLAUSE_* are subcodes, not sub-codes.
11958 * doc/generic.texi (Adding new DECL node types): Explain *_CHECK
11961 * doc/gimple.texi (is_gimple_omp): Move into the correct section.
11963 * acinclude.m4 (gcc_GAS_FLAGS): Add more gcc_cv_as_flags overrides.
11964 * configure: Regenerate.
11966 2013-10-11 Jakub Jelinek <jakub@redhat.com>
11968 * tree-pretty-print.c (dump_omp_clause): Handle OMP_CLAUSE__LOOPTEMP_
11969 and new OpenMP 4.0 clauses, handle UDR OMP_CLAUSE_REDUCTION,
11970 formatting fixes, use pp_colon instead of pp_character (..., ':'),
11971 similarly pp_right_paren.
11972 (dump_generic_node): Handle OMP_DISTRIBUTE, OMP_TEAMS,
11973 OMP_TARGET_DATA, OMP_TARGET, OMP_TARGET_UPDATE, OMP_TASKGROUP,
11974 allow OMP_FOR_INIT to be NULL, handle OMP_ATOMIC_SEQ_CST.
11975 * tree.c (omp_clause_num_ops, omp_clause_code_name): Add OpenMP 4.0
11977 (omp_declare_simd_clauses_equal,
11978 omp_remove_redundant_declare_simd_attrs): New functions.
11979 (attribute_value_equal): Use omp_declare_simd_clauses_equal.
11980 (walk_tree_1): Handle new OpenMP 4.0 clauses.
11981 * tree.h (OMP_LOOP_CHECK): Define.
11982 (OMP_FOR_BODY, OMP_FOR_CLAUSES, OMP_FOR_INIT, OMP_FOR_COND,
11983 OMP_FOR_INCR, OMP_FOR_PRE_BODY): Use it.
11984 (OMP_TASKGROUP_BODY, OMP_TEAMS_BODY, OMP_TEAMS_CLAUSES,
11985 OMP_TARGET_DATA_BODY, OMP_TARGET_DATA_CLAUSES, OMP_TARGET_BODY,
11986 OMP_TARGET_CLAUSES, OMP_TARGET_UPDATE_CLAUSES, OMP_CLAUSE_SIZE,
11987 OMP_ATOMIC_SEQ_CST, OMP_CLAUSE_DEPEND_KIND, OMP_CLAUSE_MAP_KIND,
11988 OMP_CLAUSE_MAP_ZERO_BIAS_ARRAY_SECTION, OMP_CLAUSE_PROC_BIND_KIND,
11989 OMP_CLAUSE_REDUCTION_OMP_ORIG_REF, OMP_CLAUSE_ALIGNED_ALIGNMENT,
11990 OMP_CLAUSE_NUM_TEAMS_EXPR, OMP_CLAUSE_THREAD_LIMIT_EXPR,
11991 OMP_CLAUSE_DEVICE_ID, OMP_CLAUSE_DIST_SCHEDULE_CHUNK_EXPR,
11992 OMP_CLAUSE_SIMDLEN_EXPR): Define.
11993 (OMP_CLAUSE_DECL): Change range up to OMP_CLAUSE__LOOPTEMP_.
11994 (omp_remove_redundant_declare_simd_attrs): New prototype.
11995 * gimple.def (GIMPLE_OMP_TASKGROUP, GIMPLE_OMP_TARGET,
11996 GIMPLE_OMP_TEAMS): New codes.
11997 (GIMPLE_OMP_RETURN): Use GSS_OMP_ATOMIC_STORE instead of GSS_BASE.
11998 * omp-low.c (struct omp_context): Add cancel_label and cancellable
12000 (target_nesting_level): New variable.
12001 (extract_omp_for_data): Handle GF_OMP_FOR_KIND_DISTRIBUTE and
12002 OMP_CLAUSE_DIST_SCHEDULE. Don't fallback to library implementation
12003 for collapse > 1 static schedule unless ordered.
12004 (get_ws_args_for): Add par_stmt argument. Handle combined loops.
12005 (determine_parallel_type): Adjust get_ws_args_for caller.
12006 (install_var_field): Handle mask & 4 for double indirection.
12007 (scan_sharing_clauses): Ignore shared clause on teams construct.
12008 Handle OMP_CLAUSE__LOOPTEMP_ and new OpenMP 4.0 clauses.
12009 (create_omp_child_function): If inside target or declare target
12010 constructs, set "omp declare target" attribute on the child function.
12011 (find_combined_for): New function.
12012 (scan_omp_parallel): Handle combined loops.
12013 (scan_omp_target, scan_omp_teams): New functions.
12014 (check_omp_nesting_restrictions): Check new OpenMP 4.0 nesting
12015 restrictions and set ctx->cancellable for cancellable constructs.
12016 (scan_omp_1_stmt): Call check_omp_nesting_restrictions also on
12017 selected builtin calls. Handle GIMPLE_OMP_TASKGROUP,
12018 GIMPLE_OMP_TARGET, GIMPLE_OMP_TEAMS.
12019 (build_omp_barrier): Add lhs argument, return gimple rather than tree.
12020 (omp_clause_aligned_alignment): New function.
12021 (lower_rec_simd_input_clauses): Only call SET_DECL_VALUE_EXPR on decls.
12022 (lower_rec_input_clauses): Add FD argument. Ignore shared clauses
12023 on teams constructs. Handle user defined reductions and new
12024 OpenMP 4.0 clauses.
12025 (lower_reduction_clauses): Don't set placeholder to address of ref
12026 if it has already the right type.
12027 (lower_send_clauses): Handle OMP_CLAUSE__LOOPTEMP_.
12028 (expand_parallel_call): Use the new non-_start suffixed builtins,
12029 handle OMP_CLAUSE_PROC_BIND, don't call the outlined function
12030 and GOMP_parallel_end after the call.
12031 (expand_task_call): Handle OMP_CLAUSE_DEPEND.
12032 (expand_omp_for_init_counts): Handle combined loops.
12033 (expand_omp_for_init_vars): Add inner_stmt argument, handle combined
12035 (expand_omp_for_generic): Likewise. Use GOMP_loop_end_cancel at the
12036 end of cancellable loops.
12037 (expand_omp_for_static_nochunk, expand_omp_for_static_chunk):
12038 Likewise. Handle collapse > 1 loops.
12039 (expand_omp_simd): Handle combined loops.
12040 (expand_omp_for): Add inner_stmt argument, adjust callers of
12041 expand_omp_for* functions, use expand_omp_for_static*chunk even
12042 for collapse > 1 unless ordered.
12043 (expand_omp_sections): Use GOMP_sections_end_cancel at the end
12044 of cancellable sections.
12045 (expand_omp_single): Remove need_barrier variable, just rely on
12046 gimple_omp_return_nowait_p. Adjust build_omp_barrier caller.
12047 (expand_omp_synch): Allow GIMPLE_OMP_TASKGROUP and GIMPLE_OMP_TEAMS.
12048 (expand_omp_atomic_load, expand_omp_atomic_store,
12049 expand_omp_atomic_fetch_op): Handle gimple_omp_atomic_seq_cst_p.
12050 (expand_omp_target): New function.
12051 (expand_omp): Handle combined loops. Handle GIMPLE_OMP_TASKGROUP,
12052 GIMPLE_OMP_TEAMS, GIMPLE_OMP_TARGET.
12053 (build_omp_regions_1): Immediately close region for
12054 GF_OMP_TARGET_KIND_UPDATE.
12055 (maybe_add_implicit_barrier_cancel): New function.
12056 (lower_omp_sections): Adjust lower_rec_input_clauses caller. Handle
12058 (lower_omp_single): Likewise. Add clobber after the barrier.
12059 (lower_omp_taskgroup): New function.
12060 (lower_omp_for): Handle combined loops. Adjust
12061 lower_rec_input_clauses caller. Handle cancellation.
12062 (lower_depend_clauses): New function.
12063 (lower_omp_taskreg): Lower depend clauses. Adjust
12064 lower_rec_input_clauses caller. Add clobber after the call. Handle
12066 (lower_omp_target, lower_omp_teams): New functions.
12067 (lower_omp_1): Handle cancellation. Handle GIMPLE_OMP_TASKGROUP,
12068 GIMPLE_OMP_TARGET, GIMPLE_OMP_TEAMS and GOMP_barrier, GOMP_cancel
12069 and GOMP_cancellation_point calls.
12070 (lower_omp): Fold stmts inside of target region.
12071 (diagnose_sb_1, diagnose_sb_2): Handle GIMPLE_OMP_TASKGROUP,
12072 GIMPLE_OMP_TARGET and GIMPLE_OMP_TEAMS.
12073 * builtin-types.def (DEF_FUNCTION_TYPE_8): Document.
12074 (BT_FN_VOID_OMPFN_PTR_UINT,
12075 BT_FN_VOID_OMPFN_PTR_UINT_LONG_LONG_LONG,
12076 BT_FN_VOID_OMPFN_PTR_UINT_LONG_LONG_LONG_LONG,
12077 BT_FN_VOID_OMPFN_PTR_OMPCPYFN_LONG_LONG_BOOL_UINT): Remove.
12078 (BT_FN_VOID_OMPFN_PTR_UINT_UINT_UINT,
12079 BT_FN_VOID_OMPFN_PTR_UINT_LONG_LONG_LONG_UINT,
12080 BT_FN_VOID_OMPFN_PTR_UINT_LONG_LONG_LONG_LONG_UINT,
12081 BT_FN_BOOL_INT, BT_FN_BOOL_INT_BOOL, BT_FN_VOID_UINT_UINT,
12082 BT_FN_VOID_INT_PTR_SIZE_PTR_PTR_PTR,
12083 BT_FN_VOID_INT_OMPFN_PTR_SIZE_PTR_PTR_PTR,
12084 BT_FN_VOID_OMPFN_PTR_OMPCPYFN_LONG_LONG_BOOL_UINT_PTR): New.
12085 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1,
12086 call_may_clobber_ref_p_1): Handle BUILT_IN_GOMP_BARRIER_CANCEL,
12087 BUILT_IN_GOMP_TASKGROUP_END, BUILT_IN_GOMP_LOOP_END_CANCEL,
12088 BUILT_IN_GOMP_SECTIONS_END_CANCEL. Don't handle
12089 BUILT_IN_GOMP_PARALLEL_END.
12090 * gimple-low.c (lower_stmt): Handle GIMPLE_OMP_TASKGROUP,
12091 GIMPLE_OMP_TARGET and GIMPLE_OMP_TEAMS.
12092 * gimple-pretty-print.c (dump_gimple_omp_for): Handle
12093 GF_OMP_FOR_KIND_DISTRIBUTE.
12094 (dump_gimple_omp_target, dump_gimple_omp_teams): New functions.
12095 (dump_gimple_omp_block): Handle GIMPLE_OMP_TASKGROUP.
12096 (dump_gimple_omp_return): Print lhs if it has any.
12097 (dump_gimple_omp_atomic_load, dump_gimple_omp_atomic_store): Handle
12098 gimple_omp_atomic_seq_cst_p.
12099 (pp_gimple_stmt_1): Handle GIMPLE_OMP_TASKGROUP, GIMPLE_OMP_TARGET
12100 and GIMPLE_OMP_TEAMS.
12101 * langhooks.c (lhd_omp_mappable_type): New function.
12102 * tree-vectorizer.c (struct simd_array_to_simduid): Fix up comment.
12103 * langhooks.h (struct lang_hooks_for_types): Add omp_mappable_type
12105 * gimplify.c (enum gimplify_omp_var_data): Add GOVD_MAP,
12106 GOVD_ALIGNED and GOVD_MAP_TO_ONLY.
12107 (enum omp_region_type): Add ORT_TEAMS, ORT_TARGET_DATA and ORT_TARGET.
12108 (struct gimplify_omp_ctx): Add combined_loop field.
12109 (gimplify_call_expr, gimplify_modify_expr): Don't call fold_stmt
12110 on stmts inside of target region.
12111 (is_gimple_stmt): Return true for OMP_DISTRIBUTE and OMP_TASKGROUP.
12112 (omp_firstprivatize_variable): Handle GOVD_MAP, GOVD_ALIGNED,
12113 ORT_TARGET and ORT_TARGET_DATA.
12114 (omp_add_variable): Avoid checks on readding var for GOVD_ALIGNED.
12116 (omp_notice_threadprivate_variable): Complain about threadprivate
12117 variables in target region.
12118 (omp_notice_variable): Complain about vars with non-mappable type
12119 in target region. Handle ORT_TEAMS, ORT_TARGET and ORT_TARGET_DATA.
12120 (omp_check_private): Ignore ORT_TARGET* regions.
12121 (gimplify_scan_omp_clauses, gimplify_adjust_omp_clauses_1,
12122 gimplify_adjust_omp_clauses): Handle new OpenMP 4.0 clauses.
12123 (find_combined_omp_for): New function.
12124 (gimplify_omp_for): Handle gimplification of combined loops.
12125 (gimplify_omp_workshare): Gimplify also OMP_TARGET, OMP_TARGET_DATA,
12127 (gimplify_omp_target_update): New function.
12128 (gimplify_omp_atomic): Handle OMP_ATOMIC_SEQ_CST.
12129 (gimplify_expr): Handle OMP_DISTRIBUTE, OMP_TARGET, OMP_TARGET_DATA,
12130 OMP_TARGET_UPDATE, OMP_TEAMS, OMP_TASKGROUP.
12131 (gimplify_body): If fndecl has "omp declare target" attribute, add
12132 implicit ORT_TARGET context around it.
12133 * tree.def (OMP_DISTRIBUTE, OMP_TEAMS, OMP_TARGET_DATA, OMP_TARGET,
12134 OMP_TASKGROUP, OMP_TARGET_UPDATE): New tree codes.
12135 * tree-nested.c (convert_nonlocal_reference_stmt,
12136 convert_local_reference_stmt, convert_gimple_call): Handle
12137 GIMPLE_OMP_TARGET, GIMPLE_OMP_TEAMS and GIMPLE_OMP_TASKGROUP.
12138 * omp-builtins.def (BUILT_IN_GOMP_TASK): Use
12139 BT_FN_VOID_OMPFN_PTR_OMPCPYFN_LONG_LONG_BOOL_UINT_PTR
12140 instead of BT_FN_VOID_OMPFN_PTR_OMPCPYFN_LONG_LONG_BOOL_UINT.
12141 (BUILT_IN_GOMP_TARGET, BUILT_IN_GOMP_TARGET_DATA,
12142 BUILT_IN_GOMP_TARGET_END_DATA, BUILT_IN_GOMP_TARGET_UPDATE,
12143 BUILT_IN_GOMP_TEAMS, BUILT_IN_BARRIER_CANCEL,
12144 BUILT_IN_GOMP_LOOP_END_CANCEL,
12145 BUILT_IN_GOMP_SECTIONS_END_CANCEL, BUILT_IN_OMP_GET_TEAM_NUM,
12146 BUILT_IN_OMP_GET_NUM_TEAMS, BUILT_IN_GOMP_TASKGROUP_START,
12147 BUILT_IN_GOMP_TASKGROUP_END, BUILT_IN_GOMP_PARALLEL_LOOP_STATIC,
12148 BUILT_IN_GOMP_PARALLEL_LOOP_DYNAMIC,
12149 BUILT_IN_GOMP_PARALLEL_LOOP_GUIDED,
12150 BUILT_IN_GOMP_PARALLEL_LOOP_RUNTIME, BUILT_IN_GOMP_PARALLEL,
12151 BUILT_IN_GOMP_PARALLEL_SECTIONS, BUILT_IN_GOMP_CANCEL,
12152 BUILT_IN_GOMP_CANCELLATION_POINT): New built-ins.
12153 (BUILT_IN_GOMP_PARALLEL_LOOP_STATIC_START,
12154 BUILT_IN_GOMP_PARALLEL_LOOP_DYNAMIC_START,
12155 BUILT_IN_GOMP_PARALLEL_LOOP_GUIDED_START,
12156 BUILT_IN_GOMP_PARALLEL_LOOP_RUNTIME_START,
12157 BUILT_IN_GOMP_PARALLEL_START, BUILT_IN_GOMP_PARALLEL_END,
12158 BUILT_IN_GOMP_PARALLEL_SECTIONS_START): Remove.
12159 * tree-inline.c (remap_gimple_stmt, estimate_num_insns):
12160 Handle GIMPLE_OMP_TARGET, GIMPLE_OMP_TEAMS and GIMPLE_OMP_TASKGROUP.
12161 * gimple.c (gimple_build_omp_taskgroup, gimple_build_omp_target,
12162 gimple_build_omp_teams): New functions.
12163 (walk_gimple_op): Handle GIMPLE_OMP_TARGET, GIMPLE_OMP_TEAMS and
12164 GIMPLE_OMP_TASKGROUP. Walk optional lhs on GIMPLE_OMP_RETURN.
12165 (walk_gimple_stmt, gimple_copy): Handle GIMPLE_OMP_TARGET,
12166 GIMPLE_OMP_TEAMS and GIMPLE_OMP_TASKGROUP.
12167 * gimple.h (enum gf_mask): GF_OMP_FOR_KIND_DISTRIBUTE,
12168 GF_OMP_FOR_COMBINED, GF_OMP_FOR_COMBINED_INTO,
12169 GF_OMP_TARGET_KIND_MASK, GF_OMP_TARGET_KIND_REGION,
12170 GF_OMP_TARGET_KIND_DATA, GF_OMP_TARGET_KIND_UPDATE,
12171 GF_OMP_ATOMIC_SEQ_CST): New.
12172 (gimple_build_omp_taskgroup, gimple_build_omp_target,
12173 gimple_build_omp_teams): New prototypes.
12174 (gimple_has_substatements): Handle GIMPLE_OMP_TARGET,
12175 GIMPLE_OMP_TEAMS and GIMPLE_OMP_TASKGROUP.
12176 (gimple_omp_subcode): Use GIMPLE_OMP_TEAMS instead of
12177 GIMPLE_OMP_SINGLE as end of range.
12178 (gimple_omp_return_set_lhs, gimple_omp_return_lhs,
12179 gimple_omp_return_lhs_ptr, gimple_omp_atomic_seq_cst_p,
12180 gimple_omp_atomic_set_seq_cst, gimple_omp_for_combined_p,
12181 gimple_omp_for_set_combined_p, gimple_omp_for_combined_into_p,
12182 gimple_omp_for_set_combined_into_p, gimple_omp_target_clauses,
12183 gimple_omp_target_clauses_ptr, gimple_omp_target_set_clauses,
12184 gimple_omp_target_kind, gimple_omp_target_set_kind,
12185 gimple_omp_target_child_fn, gimple_omp_target_child_fn_ptr,
12186 gimple_omp_target_set_child_fn, gimple_omp_target_data_arg,
12187 gimple_omp_target_data_arg_ptr, gimple_omp_target_set_data_arg,
12188 gimple_omp_teams_clauses, gimple_omp_teams_clauses_ptr,
12189 gimple_omp_teams_set_clauses): New inlines.
12190 (CASE_GIMPLE_OMP): Add GIMPLE_OMP_TARGET, GIMPLE_OMP_TEAMS
12191 and GIMPLE_OMP_TASKGROUP.
12192 * tree-core.h (enum omp_clause_code): Add new OpenMP 4.0 clause codes.
12193 (enum omp_clause_depend_kind, enum omp_clause_map_kind,
12194 enum omp_clause_proc_bind_kind): New.
12195 (union omp_clause_subcode): Add depend_kind, map_kind and
12196 proc_bind_kind fields.
12197 * tree-cfg.c (make_edges): Handle GIMPLE_OMP_TARGET,
12198 GIMPLE_OMP_TEAMS and GIMPLE_OMP_TASKGROUP.
12199 * langhooks-def.h (lhd_omp_mappable_type): New prototype.
12200 (LANG_HOOKS_OMP_MAPPABLE_TYPE): Define.
12201 (LANG_HOOKS_FOR_TYPES_INITIALIZER): Add it.
12203 2013-10-10 Teresa Johnson <tejohnson@google.com>
12205 * predict.c (tree_estimate_probability): Add new parameter
12206 for estimate_bb_frequencies.
12207 (estimate_bb_frequencies): Add new parameter to force estimation.
12208 (rebuild_frequencies): When max frequency in function is small,
12209 recompute counts from frequencies.
12210 * predict.h (estimate_bb_frequencies): New parameter.
12212 2013-10-10 David Malcolm <dmalcolm@redhat.com>
12214 * ipa-inline.c (ipa_inline): Fix leak of "order" when
12215 optimizations are disabled.
12217 2013-10-10 David Malcolm <dmalcolm@redhat.com>
12219 * coverage.c (coverage_finish): Fix leak of da_file_name.
12221 2013-10-10 Jan Hubicka <jh@suse.cz>
12223 * config/i386/x86-tune.def: Enable X86_TUNE_SSE_TYPELESS_STORES
12224 for generic, enable X86_TUNE_SSE_LOAD0_BY_PXOR for Bulldozer,
12225 Bobcat and generic.
12227 2013-10-10 Jakub Jelinek <jakub@redhat.com>
12229 PR middle-end/58670
12230 * stmt.c (expand_asm_operands): Add FALLTHRU_BB argument,
12231 if any labels are in FALLTHRU_BB, use a special label emitted
12232 immediately after the asm goto insn rather than label_rtx
12234 (expand_asm_stmt): Adjust caller.
12235 * cfgrtl.c (commit_one_edge_insertion): Force splitting of
12236 edge if the last insn in predecessor is a jump with single successor,
12237 but it isn't simplejump_p.
12239 2013-10-10 Richard Biener <rguenther@suse.de>
12241 PR tree-optimization/58656
12242 * tree-ssa-pre.c (phi_translate): Do not cache failed translations.
12244 2013-10-10 Andrew MacLeod <amacleod@redhat.com>
12246 * gimplify.c: Include expr.h and tm_p.h for targets with special
12247 va-arg padding requirements.
12249 2013-10-10 Andrew MacLeod <amacleod@redhat.com>
12251 * tree-flow.h: Move some prototypes to gimple.h.
12252 (gimple_fold_indirect_ref): Move prototype to gimple-fold.h.
12253 * gimple.h: Relocate some prototypes from tree-flow.h
12254 * builtins.c (std_gimplify_va_arg_expr, build_va_arg_indirect_ref):
12255 Move to gimplify.c.
12256 * gimplify.c (gimple_fold_indirect_ref): Move to gimple-fold.c.
12257 (build_va_arg_indirect_ref): Relocate and make static.
12258 (std_gimplify_va_arg_expr): Relocate here.
12259 * gimple-fold.c (gimple_fold_indirect_ref): Relocate here.
12260 * gimple-fold.h (gimple_fold_indirect_ref): Add prototype.
12262 2013-10-10 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
12264 * doc/md.texi: Document the mnemonic attribute.
12266 2013-10-10 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
12269 * gensupport.c (gen_mnemonic_attr): Handle (set (attr x) y) and
12270 (set_attr_alternative x ...) when searching for user defined
12271 mnemonic attribute.
12273 2013-10-10 Andrew MacLeod <amacleod@redhat.com>
12275 * config/aplha/alpha.c: Add gimple-ssa.h to include list.
12277 2013-10-09 Easwaran Raman <eraman@google.com>
12279 * params.def (PARAM_MIN_SIZE_FOR_STACK_SHARING): New param...
12280 * cfgexpand.c (defer_stack_allocation): ...use here
12281 * doc/invoke.texi: Add documentation for min-size-for-stack-sharing.
12283 2013-10-09 Zhenqiang Chen <zhenqiang.chen@arm.com>
12285 * tree-ssa-phiopts.c (rhs_is_fed_for_value_replacement): New function.
12286 (operand_equal_for_value_replacement): New function, extracted from
12287 value_replacement and enhanced to catch more cases.
12288 (value_replacement): Use operand_equal_for_value_replacement.
12290 2013-10-09 Andrew MacLeod <amacleod@redhat.com>
12292 * loop-doloop.c (doloop_modify, doloop_optimize): Use
12293 get_max_loop_iterations.
12295 2013-10-09 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
12297 * config/arm/aarch-common.c (arm_early_load_addr_dep):
12298 Place comment above function.
12300 2013-10-09 Andrew MacLeod <amacleod@redhat.com>
12302 * tree-flow.h: Remove all remaining prototypes, enums and structs that
12303 are not related to tree-cfg.c.
12304 * tree-ssa-address.h: New file. Relocate prototypes.
12305 * tree-ssa-address.c: (struct mem_address): Relocate from tree-flow.h.
12306 (addr_for_mem_ref): New. Combine call to get_address_description and
12307 return addr_for_mem_ref.
12308 * expr.c (expand_expr_real_1): Use new addr_for_mem_ref routine.
12309 * tree-ssa-live.h: Adjust prototypes.
12310 * passes.c: Include tree-ssa-live.h.
12311 * gimple-pretty-print.h (gimple_dump_bb): Add prototype.
12312 * graphite.c (graphite_transform_loops): Make static.
12313 (graphite_transforms, gate_graphite_transforms, pass_data_graphite,
12314 make_pass_graphite, pass_data_graphite_transforms,
12315 make_pass_graphite_transforms): Relocate here from tree-ssa-loop.c.
12316 * ipa-pure-const.c (warn_function_noreturn): Make static.
12317 (execute_warn_function_noreturn, gate_warn_function_noreturn,
12318 class pass_warn_function_noreturn, make_pass_warn_function_noreturn):
12319 Relocate from tree-cfg.c
12320 * tree-cfg.c (tree_node_can_be_shared, gimple_empty_block_p): Make
12322 (execute_warn_function_noreturn, gate_warn_function_noreturn,
12323 class pass_warn_function_noreturn, make_pass_warn_function_noreturn):
12324 Move to ipa-pure-const.c.
12325 (execute_fixup_cfg, class pass_fixup_cfg, make_pass_fixup_cfg):
12326 Relocate from tree-optimize.c.
12327 * tree-optimize.c (execute_fixup_cfg, class pass_fixup_cfg,
12328 make_pass_fixup_cfg): Move to tree-cfg.c.
12329 * tree-chrec.h: (enum ev_direction): Relocate here from tree-flow.h.
12330 Relocate some prototypes.
12331 * tree-data-ref.h (tree_check_data_deps) Add prototype.
12332 * tree-dump.c (dump_function_to_file): Remove prototype.
12333 Add tree-flow.h to the include file.
12334 * tree-dump.h: Remove prototype.
12335 * tree-parloops.h: New File. Add prototypes.
12336 * tree-parloops.c (gate_tree_parallelize_loops, tree_parallelize_loops,
12337 pass_data_parallelize_loops, make_pass_parallelize_loops): Relocate
12338 from tree-ssa-loop.c.
12339 * tree-predcom.c (run_tree_predictive_commoning,
12340 gate_tree_predictive_commoning, pass_data_predcom, make_pass_predcom):
12341 Relocate here from tree-ssa-loop.c.
12342 * tree-ssa-dom.c (tree_ssa_dominator_optimize) Don't call
12343 ssa_name_values.release ().
12344 * tree-ssa-threadedge.h: New File. Relocate prototypes here.
12345 (ssa_name_values): Relocate from tree-flow.h.
12346 * tree-ssa.h: Include tree-ssa-threadedge.h and tree-ssa-address.h.
12347 * tree-ssa-loop.c (run_tree_predictive_commoning,
12348 gate_tree_predictive_commoning, pass_data_predcom, make_pass_predcom,
12349 graphite_transforms, gate_graphite_transforms, pass_data_graphite,
12350 make_pass_graphite, pass_data_graphite_transforms,
12351 make_pass_graphite_transforms, gate_tree_parallelize_loops,
12352 tree_parallelize_loops, pass_data_parallelize_loops,
12353 make_pass_parallelize_loops): Move to other files.
12354 * tree-vectorizer.h (lpeel_tree_duplicate_loop_to_edge_cfg): Prototype
12356 * tree.h: Remove prototypes from tree-address.c.
12358 2013-10-09 Andrew MacLeod <amacleod@redhat.com>
12360 * tree-flow.h (tm_restart_node, gimple_df): Move to gimple-ssa.h.
12361 (struct int_tree_map): Move to tree-hasher.h
12362 (SCALE, LABEL, PERCENT): Move to gimple.h
12363 * tree-flow-inline.h: Delete. Move functions to other files.
12364 (unmodifiable_var_p, ref_contains_array_ref): Unused, so delete.
12365 * gimple-ssa.h (tm_restart_node, gimple_df): Relocate from tree-flow.h.
12366 (gimple_in_ssa_p, gimple_vop): Relocate from tree-flow-inline.h
12367 * gimple.h (imple_stmt_max_uid, set_gimple_stmt_max_uid,
12368 inc_gimple_stmt_max_uid, get_lineno): Relocate from tree-flow-inline.h.
12369 (SCALE, LABEL, PERCENT): Relocate from tree-flow.h
12370 * tree-hasher.h: Don't include tree-flow.h.
12371 (struct int_tree_map): Relocate from tree-flow.h.
12372 * tree-sra.c (contains_view_convert_expr_p): Relocate from
12373 tree-flow-inline.h and make static.
12374 * tree-ssa-alias.h (ranges_overlap_p): Relocate from
12375 tree-flow-inline.h.
12376 * tree-ssa-operands.c (gimple_ssa_operands): Relocate from
12377 tree-flow-inline.h and make static.
12378 * tree.h (is_global_var, may_be_aliased): Relocate from
12379 tree-flow-inline.h.
12380 * Makefile.in (GTFILES): Remove tree-flow.h and add gimple-ssa.h.
12381 * value-prof.c: No longer include tree-flow-inline.h.
12382 * tree-switch-conversion.c: No longer include tree-flow-inline.h.
12384 2013-10-09 Andrew MacLeod <amacleod@redhat.com>
12386 * tree-flow.h: Move some protoypes. Include new tree-ssa-loop.h.
12387 (struct affine_iv, struct tree_niter_desc): Move to tree-ssa-loop.h.
12388 (enum move_pos): Move to tree-ssa-loop-im.h
12389 * cfgloop.h: Move some prototypes.
12390 (gcov_type_to_double_int): relocate from tree-ssa-loop.niter.c.
12391 * tree-flow-inline.h (loop_containing_stmt): Move to tree-ssa-loop.h.
12392 * tree-ssa-loop.h: New File. Include other tree-ssa-loop-*.h files.
12393 (struct affine_iv, struct tree_niter_desc): Relocate from tree-flow.h.
12394 (loop_containing_stmt): Relocate from tree-flow-inline.h.
12395 * tree-ssa-loop-ch.c: (do_while_loop_p): Make static.
12396 * tree-ssa-loop-im.c (for_each_index): Move to tree-ssa-loop.c.
12397 (enum move_pos): Relocate here.
12398 (lsm_tmp_name_add, gen_lsm_tmp_name, get_lsm_tmp_name): Move to
12400 (execute_sm_if_changed_flag_set): Change get_lsm_tmp_name call.
12401 (tree_ssa_loop_im, gate_tree_ssa_loop_im, pass_data_lim,
12402 make_pass_lim): Relocate here from tree-ssa-loop.c.
12403 * tree-ssa-loop-ivcanon.c (tree_num_loop_insns): Move to
12405 (loop_edge_to_cancel, unloop_loops): Make static.
12406 (tree_ssa_loop_ivcanon, gate_tree_ssa_loop_ivcanon, pass_data_iv_canon,
12407 make_pass_iv_canon): Relocate from tree-ssa-loop.c.
12408 (tree_complete_unroll, gate_tree_complete_unroll,
12409 pass_data_complete_unroll, make_pass_complete_unroll): Relocate here.
12410 (tree_complete_unroll_inner, gate_tree_complete_unroll_inner,
12411 pass_data_complete_unrolli, make_pass_complete_unrolli): Relocate here.
12412 * tree-ssa-loop-ivopts.c: Remove local prototypes.
12413 (stmt_invariant_in_loop_p): Remove unused function.
12414 * tree-ssa-loop-ivopts.h: New file. Add prototypes.
12415 * tree-ssa-loop-manip.h: New file. Add prototypes.
12416 * tree-ssa-loop-niter.c (record_niter_bound): Move to cfgloop.c.
12417 (gcov_type_to_double_int): Move to cfgloop.h.
12418 (double_int_cmp, bound_index,
12419 estimate_numbers_of_iterations_loop): Make static.
12420 (estimated_loop_iterations): Factor out get_estimated_loop_iterations.
12421 (max_loop_iterations): Factor out get_max_loop_iterations.
12422 (estimated_loop_iterations_int, max_stmt_executions_int): Move to
12424 * tree-ssa-loop-niter.h: New file. Add prototypes.
12425 * tree-ssa-loop-prefetch.c (tree_ssa_loop_prefetch,
12426 gate_tree_ssa_loop_prefetch, pass_data_loop_prefetch,
12427 make_pass_loop_prefetch): Relocate from tree-ssa-loop.c.
12428 * tree-ssa-loop-unswitch.c (tree_ssa_loop_unswitch,
12429 gate_tree_ssa_loop_unswitch, pass_data_tree_unswitch,
12430 make_pass_tree_unswitch): Relocate from tree-ssa-loop.c.
12431 * tree-ssa-loop.c (tree_ssa_loop_im, gate_tree_ssa_loop_im,
12432 pass_data_lim, make_pass_lim): Move to tree-ssa-loop-im.c.
12433 (tree_ssa_loop_unswitch, gate_tree_ssa_loop_unswitch,
12434 pass_data_tree_unswitch, make_pass_tree_unswitch): Move.
12435 (tree_ssa_loop_ivcanon, gate_tree_ssa_loop_ivcanon, pass_data_iv_canon,
12436 make_pass_iv_canon, tree_complete_unroll, gate_tree_complete_unroll,
12437 pass_data_complete_unroll, make_pass_complete_unroll,
12438 tree_complete_unroll_inner, gate_tree_complete_unroll_inner,
12439 pass_data_complete_unrolli, make_pass_complete_unrolli): Move to
12440 tree-ssa-loop-ivcanon.c.
12441 (tree_ssa_loop_prefetch, gate_tree_ssa_loop_prefetch,
12442 pass_data_loop_prefetch, make_pass_loop_prefetch): Move to
12443 tree-ssa-loop-prefetch.c.
12444 (for_each_index, lsm_tmp_name_add, gen_lsm_tmp_name): Relocate from
12445 tree-ssa-loop-im.c.
12446 (get_lsm_tmp_name): Relocate and add suffix parameter.
12447 (tree_num_loop_insns): Relocate from tree-ssa-ivcanon.c.
12448 * tree-scalar-evolution.h (simple_iv): Don't use affive_iv typedef.
12449 * cfgloop.c (record_niter_bound, estimated_loop_iterations_int,
12450 max_stmt_executions_int): Move from tree-ssa-loop-niter.c.
12451 (get_estimated_loop_iterations): Factor out accessor from
12452 estimated_loop_iterations in tree-ssa-loop-niter.c.
12453 (get_max_loop_iterations): Factor out accessor from
12454 _max_loop_iterations in tree-ssa-niter.c.
12455 * loop-unroll.c (decide_unroll_constant_iterations,
12456 decide_unroll_runtime_iterations, decide_peel_simple,
12457 decide_unroll_stupid): Use new get_* accessors.
12459 2013-10-09 Marc Glisse <marc.glisse@inria.fr>
12461 PR tree-optimization/20318
12462 * doc/extend.texi (returns_nonnull): New function attribute.
12463 * fold-const.c (tree_expr_nonzero_warnv_p): Look for returns_nonnull
12465 * tree-vrp.c (gimple_stmt_nonzero_warnv_p): Likewise.
12466 (stmt_interesting_for_vrp): Accept all GIMPLE_CALL.
12468 2013-10-09 Eric Botcazou <ebotcazou@adacore.com>
12470 PR middle-end/58570
12471 * tree-ssa-alias.c (nonoverlapping_component_refs_of_decl_p): Return
12472 false if both components are bitfields.
12474 2013-10-09 Alex Velenko <Alex.Velenko@arm.com>
12476 * config/aarch64/arm_neon.h (vclz_s8, vclz_s16, vclz_s32)
12477 (vclzq_s8, vclzq_s16, vclzq_s32, vclz_u8, vclz_u16, vclz_u32)
12478 (vclzq_u8, vclzq_u16, vclzq_u32): Replace ASM with C.
12479 * config/aarch64/aarch64.h
12480 (CLZ_DEFINED_VALUE_AT_ZERO): Macro fixed for clz.
12481 * config/aarch64/aarch64-simd-builtins.def
12482 (VAR1 (UNOP, clz, 0, v4si)): Replaced with iterator.
12484 2013-10-09 Alex Velenko <Alex.Velenko@arm.com>
12486 * config/aarch64/arm_neon.h (vadd_f64, vsub_f64): Implementation added.
12488 2013-10-09 Alex Velenko <Alex.Velenko@arm.com>
12490 * config/aarch64/arm_neon.h (vdiv_f64): Added.
12492 2013-10-09 Alex Velenko <Alex.Velenko@arm.com>
12494 * config/aarch64/arm_neon.h (vneg_f32): Asm replaced with C.
12495 (vneg_f64): New intrinsic.
12496 (vneg_s8): Asm replaced with C.
12497 (vneg_s16): Likewise.
12498 (vneg_s32): Likewise.
12499 (vneg_s64): New intrinsic.
12500 (vnegq_f32): Asm replaced with C.
12501 (vnegq_f64): Likewise.
12502 (vnegq_s8): Likewise.
12503 (vnegq_s16): Likewise.
12504 (vnegq_s32): Likewise.
12505 (vnegq_s64): Likewise.
12507 2013-10-09 Renlin Li <Renlin.Li@arm.com>
12509 * config/arm/arm.c (arm_output_mi_thunk): Use plus_constant.
12511 2013-10-09 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
12513 * config/s390/s390.c (s390_register_info_stdarg_fpr): Remove
12514 packed stack special handling.
12515 (s390_frame_info, s390_emit_prologue, s390_emit_epilogue): Switch
12516 back to fixed stack slots for FPRs saved due to stdarg.
12518 2013-10-09 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
12520 * config/s390/s390.c (s390_frame_info): Restructure function.
12522 2013-10-09 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
12524 * config/s390/s390.c (struct s390_frame_layout): New field
12526 (cfun_save_arg_fprs_p, cfun_gpr_save_slot): New macros.
12527 (s390_reg_clobbered_rtx, s390_regs_ever_clobbered): Change type of
12528 regs_ever_clobbered to char*.
12529 (s390_regs_ever_clobbered): Check crtl->saves_all_registers instead
12530 of cfun->has_nonlocal_label. Ignore frame related restore INSNs.
12531 (s390_register_info): Enable FPR save slots. Move/Copy some
12532 functionality into ...
12533 (s390_register_info_gprtofpr, s390_register_info_stdarg_fpr)
12534 (s390_register_info_stdarg_gpr, s390_optimize_register_info): New
12536 (s390_frame_info): Do gpr slot allocation here now. stdarg does
12537 not imply a stack frame.
12538 (s390_init_frame_layout): Remove variable clobbered_regs.
12539 (s390_update_register_info): Remove function.
12540 (s390_hard_regno_rename_ok): Call-saved regs without a save slot
12541 cannot be used for register renaming.
12542 (s390_hard_regno_scratch_ok): New function.
12543 (TARGET_HARD_REGNO_SCRATCH_OK): Define target hook.
12544 (s390_initial_elimination_offset): Change offset calculation of
12545 the return address pointer.
12546 (save_gprs): Deal with only r6 being saved from the call-saved regs.
12547 (restore_gprs): Set frame related flag.
12548 (s390_save_gprs_to_fprs, s390_restore_gprs_from_fprs): New functions.
12549 (s390_emit_prologue): Call s390_register_info instead of
12550 s390_update_frame_layout. Call s390_save_gprs_to_fprs.
12551 (s390_emit_epilogue): Call s390_restore_gprs_from_fprs.
12552 (s390_optimize_prologue): Call s390_optimize_register_info.
12553 Try to remove also FPR slot save/restore INSNs. Remove frame
12554 related flags from restore INSNs.
12556 2013-10-08 DJ Delorie <dj@redhat.com>
12558 * config/rl78/rl78-expand.md (movqi): use operands[] not operandN.
12561 * config/rl78/rl78.c (rl78_print_operand_1): Change %c to %C to
12562 avoid conflict with the MI use of %c.
12563 * config/rl78/rl78-real.md: change %c to %C throughout.
12564 * config/rl78/rl78-virt.md: Likewise.
12566 2013-10-08 Jan Hubicka <jh@suse.cz>
12568 * config/i386/i386.c (ix86_option_override_internal): Switch
12569 to SSE math for -ffast-math when target ISA supports SSE2.
12571 2013-10-08 Andrew MacLeod <amacleod@redhat.com>
12573 * tree-flow.h: Remove some prototypes.
12574 * tree.h: Remove some protypes, add a couple.
12575 * tree.c (using_eh_for_cleanups_flag, using_eh_for_cleanups,
12576 using_eh_for_cleanups_p): Add interface routines for front ends.
12577 * tree-eh.h: New file. Add protoptyes.
12578 * tree-eh.c (using_eh_for_cleanups_p, using_eh_for_cleanups): Delete.
12579 (add_stmt_to_eh_lp_fn): Make static.
12580 (lower_try_finally): Use new using_eh_for_cleanups_p.
12581 * emit-rtl.c: Include tree-eh.h.
12582 * gimple.h: Include tree-eh.h.
12584 2013-10-08 Marc Glisse <marc.glisse@inria.fr>
12586 PR tree-optimization/58480
12587 * tree-vrp.c (infer_nonnull_range): New function.
12588 (infer_value_range): Call infer_nonnull_range.
12590 2013-10-08 Dehao Chen <dehao@google.com>
12592 PR tree-optimization/58619
12593 * tree-inline.c (copy_phis_for_bb): Combine location data
12596 2013-10-08 Zhenqiang Chen <zhenqiang.chen@linaro.org>
12599 * config/arm/arm.c (arm_emit_ldrd_pop): Attach
12600 RTX_FRAME_RELATED_P on INSN.
12602 2013-10-07 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
12604 * config/rs6000/rs6000.c (altivec_expand_vec_perm_const_le): New.
12605 (altivec_expand_vec_perm_const): Call it.
12607 2013-10-07 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
12609 * config/rs6000/vector.md (mov<mode>): Emit permuted move
12610 sequences for LE VSX loads and stores at expand time.
12611 * config/rs6000/rs6000-protos.h (rs6000_emit_le_vsx_move): New
12613 * config/rs6000/rs6000.c (rs6000_const_vec): New.
12614 (rs6000_gen_le_vsx_permute): New.
12615 (rs6000_gen_le_vsx_load): New.
12616 (rs6000_gen_le_vsx_store): New.
12617 (rs6000_gen_le_vsx_move): New.
12618 * config/rs6000/vsx.md (*vsx_le_perm_load_v2di): New.
12619 (*vsx_le_perm_load_v4si): New.
12620 (*vsx_le_perm_load_v8hi): New.
12621 (*vsx_le_perm_load_v16qi): New.
12622 (*vsx_le_perm_store_v2di): New.
12623 (*vsx_le_perm_store_v4si): New.
12624 (*vsx_le_perm_store_v8hi): New.
12625 (*vsx_le_perm_store_v16qi): New.
12626 (*vsx_xxpermdi2_le_<mode>): New.
12627 (*vsx_xxpermdi4_le_<mode>): New.
12628 (*vsx_xxpermdi8_le_V8HI): New.
12629 (*vsx_xxpermdi16_le_V16QI): New.
12630 (*vsx_lxvd2x2_le_<mode>): New.
12631 (*vsx_lxvd2x4_le_<mode>): New.
12632 (*vsx_lxvd2x8_le_V8HI): New.
12633 (*vsx_lxvd2x16_le_V16QI): New.
12634 (*vsx_stxvd2x2_le_<mode>): New.
12635 (*vsx_stxvd2x4_le_<mode>): New.
12636 (*vsx_stxvd2x8_le_V8HI): New.
12637 (*vsx_stxvd2x16_le_V16QI): New.
12639 2013-10-07 Renlin Li <Renlin.Li@arm.com>
12641 * config/arm/arm-cores.def (cortex-a53): Use cortex tuning.
12643 2013-10-07 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
12645 * config/s390/s390.c (s390_register_info): Make the call-saved FPR
12646 loop to work also for 31bit ABI.
12647 Save the stack pointer for frame_size > 0.
12649 2013-10-07 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
12651 * config/s390/s390.md ("tbegin", "tbegin_nofloat", "tbegin_retry")
12652 ("tbegin_retry_nofloat", "tend", "tabort", "tx_assist"): Remove
12653 constraint letters from expanders.
12654 ("tbegin_retry", "tbegin_retry_nofloat"): Change predicate of the
12655 retry count to general_operand.
12656 ("tabort"): Give operand 0 a mode.
12657 ("tabort_1"): Add mode and constraint letter for operand 0.
12658 * doc/extend.texi: Fix protoype of __builtin_non_tx_store.
12660 2013-10-04 Jeff Law <law@redhat.com>
12662 * tree-ssa-threadedge.c: Fix some trailing whitespace problems.
12664 * tree-ssa-threadedge.c (thread_through_normal_block): Broken
12666 (thread_across_edge): Here. Call it.
12668 2013-10-04 Cary Coutant <ccoutant@google.com>
12670 * dwarf2out.c (dw_sra_loc_expr): Release addr_table entries when
12671 discarding a location list expression (or a piece of one).
12673 2013-10-03 Jan Hubicka <jh@suse.cz>
12675 * config/i386/i386.c (ix86_issue_rate): Pentium4, Nocona has issue
12676 rate of 2. Core2, Corei7 and Haswell has issue rate of 4.
12677 (ix86_adjust_cost): Remove Atom case; fix core2/corei7/Haswell case.
12679 2013-10-03 Jan Hubicka <jh@suse.cz>
12681 * config/i386/i386.c (ix86_option_override_internal): Do not enable
12682 accumulate-outgoing-args when producing unwind info.
12684 2013-10-03 Wei Mi <wmi@google.com>
12686 * lra-constraints.c (insert_move_for_subreg): New function
12687 extracted from simplify_operand_subreg.
12688 (simplify_operand_subreg): Add reload for paradoxical subreg.
12690 2013-10-03 Rong Xu <xur@google.com>
12692 * ipa-inline-analysis.c (find_foldable_builtin_expect): Find
12693 the candidate of builtin_expect such that we should fix the
12694 size/time estimation.
12695 (estimate_function_body_sizes): Do the acutally size/time fix-up
12696 for builtin_expect.
12698 2013-10-03 Rong Xu <xur@google.com>
12700 * predict.c (tree_predict_by_opcode): Get the probability
12701 for builtin_expect from param builtin_expect_probability.
12702 * params.def (BUILTIN_EXPECT_PROBABILITY): New parameter.
12703 * predict.def (PRED_BUILTIN_EXPECT_RELAXED): Fix comments.
12704 * doc/invoke.texi: Add documentation for builtin-expect-probability.
12706 2013-10-03 Marc Glisse <marc.glisse@inria.fr>
12709 * common.opt (fcheck-new): Moved from c.opt. Make it 'Common'.
12710 * calls.c (alloca_call_p): Use get_callee_fndecl.
12711 * fold-const.c (tree_expr_nonzero_warnv_p): Handle operator new.
12712 * tree-vrp.c (gimple_stmt_nonzero_warnv_p, stmt_interesting_for_vrp):
12714 (vrp_visit_stmt): Remove duplicated code.
12716 2013-10-03 Michael Meissner <meissner@linux.vnet.ibm.com>
12718 * config/rs6000/rs6000-builtin.def (XSRDPIM): Use floatdf2,
12719 ceildf2, btruncdf2, instead of vsx_* name.
12721 * config/rs6000/vsx.md (vsx_add<mode>3): Change arithmetic
12722 iterators to only do V2DF and V4SF here. Move the DF code to
12723 rs6000.md where it is combined with SF mode. Replace <VSv> with
12724 just 'v' since only vector operations are handled with these insns
12725 after moving the DF support to rs6000.md.
12726 (vsx_sub<mode>3): Likewise.
12727 (vsx_mul<mode>3): Likewise.
12728 (vsx_div<mode>3): Likewise.
12729 (vsx_fre<mode>2): Likewise.
12730 (vsx_neg<mode>2): Likewise.
12731 (vsx_abs<mode>2): Likewise.
12732 (vsx_nabs<mode>2): Likewise.
12733 (vsx_smax<mode>3): Likewise.
12734 (vsx_smin<mode>3): Likewise.
12735 (vsx_sqrt<mode>2): Likewise.
12736 (vsx_rsqrte<mode>2): Likewise.
12737 (vsx_fms<mode>4): Likewise.
12738 (vsx_nfma<mode>4): Likewise.
12739 (vsx_copysign<mode>3): Likewise.
12740 (vsx_btrunc<mode>2): Likewise.
12741 (vsx_floor<mode>2): Likewise.
12742 (vsx_ceil<mode>2): Likewise.
12743 (vsx_smaxsf3): Delete scalar ops that were moved to rs6000.md.
12744 (vsx_sminsf3): Likewise.
12745 (vsx_fmadf4): Likewise.
12746 (vsx_fmsdf4): Likewise.
12747 (vsx_nfmadf4): Likewise.
12748 (vsx_nfmsdf4): Likewise.
12749 (vsx_cmpdf_internal1): Likewise.
12751 * config/rs6000/rs6000.h (TARGET_SF_SPE): Define macros to make it
12752 simpler to select whether a target has SPE or traditional floating
12753 point support in iterators.
12754 (TARGET_DF_SPE): Likewise.
12755 (TARGET_SF_FPR): Likewise.
12756 (TARGET_DF_FPR): Likewise.
12757 (TARGET_SF_INSN): Macros to say whether floating point support
12758 exists for a given operation for expanders.
12759 (TARGET_DF_INSN): Likewise.
12761 * config/rs6000/rs6000.c (Ftrad): New mode attributes to allow
12762 combining of SF/DF mode operations, using both traditional and VSX
12770 (abs<mode>2): Combine SF/DF modes using traditional floating point
12771 instructions. Add support for using the upper DF registers with
12772 VSX support, and SF registers with power8-vector support. Update
12773 expanders for operations supported by both the SPE and traditional
12774 floating point units.
12775 (abs<mode>2_fpr): Likewise.
12776 (nabs<mode>2): Likewise.
12777 (nabs<mode>2_fpr): Likewise.
12778 (neg<mode>2): Likewise.
12779 (neg<mode>2_fpr): Likewise.
12780 (add<mode>3): Likewise.
12781 (add<mode>3_fpr): Likewise.
12782 (sub<mode>3): Likewise.
12783 (sub<mode>3_fpr): Likewise.
12784 (mul<mode>3): Likewise.
12785 (mul<mode>3_fpr): Likewise.
12786 (div<mode>3): Likewise.
12787 (div<mode>3_fpr): Likewise.
12788 (sqrt<mode>3): Likewise.
12789 (sqrt<mode>3_fpr): Likewise.
12790 (fre<Fs>): Likewise.
12791 (rsqrt<mode>2): Likewise.
12792 (cmp<mode>_fpr): Likewise.
12793 (smax<mode>3): Likewise.
12794 (smin<mode>3): Likewise.
12795 (smax<mode>3_vsx): Likewise.
12796 (smin<mode>3_vsx): Likewise.
12797 (negsf2): Delete SF operations that are merged with DF.
12798 (abssf2): Likewise.
12799 (addsf3): Likewise.
12800 (subsf3): Likewise.
12801 (mulsf3): Likewise.
12802 (divsf3): Likewise.
12804 (fmasf4_fpr): Likewise.
12805 (fmssf4_fpr): Likewise.
12806 (nfmasf4_fpr): Likewise.
12807 (nfmssf4_fpr): Likewise.
12808 (sqrtsf2): Likewise.
12809 (rsqrtsf_internal1): Likewise.
12810 (smaxsf3): Likewise.
12811 (sminsf3): Likewise.
12812 (cmpsf_internal1): Likewise.
12813 (copysign<mode>3_fcpsgn): Add VSX/power8-vector support.
12814 (negdf2): Delete DF operations that are merged with SF.
12815 (absdf2): Likewise.
12816 (nabsdf2): Likewise.
12817 (adddf3): Likewise.
12818 (subdf3): Likewise.
12819 (muldf3): Likewise.
12820 (divdf3): Likewise.
12822 (rsqrtdf_internal1): Likewise.
12823 (fmadf4_fpr): Likewise.
12824 (fmsdf4_fpr): Likewise.
12825 (nfmadf4_fpr): Likewise.
12826 (nfmsdf4_fpr): Likewise.
12827 (sqrtdf2): Likewise.
12828 (smaxdf3): Likewise.
12829 (smindf3): Likewise.
12830 (cmpdf_internal1): Likewise.
12831 (lrint<mode>di2): Use TARGET_<MODE>_FPR macro.
12832 (btrunc<mode>2): Delete separate expander, and combine with the
12833 insn and add VSX instruction support. Use TARGET_<MODE>_FPR.
12834 (btrunc<mode>2_fpr): Likewise.
12835 (ceil<mode>2): Likewise.
12836 (ceil<mode>2_fpr): Likewise.
12837 (floor<mode>2): Likewise.
12838 (floor<mode>2_fpr): Likewise.
12839 (fma<mode>4_fpr): Combine SF and DF fused multiply/add support.
12840 Add support for using the upper registers with VSX and
12841 power8-vector. Move insns to be closer to the define_expands. On
12842 VSX systems, prefer the traditional form of FMA over the VSX
12843 version, since the traditional form allows the target not to
12844 overlap with the inputs.
12845 (fms<mode>4_fpr): Likewise.
12846 (nfma<mode>4_fpr): Likewise.
12847 (nfms<mode>4_fpr): Likewise.
12849 2013-10-03 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
12850 Richard Earnshaw <richard.earnshaw@arm.com>
12852 * config/arm/aarch-common-protos.h (struct alu_cost_table): New.
12853 (struct mult_cost_table): Likewise.
12854 (struct mem_cost_table): Likewise.
12855 (struct fp_cost_table): Likewise.
12856 (struct vector_cost_table): Likewise.
12857 (cpu_cost_table): Likewise.
12858 * config/arm/arm.opt (mold-rts-costs): New option.
12859 (mnew-generic-costs): Likewise.
12860 * config/arm/arm.c (generic_extra_costs): New table.
12861 (cortexa15_extra_costs): Likewise.
12862 (arm_slowmul_tune): Use NULL as new costs.
12863 (arm_fastmul_tune): Likewise.
12864 (arm_strongarm_tune): Likewise.
12865 (arm_xscale_tune): Likewise.
12866 (arm_9e_tune): Likewise.
12867 (arm_v6t2_tune): Likewise.
12868 (arm_cortex_a5_tune): Likewise.
12869 (arm_cortex_a9_tune): Likewise.
12870 (arm_v6m_tune): Likewise.
12871 (arm_fa726te_tune): Likewise.
12872 (arm_cortex_a15_tune): Use cortex15_extra_costs.
12873 (arm_cortex_tune): Use generict_extra_costs.
12874 (shifter_op_p): New function.
12875 (arm_unspec_cost): Likewise.
12876 (LIBCALL_COST): Define.
12877 (arm_new_rtx_costs): New function.
12878 (arm_rtx_costs): Use arm_new_rtx_costs when core-specific
12879 table is available. Use old costs otherwise unless mnew-generic-costs
12881 * config/arm/arm-protos.h (tune_params): Add insn_extra_cost field.
12882 (cpu_cost_table): Declare.
12884 2013-10-03 Marcus Shawcroft <marcus.shawcroft@arm.com>
12887 * config/aarch64/aarch64.md (*adds_mul_imm_<mode>)
12888 (*subs_mul_imm_<mode>)
12889 (*add_<shift>_<mode>, *add_<shift>_si_uxtw,*add_mul_imm_<mode>)
12890 (*sub_<shift>_<mode>)
12891 (*sub_<shift>_si_uxtw,*sub_mul_imm_<mode>, *sub_mul_imm_si_uxtw):
12892 Remove k constraint.
12894 2013-10-03 Ian Bolton <ian.bolton@arm.com>
12896 * config/aarch64/aarch64.c (aarch64_secondary_reload): Remove legacy
12898 * config/aarch64/aarch64.md (reload_sp_immediate): Likewise.
12900 2013-10-02 Teresa Johnson <tejohnson@google.com>
12902 * predict.c (probably_never_executed): New function.
12903 (probably_never_executed_bb_p): Invoke probably_never_executed.
12904 (probably_never_executed_edge_p): Ditto.
12905 * bb-reorder.c (find_rarely_executed_basic_blocks_and_crossing_edges):
12906 Treat profile insanities conservatively.
12908 2013-10-02 John David Anglin <danglin@gcc.gnu.org>
12910 * config.gcc (hppa*64*-*-linux*): Don't add pa/t-linux to tmake_file.
12912 2013-10-02 Vladimir Makarov <vmakarov@redhat.com>
12914 * lra-constraints.c (process_alt_operand): Calculate scratch_p and
12915 use it. Use smaller increase for scratch. Don't increase reject
12916 for early clobber scratch.
12917 * lra-eliminations.c (eliminate_regs_in_insn): Remove all insns
12918 setting eliminated regs except setting fp from hfp.
12919 (lra_eliminate): Check lra_insn_recog_data on NULL.
12921 2013-10-02 Michael Meissner <meissner@linux.vnet.ibm.com>
12924 * config/rs6000/rs6000-cpus.def (ISA_2_6_MASKS_SERVER): Turn off
12925 setting -mvsx-timode by default until the underlying problem is fixed.
12926 (RS6000_CPU, power7 defaults): Likewise.
12928 2013-10-02 Uros Bizjak <ubizjak@gmail.com>
12930 * config/x-linux (host-linux.o): Remove header dependencies.
12931 Use $(COMPILE) and $(POSTCOMPILE).
12932 * config/t-linux-android (linux-android.o): Ditto.
12934 2013-10-02 Uros Bizjak <ubizjak@gmail.com>
12936 * Makefile.in (expmed.o-warn): Remove.
12938 2013-10-02 Andrew MacLeod <amacleod@redhat.com>
12940 * graphite-scop-detection.c: Include tree-ssa-propagate,h.
12941 * graphite-sese-to-poly.c: Include tree-ssa-propagate.h.
12943 2013-10-02 Teresa Johnson <tejohnson@google.com>
12945 * dojump.c (do_jump_1): Divide probability between
12946 both conditions of a TRUTH_ANDIF_EXPR/TRUTH_ORIF_EXPR.
12948 2013-10-02 Tom Tromey <tromey@redhat.com>
12950 * Makefile.in (DRIVER_DEFINES): Use $(if), not $(and).
12952 2013-10-02 Andrew MacLeod <amacleod@redhat.com>
12954 * tree-flow.h: Remove some prototypes.
12955 * tree-ssa-dce.c (mark_virtual_operand_for_renaming,
12956 mark_virtual_phi_result_for_renaming): Move to tree-into-ssa.c.
12957 * tree-into-ssa.c (mark_virtual_operand_for_renaming,
12958 mark_virtual_phi_result_for_renaming): Relocate here.
12959 * tree-into-ssa.h: Add prototypes.
12960 * tree-ssa-phiopt.c: (tree_ssa_phiopt_worker) Use
12961 single_pred_before_succ_order.
12962 (blocks_in_phiopt_order): Rename and move to cfganal.c.
12963 (nonfreeing_call_p) Move to gimple.c.
12964 * cfganal.c (single_pred_before_succ_order): Move and renamed from
12966 * basic-block.h (single_pred_before_succ_order): Add prototype.
12967 * gimple.c (nonfreeing_call_p): Relocate here.
12968 * gimple.h: Add prototype.
12969 * tree-ssa-ifcombine.c: Include tree-ssa-phiopt.h.
12970 * tree-ssa-dom.h: New file. Relocate prototypes here.
12971 * tree-ssa.h: Include tree-ssa-dom.h.
12973 2013-10-02 Uros Bizjak <ubizjak@gmail.com>
12975 * config/i386/x-i386 (driver-i386.o): Remove header dependencies.
12976 Use $(COMPILE) and $(POSTCOMPILE).
12978 * config/alpha/x-alpha (driver-alpha.o): Ditto.
12980 2013-10-02 Andrew MacLeod <amacleod@redhat.com>
12982 * tree-flow.h: Remove some prototypes.
12983 * gimple-fold.h: Add prototypes from gimple.h and tree-flow.h.
12984 * tree-ssa-propagate.h: Relocate prototypes from tree-flow.h.
12985 * tree-ssa-copy.c (may_propagate*, propagate_value, replace_exp,
12986 propagate_tree_value*): Move from here to...
12987 * tree-ssa-propagate.c (may_propagate*, propagate_value, replace_exp,
12988 propagate_tree_value*): Relocate here.
12989 * tree-ssa-propagate.h: Relocate prototypes from tree-flow.h.
12990 * gimple.h: Include gimple-fold.h, move prototypes into gimple-fold.h.
12991 * gimple-fold.c: Remove gimple-fold.h from include list.
12992 * tree-vrp.c: Remove gimple-fold.h from include list.
12993 * tree-ssa-sccvn.c: Remove gimple-fold.h from include list.
12994 * tree-ssa-ccp.c: Remove gimple-fold.h from include list.
12995 * tree-scalar-evolution.c: Add tree-ssa-propagate.h to include list.
12996 * tree-ssa-pre.c: Add tree-ssa-propagate.h to include list.
12997 * sese.c: Add tree-ssa-propagate.h to include list.
12999 2013-10-02 Richard Biener <rguenther@suse.de>
13001 * tree-loop-distribution.c: Include tree-vectorizer.h for
13002 find_loop_location.
13003 (enum partition_kind): Remove PKIND_REDUCTION.
13004 (struct partition_s): Remove has_writes member, add reduction_p member.
13005 (partition_alloc): Adjust.
13006 (partition_builtin_p): Likewise.
13007 (partition_has_writes): Remove.
13008 (partition_reduction_p): New function.
13009 (partition_merge_into): Likewise.
13010 (generate_code_for_partition): Commonize builtin partition
13012 (rdg_cannot_recompute_vertex_p): Remove.
13013 (already_processed_vertex_p): Likewise.
13014 (rdg_flag_vertex): Do not set has_writes.
13015 (classify_partition): Adjust.
13016 (rdg_build_partitions): Do not set has_writes, treat all
13017 partitions as useful.
13018 (distribute_loop): Record number of library calls generated. Adjust.
13019 (tree_loop_distribution): Report number of loops and library
13020 calls generated as opt-info.
13022 2013-10-02 Andrew MacLeod <amacleod@redhat.com>
13024 * tree-flow.h: Include new .h files. Move prototypes.
13025 * tree-cfgcleanup.h: New file. Add prototypes from tree-flow.h.
13026 * tree-dfa.h: New File. Add prototypes from tree-flow.h.
13027 (get_addr_base_and_unit_offset_1) Move from tree-flow-inline.h.
13028 * tree-pretty-print.h: Add prototypes from tree-flow.h.
13029 * tree-into-ssa.h: New File. Add prototypes from tree-flow.h.
13030 ({debug|dump}*): Move debugging prototypes out of tree-into-ssa.c.
13031 * tree-into-ssa.c ({debug|dump}*): Move prototypes to header file.
13032 * tree.h (get_ref_base_and_extent): Move prototype out.
13033 * tree-flow-inline.h (get_addr_base_and_unit_offset_1): Move to
13035 * gimple-low.h: New File. Add prototypes from tree-flow.h.
13036 * gimple-low.c (try_catch_may_fallthru, block_may_fallthru): Move to...
13037 * tree.c (try_catch_may_fallthru, block_may_fallthru): Here.
13038 * tree-scalar-evolution.c: Include tree.h.
13039 * sese.c: Include tree.h.
13040 * dumpfile.c: Move gimple-pretty-print.h include after tree.h.
13041 * dwarf2out.c: Include tree-dfa.h.
13042 * tree-chrec.c: Include tree.h.
13043 * tree-data-ref.c: Include tree.h.
13045 2013-10-02 Yufeng Zhang <yufeng.zhang@arm.com>
13047 * gimple-ssa-strength-reduction.c (backtrace_base_for_ref):
13050 2013-10-02 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
13052 * config/t-sol2 (sol2-c.o): Remove header dependencies.
13053 Use $(COMPILE) and $(POSTCOMPILE).
13054 (sol2-cxx.o): Likewise.
13055 (sol2-stubs.o): Likewise.
13056 (sol2.o): Likewise.
13057 * config/x-solaris (host-solaris.o): Likewise.
13059 * config/sparc/t-sparc (sparc.o): Remove.
13060 (sparc-c.o): Remove header dependencies.
13061 Use $(COMPILE) and $(POSTCOMPILE).
13062 * config/sparc/x-sparc: Likewise.
13064 2013-10-02 Joern Rennecke <joern.rennecke@embecosm.com>
13066 * config/arc/arc-opts.h: Add 2013 to Copyright years.
13067 * config/arc/arc700.md: Likewise.
13068 * config/arc/arc-modes.def: Likewise.
13069 * config/arc/arc-simd.h: Likewise.
13070 * config/arc/t-arc-uClibc: Likewise.
13071 * config/arc/t-arc-newlib: Likewise.
13073 2013-10-02 Renlin Li <renlin.li@arm.com>
13075 * config/aarch64/aarch64.c (aarch64_expand_prologue): Use
13077 (aarch64_expand_epilogue): Likewise.
13079 2013-10-02 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
13080 Yufeng Zhang <yufeng.zhang@arm.com>
13082 * gimple-ssa-strength-reduction.c (legal_cast_p_1): Forward
13084 (backtrace_base_for_ref): Call get_unwidened with 'base_in' if
13085 'base_in' represent a conversion and legal_cast_p_1 holds; set
13086 'base_in' with the returned value from get_unwidened.
13088 2013-10-02 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
13090 * config/arm/arm.c (arm_legitimize_reload_address): Explain why
13091 plus_constant is not used.
13093 2013-10-01 Wei Mi <wmi@google.com>
13095 * config/i386/x86-tune.def (DEF_TUNE): Remove m_CORE_ALL.
13096 * config/i386/i386.md: Add define_peephole2 to
13097 break partial reg stall for cvtss2sd/cvtsd2ss.
13099 2013-10-01 Joern Rennecke <joern.rennecke@embecosm.com>
13101 * config/arc/arc.c (pass_arc_ifcvt::clone):
13102 Update for ctxt_ -> m_ctxt change.
13104 2013-10-01 Jeff Law <law@redhat.com>
13106 * tree-ssa-threadupdate.c (struct redirection_data): Delete
13107 outgoing_edge and intermediate_edge fields. Instead store the path.
13108 (redirection_data::hash): Hash on the last edge's destination index.
13109 (redirection_data::equal): Check the entire thread path.
13110 (lookup_redirectio_data): Corresponding changes.
13111 (create_edge_and_update_destination_phis): Likewise.
13112 (thread_single_edge): Likewise.
13114 2013-10-01 Joern Rennecke <joern.rennecke@embecosm.com>
13115 Diego Novillo <dnovillo@google.com>
13117 * config/arc/simdext.md (UNSPEC_ARC_SIMD_VLD32WH): Delete.
13118 (UNSPEC_ARC_SIMD_VLD32WL): Likewise.
13119 (vld32wh_insn, vld32wl_insn): Delete commented-out old
13120 versions of these patterns.
13122 * doc/extend.texi (long_call/medium_call/short_call): Typo fix.
13123 (__builtin_arc_aligned): Likewise.
13125 * config/arc/arc.md: Expand adc_0 comment stating the intended
13126 purpose and why it isn't ready.
13127 Replace commented out call_value_via_label_mixed with a
13128 plain comment about bl_s.
13130 * config/arc/arc.c (stdio.h): Don't include directly.
13131 (arc_expand_epilogue): Remove [0]: Remove fp_restored_p.
13132 Remove if (1) condition.
13133 (arc_encode_section_info): Fix comment.
13135 2013-10-01 Joern Rennecke <joern.rennecke@embecosm.com>
13137 * config/arc/arc.c (arc_conditional_register_usage):
13138 Use ARC_FIRST_SIMD_VR_REG / ARC_LAST_SIMD_VR_REG.
13139 Also set reg_alloc_order for DMA config regs.
13141 2013-10-01 Joern Rennecke <joern.rennecke@embecosm.com>
13142 Jeremy Bennett <jeremy.bennett@embecosm.com>
13144 * doc/install.texi (--with-cpu): Mention ARC.
13145 (arc-*-elf32): New paragraph.
13146 (arc-linux-uclibc): Likewise.
13147 * doc/md.texi (Machine Constraints): Add ARC part.
13148 * doc/invoke.texi: (menu): Add ARC Options.
13149 (Machine Dependent Options) <ARC Options>: Add synopsis.
13150 (node ARC Options): Add.
13151 * doc/extend.texi (long_call / short_call attribute): Add ARC.
13152 (ARC Built-in Functions): New section defining
13153 generic ARC built-in functions.
13154 (ARC SIMD Built-in Functions): New section defining SIMD specific
13155 built-in functions.
13156 (Declaring Attributes of Functions): Extended
13157 description of short_call and long_call attributes for ARC and
13158 added index entries.
13160 2013-10-01 Saurabh Verma <saurabh.verma@codito.com>
13161 Ramana Radhakrishnan <ramana.radhakrishnan@codito.com>
13162 Joern Rennecke <joern.rennecke@embecosm.com>
13163 Muhammad Khurram Riaz <khurram.riaz@arc.com>
13164 Brendan Kehoe <brendan@zen.org>
13165 Michael Eager <eager@eagercon.com>
13166 Simon Cook <simon.cook@embecosm.com>
13167 Jeremy Bennett <jeremy.bennett@embecosm.com>
13169 * config/arc, common/config/arc: New directories.
13171 2013-10-01 Joern Rennecke <joern.rennecke@embecosm.com>
13172 Brendan Kehoe <brendan@zen.org>
13173 Simon Cook <simon.cook@embecosm.com>
13175 * config.gcc (arc*-*-elf*, arc*-*-linux-uclibc*): New configurations.
13177 2013-10-01 Andrew MacLeod <amacleod@redhat.com>
13179 * tree-ssa-live.h (coalesce_ssa_name): Move Prototype to...
13180 * tree-ssa-coalesce.h: New. Move prototype to here.
13181 * tree-outof-ssa.h: Include tree-ssa-coalesce.h.
13182 * tree-ssa-coalesce.c: Include tree-outof-ssa.h.
13183 (gimple_can_coalesce_p): Move to...
13184 * gimple.c (gimple_can_coalesce_p): Here.
13186 2013-10-01 Andrew MacLeod <amacleod@redhat.com>
13188 * tree-into-ssa.c (enum need_phi_state): Relocate from tree-flow.h.
13189 (dump_decl_set): Move to gimple.c.
13190 * gimple.h: Don't include tree-ssa-operands.h.
13191 (dump_decl_set): Add prototype.
13192 (gimple_vuse_op, gimple_vdef_op, update_stmt, update_stmt_if_modified):
13193 Move to gimple-ssa.h.
13194 (phi_ssa_name_p, phi_nodes, phi_nodes_ptr, gimple_phi_arg_def,
13195 gimple_phi_arg_def_ptr, gimple_phi_arg_edge, gimple_phi_arg_location,
13196 gimple_phi_arg_location_from_edge, gimple_phi_arg_set_location,
13197 gimple_phi_arg_has_location): Relocate from tree-flow-inline.h
13198 * gimple.c (walk_stmt_load_store_ops): Use gimple_phi_arg_def rather
13200 (dump_decl_set): Relocate here.
13201 * gimple-ssa.h: New file.
13202 (gimple_vuse_op, gimple_vdef_op, update_stmt, update_stmt_if_modified):
13203 Relocate from gimple.h.
13204 * tree-cfg.c (has_zero_uses_1, single_imm_use_1): Move to...
13205 * tree-ssa-operands.c (swap_ssa_operands): Rename from
13206 swap_tree_operands and remove non-ssa path.
13207 (has_zero_uses_1, single_imm_use_1): Relocate from tree-cfg.c.
13208 * tree-ssa-reassoc.c (linearize_expr_tree, repropagate_negates): Use
13210 * tree-vect-loop.c (destroy_loop_vec_info, vect_is_slp_reduction,
13211 vect_is_simple_reduction_1): Use swap_ssa_operands.
13212 * tree-flow.h: Move various prototypes to tree-phinodes.h.
13213 (enum need_phi_state): Move to tree-into-ssa.c.
13214 (struct immediate_use_iterator_d, FOR_EACH_IMM_*,
13215 BREAK_FROM_IMM_USE_STMT): Move to ssa-iterators.h.
13216 (swap_tree_operands): Rename and move prototype to tree-ssa-operands.h.
13217 * tree-flow-inline.h (delink_imm_use, link_imm_use_to_list,
13218 link_imm_use, set_ssa_use_from_ptr, link_imm_use_stmt, relink_imm_use,
13219 relink_imm_use_stmt, end_readonly_imm_use_p, first_readonly_imm_use,
13220 next_readonly_imm_use, has_zero_uses, has_single_use, single_imm_use,
13221 num_imm_uses): Move to ssa-iterators.h.
13222 (get_use_from_ptr, get_def_from_ptr): Move to tree-ssa-operands.h
13223 (gimple_phi_arg_imm_use_ptr, phi_arg_index_from_use): Move to
13225 (op_iter_done, op_iter_next_def, op_iter_next_tree,
13226 clear_and_done_ssa_iter, op_iter_init, op_iter_init_use,
13227 op_iter_init_def, op_iter_init_tree, single_ssa_tree_operand,
13228 single_ssa_use_operand, single_ssa_def_operand, zero_ssa_operands,
13229 num_ssa_operands, delink_stmt_imm_use, single_phi_def,
13230 op_iter_init_phiuse, op_iter_init_phidef, end_imm_use_stmt_p,
13231 end_imm_use_stmt_traverse, move_use_after_head, link_use_stmts_after,
13232 first_imm_use_stmt, next_imm_use_stmt, first_imm_use_on_stmt,
13233 end_imm_use_on_stmt_p, next_imm_use_on_stmt): Move to ssa-iterators.h.
13234 (gimple_phi_arg_def, gimple_phi_arg_def_ptr, gimple_phi_arg_edge,
13235 gimple_phi_arg_location, gimple_phi_arg_location_from_edge,
13236 gimple_phi_arg_set_location, gimple_phi_arg_has_location, phi_nodes,
13237 phi_nodes_ptr, phi_ssa_name_p): Move to gimple.h.
13238 (set_phi_nodes): Move to tree-phinodes.h.
13239 * tree-ssa-operands.h (enum ssa_op_iter_type,
13240 struct ssa_operand_iterator_d, SSA_OP*, FOR_EACH_SSA*, SINGLE_SSA*,
13241 ZERO_SSA_OPERANDS, NUM_SSA_OPERANDS): Move to ssa-iterators.h.
13242 (dump_decl_set): Remove prototype.
13243 (get_use_from_ptr, get_def_from_ptr): Relocate from tree-flow.h.
13244 * tree-phinodes.h: New file. Move some prototypes from tree-flow.h.
13245 (set_phi_nodes): Relocate from tree-flow-inline.h.
13246 (gimple_phi_arg_imm_use_ptr, phi_arg_index_from_use): Relocate from
13248 * tree-ssa.h: Add tree-phinodes.h, gimple-ssa.h, ssa-iterators.h to
13249 include list. Temporarily add gimple.h to include list.
13250 * ssa-iterators.h: New file.
13251 (struct immediate_use_iterator_d, FOR_EACH_IMM_*,
13252 BREAK_FROM_IMM_USE_STMT): Relocate from tree-flow.h.
13253 (enum ssa_op_iter_type, struct ssa_operand_iterator_d, SSA_OP*,
13254 FOR_EACH_SSA*, SINGLE_SSA*, ZERO_SSA_OPERANDS, NUM_SSA_OPERANDS):
13255 Relocate from tree-ssa-operands.h.
13256 (delink_imm_use, link_imm_use_to_list, link_imm_use,
13257 set_ssa_use_from_ptr, link_imm_use_stmt, relink_imm_use,
13258 relink_imm_use_stmt, end_readonly_imm_use_p, first_readonly_imm_use,
13259 next_readonly_imm_use, has_zero_uses, has_single_use, single_imm_use,
13260 num_imm_uses, get_use_from_ptr, get_def_from_ptr,
13261 phi_arg_index_from_use, op_iter_done, op_iter_next_def,
13262 op_iter_next_tree, clear_and_done_ssa_iter, op_iter_init,
13263 op_iter_init_use, op_iter_init_def, op_iter_init_tree,
13264 single_ssa_tree_operand, single_ssa_use_operand, single_ssa_def_operand,
13265 zero_ssa_operands, num_ssa_operands, delink_stmt_imm_use,
13266 single_phi_def, op_iter_init_phiuse, op_iter_init_phidef,
13267 end_imm_use_stmt_p, end_imm_use_stmt_traverse, move_use_after_head,
13268 link_use_stmts_after, first_imm_use_stmt, next_imm_use_stmt,
13269 first_imm_use_on_stmt, end_imm_use_on_stmt_p, next_imm_use_on_stmt):
13270 Relocate from tree-flow-inline.h.
13271 * tree-outof-ssa.h: Change _SSAEXPAND_H macro to GCC_TREE_OUTOF_SSA_H.
13273 2013-10-01 Vidya Praveen <vidyapraveen@arm.com>
13276 (aarch64_<ANY_EXTEND:su><ADDSUB:optab>l2<mode>_internal): Rename to ...
13277 (aarch64_<ANY_EXTEND:su><ADDSUB:optab>l<mode>_hi_internal): ... this;
13278 Insert '\t' to output template.
13279 (aarch64_<ANY_EXTEND:su><ADDSUB:optab>l<mode>_lo_internal): New.
13280 (aarch64_saddl2<mode>, aarch64_uaddl2<mode>): Modify to call
13281 gen_aarch64_<ANY_EXTEND:su><ADDSUB:optab>l<mode>_hi_internal() instead.
13282 (aarch64_ssubl2<mode>, aarch64_usubl2<mode>): Ditto.
13284 2013-10-01 Uros Bizjak <ubizjak@gmail.com>
13286 * doc/install.texi (Host/target specific installation notes for GCC):
13287 Put @anchor before @heading.
13288 * doc/gcc.texi (titlepage): Use @uref and http:// prefix for website.
13289 Use @email for email addresses.
13291 2013-10-01 Jeff Law <law@redhat.com>
13293 * tree-ssa-threadedge.c (thread_across_edge): Make path a pointer to
13294 a vec. Only delete the path if we create one without successfully
13295 registering a jump thread.
13296 * tree-ssa-threadupdate.h (register_jump_thread): Pass in path vector
13298 * tree-ssa-threadupdate.c (threaded_edges): Remove. No longer used
13299 (paths): New vector of jump threading paths.
13300 (THREAD_TARGET, THREAD_TARGET2): Remove accessor macros.
13301 (THREAD_PATH): New accessor macro for the entire thread path.
13302 (lookup_redirection_data): Get intermediate and final outgoing edge
13303 from the thread path.
13304 (create_edge_and_update_destination_phis): Copy the threading path.
13305 (ssa_fix_duplicate_block_edges): Get edges and block types from the
13306 jump threading path.
13307 (ssa_redirect_edges): Get edges and block types from the jump threading
13308 path. Free the path vector.
13309 (thread_block): Get edges from the jump threading path. Look at the
13310 entire path to see if we thread to a loop exit. If we cancel a jump
13311 thread request, then free the path vector.
13312 (thread_single_edge): Get edges and block types from the jump threading
13313 path. Free the path vector.
13314 (thread_through_loop_header): Get edges and block types from the jump
13315 threading path. Free the path vector.
13316 (mark_threaded_blocks): Iterate over the vector of paths and store
13317 the path on the appropriate edge. Get edges and block types from the
13318 jump threading path.
13319 (mark_threaded_blocks): Get edges and block types from the jump
13320 threading path. Free the path vector.
13321 (thread_through_all_blocks): Use the vector of paths rather than
13322 a vector of 3-edge sets.
13323 (register_jump_thread): Accept pointer to a path vector rather
13324 than the path vector itself. Store the path vector for later use.
13327 2013-10-01 Jakub Jelinek <jakub@redhat.com>
13328 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
13331 * config/s390/s390.c (s390_split_branches): Modify check for table
13333 (s390_chunkify_start): Rearrange table jump insn check in order to
13334 deal with compare and branch insns correctly.
13336 2013-10-01 Kugan Vivekanandarajah <kuganv@linaro.org>
13340 2013-04-05 Greta Yorsh <Greta.Yorsh@arm.com>
13341 * config/arm/arm.md (arm_ashldi3_1bit): define_insn into
13342 define_insn_and_split.
13343 (arm_ashrdi3_1bit,arm_lshrdi3_1bit): Likewise.
13344 (shiftsi3_compare): New pattern.
13345 (rrx): New pattern.
13346 * config/arm/unspecs.md (UNSPEC_RRX): New.
13348 2013-10-01 Alan Modra <amodra@gmail.com>
13350 * stmt.c (expand_asm_operands): Revert part of 2013-09-24 special
13351 casing inout operands.
13353 2013-10-01 Richard Biener <rguenther@suse.de>
13355 PR tree-optimization/58553
13356 * tree-loop-distribution.c (struct partition_s): Add niter member.
13357 (classify_partition): Populate niter member for the partition
13358 and properly identify whether the relevant store happens before
13359 or after the loop exit.
13360 (generate_memset_builtin): Use niter member from the partition.
13361 (generate_memcpy_builtin): Likewise.
13363 2013-09-30 Richard Sandiford <rdsandiford@googlemail.com>
13365 * vec.h (vec_prefix, vec): Prefix member names with "m_".
13366 * vec.c (vec_prefix::calculate_allocation): Update accordingly.
13368 2013-09-30 Richard Sandiford <rdsandiford@googlemail.com>
13370 * basic-block.h (edge_list): Prefix member names with "m_".
13371 * context.h (context): Likewise.
13372 * domwalk.h (dom_walker): Likewise.
13373 * gengtype-state.c (s_expr_writer, state_writer): Likewise.
13374 * graphite-sese-to-poly.c (sese_dom_walker): Likewise.
13375 * hash-table.h (hash_table): Likewise.
13376 * machmode.h (bit_field_mode_iterator): Likewise.
13377 * pass_manager.h (pass_list): Likewise.
13378 * tree-into-ssa.c (mark_def_dom_walker): Likewise.
13379 * tree-pass.h (pass_data): Likewise.
13380 * tree-ssa-dom.c (dom_opt_dom_walker): Likewise.
13381 * tree-ssa-phiopt.c (nontrapping_dom_walker): Likewise,
13382 * tree-ssa-uncprop.c (uncprop_dom_walker): Likewise.
13383 * asan.c (pass_data_asan): Update accordingly.
13384 * cfganal.c (control_dependences::find_control_dependence): Likewise.
13385 (control_dependences::control_dependences): Likewise.
13386 (control_dependences::~control_dependences): Likewise.
13387 (control_dependences::~control_dependences): Likewise.
13388 (control_dependences::get_edges_dependent_on): Likewise.
13389 * cgraphbuild.c (pass_data_rebuild_cgraph_edges::clone): Likewise.
13390 (pass_data_remove_cgraph_callee_edges::clone): Likewise.
13391 * context.c (gcc::context::context): Likewise.
13392 * cprop.c (pass_rtl_cprop::clone): Likewise.
13393 * domwalk.c (dom_walker::walk): Likewise.
13394 * ipa-inline-analysis.c (pass_inline_parameters::clone): Likewise.
13395 * ipa-pure-const.c (pass_local_pure_const::clone): Likewise.
13396 * mode-switching.c (pass_mode_switching::clone): Likewise.
13397 * passes.c (opt_pass::opt_pass): Likewise.
13398 (pass_manager::pass_manager): Likewise.
13399 * predict.c (pass_strip_predict_hints::clone): Likewise.
13400 * recog.c (pass_data pass_data_peephole2::clone): Likewise.
13401 (pass_split_all_insns::clone): Likewise.
13402 * stor-layout.c (bit_field_mode_iterator::bit_field_mode_iterator):
13404 (bit_field_mode_iterator::next_mode): Likewise.
13405 (bit_field_mode_iterator::prefer_smaller_modes): Likewise.
13406 * tree-cfg.c (pass_split_crit_edges::clone): Likewise.
13407 * tree-cfgcleanup.c (pass_merge_phi::clone): Likewise.
13408 * tree-complex.c (pass_lower_complex::clone): Likewise.
13409 * tree-eh.c (pass_cleanup_eh::clone): Likewise.
13410 * tree-object-size.c (pass_object_sizes::clone): Likewise.
13411 * tree-optimize.c (pass_fixup_cfg::clone): Likewise.
13412 * tree-ssa-ccp.c (pass_data_ccp::clone): Likewise.
13413 (pass_fold_builtins::clone): Likewise.
13414 * tree-ssa-copy.c (pass_data_copy_prop::clone): Likewise.
13415 * tree-ssa-copyrename.c (pass_rename_ssa_copies::clone): Likewise.
13416 * tree-ssa-dce.c (pass_dce::clone, pass_dce_loop::clone): Likewise.
13417 (pass_cd_dce::clone): Likewise.
13418 * tree-ssa-dom.c (pass_dominator::clone): Likewise.
13419 (pass_phi_only_cprop::clone): Likewise.
13420 * tree-ssa-dse.c (pass_dse::clone): Likewise.
13421 * tree-ssa-forwprop.c (pass_forwprop::clone): Likewise.
13422 * tree-ssa-loop.c (pass_lim::clone): Likewise.
13423 * tree-ssa-phiopt.c (pass_phiopt::clone): Likewise.
13424 * tree-ssa-pre.c (pass_fre::clone): Likewise.
13425 * tree-ssa-reassoc.c (pass_reassoc::clone): Likewise.
13426 * tree-ssa-uninit.c (pass_late_warn_uninitialized::clone): Likewise.
13427 * tree-tailcall.c (pass_tail_recursion::clone): Likewise.
13428 * tree-vect-generic.c (pass_lower_vector_ssa::clone): Likewise.
13429 * tree-vrp.c (pass_vrp::clone): Likewise.
13430 * tsan.c (pass_tsan::clone): Likewise.
13432 2013-09-30 Jakub Jelinek <jakub@redhat.com>
13434 PR middle-end/58564
13435 * fold-const.c (tree_unary_nonnegative_warnv_p): Use
13436 INTEGRAL_TYPE_P (t) instead of TREE_CODE (t) == INTEGER_TYPE.
13438 PR middle-end/58564
13439 * fold-const.c (fold_ternary_loc): For A < 0 : <sign bit of A> : 0
13440 optimization, punt if sign_bit_p looked through any zero extension.
13442 2013-09-30 Teresa Johnson <tejohnson@google.com>
13444 * tree-ssa-threadupdate.c (ssa_fix_duplicate_block_edges):
13445 Update redirected out edge count in joiner case.
13446 (ssa_redirect_edges): Common the joiner and non-joiner cases
13447 so that joiner case gets profile updates.
13449 2013-09-30 Richard Biener <rguenther@suse.de>
13451 PR tree-optimization/58554
13452 * tree-loop-distribution.c (classify_partition): Require
13453 unconditionally executed stores for memcpy and memset recognition.
13454 (tree_loop_distribution): Calculate dominance info.
13456 2013-09-30 Venkataramanan Kumar <venkataramanan.kumar@linaro.org>
13458 * config/aarch64/aarch64.h (MCOUNT_NAME): Define.
13459 (NO_PROFILE_COUNTERS): Likewise.
13460 (PROFILE_HOOK): Likewise.
13461 (FUNCTION_PROFILER): Likewise.
13462 * config/aarch64/aarch64.c (aarch64_function_profiler): Remove.
13464 2013-09-30 Iain Sandoe <iain@codesourcery.com>
13466 * config/rs6000/darwin.md (load_macho_picbase_si): Wrap machopic
13467 calls and defines in TARGET_MACHO conditional.
13468 (load_macho_picbase_di): Likewise.
13469 (reload_macho_picbase): Likewise.
13470 (reload_macho_picbase_si): Likewise.
13471 (reload_macho_picbase_di): Likewise.
13472 (nonlocal_goto_receiver): Likewise.
13474 2013-09-30 Nick Clifton <nickc@redhat.com>
13476 * config/msp430/msp430.c (msp430x_names): New array. Lists MCUs
13477 that use the MSP430X ISA.
13478 (msp430_option_override): Scan -mmcu command line option for any
13479 MCU name that supports the MSP430X ISA.
13480 * config/msp430/t-msp430 (MULTILIB_MATCHES): Add matches for known
13481 -mmcu options which enable the MSP430X ISA.
13483 2013-09-30 Richard Biener <rguenther@suse.de>
13485 PR middle-end/58532
13486 * tree-cfg.c (make_abnormal_goto_edges): Skip debug statements
13487 before looking for setjmp-like calls.
13489 2013-09-29 Iain Sandoe <iain@codesourcery.com>
13492 * config/darwin-protos.h (machopic_get_function_picbase): New.
13493 * config/darwin.c (machopic_get_function_picbase): New.
13494 * config/rs6000/darwin.md (load_macho_picbase_si): Update picbase
13495 label for a new func. (load_macho_picbase_di): Likewise.
13496 (reload_macho_picbase): New expand.
13497 (reload_macho_picbase_si): New insn.
13498 (reload_macho_picbase_di): New insn.
13499 (nonlocal_goto_receiver): New define and split.
13500 * config/rs6000/rs6000.md (unspec enum): Add UNSPEC_RELD_MPIC.
13501 (unspecv enum): Add UNSPECV_NLGR.
13503 2013-09-29 Iain Sandoe <iain@codesourcery.com>
13505 * config/rs6000/rs6000.c (rs6000_init_dwarf_reg_sizes_extra): Ensure
13506 that altivec registers are correctly sized on Darwin.
13508 2013-09-29 Iain Sandoe <iain@codesourcery.com>
13510 * config/t-darwin (darwin.o, darwin-c.o, darwin-f.o,
13511 darwin-driver.o): Use COMPILE and POSTCOMPILE.
13512 * config/x-darwin (host-darwin.o): Likewise.
13513 * config/i386/x-darwin (host-i386-darwin.o): Likewise.
13514 * config/rs6000/x-darwin (host-ppc-darwin.o): Likewise.
13515 * config/rs6000/x-darwin64 (host-ppc64-darwin.o): Likewise.
13517 2013-09-29 Uros Bizjak <ubizjak@gmail.com>
13519 * doc/invoke.texi: Fix usage of @tie{} command.
13521 2013-09-29 Eric Botcazou <ebotcazou@adacore.com>
13523 * config/sparc/sync.md: Add peephole for consecutive memory barriers.
13525 2013-09-28 Jan Hubicka <jh@suse.cz>
13527 * config/i386/x86-tune.def: Add documentation for each of the options;
13530 2013-09-28 Jan Hubicka <jh@suse.cz>
13532 * x86-tune.def (X86_TUNE_SSE_UNALIGNED_LOAD_OPTIMAL): Enable for
13534 (X86_TUNE_SSE_UNALIGNED_STORE_OPTIMAL): Likewise.
13535 (X86_TUNE_FOUR_JUMP_LIMIT): Drop for generic and buldozer.
13536 (X86_TUNE_PAD_RETURNS): Drop for buldozer chips.
13537 (X86_TUNE_AVOID_VECTOR_DECODE): Drop for generic.
13538 (X86_TUNE_REASSOC_FP_TO_PARALLEL): Enable for generic.
13540 2013-09-28 Richard Sandiford <rdsandiford@googlemail.com>
13542 * alloc-pool.c, asan.c, auto-inc-dec.c, basic-block.h, bb-reorder.c,
13543 bitmap.c, bitmap.h, bt-load.c, builtins.c, calls.c, cfgcleanup.c,
13544 cfgexpand.c, cfghooks.c, cfgloop.c, cfgloopmanip.c, cfgrtl.c, cgraph.c,
13545 cgraph.h, cgraphbuild.c, cgraphclones.c, cgraphunit.c, collect2.c,
13546 combine-stack-adj.c, combine.c, compare-elim.c, context.c, context.h,
13547 cprop.c, cse.c, cselib.c, dbxout.c, dce.c, defaults.h, df-core.c,
13548 df-problems.c, df-scan.c, df.h, diagnostic.c, double-int.c, dse.c,
13549 dumpfile.c, dwarf2asm.c, dwarf2cfi.c, dwarf2out.c, emit-rtl.c,
13550 errors.c, except.c, expmed.c, expr.c, file-find.c, final.c,
13551 fixed-value.c, fold-const.c, function.c, fwprop.c, gcc-ar.c, gcc.c,
13552 gcov-io.c, gcov-io.h, gcov.c, gcse.c, genattr-common.c, genattr.c,
13553 genattrtab.c, genautomata.c, genconfig.c, genemit.c, genextract.c,
13554 genflags.c, gengenrtl.c, gengtype-state.c, gengtype.c, genmodes.c,
13555 genopinit.c, genoutput.c, genpeep.c, genpreds.c, genrecog.c,
13556 gensupport.c, ggc-common.c, ggc-page.c, gimple-fold.c, gimple-low.c,
13557 gimple-pretty-print.c, gimple-ssa-strength-reduction.c, gimple.c,
13558 gimple.h, godump.c, graphite-clast-to-gimple.c,
13559 graphite-optimize-isl.c, graphite-poly.h, graphite-sese-to-poly.c,
13560 graphite.c, haifa-sched.c, hash-table.c, hash-table.h, hwint.c,
13561 hwint.h, ifcvt.c, incpath.c, init-regs.c, input.h, intl.c, intl.h,
13562 ipa-cp.c, ipa-devirt.c, ipa-inline-analysis.c, ipa-inline.c,
13563 ipa-profile.c, ipa-pure-const.c, ipa-reference.c, ipa-split.c,
13564 ipa-utils.c, ipa.c, ira-build.c, ira.c, jump.c, loop-doloop.c,
13565 loop-init.c, loop-invariant.c, loop-iv.c, lower-subreg.c, lto-cgraph.c,
13566 lto-streamer-in.c, lto-streamer-out.c, lto-wrapper.c, mcf.c,
13567 mode-switching.c, modulo-sched.c, omp-low.c, optabs.c, opts.c,
13568 pass_manager.h, passes.c, plugin.c, postreload-gcse.c, postreload.c,
13569 predict.c, prefix.c, pretty-print.c, print-rtl.c, print-tree.c,
13570 profile.c, read-md.c, real.c, real.h, recog.c, ree.c, reg-stack.c,
13571 regcprop.c, reginfo.c, regmove.c, regrename.c, regs.h, regstat.c,
13572 reload1.c, reorg.c, rtl.c, rtl.h, rtlanal.c, sbitmap.c, sched-rgn.c,
13573 sdbout.c, sel-sched-ir.c, sel-sched.c, sparseset.c, stack-ptr-mod.c,
13574 statistics.c, stmt.c, stor-layout.c, store-motion.c, streamer-hooks.h,
13575 system.h, target-hooks-macros.h, targhooks.c, targhooks.h, toplev.c,
13576 tracer.c, trans-mem.c, tree-browser.c, tree-call-cdce.c, tree-cfg.c,
13577 tree-cfgcleanup.c, tree-complex.c, tree-data-ref.c, tree-data-ref.h,
13578 tree-eh.c, tree-emutls.c, tree-flow.h, tree-if-conv.c, tree-into-ssa.c,
13579 tree-iterator.c, tree-loop-distribution.c, tree-mudflap.c,
13580 tree-nested.c, tree-nomudflap.c, tree-nrv.c, tree-object-size.c,
13581 tree-optimize.c, tree-pass.h, tree-pretty-print.c, tree-profile.c,
13582 tree-scalar-evolution.c, tree-sra.c, tree-ssa-ccp.c,
13583 tree-ssa-coalesce.c, tree-ssa-copy.c, tree-ssa-copyrename.c,
13584 tree-ssa-dce.c, tree-ssa-dom.c, tree-ssa-dse.c, tree-ssa-forwprop.c,
13585 tree-ssa-ifcombine.c, tree-ssa-live.c, tree-ssa-loop-ch.c,
13586 tree-ssa-loop-im.c, tree-ssa-loop-ivopts.c, tree-ssa-loop-prefetch.c,
13587 tree-ssa-loop.c, tree-ssa-math-opts.c, tree-ssa-operands.c,
13588 tree-ssa-phiopt.c, tree-ssa-phiprop.c, tree-ssa-pre.c,
13589 tree-ssa-reassoc.c, tree-ssa-sink.c, tree-ssa-strlen.c,
13590 tree-ssa-structalias.c, tree-ssa-threadedge.c, tree-ssa-threadupdate.c,
13591 tree-ssa-uncprop.c, tree-ssa-uninit.c, tree-ssa.c, tree-ssanames.c,
13592 tree-stdarg.c, tree-switch-conversion.c, tree-tailcall.c,
13593 tree-vect-data-refs.c, tree-vect-generic.c, tree-vect-loop-manip.c,
13594 tree-vect-stmts.c, tree-vectorizer.c, tree-vectorizer.h, tree-vrp.c,
13595 tree.c, tree.h, tsan.c, tsystem.h, value-prof.c, var-tracking.c,
13596 varasm.c, vec.h, vmsdbgout.c, vtable-verify.c, web.c: Add missing
13597 whitespace before "(".
13599 2013-09-28 Sandra Loosemore <sandra@codesourcery.com>
13601 * expr.h (extract_bit_field): Remove packedp parameter.
13602 * expmed.c (extract_fixed_bit_field): Remove packedp parameter
13603 from forward declaration.
13604 (store_split_bit_field): Remove packedp arg from calls to
13605 extract_fixed_bit_field.
13606 (extract_bit_field_1): Remove packedp parameter and packedp
13607 argument from recursive calls and calls to extract_fixed_bit_field.
13608 (extract_bit_field): Remove packedp parameter and corresponding
13609 arg to extract_bit_field_1.
13610 (extract_fixed_bit_field): Remove packedp parameter. Remove code
13612 (extract_split_bit_field): Remove packedp arg from call to
13613 extract_fixed_bit_field.
13614 * expr.c (emit_group_load_1): Adjust calls to extract_bit_field.
13615 (copy_blkmode_from_reg): Likewise.
13616 (copy_blkmode_to_reg): Likewise.
13617 (read_complex_part): Likewise.
13618 (store_field): Likewise.
13619 (expand_expr_real_1): Likewise.
13620 * calls.c (store_unaligned_arguments_into_pseudos): Adjust call
13621 to extract_bit_field.
13622 * config/tilegx/tilegx.c (tilegx_expand_unaligned_load): Adjust
13623 call to extract_bit_field.
13624 * config/tilepro/tilepro.c (tilepro_expand_unaligned_load): Adjust
13625 call to extract_bit_field.
13626 * doc/invoke.texi (Code Gen Options): Remove mention of warnings
13627 and special packedp behavior from -fstrict-volatile-bitfields
13630 2013-09-27 Jan-Benedict Glaw <jbglaw@lug-owl.de>
13632 * lra-eliminations.c (init_elim_table): Guard value_p.
13634 2013-09-27 Michael Meissner <meissner@linux.vnet.ibm.com>
13636 * config/rs6000/rs6000.c (rs6000_hard_regno_mode_ok): Allow
13637 DFmode, DImode, and SFmode in the upper VSX registers based on the
13638 -mupper-regs-{df,sf} flags. Fix wu constraint to be ALTIVEC_REGS
13639 if -mpower8-vector. Combine -mvsx-timode handling with the rest
13640 of the VSX register handling.
13642 * config/rs6000/rs6000.md (f32_lv): Use %x0 for VSX regsters.
13643 (f32_sv): Likewise.
13644 (zero_extendsidi2_lfiwzx): Add support for loading into the
13645 Altivec registers with -mpower8-vector. Use wu/wv constraints to
13646 only do VSX memory options on Altivec registers.
13647 (extendsidi2_lfiwax): Likewise.
13648 (extendsfdf2_fpr): Likewise.
13649 (mov<mode>_hardfloat, SF/SD modes): Likewise.
13650 (mov<mode>_hardfloat32, DF/DD modes): Likewise.
13651 (mov<mode>_hardfloat64, DF/DD modes): Likewise.
13652 (movdi_internal64): Likewise.
13654 2013-09-27 Xinliang David Li <davidxl@google.com>
13656 * opts.c (finish_options): Adjust parameters
13657 according to vect cost model.
13658 (common_handle_option): Set dynamic vect cost
13660 targhooks.c (default_add_stmt_cost): Compute stmt cost
13662 * tree-vect-loop.c (vect_estimate_min_profitable_iters):
13663 Use helper function.
13664 * tree-vectorizer.h (unlimited_cost_model): New function.
13665 * tree-vect-slp.c (vect_slp_analyze_bb_1): Use helper function.
13666 * tree-vect-data-refs.c (vect_peeling_hash_insert): Use helper
13668 (vect_enhance_data_refs_alignment): Ditto.
13669 * flag-types.h: New enum.
13670 * common/config/i386/i386-common.c (ix86_option_init_struct):
13671 No need to initialize vect_cost_model flag.
13672 * config/i386/i386.c (ix86_add_stmt_cost): Compute stmt cost
13675 2013-09-27 Diego Novillo <dnovillo@google.com>
13677 * gimple.h (enum ssa_mode): Remove.
13679 2013-09-27 Paulo Matos <pmatos@broadcom.com>
13681 * cfgloop.h (number_of_loops): Fix typo in check for null.
13683 2013-09-27 Jakub Jelinek <jakub@redhat.com>
13685 PR middle-end/58551
13686 * tree-cfg.c (move_sese_region_to_fn): Also move loops that
13687 are children of outermost saved_cfun's loop, and set it up to
13688 be moved to dest_cfun's outermost loop. Fix up num_nodes adjustments
13689 if loop != loop0 and SESE region contains bbs that belong to loop0.
13691 2013-09-27 Richard Sandiford <rdsandiford@googlemail.com>
13693 * rtlanal.c (must_be_base_p, must_be_index_p): Delete.
13694 (binary_scale_code_p, get_base_term, get_index_term): New functions.
13695 (set_address_segment, set_address_base, set_address_index)
13696 (set_address_disp): Accept the argument unconditionally.
13697 (baseness): Remove must_be_base_p and must_be_index_p checks.
13698 (decompose_normal_address): Classify as much as possible in the
13701 2013-09-27 Richard Sandiford <rdsandiford@googlemail.com>
13703 * cse.c (count_reg_usage): Handle INT_LIST.
13704 * lra-eliminations.c (lra_eliminate_regs_1): Likewise.
13705 * reginfo.c (reg_scan_mark_refs): Likewise.
13706 * reload1.c (eliminate_regs_1): Likewise.
13708 2013-09-27 Iain Sandoe <iain@codesourcery.com>
13710 PR middle-end/58547
13711 * rtlanal.c (lsb_bitfield_op_p): Make both parts of the comparison
13714 2013-09-27 Richard Biener <rguenther@suse.de>
13716 PR tree-optimization/58459
13717 * tree-ssa-forwprop.c (forward_propagate_addr_expr): Remove
13718 restriction not propagating into loops.
13720 2013-09-26 Florian Weimer <fw@deneb.enyo.de>
13722 * tree-ssa.h (walk_use_def_chains_fn, walk_use_def_chains): Delete.
13723 * tree-ssa.c (walk_use_def_chains_1, walk_use_def_chains): Delete.
13724 * doc/tree-ssa.texi (Walking use-def chains): Delete.
13726 2013-09-26 Richard Biener <rguenther@suse.de>
13728 * tree-into-ssa.c (rewrite_into_ssa): Make more SSA names to anonymous.
13730 2013-09-26 Richard Biener <rguenther@suse.de>
13732 * alias.h (component_uses_parent_alias_set): Rename to ...
13733 (component_uses_parent_alias_set_from): ... this.
13734 * alias.c (component_uses_parent_alias_set): Rename to ...
13735 (component_uses_parent_alias_set_from): ... this and return
13736 the desired parent.
13737 (reference_alias_ptr_type_1): Use the result from
13738 component_uses_parent_alias_set_from instead of stripping
13739 components one at a time.
13740 * emit-rtl.c (set_mem_attributes_minus_bitpos): Adjust.
13742 2013-09-26 Andrew MacLeod <amacleod@redhat.com>
13744 * tree-ssa-live.h (find_replaceable_exprs, dump_replaceable_exprs):
13745 Move prototypes to...
13746 * tree-ssa-ter.h: New File. Move prototypes here.
13747 * tree-flow.h (stmt_is_replaceable_p): Remove prototype.
13748 * tree-outof-ssa.h: New. Rename ssaexpand.h, include tree-ssa-ter.h.
13749 * tree-outof-ssa.c (ssa_is_replaceable_p): New. Refactor common bits
13750 from is_replaceable_p.
13751 * tree-ssa-ter.c (is_replaceable_p, stmt_is_replaceable_p): Delete.
13752 (ter_is_replaceable_p): New. Use new refactored ssa_is_replaceable_p.
13753 (process_replaceable): Use ter_is_replaceable_p.
13754 (find_replaceable_in_bb): Use ter_is_replaceable_p.
13755 * expr.c (stmt_is_replaceable_p): Relocate from tree-ssa-ter.c. Use
13756 newly refactored ssa_is_replaceable_p.
13757 * cfgexpand.c: Include tree-outof-ssa.h.
13758 * ssaexpand.h: Delete.
13760 2013-09-26 Andrew MacLeod <amacleod@redhat.com>
13762 * gimple.c (gimple_replace_lhs): Move to tree-ssa.c and rename.
13763 (struct count_ptr_d, count_ptr_derefs, count_uses_and_derefs): Move to
13765 (create_gimple_tmp): Delete.
13766 (get_expr_type, build_assign, build_type_cast): Move to...
13767 * gimple-builder.c: New File.
13768 (get_expr_type): Relocate from gimple.c.
13769 (build_assign, build_type_cast): Change to only create ssanames.
13770 * gimple.h: Move prototypes to...
13771 * gimple-builder.h: New File. Here.
13772 * tree-ssa.h: And here.
13773 * tree-ssa.c (struct count_ptr_d, count_ptr_derefs,
13774 count_uses_and_derefs): Relocate from gimple.c.
13775 (gimple_replace_ssa_lhs): Renamed gimple_replace_ssa from gimple.c
13776 * tree-ssa-reassoc.c (repropagate_negates): Use gimple_replace_ssa_lhs.
13777 * tree-ssa-math-opts (execute_cse_reciprocals): Use
13778 gimple_replace_ssa_lhs.
13779 * asan.c: Include gimple-builder.h.
13780 * Makefile.in: Add gimple-builder.o.
13782 2013-09-26 Richard Biener <rguenther@suse.de>
13784 * tree-ssa-live.c (var_map_base_init): Handle SSA names with
13785 DECL_IGNORED_P base VAR_DECLs like anonymous SSA names.
13786 (loe_visit_block): Use gcc_checking_assert.
13787 * tree-ssa-coalesce.c (create_outofssa_var_map): Use
13788 gimple_assign_ssa_name_copy_p.
13789 (gimple_can_coalesce_p): Adjust according to the var_map_base_init
13792 2013-09-26 David Edelsohn <dje.gcc@gmail.com>
13794 * config/rs6000/t-rs6000 (rs6000.o): Remove.
13795 (rs6000-c.o): Use COMPILE and POSTCOMPILE.
13797 2013-09-26 Richard Biener <rguenther@suse.de>
13799 PR tree-optimization/58539
13800 * tree-vect-loop.c (vect_create_epilog_for_reduction): Honor
13801 the fact that debug statements are not taking part in loop-closed
13804 2013-09-26 Nick Clifton <nickc@redhat.com>
13806 * config/msp430/msp430.c (msp430_expand_epilogue): Fix compile
13807 time warning message.
13808 (msp430_print_operand_raw): Delete unused letter parameter.
13809 (TARGET_PRINT_OPERAND_ADDRESS): Define.
13810 (msp430_print_operand_address): New function.
13811 (msp430_print_operand): Move address printing code from here to
13813 * config/msp430/msp430.md (movsipsi2): Add comment in generated
13815 (zero_extendpsisi2): Likewise.
13816 (extendpsisi2): New pattern.
13817 (andneghi3): New pattern.
13819 2013-09-26 Yvan Roux <yvan.roux@linaro.org>
13821 * config/aarch64/aarch64.opt (mlra): New option.
13822 * config/aarch64/aarch64.c (aarch64_lra_p): New function.
13823 (TARGET_LRA_P): Define.
13825 2013-09-26 Eric Botcazou <ebotcazou@adacore.com>
13827 * expr.c (expand_assignment): Remove obsolete comment.
13829 2013-09-25 Jeff Law <law@redhat.com>
13831 * tree-flow.h (thread_through_all_blocks): Prototype moved into
13832 tree-ssa-threadupdate.h.
13833 (register_jump_thread): Similarly.
13834 * tree-ssa-threadupdate.h: New header file.
13835 * tree-ssa-dom.c: Include tree-ssa-threadupdate.h.
13836 * tree-vrp.c: Likewise.
13837 * tree-ssa-threadedge.c: Include tree-ssa-threadupdate.h.
13838 (thread_around_empty_blocks): Change type of path vector argument to
13839 an edge,type pair from just an edge. Initialize both elements when
13840 appending to a jump threading path. Tweak references to elements
13842 (thread_across_edge): Similarly. Release memory for the elements
13844 * tree-ssa-threadupdate.c: Include tree-ssa-threadupdate.h.
13845 (dump_jump_thread_path): New function broken out from
13846 register_jump_thread.
13847 (register_jump_thread): Use dump_jump_thread_path. Change type of
13848 path vector entries. Search the path for NULL edges and dump
13849 the path if one is found. Tweak the conversion of path to 3-edge
13850 form to use the block copy type information embedded in the path.
13852 2013-09-25 Yvan Roux <yvan.roux@linaro.org>
13854 * lra.c (update_inc_notes): Remove all REG_DEAD and REG_UNUSED notes.
13856 2013-09-25 Yvan Roux <yvan.roux@linaro.org>
13857 Vladimir Makarov <vmakarov@redhat.com>
13859 * rtlanal.c (lsb_bitfield_op_p): New predicate for bitfield operations
13860 from the least significant bit.
13861 (strip_address_mutations): Add bitfield operations handling.
13862 (must_be_index_p): Add shifting and rotate operations handling.
13863 (set_address_base): Use must_be_base_p predicate.
13864 (set_address_index): Use must_be_index_p predicate.
13866 2013-09-25 Alexander Ivchenko <alexander.ivchenko@intel.com>
13867 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
13868 Sergey Lega <sergey.s.lega@intel.com>
13869 Anna Tikhonova <anna.tikhonova@intel.com>
13870 Ilya Tocar <ilya.tocar@intel.com>
13871 Andrey Turetskiy <andrey.turetskiy@intel.com>
13872 Ilya Verbin <ilya.verbin@intel.com>
13873 Kirill Yukhin <kirill.yukhin@intel.com>
13874 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
13876 * config/i386/i386.c (ix86_avx256_split_vector_move_misalign):
13878 (ix86_expand_vector_move_misalign): Support new unaligned load and
13879 stores and use new names.
13880 (CODE_FOR_sse2_storedqu): Rename to ...
13881 (CODE_FOR_sse2_storedquv16qi): ... this.
13882 (CODE_FOR_sse2_loaddqu): Rename to ...
13883 (CODE_FOR_sse2_loaddquv16qi): ... this.
13884 (CODE_FOR_avx_loaddqu256): Rename to ...
13885 (CODE_FOR_avx_loaddquv32qi): ... this.
13886 (CODE_FOR_avx_storedqu256): Rename to ...
13887 (CODE_FOR_avx_storedquv32qi): ... this.
13888 * config/i386/i386.md (fpint_logic): New.
13889 * config/i386/sse.md (VMOVE): Extend for AVX512.
13893 (VI_UNALIGNED_LOADSTORE): Ditto.
13894 (sse2_avx_avx512f): Ditto.
13895 (sse2_avx2): Extend for AVX512.
13896 (sse4_1_avx2): Ditto.
13897 (avx2_avx512f): New.
13898 (sse): Extend for AVX512.
13901 (avxsizesuffix): Ditto.
13902 (sseintvecmode): Ditto.
13903 (ssePSmode): Ditto.
13904 (<sse>_loadu<ssemodesuffix><avxsizesuffix>): Ditto.
13905 (<sse>_storeu<ssemodesuffix><avxsizesuffix>): Ditto.
13906 (<sse2>_loaddqu<avxsizesuffix>): Extend for AVX512 and rename to ...
13907 (<sse2_avx_avx512f>_loaddqu<mode>): ... this.
13908 (<sse2>_storedqu<avxsizesuffix>): Extend for AVX512 and rename to ...
13909 (<sse2_avx_avx512f>_storedqu<mode): ... this.
13910 (<sse>_movnt<mode>): Replace constraint "x" with "v".
13911 (STORENT_MODE): Extend for AVX512.
13912 (*absneg<mode>2): Replace constraint "x" with "v".
13913 (*mul<mode>3): Ditto.
13914 (*ieee_smin<mode>3): Ditto.
13915 (*ieee_smax<mode>3): Ditto.
13916 (avx_cmp<mode>3): Replace VF with VF_128_256.
13917 (*<sse>_maskcmp<mode>3_comm): Ditto.
13918 (<sse>_maskcmp<mode>3): Ditto.
13919 (<sse>_andnot<mode>3): Extend for AVX512.
13920 (<code><mode>3, anylogic): Replace VF with VF_128_256.
13921 (<code><mode>3, fpint_logic): New.
13922 (*<code><mode>3): Extend for AVX512.
13923 (avx512flogicsuff): New.
13924 (avx512f_<logic><mode>): Ditto.
13925 (<sse>_movmsk<ssemodesuffix><avxsizesuffix>): Replace VF with
13927 (<sse4_1>_blend<ssemodesuffix><avxsizesuffix>): Ditto.
13928 (<sse4_1>_blendv<ssemodesuffix><avxsizesuffix>): Ditto.
13929 (<sse4_1>_dp<ssemodesuffix><avxsizesuffix>): Ditto.
13930 (avx_vtest<ssemodesuffix><avxsizesuffix>): Ditto.
13931 (<sse4_1>_round<ssemodesuffix><avxsizesuffix>): Ditto.
13932 (xop_vpermil2<mode>3): Ditto.
13933 (*avx_vpermilp<mode>): Extend for AVX512 and rename to ...
13934 (*<sse2_avx_avx512f>_vpermilp<mode>): ... this.
13935 (avx_vpermilvar<mode>3): Extend for AVX512 and rename to ...
13936 (<sse2_avx_avx512f>_vpermilvar<mode>3): ... this.
13938 2013-09-25 Tom Tromey <tromey@redhat.com>
13940 * Makefile.in (PARTITION_H, LTO_SYMTAB_H, COMMON_TARGET_DEF_H)
13941 (RTL_ERROR_H, TRANS_MEM_H, COVERAGE_H, DEMANGLE_H, ALIAS_H)
13942 (SCHED_INT_H, SEL_SCHED_IR_H, SEL_SCHED_DUMP_H, VALTRACK_H, DDG_H)
13943 (GGC_INTERNAL_H, DECNUM_H, BACKTRACE_H, MKDEPS_H, TREE_HASHER_H)
13944 (TREE_SSA_LIVE_H, SSAEXPAND_H, DWARF2OUT_H, SCEV_H, OMEGA_H)
13945 (TREE_DATA_REF_H, IRA_INT_H, LRA_INT_H, DBGCNT_H, DATA_STREAMER_H)
13946 (GIMPLE_STREAMER_H, TREE_STREAMER_H, STREAMER_HOOKS_H)
13947 (TREE_VECTORIZER_H, IPA_INLINE_H, GSTAB_H, LIBFUNCS_H)
13948 (GRAPHITE_HTAB_H): Remove.
13950 2013-09-25 Tom Tromey <tromey@redhat.com>
13952 * config/mcore/t-mcore (CROSS_FLOAT_H): Remove.
13954 2013-09-25 Tom Tromey <tromey@redhat.com>
13956 * config/t-glibc (glibc-c.o): Use COMPILE and POSTCOMPILE.
13958 2013-09-25 Tom Tromey <tromey@redhat.com>
13960 * config/i386/t-i386 (i386.o): Remove.
13961 (i386-c.o): Use COMPILE and POSTCOMPILE.
13963 2013-09-25 Tom Tromey <tromey@redhat.com>
13965 * Makefile.in ($(out_object_file)): Use COMPILE and POSTCOMPILE.
13967 2013-09-25 Tom Tromey <tromey@redhat.com>
13969 * Makefile.in (graph.o, sbitmap.o, sparseset.o, gcc-ar.o)
13970 (gcc-ranlib.o, gcc-nm.o, collect2.o, collect2-aix.o, tlink.o)
13971 (lto-wrapper.o, default-c.o, attribs.o, incpath.o, prefix.o)
13972 (gcc.o, options.o, options-save.o, version.o, gtype-desc.o)
13973 (trans-mem.o, ggc-common.o, ggc-page.o, ggc-none.o, stringpool.o)
13974 (convert.o, double-int.o, lto-compress.o, data-streamer-in.o)
13975 (data-streamer-out.o, data-streamer.o, gimple-streamer-in.o)
13976 (gimple-streamer-out.o, tree-streamer.o, tree-streamer-in.o)
13977 (tree-streamer-out.o, streamer-hooks.o, lto-cgraph.o)
13978 (lto-streamer-in.o, lto-streamer-out.o, lto-section-in.o)
13979 (lto-section-out.o, lto-opts.o, lto-streamer.o, langhooks.o)
13980 (test-dump.o, tree.o, tree-dump.o, tree-inline.o, print-tree.o)
13981 (stor-layout.o, asan.o, tsan.o, ubsan.o, tree-ssa-tail-merge.o)
13982 (tree-ssa-structalias.o, tree-ssa-uninit.o, tree-ssa.o)
13983 (tree-into-ssa.o, tree-ssa-ter.o, tree-ssa-coalesce.o)
13984 (tree-outof-ssa.o, tree-ssa-dse.o, tree-ssa-forwprop.o)
13985 (tree-ssa-phiprop.o, tree-ssa-ifcombine.o, tree-ssa-phiopt.o)
13986 (tree-nrv.o, tree-ssa-copy.o, tree-ssa-propagate.o)
13987 (tree-ssa-dom.o, tree-ssa-uncprop.o, tree-ssa-threadedge.o)
13988 (tree-ssa-threadupdate.o, tree-ssanames.o, tree-phinodes.o)
13989 (domwalk.o, tree-ssa-live.o, tree-ssa-copyrename.o)
13990 (tree-ssa-pre.o, tree-ssa-sccvn.o)
13991 (gimple-ssa-strength-reduction.o, tree-vrp.o, tree-cfg.o)
13992 (tree-cfgcleanup.o, tree-tailcall.o, tree-ssa-sink.o)
13993 (tree-nested.o, tree-if-conv.o, tree-iterator.o, tree-dfa.o)
13994 (tree-ssa-operands.o, tree-eh.o, tree-ssa-loop.o)
13995 (tree-ssa-loop-unswitch.o, tree-ssa-address.o)
13996 (tree-ssa-loop-niter.o, tree-ssa-loop-ivcanon.o)
13997 (tree-ssa-loop-ch.o, tree-ssa-loop-prefetch.o, tree-predcom.o)
13998 (tree-ssa-loop-ivopts.o, tree-affine.o, tree-ssa-loop-manip.o)
13999 (tree-ssa-loop-im.o, tree-ssa-math-opts.o, tree-ssa-alias.o)
14000 (tree-ssa-reassoc.o, tree-optimize.o, gimplify.o)
14001 (gimple-iterator.o, gimple-fold.o, gimple-low.o, omp-low.o)
14002 (tree-browser.o, omega.o, tree-chrec.o, tree-scalar-evolution.o)
14003 (tree-data-ref.o, sese.o, graphite.o, graphite-blocking.o)
14004 (graphite-clast-to-gimple.o, graphite-dependences.o)
14005 (graphite-interchange.o, graphite-poly.o)
14006 (graphite-scop-detection.o, graphite-sese-to-poly.o)
14007 (graphite-optimize-isl.o, tree-vect-loop.o)
14008 (tree-vect-loop-manip.o, tree-vect-patterns.o, tree-vect-slp.o)
14009 (tree-vect-stmts.o, tree-vect-data-refs.o, tree-vectorizer.o)
14010 (vtable-verify.o, tree-loop-distribution.o, tree-parloops.o)
14011 (tree-stdarg.o, tree-object-size.o, internal-fn.o, gimple.o)
14012 (gimple-pretty-print.o, tree-mudflap.o, tree-nomudflap.o)
14013 (tree-pretty-print.o, tree-diagnostic.o, fold-const.o)
14014 (diagnostic.o, diagnostic-color.o, opts.o, opts-global.o)
14015 (opts-common.o, targhooks.o, common/common-targhooks.o, input.o)
14016 (toplev.o, hwint.o, passes.o, plugin.o, main.o, host-default.o)
14017 (rtl-error.o, rtl.o, print-rtl.o, rtlanal.o, varasm.o, function.o)
14018 (statistics.o, stmt.o, except.o, expr.o, dojump.o, builtins.o)
14019 (calls.o, expmed.o, explow.o, optabs.o, dbxout.o, debug.o)
14020 (sdbout.o, dwarf2out.o, dwarf2cfi.o, dwarf2asm.o, vmsdbgout.o)
14021 (xcoffout.o, godump.o, emit-rtl.o, real.o, realmpfr.o, dfp.o)
14022 (fixed-value.o, jump.o, simplify-rtx.o, symtab.o, cgraph.o)
14023 (cgraphunit.o, cgraphclones.o, cgraphbuild.o, varpool.o, ipa.o)
14024 (ipa-profile.o, ipa-devirt.o, ipa-prop.o, ipa-ref.o, ipa-cp.o)
14025 (ipa-split.o, ipa-inline.o, ipa-inline-analysis.o)
14026 (ipa-inline-transform.o, ipa-utils.o, ipa-reference.o)
14027 (ipa-pure-const.o, coverage.o, cselib.o, cse.o, dce.o, dumpfile.o)
14028 (dse.o, fwprop.o, web.o, ree.o, cprop.o, gcse.o, store-motion.o)
14029 (resource.o, lcm.o, mode-switching.o, tree-ssa-dce.o)
14030 (tree-call-cdce.o, tree-ssa-ccp.o, tree-ssa-strlen.o, tree-sra.o)
14031 (tree-switch-conversion.o, tree-complex.o, tree-emutls.o)
14032 (tree-vect-generic.o, df-core.o, df-problems.o, df-scan.o)
14033 (regstat.o, valtrack.o, var-tracking.o, profile.o, mcf.o)
14034 (tree-profile.o, value-prof.o, loop-doloop.o, alloc-pool.o)
14035 (auto-inc-dec.o, cfg.o, cfghooks.o, cfgexpand.o, cfgrtl.o)
14036 (cfganal.o, cfgbuild.o, cfgcleanup.o, cfgloop.o, cfgloopanal.o)
14037 (graphds.o, loop-iv.o, loop-invariant.o, cfgloopmanip.o)
14038 (loop-init.o, loop-unswitch.o, loop-unroll.o, dominance.o)
14039 (et-forest.o, combine.o, reginfo.o, bitmap.o, vec.o, hash-table.o)
14040 (reload.o, reload1.o, rtlhooks.o, postreload.o, postreload-gcse.o)
14041 (caller-save.o, bt-load.o, reorg.o, alias.o, stack-ptr-mod.o)
14042 (init-regs.o, ira-build.o, ira-costs.o, ira-conflicts.o)
14043 (ira-color.o, ira-emit.o, ira-lives.o, ira.o, lra.o)
14044 (lra-assigns.o, lra-coalesce.o, lra-constraints.o)
14045 (lra-eliminations.o, lra-lives.o, lra-spills.o, regmove.o)
14046 (combine-stack-adj.o, compare-elim.o, ddg.o, modulo-sched.o)
14047 (haifa-sched.o, sched-deps.o, sched-rgn.o, sched-ebb.o)
14048 (sched-vis.o, sel-sched.o, sel-sched-dump.o, sel-sched-ir.o)
14049 (final.o, recog.o, reg-stack.o, sreal.o, predict.o, lists.o)
14050 (bb-reorder.o, tracer.o, timevar.o, regcprop.o, regrename.o)
14051 (ifcvt.o, params.o, pointer-set.o, hooks.o, pretty-print.o)
14052 (errors.o, dbgcnt.o, lower-subreg.o, target-globals.o)
14053 (hw-doloop.o, file-find.o, context.o, $(common_out_object_file))
14054 (insn-attrtab.o, insn-automata.o, insn-dfatab.o, insn-emit.o)
14055 (insn-enums.o, insn-extract.o, insn-latencytab.o, insn-modes.o)
14056 (insn-opinit.o, insn-output.o, insn-peep.o, insn-preds.o)
14057 (insn-recog.o, intl.o, cppbuiltin.o, cppdefault.o, gcov.o)
14058 (gcov-dump.o): Remove.
14059 (default-c.o): Use COMPILE and POSTCOMPILE.
14060 (CFLAGS-gcc.o): New variable.
14061 ($(common_out_object_file)): Use COMPILE and POSTCOMPILE.
14063 2013-09-25 Tom Tromey <tromey@redhat.com>
14065 * Makefile.in (c-family/cppspec.o, c-family/c-common.o)
14066 (c-family/c-cppbuiltin.o, c-family/c-dump.o, c-family/c-format.o)
14067 (c-family/c-gimplify.o, c-family/c-lex.o, c-family/c-omp.o)
14068 (c-family/c-opts.o, c-family/c-pch.o, c-family/c-ppoutput.o)
14069 (c-family/c-pragma.o, c-family/c-pretty-print.o)
14070 (c-family/c-semantics.o, c-family/c-ada-spec.o)
14071 (c-family/array-notation-common.o, c-family/stub-objc.o)
14072 (c-family/c-ubsan.o): Remove.
14074 2013-09-25 Tom Tromey <tromey@redhat.com>
14076 * Makefile.in (C_TREE_H): Reference c/c-tree.h.
14078 2013-09-25 Tom Tromey <tromey@redhat.com>
14080 * Makefile.in (DRIVER_DEFINES): Use $(and), not shell code,
14081 to add -DENABLE_SHARED_LIBGCC.
14082 (gcc.o): Don't use subshell.
14084 2013-09-25 Tom Tromey <tromey@redhat.com>
14086 * Makefile.in (OUTPUT_OPTION): Define as "-o $@".
14087 * configure.ac: Don't invoke AM_PROG_CC_C_O.
14088 (NO_MINUS_C_MINUS_O, OUTPUT_OPTION): Don't subst.
14089 * configure, config.in: Rebuild.
14091 2013-09-25 Tom Tromey <tromey@redhat.com>
14093 * Makefile.in (CCDEPMODE, DEPDIR, depcomp, COMPILE.base)
14094 (COMPILE, POSTCOMPILE): New variables.
14095 (.cc.o .c.o): Use COMPILE, POSTCOMPILE.
14096 (DEPFILES): New variable.
14097 Include ".Po" files.
14098 * configure.ac: Add checks for dependency checking.
14099 * configure, aclocal.m4: Regenerate.
14101 2013-09-25 Tom Tromey <tromey@redhat.com>
14103 * Makefile.in (ALL_HOST_BACKEND_OBJS): Add lto-wrapper.o.
14104 ($(ALL_HOST_OBJS)): Move order-only dependency to end of file.
14106 2013-09-25 Tom Tromey <tromey@redhat.com>
14108 * Makefile.in (generated_files): Add options.h,
14109 target-hooks-def.h, insn-opinit.h,
14110 common/common-target-hooks-def.h, pass-instances.def,
14111 c-family/c-target-hooks-def.h.
14113 2013-09-25 Jeff Law <law@redhat.com>
14115 * tree-ssa-threadedge.c (thread_across_edge): Use foo.last () rather
14116 than foo[foo.length () - 1] to access last member in a vec.
14117 * tree-ssa-threadupdate.c (register_jump_thread): Similarly.
14119 2013-09-25 Richard Biener <rguenther@suse.de>
14121 PR middle-end/58521
14122 * tree.c (iterative_hash_expr): Remove MEM_REF special handling.
14124 2013-09-25 Jan Hubicka <jh@suse.cz>
14126 * cgraph.c (cgraph_resolve_speculation): Use semantical equivalency
14129 2013-09-25 Marek Polacek <polacek@redhat.com>
14132 * ubsan.c (ubsan_type_descriptor): Handle IDENTIFIER_NODEs
14133 when determining the type name.
14135 2013-09-24 Oleg Endo <olegendo@gcc.gnu.org>
14137 * config/sh/sh.md: Fix formatting.
14139 2013-09-24 Xinliang David Li <davidxl@google.com>
14141 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment): Check
14142 max peel iterations parameter.
14143 * param.def: New parameter.
14144 * doc/invoke.texi: Document New parameter.
14146 2013-09-24 Christophe Lyon <christophe.lyon@linaro.org>
14148 * gimple-pretty-print.c: Various whitespace tweaks.
14149 * tree-core.h: Likewise.
14150 * tree-pretty-print.c: Likewise.
14151 * tree-ssa-alias.c: Likewise.
14152 * tree-ssa-copy.c: Likewise.
14153 * tree-ssanames.c: Likewise.
14154 * tree-ssanames.h: Likewise.
14155 * tree-vrp.c: Likewise.
14157 2013-09-24 Alan Modra <amodra@gmail.com>
14159 PR middle-end/57134
14160 PR middle-end/57586
14161 * stmt.c (expand_asm_operands): Call expand_expr with EXPAND_MEMORY
14162 for output operands that disallow regs. Don't use EXPAND_WRITE on
14165 2013-09-24 Richard Biener <rguenther@suse.de>
14167 PR middle-end/58513
14168 * tree.c (reference_alias_ptr_type): Move ...
14169 * alias.c (reference_alias_ptr_type): ... here and implement
14170 in terms of the new reference_alias_ptr_type_1.
14171 (ref_all_alias_ptr_type_p): New helper.
14172 (get_deref_alias_set_1): Drop flag_strict_aliasing here,
14173 use ref_all_alias_ptr_type_p.
14174 (get_deref_alias_set): Add flag_strict_aliasing check here.
14175 (reference_alias_ptr_type_1): New function, split out from ...
14176 (get_alias_set): ... here.
14177 (alias_ptr_types_compatible_p): New function.
14178 * alias.h (reference_alias_ptr_type): Declare.
14179 (alias_ptr_types_compatible_p): Likewise.
14180 * tree.h (reference_alias_ptr_type): Remove.
14181 * fold-const.c (operand_equal_p): Use alias_ptr_types_compatible_p
14182 to compare MEM_REF alias types.
14184 2013-09-24 Richard Biener <rguenther@suse.de>
14186 * tree-vrp.c (vrp_finalize): Check for SSA name presence.
14188 2013-09-23 Michael Meissner <meissner@linux.vnet.ibm.com>
14190 * config/rs6000/rs6000.c (rs6000_vector_reload): Delete, combine
14191 reload helper function arrays into a single array reg_addr.
14192 (reload_fpr_gpr): Likewise.
14193 (reload_gpr_vsx): Likewise.
14194 (reload_vsx_gpr): Likewise.
14195 (struct rs6000_reg_addr): Likewise.
14196 (reg_addr): Likewise.
14197 (rs6000_debug_reg_global): Change rs6000_vector_reload,
14198 reload_fpr_gpr, reload_gpr_vsx, reload_vsx_gpr uses to reg_addr.
14199 (rs6000_init_hard_regno_mode_ok): Likewise.
14200 (rs6000_secondary_reload_direct_move): Likewise.
14201 (rs6000_secondary_reload): Likewise.
14203 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Add new
14204 constraints: wu, ww, and wy. Repurpose wv constraint added during
14205 power8 changes. Put wg constraint in alphabetical order.
14207 * config/rs6000/rs6000.opt (-mvsx-scalar-float): New debug switch
14208 for future work to add ISA 2.07 VSX single precision support.
14209 (-mvsx-scalar-double): Change default from -1 to 1, update
14210 documentation comment.
14211 (-mvsx-scalar-memory): Rename debug switch to -mupper-regs-df.
14212 (-mupper-regs-df): New debug switch to control whether DF values
14213 can go in the traditional Altivec registers.
14214 (-mupper-regs-sf): New debug switch to control whether SF values
14215 can go in the traditional Altivec registers.
14217 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Print wu, ww,
14218 and wy constraints.
14219 (rs6000_init_hard_regno_mode_ok): Use ssize_t instead of int for
14220 loop variables. Rename -mvsx-scalar-memory to -mupper-regs-df.
14221 Add new constraints, wu/ww/wy. Repurpose wv constraint.
14222 (rs6000_debug_legitimate_address_p): Print if we are running
14223 before, during, or after reload.
14224 (rs6000_secondary_reload): Add a comment.
14225 (rs6000_opt_masks): Add -mupper-regs-df, -mupper-regs-sf.
14227 * config/rs6000/constraints.md (wa constraint): Sort w<x>
14228 constraints. Update documentation string.
14229 (wd constraint): Likewise.
14230 (wf constraint): Likewise.
14231 (wg constraint): Likewise.
14232 (wn constraint): Likewise.
14233 (ws constraint): Likewise.
14234 (wt constraint): Likewise.
14235 (wx constraint): Likewise.
14236 (wz constraint): Likewise.
14237 (wu constraint): New constraint for ISA 2.07 SFmode scalar
14239 (ww constraint): Likewise.
14240 (wy constraint): Likewise.
14241 (wv constraint): Repurpose ISA 2.07 constraint that we did not use
14242 in the previous submissions.
14243 * doc/md.texi (PowerPC and IBM RS6000): Likewise.
14245 2013-09-23 Richard Sandiford <rdsandiford@googlemail.com>
14247 * doc/rtl.texi (REG_NOTES): Say that int_list can also be used.
14248 (REG_BR_PROB): Say that the probability is stored in an int_list.
14249 * reg-notes.def: Update commentary to mention INT_LIST.
14250 * rtl.def (EXPR_LIST, INSN_LIST): Capitalize comments.
14251 (INT_LIST): New rtx.
14252 * rtl.h (add_int_reg_note, add_shallow_copy_of_reg_note): Declare.
14253 * rtlanal.c (int_reg_note_p): New function.
14254 (alloc_reg_note): Assert that the note does not have an int argument.
14255 (add_int_reg_note, add_shallow_copy_of_reg_note): New functions.
14256 * combine.c (distribute_notes): Use add_shallow_copy_of_rtx.
14257 * cse.c (cse_process_notes_1): Expect REG_EQUAL to be an EXPR_LIST
14258 rather than an INSN_LIST. Handle INT_LIST.
14259 * ifcvt.c (cond_exec_process_insns): Take the probability as an int
14260 rather than an rtx. Use gen_rtx_INT_LIST to create a REG_BR_PROB note.
14261 (cond_exec_process_if_block): Use XINT to extract REG_BR_PROB values.
14262 Manipulate them as ints rather than rtxes.
14263 * reg-stack.c (subst_asm_stack_regs): Only handle EXPR_LIST notes.
14264 * regmove.c (copy_src_to_dest): Likewise.
14265 * sched-vis.c (print_insn_with_notes): Handle INT_LIST.
14267 * config/i386/winnt.c (i386_pe_seh_unwind_emit): Sink pat assignment
14268 into the cases that need it.
14269 * config/arm/arm.c (arm_unwind_emit): Likewise.
14271 * asan.c (asan_clear_shadow): Use add_int_reg_note for REG_BR_PROB.
14272 * emit-rtl.c (try_split, emit_copy_of_insn_after): Likewise.
14273 * loop-doloop.c (add_test, doloop_modify): Likewise.
14274 * loop-unswitch.c (compare_and_jump_seq): Likewise.
14275 * optabs.c (emit_cmp_and_jump_insn_1): Likewise.
14276 * predict.c (combine_predictions_for_insn): Likewise.
14277 * print-rtl.c (print_rtx): Handle INT_LIST.
14278 * config/aarch64/aarch64.c (aarch64_emit_unlikely_jump): Likewise.
14279 * config/alpha/alpha.c (emit_unlikely_jump): Likewise.
14280 * config/arm/arm.c (emit_unlikely_jump): Likewise.
14281 * config/i386/i386.c (ix86_expand_split_stack_prologue): Likewise.
14282 (ix86_split_fp_branch, predict_jump): Likewise.
14283 * config/rs6000/rs6000.c (emit_unlikely_jump): Likewise.
14284 * config/sh/sh.c (expand_cbranchsi4): Likewise.
14285 * config/spu/spu.c (ea_load_store_inline): Likewise.
14287 * cfgbuild.c (compute_outgoing_frequencies): Use XINT to access the
14288 value of a REG_BR_PROB note.
14289 * cfgrtl.c (force_nonfallthru_and_redirect): Likewise.
14290 (update_br_prob_note, rtl_verify_edges, purge_dead_edges): Likewise.
14291 * emit-rtl.c (try_split): Likewise.
14292 * predict.c (br_prob_note_reliable_p): Likewise.
14293 (invert_br_probabilities, combine_predictions_for_insn): Likewise.
14294 * reorg.c (mostly_true_jump): Likewise.
14295 * config/bfin/bfin.c (cbranch_predicted_taken_p): Likewise.
14296 * config/frv/frv.c (frv_print_operand_jump_hint): Likewise.
14297 * config/i386/i386.c (ix86_print_operand): Likewise.
14298 * config/ia64/ia64.c (ia64_print_operand): Likewise.
14299 * config/mmix/mmix.c (mmix_print_operand): Likewise.
14300 * config/rs6000/rs6000.c (output_cbranch): Likewise.
14301 * config/s390/s390.c (s390_expand_tbegin): Likewise.
14302 * config/sh/sh.c (sh_print_operand, sh_adjust_cost): Likewise.
14303 * config/sparc/sparc.c (output_cbranch): Likewise.
14304 * config/spu/spu.c (get_branch_target): Likewise.
14305 * config/tilegx/tilegx.c (cbranch_predicted_p): Likewise.
14306 * config/tilepro/tilepro.c (cbranch_predicted_p): Likewise.
14308 2013-09-23 Jan Hubicka <jh@suse.cz>
14310 * ipa-cp.c (ipa_get_indirect_edge_target_1): Add sanity check
14312 * ipa-utils.h (possible_polymorphic_call_target_p): New function.
14313 * ipa-devirt.c (possible_polymorphic_call_target_p): Be tolerant
14315 * gimple-fold.c: Include ipa-utils.h and gimple-pretty-print.h
14316 (gimple_fold_call): Dump inconsistent devirtualizations; add
14317 sanity check for type based devirtualizations.
14318 * ipa-prop.c: Include ipa-utils.h
14319 (ipa_intraprocedural_devirtualization): Add sanity check.
14320 (try_make_edge_direct_virtual_call): Likewise.
14322 2013-09-23 Eric Botcazou <ebotcazou@adacore.com>
14324 * tree-ssa-ccp.c (insert_clobber_before_stack_restore): Recurse on copy
14325 assignment statements.
14327 2013-09-23 Kugan Vivekanandarajah <kuganv@linaro.org>
14329 * gimple-pretty-print.c (dump_ssaname_info): New function.
14330 (dump_gimple_phi): Call it.
14331 (pp_gimple_stmt_1): Likewise.
14332 * tree-core.h (tree_ssa_name): New union ssa_name_info_type field.
14333 (range_info_def): Declare.
14334 * tree-pretty-print.c (pp_double_int): New function.
14335 (dump_generic_node): Call it.
14336 * tree-pretty-print.h (pp_double_int): Declare.
14337 * tree-ssa-alias.c (dump_alias_info): Check pointer type.
14338 * tree-ssanames.h (range_info_def): New structure.
14339 (value_range_type): Move definition here.
14340 (set_range_info, value_range_type, duplicate_ssa_name_range_info):
14342 * tree-ssanames.c (make_ssa_name_fn): Check pointer type at
14344 (set_range_info): New function.
14345 (get_range_info): Likewise.
14346 (duplicate_ssa_name_range_info): Likewise.
14347 (duplicate_ssa_name_fn): Check pointer type and call
14348 duplicate_ssa_name_range_info.
14349 * tree-ssa-copy.c (fini_copy_prop): Likewise.
14350 * tree-vrp.c (value_range_type): Remove definition, now in
14352 (vrp_finalize): Call set_range_info to update value range of SSA_NAMEs.
14353 * tree.h (SSA_NAME_PTR_INFO): Macro changed to access via union.
14354 (SSA_NAME_RANGE_INFO): New macro.
14356 2013-09-23 Richard Biener <rguenther@suse.de>
14358 PR tree-optimization/58464
14359 * tree-ssa-pre.c (phi_trans_lookup): Remove.
14360 (phi_trans_add): Change to add conditionally on being not present.
14361 (phi_translate_1): Remove recursion detection here.
14362 (phi_translate): Pre-seed the cache with NULL to catch
14363 recursion here in a more generic way.
14364 (bitmap_find_leader): Adjust comment.
14365 (get_representative_for): Dump value-numbers.
14366 (create_expression_by_pieces): Likewise.
14367 (insert_into_preds_of_block): Likewise.
14369 2013-09-23 Christian Bruel <christian.bruel@st.com>
14372 * config/sh/sh.md (movsf_ie): Allow fpul_operand.
14373 * config/sh/predicate.md (arith_reg_operand): Disallow FPUL_REG.
14375 2013-09-23 James Greenhalgh <james.greenhalgh@arm.com>
14378 2013-09-20 Renlin Li <renlin.li@arm.com>
14380 * config/aarch64/aarch64.c (aarch64_expand_prologue): Use
14382 (aarch64_expand_epilogue): Likewise.
14383 (aarch64_legitimize_reload_address): Likewise.
14385 2013-09-22 Eric Botcazou <ebotcazou@adacore.com>
14387 * gimplify.c (gimplify_asm_expr): Reset the TREE_CHAIN of clobbers to
14388 NULL_TREE before pushing them onto the vector. Likewise for labels.
14390 2013-09-21 Eric Botcazou <ebotcazou@adacore.com>
14392 * config/ia64/predicates.md (ia64_cbranch_operator): Accept unordered
14393 comparison operators when -fno-trapping-math is in effect.
14394 * config/ia64/ia64.c (ia64_expand_compare): Add support for unordered
14395 comparison operators in TFmode and assert that unsupported operators
14397 (ia64_print_operand): Likewise.
14399 2013-09-21 Jan Hubicka <jh@suse.cz>
14401 * x86-tune.def (partial_reg_stall): Disable for CoreI7 and newer.
14402 (sse_typeless_stores): Enable for core
14403 (sse_load0_by_pxor): Likewise.
14404 (four_jump_limit): Disable for core.
14405 (pad_returns): Likewise.
14406 (avoid_vector_decode): Likewise.
14407 (fuse_cmp_and_branch): Enable for cores.
14408 * i386.c (x86_accumulate_outgoing_args): Disable for cores.
14410 2013-09-20 John David Anglin <danglin@gcc.gnu.org>
14412 PR middle-end/56791
14413 * config/pa/pa.c (pa_option_override): Disable auto increment and
14414 decrement instructions until reload is completed.
14416 * config/pa/pa-linux.h (TARGET_OS_CPP_BUILTINS): Define
14417 __GCC_HAVE_SYNC_COMPARE_AND_SWAP_1, __GCC_HAVE_SYNC_COMPARE_AND_SWAP_2,
14418 and __GCC_HAVE_SYNC_COMPARE_AND_SWAP_4.
14420 2013-09-20 DJ Delorie <dj@redhat.com>
14421 Nick Clifton <nickc@redhat.com>
14423 * config/rl78/rl78.c: Various whitespace and comment tweaks.
14424 (need_to_save): Save bank 0 on interrupts.
14425 (characterize_address): Strip far address wrappers.
14426 (rl78_as_legitimate_address): Likewise.
14427 (transcode_memory_rtx): Likewise.
14428 (rl78_peep_movhi_p): Disable this peephole after devirt.
14429 (rl78_propogate_register_origins): Forget all origins when a
14431 * config/rl78/rl78-virt.md: Various whitespace tweaks.
14432 * config/rl78/rl78-real.md: Various whitespace tweaks. Additional
14434 * config/rl78/rl78.md (sel_rb): Disable for G10 just in case.
14435 * config/rl78/rl78-expand.md (movqi): Check for subregs of consts.
14436 * config/rl78/rl78.h (LINK_SPEC): Pass -gc-sections unless
14438 * config/rl78/constraints.md: Various whitespace and paren tweaks.
14440 2013-09-20 John David Anglin <danglin@gcc.gnu.org>
14442 * config/pa/pa.md: In "scc" insn patterns, change output template to
14443 handle const0_rtx in reg_or_0_operand operands.
14445 2013-09-20 Martin Husemann <martin@NetBSD.org>
14448 * config/vax/vax.c (vax_output_int_move): Use D format specifier.
14449 * config/vax/vax.md (ashldi3, <unnamed>): Ditto.
14451 2013-09-20 Richard Biener <rguenther@suse.de>
14453 PR middle-end/58484
14454 * tree-scalar-evolution.c (struct scev_info_str): Shrink by
14455 remembering SSA name version and block index.
14456 (new_scev_info_str): Adjust.
14457 (hash_scev_info): Likewise. Also hash the block index.
14458 (eq_scev_info): Adjust.
14459 (find_var_scev_info): Likewise.
14460 (struct instantiate_cache_entry): Remove.
14461 (struct instantiate_cache_type): Use a htab to map name, block
14463 (instantiate_cache_type::~instantiate_cache_type): Adjust.
14464 (get_instantiated_value_entry): Likewise.
14465 (hash_idx_scev_info, eq_idx_scev_info): New functions.
14466 (instantiate_scev_name): Adjust.
14468 2013-09-20 Jeff Law <law@redhat.com>
14470 * tree-ssa-dom.c (record_temporary_equivalences): Add comment.
14472 2013-09-20 Yufeng Zhang <yufeng.zhang@arm.com>
14474 * config/aarch64/aarch64-builtins.c (aarch64_simd_expand_args):
14475 Call aarch64_simd_expand_args to update op[argc].
14477 2013-09-20 Basile Starynkevitch <basile@starynkevitch.net>
14479 * plugin.c (parse_plugin_arg_opt): Accept equal sign inside
14482 2013-09-20 Basile Starynkevitch <basile@starynkevitch.net>
14484 * gengtype.c (file_rules): Added rule for *.cc files.
14485 (get_output_file_with_visibility): Give fatal message when no
14488 2013-09-20 Renlin Li <renlin.li@arm.com>
14490 * config/aarch64/aarch64.c (aarch64_expand_prologue): Use plus_constant.
14491 (aarch64_expand_epilogue): Likewise.
14492 (aarch64_legitimize_reload_address): Likewise.
14494 2013-09-20 Bernd Edlinger <bernd.edlinger@hotmail.de>
14496 PR middle-end/57748
14497 * expr.c (expand_assignment): Remove misalignp code path.
14499 2013-09-20 Marek Polacek <polacek@redhat.com>
14502 * ubsan.c (get_ubsan_type_info_for_type): Use TYPE_SIZE instead of
14503 TYPE_PRECISION. Add asserts.
14505 2013-09-20 Richard Biener <rguenther@suse.de>
14507 PR tree-optimization/58453
14508 * tree-loop-distribution.c (distribute_loop): Apply the cost
14509 model for -ftree-loop-distribute-patterns, too.
14511 2013-09-20 Richard Biener <rguenther@suse.de>
14513 PR middle-end/58473
14514 * tree-chrec.h (build_polynomial_chrec): Use gcc_checking_assert,
14515 make type comparison less strict.
14517 2013-09-20 Alan Modra <amodra@gmail.com>
14519 * configure: Regenerate.
14520 * aclocal.m4: Regenerate.
14522 2013-09-20 Marek Polacek <polacek@redhat.com>
14525 * doc/extend.texi: Document that attribute used is meant to be used
14526 on variables with static storage duration.
14528 2013-09-19 Jakub Jelinek <jakub@redhat.com>
14530 PR tree-optimization/58472
14531 * tree-vect-stmts.c (vectorizable_store, vectorizable_load): For
14532 simd_lane_access set inv_p = false.
14533 * omp-low.c (lower_rec_input_clauses): Set TREE_NO_WARNING on
14534 the simduid magic VAR_DECL.
14536 2013-09-19 Jan Hubicka <jh@suse.cz>
14538 * i386.c (generic_memcpy, generic_memset): Fix 32bit template.
14540 2013-09-17 Jeff Law <law@redhat.com>
14542 * tree-ssa-dom.c (record_temporary_equivalences): New function
14543 split out of dom_opt_dom_walker::after_dom_children.
14544 (dom_opt_dom_walker::thread_across_edge): Move common code
14545 in here from dom_opt_dom_walker::after_dom_children.
14546 (dom_opt_dom_walker::after_dom_children): Corresponding simplifictions.
14548 2013-09-19 Jan Hubicka <jh@suse.cz>
14550 * i386.h (TARGET_GENERIC32, TARGET_GENERIC64): Remove.
14551 (TARGET_GENERIC): Use PROCESOR_GENERIC
14552 (enum processor_type): Unify generic32 and 64.
14553 * i386.md (cpu): Likewise.
14554 * x86-tune.def (use_leave): Enable for generic32.
14555 (avoid_vector_decode, slow_imul_imm32_mem, slow_imul_imm8): Likewise.
14556 * athlon.md: Change generic64 to generic in all occurences.
14557 * i386-c.c (ix86_target_macros_internal): Unify generic64 and 32.
14558 (ix86_target_macros_internal): Likewise.
14559 * driver-i386.c (host_detect_local_cpu): Likewise.
14560 * i386.c (generic64_memcpy, generic64_memset, generic64_cost): Rename
14562 (generic_memcpy, generic_memset, generic_cost): This one.
14563 (generic32_memcpy, generic32_memset, generic32_cost): Remove.
14564 (m_GENERIC32, m_GENERIC64): Remove.
14565 (m_GENERIC): Turn into one flag.
14566 (processor_target): Unify generic tunnings.
14567 (ix86_option_override_internal): Replace generic32/64 by generic.
14568 (ix86_issue_rate): Likewise.
14569 (ix86_adjust_cost): Likewise.
14571 2013-09-19 Jan Hubicka <jh@suse.cz>
14573 * cgraph.c (cgraph_create_edge_1): Avoid uninitialized read
14574 of speculative flag.
14576 2013-09-19 Jakub Jelinek <jakub@redhat.com>
14578 * omp-low.c (expand_omp_sections): Always pass len - 1 to
14579 GOMP_sections_start, even if !exit_reachable.
14581 2013-09-18 Vladimir Makarov <vmakarov@redhat.com>
14583 * lra-constraints.c (need_for_all_save_p): Use macro
14584 HARD_REGNO_CALL_PART_CLOBBERED.
14585 * lra-lives.c (check_pseudos_live_through_calls): Use the macro to
14586 set up pseudo conflict hard regs.
14588 2013-09-18 Michael Meissner <meissner@linux.vnet.ibm.com>
14591 * config/rs6000/paired.md (movmisalignv2sf): Fix to allow memory
14594 2013-09-18 Vladimir Makarov <vmakarov@redhat.com>
14596 PR rtl-optimization/58438
14597 * lra.c (lra): Clear lra_optional_reload_pseudos in upper loop.
14598 * lra-constraints.c (undo_optional_reloads): Keep optional reloads
14599 from previous subpasses.
14601 2013-09-18 Richard Earnshaw <rearnsha@arm.com>
14603 * arm.c (arm_get_frame_offsets): Validate architecture supports
14604 LDRD/STRD before accepting the tuning preference.
14605 (arm_expand_prologue): Likewise.
14606 (arm_expand_epilogue): Likewise.
14608 2013-09-18 Richard Biener <rguenther@suse.de>
14610 PR tree-optimization/58417
14611 * tree-chrec.c (chrec_fold_plus_1): Assert that we do not
14612 have chrecs with symbols defined in the loop as operands.
14613 (chrec_fold_multiply): Likewise.
14614 * tree-scalar-evolution.c (interpret_rhs_expr): Instantiate
14615 parameters before folding binary operations.
14616 (struct instantiate_cache_entry_hasher): Remove.
14617 (struct instantiate_cache_type): Use a pointer-map.
14618 (instantiate_cache_type::instantiate_cache_type): New function.
14619 (instantiate_cache_type::get): Likewise.
14620 (instantiate_cache_type::set): Likewise.
14621 (instantiate_cache_type::~instantiate_cache_type): Adjust.
14622 (get_instantiated_value_entry): Likewise.
14623 (global_cache): New global.
14624 (instantiate_scev_r, instantiate_scev_poly, instantiate_scev_binary,
14625 instantiate_array_ref, instantiate_scev_convert, instantiate_scev_3,
14626 instantiate_scev_2, instantiate_scev_1): Do not pass along cache.
14627 (instantiate_scev_name): Adjust.
14628 (instantiate_scev): Construct global instead of local cache.
14629 (resolve_mixers): Likewise.
14631 2013-09-18 Daniel Morris <danielm@ecoscentric.com>
14632 Paolo Carlini <paolo.carlini@oracle.com>
14635 * doc/implement-cxx.texi: Fix references to the C++ standards.
14637 2013-09-18 Jakub Jelinek <jakub@redhat.com>
14639 * omp-low.c (copy_var_decl): Copy DECL_ATTRIBUTES.
14640 * tree-vect-data-refs.c (vect_analyze_data_refs): For
14641 simd_lane_access drs, update also DR_ALIGNED_TO.
14643 2013-09-18 Marek Polacek <polacek@redhat.com>
14646 * doc/extend.texi: Document no_sanitize_undefined attribute.
14647 * builtins.c (fold_builtin_0): Don't sanitize function if it has the
14648 no_sanitize_undefined attribute.
14650 2013-09-18 Nick Clifton <nickc@redhat.com>
14652 * config/msp430/msp430.h (ASM_SPEC): Pass -md on to the assembler.
14653 (ASM_DECLARE_FUNCTION_NAME): Define.
14655 2013-09-17 Trevor Saunders <tsaunders@mozilla.com>
14657 * compare-elim.c (find_comparison_dom_walker): New class
14658 (find_comparisons_in_bb): Rename to
14659 find_comparison_dom_walker::before_dom_children
14660 (find_comparisons): Adjust
14661 * domwalk.c (walk_dominator_tree): Rename to dom_walker::walk, and
14663 (init_walk_dominator_tree, fini_walk_dominator_tree): Remove
14664 * domwalk.h (dom_walk_data): Convert it To a class dom_walker.
14665 (init_walk_dominator_tree): Remove declaration.
14666 (fini_walk_dominator_tree): Remove declaration.
14667 * fwprop.c (single_def_use_dom_walker): New class
14668 (single_def_use_enter_block): Convert to
14669 single_def_use_dom_walker::before_dom_children.
14670 (single_def_use_leave_block): Convert to
14671 single_def_use_dom_walker::after_dom_children.
14672 (build_single_def_use_links): Adjust.
14673 * gimple-ssa-strength-reduction.c (find_candidates_dom_walker): New
14675 (find_candidates_in_block): Convert to
14676 find_candidates_dom_walker::before_dom_children.
14677 (execute_strength_reduction): Adjust.
14678 * graphite-sese-to-poly.c (struct bsc, build_sese_conditions): Remove.
14679 (sese_dom_walker): New class.
14680 (sese_dom_walker::sese_dom_walker): New constructor.
14681 (sese_dom_walker::~sese_dom_walker): New destructor.
14682 (build_sese_conditions_before): Convert to
14683 sese_dom_walker::before_dom_children.
14684 (build_sese_conditions_after): Convert to
14685 sese_dom_walker::after_dom_children.
14686 (build_poly_scop): Adjust
14687 * tree-into-ssa.c (rewrite_dom_walker): New class
14688 (rewrite_enter_block): Convert to
14689 rewrite_dom_walker::before_dom_children.
14690 (rewrite_leave_block): Convert to
14691 rewrite_dom_walker::after_dom_children.
14692 (rewrite_update_dom_walker): New class.
14693 (rewrite_update_enter_block): Convert to
14694 rewrite_update_dom_walker::before_dom_children.
14695 (rewrite_update_leave_block): Convert to
14696 rewrite_update_dom_walker::after_dom_children.
14697 (rewrite_blocks, rewrite_into_ssa): Adjust.
14698 (mark_def_dom_walker): New class.
14699 (mark_def_dom_walker::mark_def_dom_walker): New constructor.
14700 (mark_def_dom_walker::~mark_def_dom_walker): New destructor.
14701 (mark_def_sites_blocks): Convert to
14702 mark_def_dom_walker::before_dom_children.
14703 (mark_def_site_blocks): Remove.
14704 * tree-ssa-dom.c (dom_opt_dom_walker): New class.
14705 (tree_ssa_dominator_optimize): Adjust.
14706 (dom_thread_across_edge): Convert to method
14707 dom_opt_dom_walker::thread_across_edge.
14708 (dom_opt_enter_block): Convert to member function
14709 dom_opt_dom_walker::before_dom_children.
14710 (dom_opt_leave_block): Convert to member function
14711 dom_opt_dom_walker::after_dom_children.
14712 * tree-ssa-dse.c (dse_dom_walker): New class.
14713 (dse_enter_block): Convert to member function
14714 dse_dom_walker::before_dom_children.
14715 (tree_ssa_dse): Adjust.
14716 * tree-ssa-loop-im.c (invariantness_dom_walker): New class.
14717 (determine_invariantness_stmt): Convert to method
14718 invariantness_dom_walker::before_dom_children.
14719 (determine_invariantness): Remove
14720 (move_computations_dom_walker): New class.
14721 (move_computations_stmt): Convert to method
14722 move_computations_dom_walker::before_dom_children.
14723 (move_computations, tree_ssa_lim): Adjust.
14724 * tree-ssa-phiopt.c (nontrapping_dom_walker): New class.
14725 (nt_init_block): Convert to method
14726 notrappping_dom_walker::before_dom_children.
14727 (nt_fini_block): Convert to method
14728 method nontrapping_dom_walker::after_dom_children.
14729 (get_non_trapping): Adjust.
14730 * tree-ssa-pre.c (eliminate_dom_walker): New class.
14731 (eliminate_bb): Convert to method
14732 eliminate_dom_walker::before_dom_children.
14733 (eliminate_leave_block): Convert to method
14734 eliminate_dom_walker::after_dom_children.
14735 (eliminate): Adjust.
14736 * tree-ssa-strlen.c (strlen_dom_walker): New class.
14737 (strlen_enter_block): Convert to method
14738 strlen_dom_walker::before_dom_children.
14739 (strlen_leave_block): Convert to method
14740 method strlen_dom_walker::after_dom_children.
14741 (tree_ssa_strlen): Adjust.
14742 * tree-ssa-uncprop.c (uncprop_dom_walker): New class.
14743 (tree_ssa_uncprop): Adjust.
14744 (uncprop_leave_block): Convert to method
14745 uncprop_dom_walker::after_dom_children.
14746 (uncprop_leave_block): Convert to method
14747 uncprop_dom_walker::before_dom_children.
14749 2013-09-18 Bin Cheng <bin.cheng@arm.com>
14751 * config/arm/arm.c (thumb1_reorg): Search for flag setting insn before
14752 branch in same basic block. Check both src and dest of the move insn.
14754 2013-09-17 Nick Clifton <nickc@redhat.com>
14756 * config/rl78/rl78-real.md (bf): New pattern.
14758 * config/rl78/rl78.c (rl78_print_operand_1): Handle %B.
14759 (rl78_print_operand): Do not put a # before a %B.
14760 * config/rl78/rl78.opt: Tweak doc strings.
14762 2013-09-17 DJ Delorie <dj@redhat.com>
14764 * config/rl78/constraints.md (Wcv): Allow up to $r31.
14765 * config/rl78/rl78.c (rl78_asm_file_start: Likewise.
14766 (rl78_option_override): Likewise, if -mallregs.
14767 (is_virtual_register): Likewise.
14768 * config/rl78/rl78.h (reg_class): Extend VREGS to $r31.
14769 (REGNO_OK_FOR_BASE_P): Likewise.
14770 * config/rl78/rl78.opt (-mallregs): New.
14772 2013-09-17 Nick Clifton <nickc@redhat.com>
14774 * config/rl78/rl78.c (need_to_save): Change return type to bool.
14775 For interrupt functions: save all call clobbered registers if the
14776 interrupt handler is not a leaf function.
14777 (rl78_expand_prologue): Always recompute the frame information.
14778 For interrupt functions: only select bank 0 if one of the bank 0
14779 registers is going to be psuhed.
14781 2013-09-17 DJ Delorie <dj@redhat.com>
14783 * config/rl78/constraints.md: For each W* constraint, rename to C*
14784 and create a W* constraint that checks for an optional ES: prefix
14786 * config/rl78/rl78.md (UNS_ES_ADDR): New.
14787 (es_addr): New. Used to wrap far addresses.
14788 * config/rl78/rl78-protos.h (rl78_es_addr): New.
14789 (rl78_es_base): New.
14790 * config/rl78/rl78.c (rl78_as_legitimate_address): Accept "unspec"
14791 wrapped far addresses.
14792 (rl78_print_operand_1): Unwrap far addresses before processing.
14793 (rl78_lo16): Wrap far addresses in unspecs.
14794 (rl78_es_addr): New.
14795 (rl78_es_base): New.
14796 (insn_ok_now): Check for not-yet-wrapped far addresses.
14797 (transcode_memory_rtx): Properly re-wrap far addresses.
14799 2013-09-17 Sebastian Huber <sebastian.huber@embedded-brains.de>
14801 * config/sparc/t-rtems: Add leon3 multilibs.
14803 2013-09-17 Cong Hou <congh@google.com>
14805 * tree-vect-patterns.c (vect_recog_dot_prod_pattern): Fix a bug
14806 when checking the dot production pattern. The type of rhs operand
14807 of multiply is now checked correctly.
14809 2013-09-17 Jeff Law <law@redhat.com>
14811 * tree-ssa-dom.c (cprop_into_successor_phis): Also propagate
14812 edge implied equivalences into successor phis.
14813 * tree-ssa-threadupdate.c (phi_args_equal_on_edges): Moved into
14814 here from tree-ssa-threadedge.c.
14815 (mark_threaded_blocks): When threading through a joiner, if both
14816 successors of the joiner's clone reach the same block, verify the
14817 PHI arguments are equal. If not, cancel the jump threading request.
14818 * tree-ssa-threadedge.c (phi_args_equal_on_edges): Moved into
14819 tree-ssa-threadupdate.c
14820 (thread_across_edge): Don't check PHI argument equality when
14821 threading through joiner block here.
14823 2013-09-17 Andrew MacLeod <amacleod@redhat.com>
14825 * tree-flow.h (ssa_undefined_value_p): Remove prototype.
14826 * tree-ssa.c (ssa_undefined_value_p): Move pass independent parts here.
14827 (warn_uninit, warn_uninitialized_vars,
14828 execute_early_warn_uninitialized, make_pass_early_warn_uninitialized):
14829 Move to tree-ssa-uninit.c.
14830 * tree-ssa-uninit.c (ssa_undefined_value_p): Move to tree-ssa.c.
14831 (has_undefined_value_p): New. Pass dependant parts of
14832 ssa_undefined_value_p.
14833 (uninit_undefined_value_p): Use has_undefined_value_p.
14834 (warn_uninit, warn_uninitialized_vars,
14835 execute_early_warn_uninitialized, make_pass_early_warn_uninitialized):
14836 Move from tree-ssa.c.
14837 * tree-ssa.h: Adjust prototypes.
14839 2013-09-17 Jan Hubicka <jh@suse.cz>
14841 PR middle-end/58332
14842 * cif-code.def (FUNCTION_NOT_OPTIMIZED): New CIF code.
14843 * ipa-inline.c (can_inline_edge_p): Do not downgrade
14844 FUNCTION_NOT_OPTIMIZED.
14845 * ipa-inline-analysis.c (compute_inline_parameters): Function
14846 not optimized is not inlinable unless it is alwaysinline.
14847 (inline_analyze_function): Force calls in not optimized
14848 function not inlinable.
14850 2013-09-17 Jan Hubicka <jh@suse.cz>
14852 PR middle-end/58329
14853 * ipa-devirt.c (ipa_devirt): Be ready for symtab_nonoverwritable_alias
14855 * ipa.c (function_and_variable_visibility): Likewise.
14856 * ipa-profile.c (ipa_profile): Likewise.
14858 2013-09-17 Bernd Edlinger <bernd.edlinger@hotmail.de>
14861 * cgraph.c (cgraph_function_body_availability): Check for ifunc
14862 attribute, and don't inline the resolver in this case.
14864 2013-09-17 Teresa Johnson <tejohnson@google.com>
14866 * coverage.c (get_coverage_counts): Add missing newline.
14868 2013-09-17 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
14870 PR tree-optimization/58088
14871 * fold-const.c (mask_with_trailing_zeros): New function.
14872 (fold_binary_loc): Make sure we don't recurse infinitely
14873 when the X in (X & C1) | C2 is a tree of the form (Y * K1) & K2.
14874 Use mask_with_trailing_zeros where appropriate.
14876 2013-09-17 Yuri Rumyantsev <ysrumyan@gmail.com>
14878 * config/i386/i386.c (distance_agu_use_in_bb) : Proper initialization
14879 of 'prev' var to get better distance estimation.
14881 2013-09-17 Eric Botcazou <ebotcazou@adacore.com>
14883 * tree-inline.h (struct copy_body_data): Add transform_parameter.
14884 * tree-inline.c (is_parameter_of): New predicate.
14885 (remap_gimple_op_r): Do not propagate TREE_THIS_NOTRAP on MEM_REF if
14886 a parameter has been remapped.
14887 (copy_tree_body_r): Likewise on INDIRECT_REF and MEM_REF.
14888 (optimize_inline_calls): Initialize transform_parameter.
14889 (copy_gimple_seq_and_replace_locals): Likewise.
14890 (tree_function_versioning): Likewise.
14891 (maybe_inline_call_in_expr): Likewise.
14893 2013-09-17 Nick Clifton <nickc@redhat.com>
14895 * config/msp430/msp430-protos.h: Add prototypes for new functions.
14896 * config/msp430/msp430.c (msp430_preserve_reg_p): Add support for
14897 interrupt handlers.
14898 (is_attr_func): New function.
14899 (msp430_is_interrupt_func): New function.
14900 (is_naked_func): New function.
14901 (is_reentrant_func): New function.
14902 (is_critical_func): New function.
14903 (msp430_start_function): Add annotations for function attributes.
14904 (msp430_attr): New function.
14905 (msp430_attribute_table): New.
14906 (msp430_function_section): New function.
14907 (TARGET_ASM_FUNCTION_SECTION): Define.
14908 (msp430_builtin): New enum.
14909 (msp430_init_builtins): New function.
14910 (msp430_builtin_devl): New function.
14911 (msp430_expand_builtin): New function.
14912 (TARGET_INIT_BUILTINS): Define.
14913 (TARGET_EXPAND_BUILTINS): Define.
14914 (TARGET_BUILTIN_DECL): Define.
14915 (msp430_expand_prologue): Add support for naked, interrupt,
14916 critical and reentrant functions.
14917 (msp430_expand_epilogue): Likewise.
14918 (msp430_print_operand): Handle 'O' character.
14919 * config/msp430/msp430.h (TARGET_CPU_CPP_BUILTINS): Define
14921 * config/msp430/msp430.md (unspec): Add UNS_DINT, UNS_EINT,
14922 UNS_PUSH_INTR, UNS_POP_INTR, UNS_BIC_SR, UNS_BIS_SR.
14923 (pushm): Use a 'n' rather than an 'i' constraint.
14924 (msp_return): Add generation of the interrupt return instruction.
14925 (disable_interrupts): New pattern.
14926 (enable_interrupts): New pattern.
14927 (push_intr_state): New pattern.
14928 (pop_intr_state): New pattern.
14929 (bic_SR): New pattern.
14930 (bis_SR): New pattern.
14931 * doc/extend.texi: Document MSP430 function attributes and builtin
14934 2013-09-17 Richard Biener <rguenther@suse.de>
14936 PR tree-optimization/58432
14937 * tree-loop-distribution.c (tree_loop_distribution): Also
14938 scan PHIs for outside loop uses and seed a partition from them.
14940 2013-09-17 Bin Cheng <bin.cheng@arm.com>
14942 * gimple-ssa-strength-reduction.c (backtrace_base_for_ref): New.
14943 (restructure_reference): Call backtrace_base_for_ref.
14945 2013-09-17 Alan Modra <amodra@gmail.com>
14948 * config/rs6000/driver-rs6000.c (elf_platform): Revert 2013-06-11
14951 2013-09-16 DJ Delorie <dj@redhat.com>
14953 * config/rl78/rl78.c (rl78_asm_file_start): Specify alternate
14954 vregs location for RL78/G10.
14955 (rl78_expand_prologue): Avoid SEL on G10.
14956 (rl78_expand_epilogue): Likewise.
14957 (rl78_peep_movhi_p): Can't move a constant to memory in HImode.
14958 * config/rl78/rl78.h (TARGET_CPU_CPP_BUILTINS): Define
14959 __RL78_G10__ when appropriate.
14960 (ASM_SPEC): Pass -mg10 along to the assembler.
14961 * config/rl78/rl78.md (sel_rb): Disable for G10.
14962 * config/rl78/rl78.opt: Add -mg10 option.
14963 * config/rl78/t-rl78: Add -mg10 multilib.
14965 2013-09-16 Xinliang David Li <davidxl@google.com>
14967 * tree-if-conv.c (main_tree_if_conversion): Check new flag.
14968 * omp-low.c (omp_max_vf): Ditto.
14969 (expand_omp_simd): Ditto.
14970 * tree-vectorizer.c (vectorize_loops): Ditto.
14971 (gate_vect_slp): Ditto.
14972 (gate_increase_alignment): Ditto.
14973 * tree-ssa-pre.c (inhibit_phi_insertion): Ditto.
14974 * tree-ssa-loop.c (gate_tree_vectorize): Ditto.
14975 (gate_tree_vectorize): Name change.
14976 (tree_vectorize): Ditto.
14977 (pass_vectorize::gate): Call new function.
14978 (pass_vectorize::execute): Ditto.
14979 * opts.c: O3 default setting change.
14980 (finish_options): Check new flag.
14981 * doc/invoke.texi: Document new flags.
14982 * common.opt: New flags.
14984 2013-09-16 Andreas Schwab <schwab@linux-m68k.org>
14986 * doc/tm.texi.in (Cond Exec Macros): Remove node.
14987 (Condition Code): Don't reference it.
14988 * doc/tm.texi: Regenerate.
14990 2013-09-16 Vladimir Makarov <vmakarov@redhat.com>
14992 PR middle-end/58418
14993 * lra-constraints.c (undo_optional_reloads): Consider all optional
14994 reload even if it did not get a hard reg.
14996 2013-09-16 Teresa Johnson <tejohnson@google.com>
14998 * dumpfile.c (dump_loc): Remove newline emission.
14999 * tree-vect-data-refs.c (vect_lanes_optab_supported_p): Add newline
15000 emission to dump_printf_loc calls where missing.
15001 (vect_mark_for_runtime_alias_test): Ditto.
15002 (vect_analyze_data_ref_dependence): Ditto.
15003 (vect_analyze_data_ref_dependences): Ditto.
15004 (vect_slp_analyze_data_ref_dependence): Ditto.
15005 (vect_slp_analyze_data_ref_dependences): Ditto.
15006 (vect_compute_data_ref_alignment): Ditto.
15007 (vect_update_misalignment_for_peel): Ditto.
15008 (vect_verify_datarefs_alignment): Ditto.
15009 (vector_alignment_reachable_p): Ditto.
15010 (vect_get_data_access_cost): Ditto.
15011 (vect_enhance_data_refs_alignment): Ditto.
15012 (vect_find_same_alignment_drs): Ditto.
15013 (vect_analyze_data_refs_alignment): Ditto.
15014 (vect_analyze_group_access): Ditto.
15015 (vect_analyze_data_ref_access): Ditto.
15016 (vect_analyze_data_ref_accesses): Ditto.
15017 (vect_prune_runtime_alias_test_list): Ditto.
15018 (vect_analyze_data_refs): Ditto.
15019 (vect_create_addr_base_for_vector_ref): Ditto.
15020 (vect_create_data_ref_ptr): Ditto.
15021 (vect_grouped_store_supported): Ditto.
15022 (vect_grouped_load_supported): Ditto.
15023 * value-prof.c (check_counter): Ditto.
15024 (check_ic_target): Ditto.
15025 * tree-vect-patterns.c (vect_recog_dot_prod_pattern): Ditto.
15026 (vect_recog_widen_mult_pattern): Ditto.
15027 (vect_recog_widen_sum_pattern): Ditto.
15028 (vect_recog_over_widening_pattern): Ditto.
15029 (vect_recog_widen_shift_pattern): Ditto.
15030 (vect_recog_rotate_pattern): Ditto.
15031 (vect_recog_vector_vector_shift_pattern): Ditto.
15032 (vect_recog_divmod_pattern): Ditto.
15033 (vect_recog_mixed_size_cond_pattern): Ditto.
15034 (vect_recog_bool_pattern): Ditto.
15035 (vect_pattern_recog_1): Ditto.
15036 (vect_pattern_recog): Ditto.
15037 * tree-vect-loop.c (vect_determine_vectorization_factor): Ditto.
15038 (vect_is_simple_iv_evolution): Ditto.
15039 (vect_analyze_scalar_cycles_1): Ditto.
15040 (vect_get_loop_niters): Ditto.
15041 (vect_analyze_loop_1): Ditto.
15042 (vect_analyze_loop_form): Ditto.
15043 (vect_analyze_loop_operations): Ditto.
15044 (vect_analyze_loop_2): Ditto.
15045 (vect_analyze_loop): Ditto.
15046 (report_vect_op): Ditto.
15047 (vect_is_slp_reduction): Ditto.
15048 (vect_is_simple_reduction_1): Ditto.
15049 (vect_get_known_peeling_cost): Ditto.
15050 (vect_estimate_min_profitable_iters): Ditto.
15051 (vect_model_reduction_cost): Ditto.
15052 (vect_model_induction_cost): Ditto.
15053 (get_initial_def_for_induction): Ditto.
15054 (vect_create_epilog_for_reduction): Ditto.
15055 (vectorizable_reduction): Ditto.
15056 (vectorizable_induction): Ditto.
15057 (vectorizable_live_operation): Ditto.
15058 (vect_loop_kill_debug_uses): Ditto.
15059 (vect_transform_loop): Ditto.
15060 * tree-vect-stmts.c (vect_mark_relevant): Ditto.
15061 (vect_stmt_relevant_p): Ditto.
15062 (process_use): Ditto.
15063 (vect_mark_stmts_to_be_vectorized): Ditto.
15064 (vect_model_simple_cost): Ditto.
15065 (vect_model_promotion_demotion_cost): Ditto.
15066 (vect_model_store_cost): Ditto.
15067 (vect_get_store_cost): Ditto.
15068 (vect_model_load_cost): Ditto.
15069 (vect_get_load_cost): Ditto.
15070 (vect_init_vector_1): Ditto.
15071 (vect_get_vec_def_for_operand): Ditto.
15072 (vect_finish_stmt_generation): Ditto.
15073 (vectorizable_call): Ditto.
15074 (vectorizable_conversion): Ditto.
15075 (vectorizable_assignment): Ditto.
15076 (vectorizable_shift): Ditto.
15077 (vectorizable_operation): Ditto.
15078 (vectorizable_store): Ditto.
15079 (vectorizable_load): Ditto.
15080 (vectorizable_condition): Ditto.
15081 (vect_analyze_stmt): Ditto.
15082 (vect_transform_stmt): Ditto.
15083 (vect_is_simple_use): Ditto.
15084 * tree-vect-loop-manip.c (slpeel_make_loop_iterate_ntimes): Ditto.
15085 (vect_can_advance_ivs_p): Ditto.
15086 (vect_update_ivs_after_vectorizer): Ditto.
15087 (vect_do_peeling_for_loop_bound): Ditto.
15088 (vect_gen_niters_for_prolog_loop): Ditto.
15089 (vect_update_inits_of_drs): Ditto.
15090 (vect_create_cond_for_alias_checks): Ditto.
15091 * tree-vect-slp.c (vect_get_and_check_slp_defs): Ditto.
15092 (vect_build_slp_tree_1): Ditto.
15093 (vect_supported_load_permutation_p): Ditto.
15094 (vect_analyze_slp_instance): Ditto.
15095 (vect_analyze_slp): Ditto.
15096 (vect_make_slp_decision): Ditto.
15097 (vect_detect_hybrid_slp): Ditto.
15098 (vect_bb_vectorization_profitable_p): Ditto.
15099 (vect_slp_analyze_bb_1): Ditto.
15100 (vect_update_slp_costs_according_to_vf): Ditto.
15101 (vect_get_mask_element): Ditto.
15102 (vect_transform_slp_perm_load): Ditto.
15103 (vect_schedule_slp_instance): Ditto.
15104 (vect_schedule_slp): Ditto.
15105 (vect_slp_transform_bb): Ditto.
15106 * profile.c (read_profile_edge_counts): Ditto.
15107 (compute_branch_probabilities): Ditto.
15108 * coverage.c (get_coverage_counts): Ditto.
15110 2013-09-16 Diego Novillo <dnovillo@google.com>
15112 * tree-core.h: Add missing comment lines from refactoring of tree.h.
15114 2013-09-16 Jan Hubicka <jh@suse.cz>
15116 * gimple-fold.c (can_refer_decl_in_current_unit_p): Do not accept
15117 abstract functions; for static functions check the presence of body.
15119 2013-09-16 James Greenhalgh <james.greenhalgh@arm.com>
15121 * config/aarch64/aarch64-simd-builtins.def (fma): New.
15122 * config/aarch64/aarch64-simd.md
15123 (aarch64_mla_elt<mode>): New.
15124 (aarch64_mla_elt_<vswap_width_name><mode>): Likewise.
15125 (aarch64_mls_elt<mode>): Likewise.
15126 (aarch64_mls_elt_<vswap_width_name><mode>): Likewise.
15127 (aarch64_fma4_elt<mode>): Likewise.
15128 (aarch64_fma4_elt_<vswap_width_name><mode>): Likewise.
15129 (aarch64_fma4_elt_to_128v2df): Likewise.
15130 (aarch64_fma4_elt_to_64df): Likewise.
15131 (fnma<mode>4): Likewise.
15132 (aarch64_fnma4_elt<mode>): Likewise.
15133 (aarch64_fnma4_elt_<vswap_width_name><mode>): Likewise.
15134 (aarch64_fnma4_elt_to_128v2df): Likewise.
15135 (aarch64_fnma4_elt_to_64df): Likewise.
15136 * config/aarch64/iterators.md (VDQSF): New.
15137 * config/aarch64/arm_neon.h
15138 (vfm<as><sdq>_lane<q>_f<32, 64>): Convert to C implementation.
15139 (vml<sa><q>_lane<q>_<fsu><16, 32, 64>): Likewise.
15141 2013-09-16 James Greenhalgh <james.greenhalgh@arm.com>
15143 * config/aarch64/aarch64-simd.md (aarch64_mul3_elt<mode>): New.
15144 (aarch64_mul3_elt_<vswap_width_name><mode>): Likewise.
15145 (aarch64_mul3_elt_to_128df): Likewise.
15146 (aarch64_mul3_elt_to_64v2df): Likewise.
15147 * config/aarch64/iterators.md (VEL): Also handle DFmode.
15149 (VMUL_CHANGE_NLANES) Likewise.
15152 * config/aarch64/arm_neon.h
15153 (vmul<q>_lane<q>_<suf><16,32,64>): Convert to C implementation.
15155 2013-09-16 James Greenhalgh <james.greenhalgh@arm.com>
15157 * config/aarch64/arm_neon.h
15158 (vcvtx_high_f32_f64): Fix parameters.
15160 2013-09-16 Jan-Benedict Glaw <jbglaw@lug-owl.de>
15161 Uros Bizjak <ubizjak@gmail.com>
15163 * config/alpha.c: Include tree-ssanames.h.
15165 2013-09-16 Richard Biener <rguenther@suse.de>
15167 * tree-loop-distribution.c (enum rdg_dep_type): Add control_dd.
15168 (dot_rdg_1): Handle control_dd.
15169 (create_edge_for_control_dependence): New function.
15170 (create_rdg_edges): Add control dependences if asked for.
15171 (build_rdg): Likewise.
15172 (generate_loops_for_partition): If there are not necessary
15173 control stmts remove all their dependencies.
15174 (collect_condition_stmts, rdg_flag_loop_exits): Remove.
15175 (distribute_loop): Pass on control dependences.
15176 (tree_loop_distribution): Compute control dependences and remove
15177 restriction on number of loop nodes.
15179 2013-09-16 Jakub Jelinek <jakub@redhat.com>
15181 * ipa-prop.c (ipa_compute_jump_functions_for_edge): Return early
15182 for internal calls.
15184 2013-09-16 Richard Sandiford <rdsandiford@googlemail.com>
15186 * cse.c (try_const_anchors): Punt on CC modes.
15188 2013-09-15 Jan-Benedict Glaw <jbglaw@lug-owl.de>
15190 * config/vax/constraints.md (T): Add missing CONSTANT_P check.
15192 2013-09-14 John David Anglin <danglin@gcc.gnu.org>
15195 * config/pa/pa.c (pa_expand_prologue): Change mode in gen_rtx_POST_INC
15196 calls to word_mode.
15198 2013-09-14 Iain Sandoe <iain@codesourcery.com>
15201 * config/darwin.c (darwin_objc2_section): Note if ObjC Metadata is
15203 (darwin_objc1_section): Likewise.
15204 (darwin_file_end): Emit Image Info section when required.
15206 2013-09-14 Jan Hubicka <jh@suse.cz>
15208 * tree-into-ssa.c (gate_into_ssa): New.
15209 (pass_data_build_ssa): Use it.
15210 * cgraph.h (expand_thunk): Update prototype.
15211 * cgraphunit.c (analyze_function): Expand thunks early.
15212 (expand_thunk): Fix DECL_CONTEXT of reust_decl;
15213 build proper cgraph; set in_ssa_p; clear bogus TREE_ASM_WRITTEN;
15214 set lowered flag; do not add new function.
15215 (assemble_thunks_and_aliases): Update.
15216 * tree-ssa.c (gate_init_datastructures): New gate.
15217 (pass_data_init_datastructures): Use it.
15219 2013-09-14 Iain Sandoe <iain@codesourcery.com>
15222 * config/i386/i386.c (ix86_function_arg_regno_p): Make Darwin use the
15223 xmm register set described in the psABI.
15225 2013-09-13 Evgeny Gavrin <e.gavrin@samsung.com>
15227 * dwarf2out.c (should_emit_struct_debug): Add check
15228 for type_decl variable is not NULL.
15230 2013-09-13 Jacek Caban <jacek@codeweavers.com>
15232 * config.gcc: Use new winnt-c.c target hooks
15233 * config/t-winnt: New file
15234 * config/winnt-c.c: New file
15235 * doc/tm.texi.in: Document new hook
15236 * doc/tm.texi: Regenerated
15238 2013-09-13 Jan Hubicka <jh@suse.cz>
15240 PR middle-end/58094
15241 * ipa-inline.c (check_callers): New function.
15242 (check_caller_edge): Remove.
15243 (want_inline_function_to_all_callers_p): Also permit alises that are
15245 (inline_to_all_callers): Terminate the walk when devirtualization
15246 introduce new calls.
15248 2013-09-13 Jan Hubicka <jh@suse.cz>
15250 * ipa-inline-analysis.c (struct growth_data): Add node.
15251 (do_estimate_growth_1): Fix detection of recursion.
15253 2013-09-13 Jakub Jelinek <jakub@redhat.com>
15255 PR tree-optimization/58392
15256 * tree-cfg.c (move_sese_region_to_fn): Rename loop variable
15257 to avoid shadowing of outer loop variable. If
15258 saved_cfun->has_simduid_loops or saved_cfun->has_force_vect_loops,
15259 replace_by_duplicate_decl simduid of loops that have it set and
15260 set dest_cfun->has_simduid_loops and/or
15261 dest_cfun->has_force_vect_loops.
15262 * omp-low.c (build_outer_var_ref): Call maybe_lookup_decl_in_outer_ctx
15263 instead of maybe_lookup_decl.
15264 * tree-inline.c (copy_loops): Change blocks_to_copy argument to id.
15265 Use id->blocks_to_copy instead of blocks_to_copy. Adjust recursive
15266 call. Copy over force_vect and copy and remap simduid. Set
15267 cfun->has_simduid_loops and/or cfun->has_force_vect_loops.
15268 (copy_cfg_body): Remove blocks_to_copy argument. Use
15269 id->blocks_to_copy instead of blocks_to_copy. Adjust copy_loops
15270 caller. Don't set cfun->has_simduid_loops and/or
15271 cfun->has_force_vect_loops here.
15272 (copy_body): Remove blocks_to_copy argument. Adjust copy_cfg_body
15274 (expand_call_inline, tree_function_versioning): Adjust copy_body
15277 2013-09-13 Martin Jambor <mjambor@suse.cz>
15280 * ipa-prop.c (try_make_edge_direct_simple_call): Be less strict in
15281 the assert if the edge was a speculative one.
15283 2013-09-13 Richard Biener <rguenther@suse.de>
15285 * tree-data-ref.h (known_dependences_p): Move here ...
15286 * tree-loop-distribution.c (known_dependences_p): ... from here.
15287 (dump_rdg_component, debug_rdg_component): Remove.
15288 (dump_rdg): Adjust.
15289 (generate_loops_for_partition): Use gimple_uid instead of
15290 relying on matching stmt visit order.
15291 (rdg_build_partitions): Take starting stmt vector.
15292 (ldist_gen): Merge into ...
15293 (distribute_loop): ... this function. Do not compute starting
15295 * tree-cfg.c (gimple_duplicate_bb): Copy UID for PHIs.
15297 2013-09-13 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
15299 * config/arm/arm.md (arm_cmpsi_insn): Split rI alternative.
15300 Set type attribute correctly. Set predicable_short_it attribute.
15301 (cmpsi_shiftsi): Remove %? from output template.
15303 2013-09-13 Richard Biener <rguenther@suse.de>
15305 * tree-loop-distribution.c (struct rdg_component,
15306 rdg_defs_used_in_other_loops_p, free_rdg_components,
15307 rdg_build_components): Remove.
15308 (stmts_from_loop): Do not record virtual PHIs.
15309 (generate_loops_for_partition): Skip virtual PHIs.
15310 (build_rdg_partition_for_component): Rename to ...
15311 (build_rdg_partition_for_vertex): ... this and adjust.
15312 (rdg_build_partitions): Take a vector of starting vertices
15313 instead of components. Remove unnecessary leftover handling.
15314 (ldist_gen): Do not build components or record other stores.
15315 (distribute_loop): Do not distribute loops containing stmts
15318 2013-09-13 Christian Bruel <christian.bruel@st.com>
15321 * config/sh/sh.md (mov<mode>_reg_reg): Allow memory reloads.
15323 2013-09-13 Kai Tietz <ktietz@redhat.com>
15325 * config.gcc: Separate cases for mingw and cygwin targets,
15326 and add 64-bit cygwin target case.
15328 * config/i386/winnt-cxx.c (i386_pe_type_dllexport_p): Don't
15329 dll-export inline-functions.
15330 * config/i386/winnt.c (i386_pe_determine_dllexport_p): Likewise.
15332 2013-09-13 Jeff Law <law@redhat.com>
15334 PR middle-end/58387
15336 2013-09-06 Jeff Law <law@redhat.com>
15338 * tree-ssa-dom.c (cprop_into_successor_phis): Also propagate
15339 edge implied equivalences into successor phis.
15341 2013-09-12 DJ Delorie <dj@redhat.com>
15343 * config/rl78/rl78-virt.md: Change from | to \; for asm line
15346 2013-09-12 Brooks Moses <bmoses@google.com>
15349 * Makefile.in: Do not install driver binaries in $(target)/bin.
15351 2013-09-12 DJ Delorie <dj@redhat.com>
15353 * config/rl78/rl78.opt (mrelax): New.
15354 * config/rl78/rl78.h (ASM_SPEC): New, pass on -mrelax to gas.
15355 * config/rl78/rl78.h (LINK_SPEC): New, pass on -mrelax to ld.
15357 * config/rl78/rl78.c (rl78_expand_prologue): Use AX to copy
15359 (rl78_expand_epilogue): Likewise.
15361 2013-09-12 Vladimir Makarov <vmakarov@redhat.com>
15363 PR middle-end/58335
15364 * lra-eliminations.c (remove_reg_equal_offset_note): New.
15365 (eliminate_regs_in_insn): Rewrite frame pointer to hard frame
15366 pointer elimination with using remove_reg_equal_offset_note.
15368 2013-09-12 DJ Delorie <dj@redhat.com>
15370 * config/msp430/: New port.
15371 * config.gcc (msp430): Added.
15372 * doc/invoke.texi: Document MSP430 options.
15373 * doc/install.texi: Document msp430-elf
15374 * doc/md.texi: Document msp430-elf
15375 * doc/contrib.texi: Document msp430-elf
15377 * cfgexpand.c (expand_debug_expr): Avoid sign-extending SImode to
15380 2013-09-12 Martin Jambor <mjambor@suse.cz>
15383 * ipa-prop.c (remove_described_reference): Give up if the edge in the
15384 reference descriptor is NULL.
15385 (ipa_edge_removal_hook): If owning a reference descriptor, set its
15388 2013-09-12 Andrew MacLeod <amacleod@redhat.com>
15390 * tree-flow.h (FREE_SSANAMES): Move to tree-ssanames.c
15391 (SSANAMES, MODIFIED_NORETURN_CALLS, DEFAULT_DEFS, ptr_info_def,
15392 num_ssa_names, ssa_name): Move to tree-ssanames.h + prototypes.
15393 * tree-flow-inline.h (make_ssa_name, copy_ssa_name, duplicate_ssa_name,
15394 make_temp_ssa_name): move to tree-ssanames.h
15395 * tree-ssa-alias.h: Move prototype.
15396 * tree-ssa.h: Include tree-ssanames.h.
15397 * tree-ssanames.c (FREE_SSANAMES): Move to here.
15398 * tree-ssanames.h: New. Move items from tree-flow*.h
15399 * Makefile.in (tree-ssanames.h): Add to tree-ssanames.o and GTFILES.
15401 2013-09-12 Richard Biener <rguenther@suse.de>
15403 PR tree-optimization/58404
15404 * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Also
15405 propagate non-invariant addresses into dereferences wrapped
15406 in component references.
15408 2013-09-12 Richard Biener <rguenther@suse.de>
15410 PR tree-optimization/58402
15411 * passes.def: Move pass_late_warn_uninitialized later.
15413 2013-09-12 Andrew MacLeod <amacleod@redhat.com>
15415 * tree-ssa.h: New. Move content from tree-flow.h and
15416 tree-flow-inline.h.
15417 * tree-flow.h (_edge_var_map, edge_var_map_vector): Move to tree-ssa.h.
15418 Move prototypes belonging to tree-ssa.c.
15419 * tree-flow-inline.h (redirect_edge_var_map_def,
15420 redirect_edge_var_map_result, redirect_edge_var_map_location): Move to
15422 * gimple.h: Adjust prototypes.
15423 * tree-ssa.c (useless_type_conversion_p, types_compatible_p): Move
15425 * gimple.c (useless_type_conversion_p, types_compatible_p): Here.
15426 * tree.h: Move prototype to tree-ssa.h.
15427 * gengtype.c (open_base_files): Replace tree-flow.h with tree-ssa.h.
15428 * Makefile.in: (TREE_SSA_H, TREE_FLOW_H): Adjust dependencies.
15429 * alias.c, asan.c, builtins.c, calls.c, cfgexpand.c, cfghooks.c,
15430 cfgloop.c, cfgloopmanip.c, cgraph.c, cgraphbuild.c, cgraphclones.c,
15431 cgraphunit.c, dse.c, except.c, expr.c, final.c, fold-const.c,
15432 ggc-page.c, gimple-fold.c, gimple-iterator.c, gimple-low.c,
15433 gimple-pretty-print.c, gimple-ssa-strength-reduction.c,
15434 gimple-streamer-in.c, gimple-streamer-out.c, gimple.c, gimplify.c,
15435 graphite-blocking.c, graphite-clast-to-gimple.c,
15436 graphite-dependences.c, graphite-interchange.c,
15437 graphite-optimize-isl.c, graphite-poly.c, graphite-scop-detection.c,
15438 graphite-sese-to-poly.c, graphite.c, ipa-cp.c, ipa-inline-analysis.c,
15439 ipa-inline-transform.c, ipa-inline.c, ipa-prop.c, ipa-pure-const.c,
15440 ipa-reference.c, ipa-split.c, ipa-utils.c,
15441 loop-init.c, lto-cgraph.c, lto-section-in.c, lto-section-out.c,
15442 lto-streamer-in.c, lto-streamer-out.c, lto-streamer.c, omp-low.c,
15443 passes.c, predict.c, print-tree.c, profile.c, sese.c, targhooks.c,
15444 tracer.c, trans-mem.c, tree-call-cdce.c, tree-cfg.c, tree-cfgcleanup.c,
15445 tree-chrec.c, tree-complex.c, tree-data-ref.c, tree-dfa.c, tree-eh.c,
15446 tree-emutls.c, tree-if-conv.c, tree-inline.c, tree-into-ssa.c,
15447 tree-loop-distribution.c, tree-mudflap.c, tree-nested.c, tree-nrv.c,
15448 tree-object-size.c, tree-optimize.c, tree-outof-ssa.c, tree-parloops.c,
15449 tree-phinodes.c, tree-predcom.c, tree-pretty-print.c, tree-profile.c,
15450 tree-scalar-evolution.c, tree-sra.c, tree-ssa*.c, tree-stdarg.c,
15451 tree-streamer-in.c, tree-switch-conversion.c, tree-tailcall.c,
15452 tree-vect-data-refs.c, tree-vect-generic.c, tree-vect-loop-manip.c,
15453 tree-vect-loop.c, tree-vect-patterns.c, tree-vect-slp.c,
15454 tree-vect-stmts.c, tree-vectorizer.c, tree-vrp.c, tsan.c,
15455 value-prof.c, var-tracking.c,
15456 varpool.c, vtable-verify.c: Replace tree-flow.h with tree-ssa.h
15458 2013-09-12 Richard Biener <rguenther@suse.de>
15460 PR tree-optimization/58396
15461 * tree-loop-distribution.c (create_rdg_edges): Free unused DDRs.
15462 (build_rdg): Take a loop-nest parameter, fix memleaks.
15463 (distribute_loop): Compute loop-nest here and pass it to build_rdg.
15465 2013-09-12 Yuri Rumyantsev <ysrumyan@gmail.com>
15467 * config/i386/x86-tune.def: Turn on X86_TUNE_AVOID_MEM_OPND_FOR_CMOVE
15470 2013-09-12 Cameron McInally <cameron.mcinally@nyu.edu>
15472 * doc/extend.texi: Fix errors in x86 FMA builtin naming.
15473 The FMA instruction names should have a 'v' prefix.
15475 2013-09-12 Richard Biener <rguenther@suse.de>
15477 * tree-loop-distribution.c (dot_rdg_1): Make graph prettier.
15478 (dot_rdg): Use popen instead of system in optional code.
15479 (remaining_stmts, upstream_mem_writes): Remove global bitmaps.
15480 (already_processed_vertex_p): Adjust.
15481 (has_anti_or_output_dependence, predecessor_has_mem_write,
15482 mark_nodes_having_upstream_mem_writes, has_upstream_mem_writes,
15483 rdg_flag_uses): Remove.
15484 (rdg_flag_vertex): Simplify.
15485 (rdg_flag_vertex_and_dependent): Rely on a correct RDG and
15487 (build_rdg_partition_for_component): Process the first vertex
15488 of a component only.
15489 (ldist_gen): Do not compute remaining_stmts or upstream_mem_writes.
15491 2013-09-12 Alan Modra <amodra@gmail.com>
15493 * config/rs6000/rs6000.c (toc_relative_expr_p): Use add_cint_operand.
15495 2013-09-11 DJ Delorie <dj@redhat.com>
15496 Nick Clifton <nickc@redhat.com>
15498 * config/rl78/predicates.md (rl78_cmp_operator_signed): New.
15499 (rl78_stack_based_mem): New.
15500 * config/rl78/constraints.md (Iv08): New.
15509 * config/rl78/rl78-expand.md (movqi): Reject more SUBREG operands.
15511 (movsi): Change from expand to insn-and-split.
15512 (ashrsi3): Clobber AX.
15516 * config/rl78/rl78.md (CC_REG): Fix.
15517 (addsi3): Allow memory and immediate operands.
15518 (addsi3_internal): Split into...
15519 (addsi3_internal_virt): ...new, and ...
15520 (addsi3_internal_real): ...new.
15522 (subsi3_internal_virt): New.
15523 (subsi3_internal_real): New.
15524 (mulsi3): Add memory operand.
15525 (mulsi3_rl78): Likewise.
15526 (mulsi3_g13): Likewise.
15527 * config/rl78/rl78-real.md (cbranchqi4_real_signed): New.
15528 (cbranchqi4_real): Add more constraint options.
15529 (cbranchhi4_real): Expand pattern.
15530 (cbranchhi4_real_signed): New.
15531 (cbranchhi4_real_inverted): New.
15532 (cbranchsi4_real_lt): New.
15533 (cbranchsi4_real_ge): New.
15534 (cbranchsi4_real_signed): New.
15535 (cbranchsi4_real): New.
15537 * config/rl78/rl78-virt.md (ashrsi3_virt): Add custom cases for
15539 (lshrsi3_virt): Likewise.
15540 (ashlsi3_virt): Likewise.
15541 (cbranchqi4_virt_signed): New.
15542 (cbranchhi4_virt_signed): New.
15543 (cbranchsi4_virt): New.
15544 * config/rl78/rl78.c: Whitespace fixes throughout.
15545 (move_elim_pass): New.
15546 (pass_data_rl78_move_elim): New.
15547 (pass_rl78_move_elim): New.
15548 (make_pass_rl78_move_elim): New.
15549 (rl78_devirt_info): Run devirt earlier.
15550 (rl78_move_elim_info): New.
15551 (rl78_asm_file_start): Register it.
15552 (rl78_split_movsi): New.
15553 (rl78_as_legitimate_address): Allow virtual base registers when
15555 (rl78_addr_space_convert): Remove spurious debug stuff.
15556 (rl78_print_operand_1): Add z,s,S,r,E modifiers.
15557 (rl78_print_operand): More cases for not printing '#'.
15558 (rl78_expand_compare): Remove most of the logic.
15559 (content_memory): New.
15560 (clear_content_memory): New.
15561 (get_content_index): New.
15562 (get_content_name): New.
15563 (display_content_memory): New.
15564 (update_content): New.
15565 (record_content): New.
15566 (already_contains): New.
15567 (insn_ok_now): Re-recog insns with virtual registers.
15568 (add_postponed_content_update): New.
15569 (process_postponed_content_update): New.
15570 (gen_and_emit_move): New.
15571 (transcode_memory_rtx): Record new location content.
15572 Use gen_and_emit_move.
15573 (force_into_acc): New.
15574 (move_to_acc): Use gen_and_emit_move.
15575 (move_from_acc): Likewise.
15576 (move_acc_to_reg): Likewise.
15577 (move_to_x): Likewise.
15578 (move_to_hl): Likewise.
15579 (move_to_de): Likewise.
15580 (rl78_alloc_physical_registers_op1): Record location content.
15581 (has_constraint): New.
15582 (rl78_alloc_physical_registers_op2): Record location content.
15583 Optimize use of HL.
15584 (rl78_alloc_physical_registers_ro1): Likewise.
15585 (rl78_alloc_physical_registers_cmp): Likewise.
15586 (rl78_alloc_physical_registers_umul): Likewise.
15587 (rl78_alloc_address_registers_macax): New.
15588 (rl78_alloc_physical_registers): Initialize and set location
15589 content memory as needed.
15590 (rl78_reorg): Make sure split2 is called.
15591 (rl78_rtx_costs): New.
15593 2013-09-11 Richard Sandiford <rdsandiford@googlemail.com>
15595 * simplify-rtx.c (simplify_unary_operation_1): Use simplify_gen_binary
15596 for (not (neg ...)) and (neg (not ...)) cases.
15598 2013-09-11 Richard Biener <rguenther@suse.de>
15600 PR middle-end/58377
15601 * passes.def: Split critical edges before late uninit warning passes.
15602 * tree-cfg.c (pass_split_crit_edges): Implement clone method.
15604 2013-09-11 Jakub Jelinek <jakub@redhat.com>
15606 PR tree-optimization/58385
15607 * fold-const.c (build_range_check): If both low and high are NULL,
15608 use omit_one_operand_loc to preserve exp side-effects.
15610 2013-09-11 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
15612 * config/arm/arm.md (arm_shiftsi3): New alternative l/l/M.
15614 2013-09-11 Richard Biener <rguenther@suse.de>
15616 * tree-data-ref.c (dump_rdg_vertex, debug_rdg_vertex,
15617 dump_rdg_component, debug_rdg_component, dump_rdg, debug_rdg,
15618 dot_rdg_1, dot_rdg, rdg_vertex_for_stmt, create_rdg_edge_for_ddr,
15619 create_rdg_edges_for_scalar, create_rdg_edges, create_rdg_vertices,
15620 stmts_from_loop, known_dependences_p, build_empty_rdg,
15621 build_rdg, free_rdg, rdg_defs_used_in_other_loops_p): Move ...
15622 * tree-loop-distribution.c: ... here.
15623 * tree-data-ref.h (struct rdg_vertex, RDGV_STMT, RDGV_DATAREFS,
15624 RDGV_HAS_MEM_WRITE, RDGV_HAS_MEM_READS, RDG_STMT, RDG_DATAREFS,
15625 RDG_MEM_WRITE_STMT, RDG_MEM_READS_STMT, enum rdg_dep_type,
15626 struct rdg_edge, RDGE_TYPE, RDGE_LEVEL, RDGE_RELATION): Move ...
15627 * tree-loop-distribution.c: ... here.
15628 * tree-loop-distribution.c: Include gimple-pretty-print.h.
15629 (struct partition_s): Add loops member.
15630 (partition_alloc, partition_free, rdg_flag_uses, rdg_flag_vertex,
15631 rdg_flag_vertex_and_dependent, rdg_flag_loop_exits,
15632 build_rdg_partition_for_component, rdg_build_partitions): Adjust.
15634 2013-09-11 Alexander Ivchenko <alexander.ivchenko@intel.com>
15635 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
15636 Sergey Lega <sergey.s.lega@intel.com>
15637 Anna Tikhonova <anna.tikhonova@intel.com>
15638 Ilya Tocar <ilya.tocar@intel.com>
15639 Andrey Turetskiy <andrey.turetskiy@intel.com>
15640 Ilya Verbin <ilya.verbin@intel.com>
15641 Kirill Yukhin <kirill.yukhin@intel.com>
15642 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
15644 * config/i386/constraints.md (k): New.
15646 * config/i386/i386.c (const regclass_map): Add new mask registers.
15647 (dbx_register_map): Ditto.
15648 (dbx64_register_map): Ditto.
15649 (svr4_dbx_register_map): Ditto.
15650 (ix86_conditional_register_usage): Squash mask registers if AVX512F is
15652 (ix86_preferred_reload_class): Disable constants for mask registers.
15653 (ix86_secondary_reload): Do spill of mask register using 32-bit insn.
15654 (ix86_hard_regno_mode_ok): Support new mask registers.
15655 (x86_order_regs_for_local_alloc): Ditto.
15656 * config/i386/i386.h (FIRST_PSEUDO_REGISTER): Update.
15657 (FIXED_REGISTERS): Add new mask registers.
15658 (CALL_USED_REGISTERS): Ditto.
15659 (REG_ALLOC_ORDER): Ditto.
15660 (VALID_MASK_REG_MODE): New.
15661 (FIRST_MASK_REG): Ditto.
15662 (LAST_MASK_REG): Ditto.
15663 (reg_class): Add MASK_EVEX_REGS, MASK_REGS.
15664 (MAYBE_MASK_CLASS_P): New.
15665 (REG_CLASS_NAMES): Add MASK_EVEX_REGS, MASK_REGS.
15666 (REG_CLASS_CONTENTS): Ditto.
15667 (MASK_REGNO_P): New.
15668 (ANY_MASK_REG_P): Ditto.
15669 (HI_REGISTER_NAMES): Add new mask registers.
15670 * config/i386/i386.md (MASK0_REG, MASK1_REG, MASK2_REG, MASK3_REG,
15671 MASK4_REG, MASK5_REG, MASK6_REG, MASK7_REG): Constants for new
15673 (attribute "type"): Add mskmov, msklog.
15674 (attribute "length_immediate"): Support them.
15675 (attribute "memory"): Ditto.
15676 (attribute "prefix_0f"): Ditto.
15677 (*movhi_internal): Support new mask registers.
15678 (*movqi_internal): Ditto.
15679 (define_split): Split out clobber pattern is a logic
15680 insn on mask registers.
15681 (*k<logic><mode>): New.
15682 (*andhi_1): Extend to support mask regs.
15683 (*andqi_1): Extend to support mask regs.
15684 (kandn<mode>): New.
15685 (define_split): Split and-not to and and not if operands
15687 (*<code><mode>_1): Separate HI mode to new pattern...
15688 (*<code>hi_1): This.
15689 (*<code>qi_1): Extend to support mask regs.
15690 (kxnor<mode>): New.
15691 (kortestzhi): Ditto.
15692 (kortestchi): Ditto.
15694 (*one_cmpl<mode>2_1): Remove HImode and handle it...
15695 (*one_cmplhi2_1): ...Here, now with mask registers support.
15696 (*one_cmplqi2_1): Support new mask registers.
15697 (HI/QImode arithmetics splitter): Don't split if mask registers
15699 (HI/QImode not splitter): Ditto.
15700 * config/i386/predicated.md (mask_reg_operand): New.
15701 (general_reg_operand): Ditto.
15703 2013-09-11 Alexander Ivchenko <alexander.ivchenko@intel.com>
15705 * doc/invoke.texi: Document fxsr, xsave and xsaveopt options.
15706 * doc/extend.texi: Document fxsr, xsave and xsaveopt builtins.
15708 2013-09-10 Jeff Law <law@redhat.com>
15710 PR tree-optimization/58380
15711 * tree-ssa-threadupdate.c (thread_block): Recognize another case
15712 of threading through a buried loop header.
15714 * tree-ssa-threadedge.c (thread_around_empty_blocks): Correct
15715 return value for single successor case.
15717 2013-09-10 Jan Hubicka <jh@suse.cz>
15719 * ipa-devirt.c (ipa_devirt): Enable with LTO.
15721 2013-09-10 Richard Earnshaw <rearnsha@arm.com>
15724 * arm/vfp.md (combine_vcvt_f32_<FCVTI32typename>): Fix pattern to
15725 support conditional execution.
15726 (combine_vcvt_f64_<FCVTI32typename>): Likewise.
15728 2013-09-10 Vladimir Makarov <vmakarov@redhat.com>
15730 * lra.c (lra): Clear lra_optional_reload_pseudos before every
15732 * lra-constraints.c (curr_insn_transform): Switch on optional reloads.
15733 Check destination too to check move insn.
15734 (undo_optional_reloads): Add check that the original peudo did not
15735 changed its allocation and the optional reload was inherited on last
15736 inheritance pass. Break loop after deciding to keep optional reload.
15737 (lra_undo_inheritance): Add check that inherited pseudo still in
15740 2013-09-10 James Greenhalgh <james.greenhalgh@arm.com>
15742 * config/aarch64/aarch64.md (generic_sched): New.
15743 * config/aarch64/aarch64-generic.md (load): Make conditional
15744 on generic_sched attribute.
15745 (nonload): Likewise.
15747 2013-09-10 Jan Hubicka <jh@suse.cz>
15749 * lto-cgraph.c: Include ipa-utils.h.
15750 (compute_ltrans_boundary): Also add possible targets into the boundary.
15752 2013-09-10 Jan Hubicka <jh@suse.cz>
15754 * gimple-fold.c (gimple_get_virt_method_for_binfo): Pass real
15755 VAR_DECL of vtable rather than full expression.
15757 2013-09-10 Jan Hubicka <jh@suse.cz>
15758 Paolo Carlini <paolo.carlini@oracle.com>
15760 * cgraphunit.c (analyze_functions): Save input_location, set it
15761 to UNKNOWN_LOCATION and restore it at the end.
15763 2013-09-10 Martin Jambor <mjambor@suse.cz>
15765 * ipa-cp.c (propagate_constants_topo): Do not ignore SCC
15766 represented by a thunk.
15768 2013-09-10 Jeff Law <law@redhat.com>
15770 PR tree-optimization/58343
15771 * tree-ssa-threadupdate.c (thread_block): Identify and disable
15772 jump threading requests through loop headers buried in the middle
15773 of a jump threading path.
15775 * tree-ssa-threadedge.c (thread_around_empty_blocks): Fix thinko
15776 in return value/type.
15778 2013-09-10 Jakub Jelinek <jakub@redhat.com>
15780 PR rtl-optimization/58365
15781 * cfgcleanup.c (merge_memattrs): Also clear MEM_READONLY_P
15782 resp. MEM_NOTRAP_P if they differ, or set MEM_VOLATILE_P if
15785 2013-09-10 Richard Biener <rguenther@suse.de>
15787 * tree-data-ref.h (build_rdg): Drop all parameters but loop.
15788 * tree-data-ref.c (create_rdg_vertices): Collect all data
15789 references, signal failure to the caller, use data-ref API.
15790 (build_rdg): Compute data references only once. Maintain lifetime
15791 of data references and data dependences from within RDG.
15792 (free_rdg): Free dependence relations.
15793 * tree-loop-distribution.c (rdg_flag_uses): Drop weird code
15794 inventing extra dependences.
15795 (distribute_loop): Update for RDG API changes.
15797 2013-09-10 Kai Tietz <ktietz@redhat.com>
15799 * doc/invoke.texi (fms-extensions): Document changed
15800 behavior for ms-abi targets.
15801 * config/i386/i386.c (ix86_option_override_internal):
15802 Set default value of option -fms-extension for ms-abi targets.
15804 2013-09-10 Michael Zolotukhin <michael.v.zolotukhin@gmail.com>
15806 * config/i386/i386.c (ix86_expand_movmem): Fix epilogue generation.
15808 2013-09-10 Alan Modra <amodra@gmail.com>
15811 * config/rs6000/rs6000.md (bswapdi2_64bit): Disable for volatile mems.
15813 2013-09-10 Alan Modra <amodra@gmail.com>
15815 * config/rs6000/predicates.md (add_cint_operand): New.
15816 (reg_or_add_cint_operand, small_toc_ref): Use add_cint_operand.
15817 * config/rs6000/rs6000.md (largetoc_high_plus): Restrict offset
15818 using add_cint_operand.
15819 (largetoc_high_plus_aix): Likewise.
15821 2013-09-09 Jakub Jelinek <jakub@redhat.com>
15823 PR tree-optimization/58364
15824 * tree-ssa-reassoc.c (init_range_entry): For BIT_NOT_EXPR on
15825 BOOLEAN_TYPE, only invert in_p and continue with arg0 if
15826 the current range can't be an unconditional true or false.
15828 2013-09-09 James Greenhalgh <james.greenhalgh@arm.com>
15830 * config/aarch64/arm_neon.h (vrsqrte_f64): Fix parameter type.
15832 2013-09-09 Uros Bizjak <ubizjak@gmail.com>
15834 * ipa-prop.c (ipa_modify_call_arguments): Initialize deref_align.
15836 2013-09-09 Paolo Carlini <paolo.carlini@oracle.com>
15839 * doc/invoke.texi (-Wdelete-incomplete): Document it.
15841 2013-09-09 Ian Bolton <ian.bolton@arm.com>
15843 * config/aarch64/aarch64.c (aarch64_preferred_reload_class): Return
15844 NO_REGS for immediate that can't be moved directly into FP_REGS.
15846 2013-09-09 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
15848 * config/aarch64/aarch64.c (aarch64_select_cc_mode): Return CC_SWP for
15849 comparison with negated operand.
15850 * config/aarch64/aarch64.md (compare_neg<mode>): Match canonical
15853 2013-09-09 Richard Biener <rguenther@suse.de>
15855 PR middle-end/58326
15856 * cfgloopmanip.c (fix_bb_placements): When fixing the placement
15857 of a subloop record all its block as affecting loop-closed SSA form.
15859 2013-09-09 Richard Sandiford <rdsandiford@googlemail.com>
15861 * expmed.c (lshift_value): Take an unsigned HOST_WIDE_INT instead
15862 of an rtx/bitpos pair.
15863 (store_fixed_bit_field): Update accordingly.
15865 2013-09-09 Richard Sandiford <rdsandiford@googlemail.com>
15867 * asan.c (asan_emit_stack_protection): Use gen_int_mode instead of
15869 * builtins.c (expand_errno_check): Likewise.
15870 * dwarf2cfi.c (init_return_column_size): Likewise.
15871 * except.c (sjlj_mark_call_sites): Likewise.
15872 * expr.c (move_by_pieces_1, store_by_pieces_2): Likewise.
15873 * lra-constraints.c (emit_inc): Likewise.
15874 * ree.c (combine_set_extension): Likewise.
15875 * regmove.c (fixup_match_2): Likewise.
15876 * reload1.c (inc_for_reload): Likewise.
15878 2013-09-09 Richard Sandiford <rdsandiford@googlemail.com>
15880 * combine.c (simplify_set, expand_field_assignment, extract_left_shift)
15881 (force_to_mode, simplify_shift_const_1, simplify_comparison):
15882 Use gen_int_mode with the mode of the associated simplify_* call.
15883 * explow.c (probe_stack_range, anti_adjust_stack_and_probe): Likewise.
15884 * expmed.c (expand_shift_1): Likewise.
15885 * function.c (instantiate_virtual_regs_in_insn): Likewise.
15886 * loop-iv.c (iv_number_of_iterations): Likewise.
15887 * loop-unroll.c (unroll_loop_runtime_iterations): Likewise.
15888 * simplify-rtx.c (simplify_binary_operation_1): Likewise.
15890 2013-09-09 Richard Sandiford <rdsandiford@googlemail.com>
15892 * asan.c (asan_clear_shadow): Use gen_int_mode with the mode
15893 of the associated expand_* call.
15894 (asan_emit_stack_protection): Likewise.
15895 * builtins.c (round_trampoline_addr): Likewise.
15896 * explow.c (allocate_dynamic_stack_space, probe_stack_range): Likewise.
15897 * expmed.c (expand_smod_pow2, expand_sdiv_pow2, expand_divmod)
15898 (emit_store_flag): Likewise.
15899 * expr.c (emit_move_resolve_push, push_block, emit_single_push_insn_1)
15900 (emit_push_insn, optimize_bitfield_assignment_op, expand_expr_real_1):
15902 * function.c (instantiate_virtual_regs_in_insn): Likewise.
15903 * ifcvt.c (noce_try_store_flag_constants): Likewise.
15904 * loop-unroll.c (unroll_loop_runtime_iterations): Likewise.
15905 * modulo-sched.c (generate_prolog_epilog): Likewise.
15906 * optabs.c (expand_binop, widen_leading, expand_doubleword_clz)
15907 (expand_ctz, expand_ffs, expand_unop): Likewise.
15909 2013-09-09 Richard Sandiford <rdsandiford@googlemail.com>
15911 * alias.c (addr_side_effect_eval): Use gen_int_mode with the mode
15912 of the associated gen_rtx_* call.
15913 * caller-save.c (init_caller_save): Likewise.
15914 * combine.c (find_split_point, make_extraction): Likewise.
15915 (make_compound_operation): Likewise.
15916 * dwarf2out.c (mem_loc_descriptor): Likewise.
15917 * explow.c (plus_constant, probe_stack_range): Likewise.
15918 * expmed.c (expand_mult_const): Likewise.
15919 * expr.c (emit_single_push_insn_1, do_tablejump): Likewise.
15920 * reload1.c (init_reload): Likewise.
15921 * valtrack.c (cleanup_auto_inc_dec): Likewise.
15922 * var-tracking.c (adjust_mems): Likewise.
15923 * modulo-sched.c (sms_schedule): Likewise, but use gen_rtx_GT
15924 rather than gen_rtx_fmt_ee.
15926 2013-09-09 Jan Hubicka <jh@suse.cz>
15928 PR middle-end/58294
15929 * value-prof.c (gimple_ic): Copy also abnormal edges.
15931 2013-09-09 Richard Sandiford <rdsandiford@googlemail.com>
15933 * asan.c (asan_shadow_cst): Use gen_int_mode.
15935 2013-09-08 Jan Hubicka <jh@suse.cz>
15937 * ipa-profile.c: Add toplevel comment.
15938 (ipa_propagate_frequency_1): Be more conservative when profile is read.
15939 (contains_hot_call_p): New function.
15940 (ipa_propagate_frequency): Set frequencies based on counts when
15942 * predict.c (compute_function_frequency): Use PROFILE_READ gueard for
15943 profile; do not tamper with profile after inlining if it is read.
15945 2013-09-08 Jan Hubicka <jh@suse.cz>
15947 * ipa-prop.c (try_make_edge_direct_simple_call): Do not special case
15950 2013-09-08 Jan Hubicka <jh@suse.cz>
15952 * ipa.c (walk_polymorphic_call_targets): Fix redirection before IPA
15953 summary generation.
15955 2013-09-08 Jeff Law <law@redhat.com>
15958 * tree-ssa-threadedge.c (thread_across_edge): Fix initialization
15961 2013-09-08 Andi Kleen <ak@linux.intel.com>
15963 * tree-inline.c (estimate_num_insns): Limit asm cost to 1000.
15965 2013-09-08 Jan Hubicka <jh@suse.cz>
15967 * ipa.c (walk_polymorphic_call_targets): Fix inliner summary update.
15969 2013-09-08 Richard Sandiford <rdsandiford@googlemail.com>
15971 * ira.c (update_equiv_regs): Only call set_paradoxical_subreg
15972 for non-debug insns.
15973 * lra.c (new_insn_reg): Take the containing insn as a parameter.
15974 Only modify lra_reg_info[].biggest_mode if it's non-debug insn.
15975 (collect_non_operand_hard_regs, add_regs_to_insn_regno_info): Update
15978 2013-09-08 Jan Hubicka <jh@suse.cz>
15980 * cgraphunit.c (walk_polymorphic_call_targets): Permit 0 possible
15981 targets and devirtualize to BUILT_IN_UNREACHABLE.
15982 * timevar.def (TV_IPA_UNREACHABLE): New timevar.
15983 * ipa.c (walk_polymorphic_call_targets): New function.
15984 (symtab_remove_unreachable_nodes): Use it; do not keep all virtual
15985 functions; use the new timevar.
15986 * ipa-devirt.c (maybe_record_node): Do not insert static nodes that
15987 was removed from the program.
15988 (record_binfo): If BINFO corresponds to an anonymous namespace, we may
15989 not consider it in the walk when its vtable is dead.
15990 (possible_polymorphic_call_targets_1): Pass anonymous flag to
15992 (devirt_variable_node_removal_hook): New function.
15993 (possible_polymorphic_call_targets): Also register
15994 devirt_variable_node_removal_hook.
15995 (ipa_devirt): Do not do non-speculative devirtualization.
15996 (gate_ipa_devirt): One execute if devirtualizing speculatively.
15998 2013-09-08 Jan Hubicka <jh@suse.cz>
16000 * cgraph.h (varpool_node_hook, varpool_node_hook_list,
16001 varpool_add_node_removal_hook, varpool_add_variable_insertion_hook,
16002 varpool_remove_variable_insertion_hook): Declare.
16003 * varpool.c (varpool_node_hook_list): New structure.
16004 (first_varpool_node_removal_hook,
16005 first_varpool_variable_insertion_hook): New variables.
16006 (varpool_add_node_removal_hook, varpool_remove_node_removal_hook,
16007 varpool_call_node_removal_hooks, varpool_add_variable_insertion_hook,
16008 varpool_remove_variable_insertion_hook,
16009 varpool_call_variable_insertion_hooks): New functions.
16010 (varpool_remove_node): Use it.
16012 2013-09-08 Paolo Carlini <paolo.carlini@oracle.com>
16015 * diagnostic.c (diagnostic_build_prefix): When s.file is
16016 "<built-in>" don't output line and column numbers.
16018 2013-09-06 Jan Hubicka <jh@suse.cz>
16020 * cgraphunit.c (expand_thunk): Get body before touching arguments.
16021 * lto-streamer-out.c: Stream thunks, too.
16022 * lto-streamer-in.c (input_function): Pop cfun here
16023 (lto_read_body): Instead of here.
16025 2013-09-06 Caroline Tice <cmtice@google.com>
16027 * doc/install.texi: Add documentation for the --enable-vtable-verify
16028 and the --disable-libvtv configure options.
16030 2013-09-06 Jeff Law <law@redhat.com>
16032 * tree-ssa-dom.c (cprop_into_successor_phis): Also propagate
16033 edge implied equivalences into successor phis.
16035 2013-09-06 Joern Rennecke <joern.rennecke@embecosm.com>
16037 * resource.c (mark_referenced_resources): Handle COND_EXEC.
16039 2013-09-06 Claudiu Zissulescu <claziss@synopsys.com>
16041 * resource.c (mark_target_live_regs): Compute resources taking
16042 into account if a call is predicated or not.
16044 2013-09-06 Eric Botcazou <ebotcazou@adacore.com>
16046 * toplev.c (output_stack_usage): Be prepared for suffixes created by
16047 the compiler in the function names.
16049 2013-09-06 Jan Hubicka <jh@suse.cz>
16051 PR middle-end/58094
16052 * ipa-inline.c (has_caller_p): New function.
16053 (want_inline_function_to_all_callers_p): Use it.
16054 (sum_callers, inline_to_all_callers): Break out from ...
16055 (ipa_inline): ... here.
16057 2013-09-06 Jan Hubicka <jh@suse.cz>
16059 * config/i386/i386.c (ix86_hard_regno_mode_ok): AVX modes are valid
16060 only when AVX is enabled.
16062 2013-09-06 James Greenhalgh <james.greenhalgh@arm.com>
16064 * config/aarch64/aarch64.md
16065 (*movtf_aarch64): Use neon_<ls>dm_2 as type where v8type
16066 is fpsimd_<load/store>2.
16067 (load_pair<mode>): Likewise.
16068 (store_pair<mode>): Likewise.
16070 2013-09-06 James Greenhalgh <james.greenhalgh@arm.com>
16072 * config/arm/types.md (type): Add "mrs" type.
16073 * config/aarch64/aarch64.md
16074 (aarch64_load_tp_hard): Make type "mrs".
16075 * config/arm/arm.md
16076 (load_tp_hard): Make type "mrs".
16077 * config/arm/cortex-a15.md: Update with new attributes.
16078 * config/arm/cortex-a5.md: Update with new attributes.
16079 * config/arm/cortex-a53.md: Update with new attributes.
16080 * config/arm/cortex-a7.md: Update with new attributes.
16081 * config/arm/cortex-a8.md: Update with new attributes.
16082 * config/arm/cortex-a9.md: Update with new attributes.
16083 * config/arm/cortex-m4.md: Update with new attributes.
16084 * config/arm/cortex-r4.md: Update with new attributes.
16085 * config/arm/fa526.md: Update with new attributes.
16086 * config/arm/fa606te.md: Update with new attributes.
16087 * config/arm/fa626te.md: Update with new attributes.
16088 * config/arm/fa726te.md: Update with new attributes.
16090 2013-09-06 James Greenhalgh <james.greenhalgh@arm.com>
16092 * config/aarch64/aarch64.md
16093 (*movti_aarch64): Use "multiple" for type where v8type is "move2".
16094 (*movtf_aarch64): Likewise.
16095 * config/arm/arm.md
16096 (thumb1_movdi_insn): Use "multiple" for type where more than one
16097 instruction is used for a move.
16098 (*arm32_movhf): Likewise.
16099 (*thumb_movdf_insn): Likewise.
16101 2013-09-06 James Greenhalgh <james.greenhalgh@arm.com>
16103 * config/arm/types.md (type): Rename fcpys to fmov.
16104 * config/arm/vfp.md
16105 (*arm_movsi_vfp): Rename type fcpys as fmov.
16106 (*thumb2_movsi_vfp): Likewise
16107 (*movhf_vfp_neon): Likewise
16108 (*movhf_vfp): Likewise
16109 (*movsf_vfp): Likewise
16110 (*thumb2_movsf_vfp): Likewise
16111 (*movsfcc_vfp): Likewise
16112 (*thumb2_movsfcc_vfp): Likewise
16113 * config/aarch64/aarch64-simd.md
16114 (move_lo_quad_<mode>): Replace type mov_reg with fmovs.
16115 * config/aarch64/aarch64.md
16116 (*movsi_aarch64): Replace type mov_reg with fmovs.
16117 (*movdi_aarch64): Likewise
16118 (*movsf_aarch64): Likewise
16119 (*movdf_aarch64): Likewise
16121 (cortexa7_older_only): Rename TYPE_FCPYS to TYPE_FMOV.
16122 * config/arm/iwmmxt.md
16123 (*iwmmxt_movsi_insn): Rename type fcpys as fmov.
16124 * config/arm/arm1020e.md: Update with new attributes.
16125 * config/arm/cortex-a15-neon.md: Update with new attributes.
16126 * config/arm/cortex-a5.md: Update with new attributes.
16127 * config/arm/cortex-a53.md: Update with new attributes.
16128 * config/arm/cortex-a7.md: Update with new attributes.
16129 * config/arm/cortex-a8-neon.md: Update with new attributes.
16130 * config/arm/cortex-a9.md: Update with new attributes.
16131 * config/arm/cortex-m4-fpu.md: Update with new attributes.
16132 * config/arm/cortex-r4f.md: Update with new attributes.
16133 * config/arm/marvell-pj4.md: Update with new attributes.
16134 * config/arm/vfp11.md: Update with new attributes.
16136 2013-09-06 James Greenhalgh <james.greenhalgh@arm.com>
16138 * config/aarch64/aarch64.md
16139 (*madd<mode>): Fix type attribute.
16140 (*maddsi_uxtw): Likewise.
16141 (*msub<mode>): Likewise.
16142 (*msubsi_uxtw): Likewise.
16143 (<su_optab>maddsidi4): Likewise.
16144 (<su_optab>msubsidi4): Likewise.
16146 2013-09-06 James Greenhalgh <james.greenhalgh@arm.com>
16148 * config/arm/types.md: Split fdiv<sd> as fsqrt<sd>, fdiv<sd>.
16149 * config/arm/arm.md (core_cycles): Remove fdiv.
16150 * config/arm/vfp.md:
16151 (*sqrtsf2_vfp): Update for attribute changes.
16152 (*sqrtdf2_vfp): Likewise.
16153 * config/aarch64/aarch64.md:
16154 (sqrt<mode>2): Update for attribute changes.
16155 * config/arm/arm1020e.md: Update with new attributes.
16156 * config/arm/cortex-a15-neon.md: Update with new attributes.
16157 * config/arm/cortex-a5.md: Update with new attributes.
16158 * config/arm/cortex-a53.md: Update with new attributes.
16159 * config/arm/cortex-a7.md: Update with new attributes.
16160 * config/arm/cortex-a8-neon.md: Update with new attributes.
16161 * config/arm/cortex-a9.md: Update with new attributes.
16162 * config/arm/cortex-m4-fpu.md: Update with new attributes.
16163 * config/arm/cortex-r4f.md: Update with new attributes.
16164 * config/arm/marvell-pj4.md: Update with new attributes.
16165 * config/arm/vfp11.md: Update with new attributes.
16167 2013-09-06 James Greenhalgh <james.greenhalgh@arm.com>
16169 * config/arm/types.md
16170 (type): Split f_cvt as f_cvt, f_cvtf2i, f_cvti2f.
16171 * config/aarch64/aarch64.md
16172 (l<fcvt_pattern><su_optab><GPF:mode><GPI:mode>2): Update with
16174 (fix_trunc<GPF:mode><GPI:mode>2): Likewise.
16175 (fixuns_trunc<GPF:mode><GPI:mode>2): Likewise.
16176 (float<GPI:mode><GPF:mode>2): Likewise.
16177 * config/arm/vfp.md
16178 (*truncsisf2_vfp): Update with new attributes.
16179 (*truncsidf2_vfp): Likewise.
16180 (fixuns_truncsfsi2): Likewise.
16181 (fixuns_truncdfsi2): Likewise.
16182 (*floatsisf2_vfp): Likewise.
16183 (*floatsidf2_vfp): Likewise.
16184 (floatunssisf2): Likewise.
16185 (floatunssidf2): Likewise.
16186 (*combine_vcvt_f32_<FCVTI32typename>): Likewise.
16187 (*combine_vcvt_f64_<FCVTI32typename>): Likewise.
16188 * config/arm/arm1020e.md: Update with new attributes.
16189 * config/arm/cortex-a15-neon.md: Update with new attributes.
16190 * config/arm/cortex-a5.md: Update with new attributes.
16191 * config/arm/cortex-a53.md: Update with new attributes.
16192 * config/arm/cortex-a7.md: Update with new attributes.
16193 * config/arm/cortex-a8-neon.md: Update with new attributes.
16194 * config/arm/cortex-a9.md: Update with new attributes.
16195 * config/arm/cortex-m4-fpu.md: Update with new attributes.
16196 * config/arm/cortex-r4f.md: Update with new attributes.
16197 * config/arm/marvell-pj4.md: Update with new attributes.
16198 * config/arm/vfp11.md: Update with new attributes.
16200 2013-09-06 James Greenhalgh <james.greenhalgh@arm.com>
16202 * config/aarch64/arm_neon.h
16203 (vqtbl<1,2,3,4><q>_s8): Fix control vector parameter type.
16204 (vqtbx<1,2,3,4><q>_s8): Likewise.
16206 2013-09-06 James Greenhalgh <james.greenhalgh@arm.com>
16208 * config/arm/types.md: Add "no_insn", "multiple" and "untyped" types.
16209 * config/arm/arm-fixed.md: Add type attribute to all insn patterns.
16210 (add<mode>3): Add type attribute.
16211 (add<mode>3): Likewise.
16212 (usadd<mode>3): Likewise.
16213 (ssadd<mode>3): Likewise.
16214 (sub<mode>3): Likewise.
16215 (sub<mode>3): Likewise.
16216 (ussub<mode>3): Likewise.
16217 (sssub<mode>3): Likewise.
16218 (ssmulsa3): Likewise.
16219 (usmulusa3): Likewise.
16220 (arm_usatsihi): Likewise.
16221 * config/arm/vfp.md
16222 (*movdi_vfp): Add types for all instructions.
16223 (*movdi_vfp_cortexa8): Likewise.
16224 (*movhf_vfp_neon): Likewise.
16225 (*movhf_vfp): Likewise.
16226 (*movdf_vfp): Likewise.
16227 (*thumb2_movdf_vfp): Likewise.
16228 (*thumb2_movdfcc_vfp): Likewise.
16229 * config/arm/arm.md: Add type attribute to all insn patterns.
16230 (*thumb1_adddi3): Add type attribute.
16231 (*arm_adddi3): Likewise.
16232 (*adddi_sesidi_di): Likewise.
16233 (*adddi_zesidi_di): Likewise.
16234 (*thumb1_addsi3): Likewise.
16235 (addsi3_compare0): Likewise.
16236 (*addsi3_compare0_scratch): Likewise.
16237 (*compare_negsi_si): Likewise.
16238 (cmpsi2_addneg): Likewise.
16239 (*addsi3_carryin_<optab>): Likewise.
16240 (*addsi3_carryin_alt2_<optab>): Likewise.
16241 (*addsi3_carryin_clobercc_<optab>): Likewise.
16242 (*subsi3_carryin): Likewise.
16243 (*subsi3_carryin_const): Likewise.
16244 (*subsi3_carryin_compare): Likewise.
16245 (*subsi3_carryin_compare_const): Likewise.
16246 (*arm_subdi3): Likewise.
16247 (*thumb_subdi3): Likewise.
16248 (*subdi_di_zesidi): Likewise.
16249 (*subdi_di_sesidi): Likewise.
16250 (*subdi_zesidi_di): Likewise.
16251 (*subdi_sesidi_di): Likewise.
16252 (*subdi_zesidi_ze): Likewise.
16253 (thumb1_subsi3_insn): Likewise.
16254 (*arm_subsi3_insn): Likewise.
16255 (*anddi3_insn): Likewise.
16256 (*anddi_zesidi_di): Likewise.
16257 (*anddi_sesdi_di): Likewise.
16258 (*ne_zeroextracts): Likewise.
16259 (*ne_zeroextracts): Likewise.
16260 (*ite_ne_zeroextr): Likewise.
16261 (*ite_ne_zeroextr): Likewise.
16262 (*anddi_notdi_di): Likewise.
16263 (*anddi_notzesidi): Likewise.
16264 (*anddi_notsesidi): Likewise.
16265 (andsi_notsi_si): Likewise.
16266 (thumb1_bicsi3): Likewise.
16267 (*iordi3_insn): Likewise.
16268 (*iordi_zesidi_di): Likewise.
16269 (*iordi_sesidi_di): Likewise.
16270 (*thumb1_iorsi3_insn): Likewise.
16271 (*xordi3_insn): Likewise.
16272 (*xordi_zesidi_di): Likewise.
16273 (*xordi_sesidi_di): Likewise.
16274 (*arm_xorsi3): Likewise.
16275 (*andsi_iorsi3_no): Likewise.
16276 (*smax_0): Likewise.
16277 (*smax_m1): Likewise.
16278 (*arm_smax_insn): Likewise.
16279 (*smin_0): Likewise.
16280 (*arm_smin_insn): Likewise.
16281 (*arm_umaxsi3): Likewise.
16282 (*arm_uminsi3): Likewise.
16283 (*minmax_arithsi): Likewise.
16284 (*minmax_arithsi_): Likewise.
16285 (*satsi_<SAT:code>): Likewise.
16286 (arm_ashldi3_1bit): Likewise.
16287 (arm_ashrdi3_1bit): Likewise.
16288 (arm_lshrdi3_1bit): Likewise.
16289 (*arm_negdi2): Likewise.
16290 (*thumb1_negdi2): Likewise.
16291 (*arm_negsi2): Likewise.
16292 (*thumb1_negsi2): Likewise.
16293 (*negdi_extendsid): Likewise.
16294 (*negdi_zero_extend): Likewise.
16295 (*arm_abssi2): Likewise.
16296 (*thumb1_abssi2): Likewise.
16297 (*arm_neg_abssi2): Likewise.
16298 (*thumb1_neg_abss): Likewise.
16299 (one_cmpldi2): Likewise.
16300 (extend<mode>di2): Likewise.
16301 (*compareqi_eq0): Likewise.
16302 (*arm_extendhisi2addsi): Likewise.
16303 (*arm_movdi): Likewise.
16304 (*thumb1_movdi_insn): Likewise.
16305 (*arm_movt): Likewise.
16306 (*thumb1_movsi_insn): Likewise.
16307 (pic_add_dot_plus_four): Likewise.
16308 (pic_add_dot_plus_eight): Likewise.
16309 (tls_load_dot_plus_eight): Likewise.
16310 (*thumb1_movhi_insn): Likewise.
16311 (*thumb1_movsf_insn): Likewise.
16312 (*movdf_soft_insn): Likewise.
16313 (*thumb_movdf_insn): Likewise.
16314 (cbranchsi4_insn): Likewise.
16315 (cbranchsi4_scratch): Likewise.
16316 (*negated_cbranchsi4): Likewise.
16317 (*tbit_cbranch): Likewise.
16318 (*tlobits_cbranch): Likewise.
16319 (*tstsi3_cbranch): Likewise.
16320 (*cbranchne_decr1): Likewise.
16321 (*addsi3_cbranch): Likewise.
16322 (*addsi3_cbranch_scratch): Likewise.
16323 (*arm_cmpdi_insn): Likewise.
16324 (*arm_cmpdi_unsig): Likewise.
16325 (*arm_cmpdi_zero): Likewise.
16326 (*thumb_cmpdi_zero): Likewise.
16327 (*deleted_compare): Likewise.
16328 (*mov_scc): Likewise.
16329 (*mov_negscc): Likewise.
16330 (*mov_notscc): Likewise.
16331 (*cstoresi_eq0_thumb1_insn): Likewise.
16332 (cstoresi_nltu_thumb1): Likewise.
16333 (cstoresi_ltu_thu): Likewise.
16334 (thumb1_addsi3_addgeu): Likewise.
16335 (*arm_jump): Likewise.
16336 (*thumb_jump): Likewise.
16337 (*check_arch2): Likewise.
16338 (arm_casesi_internal): Likewise.
16339 (thumb1_casesi_dispatch): Likewise.
16340 (*arm_indirect_jump): Likewise.
16341 (*thumb1_indirect_jump): Likewise.
16343 (*and_scc): Likewise.
16344 (*ior_scc): Likewise.
16345 (*compare_scc): Likewise.
16346 (*cond_move): Likewise.
16347 (*cond_arith): Likewise.
16348 (*cond_sub): Likewise.
16349 (*cmp_ite0): Likewise.
16350 (*cmp_ite1): Likewise.
16351 (*cmp_and): Likewise.
16352 (*cmp_ior): Likewise.
16353 (*ior_scc_scc): Likewise.
16354 (*ior_scc_scc_cmp): Likewise.
16355 (*and_scc_scc): Likewise.
16356 (*and_scc_scc_cmp): Likewise.
16357 (*and_scc_scc_nod): Likewise.
16358 (*negscc): Likewise.
16359 (movcond_addsi): Likewise.
16360 (movcond): Likewise.
16361 (*ifcompare_plus_move): Likewise.
16362 (*if_plus_move): Likewise.
16363 (*ifcompare_move_plus): Likewise.
16364 (*if_move_plus): Likewise.
16365 (*ifcompare_arith_arith): Likewise.
16366 (*if_arith_arith): Likewise.
16367 (*ifcompare_arith_move): Likewise.
16368 (*if_arith_move): Likewise.
16369 (*ifcompare_move_arith): Likewise.
16370 (*if_move_arith): Likewise.
16371 (*ifcompare_move_not): Likewise.
16372 (*if_move_not): Likewise.
16373 (*ifcompare_not_move): Likewise.
16374 (*if_not_move): Likewise.
16375 (*ifcompare_shift_move): Likewise.
16376 (*if_shift_move): Likewise.
16377 (*ifcompare_move_shift): Likewise.
16378 (*if_move_shift): Likewise.
16379 (*ifcompare_shift_shift): Likewise.
16380 (*ifcompare_not_arith): Likewise.
16381 (*ifcompare_arith_not): Likewise.
16382 (*if_arith_not): Likewise.
16383 (*ifcompare_neg_move): Likewise.
16384 (*if_neg_move): Likewise.
16385 (*ifcompare_move_neg): Likewise.
16386 (*if_move_neg): Likewise.
16387 (prologue_thumb1_interwork): Likewise.
16388 (*cond_move_not): Likewise.
16389 (*sign_extract_onebit): Likewise.
16390 (*not_signextract_onebit): Likewise.
16391 (stack_tie): Likewise.
16392 (align_4): Likewise.
16393 (align_8): Likewise.
16394 (consttable_end): Likewise.
16395 (consttable_1): Likewise.
16396 (consttable_2): Likewise.
16397 (consttable_4): Likewise.
16398 (consttable_8): Likewise.
16399 (consttable_16): Likewise.
16400 (*thumb1_tablejump): Likewise.
16401 (prefetch): Likewise.
16402 (force_register_use): Likewise.
16403 (thumb_eh_return): Likewise.
16404 (load_tp_hard): Likewise.
16405 (load_tp_soft): Likewise.
16406 (tlscall): Likewise.
16407 (*arm_movtas_ze): Likewise.
16408 (*arm_rev): Likewise.
16409 (*arm_revsh): Likewise.
16410 (*arm_rev16): Likewise.
16411 * config/arm/thumb2.md
16412 (*thumb2_smaxsi3): Likewise.
16413 (*thumb2_sminsi3): Likewise.
16414 (*thumb32_umaxsi3): Likewise.
16415 (*thumb2_uminsi3): Likewise.
16416 (*thumb2_negdi2): Likewise.
16417 (*thumb2_abssi2): Likewise.
16418 (*thumb2_neg_abss): Likewise.
16419 (*thumb2_movsi_insn): Likewise.
16420 (tls_load_dot_plus_four): Likewise.
16421 (*thumb2_movhi_insn): Likewise.
16422 (*thumb2_mov_scc): Likewise.
16423 (*thumb2_mov_negs): Likewise.
16424 (*thumb2_mov_negs): Likewise.
16425 (*thumb2_mov_nots): Likewise.
16426 (*thumb2_mov_nots): Likewise.
16427 (*thumb2_movsicc_): Likewise.
16428 (*thumb2_movsfcc_soft_insn): Likewise.
16429 (*thumb2_indirect_jump): Likewise.
16430 (*thumb2_and_scc): Likewise.
16431 (*thumb2_ior_scc): Likewise.
16432 (*thumb2_ior_scc_strict_it): Likewise.
16433 (*thumb2_cond_move): Likewise.
16434 (*thumb2_cond_arith): Likewise.
16435 (*thumb2_cond_ari): Likewise.
16436 (*thumb2_cond_sub): Likewise.
16437 (*thumb2_negscc): Likewise.
16438 (*thumb2_movcond): Likewise.
16439 (thumb2_casesi_internal): Likewise.
16440 (thumb2_casesi_internal_pic): Likewise.
16441 (*thumb2_alusi3_short): Likewise.
16442 (*thumb2_mov<mode>_shortim): Likewise.
16443 (*thumb2_addsi_short): Likewise.
16444 (*thumb2_subsi_short): Likewise.
16445 (thumb2_addsi3_compare0): Likewise.
16446 (*thumb2_cbz): Likewise.
16447 (*thumb2_cbnz): Likewise.
16448 (*thumb2_one_cmplsi2_short): Likewise.
16449 (*thumb2_negsi2_short): Likewise.
16450 (*orsi_notsi_si): Likewise.
16451 * config/arm/arm1020e.md: Update with new attributes.
16452 * config/arm/arm1026ejs.md: Update with new attributes.
16453 * config/arm/arm1136jfs.md: Update with new attributes.
16454 * config/arm/arm926ejs.md: Update with new attributes.
16455 * config/arm/cortex-a15.md: Update with new attributes.
16456 * config/arm/cortex-a5.md: Update with new attributes.
16457 * config/arm/cortex-a53.md: Update with new attributes.
16458 * config/arm/cortex-a7.md: Update with new attributes.
16459 * config/arm/cortex-a8.md: Update with new attributes.
16460 * config/arm/cortex-a9.md: Update with new attributes.
16461 * config/arm/cortex-m4.md: Update with new attributes.
16462 * config/arm/cortex-r4.md: Update with new attributes.
16463 * config/arm/fa526.md: Update with new attributes.
16464 * config/arm/fa606te.md: Update with new attributes.
16465 * config/arm/fa626te.md: Update with new attributes.
16466 * config/arm/fa726te.md: Update with new attributes.
16468 2013-09-06 James Greenhalgh <james.greenhalgh@arm.com>
16470 * config/aarch64/aarch64-simd.md
16471 (aarch64_sqdml<SBINQOPS:as>l_n<mode>_internal): Use
16472 <vwx> iterator to ensure correct register choice.
16473 (aarch64_sqdml<SBINQOPS:as>l2_n<mode>_internal): Likewise.
16474 (aarch64_sqdmull_n<mode>): Likewise.
16475 (aarch64_sqdmull2_n<mode>_internal): Likewise.
16476 * config/aarch64/arm_neon.h
16477 (vml<as><q>_lane<q>_<su>16): Use 'x' constraint for element vector.
16478 (vml<as><q>_n_<su>16): Likewise.
16479 (vml<as>l_high_lane<q>_<su>16): Likewise.
16480 (vml<as>l_high_n_<su>16): Likewise.
16481 (vml<as>l_lane<q>_<su>16): Likewise.
16482 (vml<as>l_n_<su>16): Likewise.
16483 (vmul<q>_lane<q>_<su>16): Likewise.
16484 (vmul<q>_n_<su>16): Likewise.
16485 (vmull_lane<q>_<su>16): Likewise.
16486 (vmull_n_<su>16): Likewise.
16487 (vmull_high_lane<q>_<su>16): Likewise.
16488 (vmull_high_n_<su>16): Likewise.
16489 (vqrdmulh<q>_n_s16): Likewise.
16491 2013-09-06 Tejas Belagod <tejas.belagod@arm.com>
16493 * config/aarch64/arm_neon.h: Fix all vdup<bhsd_lane<q> intrinsics to
16494 have the correct lane parameter.
16496 2013-09-06 Richard Biener <rguenther@suse.de>
16498 * cfganal.c (control_dependences::~control_dependences):
16499 Properly free all of the vector.
16501 2013-09-06 Kirill Yukhin <kirill.yukhin@intel.com>
16504 * config/i386/i386.c (ix86_conditional_register_usage):
16505 Proper initialize extended SSE registers.
16507 2013-09-06 Jan Hubicka <jh@suse.cz>
16509 PR tree-optimization/58311
16510 * ipa-devirt.c (gate_ipa_devirt): Only execute when optimizing.
16512 2013-09-06 Jan Hubicka <jh@suse.cz>
16514 * Makefile.in (tree-sra.o): Update dependencies.
16515 * tree-sra.c: Include ipa-utils.h
16516 (scan_function): Use recursive_call_p.
16517 (has_caller_p): New function.
16518 (cgraph_for_node_and_aliases): Count also callers of aliases.
16520 2013-09-06 Jan Hubicka <jh@suse.cz>
16522 PR middle-end/58094
16523 * cgraph.h (symtab_semantically_equivalent_p): Declare.
16524 * tree-tailcall.c: Include ipa-utils.h.
16525 (find_tail_calls): Use it.
16526 * ipa-pure-const.c (check_call): Likewise.
16527 * ipa-utils.c (recursive_call_p): New function.
16528 * ipa-utils.h (recursive_call_p): Dclare.
16529 * symtab.c (symtab_nonoverwritable_alias): Fix formatting.
16530 (symtab_semantically_equivalent_p): New function.
16531 * Makefile.in (tree-tailcall.o): Update dependencies.
16533 2013-09-06 Eric Botcazou <ebotcazou@adacore.com>
16535 * ipa-split.c (split_function): Set DECL_NO_INLINE_WARNING_P on the
16536 non-inlinable part.
16538 2013-09-06 Richard Biener <rguenther@suse.de>
16540 * lto-streamer.h (lto_global_var_decls): Remove.
16541 * Makefile.in (OBJS): Remove lto-symtab.o.
16542 (lto-symtab.o): Remove.
16543 (GTFILES): Remove lto-symtab.c
16544 * lto-symtab.c: Move to lto/
16546 2013-09-06 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
16548 * config/s390/s390.md (UNSPEC_FPINT_FLOOR, UNSPEC_FPINT_BTRUNC)
16549 (UNSPEC_FPINT_ROUND, UNSPEC_FPINT_CEIL, UNSPEC_FPINT_NEARBYINT)
16550 (UNSPEC_FPINT_RINT): New constant definitions.
16551 (FPINT, fpint_name, fpint_roundingmode): New integer iterator
16552 definition with 2 attributes.
16553 ("<FPINT:fpint_name><BFP:mode>2", "rint<BFP:mode>2")
16554 ("<FPINT:fpint_name><DFP:mode>2", "rint<DFP:mode>2"): New pattern
16557 2013-09-06 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
16559 * config/s390/s390.md: Add "bcr_flush" value to mnemonic attribute.
16560 ("mem_thread_fence_1"): Use bcr 14,0 for z196 and later.
16561 Set the mnemonic attribute to "bcr_flush". Set the "z196prop"
16562 attribute to "z196_alone".
16563 * config/s390/2827.md: Add "bcr_flush" to "ooo_groupalone" and
16566 2013-09-06 Richard Biener <rguenther@suse.de>
16568 * basic-block.h (class control_dependences): New.
16569 * tree-ssa-dce.c (control_dependence_map): Remove.
16571 (EXECUTE_IF_CONTROL_DEPENDENT): Remove.
16572 (set_control_dependence_map_bit, clear_control_dependence_bitmap,
16573 find_pdom, find_control_dependence, find_all_control_dependences):
16575 (mark_control_dependent_edges_necessary,
16576 find_obviously_necessary_stmts, propagate_necessity, tree_dce_init,
16577 tree_dce_done, perform_tree_ssa_dce): Adjust.
16578 * cfganal.c (set_control_dependence_map_bit,
16579 clear_control_dependence_bitmap, find_pdom, find_control_dependence,
16580 find_all_control_dependences): Move from tree-ssa-dce.c and
16581 implement as methods of control_dependences class.
16582 (control_dependences::control_dependences): New.
16583 (control_dependences::~control_dependences): Likewise.
16584 (control_dependences::get_edges_dependent_on): Likewise.
16585 (control_dependences::get_edge): Likewise.
16587 2013-09-04 Jan Hubicka <jh@suse.cz>
16589 * tree.c (types_same_for_odr): Drop overactive check.
16590 * ipa-devirt.c (hash_type_name): Likewise.
16592 2013-09-04 Jan Hubicka <jh@suse.cz>
16594 * cgraphunit.c (walk_polymorphic_call_targets): Break out from ...
16595 (analyze_functions): ... here.
16597 2013-09-04 Jan Hubicka <jh@suse.cz>
16599 PR middle-end/58201
16600 * cgraphunit.c (analyze_functions): Clear AUX fields
16601 after processing; initialize assembler name has.
16603 2013-09-05 Jeff Law <law@redhat.com>
16605 * tree-ssa-threadedge.c (thread_around_empty_blocks): Renamed
16606 from thread_around_empty_block. Record threading path into PATH.
16607 Recurse if threading through the initial block is successful.
16608 (thread_across_edge): Corresponding changes to slightly simplify.
16610 2013-09-05 James Greenhalgh <james.greenhalgh@arm.com>
16612 * config/aarch64/aarch64.md
16613 (type): Remove frecpe, frecps, frecpx.
16614 (aarch64_frecp<FRECP:frecp_suffix><mode>): Move to aarch64-simd.md,
16615 fix to be a TARGET_SIMD instruction.
16616 (aarch64_frecps): Remove.
16617 * config/aarch64/aarch64-simd.md
16618 (aarch64_frecp<FRECP:frecp_suffix><mode>): New, moved from aarch64.md
16619 (aarch64_frecps<mode>): Handle all float/vector of float modes.
16621 2013-09-05 James Greenhalgh <james.greenhalgh@arm.com>
16622 Sofiane Naci <sofiane.naci@arm.com>
16624 * config/arm/types.md (define_attr "type"): Expand "arlo_imm"
16625 into "adr", "alu_imm", "alus_imm", "logic_imm", "logics_imm".
16626 Expand "arlo_reg" into "adc_reg", "adc_imm", "adcs_reg", "adcs_imm",
16627 "alu_ext", "alu_reg", "alus_ext", "alus_reg", "bfm", "csel",
16628 "logic_reg", "logics_reg", "rev". Expand "arlo_shift" into
16629 "alu_shift_imm", "alus_shift_imm", "logic_shift_imm",
16630 "logics_shift_imm". Expand "arlo_shift_reg" into "alu_shift_reg",
16631 "alus_shift_reg", "logic_shift_reg", "logics_shift_reg". Expand "clz"
16632 into "clz, "rbit". Rename "shift" to "shift_imm".
16633 * config/arm/arm.md (define_attr "core_cycles"): Update for attribute
16634 changes. Update for attribute changes all occurrences of arlo_* and
16636 * config/arm/arm-fixed.md: Update for attribute changes
16637 all occurrences of arlo_* types.
16638 * config/arm/thumb2.md: Update for attribute changes all occurrences
16640 * config/arm/arm.c (xscale_sched_adjust_cost): (rtx insn, rtx
16641 (cortexa7_older_only): Likewise.
16642 (cortexa7_younger): Likewise.
16643 * config/arm/arm1020e.md (1020alu_op): Update for attribute changes.
16644 (1020alu_shift_op): Likewise.
16645 (1020alu_shift_reg_op): Likewise.
16646 * config/arm/arm1026ejs.md (alu_op): Update for attribute changes.
16647 (alu_shift_op): Likewise.
16648 (alu_shift_reg_op): Likewise.
16649 * config/arm/arm1136jfs.md (11_alu_op): Update for attribute changes.
16650 (11_alu_shift_op): Likewise.
16651 (11_alu_shift_reg_op): Likewise.
16652 * config/arm/arm926ejs.md (9_alu_op): Update for attribute changes.
16653 (9_alu_shift_reg_op): Likewise.
16654 * config/arm/cortex-a15.md (cortex_a15_alu): Update for
16656 (cortex_a15_alu_shift): Likewise.
16657 (cortex_a15_alu_shift_reg): Likewise.
16658 * config/arm/cortex-a5.md (cortex_a5_alu): Update for
16660 (cortex_a5_alu_shift): Likewise.
16661 * config/arm/cortex-a53.md (cortex_a53_alu): Update for
16663 (cortex_a53_alu_shift): Likewise.
16664 * config/arm/cortex-a7.md (cortex_a7_alu_imm): Update for
16666 (cortex_a7_alu_reg): Likewise.
16667 (cortex_a7_alu_shift): Likewise.
16668 * config/arm/cortex-a8.md (cortex_a8_alu): Update for
16670 (cortex_a8_alu_shift): Likewise.
16671 (cortex_a8_alu_shift_reg): Likewise.
16672 * config/arm/cortex-a9.md (cortex_a9_dp): Update for attribute changes.
16673 (cortex_a9_dp_shift): Likewise.
16674 * config/arm/cortex-m4.md (cortex_m4_alu): Update for
16676 * config/arm/cortex-r4.md
16677 (cortex_r4_alu): Update for attribute changes.
16678 (cortex_r4_mov): Likewise.
16679 (cortex_r4_alu_shift_reg): Likewise.
16680 * config/arm/fa526.md (526_alu_op): Update for attribute changes.
16681 (526_alu_shift_op): Likewise.
16682 * config/arm/fa606te.md (606te_alu_op): Update for attribute changes.
16683 * config/arm/fa626te.md (626te_alu_op): Update for attribute changes.
16684 (626te_alu_shift_op): Likewise.
16685 * config/arm/fa726te.md (726te_alu_op): Update for attribute changes.
16686 (726te_alu_shift_op): Likewise.
16687 (726te_alu_shift_reg_op): Likewise.
16688 * config/arm/fmp626.md (mp626_alu_op): Update for attribute changes.
16689 (mp626_alu_shift_op): Likewise.
16690 * config/arm/marvell-pj4.md (pj4_alu): Update for attribute changes.
16691 (pj4_alu_conds): Likewise.
16692 (pj4_shift): Likewise.
16693 (pj4_shift_conds): Likewise.
16694 (pj4_alu_shift): Likewise.
16695 (pj4_alu_shift_conds): Likewise.
16696 * config/aarch64/aarch64.md: Update for attribute change
16697 all occurrences of arlo_* and shift* types.
16699 2013-09-05 Mike Stump <mikestump@comcast.net>
16701 * tree.h: Move documentation for tree_function_decl to tree-core.h
16702 with the declaration.
16704 2013-09-05 Peter Bergner <bergner@vnet.ibm.com>
16707 * reginfo.c (choose_hard_reg_mode): Scan through all mode classes
16708 looking for widest mode.
16710 2013-09-05 Eric Botcazou <ebotcazou@adacore.com>
16712 * config.gcc (*-*-vxworks*): Do not override an existing extra_objs.
16714 2013-09-05 Richard Biener <rguenther@suse.de>
16716 PR tree-optimization/58137
16717 * tree-vect-stmts.c (get_vectype_for_scalar_type_and_size):
16718 Do not create vectors of pointers.
16719 * tree-vect-loop.c (get_initial_def_for_induction): Use proper
16720 types for the components of the vector initializer.
16721 * tree-cfg.c (verify_gimple_assign_binary): Remove special-casing
16722 allowing pointer vectors with PLUS_EXPR/MINUS_EXPR.
16724 2013-09-05 Martin Jambor <mjambor@suse.cz>
16726 * ipa-prop.c (remove_described_reference): Accept missing references,
16727 return false if that hppens, otherwise return true.
16728 (cgraph_node_for_jfunc): New function.
16729 (try_decrement_rdesc_refcount): Likewise.
16730 (try_make_edge_direct_simple_call): Use them.
16731 (ipa_edge_removal_hook): Remove references from rdescs.
16732 (ipa_edge_duplication_hook): Clone rdescs and their references
16733 when the new edge has the same caller as the old one.
16734 * cgraph.c (cgraph_resolve_speculation): Remove speculative
16735 reference before removing any edges.
16737 2013-09-05 Richard Earnshaw <rearnsha@arm.com>
16739 * arm.c (thumb2_emit_strd_push): Rewrite to use pre-decrement on
16741 * thumb2.md (thumb2_storewb_parisi): New pattern.
16743 2013-09-05 Yufeng Zhang <yufeng.zhang@arm.com>
16745 * config/aarch64/aarch64-option-extensions.def: Add
16746 AARCH64_OPT_EXTENSION of 'crc'.
16747 * config/aarch64/aarch64.h (AARCH64_FL_CRC): New define.
16748 (AARCH64_ISA_CRC): Ditto.
16749 * doc/invoke.texi (-march and -mcpu feature modifiers): Add
16750 description of the CRC extension.
16752 2013-09-05 Alexander Ivchenko <alexander.ivchenko@intel.com>
16754 * config/rs6000/linux64.h: Define OPTION_BIONIC and OPTION_UCLIBC.
16755 * config/rs6000/linux.h: Ditto.
16756 * alpha/linux.h: Ditto.
16757 * config/bfin/uclinux.h: Define TARGET_LIBC_HAS_FUNCTION as
16758 no_c99_libc_has_function.
16759 * config/c6x/uclinux-elf.h: Ditto.
16760 * config/lm32/uclinux-elf.h: Ditto.
16761 * config/m68k/uclinux.h: Ditto.
16762 * config/moxie/uclinux.h: Ditto.
16763 * config.gcc (bfin*-linux-uclibc*): Add t-linux-android to tmake_file.
16764 (crisv32-*-linux*, cris-*-linux*): Ditto.
16765 * config/bfin/bfin.c: Include "tm_p.h".
16767 2013-09-05 Richard Biener <rguenther@suse.de>
16769 * tree-vect-loop.c (vect_analyze_loop_operations): Properly
16770 check for a definition without a basic-block.
16772 2013-09-05 James Greenhalgh <james.greenhalgh@arm.com>
16773 Sofiane Naci <sofiane.naci@arm.com>
16775 * config/aarch64/aarch64.md
16776 (*movti_aarch64): Rename r_2_f and f_2_r.
16777 (*movsf_aarch64): Likewise.
16778 (*movdf_aarch64): Likewise.
16779 (*movtf_aarch64): Likewise.
16780 (aarch64_movdi_<mode>low): Likewise.
16781 (aarch64_movdi_<mode>high): Likewise.
16782 (aarch64_mov<mode>high_di): Likewise.
16783 (aarch64_mov<mode>low_di): Likewise.
16784 (aarch64_movtilow_tilow): Likewise.
16785 * config/arm/arm.md (attribute "neon_type"): Delete. Move attribute
16786 values to config/arm/types.md
16787 (attribute "conds"): Update for attribute change.
16788 (anddi3_insn): Likewise.
16789 (iordi3_insn): Likewise.
16790 (xordi3_insn): Likewise.
16791 (one_cmpldi2): Likewise.
16792 * config/arm/types.md (type): Add Neon types.
16793 * config/arm/neon.md (neon_mov<mode>): Remove "neon_type" attribute,
16794 use "type" attribute.
16795 (movmisalign<mode>_neon_store): Likewise.
16796 (movmisalign<mode>_neon_load): Likewise.
16797 (vec_set<mode>_internal): Likewise.
16798 (vec_setv2di_internal): Likewise.
16799 (vec_extract<mode>): Likewise.
16800 (vec_extractv2di): Likewise.
16801 (add<mode>3_neon): Likewise.
16802 (adddi3_neon): Likewise.
16803 (sub<mode>3_neon): Likewise.
16804 (subdi3_neon): Likewise.
16805 (mul<mode>3_neon): Likewise.
16806 (mul<mode>3add<mode>_neon): Likewise.
16807 (mul<mode>3neg<mode>add<mode>_neon): Likewise.
16808 (fma<VCVTF:mode>4)): Likewise.
16809 (fma<VCVTF:mode>4_intrinsic): Likewise.
16810 (fmsub<VCVTF:mode>4)): Likewise.
16811 (fmsub<VCVTF:mode>4_intrinsic): Likewise.
16812 (neon_vrint<NEON_VRINT:nvrint_variant><VCVTF:mode>): Likewise.
16813 (ior<mode>3): Likewise.
16814 (and<mode>3): Likewise.
16815 (anddi3_neon): Likewise.
16816 (orn<mode>3_neon): Likewise.
16817 (orndi3_neon): Likewise.
16818 (bic<mode>3_neon): Likewise.
16819 (bicdi3_neon): Likewise.
16820 (xor<mode>3): Likewise.
16821 (one_cmpl<mode>2): Likewise.
16822 (abs<mode>2): Likewise.
16823 (neg<mode>2): Likewise.
16824 (umin<mode>3_neon): Likewise.
16825 (umax<mode>3_neon): Likewise.
16826 (smin<mode>3_neon): Likewise.
16827 (smax<mode>3_neon): Likewise.
16828 (vashl<mode>3): Likewise.
16829 (vashr<mode>3_imm): Likewise.
16830 (vlshr<mode>3_imm): Likewise.
16831 (ashl<mode>3_signed): Likewise.
16832 (ashl<mode>3_unsigned): Likewise.
16833 (neon_load_count): Likewise.
16834 (ashldi3_neon_noclobber): Likewise.
16835 (signed_shift_di3_neon): Likewise.
16836 (unsigned_shift_di3_neon): Likewise.
16837 (ashrdi3_neon_imm_noclobber): Likewise.
16838 (lshrdi3_neon_imm_noclobber): Likewise.
16839 (widen_ssum<mode>3): Likewise.
16840 (widen_usum<mode>3): Likewise.
16841 (quad_halves_<code>v4si): Likewise.
16842 (quad_halves_<code>v4sf): Likewise.
16843 (quad_halves_<code>v8hi): Likewise.
16844 (quad_halves_<code>v16qi): Likewise.
16845 (reduc_splus_v2di): Likewise.
16846 (neon_vpadd_internal<mode>): Likewise.
16847 (neon_vpsmin<mode>): Likewise.
16848 (neon_vpsmax<mode>): Likewise.
16849 (neon_vpumin<mode>): Likewise.
16850 (neon_vpumax<mode>): Likewise.
16851 (ss_add<mode>_neon): Likewise.
16852 (us_add<mode>_neon): Likewise.
16853 (ss_sub<mode>_neon): Likewise.
16854 (us_sub<mode>_neon): Likewise.
16855 (neon_vadd<mode>_unspec): Likewise.
16856 (neon_vaddl<mode>): Likewise.
16857 (neon_vaddw<mode>): Likewise.
16858 (neon_vhadd<mode>): Likewise.
16859 (neon_vqadd<mode>): Likewise.
16860 (neon_vaddhn<mode>): Likewise.
16861 (neon_vmul<mode>): Likewise.
16862 (neon_vmla<mode>): Likewise.
16863 (neon_vmlal<mode>): Likewise.
16864 (neon_vmls<mode>): Likewise.
16865 (neon_vmlsl<mode>): Likewise.
16866 (neon_vqdmulh<mode>): Likewise.
16867 (neon_vqdmlal<mode>): Likewise.
16868 (neon_vqdmlsl<mode>): Likewise.
16869 (neon_vmull<mode>): Likewise.
16870 (neon_vqdmull<mode>): Likewise.
16871 (neon_vsub<mode>_unspec): Likewise.
16872 (neon_vsubl<mode>): Likewise.
16873 (neon_vsubw<mode>): Likewise.
16874 (neon_vqsub<mode>): Likewise.
16875 (neon_vhsub<mode>): Likewise.
16876 (neon_vsubhn<mode>): Likewise.
16877 (neon_vceq<mode>): Likewise.
16878 (neon_vcge<mode>): Likewise.
16879 (neon_vcgeu<mode>): Likewise.
16880 (neon_vcgt<mode>): Likewise.
16881 (neon_vcgtu<mode>): Likewise.
16882 (neon_vcle<mode>): Likewise.
16883 (neon_vclt<mode>): Likewise.
16884 (neon_vcage<mode>): Likewise.
16885 (neon_vcagt<mode>): Likewise.
16886 (neon_vtst<mode>): Likewise.
16887 (neon_vabd<mode>): Likewise.
16888 (neon_vabdl<mode>): Likewise.
16889 (neon_vaba<mode>): Likewise.
16890 (neon_vabal<mode>): Likewise.
16891 (neon_vmax<mode>): Likewise.
16892 (neon_vmin<mode>): Likewise.
16893 (neon_vpaddl<mode>): Likewise.
16894 (neon_vpadal<mode>): Likewise.
16895 (neon_vpmax<mode>): Likewise.
16896 (neon_vpmin<mode>): Likewise.
16897 (neon_vrecps<mode>): Likewise.
16898 (neon_vrsqrts<mode>): Likewise.
16899 (neon_vqabs<mode>): Likewise.
16900 (neon_vqneg<mode>): Likewise.
16901 (neon_vcls<mode>): Likewise.
16902 (clz<mode>2): Likewise.
16903 (popcount<mode>2): Likewise.
16904 (neon_vrecpe): Likewise.
16905 (neon_vrsqrte): Likewise.
16906 (neon_vget_lane<mode>_sext_internal): Likewise.
16907 (neon_vget_lane<mode>_zext_internal): Likewise.
16908 (neon_vdup_n<mode>): Likewise.
16909 (neon_vdup_nv2di): Likewise.
16910 (neon_vdpu_lane<mode>_internal): Likewise.
16911 (neon_vswp<mode>): Likewise.
16912 (float<mode><V_cvtto>2): Likewise.
16913 (floatuns<mode><V_cvtto>2): Likewise.
16914 (fix_trunc<mode><V_cvtto>)2): Likewise
16915 (fixuns_trunc<mode><V_cvtto)2): Likewise.
16916 (neon_vcvt<mode>): Likewise.
16917 (neon_vcvtv4sfv4hf): Likewise.
16918 (neon_vcvtv4hfv4sf): Likewise.
16919 (neon_vcvt_n<mode>): Likewise.
16920 (neon_vmovn<mode>): Likewise.
16921 (neon_vqmovn<mode>): Likewise.
16922 (neon_vqmovun<mode>): Likewise.
16923 (neon_vmovl<mode>): Likewise.
16924 (neon_vmul_lane<mode>): Likewise.
16925 (neon_vmull_lane<mode>): Likewise.
16926 (neon_vqdmull_lane<mode>): Likewise.
16927 (neon_vqdmulh_lane<mode>): Likewise.
16928 (neon_vmla_lane<mode>): Likewise.
16929 (neon_vmlal_lane<mode>): Likewise.
16930 (neon_vqdmlal_lane<mode>): Likewise.
16931 (neon_vmls_lane<mode>): Likewise.
16932 (neon_vmlsl_lane<mode>): Likewise.
16933 (neon_vqdmlsl_lane<mode>): Likewise.
16934 (neon_vext<mode>): Likewise.
16935 (neon_vrev64<mode>): Likewise.
16936 (neon_vrev32<mode>): Likewise.
16937 (neon_vrev16<mode>): Likewise.
16938 (neon_vbsl<mode>_internal): Likewise.
16939 (neon_vshl<mode>): Likewise.
16940 (neon_vqshl<mode>): Likewise.
16941 (neon_vshr_n<mode>): Likewise.
16942 (neon_vshrn_n<mode>): Likewise.
16943 (neon_vqshrn_n<mode>): Likewise.
16944 (neon_vqshrun_n<mode>): Likewise.
16945 (neon_vshl_n<mode>): Likewise.
16946 (neon_vqshl_n<mode>): Likewise.
16947 (neon_vqshlu_n<mode>): Likewise.
16948 (neon_vshll_n<mode>): Likewise.
16949 (neon_vsra_n<mode>): Likewise.
16950 (neon_vsri_n<mode>): Likewise.
16951 (neon_vsli_n<mode>): Likewise.
16952 (neon_vtbl1v8qi): Likewise.
16953 (neon_vtbl2v8qi): Likewise.
16954 (neon_vtbl3v8qi): Likewise.
16955 (neon_vtbl4v8qi): Likewise.
16956 (neon_vtbx1v8qi): Likewise.
16957 (neon_vtbx2v8qi): Likewise.
16958 (neon_vtbx3v8qi): Likewise.
16959 (neon_vtbx4v8qi): Likewise.
16960 (neon_vtrn<mode>_internal): Likewise.
16961 (neon_vzip<mode>_internal): Likewise.
16962 (neon_vuzp<mode>_internal): Likewise.
16963 (neon_vld1<mode>): Likewise.
16964 (neon_vld1_lane<mode>): Likewise.
16965 (neon_vld1_dup<mode>): Likewise.
16966 (neon_vld1_dupv2di): Likewise.
16967 (neon_vst1<mode>): Likewise.
16968 (neon_vst1_lane<mode>): Likewise.
16969 (neon_vld2<mode>): Likewise.
16970 (neon_vld2_lane<mode>): Likewise.
16971 (neon_vld2_dup<mode>): Likewise.
16972 (neon_vst2<mode>): Likewise.
16973 (neon_vst2_lane<mode>): Likewise.
16974 (neon_vld3<mode>): Likewise.
16975 (neon_vld3qa<mode>): Likewise.
16976 (neon_vld3qb<mode>): Likewise.
16977 (neon_vld3_lane<mode>): Likewise.
16978 (neon_vld3_dup<mode>): Likewise.
16979 (neon_vst3<mode>): Likewise.
16980 (neon_vst3qa<mode>): Likewise.
16981 (neon_vst3qb<mode>): Likewise.
16982 (neon_vst3_lane<mode>): Likewise.
16983 (neon_vld4<mode>): Likewise.
16984 (neon_vld4qa<mode>): Likewise.
16985 (neon_vld4qb<mode>): Likewise.
16986 (neon_vld4_lane<mode>): Likewise.
16987 (neon_vld4_dup<mode>): Likewise.
16988 (neon_vst4<mode>): Likewise.
16989 (neon_vst4qa<mode>): Likewise.
16990 (neon_vst4qb<mode>): Likewise.
16991 (neon_vst4_lane<mode>): Likewise.
16992 (neon_vec_unpack<US>_lo_<mode>): Likewise.
16993 (neon_vec_unpack<US>_hi_<mode>): Likewise.
16994 (neon_vec_<US>mult_lo_<mode>): Likewise.
16995 (neon_vec_<US>mult_hi_<mode>): Likewise.
16996 (neon_vec_<US>shiftl_<mode>): Likewise.
16997 (neon_unpack<US>_<mode>): Likewise.
16998 (neon_vec_<US>mult_<mode>): Likewise.
16999 (vec_pack_trunc_<mode>): Likewise.
17000 (neon_vec_pack_trunk_<mode>): Likewise.
17001 (neon_vabd<mode>_2): Likewise.
17002 (neon_vabd<mode>_3): Likewise.
17003 * config/arm/vfp.md (arm_movsi_vfp): Update for attribute changes.
17004 (thumb2_movsi_vfp): Likewise.
17005 (movdi_vfp): Likewise.
17006 (movdi_vfp_cortexa8): Likewise.
17007 (movhf_vfp_neon): Likewise.
17008 (movhf_vfp): Likewiwse.
17009 (movsf_vfp): Likewiwse.
17010 (thumb2_movsf_vfp): Likewiwse.
17011 (movdf_vfp): Likewise.
17012 (thumb2_movdf_vfp): Likewise.
17013 (movsfcc_vfp): Likewise.
17014 (thumb2_movsfcc_vfp): Likewise.
17015 (movdfcc_vfp): Likewise.
17016 (thumb2_movdfcc_vfp): Likewise.
17017 * config/arm/arm.c (cortexa7_older_only): Update for attribute change.
17018 * config/arm/arm1020e.md (v10_c2v): Update for attribute change.
17019 (v10_v2c): Likewise.
17020 * config/arm/cortex-a15-neon.md (cortex_a15_neon_int_1): Update for
17022 (cortex_a15_neon_int_2): Likewise.
17023 (cortex_a15_neon_int_3): Likewise.
17024 (cortex_a15_neon_int_4): Likewise.
17025 (cortex_a15_neon_int_5): Likewise.
17026 (cortex_a15_neon_vqneg_vqabs): Likewise.
17027 (cortex_a15_neon_vmov): Likewise.
17028 (cortex_a15_neon_vaba): Likewise.
17029 (cortex_a15_neon_vaba_qqq): Likewise.
17030 (cortex_a15_neon_mul_ddd_8_16_qdd_16_8_long_32_16_long): Likewise.
17031 (cortex_a15_neon_mul_qqq_8_16_32_ddd_32): Likewise.
17032 (cortex_a15_neon_mul_qdd_64_32_long_qqd_16_ddd_32_\
17033 scalar_64_32_long_scalar): Likewise.
17034 (cortex_a15_neon_mla_ddd_8_16_qdd_16_8_long_32_16_long): Likewise.
17035 (cortex_a15_neon_mla_qqq_8_16): Likewise.
17036 (cortex_a15_neon_mla_ddd_32_qqd_16_ddd_32_scalar_qdd_64_32_\
17037 lotype_qdd_64_32_long): Likewise.
17038 (cortex_a15_neon_mla_qqq_32_qqd_32_scalar): Likewise.
17039 (cortex_a15_neon_mul_ddd_16_scalar_32_16_long_scalar): Likewise.
17040 (cortex_a15_neon_mul_qqd_32_scalar): Likewise.
17041 (cortex_a15_neon_mla_ddd_16_scalar_qdd_32_16_long_scalar): Likewise.
17042 (cortex_a15_neon_shift_1): Likewise.
17043 (cortex_a15_neon_shift_2): Likewise.
17044 (cortex_a15_neon_shift_3): Likewise.
17045 (cortex_a15_neon_vshl_ddd): Likewise.
17046 (cortex_a15_neon_vqshl_vrshl_vqrshl_qqq): Likewise.
17047 (cortex_a15_neon_vsra_vrsra): Likewise.
17048 (cortex_a15_neon_fp_vadd_ddd_vabs_dd): Likewise.
17049 (cortex_a15_neon_fp_vadd_qqq_vabs_qq): Likewise.
17050 (cortex_a15_neon_fp_vmul_ddd): Likewise.
17051 (cortex_a15_neon_fp_vmul_qqd): Likewise.
17052 (cortex_a15_neon_fp_vmla_ddd): Likewise.
17053 (cortex_a15_neon_fp_vmla_qqq): Likewise.
17054 (cortex_a15_neon_fp_vmla_ddd_scalar): Likewise.
17055 (cortex_a15_neon_fp_vmla_qqq_scalar): Likewise.
17056 (cortex_a15_neon_fp_vrecps_vrsqrts_ddd): Likewise.
17057 (cortex_a15_neon_fp_vrecps_vrsqrts_qqq): Likewise.
17058 (cortex_a15_neon_bp_simple): Likewise.
17059 (cortex_a15_neon_bp_2cycle): Likewise.
17060 (cortex_a15_neon_bp_3cycle): Likewise.
17061 (cortex_a15_neon_vld1_1_2_regs): Likewise.
17062 (cortex_a15_neon_vld1_3_4_regs): Likewise.
17063 (cortex_a15_neon_vld2_2_regs_vld1_vld2_all_lanes): Likewise.
17064 (cortex_a15_neon_vld2_4_regs): Likewise.
17065 (cortex_a15_neon_vld3_vld4): Likewise.
17066 (cortex_a15_neon_vst1_1_2_regs_vst2_2_regs): Likewise.
17067 (cortex_a15_neon_vst1_3_4_regs): Likewise.
17068 (cortex_a15_neon_vst2_4_regs_vst3_vst4): Likewise.
17069 (cortex_a15_neon_vst3_vst4): Likewise.
17070 (cortex_a15_neon_vld1_vld2_lane): Likewise.
17071 (cortex_a15_neon_vld3_vld4_lane" 10
17072 (cortex_a15_neon_vst1_vst2_lane): Likewise.
17073 (cortex_a15_neon_vst3_vst4_lane): Likewise.
17074 (cortex_a15_neon_vld3_vld4_all_lanes): Likewise.
17075 (cortex_a15_neon_ldm_2): Likewise.0
17076 (cortex_a15_neon_stm_2): Likewise.
17077 (cortex_a15_neon_mcr): Likewise.
17078 (cortex_a15_neon_mcr_2_mcrr): Likewise.
17079 (cortex_a15_neon_mrc): Likewise.
17080 (cortex_a15_neon_mrrc): Likewise.
17081 * config/arm/cortex-a15.md (cortex_a15_alu): Update for attribute
17083 (cortex_a15_alu_shift): Likewise.
17084 (cortex_a15_alu_shift_reg): Likewise.
17085 (cortex_a15_mult32): Likewise.
17086 (cortex_a15_mult64): Likewise.
17087 (cortex_a15_block): Likewise.
17088 (cortex_a15_branch): Likewise.
17089 (cortex_a15_load1): Likewise.
17090 (cortex_a15_load3): Likewise.
17091 (cortex_a15_store1): Likewise.
17092 (cortex_a15_store3): Likewise.
17093 (cortex_a15_call): Likewise.
17094 * config/arm/cortex-a5.md (cortex_a5_r2f): Update for attribute change.
17095 (cortex_a5_f2r): Likewise.
17096 * config/arm/cortex-a53.md (cortex_a53_r2f): Update for attribute
17098 (cortex_a53_f2r): Likewise.
17099 * config/arm/cortex-a7.md
17100 (cortex_a7_branch): Update for attribute change.
17101 (cortex_a7_call): Likewise.
17102 (cortex_a7_alu_imm): Likewise.
17103 (cortex_a7_alu_reg): Likewise.
17104 (cortex_a7_alu_shift): Likewise.
17105 (cortex_a7_mul): Likewise.
17106 (cortex_a7_load1): Likewise.
17107 (cortex_a7_store1): Likewise.
17108 (cortex_a7_load2): Likewise.
17109 (cortex_a7_store2): Likewise.
17110 (cortex_a7_load3): Likewise.
17111 (cortex_a7_store3): Likewise.
17112 (cortex_a7_load4): Likewise.
17113 (cortex_a7_store4): Likewise.
17114 (cortex_a7_fpalu): Likewise.
17115 (cortex_a7_fconst): Likewise.
17116 (cortex_a7_fpmuls): Likewise.
17117 (cortex_a7_neon_mul): Likewise.
17118 (cortex_a7_fpmacs): Likewise.
17119 (cortex_a7_neon_mla: Likewise.
17120 (cortex_a7_fpmuld: Likewise.
17121 (cortex_a7_fpmacd: Likewise.
17122 (cortex_a7_fpfmad: Likewise.
17123 (cortex_a7_fdivs: Likewise.
17124 (cortex_a7_fdivd: Likewise.
17125 (cortex_a7_r2f: Likewise.
17126 (cortex_a7_f2r: Likewise.
17127 (cortex_a7_f_flags: Likewise.
17128 (cortex_a7_f_loads: Likewise.
17129 (cortex_a7_f_loadd: Likewise.
17130 (cortex_a7_f_stores: Likewise.
17131 (cortex_a7_f_stored: Likewise.
17132 (cortex_a7_neon): Likewise.
17133 * config/arm/cortex-a8-neon.md
17134 (cortex_a8_neon_mrc): Update for attribute change.
17135 (cortex_a8_neon_mrrc): Likewise.
17136 (cortex_a8_neon_int_1): Likewise.
17137 (cortex_a8_neon_int_2): Likewise.
17138 (cortex_a8_neon_int_3): Likewise.
17139 (cortex_a8_neon_int_4): Likewise.
17140 (cortex_a8_neon_int_5): Likewise.
17141 (cortex_a8_neon_vqneg_vqabs): Likewise.
17142 (cortex_a8_neon_vmov): Likewise.
17143 (cortex_a8_neon_vaba): Likewise.
17144 (cortex_a8_neon_vaba_qqq): Likewise.
17145 (cortex_a8_neon_vsma): Likewise.
17146 (cortex_a8_neon_mul_ddd_8_16_qdd_16_8_long_32_16_long): Likewise.
17147 (cortex_a8_neon_mul_qqq_8_16_32_ddd_32): Likewise.
17148 (cortex_a8_neon_mul_qdd_64_32_long_qqd_16_ddd_32_scalar_64_32_\
17149 long_scalar): Likewise.
17150 (cortex_a8_neon_mla_ddd_8_16_qdd_16_8_long_32_16_long): Likewise.
17151 (cortex_a8_neon_mla_qqq_8_16): Likewise.
17152 (cortex_a8_neon_mla_ddd_32_qqd_16_ddd_32_scalar_qdd_64_32_\
17153 long_scalar_qdd_64_32_long): Likewise.
17154 (cortex_a8_neon_mla_qqq_32_qqd_32_scalar): Likewise.
17155 (cortex_a8_neon_mul_ddd_16_scalar_32_16_long_scalar): Likewise.
17156 (cortex_a8_neon_mul_qqd_32_scalar): Likewise.
17157 (cortex_a8_neon_mla_ddd_16_scalar_qdd_32_16_long_scalar): Likewise.
17158 (cortex_a8_neon_shift_1): Likewise.
17159 (cortex_a8_neon_shift_2): Likewise.
17160 (cortex_a8_neon_shift_3): Likewise.
17161 (cortex_a8_neon_vshl_ddd): Likewise.
17162 (cortex_a8_neon_vqshl_vrshl_vqrshl_qqq): Likewise.
17163 (cortex_a8_neon_vsra_vrsra): Likewise.
17164 (cortex_a8_neon_fp_vadd_ddd_vabs_dd): Likewise.
17165 (cortex_a8_neon_fp_vadd_qqq_vabs_qq): Likewise.
17166 (cortex_a8_neon_fp_vsum): Likewise.
17167 (cortex_a8_neon_fp_vmul_ddd): Likewise.
17168 (cortex_a8_neon_fp_vmul_qqd): Likewise.
17169 (cortex_a8_neon_fp_vmla_ddd): Likewise.
17170 (cortex_a8_neon_fp_vmla_qqq): Likewise.
17171 (cortex_a8_neon_fp_vmla_ddd_scalar): Likewise.
17172 (cortex_a8_neon_fp_vmla_qqq_scalar): Likewise.
17173 (cortex_a8_neon_fp_vrecps_vrsqrts_ddd): Likewise.
17174 (cortex_a8_neon_fp_vrecps_vrsqrts_qqq): Likewise.
17175 (cortex_a8_neon_bp_simple): Likewise.
17176 (cortex_a8_neon_bp_2cycle): Likewise.
17177 (cortex_a8_neon_bp_3cycle): Likewise.
17178 (cortex_a8_neon_ldr): Likewise.
17179 (cortex_a8_neon_str): Likewise.
17180 (cortex_a8_neon_vld1_1_2_regs): Likewise.
17181 (cortex_a8_neon_vld1_3_4_regs): Likewise.
17182 (cortex_a8_neon_vld2_2_regs_vld1_vld2_all_lanes): Likewise.
17183 (cortex_a8_neon_vld2_4_regs): Likewise.
17184 (cortex_a8_neon_vld3_vld4): Likewise.
17185 (cortex_a8_neon_vst1_1_2_regs_vst2_2_regs): Likewise.
17186 (cortex_a8_neon_vst1_3_4_regs): Likewise.
17187 (cortex_a8_neon_vst2_4_regs_vst3_vst4): Likewise.
17188 (cortex_a8_neon_vst3_vst4): Likewise.
17189 (cortex_a8_neon_vld1_vld2_lane): Likewise.
17190 (cortex_a8_neon_vld3_vld4_lane): Likewise.
17191 (cortex_a8_neon_vst1_vst2_lane): Likewise.
17192 (cortex_a8_neon_vst3_vst4_lane): Likewise.
17193 (cortex_a8_neon_vld3_vld4_all_lanes): Likewise.
17194 (cortex_a8_neon_mcr): Likewise.
17195 (cortex_a8_neon_mcr_2_mcrr): Likewise.
17196 * config/arm/cortex-a8.md (cortex_a8_alu): Update for attribute change.
17197 * config/arm/cortex-a9-neon.md (ca9_neon_mrc): Update for attribute
17199 (ca9_neon_mrrc): Likewise.
17200 (cortex_a9_neon_int_1): Likewise.
17201 (cortex_a9_neon_int_2): Likewise.
17202 (cortex_a9_neon_int_3): Likewise.
17203 (cortex_a9_neon_int_4): Likewise.
17204 (cortex_a9_neon_int_5): Likewise.
17205 (cortex_a9_neon_vqneg_vqabs): Likewise.
17206 (cortex_a9_neon_vmov): Likewise.
17207 (cortex_a9_neon_vaba): Likewise.
17208 (cortex_a9_neon_vaba_qqq): Likewise.
17209 (cortex_a9_neon_vsma): Likewise.
17210 (cortex_a9_neon_mul_ddd_8_16_qdd_16_8_long_32_16_long): Likewise.
17211 (cortex_a9_neon_mul_qqq_8_16_32_ddd_32): Likewise.
17212 (cortex_a9_neon_mul_qdd_64_32_long_qqd_16_ddd_32_scalar_64_32_\
17213 long_scalar): Likewise.
17214 (cortex_a9_neon_mla_ddd_8_16_qdd_16_8_long_32_16_long): Likewise.
17215 (cortex_a9_neon_mla_qqq_8_16): Likewise.
17216 (cortex_a9_neon_mla_ddd_32_qqd_16_ddd_32_scalar_qdd_64_32_\
17217 long_scalar_qdd_64_32_long): Likewise.
17218 (cortex_a9_neon_mla_qqq_32_qqd_32_scalar): Likewise.
17219 (cortex_a9_neon_mul_ddd_16_scalar_32_16_long_scalar): Likewise.
17220 (cortex_a9_neon_mul_qqd_32_scalar): Likewise.
17221 (cortex_a9_neon_mla_ddd_16_scalar_qdd_32_16_long_scalar): Likewise.
17222 (cortex_a9_neon_shift_1): Likewise.
17223 (cortex_a9_neon_shift_2): Likewise.
17224 (cortex_a9_neon_shift_3): Likewise.
17225 (cortex_a9_neon_vshl_ddd): Likewise.
17226 (cortex_a9_neon_vqshl_vrshl_vqrshl_qqq): Likewise.
17227 (cortex_a9_neon_vsra_vrsra): Likewise.
17228 (cortex_a9_neon_fp_vadd_ddd_vabs_dd): Likewise.
17229 (cortex_a9_neon_fp_vadd_qqq_vabs_qq): Likewise.
17230 (cortex_a9_neon_fp_vsum): Likewise.
17231 (cortex_a9_neon_fp_vmul_ddd): Likewise.
17232 (cortex_a9_neon_fp_vmul_qqd): Likewise.
17233 (cortex_a9_neon_fp_vmla_ddd): Likewise.
17234 (cortex_a9_neon_fp_vmla_qqq): Likewise.
17235 (cortex_a9_neon_fp_vmla_ddd_scalar): Likewise.
17236 (cortex_a9_neon_fp_vmla_qqq_scalar): Likewise.
17237 (cortex_a9_neon_fp_vrecps_vrsqrts_ddd): Likewise.
17238 (cortex_a9_neon_fp_vrecps_vrsqrts_qqq): Likewise.
17239 (cortex_a9_neon_bp_simple): Likewise.
17240 (cortex_a9_neon_bp_2cycle): Likewise.
17241 (cortex_a9_neon_bp_3cycle): Likewise.
17242 (cortex_a9_neon_ldr): Likewise.
17243 (cortex_a9_neon_str): Likewise.
17244 (cortex_a9_neon_vld1_1_2_regs): Likewise.
17245 (cortex_a9_neon_vld1_3_4_regs): Likewise.
17246 (cortex_a9_neon_vld2_2_regs_vld1_vld2_all_lanes): Likewise.
17247 (cortex_a9_neon_vld2_4_regs): Likewise.
17248 (cortex_a9_neon_vld3_vld4): Likewise.
17249 (cortex_a9_neon_vst1_1_2_regs_vst2_2_regs): Likewise.
17250 (cortex_a9_neon_vst1_3_4_regs): Likewise.
17251 (cortex_a9_neon_vst2_4_regs_vst3_vst4): Likewise.
17252 (cortex_a9_neon_vst3_vst4): Likewise.
17253 (cortex_a9_neon_vld1_vld2_lane): Likewise.
17254 (cortex_a9_neon_vld3_vld4_lane): Likewise.
17255 (cortex_a9_neon_vst1_vst2_lane): Likewise.
17256 (cortex_a9_neon_vst3_vst4_lane): Likewise.
17257 (cortex_a9_neon_vld3_vld4_all_lanes): Likewise.
17258 (cortex_a9_neon_mcr): Likewise.
17259 (cortex_a9_neon_mcr_2_mcrr): Likewise.
17260 * config/arm/cortex-a9.md (cortex_a9_dp): Update for attribute change.
17261 (cortex_a9_fps): Likewise.
17262 * config/arm/cortex-m4-fpu.md (cortex_m4_vmov_2): Update for attribute
17264 (cortex_m4_fmuls): Likewise.
17265 * config/arm/cortex-r4f.md (cortex_r4_mcr): Update for attribute
17267 (cortex_r4_mrc): Likewise.
17268 * config/arm/iterators.md: Update comment referring to neon_type.
17269 * config/arm/iwmmxt.md (iwmmxt_arm_movdi): Update for attribute change.
17270 (iwmmxt_movsi_insn): Likewise.
17271 * config/arm/marvell-pj4.md (pj4_vfp_to_core): Update for
17273 (pj4_core_to_vfp): Likewise.
17274 * config/arm/neon-schedgen.ml (emit_insn_reservations): Update for
17276 * config/arm/vfp11.md (vfp_fload): Update for attribute change.
17277 (vfp_fstore): Likewise.
17278 * doc/md.texi: Change references to neon_type to refer to type.
17280 2013-09-04 Dodji Seketeli <dodji@redhat.com>
17282 * tree.h (DECL_BUILT_IN): Fix typo in comment.
17284 2013-09-04 David Edelsohn <dje.gcc@gmail.com>
17286 * config/rs6000/rs6000.h (ASM_OUTPUT_DEF_FROM_DECLS): Only emit
17287 lglobl if not weak.
17289 2013-09-04 Easwaran Raman <eraman@google.com>
17291 PR middle-end/57370
17292 * tree-ssa-reassoc.c (get_stmt_uid_with_default): New function,
17293 (build_and_add_sum): Use it.
17294 (appears_later_in_bb): Simplify code.
17296 2013-09-04 Teresa Johnson <tejohnson@google.com>
17298 * dumpfile.c (dump_finish): Don't close stderr/stdout.
17300 2013-09-04 James Greenhalgh <james.greenhalgh@arm.com>
17302 * config/aarch64/arm_neon.h (vaddvq_<su>64): Fix return types.
17304 2013-09-04 Jan Hubicka <jh@suse.cz>
17306 * Makefile.in (ipa-devirt.o): Add dependency on diagnostic.h
17307 * ipa-devirt.c: Include diganostic.h
17308 (odr_type_d): Add types and types_set.
17309 (hash_type_name): Work for types with vtables during LTO.
17310 (odr_hasher::remove): Fix comment; destroy types_set.
17311 (add_type_duplicate): New function,
17312 (get_odr_type): Use it.
17313 (dump_type_inheritance_graph): Dump type duplicates.
17314 * ipa.c (symtab_remove_unreachable_nodes): Build type inheritance
17316 * tree.c (types_same_for_odr): Give exact answers on types with
17319 2013-09-04 Dodji Seketeli <dodji@redhat.com>
17321 * tree.h (DECL_BUILT_IN, DECL_IS_BUILTIN): Add more comments
17322 explaining their differences.
17324 2013-09-04 Sandeep Kumar Singh<Sandeep.Singh2@kpitcummins.com>
17326 * config/rx/rx.h: Add option -mcpu for target variants RX100 and RX200.
17328 2013-09-03 Jeff Law <law@redhat.com>
17330 * tree-ssa-threadedge.c (thread_across_edge): Record entire path
17331 when not threading through a joiner block. Pass joiner/no joiner
17332 state to register_jump_thread.
17333 * tree-ssa-threadupdate.c (register_jump_thread): Get joiner/no joiner
17334 state from argument rather than implying on path length.
17335 Dump the entire jump thread path into debugging dump.
17336 * tree-flow.h (register_jump_thread): Update prototype.
17338 2013-08-29 Xinliang David Li <davidxl@google.com>
17340 * tree-vect-data-refs.c (vect_compute_data_ref_alignment):
17341 Remove a trivial gcc_assert.
17343 2013-08-29 Xinliang David Li <davidxl@google.com>
17345 * tree-vect-slp.c (destroy_bb_vec_info): Data ref cleanup.
17346 * tree-vect-loop.c (destroy_bb_vec_info): Ditto.
17347 * tree-vect-data-refs.c (vect_compute_data_ref_alignment):
17348 Delay base decl alignment adjustment.
17349 * tree-vectorizer.c (vect_destroy_datarefs): New function.
17350 * tree-vectorizer.h: New data structure.
17351 (set_dr_misalignment): New function.
17352 (dr_misalignment): Ditto.
17353 * tree-vect-stmts.c (vectorizable_store): Ensure alignment.
17354 (vectorizable_load): Ditto.
17355 (ensure_base_align): New function.
17356 (vectorize_loops): Add dbg_cnt support.
17357 (execute_vect_slp): Ditto.
17358 * dbgcnt.def: New debug counter.
17359 * Makefile: New dependency.
17361 2013-09-03 Meador Inge <meadori@codesourcery.com>
17365 2013-08-30 Meador Inge <meadori@codesourcery.com>
17367 * tree-vrp.c (check_array_ref): Bail out on zero-length arrays.
17369 2013-09-03 David Edelsohn <dje.gcc@gmail.com>
17371 * config/rs6000/rs6000.h (ASM_OUTPUT_DEF_FROM_DECLS): Emit lglobl for
17372 function descriptor.
17374 2013-09-03 Richard Biener <rguenther@suse.de>
17376 * tree-affine.c (add_elt_to_tree): Fix association issue,
17377 avoid useless converts and make sure to always return a
17378 properly typed result.
17380 2013-09-03 Richard Biener <rguenther@suse.de>
17382 PR middle-end/57656
17383 * fold-const.c (negate_expr_p): Fix division case.
17384 (negate_expr): Likewise.
17386 2013-09-03 Richard Biener <rguenther@suse.de>
17389 * tree-streamer-out.c: Include tm.h.
17390 * Makefile.in (tree-streamer-out.o): Depend on $(TM_H).
17392 2013-09-03 Jan Hubicka <jh@suse.cz>
17394 * tree-profile.c (tree_profiling): Cleanup CFG when done.
17396 2013-09-03 Alan Modra <amodra@gmail.com>
17398 * config.gcc (powerpc*-*-linux*): Add support for little-endian
17399 multilibs to big-endian target and vice versa.
17400 * config/rs6000/t-linux64: Use := assignment on all vars.
17401 (MULTILIB_EXTRA_OPTS): Remove fPIC.
17402 (MULTILIB_OSDIRNAMES): Specify using mapping from multilib_options.
17403 * config/rs6000/t-linux64le: New file.
17404 * config/rs6000/t-linux64bele: New file.
17405 * config/rs6000/t-linux64lebe: New file.
17407 2013-09-02 Jan Hubicka <jh@suse.cz>
17409 * ipa-inline-transform.c (inline_transform): Do not
17410 optimize_inline_calls when not optimizing.
17412 2013-09-02 Jan Hubicka <jh@suse.cz>
17414 * lto-symtab.c (lto_symtab_merge_symbols): Add comments; merge
17415 duplicated nodes for assembler names.
17416 * symtab.c (symtab_unregister_node): Do not attempt to unlink
17417 hard registers from assembler name hash.
17419 2013-09-02 Jan Hubicka <jh@suse.cz>
17421 * ipa-split.c (execute_split_functions): Split externally visible
17422 functions called once.
17424 2013-09-02 Martin Jambor <mjambor@suse.cz>
17427 * ipa-prop.c (ipa_edge_duplication_hook): Always put new rdesc to the
17428 linked list. When finding the correct duplicate, also consider also
17429 the caller in additon to its inlined_to node.
17431 2013-09-02 James Greenhalgh <james.greenhalgh@arm.com>
17433 * config/aarch64/aarch64-simd-builtins.def
17434 (dup_lane_scalar): Remove.
17435 * config/aarch64/aarch64-simd.md
17436 (aarch64_simd_dup): Add 'w->w' alternative.
17437 (aarch64_dup_lane<mode>): Allow for VALL.
17438 (aarch64_dup_lane_scalar<mode>): Remove.
17439 (aarch64_dup_lane_<vswap_width_name><mode>): New.
17440 (aarch64_get_lane_signed<mode>): Add w->w altenative.
17441 (aarch64_get_lane_unsigned<mode>): Likewise.
17442 (aarch64_get_lane<mode>): Likewise.
17443 * config/aarch64/aarch64.c (aarch64_evpc_dup): New.
17444 (aarch64_expand_vec_perm_const_1): Use aarch64_evpc_dup.
17445 * config/aarch64/iterators.md (VSWAP_WIDTH): New.
17446 (VCON): Change container of V2SF.
17447 (vswap_width_name): Likewise.
17448 * config/aarch64/arm_neon.h
17449 (__aarch64_vdup_lane_any): New.
17450 (__aarch64_vdup<q>_lane<q>_<fpsu><8,16,32,64>): Likewise.
17451 (vdup<q>_n_<psuf><8,16,32,64>): Convert to C implementation.
17452 (vdup<q>_lane<q>_<fpsu><8,16,32,64>): Likewise.
17454 2013-09-02 Eric Botcazou <ebotcazou@adacore.com>
17456 PR middle-end/56382
17457 * expr.c (emit_move_complex): Do not move complex FP values as parts if
17458 the source or the destination is a single hard register.
17460 2013-09-02 Richard Biener <rguenther@suse.de>
17462 PR middle-end/57511
17463 * tree-scalar-evolution.c (instantiate_scev_name): Allow
17466 2013-09-02 Richard Biener <rguenther@suse.de>
17468 * tree-affine.c (add_elt_to_tree): Avoid converting all pointer
17469 arithmetic to sizetype.
17471 2013-09-02 Bin Cheng <bin.cheng@arm.com>
17473 * tree-ssa-loop-ivopts.c (set_autoinc_for_original_candidates):
17474 Find auto-increment use both before and after candidate.
17476 2013-09-02 Marek Polacek <polacek@redhat.com>
17478 * Makefile.in (ubsan.o): Add $(TM_P_H) dependency.
17480 2013-09-01 Jan Hubicka <jh@suse.cz>
17482 * Makefile.in: Add ipa-profile.o
17483 (ipa.o, ipa-devrit.o, ipa-inline-analysis.o): Adjust dependencies.
17484 * cgraph.c (struct cgraph_propagate_frequency_data,
17485 cgraph_propagate_frequency_1, cgraph_propagate_frequency): Move to
17486 ipa-profile.c; replace cgraph_ by ipa_ prefix.
17487 * cgraph.h (cgraph_propagate_frequency): Remove.
17488 * ipa-inline-analysis.c: Include ipa-utils.h;
17489 drop duplicated cfgloop.h.
17490 (inline_update_callee_summaries): Update.
17491 * ipa-profile.c: New file.
17492 * ipa-utils.h (ipa_propagate_frequency): Declare.
17493 * ipa.c: Do not include pointer-set.h, hash-table.h, lto-streamer.h,
17494 data-streamer.h, value-prof.h.
17495 (symtab_remove_unreachable_nodes): Update profile.
17496 (struct histogram_entry, histogram, histogram_pool, histogram_hash,
17497 account_time_size, cmp_counts, dump_histogram,
17498 ipa_profile_generate_summary, ipa_profile_write_summary,
17499 ipa_profile_read_summary, ipa_profile, gate_ipa_profile,
17500 pass_data_ipa_profile, pass_ipa_profile, make_pass_ipa_profile):
17501 Move to ipa-profile.c.
17503 2013-09-01 John David Anglin <danglin@gcc.gnu.org>
17505 * config/pa/pa.md: Allow "const 0" operand 1 in "scc" insns.
17507 2013-09-01 Jan Hubicka <jh@suse.cz>
17509 * common.opt (fdevirtualize-speculatively): New function.
17510 * invoke.texi (fdevirtualize-speculatively): Document.
17511 * ipa-devirt.c: Include ipa-inline.h
17512 (likely_target_p): New function.
17513 (ipa_devirt): New function.
17514 (gate_ipa_devirt): New function.
17515 (pass_data_ipa_devirt): New static var.
17516 (pass_ipa_devirt): Likewise.
17517 (make_pass_ipa_devirt): New function.
17518 * opts.c (default_options): Add OPT_fdevirtualize_speculatively.
17519 (common_handle_option): Disable devirtualization when
17520 value range profiling is available.
17521 * passes.def (pass_ipa_devirt): Add.
17522 * timever.def (TV_IPA_DEVIRT): New timevar.
17523 * tree-pass.h (make_pass_ipa_devirt):
17525 2013-09-01 Iain Sandoe <iain@codesourcery.com>
17527 * config/darwin.h (LINK_COMMAND_SPEC_A): Revise sanitizer specs to
17528 include sanitize(undefined).
17530 2013-08-31 Diego Novillo <dnovillo@google.com>
17532 * Makefile.in (TREE_CORE_H): Define.
17534 (GTFILES): Add tree-core.h.
17535 * builtins.c (built_in_class_names): Use BUILT_IN_LAST to
17537 * tree-core.h: New file.
17538 Move all data structures, enum, typedefs, global
17539 declarations and constants from ...
17540 * tree.h: ... here.
17542 2013-08-31 Jan Hubicka <jh@suse.cz>
17544 * bulitins.c (expand_builtin): Do not early exit for gcov
17545 instrumented functions.
17547 2013-08-31 Marek Polacek <polacek@redhat.com>
17549 * ubsan.c: Include tm_p.h.
17551 2013-08-31 Jan Hubicka <jh@suse.cz>
17553 * gimple-streamer-in.c (input_gimple_stmt): Silence parameter unused
17556 * cgraph.c (cgraph_get_body): Update call of lto_input_function_body.
17557 * gimple-streamer-in.c (input_gimple_stmt): Move sanity check to ...
17558 * tree-cfg.c (verify_gimple_label): ... here.
17559 * ipa-utils.c: Include lto-streamer.h, ipa-inline.h
17560 (ipa_merge_profiles): New function.
17561 * lto-streamer-in.c (lto_read_body): Take node instead of fn_decl.
17562 (lto_input_function_body): Likewise.
17563 * ipa-utils.h (ipa_merge_profiles): Declare.
17564 * lto-streamer.h (lto_input_function_body): Update prototype.
17565 (emit_label_in_global_context_p): Remove.
17566 * lto-symtab.c: Include ipa-utils.h
17567 (lto_cgraph_replace_node): Use ipa_merge_profiles.
17569 2013-08-31 Jan Hubicka <jh@suse.cz>
17571 * cgraph.c (cgraph_speculative_call_info): Fix ref lookup
17573 2013-08-31 Jan Hubicka <jh@suse.cz>
17575 * basic-block.h (apply_scale): Make scale parmeter gcov_type.
17577 2013-08-31 Uros Bizjak <ubizjak@gmail.com>
17579 * config/alpha/alpha.c (alpha_emit_conditional_move): Update
17580 "cmp" RTX before signed_comparison_operator check to account
17581 for "code" changes.
17583 2013-08-30 Jan Hubicka <jh@suse.cz>
17585 * ipa-prop.c (ipa_set_jf_known_type): Check that we add only records.
17586 (detect_type_change_1): Rename to ...
17587 (detect_type_change): ... this one; early return on non-polymorphic
17589 (detect_type_change_ssa): Add comp_type parameter; update
17590 use of detect_type_change.
17591 (compute_complex_assign_jump_func): Add param_type parameter;
17592 update use of detect_type_change_ssa.
17593 (compute_complex_ancestor_jump_func): Likewise.
17594 (ipa_get_callee_param_type): New function.
17595 (ipa_compute_jump_functions_for_edge): Compute parameter type;
17596 update calls to the jump function computation functions.
17598 2013-08-30 Teresa Johnson <tejohnson@google.com>
17599 Steven Bosscher <steven@gcc.gnu.org>
17601 * cfgrtl.c (fixup_new_cold_bb): New routine.
17602 (commit_edge_insertions): Invoke fixup_partitions.
17603 (find_partition_fixes): New routine.
17604 (fixup_partitions): Ditto.
17605 (verify_hot_cold_block_grouping): Update comments.
17606 (rtl_verify_edges): Invoke find_partition_fixes.
17607 (rtl_verify_bb_pointers): Update comments.
17608 (rtl_verify_bb_layout): Ditto.
17609 * basic-block.h (probably_never_executed_edge_p): Declare.
17610 (fixup_partitions): Ditto.
17611 * cfgcleanup.c (try_optimize_cfg): Invoke fixup_partitions.
17612 * bb-reorder.c (sanitize_hot_paths): New function.
17613 (find_rarely_executed_basic_blocks_and_crossing_edges): Invoke
17614 sanitize_hot_paths.
17615 * predict.c (probably_never_executed_edge_p): New routine.
17616 * cfg.c (check_bb_profile): Add partition insanity warnings.
17618 2013-08-30 Meador Inge <meadori@codesourcery.com>
17620 * tree-vrp.c (check_array_ref): Bail out on zero-length arrays.
17622 2013-08-30 Marek Polacek <polacek@redhat.com>
17624 * Makefile.in (ubsan.o): Add.
17625 (c-family/c-ubsan.o): Add.
17626 (builtins.o): Add ubsan.h dependency.
17627 * ubsan.h: New file.
17628 * ubsan.c: New file.
17629 * common.opt: Add -fsanitize=undefined option.
17630 (flag_sanitize): Add variable.
17631 (fsanitize=): Add option. Add Driver.
17632 (fsanitize=thread): Remove option.
17633 (fsanitize=address): Likewise.
17634 (static-libubsan): New option.
17635 * doc/invoke.texi: Document the new flag and -static-libubsan.
17636 * sanitizer.def (DEF_SANITIZER_BUILTIN): Define.
17637 (BUILT_IN_UBSAN_HANDLE_BUILTIN_UNREACHABLE): Define.
17638 * builtin-attrs.def (ATTR_COLD): Define.
17639 (ATTR_COLD_NOTHROW_LEAF_LIST): Define.
17640 * builtins.def (BUILT_IN_UBSAN_HANDLE_DIVREM_OVERFLOW,
17641 BUILT_IN_UBSAN_HANDLE_SHIFT_OUT_OF_BOUNDS): Define.
17642 * flag-types.h (sanitize_code): New enum.
17643 * opts.c (common_handle_option): Parse command line arguments
17644 of -fsanitize=. Add -fsanitize=unreachable option.
17645 * varasm.c (get_variable_section): Adjust.
17646 (assemble_noswitch_variable): Likewise.
17647 (assemble_variable): Likewise.
17648 (output_constant_def_contents): Likewise.
17649 (categorize_decl_for_section): Likewise.
17650 (place_block_symbol): Likewise.
17651 (output_object_block): Likewise.
17652 * builtins.def: Likewise.
17653 * toplev.c (compile_file): Likewise.
17654 (process_options): Likewise.
17655 * cppbuiltin.c: Likewise.
17656 * tsan.c (tsan_pass): Likewise.
17657 (tsan_gate): Likewise.
17658 (tsan_gate_O0): Likewise.
17659 * cfgexpand.c (partition_stack_vars): Likewise.
17660 (expand_stack_vars): Likewise.
17661 (defer_stack_allocation): Likewise.
17662 (expand_used_vars): Likewise.
17663 * cfgcleanup.c (old_insns_match_p): Likewise.
17664 * asan.c (asan_finish_file): Likewise.
17665 (asan_instrument): Likewise.
17666 (gate_asan): Likewise.
17667 (initialize_sanitizer_builtins): Build BT_FN_VOID_PTR_PTR_PTR.
17668 (ATTR_COLD_NOTHROW_LEAF_LIST): Define.
17669 (asan_global_struct): Use pointer_sized_int_node instead
17670 calling build_nonstandard_integer_type.
17671 (initialize_sanitizer_builtins): Likewise.
17672 (asan_finish_file): Likewise.
17673 * gcc.c: Document %{%:function(args):X}.
17674 (static_spec_functions): Add sanitize.
17675 (handle_spec_function): Add retval_nonnull argument and if non-NULL,
17676 store funcval != NULL there.
17677 (do_spec_1): Adjust handle_spec_function caller.
17678 (handle_braces): Allow %:function(args) as condition.
17679 (sanitize_spec_function): New function.
17680 (ADD_STATIC_LIBUBSAN_LIBS): Define.
17681 (LIBUBSAN_SPEC): Likewise.
17682 (LIBUBSAN_EARLY_SPEC): Likewise.
17683 (SANITIZER_SPEC): Handle libubsan.
17684 (SANITIZER_EARLY_SPEC): Likewise.
17685 * config/darwin.h (LINK_COMMAND_SPEC_A): Use %:sanitize(address)
17686 instead of fsanitize=address.
17687 * config/arm/linux-eabi.h (ASAN_CC1_SPEC): Use %:sanitize(address)
17688 instead of fsanitize=address*.
17689 * builtins.c: Include ubsan.h.
17690 (fold_builtin_0): Instrument __builtin_unreachable.
17691 * config/rs6000/rs6000.h (FRAME_GROWS_DOWNWARD): Use flag_sanitize
17692 instead of flag_asan.
17693 * tree.h (enum tree_index): Add TI_POINTER_SIZED_TYPE.
17694 (pointer_sized_int_node): Define.
17695 * tree.c (build_common_tree_nodes): Initialize pointer_sized_int_node.
17697 2013-08-30 Mike Stump <mikestump@comcast.net>
17699 * doc/install.texi (Prerequisites): Note regression in Tcl 8.6
17702 2013-08-29 Jan Hubicka <jh@suse.cz>
17704 * cgraph.c (cgraph_function_body_availability): Handle weakref
17706 * passes.def: Remove pass_fixup_cfg.
17707 * ipa-inline.c (ipa_inline): When not optimizing, do not inline;
17708 track when we need to remove functions.
17709 (gate_ipa_inline): Execute inlining always; add comment why.
17710 (pass_data_ipa_inline): Remove TODO_remove_functions.
17711 * ipa-inline-analysis.c (inline_generate_summary): When not optimizing
17712 do not produce summaries.
17713 * symtab.c (change_decl_assembler_name): Handle renaming of weakrefs.
17714 (symtab_nonoverwritable_alias): Assert we are not called on weakref.
17715 * varpool.c (cgraph_variable_initializer_availability): Fix weakrefs,
17716 constant pool and vtable.
17718 2013-08-30 Tejas Belagod <tejas.belagod@arm.com>
17720 * config/aarch64/arm_neon.h (__AARCH64_UINT64_C, __AARCH64_INT64_C):
17721 New arm_neon.h's internal macros to specify 64-bit constants.
17722 Avoid using stdint.h's macros.
17724 2013-08-30 Joern Rennecke <joern.rennecke@embecosm.com>
17726 * recog.c (verify_changes): Verify that changes[i].old is non-zero
17727 before applying REG_P.
17729 2013-08-30 Jakub Jelinek <jakub@redhat.com>
17731 PR tree-optimization/58277
17732 * tree-ssa-strlen.c (strlen_enter_block): If do_invalidate gave up
17733 after seeing too many stmts with vdef in between dombb and current
17734 bb, invalidate everything.
17736 2013-08-30 Richard Biener <rguenther@suse.de>
17738 * fold-const.c (fold_single_bit_test): Fix overflow test.
17740 2013-08-30 Eric Botcazou <ebotcazou@adacore.com>
17742 * function.c (assign_parm_setup_reg): For a parameter passed by pointer
17743 and which can live in a register, always retrieve the value on entry.
17744 * var-tracking.c (add_stores): Treat the copy on entry for a parameter
17745 passed by invisible reference specially.
17746 (emit_notes_in_bb) <MO_VAL_USE>: Emit notes before the instruction.
17747 (vt_add_function_parameter): Correctly deal with a parameter passed by
17748 invisible reference.
17750 2013-08-30 Jan Hubicka <jh@suse.cz>
17752 * tree.c (set_call_expr_flags): Fix handling of TM_PURE.
17754 2013-08-30 Richard Biener <rguenther@suse.de>
17756 PR tree-optimization/58228
17757 * tree-vect-data-refs.c (vect_analyze_data_ref_access): Do not
17758 allow invariant loads in nested loop vectorization.
17760 2013-08-30 Richard Biener <rguenther@suse.de>
17762 PR tree-optimization/58223
17763 * tree-loop-distribution.c (has_anti_dependence): Rename to ...
17764 (has_anti_or_output_dependence): ... this and adjust to also
17765 look for output dependences.
17766 (mark_nodes_having_upstream_mem_writes): Adjust.
17767 (rdg_flag_uses): Likewise.
17769 2013-08-30 Richard Biener <rguenther@suse.de>
17771 PR tree-optimization/58010
17772 * tree-vect-loop.c (vect_create_epilog_for_reduction): Remove
17773 assert that we have a loop-closed PHI.
17775 2013-08-29 Jan Hubicka <jh@suse.cz>
17777 * lto-symtab.c (lto_cgraph_replace_node): Free decl_in_state.
17778 * cgraph.c (cgraph_release_function_body): Free decl_in_state.
17779 * lto-section-in.c (lto_free_function_in_decl_state): New function.
17780 (lto_free_function_in_decl_state_for_node): New function.
17782 2013-08-29 Xinliang David Li <davidxl@google.com>
17784 * loop-unroll.c (report_unroll_peel): Minor message change.
17785 * tree-vect-loop-manip.c (vect_do_peeling_for_alignment):
17786 Emit alignment peeling message with default -fopt-info.
17787 (vect_loop_versioning): Emit loop version info message.
17788 * tree-vectorizer.c (vectorize_loops): Minor message change.
17789 (execute_vect_slp): Ditto.
17791 2013-08-29 Eric Botcazou <ebotcazou@adacore.com>
17793 * cgraphclones.c (cgraph_create_virtual_clone): Compute the DECL_NAME
17794 of the clone from the DECL_NAME of the original function.
17796 2013-08-29 Oleg Endo <olegendo@gcc.gnu.org>
17798 * passes.c (register_pass): Add overload.
17799 * tree-pass.h (register_pass): Forward declare it. Add comment.
17801 2013-08-29 Jan Hubicka <jh@suse.cz>
17803 * lto-streamer-out.c (hash_tree): Stream DECL_FINAL_P,
17804 DECL_CXX_CONSTRUCTOR_P, DECL_CXX_DESTRUCTOR_P and TYPE_FINAL_P.
17805 * lto-streamer-in.c (unpack_ts_decl_with_vis_value_fields): Stream
17806 DECL_FINAL_P, DECL_CXX_CONSTRUCTOR_P and DECL_CXX_DESTRUCTOR_P.
17807 (unpack_ts_type_common_value_fields): Stream TYPE_FINAL_P.
17808 * tree-streamer-out.c (pack_ts_decl_with_vis_value_fields):
17809 Add DECL_FINAL_P, DECL_CXX_CONSTRUCTOR_P and DECL_CXX_DESTRUCTOR_P.
17810 (pack_ts_type_common_value_fields): Add TYPE_FINAL_P.
17812 2013-08-29 Teresa Johnson <tejohnson@google.com>
17814 * dumpfile.c (dump_loc): Output column number.
17815 * dumpfile.h (OPTGROUP_OTHER): Add and enable under OPTGROUP_ALL.
17816 * doc/invoke.texi: Document optall -fopt-info flag.
17817 * profile.c (read_profile_edge_counts): Use new dump framework.
17818 (compute_branch_probabilities): Ditto.
17819 * passes.c (pass_manager::register_one_dump_file): Use OPTGROUP_OTHER
17820 when pass not in any opt group.
17821 * pass_manager.h (pass_manager::get_pass_profile): New method.
17822 * value-prof.c (check_counter): Use new dump framework.
17823 (check_ic_target): Ditto.
17824 * coverage.c (get_coverage_counts): Ditto.
17825 (coverage_init): Setup new dump framework.
17827 2013-08-29 Richard Biener <rguenther@suse.de>
17829 PR tree-optimization/58246
17830 * tree-ssa-dce.c (mark_aliased_reaching_defs_necessary_1): Properly
17831 handle the dominance check inside a basic-block.
17833 2013-08-29 Richard Biener <rguenther@suse.de>
17835 PR middle-end/57287
17836 * tree-ssa-copy.c (may_propagate_copy): Allow propagating
17837 of default defs that appear in abnormal PHI nodes.
17839 2013-08-29 Richard Biener <rguenther@suse.de>
17841 PR tree-optimization/57685
17842 * tree-vrp.c (register_edge_assert_for_1): Recurse only for
17843 single-use operands to avoid exponential complexity.
17845 2013-08-28 Dehao Chen <dehao@google.com>
17847 * ipa-inline.c (edge_badness): Fix integer underflow.
17849 2013-08-28 Uros Bizjak <ubizjak@gmail.com>
17851 * gtm-builtins.def (_ITM_free): Declare leaf.
17853 2013-08-28 Jakub Jelinek <jakub@redhat.com>
17856 * config/i386/i386.md (*tls_global_dynamic_64_largepic): New insn.
17857 (*tls_local_dynamic_base_64_largepic): Likewise.
17858 (tls_global_dynamic_64_<mode>, tls_local_dynamic_base_64_<mode>):
17859 Remove predicate from call operand.
17860 * config/i386/i386.c (ix86_tls_get_addr): For -mcmodel=large -fpic
17861 return sum of pic_offset_table_rtx and UNSPEC_PLTOFF of the symbol.
17863 2013-08-28 Jeff Law <law@redhat.com>
17865 * tree-ssa-threadedge.c (thread_around_empty_block): Remove
17866 checks for the number of predecessors and successors allowed.
17867 * tree-ssa-threadupdate.c (mark_threaded_blocks): Ignore requests
17868 which require copying a joiner block if there is a request which
17869 is a subpath that requires no joiner block copying.
17871 2013-08-28 Jan Hubicka <jh@suse.cz>
17873 * lto-streamer-out.c (DFS_write_tree_body): Drop
17874 BINFO_INHERITANCE_CHAIN, BINFO_SUBVTT_INDEX and BINFO_VPTR_INDEX.
17875 (hash_tree): Do not hash DECL_DEFER_OUTPUT, BINFO_INHERITANCE_CHAIN,
17876 BINFO_SUBVTT_INDEX, BINFO_VPTR_INDEX, DECL_IN_TEXT_SECTION.
17877 * tree-streamer-in.c (unpack_ts_decl_common_value_fields):
17878 Do not read DECL_ERROR_ISSUED.
17879 (unpack_ts_decl_with_vis_value_fields): Do not read
17881 (lto_input_ts_binfo_tree_pointers): Do not read
17882 BINFO_INHERITANCE_CHAIN, BINFO_SUBVTT_INDEX, BINFO_VPTR_INDEX
17883 * tree-streamer-out.c (pack_ts_decl_common_value_fields): Do not
17884 write DECL_ERROR_ISSUED..
17885 (pack_ts_decl_with_vis_value_fields): Do not write
17887 (write_ts_binfo_tree_pointers): Do not read BINFO_INHERITANCE_CHAIN,
17888 BINFO_SUBVTT_INDEX, BINFO_VPTR_INDEX.
17889 * print-tree.c (print_node): Do not print DECL_ERROR_ISSUED.
17890 * tree.h (tree_decl_common): Update comment.
17891 (DECL_ERROR_ISSUED): Remove.
17893 2013-08-28 Jakub Jelinek <jakub@redhat.com>
17895 PR middle-end/58257
17896 * omp-low.c (copy_var_decl): Copy over TREE_NO_WARNING flag.
17898 2013-08-28 Jan Hubicka <jh@suse.cz>
17900 * builtins.def (free): Declare leaf.
17902 2013-08-27 David Malcolm <dmalcolm@redhat.com>
17904 * gdbhooks.py: New.
17905 * configure.ac (gdbinit.in): Add import of gcc/gdbhooks.py.
17906 * configure: Regenerate.
17908 2013-08-27 Martin Jambor <mjambor@suse.cz>
17910 * ipa-prop.h (ipa_pass_through_data): New field type_preserved.
17911 (ipa_ancestor_jf_data): Likewise.
17912 (ipa_get_jf_pass_through_agg_preserved): Fix comment typo.
17913 (ipa_get_jf_pass_through_type_preserved): New function.
17914 (ipa_get_jf_ancestor_agg_preserved): Fix comment typo.
17915 (ipa_get_jf_ancestor_type_preserved): New function.
17916 * ipa-cp.c (ipa_get_jf_pass_through_result): Honor type_preserved flag.
17917 (ipa_get_jf_ancestor_result): Likewise.
17918 (propagate_vals_accross_pass_through): Use
17919 ipa_get_jf_pass_through_result to do all the value mappings.
17920 * ipa-prop.c (ipa_print_node_jump_functions_for_edge): Dump the
17921 type_preserved flag.
17922 (ipa_set_jf_cst_copy): New function.
17923 (ipa_set_jf_simple_pass_through): Set the type_preserved flag.
17924 (ipa_set_jf_arith_pass_through): Likewise.
17925 (ipa_set_ancestor_jf): Likewise.
17926 (compute_complex_assign_jump_func): Set type_preserved instead of
17928 (ipa_compute_jump_functions_for_edge): Likewise.
17929 (combine_known_type_and_ancestor_jfs): Honor type_preserved.
17930 (update_jump_functions_after_inlining): Update type_preserved.
17931 Explicitely create jump functions when combining one with pass_through.
17932 (ipa_write_jump_function): Stream the type_preserved flags.
17933 (ipa_read_jump_function): Likewise.
17935 2013-08-27 Jakub Jelinek <jakub@redhat.com>
17936 Aldy Hernandez <aldyh@redhat.com>
17938 * Makefile.in (omp-low.o): Depend on $(TARGET_H).
17939 * cfgloop.h (struct loop): Add safelen, force_vect, simduid.
17940 * function.h (struct function): Add has_force_vect_loops and
17942 * gimple-pretty-print.c (dump_gimple_omp_for): Handle GF_OMP_FOR_KIND*.
17943 * gimple.c (gimple_build_omp_critical): Add KIND argument and
17945 * gimple.def: Update CLAUSES comments.
17946 * gimple.h (enum gf_mask): Add GF_OMP_FOR_KIND_{FOR,SIMD}.
17947 (gimple_build_omp_for): Add argument to prototype.
17948 (gimple_omp_for_kind): New.
17949 (gimple_omp_for_set_kind): New.
17950 * gimplify.c (enum gimplify_omp_var_data): Add GOVD_LINEAR to
17951 GOVD_DATA_SHARE_CLASS.
17952 (enum omp_region_type): Add ORT_SIMD.
17953 (gimple_add_tmp_var): Handle ORT_SIMD.
17954 (gimplify_var_or_parm_decl): Same.
17955 (is_gimple_stmt): Same.
17956 (omp_firstprivatize_variable): Same.
17957 (omp_add_variable): Only use splay_tree_insert if lookup failed.
17958 (omp_notice_variable): Handle ORT_SIMD.
17959 (omp_is_private): Add SIMD argument and handle it as well as ORT_SIMD.
17960 (omp_check_private): Handle ORT_SIMD.
17961 (gimplify_scan_omp_clauses): Handle OMP_CLAUSE_LINEAR and
17962 OMP_CLAUSE_SAFELEN.
17963 (gimplify_adjust_omp_clauses_1): Handle GOVD_LINEAR.
17964 Handle OMP_CLAUSE_LASTPRIVATE.
17965 (gimplify_adjust_omp_clauses): Handle OMP_CLAUSE_LINEAR and
17966 OMP_CLAUSE_SAFELEN.
17967 (gimplify_omp_for): Handle OMP_SIMD and OMP_CLAUSE_LINEAR.
17968 (gimplify_expr): Handle OMP_SIMD.
17969 * internal-fn.c (expand_GOMP_SIMD_LANE): New.
17970 (expand_GOMP_SIMD_VF): New.
17971 (expand_GOMP_SIMD_LAST_LANE): New.
17972 * internal-fn.def (GOMP_SIMD_LANE): New.
17973 (GOMP_SIMD_VF): New.
17974 (GOMP_SIMD_LAST_LANE): New.
17975 * omp-low.c: Include target.h.
17976 (extract_omp_for_data): Handle OMP_SIMD, OMP_CLAUSE_LINEAR,
17977 OMP_CLAUSE_SAFELEN.
17978 (check_omp_nesting_restrictions): Same.
17980 (lower_rec_simd_input_clauses): New.
17981 (lower_rec_input_clauses): Handle OMP_SIMD, GF_OMP_FOR_KIND_SIMD,
17983 (lower_lastprivate_clauses): Handle OMP_CLAUSE_LINEAR,
17984 GF_OMP_FOR_KIND_SIMD, OMP_SIMD.
17985 (expand_omp_build_assign): New.
17986 (expand_omp_for_init_counts): New.
17987 (expand_omp_for_init_vars): New.
17988 (extract_omp_for_update_vars): New.
17989 (expand_omp_for_generic): Use expand_omp_for_{init,update}_vars
17990 and rewrite accordingly.
17991 (expand_omp_simd): New.
17992 (expand_omp_for): Use expand_omp_simd.
17993 (lower_omp_for_lastprivate): Unshare vinit when appropriate.
17994 (lower_omp_for): Do not lower the body.
17995 * tree-data-ref (get_references_in_stmt): Allow IFN_GOMP_SIMD_LANE
17996 in their own loops.
17997 * tree-flow.h (find_omp_clause): Remove prototype.
17998 * tree-if-conv.c (main_tree_if_conversion): Run if doing if conversion,
17999 forcing vectorization of the loop, or if flag_tree_vectorize.
18000 (gate_tree_if_conversion): Similarly.
18001 * tree-inline.c (remap_gimple_stmt): Pass for kind argument to
18002 gimple_build_omp_for.
18003 (copy_cfg_body): set has_force_vect_loops and has_simduid_loops.
18004 * tree-parloops (create_parallel_loop): Pass kind argument to
18005 gimple_build_omp_for.
18006 * tree-pretty-print.c (dump_omp_clause): Add cases for
18007 OMP_CLAUSE_UNIFORM, OMP_CLAUSE_LINEAR, OMP_CLAUSE_SAFELEN,
18008 OMP_CLAUSE__SIMDUID_.
18009 (dump_generic_node): Handle OMP_SIMD.
18010 * tree-ssa-ccp.c (likely_value): Handle IFN_GOMP_SIMD*.
18011 * tree-ssa-loop-ivcanon.c (tree_unroll_loops_completely_1): Do not
18012 unroll OMP_SIMD loops here.
18013 * tree-ssa-loop.c (gate_tree_vectorize): Run if has_force_vect_loops.
18014 * tree-vect-data-refs.c (vect_analyze_data_ref_dependence): Handle
18016 (vect_analyze_data_refs): Handle simd loops.
18017 * tree-vect-loop.c (vectorizable_live_operation): Handle
18019 * tree-vect-stmts.c (vectorizable_call): Handle IFN_GOMP_SIMD_LANE.
18020 (vectorizable_store): Handle STMT_VINFO_SIMD_LANE_ACCESS_P.
18021 (vectorizable_load): Same.
18022 * tree-vectorizer.c: Include hash-table.h and tree-ssa-propagate.h.
18023 (struct simduid_to_vf): New.
18024 (simduid_to_vf::hash): New.
18025 (simduid_to-vf::equal): New.
18026 (struct simd_array_to_simduid): New.
18027 (simd_array_to_simduid::hash): New.
18028 (simd_array_to_simduid::equal): New.
18029 (adjust_simduid_builtins): New.
18030 (struct note_simd_array_uses_struct): New.
18031 (note_simd_array_uses_cb): New.
18032 (note_simd_array_uses): New.
18033 (vectorize_loops): Handle simd hints and adjust simd builtins
18035 * tree-vectorizer.h (struct _stmt_vec_info): Add
18036 simd_lane_access_p field.
18037 (STMT_VINFO_SIMD_LANE_ACCESS_P): New macro.
18038 * tree.c (omp_clause_num_ops): Add entries for OMP_CLAUSE_LINEAR,
18039 OMP_CLAUSE_SAFELEN, OMP_CLAUSE__SIMDUID_, OMP_CLAUSE_UNIFORM.
18040 (omp_clause_code_name): Same.
18041 (walk_tree_1): Handle OMP_CLAUSE_UNIFORM, OMP_CLAUSE_SAFELEN,
18042 OMP_CLAUSE__SIMDUID_, OMP_CLAUSE_LINEAR.
18043 * tree.def (OMP_SIMD): New entry.
18044 * tree.h (enum omp_clause_code): Add entries for OMP_CLAUSE_LINEAR,
18045 OMP_CLAUSE_UNIFORM, OMP_CLAUSE_SAFELEN, OMP_CLAUSE__SIMDUID_.
18046 (OMP_CLAUSE_DECL): Adjust range for new clauses.
18047 (OMP_CLAUSE_LINEAR_NO_COPYIN): New.
18048 (OMP_CLAUSE_LINEAR_NO_COPYOUT): New.
18049 (OMP_CLAUSE_LINEAR_STEP): New.
18050 (OMP_CLAUSE_SAFELEN_EXPR): New.
18051 (OMP_CLAUSE__SIMDUID__DECL): New.
18052 (find_omp_clause): New prototype.
18054 2013-08-27 H.J. Lu <hongjiu.lu@intel.com>
18056 * config/i386/driver-i386.c (host_detect_local_cpu): Update
18057 Haswell processor detection.
18059 2013-08-27 Christian Widmer <shadow@umbrox.de>
18062 * config/i386/driver-i386.c (host_detect_local_cpu): Add detection
18063 of Ivy Bridge and Haswell processors. Assume core-avx2 for unknown
18064 AVX2 capable processors.
18066 2013-08-27 Tejas Belagod <tejas.belagod@arm.com>
18068 * config/aarch64/arm_neon.h: Replace all inline asm implementations
18069 of vget_low_* with implementations in terms of other intrinsics.
18071 2013-08-27 Marc Glisse <marc.glisse@inria.fr>
18073 PR middle-end/57219
18074 * doc/extend.texi (__builtin_isinf_sign): Restrict the return
18075 values to -1, 0 and 1.
18077 2013-08-27 Vidya Praveen <vidyapraveen@arm.com>
18079 * config/aarch64/aarch64.md (unspec): Add UNSPEC_SISD_SSHL,
18080 UNSPEC_SISD_USHL, UNSPEC_USHL_2S, UNSPEC_SSHL_2S, UNSPEC_SISD_NEG.
18081 (<optab><mode>3_insn): Remove.
18082 (aarch64_ashl_sisd_or_int_<mode>3): New Pattern.
18083 (aarch64_lshr_sisd_or_int_<mode>3): Likewise.
18084 (aarch64_ashr_sisd_or_int_<mode>3): Likewise.
18085 (define_split for aarch64_lshr_sisd_or_int_di3): Likewise.
18086 (define_split for aarch64_lshr_sisd_or_int_si3): Likewise.
18087 (define_split for aarch64_ashr_sisd_or_int_di3): Likewise.
18088 (define_split for aarch64_ashr_sisd_or_int_si3): Likewise.
18089 (aarch64_sisd_ushl, aarch64_sisd_sshl): Likewise.
18090 (aarch64_ushl_2s, aarch64_sshl_2s, aarch64_sisd_neg_qi): Likewise.
18091 (ror<mode>3_insn): Likewise.
18092 * config/aarch64/predicates.md (aarch64_simd_register): New.
18094 2013-08-27 Richard Biener <rguenther@suse.de>
18096 PR tree-optimization/57521
18097 * tree-if-conv.c (if_convertible_bb_p): Verify that at least
18098 one edge is non-critical.
18099 (find_phi_replacement_condition): Make sure to use a non-critical
18100 edge. Cleanup and remove old bug workarounds.
18101 (bb_postdominates_preds): Remove.
18102 (if_convertible_loop_p_1): Do not compute post-dominators.
18103 (combine_blocks): Do not free post-dominators.
18104 (main_tree_if_conversion): Likewise.
18105 (pass_data_if_conversion): Add TODO_verify_ssa.
18107 2013-08-27 DJ Delorie <dj@redhat.com>
18109 * config/i386/djgpp.h (ASM_DECLARE_FUNCTION_NAME): New.
18111 2013-08-27 Yufeng Zhang <yufeng.zhang@arm.com>
18113 * function.c (assign_parm_find_data_types): Set passed_mode and
18114 nominal_mode to the TYPE_MODE of nominal_type for the built
18115 pointer type in case of the struct-pass-by-reference.
18117 2013-08-26 Joern Rennecke <joern.rennecke@embecosm.com>
18119 * config/avr/avr-stdint.h (INT16_TYPE): Change default to "int".
18120 (UINT16_TYPE): Change default to "unsigned int".
18122 * config/avr/avr.opt (mfract-convert-truncate): New option.
18123 * config/avr/avr.c (avr_out_fract): Unless TARGET_FRACT_CONV_TRUNC
18124 is set, round negative fractional integers according to n1169
18125 when converting to integer types.
18127 2013-08-26 Jan Hubicka <jh@suse.cz>
18129 * cgraph.c (cgraph_propagate_frequency): Do not assume that virtual
18130 methods can not be called indirectly when their address is not taken.
18132 2013-08-26 Jan Hubicka <jh@suse.cz>
18134 * gimple-fold.c (gimple_get_virt_method_for_binfo): Use
18137 2013-08-26 Jan Hubicka <jh@suse.cz>
18139 * ipa.c (comdat_can_be_unshared_p_1): C++ constructors and destructors
18142 2013-08-26 Joern Rennecke <joern.rennecke@embecosm.com>
18144 * reload.c (find_valid_class): Allow classes that do not include
18145 FIRST_PSEUDO_REGISTER - 1.
18147 2013-08-26 Jan Hubicka <jh@suse.cz>
18149 * cgraph.c (cgraph_redirect_edge_call_stmt_to_callee): Fix formatting;
18150 fix edge count/frequency when speculation failed; fix type check
18151 for the direct call.
18153 2013-08-26 Jan Hubicka <jh@suse.cz>
18155 * ipa-prop.c (ipa_print_node_params): Do not ICE during WPA.
18157 2013-08-26 Jan Hubicka <jh@suse.cz>
18159 * ipa-inline-transform.c (inline_transform): Be ready for basic block
18160 to be changed by edge redirection.
18162 2013-08-26 Jan Hubicka <jh@suse.cz>
18164 * cgraph.c (cgraph_speculative_call_info): Fix parameter order and
18165 formating; add sanity check.
18166 (cgraph_resolve_speculation): Add FIXME about scaling profiles.
18167 (cgraph_redirect_edge_call_stmt_to_callee): Fix ICE in debug dump.
18168 * ipa-inline.c (heap_edge_removal_hook): Reset node growth cache.
18169 (resolve_noninline_speculation): Update callee keys, too.
18171 2013-08-26 Jan Hubicka <jh@suse.cz>
18173 * tree.h (tree_decl_with_vis): Add cxx_constructor, cxx_destructor.
18174 (DECL_CXX_CONSTRUCTOR_P, DECL_CXX_DESTRUCTOR_P): New macros.
18176 2013-08-26 Joern Rennecke <joern.rennecke@embecosm.com>
18178 * config/i386/i386.c (x86_64_elf_select_section): Put ATTRIBUTE_UNUSED
18181 2013-08-26 Uros Bizjak <ubizjak@gmail.com>
18183 * config/i386/i386.c (ix86_debug_options): Remove prototype.
18184 (x86_64_elf_select_section): Ditto.
18185 (ix86_handle_tm_regparm_attribute): Remove ATTRIBUTE_UNUSED on used
18187 (ix86_pass_by_reference): Ditto.
18188 (output_set_got): Ditto.
18189 (ix86_unary_operator_ok): Ditto.
18190 (ix86_expand_builtin): Ditto.
18192 2013-08-23 Jan Hubicka <jh@suse.cz>
18194 * cgraph.c (cgraph_turn_edge_to_speculative): Fix debug output.
18196 2013-08-23 Jan Hubicka <jh@suse.cz>
18198 * tree.h (TYPE_FINAL_P, DECL_FINAL_P): New macros.
18199 (tree_decl_with_vis): Add FINAL field.
18201 2013-08-23 Jeff Law <law@redhat.com>
18203 * tree-ssa-pre.c (do_regular_insertion): Include the expression in
18204 the debugging dump when the expression is fully redundant.
18206 2013-08-23 Gabriel Dos Reis <gdr@integrable-solutions.net>
18208 * diagnostic.c (diagnostic_set_caret_max_width): Use pp_buffer.
18209 * gimple-pretty-print.c (gimple_dump_bb_buff): Likewise.
18210 * pretty-print.c (pp_formatted_text_data): Likewise.
18211 (pp_write_text_to_stream): Likewise.
18212 (pp_write_text_as_dot_label_to_stream): Likewise.
18213 (pp_append_r): Likewise.
18214 (pp_format): Likewise.
18215 (pp_flush): Likewise.
18216 (pp_clear_output_area): Likewise.
18217 (pp_append_text): Likewise.
18218 (pp_formatted_text): Likewise.
18219 (pp_remaining_character_count_for_line): Likewise.
18220 (pp_newline): Likewise.
18221 (pp_character): Likewise.
18222 (output_buffer::~output_buffer): Define.
18223 (pretty_printer::~pretty_printer): Destruct output buffer.
18224 * pretty-print.h (output_buffer::~output_buffer): Declare.
18225 (pretty_printer::~pretty_printer): Declare virtual.
18227 2013-08-24 Marc Glisse <marc.glisse@inria.fr>
18230 * hwint.h (HOST_WIDE_INT_UC, HOST_WIDE_INT_1U, HOST_WIDE_INT_M1,
18231 HOST_WIDE_INT_M1U): New macros.
18232 * fold-const.c (sign_bit_p, build_range_check, fold_unary_loc,
18233 fold_binary_loc, fold_ternary_loc): Use the new macros. Use an
18234 unsigned -1 for lshift.
18235 * cse.c (cse_insn): Likewise.
18236 * double-int.c (rshift_double, lshift_double): Likewise.
18237 * builtins.c (fold_builtin_bitop): Likewise.
18238 * combine.c (force_to_mode): Likewise.
18239 * tree.c (integer_pow2p, tree_log2, tree_floor_log2): Likewise.
18240 * simplify-rtx.c (simplify_const_unary_operation,
18241 simplify_const_binary_operation): Likewise.
18242 * tree-stdarg.c (va_list_counter_bump, va_list_ptr_read,
18243 check_va_list_escapes): Likewise.
18244 * rtlanal.c (nonzero_bits1): Likewise.
18245 * expmed.c (expand_smod_pow2): Likewise.
18246 * tree-ssa-structalias.c (UNKNOWN_OFFSET): Use HOST_WIDE_INT_MIN.
18248 2013-08-23 Jan Hubicka <jh@suse.cz>
18250 * cgraph.c (cgraph_turn_edge_to_speculative): Mark target node
18251 as having address taken.
18253 2013-08-23 Jan Hubicka <jh@suse.cz>
18255 * ipa-utils.h (method_class_type): Declare.
18256 * ipa-devirt.c (method_class_type): Export.
18258 * cgraphunit.c (analyze_functions): Do basic devirtualization;
18259 do not walk base classes of anonymous types.
18261 2013-08-23 Kaz Kojima <kkojima@gcc.gnu.org>
18263 PR rtl-optimization/58220
18264 PR regression/58221
18265 * final.c (reemit_insn_block_notes): Use NEXT_INSN to
18266 handle SEQUENCE insns properly.
18268 2013-08-23 Gabriel Dos Reis <gdr@integrable-solutions.net>
18270 * pretty-print.h (pp_newline_and_flush): Declare. Remove macro
18272 (pp_newline_and_indent): Likewise.
18273 (pp_separate_with): Likewise.
18274 * pretty-print.c (pp_newline_and_flush): Define.
18275 (pp_newline_and_indent): Likewise.
18276 (pp_separate_with): Likewise.
18278 2013-08-23 Jakub Jelinek <jakub@redhat.com>
18281 * config/i386/x86-64.h (TARGET_SECTION_TYPE_FLAGS): Define.
18282 * config/i386/i386.c (x86_64_elf_section_type_flags): New function.
18284 2013-08-23 Kirill Yukhin <kirill.yukhin@intel.com>
18286 * config/i386/predicates.md (ext_sse_reg_operand): New.
18287 * config/i386/i386.md (*movti_internal): Use
18288 predicate to determine if EVEX is needed.
18289 (*movsi_internal): Ditto.
18290 (*movdf_internal): Ditto.
18291 (*movsf_internal): Ditto.
18292 * config/i386/mmx.md (*mov<mode>_internal): Ditto.
18294 2013-08-23 Jakub Jelinek <jakub@redhat.com>
18296 PR tree-optimization/58209
18297 * tree-tailcall.c (process_assignment): Handle POINTER_PLUS_EXPR.
18298 (find_tail_calls): Give up for pointer result types if m is non-NULL.
18299 (adjust_return_value_with_ops): For PLUS_EXPR and pointer result type
18300 emit POINTER_PLUS_EXPR.
18301 (create_tailcall_accumulator): For pointer result type accumulate in
18304 2013-08-22 Paolo Carlini <paolo.carlini@oracle.com>
18306 * configure.ac: Add backslashes missing from the last change.
18307 * configure: Regenerate.
18309 2013-08-22 Jan Hubicka <jh@susue.cz>
18311 * ipa.c (function_and_variable_visibility): First remember function
18312 was global and then make it local.
18314 2013-08-22 Julian Brown <julian@codesourcery.com>
18316 * configure.ac: Add aarch64 to list of arches which use "nop" in
18318 * configure: Regenerate.
18320 2013-08-22 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
18322 * config/s390/linux.h (TARGET_LIBC_HAS_FUNCTION): Define as
18323 gnu_libc_has_function.
18324 * config/s390/tpf.h: Likewise.
18326 2013-08-22 Jan Hubicka <jh@susue.cz>
18328 * timevar.c (validate_phases): Add cast.
18330 2013-08-22 Jan Hubicka <jh@susue.cz>
18332 * timevar.c (validate_phases): Use size_t for memory.
18333 * timevar.h (struct timevar_time_def): Use size_t for ggc_mem.
18335 2013-08-22 Gabriel Dos Reis <gdr@integrable-solutions.net>
18337 * pretty-print.h (output_buffer::output_buffer): Declare.
18338 (pretty_printer::pretty_printer): Likewise.
18339 (pp_construct): Remove.
18340 * pretty-print.c (output_buffer::output_buffer): Define.
18341 (pretty_printer::pretty_printer): Rename from pp_construct. Simplify.
18342 * gimple-pretty-print.c (print_gimple_stmt): Do not call pp_construct.
18343 (print_gimple_expr): Likewise.
18344 (print_gimple_seq): Likewise.
18345 (gimple_dump_bb): Likewise.
18346 * sched-vis.c (dump_value_slim): Likewise.
18347 (dump_insn_slim): Likewise.
18348 (dump_rtl_slim): Likewise.
18349 (str_pattern_slim): Likewise.
18350 * tree-mudflap.c (mf_varname_tree): Likewise.
18351 * graph.c (print_graph_cfg): Likewise.
18352 (start_graph_dump): Likewise.
18353 * tree-pretty-print.c (maybe_init_pretty_print): Likewise. Use
18355 * diagnostic.c (diagnostic_initialize): Simplify early diagnostic
18356 pretty printer initialization.
18357 * coretypes.h (diagnostic_context): Remove superflous type alias
18359 (pretty_printer): Likewise. Declare directly as a class.
18360 (pretty_print_info): Remove declaration as class.
18361 * asan.c (asan_emit_stack_protection): Remove call to pp_construct
18362 and pp_clear_output_area.
18363 (asan_add_global): Likewise.
18365 2013-08-22 Jan Hubicka <jh@suse.cz>
18367 * cgraphunit.c (analyze_functions) Use update_type_inheritance_graph.
18368 * ipa-utils.h (update_type_inheritance_graph): Declare.
18369 (possible_polymorphic_call_target_p): Declare.
18370 (possible_polymorphic_call_target_p): New.
18371 * ipa-devirt.c: Update toplevel comments.
18372 (cached_polymorphic_call_targets): Move up.
18373 (odr_type_d): Move ID down.
18374 (polymorphic_type_binfo_p): Update comment.
18375 (odr_hasher::remove): Likewise;
18376 (get_odr_type): Set anonymous_namespace.
18377 (dump_odr_type): Dump it.
18378 (dump_type_inheritance_graph): Do not ICE when there are no ODR types.
18379 (maybe_record_node): Record node in cached_polymorphic_call_targets.
18380 (record_binfo): Add comment.
18381 (free_polymorphic_call_targets_hash): Do not ICE when cache is not
18383 (devirt_node_removal_hook): Do not iCE when cache is freed.
18384 (possible_polymorphic_call_target_p): New predicate.
18385 (update_type_inheritance_graph): New function.
18387 2013-08-22 Alexander Ivchenko <alexander.ivchenko@intel.com>
18388 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
18389 Sergey Lega <sergey.s.lega@intel.com>
18390 Anna Tikhonova <anna.tikhonova@intel.com>
18391 Ilya Tocar <ilya.tocar@intel.com>
18392 Andrey Turetskiy <andrey.turetskiy@intel.com>
18393 Ilya Verbin <ilya.verbin@intel.com>
18394 Kirill Yukhin <kirill.yukhin@intel.com>
18395 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
18397 * common/config/i386/i386-common.c (OPTION_MASK_ISA_AVX512F_SET): New.
18398 (OPTION_MASK_ISA_AVX512CD_SET): Ditto.
18399 (OPTION_MASK_ISA_AVX512PF_SET): Ditto.
18400 (OPTION_MASK_ISA_AVX512ER_SET): Ditto.
18401 (OPTION_MASK_ISA_AVX2_UNSET): Update.
18402 (OPTION_MASK_ISA_AVX512F_UNSET): New.
18403 (OPTION_MASK_ISA_AVX512CD_UNSET): Ditto.
18404 (OPTION_MASK_ISA_AVX512PF_UNSET): Ditto.
18405 (OPTION_MASK_ISA_AVX512ER_UNSET): Ditto.
18406 (ix86_handle_option): Handle OPT_mavx512f, OPT_mavx512cd,
18407 OPT_mavx512pf, OPT_mavx512er cases.
18408 * config/i386/constraints.md (v): New constraint.
18409 (Yi, Yj): Replace SSE_REGS with ALL_SSE_REGS.
18410 * config/i386/cpuid.h (bit_AVX512F, bit_AVX512PF, bit_AVX512ER)
18411 (bit_AVX512CD): New.
18412 * config/i386/driver-i386.c (host_detect_local_cpu): Detect
18413 AVX512F, AVX512ER, AVX512PF, AVX512CD features.
18414 * config/i386/i386-c.c (ix86_target_macros_internal):
18415 Conditionally define __AVX512F__, __AVX512ER__, __AVX512CD__,
18417 * config/i386/i386-modes.def (VECTOR_MODES (INT, 128))
18418 (VECTOR_MODES (FLOAT, 128), INT_MODE (XI, 64)): New modes.
18419 * config/i386/i386.c (regclass_map, dbx_register_map)
18420 (dbx64_register_map, svr4_dbx_register_map): Add new SSE registers.
18421 (gate_insert_vzeroupper): Disable vzeroupper for TARGET_AVX512F.
18422 (ix86_target_string): Define -mavx512f, -mavx512er, -mavx512cd,
18423 -mavx512pf options.
18424 (ix86_option_override_internal): Define PTA_AVX512F, PTA_AVX512ER,
18425 PTA_AVX512PF, PTA_AVX512CD. Handle -mavx512f, -mavx512er, -mavx512cd,
18426 -mavx512pf options. Fix formatting.
18427 (ix86_conditional_register_usage): Squash EXT_REX_SSE_REGs for 32-bit
18428 targets. Squash EVEX_SSE_REGS if AVX512F is disabled.
18429 (ix86_valid_target_attribute_inner_p): Handle -mavx512f, -mavx512er,
18430 -mavx512cd, -mavx512pf options.
18431 (standard_sse_constant_opcode): Add vpternlogd for 512-bit modes.
18432 (print_reg, ix86_print_operand): Handle 'g' to output 512-bit operands.
18433 (ix86_preferred_output_reload_class): Replace SSE_REGS with
18435 (ix86_hard_regno_mode_ok): Support 512-bit registers.
18436 (ix86_set_reg_reg_cost): Ditto.
18437 (x86_order_regs_for_local_alloc): Ditto.
18438 (MAX_VECT_LEN): Extend to 64-byte.
18439 (ix86_spill_class): Replace SSE_REGS with ALL_SSE_REGS.
18440 * config/i386/i386.h (TARGET_AVX512F, TARGET_AVX512PF)
18441 (TARGET_AVX512ER, TARGET_AVX512CD): New.
18442 (BIGGEST_ALIGNMENT): Extend to 512-bits.
18443 (FIRST_PSEUDO_REGISTER, FIXED_REGISTERS): Add new registers.
18444 (CALL_USED_REGISTERS, REG_ALLOC_ORDER): Likewise.
18445 (VALID_AVX512F_SCALAR_MODE, VALID_AVX512F_REG_MODE): New.
18446 (SSE_REG_MODE_P): Support new modes.
18447 (FIRST_MMX_REG, FIRST_REX_INT_REG, FIRST_REX_SSE_REG): Add comments.
18448 (FIRST_EXT_REX_SSE_REG, LAST_EXT_REX_SSE_REG): New.
18449 (reg_class, REG_CLASS_NAMES): Add EVEX_SSE_REGS, ALL_SSE_REGS.
18450 (SSE_CLASS_P, MAYBE_SSE_CLASS_P): Replace SSE_REGS with ALL_SSE_REGS.
18451 (REG_CLASS_CONTENTS): Add new registers.
18452 (SSE_REGNO_P, SSE_REGNO, HARD_REGNO_RENAME_OK): Support new registers.
18453 (EXT_REX_SSE_REGNO_P): New.
18454 (HI_REGISTER_NAMES): Add new registers.
18455 * config/i386/i386.md: Define constants for new registers.
18456 (mode): Add new 512-bit modes.
18457 (prefix): Support evex prefix.
18458 (isa): Support avx512f, noavx512f, fma_avx512f.
18459 (ssemodesuffix): Add new 512-bit modes.
18461 (*movxi_internal_avx512f): Ditto.
18462 (*movdi_internal): Replace constraint "x" with the new constraint "v".
18464 (*movsi_internal): Likewise.
18465 (*movdf_internal): Likewise.
18466 (*movsf_internal): Likewise.
18467 (*fop_<mode>_comm_sse): Replace constraint "x" with new constraint "v".
18468 (<code><mode>3): Likewise.
18469 * config/i386/i386.opt (mavx512f, mavx512pf, mavx512er, mavx512cd):
18471 * config/i386/mmx.md (*mov<mode>_internal): Replace constraint "x"
18472 with the new constraint "v".
18473 * config/i386/sse.md (*mov<mode>_internal): Support new registers and
18475 (<sse>_loadu<ssemodesuffix><avxsizesuffix>): Replace constraint "x"
18476 with the new constraint "v".
18477 (<sse2>_loaddqu<avxsizesuffix>): Likewise.
18478 (<sse2>_storedqu<avxsizesuffix>): Likewise.
18479 (*<plusminus_insn><mode>3): Likewise.
18480 (<sse>_vm<plusminus_insn><mode>3): Likewise.
18481 (*mul<mode>3): Likewise.
18482 (<sse>_vmmul<mode>3): Likewise.
18483 (<sse>_div<mode>3): Likewise.
18484 (<sse>_vmdiv<mode>3): Likewise.
18485 (<sse>_sqrt<mode>2): Likewise.
18486 (<sse>_vmsqrt<mode>2): Likewise.
18487 (*<code><mode>3_finite): Likewise.
18488 (*<code><mode>3) <smaxmin>: Likewise.
18489 (<sse>_vm<code><mode>3): Likewise.
18490 (*<code><mode>3) <any_logic>: Likewise.
18491 (*fma_fmadd_<mode>): Likewise.
18492 (*fma_fmsub_<mode>): Likewise.
18493 (*fma_fnmadd_<mode>): Likewise.
18494 (*fma_fnmsub_<mode>): Likewise.
18495 (*fma_fmaddsub_<mode>): Likewise.
18496 (*fma_fmsubadd_<mode>): Likewise.
18497 (*fmai_fmadd_<mode>): Likewise.
18498 (*fmai_fmsub_<mode>): Likewise.
18499 (*fmai_fnmadd_<mode>): Likewise.
18500 (*fmai_fnmsub_<mode>): Likewise.
18501 (sse_cvtsi2ss): Likewise.
18502 (sse_cvtsi2ssq): Likewise.
18503 (sse_cvtss2si): Likewise.
18504 (sse_cvtss2si_2): Likewise.
18505 (sse_cvtss2siq): Likewise.
18506 (sse_cvtss2siq_2): Likewise.
18507 (sse_cvttss2si): Likewise.
18508 (sse_cvtss2siq_2): Likewise.
18509 (float<sseintvecmodelower><mode>2): Likewise.
18510 (sse2_cvtsd2si_2): Likewise.
18511 (sse2_cvtsd2siq_2): Likewise.
18512 (*<plusminus_insn><mode>3): Likewise.
18513 (*<sse2_avx2>_<plusminus_insn><mode>3): Likewise.
18514 (*<sse4_1_avx2>_mul<mode>3): Likewise.
18515 (ashr<mode>3): Likewise.
18516 (<shift_insn><mode>3): Likewise.
18517 (avx2_<code><mode>3): Likewise.
18518 (*avx2_<code><mode>3): Likewise.
18519 (*andnot<mode>3): Likewise.
18520 (*<code><mode>3) <any_logic>: Likewise.
18521 (abs<mode>2): Likewise.
18522 (avx2_permvar<mode>): Likewise.
18523 (avx2_perm<mode>_1): Likewise.
18524 (*avx_vpermilp<mode>): Likewise.
18525 (avx_vpermilvar<mode>3): Likewise.
18526 (avx2_ashrv<mode>): Likewise.
18527 (avx2_<shift_insn>v<mode>): Likewise.
18528 * doc/invoke.texi: Document -mavx512f, -mavx512pf, -mavx512er,
18530 * doc/rtl.texi: Document XImode.
18532 2013-08-21 Jeff Law <law@redhat.com>
18534 * tree-flow.h (register_jump_thread): Pass vector of edges
18535 instead of each important edge.
18536 * tree-ssa-threadedge.c (thread_across_edge): Build the jump
18537 thread path into a vector and pass that to register_jump_thread.
18538 * tree-ssa-threadupdate.c (register_jump_thread): Conver the
18539 passed in edge vector to the current 3-edge form.
18542 2013-08-20 Alexey Makhalov <makhaloff@gmail.com>
18544 * dce.c (fini_dce): Call df_analyze again just in case
18545 delete_unmarked_insns removed anything.
18547 2013-08-21 Joern Rennecke <joern.rennecke@embecosm.com>
18549 * reload.h (struct reg_equivs): Rename to ..
18550 (struct reg_equivs_s): .. this.
18552 2013-08-20 Martin Liska <marxin.liska@gmail.com>
18554 * ipa.c (ipa_profile_read_summary): Fix buffer overflow.
18556 2013-08-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
18558 * config/sol2-10.h (TARGET_LIBC_HAS_FUNCTION): Don't nest comment.
18560 2013-08-21 Jeff Law <law@redhat.com>
18562 * tree-vrp.c (simplify_stmt_for_jump_threading): Try to
18563 simplify assignments too. If the RHS collapses to a singleton
18564 range, then return the value for the range.
18566 2013-08-21 Kirill Yukhin <kirill.yukhin@intel.com>
18568 * config/i386/sse.md (V16): Rename to...
18570 (mov<mode>): Update iterator name.
18571 (*mov<mode>_internal): Ditto.
18572 (push<mode>1): Ditto.
18573 (movmisalign<mode>): Ditto.
18575 2013-08-20 Jan Hubicka <jh@suse.cz>
18578 * cgraph.c (cgraph_add_edge_to_call_site_hash): Overwrite hash
18579 entry for direct edges.
18580 (cgraph_turn_edge_to_speculative): Fix setting of can_throw_external.
18582 2013-08-20 David Malcolm <dmalcolm@redhat.com>
18584 Revert my last two changes, r201865 and r201864:
18587 2013-08-20 David Malcolm <dmalcolm@redhat.com>
18589 Make opt_pass and gcc::pass_manager be GC-managed, so that pass
18590 instances can own GC refs.
18592 * Makefile.in (GTFILES): Add pass_manager.h and tree-pass.h.
18593 * context.c (gcc::context::gt_ggc_mx): Traverse passes_.
18594 (gcc::context::gt_pch_nx): Likewise.
18595 (gcc::context::gt_pch_nx): Likewise.
18596 * ggc.h (gt_ggc_mx <T>): New.
18597 (gt_pch_nx_with_op <T>): New.
18598 (gt_pch_nx <T>): New.
18599 * passes.c (opt_pass::gt_ggc_mx): New.
18600 (opt_pass::gt_pch_nx): New.
18601 (opt_pass::gt_pch_nx_with_op): New.
18602 (pass_manager::gt_ggc_mx): New.
18603 (pass_manager::gt_pch_nx): New.
18604 (pass_manager::gt_pch_nx_with_op): New.
18605 (pass_manager::operator new): Use
18606 ggc_internal_cleared_alloc_stat rather than xcalloc.
18607 * pass_manager.h (class pass_manager): Add GTY((user)) marking.
18608 (pass_manager::gt_ggc_mx): New.
18609 (pass_manager::gt_pch_nx): New.
18610 (pass_manager::gt_pch_nx_with_op): New.
18611 * tree-pass.h (class opt_pass): Add GTY((user)) marking.
18612 (opt_pass::operator new): New.
18613 (opt_pass::gt_ggc_mx): New.
18614 (opt_pass::gt_pch_nx): New.
18615 (opt_pass::gt_pch_nx_with_op): New.
18618 2013-08-20 David Malcolm <dmalcolm@redhat.com>
18620 * Makefile.in (GTFILES): Add context.h.
18621 * context.c (gcc::context::operator new): New.
18622 (gcc::context::gt_ggc_mx): New.
18623 (gcc::context::gt_pch_nx): New.
18624 (gcc::context::gt_pch_nx): New.
18625 * context.h (gcc::context): Add GTY((user)) marking.
18626 (gcc::context::operator new): New.
18627 (gcc::context::gt_ggc_mx): New.
18628 (gcc::context::gt_pch_nx): New.
18629 (gcc::context::gt_pch_nx): New.
18630 (g): Add GTY marking.
18631 (gt_ggc_mx (gcc::context *)): New.
18632 (gt_pch_nx (gcc::context *)): New.
18633 (gt_pch_nx (gcc::context *ctxt, gt_pointer_operator op,
18634 void *cookie)): New.
18635 * gengtype.c (open_base_files) <ifiles>: Add context.h.
18637 2013-08-20 Alexey Makhalov <makhaloff@gmail.com>
18639 * dce.c (fini_dce): Call df_analyze again just in case
18640 delete_unmarked_insns removed anything.
18642 2013-08-20 Teresa Johnson <tejohnson@google.com>
18644 PR rtl-optimizations/57451
18645 * final.c (reemit_insn_block_notes): Prevent lexical blocks
18646 from crossing split section boundaries.
18648 2013-08-20 Matthew Gretton-Dann <matthew.gretton-dann@linaro.org>
18650 * config/arm/linux-elf.h (MULTILIB_DEFAULTS): Remove definition.
18651 * config/arm/t-linux-eabi (MULTILIB_OPTIONS): Document association
18652 with MULTLIB_DEFAULTS.
18654 2013-08-20 Nick Clifton <nickc@redhat.com>
18656 * target.def (narrow_volatile_bitfield): Note that the default
18657 value is false, not !TARGET_STRICT_ALIGN.
18658 * doc/tm.texi: Regenerate.
18660 2013-08-20 Pavel Chupin <pavel.v.chupin@intel.com>
18662 Fix LIB_SPEC for systems without libpthread.
18664 * config/gnu-user.h: Introduce GNU_USER_TARGET_NO_PTHREADS_LIB_SPEC.
18665 * config/arm/linux-eabi.h: Use GNU_USER_TARGET_NO_PTHREADS_LIB_SPEC
18667 * config/i386/linux-common.h: Likewise.
18668 * config/mips/linux-common.h: Likewise.
18670 2013-08-20 Zhouyi Zhou <yizhouzhou@ict.ac.cn>
18672 * tree-ssa-ccp.c (get_default_value): Remove redundant condition
18675 2013-08-20 David Malcolm <dmalcolm@redhat.com>
18677 Make opt_pass and gcc::pass_manager be GC-managed, so that pass
18678 instances can own GC refs.
18680 * Makefile.in (GTFILES): Add pass_manager.h and tree-pass.h.
18681 * context.c (gcc::context::gt_ggc_mx): Traverse passes_.
18682 (gcc::context::gt_pch_nx): Likewise.
18683 (gcc::context::gt_pch_nx): Likewise.
18684 * ggc.h (gt_ggc_mx <T>): New.
18685 (gt_pch_nx_with_op <T>): New.
18686 (gt_pch_nx <T>): New.
18687 * passes.c (opt_pass::gt_ggc_mx): New.
18688 (opt_pass::gt_pch_nx): New.
18689 (opt_pass::gt_pch_nx_with_op): New.
18690 (pass_manager::gt_ggc_mx): New.
18691 (pass_manager::gt_pch_nx): New.
18692 (pass_manager::gt_pch_nx_with_op): New.
18693 (pass_manager::operator new): Use
18694 ggc_internal_cleared_alloc_stat rather than xcalloc.
18695 * pass_manager.h (class pass_manager): Add GTY((user)) marking.
18696 (pass_manager::gt_ggc_mx): New.
18697 (pass_manager::gt_pch_nx): New.
18698 (pass_manager::gt_pch_nx_with_op): New.
18699 * tree-pass.h (class opt_pass): Add GTY((user)) marking.
18700 (opt_pass::operator new): New.
18701 (opt_pass::gt_ggc_mx): New.
18702 (opt_pass::gt_pch_nx): New.
18703 (opt_pass::gt_pch_nx_with_op): New.
18705 2013-08-20 David Malcolm <dmalcolm@redhat.com>
18707 * Makefile.in (GTFILES): Add context.h.
18708 * context.c (gcc::context::operator new): New.
18709 (gcc::context::gt_ggc_mx): New.
18710 (gcc::context::gt_pch_nx): New.
18711 (gcc::context::gt_pch_nx): New.
18712 * context.h (gcc::context): Add GTY((user)) marking.
18713 (gcc::context::operator new): New.
18714 (gcc::context::gt_ggc_mx): New.
18715 (gcc::context::gt_pch_nx): New.
18716 (gcc::context::gt_pch_nx): New.
18717 (g): Add GTY marking.
18718 (gt_ggc_mx (gcc::context *)): New.
18719 (gt_pch_nx (gcc::context *)): New.
18720 (gt_pch_nx (gcc::context *ctxt, gt_pointer_operator op,
18721 void *cookie)): New.
18722 * gengtype.c (open_base_files) <ifiles>: Add context.h.
18724 2013-08-20 Alan Modra <amodra@gmail.com>
18727 * config/rs6000/rs6000.c (rs6000_emit_prologue): Correct ool_adjust.
18728 (rs6000_emit_epilogue): Likewise.
18730 2013-08-19 Dehao Chen <dehao@google.com>
18732 * value-prof.c (gimple_ic): Fix the bug of adding EH edge.
18734 2013-08-19 Peter Bergner <bergner@vnet.ibm.com>
18735 Jakub Jelinek <jakub@redhat.com>
18737 * builtins.def (BUILT_IN_FABSD32): New DFP ABS builtin.
18738 (BUILT_IN_FABSD64): Likewise.
18739 (BUILT_IN_FABSD128): Likewise.
18740 * builtins.c (expand_builtin): Add support for new DFP ABS builtins.
18741 (fold_builtin_1): Likewise.
18742 * config/rs6000/dfp.md (*negtd2_fpr): Handle non-overlapping
18743 destination and source operands.
18744 (*abstd2_fpr): Likewise.
18745 (*nabstd2_fpr): Likewise.
18747 2013-08-19 Richard Sandiford <rdsandiford@googlemail.com>
18749 * config/mips/mips.c (mips_adjust_insn_length): Add checks for
18752 2013-08-19 Aldy Hernandez <aldyh@redhat.com>
18754 * doc/invoke.texi (-fcilkplus): Clarify that implementation is
18757 2013-08-19 Alexander Ivchenko <alexander.ivchenko@intel.com>
18759 * target.def (TARGET_LIBC_HAS_FUNCTION): New target hook.
18760 * builtins.c (default_libc_has_function): New.
18761 (gnu_libc_has_function): Ditto.
18762 (no_c99_libc_has_function): Ditto.
18763 (expand_builtin_cexpi): Using new target hook TARGET_LIBC_HAS_FUNCTION
18764 instead of TARGET_HAS_SINCOS and TARGET_C99_FUNCTIONS.
18765 (fold_builtin_sincos): Likewise.
18766 (fold_builtin_cexp): Likewise.
18767 * builtins.def (DEF_C94_BUILTIN): Likewise.
18768 (DEF_C99_BUILTIN): Likewise.
18769 (DEF_C99_C90RES_BUILTIN): Likewise.
18770 (DEF_C99_COMPL_BUILTIN): New define. Change all complex c99 builtin
18771 definitions to using this define.
18772 * config/darwin-protos.h (darwin_libc_has_function): New.
18773 * config/darwin.c (darwin_libc_has_function): Ditto.
18774 * config/alpha/linux.h: Remove TARGET_C99_FUNCTIONS and
18775 TARGET_HAS_SINCOS. Redefine TARGET_LIBC_HAS_FUNCTION.
18776 * config/darwin.h: Ditto.
18777 * config/elfos.h: Ditto.
18778 * config/freebsd.h: Ditto.
18779 * config/i386/cygming.h: Ditto.
18780 * config/i386/djgpp.h: Ditto.
18781 * config/i386/i386-interix.h: Ditto.
18782 * config/microblaze/microblaze.h: Ditto.
18783 * config/mmix/mmix.h: Ditto.
18784 * config/gnu-user.h: Ditto.
18785 * config/ia64/hpux.h: Ditto.
18786 * config/pa/pa-hpux.h: Ditto.
18787 * config/pdp11/pdp11.h: Ditto.
18788 * config/picochip/picochip.h: Ditto.
18789 * config/linux.h: Ditto.
18790 * config/netbsd.h: Ditto.
18791 * config/openbsd.h: Ditto.
18792 * config/rs6000/aix43.h: Ditto.
18793 * config/rs6000/aix51.h: Ditto.
18794 * config/rs6000/aix52.h: Ditto.
18795 * config/rs6000/aix53.h: Ditto.
18796 * config/rs6000/aix61.h: Ditto.
18797 * config/rs6000/darwin.h: Ditto.
18798 * config/rs6000/linux.h: Ditto.
18799 * config/rs6000/linux64.h: Ditto.
18800 * config/s390/tpf.h: Ditto.
18801 * config/sol2-10.h: Ditto.
18802 * config/sol2.h: Ditto.
18803 * config/vms/vms.h: Ditto.
18804 * config/vxworks.h: Ditto.
18805 * config/linux-android.c (linux_android_libc_has_function):
18806 New linux-specific implementation of TARGET_LIBC_HAS_FUNCTION.
18807 * config/linux-protos.h (linux_android_libc_has_function):
18809 * config/i386/i386.c (ix86_libc_has_function): New.
18810 * config/i386/i386-protos.h
18811 (ix86_libc_has_function): New declaration.
18812 * config/i386/i386.md
18813 ("isinfxf2"): Change condition for TARGET_LIBC_HAS_FUNCTION.
18814 ("isinf<mode>2): Likewise.
18815 * convert.c (convert_to_integer): Using new target hook
18816 TARGET_LIBC_HAS_FUNCTION istead of TARGET_HAS_SINCOS and
18817 TARGET_C99_FUNCTIONS.
18818 * fortran/f95-lang.c (gfc_init_builtin_functions): Ditto.
18819 * tree-ssa-math-opts.c (execute_cse_sincos): Ditto.
18820 * coretypes.h (function_class): New enum for different
18821 classes of functions.
18822 * defaults.h: Remove TARGET_C99_FUNCTIONS and TARGET_HAS_SINCOS.
18823 * doc/tm.texi.in (TARGET_C99_FUNCTIONS): Remove documentation.
18824 (TARGET_HAS_SINCOS): Likewise.
18825 (TARGET_LIBC_HAS_FUNCTION): New.
18826 * doc/tm.texi: Regenerated.
18827 * targhooks.h (default_libc_has_function): New declaration.
18828 (no_c99_libc_has_function): Ditto.
18829 (gnu_libc_has_function): Ditto.
18830 * system.h: Add the poisoning of TARGET_C99_FUNCTIONS
18831 and TARGET_HAS_SINCOS.
18833 2013-08-18 Jan Hubicka <jh@suse.cz>
18835 * Makeifle-in (ipa-devirt.o): New.
18836 (GTFILES): Add ipa-utils.h and ipa-devirt.c
18837 * cgraphunit.c (decide_is_symbol_needed): Do not care about virtuals.
18838 (analyze_functions): Look into possible targets of polymorphic call.
18839 * dumpfile.c (dump_files): Add type-inheritance dump.
18840 * dumpfile.h (TDI_inheritance): New.
18841 * ipa-devirt.c: New file.
18842 * ipa-utils.h (odr_type_d): Forward declare.
18843 (odr_type): New type.
18844 (build_type_inheritance_graph): Declare.
18845 (possible_polymorphic_call_targets): Declare and introduce inline
18846 variant when only edge is pased.
18847 (dump_possible_polymorphic_call_targets): Likewise.
18848 * timevar.def (TV_IPA_INHERITANCE, TV_IPA_VIRTUAL_CALL): New.
18849 * tree.c (type_in_anonymous_namespace_p): Break out from ...
18850 (types_same_for_odr): ... here.
18851 * tree.h (type_in_anonymous_namespace_p): Declare.
18853 2013-08-18 Jakub Jelinek <jakub@redhat.com>
18855 PR tree-optimization/58006
18856 * tree-parloops.c (take_address_of): Don't ICE if get_name
18858 (eliminate_local_variables_stmt): Remove clobber stmts.
18860 2013-08-18 Eric Botcazou <ebotcazou@adacore.com>
18862 * cgraphunit.c (handle_alias_pairs): Reset the alias flag after the
18863 error message is issued for an alias to undefined symbol.
18865 2013-08-18 Jan Hubicka <jh@suse.cz>
18867 * cgraph.c (cgraph_create_indirect_edge): Discover
18868 polymorphic calls and record basic info into indirect_info.
18869 * gimple-fold.c (gimple_fold_call): When doing BINFO based
18870 devirtualization, ignore objc function calls.
18871 * ipa-cp.c (initialize_node_lattices): Be ready for polymorphic
18872 call with no parm index info.
18873 * ipa-prop.c (ipa_analyze_call_uses): Likewise.
18874 * tree.c (virtual_method_call_p): New function.
18875 * tree.h (virtual_method_call_p): Declare.
18877 2013-08-16 Jan Hubicka <jh@suse.cz>
18879 PR middle-end/58179
18880 * tree.c (obj_type_ref_class): Do not ICE on non-method calls.
18882 2013-08-16 David Edelsohn <dje.gcc@gmail.com>
18884 * config/rs6000/rs6000.md (rs6000_get_timebase_ppc32): Add length
18887 2013-08-16 David Malcolm <dmalcolm@redhat.com>
18889 * gengtype.c (type_for_name): Add special-case support for
18890 locating types within the "gcc::" namespace.
18891 (open_base_files): Emit a "using namespace gcc" directive.
18893 2013-08-16 Michael Meissner <meissner@linux.vnet.ibm.com>
18896 * config/rs6000/predicates.md (fusion_gpr_mem_load): Allow the
18897 memory rtx to contain ZERO_EXTEND and SIGN_EXTEND.
18899 * config/rs6000/rs6000-protos.h (fusion_gpr_load_p): Pass operands
18900 array instead of each individual operand as a separate argument.
18901 (emit_fusion_gpr_load): Likewise.
18902 (expand_fusion_gpr_load): Add new function declaration.
18904 * config/rs6000/rs6000.c (fusion_gpr_load_p): Change the calling
18905 signature to have the operands passed as an array, instead of as
18906 separate arguments. Allow ZERO_EXTEND to be in the memory
18907 address, and also SIGN_EXTEND if -mpower8-fusion-sign. Do not
18908 depend on the register live/dead flags when peepholes are run.
18909 (expand_fusion_gpr_load): New function to be called from the
18910 peephole2 pass, to change the register that addis sets to be the
18912 (emit_fusion_gpr_load): Change the calling signature to have the
18913 operands passed as an array, instead of as separate arguments.
18914 Allow ZERO_EXTEND to be in the memory address, and also
18915 SIGN_EXTEND if -mpower8-fusion-sign.
18917 * config/rs6000/rs6000.md (UNSPEC_FUSION_GPR): Delete unused
18918 unspec enumeration.
18919 (power8 fusion peephole/peephole2): Rework the fusion peepholes to
18920 adjust the register addis loads up in the peephole2 pass. Do not
18921 depend on the register live/dead state when the peephole pass is done.
18923 2013-08-16 David Malcolm <dmalcolm@redhat.com>
18925 * gengtype.c (create_user_defined_type): Ensure that the kind
18926 is set to TYPE_USER_STRUCT, fixing a bug seen when an incomplete
18927 declaration is seen before the GTY((user)) marking.
18929 2013-08-16 Bernd Edlinger <bernd.edlinger@hotmail.de>
18932 * config/i386/i386.c (make_resolver_func): Set DECL_UNINLINABLE.
18934 2013-08-16 Jan Hubicka <jh@suse.cz>
18936 * gimple-fold.c (gimple_extract_devirt_binfo_from_cst): Add new
18937 arugment expected_type.
18938 (gimple_fold_call): Use it.
18939 * gimple.h (gimple_extract_devirt_binfo_from_cst): Update prototype.
18940 * ipa-cp.c (ipa_get_indirect_edge_target_1): Update.
18941 * ipa-prop.c (ipa_analyze_virtual_call_uses): Use obj_type_ref_class.
18942 (try_make_edge_direct_virtual_call): Likewise.
18943 * tree.c (obj_type_ref_class): New.
18944 * tree.h (obj_type_ref_class): Use it.
18946 2013-08-16 Gabriel Dos Reis <gdr@integrable-solutions.net>
18948 * sched-vis.c (rtl_slim_pp_initialized): Remove.
18949 (rtl_slim_pp): Likewise.
18950 (init_rtl_slim_pretty_print): Likewise.
18951 (dump_value_slim): Don't call it. Use local pretty printer.
18952 (dump_insn_slim): Likewise.
18953 (dump_rtl_slim): Likewise.
18954 (str_pattern_slim): Likewise.
18955 * tree-mudflap.c (mf_varname_tree): Use local pretty printer.
18958 2013-08-16 Jakub Jelinek <jakub@redhat.com>
18960 PR tree-optimization/58164
18961 * gimple.c (walk_stmt_load_store_addr_ops): For visit_addr
18962 walk gimple_goto_dest of GIMPLE_GOTO.
18964 PR tree-optimization/58165
18965 * tree-call-cdce.c (shrink_wrap_one_built_in_call): If
18966 bi_call must be the last stmt in a bb, don't split_block, instead
18967 use fallthru edge from it and give up if there is none.
18968 Release conds vector when returning early.
18970 2013-08-14 Xinliang David Li <davidxl@google.com>
18972 * config/i386/i386.c (ix86_option_override_internal):
18973 Remove unused variable and field.
18975 2013-08-14 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
18978 * doc/invoke.texi: Add documentation of mcompat-align-parm option.
18979 * config/rs6000/rs6000.opt: Add mcompat-align-parm option.
18980 * config/rs6000/rs6000.c (rs6000_function_arg_boundary): For AIX
18981 and Linux, correct BLKmode alignment when 128-bit alignment is
18982 required and compatibility flag is not set.
18983 (rs6000_gimplify_va_arg): For AIX and Linux, honor specified alignment
18984 for zero-size arguments when compatibility flag is not set.
18986 2013-08-14 Jakub Jelinek <jakub@redhat.com>
18988 PR tree-optimization/58145
18989 * tree-sra.c (build_ref_for_offset): If prev_base has
18990 TREE_THIS_VOLATILE or TREE_SIDE_EFFECTS, propagate it to MEM_REF.
18992 2013-08-14 Xinliang David Li <davidxl@google.com>
18994 * config/i386/i386.c (ix86_option_override_internal):
18995 Fix uninitialized variable error.
18997 2013-08-14 Xinliang David Li <davidxl@google.com>
18999 * config/i386/i386.opt: Define two new options.
19000 * config/i386/x86-tune.def: Add arch selector field in macros.
19001 * config/i386/i386.h: Adjust macro definition.
19002 * config/i386/i386.c (ix86_option_override_internal):
19004 (parse_mtune_ctrl_str): New function.
19005 (set_ix86_tune_features): New function.
19006 (ix86_function_specific_restore): Call the new helper function.
19008 2013-08-14 Andrey Belevantsev <abel@ispras.ru>
19010 PR rtl-optimization/57662
19011 * sel-sched.c (code_motion_process_successors): When the current insn
19012 is removed after the recursive traversal, break from the loop.
19013 Add comments and debug printouts.
19015 2013-08-14 Jakub Jelinek <jakub@redhat.com>
19016 Alexandre Oliva <aoliva@redhat.com>
19019 * config/i386/i386.c (ix86_delegitimize_address): For CM_MEDIUM_PIC
19020 and CM_LARGE_PIC ix86_cmodel fall thru into the -m32 code, handle
19021 there also UNSPEC_PLTOFF.
19023 2013-08-14 Marek Polacek <polacek@redhat.com>
19025 * ipa-inline-analysis.c (add_clause): Avoid shifting integer
19026 NUM_CONDITIONS bit positions.
19028 2013-08-13 Cary Coutant <ccoutant@google.com>
19030 * dwarf2out.c (CHECKSUM_BLOCK): New macro.
19031 (attr_checksum): Hash vector contents instead of pointer.
19032 (attr_checksum_ordered): Likewise.
19034 2013-08-13 Uros Bizjak <ubizjak@gmail.com>
19036 * config/i386/sse.md (*sse2_maskmovdqu): Emit addr32 prefix
19037 when Pmode != word_mode. Add length_address attribute.
19038 (sse3_monitor_<mode>): Merge from sse3_monitor and
19039 sse3_monitor64_<mode> insn patterns. Emit addr32 prefix when
19040 Pmode != word_mode. Update insn length attribute.
19041 * config/i386/i386.c (ix86_option_override_internal): Update
19042 ix86_gen_monitor selection for merged sse3_monitor insn.
19044 2013-08-13 Julian Brown <julian@codesourcery.com>
19046 * config/rs6000/rs6000.c (rs6000_legitimize_reload_address): Don't
19047 perform invalid legitimization on greater-than-word-size modes for
19048 TARGET_E500_DOUBLE.
19050 2013-08-13 Vladimir Makarov <vmakarov@redhat.com>
19052 * ira.c (setup_class_translate_array): Use aclass instead of cl
19053 for classes not fully covered by allocno classes.
19055 2013-08-13 Jakub Jelinek <jakub@redhat.com>
19057 PR tree-optimization/57661
19058 * tree-inline.h (struct copy_body_data): Add blocks_to_copy field.
19059 * tree-inline.c (tree_function_versioning): Initialize it.
19060 (remap_gimple_stmt): Return GIMPLE_NOP for MEM_REF lhs clobber stmts
19061 if id->blocks_to_copy and MEM_REF's SSA_NAME is defined in a block
19062 that is not being copied.
19065 * asan.c (instrument_strlen_call): Fix typo in comment.
19066 Use char * type even for the lhs of POINTER_PLUS_EXPR.
19068 2013-08-13 Steve Ellcey <sellcey@mips.com>
19070 * config/mips/mips.md (prefetch): Use lw instead of ld on
19071 loongson in 32bit mode.
19073 2013-08-13 Nick Clifton <nickc@redhat.com>
19075 * config.gcc: (avr-linux): Allow for tmake_file not being empty.
19077 2013-08-13 Jan Hubicka <jh@suse.cz>
19079 * cgraph.c (cgraph_turn_edge_to_speculative): Return newly
19080 introduced edge; fix typo in sanity check.
19081 (cgraph_resolve_speculation): Export; improve diagnostic.
19082 (cgraph_redirect_edge_call_stmt_to_callee): Better diagnostic; cancel
19083 speculation at type mismatch.
19084 * cgraph.h (cgraph_turn_edge_to_speculative): Update.
19085 (cgraph_resolve_speculation): Declare.
19086 (symtab_can_be_discarded): New function.
19087 * value-prof.c (gimple_ic_transform): Remove actual transform code.
19088 * ipa-inline-transform.c (speculation_removed): New global var.
19089 (clone_inlined_nodes): See if speculation can be removed.
19090 (inline_call): If speculations was removed, we growths may not match.
19091 * ipa-inline.c (can_inline_edge_p): Add DISREGARD_LIMITS parameter.
19092 (speculation_useful_p): New function.
19093 (resolve_noninline_speculation): New function.
19094 (inline_small_functions): Resolve useless speculations.
19095 * ipa-inline.h (speculation_useful_p): Declare
19096 * ipa.c (can_replace_by_local_alias): Simplify.
19097 (ipa_profile): Produce speculative calls in non-lto, too;
19098 add simple cost model; produce local aliases.
19100 2013-08-13 David Malcolm <dmalcolm@redhat.com>
19102 * config/i386/t-i386 (i386.o): Rename stray PIPELINE_H to
19105 2013-08-12 Paolo Carlini <paolo.carlini@oracle.com>
19107 * config/i386/i386.c (ix86_function_versions): Use error + inform.
19109 2013-08-12 Uros Bizjak <ubizjak@gmail.com>
19111 * config/i386/i386.md (floatunssi<mode>2 expand): Use MODEF mode
19112 iterator instead of X87MODEF.
19114 2013-08-12 Perez Read <netfirewall@gmail.com>
19117 * config/i386/i386.md (*movabs<mode>_1): Add <ptrsize> PTR before
19118 operand 0 for intel asm alternative.
19119 (*movabs<mode>_2): Ditto for operand 1.
19121 2013-08-12 James Greenhalgh <james.greenhalgh@arm.com>
19123 * config/aarch64/arm_none.h
19124 (vdup<bhsd>_lane_<su><8,16,32,64>): Fix macro call.
19126 2013-08-12 Nick Clifton <nickc@redhat.com>
19128 * config.gcc (m32r-linux): Allow for tmake_file not being empty.
19130 2013-08-12 Yuri Rumyantsev <ysrumyan@gmail.com>
19132 * config/i386/i386.md (floatunssi<mode>2 expand): Add new
19133 expand for QI/HImode operand to produce more effictive code for
19134 unsigned char(short) --> float(double) conversion.
19136 2013-08-12 Alexander Monakov <amonakov@ispras.ru>
19138 * doc/invoke.texi: Mention that -ftls-model does not force the final
19141 2013-08-12 Marek Polacek <polacek@redhat.com>
19142 Marc Glisse <marc.glisse@inria.fr>
19144 PR tree-optimization/57980
19145 * tree-tailcall.c (process_assignment): Call build_minus_one_cst
19146 when creating -1 constant.
19148 2013-08-10 Jan Hubicka <jh@suse.cz>
19150 Workaround binutils PR14342.
19151 * tree-profile.c (init_ic_make_global_vars): Add LTO path.
19152 (gimple_init_edge_profiler): Likewise.
19153 (gimple_gen_ic_func_profiler): Likewise.
19155 2013-08-09 Jan Hubicka <jh@suse.cz>
19157 * cgraph.c (cgraph_create_edge_1): Clear speculative flag.
19159 2013-08-09 Xinliang David Li <davidxl@google.com>
19161 * config/i386/stringop.def: New file.
19162 * config/i386/stringop.opt: New file.
19163 * config/i386/i386-opts.h: Include stringopt.def.
19164 * config/i386/i386.opt: Include stringopt.opt.
19165 * config/i386/i386.c (ix86_option_override_internal):
19166 Override default size based stringop inline strategies with options.
19167 * config/i386/i386.c (ix86_parse_stringop_strategy_string):
19170 2013-08-09 Jan Hubicka <jh@suse.cz>
19172 * ipa-ref.c (ipa_clear_stmts_in_references): Clear lto_stmt_uid, too.
19174 2013-08-09 Jan Hubicka <jh@suse.cz>
19176 * cgraph.c (cgraph_resolve_speculation): Cut frequency to
19178 (dump_cgraph_node): Dump profile-id.
19179 * cgraph.h (cgraph_indirect_call_info): Add common_target_id
19180 and common_target_probability.
19181 * lto-cgraph.c (lto_output_edge): Stream common targets.
19182 (lto_output_node): Stream profile ids.
19183 (input_node): Stream profile ids.
19184 (input_edge): Stream common targets.
19185 * lto-streamer-in.c (fixup_call_stmt_edges_1): Fix formatting.
19186 * ipa.c: Include value-prof.h
19187 (ipa_profile_generate_summary): Turn indirect call statement histograms
19188 into common targets.
19189 (ipa_profile): Turn common targets into speculative edges.
19191 2013-08-09 Jan Hubicka <jh@suse.cz>
19193 * cgraph.h (cgraph_node): Add profile_id.
19194 * value-prof.c (cgraph_node_map): Turn into pointer_map.
19195 (init_node_map): Rewrite to handle hashes increas of incremental IDs.
19196 (del_node_map): Update.
19197 (find_func_by_funcdef_no): Replace by ...
19198 (find_func_by_profile_id): ... this one.
19199 (gimple_ic_transform): Do not remove useful histograms when
19200 speculation is not done; dump info when indirect call removal
19202 * value-prof.h (find_func_by_profile_id, gimple_ic): Declare.
19203 * gcov-io.h (__gcov_indirect_call_profiler): Replace by ...
19204 (__gcov_indirect_call_profiler_v2): .. this one.
19205 * profile.h (init_node_map): Update.
19206 * coverage.c (coverage_compute_profile_id): New function.
19207 * coverage.h (coverage_compute_profile_id): Declare.
19208 * tree-profile.c (init_ic_make_global_vars): Make
19209 __gcov_indirect_call_callee and __gcov_indirect_call_counters global.
19210 (gimple_init_edge_profiler): Update prototype of
19211 __gcov_indirect_call_profiler.
19212 (gimple_gen_ic_func_profiler): Simplify.
19213 (tree_profiling): Use init_node_map
19215 2013-08-09 Jan Hubicka <jh@suse.cz>
19217 * cgraphbuild.c (cgraph_rebuild_references): Rebuild only
19218 non-speculative refs.
19219 * cgraph.c (cgraph_update_edge_in_call_site_hash): New function.
19220 (cgraph_add_edge_to_call_site_hash): Deal with speculative calls.
19221 (cgraph_set_call_stmt): Likewise.
19222 (cgraph_create_edge_1): Fix release checking compilatoin;
19223 clear lto_stmt_uid.
19224 (cgraph_free_edge): Free indirect info.
19225 (cgraph_turn_edge_to_speculative): New function.
19226 (cgraph_speculative_call_info): New function.
19227 (cgraph_make_edge_direct): Return direct edge; handle speculation.
19228 (cgraph_redirect_edge_call_stmt_to_callee): Expand speculative edges.
19229 (dump_cgraph_node): Dump speculation.
19230 (verify_edge_count_and_frequency): Accept speculative edges.
19231 (verify_edge_corresponds_to_fndecl): Handle partitioned cgraph.
19232 (verify_cgraph_node): Handle speculation.
19233 * cgraph.h (cgraph_edge): Add SPECULATIVE flag.
19234 (cgraph_set_call_stmt): Update prototype.
19235 (cgraph_make_edge_direct): Update prototype.
19236 (cgraph_speculative_call_info): Declare.
19237 * ipa-cp.c (ipcp_discover_new_direct_edges): Be ready for edge
19238 to change; update call of ipa_find_references.
19239 * ipa-ref.c (ipa_record_reference): Fix return value; clear
19240 lto_stmt_uid and speculative flags.
19241 (ipa_dump_references): Dump speculation.
19242 (ipa_clone_references): Clone speculative flag.
19243 (ipa_clone_referring): Likewise.
19244 (ipa_clone_ref): New function.
19245 (ipa_find_reference): Look into lto_stmt_uids
19246 (ipa_clear_stmts_in_references): Do not clear speculative calls.
19247 * ipa-ref.h (ipa_ref): Add lto_stmt_uid and speculative flags.
19248 (ipa_find_reference): Update declaration.
19249 (ipa_clone_ref): Declare.
19250 * lto-cgraph.c (lto_output_edge): Make lto_stmt_uids start from 0;
19251 stream speculative flag.
19252 (lto_output_ref): Stream statements uids and speculation.
19253 (input_ref): Likewise.
19254 (input_edge): Stream speuclation.
19255 * cgraphclones.c (cgraph_clone_edge): Clone speculation.
19256 (cgraph_set_call_stmt_including_clones): Handle speculation.
19257 * ipa-inline.c (heap_edge_removal_hook): New function.
19258 (inline_small_functions): Register it.
19259 * lto-streamer-in.c (fixup_call_stmt_edges_1): Bounds checking;
19260 also initialize refs.
19261 * ipa-prop.c (ipa_make_edge_direct_to_target): Be ready for
19263 (try_make_edge_direct_simple_call): Likewise.
19264 (try_make_edge_direct_simple_call): Likewise.
19265 (update_indirect_edges_after_inlining): Likewise.
19266 (remove_described_reference): Look proper lto_stmt_uid.
19267 (propagate_controlled_uses): Likewise.
19268 (propagate_controlled_uses): Liekwise.
19269 * tree-inline.c (copy_bb): Copy speculative edges.
19270 (redirect_all_calls): New function.
19271 (copy_cfg_body): Do redirection after loop info is updated.
19272 (delete_unreachable_blocks_update_callgraph): Updadte speculation.
19274 2013-08-09 Jan Hubicka <jh@suse.cz>
19276 * lto-streamer-out.c (output_function): Renumber PHIs.
19277 * lto-streamer-in.c (input_function): Likewise.
19279 2013-08-09 James Greenhalgh <james.greenhalgh@arm.com>
19281 * config/aarch64/aarch64-simd-builtins.def (get_lane_signed): Remove.
19282 (get_lane_unsigned): Likewise.
19283 (dup_lane_scalar): Likewise.
19284 (get_lane): enable for VALL.
19285 * config/aarch64/aarch64-simd.md
19286 (aarch64_dup_lane_scalar<mode>): Remove.
19287 (aarch64_get_lane_signed<mode>): Likewise.
19288 (aarch64_get_lane_unsigned<mode>): Likewise.
19289 (aarch64_get_lane_extend<GPI:mode><VDQQH:mode>): New.
19290 (aarch64_get_lane_zero_extendsi<mode>): Likewise.
19291 (aarch64_get_lane<mode>): Enable for all vector modes.
19292 (aarch64_get_lanedi): Remove misleading constraints.
19293 * config/aarch64/arm_neon.h
19294 (__aarch64_vget_lane_any): Define.
19295 (__aarch64_vget<q>_lane_<fpsu><8,16,32,64>): Likewise.
19296 (vget<q>_lane_<fpsu><8,16,32,64>): Use __aarch64_vget_lane macros.
19297 (vdup<bhsd>_lane_<su><8,16,32,64>): Likewise.
19298 * config/aarch64/iterators.md (VDQQH): New.
19299 (VDQQHS): Likewise.
19300 (vwcore): Likewise.
19302 2013-08-09 Eric Botcazou <ebotcazou@adacore.com>
19304 * configure.ac: Add GAS check for LEON instructions on SPARC.
19305 * configure: Regenerate.
19306 * config.in: Likewise.
19307 * config.gcc (with_cpu): Remove sparc-leon*-* and deal with LEON in the
19309 * config/sparc/sparc.opt (LEON, LEON3): New masks.
19310 * config/sparc/sparc.h (ASM_CPU32_DEFAULT_SPEC): Set to AS_LEON_FLAG
19312 (ASM_CPU_SPEC): Pass AS_LEON_FLAG if -mcpu=leon or -mcpu=leon3.
19313 (AS_LEON_FLAG): New macro.
19314 * config/sparc/sparc.c (sparc_option_override): Set MASK_LEON for leon
19315 and MASK_LEON3 for leon3 and unset them if HAVE_AS_LEON is not defined.
19316 Deal with LEON and LEON3 for the memory model.
19317 * config/sparc/sync.md (atomic_compare_and_swap<mode>): Enable if LEON3
19318 (atomic_compare_and_swap<mode>_1): Likewise.
19319 (*atomic_compare_and_swap<mode>_1): Likewise.
19321 2013-08-09 Zhenqiang Chen <zhenqiang.chen@linaro.org>
19323 * config/arm/neon.md (vcond): Fix floating-point vector
19324 comparisons against 0.
19326 2013-08-08 Vladimir Makarov <vmakarov@redhat.com>
19328 * lra-constraints.c (emit_spill_move): Remove assert.
19329 (process_alt_operands): Add more debugging
19330 output. Increase reject for spilling into memory. Decrease
19331 reject for reloading scratch.
19332 (split_reg): Use HARD_REGNO_CALLER_SAVE_MODE.
19334 2013-08-08 Steve Ellcey <sellcey@mips.com>
19336 * config/mips/mti-linux.h (SYSROOT_SUFFIX_SPEC): Add nan2008.
19337 * config/mips/t-mti-elf (MULTILIB_OPTIONS): Make mips16 and
19338 micromips incompatible. Add nan2008.
19339 (MULTILIB_DIRNAMES): Add nan2008.
19340 (MULTILIB_EXCEPTIONS): Remove mips16/micromips entry.
19341 * config/mips/t-mti-linux (MULTILIB_OPTIONS): Make mips16
19342 and micromips incompatible. Add nan2008.
19343 (MULTILIB_DIRNAMES): Add nan2008.
19344 (MULTILIB_EXCEPTIONS): Remove mips16/micromips entry.
19346 2013-08-08 Richard Sandiford <rdsandiford@googlemail.com>
19348 PR rtl-optimization/58079
19349 * combine.c (combine_simplify_rtx): Avoid using SUBST if
19350 simplify_comparison has widened a comparison with an integer.
19352 2013-08-08 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
19354 * config/arm/neon.md (movmisalign<mode>): Disable when we
19355 don't allow unaligned accesses.
19356 (*movmisalign<mode>_neon_store): Likewise.
19357 (*movmisalign<mode>_neon_load): Likewise.
19358 (*movmisalign<mode>_neon_store): Likewise.
19359 (*movmisalign<mode>_neon_load): Likewise.
19361 2013-08-08 Jan Hubicka <jh@suse.cz>
19363 * cgraphbuild.c (build_cgraph_edges): Do not walk into debugs.
19364 (make_pass_rebuild_cgraph_edges): Also clear references.
19365 * cgraph.c (verify_cgraph_node): Add basic ipa-ref verifier.
19366 * ipa-inline-transform.c (inline_transform): Remove all references
19368 * cgraphunit.c (expand_function): Remove all references after
19370 * ipa-ref.c (ipa_ref_has_aliases_p): Fix formatting.
19371 (ipa_find_reference): Rewrite to iterator.
19372 (remove_stmt_references): Likewise.
19373 (ipa_clear_stmts_in_references): New function.
19374 * ipa-ref.h (ipa_clear_stmts_in_references): Declare.
19375 * cgraphclones.c (cgraph_materialize_all_clones): Remove or
19377 * ipa-split.c (split_function): Remove references in split function.
19379 2013-08-08 Richard Earnshaw <rearnsha@arm.com>
19382 * config/arm/arm/neon.md (neon_vld1_dupdi): New expand pattern.
19383 (neon_vld1_dup<mode> VD iterator): Iterate over VD not VDX.
19385 2013-08-08 Richard Earnshaw <rearnsha@arm.com>
19388 * config/arm/arm.c (aapcs_vfp_allocate): Decompose the argument if the
19389 suggested mode for the assignment isn't compatible with the
19390 registers required.
19392 2013-08-08 Bernd Edlinger <bernd.edlinger@hotmail.de>
19395 * config/arm/arm.h (MALLOC_ABI_ALIGNMENT): Define.
19397 2013-08-07 Xinliang David Li <davidxl@google.com>
19399 * config/i386/i386.opt: New option -mtune-ctrl=.
19400 * config/i386/x86-tune.def: New file.
19401 * config/i386/i386.h: include x86-tune.def.
19402 * config/i386/i386.c (ix86_option_override_internal):
19403 Parsing -mtune-ctrl= option and set tune features.
19405 2013-08-07 Oleg Endo <olegendo@gcc.gnu.org>
19408 * config/rs6000/rs6000.c (gen_2arg_fn_t): Remove typedef.
19409 (rs6000_emit_swdiv, rs6000_emit_swrsqrt): Don't cast result of GEN_FCN
19412 2013-08-07 Eric Botcazou <ebotcazou@adacore.com>
19414 * rtl.h (update_alignments): Declare.
19415 * final.c (grow_label_align): New function extracted from...
19416 (shorten_branches): ...here. Call it.
19417 (update_alignments): New function.
19418 * reorg.c (sibling_labels): New variable.
19419 (get_label_before): Add SIBLING parameter. If it is non-zero, push
19420 the new label along with it onto the sibling_labels vector.
19421 (fill_simple_delay_slots): Adjust call to get_label_before.
19422 (fill_slots_from_thread): Likewise.
19423 (relax_delay_slots): Likewise.
19424 (make_return_insns): Likewise.
19425 (dbr_schedule): Invoke update_alignment on the sibling_labels vector.
19427 2013-08-07 Eric Botcazou <ebotcazou@adacore.com>
19429 * diagnostic.c (diagnostic_classify_diagnostic): Accept zero index and
19430 document its semantics.
19431 (diagnostic_report_diagnostic): Adjust accordingly.
19433 2013-08-07 David Malcolm <dmalcolm@redhat.com>
19435 * config/sparc/sparc.c (insert_pass_work_around_errata): Move into...
19436 (sparc_option_override): ...and port to new C++ pass API.
19437 * config/sparc/t-sparc (sparc.o): Add dep on CONTEXT_H
19439 2013-08-07 Peter Bergner <bergner@vnet.ibm.com>
19441 * config/rs6000/rs6000.c (htm_expand_builtin) <case 0>: Remove.
19443 2013-08-06 Caroline Tice <cmtice@google.com>
19445 * gcc.c (VTABLE_VERIFICATION_SPEC): New definition.
19446 (LINK_COMMAND_SPEC): Add VTABLE_VERIFICATION_SPEC.
19447 * tree-pass.h: Add pass_vtable_verify.
19448 * varasm.c (assemble_variable): Add code to properly set the comdat
19449 section and name for the .vtable_map_vars section.
19450 (assemble_vtyv_preinit_initializer): New function.
19451 (default_sectin_type_flags): Make sure .vtable_map_vars section has
19453 * output.h: Add function decl for assemble_vtv_preinit_initializer.
19454 * vtable-verify.c: New file.
19455 * vtable-verify.h: New file.
19456 * flag-types.h (enum vtv_priority): Defintions for flag_vtable_verify
19457 initialiation levels.
19458 * timevar.def (TV_VTABLE_VERIFICATION): New definition.
19459 * passes.def: Insert pass_vtable_verify.
19460 * aclocal.m4: Reorder includes.
19461 * doc/invoke.texi: Document the -fvtable-verify=, -fvtv-debug, and
19462 -fvtv-counts options.
19463 * config/gnu-user.h (GNU_USER_TARGET_STARTFILE_SPEC): Add vtv_start*.o,
19464 as appropriate, if -fvtable-verify=... is used.
19465 (GNU_USER_TARGET_ENDFILE_SPEC): Add vtv_end*.o as appropriate, if
19466 -fvtable-verify=... is used.
19467 * Makefile.in (OBJS): Add vtable-verify.o to list.
19468 (vtable-verify.o): Add new build rule.
19469 (GTFILES): Add vtable-verify.c to list.
19470 * common.opt (fvtable-verify=): New flag.
19471 (vtv_priority): Values for fvtable-verify= flag.
19472 (fvtv-counts): New flag.
19473 (fvtv-debug): New flag.
19474 * tree.h (save_vtable_map_decl): New extern function decl.
19476 2013-08-07 David Malcolm <dmalcolm@redhat.com>
19478 * config/rl78/rl78.c (rl78_devirt_pass): Convert from a struct to...
19479 (pass_rl78_devirt): ...new subclass of rtl_opt_pass along with...
19480 (pass_data_rl78_devirt): ...new pass_data instance and...
19481 (make_pass_rl78_devirt): ...new function.
19482 (rl78_asm_file_start): Port pass registration to new C++ API.
19484 2013-08-07 David Malcolm <dmalcolm@redhat.com>
19486 * coretypes.h (rtl_opt_pass): Add.
19487 (gcc::context): Add.
19488 * config/epiphany/epiphany.c (pass_mode_switch_use): New.
19489 (epiphany_init): Port to new C++ pass API.
19490 (epiphany_optimize_mode_switching): Likewise.
19491 * pass_manager.h (pass_manager::get_pass_split_all_insns): New.
19492 (pass_manager::get_pass_mode_switching): New.
19493 (pass_manager::get_pass_peephole2): New.
19494 * mode-switching.c (pass_mode_switching): Add clone method.
19495 * recog.c (pass_peephole2): Add clone method.
19496 (pass_split_all_insns): Add clone method.
19498 2013-08-06 David Malcolm <dmalcolm@redhat.com>
19500 * config/mips/mips.c (insert_pass_mips_machine_reorg2): Move into...
19501 (mips_option_override): ...here, porting to new C++ API for passes.
19503 2013-08-06 Jan Hubicka <jh@suse.cz>
19505 * cgraph.c (cgraph_get_body): New function based on lto.c
19507 * cgraph.h (cgraph_get_body): Declare.
19508 * cgraphclones.c (cgraph_create_virtual_clone): Commonize WPA and
19510 * cgraphunit.c (expand_function): Get body prior expanding.
19511 * ipa.c (function_and_variable_visibility): Use gimple_has_body_p test.
19512 * lto-cgraph.c (lto_output_node): Do not stream bodies we don't
19514 * passes.c (do_per_function_toporder): Get body.
19515 * tree-inline.c (expand_call_inline): Get body prior inlining it.
19516 * tree-ssa-structalias.c (ipa_pta_execute): Get body; skip clones.
19518 2013-08-06 Martin Jambor <mjambor@suse.cz>
19521 * cgraphunit.c (cgraph_finalize_function): Assert that nested function
19522 is not re-finalized. Rename second parameter to no_collect.
19524 2013-08-06 Martin Jambor <mjambor@suse.cz>
19526 PR middle-end/58041
19527 * gimple-ssa-strength-reduction.c (replace_ref): Make sure built
19528 MEM_REF has proper alignment information.
19530 2013-08-05 Oleg Endo <olegendo@gcc.gnu.org>
19533 * recog.h (rtx (*insn_gen_fn) (rtx, ...)): Replace typedef with new
19535 * expr.c (move_by_pieces_1, store_by_pieces_2): Replace argument
19536 rtx (*) (rtx, ...) with insn_gen_fn.
19537 * genoutput.c (output_insn_data): Cast gen_? function pointers to
19538 insn_gen_fn::stored_funcptr. Add initializer braces.
19540 2013-08-05 David Malcolm <dmalcolm@redhat.com>
19542 Rewrite how instances of passes are cloned to remove assumptions
19543 about their sizes (thus allowing pass subclasses to have
19544 additional data fields, albeit non-GC-managed ones at this point).
19546 * passes.c (make_pass_instance): Now that passes have clone
19547 methods, rewrite this function to eliminate XNEW and memcpy
19548 calls that used hardcoded sizes. Since this function no longer
19549 creates pass instances, rename it to...
19550 (add_pass_instance): ...this. Document the old way that passes were
19551 numbered and flagged, and rework this function to continue using it.
19552 (next_pass_1): Add an initial_pass argument for use by
19554 (position_pass): When adding multiple instances of a pass, use
19555 the pass's clone method, rather than relying on the XNEW/memcpy
19556 within the former make_pass_instance (now add_pass_instance).
19557 (pass_manager::pass_manager): When invoking next_pass_1, also supply
19558 the initial instance of the current pass within the pass manager.
19560 2013-08-05 David Malcolm <dmalcolm@redhat.com>
19562 This is the automated part of the conversion of passes from C
19563 structs to C++ classes.
19565 Patch autogenerated by refactor_passes.py from
19566 https://github.com/davidmalcolm/gcc-refactoring-scripts
19567 revision 03fe39476a4c4ea450b49e087cfa817b5f92021e
19569 * asan.c (pass_asan): Convert from a global struct to a subclass of
19570 gimple_opt_pass along with...
19571 (pass_data_asan): ...new pass_data instance and...
19572 (make_pass_asan): ...new function.
19573 (pass_asan_O0): Convert from a global struct to a subclass of
19574 gimple_opt_pass along with...
19575 (pass_data_asan_O0): ...new pass_data instance and...
19576 (make_pass_asan_O0): ...new function.
19577 * auto-inc-dec.c (pass_inc_dec): Convert from a global struct to a
19578 subclass of rtl_opt_pass along with...
19579 (pass_data_inc_dec): ...new pass_data instance and...
19580 (make_pass_inc_dec): ...new function.
19581 * bb-reorder.c (pass_reorder_blocks): Convert from a global struct to
19582 a subclass of rtl_opt_pass along with...
19583 (pass_data_reorder_blocks): ...new pass_data instance and...
19584 (make_pass_reorder_blocks): ...new function.
19585 (pass_duplicate_computed_gotos): Convert from a global struct to a
19586 subclass of rtl_opt_pass along with...
19587 (pass_data_duplicate_computed_gotos): ...new pass_data instance and...
19588 (make_pass_duplicate_computed_gotos): ...new function.
19589 (pass_partition_blocks): Convert from a global struct to a subclass of
19590 rtl_opt_pass along with...
19591 (pass_data_partition_blocks): ...new pass_data instance and...
19592 (make_pass_partition_blocks): ...new function.
19593 * bt-load.c (pass_branch_target_load_optimize1): Convert from a global
19594 struct to a subclass of rtl_opt_pass along with...
19595 (pass_data_branch_target_load_optimize1): ...new pass_data instance
19597 (make_pass_branch_target_load_optimize1): ...new function.
19598 (pass_branch_target_load_optimize2): Convert from a global struct to a
19599 subclass of rtl_opt_pass along with...
19600 (pass_data_branch_target_load_optimize2): ...new pass_data instance
19602 (make_pass_branch_target_load_optimize2): ...new function.
19603 * cfgcleanup.c (pass_jump): Convert from a global struct to a subclass
19604 of rtl_opt_pass along with...
19605 (pass_data_jump): ...new pass_data instance and...
19606 (make_pass_jump): ...new function.
19607 (pass_jump2): Convert from a global struct to a subclass of
19608 rtl_opt_pass along with...
19609 (pass_data_jump2): ...new pass_data instance and...
19610 (make_pass_jump2): ...new function.
19611 * cfgexpand.c (pass_expand): Convert from a global struct to a
19612 subclass of rtl_opt_pass along with...
19613 (pass_data_expand): ...new pass_data instance and...
19614 (make_pass_expand): ...new function.
19615 * cfgrtl.c (pass_free_cfg): Convert from a global struct to a subclass
19616 of rtl_opt_pass along with...
19617 (pass_data_free_cfg): ...new pass_data instance and...
19618 (make_pass_free_cfg): ...new function.
19619 (pass_into_cfg_layout_mode): Convert from a global struct to a
19620 subclass of rtl_opt_pass along with...
19621 (pass_data_into_cfg_layout_mode): ...new pass_data instance and...
19622 (make_pass_into_cfg_layout_mode): ...new function.
19623 (pass_outof_cfg_layout_mode): Convert from a global struct to a
19624 subclass of rtl_opt_pass along with...
19625 (pass_data_outof_cfg_layout_mode): ...new pass_data instance and...
19626 (make_pass_outof_cfg_layout_mode): ...new function.
19627 * cgraphbuild.c (pass_build_cgraph_edges): Convert from a global
19628 struct to a subclass of gimple_opt_pass along with...
19629 (pass_data_build_cgraph_edges): ...new pass_data instance and...
19630 (make_pass_build_cgraph_edges): ...new function.
19631 (pass_rebuild_cgraph_edges): Convert from a global struct to a
19632 subclass of gimple_opt_pass along with...
19633 (pass_data_rebuild_cgraph_edges): ...new pass_data instance and...
19634 (make_pass_rebuild_cgraph_edges): ...new function.
19635 (pass_remove_cgraph_callee_edges): Convert from a global struct to a
19636 subclass of gimple_opt_pass along with...
19637 (pass_data_remove_cgraph_callee_edges): ...new pass_data instance
19639 (make_pass_remove_cgraph_callee_edges): ...new function.
19640 * combine-stack-adj.c (pass_stack_adjustments): Convert from a global
19641 struct to a subclass of rtl_opt_pass along with...
19642 (pass_data_stack_adjustments): ...new pass_data instance and...
19643 (make_pass_stack_adjustments): ...new function.
19644 * combine.c (pass_combine): Convert from a global struct to a subclass
19645 of rtl_opt_pass along with...
19646 (pass_data_combine): ...new pass_data instance and...
19647 (make_pass_combine): ...new function.
19648 * compare-elim.c (pass_compare_elim_after_reload): Convert from a
19649 global struct to a subclass of rtl_opt_pass along with...
19650 (pass_data_compare_elim_after_reload): ...new pass_data instance
19652 (make_pass_compare_elim_after_reload): ...new function.
19653 * cprop.c (pass_rtl_cprop): Convert from a global struct to a subclass
19654 of rtl_opt_pass along with...
19655 (pass_data_rtl_cprop): ...new pass_data instance and...
19656 (make_pass_rtl_cprop): ...new function.
19657 * cse.c (pass_cse): Convert from a global struct to a subclass of
19658 rtl_opt_pass along with...
19659 (pass_data_cse): ...new pass_data instance and...
19660 (make_pass_cse): ...new function.
19661 (pass_cse2): Convert from a global struct to a subclass of
19662 rtl_opt_pass along with...
19663 (pass_data_cse2): ...new pass_data instance and...
19664 (make_pass_cse2): ...new function.
19665 (pass_cse_after_global_opts): Convert from a global struct to a
19666 subclass of rtl_opt_pass along with...
19667 (pass_data_cse_after_global_opts): ...new pass_data instance and...
19668 (make_pass_cse_after_global_opts): ...new function.
19669 * dce.c (pass_ud_rtl_dce): Convert from a global struct to a subclass
19670 of rtl_opt_pass along with...
19671 (pass_data_ud_rtl_dce): ...new pass_data instance and...
19672 (make_pass_ud_rtl_dce): ...new function.
19673 (pass_fast_rtl_dce): Convert from a global struct to a subclass of
19674 rtl_opt_pass along with...
19675 (pass_data_fast_rtl_dce): ...new pass_data instance and...
19676 (make_pass_fast_rtl_dce): ...new function.
19677 * df-core.c (pass_df_initialize_opt): Convert from a global struct to
19678 a subclass of rtl_opt_pass along with...
19679 (pass_data_df_initialize_opt): ...new pass_data instance and...
19680 (make_pass_df_initialize_opt): ...new function.
19681 (pass_df_initialize_no_opt): Convert from a global struct to a
19682 subclass of rtl_opt_pass along with...
19683 (pass_data_df_initialize_no_opt): ...new pass_data instance and...
19684 (make_pass_df_initialize_no_opt): ...new function.
19685 (pass_df_finish): Convert from a global struct to a subclass of
19686 rtl_opt_pass along with...
19687 (pass_data_df_finish): ...new pass_data instance and...
19688 (make_pass_df_finish): ...new function.
19689 * dse.c (pass_rtl_dse1): Convert from a global struct to a subclass of
19690 rtl_opt_pass along with...
19691 (pass_data_rtl_dse1): ...new pass_data instance and...
19692 (make_pass_rtl_dse1): ...new function.
19693 (pass_rtl_dse2): Convert from a global struct to a subclass of
19694 rtl_opt_pass along with...
19695 (pass_data_rtl_dse2): ...new pass_data instance and...
19696 (make_pass_rtl_dse2): ...new function.
19697 * dwarf2cfi.c (pass_dwarf2_frame): Convert from a global struct to a
19698 subclass of rtl_opt_pass along with...
19699 (pass_data_dwarf2_frame): ...new pass_data instance and...
19700 (make_pass_dwarf2_frame): ...new function.
19701 * except.c (pass_set_nothrow_function_flags): Convert from a global
19702 struct to a subclass of rtl_opt_pass along with...
19703 (pass_data_set_nothrow_function_flags): ...new pass_data instance
19705 (make_pass_set_nothrow_function_flags): ...new function.
19706 (pass_convert_to_eh_region_ranges): Convert from a global struct to a
19707 subclass of rtl_opt_pass along with...
19708 (pass_data_convert_to_eh_region_ranges): ...new pass_data instance
19710 (make_pass_convert_to_eh_region_ranges): ...new function.
19711 * final.c (pass_compute_alignments): Convert from a global struct to a
19712 subclass of rtl_opt_pass along with...
19713 (pass_data_compute_alignments): ...new pass_data instance and...
19714 (make_pass_compute_alignments): ...new function.
19715 (pass_final): Convert from a global struct to a subclass of
19716 rtl_opt_pass along with...
19717 (pass_data_final): ...new pass_data instance and...
19718 (make_pass_final): ...new function.
19719 (pass_shorten_branches): Convert from a global struct to a subclass of
19720 rtl_opt_pass along with...
19721 (pass_data_shorten_branches): ...new pass_data instance and...
19722 (make_pass_shorten_branches): ...new function.
19723 (pass_clean_state): Convert from a global struct to a subclass of
19724 rtl_opt_pass along with...
19725 (pass_data_clean_state): ...new pass_data instance and...
19726 (make_pass_clean_state): ...new function.
19727 * function.c (pass_instantiate_virtual_regs): Convert from a global
19728 struct to a subclass of rtl_opt_pass along with...
19729 (pass_data_instantiate_virtual_regs): ...new pass_data instance and...
19730 (make_pass_instantiate_virtual_regs): ...new function.
19731 (pass_leaf_regs): Convert from a global struct to a subclass of
19732 rtl_opt_pass along with...
19733 (pass_data_leaf_regs): ...new pass_data instance and...
19734 (make_pass_leaf_regs): ...new function.
19735 (pass_thread_prologue_and_epilogue): Convert from a global struct to a
19736 subclass of rtl_opt_pass along with...
19737 (pass_data_thread_prologue_and_epilogue): ...new pass_data instance
19739 (make_pass_thread_prologue_and_epilogue): ...new function.
19740 (pass_match_asm_constraints): Convert from a global struct to a
19741 subclass of rtl_opt_pass along with...
19742 (pass_data_match_asm_constraints): ...new pass_data instance and...
19743 (make_pass_match_asm_constraints): ...new function.
19744 * fwprop.c (pass_rtl_fwprop): Convert from a global struct to a
19745 subclass of rtl_opt_pass along with...
19746 (pass_data_rtl_fwprop): ...new pass_data instance and...
19747 (make_pass_rtl_fwprop): ...new function.
19748 (pass_rtl_fwprop_addr): Convert from a global struct to a subclass of
19749 rtl_opt_pass along with...
19750 (pass_data_rtl_fwprop_addr): ...new pass_data instance and...
19751 (make_pass_rtl_fwprop_addr): ...new function.
19752 * gcse.c (pass_rtl_pre): Convert from a global struct to a subclass of
19753 rtl_opt_pass along with...
19754 (pass_data_rtl_pre): ...new pass_data instance and...
19755 (make_pass_rtl_pre): ...new function.
19756 (pass_rtl_hoist): Convert from a global struct to a subclass of
19757 rtl_opt_pass along with...
19758 (pass_data_rtl_hoist): ...new pass_data instance and...
19759 (make_pass_rtl_hoist): ...new function.
19760 * gimple-low.c (pass_lower_cf): Convert from a global struct to a
19761 subclass of gimple_opt_pass along with...
19762 (pass_data_lower_cf): ...new pass_data instance and...
19763 (make_pass_lower_cf): ...new function.
19764 * gimple-ssa-strength-reduction.c (pass_strength_reduction): Convert
19765 from a global struct to a subclass of gimple_opt_pass along with...
19766 (pass_data_strength_reduction): ...new pass_data instance and...
19767 (make_pass_strength_reduction): ...new function.
19768 * ifcvt.c (pass_rtl_ifcvt): Convert from a global struct to a subclass
19769 of rtl_opt_pass along with...
19770 (pass_data_rtl_ifcvt): ...new pass_data instance and...
19771 (make_pass_rtl_ifcvt): ...new function.
19772 (pass_if_after_combine): Convert from a global struct to a subclass of
19773 rtl_opt_pass along with...
19774 (pass_data_if_after_combine): ...new pass_data instance and...
19775 (make_pass_if_after_combine): ...new function.
19776 (pass_if_after_reload): Convert from a global struct to a subclass of
19777 rtl_opt_pass along with...
19778 (pass_data_if_after_reload): ...new pass_data instance and...
19779 (make_pass_if_after_reload): ...new function.
19780 * init-regs.c (pass_initialize_regs): Convert from a global struct to
19781 a subclass of rtl_opt_pass along with...
19782 (pass_data_initialize_regs): ...new pass_data instance and...
19783 (make_pass_initialize_regs): ...new function.
19784 * ipa-cp.c (pass_ipa_cp): Convert from a global struct to a subclass
19785 of ipa_opt_pass_d along with...
19786 (pass_data_ipa_cp): ...new pass_data instance and...
19787 (make_pass_ipa_cp): ...new function.
19788 * ipa-inline-analysis.c (pass_inline_parameters): Convert from a
19789 global struct to a subclass of gimple_opt_pass along with...
19790 (pass_data_inline_parameters): ...new pass_data instance and...
19791 (make_pass_inline_parameters): ...new function.
19792 * ipa-inline.c (pass_early_inline): Convert from a global struct to a
19793 subclass of gimple_opt_pass along with...
19794 (pass_data_early_inline): ...new pass_data instance and...
19795 (make_pass_early_inline): ...new function.
19796 (pass_ipa_inline): Convert from a global struct to a subclass of
19797 ipa_opt_pass_d along with...
19798 (pass_data_ipa_inline): ...new pass_data instance and...
19799 (make_pass_ipa_inline): ...new function.
19800 * ipa-pure-const.c (pass_local_pure_const): Convert from a global
19801 struct to a subclass of gimple_opt_pass along with...
19802 (pass_data_local_pure_const): ...new pass_data instance and...
19803 (make_pass_local_pure_const): ...new function.
19804 (pass_ipa_pure_const): Convert from a global struct to a subclass of
19805 ipa_opt_pass_d along with...
19806 (pass_data_ipa_pure_const): ...new pass_data instance and...
19807 (make_pass_ipa_pure_const): ...new function.
19808 * ipa-reference.c (pass_ipa_reference): Convert from a global struct
19809 to a subclass of ipa_opt_pass_d along with...
19810 (pass_data_ipa_reference): ...new pass_data instance and...
19811 (make_pass_ipa_reference): ...new function.
19812 * ipa-split.c (pass_split_functions): Convert from a global struct to
19813 a subclass of gimple_opt_pass along with...
19814 (pass_data_split_functions): ...new pass_data instance and...
19815 (make_pass_split_functions): ...new function.
19816 (pass_feedback_split_functions): Convert from a global struct to a
19817 subclass of gimple_opt_pass along with...
19818 (pass_data_feedback_split_functions): ...new pass_data instance and...
19819 (make_pass_feedback_split_functions): ...new function.
19820 * ipa.c (pass_ipa_function_and_variable_visibility): Convert from a
19821 global struct to a subclass of simple_ipa_opt_pass along with...
19822 (pass_data_ipa_function_and_variable_visibility): ...new pass_data
19824 (make_pass_ipa_function_and_variable_visibility): ...new function.
19825 (pass_ipa_free_inline_summary): Convert from a global struct to a
19826 subclass of simple_ipa_opt_pass along with...
19827 (pass_data_ipa_free_inline_summary): ...new pass_data instance and...
19828 (make_pass_ipa_free_inline_summary): ...new function.
19829 (pass_ipa_whole_program_visibility): Convert from a global struct to a
19830 subclass of ipa_opt_pass_d along with...
19831 (pass_data_ipa_whole_program_visibility): ...new pass_data instance
19833 (make_pass_ipa_whole_program_visibility): ...new function.
19834 (pass_ipa_profile): Convert from a global struct to a subclass of
19835 ipa_opt_pass_d along with...
19836 (pass_data_ipa_profile): ...new pass_data instance and...
19837 (make_pass_ipa_profile): ...new function.
19838 (pass_ipa_cdtor_merge): Convert from a global struct to a subclass of
19839 ipa_opt_pass_d along with...
19840 (pass_data_ipa_cdtor_merge): ...new pass_data instance and...
19841 (make_pass_ipa_cdtor_merge): ...new function.
19842 * ira.c (pass_ira): Convert from a global struct to a subclass of
19843 rtl_opt_pass along with...
19844 (pass_data_ira): ...new pass_data instance and...
19845 (make_pass_ira): ...new function.
19846 (pass_reload): Convert from a global struct to a subclass of
19847 rtl_opt_pass along with...
19848 (pass_data_reload): ...new pass_data instance and...
19849 (make_pass_reload): ...new function.
19850 * jump.c (pass_cleanup_barriers): Convert from a global struct to a
19851 subclass of rtl_opt_pass along with...
19852 (pass_data_cleanup_barriers): ...new pass_data instance and...
19853 (make_pass_cleanup_barriers): ...new function.
19854 * loop-init.c (pass_loop2): Convert from a global struct to a subclass
19855 of rtl_opt_pass along with...
19856 (pass_data_loop2): ...new pass_data instance and...
19857 (make_pass_loop2): ...new function.
19858 (pass_rtl_loop_init): Convert from a global struct to a subclass of
19859 rtl_opt_pass along with...
19860 (pass_data_rtl_loop_init): ...new pass_data instance and...
19861 (make_pass_rtl_loop_init): ...new function.
19862 (pass_rtl_loop_done): Convert from a global struct to a subclass of
19863 rtl_opt_pass along with...
19864 (pass_data_rtl_loop_done): ...new pass_data instance and...
19865 (make_pass_rtl_loop_done): ...new function.
19866 (pass_rtl_move_loop_invariants): Convert from a global struct to a
19867 subclass of rtl_opt_pass along with...
19868 (pass_data_rtl_move_loop_invariants): ...new pass_data instance and...
19869 (make_pass_rtl_move_loop_invariants): ...new function.
19870 (pass_rtl_unswitch): Convert from a global struct to a subclass of
19871 rtl_opt_pass along with...
19872 (pass_data_rtl_unswitch): ...new pass_data instance and...
19873 (make_pass_rtl_unswitch): ...new function.
19874 (pass_rtl_unroll_and_peel_loops): Convert from a global struct to a
19875 subclass of rtl_opt_pass along with...
19876 (pass_data_rtl_unroll_and_peel_loops): ...new pass_data instance
19878 (make_pass_rtl_unroll_and_peel_loops): ...new function.
19879 (pass_rtl_doloop): Convert from a global struct to a subclass of
19880 rtl_opt_pass along with...
19881 (pass_data_rtl_doloop): ...new pass_data instance and...
19882 (make_pass_rtl_doloop): ...new function.
19883 * lower-subreg.c (pass_lower_subreg): Convert from a global struct to
19884 a subclass of rtl_opt_pass along with...
19885 (pass_data_lower_subreg): ...new pass_data instance and...
19886 (make_pass_lower_subreg): ...new function.
19887 (pass_lower_subreg2): Convert from a global struct to a subclass of
19888 rtl_opt_pass along with...
19889 (pass_data_lower_subreg2): ...new pass_data instance and...
19890 (make_pass_lower_subreg2): ...new function.
19891 * lto-streamer-out.c (pass_ipa_lto_gimple_out): Convert from a global
19892 struct to a subclass of ipa_opt_pass_d along with...
19893 (pass_data_ipa_lto_gimple_out): ...new pass_data instance and...
19894 (make_pass_ipa_lto_gimple_out): ...new function.
19895 (pass_ipa_lto_finish_out): Convert from a global struct to a subclass
19896 of ipa_opt_pass_d along with...
19897 (pass_data_ipa_lto_finish_out): ...new pass_data instance and...
19898 (make_pass_ipa_lto_finish_out): ...new function.
19899 * mode-switching.c (pass_mode_switching): Convert from a global struct
19900 to a subclass of rtl_opt_pass along with...
19901 (pass_data_mode_switching): ...new pass_data instance and...
19902 (make_pass_mode_switching): ...new function.
19903 * modulo-sched.c (pass_sms): Convert from a global struct to a
19904 subclass of rtl_opt_pass along with...
19905 (pass_data_sms): ...new pass_data instance and...
19906 (make_pass_sms): ...new function.
19907 * omp-low.c (pass_expand_omp): Convert from a global struct to a
19908 subclass of gimple_opt_pass along with...
19909 (pass_data_expand_omp): ...new pass_data instance and...
19910 (make_pass_expand_omp): ...new function.
19911 (pass_lower_omp): Convert from a global struct to a subclass of
19912 gimple_opt_pass along with...
19913 (pass_data_lower_omp): ...new pass_data instance and...
19914 (make_pass_lower_omp): ...new function.
19915 (pass_diagnose_omp_blocks): Convert from a global struct to a subclass
19916 of gimple_opt_pass along with...
19917 (pass_data_diagnose_omp_blocks): ...new pass_data instance and...
19918 (make_pass_diagnose_omp_blocks): ...new function.
19919 * passes.c (pass_early_local_passes): Convert from a global struct to
19920 a subclass of simple_ipa_opt_pass along with...
19921 (pass_data_early_local_passes): ...new pass_data instance and...
19922 (make_pass_early_local_passes): ...new function.
19923 (pass_all_early_optimizations): Convert from a global struct to a
19924 subclass of gimple_opt_pass along with...
19925 (pass_data_all_early_optimizations): ...new pass_data instance and...
19926 (make_pass_all_early_optimizations): ...new function.
19927 (pass_all_optimizations): Convert from a global struct to a subclass
19928 of gimple_opt_pass along with...
19929 (pass_data_all_optimizations): ...new pass_data instance and...
19930 (make_pass_all_optimizations): ...new function.
19931 (pass_all_optimizations_g): Convert from a global struct to a subclass
19932 of gimple_opt_pass along with...
19933 (pass_data_all_optimizations_g): ...new pass_data instance and...
19934 (make_pass_all_optimizations_g): ...new function.
19935 (pass_rest_of_compilation): Convert from a global struct to a subclass
19936 of rtl_opt_pass along with...
19937 (pass_data_rest_of_compilation): ...new pass_data instance and...
19938 (make_pass_rest_of_compilation): ...new function.
19939 (pass_postreload): Convert from a global struct to a subclass of
19940 rtl_opt_pass along with...
19941 (pass_data_postreload): ...new pass_data instance and...
19942 (make_pass_postreload): ...new function.
19943 * postreload-gcse.c (pass_gcse2): Convert from a global struct to a
19944 subclass of rtl_opt_pass along with...
19945 (pass_data_gcse2): ...new pass_data instance and...
19946 (make_pass_gcse2): ...new function.
19947 * postreload.c (pass_postreload_cse): Convert from a global struct to
19948 a subclass of rtl_opt_pass along with...
19949 (pass_data_postreload_cse): ...new pass_data instance and...
19950 (make_pass_postreload_cse): ...new function.
19951 * predict.c (pass_profile): Convert from a global struct to a subclass
19952 of gimple_opt_pass along with...
19953 (pass_data_profile): ...new pass_data instance and...
19954 (make_pass_profile): ...new function.
19955 (pass_strip_predict_hints): Convert from a global struct to a subclass
19956 of gimple_opt_pass along with...
19957 (pass_data_strip_predict_hints): ...new pass_data instance and...
19958 (make_pass_strip_predict_hints): ...new function.
19959 * recog.c (pass_peephole2): Convert from a global struct to a subclass
19960 of rtl_opt_pass along with...
19961 (pass_data_peephole2): ...new pass_data instance and...
19962 (make_pass_peephole2): ...new function.
19963 (pass_split_all_insns): Convert from a global struct to a subclass of
19964 rtl_opt_pass along with...
19965 (pass_data_split_all_insns): ...new pass_data instance and...
19966 (make_pass_split_all_insns): ...new function.
19967 (pass_split_after_reload): Convert from a global struct to a subclass
19968 of rtl_opt_pass along with...
19969 (pass_data_split_after_reload): ...new pass_data instance and...
19970 (make_pass_split_after_reload): ...new function.
19971 (pass_split_before_regstack): Convert from a global struct to a
19972 subclass of rtl_opt_pass along with...
19973 (pass_data_split_before_regstack): ...new pass_data instance and...
19974 (make_pass_split_before_regstack): ...new function.
19975 (pass_split_before_sched2): Convert from a global struct to a subclass
19976 of rtl_opt_pass along with...
19977 (pass_data_split_before_sched2): ...new pass_data instance and...
19978 (make_pass_split_before_sched2): ...new function.
19979 (pass_split_for_shorten_branches): Convert from a global struct to a
19980 subclass of rtl_opt_pass along with...
19981 (pass_data_split_for_shorten_branches): ...new pass_data instance
19983 (make_pass_split_for_shorten_branches): ...new function.
19984 * ree.c (pass_ree): Convert from a global struct to a subclass of
19985 rtl_opt_pass along with...
19986 (pass_data_ree): ...new pass_data instance and...
19987 (make_pass_ree): ...new function.
19988 * reg-stack.c (pass_stack_regs): Convert from a global struct to a
19989 subclass of rtl_opt_pass along with...
19990 (pass_data_stack_regs): ...new pass_data instance and...
19991 (make_pass_stack_regs): ...new function.
19992 (pass_stack_regs_run): Convert from a global struct to a subclass of
19993 rtl_opt_pass along with...
19994 (pass_data_stack_regs_run): ...new pass_data instance and...
19995 (make_pass_stack_regs_run): ...new function.
19996 * regcprop.c (pass_cprop_hardreg): Convert from a global struct to a
19997 subclass of rtl_opt_pass along with...
19998 (pass_data_cprop_hardreg): ...new pass_data instance and...
19999 (make_pass_cprop_hardreg): ...new function.
20000 * reginfo.c (pass_reginfo_init): Convert from a global struct to a
20001 subclass of rtl_opt_pass along with...
20002 (pass_data_reginfo_init): ...new pass_data instance and...
20003 (make_pass_reginfo_init): ...new function.
20004 * regmove.c (pass_regmove): Convert from a global struct to a subclass
20005 of rtl_opt_pass along with...
20006 (pass_data_regmove): ...new pass_data instance and...
20007 (make_pass_regmove): ...new function.
20008 * regrename.c (pass_regrename): Convert from a global struct to a
20009 subclass of rtl_opt_pass along with...
20010 (pass_data_regrename): ...new pass_data instance and...
20011 (make_pass_regrename): ...new function.
20012 * reorg.c (pass_delay_slots): Convert from a global struct to a
20013 subclass of rtl_opt_pass along with...
20014 (pass_data_delay_slots): ...new pass_data instance and...
20015 (make_pass_delay_slots): ...new function.
20016 (pass_machine_reorg): Convert from a global struct to a subclass of
20017 rtl_opt_pass along with...
20018 (pass_data_machine_reorg): ...new pass_data instance and...
20019 (make_pass_machine_reorg): ...new function.
20020 * sched-rgn.c (pass_sched): Convert from a global struct to a subclass
20021 of rtl_opt_pass along with...
20022 (pass_data_sched): ...new pass_data instance and...
20023 (make_pass_sched): ...new function.
20024 (pass_sched2): Convert from a global struct to a subclass of
20025 rtl_opt_pass along with...
20026 (pass_data_sched2): ...new pass_data instance and...
20027 (make_pass_sched2): ...new function.
20028 * stack-ptr-mod.c (pass_stack_ptr_mod): Convert from a global struct
20029 to a subclass of rtl_opt_pass along with...
20030 (pass_data_stack_ptr_mod): ...new pass_data instance and...
20031 (make_pass_stack_ptr_mod): ...new function.
20032 * store-motion.c (pass_rtl_store_motion): Convert from a global struct
20033 to a subclass of rtl_opt_pass along with...
20034 (pass_data_rtl_store_motion): ...new pass_data instance and...
20035 (make_pass_rtl_store_motion): ...new function.
20036 * tracer.c (pass_tracer): Convert from a global struct to a subclass
20037 of gimple_opt_pass along with...
20038 (pass_data_tracer): ...new pass_data instance and...
20039 (make_pass_tracer): ...new function.
20040 * trans-mem.c (pass_diagnose_tm_blocks): Convert from a global struct
20041 to a subclass of gimple_opt_pass along with...
20042 (pass_data_diagnose_tm_blocks): ...new pass_data instance and...
20043 (make_pass_diagnose_tm_blocks): ...new function.
20044 (pass_lower_tm): Convert from a global struct to a subclass of
20045 gimple_opt_pass along with...
20046 (pass_data_lower_tm): ...new pass_data instance and...
20047 (make_pass_lower_tm): ...new function.
20048 (pass_tm_init): Convert from a global struct to a subclass of
20049 gimple_opt_pass along with...
20050 (pass_data_tm_init): ...new pass_data instance and...
20051 (make_pass_tm_init): ...new function.
20052 (pass_tm_mark): Convert from a global struct to a subclass of
20053 gimple_opt_pass along with...
20054 (pass_data_tm_mark): ...new pass_data instance and...
20055 (make_pass_tm_mark): ...new function.
20056 (pass_tm_edges): Convert from a global struct to a subclass of
20057 gimple_opt_pass along with...
20058 (pass_data_tm_edges): ...new pass_data instance and...
20059 (make_pass_tm_edges): ...new function.
20060 (pass_tm_memopt): Convert from a global struct to a subclass of
20061 gimple_opt_pass along with...
20062 (pass_data_tm_memopt): ...new pass_data instance and...
20063 (make_pass_tm_memopt): ...new function.
20064 (pass_ipa_tm): Convert from a global struct to a subclass of
20065 simple_ipa_opt_pass along with...
20066 (pass_data_ipa_tm): ...new pass_data instance and...
20067 (make_pass_ipa_tm): ...new function.
20068 * tree-call-cdce.c (pass_call_cdce): Convert from a global struct to a
20069 subclass of gimple_opt_pass along with...
20070 (pass_data_call_cdce): ...new pass_data instance and...
20071 (make_pass_call_cdce): ...new function.
20072 * tree-cfg.c (pass_build_cfg): Convert from a global struct to a
20073 subclass of gimple_opt_pass along with...
20074 (pass_data_build_cfg): ...new pass_data instance and...
20075 (make_pass_build_cfg): ...new function.
20076 (pass_split_crit_edges): Convert from a global struct to a subclass of
20077 gimple_opt_pass along with...
20078 (pass_data_split_crit_edges): ...new pass_data instance and...
20079 (make_pass_split_crit_edges): ...new function.
20080 (pass_warn_function_return): Convert from a global struct to a
20081 subclass of gimple_opt_pass along with...
20082 (pass_data_warn_function_return): ...new pass_data instance and...
20083 (make_pass_warn_function_return): ...new function.
20084 (pass_warn_function_noreturn): Convert from a global struct to a
20085 subclass of gimple_opt_pass along with...
20086 (pass_data_warn_function_noreturn): ...new pass_data instance and...
20087 (make_pass_warn_function_noreturn): ...new function.
20088 (pass_warn_unused_result): Convert from a global struct to a subclass
20089 of gimple_opt_pass along with...
20090 (pass_data_warn_unused_result): ...new pass_data instance and...
20091 (make_pass_warn_unused_result): ...new function.
20092 * tree-cfgcleanup.c (pass_merge_phi): Convert from a global struct to
20093 a subclass of gimple_opt_pass along with...
20094 (pass_data_merge_phi): ...new pass_data instance and...
20095 (make_pass_merge_phi): ...new function.
20096 * tree-complex.c (pass_lower_complex): Convert from a global struct to
20097 a subclass of gimple_opt_pass along with...
20098 (pass_data_lower_complex): ...new pass_data instance and...
20099 (make_pass_lower_complex): ...new function.
20100 (pass_lower_complex_O0): Convert from a global struct to a subclass of
20101 gimple_opt_pass along with...
20102 (pass_data_lower_complex_O0): ...new pass_data instance and...
20103 (make_pass_lower_complex_O0): ...new function.
20104 * tree-eh.c (pass_lower_eh): Convert from a global struct to a
20105 subclass of gimple_opt_pass along with...
20106 (pass_data_lower_eh): ...new pass_data instance and...
20107 (make_pass_lower_eh): ...new function.
20108 (pass_refactor_eh): Convert from a global struct to a subclass of
20109 gimple_opt_pass along with...
20110 (pass_data_refactor_eh): ...new pass_data instance and...
20111 (make_pass_refactor_eh): ...new function.
20112 (pass_lower_resx): Convert from a global struct to a subclass of
20113 gimple_opt_pass along with...
20114 (pass_data_lower_resx): ...new pass_data instance and...
20115 (make_pass_lower_resx): ...new function.
20116 (pass_lower_eh_dispatch): Convert from a global struct to a subclass
20117 of gimple_opt_pass along with...
20118 (pass_data_lower_eh_dispatch): ...new pass_data instance and...
20119 (make_pass_lower_eh_dispatch): ...new function.
20120 (pass_cleanup_eh): Convert from a global struct to a subclass of
20121 gimple_opt_pass along with...
20122 (pass_data_cleanup_eh): ...new pass_data instance and...
20123 (make_pass_cleanup_eh): ...new function.
20124 * tree-emutls.c (pass_ipa_lower_emutls): Convert from a global struct
20125 to a subclass of simple_ipa_opt_pass along with...
20126 (pass_data_ipa_lower_emutls): ...new pass_data instance and...
20127 (make_pass_ipa_lower_emutls): ...new function.
20128 * tree-if-conv.c (pass_if_conversion): Convert from a global struct to
20129 a subclass of gimple_opt_pass along with...
20130 (pass_data_if_conversion): ...new pass_data instance and...
20131 (make_pass_if_conversion): ...new function.
20132 * tree-into-ssa.c (pass_build_ssa): Convert from a global struct to a
20133 subclass of gimple_opt_pass along with...
20134 (pass_data_build_ssa): ...new pass_data instance and...
20135 (make_pass_build_ssa): ...new function.
20136 * tree-loop-distribution.c (pass_loop_distribution): Convert from a
20137 global struct to a subclass of gimple_opt_pass along with...
20138 (pass_data_loop_distribution): ...new pass_data instance and...
20139 (make_pass_loop_distribution): ...new function.
20140 * tree-mudflap.c (pass_mudflap_1): Convert from a global struct to a
20141 subclass of gimple_opt_pass along with...
20142 (pass_data_mudflap_1): ...new pass_data instance and...
20143 (make_pass_mudflap_1): ...new function.
20144 (pass_mudflap_2): Convert from a global struct to a subclass of
20145 gimple_opt_pass along with...
20146 (pass_data_mudflap_2): ...new pass_data instance and...
20147 (make_pass_mudflap_2): ...new function.
20148 * tree-nomudflap.c (pass_mudflap_1): Convert from a global struct to a
20149 subclass of gimple_opt_pass along with...
20150 (pass_data_mudflap_1): ...new pass_data instance and...
20151 (make_pass_mudflap_1): ...new function.
20152 (pass_mudflap_2): Convert from a global struct to a subclass of
20153 gimple_opt_pass along with...
20154 (pass_data_mudflap_2): ...new pass_data instance and...
20155 (make_pass_mudflap_2): ...new function.
20156 * tree-nrv.c (pass_nrv): Convert from a global struct to a subclass of
20157 gimple_opt_pass along with...
20158 (pass_data_nrv): ...new pass_data instance and...
20159 (make_pass_nrv): ...new function.
20160 (pass_return_slot): Convert from a global struct to a subclass of
20161 gimple_opt_pass along with...
20162 (pass_data_return_slot): ...new pass_data instance and...
20163 (make_pass_return_slot): ...new function.
20164 * tree-object-size.c (pass_object_sizes): Convert from a global struct
20165 to a subclass of gimple_opt_pass along with...
20166 (pass_data_object_sizes): ...new pass_data instance and...
20167 (make_pass_object_sizes): ...new function.
20168 * tree-optimize.c (pass_cleanup_cfg_post_optimizing): Convert from a
20169 global struct to a subclass of gimple_opt_pass along with...
20170 (pass_data_cleanup_cfg_post_optimizing): ...new pass_data instance
20172 (make_pass_cleanup_cfg_post_optimizing): ...new function.
20173 (pass_fixup_cfg): Convert from a global struct to a subclass of
20174 gimple_opt_pass along with...
20175 (pass_data_fixup_cfg): ...new pass_data instance and...
20176 (make_pass_fixup_cfg): ...new function.
20177 * tree-pass.h (pass_mudflap_1): Replace declaration with that of...
20178 (make_pass_mudflap_1): ...new function.
20179 (pass_mudflap_2): Replace declaration with that of...
20180 (make_pass_mudflap_2): ...new function.
20181 (pass_asan): Replace declaration with that of...
20182 (make_pass_asan): ...new function.
20183 (pass_asan_O0): Replace declaration with that of...
20184 (make_pass_asan_O0): ...new function.
20185 (pass_tsan): Replace declaration with that of...
20186 (make_pass_tsan): ...new function.
20187 (pass_tsan_O0): Replace declaration with that of...
20188 (make_pass_tsan_O0): ...new function.
20189 (pass_lower_cf): Replace declaration with that of...
20190 (make_pass_lower_cf): ...new function.
20191 (pass_refactor_eh): Replace declaration with that of...
20192 (make_pass_refactor_eh): ...new function.
20193 (pass_lower_eh): Replace declaration with that of...
20194 (make_pass_lower_eh): ...new function.
20195 (pass_lower_eh_dispatch): Replace declaration with that of...
20196 (make_pass_lower_eh_dispatch): ...new function.
20197 (pass_lower_resx): Replace declaration with that of...
20198 (make_pass_lower_resx): ...new function.
20199 (pass_build_cfg): Replace declaration with that of...
20200 (make_pass_build_cfg): ...new function.
20201 (pass_early_tree_profile): Replace declaration with that of...
20202 (make_pass_early_tree_profile): ...new function.
20203 (pass_cleanup_eh): Replace declaration with that of...
20204 (make_pass_cleanup_eh): ...new function.
20205 (pass_sra): Replace declaration with that of...
20206 (make_pass_sra): ...new function.
20207 (pass_sra_early): Replace declaration with that of...
20208 (make_pass_sra_early): ...new function.
20209 (pass_early_ipa_sra): Replace declaration with that of...
20210 (make_pass_early_ipa_sra): ...new function.
20211 (pass_tail_recursion): Replace declaration with that of...
20212 (make_pass_tail_recursion): ...new function.
20213 (pass_tail_calls): Replace declaration with that of...
20214 (make_pass_tail_calls): ...new function.
20215 (pass_tree_loop): Replace declaration with that of...
20216 (make_pass_tree_loop): ...new function.
20217 (pass_tree_loop_init): Replace declaration with that of...
20218 (make_pass_tree_loop_init): ...new function.
20219 (pass_lim): Replace declaration with that of...
20220 (make_pass_lim): ...new function.
20221 (pass_tree_unswitch): Replace declaration with that of...
20222 (make_pass_tree_unswitch): ...new function.
20223 (pass_predcom): Replace declaration with that of...
20224 (make_pass_predcom): ...new function.
20225 (pass_iv_canon): Replace declaration with that of...
20226 (make_pass_iv_canon): ...new function.
20227 (pass_scev_cprop): Replace declaration with that of...
20228 (make_pass_scev_cprop): ...new function.
20229 (pass_empty_loop): Replace declaration with that of...
20230 (make_pass_empty_loop): ...new function.
20231 (pass_record_bounds): Replace declaration with that of...
20232 (make_pass_record_bounds): ...new function.
20233 (pass_graphite): Replace declaration with that of...
20234 (make_pass_graphite): ...new function.
20235 (pass_graphite_transforms): Replace declaration with that of...
20236 (make_pass_graphite_transforms): ...new function.
20237 (pass_if_conversion): Replace declaration with that of...
20238 (make_pass_if_conversion): ...new function.
20239 (pass_loop_distribution): Replace declaration with that of...
20240 (make_pass_loop_distribution): ...new function.
20241 (pass_vectorize): Replace declaration with that of...
20242 (make_pass_vectorize): ...new function.
20243 (pass_slp_vectorize): Replace declaration with that of...
20244 (make_pass_slp_vectorize): ...new function.
20245 (pass_complete_unroll): Replace declaration with that of...
20246 (make_pass_complete_unroll): ...new function.
20247 (pass_complete_unrolli): Replace declaration with that of...
20248 (make_pass_complete_unrolli): ...new function.
20249 (pass_parallelize_loops): Replace declaration with that of...
20250 (make_pass_parallelize_loops): ...new function.
20251 (pass_loop_prefetch): Replace declaration with that of...
20252 (make_pass_loop_prefetch): ...new function.
20253 (pass_iv_optimize): Replace declaration with that of...
20254 (make_pass_iv_optimize): ...new function.
20255 (pass_tree_loop_done): Replace declaration with that of...
20256 (make_pass_tree_loop_done): ...new function.
20257 (pass_ch): Replace declaration with that of...
20258 (make_pass_ch): ...new function.
20259 (pass_ccp): Replace declaration with that of...
20260 (make_pass_ccp): ...new function.
20261 (pass_phi_only_cprop): Replace declaration with that of...
20262 (make_pass_phi_only_cprop): ...new function.
20263 (pass_build_ssa): Replace declaration with that of...
20264 (make_pass_build_ssa): ...new function.
20265 (pass_build_alias): Replace declaration with that of...
20266 (make_pass_build_alias): ...new function.
20267 (pass_build_ealias): Replace declaration with that of...
20268 (make_pass_build_ealias): ...new function.
20269 (pass_dominator): Replace declaration with that of...
20270 (make_pass_dominator): ...new function.
20271 (pass_dce): Replace declaration with that of...
20272 (make_pass_dce): ...new function.
20273 (pass_dce_loop): Replace declaration with that of...
20274 (make_pass_dce_loop): ...new function.
20275 (pass_cd_dce): Replace declaration with that of...
20276 (make_pass_cd_dce): ...new function.
20277 (pass_call_cdce): Replace declaration with that of...
20278 (make_pass_call_cdce): ...new function.
20279 (pass_merge_phi): Replace declaration with that of...
20280 (make_pass_merge_phi): ...new function.
20281 (pass_split_crit_edges): Replace declaration with that of...
20282 (make_pass_split_crit_edges): ...new function.
20283 (pass_pre): Replace declaration with that of...
20284 (make_pass_pre): ...new function.
20285 (pass_profile): Replace declaration with that of...
20286 (make_pass_profile): ...new function.
20287 (pass_strip_predict_hints): Replace declaration with that of...
20288 (make_pass_strip_predict_hints): ...new function.
20289 (pass_lower_complex_O0): Replace declaration with that of...
20290 (make_pass_lower_complex_O0): ...new function.
20291 (pass_lower_complex): Replace declaration with that of...
20292 (make_pass_lower_complex): ...new function.
20293 (pass_lower_vector): Replace declaration with that of...
20294 (make_pass_lower_vector): ...new function.
20295 (pass_lower_vector_ssa): Replace declaration with that of...
20296 (make_pass_lower_vector_ssa): ...new function.
20297 (pass_lower_omp): Replace declaration with that of...
20298 (make_pass_lower_omp): ...new function.
20299 (pass_diagnose_omp_blocks): Replace declaration with that of...
20300 (make_pass_diagnose_omp_blocks): ...new function.
20301 (pass_expand_omp): Replace declaration with that of...
20302 (make_pass_expand_omp): ...new function.
20303 (pass_expand_omp_ssa): Replace declaration with that of...
20304 (make_pass_expand_omp_ssa): ...new function.
20305 (pass_object_sizes): Replace declaration with that of...
20306 (make_pass_object_sizes): ...new function.
20307 (pass_strlen): Replace declaration with that of...
20308 (make_pass_strlen): ...new function.
20309 (pass_fold_builtins): Replace declaration with that of...
20310 (make_pass_fold_builtins): ...new function.
20311 (pass_stdarg): Replace declaration with that of...
20312 (make_pass_stdarg): ...new function.
20313 (pass_early_warn_uninitialized): Replace declaration with that of...
20314 (make_pass_early_warn_uninitialized): ...new function.
20315 (pass_late_warn_uninitialized): Replace declaration with that of...
20316 (make_pass_late_warn_uninitialized): ...new function.
20317 (pass_cse_reciprocals): Replace declaration with that of...
20318 (make_pass_cse_reciprocals): ...new function.
20319 (pass_cse_sincos): Replace declaration with that of...
20320 (make_pass_cse_sincos): ...new function.
20321 (pass_optimize_bswap): Replace declaration with that of...
20322 (make_pass_optimize_bswap): ...new function.
20323 (pass_optimize_widening_mul): Replace declaration with that of...
20324 (make_pass_optimize_widening_mul): ...new function.
20325 (pass_warn_function_return): Replace declaration with that of...
20326 (make_pass_warn_function_return): ...new function.
20327 (pass_warn_function_noreturn): Replace declaration with that of...
20328 (make_pass_warn_function_noreturn): ...new function.
20329 (pass_cselim): Replace declaration with that of...
20330 (make_pass_cselim): ...new function.
20331 (pass_phiopt): Replace declaration with that of...
20332 (make_pass_phiopt): ...new function.
20333 (pass_forwprop): Replace declaration with that of...
20334 (make_pass_forwprop): ...new function.
20335 (pass_phiprop): Replace declaration with that of...
20336 (make_pass_phiprop): ...new function.
20337 (pass_tree_ifcombine): Replace declaration with that of...
20338 (make_pass_tree_ifcombine): ...new function.
20339 (pass_dse): Replace declaration with that of...
20340 (make_pass_dse): ...new function.
20341 (pass_nrv): Replace declaration with that of...
20342 (make_pass_nrv): ...new function.
20343 (pass_rename_ssa_copies): Replace declaration with that of...
20344 (make_pass_rename_ssa_copies): ...new function.
20345 (pass_sink_code): Replace declaration with that of...
20346 (make_pass_sink_code): ...new function.
20347 (pass_fre): Replace declaration with that of...
20348 (make_pass_fre): ...new function.
20349 (pass_check_data_deps): Replace declaration with that of...
20350 (make_pass_check_data_deps): ...new function.
20351 (pass_copy_prop): Replace declaration with that of...
20352 (make_pass_copy_prop): ...new function.
20353 (pass_vrp): Replace declaration with that of...
20354 (make_pass_vrp): ...new function.
20355 (pass_uncprop): Replace declaration with that of...
20356 (make_pass_uncprop): ...new function.
20357 (pass_return_slot): Replace declaration with that of...
20358 (make_pass_return_slot): ...new function.
20359 (pass_reassoc): Replace declaration with that of...
20360 (make_pass_reassoc): ...new function.
20361 (pass_rebuild_cgraph_edges): Replace declaration with that of...
20362 (make_pass_rebuild_cgraph_edges): ...new function.
20363 (pass_remove_cgraph_callee_edges): Replace declaration with that of...
20364 (make_pass_remove_cgraph_callee_edges): ...new function.
20365 (pass_build_cgraph_edges): Replace declaration with that of...
20366 (make_pass_build_cgraph_edges): ...new function.
20367 (pass_local_pure_const): Replace declaration with that of...
20368 (make_pass_local_pure_const): ...new function.
20369 (pass_tracer): Replace declaration with that of...
20370 (make_pass_tracer): ...new function.
20371 (pass_warn_unused_result): Replace declaration with that of...
20372 (make_pass_warn_unused_result): ...new function.
20373 (pass_diagnose_tm_blocks): Replace declaration with that of...
20374 (make_pass_diagnose_tm_blocks): ...new function.
20375 (pass_lower_tm): Replace declaration with that of...
20376 (make_pass_lower_tm): ...new function.
20377 (pass_tm_init): Replace declaration with that of...
20378 (make_pass_tm_init): ...new function.
20379 (pass_tm_mark): Replace declaration with that of...
20380 (make_pass_tm_mark): ...new function.
20381 (pass_tm_memopt): Replace declaration with that of...
20382 (make_pass_tm_memopt): ...new function.
20383 (pass_tm_edges): Replace declaration with that of...
20384 (make_pass_tm_edges): ...new function.
20385 (pass_split_functions): Replace declaration with that of...
20386 (make_pass_split_functions): ...new function.
20387 (pass_feedback_split_functions): Replace declaration with that of...
20388 (make_pass_feedback_split_functions): ...new function.
20389 (pass_strength_reduction): Replace declaration with that of...
20390 (make_pass_strength_reduction): ...new function.
20391 (pass_ipa_lower_emutls): Replace declaration with that of...
20392 (make_pass_ipa_lower_emutls): ...new function.
20393 (pass_ipa_function_and_variable_visibility): Replace declaration with
20395 (make_pass_ipa_function_and_variable_visibility): ...new function.
20396 (pass_ipa_tree_profile): Replace declaration with that of...
20397 (make_pass_ipa_tree_profile): ...new function.
20398 (pass_early_local_passes): Replace declaration with that of...
20399 (make_pass_early_local_passes): ...new function.
20400 (pass_ipa_whole_program_visibility): Replace declaration with that
20402 (make_pass_ipa_whole_program_visibility): ...new function.
20403 (pass_ipa_lto_gimple_out): Replace declaration with that of...
20404 (make_pass_ipa_lto_gimple_out): ...new function.
20405 (pass_ipa_increase_alignment): Replace declaration with that of...
20406 (make_pass_ipa_increase_alignment): ...new function.
20407 (pass_ipa_inline): Replace declaration with that of...
20408 (make_pass_ipa_inline): ...new function.
20409 (pass_ipa_free_lang_data): Replace declaration with that of...
20410 (make_pass_ipa_free_lang_data): ...new function.
20411 (pass_ipa_free_inline_summary): Replace declaration with that of...
20412 (make_pass_ipa_free_inline_summary): ...new function.
20413 (pass_ipa_cp): Replace declaration with that of...
20414 (make_pass_ipa_cp): ...new function.
20415 (pass_ipa_reference): Replace declaration with that of...
20416 (make_pass_ipa_reference): ...new function.
20417 (pass_ipa_pure_const): Replace declaration with that of...
20418 (make_pass_ipa_pure_const): ...new function.
20419 (pass_ipa_pta): Replace declaration with that of...
20420 (make_pass_ipa_pta): ...new function.
20421 (pass_ipa_lto_finish_out): Replace declaration with that of...
20422 (make_pass_ipa_lto_finish_out): ...new function.
20423 (pass_ipa_tm): Replace declaration with that of...
20424 (make_pass_ipa_tm): ...new function.
20425 (pass_ipa_profile): Replace declaration with that of...
20426 (make_pass_ipa_profile): ...new function.
20427 (pass_ipa_cdtor_merge): Replace declaration with that of...
20428 (make_pass_ipa_cdtor_merge): ...new function.
20429 (pass_cleanup_cfg_post_optimizing): Replace declaration with that
20431 (make_pass_cleanup_cfg_post_optimizing): ...new function.
20432 (pass_init_datastructures): Replace declaration with that of...
20433 (make_pass_init_datastructures): ...new function.
20434 (pass_fixup_cfg): Replace declaration with that of...
20435 (make_pass_fixup_cfg): ...new function.
20436 (pass_expand): Replace declaration with that of...
20437 (make_pass_expand): ...new function.
20438 (pass_instantiate_virtual_regs): Replace declaration with that of...
20439 (make_pass_instantiate_virtual_regs): ...new function.
20440 (pass_rtl_fwprop): Replace declaration with that of...
20441 (make_pass_rtl_fwprop): ...new function.
20442 (pass_rtl_fwprop_addr): Replace declaration with that of...
20443 (make_pass_rtl_fwprop_addr): ...new function.
20444 (pass_jump): Replace declaration with that of...
20445 (make_pass_jump): ...new function.
20446 (pass_jump2): Replace declaration with that of...
20447 (make_pass_jump2): ...new function.
20448 (pass_lower_subreg): Replace declaration with that of...
20449 (make_pass_lower_subreg): ...new function.
20450 (pass_cse): Replace declaration with that of...
20451 (make_pass_cse): ...new function.
20452 (pass_fast_rtl_dce): Replace declaration with that of...
20453 (make_pass_fast_rtl_dce): ...new function.
20454 (pass_ud_rtl_dce): Replace declaration with that of...
20455 (make_pass_ud_rtl_dce): ...new function.
20456 (pass_rtl_dce): Replace declaration with that of...
20457 (make_pass_rtl_dce): ...new function.
20458 (pass_rtl_dse1): Replace declaration with that of...
20459 (make_pass_rtl_dse1): ...new function.
20460 (pass_rtl_dse2): Replace declaration with that of...
20461 (make_pass_rtl_dse2): ...new function.
20462 (pass_rtl_dse3): Replace declaration with that of...
20463 (make_pass_rtl_dse3): ...new function.
20464 (pass_rtl_cprop): Replace declaration with that of...
20465 (make_pass_rtl_cprop): ...new function.
20466 (pass_rtl_pre): Replace declaration with that of...
20467 (make_pass_rtl_pre): ...new function.
20468 (pass_rtl_hoist): Replace declaration with that of...
20469 (make_pass_rtl_hoist): ...new function.
20470 (pass_rtl_store_motion): Replace declaration with that of...
20471 (make_pass_rtl_store_motion): ...new function.
20472 (pass_cse_after_global_opts): Replace declaration with that of...
20473 (make_pass_cse_after_global_opts): ...new function.
20474 (pass_rtl_ifcvt): Replace declaration with that of...
20475 (make_pass_rtl_ifcvt): ...new function.
20476 (pass_into_cfg_layout_mode): Replace declaration with that of...
20477 (make_pass_into_cfg_layout_mode): ...new function.
20478 (pass_outof_cfg_layout_mode): Replace declaration with that of...
20479 (make_pass_outof_cfg_layout_mode): ...new function.
20480 (pass_loop2): Replace declaration with that of...
20481 (make_pass_loop2): ...new function.
20482 (pass_rtl_loop_init): Replace declaration with that of...
20483 (make_pass_rtl_loop_init): ...new function.
20484 (pass_rtl_move_loop_invariants): Replace declaration with that of...
20485 (make_pass_rtl_move_loop_invariants): ...new function.
20486 (pass_rtl_unswitch): Replace declaration with that of...
20487 (make_pass_rtl_unswitch): ...new function.
20488 (pass_rtl_unroll_and_peel_loops): Replace declaration with that of...
20489 (make_pass_rtl_unroll_and_peel_loops): ...new function.
20490 (pass_rtl_doloop): Replace declaration with that of...
20491 (make_pass_rtl_doloop): ...new function.
20492 (pass_rtl_loop_done): Replace declaration with that of...
20493 (make_pass_rtl_loop_done): ...new function.
20494 (pass_web): Replace declaration with that of...
20495 (make_pass_web): ...new function.
20496 (pass_cse2): Replace declaration with that of...
20497 (make_pass_cse2): ...new function.
20498 (pass_df_initialize_opt): Replace declaration with that of...
20499 (make_pass_df_initialize_opt): ...new function.
20500 (pass_df_initialize_no_opt): Replace declaration with that of...
20501 (make_pass_df_initialize_no_opt): ...new function.
20502 (pass_reginfo_init): Replace declaration with that of...
20503 (make_pass_reginfo_init): ...new function.
20504 (pass_inc_dec): Replace declaration with that of...
20505 (make_pass_inc_dec): ...new function.
20506 (pass_stack_ptr_mod): Replace declaration with that of...
20507 (make_pass_stack_ptr_mod): ...new function.
20508 (pass_initialize_regs): Replace declaration with that of...
20509 (make_pass_initialize_regs): ...new function.
20510 (pass_combine): Replace declaration with that of...
20511 (make_pass_combine): ...new function.
20512 (pass_if_after_combine): Replace declaration with that of...
20513 (make_pass_if_after_combine): ...new function.
20514 (pass_ree): Replace declaration with that of...
20515 (make_pass_ree): ...new function.
20516 (pass_partition_blocks): Replace declaration with that of...
20517 (make_pass_partition_blocks): ...new function.
20518 (pass_match_asm_constraints): Replace declaration with that of...
20519 (make_pass_match_asm_constraints): ...new function.
20520 (pass_regmove): Replace declaration with that of...
20521 (make_pass_regmove): ...new function.
20522 (pass_split_all_insns): Replace declaration with that of...
20523 (make_pass_split_all_insns): ...new function.
20524 (pass_fast_rtl_byte_dce): Replace declaration with that of...
20525 (make_pass_fast_rtl_byte_dce): ...new function.
20526 (pass_lower_subreg2): Replace declaration with that of...
20527 (make_pass_lower_subreg2): ...new function.
20528 (pass_mode_switching): Replace declaration with that of...
20529 (make_pass_mode_switching): ...new function.
20530 (pass_sms): Replace declaration with that of...
20531 (make_pass_sms): ...new function.
20532 (pass_sched): Replace declaration with that of...
20533 (make_pass_sched): ...new function.
20534 (pass_ira): Replace declaration with that of...
20535 (make_pass_ira): ...new function.
20536 (pass_reload): Replace declaration with that of...
20537 (make_pass_reload): ...new function.
20538 (pass_clean_state): Replace declaration with that of...
20539 (make_pass_clean_state): ...new function.
20540 (pass_branch_prob): Replace declaration with that of...
20541 (make_pass_branch_prob): ...new function.
20542 (pass_value_profile_transformations): Replace declaration with that
20544 (make_pass_value_profile_transformations): ...new function.
20545 (pass_postreload_cse): Replace declaration with that of...
20546 (make_pass_postreload_cse): ...new function.
20547 (pass_gcse2): Replace declaration with that of...
20548 (make_pass_gcse2): ...new function.
20549 (pass_split_after_reload): Replace declaration with that of...
20550 (make_pass_split_after_reload): ...new function.
20551 (pass_branch_target_load_optimize1): Replace declaration with that
20553 (make_pass_branch_target_load_optimize1): ...new function.
20554 (pass_thread_prologue_and_epilogue): Replace declaration with that
20556 (make_pass_thread_prologue_and_epilogue): ...new function.
20557 (pass_stack_adjustments): Replace declaration with that of...
20558 (make_pass_stack_adjustments): ...new function.
20559 (pass_peephole2): Replace declaration with that of...
20560 (make_pass_peephole2): ...new function.
20561 (pass_if_after_reload): Replace declaration with that of...
20562 (make_pass_if_after_reload): ...new function.
20563 (pass_regrename): Replace declaration with that of...
20564 (make_pass_regrename): ...new function.
20565 (pass_cprop_hardreg): Replace declaration with that of...
20566 (make_pass_cprop_hardreg): ...new function.
20567 (pass_reorder_blocks): Replace declaration with that of...
20568 (make_pass_reorder_blocks): ...new function.
20569 (pass_branch_target_load_optimize2): Replace declaration with that
20571 (make_pass_branch_target_load_optimize2): ...new function.
20572 (pass_leaf_regs): Replace declaration with that of...
20573 (make_pass_leaf_regs): ...new function.
20574 (pass_split_before_sched2): Replace declaration with that of...
20575 (make_pass_split_before_sched2): ...new function.
20576 (pass_compare_elim_after_reload): Replace declaration with that of...
20577 (make_pass_compare_elim_after_reload): ...new function.
20578 (pass_sched2): Replace declaration with that of...
20579 (make_pass_sched2): ...new function.
20580 (pass_stack_regs): Replace declaration with that of...
20581 (make_pass_stack_regs): ...new function.
20582 (pass_stack_regs_run): Replace declaration with that of...
20583 (make_pass_stack_regs_run): ...new function.
20584 (pass_df_finish): Replace declaration with that of...
20585 (make_pass_df_finish): ...new function.
20586 (pass_compute_alignments): Replace declaration with that of...
20587 (make_pass_compute_alignments): ...new function.
20588 (pass_duplicate_computed_gotos): Replace declaration with that of...
20589 (make_pass_duplicate_computed_gotos): ...new function.
20590 (pass_variable_tracking): Replace declaration with that of...
20591 (make_pass_variable_tracking): ...new function.
20592 (pass_free_cfg): Replace declaration with that of...
20593 (make_pass_free_cfg): ...new function.
20594 (pass_machine_reorg): Replace declaration with that of...
20595 (make_pass_machine_reorg): ...new function.
20596 (pass_cleanup_barriers): Replace declaration with that of...
20597 (make_pass_cleanup_barriers): ...new function.
20598 (pass_delay_slots): Replace declaration with that of...
20599 (make_pass_delay_slots): ...new function.
20600 (pass_split_for_shorten_branches): Replace declaration with that of...
20601 (make_pass_split_for_shorten_branches): ...new function.
20602 (pass_split_before_regstack): Replace declaration with that of...
20603 (make_pass_split_before_regstack): ...new function.
20604 (pass_convert_to_eh_region_ranges): Replace declaration with that
20606 (make_pass_convert_to_eh_region_ranges): ...new function.
20607 (pass_shorten_branches): Replace declaration with that of...
20608 (make_pass_shorten_branches): ...new function.
20609 (pass_set_nothrow_function_flags): Replace declaration with that of...
20610 (make_pass_set_nothrow_function_flags): ...new function.
20611 (pass_dwarf2_frame): Replace declaration with that of...
20612 (make_pass_dwarf2_frame): ...new function.
20613 (pass_final): Replace declaration with that of...
20614 (make_pass_final): ...new function.
20615 (pass_rtl_seqabstr): Replace declaration with that of...
20616 (make_pass_rtl_seqabstr): ...new function.
20617 (pass_release_ssa_names): Replace declaration with that of...
20618 (make_pass_release_ssa_names): ...new function.
20619 (pass_early_inline): Replace declaration with that of...
20620 (make_pass_early_inline): ...new function.
20621 (pass_inline_parameters): Replace declaration with that of...
20622 (make_pass_inline_parameters): ...new function.
20623 (pass_update_address_taken): Replace declaration with that of...
20624 (make_pass_update_address_taken): ...new function.
20625 (pass_convert_switch): Replace declaration with that of...
20626 (make_pass_convert_switch): ...new function.
20627 * tree-profile.c (pass_ipa_tree_profile): Convert from a global struct
20628 to a subclass of simple_ipa_opt_pass along with...
20629 (pass_data_ipa_tree_profile): ...new pass_data instance and...
20630 (make_pass_ipa_tree_profile): ...new function.
20631 * tree-sra.c (pass_sra_early): Convert from a global struct to a
20632 subclass of gimple_opt_pass along with...
20633 (pass_data_sra_early): ...new pass_data instance and...
20634 (make_pass_sra_early): ...new function.
20635 (pass_sra): Convert from a global struct to a subclass of
20636 gimple_opt_pass along with...
20637 (pass_data_sra): ...new pass_data instance and...
20638 (make_pass_sra): ...new function.
20639 (pass_early_ipa_sra): Convert from a global struct to a subclass of
20640 gimple_opt_pass along with...
20641 (pass_data_early_ipa_sra): ...new pass_data instance and...
20642 (make_pass_early_ipa_sra): ...new function.
20643 * tree-ssa-ccp.c (pass_ccp): Convert from a global struct to a
20644 subclass of gimple_opt_pass along with...
20645 (pass_data_ccp): ...new pass_data instance and...
20646 (make_pass_ccp): ...new function.
20647 (pass_fold_builtins): Convert from a global struct to a subclass of
20648 gimple_opt_pass along with...
20649 (pass_data_fold_builtins): ...new pass_data instance and...
20650 (make_pass_fold_builtins): ...new function.
20651 * tree-ssa-copy.c (pass_copy_prop): Convert from a global struct to a
20652 subclass of gimple_opt_pass along with...
20653 (pass_data_copy_prop): ...new pass_data instance and...
20654 (make_pass_copy_prop): ...new function.
20655 * tree-ssa-copyrename.c (pass_rename_ssa_copies): Convert from a
20656 global struct to a subclass of gimple_opt_pass along with...
20657 (pass_data_rename_ssa_copies): ...new pass_data instance and...
20658 (make_pass_rename_ssa_copies): ...new function.
20659 * tree-ssa-dce.c (pass_dce): Convert from a global struct to a
20660 subclass of gimple_opt_pass along with...
20661 (pass_data_dce): ...new pass_data instance and...
20662 (make_pass_dce): ...new function.
20663 (pass_dce_loop): Convert from a global struct to a subclass of
20664 gimple_opt_pass along with...
20665 (pass_data_dce_loop): ...new pass_data instance and...
20666 (make_pass_dce_loop): ...new function.
20667 (pass_cd_dce): Convert from a global struct to a subclass of
20668 gimple_opt_pass along with...
20669 (pass_data_cd_dce): ...new pass_data instance and...
20670 (make_pass_cd_dce): ...new function.
20671 * tree-ssa-dom.c (pass_dominator): Convert from a global struct to a
20672 subclass of gimple_opt_pass along with...
20673 (pass_data_dominator): ...new pass_data instance and...
20674 (make_pass_dominator): ...new function.
20675 (pass_phi_only_cprop): Convert from a global struct to a subclass of
20676 gimple_opt_pass along with...
20677 (pass_data_phi_only_cprop): ...new pass_data instance and...
20678 (make_pass_phi_only_cprop): ...new function.
20679 * tree-ssa-dse.c (pass_dse): Convert from a global struct to a
20680 subclass of gimple_opt_pass along with...
20681 (pass_data_dse): ...new pass_data instance and...
20682 (make_pass_dse): ...new function.
20683 * tree-ssa-forwprop.c (pass_forwprop): Convert from a global struct to
20684 a subclass of gimple_opt_pass along with...
20685 (pass_data_forwprop): ...new pass_data instance and...
20686 (make_pass_forwprop): ...new function.
20687 * tree-ssa-ifcombine.c (pass_tree_ifcombine): Convert from a global
20688 struct to a subclass of gimple_opt_pass along with...
20689 (pass_data_tree_ifcombine): ...new pass_data instance and...
20690 (make_pass_tree_ifcombine): ...new function.
20691 * tree-ssa-loop-ch.c (pass_ch): Convert from a global struct to a
20692 subclass of gimple_opt_pass along with...
20693 (pass_data_ch): ...new pass_data instance and...
20694 (make_pass_ch): ...new function.
20695 * tree-ssa-loop.c (pass_tree_loop): Convert from a global struct to a
20696 subclass of gimple_opt_pass along with...
20697 (pass_data_tree_loop): ...new pass_data instance and...
20698 (make_pass_tree_loop): ...new function.
20699 (pass_tree_loop_init): Convert from a global struct to a subclass of
20700 gimple_opt_pass along with...
20701 (pass_data_tree_loop_init): ...new pass_data instance and...
20702 (make_pass_tree_loop_init): ...new function.
20703 (pass_lim): Convert from a global struct to a subclass of
20704 gimple_opt_pass along with...
20705 (pass_data_lim): ...new pass_data instance and...
20706 (make_pass_lim): ...new function.
20707 (pass_tree_unswitch): Convert from a global struct to a subclass of
20708 gimple_opt_pass along with...
20709 (pass_data_tree_unswitch): ...new pass_data instance and...
20710 (make_pass_tree_unswitch): ...new function.
20711 (pass_predcom): Convert from a global struct to a subclass of
20712 gimple_opt_pass along with...
20713 (pass_data_predcom): ...new pass_data instance and...
20714 (make_pass_predcom): ...new function.
20715 (pass_vectorize): Convert from a global struct to a subclass of
20716 gimple_opt_pass along with...
20717 (pass_data_vectorize): ...new pass_data instance and...
20718 (make_pass_vectorize): ...new function.
20719 (pass_graphite): Convert from a global struct to a subclass of
20720 gimple_opt_pass along with...
20721 (pass_data_graphite): ...new pass_data instance and...
20722 (make_pass_graphite): ...new function.
20723 (pass_graphite_transforms): Convert from a global struct to a subclass
20724 of gimple_opt_pass along with...
20725 (pass_data_graphite_transforms): ...new pass_data instance and...
20726 (make_pass_graphite_transforms): ...new function.
20727 (pass_check_data_deps): Convert from a global struct to a subclass of
20728 gimple_opt_pass along with...
20729 (pass_data_check_data_deps): ...new pass_data instance and...
20730 (make_pass_check_data_deps): ...new function.
20731 (pass_iv_canon): Convert from a global struct to a subclass of
20732 gimple_opt_pass along with...
20733 (pass_data_iv_canon): ...new pass_data instance and...
20734 (make_pass_iv_canon): ...new function.
20735 (pass_scev_cprop): Convert from a global struct to a subclass of
20736 gimple_opt_pass along with...
20737 (pass_data_scev_cprop): ...new pass_data instance and...
20738 (make_pass_scev_cprop): ...new function.
20739 (pass_record_bounds): Convert from a global struct to a subclass of
20740 gimple_opt_pass along with...
20741 (pass_data_record_bounds): ...new pass_data instance and...
20742 (make_pass_record_bounds): ...new function.
20743 (pass_complete_unroll): Convert from a global struct to a subclass of
20744 gimple_opt_pass along with...
20745 (pass_data_complete_unroll): ...new pass_data instance and...
20746 (make_pass_complete_unroll): ...new function.
20747 (pass_complete_unrolli): Convert from a global struct to a subclass of
20748 gimple_opt_pass along with...
20749 (pass_data_complete_unrolli): ...new pass_data instance and...
20750 (make_pass_complete_unrolli): ...new function.
20751 (pass_parallelize_loops): Convert from a global struct to a subclass
20752 of gimple_opt_pass along with...
20753 (pass_data_parallelize_loops): ...new pass_data instance and...
20754 (make_pass_parallelize_loops): ...new function.
20755 (pass_loop_prefetch): Convert from a global struct to a subclass of
20756 gimple_opt_pass along with...
20757 (pass_data_loop_prefetch): ...new pass_data instance and...
20758 (make_pass_loop_prefetch): ...new function.
20759 (pass_iv_optimize): Convert from a global struct to a subclass of
20760 gimple_opt_pass along with...
20761 (pass_data_iv_optimize): ...new pass_data instance and...
20762 (make_pass_iv_optimize): ...new function.
20763 (pass_tree_loop_done): Convert from a global struct to a subclass of
20764 gimple_opt_pass along with...
20765 (pass_data_tree_loop_done): ...new pass_data instance and...
20766 (make_pass_tree_loop_done): ...new function.
20767 * tree-ssa-math-opts.c (pass_cse_reciprocals): Convert from a global
20768 struct to a subclass of gimple_opt_pass along with...
20769 (pass_data_cse_reciprocals): ...new pass_data instance and...
20770 (make_pass_cse_reciprocals): ...new function.
20771 (pass_cse_sincos): Convert from a global struct to a subclass of
20772 gimple_opt_pass along with...
20773 (pass_data_cse_sincos): ...new pass_data instance and...
20774 (make_pass_cse_sincos): ...new function.
20775 (pass_optimize_bswap): Convert from a global struct to a subclass of
20776 gimple_opt_pass along with...
20777 (pass_data_optimize_bswap): ...new pass_data instance and...
20778 (make_pass_optimize_bswap): ...new function.
20779 (pass_optimize_widening_mul): Convert from a global struct to a
20780 subclass of gimple_opt_pass along with...
20781 (pass_data_optimize_widening_mul): ...new pass_data instance and...
20782 (make_pass_optimize_widening_mul): ...new function.
20783 * tree-ssa-phiopt.c (pass_phiopt): Convert from a global struct to a
20784 subclass of gimple_opt_pass along with...
20785 (pass_data_phiopt): ...new pass_data instance and...
20786 (make_pass_phiopt): ...new function.
20787 (pass_cselim): Convert from a global struct to a subclass of
20788 gimple_opt_pass along with...
20789 (pass_data_cselim): ...new pass_data instance and...
20790 (make_pass_cselim): ...new function.
20791 * tree-ssa-phiprop.c (pass_phiprop): Convert from a global struct to a
20792 subclass of gimple_opt_pass along with...
20793 (pass_data_phiprop): ...new pass_data instance and...
20794 (make_pass_phiprop): ...new function.
20795 * tree-ssa-pre.c (pass_pre): Convert from a global struct to a
20796 subclass of gimple_opt_pass along with...
20797 (pass_data_pre): ...new pass_data instance and...
20798 (make_pass_pre): ...new function.
20799 (pass_fre): Convert from a global struct to a subclass of
20800 gimple_opt_pass along with...
20801 (pass_data_fre): ...new pass_data instance and...
20802 (make_pass_fre): ...new function.
20803 * tree-ssa-reassoc.c (pass_reassoc): Convert from a global struct to a
20804 subclass of gimple_opt_pass along with...
20805 (pass_data_reassoc): ...new pass_data instance and...
20806 (make_pass_reassoc): ...new function.
20807 * tree-ssa-sink.c (pass_sink_code): Convert from a global struct to a
20808 subclass of gimple_opt_pass along with...
20809 (pass_data_sink_code): ...new pass_data instance and...
20810 (make_pass_sink_code): ...new function.
20811 * tree-ssa-strlen.c (pass_strlen): Convert from a global struct to a
20812 subclass of gimple_opt_pass along with...
20813 (pass_data_strlen): ...new pass_data instance and...
20814 (make_pass_strlen): ...new function.
20815 * tree-ssa-structalias.c (pass_build_alias): Convert from a global
20816 struct to a subclass of gimple_opt_pass along with...
20817 (pass_data_build_alias): ...new pass_data instance and...
20818 (make_pass_build_alias): ...new function.
20819 (pass_build_ealias): Convert from a global struct to a subclass of
20820 gimple_opt_pass along with...
20821 (pass_data_build_ealias): ...new pass_data instance and...
20822 (make_pass_build_ealias): ...new function.
20823 (pass_ipa_pta): Convert from a global struct to a subclass of
20824 simple_ipa_opt_pass along with...
20825 (pass_data_ipa_pta): ...new pass_data instance and...
20826 (make_pass_ipa_pta): ...new function.
20827 * tree-ssa-uncprop.c (pass_uncprop): Convert from a global struct to a
20828 subclass of gimple_opt_pass along with...
20829 (pass_data_uncprop): ...new pass_data instance and...
20830 (make_pass_uncprop): ...new function.
20831 * tree-ssa-uninit.c (pass_late_warn_uninitialized): Convert from a
20832 global struct to a subclass of gimple_opt_pass along with...
20833 (pass_data_late_warn_uninitialized): ...new pass_data instance and...
20834 (make_pass_late_warn_uninitialized): ...new function.
20835 * tree-ssa.c (pass_init_datastructures): Convert from a global struct
20836 to a subclass of gimple_opt_pass along with...
20837 (pass_data_init_datastructures): ...new pass_data instance and...
20838 (make_pass_init_datastructures): ...new function.
20839 (pass_early_warn_uninitialized): Convert from a global struct to a
20840 subclass of gimple_opt_pass along with...
20841 (pass_data_early_warn_uninitialized): ...new pass_data instance and...
20842 (make_pass_early_warn_uninitialized): ...new function.
20843 (pass_update_address_taken): Convert from a global struct to a
20844 subclass of gimple_opt_pass along with...
20845 (pass_data_update_address_taken): ...new pass_data instance and...
20846 (make_pass_update_address_taken): ...new function.
20847 * tree-ssanames.c (pass_release_ssa_names): Convert from a global
20848 struct to a subclass of gimple_opt_pass along with...
20849 (pass_data_release_ssa_names): ...new pass_data instance and...
20850 (make_pass_release_ssa_names): ...new function.
20851 * tree-stdarg.c (pass_stdarg): Convert from a global struct to a
20852 subclass of gimple_opt_pass along with...
20853 (pass_data_stdarg): ...new pass_data instance and...
20854 (make_pass_stdarg): ...new function.
20855 * tree-switch-conversion.c (pass_convert_switch): Convert from a
20856 global struct to a subclass of gimple_opt_pass along with...
20857 (pass_data_convert_switch): ...new pass_data instance and...
20858 (make_pass_convert_switch): ...new function.
20859 * tree-tailcall.c (pass_tail_recursion): Convert from a global struct
20860 to a subclass of gimple_opt_pass along with...
20861 (pass_data_tail_recursion): ...new pass_data instance and...
20862 (make_pass_tail_recursion): ...new function.
20863 (pass_tail_calls): Convert from a global struct to a subclass of
20864 gimple_opt_pass along with...
20865 (pass_data_tail_calls): ...new pass_data instance and...
20866 (make_pass_tail_calls): ...new function.
20867 * tree-vect-generic.c (pass_lower_vector): Convert from a global
20868 struct to a subclass of gimple_opt_pass along with...
20869 (pass_data_lower_vector): ...new pass_data instance and...
20870 (make_pass_lower_vector): ...new function.
20871 (pass_lower_vector_ssa): Convert from a global struct to a subclass of
20872 gimple_opt_pass along with...
20873 (pass_data_lower_vector_ssa): ...new pass_data instance and...
20874 (make_pass_lower_vector_ssa): ...new function.
20875 * tree-vectorizer.c (pass_slp_vectorize): Convert from a global struct
20876 to a subclass of gimple_opt_pass along with...
20877 (pass_data_slp_vectorize): ...new pass_data instance and...
20878 (make_pass_slp_vectorize): ...new function.
20879 (pass_ipa_increase_alignment): Convert from a global struct to a
20880 subclass of simple_ipa_opt_pass along with...
20881 (pass_data_ipa_increase_alignment): ...new pass_data instance and...
20882 (make_pass_ipa_increase_alignment): ...new function.
20883 * tree-vrp.c (pass_vrp): Convert from a global struct to a subclass of
20884 gimple_opt_pass along with...
20885 (pass_data_vrp): ...new pass_data instance and...
20886 (make_pass_vrp): ...new function.
20887 * tree.c (pass_ipa_free_lang_data): Convert from a global struct to a
20888 subclass of simple_ipa_opt_pass along with...
20889 (pass_data_ipa_free_lang_data): ...new pass_data instance and...
20890 (make_pass_ipa_free_lang_data): ...new function.
20891 * tsan.c (pass_tsan): Convert from a global struct to a subclass of
20892 gimple_opt_pass along with...
20893 (pass_data_tsan): ...new pass_data instance and...
20894 (make_pass_tsan): ...new function.
20895 (pass_tsan_O0): Convert from a global struct to a subclass of
20896 gimple_opt_pass along with...
20897 (pass_data_tsan_O0): ...new pass_data instance and...
20898 (make_pass_tsan_O0): ...new function.
20899 * var-tracking.c (pass_variable_tracking): Convert from a global
20900 struct to a subclass of rtl_opt_pass along with...
20901 (pass_data_variable_tracking): ...new pass_data instance and...
20902 (make_pass_variable_tracking): ...new function.
20903 * web.c (pass_web): Convert from a global struct to a subclass of
20904 rtl_opt_pass along with...
20905 (pass_data_web): ...new pass_data instance and...
20906 (make_pass_web): ...new function.
20907 * config/epiphany/epiphany.h (pass_mode_switch_use): Replace
20908 declaration with that of...
20909 (make_pass_mode_switch_use): ...new function.
20910 (pass_resolve_sw_modes): Replace declaration with that of...
20911 (make_pass_resolve_sw_modes): ...new function.
20912 * config/epiphany/mode-switch-use.c (pass_mode_switch_use): Convert
20913 from a global struct to a subclass of rtl_opt_pass along with...
20914 (pass_data_mode_switch_use): ...new pass_data instance and...
20915 (make_pass_mode_switch_use): ...new function.
20916 * config/epiphany/resolve-sw-modes.c (pass_resolve_sw_modes): Convert
20917 from a global struct to a subclass of rtl_opt_pass along with...
20918 (pass_data_resolve_sw_modes): ...new pass_data instance and...
20919 (make_pass_resolve_sw_modes): ...new function.
20920 * config/i386/i386.c (pass_insert_vzeroupper): Convert from a global
20921 struct to a subclass of rtl_opt_pass along with...
20922 (pass_data_insert_vzeroupper): ...new pass_data instance and...
20923 (make_pass_insert_vzeroupper): ...new function.
20924 * config/sparc/sparc.c (pass_work_around_errata): Convert from a
20925 global struct to a subclass of rtl_opt_pass along with...
20926 (pass_data_work_around_errata): ...new pass_data instance and...
20927 (make_pass_work_around_errata): ...new function.
20928 * config/mips/mips.c (pass_mips_machine_reorg2): Convert from a global
20929 struct to a subclass of rtl_opt_pass along with...
20930 (pass_data_mips_machine_reorg2): ...new pass_data instance and...
20931 (make_pass_mips_machine_reorg2): ...new function.
20933 2013-08-05 David Malcolm <dmalcolm@redhat.com>
20935 * passes.c (pass_manager::operator new): New.
20937 2013-08-05 David Malcolm <dmalcolm@redhat.com>
20939 Handwritten part of conversion of passes to C++ classes.
20941 * Makefile.in (PASS_MANAGER_H): Add dep on pass-instances.def.
20942 (toplev.o): Add dep on PASS_MANAGER_H.
20943 * cgraphunit.c (cgraph_process_new_functions): Rework invocation
20944 of early local pases to reflect this moving from a global to a
20945 member of gcc::pass_manager.
20946 (cgraph_add_new_function): Likewise.
20947 * lto-cgraph.c (lto_output_node): Update for conversion of
20948 struct ipa_opt_pass_d to a C++ subclass of opt_pass.
20949 * passes.c (opt_pass::clone): New.
20950 (opt_pass::gate): New.
20951 (opt_pass::execute): New.
20952 (opt_pass::opt_pass): New.
20953 (pass_manager::execute_early_local_passes): New.
20954 (pass_manager::execute_pass_mode_switching): new.
20955 (finish_optimization_passes): Convert to...
20956 (pass_manager::finish_optimization_passes): ...this.
20957 (finish_optimization_passes): Update for conversion of passes to
20959 (register_dump_files_1): Use has_gate since we cannot portably
20960 check a vtable entry against NULL.
20961 (dump_one_pass): Likewise.
20962 (ipa_write_summaries_2): Likewise.
20963 (ipa_write_optimization_summaries_1): Likewise.
20964 (ipa_read_summaries_1): Likewise.
20965 (ipa_read_optimization_summaries_1): Likewise.
20966 (execute_ipa_stmt_fixups): Likewise.
20967 (pass_manager::pass_manager): Rewrite pass-creation, invoking
20968 pass-creation functions rather than wiring up globals, and
20969 storing the results in fields of pass_manager generated using
20970 pass-instances.def.
20971 (pass_manager::dump_profile_report): Update for conversion of
20972 passes to C++ classes.
20973 (pass_manager::execute_ipa_summary_passes): Likewise.
20974 (execute_one_ipa_transform_pass): Likewise.
20975 (execute_one_pass): Use has_gate and has_execute since we cannot
20976 portably check a vtable entry against NULL.
20977 * pass_manager.h (pass_manager::finish_optimization_passes): New.
20978 (pass_manager): Use pass-instances.def to add fields for the
20979 various pass instances.
20980 * toplev.c (finalize): Update for move of
20981 finish_optimization_passes to a method of gcc::pass_manager.
20982 * toplev.h (finish_optimization_passes): Move to method of class
20984 * tree-pass.h (struct pass_data): New.
20985 (opt_pass): Convert to C++ class, make it a subclass of pass_data.
20986 (opt_pass::gate): Convert to virtual function.
20987 (opt_pass::~opt_pass): New.
20988 (opt_pass::clone): New.
20989 (opt_pass::execute): Convert to virtual function.
20990 (opt_pass::opt_pass): New.
20991 (opt_pass::ctxt_): new.
20992 (gimple_opt_pass): Convert to subclass of opt_pass.
20993 (gimple_opt_pass::gimple_opt_pass): New.
20994 (rtl_opt_pass): Convert to subclass of opt_pass.
20995 (rtl_opt_pass::rtl_opt_pass): New.
20996 (ipa_opt_pass_d): Convert to subclass of opt_pass.
20997 (ipa_opt_pass_d::ipa_opt_pass_d): New.
20998 (simple_ipa_opt_pass): Convert to subclass of opt_pass.
20999 (simple_ipa_opt_pass::simple_ipa_opt_pass): New.
21000 * config/i386/i386.c (rest_of_handle_insert_vzeroupper): Rework
21001 invocation of pass_mode_switching to reflect this moving from a
21002 global to a member of gcc::pass_manager.
21003 (ix86_option_override): Rework how pass_insert_vzeroupper is
21004 added to the pass_manager to reflect autogenerated changes.
21005 * config/i386/t-i386 (i386.o) Add deps on CONTEXT_H and PASS_MANAGER_H.
21007 2013-08-05 Richard Earnshaw <rearnsha@arm.com>
21009 PR rtl-optimization/57708
21010 * recog.c (peep2_find_free_register): Validate all regs in a
21013 2013-08-05 Jan Hubicka <jh@suse.cz>
21016 * cgraph.c (verify_cgraph_node): Accept local flags from other
21018 * ipa.c (symtab_remove_unreachable_nodes): Do not clear local flag.
21019 (function_and_variable_visibility): Likewise.
21020 * trans-mem.c (ipa_tm_create_version): TM versions are not local.
21022 2013-08-05 Gabriel Dos Reis <gdr@integrable-solutions.net>
21024 * graph.c (init_graph_slim_pretty_print): Remove.
21025 (print_graph_cfg): Do not call it. Use local pretty printer.
21026 (start_graph_dump): Likewise.
21028 2013-08-05 Gabriel Dos Reis <gdr@integrable-solutions.net>
21030 * gimple-pretty-print.c (buffer): Remove.
21031 (initialized): Likewise.
21032 (maybe_init_pretty_print): Likewise.
21033 (print_gimple_stmt): Do not call it. Use non-static local
21034 pretty_printer variable.
21035 (print_gimple_expr): Likewise.
21036 (print_gimple_seq): Likewise.
21037 (gimple_dump_bb): Likewise.
21039 2013-08-05 Gabriel Dos Reis <gdr@integrable-solutions.net>
21041 * asan.c (asan_pp): Remove.
21042 (asan_pp_initialized): Likewise.
21043 (asan_pp_initialize): Likewise.
21044 (asan_pp_string): Take a pretty_printer parameter. Adjust callers.
21045 (asan_emit_stack_protection): Tidy. Use local pretty printer.
21046 (asan_add_global): Likewise.
21048 2013-08-04 Gabriel Dos Reis <gdr@integrable-solutions.net>
21050 * pretty-print.h (pp_base): Remove. Adjust dependent macros.
21051 * diagnostic.h (diagnostic_flush_buffer): Adjust.
21052 * pretty-print.c (pp_formatted_text_data): Likewise.
21053 (pp_indent): Rename from pp_base_indent.
21054 (pp_format): Rename from pp_base_format.
21055 (pp_output_formatted_text): Rename from pp_base_output_formatted_text.
21056 (pp_format_verbatim): Rename from pp_base_format_verbatim.
21057 (pp_flush): Rename from pp_base_flush.
21058 (pp_set_line_maximum_length): Rename from
21059 pp_base_set_line_maximum_length.
21060 (pp_clear_output_area): Rename from pp_base_clear_output_area.
21061 (pp_set_prefix): Rename from pp_base_set_prefix.
21062 (pp_destroy_prefix): Rename from pp_base_destroy_prefix.
21063 (pp_emit_prefix): Rename from pp_base_emit_prefix.
21064 (pp_append_text): Rename from pp_base_append_text.
21065 (pp_formatted_text): Rename from pp_base_formatted_text.
21066 (pp_last_position_in_text): Rename from pp_base_last_position_in_text.
21067 (pp_remaining_character_count_for_line): Rename from
21068 pp_base_remaining_character_count_for_line.
21069 (pp_newline): Rename from pp_base_newline.
21070 (pp_character): Rename from pp_base_character.
21071 (pp_string): Rename from pp_base_string.
21072 (pp_maybe_space): Rename from pp_base_maybe_space.
21073 * asan.c (asan_pp_string): Adjust.
21074 (asan_emit_stack_protection): Likewise.
21075 (asan_add_global): Likewise.
21076 * sched-vis.c (str_pattern_slim): Adjust pretty printer function call.
21077 * tree-mudflap.c (mf_varname_tree): Likewise.
21078 * tree-pretty-print.c (pp_tree_identifier): Rename from
21079 pp_base_tree_identifier.
21080 * tree-pretty-print.h (pp_tree_identifier): Remove macro definition.
21081 Declare as function.
21083 2013-08-03 Gabriel Dos Reis <gdr@integrable-solutions.net>
21085 * pretty-print.h (pp_bar_bar): New.
21086 (pp_ampersand_ampersand): Likewise.
21087 (pp_less_equal): Likewise.
21088 (pp_greater_equal): Likewise.
21089 * gimple-pretty-print.c (dump_ternary_rhs): Use specialized pretty
21090 printer functions instead of pp_string or operators and punctuators.
21091 (dump_gimple_call): Likewise.
21092 (dump_gimple_omp_for): Likewise.
21093 (dump_gimple_transaction): Likewise.
21094 (dump_gimple_phi): Likewise.
21095 (pp_gimple_stmt_1): Likewise.
21096 * sched-vis.c (print_insn): Likewise.
21097 * tree-mudflap.c (mf_varname_tree): Likewise.
21098 * tree-pretty-print.c (dump_block_node): Likewise.
21099 (dump_generic_node): Likewise.
21101 2013-08-02 Jan Hubicka <jh@suse.cz>
21103 * lto-cgraph.c (compute_ltrans_boundary): Add abstract origins into
21105 * lto-streamer-out.c (tree_is_indexable): Results decls and
21106 parm decls are not indexable.
21107 (DFS_write_tree_body): Do not follow args and results.
21108 (hash_tree): Likewise.
21109 (output_functions): Rearrange so struct function is needed
21110 only when real body is output; be able to also ouptut abstract
21111 functions; output DECL_ARGUMENTS and DECL_RESULT.
21112 (lto_output): When not in WPA, ale store abstract functions.
21113 (write_symbol): Do not care about RESULT_DECL.
21114 (output_symbol_p): Handle correctly sbtract decls.
21115 * lto-streamer-in.c (input_function): Rearrange so struct
21116 function can be NULL at entry; allow streaming of
21117 functions w/o body; store DECL_ARGUMENTS and DECL_RESULT.
21118 * ipa.c (symtab_remove_unreachable_nodes): Silence confused
21119 sanity check during LTO.
21120 * tree-streamer-out.c (write_ts_decl_non_common_tree_pointers): Skip
21121 RESULT_DECl and DECL_ARGUMENTS.
21122 * tree-streamer-in.c (lto_input_ts_decl_non_common_tree_pointers):
21125 2013-08-03 Gabriel Dos Reis <gdr@integrable-solutions.net>
21127 * pretty-print.h (pp_underscore): New.
21129 * gimple-pretty-print.c (dump_unary_rhs): Use specialized pretty
21130 printer functions instead of pp_character.
21131 (dump_binary_rhs): Likewise.
21132 (dump_ternary_rhs): Likewise.
21133 (dump_gimple_call_args): Likewise.
21134 (pp_points_to_solution): Likewise.
21135 (dump_gimple_call): Likewise.
21136 (dump_gimple_switch): Likewise.
21137 (dump_gimple_cond): Likewise.
21138 (dump_gimple_bind): Likewise.
21139 (dump_gimple_try): Likewise.
21140 (dump_gimple_omp_for): Likewise.
21141 (dump_gimple_omp_continue): Likewise.
21142 (dump_gimple_omp_single): Likewise.
21143 (dump_gimple_omp_sections): Likewise.
21144 (dump_gimple_omp_block): Likewise.
21145 (dump_gimple_omp_critical): Likewise.
21146 (dump_gimple_transaction): Likewise.
21147 (dump_gimple_asm): Likewise.
21148 (dump_gimple_phi): Likewise.
21149 (dump_gimple_omp_parallel): Likewise.
21150 (dump_gimple_omp_task): Likewise.
21151 (dump_gimple_omp_atomic_load): Likewise.
21152 (dump_gimple_omp_atomic_store): Likewise.
21153 (dump_gimple_mem_ops): Likewise.
21154 (pp_gimple_stmt_1): Likewise.
21155 (pp_cfg_jump): Likewise.
21156 (dump_implicit_edges): Likewise.
21157 (gimple_dump_bb_for_graph): Likewise.
21158 * graph.c (draw_cfg_node): Likewise.
21159 * langhooks.c (lhd_print_error_function): Likewise.
21160 * sched-vis.c (print_exp): Likewise.
21161 (print_value): Likewise.
21162 (print_pattern): Likewise.
21163 (print_insn): Likewise.
21164 (rtl_dump_bb_for_graph): Likewise.
21165 * tree-pretty-print.c (dump_function_declaration): Likewise.
21166 (dump_array_domain): Likewise.
21167 (dump_omp_clause): Likewise.
21168 (dump_location): Likewise.
21169 (dump_generic_node): Likewise.
21170 (print_struct_decl): Likewise.
21171 * diagnostic.c (diagnostic_show_locus): Use pp_space.
21173 2013-08-03 Bill Schmidt <wschmidt@vnet.linux.ibm.com>
21175 * gimple-ssa-strength-reduction.c (replace_mult_candidate): Update
21176 candidate table when replacing a candidate statement.
21177 (replace_rhs_if_not_dup): Likewise.
21178 (replace_one_candidate): Likewise.
21180 2013-08-02 Jan Hubicka <jh@suse.cz>
21181 Martin Liska <marxin.liska@gmail.com>
21183 * cgraphunit.c (add_new_function): Fix logic when adding from
21185 (assemble_thunk): Rename to ...
21186 (expand_thunk); .. this one; export; get it working with
21187 general functions; make produced gimple valid.
21188 * cgraph.h (expand_thunk): Declare.
21190 2013-08-02 Jan Hubicka <jh@suse.cz>
21192 * ipa-cp.c (gather_context_independent_values): Use
21193 ipa_get_param_move_cost.
21194 (get_replacement_map): Remove PARAM; move parameter folding
21196 (create_specialized_node): Update.
21197 * ipa-prop.c (ipa_populate_param_decls): Do not look for origins;
21198 assert that we have gimple body; update move_cost.
21199 (count_formal_params): Assert that we have gimple body.
21200 (ipa_dump_param): New function.
21201 (ipa_alloc_node_params): Break out from ...
21202 (ipa_initialize_node_params): ... here.
21203 (ipa_get_vector_of_formal_parms): ICE when used in WPA.
21204 (ipa_write_node_info): Stream move costs.
21205 (ipa_read_node_info): Read move costs.
21206 (ipa_update_after_lto_read): Do not recompute node params.
21207 * ipa-prop.h (ipa_param_descriptor): Add move_cost.
21208 (ipa_get_param): Check we are not in WPA.
21209 (ipa_get_param_move_cost): New.
21210 * tree-inline.c (tree_function_versioning): Fold replacement as needed.
21211 * ipa-inline-analysis.c (inline_node_duplication_hook): Expect only
21212 parm numbers to be present.
21214 2013-08-02 Vladimir Makarov <vmakarov@redhat.com>
21216 PR rtl-optimization/58048
21217 * lra-constraints.c (process_alt_operands): Don't check asm
21218 operand on register.
21220 2013-08-02 Eric Botcazou <ebotcazou@adacore.com>
21222 * config/sparc/sparc.c (sparc_emit_membar_for_model) <SMM_TSO>: Add
21223 the implied StoreLoad barrier for atomic operations if before.
21225 2013-08-02 Jan Hubicka <jh@suse.cz>
21226 Martin Liska <marxin.liska@gmail.com>
21228 * cgraph.c (cgraph_function_body_availability): Do not check
21230 * cgraph.h (symtab_for_node_and_aliases, symtab_nonoverwritable_alias,
21231 symtab_node_availability): Declare.
21232 * ipa.c (can_replace_by_local_alias): New.
21233 (function_and_variable_visibility): Use it.
21234 * symtab.c (symtab_for_node_and_aliases,
21235 symtab_nonoverwritable_alias_1, symtab_nonoverwritable_alias): New.
21237 2013-08-02 Vladimir Makarov <vmakarov@redhat.com>
21239 PR rtl-optimization/57963
21240 * lra-constraints.c (reverse_equiv_p, contains_reloaded_insn_p): New.
21241 (lra_constraints): Use them.
21243 2013-08-02 Sofiane Naci <sofiane.naci@arm.com>
21245 * config/arm/types.md (define_attr "type"): Add "load_acq"
21247 * config/arm/cortex-a53.md (cortex_a53_load1): Update for attribute
21249 (cortex_a53_store1): Likewise.
21251 2013-08-01 Jan Hubicka <jh@suse.cz>
21253 * ipa.c (symtab_remove_unreachable_nodes): Nodes in other
21254 partitions are not needed.
21256 2013-08-01 Uros Bizjak <ubizjak@gmail.com>
21258 * config/i386/i386.h (MAYBE_NON_Q_CLASS_P): New.
21259 * config/i386/i386.c (ix86_secondary_reload): Use INTEGER_CLASS_P and
21260 MAYBE_NON_Q_CLASS_P where appropriate.
21262 2013-08-01 Jan Hubicka <jh@suse.cz>
21264 * cgraph.h (release_function_body): Declare.
21265 * tree.c (free_lang_data_in_decl): Free, parameters and return values
21266 of unused delcarations.
21268 2013-08-01 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
21270 * config/arm/arm.md (minmax_arithsi_non_canon): Emit canonical
21271 RTL form when subtracting a constant.
21273 2013-08-01 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
21275 * config/arm/arm.md (peepholes for eq (reg1) (reg2/imm)):
21276 Generate canonical plus rtx with negated immediate instead of minus
21278 * config/arm/arm.c (thumb2_reorg): Handle ADCS <Rd>, <Rn> case.
21280 2013-08-01 Jan Hubicka <jh@suse.cz>
21282 * cgraph.c (cgraph_release_function_body): Use used_as_abstract_origin.
21283 (cgraph_release_function_body): Likewise.
21284 (cgraph_can_remove_if_no_direct_calls_p): Likewise.
21285 * cgraph.h (cgrpah_node): Rename abstract_and_needed
21286 to used_as_abstract_origin.
21287 * tree-inline-transfrom.c (can_remove_node_now_p_1): Do not remove
21288 symbols used as abstract origins.
21289 * cgraphunit.c (analyze_functions): Update.
21290 * ipa.c (symtab_remove_unreachable_nodes): Recompute
21291 used_as_abstract_origin.
21292 * tree-inline.c (tree_function_versioning): Update
21293 used_as_abstract_origin; be ready for DECL_RESULT and
21294 DECL_ARGUMENTS to be NULL.
21296 * lto-symtab.c (lto_symtab_merge_symbols): Merge duplicated nodes
21297 for abstract functions.
21298 * cgraph.h (symtab_real_symbol_p): Abstract declarations are not
21301 2013-08-01 Jan Hubicka <jh@suse.cz>
21303 * profile.c (compute_value_histograms): Fix thinko.
21305 2013-08-01 Sofiane Naci <sofiane.naci@arm.com>
21307 * config.gcc (aarch64*-*-*): Add aarch-common.o to extra_objs. Add
21308 aarch-common-protos.h to extra_headers.
21309 (aarch64*-*-*): Add arm/aarch-common-protos.h to tm_p_file.
21310 * config/aarch64/aarch64.md: Include "../arm/cortex-a53.md".
21311 * config/aarch64/t-aarch64 (aarch-common.o): Define.
21313 2013-08-01 Sofiane Naci <sofiane.naci@arm.com>
21315 * config/aarch64/aarch64.md (define_attr "type"): Delete.
21316 Include "../arm/types.md". Define "type" attribute for all patterns.
21317 * config/aarch64/aarch64-simd.md (move_lo_quad_<mode>): Update for
21320 2013-07-31 Michael Meissner <meissner@linux.vnet.ibm.com>
21322 * config/rs6000/predicates.md (fusion_gpr_addis): New predicates
21323 to support power8 load fusion.
21324 (fusion_gpr_mem_load): Likewise.
21326 * config/rs6000/rs6000-modes.def (PTImode): Update a comment.
21328 * config/rs6000/rs6000-protos.h (fusion_gpr_load_p): New
21329 declarations for power8 load fusion.
21330 (emit_fusion_gpr_load): Likewise.
21332 * config/rs6000/rs6000.c (rs6000_option_override_internal): If
21333 tuning for power8, turn on fusion mode by default. Turn on sign
21334 extending fusion mode if normal fusion mode is on, and we are at
21336 (fusion_gpr_load_p): New function, return true if we can fuse an
21337 addis instruction with a dependent load to a GPR.
21338 (emit_fusion_gpr_load): Emit the instructions for power8 load
21341 * config/rs6000/vsx.md (VSX_M2): New iterator for fusion peepholes.
21342 (VSX load fusion peepholes): New peepholes to fuse together an
21343 addi instruction with a VSX load instruction.
21345 * config/rs6000/rs6000.md (GPR load fusion peepholes): New
21346 peepholes to fuse an addis instruction with a load to a GPR base
21347 register. If we are supporting sign extending fusions, convert
21348 sign extending loads to zero extending loads and add an explicit
21351 2013-07-31 Sofiane Naci <sofiane.naci@arm.com>
21353 * config.gcc (arm*-*-*): Add aarch-common.o to extra_objs. Add
21354 aarch-common-protos.h to extra_headers.
21355 (arm*-*-*): Add arm/aarch-common-protos.h to tm_p_file.
21356 * config/arm/arm.c (arm_early_load_addr_dep): Move from here to ...
21357 (arm_early_store_addr_dep): Likewise.
21358 (arm_no_early_alu_shift_dep): Likewise.
21359 (arm_no_early_alu_shift_value_dep): Likewise.
21360 (arm_no_early_mul_dep): Likewise.
21361 (arm_no_early_store_addr_dep): Likewise.
21362 (arm_mac_accumulator_is_mul_result): Likewise.
21363 (arm_mac_accumulator_is_result): Likewise.
21364 * config/arm/aarch-common.c: ... here. New file.
21365 * config/arm/arm-protos.h (arm_early_load_addr_dep): Move from
21367 (arm_early_store_addr_dep): Likewise.
21368 (arm_no_early_alu_shift_dep): Likewise.
21369 (arm_no_early_alu_shift_value_dep): Likewise.
21370 (arm_no_early_mul_dep): Likewise.
21371 (arm_no_early_store_addr_dep): Likewise.
21372 (arm_mac_accumulator_is_mul_result): Likewise.
21373 (arm_mac_accumulator_is_result): Likewise.
21374 * config/arm/aarch-common-protos.h: ... here. New file.
21375 * config/arm/t-arm (aarch-common.o): Define.
21377 2013-07-31 Sofiane Naci <sofiane.naci@arm.com>
21379 * config/arm/arm.md: Include new file "types.md".
21380 (define_attr "type"): Move from here to ...
21381 (define_attr "mul32"): Likewise.
21382 (define_attr "mul64"): Likewise.
21383 * config/arm/types.md: ... here. New file.
21385 2013-07-31 Sebastian Huber <sebastian.huber@embedded-brains.de>
21387 * config.gcc (*-*-rtems*): Use __cxa_atexit by default.
21388 * config/rs6000/rtems.h (TARGET_LIBGCC_SDATA_SECTION): Define.
21390 2013-07-31 Jan-Benedict Glaw <jbglaw@lug-owl.de>
21392 * gen-pass-instances.awk: Fix offset of substr().
21394 2013-07-31 David Malcolm <dmalcolm@redhat.com>
21396 * Makefile.in (pass-instances.def): New.
21397 (passes.o): Replace dependency on passes.def with one on
21400 * gen-pass-instances.awk: New.
21402 * passes.c (pass_manager::pass_manager): Use pass-instances.def
21403 rather than passes.def, updating local definition of NEXT_PASS
21404 macro to add an extra NUM parameter (currently unused).
21406 2013-07-30 David Malcolm <dmalcolm@redhat.com>
21408 * Makefile.in (PASS_MANAGER_H): New.
21409 (lto-cgraph.o): Depend on CONTEXT_H and PASS_MANAGER_H.
21410 (passes.o): Likewise.
21411 (statistics.o): Likewise.
21412 (cgraphunit.o): Likewise.
21413 (context.o): Depend on PASS_MANAGER_H.
21415 * pass_manager.h: New.
21417 * cgraphunit.c (cgraph_add_new_function): Update for moves
21418 of globals to fields of pass_manager.
21419 (analyze_function): Likewise.
21420 (expand_function): Likewise.
21421 (ipa_passes): Likewise.
21422 (compile): Likewise.
21424 * context.c (context::context): New.
21425 * context.h (context::context): New.
21426 (context::get_passes): New.
21427 (context::passes_): New.
21429 * lto-cgraph.c (input_node): Update for moves of globals to
21430 fields of pass_manager.
21432 * passes.c (all_passes): Remove, in favor of a field of the
21433 same name within the new class pass_manager.
21434 (all_small_ipa_passes): Likewise.
21435 (all_lowering_passes): Likewise.
21436 (all_regular_ipa_passes): Likewise.
21437 (all_late_ipa_passes): Likewise.
21438 (all_lto_gen_passes): Likewise.
21439 (passes_by_id): Likewise.
21440 (passes_by_id_size): Likewise.
21441 (gcc_pass_lists): Remove, in favor of "pass_lists" field within
21442 the new class pass_manager.
21443 (set_pass_for_id): Convert to...
21444 (pass_manager::set_pass_for_id): ...method.
21445 (get_pass_for_id): Convert to...
21446 (pass_manager::get_pass_for_id): ...method.
21447 (register_one_dump_file): Move body of implementation into...
21448 (pass_manager::register_one_dump_file): ...here.
21449 (register_dump_files_1): Convert to...
21450 (pass_manager::register_dump_files_1): ...method.
21451 (register_dump_files): Convert to...
21452 (pass_manager::register_dump_files): ...method.
21453 (create_pass_tab): Update for moves of globals to fields of
21455 (dump_passes): Move body of implementation into...
21456 (pass_manager::dump_passes): ...here.
21457 (register_pass): Move body of implementation into...
21458 (pass_manager::register_pass): ...here.
21459 (init_optimization_passes): Convert into...
21460 (pass_manager::pass_manager): ...constructor for new
21461 pass_manager class, and initialize the pass_lists array.
21462 (check_profile_consistency): Update for moves of globals to
21463 fields of pass_manager.
21464 (dump_profile_report): Move body of implementation into...
21465 (pass_manager::dump_profile_report): ...here.
21466 (ipa_write_summaries_1): Update for moves of pass lists from
21467 being globals to fields of pass_manager.
21468 (ipa_write_optimization_summaries): Likewise.
21469 (ipa_read_summaries): Likewise.
21470 (ipa_read_optimization_summaries): Likewise.
21471 (execute_all_ipa_stmt_fixups): Likewise.
21473 * statistics.c (statistics_fini): Update for moves of globals to
21474 fields of pass_manager.
21476 * toplev.c (general_init): Replace call to
21477 init_optimization_passes with construction of the pass_manager
21480 * tree-pass.h (all_passes): Remove, in favor of a field of the
21481 same name within the new class pass_manager.
21482 (all_small_ipa_passes): Likewise.
21483 (all_lowering_passes): Likewise.
21484 (all_regular_ipa_passes): Likewise.
21485 (all_lto_gen_passes): Likewise.
21486 (all_late_ipa_passes): Likewise.
21487 (passes_by_id): Likewise.
21488 (passes_by_id_size): Likewise.
21489 (gcc_pass_lists): Remove, in favor of "pass_lists" field within
21490 the new class pass_manager.
21491 (get_pass_for_id): Remove.
21493 2013-07-30 Richard Earnshaw <rearnsha@arm.com>
21495 * config.gcc (arm): Require 64-bit host-wide-int for all ARM target
21498 2013-07-30 Richard Earnshaw <rearnsha@arm.com>
21500 * arm.md (mulhi3): New expand pattern.
21502 2013-07-30 Jan Hubicka <jh@suse.cz>
21503 Martin Liska <marxin.liska@gmail.com>
21505 * profile.c (compute_value_histograms): Do not ICE when
21506 there is mismatch only on some counters.
21508 2013-07-30 Zhenqiang Chen <zhenqiang.chen@linaro.org>
21510 PR rtl-optimization/57637
21511 * function.c (move_insn_for_shrink_wrap): Also check the
21512 GEN set of the LIVE problem for the liveness analysis
21513 if it exists, otherwise give up.
21515 2013-07-29 Bill Schmidt <wschmidt@vnet.linux.ibm.com>
21517 PR tree-optimization/57993
21518 * gimple-ssa-strength-reduction.c (replace_mult_candidate): Record
21519 replaced statement in the candidate table.
21520 (phi_add_costs): Return infinite cost when the hidden basis does
21521 not dominate all phis on which the candidate is dependent.
21522 (replace_one_candidate): Record replaced statement in the
21525 2013-07-29 Joern Rennecke <joern.rennecke@embecosm.com>
21527 * config/epiphany/epiphany.md (*isub_i+2): New peephole.
21528 (ashlv2si3): New expander.
21529 (*ashlv2si3_i): New define_insn_and_split.
21530 * predicates.md (float_operation): Allow patterns with three
21531 basic sub-patterns.
21533 PR rtl-optimization/58021
21534 * mode-switching.c (create_pre_exit): Always split off preceding
21535 insns if we are not at the basic block head.
21537 2013-07-29 Maciej W. Rozycki <macro@codesourcery.com>
21539 * config/mips/linux.h (GLIBC_DYNAMIC_LINKER): Handle `-mnan=2008'.
21540 (UCLIBC_DYNAMIC_LINKER): New macro.
21541 * config/mips/linux64.h (GLIBC_DYNAMIC_LINKER32): Handle
21543 (GLIBC_DYNAMIC_LINKER64, GLIBC_DYNAMIC_LINKERN32): Likewise.
21544 (UCLIBC_DYNAMIC_LINKER32): Undefine macro first. Handle
21546 (UCLIBC_DYNAMIC_LINKER64): Redefine macro.
21547 (UCLIBC_DYNAMIC_LINKERN32): Likewise.
21548 * config/mips/mips-modes.def: Remove RESET_FLOAT_FORMAT calls
21549 for SF and DF modes. Use ieee_quad_format for TF mode.
21550 * config/mips/mips-opts.h (mips_ieee_754_setting): New enum.
21551 * config/mips/mips.c (mips_file_start): Output a `.nan' directive.
21552 (mips_option_override): Handle `-mnan=legacy'.
21553 * config/mips/mips.h (TARGET_CPU_CPP_BUILTINS): Handle
21554 `-mabs=2008' and `-mnan=2008'.
21555 (OPTION_DEFAULT_SPECS): Add "nan" default.
21556 (ASM_SPEC): Handle `-mnan='.
21557 [!HAVE_AS_NAN] (HAVE_AS_NAN): New macro.
21558 * config/mips/mips.md (abs<mode>2): Handle `-mabs=2008', update
21559 comment accordingly.
21560 (neg<mode>2): Likewise.
21561 * config/mips/mips.opt (mabs, mnan): New options.
21562 * doc/install.texi (Configuration): Document `--with-nan=' option.
21563 * doc/invoke.texi (Option Summary): List MIPS `-mabs=' and
21565 (MIPS Options): Document them.
21566 * config.gcc <mips*-*-*>: Handle `--with-nan='.
21567 * configure.ac <mips*-*-*>: Check for GAS `-mnan=2008' support.
21568 * configure: Regenerate.
21569 * config.in: Regenerate.
21571 2013-07-29 Uros Bizjak <ubizjak@gmail.com>
21573 * config/i386/i386.md (float post-reload splitters): Do not check
21574 for subregs of SSE registers.
21576 2013-07-29 Uros Bizjak <ubizjak@gmail.com>
21577 H.J. Lu <hongjiu.lu@intel.com>
21581 * config/i386/i386.md (post-reload splitter
21582 to avoid partial SSE reg dependency stalls): New pattern.
21584 2013-07-29 Dominik Vogt <vogt@linux.vnet.ibm.com>
21586 * config/s390/s390.md ("movcc"): Swap load and store instructions.
21588 2013-07-27 Joern Rennecke <joern.rennecke@embecosm.com>
21590 * config/epiphany/epiphany.c (epiphany_compute_frame_size):
21591 Also reserve space for saving UNKNOWN_REGNUM for leaf functions.
21593 2013-07-26 Cary Coutant <ccoutant@google.com>
21595 * dwarf2out.c (die_checksum_ordered): Don't include template
21596 instantiations in signature.
21597 (is_template_parameter): New function.
21598 (is_template_instantiation): New function.
21599 (generate_skeleton_bottom_up): Don't include template instantiations
21601 (generate_skeleton): Likewise.
21602 (break_out_comdat_types): Move recursive call to break out nested
21604 (prune_unused_types_mark_generic_parms_dies): Call
21605 is_template_parameter.
21607 2013-07-26 Ian Bolton <ian.bolton@arm.com>
21609 * config/aarch64/aarch64.md (neg<mode>2): Offer alternative that
21610 uses vector registers.
21611 * config/aarch64/iterators.md: Add attributes rtn and vas.
21613 2013-07-26 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
21614 Richard Earnshaw <richard.earnshaw@arm.com>
21616 * combine.c (simplify_comparison): Re-canonicalize operands
21618 * config/arm/arm.md (movcond_addsi): New splitter.
21620 2013-07-25 Sterling Augustine <saugustine@google.com>
21622 * dwarf2out.c (size_of_pubnames): Move code to...
21623 (include_pubname_in_output): ...here. New.
21624 (want_pubnames): Rearrange.
21625 (output_pubnames): Call include_pubname_in_output. Move assertion.
21627 2013-07-25 Cameron McInally <cameron.mcinally@nyu.edu>
21629 * doc/extend.texi: Fix return types for __builtin_ia32_cmp*s builtins.
21631 2013-07-25 Cameron McInally <cameron.mcinally@nyu.edu>
21634 * doc/extend.texi: Remove obsolete builtins. Fix
21635 typo for __builtin_ia32_loadss and __builtin_ia32_cmpnltss.
21637 2013-07-25 Jan Hubicka <jh@suse.cz>
21639 * cgraph.c (release_function_body): Break out from ...
21640 (cgraph_release_function_body): ... this one; also release DECL_RESULT
21641 and DECL_ARGUMENTS.
21642 * ipa-cp.c (get_replacement_map): Add parm_num argument; do not set
21643 old_tree in the map.
21644 (create_specialized_node): Update.
21645 * lto-cgraph.c (output_node_opt_summary): Do not translate old_tree
21647 * cgraphclones.c (cgraph_create_virtual_clone): Do not copy
21648 DECL_ARGUMENTS, DECL_INITIAL and DECL_RESULT.
21649 * ipa-prop.c (ipa_populate_param_decls): Look for origin of clones.
21650 * tree-inline.c (initialize_cfun): Initialize DECL_ARGUMENTS and
21653 2013-07-25 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
21655 * config/arm/arm.md (arm_addsi3, addsi3_carryin_<optab>,
21656 addsi3_carryin_alt2_<optab>): Correct output template.
21658 2013-07-25 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
21660 * config/arm/arm-fixed.md (ssmulsa3, usmulusa3):
21661 Adjust for arm_restrict_it.
21662 Remove trailing whitespace.
21664 2013-07-25  Mark Kettenis  <kettenis@openbsd.org>
21666 * config/pa/pa.c (pa_trampoline_init): Emit __enable_execute_stack
21667 libcall if HAVE_ENABLE_EXECUTE_STACK is defined.
21669 * config.gcc (hppa-*-openbsd*): Don't set tmake_file.
21671 2013-07-25 Vladimir Makarov <vmakarov@redhat.com>
21673 PR rtl-optimization/57960
21674 * lra-constraints.c (process_alt_operands): Use the right mode
21675 when checking strict_low.
21677 2013-07-25 Jan Hubicka <jh@suse.cz>
21679 * lto-symtab.c (lto_cgraph_replace_node): Release function body.
21680 * cgraph.c (cgraph_remove_node): Do not release function body
21681 when in cgraph streaming.
21682 * ipa.c (process_references, symtab_remove_unreachable_nodes): Objects
21683 in other partitions are not considered reachable; fix handling of
21686 2013-07-25 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
21688 * config/arm/arm.md (*sibcall_insn): Remove unnecessary space.
21690 2013-07-25 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
21695 * config/arm/arm.md ("*sibcall_insn): Replace use of
21696 Ss with US. Adjust output for v5 and v4t.
21697 (*sibcall_value_insn): Likewise and loosen predicate on operand0.
21699 * config/arm/constraints.md ("Ss"): Rename to US.
21701 2013-07-25 Terry Guo <terry.guo@arm.com>
21703 * config/arm/arm.c (thumb1_size_rtx_costs): Assign proper cost for
21704 shift_add/shift_sub0/shift_sub1 RTXs.
21706 2013-07-24 Bill Schmidt <wschmidt@linux.ibm.com>
21707 Anton Blanchard <anton@au1.ibm.com>
21709 * config/rs6000/altivec.md (altivec_vpkpx): Handle little endian.
21710 (altivec_vpks<VI_char>ss): Likewise.
21711 (altivec_vpks<VI_char>us): Likewise.
21712 (altivec_vpku<VI_char>us): Likewise.
21713 (altivec_vpku<VI_char>um): Likewise.
21715 2013-07-24 David Malcolm <dmalcolm@redhat.com>
21717 Introduce context class.
21719 * Makefile.in (CONTEXT_H): New.
21720 (OBJS): Add context.o.
21721 (toplev.o): Add CONTEXT_H to dependencies.
21724 * toplev.c (general_init): Create the singleton gcc::context instance.
21730 2013-07-24 Joern Rennecke <joern.rennecke@embecosm.com>
21732 PR rtl-optimization/57968
21733 * mode-switching.c (create_pre_exit): Allow instructions that
21734 don't set a return register to need a non-exit mode.
21736 2013-07-24 Bill Schmidt <wschmidt@vnet.linux.ibm.com>
21737 Anton Blanchard <anton@au1.ibm.com>
21739 * config/rs6000/vector.md (vec_realign_load_<mode>): Reorder input
21740 operands to vperm for little endian.
21741 * config/rs6000/rs6000.c (rs6000_expand_builtin): Use lvsr instead
21742 of lvsl to create the control mask for a vperm for little endian.
21744 2013-07-23 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
21745 Anton Blanchard <anton@au1.ibm.com>
21747 * config/rs6000/rs6000.c (altivec_expand_vec_perm_const): Reverse
21748 two operands for little-endian.
21750 2013-07-23 Steve Ellcey <sellcey@mips.com>
21752 * config/mips/mips.c (mips_case_values_threshold): New.
21753 (TARGET_CASE_VALUES_THRESHOLD): Define.
21755 2013-07-23 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
21756 Anton Blanchard <anton@au1.ibm.com>
21758 * config/rs6000/rs6000.c (altivec_expand_vec_perm_const): Correct
21759 selection of field for vector splat in little endian mode.
21761 2013-07-23 Michael Meissner <meissner@linux.vnet.ibm.com>
21763 * config/rs6000/vector.md (xor<mode>3): Move 128-bit boolean
21764 expanders to rs6000.md.
21765 (ior<mode>3): Likewise.
21766 (and<mode>3): Likewise.
21767 (one_cmpl<mode>2): Likewise.
21768 (nor<mode>3): Likewise.
21769 (andc<mode>3): Likewise.
21770 (eqv<mode>3): Likewise.
21771 (nand<mode>3): Likewise.
21772 (orc<mode>3): Likewise.
21774 * config/rs6000/rs6000-protos.h (rs6000_split_logical): New
21777 * config/rs6000/rs6000.c (rs6000_split_logical_inner): Add support
21778 to split multi-word logical operations.
21779 (rs6000_split_logical_di): Likewise.
21780 (rs6000_split_logical): Likewise.
21782 * config/rs6000/vsx.md (VSX_L2): Delete, no longer used.
21783 (vsx_and<mode>3_32bit): Move 128-bit logical insns to rs6000.md,
21784 and allow TImode operations in 32-bit.
21785 (vsx_and<mode>3_64bit): Likewise.
21786 (vsx_ior<mode>3_32bit): Likewise.
21787 (vsx_ior<mode>3_64bit): Likewise.
21788 (vsx_xor<mode>3_32bit): Likewise.
21789 (vsx_xor<mode>3_64bit): Likewise.
21790 (vsx_one_cmpl<mode>2_32bit): Likewise.
21791 (vsx_one_cmpl<mode>2_64bit): Likewise.
21792 (vsx_nor<mode>3_32bit): Likewise.
21793 (vsx_nor<mode>3_64bit): Likewise.
21794 (vsx_andc<mode>3_32bit): Likewise.
21795 (vsx_andc<mode>3_64bit): Likewise.
21796 (vsx_eqv<mode>3_32bit): Likewise.
21797 (vsx_eqv<mode>3_64bit): Likewise.
21798 (vsx_nand<mode>3_32bit): Likewise.
21799 (vsx_nand<mode>3_64bit): Likewise.
21800 (vsx_orc<mode>3_32bit): Likewise.
21801 (vsx_orc<mode>3_64bit): Likewise.
21803 * config/rs6000/rs6000.h (VLOGICAL_REGNO_P): Always allow vector
21804 logical types in GPRs.
21806 * config/rs6000/altivec.md (altivec_and<mode>3): Move 128-bit
21807 logical insns to rs6000.md, and allow TImode operations in
21809 (altivec_ior<mode>3): Likewise.
21810 (altivec_xor<mode>3): Likewise.
21811 (altivec_one_cmpl<mode>2): Likewise.
21812 (altivec_nor<mode>3): Likewise.
21813 (altivec_andc<mode>3): Likewise.
21815 * config/rs6000/rs6000.md (BOOL_128): New mode iterators and mode
21816 attributes for moving the 128-bit logical operations into
21818 (BOOL_REGS_OUTPUT): Likewise.
21819 (BOOL_REGS_OP1): Likewise.
21820 (BOOL_REGS_OP2): Likewise.
21821 (BOOL_REGS_UNARY): Likewise.
21822 (BOOL_REGS_AND_CR0): Likewise.
21823 (one_cmpl<mode>2): Add support for DI logical operations on
21824 32-bit, splitting the operations to 32-bit.
21825 (anddi3): Likewise.
21826 (iordi3): Likewise.
21827 (xordi3): Likewise.
21828 (and<mode>3, 128-bit types): Rewrite 2013-06-06 logical operator
21829 changes to combine the 32/64-bit code, allow logical operations on
21830 TI mode in 32-bit, and to use similar match_operator patterns like
21831 scalar mode uses. Combine the Altivec and VSX code for logical
21832 operations, and move it here.
21833 (ior<mode>3, 128-bit types): Likewise.
21834 (xor<mode>3, 128-bit types): Likewise.
21835 (one_cmpl<mode>3, 128-bit types): Likewise.
21836 (nor<mode>3, 128-bit types): Likewise.
21837 (andc<mode>3, 128-bit types): Likewise.
21838 (eqv<mode>3, 128-bit types): Likewise.
21839 (nand<mode>3, 128-bit types): Likewise.
21840 (orc<mode>3, 128-bit types): Likewise.
21841 (and<mode>3_internal): Likewise.
21842 (bool<mode>3_internal): Likewise.
21843 (boolc<mode>3_internal1): Likewise.
21844 (boolc<mode>3_internal2): Likewise.
21845 (boolcc<mode>3_internal1): Likewise.
21846 (boolcc<mode>3_internal2): Likewise.
21847 (eqv<mode>3_internal1): Likewise.
21848 (eqv<mode>3_internal2): Likewise.
21849 (one_cmpl1<mode>3_internal): Likewise.
21851 2013-07-23 David Holsgrove <david.holsgrove@xilinx.com>
21853 * config/microblaze/microblaze.c (microblaze_expand_prologue):
21854 Rename flag_stack_usage to flag_stack_usage_info.
21856 2013-07-23 David Holsgrove <david.holsgrove@xilinx.com>
21858 * config/microblaze/sync.md: New file.
21859 * config/microblaze/microblaze.md: Include sync.md
21860 * config/microblaze/microblaze.c: Add print_operand 'y'.
21861 * config/microblaze/constraints.md: Add memory_contraint
21862 'Q' which is a single register.
21864 2013-07-23 Eric Botcazou <ebotcazou@adacore.com>
21866 * doc/invoke.texi (SPARC Options): Document new leon3 processor value.
21868 2013-07-22 Po-Chun Chang <pchang9@cs.wisc.edu>
21870 * reload.c (find_reloads): Exit loop once we find this operand
21871 cannot be reloaded somehow for this alternative.
21873 * reload.c (find_reloads): Exit loop once we find a hard register.
21875 * rtlanal.c (computed_jump_p): Exit loop once we find label
21878 * i386.c (ix86_pad_returns): Exit loop after setting replace.
21880 * cfgloopmanip.c (remove_path): Exit loop after setting
21883 * gensupport.c (subst_dup): Avoid loop if code is not
21884 MATCH_DUP nor MATCH_OP_DUP.
21886 2013-07-23 Nicklas Bo Jensen <nbjensen@gmail.com>
21888 * doc/md.texi (Machine-Specific Peephole Optimizers): Fix a typo.
21890 2013-07-23 Yufeng Zhang <yufeng.zhang@arm.com>
21892 * config/aarch64/aarch64.c (aarch64_hard_regno_mode_ok): Also return
21893 true for SP_REGNUM if mode == ptr_mode.
21894 * config/aarch64/aarch64.h (ADDITIONAL_REGISTER_NAMES): Add "wsp"
21895 with value R0_REGNUM + 31.
21897 2013-07-23 Yufeng Zhang <yufeng.zhang@arm.com>
21899 * config/aarch64/aarch64.c (aarch64_pad_arg_upward): In big-endian,
21900 pad pointer-typed argument downward.
21902 2013-07-23 Yufeng Zhang <yufeng.zhang@arm.com>
21904 * config/aarch64/aarch64.h (TARGET_CPU_CPP_BUILTINS): Define _ILP32
21905 and __ILP32__ when the ILP32 model is in use.
21907 2013-07-23 Yufeng Zhang <yufeng.zhang@arm.com>
21909 * config/aarch64/aarch64.c (POINTER_BYTES): New define.
21910 (aarch64_load_symref_appropriately): In the case of
21911 SYMBOL_SMALL_ABSOLUTE, use the mode of 'dest' instead of Pmode
21912 to generate new rtx; likewise to the case of SYMBOL_SMALL_GOT.
21913 (aarch64_expand_mov_immediate): In the case of SYMBOL_FORCE_TO_MEM,
21914 change to pass 'ptr_mode' to force_const_mem and zero-extend 'mem'
21915 if 'mode' doesn't equal to 'ptr_mode'.
21916 (aarch64_output_mi_thunk): Add an assertion on the alignment of
21917 'vcall_offset'; change to call aarch64_emit_move differently depending
21918 on whether 'Pmode' equals to 'ptr_mode' or not; use 'POINTER_BYTES'
21919 to calculate the upper bound of 'vcall_offset'.
21920 (aarch64_cannot_force_const_mem): Change to also return true if
21922 (aarch64_legitimize_reload_address): In the case of large
21923 displacements, add new local variable 'xmode' and an assertion
21924 based on it; change to use 'xmode' to generate the new rtx and
21926 (aarch64_asm_trampoline_template): Change to generate the template
21927 differently depending on TARGET_ILP32 or not; change to use
21928 'POINTER_BYTES' in the argument passed to assemble_aligned_integer.
21929 (aarch64_trampoline_size): Removed.
21930 (aarch64_trampoline_init): Add new local constant 'tramp_code_sz'
21931 and replace immediate literals with it. Change to use 'ptr_mode'
21932 instead of 'DImode' and call convert_memory_address if the mode
21933 of 'fnaddr' doesn't equal to 'ptr_mode'.
21934 (aarch64_elf_asm_constructor): Change to use assemble_aligned_integer
21936 (aarch64_elf_asm_destructor): Likewise.
21937 * config/aarch64/aarch64.h (TRAMPOLINE_SIZE): Change to be dependent
21938 on TARGET_ILP32 instead of aarch64_trampoline_size.
21939 * config/aarch64/aarch64.md (movsi_aarch64): Add new alternatives
21940 of 'mov' between WSP and W registers as well as 'adr' and 'adrp'.
21941 (loadwb_pair<GPI:mode>_<PTR:mode>): Rename to ...
21942 (loadwb_pair<GPI:mode>_<P:mode>): ... this. Replace PTR with P.
21943 (storewb_pair<GPI:mode>_<PTR:mode>): Likewise; rename to ...
21944 (storewb_pair<GPI:mode>_<P:mode>): ... this.
21945 (add_losym): Change to 'define_expand' and call gen_add_losym_<mode>
21946 depending on the value of 'mode'.
21947 (add_losym_<mode>): New.
21948 (ldr_got_small_<mode>): New, based on ldr_got_small.
21949 (ldr_got_small): Remove.
21950 (ldr_got_small_sidi): New.
21951 * config/aarch64/iterators.md (P): New.
21952 (PTR): Change to 'ptr_mode' in the condition.
21954 2013-07-23 Yufeng Zhang <yufeng.zhang@arm.com>
21956 * config.gcc (aarch64*-*-*): Support --with-abi.
21957 (aarch64*-*-elf): Support --with-multilib-list.
21958 (aarch64*-*-linux*): Likewise.
21959 (supported_defaults): Add abi to aarch64*-*-*.
21960 * configure.ac: Mention AArch64 for --with-multilib-list.
21961 * configure: Re-generated.
21962 * config/aarch64/biarchilp32.h: New file.
21963 * config/aarch64/biarchlp64.h: New file.
21964 * config/aarch64/aarch64-elf.h (ENDIAN_SPEC): New define.
21966 (MULTILIB_DEFAULTS): Ditto.
21967 (DRIVER_SELF_SPECS): Ditto.
21968 (ASM_SPEC): Update to also substitute -mabi.
21969 * config/aarch64/aarch64-elf-raw.h (LINK_SPEC): Add linker script
21970 file whose name depends on -mabi= and -mbig-endian.
21971 * config/aarch64/aarch64.h (LONG_TYPE_SIZE): Change to depend on
21973 (POINTER_SIZE): New define.
21974 (POINTERS_EXTEND_UNSIGNED): Ditto.
21975 (enum aarch64_abi_type): New enumeration tag.
21976 (AARCH64_ABI_LP64, AARCH64_ABI_ILP32): New enumerators.
21977 (AARCH64_ABI_DEFAULT): Define to AARCH64_ABI_LP64 if undefined.
21978 (TARGET_ILP32): New define.
21979 * config/aarch64/aarch64.opt (mabi): New.
21980 (aarch64_abi): New.
21981 (ilp32, lp64): New values for -mabi.
21982 * config/aarch64/t-aarch64 (comma): New define.
21983 (MULTILIB_OPTIONS): Ditto.
21984 (MULTILIB_DIRNAMES): Ditto.
21985 * config/aarch64/t-aarch64-linux (MULTIARCH_DIRNAME): New define.
21986 * doc/invoke.texi: Document -mabi for AArch64.
21988 2013-07-23 Georg-Johann Lay <avr@gjlay.de>
21990 * config/avr/avr.md: Explain asm print modifier 'r' for REG.
21992 2013-07-22 Bill Schmidt <wschmidt@vnet.linux.ibm.com>
21993 Anton Blanchard <anton@au1.ibm.com>
21995 * config/rs6000/rs6000.c (rs6000_expand_vector_init): Fix
21996 endianness when selecting field to splat.
21998 2013-07-22 Eric Christopher <echristo@gmail.com>
22000 * dwarf2out.c (die_odr_checksum): New function to use
22001 CHECKSUM_ macros and ULEB128 for DIE tag.
22002 (generate_type_signature): Use.
22004 2013-07-22 Eric Botcazou <ebotcazou@adacore.com>
22006 * config.gcc (sparc*-*-*): Accept leon3 processor.
22007 (sparc-leon*-*): Merge with sparc*-*-* and add leon3 support.
22008 * doc/invoke.texi (SPARC Options): Adjust -mfix-ut699 entry.
22009 * config/sparc/sparc-opts.h (enum processor_type): Add PROCESSOR_LEON3.
22010 * config/sparc/sparc.opt (enum processor_type): Add leon3.
22011 (mfix-ut699): Adjust comment.
22012 * config/sparc/sparc.h (TARGET_CPU_leon3): New define.
22013 (CPP_CPU32_DEFAULT_SPEC): Add leon3 support.
22014 (CPP_CPU_SPEC): Likewise.
22015 (ASM_CPU_SPEC): Likewise.
22016 * config/sparc/sparc.c (leon3_cost): New constant.
22017 (sparc_option_override): Add leon3 support.
22018 (mem_ref): New function.
22019 (sparc_gate_work_around_errata): Return true if -mfix-ut699 is enabled.
22020 (sparc_do_work_around_errata): Look into the instruction in the delay
22021 slot and adjust accordingly. Add fix for the data cache nullify issues
22022 of the UT699. Change insertion position for the NOP.
22023 * config/sparc/leon.md (leon_fpalu, leon_fpmds, write_buf): Delete.
22024 (leon3_load): New reservation.
22025 (leon_store): Bump latency to 2.
22026 (grfpu): New automaton.
22027 (grfpu_alu): New unit.
22028 (grfpu_ds): Likewise.
22029 (leon_fp_alu): Adjust.
22030 (leon_fp_mult): Delete.
22031 (leon_fp_div): Split into leon_fp_divs and leon_fp_divd.
22032 (leon_fp_sqrt): Split into leon_fp_sqrts and leon_fp_sqrtd.
22033 * config/sparc/sparc.md (cpu): Add leon3.
22034 * config/sparc/sync.md (atomic_exchangesi): Disable if -mfix-ut699.
22035 (swapsi): Likewise.
22036 (atomic_test_and_set): Likewise.
22037 (ldstub): Likewise.
22039 2013-07-22 Jürgen Urban <JuergenUrban@gmx.de>
22041 * config.gcc (mips*-*-*): Add --with-fpu support. Make single the
22042 default for R5900 targets.
22043 * config/mips/mips.h (OPTION_DEFAULT_SPECS): Handle --with-fpu.
22044 (ISA_HAS_LDC1_SDC1): Set to false for TARGET_MIPS5900.
22045 * config/mips/mips.c (mips_option_override): Report an error for
22046 -march=r5900 -mhard-float -mdouble-float. Use spu_single_format
22047 for -march=r5900 -mhard-float.
22049 2013-07-22 Po-Chun Chang <pchang9@cs.wisc.edu>
22051 * df-problems.c (can_move_insns_across): Exit loop once we
22052 find a non-fixed, non-global register.
22054 * ipa-pure-const.c (propagate_nothrow): Exit loop after
22057 * omega.c (omega_eliminate_red): Break after setting red_found.
22058 (omega_problem_has_red_equations): Similarly after setting found.
22059 (omega_query_variable): Similarly after setting coupled.
22061 2013-07-22 Marek Polacek <polacek@redhat.com>
22063 * gimplify.c: Don't include gimple.h twice.
22065 2013-07-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
22067 * config/arm/constraints.md (Pd): Allow TARGET_THUMB
22068 instead of TARGET_THUMB1.
22069 (Pz): New constraint.
22070 * config/arm/arm.md (arm_addsi3): Add alternatives for 16-bit
22072 (compare_negsi_si): Likewise.
22073 (compare_addsi2_op0): Likewise.
22074 (compare_addsi2_op1): Likewise.
22075 (addsi3_carryin_<optab>): Likewise.
22076 (addsi3_carryin_alt2_<optab>): Likewise.
22077 (addsi3_carryin_shift_<optab>): Disable cond_exec variant
22078 for arm_restrict_it.
22079 (subsi3_carryin): Likewise.
22080 (arm_subsi3_insn): Add alternatives for 16-bit encoding.
22081 (minmax_arithsi): Disable for arm_restrict_it.
22082 (minmax_arithsi_non_canon): Adjust for arm_restrict_it.
22083 (satsi_<SAT:code>): Disable cond_exec variant for arm_restrict_it.
22084 (satsi_<SAT:code>_shift): Likewise.
22085 (arm_shiftsi3): Add alternative for 16-bit encoding.
22086 (arm32_movhf): Disable for arm_restrict_it.
22087 (arm_cmpdi_unsigned): Add alternatives for 16-bit encoding.
22088 (arm_movtas_ze): Disable cond_exec variant for arm_restrict_it.
22090 2013-07-22 Sofiane Naci <sofiane.naci@arm.com>
22092 * config/arm/arm.md (attribute "insn"): Delete.
22093 (attribute "type"): Add "mov_imm", "mov_reg", "mov_shift",
22094 "mov_shift_reg", "mvn_imm", "mvn_reg", "mvn_shift" and "mvn_shift_reg".
22095 (not_shiftsi): Update for attribute change.
22096 (not_shiftsi_compare0): Likewise.
22097 (not_shiftsi_compare0_scratch): Likewise.
22098 (arm_one_cmplsi2): Likewise.
22099 (thumb1_one_cmplsi2): Likewise.
22100 (notsi_compare0): Likewise.
22101 (notsi_compare0_scratch): Likewise.
22102 (thumb1_movdi_insn): Likewise.
22103 (arm_movsi_insn): Likewise.
22104 (movhi_insn_arch4): Likewise.
22105 (movhi_bytes): Likewise.
22106 (arm_movqi_insn): Likewise.
22107 (thumb1_movqi_insn): Likewise.
22108 (arm32_movhf): Likewise.
22109 (thumb1_movhf): Likewise.
22110 (arm_movsf_soft_insn): Likewise.
22111 (thumb1_movsf_insn): Likewise.
22112 (thumb_movdf_insn): Likewise.
22113 (movsicc_insn): Likewise.
22114 (movsfcc_soft_insn): Likewise.
22115 (and_scc): Likewise.
22116 (cond_move): Likewise.
22117 (if_move_not): Likewise.
22118 (if_not_move): Likewise.
22119 (if_shift_move): Likewise.
22120 (if_move_shift): Likewise.
22121 (if_shift_shift): Likewise.
22122 (if_not_arith): Likewise.
22123 (if_arith_not): Likewise.
22124 (cond_move_not): Likewise.
22125 * config/arm/neon.md (neon_mov<mode>): Update for attribute change.
22126 (neon_mov<mode>): Likewise.
22127 * config/arm/vfp.md (arm_movsi_vfp): Update for attribute change.
22128 (thumb2_movsi_vfp): Likewise.
22129 (movsf_vfp): Likewise.
22130 (thumb2_movsf_vfp): Likewise.
22131 * config/arm/arm.c (xscale_sched_adjust_cost): Update for attribute
22133 (cortexa7_older_only): Likewise.
22134 (cortexa7_younger): Likewise.
22135 * config/arm/arm1020e.md (1020alu_op): Update for attribute change.
22136 (1020alu_shift_op): Likewise.
22137 (1020alu_shift_reg_op): Likewise.
22138 * config/arm/arm1026ejs.md (alu_op): Update for attribute change.
22139 (alu_shift_op): Likewise.
22140 (alu_shift_reg_op): Likewise.
22141 * config/arm/arm1136jfs.md (11_alu_op): Update for attribute change.
22142 (11_alu_shift_op): Likewise.
22143 (11_alu_shift_reg_op): Likewise.
22144 * config/arm/arm926ejs.md (9_alu_op): Update for attribute change.
22145 (9_alu_shift_reg_op): Likewise.
22146 * config/arm/cortex-a15.md (cortex_a15_alu): Update for attribute
22148 (cortex_a15_alu_shift): Likewise.
22149 (cortex_a15_alu_shift_reg): Likewise.
22150 * config/arm/cortex-a5.md (cortex_a5_alu): Update for attribute change.
22151 (cortex_a5_alu_shift): Likewise.
22152 * config/arm/cortex-a53.md (cortex_a53_alu): Update for attribute
22154 (cortex_a53_alu_shift): Likewise.
22155 * config/arm/cortex-a7.md (cortex_a7_alu_imm): Update for attribute
22157 (cortex_a7_alu_reg): Likewise.
22158 (cortex_a7_alu_shift): Likewise.
22159 * config/arm/cortex-a8.md (cortex_a8_alu): Update for attribute change.
22160 (cortex_a8_alu_shift): Likewise.
22161 (cortex_a8_alu_shift_reg): Likewise.
22162 (cortex_a8_mov): Likewise.
22163 * config/arm/cortex-a9.md (cortex_a9_dp): Update for attribute change.
22164 (cortex_a9_dp_shift): Likewise.
22165 * config/arm/cortex-m4.md (cortex_m4_alu): Update for attribute change.
22166 * config/arm/cortex-r4.md (cortex_r4_alu): Update for attribute change.
22167 (cortex_r4_mov): Likewise.
22168 (cortex_r4_alu_shift): Likewise.
22169 (cortex_r4_alu_shift_reg): Likewise.
22170 * config/arm/fa526.md (526_alu_op): Update for attribute change.
22171 (526_alu_shift_op): Likewise.
22172 * config/arm/fa606te.md (606te_alu_op): Update for attribute change.
22173 * config/arm/fa626te.md (626te_alu_op): Update for attribute change.
22174 (626te_alu_shift_op): Likewise.
22175 * config/arm/fa726te.md (726te_shift_op): Update for attribute change.
22176 (726te_alu_op): Likewise.
22177 (726te_alu_shift_op): Likewise.
22178 (726te_alu_shift_reg_op): Likewise.
22179 * config/arm/fmp626.md (mp626_alu_op): Update for attribute change.
22180 (mp626_alu_shift_op): Likewise.
22181 * config/arm/marvell-pj4.md (pj4_alu_e1): Update for attribute change.
22182 (pj4_alu_e1_conds): Likewise.
22183 (pj4_alu): Likewise.
22184 (pj4_alu_conds): Likewise.
22185 (pj4_shift): Likewise.
22186 (pj4_shift_conds): Likewise.
22187 (pj4_alu_shift): Likewise.
22188 (pj4_alu_shift_conds): Likewise.
22190 2013-07-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
22192 * config/arm/predicates.md (shiftable_operator_strict_it):
22194 * config/arm/thumb2.md (thumb_andsi_not_shiftsi_si):
22195 Disable cond_exec version for arm_restrict_it.
22196 (thumb2_smaxsi3): Convert to generate cond_exec.
22197 (thumb2_sminsi3): Likewise.
22198 (thumb32_umaxsi3): Likewise.
22199 (thumb2_uminsi3): Likewise.
22200 (thumb2_abssi2): Adjust constraints for arm_restrict_it.
22201 (thumb2_neg_abssi2): Likewise.
22202 (thumb2_mov_scc): Add alternative for 16-bit encoding.
22203 (thumb2_movsicc_insn): Adjust alternatives.
22204 (thumb2_mov_negscc): Disable for arm_restrict_it.
22205 (thumb2_mov_negscc_strict_it): New pattern.
22206 (thumb2_mov_notscc_strict_it): New pattern.
22207 (thumb2_mov_notscc): Disable for arm_restrict_it.
22208 (thumb2_ior_scc): Likewise.
22209 (thumb2_ior_scc_strict_it): New pattern.
22210 (thumb2_cond_move): Adjust for arm_restrict_it.
22211 (thumb2_cond_arith): Disable for arm_restrict_it.
22212 (thumb2_cond_arith_strict_it): New pattern.
22213 (thumb2_cond_sub): Adjust for arm_restrict_it.
22214 (thumb2_movcond): Likewise.
22215 (thumb2_extendqisi_v6): Disable cond_exec variant for arm_restrict_it.
22216 (thumb2_zero_extendhisi2_v6): Likewise.
22217 (thumb2_zero_extendqisi2_v6): Likewise.
22218 (orsi_notsi_si): Likewise.
22219 (orsi_not_shiftsi_si): Likewise.
22221 2013-07-22 Georg-Johann Lay <avr@gjlay.de>
22223 * config/avr/avr.c (avr_out_xload): No SBIS around LPM so that
22224 instruction sequence is 1 byte shorter.
22226 2013-07-22 Uros Bizjak <ubizjak@gmail.com>
22228 * config/i386/i386.md (nonlocal_goto_receiver): Delete insn if
22229 it is not needed after split.
22231 2013-07-20 Iain Sandoe <iain@codesourcery.com>
22234 * config/i386/i386.c (output_set_got) [TARGET_MACHO]: Adjust to emit a
22235 second label for nonlocal goto receivers. Don't output pic base labels
22236 unless we're producing PIC; mark that action unreachable().
22237 (ix86_save_reg): If the function contains a nonlocal label, save the
22239 * config/darwin-protos.h (machopic_should_output_picbase_label): New.
22240 * config/darwin.c (emitted_pic_label_num): New GTY.
22241 (update_pic_label_number_if_needed): New.
22242 (machopic_output_function_base_name): Adjust for nonlocal receiver
22244 (machopic_should_output_picbase_label): New.
22245 * config/i386/i386.md (enum unspecv): UNSPECV_NLGR: New.
22246 (nonlocal_goto_receiver): New insn and split.
22248 2013-07-20 James Greenhalgh <james.greenhalgh@arm.com>
22250 * config/aarch64/aarch64-builtins.c
22251 (aarch64_fold_builtin): Fold abs in all modes.
22252 * config/aarch64/aarch64-simd-builtins.def
22253 (abs): Enable for all modes.
22254 * config/aarch64/arm_neon.h
22255 (vabs<q>_s<8,16,32,64): Rewrite using builtins.
22256 (vabs_f64): Add missing intrinsic.
22258 2013-07-19 Ian Bolton <ian.bolton@arm.com>
22260 * config/aarch64/arm_neon.h (vabs_s64): New function
22262 2013-07-19 Georg-Johann Lay <avr@gjlay.de>
22265 * config/avr/avr-fixed.md (round<mode>3_const): Turn expander to insn.
22266 * config/avr/avr.md (adjust_len): Add `round'.
22267 * config/avr/avr-protos.h (avr_out_round): New prototype.
22268 (avr_out_plus): Add `out_label' argument.
22269 * config/avr/avr.c (avr_out_plus_1): Add `out_label' argument.
22270 (avr_out_plus): Pass down `out_label' to avr_out_plus_1.
22271 Handle the case where `insn' is just a pattern.
22272 (avr_out_bitop): Handle the case where `insn' is just a pattern.
22273 (avr_out_round): New function.
22274 (avr_adjust_insn_length): Handle ADJUST_LEN_ROUND.
22276 2013-07-18 David Holsgrove <david.holsgrove@xilinx.com>
22278 * config/microblaze/microblaze.c (microblaze_expand_prologue):
22279 Add check for flag_stack_usage to handle -fstack-usage support
22281 2013-07-18 Pat Haugen <pthaugen@us.ibm.com>
22283 * config/rs6000/rs6000.c (rs6000_option_override_internal): Adjust flag
22284 interaction for new Power8 flags and VSX.
22286 2013-07-18 Sriraman Tallam <tmsriram@google.com>
22288 PR middle-end/57698
22289 * tree-inline.c (expand_call_inline): Emit errors during
22290 early_inlining only if optimization is not turned on.
22292 2013-07-18 David Malcolm <dmalcolm@redhat.com>
22296 * passes.c (init_optimization_passes): Move the construction of
22297 the pass hierarchy into a new passes.def file.
22299 * Makefile.in (passes.o): Add dependency on passes.def.
22301 2013-07-18 David Malcolm <dmalcolm@redhat.com>
22303 * passes.c (init_optimization_passes): Introduce macros for
22304 constructing the tree of passes (INSERT_PASSES_AFTER,
22305 PUSH_INSERT_PASSES_WITHIN, POP_INSERT_PASSES,
22306 TERMINATE_PASS_LIST).
22308 2013-07-18 Vladimir Makarov <vmakarov@redhat.com>
22309 Wei Mi <wmi@google.com>
22311 PR rtl-optimization/57878
22312 * lra-assigns.c (assign_by_spills): Move non_reload_pseudos to the
22314 (reload_pseudo_compare_func): Check nregs first for reload
22317 2013-07-18 David Malcolm <dmalcolm@redhat.com>
22319 * tree-pass.h (pass_ipa_lto_wpa_fixup): Remove redundant decl.
22321 2013-07-18 Po-Chun Chang <pchang9@cs.wisc.edu>
22323 * read-rtl.c (validate_const_int): Once an invalid character is
22324 seen, quit the loop.
22326 * gengtype.c (write_roots): Similarly once we find the "deletable"
22327 or "if_marked" option.
22329 2013-07-18 Sofiane Naci <sofiane.naci@arm.com>
22331 * config/arm/arm.md (attribute "insn"): Delete values "mrs", "msr",
22332 "xtab" and "sat". Move value "clz" from here to ...
22333 (attriubte "type"): ... here.
22334 (satsi_<SAT:code>): Delete "insn" attribute.
22335 (satsi_<SAT:code>_shift): Likewise.
22336 (arm_zero_extendqisi2addsi): Likewise.
22337 (arm_extendqisi2addsi): Likewise.
22338 (clzsi2): Update for attribute changes.
22339 (rbitsi2): Likewise.
22340 * config/arm/arm-fixed.md (arm_ssatsihi_shift): Delete "insn"
22342 (arm_usatsihi): Likewise.
22343 * config/arm/cortex-a8.md (cortex_a8_alu): Update for attribute change.
22345 2013-07-18 Sofiane Naci <sofiane.naci@arm.com>
22347 * config/arm/arm.md (attribute "type"): Rename "simple_alu_imm" to
22348 "arlo_imm". Rename "alu_reg" to "arlo_reg". Rename "simple_alu_shift"
22349 to "extend". Split "alu_shift" into "shift" and "arlo_shift". Split
22350 "alu_shift_reg" into "shift_reg" and "arlo_shift_reg". List types
22351 in alphabetical order.
22352 (attribute "core_cycles"): Update for attribute changes.
22353 (arm_addsi3): Likewise.
22354 (addsi3_compare0): Likewise.
22355 (addsi3_compare0_scratch): Likewise.
22356 (addsi3_compare_op1): Likewise.
22357 (addsi3_compare_op2): Likewise.
22358 (compare_addsi2_op0): Likewise.
22359 (compare_addsi2_op1): Likewise.
22360 (addsi3_carryin_shift_<optab>): Likewise.
22361 (subsi3_carryin_shift): Likewise.
22362 (rsbsi3_carryin_shift): Likewise.
22363 (arm_subsi3_insn): Likewise.
22364 (subsi3_compare0): Likewise.
22365 (subsi3_compare): Likewise.
22366 (arm_andsi3_insn): Likewise.
22367 (thumb1_andsi3_insn): Likewise.
22368 (andsi3_compare0): Likewise.
22369 (andsi3_compare0_scratch): Likewise.
22370 (zeroextractsi_compare0_scratch
22371 (andsi_not_shiftsi_si): Likewise.
22372 (iorsi3_insn): Likewise.
22373 (iorsi3_compare0): Likewise.
22374 (iorsi3_compare0_scratch): Likewise.
22375 (arm_xorsi3): Likewise.
22376 (thumb1_xorsi3_insn): Likewise.
22377 (xorsi3_compare0): Likewise.
22378 (xorsi3_compare0_scratch): Likewise.
22379 (satsi_<SAT:code>_shift): Likewise.
22381 (arm_shiftsi3): Likewise.
22382 (shiftsi3_compare0): Likewise.
22383 (not_shiftsi): Likewise.
22384 (not_shiftsi_compare0): Likewise.
22385 (not_shiftsi_compare0_scratch): Likewise.
22386 (arm_one_cmplsi2): Likewise.
22387 (thumb_one_complsi2): Likewise.
22388 (notsi_compare0): Likewise.
22389 (notsi_compare0_scratch): Likewise.
22390 (thumb1_zero_extendhisi2): Likewise.
22391 (arm_zero_extendhisi2): Likewise.
22392 (arm_zero_extendhisi2_v6): Likewise.
22393 (arm_zero_extendhisi2addsi): Likewise.
22394 (thumb1_zero_extendqisi2): Likewise.
22395 (thumb1_zero_extendqisi2_v6): Likewise.
22396 (arm_zero_extendqisi2): Likewise.
22397 (arm_zero_extendqisi2_v6): Likewise.
22398 (arm_zero_extendqisi2addsi): Likewise.
22399 (thumb1_extendhisi2): Likewise.
22400 (arm_extendhisi2): Likewise.
22401 (arm_extendhisi2_v6): Likewise.
22402 (arm_extendqisi): Likewise.
22403 (arm_extendqisi_v6): Likewise.
22404 (arm_extendqisi2addsi): Likewise.
22405 (thumb1_extendqisi2): Likewise.
22406 (thumb1_movdi_insn): Likewise.
22407 (arm_movsi_insn): Likewise.
22408 (movsi_compare0): Likewise.
22409 (movhi_insn_arch4): Likewise.
22410 (movhi_bytes): Likewise.
22411 (arm_movqi_insn): Likewise.
22412 (thumb1_movqi_insn): Likewise.
22413 (arm32_movhf): Likewise.
22414 (thumb1_movhf): Likewise.
22415 (arm_movsf_soft_insn): Likewise.
22416 (thumb1_movsf_insn): Likewise.
22417 (movdf_soft_insn): Likewise.
22418 (thumb_movdf_insn): Likewise.
22419 (arm_cmpsi_insn): Likewise.
22420 (cmpsi_shiftsi): Likewise.
22421 (cmpsi_shiftsi_swp): Likewise.
22422 (arm_cmpsi_negshiftsi_si): Likewise.
22423 (movsicc_insn): Likewise.
22424 (movsfcc_soft_insn): Likewise.
22425 (arith_shiftsi): Likewise.
22426 (arith_shiftsi_compare0
22427 (arith_shiftsi_compare0_scratch
22428 (sub_shiftsi): Likewise.
22429 (sub_shiftsi_compare0
22430 (sub_shiftsi_compare0_scratch
22431 (and_scc): Likewise.
22432 (cond_move): Likewise.
22433 (if_plus_move): Likewise.
22434 (if_move_plus): Likewise.
22435 (if_move_not): Likewise.
22436 (if_not_move): Likewise.
22437 (if_shift_move): Likewise.
22438 (if_move_shift): Likewise.
22439 (if_shift_shift): Likewise.
22440 (if_not_arith): Likewise.
22441 (if_arith_not): Likewise.
22442 (cond_move_not): Likewise.
22443 (thumb1_ashlsi3): Set type attribute.
22444 (thumb1_ashrsi3): Likewise.
22445 (thumb1_lshrsi3): Likewise.
22446 (thumb1_rotrsi3): Likewise.
22447 (shiftsi3_compare0_scratch): Likewise.
22448 * config/arm/neon.md (neon_mov<mode>): Update for attribute changes.
22449 (neon_mov<mode>): Likewise.
22450 * config/arm/thumb2.md (thumb_andsi_not_shiftsi_si): Update for
22452 (thumb2_movsi_insn): Likewise.
22453 (thumb2_cmpsi_neg_shiftsi): Likewise.
22454 (thumb2_extendqisi_v6): Likewise.
22455 (thumb2_zero_extendhisi2_v6): Likewise.
22456 (thumb2_zero_extendqisi2_v6): Likewise.
22457 (thumb2_shiftsi3_short): Likewise.
22458 (thumb2_addsi3_compare0_scratch): Likewise.
22459 (orsi_not_shiftsi_si): Likewise.
22460 * config/arm/vfp.md (arm_movsi_vfp): Update for attribute changes.
22461 * config/arm/arm-fixed.md (arm_ssatsihi_shift): Update for attribute
22463 * config/arm/arm1020e.md (1020alu_op): Update for attribute changes.
22464 (1020alu_shift_op): Likewise.
22465 (1020alu_shift_reg_op): Likewise.
22466 * config/arm/arm1026ejs.md (alu_op): Update for attribute changes.
22467 (alu_shift_op): Likewise.
22468 (alu_shift_reg_op): Likewise.
22469 * config/arm/arm1136jfs.md (11_alu_op): Update for attribute changes.
22470 (11_alu_shift_op): Likewise.
22471 (11_alu_shift_reg_op): Likewise.
22472 * config/arm/arm926ejs.md (9_alu_op): Update for attribute changes.
22473 (9_alu_shift_reg_op): Likewise.
22474 * config/arm/cortex-a15.md (cortex_a15_alu): Update for attribute
22476 (cortex_a15_alu_shift): Likewise.
22477 (cortex_a15_alu_shift_reg): Likewise.
22478 * config/arm/cortex-a5.md (cortex_a5_alu): Update for attribute
22480 (cortex_a5_alu_shift): Likewise.
22481 * config/arm/cortex-a53.md (cortex_a53_alu) : Update for attribute
22483 (cortex_a53_alu_shift): Likewise.
22484 * config/arm/cortex-a7.md (cortex_a7_alu_imm): Update for attribute
22486 (cortex_a7_alu_reg): Likewise.
22487 (cortex_a7_alu_shift): Likewise.
22488 * config/arm/cortex-a8.md (cortex_a8_alu): Update for attribute
22490 (cortex_a8_alu_shift): Likewise.
22491 (cortex_a8_alu_shift_reg): Likewise.
22492 (cortex_a8_mov): Likewise.
22493 * config/arm/cortex-a9.md (cortex_a9_dp): Update for attribute changes.
22494 (cortex_a9_dp_shift): Likewise.
22495 * config/arm/cortex-m4.md (cortex_m4_alu): Update for attribute
22497 * config/arm/cortex-r4.md (cortex_r4_alu): Update for attribute
22499 (cortex_r4_mov): Likewise.
22500 (cortex_r4_alu_shift): Likewise.
22501 (cortex_r4_alu_shift_reg): Likewise.
22502 * config/arm/fa526.md (526_alu_op): Update for attribute changes.
22503 (526_alu_shift_op): Likewise.
22504 * config/arm/fa606te.md (606te_alu_op): Update for attribute changes.
22505 * config/arm/fa626te.md (626te_alu_op): Update for attribute changes.
22506 (626te_alu_shift_op): Likewise.
22507 * config/arm/fa726te.md (726te_shift_op): Update for attribute changes.
22508 (726te_alu_op): Likewise.
22509 (726te_alu_shift_op): Likewise.
22510 (726te_alu_shift_reg_op): Likewise.
22511 * config/arm/fmp626.md (mp626_alu_op): Update for attribute changes.
22512 (mp626_alu_shift_op): Likewise.
22513 * config/arm/marvell-pj4.md (pj4_alu_e1): Update for attribute changes.
22514 (pj4_alu_e1_conds): Likewise.
22515 (pj4_alu): Likewise.
22516 (pj4_alu_conds): Likewise.
22517 (pj4_shift): Likewise.
22518 (pj4_shift_conds): Likewise.
22519 (pj4_alu_shift): Likewise.
22520 (pj4_alu_shift_conds): Likewise.
22521 * config/arm/arm.c (xscale_sched_adjust_cost): Update for attribute
22523 (cortexa7_older_only): Likewise.
22524 (cortexa7_younger): Likewise.
22526 2013-07-18 David Malcolm <dmalcolm@redhat.com>
22528 * ipa-pure-const.c (generate_summary): Rename to...
22529 (pure_const_generate_summary): ... this.
22531 2013-07-17 Iain Sandoe <iain@codesourcery.com>
22533 * config/rs6000/darwin.h (REGISTER_NAMES): Add HTM registers.
22535 2013-07-17 Yvan Roux <yvan.roux@linaro.org>
22538 * config/arm/arm.c (gen_movmem_ldrd_strd): Fix unaligned load/store
22541 2013-07-17 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
22543 * config/s390/s390.c: (s390_expand_builtin): Allow -mhtm to be
22544 enabled without -march=zEC12.
22545 * config/s390/s390.h (TARGET_HTM): Do not require EC12 machine
22548 2013-07-16 Maciej W. Rozycki <macro@codesourcery.com>
22550 * config/mips/mips.h (ISA_HAS_FP4): Correct formatting.
22551 (ISA_HAS_FP_MADD4_MSUB4): Also enable for ISA_MIPS32R2.
22552 (ISA_HAS_NMADD4_NMSUB4): Remove the MODE argument; rewrite in
22553 terms of ISA_HAS_FP4, and also enable for ISA_MIPS32R2.
22554 (ISA_HAS_NMADD3_NMSUB3): Remove the MODE argument.
22555 * config/mips/mips.c (mips_rtx_costs) <PLUS>: Check for
22556 ISA_HAS_FP_MADD4_MSUB4 || ISA_HAS_FP_MADD3_MSUB3 rather than
22558 <MINUS, NEG>: Update according to changes to ISA_HAS_NMADD4_NMSUB4
22559 and ISA_HAS_NMADD3_NMSUB3.
22560 * config/mips/mips.md (nmadd4<mode>, nmadd3<mode>): Likewise.
22561 (nmadd4<mode>_fastmath, nmadd3<mode>_fastmath): Likewise.
22562 (nmsub4<mode>, nmsub3<mode>): Likewise.
22563 (nmsub4<mode>_fastmath, nmsub3<mode>_fastmath): Likewise.
22565 2013-07-16 Maciej W. Rozycki <macro@codesourcery.com>
22567 * config/mips/mips.h (ISA_HAS_NMADD4_NMSUB4): Remove
22568 TARGET_MIPS5400 checking.
22570 2013-07-16 Jakub Jelinek <jakub@redhat.com>
22571 Peter Bergner <bergner@vnet.ibm.com>
22573 * config/rs6000/rs6000.h (FIRST_PSEUDO_REGISTERS): Mention HTM
22574 registers in the comment.
22575 (DWARF_FRAME_REGISTERS): Subtract also the 3 HTM registers.
22576 (DWARF_REG_TO_UNWIND_COLUMN): Use DWARF_FRAME_REGISTERS
22577 rather than FIRST_PSEUDO_REGISTERS.
22579 2013-07-16 Peter Bergner <bergner@vnet.ibm.com>
22581 * config/rs6000/rs6000.c (rs6000_option_override_internal): Do not
22582 enable extra ISA flags with TARGET_HTM.
22584 2013-07-16 Maciej W. Rozycki <macro@codesourcery.com>
22586 * config/mips/mips.h (ISA_HAS_MULS, ISA_HAS_MSAC, ISA_HAS_MACC):
22589 2013-07-15 Cong Hou <congh@google.com>
22591 * tree-vect-data-refs.c (dr_group_sort_cmp): Do not use hash function
22592 in compare function for sorting.
22594 2013-07-15 Peter Bergner <bergner@vnet.ibm.com>
22596 * config.gcc (powerpc*-*-*): Install htmintrin.h and htmxlintrin.h.
22597 * config/rs6000/t-rs6000 (MD_INCLUDES): Add htm.md.
22598 * config/rs6000/rs6000.opt: Add -mhtm option.
22599 * config/rs6000/rs6000-cpus.def (POWERPC_MASKS): Add OPTION_MASK_HTM.
22600 (ISA_2_7_MASKS_SERVER): Add OPTION_MASK_HTM.
22601 * config/rs6000/rs6000-c.c (rs6000_target_modify_macros): Define
22602 __HTM__ if the HTM instructions are available.
22603 * config/rs6000/predicates.md (u3bit_cint_operand, u10bit_cint_operand,
22604 htm_spr_reg_operand): New define_predicates.
22605 * config/rs6000/rs6000.md (define_attr "type"): Add htm.
22606 (TFHAR_REGNO, TFIAR_REGNO, TEXASR_REGNO): New define_constants.
22608 * config/rs6000/rs6000-builtin.def (BU_HTM_0, BU_HTM_1, BU_HTM_2,
22609 BU_HTM_3, BU_HTM_SPR0, BU_HTM_SPR1): Add support macros for defining
22610 HTM builtin functions.
22611 * config/rs6000/rs6000.c (RS6000_BUILTIN_H): New macro.
22612 (rs6000_reg_names, alt_reg_names): Add HTM SPR register names.
22613 (rs6000_init_hard_regno_mode_ok): Add support for HTM instructions.
22614 (rs6000_builtin_mask_calculate): Likewise.
22615 (rs6000_option_override_internal): Likewise.
22616 (bdesc_htm): Add new HTM builtin support.
22617 (htm_spr_num): New function.
22618 (htm_spr_regno): Likewise.
22619 (rs6000_htm_spr_icode): Likewise.
22620 (htm_expand_builtin): Likewise.
22621 (htm_init_builtins): Likewise.
22622 (rs6000_expand_builtin): Add support for HTM builtin functions.
22623 (rs6000_init_builtins): Likewise.
22624 (rs6000_invalid_builtin, rs6000_opt_mask): Add support for -mhtm
22626 * config/rs6000/rs6000.h (ASM_CPU_SPEC): Add support for -mhtm.
22627 (TARGET_HTM, MASK_HTM): Define macros.
22628 (FIRST_PSEUDO_REGISTER): Adjust for new HTM SPR registers.
22629 (FIXED_REGISTERS): Likewise.
22630 (CALL_USED_REGISTERS): Likewise.
22631 (CALL_REALLY_USED_REGISTERS): Likewise.
22632 (REG_ALLOC_ORDER): Likewise.
22633 (enum reg_class): Likewise.
22634 (REG_CLASS_NAMES): Likewise.
22635 (REG_CLASS_CONTENTS): Likewise.
22636 (REGISTER_NAMES): Likewise.
22637 (ADDITIONAL_REGISTER_NAMES): Likewise.
22638 (RS6000_BTC_SPR, RS6000_BTC_VOID, RS6000_BTC_32BIT, RS6000_BTC_64BIT,
22639 RS6000_BTC_MISC_MASK, RS6000_BTM_HTM): New macros.
22640 (RS6000_BTM_COMMON): Add RS6000_BTM_HTM.
22641 * config/rs6000/htm.md: New file.
22642 * config/rs6000/htmintrin.h: New file.
22643 * config/rs6000/htmxlintrin.h: New file.
22645 2013-07-15 Marcus Shawcroft <marcus.shawcroft@arm.com>
22647 * config/aarch64/aarch64-protos.h (aarch64_symbol_type):
22648 Define SYMBOL_TINY_GOT, update comment.
22649 * config/aarch64/aarch64.c
22650 (aarch64_load_symref_appropriately): Handle SYMBOL_TINY_GOT.
22651 (aarch64_expand_mov_immediate): Likewise.
22652 (aarch64_print_operand): Likewise.
22653 (aarch64_classify_symbol): Likewise.
22654 * config/aarch64/aarch64.md (UNSPEC_GOTTINYPIC): Define.
22655 (ldr_got_tiny): Define.
22657 2013-07-13 Tobias Grosser <tobias@grosser.es>
22659 PR tree-optimization/54094
22660 * graphite-clast-to-gimple.c (translate_clast_for_loop): Derive the
22661 scheduling dimension for the parallelism check from the polyhedral
22662 information in the AST.
22663 * graphite-dependences.c (carries_deps): Do not assume the schedule is
22666 2013-07-13 Jason Merrill <jason@redhat.com>
22668 * print-tree.c (debug_vec_tree): Use debug_raw.
22669 (debug_raw (vec<tree, va_gc> &)): New.
22670 (debug_raw (vec<tree, va_gc> *)): New.
22671 * tree.h: Declare them.
22673 2013-07-13 Bin Cheng <bin.cheng@arm.com>
22675 * ifcvt.c (ifcvt_after_combine): New static variable.
22676 (cheap_bb_rtx_cost_p): Set scale to REG_BR_PROB_BASE when optimizing
22678 (if_convert): New parameter after_combine. Set ifcvt_after_combine.
22679 (rest_of_handle_if_conversion, rest_of_handle_if_after_combine,
22680 rest_of_handle_if_after_reload): Pass new argument for if_convert.
22682 2013-07-12 Maciej W. Rozycki <macro@codesourcery.com>
22684 * config/mips/mips.c (mips_expand_call): Remove empty statement.
22686 2013-07-12 Michael Matz <matz@suse.de>
22688 PR middle-end/55771
22689 * convert.c (convert_to_real): Reject non-float inner types.
22691 2013-07-12 Tejas Belagod <tejas.belagod@arm.com>
22693 * config/aarch64/aarch64-protos.h
22694 (aarch64_simd_immediate_valid_for_move): Remove.
22695 * config/aarch64/aarch64.c (simd_immediate_info): New member.
22696 (aarch64_simd_valid_immediate): Recognize idioms for shifting ones
22698 (aarch64_output_simd_mov_immediate): Print the correct shift specifier.
22700 2013-07-11 Steve Ellcey <sellcey@mips.com>
22702 * config/mips/mips.c (mips_conditional_register_usage): Do not
22703 use t[0-7] registers in MIPS16 mode when optimizing for size.
22705 2013-07-11 Sriraman Tallam <tmsriram@google.com>
22707 * config/i386/i386.c (dispatch_function_versions): Fix array
22708 indexing of function_version_info to match actual_versions.
22710 2013-07-11 Teresa Johnson <tejohnson@google.com>
22712 * vec.h (struct va_gc): Move release out-of-line.
22713 (va_gc::release): Call ggc_free on released vec.
22715 2013-07-11 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
22717 * config/rs6000/rs6000.md (""*tls_gd_low<TLSmode:tls_abi_suffix>"):
22718 Require GOT register as additional operand in UNSPEC.
22719 ("*tls_ld_low<TLSmode:tls_abi_suffix>"): Likewise.
22720 ("*tls_got_dtprel_low<TLSmode:tls_abi_suffix>"): Likewise.
22721 ("*tls_got_tprel_low<TLSmode:tls_abi_suffix>"): Likewise.
22722 ("*tls_gd<TLSmode:tls_abi_suffix>"): Update splitter.
22723 ("*tls_ld<TLSmode:tls_abi_suffix>"): Likewise.
22724 ("tls_got_dtprel_<TLSmode:tls_abi_suffix>"): Likewise.
22725 ("tls_got_tprel_<TLSmode:tls_abi_suffix>"): Likewise.
22727 2013-07-11 Georg-Johann Lay <avr@gjlay.de>
22730 * config/avr/avr.c (avr_set_current_function): Sanity-check signal
22731 name seen by assembler/linker rather if available.
22733 2013-07-11 Andreas Schwab <schwab@suse.de>
22735 * config/aarch64/aarch64-linux.h (CPP_SPEC): Define.
22737 2013-07-10 Vladimir Makarov <vmakarov@redhat.com>
22739 * lra-constraints.c (curr_insn_transform): Switch off optional reloads.
22741 2013-07-10 Joseph Myers <joseph@codesourcery.com>
22743 * doc/tm.texi.in: Move hook documentation to ....
22744 * target.def: ... here.
22746 * doc/tm.texi.in (TARGET_CANONICALIZE_COMPARISON): Remove stray
22747 text on @hook line.
22748 * doc/tm.texi: Regenerate.
22750 2013-07-10 Paolo Carlini <paolo.carlini@oracle.com>
22753 * doc/invoke.texi: Document -Wconditionally-supported.
22755 2013-07-10 Georg-Johann Lay <avr@gjlay.de>
22758 * config/avr/avr.c (avr_prologue_setup_frame): Trunk -size to mode
22761 2013-07-10 Georg-Johann Lay <avr@gjlay.de>
22764 * config/avr/avr-mcus.def (atmega16hva, atmega16hva2, atmega16hvb)
22765 (atmega16m1, atmega16u4, atmega32a, atmega32c1, atmega32hvb)
22766 (atmega32m1, atmega32u4, atmega32u6, atmega64c1, atmega64m1):
22767 Remove duplicate devices.
22768 * config/avr/gen-avr-mmcu-texi.c (print_mcus): Fail on duplicate MCUs.
22769 * config/avr/t-multilib: Regenerate.
22770 * config/avr/avr-tables.opt: Regenerate.
22771 * doc/avr-mmcu.texi: Regenerate.
22773 2013-07-10 Georg-Johann Lay <avr@gjlay.de>
22776 * config/avr/avr.opt (Waddr-space-convert): Fix typo.
22778 2013-07-10 Graham Stott <graham.stott@btinternet.com>
22780 * config/mips/mips.c (mips_rtx_costs): Very slightly increase
22781 the cost of MULT when optimizing for size.
22783 2013-07-10 Jan-Benedict Glaw <jbglaw@lug-owl.de>
22785 * config/cr16/cr16-protos.h: Don't include target.h.
22787 2013-07-09 Joseph Myers <joseph@codesourcery.com>
22789 * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Only
22790 adjust register size for TDmode and TFmode for VSX registers.
22792 2013-07-08 Kai Tietz <ktietz@redhat.com>
22795 * config/i386/i386.c (TARGET_FUNCTION_ATTRIBUTE_INLINABLE_P): Define as
22796 hook_bool_const_tree_true.
22798 2013-07-08 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
22800 * config/s390/s390.c: Replace F*_REGNUM with FPR*_REGNUM.
22801 * config/s390/s390.h: Remove F*_REGNUM macro definitions.
22802 * config/s390/s390.md: Define FPR*_REGNUM constants.
22803 Fix FPR2_REGNUM constant (18 -> 17).
22804 ("*trunc<BFP:mode><DFP_ALL:mode>2")
22805 ("*trunc<DFP_ALL:mode><BFP:mode>2")
22806 ("trunc<BFP:mode><DFP_ALL:mode>2")
22807 ("trunc<DFP_ALL:mode><BFP:mode>2")
22808 ("*extend<BFP:mode><DFP_ALL:mode>2")
22809 ("*extend<DFP_ALL:mode><BFP:mode>2")
22810 ("extend<BFP:mode><DFP_ALL:mode>2")
22811 ("extend<DFP_ALL:mode><BFP:mode>2"): Replace FPR2_REGNUM with
22814 2013-07-08 Graham Stott <graham.stott@btinternet.com>
22816 * Makefile.in: (c-family-warn): Define to $(STRICT_WARN)
22818 2013-07-08 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
22820 * config/s390/s390.c: Rename cfun_set_fpr_bit to cfun_set_fpr_save
22821 and cfun_fpr_bit_p to cfun_fpr_save_p.
22822 (s390_frame_area, s390_register_info, s390_frame_info)
22823 (s390_emit_prologue, s390_emit_epilogue)
22824 (s390_conditional_register_usage): Use the *_REGNUM macros for FPR
22826 * config/s390/s390.h: Define *_REGNUM macros for floating point
22829 2013-07-08 Eric Botcazou <ebotcazou@adacore.com>
22831 * Makefile.in (tree-ssa-reassoc.o): Add dependency on $(PARAMS_H).
22833 2013-07-08 Po-Chun Chang <pchang9@cs.wisc.edu>
22835 PR rtl-optimization/57786
22836 * combine.c (distribute_notes) <case REG_DEAD>: Change all_used to bool
22837 and break out of the loop when it is set to false.
22839 2013-07-08 Jakub Jelinek <jakub@redhat.com>
22842 * simplify-rtx.c (simplify_unary_operation_1) <case ZERO_EXTEND>:
22843 Simplify (zero_extend:SI (subreg:QI (and:SI (reg:SI)
22844 (const_int 63)) 0)).
22845 * combine.c (make_extraction): Create ZERO_EXTEND or SIGN_EXTEND
22846 using simplify_gen_unary instead of gen_rtx_*_EXTEND.
22847 * config/i386/i386.md (*jcc_bt<mode>_1): New define_insn_and_split.
22849 PR rtl-optimization/57829
22850 * simplify-rtx.c (simplify_binary_operation_1) <case IOR>: Ensure that
22851 mask bits outside of mode are just sign-extension from mode to HWI.
22853 2013-07-08 Michael Zolotukhin <michael.v.zolotukhin@gmail.com>
22855 * config/i386/i386-opts.h (enum stringop_alg): Add vector_loop.
22856 * config/i386/i386.c (expand_set_or_movmem_via_loop): Use
22857 adjust_address instead of change_address to keep info about alignment.
22858 (emit_strmov): Remove.
22859 (emit_memmov): New function.
22860 (expand_movmem_epilogue): Refactor to properly handle bigger sizes.
22861 (expand_movmem_epilogue): Likewise and return updated rtx for
22863 (expand_constant_movmem_prologue): Likewise and return updated rtx for
22864 destination and source.
22865 (decide_alignment): Refactor, handle vector_loop.
22866 (ix86_expand_movmem): Likewise.
22867 (ix86_expand_setmem): Likewise.
22868 * config/i386/i386.opt (Enum): Add vector_loop to option stringop_alg.
22870 2013-07-07 Uros Bizjak <ubizjak@gmail.com>
22872 * config/i386/driver-i386.c (host_detect_local_cpu): Do not check
22873 signature_TM2_ebx, it interferes with signature_INTEL_ebx.
22875 2013-07-06 Uros Bizjak <ubizjak@gmail.com>
22877 * config/i386/sse.md (sse_movlhps): Change alternative 3
22878 of operand 2 to "m".
22880 2013-07-06 Uros Bizjak <ubizjak@gmail.com>
22883 * config/i386/sse.md (iptr): New mode attribute.
22884 (sse2_movq128): Add pointer size overrides for Intel asm dialect.
22885 (<sse>_vm<plusminus_insn><mode>3): Ditto.
22886 (<sse>_vmmul<mode>3): Ditto.
22887 (<sse>_vmdiv<mode>3): Ditto.
22888 (sse_vmrcpv4sf2): Ditto.
22889 (<sse>_vmsqrt<mode>2): Ditto.
22890 (sse_vmrsqrtv4sf2): Ditto.
22891 (<sse>_vm<code><mode>3): Ditto.
22892 (avx_vmcmp<mode>3): Ditto.
22893 (<sse>_vmmaskcmp<mode>3): Ditto.
22894 (<sse>_comi): Ditto.
22895 (<sse>_ucomi): Ditto.
22896 (*xop_vmfrcz_<mode>): Ditto.
22897 (*fmai_fmadd_<mode>): Ditto.
22898 (*fmai_fmsub_<mode>): Ditto.
22899 (*fmai_fnmadd_<mode>): Ditto.
22900 (*fmai_fnmsub_<mode>): Ditto.
22901 (*fma4i_vmfmadd_<mode>): Ditto.
22902 (*fma4i_vmfmsub_<mode>): Ditto.
22903 (*fma4i_vmfnmadd_<mode>): Ditto.
22904 (*fma4i_vmfnmsub_<mode>): Ditto.
22905 (*xop_vmfrcz_<mode>): Ditto.
22906 (sse_cvtps2pi): Ditto.
22907 (sse_cvttps2pi): Ditto.
22908 (sse_cvtss2si): Ditto.
22909 (sse_cvtss2si_2): Ditto.
22910 (sse_cvtss2siq_2): Ditto.
22911 (sse_cvttss2si): Ditto.
22912 (sse_cvttss2siq): Ditto.
22913 (sse_cvtsd2si): Ditto.
22914 (sse_cvtsd2si_2): Ditto.
22915 (sse_cvtsd2siq_2): Ditto.
22916 (sse_cvttsd2si): Ditto.
22917 (sse_cvttsd2siq): Ditto.
22918 (sse_cvtsd2ss): Ditto.
22919 (sse_cvtss2sd): Ditto.
22920 (avx2_pbroadcast<mode>): Ditto.
22921 (avx2_pbroadcast<mode>_1): Ditto.
22922 (*avx_vperm_broadcast_v4sf): Ditto.
22924 (sse_movhlps): Ditto for movlp[sd]/movhp[sd] alternatives.
22925 (sse_movlhps): Ditto.
22926 (sse_storehps): Ditto.
22927 (sse_loadhps): Ditto.
22928 (sse_storelps): Ditto.
22929 (sse_loadlps): Ditto.
22930 (*vec_concatv4sf): Ditto.
22931 (*vec_interleave_highv2df): Ditto.
22932 (*vec_interleave_lowv2df): Ditto.
22933 (*vec_extractv2df_1_sse): Ditto.
22934 (*vec_extractv2df_0_sse): Ditto.
22935 (sse2_storelpd): Ditto.
22936 (sse2_loadlpd): Ditto.
22937 (sse2_movsd): Ditto.
22938 (*vec_concatv4si): Ditto.
22939 (vec_concatv2di): Ditto.
22941 * config/i386/mmx.md (mmx_punpcklbw): Add pointer size overrides
22942 for Intel asm dialect.
22943 (mmx_punpcklwd): Ditto.
22944 (mmx_punpckldq): Ditto.
22946 * config/i386/i386.c (ix86_print_operand) ['H']: Output 'qword ptr'
22947 for intel assembler dialect.
22949 2013-07-06 Jakub Jelinek <jakub@redhat.com>
22952 * fold-const.c (tree_call_nonnegative_warnv_p): Return true
22953 for BUILT_IN_C{LZ,LRSB}*.
22954 * tree.h (CASE_INT_FN): Add FN##IMAX case.
22955 * tree-vrp.c (extract_range_basic): Handle
22956 BUILT_IN_{FFS,PARITY,POPCOUNT,C{LZ,TZ,LRSB}}*. For
22957 BUILT_IN_CONSTANT_P if argument isn't (D) of PARM_DECL,
22958 fall thru to code calling set_value*.
22959 * builtins.c (expand_builtin): Remove *IMAX cases.
22960 (fold_builtin_bitop): For BUILT_IN_CLRSB* return NULL_TREE
22961 if width is bigger than 2*HWI.
22963 2013-07-05 Vladimir Makarov <vmakarov@redhat.com>
22965 PR rtl-optimization/55342
22966 * lra-int.h (lra_subreg_reload_pseudos): New.
22967 * lra.c: Add undoing optional reloads to the block diagram.
22968 (lra_subreg_reload_pseudos): New.
22969 (lra_optional_reload_pseudos): Change comments.
22970 (lra): Init and clear lra_subreg_reload_pseudos. Clear
22971 lra_optional_reload_pseudos after undo transformations.
22972 * lra-assigns.c (pseudo_prefix_title): New.
22973 (lra_setup_reg_renumber): Use it.
22974 (spill_for): Ditto. Check subreg reload pseudos too.
22975 (assign_by_spills): Consider subreg reload pseudos too.
22976 * lra-constraints.c (simplify_operand_subreg): Use
22977 lra_subreg_reload_pseudos instead of lra_optional_reload_pseudos.
22978 (curr_insn_transform): Recognize and do optional reloads.
22979 (undo_optional_reloads): New.
22980 (lra_undo_inheritance): Call undo_optional_reloads.
22982 2013-07-05 Thomas Quinot <quinot@adacore.com>
22984 * tree-complex.c (expand_complex_operations_1): Fix typo.
22986 2013-07-04 Tejas Belagod <tejas.belagod@arm.com>
22988 * config/aarch64/aarch64-protos.h (cpu_vector_cost): New.
22989 (tune_params): New member 'const vec_costs'.
22990 * config/aarch64/aarch64.c (generic_vector_cost): New.
22991 (generic_tunings): New member 'generic_vector_cost'.
22992 (aarch64_builtin_vectorization_cost): New.
22993 (aarch64_add_stmt_cost): New.
22994 (TARGET_VECTORIZE_ADD_STMT_COST): New.
22995 (TARGET_VECTORIZE_BUILTIN_VECTORIZATION_COST): New.
22997 2013-07-03 Jakub Jelinek <jakub@redhat.com>
23000 * config/i386/predicates.md (vsib_address_operand): Disallow
23001 SYMBOL_REF or LABEL_REF in parts.disp if TARGET_64BIT && flag_pic.
23003 2013-07-03 Hans-Peter Nilsson <hp@bitrange.com>
23005 PR middle-end/55030
23006 * stmt.c (expand_nl_goto_receiver): Remove almost-copy of
23007 expand_builtin_setjmp_receiver.
23008 (expand_label): Adjust, call expand_builtin_setjmp_receiver
23009 with NULL for the label parameter.
23010 * builtins.c (expand_builtin_setjmp_receiver): Don't clobber
23011 the frame-pointer. Adjust comments.
23012 [HAVE_builtin_setjmp_receiver]: Emit builtin_setjmp_receiver
23013 only if LABEL is non-NULL.
23015 2013-07-03 Yufeng Zhang <yufeng.zhang@arm.com>
23017 * config/aarch64/aarch64.h (enum arm_abi_type): Remove.
23018 (ARM_ABI_AAPCS64): Ditto.
23020 (ARM_DEFAULT_ABI): Ditto.
23022 2013-07-03 James Greenhalgh <james.greenhalgh@arm.com>
23024 * config/aarch64/aarch64-builtins.c
23025 (aarch64_simd_expand_builtin): Handle AARCH64_SIMD_STORE1.
23026 * config/aarch64/aarch64-simd-builtins.def (ld1): New.
23028 * config/aarch64/aarch64-simd.md
23029 (aarch64_ld1<VALL:mode>): New.
23030 (aarch64_st1<VALL:mode>): Likewise.
23031 * config/aarch64/arm_neon.h
23032 (vld1<q>_<fpsu><8, 16, 32, 64>): Convert to RTL builtins.
23034 2013-07-02 Sriraman Tallam <tmsriram@google.com>
23036 * config/i386/i386.c (gate_insert_vzeroupper): Check if
23038 (ix86_option_override_internal):Turn on all -mavx target flags by
23039 default as they are dependent on AVX anyway.
23041 2013-07-02 Cary Coutant <ccoutant@google.com>
23043 * dwarf2out.c (loc_checksum): Call hash_loc_operands for a
23044 deterministic hash.
23045 (loc_checksum_ordered): Likewise.
23046 (hash_loc_operands): Remove inline keyword.
23048 2013-07-02 Jakub Jelinek <jakub@redhat.com>
23050 PR tree-optimization/57741
23051 * tree-vect-loop.c (vect_is_simple_iv_evolution): Disallow
23052 non-INTEGRAL_TYPE_P non-SCALAR_FLOAT_TYPE_P SSA_NAME step_exprs,
23053 or SCALAR_FLOAT_TYPE_P SSA_NAMEs if !flag_associative_math.
23054 Allow REAL_CST step_exprs if flag_associative_math.
23055 (get_initial_def_for_induction): Handle SCALAR_FLOAT_TYPE_P step_expr.
23057 2013-07-02 Ian Bolton <ian.bolton@arm.com>
23059 * config/aarch64/aarch64-simd.md (absdi2): Support abs for DI mode.
23061 2013-07-02 Ian Bolton <ian.bolton@arm.com>
23063 * config/aarch64/aarch64.md (*extr_insv_reg<mode>): New pattern.
23065 2013-07-02 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
23067 * config/arm/arm.md (arm_andsi3_insn): Add alternatives for 16-bit
23069 (iorsi3_insn): Likewise.
23070 (arm_xorsi3): Likewise.
23072 2013-07-01 Sofiane Naci <sofiane.naci@arm.com>
23074 * arm.md (attribute "wtype"): Delete. Move attribute values from here
23076 (attribute "type"): ... here, and prefix with "wmmx_".
23077 (attribute "core_cycles"): Update for attribute changes.
23078 * iwmmxt.md (tbcstv8qi): Update for attribute changes.
23079 (tbcstv4hi): Likewise.
23080 (tbcstv2si): Likewise.
23081 (iwmmxt_iordi3): Likewise.
23082 (iwmmxt_xordi3): Likewise.
23083 (iwmmxt_anddi3): Likewise.
23084 (iwmmxt_nanddi3): Likewise.
23085 (iwmmxt_arm_movdi): Likewise.
23086 (iwmmxt_movsi_insn): Likewise.
23087 (mov<mode>_internal): Likewise.
23088 (and<mode>3_iwmmxt): Likewise.
23089 (ior<mode>3_iwmmxt): Likewise.
23090 (xor<mode>3_iwmmxt): Likewise.
23091 (add<mode>3_iwmmxt): Likewise.
23092 (ssaddv8qi3): Likewise.
23093 (ssaddv4hi3): Likewise.
23094 (ssaddv2si3): Likewise.
23095 (usaddv8qi3): Likewise.
23096 (usaddv4hi3): Likewise.
23097 (usaddv2si3): Likewise.
23098 (sub<mode>3_iwmmxt): Likewise.
23099 (sssubv8qi3): Likewise.
23100 (sssubv4hi3): Likewise.
23101 (sssubv2si3): Likewise.
23102 (ussubv8qi3): Likewise.
23103 (ussubv4hi3): Likewise.
23104 (ussubv2si3): Likewise.
23105 (mulv4hi3_iwmmxt): Likewise.
23106 (smulv4hi3_highpart): Likewise.
23107 (umulv4hi3_highpart): Likewise.
23108 (iwmmxt_wmacs): Likewise.
23109 (iwmmxt_wmacsz): Likewise.
23110 (iwmmxt_wmacu): Likewise.
23111 (iwmmxt_wmacuz): Likewise.
23112 (iwmmxt_clrdi): Likewise.
23113 (iwmmxt_clrv8qi): Likewise.
23114 (iwmmxt_clr4hi): Likewise.
23115 (iwmmxt_clr2si): Likewise.
23116 (iwmmxt_uavgrndv8qi3): Likewise.
23117 (iwmmxt_uavgrndv4hi3): Likewise.
23118 (iwmmxt_uavgv8qi3): Likewise.
23119 (iwmmxt_uavgv4hi3): Likewise.
23120 (iwmmxt_tinsrb): Likewise.
23121 (iwmmxt_tinsrh): Likewise.
23122 (iwmmxt_tinsrw): Likewise.
23123 (iwmmxt_textrmub): Likewise.
23124 (iwmmxt_textrmsb): Likewise.
23125 (iwmmxt_textrmuh): Likewise.
23126 (iwmmxt_textrmsh): Likewise.
23127 (iwmmxt_textrmw): Likewise.
23128 (iwmxxt_wshufh): Likewise.
23129 (eqv8qi3): Likewise.
23130 (eqv4hi3): Likewise.
23131 (eqv2si3): Likewise.
23132 (gtuv8qi3): Likewise.
23133 (gtuv4hi3): Likewise.
23134 (gtuv2si3): Likewise.
23135 (gtv8qi3): Likewise.
23136 (gtv4hi3): Likewise.
23137 (gtv2si3): Likewise.
23138 (smax<mode>3_iwmmxt): Likewise.
23139 (umax<mode>3_iwmmxt): Likewise.
23140 (smin<mode>3_iwmmxt): Likewise.
23141 (umin<mode>3_iwmmxt): Likewise.
23142 (iwmmxt_wpackhss): Likewise.
23143 (iwmmxt_wpackwss): Likewise.
23144 (iwmmxt_wpackdss): Likewise.
23145 (iwmmxt_wpackhus): Likewise.
23146 (iwmmxt_wpackwus): Likewise.
23147 (iwmmxt_wpackdus): Likewise.
23148 (iwmmxt_wunpckihb): Likewise.
23149 (iwmmxt_wunpckihh): Likewise.
23150 (iwmmxt_wunpckihw): Likewise.
23151 (iwmmxt_wunpckilb): Likewise.
23152 (iwmmxt_wunpckilh): Likewise.
23153 (iwmmxt_wunpckilw): Likewise.
23154 (iwmmxt_wunpckehub): Likewise.
23155 (iwmmxt_wunpckehuh): Likewise.
23156 (iwmmxt_wunpckehuw): Likewise.
23157 (iwmmxt_wunpckehsb): Likewise.
23158 (iwmmxt_wunpckehsh): Likewise.
23159 (iwmmxt_wunpckehsw): Likewise.
23160 (iwmmxt_wunpckelub): Likewise.
23161 (iwmmxt_wunpckeluh): Likewise.
23162 (iwmmxt_wunpckeluw): Likewise.
23163 (iwmmxt_wunpckelsb): Likewise.
23164 (iwmmxt_wunpckelsh): Likewise.
23165 (iwmmxt_wunpckelsw): Likewise.
23166 (ror<mode>3): Likewise.
23167 (ashr<mode>3_iwmmxt): Likewise.
23168 (lshr<mode>3_iwmmxt): Likewise.
23169 (ashl<mode>3_iwmmxt): Likewise.
23170 (ror<mode>3_di): Likewise.
23171 (ashr<mode>3_di): Likewise.
23172 (lshr<mode>3_di): Likewise.
23173 (ashl<mode>3_di): Likewise.
23174 (iwmmxt_wmadds): Likewise.
23175 (iwmmxt_wmaddu): Likewise.
23176 (iwmmxt_tmia): Likewise.
23177 (iwmmxt_tmiaph): Likewise.
23178 (iwmmxt_tmiabb): Likewise.
23179 (iwmmxt_tmiatb): Likewise.
23180 (iwmmxt_tmiabt): Likewise.
23181 (iwmmxt_tmiatt): Likewise.
23182 (iwmmxt_tmovmskb): Likewise.
23183 (iwmmxt_tmovmskh): Likewise.
23184 (iwmmxt_tmovmskw): Likewise.
23185 (iwmmxt_waccb): Likewise.
23186 (iwmmxt_wacch): Likewise.
23187 (iwmmxt_waccw): Likewise.
23188 (iwmmxt_waligni): Likewise.
23189 (iwmmxt_walignr): Likewise.
23190 (iwmmxt_walignr0): Likewise.
23191 (iwmmxt_walignr1): Likewise.
23192 (iwmmxt_walignr2): Likewise.
23193 (iwmmxt_walignr3): Likewise.
23194 (iwmmxt_wsadb): Likewise.
23195 (iwmmxt_wsadh): Likewise.
23196 (iwmmxt_wsadbz): Likewise.
23197 (iwmmxt_wsadhz): Likewise.
23198 * iwmmxt2.md (iwmmxt_wabs<mode>3): Update for attribute changes.
23199 (iwmmxt_wabsdiffb): Likewise.
23200 (iwmmxt_wabsdiffh): Likewise.
23201 (iwmmxt_wabsdiffw): Likewise.
23202 (iwmmxt_waddsubhx): Likewise
23203 (iwmmxt_wsubaddhx): Likewise.
23204 (addc<mode>3): Likewise.
23205 (iwmmxt_avg4): Likewise.
23206 (iwmmxt_avg4r): Likewise.
23207 (iwmmxt_wmaddsx): Likewise.
23208 (iwmmxt_wmaddux): Likewise.
23209 (iwmmxt_wmaddsn): Likewise.
23210 (iwmmxt_wmaddun): Likewise.
23211 (iwmmxt_wmulwsm): Likewise.
23212 (iwmmxt_wmulwum): Likewise.
23213 (iwmmxt_wmulsmr): Likewise.
23214 (iwmmxt_wmulumr): Likewise.
23215 (iwmmxt_wmulwsmr): Likewise.
23216 (iwmmxt_wmulwumr): Likewise.
23217 (iwmmxt_wmulwl): Likewise.
23218 (iwmmxt_wqmulm): Likewise.
23219 (iwmmxt_wqmulwm): Likewise.
23220 (iwmmxt_wqmulmr): Likewise.
23221 (iwmmxt_wqmulwmr): Likewise.
23222 (iwmmxt_waddbhusm): Likewise.
23223 (iwmmxt_waddbhusl): Likewise.
23224 (iwmmxt_wqmiabb): Likewise.
23225 (iwmmxt_wqmiabt): Likewise.
23226 (iwmmxt_wqmiatb): Likewise.
23227 (iwmmxt_wqmiatt): Likewise.
23228 (iwmmxt_wqmiabbn): Likewise.
23229 (iwmmxt_wqmiabtn): Likewise.
23230 (iwmmxt_wqmiatbn): Likewise.
23231 (iwmmxt_wqmiattn): Likewise.
23232 (iwmmxt_wmiabb): Likewise.
23233 (iwmmxt_wmiabt): Likewise.
23234 (iwmmxt_wmiatb): Likewise.
23235 (iwmmxt_wmiatt): Likewise.
23236 (iwmmxt_wmiabbn): Likewise.
23237 (iwmmxt_wmiabtn): Likewise.
23238 (iwmmxt_wmiatbn): Likewise.
23239 (iwmmxt_wmiattn): Likewise.
23240 (iwmmxt_wmiawbb): Likewise.
23241 (iwmmxt_wmiawbt): Likewise.
23242 (iwmmxt_wmiawtb): Likewise.
23243 (iwmmxt_wmiawtt): Likewise.
23244 (iwmmxt_wmiawbbn): Likewise.
23245 (iwmmxt_wmiawbtn): Likewise.
23246 (iwmmxt_wmiawtbn): Likewise.
23247 (iwmmxt_wmiawttn): Likewise.
23248 (iwmmxt_wmerge): Likewise.
23249 (iwmmxt_tandc<mode>3): Likewise.
23250 (iwmmxt_torc<mode>3): Likewise.
23251 (iwmmxt_torvsc<mode>3): Likewise.
23252 (iwmmxt_textrc<mode>3): Likewise.
23253 * marvell-f-iwmmxt.md (wmmxt_shift): Update for attribute changes.
23254 (wmmxt_pack): Likewise.
23255 (wmmxt_mult_c1): Likewise.
23256 (wmmxt_mult_c2): Likewise.
23257 (wmmxt_alu_c1): Likewise.
23258 (wmmxt_alu_c2): Likewise.
23259 (wmmxt_alu_c3): Likewise.
23260 (wmmxt_transfer_c1): Likewise.
23261 (wmmxt_transfer_c2): Likewise.
23262 (wmmxt_transfer_c3): Likewise.
23263 (marvell_f_iwmmxt_wstr): Likewise.
23264 (marvell_f_iwmmxt_wldr): Likewise.
23266 2013-06-29 Yufeng Zhang <yufeng.zhang@arm.com>
23268 * config/aarch64/aarch64.c: Remove junk from the beginning of the file.
23270 2013-06-28 Vladimir Makarov <vmakarov@redhat.com>
23273 2013-06-28 Vladimir Makarov <vmakarov@redhat.com>
23274 * lra-constraints.c (need_for_split_p): Check call used hard regs
23275 living through calls.
23277 * lra-constraints.c (inherit_in_ebb): Reset live_hard_regs for
23278 call used regs for call insn.
23280 2013-06-28 Jakub Jelinek <jakub@redhat.com>
23283 * config/i386/i386.c (ix86_expand_builtin): If target == NULL and
23284 mode is VOIDmode, don't create a VOIDmode pseudo to copy result into.
23286 2013-06-28 Balaji V. Iyer <balaji.v.iyer@intel.com>
23288 * builtins.def: Fixed the function type of CILKPLUS_BUILTIN.
23290 2013-06-28 Vladimir Makarov <vmakarov@redhat.com>
23292 * lra-constraints.c (need_for_split_p): Check call used hard regs
23293 living through calls.
23295 2013-06-28 Michael Meissner <meissner@linux.vnet.ibm.com>
23298 * config/rs6000/rs6000.h (MODES_TIEABLE_P): Do not allow PTImode
23299 to tie with any other modes. Eliminate Altivec vector mode tests,
23300 since these are a subset of ALTIVEC or VSX vector modes. Simplify
23301 code, to return 0 if testing MODE2 for a condition, if we've
23302 already tested MODE1 for the same condition.
23304 2013-06-28 Marcus Shawcroft <marcus.shawcroft@arm.com>
23306 * config/aarch64/aarch64.c (aarch64_cannot_force_const_mem): Adjust
23309 2013-06-28 Marcus Shawcroft <marcus.shawcroft@arm.com>
23311 * config/aarch64/aarch64-protos.h (aarch64_symbol_type):
23312 Update comment w.r.t SYMBOL_TINY_ABSOLUTE.
23314 2013-06-28 Marcus Shawcroft <marcus.shawcroft@arm.com>
23316 * config/aarch64/aarch64-protos.h (aarch64_classify_symbol_expression):
23318 (aarch64_symbolic_constant_p): Remove.
23319 * config/aarch64/aarch64.c (aarch64_classify_symbol_expression): Remove
23320 static. Fix line length and white space.
23321 (aarch64_symbolic_constant_p): Remove.
23322 * config/aarch64/predicates.md (aarch64_valid_symref):
23323 Use aarch64_classify_symbol_expression.
23325 2013-06-28 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
23327 * config/arm/constraints.md (Ts): New constraint.
23328 * config/arm/arm.md (arm_movqi_insn): Add alternatives for
23330 (compare_scc): Use "Ts" constraint for operand 0.
23331 (ior_scc_scc): Likewise.
23332 (and_scc_scc): Likewise.
23333 (and_scc_scc_nodom): Likewise.
23334 (ior_scc_scc_cmp): Likewise for operand 7.
23335 (and_scc_scc_cmp): Likewise.
23336 * config/arm/thumb2.md (thumb2_movsi_insn):
23337 Add alternatives for 16-bit encodings.
23338 (thumb2_movhi_insn): Likewise.
23339 (thumb2_movsicc_insn): Likewise.
23340 (thumb2_and_scc): Take 'and' outside cond_exec. Use "Ts" constraint.
23341 (thumb2_negscc): Use "Ts" constraint.
23342 Move mvn instruction outside cond_exec block.
23343 * config/arm/vfp.md (thumb2_movsi_vfp): Add alternatives
23344 for 16-bit encodings.
23346 2013-06-28 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
23348 * config/arm/arm.md (arm_mulsi3_v6): Add alternative for 16-bit
23350 (mulsi3addsi_v6): Disable predicable variant for arm_restrict_it.
23351 (mulsi3subsi): Likewise.
23352 (mulsidi3adddi): Likewise.
23353 (mulsidi3_v6): Likewise.
23354 (umulsidi3_v6): Likewise.
23355 (umulsidi3adddi_v6): Likewise.
23356 (smulsi3_highpart_v6): Likewise.
23357 (umulsi3_highpart_v6): Likewise.
23358 (mulhisi3tb): Likewise.
23359 (mulhisi3bt): Likewise.
23360 (mulhisi3tt): Likewise.
23361 (maddhisi4): Likewise.
23362 (maddhisi4tb): Likewise.
23363 (maddhisi4tt): Likewise.
23364 (maddhidi4): Likewise.
23365 (maddhidi4tb): Likewise.
23366 (maddhidi4tt): Likewise.
23367 (zeroextractsi_compare0_scratch): Likewise.
23368 (insv_zero): Likewise.
23369 (insv_t2): Likewise.
23370 (anddi_notzesidi_di): Likewise.
23371 (anddi_notsesidi_di): Likewise.
23372 (andsi_notsi_si): Likewise.
23373 (iordi_zesidi_di): Likewise.
23374 (xordi_zesidi_di): Likewise.
23375 (andsi_iorsi3_notsi): Likewise.
23376 (smax_0): Likewise.
23377 (smax_m1): Likewise.
23378 (smin_0): Likewise.
23379 (not_shiftsi): Likewise.
23380 (unaligned_loadsi): Likewise.
23381 (unaligned_loadhis): Likewise.
23382 (unaligned_loadhiu): Likewise.
23383 (unaligned_storesi): Likewise.
23384 (unaligned_storehi): Likewise.
23385 (extv_reg): Likewise.
23386 (extzv_t2): Likewise.
23387 (divsi3): Likewise.
23388 (udivsi3): Likewise.
23389 (arm_zero_extendhisi2addsi): Likewise.
23390 (arm_zero_extendqisi2addsi): Likewise.
23391 (compareqi_eq0): Likewise.
23392 (arm_extendhisi2_v6): Likewise.
23393 (arm_extendqisi2addsi): Likewise.
23394 (arm_movt): Likewise.
23395 (thumb2_ldrd): Likewise.
23396 (thumb2_ldrd_base): Likewise.
23397 (thumb2_ldrd_base_neg): Likewise.
23398 (thumb2_strd): Likewise.
23399 (thumb2_strd_base): Likewise.
23400 (thumb2_strd_base_neg): Likewise.
23401 (arm_negsi2): Add alternative for 16-bit encoding.
23402 (arm_one_cmplsi2): Likewise.
23404 2013-06-28 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
23406 * config/arm/predicates.md (arm_cond_move_operator): New predicate.
23407 * config/arm/arm.md (movsfcc): Use arm_cond_move_operator predicate.
23408 (movdfcc): Likewise.
23409 * config/arm/vfp.md (*thumb2_movsf_vfp):
23410 Disable predication for arm_restrict_it.
23411 (*thumb2_movsfcc_vfp): Disable for arm_restrict_it.
23412 (*thumb2_movdfcc_vfp): Likewise.
23413 (*abssf2_vfp, *absdf2_vfp, *negsf2_vfp, *negdf2_vfp,*addsf3_vfp,
23414 *adddf3_vfp, *subsf3_vfp, *subdf3_vfpc, *divsf3_vfp,*divdf3_vfp,
23415 *mulsf3_vfp, *muldf3_vfp, *mulsf3negsf_vfp, *muldf3negdf_vfp,
23416 *mulsf3addsf_vfp, *muldf3adddf_vfp, *mulsf3subsf_vfp,
23417 *muldf3subdf_vfp, *mulsf3negsfaddsf_vfp, *fmuldf3negdfadddf_vfp,
23418 *mulsf3negsfsubsf_vfp, *muldf3negdfsubdf_vfp, *fma<SDF:mode>4,
23419 *fmsub<SDF:mode>4, *fnmsub<SDF:mode>4, *fnmadd<SDF:mode>4,
23420 *extendsfdf2_vfp, *truncdfsf2_vfp, *extendhfsf2, *truncsfhf2,
23421 *truncsisf2_vfp, *truncsidf2_vfp, fixuns_truncsfsi2, fixuns_truncdfsi2,
23422 *floatsisf2_vfp, *floatsidf2_vfp, floatunssisf2, floatunssidf2,
23423 *sqrtsf2_vfp, *sqrtdf2_vfp, *cmpsf_vfp, *cmpsf_trap_vfp, *cmpdf_vfp,
23424 *cmpdf_trap_vfp, <vrint_pattern><SDF:mode>2):
23425 Disable predication for arm_restrict_it.
23427 2013-06-28 Kirill Yukhin <kirill.yukhin@intel.com>
23429 * config/i386/bmiintrin.h (_bextr_u32): New.
23430 (_bextr_u64): Ditto.
23432 2013-06-27 Richard Sandiford <rdsandiford@googlemail.com>
23434 * config.gcc (mips*-mti-elf*, mips*-sde-elf*, mips64r5900-*-elf*)
23435 (mips64r5900el-*-elf*): Include mips/n32-elf.h.
23436 * config/mips/sde.h (LOCAL_LABEL_PREFIX, NO_DOLLAR_IN_LABEL)
23437 (LONG_DOUBLE_TYPE_SIZE, LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Move to...
23438 * config/mips/n32-elf.h: ...this new file.
23440 2013-06-27 Marc Glisse <marc.glisse@inria.fr>
23443 * config/i386/i386.c (enum ix86_builtins, bdesc_args): Remove
23444 IX86_BUILTIN_CMPNGTSS and IX86_BUILTIN_CMPNGESS.
23446 2013-06-27 Catherine Moore <clm@codesourcery.com>
23448 * config/mips/mips-tables.opt: Regenerate.
23449 * config/mips/mips-cpus.def: Add m14ke and m14kec.
23450 * config/mips/mips.h (BASE_DRIVER_SELF_SPECS): m14ke* implies -mdspr2.
23451 * doc/invoke.texi: Add -m14kc.
23453 2013-06-27 Jakub Jelinek <jakub@redhat.com>
23456 * config/i386/i386.md (bmi_bextr_<mode>): Swap predicates and
23457 constraints of operand 1 and 2.
23460 * config/i386/i386.md (bmi2_bzhi_<mode>3): Swap AND arguments
23461 to match RTL canonicalization. Swap predicates and
23462 constraints of operand 1 and 2.
23464 2013-06-27 Vladimir Makarov <vmakarov@redhat.com>
23466 * lra-constraints.c (inherit_in_ebb): Process static hard regs too.
23467 Process OP_INOUT regs for splitting too.
23469 2013-06-27 Jakub Jelinek <jakub@redhat.com>
23471 * tree-vect-stmts.c (vectorizable_store): Move ptr_incr var
23472 decl before the loop, initialize to NULL.
23473 (vectorizable_load): Initialize ptr_incr to NULL.
23475 2013-06-27 Martin Jambor <mjambor@suse.cz>
23478 * ipa-ref.h (ipa_maybe_record_reference): Declare.
23479 * ipa-ref.c (ipa_maybe_record_reference): New function.
23480 * cgraphclones.c (cgraph_create_virtual_clone): Use it.
23481 * ipa-cp.c (create_specialized_node): Record potential references from
23483 * Makefile.in (ipa-ref.o): Add IPA_REF_H to dependencies.
23485 2013-06-27 Yufeng Zhang <yufeng.zhang@arm.com>
23487 * config/aarch64/aarch64.c (aarch64_force_temporary): Add an extra
23488 parameter 'mode' of type 'enum machine_mode mode'; change to pass
23489 'mode' to force_reg.
23490 (aarch64_add_offset): Update calls to aarch64_force_temporary.
23491 (aarch64_expand_mov_immediate): Likewise.
23493 2013-06-27 Yufeng Zhang <yufeng.zhang@arm.com>
23495 * config/aarch64/aarch64.c (aarch64_add_offset): Change to pass
23496 'mode' to aarch64_plus_immediate and gen_rtx_PLUS.
23498 2013-06-27 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
23500 * config/s390/s390.c: Rename UNSPEC_CCU_TO_INT to
23501 UNSPEC_STRCMPCC_TO_INT and UNSPEC_CCZ_TO_INT to UNSPEC_CC_TO_INT.
23502 (struct machine_function): Add tbegin_p.
23503 (s390_canonicalize_comparison): Fold CC mode compares to
23504 conditional jump if possible.
23505 (s390_emit_jump): Return the emitted jump.
23506 (s390_branch_condition_mask, s390_branch_condition_mnemonic):
23507 Handle CCRAWmode compares.
23508 (s390_option_override): Default to -mhtm if available.
23509 (s390_reg_clobbered_rtx): Handle floating point regs as well.
23510 (s390_regs_ever_clobbered): Use s390_regs_ever_clobbered also for
23511 FPRs instead of df_regs_ever_live_p.
23512 (s390_optimize_nonescaping_tx): New function.
23513 (s390_init_frame_layout): Extend clobbered_regs array to cover
23515 (s390_emit_prologue): Call s390_optimize_nonescaping_tx.
23516 (s390_expand_tbegin): New function.
23517 (enum s390_builtin): New enum definition.
23518 (code_for_builtin): New array definition.
23519 (s390_init_builtins): New function.
23520 (s390_expand_builtin): New function.
23521 (TARGET_INIT_BUILTINS): Define.
23522 (TARGET_EXPAND_BUILTIN): Define.
23523 * common/config/s390/s390-common.c (processor_flags_table): Add PF_TX.
23524 * config/s390/predicates.md (s390_comparison): Handle CCRAWmode.
23525 (s390_alc_comparison): Likewise.
23526 * config/s390/s390-modes.def: Add CCRAWmode.
23527 * config/s390/s390.h (processor_flags): Add PF_TX.
23528 (TARGET_CPU_HTM): Define macro.
23529 (TARGET_HTM): Define macro.
23530 (TARGET_CPU_CPP_BUILTINS): Define __HTM__ for htm.
23531 * config/s390/s390.md: Rename UNSPEC_CCU_TO_INT to
23532 UNSPEC_STRCMPCC_TO_INT and UNSPEC_CCZ_TO_INT to UNSPEC_CC_TO_INT.
23533 (UNSPECV_TBEGIN, UNSPECV_TBEGINC, UNSPECV_TEND, UNSPECV_TABORT)
23534 (UNSPECV_ETND, UNSPECV_NTSTG, UNSPECV_PPA): New unspecv enum values.
23535 (TBEGIN_MASK, TBEGINC_MASK): New constants.
23536 ("*cc_to_int"): Move up.
23537 ("*mov<mode>cc", "*cjump_64", "*cjump_31"): Accept integer
23538 constants other than 0.
23539 ("*ccraw_to_int"): New insn and splitter definition.
23540 ("tbegin", "tbegin_nofloat", "tbegin_retry")
23541 ("tbegin_retry_nofloat", "tbeginc", "tend", "tabort")
23542 ("tx_assist"): New expander.
23543 ("tbegin_1", "tbegin_nofloat_1", "*tbeginc_1", "*tend_1")
23544 ("*tabort_1", "etnd", "ntstg", "*ppa"): New insn definition.
23545 * config/s390/s390.opt: Add -mhtm option.
23546 * config/s390/s390-protos.h (s390_emit_jump): Add return type.
23547 * config/s390/htmxlintrin.h: New file.
23548 * config/s390/htmintrin.h: New file.
23549 * config/s390/s390intrin.h: New file.
23550 * doc/extend.texi: Document htm builtins.
23551 * config.gcc: Add the new header files to extra_headers.
23553 2013-06-26 Thomas Schwinge <thomas@codesourcery.com>
23555 * config/i386/gnu.h [TARGET_LIBC_PROVIDES_SSP]
23556 (TARGET_CAN_SPLIT_STACK, TARGET_THREAD_SPLIT_STACK_OFFSET): Undefine.
23558 2013-06-26 Michael Meissner <meissner@linux.vnet.ibm.com>
23559 Pat Haugen <pthaugen@us.ibm.com>
23560 Peter Bergner <bergner@vnet.ibm.com>
23562 * config/rs6000/power8.md: New.
23563 * config/rs6000/rs6000-cpus.def (RS6000_CPU table): Adjust processor
23564 setting for power8 entry.
23565 * config/rs6000/t-rs6000 (MD_INCLUDES): Add power8.md.
23566 * config/rs6000/rs6000.c (is_microcoded_insn, is_cracked_insn): Adjust
23567 test for Power4/Power5 only.
23568 (insn_must_be_first_in_group, insn_must_be_last_in_group): Add Power8
23570 (force_new_group): Adjust comment.
23571 * config/rs6000/rs6000.md: Include power8.md.
23573 2013-06-26 Greta Yorsh <Greta.Yorsh@arm.com>
23575 * config/arm/arm.h (MAX_CONDITIONAL_EXECUTE): Define macro.
23576 * config/arm/arm-protos.h (arm_max_conditional_execute): New
23578 (tune_params): Update comment.
23579 * config/arm/arm.c (arm_cortex_a15_tune): Set max_cond_insns to 2.
23580 (arm_max_conditional_execute): New function.
23581 (thumb2_final_prescan_insn): Use max_insn_skipped and
23582 MAX_INSN_PER_IT_BLOCK to compute maximum instructions in a block.
23584 2013-06-25 Jakub Jelinek <jakub@redhat.com>
23586 PR tree-optimization/57705
23587 * tree-vect-loop.c (vect_is_simple_iv_evolution): Allow
23588 SSA_NAME step, provided that it is not defined inside the loop.
23589 (vect_analyze_scalar_cycles_1): Disallow SSA_NAME step in nested loop.
23590 (get_initial_def_for_induction): Handle SSA_NAME IV step.
23592 2013-06-25 Martin Jambor <mjambor@suse.cz>
23594 PR middle-end/57670
23595 * cgraph.h (cgraph_indirect_call_info): New flag member_ptr.
23596 * ipa-prop.c (ipa_print_node_jump_functions): Mark member pointer
23598 (ipa_note_param_call): Initialize member_ptr flag.
23599 (ipa_analyze_indirect_call_uses): Set member_ptr flag.
23600 (ipa_make_edge_direct_to_target): Bail out if member_ptr is set.
23601 (ipa_write_indirect_edge_info): Stream member_ptr flag.
23602 (ipa_read_indirect_edge_info): Likewise.
23604 2013-06-25 Richard Biener <rguenther@suse.de>
23606 PR middle-end/56977
23607 * passes.c (init_optimization_passes): Move pass_fold_builtins
23608 and pass_dce earlier with -Og.
23610 2013-06-25 Eric Botcazou <ebotcazou@adacore.com>
23612 * expr.c (expand_expr_real_1) <ARRAY_REF>: Fix formatting glitches.
23613 <BIT_FIELD_REF>: Remove trailing TAB.
23614 * varasm.c (output_constructor_bitfield): Fix formatting glitch and
23617 2013-06-24 Martin Jambor <mjambor@suse.cz>
23619 PR tree-optimization/57358
23620 * ipa-prop.c (ipa_func_spec_opts_forbid_analysis_p): New function.
23621 (ipa_compute_jump_functions_for_edge): Bail out if it returns true.
23622 (ipa_analyze_params_uses): Generate pessimistic info when true.
23624 2013-06-24 Martin Jambor <mjambor@suse.cz>
23626 PR tree-optimization/57539
23627 * cgraphclones.c (cgraph_clone_node): Add parameter new_inlined_to, set
23628 global.inlined_to of the new node to it. All callers changed.
23629 * ipa-inline-transform.c (clone_inlined_nodes): New variable
23630 inlining_into, pass it to cgraph_clone_node.
23631 * ipa-prop.c (ipa_propagate_indirect_call_infos): Do not call
23632 ipa_free_edge_args_substructures.
23633 (ipa_edge_duplication_hook): Only add edges from inlined nodes to
23634 rdesc linked list. Do not assert rdesc edges have inlined caller.
23635 Assert we have found an rdesc in the rdesc list.
23637 2013-06-24 Richard Biener <rguenther@suse.de>
23639 * pointer-set.h (struct pointer_set_t): Move here from pointer-set.c.
23640 (pointer_set_lookup): Declare.
23641 (class pointer_map): New template class implementing a
23642 generic pointer to T map.
23643 (pointer_map<T>::pointer_map, pointer_map<T>::~pointer_map,
23644 pointer_map<T>::contains, pointer_map<T>::insert,
23645 pointer_map<T>::traverse): New functions.
23646 * pointer-set.c (struct pointer_set_t): Moved to pointer-set.h.
23647 (pointer_set_lookup): New function.
23648 (pointer_set_contains): Use pointer_set_lookup.
23649 (pointer_set_insert): Likewise.
23650 (insert_aux): Remove.
23651 (struct pointer_map_t): Embed a pointer_set_t.
23652 (pointer_map_create): Adjust.
23653 (pointer_map_destroy): Likewise.
23654 (pointer_map_contains): Likewise.
23655 (pointer_map_insert): Likewise.
23656 (pointer_map_traverse): Likewise.
23657 * tree-streamer.h (struct streamer_tree_cache_d): Use a
23658 pointer_map<unsigned> instead of a pointer_map_t.
23659 * tree-streamer.c (streamer_tree_cache_insert_1): Adjust.
23660 (streamer_tree_cache_lookup): Likewise.
23661 (streamer_tree_cache_create): Likewise.
23662 (streamer_tree_cache_delete): Likewise.
23663 * lto-streamer.h (struct lto_tree_ref_encoder): Use a
23664 pointer_map<unsigned> instead of a pointer_map_t.
23665 (lto_init_tree_ref_encoder): Adjust.
23666 (lto_destroy_tree_ref_encoder): Likewise.
23667 * lto-section-out.c (lto_output_decl_index): Likewise.
23668 (lto_record_function_out_decl_state): Likewise.
23669 * dominance.c (iterate_fix_dominators): Use pointer_map<int>.
23671 2013-06-24 Richard Biener <rguenther@suse.de>
23673 PR tree-optimization/57488
23674 * tree-ssa-pre.c (insert): Clear NEW sets before each iteration.
23676 2013-06-24 Alan Modra <amodra@gmail.com>
23678 * config/rs6000/rs6000.c (vspltis_constant): Correct for little-endian.
23679 (gen_easy_altivec_constant): Likewise.
23680 * config/rs6000/predicates.md (easy_vector_constant_add_self,
23681 easy_vector_constant_msb): Likewise.
23683 2013-06-23 Jakub Jelinek <jakub@redhat.com>
23686 * common/config/i386/i386-common.c (ix86_handle_option): For OPT_mlzcnt
23687 add missing return true.
23689 2013-06-23 Oleg Endo <olegendo@gcc.gnu.org>
23692 * config/sh/predicates.md (general_extend_operand): Invoke
23693 general_movsrc_operand for memory operands.
23694 (general_movsrc_operand): Allow reg+reg addressing, do not use
23695 general_operand for memory operands.
23697 2013-06-23 Sriraman Tallam <tmsriram@google.com>
23699 * config/i386/i386.c (ix86_pragma_target_parse): Restore target
23700 when current target options does not apply.
23701 * config/i386/i386-protos.h (ix86_reset_previous_fndecl): New function.
23702 * config/i386/i386.c (ix86_reset_previous_fndecl): Ditto.
23703 * config/i386/bmiintrin.h: Pass appropriate target
23704 attributes to header.
23705 * config/i386/mmintrin.h: Ditto.
23706 * config/i386/nmmintrin.h: Ditto.
23707 * config/i386/avx2intrin.h: Ditto.
23708 * config/i386/fxsrintrin.h: Ditto.
23709 * config/i386/tbmintrin.h: Ditto.
23710 * config/i386/xsaveintrin.h: Ditto.
23711 * config/i386/f16cintrin.h: Ditto.
23712 * config/i386/xtestintrin.h: Ditto.
23713 * config/i386/xsaveoptintrin.h: Ditto.
23714 * config/i386/bmi2intrin.h: Ditto.
23715 * config/i386/lzcntintrin.h: Ditto.
23716 * config/i386/smmintrin.h: Ditto.
23717 * config/i386/wmmintrin.h: Ditto.
23718 * config/i386/x86intrin.h: Remove all header include guards.
23719 * config/i386/prfchwintrin.h: Ditto.
23720 * config/i386/pmmintrin.h: Ditto.
23721 * config/i386/tmmintrin.h: Ditto.
23722 * config/i386/xmmintrin.h: Ditto.
23723 * config/i386/popcntintrin.h: Ditto.
23724 * config/i386/rdseedintrin.h: Ditto.
23725 * config/i386/ammintrin.h: Ditto.
23726 * config/i386/emmintrin.h: Ditto.
23727 * config/i386/immintrin.h: Remove all header include guards.
23728 * config/i386/fma4intrin.h: Ditto.
23729 * config/i386/lwpintrin.h: Ditto.
23730 * config/i386/xopintrin.h: Ditto.
23731 * config/i386/ia32intrin.h: Ditto.
23732 * config/i386/avxintrin.h: Ditto.
23733 * config/i386/rtmintrin.h: Ditto.
23734 * config/i386/fmaintrin.h: Ditto.
23735 * config/i386/mm3dnow.h: Ditto.
23737 2013-06-22 Sriraman Tallam <tmsriram@google.com>
23739 * common/config/i386/i386-common.c: Handle LZCNT.
23741 2013-06-22 Andi Kleen <ak@linux.intel.com>
23743 * doc/extend.texi: Use __atomic_store_n instead of
23744 __atomic_store in HLE example.
23746 2013-06-22 Oleg Endo <olegendo@gcc.gnu.org>
23748 * config/sh/sh.c: Remove <cstdlib> workaround.
23750 2013-06-21 Andi Kleen <ak@linux.intel.com>
23752 * doc/extend.texi: Dont use __atomic_clear in HLE example. Fix typo.
23754 2013-06-21 Andi Kleen <ak@linux.intel.com>
23756 * doc/extend.texi: Document that __atomic_clear and
23757 __atomic_test_and_set should only be used with bool.
23759 2013-06-20 Jan Hubicka <jh@suse.cz>
23761 * gimple-fold.c (gimple_extract_devirt_binfo_from_cst): Use
23762 types_same_for_odr.
23763 * tree.c (decls_same_for_odr): New function.
23764 (same_for_edr): New function.
23765 (types_same_for_odr): New function.
23766 (get_binfo_at_offset): Use it.
23767 * tree.h (types_same_for_odr): Declare.
23769 2013-06-20 Oleg Endo <olegendo@gcc.gnu.org>
23770 Jason Merrill <jason@redhat.com>
23772 * system.h: Include <cstdlib> as well as <stdlib.h>.
23774 2013-06-20 Uros Bizjak <ubizjak@gmail.com>
23777 * config/i386/i386.c (construct_container): Report error if
23778 long double is used with disabled x87 float returns.
23780 2013-06-20 Jan Hubicka <jh@suse.cz>
23782 * lto-cgraph.c (input_symtab): Do not set cgraph state.
23784 2013-06-20 Joern Rennecke <joern.rennecke@embecosm.com>
23786 PR rtl-optimization/57425
23787 PR rtl-optimization/57569
23788 * alias.c (write_dependence_p): Remove parameters mem_mode and
23789 canon_mem_addr. Add parameters x_mode, x_addr and x_canonicalized.
23790 Changed all callers.
23791 (canon_anti_dependence): Get comments and semantics in sync.
23792 Add parameter mem_canonicalized. Changed all callers.
23793 * rtl.h (canon_anti_dependence): Update prototype.
23795 2013-06-20 Richard Biener <rguenther@suse.de>
23797 * data-streamer-in.c (streamer_read_uhwi): Optimize single
23798 byte case, inline streamer_read_uchar and defer section
23801 2013-06-20 Richard Biener <rguenther@suse.de>
23803 PR tree-optimization/57584
23804 * tree-ssa-loop-niter.c (expand_simple_operations): Avoid including
23805 SSA names into the expanded expression that take part in
23806 abnormal coalescing.
23808 2013-06-19 Sharad Singhai <singhai@google.com>
23810 * gcov.c (print_usage): Handle new option.
23811 (process_args): Ditto.
23812 (get_gcov_intermediate_filename): New function.
23813 (output_intermediate_file): New function.
23814 (output_gcov_file): New function
23815 (generate_results): Handle new option.
23816 (release_function): Relase demangled name.
23817 (read_graph_file): Handle demangled name.
23818 (output_lines): Ditto.
23819 * doc/gcov.texi: Document gcov intermediate format.
23821 2013-06-19 Vladimir Makarov <vmakarov@redhat.com>
23824 * lra.c (emit_add3_insn, emit_add2_insn): New functions.
23825 (lra_emit_add): Use the functions. Add comment about Y as an
23828 2013-06-19 David Edelsohn <dje.gcc@gmail.com>
23831 * collect2.c (collect_atexit): New.
23832 (collect_exit): Delete.
23833 (main): Register collect_atexit with atexit.
23834 (collect_wait): Change collect_exit to exit.
23836 * collect2.h (collect_exit): Delete.
23837 * tlink.c (do_tlink): Rename exit to ret. Change collect_exit to exit.
23839 2013-06-19 Wei Mi <wmi@google.com>
23841 PR rtl-optimization/57518
23842 * ira.c (set_paradoxical_subreg): Set pdx_subregs[regno]
23843 if regno is used in paradoxical subreg.
23844 (update_equiv_regs): Check pdx_subregs[regno] before
23845 set a reg to be equivalent with a mem.
23847 2013-06-19 Matthias Klose <doko@ubuntu.com>
23850 * file-find.h (find_a_file): Add a mode parameter.
23851 * file-find.c (find_a_file): Likewise.
23852 * gcc-ar.c (main): Call find_a_file with R_OK for the plugin,
23853 with X_OK for the executables.
23854 * collect2.c (main): Call find_a_file with X_OK.
23856 2013-06-19 Steve Ellcey <sellcey@mips.com>
23859 * config/mips/mips.md (casesi_internal_mips16_<mode>):
23860 Use NEXT_INSN instead of next_real_insn.
23862 2013-06-19 Jan Hubicka <jh@suse.cz>
23864 * cgraph.h (const_value_known_p): Replace by ...
23865 (ctor_for_folding): .. this one.
23866 * cgraphunit.c (process_function_and_variable_attributes): Use it.
23867 * lto-cgraph.c (compute_ltrans_boundary): Use ctor_for_folding.
23868 * expr.c (expand_expr_real_1): Likewise.
23869 (string_constant): Likewise.
23870 * tree-ssa-loop-ivcanon.c (constant_after_peeling): Likewise.
23871 * ipa.c (process_references): Likewise.
23872 (symtab_remove_unreachable_nodes): Likewise.
23873 * ipa-inline-analysis.c (param_change_prob): Likewise.
23874 * gimple-fold.c (canonicalize_constructor_val): Likewise.
23875 (get_base_constructor): Likwise.
23876 * varpool.c (varpool_remove_node): Likewise.
23877 (varpool_remove_initializer): LIkewise.
23878 (dump_varpool_node): LIkwise.
23879 (const_value_known_p): Rewrite to ...
23880 (ctor_for_folding): ... this one.
23882 2013-06-19 Jakub Jelinek <jakub@redhat.com>
23885 * gcc-ar.c (main): If not CROSS_DIRECTORY_STRUCTURE, look for
23886 PERSONALITY in $PATH derived prefixes.
23888 2013-06-19 Jeff Law <law@redhat.com>
23890 * tree-ssa-forwprop.c (simplify_bitwise_binary_boolean): Fix typo
23893 * tree-ssa-forwprop.c (simplify_bitwise_binary_boolean): New function.
23894 (simplify_bitwise_binary): Use it to simpify certain binary ops on
23897 2013-06-19 Sofiane Naci <sofiane.naci@arm.com>
23899 * config/arm/vfp.md: Move VFP instruction classification documentation
23901 * config/arm/arm.md: ... here. Update instruction classification
23904 2013-06-19 Richard Earnshaw <rearnsha@arm.com>
23906 arm.md (split for eq(reg, 0)): Add variants for ARMv5 and Thumb2.
23907 (peepholes for eq(reg, not-0)): Ensure condition register is dead after
23908 pattern. Use more efficient sequences on ARMv5 and Thumb2.
23910 2013-06-19 Steven Bosscher <steven@gcc.gnu.org>
23913 * config/s390/s390.c (s390_chunkify_start): Replace next_real_insn
23914 with NEXT_INSN. Use tablejump_p to check for jump table data
23917 2013-06-19 Paolo Carlini <paolo.carlini@oracle.com>
23920 * doc/cpp.texi [Standard Predefined Macros, __cplusplus]: Document
23921 that now in C++ the value is correct per the C++ standards.
23923 2013-06-19 Richard Biener <rguenther@suse.de>
23925 * expr.c (expand_expr_real_1): Use SCOPE_FILE_SCOPE_P to check
23926 for global context.
23928 2013-06-19 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
23931 2013-06-18 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
23934 * config/s390/s390.c (s390_chunkify_start): Replace next_real_insn
23935 with next_active_insn.
23937 2013-06-18 Sriraman Tallam <tmsriram@google.com>
23939 * ipa-inline.c (inline_always_inline_functions): Pretend always_inline
23940 functions are inlined during failures to flag an error.
23941 * tree-inline.c (expand_call_inline): Allow the error to be flagged
23942 in early inline pass.
23944 2013-06-18 H.J. Lu <hongjiu.lu@intel.com>
23946 * config/i386/i386.c (initial_ix86_tune_features): Fix a typo
23949 2013-06-18 Julian Brown <julian@codesourcery.com>
23951 * config/arm/arm.c (neon_vector_mem_operand): Add strict argument.
23952 Permit virtual register pre-reload if !strict.
23953 (coproc_secondary_reload_class): Adjust for neon_vector_mem_operand
23955 * config/arm/arm-protos.h (neon_vector_mem_operand): Adjust
23957 * config/arm/neon.md (movmisalign<mode>): Use
23958 neon_perm_struct_or_reg_operand instead of
23959 neon_struct_or_register_operand.
23960 (*movmisalign<mode>_neon_load, *movmisalign<mode>_neon_store): Use
23961 neon_permissive_struct_operand instead of neon_struct_operand.
23962 * config/arm/constraints.md (Un, Um, Us): Adjust calls to
23963 neon_vector_mem_operand.
23964 * config/arm/predicates.md (neon_struct_operand): Adjust call to
23965 neon_vector_mem_operand.
23966 (neon_permissive_struct_operand): New.
23967 (neon_struct_or_register_operand): Rename to...
23968 (neon_perm_struct_or_reg_operand): This. Adjust call to
23969 neon_vector_mem_operand.
23971 2013-06-18 Richard Biener <rguenther@suse.de>
23973 * Makefile.in (LTO_STREAMER_H): Add pointer-set.h dependency.
23974 * lto-streamer.h: Include pointer-set.h.
23975 (struct lto_decl_slot): Remove.
23976 (struct lto_tree_ref_encoder): Make tree_hash_table a pointer-map.
23977 Remove next_index entry.
23978 (lto_hash_decl_slot_node, lto_eq_decl_slot_node,
23979 lto_hash_type_slot_node, lto_eq_type_slot_node): Remove.
23980 (lto_init_tree_ref_encoder): Adjust.
23981 (lto_destroy_tree_ref_encoder): Likewise.
23982 * lto-section-out.c (lto_hash_decl_slot_node, lto_eq_decl_slot_node,
23983 lto_hash_type_slot_node, lto_eq_type_slot_node): Remove.
23984 (lto_output_decl_index): Adjust.
23985 (lto_new_out_decl_state): Likewise.
23986 (lto_record_function_out_decl_state): Likewise.
23987 * lto-streamer-out.c (copy_function): Likewise.
23989 2013-06-18 Richard Biener <rguenther@suse.de>
23991 * Makefile.in (cgraphunit.o): Add $(CFGLOOP_H) dependency.
23992 * cgraphunit.c: Include cfgloop.h.
23993 (init_lowered_empty_function): Initialize the loop tree.
23994 (assemble_thunk): Insert new BBs into loops.
23996 2013-06-18 Richard Biener <rguenther@suse.de>
23998 * tree-streamer.h (streamer_tree_cache_create): Adjust prototype.
23999 * tree-streamer.c (streamer_tree_cache_create): Make maintaining
24000 the map from cache entry to cache index optional.
24001 (streamer_tree_cache_replace_tree): Adjust accordingly.
24002 (streamer_tree_cache_append): Likewise.
24003 (streamer_tree_cache_delete): Likewise.
24004 * lto-streamer-in.c (lto_data_in_create): Do not maintain the
24005 streamer cache map from cache entry to cache index.
24006 * lto-streamer-out.c (create_output_block): Adjust.
24008 2013-06-18 Sofiane Naci <sofiane.naci@arm.com>
24010 * config/arm/arm.md (attribute "insn"): Move multiplication and
24011 division attributes to...
24012 (attribute "type"): ... here. Remove mult.
24013 (attribute "mul32"): New attribute.
24014 (attribute "mul64"): Add umaal.
24015 (*arm_mulsi3): Update attributes.
24016 (*arm_mulsi3_v6): Likewise.
24017 (*thumb_mulsi3): Likewise.
24018 (*thumb_mulsi3_v6): Likewise.
24019 (*mulsi3_compare0): Likewise.
24020 (*mulsi3_compare0_v6): Likewise.
24021 (*mulsi_compare0_scratch): Likewise.
24022 (*mulsi_compare0_scratch_v6): Likewise.
24023 (*mulsi3addsi): Likewise.
24024 (*mulsi3addsi_v6): Likewise.
24025 (*mulsi3addsi_compare0): Likewise.
24026 (*mulsi3addsi_compare0_v6): Likewise.
24027 (*mulsi3addsi_compare0_scratch): Likewise.
24028 (*mulsi3addsi_compare0_scratch_v6): Likewise.
24029 (*mulsi3subsi): Likewise.
24030 (*mulsidi3adddi): Likewise.
24031 (*mulsi3addsi_v6): Likewise.
24032 (*mulsidi3adddi_v6): Likewise.
24033 (*mulsidi3_nov6): Likewise.
24034 (*mulsidi3_v6): Likewise.
24035 (*umulsidi3_nov6): Likewise.
24036 (*umulsidi3_v6): Likewise.
24037 (*umulsidi3adddi): Likewise.
24038 (*umulsidi3adddi_v6): Likewise.
24039 (*smulsi3_highpart_nov6): Likewise.
24040 (*smulsi3_highpart_v6): Likewise.
24041 (*umulsi3_highpart_nov6): Likewise.
24042 (*umulsi3_highpart_v6): Likewise.
24043 (mulhisi3): Likewise.
24044 (*mulhisi3tb): Likewise.
24045 (*mulhisi3bt): Likewise.
24046 (*mulhisi3tt): Likewise.
24047 (maddhisi4): Likewise.
24048 (*maddhisi4tb): Likewise.
24049 (*maddhisi4tt): Likewise.
24050 (maddhidi4): Likewise.
24051 (*maddhidi4tb): Likewise.
24052 (*maddhidi4tt): Likewise.
24053 (divsi3): Likewise.
24054 (udivsi3): Likewise.
24055 * config/arm/thumb2.md (thumb2_mulsi_short): Update attributes.
24056 (thumb2_mulsi_short_compare0): Likewise.
24057 (thumb2_mulsi_short_compare0_scratch): Likewise.
24058 * config/arm/arm1020e.md (1020mult1): Update attribute change.
24059 (1020mult2): Likewise.
24060 (1020mult3): Likewise.
24061 (1020mult4): Likewise.
24062 (1020mult5): Likewise.
24063 (1020mult6): Likewise.
24064 * config/arm/cortex-a15.md (cortex_a15_mult32): Update attribute
24066 (cortex_a15_mult64): Likewise.
24067 (cortex_a15_sdiv): Likewise.
24068 (cortex_a15_udiv): Likewise.
24069 * config/arm/arm1026ejs.md (mult1): Update attribute change.
24075 * config/arm/marvell-pj4.md (pj4_ir_mul): Update attribute change.
24076 (pj4_ir_div): Likewise.
24077 * config/arm/arm1136jfs.md (11_mult1): Update attribute change.
24078 (11_mult2): Likewise.
24079 (11_mult3): Likewise.
24080 (11_mult4): Likewise.
24081 (11_mult5): Likewise.
24082 (11_mult6): Likewise.
24083 (11_mult7): Likewise.
24084 * config/arm/cortex-a8.md (cortex_a8_mul): Update attribute change.
24085 (cortex_a8_mla): Likewise.
24086 (cortex_a8_mull): Likewise.
24087 (cortex_a8_smulwy): Likewise.
24088 (cortex_a8_smlald): Likewise.
24089 * config/arm/cortex-m4.md (cortex_m4_alu): Update attribute change.
24090 * config/arm/cortex-r4.md (cortex_r4_mul_4): Update attribute change.
24091 (cortex_r4_mul_3): Likewise.
24092 (cortex_r4_mla_4): Likewise.
24093 (cortex_r4_mla_3): Likewise.
24094 (cortex_r4_smlald): Likewise.
24095 (cortex_r4_mull): Likewise.
24096 (cortex_r4_sdiv): Likewise.
24097 (cortex_r4_udiv): Likewise.
24098 * config/arm/cortex-a7.md (cortex_a7_mul): Update attribute change.
24099 (cortex_a7_idiv): Likewise.
24100 * config/arm/arm926ejs.md (9_mult1): Update attribute change.
24101 (9_mult2): Likewise.
24102 (9_mult3): Likewise.
24103 (9_mult4): Likewise.
24104 (9_mult5): Likewise.
24105 (9_mult6): Likewise.
24106 * config/arm/cortex-a53.md (cortex_a53_mul): Update attribute change.
24107 (cortex_a53_sdiv): Likewise.
24108 (cortex_a53_udiv): Likewise.
24109 * config/arm/fa726te.md (726te_mult_op): Update attribute change.
24110 * config/arm/fmp626.md (mp626_mult1): Update attribute change.
24111 (mp626_mult2): Likewise.
24112 (mp626_mult3): Likewise.
24113 (mp626_mult4): Likewise.
24114 * config/arm/fa526.md (526_mult1): Update attribute change.
24115 (526_mult2): Likewise.
24116 * config/arm/arm-generic.md (mult): Update attribute change.
24117 (mult_ldsched_strongarm): Likewise.
24118 (mult_ldsched): Likewise.
24119 (multi_cycle): Likewise.
24120 * config/arm/cortex-a5.md (cortex_a5_mul): Update attribute change.
24121 * config/arm/fa606te.md (606te_mult1): Update attribute change.
24122 (606te_mult2): Likewise.
24123 (606te_mult3): Likewise.
24124 (606te_mult4): Likewise.
24125 * config/arm/cortex-a9.md (cortex_a9_mult16): Update attribute change.
24126 (cortex_a9_mac16): Likewise.
24127 (cortex_a9_multiply): Likewise.
24128 (cortex_a9_mac): Likewise.
24129 (cortex_a9_multiply_long): Likewise.
24130 * config/arm/fa626te.md (626te_mult1): Update attribute change.
24131 (626te_mult2): Likewise.
24132 (626te_mult3): Likewise.
24133 (626te_mult4): Likewise.
24135 2013-06-18 Richard Biener <rguenther@suse.de>
24138 * lto-symtab.c (lto_symtab_merge_decls): Process nodes properly.
24140 2013-06-18 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
24143 * config/s390/s390.c (s390_chunkify_start): Replace next_real_insn
24144 with next_active_insn.
24146 2013-06-18 Alan Modra <amodra@gmail.com>
24148 * config/rs6000/rs6000.h (enum data_align): New.
24149 (LOCAL_ALIGNMENT, DATA_ALIGNMENT): Use rs6000_data_alignment.
24150 (DATA_ABI_ALIGNMENT): Define.
24151 (CONSTANT_ALIGNMENT): Correct comment.
24152 * config/rs6000/rs6000-protos.h (rs6000_data_alignment): Declare.
24153 * config/rs6000/rs6000.c (rs6000_data_alignment): New function.
24155 2013-06-17 David Malcolm <dmalcolm@redhat.com>
24157 * ggc-page.c (ggc_pch_write_object) <d>: Remove erroneous
24158 ATTRIBUTE_UNUSED marking.
24160 2013-06-17 Sofiane Naci <sofiane.naci@arm.com>
24162 * config/aarch64/aarch64-simd.md (aarch64_dup_lane<mode>): Add r<-w
24163 alternative and update.
24164 (aarch64_dup_lanedi): Delete.
24165 * config/aarch64/arm_neon.h (vdup<bhsd>_lane_*): Update.
24166 * config/aarch64/aarch64-simd-builtins.def: Update.
24168 2013-06-17 Richard Biener <rguenther@suse.de>
24170 * lto-streamer.h (enum LTO_tags): Add LTO_tree_scc.
24171 (lto_input_scc): Declare.
24172 (lto_input_tree_1): Likewise.
24173 (struct lto_stats_d): Add num_tree_bodies_output and
24174 num_pickle_refs_output.
24175 * lto-streamer-in.c (lto_read_body): Use streamer_tree_cache_get_tree.
24176 (lto_read_tree_1): Split out from ...
24177 (lto_read_tree): ... this.
24178 (lto_input_scc): New function.
24179 (lto_input_tree_1): Split out from ...
24180 (lto_input_tree): ... this. Handle LTO_tree_scc.
24181 (lto_data_in_create): Create the streamer cache without hashes.
24182 * lto-streamer-out.c (create_output_block): Create the streamer
24183 cache with hashes when not doing WPA.
24184 (lto_write_tree_1): Split out from ...
24185 (lto_write_tree): ... this.
24186 (get_symbol_initial_value): New function.
24187 (lto_output_tree_1): Split out from ...
24188 (lto_output_tree): ... this. Write trees as series of SCCs
24189 using a DFS walk via DFS_write_tree.
24190 (struct sccs, struct scc_entry): New types.
24191 (next_dfs_num, sccstack, sccstate, sccstate_obstack): New globals.
24192 (DFS_write_tree_body): New function.
24193 (DFS_write_tree): Likewise.
24194 (hash_tree): Likewise.
24195 (scc_entry_compare): Likewise.
24196 (hash_scc): Likewise.
24197 (tree_is_indexable): DEBUG_EXPR_DECLs are local entities.
24198 * tree-streamer-in.c (lto_input_ts_list_tree_pointers): Stream
24199 TREE_CHAIN as regular reference.
24200 (streamer_read_integer_cst): Remove.
24201 (streamer_get_pickled_tree): Adjust.
24202 * tree-streamer-out.c (streamer_write_chain): Disable streaming
24203 of DECL_EXTERNALs in BLOCK_VARS for now.
24204 (write_ts_list_tree_pointers): Stream TREE_CHAIN as regular
24206 * tree-streamer.c (streamer_tree_cache_add_to_node_array):
24207 Add hash value argument and record that if hashes are recorded
24209 (streamer_tree_cache_insert_1): Adjust.
24210 (streamer_tree_cache_insert): Likewise.
24211 (streamer_tree_cache_insert_at): Rename to ...
24212 (streamer_tree_cache_replace_tree): ... this and adjust.
24213 (streamer_tree_cache_append): Adjust.
24214 (record_common_node): Likewise.
24215 (streamer_tree_cache_create): Add argument whether to
24216 record hash values together with trees.
24217 (streamer_tree_cache_delete): Adjust.
24218 * tree-streamer.h (struct streamer_tree_cache_d): Add
24220 (streamer_read_integer_cst): Remove.
24221 (streamer_tree_cache_insert): Adjust.
24222 (streamer_tree_cache_append): Likewise.
24223 (streamer_tree_cache_insert_at): Rename to ...
24224 (streamer_tree_cache_replace_tree): ... this and adjust.
24225 (streamer_tree_cache_create): Add argument whether to record hashes.
24226 (streamer_tree_cache_get): Rename to ...
24227 (streamer_tree_cache_get_tree): ... this.
24228 (streamer_tree_cache_get_hash): New function.
24229 * tree.c (cache_integer_cst): New function.
24230 * tree.h (cache_integer_cst): Declare.
24231 (ANON_AGGRNAME_FORMAT, ANON_AGGRNAME_P): Move here from cp/cp-tree.h.
24232 * lto-symtab.c (lto_varpool_replace_node): Only release
24233 DECL_INITIAL of non-prevailing decls.
24234 * varpool.c (varpool_remove_initializer): Do not release
24235 DECL_INITIAL when we are still in CGRAPH_LTO_STREAMING.
24237 2013-06-16 Jürgen Urban <JuergenUrban@gmx.de>
24239 * config/mips/mips.h (ISA_HAS_MUL3): Include TARGET_MIPS5900.
24240 (ISA_HAS_MULT, ISA_HAS_DMULT, ISA_HAS_DIV, ISA_HAS_DDIV): New macros.
24241 * config/mips/mips.md (mul<mode>3, mul<mode>3_internal)
24242 (mul<mode>3_r4000): Require ISA_HAS_<D>MULT.
24243 (mul<mode>3_mul3): Handle TARGET_MIPS5900.
24244 (mulsidi3_64bit_dmul): Remove redundant TARGET_64BIT test.
24245 (<su>muldi3_highpart, <su>muldi3_highpart_internal, <u>mulditi3)
24246 (<u>mulditi3_internal, <u>mulditi3_r4000): Require ISA_HAS_DMULT
24247 instead of TARGET_64BIT.
24248 (divmod<mode>4, udivmod<mode>4, <u>divmod<GPR:mode>4_hilo_<HILO:mode>):
24249 Require ISA_HAS_<D>DIV.
24251 2013-06-16 Richard Sandiford <rdsandiford@googlemail.com>
24253 * config.gcc (mips*-mti-linux*, mips64*-*-linux*, mipsisa64*-*-linux*)
24254 (mips*-*-linux*): Move default with_llsc setting to where other
24256 (mips*-*-vxworks*): Move with_arch default from with_cpu block to
24258 (mips64r5900-*-*, mips64r5900el-*-*, mipsr5900-*-*, mipsr5900el-*-*):
24259 Likewise. Remove default with_tune setting. Move default float
24260 setting to its own block. Handle with_llsc in the same block as above.
24262 2013-06-16 Joern Rennecke <joern.rennecke@embecosm.com>
24264 PR rtl-optimization/57425
24265 PR rtl-optimization/57569
24266 * alias.c (write_dependence_p): Add new parameters mem_mode,
24267 canon_mem_addr and mem_canonicalized. Change type of writep to bool.
24268 Changed all callers.
24269 (canon_anti_dependence): New function.
24270 * cse.c (check_dependence): Use canon_anti_dependence.
24271 * cselib.c (cselib_invalidate_mem): Likewise.
24272 * rtl.h (canon_anti_dependence): Declare.
24274 2013-06-16 Jürgen Urban <JuergenUrban@gmx.de>
24276 * config/mips/mips.h (ISA_HAS_LL_SC): Exclude TARGET_MIPS5900.
24277 * config/mips/mips.c (mips_start_ll_sc_sync_block): Output
24278 ".set mips3" for 64-bit targets.
24280 2013-06-15 Dehao Chen <dehao@google.com>
24282 * tree-flow.h (gimple_check_call_matching_types): Add new argument.
24283 * gimple-low.c (gimple_check_call_matching_types): Likewise.
24284 (gimple_check_call_args): Likewise.
24285 * value-prof.c (check_ic_target): Likewise.
24286 * ipa-inline.c (early_inliner): Likewise.
24287 * ipa-prop.c (update_indirect_edges_after_inlining): Likewise.
24288 * cgraph.c (cgraph_create_edge_1): Likewise.
24289 (cgraph_make_edge_direct): Likewise.
24291 2013-06-14 Michael Meissner <meissner@linux.vnet.ibm.com>
24294 * config/rs6000/rs6000.md (mov<mode>_ppc64): Call
24295 rs6000_output_move_128bit to handle emitting quad memory
24296 operations. Set attribute length to 8 bytes.
24298 2013-06-14 Vidya Praveen <vidyapraveen@arm.com>
24300 * config/aarch64/aarch64-simd.md (aarch64_<su>mlal_lo<mode>):
24302 (aarch64_<su>mlal_hi<mode>, aarch64_<su>mlsl_lo<mode>): Likewise.
24303 (aarch64_<su>mlsl_hi<mode>, aarch64_<su>mlal<mode>): Likewise.
24304 (aarch64_<su>mlsl<mode>): Likewise.
24306 2013-06-14 Mike Stump <mikestump@comcast.net>
24308 * Makefile.in (TARGET_H): Add insn-codes.h.
24310 2013-06-14 Alan Modra <amodra@gmail.com>
24312 PR middle-end/57134
24313 PR middle-end/57586
24314 * expr.c (expand_expr_real_1 <normal_inner_ref>): Pass
24315 EXPAND_MEMORY and EXPAND_WRITE to recursive call. Don't use
24316 bitfield expansion when EXPAND_MEMORY.
24317 (expand_expr_real_1 <VIEW_CONVERT_EXPR>): Pass modifier likewise.
24319 2013-06-13 Michael Meissner <meissner@linux.vnet.ibm.com>
24321 * config/rs6000/rs6000.c (rs6000_option_override_internal): Move
24322 test for clearing quad memory on 32-bit later.
24324 2013-06-13 Marc Glisse <marc.glisse@inria.fr>
24326 * fold-const.c (negate_expr_p): Handle VECTOR_CST.
24327 (fold_negate_expr): Likewise.
24328 (fold_real_zero_addition_p): Handle vectors.
24329 (fold_binary_loc) <PLUS_EXPR, MINUS_EXPR>: Likewise.
24331 2013-06-14 Alan Modra <amodra@gmail.com>
24333 * varasm.c (force_const_mem): Revert 2013-06-07 change.
24335 2013-06-13 Jan Hubicka <jh@suse.cz>
24337 * ipa.c (cgraph_externally_visible_p, varpool_externally_visible_p):
24338 Local comdats are not externally visible.
24339 * symtab.c (dump_symtab_base): Dump externally visible.
24340 (verify_symtab_base): Verify back links in the symtab hash.
24342 2013-06-13 Bin Cheng <bin.cheng@arm.com>
24344 * fold-const.c (operand_equal_p): Consider NOP_EXPR and
24345 CONVERT_EXPR as equal nodes.
24347 2013-06-13 Bin Cheng <bin.cheng@arm.com>
24349 * rtlanal.c (noop_move_p): Check the code to be executed for COND_EXEC.
24351 2013-06-13 Marc Glisse <marc.glisse@inria.fr>
24353 * tree-ssa-forwprop.c (simplify_bitwise_binary, associate_plusminus):
24354 Generalize to complex and vector.
24355 * tree.c (build_all_ones_cst): New function.
24356 * tree.h (build_all_ones_cst): Declare it.
24358 2013-06-13 Alan Modra <amodra@gmail.com>
24360 * config/rs6000/rs6000.h (LONG_DOUBLE_LARGE_FIRST): Define.
24361 * config/rs6000/rs6000.md (signbittf2): New insn.
24362 (extenddftf2_internal): Use LONG_DOUBLE_LARGE_FIRST.
24363 (abstf2_internal, cmptf_internal2): Likewise.
24364 * config/rs6000/spe.md (spe_abstf2_cmp, spe_abstf2_tst): Likewise.
24366 2013-06-12 Michael Meissner <meissner@linux.vnet.ibm.com>
24367 Pat Haugen <pthaugen@us.ibm.com>
24368 Peter Bergner <bergner@vnet.ibm.com>
24370 * config/rs6000/rs6000.c (emit_load_locked): Add support for
24371 power8 byte, half-word, and quad-word atomic instructions.
24372 (emit_store_conditional): Likewise.
24373 (rs6000_expand_atomic_compare_and_swap): Likewise.
24374 (rs6000_expand_atomic_op): Likewise.
24376 * config/rs6000/sync.md (larx): Add new modes for power8.
24378 (AINT): New mode iterator to include TImode as well as normal
24379 integer modes on power8.
24380 (fetchop_pred): Use int_reg_operand instead of gpc_reg_operand so
24381 that VSX registers are not considered. Use AINT mode iterator
24382 instead of INT1 to allow inclusion of quad word atomic operations
24384 (load_locked<mode>): Likewise.
24385 (store_conditional<mode>): Likewise.
24386 (atomic_compare_and_swap<mode>): Likewise.
24387 (atomic_exchange<mode>): Likewise.
24388 (atomic_nand<mode>): Likewise.
24389 (atomic_fetch_<fetchop_name><mode>): Likewise.
24390 (atomic_nand_fetch<mode>): Likewise.
24391 (mem_thread_fence): Use gen_loadsync_<mode> instead of enumerating
24393 (ATOMIC): On power8, add QImode, HImode modes.
24394 (load_locked<QHI:mode>_si): Varients of load_locked for QI/HI
24395 modes that promote to SImode.
24396 (load_lockedti): Convert TImode arguments to PTImode, so that we
24397 get a guaranteed even/odd register pair.
24398 (load_lockedpti): Likewise.
24399 (store_conditionalti): Likewise.
24400 (store_conditionalpti): Likewise.
24402 * config/rs6000/rs6000.md (QHI): New mode iterator for power8
24403 atomic load/store instructions.
24406 2013-06-12 Richard Sandiford <rdsandiford@googlemail.com>
24408 * config/mips/mips.md (extended_mips16): Include GOT and constant-pool
24410 (insn_count): New attribute, with most cases extracted from...
24411 (length): ...here. Redefine most cases in terms of insn_count.
24412 (single_insn): Delete.
24413 (can_delay): Use insn_count to check for single instructions.
24414 (*mul<mode>3_r4300, mul<mode>3_r4000, *mul_acc_si, *mul_acc_si_r3900)
24415 (*msac_using_macc, *mul_sub_si, <u>mulsidi3_32bit_r4000)
24416 (<u>mulsidi3_64bit_r4000, <su>muldi3_highpart_internal)
24417 (<su>mulsi3_highpart_split, <su>muldi3_highpart_internal)
24418 (<u>mulditi3_r4000, *div<mode>3, *recip<mode>3, divmod<mode>4)
24419 (udivmod<mode>4, sqrt<mode>2, *rsqrt<mode>a, *rsqrt<mode>b)
24420 (fix_truncdfsi2_macro, fix_truncsfsi2_macro, *lea_high64)
24421 (*lea64, cprestore_<mode>, clear_hazard_<mode>, <unnamed insn>)
24422 (casesi_internal_mips16_<mode>, *tls_get_tp_<mode>_split)
24423 (tls_get_tp_mips16, *tls_get_tp_mips16_call_<mode>): Use "insn_count"
24424 rather than "length".
24425 (tls_get_tp_<mode>): Likewise. Remove redundant "no_delay" attribute.
24426 * config/mips/mips-ps-3d.md (mips_c_cond_4s, mips_cabs_cond_4s):
24427 Use "insn_count" rather than "length".
24428 * config/mips/mips-dsp.md
24429 (mips_l<SHORT:size><u>x_ext<GPR:mode>_<P:mode>)
24430 (mips_l<GPR:size>x_<P:mode>, *mips_lw<u>x_<P:mode>_ext): Remove
24433 2013-06-12 Marc Glisse <marc.glisse@inria.fr>
24435 PR tree-optimization/57361
24436 * tree-ssa-dse.c (dse_possible_dead_store_p): Handle self-assignment.
24438 2013-06-12 Sofiane Naci <sofiane.naci@arm.com>
24440 * config/aarch64/aarch64-simd.md (aarch64_combine<mode>): Convert
24442 (aarch64_simd_combine<mode>): New instruction expansion.
24443 * config/aarch64/aarch64-protos.h (aarch64_split_simd_combine): New
24444 function prototype.
24445 * config/aarch64/aarch64.c (aarch64_split_combine): New function.
24446 * config/aarch64/iterators.md (Vdbl): Add entry for DF.
24448 2013-06-12 Jan Hubicka <jh@suse.cz>
24450 * cgraph.c (verify_edge_corresponds_to_fndecl): Be lax about
24451 decl has when in streaming stage.
24452 * lto-symtab.c (lto_symtab_merge_symbols): Likewise.
24453 * cgraph.h (cgraph_state): Add CGRAPH_LTO_STREAMING.
24455 2013-06-12 Roland Stigge <stigge@antcom.de>
24458 * config/rs6000/t-linux (MULTIARCH_DIRNAME): Fix SPE version detection.
24460 2013-06-12 Jakub Jelinek <jakub@redhat.com>
24462 PR tree-optimization/57537
24463 * tree-vect-patterns.c (vect_recog_widen_mult_pattern): If
24464 vect_handle_widen_op_by_const, convert oprnd1 to half_type1.
24466 2013-06-12 Richard Biener <rguenther@suse.de>
24468 * data-streamer.h (streamer_write_char_stream): CSE
24469 obs->current_pointer.
24470 * data-streamer-out.c (streamer_write_uhwi_stream): Inline
24471 streamer_write_char_stream manually and optimize the resulting loop.
24472 (streamer_write_hwi_stream): Likewise.
24474 2013-06-12 Jan Hubicka <jh@suse.cz>
24476 * lto-symtab.c (lto_symtab_merge_symbols): Populate symtab hashtable.
24477 * cgraph.h (varpool_create_empty_node): Declare.
24478 * lto-cgraph.c (input_node, input_varpool_node): Forcingly create
24480 * symtab.c (symtab_unregister_node): Be lax about missin entries
24482 (symtab_get_node): Update comment.
24483 * varpool.c (varpool_create_empty_node): Break out from ...
24484 (varpool_node_for_decl): ... here.
24485 * lto-streamer.h (lto_file_decl_data): Add RESOLUTION_MAP.
24487 2013-06-12 Eric Botcazou <ebotcazou@adacore.com>
24489 * expr.c (expand_expr_real_1) <TARGET_MEM_REF>: Use straight-line flow.
24490 <MEM_REF>: Use 'type' instead of TREE_TYPE (exp) and tidy up the first
24491 part. Use straight-line flow at the end.
24492 <COMPONENT_REF>: Remove superfluous else.
24493 <VIEW_CONVERT_EXPR>: Use 'type' instead of TREE_TYPE (exp).
24495 2013-06-12 Jakub Jelinek <jakub@redhat.com>
24498 * varasm.c (decl_binds_to_current_def_p): Call binds_local_p
24499 target hook even for !TREE_PUBLIC decls. If no resolution info
24500 is available, return false for common and external decls.
24502 2013-06-12 Kaushik Phatak <kaushik.phatak@kpitcummins.com>
24504 * config/rl78/constraints.md (U): New constraint.
24505 * config/rl78/rl78.md (*mulqi3_rl78,*mulhi3_rl78,*mulhi3_g13): Add
24508 2013-06-11 Michael Meissner <meissner@linux.vnet.ibm.com>
24511 * config/rs6000/driver-rs6000.c (elf_platform): Make buffer static
24512 to allow returning address to AT_PLATFORM name.
24514 2013-06-11 Jan Hubicka <jh@suse.cz>
24516 * cgraph.c (cgraph_create_function_alias): Set weakref flag.
24517 * cgraph.h (symtab_node_base): Add weakref flag.
24518 * cgraphunit.c (cgraph_reset_node): Clear weakref flag.
24519 (handle_alias_pairs): Set weakref flag, do not set DECL_EXTERNAL.
24520 (output_weakrefs): Use weakref flag.
24521 * fold-const.c (simple_operand_p): Handle WEAK.
24522 * gimple-fold.c (can_refer_decl_in_current_unit_p): Drop weakref.
24523 * ipa.c (varpool_externally_visible_p): Drop weakref.
24524 (function_and_variable_visibility): Update comment; fix weakref
24525 sanity checks; do not clear DECL_WEAK on them.
24526 * lto-cgraph.c (lto_output_node): update.
24527 (lto_output_varpool_node): Update.
24528 (input_overwrite_node): Update.
24529 (input_node): Update.
24530 (input_varpool_node): Update.
24531 * lto-symtab.c (lto_symtab_symbol_p): Do not special case weakrefs.
24532 (lto_symtab_merge_symbols): Add sanity check.
24533 (lto_symtab_prevailing_decl): Do not special case weakrefs.
24534 * passes.c (rest_of_decl_compilation): Set static flag, too.
24535 * symtab.c (dump_symtab_base): Dump weakref.
24536 (verify_symtab_base): Sanity check weakrefs.
24537 (symtab_make_decl_local): Remove duplicated code.
24538 (symtab_alias_ultimate_target): Simplify.
24539 * varpool.c (varpool_create_variable_alias): Set weakref flag.
24541 2013-06-11 Tom de Vries <tom@codesourcery.com>
24543 * genautomata.c (gen_regexp_sequence): Handle els_num == -1. Handle
24544 sequence_vect == NULL.
24546 2013-06-11 DJ Delorie <dj@redhat.com>
24548 * config/rl78/rl78.c (TARGET_UNWIND_WORD_MODE): Define.
24549 (rl78_unwind_word_mode): New.
24551 2013-06-11 David Malcolm <dmalcolm@redhat.com>
24553 * final.c (debug_prefix_maps): Make static.
24555 2013-06-11 David Malcolm <dmalcolm@redhat.com>
24557 * function.c (initial_trampoline): Remove stray copy.
24559 2013-06-11 Sofiane Naci <sofiane.naci@arm.com>
24561 * config/aarch64/aarch64-simd.md (move_lo_quad_<mode>): Update.
24563 2013-06-11 Martin Jambor <mjambor@suse.cz>
24565 * ipa-cp.c (ipa_get_indirect_edge_target_1): Check that param_index is
24566 within bounds at the beginning of the function.
24568 2013-06-11 Alan Modra <amodra@gmail.com>
24570 * varasm.c (get_section): Don't die on !DECL_P decl. Tidy error
24572 (get_named_section): Don't NULL !DECL_P decl.
24574 2013-06-11 Igor Zamyatin <igor.zamyatin@intel.com>
24576 * doc/invoke.texi (core-avx2): Document.
24578 (atom): Updated with MOVBE.
24580 2013-06-11 Richard Biener <rguenther@suse.de>
24582 * collect2.c (main): Do not redirect ld stdout/stderr when debugging.
24584 2013-06-11 Anton Blanchard <anton@samba.org>
24586 * config/rs6000/rs6000.c (rs6000_adjust_atomic_subword): Calculate
24587 correct shift value in little-endian mode.
24589 2013-06-11 Jakub Jelinek <jakub@redhat.com>
24592 * varasm.c (get_variable_align): Move #endif to the right place.
24594 2013-06-10 Cary Coutant <ccoutant@google.com>
24596 * dwarf2out.c (hash_external_ref): Use die_symbol or signature
24597 for hash so that hash table traversal order is deterministic.
24599 2013-06-10 Michael Meissner <meissner@linux.vnet.ibm.com>
24600 Pat Haugen <pthaugen@us.ibm.com>
24601 Peter Bergner <bergner@vnet.ibm.com>
24603 * config/rs6000/vector.md (GPR move splitter): Do not split moves
24604 of vectors in GPRS if they are direct moves or quad word load or
24607 * config/rs6000/rs6000-protos.h (rs6000_output_move_128bit): Add
24609 (direct_move_p): Likewise.
24610 (quad_load_store_p): Likewise.
24612 * config/rs6000/rs6000.c (enum rs6000_reg_type): Simplify register
24613 classes into bins based on the physical register type.
24614 (reg_class_to_reg_type): Likewise.
24615 (IS_STD_REG_TYPE): Likewise.
24616 (IS_FP_VECT_REG_TYPE): Likewise.
24617 (reload_fpr_gpr): Arrays to determine what insn to use if we can
24618 use direct move instructions.
24619 (reload_gpr_vsx): Likewise.
24620 (reload_vsx_gpr): Likewise.
24621 (rs6000_init_hard_regno_mode_ok): Precalculate the register type
24622 information that is a simplification of register classes. Also
24623 precalculate direct move reload helpers.
24624 (direct_move_p): New function to return true if the operation can
24625 be done as a direct move instruciton.
24626 (quad_load_store_p): New function to return true if the operation
24627 is a quad memory operation.
24628 (rs6000_legitimize_address): If quad memory, only allow register
24629 indirect for TImode addresses.
24630 (rs6000_legitimate_address_p): Likewise.
24631 (enum reload_reg_type): Delete, replace with rs6000_reg_type.
24632 (rs6000_reload_register_type): Likewise.
24633 (register_to_reg_type): Return register type.
24634 (rs6000_secondary_reload_simple_move): New helper function for
24635 secondary reload and secondary memory needed to identify anything
24636 that is a simple move, and does not need reloading.
24637 (rs6000_secondary_reload_direct_move): New helper function for
24638 secondary reload to identify cases that can be done with several
24639 instructions via the direct move instructions.
24640 (rs6000_secondary_reload_move): New helper function for secondary
24641 reload to identify moves between register types that can be done.
24642 (rs6000_secondary_reload): Add support for quad memory operations
24643 and for direct move.
24644 (rs6000_secondary_memory_needed): Likewise.
24645 (rs6000_debug_secondary_memory_needed): Change argument names.
24646 (rs6000_output_move_128bit): New function to return the move to
24647 use for 128-bit moves, including knowing about the various
24648 limitations of quad memory operations.
24650 * config/rs6000/vsx.md (vsx_mov<mode>): Add support for quad
24651 memory operations. call rs6000_output_move_128bit for the actual
24652 instruciton(s) to generate.
24653 (vsx_movti_64bit): Likewise.
24655 * config/rs6000/rs6000.md (UNSPEC_P8V_FMRGOW): New unspec values.
24656 (UNSPEC_P8V_MTVSRWZ): Likewise.
24657 (UNSPEC_P8V_RELOAD_FROM_GPR): Likewise.
24658 (UNSPEC_P8V_MTVSRD): Likewise.
24659 (UNSPEC_P8V_XXPERMDI): Likewise.
24660 (UNSPEC_P8V_RELOAD_FROM_VSX): Likewise.
24661 (UNSPEC_FUSION_GPR): Likewise.
24662 (FMOVE128_GPR): New iterator for direct move.
24663 (f32_lv): New mode attribute for load/store of SFmode/SDmode values.
24664 (f32_sv): Likewise.
24665 (f32_dm): Likewise.
24666 (zero_extend<mode>di2_internal1): Add support for power8 32-bit
24667 loads and direct move instructions.
24668 (zero_extendsidi2_lfiwzx): Likewise.
24669 (extendsidi2_lfiwax): Likewise.
24670 (extendsidi2_nocell): Likewise.
24671 (floatsi<mode>2_lfiwax): Likewise.
24672 (lfiwax): Likewise.
24673 (floatunssi<mode>2_lfiwzx): Likewise.
24674 (lfiwzx): Likewise.
24675 (fix_trunc<mode>_stfiwx): Likewise.
24676 (fixuns_trunc<mode>_stfiwx): Likewise.
24677 (mov<mode>_hardfloat, 32-bit floating point): Likewise.
24678 (mov<move>_hardfloat64, 64-bit floating point): Likewise.
24679 (parity<mode>2_cmpb): Set length/type attr.
24680 (unnamed shift right patterns, mov<mode>_internal2): Change type attr
24681 for 'mr.' to fast_compare.
24682 (bpermd_<mode>): Change type attr to popcnt.
24683 (p8_fmrgow_<mode>): New insns for power8 direct move support.
24684 (p8_mtvsrwz_1): Likewise.
24685 (p8_mtvsrwz_2): Likewise.
24686 (reload_fpr_from_gpr<mode>): Likewise.
24687 (p8_mtvsrd_1): Likewise.
24688 (p8_mtvsrd_2): Likewise.
24689 (p8_xxpermdi_<mode>): Likewise.
24690 (reload_vsx_from_gpr<mode>): Likewise.
24691 (reload_vsx_from_gprsf): Likewise.
24692 (p8_mfvsrd_3_<mode>): LIkewise.
24693 (reload_gpr_from_vsx<mode>): Likewise.
24694 (reload_gpr_from_vsxsf): Likewise.
24695 (p8_mfvsrd_4_disf): Likewise.
24696 (multi-word GPR splits): Do not split direct moves or quad memory
24699 2013-06-10 David Malcolm <dmalcolm@redhat.com>
24701 * tree-into-ssa.c (interesting_blocks): Make static.
24703 2013-06-10 Jakub Jelinek <jakub@redhat.com>
24706 * varasm.c (align_variable): Don't use DATA_ALIGNMENT or
24707 CONSTANT_ALIGNMENT if !decl_binds_to_current_def_p (decl).
24708 Use DATA_ABI_ALIGNMENT for that case instead if defined.
24709 (get_variable_align): New function.
24710 (get_variable_section, emit_bss, emit_common,
24711 assemble_variable_contents, place_block_symbol): Use
24712 get_variable_align instead of DECL_ALIGN.
24713 (assemble_noswitch_variable): Add align argument, use it
24714 instead of DECL_ALIGN.
24715 (assemble_variable): Adjust caller. Use get_variable_align
24716 instead of DECL_ALIGN.
24717 * config/i386/i386.h (DATA_ALIGNMENT): Adjust x86_data_alignment
24719 (DATA_ABI_ALIGNMENT): Define.
24720 * config/i386/i386-protos.h (x86_data_alignment): Adjust prototype.
24721 * config/i386/i386.c (x86_data_alignment): Add opt argument. If
24722 opt is false, only return the psABI mandated alignment increase.
24723 * config/c6x/c6x.h (DATA_ALIGNMENT): Renamed to...
24724 (DATA_ABI_ALIGNMENT): ... this.
24725 * config/mmix/mmix.h (DATA_ALIGNMENT): Renamed to...
24726 (DATA_ABI_ALIGNMENT): ... this.
24727 * config/mmix/mmix.c (mmix_data_alignment): Adjust function comment.
24728 * config/s390/s390.h (DATA_ALIGNMENT): Renamed to...
24729 (DATA_ABI_ALIGNMENT): ... this.
24730 * doc/tm.texi.in (DATA_ABI_ALIGNMENT): Document.
24731 * doc/tm.texi: Regenerated.
24733 2013-06-10 Uros Bizjak <ubizjak@gmail.com>
24735 * config/alpha/alpha.c (alpha_emit_xfloating_compare): Also use
24736 cmp_code to construct REG_EQUAL note.
24738 2013-06-09 Jakub Jelinek <jakub@redhat.com>
24741 * config/i386/i386.md (TARGET_READ_MODIFY_WRITE peepholes): Ensure
24742 that operands[2] doesn't overlap with operands[0].
24744 2013-06-09 David Edelsohn <dje.gcc@gmail.com>
24745 Jan Hubicka <jh@suse.cz>
24747 * config/rs6000/rs6000.c (print_operand, 'z'): Remove historical
24748 hack to mark symbols as used.
24750 2013-06-08 Vladimir Makarov <vmakarov@redhat.com>
24752 PR rtl-optimization/57559
24753 * lra-constraints.c (process_alt_operands): Don't discourage
24754 memory with known offset for offsetable memory constraint.
24755 * lra.c (lra_emit_add): Exchange y and z for 2-op add insn.
24757 2013-06-08 Eric Botcazou <ebotcazou@adacore.com>
24759 * varasm.c (struct oc_local_state): Reorder fields.
24760 (output_constructor_bitfield): Replace OUTER parameter with BIT_OFFSET
24761 and adjust accordingly.
24762 (output_constructor): Reorder initialization code and adjust call to
24763 output_constructor_bitfield.
24765 2013-06-07 Jan Hubicka <jh@suse.cz>
24767 * symtab.c (symtab_resolve_alias): Do not remove alias attribute.
24769 2013-06-07 David Malcolm <dmalcolm@redhat.com>
24771 * tree-object-size.c (unknown): Make const.
24773 2013-06-07 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
24775 * config/s390/s390.md (cpu_facility): Add cpu_zarch.
24776 ("*movmem_short", "*clrmem_short", "*cmpmem_short): Use cpu_zarch
24777 for last alternative in the cpu_facility attribute.
24779 2013-06-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
24782 * config/arm/arm.md (*xordi3_insn): Change to insn_and_split.
24783 (xordi3): Change operand 2 constraint to arm_xordi_operand.
24784 * config/arm/arm.c (const_ok_for_dimode_op): Handle XOR.
24785 * config/arm/constraints.md (Dg): New constraint.
24786 * config/arm/neon.md (xordi3_neon): Remove.
24787 (neon_veor<mode>): Generate xordi3 instead of xordi3_neon.
24788 * config/arm/predicates.md (arm_xordi_operand): New predicate.
24790 2013-06-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
24792 * config/arm/arm.md (anddi3_insn): Remove duplicate alternatives.
24793 Clean up alternatives.
24795 2013-06-07 Alan Modra <amodra@gmail.com>
24797 * config/rs6000/rs6000.c (setup_incoming_varargs): Round up
24800 2013-06-07 Alan Modra <amodra@gmail.com>
24802 * varasm.c (force_const_mem): Assert mode is not VOID or BLK.
24804 2013-06-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
24806 * config/arm/constraints.md (Df): New constraint.
24807 * config/arm/arm.md (iordi3_insn): Use Df constraint instead of De.
24808 Correct length attribute for last two alternatives.
24810 2013-06-07 Alan Modra <amodra@gmail.com>
24812 * config/rs6000/rs6000.c (rs6000_option_override_internal): Don't
24813 override user -mfp-in-toc.
24814 (offsettable_ok_by_alignment): Consider just the current access
24815 rather than the whole object, unless BLKmode. Handle
24816 CONSTANT_POOL_ADDRESS_P constants that lack a decl too.
24817 (use_toc_relative_ref): Allow CONSTANT_POOL_ADDRESS_P constants
24818 for -mcmodel=medium.
24819 * config/rs6000/linux64.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Don't
24820 override user -mfp-in-toc or -msum-in-toc. Default to
24821 -mno-fp-in-toc for -mcmodel=medium.
24823 2013-06-06 DJ Delorie <dj@redhat.com>
24825 * config/rl78/rl78.c (rl78_valid_pointer_mode): New, implements
24826 TARGET_VALID_POINTER_MODE.
24828 2013-06-06 Michael Meissner <meissner@linux.vnet.ibm.com>
24829 Pat Haugen <pthaugen@us.ibm.com>
24830 Peter Bergner <bergner@vnet.ibm.com>
24832 * doc/extend.texi (PowerPC AltiVec/VSX Built-in Functions):
24833 Document new power8 builtins.
24835 * config/rs6000/vector.md (and<mode>3): Add a clobber/scratch of a
24836 condition code register, to allow 128-bit logical operations to be
24837 done in the VSX or GPR registers.
24838 (nor<mode>3): Use the canonical form for nor.
24839 (eqv<mode>3): Add expanders for power8 xxleqv, xxlnand, xxlorc,
24840 vclz*, and vpopcnt* vector instructions.
24841 (nand<mode>3): Likewise.
24842 (orc<mode>3): Likewise.
24843 (clz<mode>2): LIkewise.
24844 (popcount<mode>2): Likewise.
24846 * config/rs6000/predicates.md (int_reg_operand): Rework tests so
24847 that only the GPRs are recognized.
24849 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
24850 support for new power8 builtins.
24852 * config/rs6000/rs6000-builtin.def (xscvspdpn): Add new power8
24854 (xscvdpspn): Likewise.
24860 (vpopcnt): Likewise.
24861 (vpopcntb): Likewise.
24862 (vpopcnth): Likewise.
24863 (vpopcntw): Likewise.
24864 (vpopcntd): Likewise.
24866 (vmrgew): Likewise.
24867 (vmrgow): Likewise.
24869 (eqv_v16qi3): Likewise.
24870 (eqv_v8hi3): Likewise.
24871 (eqv_v4si3): Likewise.
24872 (eqv_v2di3): Likewise.
24873 (eqv_v4sf3): Likewise.
24874 (eqv_v2df3): Likewise.
24876 (nand_v16qi3): Likewise.
24877 (nand_v8hi3): Likewise.
24878 (nand_v4si3): Likewise.
24879 (nand_v2di3): Likewise.
24880 (nand_v4sf3): Likewise.
24881 (nand_v2df3): Likewise.
24883 (orc_v16qi3): Likewise.
24884 (orc_v8hi3): Likewise.
24885 (orc_v4si3): Likewise.
24886 (orc_v2di3): Likewise.
24887 (orc_v4sf3): Likewise.
24888 (orc_v2df3): Likewise.
24890 * config/rs6000/rs6000.c (rs6000_option_override_internal): Only
24891 allow power8 quad mode in 64-bit.
24892 (rs6000_builtin_vectorized_function): Add support to vectorize
24893 ISA 2.07 count leading zeros, population count builtins.
24894 (rs6000_expand_vector_init): On ISA 2.07 use xscvdpspn to form
24895 V4SF vectors instead of xscvdpsp to avoid IEEE related traps.
24896 (builtin_function_type): Add vgbbd builtin function which takes an
24898 (altivec_expand_vec_perm_const): Add support for new power8 merge
24901 * config/rs6000/vsx.md (VSX_L2): New iterator for 128-bit types,
24902 that does not include TImdoe for use with 32-bit.
24903 (UNSPEC_VSX_CVSPDPN): Support for power8 xscvdpspn and xscvspdpn
24905 (UNSPEC_VSX_CVDPSPN): Likewise.
24906 (vsx_xscvdpspn): Likewise.
24907 (vsx_xscvspdpn): Likewise.
24908 (vsx_xscvdpspn_scalar): Likewise.
24909 (vsx_xscvspdpn_directmove): Likewise.
24910 (vsx_and<mode>3): Split logical operations into 32-bit and
24911 64-bit. Add support to do logical operations on TImode as well as
24912 VSX vector types. Allow logical operations to be done in either
24913 VSX registers or in general purpose registers in 64-bit mode. Add
24914 splitters if GPRs were used. For AND, add clobber of CCmode to
24915 allow use of ANDI on GPRs. Rewrite nor to use the canonical RTL
24917 (vsx_and<mode>3_32bit): Likewise.
24918 (vsx_and<mode>3_64bit): Likewise.
24919 (vsx_ior<mode>3): Likewise.
24920 (vsx_ior<mode>3_32bit): Likewise.
24921 (vsx_ior<mode>3_64bit): Likewise.
24922 (vsx_xor<mode>3): Likewise.
24923 (vsx_xor<mode>3_32bit): Likewise.
24924 (vsx_xor<mode>3_64bit): Likewise.
24925 (vsx_one_cmpl<mode>2): Likewise.
24926 (vsx_one_cmpl<mode>2_32bit): Likewise.
24927 (vsx_one_cmpl<mode>2_64bit): Likewise.
24928 (vsx_nor<mode>3): Likewise.
24929 (vsx_nor<mode>3_32bit): Likewise.
24930 (vsx_nor<mode>3_64bit): Likewise.
24931 (vsx_andc<mode>3): Likewise.
24932 (vsx_andc<mode>3_32bit): Likewise.
24933 (vsx_andc<mode>3_64bit): Likewise.
24934 (vsx_eqv<mode>3_32bit): Add support for power8 xxleqv, xxlnand,
24935 and xxlorc instructions.
24936 (vsx_eqv<mode>3_64bit): Likewise.
24937 (vsx_nand<mode>3_32bit): Likewise.
24938 (vsx_nand<mode>3_64bit): Likewise.
24939 (vsx_orc<mode>3_32bit): Likewise.
24940 (vsx_orc<mode>3_64bit): Likewise.
24942 * config/rs6000/rs6000.h (VLOGICAL_REGNO_P): Update comment.
24944 * config/rs6000/altivec.md (UNSPEC_VGBBD): Add power8 vgbbd
24946 (p8_vmrgew): Add power8 vmrgew and vmrgow instructions.
24947 (p8_vmrgow): Likewise.
24948 (altivec_and<mode>3): Add clobber of CCmode to allow AND using
24949 GPRs to be split under VSX.
24950 (p8v_clz<mode>2): Add power8 count leading zero support.
24951 (p8v_popcount<mode>2): Add power8 population count support.
24952 (p8v_vgbbd): Add power8 gather bits by bytes by doubleword
24955 * config/rs6000/rs6000.md (eqv<mode>3): Add support for powerp eqv
24958 * config/rs6000/altivec.h (vec_eqv): Add defines to export power8
24960 (vec_nand): Likewise.
24961 (vec_vclz): Likewise.
24962 (vec_vclzb): Likewise.
24963 (vec_vclzd): Likewise.
24964 (vec_vclzh): Likewise.
24965 (vec_vclzw): Likewise.
24966 (vec_vgbbd): Likewise.
24967 (vec_vmrgew): Likewise.
24968 (vec_vmrgow): Likewise.
24969 (vec_vpopcnt): Likewise.
24970 (vec_vpopcntb): Likewise.
24971 (vec_vpopcntd): Likewise.
24972 (vec_vpopcnth): Likewise.
24973 (vec_vpopcntw): Likewise.
24975 2013-06-06 Vladimir Makarov <vmakarov@redhat.com>
24977 PR rtl-optimization/57468
24978 * config/i386/i386.c (inline_secondary_memory_needed): Ignore
24981 2013-06-06 Vladimir Makarov <vmakarov@redhat.com>
24983 PR rtl-optimization/57459
24984 * lra-constraints.c (update_ebb_live_info): Fix typo for operand
24985 type when setting live regs.
24987 2013-06-06 Vladimir Makarov <vmakarov@redhat.com>
24989 * config/s390/s390.opt (mlra): New option.
24990 * config/s390/s390.c (s390_decompose_address): Check displacement
24991 for all registers for LRA.
24992 (s390_secondary_reload): Don't used secondary reloads for LRA.
24993 (s390_lra_p): New function.
24994 (TARGET_LRA_P): Define.
24995 * config/s390/s390.md (*movmem_short, *clrmem_short): Change value
24996 of attribute cpu_facility to zarch for the last alternative.
24997 (*cmpmem_short): Ditto.
24999 2013-06-06 Eric Botcazou <ebotcazou@adacore.com>
25001 * config/arm/arm.c (arm_r3_live_at_start_p): New predicate.
25002 (arm_compute_static_chain_stack_bytes): Use it. Tidy up.
25003 (arm_expand_prologue): Likewise.
25005 2013-06-06 Teresa Johnson <tejohnson@google.com>
25008 * ifcvt.c (find_if_case_1): Replace BB_COPY_PARTITION with assert
25009 as this is now done by redirect_edge_and_branch_force.
25010 * function.c (thread_prologue_and_epilogue_insns): Insert new bb after
25011 barriers, and fix interaction with splitting.
25012 * emit-rtl.c (try_split): Copy REG_CROSSING_JUMP notes.
25013 * cfgcleanup.c (try_forward_edges): Fix early return value to properly
25014 reflect changes made in the routine.
25015 * bb-reorder.c (emit_barrier_after_bb): Move to cfgrtl.c.
25016 (fix_up_fall_thru_edges): Remove incorrect check for bb layout order
25017 since this is called in cfglayout mode, and replace partition fixup
25018 with assert as that is now done by force_nonfallthru_and_redirect.
25019 (add_reg_crossing_jump_notes): Handle the fact that some jumps may
25020 already be marked with region crossing note.
25021 (insert_section_boundary_note): Make non-static, gate on flag
25022 has_bb_partition, rewrite to also check for multiple partitions.
25023 (rest_of_handle_reorder_blocks): Remove call to
25024 insert_section_boundary_note, now done later during free_cfg.
25025 (duplicate_computed_gotos): Don't duplicate partition crossing edge.
25026 * bb-reorder.h (insert_section_boundary_note): Declare.
25027 * Makefile.in (cfgrtl.o): Depend on bb-reorder.h
25028 * cfgrtl.c (rest_of_pass_free_cfg): If partitions exist
25029 invoke insert_section_boundary_note.
25030 (try_redirect_by_replacing_jump): Remove unnecessary
25031 check for region crossing note.
25032 (fixup_partition_crossing): New function.
25033 (rtl_redirect_edge_and_branch): Fixup partition boundaries.
25034 (emit_barrier_after_bb): Move here from bb-reorder.c, handle insertion
25035 in non-cfglayout mode.
25036 (force_nonfallthru_and_redirect): Fixup partition boundaries,
25037 remove old code that tried to do this. Emit barrier correctly
25038 when we are in cfglayout mode.
25039 (last_bb_in_partition): New function.
25040 (rtl_split_edge): Correctly fixup partition boundaries.
25041 (commit_one_edge_insertion): Remove old code that tried to
25042 fixup region crossing edge since this is now handled in
25043 split_block, and set up insertion point correctly since
25044 block may now end in a jump.
25045 (verify_hot_cold_block_grouping): Guard against checking when not in
25046 linearized RTL mode.
25047 (rtl_verify_edges): Add checks for incorrect/missing REG_CROSSING_JUMP
25049 (rtl_verify_flow_info_1): Move verify_hot_cold_block_grouping to
25050 rtl_verify_flow_info, so not called in cfglayout mode.
25051 (rtl_verify_flow_info): Move verify_hot_cold_block_grouping here.
25052 (fixup_reorder_chain): Remove old code that attempted to fixup region
25053 crossing note as this is now handled in force_nonfallthru_and_redirect.
25054 (duplicate_insn_chain): Don't duplicate switch section notes.
25055 (rtl_can_remove_branch_p): Remove unnecessary check for region crossing
25057 * basic-block.h (emit_barrier_after_bb): Declare.
25059 2013-06-06 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
25061 * config/arm/arm-fixed.md (add<mode>3,usadd<mode>3,ssadd<mode>3,
25062 sub<mode>3, ussub<mode>3, sssub<mode>3, arm_ssatsihi_shift,
25063 arm_usatsihi): Adjust alternatives for arm_restrict_it.
25065 2013-06-06 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
25067 * config/arm/arm-ldmstm.ml: Set "predicable_short_it" to "no"
25069 * config/arm/ldmstm.md: Regenerate.
25071 2013-06-06 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
25073 * config/arm/sync.md (atomic_loaddi_1):
25074 Disable predication for arm_restrict_it.
25075 (arm_load_exclusive<mode>): Likewise.
25076 (arm_load_exclusivesi): Likewise.
25077 (arm_load_exclusivedi): Likewise.
25078 (arm_load_acquire_exclusive<mode>): Likewise.
25079 (arm_load_acquire_exclusivesi): Likewise.
25080 (arm_load_acquire_exclusivedi): Likewise.
25081 (arm_store_exclusive<mode>): Likewise.
25082 (arm_store_exclusive<mode>): Likewise.
25083 (arm_store_release_exclusivedi): Likewise.
25084 (arm_store_release_exclusive<mode>): Likewise.
25086 2013-06-06 Richard Biener <rguenther@suse.de>
25088 * lto-streamer.h (enum LTO_tags): Move LTO_tree_pickle_reference
25090 (lto_tag_is_tree_code_p): Adjust.
25091 (lto_tag_is_gimple_code_p): Likewise.
25092 (lto_gimple_code_to_tag): Likewise.
25093 (lto_tag_to_gimple_code): Likewise.
25094 (lto_tree_code_to_tag): Likewise.
25095 (lto_tag_to_tree_code): Likewise.
25096 * data-streamer.h (streamer_write_hwi_in_range): Use
25097 uhwi streaming to stream the normalized range.
25098 (streamer_read_hwi_in_range): Likewise.
25100 2013-06-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
25102 * config/arm/arm.md (enabled_for_depr_it): New attribute.
25103 (predicable_short_it): Likewise.
25104 (predicated): Likewise.
25105 (enabled): Handle above.
25106 (define_cond_exec): Set predicated attribute to yes.
25108 2013-06-05 Mike Stump <mikestump@comcast.net>
25110 * gdbinit.in (__FUNCTION__): Add.
25112 2013-06-05 Uros Bizjak <ubizjak@gmail.com>
25114 * config/alpha/alpha.c (alpha_emit_conditional_move): Swap all
25115 GE, GT, GEU and GTU compares, modulo DImode compares with zero.
25117 2013-06-05 Jan Hubicka <jh@suse.cz>
25119 * varasm.c (mark_decl_referenced): Revert the removal until targets
25122 2013-06-05 David Edelsohn <dje.gcc@gmail.com>
25124 * config/rs6000/rs6000.c (print_operand, 'z'): Use DECL_PRESERVE_P
25125 instead of mark_decl_referenced.
25127 2013-06-05 Jan Hubicka <jh@suse.cz>
25129 * cgraph.c (cgraph_remove_node): Clear forced_by_abi.
25130 (cgraph_node_cannot_be_local_p_1): Honnor symbol.forced_by_abi
25131 and symtab_used_from_object_file_p.
25132 (cgraph_make_node_local_1): Clear forced_by_abi.
25133 (cgraph_can_remove_if_no_direct_calls_and): Use forced_by_abi
25134 * cgraph.h (symtab_node_base): Add forced_by_abi.
25135 (decide_is_variable_needed): Remove.
25136 (varpool_can_remove_if_no_refs): Honnor symbol.forced_by_abi.
25137 * cgraphunit.c (cgraph_decide_is_function_needed): Rename to ..
25138 (decide_is_symbol_needed): ... this one; handle symbols in general;
25139 always analyze virtuals; honnor forced_by_abi.
25140 (cgraph_finalize_function): Update.
25141 (varpool_finalize_decl): Update.
25142 (symbol_defined_and_needed): Remove.
25143 (analyze_functions): Update.
25144 * lto-cgraph.c (lto_output_node, lto_output_varpool_node,
25145 output_refs, input_overwrite_node): Handle forced_by_abi.
25146 * ipa.c (cgraph_address_taken_from_non_vtable_p): Rename to ...
25147 (address_taken_from_non_vtable_p): ... this one.
25148 (comdat_can_be_unshared_p_1): New function.
25149 (cgraph_comdat_can_be_unshared_p): Rename to ...
25150 (comdat_can_be_unshared_p): ... this one; handle symbols in general.
25151 (varpool_externally_visible_p): Use comdat_can_be_unshared_p.
25152 (function_and_variable_visibility): Clear forced_by_abi as needed.
25153 * trans-mem.c (ipa_tm_mark_forced_by_abi_node): New functoin.
25154 (ipa_tm_create_version_alias, ipa_tm_create_version): Update.
25155 * symtab.c (dump_symtab_base): Dump forced_by_abi.
25156 * varpool.c (decide_is_variable_needed): Remove.
25158 2013-06-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
25160 * config/arm/arm.c (MAX_INSN_PER_IT_BLOCK): New macro.
25161 (arm_option_override): Override arm_restrict_it where appropriate.
25162 (thumb2_final_prescan_insn): Use MAX_INSN_PER_IT_BLOCK.
25163 * config/arm/arm.opt (mrestrict-it): New command-line option.
25164 * doc/invoke.texi: Document -mrestrict-it.
25166 2013-06-05 David Malcolm <dmalcolm@redhat.com>
25168 * tsan.c (tsan_atomic_table): Make const.
25170 2013-06-05 Richard Biener <rguenther@suse.de>
25172 * tree-streamer.c (streamer_tree_cache_insert_1): Update the
25173 index associated with the tree we are supposed to replace.
25174 * tree-streamer-out.c (pack_ts_base_value_fields): Output
25175 TREE_ASM_WRITTEN as zero for everything but SSA names.
25177 2013-06-05 David Malcolm <dmalcolm@redhat.com>
25179 * tree-ssa-structalias.c (call_stmt_vars): Make static.
25181 2013-06-04 Jan Hubicka <jh@suse.cz>
25183 * lto-cgraph.c (get_alias_symbol): Remove weakref sanity check.
25184 (input_node, input_varpool_node): Handle correctly external same
25186 * ipa.c (symtab_remove_unreachable_nodes): Do not remove external
25187 nodes at ltrans stage.
25189 2013-06-04 Jan Hubicka <jh@suse.cz>
25191 * ipa-inline.c (update_caller_keys): Fix availability test.
25192 (update_callee_keys): Likewise.
25193 * symtab.c (symtab_alias_ultimate_target): Make availaiblity logic
25194 to follow ELF standard.
25196 2013-06-04 Jürgen Urban <JuergenUrban@gmx.de>
25198 * config.gcc (mipsr5900-*-elf*, mipsr5900el-*-elf*, mips64r5900-*-elf*)
25199 (mips64r5900el-*-elf*): New configurations.
25200 * config/mips/mips-cpus.def (r5900): New processor.
25201 * config/mips/mips-tables.opt: Regenerate.
25202 * config/mips/mips.c (mips_rtx_cost_data): Add an R5900 entry.
25203 (mips_issue_rate): Handle PROCESSOR_R5900.
25204 (mips_reorg_process_insns): Force reorder mode for the R5900.
25205 * config/mips/mips.h (TARGET_MIPS5900): Define.
25206 (ISA_HAS_CONDMOVE, ISA_HAS_PREFETCH, ISA_HAS_HILO_INTERLOCKS): Include
25208 (ISA_HAS_LOAD_DELAY, ISA_HAS_XFER_DELAY, ISA_HAS_FCMP_DELAY): Exclude
25210 * config/mips/mips.md (processor): Add r5900.
25211 (MOVECC): Disallow CCmode conditions for TARGET_MIPS5900.
25213 2013-06-04 Ian Bolton <ian.bolton@arm.com>
25215 * config/aarch64/aarch64.md (*mov<mode>_aarch64): Call
25216 into function to generate MOVI instruction.
25217 * config/aarch64/aarch64.c (aarch64_simd_container_mode): New function.
25218 (aarch64_preferred_simd_mode): Turn into wrapper.
25219 (aarch64_output_scalar_simd_mov_immediate): New function.
25220 * config/aarch64/aarch64-protos.h: Add prototype for above.
25222 2013-06-04 Ian Bolton <ian.bolton@arm.com>
25224 * config/aarch64/aarch64.c (simd_immediate_info): Remove
25225 element_char member.
25226 (sizetochar): Return signed char.
25227 (aarch64_simd_valid_immediate): Remove elchar and other
25228 unnecessary variables.
25229 (aarch64_output_simd_mov_immediate): Take rtx instead of &rtx.
25230 Calculate element_char as required.
25231 * config/aarch64/aarch64-protos.h: Update and move prototype
25232 for aarch64_output_simd_mov_immediate.
25233 * config/aarch64/aarch64-simd.md (*aarch64_simd_mov<mode>):
25236 2013-06-04 Ian Bolton <ian.bolton@arm.com>
25238 * config/aarch64/aarch64.c (simd_immediate_info): Struct to hold
25239 information completed by aarch64_simd_valid_immediate.
25240 (aarch64_legitimate_constant_p): Update arguments.
25241 (aarch64_simd_valid_immediate): Work with struct rather than many
25243 (aarch64_simd_scalar_immediate_valid_for_move): Update arguments.
25244 (aarch64_simd_make_constant): Update arguments.
25245 (aarch64_output_simd_mov_immediate): Work with struct rather than
25246 many pointers. Output immediate directly rather than as operand.
25247 * config/aarch64/aarch64-protos.h (aarch64_simd_valid_immediate):
25249 * config/aarch64/constraints.md (Dn): Update arguments.
25251 2013-06-04 Ian Bolton <ian.bolton@arm.com>
25253 * config/aarch64/aarch64.c (aarch64_simd_valid_immediate): No
25255 (aarch64_simd_immediate_valid_for_move): Remove.
25256 (aarch64_simd_scalar_immediate_valid_for_move): Update call.
25257 (aarch64_simd_make_constant): Update call.
25258 (aarch64_output_simd_mov_immediate): Update call.
25259 * config/aarch64/aarch64-protos.h (aarch64_simd_valid_immediate):
25261 * config/aarch64/constraints.md (Dn): Update call.
25263 2013-06-04 Ian Bolton <ian.bolton@arm.com>
25265 * config/aarch64/aarch64.c (aarch64_simd_valid_immediate): Change
25266 return type to bool for prototype.
25267 (aarch64_legitimate_constant_p): Check for true instead of not -1.
25268 (aarch64_simd_valid_immediate): Fix up each return to return a bool.
25269 (aarch64_simd_immediate_valid_for_move): Update retval for bool.
25271 2013-06-04 Catherine Moore <clm@codesourcery.com>
25273 * config/mips/mips.opt (meva): New.
25274 * config/mips/mips.h (TARGET_CPU_CPP_BUILTINS): Define __mips_eva.
25275 (ASM_SPEC): Handle -meva.
25276 * doc/invoke.texi (meva): Document.
25278 2013-06-04 Alan Modra <amodra@gmail.com>
25280 * config/rs6000/rs6000.c (output_toc): Correct little-endian float
25283 2013-06-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
25285 * rtl.def: Add extra fourth optional field to define_cond_exec.
25286 * gensupport.c (process_one_cond_exec): Process attributes from
25288 * doc/md.texi: Document fourth field in define_cond_exec.
25290 2013-06-04 Eric Botcazou <ebotcazou@adacore.com>
25292 * expmed.c (extract_bit_field_1): In the larger-than-a-word case, factor
25293 out the processing order as in store_bit_field_1.
25295 2013-06-04 Jan Hubicka <jh@suse.cz>
25297 PR middle-end/57500
25298 * cgraphunit.c (cgraph_process_same_body_aliases): Create
25299 non-VAR_DECL node if it does not exist yet.
25301 2013-06-03 Richard Sandiford <rdsandiford@googlemail.com>
25303 * config.gcc (mipsisa64sr71k-*-elf*, mipsisa64sb1-*-elf*)
25304 (mipsisa64sb1el-*-elf*, mips64-*-elf*, mips64el-*-elf*)
25305 (mips64orion-*-elf*, mips64orionel-*-elf*): Remove
25306 target_cpu_default setting.
25308 2013-06-03 Teresa Johnson <tejohnson@google.com>
25310 * dumpfile.c (opt_info_switch_p): Change -fopt-info
25311 default to -fopt-info=optimized instead of all.
25312 * doc/invoke.texi: Ditto.
25313 * tree-vectorizer.c (vectorize_loops): Emit loop vectorization
25314 success under MSG_OPTIMIZED_LOCATIONS, and use dump_printf_loc.
25315 (execute_vect_slp): Emit BB vectorization success under
25316 MSG_OPTIMIZED_LOCATIONS.
25317 * tree-vect-slp.c (vect_slp_transform_bb): Change
25318 MSG_OPTIMIZED_LOCATIONS to MSG_NOTE.
25319 * tree-vect-loop.c (vect_transform_loop): Ditto.
25321 2013-06-03 Jason Merrill <jason@redhat.com>
25324 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
25325 Use TARGET_EXPR for C++.
25327 2013-06-03 Jakub Jelinek <jakub@redhat.com>
25329 PR rtl-optimization/57268
25330 * sched-deps.c (sched_analyze_2): Don't flush_pending_lists
25331 if DEBUG_INSN_P (insn).
25334 2013-05-31 Dinar Temirbulatov <dinar@kugelworks.com>
25336 PR rtl-optimization/57268
25337 * sched-deps.c (sched_analyze_2): Flush dependence lists if
25338 the sum of the read and write lists exceeds MAX_PENDING_LIST_LENGTH.
25340 2013-06-03 Yuri Rumyantsev <yuri.s.rumyantsev@intel.com>
25342 * config/i386/i386.c (ix86_lea_outperforms): Fix formatting.
25343 (ix86_avoid_lea_for_addr): Likewise.
25344 (exact_dependency_1): Likewise.
25345 (ix86_adjust_cost): Likewise.
25346 (swap_top_of_ready_list): Fix formatting and !reload_completed check
25348 (do_reorder_for_imul): Fix typo, formatting and
25349 !reload_completed check removed.
25350 (ix86_sched_reorder): Fix typo and formatting.
25351 (fold_builtin_cpu): Move M_INTEL_SLM at the end of processor types
25354 2013-06-03 Sofiane Naci <sofiane.naci@arm.com>
25356 * config/aarch64/aarch64.md (*movdi_aarch64): Define "simd" attribute.
25358 2013-06-03 Eric Botcazou <ebotcazou@adacore.com>
25360 * varasm.c (output_constant) <CONSTRUCTOR>: Minor formatting tweak.
25361 <STRING_CST>: Likewise.
25362 <VECTOR_CST>: Likewise.
25364 2013-06-01 Janus Weil <janus@gcc.gnu.org>
25365 Mikael Morin <mikael@gcc.gnu.org>
25367 * configure.ac: Add AC_HEADER_TIOCGWINSZ macro.
25368 * config.in: Regenerated.
25369 * configure: Regenerated.
25371 2013-06-01 Jan Hubicka <jh@suse.cz>
25373 PR middle-end/57366
25374 * cgraphunit.c (compile): When weakref is not supported,
25375 set up transparent aliases before final output pass.
25376 * varasm.c (assemble_alias): Do not try to do it here.
25378 2013-06-01 Jan Hubicka <jh@suse.cz>
25380 PR middle-end/57467
25381 * passes.c (for_per_function): Skip unanalyzed functions.
25383 2013-06-01 Jan Hubicka <jh@suse.cz>
25385 * lto-symtab.c (lto_symtab_merge_cgraph_nodes_1): Rename to ...
25386 (lto_symtab_merge_symbols_1): ... this one.
25387 (lto_symtab_merge_cgraph_nodes): Rename to ...
25388 (lto_symtab_merge_symbols): ... this one; simplify.
25389 * cgraph.c (same_body_aliases_done): Rename to ...
25390 (cpp_implicit_aliases_done): ... this one.
25391 (cgraph_create_function_alias): Update.
25392 (cgraph_same_body_alias): Update.
25393 (dump_cgraph_node): Remove alias dumping; simplify thunk dumping.
25394 (verify_edge_corresponds_to_fndecl): Simplify.
25395 * cgraph.h (symtab_node_base): Add cpp_implicit_alias, alias_target.
25396 (cgraph_node): Remove same_body_alias.
25397 (varpool_node): Remove alias_of and extra_name_alias.
25398 (same_body_aliases_done): Rename to ..
25399 (cpp_implicit_aliases_done): ... this one.
25400 (symtab_alias_ultimate_target): Add default parameter.
25401 (symtab_resolve_alias): New function.
25402 (fixup_same_cpp_alias_visibility): Declare.
25403 (cgraph_function_node): Add default parameter.
25404 (cgraph_node_asm_name): Likewise.
25405 (cgraph_function_or_thunk_node): Add default parameter; do
25406 not ICE when it is NULL.
25407 (varpool_variable_node): Likewise.
25408 * tree-emutls.c (create_emultls_var): Update.
25409 (ipa_lower_emutls): Update.
25410 * cgraphunit.c (cgraph_decide_is_function_needed): Update.
25411 (cgraph_reset_node): Reset alias info.
25412 (cgraph_finalize_function): Update.
25413 (fixup_same_cpp_alias_visibility): Move to symtab.c.
25414 (analyze_function): Simplify.
25415 (cgraph_process_same_body_aliases): Simplify.
25416 (analyze_functions): Fixup same body aliases.
25417 (handle_alias_pairs): Simplify.
25418 (assemble_thunk): Update.
25419 (assemble_thunks_and_aliases): Update.
25420 (output_weakrefs): Rewrite.
25421 * lto-cgraph.c (lto_output_node): Rewrite alias handling.
25422 (lto_output_varpool_node): Likewise.
25423 (compute_ltrans_boundary): Remve assert.
25424 (get_alias_symbol): New functoin.
25425 (input_node): Rewrite alias handling.
25426 (input_varpool_node): Likewise.
25427 * ipa-pure-const.c (propagate_pure_const): Fix formating.
25428 * ipa.c (process_references): Handle weakrefs correctly.
25429 (symtab_remove_unreachable_nodes): Likewise.
25430 * trans-mem.c (get_cg_data): Update.
25431 (ipa_tm_create_version_alias): Update.
25432 (ipa_tm_execute): Update.
25433 * symtab.c (dump_symtab_base): Dump aliases.
25434 (verify_symtab_base): Verify aliases.
25435 (symtab_node_availability): New function.
25436 (symtab_alias_ultimate_target): Simplify.
25437 (fixup_same_cpp_alias_visibility): Move here from cgraphunit.c;
25438 handle all the fixup cases.
25439 (symtab_resolve_alias): New function.
25440 * passes.c (ipa_write_summaries): Handle weakrefs.
25441 * varpool.c (varpool_analyze_node): Simplify.
25442 (assemble_aliases): Update.
25443 (varpool_create_variable_alias): Simplify.
25444 (varpool_extra_name_alias): Simplify.
25445 * lto-streamer.h (lto_symtab_merge_cgraph_nodes): Rename to...
25446 (lto_symtab_merge_symbols): ... this one.
25448 2013-06-01 Dinar Temirbulatov <dinar@kugelworks.com>
25451 PR rtl-optimization/57268
25452 * sched-deps.c (sched_analyze_2): Flush dependence lists if
25453 the sum of the read and write lists exceeds MAX_PENDING_LIST_LENGTH.
25455 2013-06-01 Tobias Burnus <burnus@net-b.de>
25457 Partially reverted:
25458 2013-05-31 Tobias Burnus <burnus@net-b.de>
25460 PR middle-end/57073
25461 * tree-ssa-math-opts.c (execute_cse_sincos): Move check
25464 2013-05-31 Dinar Temirbulatov <dinar@kugelworks.com>
25466 PR rtl-optimization/57268
25467 * sched-deps.c (sched_analyze_2): Flush dependence lists if
25468 the sum of the read and write lists exceeds MAX_PENDING_LIST_LENGTH.
25470 2013-05-31 Eric Botcazou <ebotcazou@adacore.com>
25472 * config/rs6000/predicates.md (rs6000_cbranch_operator): Accept some
25473 unordered comparison operators when -fno-trapping-math is in effect
25475 * config/rs6000/rs6000.c (rs6000_generate_compare): Remove dead code
25476 and implement unordered comparison operators properly on the e500.
25478 2013-05-31 Eric Botcazou <ebotcazou@adacore.com>
25480 * simplify-rtx.c (simplify_byte_swapping_operation): Use proper macro
25481 for constant scalar integers.
25482 (simplify_relational_operation_1): Likewise.
25484 2013-05-31 Segher Boessenkool <segher@kernel.crashing.org>
25486 * config/rs6000/rs6000-opts.h (enum processor_type): Reorder.
25487 * config/rs6000/rs6000.md (cpu): Reorder. Split long line.
25490 2013-05-31 Yuri Rumyantsev <yuri.s.rumyantsev@intel.com>
25491 Igor Zamyatin <igor.zamyatin@intel.com>
25493 Silvermont (SLM) architecture performance tuning.
25494 * config/i386/i386.h (enum ix86_tune_indices): Add
25495 X86_TUNE_SPLIT_MEM_OPND_FOR_FP_CONVERTS.
25496 (TARGET_SPLIT_MEM_OPND_FOR_FP_CONVERTS): New define.
25498 * config/i386/i386.c (initial_ix86_tune_features)
25499 <X86_TUNE_SPLIT_MEM_OPND_FOR_FP_CONVERTS>: Initialize.
25500 (ix86_lea_outperforms): Handle Silvermont tuning.
25501 (ix86_avoid_lea_for_add): Add new argument to ix86_lea_outperforms
25503 (ix86_use_lea_for_mov): Likewise.
25504 (ix86_avoid_lea_for_addr): Likewise.
25505 (ix86_lea_for_add_ok): Likewise.
25506 (exact_dependency_1): New function.
25507 (exact_store_load_dependency): Likewise.
25508 (ix86_adjust_cost): Handle Silvermont tuning.
25509 (do_reoder_for_imul): Likewise.
25510 (swap_top_of_ready_list): New function.
25511 (ix86_sched_reorder): Changed to handle Silvermont tuning.
25513 * config/i386/i386.md (peepholes that split memory operand in fp
25516 2013-05-31 Marcus Shawcroft <marcus.shawcroft@arm.com>
25518 * config/aarch64/aarch64.c (aarch64_load_symref_appropriately):
25519 Remove un-necessary braces.
25521 2013-05-31 Marcus Shawcroft <marcus.shawcroft@arm.com>
25523 * config/aarch64/aarch64.c (aarch64_classify_symbol):
25524 Use SYMBOL_TINY_ABSOLUTE for AARCH64_CMODEL_TINY_PIC.
25526 2013-05-31 Tobias Burnus <burnus@net-b.de>
25528 PR middle-end/57073
25529 * tree-ssa-math-opts.c (execute_cse_sincos): Move check further up.
25531 2013-05-31 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
25534 * config/arm/arm.c (const_ok_for_dimode_op): Handle IOR.
25535 * config/arm/arm.md (*iordi3_insn): Change to insn_and_split.
25536 * config/arm/neon.md (iordi3_neon): Remove.
25537 (neon_vorr<mode>): Generate iordi3 instead of iordi3_neon.
25538 * config/arm/predicates.md (imm_for_neon_logic_operand):
25539 Move to earlier in the file.
25540 (neon_logic_op2): Likewise.
25541 (arm_iordi_operand_neon): New predicate.
25543 2013-05-31 Richard Biener <rguenther@suse.de>
25545 PR tree-optimization/57478
25546 PR tree-optimization/57453
25547 * tree-vect-slp.c (vect_bb_slp_scalar_cost): Uses in PHI nodes
25550 2013-05-31 Kaushik Phatak <kaushik.phatak@kpitcummins.com>
25552 * config/rl78/rl78.md (mulqi3,mulhi3): New define_expands.
25553 (*mulqi3_rl78,*mulhi3_rl78,*mulhi3_g13): New define_insns.
25555 2013-05-30 Tobias Burnus <burnus@net-b.de>
25556 Thomas Koenig <tkoenig@gcc.gnu.org>
25558 PR middle-end/57073
25559 * tree-ssa-math-opts.c (execute_cse_sincos): Optimize
25560 powi (-1.0, k) to (k & 1) ? -1.0 : 1.0.
25562 2013-05-30 Steven Bosscher <steven@gcc.gnu.org>
25564 * rtlanal.c (tablejump_p): Expect table and label to be adjacent.
25566 2013-05-30 Vladimir Makarov <vmakarov@redhat.com>
25568 * target.def (register_usage_leveling_p): New hook.
25569 * targhooks.c (default_register_usage_leveling_p): New.
25570 * targhooks.h (default_register_usage_leveling_p): New prototype.
25571 * lra-assigns.c (register_usage_leveling_p): Use the hook.
25572 * doc/tm.texi.in (TARGET_REGISTER_USAGE_LEVELING_P): New hook.
25573 * doc/tm.texi: Update.
25574 * config/i386/i386.c (TARGET_REGISTER_USAGE_LEVELING_P): Define.
25576 2013-05-30 Ian Bolton <ian.bolton@arm.com>
25578 * config/aarch64/aarch64.md (insv<mode>): New define_expand.
25579 (*insv_reg<mode>): New define_insn.
25581 2013-05-30 Joern Rennecke <joern.rennecke@embecosm.com>
25583 PR rtl-optimization/57439
25584 * postreload.c (move2add_valid_value_p): Check that we have
25585 a zero subreg_regno_offset when accessing the register in
25586 the requested mode.
25588 2013-05-30 Yuri Rumyantsev <yuri.s.rumyantsev@intel.com>
25589 Igor Zamyatin <igor.zamyatin@intel.com>
25591 Silvermont (SLM) architecture pipeline model, tuning and
25593 * config.gcc: Add slm config options and target.
25595 * config/i386/slm.md: New.
25597 * config/i386/driver-i386.c (host_detect_local_cpu): Check movbe.
25599 * config/i386/i386-c.c (ix86_target_macros_internal): New case
25601 (ix86_target_macros_internal): Likewise.
25603 * config/i386/i386.c (slm_cost): New cost.
25604 (m_SLM): New macro flag.
25605 (initial_ix86_tune_features): Set m_SLM.
25606 (x86_accumulate_outgoing_args): Likewise.
25607 (x86_arch_always_fancy_math_387): Likewise.
25608 (processor_target_table): Add slm cost.
25609 (cpu_names): Add slm cpu name.
25610 (x86_option_override_internal): Set SLM ISA.
25611 (ix86_issue_rate): New case PROCESSOR_SLM.
25612 (ia32_multipass_dfa_lookahead): Likewise.
25613 (fold_builtin_cpu): Add slm.
25615 * config/i386/i386.h (TARGET_SLM): New target macro.
25616 (target_cpu_default): Add TARGET_CPU_DEFAULT_slm.
25617 (processor_type): Add PROCESSOR_SLM.
25619 * config/i386/i386.md (cpu): Add new value "slm".
25620 (slm.md): Include slm.md.
25622 2013-05-30 Bernd Schmidt <bernds@codesourcery.com>
25623 Zhenqiang Chen <zhenqiang.chen@linaro.org>
25625 * config/arm/arm-protos.h: Add and update function protos.
25626 * config/arm/arm.c (use_simple_return_p): New added.
25627 (thumb2_expand_return): Check simple_return flag.
25628 * config/arm/arm.md: Add simple_return and conditional simple_return.
25629 * config/arm/iterators.md: Add iterator for return and simple_return.
25631 2013-05-30 Zhenqiang Chen <zhenqiang.chen@linaro.org>
25633 * config/arm/arm.c (arm_add_cfa_adjust_cfa_note): New added.
25634 (arm_emit_multi_reg_pop): Add REG_CFA_ADJUST_CFA notes.
25635 (arm_emit_vfp_multi_reg_pop): Likewise.
25636 (thumb2_emit_ldrd_pop): Likewise.
25637 (arm_expand_epilogue): Add misc REG_CFA notes.
25638 (arm_unwind_emit): Skip REG_CFA_ADJUST_CFA and REG_CFA_RESTORE.
25640 2013-05-29 Lawrence Crowl <crowl@google.com>
25642 * config/arm/t-arm: Update for below.
25644 * config/arm/arm.c (arm_libcall_uses_aapcs_base::libcall_htab):
25645 Change type to hash_table. Update dependent calls and types.
25647 * config/i386/t-cygming: Update for below.
25649 * config/i386/t-interix: Update for below.
25651 * config/i386/winnt.c (i386_pe_section_type_flags::htab):
25652 Change type to hash_table. Update dependent calls and types.
25653 (i386_find_on_wrapper_list::wrappers): Likewise.
25655 * config/ia64/t-ia64: Update for below.
25657 * config/ia64/ia64.c (bundle_state_table):
25658 Change type to hash_table. Update dependent calls and types.
25660 * config/mips/mips.c (mips_reorg_process_insns::htab):
25661 Change type to hash_table. Update dependent calls and types.
25663 * config/sol2.c (solaris_comdat_htab):
25664 Change type to hash_table. Update dependent calls and types.
25666 * config/t-sol2: Update for above.
25668 2013-05-29 Teresa Johnson <tejohnson@google.com>
25670 * passes.c (dump_passes): Use FOR_EACH_FUNCTION since
25671 functions are not yet marked as defined.
25673 2013-05-29 Michael Meissner <meissner@linux.vnet.ibm.com>
25674 Pat Haugen <pthaugen@us.ibm.com>
25675 Peter Bergner <bergner@vnet.ibm.com>
25677 * config/rs6000/vector.md (VEC_I): Add support for new power8 V2DI
25681 (vrotl<mode>3): Likewise.
25682 (vashl<mode>3): Likewise.
25683 (vlshr<mode>3): Likewise.
25684 (vashr<mode>3): Likewise.
25686 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
25687 support for power8 V2DI builtins.
25689 * config/rs6000/rs6000-builtin.def (abs_v2di): Add support for
25690 power8 V2DI builtins.
25691 (vupkhsw): Likewise.
25692 (vupklsw): Likewise.
25693 (vaddudm): Likewise.
25694 (vminsd): Likewise.
25695 (vmaxsd): Likewise.
25696 (vminud): Likewise.
25697 (vmaxud): Likewise.
25698 (vpkudum): Likewise.
25699 (vpksdss): Likewise.
25700 (vpkudus): Likewise.
25701 (vpksdus): Likewise.
25706 (vsubudm): Likewise.
25707 (vcmpequd): Likewise.
25708 (vcmpgtsd): Likewise.
25709 (vcmpgtud): Likewise.
25710 (vcmpequd_p): Likewise.
25711 (vcmpgtsd_p): Likewise.
25712 (vcmpgtud_p): Likewise.
25713 (vupkhsw): Likewise.
25714 (vupklsw): Likewise.
25715 (vaddudm): Likewise.
25716 (vmaxsd): Likewise.
25717 (vmaxud): Likewise.
25718 (vminsd): Likewise.
25719 (vminud): Likewise.
25720 (vpksdss): Likewise.
25721 (vpksdus): Likewise.
25722 (vpkudum): Likewise.
25723 (vpkudus): Likewise.
25728 (vsubudm): Likewise.
25730 * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Add
25731 support for power8 V2DI instructions.
25733 * config/rs6000/altivec.md (UNSPEC_VPKUHUM): Add support for
25734 power8 V2DI instructions. Combine pack and unpack insns to use an
25735 iterator for each mode. Check whether a particular mode supports
25736 Altivec instructions instead of just checking TARGET_ALTIVEC.
25737 (UNSPEC_VPKUWUM): Likewise.
25738 (UNSPEC_VPKSHSS): Likewise.
25739 (UNSPEC_VPKSWSS): Likewise.
25740 (UNSPEC_VPKUHUS): Likewise.
25741 (UNSPEC_VPKSHUS): Likewise.
25742 (UNSPEC_VPKUWUS): Likewise.
25743 (UNSPEC_VPKSWUS): Likewise.
25744 (UNSPEC_VPACK_SIGN_SIGN_SAT): Likewise.
25745 (UNSPEC_VPACK_SIGN_UNS_SAT): Likewise.
25746 (UNSPEC_VPACK_UNS_UNS_SAT): Likewise.
25747 (UNSPEC_VPACK_UNS_UNS_MOD): Likewise.
25748 (UNSPEC_VUPKHSB): Likewise.
25749 (UNSPEC_VUNPACK_HI_SIGN): Likewise.
25750 (UNSPEC_VUNPACK_LO_SIGN): Likewise.
25751 (UNSPEC_VUPKHSH): Likewise.
25752 (UNSPEC_VUPKLSB): Likewise.
25753 (UNSPEC_VUPKLSH): Likewise.
25755 (VI_char): Likewise.
25756 (VI_scalar): Likewise.
25757 (VI_unit): Likewise.
25759 (VP_small): Likewise.
25760 (VP_small_lc): Likewise.
25761 (VU_char): Likewise.
25762 (add<mode>3): Likewise.
25763 (altivec_vaddcuw): Likewise.
25764 (altivec_vaddu<VI_char>s): Likewise.
25765 (altivec_vadds<VI_char>s): Likewise.
25766 (sub<mode>3): Likewise.
25767 (altivec_vsubcuw): Likewise.
25768 (altivec_vsubu<VI_char>s): Likewise.
25769 (altivec_vsubs<VI_char>s): Likewise.
25770 (altivec_vavgs<VI_char>): Likewise.
25771 (altivec_vcmpbfp): Likewise.
25772 (altivec_eq<mode>): Likewise.
25773 (altivec_gt<mode>): Likewise.
25774 (altivec_gtu<mode>): Likewise.
25775 (umax<mode>3): Likewise.
25776 (smax<mode>3): Likewise.
25777 (umin<mode>3): Likewise.
25778 (smin<mode>3): Likewise.
25779 (altivec_vpkuhum): Likewise.
25780 (altivec_vpkuwum): Likewise.
25781 (altivec_vpkshss): Likewise.
25782 (altivec_vpkswss): Likewise.
25783 (altivec_vpkuhus): Likewise.
25784 (altivec_vpkshus): Likewise.
25785 (altivec_vpkuwus): Likewise.
25786 (altivec_vpkswus): Likewise.
25787 (altivec_vpks<VI_char>ss): Likewise.
25788 (altivec_vpks<VI_char>us): Likewise.
25789 (altivec_vpku<VI_char>us): Likewise.
25790 (altivec_vpku<VI_char>um): Likewise.
25791 (altivec_vrl<VI_char>): Likewise.
25792 (altivec_vsl<VI_char>): Likewise.
25793 (altivec_vsr<VI_char>): Likewise.
25794 (altivec_vsra<VI_char>): Likewise.
25795 (altivec_vsldoi_<mode>): Likewise.
25796 (altivec_vupkhsb): Likewise.
25797 (altivec_vupkhs<VU_char>): Likewise.
25798 (altivec_vupkls<VU_char>): Likewise.
25799 (altivec_vupkhsh): Likewise.
25800 (altivec_vupklsb): Likewise.
25801 (altivec_vupklsh): Likewise.
25802 (altivec_vcmpequ<VI_char>_p): Likewise.
25803 (altivec_vcmpgts<VI_char>_p): Likewise.
25804 (altivec_vcmpgtu<VI_char>_p): Likewise.
25805 (abs<mode>2): Likewise.
25806 (vec_unpacks_hi_v16qi): Likewise.
25807 (vec_unpacks_hi_v8hi): Likewise.
25808 (vec_unpacks_lo_v16qi): Likewise.
25809 (vec_unpacks_hi_<VP_small_lc>): Likewise.
25810 (vec_unpacks_lo_v8hi): Likewise.
25811 (vec_unpacks_lo_<VP_small_lc>): Likewise.
25812 (vec_pack_trunc_v8h): Likewise.
25813 (vec_pack_trunc_v4si): Likewise.
25814 (vec_pack_trunc_<mode>): Likewise.
25816 * config/rs6000/altivec.h (vec_vaddudm): Add defines for power8
25818 (vec_vmaxsd): Likewise.
25819 (vec_vmaxud): Likewise.
25820 (vec_vminsd): Likewise.
25821 (vec_vminud): Likewise.
25822 (vec_vpksdss): Likewise.
25823 (vec_vpksdus): Likewise.
25824 (vec_vpkudum): Likewise.
25825 (vec_vpkudus): Likewise.
25826 (vec_vrld): Likewise.
25827 (vec_vsld): Likewise.
25828 (vec_vsrad): Likewise.
25829 (vec_vsrd): Likewise.
25830 (vec_vsubudm): Likewise.
25831 (vec_vupkhsw): Likewise.
25832 (vec_vupklsw): Likewise.
25834 2013-05-29 Jan Hubicka <jh@suse.cz>
25836 * cgraph.h (symtab_node_base): Add definition, alias and analyzed
25837 flags; reorder rest of fields in more consistent way.
25838 (varpool_node): Remove analyzed, finalized and alias.
25839 (cgraph_ndoe): Likewise.
25840 (symtab_alias_ultimate_target): New function.
25841 (cgraph_function_node): Move offline.
25842 (cgraph_reset_node): Declare.
25843 (cgraph_comdat_can_be_unshared_p): Remove.
25844 (varpool_remove_initializer): Declare.
25845 (varpool_first_defined_variable, varpool_next_defined_variable
25846 cgraph_first_defined_function, cgraph_next_defined_function): Update.
25847 (cgraph_function_with_gimple_body_p): Update.
25848 (varpool_all_refs_explicit_p): Update.
25849 (symtab_alias_target): New function.
25850 (cgraph_alias_aliased_node, varpool_alias_aliased_node): Rename to ...
25851 (cgraph_alias_target, varpool_alias_target): .. this one; simplify.
25852 (cgraph_function_or_thunk_node): Simplify using
25853 symtab_alias_ultimate_target.
25854 (varpool_variable_node): Likewise.
25855 * cgraph.c (cgraph_create_function_alias): Update.
25856 (cgraph_add_thunk): Update.
25857 (cgraph_remove_node): Update.
25858 (dump_cgraph_node): Do not dump removed flags.
25859 (cgraph_function_body_availability): Update.
25860 (cgraph_propagate_frequency): Update.
25861 (verify_cgraph_node): Check sanity of local flag.
25862 (cgraph_function_node): Move here from cgraph.h; revamp for
25863 cgraph_function_or_thunk_node.
25864 * lto-symtab.c (lto_varpool_replace_node): Update.
25865 (lto_symtab_resolve_can_prevail_p): Update.
25866 (lto_symtab_merge_cgraph_nodes): Update.
25867 * ipa-cp.c (determine_versionability, initialize_node_lattices,
25868 propagate_constants_accross_call, devirtualization_time_bonus,
25869 ipcp_propagate_stage): Update.
25870 * tree-emutls.c (create_emultls_var, ipa_lower_emutls): Update.
25871 * ipa-inline-transform.c (clone_inlined_nodes,
25872 preserve_function_body_p): Update.
25873 * ipa-reference.c (propagate): Update.
25874 (write_node_summary_p): Update.
25875 * toplev.c (wrapup_global_declaration_2): Update.
25876 * cgraphunit.c (cgraph_analyze_function): Rename to ...
25877 (analyze_function) ... this one.
25878 (cgraph_process_new_functions): Update.
25879 (cgraph_reset_node): Export.
25880 (cgraph_finalize_function): Update.
25881 (cgraph_add_new_function): Update.
25882 (process_function_and_variable_attributes): Update.
25883 (varpool_finalize_decl): Update.
25884 (symbol_finalized): Remove.
25885 (symbol_finalized_and_needed): Rename to ...
25886 (symbol_defined_and_needed): ... update.
25887 (cgraph_analyze_functions): Update.
25888 (handle_alias_pairs): Update.
25889 (mark_functions_to_output): Update.
25890 (assemble_thunk): Update.
25891 (output_in_order): Update.
25892 (output_weakrefs): Update.
25893 (finalize_compilation_unit): Update.
25894 * lto-cgraph.c (reachable_from_other_partition_p, lto_output_node,
25895 lto_output_varpool_node, compute_ltrans_boundary, input_overwrite_node,
25896 input_node, input_varpool_node): Update.
25897 * dbxout.c (dbxout_expand_expr): Update.
25898 * cgraphclones.c (cgraph_clone_node): Update.
25899 (cgraph_copy_node_for_versioning): Update.
25900 (cgraph_materialize_clone): Update.
25901 (cgraph_materialize_all_clones): Update.
25902 * ipa-pure-const.c (analyze_function, pure_const_write_summary,
25903 propagate_pure_const, propagate_nothrow): Update.
25904 * lto-streamer-out.c (lto_output, write_symbol): Update.
25905 * ipa-utils.c (ipa_reverse_postorder): Update.
25906 * ipa-inline.c (can_inline_edge_p): Update.
25907 (update_caller_keys, ipa_inline): Update.
25908 * dwarf2out.c (reference_to_unused,
25909 premark_types_used_by_global_vars_helper): Update.
25910 * tree-eh.c (tree_could_trap_p): Update.
25911 * ipa-split.c (consider_split, execute_split_functions): Update.
25912 * ipa.c (cgraph_non_local_node_p_1, cgraph_local_node_p,
25913 has_addr_references_p): Update; move ahead in file for better
25915 (process_references): Simplify.
25916 (symtab_remove_unreachable_nodes): Update; cleanup way function/var
25917 bodies are removed.
25918 (cgraph_comdat_can_be_unshared_p): Make static.
25919 (cgraph_externally_visible_p): Update.
25920 (varpool_externally_visible_p): Update.
25921 (function_and_variable_visibility): Update.
25922 * trans-mem.c (get_cg_data, ipa_tm_mayenterirr_function,
25923 ipa_tm_mark_force_output_node): Update.
25924 * ipa-inline-analysis.c (dump_inline_summary, initialize_inline_failed,
25925 estimate_edge_devirt_benefit, inline_generate_summary,
25926 inline_write_summary): Update.
25927 * gimple-fold.c (can_refer_decl_in_current_unit_p): Update.
25928 * ipa-prop.c (ipa_compute_jump_functions): Update.
25929 (ipa_print_node_params, ipa_prop_read_section,
25930 ipa_update_after_lto_read, read_replacements_section): Update.
25931 * varasm.c (mark_decl_referenced): Update.
25932 (assemble_alias, dump_tm_clone_pairs): Update.
25933 * tree-inline.c (copy_bb): Update.
25934 (estimate_num_insns, optimize_inline_calls, tree_function_versioning):
25936 * symtab.c (dump_symtab_base): Print new flags.
25937 (verify_symtab_base): Verify new flags.
25938 (symtab_alias_ultimate_target): New function.
25939 * tree-ssa-structalias.c (get_constraint_for_ssa_var,
25940 create_variable_info_for, associate_varinfo_to_alias, ipa_pta_execute):
25942 * passes.c (ipa_write_summaries, ipa_write_optimization_summaries):
25944 * i386.c (ix86_get_function_versions_dispatcher,
25945 ix86_generate_version_dispatcher_body): Update.
25946 (fold_builtin_cpu): Use varpool_add_new_variable.
25947 * varpool.c (varpool_remove_initializer): Break out from ...
25948 (varpool_remove_node): ... this one.
25949 (dump_varpool_node, varpool_node_for_asm,
25950 cgraph_variable_initializer_availability, varpool_analyze_node,
25951 varpool_assemble_decl, varpool_remove_unreferenced_decls,
25952 varpool_finalize_named_section_flags, varpool_create_variable_alias):
25955 2013-05-29 Jan Hubicka <jh@suse.cz>
25957 * passes.c (init_optimization_passes): Move OMP expansion into lowering.
25959 2013-05-29 Easwaran Raman <eraman@google.com>
25961 PR tree-optimization/57442
25962 * tree-ssa-reassoc.c (appears_later_in_bb): Return correct value
25963 when control exits the main loop.
25965 2013-05-29 Sandeep Kumar Singh <Sandeep.Singh2@kpitcummins.com>
25967 * rx/rx.h (TARGET_CPU_CPP_BUILTINS): Add macros for RX100, RX200,
25969 * rx/rx.opt: Add macro for rx100 with string rx100 and value RX100.
25970 * rx/rx-opts.h (rx_cpu_types): Add new cpu type rx100.
25971 * rx/t-rx: Add rx100 under multi library matches option for nofpu
25974 2013-05-29 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
25976 PR tree-optimization/57441
25977 * gimple-ssa-strength-reduction.c (analyze_candidates_and_replace):
25978 Don't limit size of incr_vec to number of candidates.
25980 2013-05-29 Steve Ellcey <sellcey@imgtec.com>
25982 * config/mips/mti-linux.h (SYSROOT_SUFFIX_SPEC): Add micromips
25983 and mips16 directories.
25984 * config/mips/t-mti-linux (MULTILIB_OPTIONS): Add micromips and mips16.
25985 (MULTILIB_DIRNAMES): Ditto.
25986 (MULTILIB_EXCEPTIONS): Add new exceptions.
25987 * config/mips/t-mti-elf (MULTILIB_OPTIONS): Add micromips.
25988 (MULTILIB_DIRNAMES): Ditto.
25989 (MULTILIB_EXCEPTIONS): Add new exceptions.
25991 2012-05-29 Chris Schlumberger-Socha <chris.schlumberger-socha@arm.com>
25992 Marcus Shawcroft <marcus.shawcroft@arm.com>
25994 * config/aarch64/aarch64-protos.h (aarch64_symbol_type): Define
25995 SYMBOL_TINY_ABSOLUTE.
25996 * config/aarch64/aarch64.c (aarch64_load_symref_appropriately): Handle
25997 SYMBOL_TINY_ABSOLUTE.
25998 (aarch64_expand_mov_immediate): Likewise.
25999 (aarch64_classify_symbol): Likewise.
26000 (aarch64_mov_operand_p): Remove ATTRIBUTE_UNUSED.
26001 Permit SYMBOL_TINY_ABSOLUTE.
26002 * config/aarch64/predicates.md (aarch64_mov_operand): Permit CONST.
26004 2013-05-29 Chris Schlumberger-Socha <chris.schlumberger-socha@arm.com>
26005 Marcus Shawcroft <marcus.shawcroft@arm.com>
26007 * config/aarch64/aarch64.c (aarch64_classify_symbol): Remove comment.
26008 Refactor if/switch. Replace gcc_assert with if.
26010 2013-05-29 Ganesh Gopalasubramanian <Ganesh.Gopalasubramanian@amd.com>
26012 * config/i386/i386.c (initial_ix86_tune_features): Enable
26013 FP Reassociation for AMD bdver1 and bdver2.
26015 2013-05-29 Martin Jambor <mjambor@suse.cz>
26017 * tree-cfg.c (verify_expr): Verify that BIT_FIELD_REF, REALPART_EXPR
26018 and IMAGPART_EXPR do not occur within other handled_components.
26020 2013-05-29 Richard Biener <rguenther@suse.de>
26022 * tree-vect-slp.c (vect_bb_slp_scalar_cost): Guard vinfo
26023 access on whether the use is in the BB we currently try to
26025 (vect_bb_vectorization_profitable_p): Pass the BB we currently
26026 vectorize to vect_bb_slp_scalar_cost.
26028 2013-05-29 Richard Biener <rguenther@suse.de>
26030 * tree-vect-slp.c (vect_bb_slp_scalar_cost): New function
26031 computing scalar cost offsetted by stmts that are kept live
26033 (vect_bb_vectorization_profitable_p): Use vect_bb_slp_scalar_cost
26034 for computation of scalar cost.
26036 2013-05-28 Steve Ellcey <sellcey@mips.com>
26038 * config/mips/mips-cpus.def (mips32r2): Change processor type.
26040 2013-05-28 Balaji V. Iyer <balaji.v.iyer@intel.com>
26042 * doc/extend.texi (C Extensions): Added documentation about Cilk Plus
26043 array notation built-in reduction functions.
26044 * doc/passes.texi (Passes): Added documentation about changes done
26046 * doc/invoke.texi (C Dialect Options): Added documentation about
26047 the -fcilkplus flag.
26048 * Makefile.in (C_COMMON_OBJS): Added c-family/array-notation-common.o.
26049 (BUILTINS_DEF): Depend on cilkplus.def.
26050 * builtins.def: Include cilkplus.def. Define DEF_CILKPLUS_BUILTIN.
26051 * builtin-types.def: Define BT_FN_INT_PTR_PTR_PTR.
26052 * cilkplus.def: New file.
26054 2013-05-28 Joern Rennecke <joern.rennecke@embecosm.com>
26056 PR rtl-optimization/57439
26057 * postreload.c (move2add_use_add2_insn): Use gen_lowpart_common.
26059 2013-05-28 Easwaran Raman <eraman@google.com>
26061 PR tree-optimization/57337
26062 * tree-ssa-reassoc.c (appears_later_in_bb): New function.
26063 (find_insert_point): Correctly identify the insertion point
26064 when two statements with the same UID is compared.
26066 2013-05-28 Richard Biener <rguenther@suse.de>
26068 PR tree-optimization/56787
26069 * tree-vect-data-refs.c (vect_analyze_data_refs): Drop clobbers
26070 from the list of data references.
26071 * tree-vect-loop.c (vect_determine_vectorization_factor): Skip
26073 (vect_analyze_loop_operations): Likewise.
26074 (vect_transform_loop): Remove clobbers.
26076 2013-05-28 Martin Jambor <mjambor@suse.cz>
26078 * tree-cfg.c (verify_expr): Verify that BIT_FIELD_REFs, IMAGPART_EXPRs
26079 and REALPART_EXPRs have scalar type.
26081 2013-05-28 Richard Biener <rguenther@suse.de>
26083 PR tree-optimization/57411
26084 * tree-ssa-copy.c (may_propagate_copy): Cannot propagate
26086 * tree-ssa-dom.c (eliminate_const_or_copy): Special-case
26087 virtual operand propagation.
26089 2013-05-28 Eric Botcazou <ebotcazou@adacore.com>
26091 * config/sparc/sparc.c (sparc_expand_vec_perm_bmask): Use %g0 as
26092 destination register for bmasksi_vis.
26093 (vector_init_bshuffle): Likewise.
26094 * config/sparc/sparc.md (vec_perm_constv8qi): Likewise.
26096 2013-05-28 Eric Botcazou <ebotcazou@adacore.com>
26098 * doc/invoke.texi (SPARC Options): Document -mfix-ut699.
26099 * builtins.c (expand_builtin_mathfn) <BUILT_IN_SQRT>: Try to widen the
26100 mode if the instruction isn't available in the original mode.
26101 * config/sparc/sparc.opt (mfix-ut699): New option.
26102 * config/sparc/sparc.md (muldf3_extend): Disable if -mfix-ut699.
26103 (divdf3): Turn into expander.
26104 (divdf3_nofix): New insn.
26105 (divdf3_fix): Likewise.
26106 (divsf3): Disable if -mfix-ut699.
26107 (sqrtdf2): Turn into expander.
26108 (sqrtdf2_nofix): New insn.
26109 (sqrtdf2_fix): Likewise.
26110 (sqrtsf2): Disable if -mfix-ut699.
26112 2013-05-27 Richard Biener <rguenther@suse.de>
26114 PR middle-end/57412
26115 * omp-low.c (expand_omp_atomic_pipeline): Use the correct latch
26116 block for the new loop.
26118 2013-05-27 Richard Biener <rguenther@suse.de>
26120 PR tree-optimization/57343
26121 * tree-ssa-loop-niter.c (number_of_iterations_ne_max): Do not
26122 use multiple_of_p if not TYPE_OVERFLOW_UNDEFINED.
26123 (number_of_iterations_cond): Do not build the folded tree.
26125 2013-05-27 Richard Biener <rguenther@suse.de>
26128 PR middle-end/57381
26129 * fold-const.c (operand_equal_p): Compare FIELD_DECLs with
26130 OEP_CONSTANT_ADDRESS_OF retained.
26132 PR tree-optimization/57417
26133 * tree-ssa-sccvn.c (vn_reference_fold_indirect): Fix test
26134 for unchanged base.
26135 (set_ssa_val_to): Compare addresses using
26136 get_addr_base_and_unit_offset.
26138 2013-05-27 Joern Rennecke <joern.rennecke@embecosm.com>
26140 PR rtl-optimization/56833
26141 * postreload.c (move2add_record_mode): New function.
26142 (move2add_record_sym_value, move2add_valid_value_p): Likewise.
26143 (move2add_use_add2_insn): Use move2add_record_sym_value.
26144 (move2add_use_add3_insn): Likewise.
26145 (reload_cse_move2add): Use move2add_valid_value_p and
26146 move2add_record_mode. Invalidate call-clobbered and REG_INC
26147 affected regs by setting reg_mode to VOIDmode.
26148 (move2add_note_store): Don't pretend the inside of a SUBREG is
26149 the actual destination. Invalidate single/leading registers by
26150 setting reg_mode to VOIDmode.
26151 Use move2add_record_sym_value, move2add_valid_value_p and
26152 move2add_record_mode.
26154 2013-05-27 Richard Biener <rguenther@suse.de>
26156 PR tree-optimization/57396
26157 * tree-affine.c (double_int_constant_multiple_p): Properly
26158 return false for val == 0 and div != 0.
26160 2013-05-25 Richard Sandiford <rdsandiford@googlemail.com>
26162 * config/mips/mips.h: Use #elif in preprocessor conditions.
26164 2013-05-25 Richard Sandiford <rdsandiford@googlemail.com>
26167 * config/mips/constraints.md (kl): New constraint.
26168 * config/mips/mips.md (divmod<mode>4, udivmod<mode>4): Delete.
26169 (divmod<mode>4_internal): Rename to divmod<mode>4. Use "kl" as the
26170 constraint for operand 0. Split after CSE for MIPS16. Emit a move
26171 from LO for MIPS16.
26172 (udivmod<mode>4_internal): Likewise udivmod<mode>4.
26174 2013-05-25 Richard Sandiford <rdsandiford@googlemail.com>
26177 * config/mips/mips.c (mips_can_inline_p): New function.
26178 (TARGET_CAN_INLINE_P): Define.
26180 2013-05-25 Steven Bosscher <steven@gcc.gnu.org>
26182 * sched-int.h (ds_t, dw_t): Make unsigned int.
26183 Fix documentation that describes how all the ds_t bits are used.
26184 Reserve the last bit for delayed-branch scheduling.
26185 (BITS_PER_DEP_STATUS): Move to ds_t typedef.
26186 (BITS_PER_DEP_WEAK): Fix definition and documentation.
26187 (gen_dep_weak_1): Remove prototype.
26188 * sched-deps.c (get_dep_weak_1): Make static.
26189 * target.def (speculate_insn, needs_block_p, gen_spec_check,
26190 get_insn_spec_ds, get_insn_checked_ds): Adjust hook prototypes.
26191 * doc/tm.texi: Regenerate.
26192 * config/ia64/ia64.c (ia64_needs_block_p): Update prototype.
26194 2013-05-24 Steven Bosscher <steven@gcc.gnu.org>
26197 * haifa-sched.c (sched_extend_bb): Ignore DEBUG_INSNs.
26199 2013-05-24 Nathan Sidwell <nathan@codesourcery.com>
26200 Sandra Loosemore <sandra@codesourcery.com>
26202 * config.gcc (powerpc-*): Allow native for with-cpu.
26204 2013-05-24 Jeff Law <law@redhat.com>
26206 PR tree-optimization/57124
26207 * tree-vrp.c (simplify_cond_using_ranges): Only simplify a
26208 conversion feeding a condition if the range has an overflow
26209 if -fstrict-overflow. Add warnings for when we do make the
26212 2013-05-24 Dehao Chen <dehao@google.com>
26214 * tree-cfg.c (locus_discrim_map): Fix the typo.
26215 (locus_discrim_hasher): Likewise.
26216 (locus_discrim_hasher::hash): Likewise.
26217 (locus_discrim_hasher::equal): Likewise.
26219 2013-05-24 Martin Jambor <mjambor@suse.cz>
26221 PR tree-optimization/57294
26222 * cgraph.h (ipa_record_stmt_references): Declare.
26223 * cgraphbuild.c (ipa_record_stmt_references): New function.
26224 (build_cgraph_edges): Use ipa_record_stmt_references.
26225 (rebuild_cgraph_edges): Likewise.
26226 (cgraph_rebuild_references): Likewise.
26227 * ipa-prop.c (ipa_modify_call_arguments): Discard references
26228 associated with the old statement and build references from the
26229 newly built statements.
26230 * ipa-ref.c (ipa_remove_stmt_references): New function.
26231 * ipa-ref.h (ipa_remove_stmt_references): Declare.
26233 2013-05-24 Vladimir Makarov <vmakarov@redhat.com>
26235 * lra-constraints.c (emit_spill_move): Use smaller mode for
26237 (check_and_process_move): Consider mem-reg moves for secondary
26239 (curr_insn_transform): Don't lose insns emitted before for
26240 secondary memory moves.
26241 (inherit_in_ebb): Mark defined reg. Add usage only if it is not a
26242 reg set up in the current insn.
26244 2013-05-24 Dehao Chen <dehao@google.com>
26246 * tree-cfg.c (locus_descrim_hasher::hash): Change discriminator
26248 (locus_descrim_hasher::equal): Likewise.
26249 (build_gimple_cfg): New discriminator assignment algorithm.
26250 (make_edges): Likewise.
26251 (next_discriminator_for_locus): Likewise.
26252 (same_line_p): Likewise.
26253 (assign_discriminators): Likewise.
26254 (make_cond_expr_edges): Likewise.
26255 (make_gimple_switch_edges): Likewise.
26256 (make_goto_expr_edges): Likewise.
26257 (make_gimple_asm_edges): Likewise.
26259 2013-05-24 Ian Bolton <ian.bolton@arm.com>
26261 * config/aarch64/aarch64.c (aarch64_print_operand): Change the
26262 X format specifier to only display bottom 16 bits.
26263 * config/aarch64/aarch64.md (insv_imm<mode>): Allow any size of
26264 immediate to match for operand 2, since it will be masked.
26266 2013-05-24 Richard Biener <rguenther@suse.de>
26268 PR tree-optimization/57287
26269 * tree-ssa-uninit.c (compute_uninit_opnds_pos): Disregard
26270 all SSA names that occur in abnormal PHIs.
26272 2013-05-24 Alexander Ivchenko <alexander.ivchenko@intel.com>
26275 * tree-ssa-sccvn.c (fully_constant_vn_reference_p): Check
26276 that index is not negative.
26278 2013-05-24 Eric Botcazou <ebotcazou@adacore.com>
26280 PR rtl-optimization/55177
26281 * simplify-rtx.c (simplify_unary_operation_1) <NOT>: Deal with BSWAP.
26282 (simplify_byte_swapping_operation): New.
26283 (simplify_binary_operation_1): Call it for AND, IOR and XOR.
26284 (simplify_relational_operation_1): Deal with BSWAP.
26286 2013-05-23 Richard Henderson <rth@redhat.com>
26289 * config/i386/i386.c (ix86_seh_fixup_eh_fallthru): New.
26290 (ix86_reorg): Call it.
26292 2013-05-23 Uros Bizjak <ubizjak@gmail.com>
26295 * config/alpha/alpha.md (unspec): Add UNSPEC_XFLT_COMPARE.
26296 * config/alpha/alpha.c (alpha_emit_xfloating_compare): Construct
26297 REG_EQUAL note as UNSPEC_XFLT_COMPARE unspec.
26299 2013-05-23 Christian Bruel <christian.bruel@st.com>
26302 * config/arm/arm.c (arm_dwarf_register_span): Do not use dbx number.
26304 2013-05-23 Chris Schlumberger-Socha <chris.schlumberger-socha@arm.com>
26305 Marcus Shawcroft <marcus.shawcroft@arm.com>
26307 * config/aarch64/aarch64.md (*movdi_aarch64): Replace Usa with S.
26308 * config/aarch64/constraints.md (Usa): Remove.
26309 * doc/md.texi (AArch64 Usa): Remove.
26311 2013-05-23 Chris Schlumberger-Socha <chris.schlumberger-socha@arm.com>
26312 Marcus Shawcroft <marcus.shawcroft@arm.com>
26314 * config/aarch64/aarch64-protos.h (aarch64_mov_operand_p): Define.
26315 * config/aarch64/aarch64.c (aarch64_mov_operand_p): Define.
26316 * config/aarch64/predicates.md (aarch64_const_address): Remove.
26317 (aarch64_mov_operand): Use aarch64_mov_operand_p.
26319 2013-05-23 Vidya Praveen <vidyapraveen@arm.com>
26321 * config/aarch64/aarch64-simd.md (clzv4si2): Support for CLZ
26322 instruction (AdvSIMD).
26323 * config/aarch64/aarch64-builtins.c
26324 (aarch64_builtin_vectorized_function): Handler for BUILT_IN_CLZ.
26325 * config/aarch64/aarch-simd-builtins.def: Entry for CLZ.
26327 2013-05-23 Martin Jambor <mjambor@suse.cz>
26329 PR middle-end/57347
26330 * tree.h (contains_bitfld_component_ref_p): Declare.
26331 * tree-sra.c (contains_bitfld_comp_ref_p): Move...
26332 * tree.c (contains_bitfld_component_ref_p): ...here. Adjust its
26334 * ipa-prop.c (determine_known_aggregate_parts): Check that LHS does
26335 not access a bit-field. Assert all final offsets are byte-aligned.
26337 2013-05-23 Richard Biener <rguenther@suse.de>
26339 PR tree-optimization/57380
26340 * tree-ssa-phiprop.c (propagate_with_phi): Do not require at
26341 least one invariant or re-used load.
26342 * passes.c (init_optimization_passes): Move pass_phiprop before
26345 2013-05-23 James Greenhalgh <james.greenhalgh@arm.com>
26347 * config/aarch64/aarch64-simd.md
26348 (aarch64_cm<optab>di): Add clobber of CC_REGNUM to unsplit pattern.
26350 2013-05-23 Richard Biener <rguenther@suse.de>
26352 PR middle-end/57381
26353 * fold-const.c (operand_equal_p): Compare FIELD_DECLs with
26354 OEP_CONSTANT_ADDRESS_OF retained.
26356 2013-05-23 Jakub Jelinek <jakub@redhat.com>
26358 PR middle-end/57344
26359 * expmed.c (store_split_bit_field): If op0 is a REG or SUBREG of a REG,
26360 don't lower unit. Handle unit not being always BITS_PER_WORD.
26362 2013-05-23 Richard Biener <rguenther@suse.de>
26364 PR rtl-optimization/57341
26365 * ira.c (validate_equiv_mem_from_store): Use anti_dependence
26366 instead of true_dependence.
26368 2013-05-22 David Malcolm <dmalcolm@redhat.com>
26370 * bb-reorder.c (branch_threshold): Make const.
26371 (exec_threshold): Ditto.
26373 2013-05-22 Michael Meissner <meissner@linux.vnet.ibm.com>
26374 Pat Haugen <pthaugen@us.ibm.com>
26375 Peter Bergner <bergner@vnet.ibm.com>
26377 * doc/extend.texi (PowerPC AltiVec/VSX Built-in Functions): Add
26378 documentation for the power8 crypto builtins.
26380 * config/rs6000/t-rs6000 (MD_INCLUDES): Add crypto.md.
26382 * config/rs6000/rs6000-builtin.def (BU_P8V_AV_1): Add support
26383 macros for defining power8 builtin functions.
26384 (BU_P8V_AV_2): Likewise.
26385 (BU_P8V_AV_P): Likewise.
26386 (BU_P8V_VSX_1): Likewise.
26387 (BU_P8V_OVERLOAD_1): Likewise.
26388 (BU_P8V_OVERLOAD_2): Likewise.
26389 (BU_CRYPTO_1): Likewise.
26390 (BU_CRYPTO_2): Likewise.
26391 (BU_CRYPTO_3): Likewise.
26392 (BU_CRYPTO_OVERLOAD_1): Likewise.
26393 (BU_CRYPTO_OVERLOAD_2): Likewise.
26394 (XSCVSPDP): Fix typo, point to the correct instruction.
26395 (VCIPHER): Add power8 crypto builtins.
26396 (VCIPHERLAST): Likewise.
26397 (VNCIPHER): Likewise.
26398 (VNCIPHERLAST): Likewise.
26399 (VPMSUMB): Likewise.
26400 (VPMSUMH): Likewise.
26401 (VPMSUMW): Likewise.
26402 (VPERMXOR_V2DI): Likewise.
26403 (VPERMXOR_V4SI: Likewise.
26404 (VPERMXOR_V8HI: Likewise.
26405 (VPERMXOR_V16QI: Likewise.
26406 (VSHASIGMAW): Likewise.
26407 (VSHASIGMAD): Likewise.
26408 (VPMSUM): Likewise.
26409 (VPERMXOR): Likewise.
26410 (VSHASIGMA): Likewise.
26412 * config/rs6000/rs6000-c.c (rs6000_target_modify_macros): Define
26413 __CRYPTO__ if the crypto instructions are available.
26414 (altivec_overloaded_builtins): Add support for overloaded power8
26417 * config/rs6000/rs6000.c (rs6000_expand_ternop_builtin): Add
26418 support for power8 crypto builtins.
26419 (builtin_function_type): Likewise.
26420 (altivec_init_builtins): Add support for builtins that take vector
26421 long long (V2DI) arguments.
26423 * config/rs6000/crypto.md: New file, define power8 crypto
26426 2013-05-22 Michael Meissner <meissner@linux.vnet.ibm.com>
26427 Pat Haugen <pthaugen@us.ibm.com>
26428 Peter Bergner <bergner@vnet.ibm.com>
26430 * doc/invoke.texi (Option Summary): Add power8 options.
26431 (RS/6000 and PowerPC Options): Likewise.
26433 * doc/md.texi (PowerPC and IBM RS6000 constraints): Update to use
26434 constraints.md instead of rs6000.h. Reorder w* constraints. Add
26435 wm, wn, wr documentation.
26437 * config/rs6000/constraints.md (wm): New constraint for VSX
26438 registers if direct move instructions are enabled.
26439 (wn): New constraint for no registers.
26440 (wq): New constraint for quad word even GPR registers.
26441 (wr): New constraint if 64-bit instructions are enabled.
26442 (wv): New constraint if power8 vector instructions are enabled.
26443 (wQ): New constraint for quad word memory locations.
26445 * config/rs6000/predicates.md (const_0_to_15_operand): New
26446 constraint for 0..15 for crypto instructions.
26447 (gpc_reg_operand): If VSX allow registers in VSX registers as well
26448 as GPR and floating point registers.
26449 (int_reg_operand): New predicate to match only GPR registers.
26450 (base_reg_operand): New predicate to match base registers.
26451 (quad_int_reg_operand): New predicate to match even GPR registers
26452 for quad memory operations.
26453 (vsx_reg_or_cint_operand): New predicate to allow vector logical
26454 operations in both GPR and VSX registers.
26455 (quad_memory_operand): New predicate for quad memory operations.
26456 (reg_or_indexed_operand): New predicate for direct move support.
26458 * config/rs6000/rs6000-cpus.def (ISA_2_5_MASKS_EMBEDDED):
26459 Inherit from ISA_2_4_MASKS, not ISA_2_2_MASKS.
26460 (ISA_2_7_MASKS_SERVER): New mask for ISA 2.07 (i.e. power8).
26461 (POWERPC_MASKS): Add power8 options.
26462 (power8 cpu): Use ISA_2_7_MASKS_SERVER instead of specifying the
26465 * config/rs6000/rs6000-c.c (rs6000_target_modify_macros):
26466 Define _ARCH_PWR8 and __POWER8_VECTOR__ for power8.
26468 * config/rs6000/rs6000.opt (-mvsx-timode): Add documentation.
26469 (-mpower8-fusion): New power8 options.
26470 (-mpower8-fusion-sign): Likewise.
26471 (-mpower8-vector): Likewise.
26472 (-mcrypto): Likewise.
26473 (-mdirect-move): Likewise.
26474 (-mquad-memory): Likewise.
26476 * config/rs6000/rs6000.c (power8_cost): Initial definition for power8.
26477 (rs6000_hard_regno_mode_ok): Make PTImode only match even GPR
26479 (rs6000_debug_reg_print): Print the base register class if -mdebug=reg.
26480 (rs6000_debug_vector_unit): Add p8_vector.
26481 (rs6000_debug_reg_global): If -mdebug=reg, print power8 constraint
26482 definitions. Also print fusion state.
26483 (rs6000_init_hard_regno_mode_ok): Set up power8 constraints.
26484 (rs6000_builtin_mask_calculate): Add power8 builtin support.
26485 (rs6000_option_override_internal): Add support for power8.
26486 (rs6000_common_init_builtins): Add debugging for skipped builtins
26487 if -mdebug=builtin.
26488 (rs6000_adjust_cost): Add power8 support.
26489 (rs6000_issue_rate): Likewise.
26490 (insn_must_be_first_in_group): Likewise.
26491 (insn_must_be_last_in_group): Likewise.
26492 (force_new_group): Likewise.
26493 (rs6000_register_move_cost): Likewise.
26494 (rs6000_opt_masks): Likewise.
26496 * config/rs6000/rs6000.h (ASM_CPU_POWER8_SPEC): If we don't have a
26497 power8 capable assembler, default to power7 options.
26498 (TARGET_DIRECT_MOVE): Likewise.
26499 (TARGET_CRYPTO): Likewise.
26500 (TARGET_P8_VECTOR): Likewise.
26501 (VECTOR_UNIT_P8_VECTOR_P): Define power8 vector support.
26502 (VECTOR_UNIT_VSX_OR_P8_VECTOR_P): Likewise.
26503 (VECTOR_MEM_P8_VECTOR_P): Likewise.
26504 (VECTOR_MEM_VSX_OR_P8_VECTOR_P): Likewise.
26505 (VECTOR_MEM_ALTIVEC_OR_VSX_P): Likewise.
26506 (TARGET_XSCVDPSPN): Likewise.
26507 (TARGET_XSCVSPDPN): Likewsie.
26508 (TARGET_SYNC_HI_QI): Likewise.
26509 (TARGET_SYNC_TI): Likewise.
26510 (MASK_CRYPTO): Likewise.
26511 (MASK_DIRECT_MOVE): Likewise.
26512 (MASK_P8_FUSION): Likewise.
26513 (MASK_P8_VECTOR): Likewise.
26514 (REG_ALLOC_ORDER): Move fr13 to be lower in priority so that the TFmode
26515 temporary used by some of the direct move instructions to get two FP
26516 temporary registers does not force creation of a stack frame.
26517 (VLOGICAL_REGNO_P): Allow vector logical operations in GPRs.
26518 (MODES_TIEABLE_P): Move the VSX tests above the Altivec tests so
26519 that any VSX registers are tieable, even if they are also an
26520 Altivec vector mode.
26521 (r6000_reg_class_enum): Add wm, wr, wv constraints.
26522 (RS6000_BTM_P8_VECTOR): Power8 builtin support.
26523 (RS6000_BTM_CRYPTO): Likewise.
26524 (RS6000_BTM_COMMON): Likewise.
26526 * config/rs6000/rs6000.md (cpu attribute): Add power8.
26527 * config/rs6000/rs6000-opts.h (PROCESSOR_POWER8): Likewise.
26528 (enum rs6000_vector): Add power8 vector support.
26530 2013-05-22 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
26534 * config/arm/arm.c (any_sibcall_uses_r3): Rename to ..
26535 (any_sibcall_could_use_r3): this and handle indirect calls.
26536 (arm_get_frame_offsets): Rename use of any_sibcall_uses_r3.
26538 2013-05-22 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
26540 * config/rs6000/rs6000.h (MALLOC_ABI_ALIGNMENT): New #define.
26542 2013-05-22 Richard Biener <rguenther@suse.de>
26544 PR middle-end/57349
26545 * profile.c (branch_prob): Do not split blocks that are
26546 abnormally receiving from ECF_RETURNS_TWICE functions.
26548 2013-05-22 Richard Sandiford <rsandifo@linux.vnet.ibm.com>
26550 * recog.c (offsettable_address_addr_space_p): Fix calculation of
26551 address mode. Move pointer mode initialization to the same place.
26553 2013-05-22 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
26555 * read-rtl.c (copy_rtx_for_iterators): Continue applying iterators
26556 while it has any effect.
26558 2013-05-21 Easwaran Raman <eraman@google.com>
26560 PR tree-optimization/57322
26561 * tree-ssa-reassoc.c (build_and_add_sum): If a BB is empty, set the
26562 UID of the statement added to the BB to be 1.
26564 2013-05-21 Jakub Jelinek <jakub@redhat.com>
26566 PR tree-optimization/57331
26567 * tree-vrp.c (simplify_cond_using_ranges): Don't optimize comparison
26568 of conversion from pointer type to integral type with integer.
26570 2013-05-21 Martin Jambor <mjambor@suse.cz>
26573 * ipa-prop.c (ipa_read_node_info): Process param_used and
26574 controlled_uses in the same order as when writing.
26576 2013-05-21 Magnus Granberg <baldrick@free.fr>
26579 * Makefile.in (PLUGIN_HEADERS): Add $(TARGET_H).
26581 2013-05-21 Richard Biener <rguenther@suse.de>
26583 PR tree-optimization/57318
26584 * tree-ssa-loop-ivcanon.c (tree_estimate_loop_size): Do not
26585 estimate stmts with side-effects as likely eliminated.
26587 2013-05-21 Richard Biener <rguenther@suse.de>
26589 PR tree-optimization/57330
26590 * cgraph.c (cgraph_redirect_edge_call_stmt_to_callee): Properly
26591 preserve the call stmts fntype.
26593 2013-05-21 Richard Biener <rguenther@suse.de>
26595 PR tree-optimization/57303
26596 * tree-ssa-sink.c (statement_sink_location): Improve killing
26597 stmt detection and properly handle self-assignments.
26599 2013-05-21 Christian Bruel <christian.bruel@st.com>
26601 * dwarf2out.c (multiple_reg_loc_descriptor): Use dbx_reg_number for
26602 spanning registers. LEAF_REG_REMAP is supported only for contiguous
26603 registers. Set register size out of the PARALLEL loop.
26605 2013-05-20 Oleg Endo <olegendo@gcc.gnu.org>
26608 * config/sh/sh.md (fmasf4): Remove empty constraints strings.
26609 (*fmasf4, *fmasf4_media): New insns.
26611 2013-05-19 Richard Sandiford <rdsandiford@googlemail.com>
26613 * config/mips/mips.h (BASE_INSN_LENGTH, NOP_INSN_LENGTH): New macros.
26614 * config/mips/mips.c (mips_symbol_insns, mips_address_insns)
26615 (mips_const_insns, mips_split_const_insns, mips_load_store_insns)
26616 (mips_idiv_insns): Update the comments to say that the returned
26617 instruction counts are in units of BASE_INSN_LENGTH.
26618 (mips_adjust_insn_length): Multiply the mips_load_label_num_insns
26619 by BASE_INSN_LENGTH rather than 4. Add the jump separately,
26620 using 2 rather than 4 as the length of indirect MIPS16 and
26621 microMIPS jumps. Use NOP_INSN_LENGTH rather than 4 as the
26622 length of a NOP. Don't divide MIPS16 lengths by 2.
26623 (mips16_split_long_branches): Assume a branch is long if the
26624 length is greater than 4 rather than 8.
26625 * config/mips/mips.md (length): Give MIPS16 lengths directly,
26626 rather than multiplying them by 2. Multiply instruction counts
26627 by BASE_INSN_LENGTH rather than 4.
26628 (*jump_mips16, tls_get_tp_mips16_<mode>)
26629 (*tls_get_tp_mips16_call_<mode>): Divide lengths by 2.
26631 2013-05-19 Richard Sandiford <rdsandiford@googlemail.com>
26633 * config/mips/mips.md (extended_mips16): Remove branch case.
26634 (length): Remove duplicated extended_mips16 test.
26636 2013-05-19 Richard Sandiford <rdsandiford@googlemail.com>
26638 * config/mips/t-sde: Don't build 64-bit microMIPS multilibs.
26640 2013-05-18 Richard Sandiford <rdsandiford@googlemail.com>
26642 * recog.h (Recog_data): Rename to...
26643 (recog_data_d): ...this.
26644 (recog_data): Update accordingly.
26645 * recog.c (recog_data): Likewise.
26646 * reload.c (save_recog_data): Likewise.
26647 * config/picochip/picochip.c (picochip_saved_recog_data): Likewise.
26648 (picochip_save_recog_data, picochip_restore_recog_data): Likewise.
26650 2013-05-17 Julian Brown <julian@codesourcery.com>
26652 * gcse.c (compute_ld_motion_mems): If a non-simple MEM is
26653 found in a REG_EQUAL note, invalidate it.
26655 2013-05-17 Easwaran Raman <eraman@google.com>
26657 * tree-ssa-reassoc.c (find_insert_point): New function.
26658 (insert_stmt_after): Likewise.
26659 (get_def_stmt): Likewise.
26660 (ensure_ops_are_available): Likewise.
26661 (not_dominated_by): Likewise.
26662 (rewrite_expr_tree): Do not move statements beyond what is
26663 necessary. Remove call to swap_ops_for_binary_stmt...
26664 (reassociate_bb): ... and move it here.
26665 (build_and_add_sum): Assign UIDs for new statements.
26666 (linearize_expr): Likewise.
26667 (do_reassoc): Renumber gimple statement UIDs.
26669 2013-05-17 Jan Hubicka <jh@suse.cz>
26671 * lto-symtab.c (lto_symtab_merge_cgraph_nodes): Resolve cross module
26673 * cgraph.c (dump_cgraph_node): Do not ice on unresolved alias.
26674 * cgraphunit.c (handle_alias_pairs): Store target of unresolved
26676 (output_weakrefs): Update.
26678 2013-05-17 Po-Chun Chang <pchang9@cs.wisc.edu>
26679 Martin Jambor <mjambor@suse.cz>
26681 PR middle-end/57276
26682 * ipa-cp.c (cgraph_edge_brings_all_agg_vals_for_node): Break when a
26683 value that corresponds to the given aggval is found in values vector.
26685 2013-05-17 Uros Bizjak <ubizjak@gmail.com>
26687 * config/i386/driver-i386.c (host_detect_local_cpu): Pass mmx, 3dnow,
26688 sse, sse2, sse3, ssse3 and sse4a flags to options.
26690 2013-05-17 David Malcolm <dmalcolm@redhat.com>
26692 * gengtype-state.c: (s_expr_writer): New class, to handle
26693 prettifying of output layout of s-expressions.
26694 (state_writer): New class, to write out gtype.state.
26695 (state_written_type_count): Move this variable into member data of
26697 (s_expr_writer::s_expr_writer): New code: constructor for new class
26698 (state_writer::state_writer(): ditto
26699 (s_expr_writer::write_new_line): New function
26700 (s_expr_writer::write_any_indent): ditto
26701 (s_expr_writer::begin_s_expr): ditto
26702 (s_expr_writer::end_s_expr): ditto
26703 (write_state_fileloc): convert to method of state_writer...
26704 (state_writer:: write_state_fileloc): ...and use methods of
26705 s_expr_writer to write indentation into the gtype.state output file
26706 to visually represent the hierarchical structure of the list
26708 (write_state_fields): ditto, renaming to...
26709 (state_writer::write_state_fields)
26710 (write_state_a_string): ditto, renaming to...
26711 (state_writer::write_state_a_string)
26712 (write_state_string_option): ditto, renaming to...
26713 (state_writer::write_state_string_option)
26714 (write_state_type_option): ditto, renaming to...
26715 (state_writer::write_state_type_option)
26716 (write_state_nested_option): ditto, renaming to...
26717 (state_writer::write_state_nested_option)
26718 (write_state_option): ditto, renaming to...
26719 (state_writer::write_state_option)
26720 (write_state_options): ditto, renaming to...
26721 (state_writer::write_state_options)
26722 (write_state_lang_bitmap): ditto, renaming to...
26723 (state_writer::write_state_lang_bitmap)
26724 (write_state_version): ditto, renaming to...
26725 (state_writer::write_state_version)
26726 (write_state_scalar_type): ditto, renaming to...
26727 (state_writer::write_state_scalar_type)
26728 (write_state_string_type): ditto, renaming to...
26729 (state_writer::write_state_string_type)
26730 (write_state_undefined_type): ditto, renaming to...
26731 (state_writer::write_state_undefined_type)
26732 (write_state_struct_union_type): ditto, renaming to...
26733 (state_writer::write_state_struct_union_type)
26734 (write_state_struct_type): ditto, renaming to...
26735 (state_writer::write_state_struct_type)
26736 (write_state_user_struct_type): ditto, renaming to...
26737 (state_writer::write_state_user_struct_type)
26738 (write_state_lang_struct_type): ditto, renaming to...
26739 (state_writer::write_state_lang_struct_type)
26740 (write_state_param_struct_type): ditto, renaming to...
26741 (state_writer::write_state_param_struct_type)
26742 (write_state_pointer_type): ditto, renaming to...
26743 (state_writer::write_state_pointer_type)
26744 (write_state_array_type): ditto, renaming to...
26745 (state_writer::write_state_array_type)
26746 (write_state_gc_used): ditto, renaming to...
26747 (state_writer::write_state_gc_used)
26748 (write_state_common_type_content): ditto, renaming to...
26749 (state_writer::write_state_common_type_content)
26750 (write_state_type): ditto, renaming to...
26751 (state_writer::write_state_type)
26752 (write_state_pair_list): ditto, renaming to...
26753 (state_writer::write_state_pair_list)
26754 (write_state_pair): ditto, renaming to...
26755 (state_writer::write_state_pair)
26756 (write_state_typedefs): ditto, renaming to...
26757 (state_writer::write_state_typedefs)
26758 (write_state_structures): ditto, renaming to...
26759 (state_writer::write_state_structures)
26760 (write_state_param_structs): ditto, renaming to...
26761 (state_writer::write_state_param_structs)
26762 (write_state_variables): ditto, renaming to...
26763 (state_writer::write_state_variables)
26764 (write_state_srcdir): ditto, renaming to...
26765 (state_writer::write_state_srcdir)
26766 (write_state_files_list): ditto, renaming to...
26767 (state_writer::write_state_files_list)
26768 (write_state_languages): ditto, renaming to...
26769 (state_writer::write_state_languages)
26770 (write_state): create a state_writer instance and use it when
26771 writing out the state file
26773 2013-05-17 Mike Stump <mikestump@comcast.net>
26775 PR rtl-optimization/57304
26776 * web.c (union_match_dups): Ensure that DF_REF_LOC exists before
26777 accessing DF_REF_REAL_LOC.
26779 2013-05-17 Jakub Jelinek <jakub@redhat.com>
26781 PR rtl-optimization/57281
26782 PR rtl-optimization/57300
26783 * config/i386/i386.md (extendsidi2_1 dead reg splitter): Remove.
26784 (extendsidi2_1 peephole2s): Add instead 2 new peephole2s, that undo
26785 what the other splitter did if the registers are dead.
26787 2013-05-17 Richard Biener <rguenther@suse.de>
26789 * tree-ssa-alias.c (stmt_kills_ref_p_1): Properly compare
26792 2013-05-17 Jakub Jelinek <jakub@redhat.com>
26794 * gcc.c (SANITIZER_SPEC): Reject -fsanitize=address -fsanitize=thread
26797 2013-05-17 Marek Polacek <polacek@redhat.com>
26799 * tree-ssa-strlen.c (handle_char_store): Don't invalidate cached
26800 length when doing non-zero store of storing '\0' to '\0'.
26802 2013-05-17 Jakub Jelinek <jakub@redhat.com>
26804 * tree-vect-patterns.c (vect_recog_rotate_pattern): For
26805 vect_external_def oprnd1 with loop_vinfo, try to emit
26806 optional cast, negation and and stmts on the loop preheader
26807 edge instead of into the pattern def seq.
26809 PR tree-optimization/57051
26810 * fold-const.c (const_binop) <case VEC_LSHIFT_EXPR,
26811 case VEC_RSHIFT_EXPR>: Fix BYTES_BIG_ENDIAN handling.
26813 2013-05-16 Nick Clifton <nickc@redhat.com>
26815 * config/rl78/rl78.c (rl78_attribute_table): Add naked.
26816 (rl78_is_naked_func): New function.
26817 (rl78_expand_prologue): Skip prologue generation for naked functions.
26818 (rl78_expand_epilogue): Skip epilogue generation for naked functions.
26819 * doc/extend.texi (naked): Add RL78 to the list of processors
26820 that supports this attribute.
26822 2013-05-16 Jeff Law <law@redhat.com>
26824 * Makefile.in (tree-switch-conversion.o): Depend on $(OPTABS_H).
26826 2013-05-16 Uros Bizjak <ubizjak@gmail.com>
26828 * config/i386/driver-i386.c (host_detect_local_cpu): Determine
26829 cache parameters using detect_caches_amd also for CYRIX,
26830 NSC and TM2 signatures.
26832 2013-05-16 Uros Bizjak <ubizjak@gmail.com>
26833 Dzianis Kahanovich <mahatma@eu.by>
26837 * config/i386/driver-i386.c (host_detect_local_cpu): Detect
26838 VIA/Centaur processors and determine their cache parameters
26839 using detect_caches_amd.
26841 2013-05-16 Teresa Johnson <tejohnson@google.com>
26843 * cfgrtl.c (verify_hot_cold_block_grouping): Return err.
26844 (rtl_verify_edges): New function.
26845 (rtl_verify_bb_insns): Ditto.
26846 (rtl_verify_bb_pointers): Ditto.
26847 (rtl_verify_bb_insn_chain): Ditto.
26848 (rtl_verify_fallthru): Ditto.
26849 (rtl_verify_bb_layout): Ditto.
26850 (rtl_verify_flow_info_1): Outline checks into new functions.
26851 (rtl_verify_flow_info): Ditto.
26853 2013-05-16 Steve Ellcey <sellcey@imgtec.com>
26855 * cfghooks.c (copy_bbs): Add update_dominance argument.
26856 * cfghooks.h (copy_bbs): Update prototype.
26857 * tree-cfg.c (gimple_duplicate_sese_region):
26858 Add update_dominance argument.
26859 * tree-flow.h (gimple_duplicate_sese_region): Update prototype.
26860 * tree-ssa-loop-ch.c (copy_loop_headers): Update
26861 gimple_duplicate_sese_region call.
26862 * tree-vect-loop-manip.c (slpeel_tree_duplicate_loop_to_edge_cfg):
26863 Update copy_bbs call.
26864 * cfgloopmanip.c (duplicate_loop_to_header_edge): Ditto.
26865 * trans-mem.c (ipa_uninstrument_transaction): Ditto.
26867 2013-05-16 Jakub Jelinek <jakub@redhat.com>
26869 * tree-vectorizer.h (NUM_PATTERNS): Increment.
26870 * tree-vect-patterns.c (vect_vect_recog_func_ptrs): Add
26871 vect_recog_rotate_pattern.
26872 (vect_recog_rotate_pattern): New function.
26874 2013-05-16 Jason Merrill <jason@redhat.com>
26876 * Makefile.in (LLINKER): New variable.
26877 (mostlyclean): Remove link mutex.
26878 * configure.ac: Handle --enable-link-mutex.
26879 * lock-and-run.sh: New script.
26881 2013-05-16 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
26884 * config/arm/arm.c (arm_function_ok_for_sibcall): Add check
26887 2013-05-16 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
26889 * reorg.c (link_cc0_insns): Wrap in #ifdef HAVE_cc0.
26891 2013-05-16 Greta Yorsh <Greta.Yorsh@arm.com>
26893 * config/arm/arm-protos.h (gen_movmem_ldrd_strd): New declaration.
26894 * config/arm/arm.c (next_consecutive_mem): New function.
26895 (gen_movmem_ldrd_strd): Likewise.
26896 * config/arm/arm.md (movmemqi): Update condition and code.
26897 (unaligned_loaddi, unaligned_storedi): New patterns.
26899 2013-05-16 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
26901 * config.gcc: Obsolete *-*-solaris2.9*.
26902 * doc/install.texi (Specific, *-*-solaris2*): Document it.
26904 2013-05-16 Richard Biener <rguenther@suse.de>
26906 * passes.c (init_optimization_passes): Move pass_parallelize_loops
26907 earlier, after GRAPHITE transforms and IV canonicalization.
26909 2013-05-16 Jakub Jelinek <jakub@redhat.com>
26911 * omp-low.c (extract_omp_for_data): For collapsed loops,
26912 if at least one of the loops is known at compile time to
26913 iterate zero times, set count to 0.
26914 (expand_omp_regimplify_p): New function.
26915 (expand_omp_for_generic): For collapsed loops, if at least
26916 one of the loops isn't known to iterate at least once,
26917 add runtime check with setting count to 0.
26918 (expand_omp_for_static_nochunk, expand_omp_for_static_chunk):
26919 For unsigned types if it isn't known at compile time that
26920 the loop will iterate at least once, add runtime check to bypass
26921 the whole loop if initial condition isn't true.
26923 2013-05-16 Nathan Sidwell <nathan@codesourcery.com>
26925 * varasm.c (default_use_anchors_for_symbol_p): Use decl_replaceable_p.
26927 2013-05-16 Marc Glisse <marc.glisse@inria.fr>
26929 PR middle-end/57286
26930 * fold-const.c (fold_ternary_loc) <VEC_COND_EXPR>: Disable some
26931 transformations to avoid an infinite loop.
26933 2013-05-16 Marek Polacek <polacek@redhat.com>
26935 * tree-scalar-evolution.c (scev_const_prop): Add more dumps.
26937 2013-05-15 Leif Ekblad <leif@rdos.net>
26939 * config/i386/i386.c (ix86_decompose_address): Use
26940 DEFAULT_TLS_SEG_REG to access TLS segment register.
26941 * config/i386/i386.h (DEFAULT_TLS_SEG_REG): New define.
26942 * config/i386/rdos.h (DEFAULT_TLS_SEG_REG): Ditto.
26943 (TARGET_TLS_DIRECT_SEG_REFS_DEFAULT): Ditto.
26945 2013-05-15 Richard Sandiford <rdsandiford@googlemail.com>
26948 * config/mips/mips.c (mips_function_ok_for_sibcall): Don't allow
26949 sibling calls to functions that would normally be lazily bound,
26950 unless $gp is call-clobbered.
26952 2013-05-15 Uros Bizjak <ubizjak@gmail.com>
26954 * config/i386/i386.c (ix86_option_override_internal): Update
26955 processor_alias_table for missing PTA_PRFCHW and PTA_FXSR flags. Add
26956 PTA_POPCNT to corei7 entry. Do not enable SSE prefetch on
26957 non-SSE 3dNow! targets. Enable TARGET_PRFCHW for TARGET_3DNOW targets.
26958 * config/i386/i386.md (prefetch): Enable for TARGET_PRFCHW instead
26960 (*prefetch_3dnow): Enable for TARGET_PRFCHW only.
26962 2013-05-15 Andreas Schwab <schwab@suse.de>
26964 * config/m68k/m68k.md (*rotlhi3_lowpart, *rotlqi3_lowpart): Name
26965 for rotlhi3+1 and rotlqi3+1, resp. Fix reference to non-existing
26968 2013-05-15 Teresa Johnson <tejohnson@google.com>
26970 * loop-unroll.c (report_unroll_peel): Check decision before
26971 emitting unroll/peel message.
26973 2013-05-15 Teresa Johnson <tejohnson@google.com>
26975 * function.h (has_bb_partition): New rtl_data flag.
26976 (bb_reorder_complete): Ditto.
26977 * cfgcleanup.c (try_crossjump_to_edge): Check for has_bb_partition
26978 instead of flag_reorder_blocks_and_partition.
26979 * cfgrtl.c (verify_hot_cold_block_grouping): Moved from bb-reorder.c,
26980 with some enhancements.
26981 (rtl_verify_flow_info_1): Call verify_hot_cold_block_grouping.
26982 * bb-reorder.c (connect_traces): Check for has_bb_partition
26983 instead of flag_reorder_blocks_and_partition.
26984 (verify_hot_cold_block_grouping): Moved to cfgrtl.c.
26985 (reorder_basic_blocks): Set bb_reorder_complete flag, remove call to
26986 verify_hot_cold_block_grouping.
26987 (partition_hot_cold_basic_blocks): Set has_bb_partition.
26989 2013-05-15 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
26992 * config/arm/predicates.md (call_insn_operand): New predicate.
26993 * config/arm/constraints.md ("Cs", "Ss"): New constraints.
26994 * config/arm/arm.md (*call_insn, *call_value_insn): Match only
26995 if insn is not a tail call.
26996 (*sibcall_insn, *sibcall_value_insn): Adjust for tailcalling through
26998 * config/arm/arm.h (enum reg_class): New caller save register class.
26999 (REG_CLASS_NAMES): Likewise.
27000 (REG_CLASS_CONTENTS): Likewise.
27001 * config/arm/arm.c (arm_function_ok_for_sibcall): Allow tailcalling
27004 2013-05-15 Richard Biener <rguenther@suse.de>
27006 * tree-vect-loop.c (vect_transform_loop): Use MSG_NOTE instead
27007 of MSG_OPTIMIZED_LOCATIONS.
27008 * tree-vect-slp.c (vect_make_slp_decision): Likewise.
27009 (vect_slp_transform_bb): Indicate location in MSG_OPTIMIZED_LOCATIONS
27011 * tree-vectorizer.c (vectorize_loops): Use MSG_NOTE instead
27012 of MSG_OPTIMIZED_LOCATIONS.
27013 (execute_vect_slp): Likewise.
27014 * tree-vect-loop-manip.c (vect_do_peeling_for_loop_bound): Likewise.
27015 (vect_create_cond_for_alias_checks): Likewise.
27016 * tree-vect-patterns.c (vect_recog_dot_prod_pattern): Likewise.
27017 (vect_recog_widen_mult_pattern): Likewise.
27018 (vect_recog_widen_sum_pattern): Likewise.
27019 (vect_recog_over_widening_pattern): Likewise.
27020 (vect_recog_widen_shift_pattern): Likewise.
27021 (vect_recog_vector_vector_shift_pattern): Likewise.
27022 (vect_recog_divmod_pattern): Likewise.
27023 (vect_recog_mixed_size_cond_pattern): Likewise.
27024 (vect_recog_bool_pattern): Likewise.
27025 (vect_pattern_recog_1): Likewise.
27027 2013-05-15 Martin Jambor <mjambor@suse.cz>
27029 * ipa-prop.c (ipa_make_edge_direct_to_target): Redirect calls to
27030 non-functions to builtin_unreachable.
27031 * ipa-inline-transform.c (inline_call): Do not assert estimates were
27032 correct when new direct edges were discovered.
27034 2013-05-15 Martin Jambor <mjambor@suse.cz>
27036 * ipa-prop.c (ipa_print_node_jump_functions): Print symbol order in
27037 header, print symbol order instead of node uid, print more information
27038 about indirect edge targets.
27039 (ipa_make_edge_direct_to_target): Print symbol order instead of node
27041 (ipa_make_edge_direct_to_target): Likewise.
27042 (remove_described_reference): Likewise.
27043 (propagate_controlled_uses): Likewise.
27044 (ipa_print_node_params): Also print symbol order.
27045 (ipcp_transform_function): Print symbol order instead of node uids.
27046 * cgraph.c (cgraph_redirect_edge_call_stmt_to_callee): Likewise.
27047 (cgraph_get_create_real_symbol_node): Likewise.
27048 * ipa-cp.c (print_lattice): Likewise.
27049 (print_all_lattices): Likewise.
27050 (determine_versionability): Likewise.
27051 (initialize_node_lattices): Likewise.
27052 (estimate_local_effects): Likewise.
27053 (update_profiling_info): Likewise.
27054 (create_specialized_node): Likewise.
27055 (perhaps_add_new_callers): Likewise.
27056 (decide_about_value): Likewise.
27057 (decide_whether_version_node): Likewise.
27058 (identify_dead_nodes): Likewise.
27059 * ipa-inline-analysis.c (dump_inline_edge_summary): Likewise.
27060 (dump_inline_summary): Likewise.
27061 (estimate_node_size_and_time): Likewise.
27062 (inline_analyze_function): Likewise.
27063 * ipa-inline.c (report_inline_failed_reason): Likewise.
27064 (want_early_inline_function_p): Likewise.
27065 (edge_badness): Likewise.
27066 (update_edge_key): Likewise.
27067 (inline_small_functions): Likewise. Add dumping of order to two other
27069 * ipa-pure-const.c (pure_const_read_summary): Print symbol order
27070 instead of node uids.
27071 (propagate_pure_const): Likewise.
27072 (propagate_pure_const): Likewise.
27073 * ipa-utils.c (dump_cgraph_node_set): Likewise.
27074 * lto-cgraph.c (input_node): Explicitly specify we dump uid.
27075 * lto-symtab.c (lto_cgraph_replace_node): Print symbol order instead
27077 * tree-pretty-print.c (dump_function_header): Likewise.
27078 * tree-sra.c (convert_callers_for_node): Dump in traditional format.
27079 Print symbol order instead of node uids.
27081 2013-05-15 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
27083 * config/s390/s390.c (s390_register_move_cost): Don't impose the
27084 FPR<->GPR move cost penalty if ldgr/lgdr can be used.
27086 2013-05-15 Richard Biener <rguenther@suse.de>
27088 PR tree-optimization/57275
27089 * tree-vect-data-refs.c (vect_analyze_data_ref_dependence): Fix
27090 return value for fail to do runtime alias checks for gather loads.
27092 2013-05-15 Jan Hubicka <jh@suse.cz>
27096 * lto-symtab.c (lto_symtab_symbol_p): Add external symbol;
27097 weakrefs are not external.
27098 (lto_symtab_merge_decls): Fix thinko when dealing with
27099 non-lto_symtab decls.
27100 (lto_symtab_merge_cgraph_nodes): Use lto_symtab_symbol_p.
27101 (lto_symtab_prevailing_decl): Get int sync with lto_symtab_symbol_p.
27102 * varpool.c (dump_varpool_node): Dump more flags.
27104 2013-05-15 Ganesh Gopalasubramanian <Ganesh.Gopalasubramanian@amd.com>
27106 * config/i386/i386.c (processor_alias_table): Add instruction
27107 FSGSBASE for AMD bdver3 architecture.
27109 2013-05-14 Jakub Jelinek <jakub@redhat.com>
27111 * tree.c (warn_deprecated_use): Print file:line using locus color.
27112 * diagnostic.c (diagnostic_report_current_module): Print file:line
27113 and file:line:column using locus color.
27115 2013-05-14 Mike Stump <mikestump@comcast.net>
27117 * gdbinit.in: Add __null.
27119 2013-05-14 Mike Stump <mikestump@comcast.net>
27121 * recog.h: Rename struct recog_data to Recog_data.
27122 * recog.c: Likewise.
27123 * reload.c (can_reload_into): Likewise.
27124 * config/picochip/picochip.c: Likewise.
27126 2013-05-14 Mike Stump <mikestump@comcast.net>
27128 * web.c (union_match_dups): Also check DF_REF_REAL_LOC.
27130 2013-05-14 Steven Bosscher <steven@gcc.gnu.org>
27132 * resource.h (struct resources): Remove unch_memory member.
27133 (CLEAR_RESOURCE): Don't clear unch_memory.
27134 * resource.c (mark_referenced_resources): Don't set it.
27135 (mark_set_resources): Likewise.
27136 (mark_target_live_regs): Don't clear it.
27137 (init_resource_info): Likewise.
27138 * reorg.c (resource_conflicts_p): Don't compare it.
27139 (redundant_insn): Don't set it.
27141 * rtl.h (next_label, skip_consecutive_labels, link_cc0_insns):
27143 * emit-rtl.c (next_label): Remove unused function.
27144 (skip_consecutive_labels, link_cc0_insns): Move to ...
27145 * reorg.c (skip_consecutive_labels, link_cc0_insns): ... here, the
27146 only place where these functions are used, and make them static.
27148 2013-05-14 Marc Glisse <marc.glisse@inria.fr>
27150 * fold-const.c (fold_negate_expr): Handle vectors.
27151 (fold_truth_not_expr): Make it static.
27152 (fold_invert_truthvalue): New static function.
27153 (invert_truthvalue_loc): Handle vectors. Do not call
27154 fold_truth_not_expr directly.
27155 (fold_unary_loc) <BIT_NOT_EXPR>: Handle comparisons.
27156 <TRUTH_NOT_EXPR>: Do not cast to boolean.
27157 (fold_comparison): Handle vector constants.
27158 (fold_binary_loc) <TRUTH_XOR_EXPR>: Remove redundant code.
27159 (fold_ternary_loc) <VEC_COND_EXPR>: Adapt more COND_EXPR optimizations.
27160 * tree.h (fold_truth_not_expr): Remove declaration.
27162 2013-05-14 James Greenhalgh <james.greenhalgh@arm.com>
27164 * config/aarch64/aarch64-simd.md
27165 (aarch64_vcond_internal<mode>): Rename to...
27166 (aarch64_vcond_internal<mode><mode>): ...This, for integer modes.
27167 (aarch64_vcond_internal<VDQF_COND:mode><VDQF:mode>): ...This for
27168 float modes. Clarify all iterator modes.
27169 (vcond<mode><mode>): Use new name for vcond expanders.
27170 (vcond<v_cmp_result><mode>): Likewise.
27171 (vcondu<mode><mode>: Likewise.
27172 * config/aarch64/iterators.md (VDQF_COND): New.
27174 2013-05-14 Marc Glisse <marc.glisse@inria.fr>
27177 * fold-const.c (fold_binary_loc) <shift>: Use an unsigned
27178 variable for the shift amount. Check that we shift by non-negative
27181 2013-05-14 Chung-Lin Tang <cltang@codesourcery.com>
27184 * config/arm/arm.h (EPILOGUE_USES): Only return true
27185 for LR_REGNUM after epilogue_completed.
27187 2013-05-14 Joern Rennecke <joern.rennecke@embecosm.com>
27189 * config/avr/avr.c (avr_encode_section_info): Bail out if the type
27190 is error_mark_node.
27192 2013-05-14 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
27195 * configure.ac (gcc_cv_ld_as_needed): Disable before Solaris 11
27196 and Solaris 11+/x86 with gld.
27197 * configure: Regenerate.
27199 2013-05-14 Jakub Jelinek <jakub@redhat.com>
27201 * expmed.c (expand_shift_1): Canonicalize rotates by
27202 constant bitsize / 2 to bitsize - 1.
27203 * simplify-rtx.c (simplify_binary_operation_1) <case ROTATE,
27204 case ROTATERT>: Likewise.
27207 2013-05-10 Jakub Jelinek <jakub@redhat.com>
27209 * config/i386/i386.md (rotateinv): New code attr.
27210 (*<rotate_insn><mode>3_1, *<rotate_insn>si3_1_zext,
27211 *<rotate_insn>qi3_1_slp): Emit rorl %eax instead of
27212 roll $31, %eax, etc.
27214 2013-05-14 Richard Biener <rguenther@suse.de>
27216 PR middle-end/57235
27217 * tree-eh.c (sink_clobbers): Give up for successors with
27218 multiple predecessors and no virtual uses.
27220 2013-05-14 Eric Botcazou <ebotcazou@adacore.com>
27222 * config/sparc/sp64-elf.h (CPP_SUBTARGET_SPEC): Delete.
27223 * config/sparc/openbsd64.h (CPP_SUBTARGET_SPEC): Likewise.
27225 2013-05-14 Jakub Jelinek <jakub@redhat.com>
27227 PR middle-end/57251
27228 * expr.c (expand_expr_real_2) <case WIDEN_MULT_EXPR>: Handle
27229 the case when both op0 and op1 have VOIDmode.
27231 2013-05-14 Kaushik Phatak <kaushik.phatak@kpitcummins.com>
27233 * config/rl78/rl78.md(mulsi3_g13): Add additional 'nop' required
27234 in multiply-accumulate mode.
27236 2013-05-13 Guozhi Wei <carrot@google.com>
27238 * dwarf2asm.c (dw2_output_indirect_constant_1): Mark new decl STATIC.
27240 2013-05-13 Kai Tietz <ktietz@redhat.com>
27243 * config/i386/cygming.h (TARGET_PECOFF): Define as true.
27244 * config/i386/i386.h (TARGET_PECOFF): Define by default as false.
27245 (PIC_OFFSET_TABLE_REGNUM): Use TARGET_PECOFF.
27246 * config/i386/i386.c (ix86_option_override_internal): Likewise.
27247 (ix86_expand_prologue): Likewise.
27248 (ix86_expand_split_stack_prologue): Likewise.
27249 (legitimate_pic_address_disp_p): Likewise.
27250 (legitimize_pic_address): Likewise.
27251 (legitimize_tls_address): Likewise.
27252 (legitimize_pe_coff_symbol): Likewise.
27253 (output_pic_addr_const): Likewise.
27254 (construct_plt_address): Likewise.
27255 (ix86_expand_call): Likewise.
27256 (x86_output_mi_thunk): Likewise.
27257 (x86_function_profiler): Likewise.
27259 2013-05-13 Sofiane Naci <sofiane.naci@arm.com>
27261 * config/aarch64/aarch64-simd.md (aarch64_simd_mov<mode>): Group
27262 similar switch cases.
27263 (aarch64_simd_mov): Rename to aarch64_split_simd_mov. Update.
27264 (aarch64_simd_mov_to_<mode>low): Delete.
27265 (aarch64_simd_mov_to_<mode>high): Delete.
27266 (move_lo_quad_<mode>): Add w<-r alternative.
27267 (aarch64_simd_move_hi_quad_<mode>): Likewise.
27268 (aarch64_simd_mov_from_*): Update type attribute.
27269 * config/aarch64/aarch64.c (aarch64_split_simd_move): Refacror switch
27272 2013-05-13 Jan Hubicka <jh@suse.cz>
27274 * mode-switching.c (optimize_mode_switching): Set correct RTL profile.
27275 * config/i386/i386.c (ix86_compute_frame_layout,
27276 ix86_expand_epilogue, emit_i387_cw_initialization,
27277 ix86_expand_vector_move_misalign, ix86_fp_comparison_strategy,
27278 ix86_local_alignment): Fix use of size/speed predicates.
27280 2013-05-13 Jakub Jelinek <jakub@redhat.com>
27282 PR tree-optimization/45216
27283 PR tree-optimization/57157
27284 * tree-ssa-forwprop.c (simplify_rotate): Only recognize
27285 the (-Y) & (B - 1) variant if OP is |.
27286 * expmed.c (expand_shift_1): For rotations by const0_rtx just
27287 return shifted. Use (-op1) & (prec - 1) as other_amount
27288 instead of prec - op1.
27290 2013-05-13 Martin Jambor <mjambor@suse.cz>
27292 PR middle-end/42371
27293 * ipa-prop.h (IPA_UNDESCRIBED_USE): New macro.
27294 (ipa_constant_data): New type.
27295 (ipa_jump_func): Use ipa_constant_data to hold information about
27296 constant jump functions.
27297 (ipa_get_jf_constant): Adjust to jump function type changes.
27298 (ipa_get_jf_constant_rdesc): New function.
27299 (ipa_param_descriptor): New field controlled_uses.
27300 (ipa_get_controlled_uses): New function.
27301 (ipa_set_controlled_uses): Likewise.
27302 * ipa-ref.h (ipa_find_reference): Declare.
27303 * ipa-prop.c (ipa_cst_ref_desc): New type.
27304 (ipa_print_node_jump_functions_for_edge): Adjust for jump function type
27306 (ipa_set_jf_constant): Likewise. Also create reference descriptions.
27307 New parameter cs. Adjust all callers.
27308 (ipa_analyze_params_uses): Detect uncontrolled and controlled uses.
27309 (remove_described_reference): New function.
27310 (jfunc_rdesc_usable): Likewise.
27311 (try_make_edge_direct_simple_call): Decrement controlled use count,
27312 attempt to remove reference if it hits zero.
27313 (combine_controlled_uses_counters): New function.
27314 (propagate_controlled_uses): Likewise.
27315 (ipa_propagate_indirect_call_infos): Call propagate_controlled_uses.
27316 (ipa_edge_duplication_hook): Duplicate reference descriptions.
27317 (ipa_print_node_params): Print described use counter.
27318 (ipa_write_jump_function): Adjust to jump function type changes.
27319 (ipa_read_jump_function): New parameter CS, pass it to
27320 ipa_set_jf_constant. Adjust caller.
27321 (ipa_write_node_info): Stream controlled use count
27322 (ipa_read_node_info): Likewise.
27323 * cgraph.c (cgraph_mark_address_taken_node): Bail out instead of
27325 * ipa-cp.c (ipcp_discover_new_direct_edges): Decrement controlled use
27326 count. Remove cloning-added reference if it reaches zero.
27327 * ipa-ref.c (ipa_find_reference): New function.
27329 2013-05-13 Ganesh Gopalasubramanian <Ganesh.Gopalasubramanian@amd.com>
27331 * config/i386/i386.c (processor_target_table): Modified default
27332 alignment values for AMD BD and BT architectures.
27334 2013-05-13 Marc Glisse <marc.glisse@inria.fr>
27336 * tree-vect-generic.c (uniform_vector_p): Move ...
27337 * tree.c (uniform_vector_p): ... here.
27338 * tree.h (uniform_vector_p): Declare it.
27339 * fold-const.c (fold_binary_loc) <shift>: Turn the second argument
27342 2013-05-13 Jakub Jelinek <jakub@redhat.com>
27344 PR tree-optimization/57230
27345 * tree-ssa-strlen.c (handle_char_store): Record length for
27346 array store from STRING_CST.
27348 PR tree-optimization/57230
27349 * tree-ssa-strlen.c (handle_char_store): Add missing integer_zerop
27352 2013-05-12 Joern Rennecke <joern.rennecke@embecosm.com>
27354 * config/epiphany/epiphany.c (epiphany_init): Check size of
27355 NUM_MODES_FOR_MODE_SWITCHING.
27356 (epiphany_expand_prologue):
27357 Remove CONFIG_REGNUM initial value handling code.
27358 (epiphany_optimize_mode_switching): Handle EPIPHANY_MSW_ENTITY_CONFIG.
27359 (epiphany_mode_needed, epiphany_mode_entry_exit): Likewise.
27360 (emit_set_fp_mode, epiphany_mode_after): Likewise.
27361 (epiphany_mode_needed) <Handle EPIPHANY_MSW_ENTITY_AND>:
27362 Don't return 1 for FP_MODE_NONE.
27363 * config/epiphany/epiphany.h (NUM_MODES_FOR_MODE_SWITCHING):
27364 Add value for EPIPHANY_MSW_ENTITY_CONFIG.
27365 (EPIPHANY_MSW_ENTITY_CONFIG, EPIPHANY_MSW_ENTITY_NUM): Define.
27366 * config/epiphany/epiphany.md (save_config): New pattern.
27368 2013-05-12 Uros Bizjak <ubizjak@gmail.com>
27370 * config/i386/i386.md (*zero_extendsidi2): Add *x->?r alternative.
27372 2013-05-10 Uros Bizjak <ubizjak@gmail.com>
27374 * config/i386/i386.md (memory): Handle sseishft1.
27375 * config/i386/sse.md (*vec_extractv4si): Remove memory attribute.
27376 (*vec_extractv2di_1): Ditto.
27378 2013-05-10 Vladimir Makarov <vmakarov@redhat.com>
27380 * lra-assigns.c (find_hard_regno_for): Add 1 to the cost of call
27383 2013-05-10 Sebastian Huber <sebastian.huber@embedded-brains.de>
27385 * config/arm/t-rtems-eabi: Remove mthumb/march=armv7 multilib.
27386 Add mthumb/march=armv7-a multilib.
27387 Add mthumb/march=armv7-r multilib.
27388 Add mthumb/march=armv7-a/mfpu=neon/mfloat-abi=hard multilib.
27390 2013-05-10 Ralf Corsépius <ralf.corsepius@rtems.org>
27392 * config/v850/t-rtems: Add more multilibs.
27394 2013-05-10 Richard Biener <rguenther@suse.de>
27396 PR tree-optimization/57214
27397 * tree-ssa-loop-ivcanon.c (propagate_constants_for_unrolling): Do
27398 not propagate from SSA names that occur in abnormal PHI nodes.
27400 2013-05-10 Marc Glisse <marc.glisse@inria.fr>
27402 * stor-layout.c (element_precision): New function.
27403 * machmode.h (element_precision): Declare it.
27404 * tree.c (build_minus_one_cst): New function.
27405 (element_precision): Likewise.
27406 * tree.h (build_minus_one_cst): Declare new function.
27407 (element_precision): Likewise.
27408 * fold-const.c (operand_equal_p): Use element_precision.
27409 (fold_binary_loc): Handle vector types.
27410 * convert.c (convert_to_integer): Use element_precision.
27411 * gimple.c (iterative_hash_canonical_type): Handle complex and vectors
27414 2013-05-10 Richard Sandiford <rdsandiford@googlemail.com>
27416 * config/mips/mips-protos.h (m16_uimm3_b, m16_simm4_1, m16_nsimm4_1)
27417 (m16_simm5_1, m16_nsimm5_1, m16_uimm5_4, m16_nuimm5_4, m16_simm8_1)
27418 (m16_nsimm8_1, m16_uimm8_1, m16_nuimm8_1, m16_uimm8_m1_1, m16_uimm8_4)
27419 (m16_nuimm8_4, m16_simm8_8, m16_nsimm8_8): Delete.
27420 * config/mips/mips.c (m16_check_op, m16_uimm3_b, m16_simm4_1)
27421 (m16_nsimm4_1, m16_simm5_1, m16_nsimm5_1, m16_uimm5_4, m16_nuimm5_4)
27422 (m16_simm8_1, m16_nsimm8_1, m16_uimm8_1, m16_nuimm8_1, m16_uimm8_m1_1)
27423 (m16_uimm8_4, m16_nuimm8_4, m16_simm8_8, m16_nsimm8_8): Delete.
27424 * config/mips/constraints.md (Udb8, Usb5, Usb8, Usd8, Uub8, Uuw5)
27425 (Uuw8): New constraints.
27426 (Usb4): Move into alphabetical order.
27427 * config/mips/predicates.md (db8_operand, sb5_operand, sb8_operand)
27428 (sd8_operand, ub8_operand, uw8_operand): New predicates.
27429 * config/mips/mips.md (*xor<mode>3, *xor<mode>3_mips16): Name
27430 previously unnamed patterns.
27431 (*add<mode>3_mips16, *xor<mode>3_mips16, *<optab>si3_mips16)
27432 (*ashldi3_mips16, *ashrdi3_mips16, *lshrdi3_mips16)
27433 (*slt<u>_<GPR:mode><GPR2:mode>_mips16)
27434 (*sle<u>_<GPR:mode><GPR2:mode>_mips16): Use constraints instead
27435 of set_attr_alternative/if_then_else. Use extended_mips16 instead
27436 of specific lengths.
27438 2013-05-10 Jakub Jelinek <jakub@redhat.com>
27440 * config/i386/i386.md (rotateinv): New code attr.
27441 (*<rotate_insn><mode>3_1, *<rotate_insn>si3_1_zext,
27442 *<rotate_insn>qi3_1_slp): Emit rorl %eax instead of
27443 roll $31, %eax, etc.
27445 PR tree-optimization/45216
27446 PR tree-optimization/57157
27447 * tree-ssa-forwprop.c (simplify_rotate): New function.
27448 (ssa_forward_propagate_and_combine): Call it.
27450 2013-05-10 Richard Biener <rguenther@suse.de>
27452 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment): Do not
27453 disable peeling when we version for aliasing.
27454 (vector_alignment_reachable_p): Honor explicit user alignment.
27455 (vect_supportable_dr_alignment): Likewise.
27456 * tree-vect-loop-manip.c (vect_can_advance_ivs_p): Use
27457 STMT_VINFO_LOOP_PHI_EVOLUTION_PART instead of recomputing it.
27458 * tree-vect-loop.c (vect_transform_loop): First apply versioning,
27459 then peeling to arrange for the cost-model check to come first.
27461 2013-05-10 Alan Modra <amodra@gmail.com>
27463 * configure.ac (HAVE_AS_TLS): Swap powerpc64 and powerpc cases.
27464 (HAVE_LD_LARGE_TOC): Don't mention AIX in help text.
27465 * configure: Regenerate.
27467 2013-05-10 Alan Modra <amodra@gmail.com>
27470 * varasm.c (default_elf_select_section): Move !DECL_P check..
27471 (get_named_section): ..to here before calling get_section_name.
27473 (default_section_type_flags): Add DECL_P check.
27474 * config/i386/winnt.c (i386_pe_section_type_flags): Likewise.
27475 * config/rs6000/rs6000.c (rs6000_xcoff_section_type_flags): Likewise.
27477 2013-05-09 Joern Rennecke <joern.rennecke@embecosm.com>
27479 * config/epiphany/epiphany.c (epiphany_expand_prologue):
27480 When using gen_stack_adjust_str with a register offset, add a
27481 REG_FRAME_RELATED_EXPR note.
27483 2013-05-09 Uros Bizjak <ubizjak@gmail.com>
27485 * config/i386/sse.md (*vec_extractv4si_0_zext): New pattern.
27486 (*vec_extractv4si_zext_mem): Ditto.
27487 (*vec_extractv2di): Add 0->x and x->x alternatives.
27488 * config/i386/mmx.md (*vec_extractv2si_zext_mem): New pattern.
27489 * config/i386/i386.md (*zero_extendsidi2): Add *Yj->?r alternative.
27491 2013-05-09 Jason Merrill <jason@redhat.com>
27493 N3639 C++1y VLA support
27494 * gimplify.c (gimplify_vla_decl): Don't touch an existing
27497 * tree.c (build_constructor_va): New.
27498 * tree.h: Declare it.
27500 2013-05-09 Martin Jambor <mjambor@suse.cz>
27503 * gimple-fold.c (canonicalize_constructor_val): Call
27504 cgraph_get_create_real_symbol_node instead of cgraph_get_create_node.
27506 2013-05-09 Jan Hubicka <jh@suse.cz>
27507 Richard Biener <rguenther@suse.de>
27510 * symtab.c (symtab_make_decl_local): Do not add private names.
27512 2013-05-09 Jan Hubicka <jh@suse.cz>
27515 * symtab.c (insert_to_assembler_name_hash): Handle clones.
27516 (unlink_from_assembler_name_hash): Likewise.
27517 (symtab_prevail_in_asm_name_hash, symtab_register_node,
27518 symtab_unregister_node, symtab_initialize_asm_name_hash,
27519 change_decl_assembler_name): Update.
27521 2013-05-09 Sofiane Naci <sofiane.naci@arm.com>
27523 * config/aarch64/aarch64.md: New movtf split.
27524 (*movtf_aarch64): Update.
27525 (aarch64_movdi_tilow): Handle TF modes and rename to
27526 aarch64_movdi_<mode>low.
27527 (aarch64_movdi_tihigh): Handle TF modes and rename to
27528 aarch64_movdi_<mode>high
27529 (aarch64_movtihigh_di): Handle TF modes and rename to
27530 aarch64_mov<mode>high_di
27531 (aarch64_movtilow_di): Handle TF modes and rename to
27532 aarch64_mov<mode>low_di
27533 (aarch64_movtilow_tilow): Remove spurious whitespace.
27534 * config/aarch64/aarch64.c (aarch64_split_128bit_move): Handle TFmode
27536 (aarch64_print_operand): Update.
27538 2013-05-09 Alan Modra <amodra@gmail.com>
27540 * configure.ac (HAVE_AS_TLS): Enable tests for powerpcle and
27542 * configure: Regenerate.
27544 2013-05-08 Uros Bizjak <ubizjak@gmail.com>
27546 * config/i386/mmx.md (*vec_extract* splitters): Simplify post-reload
27547 splitter preparation statements.
27548 * config/i386/sse.md (*vec_extract* splitters): Ditto.
27549 (*avx_vperm_broadcast_<mode>): Use adjust_address instead of
27552 2013-05-08 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
27554 * gimple-ssa-strength-reduction.c (count_candidates): Change
27555 return value to int.
27556 (analyze_candidates_and_replace): Change type of length to int.
27558 2013-05-08 Uros Bizjak <ubizjak@gmail.com>
27560 * config/i386/sse.md (PEXTR_MODE, PEXTR_MODEx): Remove.
27561 (*vec_extract<mode>): Use VI12_128 mode iterator.
27562 (*vec_extract<mode>_mem): Ditto.
27563 (*vec_extract*_mem splitters): Merge splitters using VI_128 mode
27566 2013-05-08 Diego Novillo <dnovillo@google.com>
27571 2012-08-17 Diego Novillo <dnovillo@google.com>
27574 * configure.ac: Add libintl.h to AC_CHECK_HEADERS list.
27575 * config.in: Regenerate.
27576 * configure: Regenerate.
27577 * intl.h: Always include libintl.h if HAVE_LIBINTL_H is set.
27579 2013-05-08 Jan Hubicka <jh@suse.cz>
27582 * cgraph.c (cgraph_make_node_local_1): Se unique_name.
27583 * cgraph.h (symtab_node_base): Add unique_name.
27584 * lto-cgraph.c (lto_output_node, lto_output_varpool_node,
27585 input_overwrite_node, input_varpool_node): Stream unique_name.
27586 * cgraphclones.c (cgraph_create_virtual_clone,
27587 cgraph_function_versioning): Set unique_name.
27588 * ipa.c (function_and_variable_visibility): Set unique_name.
27590 2013-05-08 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
27592 * gimple-ssa-strength-reduction.c (find_phi_def): Revert former "fix."
27593 (alloc_cand_and_find_basis): Restrict conditional candidate
27594 processing to CAND_MULTs.
27596 2013-05-08 Jan Hubicka <jh@suse.cz>
27599 lto-symtab.c (lto_symtab_symbol_p): New function.
27600 (lto_symtab_resolve_can_prevail_p, lto_symtab_resolve_symbols,
27601 lto_symtab_resolve_symbols, lto_symtab_merge_decls_2,
27602 lto_symtab_merge_decls_1, lto_symtab_merge_cgraph_nodes_1):
27603 Skip static symbols.
27605 2013-05-08 Paolo Carlini <paolo.carlini@oracle.com>
27607 PR tree-optimization/57200
27608 * tree-ssa-loop-niter.c (do_warn_aggressive_loop_optimizations):
27609 Only call inform if the preceding warning_at returns true.
27611 2013-05-07 Han Shen <shenhan@google.com>
27613 * cfgexpand.c (record_or_union_type_has_array_p): New function.
27614 (expand_used_vars): Add logic handling '-fstack-protector-strong'.
27615 * common.opt (fstack-protector-strong): New option.
27616 * doc/cpp.texi (__SSP_STRONG__): New builtin "__SSP_STRONG__".
27617 * doc/invoke.texi (Optimization Options): Document
27618 "-fstack-protector-strong".
27619 * gcc.c (LINK_SSP_SPEC): Add 'fstack-protector-strong'.
27621 2013-05-06 Steven Bosscher <steven@gcc.gnu.org>
27623 * config/mips/mips.c (mips_machine_reorg2): Return 0.
27625 2013-05-07 Vladimir Makarov <vmakarov@redhat.com>
27627 * ira.c (update_equiv_regs): Add insn having equiv memory even if
27628 it is not lhs of the insn.
27629 (setup_reg_equiv): Remove insn having equiv memory which it is not
27631 * lra-constraints.c (process_address): Try to improve generation
27632 code for address base + disp.
27633 (lra_constraints): Make correct the code for checking insn setting
27634 up backward equivalence. Remove insn only if it is in the init
27636 * lra-eliminations.c (update_reg_eliminate): Change return value.
27637 (lra_eliminate): Use the result.
27639 2013-05-07 Uros Bizjak <ubizjak@gmail.com>
27641 * config/i386/sse.md (ssescalarnummask): New mode attribute.
27642 (PEXTR_MODE, PEXTR_MODEx): New mode iterators.
27643 (*vec_extract<mode>): Merge from *sse4_1_pextrb_memory and
27644 *sse4_1_pextrw_memory using PEXTR_MODE mode iterator. Handle
27645 register target operands.
27646 (*vec_extractv8hi_sse2): New pattern.
27647 (*vec_extractv16qi_zext): Rename from *sse4_1_pextrb_<mode>.
27648 (*vec_extractv8hi_zext): Rename from *sse2_pextrw_<mode>.
27649 (*vec_extract<mode>_mem): New insn and split pattern.
27651 2013-05-07 Christophe Lyon <christophe.lyon@linaro.org>
27653 * config/arm/arm.c (arm_asan_shadow_offset): New function.
27654 (TARGET_ASAN_SHADOW_OFFSET): Define.
27655 * config/arm/linux-eabi.h (ASAN_CC1_SPEC): Define.
27656 (LINUX_OR_ANDROID_CC): Add ASAN_CC1_SPEC.
27658 2013-05-07 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
27660 * gimple-ssa-strength-reduction.c (MAX_INCR_VEC_LEN): New constant.
27661 (incr_vec_index): Return -1 if increment not found.
27662 (create_add_on_incoming_edge): Assert if increment not found.
27663 (record_increment): Limit number of increments recorded.
27664 (all_phi_incrs_profitable): Return false if an increment not found.
27665 (replace_profitable_candidates): Don't process increments that were
27667 (analyze_candidates_and_replace): Limit size of incr_vec.
27669 2013-05-07 Richard Biener <rguenther@suse.de>
27671 * calls.c (special_function_p): setjmp-like functions are leaf.
27672 * builtins.def (BUILT_IN_SETJMP): setjmp is leaf.
27673 * tree-inline.c (update_ssa_across_abnormal_edges): Remove assert.
27675 2013-05-07 Sofiane Naci <sofiane.naci@arm.com>
27677 * config/aarch64/aarch64-simd.md (*aarch64_simd_mov<mode>): call splitter.
27678 (aarch64_simd_mov<mode>): New expander.
27679 (aarch64_simd_mov_to_<mode>low): New instruction pattern.
27680 (aarch64_simd_mov_to_<mode>high): Likewise.
27681 (aarch64_simd_mov_from_<mode>low): Likewise.
27682 (aarch64_simd_mov_from_<mode>high): Likewise.
27683 (aarch64_dup_lane<mode>): Update.
27684 (aarch64_dup_lanedi): New instruction pattern.
27685 * config/aarch64/aarch64-protos.h (aarch64_split_simd_move): New prototype.
27686 * config/aarch64/aarch64.c (aarch64_split_simd_move): New function.
27688 2013-05-07 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
27690 * gimple-ssa-strength-reduction.c (lazy_create_slsr_reg): Remove.
27691 (replace_mult_candidate): Remove unnecessary argument; remove
27692 unnecessary parameter from call to introduce_cast_before_cand.
27693 (replace_unconditional_candidate): Remove unnecessary parameter
27694 from call to replace_mult_candidate.
27695 (replace_conditional_candidate): Likewise.
27696 (insert_initializers): Use make_temp_ssa_name.
27697 (introduce_cast_before_cand): Remove unnecessary argument; use
27698 make_temp_ssa_name.
27699 (replace_one_candidate): Remove unnecessary argument; remove
27700 unnecessary parameter from calls to introduce_cast_before_cand.
27701 (replace_profitable_candidates): Remove unnecessary parameters
27702 from calls to replace_one_candidate.
27704 2013-05-07 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
27706 * gimple-ssa-strength-reduction.c (find_phi_def): Don't record a
27707 phi def as possibly hiding a basis for a CAND_ADD whose operands
27708 have been commuted in the analysis.
27709 (alloc_cand_and_find_basis): Add parms to call to find_phi_def.
27711 2013-05-07 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
27713 * config/aarch64/aarch64.md
27714 (cmp_swp_<optab><ALLX:mode>_shft_<GPI:mode>): Restrict the
27715 shift value between 0-4.
27717 2013-05-07 Richard Biener <rguenther@suse.de>
27719 * double-int.h (rshift): New overload.
27720 * double-int.c (rshift): New function.
27721 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Optimize.
27722 (create_reference_ops_from_ref): Remove.
27723 (vn_reference_insert): Use shared ops for constructing the
27724 reference and copy it.
27726 2013-05-07 Richard Biener <rguenther@suse.de>
27728 PR middle-end/57190
27729 * tree-eh.c (sink_clobbers): Properly propagate
27730 SSA_NAME_OCCURS_IN_ABNORMAL_PHI.
27732 2013-05-07 Jakub Jelinek <jakub@redhat.com>
27734 PR tree-optimization/57149
27735 * tree-ssa-uninit.c (uninit_undefined_value_p): New inline.
27736 (can_skip_redundant_opnd, compute_uninit_opnds_pos,
27737 collect_phi_def_edges, execute_late_warn_uninitialized): Use
27738 uninit_undefined_value_p instead of ssa_undefined_value_p.
27741 * expr.c (expand_expr_addr_expr_1): Handle COMPOUND_LITERAL_EXPR
27742 for modifier == EXPAND_INITIALIZER.
27744 2013-05-07 Anton Blanchard <anton@samba.org>
27746 * configure.ac (HAVE_LD_LARGE_TOC): Use correct linker emulation
27747 for powerpc64 little endian.
27748 * configure: Regenerate.
27750 2013-05-06 Graham Stott <grahams@btinternet.com>
27752 * expmed.c (init_expmed_rtl): Remove unused fields reg_fld, plus_fld,
27753 mult_fld, sdiv_fld1, udiv_fld1, sdiv_32_fld1, smod_32_fld1,
27754 wide_mult_fld1, wide_lshr_fld1, shift_fld1, shift_mult_fld1,
27755 shift_add_fld1, shift_sub0_fld1, shift_sub1_fld1.
27757 2013-05-06 Graham Stott <grahams@btinternet.com>
27759 * gensupport.c (add_predicate_code): Also exclude SCRATCH from rtx
27760 codes which allow non-lvalues.
27762 2013-05-06 Marc Glisse <marc.glisse@inria.fr>
27764 * tree.c (integer_all_onesp) <COMPLEX_CST>: Test that both
27765 components are all 1s.
27766 (integer_minus_onep): New function.
27767 * tree.h (integer_minus_onep): Declare it.
27768 * fold-const.c (fold_binary_loc) <MULT_EXPR>: Test
27769 integer_minus_onep instead of integer_all_onesp.
27771 2013-05-06 Oleg Endo <olegendo@gcc.gnu.org>
27774 * config/sh/sh.md (*cmp_div0s_0, *cmp_div0s_1, *movsicc_div0s): Add
27775 variations of these patterns.
27777 2013-05-06 Uros Bizjak <ubizjak@gmail.com>
27779 * config/i386/i386.md (isa): Add x64_sse4 member.
27780 (enabled): Handle x64_sse4.
27781 (*movdi_internal): Add *x->?r alternative to emit pextrq $0,%xmm,%reg
27782 instruction for 64bit SSE4_1 targets. Update insn attributes.
27783 (*movsi_internal): Add *x->?r alternative to emit pextrd $0,%xmm,%reg
27784 instruction for SSE4_1 targets. Update insn attributes.
27785 * config/i386/sse.md (*vec_extract<ssevecmodelower>_0): Merge
27786 with *sse4_1_pextrd and *sse4_1_pextrq having const_0 selector.
27787 (*vec_extractv2di_1): Merge with *sse4_1_pextrq having
27789 (*vec_extractv4si): Rename from *sse4_1_pextrd.
27790 (*vec_extractv4si_zext): Rename from *sse4_1_pextrd_zext.
27791 (*vec_extract<ssevecmodelower>_0 splitters): Merge splitters together.
27793 2013-05-06 Oleg Endo <olegendo@gcc.gnu.org>
27796 * config/sh/sh.md (tstsi_t_zero_extract_eq): Use QIHISIDI mode iterator.
27798 2013-05-06 Maxim Kuznetsov <maks.kuznetsov@gmail.com>
27800 * final.c (do_assembler_dialects): Don't handle curly braces and
27801 vertical bar escaped by % as dialect delimiters.
27802 (output_asm_insn): Print curly braces and vertical bar if escaped
27803 by % and ASSEMBLER_DIALECT defined.
27804 * doc/tm.texi.in (ASSEMBLER_DIALECT): Document new standard escapes.
27805 * doc/tm.texi: Regenerated.
27807 2013-05-06 Steven Bosscher <steven@gcc.gnu.org>
27809 * config/mips/mips.c: Include tree-pass.h.
27810 (mips_reorg): Split in pre- and post-dbr_schedule parts.
27811 (mips_machine_reorg2): Move mips_reorg post-dbr_schedule parts here.
27812 (pass_mips_machine_reorg2): New machine specific pass.
27813 (insert_pass_mips_machine_reorg2): New pass plugin definition.
27814 (mips_option_override): Register the new pass.
27815 * rtl.h (cleanup_barriers): Remove prototype.
27816 (dbr_schedule): Likewise.
27817 * jump.c (cleanup_barriers): Make static.
27818 * reorg.c (dbr_schedule): Likewise.
27820 2013-05-06 Richard Biener <rguenther@suse.de>
27822 PR tree-optimization/57185
27823 * tree-parloops.c (add_field_for_reduction): Handle anonymous
27824 SSA names properly.
27826 2013-05-06 Uros Bizjak <ubizjak@gmail.com>
27829 * config/i386/i386.c (add_parameter_dependencies): Add dependence
27830 between "first_arg" and "insn", not "last" and "insn".
27832 2013-05-06 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
27834 * gimple-ssa-strength-reduction.c (slsr_process_phi): Re-enable.
27835 (find_candidates_in_block): Re-enable slsr_process_phi.
27836 (create_phi_basis): Fix double counting of candidate adjustment.
27838 2013-05-06 Richard Biener <rguenther@suse.de>
27840 PR middle-end/57147
27841 * tree-cfg.c (gimple_purge_dead_abnormal_call_edges): If
27842 the edge is also fallthru, preserve it and just clear the
27844 * tree-cfgcleanup.c (remove_fallthru_edge): If the edge is
27845 also complex, preserve that and just clear the fallthru flag.
27846 * tree-inline.c (update_ssa_across_abnormal_edges): Also
27847 update virtual operands.
27849 2013-05-06 Alan Modra <amodra@gmail.com>
27851 * config/rs6000/linux.h (DEFAULT_ASM_ENDIAN): Define.
27852 (LINK_OS_LINUX_EMUL): Use ENDIAN_SELECT.
27853 * config/rs6000/linux64.h (DEFAULT_ASM_ENDIAN): Define.
27854 * config/rs6000/sysv4le.h (DEFAULT_ASM_ENDIAN): Define.
27855 (LINK_TARGET_SPEC): Use ENDIAN_SELECT.
27856 * config/rs6000/sysv4.h (DEFAULT_ASM_ENDIAN): Define as -mbig.
27858 2013-05-06 Alan Modra <amodra@gmail.com>
27860 * config/rs6000/sysv4.h (ENDIAN_SELECT): Define, extracted from
27861 (ASM_SPEC): ..here. Emit DEFAULT_ASM_ENDIAN too.
27862 (DEFAULT_ASM_ENDIAN): Define.
27863 (CC1_SPEC, LINK_TARGET_SPEC): Use ENDIAN_SELECT.
27864 * config/rs6000/linux64.h (ASM_SPEC32): Remove endian options.
27865 Update -K PIC clause from sysv4.h.
27866 (ASM_SPEC_COMMON): Use ENDIAN_SELECT.
27867 (LINK_OS_LINUX_EMUL32, LINK_OS_LINUX_EMUL64): Likewise.
27869 2013-05-06 Alan Modra <amodra@gmail.com>
27871 * config/rs6000/rs6000.md (bswapdi 2nd splitter): Don't swap words
27872 twice for little-endian.
27873 (ashrdi3_no_power, ashrdi3): Support little-endian.
27875 2013-05-06 Oleg Endo <olegendo@gcc.gnu.org>
27878 * config/sh/sh.c (sh_rtx_costs): Handle SMIN and SMAX cases.
27879 * config/sh/sh.md (*clips, uminsi3, *clipu, clipu_one): New insns and
27881 * config/sh/iterators.md (SMIN_SMAX): New code iterator.
27882 * config/sh/predicates.md (arith_reg_or_0_or_1_operand,
27883 clips_min_const_int, clips_max_const_int, clipu_max_const_int):
27886 2013-05-05 Steven Bosscher <steven@gcc.gnu.org>
27887 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
27889 * config.gcc (hppa*-*-*): Remove MASK_BIG_SWITCH from CPU default.
27890 * config/pa/pa.opt: Make mbig-switch a no-op.
27891 * config/pa/pa.h (TARGET_DEFAULT): Remove MASK_BIG_SWITCH.
27892 (CASE_VECTOR_MODE): Always return SImode.
27893 (ASM_OUTPUT_ADDR_VEC_ELT, ASM_OUTPUT_ADDR_DIFF_ELT): Remove code
27894 for the !TARGET_BIG_SWITCH case.
27895 * config/pa/pa-linux.h: Likewise.
27896 * config/pa/pa-openbsd.h: Likewise.
27897 * config/pa/pa-hpux.h: Define TARGET_DEFAULT to 0.
27898 * config/pa/pa.md (short_jump): Remove define_insn.
27899 (casesi): Remove code for the !TARGET_BIG_SWITCH case.
27900 (casesi0): Remove define_insn.
27901 (type): Remove btable_branch.
27902 (pa_combine_type): Likewise.
27903 (in_nullified_branch_delay): Likewise.
27904 (in_call_delay): Likewise.
27905 (define_delay): Likewise.
27906 (define_insn_reservation "Z3"): Likewise.
27907 (define_insn_reservation "Z4"): Likewise.
27908 * config/pa/pa.c (pa_reorg): Remove code for !TARGET_BIG_SWITCH.
27909 (pa_adjust_insn_length): Remove adjustment for btable branches.
27910 * doc/invoke.texi (HPPA Options): Delete documentation for mbig-switch
27913 2013-05-05 Uros Bizjak <ubizjak@gmail.com>
27915 * config/i386/sse.md (*vec_extract<ssevecmodelower>_0): Merge
27916 from sse2_stored and *sse2_storeq_rex64 using SWI48 mode iterator.
27917 Add m->r,x alternatives.
27918 (*vec_extract<ssevecmodelower>_0 splitters): Merge V2DI and V4SI
27919 splitters using SWI48x mode iterator.
27920 (*vec_extract_v2di_0_sse): Rename from *sse2_storeq. Disable for
27921 TARGET_64BIT. Add m->x alternative.
27922 (*vec_extractv4si_mem): Rename from *vec_ext_v4si_mem.
27923 Add o->x alternative. Enable for TARGET_SSE.
27924 (sse_storeq): Remove expander.
27925 (*vec_extractv2di_1): Enable for TARGET_SSE. Split alternatives
27926 with memory input operand.
27927 (*vec_extractv2di_1 splitter): New.
27928 (*vec_extractv4sf_mem): Rename from *vec_extract_v4sf_mem.
27929 * config/i386/i386.md (ssevecmodelower): New mode attribute.
27931 2013-05-04 Segher Boessenkool <segher@kernel.crashing.org>
27933 * config/rs6000/rs6000.c (INT_P): Reformat. Delete obsolete comment.
27934 (INT_LOWPART): Delete.
27935 (extract_MB): Adjust.
27936 (extract_ME): Adjust.
27937 (print_operand): Adjust.
27939 2013-05-04 Segher Boessenkool <segher@kernel.crashing.org>
27941 * config/rs6000/predicates.md (reg_or_add_cint_operand,
27942 reg_or_sub_cint_operand): Delete "HOST_BITS_PER_WIDE_INT == 32" case.
27943 (reg_or_logical_cint_operand, easy_fp_constant,
27944 logical_const_operand): Delete "CONST_DOUBLE" case.
27945 * config/rs6000/rs6000.c (num_insns_constant_wide): Delete
27946 "HOST_BITS_PER_WIDE_INT == 64" test.
27947 (num_insns_constant): Ditto. Delete CONST_DOUBLE DImode/VOIDmode case.
27948 (build_mask64_2_operands): Delete "HOST_BITS_PER_WIDE_INT >= 64" test.
27949 (rs6000_emit_set_const): Delete CONST_DOUBLE case.
27950 (rs6000_emit_set_long_const): Delete "HOST_BITS_PER_WIDE_INT >= 64"
27952 (includes_rldic_lshift_p, includes_rldicr_lshift_p): Delete
27953 CONST_DOUBLE DImode/VOIDmode case.
27954 (INT_P, INT_LOWPART): Delete CONST_DOUBLE case.
27955 (print_operand): Delete "HOST_BITS_PER_WIDE_INT == 32" case. Delete
27956 CONST_DOUBLE VOIDmode case.
27957 (output_toc): Delete "HOST_BITS_PER_WIDE_INT == 32" case.
27958 (rs6000_rtx_costs): Delete CONST_DOUBLE DImode/VOIDmode case.
27959 * config/rs6000/rs6000.md (iordi3, xordi3, splitter for these):
27960 Delete CONST_DOUBLE case.
27961 (splitters for mov FMOVE64 const_double): Delete
27962 "HOST_BITS_PER_WIDE_INT == 32" case. Delete
27963 "HOST_BITS_PER_WIDE_INT >= 64" test.
27964 (splitter for mov DI const_int): Delete "HOST_BITS_PER_WIDE_INT == 32"
27966 (mov DI const_double): Delete.
27968 2013-05-04 Jakub Jelinek <jakub@redhat.com>
27970 * combine.c (combine_simplify_rtx) <case SUBREG>: If nonzero_bits
27971 on op shows all bits zero in mode of a lowpart subreg, return zero.
27973 2013-05-03 Michael Meissner <meissner@linux.vnet.ibm.com>
27976 * config/rs6000/rs6000.h (HARD_REGNO_CALLER_SAVE_MODE): Use DFmode
27977 to save TFmode registers and DImode to save TImode registers for
27978 caller save operations.
27979 (HARD_REGNO_CALL_PART_CLOBBERED): TFmode and TDmode do not need to
27980 mark being partially clobbered since they only use the first
27983 * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): TFmode
27984 and TDmode only use the upper 64-bits of each VSX register.
27986 2013-05-03 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
27988 * gimple-ssa-strength-reduction.c (slsr_process_phi): Disable.
27989 (find_candidates_in_block): Disable slsr_process_phi.
27991 2013-05-03 Guozhi Wei <carrot@google.com>
27993 * coverage.c (coverage_obj_init): Move the construction of gcov
27995 (build_init_ctor): ... here.
27997 2013-05-03 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
27999 * gimple-ssa-strength-reduction.c (cand_kind): Add CAND_PHI.
28000 (slsr_cand_d): Redefine def_phi.
28001 (stride_status, phi_adjust_status, count_phis_status): New enums.
28002 (find_phi_def): New.
28003 (find_basis_for_base_expr): New.
28004 (find_basis_for_candidate): Handle hidden bases.
28005 (alloc_cand_and_find_basis): Handle phi candidates.
28006 (slsr_process_phi): New.
28007 (create_mul_ssa_cand): Exclude phi base candidates; use integer_onep.
28008 (create_mul_imm_cand): Likewise.
28009 (create_add_ssa_cand): Exclude phi base candidates.
28010 (create_add_imm_cand): Likewise.
28011 (slsr_process_cast): Likewise.
28012 (slsr_process_copy): Likewise.
28013 (find_candidates_in_block): Handle phi candidates.
28014 (dump_candidate): Likewise.
28015 (unconditional_cands): Delete.
28016 (unconditional_cands_with_known_stride_p): Delete.
28017 (phi_dependent_cand_p): New.
28018 (cand_increment): Handle phi-dependent candidates.
28019 (replace_dependent): Delete.
28020 (replace_mult_candidate): New.
28021 (replace_unconditional_candidate): New.
28022 (incr_vec_index): Move to avoid forward reference.
28023 (create_add_on_incoming_edge): New.
28024 (create_phi_basis): New.
28025 (replace_dependents): Delete.
28026 (replace_conditional_candidate): New.
28027 (phi_add_costs): New.
28028 (replace_uncond_cands_and_profitable_phis): New.
28029 (record_increment): Handle phi adjustments.
28030 (record_phi_increments): New.
28031 (record_increments): Handle phi adjustments.
28032 (phi_incr_cost): New.
28033 (lowest_cost_path): Handle phis.
28034 (total_savings): Likewise.
28035 (analyze_increments): Likewise.
28036 (ncd_with_phi): New.
28037 (ncd_of_cand_and_phis): New.
28038 (nearest_common_dominator_for_cands): Handle phi increments.
28039 (all_phi_incrs_profitable): New.
28040 (replace_profitable_candidates): Handle phi-dependent candidates.
28041 (analyze_candidates_and_replace): Likewise.
28043 2013-05-03 Teresa Johnson <tejohnson@google.com>
28046 * sched-rgn.c (compute_dom_prob_ps): Ensure accumulated probabilities
28047 do not exceed REG_BR_PROB_BASE.
28049 2013-05-03 Jeff Law <law@redhat.com>
28051 PR tree-optimization/57144
28052 * tree-vrp.c (simplify_cond_using_ranges): Verify the constant
28053 operand of the condition will bit into the new type when eliminating
28054 a cast feeding a condition.
28056 2013-05-03 Jakub Jelinek <jakub@redhat.com>
28058 PR rtl-optimization/57130
28059 * combine.c (make_compound_operation) <case SUBREG>: Pass SET instead
28060 of COMPARE as in_code to the recursive call if needed.
28062 2013-05-03 Uros Bizjak <ubizjak@gmail.com>
28064 * config/i386/i386.md (isa): Add x64_sse4_noavx and x64_avx members.
28065 (enabled): Handle new members.
28066 * config/i386/sse.md (*vec_concatv2si): Merge from
28067 *vec_concatv2si_sse2 and vec_concatv2si_sse.
28068 (vec_concatv2di): Merge with *vec_concatv2di_rex64.
28070 2013-05-03 Joern Rennecke <joern.rennecke@embecosm.com>
28072 PR tree-optimization/57027
28073 * tree-ssa-math-opts.c (convert_mult_to_fma): When checking
28074 for fnms opportunity, check we got the prerequisite kind
28075 of tree / gimple before using accessor functions.
28077 2013-05-03 Richard Biener <rguenther@suse.de>
28079 * double-int.h (lshift): New overload without precision
28080 and arith argument.
28081 (operator *=, operator +=, operator -=): Move ...
28082 * double-int.c (operator *=, operator +=, operator -=): ... here
28083 and implement more efficiently.
28084 (mul_double_with_sign): Remove.
28085 (lshift_double): Adjust to take unsinged shift argument, push
28086 dispatching code to callers.
28087 (mul_double_wide_with_sign): Add early out for callers that
28088 are not interested in high parts or overflow.
28089 (lshift): New function.
28090 (lshift, rshift, alshift, arshift, llshift, lrshift): Add
28091 dispatch code here.
28092 (lrotate, rrotate): Use logical shifts.
28093 * expr.c (get_inner_reference): Use lshift.
28094 * fixed-value.c (do_fixed_divide): Likewise.
28095 * tree-dfa.c (get_ref_base_and_extent): Likewise.
28096 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Likewise.
28097 (indirect_refs_may_alias_p): Likewise.
28098 (stmt_kills_ref_p_1): Likewise.
28100 2013-05-03 Vidya Praveen <vidyapraveen@arm.com>
28102 * config/aarch64/aarch64-simd.md (simd_fabd): Correct the description.
28104 2013-05-03 Vidya Praveen <vidyapraveen@arm.com>
28106 * config/aarch64/aarch64-simd.md (*fabd_scalar<mode>3): Support
28107 scalar form of FABD instruction.
28109 2013-05-02 Vladimir Makarov <vmakarov@redhat.com>
28111 * lra-constraints.c (process_alt_operands): Add checking alt
28112 number to choose the best alternative.
28114 2013-05-02 Richard Biener <rguenther@suse.de>
28116 * tree-eh.c (cleanup_empty_eh_merge_phis): Remove rename_virts
28117 bitmap and its handling.
28118 (pass_cleanup_eh): Set todo_flags_finish to TODO_verify_ssa.
28120 2013-05-02 Richard Biener <rguenther@suse.de>
28122 PR middle-end/57140
28123 * tree-inline.c (copy_loops): Properly handle removed loops.
28124 (copy_cfg_body): Mark destination loops for fixup if source
28125 loops needed fixup.
28127 2013-05-02 Greta Yorsh <Greta.Yorsh@arm.com>
28130 * config/arm/arm.c (arm_expand_epilogue): Check really_return before
28131 generating simple_return for naked functions.
28133 2013-05-02 Martin Jambor <mjambor@suse.cz>
28135 PR middle-end/56988
28136 * ipa-prop.h (ipa_agg_replacement_value): New flag by_ref.
28137 * ipa-cp.c (ipa_get_indirect_edge_target_1): Also check that by_ref
28139 (find_aggregate_values_for_callers_subset): Fill in the by_ref flag of
28140 ipa_agg_replacement_value structures.
28141 (known_aggs_to_agg_replacement_list): Likewise.
28142 * ipa-prop.c (write_agg_replacement_chain): Stream by_ref flag.
28143 (read_agg_replacement_chain): Likewise.
28144 (ipcp_transform_function): Also check that by_ref flags match.
28146 2013-05-02 Richard Biener <rguenther@suse.de>
28148 * graphds.h (struct graph): Add obstack member.
28149 * graphds.c (new_graph): Initialize obstack and allocate
28151 (add_edge): Allocate edge from the obstack.
28152 (free_graph): Free the obstack instead of all edges and vertices.
28154 2013-05-02 Teresa Johnson <tejohnson@google.com>
28156 * loop-unswitch.c (unswitch_loop): Use helper routines with rounding
28158 * cfg.c (update_bb_profile_for_threading): Ditto.
28159 * tree-inline.c (copy_bb): Ditto.
28160 (copy_edges_for_bb): Ditto.
28161 (initialize_cfun): Ditto.
28162 (copy_cfg_body): Ditto.
28163 (expand_call_inline): Ditto.
28164 * ipa-inline-analysis.c (estimate_edge_size_and_time): Ditto.
28165 (estimate_node_size_and_time): Ditto.
28166 (inline_merge_summary): Ditto.
28167 * cgraphclones.c (cgraph_clone_edge): Ditto.
28168 (cgraph_clone_node): Ditto.
28169 * sched-rgn.c (compute_dom_prob_ps): Ditto.
28170 (compute_trg_info): Ditto.
28172 2013-05-02 Ian Bolton <ian.bolton@arm.com>
28174 * config/aarch64/aarch64.md (movsi_aarch64): Only allow to/from
28175 S reg when fp attribute set.
28176 (movdi_aarch64): Only allow to/from D reg when fp attribute set.
28178 2013-05-02 Ian Bolton <ian.bolton@arm.com>
28180 * config/aarch64/aarch64.md (*and_one_cmpl<mode>3_compare0):
28182 (*and_one_cmplsi3_compare0_uxtw): Likewise.
28183 (*and_one_cmpl_<SHIFT:optab><mode>3_compare0): Likewise.
28184 (*and_one_cmpl_<SHIFT:optab>si3_compare0_uxtw): Likewise.
28186 2013-05-02 Richard Biener <rguenther@suse.de>
28188 * tree-scalar-evolution.c (scev_info_hasher): Remove.
28189 (struct instantiate_cache_entry): New type.
28190 (struct instantiate_cache_entry_hasher): New hashtable descriptor.
28191 (struct instantiate_cache_type): New type.
28192 (set_instantiated_value, get_instantiated_value): Remove.
28193 (get_instantiated_value_entry): New function.
28194 (instantiate_scev_name): Use the new cache and adjust.
28195 (instantiate_scev_poly): Adjust.
28196 (instantiate_scev_binary): Likewise.
28197 (instantiate_array_ref): Likewise.
28198 (instantiate_scev_convert): Likewise.
28199 (instantiate_scev_not): Likewise.
28200 (instantiate_scev_3): Likewise.
28201 (instantiate_scev_2): Likewise.
28202 (instantiate_scev_r): Likewise.
28203 (instantiate_scev): Likewise.
28204 (resolve_mixers): Likewise.
28206 2013-05-01 Vladimir Makarov <vmakarov@redhat.com>
28209 * lra-constraints.c (best_small_class_operands_num): Remove.
28210 (process_alt_operands): Remove small_class_operands_num. Take
28211 small classes operands into losers and only if the operand is not
28212 matched. Modify debugging output.
28213 (curr_insn_transform): Remove best_small_class_operands_num.
28216 2013-05-01 James Greenhalgh <james.greenhalgh@arm.com>
28218 * config/aarch64/aarch64-builtins.c
28219 (aarch64_gimple_fold_builtin.c): Fold more modes for reduc_splus_.
28220 * config/aarch64/aarch64-simd-builtins.def
28221 (reduc_splus_): Add new modes.
28222 (reduc_uplus_): New.
28223 * config/aarch64/aarch64-simd.md (aarch64_addvv4sf): Remove.
28224 (reduc_uplus_v4sf): Likewise.
28225 (reduc_splus_v4sf): Likewise.
28226 (aarch64_addv<mode>): Likewise.
28227 (reduc_uplus_<mode>): Likewise.
28228 (reduc_splus_<mode>): Likewise.
28229 (aarch64_addvv2di): Likewise.
28230 (reduc_uplus_v2di): Likewise.
28231 (reduc_splus_v2di): Likewise.
28232 (aarch64_addvv2si): Likewise.
28233 (reduc_uplus_v2si): Likewise.
28234 (reduc_splus_v2si): Likewise.
28235 (reduc_<sur>plus_<mode>): New.
28236 (reduc_<sur>plus_v2di): Likewise.
28237 (reduc_<sur>plus_v2si): Likewise.
28238 (reduc_<sur>plus_v4sf): Likewise.
28239 (aarch64_addpv4sf): Likewise.
28240 * config/aarch64/arm_neon.h
28241 (vaddv<q>_<s,u,f><8, 16, 32, 64): Rewrite using builtins.
28242 * config/aarch64/iterators.md (unspec): Remove UNSPEC_ADDV,
28243 add UNSPEC_SADDV, UNSPEC_UADDV.
28245 (sur): Add UNSPEC_SADDV, UNSPEC_UADDV.
28247 2013-05-01 James Greenhalgh <james.greenhalgh@arm.com>
28249 * config/aarch64/arm_neon.h
28250 (v<max,min><nm><q><v>_<sfu><8, 16, 32, 64>): Rewrite using builtins.
28252 2013-05-01 James Greenhalgh <james.greenhalgh@arm.com>
28254 * config/aarch64/aarch64-builtins
28255 (aarch64_gimple_fold_builtin): Fold reduc_<su><maxmin>_ builtins.
28257 2013-05-01 James Greenhalgh <james.greenhalgh@arm.com>
28259 * config/aarch64/aarch64-simd-builtins.def
28260 (reduc_smax_): New.
28261 (reduc_smin_): Likewise.
28262 (reduc_umax_): Likewise.
28263 (reduc_umin_): Likewise.
28264 (reduc_smax_nan_): Likewise.
28265 (reduc_smin_nan_): Likewise.
28268 (smax): Update for V2SF, V4SF and V2DF modes.
28271 (smin_nan): Likewise.
28272 * config/aarch64/aarch64-simd.md (<maxmin><mode>3): Rename to...
28273 (<su><maxmin><mode>3): ...This, refactor.
28274 (s<maxmin><mode>3): New.
28275 (<maxmin_uns><mode>3): Likewise.
28276 (reduc_<maxmin_uns>_<mode>): Refactor.
28277 (reduc_<maxmin_uns>_v4sf): Likewise.
28278 (reduc_<maxmin_uns>_v2si): Likewise.
28279 (aarch64_<fmaxmin><mode>: Remove.
28280 * config/aarch64/arm_neon.h (vmax<q>_f<32,64>): Rewrite to use
28282 (vmin<q>_f<32,64>): Likewise.
28283 * config/iterators.md (unspec): Add UNSPEC_FMAXNMV, UNSPEC_FMINNMV.
28285 (su): Add mappings for smax, smin, umax, umin.
28287 (FMAXMINV): Add UNSPEC_FMAXNMV, UNSPEC_FMINNMV.
28288 (FMAXMIN): Rename as...
28289 (FMAXMIN_UNS): ...This.
28291 (fmaxminv): Likewise.
28292 (fmaxmin): Likewise.
28294 (maxmin_uns_op): Likewise.
28296 2013-05-01 James Greenhalgh <james.greenhalgh@arm.com>
28298 * config/aarch64/arm_neon.h
28299 (vac<ge, gt><sd>_f<32, 64>): Rename to...
28300 (vca<ge, gt><sd>_f<32, 64>): ...this, reimpliment in C.
28301 (vca<ge, gt, lt, le><q>_f<32, 64>): Reimpliment in C.
28303 2013-05-01 James Greenhalgh <james.greenhalgh@arm.com>
28305 * config/aarch64/aarch64-simd.md (*aarch64_fac<optab><mode>): New.
28306 * config/aarch64/iterators.md (FAC_COMPARISONS): New.
28308 2013-05-01 James Greenhalgh <james.greenhalgh@arm.com>
28310 * config/aarch64/aarch64-simd.md
28311 (vcond<mode>_internal): Handle special cases for constant masks.
28312 (vcond<mode><mode>): Allow nonmemory_operands for outcome vectors.
28313 (vcondu<mode><mode>): Likewise.
28314 (vcond<v_cmp_result><mode>): New.
28316 2013-05-01 James Greenhalgh <james.greenhalgh@arm.com>
28318 * config/aarch64/aarch64-builtins.c (BUILTIN_VALLDI): Define.
28319 (aarch64_fold_builtin): Add folding for cm<eq,ge,gt,tst>.
28320 * config/aarch64/aarch64-simd-builtins.def
28321 (cmeq): Update to BUILTIN_VALLDI.
28326 * config/aarch64/arm_neon.h
28327 (vc<eq, lt, le, gt, ge, tst><z><qsd>_<fpsu><8,16,32,64>): Remap
28328 to builtins or C as appropriate.
28330 2013-05-01 James Greenhalgh <james.greenhalgh@arm.com>
28332 * config/aarch64/aarch64-simd-builtins.def (cmhs): Rename to...
28334 (cmhi): Rename to...
28336 * config/aarch64/aarch64-simd.md
28337 (simd_mode): Add SF.
28338 (aarch64_vcond_internal): Use new names for unsigned comparison insns.
28339 (aarch64_cm<optab><mode>): Rewrite to not use UNSPECs.
28340 * config/aarch64/aarch64.md (*cstore<mode>_neg): Rename to...
28341 (cstore<mode>_neg): ...This.
28342 * config/aarch64/iterators.md
28344 (unspec): Remove UNSPEC_CM<EQ, LE, LT, GE, GT, HS, HI, TST>.
28345 (COMPARISONS): New.
28346 (UCOMPARISONS): Likewise.
28347 (optab): Add missing comparisons.
28353 (VCMP_S): Likewise.
28354 (VCMP_U): Likewise.
28355 (V_cmp_result): Add DF, SF modes.
28356 (v_cmp_result): Likewise.
28358 (vmtype): Likewise.
28359 * config/aarch64/predicates.md (aarch64_reg_or_fp_zero): New.
28361 2013-05-01 Greta Yorsh <Greta.Yorsh@arm.com>
28363 * config/arm/thumb2.md (thumb2_smaxsi3,thumb2_sminsi3): Convert
28364 define_insn to define_insn_and_split.
28365 (thumb32_umaxsi3,thumb2_uminsi3): Likewise.
28366 (thumb2_negdi2,thumb2_abssi2,thumb2_neg_abssi2): Likewise.
28367 (thumb2_mov_scc,thumb2_mov_negscc,thumb2_mov_notscc): Likewise.
28368 (thumb2_movsicc_insn,thumb2_and_scc,thumb2_ior_scc): Likewise.
28369 (thumb2_negscc): Likewise.
28371 2013-04-30 Greta Yorsh <Greta.Yorsh@arm.com>
28373 * config/arm/thumb2.md (thumb2_incscc, thumb2_decscc): Delete.
28375 2013-04-30 Greta Yorsh <Greta.Yorsh@arm.com>
28377 * config/arm/thumb2.md: Remove trailing whitespaces.
28379 2013-04-30 Richard Sandiford <rsandifo@linux.vnet.ibm.com>
28381 * explow.c (plus_constant): Pass "mode" to immed_double_int_const.
28382 Use gen_int_mode rather than GEN_INT.
28384 2013-04-30 H.J. Lu <hongjiu.lu@intel.com>
28386 * value-prof.c (stream_in_histogram_value): Remove the strayed
28389 2013-04-30 Richard Biener <rguenther@suse.de>
28391 PR middle-end/57122
28392 * cfghooks.c (split_edge): Properly check for the loop latch edge.
28394 2013-04-30 Richard Biener <rguenther@suse.de>
28396 PR middle-end/57107
28397 * tree-eh.c (sink_clobbers): Preserve virtual SSA form.
28399 2013-04-30 Andrey Belevantsev <abel@ispras.ru>
28401 PR rtl-optimization/56957
28402 PR rtl-optimization/57105
28403 * sel-sched.c (move_op_orig_expr_found): Remove insn_emitted
28404 variable. Use just INSN_UID for determining whether an insn
28405 should be only disconnected from the insn stream.
28406 * sel-sched-ir.h (EXPR_WAS_CHANGED): Remove.
28408 2013-04-30 Jakub Jelinek <jakub@redhat.com>
28410 PR tree-optimization/57104
28411 * tsan.c (instrument_expr): Don't instrument accesses to
28412 DECL_HARD_REGISTER VAR_DECLs.
28414 2013-04-30 Richard Biener <rguenther@suse.de>
28416 * function.h (loops_for_fn): New inline function.
28417 (set_loops_for_fn): Likewise.
28418 * cfgloop.h (place_new_loop): Add struct function parameter.
28419 (get_loop): Likewise.
28420 (get_loops): Likewise.
28421 (number_of_loops): Likewise.
28422 (fel_next): Adjust.
28423 (fel_init): Likewise.
28424 * cfg.c (get_loop_copy): Adjust.
28425 * cfgloop.c (flow_loops_dump): Likewise.
28426 (record_loop_exits): Likewise.
28427 (verify_loop_structure): Likewise.
28428 * cfgloopanal.c (mark_irreducible_loops): Likewise.
28429 (estimate_reg_pressure_cost): Likewise.
28430 (mark_loop_exit_edges): Likewise.
28431 * cfgloopmanip.c (place_new_loop): Likewise.
28432 (add_loop): Likewise.
28433 (duplicate_loop): Likewise.
28434 * graph.c (draw_cfg_nodes): Likewise.
28435 * graphite-clast-to-gimple.c (translate_clast_user): Likewise.
28436 * graphite-sese-to-poly.c (build_scop_scattering): Likewise.
28437 (extract_affine_chrec): Likewise.
28438 (build_scop_iteration_domain): Likewise.
28439 * graphite.c (graphite_initialize): Likewise.
28440 * ira-build.c (create_loop_tree_nodes): Likewise.
28441 (more_one_region_p): Likewise.
28442 (rebuild_regno_allocno_maps): Likewise.
28443 (mark_loops_for_removal): Likewise.
28444 (mark_all_loops_for_removal): Likewise.
28445 (remove_unnecessary_regions): Likewise.
28446 (ira_build): Likewise.
28447 * ira-emit.c (setup_entered_from_non_parent_p): Likewise.
28448 * loop-init.c (fix_loop_structure): Likewise.
28449 (gate_rtl_move_loop_invariants): Likewise.
28450 (gate_rtl_unswitch): Likewise.
28451 (gate_rtl_unroll_and_peel_loops): Likewise.
28452 (rtl_doloop): Likewise.
28453 * lto-streamer-in.c (input_cfg): Likewise.
28454 * lto-streamer-out.c (output_cfg): Likewise.
28455 * modulo-sched.c (sms_schedule): Likewise.
28456 * predict.c (tree_estimate_probability): Likewise.
28457 (tree_estimate_probability_driver): Likewise.
28458 (estimate_loops): Likewise.
28459 * tree-cfg.c (fixup_loop_arrays_after_move): Likewise.
28460 (move_sese_region_to_fn): Likewise.
28461 (debug_loop_num): Likewise.
28462 * tree-chrec.c (chrec_evaluate): Likewise.
28463 (hide_evolution_in_other_loops_than_loop): Likewise.
28464 (chrec_component_in_loop_num): Likewise.
28465 (reset_evolution_in_loop): Likewise.
28466 (evolution_function_is_invariant_rec_p): Likewise.
28467 * tree-if-conv.c (main_tree_if_conversion): Likewise.
28468 * tree-inline.c (copy_loops): Likewise.
28469 (copy_cfg_body): Likewise.
28470 (tree_function_versioning): Likewise.
28471 * tree-loop-distribution.c (rdg_flag_loop_exits): Likewise.
28472 * tree-scalar-evolution.c (chrec_contains_symbols_defined_in_loop):
28474 (add_to_evolution_1): Likewise.
28475 (scev_const_prop): Likewise.
28476 * tree-scalar-evolution.h (get_chrec_loop): Likewise.
28477 * tree-ssa-loop-ch.c (copy_loop_headers): Likewise.
28478 * tree-ssa-loop-im.c (analyze_memory_references): Likewise.
28479 (tree_ssa_lim_initialize): Likewise.
28480 * tree-ssa-loop-manip.c (rewrite_into_loop_closed_ssa): Likewise.
28481 (verify_loop_closed_ssa): Likewise.
28482 * tree-ssa-loop.c (tree_ssa_loop_init): Likewise.
28483 (tree_ssa_loop_im): Likewise.
28484 (tree_ssa_loop_unswitch): Likewise.
28485 (tree_vectorize): Likewise.
28486 (check_data_deps): Likewise.
28487 (tree_ssa_loop_ivcanon): Likewise.
28488 (tree_ssa_loop_bounds): Likewise.
28489 (tree_complete_unroll): Likewise.
28490 (tree_complete_unroll_inner): Likewise.
28491 (tree_parallelize_loops): Likewise.
28492 (tree_ssa_loop_prefetch): Likewise.
28493 (tree_ssa_loop_ivopts): Likewise.
28494 * tree-ssa.c (execute_update_addresses_taken): Liekwise.
28495 * tree-vectorizer.c (vectorize_loops): Likewise.
28497 2013-04-29 Mike Frysinger <vapier@gentoo.org>
28499 * config/arm/bpabi.h (EABI_LINK_SPEC): Define.
28500 (BPABI_LINK_SPEC): Use new EABI_LINK_SPEC.
28501 * config/arm/linux-eabi.h (LINK_SPEC): Replace BE8_LINK_SPEC
28502 with EABI_LINK_SPEC.
28504 2013-04-29 Uros Bizjak <ubizjak@gmail.com>
28507 * config/i386/i386.md (*zero_extendsidi2): Add "!" to m->?*y
28510 2013-04-29 Vladimir Makarov <vmakarov@redhat.com>
28513 * lra-constraints.c (process_alt_operands): Discourage a bit more
28514 using memory for pseudos. Print cost dump for alternatives.
28515 Modify cost values for conflicts with early clobbers.
28516 (curr_insn_transform): Spill pseudos reassigned to NO_REGS.
28518 2013-04-29 Uros Bizjak <ubizjak@gmail.com>
28521 * config/i386/i386.c (ix86_expand_vec_perm): Validize constant memory.
28523 2013-04-29 Ian Bolton <ian.bolton@arm.com>
28525 * config/aarch64/aarch64.md (movsi_aarch64): Support LDR/STR
28526 from/to S register.
28527 (movdi_aarch64): Support LDR/STR from/to D register.
28529 2013-04-29 Ian Bolton <ian.bolton@arm.com>
28531 * common/config/aarch64/aarch64-common.c: Enable REE pass at O2
28532 or higher by default.
28534 2013-04-29 Richard Biener <rguenther@suse.de>
28536 PR middle-end/57075
28537 * tree-inline.c (copy_edges_for_bb): Still split the bbs,
28538 even if not adding abnormal edges for calls that can make
28541 2013-04-29 Richard Biener <rguenther@suse.de>
28543 PR middle-end/57103
28544 * tree-cfg.c (move_stmt_op): Fix condition under which to update
28546 (move_stmt_r): Remove redundant checking.
28548 2013-04-29 Teresa Johnson <tejohnson@google.com>
28551 * basic-block.h (apply_scale): New function.
28552 (apply_probability): Use apply_scale.
28553 * gimple-streamer-in.c (input_bb): Ditto.
28554 * lto-streamer-in.c (input_cfg): Ditto.
28555 * lto-cgraph.c (merge_profile_summaries): Ditto.
28556 * tree-optimize.c (execute_fixup_cfg): Ditto.
28557 * tree-inline.c (copy_bb): Update comment to use apply_scale.
28558 (copy_edges_for_bb): Ditto.
28559 (copy_cfg_body): Ditto.
28561 2013-04-29 Tom de Vries <tom@codesourcery.com>
28563 * tree-ssa-tail-merge.c (find_same_succ_bb): Skip loop latch bbs.
28564 (replace_block_by): Don't set LOOPS_NEED_FIXUP.
28565 (tail_merge_optimize): Handle current_loops == NULL.
28567 2013-04-26 Jeff Law <law@redhat.com>
28569 * tree-vrp.c (range_fits_type_p): Move to earlier point in file.
28570 (simplify_cond_using_ranges): Generalize code to simplify
28571 COND_EXPRs where one argument is a constant and the other
28572 is an SSA_NAME created by an integral type conversion.
28574 2013-04-29 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
28576 * config/arm/arm.md (store_minmaxsi): Use only when
28577 optimize_insn_for_size_p.
28579 2013-04-29 Christian Bruel <christian.bruel@st.com>
28582 * sh.md (tstsi_t_zero_extract_eq): Set mode for operand 0.
28584 2013-04-29 Richard Biener <rguenther@suse.de>
28586 PR middle-end/57089
28587 * omp-low.c (expand_omp_taskreg): If the parent function had a broken
28588 loop tree make sure to schedule a fixup for the child as well.
28589 (expand_omp_for_generic): Properly add loops.
28590 (expand_omp_for_static_nochunk): Likewise.
28591 (expand_omp_for_static_chunk): Likewise.
28592 (expand_omp_for): For the degenerate case fixup loops.
28593 (expand_omp_sections): Fix default bb placement in loops.
28594 (expand_omp_atomic_pipeline): Properly add loops.
28596 2013-04-29 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
28598 * predict.c: Fix typo in comment above #define PROB_VERY_UNLIKELY.
28600 2013-04-29 Tom de Vries <tom@codesourcery.com>
28602 * tree-ssa-tail-merge.c: Update header comment.
28604 2013-04-29 James Greenhalgh <james.greenhalgh@arm.com>
28606 * config/aarch64/arm_neon.h
28607 (vcvt<sd>_f<32,64>_s<32,64>): Rewrite in C.
28608 (vcvt<q>_f<32,64>_s<32,64>): Rewrite using builtins.
28609 (vcvt_<high_>_f<32,64>_f<32,64>): Likewise.
28610 (vcvt<qsd>_<su><32,64>_f<32,64>): Likewise.
28611 (vcvta<qsd>_<su><32,64>_f<32,64>): Likewise.
28612 (vcvtm<qsd>_<su><32,64>_f<32,64>): Likewise.
28613 (vcvtn<qsd>_<su><32,64>_f<32,64>): Likewise.
28614 (vcvtp<qsd>_<su><32,64>_f<32,64>): Likewise.
28616 2013-04-29 James Greenhalgh <james.greenhalgh@arm.com>
28618 * config/aarch64/aarch64-simd.md
28619 (<optab><VDQF:mode><fcvt_target>2): New, maps to fix, fixuns.
28620 (<fix_trunc_optab><VDQF:mode><fcvt_target>2): New, maps to
28621 fix_trunc, fixuns_trunc.
28622 (ftrunc<VDQF:mode>2): New.
28623 * config/aarch64/iterators.md (optab): Add fix, fixuns.
28624 (fix_trunc_optab): New.
28626 2013-04-29 James Greenhalgh <james.greenhalgh@arm.com>
28628 * config/aarch64/aarch64-builtins.c
28629 (aarch64_builtin_vectorized_function): Vectorize over ifloorf,
28630 iceilf, lround, iroundf.
28632 2013-04-29 Uros Bizjak <ubizjak@gmail.com>
28635 * config/i386/i386.h (enum ix86_tune_indices)
28636 <X86_TUNE_INTER_UNIT_MOVES_TO_VEC, X86_TUNE_INTER_UNIT_MOVES_FROM_VEC>:
28637 New, split from X86_TUNE_INTER_UNIT_MOVES.
28638 <X86_TUNE_INTER_UNIT_MOVES>: Remove.
28639 (TARGET_INTER_UNIT_MOVES_TO_VEC): New define.
28640 (TARGET_INTER_UNIT_MOVES_FROM_VEC): Ditto.
28641 (TARGET_INTER_UNIT_MOVES): Remove.
28642 * config/i386/i386.c (initial_ix86_tune_features): Update.
28643 Disable X86_TUNE_INTER_UNIT_MOVES_FROM_VEC for m_ATHLON_K8 only.
28644 (ix86_expand_convert_uns_didf_sse): Use
28645 TARGET_INTER_UNIT_MOVES_TO_VEC instead of TARGET_INTER_UNIT_MOVES.
28646 (ix86_expand_vector_init_one_nonzero): Ditto.
28647 (ix86_expand_vector_init_interleave): Ditto.
28648 (inline_secondary_memory_needed): Return true for moves from SSE class
28649 registers for !TARGET_INTER_UNIT_MOVES_FROM_VEC targets and for moves
28650 to SSE class registers for !TARGET_INTER_UNIT_MOVES_TO_VEC targets.
28651 * config/i386/constraints.md (Yi, Ym): Depend on
28652 TARGET_INTER_UNIT_MOVES_TO_VEC.
28653 (Yj, Yn): New constraints.
28654 * config/i386/i386.md (*movdi_internal): Change constraints of
28655 operand 1 from Yi to Yj and from Ym to Yn.
28656 (*movsi_internal): Ditto.
28657 (*movdf_internal): Ditto.
28658 (*movsf_internal): Ditto.
28659 (*float<SWI48x:mode><X87MODEF:mode>2_1): Use
28660 TARGET_INTER_UNIT_MOVES_TO_VEC instead of TARGET_INTER_UNIT_MOVES.
28661 (*float<SWI48x:mode><X87MODEF:mode>2_1 splitters): Ditto.
28662 (floatdi<X87MODEF:mode>2_i387_with_xmm): Ditto.
28663 (floatdi<X87MODEF:mode>2_i387_with_xmm splitters): Ditto.
28664 * config/i386/sse.md (movdi_to_sse): Ditto.
28665 (sse2_stored): Change constraint of operand 1 from Yi to Yj.
28666 Use TARGET_INTER_UNIT_MOVES_FROM_VEC instead of
28667 TARGET_INTER_UNIT_MOVES.
28668 (sse_storeq_rex64): Change constraint of operand 1 from Yi to Yj.
28669 (sse_storeq_rex64 splitter): Use TARGET_INTER_UNIT_MOVES_FROM_VEC
28670 instead of TARGET_INTER_UNIT_MOVES.
28671 * config/i386/mmx.md (*mov<mode>_internal): Change constraint of
28672 operand 1 from Yi to Yj and from Ym to Yn.
28674 2013-04-29 James Greenhalgh <james.greenhalgh@arm.com>
28676 * config/aarch64/aarch64-simd-builtins.def (vec_unpacks_hi_): New.
28677 (float_truncate_hi_): Likewise.
28678 (float_extend_lo_): Likewise.
28679 (float_truncate_lo_): Likewise.
28680 * config/aarch64/aarch64-simd.md (vec_unpacks_lo_v4sf): New.
28681 (aarch64_float_extend_lo_v2df): Likewise.
28682 (vec_unpacks_hi_v4sf): Likewise.
28683 (aarch64_float_truncate_lo_v2sf): Likewise.
28684 (aarch64_float_truncate_hi_v4sf): Likewise.
28685 (vec_pack_trunc_v2df): Likewise.
28686 (vec_pack_trunc_df): Likewise.
28688 2013-04-29 James Greenhalgh <james.greenhalgh@arm.com>
28690 * config/aarch64/aarch64-builtins.c
28691 (aarch64_fold_builtin): Fold float conversions.
28692 * config/aarch64/aarch64-simd-builtins.def
28693 (floatv2si, floatv4si, floatv2di): New.
28694 (floatunsv2si, floatunsv4si, floatunsv2di): Likewise.
28695 * config/aarch64/aarch64-simd.md
28696 (<optab><fcvt_target><VDQF:mode>2): New, expands to float and floatuns.
28697 * config/aarch64/iterators.md (FLOATUORS): New.
28698 (optab): Add float, floatuns.
28699 (su_optab): Likewise.
28701 2013-04-29 James Greenhalgh <james.greenhalgh@arm.com>
28703 * config/aarch64/aarch64-builtins.c
28704 (aarch64_builtin_vectorized_function): Use new names for
28706 * config/aarch64/aarch64-simd-builtins.def (fcvtzs): Split as...
28707 (lbtruncv2sf, lbtruncv4sf, lbtruncv2df): ...This.
28708 (fcvtzu): Split as...
28709 (lbtruncuv2sf, lbtruncuv4sf, lbtruncuv2df): ...This.
28710 (fcvtas): Split as...
28711 (lroundv2sf, lroundv4sf, lroundv2df, lroundsf, lrounddf): ...This.
28712 (fcvtau): Split as...
28713 (lrounduv2sf, lrounduv4sf, lrounduv2df, lroundusf, lroundudf): ...This.
28714 (fcvtps): Split as...
28715 (lceilv2sf, lceilv4sf, lceilv2df): ...This.
28716 (fcvtpu): Split as...
28717 (lceiluv2sf, lceiluv4sf, lceiluv2df, lceilusf, lceiludf): ...This.
28718 (fcvtms): Split as...
28719 (lfloorv2sf, lfloorv4sf, lfloorv2df): ...This.
28720 (fcvtmu): Split as...
28721 (lflooruv2sf, lflooruv4sf, lflooruv2df, lfloorusf, lfloorudf): ...This.
28722 (lfrintnv2sf, lfrintnv4sf, lfrintnv2df, lfrintnsf, lfrintndf): New.
28723 (lfrintnuv2sf, lfrintnuv4sf, lfrintnuv2df): Likewise.
28724 (lfrintnusf, lfrintnudf): Likewise.
28725 * config/aarch64/aarch64-simd.md
28726 (l<fcvt_pattern><su_optab><fcvt_target><VDQF:mode>2): Convert to
28728 (aarch64_fcvt<frint_suffix><su><mode>): Remove.
28729 * config/aarch64/iterators.md (FCVT): Include UNSPEC_FRINTN.
28730 (fcvt_pattern): Likewise.
28732 2013-04-29 James Greenhalgh <james.greenhalgh@arm.com>
28734 * config/aarch64/aarch64-simd.md
28735 (l<fcvt_pattern><su_optab><fcvt_target><VDQF:mode>2): Rename to...
28736 (l<fcvt_pattern><su_optab><VDQF:mode><fcvt_target>2): ... This.
28738 2013-04-29 James Greenhalgh <james.greenhalgh@arm.com>
28740 * config/aarch64/arm_neon.h (vrndq<a,m,n,p>_f<32, 64>): Rename to...
28741 (vrnd<a,m,n,p>q_f<32, 64>): ...This, implement using builtin.
28742 (vrnd<a,m,n,p>_f32): Implement using builtins.
28743 (vrnd<i,x><q>_f<32, 64>): New.
28745 2013-04-29 James Greenhalgh <james.greenhalgh@arm.com>
28747 * config/aarch64/aarch64-builtins.c
28748 (aarch64_builtin_vectorized_function): Fold to standard pattern names.
28749 * config/aarch64/aarch64-simd-builtins.def (frintn): New.
28750 (frintz): Rename to...
28752 (frintp): Rename to...
28754 (frintm): Rename to...
28756 (frinti): Rename to...
28757 (nearbyint): ...this.
28758 (frintx): Rename to...
28760 (frinta): Rename to...
28762 * config/aarch64/aarch64-simd.md
28763 (aarch64_frint<frint_suffix><mode>): Delete.
28764 (<frint_pattern><mode>2): Convert to insn.
28765 * config/aarch64/aarch64.md (unspec): Add UNSPEC_FRINTN.
28766 * config/aarch64/iterators.md (FRINT): Add UNSPEC_FRINTN.
28767 (frint_pattern): Likewise.
28768 (frint_suffix): Likewise.
28770 2013-04-29 Richard Biener <rguenther@suse.de>
28772 PR tree-optimization/57081
28773 * loop-init.c: Include tree-flow.h.
28774 (loop_optimizer_finalize): Free number of iteration estimates.
28775 * Makefile.in (loop-init.o): Add $(TREE_FLOW_H) dependency.
28777 2013-04-29 Jakub Jelinek <jakub@redhat.com>
28779 PR tree-optimization/57083
28780 * tree-vrp.c (extract_range_from_binary_expr_1): For LSHIFT_EXPR with
28781 non-singleton shift count range, zero extend low_bound for uns case.
28783 * config/i386/predicates.md (general_vector_operand): New predicate.
28784 * config/i386/i386.c (const_vector_equal_evenodd_p): New function.
28785 (ix86_expand_mul_widen_evenodd): Force op1 resp. op2 into register
28786 if they aren't nonimmediate operands. If their original values
28787 satisfy const_vector_equal_evenodd_p, don't shift them.
28788 * config/i386/sse.md (mul<mode>3): Use general_vector_operand
28789 predicates. For the SSE4.1 case force operands[{1,2}] into registers
28790 if not nonimmediate_operand.
28791 (vec_widen_smult_even_v4si): Use nonimmediate_operand predicates
28792 instead of register_operand.
28793 (vec_widen_<s>mult_odd_<mode>): Use general_vector_operand predicates.
28795 2013-04-28 Eric Botcazou <ebotcazou@adacore.com>
28797 * stor-layout.c (finalize_size_functions): Allocate a structure and
28798 reset cfun before dumping the functions.
28800 2013-04-27 Jakub Jelinek <jakub@redhat.com>
28802 * config/i386/i386.c (ix86_expand_call): Make cregs_size unsigned.
28805 * config/i386/i386.c (ix86_expand_mul_widen_evenodd): Don't
28806 use xop_pmacsdqh if uns_p.
28807 * config/i386/sse.md (xop_rotr<mode>3): Fix up computation of
28808 the immediate rotate count.
28810 2013-04-26 Vladimir Makarov <vmakarov@redhat.com>
28812 * rtl.h (struct rtx_def): Add comment for field jump.
28813 (LRA_SUBREG_P): New macro.
28814 * recog.c (register_operand): Check LRA_SUBREG_P.
28815 * lra.c (lra): Add note at the end of RTL code. Align non-empty
28817 * lra-spills.c (lra_spill): Align stack after spilling pseudos.
28818 (lra_final_code_change): Skip subreg change for operators.
28819 * lra-eliminations.c (eliminate_regs_in_insn): Make return earlier
28820 if there are no operand changes.
28821 * lra-constraints.c (curr_insn_set): New.
28822 (match_reload): Set LRA_SUBREG_P.
28823 (emit_spill_move): Ditto.
28824 (check_and_process_move): Use curr_insn_set. Process only single
28825 set insns. Don't initialize sec_mem_p and change_p.
28826 (simplify_operand_subreg): Use LRA_SUBREG_P.
28827 (reg_in_class_p): New function.
28828 (process_alt_operands): Use it. Use #if HAVE_ATTR_enabled instead
28829 of #ifdef. Add code to remove cycling.
28830 (process_address): Check EXTRA_CONSTRAINT_STR. Process even if
28831 non-null disp. Reload inner instead of disp when base and index
28832 are null. Try to put lo_sum into register.
28833 (EBB_PROBABILITY_CUTOFF): Redefine probability in percents.
28834 (check_and_process_move): Move code for move cost check to
28835 simple_move_p. Remove equiv_substitution.
28836 (simple_move_p): New function.
28837 (curr_insn_transform): Initialize sec_mem_p and change_p. Set up
28838 curr_insn_set. Call check_and_process_move only for single set
28839 insns. Use the new function. Move call of check_and_process_move
28840 after operand equiv substitution and address process.
28842 2013-04-26 Jakub Jelinek <jakub@redhat.com>
28845 * tree-ssa-uninit.c (compute_uninit_opnds_pos): In functions
28846 with nonlocal goto receivers or returns twice calls, ignore
28847 unininitialized values from abnormal edges to nl goto receiver
28848 or returns twice call.
28850 2013-04-26 Jakub Jelinek <jakub@redhat.com>
28852 PR tree-optimization/57051
28853 * fold-const.c (const_binop): Handle VEC_LSHIFT_EXPR
28854 and VEC_RSHIFT_EXPR if shift count is a multiple of element
28857 2013-04-26 Richard Biener <rguenther@suse.de>
28859 * omp-low.c (finalize_task_copyfn): Do not drop PROP_loops.
28860 (expand_omp_taskreg): Likewise. Mark loops for fixup.
28861 * tree-cfg.c (move_block_to_fn): Remap loop fathers.
28862 (fixup_loop_arrays_after_move): New function.
28863 (move_sese_region_to_fn): Properly outline the loop tree parts
28864 of the SESE region.
28866 2013-04-26 Uros Bizjak <ubizjak@gmail.com>
28868 * config/i386/i386.md (type, unit): Fix long lines.
28870 2013-04-26 Richard Biener <rguenther@suse.de>
28872 * Makefile.in (lto-streamer-in.o): Add $(CFGLOOP_H) dependency.
28873 (lto-streamer-out.o): Likewise.
28874 * cfgloop.c (init_loops_structure): Export, add struct function
28875 argument and adjust.
28876 (flow_loops_find): Adjust.
28877 * cfgloop.h (enum loop_estimation): Add EST_LAST.
28878 (init_loops_structure): Declare.
28879 * lto-streamer-in.c: Include cfgloop.h.
28880 (input_cfg): Input the loop tree.
28881 * lto-streamer-out.c: Include cfgloop.h.
28882 (output_cfg): Output the loop tree.
28883 (output_struct_function_base): Do not drop PROP_loops.
28885 2013-03-26 Richard Biener <rguenther@suse.de>
28887 * tree-cfg.c (execute_build_cfg): Build the loop tree.
28888 (pass_build_cfg): Provide PROP_loops.
28889 (move_sese_region_to_fn): Remove loops that are outlined into fn
28891 * tree-inline.c: Include cfgloop.h.
28892 (initialize_cfun): Do not drop PROP_loops.
28893 (copy_loops): New function.
28894 (copy_cfg_body): Copy loop structure.
28895 (tree_function_versioning): Initialize destination loop tree.
28896 * tree-ssa-loop.c (pass_tree_loop_init): Do not provide PROP_loops.
28897 (pass_parallelize_loops): Do IL verification.
28898 * loop-init.c (loop_optimizer_init): Fixup loops if required.
28899 * tree-optimize.c (execute_fixup_cfg): If we need to cleanup
28900 the CFG make sure we fixup loops as well.
28901 * tree-ssa-tail-merge.c: Include cfgloop.h.
28902 (replace_block_by): When merging loop latches mark loops for fixup.
28903 * lto-streamer-out.c (output_struct_function_base): Drop
28904 PROP_loops for now.
28905 * tree-ssa-phiopt.c: Include tree-scalar-evolution.h.
28906 (tree_ssa_cs_elim): Initialize the loop optimizer and SCEV.
28907 * ipa-split.c: Include cfgloop.h.
28908 (split_function): Add the new return block to the loop tree root.
28909 * tree-cfgcleanup.c (remove_forwarder_block_with_phi): Return
28910 whether we have removed the forwarder block.
28911 (merge_phi_nodes): If we removed a forwarder mark loops for fixup.
28912 * cfgloop.h (place_new_loop): Declare.
28913 * cfgloopmanip.c (place_new_loop): Export.
28914 * Makefile.in (asan.o): Add $(CFGLOOP_H) dependency.
28915 (tree-switch-conversion.o): Likewise.
28916 (tree-complex.o): Likewise.
28917 (tree-inline.o): Likewise.
28918 (tree-ssa-tailmerge.o): Likewise.
28919 (ipa-split.o): Likewise.
28920 (tree-ssa-phiopt.o): Add $(SCEV_H) dependency.
28921 (tree-ssa-copy.o): Likewise.
28922 * tree-switch-conversion.c: Include cfgloop.h
28923 (process_switch): If we emit a bit-test cascade, schedule loops
28925 * tree-complex.c: Include cfgloop.h.
28926 (expand_complex_div_wide): Properly add new basic-blocks to loops.
28927 * asan.c: Include cfgloop.h.
28928 (create_cond_insert_point): Properly add new basic-blocks to
28929 loops, schedule loop fixup.
28930 * cfgloop.c (verify_loop_structure): Check that looks are not
28932 * omp-low.c (expand_parallel_call): Properly add new basic-blocks
28934 (expand_omp_for_generic): Likewise.
28935 (expand_omp_sections): Likewise.
28936 (expand_omp_atomic_pipeline): Schedule loops for fixup.
28937 * tree-ssa-copy.c: Include tree-scalar-evolution.h.
28938 (fini_copy_prop): Disable DCE in substitute_and_fold if SCEV
28939 is initialized, not when loops are present.
28940 * tree-parloops.c (parallelize_loops): Remove checking here.
28941 * passes.c (init_optimization_passes): Schedule a copy-propagation
28942 pass before complete unrolling of inner loops.
28944 2013-04-26 Jakub Jelinek <jakub@redhat.com>
28946 * Makefile.in (toplev.o): Depend on diagnostic-color.h.
28947 * diagnostic-color.c (should_colorize): Remove _WIN32 version.
28948 (colorize_init): Add argument to _WIN32 version.
28949 * toplev.c: Include diagnostic-color.h.
28950 (process_options): Default to -fdiagnostics-color=auto if
28951 GCC_COLORS env var is in the environment.
28952 * common.opt (fdiagnostics-color=): Add Var and Init.
28953 * doc/invoke.texi (-fdiagnostics-color=): Document that if GCC_COLORS
28954 env var is in the environment, the default is auto rather than never.
28956 * diagnostic.h (file_name_as_prefix): Add context argument.
28957 * diagnostic.c (file_name_as_prefix): Likewise. Colorize
28958 the string as locus.
28959 * langhooks.c (lhd_print_error_function): Adjust caller.
28961 2013-04-25 Lawrence Crowl <crowl@google.com>
28963 * var-tracking.c (shared_hash_def::htab):
28964 Change type to hash_table. Update dependent calls and types.
28966 2013-04-25 Lawrence Crowl <crowl@google.com>
28968 * Makefile.in: Update as needed below.
28970 * alloc-pool.c (static hash_table <alloc_pool_hasher> alloc_pool_hash):
28971 Move declaration to after the type's method definitons.
28973 * attribs.c (htab_t scoped_attributes::attribute_hash):
28974 Change type to hash_table. Update dependent calls and types.
28976 * bitmap.c (htab_t bitmap_desc_hash):
28977 Change type to hash_table. Update dependent calls and types.
28979 * cselib.c (htab_t cselib_hash_table):
28980 Change type to hash_table. Update dependent calls and types.
28982 * data-streamer.h (struct string_slot): Move to lto-streamer.h.
28983 (hash_string_slot_node): Move implementation into lto-streamer.h
28984 struct string_slot_hasher.
28985 (eq_string_slot_node): Likewise.
28987 * data-streamer-out.c: Update output_block::string_hash_table
28988 dependent calls and types.
28990 * dwarf2cfi.c (htab_t trace_index):
28991 Change type to hash_table. Update dependent calls and types.
28993 * dwarf2out.c (htab_t break_out_includes::cu_hash_table):
28994 Change type to hash_table. Update dependent calls and types.
28995 (htab_t copy_decls_for_unworthy_types::decl_table): Likewise.
28996 (htab_t optimize_external_refs::map): Likewise.
28997 (htab_t output_comp_unit::extern_map): Likewise.
28998 (htab_t output_comdat_type_unit::extern_map): Likewise.
28999 (htab_t output_macinfo::macinfo_htab): Likewise.
29000 (htab_t optimize_location_lists::htab): Likewise.
29001 (htab_t dwarf2out_finish::comdat_type_table): Likewise.
29003 * except.c (htab_t ehspec_hash_type):
29004 Change type to hash_table. Update dependent calls and types.
29005 (assign_filter_values::ttypes): Likewise.
29006 (assign_filter_values::ehspec): Likewise.
29007 (sjlj_assign_call_site_values::ar_hash): Likewise.
29008 (convert_to_eh_region_ranges::ar_hash): Likewise.
29010 * gcse.c (htab_t pre_ldst_table):
29011 Change type to hash_table. Update dependent calls and types.
29013 * ggc-common.c (htab_t saving_htab):
29014 Change type to hash_table. Update dependent calls and types.
29015 (htab_t loc_hash): Likewise.
29016 (htab_t ptr_hash): Likewise.
29017 (call_count): Rename ggc_call_count.
29018 (call_alloc): Rename ggc_call_alloc.
29019 (loc_descriptor): Rename make_loc_descriptor.
29020 (add_statistics): Rename ggc_add_statistics.
29022 * ggc-common.c (saving_htab):
29023 Change type to hash_table. Update dependent calls and types.
29025 * gimple.h (struct gimplify_ctx): Move to gimplify-ctx.h.
29026 (push_gimplify_context): Likewise.
29027 (pop_gimplify_context): Likewise.
29028 (struct gimple_temp_hash_elt): Added.
29029 (struct gimplify_hasher): Likewise.
29030 (struct gimplify_ctx.temp_htab):
29031 Change type to hash_table. Update dependent calls and types.
29033 * gimple-fold.c: Include gimplify-ctx.h.
29035 * gimple-ssa-strength-reduction.c (htab_t base_cand_map):
29036 Change type to hash_table. Update dependent calls and types.
29037 (base_cand_dump_callback): Rename to ssa_base_cand_dump_callback to
29038 avoid potential global name collision.
29040 * gimplify.c: Include gimplify-ctx.h.
29041 (struct gimple_temp_hash_elt): Move to gimplify-ctx.h.
29042 (htab_t gimplify_ctx::temp_htab):
29043 Update dependent calls and types for new type hash_table.
29044 (gimple_tree_hash): Move into gimplify_hasher in gimplify-ctx.h.
29045 (gimple_tree_eq): Move into gimplify_hasher in gimplify-ctx.h.
29047 * gimplify-ctx.h: New.
29048 (struct gimple_temp_hash_elt): Move from gimplify.c.
29049 (class gimplify_hasher): New.
29050 (struct gimplify_ctx): Move from gimple.h.
29051 (htab_t gimplify_ctx::temp_htab):
29052 Change type to hash_table. Update dependent calls and types.
29054 * graphite-clast-to-gimple.c: Include graphite-htab.h.
29055 (htab_t ivs_params::newivs_index):
29056 Change type to hash_table. Update dependent calls and types.
29057 (htab_t ivs_params::params_index): Likewise.
29058 (htab_t print_generated_program::params_index): Likewise.
29059 (htab_t gloog::newivs_index): Likewise.
29060 (htab_t gloog::params_index): Likewise.
29062 * graphite.c: Include graphite-htab.h.
29063 4htab_t graphite_transform_loops::bb_pbb_mapping):
29064 Change type to hash_table. Update dependent calls and types.
29066 * graphite-clast-to-gimple.h: (extern gloog) Move to graphite-htab.h.
29067 (bb_pbb_map_hash): Fold into bb_pbb_htab_type in graphite-htab.h.
29068 (eq_bb_pbb_map): Fold into bb_pbb_htab_type in graphite-htab.h.
29070 * graphite-dependences.c: Include graphite-htab.h.
29071 (loop_is_parallel_p): Change hash table type of parameter.
29073 * graphite-htab.h: New.
29074 (typedef hash_table <bb_pbb_hasher> bb_pbb_htab_type): New.
29075 (extern find_pbb_via_hash): Move from graphite-poly.h.
29076 (extern loop_is_parallel_p): Move from graphite-poly.h.
29077 (extern get_loop_body_pbbs): Move from graphite-poly.h.
29079 * graphite-poly.h (extern find_pbb_via_hash): Move to graphite-htab.h.
29080 (extern loop_is_parallel_p): Move to graphite-htab.h.
29081 (extern get_loop_body_pbbs): Move to graphite-htab.h.
29083 * haifa-sched.c (htab_t delay_htab):
29084 Change type to hash_table. Update dependent calls and types.
29085 (htab_t delay_htab_i2): Likewise.
29087 * ira-color.c (htab_t allocno_hard_regs_htab):
29088 Change type to hash_table. Update dependent calls and types.
29090 * ira-costs.c (htab_t cost_classes_htab):
29091 Change type to hash_table. Update dependent calls and types.
29093 * loop-invariant.c (htab_t merge_identical_invariants::eq):
29094 Change type to hash_table. Update dependent calls and types.
29096 * loop-iv.c (htab_t bivs):
29097 Change type to hash_table. Update dependent calls and types.
29099 * loop-unroll.c (htab_t opt_info::insns_to_split):
29100 Change type to hash_table. Update dependent calls and types.
29101 (htab_t opt_info::insns_with_var_to_expand): Likewise.
29103 * lto-streamer.h (struct string_slot): Move from data-streamer.h
29104 (struct string_slot_hasher): New.
29105 (htab_t output_block::string_hash_table):
29106 Change type to hash_table. Update dependent calls and types.
29108 * lto-streamer-in.c (freeing_string_slot_hasher): New.
29109 (htab_t file_name_hash_table):
29110 Change type to hash_table. Update dependent calls and types.
29112 * lto-streamer-out.c: Update output_block::string_hash_table dependent
29115 * lto-streamer.c (htab_t tree_htab):
29116 Change type to hash_table. Update dependent calls and types.
29118 * omp-low.c: Include gimplify-ctx.h.
29120 * passes.c (htab_t name_to_pass_map):
29121 Change type to hash_table. Update dependent calls and types.
29122 (pass_traverse): Rename to passes_pass_traverse.
29124 * plugin.c (htab_t event_tab):
29125 Change type to hash_table. Update dependent calls and types.
29127 * postreload-gcse.c (htab_t expr_table):
29128 Change type to hash_table. Update dependent calls and types.
29129 (dump_hash_table_entry): Rename dump_expr_hash_table_entry.
29131 * sese.c (debug_rename_map_1): Make extern.
29132 (htab_t copy_bb_and_scalar_dependences::rename_map):
29133 Change type to hash_table. Update dependent calls and types.
29135 * sese.h (extern debug_rename_map): Move to .c file.
29137 * store-motion.c (htab_t store_motion_mems_table):
29138 Change type to hash_table. Update dependent calls and types.
29140 * trans-mem.c (htab_t tm_new_mem_hash):
29141 Change type to hash_table. Update dependent calls and types.
29143 * tree-browser.c (htab_t TB_up_ht):
29144 Change type to hash_table. Update dependent calls and types.
29146 * tree-cfg.c (htab_t discriminator_per_locus):
29147 Change type to hash_table. Update dependent calls and types.
29149 * tree-complex.c: Include tree-hasher.h
29150 (htab_t complex_variable_components):
29151 Change type to hash_table. Update dependent calls and types.
29153 * tree-eh.c (htab_t finally_tree):
29154 Change type to hash_table. Update dependent calls and types.
29156 * tree-flow.h (extern int_tree_map_hash): Moved into tree-hasher
29157 struct int_tree_hasher.
29158 (extern int_tree_map_eq): Likewise.
29159 (uid_decl_map_hash): Removed.
29160 (extern decl_tree_map_eq): Likewise.
29162 * tree-hasher.h: New.
29163 (struct int_tree_hasher): New.
29164 (typedef int_tree_htab_type): New.
29166 * tree-inline.c: Include gimplify-ctx.h.
29168 * tree-mudflap.c: Include gimplify-ctx.h.
29170 * tree-parloops.c: Include tree-hasher.h.
29171 (htab_t eliminate_local_variables_stmt::decl_address):
29172 Change type to hash_table. Update dependent calls and types.
29173 (htab_t separate_decls_in_region::decl_copies): Likewise.
29175 * tree-scalar-evolution.c (htab_t resolve_mixers::cache):
29176 Change type to hash_table. Update dependent calls and types.
29178 * tree-sra.c (candidates):
29179 Change type to hash_table. Update dependent calls and types.
29181 * tree-ssa.c (int_tree_map_eq): Moved into struct int_tree_hasher
29183 (int_tree_map_hash): Likewise.
29185 * tree-ssa-dom.c (htab_t avail_exprs):
29186 Change type to hash_table. Update dependent calls and types.
29188 * tree-ssa-live.c (var_map_base_init::tree_to_index):
29189 Change type to hash_table. Update dependent calls and types.
29191 * tree-ssa-loop-ivopts.c (struct ivopts_data.inv_expr_tab):
29192 Change type to hash_table. Update dependent calls and types.
29194 * tree-ssa-phiopt.c (seen_ssa_names):
29195 Change type to hash_table. Update dependent calls and types.
29197 * tree-ssa-strlen.c (decl_to_stridxlist_htab):
29198 Change type to hash_table. Update dependent calls and types.
29200 * tree-ssa-uncprop.c (equiv):
29201 Change type to hash_table. Update dependent calls and types.
29203 2013-04-25 Jakub Jelinek <jakub@redhat.com>
29205 PR rtl-optimization/57003
29206 * regcprop.c (copyprop_hardreg_forward_1): If ksvd.ignore_set_reg,
29207 call note_stores with kill_clobbered_value callback again after
29208 killing regs_invalidated_by_call.
29210 2013-04-25 James Greenhalgh <james.greenhalgh@arm.com>
29212 * config/aarch64/aarch64-simd.md
29213 (aarch64_simd_bsl<mode>_internal): Rewrite RTL to not use UNSPEC_BSL.
29214 (aarch64_simd_bsl<mode>): Likewise.
29215 * config/aarch64/iterators.md (unspec): Remove UNSPEC_BSL.
29217 2013-04-25 Marek Polacek <polacek@redhat.com>
29219 PR tree-optimization/57066
29220 * builtins.c (fold_builtin_logb): Return +Inf for -Inf.
29222 2013-04-25 James Greenhalgh <james.greenhalgh@arm.com>
29224 * config/aarch64/aarch64-simd.md (neg<mode>2): Use VDQ iterator.
29226 2013-04-25 James Greenhalgh <james.greenhalgh@arm.com>
29228 * config/aarch64/aarch64-builtins.c
29229 (aarch64_fold_builtin): New.
29230 * config/aarch64/aarch64-protos.h (aarch64_fold_builtin): New.
29231 * config/aarch64/aarch64.c (TARGET_FOLD_BUILTIN): Define.
29232 * config/aarch64/aarch64-simd-builtins.def (abs): New.
29233 * config/aarch64/arm_neon.h
29234 (vabs<q>_<f32, 64>): Implement using __builtin_aarch64_fabs.
29236 2013-04-25 James Greenhalgh <james.greenhalgh@arm.com>
29237 Tejas Belagod <tejas.belagod@arm.com>
29239 * config/aarch64/aarch64-builtins.c
29240 (aarch64_gimple_fold_builtin): New.
29241 * config/aarch64/aarch64-protos.h (aarch64_gimple_fold_builtin): New.
29242 * config/aarch64/aarch64-simd-builtins.def (addv): New.
29243 * config/aarch64/aarch64-simd.md (addpv4sf): New.
29244 (addvv4sf): Update.
29245 * config/aarch64/aarch64.c (TARGET_GIMPLE_FOLD_BUILTIN): Define.
29247 2013-04-25 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
29249 * config/aarch64/aarch64.md
29250 (*cmp_swp_<optab><ALLX:mode>_shft_<GPI:mode>): New pattern.
29252 2013-04-25 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
29254 * config/aarch64/aarch64.md (*ngc<mode>): New pattern.
29255 (*ngcsi_uxtw): New pattern.
29257 2013-04-25 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
29258 Julian Brown <julian@codesourcery.com>
29260 * config/arm/arm.c (neon_builtin_type_mode): Add T_V4HF.
29261 (TB_DREG): Add T_V4HF.
29262 (v4hf_UP): New macro.
29263 (neon_itype): Add NEON_FLOAT_WIDEN, NEON_FLOAT_NARROW.
29264 (arm_init_neon_builtins): Handle NEON_FLOAT_WIDEN, NEON_FLOAT_NARROW.
29265 Handle initialisation of V4HF. Adjust initialisation of reinterpret
29267 (arm_expand_neon_builtin): Handle NEON_FLOAT_WIDEN, NEON_FLOAT_NARROW.
29268 (arm_vector_mode_supported_p): Handle V4HF.
29269 (arm_mangle_map): Handle V4HFmode.
29270 * config/arm/arm.h (VALID_NEON_DREG_MODE): Add V4HF.
29271 * config/arm/arm_neon_builtins.def: Add entries for
29272 vcvtv4hfv4sf, vcvtv4sfv4hf.
29273 * config/arm/neon.md (neon_vcvtv4sfv4hf): New pattern.
29274 (neon_vcvtv4hfv4sf): Likewise.
29275 * config/arm/neon-gen.ml: Handle half-precision floating point
29277 * config/arm/neon-testgen.ml: Handle Requires_FP_bit feature.
29278 * config/arm/arm_neon.h: Regenerate.
29279 * config/arm/neon.ml (type elts): Add F16.
29280 (type vectype): Add T_float16x4, T_floatHF.
29281 (type vecmode): Add V4HF.
29282 (type features): Add Requires_FP_bit feature.
29283 (elt_width): Handle F16.
29284 (elt_class): Likewise.
29285 (elt_of_class_width): Likewise.
29286 (mode_of_elt): Refactor.
29287 (type_for_elt): Handle F16, fix error messages.
29288 (vectype_size): Handle T_float16x4.
29289 (vcvt_sh): New function.
29290 (ops): Add entries for vcvt_f16_f32, vcvt_f32_f16.
29291 (string_of_vectype): Handle T_floatHF, T_float16, T_float16x4.
29292 (string_of_mode): Handle V4HF.
29293 * doc/arm-neon-intrinsics.texi: Regenerate.
29295 2013-04-25 James Greenhalgh <james.greenhalgh@arm.com>
29297 * config/aarch64/aarch64.c (aarch64_print_operand): Fix asm_fprintf
29298 format specifier in 'X' case.
29300 2013-04-25 Alan Modra <amodra@gmail.com>
29303 * config/rs6000/rs6000.md (rotlsi3_internal7): Rename to
29304 rotlsi3_internal7le and condition on !BYTES_BIG_ENDIAN.
29305 (rotlsi3_internal8be): New BYTES_BIG_ENDIAN insn.
29306 Repeat for many other rotate/shift and mask patterns using subregs.
29307 Name lshiftrt insns.
29308 (ashrdisi3_noppc64): Rename to ashrdisi3_noppc64be and condition
29309 on WORDS_BIG_ENDIAN.
29311 2013-04-25 Alan Modra <amodra@gmail.com>
29313 * config.gcc: Support little-endian powerpc-linux targets.
29314 * config/rs6000/linux.h (LINK_OS_LINUX_EMUL): Define.
29315 (LINK_OS_LINUX_SPEC): Define.
29316 * config/rs6000/linuxspe.h (TARGET_DEFAULT):
29317 Preserve MASK_LITTLE_ENDIAN.
29318 * config/rs6000/default64.h (TARGET_DEFAULT): Likewise.
29319 * config/rs6000/linuxaltivec.h (TARGET_DEFAULT): Likewise.
29320 * config/rs6000/linux64.h (OPTION_LITTLE_ENDIAN): Don't zero.
29321 (LINK_OS_LINUX_EMUL32, LINK_OS_LINUX_EMUL64): Define.
29322 (LINK_OS_LINUX_SPEC32, LINK_OS_LINUX_SPEC64): Use above.
29323 * config/rs6000/rs6000.c (output_toc): Don't use .tc for TARGET_ELF.
29324 Correct fp word order for little-endian. Don't shift toc entries
29325 smaller than a word for little-endian.
29326 * config/rs6000/rs6000.md (bswaphi2, bswapsi2 split): Comment.
29327 (bswapdi2 splits): Correct low-part subreg for little-endian.
29328 Remove wrong BYTES_BIG_ENDIAN tests, and rename vars to remove
29329 low/high where such is correct only for be.
29330 * config/rs6000/sysv4.h (SUBTARGET_OVERRIDE_OPTIONS): Allow
29331 little-endian for -mcall-aixdesc.
29333 2013-04-25 Alan Modra <amodra@gmail.com>
29335 * config/rs6000/rs6000.c (rs6000_secondary_reload_inner): Use
29336 replace_equiv_address_nv.
29338 2013-04-25 Alan Modra <amodra@gmail.com>
29340 * config/rs6000/rs6000.c (rs6000_emit_set_long_const): Tidy.
29342 2013-04-24 Vladimir Makarov <vmakarov@redhat.com>
29345 2013-04-24 Vladimir Makarov <vmakarov@redhat.com>
29346 * rtl.h (struct rtx_def): ...
29348 2013-04-24 Vladimir Makarov <vmakarov@redhat.com>
29350 PR rtl-optimizations/57046
29351 * lra-constraints (split_reg): Set up lra_risky_transformations_p
29352 for multi-reg splits.
29354 2013-04-24 H.J. Lu <hongjiu.lu@intel.com>
29356 * config/i386/x86-64.h (ASM_SPEC): Support -mx32.
29358 2013-04-24 Sterling Augustine <saugustine@google.com>
29360 * dwarf2out.c (skeleton_debug_str_hash, add_skeleton_AT_string)
29361 (comp_dir_string, debug_str_dwo_section): New.
29362 (DEBUG_STR_DWO_SECTION): Rename to ...
29363 (DEBUG_DWO_STR_SECTION): ... this.
29364 (DEBUG_NORM_STR_SECTION): Delete.
29365 (DEBUG_STR_SECTION, DEBUG_STR_SECTION_FLAGS): Edit definitions.
29366 (DEBUG_STR_DWO_SECTION_FLAGS): New.
29367 (find_AT_string): Move most logic to ...
29368 (find_AT_string_in_table): ... here. New.
29369 (add_top_level_skeleton_die_attrs): Call comp_dir_string and
29370 add_skeleton_AT_string. Delete logic.
29371 (output_skeleton_debug_sections): Remove call to
29372 add_top_level_skeleton_die_attrs.
29373 (add_comp_dir_attribute): Move logic to comp_dir_string.
29374 (dwarf2out_init): Initialize debug_str_dwo_section.
29375 (output_indirect_string): Call find_string_form.
29376 (output_indirect_strings): Rewrite.
29377 (prune_unused_types): Empty skeleton_debug_str_hash.
29378 Call get_skeleton_type_unit and add_top_level_skeleton_die_attrs.
29379 (dwarf2out_finish): Call output_indirect_strings.
29381 2013-04-24 Paolo Carlini <paolo.carlini@oracle.com>
29383 * doc/cpp.texi: Remove __GXX_EXPERIMENTAL_CXX1Y__.
29385 2013-04-24 Vladimir Makarov <vmakarov@redhat.com>
29387 * rtl.h (struct rtx_def): Add comment for field jump.
29388 (LRA_SUBREG_P): New macro.
29389 * recog.c (register_operand): Check LRA_SUBREG_P.
29390 * lra.c (lra): Add note at the end of RTL code. Align non-empty
29392 * lra-spills.c (lra_spill): Align stack after spilling pseudos.
29393 (lra_final_code_change): Skip subreg change for operators.
29394 * lra-eliminations.c (eliminate_regs_in_insn): Make return earlier
29395 if there are no operand changes.
29396 * lra-constraints.c (curr_insn_set): New.
29397 (match_reload): Set LRA_SUBREG_P.
29398 (emit_spill_move): Ditto.
29399 (check_and_process_move): Use curr_insn_set. Process only single
29400 set insns. Don't initialize sec_mem_p and change_p.
29401 (simplify_operand_subreg): Use LRA_SUBREG_P.
29402 (reg_in_class_p): New function.
29403 (process_alt_operands): Use it. Use #if HAVE_ATTR_enabled instead
29404 of #ifdef. Add code to remove cycling.
29405 (process_address): Check EXTRA_CONSTRAINT_STR. Process even if
29406 non-null disp. Reload inner instead of disp when base and index
29407 are null. Try to put lo_sum into register.
29408 (EBB_PROBABILITY_CUTOFF): Redefine probability in percents.
29409 (check_and_process_move): Move code for move cost check to
29410 simple_move_p. Remove equiv_substitution.
29411 (simple_move_p): New function.
29412 (curr_insn_transform): Initialize sec_mem_p and change_p. Set up
29413 curr_insn_set. Call check_and_process_move only for single set
29414 insns. Use the new function. Move call of check_and_process_move
29415 after operand equiv substitution and address process.
29417 2013-04-24 James Greenhalgh <james.greenhalgh@arm.com>
29419 * config/aarch64/arm_neon.h (vld1<q>_lane*): Fix constraints.
29420 (vld1<q>_dup_<sufp><8, 16, 32, 64>): Likewise.
29421 (vld1<q>_<sufp><8, 16, 32, 64>): Likewise.
29423 2013-04-24 Paolo Carlini <paolo.carlini@oracle.com>
29425 * doc/cpp.texi: Document __GXX_EXPERIMENTAL_CXX1Y__.
29427 2013-04-24 Marek Polacek <polacek@redhat.com>
29429 * tree-scalar-evolution.h (analyze_scalar_evolution): Remove.
29430 * tree-scalar-evolution.c (get_exit_conditions_rec): Likewise.
29431 (select_loops_exit_conditions): Likewise.
29432 (number_of_iterations_for_all_loops): Likewise.
29433 (analyze_scalar_evolution_for_all_loop_phi_nodes): Likewise.
29434 (scev_analysis): Likewise.
29436 2013-04-02 Catherine Moore <clm@codesourcery.com>
29437 Chao-ying Fu <fu@mips.com>
29439 * config/mips/micromips.md (jraddiusp): New pattern.
29440 * config/mips/mips.c (mips_expand_epilogue): Use the JRADDIUSP
29441 instruction if possible.
29443 2013-04-24 Alan Modra <amodra@gmail.com>
29445 * config/rs6000/driver-rs6000.c (elf_dcachebsize): Fix comment pasto.
29447 2013-04-24 Julian Brown <julian@codesourcery.com>
29448 Chung-Lin Tang <cltang@codesourcery.com>
29450 * dwarf2out.c (gen_enumeration_type_die): Fix HOST_BITS_PER_WIDE_INT
29451 dependency behavior in enumeration type DIE generation. Add TODO note
29452 to comments about future DW_FORM_sdata/udata re-work of related code.
29454 2013-04-23 Lawrence Crowl <crowl@google.com>
29456 * Makefile.in: Update as needed below.
29458 * hash-table.h (class hash_table):
29459 Correct many methods with parameter types compare_type to the correct
29460 value_type. (Correct code was unlikely to notice the change.)
29461 (hash_table::elements_with_deleted) New.
29462 (class hashtable::iterator): New.
29463 (hashtable::begin()): New.
29464 (hashtable::end()): New.
29465 (FOR_EACH_HASH_TABLE_ELEMENT): New.
29467 * statistics.c (statistics_hashes):
29468 Change type to hash_table. Update dependent calls and types.
29470 * tree-into-ssa.c (var_infos):
29471 Change type to hash_table. Update dependent calls and types.
29473 * tree-ssa-coalesce.c (struct coalesce_list_d.list):
29474 Change type to hash_table. Update dependent calls and types.
29476 * tree-ssa-loop-im.c (struct mem_ref.refs):
29477 Change type to hash_table. Update dependent calls and types.
29479 * tree-ssa-reassoc.c (undistribute_ops_list::ctable):
29480 Change type to hash_table. Update dependent calls and types.
29482 * tree-ssa-sccvn.c (vn_tables_s::nary):
29483 Change type to hash_table. Update dependent calls and types.
29484 (vn_tables_s::phis): Likewise.
29485 (vn_tables_s::references): Likewise.
29487 * tree-ssa-sccvn.h (vn_nary_op_eq): Update parameter and return types.
29488 (vn_reference_eq): Update parameter and return types.
29490 * tree-ssa-structalias.c (pointer_equiv_class_table):
29491 Change type to hash_table. Update dependent calls and types.
29492 (location_equiv_class_table): Likewise.
29494 * tree-vect-data-refs.c: Consequential changes for making
29495 peeling a hash_table.
29497 * tree-vect-loop.c (new_loop_vec_info): Dependent hash_table update.
29498 (destroy_loop_vec_info): Dependent hash_table update.
29500 * tree-vectorizer.h (peeling_htab):
29501 Change type to hash_table. Update dependent calls and types.
29503 2013-04-23 Shiva Chen <shiva0217@gmail.com>
29505 * lra-assigns.c (find_hard_regno_for): Use lra_reg_val_equal_p
29506 to check the register content is equal or not.
29507 * lra-constraints.c (match_reload): Use lra_assign_reg_val
29508 to assign register content record.
29509 * lra-eliminations.c (update_reg_eliminate): Use
29510 lra_update_reg_val_offset to update register content offset.
29511 * lra-int.h (struct lra_reg): Add offset member.
29512 (lra_reg_val_equal_p): New static inline function.
29513 (lra_update_reg_val_offset): New static inline function.
29514 (lra_assign_reg_val): New static inline function.
29515 * lra.c (lra_create_new_reg): Use lra_assign_reg_val
29516 to assign register content record.
29517 (initialize_lra_reg_info_element): Initial offset to zero.
29519 2013-04-23 Catherine Moore <clm@codesourcery.com>
29521 * config/mips/mips.md (*movhi_internal, *movqi_internal): New
29522 operands. Record compression.
29524 2013-04-23 Xinliang David Li <davidxl@google.com>
29526 * cfghhooks.c (dump_bb_for_graph): Support 'slim' graph dump.
29528 2013-04-23 Richard Biener <rguenther@suse.de>
29530 PR middle-end/57036
29531 * tree-inline.c (copy_edges_for_bb): Add can_make_abnormal_goto
29532 parameter, only add abnormal goto edges from the copied body
29533 if the call could perform abnormal gotos.
29534 (copy_cfg_body): Adjust.
29536 2013-04-23 Sofiane Naci <sofiane.naci@arm.com>
29538 * config/aarch64/aarch64.md (*mov<mode>_aarch64): Add simd attribute.
29540 2013-04-23 Andreas Schwab <schwab@linux-m68k.org>
29542 * coretypes.h (gimple_stmt_iterator): Add struct to make
29545 2013-04-23 Richard Biener <rguenther@suse.de>
29547 PR tree-optimization/57026
29548 * tree-vrp.c (simplify_conversion_using_ranges): Do not propagate
29549 from SSA names occuring in abnormal PHI nodes.
29551 2013-04-22 Andi Kleen <ak@linux.intel.com>
29553 * lto/lto.c (print_lto_report_1): Fix LTO report names.
29555 2013-04-22 Andi Kleen <ak@linux.intel.com>
29557 * lto/lto.c (print_lto_report_1): Declare early.
29558 (read_cgraph_and_symbols): Call print_lto_report_1 early.
29560 2013-04-22 Andi Kleen <ak@linux.intel.com>
29562 * common.opt (-flto-report-wpa): Add.
29563 * doc/invoke.texi (-flto-report-wpa): Add.
29564 * lto/lto.c (do_whole_program_analysis): Check for lto-report-wpa.
29567 2013-04-22 Xinliang David Li <davidxl@google.com>
29569 * graph.c (draw_cfg_node_succ_edges): Add branch probility as label.
29570 * cfghhooks.c (dump_bb_for_graph): Dump profile count and frquency.
29571 * Makefile.in: New dependency
29573 David Daney <ddaney.cavm@gmail.com>
29575 * configure.ac (gcc_cv_as_micromips_support): Use the
29576 --fatal-warnings option.
29577 * configure: Regenerate.
29579 2013-04-22 Marek Polacek <polacek@redhat.com>
29582 * tsan.c (instrument_expr): Don't instrument expression
29583 in case its size is zero.
29585 2013-04-22 Uros Bizjak <ubizjak@gmail.com>
29589 2013-03-17 Uros Bizjak <ubizjak@gmail.com>
29591 * config/alpha/alpha.c (TARGET_LRA_P): New define.
29593 2013-04-22 James Greenhalgh <james.greenhalgh@arm.com>
29595 * coretypes.h (gimple_stmt_iterator_d): Forward declare.
29596 (gimple_stmt_iterator): New typedef.
29597 * gimple.h (gimple_stmt_iterator): Rename to...
29598 (gimple_stmt_iterator_d): ... This.
29599 * doc/tm.texi.in (TARGET_FOLD_BUILTIN): Detail restriction that
29600 trees be valid for GIMPLE and GENERIC.
29601 (TARGET_GIMPLE_FOLD_BUILTIN): New.
29602 * gimple-fold.c (gimple_fold_call): Call target hook
29603 gimple_fold_builtin.
29604 * hooks.c (hook_bool_gsiptr_false): New.
29605 * hooks.h (hook_bool_gsiptr_false): New.
29606 * target.def (fold_stmt): New.
29607 * doc/tm.texi: Regenerate.
29609 2013-04-22 Vladimir Makarov <vmakarov@redhat.com>
29612 * lra-eliminations.c (mark_not_eliminable): Prevent elimination of
29613 a set sp if no stack realignment.
29615 2013-04-22 Nick Clifton <nickc@redhat.com>
29617 * config.gcc (tilegx-linux): Extend extra_objs rather than
29619 (tilepro-linux): Likewise.
29621 2013-04-22 James Greenhalgh <james.greenhalgh@arm.com>
29623 * config/aarch64/aarch64-builtins.c
29625 (CF0, CF1, CF2, CF3, CF4, CF10): New.
29626 (VAR<1-12>): Add MAP parameter.
29627 (BUILTIN_*): Likewise.
29628 * config/aarch64/aarch64-simd-builtins.def: Set MAP parameter.
29629 * config/aarch64/aarch64-simd.md (aarch64_sshl_n<mode>): Remove.
29630 (aarch64_ushl_n<mode>): Likewise.
29631 (aarch64_sshr_n<mode>): Likewise.
29632 (aarch64_ushr_n<mode>): Likewise.
29633 (aarch64_<maxmin><mode>): Likewise.
29634 (aarch64_sqrt<mode>): Likewise.
29635 * config/aarch64/arm_neon.h (vshl<q>_n_*): Use new builtin names.
29636 (vshr<q>_n_*): Likewise.
29638 2013-04-22 James Greenhalgh <james.greenhalgh@arm.com>
29640 * config/aarch64/aarch64-builtins.c
29641 (aarch64_simd_builtin_type_mode): Handle SF types.
29643 (BUILTIN_GPF): Define.
29644 (aarch64_init_simd_builtins): Handle SF types.
29645 * config/aarch64/aarch64-simd-builtins.def (frecpe): Add support.
29646 (frecps): Likewise.
29647 (frecpx): Likewise.
29648 * config/aarch64/aarch64-simd.md
29649 (simd_types): Update simd_frcp<esx> to simd_frecp<esx>.
29650 (aarch64_frecpe<mode>): New.
29651 (aarch64_frecps<mode>): Likewise.
29652 * config/aarch64/aarch64.md (unspec): Add UNSPEC_FRECP<ESX>.
29653 (v8type): Add frecp<esx>.
29654 (aarch64_frecp<FRECP:frecp_suffix><mode>): New.
29655 (aarch64_frecps<mode>): Likewise.
29656 * config/aarch64/iterators.md (FRECP): New.
29657 (frecp_suffix): Likewise.
29658 * config/aarch64/arm_neon.h
29659 (vrecp<esx><qsd>_<fd><32, 64>): Convert to using builtins.
29661 2013-04-22 Christian Bruel <christian.bruel@st.com>
29664 * config/sh/sh.h (enum reg_class): Remove DF_HI_REGS.
29665 (REG_CLASS_NAMES): Idem.
29666 (REG_CLASS_CONTENTS): Idem.
29667 (REGCLASS_HAS_FP_REG): Idem.
29668 * config/sh/sh.c (sh_cannot_change_mode_class): Idem.
29669 (sh_conditional_register_usage): Idem.
29671 2013-04-21 Jeff Law <law@redhat.com>
29673 * tree-ssa-forwprop.c (simplify_conversion_from_bitmask): New function.
29674 (ssa_forward_propagate_and_combine): Use it.
29676 2013-04-19 Vladimir Makarov <vmakarov@redhat.com>
29678 * lra.c: Update the flow chart diagram.
29680 2013-04-19 Vladimir Makarov <vmakarov@redhat.com>
29682 PR rtl-optimization/56847
29683 * lra-constraints.c (process_alt_operands): Discourage alternative
29684 with non-matche doffsettable memory constraint fro memory with
29687 2013-04-19 Richard Biener <rguenther@suse.de>
29689 PR tree-optimization/56982
29690 * builtins.def (BUILT_IN_LONGJMP): longjmp is not a leaf
29692 * gimplify.c (gimplify_call_expr): Notice special calls.
29693 (gimplify_modify_expr): Likewise.
29694 * tree-cfg.c (make_abnormal_goto_edges): Handle setjmp-like
29695 abnormal control flow receivers.
29696 (call_can_make_abnormal_goto): Handle cfun->calls_setjmp
29697 in the same way as cfun->has_nonlocal_labels.
29698 (gimple_purge_dead_abnormal_call_edges): Likewise.
29699 (stmt_starts_bb_p): Make setjmp-like abnormal control flow
29700 receivers start a basic-block.
29702 2013-04-19 Richard Biener <rguenther@suse.de>
29704 * tree-vectorizer.h (struct _slp_instance): Move load_permutation
29706 (struct _slp_tree): ... here. Make it a vector of unsigned ints.
29707 (SLP_INSTANCE_LOAD_PERMUTATION): Remove.
29708 (SLP_TREE_LOAD_PERMUTATION): Add.
29709 (vect_transform_slp_perm_load): Adjust prototype.
29710 * tree-vect-slp.c (vect_free_slp_tree): Adjust.
29711 (vect_free_slp_instance): Likewise.
29712 (vect_create_new_slp_node): Likewise.
29713 (vect_supported_slp_permutation_p): Remove.
29714 (vect_slp_rearrange_stmts): Adjust.
29715 (vect_supported_load_permutation_p): Likewise. Inline
29716 vect_supported_slp_permutation_p here.
29717 (vect_analyze_slp_instance): Compute load permutations per
29718 slp node instead of per instance.
29719 (vect_get_slp_defs): Adjust.
29720 (vect_transform_slp_perm_load): Likewise.
29721 (vect_schedule_slp_instance): Remove redundant code.
29722 (vect_schedule_slp): Remove hack for PR56270, add it ...
29723 * tree-vect-stmts.c (vectorizable_load): ... here, do not
29724 CSE loads for SLP. Adjust.
29726 2013-04-19 Greta Yorsh <Greta.Yorsh@arm.com>
29728 * config/arm/arm.c (load_multiple_sequence, ldm_stm_operation_p): Fix
29729 spelling in two comments.
29731 2013-04-19 Greta Yorsh <Greta.Yorsh@arm.com>
29734 * config/arm/arm.c (load_multiple_sequence): Require SP
29735 as base register for loads if SP is in the register list.
29737 2013-04-19 Martin Jambor <mjambor@suse.cz>
29739 PR tree-optimization/56718
29740 * ipa-cp.c (ipa_value_from_known_type_jfunc): Moved...
29741 * ipa-prop.c (ipa_binfo_from_known_type_jfunc): ...here, renamed
29742 and made public. Adjusted all callers.
29743 (ipa_intraprocedural_devirtualization): New function.
29744 * ipa-prop.h (ipa_binfo_from_known_type_jfunc): Declare.
29745 (ipa_intraprocedural_devirtualization): Likewise.
29746 * Makefile.in (tree-ssa-pre.o): Add ipa-prop.h to dependencies.
29748 2013-04-19 Richard Biener <rguenther@suse.de>
29750 PR tree-optimization/57000
29751 * tree-ssa-reassoc.c (pass_reassoc): Add TODO_update_ssa_only_virtuals.
29753 2013-04-19 Terry Guo <terry.guo@arm.com>
29755 * config/arm/cortex-m4-fpu.md (cortex_m4_v): Delete cpu unit.
29757 (cortex_m4_v_a, cortex_m4_v_b): ... new cpu units.
29758 (cortex_m4_v, cortex_m4_exa_va, cortex_m4_exb_vb): New reservations.
29759 (cortex_m4_fmacs): Use new reservations.
29760 (cortex_m4_f_load, cortex_m4_f_store): Likewise.
29762 2013-04-18 Vladimir Makarov <vmakarov@redhat.com>
29764 PR rtl-optimization/56999
29765 * lra-coalesce.c (coalescable_pseudo_p): Remove 2nd parameter and
29767 (lra_coalesce): Remove split_origin_bitmap and related code.
29768 * lra.c (lra): Coalesce after undoing inheritance. Recreate live
29769 ranges if necessary.
29771 2013-04-18 Uros Bizjak <ubizjak@gmail.com>
29773 * config/i386/i386.c (x86_64_ms_sysv_extra_clobbered_registers):
29775 (ix86_expand_call): Remove clobbered_registers array and use
29776 x86_64_ms_sysv_extra_clobbered_registers instead.
29777 * config/i386/i386.h (x86_64_ms_sysv_extra_clobbered_registers):
29779 * config/i386/predicates.md (call_rex64_ms_sysv_operation): New
29781 * config/i386/i386.md (*call_rex64_ms_sysv): Use
29782 call_rex64_ms_sysv_operation predicate. Remove explicit clobbers.
29783 (*call_value_rex64_ms_sysv): Ditto.
29785 2013-04-18 Cary Coutant <ccoutant@google.com>
29787 * dwarf2out.c (output_pubnames): Check die_perennial_p of
29788 parent instead of die_mark.
29790 2013-04-18 Diego Novillo <dnovillo@google.com>
29792 * gimple.c (create_gimple_tmp): New.
29793 (get_expr_type): New.
29794 (build_assign): New.
29795 (build_type_cast): New.
29796 * gimple.h (enum ssa_mode): Define.
29797 (gimple_seq_set_location): New.
29798 * asan.c (build_check_stmt): Change some gimple_build_* calls
29799 to use build_assign and build_type_cast.
29801 2013-04-18 Richard Biener <rguenther@suse.de>
29803 * tree-vect-data-refs.c (vect_analyze_group_access): Properly
29804 handle negative step. Remove redundant checks.
29805 (vect_create_data_ref_ptr): Avoid ICEs with non-constant steps.
29806 * tree-vect-stmts.c (vectorizable_load): Instead of asserting
29807 for negative step and grouped loads fail to vectorize.
29809 2013-04-18 Steven Bosscher <steven@gcc.gnu.org>
29811 * emit-rtl.c (reset_insn_used_flags): New function.
29812 (reset_all_used_flags): Use it.
29813 (verify_insn_sharing): New function.
29814 (verify_rtl_sharing): Fix verification for SEQUENCEs.
29816 2013-04-18 Jakub Jelinek <jakub@redhat.com>
29818 PR tree-optimization/56984
29819 * tree-vrp.c (register_edge_assert_for_2): For (x >> M) < N
29820 and (x >> M) >= N don't register any assertion if N << M is the
29823 2013-04-18 Steven Bosscher <steven@gcc.gnu.org>
29825 * lower-subreg.c (resolve_simple_move): If called self-recursive,
29826 do not delete_insn insns that have not yet been emitted, only
29827 unlink them with remove_insn.
29828 * df-scan.c (df_insn_delete): Revert r197492.
29830 2013-04-17 Steven Bosscher <steven@gcc.gnu.org>
29832 * emit-rtl.c (link_insn_into_chain): Handle chaining of SEQUENCEs.
29833 * reorg.c (emit_delay_sequence): Simplify with emit-rtl API.
29835 2013-04-17 Greta Yorsh <Greta.Yorsh@arm.com>
29837 * config/arm/arm.md (movsicc_insn): Convert define_insn into
29838 define_insn_and_split.
29839 (and_scc,ior_scc,negscc): Likewise.
29840 (cmpsi2_addneg, subsi3_compare): Convert to named patterns.
29842 2013-04-17 Greta Yorsh <Greta.Yorsh@arm.com>
29844 * config/arm/arm.c (use_return_insn): Return 0 for targets that
29845 can benefit from using a sequence of LDRD instructions in epilogue
29846 instead of a single LDM instruction.
29848 2013-04-17 Manuel López-Ibáñez <manu@gcc.gnu.org>
29851 * doc/extend.texi: Fix typo.
29853 2013-04-17 Richard Biener <rguenther@suse.de>
29855 * tree-vect-slp.c (vect_build_slp_tree_1): Split out from ...
29856 (vect_build_slp_tree): ... here.
29857 (vect_build_slp_tree_1): Compute which stmts of the SLP group
29858 match. Remove special-casing of mismatched complex loads.
29859 (vect_build_slp_tree): Based on the result from vect_build_slp_tree_1
29860 re-try the match with swapped commutative operands.
29861 (vect_supported_load_permutation_p): Remove special-casing of
29862 mismatched complex loads.
29863 (vect_analyze_slp_instance): Adjust.
29865 2013-04-17 Richard Biener <rguenther@suse.de>
29867 PR rtl-optimization/56921
29868 * cfgloop.h (struct loop): Add simple_loop_desc member.
29869 (struct niter_desc): Mark with GTY(()).
29870 (simple_loop_desc): Do not use aux field but simple_loop_desc.
29871 * loop-iv.c (get_simple_loop_desc): Likewise.
29872 (free_simple_loop_desc): Likewise.
29875 2013-04-16 Richard Biener <rguenther@suse.de>
29877 PR rtl-optimization/56921
29878 * loop-init.c (pass_rtl_move_loop_invariants): Add
29879 TODO_do_not_ggc_collect to todo_flags_finish.
29880 (pass_rtl_unswitch): Same.
29881 (pass_rtl_unroll_and_peel_loops): Same.
29882 (pass_rtl_doloop): Same.
29884 2013-04-17 Eric Botcazou <ebotcazou@adacore.com>
29886 * tree-ssa-alias.c (nonoverlapping_component_refs_of_decl_p): New.
29887 (decl_refs_may_alias_p): Add REF1 and REF2 parameters.
29888 Use nonoverlapping_component_refs_of_decl_p to disambiguate component
29890 (refs_may_alias_p_1): Adjust call to decl_refs_may_alias_p.
29891 * tree-streamer.c (record_common_node): Adjust reference in comment.
29893 2013-04-17 Terry Guo <terry.guo@arm.com>
29895 * config/arm/cortex-m4.md: Add a new bypass.
29897 2013-04-16 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
29899 * config/aarch64/aarch64.md (*adds_<optab><mode>_multp2):
29901 (*subs_<optab><mode>_multp2): New pattern.
29902 (*adds_<optab><ALLX:mode>_<GPI:mode>): New pattern.
29903 (*subs_<optab><ALLX:mode>_<GPI:mode>): New pattern.
29905 2013-04-16 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
29907 * config/aarch64/aarch64.md (*adds_mul_imm_<mode>): New pattern.
29908 (*subs_mul_imm_<mode>): New pattern.
29910 2013-04-16 David Edelsohn <dje.gcc@gmail.com>
29913 * config/rs6000/vsx.md (vsx_mov<mode>): Add j->r alternative.
29914 (vsx_movti_64bit): Change j->wa to O->wa. Add n->r alternative.
29915 (vsx_movti_32bit): Change j->wa to O->wa.
29917 2013-04-16 Richard Biener <rguenther@suse.de>
29919 PR rtl-optimization/56921
29920 * loop-init.c (pass_rtl_move_loop_invariants): Add
29921 TODO_do_not_ggc_collect to todo_flags_finish.
29922 (pass_rtl_unswitch): Same.
29923 (pass_rtl_unroll_and_peel_loops): Same.
29924 (pass_rtl_doloop): Same.
29926 2013-04-16 Greta Yorsh <Greta.Yorsh@arm.com>
29928 * config/arm/arm.c (emit_multi_reg_push): New declaration
29929 for an existing function.
29930 (arm_emit_strd_push): New function.
29931 (arm_expand_prologue): Used here.
29932 (arm_emit_ldrd_pop): New function.
29933 (arm_expand_epilogue): Used here.
29934 (arm_get_frame_offsets): Update condition.
29935 (arm_emit_multi_reg_pop): Add a special case for load of a single
29936 register with writeback.
29938 2013-04-16 Uros Bizjak <ubizjak@gmail.com>
29940 * doc/invoke.texi (i386 Option): Reword -mstack-protector-guard
29943 2013-04-16 Richard Biener <rguenther@suse.de>
29945 PR tree-optimization/56756
29946 * tree-ssa-loop-im.c (struct first_mem_ref_loc_1): New functor.
29947 (first_mem_ref_loc): New.
29948 (execute_sm): Place the load temporarily before a previous
29949 access instead of in the latch edge to ensure its SSA dependencies
29950 are defined at points dominating the load.
29952 2013-04-16 Steven Bosscher <steven@gcc.gnu.org>
29954 * cfgrtl.c (cfg_layout_merge_blocks): Revert r184005, implement
29955 correct fix by moving header and footer insn to the footer of
29956 the merged basic block. Clear BB_END of the merged-away block.
29958 PR middle-end/43631
29959 * emit-rtl.c (make_note_raw): New function.
29960 (link_insn_into_chain): New static inline function.
29961 (add_insn): Use it.
29962 (add_insn_before, add_insn_after): Factor insn chain linking code...
29963 (add_insn_before_nobb, add_insn_after_nobb): ...here, new functions
29964 using link_insn_into_chain.
29965 (note_outside_basic_block_p): New helper function for emit_note_after
29966 and emit_note_before.
29967 (emit_note_after): Use nobb variant of add_insn_after if the note
29968 should not be contained in a basic block.
29969 (emit_note_before): Use nobb variant of add_insn_before if the note
29970 should not be contained in a basic block.
29971 (emit_note_copy): Use make_note_raw.
29972 (emit_note): Likewise.
29973 * bb-reorder.c (insert_section_boundary_note): Remove hack to set
29974 BLOCK_FOR_INSN to NULL manually for NOTE_INSN_SWITCH_TEXT_SECTIONS.
29975 * jump.c (cleanup_barriers): Use reorder_insns_nobb to avoid making
29976 the moved barrier the tail of the basic block it follows.
29977 * var-tracking.c (pass_variable_tracking): Add TODO_verify_flow.
29979 2013-04-15 Jakub Jelinek <jakub@redhat.com>
29981 PR tree-optimization/56962
29982 * gimple-ssa-strength-reduction.c (record_increment): Only set
29983 initializer if gimple_assign_rhs_code is {,POINTER_}PLUS_EXPR and
29984 either rhs1 or rhs2 is equal to c->base_expr.
29986 2013-04-15 Richard Biener <rguenther@suse.de>
29988 PR tree-optimization/56933
29989 * tree-vectorizer.h (struct _stmt_vec_info): Remove read_write_dep
29991 (GROUP_READ_WRITE_DEPENDENCE): Remove.
29992 (STMT_VINFO_GROUP_READ_WRITE_DEPENDENCE): Likewise.
29993 * tree-vect-data-refs.c (vect_analyze_group_access): Move
29994 dependence check ...
29995 vect_analyze_data_ref_dependence (vect_analyze_data_ref_dependence):
29997 * tree-vect-stmts.c (new_stmt_vec_info): Do not initialize
29998 GROUP_READ_WRITE_DEPENDENCE.
30000 2013-04-15 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
30002 * emit-rtl.c (reset_all_used_flags): New function.
30003 (verify_rtl_sharing): Call reset_all_used_flags before and after
30004 performing the checks.
30006 2013-04-15 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
30008 * config/arm/arm.c (const_ok_for_dimode_op): Handle AND case.
30009 * config/arm/arm.md (*anddi3_insn): Change to insn_and_split.
30010 * config/arm/constraints.md (De): New constraint.
30011 * config/arm/neon.md (anddi3_neon): Delete.
30012 (neon_vand<mode>): Expand to standard anddi3 pattern.
30013 * config/arm/predicates.md (imm_for_neon_inv_logic_operand):
30014 Move earlier in the file.
30015 (neon_inv_logic_op2): Likewise.
30016 (arm_anddi_operand_neon): New predicate.
30018 2013-04-15 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
30020 * configure.ac (gcc_cv_ld_as_needed): Set
30021 gcc_cv_ld_as_needed_option, gcc_cv_no_as_needed_option.
30022 Use -z ignore, -z record on *-*-solaris2*.
30023 (HAVE_LD_AS_NEEDED): Update comment.
30024 (LD_AS_NEEDED_OPTION, LD_NO_AS_NEEDED_OPTION): Define.
30025 * configure: Regenerate.
30026 * config.in: Regenerate.
30027 * gcc.c (init_gcc_specs) [USE_LD_AS_NEEDED]: Use
30028 LD_AS_NEEDED_OPTION, LD_NO_AS_NEEDED_OPTION.
30029 * config/sol2.h [HAVE_LD_AS_NEEDED] (USE_LD_AS_NEEDED): Define.
30030 * doc/tm.texi.in (USE_LD_AS_NEEDED): Allow for --as-needed
30031 equivalents. Fix markup.
30032 * doc/tm.texi: Regenerate.
30034 2013-04-15 Andrew Hsieh <andrewhsieh.google.com>
30036 * config/i386/i386.opt: New option mstack-protector-guard=.
30037 * config/i386/i386-opts.h: Add enum stack_protector_guard.
30038 * config/i386/i386.h: Define TARGET_SSP_GLOBAL_GUARD and
30039 TARGET_SSP_TLS_GUARD.
30040 * config/i386/i386.c (ix86_option_override_internal): Set
30041 ix86_stack_protector_guard.
30042 * config/i386/i386.md (stack_protect_set): Enable for
30043 TARGET_SSP_TLS_GUARD only.
30044 (stack_protect_set_<mode>): Ditto.
30045 (stack_protect_test): Ditto.
30046 (stack_protect_test_<mode>): Ditto.
30047 * doc/invoke.texi (i386 Option): Document.
30049 2013-04-15 Eric Botcazou <ebotcazou@adacore.com>
30052 * config/sparc/sparc.c (enum sparc_mode_class): Add H_MODE value.
30053 (S_MODES): Set H_MODE bit.
30054 (SF_MODES): Set only S_MODE and SF_MODE bits.
30055 (DF_MODES): Set SF_MODES and only D_MODE and DF_MODE bits.
30056 (sparc_init_modes) <MODE_INT>: Set H_MODE bit for sub-word modes.
30057 <MODE_VECTOR_INT>: Do not set SF_MODE for sub-word modes.
30058 <MODE_FLOAT>: Likewise.
30060 2013-04-15 Joey Ye <joey.ye@arm.com>
30062 * config/arm/arm.c (thumb_far_jump_used_p): Fix typo in comments.
30064 2013-04-15 Joey Ye <joey.ye@arm.com>
30066 * config/arm/arm.c (thumb1_final_prescan_insn): Assert lr save
30068 (thumb_far_jump_used_p): Count instruction size and set
30071 2013-04-14 Eric Botcazou <ebotcazou@adacore.com>
30073 * reorg.c (fill_simple_delay_slots): Reindent block of code.
30074 * resource.c (mark_target_live_regs): Reformat conditional block.
30076 2013-04-13 Steven Bosscher <steven@gcc.gnu.org>
30078 * sched-deps.c (deps_analyze_insn): Do not check for EH_REGION insn
30079 notes, they are emitted only just before final.
30080 * sched-int.h: Include insn-attr.h before checking INSN_SCHEDULING.
30082 2013-04-13 Steven Bosscher <steven@gcc.gnu.org>
30084 * emit-rtl.c (remove_insn): Do not call df_insn_delete here.
30085 * cfgrtl.c (delete_insn): Call it here instead.
30086 * lra-spills.c (lra_final_code_change): Use delete_insn.
30087 * haifa-sched.c (sched_remove_insn): Likewise.
30088 * sel-sched-ir.c (return_nop_to_pool): Clear INSN_DELETED_P for nops
30089 returning to the nop pool.
30090 (sel_remove_insn): Simplify the only_disconnect case via remove_insn,
30091 use delete_insn for definitive removal. Clear BLOCK_FOR_INSN.
30093 2013-04-12 Steven Bosscher <steven@gcc.gnu.org>
30095 * doc/tm.texi.in (LOOP_ALIGN): Remove loop note references.
30096 * doc/tm.texi: Regenerated.
30098 2013-04-12 Uros Bizjak <ubizjak@gmail.com>
30100 * config/i386/i386.c (ix86_hard_regno_mode_ok): Use ANY_QI_REGNO_P in
30103 2013-04-12 Steven Bosscher <steven@gcc.gnu.org>
30105 * df-core.c (df_find_def): Compare register numbers.
30106 (df_find_use): Likewise.
30108 2013-04-12 Vladimir Makarov <vmakarov@redhat.com>
30111 * config/i386/i386.c (ix86_hard_regno_mode_ok): Add
30112 lra_in_progress for return.
30114 2013-04-12 Greta Yorsh <Greta.Yorsh@arm.com>
30116 * config/arm/arm.md (mov_scc,mov_negscc,mov_notscc): Convert
30117 define_insn into define_insn_and_split and emit movsicc patterns.
30119 2013-04-12 Greta Yorsh <Greta.Yorsh@arm.com>
30121 * config/arm/arm.c (gen_operands_ldrd_strd): Initialize "base".
30123 2013-04-12 Richard Biener <rguenther@suse.de>
30125 * tree-pass.h (TODO_do_not_ggc_collect): New.
30126 * passes.c (execute_one_ipa_transform_pass): Honor
30127 TODO_do_not_ggc_collect.
30128 (execute_one_pass): Likewise.
30131 2013-04-10 Richard Biener <rguenther@suse.de>
30133 * passes.c (init_optimization_passes): Remove reload pass.
30134 * ira.c (do_reload): Merge into ...
30136 (rest_of_handle_reload): Remove.
30137 (pass_reload): Likewise.
30138 * config/i386/i386.c (ix86_option_override): Refer to ira instead
30139 of reload for vzeroupper pass placement.
30141 2013-04-12 Jakub Jelinek <jakub@redhat.com>
30143 PR tree-optimization/56918
30144 PR tree-optimization/56920
30145 * fold-const.c (int_const_binop_1): Use op1.mul_with_sign (op2, ...)
30146 instead of op1 - op2. Pass 2 * TYPE_PRECISION (type) as second
30147 argument to rshift method. For 2 * HOST_BITS_PER_WIDE_INT precision
30148 use wide_mul_with_sign method.
30150 2013-04-12 Richard Biener <rguenther@suse.de>
30152 * gimple.c (is_gimple_constant): Vector CONSTRUCTORs should
30153 not be considered a gimple constant.
30155 2013-04-12 Marc Glisse <marc.glisse@inria.fr>
30157 * fold-const.c (const_binop): Handle vector shifts by a scalar.
30158 (fold_binary_loc): Call const_binop also for mixed vector-scalar
30161 2013-04-12 Manuel López-Ibáñez <manu@gcc.gnu.org>
30162 Jakub Jelinek <jakub@redhat.com>
30164 * opts.c: Include diagnostic-color.h.
30165 (common_handle_option): Handle OPT_fdiagnostics_color_.
30166 * Makefile.in (OBJS-libcommon): Add diagnostic-color.o.
30167 (diagnostic.o, opts.o, pretty-print.o): Depend on diagnostic-color.h.
30168 (diagnostic-color.o): New.
30169 * common.opt (fdiagnostics-color, fdiagnostics-color=): New options.
30170 (diagnostic_color_rule): New enum.
30171 * dwarf2out.c (gen_producer_string): Don't print -fdiagnostics-color*.
30172 * langhooks.c (lhd_print_error_function): Add %r "locus" and %R around
30173 the location string.
30174 * diagnostic.def: Add 3rd argument to DEFINE_DIAGNOSTIC_KIND macros,
30175 either NULL, or color kind.
30176 * diagnostic-color.c: New file.
30177 * diagnostic-color.h: New file.
30178 * diagnostic-core.h (DEFINE_DIAGNOSTIC_KIND): Adjust macro for 3
30180 * doc/invoke.texi (-fdiagnostics-color): Document.
30181 * pretty-print.h (pp_show_color): Define.
30182 (struct pretty_print_info): Add show_color field.
30183 * diagnostic.c: Include diagnostic-color.h.
30184 (diagnostic_build_prefix): Adjust for 3 argument DEFINE_DIAGNOSTIC_KIND
30185 macros. Colorize error:, warning: etc. strings and also the location
30187 (diagnostic_show_locus): Colorize the caret line.
30188 * pretty-print.c: Include diagnostic-color.h.
30189 (pp_base_format): Handle %r and %R format specifiers. Colorize strings
30190 inside of %< %> quotes or quoted through q format modifier.
30192 2013-04-12 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
30194 * ifcvt.c (end_ifcvt_sequence): Mark a and b for unsharing as well.
30196 2013-04-11 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
30198 * config/aarch64/aarch64.c (aarch64_select_cc_mode): Allow NEG
30199 code in CC_NZ mode.
30200 * config/aarch64/aarch64.md (*neg_<shift><mode>3_compare0): New
30203 2013-04-11 Marek Polacek <polacek@redhat.com>
30205 PR tree-optimization/48184
30206 * params.def (PARAM_ALIGN_THRESHOLD): Increase the minimum value to 1.
30208 2013-04-11 Eric Botcazou <ebotcazou@adacore.com>
30210 * stor-layout.c (skip_simple_constant_arithmetic): Move to...
30211 * tree.c (skip_simple_constant_arithmetic): ...here and make public.
30212 (skip_simple_arithmetic): Tidy up.
30213 * tree.h (skip_simple_constant_arithmetic): Declare.
30215 2013-04-11 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
30217 * config/aarch64/aarch64.h (REVERSIBLE_CC_MODE): Define.
30219 2013-04-11 Richard Biener <rguenther@suse.de>
30221 * tree-vect-loop.c (get_initial_def_for_induction): Properly
30222 generate vector constants.
30224 2013-04-11 Richard Biener <rguenther@suse.de>
30226 PR tree-optimization/56878
30227 * tree-flow.h (outermost_invariant_loop_for_expr): Declare.
30228 * tree-ssa-loop-ivopts.c (outermost_invariant_loop_for_expr):
30230 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment):
30231 Prefer to align the DR with the most invariant base address.
30233 2013-04-11 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
30235 * opts.c (common_handle_option): Fix formatting and add FALLTHRU
30238 2013-04-11 James Greenhalgh <james.greenhalgh@arm.com>
30240 * config/aarch64/aarch64-simd.md (aarch64_vcond_internal): Fix
30241 floating-point vector comparisons against 0.
30243 2013-04-11 Jakub Jelinek <jakub@redhat.com>
30245 PR tree-optimization/56899
30246 * fold-const.c (extract_muldiv_1): Apply distributive law
30247 only if TYPE_OVERFLOW_WRAPS (ctype).
30249 2013-04-11 Bin Cheng <bin.cheng@arm.com>
30252 * ira-costs.c (scan_one_insn): Check whether the source rtx of
30253 loading has side effect.
30255 2013-04-10 Steven Bosscher <steven@gcc.gnu.org>
30257 * config/sparc/sparc.c: Include tree-pass.h.
30258 (TARGET_MACHINE_DEPENDENT_REORG): Do not redefine.
30259 (sparc_reorg): Rename to sparc_do_work_around_errata. Move to
30260 head of file. Change return type. Split off gate function.
30261 (sparc_gate_work_around_errata): New function.
30262 (pass_work_around_errata): New pass definition.
30263 (insert_pass_work_around_errata) New pass insert definition to
30264 insert pass_work_around_errata just after delayed-branch scheduling.
30265 (sparc_option_override): Insert the pass.
30266 * config/sparc/t-sparc (sparc.o): Add TREE_PASS_H dependence.
30268 2013-04-10 David S. Miller <davem@davemloft.net>
30270 * config/sparc/sparc.h (ASM_CPU_SPEC): Pass -Av8 if -mcpu=supersparc
30271 or -mcpu=hypersparc.
30273 * target.def (cstore_mode): New hook.
30274 * target.h: Include insn-codes.h
30275 * targhooks.c: Likewise.
30276 (default_cstore_mode): New function.
30277 * targhooks.h: Declare it.
30278 * doc/tm.texi.in: New hook slot for TARGET_CSTORE_MODE.
30279 * doc/tm.texi: Rebuild.
30280 * expmed.c (emit_cstore): Obtain cstore boolean result mode using
30281 target hook, rather than inspecting the insn_data.
30282 * config/sparc/sparc.c (sparc_cstore_mode): New function.
30283 (TARGET_CSTORE_MODE): Redefine.
30284 (emit_scc_insn): When TARGET_ARCH64, emit new 64-bit boolean
30286 * config/sparc/predicates.md (cstore_result_operand): New special
30288 * config/sparc/sparc.md (cstoresi4, cstoredi4, cstore<F:mode>4):
30289 Use it for operand 0.
30290 (*seqsi_special): Rewrite using 'P' mode iterator on operand 0.
30291 (*snesi_special): Likewise.
30292 (*snesi_zero): Likewise.
30293 (*seqsi_zero): Likewise.
30294 (*sltu_insn): Likewise.
30295 (*sgeu_insn): Likewise.
30296 (*seqdi_special): Make operand 0 and comparison operation be of
30298 (*snedi_special): Likewise.
30299 (*snedi_special_vis3): Likewise.
30300 (*neg_snesi_zero): Rename to *neg_snesisi_zero.
30301 (*neg_snesi_sign_extend): Rename to *neg_snesidi_zero.
30302 (*snesi_zero_extend): Delete, covered by 'P' mode iterator.
30303 (*neg_seqsi_zero): Rename to *neg_seqsisi_zero.
30304 (*neg_seqsi_sign_extend): Rename to *neg_seqsidi_zero.
30305 (*seqsi_zero_extend): Delete, covered by 'P' mode iterator.
30306 (*sltu_extend_sp64): Likewise.
30307 (*neg_sltu_insn): Rename to *neg_sltusi_insn.
30308 (*neg_sltu_extend_sp64): Rename to *neg_sltudi_insn.
30309 (*sgeu_extend_sp64): Delete, covered by 'P' mode iterator.
30310 (*neg_sgeu_insn): Rename to *neg_sgeusi_insn.
30311 (*neg_sgeu_extend_sp64): Rename to *neg_sgeudi_insn.
30313 2013-04-10 Yufeng Zhang <yufeng.zhang@arm.com>
30315 * config/aarch64/aarch64.c (aarch64_print_extension): New function.
30316 (aarch64_start_file): Use the new function.
30318 2013-04-10 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
30319 Jason Merrill <jason@redhat.com>
30321 * common.opt: Add -gdwarf.
30322 * opts.c (common_handle_option): Handle it.
30323 * gcc.c (ASM_DEBUG_SPEC): Don't expect "-2" for DWARF.
30325 2013-04-10 Richard Biener <rguenther@suse.de>
30327 * passes.c (execute_todo): Do not call ggc_collect conditional here.
30328 (execute_one_ipa_transform_pass): But unconditionally here.
30329 (execute_one_pass): And here.
30330 (init_optimization_passes): Remove reload pass.
30331 * tree-pass.h (TODO_ggc_collect): Remove.
30332 (pass_reload): Likewise.
30333 * ira.c (do_reload): Merge into ...
30335 (rest_of_handle_reload): Remove.
30336 (pass_reload): Likewise.
30337 * config/i386/i386.c (ix86_option_override): Refer to ira instead
30338 of reload for vzeroupper pass placement.
30339 * <everywhere>: Remove TODO_ggc_collect from todo_flags_start
30340 and todo_flags_finish of all passes.
30342 2013-04-10 Richard Biener <rguenther@suse.de>
30344 * tree-vectorizer.h (struct _slp_oprnd_info): Remove
30345 first_const_oprnd field, rename first_def_type to first_op_type.
30346 * tree-vect-slp.c (vect_create_oprnd_info): Adjust.
30347 (vect_get_and_check_slp_defs): Always use the type of the
30348 operand. Allow mixed vect_external_def, vect_constant_def types.
30349 (vect_get_constant_vectors): Handle mixed vect_external_def,
30350 vect_constant_def types.
30352 2013-04-10 Joern Rennecke <joern.rennecke@embecosm.com>
30354 PR tree-optimization/55524
30355 * tree-ssa-math-opts.c
30356 (convert_mult_to_fma): Don't use an fms construct
30357 when we don't have an fms operation, but fnma, and it looks
30358 likely that we'll be able to use the latter.
30360 2013-04-10 Zhouyi Zhou <yizhouzhou@ict.ac.cn>
30362 * cif-code.def (OVERWRITABLE): Correct the comment for overwritable
30364 * ipa-inline.c (can_inline_edge_p): Let dump mechanism report the
30365 inline fail caused by overwritable functions.
30367 2013-04-10 Chung-Ju Wu <jasonwucj@gmail.com>
30369 * combine.c (simplify_compare_const): Use GET_MODE_MASK to filter out
30370 unnecessary bits in the constant power of two case.
30372 2013-04-10 Richard Biener <rguenther@suse.de>
30374 * tree-vect-slp.c (vect_get_and_check_slp_defs): Remove
30375 broken code swapping operands.
30376 (vect_build_slp_tree): Do not compute load permutations here.
30377 (vect_analyze_slp_instance): Compute load permutations here,
30378 after building the SLP tree.
30380 2013-04-09 Christian Bruel <christian.bruel@st.com>
30382 * config/sh/sh.md (barrier_align): Use next/prev_active_insn instead
30383 of next/prev_real_insn.
30385 2013-04-09 Jan Hubicka <jh@suse.cz>
30387 * ipa.c (cgraph_externally_visible_p, varpool_externally_visible_p):
30388 Drop aliased parameter.
30389 (function_and_variable_visibility): Do not handle alias pairs.
30390 * cgraph.c (varpool_externally_visible_p): Update prototype.
30391 * varpool.c (varpool_add_new_variable): Update.
30393 2013-04-09 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
30395 * config/arm/arm.md (minmax_arithsi_non_canon): New pattern.
30397 2013-04-09 Steven Bosscher <steven@gcc.gnu.org>
30399 * sched-vis.c (print_pattern): Print SEQUENCE of insns as insns.
30401 * config/sparc/sparc.md: Use define_c_enum for "unspec" and "unspecv".
30403 2013-04-09 Marek Polacek <polacek@redhat.com>
30405 PR tree-optimization/48762
30406 * params.def (PARAM_MAX_CSE_INSNS): Increase the minimum value to 1.
30408 2013-04-09 Richard Biener <rguenther@suse.de>
30410 * tree-vect-slp.c (vect_get_and_check_slp_defs): Remove code
30412 (vect_build_slp_tree): Likewise.
30413 (vect_analyze_slp_cost_1, vect_analyze_slp_cost): New functions
30414 calculating the cost of a SLP instance.
30415 (vect_analyze_slp_instance): Use it from here, after building
30418 2013-04-09 Jakub Jelinek <jakub@redhat.com>
30420 PR middle-end/56883
30421 * omp-low.c (expand_omp_for_generic, expand_omp_for_static_nochunk,
30422 expand_omp_for_static_chunk): Use simple_p = true in
30423 force_gimple_operand_gsi calls when assigning to addressable decls.
30425 2013-04-09 Jeff Law <law@redhat.com>
30427 * tree-vrp.c (simplify_cond_using_ranges): Simplify test of boolean
30428 when the boolean was created by converting a wider object which
30429 had a boolean range.
30431 2013-04-09 Richard Biener <rguenther@suse.de>
30433 * tree-vectorizer.h (slp_void_p): Remove.
30434 (slp_tree): Typedef before _slp_tree declaration.
30435 (struct _slp_tree): Use a vector of slp_tree as children.
30436 (vect_get_place_in_interleaving_chain): Remove.
30437 * tree-vect-data-refs.c (vect_get_place_in_interleaving_chain):
30439 * tree-vect-slp.c (vect_get_place_in_interleaving_chain): ... here
30441 (vect_free_slp_tree, vect_print_slp_tree, vect_mark_slp_stmts,
30442 vect_mark_slp_stmts_relevant, vect_slp_rearrange_stmts,
30443 vect_detect_hybrid_slp_stmts, vect_slp_analyze_node_operations,
30444 vect_schedule_slp_instance, vect_remove_slp_scalar_calls):
30445 Use slp_node instead of slp_void_p and adjust.
30447 2013-04-09 Richard Biener <rguenther@suse.de>
30449 * tree-ssa-loop-manip.c (rewrite_into_loop_closed_ssa): Avoid
30450 work that is not necessary.
30452 2013-04-09 Jakub Jelinek <jakub@redhat.com>
30454 PR tree-optimization/56854
30455 * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Don't
30456 forward into clobber stmts if it would change MEM_REF lhs into
30459 2013-04-09 Maxim Kuvyrkov <maxim@kugelworks.com>
30461 * tree.c (type_hash_lookup, type_hash_add): Make static.
30462 * tree.h (type_hash_lookup, type_hash_add): Remove global declarations.
30464 2013-04-09 Richard Biener <rguenther@suse.de>
30466 * tree.h (unsave_expr_now): Remove.
30467 * tree-inline.c (mark_local_for_remap_r): Remove.
30468 (unsave_expr_1): Likewise.
30469 (unsave_r): Likewise.
30470 (unsave_expr_now): Likewise.
30471 * tree-ssa-copy.c (replace_exp_1): Use unshare_expr.
30472 (propagate_tree_value): Likewise.
30474 2013-04-08 Steven Bosscher <steven@gcc.gnu.org>
30476 * doc/rtl.texi (sequence): Rewrite documentation to match the
30477 current use of SEQUENCE rtl objects.
30478 * rtl.def (SEQUENCE): Likewise.
30480 * doc/rtl.texi (NOTE_INSN_EH_REGION_BEG, NOTE_INSN_EH_REGION_END):
30481 Update documentation.
30482 (NOTE_INSN_LOOP_BEG, NOTE_INSN_LOOP_END, NOTE_INSN_LOOP_CONT,
30483 NOTE_INSN_LOOP_VTOP): Remove documentation for non-existing notes.
30485 * reg-notes.def (REG_EH_CONTEXT): Remove unused note.
30487 2013-04-08 Teresa Johnson <tejohnson@google.com>
30489 * basic-block.h (GCOV_COMPUTE_SCALE): Define.
30490 * ipa-inline-analysis.c (param_change_prob): Use helper rounding divide
30492 (estimate_edge_size_and_time): Add comment to suggest using rounding
30494 (estimate_node_size_and_time): Ditto.
30495 (remap_edge_change_prob): Use helper rounding divide methods.
30496 * value-prof.c (gimple_divmod_fixed_value_transform): Ditto.
30497 (gimple_mod_pow2_value_transform): Ditto.
30498 (gimple_mod_subtract_transform): Ditto.
30499 (gimple_ic_transform): Ditto.
30500 (gimple_stringops_transform): Ditto.
30501 * stmt.c (conditional_probability): Ditto.
30502 (emit_case_dispatch_table): Ditto.
30503 * lto-cgraph.c (merge_profile_summaries): Ditto.
30504 * tree-optimize.c (execute_fixup_cfg): Ditto.
30505 * cfgcleanup.c (try_forward_edges): Ditto.
30506 * cfgloopmanip.c (scale_loop_profile): Ditto.
30508 (duplicate_loop_to_header_edge): Ditto.
30509 (lv_adjust_loop_entry_edge): Ditto.
30510 * tree-vect-loop.c (vect_transform_loop): Ditto.
30511 * profile.c (compute_branch_probabilities): Ditto.
30512 * cfgbuild.c (compute_outgoing_frequencies): Ditto.
30513 * lto-streamer-in.c (input_cfg): Ditto.
30514 * gimple-streamer-in.c (input_bb): Ditto.
30515 * ipa-cp.c (update_profiling_info): Ditto.
30516 (update_specialized_profile): Ditto.
30517 * tree-vect-loop-manip.c (slpeel_tree_peel_loop_to_edge): Ditto.
30518 * cfg.c (update_bb_profile_for_threading): Add comment to suggest using
30520 * sched-rgn.c (compute_dom_prob_ps): Ditto.
30521 (compute_trg_info): Ditto.
30522 * cfgrtl.c (force_nonfallthru_and_redirect): Ditto.
30523 (purge_dead_edges): Ditto.
30524 * loop-unswitch.c (unswitch_loop): Ditto.
30525 * cgraphclones.c (cgraph_clone_edge): Ditto.
30526 (cgraph_clone_node): Ditto.
30527 * tree-inline.c (copy_bb): Ditto.
30528 (copy_edges_for_bb): Ditto.
30529 (initialize_cfun): Ditto.
30530 (copy_cfg_body): Ditto.
30531 (expand_call_inline): Ditto.
30533 2013-04-08 Kai Tietz <ktietz@redhat.com>
30535 * config/i386/cygwin.h (EXTRA_OS_CPP_BUILTINS): Replaced
30536 TARGET_CYGWIN64 by TARGET_64BIT.
30538 2013-04-08 Joern Rennecke <joern.rennecke@embecosm.com>
30540 * config/epiphany/epiphany.md (GPR_1): New constant.
30541 (define_expand "mov<mode>cc): FAIL if gen_compare_reg returned 0.
30542 * config/epiphany/epiphany.c (gen_compare_reg):
30543 For flag_finite_math_only, avoid swapping operands when r0 and/or r1
30544 is already in place.
30545 Use GPR_0 / GPR_1 instead of 0/1 for r0/r1 register numbers.
30546 Don't require being called during rtl expansion; If y operlaps r0,
30548 (epiphany_compute_frame_size, epiphany_expand_prologue): Use GPR_1.
30549 (epiphany_expand_epilogue): Likewise.
30551 * config/epiphany/epiphany.c (epiphany_select_cc_mode):
30552 Don't use CC_FPmode for ORDERED / UNORDERED.
30553 * config/epiphany/epiphany.md (cmpsf_ord): Make pattern unconditional.
30555 * config/epiphany/constraints.md (CnL): New constraint.
30556 * config/epiphany/epiphany.md (addsi3_i): Add r/r/CnL alternative.
30557 * config/epiphany/predicates.md (add_operand): Allow 1024.
30559 * config/epiphany/epiphany.md (logical_op): New code iterator.
30560 (op_mnc): New code attribute.
30561 (<op_mnc>_f, mov_f, cstoresi4): New patterns.
30562 (mov_f+1, mov_f+2): New peephole2 patterns.
30564 * config/epiphany/epiphany.md (mov_f+2): New peephole2 pattern.
30565 (cstoresi4): Also allow re-use of zero result when doing a NE
30566 comparison to a non-zero operand.
30567 Use (clobber (scratch)) for first insn if the gpr output is not needed.
30569 * config/epiphany/epiphany.md (<insn_opname>v2si3):
30570 Use gen_addsi3_i / gen_subsi3_i.
30572 2013-04-08 Jakub Jelinek <jakub@redhat.com>
30576 * tree-eh.c (optimize_clobbers): Only remove clobbers if bb doesn't
30577 contain anything but clobbers, at most one __builtin_stack_restore,
30578 optionally debug stmts and final resx, and if it has at least one
30579 incoming EH edge. Don't check for SSA_NAME on LHS of a clobber.
30580 (sink_clobbers): Don't check for SSA_NAME on LHS of a clobber.
30581 Instead of moving clobbers with MEM_REF LHS with SSA_NAME address
30582 which isn't defaut definition, remove them.
30583 (unsplit_eh, cleanup_empty_eh): Use single_{pred,succ}_{p,edge}
30584 instead of EDGE_COUNT comparisons or EDGE_{PRED,SUCC}.
30585 * tree-ssa-ccp.c (execute_fold_all_builtins): Remove clobbers
30586 with MEM_REF LHS with SSA_NAME address.
30588 2013-04-08 Jeff Law <law@redhat.com>
30590 * gimple.c (canonicalize_cond_expr_cond): Rewrite x ^ y into x != y.
30592 2013-04-08 Richard Biener <rguenther@suse.de>
30594 * gimple-pretty-print.c (debug_gimple_stmt): Do not print
30596 * tree-vect-loop.c (vect_determine_vectorization_factor): Dump
30597 determined vector type.
30598 (vect_analyze_data_refs): Likewise.
30599 (vect_get_new_vect_var): Adjust.
30600 (vect_create_destination_var): Preserve SSA name versions.
30601 * tree-vect-stmts.c (get_vectype_for_scalar_type_and_size): Do
30602 not dump anything here.
30604 2013-04-08 Joern Rennecke <joern.rennecke@embecosm.com>
30606 * config/epiphany/epiphany.h (struct GTY (()) machine_function):
30607 Add member lr_slot_known.
30608 * config/epiphany/epiphany.md (reload_insi_ra): Compute lr_slot_offs
30610 * config/epiphany/epiphany.c (epiphany_compute_frame_size):
30611 Remove code that sets lr_slot_offset according to what a previous
30612 version of epiphany_emit_save_restore used to do.
30613 (epiphany_emit_save_restore): When doing an lr save or restore,
30614 set/verify lr_slot_known and lr_slot_offset.
30616 2013-04-08 Xinyu Qi <xyqi@marvell.com>
30619 * config/arm/arm.h (REG_CLASS_CONTENTS): Include IWMMXT_GR_REGS
30622 2013-04-08 Richard Biener <rguenther@suse.de>
30624 * alias.c (find_base_term): Fix thinko in previous change.
30626 2013-04-08 Jakub Jelinek <jakub@redhat.com>
30628 * tree-loop-distribution.c (const_with_all_bytes_same): New function.
30629 (generate_memset_builtin): Only handle integer_all_onesp as -1 val if
30630 TYPE_PRECISION is equal to mode bitsize. Use const_with_all_bytes_same
30631 if possible to compute val.
30632 (classify_partition): Verify CONSTRUCTOR doesn't have any elts.
30633 For QImode integers don't require anything about precision. Use
30634 const_with_all_bytes_same to find out if the constant doesn't have
30635 repeated bytes in it.
30637 2013-04-08 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
30639 * config/s390/s390.c (s390_expand_insv): Only accept insertions
30642 2013-04-08 Marek Polacek <polacek@redhat.com>
30644 PR rtl-optimization/48182
30645 * params.def (PARAM_MIN_CROSSJUMP_INSNS): Increase the minimum
30648 2013-04-06 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
30651 * config/pa/pa.c (legitimize_pic_address): Before incrementing label
30652 nuses, make sure we have a label.
30654 2013-04-05 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
30657 * config/rs6000/rs6000.c (rs6000_emit_swdiv_high_precision): Remove.
30658 (rs6000_emit_swdiv_low_precision): Remove.
30659 (rs6000_emit_swdiv): Rewrite to handle between one and four
30660 iterations of Newton-Raphson generally; modify required number of
30661 iterations for some cases.
30662 * config/rs6000/rs6000.h (RS6000_RECIP_HIGH_PRECISION_P): Remove.
30664 2013-04-05 Steven Bosscher <steven@gcc.gnu.org>
30666 * bb-reorder.c (fix_crossing_unconditional_branches): Remove a
30667 set-but-unused variable.
30669 * cgraph.c (cgraph_release_function_body): Clear cfun->cfg to make
30670 basic blocks of released function bodies garbage-collectable.
30672 * ree.c (find_and_remove_re): Do not call df_finish_pass here.
30673 (struct rtl_opt_pass): Add TODO_df_finish.
30675 * rtl.def (DEFINE_SUBST, DEFINE_SUBST_ATTR): Add documentation.
30677 2013-04-05 Greta Yorsh <Greta.Yorsh@arm.com>
30679 * config/arm/constraints.md (q): New constraint.
30680 * config/arm/ldrdstrd.md: New file.
30681 * config/arm/arm.md (ldrdstrd.md) New include.
30682 (arm_movdi): Use "q" instead of "r" constraint
30683 for double-word memory access.
30684 (movdf_soft_insn): Likewise.
30685 * config/arm/vfp.md (movdi_vfp): Likewise.
30686 * config/arm/t-arm (MD_INCLUDES): Add ldrdstrd.md.
30687 * config/arm/arm-protos.h (gen_operands_ldrd_strd): New declaration.
30688 * config/arm/arm.c (gen_operands_ldrd_strd): New function.
30689 (mem_ok_for_ldrd_strd): Likewise.
30690 (output_move_double): Update assertion.
30692 2013-04-05 Greta Yorsh <Greta.Yorsh@arm.com>
30694 * config/arm/arm.md: Comment on splitting Thumb1 patterns.
30696 2013-04-05 Greta Yorsh <Greta.Yorsh@arm.com>
30698 * config/arm/arm.md (arm_smax_insn): Convert define_insn into
30699 define_insn_and_split.
30700 (arm_smin_insn,arm_umaxsi3,arm_uminsi3): Likewise.
30702 2013-04-05 Greta Yorsh <Greta.Yorsh@arm.com>
30704 * config/arm/arm.md (arm_ashldi3_1bit): Convert define_insn into
30705 define_insn_and_split.
30706 (arm_ashrdi3_1bit,arm_lshrdi3_1bit): Likewise.
30707 (shiftsi3_compare): New pattern.
30708 (rrx): New pattern.
30709 * config/arm/unspecs.md (UNSPEC_RRX): New.
30711 2013-04-05 Greta Yorsh <Greta.Yorsh@arm.com>
30713 * config/arm/arm.md (negdi_extendsidi): New pattern.
30714 (negdi_zero_extendsidi): Likewise.
30716 2013-04-05 Greta Yorsh <Greta.Yorsh@arm.com>
30718 * config/arm/arm.md (andsi_iorsi3_notsi): Convert define_insn into
30719 define_insn_and_split.
30720 (arm_negdi2,arm_abssi2,arm_neg_abssi2): Likewise.
30721 (arm_cmpdi_insn,arm_cmpdi_unsigned): Likewise.
30723 2013-04-05 Greta Yorsh <Greta.Yorsh@arm.com>
30725 * config/arm/arm.md (arm_subdi3): Convert define_insn into
30726 define_insn_and_split.
30727 (subdi_di_zesidi,subdi_di_sesidi): Likewise.
30728 (subdi_zesidi_di,subdi_sesidi_di,subdi_zesidi_zesidi): Likewise.
30730 2013-04-05 Greta Yorsh <Greta.Yorsh@arm.com>
30732 * config/arm/arm.md (subsi3_carryin): New pattern.
30733 (subsi3_carryin_const): Likewise.
30734 (subsi3_carryin_compare,subsi3_carryin_compare_const): Likewise.
30735 (subsi3_carryin_shift,rsbsi3_carryin_shift): Likewise.
30737 2013-04-05 Greta Yorsh <Greta.Yorsh@arm.com>
30739 * config/arm/arm.md (incscc,arm_incscc,decscc,arm_decscc): Delete.
30741 2013-04-05 Greta Yorsh <Greta.Yorsh@arm.com>
30743 * config/arm/arm.md (addsi3_carryin_<optab>): Set attribute predicable.
30744 (addsi3_carryin_alt2_<optab>,addsi3_carryin_shift_<optab>): Likewise.
30746 2013-04-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
30748 * config/arm/arm.c (arm_expand_builtin): Change fcode
30749 type to unsigned int.
30751 2013-04-05 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
30753 * doc/invoke.texi (ARM Options): Document cortex-a53 support.
30755 2013-04-04 Ian Lance Taylor <iant@google.com>
30757 * doc/standards.texi (Standards): The Go frontend supports the Go 1
30760 2013-04-04 Steven Bosscher <steven@gcc.gnu.org>
30762 PR middle-end/56729
30763 * df-scan.c (df_insn_delete): Disable failing assert.
30765 2013-04-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
30767 * config/arm/arm-protos.h (arm_builtin_vectorized_function):
30768 New function prototype.
30769 * config/arm/arm.c (TARGET_VECTORIZE_BUILTINS): Define.
30770 (TARGET_VECTORIZE_BUILTIN_VECTORIZED_FUNCTION): Likewise.
30771 (arm_builtin_vectorized_function): New function.
30773 2013-04-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
30775 * config/arm/arm_neon_builtins.def: New file.
30776 * config/arm/arm.c (neon_builtin_data): Move contents to
30777 arm_neon_builtins.def.
30778 (enum arm_builtins): Include neon builtin definitions.
30779 (ARM_BUILTIN_NEON_BASE): Move from enum to macro.
30780 * config/arm/t-arm (arm.o): Add dependency on arm_neon_builtins.def.
30782 2013-04-04 Marek Polacek <polacek@redhat.com>
30784 PR tree-optimization/48186
30785 * predict.c (maybe_hot_frequency_p): Return false if
30786 HOT_BB_FREQUENCY_FRACTION is 0.
30787 (cgraph_maybe_hot_edge_p): Likewise.
30789 2013-04-04 Richard Biener <rguenther@suse.de>
30791 PR tree-optimization/56826
30792 * tree-vect-slp.c (vect_build_slp_tree): Compute ncopies
30795 2013-04-04 Richard Biener <rguenther@suse.de>
30797 PR tree-optimization/56213
30798 * tree-vect-data-refs.c (vect_check_strided_load): Remove.
30799 (vect_analyze_data_refs): Allow all non-nested loads as strided loads.
30801 2013-04-04 Richard Biener <rguenther@suse.de>
30803 PR tree-optimization/56837
30804 * tree-loop-distribution.c (classify_partition): For non-zero
30805 values require that the value has the same precision as its
30806 mode to be useful as memset value.
30808 2013-04-03 Nick Clifton <nickc@redhat.com>
30810 * config/v850/v850e3v5.md (fmasf4): Use fmaf.s on E3V5 architectures.
30811 (fmssf4): Use fmsf.s on E3V5 architectures.
30812 (fnmasf4): Use fnmaf.s on E3V5 architectures.
30813 (fnmssf4): Use fnmsf.s on E3V5 architectures.
30815 2013-04-03 Jeff Law <law@redhat.com>
30817 * Makefile.in (lra-constraints.o): Depend on $(OPTABS_H).
30818 (lra-eliminations.o): Likewise.
30820 2013-04-03 Teresa Johnson <tejohnson@google.com>
30822 * gcov-io.c (compute_working_sets): Moved most of body of old
30823 compute_working_sets here from profile.c.
30824 * gcov-io.h (NUM_GCOV_WORKING_SETS): Moved here from profile.c.
30825 (gcov_working_set_t): Moved typedef here from basic-block.h
30826 (compute_working_set): Declare.
30827 * profile.c (NUM_GCOV_WORKING_SETS): Moved to gcov-io.h.
30828 (get_working_sets): Renamed from compute_working_set,
30829 replace most of body with call to new compute_working_sets.
30830 (get_exec_counts): Replace call to compute_working_sets
30831 to get_working_sets.
30832 * profile.h (get_working_sets): Renamed from compute_working_set.
30833 * lto-cgraph.c (input_symtab): Replace call to compute_working_sets
30834 to get_working_sets.
30835 * basic-block.h (gcov_working_set_t): Moved to gcov-io.h.
30836 * gcov-dump.c (dump_working_sets): New function.
30838 2013-04-03 Kenneth Zadeck <zadeck@naturalbridge.com>
30840 * hwint.c (sext_hwi, zext_hwi): New functions.
30841 * hwint.h (HOST_BITS_PER_HALF_WIDE_INT, HOST_HALF_WIDE_INT,
30842 HOST_HALF_WIDE_INT_PRINT, HOST_HALF_WIDE_INT_PRINT_C,
30843 HOST_HALF_WIDE_INT_PRINT_DEC, HOST_HALF_WIDE_INT_PRINT_DEC_C,
30844 HOST_HALF_WIDE_INT_PRINT_UNSIGNED, HOST_HALF_WIDE_INT_PRINT_HEX,
30845 HOST_HALF_WIDE_INT_PRINT_HEX_PURE): New symbols.
30846 (sext_hwi, zext_hwi): New functions.
30848 2013-04-03 Jeff Law <law@redhat.com>
30850 PR tree-optimization/56799
30851 * tree-ssa-dom.c (record_equivalences_from_incoming_edge): Bring
30852 back test for widening conversion erroneously dropped in prior change.
30854 2013-04-03 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
30857 * config/aarch64/aarch64.c (is_jump_table): Use next_active_insn
30858 instead of next_real_insn.
30860 2013-04-03 Marek Polacek <polacek@redhat.com>
30863 * tsan.c (instrument_func_exit): Allow BUILT_IN_RETURN functions.
30865 2013-04-03 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
30868 * config/arm/arm.c (is_jump_table): Use next_active_insn instead of
30870 (thumb1_output_casesi): Likewise.
30871 (thumb2_output_casesi): Likewise.
30873 2013-04-03 Richard Biener <rguenther@suse.de>
30875 PR tree-optimization/56817
30876 * tree-ssa-loop-ivcanon.c (tree_unroll_loops_completely):
30878 (tree_unroll_loops_completely_1): ... new function to manually
30879 walk the loop tree, properly defering outer loops of unrolled
30880 loops to later iterations.
30882 2013-04-03 Marc Glisse <marc.glisse@inria.fr>
30884 * tree-vect-stmts.c (vectorizable_store): Accept BIT_FIELD_REF.
30885 (vectorizable_load): Likewise.
30886 * tree-vect-slp.c (vect_build_slp_tree): Likewise.
30887 * tree-vect-data-refs.c (vect_create_data_ref_ptr): Handle VECTOR_TYPE.
30889 2013-04-03 Marc Glisse <marc.glisse@inria.fr>
30891 * tree-flow-inline.h (get_addr_base_and_unit_offset_1): Handle
30894 2013-04-03 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
30896 * config/spu/spu.c (emit_nop_for_insn): Handle JUMP_TABLE_DATA.
30898 2013-04-03 Bin Cheng <bin.cheng@arm.com>
30900 * rtl.h (AUTO_INC_DEC): Fix typo of HAVE_POST_MODIFY_DISP.
30902 2013-04-03 Marc Glisse <marc.glisse@inria.fr>
30904 PR tree-optimization/56790
30905 * fold-const.c (fold_ternary_loc) <VEC_COND_EXPR>: Add constant
30908 2013-04-03 Marc Glisse <marc.glisse@inria.fr>
30910 * simplify-rtx.c (simplify_binary_operation_1) <VEC_SELECT>:
30912 (simplify_ternary_operation) <VEC_MERGE>: Use unsigned HOST_WIDE_INT
30913 for masks. Test for side effects. Handle nested VEC_MERGE. Handle
30916 2013-04-03 Jakub Jelinek <jakub@redhat.com>
30919 * tree.h (force_folding_builtin_constant_p): New decl.
30920 * builtins.c (force_folding_builtin_constant_p): New variable.
30921 (fold_builtin_constant_p): Fold immediately also if
30922 force_folding_builtin_constant_p.
30924 2013-04-03 Richard Biener <rguenther@suse.de>
30926 PR tree-optimization/56812
30927 * tree-vect-data-refs.c (vect_slp_analyze_data_ref_dependence):
30928 DRs of the same interleaving chain are independent.
30930 2013-04-02 Jason Merrill <jason@redhat.com>
30932 * gdbinit.in (pbb): Use debug fn.
30934 2013-04-02 Lawrence Crowl <crowl@google.com>
30936 * sese.h (struct ivtype_map_elt_s): Remove unused.
30937 (extern debug_ivtype_map): Remove unused.
30938 (extern eq_ivtype_map_elts): Remove unused.
30939 * sese.c (debug_ivtype_map): Removed unused.
30940 (debug_ivtype_map_1): Removed unused.
30941 (debug_ivtype_elt): Remove unused.
30942 (eq_ivtype_map_elts): Remove unused.
30944 2013-04-02 Kai Tietz <ktietz@redhat.com>
30947 * config/i386/cygming.h (SUB_TARGET_RECORD_STUB): New sub-target macro.
30948 * config/i386/i386-protos.h (i386_pe_record_stub): Add new prototype.
30949 * config/i386/i386.c (legitimize_pe_coff_extern_decl): New static
30951 (legitimize_pe_coff_symbol): Likewise.
30952 (is_imported_p): New helper-function.
30953 (ix86_option_override_internal): Make MEDIUM_PIC the default code-model
30954 for Windows x64 targets.
30955 (ix86_expand_prologue): Optimize for pe-coff targets.
30956 (ix86_expand_split_stack_prologue): Adjust for pe-coff targets.
30957 (legitimate_pic_address_disp_p): Adjust for x64 pe-coff to support
30958 medium/large code-model.
30959 (legitimize_pic_address): Likewise.
30960 (legitimize_tls_address): Likewise.
30961 (ix86_expand_call): Likewise.
30962 (x86_output_mi_thunk): Likewise.
30963 (get_dllimport_decl): Add new beimport argument.
30964 (construct_plt_address): Don't assert for x64 pe-coff targets.
30965 * config/i386/i386.h (PIC_OFFSET_TABLE_REGNUM): Adjust for x64 pe-coff
30967 (SYMBOL_FLAG_STUBVAR): New macro.
30968 (SYMBOL_REF_STUBVAR_P): Likewise.
30969 * config/i386/winnt.c (stub_list): New structure.
30970 (stub_head): New local variable.
30971 (i386_pe_record_stub): New function.
30972 (i386_pe_file_end): Emit refptr-stubs.
30974 2013-04-02 Jakub Jelinek <jakub@redhat.com>
30976 PR rtl-optimization/56745
30977 * ifcvt.c (cond_exec_find_if_block): Don't try to optimize
30978 if then_bb has no successors and else_bb is EXIT_BLOCK_PTR.
30981 * tree-ssa-alias.c (stmt_kills_ref_p_1): If base != ref->base
30982 and both of them are MEM_REFs, just compare first argument for
30983 equality and attempt to deal even with differing offsets.
30986 * tree-cfg.c (verify_gimple_assign_single): Allow lhs
30987 of gimple_clobber_p to be MEM_REF.
30988 * gimplify.c (gimplify_modify_expr): Gimplify *to_p of
30989 an assignment from TREE_CLOBBER_P. Allow it to be MEM_REF
30990 after gimplification.
30991 * asan.c (get_mem_ref_of_assignment): Don't instrument
30992 gimple_clobber_p stmts.
30993 * tree-ssa-dse.c (dse_optimize_stmt): Allow DSE of
30994 gimple_clobber_p stmt if they have MEM_REF lhs and
30995 are dead because of another gimple_clobber_p stmt.
30996 * tree-ssa-live.c (clear_unused_block_pointer): Treat
30997 gimple_clobber_p stmts like debug stmts.
30998 (remove_unused_locals): Remove clobbers with MEM_REF lhs
30999 that refer to unused VAR_DECLs or uninitialized values.
31000 * tree-sra.c (sra_ipa_reset_debug_stmts): Also remove
31001 gimple_clobber_p stmts if they refer to removed parameters.
31002 (get_repl_default_def_ssa_name, sra_ipa_modify_expr): Fix up
31005 2013-04-02 Uros Bizjak <ubizjak@gmail.com>
31007 * config/i386/i386.md (*testqi_ext_3): Merge with *testqi_ext_3_rex64
31008 using SWI48 mode attribute.
31010 2013-04-02 Wei Mi <wmi@google.com>
31012 * config/i386/i386.c (ix86_rtx_costs): Set proper rtx cost for
31013 ashl<mode>3_mask, *<shift_insn><mode>3_mask and
31014 *<rotate_insn><mode>3_mask in i386.md.
31016 2013-04-02 Alexander Ivchenko <alexander.ivchenko@intel.com>
31018 * config.gcc (arm*-*-linux-*): Remove duplicate t-linux-android.
31020 2013-04-02 Richard Biener <rguenther@suse.de>
31022 PR tree-optimization/56778
31023 * tree-vect-data-refs.c (vect_analyze_data_ref_dependence):
31024 Runtime alias tests are not supported for gather loads.
31025 * tree-vect-loop-manip.c (vect_loop_versioning): Insert
31026 stmts referenced from SSA operands before updating SSA form.
31028 2013-04-02 Ian Caulfield <ian.caulfield@arm.com>
31029 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
31031 * config/arm/arm-arches.def (armv8-a): Default to cortex-a53.
31032 * config/arm/t-arm (MD_INCLUDES): Depend on cortex-a53.md.
31033 * config/arm/cortex-a53.md: New file.
31034 * config/arm/bpabi.h (BE8_LINK_SPEC): Handle cortex-a53.
31035 * config/arm/arm.md (generic_sched, generic_vfp): Handle cortex-a53.
31036 * config/arm/arm.c (arm_issue_rate): Likewise.
31037 * config/arm/arm-tune.md: Regenerate
31038 * config/arm/arm-tables.opt: Regenerate.
31039 * config/arm/arm-cores.def: Add cortex-a53.
31041 2013-04-02 Zhenqiang Chen <zhenqiang.chen@arm.com>
31043 * config/arm/uclinux-elf.h: Add %L to LINK_GCC_C_SEQUENCE_SPEC for
31046 2013-04-02 Sofiane Naci <sofiane.naci@arm.com>
31048 * config/aarch64/aarch64.md (*mov<mode>_aarch64): Add variants for
31049 scalar load/store operations using B/H registers.
31050 (*zero_extend<SHORT:mode><GPI:mode>2_aarch64): Likewise.
31052 2013-04-02 Sofiane Naci <sofiane.naci@arm.com>
31054 * config/aarch64/aarch64.md (*mov<mode>_aarch64): Add alternatives for
31056 * config/aarch64/aarch64.c
31057 (aarch64_simd_scalar_immediate_valid_for_move): New.
31058 * config/aarch64/aarch64-protos.h
31059 (aarch64_simd_scalar_immediate_valid_for_move): New.
31060 * config/aarch64/constraints.md (Dh, Dq): New.
31061 * config/aarch64/iterators.md (hq): New.
31063 2013-04-02 Eric Botcazou <ebotcazou@adacore.com>
31065 * reorg.c (get_branch_condition): Deal with conditional returns.
31066 (fill_simple_delay_slots): Remove dead code dealing with jumps.
31068 2013-04-01 Wei Mi <wmi@google.com>
31070 * config/i386/i386.md (*ashl<mode>3_mask): Rewrite as define_insn.
31071 Truncate operand 2 using %b asm operand modifier.
31072 (*<shift_insn><mode>3_mask): Ditto.
31073 (*<rotate_insn><mode>3_mask): Ditto.
31075 2013-04-01 Steven Bosscher <steven@gcc.gnu.org>
31077 PR middle-end/56798
31078 * cfgbuild.c (inside_basic_block_p): Restore check broken at r197234.
31080 2013-03-31 Kaz Kojima <kkojima@gcc.gnu.org>
31082 * config/sh/sh.md (casesi_worker_1): Use next_active_insn instead
31084 (casesi_worker_2, casesi_shift_media, casesi_load_media): Likewise.
31086 2013-03-30 Lawrence Crowl <crowl@google.com>
31088 * dse.c (clear_alias_sets): Remove never set.
31089 (disqualified_clear_alias_sets): Remove never set.
31090 (clear_alias_mode_pool): Remove never set.
31091 (dse_step0): Remove condition that is never true.
31092 (canon_address): Remove condition that is never true.
31093 (dse_step7): Remove condition that is never true.
31094 (rest_of_handle_dse): Remove condition that is never true.
31095 (rest_of_handle_dse::did_global): Remove never read from above.
31096 (dse_step2_spill): Remove never called from above.
31097 (dse_step5_spill): Remove never called from above.
31099 2013-03-30 Steven Bosscher <steven@gcc.gnu.org>
31101 * doc/md.texi (Standard Names) <casesi>: Update documentation for
31102 JUMP_TABLE_DATA changes.
31103 * doc/tm.texi.in (Dispatch Tables) <ASM_OUTPUT_CASE_LABEL>: Likewise.
31104 * doc/rtl.texi (Flags) <INSN_DELETED_P, SCHED_GROUP_P>: Likewise.
31105 (Insns) <jump_table_data>: New entry.
31106 * doc/tm.texi: Regenerate.
31108 * cfgrtl.c (fixup_reorder_chain): Do not emit barriers to BB_FOOTER.
31110 * postreload-gcse.c (bb_has_well_behaved_predecessors): Correct test
31111 for table jump at the end of a basic block using tablejump_p.
31112 * targhooks.c (default_invalid_within_doloop): Likewise.
31113 * config/rs6000/rs6000.c (TARGET_INVALID_WITHIN_DOLOOP): Remove
31114 target hook implementation that is identical to the default hook.
31115 (rs6000_invalid_within_doloop): Remove.
31117 * bb-reorder.c (fix_crossing_unconditional_branches): Remove set but
31118 unused variable from tablejump_p call.
31120 * rtl.def (JUMP_TABLE_DATA): New RTX_INSN object.
31121 * rtl.h (RTX_PREV, RTX_NEXT): Adjust for new JUMP_TABLE_DATA.
31122 (INSN_DELETED_P): Likewise.
31123 (emit_jump_table_data): New prototype.
31124 * gengtype.c (adjust_field_rtx_def): Handle JUMP_TABLE_DATA fields
31125 after 4th as unused.
31126 * print-rtl.c (print_rtl): Handle JUMP_TABLE_DATA.
31127 * sched-vis.c (print_insn): Likewise.
31128 * emit-rtl.c (active_insn_p): Consider JUMP_TABLE_DATA an active
31129 insn for compatibility with back ends that use next_active_insn to
31130 identify jump table data.
31131 (set_insn_deleted): Remove no longer useful JUMP_TABLE_DATA_P check.
31132 (remove_insn): Likewise.
31133 (emit_insn): Do not accept JUMP_TABLE_DATA objects in insn chains
31135 (emit_debug_insn, emit_jump_insn, emit_call_insn, emit_label): Idem.
31136 (emit_jump_table_data): New function.
31138 * cfgbuild.c (inside_basic_block_p): A JUMP_INSN is always inside a
31139 basic block, a JUMP_TABLE_DATA never is.
31140 (control_flow_insn_p): JUMP_TABLE_DATA is not a control flow insn.
31141 * cfgrtl.c (duplicate_insn_chain): Split handling of JUMP_TABLE_DATA
31142 off from code handling real insns.
31143 * final.c (get_attr_length_1): Simplify for JUMP_INSNs.
31144 * function.c (instantiate_virtual_regs): Remove JUMP_TABLE_DATA_P
31145 test, now redundant because JUMP_TABLE_DATA is not an INSN_P insn.
31146 * gcse.c (insert_insn_end_basic_block): Likewise, JUMP_TABLE_DATA_P
31147 is not a NONDEBUG_INSN_P.
31148 * ira-costs.c (scan_one_insn): Likewise.
31149 * jump.c (mark_all_labels): Likewise.
31150 (mark_jump_label_1): Likewise.
31151 * lra-eliminations.c (eliminate_regs_in_insn): Likewise.
31152 * lra.c (get_insn_freq): Expect all insns reaching here to be in
31154 (check_rtl): Remove JUMP_TABLE_DATA_P test, not a NONDEBUG_INSN_P insn.
31155 * predict.c (expensive_function_p): Use FOR_BB_INSNS.
31156 * reload1.c (calculate_needs_all_insns): Call set_label_offsets for
31157 JUMP_TABLE_DATA_P insns.
31158 (calculate_elim_costs_all_insns): Likewise.
31159 (set_label_offsets): Recurse on the PATTERN of JUMP_TABLE_DATA insns.
31160 (elimination_costs_in_insn): Remove redundant JUMP_TABLE_DATA_P test.
31161 (delete_output_reload): Code style fixups.
31162 * reorg.c (dbr_schedule): Move JUMP_TABLE_DATA_P up to avoid setting
31163 insn flags on this non-insn.
31164 * sched-rgn.c (add_branch_dependences): Treat JUMP_TABLE_DATA insns
31165 as scheduling barriers, for pre-change compatibility.
31166 * stmt.c (emit_case_dispatch_table): Emit jump table data not as
31167 JUMP_INSN objects but instead as JUMP_TABLE_DATA objects.
31169 * config/alpha/alpha.c (alpha_does_function_need_gp): Remove
31170 redundant JUMP_TABLE_DATA_P test.
31171 * config/arm/arm.c (thumb_far_jump_used_p): Likewise.
31172 * config/frv/frv.c (frv_function_contains_far_jump): Likewise.
31173 (frv_for_each_packet): Likewise.
31174 * config/i386/i386.c (min_insn_size): Likewise.
31175 (ix86_avoid_jump_mispredicts): Likewise.
31176 * config/m32r/m32r.c (m32r_is_insn): Likewise.
31177 * config/mep/mep.c (mep_reorg_erepeat): Likewise.
31178 * config/mips/mips.c (USEFUL_INSN_P): Likewise.
31179 (mips16_insn_length): Robustify.
31180 (mips_has_long_branch_p): Remove redundant JUMP_TABLE_DATA_P test.
31181 (mips16_split_long_branches): Likewise.
31182 * config/pa/pa.c (pa_combine_instructions): Likewise.
31183 * config/rs6000/rs6000.c (get_next_active_insn): Treat
31184 JUMP_TABLE_DATA objects as active insns, like in active_insn_p.
31185 * config/s390/s390.c (s390_chunkify_start): Treat JUMP_TABLE_DATA
31186 as contributing to pool range lengths.
31187 * config/sh/sh.c (find_barrier): Restore check for ADDR_DIFF_VEC.
31188 Remove redundant JUMP_TABLE_DATA_P test.
31189 (sh_loop_align): Likewise.
31190 (split_branches): Likewise.
31191 (sh_insn_length_adjustment): Likewise.
31192 * config/spu/spu.c (get_branch_target): Likewise.
31194 2013-03-29 Jan Hubicka <jh@suse.cz>
31196 * lto-cgraph.c (output_profile_summary, input_profile_summary): Use
31197 gcov streaming; stream hot bb threshold to ltrans.
31198 * predict.c (get_hot_bb_threshold): Break out from ....
31199 (maybe_hot_count_p): ... here.
31200 (set_hot_bb_threshold): New function.
31201 * lto-section-in.c (lto_section_name): Add profile.
31202 * profile.h (get_hot_bb_threshold, set_hot_bb_threshold): Declare.
31203 * ipa.c: Include hash-table.h, tree-inline.h, profile.h, lto-streamer.h
31204 and data-streamer.h
31205 (histogram_entry): New structure.
31206 (histogram, histogram_pool): New global vars.
31207 (histogram_hash): New structure.
31208 (histogram_hash::hash): New method.
31209 (histogram_hash::equal): Likewise.
31210 (account_time_size): New function.
31211 (cmp_counts): New function.
31212 (dump_histogram): New function.
31213 (ipa_profile_generate_summary): New function.
31214 (ipa_profile_write_summary): New function.
31215 (ipa_profile_read_summary): New function.
31216 (ipa_profile): Decide on threshold.
31217 (pass_ipa_profile): Add ipa_profile_write_summary and
31218 ipa_profile_read_summary.
31219 * Makefile.in (ipa.o): Update dependencies.
31220 * lto-streamer.h (LTO_section_ipa_profile): New section.
31222 2013-03-29 Gabriel Dos Reis <gdr@integrable-solutions.net>
31224 * tree.h (VAR_P): New.
31226 2013-03-29 Paolo Carlini <paolo.carlini@oracle.com>
31229 * doc/invoke.texi ([-fwhole-program]): Fix typo.
31231 2013-03-29 Steven Bosscher <steven@gcc.gnu.org>
31233 * cfgbuild.c (inside_basic_block_p): Use JUMP_TABLE_DATA_P in lieu
31234 of tests for JUMP_P and a ADDR_DIFF_VEC or ADDR_VEC pattern.
31235 (control_flow_insn_p): Likewise.
31236 * cfgrtl.c (duplicate_insn_chain): Likewise.
31237 * final.c (get_attr_length_1): Likewise.
31238 (shorten_branches): Likewise.
31239 (final_scan_insn): Likewise.
31240 * function.c (instantiate_virtual_regs): Likewise.
31241 * gcse.c (insert_insn_end_basic_block): Likewise.
31242 * ira-costs.c (scan_one_insn): Likewise.
31243 * lra-eliminations.c (eliminate_regs_in_insn): Likewise.
31244 * lra.c (check_rtl): Likewise.
31245 * reload1.c (elimination_costs_in_insn): Likewise.
31246 * reorg.c (follow_jumps): Likewise.
31248 * config/arm/arm.c (is_jump_table): Use JUMP_TABLE_DATA_P in lieu
31249 of tests for JUMP_P and a ADDR_DIFF_VEC or ADDR_VEC pattern.
31250 (thumb_far_jump_used_p): Likewise.
31251 * config/bfin/bfin.c (workaround_rts_anomaly): Likewise.
31252 (workaround_speculation): Likewise.
31253 (add_sched_insns_for_speculation): Likewise.
31254 * config/c6x/c6x.c (reorg_emit_nops): Likewise.
31255 * config/frv/frv.c (frv_function_contains_far_jump): Likewise.
31256 (frv_for_each_packet): Likewise.
31257 * config/i386/i386.c (ix86_avoid_jump_mispredicts): Likewise.
31258 * config/ia64/ia64.c (emit_all_insn_group_barriers): Likewise.
31259 (final_emit_insn_group_barriers): Likewise.
31260 * config/m32r/m32r.c (m32r_is_insn): Likewise.
31261 * config/mips/mips.c (USEFUL_INSN_P): Likewise.
31262 (mips16_insn_length): Likewise.
31263 * config/pa/pa.c (pa_reorg): Likewise.
31264 (pa_combine_instructions): Likewise.
31265 * config/rs6000/rs6000.c (rs6000_invalid_within_doloop): Likewise.
31266 * config/sh/sh.c (fixup_addr_diff_vecs): Likewise.
31267 (sh_reorg): Likewise.
31268 (split_branches): Likewise.
31269 * config/spu/spu.c (get_branch_target): Likewise.
31271 * config/s390/s390.c (s390_chunkify_start): Simplify logic using
31274 2013-03-29 Kirill Yukhin <kirill.yukhin@intel.com>
31276 * config/i386/avx2intrin.h (_mm256_broadcastsi128_si256):
31277 Fix declaration name.
31279 2013-03-28 Lawrence Crowl <crowl@google.com>
31281 * graphds.h (struct graph.indicies): Remove unused.
31282 * graphite-poly.h (struct graph.original_pddrs): Remove unused.
31283 (SCOP_ORIGINAL_PDDRS): Remove unused.
31284 * sese.h (extern insert_loop_close_phis): Removed unused.
31285 (extern insert_guard_phis): Removed unused.
31286 (extern ivtype_map_elt_info): Removed unused.
31287 (new_ivtype_map_elt): Removed unused.
31288 * sese.c (ivtype_map_elt_info): Removed unused.
31290 2013-03-28 Lawrence Crowl <crowl@google.com>
31292 * Makefile.in: Add several missing include dependences.
31294 (test-dump.o): New. This object is not added to any executable,
31295 but is present for ad-hoc testing.
31297 (debug (const bitmap_head_def &)): New.
31298 (debug (const bitmap_head_def *)): New.
31300 (extern debug (const bitmap_head_def &)): New.
31301 (extern debug (const bitmap_head_def *)): New.
31303 (debug (edge_def &)): New.
31304 (debug (edge_def *)): New.
31306 (debug (basic_block_def &)): New.
31307 (debug (basic_block_def *)): New.
31309 (dump_node (const_tree, int, FILE *)): Correct source file.
31311 (debug (die_struct &)): New.
31312 (debug (die_struct *)): New.
31314 (extern debug (die_struct &)): New.
31315 (extern debug (die_struct *)): New.
31316 * gimple-pretty-print.c
31317 (debug (gimple_statement_d &)): New.
31318 (debug (gimple_statement_d *)): New.
31319 * gimple-pretty-print.h
31320 (extern debug (gimple_statement_d &)): New.
31321 (extern debug (gimple_statement_d *)): New.
31323 (debug (ira_allocno_copy &)): New.
31324 (debug (ira_allocno_copy *)): New.
31325 (debug (ira_allocno &)): New.
31326 (debug (ira_allocno *)): New.
31328 (extern debug (ira_allocno_copy &)): New.
31329 (extern debug (ira_allocno_copy *)): New.
31330 (extern debug (ira_allocno &)): New.
31331 (extern debug (ira_allocno *)): New.
31333 (debug (live_range &)): New.
31334 (debug (live_range *)): New.
31336 (debug (lra_live_range &)): New.
31337 (debug (lra_live_range *)): New.
31339 (debug (lra_live_range &)): New.
31340 (debug (lra_live_range *)): New.
31342 (debug (omega_pb_d &)): New.
31343 (debug (omega_pb_d *)): New.
31345 (extern debug (omega_pb_d &)): New.
31346 (extern debug (omega_pb_d *)): New.
31348 (debug (const rtx_def &)): New.
31349 (debug (const rtx_def *)): New.
31351 (debug_tree (tree): Move within file.
31352 (debug_raw (const tree_node &)): New.
31353 (debug_raw (const tree_node *)): New.
31354 (dump_tree_via_hooks (const tree_node *, int)): New.
31355 (debug (const tree_node &)): New.
31356 (debug (const tree_node *)): New.
31357 (debug_verbose (const tree_node &)): New.
31358 (debug_verbose (const tree_node *)): New.
31359 (debug_head (const tree_node &)): New.
31360 (debug_head (const tree_node *)): New.
31361 (debug_body (const tree_node &)): New.
31362 (debug_body (const tree_node *)): New.
31363 (debug_vec_tree (tree): Move and reimplement in terms of dump.
31364 (debug (vec<tree, va_gc> &)): New.
31365 (debug (vec<tree, va_gc> *)): New.
31367 (extern debug (const rtx_def &)): New.
31368 (extern debug (const rtx_def *)): New.
31370 (debug_raw (simple_bitmap_def &)): New.
31371 (debug_raw (simple_bitmap_def *)): New.
31372 (debug (simple_bitmap_def &)): New.
31373 (debug (simple_bitmap_def *)): New.
31375 (extern debug (simple_bitmap_def &)): New.
31376 (extern debug (simple_bitmap_def *)): New.
31377 (extern debug_raw (simple_bitmap_def &)): New.
31378 (extern debug_raw (simple_bitmap_def *)): New.
31380 (debug (vinsn_def &)): New.
31381 (debug (vinsn_def *)): New.
31382 (debug_verbose (vinsn_def &)): New.
31383 (debug_verbose (vinsn_def *)): New.
31384 (debug (expr_def &)): New.
31385 (debug (expr_def *)): New.
31386 (debug_verbose (expr_def &)): New.
31387 (debug_verbose (expr_def *)): New.
31388 (debug (vec<rtx> &)): New.
31389 (debug (vec<rtx> *)): New.
31391 (extern debug (vinsn_def &)): New.
31392 (extern debug (vinsn_def *)): New.
31393 (extern debug_verbose (vinsn_def &)): New.
31394 (extern debug_verbose (vinsn_def *)): New.
31395 (extern debug (expr_def &)): New.
31396 (extern debug (expr_def *)): New.
31397 (extern debug_verbose (expr_def &)): New.
31398 (extern debug_verbose (expr_def *)): New.
31399 (extern debug (vec<rtx> &)): New.
31400 (extern debug (vec<rtx> *)): New.
31402 (_list_iter_cond_expr): Make inline instead of static.
31404 (debug (sreal &)): New.
31405 (debug (sreal *)): New.
31407 (extern debug (sreal &)): New.
31408 (extern debug (sreal *)): New.
31410 (extern debug_raw (const tree_node &)): New.
31411 (extern debug_raw (const tree_node *)): New.
31412 (extern debug (const tree_node &)): New.
31413 (extern debug (const tree_node *)): New.
31414 (extern debug_verbose (const tree_node &)): New.
31415 (extern debug_verbose (const tree_node *)): New.
31416 (extern debug_head (const tree_node &)): New.
31417 (extern debug_head (const tree_node *)): New.
31418 (extern debug_body (const tree_node &)): New.
31419 (extern debug_body (const tree_node *)): New.
31420 (extern debug (vec<tree, va_gc> &)): New.
31421 (extern debug (vec<tree, va_gc> *)): New.
31423 (debug (struct loop &)): New.
31424 (debug (struct loop *)): New.
31425 (debug_verbose (struct loop &)): New.
31426 (debug_verbose (struct loop *)): New.
31427 * tree-dump.c: Add header dependence.
31429 (extern debug (struct loop &)): New.
31430 (extern debug (struct loop *)): New.
31431 (extern debug_verbose (struct loop &)): New.
31432 (extern debug_verbose (struct loop *)): New.
31434 (debug (data_reference &)): New.
31435 (debug (data_reference *)): New.
31436 (debug (vec<data_reference_p> &)): New.
31437 (debug (vec<data_reference_p> *)): New.
31438 (debug (vec<ddr_p> &)): New.
31439 (debug (vec<ddr_p> *)): New.
31441 (extern debug (data_reference &)): New.
31442 (extern debug (data_reference *)): New.
31443 (extern debug (vec<data_reference_p> &)): New.
31444 (extern debug (vec<data_reference_p> *)): New.
31445 (extern debug (vec<ddr_p> &)): New.
31446 (extern debug (vec<ddr_p> *)): New.
31448 (debug (pt_solution &)): New.
31449 (debug (pt_solution *)): New.
31451 (extern debug (pt_solution &)): New.
31452 (extern debug (pt_solution *)): New.
31454 (debug (_var_map &)): New.
31455 (debug (_var_map *)): New.
31456 (debug (tree_live_info_d &)): New.
31457 (debug (tree_live_info_d *)): New.
31459 (extern debug (_var_map &)): New.
31460 (extern debug (_var_map *)): New.
31461 (extern debug (tree_live_info_d &)): New.
31462 (extern debug (tree_live_info_d *)): New.
31464 2013-03-28 Jan Hubicka <jh@suse.cz>
31466 * lto-cgraph.c (merge_profile_summaries): Fix overflows.
31468 2013-03-28 Ian Bolton <ian.bolton@arm.com>
31470 * config/aarch64/aarch64.md (aarch64_can_eliminate): Keep frame
31471 record only when desired or required.
31473 2013-03-28 Uros Bizjak <ubizjak@gmail.com>
31475 * config/i386/i386.md (*vec_extract2vdi_1): Merge with
31476 *vec_extractv2di_1_rex64. Use x64 isa attribute.
31478 2013-03-28 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
31480 * config/aarch64/aarch64.md (*and<mode>3_compare0): New pattern.
31481 (*andsi3_compare0_uxtw): New pattern.
31482 (*and_<SHIFT:optab><mode>3_compare0): New pattern.
31483 (*and_<SHIFT:optab>si3_compare0_uxtw): New pattern.
31485 2013-03-28 Jan Hubicka <jh@suse.cz>
31487 * data-streamer-in.c (streamer_read_gcov_count): New function.
31488 * gimple-streamer-out.c: Include value-prof.h.
31489 (output_gimple_stmt): Output histogram.
31490 (output_bb): Use streamer_write_gcov_count.
31491 * value-prof.c: Include data-streamer.h
31492 (dump_histogram_value): Add HIST_TYPE_MAX.
31493 (stream_out_histogram_value): New function.
31494 (stream_in_histogram_value): New function.
31495 * value-prof.h (enum hist_type): Add HIST_TYPE_MAX.
31496 (stream_out_histogram_value, stream_in_histogram_value): Declare.
31497 * data-streamer-out.c (streamer_write_gcov_count): New function.
31498 (streamer_write_gcov_count_stream): New function.
31499 * lto-cgraph.c (lto_output_edge): Update counter streaming.
31500 (lto_output_node): Likewise.
31501 (input_node, input_edge): Likewise.
31502 * lto-streamer-out.c (output_cfg): Update streaming.
31503 * lto-streamer-in.c (input_cfg): Likewise.
31504 * data-streamer.h (streamer_write_gcov_count,
31505 streamer_write_gcov_count_stream, streamer_read_gcov_count): Declare.
31506 * gimple-streamer-in.c: Include value-prof.h
31507 (input_gimple_stmt): Input histograms.
31508 (input_bb): Update profile streaming.
31510 2013-03-28 Kenneth Zadeck <zadeck@naturalbridge.com>
31512 * genmodes.c (emit_max_int): New function.
31513 (emit_insn_modes_h): Added call to emit_max_function.
31514 * doc/rtl.texi (MAX_BITSIZE_MODE_ANY_INT, MAX_BITSIZE_MODE_ANY_MODE):
31516 * machmode.def: Fixed comment.
31518 2013-03-28 Kenneth Zadeck <zadeck@naturalbridge.com>
31520 * combine.c (try_combine): Removed useless assert.
31521 * cselib.c (rtx_equal_for_cselib_1): Removed unnecessary parens.
31523 2013-03-28 Marek Polacek <polacek@redhat.com>
31524 Richard Biener <rguenther@suse.de>
31526 PR tree-optimization/56695
31527 * tree-vect-stmts.c (vectorizable_condition): Unconditionally
31528 build signed result of a vector comparison.
31529 * tree-cfg.c (verify_gimple_comparison): Check that a result
31530 of a vector comparison has signed type.
31532 2013-03-28 Richard Biener <rguenther@suse.de>
31534 PR tree-optimization/37021
31535 * tree-vect-slp.c (vect_build_slp_tree): When not unrolling
31536 do not restrict gaps between groups.
31537 * tree-vect-stmts.c (vectorizable_load): Properly account for
31538 a gap between groups.
31540 2013-03-28 Eric Botcazou <ebotcazou@adacore.com>
31542 * toplev.c (process_options): Do not disable -fomit-frame-pointer on a
31543 general basis if unwind info is requested and ACCUMULATE_OUTGOING_ARGS
31546 2013-03-27 Gerald Pfeifer <gerald@pfeifer.com>
31548 * doc/invoke.texi (AVR Options): Tweak link for AVR-LibC user manual.
31549 * doc/extend.texi (Named Address Spaces): Ditto.
31550 (Variable Attributes): Ditto.
31552 2013-03-27 Kai Tietz <ktietz@redhat.com>
31554 * config.build: Add support for cygwin x64 target.
31555 * config.gcc: Likewise.
31556 * config.host: Likewise.
31557 * configure.ac: Likewise
31558 * configure: Regenerated.
31560 2013-03-27 Kai Tietz <ktietz@redhat.com>
31562 * config/i386/cygwin-stdint.h: Add support for cygwin x64 target.
31563 * config/i386/t-cygwin-w64: New file.
31564 * config/i386/cygwin-w64.h: New file.
31565 * config/i386/cygwin.h (EXTRA_OS_CPP_BUILTINS): Extend
31566 and add support for x64-cygwin target.
31567 (CPP_SPEC): Likewise.
31568 (CXX_WRAP_SPEC_LIST): Undefine before define.
31569 (LIBGCJ_SONAME): Use 15 as version.
31571 2013-03-27 Richard Biener <rguenther@suse.de>
31573 PR tree-optimization/56716
31574 * tree-ssa-structalias.c (perform_var_substitution): Adjust
31575 dumping for ref nodes.
31577 2013-03-27 Martin Jambor <mjambor@suse.cz>
31579 PR tree-optimization/55334
31580 * ipa-cp.c (initialize_node_lattices): Allow IPA-CP through and to
31581 restricted pointers to arrays.
31583 2013-03-27 Gabriel Dos Reis <gdr@integrable-solutions.net>
31585 * Makefile.in (.SUFFIXES): Add .cc.
31586 (.c.o): Apply same recipe for implicit rule .cc.o.
31588 2013-03-27 Richard Biener <rguenther@suse.de>
31590 PR tree-optimization/37021
31591 * tree-vect-data-refs.c (vect_check_strided_load): Allow
31592 REALPART/IMAGPART_EXPRs around the supported refs.
31593 * tree-ssa-structalias.c (find_func_aliases): Assume that
31594 floating-point values are not used to transfer pointers.
31596 2013-03-27 Alexander Ivchenko <alexander.ivchenko@intel.com>
31598 * target.def (TARGET_HAS_IFUNC_P): New target hook.
31599 * doc/tm.texi.in (TARGET_HAS_IFUNC_P): New.
31600 * doc/tm.texi: Regenerate.
31601 * targhooks.h (default_has_ifunc_p): New.
31602 * targhooks.c (default_has_ifunc_p): Ditto.
31603 * config/linux-protos.h: New file.
31604 * config/linux-android.h (TARGET_HAS_IFUNC_P): Using version of this
31605 hook for linux which disables support of indirect functions in android.
31606 * config/linux-android.c: New file.
31607 * config/t-linux-android.c: Ditto.
31608 * config.gcc: Added new object file linux-android.o.
31609 * config/i386/i386.c (ix86_get_function_versions_dispatcher):
31610 Using TARGET_HAS_IFUNC hook instead of HAVE_GNU_INDIRECT_FUNCTION.
31611 * varasm.c (do_assemble_alias): Likewise.
31612 * configure.ac: Define HAVE_GNU_INDIRECT_FUNCTION as zero if the target
31613 doesn't support indirect functions.
31614 * configure: Regenerate.
31616 2013-03-27 Bin Cheng <bin.cheng@arm.com>
31619 * config/arm/arm.c (thumb1_rtx_costs, thumb1_size_rtx_costs): Fix
31620 rtx costs for SET/ASHIFT/ASHIFTRT/LSHIFTRT/ROTATERT patterns with
31623 2013-03-27 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
31625 * config/s390/s390.h (TARGET_FLT_EVAL_METHOD): Define.
31627 2013-03-27 Terry Guo <terry.guo@arm.com>
31629 * config/arm/arm-cores.def: Added core cortex-r7.
31630 * config/arm/arm-tune.md: Regenerated.
31631 * config/arm/arm-tables.opt: Regenerated.
31632 * doc/invoke.texi: Added entry for core cortex-r7.
31634 2013-03-27 Walter Lee <walt@tilera.com>
31636 * config/tilegx/tilegx.c (tilegx_expand_prologue): Avoid
31637 double-decrement of next_scratch_regno.
31639 2013-03-27 Walter Lee <walt@tilera.com>
31641 * config/tilegx/tilegx.md (insn_v1mulu): Fix predicates on
31643 (insn_v1mulus): Ditto.
31644 (insn_v2muls): Ditto.
31646 2013-03-27 Walter Lee <walt@tilera.com>
31648 * config/tilegx/tilegx.h (ASM_OUTPUT_ADDR_VEC_ELT): Delete extra tab.
31649 (ASM_OUTPUT_ADDR_DIFF_ELT): Ditto.
31651 2013-03-27 Walter Lee <walt@tilera.com>
31653 * config/tilegx/tilegx.md (*sibcall_insn): Fix type atribute for jr.
31654 (*sibcall_value): Ditto.
31656 2013-03-27 Walter Lee <walt@tilera.com>
31658 * config/tilegx/tilegx.md (insn_mnz_<mode>): Replaced by ...
31659 (insn_mnz_v8qi): ... this ...
31660 (insn_mnz_v4hi): ... and this. Replace (const_int 0) with the
31662 (insn_v<n>mnz): Replaced by ...
31663 (insn_v1mnz): ... this ...
31664 (insn_v2mnz): ... and this. Replace (const_int 0) with the vector
31666 (insn_mz_<mode>): Replaced by ...
31667 (insn_mz_v8qi): ... this ...
31668 (insn_mz_v4hi): ... and this. Replace (const_int 0) with the
31670 (insn_v<n>mz): Replaced by ...
31671 (insn_v1mz): ... this ...
31672 (insn_v2mz): ... and this. Replace (const_int 0) with the vector
31675 2013-03-26 Eric Botcazou <ebotcazou@adacore.com>
31677 * doc/invoke.texi (SPARC options): Remove -mlittle-endian.
31679 2013-03-26 Roland McGrath <mcgrathr@google.com>
31681 * config/arm/arm.c (arm_print_operand: case 'w'): Use fputs rather
31682 than fprintf with a non-constant, non-format string.
31684 2013-03-26 Uros Bizjak <ubizjak@gmail.com>
31686 * config/i386/i386.md (*cmpqi_ext_1): Merge with *cmpqi_ext_1_rex64
31687 using nox64 isa attribute. Use nonimmediate_x86nomem_operand as
31688 operand 0 predicate.
31689 (*cmpqi_ext_3): Merge with *cmpqi_ext_3_rex64 using nox64 isa
31690 attribute. Use general_x64nomem_operand as operand 1 predicate.
31691 (*movqi_extv_1): Merge with *movqi_extv_1_rex64 using nox64 isa
31692 attribute. Use nonimmediate_x64nomem_operand as operand 0 predicate.
31693 (*movqi_extzv_2): Merge with *movqi_extzv_2_rex64 using nox64 isa
31694 attribute. Use nonimmediate_x64nomem_operand as operand 0 predicate.
31695 (mov<mode>_insv_1): Remove expander. Merge insn with
31696 movsi_insv_1 using SWI48 mode iterator and nox64 isa attribute.
31697 Use general_x64nomem_operand as operand 1 predicate.
31698 (addqi_ext_1): Merge with *addqi_ext_1_rex64 using nox64 isa attribute.
31699 (*testqi_ext_1): Merge with *testqi_ext_1_rex64 using nox64 isa
31700 attribute. Use nonimmediate_x64nomem_operand as operand 1 predicate.
31701 (*andqi_ext_1): Merge with *andqi_ext_1_rex64 using nox64 isa
31702 attribute. Use nonimmediate_x64nomem_operand as operand 2 predicate.
31703 (*<code>qi_ext_1): Merge with *<code>qi_ext_1_rex64 using nox64 isa
31704 attribute. Use nonimmediate_x64nomem_operand as operand 1 predicate.
31705 (*xorqi_cc_ext_1): Merge with *xorqi_cc_ext_1_rex64 using nox64
31706 isa attribute. Use general_x64nomem_operand as operand 2 predicate.
31707 * config/i386/predicates.md (nonimmediate_x64nomem_operand): New.
31708 (general_x64nomem_operand): Ditto.
31710 2013-03-26 Sebastian Huber <sebastian.huber@embedded-brains.de>
31712 * config/rtems.opt: Add -pthread option.
31714 2013-03-26 Richard Biener <rguenther@suse.de>
31716 * alias.c (find_base_term): Avoid redundant and not used recursion.
31717 (base_alias_check): Get the initial base term from the caller.
31718 (true_dependence_1): Compute and pass base terms to base_alias_check.
31719 (write_dependence_p): Likewise.
31720 (may_alias_p): Likewise.
31722 2013-03-26 Sofiane Naci <sofiane.naci@arm.com>
31724 * config/aarch64/aarch64.c (aarch64_classify_address): Support
31725 PC-relative load in SI modes and above only.
31727 2013-03-26 Xinyu Qi <xyqi@marvell.com>
31729 * config/arm/arm.h (FIRST_IWMMXT_GR_REGNUM): Add comment.
31730 * config/arm/iwmmxt.md (WCGR0): Update.
31731 (WCGR1, WCGR2, WCGR3): Likewise.
31733 2013-03-26 Uros Bizjak <ubizjak@gmail.com>
31735 * config/i386/i386.md (*movdfcc_1): Merge with *movdfcc_1_rex64.
31736 Use x64 and nox64 isa attributes.
31738 2013-03-26 Richard Biener <rguenther@suse.de>
31740 * emit-rtl.c (set_mem_attributes_minus_bitpos): Remove
31741 alignment computations and rely on get_object_alignment_1
31742 for the !TYPE_P case.
31743 Commonize DECL/COMPONENT_REF handling in the ARRAY_REF path.
31745 2013-03-26 Walter Lee <walt@tilera.com>
31747 * config/tilegx/tilegx.h (PROFILE_BEFORE_PROLOGUE): Define.
31748 * config/tilegx/tilepro.h (PROFILE_BEFORE_PROLOGUE): Define.
31750 2013-03-25 Jeff Law <law@redhat.com>
31752 * tree-ssa-dom.c (record_equivalences_from_incoming_edge): Add missing
31753 check for INTEGRAL_TYPE_P that was missing due to checking in
31754 wrong version of prior patch.
31756 2013-03-25 Walter Lee <walt@tilera.com>
31758 * config/tilegx/tilegx-builtins.h (enum tilegx_builtin): Add
31759 TILEGX_INSN_SHUFFLEBYTES1.
31760 * config/tilegx/tilegx.c (tilegx_builtin_info): Add entry for
31762 (tilegx_builtins): Ditto.
31763 * config/tilegx/tilegx.md (insn_shufflebytes1): New pattern.
31765 2013-03-25 Walter Lee <walt@tilera.com>
31767 * config/tilegx/tilegx.md (floatsisf2): New pattern.
31768 (floatunssisf2): New pattern.
31769 (floatsidf2): New pattern.
31770 (floatunssidf2): New pattern.
31772 2013-03-25 Walter Lee <walt@tilera.com>
31774 * config/tilegx/tilegx.c (expand_set_cint64_one_inst): Inline
31775 tests for constraint J, K, N, P.
31777 2013-03-25 Walter Lee <walt@tilera.com>
31779 * config/tilegx/tilegx.c (tilegx_asm_preferred_eh_data_format):
31780 Use indirect/pcrel encoding.
31781 * config/tilepro/tilepro.c (tilepro_asm_preferred_eh_data_format):
31784 2013-03-25 Steve Ellcey <sellcey@mips.com>
31786 * config/mips/mmips-cpus.def (74kc, 74kf2_1, 74kf, 74kf, 74kf1_1,
31787 74kfx, 74kx, 74kf3_2): Add PTF_AVOID_IMADD.
31788 * config/mips/mips.c (mips_option_override): Set IMADD default.
31789 * config/mips/mips.h (PTF_AVOID_IMADD): New.
31790 (ISA_HAS_MADD_MSUB): Remove MIPS16 check.
31791 (GENERATE_MADD_MSUB): Remove TUNE_74K check, add MIPS16 check.
31792 * config/mips/mips.md (mimadd): New flag for integer madd/msub.
31793 * doc/invoke.texi (-mimadd/-mno-imadd): New.
31795 2013-03-25 Jeff Law <law@redhat.com>
31797 * tree-ssa-dom.c (record_equivalences_from_incoming_edge): Rework
31798 slightly to avoid creating and folding useless trees. Simplify
31799 slightly by restricting to INTEGER_CSTs and using int_fits_type_p.
31801 2013-03-25 Uros Bizjak <ubizjak@gmail.com>
31803 * config/i386/i386.md (*zero_extendsidi2): Merge with
31804 *zero_extendsidi2_rex64. Use x64 and nox64 isa attributes.
31805 * config/i386/predicates.md (x86_64_zext_operand): Rename from
31806 x86_64_zext_general_operand. Use nonimmediate_operand on 32bit
31807 targets. Clarify comment.
31809 2013-03-25 Martin Jambor <mjambor@suse.cz>
31811 * ipa-prop.c (ipa_write_jump_function): Stream simple and aritmetic
31812 pass-through jump functions differently.
31813 (ipa_read_jump_function): Likewise. Also use setter functions to set
31816 2013-03-25 Martin Jambor <mjambor@suse.cz>
31818 * ipa-cp.c (ipa_get_indirect_edge_target): Renamed to
31819 ipa_get_indirect_edge_target_1, added parameter agg_reps and ability to
31821 (ipa_get_indirect_edge_target): New function.
31822 (devirtualization_time_bonus): New parameter known_aggs, pass it to
31823 ipa_get_indirect_edge_target. Update all callers.
31824 (ipcp_discover_new_direct_edges): New parameter aggvals. Pass it to
31825 ipa_get_indirect_edge_target_1 instead of calling
31826 ipa_get_indirect_edge_target.
31827 (create_specialized_node): Pass aggvlas to
31828 ipcp_discover_new_direct_edges.
31830 2013-03-25 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
31832 * config/arm/arm.md (f_sels, f_seld): New types.
31833 (*cmov<mode>): New pattern.
31834 * config/arm/predicates.md (arm_vsel_comparison_operator): New
31837 2013-03-25 Kai Tietz <ktietz@redhat.com>
31839 * config/i386/xm-mingw32.h (__USE_MINGW_ANSI_STDIO): Enable
31840 POSIX-printf for mingw-hosted builds.
31842 2013-03-25 Richard Biener <rguenther@suse.de>
31844 PR middle-end/56694
31845 * tree-eh.c (lower_eh_must_not_throw): Strip BLOCKs from the
31846 must-not-throw stmt location.
31848 2013-03-25 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
31850 * config/arm/arm.c (arm_emit_load_exclusive): Add acq parameter.
31851 Emit load-acquire versions when acq is true.
31852 (arm_emit_store_exclusive): Add rel parameter.
31853 Emit store-release versions when rel is true.
31854 (arm_split_compare_and_swap): Use acquire-release instructions
31856 of barriers when appropriate.
31857 (arm_split_atomic_op): Likewise.
31858 * config/arm/arm.h (TARGET_HAVE_LDACQ): New macro.
31859 * config/arm/unspecs.md (VUNSPEC_LAX): New unspec.
31860 (VUNSPEC_SLX): Likewise.
31861 (VUNSPEC_LDA): Likewise.
31862 (VUNSPEC_STL): Likewise.
31863 * config/arm/sync.md (atomic_load<mode>): New pattern.
31864 (atomic_store<mode>): Likewise.
31865 (arm_load_acquire_exclusive<mode>): Likewise.
31866 (arm_load_acquire_exclusivesi): Likewise.
31867 (arm_load_acquire_exclusivedi): Likewise.
31868 (arm_store_release_exclusive<mode>): Likewise.
31870 2013-03-25 Catherine Moore <clm@codesourcery.com>
31872 * config/mips/constraints.md (u, Udb7 Uead, Uean, Uesp, Uib3,
31873 Uuw6, Usb4, ZS, ZT, ZU, ZV, ZW): New constraints.
31874 * config/mip/predicates.md (lwsp_swsp_operand,
31875 lw16_sw16_operand, lhu16_sh16_operand, lbu16_operand,
31876 sb16_operand, db4_operand, db7_operand, ib3_operand,
31877 sb4_operand, ub4_operand, uh4_operand, uw4_operand,
31878 uw5_operand, uw6_operand, addiur2_operand, addiusp_operand,
31879 andi16_operand): New predicates.
31880 * config/mips/mips.md (compression): New attribute.
31881 (enabled): New attribute.
31882 (length): Consider compression in computing length.
31883 (shift_compression): New code attribute.
31884 (*add<mode>3): New operands. Record compression.
31885 (sub<mode>3): Likewise.
31886 (one_cmpl<mode>2): Likewise.
31887 (*and<mode>3): Likewise.
31888 (*ior<mode>3): Likewise.
31889 (unnamed pattern for xor): Likewise.
31890 (*zero_extend<SHORT:mode><GPR:mode>2): Likewise.
31891 (*<optab><mode>3): Likewise.
31892 (*mov<mode>_internal: Likewise.
31893 * config/mips/mips-protos.h (mips_signed_immediate_p): New.
31894 (mips_unsigned_immediate_p): New.
31895 (umips_lwsp_swsp_address_p): New.
31896 (m16_based_address_p): New.
31897 * config/mips/mips-protos.h (mips_signed_immediate_p): New prototype.
31898 (mips_unsigned_immediate_p): New prototype.
31899 (lwsp_swsp_address_p): New prototype.
31900 (m16_based_address_p): New prototype.
31901 * config/mips/mips.c (mips_unsigned_immediate_p): New function.
31902 (mips_signed_immediate_p): New function.
31903 (m16_based_address_p): New function.
31904 (lwsp_swsp_address_p): New function.
31905 (mips_print_operand_punctuation): Recognize short delay slot insns
31906 for microMIPS.add<mode>3"
31908 2013-03-25 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
31911 * config/arm/iterators.md (v_cmp_result): New mode attribute.
31912 * config/arm/neon.md (vcond<mode><mode>): Handle unordered cases.
31914 2013-03-25 Richard Biener <rguenther@suse.de>
31916 PR tree-optimization/56689
31917 * tree-vrp.c (execute_vrp): Mark loops for fixup if we removed
31920 2013-03-25 Richard Biener <rguenther@suse.de>
31922 * tree-ssa-loop-im.c (struct mem_ref): Use bitmap_head instead
31924 (memory_references): Likewise.
31925 (outermost_indep_loop, mem_ref_alloc, mark_ref_stored,
31926 gather_mem_refs_stmt, record_dep_loop, ref_indep_loop_p_1,
31927 ref_indep_loop_p_2, find_refs_for_sm): Adjust.
31928 (gather_mem_refs_in_loops): Fold into ...
31929 (analyze_memory_references): ... this. Move initialization
31930 to tree_ssa_lim_initialize.
31931 (fill_always_executed_in): Rename to ...
31932 (fill_always_executed_in_1): ... this.
31933 (fill_always_executed_in): Move contains_call computation to
31934 this new function from ...
31935 (tree_ssa_lim_initialize): ... here.
31936 (tree_ssa_lim): Call fill_always_executed_in.
31938 2013-03-25 Eric Botcazou <ebotcazou@adacore.com>
31940 * postreload.c (reload_combine): Fix code detecting returns.
31942 2013-03-25 Eric Botcazou <ebotcazou@adacore.com>
31944 * function.c (emit_use_return_register_into_block): On cc0 targets,
31945 do not emit the sequence between cc0 setter and user.
31947 2013-03-25 Kai Tietz <ktietz@redhat.com>
31949 * config/i386/predicates.md (local_symbolic_operand): Interpret
31950 dll-imported symbols as none-local.
31952 2013-03-25 Richard Biener <rguenther@suse.de>
31954 * tree-ssa-loop-im.c (struct depend): Remove.
31955 (struct lim_aux_data): Make depends a vec of gimples.
31956 (free_lim_aux_data): Adjust.
31957 (add_dependency): Likewise.
31958 (set_level): Likewise.
31960 2013-03-25 Richard Biener <rguenther@suse.de>
31962 PR middle-end/56434
31963 * calls.c (expand_call): Use MALLOC_ABI_ALIGNMENT to annotate
31964 the pointer returned by calls with ECF_MALLOC set.
31966 2013-03-24 Uros Bizjak <ubizjak@gmail.com>
31968 * config/i386/mmx.md (mov<mode>): Add ?!Ym,r and r,?!Ym alternatives.
31970 2013-03-24 Uros Bizjak <ubizjak@gmail.com>
31972 * config/i386/mmx.md (mov<mode>): Merge with movv2sf expander
31973 using MMXMODE mode iterator.
31974 (*move<mode>_internal): Merge with *movv2sf_internal and
31975 *movv2sf_internal_rex64 using MMXMODE mode iterator.
31977 2013-03-23 Steven Bosscher <steven@gcc.gnu.org>
31979 * gcse.c (oprs_unchanged_p): Respect flag_gcse_lm.
31980 (record_last_mem_set_info): Likewise.
31982 * df-core.c (rest_of_handle_df_initialize): Use XCNEWVEC instead
31983 of XNEWVEC followed by memset.
31984 (df_worklist_dataflow): Use XNEWVEC instead of xmalloc with a cast.
31986 2013-03-23 Steven Bosscher <steven@gcc.gnu.org>
31988 * config/avr/avr.c, config/bfin/bfin.c, config/c6x/c6x.c,
31989 config/epiphany/epiphany.c, config/frv/frv.c, config/ia64/ia64.c,
31990 config/iq2000/iq2000.c, config/mcore/mcore.c, config/mep/mep.c,
31991 config/mmix/mmix.c, config/pa/pa.c, config/rs6000/rs6000.c,
31992 config/s390/s390.c, config/sparc/sparc.c, config/spu/spu.c,
31993 config/stormy16/stormy16.c, config/v850/v850.c, config/xtensa/xtensa.c,
31994 dwarf2out.c, hw-doloop.c, resource.c, rtl.h : Where applicable, use
31995 the predicates NOTE_P, NONJUMP_INSN_P, JUMP_P, CALL_P, LABEL_P, and
31996 BARRIER_P instead of GET_CODE.
31998 2013-03-23 Eric Botcazou <ebotcazou@adacore.com>
32000 * config/sparc/sparc.c (sparc_emit_probe_stack_range): Fix small
32001 inaccuracy in the probing code.
32003 * config/sparc/sparc.md (ctrapsi4): Add predicate for operand #3.
32004 (ctrapdi4): Likewise.
32006 2013-03-23 Eric Botcazou <ebotcazou@adacore.com>
32008 * calls.c (expand_call): Add missing guard to code handling return
32009 of non-BLKmode structures in MSB.
32010 * function.c (expand_function_end): Likewise.
32012 2013-03-23 Eric Botcazou <ebotcazou@adacore.com>
32014 * combine.c (try_combine): Adjust comment. Do not add the set of
32015 insn #0 if the destination indirectly is set or dies in insn #2.
32016 Tidy up code to distribute a new note.
32018 2013-03-22 Uros Bizjak <ubizjak@gmail.com>
32020 * config/i386/i386.md (*movdi_internal): Set prefix_rex attribute
32021 also for alternatives 16 and 17.
32023 2013-03-22 Uros Bizjak <ubizjak@gmail.com>
32025 * config/i386/sse.md (*mov<mode>_internal): Merge with
32026 *mov<mode>_internal_rex64. Use x64 and nox64 isa attributes.
32027 Emit insn template depending on type attribute. Use
32028 HAVE_AS_IX86_INTERUNIT_MOVQ to handle broken assemblers that require
32029 movd instead of movq mnemonic for interunit moves. Rewrite mode
32030 attribute calculation. Remove unit attribute calculation.
32031 Set prefix attribute to maybe_vex for sselog1 and ssemov types.
32032 Set prefix_data16 attribute for DImode ssemov types.
32033 Use Ym instead of y for SSE-MMX conversion alternatives.
32034 Reorder operand constraints.
32036 2013-03-22 Steven Bosscher <steven@gcc.gnu.org>
32038 * df.h (df_insn_delete): Adjust prototype.
32039 * emit-rtl.c (remove_insn): Pass a basic block to df_insn_delete
32040 and let it decide whether mark the basic block dirty.
32041 (set_insn_deleted): Only pass INSN_P insns to df_insn_delete.
32042 * df-scan.c (df_insn_info_delete): New helper function, split
32043 off from df_insn_delete.
32044 (df_scan_free_bb_info): Use it.
32045 (df_insn_rescan, df_insn_rescan_all, df_process_deferred_rescans):
32047 (df_insn_delete): Likewise. Take insn rtx as argument. Verify
32048 that the insn is actually an insn and it has a non-NULL basic block.
32049 Do not mark basic block dirty if only deleting a DEBUG_INSN.
32051 2013-03-22 Richard Biener <rguenther@suse.de>
32053 * tree-ssa-loop-im.c (struct mem_ref): Remove indep_ref and
32055 (mem_ref_alloc): Do not allocate them.
32056 (refs_independent_p): Do not query or maintain a cache.
32058 2013-03-22 Richard Biener <rguenther@suse.de>
32060 * tree-ssa-loop-im.c (memory_references): Drop all_refs_in_loop.
32061 (gather_mem_refs_in_loops): Do not compute it.
32062 (analyze_memory_references): Do not allocate it.
32063 (tree_ssa_lim_finalize): Do not free it.
32064 (for_all_locs_in_loop): Do not query all_refs_in_loop.
32066 2013-03-22 Richard Biener <rguenther@suse.de>
32068 * is-a.h (as_a): Use gcc_checking_assert.
32070 2013-03-22 Ian Bolton <ian.bolton@arm.com>
32072 * config/aarch64/aarch64.c (aarch64_print_operand): New
32073 format specifier for printing a constant in hex.
32074 * config/aarch64/aarch64.md (insv_imm<mode>): Use the X
32075 format specifier for printing second operand.
32077 2013-03-22 Richard Biener <rguenther@suse.de>
32079 * tree-ssa-loop-im.c (memory_references): Add refs_stored_in_loop
32081 (gather_mem_refs_in_loops): Perform store accumulation here.
32082 (create_vop_ref_mapping_loop): Remove.
32083 (create_vop_ref_mapping): Likewise.
32084 (analyze_memory_references): Initialize refs_stored_in_loop.
32085 (LOOP_DEP_BIT): New define to map to bits in (in)dep_loop bitmaps.
32086 (record_indep_loop): Remove.
32087 (record_dep_loop): New function.
32088 (ref_indep_loop_p_1): Adjust to only walk over references
32089 in the loop, not its subloops.
32090 (ref_indep_loop_p): Rename to ...
32091 (ref_indep_loop_p_2): ... this and recurse over the loop tree,
32092 maintaining a more fine-grained cache.
32093 (ref_indep_loop_p): Wrap ref_indep_loop_p_2.
32094 (tree_ssa_lim_finalize): Free refs_stored_in_loop.
32096 2013-03-22 Richard Biener <rguenther@suse.de>
32098 * tree-ssa-loop-im.c (struct mem_ref_locs): Remove.
32099 (struct mem_ref): Make accesses_in_loop a vec of a vec of
32100 aggregate mem_ref_loc.
32101 (free_mem_ref_locs): Inline into ...
32102 (memref_free): ... this and adjust.
32103 (mem_ref_alloc): Adjust.
32104 (mem_ref_locs_alloc): Remove.
32105 (record_mem_ref_loc): Adjust.
32106 (get_all_locs_in_loop): Rewrite into ...
32107 (for_all_locs_in_loop): ... this iterator.
32108 (rewrite_mem_ref_loc): New functor.
32109 (rewrite_mem_refs): Use for_all_locs_in_loop.
32110 (sm_set_flag_if_changed): New functor.
32111 (execute_sm_if_changed_flag_set): Use for_all_locs_in_loop.
32112 (ref_always_accessed): New functor.
32113 (ref_always_accessed_p): Use for_all_locs_in_loop.
32115 2013-03-21 Marc Glisse <marc.glisse@inria.fr>
32117 * tree-pass.h (PROP_gimple_lvec): New.
32118 * passes.c (dump_properties): Handle PROP_gimple_lvec.
32119 (init_optimization_passes): Move pass_lower_vector.
32120 * tree-vect-generic.c (gate_expand_vector_operations_ssa): Test
32122 (pass_lower_vector): Provide PROP_gimple_lvec.
32123 (pass_lower_vector_ssa): Likewise.
32124 * cfgexpand.c (pass_expand): Require PROP_gimple_lvec.
32126 2013-03-21 Mark Wielaard <mjw@redhat.com>
32128 * dwarf2out.c (size_of_aranges): Skip DECL_IGNORED_P functions.
32130 2013-03-21 Uros Bizjak <ubizjak@gmail.com>
32132 * config/i386/i386.md (*movdi_internal): Disparage slightly
32133 all MMX moves to/from memory. Use Yi instead of x for SSE-MMX
32134 conversion alternatives.
32136 2013-03-21 Jakub Jelinek <jakub@redhat.com>
32138 PR middle-end/48087
32139 * diagnostic.def (DK_WERROR): New kind.
32140 * diagnostic.h (werrorcount): Define.
32141 * diagnostic.c (diagnostic_report_diagnostic): For DK_WARNING
32142 promoted to DK_ERROR, increment DK_WERROR counter instead of
32144 * toplev.c (toplev_main): Call print_ignored_options even if
32145 just werrorcount is non-zero. Exit with FATAL_EXIT_CODE
32146 even if just werrorcount is non-zero.
32149 * dwarf2out.c (tree_add_const_value_attribute): Call ggc_free (array)
32151 (resolve_one_addr): Fail if referenced STRING_CST hasn't been written.
32152 (string_cst_pool_decl): New function.
32153 (optimize_one_addr_into_implicit_ptr): New function.
32154 (resolve_addr_in_expr): Optimize DWARF location expression
32155 DW_OP_addr DW_OP_stack_value where DW_OP_addr refers to some variable
32156 which doesn't live in memory, but has DW_AT_location or
32157 DW_AT_const_value, or refers to a string literal, into
32158 DW_OP_GNU_implicit_pointer.
32159 (optimize_location_into_implicit_ptr): New function.
32160 (resolve_addr): If removing DW_AT_location of a variable because
32161 it was DW_OP_addr of address of the variable, but the variable doesn't
32162 live in memory, try to emit const value attribute for the initializer.
32164 2013-03-21 Marc Glisse <marc.glisse@inria.fr>
32166 * tree.h (VECTOR_TYPE_P): New macro.
32167 (VECTOR_INTEGER_TYPE_P, VECTOR_FLOAT_TYPE_P, FLOAT_TYPE_P,
32168 TYPE_MODE): Use it.
32169 * fold-const.c (fold_cond_expr_with_comparison): Use build_zero_cst.
32170 VEC_COND_EXPR cannot be lvalues.
32171 (fold_ternary_loc) <VEC_COND_EXPR>: Merge with the COND_EXPR case.
32173 2013-03-21 Marc Glisse <marc.glisse@inria.fr>
32175 * simplify-rtx.c (simplify_binary_operation_1) <VEC_CONCAT>:
32176 Restrict the transformation to equal modes.
32178 2013-03-21 Richard Biener <rguenther@suse.de>
32180 PR tree-optimization/39326
32181 * tree-ssa-loop-im.c (UNANALYZABLE_MEM_ID): New define.
32182 (MEM_ANALYZABLE): Adjust.
32183 (record_mem_ref_loc): Move bitmap ops ...
32184 (gather_mem_refs_stmt): ... here. Use the shared mem-ref for
32185 unanalyzable refs, do not record locations for it.
32186 (analyze_memory_references): Allocate ref zero as shared
32188 (refs_independent_p): Do not test for unanalyzed mems here.
32189 (ref_indep_loop_p_1): Special-case disambiguation against
32190 the unanalyzed ref.
32191 (ref_indep_loop_p): Assert we are not queried for the unanalyzed mem.
32193 2013-03-21 Christophe Lyon <christophe.lyon@linaro.org>
32195 * config/arm/arm-protos.h (tune_params): Add
32196 prefer_neon_for_64bits field.
32197 * config/arm/arm.c (prefer_neon_for_64bits): New variable.
32198 (arm_slowmul_tune): Default prefer_neon_for_64bits to false.
32199 (arm_fastmul_tune, arm_strongarm_tune, arm_xscale_tune): Ditto.
32200 (arm_9e_tune, arm_v6t2_tune, arm_cortex_tune): Ditto.
32201 (arm_cortex_a15_tune, arm_cortex_a5_tune): Ditto.
32202 (arm_cortex_a9_tune, arm_v6m_tune, arm_fa726te_tune): Ditto.
32203 (arm_option_override): Handle -mneon-for-64bits new option.
32204 * config/arm/arm.h (TARGET_PREFER_NEON_64BITS): New macro.
32205 (prefer_neon_for_64bits): Declare new variable.
32206 * config/arm/arm.md (arch): Rename neon_onlya8 and neon_nota8 to
32207 avoid_neon_for_64bits and neon_for_64bits. Remove onlya8 and nota8.
32208 (arch_enabled): Handle new arch types. Remove support for onlya8
32210 (one_cmpldi2): Use new arch names.
32211 (zero_extend<mode>di2, extend<mode>di2): Ditto.
32212 * config/arm/arm.opt (mneon-for-64bits): Add option.
32213 * config/arm/neon.md (adddi3_neon, subdi3_neon, iordi3_neon)
32214 (anddi3_neon, xordi3_neon, ashldi3_neon, <shift>di3_neon): Use
32215 neon_for_64bits instead of nota8 and avoid_neon_for_64bits instead
32217 * doc/invoke.texi (-mneon-for-64bits): Document.
32219 2013-03-21 Richard Biener <rguenther@suse.de>
32221 PR tree-optimization/39326
32222 * tree-ssa-loop-im.c (bb_loop_postorder): New global static.
32223 (sort_bbs_in_loop_postorder_cmp): New function.
32224 (gather_mem_refs_in_loops): Assign mem-ref IDs in loop postorder.
32226 2013-03-21 Richard Biener <rguenther@suse.de>
32228 * tree-vect-data-refs.c (vect_update_interleaving_chain): Remove.
32229 (vect_insert_into_interleaving_chain): Likewise.
32230 (vect_drs_dependent_in_basic_block): Inline ...
32231 (vect_slp_analyze_data_ref_dependence): ... here. New function,
32233 (vect_analyze_data_ref_dependence): ... here. Simplify.
32234 (vect_check_interleaving): Simplify.
32235 (vect_analyze_data_ref_dependences): Likewise. Split out ...
32236 (vect_slp_analyze_data_ref_dependences): ... this new function.
32237 (dr_group_sort_cmp): New function.
32238 (vect_analyze_data_ref_accesses): Compute data-reference groups
32239 here instead of in vect_analyze_data_ref_dependence. Use
32240 a more efficient algorithm.
32241 * tree-vect-slp.c (vect_slp_analyze_bb_1): Use
32242 vect_slp_analyze_data_ref_dependences. Call
32243 vect_analyze_data_ref_accesses earlier.
32244 * tree-vect-loop.c (vect_analyze_loop_2): Likewise.
32245 * tree-vectorizer.h (vect_analyze_data_ref_dependences): Adjust.
32246 (vect_slp_analyze_data_ref_dependences): New prototype.
32248 2013-03-21 Richard Biener <rguenther@suse.de>
32250 * tree-ssa-loop-im.c (can_sm_ref_p): Do not test whether
32251 ref is stored in the loop.
32252 (find_refs_for_sm): Walk only over all stores.
32253 (store_motion_loop): Allocate from lim_bitmap_obstack.
32254 (store_motion): Likewise.
32256 2013-03-21 Richard Biener <rguenther@suse.de>
32258 * tree-vect-loop-manip.c (slpeel_tree_peel_loop_to_edge):
32259 Update virtual SSA form.
32261 2013-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
32263 * configure.ac (gcc_cv_ld_eh_frame_ciev3): New test.
32264 * configure: Regenerate.
32265 * config.in: Regenerate.
32266 * config/sol2.c (solaris_override_options): Only enforce DWARF 2
32267 if !HAVE_LD_EH_FRAME_CIEV3.
32269 2013-03-21 Richard Biener <rguenther@suse.de>
32271 * tree-cfg.c (verify_expr_no_block): New function.
32272 (verify_expr_location_1): Verify that neither DECL_DEBUG_EXPR
32273 nor DECL_VALUE_EXPR have locations with associated blocks.
32274 * tree-ssa-live.c (clear_unused_block_pointer_1): Remove.
32275 (clear_unused_block_pointer): Remove code dealing with
32276 blocks in DECL_DEBUG_EXPR locations.
32278 2013-03-21 Richard Biener <rguenther@suse.de>
32280 * tree.h (DECL_DEBUG_EXPR_IS_FROM): Rename to ...
32281 (DECL_HAS_DEBUG_EXPR_P): ... this. Guard properly.
32282 * tree.c (copy_node_stat): Do not copy DECL_HAS_DEBUG_EXPR_P.
32283 * dwarf2out.c (add_var_loc_to_decl): Use DECL_HAS_DEBUG_EXPR_P
32284 instead of DECL_DEBUG_EXPR_IS_FROM.
32285 * gimplify.c (gimplify_modify_expr): Likewise.
32286 * tree-cfg.c (verify_expr_location_1): Likewise.
32287 * tree-complex.c (create_one_component_var): Likewise.
32288 * tree-sra.c (create_access_replacement): Likewise.
32289 * tree-ssa-live.c (clear_unused_block_pointer_1): Likewise.
32290 (clear_unused_block_pointer): Likewise.
32291 * tree-streamer-in.c (unpack_ts_decl_common_value_fields): Likewise.
32292 * tree-streamer-out.c (pack_ts_decl_common_value_fields): Likewise.
32293 * var-tracking.c (var_debug_decl): Likewise.
32294 (track_expr_p): Likewise.
32295 * tree-inline.c (add_local_variables): Likewise. Set
32296 DECL_HAS_DEBUG_EXPR_P after copying it.
32297 * tree-diagnostic.c (default_tree_printer): Use DECL_HAS_DEBUG_EXPR_P
32298 instead of DECL_DEBUG_EXPR_IS_FROM. Guard properly.
32300 2013-03-21 Uros Bizjak <ubizjak@gmail.com>
32303 * configure.ac (HAVE_AS_IX86_INTERUNIT_MOVQ): New test.
32304 * configure: Regenerate.
32305 * config.in: Regenerate.
32306 * config/i386/i386.md (*movdf_internal): Use
32307 HAVE_AS_IX86_INTERUNIT_MOVQ to handle broken assemblers that require
32308 movd instead of movq mnemonic for interunit moves.
32309 (*movdi_internal): Ditto.
32311 2013-03-21 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
32313 * config/aarch64/aarch64-simd.md (simd_fabd): New Attribute.
32314 (abd<mode>_3): New pattern.
32315 (aba<mode>_3): New pattern.
32316 (fabd<mode>_3): New pattern.
32318 2013-03-21 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
32320 * config/aarch64/aarch64-elf.h (REGISTER_PREFIX): Remove.
32321 * config/aarch64/aarch64.c (aarch64_print_operand): Remove all
32322 occurrence of REGISTER_PREFIX as its empty string.
32324 2013-03-20 Jeff Law <law@redhat.com>
32326 * tree-ssa-dom.c (record_equivalences_from_incoming_edge): Record
32327 addititional equivalences for equality comparisons between an SSA_NAME
32328 and a constant where the SSA_NAME was set from a widening conversion.
32330 2013-03-20 Walter Lee <walt@tilera.com>
32332 * config/tilegx/sync.md (atomic_test_and_set): New pattern.
32334 2013-03-20 Uros Bizjak <ubizjak@gmail.com>
32336 * config/i386/i386.md (*movoi_internal_avx): Emit insn template
32337 depending on type attribute.
32338 (*movti_internal): Ditto.
32339 (*movtf_internal): Ditto.
32340 (*movxf_internal): Ditto.
32341 (*movdf_internal): Ditto.
32342 (*movsf_internal): Ditto.
32344 2013-03-20 Uros Bizjak <ubizjak@gmail.com>
32346 * config/i386/i386.md (*movti_internal): Set prefix attribute to
32347 maybe_vex for sselog1 and ssemov types.
32348 (*movdi_internal): Reorder operand constraints.
32349 (*movsi_internal): Ditto. Set prefix attribute to
32350 maybe_vex for sselog1 and ssemov types.
32351 (*movtf_internal): Set prefix attribute to maybe_vex
32352 for sselog1 and ssemov types.
32353 (*movdf_internal): Ditto. Set prefix_data16 attribute for
32354 DImode ssemov types. Reorder operand constraints.
32355 (*movsf_internal): Set type of alternatives 3,4 to imov. Set prefix
32356 attribute to maybe_vex for sselog1 and ssemov types. Set prefix_data16
32357 attribute for SImode ssemov types. Reorder operand constraints.
32359 2013-03-20 Martin Jambor <mjambor@suse.cz>
32361 * params.def (PARAM_IPA_CP_ARRAY_INDEX_HINT_BONUS): New parameter.
32362 * ipa-cp.c (hint_time_bonus): Add abonus for known array indices.
32364 2013-03-20 Pat Haugen <pthaugen@us.ibm.com>
32366 * config/rs6000/predicates.md (indexed_address, update_address_mem
32367 update_indexed_address_mem): New predicates.
32368 * config/rs6000/vsx.md (vsx_extract_<mode>_zero): Set correct "type"
32369 attribute for load/store instructions.
32370 * config/rs6000/dfp.md (movsd_store): Likewise.
32371 (movsd_load): Likewise.
32372 * config/rs6000/rs6000.md (zero_extend<mode>di2_internal1): Likewise.
32373 (unnamed HI->DI extend define_insn): Likewise.
32374 (unnamed SI->DI extend define_insn): Likewise.
32375 (unnamed QI->SI extend define_insn): Likewise.
32376 (unnamed QI->HI extend define_insn): Likewise.
32377 (unnamed HI->SI extend define_insn): Likewise.
32378 (unnamed HI->SI extend define_insn): Likewise.
32379 (extendsfdf2_fpr): Likewise.
32380 (movsi_internal1): Likewise.
32381 (movsi_internal1_single): Likewise.
32382 (movhi_internal): Likewise.
32383 (movqi_internal): Likewise.
32384 (movcc_internal1): Correct mnemonic for stw insn. Set correct "type"
32385 attribute for load/store instructions.
32386 (mov<mode>_hardfloat): Set correct "type" attribute for load/store
32388 (mov<mode>_softfloat): Likewise.
32389 (mov<mode>_hardfloat32): Likewise.
32390 (mov<mode>_hardfloat64): Likewise.
32391 (mov<mode>_softfloat64): Likewise.
32392 (movdi_internal32): Likewise.
32393 (movdi_internal64): Likewise.
32394 (probe_stack_<mode>): Likewise.
32396 2013-03-20 Michael Meissner <meissner@linux.vnet.ibm.com>
32398 * config/rs6000/vector.md (VEC_R): Add 32-bit integer, binary
32399 floating point, and decimal floating point to reload iterator.
32401 * config/rs6000/constraints.md (wl constraint): New constraints to
32402 return FLOAT_REGS if certain options are used to reduce the number
32403 of separate patterns that exist in the file.
32404 (wx constraint): Likewise.
32405 (wz constraint): Likewise.
32407 * config/rs6000/rs6000.c (rs6000_debug_reg_global): If
32408 -mdebug=reg, print wg, wl, wx, and wz constraints.
32409 (rs6000_init_hard_regno_mode_ok): Initialize new constraints.
32410 Initialize the reload functions for 64-bit binary/decimal floating
32412 (reg_offset_addressing_ok_p): If we are on a power7 or later, use
32413 LFIWZX and STFIWX to load/store 32-bit decimal types, and don't
32414 create the buffer on the stack to overcome not having a 32-bit
32416 (rs6000_emit_move): Likewise.
32417 (rs6000_secondary_memory_needed_rtx): Likewise.
32418 (rs6000_alloc_sdmode_stack_slot): Likewise.
32419 (rs6000_preferred_reload_class): On VSX, we can create SFmode 0.0f
32420 via xxlxor, just like DFmode 0.0.
32422 * config/rs6000/rs6000.h (TARGET_NO_SDMODE_STACK): New macro,
32423 define as 1 if we are running on a power7 or newer.
32424 (enum r6000_reg_class_enum): Add new constraints.
32426 * config/rs6000/dfp.md (movsd): Delete, combine with binary
32427 floating point moves in rs6000.md. Combine power6x (mfpgpr) moves
32428 with other moves by using conditional constraits (wg). Use LFIWZX
32429 and STFIWX for loading SDmode on power7. Use xxlxor to create 0.0f.
32430 (movsd splitter): Likewise.
32431 (movsd_hardfloat): Likewise.
32432 (movsd_softfloat): Likewise.
32434 * config/rs6000/rs6000.md (FMOVE32): New iterators to combine
32435 binary and decimal floating point moves.
32436 (fmove_ok): New attributes to combine binary and decimal floating
32437 point moves, and to combine power6x (mfpgpr) moves along normal
32439 (real_value_to_target): Likewise.
32440 (f32_lr): Likewise.
32441 (f32_lm): Likewise.
32442 (f32_li): Likewise.
32443 (f32_sr): Likewise.
32444 (f32_sm): Likewise.
32445 (f32_si): Likewise.
32446 (movsf): Combine binary and decimal floating point moves. Combine
32447 power6x (mfpgpr) moves with other moves by using conditional
32448 constraits (wg). Use LFIWZX and STFIWX for loading SDmode on power7.
32449 (mov<mode> for SFmode/SDmode); Likewise.
32450 (SFmode/SDmode splitters): Likewise.
32451 (movsf_hardfloat): Likewise.
32452 (mov<mode>_hardfloat for SFmode/SDmode): Likewise.
32453 (movsf_softfloat): Likewise.
32454 (mov<mode>_softfloat for SFmode/SDmode): Likewise.
32456 * doc/md.texi (PowerPC and IBM RS6000 constraints): Document wl,
32457 wx and wz constraints.
32459 * config/rs6000/constraints.md (wg constraint): New constraint to
32460 return FLOAT_REGS if -mmfpgpr (power6x) was used.
32462 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Add wg
32465 * config/rs6000/rs6000.c (rs6000_debug_reg_global): If
32466 -mdebug=reg, print wg, wl, wx, and wz constraints.
32467 (rs6000_init_hard_regno_mode_ok): Initialize new constraints.
32468 Initialize the reload functions for 64-bit binary/decimal floating
32470 (reg_offset_addressing_ok_p): If we are on a power7 or later, use
32471 LFIWZX and STFIWX to load/store 32-bit decimal types, and don't
32472 create the buffer on the stack to overcome not having a 32-bit
32474 (rs6000_emit_move): Likewise.
32475 (rs6000_secondary_memory_needed_rtx): Likewise.
32476 (rs6000_alloc_sdmode_stack_slot): Likewise.
32477 (rs6000_preferred_reload_class): On VSX, we can create SFmode 0.0f
32478 via xxlxor, just like DFmode 0.0.
32480 * config/rs6000/dfp.md (movdd): Delete, combine with binary
32481 floating point moves in rs6000.md. Combine power6x (mfpgpr) moves
32482 with other moves by using conditional constraits (wg). Use LFIWZX
32483 and STFIWX for loading SDmode on power7.
32484 (movdd splitters): Likewise.
32485 (movdd_hardfloat32): Likewise.
32486 (movdd_softfloat32): Likewise.
32487 (movdd_hardfloat64_mfpgpr): Likewise.
32488 (movdd_hardfloat64): Likewise.
32489 (movdd_softfloat64): Likewise.
32491 * config/rs6000/rs6000.md (FMOVE64): New iterators to combine
32492 64-bit binary and decimal floating point moves.
32493 (FMOVE64X): Likewise.
32494 (movdf): Combine 64-bit binary and decimal floating point moves.
32495 Combine power6x (mfpgpr) moves with other moves by using
32496 conditional constraits (wg).
32497 (mov<mode> for DFmode/DDmode): Likewise.
32498 (DFmode/DDmode splitters): Likewise.
32499 (movdf_hardfloat32): Likewise.
32500 (mov<mode>_hardfloat32 for DFmode/DDmode): Likewise.
32501 (movdf_softfloat32): Likewise.
32502 (movdf_hardfloat64_mfpgpr): Likewise.
32503 (movdf_hardfloat64): Likewise.
32504 (mov<mode>_hardfloat64 for DFmode/DDmode): Likewise.
32505 (movdf_softfloat64): Likewise.
32506 (mov<mode>_softfloat64 for DFmode/DDmode): Likewise.
32507 (reload_<mode>_load): Move to later in the file so they aren't in
32508 the middle of the floating point move insns.
32509 (reload_<mode>_store): Likewise.
32511 * doc/md.texi (PowerPC and IBM RS6000 constraints): Document wg
32514 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Print out wg
32515 constraint if -mdebug=reg.
32516 (rs6000_initi_hard_regno_mode_ok): Enable wg constraint if -mfpgpr.
32517 Enable using dd reload support if needed.
32519 * config/rs6000/dfp.md (movtd): Delete, combine with 128-bit
32520 binary and decimal floating point moves in rs6000.md.
32521 (movtd_internal): Likewise.
32523 * config/rs6000/rs6000.md (FMOVE128): Combine 128-bit binary and
32524 decimal floating point moves.
32526 (movtf_internal): Likewise.
32527 (mov<mode>_internal, TDmode/TFmode): Likewise.
32528 (movtf_softfloat): Likewise.
32529 (mov<mode>_softfloat, TDmode/TFmode): Likewise.
32531 * config/rs6000/rs6000.md (movdi_mfpgpr): Delete, combine with
32532 movdi_internal64, using wg constraint for move direct operations.
32533 (movdi_internal64): Likewise.
32535 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Print
32536 MODES_TIEABLE_P for selected modes. Print the numerical value of
32537 the various virtual registers. Use GPR/FPR first/last values,
32538 instead of hard coding the register numbers. Print which modes
32539 have reload functions registered.
32540 (rs6000_option_override_internal): If -mdebug=reg, trace the options
32541 settings before/after setting cpu, target and subtarget settings.
32542 (rs6000_secondary_reload_trace): Improve the RTL dump for -mdebug=addr
32543 and for secondary reload failures in rs6000_secondary_reload_inner.
32544 (rs6000_secondary_reload_fail): Likewise.
32545 (rs6000_secondary_reload_inner): Likewise.
32547 * config/rs6000/rs6000.md (FIRST_GPR_REGNO): Add convenience
32548 macros for first/last GPR and FPR registers.
32549 (LAST_GPR_REGNO): Likewise.
32550 (FIRST_FPR_REGNO): Likewise.
32551 (LAST_FPR_REGNO): Likewise.
32553 * config/rs6000/vector.md (mul<mode>3): Use the combined macro
32554 VECTOR_UNIT_ALTIVEC_OR_VSX_P instead of separate calls to
32555 VECTOR_UNIT_ALTIVEC_P and VECTOR_UNIT_VSX_P.
32556 (vcond<mode><mode>): Likewise.
32557 (vcondu<mode><mode>): Likewise.
32558 (vector_gtu<mode>): Likewise.
32559 (vector_gte<mode>): Likewise.
32560 (xor<mode>3): Don't allow logical operations on TImode in 32-bit
32561 to prevent the compiler from converting DImode operations to TImode.
32562 (ior<mode>3): Likewise.
32563 (and<mode>3): Likewise.
32564 (one_cmpl<mode>2): Likewise.
32565 (nor<mode>3): Likewise.
32566 (andc<mode>3): Likewise.
32568 * config/rs6000/constraints.md (wt constraint): New constraint
32569 that returns VSX_REGS if TImode is allowed in VSX registers.
32571 * config/rs6000/predicates.md (easy_fp_constant): 0.0f is an easy
32572 constant under VSX.
32574 * config/rs6000/rs6000-modes.def (PTImode): Define, PTImode is
32575 similar to TImode, but it is restricted to being in the GPRs.
32577 * config/rs6000/rs6000.opt (-mvsx-timode): New switch to allow
32578 TImode to occupy a single VSX register.
32580 * config/rs6000/rs6000-cpus.def (ISA_2_6_MASKS_SERVER): Default to
32581 -mvsx-timode for power7/power8.
32582 (power7 cpu): Likewise.
32583 (power8 cpu): Likewise.
32585 * config/rs6000/rs6000.c (rs6000_hard_regno_nregs_internal): Make
32586 sure that TFmode/TDmode take up two registers if they are ever
32587 allowed in the upper VSX registers.
32588 (rs6000_hard_regno_mode_ok): If -mvsx-timode, allow TImode in VSX
32590 (rs6000_init_hard_regno_mode_ok): Likewise.
32591 (rs6000_debug_reg_global): Add debugging for PTImode and wt
32592 constraint. Print if LRA is turned on.
32593 (rs6000_option_override_internal): Give an error if -mvsx-timode
32594 and VSX is not enabled.
32595 (invalid_e500_subreg): Handle PTImode, restricting it to GPRs. If
32596 -mvsx-timode, restrict TImode to reg+reg addressing, and PTImode
32597 to reg+offset addressing. Use PTImode when checking offset
32598 addresses for validity.
32599 (reg_offset_addressing_ok_p): Likewise.
32600 (rs6000_legitimate_offset_address_p): Likewise.
32601 (rs6000_legitimize_address): Likewise.
32602 (rs6000_legitimize_reload_address): Likewise.
32603 (rs6000_legitimate_address_p): Likewise.
32604 (rs6000_eliminate_indexed_memrefs): Likewise.
32605 (rs6000_emit_move): Likewise.
32606 (rs6000_secondary_reload): Likewise.
32607 (rs6000_secondary_reload_inner): Handle PTImode. Allow 64-bit
32608 reloads to fpr registers to continue to use reg+offset addressing,
32609 but 64-bit reloads to altivec registers need reg+reg addressing.
32610 Drop test for PRE_MODIFY, since VSX loads/stores no longer support
32611 it. Treat LO_SUM like a PLUS operation.
32612 (rs6000_secondary_reload_class): If type is 64-bit, prefer to use
32613 FLOAT_REGS instead of VSX_RGS to allow use of reg+offset addressing.
32614 (rs6000_cannot_change_mode_class): Do not allow TImode in VSX
32615 registers to share a register with a smaller sized type, since VSX
32616 puts scalars in the upper 64-bits.
32617 (print_operand): Add support for PTImode.
32618 (rs6000_register_move_cost): Use VECTOR_MEM_VSX_P instead of
32619 VECTOR_UNIT_VSX_P to catch types that can be loaded in VSX
32620 registers, but don't have arithmetic support.
32621 (rs6000_memory_move_cost): Add test for VSX.
32622 (rs6000_opt_masks): Add -mvsx-timode.
32624 * config/rs6000/vsx.md (VSm): Change to use 64-bit aligned moves
32627 (VSr): Use wt constraint for TImode.
32628 (VSv): Drop TImode support.
32629 (vsx_movti): Delete, replace with versions for 32-bit and 64-bit.
32630 (vsx_movti_64bit): Likewise.
32631 (vsx_movti_32bit): Likewise.
32632 (vec_store_<mode>): Use VSX iterator instead of vector iterator.
32633 (vsx_and<mode>3): Delete use of '?' constraint on inputs, just put
32634 one '?' on the appropriate output constraint. Do not allow TImode
32635 logical operations on 32-bit systems.
32636 (vsx_ior<mode>3): Likewise.
32637 (vsx_xor<mode>3): Likewise.
32638 (vsx_one_cmpl<mode>2): Likewise.
32639 (vsx_nor<mode>3): Likewise.
32640 (vsx_andc<mode>3): Likewise.
32641 (vsx_concat_<mode>): Likewise.
32642 (vsx_xxpermdi_<mode>): Fix thinko for non V2DF/V2DI modes.
32644 * config/rs6000/rs6000.h (MASK_VSX_TIMODE): Map from
32645 OPTION_MASK_VSX_TIMODE.
32646 (enum rs6000_reg_class_enum): Add RS6000_CONSTRAINT_wt.
32647 (STACK_SAVEAREA_MODE): Use PTImode instead of TImode.
32649 * config/rs6000/rs6000.md (INT mode attribute): Add PTImode.
32650 (TI2 iterator): New iterator for TImode, PTImode.
32651 (wd mode attribute): Add values for vector types.
32652 (movti_string): Replace TI move operations with operations for TImode
32653 and PTImode. Add support for TImode being allowed in VSX registers.
32654 (mov<mode>_string, TImode/PTImode): Likewise.
32655 (movti_ppc64): Likewise.
32656 (mov<mode>_ppc64, TImode/PTImode): Likewise.
32657 (TI mode splitters): Likewise.
32659 * doc/md.texi (PowerPC and IBM RS6000 constraints): Document wt
32662 2013-03-20 Marc Glisse <marc.glisse@inria.fr>
32664 PR tree-optimization/56355
32665 * fold-const.c (tree_binary_nonnegative_warnv_p) <MULT_EXPR>:
32666 Also handle integers with undefined overflow.
32668 2013-03-20 Catherine Moore <clm@codesourcery.com>
32669 Maciej W. Rozycki <macro@codesourcery.com>
32670 Tom de Vries <tom@codesourcery.com>
32671 Nathan Sidwell <nathan@codesourcery.com>
32672 Iain Sandoe <iain@codesourcery.com>
32673 Nathan Froyd <froydnj@codesourcery.com>
32674 Chao-ying Fu <fu@mips.com>
32676 * doc/extend.texi: (micromips, nomicromips, nocompression):
32677 Document new function attributes.
32678 * doc/invoke.texi (minterlink-compressed, mmicromips,
32679 m14k, m14ke, m14kec): Document new options.
32680 (minterlink-mips16): Update documentation.
32681 * doc/md.texi (ZC, ZD): Document new constraints.
32682 * configure.ac (gcc_cv_as_micromips): Check if linker
32683 supports the .set micromips directive.
32684 * configure: Regenerate.
32685 * config.in: Regenerate.
32686 * config/mips/mips-tables.opt: Regenerate.
32687 * config/mips/micromips.md: New file.
32688 * constraints.md (ZC, ZD): New constraints.
32689 * config/mips/predicates.md (movep_src_register): New predicate.
32690 (movep_src_operand): New predicate.
32691 (non_volatile_mem_operand): New predicate.
32692 * config/mips/mips.md (multimem): New type.
32693 (length): Differentiate between 17-bit and 18-bit branch offsets.
32694 (MOVEP1, MOVEP2): New mode iterator.
32695 (mov_<load>l): Use ZC constraint.
32696 (mov_<load>r): Likewise.
32697 (mov_<store>l): Likewise.
32698 (mov_<store>r): Likewise.
32699 (*branch_equality<mode>_inverted): Add microMIPS support.
32700 (*branch_equality<mode>): Likewise.
32701 (*jump_absolute): Likewise.
32702 (indirect_jump_<mode>): Likewise.
32703 (tablejump_<mode>): Likewise.
32704 (<optab>_internal): Likewise.
32705 (sibcall_internal): Likewise.
32706 (sibcall_value_internal): Likewise.
32707 (prefetch): Use constraint ZD.
32708 * config/mips/mips.opt (minterlink-compressed): New option.
32709 (minterlink-mips16): Now an alias for minterlink-compressed.
32710 (mmicromips): New option.
32711 * config/mips/sync.md (sync_compare_and_swap<mode>): Use ZR constraint.
32712 (compare_and_swap_12): Likewise.
32713 (sync_add<mode>): Likewise.
32714 (sync_<optab>_12): Likewise.
32715 (sync_old_<optab>_12): Likewise.
32716 (sync_new_<optab>_12): Likewise.
32717 (sync_nand_12): Likewise.
32718 (sync_old_nand_12): Likewise.
32719 (sync_new_nand_12): Likewise.
32720 (sync_sub<mode>): Likewise.
32721 (sync_old_add<mode>): Likewise.
32722 (sync_old_sub<mode>): Likewise.
32723 (sync_new_add<mode>): Likewise.
32724 (sync_new_sub<mode>): Likewise.
32725 (sync_<optab><mode>): Likewise.
32726 (sync_old_<optab><mode>): Likewise.
32727 (sync_new_<optab><mode>): Likewise.
32728 (sync_nand<mode>): Likewise.
32729 (sync_old_nand<mode>): Likewise.
32730 (sync_new_nand<mode>): Likewise.
32731 (sync_lock_test_and_set<mode>): Likewise.
32732 (test_and_set_12): Likewise.
32733 (atomic_compare_and_swap<mode>): Likewise.
32734 (atomic_exchange<mode>_llsc): Likewise.
32735 (atomic_fetch_add<mode>_llsc): Likewise.
32736 * config/mips/mips-cpus.def (m14kc, m14k): New processors.
32737 * config/mips/mips-protos.h (umips_output_save_restore): New prototype.
32738 (umips_save_restore_pattern_p): Likewise.
32739 (umips_load_store_pair_p): Likewise.
32740 (umips_output_load_store_pair): Likewise.
32741 (umips_movep_target_p): Likewise.
32742 (umips_12bit_offset_address_p): Likewise.
32743 * config/mips/mips.c (MIPS_MAX_FIRST_STEP): Update for microMIPS.
32744 (mips_base_mips16): Rename this...
32745 (mips_base_compression_flags): ...to this. Update all uses.
32746 (mips_attribute_table): Add micromips, nomicromips and nocompression.
32747 (mips_mips16_decl_p): Delete.
32748 (mips_nomips16_decl_p): Delete.
32749 (mips_get_compress_on_flags): New function.
32750 (mips_get_compress_off_flags): New function.
32751 (mips_get_compress_mode): New function.
32752 (mips_get_compress_on_name): New function.
32753 (mips_get_compress_off_name): New function.
32754 (mips_insert_attributes): Support multiple compression types.
32755 (mips_merge_decl_attributes): Likewise.
32756 (umips_12bit_offset_address_p): New function.
32757 (mips_start_function_definition): Emit .set micromips directive.
32758 (mips_call_may_need_jalx_p): New function.
32759 (mips_function_ok_for_sibcall): Add microMIPS support.
32760 (mips_print_operand_punctuation): Support short delay slots and
32762 (umips_swm_mask, umips_swm_encoding): New.
32763 (umips_build_save_restore): New function.
32764 (mips_for_each_saved_gpr_and_fpr): Add microMIPS support.
32765 (was_mips16_p): Remove.
32766 (old_compression_mode): New.
32767 (mips_set_compression_mode): New function.
32768 (mips_set_current_function): Add microMIPS support.
32769 (mips_option_override): Likewise.
32770 (umips_save_restore_pattern_p): New function.
32771 (umips_output_save_restore): New function.
32772 (umips_load_store_pair_p_1): New function.
32773 (umips_load_store_pair_p): New function.
32774 (umips_output_load_store_pair_1): New function.
32775 (umips_output_load_store_pair): New function.
32776 (umips_movep_target_p) New function.
32777 (mips_prepare_pch_save): Add microMIPS support.
32778 * config/mips/mips.h (TARGET_COMPRESSION): New.
32779 (TARGET_CPU_CPP_BUILTINS): Update macro
32780 to use new compression flags and to support microMIPS.
32781 (MIPS_ISA_LEVEL_SPEC): Add m14k processors.
32782 (MIPS_ARCH_FLOAT_SPEC): Likewise.
32783 (ISA_HAS_LWXS): Include TARGET_MICROMIPS.
32784 (ISA_HAS_LOAD_DELAY): Exclude TARGET_MICROMIPS.
32785 (ASM_SPEC): Support mmicromips and mno-micromips.
32786 (M16STORE_REG_P): New macro.
32787 (MIPS_CALL): Support TARGET_MICROMIPS.
32788 (MICROMIPS_J): New macro.
32789 (mips_base_mips16): Rename this...
32790 (mips_base_compression_flags): ...to this.
32791 (UMIPS_12BIT_OFFSET_P): New macro.
32792 * config/mips/t-sde: (MULTILIB_OPTIONS): Add microMIPS.
32793 (MULTILIB_DIRNAMES): Likewise.
32794 2013-03-20 Richard Biener <rguenther@suse.de>
32796 PR tree-optimization/56661
32797 * tree-ssa-sccvn.c (visit_use): Only value-number calls if
32798 the result does not have to be distinct.
32800 2013-03-20 Richard Biener <rguenther@suse.de>
32802 * tree-inline.c (copy_tree_body_r): Sync MEM_REF code with
32805 2013-03-20 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
32806 Steven Bosscher <steven@gcc.gnu.org>
32808 PR rtl-optimization/56605
32809 * loop-iv.c (implies_p): Handle equal RTXs and subregs.
32811 2013-03-20 Uros Bizjak <ubizjak@gmail.com>
32814 * config/i386/i386.md (*movdi_internal): Handle broken assemblers
32815 that require movd instead of movq.
32817 2013-03-20 Richard Biener <rguenther@suse.de>
32819 * tree-ssa-structalias.c (struct variable_info): Add pointer
32820 to the first field of an aggregate with sub-vars. Make
32821 this and the pointer to the next subfield its ID.
32822 (vi_next): New function.
32823 (nothing_id, anything_id, readonly_id, escaped_id, nonlocal_id,
32824 storedanything_id, integer_id): Increment by one.
32825 (new_var_info, get_call_vi, lookup_call_clobber_vi,
32826 get_call_clobber_vi): Adjust.
32827 (solution_set_expand): Simplify and speedup.
32828 (solution_set_add): Inline into ...
32829 (set_union_with_increment): ... this. Adjust accordingly.
32830 (do_sd_constraint): Likewise.
32831 (do_ds_constraint): Likewise.
32832 (do_complex_constraint): Simplify.
32833 (build_pred_graph): Adjust.
32834 (solve_graph): Likewise. Simplify and speedup.
32835 (get_constraint_for_ssa_var, get_constraint_for_ptr_offset,
32836 get_constraint_for_component_ref, get_constraint_for_1,
32837 first_vi_for_offset, first_or_preceding_vi_for_offset,
32838 create_function_info_for, create_variable_info_for_1,
32839 create_variable_info_for, intra_create_variable_infos): Adjust.
32840 (init_base_vars): Push NULL for ID zero.
32841 (compute_points_to_sets): Adjust.
32843 2013-03-20 Richard Biener <rguenther@suse.de>
32845 * cfgloop.c (verify_loop_structure): Streamline and avoid
32846 ICEing on corrupt loop tree.
32847 * graph.c (draw_cfg_nodes_for_loop): Avoid ICEing on corrupt
32850 2013-03-20 Richard Biener <rguenther@suse.de>
32852 * tree-vect-loop-manip.c (slpeel_can_duplicate_loop_p): Do not
32853 check whether an SSA update is needed.
32855 2013-03-20 Richard Sandiford <rdsandiford@googlemail.com>
32857 * config/mips/constraints.md (T): Rename to...
32861 * config/mips/mips.md (*movdi_64bit, *movdi_64bit_mips16)
32862 (*mov<mode>_internal, *mov<mode>_mips16): Update accordingly.
32864 2013-03-19 Ian Bolton <ian.bolton@arm.com>
32866 * config/aarch64/aarch64.md (*sub<mode>3_carryin): New pattern.
32867 (*subsi3_carryin_uxtw): Likewise.
32869 2013-03-19 Ian Bolton <ian.bolton@arm.com>
32871 * config/aarch64/aarch64.md (*ror<mode>3_insn): New pattern.
32872 (*rorsi3_insn_uxtw): Likewise.
32874 2013-03-19 Ian Bolton <ian.bolton@arm.com>
32876 * config/aarch64/aarch64.md (*extr<mode>5_insn): New pattern.
32877 (*extrsi5_insn_uxtw): Likewise.
32879 2013-03-19 Richard Biener <rguenther@suse.de>
32881 PR tree-optimization/56273
32882 * passes.c (init_optimization_passes): Move second VRP after DOM.
32884 2013-03-19 Uros Bizjak <ubizjak@gmail.com>
32886 * config/i386/i386.md (*movti_internal): Merge from
32887 *movti_internal_rex64 and *movti_internal_sse. Use x64 isa attribute.
32888 (*movdi_internal): Merge with *movdi_internal_rex64. Use x64 and
32889 nox64 isa attributes.
32891 2013-03-18 Richard Biener <rguenther@suse.de>
32893 * tree-ssa-structalias.c (find): Use gcc_checking_assert.
32895 (merge_node_constraints): Likewise.
32896 (build_succ_graph): Likewise.
32897 (valid_graph_edge): Inline into single caller.
32898 (unify_nodes): Likewise. Use bitmap_set_bit return value
32900 (scc_visit): Fix formatting and variable use.
32901 (do_sd_constraint): Use gcc_checking_assert.
32902 (do_ds_constraint): Likewise.
32903 (do_complex_constraint): Likewise.
32904 (condense_visit): Likewise. Cleanup.
32905 (dump_pred_graph): New function.
32906 (perform_var_substitution): Dump the pred-graph before
32907 variable substitution.
32908 (find_equivalent_node): Use gcc_checking_assert.
32909 (rewrite_constraints): Guard checking loop with ENABLE_CHECKING.
32911 2013-03-18 Richard Biener <rguenther@suse.de>
32913 * tree-vect-loop-manip.c (vect_create_cond_for_alias_checks):
32914 Remove cond_expr_stmt_list argument and do not gimplify the
32916 (vect_loop_versioning): Adjust.
32917 * tree-vect-data-refs.c (vect_create_addr_base_for_vector_ref):
32918 Cleanup to use less temporaries.
32919 (vect_create_data_ref_ptr): Cleanup.
32921 2013-03-18 Jakub Jelinek <jakub@redhat.com>
32923 PR tree-optimization/56635
32924 * fold-const.c (operand_equal_p): For MEM_REF and TARGET_MEM_REF,
32925 require types_compatible_p types.
32927 2013-03-18 Nick Clifton <nickc@redhat.com>
32929 * config/stormy16/stormy16.c (xstormy16_expand_prologue): Remove
32930 spurious backslash.
32932 * config/mn10300/mn10300.c (mn10300_get_live_callee_saved_regs):
32933 Add missing line to comment describing function.
32935 2013-03-18 Richard Biener <rguenther@suse.de>
32937 PR tree-optimization/56210
32938 * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
32939 Handle string / character search functions.
32940 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Likewise.
32942 2013-03-18 Richard Biener <rguenther@suse.de>
32944 PR middle-end/56483
32945 * cfgexpand.c (expand_gimple_cond): Inline gimple_cond_single_var_p
32946 and implement properly.
32947 * gimple.h (gimple_cond_single_var_p): Remove.
32949 2013-03-18 Richard Biener <rguenther@suse.de>
32951 * tree-data-ref.h (find_data_references_in_loop): Declare.
32952 * tree-data-ref.c (get_references_in_stmt): Use a stack
32953 vector pre-allocated in the callers.
32954 (find_data_references_in_stmt): Adjust.
32955 (graphite_find_data_references_in_stmt): Likewise.
32956 (create_rdg_vertices): Likewise.
32957 (find_data_references_in_loop): Export.
32958 * tree-vect-data-refs.c (vect_analyze_data_ref_dependences):
32959 Compute dependences here...
32960 (vect_analyze_data_refs): ...not here. When we encounter
32961 a non-vectorizable data reference in basic-block vectorization
32962 truncate the data reference vector. Do not bother to
32963 fixup data-dependence information for gather loads.
32964 * tree-vect-slp.c (vect_slp_analyze_bb_1): Check the number
32965 of data references, as reported.
32967 2013-03-18 Richard Biener <rguenther@suse.de>
32969 PR tree-optimization/3713
32970 * tree-ssa-sccvn.c (visit_copy): Simplify. Always propagate
32971 has_constants and expr.
32972 (stmt_has_constants): Properly valueize SSA names when deciding
32973 whether the stmt has constants.
32975 2013-03-18 Richard Biener <rguenther@suse.de>
32977 * tree-ssa-loop-manip.c (find_uses_to_rename): Do not scan the
32978 whole function when there is nothing to do.
32979 * tree-ssa-loop.c (pass_vectorize): Remove TODO_update_ssa.
32980 * tree-vectorizer.c (vectorize_loops): Update virtual and
32981 loop-closed SSA once.
32982 * tree-vect-loop.c (vect_transform_loop): Do not update SSA here.
32984 2013-03-18 Richard Biener <rguenther@suse.de>
32986 PR middle-end/56113
32987 * domwalk.c (bb_postorder): New global static.
32988 (cmp_bb_postorder): New function.
32989 (walk_dominator_tree): Replace scheme imposing an order for
32990 visiting dominator sons by one sorting them at the time they
32991 are pushed on the stack.
32993 2013-03-18 Richard Biener <rguenther@suse.de>
32995 PR tree-optimization/39326
32996 * tree-ssa-loop-im.c (refs_independent_p): Exploit symmetry.
32997 (struct mem_ref): Replace mem member with ao_ref typed member.
32998 (MEM_ANALYZABLE): Adjust.
32999 (memref_eq): Likewise.
33000 (mem_ref_alloc): Likewise.
33001 (gather_mem_refs_stmt): Likewise.
33002 (mem_refs_may_alias_p): Use the ao_ref to query the alias oracle.
33003 (execute_sm_if_changed_flag_set): Adjust.
33004 (execute_sm): Likewise.
33005 (ref_always_accessed_p): Likewise.
33006 (refs_independent_p): Likewise.
33007 (can_sm_ref_p): Likewise.
33009 2013-03-18 Jakub Jelinek <jakub@redhat.com>
33012 * tree.c (tree_int_cst_min_precision): For integer_zerop (value)
33013 return 1 even for !unsignedp.
33015 2013-03-17 Uros Bizjak <ubizjak@gmail.com>
33017 * config/i386/i386.md (isa): Add x64 and nox64.
33018 (enabled): Define x64 for TARGET_64BIT and nox64 for !TARGET_64BIT.
33019 (*pushtf): Enable *roF alternative for x64 isa only.
33020 (*pushxf): Merge with *pushxf_nointeger. Use Yx*r constraint. Set
33021 mode attribute of integer alternatives to DImode for TARGET_64BIT.
33022 (*pushdf): Merge with *pushdf_rex64. Use x64 and nox64 isa attributes.
33023 (*movtf_internal): Merge from *movtf_internal_rex64 and
33024 *movtf_internal_sse. Use x64 and nox64 isa attributes.
33025 (*movxf_internal): Merge with *movxf_internal_rex64. Use x64 and
33026 nox64 isa attributes.
33027 (*movdf_internal): Merge with *movdf_internal_rex64. Use x64 and
33028 nox64 isa attributes.
33029 * config/i386/constraints.md (Yd): Do not set for TARGET_64BIT.
33031 2013-03-17 Uros Bizjak <ubizjak@gmail.com>
33033 * config/alpha/alpha.c (TARGET_LRA_P): New define.
33035 2013-03-17 Jakub Jelinek <jakub@redhat.com>
33038 * config/arm/arm.h (REG_CLASS_NAMES): Add "SFP_REG" and "AFP_REG"
33039 class names. Remove trailing comma after "ALL_REGS".
33041 2013-03-16 Jan Hubicka <jh@suse.cz>
33043 * cgraph.h (cgraph_get_create_real_symbol_node): Declare.
33044 * cgraph.c (cgraph_get_create_real_symbol_node): New function.
33045 * cgrpahbuild.c: Use cgraph_get_create_real_symbol_node instead
33046 of cgraph_get_create_node.
33047 * ipa-prop.c (ipa_make_edge_direct_to_target): Likewise.
33049 2013-03-16 Jason Merrill <jason@redhat.com>
33052 * dwarf2out.c (gen_generic_params_dies): Indicate default arguments
33053 with DW_AT_default_value.
33055 2013-03-16 Jakub Jelinek <jakub@redhat.com>
33057 * BASE-VER: Set to 4.9.0.
33059 2013-03-14 Andi Kleen <ak@linux.intel.com>
33062 * doc/extend.texi: Document __ATOMIC_HLE_ACQUIRE,
33063 __ATOMIC_HLE_RELEASE. Document __builtin_ia32 TSX intrincs.
33064 Document _x* TSX intrinsics.
33066 2013-03-14 Edgar E. Iglesias <edgar.iglesias@xilinx.com>
33067 David Holsgrove <david.holsgrove@xilinx.com>
33069 * configure.ac: Add MicroBlaze TLS support detection.
33070 * configure: Regenerate.
33071 * config/microblaze/microblaze-protos.h
33072 (microblaze_cannot_force_const_mem, microblaze_tls_referenced_p,
33073 symbol_mentioned_p, label_mentioned_p): Add prototypes.
33074 * config/microblaze/microblaze.c (microblaze_address_type): Add
33075 ADDRESS_TLS and tls_reloc address types.
33076 (microblaze_address_info): Add tls_reloc.
33077 (TARGET_HAVE_TLS): Define.
33078 (get_tls_get_addr, microblaze_tls_symbol_p, microblaze_tls_operand_p_1,
33079 microblaze_tls_referenced_p, microblaze_cannot_force_const_mem,
33080 symbol_mentioned_p, label_mentioned_p, tls_mentioned_p,
33081 load_tls_operand, microblaze_call_tls_get_addr,
33082 microblaze_legitimize_tls_address): New functions.
33083 (microblaze_classify_unspec): Handle UNSPEC_TLS.
33084 (get_base_reg): Use microblaze_tls_symbol_p.
33085 (microblaze_classify_address): Handle TLS.
33086 (microblaze_legitimate_pic_operand): Use symbol_mentioned_p,
33087 label_mentioned_p and microblaze_tls_referenced_p.
33088 (microblaze_legitimize_address): Handle TLS.
33089 (microblaze_address_insns): Handle ADDRESS_TLS.
33090 (pic_address_needs_scratch): Handle TLS.
33091 (print_operand_address): Handle TLS.
33092 (microblaze_expand_prologue): Check TLS_NEEDS_GOT.
33093 (microblaze_expand_move): Handle TLS.
33094 (microblaze_legitimate_constant_p): Check
33095 microblaze_cannot_force_const_mem and microblaze_tls_symbol_p.
33096 (TARGET_CANNOT_FORCE_CONST_MEM): Define.
33097 * config/microblaze/microblaze.h (TLS_NEEDS_GOT): Define
33098 (PIC_OFFSET_TABLE_REGNUM): Set.
33099 * config/microblaze/linux.h (TLS_NEEDS_GOT): Define.
33100 * config/microblaze/microblaze.md (UNSPEC_TLS): Define.
33101 (addsi3, movsi_internal2, movdf_internal): Update constraints
33102 * config/microblaze/predicates.md (arith_plus_operand): Define
33103 (move_operand): Redefine as move_src_operand,
33104 check microblaze_tls_referenced_p.
33106 2013-03-14 Ian Bolton <ian.bolton@arm.com>
33108 * config/aarch64/aarch64.md: (*and<mode>3nr_compare0): Use CC_NZ.
33109 (*and_<SHIFT:optab><mode>3nr_compare0): Likewise.
33111 2013-03-14 Ian Bolton <ian.bolton@arm.com>
33113 * config/aarch64/aarch64.c (aarch64_select_cc_mode): Return correct
33116 2013-03-14 Jakub Jelinek <jakub@redhat.com>
33118 PR tree-optimization/53265
33119 * common.opt (Waggressive-loop-optimizations): New option.
33120 * tree-ssa-loop-niter.c: Include tree-pass.h.
33121 (do_warn_aggressive_loop_optimizations): New function.
33122 (record_estimate): Call it. Don't add !is_exit bounds to loop->bounds
33123 if number_of_latch_executions returned constant.
33124 (estimate_numbers_of_iterations_loop): Call number_of_latch_executions
33125 early. If number_of_latch_executions returned constant, set
33126 nb_iterations_upper_bound back to it.
33127 * cfgloop.h (struct loop): Add warned_aggressive_loop_optimizations
33129 * Makefile.in (tree-ssa-loop-niter.o): Depend on $(TREE_PASS_H).
33130 * doc/invoke.texi (-Wno-aggressive-loop-optimizations): Document.
33132 * config/aarch64/t-aarch64-linux (MULTARCH_DIRNAME): Remove.
33133 (MULTILIB_OSDIRNAMES): Set.
33134 * genmultilib: If defaultosdirname doesn't start with :: , set
33135 defaultosdirname2 instead, clear it and emit two . multilib_raw
33136 entries instead of just one.
33138 2013-03-14 Kaz Kojima <kkojima@gcc.gnu.org>
33140 * config/sh/linux.h (TARGET_DEFAULT): Remove MASK_USERMODE.
33141 (SUBTARGET_OVERRIDE_OPTIONS): Set TARGET_USERMODE as default.
33142 * config/sh/netbsd-elf.h (TARGET_DEFAULT): Remove MASK_USERMODE.
33143 (SUBTARGET_OVERRIDE_OPTIONS): New.
33145 2013-03-13 Oleg Endo <olegendo@gcc.gnu.org>
33148 * config/sh/sh.opt (FPU_SINGLE_ONLY): New mask.
33149 (musermode): Convert to Var(TARGET_USERMODE).
33150 * config/sh/sh.h (SELECT_SH2A_SINGLE_ONLY, SELECT_SH4_SINGLE_ONLY,
33151 MASK_ARCH): Add MASK_FPU_SINGLE_ONLY.
33152 * config/sh/sh.c (sh_option_override): Use
33153 TARGET_FPU_DOUBLE || TARGET_FPU_SINGLE_ONLY for call-fp case.
33154 * config/sh/sh.md (udivsi3_i1, divsi3_i1): Remove ! TARGET_SH4
33156 (udivsi3_i4, divsi3_i4): Use TARGET_FPU_DOUBLE condition instead of
33158 (udivsi3_i4_single, divsi3_i4_single): Use
33159 TARGET_FPU_SINGLE_ONLY || TARGET_FPU_DOUBLE instead of TARGET_HARD_SH4.
33161 2013-03-13 Dave Korn <dave.korn.cygwin@gmail.com>
33163 * config/i386/cygwin.h (SHARED_LIBGCC_SPEC): Make shared libgcc the
33166 2013-03-13 Richard Biener <rguenther@suse.de>
33168 PR tree-optimization/56608
33169 * tree-vect-slp.c (vect_schedule_slp): Do not remove scalar
33170 calls when vectorizing basic-blocks.
33172 2013-03-13 Jakub Jelinek <jakub@redhat.com>
33175 * config.gcc: On arm, mips, sh and sparc add vxworks-dummy.h to
33178 2013-03-12 Jakub Jelinek <jakub@redhat.com>
33180 * doc/invoke.texi (-Waddr-space-convert): Move into the table earlier.
33182 2013-03-11 Jan Hubicka <jh@suse.cz>
33185 * lto-streamer-out.c (output_symbol_p): Skip references from
33186 constructors of external variables.
33188 2013-03-11 Jan Hubicka <jh@suse.cz>
33190 PR middle-end/56571
33191 * valtrack.c (cleanup_auto_inc_dec): Unshare clobbers originating
33193 * emit-rtl.c (verify_rtx_sharing): Likewise.
33194 (copy_insn_1): Likewise.
33195 * rtl.c (copy_rtx): Likewise.
33197 2013-03-11 Georg-Johann Lay <avr@gjlay.de>
33200 * config/avr/avr.c (avr_print_operand): Add space after '%c' in
33201 output_operand_lossage message.
33203 2013-03-11 Richard Earnshaw <rearnsha@arm.com>
33206 * arm.c (shift_op): Validate RTL pattern on the fly.
33207 (arm_print_operand, case 'S'): Don't use shift_operator to validate
33210 2013-03-10 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
33213 * config/pa/pa.md (call_value): Check for calls to powf and direct to
33214 new call patterns that clobber %fr12.
33215 (call_val_powf, call_val_powf_pic, call_val_powf_64bit): New insn,
33216 split and postreload patterns.
33217 * config/pa/pa.c (pa_conditional_register_usage): Revert marking
33218 registers %fr12 and %fr12R as call used.
33220 2013-03-09 Steven Bosscher <steven@gcc.gnu.org>
33222 * dse.c (delete_dead_store_insn): Respect TDF_DETAILS.
33223 (canon_address, record_store, replace_read, check_mem_read_rtx,
33224 scan_insn, dse_step1, dse_step2_init, dse_step2_spill,
33225 dse_step4, dse_step5_nospill, dse_step5_spill, dse_step6,
33226 rest_of_handle_dse): Likewise.
33228 2013-03-09 Richard Sandiford <rdsandiford@googlemail.com>
33230 PR middle-end/56524
33231 * tree.h (tree_optimization_option): Rename target_optabs to optabs.
33233 (TREE_OPTIMIZATION_OPTABS): Update after previous field change.
33234 (TREE_OPTIMIZATION_BASE_OPTABS): New macro.
33235 (save_optabs_if_changed): Replace with...
33236 (init_tree_optimization_optabs): ...this.
33237 * optabs.c (save_optabs_if_changed): Rename to...
33238 (init_tree_optimization_optabs): ...this. Take the optimization node
33239 as argument. Do nothing if the base optabs are already correct.
33240 Reuse the existing TREE_OPTIMIZATION_OPTABS memory if we need
33241 to recompute optabs.
33242 * function.h (function): Remove optabs field.
33243 * function.c (invoke_set_current_function_hook): Call
33244 init_tree_optimization_optabs. Use the result to initialize
33247 2013-02-27 Aldy Hernandez <aldyh@redhat.com>
33249 * trans-mem.c (expand_transaction): Do not set PR_INSTRUMENTEDCODE
33250 if GTMA_HAS_NO_INSTRUMENTATION.
33251 (generate_tm_state): Keep GTMA_HAS_NO_INSTRUMENTATION bit.
33252 (ipa_tm_transform_transaction): Set GTMA_HAS_NO_INSTRUMENTATION.
33253 * gimple.h (GTMA_HAS_NO_INSTRUMENTATION): Define.
33254 * gimple-pretty-print.c (dump_gimple_transaction): Handle
33255 GTMA_HAS_NO_INSTRUMENTATION.
33257 2013-03-08 Jakub Jelinek <jakub@redhat.com>
33259 * config/gnu-user.h (LIBTSAN_EARLY_SPEC): Don't link against
33262 2013-03-08 Marek Polacek <polacek@redhat.com>
33263 Jakub Jelinek <jakub@redhat.com>
33265 PR tree-optimization/56478
33266 * predict.c (is_comparison_with_loop_invariant_p): Change the
33267 type of loop_step to tree.
33268 (predict_loops): Adjust.
33269 (predict_iv_comparison): Perform the computations on double_ints.
33271 2013-03-08 Richard Biener <rguenther@suse.de>
33273 PR tree-optimization/56570
33274 * tree-cfg.c (verify_expr_location_1): Verify locations for
33276 * tree-sra.c (create_access_replacement): Strip locations
33277 from DECL_DEBUG_EXPRs.
33279 2013-03-08 Richard Biener <rguenther@suse.de>
33281 * tree-inline.c (expand_call_inline): Do not associate
33282 a BLOCK with the location in BLOCK_SOURCE_LOCATION.
33283 * tree-cfg.c (verify_location): Verify BLOCK_SOURCE_LOCATION.
33285 2013-03-08 Richard Biener <rguenther@suse.de>
33287 * tree-ssa-ter.c (is_replaceable_p): Do not TER across location
33288 or block changes with -Og. Fix for location / block encoding
33289 changes and PHI arguments with locations.
33291 2013-03-07 Steven Bosscher <steven@gcc.gnu.org>
33293 * bitmap.c (struct bitmap_descriptor_d): Use unsigned HOST_WIDEST_INT
33295 (struct output_info): Likewise.
33296 (register_overhead): Remove bad gcc_assert.
33297 (bitmap_find_bit): If there is only a single bitmap element, do not
33298 count a miss as a search.
33299 (print_statistics): Update for counter type changes.
33300 (dump_bitmap_statistics): Likewise. Print headers such that they
33301 are properly lined up with the printed counters.
33303 2013-03-07 Jakub Jelinek <jakub@redhat.com>
33305 PR tree-optimization/56559
33306 * tree-ssa-reassoc.c (zero_one_operation): When looking at rhs2,
33307 check that it has only a single use.
33309 2013-03-07 Richard Biener <rguenther@suse.de>
33311 * doc/invoke.texi (fwhole-program): Discourage use in combination
33314 2013-03-06 Jakub Jelinek <jakub@redhat.com>
33316 * config/arm/t-arm (TM_H, OPTIONS_H_EXTRA): Add arm-cores.def.
33318 PR tree-optimization/56539
33319 * tree-tailcall.c (adjust_return_value_with_ops): Use GSI_SAME_STMT
33320 instead of GSI_CONTINUE_LINKING as last argument to
33321 force_gimple_operand_gsi. Adjust function comment.
33323 * config/aarch64/t-aarch64 (TM_H, OPTIONS_H_EXTRA): Add
33326 PR middle-end/56548
33327 * expr.c (expand_cond_expr_using_cmove): When expanding cmove in
33328 promoted mode, convert the result back to the original mode.
33330 2013-03-06 Richard Biener <rguenther@suse.de>
33332 PR middle-end/56294
33333 * tree-into-ssa.c (insert_phi_nodes_for): Add dumping.
33334 (insert_updated_phi_nodes_compare_uids): New function.
33335 (update_ssa): Sort symbols_to_rename after UID before
33336 traversing it to insert PHI nodes.
33338 2013-03-06 Richard Biener <rguenther@suse.de>
33340 PR middle-end/50494
33341 * tree-vect-data-refs.c (vect_can_force_dr_alignment_p):
33342 Do not adjust alignment of DECL_IN_CONSTANT_POOL decls.
33345 2013-02-13 Richard Biener <rguenther@suse.de>
33348 * varasm.c (output_constant_def_1): Get the decl representing
33349 the constant as argument.
33350 (output_constant_def): Wrap output_constant_def_1.
33351 (make_decl_rtl): Use output_constant_def_1 with the decl
33352 representing the constant.
33353 (build_constant_desc): Optionally re-use a decl already
33354 representing the constant.
33355 (tree_output_constant_def): Adjust.
33357 2013-03-06 Joey Ye <joey.ye@arm.com>
33360 * gcc.c (convert_white_space): New function.
33361 (main): Handles white space in function name.
33363 2013-03-06 Oleg Endo <olegendo@gcc.gnu.org>
33366 * config/sh/sh.c (sh_option_override): Check for TARGET_DYNSHIFT
33367 instead of TARGET_SH2 for call-table case. Do not set sh_div_strategy
33368 to SH_DIV_CALL_TABLE for TARGET_SH2.
33369 * config.gcc (sh_multilibs): Add m2 and m2a to sh*-*-linux* multilib
33371 * doc/invoke.texi (SH options): Document mdiv= call-div1, call-fp,
33372 call-table options.
33374 2013-03-05 Sterling Augustine <saugustine@google.com>
33375 Cary Coutant <ccoutant@google.com>
33378 * dwarf2out.c (resolve_addr): Don't call
33379 remove_loc_list_addr_table_entries a second time for the same
33382 2013-03-05 Jakub Jelinek <jakub@redhat.com>
33385 * cfgexpand.c (expand_debug_parm_decl): Call copy_rtx on incoming.
33386 (avoid_complex_debug_insns): New function.
33387 (expand_debug_locations): Call it.
33389 PR rtl-optimization/56484
33390 * ifcvt.c (noce_process_if_block): If else_bb is NULL, avoid extending
33391 lifetimes of hard registers on small register class machines.
33393 2013-03-05 David Holsgrove <david.holsgrove@xilinx.com>
33395 * config/microblaze/microblaze-protos.h: Rename
33396 microblaze_is_interrupt_handler to microblaze_is_interrupt_variant.
33397 * config/microblaze/microblaze.c (microblaze_attribute_table): Add
33399 (microblaze_fast_interrupt_function_p): New function.
33400 (microblaze_is_interrupt_handler): Rename to
33401 microblaze_is_interrupt_variant and add fast_interrupt check.
33402 (microblaze_must_save_register): Use microblaze_is_interrupt_variant.
33403 (save_restore_insns): Likewise.
33404 (compute_frame_size): Likewise.
33405 (microblaze_function_prologue): Add FAST_INTERRUPT_NAME.
33406 (microblaze_globalize_label): Likewise.
33407 * config/microblaze/microblaze.h: Define FAST_INTERRUPT_NAME.
33408 * config/microblaze/microblaze.md: Use wrapper
33409 microblaze_is_interrupt_variant.
33411 2013-03-05 Kai Tietz <ktietz@redhat.com>
33413 * sdbout.c (sdbout_one_type): Switch to current function's section
33414 supporting cold/hot.
33416 2013-03-05 David Holsgrove <david.holsgrove@xilinx.com>
33418 * doc/invoke.texi (MicroBlaze): Add -mbig-endian, -mlittle-endian,
33421 2013-03-05 Jakub Jelinek <jakub@redhat.com>
33423 PR middle-end/56461
33424 * ggc-common.c (gt_pch_save): For ENABLE_VALGRIND_CHECKING,
33425 if VALGRIND_GET_VBITS is defined, temporarily make object
33426 memory all defined, and restore previous valgrind addressability
33427 and definability afterwards. Free this_object at the end.
33429 PR middle-end/56461
33430 * lra.c (lra): Call lra_clear_live_ranges if live_p,
33431 right before calling lra_create_live_ranges, also call it
33432 when clearing live_p. Only call lra_clear_live_ranges
33433 at the end if live_p.
33435 PR middle-end/56461
33436 * sched-deps.c (delete_dep_node): Free DEP_REPLACE.
33438 2013-03-05 Richard Biener <rguenther@suse.de>
33440 PR tree-optimization/56521
33441 * tree-ssa-sccvn.c (set_value_id_for_result): Always initialize
33444 2013-03-05 Steven Bosscher <steven@gcc.gnu.org>
33447 * except.h (remove_unreachable_eh_regions): New prototype.
33448 * except.c (remove_eh_handler_splicer): New function, split out
33449 of remove_eh_handler.
33450 (remove_eh_handler): Use remove_eh_handler_splicer. Add comment
33451 warning about running it on many EH regions one at a time.
33452 (remove_unreachable_eh_regions_worker): New function, walk the
33453 EH tree in depth-first order and remove non-marked regions.
33454 (remove_unreachable_eh_regions): New function.
33455 * tree-eh.c (mark_reachable_handlers): New function, split out
33456 from remove_unreachable_handlers.
33457 (remove_unreachable_handlers): Use mark_reachable_handlers and
33458 remove_unreachable_eh_regions.
33459 (remove_unreachable_handlers_no_lp): Use mark_reachable_handlers
33460 and remove_unreachable_eh_regions.
33462 2013-03-05 Richard Biener <rguenther@suse.de>
33464 PR middle-end/56525
33465 * loop-init.c (fix_loop_structure): Remove loops in two stages,
33466 not freeing them until the end.
33468 2013-03-05 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
33470 * config/s390/s390.h: Define DWARF2_ASM_LINE_DEBUG_INFO.
33472 2013-03-05 Richard Biener <rguenther@suse.de>
33474 PR tree-optimization/56270
33475 * tree-vect-slp.c (vect_schedule_slp): Clear vectorized stmts
33476 of loads after scheduling an SLP instance.
33478 2013-03-05 Jakub Jelinek <jakub@redhat.com>
33480 * Makefile.in (dg_target_exps): Add aarch64.exp, epiphany.exp and
33482 (check_gcc_parallelize): Run guality.exp as a separate job from
33483 vect.exp with unsorted.exp and $(dg_target_exps) separately from
33484 struct-layout-1.exp with stackalign.exp.
33486 * alias.c (init_alias_analysis): Clear reg_known_equiv_p bitmap.
33488 PR middle-end/56461
33489 * tree-vect-slp.c (vect_supported_load_permutation_p): Free
33490 load_index sbitmap even if some bit in it isn't set.
33492 PR middle-end/56461
33493 * tree-ssa-loop-niter.c (bb_queue): Remove typedef.
33494 (discover_iteration_bound_by_body_walk): Change queues to
33495 vec<vec<basic_block> > and queue to vec<basic_block>. Fix up
33496 spelling in comment. Call safe_push on queues[bound_index] directly.
33497 Release queues[queue_index] in every iteration unconditionally.
33498 Release bounds vector.
33500 PR middle-end/56461
33501 * tree-vect-stmts.c (free_stmt_vec_info_vec): Call
33502 free_stmt_vec_info on any left-over stmt_vec_info in the vector.
33503 * tree-vect-loop.c (vect_create_epilog_for_reduction): Release
33506 2013-03-05 Richard Biener <rguenther@suse.de>
33509 * tree-inline.c (remap_blocks_to_null): New function.
33510 (expand_call_inline): When expanding a call stmt without
33511 an associated block inline remap all callee blocks to NULL.
33513 2013-03-05 Jakub Jelinek <jakub@redhat.com>
33515 PR rtl-optimization/56494
33516 * simplify-rtx.c (simplify_truncation): If C is narrower than A,
33517 optimize (truncate:A (subreg:B (truncate:C X) 0)) into
33518 (subreg:A (truncate:C X) 0) instead of (truncate:A X).
33520 PR middle-end/56461
33521 * sel-sched-ir.c (free_sched_pools): Release
33522 succs_info_pool.stack[succs_info_pool.max_top] vectors too
33523 if succs_info_pool.max_top isn't -1.
33526 * opts.c (opts_obstack, opts_concat): Moved to...
33527 * opts-common.c (opts_obstack, opts_concat): ... here.
33529 2013-03-04 Jakub Jelinek <jakub@redhat.com>
33531 PR middle-end/56461
33532 * diagnostic.c (diagnostic_append_note): Save and restore old prefix.
33534 2013-03-04 Martin Jambor <mjambor@suse.cz>
33536 * tree-dfa.c (get_or_create_ssa_default_def): Use parameter fn in
33537 all appropriate places.
33539 2013-01-04 Eric Botcazou <ebotcazou@adacore.com>
33541 PR tree-optimization/56424
33542 * ipa-split.c (split_function): Do not set the RSO flag if result is
33543 not by reference and its type is a register type.
33545 2013-03-04 David Holsgrove <david.holsgrove@xilinx.com>
33547 * config/microblaze/microblaze.c (microblaze_valid_pic_const): New
33548 (microblaze_legitimate_pic_operand): Likewise
33549 * config/microblaze/microblaze.h (LEGITIMATE_PIC_OPERAND_P): calls
33550 new function microblaze_legitimate_pic_operand
33551 * config/microblaze/microblaze-protos.h
33552 (microblaze_legitimate_pic_operand): Declare.
33554 2013-03-04 Edgar E. Iglesias <edgar.iglesias@gmail.com>
33556 * config/microblaze/predicates.md (call_insn_simple_operand):
33557 New predicate for supported rtx code types.
33558 * config/microblaze/microblaze.md (call_internal1): Use
33559 call_insn_simple_operand predicate.
33561 2013-03-04 Jakub Jelinek <jakub@redhat.com>
33563 PR middle-end/56461
33564 * tree-loop-distribution.c (ldist_gen): Call partition_free after each
33565 partitions.ordered_remove.
33567 PR middle-end/56461
33568 * tree-vect-stmts.c (vectorizable_conversion): Don't call
33569 vec_oprnds0.create (1) for modifier == NONE.
33571 PR middle-end/56461
33572 * tree-vect-stmts.c (vectorizable_shift): Don't call create methods
33573 on vec_oprnds0 or vec_oprnds1 before loop, only call it on
33574 vec_oprnds1 right before pushing anything to it for
33577 PR middle-end/56461
33578 * tree-vect-loop.c (destroy_loop_vec_info): For !clean_stmts, just
33579 set nbbs to 0 instead of having separate code path.
33580 (vect_analyze_loop_form): Call destroy_loop_vec_info with true
33581 instead of false as last argument if returning NULL.
33583 2013-03-03 Sandra Loosemore <sandra@codesourcery.com>
33585 * target.def (TARGET_OPTION_VALID_ATTRIBUTE_P): Update comments;
33586 the attribute is now called "target" instead of "option".
33587 (TARGET_OPTION_PRAGMA_PARSE): Likewise, for the pragma.
33588 * doc/tm.texi.in (Target Attributes): Likewise document the correct
33589 attribute/pragma name for TARGET_OPTION_VALID_P and
33590 TARGET_OPTION_PRAGMA_PARSE. Also copy-edit and correct markup.
33591 * doc/tm.texi: Regenerated.
33593 2013-03-02 David Holsgrove <david.holsgrove@xilinx.com>
33595 * config/microblaze/microblaze.c:
33596 Check mcpu, pcmp requirement and set TARGET_REORDER to 0 if not met.
33597 * config/microblaze/microblaze.h: Add -mxl-reorder to
33599 * config/microblaze/microblaze.md: New bswapsi2 and bswaphi2.
33600 instructions emitted if TARGET_REORDER.
33601 * config/microblaze/microblaze.opt: New option -mxl-reorder set to 1
33602 or 0 for -m/-mno case, but initialises as 2 to detect default use case
33605 2013-03-01 Xinliang David Li <davidxl@google.com>
33607 * tree-ssa-uninit.c (compute_control_dep_chain): Limit post-dom
33610 2013-03-01 Jakub Jelinek <jakub@redhat.com>
33612 PR middle-end/56461
33613 * tree-ssa-loop-ivcanon.c (tree_estimate_loop_size): Release path
33614 vector even when returning true. Fix up function comment formatting.
33616 PR middle-end/56461
33617 * ira-build.c (ira_loop_nodes_count): New variable.
33618 (create_loop_tree_nodes): Initialize it.
33619 (finish_loop_tree_nodes): Use it instead of looking at current_loops.
33621 PR middle-end/56461
33622 * tree-vect-data-refs.c (vect_permute_store_chain): Avoid using copy
33623 method on dr_chain and result_chain.
33624 * tree-vect-stmts.c (vectorizable_store): Only call
33625 result_chain.create if j == 0.
33627 PR middle-end/56461
33628 * tree-vect-stmts.c (vect_create_vectorized_promotion_stmts): Call
33629 vec_oprnds0->release (); rather than vec_oprnds0->truncate (0)
33630 before overwriting it.
33632 2013-03-01 Tobias Burnus <burnus@net-b.de>
33634 * doc/extended.texi (C Extensions): Change order in @menu
33636 (Other MIPS Built-in Functions): Move last MIPS entry before
33637 "picoChip Built-in Functions".
33638 (SH Built-in Functions): Move after RX Built-in Functions.
33639 * doc/gcc.texi (Introduction): Change order in @menu
33641 * doc/md.texi (Constraints): Ditto.
33642 * gty.texi (Type Information): Ditto.
33643 (User-provided marking routines for template types): Make
33645 * doc/invoke.texi (AArch64 Options): Move before
33646 "Adapteva Epiphany Options".
33648 2013-02-28 Konstantin Serebryany <konstantin.s.serebryany@gmail.com>
33649 Jakub Jelinek <jakub@redhat.com>
33652 * asan.c (gate_asan): Lookup no_sanitize_address instead of
33653 no_address_safety_analysis attribute.
33654 * doc/extend.texi (no_address_safety_attribute): Rename to
33655 no_sanitize_address attribute, mention no_address_safety_analysis
33656 attribute as deprecated alias.
33658 2013-02-28 Jakub Jelinek <jakub@redhat.com>
33660 PR middle-end/56461
33661 * tree-vectorizer.h (vect_get_slp_defs): Change 3rd argument
33662 type to vec<vec<tree> > *.
33663 * tree-vect-slp.c (vect_get_slp_defs): Likewise. Change vec_defs
33664 to be vec<tree> instead of vec<tree> *, set vec_defs
33665 to vNULL and call vec_defs.create (number_of_vects), adjust other
33667 * tree-vect-stmts.c (vect_get_vec_defs, vectorizable_call,
33668 vectorizable_condition): Adjust vect_get_slp_defs callers.
33670 2013-02-28 James Greenhalgh <james.greenhalgh@arm.com>
33672 * config/aarch64/aarch64.c
33673 (aarch64_float_const_representable): Remove unused variable.
33675 2013-02-28 James Greenhalgh <james.greenhalgh@arm.com>
33677 * config/aarch64/aarch64.c (aarch64_mangle_type): Make static.
33679 2013-02-28 James Greenhalgh <james.greenhalgh@arm.com>
33681 * config/aarch64/aarch64-builtins.c
33682 (aarch64_init_simd_builtins): Make static.
33684 2013-02-28 James Greenhalgh <james.greenhalgh@arm.com>
33686 * config/aarch64/aarch64.c
33687 (aarch64_simd_make_constant): Make static.
33689 2013-02-28 Martin Jambor <mjambor@suse.cz>
33691 * tree-sra.c (load_assign_lhs_subreplacements): Do not put replacements
33692 with no initialization to the RHS of debug statements.
33694 2013-02-28 Martin Jambor <mjambor@suse.cz>
33696 PR tree-optimization/56294
33697 * tree-sra.c (analyze_access_subtree): Create replacement declarations.
33699 (get_access_replacement): Do not call create_access_replacement.
33700 Assert a replacement exists.
33701 (get_repl_default_def_ssa_name): Create the replacement declaration
33704 2013-02-28 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
33706 * config/arm/arm.c (arm_output_mi_thunk): Call final_start_function and
33707 final_end_function.
33709 2013-02-28 Marek Polacek <polacek@redhat.com>
33711 PR rtl-optimization/56466
33712 * loop-unroll.c (unroll_and_peel_loops): Call fix_loop_structure
33713 if we're changing a loop.
33714 (peel_loops_completely): Likewise.
33716 2013-02-28 Paolo Carlini <paolo.carlini@oracle.com>
33719 * doc/invoke.texi ([-Wctor-dtor-privacy]): Complete.
33721 2013-02-28 Georg-Johann Lay <avr@gjlay.de>
33724 * config/avr/avr.c (avr_init_builtins): Use 'n' instead of empty
33725 macro parameters with: FX_FTYPE_FX, FX_FTYPE_FX_INT, INT_FTYPE_FX,
33726 INTX_FTYPE_FX, FX_FTYPE_INTX.
33727 * config/avr/builtins.def: Adjust respective DEF_BUILTIN.
33729 2013-02-28 Georg-Johann Lay <avr@gjlay.de>
33731 * avr/avr-mcus.def (ata5272, ata5505, attiny1634, ata6285)
33732 (ata6286, atmega8a, atmega48pa, ata5790, ata5790n, ata5795)
33733 (atmega164pa, atmega165pa, atmega168pa, atmega16hva, atmega16hvb)
33734 (atmega16hvbrevb, atmega16m1, atmega16u4, atmega26hvg, atmega32a)
33735 (atmega32a, atmega3250pa, atmega3290pa, atmega32c1, atmega32m1)
33736 (atmega32u4, atmega32u6, atmega64a, atmega6490a, atmega6490p)
33737 (atmega64c1, atmega64m1, atmega64rfa2, atmega64rfr2, atmega32hvb)
33738 (atmega32hvbrevb, atmega16hva2, atmega48hvf, at90pwm161)
33739 (atmega128a, atmega1284, atmxt112sl, atmxt224, atmxt224e)
33740 (atmxt336s, atxmega16a4u, atxmega16c4, atxmega32a4u, atxmega32c4)
33741 (atxmega32e5, atxmega64a3u, atxmega64a4u, atxmega64b1, atxmega64b3)
33742 (atxmega64c3, atxmega64d4, atxmega128a3u, atxmega128b1)
33743 (atxmega128b3, atxmega128c3, atxmega128d4, atmxt540s, atmxt540sreva)
33744 (atxmega192a3u, atxmega192c3, atxmega256a3u, atxmega256c3)
33745 (atxmega384c3, atxmega384d3, atxmega128a4u): New AVR_MCU.
33746 (avrxmega6): Increase max flash segments from 5 to 6.
33747 * config/avr/t-multilib: Regenerate.
33748 * config/avr/avr-tables.opt: Regenerate.
33749 * doc/avr-mmcu.texi: Regenerate.
33751 2013-02-28 Georg-Johann Lay <avr@gjlay.de>
33753 * config/avr/avr.h (device_to_arch): Rename to device_to_ld.
33754 (avr_device_to_arch): Rename to avr_device_to_ld.
33755 (avr_device_to_as): New prototype.
33756 (EXTRA_SPEC_FUNCTIONS): Add device_to_as.
33757 (ASM_SPEC): Use device_to_as to get -mmcu= and -mno-skip-bug=.
33758 * config/avr/driver-avr.c (avr_device_to_as): New.
33759 (avr_device_to_arch): Rename to avr_device_to_ld.
33761 2013-02-27 Jakub Jelinek <jakub@redhat.com>
33763 PR middle-end/56461
33764 * tree-vect-data-refs.c (vect_permute_load_chain): Avoid using copy
33765 method on dr_chain and result_chain.
33767 PR middle-end/56461
33768 * tree-ssa-loop-niter.c (maybe_lower_iteration_bound): Call
33769 pointer_set_destroy on not_executed_last_iteration.
33771 PR middle-end/56461
33772 * tree-vect-loop.c (vectorizable_reduction): Release vect_defs vector.
33774 PR middle-end/56461
33775 * ipa-pure-const.c (propagate): Use FOR_EACH_FUNCTION instead of
33776 FOR_EACH_DEFINED_FUNCTION when freeing state.
33778 PR middle-end/56461
33779 * df-scan.c (df_insn_delete): Use df_scan_free_mws_vec before
33781 (df_insn_rescan_debug_internal): Use df_scan_free_mws_vec before
33784 PR middle-end/56461
33785 * ipa-cp.c (decide_whether_version_node): Call vec_free on
33786 known_aggs[i].items and release known_aggs vector.
33788 PR middle-end/56461
33789 * ipa-reference.c (propagate): Free node_info even for alias nodes.
33791 2013-02-27 Edgar E. Iglesias <edgar.iglesias@gmail.com>
33793 * config/microblaze/microblaze.c (microblaze_emit_compare):
33794 Use xor for EQ/NE comparisions.
33795 * config/microblaze/microblaze.md (cstoresf4): Add constraints
33796 (cbranchsf4): Adjust operator to comparison_operator.
33798 2013-02-27 Jakub Jelinek <jakub@redhat.com>
33800 PR middle-end/56461
33801 * tree-flow.h (edge_var_map_vector): Change into va_heap, vl_embed
33803 * tree-ssa.c (redirect_edge_var_map_add): Use vec_safe_reserve and
33804 vec_safe_push, always update *slot.
33805 (redirect_edge_var_map_clear): Use vec_free.
33806 (redirect_edge_var_map_dup): Use vec_safe_copy and vec_safe_reserve.
33807 (free_var_map_entry): Use vec_free.
33808 * tree-cfgcleanup.c (remove_forwarder_block_with_phi): Use
33809 FOR_EACH_VEC_SAFE_ELT instead of FOR_EACH_VEC_ELT.
33811 2013-02-27 Andrey Belevantsev <abel@ispras.ru>
33813 PR middle-end/45472
33814 * sel-sched-ir.c (merge_expr): Also change vinsn of merged expr
33815 when the may_trap_p bit of the exprs being merged differs.
33816 Reorder tests for speculativeness in the logical and operator.
33818 2013-02-27 Jakub Jelinek <jakub@redhat.com>
33820 * incpath.c (add_standard_paths): Use reconcat instead of concat
33821 where appropriate and avoid leaking memory.
33823 * opts.h: Include obstack.h.
33824 (opts_concat): New prototype.
33825 (opts_obstack): New declaration.
33826 * opts.c (opts_concat): New function.
33827 (opts_obstack): New variable.
33828 (init_options_struct): Call gcc_init_obstack on opts_obstack.
33829 (finish_options): Use opts_concat instead of concat
33830 and XOBNEWVEC instead of XNEWVEC.
33831 * opts-common.c (generate_canonical_option, decode_cmdline_option,
33832 generate_option): Likewise.
33833 * Makefile.in (OPTS_H): Depend on $(OBSTACK_H).
33834 * lto-wrapper.c (main): Call gcc_init_obstack on opts_obstack.
33837 * stmt.c (expand_switch_as_decision_tree_p): If flag_pic
33838 and ASM_OUTPUT_ADDR_DIFF_ELT isn't defined, return true.
33840 2013-02-26 Jakub Jelinek <jakub@redhat.com>
33842 PR middle-end/56461
33843 * lra-spills.c (lra_spill): Free spill_hard_reg at the end.
33845 2013-02-26 Joern Rennecke <joern.rennecke@embecosm.com>
33847 * config/arm/arm.c (const_ok_for_dimode_op): Back out last change.
33848 (arm_block_move_unaligned_straight): Likewise.
33849 (arm_adjust_block_mem): Likewise.
33851 2013-02-26 Joern Rennecke <joern.rennecke@embecosm.com>
33854 * config/lm32/lm32.c (gen_int_relational): Remove unused variables
33855 temp, cond and label.
33856 * config/lm32/lm32.md (ashlsi3): Remove unused variable one.
33859 * config/c6x/c6x.c (dbx_register_map): Change to unsigned.
33860 * config/c6x/c6x.h (dbx_register_map): Update declaration.
33863 * config/cr16/cr16-protos.h: Move end of RTX_CODE guard below end
33864 of prologue/epilogue functions.
33867 * config/tilegx/tilegx.c (tilegx_expand_prologue):
33868 Remove unused variable cfa_offset.
33869 * config/tilepro/tilepro.c (tilepro_expand_prologue): Likewise.
33872 * config/mn10300/mn10300.c (mn10300_expand_epilogue): Avoid offset
33873 type promotion to unsigned.
33876 * config/arm/arm.c (const_ok_for_dimode_op): Make code consistent
33877 for HOST_WIDE_INT of 32 bit / same size as int.
33878 (arm_block_move_unaligned_straight): Likewise.
33879 (arm_adjust_block_mem): Likewise.
33882 * config/mep/t-mep (mep-pragma.o): Use ALL_COMPILERFLAGS instead of
33885 2013-02-26 Marek Polacek <polacek@redhat.com>
33887 PR tree-optimization/56426
33888 * tree-ssa-loop.c (tree_ssa_loop_init): Always call scev_initialize.
33890 2013-02-26 Richard Biener <rguenther@suse.de>
33893 * config/mn10300/mn10300.c (mn10300_scan_for_setlb_lcc): Remove
33894 unused variable loops.
33896 2013-02-26 Jakub Jelinek <jakub@redhat.com>
33898 PR tree-optimization/56448
33899 * fold-const.c (operand_equal_p) <case tcc_reference>: Don't look at
33900 TREE_SIDE_EFFECTS if flags contain OEP_CONSTANT_ADDRESS_OF.
33901 Clear OEP_CONSTANT_ADDRESS_OF from flags before recursing on second or
33902 later operands of the references, or even first operand for
33903 INDIRECT_REF, TARGET_MEM_REF or MEM_REF.
33905 PR tree-optimization/56443
33906 * tree-vect-stmts.c (get_vectype_for_scalar_type_and_size): For
33907 overaligned types, pass TYPE_UNSIGNED (scalar_type) as second argument
33908 to type_for_mode langhook.
33910 2013-02-25 Matt Turner <mattst88@gmail.com>
33912 * doc/invoke.texi: Document r4700.
33914 2013-02-25 Richard Biener <rguenther@suse.de>
33916 PR tree-optimization/56175
33917 * tree-ssa-forwprop.c (hoist_conversion_for_bitop_p): New predicate,
33919 (simplify_bitwise_binary): ... here. Also guard the conversion
33920 of (type) X op CST to (type) (X op ((type-x) CST)) with it.
33922 2013-02-25 Catherine Moore <clm@codesourcery.com>
33925 2013-02-24 Catherine Moore <clm@codesourcery.com>
33926 Maciej W. Rozycki <macro@codesourcery.com>
33927 Tom de Vries <tom@codesourcery.com>
33928 Nathan Sidwell <nathan@codesourcery.com>
33929 Iain Sandoe <iain@codesourcery.com>
33930 Nathan Froyd <froydnj@codesourcery.com>
33931 Chao-ying Fu <fu@mips.com>
33933 * doc/extend.texi: (micromips, nomicromips, nocompression):
33934 Document new function attributes.
33935 * doc/invoke.texi (minterlink-compressed, mmicromips,
33936 m14k, m14ke, m14kec): Document new options.
33937 (minterlink-mips16): Update documentation.
33938 * doc/md.texi (ZC, ZD): Document new constraints.
33939 * configure.ac (gcc_cv_as_micromips): Check if linker
33940 supports the .set micromips directive.
33941 * configure: Regenerate.
33942 * config.in: Regenerate.
33943 * config/mips/mips-tables.opt: Regenerate.
33944 * config/mips/micromips.md: New file.
33945 * constraints.md (ZC, AD): New constraints.
33946 * config/mips/predicates.md (movep_src_register): New predicate.
33947 (movep_src_operand): New predicate.
33948 (non_volatile_mem_operand): New predicate.
33949 * config/mips/mips.md (multimem): New type.
33950 (length): Differentiate between 17-bit and 18-bit branch offsets.
33951 (MOVEP1, MOVEP2): New mode iterator.
33952 (mov_<load>l): Use ZC constraint.
33953 (mov_<load>r): Likewise.
33954 (mov_<store>l): Likewise.
33955 (mov_<store>r): Likewise.
33956 (*branch_equality<mode>_inverted): Add microMIPS support.
33957 (*branch_equality<mode>): Likewise.
33958 (*jump_absolute): Likewise.
33959 (indirect_jump_<mode>): Likewise.
33960 (tablejump_<mode>): Likewise.
33961 (<optab>_internal): Likewise.
33962 (sibcall_internal): Likewise.
33963 (sibcall_value_internal): Likewise.
33964 (prefetch): Use constraint ZD.
33965 * config/mips/mips.opt (minterlink-compressed): New option.
33966 (minterlink-mips16): Now an alias for minterlink-compressed.
33967 (mmicromips): New option.
33968 * config/mips/sync.md (sync_compare_and_swap<mode>): Use ZR constraint.
33969 (compare_and_swap_12): Likewise.
33970 (sync_add<mode>): Likewise.
33971 (sync_<optab>_12): Likewise.
33972 (sync_old_<optab>_12): Likewise.
33973 (sync_new_<optab>_12): Likewise.
33974 (sync_nand_12): Likewise.
33975 (sync_old_nand_12): Likewise.
33976 (sync_new_nand_12): Likewise.
33977 (sync_sub<mode>): Likewise.
33978 (sync_old_add<mode>): Likewise.
33979 (sync_old_sub<mode>): Likewise.
33980 (sync_new_add<mode>): Likewise.
33981 (sync_new_sub<mode>): Likewise.
33982 (sync_<optab><mode>): Likewise.
33983 (sync_old_<optab><mode>): Likewise.
33984 (sync_new_<optab><mode>): Likewise.
33985 (sync_nand<mode>): Likewise.
33986 (sync_old_nand<mode>): Likewise.
33987 (sync_new_nand<mode>): Likewise.
33988 (sync_lock_test_and_set<mode>): Likewise.
33989 (test_and_set_12): Likewise.
33990 (atomic_compare_and_swap<mode>): Likewise.
33991 (atomic_exchange<mode>_llsc): Likewise.
33992 (atomic_fetch_add<mode>_llsc): Likewise.
33993 * config/mips/mips-cpus.def (m14kc, m14k): New processors.
33994 * config/mips/mips-protos.h (umips_output_save_restore): New prototype.
33995 (umips_save_restore_pattern_p): Likewise.
33996 (umips_load_store_pair_p): Likewise.
33997 (umips_output_load_store_pair): Likewise.
33998 (umips_movep_target_p): Likewise.
33999 (umips_12bit_offset_address_p): Likewise.
34000 * config/mips/mips.c (MIPS_MAX_FIRST_STEP): Update for microMIPS.
34001 (mips_base_mips16): Rename this...
34002 (mips_base_compression_flags): ...to this. Update all uses.
34003 (mips_attribute_table): Add micromips, nomicromips and nocompression.
34004 (mips_mips16_decl_p): Delete.
34005 (mips_nomips16_decl_p): Delete.
34006 (mips_get_compress_on_flags): New function.
34007 (mips_get_compress_off_flags): New function.
34008 (mips_get_compress_mode): New function.
34009 (mips_get_compress_on_name): New function.
34010 (mips_get_compress_off_name): New function.
34011 (mips_insert_attributes): Support multiple compression types.
34012 (mips_merge_decl_attributes): Likewise.
34013 (umips_12bit_offset_address_p): New function.
34014 (mips_start_function_definition): Emit .set micromips directive.
34015 (mips_call_may_need_jalx_p): New function.
34016 (mips_function_ok_for_sibcall): Add microMIPS support.
34017 (mips_print_operand_punctuation): Support short delay slots and
34019 (umips_swm_mask, umips_swm_encoding): New.
34020 (umips_build_save_restore): New function.
34021 (mips_for_each_saved_gpr_and_fpr): Add microMIPS support.
34022 (was_mips16_p): Remove.
34023 (old_compression_mode): New.
34024 (mips_set_compression_mode): New function.
34025 (mips_set_current_function): Add microMIPS support.
34026 (mips_option_override): Likewise.
34027 (umips_save_restore_pattern_p): New function.
34028 (umips_output_save_restore): New function.
34029 (umips_load_store_pair_p_1): New function.
34030 (umips_load_store_pair_p): New function.
34031 (umips_output_load_store_pair_1): New function.
34032 (umips_output_load_store_pair): New function.
34033 (umips_movep_target_p) New function.
34034 (mips_prepare_pch_save): Add microMIPS support.
34035 * config/mips/mips.h (TARGET_COMPRESSION): New.
34036 (TARGET_CPU_CPP_BUILTINS): Update macro
34037 to use new compression flags and to support microMIPS.
34038 (MIPS_ISA_LEVEL_SPEC): Add m14k processors.
34039 (MIPS_ARCH_FLOAT_SPEC): Likewise.
34040 (ISA_HAS_LWXS): Include TARGET_MICROMIPS.
34041 (ISA_HAS_LOAD_DELAY): Exclude TARGET_MICROMIPS.
34042 (ASM_SPEC): Support mmicromips and mno-micromips.
34043 (M16STORE_REG_P): New macro.
34044 (MIPS_CALL): Support TARGET_MICROMIPS.
34045 (MICROMIPS_J): New macro.
34046 (mips_base_mips16): Rename this...
34047 (mips_base_compression_flags): ...to this.
34048 (UMIPS_12BIT_OFFSET_P): New macro.
34049 * config/mips/t-sde: (MULTILIB_OPTIONS): Add microMIPS.
34050 (MULTILIB_DIRNAMES): Likewise.
34052 2013-02-25 Tom de Vries <tom@codesourcery.com>
34054 PR rtl-optimization/56131
34055 * insn-notes.def (INSN_NOTE_BASIC_BLOCK): Update comment.
34056 * cfgrtl.c (delete_insn): Don't reorder NOTE_INSN_DELETED_LABEL and
34057 NOTE_INSN_BASIC_BLOCK if BLOCK_FOR_INSN == NULL.
34059 2013-02-25 Tobias Burnus <burnus@net-b.de>
34061 * doc/invoke.texi (-fsanitize=): Move from optimization
34062 to debugging options.
34064 2013-02-25 Andrey Belevantsev <abel@ispras.ru>
34066 * sched-deps.c (sched_analyze_insn): Fix typo in comment.
34068 2013-02-25 Andrey Belevantsev <abel@ispras.ru>
34069 Alexander Monakov <amonakov@ispras.ru>
34071 PR middle-end/56077
34072 * sched-deps.c (sched_analyze_insn): When reg_pending_barrier,
34073 flush pending lists also on non-jumps. Adjust comment.
34075 2013-02-24 Catherine Moore <clm@codesourcery.com>
34076 Maciej W. Rozycki <macro@codesourcery.com>
34077 Tom de Vries <tom@codesourcery.com>
34078 Nathan Sidwell <nathan@codesourcery.com>
34079 Iain Sandoe <iain@codesourcery.com>
34080 Nathan Froyd <froydnj@codesourcery.com>
34081 Chao-ying Fu <fu@mips.com>
34083 * doc/extend.texi: (micromips, nomicromips, nocompression):
34084 Document new function attributes.
34085 * doc/invoke.texi (minterlink-compressed, mmicromips,
34086 m14k, m14ke, m14kec): Document new options.
34087 (minterlink-mips16): Update documentation.
34088 * doc/md.texi (ZC, ZD): Document new constraints.
34089 * configure.ac (gcc_cv_as_micromips): Check if linker
34090 supports the .set micromips directive.
34091 * configure: Regenerate.
34092 * config.in: Regenerate.
34093 * config/mips/mips-tables.opt: Regenerate.
34094 * config/mips/micromips.md: New file.
34095 * constraints.md (ZC, AD): New constraints.
34096 * config/mips/predicates.md (movep_src_register): New predicate.
34097 (movep_src_operand): New predicate.
34098 (non_volatile_mem_operand): New predicate.
34099 * config/mips/mips.md (multimem): New type.
34100 (length): Differentiate between 17-bit and 18-bit branch offsets.
34101 (MOVEP1, MOVEP2): New mode iterator.
34102 (mov_<load>l): Use ZC constraint.
34103 (mov_<load>r): Likewise.
34104 (mov_<store>l): Likewise.
34105 (mov_<store>r): Likewise.
34106 (*branch_equality<mode>_inverted): Add microMIPS support.
34107 (*branch_equality<mode>): Likewise.
34108 (*jump_absolute): Likewise.
34109 (indirect_jump_<mode>): Likewise.
34110 (tablejump_<mode>): Likewise.
34111 (<optab>_internal): Likewise.
34112 (sibcall_internal): Likewise.
34113 (sibcall_value_internal): Likewise.
34114 (prefetch): Use constraint ZD.
34115 * config/mips/mips.opt (minterlink-compressed): New option.
34116 (minterlink-mips16): Now an alias for minterlink-compressed.
34117 (mmicromips): New option.
34118 * config/mips/sync.md (sync_compare_and_swap<mode>): Use ZR constraint.
34119 (compare_and_swap_12): Likewise.
34120 (sync_add<mode>): Likewise.
34121 (sync_<optab>_12): Likewise.
34122 (sync_old_<optab>_12): Likewise.
34123 (sync_new_<optab>_12): Likewise.
34124 (sync_nand_12): Likewise.
34125 (sync_old_nand_12): Likewise.
34126 (sync_new_nand_12): Likewise.
34127 (sync_sub<mode>): Likewise.
34128 (sync_old_add<mode>): Likewise.
34129 (sync_old_sub<mode>): Likewise.
34130 (sync_new_add<mode>): Likewise.
34131 (sync_new_sub<mode>): Likewise.
34132 (sync_<optab><mode>): Likewise.
34133 (sync_old_<optab><mode>): Likewise.
34134 (sync_new_<optab><mode>): Likewise.
34135 (sync_nand<mode>): Likewise.
34136 (sync_old_nand<mode>): Likewise.
34137 (sync_new_nand<mode>): Likewise.
34138 (sync_lock_test_and_set<mode>): Likewise.
34139 (test_and_set_12): Likewise.
34140 (atomic_compare_and_swap<mode>): Likewise.
34141 (atomic_exchange<mode>_llsc): Likewise.
34142 (atomic_fetch_add<mode>_llsc): Likewise.
34143 * config/mips/mips-cpus.def (m14kc, m14k): New processors.
34144 * config/mips/mips-protos.h (umips_output_save_restore): New prototype.
34145 (umips_save_restore_pattern_p): Likewise.
34146 (umips_load_store_pair_p): Likewise.
34147 (umips_output_load_store_pair): Likewise.
34148 (umips_movep_target_p): Likewise.
34149 (umips_12bit_offset_address_p): Likewise.
34150 * config/mips/mips.c (MIPS_MAX_FIRST_STEP): Update for microMIPS.
34151 (mips_base_mips16): Rename this...
34152 (mips_base_compression_flags): ...to this. Update all uses.
34153 (mips_attribute_table): Add micromips, nomicromips and nocompression.
34154 (mips_mips16_decl_p): Delete.
34155 (mips_nomips16_decl_p): Delete.
34156 (mips_get_compress_on_flags): New function.
34157 (mips_get_compress_off_flags): New function.
34158 (mips_get_compress_mode): New function.
34159 (mips_get_compress_on_name): New function.
34160 (mips_get_compress_off_name): New function.
34161 (mips_insert_attributes): Support multiple compression types.
34162 (mips_merge_decl_attributes): Likewise.
34163 (umips_12bit_offset_address_p): New function.
34164 (mips_start_function_definition): Emit .set micromips directive.
34165 (mips_call_may_need_jalx_p): New function.
34166 (mips_function_ok_for_sibcall): Add microMIPS support.
34167 (mips_print_operand_punctuation): Support short delay slots and
34169 (umips_swm_mask, umips_swm_encoding): New.
34170 (umips_build_save_restore): New function.
34171 (mips_for_each_saved_gpr_and_fpr): Add microMIPS support.
34172 (was_mips16_p): Remove.
34173 (old_compression_mode): New.
34174 (mips_set_compression_mode): New function.
34175 (mips_set_current_function): Add microMIPS support.
34176 (mips_option_override): Likewise.
34177 (umips_save_restore_pattern_p): New function.
34178 (umips_output_save_restore): New function.
34179 (umips_load_store_pair_p_1): New function.
34180 (umips_load_store_pair_p): New function.
34181 (umips_output_load_store_pair_1): New function.
34182 (umips_output_load_store_pair): New function.
34183 (umips_movep_target_p) New function.
34184 (mips_prepare_pch_save): Add microMIPS support.
34185 * config/mips/mips.h (TARGET_COMPRESSION): New.
34186 (TARGET_CPU_CPP_BUILTINS): Update macro
34187 to use new compression flags and to support microMIPS.
34188 (MIPS_ISA_LEVEL_SPEC): Add m14k processors.
34189 (MIPS_ARCH_FLOAT_SPEC): Likewise.
34190 (ISA_HAS_LWXS): Include TARGET_MICROMIPS.
34191 (ISA_HAS_LOAD_DELAY): Exclude TARGET_MICROMIPS.
34192 (ASM_SPEC): Support mmicromips and mno-micromips.
34193 (M16STORE_REG_P): New macro.
34194 (MIPS_CALL): Support TARGET_MICROMIPS.
34195 (MICROMIPS_J): New macro.
34196 (mips_base_mips16): Rename this...
34197 (mips_base_compression_flags): ...to this.
34198 (UMIPS_12BIT_OFFSET_P): New macro.
34199 * config/mips/t-sde: (MULTILIB_OPTIONS): Add microMIPS.
34200 (MULTILIB_DIRNAMES): Likewise.
34202 2013-02-24 Jakub Jelinek <jakub@redhat.com>
34205 * target-globals.c (save_target_globals): For init_reg_sets and
34206 target_reinit remporarily set this_fn_optabs to this_target_optabs.
34208 2013-02-22 James Greenhalgh <james.greenhalgh@arm.com>
34210 * config/aarch64/aarch64-simd-builtins.def: Add copyright header.
34211 * config/aarch64/t-aarch64
34212 (aarch64-builtins.o): Depend on aarch64-simd-builtins.def.
34214 2013-02-22 Vladimir Makarov <vmakarov@redhat.com>
34216 PR inline-asm/56148
34217 * lra-constraints.c (process_alt_operands): Reload operand
34218 conflicting with earlier clobber only if no more other conflicting
34221 2013-02-22 Jakub Jelinek <jakub@redhat.com>
34224 * config/gnu-user.h (LIBASAN_EARLY_SPEC): Link in libasan_preinit.o
34225 if not linking a shared library.
34227 2013-02-22 Seth LaForge <sethml@google.com>
34229 * config.gcc (arm*-*-eabi*): Treat arm*eb as big-endian.
34231 2013-02-22 Greta Yorsh <Greta.Yorsh@arm.com>
34233 * config/arm/arm.md (split for extendsidi): Update condition.
34234 (zero_extend<mode>di2,extend<mode>di2): Add an alternative.
34235 * config/arm/iterators.md (qhs_extenddi_cstr): Likewise.
34236 (qhs_zextenddi_cstr): Likewise.
34238 2013-02-21 Jakub Jelinek <jakub@redhat.com>
34240 PR middle-end/56420
34241 * expmed.c (EXACT_POWER_OF_2_OR_ZERO_P): Do subtraction in uhwi, to
34242 avoid signed wrapping.
34243 (expand_mult): Handle properly multiplication by
34244 ((dword_type) -1) << (BITS_PER_WORD - 1). Improve multiplication by
34245 ((dword_type) 1) << (BITS_PER_WORD - 1). Avoid undefined behavior
34246 in the compiler if coeff is HOST_WIDE_INT_MIN.
34247 (expand_divmod): Don't make ext_op1 static, change it's type to
34248 uhwi. Avoid undefined behavior in -INTVAL (op1).
34250 PR rtl-optimization/50339
34251 * lower-subreg.h (struct lower_subreg_choices): Add splitting_ashiftrt
34253 * lower-subreg.c (compute_splitting_shift): Handle ASHIFTRT.
34254 (compute_costs): Call compute_splitting_shift also for ASHIFTRT
34255 into splitting_ashiftrt field.
34256 (find_decomposable_shift_zext, resolve_shift_zext): Handle also
34258 (dump_choices): Fix up printing LSHIFTRT choices, print ASHIFTRT
34261 2013-02-20 Aldy Hernandez <aldyh@redhat.com>
34263 PR middle-end/56108
34264 * trans-mem.c (execute_tm_mark): Do not expand transactions that
34265 are sure to go irrevocable.
34267 2013-02-21 Hans-Peter Nilsson <hp@axis.com>
34269 * doc/rtl.texi (vec_concat, vec_duplicate): Mention that
34270 scalars are valid operands.
34272 2013-02-21 Martin Jambor <mjambor@suse.cz>
34274 PR tree-optimization/56310
34275 * ipa-cp.c (agg_replacements_to_vector): New parameter index, copy
34276 only matching indices and non-negative final offsets.
34277 (intersect_aggregates_with_edge): Pass src_idx to
34278 agg_replacements_to_vector. Pass src_idx insstead of index to
34279 intersect_with_agg_replacements.
34281 2013-02-21 Martin Jambor <mjambor@suse.cz>
34283 * ipa-cp.c (good_cloning_opportunity_p): Dump the real threshold
34284 instead of hard-wired defaults.
34286 2013-02-21 Maciej W. Rozycki <macro@codesourcery.com>
34288 * doc/invoke.texi (MIPS Options): Update documentation of the
34289 floating-point multiply-accumulate instruction restrictions.
34291 2013-02-21 Kostya Serebryany <kcc@google.com>
34293 * config/i386/i386.c (ix86_asan_shadow_offset): Use 0x7fff8000 as
34294 asan_shadow_offset on x86_64 linux.
34296 2013-02-21 Richard Biener <rguenther@suse.de>
34298 PR tree-optimization/56415
34300 2013-02-11 Richard Biener <rguenther@suse.de>
34302 PR tree-optimization/56273
34303 * tree-vrp.c (simplify_cond_using_ranges): Disable for the
34306 2013-02-21 Jakub Jelinek <jakub@redhat.com>
34309 * doc/invoke.texi (-fdump-rtl-pro_and_epilogue): Use @item
34312 PR inline-asm/56405
34313 * expr.c (expand_expr_real_1) <case TARGET_MEM_REF, MEM_REF>: Don't
34314 use movmisalign or extract_bit_field for EXPAND_MEMORY modifier.
34316 2013-02-20 Jan Hubicka <jh@suse.cz>
34318 PR tree-optimization/56265
34319 * ipa-prop.c (ipa_make_edge_direct_to_target): Fixup callgraph
34320 when target is referenced for first time.
34322 2013-02-20 Richard Biener <rguenther@suse.de>
34324 * tree-call-cdce.c (tree_call_cdce): Do not remove unused locals.
34325 * tree-ssa-forwprop.c (ssa_forward_propagate_and_combine): Likewise.
34326 * tree-ssa-dce.c (perform_tree_ssa_dce): Likewise.
34327 * tree-ssa-copyrename.c (copy_rename_partition_coalesce): Do
34328 not return anything.
34329 (rename_ssa_copies): Do not remove unused locals.
34330 * tree-ssa-ccp.c (do_ssa_ccp): Likewise.
34331 * tree-ssanames.c (pass_release_ssa_names): Remove unused locals first.
34332 * passes.c (execute_function_todo): Do not schedule unused locals
34333 removal if cleanup_tree_cfg did something.
34334 * tree-ssa-live.c (remove_unused_locals): Dump statistics
34335 about the number of removed locals.
34337 2013-02-20 Richard Biener <rguenther@suse.de>
34339 PR tree-optimization/56398
34340 * tree-vect-loop-manip.c (adjust_debug_stmts): Skip SSA default defs.
34342 2013-02-20 Martin Jambor <mjambor@suse.cz>
34344 PR tree-optimization/55334
34345 * ipa-cp.c (initialize_node_lattices): Disable IPA-CP through and to
34346 restricted pointers to arrays.
34348 2013-02-20 Richard Biener <rguenther@suse.de>
34349 Jakub Jelinek <jakub@redhat.com>
34351 PR tree-optimization/56396
34352 * tree-ssa-ccp.c (n_const_val): New static variable.
34353 (get_value): Return NULL for SSA names we don't have a lattice
34355 (ccp_initialize): Initialize n_const_val.
34356 * tree-ssa-copy.c (n_copy_of): New static variable.
34357 (init_copy_prop): Initialize n_copy_of.
34358 (get_value): Return NULL_TREE for SSA names we don't have a
34361 2013-02-20 Martin Jambor <mjambor@suse.cz>
34363 * ipa-cp.c (initialize_node_lattices): Fix dumping condition.
34365 2013-02-20 Richard Biener <rguenther@suse.de>
34367 * genpreds.c (write_lookup_constraint): Do not compare first
34368 letter of the constraint again.
34370 2013-02-20 Richard Biener <rguenther@suse.de>
34372 * tree-ssa-loop-ivopts.c (alloc_use_cost_map): Use bitmap_count_bits
34374 (get_use_iv_cost): Terminate hashtable walk when coming across
34377 2013-02-20 Igor Zamyatin <igor.zamyatin@intel.com>
34379 * config/i386/i386.c (initial_ix86_tune_features): Turn on fp
34380 reassociation for avx2 targets.
34382 2012-02-19 Edgar E. Iglesias <edgar.iglesias@gmail.com>
34384 * config/microblaze/microblaze.c: microblaze_has_clz = 0
34385 Add version check for v8.10.a to enable microblaze_has_clz
34386 * config/microblaze/microblaze.h: Add TARGET_HAS_CLZ as combined
34387 version and TARGET_PATTERN_COMPARE check
34388 * config/microblaze/microblaze.md: New clzsi2 instruction
34390 2012-02-19 Edgar E. Iglesias <edgar.iglesias@gmail.com>
34392 * config/microblaze/microblaze.md (call_value_intern): Check symbol is
34393 function before branching.
34395 2012-02-19 Andrey Belevantsev <abel@ispras.ru>
34397 * sel-sched-dump.c (dump_insn_rtx_flags): Explicitly set
34399 (dump_insn_rtx_1): Pass PATTERN (insn) to str_pattern_slim.
34401 2012-02-19 Andrey Belevantsev <abel@ispras.ru>
34403 PR middle-end/55889
34404 * sel-sched.c: Include ira.h.
34405 (implicit_clobber_conflict_p): New function.
34406 (moveup_expr): Use it.
34407 * Makefile.in (sel-sched.o): Depend on ira.h.
34409 2013-02-19 Richard Biener <rguenther@suse.de>
34411 PR tree-optimization/56384
34412 * tree-ssa-sccvn.h (struct vn_phi_s): Add type member.
34413 (vn_hash_type): Split out from ...
34414 (vn_hash_constant_with_type): ... here.
34415 * tree-ssa-sccvn.c (vn_phi_compute_hash): Use vn_hash_type.
34416 (vn_phi_eq): Compare types from vn_phi_s structure.
34417 (vn_phi_lookup): Populate vn_phi_s type.
34418 (vn_phi_insert): Likewise.
34420 2013-02-19 Jakub Jelinek <jakub@redhat.com>
34422 PR tree-optimization/56350
34423 * tree-vect-loop.c (vectorizable_reduction): If orig_stmt, return false
34424 if haven't found reduction or nested cycle operand, rather than
34425 asserting we must find it.
34427 PR tree-optimization/56381
34428 * tree-ssa-pre.c (create_expression_by_pieces): Fix up last argument
34431 2013-02-18 Aldy Hernandez <aldyh@redhat.com>
34432 Jakub Jelinek <jakub@redhat.com>
34435 * genopinit.c (raw_optab_handler): Use this_fn_optabs.
34436 (swap_optab_enable): Same.
34437 (init_all_optabs): Use argument instead of global.
34438 * tree.h (struct tree_optimization_option): New field target_optabs.
34439 * expr.h (init_all_optabs): Add argument to prototype.
34440 (TREE_OPTIMIZATION_OPTABS): New.
34441 (save_optabs_if_changed): Protoize.
34442 * optabs.h: Declare this_fn_optabs.
34443 * optabs.c (save_optabs_if_changed): New.
34444 Declare this_fn_optabs.
34445 (init_optabs): Add argument to init_all_optabs() call.
34446 * function.c (invoke_set_current_function_hook): Handle per
34448 * function.h (struct function): New field optabs.
34449 * config/mips/mips.c (mips_set_mips16_mode): Handle when
34450 optimization_current_node has changed.
34451 * target-globals.h (save_target_globals_default_opts): Protoize.
34452 * target-globals.c (save_target_globals_default_opts): New.
34454 2013-02-18 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
34457 * config/pa/pa.c (pa_conditional_register_usage): On HP-UX, mark
34458 registers %fr12 and %fr12R as call used.
34461 * config/pa/predicates.md (base14_operand): Except for BLKmode, QImode
34462 and HImode, require all displacements to be an integer multiple of
34464 * config/pa/pa.c (pa_legitimate_address_p): For REG+BASE addresses,
34465 only allow QImode and HImode when reload is in progress and strict is
34466 true. Likewise for symbolic addresses. Use base14_operand to check
34467 displacements in REG+BASE addresses.
34469 2013-02-18 Richard Biener <rguenther@suse.de>
34471 PR tree-optimization/56366
34472 * tree-vect-loop.c (get_initial_def_for_induction): Properly
34473 handle sign-conversion of outer-loop initial induction value.
34475 2013-02-18 Richard Biener <rguenther@suse.de>
34477 PR middle-end/56349
34478 * cfghooks.c (merge_blocks): If we merge a latch into another
34479 block adjust references to it.
34480 * cfgloop.c (flow_loops_find): Reset latch before recomputing it.
34481 (verify_loop_structure): Verify that a recorded latch is in fact
34484 2013-02-18 Richard Biener <rguenther@suse.de>
34486 PR tree-optimization/56321
34487 * tree-ssa-reassoc.c (propagate_op_to_single_use): Properly
34488 order SSA name release and virtual operand unlinking.
34490 2013-02-17 Edgar E. Iglesias <edgar.iglesias@gmail.com>
34492 * config/microblaze/microblaze.md (save_stack_block): Define.
34493 (restore_stack_block): Likewise.
34495 2013-02-16 Edgar E. Iglesias <edgar.iglesias@gmail.com>
34497 * config/microblaze/linux.h (TARGET_SUPPORTS_PIC): Define as 1.
34498 * config/microblaze/microblaze.h (TARGET_SUPPORTS_PIC): Define as 1.
34499 * config/microblaze/microblaze.c (microblaze_option_override):
34500 Bail out early for PIC modes when target does not support PIC.
34502 2013-02-16 Edgar E. Iglesias <edgar.iglesias@gmail.com>
34504 * config/microblaze/microblaze.c (microblaze_asm_trampoline_template):
34505 Replace with a microblaze version.
34506 (microblaze_trampoline_init): Adapt for microblaze.
34507 * config/microblaze/microblaze.h (TRAMPOLINE_SIZE): Adapt for
34510 2013-02-16 Jakub Jelinek <jakub@redhat.com>
34511 Dodji Seketeli <dodji@redhat.com>
34514 * asan.c (get_mem_refs_of_builtin_call): White space and style cleanup.
34515 (instrument_mem_region_access): Do not forget to always put
34516 instrumentation of the of 'base' and 'base + len' in a "if (len !=
34517 0) statement, even for cases where either 'base' or 'base + len'
34518 are not instrumented -- because they have been previously
34519 instrumented. Simplify the logic by putting all the statements
34520 instrument 'base + len' inside a sequence, and then insert that
34521 sequence right before the current insertion point. Then, to
34522 instrument 'base + len', just get an iterator on that statement.
34523 And do not forget to update the pointer to iterator the function
34524 received as argument.
34526 2013-02-15 Vladimir Makarov <vmakarov@redhat.com>
34528 PR rtl-optimization/56348
34529 * lra-assigns.c (reload_pseudo_compare_func): Prefer bigger pseudos.
34531 2013-02-15 Steven Bosscher <steven@gcc.gnu.org>
34533 * graph.c (start_graph_dump): Print dumpfile base as digraph label.
34534 (clean_graph_dump_file): Pass base to start_graph_dump.
34536 2013-02-14 Richard Henderson <rth@redhat.com>
34539 * lower-subreg.c (simple_move): Check dest mode instead of src mode.
34541 2013-02-14 Steven Bosscher <steven@gcc.gnu.org>
34543 * collect2-aix.h: Define F_LOADONLY.
34545 2013-02-14 Richard Biener <rguenther@suse.de>
34548 * varasm.c (output_constant_def_1): Get the decl representing
34549 the constant as argument.
34550 (output_constant_def): Wrap output_constant_def_1.
34551 (make_decl_rtl): Use output_constant_def_1 with the decl
34552 representing the constant.
34553 (build_constant_desc): Optionally re-use a decl already
34554 representing the constant.
34555 (tree_output_constant_def): Adjust.
34557 2013-02-14 Dodji Seketeli <dodji@redhat.com>
34560 * asan.c (instrument_builtin_call): Really put the length of the
34561 second source argument into src1_len.
34563 2013-02-13 Jakub Jelinek <jakub@redhat.com>
34565 * asan.c (create_cond_insert_point): Add create_then_fallthru_edge
34566 argument. If it is false, don't create edge from then_bb to
34568 (insert_if_then_before_iter): Pass true to it.
34569 (build_check_stmt): Pass false to it.
34570 (transform_statements): Flush hash table only on extended basic
34571 block boundaries, rather than at the beginning of every bb.
34572 Don't flush hash table on nonfreeing_call_p calls.
34573 * tree-flow.h (nonfreeing_call_p): New prototype.
34574 * tree-ssa-phiopt.c (nonfreeing_call_p): No longer static.
34576 2013-02-13 David S. Miller <davem@davemloft.net>
34578 * expmed.c (expand_shift_1): Only strip scalar integer subregs.
34580 2013-02-13 Vladimir Makarov <vmakarov@redhat.com>
34583 * ira.c (max_regno_before_ira): Move from ...
34585 (fix_reg_equiv_init): Use max_regno_before_ira instead of
34588 2013-02-13 Jakub Jelinek <jakub@redhat.com>
34590 * config/i386/i386.c (ix86_asan_shadow_offset): Revert last change.
34592 2013-02-13 Richard Biener <rguenther@suse.de>
34595 * gimple-streamer-out.c (output_gimple_stmt): Undo wrapping
34596 globals in MEM_REFs.
34598 2013-02-13 Richard Biener <rguenther@suse.de>
34600 * loop-init.c (loop_optimizer_init): Clear loop state when
34601 re-initializing preserved loops.
34602 * loop-unswitch.c (unswitch_single_loop): Return whether
34603 we unswitched the loop. Do not verify loop state here.
34604 (unswitch_loops): When we unswitched a loop discover new loops.
34606 2013-02-13 Kostya Serebryany <kcc@google.com>
34608 * config/i386/i386.c: Use 0x7fff8000 as asan_shadow_offset
34610 * sanitizer.def: Rename __asan_init to __asan_init_v1.
34612 2013-02-12 Dodji Seketeli <dodji@redhat.com>
34614 Avoid instrumenting duplicated memory access in the same basic block
34615 * Makefile.in (asan.o): Add new dependency on hash-table.h
34616 * asan.c (struct asan_mem_ref, struct mem_ref_hasher): New types.
34617 (asan_mem_ref_init, asan_mem_ref_get_end, get_mem_ref_hash_table)
34618 (has_stmt_been_instrumented_p, empty_mem_ref_hash_table)
34619 (free_mem_ref_resources, has_mem_ref_been_instrumented)
34620 (has_stmt_been_instrumented_p, update_mem_ref_hash_table)
34621 (get_mem_ref_of_assignment): New functions.
34622 (get_mem_refs_of_builtin_call): Extract from
34623 instrument_builtin_call and tweak a little bit to make it fit with
34625 (instrument_builtin_call): Use the new
34626 get_mem_refs_of_builtin_call. Use gimple_call_builtin_p instead
34627 of is_gimple_builtin_call.
34628 (instrument_derefs, instrument_mem_region_access): Insert the
34629 instrumented memory reference into the hash table.
34630 (maybe_instrument_assignment): Renamed instrument_assignment into
34631 this, and change it to advance the iterator when instrumentation
34632 actually happened and return true in that case. This makes it
34633 homogeneous with maybe_instrument_assignment, and thus give a
34634 chance to callers to be more 'regular'.
34635 (transform_statements): Clear the memory reference hash table
34636 whenever we enter a new BB, when we cross a function call, or when
34637 we are done transforming statements. Use
34638 maybe_instrument_assignment instead of instrumentation. No more
34639 need to special case maybe_instrument_assignment and advance the
34640 iterator after calling it; it's now handled just like
34641 maybe_instrument_call. Update comment.
34643 2013-02-13 Richard Biener <rguenther@suse.de>
34645 * config/mn10300/mn10300.c (mn10300_scan_for_setlb_lcc):
34646 Fix loop discovery code.
34648 2013-02-12 Vladimir Makarov <vmakarov@redhat.com>
34650 PR inline-asm/56148
34651 * lra-constraints.c (process_alt_operands): Match early clobber
34652 operand with itself. Check conflicts with earlyclobber only if
34653 the operand is not reloaded. Prefer to reload conflicting operand
34654 if earlyclobber and matching operands are the same.
34656 2013-02-12 Richard Biener <rguenther@suse.de>
34659 * lto-streamer-out.c (write_symbol): Do not output symbols
34660 for hard register variables.
34662 2013-02-12 Georg-Johann Lay <avr@gjlay.de>
34665 * config/avr/avr-dimode.md (umulsidi3, mulsidi3): New expanders.
34666 (umulsidi3_insn, mulsidi3_insn): New insns.
34668 2013-02-12 Christophe Lyon <christophe.lyon@linaro.org>
34670 * config/arm/arm-protos.h (struct cpu_vec_costs): New struct type.
34671 (struct tune_params): Add vec_costs field.
34672 * config/arm/arm.c (arm_builtin_vectorization_cost)
34673 (arm_add_stmt_cost): New functions.
34674 (TARGET_VECTORIZE_BUILTIN_VECTORIZATION_COST)
34675 (TARGET_VECTORIZE_ADD_STMT_COST): Define.
34676 (arm_default_vec_cost): New struct of type cpu_vec_costs.
34677 (arm_slowmul_tune, arm_fastmul_tune, arm_strongarm_tune)
34678 (arm_xscale_tune, arm_9e_tune, arm_v6t2_tune, arm_cortex_tune)
34679 (arm_cortex_a15_tune, arm_cortex_a5_tune, arm_cortex_a9_tune)
34680 (arm_v6m_tune, arm_fa726te_tune): Define new vec_costs field.
34682 2013-02-12 Richard Biener <rguenther@suse.de>
34685 * gimple-streamer-in.c (input_gimple_stmt): Strip MEM_REFs off
34686 decls again if possible.
34688 2013-02-12 Richard Biener <rguenther@suse.de>
34690 PR middle-end/56288
34691 * tree-ssa.c (verify_ssa_name): Fix check, move
34692 SSA_NAME_IN_FREE_LIST check up.
34694 2013-02-12 Jakub Jelinek <jakub@redhat.com>
34695 Steven Bosscher <steven@gcc.gnu.org>
34697 PR rtl-optimization/56151
34698 * optabs.c (add_equal_note): Don't return 0 if target is a MEM,
34699 equal to op0 or op1, and last_insn pattern is CODE operation
34700 with MEM dest and one of the operands matches that MEM.
34702 2013-02-11 Sriraman Tallam <tmsriram@google.com>
34704 * doc/extend.texi: Document Function Multiversioning and "default"
34705 parameter string to target attribute.
34706 * config/i386/i386.c (get_builtin_code_for_version): Return 0 if
34707 target attribute parameter is "default".
34708 (ix86_compare_version_priority): Remove checks for target attribute.
34709 (ix86_mangle_function_version_assembler_name): Change error to sorry.
34710 Remove check for target attribute equal to NULL. Add assert.
34711 (ix86_generate_version_dispatcher_body): Change error to sorry.
34713 2013-02-11 Iain Sandoe <iain@codesourcery.com>
34714 Jack Howarth <howarth@bromo.med.uc.edu>
34715 Patrick Marlier <patrick.marlier@gmail.com>
34718 * config/darwin.h: Replace ENDFILE_SPEC with TM_DESTRUCTOR and
34719 define ENDFILE_SPEC as TM_DESTRUCTOR.
34720 * config/i386/darwin.h (ENDFILE_SPEC): Use TM_DESTRUCTOR.
34722 2013-02-11 Alexander Potapenko <glider@google.com>
34723 Jack Howarth <howarth@bromo.med.uc.edu>
34724 Jakub Jelinek <jakub@redhat.com>
34727 * config/darwin.c (cdtor_record): Rename ctor_record.
34728 (sort_cdtor_records): Rename sort_ctor_records.
34729 (finalize_dtors): New routine to sort destructors by
34730 priority before use in assemble_integer.
34731 (machopic_asm_out_destructor): Use finalize_dtors if needed.
34733 2013-02-11 Uros Bizjak <ubizjak@gmail.com>
34735 PR rtl-optimization/56275
34736 * simplify-rtx.c (avoid_constant_pool_reference): Check that
34737 offset is non-negative and less than cmode size before
34738 calling simplify_subreg.
34740 2013-02-11 Richard Biener <rguenther@suse.de>
34742 PR tree-optimization/56264
34743 * cfgloop.h (fix_loop_structure): Adjust prototype.
34744 * loop-init.c (fix_loop_structure): Return the number of
34745 newly discovered loops.
34746 * tree-cfgcleanup.c (repair_loop_structures): When new loops
34747 are discovered, do a full loop-closed SSA rewrite.
34749 2013-02-11 Richard Biener <rguenther@suse.de>
34751 PR tree-optimization/56273
34752 * tree-vrp.c (simplify_cond_using_ranges): Disable for the
34754 (check_array_ref): Fix missing newline in dumps.
34755 (search_for_addr_array): Likewise.
34757 2013-02-09 David Edelsohn <dje.gcc@gmail.com>
34759 * config/rs6000/aix61.h (OS_MISSING_ALTIVEC): Undefine.
34761 2013-02-09 Jakub Jelinek <jakub@redhat.com>
34764 * config/rs6000/rs6000.h (ASSEMBLER_DIALECT): Define.
34766 2013-02-08 Vladimir Makarov <vmakarov@redhat.com>
34768 PR rtl-optimization/56246
34769 * lra-constraints.c (simplify_operand_subreg): Try to reuse
34771 * lra.c (lra): Clear lra_optional_reload_pseudos only when all
34772 constraints are satisfied.
34774 2013-02-08 Jeff Law <law@redhat.com>
34777 * emit-rtl.c (reg_is_parm_p): New function.
34778 * regs.h (reg_is_parm_p): New prototype.
34779 * ira-conflicts.c (ira_build_conflicts): Allow parameters in
34780 callee-clobbered registers.
34782 2013-02-08 Michael Meissner <meissner@linux.vnet.ibm.com>
34785 * config/rs6000/rs6000.c (rs6000_builtin_vectorized_libmass):
34786 If there is no implicit builtin declaration, just return NULL.
34788 2013-02-08 Uros Bizjak <ubizjak@gmail.com>
34790 * config/i386/sse.md (FMAMODEM): New mode iterator.
34791 (fma<mode>4, fms<mode>4, fnma<mode>4, fnms<mode>4): Use FMAMODEM
34792 mode iterator. Do not use TARGET_SSE_MATH in insn constraint.
34794 2013-02-08 Uros Bizjak <ubizjak@gmail.com>
34796 * config/i386/gnu-user.h (TARGET_CAN_SPLIT_STACK): Define only
34797 when HAVE_GAS_CFI_PERSONALITY_DIRECTIVE is set.
34798 * config/i386/gnu-user64.h (TARGET_CAN_SPLIT_STACK): Ditto.
34800 2013-02-08 Edgar E. Iglesias <edgar.iglesias@gmail.com>
34802 * config.gcc (microblaze*-linux*): Add TARGET_BIG_ENDIAN_DEFAULT.
34803 (microblaze*-*-elf): Likewise.
34804 * config/microblaze/linux.h: Add -mbig-endian / -mlittle-endian to
34806 * config/microblaze/microblaze-c.c: Add builtin defines for
34807 _LITTLE_ENDIAN and _BIG_ENDIAN.
34808 * config/microblaze/microblaze.h: Add TARGET_ENDIAN_DEFAULT and
34809 add to TARGET_DEFAULT flags.
34810 Expand ASM_SPEC and LINK_SPEC.
34811 Update BYTES_BIG_ENDIAN and WORDS_BIG_ENDIAN.
34812 * config/microblaze/microblaze.md: Update extendsidi2 and
34813 movdi_internal instructions to use low-order / high-order reg
34815 * config/microblaze/microblaze.opt: Add mbig-endian and mlittle-endian
34816 options and inversemask / mask of LITTLE_ENDIAN.
34817 * config/microblaze/t-microblaze: Expand multilib options to
34818 include mlittle-endian (le) and update exceptions patterns.
34820 2013-02-08 Jakub Jelinek <jakub@redhat.com>
34822 PR rtl-optimization/56195
34823 * lra-constraints.c (get_reload_reg): Don't reuse regs
34824 if they have smaller mode than requested, if they have
34825 wider mode than requested, try to return a SUBREG.
34827 PR tree-optimization/56250
34828 * fold-const.c (extract_muldiv_1) <case NEGATE_EXPR>: Don't optimize
34829 if type is unsigned and code isn't MULT_EXPR.
34831 2013-02-08 Georg-Johann Lay <avr@gjlay.de>
34833 PR tree-optimization/56064
34834 * fixed-value.c (fixed_from_double_int): Sign/zero extend payload
34835 bits according to mode.
34836 * fixed-value.h (fixed_from_double_int)
34837 (const_fixed_from_double_int): Adjust comments.
34839 2013-02-08 Richard Biener <rguenther@suse.de>
34842 * lto-streamer.h (struct data_in): Remove current_file, current_line
34843 and current_col members.
34844 * lto-streamer-out.c (lto_output_location): Stream changed bits
34845 en-block for efficiency.
34846 * lto-streamer-in.c (clear_line_info): Remove.
34847 (lto_input_location): Cache current file, line and column
34848 globally via local statics. Read changed bits en-block.
34849 (input_function): Do not call clear_line_info.
34850 (lto_read_body): Likewise.
34851 (lto_input_toplevel_asms): Likewise.
34853 2013-02-08 Michael Matz <matz@suse.de>
34855 PR tree-optimization/52448
34856 * tree-ssa-phiopt.c (struct name_to_bb): Add phase member.
34857 (nt_call_phase): New static.
34858 (add_or_mark_expr): Only mark accesses with newer phase than any
34860 (nonfreeing_call_p): New.
34861 (nt_init_block): Update nt_call_phase, mark blocks as visited.
34862 (nt_fini_block): Keep blocks marked as visited.
34863 (get_non_trapping): Initialize nt_call_phase, and reset aux pointer.
34865 2013-02-08 Richard Biener <rguenther@suse.de>
34867 * ira.c (ira): Free broken dominator information.
34869 2013-02-08 Uros Bizjak <ubizjak@gmail.com>
34871 * config/i386/i386.c (ix86_spill_class): Use INTEGER_CLASS_P macro.
34873 2013-02-08 Marek Polacek <polacek@redhat.com>
34875 * cfgloop.c (verify_loop_structure): Add more checking of headers.
34877 2013-02-08 Richard Biener <rguenther@suse.de>
34879 PR middle-end/56181
34880 * cfgloop.h (flow_loops_find): Adjust.
34881 (bb_loop_header_p): Declare.
34882 * cfgloop.c (bb_loop_header_p): New function split out from ...
34883 (flow_loops_find): ... here. Adjust function signature,
34884 support incremental loop structure update.
34885 (verify_loop_structure): Cleanup. Verify a loop is a loop.
34886 * cfgloopmanip.c (fix_loop_structure): Move ...
34887 * loop-init.c (fix_loop_structure): ... here.
34888 (apply_loop_flags): Split out from ...
34889 (loop_optimizer_init): ... here.
34890 (fix_loop_structure): Use apply_loop_flags. Use flow_loops_find
34891 in incremental mode, only remove dead loops here.
34893 2013-02-08 Georg-Johann Lay <avr@gjlay.de>
34896 * config/avr/avr.md (unspec) <UNSPEC_ROUND>: Add.
34897 * config/avr/avr-fixed.md (ALL4QA, ALL124QA): New mode iterators.
34898 (round<mode>3, round<mode>3_const): New expanders for fixed-mode.
34899 (*round<mode>3.libgcc): New insns for fixed-modes.
34900 * config/avr/builtins.def (ABSxx): Use a non-NULL LIBNAME.
34901 (ROUNDxx, COUNTLSxx, BITSxx, xxBITS): New DEF_BUILTINs.
34902 (ROUNDFX, COUNTLSFX, ABSFX): New DEF_BUILTINs.
34903 * config/avr/stdfix.h (absFX, bitsFX, FXbits): Remove inline
34904 implementations. Define to __builtin_avr_absFX,
34905 __builtin_avr_bitsFX, __builtin_avr_FXbits, respectively.
34906 (roundFX, countlsFX): Define to __builtin_avr_roundFX,
34907 __builtin_avr_countlsFX, respectively.
34908 * config/avr/avr-c.c (target.h): Include it.
34909 (enum avr_builtin_id): New enum.
34910 (avr_resolve_overloaded_builtin): New static function.
34911 (avr_register_target_pragmas): Use it to set
34912 targetm.resolve_overloaded_builtin.
34913 * config/avr/avr.c (avr_init_builtins): Supply myriads of local
34914 tree nodes used by DEF_BUILTIN.
34915 (avr_expand_builtin) <AVR_BUILTIN_ROUNDxx>: Sanity-check them.
34916 (avr_fold_builtin) <AVR_BUILTIN_BITSxx>: Fold to VIEW_COVERT_EXPR.
34917 <AVR_BUILTIN_xxBITS>: Same.
34919 2013-02-08 Richard Biener <rguenther@suse.de>
34921 * cfgloop.c (verify_loop_structure): Properly handle
34922 a loop exiting to another loop header.
34923 * ira-int.h (ira_loops): Remove.
34924 * ira.c (ira_loops): Remove.
34925 (ira): Use loop_optimizer_init and loop_optimizer_finalize.
34926 (do_reload): Use loop_optimizer_finalize.
34927 * ira-build.c (create_loop_tree_nodes): Use get_loops and
34928 number_of_loops to access the loop tree.
34929 (more_one_region_p): Likewise.
34930 (finish_loop_tree_nodes): Likewise.
34931 (rebuild_regno_allocno_maps): Likewise.
34932 (mark_loops_for_removal): Likewise.
34933 (mark_all_loops_for_removal): Likewise.
34934 (remove_unnecessary_regions): Likewise.
34935 (ira_build): Likewise.
34936 * ira-emit.c (setup_entered_from_non_parent_p): Likewise.
34938 2013-02-08 Richard Biener <rguenther@suse.de>
34940 * Makefile.in (tree-tailcall.o): Add $(CFGLOOP_H) dependency.
34941 * ipa-pure-const.c (analyze_function): Avoid calling
34942 mark_irreducible_loops twice.
34943 * tree-tailcall.c (tree_optimize_tail_calls_1): Mark loops for fixup.
34945 2013-02-07 David S. Miller <davem@davemloft.net>
34947 * dwarf2out.c (based_loc_descr): Perform leaf register remapping
34949 * var-tracking.c (vt_add_function_parameter): Test the presence of
34950 HAVE_window_save properly and do not remap argument registers when
34951 we have a leaf function.
34953 2013-02-07 Uros Bizjak <ubizjak@gmail.com>
34956 * ggc-page.c (ggc_print_statistics): Use HOST_LONG_LONG_FORMAT
34958 * config/i386/i386.c (ix86_print_operand): Ditto.
34960 2013-02-07 Vladimir Makarov <vmakarov@redhat.com>
34962 * lra-constraints.c (process_alt_operands): Fix recently added comment.
34964 2013-02-07 Vladimir Makarov <vmakarov@redhat.com>
34966 PR rtl-optimization/56225
34967 * lra-constraints.c (process_alt_operands): Check that reload hard
34968 reg can hold value for strict_low_part.
34970 2013-02-07 Jakub Jelinek <jakub@redhat.com>
34973 * dwarf2out.c (dwarf2_debug_hooks): Set end_function hook to
34974 dwarf2out_end_function.
34975 (in_first_function_p, maybe_at_text_label_p,
34976 first_loclabel_num_not_at_text_label): New variables.
34977 (dwarf2out_var_location): In the first function find out
34978 lowest loclabel_num N where .LVLN is known not to be equal to .Ltext0.
34979 (find_empty_loc_ranges_at_text_label, dwarf2out_end_function): New
34982 2013-02-07 Eric Botcazou <ebotcazou@adacore.com>
34984 PR rtl-optimization/56178
34985 * cse.c (cse_insn): Do not create a REG_EQUAL note if the source is a
34986 SUBREG of a register. Tidy up related block of code.
34987 * fwprop.c (forward_propagate_and_simplify): Do not create a REG_EQUAL
34988 note if the source is a register or a SUBREG of a register.
34990 2013-02-07 Jakub Jelinek <jakub@redhat.com>
34993 * config/rs6000/rs6000.md (ptrm): New mode attr.
34994 (call_indirect_aix<ptrsize>, call_indirect_aix<ptrsize>_nor11,
34995 call_value_indirect_aix<pttrsize>,
34996 call_value_indirect_aix<pttrsize>_nor11): Use <ptrm> instead of
34999 2013-02-07 Michael Haubenwallner <michael.haubenwallner@salomon.at>
35001 * collect2.c (main): Set aix64_flag for -G and -bsvr4 too, disable
35002 if -bnortl. Convert to strcmp and strncmp.
35004 2013-02-07 Alan Modra <amodra@gmail.com>
35007 * config/rs6000/rs6000.c (mem_operand_gpr): Check that LO_SUM
35008 addresses won't wrap when offsetting.
35009 (rs6000_secondary_reload): Provide secondary reloads needed for
35010 wrapping LO_SUM addresses.
35012 2013-02-06 Thomas Schwinge <thomas@codesourcery.com>
35014 * config/gnu.h (GNU_USER_TARGET_OS_CPP_BUILTINS): Never define
35015 MACH, just __MACH__.
35017 2013-02-06 Richard Biener <rguenther@suse.de>
35019 * tracer.c (tracer): Mark loops with LOOPS_NEED_FIXUP
35020 instead of calling fix_loop_structure.
35022 2013-02-06 Jakub Jelinek <jakub@redhat.com>
35024 PR middle-end/56217
35025 * omp-low.c (use_pointer_for_field): Return false if
35026 lower_send_shared_vars doesn't generate any copy-out code.
35028 2013-02-06 Tom de Vries <tom@codesourcery.com>
35030 PR rtl-optimization/56131
35031 * cfgrtl.c (delete_insn): Use NOTE_BASIC_BLOCK instead of BLOCK_FOR_INSN
35032 to get the bb of a NOTE_INSN_BASIC_BLOCK. Handle the case that the bb
35033 of the label is NULL. Add comment.
35035 2013-02-05 Jakub Jelinek <jakub@redhat.com>
35037 * tree.h (struct tree_decl_with_vis): Remove thread_local field.
35040 * config/gnu-user.h (LIBTSAN_EARLY_SPEC): Define.
35041 (STATIC_LIBTSAN_LIBS): Likewise.
35042 * gcc.c (ADD_STATIC_LIBTSAN_LIBS, LIBTSAN_EARLY_SPEC): Define.
35043 (LIBTSAN_SPEC): Add ADD_STATIC_LIBTSAN_LIBS, if LIBTSAN_EARLY_SPEC
35044 is defined, don't add anything else beyond that.
35045 (SANITIZER_EARLY_SPEC, SANITIZER_SPEC): Define.
35046 (LINK_COMMAND_SPEC): Use them.
35048 PR tree-optimization/56205
35049 * tree-stdarg.c (check_all_va_list_escapes): Return true if
35050 there are any PHI nodes that set non-va_list_escape_vars SSA_NAME
35051 and some va_list_escape_vars SSA_NAME appears in some PHI argument.
35053 2013-02-05 Richard Biener <rguenther@suse.de>
35055 PR tree-optimization/53342
35056 PR tree-optimization/53185
35057 * tree-vectorizer.h (vect_check_strided_load): Remove.
35058 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment): Do
35059 not disallow peeling for vectorized strided loads.
35060 (vect_check_strided_load): Make static and simplify.
35061 (vect_analyze_data_refs): Adjust.
35062 * tree-vect-stmts.c (vectorizable_load): Handle peeled loops
35063 correctly when vectorizing strided loads.
35065 2013-02-05 Richard Biener <rguenther@suse.de>
35067 * doc/install.texi: Refer to ISL, not PPL.
35069 2013-02-05 Jan Hubicka <jh@suse.cz>
35071 PR tree-optimization/55789
35072 * params.def (PARAM_EARLY_INLINER_MAX_ITERATIONS): Drop to 1.
35074 2013-02-05 Jan Hubicka <jh@suse.cz>
35076 PR tree-optimization/55789
35077 * cgraphclones.c (cgraph_remove_node_and_inline_clones): Remove
35078 the dead call anyway.
35080 2013-02-05 Eric Botcazou <ebotcazou@adacore.com>
35083 * config/gnu-user.h (LIBASAN_EARLY_SPEC): Add missing guard.
35085 2013-02-04 Alexander Potapenko <glider@google.com>
35086 Jack Howarth <howarth@bromo.med.uc.edu>
35087 Jakub Jelinek <jakub@redhat.com>
35090 * config/darwin.c (sort_ctor_records): Stabilized qsort
35091 on constructor priority by using original position.
35092 (finalize_ctors): New routine to sort constructors by
35093 priority before use in assemble_integer.
35094 (machopic_asm_out_constructor): Use finalize_ctors if needed.
35096 2013-02-04 Jakub Jelinek <jakub@redhat.com>
35099 * config/i386/winnt.c (i386_pe_assemble_visibility): Don't warn
35100 about visibility on artificial decls.
35101 * config/sol2.c (solaris_assemble_visibility): Likewise.
35103 2013-02-04 Kai Tietz <ktietz@redhat.com>
35106 * config/i386/i386.c (function_value_ms_64): Add additional valtype
35107 argument and improve checking of return-argument types for 16-byte
35109 (ix86_function_value_1): Add additional valtype argument on call
35110 of function_value_64.
35111 (return_in_memory_ms_64): Sync 16-byte sized mode handling with
35112 handling infunction_value_64 function.
35114 2013-02-04 Matthew Gretton-Dann <matthew.gretton-dann@linaro.org>
35116 * reload.c (subst_reloads): Fix DEBUG_RELOAD build issue.
35118 2013-02-04 Richard Biener <rguenther@suse.de>
35120 PR tree-optimization/56188
35121 * tree-ssa-structalias.c (label_visit): Consider case with
35122 initially non-empty points-to set.
35123 (perform_var_substitution): Dump node mapping and clean up.
35125 2013-02-04 Richard Guenther <rguenther@suse.de>
35128 * lto-symtab.c (lto_symtab_merge_decls_1): Make non-builtin
35129 node prevail as last resort.
35130 (lto_symtab_merge_decls): Remove guard on LTRANS here.
35131 (lto_symtab_prevailing_decl): Builtins are their own prevailing decl.
35133 2013-02-04 Richard Biener <rguenther@suse.de>
35135 PR tree-optimization/56113
35136 * tree-ssa-structalias.c (equiv_class_lookup, equiv_class_add):
35138 (equiv_class_lookup_or_add): ... this.
35139 (label_visit): Adjust and fix error in previous patch.
35140 (perform_var_substitution): Adjust.
35142 2013-02-03 Oleg Endo <olegendo@gcc.gnu.org>
35144 * config/sh/divtab.c: Fix formatting and comments throughout the file.
35145 * config/sh/sh4-300.md: Likewise.
35146 * config/sh/sh4a.md: Likewise.
35147 * config/sh/constraints.md: Likewise.
35148 * config/sh/sh.md: Likewise.
35149 * config/sh/netbsd-elf.h: Likewise.
35150 * config/sh/predicates.md: Likewise.
35151 * config/sh/sh-protos.h: Likewise.
35152 * config/sh/ushmedia.h: Likewise.
35153 * config/sh/linux.h: Likewise.
35154 * config/sh/sh.c: Likewise.
35155 * config/sh/superh.h: Likewise.
35156 * config/sh/elf.h: Likewise.
35157 * config/sh/sh4.md: Likewise.
35158 * config/sh/sh.h: Likewise.
35160 2013-02-03 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
35162 * config/pa/constraints.md: Adjust unused letters. Change "T"
35163 constraint to match_test floating_point_store_memory_operand().
35164 * config/pa/predicates.md (reg_plus_base_memory_operand): New.
35165 (base14_operand): New.
35166 (floating_point_store_memory_operand): New.
35167 (integer_store_memory_operand): Revise to use base14_operand and
35168 reg_plus_base_memory_operand.
35169 (move_dest_operand): Allow symbolic_memory_operands.
35170 (symbolic_memory_operand): Check for LO_SOM.
35171 (symbolic_operand): Change default case to break.
35172 * config/pa/pa.md: Remove unamed DFmode and SFmode patterns to force
35173 CONST_DOUBLE values to be reloaded by putting them into memory when
35174 the destination is a floating point register.
35175 (movdf): Remove code to handle CONST_DOUBLE.
35177 (reload_indf_r1): New.
35178 (reload_insf_r1): New.
35179 Consistently use "Q" and "T" constraints with integer and floating
35180 point move instructions, respectively.
35181 (movdi): Remove FAIL.
35182 Change predicate for source operand unamed DImode move from
35183 general_operand to move_src_operand.
35184 (umulsidi3): Change predicate for destination operand to
35186 Likewise for similar unamed patterns.
35187 * config/pa/pa-protos.h (pa_legitimize_reload_address): Declare.
35188 * config/pa/pa.c (pa_symbolic_expression_p): Remove extra parenthesis.
35189 (hppa_legitimize_address): Simplify mask calculation.
35190 (pa_emit_move_sequence): Revised handling of secondary reloads from
35191 REG+D addresses for floating point loads and stores. Directly handle
35192 loading CONST0_RTX (mode) to a floating point register.
35193 (pa_secondary_reload): Handle reloading DF and SFmode constant values
35194 to floating point registers. Don't restrict secondary reloads to
35195 floating point registers to integer modes. Revise some comments and
35197 (TARGET_LEGITIMATE_ADDRESS_P): Define.
35198 (pa_legitimate_address_p): New.
35199 (pa_legitimize_reload_address): New.
35200 * config/pa/pa.h (STRICT_REG_OK_FOR_INDEX_P): New.
35201 (STRICT_REG_OK_FOR_BASE_P): New.
35202 (GO_IF_LEGITIMATE_ADDRESS): Delete. Update some related comments.
35203 (LEGITIMIZE_RELOAD_ADDRESS): Revise to use pa_legitimize_reload_address.
35205 2013-02-03 David Edelsohn <dje.gcc@gmail.com>
35206 Andrew Dixie <andrewd@gentrack.com>
35208 * collect2.c (GCC_CHECK_HDR): Do not scan objects with F_LOADONLY
35211 2013-02-03 Richard Sandiford <rdsandiford@googlemail.com>
35213 * expmed.c (extract_bit_field_1): Pass the full width of the
35214 structure to get_best_reg_extraction_insn.
35216 2013-02-01 David Edelsohn <dje.gcc@gmail.com>
35219 * configure.ac (use_cxa_atexit): Add AIX.
35220 * configure: Regenerate.
35222 * config/rs6000/aix61.h (STARTFILE_SPEC): Add crtcxa.o.
35224 2013-02-01 Jakub Jelinek <jakub@redhat.com>
35227 * final.c (need_profile_function): New variable.
35228 (final_start_function): Drop ATTRIBUTE_UNUSED from first argument.
35229 If first of NOTE_INSN_BASIC_BLOCK or NOTE_INSN_FUNCTION_BEG
35230 is only preceeded by NOTE_INSN_VAR_LOCATION or NOTE_INSN_DELETED
35231 notes, targetm.asm_out.function_prologue doesn't emit anything,
35232 HAVE_prologue and profiler should be emitted before prologue,
35233 set need_profile_function instead of emitting it.
35234 (final_scan_insn): If need_profile_function, emit
35235 profile_function on the first NOTE_INSN_BASIC_BLOCK or
35236 NOTE_INSN_FUNCTION_BEG note.
35238 2013-02-01 Richard Henderson <rth@redhat.com>
35240 * config/rs6000/rs6000.md (smulditi3): New.
35243 * config/alpha/alpha.md (umulditi3): New.
35245 2013-02-01 David Edelsohn <dje.gcc@gmail.com>
35247 * config/rs6000/xcoff.h (ASM_OUTPUT_ALIGNED_COMMON): Use floor_log2.
35248 (ASM_OUTPUT_ALIGNED_LOCAL): New.
35250 2013-02-01 Richard Biener <rguenther@suse.de>
35252 PR tree-optimization/56113
35253 * tree-ssa-structalias.c (label_visit): Reduce work for
35254 single-predecessor nodes.
35256 2013-02-01 Eric Botcazou <ebotcazou@adacore.com>
35258 * fold-const.c (make_range_step) <TRUTH_NOT_EXPR>: Bail out if the
35259 range isn't testing for zero.
35261 2013-01-31 Steven Bosscher <steven@gcc.gnu.org>
35263 PR middle-end/56113
35264 * fwprop.c (fwprop_init): Set up loops without CFG modifications.
35266 2013-01-31 Hiroyuki Ono <hiroyuki.ono.jc@renesas.com>
35267 Nick Clifton <nickc@redhat.com>
35269 * config/v850/constraints.md (Q): Define as a memory constraint.
35270 * config/v850/predicates.md (label_ref_operand): New predicate.
35271 (e3v5_shift_operand): New predicate.
35272 (ior_operator): New predicate.
35273 * config/v850/t-v850: Add e3v5 multilib.
35274 * config/v850/v850-protos.h (v850_adjust_insn_length): Prototype.
35275 (v850_gen_movdi): Prototype.
35276 * config/v850/v850.c: Add support for e3v5 architecture.
35277 Rename all uses of TARGET_V850E || TARGET_V850E2_ALL to
35279 (construct_save_jarl): Add e3v5 long JARL support.
35280 (v850_adjust_insn_length): New function. Adjust length of call
35281 insns when using e3v5 instructions.
35282 (v850_gen_movdi): New function: Generate instructions to move a
35284 * config/v850/v850.h (TARGET_CPU_v850e3v5): Define.
35285 (CPP_SPEC): Define __v850e3v5__ as appropriate.
35286 (TARGET_USE_FPU): Enable for e3v5.
35287 (CONST_OK_FOR_W): New macro.
35288 (ADJUST_INSN_LENGTH): Define.
35289 * config/v850/v850.md (UNSPEC_LOOP): Define.
35290 (attr cpu): Add v850e3v5.
35291 Rename all uses of TARGET_V850E2 to TARGET_V850E2V3_UP.
35292 (movdi): New pattern.
35293 (movdi_internal): New pattern.
35294 (cbranchsf4): Conditionalize on TARGET_USE_FPU.
35295 (cbranchdf4): Conditionalize on TARGET_USE_FPU.
35296 (cstoresf4): Likewise.
35297 (cstoredf4): Likewise.
35298 (insv): New pattern.
35299 (rotlso3_a): New pattern.
35300 (rotlsi3_b): New pattern
35301 (rotlsi3_v850e3v5): New pattern.
35302 (doloop_begin): New pattern.
35303 (fix_loop_counter): New pattern.
35304 (doloop_end): New pattern.
35305 (branch_normal): Add e3v5 long branch support.
35306 (branch_invert): Likewise.
35307 (branch_z_normal): Likewise.
35308 (branch_z_invert): Likewise.
35309 (branch_nz_normal): Likewise.
35310 (branch_nz_invert): Likewise.
35311 (call_internal_short): Add e3v5 register-indirect JARL support.
35312 (call_internal_long): Likewise.
35313 (call_value_internal_short): Likewise.
35314 (call_value_internal_long): Likewise.
35315 * config/v850/v850.opt (mv850e3v5, mv850e2v4): New options.
35316 (mloop): New option.
35317 * config.gcc: Add support for configuring v840e3v5 target.
35318 * doc/invoke.texi: Document new v850 specific command line options.
35320 2013-01-31 Paul Koning <ni1d@arrl.net>
35324 * dwarf2out.c (prune_unused_types_mark): Mark all of parent's
35325 children if parent is a class.
35326 (prune_unused_types_prune): Don't add DW_AT_declaration.
35328 2013-01-31 Richard Biener <rguenther@suse.de>
35330 PR tree-optimization/56157
35331 * tree-vect-slp.c (vect_get_slp_defs): More thoroughly try to
35332 match up operand with SLP child.
35334 2013-01-31 Jason Merrill <jason@redhat.com>
35337 * dwarf2out.c (gen_struct_or_union_type_die): Always schedule template
35338 parameters the first time.
35339 (gen_scheduled_generic_parms_dies): Check completeness here.
35341 2013-01-31 Richard Biener <rguenther@suse.de>
35343 PR middle-end/53073
35344 * common.opt (faggressive-loop-optimizations): New flag,
35345 enabled by default.
35346 * doc/invoke.texi (faggressive-loop-optimizations): Document.
35347 * tree-ssa-loop-niter.c (estimate_numbers_of_iterations_loop): Guard
35348 infer_loop_bounds_from_undefined by it.
35350 2013-01-31 Richard Biener <rguenther@suse.de>
35352 PR tree-optimization/56150
35353 * tree-ssa-loop-manip.c (find_uses_to_rename_stmt): Do not
35354 visit virtual operands.
35355 (find_uses_to_rename_bb): Likewise.
35357 2013-01-31 Richard Biener <rguenther@suse.de>
35359 PR tree-optimization/56150
35360 * tree-ssa-tail-merge.c (gimple_equal_p): Properly handle
35361 mixed store non-store stmts.
35363 2013-01-30 Jakub Jelinek <jakub@redhat.com>
35366 * gcc.c (LIBASAN_SPEC): Define just to ADD_STATIC_LIBASAN_LIBS if
35367 LIBASAN_EARLY_SPEC is defined.
35368 (LIBASAN_EARLY_SPEC): Define to empty string if not already defined.
35369 (LINK_COMMAND_SPEC): Add LIBASAN_EARLY_SPEC for -fsanitize=address,
35371 * config/gnu-user.h (LIBASAN_EARLY_SPEC): Define.
35374 * config/i386/i386.c (ix86_valid_target_attribute_inner_p): Diagnose
35375 invalid args instead of ICEing on it.
35376 (ix86_valid_target_attribute_tree): Return error_mark_node if
35377 ix86_valid_target_attribute_inner_p failed.
35378 (ix86_valid_target_attribute_p): Return false only if
35379 ix86_valid_target_attribute_tree returned error_mark_node. Allow
35380 target("default") attribute.
35381 (sorted_attr_string): Change argument from const char * to tree,
35382 merge in all target attribute arguments rather than just one.
35383 Formatting fix. Use XNEWVEC instead of xmalloc and XDELETEVEC
35384 instead of free. Avoid using strcat.
35385 (ix86_mangle_function_version_assembler_name): Mangle
35386 target("default") as if no target attribute is present. Adjust
35387 sorted_attr_string caller. Avoid leaking memory. Use XNEWVEC
35388 instead of xmalloc and XDELETEVEC instead of free.
35389 (ix86_function_versions): Don't return true if one of the decls
35390 doesn't have target attribute. If they don't and one of the decls
35391 is DECL_FUNCTION_VERSIONED, report an error. Adjust
35392 sorted_attr_string caller. Use XDELETEVEC instead of free.
35393 (ix86_supports_function_versions): Remove.
35394 (make_name): Fix up formatting.
35395 (make_dispatcher_decl): Remove resolver_name and its initialization.
35396 Avoid leaking memory.
35397 (is_function_default_version): Return true if there is
35398 target("default") attribute rather than no target attribute at all.
35399 (make_resolver_func): Avoid leaking memory.
35400 (ix86_generate_version_dispatcher_body): Likewise.
35401 (TARGET_OPTION_SUPPORTS_FUNCTION_VERSIONS): Remove.
35402 * target.def (supports_function_versions): Remove.
35403 * doc/tm.texi.in (SUPPORTS_FUNCTION_VERSIONS): Remove.
35404 * doc/tm.texi: Regenerated.
35406 2013-01-30 Vladimir Makarov <vmakarov@redhat.com>
35408 PR rtl-optimization/56144
35409 * lra-constraints.c (get_reload_reg): Don't reuse reload pseudo
35410 for values with side effects.
35412 2013-01-30 Richard Biener <rguenther@suse.de>
35414 * sparseset.h (sparseset_bit_p): Use gcc_checking_assert.
35415 (sparseset_pop): Likewise.
35416 * cfganal.c (compute_idf): Likewise. Increase work-stack size
35417 to be able to use quick_push in the worker loop.
35419 2013-01-30 Marek Polacek <polacek@redhat.com>
35421 * cfgcleanup.c (cleanup_cfg): Don't mark affected BBs.
35423 2013-01-30 Richard Biener <rguenther@suse.de>
35426 * lto-symtab.c (lto_symtab_merge_decls_1): Guard DECL_BUILT_IN check.
35428 2013-01-30 Georg-Johann Lay <avr@gjlay.de>
35430 PR tree-optimization/56064
35431 * fixed-value.c (fixed_from_double_int): New function.
35432 * fixed-value.h (fixed_from_double_int): New prototype.
35433 (const_fixed_from_double_int): New static inline function.
35434 * fold-const.c (native_interpret_fixed): New static function.
35435 (native_interpret_expr) <FIXED_POINT_TYPE>: Use it.
35436 (can_native_interpret_type_p) <FIXED_POINT_TYPE>: Return true.
35437 (native_encode_fixed): New static function.
35438 (native_encode_expr) <FIXED_CST>: Use it.
35439 (native_interpret_int): Move double_int worker code to...
35440 * double-int.c (double_int::from_buffer): ...this new static method.
35441 * double-int.h (double_int::from_buffer): Prototype it.
35443 2013-01-30 Richard Biener <rguenther@suse.de>
35445 * tree-ssa-structalias.c (final_solutions, final_solutions_obstack):
35446 New pointer-map and obstack.
35447 (init_alias_vars): Allocate pointer-map and obstack.
35448 (delete_points_to_sets): Free them.
35449 (find_what_var_points_to): Cache result.
35450 (find_what_p_points_to): Adjust for changed interface of
35451 find_what_var_points_to.
35452 (compute_points_to_sets): Likewise.
35453 (ipa_pta_execute): Likewise.
35455 2013-01-30 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
35457 * configure.ac (HAVE_AS_SPARC_NOBITS): New test.
35458 * configure: Regenerate.
35459 * config.in: Regenerate.
35460 * config/sparc/sparc.c (sparc_solaris_elf_asm_named_section): Emit
35461 #nobits/#progbits if supported.
35463 2013-01-29 Oleg Endo <olegendo@gcc.gnu.org>
35466 * config/sh/sh.md (bclr_m2a, bset_m2a, bst_m2a, bld_m2a, bldsign_m2a,
35467 bld_reg, *bld_regqi, band_m2a, bandreg_m2a, bor_m2a, borreg_m2a,
35468 bxor_m2a, bxorreg_m2a): Add satisfies_constraint_K03 condition.
35470 2013-01-29 Greta Yorsh <Greta.Yorsh@arm.com>
35472 * config/arm/cortex-a7.md (cortex_a7_neon, cortex_a7_all): Remove.
35473 (cortex_a7_idiv): Use cortex_a7_both instead of cortex_a7_all.
35475 2013-01-29 Greta Yorsh <Greta.Yorsh@arm.com>
35477 * config/arm/arm.c (cortexa7_younger): Return true for TYPE_CALL.
35478 * config/arm/cortex-a7.md (cortex_a7_call): Update required units.
35480 2013-01-29 Greta Yorsh <Greta.Yorsh@arm.com>
35482 * config/arm/arm-protos.h (arm_mac_accumulator_is_result): New
35484 * config/arm/arm.c (arm_mac_accumulator_is_result): New function.
35485 * config/arm/cortex-a7.md: New bypasses using
35486 arm_mac_accumulator_is_result.
35488 2013-01-29 Greta Yorsh <Greta.Yorsh@arm.com>
35490 * config/arm/cortex-a7.md (cortex_a7_neon_mul): New reservation.
35491 (cortex_a7_neon_mla): Likewise.
35492 (cortex_a7_fpfmad): New reservation.
35493 (cortex_a7_fpmacs): Use ffmas and update required units.
35494 (cortex_a7_fpmuld): Update required units and latency.
35495 (cortex_a7_fpmacd): Likewise.
35496 (cortex_a7_fdivs, cortex_a7_fdivd): Likewise.
35497 (cortex_a7_neon). Likewise.
35498 (bypass) Update participating units.
35500 2013-01-29 Greta Yorsh <Greta.Yorsh@arm.com>
35502 * config/arm/arm.md (type): Add ffmas and ffmad to "type" attribute.
35503 * config/arm/vfp.md (fma,fmsub,fnmsub,fnmadd): Change type
35505 * config/arm/vfp11.md (vfp_farith): Use ffmas.
35506 (vfp_fmul): Use ffmad.
35507 * config/arm/cortex-r4f.md (cortex_r4_fmacs): Use ffmas.
35508 (cortex_r4_fmacd): Use ffmad.
35509 * config/arm/cortex-m4-fpu.md (cortex_m4_fmacs): Use ffmas.
35510 * config/arm/cortex-a9.md (cortex_a9_fmacs): Use ffmas.
35511 (cortex_a9_fmacd): Use ffmad.
35512 * config/arm/cortex-a8-neon.md (cortex_a8_vfp_macs): Use ffmas.
35513 (cortex_a8_vfp_macd): Use ffmad.
35514 * config/arm/cortex-a5.md (cortex_a5_fpmacs): Use ffmas.
35515 (cortex_a5_fpmacd): Use ffmad.
35516 * config/arm/cortex-a15-neon.md (cortex_a15_vfp_macs) Use ffmas.
35517 (cortex_a15_vfp_macd): Use ffmad.
35518 * config/arm/arm1020e.md (v10_fmul): Use ffmas and ffmad.
35520 2013-01-29 Jason Merrill <jason@redhat.com>
35523 * varasm.c (default_assemble_visibility): Don't warn about
35524 visibility on artificial decls.
35526 2013-01-29 Richard Biener <rguenther@suse.de>
35528 PR tree-optimization/56113
35529 * tree-ssa-structalias.c (equiv_class_lookup): Also return
35531 (label_visit): Free duplicate bitmaps and record the leader instead.
35532 (perform_var_substitution): Adjust.
35534 2013-01-29 Richard Biener <rguenther@suse.de>
35536 PR tree-optimization/55270
35537 * tree-ssa-dom.c (eliminate_degenerate_phis): If we changed
35538 the CFG, schedule loops for fixup.
35540 2013-01-29 Nick Clifton <nickc@redhat.com>
35542 * config/rl78/rl78.c (rl78_regno_mode_code_ok_for_base_p): Allow
35545 2013-01-28 Leif Ekblad <leif@rdos.net>
35547 * config.gcc (i[34567]86-*-rdos*, x86_64-*-rdos*): New targets.
35548 * config/i386/i386.h (TARGET_RDOS): New macro.
35549 (DEFAULT_LARGE_SECTION_THRESHOLD): New macro.
35550 * config/i386/i386.c (ix86_option_override_internal): For 64bit
35551 TARGET_RDOS, set ix86_cmodel to CM_MEDIUM_PIC and flag_pic to 1.
35552 * config/i386/i386.opt (mlarge-data-threshold): Initialize to
35553 DEFAULT_LARGE_SECTION_THRESHOLD.
35554 * config/i386/i386.md (R14_REG, R15_REG): New constants.
35555 * config/i386/rdos.h: New file.
35556 * config/i386/rdos64.h: New file.
35558 2013-01-28 Bernd Schmidt <bernds@codesourcery.com>
35561 * reload.c (find_valid_class_1): Use in_hard_reg_set_p instead of
35564 2013-01-28 Jakub Jelinek <jakub@redhat.com>
35566 PR rtl-optimization/56117
35567 * sched-deps.c (sched_analyze_2) <case PREFETCH>: For use_cselib
35568 call cselib_lookup_from_insn on the MEM before calling
35569 add_insn_mem_dependence.
35571 2013-01-28 Richard Biener <rguenther@suse.de>
35573 * tree-inline.c (remap_gimple_stmt): Do not assing a BLOCK
35574 to a stmt that didn't have one.
35575 (copy_phis_for_bb): Likewise for PHI arguments.
35576 (copy_debug_stmt): Likewise for debug stmts.
35578 2013-01-28 Richard Biener <rguenther@suse.de>
35580 PR tree-optimization/56034
35581 * tree-loop-distribution.c (enum partition_kind): Add PKIND_REDUCTION.
35582 (partition_builtin_p): Adjust.
35583 (generate_code_for_partition): Handle PKIND_REDUCTION. Assert
35584 it is the last partition.
35585 (rdg_flag_uses): Check SSA_NAME_IS_DEFAULT_DEF before looking
35586 up the vertex for the definition.
35587 (classify_partition): Classify whether a partition is a
35588 PKIND_REDUCTION, thus has uses outside of the loop.
35589 (ldist_gen): Inherit PKIND_REDUCTION when merging partitions.
35590 Merge all PKIND_REDUCTION partitions into the last partition.
35591 (tree_loop_distribution): Seed partitions from reductions as well.
35593 2013-01-28 Jakub Jelinek <jakub@redhat.com>
35595 PR tree-optimization/56125
35596 * tree-ssa-math-opts.c (gimple_expand_builtin_pow): Don't optimize
35597 pow(x,c) into sqrt(x) * powi(x, n/2) or
35598 1.0 / (sqrt(x) * powi(x, abs(n/2))) if c is an integer or when
35599 optimizing for size.
35600 Don't optimize pow(x,c) into powi(x, n/3) * powi(cbrt(x), n%3) or
35601 1.0 / (powi(x, abs(n)/3) * powi(cbrt(x), abs(n)%3)) if 2c is an
35604 PR tree-optimization/56094
35605 * gimplify.c (force_gimple_operand_1): Temporarily set input_location
35606 to UNKNOWN_LOCATION while gimplifying expr.
35608 2013-01-27 Uros Bizjak <ubizjak@gmail.com>
35611 * config/i386/i386.md (*movabs<mode>_1): Add square brackets around
35612 operand 0 in movabs insn template for -masm=intel asm alternative.
35613 (*movabs<mode>_2): Ditto for operand 1.
35615 2013-01-26 David Holsgrove <david.holsgrove@xilinx.com>
35618 * config.gcc (microblaze*-linux*): Add tmake_file to allow building
35621 2013-01-26 Edgar E. Iglesias <edgar.iglesias@gmail.com>
35623 * config.gcc (microblaze*-*-*): Rename microblaze*-*-elf, update
35626 2013-01-25 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
35628 * config/aarch64/aarch64.c (TARGET_FIXED_CONDITION_CODE_REGS):
35629 Undef to avoid warning.
35631 2013-01-25 Michael Haubenwallner <michael.haubenwallner@salomon.at>
35633 * configure.ac (gcc_cv_ld_static_dynamic): Define for AIX native ld.
35634 * configure: Regenerate.
35636 2013-01-25 Jakub Jelinek <jakub@redhat.com>
35638 PR tree-optimization/56098
35639 * tree-ssa-phiopt.c (nt_init_block): Don't call add_or_mark_expr
35640 for stmts with volatile ops.
35641 (cond_store_replacement): Don't optimize if assign has volatile ops.
35642 (cond_if_else_store_replacement_1): Don't optimize if either
35643 then_assign or else_assign have volatile ops.
35644 (hoist_adjacent_loads): Don't optimize if either def1 or def2 have
35647 2013-01-25 Georg-Johann Lay <avr@gjlay.de>
35649 * doc/invoke.texi (AVR Built-in Macros): Document __XMEGA__.
35651 2013-01-25 Georg-Johann Lay <avr@gjlay.de>
35653 * doc/extend.texi (Example of asm with clobbered asm reg): Fix
35654 missing ':' in asm example.
35656 2013-01-25 Tejas Belagod <tejas.belagod@arm.com>
35658 * config/aarch64/aarch64-simd-builtins.def: Separate sq<r>dmulh_lane
35659 entries into lane and laneq entries.
35660 * config/aarch64/aarch64-simd.md (aarch64_sq<r>dmulh_lane<mode>):
35661 Remove AdvSIMD scalar modes.
35662 (aarch64_sq<r>dmulh_laneq<mode>): New.
35663 (aarch64_sq<r>dmulh_lane<mode>): New RTL pattern for Scalar AdvSIMD
35665 * config/aarch64/arm_neon.h: Fix all the vq<r>dmulh_lane* intrinsics'
35666 builtin implementations to relfect changes in RTL in aarch64-simd.md.
35667 * config/aarch64/iterators.md (VCOND): New.
35670 2013-01-25 Georg-Johann Lay <avr@gjlay.de>
35673 * config/avr/builtins.def (DEF_BUILTIN): Add LIBNAME argument.
35674 Add NULL LIBNAME argument to existing definitions.
35675 (ABSHR, ABSR, ABSLR, ABSLLR, ABSHK, ABSK, ABSLK, ABSLLK): New.
35676 * config/avr/avr-c.c (DEF_BUILTIN): Add LIBNAME argument.
35677 * config/avr/avr.c (DEF_BUILTIN): Same.
35678 (avr_init_builtins): Pass down LIBNAME to add_builtin_function.
35679 (avr_expand_builtin): Expand to a vanilla call if a libgcc
35680 implementation is available (DECL_ASSEMBLER_NAME is set).
35681 (avr_fold_absfx): New static function.
35682 (avr_fold_builtin): Use it to handle: AVR_BUILTIN_ABSHR,
35683 AVR_BUILTIN_ABSR, AVR_BUILTIN_ABSLR, AVR_BUILTIN_ABSLLR,
35684 AVR_BUILTIN_ABSHK, AVR_BUILTIN_ABSK, AVR_BUILTIN_ABSLK,
35685 AVR_BUILTIN_ABSLLK.
35686 * config/avr/stdfix.h (abshr, absr, abslr, absllr)
35687 (abshk, absk, abslk, absllk): Provide as static inline functions.
35689 2013-01-25 Marek Polacek <polacek@redhat.com>
35691 PR tree-optimization/56035
35692 * cfgloopmanip.c (fix_loop_structure): Remove redundant condition.
35694 2012-01-24 Uros Bizjak <ubizjak@gmail.com>
35696 * config/i386/i386.md (*movti_internal_rex64): Add (o,e) alternative.
35697 (*movtf_internal_rex64): Add (!o,C) alternative
35698 (*movxf_internal_rex64): Ditto.
35699 (*movdf_internal_rex64): Add (?r,C) and (?m,C) alternatives.
35701 2013-01-24 Shenghou Ma <minux.ma@gmail.com>
35703 * doc/invoke.texi: fix typo.
35704 * doc/objc.texi: fix typo.
35706 2013-01-24 Richard Sandiford <rdsandiford@googlemail.com>
35708 * config/mips/mips.md (*and<mode>3_mips16): Use the "W" constraint
35709 for the first two alternatives.
35711 2013-01-24 Diego Novillo <dnovillo@google.com>
35713 * Makefile.in (GGC): Remove. Replace all instances with ggc-page.o.
35714 (ggc-zone.o): Remove.
35715 * configure.ac: Remove option --with-gc.
35716 * configure: Re-generate.
35717 * doc/install.texi: Remove documentation for --with-gc.
35718 * gengtype.c (write_enum_defn): Remove. Update all users.
35719 (write_Types_process_field): Remove generation of gt_e_* argument.
35720 (output_type_enum): Remove. Update all users.
35721 (write_enum_defn): Remove. Update all users.
35722 (enum alloc_zone): Remove. Update all users.
35723 (write_splay_tree_allocator_def): Remove generation of gt_e_* argument.
35724 * ggc-common.c (ggc_splay_alloc): Remove first argument.
35725 Update all callers.
35726 (struct ptr_data): Remove field TYPE. Update all users.
35727 (gt_pch_note_object): Remove argument TYPE. Update all users.
35728 * ggc-internal.h (ggc_pch_alloc_object): Remove last argument.
35730 * ggc-none.c (ggc_alloc_typed_stat): Remove.
35731 (struct alloc_zone): Remove.
35732 (ggc_internal_alloc_zone_stat): Remove.
35733 (ggc_internal_cleared_alloc_zone_stat): Remove.
35734 * ggc-page.c (ggc_alloc_typed_stat): Remove.
35735 (ggc_pch_count_object): Remove last argument. Update all users.
35736 (ggc_pch_alloc_object): Remove last argument. Update all users.
35737 (struct alloc_zone): Remove.
35738 * ggc-zone.c: Remove.
35739 * ggc.h (gt_pch_note_object): Remove last argument. Update all users.
35740 (struct alloc_zone): Remove.
35741 (ggc_alloc_typed_stat): Remove.
35742 (ggc_alloc_typed): Remove.
35743 (ggc_splay_alloc): Remove first argument.
35744 (rtl_zone): Remove. Update all users.
35745 (tree_zone): Remove. Update all users.
35746 (tree_id_zone): Remove. Update all users.
35747 (ggc_internal_zone_alloc_stat): Remove. Update all users.
35748 (ggc_internal_zone_cleared_alloc_stat): Remove. Update all users.
35749 (ggc_internal_zone_vec_alloc_stat): Remove. Update all users.
35750 * tree-ssanames.c: Remove references to zone allocator in comments.
35752 2013-01-24 Georg-Johann Lay <avr@gjlay.de>
35754 * config/avr/avr.c (avr_out_fract): Make register numbers that
35755 might be outside of source operand signed.
35757 2013-01-24 Uros Bizjak <ubizjak@gmail.com>
35759 * config/i386/constraints.md (Yf): New constraint.
35760 * config/i386/i386.md (*movdf_internal_rex64): Use Yf*f instead
35761 of f constraint to conditionaly disable x87 register preferences.
35762 (*movdf_internal): Ditto.
35763 (*movsf_internal): Ditto.
35765 2013-01-24 Steven Bosscher <steven@gcc.gnu.org>
35767 PR inline-asm/55934
35768 * lra-assigns.c (assign_by_spills): Throw away the pattern of asms
35769 that have operands with impossible constraints.
35770 Add a FIXME for a speed-up opportunity.
35771 * lra-constraints.c (process_alt_operands): Verify that a class
35772 selected from constraints on asms is valid for the operand mode.
35773 (curr_insn_transform): Remove incorrect comment.
35775 2013-01-23 David Edelsohn <dje.gcc@gmail.com>
35777 * config/rs6000/rs6000.c (rs6000_delegitimize_address): Check that
35778 TOC operand is a valid symbol ref in the constant pool.
35780 2013-01-23 Edgar E. Iglesias <edgar.iglesias@gmail.com>
35782 * config/microblaze/linux.h: Add TARGET_OS_CPP_BUILTINS
35784 2013-01-23 Georg-Johann Lay <avr@gjlay.de>
35787 * config/avr/stdfix.h: New file.
35788 * t-avr (stdfix-gcc.h): New rule to build it.
35789 (EXTRA_HEADERS): Set it to install stdfix.h, stdfix-gcc.h.
35791 2013-01-23 Kostya Serebryany <kcc@google.com>
35793 * config/darwin.h: remove dependency on
35794 CoreFoundation (asan on Mac OS).
35796 2013-01-23 Jakub Jelinek <jakub@redhat.com>
35799 * config/arm/arm.md (cbranchdi4, cstoredi4): Use s_register_operand
35800 instead of cmpdi_operand for first comparison operand.
35801 Don't assert that comparison operands aren't both constants.
35803 2013-01-22 Jonathan Wakely <jwakely.gcc@gmail.com>
35805 * doc/install.texi (Downloading the Source): Update references to
35806 downloading separate components.
35808 2013-01-22 Jonathan Wakely <jwakely.gcc@gmail.com>
35810 * doc/extend.texi (__int128): Improve grammar.
35812 2013-01-22 Uros Bizjak <ubizjak@gmail.com>
35815 * config/i386/i386.md (*movti_internal_rex64): Change (o,riF)
35816 alternative to (o,r).
35817 (*movdi_internal_rex64): Remove (!o,n) alternative.
35818 (DImode immediate->memory splitter): Remove.
35819 (DImode immediate->memory peephole2): Remove.
35820 (movtf): Enable for TARGET_64BIT || TARGET_SSE.
35821 (*movtf_internal_rex64): Rename from *movtf_internal. Change (!o,F*r)
35822 alternative to (!o,*r).
35823 (*movtf_internal_sse): New pattern.
35824 (*movxf_internal_rex64): New pattern.
35825 (*movxf_internal): Disable for TARGET_64BIT.
35826 (*movdf_internal_rex64): Remove (!o,F) alternative.
35828 2013-01-22 Jakub Jelinek <jakub@redhat.com>
35830 PR middle-end/56074
35831 * dumpfile.c (dump_loc): Only print loc if LOCATION_LOCUS (loc)
35832 isn't UNKNOWN_LOCATION nor BUILTINS_LOCATION.
35833 * tree-vect-loop-manip.c (find_loop_location): Also ignore
35834 stmt locations where LOCATION_LOCUS of the stmt location is
35835 UNKNOWN_LOCATION or BUILTINS_LOCATION.
35838 * config/i386/i386.md (UNSPEC_STOS): New.
35839 (strset_singleop, *strsetdi_rex_1, *strsetsi_1, *strsethi_1,
35840 *strsetqi_1): Add UNSPEC_STOS.
35842 2013-01-22 Paolo Carlini <paolo.carlini@oracle.com>
35845 * doc/invoke.texi: Remove left over -Wsynth example.
35847 2013-01-21 Jakub Jelinek <jakub@redhat.com>
35849 PR tree-optimization/56051
35850 * fold-const.c (fold_binary_loc): Don't fold
35851 X < (cast) (1 << Y) into (X >> Y) != 0 if cast is either
35852 a narrowing conversion, or widening conversion from signed
35855 2013-01-21 Uros Bizjak <ubizjak@gmail.com>
35857 PR rtl-optimization/56023
35858 * haifa-sched.c (fix_inter_tick): Do not update ticks of instructions,
35859 dependent on debug instruction.
35861 2013-01-21 Martin Jambor <mjambor@suse.cz>
35863 PR middle-end/56022
35864 * function.c (allocate_struct_function): Call
35865 invoke_set_current_function_hook earlier.
35867 2013-01-21 Jakub Jelinek <jakub@redhat.com>
35869 * reload1.c (init_reload): Only initialize reload_obstack
35870 during the first call.
35872 2013-01-21 Marek Polacek <polacek@redhat.com>
35874 * cfgloop.c (verify_loop_structure): Fix up grammar.
35876 2013-01-21 Yi-Hsiu Hsu <ahsu@marvell.com>
35878 * config/arm/marvell-pj4.md (pj4_shift_conds, pj4_alu_shift,
35879 pj4_alu_shift_conds, pj4_shift): Handle simple_alu_shift.
35881 2013-01-21 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
35884 * config/arm/marvell-pj4.md: Update copyright year.
35885 Fix up use of alu to alu_reg and simple_alu_imm.
35887 2013-01-21 Uros Bizjak <ubizjak@gmail.com>
35889 * config/i386/i386.md (enabled): Do not disable fma4 for TARGET_FMA.
35891 2013-01-20 Vladimir Makarov <vmakarov@redhat.com>
35894 * lra-constraints.c (curr_insn_transform): Don't reuse original
35895 insn for secondary memory move when memory mode should be different.
35897 2013-01-20 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
35899 * config/pa/pa.md (atomic_loaddi, atomic_loaddi_1, atomic_storedi,
35900 atomic_storedi_1): New patterns.
35902 2013-01-20 Venkataramanan Kumar <venkataramanan.kumar@amd.com>
35904 btver2 pipeline descriptions.
35905 * config/i386/i386.c: Enable CPU_BTVER2 to use btver2 pipeline
35907 * config/i386/i386.md (btver2_decode): New type attributes.
35908 * config/i386/sse.md (btver2_decode, btver2_sse_attr): New
35910 * config/i386/btver2.md: New file describing btver2 pipelines.
35912 2013-01-19 Andrew Pinski <apinski@cavium.com>
35914 PR tree-optimization/52631
35915 * tree-ssa-sccvn (visit_use): Before looking up the original
35916 statement, try looking up the simplified expression.
35918 2013-01-19 Anthony Green <green@moxielogic.com>
35920 * config/moxie/moxie.c (moxie_expand_prologue): Set
35921 current_function_static_stack_size.
35923 2013-01-18 Jakub Jelinek <jakub@redhat.com>
35925 PR tree-optimization/56029
35926 * tree-phinodes.c (reserve_phi_args_for_new_edge): Set
35927 gimple_phi_arg_location for the new arg to UNKNOWN_LOCATION.
35929 2013-01-18 Sharad Singhai <singhai@google.com>
35931 PR tree-optimization/55995
35932 * dumpfile.c (dump_loc): Print location only if available.
35933 * tree-vectorizer.c (increase_alignment): Intialize vect_location.
35935 2013-01-18 Vladimir Makarov <vmakarov@redhat.com>
35938 * lra-constraints.c (curr_insn_transform): Reuse original insn for
35939 secondary memory move.
35940 (inherit_reload_reg): Use rclass instead of cl for
35941 check_secondary_memory_needed_p.
35943 2013-01-18 Jakub Jelinek <jakub@redhat.com>
35945 PR middle-end/56015
35946 * expr.c (expand_expr_real_2) <case COMPLEX_EXPR>: Handle
35947 the case where writing real complex part of target modifies op1.
35949 2013-01-18 James Greenhalgh <james.greenhalgh@arm.com>
35951 * config/aarch64/aarch64-simd.md
35952 (aarch64_vcond_internal<mode>): Handle unordered cases.
35953 * config/aarch64/iterators.md (v_cmp_result): New.
35955 2013-01-18 Yi-Hsiu Hsu <ahsu@marvell.com>
35956 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
35958 * config/arm/marvell-pj4.md: New file.
35959 * config/arm/arm.c (arm_issue_rate): Add marvell_pj4.
35960 * config/arm/arm.md (generic_sched): Add marvell_pj4.
35961 (generic_vfp): Likewise.
35962 * config/arm/arm-cores.def: Add marvell-pj4.
35963 * config/arm/arm-tune.md: Regenerate.
35964 * config/arm/arm-tables.opt: Regenerate.
35965 * config/arm/bpabi.h (BE8_LINK_SPEC): Add marvell_pj4.
35966 * doc/invoke.texi: Document marvell-pj4.
35968 2013-01-18 Tejas Belagod <tejas.belagod@arm.com>
35970 * config/aarch64/arm_neon.h: Map scalar types to standard types.
35972 2013-01-18 Alexandre Oliva <aoliva@redhat.com>
35977 * var-tracking.c (negative_power_of_two_p): New.
35978 (global_get_addr_cache, local_get_addr_cache): New.
35979 (get_addr_from_global_cache, get_addr_from_local_cache): New.
35980 (vt_canonicalize_addr): Rewrite using the above. Adjust the
35982 (vt_stack_offset_p): Remove.
35983 (vt_canon_true_dep): Always canonicalize loc's address.
35984 (clobber_overlapping_mems): Make sure we have a MEM.
35985 (local_get_addr_clear_given_value): New.
35986 (val_reset): Clear local cached entries.
35987 (compute_bb_dataflow): Create and release the local cache.
35988 Disable duplicate MEMs clobbering.
35989 (emit_notes_in_bb): Clobber MEMs likewise.
35990 (vt_emit_notes): Create and release the local cache.
35991 (vt_initialize, vt_finalize): Create and release the global
35992 cache, respectively.
35993 * alias.c (rtx_equal_for_memref_p): Compare operands of ENTRY_VALUEs.
35995 2013-01-18 Alexandre Oliva <aoliva@redhat.com>
35997 PR libmudflap/53359
35998 * tree-mudflap.c (mudflap_finish_file): Skip deferred decls
35999 not found in the symtab.
36001 2013-01-18 Alexandre Oliva <aoliva@redhat.com>
36004 PR rtl-optimization/55547
36005 PR rtl-optimization/53827
36008 * alias.c (offset_overlap_p): New, factored out of...
36009 (memrefs_conflict_p): ... this. Use absolute sizes. Retain
36010 the conservative special case for symbolic constants. Don't
36011 adjust zero sizes on alignment.
36013 2013-01-18 Bernd Schmidt <bernds@codesourcery.com>
36015 PR rtl-optimization/52573
36016 * regrename.c (build_def_use): Ignore REG_DEAD notes if there is a
36017 REG_UNUSED for the same register.
36019 2013-01-17 Richard Biener <rguenther@suse.de>
36020 Marek Polacek <polacek@redhat.com>
36022 PR rtl-optimization/55833
36023 * loop-unswitch.c (unswitch_loops): Move loop verification...
36024 (unswitch_single_loop): ...here. Call mark_irreducible_loops.
36025 * cfgloopmanip.c (fix_loop_placement): Add IRRED_INVALIDATED parameter.
36026 Set it to true when we're removing a loop from hierarchy tree in
36027 an irreducible region.
36028 (fix_bb_placements): Adjust caller.
36029 (fix_loop_placements): Likewise.
36031 2013-01-17 Georg-Johann Lay <avr@gjlay.de>
36033 * config/avr/builtins.def (DEF_BUILTIN): Factor out
36034 "__builtin_avr_" from NAME, turn NAME to an uppercase identifier.
36035 Factor out 'CODE_FOR_' from ICODE, use 'nothing' instead of '-1'.
36036 Remove ID. Adjust comments.
36037 * config/avr/avr-c.c (avr_builtin_name): Remove.
36038 (avr_cpu_cpp_builtins): Use DEF_BUILTIN instead of for-loop.
36039 * config/avr/avr.c (avr_tolower): New static function.
36040 (DEF_BUILTIN): Remove parameter ID. Prefix ICODE by 'CODE_FOR_'.
36041 Stringify NAME, prefix it with "__builtin_avr_" and lowercase it.
36042 (avr_expand_builtin): Assert insn_code != CODE_FOR_nothing for
36045 2013-01-17 Jan Hubicka <jh@suse.cz>
36047 PR tree-optimization/55273
36048 * loop-iv.c (iv_number_of_iterations): Consider zero iteration case.
36050 2013-01-17 Uros Bizjak <ubizjak@gmail.com>
36053 * config/i386/sync.md (atomic_store<mode>): Always generate SWImode
36054 store through atomic_store<mode>_1.
36055 (atomic_store<mode>_1): Macroize insn using SWI mode iterator.
36057 2013-01-17 Martin Jambor <mjambor@suse.cz>
36059 PR tree-optimizations/55264
36060 * ipa-inline-transform.c (can_remove_node_now_p_1): Never return true
36061 for virtual methods.
36062 * ipa.c (symtab_remove_unreachable_nodes): Never return true for
36063 virtual methods before inlining is over.
36064 * cgraph.h (cgraph_only_called_directly_or_aliased_p): Return false for
36066 * cgraphclones.c (cgraph_create_virtual_clone): Mark clones as
36069 2013-01-16 Vladimir Makarov <vmakarov@redhat.com>
36071 PR rtl-optimization/56005
36072 * sched-deps.c (sched_analyze_2): Check deps->readonly for adding
36073 pending reads for prefetch.
36075 2013-01-16 Ian Bolton <ian.bolton@arm.com>
36077 * config/aarch64/aarch64.md
36078 (*cstoresi_neg_uxtw): New pattern.
36079 (*cmovsi_insn_uxtw): New pattern.
36080 (*<optab>si3_uxtw): New pattern.
36081 (*<LOGICAL:optab>_<SHIFT:optab>si3_uxtw): New pattern.
36082 (*<optab>si3_insn_uxtw): New pattern.
36083 (*bswapsi2_uxtw): New pattern.
36085 2013-01-16 Richard Biener <rguenther@suse.de>
36087 * tree-inline.c (tree_function_versioning): Remove set but
36088 never used variable.
36090 2013-01-16 Richard Biener <rguenther@suse.de>
36092 PR tree-optimization/55964
36093 * tree-flow.h (rename_variables_in_loop): Remove.
36094 (rename_variables_in_bb): Likewise.
36095 * tree-loop-distribution.c (update_phis_for_loop_copy): Remove.
36096 (copy_loop_before): Adjust and delete update-ssa status.
36097 * tree-vect-loop-manip.c (rename_variables_in_bb): Make static.
36098 (rename_variables_in_bb): Likewise. Properly walk over predecessors.
36099 (rename_variables_in_loop): Remove.
36100 (slpeel_update_phis_for_duplicate_loop): Likewise.
36101 (slpeel_tree_duplicate_loop_to_edge_cfg): Handle nested loops,
36102 use available cfg machinery instead of duplicating it.
36103 Update PHI nodes and perform poor-mans SSA update here.
36104 (slpeel_tree_peel_loop_to_edge): Adjust.
36106 2013-01-16 Richard Biener <rguenther@suse.de>
36108 PR tree-optimization/54767
36109 PR tree-optimization/53465
36110 * tree-vrp.c (vrp_meet_1): Revert original fix for PR53465.
36111 (vrp_visit_phi_node): For PHI arguments coming via backedges
36112 drop all symbolical range information.
36113 (execute_vrp): Compute backedges.
36115 2013-01-16 Richard Biener <rguenther@suse.de>
36117 * doc/install.texi: Update CLooG and ISL requirements to
36120 2013-01-16 Christian Bruel <christian.bruel@st.com>
36123 * config/sh/sh.c (sh_expand_prologue): Postpone new_stack mem symbol.
36124 (broken_move): Handle UNSPECV_SP_SWITCH_B.
36125 * config/sh/sh.md (sp_switch_1): Use set (reg:SI SP_REG).
36127 2013-01-16 DJ Delorie <dj@redhat.com>
36129 * config/sh/sh.md (UNSPECV_SP_SWITCH_B): New.
36130 (UNSPECV_SP_SWITCH_E): New.
36131 (sp_switch_1): Change to an unspec.
36132 (sp_switch_2): Change to an unspec. Don't use post-inc when we
36135 2013-01-16 Uros Bizjak <ubizjak@gmail.com>
36137 * emit-rtl.c (need_atomic_barrier_p): Mask memory model argument
36138 with MEMMODEL_MASK before comparing with MEMMODEL_* memory types.
36139 * optabs.c (maybe_emit_sync_lock_test_and_set): Ditto.
36140 (expand_mem_thread_fence): Ditto.
36141 (expand_mem_signal_fence): Ditto.
36142 (expand_atomic_load): Ditto.
36143 (expand_atomic_store): Ditto.
36145 2013-01-16 Alexandre Oliva <aoliva@redhat.com>
36147 PR rtl-optimization/55547
36148 PR rtl-optimization/53827
36151 * alias.c (memrefs_conflict_p): Set sizes to negative after
36154 2013-01-15 Jakub Jelinek <jakub@redhat.com>
36157 * function.c (thread_prologue_and_epilogue_insns): Always
36158 add crtl->drap_reg to set_up_by_prologue.set, even if
36159 stack_realign_drap is false.
36161 2013-01-15 Jan-Benedict Glaw <jbglaw@lug-owl.de>
36163 * config/vax/vax.md (add<mode>3, sub<mode>3, mul<mode>3, div<mode>3,
36164 and<mode>3, *and<mode>_const_int, ior<mode>3, xor<mode>3, ashrsi3,
36165 *call): Fix indention.
36167 2013-01-15 Tom de Vries <tom@codesourcery.com>
36170 * optabs.c (widen_operand): Use gen_lowpart instead of gen_rtx_SUBREG.
36173 2013-01-15 Vladimir Makarov <vmakarov@redhat.com>
36175 PR rtl-optimization/55153
36176 * sched-deps.c (sched_analyze_2): Add pending reads for prefetch.
36178 2013-01-15 Martin Jambor <mjambor@suse.cz>
36180 PR tree-optimization/55920
36181 * tree-sra.c (analyze_access_subtree): Do not mark non-removable
36182 accesses as grp_to_be_debug_replaced.
36184 2013-01-15 Jakub Jelinek <jakub@redhat.com>
36186 PR tree-optimization/55920
36187 * tree-sra.c (sra_modify_assign): If for lacc->grp_to_be_debug_replaced
36188 there is non-useless type conversion needed from debug rhs to lhs,
36189 use build_debug_ref_for_model and/or VIEW_CONVERT_EXPR.
36191 2013-01-15 Joseph Myers <joseph@codesourcery.com>
36192 Mikael Pettersson <mikpe@it.uu.se>
36195 * config/arm/arm.h (ADDR_VEC_ALIGN): Align SImode jump tables for
36197 (ASM_OUTPUT_CASE_LABEL): Remove.
36198 (ASM_OUTPUT_BEFORE_CASE_LABEL): Define to empty.
36199 * final.c (shorten_branches): Update alignment of labels before
36200 jump tables if CASE_VECTOR_SHORTEN_MODE.
36202 2013-01-15 Richard Biener <rguenther@suse.de>
36205 * system.h: Do not include gmp.h for building host tools.
36207 2013-01-15 Richard Biener <rguenther@suse.de>
36209 PR middle-end/55882
36210 * emit-rtl.c (set_mem_attributes_minus_bitpos): Correctly
36211 account for bitpos when computing alignment.
36213 2013-01-15 Vladimir Yakovlev <vladimir.b.yakovlev@intel.com>
36215 * config/i386/i386-c.c (ix86_target_macros_internal): New case.
36216 (ix86_target_macros_internal): Likewise.
36218 * config/i386/i386.c (m_CORE2I7): Removed.
36219 (m_CORE_HASWELL): New macro.
36220 (m_CORE_ALL): Likewise.
36221 (initial_ix86_tune_features): m_CORE2I7 is replaced by m_CORE_ALL.
36222 (initial_ix86_arch_features): Likewise.
36223 (processor_target_table): Initializations for Core avx2.
36224 (cpu_names): New names "core-avx2".
36225 (ix86_option_override_internal): Changed PROCESSOR_COREI7 by
36226 PROCESSOR_CORE_HASWELL.
36227 (ix86_issue_rate): New case.
36228 (ia32_multipass_dfa_lookahead): Likewise.
36229 (ix86_sched_init_global): Likewise.
36231 * config/i386/i386.h (TARGET_HASWELL): New macro.
36232 (target_cpu_default): New TARGET_CPU_DEFAULT_haswell.
36233 (processor_type): New PROCESSOR_HASWELL.
36235 2013-01-15 Jakub Jelinek <jakub@redhat.com>
36237 PR tree-optimization/55955
36238 * tree-vect-loop.c (vectorizable_reduction): Give up early on
36239 *SHIFT_EXPR and *ROTATE_EXPR codes.
36241 PR tree-optimization/48766
36242 * opts.c (common_handle_option): For -fwrapv disable -ftrapv, for
36243 -ftrapv disable -fwrapv.
36245 2013-01-14 Georg-Johann Lay <avr@gjlay.de>
36248 * config/avr/avr-c.c (avr_cpu_cpp_builtins): Define __FLASH
36249 etc. to 1 and not to __flash.
36250 Use LL suffix for __INT24_MAX__ with -mint8.
36251 Use ULL suffix for __UINT24_MAX__ with -mint8.
36253 2013-01-14 Georg-Johann Lay <avr@gjlay.de>
36255 * config/avr/avr-arch.h
36256 (struct base_arch_s): Use typedef avr_arch_t instead.
36257 (struct arch_info_s): Use typedef avr_arch_info_t instead.
36258 (struct mcu_type_s): Use typedef avr_mcu_t instead.
36259 * config/avr/avr.c: Same.
36260 * config/avr/avr-devices.c: Same.
36261 * config/avr/driver-avr.c: Same.
36262 * config/avr/gen-avr-mmcu-texi.c: Same.
36263 * config/avr/avr-mcus.def: Adjust comment.
36265 2013-01-14 Tejas Belagod <tejas.belagod@arm.com>
36267 * config/aarch64/aarch64-simd.md (*aarch64_simd_ld1r<mode>): New.
36268 * config/aarch64/iterators.md (VALLDI): New.
36270 2013-01-14 Uros Bizjak <ubizjak@gmail.com>
36271 Andi Kleen <ak@linux.intel.com>
36274 * config/i386/sync.md (atomic_store<mode>_1): New pattern.
36275 (atomic_store<mode>): Call atomic_store<mode>_1 for IX86_HLE_RELEASE
36278 2013-01-14 Georg-Johann Lay <avr@gjlay.de>
36280 * config/avr/avr-stdint.h: Remove trailing blanks.
36281 * config/avr/avr-log.h: Same.
36282 * config/avr/avr-arch.h: Same.
36283 * config/avr/avr-devices.c: Same.
36284 * config/avr/avr-dimode.md: Same.
36285 * config/avr/predicates.md: Same.
36286 * config/avr/avr-c.c: Same. And fix typo.
36288 * config/avr/avr-protos.h: Same. And:
36289 (function_arg_regno_p): Rename to avr_function_arg_regno_p.
36290 (init_cumulative_args): Rename to avr_init_cumulative_args.
36291 (expand_prologue): Rename to avr_expand_prologue.
36292 (expand_epilogue): Rename to avr_expand_epilogue.
36293 (adjust_insn_length): Rename to avr_adjust_insn_length.
36294 (notice_update_cc): Rename to avr_notice_update_cc.
36295 (final_prescan_insn): Rename to avr_final_prescan_insn.
36296 * config/avr/avr.c: Same.
36297 * config/avr/avr.h: Same.
36298 * config/avr/avr.md: Remove trailing blanks.
36299 (prologue): Use avr_expand_prologue.
36300 (epilogue, sibcall_epilogue): Use avr_expand_epilogue.
36302 2013-01-14 Richard Biener <rguenther@suse.de>
36304 * tree-cfg.c (verify_expr_location, verify_expr_location_1,
36305 verify_location, collect_subblocks): New functions.
36306 (verify_gimple_in_cfg): Verify that locations only reference
36307 BLOCKs in the functions BLOCK tree.
36309 2013-01-14 Richard Biener <rguenther@suse.de>
36311 * tree-cfgcleanup.c (remove_forwarder_block): Unshare propagated
36313 * graphite-sese-to-poly.c (insert_out_of_ssa_copy): Properly
36315 (insert_out_of_ssa_copy_on_edge): Likewise.
36316 (rewrite_close_phi_out_of_ssa): Likewise.
36317 * tree-ssa.c (insert_debug_temp_for_var_def): Properly unshare
36319 * tree-ssa-pre.c (insert_into_preds_of_block): Properly unshare
36320 propagated constants.
36321 * tree-cfg.c (tree_node_can_be_shared): Handled component-refs
36324 2013-01-14 Georg-Johann Lay <avr@gjlay.de>
36326 * config/avr/avr-modes.def: Add GPL copyright notice.
36328 2013-01-13 Uros Bizjak <ubizjak@gmail.com>
36330 * config/i386/sync.md (mem_thread_fence): Mask operands[0] with
36331 MEMMODEL_MASK to determine memory model.
36332 (atomic_store<mode>): Ditto from operands[2].
36333 * config/i386/i386.c (ix86_memmodel_check): Declare "strong" as bool.
36335 2013-01-13 Jakub Jelinek <jakub@redhat.com>
36338 * gimple-fold.c (get_symbol_constant_value): Call unshare_expr.
36339 (fold_gimple_assign): Don't call unshare_expr here.
36340 (fold_ctor_reference): Call unshare_expr.
36342 2013-01-13 Terry Guo <terry.guo@arm.com>
36344 * Makefile.in (s-mlib): New argument MULTILIB_REUSE.
36345 * doc/fragments.texi: Document MULTILIB_REUSE.
36346 * gcc.c (multilib_reuse): New internal spec.
36347 (set_multilib_dir): Also search multilib from multilib_reuse.
36348 * genmultilib (tmpmultilib3): Refactor code.
36349 (tmpmultilib4): Ditto.
36350 (multilib_reuse): New multilib argument.
36352 2013-01-13 Richard Sandiford <rdsandiford@googlemail.com>
36354 * Makefile.in: Update copyright.
36356 2013-01-12 Tom de Vries <tom@codesourcery.com>
36358 PR middle-end/55890
36359 * calls.c (expand_call): Check if arg_nr is valid.
36361 2013-01-11 Michael Meissner <meissner@linux.vnet.ibm.com>
36363 * doc/extend.texi (X86 Built-in Functions): Add whitespace in
36364 __builtin_ia32_paddb256 and __builtin_ia32_pavgb256
36365 documentation. Add missing '__' in front of
36366 __builtin_ia32_packssdw256.
36368 2013-01-11 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
36371 * config/s390/s390.c (s390_preferred_reload_class): Do not return
36372 NO_REGS for larl operands.
36373 (s390_reload_larl_operand): Use s390_load_address instead of
36376 2013-01-11 Richard Biener <rguenther@suse.de>
36378 * tree-cfg.c (verify_node_sharing_1): Split out from ...
36379 (verify_node_sharing): ... here.
36380 (verify_gimple_in_cfg): Use verify_node_sharing_1 for walk_tree.
36382 2013-01-11 Eric Botcazou <ebotcazou@adacore.com>
36384 * configure.ac (Tree checking): Set TREECHECKING to yes if enabled.
36385 Substitute TREECHECKING.
36386 * configure: Regenerate.
36387 * Makefile.in (TREECHECKING): New.
36389 2013-01-11 Richard Guenther <rguenther@suse.de>
36391 PR tree-optimization/44061
36392 * tree-vrp.c (extract_range_basic): Compute zero as
36393 value-range for __builtin_constant_p of function parameters.
36395 2013-01-10 Richard Sandiford <rdsandiford@googlemail.com>
36397 Update copyright years.
36399 2013-01-10 Vladimir Makarov <vmakarov@redhat.com>
36401 PR rtl-optimization/55672
36402 * lra-eliminations.c (mark_not_eliminable): Permit addition with
36403 const to be eliminable.
36405 2013-01-10 David Edelsohn <dje.gcc@gmail.com>
36407 * configure.ac (HAVE_AS_TLS): Add check for powerpc-ibm-aix.
36408 * configure: Regenerate.
36410 2013-01-10 Richard Biener <rguenther@suse.de>
36412 * builtins.c (expand_builtin_init_trampoline): Use set_mem_attributes.
36414 2013-01-10 Richard Biener <rguenther@suse.de>
36417 * tree-into-ssa.c (rewrite_add_phi_arguments): Do not set
36418 locations for virtual PHI arguments.
36419 (rewrite_update_phi_arguments): Likewise.
36421 2013-01-10 Joel Sherrill <joel.sherrill@OARcorp.com>
36423 * config/v850/rtems.h (ASM_SPEC): Pass -m8byte-align and -mgcc-abi
36426 2013-01-10 Jakub Jelinek <jakub@redhat.com>
36428 PR tree-optimization/55921
36429 * tree-complex.c (expand_complex_asm): New function.
36430 (expand_complex_operations_1): Call it for GIMPLE_ASM.
36432 2013-01-10 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
36435 * config/s390/s390.c (s390_symref_operand_p)
36436 (s390_loadrelative_operand_p): Merge the two functions.
36437 (s390_check_qrst_address, print_operand_address): Add parameters
36438 to s390_loadrelative_operand_p invokation.
36439 (s390_check_symref_alignment): Use s390_loadrelative_operand_p.
36440 (s390_reload_larl_operand, s390_secondary_reload): Use
36441 s390_loadrelative_operand_p instead of s390_symref_operand_p.
36442 (legitimize_pic_address): Handle @GOTENT and @PLT + addend.
36444 2013-01-09 Mike Stump <mikestump@comcast.net>
36446 * dse.c (record_store): Remove unnecessary assert.
36448 2013-01-09 Jan Hubicka <jh@suse.cz>
36450 PR tree-optimization/55569
36451 * cfgloopmanip.c (scale_loop_profile): Make ITERATION_BOUND gcov_type.
36452 * cfgloop.h (scale_loop_profile): Likewise.
36454 2013-01-09 Jan Hubicka <jh@suse.cz>
36457 * ipa-inline.c (ipa_inline): Remove extern inlines and virtual
36459 * cgraphclones.c (cgraph_clone_node): Cpoy also LTO file data.
36461 2013-01-09 Richard Sandiford <rdsandiford@googlemail.com>
36463 PR middle-end/55114
36464 * expr.h (maybe_emit_group_store): Declare.
36465 * expr.c (maybe_emit_group_store): New function.
36466 * builtins.c (expand_builtin_int_roundingfn): Call it.
36467 (expand_builtin_int_roundingfn_2): Likewise.
36469 2013-01-09 Vladimir Makarov <vmakarov@redhat.com>
36471 PR rtl-optimization/55829
36472 * lra-constraints.c (match_reload): Add code for absent output.
36473 (curr_insn_transform): Add code for reloads of matched inputs
36476 2013-01-09 Uros Bizjak <ubizjak@gmail.com>
36478 * config/i386/sse.md (*vec_interleave_highv2df): Change mode
36479 attribute of movddup insn to DF.
36480 (*vec_interleave_lowv2df): Ditto.
36481 (vec_dupv2df): Ditto.
36483 2013-01-09 Jan Hubicka <jh@suse.cz>
36485 PR tree-optimiation/55875
36486 * tree-ssa-loop-niter.c (number_of_iterations_cond): Add
36487 EVERY_ITERATION parameter.
36488 (number_of_iterations_exit): Check if exit is executed every iteration.
36489 (idx_infer_loop_bounds): Similarly here.
36490 (n_of_executions_at_most): Simplify
36491 to only test for cases where statement is dominated by the
36492 particular bound; handle correctly the "postdominance" test.
36493 (scev_probably_wraps_p): Use max loop iterations info
36494 as a global bound first.
36496 2013-01-09 Nguyen Duy Dat <dat.nguyen.yn@rvc.renesas.com>
36497 Nick Clifton <nickc@redhat.com>
36499 * config/v850/v850.md (cbranchsf4): New pattern.
36500 (cstoresf4): New pattern.
36501 (cbranchdf4): New pattern.
36502 (cstoredf4): New pattern.
36503 (movsicc): Disallow floating point comparisons.
36504 (cmpsf_le_insn): Fix order of operators.
36505 (cmpsf_lt_insn): Likewise.
36506 (cmpsf_eq_insn): Likewise.
36507 (cmpdf_le_insn): Likewise.
36508 (cmpdf_lt_insn): Likewise.
36509 (cmpdf_eq_insn): Likewise.
36510 (cmpsf_ge_insn): Use LE comparison.
36511 (cmpdf_ge_insn): Likewise.
36512 (cmpsf_gt_insn): Use LT comparison.
36513 (cmpdf_gt_insn): Likewise.
36514 (cmpsf_ne_insn): Delete pattern.
36515 (cmpdf_ne_insn): Delete pattern.
36516 * config/v850/v850.c (v850_gen_float_compare): Use
36517 gen_cmpdf_eq_insn for NE comparison.
36518 (v850_float_z_comparison_operator)
36519 (v850_float_nz_comparison_operator): Move from here ...
36520 * config/v850/predicates.md: ... to here. Move GT and GE
36521 comparisons into v850_float_z_comparison_operator.
36522 * config/v850/v850-protos.h (v850_float_z_comparison_operator):
36524 (v850_float_nz_comparison_operator): Likewise.
36526 2013-01-09 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
36528 * config/pa/pa.c (pa_emit_move_sequence): Replace calls to gen_insv
36529 with calls to gen_insvsi/gen_insvdi.
36531 2013-01-09 Venkataramanan Kumar <venkataramanan.kumar@amd.com>
36533 * config/i386/i386.c (initial_ix86_tune_features): Set up
36534 X86_TUNE_AVX128_OPTIMAL for m_BTVER2.
36536 2013-01-09 Steven Bosscher <steven@gcc.gnu.org>
36537 Jakub Jelinek <jakub@redhat.com>
36539 PR tree-optimization/48189
36540 * predict.c (predict_loops): If max is 0, don't call compare_tree_int.
36541 If nitercst is 0, don't predict the exit edge.
36543 2013-01-08 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
36545 * config/aarch64/aarch64.c (aarch64_print_operand): Replace %r
36546 in asm_fprintf with reg_names.
36547 (aarch64_print_operand_address): Likewise.
36548 (aarch64_return_addr): Likewise.
36549 * config/aarch64/aarch64.h (ASM_FPRINTF_EXTENSIONS): Remove.
36551 2013-01-08 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
36553 * config/pa/pa.h (VAL_U6_BITS_P): Define.
36554 (INT_U6_BITS): Likewise.
36555 * config/pa/predicates.md (uint6_operand): New predicate.
36556 (shift5_operand, shift6_operand): Likewise.
36557 * config/pa/pa.md (lshrsi3, rotrsi3): Use shift5_operand instead of
36559 (lshrdi3): Use shift6_operand.
36560 (shrpsi4, shrpdi4): New insn patterns.
36561 (extzv): Delete expander.
36562 (extzvsi, extzvdi): New expanders. Use uint5_operand and uint6_operand
36563 predicates in unamed zero extract patterns. Tighten common constraint.
36564 (extv): Delete expander.
36565 (extvsi, extvdi): New expanders. Use uint5_operand and uint6_operand
36566 predicates in unamed sign extract patterns. Tighten common constraint.
36567 (insv): Delete expander.
36568 (insvsi, insvdi): New expanders. Use uint5_operand and uint6_operand
36569 predicates in unamed insert patterns. Tighten common constraint.
36570 Change uint32_operand predicate to uint6_operand predicate in unamed
36571 DImode pattern to insert constant values of type 1...1xxxx.
36573 2013-01-04 Jan Hubicka <jh@suse.cz>
36575 PR tree-optimization/55823
36576 * ipa-prop.c (update_indirect_edges_after_inlining): Fix ordering
36579 2013-01-08 Jakub Jelinek <jakub@redhat.com>
36580 Uros Bizjak <ubizjak@gmail.com>
36582 PR rtl-optimization/55845
36583 * df-problems.c (can_move_insns_across): Stop scanning at
36584 volatile_insn_p source instruction or give up if
36585 across_from .. across_to range contains any volatile_insn_p
36588 2013-01-08 Tejas Belagod <tejas.belagod@arm.com>
36590 * config/aarch64/aarch64-simd.md (vec_init<mode>): New.
36591 * config/aarch64/aarch64-protos.h (aarch64_expand_vector_init):
36593 * config/aarch64/aarch64.c (aarch64_simd_dup_constant,
36594 aarch64_simd_make_constant, aarch64_expand_vector_init): New.
36596 2013-01-08 Jakub Jelinek <jakub@redhat.com>
36599 * asan.c (asan_clear_shadow): New function.
36600 (asan_emit_stack_protection): Use it.
36602 2013-01-08 Tejas Belagod <tejas.belagod@arm.com>
36604 * config/aarch64/aarch64-simd.md (aarch64_simd_vec_<su>mult_lo_<mode>,
36605 aarch64_simd_vec_<su>mult_hi_<mode>): Separate instruction and operand
36606 with tab instead of space.
36608 2013-01-08 Nick Clifton <nickc@redhat.com>
36610 * config/rl78/rl78.c (rl78_expand_prologue): Always select
36611 register bank 0 at the start of an interrupt handler.
36612 * config/rl78/rl78.md (mulsi3_g13): Correct values for MDBL and
36615 2013-01-08 James Greenhalgh <james.greenhalgh@arm.com>
36617 * config/aarch64/aarch64-simd.md
36618 (aarch64_simd_bsl<mode>_internal): Add floating-point modes.
36619 (aarch64_simd_bsl): Likewise.
36620 (aarch64_vcond_internal<mode>): Likewise.
36621 (vcond<mode><mode>): Likewise.
36622 (aarch64_cm<cmp><mode>): Fix constraints, add new modes.
36623 * config/aarch64/iterators.md (V_cmp_result): Add V2DF.
36625 2013-01-08 James Greenhalgh <james.greenhalgh@arm.com>
36627 * config/aarch64/aarch64-builtins.c
36628 (aarch64_builtin_vectorized_function): Handle sqrt, sqrtf.
36630 2013-01-08 Martin Jambor <mjambor@suse.cz>
36633 * tree-sra.c (analyze_access_subtree): Return true also after
36634 potentially creating a debug-only replacement.
36636 2013-01-08 Jakub Jelinek <jakub@redhat.com>
36638 PR middle-end/55890
36639 * tree-ssa-ccp.c (evaluate_stmt): Use gimple_call_builtin_p.
36641 PR tree-optimization/54120
36642 * tree-vrp.c (range_fits_type_p): Don't allow
36643 src_precision < precision from signed vr to unsigned_p
36644 if vr->min or vr->max is negative.
36645 (simplify_float_conversion_using_ranges): Test can_float_p
36646 against CODE_FOR_nothing.
36648 2013-01-08 Jakub Jelinek <jakub@redhat.com>
36649 Richard Biener <rguenther@suse.de>
36651 PR middle-end/55851
36652 * fold-const.c (int_binop_types_match_p): Allow all INTEGRAL_TYPE_P
36653 types instead of just INTEGER_TYPE types.
36655 2013-01-07 Mark Kettenis <kettenis@openbsd.org>
36657 * config/i386/openbsdelf.h (LIBGCC2_HAS_TF_MODE, LIBGCC2_TF_CEXT,
36660 2013-01-07 Steve Ellcey <sellcey@mips.com>
36663 * config/mips/mips.opt: Change mad to mmad to match documentation.
36665 2013-01-07 Georg-Johann Lay <avr@gjlay.de>
36668 * doc/extend.texi (AVR Named Address Spaces): __memx goes into
36669 .progmemx.data now.
36671 2013-01-07 Georg-Johann Lay <avr@gjlay.de>
36674 * config/avr/avr.h (ADDR_SPACE_COUNT): New enum.
36675 (avr_addrspace_t): Add .section_name field.
36676 * config/avr/avr.c (progmem_section): Use ADDR_SPACE_COUNT as
36678 (avr_addrspace): Same. Initialize .section_name. Remove last
36679 NULL entry. Put __memx into .progmemx.data.
36680 (progmem_section_prefix): Remove.
36681 (avr_asm_init_sections): No need to initialize progmem_section.
36682 (avr_asm_named_section): Use avr_addrspace[].section_name to get
36683 section name prefix.
36684 (avr_asm_select_section): Ditto. And use get_unnamed_section to
36685 retrieve the progmem section.
36686 * avr-c.c (avr_cpu_cpp_builtins): Use ADDR_SPACE_COUNT as loop
36687 boundary to run over avr_addrspace[].
36688 (avr_register_target_pragmas): Ditto.
36690 2013-01-06 Jakub Jelinek <jakub@redhat.com>
36692 * varasm.c (output_constant_def_contents): For asan_protect_global
36693 protected strings, adjust DECL_ALIGN if needed, before testing for
36695 (place_block_symbol): Adjust size for asan protected STRING_CSTs if
36696 TREE_CONSTANT_POOL_ADDRESS_P. Increase alignment for asan protected
36698 (output_object_block): For asan protected decls, emit asan padding
36699 after their contents.
36700 * asan.c (asan_protect_global): Don't check TREE_ASM_WRITTEN here.
36701 (asan_finish_file): Test it here instead.
36703 2013-01-07 Nick Clifton <nickc@redhat.com>
36704 Matthias Klose <doko@debian.org>
36705 Doug Kwan <dougkwan@google.com>
36706 H.J. Lu <hongjiu.lu@intel.com>
36709 * collect2.c (main): Support -fuse-ld=bfd and -fuse-ld=gold.
36711 * common.opt: Add fuse-ld=bfd and fuse-ld=gold.
36713 * gcc.c (LINK_COMMAND_SPEC): Pass -fuse-ld=* to collect2.
36715 * opts.c (comman_handle_option): Ignore -fuse-ld=bfd and -fuse-ld=gold.
36717 * doc/invoke.texi: Document -fuse-ld=bfd and -fuse-ld=gold.
36719 2013-01-07 Georg-Johann Lay <avr@gjlay.de>
36722 * doc/install.texi (Cross-Compiler-Specific Options): Document
36725 2013-01-07 Tejas Belagod <tejas.belagod@arm.com>
36727 * config/aarch64/arm_neon.h (vmovn_high_is16, vmovn_high_s32,
36728 vmovn_high_s64, vmovn_high_u16, vmovn_high_u32, vmovn_high_u64,
36729 vqmovn_high_s16, vqmovn_high_s32, vqmovn_high_s64, vqmovn_high_u16,
36730 vqmovn_high_u32, vqmovn_high_u64, vqmovun_high_s16, vqmovun_high_s32,
36731 vqmovun_high_s64): Fix source operand number and update copyright.
36733 2013-01-07 Richard Biener <rguenther@suse.de>
36735 PR middle-end/55890
36736 * gimple.h (gimple_call_builtin_p): New overload.
36737 * gimple.c (validate_call): New function.
36738 (gimple_call_builtin_p): Likewise.
36739 * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
36740 Use gimple_call_builtin_p.
36741 (find_func_clobbers): Likewise.
36742 * tree-ssa-strlen.c (adjust_last_stmt): Likewise.
36743 (strlen_optimize_stmt): Likewise.
36745 2013-01-07 James Greenhalgh <james.greenhalgh@arm.com>
36747 * config/aarch64/arm_neon.h (vld1_dup_*): Make argument const.
36748 (vld1q_dup_*): Likewise.
36749 (vld1_*): Likewise.
36750 (vld1q_*): Likewise.
36751 (vld1_lane_*): Likewise.
36752 (vld1q_lane_*): Likewise.
36754 2013-01-07 Richard Biener <rguenther@suse.de>
36756 * lto-streamer.h (LTO_minor_version): Bump to 2.
36758 2013-01-07 James Greenhalgh <james.greenhalgh@arm.com>
36760 * config/aarch64/aarch64-protos.h
36761 (aarch64_const_double_zero_rtx_p): Rename to...
36762 (aarch64_float_const_zero_rtx_p): ...this.
36763 (aarch64_float_const_representable_p): New.
36764 (aarch64_output_simd_mov_immediate): Likewise.
36765 * config/aarch64/aarch64-simd.md (*aarch64_simd_mov<mode>): Refactor
36766 move immediate case.
36767 * config/aarch64/aarch64.c
36768 (aarch64_const_double_zero_rtx_p): Rename to...
36769 (aarch64_float_const_zero_rtx_p): ...this.
36770 (aarch64_print_operand): Allow printing of new constants.
36771 (aarch64_valid_floating_const): New.
36772 (aarch64_legitimate_constant_p): Check for valid floating-point
36774 (aarch64_simd_valid_immediate): Likewise.
36775 (aarch64_vect_float_const_representable_p): New.
36776 (aarch64_float_const_representable_p): Likewise.
36777 (aarch64_simd_imm_zero_p): Also allow for floating-point 0.0.
36778 (aarch64_output_simd_mov_immediate): New.
36779 * config/aarch64/aarch64.md (*movsf_aarch64): Add new alternative.
36780 (*movdf_aarch64): Likewise.
36781 * config/aarch64/constraints.md (Ufc): New.
36782 (Y): call aarch64_float_const_zero_rtx.
36783 * config/aarch64/predicates.md (aarch64_fp_compare_operand): New.
36785 2013-01-07 Richard Biener <rguenther@suse.de>
36787 PR tree-optimization/55888
36788 PR tree-optimization/55862
36789 * tree-ssa-pre.c (phi_translate_1): Revert previous change.
36790 (valid_in_sets): Check if a NAME has a leader in AVAIL_OUT,
36791 not if it is contained therein.
36793 2013-01-07 Georg-Johann Lay <avr@gjlay.de>
36795 * config/avr/t-avr: Typo.
36797 2013-01-07 Georg-Johann Lay <avr@gjlay.de>
36800 * config/avr/t-avr: Don't automatically rebuild
36801 $(srcdir)/config/avr/t-multilib
36802 $(srcdir)/config/avr/avr-tables.opt
36803 $(srcdir)/doc/avr-mmcu.texi
36804 (avr-mcus): New phony target to build them on request.
36805 (s-avr-mlib, s-avr-mmcu-texi): Remove.
36806 * avr/avr-mcus.def: Adjust comments.
36808 2013-01-07 Uros Bizjak <ubizjak@gmail.com>
36810 * config/i386/i386.c (DEFAULT_PCC_STRUCT_RETURN): Remove.
36812 2013-01-06 Richard Sandiford <rdsandiford@googlemail.com>
36814 * file-find.c, file-find.h, realmpfr.c: Add FSF as copyright holder.
36816 2013-01-06 Richard Sandiford <rdsandiford@googlemail.com>
36818 * config/tilepro/gen-mul-tables.cc: Put copyright on one line.
36820 2013-01-05 David Edelsohn <dje.gcc@gmail.com>
36822 * config/rs6000/aix53.h (LIB_SPEC): Add -lpthreads when compiling
36823 to generate profiling.
36824 * config/rs6000/aix64.h (LIB_SPEC): Same.
36826 2013-01-04 Andrew Pinski <apinski@cavium.com>
36828 * config/aarch64/aarch64.c (aarch64_fixed_condition_code_regs):
36830 (TARGET_FIXED_CONDITION_CODE_REGS): Define.
36832 2013-01-04 Uros Bizjak <ubizjak@gmail.com>
36834 * config/i386/i386.c (ix86_legitimize_address): Call convert_to_mode
36836 (ix86_expand_move): Ditto.
36837 (ix86_zero_extend_to_Pmode): Ditto.
36838 (ix86_expand_call): Ditto.
36839 (ix86_expand_special_args_builtin): Ditto.
36840 (ix86_expand_builtin): Ditto.
36842 2013-01-04 Richard Biener <rguenther@suse.de>
36844 PR tree-optimization/55862
36845 * tree-ssa-pre.c (phi_translate_1): Valueize SSA names after
36846 translating them through PHI nodes.
36848 2013-01-04 Martin Jambor <mjambor@suse.cz>
36850 PR tree-optimization/55755
36851 * tree-sra.c (sra_modify_assign): Do not check that an access has no
36852 children when trying to avoid producing a VIEW_CONVERT_EXPR.
36854 2013-01-04 Marek Polacek <polacek@redhat.com>
36856 PR middle-end/55859
36857 * opts.c (default_options_optimization): Clarify error message.
36859 2013-01-04 Richard Biener <rguenther@suse.de>
36861 PR middle-end/55863
36862 * fold-const.c (split_tree): Undo -X - 1 to ~X folding for
36865 2013-01-03 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
36868 * config/pa/pa.md (movsi): Revert previous change.
36869 * config/pa/pa.c (pa_legitimate_constant_p): Reject all TLS symbol
36872 2013-01-03 Richard Henderson <rth@redhat.com>
36874 * config/i386/i386.c (ix86_expand_move): Always assign to op1
36875 after eliminating TLS symbols.
36877 2013-01-03 Marc Glisse <marc.glisse@inria.fr>
36880 * graphite-interchange.c (pdr_stride_in_loop): Use gmp_fprintf.
36881 * graphite-poly.c (debug_gmp_value): Likewise.
36883 2013-01-03 Uros Bizjak <ubizjak@gmail.com>
36886 * config/i386/i386-c.c (ix86_target_macros_internal): Depending on
36887 selected code model, define __code_mode_small__, __code_model_medium__,
36888 __code_model_large__, __code_model_32__ or __code_model_kernel__.
36889 * config/i386/cpuid.h (__cpuid, __cpuid_count) [__i386__]: Prefix
36890 xchg temporary register with %k. Declare temporary register as
36892 [__x86_64__]: For medium and large code models, preserve %rbx register.
36894 2013-01-03 Richard Biener <rguenther@suse.de>
36896 * tree-data-ref.c (dump_conflict_function): Use less vertical spacing.
36897 (dump_subscript): Adjust.
36898 (finalize_ddr_dependent): Do not dump redundant info.
36899 (analyze_siv_subscript): Adjust.
36900 (subscript_dependence_tester): Likewise.
36901 (compute_affine_dependence): Likewise.
36903 2013-01-03 Richard Biener <rguenther@suse.de>
36906 2013-01-03 Richard Biener <rguenther@suse.de>
36908 PR tree-optimization/55857
36909 * tree-vect-stmts.c (vectorizable_load): Do not setup
36910 re-alignment for invariant loads.
36912 2013-01-02 Richard Biener <rguenther@suse.de>
36914 * tree-vect-stmts.c (vectorizable_load): When vectorizing an
36915 invariant load do not generate a vector load from the scalar location.
36917 2013-01-03 Richard Biener <rguenther@suse.de>
36919 * tree-vect-loop.c (vect_analyze_loop_form): Clarify reason
36920 for not vectorizing.
36921 * tree-vect-data-refs.c (vect_create_addr_base_for_vector_ref): Do
36922 not build INDIRECT_REFs, call get_name once only.
36923 (vect_create_data_ref_ptr): Likewise. Dump base object kind
36924 based on DR_BASE_OBJECT, not DR_BASE_ADDRESS.
36926 2013-01-03 Richard Biener <rguenther@suse.de>
36928 PR tree-optimization/55857
36929 * tree-vect-stmts.c (vectorizable_load): Do not setup
36930 re-alignment for invariant loads.
36932 2013-01-03 Richard Biener <rguenther@suse.de>
36935 * lto-symtab.c (lto_symtab_merge_decls_1): As last resort, always
36936 prefer a built-in decl.
36938 2013-01-03 Jakub Jelinek <jakub@redhat.com>
36940 * gcc.c (process_command): Update copyright notice dates.
36941 * gcov.c (print_version): Likewise.
36942 * gcov-dump.c (print_version): Likewise.
36944 PR rtl-optimization/55838
36945 * loop-iv.c (iv_number_of_iterations): Call lowpart_subreg on
36946 iv0.step, iv1.step and step.
36948 2013-01-03 Jakub Jelinek <jakub@redhat.com>
36949 Marc Glisse <marc.glisse@inria.fr>
36951 PR tree-optimization/55832
36952 * fold-const.c (fold_binary_loc): For ABS_EXPR<x> >= 0 and
36953 ABS_EXPR<x> < 0 folding use constant_boolean_node instead of
36954 integer_{one,zero}_node.
36956 2013-01-03 Jakub Jelinek <jakub@redhat.com>
36959 * params.def (PARAM_MAX_VARTRACK_REVERSE_OP_SIZE): New param.
36960 * var-tracking.c (reverse_op): Don't add reverse ops to
36961 VALUEs that have already
36962 PARAM_VALUE (PARAM_MAX_VARTRACK_REVERSE_OP_SIZE) or longer locs list.
36964 2013-01-02 Gerald Pfeifer <gerald@pfeifer.com>
36966 * doc/contrib.texi: Note years as release manager for Mark Mitchell.
36968 2013-01-02 Teresa Johnson <tejohnson@google.com>
36970 * dumpfile.c (dump_loc): Print filename with location.
36971 * tree-ssa-loop-ivcanon.c (try_unroll_loop_completely): Use
36972 new location_t parameter to emit complete unroll message with
36973 new dump framework.
36974 (canonicalize_loop_induction_variables): Compute loops location
36975 and pass to try_unroll_loop_completely.
36976 * loop-unroll.c (report_unroll_peel): New function.
36977 (peel_loops_completely): Use new dump format with location
36978 for main dumpfile message, and invoke report_unroll_peel on success.
36979 (decide_unrolling_and_peeling): Ditto.
36980 (decide_peel_once_rolling): Remove old dumpfile message subsumed
36981 by report_unroll_peel.
36982 (decide_peel_completely): Ditto.
36983 (decide_unroll_constant_iterations): Ditto.
36984 (decide_unroll_runtime_iterations): Ditto.
36985 (decide_peel_simple): Ditto.
36986 (decide_unroll_stupid): Ditto.
36987 * cfgloop.c (get_loop_location): New function.
36988 * cfgloop.h (get_loop_location): Declare.
36990 2013-01-02 Sriraman Tallam <tmsriram@google.com>
36992 * config/i386/i386.c (fold_builtin_cpu): Remove unnecessary checks for
36995 2013-01-02 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
36997 PR middle-end/55198
36998 * expr.c (expand_expr_real_1): Don't use bitfield extraction for non
36999 BLKmode objects when EXPAND_MEMORY is specified.
37001 2013-01-02 Sriraman Tallam <tmsriram@google.com>
37003 * config/i386/i386.c (ix86_get_function_versions_dispatcher): Fix bug
37005 (fold_builtin_cpu): Do not share cpu model decls across statements.
37007 2013-01-02 Jason Merrill <jason@redhat.com>
37010 * tree.c (build_array_type_1): Revert earlier change.
37012 2013-01-02 Yufeng Zhang <yufeng.zhang@arm.com>
37014 * config/aarch64/aarch64-cores.def: Add entries for "cortex-a53" and
37016 * config/aarch64/aarch64-tune.md: Re-generate.
37018 2013-01-02 Richard Biener <rguenther@suse.de>
37020 * tree-vect-stmts.c (vectorizable_load): When vectorizing an
37021 invariant load do not generate a vector load from the scalar location.
37023 2013-01-02 Richard Biener <rguenther@suse.de>
37026 * configure.ac: Add $GMPINC to CFLAGS/CXXFLAGS.
37027 * configure: Regenerate.
37029 2013-01-02 Richard Sandiford <rdsandiford@googlemail.com>
37031 * builtins.c (expand_builtin_mathfn, expand_builtin_mathfn_2)
37032 (expand_builtin_mathfn_ternary, expand_builtin_mathfn_3)
37033 (expand_builtin_int_roundingfn_2): Keep the original target around
37034 for the fallback case.
37036 2013-01-02 Richard Sandiford <rdsandiford@googlemail.com>
37038 * tree-vrp.c (range_fits_type_p): Require the MSB of the double_int
37039 to be clear for sign changes.
37041 2013-01-01 Jan Hubicka <jh@suse.cz>
37043 * ipa-inline-analysis.c: Fix formatting.
37045 2013-01-01 Jakub Jelinek <jakub@redhat.com>
37047 PR tree-optimization/55831
37048 * tree-vect-loop.c (get_initial_def_for_induction): Use
37049 gsi_after_labels instead of gsi_start_bb.
37051 Copyright (C) 2013 Free Software Foundation, Inc.
37053 Copying and distribution of this file, with or without modification,
37054 are permitted in any medium without royalty provided the copyright
37055 notice and this notice are preserved.