1 2013-12-06 Eric Botcazou <ebotcazou@adacore.com>
4 * config/sparc/sparc.h (SPARC_LOW_FE_EXCEPT_VALUES): Define.
5 * config/sparc/sol2.h (SPARC_LOW_FE_EXCEPT_VALUES): Redefine.
6 * config/sparc/sparc.c (TARGET_INIT_BUILTINS): Move around.
7 (TARGET_BUILTIN_DECL): Define.
8 (TARGET_ATOMIC_ASSIGN_EXPAND_FENV): Likewise.
9 (sparc32_initialize_trampoline): Adjust call to gen_flush.
10 (enum sparc_builtins): New enumeral type.
11 (sparc_builtins): New static array.
12 (sparc_builtins_icode): Likewise.
13 (def_builtin): Accept a separate icode and save the result.
14 (def_builtin_const): Likewise.
15 (sparc_fpu_init_builtins): New function.
16 (sparc_vis_init_builtins): Pass the builtin code.
17 (sparc_init_builtins): Call it if TARGET_FPU.
18 (sparc_builtin_decl): New function.
19 (sparc_expand_builtin): Deal with SPARC_BUILTIN_{LD,ST}FSR.
20 (sparc_handle_vis_mul8x16): Use the builtin code.
21 (sparc_fold_builtin): Likewise. Deal with SPARC_BUILTIN_{LD,ST}FSR
22 and SPARC_BUILTIN_PDISTN.
23 (compound_expr): New helper function.
24 (sparc_atomic_assign_expand_fenv): New function.
25 * config/sparc/sparc.md (unspecv): Reorder values, add UNSPECV_LDFSR
27 (flush, flushdi): Merge into single pattern.
28 (ldfsr): New instruction.
31 2013-12-06 Oleg Endo <olegendo@gcc.gnu.org>
33 * asan.c: Remove struct tags when referring to class varpool_node.
35 * cgraphbuild.c: Likewise.
36 * cgraphunit.c: Likewise.
38 * dwarf2out.c: Likewise.
39 * gimple-fold.c: Likewise.
40 * ipa-devirt.c: Likewise.
41 * ipa-ref-inline.h: Likewise.
42 * ipa-ref.h: Likewise.
43 * ipa-reference.c: Likewise.
44 * ipa-utils.c: Likewise.
46 * lto-cgraph.c: Likewise.
47 * lto-streamer-out.c: Likewise.
48 * lto-streamer.h: Likewise.
51 * tree-eh.c: Likewise.
52 * tree-emutls.c: Likewise.
53 * tree-pass.h: Likewise.
54 * tree-ssa-structalias.c: Likewise.
55 * tree-vectorizer.c: Likewise.
58 * varpool.c: Likewise.
60 2013-12-06 Oleg Endo <olegendo@gcc.gnu.org>
62 * cgraphunit.c: Remove struct tags when referring to class
63 ipa_opt_pass_d or class opt_pass.
64 * function.h: Likewise.
65 * lto-cgraph.c: Likewise.
66 * pass_manager.h: Likewise.
68 * tree-pass.h: Likewise.
70 2013-12-06 Richard Biener <rguenther@suse.de>
72 PR tree-optimization/59058
73 * tree-vectorizer.h (struct _loop_vec_info): Add num_itersm1
75 (LOOP_VINFO_NITERSM1): New macro.
76 * tree-vect-loop-manip.c (slpeel_tree_peel_loop_to_edge): Express
77 the vector loop entry test in terms of scalar latch executions.
78 (vect_do_peeling_for_alignment): Update LOOP_VINFO_NITERSM1.
79 * tree-vect-loop.c (vect_get_loop_niters): Also return the
80 number of latch executions.
81 (new_loop_vec_info): Initialize LOOP_VINFO_NITERSM1.
82 (vect_analyze_loop_form): Likewise.
83 (vect_generate_tmps_on_preheader): Compute the number of
84 vectorized iterations differently.
86 2013-12-05 Jan-Benedict Glaw <jbglaw@lug-owl.de>
88 * config/score/score.c (score_force_temporary): Delete function.
89 (score_split_symbol): Ditto.
90 * config/score/score.h (ASM_OUTPUT_ADDR_DIFF_ELT): Add extra
91 parentheses to silence ambiguity warning and reindent.
93 2013-12-05 Marek Polacek <polacek@redhat.com>
95 * doc/invoke.texi: Document -fsanitize=signed-integer-overflow.
97 2013-12-05 H.J. Lu <hongjiu.lu@intel.com>
99 * config.gcc: Support --with-cpu=ia.
101 * config/i386/i386.c (cpu_names): Add "ia".
102 (processor_alias_table): Likewise.
103 (ix86_option_override_internal): Disallow -march=ia.
104 * config/i386/i386.h (target_cpu_default): Add
105 TARGET_CPU_DEFAULT_ia.
107 * doc/invoke.texi: Document -mtune=ia.
109 2013-12-05 Vladimir Makarov <vmakarov@redhat.com>
111 PR rtl-optimization/59317
112 * lra-constraints.c (in_class_p): Don't ignore insn with constant
115 2013-12-05 Martin Jambor <mjambor@suse.cz>
118 * ipa-prop.c (ipa_modify_formal_parameters): Create decls of
119 non-BLKmode in their naturally aligned type.
121 2013-12-05 Marek Polacek <polacek@redhat.com>
125 * ubsan.c: Include rtl.h and expr.h.
126 (ubsan_encode_value): Add new parameter. If expanding, assign
127 a stack slot for DECL_RTL of the temporary and call expand_assignment.
128 Handle BOOLEAN_TYPE and ENUMERAL_TYPE.
129 (ubsan_build_overflow_builtin): Adjust ubsan_encode_value call.
130 * ubsan.h (ubsan_encode_value): Adjust declaration.
131 * internal-fn.c (ubsan_expand_si_overflow_addsub_check): Move
132 ubsan_build_overflow_builtin above expand_normal call. Surround this call
133 with push_temp_slots and pop_temp_slots.
134 (ubsan_expand_si_overflow_neg_check): Likewise.
135 (ubsan_expand_si_overflow_mul_check): Likewise.
137 2013-12-05 Yufeng Zhang <yufeng.zhang@arm.com>
139 * gimple-ssa-strength-reduction.c (find_basis_for_candidate): Guard
140 the get_alternative_base call with flag_expensive_optimizations.
141 (alloc_cand_and_find_basis): Likewise.
143 2013-12-05 Tejas Belagod <tejas.belagod@arm.com>
145 * rtlanal.c (set_noop_p): Return nonzero in case of redundant vec_select
146 for overlapping register lanes.
148 2013-12-05 Kirill Yukhin <kirill.yukhin@intel.com>
150 * config/i386/i386.c (ix86_expand_builtin): Generate
151 reg for readflags built-in when optimizing.
152 * config/i386/i386.md (*pushfl<mode>): Rename to ...
153 (pushfl<mode>2): This. Fix iterator.
154 (*popfl<mode>): Rename to ...
155 (*popfl<mode>1): This. Fix iterator.
157 2013-12-05 Kirill Yukhin <kirill.yukhin@intel.com>
159 * config/i386/i386.c (IX86_BUILTIN_READ_FLAGS): New.
160 (IX86_BUILTIN_WRITE_FLAGS): Ditto.
161 (ix86_init_mmx_sse_builtins): Define
162 __builtin_ia32_writeeflags_u32, __builtin_ia32_writeeflags_u64,
163 __builtin_ia32_readeflags_u32, __builtin_ia32_readeflags_u64.
164 (ix86_expand_builtin): Expand them.
165 * config/i386/ia32intrin.h (__readeflags): New.
166 (__writeeflags): Ditto.
167 * gcc/config/i386/i386.md (*pushfl<mode>): Ditto.
168 (*popfl<mode>1): Ditto.
170 2013-12-05 Richard Biener <rguenther@suse.de>
172 PR tree-optimization/59374
173 * tree-vect-data-refs.c (vect_slp_analyze_data_ref_dependence):
174 Commonize known and unknown dependence case fixing the allowed
175 read-write dependence case and dropping code that should not
178 2013-12-05 Kirill Yukhin <kirill.yukhin@intel.com>
180 * config/ia64/ia64.md (prologue_allocate_stack): Block auto-
181 generation of predicated version.
182 (epilogue_deallocate_stack): Ditto.
183 (prologue_allocate_stack_pr): Add explicit predicated version.
184 (epilogue_deallocate_stack_pr): Ditto.
185 * config/ia64/ia64.c (ia64_single_set): Use explicit version.
187 2013-12-05 Alan Modra <amodra@gmail.com>
189 * configure.ac (BUILD_CXXFLAGS) Don't use ALL_CXXFLAGS for
191 <recursive call for build != host>: Clear GMPINC. Don't bother
194 2013-12-04 Jakub Jelinek <jakub@redhat.com>
195 Marek Polacek <polacek@redhat.com>
197 * opts.c (common_handle_option): Handle
198 -fsanitize=signed-integer-overflow.
199 * config/i386/i386.md (addv<mode>4, subv<mode>4, mulv<mode>4,
200 negv<mode>3, negv<mode>3_1): Define expands.
201 (*addv<mode>4, *subv<mode>4, *mulv<mode>4, *negv<mode>3): Define
203 * sanitizer.def (BUILT_IN_UBSAN_HANDLE_ADD_OVERFLOW,
204 BUILT_IN_UBSAN_HANDLE_SUB_OVERFLOW,
205 BUILT_IN_UBSAN_HANDLE_MUL_OVERFLOW,
206 BUILT_IN_UBSAN_HANDLE_NEGATE_OVERFLOW): Define.
207 * ubsan.h (PROB_VERY_UNLIKELY, PROB_EVEN, PROB_VERY_LIKELY,
208 PROB_ALWAYS): Define.
209 (ubsan_build_overflow_builtin): Declare.
210 * gimple-fold.c (gimple_fold_stmt_to_constant_1): Add folding of
212 * ubsan.c (PROB_VERY_UNLIKELY): Don't define here.
213 (ubsan_build_overflow_builtin): New function.
214 (instrument_si_overflow): Likewise.
215 (ubsan_pass): Add signed integer overflow checking.
216 (gate_ubsan): Enable the pass also when SANITIZE_SI_OVERFLOW.
217 * flag-types.h (enum sanitize_code): Add SANITIZE_SI_OVERFLOW.
218 * internal-fn.c: Include ubsan.h and target.h.
219 (ubsan_expand_si_overflow_addsub_check): New function.
220 (ubsan_expand_si_overflow_neg_check): Likewise.
221 (ubsan_expand_si_overflow_mul_check): Likewise.
222 (expand_UBSAN_CHECK_ADD): Likewise.
223 (expand_UBSAN_CHECK_SUB): Likewise.
224 (expand_UBSAN_CHECK_MUL): Likewise.
225 * fold-const.c (fold_binary_loc): Don't fold A + (-B) -> A - B and
226 (-A) + B -> B - A when doing the signed integer overflow checking.
227 * internal-fn.def (UBSAN_CHECK_ADD, UBSAN_CHECK_SUB, UBSAN_CHECK_MUL):
229 * tree-vrp.c (extract_range_basic): Handle internal calls.
230 * optabs.def (addv4_optab, subv4_optab, mulv4_optab, negv4_optab): New
232 * asan.c: Include predict.h.
233 (PROB_VERY_UNLIKELY, PROB_ALWAYS): Don't define here.
234 * predict.c: Move the PROB_* macros...
235 * predict.h (enum br_predictor): ...here.
236 (PROB_LIKELY, PROB_UNLIKELY): Define.
237 * trans-mem.c: Include predict.h.
238 (PROB_VERY_UNLIKELY, PROB_ALWAYS, PROB_VERY_LIKELY,
239 PROB_LIKELY, PROB_UNLIKELY): Don't define here.
241 2013-12-04 Jeff Law <law@redhat.com>
243 * common.opt: Split up -fisolate-erroneous-paths into
244 -fisolate-erroneous-paths-dereference and
245 -fisolate-erroneous-paths-attribute.
246 * invoke.texi: Corresponding changes.
247 * gimple.c (infer_nonnull_range): Add and use new arguments
248 to control what kind of statements can be used to infer a
250 * gimple.h (infer_nonnull_range): Update prototype.
251 * tree-vrp.c (infer_value_range): Corresponding changes.
252 * opts.c (default_options_table): Update due to option split.
253 * gimple-ssa-isolate-paths.c: Fix trailing whitespace.
254 (find_implicit_erroneous_behaviour): Pass additional arguments
255 to infer_nonnull_range.
256 (find_explicit_erroneous_behaviour): Similarly.
257 (gate_isolate_erroneous_paths): Check both of the new
260 2013-12-04 Jeff Law <law@redhat.com>
262 * expr.c (expand_assignment): Update comments.
264 2013-12-04 Tobias Burnus <burnus@net-b.de>
267 * lto-streamer.h (LTO_tags): Add LTO_namelist_decl_ref.
268 * tree.def (NAMELIST_DECL): Add.
269 * tree.h (NAMELIST_DECL_ASSOCIATED_DECL): New macro.
270 * tree.c (initialize_tree_contains_struct): Add asserts for it.
271 * dwarf2out.c (gen_namelist_decl): New function.
272 (gen_decl_die, dwarf2out_decl): Call it.
273 (dwarf2out_imported_module_or_decl_1): Handle NAMELIST_DECL.
274 * lto-streamer-in.c (lto_input_tree_ref): Handle NAMELIST_DECL.
275 (lto_input_tree_ref, lto_input_tree_1): Update lto_tag_check_range
277 * lto-streamer-out.c (lto_output_tree_ref): Handle NAMELIST_DECL.
279 2013-12-03 Xinliang David Li <davidxl@google.com>
281 * tree-ssa-structalias.c (constraint_set_union): Change return type
283 (merge_node_constraints): Ditto.
284 (unify_nodes): Update changed set when constraints set changes.
286 2013-12-04 H.J. Lu <hongjiu.lu@intel.com>
288 * configure.ac: Append gdbasan.in to .gdbinit if CFLAGS contains
290 * configure: Regenerated.
292 * gdbasan.in: New file.
294 2013-12-04 Jakub Jelinek <jakub@redhat.com>
296 PR rtl-optimization/58726
297 * combine.c (force_to_mode): Fix comment typo. Don't destructively
298 modify x for ROTATE, ROTATERT and IF_THEN_ELSE.
300 2013-12-04 Jakub Jelinek <jakub@redhat.com>
301 Uros Bizjak <ubizjak@gmail.com>
304 * config/i386/i386.c (ix86_legitimate_combined_insn): If for
305 !TARGET_AVX there is misaligned MEM operand with vector mode
306 and get_attr_ssememalign is 0, return false.
307 (ix86_expand_special_args_builtin): Add get_pointer_alignment
308 computed alignment and for non-temporal loads/stores also
309 at least GET_MODE_ALIGNMENT as MEM_ALIGN.
311 (<sse>_loadu<ssemodesuffix><avxsizesuffix><mask_name>,
312 <sse>_storeu<ssemodesuffix><avxsizesuffix>,
313 <sse2_avx_avx512f>_loaddqu<mode><mask_name>,
314 <sse2_avx_avx512f>_storedqu<mode>, <sse3>_lddqu<avxsizesuffix>,
315 sse_vmrcpv4sf2, sse_vmrsqrtv4sf2, sse2_cvtdq2pd, sse_movhlps,
316 sse_movlhps, sse_storehps, sse_loadhps, sse_loadlps,
317 *vec_interleave_highv2df, *vec_interleave_lowv2df,
318 *vec_extractv2df_1_sse, sse2_movsd, sse4_1_<code>v8qiv8hi2,
319 sse4_1_<code>v4qiv4si2, sse4_1_<code>v4hiv4si2,
320 sse4_1_<code>v2qiv2di2, sse4_1_<code>v2hiv2di2,
321 sse4_1_<code>v2siv2di2, sse4_2_pcmpestr, *sse4_2_pcmpestr_unaligned,
322 sse4_2_pcmpestri, sse4_2_pcmpestrm, sse4_2_pcmpestr_cconly,
323 sse4_2_pcmpistr, *sse4_2_pcmpistr_unaligned, sse4_2_pcmpistri,
324 sse4_2_pcmpistrm, sse4_2_pcmpistr_cconly): Add ssememalign attribute.
325 * config/i386/i386.md (ssememalign): New define_attr.
327 2013-12-04 Jakub Jelinek <jakub@redhat.com>
329 PR tree-optimization/59355
330 * ipa-devirt.c (gate_ipa_devirt): Return false if !flag_devirtualize.
331 * opts.c (common_handle_option): Fix comment spelling.
333 2013-12-04 Yufeng Zhang <yufeng.zhang@arm.com>
335 * gimple-ssa-strength-reduction.c: Include tree-affine.h.
336 (name_expansions): New static variable.
337 (alt_base_map): Ditto.
338 (get_alternative_base): New function.
339 (find_basis_for_candidate): For CAND_REF, optionally call
340 find_basis_for_base_expr with the returned value from
341 get_alternative_base.
342 (record_potential_basis): Add new parameter 'base' of type 'tree';
343 add an assertion of non-NULL base; use base to set node->base_expr.
344 (alloc_cand_and_find_basis): Update; call record_potential_basis
345 for CAND_REF with the returned value from get_alternative_base.
346 (replace_refs): Dump details on the replacing.
347 (execute_strength_reduction): Call pointer_map_create for
348 alt_base_map; call free_affine_expand_cache with &name_expansions.
350 2013-12-03 Wei Mi <wmi@google.com>
352 PR rtl-optimization/59020
353 * sched-deps.c (try_group_insn): Move it from haifa-sched.c to here.
354 (sched_analyze_insn): Call try_group_insn.
355 (sched_analyze): Cleanup SCHED_GROUP_P before start the analysis.
356 * haifa-sched.c (try_group_insn): Moved to sched-deps.c.
357 (group_insns_for_macro_fusion): Removed.
358 (sched_init): Remove calling group_insns_for_macro_fusion.
360 2013-12-03 Peter Bergner <bergner@vnet.ibm.com>
362 * config/rs6000/htmintrin.h (_TEXASR_INSTRUCTION_FETCH_CONFLICT): Fix
364 (_TEXASRU_INSTRUCTION_FETCH_CONFLICT): Likewise.
366 2013-12-03 Vladimir Makarov <vmakarov@redhat.com>
368 * config/aarch64/aarch64.c (aarch64_frame_pointer_required): Check
370 (aarch64_can_eliminate): Don't check elimination source when
371 frame_pointer_required is false.
373 2013-12-03 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
375 * config/avr/avr.c (avr_option_override): Warn if asked to generate
376 position independent code.
377 * config/avr/avr.h: Modify LINK_SPEC to reject -shared.
379 2013-12-03 H.J. Lu <hongjiu.lu@intel.com>
382 * config/i386/i386.c (emit_memset): Adjust destination address
384 (expand_setmem_epilogue): Likewise.
386 2013-12-03 Marek Polacek <polacek@redhat.com>
389 * calls.c (expand_call): Disallow passing huge arguments by value.
391 2013-12-03 Jakub Jelinek <jakub@redhat.com>
393 PR tree-optimization/59362
394 * tree-object-size.c (object_sizes): Change into array of
395 vec<unsigned HOST_WIDE_INT>.
396 (compute_builtin_object_size): Check computed bitmap for
397 non-NULL instead of object_sizes. Call safe_grow on object_sizes
398 vector if new SSA_NAMEs appeared.
399 (init_object_sizes): Check computed bitmap for non-NULL.
400 Call safe_grow on object_sizes elements instead of initializing
402 (fini_object_sizes): Call release on object_sizes elements, don't
406 * gimplify.c (nonlocal_vla_vars): New variable.
407 (gimplify_var_or_parm_decl): Put VAR_DECLs for VLAs into
408 nonlocal_vla_vars chain.
409 (gimplify_body): Call declare_vars on nonlocal_vla_vars chain
410 if outer_bind has DECL_INITIAL (current_function_decl) block.
413 * dojump.c (save_pending_stack_adjust, restore_pending_stack_adjust):
415 * expr.h (struct saved_pending_stack_adjust): New type.
416 (save_pending_stack_adjust, restore_pending_stack_adjust): New
418 * optabs.c (emit_conditional_move): Call save_pending_stack_adjust
419 and get_last_insn before do_pending_stack_adjust, call
420 restore_pending_stack_adjust after delete_insns_since.
421 * expr.c (expand_expr_real_2): Don't call do_pending_stack_adjust
422 before calling emit_conditional_move.
423 * expmed.c (expand_sdiv_pow2): Likewise.
424 * calls.c (expand_call): Use {save,restore}_pending_stack_adjust.
426 2013-12-02 Jeff Law <law@redhat.com>
428 PR tree-optimization/59322
429 * tree-ssa-threadedge.c (create_edge_and_update_destination_phis):
430 Remove code which copied jump threading paths.
432 2013-12-02 Sriraman Tallam <tmsriram@google.com>
435 * config/i386/i386.opt (ix86_arch_string): Mark this variable
436 for saving in cl_target_option.
437 (ix86_tune_string): Ditto.
438 (ix86_cmodel): Ditto.
440 (ix86_asm_dialect): Ditto.
441 (ix86_branch_cost): Ditto.
442 (ix86_dump_tunes): Ditto.
443 (ix86_force_align_arg_pointer): Ditto.
444 (ix86_force_drap): Ditto.
445 (ix86_incoming_stack_boundary_arg): Ditto.
447 (ix86_preferred_stack_boundary_arg): Ditto.
448 (ix86_recip_name): Ditto.
449 (ix86_regparm): Ditto.
450 (ix86_section_threshold): Ditto.
451 (ix86_sse2avx): Ditto.
452 (ix86_stack_protector_guard): Ditto.
453 (ix86_stringop_alg): Ditto.
454 (ix86_tls_dialect): Ditto.
455 (ix86_tune_ctrl_string): Ditto.
456 (ix86_tune_memcpy_strategy): Ditto.
457 (ix86_tune_memset_strategy): Ditto.
458 (ix86_tune_no_default): Ditto.
459 (ix86_veclibabi_type): Ditto.
460 * config/i386/i386.c (function_specific_save): Save the above
461 variables in gcc_options to cl_target_option.
462 (function_specific_restore): Do the reverse done in
463 function_specific_save.
464 (ix86_valid_target_attribute_tree): Change ix86_arch_string
465 and ix86_tune_string to use the opts structure.
466 (ix86_option_override_internal):Change
467 ix86_incoming_stack_boundary_arg to
468 opts->x_ix86_incoming_stack_boundary_arg
470 2013-12-02 Joern Rennecke <joern.rennecke@embecosm.com>
472 * config/epiphany/epiphany.h: Wrap rtl_opt_pass declarations
473 in #ifndef IN_LIBGCC2 / #endif.
475 2013-12-02 Jakub Jelinek <jakub@redhat.com>
477 PR tree-optimization/59358
478 * tree-vrp.c (union_ranges): To check for the partially overlapping
479 ranges or adjacent ranges, also compare *vr0max with vr1max.
481 2013-12-02 Sterling Augustine  <saugustine@google.com>
483 * dwarf2out.c (output_pubnames): Use comp_unit_die ()->die_offset
484 when there isn't a skeleton die.
486 2013-12-02 Marek Polacek <polacek@redhat.com>
489 * doc/invoke.texi: Document -fsanitize=return.
491 2013-12-02 Tobias Burnus <burnus@net-b.de>
492 Manuel López-Ibáñez <manu@gcc.gnu.org>
495 * doc/invoke.texi: Add missing @opindex.
496 (-fsanitize=): Use @gcctabopt instead of @itemize.
498 2013-12-02 Bernd Edlinger <bernd.edlinger@hotmail.de>
500 Fix C++0x memory model for unaligned fields in packed, aligned(4)
501 structures with -fno-strict-volatile-bitfields on STRICT_ALIGNMENT
502 targets like arm-none-eabi.
503 * expr.c (expand_assignment): Handle normal fields like bit regions.
505 2013-12-02 Bernd Edlinger <bernd.edlinger@hotmail.de>
508 * function.c (invoke_set_current_function_hook): Call
509 targetm.set_current_function after setting this_fn_optabs.
511 2013-12-02 Richard Biener <rguenther@suse.de>
513 PR tree-optimization/59139
514 * tree-ssa-loop-niter.c (chain_of_csts_start): Properly match
516 (get_val_for): Use gcc_checking_asserts.
518 2013-12-02 Richard Biener <rguenther@suse.de>
521 * tree-ssa-operands.c (opf_implicit): Remove.
522 (opf_address_taken): New flag.
523 (get_expr_operands): Remove early out, pass down opf_address_taken for
524 ADDR_EXPRs, add a use operand only for non-opf_address_taken bases.
525 (get_indirect_ref_operands): Rename to ...
526 (get_mem_ref_operands): ... this.
527 (get_asm_expr_operands): Rename to ...
528 (get_asm_stmt_operands): ... this.
530 2013-12-02 Yuri Rumyantsev <ysrumyan@gmail.com>
532 * ipa-inline.c (check_callers): Add missed pointer de-reference.
534 2013-12-02 Eric Botcazou <ebotcazou@adacore.com>
536 PR tree-optimization/59356
537 * tree-dfa.h (get_addr_base_and_unit_offset_1) <case ARRAY_REF>: Do the
538 offset computation using the precision of the index type.
540 2013-12-02 Yvan Roux <yvan.roux@linaro.org>
543 * config/arm/arm.c (arm_preferred_reload_class): Only return LO_REGS
544 when rclass is GENERAL_REGS.
546 2013-12-02 Ganesh Gopalasubramanian <Ganesh.Gopalasubramanian@amd.com>
548 * loop-unroll.c (decide_unroll_constant_iterations): Check macro
549 TARGET_LOOP_UNROLL_ADJUST while deciding unroll factor.
551 2013-12-01 Eric Botcazou <ebotcazou@adacore.com>
553 * config/i386/winnt.c (i386_pe_asm_named_section): Be prepared for an
556 2013-12-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
558 * expr.c (emit_group_store): Fix off-by-one BITFIELD_END argument.
560 2013-11-30 Paulo Matos <pmatos@broadcom.com>
561 Eric Botcazou <ebotcazou@adacore.com>
563 * combine.c (reg_nonzero_bits_for_combine): Apply mask transformation
564 as applied to nonzero_sign_valid when last_set_mode has less precision
567 2013-11-30 Tobias Burnus <burnus@net-b.de>
570 * doc/invoke.texi (-fsanitize=address,leak): Mention the associated
571 environment variable and link to a list with flags.
572 (-fsanitize=thread): Ditto and update link.
574 2013-11-29 Vladimir Makarov <vmakarov@redhat.com>
576 PR rtl-optimization/59340
577 * lra.c (check_rtl): Use recog_memoized instead of insn_invalid_p.
580 2013-11-20 Robert Suchanek <Robert.Suchanek@imgtec.com>
582 * lra.c (lra): Set lra_in_progress before check_rtl call.
583 * recog.c (insn_invalid_p): Add !lra_in_progress to prevent
584 adding clobber regs when LRA is running.
586 2013-11-29 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
589 * config/arm/arm.c (cortexa15_extra_costs): Adjust costs.
591 2013-11-29 Richard Biener <rguenther@suse.de>
594 * tree-ssa-operands.h (fini_ssa_operands, verify_ssa_operands,
595 free_stmt_operands, update_stmt_operands): Add struct function
597 * tree-ssa-operands.c: Remove uses of cfun, propagate struct
598 function argument from fini_ssa_operands, verify_ssa_operands,
599 free_stmt_operands and update_stmt_operands everywhere.
600 * tree-ssanames.h (release_ssa_name_fn): New.
601 (release_ssa_name): Inline wrapper around release_ssa_name_fn.
602 * tree-ssanames.c (release_ssa_name): Rename to ...
603 (release_ssa_name_fn): ... this and add struct function argument.
604 * gimple-ssa.h (update_stmt, update_stmt_if_modified): Adjust.
605 (update_stmt_fn): New function.
606 * tree-cfg.c (move_block_to_fn): Adjust.
607 * tree-if-conv.c (free_bb_predicate): Likewise.
608 * tree-ssa.c (verify_ssa): Likewise.
609 (delete_tree_ssa): Likewise.
610 * gimple-pretty-print.c (dump_gimple_mem_ops): Remove guard.
611 * cgraph.c (cgraph_redirect_edge_call_stmt_to_callee): Call
612 update_stmt_fn instead of update_stmt.
614 2013-11-29 Yvan Roux <yvan.roux@linaro.org>
616 * config/arm/arm.h (THUMB_SECONDARY_INPUT_RELOAD_CLASS): Return NO_REGS
619 2013-11-29 Yvan Roux <yvan.roux@linaro.org>
621 * config/arm/arm.md (store_minmaxsi): Use only when
622 optimize_function_for_size_p.
624 2013-11-29 Jakub Jelinek <jakub@redhat.com>
625 Yury Gribov <y.gribov@samsung.com>
628 * config/gnu-user.h: Removed old code for setting up sanitizer libs.
629 * gcc.c: Using libsanitizer spec instead of explicit libs.
631 2013-11-29 Ilya Enkovich <ilya.enkovich@intel.com>
634 2013-11-20 Ilya Enkovich <ilya.enkovich@intel.com>
635 * cgraph.h (varpool_node): Add need_bounds_init field.
636 * lto-cgraph.c (lto_output_varpool_node): Output
637 need_bounds_init value.
638 (input_varpool_node): Read need_bounds_init value.
639 * varpool.c (dump_varpool_node): Dump need_bounds_init field.
642 2013-11-20 Ilya Enkovich <ilya.enkovich@intel.com>
643 * dbxout.c (dbxout_type): Ignore POINTER_BOUNDS_TYPE.
644 * dwarf2out.c (gen_subprogram_die): Ignore bound args.
645 (gen_type_die_with_usage): Skip pointer bounds.
646 (dwarf2out_global_decl): Likewise.
649 2013-11-18 Ilya Enkovich <ilya.enkovich@intel.com>
650 * builtin-types.def (BT_FN_PTR_CONST_PTR_VAR): New.
651 * chkp-builtins.def (BUILT_IN_CHKP_BIND_BOUNDS): New.
652 * cfgexpand.c (expand_call_stmt): Expand BUILT_IN_CHKP_BIND_BOUNDS.
653 * gimple.c (gimple_call_get_nobnd_arg_index): Remove.
654 * gimple.h (gf_mask): Add GF_CALL_WITH_BOUNDS.
655 (gimple_call_with_bounds_p): New.
656 (gimple_call_set_with_bounds): New.
657 (gimple_call_num_nobnd_args): Remove.
658 (gimple_call_nobnd_arg): Remove.
659 * tree.h (CALL_WITH_BOUNDS_P): New.
660 * rtl.h (CALL_EXPR_WITH_BOUNDS_P): New.
663 2013-11-08 Ilya Enkovich <ilya.enkovich@intel.com>
664 * common.opt (fcheck-pointer-bounds): Move to ...
665 * c-family/c.opt: ... here.
666 * langhooks-def.h (LANG_HOOKS_CHKP_SUPPORTED): Remove.
667 (LANG_HOOKS_INITIALIZER): Remove LANG_HOOKS_CHKP_SUPPORTED.
668 * langhooks.h (lang_hooks): Remove chkp_supported field.
669 * toplev.c (process_options): Remove chkp_supported check.
672 2013-10-30 Ilya Enkovich <ilya.enkovich@intel.com>
673 * tree-core.h (tree_index): Add TI_POINTER_BOUNDS_TYPE.
674 * tree.h (POINTER_BOUNDS_P): New.
675 (BOUNDED_TYPE_P): New.
677 (pointer_bounds_type_node): New.
678 * tree.c (build_common_tree_nodes): Initialize
679 pointer_bounds_type_node.
680 * gimple.h (gimple_call_get_nobnd_arg_index): New.
681 (gimple_call_num_nobnd_args): New.
682 (gimple_call_nobnd_arg): New.
683 (gimple_return_retbnd): New.
684 (gimple_return_set_retbnd): New
685 * gimple.c (gimple_build_return): Increase number of ops
686 for return statement.
687 (gimple_call_get_nobnd_arg_index): New.
688 * gimple-pretty-print.c (dump_gimple_return): Print second op.
691 2013-10-30 Ilya Enkovich <ilya.enkovich@intel.com>
692 * ipa.c (cgraph_build_static_cdtor_1): Support contructors
693 with "chkp ctor" and "bnd_legacy" attributes.
694 * gimplify.c (gimplify_init_constructor): Avoid infinite
695 loop during gimplification of bounds initializer.
698 2013-10-30 Ilya Enkovich <ilya.enkovich@intel.com>
699 * c-family/c-common.c (handle_bnd_variable_size_attribute): New.
700 (handle_bnd_legacy): New.
701 (c_common_attribute_table): Add bnd_variable_size and bnd_legacy.
702 * doc/extend.texi: Document bnd_variable_size and bnd_legacy
706 2013-10-29 Ilya Enkovich <ilya.enkovich@intel.com>
707 * builtin-types.def (BT_FN_VOID_CONST_PTR): New.
708 (BT_FN_PTR_CONST_PTR): New.
709 (BT_FN_CONST_PTR_CONST_PTR): New.
710 (BT_FN_PTR_CONST_PTR_SIZE): New.
711 (BT_FN_PTR_CONST_PTR_CONST_PTR): New.
712 (BT_FN_VOID_PTRPTR_CONST_PTR): New.
713 (BT_FN_VOID_CONST_PTR_SIZE): New.
714 (BT_FN_PTR_CONST_PTR_CONST_PTR_SIZE): New.
715 * chkp-builtins.def: New.
716 * builtins.def: include chkp-builtins.def.
717 (DEF_CHKP_BUILTIN): New.
718 * builtins.c (expand_builtin): Support BUILT_IN_CHKP_INIT_PTR_BOUNDS,
719 BUILT_IN_CHKP_NULL_PTR_BOUNDS, BUILT_IN_CHKP_COPY_PTR_BOUNDS,
720 BUILT_IN_CHKP_CHECK_PTR_LBOUNDS, BUILT_IN_CHKP_CHECK_PTR_UBOUNDS,
721 BUILT_IN_CHKP_CHECK_PTR_BOUNDS, BUILT_IN_CHKP_SET_PTR_BOUNDS,
722 BUILT_IN_CHKP_NARROW_PTR_BOUNDS, BUILT_IN_CHKP_STORE_PTR_BOUNDS,
723 BUILT_IN_CHKP_GET_PTR_LBOUND, BUILT_IN_CHKP_GET_PTR_UBOUND,
724 BUILT_IN_CHKP_BNDMK, BUILT_IN_CHKP_BNDSTX, BUILT_IN_CHKP_BNDCL,
725 BUILT_IN_CHKP_BNDCU, BUILT_IN_CHKP_BNDLDX, BUILT_IN_CHKP_BNDRET,
726 BUILT_IN_CHKP_INTERSECT, BUILT_IN_CHKP_ARG_BND, BUILT_IN_CHKP_NARROW,
727 BUILT_IN_CHKP_EXTRACT_LOWER, BUILT_IN_CHKP_EXTRACT_UPPER.
728 * common.opt (fcheck-pointer-bounds): New.
729 * toplev.c (process_options): Check Pointer Bounds Checker is
731 * doc/extend.texi: Document Pointer Bounds Checker built-in functions.
734 2013-10-30 Ilya Enkovich <ilya.enkovich@intel.com>
735 * target.def (builtin_chkp_function): New.
736 (chkp_bound_type): New.
737 (chkp_bound_mode): New.
738 (fn_abi_va_list_bounds_size): New.
739 (load_bounds_for_arg): New.
740 (store_bounds_for_arg): New.
741 * targhooks.h (default_load_bounds_for_arg): New.
742 (default_store_bounds_for_arg): New.
743 (default_fn_abi_va_list_bounds_size): New.
744 (default_chkp_bound_type): New.
745 (default_chkp_bound_mode): New.
746 (default_builtin_chkp_function): New.
747 * targhooks.c (default_load_bounds_for_arg): New.
748 (default_store_bounds_for_arg): New.
749 (default_fn_abi_va_list_bounds_size): New.
750 (default_chkp_bound_type): New.
751 (default_chkp_bound_mode); New.
752 (default_builtin_chkp_function): New.
753 * doc/tm.texi.in (TARGET_FN_ABI_VA_LIST_BOUNDS_SIZE): New.
754 (TARGET_LOAD_BOUNDS_FOR_ARG): New.
755 (TARGET_STORE_BOUNDS_FOR_ARG): New.
756 (TARGET_BUILTIN_CHKP_FUNCTION): New.
757 (TARGET_CHKP_BOUND_TYPE): New.
758 (TARGET_CHKP_BOUND_MODE): New.
759 * doc/tm.texi: Regenerated.
760 * langhooks.h (lang_hooks): Add chkp_supported field.
761 * langhooks-def.h (LANG_HOOKS_CHKP_SUPPORTED): New.
762 (LANG_HOOKS_INITIALIZER); Add LANG_HOOKS_CHKP_SUPPORTED.
765 2013-10-24 Ilya Enkovich <ilya.enkovich@intel.com>
766 * config/i386/constraints.md (B): New.
769 * config/i386/i386-c.c (ix86_target_macros_internal): Add __MPX__.
770 * config/i386/i386-modes.def (BND32): New.
772 * config/i386/i386-protos.h (ix86_bnd_prefixed_insn_p): New.
773 * config/i386/i386.c (isa_opts): Add mmpx.
774 (regclass_map): Add bound registers.
775 (dbx_register_map): Likewise.
776 (dbx64_register_map): Likewise.
777 (svr4_dbx_register_map): Likewise.
779 (ix86_option_override_internal): Support MPX ISA.
780 (ix86_conditional_register_usage): Support bound registers.
781 (print_reg): Likewise.
782 (ix86_code_end): Add MPX bnd prefix.
783 (output_set_got): Likewise.
784 (ix86_output_call_insn): Likewise.
785 (ix86_print_operand): Add '!' (MPX bnd) print prefix support.
786 (ix86_print_operand_punct_valid_p): Likewise.
787 (ix86_print_operand_address): Support UNSPEC_BNDMK_ADDR and
789 (ix86_class_likely_spilled_p): Add bound regs support.
790 (ix86_hard_regno_mode_ok): Likewise.
791 (x86_order_regs_for_local_alloc): Likewise.
792 (ix86_bnd_prefixed_insn_p): New.
793 * config/i386/i386.h (FIRST_PSEUDO_REGISTER): Fix to new value.
794 (FIXED_REGISTERS): Add bound registers.
795 (CALL_USED_REGISTERS): Likewise.
796 (REG_ALLOC_ORDER): Likewise.
797 (HARD_REGNO_NREGS): Likewise.
799 (VALID_BND_REG_MODE): New.
800 (FIRST_BND_REG): New.
802 (reg_class): Add BND_REGS.
803 (REG_CLASS_NAMES): Likewise.
804 (REG_CLASS_CONTENTS): Likewise.
806 (ANY_BND_REG_P): New.
808 (HI_REGISTER_NAMES): Add bound registers.
809 * config/i386/i386.md (UNSPEC_BNDMK): New.
810 (UNSPEC_BNDMK_ADDR): New.
811 (UNSPEC_BNDSTX): New.
812 (UNSPEC_BNDLDX): New.
813 (UNSPEC_BNDLDX_ADDR): New.
817 (UNSPEC_MPX_FENCE): New.
820 (type): Add mpxmov, mpxmk, mpxchk, mpxld, mpxst.
821 (length_immediate): Likewise.
822 (prefix_0f): Likewise.
824 (prefix_rep): Check for bnd prefix.
826 (length): Use length_nobnd if specified.
831 (*jcc_1): Add bnd prefix and rename length attr to length_nobnd.
834 (simple_return_internal): Likewise.
835 (simple_return_pop_internal): Likewise.
836 (*indirect_jump): Add MPX bnd prefix.
837 (*tablejump_1): Likewise.
838 (simple_return_internal_long): Likewise.
839 (simple_return_indirect_internal): Likewise.
843 (*mov<mode>_internal_mpx): New.
844 (<mode>_<bndcheck>): New.
845 (*<mode>_<bndcheck>): New.
850 * config/i386/predicates.md (lea_address_operand): Rename to...
851 (address_no_seg_operand): ... this.
852 (address_mpx_no_base_operand): New.
853 (address_mpx_no_index_operand): New.
854 (bnd_mem_operator): New.
855 * config/i386/i386.opt (mmpx): New.
856 * doc/invoke.texi: Add documentation for the flags -mmpx, -mno-mpx.
857 * doc/rtl.texi Add documentation for BND32mode and BND64mode.
860 2013-10-24 Ilya Enkovich <ilya.enkovich@intel.com>
861 * mode-classes.def (MODE_POINTER_BOUNDS): New.
862 * tree.def (POINTER_BOUNDS_TYPE): New.
863 * genmodes.c (complete_mode): Support MODE_POINTER_BOUNDS.
864 (POINTER_BOUNDS_MODE): New.
865 (make_pointer_bounds_mode): New.
866 * machmode.h (POINTER_BOUNDS_MODE_P): New.
867 * stor-layout.c (int_mode_for_mode): Support MODE_POINTER_BOUNDS.
868 (layout_type): Support POINTER_BOUNDS_TYPE.
869 * tree-pretty-print.c (dump_generic_node): Support POINTER_BOUNDS_TYPE.
870 * tree.c (build_int_cst_wide): Support POINTER_BOUNDS_TYPE.
871 (type_contains_placeholder_1): Likewise.
872 * tree.h (POINTER_BOUNDS_TYPE_P): New.
873 * varasm.c (output_constant): Support POINTER_BOUNDS_TYPE.
874 * doc/rtl.texi (MODE_POINTER_BOUNDS): New.
876 2013-11-29 Richard Biener <rguenther@suse.de>
879 * tree-cfg.c (verify_expr): Restrict bounds verification of
880 BIT_FIELD_REF arguments to non-aggregate typed base objects.
882 2013-11-29 Richard Biener <rguenther@suse.de>
884 PR tree-optimization/59334
885 * tree-ssa-dce.c (eliminate_unnecessary_stmts): Fix bug
888 2013-11-29 Jakub Jelinek <jakub@redhat.com>
889 Richard Biener <rguenther@suse.de>
892 * omp-low.c (simd_clone_create): Return NULL if for definition
893 !cgraph_function_with_gimple_body_p (old_node). Call cgraph_get_body
894 before calling cgraph_function_versioning.
895 (expand_simd_clones): Look for "omp declare simd" attribute first.
896 Don't check targetm.simd_clone.compute_vecsize_and_simdlen here.
897 Punt if node->global.inlined_to.
898 (pass_omp_simd_clone::gate): Also enable if in_lto_p && !flag_wpa.
899 Disable pass if targetm.simd_clone.compute_vecsize_and_simdlen is NULL.
900 * lto-streamer-out.c (hash_tree): Handle OMP_CLAUSE.
902 2013-11-29 Jakub Jelinek <jakub@redhat.com>
905 * tree-core.h (enum omp_clause_schedule_kind): Add
906 OMP_CLAUSE_SCHEDULE_LAST.
907 (enum omp_clause_default_kind): Add OMP_CLAUSE_DEFAULT_LAST.
908 (enum omp_clause_depend_kind): Add OMP_CLAUSE_DEPEND_LAST.
909 (enum omp_clause_map_kind): Add OMP_CLAUSE_MAP_LAST.
910 (enum omp_clause_proc_bind_kind): Add OMP_CLAUSE_PROC_BIND_LAST.
911 * lto-streamer-out.c (lto_is_streamable): Allow streaming OMP_CLAUSE.
912 (DFS_write_tree_body): Handle OMP_CLAUSE.
913 * tree-streamer-out.c (pack_ts_omp_clause_value_fields): New function.
914 (streamer_pack_tree_bitfields): Call it for OMP_CLAUSE.
915 (write_ts_omp_clause_tree_pointers): New function.
916 (streamer_write_tree_body): Call it for OMP_CLAUSE.
917 (streamer_write_tree_header): For OMP_CLAUSE stream OMP_CLAUSE_CODE.
918 * tree-streamer-in.c (unpack_ts_omp_clause_value_fields): New function.
919 (unpack_value_fields): Call it for OMP_CLAUSE.
920 (streamer_alloc_tree): Handle OMP_CLAUSE.
921 (lto_input_ts_omp_clause_tree_pointers): New function.
922 (streamer_read_tree_body): Call it for OMP_CLAUSE.
924 2013-11-29 Joseph Myers <joseph@codesourcery.com>
926 * doc/implement-c.texi: Document C11 implementation-defined
927 behavior. Refer to -ffp-contract=fast for contraction behavior.
928 * doc/invoke.texi (-std=c99, std=c11): Update description of
930 (-std=gnu99): Don't mention as future default.
931 (-std=gnu11): Mention as intended future default.
932 * doc/standards.texi: Update descriptions of C99 and C11 support.
933 Limit statement about C99 facilities for freestanding
934 implementations to some platforms only.
936 2013-11-28 Jakub Jelinek <jakub@redhat.com>
939 * cfgexpand.c (expand_used_vars): Avoid warning on 32-bit HWI hosts.
941 2013-11-28 Vladimir Makarov <vmakarov@redhat.com>
944 * ira.h (ira_setup_eliminable_regset): Remove parameter.
945 * ira.c (ira_setup_eliminable_regset): Ditto. Add
946 SUPPORTS_STACK_ALIGNMENT for crtl->stack_realign_needed.
947 Don't call lra_init_elimination.
948 (ira): Call ira_setup_eliminable_regset without arguments.
949 * loop-invariant.c (calculate_loop_reg_pressure): Remove argument
950 from ira_setup_eliminable_regset call.
951 * gcse.c (calculate_bb_reg_pressure): Ditto.
952 * haifa-sched.c (sched_init): Ditto.
953 * lra.h (lra_init_elimination): Remove the prototype.
954 * lra-int.h (lra_insn_recog_data): New member sp_offset. Move
955 used_insn_alternative upper.
956 (lra_eliminate_regs_1): Add one more parameter.
957 (lra-eliminate): Ditto.
958 * lra.c (lra_invalidate_insn_data): Set sp_offset.
959 (setup_sp_offset): New.
960 (lra_process_new_insns): Call setup_sp_offset.
961 (lra): Add argument to lra_eliminate calls.
962 * lra-constraints.c (get_equiv_substitution): Rename to get_equiv.
963 (get_equiv_with_elimination): New.
964 (process_addr_reg): Call get_equiv_with_elimination instead of
965 get_equiv_substitution.
966 (equiv_address_substitution): Ditto.
967 (loc_equivalence_change_p): Ditto.
968 (loc_equivalence_callback, lra_constraints): Ditto.
969 (curr_insn_transform): Ditto. Print the sp offset
970 (process_alt_operands): Prevent stack pointer reloads.
971 (lra_constraints): Remove one argument from lra_eliminate call.
972 Move it up. Mark used hard regs bfore it. Use
973 get_equiv_with_elimination instead of get_equiv_substitution.
974 * lra-eliminations.c (lra_eliminate_regs_1): Add parameter and
975 assert for param values combination. Use sp offset. Add argument
976 to lra_eliminate_regs_1 calls.
977 (lra_eliminate_regs): Add argument to lra_eliminate_regs_1 call.
978 (curr_sp_change): New static var.
979 (mark_not_eliminable): Add parameter. Update curr_sp_change.
980 Don't prevent elimination to sp if we can calculate its change.
981 Pass the argument to mark_not_eliminable calls.
982 (eliminate_regs_in_insn): Add a parameter. Use sp offset. Add
983 argument to lra_eliminate_regs_1 call.
984 (update_reg_eliminate): Move calculation of hard regs for spill
985 lower. Switch off lra_in_progress temporarily to generate regs
986 involved into elimination.
987 (lra_init_elimination): Rename to init_elimination. Make it
988 static. Set up insn sp offset, check the offsets at the end of BBs.
989 (process_insn_for_elimination): Add parameter. Pass its value to
990 eliminate_regs_in_insn.
991 (lra_eliminate): : Add parameter. Pass its value to
992 process_insn_for_elimination. Add assert for param values
993 combination. Call init_elimination. Don't update offsets in
994 equivalence substitutions.
995 * lra-spills.c (assign_mem_slot): Don't call lra_eliminate_regs_1
996 for created stack slot.
997 (remove_pseudos): Call lra_eliminate_regs_1 before changing memory
1000 2013-11-28 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
1002 * config/arm/iterators.md (vrint_conds): New int attribute.
1003 * config/arm/vfp.md (<vrint_pattern><SDF:mode>2): Set conds attribute.
1004 (smax<mode>3): Likewise.
1005 (smin<mode>3): Likewise.
1007 2013-11-28 Richard Sandiford <rdsandiford@googlemail.com>
1009 * tree-core.h (tree_base): Document use of static_flag for SSA_NAME.
1010 * tree.h (SSA_NAME_ANTI_RANGE_P, SSA_NAME_RANGE_TYPE): New macros.
1011 * tree-ssanames.h (set_range_info): Add range_type argument.
1012 (duplicate_ssa_name_range_info): Likewise.
1013 * tree-ssanames.c (set_range_info): Take the range type as argument
1014 and store it in SSA_NAME_ANTI_RANGE_P.
1015 (duplicate_ssa_name_range_info): Likewise.
1016 (get_range_info): Use SSA_NAME_ANTI_RANGE_P.
1017 (set_nonzero_bits): Update call to set_range_info.
1018 (duplicate_ssa_name_fn): Update call to duplicate_ssa_name_range_info.
1019 * tree-ssa-copy.c (fini_copy_prop): Likewise.
1020 * tree-vrp.c (remove_range_assertions): Update call to set_range_info.
1021 (vrp_finalize): Likewise, passing anti-ranges directly.
1023 2013-11-28 Richard Biener <rguenther@suse.de>
1025 PR tree-optimization/59330
1026 * tree-ssa-dce.c (eliminate_unnecessary_stmts): Simplify
1027 and fix delayed marking of free calls not necessary.
1029 2013-11-28 Andrew MacLeod <amacleod@redhat.com>
1031 * tree-ssa-propagate.c (valid_gimple_call_p): Pass TREE_TYPE to
1033 * ipa-prop.c (determine_known_aggregate_parts): Likewise.
1035 2013-11-28 Terry Guo <terry.guo@arm.com>
1037 * config/arm/arm.c (v7m_extra_costs): New table.
1038 (arm_v7m_tune): Use it.
1040 2013-11-28 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1042 * config/sol2.h (TIME_LIBRARY): Define.
1044 2013-11-28 Richard Biener <rguenther@suse.de>
1047 * lto-streamer-out.c (tree_is_indexable): TYPE_DECLs and
1048 CONST_DECLs in function context are not indexable.
1050 2013-11-28 Chung-Ju Wu <jasonwucj@gmail.com>
1052 * config/nds32/nds32.c (nds32_rtx_costs): Adjust MULT cost if it is
1053 not optimized for size.
1055 2013-11-28 Jakub Jelinek <jakub@redhat.com>
1057 * cfgexpand.c (struct stack_vars_data): Add asan_base and asan_alignb
1059 (expand_stack_vars): For -fsanitize=address, use (and set initially)
1060 data->asan_base as base for vars and update asan_alignb.
1061 (expand_used_vars): Initialize data.asan_base and data.asan_alignb.
1062 Pass them to asan_emit_stack_protection.
1063 * asan.c (asan_detect_stack_use_after_return): New variable.
1064 (asan_emit_stack_protection): Add pbase and alignb arguments.
1065 Implement use after return sanitization.
1066 * asan.h (asan_emit_stack_protection): Adjust prototype.
1067 (ASAN_STACK_MAGIC_USE_AFTER_RET, ASAN_STACK_RETIRED_MAGIC): Define.
1069 2013-11-28 Sergey Ostanevich <sergos.gnu@gmail.com>
1071 * common.opt: Introduced a new option -fsimd-cost-model.
1072 * doc/invoke.texi: Introduced a new openmp-simd warning and
1073 a new -fsimd-cost-model option.
1074 * tree-vectorizer.h (unlimited_cost_model): Interface updated
1075 to rely on the particular loop info.
1076 * tree-vect-data-refs.c (vect_peeling_hash_insert): Ditto.
1077 (vect_peeling_hash_choose_best_peeling): Ditto.
1078 (vect_enhance_data_refs_alignment): Ditto.
1079 * tree-vect-slp.c (vect_slp_analyze_bb_1): Ditto.
1080 * tree-vect-loop.c (vect_estimate_min_profitable_iters): Ditto
1081 plus added openmp-simd warining.
1083 2013-11-27 H.J. Lu <hongjiu.lu@intel.com>
1085 PR rtl-optimization/59311
1086 * dwarf2cfi.c (dwf_regno): Assert reg isn't pseudo register.
1087 * lra-spills.c (spill_pseudos): Handle REG_XXX notes.
1089 2013-11-27 Eric Botcazou <ebotcazou@adacore.com>
1091 * var-tracking.c (track_expr_p): Do not track declarations for parts
1092 of tracked parameters.
1093 (add_stores): Do not track values for tracked parameters passed in
1095 (vt_get_decl_and_offset): Handle PARALLEL.
1096 (vt_add_function_parameter): Handle parameters with incoming PARALLEL.
1098 2013-11-27 Jeff Law <law@redhat.com>
1100 * tree-ssa-threadupdate.c (thread_through_all_blocks): Do not
1101 clobber the loop structure thread_block was unsuccessful. If
1102 thread_block was unsuccessful, cleanup appropriately.
1104 2013-11-27 Chen Liqin <liqin.gcc@gmail.com>
1106 * config/score/score.h (REG_CLASS_FROM_LETTER): Delete.
1107 (score_char_to_class): Likewise.
1109 2013-11-27 Kenneth Zadeck <zadeck@naturalbridge.com>
1111 * fold-const.c (int_const_binop_1): Make INT_MIN % -1 return 0 with
1112 the overflow bit set.
1114 2013-11-27 Richard Biener <rguenther@suse.de>
1117 * cgraphbuild.c (build_cgraph_edges): Do not build edges
1119 (rebuild_cgraph_edges): Likewise.
1120 * ipa-inline-analysis.c (estimate_function_body_sizes):
1121 Skip internal calls.
1122 * tree-inline.c (estimate_num_insns): Estimate size of internal
1124 (gimple_expand_calls_inline): Do not try inline-expanding
1126 * lto-streamer-in.c (input_cfg): Stream loop safelen,
1127 force_vect and simduid.
1128 (input_struct_function_base): Stream has_force_vect_loops
1129 and has_simduid_loops.
1130 (input_function): Adjust.
1131 * lto-streamer-out.c (output_cfg): Stream loop safelen,
1132 force_vect and simduid.
1133 (output_struct_function_base): Stream has_force_vect_loops
1134 and has_simduid_loops.
1136 2013-11-27 Kai Tietz <ktietz@redhat.com>
1138 * config/i386/winnt.c (i386_pe_section_type_flags): Use const
1141 2013-11-27 Kugan Vivekanandarajah <kuganv@linaro.org>
1143 * doc/tm.texi.in (TARGET_HAS_NO_HW_DIVIDE): Define.
1144 * doc/tm.texi (TARGET_HAS_NO_HW_DIVIDE): Regenerate.
1146 2013-11-27 Marek Polacek <polacek@redhat.com>
1149 * ubsan.c (instrument_null): Use gimple_store_p/gimple_assign_load_p
1150 instead of walk_gimple_op.
1151 (ubsan_pass): Adjust. Call instrument_null only if SANITIZE_NULL.
1153 2013-11-27 Aldy Hernandez <aldyh@redhat.com>
1154 Jakub Jelinek <jakub@redhat.com>
1156 * cgraph.h (enum cgraph_simd_clone_arg_type): New.
1157 (struct cgraph_simd_clone_arg, struct cgraph_simd_clone): New.
1158 (struct cgraph_node): Add simdclone and simd_clones fields.
1159 * config/i386/i386.c (ix86_simd_clone_compute_vecsize_and_simdlen,
1160 ix86_simd_clone_adjust, ix86_simd_clone_usable): New functions.
1161 (TARGET_SIMD_CLONE_COMPUTE_VECSIZE_AND_SIMDLEN,
1162 TARGET_SIMD_CLONE_ADJUST, TARGET_SIMD_CLONE_USABLE): Define.
1163 * doc/tm.texi.in (TARGET_SIMD_CLONE_COMPUTE_VECSIZE_AND_SIMDLEN,
1164 TARGET_SIMD_CLONE_ADJUST, TARGET_SIMD_CLONE_USABLE): Add.
1165 * doc/tm.texi: Regenerated.
1166 * ggc.h (ggc_alloc_cleared_simd_clone_stat): New function.
1167 * ipa-cp.c (determine_versionability): Fail if "omp declare simd"
1168 attribute is present.
1169 * omp-low.c: Include pretty-print.h, ipa-prop.h and tree-eh.h.
1170 (simd_clone_vector_of_formal_parm_types): New function.
1171 (simd_clone_struct_alloc, simd_clone_struct_copy,
1172 simd_clone_vector_of_formal_parm_types, simd_clone_clauses_extract,
1173 simd_clone_compute_base_data_type, simd_clone_mangle,
1174 simd_clone_create, simd_clone_adjust_return_type,
1175 create_tmp_simd_array, simd_clone_adjust_argument_types,
1176 simd_clone_init_simd_arrays): New functions.
1177 (struct modify_stmt_info): New type.
1178 (ipa_simd_modify_stmt_ops, ipa_simd_modify_function_body,
1179 simd_clone_adjust, expand_simd_clones, ipa_omp_simd_clone): New
1181 (pass_data_omp_simd_clone): New variable.
1182 (pass_omp_simd_clone): New class.
1183 (make_pass_omp_simd_clone): New function.
1184 * passes.def (pass_omp_simd_clone): New.
1185 * target.def (TARGET_SIMD_CLONE_COMPUTE_VECSIZE_AND_SIMDLEN,
1186 TARGET_SIMD_CLONE_ADJUST, TARGET_SIMD_CLONE_USABLE): New target hooks.
1187 * target.h (struct cgraph_node, struct cgraph_simd_node): Declare.
1188 * tree-core.h (OMP_CLAUSE_LINEAR_VARIABLE_STRIDE): Document.
1189 * tree.h (OMP_CLAUSE_LINEAR_VARIABLE_STRIDE): Define.
1190 * tree-pass.h (make_pass_omp_simd_clone): New prototype.
1191 * tree-vect-data-refs.c: Include cgraph.h.
1192 (vect_analyze_data_refs): Inline by hand find_data_references_in_loop
1193 and find_data_references_in_bb, if find_data_references_in_stmt
1194 fails, still allow calls to #pragma omp declare simd functions
1195 in #pragma omp simd loops unless they contain data references among
1196 the call arguments or in lhs.
1197 * tree-vect-loop.c (vect_determine_vectorization_factor): Handle
1199 (vect_transform_loop): Allow NULL STMT_VINFO_VECTYPE for calls
1201 * tree-vectorizer.h (enum stmt_vec_info_type): Add
1202 call_simd_clone_vec_info_type.
1203 (struct _stmt_vec_info): Add simd_clone_fndecl field.
1204 (STMT_VINFO_SIMD_CLONE_FNDECL): Define.
1205 * tree-vect-stmts.c: Include tree-ssa-loop.h,
1206 tree-scalar-evolution.h and cgraph.h.
1207 (vectorizable_call): Handle calls without lhs. Assert
1208 !stmt_can_throw_internal instead of failing for it. Don't update
1210 (struct simd_call_arg_info): New.
1211 (vectorizable_simd_clone_call): New function.
1212 (vect_transform_stmt): Call it.
1213 (vect_analyze_stmt): Likewise. Allow NULL STMT_VINFO_VECTYPE for
1215 * ipa-prop.c (ipa_add_new_function): Only call ipa_analyze_node
1216 if cgraph_function_with_gimple_body_p is true.
1218 2013-11-27 Tom de Vries <tom@codesourcery.com>
1219 Marc Glisse <marc.glisse@inria.fr>
1222 * fold-const.c (fold_indirect_ref_1): Don't create out-of-bounds
1224 * gimple-fold.c (gimple_fold_indirect_ref): Same.
1225 * tree-cfg.c (verify_expr): Give error if BIT_FIELD_REF is
1228 2013-11-27 Eric Botcazou <ebotcazou@adacore.com>
1231 * expr.c (emit_group_store): Don't write past the end of the structure.
1232 (store_bit_field): Fix formatting.
1234 2013-11-27 Richard Biener <rguenther@suse.de>
1236 PR tree-optimization/59288
1237 * tree-vect-loop.c (get_initial_def_for_induction): Do not
1238 re-analyze the PHI but use STMT_VINFO_LOOP_PHI_EVOLUTION_PART.
1240 2013-11-27 Marek Polacek <polacek@redhat.com>
1242 * ubsan.c (ubsan_type_descriptor): If varpool_get_node returns NULL
1243 for a decl, recreate that decl. Save into the hash table VAR_DECLs
1244 rather than ADDR_EXPRs.
1246 2013-11-27 Alexander Ivchenko <alexander.ivchenko@intel.com>
1248 * config/ia64/hpux.h (TARGET_LIBC_HAS_FUNCTION): Fix typo.
1250 2013-11-26 David Malcolm <dmalcolm@redhat.com>
1252 * gengtype.c (struct seen_tag): New.
1253 (already_seen_tag): New.
1254 (mark_tag_as_seen): New.
1255 (walk_subclasses): Support having multiple subclasses using the
1256 same tag by tracking which tags have already been seen, and using
1257 this to avoid adding duplicate cases to the "switch" statement.
1258 The call to already_seen_tag introduces an O(N^2) when running
1259 gengtype on N, the number of tags, due to the repeated linear
1260 search, but currently max(N) is relatively small (the number of
1261 GSS codes, which is 26).
1262 (walk_type): Pass in a seen_tag for use by the walk_subclasses
1265 * gimple.def (GIMPLE_OMP_ATOMIC_STORE, GIMPLE_OMP_RETURN): Rename
1266 underlying GSS values for these codes (from GSS_OMP_ATOMIC_STORE to
1267 GSS_OMP_ATOMIC_STORE_LAYOUT) to make clear that although
1268 GIMPLE_OMP_RETURN happens to share the data layout of
1269 GIMPLE_OMP_ATOMIC_STORE, they are not otherwise related.
1270 (GIMPLE_OMP_PARALLEL, GIMPLE_OMP_TARGET): Likewise, rename
1271 underlying GSS value from GSS_OMP_PARALLEL to
1272 GSS_OMP_PARALLEL_LAYOUT to make clear that these gimple codes are
1273 not directly related; they merely share in-memory layout.
1274 (GIMPLE_OMP_SINGLE, GIMPLE_OMP_TEAMS): Likewise, rename GSS values
1275 for these two codes from GSS_OMP_SINGLE to GSS_OMP_SINGLE_LAYOUT.
1277 * gsstruct.def (GSS_OMP_PARALLEL, gimple_statement_omp_parallel):
1279 (GSS_OMP_PARALLEL_LAYOUT, gimple_statement_omp_parallel_layout):
1281 (GSS_OMP_SINGLE, gimple_statement_omp_single): Rename to...
1282 (GSS_OMP_SINGLE_LAYOUT, gimple_statement_omp_single_layout): ...these.
1283 (GSS_OMP_ATOMIC_STORE, gimple_statement_omp_atomic_store): Rename to...
1284 (GSS_OMP_ATOMIC_STORE_LAYOUT, gimple_statement_omp_atomic_store):
1287 * gimple.h (gimple_statement_resx): New subclass of
1288 gimple_statement_eh_ctrl, with the invariant that
1289 stmt->code == GIMPLE_RESX.
1290 (gimple_statement_eh_dispatch): New subclass of
1291 gimple_statement_eh_ctrl, with the invariant that
1292 stmt->code == GIMPLE_EH_DISPATH.
1294 (gimple_statement_omp_parallel): The existing class expressed
1295 a layout (GSS_OMP_PARALLEL), but the codes with that layout
1296 are not all related, so it makes more sense for this class to
1297 express a *code* (GIMPLE_OMP_PARALLEL). GSS_OMP_PARALLEL has
1298 been renamed to GSS_OMP_PARALLEL_LAYOUT to express this, so
1299 rename the existing gimple_statement_omp_parallel class to...
1300 (gimple_statement_omp_parallel_layout): ...this, expressing
1301 a statement of structure layout GSS_OMP_PARALLEL_LAYOUT.
1302 (gimple_statement_omp_taskreg): New subclass of
1303 gimple_statement_omp_parallel_layout, expressing the invariant
1304 that the code is one of GIMPLE_OMP_PARALLEL or GIMPLE_OMP_TASK,
1305 as used by the various gimple_omp_taskreg_ accessors.
1306 (gimple_statement_omp_parallel): Reintroduce this class, this time
1307 as a subclass of gimple_statement_omp_taskreg to express the
1308 invariant stmt->code == GIMPLE_OMP_PARALLEL.
1309 (gimple_statement_omp_target) New class, subclassing
1310 gimple_statement_omp_parallel_layout, to express the invariant
1311 stmt->code == GIMPLE_OMP_TARGET.
1312 (gimple_statement_omp_task): Update to inherit from
1313 gimple_statement_omp_taskreg rather than
1314 gimple_statement_omp_parallel.
1316 (gimple_statement_omp_single): Rename to...
1317 (gimple_statement_omp_single_layout): ...this, expressing the
1318 invariant that the layout is GSS_OMP_SINGLE_LAYOUT.
1319 (gimple_statement_omp_single): ...and reintroduce this name as
1320 a subclass of gimple_statement_omp_single_layout, expressing
1321 the invariant that code == GIMPLE_OMP_SINGLE.
1322 (gimple_statement_omp_teams): New class, subclassing
1323 gimple_statement_omp_single_layout, for the code GIMPLE_OMP_TEAMS.
1325 (gimple_statement_omp_atomic_store): Rename to...
1326 (gimple_statement_omp_atomic_store_layout): ...this, expressing
1327 the invariant that the layout is GSS_OMP_ATOMIC_STORE_LAYOUT.
1328 (gimple_statement_omp_atomic_store): ...and reintroduce this
1329 name as a subclass of gimple_statement_omp_atomic_store_layout
1330 with code == GIMPLE_OMP_ATOMIC_STORE.
1331 (gimple_statement_omp_return): New class, subclassing
1332 gimple_statement_omp_atomic_store_layout for the code
1335 (is_a_helper <gimple_statement_eh_ctrl>::test): Delete.
1336 (is_a_helper <gimple_statement_resx>::test): New.
1337 (is_a_helper <gimple_statement_eh_dispatch>::test): New.
1338 (is_a_helper <gimple_statement_omp_atomic_store>::test): Only
1339 check for GIMPLE_OMP_ATOMIC_STORE, not for GIMPLE_OMP_RETURN.
1340 (is_a_helper <gimple_statement_omp_return>::test): New.
1341 (is_a_helper <gimple_statement_omp_taskreg>::test): New.
1342 (is_a_helper <gimple_statement_omp_parallel>::test): Only check
1343 for GIMPLE_OMP_PARALLEL, not for GIMPLE_OMP_TASK or
1345 (is_a_helper <gimple_statement_omp_target>::test): New.
1346 (is_a_helper <gimple_statement_omp_single>::test): Only check
1347 for GIMPLE_OMP_SINGLE, not for GIMPLE_OMP_TEAMS.
1348 (is_a_helper <gimple_statement_omp_teams>::test): New.
1350 (is_a_helper <const gimple_statement_eh_ctrl>::test): Delete.
1351 (is_a_helper <const gimple_statement_resx>::test): New.
1352 (is_a_helper <const gimple_statement_eh_dispatch>::test): New.
1353 (is_a_helper <const gimple_statement_omp_atomic_store>::test): Only
1354 check for GIMPLE_OMP_ATOMIC_STORE, not for GIMPLE_OMP_RETURN.
1355 (is_a_helper <const gimple_statement_omp_return>::test): New.
1356 (is_a_helper <const gimple_statement_omp_taskreg>::test): New.
1357 (is_a_helper <const gimple_statement_omp_parallel>::test): Only
1358 check for GIMPLE_OMP_PARALLEL, not for GIMPLE_OMP_TASK or
1360 (is_a_helper <const gimple_statement_omp_target>::test): New.
1361 (is_a_helper <const gimple_statement_omp_single>::test): Only
1362 check for GIMPLE_OMP_SINGLE, not for GIMPLE_OMP_TEAMS.
1363 (is_a_helper <const gimple_statement_omp_teams>::test): New.
1365 (gimple_omp_return_set_lhs, gimple_omp_return_lhs,
1366 gimple_omp_return_lhs_ptr): Replace bogus downcasts to
1367 gimple_statement_omp_atomic_store with downcasts to
1368 gimple_statement_omp_return, thus requiring that the code be
1370 (gimple_resx_region, gimple_resx_set_region): Replace bogus
1371 downcasts to gimple_statement_eh_ctrl with downcasts to
1372 gimple_statement_resx, thus requiring that the code be GIMPLE_RESX.
1373 (gimple_eh_dispatch_region, gimple_eh_dispatch_set_region):
1374 Replace bogus downcasts to const gimple_statement_eh_ctrl with
1375 downcasts to gimple_statement_eh_dispatch, thus requiring that
1376 the code be GIMPLE_EH_DISPATCH.
1377 (gimple_omp_taskreg_clauses, gimple_omp_taskreg_clauses_ptr)
1378 gimple_omp_taskreg_set_clauses, gimple_omp_taskreg_child_fn,
1379 gimple_omp_taskreg_child_fn_ptr, gimple_omp_taskreg_set_child_fn,
1380 gimple_omp_taskreg_data_arg, gimple_omp_taskreg_data_arg_ptr,
1381 gimple_omp_taskreg_set_data_arg): Replace bogus downcasts to
1382 gimple_statement_omp_parallel with downcasts to
1383 gimple_statement_omp_taskreg, thus requiring that the code be
1384 either GIMPLE_OMP_PARALLEL or GIMPLE_OMP_TASK.
1385 (gimple_omp_target_clauses, gimple_omp_target_clauses_ptr
1386 gimple_omp_target_set_clauses, gimple_omp_target_child_fn
1387 gimple_omp_target_child_fn_ptr, gimple_omp_target_set_child_fn
1388 gimple_omp_target_data_arg, gimple_omp_target_data_arg_ptr
1389 gimple_omp_target_set_data_arg): Replace bogus downcasts to
1390 gimple_statement_omp_parallel with downcasts to
1391 gimple_statement_omp_target, thus requiring that the code be
1393 (gimple_omp_teams_clauses, gimple_omp_teams_clauses_ptr
1394 gimple_omp_teams_set_clauses): Replace bogus downcasts to
1395 gimple_statement_omp_single with downcasts to
1396 gimple_statement_omp_teams, thus requiring that the code be
1399 * gimple.c (gimple_build_resx): Fix bogus as_a<> to use
1400 gimple_statement_resx.
1401 (gimple_build_eh_dispatch): Fix bogus as_a<> to use
1402 gimple_statement_eh_dispatch.
1404 2013-11-26 Jakub Jelinek <jakub@redhat.com>
1406 PR tree-optimization/59014
1407 * tree-vrp.c (register_edge_assert_for_1): Don't look
1408 through conversions from non-integral types or through
1409 narrowing conversions.
1412 * config/i386/i386.c (device_alg): Fix up formatting.
1413 (ix86_expand_set_or_movmem): Handle max_size < epilogue_size_needed
1414 similarly to count && count < epilogue_size_needed. Fix up
1416 * builtins.c (determine_block_size): Fix comment typo.
1419 * ubsan.c (ubsan_source_location): Don't add any location
1420 to ADDR_EXPR in the ctor. Revert 2013-11-22 change.
1421 (ubsan_create_data): Strip block info from LOC.
1424 * tree-vect-generic.c (optimize_vector_constructor): Don't optimize
1425 if there isn't optab handler for the corresponding vector PLUS_EXPR.
1427 PR rtl-optimization/59166
1428 * ira.c (find_moveable_pseudos): Use DF_REF_REAL_LOC instead of
1429 DF_REF_LOC in validate_change call.
1430 (split_live_ranges_for_shrink_wrap): Likewise.
1433 * omp-low.c (lower_rec_input_clause): For reduction with placeholder
1434 of references to constant size types in simd loops, defer emitting
1435 initializer for the new_var, emit it later on only if not using
1439 * omp-low.c (expand_omp_for_static_chunk): Don't set loop->latch
1440 for the inner loop if collapse_bb is non-NULL.
1441 (expand_omp_simd): Use cont_bb rather than e->dest as latch.
1443 2013-11-26 Yufeng Zhang <yufeng.zhang@arm.com>
1445 * config/arm/arm.c (arm_legitimize_address): Check xop1 is not
1446 a constant immediate before force_reg.
1448 2013-11-26 Richard Biener <rguenther@suse.de>
1450 PR tree-optimization/59245
1451 * tree-vrp.c (set_value_range): Assert that we don't have
1452 overflowed constants (but our infinities).
1453 (set_value_range_to_value): Drop all overflow flags.
1454 (vrp_visit_phi_node): Likewise.
1455 (vrp_visit_assignment_or_call): Use set_value_range_to_value
1456 to set a constant range.
1458 2013-11-26 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
1461 * config/arm/arm.md (*zextendsidi_negsi): New pattern.
1462 * config/arm/arm.c (arm_new_rtx_costs): Initialise cost correctly
1463 for zero_extend case.
1465 2013-11-26 H.J. Lu <hongjiu.lu@intel.com>
1468 * configure.ac (install_gold_as_default): New. Set to yes for
1469 --disable-ld or --enable-gold=default.
1470 (gcc_cv_ld_gold_srcdir): New.
1471 (gcc_cv_ld): Also check in-tree gold if install_gold_as_default is yes.
1472 (ORIGINAL_LD_BFD_FOR_TARGET): New AC_SUBST.
1473 (ORIGINAL_LD_GOLD_FOR_TARGET): Likewise.
1474 * configure: Regenerated.
1476 * exec-tool.in (ORIGINAL_LD_BFD_FOR_TARGET): New variable.
1477 (ORIGINAL_LD_GOLD_FOR_TARGET): Likewise.
1478 (original) [collect-ld && -fuse-ld=bfd]: Set to
1479 $ORIGINAL_LD_BFD_FOR_TARGET.
1480 (original) [collect-ld && -fuse-ld=gold]: Set to
1481 $ORIGINAL_LD_GOLD_FOR_TARGET.
1482 (dir) [collect-ld && ../gold/ld-new]: Set to gold.
1483 (fast_install) [collect-ld && ../gold/ld-new]: Set to yes.
1485 2013-11-26 Terry Guo <terry.guo@arm.com>
1487 * config/arm/arm.c (require_pic_register): Handle high pic base
1488 register for thumb-1.
1489 (arm_load_pic_register): Also initialize high pic base register.
1490 * doc/invoke.texi: Update documentation for option -mpic-register.
1492 2013-11-26 Oleg Endo <olegendo@gcc.gnu.org>
1496 * config/sh/sh.c (max_mov_insn_displacement, disp_addr_displacement):
1497 Prefix function names with 'sh_'. Make them non-static.
1498 * config/sh/sh-protos.h (sh_disp_addr_displacement,
1499 sh_max_mov_insn_displacement): Add declarations.
1500 * config/sh/constraints.md (Q): Reject QImode.
1501 (Sdd): Use match_code "mem".
1502 (Snd): Fix erroneous matching of non-memory operands.
1503 * config/sh/predicates.md (short_displacement_mem_operand): New
1505 (general_movsrc_operand): Disallow PC relative QImode loads.
1506 * config/sh/sh.md (*mov<mode>_reg_reg): Remove it.
1507 (*movqi, *movhi): Merge both insns into...
1508 (*mov<mode>): ... this new insn. Replace generic 'm' constraints with
1509 'Snd' and 'Sdd' constraints. Calculate insn length dynamically based
1510 on the operand types.
1512 2013-11-26 Joern Rennecke <joern.rennecke@embecosm.com>
1514 * config/epiphany/epiphany.c (epiphany_expand_prologue):
1515 Remove unused variable save_config.
1516 (epiphany_compute_frame_size): Avoid signed/unsigned comparison in
1519 2013-11-26 James Greenhalgh <james.greenhalgh@arm.com>
1521 * config/aarch64/arm_neon.h (vtbx1_<psu>8): Emulate behaviour
1522 using other intrinsics.
1523 (vtbx3_<psu>8): Likewise.
1525 2013-11-26 James Greenhalgh <james.greenhalgh@arm.com>
1527 * config/aarch64/aarch64-builtins.c
1528 (aarch64_types_bsl_p_qualifiers): New.
1529 (aarch64_types_bsl_s_qualifiers): Likewise.
1530 (aarch64_types_bsl_u_qualifiers): Likewise.
1531 (TYPES_BSL_P): Likewise.
1532 (TYPES_BSL_S): Likewise.
1533 (TYPES_BSL_U): Likewise.
1534 (BUILTIN_VALLDIF): Likewise.
1535 (BUILTIN_VDQQH): Likewise.
1536 * config/aarch64/aarch64-simd-builtins.def (simd_bsl): New.
1537 * config/aarch64/aarch64-simd.md
1538 (aarch64_simd_bsl<mode>_internal): Handle more modes.
1539 (aarch64_simd_bsl<mode>): Likewise.
1540 * config/aarch64/arm_neon.h
1541 (vbsl<q>_<fpsu><8,16,32,64): Implement using builtins.
1542 * config/aarch64/iterators.md (VALLDIF): New.
1543 (Vbtype): Handle more modes.
1545 2013-11-26 James Greenhalgh <james.greenhalgh@arm.com>
1547 * config/aarch64/aarch64-builtins.c
1548 (aarch64_type_qualifiers): Add qualifier_poly.
1549 (aarch64_build_scalar_type): Also build Poly types.
1550 (aarch64_build_vector_type): Likewise.
1551 (aarch64_build_type): Likewise.
1552 (aarch64_build_signed_type): New.
1553 (aarch64_build_unsigned_type): Likewise.
1554 (aarch64_build_poly_type): Likewise.
1555 (aarch64_init_simd_builtins): Also handle Poly types.
1557 2013-11-26 James Greenhalgh <james.greenhalgh@arm.com>
1559 * config/aarch64/aarch64-builtins.c
1560 (VAR1): Use new naming scheme for aarch64_builtins.
1561 (aarch64_builtin_vectorized_function): Use new aarch64_builtins names.
1563 2013-11-26 Richard Biener <rguenther@suse.de>
1565 PR tree-optimization/59287
1566 * tree-ssa-structalias.c (get_constraint_for_component_ref):
1567 Remove no longer necessary special-casing of union accesses.
1569 2013-11-26 Richard Biener <rguenther@suse.de>
1571 * pretty-print.c (output_buffer::~output_buffer): Really
1574 2013-11-25 Jeff Law <law@redhat.com>
1576 * tree-ssa-threadupdate.c (thread_through_all_blocks): Selectively
1577 invalidate loop information.
1579 2013-11-25 Oleg Endo <olegendo@gcc.gnu.org>
1581 * config/sh/sh.md (doloop_end_split): Add missing SI mode.
1583 2013-11-25 Oleg Endo <olegendo@gcc.gnu.org>
1587 * config/sh/sh_optimize_sett_clrt.cc (struct ccreg_value): Update
1589 (sh_optimize_sett_clrt::find_last_ccreg_values): Check stack of
1590 previously visited basic blocks before recursing instead of only one
1593 2013-11-25 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
1595 * config/aarch64/aarch64.c (cortexa53_tuning): New struct.
1596 * config/aarch64/aarch64-cores.def (cortex-a53):
1597 Use cortexa53 tuning struct.
1599 2013-11-25 Andrew Macleod <amacleod@redhat.com>
1602 * fold-const.c: Include hash-table.h.
1604 2013-11-25 Marek Polacek <polacek@redhat.com>
1607 * ubsan.c (ubsan_create_data): Increase the size of the fields array.
1609 2013-11-25 Richard Biener <rguenther@suse.de>
1611 * tree-dfa.c: Remove unused convert.h include.
1613 2013-11-25 Terry Guo <terry.guo@arm.com>
1615 * doc/invoke.texi (-mslow-flash-data): Document new option.
1616 * config/arm/arm.opt (mslow-flash-data): New option.
1617 * config/arm/arm-protos.h (arm_max_const_double_inline_cost):
1619 * config/arm/arm.h (TARGET_USE_MOVT): Always true when literal pools
1621 (arm_disable_literal_pool): Declare it.
1622 * config/arm/arm.c (arm_disable_literal_pool): New variable.
1623 (arm_option_override): Handle new option.
1624 (thumb2_legitimate_address_p): Don't allow symbol references when
1625 literal pools are disabled.
1626 (arm_max_const_double_inline_cost): New function.
1627 * config/arm/arm.md (types.md): Include it before ...
1628 (use_literal_pool): New attribute.
1629 (enabled): Use new attribute.
1630 (split pattern): Replace symbol+offset with MOVW/MOVT.
1632 2013-11-24 Steven Bosscher <steven@gcc.gnu.org>
1635 Revert previous commit.
1637 2013-11-24 Steven Bosscher <steven@gcc.gnu.org>
1639 * jump.c (reset_insn_reg_label_operand_notes): New function,
1641 (init_label_info): ... here. Reset LABEL_NUSES in cfglayout mode.
1642 * cfgcleanup.c (delete_dead_jump_tables_between): New function,
1644 (delete_dead_jumptables): ... here. Handle cfglayout mode.
1645 (cleanup_cfg): Delete dead jump tables in cfglayout mode if an
1646 expensive CFG cleanup is called for.
1647 * cfgrtl.c (fixup_reorder_chain): Remove BARRIERs from fallthru paths.
1648 (cfg_layout_finalize): Delete dead jump tables before re-building
1650 * ira.c (ira): Rebuild jump labels *after* deleting unreachable
1651 basic blocks, not before.
1652 * loop-init.c (rtl_loop_done): Call for an expensive CFG cleanup.
1654 * modulo-sched.c (sms_schedule): Do not look for BARRIERs in the
1655 insns chain of a scheduling extended basic block, they cannot appear
1656 there in cfglayout mode.
1658 2013-11-24 Tobias Burnus <burnus@net-b.de>
1660 * doc/invoke.texi (-fsanitize=leak): Add link to the wiki page.
1662 2013-11-24 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
1664 * config/rs6000/rs6000.c (rs6000_expand_vec_perm_const_1): Correct
1667 2013-11-24 H.J. Lu <hongjiu.lu@intel.com>
1669 * graphite-sese-to-poly.c: Don't include extra "expr.h".
1671 2013-11-23 Eric Botcazou <ebotcazou@adacore.com>
1673 * cilk-common.c (expand_builtin_cilk_detach): Dereference worker.
1675 2013-11-23 David Edelson <dje.gcc@gmail.com>
1676 Andrew Dixie <andrewd@gentrack.com>
1679 * config/rs6000/aix.h (COLLECT_SHARED_INIT_FUNC): Define.
1680 (COLLECT_SHARED_FINI_FUNC): Define.
1682 * collect2.c (aix_shared_initname): Declare.
1683 (aix_shared_fininame): Declare.
1684 (symkind): Add SYM_AIXI and SYM_AIXD.
1685 (scanfilter_masks): Add SCAN_AIXI and SCAN_AIXD.
1686 (struct names special): Add GLOBAL__AIXI_ and GLOBAL__AIXD_.
1687 (aixlazy_flag): Parse.
1688 (extract_init_priority): SYM_AIXI and SYM_AIXD have highest priority.
1689 (scan_prog_file, COFF): Handle SYM_AIXI and SYM_AIXD.
1691 2013-11-23 David Edelsohn <dje.gcc@gmail.com>
1693 * config/rs6000/rs6000.c (IN_NAMED_SECTION): New macro.
1694 (rs6000_xcoff_select_section): Place decls with stricter alignment
1695 into named sections.
1696 (rs6000_xcoff_unique_section): Allow unique sections for
1697 uninitialized data with strict alignment.
1699 2013-11-23 Jakub Jelinek <jakub@redhat.com>
1701 PR tree-optimization/59154
1702 * tree-ssa-reassoc.c (maybe_optimize_range_tests): When changing
1703 rhs1 of a cast and new_op is invariant, fold_convert it.
1704 * tree-ssa-forwprop.c (ssa_forward_propagate_and_combine): Only call
1705 simplify_conversion_from_bitmask if rhs1 is a SSA_NAME.
1707 2013-11-23 Uros Bizjak <ubizjak@gmail.com>
1710 * config/i386/i386.c (bdesc_multi_arg) <IX86_BUILTIN_VFRCZSS>:
1711 Declare as MULTI_ARG_1_SF instruction.
1712 <IX86_BUILTIN_VFRCZSD>: Decleare as MULTI_ARG_1_DF instruction.
1713 * config/i386/sse.md (*xop_vmfrcz<mode>2): Rename
1714 from *xop_vmfrcz_<mode>.
1715 * config/i386/xopintrin.h (_mm_frcz_ss): Use __builtin_ia32_movss
1716 to merge scalar result with __A.
1717 (_mm_frcz_sd): Use __builtin_ia32_movsd to merge scalar
1720 2013-11-23 Eric Botcazou <ebotcazou@adacore.com>
1722 * gimplify.h (recalculate_side_effects): Delete.
1723 * gimplify.c (recalculate_side_effects): Make static and add comment.
1725 2013-11-23 Richard Sandiford <rdsandiford@googlemail.com>
1727 * config/sh/sh.md: Use nonimmediate_operand rather than general_operand
1728 for the destination of a define_peephole2. Likewise register_operand
1729 rather than arith_reg_operand. Remove constraints from
1732 2013-11-23 Richard Sandiford <rdsandiford@googlemail.com>
1734 * config/mn10300/mn10300-protos.h (mn10300_store_multiple_operation):
1736 (mn10300_store_multiple_operation_p): Declare.
1737 * config/mn10300/mn10300.c (mn10300_store_multiple_operation):
1739 (mn10300_store_multiple_operation_p): ...this and remove mode
1741 * config/mn10300/predicates.md (mn10300_store_multiple_operation):
1744 2013-11-23 Richard Sandiford <rdsandiford@googlemail.com>
1746 * config/bfin/bfin-protos.h (push_multiple_operation): Delete.
1747 (pop_multiple_operation): Delete.
1748 (analyze_push_multiple_operation): Declare.
1749 (analyze_pop_multiple_operation): Declare.
1750 * config/bfin/bfin.c (push_multiple_operation): Rename to...
1751 (analyze_push_multiple_operation): ...this and remove mode argument.
1752 (pop_multiple_operation): Rename to...
1753 (analyze_pop_multiple_operation): ...this and remove mode argument.
1754 * config/bfin/predicates.md (push_multiple_operation): Define.
1755 (pop_multiple_operation): Likewise.
1757 2013-11-23 Alan Modra <amodra@gmail.com>
1759 * config/rs6000/vsx.md (fusion peepholes): Disable when !TARGET_VSX.
1761 2013-11-22 Jakub Jelinek <jakub@redhat.com>
1764 * common.opt (static-liblsan): Add.
1765 * config/gnu-user.h (STATIC_LIBLSAN_LIBS, STATIC_LIBUBSAN_LIBS):
1767 * flag-types.h (enum sanitize_code): Add SANITIZE_LEAK. Renumber
1768 SANITIZE_SHIFT, SANITIZE_DIVIDE, SANITIZE_UNREACHABLE, SANITIZE_VLA,
1770 * opts.c (common_handle_option): Handle -fsanitize=leak.
1771 * gcc.c (ADD_STATIC_LIBLSAN_LIBS, LIBLSAN_SPEC): Define.
1772 (LIBUBSAN_SPEC): Don't test LIBUBSAN_EARLY_SPEC.
1773 (LIBUBSAN_EARLY_SPEC): Remove.
1774 (SANITIZER_EARLY_SPEC): Don't do anything for libubsan.
1775 (SANITIZER_SPEC): Add -fsanitize=leak handling.
1776 (sanitize_spec_function): Handle %sanitize(leak).
1777 * doc/invoke.texi (-static-liblsan, -fsanitize=leak): Document.
1779 2013-11-22 Aldy Hernandez <aldyh@redhat.com>
1780 Jakub Jelinek <jakub@redhat.com>
1782 * ipa.c (symtab_remove_unreachable_nodes): Fix up comment typos.
1783 * ipa-prop.c (get_vector_of_formal_parm_types): Renamed to ...
1784 (ipa_get_vector_of_formal_parm_types): ... this. No longer static.
1785 (ipa_modify_formal_parameters): Adjust caller. Remove
1786 synth_parm_prefix argument. Use operator enum instead of bit fields.
1787 Add assert for properly handling vector of references. Handle
1788 creating brand new parameters.
1789 (ipa_modify_call_arguments): Use operator enum instead of bit
1791 (ipa_combine_adjustments): Same. Assert that IPA_PARM_OP_NEW is not
1793 (ipa_modify_expr, get_ssa_base_param, ipa_get_adjustment_candidate):
1795 (ipa_dump_param_adjustments): Rename reduction to new_decl.
1796 Use operator enum instead of bit fields.
1797 * ipa-prop.h (enum ipa_parm_op): New.
1798 (struct ipa_parm_adjustment): New field op. Rename reduction
1799 to new_decl, new_arg_prefix to arg_prefix and remove remove_param
1801 (ipa_modify_formal_parameters): Remove last argument.
1802 (ipa_get_vector_of_formal_parm_types, ipa_modify_expr,
1803 ipa_get_adjustment_candidate): New prototypes.
1804 * tree-sra.c (turn_representatives_into_adjustments): Use operator
1805 enum. Set arg_prefix.
1806 (get_adjustment_for_base): Use operator enum.
1807 (sra_ipa_modify_expr): Rename to ipa_modify_expr and move to
1809 (sra_ipa_modify_assign): Rename sra_ipa_modify_expr to ipa_modify_expr.
1810 (ipa_sra_modify_function_body): Same. No longer static.
1811 (sra_ipa_reset_debug_stmts): Use operator enum.
1812 (modify_function): Do not pass prefix argument.
1814 2013-11-22 Jakub Jelinek <jakub@redhat.com>
1816 * ubsan.c (ubsan_source_location): Don't crash on unknown locations.
1817 (ubsan_pass): Ignore clobber stmts.
1819 * sanitizer.def (BUILT_IN_UBSAN_HANDLE_MISSING_RETURN): New built-in.
1820 * opts.c (common_handle_option): Add -fsanitize=return.
1821 * flag-types.h (enum sanitize_code): Add SANITIZE_RETURN and
1822 or it into SANITIZE_UNDEFINED.
1824 * sanitizer.def (BUILT_IN_ASAN_BEFORE_DYNAMIC_INIT,
1825 BUILT_IN_ASAN_AFTER_DYNAMIC_INIT): New.
1826 * asan.c (instrument_derefs): Handle also VAR_DECL loads/stores.
1827 Don't instrument accesses to VAR_DECLs which are known to fit
1828 into their bounds and the vars are known to have shadow bytes
1829 indicating allowed access.
1830 (asan_dynamic_init_call): New function.
1831 (asan_add_global): If vnode->dynamically_initialized,
1832 set __has_dynamic_init to 1 instead of 0.
1833 (initialize_sanitizer_builtins): Add BT_FN_VOID_CONST_PTR var.
1834 * asan.h (asan_dynamic_init_call): New prototype.
1835 * cgraph.h (varpool_node): Add dynamically_initialized bitfield.
1837 2013-11-22 Martin Jambor <mjambor@suse.cz>
1839 PR rtl-optimization/10474
1840 * ira.c (interesting_dest_for_shprep_1): New function.
1841 (interesting_dest_for_shprep): Use interesting_dest_for_shprep_1,
1842 also check parallels.
1844 2013-11-22 Jeff Law <law@redhat.com>
1846 * tree-ssa-threadedge.c (record_temporary_equivalence): Handle
1847 NULL for RHS, which we used to invalidate equivalences.
1848 (record_temporary_equivalences_from_phis): New bitmap arguments
1849 and a boolean indicating if we have passed a backedge. If we
1850 have passed a backedge, then set the appropriate bit in the
1851 bitmaps for the SRC & DEST of PHIs creating equivalences.
1852 (invalidate_equivalences, dummy_simplify): New functions.
1853 (cond_arg_set_in_b): Remove.
1854 (record_temporary_equivalences_from_stmts_at_dest): New bitmap
1855 arguments and a boolean indicating if we have passed a backedge.
1856 If we have passed a backedge, then perform invalidations as needed.
1857 (thread_around_empty_blocks): If we have seen a backedge, then
1858 use the dummy simplify routine.
1859 (thread_through_normal_block): Likewise. Pass bitmaps and
1860 backedge status to children. Do not pessimize so much when
1861 traversing backedges in the CFG.
1862 (thread_across_edge): Manage the SRC_MAP/DST_MAP bitmaps.
1863 If we have seen a backedge, then use the dummy simplify routine.
1864 Do not pessimize so much when traversing backedges.
1866 2013-11-22 Hans-Peter Nilsson <hp@axis.com>
1868 * config/cris/cris.c (cris_atomic_align_for_mode): New function.
1869 (TARGET_ATOMIC_ALIGN_FOR_MODE): Define.
1871 2013-11-22 Yuri Rumyantsev <ysrumyan@gmail.com>
1873 * config/i386/i386.c (processor_alias_table): Enable PTA_AES,
1874 PTA_PCLMUL and PTA_RDRND for Silvermont.
1875 * config/i386/driver-i386.c (host_detect_local_cpu): Set up cpu
1878 * doc/invoke.texi: Mention AES, PCLMUL and RDRND for Silvermont.
1880 2013-11-22 Andrew MacLeod <amacleod@redhat.com>
1882 * hooks.h (hook_uint_mode_0): Add Prototype.
1883 * hooks.c (hook_uint_mode_0): New default function.
1884 * target.def (atomic_align_for_mode): New target hook.
1885 * tree.c (build_atomic_base): Add alignment override parameter.
1886 (build_common_tree_nodes): Use atomic alignment override.
1887 * doc/tm.texi.in (TARGET_ATOMIC_ALIGN_FOR_MODE): Define.
1888 * doc/tm.texi (TARGET_ATOMIC_ALIGN_FOR_MODE): Add description.
1890 2013-11-22 Andrew MacLeod <amacleod@redhat.com>
1892 * gimple.h: Remove all includes.
1893 (recalculate_side_effects): Move prototype to gimplify.h.
1894 * Makefile.in (PLUGIN_HEADERS): Add flattened gimple.h includes.
1895 * gengtype.c (open_base_files): Add gimple.h include list.
1896 * gimplify.h (recalculate_side_effects): Relocate prototype here.
1897 * gimple.c: Adjust include list.
1898 (recalculate_side_effects): Move to gimplify.c.
1899 * gimplify.c: Adjust include list.
1900 (recalculate_side_effects): Relocate from gimple.c.
1901 * alias.c: Add required include files removed from gimple.h.
1903 * builtins.c: Likewise.
1904 * calls.c: Likewise.
1905 * cfgexpand.c: Likewise.
1906 * cfgloop.c: Likewise.
1907 * cfgloopmanip.c: Likewise.
1908 * cgraphbuild.c: Likewise.
1909 * cgraph.c: Likewise.
1910 * cgraphclones.c: Likewise.
1911 * cgraphunit.c: Likewise.
1912 * cilk-common.c: Likewise.
1913 * data-streamer.c: Likewise.
1914 * data-streamer-in.c: Likewise.
1915 * data-streamer-out.c: Likewise.
1917 * dwarf2out.c: Likewise.
1918 * emit-rtl.c: Likewise.
1919 * except.c: Likewise.
1921 * fold-const.c: Likewise.
1922 * function.c: Likewise.
1923 * gimple-builder.c: Likewise.
1924 * gimple-expr.c: Likewise.
1925 * gimple-fold.c: Likewise.
1926 * gimple-iterator.c: Likewise.
1927 * gimple-low.c: Likewise.
1928 * gimple-pretty-print.c: Likewise.
1929 * gimple-ssa-isolate-paths.c: Likewise.
1930 * gimple-ssa-strength-reduction.c: Likewise.
1931 * gimple-streamer-in.c: Likewise.
1932 * gimple-streamer-out.c: Likewise.
1933 * gimple-walk.c: Likewise.
1934 * gimplify-me.c: Likewise.
1935 * graphite-blocking.c: Likewise.
1936 * graphite.c: Likewise.
1937 * graphite-clast-to-gimple.c: Likewise.
1938 * graphite-dependences.c: Likewise.
1939 * graphite-interchange.c: Likewise.
1940 * graphite-optimize-isl.c: Likewise.
1941 * graphite-poly.c: Likewise.
1942 * graphite-scop-detection.c: Likewise.
1943 * graphite-sese-to-poly.c: Likewise.
1944 * internal-fn.c: Likewise.
1946 * ipa-cp.c: Likewise.
1947 * ipa-devirt.c: Likewise.
1948 * ipa-inline-analysis.c: Likewise.
1949 * ipa-inline.c: Likewise.
1950 * ipa-profile.c: Likewise.
1951 * ipa-prop.c: Likewise.
1952 * ipa-pure-const.c: Likewise.
1953 * ipa-reference.c: Likewise.
1954 * ipa-split.c: Likewise.
1955 * ipa-utils.c: Likewise.
1956 * langhooks.c: Likewise.
1957 * lto-cgraph.c: Likewise.
1958 * lto-compress.c: Likewise.
1959 * lto-opts.c: Likewise.
1960 * lto-section-in.c: Likewise.
1961 * lto-section-out.c: Likewise.
1962 * lto-streamer.c: Likewise.
1963 * lto-streamer-in.c: Likewise.
1964 * lto-streamer-out.c: Likewise.
1965 * omp-low.c: Likewise.
1966 * opts-global.c: Likewise.
1967 * passes.c: Likewise.
1968 * predict.c: Likewise.
1969 * profile.c: Likewise.
1972 * stor-layout.c: Likewise.
1973 * symtab.c: Likewise.
1974 * targhooks.c: Likewise.
1975 * toplev.c: Likewise.
1976 * tracer.c: Likewise.
1977 * trans-mem.c: Likewise.
1978 * tree-affine.c: Likewise.
1980 * tree-call-cdce.c: Likewise.
1981 * tree-cfg.c: Likewise.
1982 * tree-cfgcleanup.c: Likewise.
1983 * tree-chrec.c: Likewise.
1984 * tree-complex.c: Likewise.
1985 * tree-data-ref.c: Likewise.
1986 * tree-dfa.c: Likewise.
1987 * tree-eh.c: Likewise.
1988 * tree-emutls.c: Likewise.
1989 * tree-if-conv.c: Likewise.
1990 * tree-inline.c: Likewise.
1991 * tree-into-ssa.c: Likewise.
1992 * tree-loop-distribution.c: Likewise.
1993 * tree-nested.c: Likewise.
1994 * tree-nrv.c: Likewise.
1995 * tree-object-size.c: Likewise.
1996 * tree-outof-ssa.c: Likewise.
1997 * tree-parloops.c: Likewise.
1998 * tree-phinodes.c: Likewise.
1999 * tree-predcom.c: Likewise.
2000 * tree-pretty-print.c: Likewise.
2001 * tree-profile.c: Likewise.
2002 * tree-scalar-evolution.c: Likewise.
2003 * tree-sra.c: Likewise.
2004 * tree-ssa-address.c: Likewise.
2005 * tree-ssa-alias.c: Likewise.
2006 * tree-ssa.c: Likewise.
2007 * tree-ssa-ccp.c: Likewise.
2008 * tree-ssa-coalesce.c: Likewise.
2009 * tree-ssa-copy.c: Likewise.
2010 * tree-ssa-copyrename.c: Likewise.
2011 * tree-ssa-dce.c: Likewise.
2012 * tree-ssa-dom.c: Likewise.
2013 * tree-ssa-dse.c: Likewise.
2014 * tree-ssa-forwprop.c: Likewise.
2015 * tree-ssa-ifcombine.c: Likewise.
2016 * tree-ssa-live.c: Likewise.
2017 * tree-ssa-loop.c: Likewise.
2018 * tree-ssa-loop-ch.c: Likewise.
2019 * tree-ssa-loop-im.c: Likewise.
2020 * tree-ssa-loop-ivcanon.c: Likewise.
2021 * tree-ssa-loop-ivopts.c: Likewise.
2022 * tree-ssa-loop-manip.c: Likewise.
2023 * tree-ssa-loop-niter.c: Likewise.
2024 * tree-ssa-loop-prefetch.c: Likewise.
2025 * tree-ssa-loop-unswitch.c: Likewise.
2026 * tree-ssa-math-opts.c: Likewise.
2027 * tree-ssanames.c: Likewise.
2028 * tree-ssa-operands.c: Likewise.
2029 * tree-ssa-phiopt.c: Likewise.
2030 * tree-ssa-phiprop.c: Likewise.
2031 * tree-ssa-pre.c: Likewise.
2032 * tree-ssa-propagate.c: Likewise.
2033 * tree-ssa-reassoc.c: Likewise.
2034 * tree-ssa-sccvn.c: Likewise.
2035 * tree-ssa-sink.c: Likewise.
2036 * tree-ssa-strlen.c: Likewise.
2037 * tree-ssa-structalias.c: Likewise.
2038 * tree-ssa-tail-merge.c: Likewise.
2039 * tree-ssa-ter.c: Likewise.
2040 * tree-ssa-threadedge.c: Likewise.
2041 * tree-ssa-threadupdate.c: Likewise.
2042 * tree-ssa-uncprop.c: Likewise.
2043 * tree-ssa-uninit.c: Likewise.
2044 * tree-stdarg.c: Likewise.
2045 * tree-streamer.c: Likewise.
2046 * tree-streamer-in.c: Likewise.
2047 * tree-streamer-out.c: Likewise.
2048 * tree-switch-conversion.c: Likewise.
2049 * tree-tailcall.c: Likewise.
2050 * tree-vect-data-refs.c: Likewise.
2051 * tree-vect-generic.c: Likewise.
2052 * tree-vect-loop.c: Likewise.
2053 * tree-vect-loop-manip.c: Likewise.
2054 * tree-vectorizer.c: Likewise.
2055 * tree-vect-patterns.c: Likewise.
2056 * tree-vect-slp.c: Likewise.
2057 * tree-vect-stmts.c: Likewise.
2058 * tree-vrp.c: Likewise.
2060 * ubsan.c: Likewise.
2061 * value-prof.c: Likewise.
2062 * varpool.c: Likewise.
2063 * var-tracking.c: Likewise.
2064 * vtable-verify.c: Likewise.
2065 * config/darwin.c: Likewise.
2066 * config/aarch64/aarch64-builtins.c: Likewise.
2067 * config/aarch64/aarch64.c: Likewise.
2068 * config/alpha/alpha.c: Likewise.
2069 * config/i386/i386.c: Likewise.
2070 * config/i386/winnt.c: Likewise.
2071 * config/ia64/ia64.c: Likewise.
2072 * config/m32c/m32c.c: Likewise.
2073 * config/mep/mep.c: Likewise.
2074 * config/mips/mips.c: Likewise.
2075 * config/rs6000/rs6000.c: Likewise.
2076 * config/s390/s390.c: Likewise.
2077 * config/sh/sh.c: Likewise.
2078 * config/sparc/sparc.c: Likewise.
2079 * config/spu/spu.c: Likewise.
2080 * config/stormy16/stormy16.c: Likewise.
2081 * config/tilegx/tilegx.c: Likewise.
2082 * config/tilepro/tilepro.c: Likewise.
2083 * config/xtensa/xtensa.c: Likewise.
2085 2013-11-22 Richard Earnshaw <rearnsha@arm.com>
2088 * arm.md (negdi_extendsidi): Fix invalid split.
2090 2013-11-22 Alex Velenko <Alex.Velenko@arm.com>
2092 * config/aarch64/arm_neon.h (vmov_n_f32): Implemented in C.
2093 (vmov_n_f64): Likewise.
2094 (vmov_n_p8): Likewise.
2095 (vmov_n_p16): Likewise.
2096 (vmov_n_s8): Likewise.
2097 (vmov_n_s16): Likewise.
2098 (vmov_n_s32): Likewise.
2099 (vmov_n_s64): Likewise.
2100 (vmov_n_u8): Likewise.
2101 (vmov_n_u16): Likewise.
2102 (vmov_n_u32): Likewise.
2103 (vmov_n_u64): Likewise.
2104 (vmovq_n_f32): Likewise.
2105 (vmovq_n_f64): Likewise.
2106 (vmovq_n_p8): Likewise.
2107 (vmovq_n_p16): Likewise.
2108 (vmovq_n_s8): Likewise.
2109 (vmovq_n_s16): Likewise.
2110 (vmovq_n_s32): Likewise.
2111 (vmovq_n_s64): Likewise.
2112 (vmovq_n_u8): Likewise.
2113 (vmovq_n_u16): Likewise.
2114 (vmovq_n_u32): Likewise.
2115 (vmovq_n_u64): Likewise.
2117 2013-11-22 Tejas Belagod <tejas.belagod@arm.com>
2119 * config/aarch64/aarch64-simd.md (vec_pack_trunc_<mode>,
2120 vec_pack_trunc_v2df, vec_pack_trunc_df): Swap for big-endian.
2121 (reduc_<sur>plus_<mode>): Factorize V2DI into this.
2122 (reduc_<sur>plus_<mode>): Change this to reduc_splus_<mode> for floats
2123 and also change to float UNSPEC.
2124 (reduc_maxmin_uns>_<mode>): Remove V2DI.
2125 * config/aarch64/arm_neon.h (vaddv<q>_<suf><8,16,32,64>,
2126 vmaxv<q>_<suf><8,16,32,64>, vminv<q>_<suf><8,16,32,64>): Fix up scalar
2127 result access for big-endian.
2128 (__LANE0): New macro used to fix up lane access of 'across-lanes'
2129 intrinsics for big-endian.
2130 * config/aarch64/iterators.md (VDQV): Add V2DI.
2132 (vp): New mode attribute.
2134 2013-11-22 Tejas Belagod <tejas.belagod@arm.com>
2136 * config/aarch64/aarch64-simd.md (vec_pack_trunc_<mode>,
2137 vec_pack_trunc_v2df, vec_pack_trunc_df): Swap source ops for
2140 2013-11-22 Tejas Belagod <tejas.belagod@arm.com>
2142 * config/aarch64/aarch64-simd.md (aarch64_simd_vec_set<mode>): Adjust
2143 for big-endian element order.
2144 (aarch64_simd_vec_setv2di): Likewise.
2145 (*aarch64_get_lane_extend<GPI:mode><VDQQH:mode>,
2146 *aarch64_get_lane_zero_extendsi<mode>, aarch64_get_lane): Likewise.
2147 (vec_extract): Expand using aarch64_get_lane.
2148 * config/aarch64/aarch64.h (ENDIAN_LANE_N): New.
2150 2013-11-22 Tejas Belagod <tejas.belagod@arm.com>
2152 * config/aarch64/aarch64-simd.md (*aarch64_simd_mov<mode>): Fix loads
2153 and stores to be ABI compliant.
2155 2013-11-22 David Malcolm <dmalcolm@redhat.com>
2157 * input.h (input_line): Remove.
2158 (input_filename): Likewise.
2159 (in_system_header): Likewise.
2160 * tree.h (EXPR_LOC_OR_HERE): Remove.
2161 * config/bfin/bfin.c (output_file_start): Remove use of
2162 input_filename macro.
2163 * builtins.c (c_strlen): Remove use of EXPR_LOC_OR_HERE macro.
2164 * gimplify.c (internal_get_tmp_var): Likewise.
2165 EXPR_LOC_OR_HERE macro.
2166 (shortcut_cond_expr): Likewise.
2167 * tree-diagnostic.c (diagnostic_report_current_function): Remove
2168 use of input_filename macro.
2169 * tree.c (get_file_function_name): Likewise.
2171 2013-11-22 Kenneth Zadeck <zadeck@naturalbridge.com>
2173 * store-layout.c (place-field): Fix hwi test and accessor mismatch.
2175 2013-11-22 Jakub Jelinek <jakub@redhat.com>
2177 * expr.c (store_constructor): Allow CONSTRUCTOR with VECTOR_TYPE
2178 (same sized) elements even if the type of the CONSTRUCTOR has
2179 vector mode and target is a REG.
2181 2013-11-22 Richard Biener <rguenther@suse.de>
2184 2013-11-21 Richard Biener <rguenther@suse.de>
2186 * tree-ssa-loop-ch.c (copy_loop_headers): Decrement
2187 nb_iterations_upper_bound by one.
2189 2013-11-22 H.J. Lu <hongjiu.lu@intel.com>
2191 * config/i386/i386.c (processor_alias_table): Enable PTA_POPCNT
2194 * doc/invoke.texi: Mention POPCNT for corei7, corei7-avx,
2195 core-avx-i, core-avx2 and slm.
2197 2013-11-22 Eric Botcazou <ebotcazou@adacore.com>
2199 * print-rtl.c (print_rtx) <case MEM>: Output a space if no MEM_EXPR.
2201 2013-11-22 Richard Sandiford <rdsandiford@googlemail.com>
2203 * config/m32c/cond.md (stzx_16): Use register_operand for operand 0.
2204 (stzx_24_<mode>): Likewise mra_operand.
2206 2013-11-22 Jeff Law <law@redhat.com>
2208 * tree-ssa-threadupdate.c: Include tree-cfg.h and tree-pass.h
2209 (thread_block_1): Do not cancel jump threads which go from
2210 inside a loop, through the header, then back inside the loop.
2211 (bb_ends_with_multiway_branch): New function.
2212 (thread_through_all_blocks): Handle threading cases which start
2213 in a loop through the loop header to a point in the loop.
2215 * tree-ssa-threadedge.c (thread_across_edge): Mark the start of the
2216 jump thread path properly.
2218 2013-11-22 Trevor Saunders <tsaunders@mozilla.com>
2220 * vec.h (auto_vec): New class.
2221 * cfganal.c, cfgloop.c, cgraphunit.c, config/i386/i386.c, dwarf2out.c,
2222 function.c, genautomata.c, gimple.c, haifa-sched.c, ipa-inline.c,
2223 ira-build.c, loop-unroll.c, omp-low.c, ree.c, trans-mem.c,
2224 tree-call-cdce.c, tree-eh.c, tree-if-conv.c, tree-into-ssa.c,
2225 tree-loop-distribution.c, tree-predcom.c, tree-sra.c,
2226 tree-sssa-forwprop.c, tree-ssa-loop-manip.c, tree-ssa-pre.c,
2227 tree-ssa-reassoc.c, tree-ssa-sccvn.c, tree-ssa-structalias.c,
2228 tree-vect-loop.c, tree-vect-stmts.c: Use auto_vec and stack_vec as
2229 appropriate instead of vec for local variables.
2231 2013-11-21 Teresa Johnson <tejohnson@google.com>
2234 * cfgcleanup.c (outgoing_edges_match): Walk up past note instructions
2235 not understood by old_insns_match_p.
2237 2013-11-21 Bill Schmidt <wschmidt@vnet.ibm.com>
2239 * config/rs6000/vector.md (vec_pack_trunc_v2df): Revert previous
2240 little endian change.
2241 (vec_pack_sfix_trunc_v2df): Likewise.
2242 (vec_pack_ufix_trunc_v2df): Likewise.
2243 * config/rs6000/rs6000.c (rs6000_expand_interleave): Correct
2244 double checking of endianness.
2246 2013-11-22 Jakub Jelinek <jakub@redhat.com>
2248 * tree-vect-generic.c (optimize_vector_constructor): New function.
2249 (expand_vector_operations_1): Call it.
2251 2013-11-21 Uros Bizjak <ubizjak@gmail.com>
2253 * config/i386/i386.c (ix86_expand_special_args_builtin): Use
2254 ix86_zero_extend_to_Pmode where appropriate.
2255 (ix86_expand_builtin): Ditto.
2257 2013-11-21 Cary Coutant <ccoutant@google.com>
2259 * dwarf2out.c (want_pubnames): Don't do pubnames for -g1.
2260 (add_linkage_name): Don't add linkage name for -g1.
2261 (decls_for_scope): Process subblocks for -g1.
2262 (dwarf2out_source_line): Output line tables for -g1.
2263 (dwarf2out_finish): Likewise.
2264 * tree-ssa-live.c (remove_unused_scope_block_p): Don't prune
2265 unused scopes for -g1.
2266 * opts.c (common_handle_option): Handle -g same as -g2.
2267 * doc/invoke.texi: Update description for -g1.
2269 2013-11-21 Peter Bergner <bergner@vnet.ibm.com>
2271 * doc/extend.texi: Document htm builtins.
2273 2013-11-21 Jeff Law <law@redhat.com>
2275 PR tree-optimization/59221
2276 * tree-ssa-threadedge.c (thread_across_edge): Properly manage
2277 temporary equivalences when threading through joiner blocks.
2279 2013-11-21 Joseph Myers <joseph@codesourcery.com>
2281 PR rtl-optimization/55950
2282 * real.c (real_sqrt): Remove function.
2283 * real.h (real_sqrt): Remove prototype.
2284 * simplify-rtx.c (simplify_const_unary_operation): Do not fold
2285 SQRT using real_sqrt.
2287 2013-11-21 Richard Biener <rguenther@suse.de>
2289 PR tree-optimization/59058
2290 * tree-scalar-evolution.h (number_of_exit_cond_executions): Remove.
2291 * tree-scalar-evolution.c (number_of_exit_cond_executions): Likewise.
2292 * tree-vectorizer.h (LOOP_PEELING_FOR_ALIGNMENT): Rename to ...
2293 (LOOP_VINFO_PEELING_FOR_ALIGNMENT): ... this.
2294 (NITERS_KNOWN_P): Fold into ...
2295 (LOOP_VINFO_NITERS_KNOWN_P): ... this.
2296 (LOOP_VINFO_PEELING_FOR_NITER): Add.
2297 * tree-vect-loop-manip.c (vect_gen_niters_for_prolog_loop):
2298 Use LOOP_VINFO_PEELING_FOR_ALIGNMENT.
2299 (vect_do_peeling_for_alignment): Re-use precomputed niter
2300 instead of re-emitting it.
2301 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment):
2302 Use LOOP_VINFO_PEELING_FOR_ALIGNMENT.
2303 * tree-vect-loop.c (vect_get_loop_niters): Use
2304 number_of_latch_executions.
2305 (new_loop_vec_info): Initialize LOOP_VINFO_PEELING_FOR_NITER.
2306 (vect_analyze_loop_form): Simplify.
2307 (vect_analyze_loop_operations): Move epilogue peeling code ...
2308 (vect_analyze_loop_2): ... here and adjust it to compute
2309 LOOP_VINFO_PEELING_FOR_NITER.
2310 (vect_estimate_min_profitable_iters): Use
2311 LOOP_VINFO_PEELING_FOR_ALIGNMENT.
2312 (vect_build_loop_niters): Emit on the preheader.
2313 (vect_generate_tmps_on_preheader): Likewise.
2314 (vect_transform_loop): Use LOOP_VINFO_PEELING_FOR_NITER instead
2315 of recomputing it. Adjust.
2317 2013-11-21 Richard Biener <rguenther@suse.de>
2319 * tree-vectorizer.h (LOC, UNKNOWN_LOC, EXPR_LOC, LOC_FILE,
2320 LOC_LINE): Remove wrappers and fix all users.
2321 (struct _loop_vec_info): Remove loop_line_number member.
2322 (LOOP_VINFO_LOC): Remove.
2323 * tree-parloops.c, tree-vect-loop-manip.c, tree-vect-slp.c,
2324 tree-vectorizer.c: Fix users of LOC, UNKNOWN_LOC, EXPR_LOC, LOC_FILE
2327 2013-11-21 Richard Biener <rguenther@suse.de>
2329 * tree-ssa-forwprop.c (simplify_vce): New function.
2330 (ssa_forward_propagate_and_combine): Call it.
2332 2013-11-21 Richard Biener <rguenther@suse.de>
2334 * tree-vect-loop-manip.c (vect_build_loop_niters,
2335 vect_generate_tmps_on_preheader): Move ...
2336 * tree-vect-loop.c (vect_build_loop_niters,
2337 vect_generate_tmps_on_preheader): ... here and simplify.
2338 (vect_transform_loop): Call them here and pass down results
2340 * tree-vect-loop-manip.c (vect_do_peeling_for_loop_bound):
2341 Get niter variables from caller.
2342 (vect_do_peeling_for_alignment): Likewise.
2343 * tree-vectorizer.h (vect_generate_tmps_on_preheader): Remove.
2344 (vect_do_peeling_for_loop_bound, vect_do_peeling_for_alignment):
2347 2013-11-21 Richard Biener <rguenther@suse.de>
2349 * tree-ssa-loop-ch.c (copy_loop_headers): Decrement
2350 nb_iterations_upper_bound by one.
2352 2013-11-21 Richard Biener <rguenther@suse.de>
2354 PR tree-optimization/59058
2355 * tree-loop-distribution.c (struct partition_s): Add plus_one member.
2356 (build_size_arg_loc): Apply niter adjustment here.
2357 (generate_memset_builtin): Adjust.
2358 (generate_memcpy_builtin): Likewise.
2359 (classify_partition): Do not use number_of_exit_cond_executions
2360 but record whether niter needs to be adjusted.
2362 2013-11-21 Eric Botcazou <ebotcazou@adacore.com>
2364 * tree-ssa-tail-merge.c (stmt_local_def): Return false if the statement
2367 2013-11-21 Oleg Endo <olegendo@gcc.gnu.org>
2370 * config/sh/sh_optimize_sett_clrt.cc: New SH specific RTL pass.
2371 * config/sh/sh.c (register_sh_passes): Add sh_optimize_sett_clrt pass.
2372 * config/sh/sh/t-sh (sh_optimize_sett_clrt pass.o): New entry.
2373 * config.gcc (sh[123456789lbe]*-*-* | sh-*-*): Add
2374 sh_optimize_sett_clrt pass.o to extra_objs.
2376 2013-11-20 David Malcolm <dmalcolm@redhat.com>
2378 * cfg.c (dump_edge_info): Remove redundant comment.
2379 * cfgcleanup.c (outgoing_edges_match): Reword reference to
2380 EXIT_BLOCK_PTR in comment.
2381 (try_optimize_cfg): Likewise.
2382 * cfgrtl.c (last_bb_in_partition): Likewise.
2383 * cgraph.c (cgraph_node_cannot_return): Likewise.
2384 * function.c (thread_prologue_and_epilogue_insns): Likewise.
2385 * graphite-scop-detection.c (scopdet_basic_block_info): Likewise.
2386 * ipa-split.c (consider_split): Likewise.
2387 * profile.c (find_spanning_tree): Likewise.
2388 * sched-int.h (common_sched_info_def.add_block): Likewise.
2389 * dominance.c (calc_dfs_tree_nonrec): Reword references in
2390 comments to now removed ENTRY_BLOCK_PTR and EXIT_BLOCK_PTR macros.
2391 * tree-cfgcleanup.c (cleanup_control_flow_bb): Reword references
2392 in comments to now removed ENTRY_BLOCK_PTR macro.
2393 (tree_forwarder_block_p): Reword reference in comment to
2395 * tree-inline.c (copy_cfg_body): Reword references in comments to
2396 now removed ENTRY_BLOCK_PTR macro.
2397 * tree-ssa-propagate.c (ssa_prop_init): Likewise.
2398 * tree-scalar-evolution.h ( block_before_loop): Likewise. Add
2399 a comma to the comment to clarify the meaning.
2401 2013-11-20 Andrew MacLeod <amacleod@redhat.com>
2403 * gimplify.h (gimplify_hasher:typed_free_remove, struct gimplify_ctx):
2405 (free_gimplify_stack): Add prototype.
2406 * gimplify.c (gimplify_hasher:typed_free_remove): Relocate here.
2407 (struct gimplify_ctx): Relocate here.
2408 (gimplify_ctxp): Make static.
2409 (ctx_pool, ctx_alloc, ctx_free, free_gimplify_stack): New. Manage a
2410 list of struct gimplify_ctx.
2411 (push_gimplify_context): Add default parameters and allocate a struct
2413 (pop_gimplify_context): Free a struct back to the pool.
2414 (gimplify_scan_omp_clauses, gimplify_omp_parallel, gimplify_omp_task,
2415 gimplify_omp_workshare, gimplify_transaction, gimplify_body): Don't
2416 use a local 'struct gimplify_ctx'.
2417 * cgraphunit.c (expand_all_functions): call free_gimplify_stack.
2418 * gimplify-me.c (force_gimple_operand_1, gimple_regimplify_operands):
2420 * omp-low.c (lower_omp_sections, lower_omp_single, lower_omp_master,
2421 lower_omp_ordered, lower_omp_critical, lower_omp_for,
2422 create_task_copyfn, lower_omp_taskreg, lower_omp_target,
2423 lower_omp_teams, execute_lower_omp): Likewise.
2424 * gimple-fold.c (gimplify_and_update_call_from_tree): Likewise.
2425 * tree-inline.c (optimize_inline_calls): Likewise.
2427 2013-11-20 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
2429 * config/rs6000/vsx.md (vsx_set_<mode>): Adjust for little endian.
2430 (vsx_extract_<mode>): Likewise.
2431 (*vsx_extract_<mode>_one_le): New LE variant on
2432 *vsx_extract_<mode>_zero.
2433 (vsx_extract_v4sf): Adjust for little endian.
2435 2013-11-20 Vladimir Makarov <vmakarov@redhat.com>
2437 PR rtl-optimization/59133
2438 * lra.c (expand_reg_data): Add new argument. Set up ALL_REGS for
2440 (lra_create_new_reg_with_unique_value): Pass new argument value.
2441 (lra_emit_add, lra_emit_move): Ditto.
2442 * lra-constraints.c (in_class_p): Add check for move for a new insn.
2443 (change_class): Rename to lra_change_class. Move to lra-int.h.
2444 (get_reload_reg, narrow_reload_pseudo_class): Adjust calls of
2446 (process_addr_reg, process_addr): Ditto.
2447 (curr_insn_transform): Ditto. Add check on old pseudo for
2449 * lra-int.h (lra_get_regno_hard_regno): Move below.
2450 (lra_change_class): Renamed change_class from lra.c.
2452 2013-11-20 David Malcolm <dmalcolm@redhat.com>
2454 * gdbhooks.py (VecPrinter.children): Don't attempt to iterate
2455 the children of a NULL pointer.
2457 2013-11-20 Robert Suchanek <Robert.Suchanek@imgtec.com>
2459 * lra.c (lra): Set lra_in_progress before check_rtl call.
2460 * recog.c (insn_invalid_p): Add !lra_in_progress to prevent
2461 adding clobber regs when LRA is running.
2463 2013-11-20 Maciej W. Rozycki <macro@codesourcery.com>
2465 * config/mips/mips.h (ISA_HAS_FP4): Remove TARGET_FLOAT64
2466 restriction for ISA_MIPS32R2.
2467 (ISA_HAS_LXC1_SXC1): New macro.
2468 (ISA_HAS_FP_MADD4_MSUB4): Remove ISA_MIPS32R2 special-casing.
2469 (ISA_HAS_NMADD4_NMSUB4): Likewise.
2470 (ISA_HAS_FP_RECIP_RSQRT): Likewise.
2471 (ISA_HAS_PREFETCHX): Redefine in terms of ISA_HAS_FP4.
2472 * config/mips/mips.md (*<ANYF:loadx>_<P:mode>): Use
2473 ISA_HAS_LXC1_SXC1 rather than ISA_HAS_FP4.
2474 (*<ANYF:storex>_<P:mode>): Likewise.
2476 2013-11-20 Maciej W. Rozycki <macro@codesourcery.com>
2478 * config/mips/mips.h (ISA_HAS_FP_RECIP_RSQRT): New macro.
2479 * config/mips/mips.c (mips_rtx_costs) <DIV>: Check for
2480 ISA_HAS_FP_RECIP_RSQRT rather than ISA_HAS_FP4.
2481 * config/mips/mips.md (recip_condition): Remove mode attribute.
2482 (div<mode>3): Use ISA_HAS_FP_RECIP_RSQRT rather than
2484 (*recip<mode>3, *rsqrt<mode>a, *rsqrt<mode>b): Likewise.
2486 2013-11-20 Eric Botcazou <ebotcazou@adacore.com>
2489 * config/sparc/sparc.c (sparc_fold_builtin) <case CODE_FOR_pdist_vis>:
2490 Make sure neg2_ovf is set before being used.
2492 2013-11-20 Basile Starynkevitch <basile@starynkevitch.net>
2494 * plugin.def: Add comment about register_callback and
2495 invoke_plugin_callbacks_full.
2497 * plugin.c (register_callback, invoke_plugin_callbacks_full):
2498 Handle PLUGIN_INCLUDE_FILE event.
2500 2013-11-20 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
2502 * config/rs6000/rs6000.c (rs6000_cannot_change_mode_class): Do not
2503 allow subregs of TDmode in FPRs of smaller size in little-endian.
2504 (rs6000_split_multireg_move): When splitting an access to TDmode
2505 in FPRs, do not use simplify_gen_subreg.
2507 2013-11-20 Joseph Myers <joseph@codesourcery.com>
2510 * real.c: Remove comment about decimal string conversion and
2512 (real_from_string): Use MPFR to convert nonzero decimal constant
2515 2013-11-20 Eric Botcazou <ebotcazou@adacore.com>
2517 * config/arm/arm.c (arm_dwarf_register_span): Take into account the
2518 endianness of the D registers for the legacy encodings.
2520 2013-11-20 Richard Earnshaw <rearnsha@arm.com>
2522 PR rtl-optimization/54300
2523 * regcprop.c (copyprop_hardreg_forward_1): Ensure any unused
2524 outputs in a single-set are killed from the value chains.
2526 2013-11-20 Ilya Enkovich <ilya.enkovich@intel.com>
2528 * cgraph.h (varpool_node): Add need_bounds_init field.
2529 * lto-cgraph.c (lto_output_varpool_node): Output
2530 need_bounds_init value.
2531 (input_varpool_node): Read need_bounds_init value.
2532 * varpool.c (dump_varpool_node): Dump need_bounds_init field.
2534 2013-11-20 Jan Hubicka <jh@suse.cz>
2536 * opts.c (finish_options): Imply -ffat-lto-objects with
2537 -fno-use-linker-plugin.
2538 * common.opt (fuse-linker-plugin): Add var.
2540 2013-11-20 Ilya Enkovich <ilya.enkovich@intel.com>
2542 * dbxout.c (dbxout_type): Ignore POINTER_BOUNDS_TYPE.
2543 * dwarf2out.c (gen_subprogram_die): Ignore bound args.
2544 (gen_type_die_with_usage): Skip pointer bounds.
2545 (dwarf2out_global_decl): Likewise.
2547 2013-11-20 James Greenhalgh <james.greenhalgh@arm.com>
2549 * config/aarch64/aarch64.md: Remove "mode" and "mode2" attributes
2552 2013-11-20 Yuri Rumyantsev <ysrumyan@gmail.com>
2555 * config/i386/i386.c (ix86_option_override_internal): Add missed
2556 argument prefix for 'ix86_fpmath'.
2557 * config/i386/ssemath.h: Add missed definition of
2558 TARGET_FPMATH_DEFAULT_P macros.
2560 2013-11-20 Kenneth Zadeck <zadeck@naturalbridge.com>
2561 Mike Stump <mikestump@comcast.net>
2562 Richard Sandiford <rdsandiford@googlemail.com>
2564 * alias.c (ao_ref_from_mem): Use tree_to_shwi and tree_to_uhwi
2565 instead of TREE_INT_CST_LOW, in cases where there is a protecting
2566 tree_fits_shwi_p or tree_fits_uhwi_p.
2567 * builtins.c (fold_builtin_powi): Likewise.
2568 * config/epiphany/epiphany.c (epiphany_special_round_type_align):
2570 * dbxout.c (dbxout_symbol): Likewise.
2571 * expr.c (expand_expr_real_1): Likewise.
2572 * fold-const.c (fold_single_bit_test, fold_plusminus_mult_expr)
2573 (fold_binary_loc): Likewise.
2574 * gimple-fold.c (fold_const_aggregate_ref_1): Likewise.
2575 * gimple-ssa-strength-reduction.c (stmt_cost): Likewise.
2576 * omp-low.c (lower_omp_for_lastprivate): Likewise.
2577 * simplify-rtx.c (delegitimize_mem_from_attrs): Likewise.
2578 * stor-layout.c (compute_record_mode): Likewise.
2579 * tree-cfg.c (verify_expr): Likewise.
2580 * tree-dfa.c (get_ref_base_and_extent): Likewise.
2581 * tree-pretty-print.c (dump_array_domain): Likewise.
2582 * tree-sra.c (build_user_friendly_ref_for_offset): Likewise.
2583 * tree-ssa-ccp.c (fold_builtin_alloca_with_align): Likewise.
2584 * tree-ssa-loop-ivopts.c (get_loop_invariant_expr_id): Likewise.
2585 * tree-ssa-math-opts.c (execute_cse_sincos): Likewise.
2586 * tree-ssa-phiopt.c (hoist_adjacent_loads): Likewise.
2587 * tree-ssa-reassoc.c (acceptable_pow_call): Likewise.
2588 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Likewise.
2589 (ao_ref_init_from_vn_reference, vn_reference_fold_indirect): Likewise.
2590 (vn_reference_lookup_3, simplify_binary_expression): Likewise.
2591 * tree-ssa-structalias.c (bitpos_of_field): Likewise.
2592 (get_constraint_for_1, push_fields_onto_fieldstack): Likewise.
2593 (create_variable_info_for_1): Likewise.
2594 * tree-vect-data-refs.c (vect_compute_data_ref_alignment): Likewise.
2595 (vect_verify_datarefs_alignment): Likewise.
2596 (vect_analyze_data_ref_accesses): Likewise.
2597 (vect_prune_runtime_alias_test_list): Likewise.
2598 * tree-vectorizer.h (NITERS_KNOWN_P): Likewise.
2600 2013-11-20 Richard Sandiford <rdsandiford@googlemail.com>
2602 * tree-ssa-alias.c (ao_ref_init_from_ptr_and_size): Avoid signed
2603 overflow. Use tree_to_shwi.
2605 2013-11-20 Richard Sandiford <rdsandiford@googlemail.com>
2607 * fold-const.c (fold_binary_loc): Use unsigned rather than signed
2608 HOST_WIDE_INTs when folding (x >> c) << c.
2610 2013-11-20 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
2611 Dominik Vogt <vogt@linux.vnet.ibm.com>
2613 * config/s390/s390.c (s390_canonicalize_comparison): Don't fold
2614 int comparisons with an out of range condition code.
2615 (s390_optimize_nonescaping_tx): Skip empty BBs.
2616 Generate the new tbegin RTX when removing the FPR clobbers (with
2618 (s390_expand_tbegin): Fix the retry loop counter. Copy CC to the
2619 result before doing the retry calculations.
2620 (s390_init_builtins): Make tbegin "returns_twice" and tabort
2622 * config/s390/s390.md (UNSPECV_TBEGIN_TDB): New constant used for
2623 the TDB setting part of an tbegin.
2624 ("tbegin_1", "tbegin_nofloat_1"): Add a set for the TDB.
2625 ("tx_assist"): Set unused argument to an immediate zero instead of
2626 loading zero into a GPR and pass it as argument.
2627 * config/s390/htmxlintrin.h (__TM_simple_begin, __TM_begin):
2628 Remove inline and related attributes.
2629 (__TM_nesting_depth, __TM_is_user_abort, __TM_is_named_user_abort)
2630 (__TM_is_illegal, __TM_is_footprint_exceeded)
2631 (__TM_is_nested_too_deep, __TM_is_conflict): Fix format value check.
2633 2013-11-20 Richard Biener <rguenther@suse.de>
2636 * lto-opts.c (lto_write_options): Write defaults only if
2637 they were not explicitely specified. Also write
2638 -ffp-contract default.
2639 * lto-wrapper.c (merge_and_complain): Merge -ffp-contract
2641 (run_gcc): Pass through -ffp-contract.
2643 2013-11-20 Jan-Benedict Glaw <jbglaw@lug-owl.de>
2645 * config/mips/mips.c (r10k_simplify_address): Eliminate macro usage.
2647 2013-11-20 James Greenhalgh <james.greenhalgh@arm.com>
2649 * gcc/config/aarch64/aarch64-builtins.c
2650 (aarch64_simd_itype): Remove.
2651 (aarch64_simd_builtin_datum): Remove itype, add qualifiers pointer.
2652 (VAR1): Use qualifiers.
2653 (aarch64_build_scalar_type): New.
2654 (aarch64_build_vector_type): Likewise.
2655 (aarch64_build_type): Likewise.
2656 (aarch64_init_simd_builtins): Refactor, remove special cases,
2657 consolidate main loop.
2658 (aarch64_simd_expand_args): Likewise.
2660 2013-11-19 Joshua J Cogliati <jrincayc@yahoo.com>
2663 * doc/invoke.texi: Adding documentation about -Wfloat-conversion.
2665 2013-11-19 Miro Kropacek <miro.kropacek@gmail.com>
2667 * config/m68k/m68k.c (m68k_option_overrides): Fix typo.
2669 2013-11-19 David Malcolm <dmalcolm@redhat.com>
2671 * gdbhooks.py (VecPrinter): New class, for prettyprinting pointers
2672 to "vec<>" instances.
2673 (build_pretty_printer): Register the vec<>* prettyprinter.
2675 2013-11-19 David Malcolm <dmalcolm@redhat.com>
2677 * gdbhooks.py (GdbSubprinter.__init__): Drop str_type_ field.
2678 (GdbSubprinter.handles_type): New.
2679 (GdbSubprinterTypeList): New subclass of GdbSubprinter.
2680 (GdbSubprinterRegex): New subclass of GdbSubprinter.
2681 (GdbPrettyPrinters.add_printer): Remove in favor of...
2682 (GdbPrettyPrinters.add_printer_for_types): ...this new method and...
2683 (GdbPrettyPrinters.add_printer_for_regex): ...this other new method.
2684 (GdbPrettyPrinters.__call__): Update search for subprinter
2685 to use handles_type method.
2686 (build_pretty_printer): Update registration of subprinters to
2687 use the new API above, supporting multiple spelling of each type,
2688 and allowing for future regex-based subprinters.
2690 2013-11-19 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
2692 * config/rs6000/rs6000.c (altivec_expand_vec_perm_const): Adjust
2693 V16QI vector splat case for little endian.
2695 2013-11-19 Jeff Law <law@redhat.com>
2697 * tree-ssa-threadedge.c (thread_across_edge): After threading
2698 through a joiner, allow threading a normal block requiring duplication.
2700 * tree-ssa-threadupdate.c (thread_block_1): Improve code to detect
2701 jump threading requests that would muck up the loop structures.
2703 * tree-ssa-threadupdate.c: Fix trailing whitespace.
2704 * tree-ssa-threadupdate.h: Likewise.
2706 2013-11-19 Mike Stump <mikestump@comcast.net>
2708 * gdbinit.in: Add pmz to print out mpz values.
2710 2013-11-20 Jan Hubicka <jh@suse.cz>
2712 * common.opt (ffat-lto-objects): Disable by default.
2713 * doc/invoke.texi (fat-lto-objects): Update documentation.
2714 * opts.c: Enable fat-lto-objects on lto plugin disable setups.
2716 2013-11-19 Martin Jambor <mjambor@suse.cz>
2718 PR rtl-optimization/59099
2719 * ira.c (find_moveable_pseudos): Put back various analyses from ira()
2721 (ira): Move init_reg_equiv and call to
2722 split_live_ranges_for_shrink_wrap up, remove analyses around call
2723 to find_moveable_pseudos.
2725 2013-11-20 Alan Modra <amodra@gmail.com>
2727 * config/rs6000/sysv4.h (CC1_ENDIAN_LITTLE_SPEC): Define as empty.
2728 * config/rs6000/rs6000.c (rs6000_option_override_internal): Default
2729 to strict alignment on older processors when little-endian.
2730 * config/rs6000/linux64.h (PROCESSOR_DEFAULT64): Default to power8
2733 2013-11-19 Teresa Johnson <tejohnson@google.com>
2735 * common/config/i386/i386-common.c: Enable
2736 -freorder-blocks-and-partition at -O2 and up for x86.
2737 * doc/invoke.texi: Update -freorder-blocks-and-partition default.
2738 * opts.c (finish_options): Only warn if
2739 -freorder-blocks-and-partition was set on command line.
2741 2013-11-19 Sriraman Tallam <tmsriram@google.com>
2743 * final.c (final_scan_insn): Emit a label for the split
2744 cold function part. Label name is formed by suffixing
2745 the original function name with "cold".
2747 2013-11-19 David Malcolm <dmalcolm@redhat.com>
2749 * basic-block.h (ENTRY_BLOCK_PTR_FOR_FUNCTION): Rename macro to...
2750 (EXIT_BLOCK_PTR_FOR_FUNCTION): ...this.
2751 (ENTRY_BLOCK_PTR_FOR_FN): Renamed macro to...
2752 (EXIT_BLOCK_PTR_FOR_FN): ...this.
2753 (ENTRY_BLOCK_PTR): Eliminate macro as work towards making uses of
2755 (EXIT_BLOCK_PTR): Likewise.
2756 (FOR_ALL_BB): Rework for now to eliminate use of "ENTRY_BLOCK_PTR".
2757 (FOR_ALL_BB_FN): Update for renaming of
2758 "ENTRY_BLOCK_PTR_FOR_FUNCTION" to "ENTRY_BLOCK_PTR_FOR_FN".
2760 * cfg.c (init_flow): Likewise.
2761 (check_bb_profile): Likewise.
2762 * cfganal.c (pre_and_rev_post_order_compute_fn): Likewise.
2763 * cfgcleanup.c (walk_to_nondebug_insn): Likewise.
2764 * cfghooks.c (account_profile_record): Likewise.
2765 * cfgloop.c (init_loops_structure): Likewise.
2766 * cgraphbuild.c (record_eh_tables): Likewise.
2767 (compute_call_stmt_bb_frequency): Likewise.
2768 * ipa-inline-analysis.c (compute_bb_predicates): Likewise.
2769 * lto-streamer-in.c (input_cfg): Likewise.
2770 * predict.c (maybe_hot_frequency_p): Likewise.
2771 * tree-cfg.c (init_empty_tree_cfg_for_function): Likewise.
2772 * tree-inline.c (initialize_cfun): Likewise.
2773 (copy_cfg_body): Likewise.
2774 (copy_body): Likewise.
2775 (tree_function_versioning): Likewise.
2777 * bb-reorder.c (add_labels_and_missing_jumps): Remove uses of macros:
2778 ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
2779 (duplicate_computed_gotos): Remove usage of EXIT_BLOCK_PTR macro.
2780 (find_rarely_executed_basic_blocks_and_crossing_edges): Remove uses of
2781 macros: ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
2782 (connect_traces): Likewise.
2783 (rest_of_handle_reorder_blocks): Remove usage of EXIT_BLOCK_PTR macro.
2784 (bb_to_key): Remove usage of ENTRY_BLOCK_PTR macro.
2785 (fix_crossing_conditional_branches): Remove usage of EXIT_BLOCK_PTR
2787 (find_traces_1_round): Remove uses of macros: ENTRY_BLOCK_PTR,
2789 (fix_up_fall_thru_edges): Remove usage of EXIT_BLOCK_PTR macro.
2790 (find_traces): Remove usage of ENTRY_BLOCK_PTR macro.
2791 (fix_up_crossing_landing_pad): Remove usage of EXIT_BLOCK_PTR macro.
2792 (rotate_loop): Likewise.
2793 * bt-load.c (migrate_btr_def): Remove usage of ENTRY_BLOCK_PTR macro.
2794 * cfg.c (clear_aux_for_edges): Remove uses of macros: ENTRY_BLOCK_PTR,
2796 (alloc_aux_for_edges): Likewise.
2797 (clear_bb_flags): Remove usage of ENTRY_BLOCK_PTR macro.
2798 (cached_make_edge): Remove uses of macros: ENTRY_BLOCK_PTR,
2800 (compact_blocks): Likewise.
2801 (clear_edges): Likewise.
2802 * cfganal.c (single_pred_before_succ_order): Remove usage of
2803 ENTRY_BLOCK_PTR macro.
2804 (bitmap_union_of_succs): Remove usage of EXIT_BLOCK_PTR macro.
2805 (bitmap_union_of_preds): Remove usage of ENTRY_BLOCK_PTR macro.
2806 (bitmap_intersection_of_succs): Remove usage of EXIT_BLOCK_PTR macro.
2807 (bitmap_intersection_of_preds): Remove usage of ENTRY_BLOCK_PTR macro.
2808 (inverted_post_order_compute): Remove uses of macros: ENTRY_BLOCK_PTR,
2810 (compute_dominance_frontiers_1): Remove usage of ENTRY_BLOCK_PTR macro.
2811 (post_order_compute): Remove uses of macros: ENTRY_BLOCK_PTR,
2813 (connect_infinite_loops_to_exit): Remove usage of EXIT_BLOCK_PTR macro.
2814 (remove_fake_edges): Remove usage of ENTRY_BLOCK_PTR macro.
2815 (add_noreturn_fake_exit_edges): Remove usage of EXIT_BLOCK_PTR macro.
2816 (find_pdom): Remove uses of macros: ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
2817 (remove_fake_exit_edges): Remove usage of EXIT_BLOCK_PTR macro.
2818 (verify_edge_list): Remove uses of macros: ENTRY_BLOCK_PTR,
2820 (print_edge_list): Likewise.
2821 (create_edge_list): Likewise.
2822 (find_unreachable_blocks): Remove usage of ENTRY_BLOCK_PTR macro.
2823 (mark_dfs_back_edges): Remove uses of macros: ENTRY_BLOCK_PTR,
2825 * cfgbuild.c (find_bb_boundaries): Remove usage of ENTRY_BLOCK_PTR
2827 (find_many_sub_basic_blocks): Remove usage of EXIT_BLOCK_PTR macro.
2828 (make_edges): Remove uses of macros: ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
2829 * cfgcleanup.c (delete_unreachable_blocks): Likewise.
2830 (try_optimize_cfg): Likewise.
2831 (try_head_merge_bb): Remove usage of EXIT_BLOCK_PTR macro.
2832 (try_crossjump_to_edge): Remove usage of ENTRY_BLOCK_PTR macro.
2833 (try_crossjump_bb): Remove usage of EXIT_BLOCK_PTR macro.
2834 (merge_blocks_move): Remove usage of ENTRY_BLOCK_PTR macro.
2835 (outgoing_edges_match): Remove usage of EXIT_BLOCK_PTR macro.
2836 (try_forward_edges): Likewise.
2837 (try_simplify_condjump): Likewise.
2838 * cfgexpand.c (gimple_expand_cfg): Remove uses of macros:
2839 ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
2840 (construct_exit_block): Remove usage of EXIT_BLOCK_PTR macro.
2841 (construct_init_block): Remove uses of macros: ENTRY_BLOCK_PTR,
2843 (expand_gimple_basic_block): Remove usage of EXIT_BLOCK_PTR macro.
2844 (expand_gimple_tailcall): Likewise.
2845 * cfghooks.c (can_duplicate_block_p): Remove uses of macros:
2846 ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
2847 (tidy_fallthru_edges): Likewise.
2848 (verify_flow_info): Likewise.
2849 * cfgloop.c (flow_bb_inside_loop_p): Likewise.
2850 (num_loop_branches): Remove usage of EXIT_BLOCK_PTR macro.
2851 (disambiguate_multiple_latches): Remove usage of ENTRY_BLOCK_PTR macro.
2852 (get_loop_exit_edges): Remove usage of EXIT_BLOCK_PTR macro.
2853 (bb_loop_header_p): Remove usage of ENTRY_BLOCK_PTR macro.
2854 (get_loop_body_in_bfs_order): Remove usage of EXIT_BLOCK_PTR macro.
2855 (get_loop_body_in_dom_order): Likewise.
2856 (get_loop_body): Likewise.
2857 * cfgloopanal.c (mark_irreducible_loops): Remove uses of macros:
2858 ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
2859 * cfgloopmanip.c (create_preheader): Remove usage of ENTRY_BLOCK_PTR
2861 (remove_path): Remove usage of EXIT_BLOCK_PTR macro.
2862 (fix_bb_placement): Likewise.
2863 * cfgrtl.c (rtl_block_empty_p): Remove uses of macros:
2864 ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
2865 (rtl_can_remove_branch_p): Remove usage of EXIT_BLOCK_PTR macro.
2866 (cfg_layout_split_edge): Remove uses of macros: ENTRY_BLOCK_PTR,
2868 (rtl_flow_call_edges_add): Remove usage of EXIT_BLOCK_PTR macro.
2869 (cfg_layout_can_merge_blocks_p): Remove uses of macros:
2870 ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
2871 (cfg_layout_redirect_edge_and_branch): Remove usage of ENTRY_BLOCK_PTR
2873 (fixup_fallthru_exit_predecessor): Remove uses of macros:
2874 ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
2875 (fixup_reorder_chain): Likewise.
2876 (relink_block_chain): Likewise.
2877 (cfg_layout_delete_block): Remove usage of EXIT_BLOCK_PTR macro.
2878 (rtl_verify_bb_layout): Remove usage of ENTRY_BLOCK_PTR macro.
2879 (cfg_layout_duplicate_bb): Remove usage of EXIT_BLOCK_PTR macro.
2880 (force_one_exit_fallthru): Likewise.
2881 (rtl_verify_fallthru): Remove uses of macros: ENTRY_BLOCK_PTR,
2883 (rtl_verify_edges): Likewise.
2884 (commit_edge_insertions): Likewise.
2885 (commit_one_edge_insertion): Likewise.
2886 (rtl_split_edge): Likewise.
2887 (force_nonfallthru_and_redirect): Likewise.
2888 (outof_cfg_layout_mode): Remove usage of EXIT_BLOCK_PTR macro.
2889 (skip_insns_after_block): Likewise.
2890 (fixup_partition_crossing): Remove uses of macros: ENTRY_BLOCK_PTR,
2892 (purge_dead_edges): Remove usage of EXIT_BLOCK_PTR macro.
2893 (rtl_can_merge_blocks): Remove uses of macros: ENTRY_BLOCK_PTR,
2895 (contains_no_active_insn_p): Likewise.
2896 (emit_insn_at_entry): Remove usage of ENTRY_BLOCK_PTR macro.
2897 (entry_of_function): Likewise.
2898 (last_bb_in_partition): Remove usage of EXIT_BLOCK_PTR macro.
2899 (fixup_new_cold_bb): Likewise.
2900 (patch_jump_insn): Likewise.
2901 (try_redirect_by_replacing_jump): Likewise.
2902 (block_label): Likewise.
2903 (could_fall_through): Likewise.
2904 (can_fallthru): Likewise.
2905 * cgraphbuild.c (cgraph_rebuild_references): Remove usage of
2906 ENTRY_BLOCK_PTR macro.
2907 (rebuild_cgraph_edges): Likewise.
2908 * cgraphunit.c (init_lowered_empty_function): Remove uses of macros:
2909 ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
2910 (expand_thunk): Remove usage of EXIT_BLOCK_PTR macro.
2911 * combine.c (get_last_value): Remove usage of ENTRY_BLOCK_PTR macro.
2912 (distribute_links): Remove usage of EXIT_BLOCK_PTR macro.
2913 (get_last_value_validate): Remove usage of ENTRY_BLOCK_PTR macro.
2914 (try_combine): Remove usage of EXIT_BLOCK_PTR macro.
2915 (reg_num_sign_bit_copies_for_combine): Remove usage of ENTRY_BLOCK_PTR
2917 (reg_nonzero_bits_for_combine): Likewise.
2918 (set_nonzero_bits_and_sign_copies): Likewise.
2919 (combine_instructions): Likewise.
2920 * cprop.c (one_cprop_pass): Remove uses of macros: ENTRY_BLOCK_PTR,
2922 (bypass_conditional_jumps): Likewise.
2923 (bypass_block): Remove usage of EXIT_BLOCK_PTR macro.
2924 (find_implicit_sets): Likewise.
2925 (cprop_jump): Likewise.
2926 * cse.c (cse_cc_succs): Likewise.
2927 (cse_find_path): Likewise.
2928 * df-problems.c (df_lr_confluence_0): Likewise.
2929 * df-scan.c (df_entry_block_defs_collect): Remove usage of
2930 ENTRY_BLOCK_PTR macro.
2931 (df_exit_block_uses_collect): Remove usage of EXIT_BLOCK_PTR macro.
2932 * dominance.c (iterate_fix_dominators): Remove usage of
2933 ENTRY_BLOCK_PTR macro.
2934 (calc_idoms): Remove uses of macros: ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
2935 (determine_dominators_for_sons): Remove usage of ENTRY_BLOCK_PTR macro.
2936 (calc_dfs_tree): Remove uses of macros: ENTRY_BLOCK_PTR,
2938 (prune_bbs_to_update_dominators): Remove usage of ENTRY_BLOCK_PTR
2940 (calc_dfs_tree_nonrec): Remove uses of macros: ENTRY_BLOCK_PTR,
2942 * domwalk.c (cmp_bb_postorder): Likewise.
2943 * dse.c (dse_step1): Remove usage of EXIT_BLOCK_PTR macro.
2944 * except.c (finish_eh_generation): Remove usage of ENTRY_BLOCK_PTR
2946 (sjlj_emit_function_enter): Likewise.
2947 * final.c (compute_alignments): Likewise.
2948 * function.c (thread_prologue_and_epilogue_insns): Remove uses of
2949 macros: ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
2950 (reposition_prologue_and_epilogue_notes): Remove usage of
2951 EXIT_BLOCK_PTR macro.
2952 (convert_jumps_to_returns): Remove uses of macros: ENTRY_BLOCK_PTR,
2954 (regno_clobbered_at_setjmp): Remove usage of ENTRY_BLOCK_PTR macro.
2955 (next_block_for_reg): Remove usage of EXIT_BLOCK_PTR macro.
2956 * gcse.c (hoist_code): Remove usage of ENTRY_BLOCK_PTR macro.
2957 (update_bb_reg_pressure): Remove usage of EXIT_BLOCK_PTR macro.
2958 (compute_code_hoist_vbeinout): Likewise.
2959 (should_hoist_expr_to_dom): Remove usage of ENTRY_BLOCK_PTR macro.
2960 (pre_expr_reaches_here_p_work): Likewise.
2961 * gimple-iterator.c (gsi_commit_edge_inserts): Likewise.
2962 (gimple_find_edge_insert_loc): Remove uses of macros: ENTRY_BLOCK_PTR,
2964 * gimple-ssa-strength-reduction.c (slsr_process_phi): Remove usage of
2965 ENTRY_BLOCK_PTR macro.
2966 * graph.c (draw_cfg_nodes_for_loop): Remove usage of EXIT_BLOCK_PTR
2968 * graphite-clast-to-gimple.c (translate_clast_user): Remove usage of
2969 ENTRY_BLOCK_PTR macro.
2970 * graphite-scop-detection.c (build_scops): Likewise.
2971 (create_sese_edges): Remove usage of EXIT_BLOCK_PTR macro.
2972 (scopdet_basic_block_info): Remove usage of ENTRY_BLOCK_PTR macro.
2973 * haifa-sched.c (restore_bb_notes): Remove usage of EXIT_BLOCK_PTR
2975 (unlink_bb_notes): Likewise.
2976 (create_check_block_twin): Likewise.
2977 (init_before_recovery): Likewise.
2978 (sched_extend_bb): Likewise.
2979 (priority): Likewise.
2980 * hw-doloop.c (reorder_loops): Likewise.
2981 (discover_loop): Likewise.
2982 * ifcvt.c (dead_or_predicable): Remove uses of macros:
2983 ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
2984 (find_if_case_1): Remove usage of EXIT_BLOCK_PTR macro.
2985 (block_has_only_trap): Likewise.
2986 (cond_exec_find_if_block): Likewise.
2987 (merge_if_block): Likewise.
2988 * ipa-inline-analysis.c (param_change_prob): Remove usage of
2989 ENTRY_BLOCK_PTR macro.
2990 (record_modified): Likewise.
2991 * ipa-pure-const.c (execute_warn_function_noreturn): Remove usage of
2992 EXIT_BLOCK_PTR macro.
2993 (local_pure_const): Likewise.
2994 * ipa-split.c (split_function): Remove uses of macros:
2995 ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
2996 (find_split_points): Likewise.
2997 (consider_split): Likewise.
2998 (find_return_bb): Remove usage of EXIT_BLOCK_PTR macro.
2999 (verify_non_ssa_vars): Remove usage of ENTRY_BLOCK_PTR macro.
3000 * ira-build.c (ira_loop_tree_body_rev_postorder): Likewise.
3001 * ira-color.c (print_loop_title): Remove usage of EXIT_BLOCK_PTR macro.
3002 * ira-emit.c (entered_from_non_parent_p): Remove usage of
3003 ENTRY_BLOCK_PTR macro.
3004 (ira_emit): Remove usage of EXIT_BLOCK_PTR macro.
3005 * ira-int.h (ira_assert): Remove usage of ENTRY_BLOCK_PTR macro.
3006 * ira.c (split_live_ranges_for_shrink_wrap): Remove uses of macros:
3007 ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
3008 * lcm.c (compute_rev_insert_delete): Remove usage of ENTRY_BLOCK_PTR
3010 (compute_nearerout): Remove uses of macros: ENTRY_BLOCK_PTR,
3012 (compute_farthest): Likewise.
3013 (compute_available): Likewise.
3014 (compute_insert_delete): Remove usage of EXIT_BLOCK_PTR macro.
3015 (compute_laterin): Remove uses of macros: ENTRY_BLOCK_PTR,
3017 (compute_earliest): Likewise.
3018 (compute_antinout_edge): Likewise.
3019 * loop-iv.c (simplify_using_initial_values): Remove usage of
3020 ENTRY_BLOCK_PTR macro.
3021 * loop-unswitch.c (unswitch_loop): Remove usage of EXIT_BLOCK_PTR
3023 * lra-assigns.c (find_hard_regno_for): Remove usage of ENTRY_BLOCK_PTR
3025 * lra-constraints.c (lra_inheritance): Remove usage of EXIT_BLOCK_PTR
3027 * lra-lives.c (lra_create_live_ranges): Remove uses of macros:
3028 ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
3029 * lra.c (has_nonexceptional_receiver): Remove usage of EXIT_BLOCK_PTR
3031 * lto-streamer-in.c (input_function): Remove usage of ENTRY_BLOCK_PTR
3033 * lto-streamer-out.c (output_cfg): Likewise.
3034 * mcf.c (adjust_cfg_counts): Remove uses of macros: ENTRY_BLOCK_PTR,
3036 (create_fixup_graph): Remove usage of ENTRY_BLOCK_PTR macro.
3037 * mode-switching.c (optimize_mode_switching): Likewise.
3038 (create_pre_exit): Remove usage of EXIT_BLOCK_PTR macro.
3039 * modulo-sched.c (rest_of_handle_sms): Likewise.
3040 (canon_loop): Likewise.
3041 * omp-low.c (build_omp_regions): Remove usage of ENTRY_BLOCK_PTR macro.
3042 * postreload-gcse.c (eliminate_partially_redundant_loads): Remove uses
3043 of macros: ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
3044 * predict.c (rebuild_frequencies): Remove usage of ENTRY_BLOCK_PTR
3046 (propagate_freq): Remove usage of EXIT_BLOCK_PTR macro.
3047 (estimate_bb_frequencies): Remove usage of ENTRY_BLOCK_PTR macro.
3048 (tree_estimate_probability_bb): Remove usage of EXIT_BLOCK_PTR macro.
3049 (expensive_function_p): Remove usage of ENTRY_BLOCK_PTR macro.
3050 (tree_bb_level_predictions): Remove usage of EXIT_BLOCK_PTR macro.
3051 (counts_to_freqs): Remove usage of ENTRY_BLOCK_PTR macro.
3052 (apply_return_prediction): Remove usage of EXIT_BLOCK_PTR macro.
3053 (estimate_loops): Remove usage of ENTRY_BLOCK_PTR macro.
3054 (gimple_predict_edge): Likewise.
3055 (probably_never_executed): Likewise.
3056 * profile.c (find_spanning_tree): Remove uses of macros:
3057 ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
3058 (branch_prob): Likewise.
3059 (compute_branch_probabilities): Likewise.
3060 (compute_frequency_overlap): Remove usage of ENTRY_BLOCK_PTR macro.
3061 (is_inconsistent): Remove usage of EXIT_BLOCK_PTR macro.
3062 (read_profile_edge_counts): Remove usage of ENTRY_BLOCK_PTR macro.
3063 (set_bb_counts): Likewise.
3064 (correct_negative_edge_counts): Likewise.
3065 (get_exec_counts): Likewise.
3066 (instrument_values): Likewise.
3067 (instrument_edges): Likewise.
3068 * reg-stack.c (convert_regs): Remove uses of macros: ENTRY_BLOCK_PTR,
3070 (compensate_edges): Remove usage of ENTRY_BLOCK_PTR macro.
3071 (convert_regs_exit): Remove usage of EXIT_BLOCK_PTR macro.
3072 (convert_regs_entry): Remove usage of ENTRY_BLOCK_PTR macro.
3073 (reg_to_stack): Likewise.
3074 * regs.h (REG_N_SETS): Likewise.
3075 * reload.c (find_dummy_reload): Likewise.
3076 (combine_reloads): Likewise.
3077 (push_reload): Likewise.
3078 * reload1.c (has_nonexceptional_receiver): Remove usage of
3079 EXIT_BLOCK_PTR macro.
3080 * resource.c (mark_target_live_regs): Remove usage of ENTRY_BLOCK_PTR
3082 (find_basic_block): Likewise.
3083 * sched-ebb.c (ebb_add_block): Remove usage of EXIT_BLOCK_PTR macro.
3084 (schedule_ebbs): Likewise.
3085 * sched-int.h (sel_sched_p): Likewise.
3086 * sched-rgn.c (compute_dom_prob_ps): Remove usage of ENTRY_BLOCK_PTR
3088 (rgn_add_block): Remove usage of EXIT_BLOCK_PTR macro.
3089 (haifa_find_rgns): Remove uses of macros: ENTRY_BLOCK_PTR,
3091 (propagate_deps): Remove usage of EXIT_BLOCK_PTR macro.
3092 (extend_rgns): Likewise.
3093 (find_single_block_region): Likewise.
3094 * sel-sched-ir.c (sel_remove_loop_preheader): Remove usage of
3095 ENTRY_BLOCK_PTR macro.
3096 (setup_nop_and_exit_insns): Remove usage of EXIT_BLOCK_PTR macro.
3097 (sel_create_recovery_block): Likewise.
3098 (bb_ends_ebb_p): Likewise.
3099 (sel_bb_end): Likewise.
3100 (sel_bb_head): Likewise.
3101 (free_lv_sets): Likewise.
3102 (init_lv_sets): Likewise.
3103 (tidy_control_flow): Likewise.
3104 (maybe_tidy_empty_bb): Likewise.
3105 * sel-sched-ir.h (_succ_iter_cond): Likewise.
3106 (_succ_iter_start): Likewise.
3107 (sel_bb_empty_or_nop_p): Likewise.
3108 (get_loop_exit_edges_unique_dests): Likewise.
3109 (inner_loop_header_p): Likewise.
3110 * sel-sched.c (create_block_for_bookkeeping): Likewise.
3111 (find_block_for_bookkeeping): Likewise.
3112 * store-motion.c (remove_reachable_equiv_notes): Likewise.
3113 (insert_store): Likewise.
3114 * trans-mem.c (ipa_tm_transform_clone): Remove usage of
3115 ENTRY_BLOCK_PTR macro.
3116 (tm_memopt_compute_available): Remove usage of EXIT_BLOCK_PTR macro.
3117 (ipa_tm_scan_irr_function): Remove usage of ENTRY_BLOCK_PTR macro.
3118 (gate_tm_init): Likewise.
3119 (tm_region_init): Likewise.
3120 * tree-cfg.c (execute_fixup_cfg): Remove uses of macros:
3121 ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
3122 (execute_warn_function_return): Remove usage of EXIT_BLOCK_PTR macro.
3123 (split_critical_edges): Remove uses of macros: ENTRY_BLOCK_PTR,
3125 (print_loops): Remove usage of ENTRY_BLOCK_PTR macro.
3126 (move_sese_region_to_fn): Remove uses of macros: ENTRY_BLOCK_PTR,
3128 (gimple_redirect_edge_and_branch): Remove usage of ENTRY_BLOCK_PTR
3130 (gimple_verify_flow_info): Remove uses of macros: ENTRY_BLOCK_PTR,
3132 (remove_edge_and_dominated_blocks): Remove usage of EXIT_BLOCK_PTR
3134 (make_edges): Remove uses of macros: ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
3135 (gimple_flow_call_edges_add): Remove usage of EXIT_BLOCK_PTR macro.
3136 (make_blocks): Remove usage of ENTRY_BLOCK_PTR macro.
3137 (build_gimple_cfg): Likewise.
3138 (gimple_duplicate_bb): Remove usage of EXIT_BLOCK_PTR macro.
3139 (gimple_can_merge_blocks_p): Likewise.
3140 * tree-cfgcleanup.c (tree_forwarder_block_p): Remove uses of macros:
3141 ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
3142 * tree-complex.c (update_parameter_components): Remove usage of
3143 ENTRY_BLOCK_PTR macro.
3144 * tree-if-conv.c (get_loop_body_in_if_conv_order): Remove usage of
3145 EXIT_BLOCK_PTR macro.
3146 * tree-inline.c (tree_function_versioning): Remove uses of macros:
3147 ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
3148 (delete_unreachable_blocks_update_callgraph): Likewise.
3149 (initialize_cfun): Likewise.
3150 (copy_cfg_body): Remove usage of ENTRY_BLOCK_PTR macro.
3151 (copy_edges_for_bb): Remove usage of EXIT_BLOCK_PTR macro.
3152 (remap_ssa_name): Remove usage of ENTRY_BLOCK_PTR macro.
3153 * tree-into-ssa.c (update_ssa): Likewise.
3154 (maybe_register_def): Remove usage of EXIT_BLOCK_PTR macro.
3155 (insert_updated_phi_nodes_for): Remove usage of ENTRY_BLOCK_PTR macro.
3156 (rewrite_into_ssa): Likewise.
3157 (rewrite_debug_stmt_uses): Likewise.
3158 * tree-outof-ssa.c (expand_phi_nodes): Remove uses of macros:
3159 ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
3160 * tree-profile.c (gimple_gen_ic_func_profiler): Remove usage of
3161 ENTRY_BLOCK_PTR macro.
3162 * tree-scalar-evolution.h (block_before_loop): Likewise.
3163 * tree-sra.c (sra_ipa_reset_debug_stmts): Likewise.
3164 (dump_dereferences_table): Remove uses of macros: ENTRY_BLOCK_PTR,
3166 (analyze_caller_dereference_legality): Remove usage of ENTRY_BLOCK_PTR
3168 (propagate_dereference_distances): Remove uses of macros:
3169 ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
3170 (initialize_parameter_reductions): Remove usage of ENTRY_BLOCK_PTR
3172 * tree-ssa-ccp.c (gsi_prev_dom_bb_nondebug): Likewise.
3173 (optimize_stack_restore): Remove usage of EXIT_BLOCK_PTR macro.
3174 * tree-ssa-coalesce.c (create_outofssa_var_map): Likewise.
3175 * tree-ssa-dce.c (eliminate_unnecessary_stmts): Remove uses of macros:
3176 ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
3177 (remove_dead_stmt): Remove usage of EXIT_BLOCK_PTR macro.
3178 (propagate_necessity): Remove usage of ENTRY_BLOCK_PTR macro.
3179 (mark_control_dependent_edges_necessary): Remove uses of macros:
3180 ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
3181 * tree-ssa-dom.c (eliminate_degenerate_phis): Remove usage of
3182 ENTRY_BLOCK_PTR macro.
3183 (tree_ssa_dominator_optimize): Remove usage of EXIT_BLOCK_PTR macro.
3184 * tree-ssa-live.c (verify_live_on_entry): Remove uses of macros:
3185 ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
3186 (calculate_live_on_exit): Likewise.
3187 (set_var_live_on_entry): Remove usage of ENTRY_BLOCK_PTR macro.
3188 (loe_visit_block): Likewise.
3189 * tree-ssa-live.h (live_on_exit): Remove uses of macros:
3190 ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
3191 (live_on_entry): Likewise.
3192 * tree-ssa-loop-ivopts.c (find_interesting_uses): Remove usage of
3193 EXIT_BLOCK_PTR macro.
3194 * tree-ssa-loop-manip.c (compute_live_loop_exits): Remove usage of
3195 ENTRY_BLOCK_PTR macro.
3196 * tree-ssa-loop-niter.c (simplify_using_initial_conditions): Likewise.
3197 (bound_difference): Likewise.
3198 * tree-ssa-loop-prefetch.c (may_use_storent_in_loop_p): Remove usage
3199 of EXIT_BLOCK_PTR macro.
3200 * tree-ssa-loop-unswitch.c (simplify_using_entry_checks): Remove usage
3201 of ENTRY_BLOCK_PTR macro.
3202 * tree-ssa-math-opts.c (register_division_in): Likewise.
3203 * tree-ssa-phiprop.c (tree_ssa_phiprop): Likewise.
3204 * tree-ssa-pre.c (compute_avail): Likewise.
3205 (compute_antic): Remove usage of EXIT_BLOCK_PTR macro.
3206 (insert): Remove usage of ENTRY_BLOCK_PTR macro.
3207 * tree-ssa-propagate.c (ssa_prop_init): Likewise.
3208 (simulate_block): Remove usage of EXIT_BLOCK_PTR macro.
3209 (cfg_blocks_add): Remove uses of macros: ENTRY_BLOCK_PTR,
3211 (add_control_edge): Remove usage of EXIT_BLOCK_PTR macro.
3212 * tree-ssa-reassoc.c (do_reassoc): Remove uses of macros:
3213 ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
3214 (build_and_add_sum): Remove usage of ENTRY_BLOCK_PTR macro.
3215 * tree-ssa-sink.c (nearest_common_dominator_of_uses): Likewise.
3216 (execute_sink_code): Remove usage of EXIT_BLOCK_PTR macro.
3217 * tree-ssa-uninit.c (find_dom): Remove usage of ENTRY_BLOCK_PTR macro.
3218 (compute_control_dep_chain): Remove usage of EXIT_BLOCK_PTR macro.
3219 (find_pdom): Likewise.
3220 (warn_uninitialized_vars): Remove usage of ENTRY_BLOCK_PTR macro.
3221 * tree-stdarg.c (reachable_at_most_once): Likewise.
3222 * tree-tailcall.c (tree_optimize_tail_calls_1): Remove uses of macros:
3223 ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
3224 (eliminate_tail_call): Likewise.
3225 * tsan.c (instrument_func_entry): Remove usage of ENTRY_BLOCK_PTR
3227 (instrument_func_exit): Remove usage of EXIT_BLOCK_PTR macro.
3228 * var-tracking.c (vt_initialize): Remove uses of macros:
3229 ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
3230 (vt_add_function_parameter): Remove usage of ENTRY_BLOCK_PTR macro.
3231 (vt_find_locations): Remove usage of EXIT_BLOCK_PTR macro.
3232 (vt_stack_adjustments): Remove uses of macros: ENTRY_BLOCK_PTR,
3234 * varasm.c (assemble_start_function): Remove usage of ENTRY_BLOCK_PTR
3236 * config/bfin/bfin.c (hwloop_optimize): Likewise.
3237 * config/nds32/nds32.c (nds32_fp_as_gp_check_available): Remove usage
3238 of EXIT_BLOCK_PTR macro.
3239 * config/arm/arm.c (require_pic_register): Remove usage of
3240 ENTRY_BLOCK_PTR macro.
3241 (arm_r3_live_at_start_p): Likewise.
3242 (any_sibcall_could_use_r3): Remove usage of EXIT_BLOCK_PTR macro.
3243 * config/rs6000/rs6000.c (rs6000_emit_prologue): Likewise.
3244 * config/frv/frv.c (frv_optimize_membar_global): Likewise.
3245 * config/alpha/alpha.c (alpha_gp_save_rtx): Remove usage of
3246 ENTRY_BLOCK_PTR macro.
3247 * config/i386/i386.c (ix86_count_insn): Likewise.
3248 (ix86_seh_fixup_eh_fallthru): Remove usage of EXIT_BLOCK_PTR macro.
3249 (ix86_pad_short_function): Likewise.
3250 (ix86_compute_frame_layout): Remove usage of ENTRY_BLOCK_PTR macro.
3251 (ix86_pad_returns): Remove usage of EXIT_BLOCK_PTR macro.
3252 (ix86_eax_live_at_start_p): Remove usage of ENTRY_BLOCK_PTR macro.
3253 (add_condition_to_bb): Remove usage of EXIT_BLOCK_PTR macro.
3254 (ix86_expand_epilogue): Likewise.
3255 * config/ia64/ia64.c (ia64_asm_unwind_emit): Likewise.
3256 (ia64_expand_prologue): Likewise.
3258 2013-11-19 Catherine Moore <clm@codesourcery.com>
3260 * doc/invoke.texi (mfix-rm7000, mno-fix-rm7000): Document.
3261 * config/mips/mips.opt (mfix-rm7000): New option.
3262 * config/mips/mips.h (ASM_SPEC): Handle mfix-rm7000.
3263 * config/mips/mips.c (mips_reorg_process_insns): Disable
3264 noreorder for TARGET_FIX_RM7000.
3266 2013-11-19 Oleg Endo <olegendo@gcc.gnu.org>
3268 * config/sh/sh-c.c: Fix typo in include of file attribs.h.
3270 2013-11-19 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3272 * config/arm/arm.c (arm_new_rtx_costs):
3273 Handle narrow mode add-shifts properly.
3274 * config/arm/arm-common.c (arm_rtx_shift_left_p): Remove static.
3275 * config/arm/arm-common-protos.h (arm_rtx_shift_left_p):
3278 2013-11-19 James Greenhalgh <james.greenhalgh@arm.com>
3280 * config/arm/arm.md (zero_extend<mode>di2): Add type attribute.
3282 2013-11-19 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
3284 * config/rs6000/vector.md ("mov<mode>"): Do not call
3285 rs6000_emit_le_vsx_move to move into or out of GPRs.
3286 * config/rs6000/rs6000.c (rs6000_emit_le_vsx_move): Assert
3287 source and destination are not GPR hard regs.
3289 2013-11-19 David Malcolm <dmalcolm@redhat.com>
3291 * basic-block.h (n_edges_for_function): Rename macro to...
3292 (n_edges_for_fn): ...this.
3293 (n_edges): Eliminate macro as work towards making uses of
3296 * cfg.c (init_flow): Update for renaming of "n_edges_for_function"
3297 to "n_edges_for_fn".
3299 * cfg.c (unchecked_make_edge): Remove usage of n_edges macro.
3300 (clear_edges): Likewise.
3301 (free_edge): Likewise.
3302 * cfghooks.c (dump_flow_info): Likewise.
3303 * cprop.c (is_too_expensive): Likewise.
3304 * df-core.c (df_worklist_dataflow_doublequeue): Likewise.
3305 * gcse.c (is_too_expensive): Likewise.
3306 (prune_insertions_deletions): Likewise.
3307 * mcf.c (create_fixup_graph): Likewise.
3308 * sched-rgn.c (haifa_find_rgns): Likewise.
3309 * tree-cfg.c (gimple_dump_cfg): Likewise.
3310 * var-tracking.c (variable_tracking_main_1): Likewise.
3312 2013-11-19 Marcus Shawcroft <marcus.shawcroft@arm.com>
3314 * config/aarch64/aarch64.c (aarch64_save_or_restore_fprs): Fix over
3317 2013-11-19 Marcus Shawcroft <marcus.shawcroft@arm.com>
3319 * config/aarch64/aarch64.md
3320 (aarch64_movdi_<mode>low, *add_<shift>_si_uxtw): Adjust whitespace.
3322 2013-11-19 Marcus Shawcroft <marcus.shawcroft@arm.com>
3324 * config/aarch64/aarch64.h (PROFILE_HOOK): Fix whitespace.
3326 2013-11-19 Joseph Myers <joseph@codesourcery.com>
3328 * varasm.c (align_variable): Give error instead of warning for
3329 unsupported alignment.
3330 (assemble_noswitch_variable): Likewise.
3332 2013-11-19 Basile Starynkevitch <basile@starynkevitch.net>
3334 * plugin.def (PLUGIN_INCLUDE_FILE): New event, invoked in
3337 2013-11-19 Peter Bergner <bergner@vnet.ibm.com>
3339 * loop-doloop.c (doloop_optimize_loops): Remove unused
3340 loop iterator argument from FOR_EACH_LOOP.
3342 2013-11-19 David Malcolm <dmalcolm@redhat.com>
3344 Convert gimple types from a union to C++ inheritance.
3345 * Makefile.in (GIMPLE_H): Add dep on is-a.h.
3346 * coretypes.h (union gimple_statement_d): Remove declaration.
3347 (gimple): Convert from being a "union gimple_statement_d *"
3348 to a "struct gimple_statement_base *".
3349 (const_gimple): Likewise (with "const").
3350 * ggc.h (ggc_alloc_cleared_gimple_statement_d_stat): Replace with...
3351 (ggc_alloc_cleared_gimple_statement_stat): ...this.
3352 * gimple-pretty-print.c (debug): Change parameter from a
3353 "gimple_statement_d &" to a "gimple_statement_base &".
3354 (debug): Change parameter from a "gimple_statement_d *" to
3355 a "gimple_statement_base *".
3356 * gimple-pretty-print.h (debug): Update declarations as above.
3357 * gimple.c (gimple_alloc_stat): Update for renaming of
3358 ggc_alloc_cleared_gimple_statement_d_stat to
3359 ggc_alloc_cleared_gimple_statement_stat.
3360 * gimple.h: Include "is-a.h" for use by is_a_helper
3361 specializations in followup autogenerated patch.
3362 (struct gimple statement_base): Make this type usable as a base
3363 class by adding "desc", "tag" and "variable_size" to GTY, thus
3364 using opting-in to gengtype's support for simple inheritance.
3365 (gimple_statement_with_ops_base): Convert to a subclass of
3366 gimple_statement_base, dropping initial "gsbase" field. Note that
3367 this type is abstract, with no GSS_ value, and thus no GTY tag value.
3368 (gimple_statement_with_ops): Convert to a subclass of
3369 gimple_statement_with_ops_base, dropping initial "opbase" field.
3370 Add tag value to GTY marking. Update marking of op field to
3371 reflect how num_ops field is accessed via inheritance.
3372 (gimple_statement_with_memory_ops_base): Convert to a subclass of
3373 gimple_statement_with_ops_base, dropping initial "opbase" field.
3374 Add tag value to GTY marking.
3375 (gimple_statement_with_memory_ops): Convert to a subclass of
3376 public gimple_statement_with_memory_ops_base, dropping initial
3377 "membase" field. Add tag value to GTY marking. Update marking
3378 of op field to reflect how num_ops field is accessed via inheritance.
3379 (gimple_statement_call): Analogous changes that also update the
3380 marking of the "u" union.
3381 (gimple_statement_omp): Convert to a subclass of
3382 gimple_statement_base, dropping initial "gsbase" field, adding
3383 tag value to GTY marking.
3384 (gimple_statement_bind): Likewise.
3385 (gimple_statement_catch): Likewise.
3386 (gimple_statement_eh_filter): Likewise.
3387 (gimple_statement_eh_else): Likewise.
3388 (gimple_statement_eh_mnt): Likewise.
3389 (gimple_statement_phi): Likewise.
3390 (gimple_statement_eh_ctrl): Likewise.
3391 (gimple_statement_try): Likewise.
3392 (gimple_statement_wce): Likewise.
3393 (gimple_statement_asm): Convert to a subclass of
3394 gimple_statement_with_memory_ops_base, dropping initial
3395 "membase" field, adding tag value to GTY marking, and updating
3396 marking of op field.
3397 (gimple_statement_omp_critical): Convert to a subclass of
3398 gimple_statement_omp, dropping initial "omp" field, adding tag
3399 value to GTY marking.
3400 (gimple_statement_omp_for): Likewise.
3401 (gimple_statement_omp_parallel): Likewise.
3402 (gimple_statement_omp_task): Convert to a subclass of
3403 gimple_statement_omp_parallel, dropping initial "par" field,
3404 adding tag value to GTY marking.
3405 (gimple_statement_omp_sections): Convert to a subclass of
3406 gimple_statement_omp, dropping initial "omp" field, adding
3407 tag value to GTY marking.
3408 (gimple_statement_omp_continue): Convert to a subclass of
3409 gimple_statement_base, dropping initial "gsbase" field, adding
3410 tag value to GTY marking.
3411 (gimple_statement_omp_single): Convert to a subclass of
3412 gimple_statement_omp, dropping initial "omp" field, adding
3413 tag value to GTY marking.
3414 (gimple_statement_omp_atomic_load): Convert to a subclass of
3415 gimple_statement_base, dropping initial "gsbase" field, adding
3416 tag value to GTY marking.
3417 (gimple_statement_omp_atomic_store): Convert to a subclass of
3418 gimple_statement_base, dropping initial "gsbase" field, adding
3419 tag value to GTY marking.
3420 (gimple_statement_transaction): Convert to a subclass of
3421 gimple_statement_with_memory_ops_base, dropping initial "gsbase"
3422 field, adding tag value to GTY marking.
3423 (union gimple_statement_d): Remove.
3424 * system.h (CONST_CAST_GIMPLE): Update to use
3425 "struct gimple_statement_base *" rather than
3426 "union gimple_statement_d *".
3427 * tree-ssa-ccp.c (gimple_htab): Convert underlying type from
3428 gimple_statement_d to gimple_statement_base.
3430 * gimple.h (gimple_use_ops): Port from union to usage of dyn_cast.
3431 (gimple_set_use_ops): Port from union to usage of as_a.
3432 (gimple_set_vuse): Likewise.
3433 (gimple_set_vdef): Likewise.
3434 (gimple_call_internal_fn): Port from union to a static_cast,
3435 given that the type has already been asserted.
3436 (gimple_omp_body_ptr): Port from unchecked union usage to
3438 (gimple_omp_set_body): Likewise.
3440 * gimple-iterator.c (update_bb_for_stmts): Update for conversion of
3441 gimple types to a true class hierarchy.
3442 (update_call_edge_frequencies): Likewise.
3443 (gsi_insert_seq_nodes_before): Likewise.
3444 (gsi_insert_seq_nodes_after): Likewise.
3445 (gsi_split_seq_after): Likewise.
3446 (gsi_set_stmt): Likewise.
3447 (gsi_split_seq_before): Likewise.
3448 (gsi_remove): Likewise.
3449 * gimple-iterator.h (gsi_one_before_end_p): Likewise.
3450 (gsi_next): Likewise.
3451 (gsi_prev): Likewise.
3452 * gimple-pretty-print.c (dump_gimple_debug): Likewise.
3453 * gimple-ssa.h (gimple_vuse_op): Likewise.
3454 (gimple_vdef_op): Likewise.
3455 * gimple-streamer-in.c (input_gimple_stmt): Likewise.
3456 * gimple-streamer-out.c (output_gimple_stmt): Likewise.
3457 * gimple.c (gimple_set_code): Likewise.
3458 (gimple_alloc_stat): Likewise.
3459 (gimple_set_subcode): Likewise.
3460 (gimple_build_call_internal_1): Likewise.
3461 (gimple_check_failed): Likewise.
3462 (gimple_call_flags): Likewise.
3463 (gimple_set_bb): Likewise.
3464 * gimple.h (is_a_helper <gimple_statement_asm> (gimple)): New.
3465 (is_a_helper <gimple_statement_bind> (gimple)): Likewise.
3466 (is_a_helper <gimple_statement_call> (gimple)): Likewise.
3467 (is_a_helper <gimple_statement_catch> (gimple)): Likewise.
3468 (is_a_helper <gimple_statement_eh_ctrl> (gimple)): Likewise.
3469 (is_a_helper <gimple_statement_eh_else> (gimple)): Likewise.
3470 (is_a_helper <gimple_statement_eh_filter> (gimple)): Likewise.
3471 (is_a_helper <gimple_statement_eh_mnt> (gimple)): Likewise.
3472 (is_a_helper <gimple_statement_omp_atomic_load> (gimple)): Likewise.
3473 (is_a_helper <gimple_statement_omp_atomic_store> (gimple)): Likewise.
3474 (is_a_helper <gimple_statement_omp_continue> (gimple)): Likewise.
3475 (is_a_helper <gimple_statement_omp_critical> (gimple)): Likewise.
3476 (is_a_helper <gimple_statement_omp_for> (gimple)): Likewise.
3477 (is_a_helper <gimple_statement_omp_parallel> (gimple)): Likewise.
3478 (is_a_helper <gimple_statement_omp_sections> (gimple)): Likewise.
3479 (is_a_helper <gimple_statement_omp_single> (gimple)): Likewise.
3480 (is_a_helper <gimple_statement_omp_task> (gimple)): Likewise.
3481 (is_a_helper <gimple_statement_phi> (gimple)): Likewise.
3482 (is_a_helper <gimple_statement_transaction> (gimple)): Likewise.
3483 (is_a_helper <gimple_statement_try> (gimple)): Likewise.
3484 (is_a_helper <gimple_statement_wce> (gimple)): Likewise.
3485 (is_a_helper <const gimple_statement_asm> (const_gimple)): Likewise.
3486 (is_a_helper <const gimple_statement_bind> (const_gimple)): Likewise.
3487 (is_a_helper <const gimple_statement_call> (const_gimple)): Likewise.
3488 (is_a_helper <const gimple_statement_catch> (const_gimple)): Likewise.
3489 (is_a_helper <const gimple_statement_eh_ctrl> (const_gimple)):
3491 (is_a_helper <const gimple_statement_eh_filter> (const_gimple)):
3493 (is_a_helper <const gimple_statement_omp_atomic_load> (const_gimple)):
3495 (is_a_helper <const gimple_statement_omp_atomic_store>
3496 (const_gimple)): Likewise.
3497 (is_a_helper <const gimple_statement_omp_continue> (const_gimple)):
3499 (is_a_helper <const gimple_statement_omp_critical> (const_gimple)):
3501 (is_a_helper <const gimple_statement_omp_for> (const_gimple)):
3503 (is_a_helper <const gimple_statement_omp_parallel> (const_gimple)):
3505 (is_a_helper <const gimple_statement_omp_sections> (const_gimple)):
3507 (is_a_helper <const gimple_statement_omp_single> (const_gimple)):
3509 (is_a_helper <const gimple_statement_omp_task> (const_gimple)):
3511 (is_a_helper <const gimple_statement_phi> (const_gimple)): Likewise.
3512 (is_a_helper <const gimple_statement_transaction> (const_gimple)):
3514 (gimple_seq_last): Update for conversion of gimple types to a true
3516 (gimple_seq_set_last): Likewise.
3517 (gimple_code): Likewise.
3518 (gimple_bb): Likewise.
3519 (gimple_block): Likewise.
3520 (gimple_set_block): Likewise.
3521 (gimple_location): Likewise.
3522 (gimple_location_ptr): Likewise.
3523 (gimple_set_location): Likewise.
3524 (gimple_no_warning_p): Likewise.
3525 (gimple_set_no_warning): Likewise.
3526 (gimple_set_visited): Likewise.
3527 (gimple_visited_p): Likewise.
3528 (gimple_set_plf): Likewise.
3529 (gimple_plf): Likewise.
3530 (gimple_set_uid): Likewise.
3531 (gimple_uid): Likewise.
3532 (gimple_init_singleton): Likewise.
3533 (gimple_modified_p): Likewise.
3534 (gimple_set_modified): Likewise.
3535 (gimple_expr_code): Likewise.
3536 (gimple_has_volatile_ops): Likewise.
3537 (gimple_set_has_volatile_ops): Likewise.
3538 (gimple_omp_subcode): Likewise.
3539 (gimple_omp_set_subcode): Likewise.
3540 (gimple_omp_return_set_nowait): Likewise.
3541 (gimple_omp_section_set_last): Likewise.
3542 (gimple_omp_parallel_set_combined_p): Likewise.
3543 (gimple_omp_atomic_set_need_value): Likewise.
3544 (gimple_omp_atomic_set_seq_cst): Likewise.
3545 (gimple_num_ops): Likewise.
3546 (gimple_set_num_ops): Likewise.
3547 (gimple_assign_nontemporal_move_p): Likewise.
3548 (gimple_assign_set_nontemporal_move): Likewise.
3549 (gimple_assign_rhs_code): Likewise.
3550 (gimple_assign_set_rhs_code): Likewise.
3551 (gimple_call_internal_p): Likewise.
3552 (gimple_call_with_bounds_p): Likewise.
3553 (gimple_call_set_with_bounds): Likewise.
3554 (gimple_call_set_tail): Likewise.
3555 (gimple_call_tail_p): Likewise.
3556 (gimple_call_set_return_slot_opt): Likewise.
3557 (gimple_call_return_slot_opt_p): Likewise.
3558 (gimple_call_set_from_thunk): Likewise.
3559 (gimple_call_from_thunk_p): Likewise.
3560 (gimple_call_set_va_arg_pack): Likewise.
3561 (gimple_call_va_arg_pack_p): Likewise.
3562 (gimple_call_set_nothrow): Likewise.
3563 (gimple_call_set_alloca_for_var): Likewise.
3564 (gimple_call_alloca_for_var_p): Likewise.
3565 (gimple_call_copy_flags): Likewise.
3566 (gimple_cond_code): Likewise.
3567 (gimple_cond_set_code): Likewise.
3568 (gimple_cond_make_false): Likewise.
3569 (gimple_cond_make_true): Likewise.
3570 (gimple_asm_volatile_p): Likewise.
3571 (gimple_asm_set_volatile): Likewise.
3572 (gimple_asm_set_input): Likewise.
3573 (gimple_asm_input_p): Likewise.
3574 (gimple_try_kind): Likewise.
3575 (gimple_try_set_kind): Likewise.
3576 (gimple_try_catch_is_cleanup): Likewise.
3577 (gimple_try_set_catch_is_cleanup): Likewise.
3578 (gimple_wce_cleanup_eh_only): Likewise.
3579 (gimple_wce_set_cleanup_eh_only): Likewise.
3580 (gimple_debug_bind_p): Likewise.
3581 (gimple_debug_source_bind_p): Likewise.
3582 (gimple_omp_for_set_kind): Likewise.
3583 (gimple_omp_for_set_combined_p): Likewise.
3584 (gimple_omp_for_set_combined_into_p): Likewise.
3585 (gimple_omp_target_set_kind): Likewise.
3586 (gimple_transaction_subcode): Likewise.
3587 (gimple_transaction_set_subcode): Likewise.
3588 (gimple_predict_predictor): Likewise.
3589 (gimple_predict_set_predictor): Likewise.
3590 (gimple_predict_outcome): Likewise.
3591 (gimple_predict_set_outcome): Likewise.
3592 (gimple_transaction_set_label): Likewise.
3593 (gimple_transaction_set_body): Likewise.
3594 (gimple_transaction_label_ptr): Likewise.
3595 (gimple_transaction_label): Likewise.
3596 (gimple_transaction_body_ptr): Likewise.
3597 (gimple_omp_continue_set_control_use): Likewise.
3598 (gimple_omp_continue_control_use_ptr): Likewise.
3599 (gimple_omp_continue_control_use): Likewise.
3600 (gimple_omp_continue_set_control_def): Likewise.
3601 (gimple_omp_continue_control_def_ptr): Likewise.
3602 (gimple_omp_continue_control_def): Likewise.
3603 (gimple_omp_atomic_load_rhs_ptr): Likewise.
3604 (gimple_omp_atomic_load_rhs): Likewise.
3605 (gimple_omp_atomic_load_set_rhs): Likewise.
3606 (gimple_omp_atomic_load_lhs_ptr): Likewise.
3607 (gimple_omp_atomic_load_lhs): Likewise.
3608 (gimple_omp_atomic_load_set_lhs): Likewise.
3609 (gimple_omp_atomic_store_val_ptr): Likewise.
3610 (gimple_omp_atomic_store_val): Likewise.
3611 (gimple_omp_atomic_store_set_val): Likewise.
3612 (gimple_omp_for_cond): Likewise.
3613 (gimple_omp_for_set_cond): Likewise.
3614 (gimple_omp_sections_set_control): Likewise.
3615 (gimple_omp_sections_control_ptr): Likewise.
3616 (gimple_omp_sections_control): Likewise.
3617 (gimple_omp_sections_set_clauses): Likewise.
3618 (gimple_omp_sections_clauses_ptr): Likewise.
3619 (gimple_omp_sections_clauses): Likewise.
3620 (gimple_omp_teams_set_clauses): Likewise.
3621 (gimple_omp_teams_clauses_ptr): Likewise.
3622 (gimple_omp_teams_clauses): Likewise.
3623 (gimple_omp_target_set_data_arg): Likewise.
3624 (gimple_omp_target_data_arg_ptr): Likewise.
3625 (gimple_omp_target_data_arg): Likewise.
3626 (gimple_omp_target_set_child_fn): Likewise.
3627 (gimple_omp_target_child_fn_ptr): Likewise.
3628 (gimple_omp_target_child_fn): Likewise.
3629 (gimple_omp_target_set_clauses): Likewise.
3630 (gimple_omp_target_clauses_ptr): Likewise.
3631 (gimple_omp_target_clauses): Likewise.
3632 (gimple_omp_single_set_clauses): Likewise.
3633 (gimple_omp_single_clauses_ptr): Likewise.
3634 (gimple_omp_single_clauses): Likewise.
3635 (gimple_omp_task_set_arg_align): Likewise.
3636 (gimple_omp_task_arg_align_ptr): Likewise.
3637 (gimple_omp_task_arg_align): Likewise.
3638 (gimple_omp_task_set_arg_size): Likewise.
3639 (gimple_omp_task_arg_size_ptr): Likewise.
3640 (gimple_omp_task_arg_size): Likewise.
3641 (gimple_omp_task_set_copy_fn): Likewise.
3642 (gimple_omp_task_copy_fn_ptr): Likewise.
3643 (gimple_omp_task_copy_fn): Likewise.
3644 (gimple_omp_task_set_data_arg): Likewise.
3645 (gimple_omp_task_data_arg_ptr): Likewise.
3646 (gimple_omp_task_data_arg): Likewise.
3647 (gimple_omp_task_set_child_fn): Likewise.
3648 (gimple_omp_task_child_fn_ptr): Likewise.
3649 (gimple_omp_task_child_fn): Likewise.
3650 (gimple_omp_task_set_clauses): Likewise.
3651 (gimple_omp_task_clauses_ptr): Likewise.
3652 (gimple_omp_task_clauses): Likewise.
3653 (gimple_omp_parallel_set_data_arg): Likewise.
3654 (gimple_omp_parallel_data_arg_ptr): Likewise.
3655 (gimple_omp_parallel_data_arg): Likewise.
3656 (gimple_omp_parallel_set_child_fn): Likewise.
3657 (gimple_omp_parallel_child_fn_ptr): Likewise.
3658 (gimple_omp_parallel_child_fn): Likewise.
3659 (gimple_omp_parallel_set_clauses): Likewise.
3660 (gimple_omp_parallel_clauses_ptr): Likewise.
3661 (gimple_omp_parallel_clauses): Likewise.
3662 (gimple_omp_for_set_pre_body): Likewise.
3663 (gimple_omp_for_pre_body_ptr): Likewise.
3664 (gimple_omp_for_set_incr): Likewise.
3665 (gimple_omp_for_incr_ptr): Likewise.
3666 (gimple_omp_for_incr): Likewise.
3667 (gimple_omp_for_set_final): Likewise.
3668 (gimple_omp_for_final_ptr): Likewise.
3669 (gimple_omp_for_final): Likewise.
3670 (gimple_omp_for_set_initial): Likewise.
3671 (gimple_omp_for_initial_ptr): Likewise.
3672 (gimple_omp_for_initial): Likewise.
3673 (gimple_omp_for_set_index): Likewise.
3674 (gimple_omp_for_index_ptr): Likewise.
3675 (gimple_omp_for_index): Likewise.
3676 (gimple_omp_for_collapse): Likewise.
3677 (gimple_omp_for_set_clauses): Likewise.
3678 (gimple_omp_for_clauses_ptr): Likewise.
3679 (gimple_omp_for_clauses): Likewise.
3680 (gimple_omp_critical_set_name): Likewise.
3681 (gimple_omp_critical_name_ptr): Likewise.
3682 (gimple_omp_critical_name): Likewise.
3683 (gimple_eh_dispatch_set_region): Likewise.
3684 (gimple_eh_dispatch_region): Likewise.
3685 (gimple_resx_set_region): Likewise.
3686 (gimple_resx_region): Likewise.
3687 (gimple_phi_set_arg): Likewise.
3688 (gimple_phi_arg): Likewise.
3689 (gimple_phi_set_result): Likewise.
3690 (gimple_phi_result_ptr): Likewise.
3691 (gimple_phi_result): Likewise.
3692 (gimple_phi_num_args): Likewise.
3693 (gimple_phi_capacity): Likewise.
3694 (gimple_wce_set_cleanup): Likewise.
3695 (gimple_wce_cleanup_ptr): Likewise.
3696 (gimple_try_set_cleanup): Likewise.
3697 (gimple_try_set_eval): Likewise.
3698 (gimple_try_cleanup_ptr): Likewise.
3699 (gimple_try_eval_ptr): Likewise.
3700 (gimple_eh_else_set_e_body): Likewise.
3701 (gimple_eh_else_set_n_body): Likewise.
3702 (gimple_eh_else_e_body_ptr): Likewise.
3703 (gimple_eh_else_n_body_ptr): Likewise.
3704 (gimple_eh_must_not_throw_set_fndecl): Likewise.
3705 (gimple_eh_must_not_throw_fndecl): Likewise.
3706 (gimple_eh_filter_set_failure): Likewise.
3707 (gimple_eh_filter_set_types): Likewise.
3708 (gimple_eh_filter_failure_ptr): Likewise.
3709 (gimple_eh_filter_types_ptr): Likewise.
3710 (gimple_eh_filter_types): Likewise.
3711 (gimple_catch_set_handler): Likewise.
3712 (gimple_catch_set_types): Likewise.
3713 (gimple_catch_handler_ptr): Likewise.
3714 (gimple_catch_types_ptr): Likewise.
3715 (gimple_catch_types): Likewise.
3716 (gimple_asm_string): Likewise.
3717 (gimple_asm_set_label_op): Likewise.
3718 (gimple_asm_label_op): Likewise.
3719 (gimple_asm_set_clobber_op): Likewise.
3720 (gimple_asm_clobber_op): Likewise.
3721 (gimple_asm_set_output_op): Likewise.
3722 (gimple_asm_output_op_ptr): Likewise.
3723 (gimple_asm_output_op): Likewise.
3724 (gimple_asm_set_input_op): Likewise.
3725 (gimple_asm_input_op_ptr): Likewise.
3726 (gimple_asm_input_op): Likewise.
3727 (gimple_asm_nlabels): Likewise.
3728 (gimple_asm_nclobbers): Likewise.
3729 (gimple_asm_noutputs): Likewise.
3730 (gimple_asm_ninputs): Likewise.
3731 (gimple_bind_set_block): Likewise.
3732 (gimple_bind_block): Likewise.
3733 (gimple_bind_add_seq): Likewise.
3734 (gimple_bind_add_stmt): Likewise.
3735 (gimple_bind_set_body): Likewise.
3736 (gimple_bind_body_ptr): Likewise.
3737 (gimple_bind_append_vars): Likewise.
3738 (gimple_bind_set_vars): Likewise.
3739 (gimple_bind_vars): Likewise.
3740 (gimple_call_clobber_set): Likewise.
3741 (gimple_call_use_set): Likewise.
3742 (gimple_call_set_internal_fn): Likewise.
3743 (gimple_call_set_fntype): Likewise.
3744 (gimple_call_fntype): Likewise.
3745 (gimple_omp_return_lhs_ptr): Likewise.
3746 (gimple_omp_return_lhs): Likewise.
3747 (gimple_omp_return_set_lhs): Likewise.
3748 (gimple_omp_taskreg_set_data_arg): Likewise.
3749 (gimple_omp_taskreg_data_arg_ptr): Likewise.
3750 (gimple_omp_taskreg_data_arg): Likewise.
3751 (gimple_omp_taskreg_set_child_fn): Likewise.
3752 (gimple_omp_taskreg_child_fn_ptr): Likewise.
3753 (gimple_omp_taskreg_child_fn): Likewise.
3754 (gimple_omp_taskreg_set_clauses): Likewise.
3755 (gimple_omp_taskreg_clauses_ptr): Likewise.
3756 (gimple_omp_taskreg_clauses): Likewise.
3757 (gimple_vuse): Likewise.
3758 (gimple_vdef): Likewise.
3759 (gimple_vuse_ptr): Likewise.
3760 (gimple_vdef_ptr): Likewise.
3761 * tree-inline.c (copy_debug_stmt): Likewise.
3762 * tree-phinodes.c (make_phi_node): Likewise.
3764 * gimple.h (is_a_helper <const gimple_statement_with_ops>::test): New.
3765 (is_a_helper <gimple_statement_with_ops>::test): New.
3766 (is_a_helper <const gimple_statement_with_memory_ops>::test): New.
3767 (is_a_helper <gimple_statement_with_memory_ops>::test): New.
3769 * gimple-streamer-in.c (input_gimple_stmt): Port from union
3770 access to use of as_a.
3771 * gimple.c (gimple_build_asm_1): Likewise.
3772 (gimple_build_try): Likewise. Also, return a specific subclass
3773 rather than just gimple.
3774 (gimple_build_resx): Port from union access to use of as_a.
3775 (gimple_build_eh_dispatch): Likewise.
3776 (gimple_build_omp_for): Likewise. Also, convert allocation of iter
3777 now that gengtype no longer provides a typed allocator function.
3778 (gimple_copy): Likewise.
3779 * gimple.h (gimple_build_try): Return a specific subclass rather
3781 * gimplify.c (gimplify_cleanup_point_expr): Replace union access
3782 with subclass access by making use of new return type of
3784 * tree-phinodes.c: (allocate_phi_node): Return a
3785 "gimple_statement_phi *" rather than just a gimple.
3786 (resize_phi_node): Likewise.
3787 (make_phi_node): Replace union access with subclass access by
3788 making use of new return type of allocate_phi_node.
3789 (reserve_phi_args_for_new_edge): Replace union access with as_a.
3790 (remove_phi_arg_num): Accept a "gimple_statement_phi *" rather
3792 (remove_phi_args): Update for change to remove_phi_arg_num.
3794 * gdbhooks.py (GimplePrinter.to_string): Update lookup of
3795 code field to reflect inheritance, rather than embedding of
3796 the base gimple type.
3798 2013-11-19 Richard Biener <rguenther@suse.de>
3800 * cfgloop.h (struct loop_iterator): C++-ify, add constructor
3801 and destructor and make fel_next a member function.
3802 (fel_next): Transform into ...
3803 (loop_iterator::next): ... this.
3804 (fel_init): Transform into ...
3805 (loop_iterator::loop_iterator): ... this.
3806 (loop_iterator::~loop_iterator): New.
3807 (FOR_EACH_LOOP): Remove loop-iterator argument.
3808 (FOR_EACH_LOOP_BREAK): Remove no longer necessary macro.
3809 * cfgloop.c, cfgloopmanip.c, config/mn10300/mn10300.c,
3810 graphite-clast-to-gimple.c, graphite-scop-detection.c,
3811 graphite-sese-to-poly.c, ipa-inline-analysis.c, ipa-pure-const.c,
3812 loop-init.c, loop-invariant.c, loop-unroll.c, loop-unswitch.c,
3813 modulo-sched.c, predict.c, sel-sched-ir.c, tree-cfg.c, tree-data-ref.c,
3814 tree-if-conv.c, tree-loop-distribution.c, tree-parloops.c,
3815 tree-predcom.c, tree-scalar-evolution.c, tree-ssa-dce.c,
3816 tree-ssa-loop-ch.c, tree-ssa-loop-im.c, tree-ssa-loop-ivcanon.c,
3817 tree-ssa-loop-ivopts.c, tree-ssa-loop-manip.c, tree-ssa-loop-niter.c,
3818 tree-ssa-loop-prefetch.c, tree-ssa-loop-unswitch.c,
3819 tree-ssa-threadupdate.c, tree-vectorizer.c, tree-vrp.c: Adjust
3820 uses of FOR_EACH_LOOP and remove loop_iterator variables. Replace
3821 FOR_EACH_LOOP_BREAK with break.
3823 2013-11-19 Richard Biener <rguenther@suse.de>
3825 PR tree-optimization/59164
3826 * tree-vect-loop-manip.c (vect_update_ivs_after_vectorizer):
3828 * tree-vect-loop.c (vect_analyze_loop_operations): Adjust check
3829 whether we can create an epilogue loop to reflect thecases where
3832 2013-11-19 Andrew MacLeod <amacleod@redhat.com>
3834 * graphite-sese-to-poly.c: Include expr.h.
3836 2013-11-19 Richard Biener <rguenther@suse.de>
3839 * tree-ssa-ter.c (find_replaceable_in_bb): Avoid forwarding
3840 loads into stmts that may clobber it.
3842 2013-11-19 Bernd Schmidt <bernds@codesourcery.com>
3844 * cgraphunit.c (symtab_terminator): New variable.
3845 (queued_nodes): Renamed from first. Use symtab_terminator as
3847 (analyze_functions): Adjust accordingly.
3848 (cgraph_process_new_functions): Return void.
3849 * cgraph.h (cgraph_process_new_functions): Adjust declaration.
3851 2013-11-19 Marek Polacek <polacek@redhat.com>
3853 * opts.c (common_handle_option): Add -fsanitize=null option.
3854 Turn off -fdelete-null-pointer-checks option when doing the
3855 NULL pointer checking.
3856 * sanitizer.def (BUILT_IN_UBSAN_HANDLE_TYPE_MISMATCH): Add.
3857 * tree-pass.h (make_pass_ubsan): Declare.
3858 (make_pass_sanopt): Declare.
3859 * timevar.def (TV_TREE_UBSAN): New timevar.
3860 * passes.def: Add pass_sanopt and pass_ubsan.
3861 * ubsan.h (ubsan_null_ckind): New enum.
3862 (ubsan_mismatch_data): New struct.
3863 (ubsan_expand_null_ifn): Declare.
3864 (ubsan_create_data): Adjust declaration.
3865 (ubsan_type_descriptor): Likewise.
3866 * asan.c: Include "ubsan.h".
3867 (pass_data_sanopt): New pass.
3868 (execute_sanopt): New function.
3869 (gate_sanopt): Likewise.
3870 (make_pass_sanopt): Likewise.
3871 (class pass_sanopt): New class.
3872 * ubsan.c: Include tree-pass.h, gimple-ssa.h, gimple-walk.h,
3873 gimple-iterator.h and cfgloop.h.
3874 (PROB_VERY_UNLIKELY): Define.
3875 (tree_type_map_hash): New function.
3876 (ubsan_type_descriptor): Add new parameter.
3877 Improve type name generation.
3878 (ubsan_create_data): Add new parameter. Add pointer data into
3880 (ubsan_expand_null_ifn): New function.
3881 (instrument_member_call): Likewise.
3882 (instrument_mem_ref): Likewise.
3883 (instrument_null): Likewise.
3884 (ubsan_pass): Likewise.
3885 (gate_ubsan): Likewise.
3886 (make_pass_ubsan): Likewise.
3887 (ubsan_instrument_unreachable): Adjust ubsan_create_data call.
3888 (class pass_ubsan): New class.
3889 (pass_data_ubsan): New pass.
3890 * flag-types.h (enum sanitize_code): Add SANITIZE_NULL.
3891 * internal-fn.c (expand_UBSAN_NULL): New function.
3892 * cgraphunit.c (varpool_finalize_decl): Call varpool_assemble_decl
3893 even when !flag_toplevel_reorder.
3894 * internal-fn.def (UBSAN_NULL): New.
3896 2013-11-19 Jan Hubicka <jh@suse.cz>
3898 * cgraph.c (cgraph_create_indirect_edge): Use
3899 get_polymorphic_call_info.
3900 * cgraph.h (cgraph_indirect_call_info): Add outer_type,
3901 maybe_in_construction and maybe_derived_type.
3902 * ipa-utils.h (ipa_polymorphic_call_context): New structure.
3903 (ipa_dummy_polymorphic_call_context): New global var.
3904 (possible_polymorphic_call_targets): Add context paramter.
3905 (dump_possible_polymorphic_call_targets): Likewise; update wrappers.
3906 (possible_polymorphic_call_target_p): Likewise.
3907 (get_polymorphic_call_info): New function.
3908 * ipa-devirt.c (ipa_dummy_polymorphic_call_context): New function.
3909 (add_type_duplicate): Remove forgotten debug output.
3910 (method_class_type): Add sanity check.
3911 (maybe_record_node): Add FINALP parameter.
3912 (record_binfo): Add OUTER_TYPE and OFFSET; walk the inner
3913 by info by get_binfo_at_offset.
3914 (possible_polymorphic_call_targets_1): Add OUTER_TYPE/OFFSET
3915 parameters; pass them to record-binfo.
3916 (polymorphic_call_target_d): Add context and FINAL.
3917 (polymorphic_call_target_hasher::hash): Hash context.
3918 (polymorphic_call_target_hasher::equal): Compare context.
3919 (free_polymorphic_call_targets_hash):
3920 (get_class_context): New function.
3921 (contains_type_p): New function.
3922 (get_polymorphic_call_info): New function.
3923 (walk_bases): New function.
3924 (possible_polymorphic_call_targets): Add context parameter; honnor it.
3925 (dump_possible_polymorphic_call_targets): Dump context.
3926 (possible_polymorphic_call_target_p): Add context.
3927 (update_type_inheritance_graph): Update comment.s
3928 (ipa_set_jf_known_type): Assert that compoentn type is known.
3929 (ipa_note_param_call): Do not tamper with offsets.
3930 (ipa_analyze_indirect_call_uses): When offset is being changed; clear
3932 (update_indirect_edges_after_inlining): Likewise.
3933 (ipa_write_indirect_edge_info): Stream new fields.
3934 (ipa_read_indirect_edge_info): Stream in new fields.
3936 2013-11-19 Jan Hubicka <jh@suse.cz>
3938 * tree-pretty-print.c (dump_generic_node): Print class type of
3941 2013-11-19 Joey Ye <joey.ye@arm.com>
3943 * config/arm/arm.opt (-marm-pic-data-is-text-relative): New option.
3944 * doc/invoke.texi (-marm-pic-data-is-text-relative): Documentation
3946 * config/arm/arm.c (arm_option_override): By default disable
3947 -marm-pic-data-is-text-relative.
3948 (legitimize_pic_address): Use arm_pic_data_is_text_relative.
3949 (arm_assemble_integer): Likewise.
3950 * config/arm/arm.h (TARGET_DEFAULT_PIC_DATA_IS_TEXT_RELATIVE):
3951 New macro to initialize -marm-pic-data-is-text-relative.
3953 2013-11-19 Bin Cheng <bin.cheng@arm.com>
3955 * tree-ssa-loop-ivopts.c (enum ainc_type): New.
3956 (address_cost_data): New field.
3957 (get_address_cost): Compute auto-increment rtx cost in ainc_costs.
3958 Use ainc_costs for auto-increment rtx patterns. Cleanup TWS.
3960 2013-11-19 James Greenhalgh <james.greenhalgh@arm.com>
3962 * config/aarch64/aarch64.md: Remove v8type from all insns.
3964 2013-11-19 Richard Biener <rguenther@suse.de>
3966 PR tree-optimization/57517
3967 * tree-predcom.c (combinable_refs_p): Verify the combination
3968 is always executed when the refs are.
3970 2013-11-19 Jeff Law <law@redhat.com>
3972 * tree-ssa-threadupdate.c: Include ssa-iterators.h
3973 (copy_phi_arg_into_existing_phi): New function.
3974 (any_remaining_duplicated_blocks): Likewise.
3975 (ssa_fix_duplicate_block_edges): Handle multiple duplicated
3976 blocks on a jump threading path.
3978 * tree-ssa-threadupdate.c (thread_through_loop_header): Do not
3979 thread through a joiner which has the latch edge.
3981 2013-11-19 Jan Hubicka <jh@suse.cz>
3983 * md.texi (setmem): Document new parameter.
3984 * optabs.c (maybe_gen_insn): Support 9 operands.
3985 * builtins.c (determine_block_size): Add probable_max_size;
3986 support anti-ranges.
3987 (expand_builtin_memcpy. expand_builtin_memset_args): Pass around
3989 * expr.c (emit_block_move_via_movmem, emit_block_move_hints,
3990 emit_block_move, clear_storage_hints, set_storage_via_setmem):
3992 * expr.h (emit_block_move_hints, clear_storage_hints,
3993 set_storage_via_setmem): Update prototype.
3994 * i386.md (setmem, movmem patterns): Add 9th operand.
3995 * i386-protos.h (ix86_expand_set_or_movmem): Update prototype.
3996 * i386.c (ix86_expand_set_or_movmem): Take probable_max_size_exp
3997 argument; pass it to decide_alg.
3999 2013-11-19 David Malcolm <dmalcolm@redhat.com>
4001 * basic-block.h (n_basic_blocks_for_function): Rename macro to...
4002 (n_basic_blocks_for_fn): ...this.
4004 (n_basic_blocks): Eliminate macro as work towards making uses of
4007 * cfgloop.c (init_loops_structure): Update for renaming of
4008 "n_basic_blocks_for_function" to "n_basic_blocks_for_fn".
4009 * graph.c (draw_cfg_nodes_no_loops): Likewise.
4010 * ipa-utils.c (ipa_merge_profiles): Likewise.
4011 * lto-streamer-in.c (make_new_block): Likewise.
4012 * tree-cfg.c (init_empty_tree_cfg_for_function): Likewise.
4013 (dump_function_to_file): Likewise.
4015 * alias.c (init_alias_analysis): Replace usage of "n_basic_blocks"
4016 macro with "n_basic_blocks_for_fn (cfun)".
4017 * bb-reorder.c (partition_hot_cold_basic_blocks): Likewise.
4018 (duplicate_computed_gotos): Likewise.
4019 (reorder_basic_blocks): Likewise.
4020 * bt-load.c (augment_live_range): Likewise.
4021 * cfg.c (expunge_block): Likewise.
4022 (compact_blocks): Likewise.
4023 * cfganal.c (single_pred_before_succ_order): Likewise.
4024 (compute_idf): Likewise.
4025 (flow_dfs_compute_reverse_init): Likewise.
4026 (pre_and_rev_post_order_compute): Likewise.
4027 (pre_and_rev_post_order_compute_fn): Likewise.
4028 (inverted_post_order_compute): Likewise.
4029 (post_order_compute): Likewise.
4030 (print_edge_list): Likewise.
4031 (find_unreachable_blocks): Likewise.
4032 (mark_dfs_back_edges): Likewise.
4033 * cfgcleanup.c (try_optimize_cfg): Likewise.
4034 (try_forward_edges): Likewise.
4035 * cfghooks.c (dump_flow_info): Likewise.
4036 * cfgloop.c (verify_loop_structure): Likewise.
4037 (get_loop_body): Likewise.
4038 (flow_loops_find): Likewise.
4039 * cfgloopmanip.c (add_loop): Likewise.
4040 (remove_path): Likewise.
4041 (find_path): Likewise.
4042 * cfgrtl.c (rtl_flow_call_edges_add): Likewise.
4043 (rtl_verify_bb_layout): Likewise.
4044 (entry_of_function): Likewise.
4045 (rtl_create_basic_block): Likewise.
4046 * coverage.c (coverage_compute_cfg_checksum): Likewise.
4047 * cprop.c (one_cprop_pass): Likewise.
4048 (is_too_expensive): Likewise.
4049 * df-core.c (df_compute_cfg_image): Likewise.
4050 (df_compact_blocks): Likewise.
4051 (df_worklist_dataflow_doublequeue): Likewise.
4052 * dominance.c (calculate_dominance_info): Likewise.
4053 (calc_dfs_tree): Likewise.
4054 (calc_dfs_tree_nonrec): Likewise.
4055 (init_dom_info): Likewise.
4056 * domwalk.c (cmp_bb_postorder): Likewise.
4057 * function.c (thread_prologue_and_epilogue_insns): Likewise.
4058 (generate_setjmp_warnings): Likewise.
4059 * fwprop.c (build_single_def_use_links): Likewise.
4060 * gcse.c (is_too_expensive): Likewise.
4061 (one_code_hoisting_pass): Likewise.
4062 (one_pre_gcse_pass): Likewise.
4063 * graphite.c (graphite_initialize): Likewise.
4064 * haifa-sched.c (haifa_sched_init): Likewise.
4065 * ipa-inline-analysis.c (estimate_function_body_sizes): Likewise.
4066 * ira.c (split_live_ranges_for_shrink_wrap): Likewise.
4067 * ira-build.c (ira_build): Likewise.
4068 * lcm.c (compute_nearerout): Likewise.
4069 (compute_available): Likewise.
4070 (compute_laterin): Likewise.
4071 (compute_antinout_edge): Likewise.
4072 * lra-lives.c (lra_create_live_ranges): Likewise.
4073 * lra.c (has_nonexceptional_receiver): Likewise.
4074 * mcf.c (create_fixup_graph): Likewise.
4075 * profile.c (branch_prob): Likewise.
4076 * reg-stack.c (convert_regs_2): Likewise.
4077 * regrename.c (regrename_analyze): Likewise.
4078 * reload1.c (has_nonexceptional_receiver): Likewise.
4079 * reorg.c (dbr_schedule): Likewise.
4080 * sched-deps.c (sched_deps_init): Likewise.
4081 * sched-ebb.c (schedule_ebbs): Likewise.
4082 * sched-rgn.c (extend_regions): Likewise.
4083 (schedule_insns): Likewise.
4084 (sched_rgn_init): Likewise.
4085 (extend_rgns): Likewise.
4086 (haifa_find_rgns): Likewise.
4087 * sel-sched-ir.c (recompute_rev_top_order): Likewise.
4088 (sel_recompute_toporder): Likewise.
4089 * sel-sched.c (run_selective_scheduling): Likewise.
4090 * store-motion.c (one_store_motion_pass): Likewise.
4091 (remove_reachable_equiv_notes): Likewise.
4092 * tracer.c (tracer): Likewise.
4093 (tail_duplicate): Likewise.
4094 * tree-cfg.c (gimple_flow_call_edges_add): Likewise.
4095 (dump_cfg_stats): Likewise.
4096 (gimple_dump_cfg): Likewise.
4097 (create_bb): Likewise.
4098 (build_gimple_cfg): Likewise.
4099 * tree-cfgcleanup.c (merge_phi_nodes): Likewise.
4100 * tree-inline.c (optimize_inline_calls): Likewise.
4101 (fold_marked_statements): Likewise.
4102 * tree-ssa-ifcombine.c (tree_ssa_ifcombine): Likewise.
4103 * tree-ssa-loop-ch.c (copy_loop_headers): Likewise.
4104 * tree-ssa-loop-im.c (analyze_memory_references): Likewise.
4105 * tree-ssa-loop-manip.c (compute_live_loop_exits): Likewise.
4106 * tree-ssa-math-opts.c (execute_cse_reciprocals): Likewise.
4107 * tree-ssa-phiopt.c (tree_ssa_phiopt_worker): Likewise.
4108 * tree-ssa-pre.c (do_pre): Likewise.
4109 (init_pre): Likewise.
4110 (compute_avail): Likewise.
4111 * tree-ssa-reassoc.c (init_reassoc): Likewise.
4112 * tree-ssa-sccvn.c (init_scc_vn): Likewise.
4113 * tree-ssa-tail-merge.c (alloc_cluster_vectors): Likewise.
4114 (init_worklist): Likewise.
4115 * tree-ssa-uncprop.c (associate_equivalences_with_edges): Likewise.
4116 * var-tracking.c (variable_tracking_main_1): Likewise.
4117 (vt_find_locations): Likewise.
4118 (vt_stack_adjustments): Likewise.
4119 * config/s390/s390.c (s390_optimize_nonescaping_tx): Likewise.
4120 * config/spu/spu.c (spu_machine_dependent_reorg): Likewise.
4122 2013-11-18 Jan Hubicka <jh@suse.cz>
4124 * profile.c (compute_branch_probabilities): Do not sanity check
4127 2013-11-18 Kenneth Zadeck <zadeck@naturalbridge.com>
4129 * tree.c (int_fits_type_p): Change GET_MODE_BITSIZE to
4131 * fold-const.c (fold_single_bit_test_into_sign_test)
4132 (fold_binary_loc): Change GET_MODE_BITSIZE to GET_MODE_PRECISION.
4134 2013-11-18 Teresa Johnson <tejohnson@google.com>
4136 * cfgrtl.c (cfg_layout_initialize): Assert if we try to go into
4137 cfglayout after bb reordering.
4138 * passes.def: Move compgotos before bb reordering since it goes into
4141 2013-11-18 Bernd Schmidt <bernds@codesourcery.com>
4143 * cgraphunit.c (ipa_passes): Don't execute all_lto_gen_passes.
4144 * lto-streamer-out.c (lto_output, produce_asm_for_decls): No longer
4146 (pass_data_ipa_lto_gimple_out, pass_ipa_lto_gimple_out,
4147 make_pass_ipa_lto_gimple_out, pass_data_ipa_lto_finish_out,
4148 pass_ipa_lto_finish_out, make_pass_ipa_lto_finish_out): Remove.
4149 * lto-streamer.h (lto_output, produce_asm_for_decls): Declare.
4150 * pass-manager.h (GCC_PASS_LISTS, class pass_manager):
4151 Remove all_lto_gen_passes.
4152 * passes.c (pass_manager::dump_passes): Remove its use.
4153 (pass_manager::register_pass): Likewise.
4154 (ipa_read_summaries, ipa_read_optimization_summaries): Likewise.
4155 (pass_manager::pass_manager): Don't initialize or use it.
4156 (write_lto): New static function.
4157 (ipa_write_summaries_1, ipa_write_optimization_summaries): Use it
4158 instead of using all_lto_gen_passes.
4159 * passes.def (all_lto_gen_passes, pass_ipa_lto_gimple_out,
4160 pass_ipa_lto_finish_out): Delete.
4161 * tree-pass.h (make_pass_ipa_lto_gimple_out,
4162 make_pass_ipa_lto_finish_out): Don't declare.
4164 2013-11-18 Jeff Law <law@redhat.com>
4166 * tree-ssa-threadupdate.c (redirection_data): Record two
4167 duplicated blocks instead of just one.
4168 (local_info): Explain why we don't create a template for the
4169 second duplicated block in a thread path.
4170 (create_block_for_threading): Accept argument indicating array
4171 index into redirection_data to store its result.
4172 (lookup_redirection_data): Initialize both duplicate blocks.
4173 (ssa_create_duplicates): If a jump threading path needs multiple
4174 blocks duplicated, then duplicate them.
4175 (ssa_fix_duplicate_block_edges): Corresponding changes.
4176 (ssa_fixup_template_block, thread_single_edge): Likewise.
4178 2013-11-18 Marek Polacek <polacek@redhat.com>
4180 * doc/invoke.texi: Extend -fsanitize=undefined documentation.
4182 2013-11-18 Andrew Pinski <apinski@cavium.com>
4183 Steve Ellcey <sellcey@mips.com>
4186 * config/mips/mips.md (*mov<GPR:mode>_on_<MOVECC:mode>): Remove
4187 type restriction from equality_operator on conditonal move.
4188 (*mov<SCALARF:mode>_on_<MOVECC:mode>): Ditto.
4189 (*mov<GPR:mode>_on_<GPR2:mode>_ne): New.
4191 2013-11-18 Jeff Law <law@redhat.com>
4193 * tree-ssa-threadupdate.c: Fix file block comment.
4194 Fix minor indention issue.
4196 2013-11-18 Uros Bizjak <ubizjak@gmail.com>
4198 * config/i386/i386.c (ix86_decompose_address): Use REG_P instead of
4199 ix86_address_subreg_operand. Move subreg checks to
4200 ix86_validate_address_register. Move address override check to
4201 ix86_legitimate_address_p.
4202 (ix86_validate_address_register): New function.
4203 (ix86_legitimate_address_p): Call ix86_validate_address_register
4204 to validate base and index registers. Add address override check
4205 from ix86_decompose_address.
4206 (ix86_decompose_address): Remove.
4208 2013-11-18 Richard Biener <rguenther@suse.de>
4210 PR tree-optimization/59125
4211 PR tree-optimization/54570
4212 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): When inlining
4213 is not complete do not treat component-references with offset zero
4214 but different fields as equal.
4215 * tree-object-size.c: Include tree-phinodes.h and ssa-iterators.h.
4216 (compute_object_sizes): Apply TLC. Propagate the constant
4217 results into all uses and fold their stmts.
4218 * passes.def (pass_all_optimizations): Move pass_object_sizes
4219 after the first pass_forwprop and before pass_fre.
4221 2013-11-18 Richard Sandiford <rdsandiford@googlemail.com>
4223 * tree.h (tree_to_uhwi): Return an unsigned HOST_WIDE_INT.
4224 * tree.c (tree_to_uhwi): Return an unsigned HOST_WIDE_INT.
4225 (tree_ctz): Remove cast to unsigned type.
4226 * builtins.c (fold_builtin_memory_op): Likewise.
4227 * dwarf2out.c (descr_info_loc): Likewise.
4228 * godump.c (go_output_typedef): Likewise.
4229 * omp-low.c (expand_omp_simd): Likewise.
4230 * stor-layout.c (excess_unit_span): Likewise.
4231 * tree-object-size.c (addr_object_size): Likewise.
4232 * tree-sra.c (analyze_all_variable_accesses): Likewise.
4233 * tree-ssa-forwprop.c (simplify_builtin_call): Likewise.
4234 (simplify_rotate): Likewise.
4235 * tree-ssa-strlen.c (adjust_last_stmt, handle_builtin_memcpy)
4236 (handle_pointer_plus): Likewise.
4237 * tree-switch-conversion.c (check_range): Likewise.
4238 * tree-vect-patterns.c (vect_recog_rotate_pattern): Likewise.
4239 * tsan.c (instrument_builtin_call): Likewise.
4240 * cfgexpand.c (defer_stack_allocation): Add cast to HOST_WIDE_INT.
4241 * trans-mem.c (tm_log_add): Likewise.
4242 * config/aarch64/aarch64.c (aapcs_vfp_sub_candidate): Likewise.
4243 * config/arm/arm.c (aapcs_vfp_sub_candidate): Likewise.
4244 * config/rs6000/rs6000.c (rs6000_aggregate_candidate): Likewise.
4245 * config/mips/mips.c (r10k_safe_mem_expr_p): Make offset unsigned.
4247 2013-11-18 Richard Sandiford <rdsandiford@googlemail.com>
4249 * tree.h (host_integerp, tree_low_cst): Delete.
4250 * tree.c (host_integerp, tree_low_cst): Delete.
4252 2013-11-18 Richard Sandiford <rdsandiford@googlemail.com>
4254 * expr.h: Update comments to refer to tree_to_[su]hwi rather
4256 * fold-const.c (fold_binary_loc): Likewise.
4257 * expr.c (store_constructor): Use tree_to_uhwi rather than
4259 * ipa-utils.h (possible_polymorphic_call_target_p): Likewise.
4260 * stmt.c (emit_case_dispatch_table): Likewise.
4261 * tree-switch-conversion.c (emit_case_bit_tests): Likewise.
4263 2013-11-18 Richard Sandiford <rdsandiford@googlemail.com>
4265 * alias.c, asan.c, builtins.c, cfgexpand.c, cgraph.c,
4266 config/aarch64/aarch64.c, config/alpha/predicates.md,
4267 config/arm/arm.c, config/darwin.c, config/epiphany/epiphany.c,
4268 config/i386/i386.c, config/iq2000/iq2000.c, config/m32c/m32c-pragma.c,
4269 config/mep/mep-pragma.c, config/mips/mips.c,
4270 config/picochip/picochip.c, config/rs6000/rs6000.c, cppbuiltin.c,
4271 dbxout.c, dwarf2out.c, emit-rtl.c, except.c, expr.c, fold-const.c,
4272 function.c, gimple-fold.c, godump.c, ipa-cp.c, ipa-prop.c, omp-low.c,
4273 predict.c, sdbout.c, stor-layout.c, trans-mem.c, tree-object-size.c,
4274 tree-sra.c, tree-ssa-ccp.c, tree-ssa-forwprop.c,
4275 tree-ssa-loop-ivcanon.c, tree-ssa-loop-ivopts.c, tree-ssa-loop-niter.c,
4276 tree-ssa-loop-prefetch.c, tree-ssa-strlen.c, tree-stdarg.c,
4277 tree-switch-conversion.c, tree-vect-generic.c, tree-vect-loop.c,
4278 tree-vect-patterns.c, tree-vrp.c, tree.c, tsan.c, ubsan.c, varasm.c:
4279 Replace tree_low_cst (..., 1) with tree_to_uhwi throughout.
4281 2013-11-18 Richard Sandiford <rdsandiford@googlemail.com>
4283 * builtins.c, cilk-common.c, config/aarch64/aarch64.c,
4284 config/alpha/alpha.c, config/arm/arm.c, config/c6x/predicates.md,
4285 config/i386/i386.c, config/ia64/predicates.md, config/s390/s390.c,
4286 coverage.c, dbxout.c, dwarf2out.c, except.c, explow.c, expr.c, expr.h,
4287 fold-const.c, gimple-fold.c, godump.c, ipa-prop.c, omp-low.c,
4288 predict.c, rtlanal.c, sdbout.c, stmt.c, stor-layout.c, targhooks.c,
4289 tree-cfg.c, tree-data-ref.c, tree-inline.c, tree-ssa-forwprop.c,
4290 tree-ssa-loop-prefetch.c, tree-ssa-phiopt.c, tree-ssa-sccvn.c,
4291 tree-ssa-strlen.c, tree-stdarg.c, tree-vect-data-refs.c,
4292 tree-vect-patterns.c, tree.c, tree.h, var-tracking.c, varasm.c:
4293 Replace tree_low_cst (..., 0) with tree_to_shwi throughout.
4295 2013-11-18 Richard Sandiford <rdsandiford@googlemail.com>
4297 * tree.h (tree_to_shwi, tree_to_uhwi): Declare, with inline expansions.
4298 * tree.c (tree_to_shwi, tree_to_uhwi): New functions.
4300 2013-11-18 Richard Sandiford <rdsandiford@googlemail.com>
4302 * expr.h: Update comments to refer to tree_fits_[su]hwi_p rather
4305 2013-11-18 Richard Sandiford <rdsandiford@googlemail.com>
4307 * builtins.c, config/alpha/alpha.c, config/iq2000/iq2000.c,
4308 config/mips/mips.c, dbxout.c, dwarf2out.c, expr.c, fold-const.c,
4309 gimple-fold.c, godump.c, omp-low.c, predict.c, sdbout.c, stor-layout.c,
4310 tree-dfa.c, tree-sra.c, tree-ssa-forwprop.c, tree-ssa-loop-prefetch.c,
4311 tree-ssa-phiopt.c, tree-ssa-sccvn.c, tree-ssa-strlen.c,
4312 tree-ssa-structalias.c, tree-vect-data-refs.c, tree-vect-patterns.c,
4313 tree.c, varasm.c, alias.c, cfgexpand.c, config/aarch64/aarch64.c,
4314 config/arm/arm.c, config/epiphany/epiphany.c, config/i386/i386.c,
4315 config/m32c/m32c-pragma.c, config/mep/mep-pragma.c,
4316 config/rs6000/rs6000.c, config/sparc/sparc.c, emit-rtl.c, function.c,
4317 gimplify.c, ipa-prop.c, stmt.c, trans-mem.c, tree-cfg.c,
4318 tree-object-size.c, tree-ssa-ccp.c, tree-ssa-loop-ivcanon.c,
4319 tree-stdarg.c, tree-switch-conversion.c, tree-vect-generic.c,
4320 tree-vrp.c, tsan.c, ubsan.c: Replace host_integerp (..., 1) with
4321 tree_fits_uhwi_p throughout.
4323 2013-11-18 Richard Sandiford <rdsandiford@googlemail.com>
4325 * builtins.c, config/alpha/alpha.c, config/c6x/predicates.md,
4326 config/ia64/predicates.md, config/iq2000/iq2000.c, config/mips/mips.c,
4327 config/s390/s390.c, dbxout.c, dwarf2out.c, except.c, explow.c, expr.c,
4328 expr.h, fold-const.c, gimple-fold.c, gimple-ssa-strength-reduction.c,
4329 gimple.c, godump.c, graphite-scop-detection.c, graphite-sese-to-poly.c,
4330 omp-low.c, predict.c, rtlanal.c, sdbout.c, simplify-rtx.c,
4331 stor-layout.c, tree-data-ref.c, tree-dfa.c, tree-pretty-print.c,
4332 tree-sra.c, tree-ssa-alias.c, tree-ssa-forwprop.c,
4333 tree-ssa-loop-ivopts.c, tree-ssa-loop-prefetch.c, tree-ssa-math-opts.c,
4334 tree-ssa-phiopt.c, tree-ssa-reassoc.c, tree-ssa-sccvn.c,
4335 tree-ssa-strlen.c, tree-ssa-structalias.c, tree-vect-data-refs.c,
4336 tree-vect-patterns.c, tree-vectorizer.h, tree.c, var-tracking.c,
4337 varasm.c: Replace host_integerp (..., 0) with tree_fits_shwi_p
4340 2013-11-18 Richard Sandiford <rdsandiford@googlemail.com>
4342 * tree.h (tree_fits_shwi_p, tree_fits_uhwi_p): Declare.
4343 * tree.c (tree_fits_shwi_p, tree_fits_uhwi_p): Define.
4345 2013-11-18 Kirill Yukhin <kirill.yukhin@intel.com>
4347 * config/ia64/ia64.c (ia64_split_tmode_move): Mark load with `dead'
4348 flag if it kills its address, not its post-increment.
4350 2013-11-18 Ilya Enkovich <ilya.enkovich@intel.com>
4352 * builtin-types.def (BT_FN_PTR_CONST_PTR_VAR): New.
4353 * chkp-builtins.def (BUILT_IN_CHKP_BIND_BOUNDS): New.
4354 * cfgexpand.c (expand_call_stmt): Expand BUILT_IN_CHKP_BIND_BOUNDS.
4355 * gimple.c (gimple_call_get_nobnd_arg_index): Remove.
4356 * gimple.h (gf_mask): Add GF_CALL_WITH_BOUNDS.
4357 (gimple_call_with_bounds_p): New.
4358 (gimple_call_set_with_bounds): New.
4359 (gimple_call_num_nobnd_args): Remove.
4360 (gimple_call_nobnd_arg): Remove.
4361 * tree.h (CALL_WITH_BOUNDS_P): New.
4362 * rtl.h (CALL_EXPR_WITH_BOUNDS_P): New.
4364 2013-11-18 Trevor Saunders <tsaunders@mozilla.com>
4366 * cgraph.h (symtab_node_asm_name): Rename to symtab_node::asm_name.
4367 (symtab_node_name): Rename to symtab_node::name.
4368 (cgraph_node_asm_name): Remove.
4369 (varpool_node_asm_name): Remove.
4370 * cgraph.c cgraphclones.c cgraphunit.c ipa-cp.c ipa-devirt.c
4371 ipa-inline-analysis.c ipa-inline-transform.c ipa-inline.c
4372 ipa-profile.c ipa-prop.c ipa-pure-const.c ipa-ref.c ipa-reference.c
4373 ipa-utils.c ipa.c symtab.c tree-inline.c tree-sra.c
4374 tree-ssa-structalias.c value-prof.c varpool.c Adjust.
4376 2013-11-18 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
4378 * config/arm/aarch-cost-tables.h (cortexa53_extra_costs): New table.
4379 * config/arm/arm.c (arm_cortex_a53_tune): New.
4380 * config/arm/arm-cores.def (cortex-a53): Use cortex_a53 tuning struct.
4382 2013-11-12 Ganesh Gopalasubramanian <Ganesh.Gopalasubramanian@amd.com>
4384 * config.gcc (i[34567]86-*-linux* | ...): Add bdver4.
4385 (case ${target}): Add bdver4.
4386 * config/i386/bdver3.md: Add bdver4.
4387 * config/i386/driver-i386.c: (host_detect_local_cpu): Let
4388 -march=native recognize bdver4 processors.
4389 * config/i386/i386-c.c (ix86_target_macros_internal): Add
4390 bdver4 def_and_undef
4391 * config/i386/i386.c (struct processor_costs bdver4_cost): New.
4392 (m_BDVER4): New definition.
4393 (m_AMD_MULTIPLE): Includes m_BDVER4.
4394 (processor_target_table): Add bdver4 entry.
4395 (static const char *const cpu_names): Add bdver4 entry.
4396 (software_prefetching_beneficial_p): Add bdver3.
4397 (ix86_option_override_internal): Add bdver4 instruction sets.
4398 (ix86_issue_rate): Add bdver4.
4399 (ix86_adjust_cost): Add bdver4.
4400 (ia32_multipass_dfa_lookahead): Add bdver4.
4401 (enum processor_model): Add M_AMDFAM15H_BDVER4.
4402 (struct _arch_names_table): Add M_AMDFAM15H_BDVER4.
4403 (has_dispatch): Add bdver4.
4404 * config/i386/i386.h (TARGET_BDVER4): New definition.
4405 (enum target_cpu_default): Add TARGET_CPU_DEFAULT_bdver4.
4406 (enum processor_type): Add PROCESSOR_BDVER4.
4407 * config/i386/i386.md (define_attr "cpu"): Add bdver4.
4408 * config/i386/i386.opt (flag_dispatch_scheduler): Add bdver4.
4409 * doc/extend.texi: Add details about bdver4.
4410 * doc/invoke.texi: Add details about bdver4. Add
4411 fma4 and fsgsbase for bdver3. Add fma4 for bdver2.
4413 2013-11-17 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
4415 * config/rs6000/rs6000.c (rs6000_emit_move): Use low word of
4416 sdmode_stack_slot also in little-endian mode.
4418 2013-11-17 Jan Hubicka <jh@suse.cz>
4420 * doc/md.texi (setmem, movstr): Update documentation.
4421 * builtins.c (determine_block_size): New function.
4422 (expand_builtin_memcpy): Use it and pass it to emit_block_move_hints.
4423 (expand_builtin_memset_args): Use it and pass it to
4424 set_storage_via_setmem.
4425 * expr.c (emit_block_move_via_movmem): Add min_size/max_size
4426 parameters; update call to expander.
4427 (emit_block_move_hints): Add min_size/max_size parameters.
4428 (clear_storage_hints): Likewise.
4429 (set_storage_via_setmem): Likewise.
4430 (clear_storage): Update.
4431 * expr.h (emit_block_move_hints, clear_storage_hints,
4432 set_storage_via_setmem): Update prototypes.
4433 * i386.c (ix86_expand_set_or_movmem): Add bounds; export.
4434 (ix86_expand_movmem, ix86_expand_setmem): Remove.
4435 (ix86_expand_movmem, ix86_expand_setmem): Remove.
4436 * i386.md (movmem, setmem): Pass parameters.
4438 2013-11-17 Uros Bizjak <ubizjak@gmail.com>
4441 * config/i386/i386.c (ix86_address_subreg_operand): Do not
4442 reject non-integer subregs.
4443 (ix86_decompose_address): Do not reject invalid CONST_INT RTXes.
4444 Move check for invalid x32 constant addresses ...
4445 (ix86_legitimate_address_p): ... here.
4447 2011-11-17 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
4449 * config/rs6000/rs6000.c (rs6000_frame_related): Add split_reg
4450 parameter and use it in REG_FRAME_RELATED_EXPR note.
4451 (emit_frame_save): Call rs6000_frame_related with extra NULL_RTX
4453 (rs6000_emit_prologue): Likewise, but for little endian VSX
4454 stores, pass the source register of the store instead.
4456 2013-11-17 Andrew MacLeod <amacleod@redhat.com>
4458 * gimple.h: Reorder prototypes to match .c declaration order, and
4459 remove protyotypes for functions not in gimple.c.
4460 (LABEL): Move to tree-into-ssa.c.
4461 * gimple.c: Remove unused prototypes.
4462 (get_base_address): Move to tree.c.
4463 * tree.c (get_base_address): Relocate from gimple.c.
4464 * builtins.h (validate_gimple_arglist): Add prototype.
4465 * trans-mem.h (compute_transaction_bits, is_tm_ending): Add prototype.
4466 * cfgexpand.h: New File.
4467 (gimple_assign_rhs_to_tree, estimated_stack_frame_size): Add protoype.
4468 * tree.h (build_addr): Move to tree-nested.h.
4469 * tree-nested.h: New File.
4470 (build_addr, lower_nested_functions, insert_field_into_struct): Add
4472 * tree-inline.h (estimated_stack_frame_size): Remove prototype.
4473 * ipa-inline-analysis.c: Include cfgexpand.h.
4474 * cgraphunit.c: Include tree-nested.h.
4475 * omp-low.c: Likewise.
4476 * tree-parloops.c: Likewise.
4477 * gimple-low.h: Likewise.
4478 * tree-profile.h: Likewise.
4479 * expr.c: Include cfgexpand.h.
4480 * tree-affine.c: Likewise.
4481 * tree-ssa.c: Likewise.
4482 * tree-ssa-loop-im.c: Include trans-mem.h.
4483 * tree-ssa-tail-merge.c: Likewise.
4484 * value-prof.c: Include builtins.h and tree-nested.h.
4485 * tree-into-ssa.c (LABEL): Define here.
4487 2013-11-16 Joern Rennecke <joern.rennecke@embecosm.com>
4489 * config/arc/arc.c (arc_predicate_delay_insns): New function.
4490 (pass_data_arc_predicate_delay_insns): New pass_data instance.
4491 (pass_arc_predicate_delay_insns): New subclass of rtl_opt_class.
4492 (make_pass_arc_predicate_delay_insns): New function.
4493 (arc_init): Register pass_arc_predicate_delay_insns if
4494 flag_delayed_branch is active.
4496 2013-11-16 Joern Rennecke <joern.rennecke@embecosm.com>
4498 * config/arc/constraints.md (Rcq): Simplify register number test.
4500 2013-11-15 Aldy Hernandez <aldyh@redhat.com>
4502 * gimple.h (enum gf_mask): Change the ordering of GF_OMP_* bits.
4504 2013-11-15 Kaz Kojima <kkojima@gcc.gnu.org>
4506 * config/sh/sh.c (barrier_align): Return 0 when barrier_or_label
4509 2013-11-15 Aldy Hernandez <aldyh@redhat.com>
4511 * Makefile.in (C_COMMON_OBJS): Depend on c-cilkplus.o.
4512 * gimple-pretty-print.c (dump_omp_for): Add case for
4513 GF_OMP_FOR_KIND_CILKSIMD.
4514 * gimple.h (enum gf_mask): Restructure entries to add
4515 GF_OMP_FOR_KIND_CILKSIMD.
4516 * gimplify.c (is_gimple_stmt): Add case for CILK_SIMD.
4517 (gimplify_omp_for): Handle CILK_SIMD.
4518 (gimplify_expr): Add ccase for CILK_SIMD.
4519 * omp-low.c (extract_omp_for_data): Handle CILK_SIMD.
4520 (build_outer_var_ref): Same.
4521 (check_omp_nesting_restrictions): Same.
4522 (lower_rec_input_clauses): Same.
4523 (lower_lastprivate_clauses): Same.
4524 (expand_omp_for): Same.
4525 (execute_expand_omp): Check flag_enable_cilkplus.
4526 (execute_lower_omp): Same.
4527 (diagnose_sb_0): Handle CILK_SIMD.
4528 (diagnose_omp_structured_block_errors): Check flag_enable_cilkplus.
4529 (setjmp_or_longjmp_p): New.
4530 (scan_omp_1_stmt): Error on setjmp/longjmp in a simd construct.
4531 * tree-pretty-print.c (dump_generic_node): Add case for CILK_SIMD.
4532 * tree.def: Add tree code for CILK_SIMD.
4534 2013-11-15 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
4536 * config/rs6000/altivec.md (UNSPEC_VPERM_X, UNSPEC_VPERM_UNS_X):
4538 (altivec_vperm_<mode>): Revert earlier little endian change.
4539 (*altivec_vperm_<mode>_internal): Remove.
4540 (altivec_vperm_<mode>_uns): Revert earlier little endian change.
4541 (*altivec_vperm_<mode>_uns_internal): Remove.
4542 * config/rs6000/vector.md (vec_realign_load_<mode>): Revise commentary.
4544 2013-11-15 Jeff Law <law@redhat.com>
4546 * basic-block.h (has_abnormal_or_eh_outgoing_edge): Renamed from
4547 has_abnormal_or_outgoing_edge. Check for EH edges as well.
4548 * gimple-ssa-isolate-paths.c
4549 (find_implicit_erroneous_behaviour): Corresponding changes.
4550 Do not check stmt_ends_bb_p or GIMPLE_RETURN anymore.
4551 (find_explicit_erroneous_behaviour): Likewise.
4553 2013-11-15 Jeff Law <law@redhat.com>
4555 * ifcvt.c (find_cond_trap): Properly handle case where
4558 2013-11-15 Andreas Schwab <schwab@linux-m68k.org>
4560 * configure: Regenerate.
4562 2013-11-15 James Greenhalgh <james.greenhalgh@arm.com>
4564 * config/aarch64/aarch64-simd.md: Remove simd_type from all patterns.
4565 * config/aarch64/aarch64.md: Likewise, correct "type" attribute
4566 where it is incorrect or missing.
4568 2013-11-15 Richard Sandiford <rdsandiford@googlemail.com>
4570 * dwarf2out.c (gen_enumeration_type_die): Remove unnecessary
4572 * tree-vect-patterns.c (vect_recog_divmod_pattern): Likewise.
4573 Use TREE_INT_CST_LOW rather than tree_low_cst when reading the
4575 * fold-const.c (fold_binary_loc): Replace a host_integerp/tree_low_cst
4576 pair with a TREE_CODE test and TREE_INT_CST_LOW.
4577 * tree-vect-generic.c (expand_vector_divmod): Likewise.
4579 2013-11-15 Richard Biener <rguenther@suse.de>
4581 PR tree-optimization/50262
4582 * tree-ssa-alias.h (struct pt_solution): Split
4583 vars_contains_global into vars_contains_nonlocal,
4584 vars_contains_escaped and vars_contains_escaped_heap.
4585 * tree-ssa-structalias.c (label_visit): Expand comment.
4586 (handle_lhs_call): Adjust comment.
4587 (set_uids_in_ptset): Set the new flags appropriately.
4588 (pt_solution_set): Adjust.
4589 (pt_solution_set_var): Likewise.
4590 (pt_solution_ior_into): Likewise.
4591 (pt_solution_includes_global): Likewise.
4592 (pt_solutions_intersect_1): Optimize escaped handling.
4593 (compute_points_to_sets): Remove heap variable globalization.
4594 (ipa_escaped_pt): Adjust initializer.
4595 (pass_data_ipa_pta): Do not run TODO_update_ssa.
4596 * gimple-pretty-print.c (pp_points_to_solution): Print split flags.
4597 * tree-ssa-alias.c (dump_points_to_solution): Likewise.
4599 2013-11-15 Richard Biener <rguenther@suse.de>
4601 * tree-loop-distribution.c (tree_loop_distribution): Make sure
4602 to distribute all stores.
4604 2013-11-15 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
4606 * doc/invoke.texi (-mabi=elfv1, -mabi=elfv2): Document.
4608 2013-11-15 Joseph Myers <joseph@codesourcery.com>
4610 * acinclude.m4 (GCC_GLIBC_VERSION_GTE_IFELSE): New configure macro.
4611 * configure.ac: Determine target_header_dir earlier.
4612 (--with-glibc-version): New configure option.
4613 Use GCC_GLIBC_VERSION_GTE_IFELSE in enable_gnu_unique_object,
4614 gcc_cv_libc_provides_ssp and gcc_cv_target_ldbl128 tests.
4615 * configure: Regenerate.
4616 * doc/install.texi (--enable-gnu-unique-object): Don't refer to
4617 native toolchains for default.
4618 (--with-glibc-version): Document.
4620 2013-11-15 Eric Botcazou <ebotcazou@adacore.com>
4622 * fold-const.c (fold_binary_loc) <comparisons>: Reuse local variable.
4624 2013-11-15 Uros Bizjak <ubizjak@gmail.com>
4626 * lto-streamer-in.c (input function): Call cgraph_create_node if
4627 cgraph_get_node failed.
4629 2013-11-14 Olivier Hainque <hainque@adacore.com>
4631 * cfgexpand.c (defer_stack_allocation): When optimization is enabled,
4632 defer allocation of DECL_IGNORED_P variables at toplevel unless really
4633 small. Factorize size threshold computation from the existing one.
4634 (expand_used_vars): Refine comment.
4636 2013-11-14 Cong Hou <congh@google.com>
4638 * tree-vectorizer.h (struct dr_with_seg_len): Remove the base
4639 address field as it can be obtained from dr. Rename the struct.
4640 * tree-vect-data-refs.c (comp_dr_with_seg_len_pair): Consider
4641 steps of data references during sort.
4642 (vect_prune_runtime_alias_test_list): Adjust with the change to
4643 struct dr_with_seg_len.
4644 * tree-vect-loop-manip.c (vect_create_cond_for_alias_checks):
4645 Adjust with the change to struct dr_with_seg_len.
4647 2013-11-14 Jeff Law <law@redhat.com>
4650 * basic-block.h (has_abnormal_outgoing_edge_p): Moved here from...
4651 * tree-inline.c (has_abnormal_outgoing_edge_p): Remove.
4652 * gimple-ssa-isolate-paths.c: Include tree-cfg.h.
4653 (find_implicit_erroneous_behaviour): If a block has abnormal outgoing
4654 edges, then ignore it. If the statement exhibiting erroneous
4655 behaviour ends basic blocks, with the exception of GIMPLE_RETURNs,
4656 then we can not optimize.
4657 (find_explicit_erroneous_behaviour): Likewise.
4659 2013-11-14 Andrew MacLeod <amacleod@redhat.com>
4661 * gimplify-me.h: New file. Add prototypes.
4662 * gimplify.h: Don't include gimple.h.
4663 (struct gimplify_hasher, struct gimplify_ctx, is_gimple_sizepos):
4664 Relocate from gimple.h.
4665 * gimple.h (struct gimplify_hasher, struct gimplify_ctx,
4666 is_gimple_sizepos): Move to gimplify.h.
4667 (gimplify_hasher::hash, gimplify_hasher::equal): Move to gimplify.c.
4668 (enum gsi_iterator_update): Move to gimple-iterator.h.
4669 * gimple-iterator.h (enum gsi_iterator_update): Relocate from gimple.h.
4670 * gimplify-me.c: New File.
4671 (force_gimple_operand_1, force_gimple_operand,
4672 force_gimple_operand_gsi_1, force_gimple_operand_gsi,
4673 gimple_regimplify_operands): Relocate from gimplify.c.
4674 * gimplify.c (force_gimple_operand_1, force_gimple_operand,
4675 force_gimple_operand_gsi_1, force_gimple_operand_gsi,
4676 gimple_regimplify_operands): Move to gimplify-me.c.
4677 (gimplify_hasher::hash, gimplify_hasher::equal): Relocate
4679 * Makefile.in (OBJS): Add gimplify-me.o
4680 * asan.c: Include only gimplify.h, gimplify-me.h, and/or gimple.h as
4682 * cfgloopmanip.c: Likewise.
4683 * cgraphunit.c: Likewise.
4684 * cilk-common.c: Likewise.
4685 * fold-const.c: Likewise.
4686 * function.c: Likewise.
4687 * gimple-expr.c: Likewise.
4688 * gimple-fold.c: Likewise.
4689 * gimple-ssa-strength-reduction.c: Likewise.
4690 * gimple.c: Likewise.
4691 * graphite-clast-to-gimple.c: Likewise.
4692 * graphite-sese-to-poly.c: Likewise.
4693 * ipa-prop.c: Likewise.
4694 * ipa-split.c: Likewise.
4696 * langhooks.c: Likewise.
4697 * omp-low.c: Likewise.
4699 * stor-layout.c: Likewise.
4700 * targhooks.c: Likewise.
4701 * trans-mem.c: Likewise.
4702 * tree-affine.c: Likewise.
4703 * tree-cfg.c: Likewise.
4704 * tree-cfgcleanup.c: Likewise.
4705 * tree-complex.c: Likewise.
4706 * tree-if-conv.c: Likewise.
4707 * tree-inline.c: Likewise.
4708 * tree-loop-distribution.c: Likewise.
4709 * tree-nested.c: Likewise.
4710 * tree-parloops.c: Likewise.
4711 * tree-predcom.c: Likewise.
4712 * tree-profile.c: Likewise.
4713 * tree-scalar-evolution.c: Likewise.
4714 * tree-sra.c: Likewise.
4715 * tree-ssa-address.c: Likewise.
4716 * tree-ssa-ccp.c: Likewise.
4717 * tree-ssa-dce.c: Likewise.
4718 * tree-ssa-forwprop.c: Likewise.
4719 * tree-ssa-ifcombine.c: Likewise.
4720 * tree-ssa-loop-im.c: Likewise.
4721 * tree-ssa-loop-ivopts.c: Likewise.
4722 * tree-ssa-loop-manip.c: Likewise.
4723 * tree-ssa-loop-niter.c: Likewise.
4724 * tree-ssa-loop-prefetch.c: Likewise.
4725 * tree-ssa-loop-unswitch.c: Likewise.
4726 * tree-ssa-math-opts.c: Likewise.
4727 * tree-ssa-phiopt.c: Likewise.
4728 * tree-ssa-phiprop.c: Likewise.
4729 * tree-ssa-pre.c: Likewise.
4730 * tree-ssa-propagate.c: Likewise.
4731 * tree-ssa-reassoc.c: Likewise.
4732 * tree-ssa-sccvn.c: Likewise.
4733 * tree-ssa-strlen.c: Likewise.
4734 * tree-ssa.c: Likewise.
4735 * tree-switch-conversion.c: Likewise.
4736 * tree-tailcall.c: Likewise.
4737 * tree-vect-data-refs.c: Likewise.
4738 * tree-vect-generic.c: Likewise.
4739 * tree-vect-loop-manip.c: Likewise.
4740 * tree-vect-loop.c: Likewise.
4741 * tree-vect-patterns.c: Likewise.
4742 * tree-vect-stmts.c: Likewise.
4745 * value-prof.c: Likewise.
4746 * config/aarch64/aarch64.c: Likewise.
4747 * config/alpha/alpha.c: Likewise.
4748 * config/darwin.c: Likewise.
4749 * config/i386/i386.c: Likewise.
4750 * config/ia64/ia64.c: Likewise.
4751 * config/mep/mep.c: Likewise.
4752 * config/mips/mips.c: Likewise.
4753 * config/rs6000/rs6000.c: Likewise.
4754 * config/s390/s390.c: Likewise.
4755 * config/sh/sh.c: Likewise.
4756 * config/sparc/sparc.c: Likewise.
4757 * config/spu/spu.c: Likewise.
4758 * config/stormy16/stormy16.c: Likewise.
4759 * config/tilegx/tilegx.c: Likewise.
4760 * config/tilepro/tilepro.c: Likewise.
4761 * config/xtensa/xtensa.c: Likewise.
4763 2013-11-14 Diego Novillo <dnovillo@google.com>
4765 * Makefile.in (PLUGIN_HEADERS): Add stringpool.h.
4767 2013-11-14 Diego Novillo <dnovillo@google.com>
4769 * tree.h: Include fold-const.h.
4770 (aggregate_value_p): Moved to function.h.
4771 (alloca_call_p): Moved to calls.h.
4772 (allocate_struct_function): Moved to function.h.
4773 (apply_tm_attr): Moved to attribs.h.
4774 (array_at_struct_end_p): Moved to expr.h.
4775 (array_ref_element_size): Moved to tree-dfa.h.
4776 (array_ref_low_bound): Moved to tree-dfa.h.
4777 (array_ref_up_bound): Moved to tree.h.
4778 (assemble_alias): Moved to cgraph.h.
4779 (bit_from_pos): Moved to stor-layout.h.
4780 (build_addr): Moved to tree-nested.h.
4781 (build_duplicate_type): Moved to tree-inline.h.
4782 (build_fold_addr_expr): Moved to fold-const.h.
4783 (build_fold_addr_expr_with_type): Moved to fold-const.h.
4784 (build_fold_addr_expr_with_type_loc): Moved to fold-const.h.
4785 (build_fold_indirect_ref): Moved to fold-const.h.
4786 (build_fold_indirect_ref_loc): Moved to fold-const.h.
4787 (build_personality_function): Moved to tree.h.
4788 (build_range_check): Moved to fold-const.h.
4789 (build_simple_mem_ref): Moved to fold-const.h.
4790 (build_simple_mem_ref_loc): Moved to fold-const.h.
4791 (build_tm_abort_call): Moved to trans-mem.h.
4792 (byte_from_pos): Moved to stor-layout.h.
4793 (call_expr_flags): Moved to calls.h.
4794 (can_move_by_pieces): Moved to expr.h.
4795 (categorize_ctor_elements): Moved to expr.h.
4796 (change_decl_assembler_name): Moved to gcc-symtab.h.
4797 (combine_comparisons): Moved to fold-const.h.
4798 (complete_ctor_at_level_p): Moved to tree.h.
4799 (component_ref_field_offset): Moved to tree-dfa.h.
4800 (compute_builtin_object_size): Moved to tree-object-size.h.
4801 (compute_record_mode): Moved to stor-layout.h.
4802 (constant_boolean_node): Moved to fold-const.h.
4803 (constructor_static_from_elts_p): Moved to varasm.h.
4804 (cxx11_attribute_p): Moved to attribs.h.
4805 (debug_body): Moved to print-tree.h.
4806 (debug_find_tree): Moved to tree-inline.h.
4807 (debug_fold_checksum): Moved to fold-const.h.
4808 (debug_head): Moved to print-tree.h.
4809 (debug_head): Moved to print-tree.h.
4810 (debug_raw): Moved to print-tree.h.
4811 (debug_tree): Moved to print-tree.h.
4812 (debug_vec_tree): Moved to print-tree.h.
4813 (debug_verbose): Moved to print-tree.h.
4814 (debug_verbose): Moved to print-tree.h.
4815 (decl_attributes): Moved to attribs.h.
4816 (decl_binds_to_current_def_p): Moved to varasm.h.
4817 (decl_default_tls_model): Moved to varasm.h.
4818 (decl_replaceable_p): Moved to varasm.h.
4819 (div_if_zero_remainder): Moved to fold-const.h.
4820 (double_int mem_ref_offset): Moved to fold-const.h.
4821 (dump_addr): Moved to print-tree.h.
4822 (element_precision): Moved to machmode.h.
4823 (expand_dummy_function_end): Moved to function.h.
4824 (expand_function_end): Moved to function.h.
4825 (expand_function_start): Moved to function.h.
4826 (expand_label): Moved to stmt.h.
4827 (expr_first): Moved to tree-iterator.h.
4828 (expr_last): Moved to tree-iterator.h.
4829 (finalize_size_functions): Moved to stor-layout.h.
4830 (finish_builtin_struct): Moved to stor-layout.h.
4831 (finish_record_layout): Moved to stor-layout.h.
4832 (fixup_signed_type): Moved to stor-layout.h.
4833 (fixup_unsigned_type): Moved to stor-layout.h.
4834 (flags_from_decl_or_type): Moved to calls.h.
4835 (fold): Moved to fold-const.h.
4836 (fold_abs_const): Moved to fold-const.h.
4837 (fold_binary): Moved to fold-const.h.
4838 (fold_binary_loc): Moved to fold-const.h.
4839 (fold_binary_to_constant): Moved to fold-const.h.
4840 (fold_build1): Moved to fold-const.h.
4841 (fold_build1_initializer_loc): Moved to fold-const.h.
4842 (fold_build1_loc): Moved to fold-const.h.
4843 (fold_build1_stat_loc): Moved to fold-const.h.
4844 (fold_build2): Moved to fold-const.h.
4845 (fold_build2_initializer_loc): Moved to fold-const.h.
4846 (fold_build2_loc): Moved to fold-const.h.
4847 (fold_build2_stat_loc): Moved to fold-const.h.
4848 (fold_build3): Moved to fold-const.h.
4849 (fold_build3_loc): Moved to fold-const.h.
4850 (fold_build3_stat_loc): Moved to fold-const.h.
4851 (fold_build_call_array): Moved to fold-const.h.
4852 (fold_build_call_array_initializer): Moved to fold-const.h.
4853 (fold_build_call_array_initializer_loc): Moved to fold-const.h.
4854 (fold_build_call_array_loc): Moved to fold-const.h.
4855 (fold_build_cleanup_point_expr): Moved to fold-const.h.
4856 (fold_convert): Moved to fold-const.h.
4857 (fold_convert_loc): Moved to fold-const.h.
4858 (fold_convertible_p): Moved to fold-const.h.
4859 (fold_defer_overflow_warnings): Moved to fold-const.h.
4860 (fold_deferring_overflow_warnings_p): Moved to fold-const.h.
4861 (fold_fma): Moved to fold-const.h.
4862 (fold_ignored_result): Moved to fold-const.h.
4863 (fold_indirect_ref): Moved to fold-const.h.
4864 (fold_indirect_ref_1): Moved to fold-const.h.
4865 (fold_indirect_ref_loc): Moved to fold-const.h.
4866 (fold_read_from_constant_string): Moved to fold-const.h.
4867 (fold_real_zero_addition_p): Moved to fold-const.h.
4868 (fold_single_bit_test): Moved to fold-const.h.
4869 (fold_strip_sign_ops): Moved to fold-const.h.
4870 (fold_ternary): Moved to fold-const.h.
4871 (fold_ternary_loc): Moved to fold-const.h.
4872 (fold_unary): Moved to tree-data-ref.h.
4873 (fold_unary_ignore_overflow): Moved to fold-const.h.
4874 (fold_unary_ignore_overflow_loc): Moved to fold-const.h.
4875 (fold_unary_loc): Moved to fold-const.h.
4876 (fold_unary_to_constant): Moved to fold-const.h.
4877 (fold_undefer_and_ignore_overflow_warnings): Moved to fold-const.h.
4878 (fold_undefer_overflow_warnings): Moved to fold-const.h.
4879 (folding_initializer): Moved to fold-const.h.
4880 (free_temp_slots): Moved to function.h.
4881 (generate_setjmp_warnings): Moved to function.h.
4882 (get_attribute_name): Moved to attribs.h.
4883 (get_identifier): Moved to stringpool.h.
4884 (get_identifier_with_length): Moved to stringpool.h.
4885 (get_inner_reference): Moved to tree.h.
4886 (gimple_alloca_call_p): Moved to calls.h.
4887 (gimplify_parameters): Moved to function.h.
4888 (highest_pow2_factor): Moved to expr.h.
4889 (indent_to): Moved to print-tree.h.
4890 (init_attributes): Moved to attribs.h.
4891 (init_dummy_function_start): Moved to function.h.
4892 (init_function_start): Moved to function.h.
4893 (init_inline_once): Moved to tree-inline.h.
4894 (init_object_sizes): Moved to tree-object-size.h.
4895 (init_temp_slots): Moved to function.h.
4896 (init_tree_optimization_optabs): Moved to optabs.h.
4897 (initialize_sizetypes): Moved to stor-layout.h.
4898 (initializer_constant_valid_for_bitfield_p): Moved to varasm.h.
4899 (initializer_constant_valid_p): Moved to varasm.h.
4900 (int_const_binop): Moved to fold-const.h.
4901 (internal_reference_types): Moved to stor-layout.h.
4902 (invert_tree_comparison): Moved to fold-const.h.
4903 (invert_truthvalue): Moved to fold-const.h.
4904 (invert_truthvalue_loc): Moved to fold-const.h.
4905 (is_tm_ending_fndecl): Moved to trans-mem.h.
4906 (is_tm_may_cancel_outer): Moved to trans-mem.h.
4907 (is_tm_pure): Moved to trans-mem.h.
4908 (is_tm_safe): Moved to trans-mem.h.
4909 (layout_decl): Moved to stor-layout.h.
4910 (layout_type): Moved to stor-layout.h.
4911 (lookup_attribute_spec): Moved to attribs.h.
4912 (make_accum_type): Moved to stor-layout.h.
4913 (make_decl_one_only): Moved to varasm.h.
4914 (make_decl_rtl): Moved to tree.h.
4915 (make_decl_rtl_for_debug): Moved to varasm.h.
4916 (make_fract_type): Moved to stor-layout.h.
4917 (make_or_reuse_sat_signed_accum_type): Moved to stor-layout.h.
4918 (make_or_reuse_sat_signed_fract_type): Moved to stor-layout.h.
4919 (make_or_reuse_sat_unsigned_accum_type): Moved to stor-layout.h.
4920 (make_or_reuse_sat_unsigned_fract_type): Moved to stor-layout.h.
4921 (make_or_reuse_signed_accum_type): Moved to stor-layout.h.
4922 (make_or_reuse_signed_fract_type): Moved to stor-layout.h.
4923 (make_or_reuse_unsigned_accum_type): Moved to stor-layout.h.
4924 (make_or_reuse_unsigned_fract_type): Moved to stor-layout.h.
4925 (make_range): Moved to fold-const.h.
4926 (make_range_step): Moved to fold-const.h.
4927 (make_sat_signed_accum_type): Moved to stor-layout.h.
4928 (make_sat_signed_fract_type): Moved to stor-layout.h.
4929 (make_sat_unsigned_accum_type): Moved to stor-layout.h.
4930 (make_sat_unsigned_fract_type): Moved to stor-layout.h.
4931 (make_signed_accum_type): Moved to stor-layout.h.
4932 (make_signed_fract_type): Moved to stor-layout.h.
4933 (make_signed_type): Moved to stor-layout.h.
4934 (make_unsigned_accum_type): Moved to stor-layout.h.
4935 (make_unsigned_fract_type): Moved to stor-layout.h.
4936 (make_unsigned_type): Moved to stor-layout.h.
4937 (mark_decl_referenced): Moved to varasm.h.
4938 (mark_referenced): Moved to varasm.h.
4939 (may_negate_without_overflow_p): Moved to fold-const.h.
4940 (maybe_get_identifier): Moved to stringpool.h.
4941 (merge_ranges): Moved to fold-const.h.
4942 (merge_weak): Moved to varasm.h.
4943 (mode_for_size_tree): Moved to stor-layout.h.
4944 (multiple_of_p): Moved to fold-const.h.
4945 (must_pass_in_stack_var_size): Moved to calls.h.
4946 (must_pass_in_stack_var_size_or_pad): Moved to calls.h.
4947 (native_encode_expr): Moved to fold-const.h.
4948 (native_interpret_expr): Moved to fold-const.h.
4949 (non_lvalue): Moved to fold-const.h.
4950 (non_lvalue_loc): Moved to fold-const.h.
4951 (normalize_offset): Moved to stor-layout.h.
4952 (normalize_rli): Moved to stor-layout.h.
4953 (notice_global_symbol): Moved to varasm.h.
4954 (omit_one_operand): Moved to fold-const.h.
4955 (omit_one_operand_loc): Moved to fold-const.h.
4956 (omit_two_operands): Moved to fold-const.h.
4957 (omit_two_operands_loc): Moved to fold-const.h.
4958 (operand_equal_p): Moved to tree-data-ref.h.
4959 (parse_input_constraint): Moved to stmt.h.
4960 (parse_output_constraint): Moved to stmt.h.
4961 (place_field): Moved to stor-layout.h.
4962 (pop_function_context): Moved to function.h.
4963 (pop_temp_slots): Moved to function.h.
4964 (pos_from_bit): Moved to stor-layout.h.
4965 (preserve_temp_slots): Moved to function.h.
4966 (print_node): Moved to print-tree.h.
4967 (print_node_brief): Moved to print-tree.h.
4968 (print_rtl): Moved to rtl.h.
4969 (process_pending_assemble_externals): Moved to varasm.h.
4970 (ptr_difference_const): Moved to fold-const.h.
4971 (push_function_context): Moved to function.h.
4972 (push_struct_function): Moved to function.h.
4973 (push_temp_slots): Moved to function.h.
4974 (record_tm_replacement): Moved to trans-mem.h.
4975 (relayout_decl): Moved to stor-layout.h.
4976 (resolve_asm_operand_names): Moved to stmt.h.
4977 (resolve_unique_section): Moved to varasm.h.
4978 (rli_size_so_far): Moved to stor-layout.h.
4979 (rli_size_unit_so_far): Moved to stor-layout.h.
4980 (round_down): Moved to fold-const.h.
4981 (round_down_loc): Moved to fold-const.h.
4982 (round_up): Moved to fold-const.h.
4983 (round_up_loc): Moved to fold-const.h.
4984 (set_decl_incoming_rtl): Moved to emit-rtl.h.
4985 (set_decl_rtl): Moved to tree.h.
4986 (set_min_and_max_values_for_integral_type): Moved to stor-layout.h.
4987 (set_user_assembler_name): Moved to varasm.h.
4988 (setjmp_call_p): Moved to calls.h.
4989 (size_binop): Moved to fold-const.h.
4990 (size_binop_loc): Moved to fold-const.h.
4991 (size_diffop): Moved to fold-const.h.
4992 (size_diffop_loc): Moved to fold-const.h.
4993 (size_int_kind): Moved to fold-const.h.
4994 (stack_protect_epilogue): Moved to function.h.
4995 (start_record_layout): Moved to stor-layout.h.
4996 (supports_one_only): Moved to varasm.h.
4997 (swap_tree_comparison): Moved to fold-const.h.
4998 (tm_malloc_replacement): Moved to trans-mem.h.
4999 (tree build_fold_addr_expr_loc): Moved to fold-const.h.
5000 (tree build_invariant_address): Moved to fold-const.h.
5001 (tree_binary_nonnegative_warnv_p): Moved to fold-const.h.
5002 (tree_binary_nonzero_warnv_p): Moved to fold-const.h.
5003 (tree_call_nonnegative_warnv_p): Moved to fold-const.h.
5004 (tree_expr_nonnegative_p): Moved to fold-const.h.
5005 (tree_expr_nonnegative_warnv_p): Moved to fold-const.h.
5006 (tree_output_constant_def): Moved to varasm.h.
5007 (tree_overlaps_hard_reg_set): Moved to stmt.h.
5008 (tree_single_nonnegative_warnv_p): Moved to fold-const.h.
5009 (tree_single_nonzero_warnv_p): Moved to fold-const.h.
5010 (tree_swap_operands_p): Moved to fold-const.h.
5011 (tree_unary_nonnegative_warnv_p): Moved to fold-const.h.
5012 (tree_unary_nonzero_warnv_p): Moved to fold-const.h.
5013 (update_alignment_for_field): Moved to stor-layout.h.
5014 (use_register_for_decl): Moved to function.h.
5015 (variable_size): Moved to rtl.h.
5016 (vector_type_mode): Moved to stor-layout.h.
5017 * cgraph.h: Corresponding changes.
5018 * emit-rtl.h: Corresponding changes.
5019 * expr.h: Corresponding changes.
5020 * function.h: Corresponding changes.
5021 * optabs.h: Corresponding changes.
5022 * trans-mem.h: Corresponding changes.
5023 Protect against multiple inclusion.
5024 * tree-inline.h: Corresponding changes.
5025 * tree-iterator.h: Corresponding changes.
5026 * tree-dfa.h: Include expr.h.
5027 * tree-ssanames.h: Include stringpool.h.
5028 * attribs.h: New file.
5029 * calls.h: New file.
5030 * fold-const.h: New file.
5031 * gcc-symtab.h: New file.
5032 * print-rtl.h: New file.
5033 * print-tree.h: New file.
5035 * stor-layout.h: New file.
5036 * strinpool.h: New file.
5037 * tree-nested.h: New file
5038 * tree-object-size.h: New file.
5039 * varasm.h: New file.
5041 2013-11-14 Diego Novillo <dnovillo@google.com>
5043 * alias.c: Include varasm.h.
5045 * asan.c: Include calls.h.
5046 Include stor-layout.h.
5048 * attribs.c: Include stringpool.h.
5050 Include stor-layout.h.
5051 * builtins.c: Include stringpool.h.
5052 Include stor-layout.h.
5055 Include tree-object-size.h.
5056 * calls.c: Include stor-layout.h.
5058 Include stringpool.h.
5060 * cfgexpand.c: Include stringpool.h.
5062 Include stor-layout.h.
5064 Include print-tree.h.
5065 * cgraph.c: Include varasm.h.
5067 Include print-tree.h.
5068 * cgraphclones.c: Include stringpool.h.
5071 Move inclusion of rtl.h earlier in the file.
5072 * cgraphunit.c: Include varasm.h.
5073 Include stor-layout.h.
5074 Include stringpool.h.
5075 * cilk-common.c: Include stringpool.h.
5076 Include stor-layout.h.
5077 * combine.c: Include stor-layout.h.
5078 * config/aarch64/aarch64-builtins.c: Include stor-layout.h.
5079 Include stringpool.h.
5081 * config/aarch64/aarch64.c: Include stringpool.h.
5082 Include stor-layout.h.
5085 * config/alpha/alpha.c: Include stor-layout.h.
5088 * config/arc/arc.c: Include varasm.h.
5089 Include stor-layout.h.
5090 Include stringpool.h.
5092 * config/arm/arm.c: Include stringpool.h.
5093 Include stor-layout.h.
5096 * config/avr/avr-c.c: Include stor-layout.h.
5097 * config/avr/avr-log.c: Include print-tree.h.
5098 * config/avr/avr.c: Include print-tree.h.
5100 Include stor-layout.h.
5101 Include stringpool.h.
5102 * config/bfin/bfin.c: Include varasm.h.
5104 * config/c6x/c6x.c: Include stor-layout.h.
5107 Include stringpool.h.
5108 * config/cr16/cr16.c: Include stor-layout.h.
5110 * config/cris/cris.c: Include varasm.h.
5111 Include stor-layout.h.
5114 * config/darwin.c: Include stringpool.h.
5116 Include stor-layout.h.
5117 * config/epiphany/epiphany.c: Include stor-layout.h.
5120 Include stringpool.h.
5121 * config/fr30/fr30.c: Include stor-layout.h.
5123 * config/frv/frv.c: Include varasm.h.
5124 Include stor-layout.h.
5125 Include stringpool.h.
5126 * config/h8300/h8300.c: Include stor-layout.h.
5129 Include stringpool.h.
5130 * config/i386/i386.c: Include stringpool.h.
5133 Include stor-layout.h.
5135 * config/i386/winnt-cxx.c: Include stringpool.h.
5137 * config/i386/winnt.c: Include stringpool.h.
5139 * config/ia64/ia64-c.c: Include stringpool.h.
5140 * config/ia64/ia64.c: Include stringpool.h.
5141 Include stor-layout.h.
5144 * config/iq2000/iq2000.c: Include stor-layout.h.
5147 * config/lm32/lm32.c: Include calls.h.
5148 * config/m32c/m32c.c: Include stor-layout.h.
5151 * config/m32r/m32r.c: Include stor-layout.h.
5153 Include stringpool.h.
5155 * config/m68k/m68k.c: Include calls.h.
5156 Include stor-layout.h.
5158 * config/mcore/mcore.c: Include stor-layout.h.
5160 Include stringpool.h.
5162 * config/mep/mep.c: Include varasm.h.
5164 Include stringpool.h.
5165 Include stor-layout.h.
5166 * config/microblaze/microblaze.c: Include varasm.h.
5167 Include stor-layout.h.
5169 * config/mips/mips.c: Include varasm.h.
5170 Include stringpool.h.
5171 Include stor-layout.h.
5173 * config/mmix/mmix.c: Include varasm.h.
5174 Include stor-layout.h.
5176 * config/mn10300/mn10300.c: Include stor-layout.h.
5179 * config/moxie/moxie.c: Include stor-layout.h.
5182 * config/msp430/msp430.c: Include stor-layout.h.
5184 * config/nds32/nds32.c: Include stor-layout.h.
5187 * config/pa/pa.c: Include stor-layout.h.
5188 Include stringpool.h.
5191 * config/pdp11/pdp11.c: Include stor-layout.h.
5194 * config/picochip/picochip.c: Include calls.h.
5195 Include stor-layout.h.
5196 Include stringpool.h.
5198 * config/rl78/rl78.c: Include varasm.h.
5199 Include stor-layout.h.
5201 * config/rs6000/rs6000-c.c: Include stor-layout.h.
5202 Include stringpool.h.
5203 * config/rs6000/rs6000.c: Include stringpool.h.
5204 Include stor-layout.h.
5206 Include print-tree.h.
5208 * config/rx/rx.c: Include varasm.h.
5209 Include stor-layout.h.
5211 * config/s390/s390.c: Include print-tree.h.
5212 Include stringpool.h.
5213 Include stor-layout.h.
5216 * config/score/score.c: Include stringpool.h.
5219 Include stor-layout.h.
5220 * config/sh/sh-c.c: Include stringpool.h.
5221 Include attribs.h.h.
5222 * config/sh/sh.c: Include stringpool.h.
5223 Include stor-layout.h.
5226 * config/sol2-c.c: Include stringpool.h.
5228 * config/sol2-cxx.c: Include stringpool.h.
5229 * config/sol2.c: Include stringpool.h.
5231 * config/sparc/sparc.c: Include stringpool.h.
5232 Include stor-layout.h.
5235 * config/spu/spu-c.c: Include stringpool.h.
5236 * config/spu/spu.c: Include stringpool.h.
5237 Include stor-layout.h.
5240 * config/stormy16/stormy16.c: Include stringpool.h.
5241 Include stor-layout.h.
5244 * config/tilegx/tilegx.c: Include stringpool.h.
5245 Include stor-layout.h.
5248 * config/tilepro/tilepro.c: Include stringpool.h.
5249 Include stor-layout.h.
5252 * config/v850/v850-c.c: Include stringpool.h.
5254 * config/v850/v850.c: Include stringpool.h.
5255 Include stor-layout.h.
5258 * config/vax/vax.c: Include calls.h.
5260 * config/vms/vms.c: Include stringpool.h.
5261 * config/vxworks.c: Include stringpool.h.
5262 * config/xtensa/xtensa.c: Include stringpool.h.
5263 Include stor-layout.h.
5266 * convert.c: Include stor-layout.h.
5267 * coverage.c: Include stringpool.h.
5268 Include stor-layout.h.
5269 * dbxout.c: Include varasm.h.
5270 Include stor-layout.h.
5271 * dojump.c: Include stor-layout.h.
5272 * dse.c: Include stor-layout.h.
5273 * dwarf2asm.c: Include stringpool.h.
5275 * dwarf2cfi.c: Include stor-layout.h.
5276 * dwarf2out.c: Include rtl.h.
5277 Include stringpool.h.
5278 Include stor-layout.h.
5282 Move inclusion of rtl.h earlier in the file.
5283 * emit-rtl.c: Include varasm.h.
5284 * except.c: Include stringpool.h.
5285 Include stor-layout.h.
5286 * explow.c: Include stor-layout.h.
5287 * expmed.c: Include stor-layout.h.
5288 * expr.c: Include stringpool.h.
5289 Include stor-layout.h.
5292 * final.c: Include varasm.h.
5293 * fold-const.c: Include stor-layout.h.
5295 Include tree-iterator.h.
5296 * function.c: Include stor-layout.h.
5298 Include stringpool.h.
5299 * genattrtab.c (write_header): Emit includes for varasm.h,
5300 stor-layout.h and calls.h.
5301 * genautomata.c (main): Likewise.
5302 * genemit.c: Likewise.
5303 * genopinit.c: Likewise.
5304 * genoutput.c (output_prologue): Likewise.
5305 * genpeep.c: Likewise.
5306 * genpreds.c (write_insn_preds_c): Likewise.
5307 * gengtype.c (open_base_files): Add stringpool.h.
5308 * gimple-expr.c: Include stringpool.h.
5309 Include stor-layout.h.
5310 * gimple-fold.c: Include stringpool.h.
5313 Include stor-layout.h.
5314 * gimple-low.c: Include tree-nested.h.
5316 * gimple-pretty-print.c: Include stringpool.h.
5317 * gimple-ssa-strength-reduction.c: Include stor-layout.h.
5319 * gimple-walk.c: Include stmt.h.
5320 * gimple.c: Include calls.h.
5322 Include stor-layout.h.
5323 * gimplify.c: Include stringpool.h.
5326 Include stor-layout.h.
5328 Include print-tree.h.
5330 * gimplify-me.c: Include stmt.h
5331 Include stor-layout.h
5332 * internal-fn.c: Include stor-layout.h.
5333 * ipa-devirt.c: Include print-tree.h.
5335 * ipa-inline-analysis.c: Include stor-layout.h.
5336 Include stringpool.h.
5337 Include print-tree.h.
5338 * ipa-inline.c: Include trans-mem.h.
5340 * ipa-prop.c: Include expr.h.
5341 Include stor-layout.h.
5342 Include print-tree.h.
5343 * ipa-pure-const.c: Include print-tree.h.
5345 * ipa-reference.c: Include calls.h.
5346 * ipa-split.c: Include stringpool.h.
5349 * ipa.c: Include calls.h.
5350 Include stringpool.h.
5351 * langhooks.c: Include stringpool.h.
5353 * lto-cgraph.c: Include stringpool.h.
5354 * lto-streamer-in.c: Include stringpool.h.
5355 * lto-streamer-out.c: Include stor-layout.h.
5356 Include stringpool.h.
5357 * omp-low.c: Include stringpool.h.
5358 Include stor-layout.h.
5360 * optabs.c: Include stor-layout.h.
5361 Include stringpool.h.
5363 * passes.c: Include varasm.h.
5364 * predict.c: Include calls.h.
5365 * print-rtl.c: Include print-tree.h.
5366 * print-tree.c: Include varasm.h.
5367 Include print-rtl.h.
5368 Include stor-layout.h.
5369 * realmpfr.c: Include stor-layout.h.
5370 * reg-stack.c: Include varasm.h.
5371 * sdbout.c: Include varasm.h.
5372 Include stor-layout.h.
5373 * simplify-rtx.c: Include varasm.h.
5374 * stmt.c: Include varasm.h.
5375 Include stor-layout.h.
5376 * stor-layout.c: Include stor-layout.h.
5377 Include stringpool.h.
5379 Include print-tree.h.
5380 * symtab.c: Include rtl.h.
5381 Include print-tree.h.
5385 * targhooks.c: Include stor-layout.h.
5387 * toplev.c: Include varasm.h.
5388 Include tree-inline.h.
5389 * trans-mem.c: Include calls.h.
5393 * tree-affine.c: Include expr.h.
5394 * tree-browser.c: Include print-tree.h.
5395 * tree-call-cdce.c: Include stor-layout.h.
5396 * tree-cfg.c: Include trans-mem.h.
5397 Include stor-layout.h.
5398 Include print-tree.h.
5399 * tree-complex.c: Include stor-layout.h.
5400 * tree-data-ref.c: Include expr.h.
5401 * tree-dfa.c: Include stor-layout.h.
5402 * tree-eh.c: Include expr.h.
5404 * tree-emutls.c: Include stor-layout.h.
5406 * tree-if-conv.c: Include stor-layout.h.
5407 * tree-inline.c: Include stor-layout.h.
5409 * tree-loop-distribution.c: Include stor-layout.h.
5410 * tree-nested.c: Include stringpool.h.
5411 Include stor-layout.h.
5412 * tree-object-size.c: Include tree-object-size.h.
5413 * tree-outof-ssa.c: Include stor-layout.h.
5414 * tree-parloops.c: Include stor-layout.h.
5415 Include tree-nested.h.
5416 * tree-pretty-print.c: Include stor-layout.h.
5418 * tree-profile.c: Include varasm.h.
5419 Include tree-nested.h.
5420 * tree-scalar-evolution.c: Include expr.h.
5421 * tree-sra.c: Include stor-layout.h.
5422 * tree-ssa-address.c: Include stor-layout.h.
5423 * tree-ssa-ccp.c: Include stor-layout.h.
5424 * tree-ssa-dce.c: Include calls.h.
5425 * tree-ssa-dom.c: Include stor-layout.h.
5426 * tree-ssa-forwprop.c: Include stor-layout.h.
5427 * tree-ssa-ifcombine.c: Include stor-layout.h.
5428 * tree-ssa-loop-ivopts.c: Include stor-layout.h.
5429 * tree-ssa-loop-niter.c: Include calls.h.
5431 * tree-ssa-loop-prefetch.c: Include stor-layout.h.
5432 * tree-ssa-math-opts.c: Include stor-layout.h.
5433 * tree-ssa-operands.c: Include stmt.h.
5434 Include print-tree.h.
5435 * tree-ssa-phiopt.c: Include stor-layout.h.
5436 * tree-ssa-reassoc.c: Include stor-layout.h.
5437 * tree-ssa-sccvn.c: Include stor-layout.h.
5438 * tree-ssa-sink.c: Include stor-layout.h.
5439 * tree-ssa-strlen.c: Include stor-layout.h.
5440 * tree-ssa-structalias.c: Include stor-layout.h.
5442 * tree-ssa-tail-merge.c: Include stor-layout.h.
5443 Include trans-mem.h.
5444 * tree-ssa-uncprop.c: Include stor-layout.h.
5445 * tree-ssa.c: Include stor-layout.h.
5446 * tree-ssanames.c: Include stor-layout.h.
5447 * tree-streamer-in.c: Include stringpool.h.
5448 * tree-streamer-out.c: Include stor-layout.h.
5449 * tree-switch-conversion.c: Include varasm.h.
5450 Include stor-layout.h.
5451 * tree-tailcall.c: Include stor-layout.h.
5452 * tree-vect-data-refs.c: Include stor-layout.h.
5453 * tree-vect-generic.c: Include stor-layout.h.
5454 * tree-vect-loop.c: Include stor-layout.h.
5455 * tree-vect-patterns.c: Include stor-layout.h.
5456 * tree-vect-slp.c: Include stor-layout.h.
5457 * tree-vect-stmts.c: Include stor-layout.h.
5458 * tree-vectorizer.c: Include stor-layout.h.
5459 * tree-vrp.c: Include stor-layout.h.
5461 * tree.c: Include stor-layout.h.
5465 * tsan.c: Include expr.h.
5466 * ubsan.c: Include stor-layout.h.
5467 Include stringpool.h.
5468 * value-prof.c: Include tree-nested.h.
5470 * var-tracking.c: Include varasm.h.
5471 Include stor-layout.h.
5472 * varasm.c: Include stor-layout.h.
5473 Include stringpool.h.
5474 Include gcc-symtab.h.
5476 * varpool.c: Include varasm.h.
5477 * vmsdbgout.c: Include varasm.h.
5478 * xcoffout.c: Include varasm.h.
5480 2013-11-14 Joern Rennecke <joern.rennecke@embecosm.com>
5482 * config/arc/arc.md (doloop_begin_i): Remove extra alignment;
5485 2013-11-14 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
5487 * config/rs6000/sysv4le.h (LINUX64_DEFAULT_ABI_ELFv2): Define.
5489 2013-11-14 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
5490 Alan Modra <amodra@gmail.com>
5492 * config/rs6000/rs6000.h (RS6000_SAVE_AREA): Handle ABI_ELFv2.
5493 (RS6000_SAVE_TOC): Remove.
5494 (RS6000_TOC_SAVE_SLOT): New macro.
5495 * config/rs6000/rs6000.c (rs6000_parm_offset): New function.
5496 (rs6000_parm_start): Use it.
5497 (rs6000_function_arg_advance_1): Likewise.
5498 (rs6000_emit_prologue): Use RS6000_TOC_SAVE_SLOT.
5499 (rs6000_emit_epilogue): Likewise.
5500 (rs6000_call_aix): Likewise.
5501 (rs6000_output_function_prologue): Do not save/restore r11
5502 around calling _mcount for ABI_ELFv2.
5504 2013-11-14 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
5505 Alan Modra <amodra@gmail.com>
5507 * config/rs6000/rs6000-protos.h (rs6000_reg_parm_stack_space):
5509 * config/rs6000/rs6000.h (RS6000_REG_SAVE): Remove.
5510 (REG_PARM_STACK_SPACE): Call rs6000_reg_parm_stack_space.
5511 * config/rs6000/rs6000.c (rs6000_parm_needs_stack): New function.
5512 (rs6000_function_parms_need_stack): Likewise.
5513 (rs6000_reg_parm_stack_space): Likewise.
5514 (rs6000_function_arg): Do not replace BLKmode by Pmode when
5515 returning a register argument.
5517 2013-11-14 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
5518 Michael Gschwind <mkg@us.ibm.com>
5520 * config/rs6000/rs6000.h (FP_ARG_MAX_RETURN): New macro.
5521 (ALTIVEC_ARG_MAX_RETURN): Likewise.
5522 (FUNCTION_VALUE_REGNO_P): Use them.
5523 * config/rs6000/rs6000.c (TARGET_RETURN_IN_MSB): Define.
5524 (rs6000_return_in_msb): New function.
5525 (rs6000_return_in_memory): Handle ELFv2 homogeneous aggregates.
5526 Handle aggregates of up to 16 bytes for ELFv2.
5527 (rs6000_function_value): Handle ELFv2 homogeneous aggregates.
5529 2013-11-14 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
5530 Michael Gschwind <mkg@us.ibm.com>
5532 * config/rs6000/rs6000.h (AGGR_ARG_NUM_REG): Define.
5533 * config/rs6000/rs6000.c (rs6000_aggregate_candidate): New function.
5534 (rs6000_discover_homogeneous_aggregate): Likewise.
5535 (rs6000_function_arg_boundary): Handle homogeneous aggregates.
5536 (rs6000_function_arg_advance_1): Likewise.
5537 (rs6000_function_arg): Likewise.
5538 (rs6000_arg_partial_bytes): Likewise.
5539 (rs6000_psave_function_arg): Handle BLKmode arguments.
5541 2013-11-14 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
5542 Michael Gschwind <mkg@us.ibm.com>
5544 * config/rs6000/rs6000.h (AGGR_ARG_NUM_REG): Define.
5545 * config/rs6000/rs6000.c (rs6000_aggregate_candidate): New function.
5546 (rs6000_discover_homogeneous_aggregate): Likewise.
5547 (rs6000_function_arg_boundary): Handle homogeneous aggregates.
5548 (rs6000_function_arg_advance_1): Likewise.
5549 (rs6000_function_arg): Likewise.
5550 (rs6000_arg_partial_bytes): Likewise.
5551 (rs6000_psave_function_arg): Handle BLKmode arguments.
5553 2013-11-14 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
5555 * config/rs6000/rs6000.c (machine_function): New member
5557 (rs6000_emit_prologue): Set r2_setup_needed if necessary.
5558 (rs6000_output_mi_thunk): Set r2_setup_needed.
5559 (rs6000_output_function_prologue): Output global entry point
5560 prologue and local entry point marker if needed for ABI_ELFv2.
5561 Output -mprofile-kernel code here.
5562 (output_function_profiler): Do not output -mprofile-kernel
5563 code here; moved to rs6000_output_function_prologue.
5564 (rs6000_file_start): Output ".abiversion 2" for ABI_ELFv2.
5566 (rs6000_emit_move): Do not handle dot symbols for ABI_ELFv2.
5567 (rs6000_output_function_entry): Likewise.
5568 (rs6000_assemble_integer): Likewise.
5569 (rs6000_elf_encode_section_info): Likewise.
5570 (rs6000_elf_declare_function_name): Do not create dot symbols
5571 or .opd section for ABI_ELFv2.
5573 (rs6000_trampoline_size): Update for ABI_ELFv2 trampolines.
5574 (rs6000_trampoline_init): Likewise.
5575 (rs6000_elf_file_end): Call file_end_indicate_exec_stack for ABI_ELFv2.
5577 (rs6000_call_aix): Handle ELFv2 indirect calls. Do not check
5578 for function descriptors in ABI_ELFv2.
5580 * config/rs6000/rs6000.md ("*call_indirect_aix<mode>"): Support
5581 on ABI_AIX only, not ABI_ELFv2.
5582 ("*call_value_indirect_aix<mode>"): Likewise.
5583 ("*call_indirect_elfv2<mode>"): New pattern.
5584 ("*call_value_indirect_elfv2<mode>"): Likewise.
5586 * config/rs6000/predicates.md ("symbol_ref_operand"): Do not
5587 check for function descriptors in ABI_ELFv2.
5588 ("current_file_function_operand"): Likewise.
5590 * config/rs6000/ppc-asm.h [__powerpc64__ && _CALL_ELF == 2]:
5592 (FUNC_NAME): Define ELFv2 variant.
5593 (JUMP_TARGET): Likewise.
5594 (FUNC_START): Likewise.
5595 (HIDDEN_FUNC): Likewise.
5596 (FUNC_END): Likeiwse.
5598 2013-11-14 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
5600 * config.gcc [powerpc*-*-* | rs6000-*-*]: Support --with-abi=elfv1
5601 and --with-abi=elfv2.
5602 * config/rs6000/option-defaults.h (OPTION_DEFAULT_SPECS): Add "abi".
5603 * config/rs6000/rs6000.opt (mabi=elfv1): New option.
5604 (mabi=elfv2): Likewise.
5605 * config/rs6000/rs6000-opts.h (enum rs6000_abi): Add ABI_ELFv2.
5606 * config/rs6000/linux64.h (DEFAULT_ABI): Do not hard-code to AIX_ABI
5608 (ELFv2_ABI_CHECK): New macro.
5609 (SUBSUBTARGET_OVERRIDE_OPTIONS): Use it to decide whether to set
5610 rs6000_current_abi to ABI_AIX or ABI_ELFv2.
5611 (GLIBC_DYNAMIC_LINKER64): Support ELFv2 ld.so version.
5612 * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Predefine
5613 _CALL_ELF and __STRUCT_PARM_ALIGN__ if appropriate.
5615 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Handle ABI_ELFv2.
5616 (debug_stack_info): Likewise.
5617 (rs6000_file_start): Treat ABI_ELFv2 the same as ABI_AIX.
5618 (rs6000_legitimize_tls_address): Likewise.
5619 (rs6000_conditional_register_usage): Likewise.
5620 (rs6000_emit_move): Likewise.
5621 (init_cumulative_args): Likewise.
5622 (rs6000_function_arg_advance_1): Likewise.
5623 (rs6000_function_arg): Likewise.
5624 (rs6000_arg_partial_bytes): Likewise.
5625 (rs6000_output_function_entry): Likewise.
5626 (rs6000_assemble_integer): Likewise.
5627 (rs6000_savres_strategy): Likewise.
5628 (rs6000_stack_info): Likewise.
5629 (rs6000_function_ok_for_sibcall): Likewise.
5630 (rs6000_emit_load_toc_table): Likewise.
5631 (rs6000_savres_routine_name): Likewise.
5632 (ptr_regno_for_savres): Likewise.
5633 (rs6000_emit_prologue): Likewise.
5634 (rs6000_emit_epilogue): Likewise.
5635 (rs6000_output_function_epilogue): Likewise.
5636 (output_profile_hook): Likewise.
5637 (output_function_profiler): Likewise.
5638 (rs6000_trampoline_size): Likewise.
5639 (rs6000_trampoline_init): Likewise.
5640 (rs6000_elf_output_toc_section_asm_op): Likewise.
5641 (rs6000_elf_encode_section_info): Likewise.
5642 (rs6000_elf_reloc_rw_mask): Likewise.
5643 (rs6000_elf_declare_function_name): Likewise.
5644 (rs6000_function_arg_boundary): Treat ABI_ELFv2 the same as ABI_AIX,
5645 except that rs6000_compat_align_parm is always assumed false.
5646 (rs6000_gimplify_va_arg): Likewise.
5647 (rs6000_call_aix): Update comment.
5648 (rs6000_sibcall_aix): Likewise.
5649 * config/rs6000/rs6000.md ("tls_gd_aix<TLSmode:tls_abi_suffix>"):
5650 Treat ABI_ELFv2 the same as ABI_AIX.
5651 ("*tls_gd_call_aix<TLSmode:tls_abi_suffix>"): Likewise.
5652 ("tls_ld_aix<TLSmode:tls_abi_suffix>"): Likewise.
5653 ("*tls_ld_call_aix<TLSmode:tls_abi_suffix>"): Likewise.
5654 ("load_toc_aix_si"): Likewise.
5655 ("load_toc_aix_di"): Likewise.
5657 ("call_value"): Likewise.
5658 ("*call_local_aix<mode>"): Likewise.
5659 ("*call_value_local_aix<mode>"): Likewise.
5660 ("*call_nonlocal_aix<mode>"): Likewise.
5661 ("*call_value_nonlocal_aix<mode>"): Likewise.
5662 ("*call_indirect_aix<mode>"): Likewise.
5663 ("*call_value_indirect_aix<mode>"): Likewise.
5664 ("sibcall"): Likewise.
5665 ("sibcall_value"): Likewise.
5666 ("*sibcall_aix<mode>"): Likewise.
5667 ("*sibcall_value_aix<mode>"): Likewise.
5668 * config/rs6000/predicates.md ("symbol_ref_operand"): Likewise.
5669 ("current_file_function_operand"): Likewise.
5671 2013-11-14 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
5673 * config/rs6000/rs6000.c (rs6000_arg_partial_bytes): Simplify logic
5674 by making use of the fact that for vector / floating point arguments
5675 passed both in VRs/FPRs and in the fixed parameter area, the partial
5676 bytes mechanism is in fact not used.
5678 2013-11-14 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
5680 * config/rs6000/rs6000.c (rs6000_psave_function_arg): New function.
5681 (rs6000_finish_function_arg): Likewise.
5682 (rs6000_function_arg): Use rs6000_psave_function_arg and
5683 rs6000_finish_function_arg to handle both vector and floating
5684 point arguments that are also passed in GPRs / the stack.
5686 2013-11-14 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
5688 * config/rs6000/rs6000.c (USE_FP_FOR_ARG_P): Remove TYPE argument.
5689 (USE_ALTIVEC_FOR_ARG_P): Likewise.
5690 (rs6000_darwin64_record_arg_advance_recurse): Update uses.
5691 (rs6000_function_arg_advance_1):Likewise.
5692 (rs6000_darwin64_record_arg_recurse): Likewise.
5693 (rs6000_function_arg): Likewise.
5694 (rs6000_arg_partial_bytes): Likewise.
5696 2013-11-14 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
5698 * config/rs6000/rs6000.c (rs6000_option_override_internal): Replace
5699 "DEFAULT_ABI != ABI_AIX" test by testing for ABI_V4 or ABI_DARWIN.
5700 (rs6000_savres_strategy): Likewise.
5701 (rs6000_return_addr): Likewise.
5702 (rs6000_emit_load_toc_table): Replace "DEFAULT_ABI != ABI_AIX" by
5703 testing for ABI_V4 (since ABI_DARWIN is impossible here).
5704 (rs6000_emit_prologue): Likewise.
5705 (legitimate_lo_sum_address_p): Simplify DEFAULT_ABI test.
5706 (rs6000_elf_declare_function_name): Remove duplicated test.
5707 * config/rs6000/rs6000.md ("load_toc_v4_PIC_1"): Explicitly test
5708 for ABI_V4 (instead of "DEFAULT_ABI != ABI_AIX" test).
5709 ("load_toc_v4_PIC_1_normal"): Likewise.
5710 ("load_toc_v4_PIC_1_476"): Likewise.
5711 ("load_toc_v4_PIC_1b"): Likewise.
5712 ("load_toc_v4_PIC_1b_normal"): Likewise.
5713 ("load_toc_v4_PIC_1b_476"): Likewise.
5714 ("load_toc_v4_PIC_2"): Likewise.
5715 ("load_toc_v4_PIC_3b"): Likewise.
5716 ("load_toc_v4_PIC_3c"): Likewise.
5717 * config/rs6000/rs6000.h (RS6000_REG_SAVE): Simplify DEFAULT_ABI test.
5718 (RS6000_SAVE_AREA): Likewise.
5719 (FP_ARG_MAX_REG): Likewise.
5720 (RETURN_ADDRESS_OFFSET): Likewise.
5721 * config/rs6000/sysv.h (TARGET_TOC): Test for ABI_V4 instead
5723 (SUBTARGET_OVERRIDE_OPTIONS): Likewise.
5724 (MINIMAL_TOC_SECTION_ASM_OP): Likewise.
5726 2013-11-14 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
5728 * config/rs6000/rs6000.c (rs6000_call_indirect_aix): Rename to ...
5729 (rs6000_call_aix): ... this. Handle both direct and indirect calls.
5730 Create call insn directly instead of via various gen_... routines.
5731 Mention special registers used by the call in CALL_INSN_FUNCTION_USAGE.
5732 (rs6000_sibcall_aix): New function.
5733 * config/rs6000/rs6000.md (TOC_SAVE_OFFSET_32BIT): Remove.
5734 (TOC_SAVE_OFFSET_64BIT): Likewise.
5735 (AIX_FUNC_DESC_TOC_32BIT): Likewise.
5736 (AIX_FUNC_DESC_TOC_64BIT): Likewise.
5737 (AIX_FUNC_DESC_SC_32BIT): Likewise.
5738 (AIX_FUNC_DESC_SC_64BIT): Likewise.
5739 ("call" expander): Call rs6000_call_aix.
5740 ("call_value" expander): Likewise.
5741 ("call_indirect_aix<ptrsize>"): Replace this pattern ...
5742 ("call_indirect_aix<ptrsize>_nor11"): ... and this pattern ...
5743 ("*call_indirect_aix<mode>"): ... by this insn pattern.
5744 ("call_value_indirect_aix<ptrsize>"): Replace this pattern ...
5745 ("call_value_indirect_aix<ptrsize>_nor11"): ... and this pattern ...
5746 ("*call_value_indirect_aix<mode>"): ... by this insn pattern.
5747 ("*call_nonlocal_aix32", "*call_nonlocal_aix64"): Replace by ...
5748 ("*call_nonlocal_aix<mode>"): ... this pattern.
5749 ("*call_value_nonlocal_aix32", "*call_value_nonlocal_aix64"): Replace
5750 ("*call_value_nonlocal_aix<mode>"): ... by this pattern.
5751 ("*call_local_aix<mode>"): New insn pattern.
5752 ("*call_value_local_aix<mode>"): Likewise.
5753 ("sibcall" expander): Call rs6000_sibcall_aix.
5754 ("sibcall_value" expander): Likewise. Move earlier in file.
5755 ("*sibcall_nonlocal_aix<mode>"): Replace by ...
5756 ("*sibcall_aix<mode>"): ... this pattern.
5757 ("*sibcall_value_nonlocal_aix<mode>"): Replace by ...
5758 ("*sibcall_value_aix<mode>"): ... this pattern.
5759 * config/rs6000/rs6000-protos.h (rs6000_call_indirect_aix): Remove.
5760 (rs6000_call_aix): Add prototype.
5761 (rs6000_sibcall_aix): Likewise.
5763 2013-11-14 Jakub Jelinek <jakub@redhat.com>
5766 * asan.c (asan_emit_stack_protection): Ensure -fsection-anchors
5767 isn't confused by the artificial decl.
5769 2013-11-14 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
5771 * config/rs6000/rs6000.c (rs6000_emit_prologue): Do not place a
5772 RTX_FRAME_RELATED_P marker on the UNSPEC_MOVESI_FROM_CR insn.
5773 Instead, add USEs of all modified call-saved CR fields to the
5774 insn storing the result to the stack slot, and provide an
5775 appropriate REG_FRAME_RELATED_EXPR for that insn.
5776 * config/rs6000/rs6000.md ("*crsave"): New insn pattern.
5777 * config/rs6000/predicates.md ("crsave_operation"): New predicate.
5779 2013-11-14 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
5780 Alan Modra <amodra@gmail.com>
5782 * function.c (assign_parms): Use all.reg_parm_stack_space instead
5783 of re-evaluating REG_PARM_STACK_SPACE target macro.
5784 (locate_and_pad_parm): New parameter REG_PARM_STACK_SPACE. Use it
5785 instead of evaluating target macro REG_PARM_STACK_SPACE every time.
5786 (assign_parm_find_entry_rtl): Update call.
5787 * calls.c (initialize_argument_information): Update call.
5788 (emit_library_call_value_1): Likewise.
5789 * expr.h (locate_and_pad_parm): Update prototype.
5791 2013-11-14 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
5793 * calls.c (store_unaligned_arguments_into_pseudos): Skip PARALLEL
5796 2013-11-14 DJ Delorie <dj@redhat.com>
5798 * config/rx/rx.c (rx_mode_dependent_address_p): Allow offsets up
5801 2013-11-14 Jeff Law <law@redhat.com>
5803 * tree-ssa-threadedge.c (thread_through_normal_block): Only push the
5804 EDGE_START_JUMP_THREAD marker if the jump threading path is empty.
5806 2013-11-14 James Greenhalgh <james.greenhalgh@arm.com>
5808 * doc/invoke.texi: Update documentation for AArch64's -mcpu
5811 2013-11-14 James Greenhalgh <james.greenhalgh@arm.com>
5813 * config/aarch64/aarch64-cores.def (example-1): Remove.
5814 (example-2): Likewise.
5815 * config/aarch64/aarch64-tune.md: Regenerate.
5816 * config/aarch64/aarch64.md: Do not include "large.md" or "small.md".
5817 (generic_sched): Remove "large", "small".
5818 * config/aarch64/large.md: Delete.
5819 * config/aarch64/small.md: Delete.
5821 2013-11-14 James Greenhalgh <james.greenhalgh@arm.com>
5823 * config/aarch64/aarch64-cores.def (cortex-a57): Tune for cortexa15.
5824 * config/aarch64/aarch64-tune.md: Regenerate.
5825 * config/aarch64/aarch64.md: Include cortex-a15 pipeline model.
5826 (generic_sched): "no" if we are tuning for cortexa15.
5827 * config/arm/cortex-a15.md: Include cortex-a15-neon.md by
5830 2013-11-14 James Greenhalgh <james.greenhalgh@arm.com>
5832 * config/aarch64/aarch64-arches.def (armv8-a): Tune for cortex-a53.
5833 * config/aarch64/aarch64.md: Do not include aarch64-generic.md.
5834 * config/aarch64/aarch64.c (aarch64_tune): Initialize to cortexa53.
5835 (all_cores): Use cortexa53 when tuning for "generic".
5836 (aarch64_override_options): Fix comment.
5837 * config/aarch64/aarch64.h (TARGET_CPU_DEFAULT): Set to cortexa53.
5838 * config/aarch64/aarch64-generic.md: Delete.
5840 2013-11-14 James Greenhalgh <james.greenhalgh@arm.com>
5842 * config/aarch64/aarch64.c (all_architectures): Remove "generic".
5844 2013-11-14 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
5846 * config/aarch64/aarch64.c: Include aarch-cost-tables.h.
5847 (generic_rtx_cost_table): Remove.
5848 (aarch64_rtx_costs): Use fields from cpu_cost_table.
5849 * config/aarch64/aarch64-protos.h (tune_params): Use cpu_cost_table for
5851 (cpu_rtx_cost_table): Remove.
5853 2013-11-14 Julian Brown <julian@codesourcery.com>
5854 Joey Ye <joey.ye@arm.com>
5856 * config/arm/arm.c (arm_cortex_m_branch_cost): New.
5857 (arm_v7m_tune): New.
5858 (arm_slowmul_tune, arm_fastmul_tune, arm_strongarm_tune, arm_9e_tune,
5859 arm_v6t2_tune, arm_cortex_tune, arm_cortex_a15_tune,
5860 arm_cortex_a5_tune, arm_v6m_tune): Add comments for Sched adj cost.
5861 * config/arm/arm-cores.def (cortex-m4, cortex-m3): Use arm_v7m_tune.
5863 2013-11-14 Kirill Yukhin <kirill.yukhin@intel.com>
5866 * config/ia64/ia64.c (ia64_split_tmode_move): Relax `dead'
5869 2013-11-14 Jakub Jelinek <jakub@redhat.com>
5870 Uros Bizjak <ubizjak@gmail.com>
5873 * config/i386/i386.md (*anddi_2): Only allow CCZmode if
5874 operands[2] satisfies_constraint_Z that might have bit 31 set.
5876 2013-11-13 Jeff Law <law@redhat.com>
5878 PR tree-optimization/59102
5879 * gimple-ssa-isolate-paths.c
5880 (insert_trap_and_remove_trailing_statments): Ensure STMT is a
5881 gimple assignment before looking at gimple_assign_lhs.
5883 2013-11-13 Vladimir Makarov <vmakarov@redhat.com>
5885 * ira.c: Add comment about threads at the top of file.
5887 2013-11-13 Vladimir Makarov <vmakarov@redhat.com>
5889 * ira-color.c (coalesce_allocnos): Don't allocate and free
5892 2013-11-14 Tom de Vries <tom@codesourcery.com>
5894 * tree-ssa-tail-merge.c (gimple_equal_p): Add test for structural
5895 equality for GIMPLE_ASSIGN.
5897 2013-11-14 Tom de Vries <tom@codesourcery.com>
5899 * tree-ssa-tail-merge.c (gimple_operand_equal_value_p): Factor new
5901 (gimple_equal_p): ... here.
5903 2013-11-14 Tom de Vries <tom@codesourcery.com>
5905 * trans-mem.c (is_tm_ending): New function.
5906 * gimple.h (is_tm_ending): Declare.
5907 * tree-ssa-tail-merge.c (gimple_equal_p): Remove test on
5909 (find_duplicate): Use is_tm_ending instead of is_tm_ending_fndecl.
5911 2013-11-14 Tom de Vries <tom@codesourcery.com>
5913 * tree-ssa-tail-merge.c (gimple_equal_p): Remove equal variable.
5915 2013-11-13 Andrew MacLeod <amacleod@redhat.com>
5917 * gimple-walk.h: New File. Relocate prototypes from gimple.h.
5918 (struct walk_stmt_info): Relocate here from gimple.h.
5919 * gimple-iterator.h: New File. Relocate prototypes from gimple.h.
5920 (struct gimple_stmt_iterator_d): Relocate here from gimple.h.
5921 (gsi_start_1, gsi_none, gsi_start_bb, gsi_last_1, gsi_last_bb,
5922 gsi_end_p, gsi_one_before_end_p, gsi_next, gsi_prev, gsi_stmt,
5923 gsi_after_labels, gsi_next_nondebug, gsi_prev_nondebug,
5924 gsi_start_nondebug_bb, gsi_start_nondebug_after_labels_bb,
5925 gsi_last_nondebug_bb, gsi_bb, gsi_seq): Relocate here from gimple.h.
5926 * gimple.h (struct gimple_stmt_iterator_d): Move to gimple-iterator.h.
5927 (gsi_start_1, gsi_none, gsi_start_bb, gsi_last_1, gsi_last_bb,
5928 gsi_end_p, gsi_one_before_end_p, gsi_next, gsi_prev, gsi_stmt,
5929 gsi_after_labels, gsi_next_nondebug, gsi_prev_nondebug,
5930 gsi_start_nondebug_bb, gsi_start_nondebug_after_labels_bb,
5931 gsi_last_nondebug_bb, gsi_bb, gsi_seq): Move to gimple-iterator.h.
5932 (struct walk_stmt_info): Move to gimple-walk.h.
5933 (gimple_seq_set_location): Move to gimple.c
5934 * gimple-walk.c: New File.
5935 (walk_gimple_seq_mod, walk_gimple_seq, walk_gimple_asm, walk_gimple_op,
5936 walk_gimple_stmt, get_base_loadstore, walk_stmt_load_store_addr_ops,
5937 walk_stmt_load_store_ops): Relocate here from gimple.c.
5938 * gimple-iterator.c: Include gimple-iterator.h.
5939 * gimple.c (walk_gimple_seq_mod, walk_gimple_seq, walk_gimple_asm,
5940 walk_gimple_op, walk_gimple_stmt, get_base_loadstore,
5941 walk_stmt_load_store_addr_ops, walk_stmt_load_store_ops): Move to
5943 (gimple_seq_set_location): Relocate from gimple.h.
5944 * tree-phinodes.h (set_phi_nodes): Move to tree-phinodes.c.
5945 * tree-phinodes.c (set_phi_nodes): Relocate from tree-phinodes.h.
5946 * gengtype.c (open_base_files): Add gimple-iterator.h to include list.
5947 * Makefile.in (OBJS): Add gimple-walk.o
5948 * asan.c: Update Include list as required for gimple-iterator.h and
5950 * cfgexpand.c: Likewise.
5951 * cfgloop.c: Likewise.
5952 * cfgloopmanip.c: Likewise.
5953 * cgraph.c: Likewise.
5954 * cgraphbuild.c: Likewise.
5955 * cgraphunit.c: Likewise.
5956 * gimple-fold.c: Likewise.
5957 * gimple-low.c: Likewise.
5958 * gimple-pretty-print.c: Likewise.
5959 * gimple-ssa-isolate-paths.c: Likewise.
5960 * gimple-ssa-strength-reduction.c: Likewise.
5961 * gimple-streamer-in.c: Likewise.
5962 * gimple-streamer-out.c: Likewise.
5963 * gimplify.c: Likewise.
5964 * graphite-blocking.c: Likewise.
5965 * graphite-clast-to-gimple.c: Likewise.
5966 * graphite-dependences.c: Likewise.
5967 * graphite-interchange.c: Likewise.
5968 * graphite-optimize-isl.c: Likewise.
5969 * graphite-poly.c: Likewise.
5970 * graphite-scop-detection.c: Likewise.
5971 * graphite-sese-to-poly.c: Likewise.
5972 * graphite.c: Likewise.
5973 * ipa-inline-analysis.c: Likewise.
5974 * ipa-profile.c: Likewise.
5975 * ipa-prop.c: Likewise.
5976 * ipa-pure-const.c: Likewise.
5977 * ipa-split.c: Likewise.
5978 * lto-streamer-in.c: Likewise.
5979 * lto-streamer-out.c: Likewise.
5980 * omp-low.c: Likewise.
5981 * predict.c: Likewise.
5982 * profile.c: Likewise.
5984 * tracer.c: Likewise.
5985 * trans-mem.c: Likewise.
5986 * tree-call-cdce.c: Likewise.
5987 * tree-cfg.c: Likewise.
5988 * tree-cfgcleanup.c: Likewise.
5989 * tree-complex.c: Likewise.
5990 * tree-data-ref.c: Likewise.
5991 * tree-dfa.c: Likewise.
5992 * tree-eh.c: Likewise.
5993 * tree-emutls.c: Likewise.
5994 * tree-if-conv.c: Likewise.
5995 * tree-inline.c: Likewise.
5996 * tree-into-ssa.c: Likewise.
5997 * tree-loop-distribution.c: Likewise.
5998 * tree-nested.c: Likewise.
5999 * tree-nrv.c: Likewise.
6000 * tree-object-size.c: Likewise.
6001 * tree-outof-ssa.c: Likewise.
6002 * tree-parloops.c: Likewise.
6003 * tree-predcom.c: Likewise.
6004 * tree-profile.c: Likewise.
6005 * tree-scalar-evolution.c: Likewise.
6006 * tree-sra.c: Likewise.
6007 * tree-ssa-ccp.c: Likewise.
6008 * tree-ssa-coalesce.c: Likewise.
6009 * tree-ssa-copy.c: Likewise.
6010 * tree-ssa-copyrename.c: Likewise.
6011 * tree-ssa-dce.c: Likewise.
6012 * tree-ssa-dom.c: Likewise.
6013 * tree-ssa-dse.c: Likewise.
6014 * tree-ssa-forwprop.c: Likewise.
6015 * tree-ssa-ifcombine.c: Likewise.
6016 * tree-ssa-live.c: Likewise.
6017 * tree-ssa-loop-ch.c: Likewise.
6018 * tree-ssa-loop-im.c: Likewise.
6019 * tree-ssa-loop-ivcanon.c: Likewise.
6020 * tree-ssa-loop-ivopts.c: Likewise.
6021 * tree-ssa-loop-manip.c: Likewise.
6022 * tree-ssa-loop-niter.c: Likewise.
6023 * tree-ssa-loop-prefetch.c: Likewise.
6024 * tree-ssa-loop.c: Likewise.
6025 * tree-ssa-math-opts.c: Likewise.
6026 * tree-ssa-phiopt.c: Likewise.
6027 * tree-ssa-phiprop.c: Likewise.
6028 * tree-ssa-pre.c: Likewise.
6029 * tree-ssa-propagate.c: Likewise.
6030 * tree-ssa-reassoc.c: Likewise.
6031 * tree-ssa-sink.c: Likewise.
6032 * tree-ssa-strlen.c: Likewise.
6033 * tree-ssa-structalias.c: Likewise.
6034 * tree-ssa-tail-merge.c: Likewise.
6035 * tree-ssa-ter.c: Likewise.
6036 * tree-ssa-threadedge.c: Likewise.
6037 * tree-ssa-threadupdate.c: Likewise.
6038 * tree-ssa-uncprop.c: Likewise.
6039 * tree-ssa-uninit.c: Likewise.
6040 * tree-ssa.c: Likewise.
6041 * tree-stdarg.c: Likewise.
6042 * tree-switch-conversion.c: Likewise.
6043 * tree-tailcall.c: Likewise.
6044 * tree-vect-data-refs.c: Likewise.
6045 * tree-vect-generic.c: Likewise.
6046 * tree-vect-loop-manip.c: Likewise.
6047 * tree-vect-loop.c: Likewise.
6048 * tree-vect-patterns.c: Likewise.
6049 * tree-vect-slp.c: Likewise.
6050 * tree-vect-stmts.c: Likewise.
6051 * tree-vectorizer.c: Likewise.
6052 * tree-vrp.c: Likewise.
6055 * value-prof.c: Likewise.
6056 * vtable-verify.c: Likewise.
6058 2013-11-13 Steven Bosscher <steven@gcc.gnu.org>
6060 * gimple-ssa-isolate-paths.c (pass_isolate_erroneous_paths): Comment
6063 2013-11-13 Jeff Law <law@redhat.com>
6065 * PR middle-end/59119
6066 * gimple-ssa-isolate-paths.c (find_implicit_erroneous_behaviour): New
6067 function, extracted from gimple_ssa_isolate_erroneous_paths.
6068 (find_explicit_erroneous_behaviour): Similarly.
6069 (insert_trap_and_remove_trailing_statements): Remove statements
6072 2013-11-13 Steven Bosscher <steven@gcc.gnu.org>
6074 * cfgrtl.c (can_fallthru): Reorder code to move tablejump check up.
6075 Make that check explicit. BB_HEAD cannot be NULL, remove check for it.
6076 * haifa-sched.c (ready_remove_first_dispatch): Check INSN_P before
6077 looking at INSN_CODE.
6078 * reload1.c (delete_dead_insn) Do not expect JUMP_TABLE_DATA to be an
6079 active_insn_p object, respect basic block boundaries.
6080 * reorg.c (follow_jumps): Use invariant that JUMP_TABLE_DATA always
6081 follows immediately after the jump table data label.
6082 * config/nds32/nds32.c (nds32_output_casesi_pc_relative): Likewise.
6083 * config/sh/sh.c (barrier_align): Likewise. Rearrange code such
6084 that JUMP_TABLE_DATA is not expected to be an active_insn_p object.
6086 2013-11-13 Teresa Johnson <tejohnson@google.com>
6089 * predict.c (drop_profile): Error is currently too strict.
6090 (handle_missing_profiles): Pass call_count to drop_profile.
6092 2013-11-13 Teresa Johnson <tejohnson@google.com>
6095 * ipa-inline.c (edge_badness): Fix overflow.
6097 2013-11-13 Vladimir Makarov <vmakarov@redhat.com>
6099 PR rtl-optimization/59036
6100 * ira-color.c (struct allocno_color_data): Add new members
6101 first_thread_allocno, next_thread_allocno, thread_freq.
6102 (sorted_copies): New static var.
6103 (allocnos_conflict_by_live_ranges_p, copy_freq_compare_func): Move up.
6104 (allocno_thread_conflict_p, merge_threads)
6105 (form_threads_from_copies, form_threads_from_bucket)
6106 (form_threads_from_colorable_allocno, init_allocno_threads): New
6108 (bucket_allocno_compare_func): Add comparison by thread frequency
6110 (add_allocno_to_ordered_bucket): Rename to
6111 add_allocno_to_ordered_colorable_bucket. Remove parameter.
6112 (push_only_colorable): Call form_threads_from_bucket.
6113 (color_pass): Call init_allocno_threads. Use
6114 consideration_allocno_bitmap instead of coloring_allocno_bitmap
6115 for nuillify allocno color data.
6116 (ira_initiate_assign, ira_finish_assign): Allocate/free sorted_copies.
6117 (coalesce_allocnos): Use static sorted copies.
6119 2013-11-13 Jakub Jelinek <jakub@redhat.com>
6121 * passes.c (execute_todo): Don't call do_per_function if
6123 (execute_one_ipa_transform_pass, execute_one_pass): Don't call
6124 execute_function_dump if dump_file is NULL.
6126 2013-11-13 Martin Jambor <mjambor@suse.cz>
6128 * cgraph.c (cgraph_get_create_node): Do what
6129 cgraph_get_create_real_symbol_node used to do.
6130 (cgraph_get_create_real_symbol_node): Removed. Changed all users to
6131 call cgraph_get_create_node.
6132 * cgraph.h (cgraph_get_create_real_symbol_node): Removed.
6133 * lto-streamer-in.c (input_function): Call cgraph_get_node instead of
6134 cgraph_get_create_node. Assert we get a node.
6136 2013-11-13 Tejas Belagod <tejas.belagod@arm.com>
6138 * config/aarch64/aarch64-simd.md (vec_extract): New.
6140 2013-11-13 Tejas Belagod <tejas.belagod@arm.com>
6142 * config/aarch64/aarch64-simd.md (vec_set<mode>): Add w -> w option to
6145 2013-11-13 Eric Botcazou <ebotcazou@adacore.com>
6147 * cfgexpand.c (expand_used_vars): Allocate space for partitions based
6148 on PARM_DECLs or RESULT_DECLs only if they are ignored for debug info
6149 or if optimization is enabled.
6150 * tree-ssa-coalesce.c (coalesce_ssa_name): If optimization is disabled,
6151 require that all the names based on a PARM_DECL or a RESULT_DECL that
6152 isn't ignored for debug info be coalesced.
6154 2013-11-13 Jan-Benedict Glaw <jbglaw@lug-owl.de>
6156 * config/c6x/c6x.c: Include "gimple-expr.h".
6158 2013-11-13 Richard Biener <rguenther@suse.de>
6160 * gimple-streamer-out.c (output_gimple_stmt): Also wrap
6161 decls in ADDR_EXPR operands inside a MEM_REF and optimize that.
6162 * gimple-streamer-in.c (input_gimple_stmt): Remove now dead code
6163 dealing with type mismatches inside component reference chains.
6165 2013-11-13 Marc Glisse <marc.glisse@inria.fr>
6167 PR tree-optimization/59077
6168 * ipa-pure-const.c (better_state): Update *state.
6170 2013-11-13 Christophe Lyon <christophe.lyon@linaro.org>
6172 * config/aarch64/aarch64.h (FRAME_GROWS_DOWNWARD): Define to 1.
6173 * config/aarch64/aarch64.c (aarch64_initial_elimination_offset):
6174 Update offset calculations.
6176 2013-11-13 Eric Botcazou <ebotcazou@adacore.com>
6179 * dwarf2out.c (add_byte_size_attribute): Also use int_size_in_bytes
6180 for fields. Do not add the attribute if the size is negative.
6182 2013-11-13 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
6184 * config/arm/arm.c: Include aarch-cost-tables.h.
6185 (generic_extra_costs): Move from here...
6186 * config/arm/aarch-cost-tables.h: ... To here. New file.
6188 2013-11-13 Alexander Ivchenko <alexander.ivchenko@intel.com>
6189 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
6190 Sergey Lega <sergey.s.lega@intel.com>
6191 Anna Tikhonova <anna.tikhonova@intel.com>
6192 Ilya Tocar <ilya.tocar@intel.com>
6193 Andrey Turetskiy <andrey.turetskiy@intel.com>
6194 Ilya Verbin <ilya.verbin@intel.com>
6195 Kirill Yukhin <kirill.yukhin@intel.com>
6196 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
6198 * config/i386/i386.c (ix86_print_operand): Support z-masking.
6199 * config/i386/predicate.md (const_0_to_4_operand): New.
6200 (const_0_to_5_operand): Ditto.
6201 * config/i386/sse.md (UNSPEC_COMPRESS): New.
6202 (UNSPEC_COMPRESS_STORE): Ditto.
6203 (UNSPEC_EXPAND): Ditto.
6204 (UNSPEC_EMBEDDED_ROUNDING): Ditto.
6205 (define_mode_attr ssescalarsize): Ditto.
6206 (avx512f_load<mode>_mask): Ditto.
6207 (avx512f_store<mode>_mask): Ditto.
6208 (avx512f_storedqu<mode>_mask): Ditto.
6209 (avx512f_vmcmp<mode>3_mask): Ditto.
6210 (avx512f_fmadd_<mode>_mask): Ditto.
6211 (avx512f_fmadd_<mode>_mask3): Ditto.
6212 (avx512f_fmsub_<mode>_mask): Ditto.
6213 (avx512f_fmsub_<mode>_mask3): Ditto.
6214 (avx512f_fnmadd_<mode>_mask): Ditto.
6215 (avx512f_fnmadd_<mode>_mask3): Ditto.
6216 (avx512f_fnmsub_<mode>_mask): Ditto.
6217 (avx512f_fnmsub_<mode>_mask3): Ditto.
6218 (avx512f_fmaddsub_<mode>_mask): Ditto.
6219 (avx512f_fmaddsub_<mode>_mask3): Ditto.
6220 (avx512f_fmsubadd_<mode>_mask): Ditto.
6221 (avx512f_fmsubadd_<mode>_mask3): Ditto.
6222 (vec_unpacku_float_lo_v16si): Ditto.
6223 (avx512f_vextract<shuffletype>32x4_mask): Ditto.
6224 (avx512f_vextract<shuffletype>32x4_1_maskm): Ditto.
6225 (avx512f_vextract<shuffletype>64x4_mask): Ditto.
6226 (vec_extract_lo_<mode>_maskm): Ditto.
6227 (vec_extract_hi_<mode>_maskm): Ditto.
6228 (avx512f_vternlog<mode>_mask): Ditto.
6229 (avx512f_shufps512_mask): Ditto.
6230 (avx512f_fixupimm<mode>_mask): Ditto.
6231 (avx512f_shufpd512_mask): Ditto.
6232 (avx512f_<code><pmov_src_lower><mode>2_mask): Ditto.
6233 (avx512f_<code>v8div16qi2_mask/trunc): Ditto.
6234 (*avx512f_<code>v8div16qi2_store_mask): Ditto.
6235 (ashr<mode>3<mask_name>): Ditto.
6236 (avx512f_vinsert<shuffletype>32x4_mask): Ditto.
6237 (avx512f_vinsert<shuffletype>64x4_mask): Ditto.
6238 (avx512f_shuf_<shuffletype>64x2_mask): Ditto.
6239 (avx512f_shuf_<shuffletype>32x4_mask): Ditto.
6240 (avx512f_pshufdv3_mask): Ditto.
6241 (avx512f_perm<mode>_mask): Ditto.
6242 (avx512f_vpermi2var<mode>3_mask): Ditto.
6243 (avx512f_vpermt2var<mode>3_mask): Ditto.
6244 (avx512f_compress<mode>_mask): Ditto.
6245 (avx512f_compressstore<mode>_mask): Ditto.
6246 (avx512f_expand<mode>_mask): Ditto.
6247 (<sse>_loadu<ssemodesuffix><avxsizesuffix><mask_name>): Extend
6249 (avx512f_storeu<ssemodesuffix>512_mask): Ditto.
6250 (<plusminus_insn><mode>3<mask_name>): Ditto.
6251 (*<plusminus_insn><mode>3<mask_name>): Ditto.
6252 (mul<mode>3<mask_name>): Ditto.
6253 (*mul<mode>3<mask_name>): Ditto.
6254 (<sse>_div<mode>3<mask_name>): Ditto.
6255 (<mask_codefor>rcp14<mode><mask_name>): Ditto.
6256 (<sse>_sqrt<mode>2<mask_name>): Ditto.
6257 (<mask_codefor>rsqrt14<mode><mask_name>): Ditto.
6258 (<code><mode>3<mask_name>/smaxmin): Ditto.
6259 (*<code><mode>3_finite<mask_name>/smaxmin): Ditto.
6260 (*<code><mode>3<mask_name>/smaxmin): Ditto.
6261 (float<sseintvecmodelower><mode>2<mask_name>): Ditto.
6262 (ufloatv16siv16sf2<mask_name>): Ditto.
6263 (<mask_codefor>avx512f_fix_notruncv16sfv16si<mask_name>): Ditto.
6264 (<mask_codefor>avx512f_ufix_notruncv16sfv16si<mask_name>): Ditto.
6265 (<fixsuffix>fix_truncv16sfv16si2<mask_name>): Ditto.
6266 (float<si2dfmodelower><mode>2<mask_name>): Ditto.
6267 (ufloatv8siv8df<mask_name>): Ditto.
6268 (<mask_codefor>avx512f_cvtpd2dq512<mask_name>): Ditto.
6269 (avx512f_ufix_notruncv8dfv8si<mask_name>): Ditto.
6270 (<fixsuffix>fix_truncv8dfv8si2<mask_name>): Ditto.
6271 (<mask_codefor>avx512f_cvtpd2ps512<mask_name>): Ditto.
6272 (<sse2_avx_avx512f>_cvtps2pd<avxsizesuffix><mask_name>): Ditto.
6273 (<mask_codefor>avx512f_unpckhps512<mask_name>): Ditto.
6274 (<mask_codefor>avx512f_unpcklps512<mask_name>): Ditto.
6275 (<mask_codefor>avx512f_movshdup512<mask_name>): Ditto.
6276 (<mask_codefor>avx512f_movsldup512<mask_name>): Ditto.
6277 (<mask_codefor>avx512f_vextract<shuffletype>32x4_1<mask_name>): Ditto.
6278 (vec_extract_lo_<mode><mask_name>): Ditto.
6279 (vec_extract_hi_<mode><mask_name>): Ditto.
6280 (<mask_codefor>avx512f_unpckhpd512<mask_name>): Ditto.
6281 (avx512f_movddup512<mask_name>): Ditto.
6282 (avx512f_unpcklpd512<mask_name>): Ditto.
6283 (*avx512f_unpcklpd512<mask_name>): Ditto.
6284 (*avx512f_vmscalef<mode>): Ditto.
6285 (avx512f_scalef<mode><mask_name>): Ditto.
6286 (avx512f_getexp<mode><mask_name>): Ditto.
6287 (<mask_codefor>avx512f_align<mode><mask_name>): Ditto.
6288 (avx512f_rndscale<mode><mask_name>): Ditto.
6289 (avx512f_shufps512_1<mask_name>): Ditto.
6290 (avx512f_shufpd512_1<mask_name>): Ditto.
6291 (<plusminus_insn><mode>3<mask_name>): Ditto.
6292 (*<plusminus_insn><mode>3<mask_name>): Ditto.
6293 (vec_widen_umult_even_v16si<mask_name>): Ditto.
6294 (*vec_widen_umult_even_v16si<mask_name>): Ditto.
6295 (vec_widen_smult_even_v16si<mask_name>): Ditto.
6296 (*vec_widen_smult_even_v16si<mask_name>): Ditto.
6297 (mul<mode>3<mask_name>): Ditto.
6298 (*<sse4_1_avx2>_mul<mode>3<mask_name>): Ditto.
6299 (<shift_insn><mode>3<mask_name>): Ditto.
6300 (avx512f_<rotate>v<mode><mask_name>/rotate): Ditto.
6301 (avx512f_<rotate><mode><mask_name>): Ditto.
6302 (<code><mode>3<mask_name>/maxmin): Ditto.
6303 (*avx2_<code><mode>3<mask_name>/maxmin): Ditto.
6304 (<sse2_avx2>_andnot<mode>3<mask_name>): Ditto.
6305 (*andnot<mode>3<mask_name>): Ditto.
6306 (<mask_codefor><code><mode>3<mask_name>/any_logic): Ditto.
6307 (<mask_codefor>avx512f_interleave_highv16si<mask_name>): Ditto.
6308 (<mask_codefor>avx512f_interleave_lowv16si<mask_name>): Ditto.
6309 (<mask_codefor>avx512f_vinsert<shuffletype>32x4_1<mask_name>): Ditto.
6310 (vec_set_lo_<mode><mask_name>): Ditto.
6311 (vec_set_hi_<mode><mask_name>): Ditto.
6312 (avx512f_shuf_<shuffletype>64x2_1<mask_name>): Ditto.
6313 (avx512f_shuf_<shuffletype>32x4_1<mask_name>): Ditto.
6314 (avx512f_pshufd_1<mask_name>): Ditto.
6315 (<mask_codefor>abs<mode>2<mask_name>): Ditto.
6316 (<mask_codefor>avx512f_<code>v16qiv16si2<mask_name>): Ditto.
6317 (avx512f_<code>v16hiv16si2<mask_name>/any_extend): Ditto.
6318 (avx512f_<code>v8qiv8di2<mask_name>/any_extend): Ditto.
6319 (avx512f_<code>v8hiv8di2<mask_name>/any_extend): Ditto.
6320 (avx512f_<code>v8siv8di2<mask_name>/any_extend): Ditto.
6321 (avx512er_exp2<mode><mask_name>): Ditto.
6322 (<mask_codefor>avx512er_rcp28<mode><mask_name>): Ditto.
6323 (<mask_codefor>avx512er_rsqrt28<mode><mask_name>): Ditto.
6324 (<avx2_avx512f>_permvar<mode><mask_name>): Ditto.
6325 (<avx2_avx512f>_perm<mode>_1<mask_name>): Ditto.
6326 (<mask_codefor>avx512f_vec_dup<mode><mask_name>): Ditto.
6327 (<mask_codefor>avx512f_broadcast<mode><mask_name>/V16FI): Ditto.
6328 (<mask_codefor>avx512f_broadcast<mode><mask_name>/V8FI): Ditto.
6329 (<mask_codefor>avx512f_vec_dup_gpr<mode><mask_name>): Ditto.
6330 (<mask_codefor>avx512f_vec_dup_mem<mode><mask_name>): Ditto.
6331 (<sse2_avx_avx512f>_vpermil<mode><mask_name>/VF2): Ditto.
6332 (<sse2_avx_avx512f>_vpermil<mode><mask_name>/VF1): Ditto.
6333 (*<sse2_avx_avx512f>_vpermilp<mode><mask_name>): Ditto.
6334 (<sse2_avx_avx512f>_vpermilvar<mode>3<mask_name>): Ditto.
6335 (<avx2_avx512f>_ashrv<mode><mask_name>): Ditto.
6336 (<avx2_avx512f>_<shift_insn>v<mode><mask_name>): Ditto.
6337 (<mask_codefor>avx512f_vcvtph2ps512<mask_name>): Ditto.
6338 (<mask_codefor>avx512f_vcvtps2ph512<mask_name>): Ditto.
6339 (avx512f_getmant<mode><mask_name>): Ditto.
6340 (clz<mode>2<mask_name>): Ditto.
6341 (<mask_codefor>conflict<mode><mask_name>): Ditto.
6342 (*srcp14<mode>): Remove visibility.
6343 (*rsqrt14<mode>): Ditto.
6344 (*fma_fmsub_<mode>): Ditto.
6345 (*fma_fnmadd_<mode>): Ditto.
6346 (*avx512f_rndscale<mode>): Ditto.
6347 * config/i386/subst.md: New file.
6349 2013-11-13 Joseph Myers <joseph@codesourcery.com>
6351 * doc/extend.texi (Statement Exprs, Typeof): Discuss __auto_type.
6352 * ginclude/stdatomic.h (kill_dependency, atomic_store_explicit)
6353 (atomic_load_explicit, atomic_exchange_explicit)
6354 (atomic_compare_exchange_strong_explicit)
6355 (atomic_compare_exchange_weak_explicit): Use __auto_type to
6356 declare variable initialized with PTR argument.
6358 2013-11-12 Jeff Law <law@redhat.com>
6360 * tree-ssa-threadedge.c (thread_around_empty_blocks): New argument
6361 backedge_seen_p. Set, use and pass it to children appropriately.
6362 (thread_through_normal_block): Similarly.
6363 (thread_across_edge): Similarly.
6365 * gimple-ssa-isolate-paths.c (check_loadstore): Mark discovered
6366 memory references as volatile.
6367 (insert_trap_and_remove_trailing_statements): Fix comment.
6369 2013-11-12 Vladimir Makarov <vmakarov@redhat.com>
6372 * ira-costs.c (record_operand_costs): Check operands number for
6375 2013-11-12 Michael Meissner <meissner@linux.vnet.ibm.com>
6378 * config/rs6000/rs6000.md (movdi_internal32): Eliminate
6379 constraints that would allow DImode into the traditional Altivec
6380 registers, but cause undesirable code generation when loading 0 as
6382 (movdi_internal64): Likewise.
6383 (cmp<mode>_fpr): Do not use %x for CR register output.
6384 (extendsfdf2_fpr): Fix constraints when -mallow-upper-df and
6385 -mallow-upper-sf debug switches are used.
6387 2013-11-12 Andrew MacLeod <amacleod@redhat.com>
6389 * gimple-expr.h (create_tmp_var_name, create_tmp_var_raw,
6390 create_tmp_var, create_tmp_reg, mark_addressable, is_gimple_reg_rhs):
6391 Relocate prototypes from gimple.h.
6392 * gimplify.h: New File. Relocate some prototypes from gimple.h here.
6393 (gimple_predicate, enum fallback, enum gimplify_status): Relocate
6395 * gimple.h: Move some prototypes to gimplify.h.
6396 (gimple_predicate, enum fallback, enum gimplify_status): Move to
6398 (gimple_do_not_emit_location_p, gimple_set_do_not_emit_location):
6399 Relocate from gimpify.c.
6400 * gimple-expr.c (remove_suffix, tmp_var_id_num, create_tmp_var_name,
6401 create_tmp_var_raw, create_tmp_var, create_tmp_reg, mark_addressable,
6402 is_gimple_reg_rhs) Relocate from gimplify.c.
6403 * gimplify.c (mark_addressable): Move to gimple-expr.c.
6404 (gimple_seq_add_stmt_without_update): Move to gimple.c.
6405 (remove_suffix, tmp_var_id_num, create_tmp_var_name,
6406 create_tmp_var_raw, create_tmp_var, create_tmp_reg,
6407 is_gimple_reg_rhs): Move to gimple-expr.c.
6408 (should_carry_location_p): Move to gimple.c.
6409 (gimple_do_not_emit_location_p, gimple_set_do_not_emit_location): Move
6411 (annotate_one_with_location, annotate_all_with_location_after,
6412 annotate_all_with_location): Move to gimple.c.
6413 (compare_case_labels, sort_case_labels,
6414 preprocess_case_label_vec_for_gimple): Move to gimple.c.
6415 (rhs_predicate_for): Make static.
6416 (gimplify_assign): Relocate from gimple.c.
6417 * gimple.c (gimplify_assign): Move to gimplify.c.
6418 (gimple_seq_add_stmt_without_update, should_carry_location_p,
6419 annotate_one_with_location, annotate_all_with_location_after,
6420 annotate_all_with_location, compare_case_labels, sort_case_labels,
6421 preprocess_case_label_vec_for_gimple): Relocate from gimplify.c.
6422 * tree.h (unshare_expr, unshare_expr_without_location,
6423 mark_addressable): Move prototypes to gimplify.h.
6424 * Makefile.in (GTFILES): gimple-expr.c now has the GTY tag for
6426 * asan.c: Include gimplify.h rather than gimple.h.
6427 * cfgloopmanip.c: Likewise.
6428 * cgraphunit.c: Likewise.
6429 * cilk-common.c: Likewise.
6430 * dwarf2out.c: Dont include gimple.h.
6431 * fold-const.c: Include gimplify.h rather than gimple.h.
6432 * function.c: Likewise.
6433 * gimple-fold.c: Likewise.
6434 * gimple-ssa-strength-reduction.c: Likewise.
6435 * graphite-clast-to-gimple.c: Likewise.
6436 * graphite-sese-to-poly.c: Likewise.
6437 * ipa-prop.c: Likewise.
6438 * ipa-split.c: Likewise.
6440 * langhooks.c: Dont include gimple.h.
6441 * loop-init.c: Include gimplify.h rather than gimple.h.
6442 * omp-low.c: Likewise.
6444 * stor-layout.c: Likewise.
6445 * targhooks.c: Likewise.
6446 * trans-mem.c: Likewise.
6447 * tree-affine.c: Likewise.
6448 * tree-cfg.c: Likewise.
6449 * tree-cfgcleanup.c: Likewise.
6450 * tree-complex.c: Likewise.
6451 * tree-if-conv.c: Likewise.
6452 * tree-inline.c: Likewise.
6453 * tree-iterator.c: Likewise.
6454 * tree-loop-distribution.c: Likewise.
6455 * tree-nested.c: Likewise.
6456 * tree-parloops.c: Likewise.
6457 * tree-predcom.c: Likewise.
6458 * tree-profile.c: Likewise.
6459 * tree-scalar-evolution.c: Likewise.
6460 * tree-sra.c: Likewise.
6461 * tree-ssa-address.c: Likewise.
6462 * tree-ssa-ccp.c: Likewise.
6463 * tree-ssa-dce.c: Likewise.
6464 * tree-ssa-forwprop.c: Likewise.
6465 * tree-ssa-ifcombine.c: Likewise.
6466 * tree-ssa-loop-im.c: Likewise.
6467 * tree-ssa-loop-ivopts.c: Likewise.
6468 * tree-ssa-loop-manip.c: Likewise.
6469 * tree-ssa-loop-niter.c: Likewise.
6470 * tree-ssa-loop-prefetch.c: Likewise.
6471 * tree-ssa-loop-unswitch.c: Likewise.
6472 * tree-ssa-math-opts.c: Likewise.
6473 * tree-ssa-phiopt.c: Likewise.
6474 * tree-ssa-phiprop.c: Likewise.
6475 * tree-ssa-pre.c: Likewise.
6476 * tree-ssa-propagate.c: Likewise.
6477 * tree-ssa-reassoc.c: Likewise.
6478 * tree-ssa-sccvn.c: Likewise.
6479 * tree-ssa-strlen.c: Likewise.
6480 * tree-ssa.c: Likewise.
6481 * tree-switch-conversio: Likewise.n.c
6482 * tree-tailcall.c: Likewise.
6483 * tree-vect-data-refs.c: Likewise.
6484 * tree-vect-generic.c: Likewise.
6485 * tree-vect-loop-manip.c: Likewise.
6486 * tree-vect-loop.c: Likewise.
6487 * tree-vect-patterns.c: Likewise.
6488 * tree-vect-stmts.c: Likewise.
6490 * value-prof.c: Likewise.
6491 * config/aarch64/aarch64.c: Include gimplify.h instead of gimple.h.
6492 * config/alpha/alpha.c: Likewise.
6493 * config/darwin.c: Likewise.
6494 * config/i386/i386.c: Likewise.
6495 * config/ia64/ia64.c: Likewise.
6496 * config/mep/mep.c: Likewise.
6497 * config/mips/mips.c: Likewise.
6498 * config/rs6000/rs6000.c: Likewise.
6499 * config/s390/s390.c: Likewise.
6500 * config/sh/sh.c: Likewise.
6501 * config/sparc/sparc.c: Likewise.
6502 * config/spu/spu.c: Likewise.
6503 * config/stormy16/stormy16.c: Likewise.
6504 * config/tilegx/tilegx.c: Likewise.
6505 * config/tilepro/tilepro.c: Likewise.
6506 * config/xtensa/xtensa.c: Likewise.
6508 2013-11-12 Adam Butcher <adam@jessamine.co.uk>
6510 * tree.c (grow_tree_vec_stat): New function ...
6511 * tree.h (grow_tree_vec_stat) (grow_tree_vec): ... and its declaration
6512 and macro front-end.
6514 2013-11-12 Marek Polacek <polacek@redhat.com>
6516 * final.c (update_alignments): Initialize label to NULL_RTX.
6518 2013-11-12 Jeff Law <law@redhat.com>
6520 * gimple-ssa-isolate-paths.c (check_loadstore): New function.
6521 (insert_trap_and_remove_trailing_statements): New argument OP which
6522 is the NULL pointer. Emit the trap after the load/store through
6523 the NULL pointer. Simplify the RHS of a store through a NULL pointer
6524 when trivial to do so.
6525 (isolate_path): Corresponding changes.
6526 (gimple_ssa_isolate_erroneous_path): Likewise.
6528 2013-11-12 Teresa Johnson <tejohnson@google.com>
6529 Jan Hubicka <jh@suse.cz>
6531 * predict.c (drop_profile): New function.
6532 (handle_missing_profiles): Ditto.
6533 (counts_to_freqs): Don't overwrite estimated frequencies
6534 when function has no profile counts.
6535 * predict.h (handle_missing_profiles): Declare.
6536 * tree-inline.c (freqs_to_counts): New function.
6537 (copy_cfg_body): Invoke freqs_to_counts as needed.
6538 * tree-profile.c (tree_profiling): Invoke handle_missing_profiles.
6540 2013-11-12 H.J. Lu <hongjiu.lu@intel.com>
6543 * config/i386/x86-tune.def (X86_TUNE_SSE_UNALIGNED_LOAD_OPTIMAL):
6545 (X86_TUNE_SSE_UNALIGNED_STORE_OPTIMAL): Set for m_HASWELL.
6547 2013-11-12 H.J. Lu <hongjiu.lu@intel.com>
6550 * config/i386/i386.c (ix86_option_override_internal): Check
6551 X86_TUNE_AVX256_UNALIGNED_LOAD_OPTIMAL and
6552 X86_TUNE_AVX256_UNALIGNED_STORE_OPTIMAL for
6553 MASK_AVX256_SPLIT_UNALIGNED_LOAD and
6554 MASK_AVX256_SPLIT_UNALIGNED_STORE.
6556 * config/i386/x86-tune.def (X86_TUNE_AVX256_UNALIGNED_LOAD_OPTIMAL):
6557 Clear m_COREI7_AVX and update comments.
6558 (X86_TUNE_AVX256_UNALIGNED_STORE_OPTIMAL): Likewise.
6560 2013-11-12 Martin Jambor <mjambor@suse.cz>
6562 PR rtl-optimization/10474
6563 * ira.c (interesting_dest_for_shprep): New function.
6564 (split_live_ranges_for_shrink_wrap): Likewise.
6565 (find_moveable_pseudos): Move calculation of dominance info,
6566 df_analysios and the final anlyses to...
6567 (ira): ...here, call split_live_ranges_for_shrink_wrap.
6569 2013-11-12 Bin Cheng <bin.cheng@arm.com>
6571 * tree-ssa-loop-ivopts.c (force_expr_to_var_cost): Refactor the code.
6572 Handle type conversion.
6574 2013-11-11 Martin Liska <marxin.liska@gmail.com>
6575 Jan Hubicka <jh@suse.cz>
6577 * cgraph.c (dump_cgraph_node): Profile dump added.
6578 * cgraph.h (struct cgraph_node): New time profile variable added.
6579 * cgraphclones.c (cgraph_clone_node): Time profile is cloned.
6580 * gcov-io.h (gcov_type): New profiler type introduced.
6581 * ipa-profile.c (lto_output_node): Streaming for time profile added.
6582 (input_node): Time profiler is read from LTO stream.
6583 * predict.c (maybe_hot_count_p): Hot prediction changed.
6584 * profile.c (instrument_values): New case for time profiler added.
6585 (compute_value_histograms): Read of time profile.
6586 * tree-pretty-print.c (dump_function_header): Time profiler is dumped.
6587 * tree-profile.c (init_ic_make_global_vars): Time profiler
6589 (gimple_init_edge_profiler): TP function instrumentation.
6590 (gimple_gen_time_profiler): New.
6591 * value-prof.c (gimple_add_histogram_value): Support for time profiler
6593 (dump_histogram_value): TP type added to dumps.
6594 (visit_hist): More sensitive check that takes TP into account.
6595 (gimple_find_values_to_profile): TP instrumentation.
6596 * value-prof.h (hist_type): New histogram type added.
6597 (struct histogram_value_t): Pointer to struct function added.
6598 * libgcc/Makefile.in: New GCOV merge function for TP added.
6599 * libgcov.c: function_counter variable introduced.
6600 (_gcov_merge_time_profile): New.
6601 (_gcov_time_profiler): New.
6603 2013-11-11 Marc Glisse <marc.glisse@inria.fr>
6604 Jeff Law <law@redhat.com>
6606 * tree-ssa-alias.c (stmt_kills_ref_p_1): Use
6607 ao_ref_init_from_ptr_and_size for builtins.
6609 2013-11-11 Uros Bizjak <ubizjak@gmail.com>
6610 H.J. Lu <hongjiu.lu@intel.com>
6613 * config/i386/x86-tune.def
6614 (X86_TUNE_MISALIGNED_MOVE_STRING_PRO_EPILOGUES): Rename from
6615 TARGET_MISALIGNED_MOVE_STRING_PROLOGUES.
6616 * config/i386/i386.h
6617 (TARGET_MISALIGNED_MOVE_STRING_PRO_EPILOGUES): Rename from
6618 TARGET_MISALIGNED_MOVE_STRING_PROLOGUES_EPILOGUES. Update for renamed
6619 X86_TUNE_MISALIGNED_MOVE_STRING_PRO_EPILOGUES.
6620 * config/i386/i386.c (ix86_expand_set_or_movmem): Use
6621 TARGET_MISALIGNED_MOVE_STRING_PRO_EPILOGUES to calculate
6622 misaligned_prologue_used. Check that
6623 desired_aling <= epilogue_size_needed.
6625 2013-11-11 Cong Hou <congh@google.com>
6627 PR tree-optimization/59050
6628 * tree-vect-data-refs.c (comp_dr_addr_with_seg_len_pair): Bug fix.
6630 2013-11-11 Joern Rennecke <joern.rennecke@embecosm.com>
6633 * expmed.c (emit_store_flag): Fail for const-const comparison.
6635 2013-11-11 Tristan Gingold <gingold@adacore.com>
6636 Eric Botcazou <ebotcazou@adacore.com>
6638 * tree.h (CONSTRUCTOR_NO_CLEARING): Define.
6639 * tree-core.h (CONSTRUCTOR_NO_CLEARING): Document it.
6640 * tree.def (CONSTRUCTOR): Likewise.
6641 * doc/generic.texi (CONSTRUCTOR): Likewise. Update description.
6642 * gimplify.c (gimplify_init_constructor): Do not clear the object when
6643 the constructor is incomplete and CONSTRUCTOR_NO_CLEARING is set.
6645 2013-11-11 Basile Starynkevitch <basile@starynkevitch.net>
6647 * toplev.c (toplev_main): Move PLUGIN_FINISH invocation before
6650 2013-11-11 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
6652 * config/arm/arm.c (arm_new_rtx_costs): Return after handling
6655 2013-11-11 Joern Rennecke <joern.rennecke@embecosm.com>
6657 * config/arc/arc.h (LOGICAL_OP_NON_SHORT_CIRCUIT): Define.
6659 2013-11-08 Jeff Law <law@redhat.com>
6661 * tree-ssa-threadupdate.c (mark_threaded_blocks): Truncate jump
6662 threading paths first, then perform PHI node checks if applicable.
6664 2013-11-10 Karlson2k <k2k@narod.ru>
6665 Kai Tietz <ktietz@redhat.com>
6668 * configure.ac: Adding for exported symbols check
6669 and for rdynamic-check executable-extension.
6670 * configure: Regenerated.
6672 2013-11-10 Uros Bizjak <ubizjak@gmail.com>
6674 * mode-switching.c (optimize_mode_switching): Mark block as
6675 nontransparent, if last_mode at block exit is different from no_mode.
6677 2013-11-09 Jan-Benedict Glaw <jbglaw@lug-owl.de>
6679 * function.c (NAME__MAIN): Move to...
6680 * cfgexpand.c (NAME__MAIN): ...here.
6682 2013-11-09 Richard Sandiford <rdsandiford@googlemail.com>
6684 * target.def (can_use_doloop_p): New hook.
6685 * doc/tm.texi.in (TARGET_CAN_USE_DOLOOP_P): Add.
6686 * doc/tm.texi: Regenerate.
6687 * doc/md.texi (doloop_begin, doloop_end): Update documentation.
6688 * hooks.h (hook_bool_dint_dint_uint_true): Declare.
6689 * hooks.c (hook_bool_dint_dint_uint_true): New function.
6690 * targhooks.h (can_use_doloop_if_innermost): Declare.
6691 * targhooks.c (can_use_doloop_if_innermost): New function.
6692 * target.h: Include double-int.h.
6693 * loop-doloop.c (doloop_optimize): Call targetm.can_use_doloop_p.
6694 Remove iteration count, maximum iteration count, loop depth and
6695 enter-at-top inputs from doloop_begin and doloop_end.
6696 * config/arc/arc.md (doloop_begin, doloop_end): Update for new
6698 * config/arc/arc.c (arc_can_use_doloop_p): New function.
6699 (TARGET_CAN_USE_DOLOOP_P): Define.
6700 * config/arm/thumb2.md (doloop_end): Update for new interface.
6701 * config/arm/arm.c (TARGET_CAN_USE_DOLOOP_P): Define.
6702 * config/bfin/bfin.md (doloop_end): Update for new interface.
6703 * config/bfin/bfin.c (bfin_can_use_doloop_p): New function.
6704 (TARGET_CAN_USE_DOLOOP_P): Define.
6705 * config/c6x/c6x.md (doloop_end): Update for new interface.
6706 * config/ia64/ia64.md (doloop_end): Update for new interface.
6707 * config/ia64/ia64.c (TARGET_CAN_USE_DOLOOP_P): Define.
6708 * config/mep/mep.md (doloop_begin, doloop_end): Update for new
6710 * config/mep/mep.c (mep_emit_doloop): Likewise.
6711 (TARGET_CAN_USE_DOLOOP_P): Define.
6712 * config/rs6000/rs6000.md (doloop_end): Update for new interface.
6713 * config/rs6000/rs6000.c (TARGET_CAN_USE_DOLOOP_P): Define.
6714 * config/s390/s390.md (doloop_end): Update for new interface.
6715 * config/sh/sh.md (doloop_end): Likewise.
6716 * config/spu/spu.md (doloop_end): Likewise.
6717 * config/spu/spu.c (TARGET_CAN_USE_DOLOOP_P): Define.
6718 * config/tilegx/tilegx.md (doloop_end): Update for new interface.
6719 * config/tilegx/tilegx.c (TARGET_CAN_USE_DOLOOP_P): Define.
6720 * config/tilepro/tilepro.md (doloop_end): Update for new interface.
6721 * config/tilepro/tilepro.c (TARGET_CAN_USE_DOLOOP_P): Define.
6722 * config/v850/v850.md (doloop_begin, doloop_end): Update for new
6724 * config/v850/v850.c (TARGET_CAN_USE_DOLOOP_P): Define.
6726 2013-11-08 H.J. Lu <hongjiu.lu@intel.com>
6729 * doc/extend.texi: Move Cilk Plus Builtins node before Other
6732 2013-11-08 Andrew MacLeod <amacleod@redhat.com>
6733 Joseph Myers <joseph@codesourcery.com>
6735 * ginclude/stdatomic.h: New file.
6736 * Makefile.in (USER_H): Add stdatomic.h.
6738 2013-11-08 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
6740 * config/arm/arm.c (arm_new_rtx_costs): Break after handling
6743 2013-11-08 Jeff Law <law@redhat.com>
6745 * tree-ssa-threadupdate.h (delete_thread_path): Declare.
6746 * tree-ssa-threadupdate.c (delete_thread_path): New function.
6747 (ssa_redirect_edges, thread_block_1): Use it.
6748 (thread_through_loop_header, mark_threaded_blocks): Likewise.
6749 (thread_through_all_blocks, register_jump_thread): Likewise.
6750 * tree-ssa-threadedge.c (thread_across_edge): Likewise.
6752 2013-11-08 James Greenhalgh <james.greenhalgh@arm.com>
6754 * config/arm/aarch-common.c
6755 (search_term): New typedef.
6756 (shift_rtx_costs): New array.
6757 (arm_rtx_shift_left_p): New.
6758 (arm_find_sub_rtx_with_search_term): Likewise.
6759 (arm_find_sub_rtx_with_code): Likewise.
6760 (arm_early_load_addr_dep): Add sanity checking.
6761 (arm_no_early_alu_shift_dep): Likewise.
6762 (arm_no_early_alu_shift_value_dep): Likewise.
6763 (arm_no_early_mul_dep): Likewise.
6764 (arm_no_early_store_addr_dep): Likewise.
6766 2013-11-08 Richard Biener <rguenther@suse.de>
6768 PR tree-optimization/59047
6769 * tree-predcom.c (ref_at_iteration): Handle bitfield accesses properly.
6771 2013-11-08 Ilya Enkovich <ilya.enkovich@intel.com>
6773 * common.opt (fcheck-pointer-bounds): Move to ...
6774 * c-family/c.opt: ... here.
6775 * langhooks-def.h (LANG_HOOKS_CHKP_SUPPORTED): Remove.
6776 (LANG_HOOKS_INITIALIZER): Remove LANG_HOOKS_CHKP_SUPPORTED.
6777 * langhooks.h (lang_hooks): Remove chkp_supported field.
6778 * toplev.c (process_options): Remove chkp_supported check.
6780 2013-11-08 Richard Biener <rguenther@suse.de>
6782 PR tree-optimization/59038
6783 PR tree-optimization/58955
6784 * tree-loop-distribution.c (pg_add_dependence_edges): Revert
6785 previous change. Handle known dependences correctly.
6787 2013-11-08 Tom de Vries <tom@codesourcery.com>
6789 * config/rs6000/t-xilinx: Remove duplicate contents.
6791 2013-11-07 Andrew MacLeod <amacleod@redhat.com>
6792 Joseph Myers <joseph@codesourcery.com>
6794 * tree-core.h (enum cv_qualifier): Add TYPE_QUAL_ATOMIC.
6795 (enum tree_index): Add TI_ATOMICQI_TYPE, TI_ATOMICHI_TYPE,
6796 TI_ATOMICSI_TYPE, TI_ATOMICDI_TYPE and TI_ATOMICTI_TYPE.
6797 (struct tree_base): Add atomic_flag field.
6798 * tree.h (TYPE_ATOMIC): New accessor macro.
6799 (TYPE_QUALS, TYPE_QUALS_NO_ADDR_SPACE): Add TYPE_QUAL_ATOMIC.
6800 (TYPE_QUALS_NO_ADDR_SPACE_NO_ATOMIC): New macro.
6801 (atomicQI_type_node, atomicHI_type_node, atomicSI_type_node)
6802 (atomicDI_type_node, atomicTI_type_node): New macros for type nodes.
6803 * tree.c (set_type_quals): Set TYPE_ATOMIC.
6804 (find_atomic_core_type): New function.
6805 (build_qualified_type): Adjust alignment for qualified types.
6806 (build_atomic_base): New function
6807 (build_common_tree_nodes): Build atomicQI_type_node,
6808 atomicHI_type_node, atomicSI_type_node, atomicDI_type_node and
6810 * print-tree.c (print_node): Print atomic qualifier.
6811 * tree-pretty-print.c (dump_generic_node): Print atomic type attribute.
6812 * target.def (atomic_assign_expand_fenv): New hook.
6813 * doc/tm.texi.in (TARGET_ATOMIC_ASSIGN_EXPAND_FENV): New @hook.
6814 * doc/tm.texi: Regenerate.
6815 * targhooks.c (default_atomic_assign_expand_fenv): New function.
6816 * targhooks.h (default_atomic_assign_expand_fenv): Declare.
6817 * sync-builtins.def (__atomic_feraiseexcept): New built-in function.
6818 * config/i386/i386-builtin-types.def (VOID_FTYPE_PUSHORT): New
6820 * config/i386/i386.c (enum ix86_builtins): Add
6821 IX86_BUILTIN_FNSTENV, IX86_BUILTIN_FLDENV, IX86_BUILTIN_FNSTSW and
6822 IX86_BUILTIN_FNCLEX.
6823 (bdesc_special_args): Add __builtin_ia32_fnstenv,
6824 __builtin_ia32_fldenv, __builtin_ia32_fnstsw and __builtin_ia32_fnclex.
6825 (ix86_expand_builtin): Handle the new built-in functions.
6826 (ix86_atomic_assign_expand_fenv): New function.
6827 (TARGET_ATOMIC_ASSIGN_EXPAND_FENV): New macro.
6828 * config/i386/i386.md (UNSPECV_FNSTENV, UNSPECV_FLDENV)
6829 (UNSPECV_FNSTSW, UNSPECV_FNCLEX): New unspecs.
6830 (fnstenv, fldenv, fnstsw, fnclex): New insns.
6832 2013-11-07 Steve Ellcey <sellcey@mips.com>
6834 * config/mips/mti-linux.h (SYSROOT_SUFFIX_SPEC): Add fp64 directory.
6835 * config/mips/t-mti-linux (MULTILIB_OPTIONS): Add -mfp64 flag.
6836 (MULTILIB_DIRNAMES): Add fp64 directory.
6837 (MULTILIB_EXCEPTIONS): Add new exclusions.
6839 2013-11-07 Aldy Hernandez <aldyh@redhat.com>
6841 * gimplify.c (gimple_regimplify_operands): Do not set
6843 * graphite-sese-to-poly.c (remove_simple_copy_phi): Same.
6844 (rewrite_close_phi_out_of_ssa): Same.
6845 (rewrite_phi_out_of_ssa): Same.
6846 (rewrite_degenerate_phi): Same.
6847 (handle_scalar_deps_crossing_scop_limits): Same.
6848 * tree-if-conv.c (predicate_scalar_phi): Same.
6849 * tree-parloops.c (create_loads_for_reductions): Same.
6850 (create_final_loads_for_reduction): Same.
6851 (create_loads_and_stores_for_name): Same.
6852 (transform_to_exit_first_loop): Same.
6853 (create_parallel_loop): Same.
6854 * tree-ssa-loop-im.c
6855 (move_computations_dom_walker::before_dom_children): Same.
6856 * tree-ssa-loop-manip.c (rewrite_phi_with_iv): Same.
6857 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children): Same.
6858 * tree-ssa-propagate.c (substitute_and_fold): Same.
6859 * tree-vect-loop.c (vect_finalize_reduction): Same.
6860 * tree-vect-stmts.c (vectorizable_call): Same.
6862 2013-11-07 Mike Stump <mikestump@comcast.net>
6864 * config/pdp11/pdp11.c: Include dbxout.h.
6865 * config/picochip/picochip.c: Likewise.
6867 2013-11-07 Cong Hou <congh@google.com>
6869 PR tree-optimization/56764
6870 * tree-vect-loop-manip.c (vect_create_cond_for_alias_checks):
6871 Combine alias checks if it is possible to amortize the runtime
6872 overhead. Return the number of alias checks after merging.
6873 * tree-vect-data-refs.c (vect_prune_runtime_alias_test_list):
6874 Use the function vect_create_cond_for_alias_checks () to check
6875 the number of alias checks.
6877 2013-11-07 Jeff Law <law@redhat.com>
6879 * varpool.c (ctor_for_folding): Fix typo in comment.
6881 2013-11-07 Joern Rennecke <joern.rennecke@embecosm.com>
6883 * config/arc/arc.c (arc_ifcvt): Use commutativity, e.g.:
6884 reg_a := reg_b + reg_a ==> reg_a := reg_a + reg_b
6886 2013-11-07 Jeff Law <law@redhat.com>
6888 * doc/invoke.texi (-fisolate-erroneous-paths): Document.
6890 * gimple-ssa-isolate-paths.c (gate_isolate_erroneous_paths):
6891 No longer check if we have __builtin_trap, assume it's available.
6893 2013-11-07 Diego Novillo <dnovillo@google.com>
6895 * attribs.c (lookup_scoped_attribute_spec): Make static.
6896 (get_attribute_namespace): Likewise.
6897 * builtins.c (more_const_call_expr_args_p): Move from tree.h.
6898 (validate_arglist): Move earlier in the file. Make static.
6899 (expand_stack_restore): Move from stmt.c
6900 (expand_stack_save): Move from stmt.c
6901 (rewrite_call_expr_array): Move earlier in the file.
6902 (rewrite_call_expr_valist): Likewise.
6903 * cfgexpand.c: Include hard-reg-set.h before tree.h
6906 (expand_asm_loc): Move from stmt.c.
6907 (n_occurrences): Move from stmt.c.
6908 (check_operand_nalternatives): Move from stmt.c.
6909 (tree_conflicts_with_clobbers_p): Move from stmt.c.
6910 (expand_asm_operands): Move from stmt.c
6911 (expand_asm_stmt): Move from stmt.c
6912 (expand_computed_goto): Move from stmt.c
6913 (expand_goto): Move from stmt.c
6914 (expand_null_return_1): Move from stmt.c
6915 (expand_null_return): Move from stmt.c
6916 (expand_value_return): Move from stmt.c
6917 (expand_return): Move from stmt.c
6918 (expand_main_function): Move from function.c
6919 (stack_protect_prologue): Move from function.c
6920 * cgraphclones.c (build_function_type_skip_args): Move from tree.c.
6921 (build_function_decl_skip_args): Move from tree.c.
6922 * explow.c (tree_expr_size): Move from tree.c.
6923 * expr.c (addr_expr_of_non_mem_decl_p): Remove.
6924 (fields_length): Move from tree.c.
6925 * fold-const.c (size_low_cst): Move from tree.c.
6926 (tree_expr_nonzero_warnv_p): Make static. Move earlier in the file.
6927 (tree_expr_nonzero_p): Make static. Move earlier in the file.
6928 (fold_build3_initializer_loc): Remove.
6929 (tree_invalid_nonnegative_warnv_p): Make static.
6930 * function.c (expand_main_function): Move to cfgexpand.c.
6931 (stack_protect_prologue): Move to cfgexpand.c.
6932 (set_insn_locations): Move earlier in the file.
6933 * gimple-fold.c: Include langhooks.h.
6934 (truth_type_for): Move from tree.c.
6935 * print-tree.c (print_vec_tree): Remove.
6936 * stmt.c (expand_computed_goto): Move to cfgexpand.c.
6937 (expand_goto): Move to cfgexpand.c.
6938 (n_occurrences): Move to cfgexpand.c.
6939 (expand_asm_loc): Move to cfgexpand.c
6940 (tree_conflicts_with_clobbers_p): Move to cfgexpand.c.
6941 (expand_asm_operands): Move to cfgexpand.c.
6942 (expand_asm_stmt): Move to cfgexpand.c.
6943 (check_operand_nalternatives): Move to cfgexpand.c
6944 (expand_null_return): Move to cfgexpand.c.
6945 (expand_value_return): Move to cfgexpand.c.
6946 (expand_null_return_1): Move to cfgexpand.c.
6947 (expand_return): Move to cfgexpand.c.
6948 (expand_stack_save): Move to builtins.c.
6949 (expand_stack_restore): Move to builtins.c
6950 * symtab.c: Include output.h.
6951 (decl_assembler_name_hash): Move from tree.c.
6952 (decl_assembler_name_equal): Move from tree.c.
6953 * trans-mem.c (is_tm_safe_or_pure): Move from tree.h.
6954 * tree-eh.c (in_array_bounds_p): Move from tree.c.
6955 (range_in_array_bounds_p): Move from tree.c.
6956 * tree-object-size.c (fini_object_sizes): Make static.
6957 * tree-ssa-dom.c (iterative_hash_exprs_commutative): Move from tree.h.
6958 * tree-vrp.c (ssa_name_nonnegative_p): Remove.
6959 * tree.c (decl_assembler_name_equal): Move to symtab.c.
6960 (tree_expr_size): Move to explow.c.
6961 (decl_assembler_name_hash): Move to symtab.c.
6962 (real_twop): Remove.
6963 (tree_expr_size): Move to explow.c.
6964 (stabilize_reference_1): Move earlier in the file. Make static.
6965 (omp_remove_redundant_declare_simd_attrs): Remove.
6966 (simple_cst_list_equal): Move earlier in the file. Make static.
6967 (size_low_cst): Move to fold-const.c.
6968 (build_type_no_quals): Remove.
6969 (build_function_type_skip_args): Move to cgraphclones.c.
6970 (build_function_decl_skip_args): Move to cgraphclones.c.
6971 (in_array_bounds_p): Move to tree-eh.c.
6972 (range_in_array_bounds_p): Move to tree-eh.c.
6973 (truth_type_for): Move to gimple-fold.c.
6974 (list_equal_p): Remove.
6975 * tree.h (decl_assembler_name_equal): Remove.
6976 (decl_assembler_name_hash): Remove.
6977 (truth_type_for): Remove.
6978 (build_type_no_quals): Remove.
6979 (build_function_decl_skip_args): Remove.
6980 (in_array_bounds_p): Remove.
6981 (range_in_array_bounds_p): Remove.
6982 (size_low_cst): Remove.
6983 (omp_remove_redundant_declare_simd_attrs): Remove.
6984 (tree_expr_size): Remove.
6985 (fields_length): Remove.
6986 (stabilize_reference_1): Remove.
6987 (expand_goto): Remove.
6988 (expand_stack_save): Remove.
6989 (expand_stack_restore): Remove.
6990 (expand_return): Remove.
6991 (fold_build3_initializer_loc): Remove.
6992 (tree_expr_nonzero_p): Remove.
6993 (tree_invalid_nonnegative_warnv_p): Remove.
6994 (tree_expr_nonzero_warnv_p): Remove.
6995 (fold_builtin_snprintf_chk): Remove.
6996 (validate_arglist): Remove.
6997 (iterative_hash_exprs_commutative): Move to tree-ssa-dom.c.
6998 (simple_cst_list_equal): Remove.
6999 (real_twop): Remove.
7000 (expand_main_function): Remove.
7001 (stack_protect_prologue): Remove.
7002 (print_vec_tree): Remove.
7003 (lookup_scoped_attribute_spec): Remove.
7004 (get_attribute_namespace): Remove.
7005 (expand_computed_goto): Remove.
7006 (expand_asm_stmt): Remove.
7007 (list_equal_p): Remove.
7008 (ssa_name_nonnegative_p): Remove.
7009 (fini_object_sizes): Remove.
7010 (addr_expr_of_non_mem_decl_p): Remove.
7011 (is_tm_safe_or_pure): Move to trans-mem.c.
7012 (more_const_call_expr_args_p): Remove.
7013 (save_vtable_map_decl): Remove.
7015 2013-11-07 Thomas Schwinge <thomas@codesourcery.com>
7017 * doc/sourcebuild.texi (Top Level) <lto-plugin>: GNU ld can use
7018 linker plugins, too.
7020 * config/arc/arc.h (LINK_COMMAND_SPEC): For -ftree-parallelize-loops=*,
7021 link to libgomp and its dependencies.
7022 * config/ia64/hpux.h (LIB_SPEC): Likewise.
7023 * config/pa/pa-hpux11.h (LIB_SPEC): Likewise.
7024 * config/pa/pa64-hpux.h (LIB_SPEC): Likewise.
7025 * gcc.c (GOMP_SELF_SPECS): Update comment about libgomp's dependencies.
7027 2013-11-07 Jakub Jelinek <jakub@redhat.com>
7029 * tree-ssa-loop-niter.c: Include tree-ssanames.h.
7030 (determine_value_range): Add loop argument. Use get_range_info to
7032 (bound_difference): Adjust caller.
7034 2013-11-07 Richard Biener <rguenther@suse.de>
7035 Jakub Jelinek <jakub@redhat.com>
7037 * tree-vrp.c (find_assert_locations): Pre-seed live bitmaps for loop
7038 latches from header PHI arguments from the latch edge.
7040 2013-11-07 Paolo Carlini <paolo.carlini@oracle.com>
7043 * varasm.c (output_constant): Handle NULLPTR_TYPE.
7045 2013-11-07 H.J. Lu <hongjiu.lu@intel.com>
7047 * config/i386/i386.c (ix86_expand_set_or_movmem): Don't set
7048 misaligned_prologue_used when it has been set.
7050 2013-11-07 Yury Gribov <y.gribov@samsung.com>
7051 Jakub Jelinek <jakub@redhat.com>
7054 * asan.c (get_mem_refs_of_builtin_call): Allow
7055 integer literals as addresses in instrumented builtins.
7057 2013-11-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
7059 * config/aarch64/aarch64.c (aarch64_legitimize_reload_address):
7060 Explain why plus_constant is not used.
7062 2013-11-07 Richard Biener <rguenther@suse.de>
7064 * tree-ssa-ccp.c (canonicalize_float_value): Rename to ...
7065 (canonicalize_value): ... this. Also handle stripping of
7067 (get_value, set_lattice_value, get_value_for_expr): Adjust.
7068 * gimple-fold.c (canonicalize_constructor_val): Strip TREE_OVERFLOW.
7069 * tree-ssa-threadedge.c (set_ssa_name_value): Likewise.
7071 2013-11-07 Richard Biener <rguenther@suse.de>
7073 * tree-dfa.c (get_ref_base_and_extent): Fix casting.
7075 2013-11-07 H.J. Lu <hongjiu.lu@intel.com>
7078 * config/i386/i386.md (push peepholer/splitter): Use Pmode
7079 with stack_pointer_rtx.
7081 2013-11-07 Bin Cheng <bin.cheng@arm.com>
7083 * tree-ssa-loop-ivopts.c (get_shiftadd_cost): Check equality
7084 using operand_equal_p.
7086 2013-11-07 Bin Cheng <bin.cheng@arm.com>
7088 * tree-ssa-loop-ivopts.c (alloc_iv): Lower address expressions.
7089 * tree-affine.c (get_inner_reference_aff): Return base.
7090 * tree-affine.h (get_inner_reference_aff): Change prototype.
7092 2013-11-06 Tobias Burnus <burnus@net-b.de>
7094 * doc/invoke.texi (Wdate-time): Fix typo.
7096 2013-11-06 Oleg Endo <olegendo@gcc.gnu.org>
7098 * config/sh/sh.md (addsf3, divsf3, divsf3_i, rsqrtsf2, cmpgtdf_t,
7099 cmpeqdf_t, *ieee_ccmpeqdf_t, negdf2, sqrtdf2, absdf2): Use
7100 fp_arith_reg_operand instead of arith_reg_operand.
7102 2013-11-06 Oleg Endo <olegendo@gcc.gnu.org>
7104 * config/sh/sh.md (adddi3): Remove empty constraints.
7105 Remove can_create_pseudo_p and arith_reg_operand check.
7106 (adddi3_compact, subdi3_compact, *negdi2): Remove constraints.
7107 Split before reload.
7109 2013-11-06 Jeff Law <law@redhat.com>
7110 Tom Tromey <tromey@redhat.com>
7112 * gdbinit.in: Disable strict type checking.
7114 2013-11-06 Vladimir Makarov <vmakarov@redhat.com>
7116 * tree-pass.h (make_pass_live_range_shrinkage): New external.
7117 * timevar.def (TV_LIVE_RANGE_SHRINKAGE): New.
7118 * sched-rgn.c (gate_handle_live_range_shrinkage): New.
7119 (rest_of_handle_live_range_shrinkage): Ditto
7120 (class pass_live_range_shrinkage): Ditto.
7121 (pass_data_live_range_shrinkage): Ditto.
7122 (make_pass_live_range_shrinkage): Ditto.
7123 * sched-int.h (initialize_live_range_shrinkage): New prototype.
7124 (finish_live_range_shrinkage): Ditto.
7125 * sched-deps.c (create_insn_reg_set): Make void return value.
7126 * passes.def: Add pass_live_range_shrinkage.
7127 * ira.c (update_equiv_regs): Don't move if flag_live_range_shrinkage.
7128 * haifa-sched.c (live_range_shrinkage_p): New.
7129 (initialize_live_range_shrinkage, finish_live_range_shrinkage):
7131 (rank_for_schedule): Add code for pressure relief through live
7133 (schedule_insn): Print more debug info.
7134 (sched_init): Setup SCHED_PRESSURE_WEIGHTED for pressure relief
7135 through live range shrinkage.
7136 * doc/invoke.texi (-flive-range-shrinkage): New.
7137 * common.opt (flive-range-shrinkage): New.
7139 2013-11-06 Uros Bizjak <ubizjak@gmail.com>
7142 * config/i386/i386.c (ix86_avx_u128_mode_needed): Require
7143 AVX_U128_DIRTY mode for call_insn RTXes that use AVX256 registers.
7144 (ix86_avx_u128_mode_needed): Return AVX_U128_DIRTY mode for call_insn
7145 RTXes that return in AVX256 register.
7147 2013-11-06 Richard Biener <rguenther@suse.de>
7149 PR tree-optimization/58653
7150 * tree-predcom.c (ref_at_iteration): Rewrite to generate a MEM_REF.
7151 (prepare_initializers_chain): Adjust.
7153 2013-11-06 Andrew MacLeod <amacleod@redhat.com>
7155 * gimple.h (block_in_transaction): Move to basic-block.h and rename.
7156 (gimple_in_transaction): Use bb_in_transaction.
7157 * basic-block.h (bb_in_transaction): Relocate here and rename.
7158 * tree-ssa-loop-im.c (execute_sm): Use bb_in_transaction.
7160 2013-11-06 Richard Biener <rguenther@suse.de>
7162 * tree.c (drop_tree_overflow): New function.
7163 * tree.h (drop_tree_overflow): Declare.
7164 * gimplify.c (gimplify_expr): Drop TREE_OVERFLOW.
7165 * tree-vrp.c (range_int_cst_singleton_p): Use
7166 is_overflow_infinity instead of testing TREE_OVERFLOW.
7167 (extract_range_from_assert): Likewise.
7168 (zero_nonzero_bits_from_vr): Likewise.
7169 (extract_range_basic): Likewise.
7170 (register_new_assert_for): Use drop_tree_overflow.
7171 (vrp_visit_phi_node): Likewise.
7173 2013-11-06 Eric Botcazou <ebotcazou@adacore.com>
7175 * config/i386/i386.c (ix86_expand_prologue): Optimize stack
7176 checking for leaf functions without dynamic stack allocation.
7177 * config/ia64/ia64.c (ia64_emit_probe_stack_range): Adjust.
7178 (ia64_expand_prologue): Likewise.
7179 * config/mips/mips.c (mips_expand_prologue): Likewise.
7180 * config/rs6000/rs6000.c (rs6000_emit_prologue): Likewise.
7181 * config/sparc/sparc.c (sparc_expand_prologue): Likewise.
7182 (sparc_flat_expand_prologue): Likewise.
7184 2013-11-06 James Greenhalgh <james.greenhalgh@arm.com>
7186 * config/aarch64/arm_neon.h (__ST2_LANE_FUNC): Better model data size.
7187 (__ST3_LANE_FUNC): Likewise.
7188 (__ST4_LANE_FUNC): Likewise.
7190 2013-11-06 Nick Clifton <nickc@redhat.com>
7192 * config/msp430/msp430.h (TARGET_CPU_CPP_BUILTINS): Define the
7193 name returned by msp430_mcu_name.
7194 (LIB_SPEC): If a -T option has not been specified then set a
7195 default, mcu-specific, linker script.
7196 * config/msp430/t-msp430 (MULTILIB_MATCHES): Add more mcu names.
7197 * config/msp430/msp430.c (msp430x_names): Likewise.
7198 Alpha sort the names for ease of comparison.
7199 (msp430_mcu_name): New function: Returns a string suitable for
7200 use as a C preprocessor symbol based upon the name of the MCU
7202 (msp430_option_override): Accept msp430x and msp430xv2 as generic
7204 * config/msp430/msp430-protos.h (msp430_mcu_name): Prototype.
7206 * gcc.c (do_spec_1): Do not insert a space after a %* substitution
7207 unless it is the last part of a spec substring.
7208 * doc/invoke.texi (Spec Files): Document space insertion
7211 2013-11-06 Christian Bruel <christian.bruel@st.com>
7213 * config/sh/sh-mem.cc (sh_expand_cmpnstr, sh_expand_cmpstr):
7214 Factorize probabilities, Use adjust_address instead of
7215 adjust_automodify_address when possible. Enable for optimize.
7216 (sh_expand_strlen): New function.
7217 * config/sh/sh-protos.h (sh_expand_strlen): Declare.
7218 * config/sh/sh.md (strlensi): New pattern.
7219 (UNSPEC_BUILTIN_STRLEN): Define.
7221 2013-11-06 Jakub Jelinek <jakub@redhat.com>
7224 * expr.c (get_bit_range): Handle *offset == NULL_TREE.
7225 (expand_assignment): If *bitpos is negative, set *offset
7226 and adjust *bitpos, so that it is not negative.
7228 2013-11-06 Ganesh Gopalasubramanian <Ganesh.Gopalasubramanian@amd.com>
7230 * config/i386/bdver3.md : Added two additional decoder units
7231 to support issue rate of 4 and remodeled vector unit.
7232 * config/i386/i386.c (ix86_issue_rate): Issue rate for BD
7233 architectures is set to 4.
7234 * config/i386/i386.c (ia32_multipass_dfa_lookahead): DFA
7235 lookahead is set to 4 for BD architectures.
7237 2013-11-05 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
7239 * config/rs6000/rs6000.c (rs6000_option_override_internal):
7240 Remove restriction against use of VSX instructions when generating
7241 code for little endian mode.
7243 2013-11-05 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
7245 * config/rs6000/altivec.md (mulv4si3): Ensure we generate vmulouh
7246 for both big and little endian.
7247 (mulv8hi3): Swap input operands for merge high and merge low
7248 instructions for little endian.
7250 2013-11-05 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
7252 * config/rs6000/altivec.md (vec_widen_umult_even_v16qi): Change
7253 define_insn to define_expand that uses even patterns for big
7254 endian and odd patterns for little endian.
7255 (vec_widen_smult_even_v16qi): Likewise.
7256 (vec_widen_umult_even_v8hi): Likewise.
7257 (vec_widen_smult_even_v8hi): Likewise.
7258 (vec_widen_umult_odd_v16qi): Likewise.
7259 (vec_widen_smult_odd_v16qi): Likewise.
7260 (vec_widen_umult_odd_v8hi): Likewise.
7261 (vec_widen_smult_odd_v8hi): Likewise.
7262 (altivec_vmuleub): New define_insn.
7263 (altivec_vmuloub): Likewise.
7264 (altivec_vmulesb): Likewise.
7265 (altivec_vmulosb): Likewise.
7266 (altivec_vmuleuh): Likewise.
7267 (altivec_vmulouh): Likewise.
7268 (altivec_vmulesh): Likewise.
7269 (altivec_vmulosh): Likewise.
7271 2013-11-05 Mike Stump <mikestump@comcast.net>
7273 * Makefile.in (mostlyclean): Remove c-family objects.
7275 2013-11-05 Ian Lance Taylor <iant@google.com>
7277 * config/i386/sync.md (atomic_compare_and_swap<dwi>_doubleword):
7278 If possible, add .cfi directives to record change to bx.
7279 * config/i386/i386.c (ix86_emit_cfi): New function.
7280 * config/i386/i386-protos.h (ix86_emit_cfi): Declare.
7282 2013-11-05 Steven Bosscher <steven@gcc.gnu.org>
7284 * rtlanal.c (tablejump_p): Expect a JUMP_TABLE_DATA to always follow
7285 immediately after a label for a tablejump pattern.
7287 * config/arm/arm.c (is_jump_table): Remove.
7288 (create_fix_barrier): Use tablejump_p instead.
7289 (arm_reorg): Likewise.
7290 (thumb1_output_casesi): Expect JUMP_TABLE_DATA to always be NEXT_INSN.
7291 (thumb2_output_casesi): Likewise.
7292 * config/aarch64/aarch64.c (aarch64_output_casesi): Likewise.
7293 * config/sh/sh.md (casesi_worker_1, casesi_worker_2,
7294 casesi_shift_media, casesi_load_media): Likewise.
7295 * config/iq2000/iq2000.md: Likewise (in anonymous define_insn).
7296 * config/microblaze/microblaze.md: Likewise.
7298 2013-11-05 Tobias Burnus <burnus@net-b.de>
7300 * doc/invoke.texi (-Wdate-time): Document.
7302 2013-11-05 Richard Sandiford <rdsandiford@googlemail.com>
7304 * double-int.c (lshift_double, rshift_double): Remove
7305 SHIFT_COUNT_TRUNCATED handling.
7307 2013-11-05 Jeff Law <law@redhat.com>
7309 * Makefile.in (OBJS): Add gimple-ssa-isolate-paths.o
7310 * common.opt (-fisolate-erroneous-paths): Add option and documentation.
7311 * gimple-ssa-isolate-paths.c: New file.
7312 * gimple.c (check_loadstore): New function.
7313 (infer_nonnull_range): Moved into gimple.c from tree-vrp.c
7314 Verify OP is in the argument list and the argument corresponding
7315 to OP is a pointer type. Use operand_equal_p rather than
7316 pointer equality when testing if OP is on the nonnull list.
7317 Use check_loadstore rather than count_ptr_derefs. Handle
7318 GIMPLE_RETURN statements.
7319 * tree-vrp.c (infer_nonnull_range): Remove.
7320 * gimple.h (infer_nonnull_range): Declare.
7321 * opts.c (default_options_table): Add OPT_fisolate_erroneous_paths.
7322 * passes.def: Add pass_isolate_erroneous_paths.
7323 * timevar.def (TV_ISOLATE_ERRONEOUS_PATHS): New timevar.
7324 * tree-pass.h (make_pass_isolate_erroneous_paths): Declare.
7325 * tree-ssa.c (struct count_ptr_d): Remove.
7326 (count_ptr_derefs, count_uses_and_derefs): Remove.
7327 * tree-ssa.h (count_uses_and_derefs): Remove.
7329 2013-11-05 Jakub Jelinek <jakub@redhat.com>
7331 PR rtl-optimization/58997
7332 * loop-iv.c (iv_subreg): For IV_UNKNOWN_EXTEND, expect
7333 get_iv_value to be in iv->mode rather than iv->extend_mode.
7334 (iv_extend): Likewise. Otherwise, if iv->extend != extend,
7335 use lowpart_subreg on get_iv_value before calling simplify_gen_unary.
7336 * loop-unswitch.c (may_unswitch_on): Make sure op[i] is in the right
7339 2013-11-05 Andrew MacLeod <amacleod@redhat.com>
7341 * gimple.h: Move some prototypes to gimple-expr.h and add to include
7343 (extract_ops_from_tree, gimple_call_addr_fndecl, is_gimple_reg_type):
7344 Move to gimple-expr.h.
7345 * gimple-expr.h: New file. Relocate some prototypes from gimple.h.
7346 (types_compatible_p, is_gimple_reg_type, is_gimple_variable,
7347 is_gimple_id, virtual_operand_p, is_gimple_addressable,
7348 is_gimple_constant, extract_ops_from_tree, gimple_call_addr_fndecl):
7350 * gimple.c (extract_ops_from_tree_1, gimple_cond_get_ops_from_tree,
7351 gimple_set_body, gimple_body, gimple_has_body_p, is_gimple_lvalue,
7352 is_gimple_condexpr, is_gimple_addressable, is_gimple_constant,
7353 is_gimple_address, is_gimple_invariant_address,
7354 is_gimple_ip_invariant_address, is_gimple_min_invariant,
7355 is_gimple_ip_invariant, is_gimple_variable, is_gimple_id,
7356 virtual_operand_p, is_gimple_reg, is_gimple_val, is_gimple_asm_val,
7357 is_gimple_min_lval, is_gimple_call_addr, is_gimple_mem_ref_addr,
7358 gimple_decl_printable_name, useless_type_conversion_p,
7359 types_compatible_p, gimple_can_coalesce_p, copy_var_decl): Move to
7361 * gimple-expr.c: New File.
7362 (useless_type_conversion_p, gimple_set_body, gimple_body,
7363 gimple_has_body_p, gimple_decl_printable_name, copy_var_decl,
7364 gimple_can_coalesce_p, extract_ops_from_tree_1,
7365 gimple_cond_get_ops_from_tree, is_gimple_lvalue, is_gimple_condexpr,
7366 is_gimple_address, is_gimple_invariant_address,
7367 is_gimple_ip_invariant_address, is_gimple_min_invariant,
7368 is_gimple_ip_invariant, is_gimple_reg, is_gimple_val,
7369 is_gimple_asm_val, is_gimple_min_lval, is_gimple_call_addr,
7370 is_gimple_mem_ref_addr): Relocate here.
7371 * Makefile.in (OBJS): Add gimple-expr.o.
7373 2013-11-05 David Malcolm <dmalcolm@redhat.com>
7375 * gengtype-parse.c (struct_field_seq): Support empty structs.
7377 2013-11-05 Uros Bizjak <ubizjak@gmail.com>
7379 * config/i386/t-rtems (MULTILIB_MATCHES): Fix option typos.
7381 2013-11-05 Uros Bizjak <ubizjak@gmail.com>
7383 * config/i386/i386-c.c (ix86_target_macros): Define _SOFT_FLOAT
7385 * config/i386/rtemself.h (TARGET_OS_CPP_BUILTINS): Do not define
7387 (LONG_DOUBLE_TYPE_SIZE): New define.
7388 (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Ditto.
7390 2013-11-05 Paolo Carlini <paolo.carlini@oracle.com>
7393 * doc/extend.texi [visibility ("visibility_type")]: Add example
7394 about visibility attribute on namespace declaration.
7396 2013-11-05 Richard Biener <rguenther@suse.de>
7399 * passes.def (all_passes): Start with pass_fixup_cfg again.
7401 2013-11-05 Richard Biener <rguenther@suse.de>
7403 PR tree-optimization/58955
7404 * tree-loop-distribution.c (pg_add_dependence_edges): Fix
7407 2013-11-05 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
7409 * config/rs6000/vector.md (vec_pack_sfix_trunc_v2df): Adjust for
7411 (vec_pack_ufix_trunc_v2df): Likewise.
7413 2013-11-05 H.J. Lu <hongjiu.lu@intel.com>
7416 * doc/md.texi (@code{movmem@var{m}}): Specify Pmode as mode of
7417 pattern, instead of word_mode.
7419 * expr.c (emit_block_move_via_movmem): Don't use mode wider than
7421 (set_storage_via_setmem): Likewise.
7423 2013-11-05 Andrew MacLeod <amacleod@redhat.com>
7425 * tree-outof-ssa.c (queue_phi_copy_p): Combine phi_ssa_name_p from
7426 gimple.h and the rest of the condition in eliminate_build.
7427 (eliminate_build): Call new routine.
7428 * gimple.h (phi_ssa_name_p): Delete.
7430 2013-11-05 Trevor Saunders <tsaunders@mozilla.com>
7432 * vec.c (vec_prefix::calculate_allocation): Don't try to handle the
7433 case of no prefix and reserving zero slots, because when that's the
7434 case we'll never get here.
7435 * vec.h (va_heap::reserve): Don't try and handle
7436 vec_prefix::calculate_allocation returning zero because that should
7439 2013-11-05 Richard Biener <rguenther@suse.de>
7442 * tree-dfa.c (get_ref_base_and_extent): Merge common code
7443 in MEM_REF and TARGET_MEM_REF handling. Make sure to
7444 process trailing array detection before diving into the
7445 view-converted object (and possibly apply some extra offset).
7447 2013-11-05 Joseph Myers <joseph@codesourcery.com>
7449 * config/i386/i386.c (ix86_float_exceptions_rounding_supported_p):
7451 (TARGET_FLOAT_EXCEPTIONS_ROUNDING_SUPPORTED_P): Define.
7453 2013-11-05 Marc Glisse <marc.glisse@inria.fr>
7455 PR tree-optimization/58958
7456 * tree-ssa-alias.c (ao_ref_init_from_ptr_and_size): Use
7457 get_addr_base_and_unit_offset instead of get_ref_base_and_extent.
7459 2013-11-05 Marc Glisse <marc.glisse@inria.fr>
7461 * tree-ssa-alias.h (ranges_overlap_p): Handle negative offsets.
7462 * tree-ssa-alias.c (ao_ref_init_from_ptr_and_size): Likewise.
7464 2013-11-05 Jakub Jelinek <jakub@redhat.com>
7466 PR tree-optimization/58984
7467 * ipa-prop.c (ipa_load_from_parm_agg_1): Add SIZE_P argument,
7468 set *SIZE_P if non-NULL on success.
7469 (ipa_load_from_parm_agg, ipa_analyze_indirect_call_uses): Adjust
7471 (ipcp_transform_function): Likewise. Punt if size of access
7472 is different from TYPE_SIZE on v->value's type.
7474 2013-11-05 Tobias Burnus <burnus@net-b.de>
7476 * doc/invoke.texi (-fopenmp-simd): Document new option.
7477 * gimplify.c (gimplify_body): Accept -fopenmp-simd.
7478 * omp-low.c (execute_expand_omp, execute_lower_omp): Ditto.
7479 * tree.c (attribute_value_equal): Ditto.
7481 2013-11-04 Wei Mi <wmi@google.com>
7483 * sched-rgn.c (add_branch_dependences): Keep insns in
7484 a SCHED_GROUP at the end of BB to remain their location.
7486 2013-11-04 Wei Mi <wmi@google.com>
7488 * config/i386/i386.c (memory_address_length): Extract a part
7489 of code to rip_relative_addr_p.
7490 (rip_relative_addr_p): New Function.
7491 (ix86_macro_fusion_p): Ditto.
7492 (ix86_macro_fusion_pair_p): Ditto.
7493 * config/i386/i386.h: Add new tune features about macro-fusion.
7494 * config/i386/x86-tune.def (DEF_TUNE): Ditto.
7495 * doc/tm.texi: Generated.
7496 * doc/tm.texi.in: Ditto.
7497 * haifa-sched.c (try_group_insn): New Function.
7498 (group_insns_for_macro_fusion): Ditto.
7499 (sched_init): Call group_insns_for_macro_fusion.
7500 * target.def: Add two hooks: macro_fusion_p and
7501 macro_fusion_pair_p.
7503 2013-11-04 Kostya Serebryany <kcc@google.com>
7505 Update to match the changed asan API.
7506 * asan.c (asan_function_start): New function.
7507 (asan_emit_stack_protection): Update the string stored in the
7508 stack red zone to match new API. Store the PC of the current
7509 function in the red zone.
7510 (asan_global_struct): Update the __asan_global definition to match
7512 (asan_add_global): Ditto.
7513 * asan.h (asan_function_start): New prototype.
7514 * final.c (final_start_function): Call asan_function_start.
7515 * sanitizer.def (BUILT_IN_ASAN_INIT): Rename __asan_init_v1
7518 2013-11-04 Wei Mi <wmi@google.com>
7520 * config/i386/i386-c.c (ix86_target_macros_internal): Separate
7521 PROCESSOR_COREI7_AVX out from PROCESSOR_COREI7.
7522 * config/i386/i386.c (ix86_option_override_internal): Ditto.
7523 (ix86_issue_rate): Ditto.
7524 (ix86_adjust_cost): Ditto.
7525 (ia32_multipass_dfa_lookahead): Ditto.
7526 (ix86_sched_init_global): Ditto.
7527 (get_builtin_code_for_version): Ditto.
7528 * config/i386/i386.h (enum target_cpu_default): Ditto.
7529 (enum processor_type): Ditto.
7530 * config/i386/x86-tune.def (DEF_TUNE): Ditto.
7532 2013-11-04 Vladimir Makarov <vmakarov@redhat.com>
7534 PR rtl-optimization/58967
7535 * config/rs6000/rs6000.c (legitimate_lo_sum_address_p): Remove
7536 !lra_in_progress for mode sizes bigger word.
7538 2013-11-04 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
7540 * config/rs6000/altivec.md (vec_widen_umult_hi_v16qi): Swap
7541 arguments to merge instruction for little endian.
7542 (vec_widen_umult_lo_v16qi): Likewise.
7543 (vec_widen_smult_hi_v16qi): Likewise.
7544 (vec_widen_smult_lo_v16qi): Likewise.
7545 (vec_widen_umult_hi_v8hi): Likewise.
7546 (vec_widen_umult_lo_v8hi): Likewise.
7547 (vec_widen_smult_hi_v8hi): Likewise.
7548 (vec_widen_smult_lo_v8hi): Likewise.
7550 2013-11-04 Ian Lance Taylor <iant@google.com>
7552 * builtins.def (ATTR_NOTHROWCALL_LEAF_LIST): Define.
7553 * sync-builtins.def: Use ATTR_NOTHROWCALL_LEAF_LIST for all sync
7554 builtins that take pointers.
7555 * lto-opts.c (lto_write_options): Write -fnon-call-exceptions if set.
7556 * lto-wrapper.c (merge_and_complain): Collect OPT_fnon_call_exceptions.
7557 (run_gcc): Pass -fnon-call-exceptions.
7559 2013-11-04 Jakub Jelinek <jakub@redhat.com>
7561 * optabs.c (expand_vec_perm): Revert one incorrect line from
7564 PR tree-optimization/58978
7565 * tree-vrp.c (all_imm_uses_in_stmt_or_feed_cond): Don't modify
7566 use_stmt by single_imm_use directly. Only call single_imm_use
7569 2013-11-04 Vladimir Makarov <vmakarov@redhat.com>
7571 PR rtl-optimization/58968
7572 * lra-spills.c (return_regno_p): New function.
7573 (lra_final_code_change): Use it.
7575 2013-11-04 Joseph Myers <joseph@codesourcery.com>
7577 * doc/cpp.texi (__GCC_IEC_559, __GCC_IEC_559_COMPLEX): Document macros.
7578 * target.def (float_exceptions_rounding_supported_p): New hook.
7579 * targhooks.c (default_float_exceptions_rounding_supported_p): New
7581 * targhooks.h (default_float_exceptions_rounding_supported_p): Declare.
7582 * doc/tm.texi.in (TARGET_FLOAT_EXCEPTIONS_ROUNDING_SUPPORTED_P):
7584 * doc/tm.texi: Regenerate.
7585 * config.gcc (powerpc*-*-linux*): Set extra_objs.
7586 * config/rs6000/rs6000-linux.c: New file.
7587 * config/rs6000/rs6000-protos.h
7588 (rs6000_linux_float_exceptions_rounding_supported_p): Declare.
7589 * config/rs6000/linux.h
7590 (TARGET_FLOAT_EXCEPTIONS_ROUNDING_SUPPORTED_P): New macro.
7591 * config/rs6000/linux64.h
7592 (TARGET_FLOAT_EXCEPTIONS_ROUNDING_SUPPORTED_P): Likewise.
7593 * config/rs6000/t-linux (rs6000-linux.o): New rule.
7594 * config/rs6000/t-linux64 (rs6000-linux.o): Likewise.
7596 2013-11-04 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
7598 * config/rs6000/vsx.md (*vsx_le_perm_store_<mode> for VSX_D):
7599 Replace the define_insn_and_split with a define_insn and two
7600 define_splits, with the split after reload re-permuting the source
7601 register to its original value.
7602 (*vsx_le_perm_store_<mode> for VSX_W): Likewise.
7603 (*vsx_le_perm_store_v8hi): Likewise.
7604 (*vsx_le_perm_store_v16qi): Likewise.
7606 2013-11-04 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
7608 * config/rs6000/vector.md (vec_pack_trunc_v2df): Adjust for
7611 2013-11-04 Jakub Jelinek <jakub@redhat.com>
7613 PR tree-optimization/58946
7614 * tree-ssa-reassoc.c (maybe_optimize_range_tests): Update all
7615 bbs with bbinfo[idx].op != NULL before all blocks with
7616 bbinfo[idx].op == NULL.
7618 2013-11-04 Richard Sandiford <rdsandiford@googlemail.com>
7620 * config/avr/avr-log.c (avr_double_int_pop_digit): Delete.
7621 (avr_dump_double_int_hex): Likewise.
7622 (avr_log_vadump): Remove %D and %X handling.
7623 * config/avr/avr.c (avr_double_int_push_digit): Delete.
7624 (avr_map_op_t): Change map from double_int to unsigned int.
7625 (avr_map_op): Update accordingly.
7626 (avr_map, avr_map_metric, avr_has_nibble_0xf, avr_map_decompose)
7627 (avr_move_bits, avr_out_insert_bits, avr_fold_builtin): Operate on
7628 unsigned ints rather than double_ints.
7630 2013-11-03 Marek Polacek <polacek@redhat.com>
7632 Implement -fsanitize=vla-bound.
7633 * opts.c (common_handle_option): Handle vla-bound.
7634 * sanitizer.def (BUILT_IN_UBSAN_HANDLE_VLA_BOUND_NOT_POSITIVE): Define.
7635 * flag-types.h (enum sanitize_code): Add SANITIZE_VLA.
7636 * asan.c (initialize_sanitizer_builtins): Build BT_FN_VOID_PTR_PTR.
7638 2013-11-02 Bill Schmidt <wschmidt@vnet.linux.ibm.com>
7640 * config/rs6000/rs6000.c (rs6000_expand_vector_set): Adjust for
7643 2013-11-02 Uros Bizjak <ubizjak@gmail.com>
7645 * config/i386/constraints.md (Ts, Tv): New address constrains.
7646 * config/i386/i386.md (*lea<mode>, *<mode>_<bndcheck>): Use Ts
7647 constraint for address_no_seg_operand.
7648 * config/i386/sse.md (*avx512pf_gatherpf<mode>_mask)
7649 (*avx512pf_gatherpf<mode>, *avx512pf_scatterpf<mode>_mask)
7650 (*avx512pf_scatterpf<mode>, *avx2_gathersi<mode>)
7651 (*avx2_gathersi<mode>_2, *avx2_gatherdi<mode>, *avx2_gatherdi<mode>_2)
7652 (*avx2_gatherdi<mode>_3, *avx2_gatherdi<mode>_4)
7653 (*avx512f_gathersi<mode>, *avx512f_gathersi<mode>_2)
7654 (*avx512f_gatherdi<mode>, *avx512f_gatherdi<mode>_2)
7655 (*avx512f_scattersi<mode> *avx512f_scatterdi<mode>): Use Tv
7656 constraint for vsib_address_operand.
7658 2013-11-02 Steven Bosscher <steven@gcc.gnu.org>
7660 * gcse.c (pre_delete): Remove references to regmove from comments.
7661 * recog.c: (validate_replace_rtx_1): Likewise.
7662 * config/rl78/rl78.c: Likewise.
7663 * config/v850/v850.h: Likewise, and remove unused ENABLE_REGMOVE_PASS.
7664 * common/config/m32r/m32r-common.c: Don't manipulate OPT_fregmove.
7665 * common/config/mmix/mmix-common.c: Likewise.
7667 2013-11-01 Trevor Saunders <tsaunders@mozilla.com>
7669 * function.c (reorder_blocks): Convert block_stack to a stack_vec.
7670 * gimplify.c (gimplify_compound_lval): Likewise.
7671 * graphite-clast-to-gimple.c (gloog): Likewise.
7672 * graphite-dependences.c (loop_is_parallel_p): Likewise.
7673 * graphite-scop-detection.c (scopdet_basic_block_info): Likewise.
7674 (limit_scop); Likewise.
7675 (build_scops): Likewise.
7676 (dot_scop): Likewise.
7677 * graphite-sese-to-poly.c (sese_dom_walker): Likewise.
7678 (build_scop_drs): Likewise.
7679 (insert_stmts): Likewise.
7680 (insert_out_of_ssa_copy): Likewise.
7681 (remove_phi): Likewise.
7682 (rewrite_commutative_reductions_out_of_ssa_close_phi): Likewise.
7683 * hw-doloop.c (discover_loop): Likewise.
7684 * tree-call-cdce.c (shrink_wrap_one_built_in_call): Likewise.
7685 * tree-dfa.c (dump_enumerated_decls): Likewise.
7686 * tree-if-conv.c (if_convertable_loop_p): Likewise.
7687 * tree-inline.c (tree_function_versioning): Likewise.
7688 * tree-loop-distribution.c (build_rdg): Likewise.
7689 (rdg_flag_vertex_and_dependent): Likewise.
7690 (distribute_loop): Likewise.
7691 * tree-parloops.c (loop_parallel_p): Likewise.
7692 (eliminate_local_variables): Likewise.
7693 (separate_decls_in_region): Likewise.
7694 * tree-predcom.c (tree_predictive_commoning_loop): Likewise.
7695 * tree-ssa-phiopt.c (cond_if_else_store_replacement): Likewise.
7696 * tree-ssa-uncprop.c (uncprop_dom_walker): Likewise.
7697 * tree-vect-loop.c (vect_analyze_scaler_cycles_1): Likewise.
7698 * tree-vect-patterns.c (vect_pattern_recog): Likewise.
7699 * tree-vect-stmts.c (vect_mark_stmts_to_be_vectorized): Likewise.
7700 (vectorizable_condition): Likewise.
7702 2013-11-01 Uros Bizjak <ubizjak@gmail.com>
7704 * configure.ac (HAVE_AS_IX86_INTERUNIT_MOVQ): Always define as 0/1.
7705 * configure: Regenerate.
7706 * config/i386/i386.md (*movdi_internal): Change
7707 HAVE_AS_IX86_INTERUNIT_MOVQ to runtime check.
7708 (*movdf_internal): Ditto.
7709 * config/i386/mmx.md (*mov<mode>_internal): Ditto.
7710 * config/i386/sse.md (vec_concatv2di): Output interunit movq
7711 for HAVE_AS_IX86_INTERUNIT_MOVQ targets.
7713 2013-10-31 Robert Suchanek <Robert.Suchanek@imgtec.com>
7715 * lra-spills.c (assign_spill_hard_regs): Remove statement terminator
7718 2013-10-31 David Malcolm <dmalcolm@redhat.com>
7720 Automated part of renaming of symtab_node_base to symtab_node.
7722 Patch autogenerated by rename_symtab.py from
7723 https://github.com/davidmalcolm/gcc-refactoring-scripts
7724 revision 58bb219cc090b2f4516a9297d868c245495ee622
7725 with ChangeLog entry fixed up by hand.
7727 * cgraph.c (x_cgraph_nodes_queue): Rename symtab_node_base to
7729 (cgraph_node_for_asm): Likewise.
7730 * cgraph.h (symtab_node_base): Likewise.
7731 (cgraph_node): Likewise.
7732 (varpool_node): Likewise.
7733 (is_a_helper <cgraph_node>::test): Likewise.
7734 (is_a_helper <varpool_node>::test): Likewise.
7735 (symtab_nodes): Likewise.
7736 (symtab_register_node): Likewise.
7737 (symtab_unregister_node): Likewise.
7738 (symtab_remove_node): Likewise.
7739 (symtab_get_node): Likewise.
7740 (symtab_node_for_asm): Likewise.
7741 (symtab_node_asm_name): Likewise.
7742 (symtab_node_name): Likewise.
7743 (symtab_insert_node_to_hashtable): Likewise.
7744 (symtab_add_to_same_comdat_group): Likewise.
7745 (symtab_dissolve_same_comdat_group_list): Likewise.
7746 (dump_symtab_node): Likewise.
7747 (debug_symtab_node): Likewise.
7748 (dump_symtab_base): Likewise.
7749 (verify_symtab_node): Likewise.
7750 (verify_symtab_base): Likewise.
7751 (symtab_used_from_object_file_p): Likewise.
7752 (symtab_alias_ultimate_target): Likewise.
7753 (symtab_resolve_alias): Likewise.
7754 (fixup_same_cpp_alias_visibility): Likewise.
7755 (symtab_for_node_and_aliases): Likewise.
7756 (symtab_nonoverwritable_alias): Likewise.
7757 (availability symtab_node_availability): Likewise.
7758 (symtab_semantically_equivalent_p): Likewise.
7759 (fixup_same_cpp_alias_visibility): Likewise.
7760 (symtab_prevail_in_asm_name_hash): Likewise.
7762 (varpool): Likewise.
7763 (varpool_first_variable): Likewise.
7764 (varpool_next_variable): Likewise.
7765 (varpool_first_static_initializer): Likewise.
7766 (varpool_next_static_initializer): Likewise.
7767 (varpool_first_defined_variable): Likewise.
7768 (varpool_next_defined_variable): Likewise.
7769 (cgraph_first_defined_function): Likewise.
7770 (cgraph_next_defined_function): Likewise.
7771 (cgraph_first_function): Likewise.
7772 (cgraph_next_function): Likewise.
7773 (cgraph_first_function_with_gimple_body): Likewise.
7774 (cgraph_next_function_with_gimple_body): Likewise.
7775 (symtab_alias_target): Likewise.
7776 (symtab_real_symbol_p): Likewise.
7777 (symtab_can_be_discarded): Likewise.
7778 * cgraphbuild.c (mark_address): Likewise.
7779 (mark_load): Likewise.
7780 (mark_store): Likewise.
7781 * cgraphunit.c (decide_is_symbol_needed): Likewise.
7783 (enqueue_node): Likewise.
7784 (referred_to_p): Likewise.
7785 (cgraph_process_same_body_aliases): Likewise.
7786 (analyze_functions): Likewise.
7787 (handle_alias_pairs): Likewise.
7788 (output_weakrefs): Likewise.
7789 (compile): Likewise.
7790 * gimple-fold.c (can_refer_decl_in_current_unit_p): Likewise.
7791 * ipa-inline-analysis.c (inline_write_summary): Likewise.
7792 * ipa-prop.c (remove_described_reference): Likewise.
7793 (try_decrement_rdesc_refcount): Likewise.
7794 (ipa_edge_duplication_hook): Likewise.
7795 * ipa-ref.c (ipa_record_reference): Likewise.
7796 (ipa_maybe_record_reference): Likewise.
7797 (ipa_clone_ref): Likewise.
7798 (ipa_clone_references): Likewise.
7799 (ipa_clone_referring): Likewise.
7800 (ipa_find_reference): Likewise.
7801 (ipa_remove_stmt_references): Likewise.
7802 (ipa_clear_stmts_in_references): Likewise.
7803 * ipa-ref.h (symtab_node_base): Likewise.
7804 (ipa_ref): Likewise.
7805 (ipa_record_reference): Likewise.
7806 (ipa_maybe_record_reference): Likewise.
7807 (ipa_clone_references): Likewise.
7808 (ipa_clone_referring): Likewise.
7809 (ipa_clone_ref): Likewise.
7810 (ipa_find_reference): Likewise.
7811 (ipa_remove_stmt_references): Likewise.
7812 (ipa_clear_stmts_in_references): Likewise.
7813 * ipa-reference.c (ipa_reference_write_optimization_summary):
7815 * ipa.c (enqueue_node): Likewise.
7816 (process_references): Likewise.
7817 (walk_polymorphic_call_targets): Likewise.
7818 (symtab_remove_unreachable_nodes): Likewise.
7819 (address_taken_from_non_vtable_p): Likewise.
7820 (comdat_can_be_unshared_p_1): Likewise.
7821 (comdat_can_be_unshared_p): Likewise.
7822 (can_replace_by_local_alias): Likewise.
7823 (function_and_variable_visibility): Likewise.
7824 * is-a.h: Likewise (within example in comment).
7825 * lto-cgraph.c (input_cgraph_opt_summary): Likewise.
7826 (lto_symtab_encoder_encode): Likewise.
7827 (lto_symtab_encoder_delete_node): Likewise.
7828 (lto_symtab_encoder_in_partition_p): Likewise.
7829 (lto_set_symtab_encoder_in_partition): Likewise.
7830 (output_refs): Likewise.
7831 (compute_ltrans_boundary): Likewise.
7832 (output_symtab): Likewise.
7833 (input_node): Likewise.
7834 (input_ref): Likewise.
7835 (input_edge): Likewise.
7836 (input_cgraph_1): Likewise.
7837 (input_refs): Likewise.
7838 (output_cgraph_opt_summary): Likewise.
7839 (input_node_opt_summary): Likewise.
7840 (input_cgraph_opt_section): Likewise.
7841 * lto-section-in.c (lto_free_function_in_decl_state_for_node):
7843 * lto-streamer-out.c (lto_output): Likewise.
7844 (output_symbol_p): Likewise.
7845 (produce_symtab): Likewise.
7846 * lto-streamer.h (lto_encoder_entry): Likewise.
7847 (lto_free_function_in_decl_state_for_node): Likewise.
7848 (lto_symtab_encoder_encode): Likewise.
7849 (lto_symtab_encoder_delete_node): Likewise.
7850 (lto_symtab_encoder_in_partition_p): Likewise.
7851 (lto_set_symtab_encoder_in_partition): Likewise.
7852 (lto_symtab_encoder_lookup): Likewise.
7853 (lsei_node): Likewise.
7854 (lto_symtab_encoder_deref): Likewise.
7855 * symtab.c (symtab_hash): Likewise.
7856 (assembler_name_hash): Likewise.
7857 (symtab_nodes): Likewise.
7858 (hash_node): Likewise.
7859 (eq_node): Likewise.
7860 (hash_node_by_assembler_name): Likewise.
7861 (eq_assembler_name): Likewise.
7862 (insert_to_assembler_name_hash): Likewise.
7863 (unlink_from_assembler_name_hash): Likewise.
7864 (symtab_prevail_in_asm_name_hash): Likewise.
7865 (symtab_register_node): Likewise.
7866 (symtab_insert_node_to_hashtable): Likewise.
7867 (symtab_unregister_node): Likewise.
7868 (symtab_get_node): Likewise.
7869 (symtab_remove_node): Likewise.
7870 (symtab_initialize_asm_name_hash): Likewise.
7871 (symtab_node_for_asm): Likewise.
7872 (symtab_add_to_same_comdat_group): Likewise.
7873 (symtab_dissolve_same_comdat_group_list): Likewise.
7874 (symtab_node_asm_name): Likewise.
7875 (symtab_node_name): Likewise.
7876 (dump_symtab_base): Likewise.
7877 (dump_symtab_node): Likewise.
7878 (dump_symtab): Likewise.
7879 (debug_symtab_node): Likewise.
7880 (verify_symtab_base): Likewise.
7881 (verify_symtab_node): Likewise.
7882 (verify_symtab): Likewise.
7883 (symtab_used_from_object_file_p): Likewise.
7884 (symtab_node_availability): Likewise.
7885 (symtab_alias_ultimate_target): Likewise.
7886 (fixup_same_cpp_alias_visibility): Likewise.
7887 (symtab_resolve_alias): Likewise.
7888 (symtab_for_node_and_aliases): Likewise.
7889 (symtab_for_node_and_aliases): Likewise.
7890 (symtab_nonoverwritable_alias_1): Likewise.
7891 (symtab_nonoverwritable_alias): Likewise.
7892 (symtab_semantically_equivalent_p): Likewise.
7893 * value-prof.c (init_node_map): Likewise.
7894 * varasm.c (find_decl): Likewise.
7895 * varpool.c (varpool_node_for_asm): Likewise.
7896 (varpool_remove_unreferenced_decls): Likewise.
7898 2013-10-31 David Malcolm <dmalcolm@redhat.com>
7900 Manual part of renaming of symtab_node_base to symtab_node.
7902 * ipa-ref.h (symtab_node): Remove typedef to pointer type, as it
7903 clashes with the preferred name for the base class.
7904 (const_symtab_node): Remove redundant typedef.
7906 2013-10-31 Jakub Jelinek <jakub@redhat.com>
7908 * optabs.c (expand_vec_perm): Avoid vector mode punning
7909 SUBREGs in SET_DEST.
7910 * expmed.c (store_bit_field_1): Likewise.
7911 * config/i386/sse.md (movdi_to_sse, vec_pack_sfix_trunc_v2df,
7912 vec_pack_sfix_v2df, vec_shl_<mode>, vec_shr_<mode>,
7913 vec_interleave_high<mode>, vec_interleave_low<mode>): Likewise.
7914 * config/i386/i386.c (ix86_expand_vector_move_misalign,
7915 ix86_expand_sse_movcc, ix86_expand_int_vcond, ix86_expand_vec_perm,
7916 ix86_expand_sse_unpack, ix86_expand_args_builtin,
7917 ix86_expand_vector_init_duplicate, ix86_expand_vector_set,
7918 emit_reduc_half, expand_vec_perm_blend, expand_vec_perm_pshufb,
7919 expand_vec_perm_interleave2, expand_vec_perm_pshufb2,
7920 expand_vec_perm_vpshufb2_vpermq,
7921 expand_vec_perm_vpshufb2_vpermq_even_odd, expand_vec_perm_even_odd_1,
7922 expand_vec_perm_broadcast_1, expand_vec_perm_vpshufb4_vpermq2,
7923 ix86_expand_sse2_mulv4si3, ix86_expand_pinsr): Likewise.
7924 (expand_vec_perm_palignr): Likewise. Modify a copy of *d rather
7927 2013-10-31 Uros Bizjak <ubizjak@gmail.com>
7929 * config/i386/i386.c (ix86_expand_sse2_abs): Rename function arguments.
7930 Use gcc_unreachable for unhandled modes. Do not check results of
7931 expand_simple_binop. If not expanded to target, move the result.
7933 2013-10-31 Chung-Ju Wu <jasonwucj@gmail.com>
7934 Shiva Chen <shiva0217@gmail.com>
7936 * config.gcc (nds32*-*-*): Add nds32 target.
7937 * config/nds32/nds32.c: New file.
7938 * config/nds32/nds32.h: New file.
7939 * config/nds32/nds32.md: New file.
7940 * config/nds32/constants.md: New file.
7941 * config/nds32/constraints.md: New file.
7942 * config/nds32/iterators.md: New file.
7943 * config/nds32/nds32-doubleword.md: New file.
7944 * config/nds32/nds32-intrinsic.md: New file.
7945 * config/nds32/nds32_intrinsic.h: New file.
7946 * config/nds32/nds32-modes.def: New file.
7947 * config/nds32/nds32-multiple.md: New file.
7948 * config/nds32/nds32.opt: New file.
7949 * config/nds32/nds32-opts.h: New file.
7950 * config/nds32/nds32-protos.h: New file.
7951 * config/nds32/nds32-peephole2.md: New file.
7952 * config/nds32/pipelines.md: New file.
7953 * config/nds32/predicates.md: New file.
7954 * config/nds32/t-mlibs: New file.
7955 * common/config/nds32: New directory and files.
7957 * doc/invoke.texi (NDS32 options): Document nds32 specific options.
7958 * doc/md.texi (NDS32 family): Document nds32 specific constraints.
7959 * doc/install.texi (Cross-Compiler-Specific Options): Document
7960 --with-nds32-lib for nds32 target.
7961 * doc/extend.texi (Function Attributes, Target Builtins): Document
7962 nds32 specific attributes.
7964 2013-10-31 Vladimir Makarov <vmakarov@redhat.com>
7966 * lra-constraints (process_alt_operands): Use the result
7967 elimination register for operand when matching constraints.
7969 2013-10-31 Jakub Jelinek <jakub@redhat.com>
7971 * tree-vrp.c (maybe_set_nonzero_bits): New function.
7972 (remove_range_assertions): Call it.
7974 * tree.c (tree_ctz): New function.
7975 * tree.h (tree_ctz): New prototype.
7976 * tree-ssanames.h (get_range_info, get_nonzero_bits): Change
7977 first argument from tree to const_tree.
7978 * tree-ssanames.c (get_range_info, get_nonzero_bits): Likewise.
7979 * tree-vectorizer.h (vect_generate_tmps_on_preheader): New prototype.
7980 * tree-vect-loop-manip.c (vect_generate_tmps_on_preheader): No longer
7982 * expr.c (highest_pow2_factor): Reimplemented using tree_ctz.
7983 * tree-vect-loop.c (vect_analyze_loop_operations,
7984 vect_transform_loop): Don't force scalar loop for bound just because
7985 number of iterations is unknown, only do it if it is not known to be
7986 a multiple of vectorization_factor.
7987 * builtins.c (get_object_alignment_2): Use tree_ctz on offset.
7989 * gimple-pretty-print.c (dump_ssaname_info): Print newline also
7990 in case of VR_VARYING. Print get_nonzero_bits if not all ones.
7991 * tree-ssanames.h (struct range_info_def): Add nonzero_bits field.
7992 (set_nonzero_bits, get_nonzero_bits): New prototypes.
7993 * tree-ssa-ccp.c (get_default_value): Use get_range_info to see if
7994 a default def isn't partially constant.
7995 (ccp_finalize): If after IPA, set_range_info if integral SSA_NAME
7996 is known to be partially zero.
7997 (evaluate_stmt): If we'd return otherwise VARYING, use get_range_info
7998 to see if a default def isn't partially constant.
7999 * tree-ssanames.c (set_range_info): Initialize nonzero_bits upon
8000 creation of a range, if VR_RANGE, try to improve nonzero_bits from
8002 (set_nonzero_bits, get_nonzero_bits): New functions.
8004 * tree-cfg.c (assert_unreachable_fallthru_edge_p): New function.
8005 * tree-cfg.h (assert_unreachable_fallthru_edge_p): New prototype.
8006 * tree-vrp.c (all_imm_uses_in_stmt_or_feed_cond): New function.
8007 (remove_range_assertions): If ASSERT_EXPR_VAR has no other immediate
8008 uses but in the condition and ASSERT_EXPR and the other successor of
8009 the predecessor bb is __builtin_unreachable (), set_range_info of the
8010 ASSERT_EXPR_VAR to the range info of the ASSERT_EXPR's lhs.
8012 2013-10-31 Martin Jambor <mjambor@suse.cz>
8014 PR rtl-optimization/58934
8016 2013-10-30 Martin Jambor <mjambor@suse.cz>
8017 PR rtl-optimization/10474
8018 * ira.c (find_moveable_pseudos): Do not calculate dominance info
8020 (interesting_dest_for_shprep): New function.
8021 (split_live_ranges_for_shrink_wrap): Likewise.
8022 (ira): Calculate dominance info and df analysis. Call
8023 split_live_ranges_for_shrink_wrap.
8025 2013-10-31 Richard Sandiford <rsandifo@linux.vnet.ibm.com>
8026 Yury Gribov <y.gribov@samsung.com>
8029 * asan.c (asan_clear_shadow): Allocate a new vreg for temporary
8030 shadow pointer to avoid clobbering the main one.
8032 2013-10-31 Zhenqiang Chen <zhenqiang.chen@linaro.org>
8034 * lower-subreg.c (resolve_simple_move): Copy REG_INC note.
8036 2013-10-30 Vladimir Makarov <vmakarov@redhat.com>
8039 * ira-color.c (update_costs_from_copies): Add new parameter. Use
8040 it for calling update_costs_from_allocno.
8041 (assign_hard_reg): Call restore_costs_from_copies only for
8042 !retry_p. Pass new argument to update_costs_from_copies.
8043 (color_pass): Pass new argument to update_costs_from_copies.
8044 (ira_mark_allocation_change): Ditto.
8046 2013-10-30 Sharad Singhai <singhai@google.com>
8049 * opts.c (common_handle_option): Remove deprecated option
8050 -ftree-vectorizer-verbose.
8051 * doc/invoke.texi (Debugging Options): Ditto.
8052 * opts-global.c (handle_common_deferred_options): Ditto.
8053 (dump_remap_tree_vectorizer_verbose): Delete.
8054 * common.opt: Set -ftree-vectorizer-verbose as an ignored option.
8056 2013-10-30 DJ Delorie <dj@redhat.com>
8058 * config/rx/rx.c (ADD_RX_BUILTIN0): New macro, used for builtins
8059 that take no arguments.
8061 2013-10-30 Joern Rennecke <joern.rennecke@embecosm.com>
8064 * reload1.c (update_eliminables_and_spill): New function, broken
8066 (reload): Use it. Check for frame size change after frame size
8067 alignment, and call update_eliminables_and_spill first if continue-ing.
8069 2013-10-30 Cong Hou <congh@google.com>
8072 * config/i386/i386-protos.h (ix86_expand_sse2_abs): New function.
8073 * config/i386/i386.c (ix86_expand_sse2_abs): New function.
8074 * config/i386/sse.md: Add SSE2 support to abs (8/16/32-bit-int).
8076 2013-10-18 Mikael Pettersson <mikpelinux@gmail.com>
8078 PR rtl-optimization/58369
8079 * reload1.c (compute_reload_subreg_offset): New function.
8080 (choose_reload_regs): Use it to pass endian-correct
8081 offset to subreg_regno_offset.
8083 2013-10-30 Tobias Burnus <burnus@net-b.de>
8086 * tree-cfg.c (replace_loop_annotate): Replace warning by
8089 2013-10-30 Jason Merrill <jason@redhat.com>
8091 * configure.ac (loose_warn): Add -Wno-format if
8092 --disable-build-format-warnings.
8094 2013-10-30 David Malcolm <dmalcolm@redhat.com>
8096 * cgraphunit.c (analyze_functions): Split symtab_node declarations
8097 onto multiple lines to make things easier for rename_symtab.py.
8099 * symtab.c (symtab_dissolve_same_comdat_group_list): Likewise.
8100 (symtab_semantically_equivalent_p): Likewise.
8102 2013-10-30 Vladimir Makarov <vmakarov@redhat.com>
8105 * lra.c (check_rtl): Remove address check before LRA work.
8107 2013-10-30 Marc Glisse <marc.glisse@inria.fr>
8109 * tree-ssa-alias.c (ao_ref_init_from_ptr_and_size): Look for a
8110 POINTER_PLUS_EXPR in the defining statement.
8112 2013-10-30 Vladimir Makarov <vmakarov@redhat.com>
8114 * regmove.c: Remove.
8115 * tree-pass.h (make_pass_regmove): Remove.
8116 * timevar.def (TV_REGMOVE): Remove.
8117 * passes.def (pass_regmove): Remove.
8118 * opts.c (default_options_table): Remove entry for regmove.
8119 * doc/passes.texi: Remove regmove pass description.
8120 * doc/invoke.texi (-foptimize-register-move, -fregmove): Remove
8122 (-fdump-rtl-regmove): Ditto.
8123 * common.opt (foptimize-register-move, fregmove): Ignore.
8124 * Makefile.in (OBJS): Remove regmove.o.
8125 * regmove.c: Remove.
8126 * ira-int.h (struct ira_allocno_pref, ira_pref_t): New structure
8128 (struct ira_allocno) New member allocno_prefs.
8129 (ALLOCNO_PREFS): New macro.
8130 (ira_prefs, ira_prefs_num): New external vars.
8131 (ira_setup_alts, ira_get_dup_out_num, ira_debug_pref): New prototypes.
8132 (ira_debug_prefs, ira_debug_allocno_prefs, ira_create_pref): Ditto.
8133 (ira_add_allocno_pref, ira_remove_pref, ira_remove_allocno_prefs):
8135 (ira_add_allocno_copy_to_list): Remove prototype.
8136 (ira_swap_allocno_copy_ends_if_necessary): Ditto.
8137 (ira_pref_iterator): New type.
8138 (ira_pref_iter_init, ira_pref_iter_cond): New functions.
8139 (FOR_EACH_PREF): New macro.
8140 * ira.c (commutative_constraint_p): Move from ira-conflicts.c.
8141 (ira_get_dup_out_num): Ditto. Rename from get_dup_num. Modify the
8143 (ira_setup_alts): New function.
8144 (decrease_live_ranges_number): New function.
8145 (ira): Call the above function.
8146 * ira-build.c (ira_prefs, ira_prefs_num): New global vars.
8147 (ira_create_allocno): Initialize allocno prefs.
8148 (pref_pool, pref_vec): New static vars.
8149 (initiate_prefs, find_allocno_pref, ira_create_pref): New
8151 (add_allocno_pref_to_list, ira_add_allocno_pref, print_pref): Ditto.
8152 (ira_debug_pref, print_prefs, ira_debug_prefs): Ditto.
8153 (print_allocno_prefs, ira_debug_allocno_prefs, finish_pref): Ditto.
8154 (ira_remove_pref, ira_remove_allocno_prefs, finish_prefs): Ditto.
8155 (ira_add_allocno_copy_to_list): Make static. Rename to
8156 add_allocno_copy_to_list.
8157 (ira_swap_allocno_copy_ends_if_necessary): Make static. Rename to
8158 swap_allocno_copy_ends_if_necessary.
8159 (remove_unnecessary_allocnos, remove_low_level_allocnos): Call
8160 ira_remove_allocno_prefs.
8161 (ira_flattening): Ditto.
8162 (ira_build): Call initiate_prefs, print_prefs.
8163 (ira_destroy): Call finish_prefs.
8164 * ira-color.c (struct update_cost_record): New.
8165 (struct allocno_color_data): Add new member update_cost_records.
8166 (update_cost_record_pool): New static var.
8167 (init_update_cost_records, get_update_cost_record): New functions.
8168 (free_update_cost_record_list, finish_update_cost_records): Ditto.
8169 (struct update_cost_queue_elem): Add member from.
8170 (initiate_cost_update): Call init_update_cost_records.
8171 (finish_cost_update): Call finish_update_cost_records.
8172 (queue_update_cost, get_next_update_cost): Add new param from.
8173 (Update_allocno_cost, update_costs_from_allocno): New functions.
8174 (update_costs_from_prefs): Ditto.
8175 (update_copy_costs): Rename to update_costs_from_copies.
8176 (restore_costs_from_copies): New function.
8177 (update_conflict_hard_regno_costs): Don't go back.
8178 (assign_hard_reg): Call restore_costs_from_copies. Add printing
8180 (pop_allocnos): Add priniting more debug info.
8181 (color_allocnos): Remove prefs for conflicting hard regs.
8182 Call update_costs_from_prefs.
8183 * ira-conflicts.c (commutative_constraint_p): Move to ira.c
8184 (get_dup_num): Rename, modify, and move to ira.c
8185 (process_regs_for_copy): Add prefs.
8186 (add_insn_allocno_copies): Put src as first arg of
8187 process_regs_for_copy. Remove dead code. Call ira_setup_alts.
8188 * ira-costs.c (record_reg_classes): Modify and move code into
8189 record_operands_costs.
8190 (find_costs_and_classes): Create prefs for the hard reg of small
8192 (process_bb_node_for_hard_reg_moves): Add prefs.
8194 2013-10-30 Richard Biener <rguenther@suse.de>
8197 * basic-block.h (pre_and_rev_post_order_compute_fn): New function.
8198 * cfganal.c (pre_and_rev_post_order_compute_fn): New function
8200 (pre_and_rev_post_order_compute): ... which now wraps it.
8201 * graph.c (draw_cfg_nodes_no_loops): Use
8202 pre_and_rev_post_order_compute_fn to avoid ICEing and dependence
8205 2013-10-30 Christian Bruel <christian.bruel@st.com>
8207 * config/sh/sh-mem.cc (sh_expand_cmpnstr): New function.
8208 (sh_expand_cmpstr): Handle known align and schedule improvements.
8209 * config/sh/sh-protos.h (sh_expand_cmpstrn): Declare.
8210 * config/sh/sh.md (cmpstrnsi): New pattern.
8212 2013-10-30 Martin Jambor <mjambor@suse.cz>
8214 PR rtl-optimization/10474
8215 * ira.c (find_moveable_pseudos): Do not calculate dominance info
8217 (interesting_dest_for_shprep): New function.
8218 (split_live_ranges_for_shrink_wrap): Likewise.
8219 (ira): Calculate dominance info and df analysis. Call
8220 split_live_ranges_for_shrink_wrap.
8222 2013-10-30 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
8225 * config/arm/arm.c (arm_expand_epilogue_apcs_frame): Emit blockage.
8227 2013-10-30 Ilya Enkovich <ilya.enkovich@intel.com>
8229 * tree-core.h (tree_index): Add TI_POINTER_BOUNDS_TYPE.
8230 * tree.h (POINTER_BOUNDS_P): New.
8231 (BOUNDED_TYPE_P): New.
8233 (pointer_bounds_type_node): New.
8234 * tree.c (build_common_tree_nodes): Initialize
8235 pointer_bounds_type_node.
8236 * gimple.h (gimple_call_get_nobnd_arg_index): New.
8237 (gimple_call_num_nobnd_args): New.
8238 (gimple_call_nobnd_arg): New.
8239 (gimple_return_retbnd): New.
8240 (gimple_return_set_retbnd): New
8241 * gimple.c (gimple_build_return): Increase number of ops
8242 for return statement.
8243 (gimple_call_get_nobnd_arg_index): New.
8244 * gimple-pretty-print.c (dump_gimple_return): Print second op.
8246 2013-10-30 Ilya Enkovich <ilya.enkovich@intel.com>
8248 * ipa.c (cgraph_build_static_cdtor_1): Support contructors
8249 with "chkp ctor" and "bnd_legacy" attributes.
8250 * gimplify.c (gimplify_init_constructor): Avoid infinite
8251 loop during gimplification of bounds initializer.
8253 2013-10-30 Ilya Enkovich <ilya.enkovich@intel.com>
8255 * c-family/c-common.c (handle_bnd_variable_size_attribute): New.
8256 (handle_bnd_legacy): New.
8257 (c_common_attribute_table): Add bnd_variable_size and bnd_legacy.
8258 * doc/extend.texi: Document bnd_variable_size and bnd_legacy
8261 2013-10-29 Ilya Enkovich <ilya.enkovich@intel.com>
8263 * builtin-types.def (BT_FN_VOID_CONST_PTR): New.
8264 (BT_FN_PTR_CONST_PTR): New.
8265 (BT_FN_CONST_PTR_CONST_PTR): New.
8266 (BT_FN_PTR_CONST_PTR_SIZE): New.
8267 (BT_FN_PTR_CONST_PTR_CONST_PTR): New.
8268 (BT_FN_VOID_PTRPTR_CONST_PTR): New.
8269 (BT_FN_VOID_CONST_PTR_SIZE): New.
8270 (BT_FN_PTR_CONST_PTR_CONST_PTR_SIZE): New.
8271 * chkp-builtins.def: New.
8272 * builtins.def: include chkp-builtins.def.
8273 (DEF_CHKP_BUILTIN): New.
8274 * builtins.c (expand_builtin): Support BUILT_IN_CHKP_INIT_PTR_BOUNDS,
8275 BUILT_IN_CHKP_NULL_PTR_BOUNDS, BUILT_IN_CHKP_COPY_PTR_BOUNDS,
8276 BUILT_IN_CHKP_CHECK_PTR_LBOUNDS, BUILT_IN_CHKP_CHECK_PTR_UBOUNDS,
8277 BUILT_IN_CHKP_CHECK_PTR_BOUNDS, BUILT_IN_CHKP_SET_PTR_BOUNDS,
8278 BUILT_IN_CHKP_NARROW_PTR_BOUNDS, BUILT_IN_CHKP_STORE_PTR_BOUNDS,
8279 BUILT_IN_CHKP_GET_PTR_LBOUND, BUILT_IN_CHKP_GET_PTR_UBOUND,
8280 BUILT_IN_CHKP_BNDMK, BUILT_IN_CHKP_BNDSTX, BUILT_IN_CHKP_BNDCL,
8281 BUILT_IN_CHKP_BNDCU, BUILT_IN_CHKP_BNDLDX, BUILT_IN_CHKP_BNDRET,
8282 BUILT_IN_CHKP_INTERSECT, BUILT_IN_CHKP_ARG_BND, BUILT_IN_CHKP_NARROW,
8283 BUILT_IN_CHKP_EXTRACT_LOWER, BUILT_IN_CHKP_EXTRACT_UPPER.
8284 * common.opt (fcheck-pointer-bounds): New.
8285 * toplev.c (process_options): Check Pointer Bounds Checker is
8287 * doc/extend.texi: Document Pointer Bounds Checker built-in functions.
8289 2013-10-30 Ilya Enkovich <ilya.enkovich@intel.com>
8291 * target.def (builtin_chkp_function): New.
8292 (chkp_bound_type): New.
8293 (chkp_bound_mode): New.
8294 (fn_abi_va_list_bounds_size): New.
8295 (load_bounds_for_arg): New.
8296 (store_bounds_for_arg): New.
8297 * targhooks.h (default_load_bounds_for_arg): New.
8298 (default_store_bounds_for_arg): New.
8299 (default_fn_abi_va_list_bounds_size): New.
8300 (default_chkp_bound_type): New.
8301 (default_chkp_bound_mode): New.
8302 (default_builtin_chkp_function): New.
8303 * targhooks.c (default_load_bounds_for_arg): New.
8304 (default_store_bounds_for_arg): New.
8305 (default_fn_abi_va_list_bounds_size): New.
8306 (default_chkp_bound_type): New.
8307 (default_chkp_bound_mode); New.
8308 (default_builtin_chkp_function): New.
8309 * doc/tm.texi.in (TARGET_FN_ABI_VA_LIST_BOUNDS_SIZE): New.
8310 (TARGET_LOAD_BOUNDS_FOR_ARG): New.
8311 (TARGET_STORE_BOUNDS_FOR_ARG): New.
8312 (TARGET_BUILTIN_CHKP_FUNCTION): New.
8313 (TARGET_CHKP_BOUND_TYPE): New.
8314 (TARGET_CHKP_BOUND_MODE): New.
8315 * doc/tm.texi: Regenerated.
8316 * langhooks.h (lang_hooks): Add chkp_supported field.
8317 * langhooks-def.h (LANG_HOOKS_CHKP_SUPPORTED): New.
8318 (LANG_HOOKS_INITIALIZER); Add LANG_HOOKS_CHKP_SUPPORTED.
8320 2013-10-29 Andrew Pinski <apinski@cavium.com>
8322 * tree-ssa-ifcombine.c: Include rtl.h and tm_p.h.
8323 (ifcombine_ifandif): Handle cases where maybe_fold_and_comparisons
8324 fails, combining the branches anyways.
8325 (tree_ssa_ifcombine): Inverse the order of the basic block walk,
8326 increases the number of combinings.
8327 * gimple.h (gsi_start_nondebug_after_labels_bb): New function.
8329 2013-10-29 Mike Stump <mikestump@comcast.net>
8331 * machmode.def (PARTIAL_INT_MODE): Add precision and name.
8332 * genmodes.c (PARTIAL_INT_MODE): Add precision and name.
8333 (make_vector_mode): Increase namebuf to 16.
8334 (emit_insn_modes_h): When processing BImode, don't
8335 also match partial int modes.
8336 (emit_class_narrowest_mode): Likewise.
8338 * config/bfin/bfin-modes.def: Add precision to PDI.
8339 * config/m32c/m32c-modes.def: Add precision to PSI.
8340 * config/msp430/msp430-modes.def: Add precision to PSI.
8341 * config/rs6000/rs6000-modes.def: Add precision to PTI.
8342 * config/sh/sh-modes.def: Add precision to PSI and PDI.
8344 2013-10-29 Oleg Endo <olegendo@gcc.gnu.org>
8347 * config/sh/sh.md (*addc): Rename existing variations to ...
8348 (*addc_r_r_1, *addc_2r_1, *addc_r_1): ... these.
8349 (*addc_r_lsb, *addc_r_r_lsb, *addc_r_lsb_r, *addc_2r_lsb, *addc_r_msb,
8350 *addc_r_r_msb, *addc_2r_msb): New insn_and_split patterns.
8351 * config/sh/sh.c (addsubcosts): Handle some addc special cases.
8353 2013-10-29 Teresa Johnson <tejohnson@google.com>
8356 * tree-ssa-tail-merge.c (replace_block_by): Tolerate profile
8357 insanities when updating probabilities.
8359 2013-10-29 David Malcolm <dmalcolm@redhat.com>
8361 * gdbhooks.py (CGraphNodePrinter.to_string): Update gdb
8362 prettyprinter for cgraph_node to reflect the conversion of the
8363 symtable types to a C++ class hierarchy: it now *is* a
8364 symtab_node_base, rather than having one (named "symbol").
8366 2013-10-29 Balaji V. Iyer <balaji.v.iyer@intel.com>
8368 * builtins.c (is_builtin_name): Added a check for __cilkrts_detach and
8369 __cilkrts_pop_frame. If matched, then return true for built-in
8371 (expand_builtin): Added BUILT_IN_CILK_DETACH and
8372 BUILT_IN_CILK_POP_FRAME case.
8373 * langhooks-def.h (lhd_install_body_with_frame_cleanup): New prototype.
8374 (lhs_cilk_detect_spawn): Likewise.
8375 (LANG_HOOKS_DECLS): Added LANG_HOOKS_CILKPLUS.
8376 (LANG_HOOKS_CILKPLUS_DETECT_SPAWN_AND_UNWRAP): New #define.
8377 (LANG_HOOKS_CILKPLUS_FRAME_CLEANUP): Likewise.
8378 (LANG_HOOKS_CILKPLUS_GIMPLIFY_SPAWN): Likewise.
8379 (LANG_HOOKS_CILKPLUS): Likewise.
8380 * tree.h (CILK_SPAWN_FN): Likewise.
8381 * builtin.def (DEF_CILK_BUILTIN_STUB): Likewise.
8382 * Makefile.in (C_COMMON_OBJS): Added c-family/cilk.o.
8383 (OBJS): Added cilk-common.o.
8384 (BUILTINS_DEF): Added cilk-builtins.def.
8385 * langhooks.c (lhd_install_body_with_frame_cleanup): New function.
8386 (lhd_cilk_detect_spawn): Likewise.
8387 * langhooks.h (lang_hooks_for_cilkplus): New struct.
8388 (struct lang_hooks): Added new field called "cilkplus."
8389 * cilk-common.c: New file.
8391 * cilk-builtins.def: Likewise.
8392 * cppbuiltin.c (define_builtin_macros_for_compilation_flags): Added
8393 "__cilk" macro and set it to 200.
8394 * function.h (struct function::cilk_frame_decl): New field.
8395 (struct function::is_cilk_function): Likewise.
8396 (struct function::calls_cilk_spawn): Likewise.
8397 * gimplify.c (gimplify_call_expr): Added a check if the function call
8398 being gimplified is a spawn detach point. If so, then add pop_frame
8399 and detach function calls.
8400 (gimplify_expr): Added a CILK_SPAWN_STMT and CILK_SYNC_STMT case
8401 for gimplifying _Cilk_spawn and _Cilk_sync statements.
8402 (gimplify_return_expr): Added a check for _Cilk_spawn usage in
8403 function. If so, added a _Cilk_sync and gimplified it.
8404 (gimplify_modify_expr): Added a check for _Cilk_spawn in MODIFY and
8405 INIT_EXPRs. If so, then call gimplify_cilk_spawn.
8406 * ipa-inline-analysis (initialize_inline_failed): Prevent inlining of
8408 (can_inline_edge_p): Prevent inling of spawnee function.
8409 * ira.c (ira_setup_eliminable_regset): Force usage of frame pointer
8410 for functions that use Cilk keywords.
8411 * tree-inline.h (struct copy_body_data::remap_var_for_cilk): New field.
8412 * tree-pretty-print.c (dump_generic_node): Added CILK_SPAWN_STMT and
8413 CILK_SYNC_STMT cases.
8414 * tree.def (DEFTREECODE): Added CILK_SPAWN_STMT and CILK_SYNC_STMT
8416 * generic.texi (CILK_SPAWN_STMT): Added documentation for _Cilk_spawn.
8417 (CILK_SYNC_STMT): Added documentation for _Cilk_sync.
8418 * passes.texi (Cilk Keywords): New section that describes the compiler
8419 code changes for handling Cilk Keywords.
8421 2013-10-29 David Malcolm <dmalcolm@redhat.com>
8423 Patch autogenerated by refactor_symtab.py from
8424 https://github.com/davidmalcolm/gcc-refactoring-scripts
8425 revision 58bb219cc090b2f4516a9297d868c245495ee622
8427 * asan.c (asan_finish_file): Update for conversion of symtab types to
8428 a true class hierarchy.
8429 * cfgexpand.c (estimated_stack_frame_size): Likewise.
8430 * cgraph.c (cgraph_get_body): Likewise.
8431 (cgraph_get_create_real_symbol_node): Likewise.
8432 (verify_cgraph_node): Likewise.
8433 (verify_edge_corresponds_to_fndecl): Likewise.
8434 (verify_edge_count_and_frequency): Likewise.
8435 (cgraph_will_be_removed_from_program_if_no_direct_calls): Likewise.
8436 (cgraph_can_remove_if_no_direct_calls_p): Likewise.
8437 (cgraph_can_remove_if_no_direct_calls_and_refs_p): Likewise.
8438 (cgraph_node_cannot_return): Likewise.
8439 (cgraph_set_pure_flag_1): Likewise.
8440 (cgraph_set_const_flag_1): Likewise.
8441 (cgraph_set_nothrow_flag_1): Likewise.
8442 (cgraph_make_node_local_1): Likewise.
8443 (cgraph_for_node_and_aliases): Likewise.
8444 (cgraph_for_node_thunks_and_aliases): Likewise.
8445 (cgraph_node_can_be_local_p): Likewise.
8446 (cgraph_node_cannot_be_local_p_1): Likewise.
8447 (cgraph_function_body_availability): Likewise.
8448 (dump_cgraph_node): Likewise.
8449 (cgraph_rtl_info): Likewise.
8450 (cgraph_mark_address_taken_node): Likewise.
8451 (cgraph_remove_node): Likewise.
8452 (cgraph_release_function_body): Likewise.
8453 (cgraph_update_edges_for_call_stmt_node): Likewise.
8454 (cgraph_redirect_edge_call_stmt_to_callee): Likewise.
8455 (cgraph_make_edge_direct): Likewise.
8456 (cgraph_resolve_speculation): Likewise.
8457 (cgraph_speculative_call_info): Likewise.
8458 (cgraph_turn_edge_to_speculative): Likewise.
8459 (cgraph_create_edge_1): Likewise.
8460 (cgraph_set_call_stmt): Likewise.
8461 (cgraph_node_for_asm): Likewise.
8462 (cgraph_add_thunk): Likewise.
8463 (cgraph_same_body_alias): Likewise.
8464 (cgraph_create_function_alias): Likewise.
8465 (cgraph_create_node): Likewise.
8466 (cgraph_create_empty_node): Likewise.
8467 (record_function_versions): Likewise.
8468 (used_from_object_file_p): Likewise.
8469 * cgraph.h (symtab_can_be_discarded): Likewise.
8470 (symtab_real_symbol_p): Likewise.
8471 (cgraph_mark_force_output_node): Likewise.
8472 (cgraph_edge_recursive_p): Likewise.
8473 (symtab_alias_target): Likewise.
8474 (varpool_all_refs_explicit_p): Likewise.
8475 (varpool_can_remove_if_no_refs): Likewise.
8476 (cgraph_only_called_directly_or_aliased_p): Likewise.
8477 (cgraph_next_function_with_gimple_body): Likewise.
8478 (cgraph_first_function_with_gimple_body): Likewise.
8479 (cgraph_function_with_gimple_body_p): Likewise.
8480 (cgraph_next_function): Likewise.
8481 (cgraph_first_function): Likewise.
8482 (cgraph_next_defined_function): Likewise.
8483 (cgraph_first_defined_function): Likewise.
8484 (varpool_next_defined_variable): Likewise.
8485 (varpool_first_defined_variable): Likewise.
8486 (varpool_next_static_initializer): Likewise.
8487 (varpool_first_static_initializer): Likewise.
8488 (varpool_next_variable): Likewise.
8489 (varpool_first_variable): Likewise.
8490 (varpool_node_name): Likewise.
8491 (varpool): Likewise.
8493 (is_a_helper <varpool_node>::test): Likewise.
8494 (is_a_helper <cgraph_node>::test): Likewise.
8495 (varpool_variable_node): Likewise.
8496 (cgraph_function_or_thunk_node): Likewise.
8497 (varpool_alias_target): Likewise.
8498 (cgraph_alias_target): Likewise.
8499 (cgraph_node_name): Likewise.
8500 (varpool_node_asm_name): Likewise.
8501 (cgraph_node_asm_name): Likewise.
8502 * cgraphbuild.c (remove_cgraph_callee_edges): Likewise.
8503 (cgraph_rebuild_references): Likewise.
8504 (rebuild_cgraph_edges): Likewise.
8505 (record_eh_tables): Likewise.
8506 (build_cgraph_edges): Likewise.
8507 (mark_store): Likewise.
8508 (mark_load): Likewise.
8509 (mark_address): Likewise.
8510 (record_type_list): Likewise.
8511 (record_reference): Likewise.
8512 * cgraphclones.c (cgraph_materialize_all_clones): Likewise.
8513 (cgraph_materialize_clone): Likewise.
8514 (cgraph_function_versioning): Likewise.
8515 (cgraph_copy_node_for_versioning): Likewise.
8516 (update_call_expr): Likewise.
8517 (cgraph_find_replacement_node): Likewise.
8518 (cgraph_create_virtual_clone): Likewise.
8519 (cgraph_clone_node): Likewise.
8520 * cgraphunit.c (compile): Likewise.
8521 (output_weakrefs): Likewise.
8522 (output_in_order): Likewise.
8523 (expand_function): Likewise.
8524 (assemble_thunks_and_aliases): Likewise.
8525 (expand_thunk): Likewise.
8526 (mark_functions_to_output): Likewise.
8527 (handle_alias_pairs): Likewise.
8528 (analyze_functions): Likewise.
8529 (walk_polymorphic_call_targets): Likewise.
8530 (varpool_finalize_decl): Likewise.
8531 (process_function_and_variable_attributes): Likewise.
8532 (cgraph_process_same_body_aliases): Likewise.
8533 (analyze_function): Likewise.
8534 (cgraph_add_new_function): Likewise.
8535 (cgraph_finalize_function): Likewise.
8536 (referred_to_p): Likewise.
8537 (cgraph_reset_node): Likewise.
8538 (cgraph_process_new_functions): Likewise.
8539 (enqueue_node): Likewise.
8540 (decide_is_symbol_needed): Likewise.
8541 * coverage.c (coverage_compute_profile_id): Likewise.
8542 * dbxout.c (dbxout_expand_expr): Likewise.
8543 * dwarf2out.c (premark_types_used_by_global_vars_helper): Likewise.
8544 (reference_to_unused): Likewise.
8545 * gimple-fold.c (can_refer_decl_in_current_unit_p): Likewise.
8546 * gimplify.c (unvisit_body): Likewise.
8547 (unshare_body): Likewise.
8548 * ipa-cp.c (ipcp_generate_summary): Likewise.
8549 (ipcp_decision_stage): Likewise.
8550 (identify_dead_nodes): Likewise.
8551 (decide_whether_version_node): Likewise.
8552 (decide_about_value): Likewise.
8553 (perhaps_add_new_callers): Likewise.
8554 (create_specialized_node): Likewise.
8555 (update_profiling_info): Likewise.
8556 (ipcp_propagate_stage): Likewise.
8557 (estimate_local_effects): Likewise.
8558 (good_cloning_opportunity_p): Likewise.
8559 (devirtualization_time_bonus): Likewise.
8560 (propagate_constants_accross_call): Likewise.
8561 (initialize_node_lattices): Likewise.
8562 (ipcp_cloning_candidate_p): Likewise.
8563 (determine_versionability): Likewise.
8564 (print_all_lattices): Likewise.
8565 (print_lattice): Likewise.
8566 (ipcp_discover_new_direct_edges): Likewise.
8567 * ipa-devirt.c (ipa_devirt): Likewise.
8568 (likely_target_p): Likewise.
8569 (update_type_inheritance_graph): Likewise.
8570 (possible_polymorphic_call_target_p): Likewise.
8571 (dump_possible_polymorphic_call_targets): Likewise.
8572 (devirt_variable_node_removal_hook): Likewise.
8573 (record_binfo): Likewise.
8574 (maybe_record_node): Likewise.
8575 (build_type_inheritance_graph): Likewise.
8576 * ipa-inline-analysis.c (inline_write_summary): Likewise.
8577 (inline_generate_summary): Likewise.
8578 (inline_analyze_function): Likewise.
8579 (do_estimate_growth): Likewise.
8580 (simple_edge_hints): Likewise.
8581 (estimate_node_size_and_time): Likewise.
8582 (estimate_edge_devirt_benefit): Likewise.
8583 (compute_inline_parameters): Likewise.
8584 (estimate_function_body_sizes): Likewise.
8585 (compute_bb_predicates): Likewise.
8586 (initialize_inline_failed): Likewise.
8587 (dump_inline_summary): Likewise.
8588 (dump_inline_edge_summary): Likewise.
8589 * ipa-inline-transform.c (inline_transform): Likewise.
8590 (preserve_function_body_p): Likewise.
8591 (save_inline_function_body): Likewise.
8592 (inline_call): Likewise.
8593 (clone_inlined_nodes): Likewise.
8594 (can_remove_node_now_p): Likewise.
8595 (can_remove_node_now_p_1): Likewise.
8596 * ipa-inline.c (early_inliner): Likewise.
8597 (early_inline_small_functions): Likewise.
8598 (inline_always_inline_functions): Likewise.
8599 (ipa_inline): Likewise.
8600 (flatten_function): Likewise.
8601 (inline_small_functions): Likewise.
8602 (speculation_useful_p): Likewise.
8603 (recursive_inlining): Likewise.
8604 (update_caller_keys): Likewise.
8605 (reset_edge_caches): Likewise.
8606 (update_edge_key): Likewise.
8607 (edge_badness): Likewise.
8608 (relative_time_benefit): Likewise.
8609 (want_inline_self_recursive_call_p): Likewise.
8610 (want_inline_small_function_p): Likewise.
8611 (want_early_inline_function_p): Likewise.
8612 (num_calls): Likewise.
8613 (can_early_inline_edge_p): Likewise.
8614 (can_inline_edge_p): Likewise.
8615 (report_inline_failed_reason): Likewise.
8616 * ipa-profile.c (ipa_profile): Likewise.
8617 (ipa_propagate_frequency): Likewise.
8618 (ipa_propagate_frequency_1): Likewise.
8619 (ipa_profile_generate_summary): Likewise.
8620 * ipa-prop.c (ipcp_transform_function): Likewise.
8621 (read_replacements_section): Likewise.
8622 (ipa_prop_read_section): Likewise.
8623 (ipa_modify_call_arguments): Likewise.
8624 (ipa_print_node_params): Likewise.
8625 (propagate_controlled_uses): Likewise.
8626 (update_indirect_edges_after_inlining): Likewise.
8627 (remove_described_reference): Likewise.
8628 (ipa_make_edge_direct_to_target): Likewise.
8629 (ipa_analyze_node): Likewise.
8630 (ipa_analyze_params_uses): Likewise.
8631 (ipa_compute_jump_functions): Likewise.
8632 (ipa_get_callee_param_type): Likewise.
8633 (ipa_print_node_jump_functions): Likewise.
8634 (ipa_initialize_node_params): Likewise.
8635 (ipa_populate_param_decls): Likewise.
8636 (ipa_func_spec_opts_forbid_analysis_p): Likewise.
8637 (write_agg_replacement_chain): Likewise.
8638 (ipa_write_node_info): Likewise.
8639 (ipa_edge_duplication_hook): Likewise.
8640 (try_decrement_rdesc_refcount): Likewise.
8641 * ipa-pure-const.c (propagate_nothrow): Likewise.
8642 (propagate_pure_const): Likewise.
8643 (pure_const_read_summary): Likewise.
8644 (pure_const_write_summary): Likewise.
8645 (analyze_function): Likewise.
8646 * ipa-ref-inline.h (ipa_ref_referred_ref_list): Likewise.
8647 (ipa_ref_referring_ref_list): Likewise.
8648 * ipa-ref.c (ipa_clear_stmts_in_references): Likewise.
8649 (ipa_remove_stmt_references): Likewise.
8650 (ipa_find_reference): Likewise.
8651 (ipa_dump_referring): Likewise.
8652 (ipa_dump_references): Likewise.
8653 (ipa_record_reference): Likewise.
8654 * ipa-reference.c (ipa_reference_read_optimization_summary): Likewise.
8655 (ipa_reference_write_optimization_summary): Likewise.
8656 (write_node_summary_p): Likewise.
8657 (propagate): Likewise.
8658 (read_write_all_from_decl): Likewise.
8659 (generate_summary): Likewise.
8660 (analyze_function): Likewise.
8661 (propagate_bits): Likewise.
8662 (ipa_reference_get_not_written_global): Likewise.
8663 (ipa_reference_get_not_read_global): Likewise.
8664 * ipa-split.c (execute_split_functions): Likewise.
8665 (split_function): Likewise.
8666 * ipa-utils.c (ipa_merge_profiles): Likewise.
8667 (dump_cgraph_node_set): Likewise.
8668 (ipa_reverse_postorder): Likewise.
8669 (ipa_edge_within_scc): Likewise.
8670 (ipa_get_nodes_in_cycle): Likewise.
8671 (ipa_free_postorder_info): Likewise.
8672 (ipa_reduced_postorder): Likewise.
8673 (searchc): Likewise.
8674 (recursive_call_p): Likewise.
8675 * ipa.c (ipa_cdtor_merge): Likewise.
8676 (record_cdtor_fn): Likewise.
8677 (function_and_variable_visibility): Likewise.
8678 (varpool_externally_visible_p): Likewise.
8679 (cgraph_externally_visible_p): Likewise.
8680 (comdat_can_be_unshared_p): Likewise.
8681 (comdat_can_be_unshared_p_1): Likewise.
8682 (address_taken_from_non_vtable_p): Likewise.
8683 (ipa_discover_readonly_nonaddressable_vars): Likewise.
8684 (symtab_remove_unreachable_nodes): Likewise.
8685 (walk_polymorphic_call_targets): Likewise.
8686 (process_references): Likewise.
8687 (enqueue_node): Likewise.
8688 (has_addr_references_p): Likewise.
8689 (cgraph_non_local_node_p_1): Likewise.
8690 * is-a.h (varpool_analyze_node): Likewise.
8691 * lto-cgraph.c (input_symtab): Likewise.
8692 (merge_profile_summaries): Likewise.
8693 (input_cgraph_1): Likewise.
8694 (input_edge): Likewise.
8695 (input_varpool_node): Likewise.
8696 (input_node): Likewise.
8697 (input_overwrite_node): Likewise.
8698 (compute_ltrans_boundary): Likewise.
8699 (output_refs): Likewise.
8700 (lto_output_varpool_node): Likewise.
8701 (lto_output_node): Likewise.
8702 (reachable_from_other_partition_p): Likewise.
8703 (referenced_from_other_partition_p): Likewise.
8704 (lto_output_edge): Likewise.
8705 (output_node_opt_summary): Likewise.
8706 (add_node_to): Likewise.
8707 (reachable_from_this_partition_p): Likewise.
8708 (lto_set_symtab_encoder_in_partition): Likewise.
8709 (lto_symtab_encoder_in_partition_p): Likewise.
8710 (lto_set_symtab_encoder_encode_initializer): Likewise.
8711 (lto_symtab_encoder_encode_initializer_p): Likewise.
8712 (lto_set_symtab_encoder_encode_body): Likewise.
8713 (lto_symtab_encoder_encode_body_p): Likewise.
8714 * lto-section-in.c (lto_free_function_in_decl_state_for_node):
8716 * lto-streamer-in.c (lto_read_body): Likewise.
8717 (fixup_call_stmt_edges): Likewise.
8718 (fixup_call_stmt_edges_1): Likewise.
8719 * lto-streamer-out.c (produce_symtab): Likewise.
8720 (output_symbol_p): Likewise.
8721 (write_symbol): Likewise.
8722 (lto_output): Likewise.
8723 (copy_function): Likewise.
8724 (output_function): Likewise.
8725 * passes.c (function_called_by_processed_nodes_p): Likewise.
8726 (ipa_write_optimization_summaries): Likewise.
8727 (ipa_write_summaries): Likewise.
8728 (do_per_function_toporder): Likewise.
8729 (do_per_function): Likewise.
8730 (dump_passes): Likewise.
8731 * symtab.c (symtab_semantically_equivalent_p): Likewise.
8732 (symtab_nonoverwritable_alias): Likewise.
8733 (symtab_nonoverwritable_alias_1): Likewise.
8734 (symtab_for_node_and_aliases): Likewise.
8735 (symtab_resolve_alias): Likewise.
8736 (fixup_same_cpp_alias_visibility): Likewise.
8737 (symtab_alias_ultimate_target): Likewise.
8738 (symtab_used_from_object_file_p): Likewise.
8739 (verify_symtab_base): Likewise.
8740 (dump_symtab_base): Likewise.
8741 (symtab_node_name): Likewise.
8742 (symtab_node_asm_name): Likewise.
8743 (symtab_dissolve_same_comdat_group_list): Likewise.
8744 (symtab_add_to_same_comdat_group): Likewise.
8745 (symtab_unregister_node): Likewise.
8746 (symtab_insert_node_to_hashtable): Likewise.
8747 (symtab_register_node): Likewise.
8748 (unlink_from_assembler_name_hash): Likewise.
8749 (insert_to_assembler_name_hash): Likewise.
8750 (eq_assembler_name): Likewise.
8751 (hash_node_by_assembler_name): Likewise.
8752 (eq_node): Likewise.
8753 (hash_node): Likewise.
8754 * toplev.c (wrapup_global_declaration_2): Likewise.
8755 * trans-mem.c (ipa_tm_execute): Likewise.
8756 (ipa_tm_transform_clone): Likewise.
8757 (ipa_tm_transform_transaction): Likewise.
8758 (ipa_tm_transform_calls_redirect): Likewise.
8759 (ipa_tm_insert_gettmclone_call): Likewise.
8760 (ipa_tm_insert_irr_call): Likewise.
8761 (ipa_tm_create_version): Likewise.
8762 (ipa_tm_create_version_alias): Likewise.
8763 (ipa_tm_mark_forced_by_abi_node): Likewise.
8764 (ipa_tm_mark_force_output_node): Likewise.
8765 (ipa_tm_diagnose_tm_safe): Likewise.
8766 (ipa_tm_mayenterirr_function): Likewise.
8767 (ipa_tm_scan_irr_function): Likewise.
8768 (ipa_tm_note_irrevocable): Likewise.
8769 (ipa_tm_scan_calls_clone): Likewise.
8770 (get_cg_data): Likewise.
8771 * tree-eh.c (tree_could_trap_p): Likewise.
8772 * tree-emutls.c (ipa_lower_emutls): Likewise.
8773 (create_emultls_var): Likewise.
8774 (lower_emutls_function_body): Likewise.
8775 (gen_emutls_addr): Likewise.
8776 (emutls_decl): Likewise.
8777 (new_emutls_decl): Likewise.
8778 * tree-inline.c (tree_function_versioning): Likewise.
8779 (optimize_inline_calls): Likewise.
8780 (expand_call_inline): Likewise.
8781 (estimate_num_insns): Likewise.
8782 (copy_bb): Likewise.
8783 (delete_unreachable_blocks_update_callgraph): Likewise.
8784 * tree-nested.c (gimplify_all_functions): Likewise.
8785 (create_nesting_tree): Likewise.
8786 (check_for_nested_with_variably_modified): Likewise.
8787 * tree-pretty-print.c (dump_function_header): Likewise.
8788 * tree-profile.c (tree_profiling): Likewise.
8789 * tree-sra.c (ipa_sra_preliminary_function_checks): Likewise.
8790 (modify_function): Likewise.
8791 (convert_callers): Likewise.
8792 (convert_callers_for_node): Likewise.
8793 * tree-ssa-structalias.c (ipa_pta_execute): Likewise.
8794 (associate_varinfo_to_alias): Likewise.
8795 (create_variable_info_for): Likewise.
8796 (get_constraint_for_ssa_var): Likewise.
8797 * tree-vectorizer.c (increase_alignment): Likewise.
8798 * tree.c (find_decls_types_in_var): Likewise.
8799 (find_decls_types_in_node): Likewise.
8800 (free_lang_data_in_decl): Likewise.
8801 * value-prof.c (gimple_ic_transform): Likewise.
8802 (gimple_ic): Likewise.
8803 (check_ic_target): Likewise.
8804 (init_node_map): Likewise.
8805 * varasm.c (decl_binds_to_current_def_p): Likewise.
8806 (default_binds_local_p_1): Likewise.
8807 (dump_tm_clone_pairs): Likewise.
8808 (assemble_alias): Likewise.
8809 (find_decl): Likewise.
8810 (mark_decl_referenced): Likewise.
8811 * varpool.c (varpool_for_node_and_aliases): Likewise.
8812 (varpool_extra_name_alias): Likewise.
8813 (varpool_create_variable_alias): Likewise.
8814 (add_new_static_var): Likewise.
8815 (varpool_finalize_named_section_flags): Likewise.
8816 (varpool_remove_unreferenced_decls): Likewise.
8817 (enqueue_node): Likewise.
8818 (varpool_assemble_decl): Likewise.
8819 (assemble_aliases): Likewise.
8820 (varpool_analyze_node): Likewise.
8821 (cgraph_variable_initializer_availability): Likewise.
8822 (varpool_add_new_variable): Likewise.
8823 (ctor_for_folding): Likewise.
8824 (dump_varpool_node): Likewise.
8825 (varpool_remove_initializer): Likewise.
8826 (varpool_remove_node): Likewise.
8827 (varpool_node_for_decl): Likewise.
8828 (varpool_create_empty_node): Likewise.
8829 * config/i386/i386.c (ix86_generate_version_dispatcher_body): Likewise.
8830 (ix86_get_function_versions_dispatcher): Likewise.
8832 2013-10-29 David Malcolm <dmalcolm@redhat.com>
8834 * cgraph.h (symtab_node_base): Convert to a class;
8835 add GTY((desc ("%h.type"), tag ("SYMTAB_SYMBOL"))), and take
8836 chain_next/prev from symtab_node_def.
8837 (cgraph_node): Inherit from symtab_node; add GTY option
8838 tag ("SYMTAB_FUNCTION").
8839 (varpool_node): Inherit from symtab_node; add GTY option
8840 tag ("SYMTAB_VARIABLE").
8841 (symtab_node_def): Remove.
8842 (is_a_helper <cgraph_node>::test (symtab_node_def *)): Convert to...
8843 (is_a_helper <cgraph_node>::test (symtab_node_base *)): ...this.
8844 (is_a_helper <varpool_node>::test (symtab_node_def *)): Convert to...
8845 (is_a_helper <varpool_node>::test (symtab_node_base *)): ...this.
8847 * ipa-ref.h (symtab_node_def): Drop.
8848 (symtab_node): Change underlying type from symtab_node_def to
8850 (const_symtab_node): Likwise.
8852 * is-a.h: Update examples in comment.
8854 * symtab.c (symtab_hash): Change symtab_node_def to symtab_node_base.
8855 (assembler_name_hash): Likewise.
8857 2013-10-29 Martin Liska <marxin.liska@gmail.com>
8859 * doc/tree-ssa.texi (gimple_phi_result): Document.
8860 (gimple_phi_num_args, gimple_phi_arg): Likewise.
8861 (gimple_phi_arg_edge, gimple_phi_arg_def): Likewise.
8862 (PHI_RESULT, PHI_NUM_ARGS): Remove.
8863 (PHI_ARG_ELT, PHI_ARG_EDGE, PHI_ARG_DEF): Likewise.
8865 2013-10-29 Andrew MacLeod <amacleod@redhat.com>
8867 * expr.h: Revert change and include tree-core.h.
8868 * rtl.h: Revert change and don't include tree-core.h.
8870 2013-10-29 Andrew MacLeod <amacleod@redhat.com>
8872 * config/darwin.c: Include gimple.h.
8873 * config/i386/winnt.c: Likewise.
8875 2013-10-29 Marc Glisse <marc.glisse@inria.fr>
8877 PR tree-optimization/19831
8878 * tree-ssa-alias.c (stmt_kills_ref_p_1): Handle BUILT_IN_FREE.
8880 2013-10-29 Andrew MacLeod <amacleod@redhat.com>
8882 * tree-outof-ssa.h: Remove include files.
8883 * tree-outof-ssa.c: Add required include files from tree-outof-ssa.h.
8885 * tree-ssa-coalesce.c: Likewise.
8886 * cfgexpand.c: Likewise.
8887 * tree-ssa-ter.c: Likewise.
8888 * ipa-prop.h: Remove gimple.h and tree-core.h from include list.
8889 * lto-streamer.h: Likewise.
8890 * cgraphbuild.c: Add gimple.h to include list.
8891 * data-streamer-in.c: Likewise.
8892 * ipa-cp.c: Likewise.
8893 * tree-streamer.c: Likewise.
8894 * lto-compress.c: Likewise.
8895 * ipa-reference.c: Likewise.
8896 * data-streamer-out.c: Likewise.
8897 * lto-cgraph.c: Likewise.
8898 * cgraphclones.c: Likewise.
8899 * ipa-utils.c: Likewise.
8900 * data-streamer.c: Likewise.
8901 * ipa-split.c: Likewise.
8902 * lto-section-in.c: Likewise.
8903 * tree-streamer-out.c: Likewise.
8904 * ipa-prop.c: Likewise.
8905 * tree-streamer-in.c: Likewise.
8906 * symtab.c: Likewise.
8907 * opts-global.c: Likewise.
8908 * lto-opts.c: Likewise.
8909 * lto-section-out.c: Likewise.
8910 * lto-streamer.c: Likewise.
8911 * rtl.h: Add tree-core.h to include list.
8912 * expr.h: Remove tree-core.h from include list.
8913 * gimple.h: Likewise.
8914 * ipa-utils.h: Likewise.
8915 * streamer-hooks.h: Likewise.
8916 * streamer-hooks.c: Include input.h.
8918 2013-10-29 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
8920 * config/arm/arm.c (cortexa7_extra_costs): New table.
8921 (arm_cortex_a7_tune): New.
8922 * config/arm/arm-cores.def: Use cortex_a7 tuning for cortex-a7.
8924 2013-10-29 Eric Botcazou <ebotcazou@adacore.com>
8926 * expr.c (expand_expr_real_1) <MEM_EXPR>: Eliminate small redundancy.
8928 2013-10-29 David Malcolm <dmalcolm@redhat.com>
8930 * doc/gty.texi ("Inheritance and GTY"): Make it clear that
8931 to use autogenerated markers for a class-hierarchy, every class
8932 must have a GTY marker.
8933 * gengtype.h (struct type): Add linked list of subclasses to
8934 the "s" member of the union.
8935 (add_subclass): New decl.
8936 * gengtype-state.c (read_state_struct_type): Set up subclass
8938 * gengtype.c (get_ultimate_base_class): New.
8939 (add_subclass): New.
8940 (new_structure): Set up subclass linked list.
8941 (set_gc_used_type): Propagate usage information to subclasses.
8942 (output_mangled_typename): Use get_ultimate_base_class.
8943 (walk_subclasses): Use the subclass linked list, avoiding an
8944 O(N^2) when writing out all types.
8945 (walk_type): Issue an error if the base class is missing a tag,
8946 rather than generating bogus C code. Add a gcc_unreachable
8947 default case, in case people omit tags from concrete subclasses,
8948 or get the values wrong.
8949 (write_func_for_structure): Issue an error for subclasses for
8950 which the base doesn't have a "desc", since otherwise the
8951 autogenerated routines for the base would silently fail to visit
8952 any subclass fields.
8953 (write_root): Use get_ultimate_base_class, tweaking constness of
8954 tp to match that function's signature.
8956 2013-10-29 David Malcolm <dmalcolm@redhat.com>
8958 * doc/gty.texi (GTY Options): Add note about inheritance to
8959 description of desc and tag.
8960 (Inheritance and GTY): New.
8962 2013-10-29 David Malcolm <dmalcolm@redhat.com>
8964 * gengtype-parse.c (opts_have): Drop "static" so that
8965 we can use this from gengtype.c.
8966 * gengtype.c (set_gc_used_type): Mark any base class as used;
8967 update field traversal to visit inherited fields.
8968 (output_mangled_typename): Convert references to classes within
8969 an inheritance hierarchy to reference the ultimate base class,
8970 since only it will have gt_ functions.
8971 (get_string_option): New.
8972 (walk_subclasses): New.
8973 (walk_type): Treat GTY structs that have a "desc" as being the
8974 root of an inheritance hierarchy. Generate a switch on it
8975 within the marking function which walks all subclasses, adding
8976 cases for them via walk_subclasses. For subclasses, visit all
8977 fields of the type (including inherited ones).
8978 (write_func_for_structure): Don't write fns for subclasses, only
8979 for the ultimate base class within an inheritance hierarchy.
8980 Subclasses-marking will be handled by the base class marking functions.
8981 (write_types): Likewise.
8982 (write_local_func_for_structure): Likewise.
8983 (USED_BY_TYPED_GC_P): Emit allocators for subclasses that have
8984 a "tag" option (and are thus concrete subclasses).
8985 (write_root): Use the marker function for the ultimate base class.
8986 * gengtype.h (FOR_ALL_INHERITED_FIELDS): New.
8987 (opts_have): Add declaration.
8989 2013-10-28 Vladimir Makarov <vmakarov@redhat.com>
8991 * lra-spills.c (lra_final_code_change): Remove useless move insns
8992 originated from moves of pseudos.
8994 2013-10-28 Jeff Law <law@redhat.com>
8996 * lower-subreg.c (resolve_simple_move): Fix comment typo.
8998 2013-10-28 Trevor Saunders <tsaunders@mozilla.com>
9000 * df-scan.c (df_collection_rec): Adjust.
9001 (copy_defs): New constant.
9002 (copy_uses): Likewise.
9003 (copy_eq_uses): Likewise.
9004 (copy_mw): Likewise.
9005 (copy_all): Likewise.
9006 (df_insn_rescan): Adjust.
9007 (df_notes_rescan): Likewise.
9008 (df_swap_refs): Likewise.
9009 (df_sort_and_compress_refs): Likewise.
9010 (df_sort_and_compress_mws): Likewise.
9011 (df_install_refs): Likewise.
9012 (df_install_mws): Likewise.
9013 (df_refs_add_to_chains): Add flags parameter controlling which vectors
9015 (df_bb_refs_record): Adjust.
9016 (df_record_entry_block_defs): Likewise.
9017 (df_record_exit_block_defs): Likewise.
9018 (df_refs_verify): Likewise.
9019 (df_mws_verify): Likewise.
9020 (df_insn_refs_verify): Likewise.
9021 (df_bb_verify): Likewise.
9022 * ipa-pure-const.c (finish_state): Remove.
9023 (propagate): Adjust.
9024 * tree-data-ref.c tree-ssa-alias.c tree-ssa-loop-ivcanon.c
9025 tree-ssa-threadedge.c tree-vect-loop-manip.c tree-vect-slp.c
9026 var-tracking.c: Adjust.
9027 * vec.c (stack_vecs): Remove.
9028 (register_stack_vec): Likewise.
9029 (stack_vec_register_index): Likewise.
9030 (unregister_stack_vec): Likewise.
9031 * vec.h (struct va_stack): Remove.
9032 (struct vec<T, A, vl_ptr>): Specialize as
9033 struct vec<T, va_heap, vl_ptr> instead since va_heap is the only
9034 allocation strategy compatable with the vl_ptr layout.
9035 (struct vec<T, va_gc, vl_ptr>): Remove because it now gets an empty
9036 specialization anyway.
9037 (class stack_vec): New class.
9038 (vec_stack_alloc): Remove.
9039 (vec<T, va_heap, vl_ptr>::using_auto_storage): New method.
9041 2013-10-28 Alexander Ivchenko <alexander.ivchenko@intel.com>
9042 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
9043 Sergey Lega <sergey.s.lega@intel.com>
9044 Anna Tikhonova <anna.tikhonova@intel.com>
9045 Ilya Tocar <ilya.tocar@intel.com>
9046 Andrey Turetskiy <andrey.turetskiy@intel.com>
9047 Ilya Verbin <ilya.verbin@intel.com>
9048 Kirill Yukhin <kirill.yukhin@intel.com>
9049 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
9051 * config/i386/i386.md (prefetch): Allow TARGET_AVX512PF.
9052 (*prefetch_avx512pf_<mode>): New.
9053 * config/i386/sse.md (avx512f_vmcmp<mode>3): Ditto.
9054 (avx512f_maskcmp<mode>3): Ditto.
9055 (vashrv16si3): Ditto.
9057 2013-10-28 Alexander Ivchenko <alexander.ivchenko@intel.com>
9058 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
9059 Sergey Lega <sergey.s.lega@intel.com>
9060 Anna Tikhonova <anna.tikhonova@intel.com>
9061 Ilya Tocar <ilya.tocar@intel.com>
9062 Andrey Turetskiy <andrey.turetskiy@intel.com>
9063 Ilya Verbin <ilya.verbin@intel.com>
9064 Kirill Yukhin <kirill.yukhin@intel.com>
9065 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
9067 * config/i386/i386.md (any_truncate): New.
9068 (trunsuffix): Ditto.
9069 * config/i386/predicates.md (const_8_to_9_operand): New.
9070 (const_10_to_11_operand): Ditto.
9071 (const_12_to_13_operand): Ditto.
9072 (const_14_to_15_operand): Ditto.
9073 (const_16_to_19_operand): Ditto.
9074 (const_20_to_23_operand): Ditto.
9075 (const_24_to_27_operand): Ditto.
9076 (const_28_to_31_operand): Ditto.
9077 * config/i386/sse.md (unspec): Add UNSPEC_UNSIGNED_FIX_NOTRUNC.
9078 (cvtusi2<ssescalarmodesuffix>32): New.
9079 (cvtusi2<ssescalarmodesuffix>64): Ditto.
9080 (ufloatv16siv16sf2): Ditto.
9081 (avx512f_fix_notruncv16sfv16si): Ditto.
9082 (avx512f_ufix_notruncv16sfv16si): Ditto.
9083 (avx512f_vcvtss2usi): Ditto.
9084 (avx512f_vcvtss2usiq): Ditto.
9085 (avx512f_vcvttss2usi): Ditto.
9086 (avx512f_vcvttss2usiq): Ditto.
9087 (avx512f_vcvtsd2usi): Ditto.
9088 (avx512f_vcvtsd2usiq): Ditto.
9089 (avx512f_vcvttsd2usi): Ditto.
9090 (avx512f_vcvttsd2usiq): Ditto.
9091 (ufloatv8siv8df): Ditto.
9092 (avx512f_cvtdq2pd512_2): Ditto.
9093 (avx512f_cvtpd2dq512): Ditto.
9094 (avx512f_ufix_notruncv8dfv8si): Ditto.
9095 (avx512f_cvtpd2ps512): Ditto.
9096 (vec_unpacks_lo_v16sf): Ditto.
9097 (vec_unpacks_hi_v16sf): Ditto.
9098 (vec_unpacks_float_hi_v16si): Ditto.
9099 (vec_unpacks_float_lo_v16si): Ditto.
9100 (avx512f_unpckhps512): Ditto.
9101 (avx512f_unpcklps512): Ditto.
9102 (avx512f_movshdup512): Ditto.
9103 (avx512f_movsldup512): Ditto.
9104 (vec_extract_lo_v32hi): Ditto.
9105 (vec_extract_hi_v32hi): Ditto.
9106 (vec_extract_lo_v64qi): Ditto.
9107 (vec_extract_hi_v64qi): Ditto.
9108 (avx512f_unpckhpd512): Ditto.
9109 (avx512f_movddup512): Ditto.
9110 (avx512f_unpcklpd512): Ditto.
9111 (*avx512f_unpcklpd512): Ditto.
9112 (avx512f_shufps512_1): Ditto.
9113 (avx512f_shufpd512_1): Ditto.
9114 (avx512f_interleave_highv8di): Ditto.
9115 (avx512f_interleave_lowv8di): Ditto.
9116 (PMOV_DST_MODE): Ditto.
9117 (pmov_src_mode): Ditto.
9118 (pmov_src_lower): Ditto.
9120 (*avx512f_<code><pmov_src_lower><mode>2): Ditto.
9121 (*avx512f_<code>v8div16qi2): Ditto.
9122 (*avx512f_<code>v8div16qi2_store): Ditto.
9123 (vec_widen_umult_even_v16si): Ditto.
9124 (*vec_widen_umult_even_v16si): Ditto.
9125 (vec_widen_smult_even_v16si): Ditto.
9126 (*vec_widen_smult_even_v16si): Ditto.
9127 (avx512f_interleave_highv16si): Ditto.
9128 (avx512f_interleave_lowv16si): Ditto.
9129 (avx512f_<code>v16qiv16si2): Ditto.
9130 (avx512f_<code>v16hiv16si2): Ditto.
9131 (avx512f_<code>v8qiv8di2): Ditto.
9132 (avx512f_<code>v8hiv8di2): Ditto.
9133 (avx512f_<code>v8siv8di2): Ditto.
9134 (avx512cd_maskb_vec_dupv8di): Ditto.
9135 (avx512cd_maskw_vec_dupv16si): Ditto.
9136 (avx512f_vcvtph2ps512): Ditto.
9137 (avx512f_vcvtps2ph512): Ditto.
9138 (VEC_EXTRACT_MODE): Extened with wider modes.
9139 (VEC_PERM_AVX2): Ditto.
9140 (VEC_PERM_CONST): Ditto.
9142 2013-10-28 Joern Rennecke <joern.rennecke@embecosm.com>
9144 * config/arc/arc.c (arc_ccfsm_post_advance):
9145 Add comment about TYPE_RETURN.
9147 2013-10-28 Bin Cheng <bin.cheng@arm.com>
9149 * tree-ssa-loop-ivopts.c (strip_offset_1): Change parameter type.
9150 Count DECL_FIELD_BIT_OFFSET for COMPONENT_REF.
9151 (strip_offset): Convert offset to unsigned number.
9153 2013-10-27 Tom de Vries <tom@codesourcery.com>
9155 * cfgexpand.c (gimple_expand_cfg): Remove test for parm_birth_insn.
9156 Don't commit insertions after NOTE_INSN_FUNCTION_BEG.
9158 2013-10-27 Oleg Endo <olegendo@gcc.gnu.org>
9160 * config/sh/sh.c (MSW, LSW): Move and rename macros to...
9161 * config/sh/sh.h (SH_REG_MSW_OFFSET, SH_REG_LSW_OFFSET): ... here.
9162 (TARGET_BIG_ENDIAN): New macro.
9163 * config/sh/sh.md: Use it instead of !TARGET_LITTLE_ENDIAN.
9164 Use SH_REG_MSW_OFFSET and SH_REG_LSW_OFFSET.
9165 * config/sh/sh.c: Likewise.
9166 * config/sh/sh.h: Likewise.
9168 2013-10-27 Hans-Peter Nilsson <hp@axis.com>
9170 * config/cris/cris.c (cris_emit_trap_for_misalignment): Replace the
9171 removed PRED_MUDFLAP with PRED_NORETURN. Correct file-path in comment.
9173 2013-10-26 Oleg Endo <olegendo@gcc.gnu.org>
9175 * config/sh/sh.md (movmemsi): Remove empty constraints and predicates.
9177 (cmpstr_t, cmpstrsi): Fix formatting.
9179 2013-10-26 Oleg Endo <olegendo@gcc.gnu.org>
9182 * config/sh/predicates.md (general_movdst_operand): Allow reg+reg
9183 addressing, do not use general_operand for memory operands.
9185 2013-10-26 Vladimir Makarov <vmakarov@redhat.com>
9188 2013-10-25 Vladimir Makarov <vmakarov@redhat.com>
9189 * lra-spills.c (lra_final_code_change): Remove useless move insns.
9191 2013-10-26 Jeff Law <law@redhat.com>
9193 * predict.c (PRED_MUDFLAP): Remove.
9194 * targhooks.c (build_va_arg_indirect_ref): Remove mudflap support.
9196 * Makefile.in (C_COMMON_OBJS): Remove tree-mudflap.
9197 (OBJS): Remove tree-nomudflap.o
9198 (GTFILES): Remove tree-mudflap.c
9199 * builtins.c (expand_builtin_alloc): Remove mudflap support.
9200 * gcc.c (MFWRAP_SPEC, MFLIB_SPEC): Likewise.
9201 (mfwrap_spec, mflib_spec): Likewise.
9202 (cpp_unique_options, cc1_options, static_specs): Likewise.
9203 * gimplify (gimplify_vla_decl, build_va_arg_indirect_ref): Likewise.
9204 * passes.def: Likewise.
9205 * toplev.c (compile_file, process_options): Likewise.
9206 * tree-inline.c (copy_tree_r): Likewise.
9207 * tree-pass.,h (make_pass_mudflap_1, make_pass_mudflap_2): Likewise.
9208 * varasm.c (make_decl_rtl, make_decl_rtl_for_debug): Likewise.
9209 (build_constant_desc, output_constant_def_contents): Likewise.
9210 (categorize_decl_for_section): Likewise.
9211 * tree-mudflap.c: Removed.
9212 * tree-mudflap.h: Removed.
9213 * tree-nomudflap.c: Removed.
9214 * bfin/uclinux.h (MFWRAP_SPEC): Remove.
9215 * moxie/uclinux.h (MFWRAP_SPEC): Likewise.
9216 * rs6000/aix.h (MFWRAP_SPEC, MFLIB_SPEC): Likewise.
9217 * config/sol2.h (MFLIB_SPEC): Likewise.
9218 * doc/install.texi: Remove mudflap references.
9219 * doc/passes.texi: Similarly.
9220 * doc/sourcebuild.texi: Similarly.
9221 * doc/invoke.texi: Remove mudlfap related options.
9223 2013-10-25 Vladimir Makarov <vmakarov@redhat.com>
9225 PR rtl-optimization/58759
9226 * lra-constraints.c (lra_constraints): Remove wrong condition to
9227 remove insn setting up an equivalent pseudo.
9229 2013-10-25 Vladimir Makarov <vmakarov@redhat.com>
9231 * config/rs6000/rs6000-protos.h
9232 (rs6000_secondary_memory_needed_mode): New prototype.
9233 * config/rs6000/rs6000.c: Include ira.h.
9234 (TARGET_LRA_P): Redefine.
9235 (rs6000_legitimate_offset_address_p): Call
9236 legitimate_constant_pool_address_p in strict mode for LRA.
9237 (rs6000_legitimate_address_p): Ditto.
9238 (legitimate_lo_sum_address_p): Add code for LRA. Use lra_in_progress.
9239 (rs6000_emit_move): Add LRA version of code to generate load/store
9241 (rs6000_secondary_memory_needed_mode): New.
9242 (rs6000_alloc_sdmode_stack_slot): Do nothing for LRA.
9243 (rs6000_secondary_reload_class): Return NO_REGS for LRA for
9244 constants, memory, and FP registers.
9245 (rs6000_lra_p): New.
9246 * config/rs6000/rs6000.h (SECONDARY_MEMORY_NEEDED_MODE): New macro.
9247 * config/rs6000/rs6000.opt (mlra): New option.
9248 * lra-spills.c (lra_final_code_change): Remove useless move insns.
9250 2013-10-25 Yufeng Zhang <yufeng.zhang@arm.com>
9252 * tree-ssa-math-opts.c (convert_plusminus_to_widen): Call
9253 has_single_use () and not do the conversion if has_single_use ()
9254 returns false for the multiplication result.
9256 2013-10-25 David Malcolm <dmalcolm@redhat.com>
9258 * tree.h (EXCEPTIONAL_CLASS_P): Rename parameter from "CODE"
9259 to "NODE", since this works on a "tree", not an
9261 (CONSTANT_CLASS_P): Likewise.
9264 (INDIRECT_REF_P): Likewise.
9265 (REFERENCE_CLASS_P): Likewise.
9266 (COMPARISON_CLASS_P): Likewise.
9267 (UNARY_CLASS_P): Likewise.
9268 (BINARY_CLASS_P): Likewise.
9269 (STATEMENT_CLASS_P): Likewise.
9270 (VL_EXP_CLASS_P): Likewise.
9271 (EXPRESSION_CLASS_P): Likewise.
9272 (IS_TYPE_OR_DECL_P): Likewise.
9274 2013-10-25 Marc Glisse <marc.glisse@inria.fr>
9276 * tree-ssa-alias.c (ao_ref_init_from_ptr_and_size): Look for an
9277 ADDR_EXPR in the defining statement.
9279 2013-10-25 Richard Biener <rguenther@suse.de>
9281 PR tree-optimization/58626
9282 * tree-loop-distribution.c (enum rdg_dep_type): Remove
9283 anti_dd, output_dd and input_dd.
9284 (struct rdg_edge): Remove level and relation members.
9285 (RDGE_LEVEL, RDGE_RELATION): Remove.
9286 (dot_rdg_1): Adjust.
9287 (create_rdg_edge_for_ddr): Remove.
9288 (create_rdg_edges_for_scalar): Adjust.
9289 (create_edge_for_control_dependence): Likewise.
9290 (create_rdg_edges): Split into ...
9291 (create_rdg_flow_edges): ... this
9292 (create_rdg_cd_edges): ... and this.
9294 (build_rdg): Likewise, do not compute data dependences or
9296 (pg_add_dependence_edges): New function.
9298 (distribute_loop): First apply all non-dependence based
9299 partition mergings. Then compute dependences between partitions
9300 and merge and order partitions according to them.
9302 2013-10-25 Eric Botcazou <ebotcazou@adacore.com>
9304 PR rtl-optimization/58831
9305 * alias.c (init_alias_analysis): At the beginning of each iteration,
9306 set the reg_seen[N] bit if static_reg_base_value[N] is non-null.
9308 2013-10-25 Eric Botcazou <ebotcazou@adacore.com>
9310 * recog.c (search_ofs): New static variable moved from...
9311 (peep2_find_free_register): ...here.
9312 (peephole2_optimize): Initialize it.
9314 2013-10-25 Tobias Burnus <burnus@net-b.de>
9316 * doc/invoke.texi (fopenmp): Change supported OpenMP version to 4.0.
9318 2013-10-25 Uros Bizjak <ubizjak@gmail.com>
9320 * config/i386/i386.h (TARGET_MPX): New define.
9321 (TARGET_MPX_P): Ditto.
9323 2013-10-24 Ilya Enkovich <ilya.enkovich@intel.com>
9325 * config/i386/constraints.md (B): New.
9328 * config/i386/i386-c.c (ix86_target_macros_internal): Add __MPX__.
9329 * config/i386/i386-modes.def (BND32): New.
9331 * config/i386/i386-protos.h (ix86_bnd_prefixed_insn_p): New.
9332 * config/i386/i386.c (isa_opts): Add mmpx.
9333 (regclass_map): Add bound registers.
9334 (dbx_register_map): Likewise.
9335 (dbx64_register_map): Likewise.
9336 (svr4_dbx_register_map): Likewise.
9338 (ix86_option_override_internal): Support MPX ISA.
9339 (ix86_conditional_register_usage): Support bound registers.
9340 (print_reg): Likewise.
9341 (ix86_code_end): Add MPX bnd prefix.
9342 (output_set_got): Likewise.
9343 (ix86_output_call_insn): Likewise.
9344 (ix86_print_operand): Add '!' (MPX bnd) print prefix support.
9345 (ix86_print_operand_punct_valid_p): Likewise.
9346 (ix86_print_operand_address): Support UNSPEC_BNDMK_ADDR and
9348 (ix86_class_likely_spilled_p): Add bound regs support.
9349 (ix86_hard_regno_mode_ok): Likewise.
9350 (x86_order_regs_for_local_alloc): Likewise.
9351 (ix86_bnd_prefixed_insn_p): New.
9352 * config/i386/i386.h (FIRST_PSEUDO_REGISTER): Fix to new value.
9353 (FIXED_REGISTERS): Add bound registers.
9354 (CALL_USED_REGISTERS): Likewise.
9355 (REG_ALLOC_ORDER): Likewise.
9356 (HARD_REGNO_NREGS): Likewise.
9358 (VALID_BND_REG_MODE): New.
9359 (FIRST_BND_REG): New.
9360 (LAST_BND_REG): New.
9361 (reg_class): Add BND_REGS.
9362 (REG_CLASS_NAMES): Likewise.
9363 (REG_CLASS_CONTENTS): Likewise.
9365 (ANY_BND_REG_P): New.
9367 (HI_REGISTER_NAMES): Add bound registers.
9368 * config/i386/i386.md (UNSPEC_BNDMK): New.
9369 (UNSPEC_BNDMK_ADDR): New.
9370 (UNSPEC_BNDSTX): New.
9371 (UNSPEC_BNDLDX): New.
9372 (UNSPEC_BNDLDX_ADDR): New.
9373 (UNSPEC_BNDCL): New.
9374 (UNSPEC_BNDCU): New.
9375 (UNSPEC_BNDCN): New.
9376 (UNSPEC_MPX_FENCE): New.
9379 (type): Add mpxmov, mpxmk, mpxchk, mpxld, mpxst.
9380 (length_immediate): Likewise.
9381 (prefix_0f): Likewise.
9383 (prefix_rep): Check for bnd prefix.
9384 (length_nobnd): New.
9385 (length): Use length_nobnd if specified.
9390 (*jcc_1): Add bnd prefix and rename length attr to length_nobnd.
9393 (simple_return_internal): Likewise.
9394 (simple_return_pop_internal): Likewise.
9395 (*indirect_jump): Add MPX bnd prefix.
9396 (*tablejump_1): Likewise.
9397 (simple_return_internal_long): Likewise.
9398 (simple_return_indirect_internal): Likewise.
9402 (*mov<mode>_internal_mpx): New.
9403 (<mode>_<bndcheck>): New.
9404 (*<mode>_<bndcheck>): New.
9409 * config/i386/predicates.md (lea_address_operand): Rename to...
9410 (address_no_seg_operand): ... this.
9411 (address_mpx_no_base_operand): New.
9412 (address_mpx_no_index_operand): New.
9413 (bnd_mem_operator): New.
9414 * config/i386/i386.opt (mmpx): New.
9415 * doc/invoke.texi: Add documentation for the flags -mmpx, -mno-mpx.
9416 * doc/rtl.texi Add documentation for BND32mode and BND64mode.
9418 2013-10-24 Ilya Enkovich <ilya.enkovich@intel.com>
9420 * mode-classes.def (MODE_POINTER_BOUNDS): New.
9421 * tree.def (POINTER_BOUNDS_TYPE): New.
9422 * genmodes.c (complete_mode): Support MODE_POINTER_BOUNDS.
9423 (POINTER_BOUNDS_MODE): New.
9424 (make_pointer_bounds_mode): New.
9425 * machmode.h (POINTER_BOUNDS_MODE_P): New.
9426 * stor-layout.c (int_mode_for_mode): Support MODE_POINTER_BOUNDS.
9427 (layout_type): Support POINTER_BOUNDS_TYPE.
9428 * tree-pretty-print.c (dump_generic_node): Support POINTER_BOUNDS_TYPE.
9429 * tree.c (build_int_cst_wide): Support POINTER_BOUNDS_TYPE.
9430 (type_contains_placeholder_1): Likewise.
9431 * tree.h (POINTER_BOUNDS_TYPE_P): New.
9432 * varasm.c (output_constant): Support POINTER_BOUNDS_TYPE.
9433 * doc/rtl.texi (MODE_POINTER_BOUNDS): New.
9435 2013-10-24 Igor Shevlyakov <igor.shevlyakov@gmail.com>
9437 * expr.c (expand_expr_real_1): Use mode of memory reference rather than
9438 mode of address computation when calling memory_address_addr_space.
9440 2013-08-24 Richard Henderson <rth@twiddle.net>
9443 * optabs.c (maybe_emit_atomic_exchange): Use create_input_operand
9444 instead of create_convert_operand_to.
9445 (maybe_emit_sync_lock_test_and_set): Likewise.
9446 (expand_atomic_compare_and_swap): Likewise.
9447 (maybe_emit_compare_and_swap_exchange_loop): Don't convert_modes.
9449 2013-08-24 Sriraman Tallam <tmsriram@google.com>
9451 * cgraph.c (cgraph_fnver_htab): Move GTY((...)) to be before htab_t.
9452 Change param_is to use the struct and not the pointer to the struct.
9454 2013-10-24 Andrew MacLeod <amacleod@redhat.com>
9456 * builtins.c (dummy_object, gimplify_va_arg_expr): Move to gimplify.c.
9457 * gimplify.c (build_va_arg_indirect_ref, std_gimplify_va_arg_expr):
9458 Move to targhooks.c.
9459 (dummy_object, gimplify_va_arg_expr): Relocate from builtins.c.
9460 * targhooks.c (build_va_arg_indirect_ref, std_gimplify_va_arg_expr):
9461 Relocate from gimplify.c.
9462 * targhooks.h: Add 2 prototypes.
9463 * tree.h: Delete 2 prototypes.
9465 2013-10-24 Igor Shevlyakov <igor.shevlyakov@gmail.com>
9467 * tree-ssa-loop-ivopts.c (multiplier_allowed_in_address_p ): Check both
9468 [reg+mult*reg] and [mult*reg] to determine if multiplier is allowed.
9470 2013-10-24 Cong Hou <congh@google.com>
9472 * convert.c (convert_to_real): Guard those unsafe math function
9473 convertions with flag_unsafe_math_optimizations. Handle sqrt()
9476 2013-10-24 Markus Trippelsdorf <markus@trippelsdorf.de>
9479 * cgraph.c (cgraph_create_edge_1): Add indirect_unknown_callee
9481 (cgraph_create_edge): Use the new argument.
9482 (cgraph_create_indirect_edge): Likewise.
9484 2013-10-24 Joern Rennecke <joern.rennecke@embecosm.com>
9486 * config/arc/arc.c (arc_ccfsm_post_advance): Also handle
9488 (arc_ifcvt) <case 1 and 2>: Check that arc_ccfsm_post_advance
9489 changes statep->state.
9491 2013-10-24 Tobias Burnus <burnus@net-b.de>
9494 * tree-cfg.c (replace_loop_annotate): New function.
9495 (execute_build_cfg): Call it.
9496 * gimplify.c (gimple_boolify, gimplify_expr): Handle ANNOTATE_EXPR.
9497 * internal-fn.c (expand_ANNOTATE): New function.
9498 * internal-fn.def (ANNOTATE): Define as new internal function.
9499 * tree-core.h (tree_node_kind): Add annot_expr_ivdep_kind.
9500 * tree-pretty-print.c (dump_generic_node): Handle ANNOTATE_EXPR.
9501 * tree.def (ANNOTATE_EXPR): New DEFTREECODE.
9502 * doc/extend.texi (Pragmas): Document #pragma ivdep.
9503 * doc/generic.texi (Expressions): Document ANNOTATE_EXPR.
9505 2013-10-17 Ian Bolton <ian.bolton@arm.com>
9506 Marcus Shawcroft <marcus.shawcroft@arm.com>
9508 * config/aarch64/aarch64.c (aarch64_preferred_reload_class):
9509 Special case reload SP+C into none GENERAL_REGS.
9511 2013-10-24 Michael Matz <matz@suse.de>
9513 * gengtype.c (is_file_equal): Check that files will be same length.
9515 2013-10-25 Christian Bruel <christian.bruel@st.com>
9517 * config.gcc (sh-*): Add sh-mem.o to extra_obj.
9518 * config/sh/t-sh (sh-mem.o): New rule.
9519 * config/sh/sh-mem.cc (expand_block_move): Moved here.
9520 (sh_expand_cmpstr): New function.
9521 * config/sh/sh.c (force_into, expand_block_move): Move to sh-mem.c.
9522 * config/sh/sh-protos.h (sh_expand_cmpstr): Declare.
9523 * config/sh/sh.md (cmpstrsi, cmpstr_t): New patterns.
9524 (rotlhi3_8): Rename.
9526 2013-10-24 Jan-Benedict Glaw <jbglaw@lug-owl.de>
9528 * configure.ac (ZW_PROG_COMPILER_DEPENDENCIES): Use CXX instead of CC.
9529 * Makefile.in (CXXDEPMODE): Assign and change users.
9530 (CCDEPMODE): Delete.
9531 * configure: Regenerate.
9533 2013-10-23 David Malcolm <dmalcolm@redhat.com>
9535 * gengtype-parse.c (require_without_advance): New.
9536 (type): For GTY-marked types that are not GTY((user)), parse any
9537 base classes, requiring them to be single-inheritance, and not
9538 be templates. For non-GTY-marked types and GTY((user)),
9539 continue to skip over any C++ inheritance specification.
9540 * gengtype-state.c (state_writer::write_state_struct_type):
9541 Write base class of type (if any).
9542 (read_state_struct_type): Read base class of type (if any).
9543 * gengtype.c (new_structure): Add a "base_class" parameter.
9544 (create_optional_field_): Update for new parameter to new_structure.
9545 (adjust_field_rtx_def): Likewise.
9546 (adjust_field_tree_exp): Likewise.
9547 * gengtype.h (struct type): Add "base_class" field to the s
9549 (new_structure): Add "base" parameter.
9551 2013-10-23 Sriraman Tallam <tmsriram@google.com>
9554 * config/i386/i386.c (ix86_option_override_internal):
9555 Change TARGET_SSE2 to TARGET_SSE2_P (opts->...)
9556 (ix86_valid_target_attribute_tree):
9557 Change TARGET_64BIT to TARGET_64BIT_P (opts->...)
9558 Change TARGET_SSE to TARGET_SSE_P (opts->...)
9560 2013-10-23 Andrew MacLeod <amacleod@redhat.com>
9562 * tree-ssa-loop.h: Remove include files.
9563 * gengtype.c (open_base_files): Adjust include list for gtype-desc.c.
9564 * cfgloopmanip.c: Move required includes from tree-ssa-loop.h.
9565 * graphite-clast-to-gimple.c: Likewise.
9566 * graphite-scop-detection.c: Likewise.
9567 * graphite-sese-to-poly.c: Likewise.
9568 * ipa-inline-analysis.c: Likewise.
9569 * ipa-pure-const.c: Likewise.
9570 * loop-init.c: Likewise.
9571 * passes.c: Likewise.
9572 * predict.c: Likewise.
9573 * tree-cfg.c: Likewise.
9574 * tree-cfgcleanup.c: Likewise.
9575 * tree-chrec.c: Likewise.
9576 * tree-data-ref.c: Likewise.
9577 * tree-loop-distribution.c: Likewise.
9578 * tree-parloops.c: Likewise.
9579 * tree-predcom.c: Likewise.
9580 * tree-scalar-evolution.c: Likewise.
9581 * tree-ssa-address.c: Likewise.
9582 * tree-ssa.c: Likewise.
9583 * tree-ssa-dce.c: Likewise.
9584 * tree-ssa-loop.c: Likewise.
9585 * tree-ssa-loop-im.c: Likewise.
9586 * tree-ssa-loop-ivcanon.c: Likewise.
9587 * tree-ssa-loop-ivopts.c: Likewise.
9588 * tree-ssa-loop-manip.c: Likewise.
9589 * tree-ssa-loop-niter.c: Likewise.
9590 * tree-ssa-loop-prefetch.c: Likewise.
9591 * tree-ssa-loop-unswitch.c: Likewise.
9592 * tree-ssa-reassoc.c: Likewise.
9593 * tree-vect-data-refs.c: Likewise.
9594 * tree-vect-loop.c: Likewise.
9595 * tree-vect-loop-manip.c: Likewise.
9596 * tree-vectorizer.c: Likewise.
9597 * tree-vect-stmts.c: Likewise.
9598 * tree-vrp.c: Likewise.
9600 2013-10-23 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
9602 * config/rs6000/altivec.md (mulv8hi3): Adjust for little endian.
9604 2013-10-23 Jakub Jelinek <jakub@redhat.com>
9606 PR tree-optimization/58775
9607 PR tree-optimization/58791
9608 * tree-ssa-reassoc.c (reassoc_stmt_dominates_stmt_p): New function.
9609 (insert_stmt_after): Rewritten, don't move the stmt, but really
9611 (get_stmt_uid_with_default): Remove.
9612 (build_and_add_sum): Use insert_stmt_after and
9613 reassoc_stmt_dominates_stmt_p. Fix up uid if bb contains only labels.
9614 (update_range_test): Set uid on stmts added by
9615 force_gimple_operand_gsi. Don't immediately modify statements
9616 in inter-bb optimization, just update oe->op values.
9617 (optimize_range_tests): Return bool whether any changed have been made.
9618 (update_ops): New function.
9619 (struct inter_bb_range_test_entry): New type.
9620 (maybe_optimize_range_tests): Perform statement changes here.
9621 (not_dominated_by, appears_later_in_bb, get_def_stmt,
9622 ensure_ops_are_available): Remove.
9623 (find_insert_point): Rewritten.
9624 (rewrite_expr_tree): Remove MOVED argument, add CHANGED argument,
9625 return LHS of the (new resp. old) stmt. Don't call
9626 ensure_ops_are_available, don't reuse SSA_NAMEs, recurse first
9627 instead of last, move new stmt at the right place.
9628 (linearize_expr, repropagate_negates): Don't reuse SSA_NAMEs.
9629 (negate_value): Likewise. Set uids.
9630 (break_up_subtract_bb): Initialize uids.
9631 (reassociate_bb): Adjust rewrite_expr_tree caller.
9632 (do_reassoc): Don't call renumber_gimple_stmt_uids.
9634 2013-10-23 David Edelsohn <dje.gcc@gmail.com>
9637 * config/rs6000/rs6000.md (mulsi3_internal1 and splitter): Add
9638 TARGET_32BIT final condition.
9639 (mulsi3_internal2 and splitter): Same.
9641 2013-10-23 Jeff Law <law@redhat.com>
9643 * tree-ssa-threadedge.c (thread_across_edge): Do not allow threading
9644 through joiner blocks with abnormal outgoing edges.
9646 * tree-ssa-threadupdate.c (thread_block_1): Renamed from thread_block.
9647 Add parameter JOINERS, to allow/disallow threading through joiner
9649 (thread_block): New. Call thread_block_1.
9650 (mark_threaded_blocks): Remove code to filter out certain cases
9651 of threading through joiner blocks.
9652 (thread_through_all_blocks): Document how we can have a dangling
9653 edge AUX field and clear it.
9655 2013-10-23 Ian Lance Taylor <iant@google.com>
9657 * doc/invoke.texi (Option Summary): Remove -fno-default-inline.
9658 (C++ Dialect Options): Likewise.
9659 (Optimize Options): Likewise.
9661 2013-10-23 Tom de Vries <tom@codesourcery.com>
9663 PR tree-optimization/58805
9664 * tree-ssa-tail-merge.c (stmt_local_def): Add gimple_vdef check.
9666 2013-10-23 Jakub Jelinek <jakub@redhat.com>
9668 * tree-vect-patterns.c (vect_recog_divmod_pattern): Optimize
9669 sequence based on get_range_info returned range.
9671 2013-10-23 Andrew MacLeod <amacleod@redhat.com>
9673 * tree-ssa.h: Remove all #include's
9674 * gengtype.c (open_base_files): Adjust include list for gtype-desc.c.
9675 * alias.c: Move required includes from tree-ssa.h.
9677 * builtins.c: Likewise.
9678 * calls.c: Likewise.
9679 * cfgexpand.c: Likewise.
9680 * cfghooks.c: Likewise.
9681 * cfgloop.c: Likewise.
9682 * cfgloopmanip.c: Likewise.
9683 * cgraph.c: Likewise.
9684 * cgraphbuild.c: Likewise.
9685 * cgraphclones.c: Likewise.
9686 * cgraphunit.c: Likewise.
9688 * except.c: Likewise.
9690 * final.c: Likewise.
9691 * fold-const.c: Likewise.
9692 * ggc-page.c: Likewise.
9693 * gimple-builder.c: Likewise.
9694 * gimple-fold.c: Likewise.
9695 * gimple-iterator.c: Likewise.
9696 * gimple-low.c: Likewise.
9697 * gimple-pretty-print.c: Likewise.
9698 * gimple-ssa-strength-reduction.c: Likewise.
9699 * gimple-streamer-in.c: Likewise.
9700 * gimple-streamer-out.c: Likewise.
9701 * gimplify.c: Likewise.
9702 * graphite-blocking.c: Likewise.
9703 * graphite-clast-to-gimple.c: Likewise.
9704 * graphite-dependences.c: Likewise.
9705 * graphite-interchange.c: Likewise.
9706 * graphite-optimize-isl.c: Likewise.
9707 * graphite-poly.c: Likewise.
9708 * graphite-scop-detection.c: Likewise.
9709 * graphite-sese-to-poly.c: Likewise.
9710 * graphite.c: Likewise.
9711 * ipa-cp.c: Likewise.
9712 * ipa-inline-analysis.c: Likewise.
9713 * ipa-inline-transform.c: Likewise.
9714 * ipa-inline.c: Likewise.
9715 * ipa-prop.c: Likewise.
9716 * ipa-pure-const.c: Likewise.
9717 * ipa-reference.c: Likewise.
9718 * ipa-split.c: Likewise.
9719 * ipa-utils.c: Likewise.
9720 * loop-init.c: Likewise.
9721 * lto-cgraph.c: Likewise.
9722 * lto-section-in.c: Likewise.
9723 * lto-section-out.c: Likewise.
9724 * lto-streamer-in.c: Likewise.
9725 * lto-streamer-out.c: Likewise.
9726 * lto-streamer.c: Likewise.
9727 * omp-low.c: Likewise.
9728 * passes.c: Likewise.
9729 * predict.c: Likewise.
9730 * print-tree.c: Likewise.
9731 * profile.c: Likewise.
9733 * targhooks.c: Likewise.
9734 * tracer.c: Likewise.
9735 * trans-mem.c: Likewise.
9736 * tree-call-cdce.c: Likewise.
9737 * tree-cfg.c: Likewise.
9738 * tree-cfgcleanup.c: Likewise.
9739 * tree-chrec.c: Likewise.
9740 * tree-complex.c: Likewise.
9741 * tree-data-ref.c: Likewise.
9742 * tree-dfa.c: Likewise.
9743 * tree-eh.c: Likewise.
9744 * tree-emutls.c: Likewise.
9745 * tree-if-conv.c: Likewise.
9746 * tree-inline.c: Likewise.
9747 * tree-into-ssa.c: Likewise.
9748 * tree-loop-distribution.c: Likewise.
9749 * tree-mudflap.c: Likewise.
9750 * tree-nested.c: Likewise.
9751 * tree-nrv.c: Likewise.
9752 * tree-object-size.c: Likewise.
9753 * tree-outof-ssa.c: Likewise.
9754 * tree-parloops.c: Likewise.
9755 * tree-phinodes.c: Likewise.
9756 * tree-predcom.c: Likewise.
9757 * tree-pretty-print.c: Likewise.
9758 * tree-profile.c: Likewise.
9759 * tree-scalar-evolution.c: Likewise.
9760 * tree-sra.c: Likewise.
9761 * tree-ssa-address.c: Likewise.
9762 * tree-ssa-alias.c: Likewise.
9763 * tree-ssa-ccp.c: Likewise.
9764 * tree-ssa-coalesce.c: Likewise.
9765 * tree-ssa-copy.c: Likewise.
9766 * tree-ssa-copyrename.c: Likewise.
9767 * tree-ssa-dce.c: Likewise.
9768 * tree-ssa-dom.c: Likewise.
9769 * tree-ssa-dse.c: Likewise.
9770 * tree-ssa-forwprop.c: Likewise.
9771 * tree-ssa-ifcombine.c: Likewise.
9772 * tree-ssa-live.c: Likewise.
9773 * tree-ssa-loop-ch.c: Likewise.
9774 * tree-ssa-loop-im.c: Likewise.
9775 * tree-ssa-loop-ivcanon.c: Likewise.
9776 * tree-ssa-loop-ivopts.c: Likewise.
9777 * tree-ssa-loop-manip.c: Likewise.
9778 * tree-ssa-loop-niter.c: Likewise.
9779 * tree-ssa-loop-prefetch.c: Likewise.
9780 * tree-ssa-loop-unswitch.c: Likewise.
9781 * tree-ssa-loop.c: Likewise.
9782 * tree-ssa-math-opts.c: Likewise.
9783 * tree-ssa-operands.c: Likewise.
9784 * tree-ssa-phiopt.c: Likewise.
9785 * tree-ssa-phiprop.c: Likewise.
9786 * tree-ssa-pre.c: Likewise.
9787 * tree-ssa-propagate.c: Likewise.
9788 * tree-ssa-reassoc.c: Likewise.
9789 * tree-ssa-sccvn.c: Likewise.
9790 * tree-ssa-sink.c: Likewise.
9791 * tree-ssa-strlen.c: Likewise.
9792 * tree-ssa-structalias.c: Likewise.
9793 * tree-ssa-tail-merge.c: Likewise.
9794 * tree-ssa-ter.c: Likewise.
9795 * tree-ssa-threadedge.c: Likewise.
9796 * tree-ssa-threadupdate.c: Likewise.
9797 * tree-ssa-uncprop.c: Likewise.
9798 * tree-ssa-uninit.c: Likewise.
9799 * tree-ssa.c: Likewise.
9800 * tree-ssanames.c: Likewise.
9801 * tree-stdarg.c: Likewise.
9802 * tree-streamer-in.c: Likewise.
9803 * tree-switch-conversion.c: Likewise.
9804 * tree-tailcall.c: Likewise.
9805 * tree-vect-data-refs.c: Likewise.
9806 * tree-vect-generic.c: Likewise.
9807 * tree-vect-loop-manip.c: Likewise.
9808 * tree-vect-loop.c: Likewise.
9809 * tree-vect-patterns.c: Likewise.
9810 * tree-vect-slp.c: Likewise.
9811 * tree-vect-stmts.c: Likewise.
9812 * tree-vectorizer.c: Likewise.
9813 * tree-vrp.c: Likewise.
9816 * value-prof.c: Likewise.
9817 * var-tracking.c: Likewise.
9818 * varpool.c: Likewise.
9819 * vtable-verify.c: Likewise.
9821 2013-10-23 Jan-Benedict Glaw <jbglaw@lug-owl.de>
9823 * config/tilegx/tilegx.c: Include "tree.h".
9825 2013-10-23 Jakub Jelinek <jakub@redhat.com>
9827 * gimple-pretty-print.c (dump_ssaname_info): Always print "# " before
9828 the info, not after it.
9829 (gump_gimple_phi): Add COMMENT argument, if true, print "# " after
9830 dump_ssaname_info call.
9831 (pp_gimple_stmt_1): Adjust caller.
9832 (dump_phi_nodes): Likewise. Don't print "# " here.
9834 2013-10-22 Jan Hubicka <jh@suse.cz>
9836 * i386.h (TARGET_MISALIGNED_MOVE_STRING_PROLOGUES_EPILOGUES): New
9838 * x86-tune.def (TARGET_MISALIGNED_MOVE_STRING_PROLOGUES): Define it.
9839 * i386.c (expand_small_movmem_or_setmem): New function.
9840 (expand_set_or_movmem_prologue_epilogue_by_misaligned_moves): New
9842 (alg_usable_p): Add support for value ranges; cleanup.
9843 (ix86_expand_set_or_movmem): Add support for misaligned moves.
9845 2013-10-22 Sterling Augustine <saugustine@google.com>
9847 * doc/invoke.texi: Document -ggnu-pubnames.
9848 * common.opt: Add new option -ggnu-pubnames and modify -gpubnames
9850 * dwarf2out.c: Include gdb/gdb-index.h.
9851 (DEBUG_PUBNAMES_SECTION, DEBUG_PUBTYPES_SECTION): Handle
9852 debug_generate_pub_sections.
9853 (is_java, output_pubtables, output_pubname): New functions.
9854 (include_pubname_in_output): Handle debug_generate_pub_sections at
9856 (size_of_pubnames): Use new local space_for_flags based on
9857 debug_generate_pub_sections.
9858 (output_pubnames): Unify pubnames and pubtypes output logic.
9859 Genericize comments. Call output_pubname.
9860 (dwarf2out_finish): Move logic to output_pubnames and call it.
9862 2013-10-22 Uros Bizjak <ubizjak@gmail.com>
9865 * config/i386/i386.c (put_condition_code) <case GTU, case LEU>:
9866 Remove CCCmode handling.
9867 <case LTU>: Return 'c' suffix for CCCmode.
9868 <case GEU>: Return 'nc' suffix for CCCmode.
9869 (ix86_cc_mode) <case GTU, case LEU>: Do not generate overflow checks.
9870 * config/i386/i386.md (*sub<mode>3_cconly_overflow): Remove.
9871 (*sub<mode>3_cc_overflow): Ditto.
9872 (*subsi3_zext_cc_overflow): Ditto.
9874 2013-10-22 Steve Ellcey <sellcey@mips.com>
9876 * config/mips/mips.c (mips_rtx_costs): Fix cost estimate for nor
9877 (AND (NOT OP1) (NOT OP2)).
9879 2013-10-22 Bill Schmidt <wschmidt@vnet.ibm.com>
9881 * config/rs6000/rs6000.c (altivec_expand_vec_perm_const): Reverse
9882 meaning of merge-high and merge-low masks for little endian; avoid
9883 use of vector-pack masks for little endian for mismatched modes.
9885 2013-10-22 Jan-Benedict Glaw <jbglaw@lug-owl.de>
9887 * config/tilepro/tilepro.c: Include "tree.h".
9889 2013-10-22 Andreas Schwab <schwab@suse.de>
9891 * config/m68k/m68k.c (notice_update_cc): Handle register conflict
9894 2013-10-22 Paolo Carlini <paolo.carlini@oracle.com>
9896 * doc/contrib.texi ([Fran@,{c}ois Dumont], [Tim Shen],
9897 [Ed Smith-Rowland]): New entries.
9898 ([Stephen M. Webb]): Update.
9900 2013-10-22 Andrew MacLeod <amacleod@redhat.com>
9902 * tree-ssa-ter.h: Remove duplicate copy of file contents.
9904 2013-10-21 Marek Polacek <polacek@redhat.com>
9907 * fold-const.c (fold_range_test): Return 0 if the type is not
9910 2013-10-21 Richard Sandiford <rdsandiford@googlemail.com>
9912 * system.h: Move hwint.h include further down.
9913 * hwint.h (sext_hwi, zext_hwi): Define unconditionally. Add
9914 gcc_checking_asserts.
9915 * hwint.c (sext_hwi, zext_hwi): Delete ENABLE_CHECKING versions.
9917 2013-10-21 Bernd Edlinger <bernd.edlinger@hotmail.de>
9919 Fix volatile issues in optimize_bit_field_compare.
9920 * fold-const.c (optimize_bit_field_compare): Bail out if
9921 lvolatilep or rvolatilep.
9923 2013-10-21 Bernd Edlinger <bernd.edlinger@hotmail.de>
9925 Fix DECL_BIT_FIELD depencency on flag_strict_volatile_bitfields
9926 and get_inner_reference returning different pmode for non-volatile
9927 bit-field members dependent on flag_strict_volatile_bitfields.
9928 * stor-layout.c (layout_decl): Remove special handling of
9929 flag_strict_volatile_bitfields.
9930 * expr.c (get_inner_reference): Don't use DECL_BIT_FIELD
9931 if flag_strict_volatile_bitfields > 0 and TREE_THIS_VOLATILE.
9933 2013-10-21 Paulo Matos <pmatos@broadcom.com>
9935 * ipa-inline.c (edge_badness): Cap edge->count at max_count for badness
9938 2013-10-21 Jeff Law <law@redhat.com>
9940 * tree-ssa-threadedge.c (thread_through_normal_block): New
9941 argument VISITED. Remove VISISTED as a local variable. When we
9942 have a threadable jump, verify the destination of the jump has not
9944 (thread_across_edge): Allocate VISITED bitmap once at function
9945 scope and use it throughout. Make sure to set appropriate bits in
9946 VISITED for E (start of jump thread path).
9947 * tree-ssa-threadupdate.c (mark_threaded_blocks): Reject threading
9948 through a joiner if any edge on the path has a recorded jump thread.
9950 2013-10-21 Ian Lance Taylor <iant@google.com>
9952 * doc/invoke.texi (Optimize Options): For -fno-toplevel-reorder,
9953 don't imply that attributes can solve all problems.
9954 (Directory Options): Fix typo.
9956 2013-10-21 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
9958 * config/arm/arm.c (cortexa9_extra_costs): Update mult costs for
9959 extend and extend_add.
9961 2013-10-21 Richard Biener <rguenther@suse.de>
9963 PR tree-optimization/58794
9964 * fold-const.c (operand_equal_p): Compare FIELD_DECL operand
9965 of COMPONENT_REFs with OEP_CONSTANT_ADDRESS_OF left in place.
9967 2013-10-21 Richard Biener <rguenther@suse.de>
9970 * fold-const.c (fold_binary_loc): Fold ((T) (X /[ex] C)) * C
9971 to (T) X for sign-changing conversions (or no conversion).
9973 2013-10-20 Uros Bizjak <ubizjak@gmail.com>
9975 * config/i386/i386.md (kxnor<mode>): Add FLAGS_REG clobber.
9977 2013-10-20 Jan Hubicka <jh@suse.cz>
9979 * config/i386/i386-tune.def: Add comment; organize into categories
9981 2013-10-21 Michael Zolotukhin <michael.v.zolotukhin@gmail.com>
9983 * config/i386/i386.c (expand_set_or_movmem_via_loop): Add issetmem
9984 argument. Update function comment.
9985 (expand_set_or_movmem_via_rep): New function combining
9986 expand_movmem_via_rep_mov and expand_setmem_via_rep_stos.
9987 (expand_movmem_via_rep_mov): Remove.
9988 expand_setmem_via_rep_stos): Remove.
9989 (expand_movmem_epilogue): Update calls correspondingly.
9990 (expand_setmem_epilogue_via_loop): Likewise.
9992 (expand_setmem_epilogue): Add VEC_VALUE argument, refactor.
9993 (expand_set_or_movmem_prologue): New function combining
9994 expand_movmem_prologue and expand_setmem_prologue.
9995 (expand_movmem_prologue): Remove.
9996 (expand_setmem_prologue): Remove.
9997 (expand_set_or_movmem_constant_prologue): New function combining
9998 expand_constant_movmem_prologue and expand_constant_setmem_prologue.
9999 (expand_constant_movmem_prologue): Remove.
10000 (expand_constant_setmem_prologue): Remove.
10001 (promote_duplicated_reg): Allow vector-const0 value.
10002 (ix86_expand_set_or_movmem): New function combining ix86_expand_movmem
10003 and ix86_expand_setmem.
10004 (ix86_expand_movmem): Call ix86_expand_set_or_movmem.
10005 (ix86_expand_setmem): Call ix86_expand_set_or_movmem.
10007 2013-10-21 Diego Novillo <dnovillo@google.com>
10009 * asan.c: Include tree.h
10010 * bb-reorder.c: Likewise.
10011 * cfgcleanup.c: Likewise.
10012 * cfgloopmanip.c: Likewise.
10013 * data-streamer-in.c: Likewise.
10014 * data-streamer-out.c: Likewise.
10015 * data-streamer.c: Likewise.
10016 * dwarf2cfi.c: Likewise.
10017 * graphite-blocking.c: Likewise.
10018 * graphite-clast-to-gimple.c: Likewise.
10019 * graphite-dependences.c: Likewise.
10020 * graphite-interchange.c: Likewise.
10021 * graphite-optimize-isl.c: Likewise.
10022 * graphite-poly.c: Likewise.
10023 * graphite-scop-detection.c: Likewise.
10024 * graphite-sese-to-poly.c: Likewise.
10025 * graphite.c: Likewise.
10026 * ipa-devirt.c: Likewise.
10027 * ipa-profile.c: Likewise.
10030 * loop-init.c: Likewise.
10031 * loop-unroll.c: Likewise.
10032 * lower-subreg.c: Likewise.
10033 * lto/lto-object.c: Likewise.
10034 * recog.c: Likewise.
10035 * reginfo.c: Likewise.
10036 * tree-loop-distribution.c: Likewise.
10037 * tree-parloops.c: Likewise.
10038 * tree-ssa-strlen.c: Likewise.
10039 * tree-streamer.c: Likewise.
10040 * value-prof.c: Likewise.
10041 * target-globals.c: Likewise.
10042 * expr.h: Include tree-core.h instead of tree.h.
10043 * gimple.h: Likewise.
10044 * ipa-prop.h: Likewise.
10045 * ipa-utils.h: Likewise.
10046 * lto-streamer.h: Likewise.
10047 * streamer-hooks.h: Likewise.
10048 * ipa-reference.h: Include cgraph.h instead of tree.h.
10049 * cgraph.h: Include basic-block.h instead of tree.h.
10050 * tree-streamer.h: Do not include tree.h.
10051 * genattrtab.c (write_header): Generate inclusion of tree.h.
10052 * genautomata.c (main): Likewise.
10053 * genemit.c: Likewise.
10054 * genopinit.c: Likewise.
10055 * genoutput.c (output_prologue): Likewise.
10056 * genpeep.c: Likewise.
10058 2013-10-20 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
10060 * config/rs6000/altivec.md (vec_unpacku_hi_v16qi): Adjust for
10062 (vec_unpacku_hi_v8hi): Likewise.
10063 (vec_unpacku_lo_v16qi): Likewise.
10064 (vec_unpacku_lo_v8hi): Likewise.
10066 2013-10-20 Jan Hubicka <jh@suse.cz>
10068 * config/i386/x86-tune.def (X86_TUNE_SLOW_IMUL_IMM32_MEM,
10069 X86_TUNE_SLOW_IMUL_IMM8): Keep enabled only for K8 and AMDFAM10.
10070 (X86_TUNE_USE_VECTOR_FP_CONVERTS): Disable for generic.
10072 2013-10-20 Richard Sandiford <rdsandiford@googlemail.com>
10074 * config/mips/mips.h (ISA_HAS_WSBH): Define.
10075 * config/mips/mips.md (UNSPEC_WSBH, UNSPEC_DSBH, UNSPEC_DSHD): New
10077 (bswaphi2, bswapsi2, bswapdi2, wsbh, dsbh, dshd): New patterns.
10079 2013-10-19 John David Anglin <danglin@gcc.gnu.org>
10082 * system.h: Undef m_slot.
10084 2013-10-19 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
10086 * config/rs6000/rs6000.c (vspltis_constant): Make sure we check
10087 all elements for both endian flavors.
10089 2013-10-19 Uros Bizjak <ubizjak@gmail.com>
10092 * config/i386/i386.c (ix86_function_value_regno): Add DX_REG,
10093 ST1_REG and XMM1_REG for 32bit and 64bit targets. Also add DI_REG
10094 and SI_REG for 64bit SYSV ABI targets.
10096 2013-10-19 Uros Bizjak <ubizjak@gmail.com>
10098 * mode-switching.c (create_pre_exit): Rename maybe_builtin_apply
10099 to multi_reg_return. Clarify that we are skipping USEs of multiple
10100 return registers. Use bool type where appropriate.
10102 2013-10-18 Jan Hubicka <jh@suse.cz>
10104 * config/i386/i386.h (ACCUMULATE_OUTGOING_ARGS): Disable accumulation
10105 for cold functions.
10106 * x86-tune.def (X86_TUNE_USE_LEAVE): Update comment.
10107 (X86_TUNE_PUSH_MEMORY): Likewise.
10108 (X86_TUNE_AVX256_UNALIGNED_LOAD_OPTIMAL,
10109 X86_TUNE_AVX256_UNALIGNED_STORE_OPTIMAL): New.
10110 (X86_TUNE_ACCUMULATE_OUTGOING_ARGS, X86_TUNE_ALWAYS_FANCY_MATH_387):
10112 * i386.c (x86_accumulate_outgoing_args, x86_arch_always_fancy_math_387,
10113 x86_avx256_split_unaligned_load, x86_avx256_split_unaligned_store):
10115 (ix86_option_override_internal): Update to use tune features instead
10118 2013-10-18 Cong Hou <congh@google.com>
10120 PR tree-optimization/58508
10121 * tree-vect-loop-manip.c (vect_loop_versioning): Hoist loop invariant
10122 statement that contains data refs with zero-step.
10124 2013-10-18 Andrew MacLeod <amacleod@redhat.com>
10126 * tree-ssa.h: Don't include gimple-low.h, tree-ssa-address.h,
10127 sbitmap.h, tree-ssa-threadedge.h, tree-ssa-dom.h and tree-cfgcleanup.h.
10128 * gimple-low.c (gimple_check_call_arg,
10129 gimple_check_call_matching_types): Move to cgraph.c.
10130 * gimple-low.h: Remove prototype.
10131 * cgraph.c: (gimple_check_call_arg, gimple_check_call_matching_types):
10132 Relocate from gimple-low.c.
10133 * cgraph.h: Add prototype. Don't include basic-block.h.
10134 * gimplify.c: Add gimple-low to include list.
10135 * omp-low.c: Add gimple-low and tree-cfgcleanup.h to include list.
10136 * tree-eh.c: Add gimple-low to include list.
10137 * tree-nested.c: Likewise.
10138 * cfgexpand.c: Add tree-ssa-address.h to include list.
10139 * expr.c: Likewise.
10140 * gimple-fold.c: Likewise.
10141 * gimple-ssa-strength-reduction.c: Likewise.
10142 * trans-mem.c: Likewise.
10143 * tree-mudflap.c: Likewise.
10144 * tree-ssa-loop-ivopts.c: Likewise.
10145 * tree-ssa-dom.c: Include tree-ssa-threadedge.h and tree-ssa-dom.h.
10146 (degenerate_phi_result): Move to tree-phinodes.c.
10147 * tree-ssa-loop-ch.c: Include tree-ssa-threadedge.h.
10148 * tree-ssa-threadedge.c: Likewise.
10149 * tree-vrp.c: Likewise.
10150 * tree-phinodes.c (degenerate_phi_result): Relocate here.
10151 * tree-ssa-dom.h (degenerate_phi_result): Remove Prototype.
10152 * tree-phinodes.h (degenerate_phi_result): Add prototype.
10153 * tree-ssa-copy.c: Include tree-ssa-dom.h.
10154 * tree-ssa-forwprop.c: Likewise.
10155 * tree-cfgcleanup.c (execute_cleanup_cfg_post_optimizing,
10156 pass_data_cleanup_cfg_post_optimizing,
10157 make_pass_cleanup_cfg_post_optimizing): Relocate from tree-optimize.c.
10158 * tree-optimize.c: Delete File.
10159 * graphite.c: Include tree-cfgcleanup.h.
10160 * passes.c: Likewise.
10161 * tree-cfg.c: Likewise.
10162 * tree-profile.c: Likewise.
10163 * tree-ssa-dse.c: Likewise.
10164 * tree-ssa-loop-ivcanon.c: Likewise.
10165 * tree-switch-conversion.c: Don't include tree-ssa-operands.h.
10166 * tree-outof-ssa.c: Include sbitmap.h.
10167 * tree-ssa-live.c: Likewise.
10168 * tree-ssa-propagate.c: Likewise.
10169 * tree-ssa-structalias.c: Likewise.
10170 * tree-stdarg.c: Likewise.
10171 * Makefile.in (OBJS): Delete tree-optimize.o.
10172 * basic-block.h (gcov_type, gcov_type_unsigned): Move to coretypes.h.
10173 * coretypes.h (gcov_type, gcov_type_unsigned): Relocate here.
10174 * varasm.c: Include basic-block.h.
10175 * cfgloop.h: Include function.h instead of basic-block.h
10176 (bb_loop_depth): Move to cfgloop.c.
10177 * cfgloop.c (bb_loop_depth): Relocate from cfgloop.h.
10179 2013-10-18 Teresa Johnson <tejohnson@google.com>
10181 * predict.c (probably_never_executed): Compare frequency-based
10182 count to number of training runs.
10183 * params.def (UNLIKELY_BB_COUNT_FRACTION): New parameter.
10185 2013-10-18 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
10187 * config/arm/arm.c (cortexa9_extra_costs): New table.
10188 (arm_cortex_a9_tune): Use cortexa9_extra_costs.
10190 2013-10-18 Jeff Law <law@redhat.com>
10192 * tree-ssa-threadupdate.c: Do not include "tm.h" or "tm_p.h".
10194 * tree-ssa-threadupdate.c: Include "dbgcnt.h".
10195 (register_jump_thread): Add "registered_jump_thread" debug
10197 * dbgcnt.def (registered_jump_thread): New debug counter.
10199 2013-10-18 Andrew MacLeod <amacleod@redhat.com>
10201 * config/rs6000/rs6000.c: Include cgraph.h.
10203 2013-10-18 Teresa Johnson <tejohnson@google.com>
10205 * tree-ssa-tail-merge.c (replace_block_by): Update edge
10206 weights during merging.
10208 2013-10-18 Andrew MacLeod <amacleod@redhat.com>
10210 * tree-cfg.h: Rename from tree-flow.h. Remove #includes.
10211 * tree-ssa.h: Relocate required #includes from tree-cfg.h.
10212 * tree-ssa-operands.h: Remove prototype.
10213 * tree-ssa-operands.c (virtual_operand_p): Move to gimple.c.
10214 * gimple.c (virtual_operand_p): Relocate from gimple.c.
10215 * gimple.h: Add prototype.
10216 * gimple-ssa.h: Include tree-ssa-operands.h.
10217 * tree-dump.c: Add tree-cfg.h to include list.
10218 * tree-ssa-alias.c: Add ipa-reference.h to include list.
10219 * config/alpha/alpha.c: Include gimple-ssa.h instead of tree-flow.h.
10220 * config/i386/i386.c: Don't include tree-flow.h.
10221 * config/rs6000/rs6000.c: Likewise.
10223 2013-10-18 Jan-Benedict Glaw <jbglaw@lug-owl.de>
10225 * config/frv/frv.c (frv_init_cumulative_args): Fix wrong cast.
10227 2013-10-18 Richard Biener <rguenther@suse.de>
10229 * stor-layout.c (layout_type): Do not change TYPE_PRECISION
10230 or TYPE_UNSIGNED of integral types.
10231 (set_min_and_max_values_for_integral_type): Leave TYPE_MIN/MAX_VALUE
10232 NULL_TREE for zero-precision integral types.
10234 2013-10-18 James Greenhalgh <james.greenhalgh@arm.com>
10236 * config/aarch64/arm_neon.h
10237 (vcvt<ds>_n_<fsu><32,64>_<fsu><32,64>): Correct argument types.
10239 2013-10-17 Sriraman Tallam <tmsriram@google.com>
10242 * opth-gen.awk: Define target_flags_explicit.
10244 2013-10-17 Michael Meissner <meissner@linux.vnet.ibm.com>
10246 * config/rs6000/rs6000.c (enum rs6000_reload_reg_type): Add new
10247 fields to the reg_addr array that describes the valid addressing
10248 mode for any register, general purpose registers, floating point
10249 registers, and Altivec registers.
10250 (FIRST_RELOAD_REG_CLASS): Likewise.
10251 (LAST_RELOAD_REG_CLASS): Likewise.
10252 (struct reload_reg_map_type): Likewise.
10253 (reload_reg_map_type): Likewise.
10254 (RELOAD_REG_VALID): Likewise.
10255 (RELOAD_REG_MULTIPLE): Likewise.
10256 (RELOAD_REG_INDEXED): Likewise.
10257 (RELOAD_REG_OFFSET): Likewise.
10258 (RELOAD_REG_PRE_INCDEC): Likewise.
10259 (RELOAD_REG_PRE_MODIFY): Likewise.
10260 (reg_addr): Likewise.
10261 (mode_supports_pre_incdec_p): New helper functions to say whether
10262 a given mode supports PRE_INC, PRE_DEC, and PRE_MODIFY.
10263 (mode_supports_pre_modify_p): Likewise.
10264 (rs6000_debug_vector_unit): Rearrange the -mdebug=reg output to
10265 print the valid address mode bits for each mode.
10266 (rs6000_debug_print_mode): Likewise.
10267 (rs6000_debug_reg_global): Likewise.
10268 (rs6000_setup_reg_addr_masks): New function to set up the address
10269 mask bits for each type.
10270 (rs6000_init_hard_regno_mode_ok): Use memset to clear arrays.
10271 Call rs6000_setup_reg_addr_masks to set up the address mask bits.
10272 (rs6000_legitimate_address_p): Use mode_supports_pre_incdec_p and
10273 mode_supports_pre_modify_p to determine if PRE_INC, PRE_DEC, and
10274 PRE_MODIFY are supported.
10275 (rs6000_output_move_128bit): Change to use {src,dest}_vmx_p for altivec
10276 registers, instead of {src,dest}_av_p.
10277 (rs6000_print_options_internal): Tweak the debug output slightly.
10279 2013-10-17 Uros Bizjak <ubizjak@gmail.com>
10281 * config/i386/sse.md (*vec_widen_smult_even_v8si): Remove
10284 2013-10-17 Andrew MacLeod <amacleod@redhat.com>
10286 * tree-flow.h (struct omp_region): Move to omp-low.c.
10287 Remove omp_ prototypes and variables.
10288 * gimple.h (omp_reduction_init): Move prototype to omp-low.h.
10289 (copy_var_decl): Relocate prototype from tree-flow.h.
10290 * gimple.c (copy_var_decl): Relocate from omp-low.c.
10291 * tree.h: Move prototype to omp-low.h.
10292 * omp-low.h: New File. Relocate prototypes here.
10293 * omp-low.c (struct omp_region): Make local here.
10294 (root_omp_region): Make static.
10295 (copy_var_decl) Move to gimple.c.
10296 (new_omp_region): Make static.
10297 (make_gimple_omp_edges): New. Refactored from tree-cfg.c make_edges.
10298 * tree-cfg.c: Include omp-low.h.
10299 (make_edges): Factor out OMP specific bits to make_gimple_omp_edges.
10300 * gimplify.c: Include omp-low.h.
10301 * tree-parloops.c: Likewise.
10303 2013-10-17 Uros Bizjak <ubizjak@gmail.com>
10305 * config/i386/i386.c (ix86_fixup_binary_operands): When both source
10306 operands are in memory, prefer to force non-matched operand 1 to
10309 2013-10-17 Michael Meissner <meissner@linux.vnet.ibm.com>
10312 * config/rs6000/rs6000.c (rs6000_legitimate_address_p): Only
10313 restrict TImode addresses to single indirect registers if both
10314 -mquad-memory and -mvsx-timode are used.
10315 (rs6000_output_move_128bit): Use quad_load_store_p to determine if
10316 we should emit load/store quad. Remove using %y for quad memory
10319 * config/rs6000/rs6000.md (mov<mode>_ppc64, TI/PTImode): Add
10320 constraints to allow load/store quad on machines where TImode is
10321 not allowed in VSX registers. Use 'n' instead of 'F' constraint
10322 for TImode to load integer constants.
10324 2013-10-17 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
10326 * config/aarch64/aarch64.c (aarch64_print_operand): Handle 'c'.
10328 2013-10-17 Marcus Shawcroft <marcus.shawcroft@arm.com>
10330 * config/aarch64/aarch64.c (aarch64_preferred_reload_class): Adjust
10331 handling of STACK_REG.
10333 2013-10-17 Richard Biener <rguenther@suse.de>
10335 PR tree-optimization/58143
10336 * tree-ssa-loop-im.c (arith_code_with_undefined_signed_overflow):
10338 (rewrite_to_defined_overflow): Likewise.
10339 (move_computations_dom_walker::before_dom): Rewrite stmts
10340 with undefined signed overflow that are not always executed
10341 into unsigned arithmetic.
10343 2013-10-16 Michael Meissner <meissner@linux.vnet.ibm.com>
10346 * config/rs6000/rs6000.opt (rs6000_isa_flags_explicit): Move the
10347 explicit isa flag to be an options variable, instead of using
10348 global_options_set. Remove define from rs6000.h.
10349 * config/rs6000/rs6000.h (rs6000_isa_flags_explicit): Likewise.
10351 * config/rs6000/rs6000.c (rs6000_option_override_internal):
10352 Initialize rs6000_isa_flags_explicit.
10353 (rs6000_function_specific_save): Add gcc_options* parameter, so
10354 that the powerpc builds after the 2013-10-15 changes.
10355 (rs6000_function_specific_restore): Likewise.
10357 2013-10-16 DJ Delorie <dj@redhat.com>
10359 * config/rl78/rl78.c (rl78_alloc_address_registers_macax): Verify
10360 op is a REG before checking REGNO.
10361 (rl78_alloc_physical_registers): Verify pattern is a SET before
10364 2013-10-16 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
10366 * config/rs6000/vector.md (vec_unpacks_hi_v4sf): Correct for
10368 (vec_unpacks_lo_v4sf): Likewise.
10369 (vec_unpacks_float_hi_v4si): Likewise.
10370 (vec_unpacks_float_lo_v4si): Likewise.
10371 (vec_unpacku_float_hi_v4si): Likewise.
10372 (vec_unpacku_float_lo_v4si): Likewise.
10374 2013-10-16 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
10376 * config/rs6000/vsx.md (vsx_concat_<mode>): Adjust output for LE.
10377 (vsx_concat_v2sf): Likewise.
10379 2013-10-16 James Greenhalgh <james.greenhalgh@arm.com>
10381 * config/aarch64/aarch64.md
10382 (*mov<mode>_aarch64): Fix output template for DUP (element) Scalar.
10384 2013-10-16 Andrew MacLeod <amacleod@redhat.com>
10386 PR tree-optimization/58697
10387 * cfgloop.c (get_estimated_loop_iterations_int): Rename from
10388 estimated_loop_iterations_int.
10389 (max_stmt_executions_int): Call get_max_loop_iterations_int.
10390 (get_max_loop_iterations_int): New. HWINT version of
10391 get_max_loop_iterations.
10392 * cfgloop.h: Add prototypes.
10393 * loop-iv.c (find_simple_exit): call get_estimated_loop_iterations_int.
10394 * loop-unroll.c (decide_peel_once_rolling): Call
10395 get_estimated_loop_iterations_int.
10396 * tree-ssa-loop-niter.c (estimated_loop_iterations_int): Add back.
10397 * tree-ssa-loop-niter.h: Tweak prototypes.
10399 2013-10-16 David Malcolm <dmalcolm@redhat.com>
10401 * gengtype-parse.c (struct_field_seq): Ignore access-control
10402 keywords ("public:" etc).
10404 2013-10-16 Marcus Shawcroft <marcus.shawcroft@arm.com>
10406 * config/aarch64/aarch64.c (aarch64_regno_regclass): Classify
10407 FRAME_POINTER_REGNUM and ARG_POINTER_REGNUM as POINTER_REGS.
10409 2013-10-16 Yvan Roux <yvan.roux@linaro.org>
10411 * config/arm/arm.opt (mlra): New option.
10412 * config/arm/arm.c (arm_lra_p): New function.
10413 (TARGET_LRA_P): Define.
10415 2013-10-16 Paulo Matos <pmatos@broadcom.com>
10417 * tree-core.h (tree_code_name): Remove.
10418 * tree.h (get_tree_code_name): New prototype.
10419 * tree.c (tree_code_name): Make static.
10420 (get_tree_code_name): New function.
10421 (dump_tree_statistics, tree_check_failed, tree_not_check_failed,
10422 tree_class_check_failed, tree_range_check_failed,
10423 tree_not_class_check_failed, omp_clause_check_failed,
10424 tree_contains_struct_check_failed, tree_operand_check_failed): Use new
10425 wrapper get_tree_code_name instead of calling tree_code_name directly.
10426 * tree-vrp.c (dump_asserts_for): Likewise.
10427 * tree-dump.c (dequeue_and_dump): Likewise.
10428 * tree-pretty-print.c (do_niy, dump_generic_node): Likewise.
10429 * tree-pretty-print.h (pp_unsupported_tree): Likewise.
10430 * lto-streamer-out.c (lto_write_tree, DFS_write_tree): Likewise.
10431 * tree-ssa-dom.c (print_expr_hash_elt): Likewise.
10432 * gimple-pretty-print.c (dump_unary_rhs, dump_binary_rhs,
10433 dump_ternary_rhs, dump_gimple_assign, dump_gimple_cond,
10434 dump_gimple_omp_for): Likewise.
10435 * tree-vect-data-refs.c (vect_create_data_ref_ptr): Likewise.
10436 * tree-ssa-pre.c (print_pre_expr): Likewise.
10437 * ipa-prop.c (ipa_print_node_jump_functions_for_edge): Likewise.
10438 * print-tree.c (print_node_brief, print_node): Likewise.
10439 * gimple.c (gimple_check_failed): Likewise.
10440 * lto-streamer.c (lto_tag_name, print_lto_report): Likewise.
10441 * config/frv/frv.c (frv_init_cumulative_args): Likewise.
10442 * config/mep/mep.c (mep_validate_vliw): Likewise.
10443 * config/iq2000/iq2000.c (init_cumulative_args): Likewise.
10444 * config/rs6000/rs6000.c (init_cumulative_args): Likewise.
10446 2013-10-16 Ganesh Gopalasubramanian <Ganesh.Gopalasubramanian@amd.com>
10448 * config/i386/i386.c (ix86_option_override_internal): Enable FMA4
10451 2013-10-16 Hans-Peter Nilsson <hp@axis.com>
10453 * config/cris/t-elfmulti (MULTILIB_OPTIONS, MULTILIB_DIRNAMES)
10454 (MULTILIB_MATCHES): Add multilib for -march=v8.
10456 2013-10-15 Sriraman Tallam <tmsriram@google.com>
10459 * optc-save-gen.awk: Add extra parameter to the save and restore
10461 * opth-gen.awk: Generate new TARGET_* macros to accept a parameter.
10462 * tree.c (build_optimization_node): New parameter. Add extra parameter
10463 to call to cl_optimization_save.
10464 (build_target_option_node): New parameter. Add extra parameter
10465 to call to cl_target_option_save.
10466 * tree.h (build_optimization_node): New parameter.
10467 (build_target_option_node): New parameter.
10468 * c-family/c-common.c (handle_optimize_attribute): Fix calls to
10469 build_optimization_node and build_target_option_node.
10470 * c-family/c-pragma.c (handle_pragma_optimize): Ditto.
10471 (handle_pragma_push_options): Ditto.
10472 * toplev.c (process_options): Ditto.
10473 * opts.c (init_options_struct): Check for opts_set non-null.
10474 * target.def (target_option.save): New parameter.
10475 (target_option.restore): New parameter.
10476 * tm.texi: Generate.
10477 * config/i386/i386-c.c (ix86_target_macros_internal): Ditto.
10478 (ix86_pragma_target_parse): Ditto.
10479 * config/i386/i386-protos.h (ix86_valid_target_attribute_tree): New
10481 * config/rs6000/rs6000.c (rs6000_option_override_internal): Fix calls
10482 to build_optimization_node and build_target_option_node.
10483 (rs6000_valid_attribute_p): Ditto.
10484 (rs6000_pragma_target_parse): Ditto.
10485 * config/i386/i386.opt (x_ix86_target_flags_explicit): New TargetSave
10487 * config/i386/i386.h:
10488 TARGET_64BIT_P: New Macro
10489 TARGET_MMX_P: New Macro.
10490 TARGET_3DNOW_P: New Macro.
10491 TARGET_3DNOW_A_P: New Macro.
10492 TARGET_SSE_P: New Macro.
10493 TARGET_SSE2_P: New Macro.
10494 TARGET_SSE3_P: New Macro.
10495 TARGET_SSSE3_P: New Macro.
10496 TARGET_SSE4_1_P: New Macro.
10497 TARGET_SSE4_2_P: New Macro.
10498 TARGET_AVX_P: New Macro.
10499 TARGET_AVX2_P: New Macro.
10500 TARGET_AVX512F_P: New Macro.
10501 TARGET_AVX512PF_P: New Macro.
10502 TARGET_AVX512ER_P: New Macro.
10503 TARGET_AVX512CD_P: New Macro.
10504 TARGET_FMA_P: New Macro.
10505 TARGET_SSE4A_P: New Macro.
10506 TARGET_FMA4_P: New Macro.
10507 TARGET_XOP_P: New Macro.
10508 TARGET_LWP_P: New Macro.
10509 TARGET_ABM_P: New Macro.
10510 TARGET_BMI_P: New Macro.
10511 TARGET_BMI2_P: New Macro.
10512 TARGET_LZCNT_P: New Macro.
10513 TARGET_TBM_P: New Macro.
10514 TARGET_POPCNT_P: New Macro.
10515 TARGET_SAHF_P: New Macro.
10516 TARGET_MOVBE_P: New Macro.
10517 TARGET_CRC32_P: New Macro.
10518 TARGET_AES_P: New Macro.
10519 TARGET_PCLMUL_P: New Macro.
10520 TARGET_CMPXCHG16B_P: New Macro.
10521 TARGET_FSGSBASE_P: New Macro.
10522 TARGET_RDRND_P: New Macro.
10523 TARGET_F16C_P: New Macro.
10524 TARGET_RTM_P: New Macro.
10525 TARGET_HLE_P: New Macro.
10526 TARGET_RDSEED_P: New Macro.
10527 TARGET_PRFCHW_P: New Macro.
10528 TARGET_ADX_P: New Macro.
10529 TARGET_FXSR_P: New Macro.
10530 TARGET_XSAVE_P: New Macro.
10531 TARGET_XSAVEOPT_P: New Macro.
10532 TARGET_LP64_P: New Macro.
10533 TARGET_X32_P: New Macro.
10534 TARGET_FPMATH_DEFAULT_P: New Macro.
10535 TARGET_FLOAT_RETURNS_IN_80387_P: New Macro.
10536 * config/i386/i386.c (ix86_option_override_internal): New parameters.
10538 Change ix86_tune_string to access opts->x_ix86_tune_string.
10539 Change ix86_isa_flags to access opts->x_ix86_isa_flags.
10540 Change ix86_arch_string to access opts->x_ix86_arch_string.
10541 Change ix86_stringop_alg to access opts->x_ix86_stringop_alg.
10542 Change ix86_pmode to access opts->x_ix86_pmode.
10543 Change ix86_abi to access opts->x_ix86_abi.
10544 Change ix86_cmodel to access opts->x_ix86_cmodel.
10545 Change ix86_asm_dialect to access opts->x_ix86_asm_dialect.
10546 Change ix86_isa_flags_explicit to access
10547 opts->x_ix86_isa_flags_explicit.
10548 Change ix86_dump_tunes to access opts->x_ix86_dump_tunes.
10549 Change ix86_regparm to access opts->x_ix86_regparm.
10550 Change ix86_branch_cost to access opts->x_ix86_branch_cost.
10551 Change ix86_preferred_stack_boundary_arg to access
10552 opts->x_ix86_preferred_stack_boundary_arg.
10553 Change ix86_force_align_arg_pointer to access
10554 opts->x_ix86_force_align_arg_pointer.
10555 Change ix86_incoming_stack_boundar_arg to access
10556 opts->x_ix86_incoming_stack_boundar_arg.
10557 Change ix86_fpmath to access opts->x_ix86_fpmath.
10558 Change ix86_veclibabi_type to access opts->x_ix86_veclibabi_type.
10559 Change ix86_recip_name to access opts->x_ix86_recip_name.
10560 Change ix86_stack_protector_guard to access
10561 opts->x_ix86_stack_protector_guard.
10562 Change ix86_tune_memcpy_strategy to access
10563 opts->x_ix86_tune_memcpy_strategy.
10564 Change ix86_tune_memset_strategy to access
10565 opts->x_ix86_tune_memset_strategy.
10566 Change global_options to access opts.
10567 Change global_options_set to access opts_set.
10568 Change TARGET_64BIT to TARGET_64BIT_P (opts->...).
10569 Change TARGET_MMX to TARGET_MMX_P (opts->...).
10570 Change TARGET_3DNOW to TARGET_3DNOW_P (opts->...).
10571 Change TARGET_3DNOW_A to TARGET_3DNOW_A_P (opts->...).
10572 Change TARGET_SSE to TARGET_SSE_P (opts->...).
10573 Change TARGET_SSE2 to TARGET_SSE2_P (opts->...).
10574 Change TARGET_SSE3 to TARGET_SSE3_P (opts->...).
10575 Change TARGET_SSSE3 to TARGET_SSSE3_P (opts->...).
10576 Change TARGET_SSE4_1 to TARGET_SSE4_1_P (opts->...).
10577 Change TARGET_SSE4_2 to TARGET_SSE4_2_P (opts->...).
10578 Change TARGET_AVX to TARGET_AVX_P (opts->...).
10579 Change TARGET_AVX2 to TARGET_AVX2_P (opts->...).
10580 Change TARGET_AVX512F to TARGET_AVX512F_P (opts->...).
10581 Change TARGET_AVX512PF to TARGET_AVX512PF_P (opts->...).
10582 Change TARGET_AVX512ER to TARGET_AVX512ER_P (opts->...).
10583 Change TARGET_AVX512CD to TARGET_AVX512CD_P (opts->...).
10584 Change TARGET_FMA to TARGET_FMA_P (opts->...).
10585 Change TARGET_SSE4A to TARGET_SSE4A_P (opts->...).
10586 Change TARGET_FMA4 to TARGET_FMA4_P (opts->...).
10587 Change TARGET_XOP to TARGET_XOP_P (opts->...).
10588 Change TARGET_LWP to TARGET_LWP_P (opts->...).
10589 Change TARGET_ABM to TARGET_ABM_P (opts->...).
10590 Change TARGET_BMI to TARGET_BMI_P (opts->...).
10591 Change TARGET_BMI2 to TARGET_BMI2_P (opts->...).
10592 Change TARGET_LZCNT to TARGET_LZCNT_P (opts->...).
10593 Change TARGET_TBM to TARGET_TBM_P (opts->...).
10594 Change TARGET_POPCNT to TARGET_POPCNT_P (opts->...).
10595 Change TARGET_SAHF to TARGET_SAHF_P (opts->...).
10596 Change TARGET_MOVBE to TARGET_MOVBE_P (opts->...).
10597 Change TARGET_CRC32 to TARGET_CRC32_P (opts->...).
10598 Change TARGET_AES to TARGET_AES_P (opts->...).
10599 Change TARGET_PCLMUL to TARGET_PCLMUL_P (opts->...).
10600 Change TARGET_CMPXCHG16B to TARGET_CMPXCHG16B_P (opts->...).
10601 Change TARGET_FSGSBASE to TARGET_FSGSBASE_P (opts->...).
10602 Change TARGET_RDRND to TARGET_RDRND_P (opts->...).
10603 Change TARGET_F16C to TARGET_F16C_P (opts->...).
10604 Change TARGET_RTM to TARGET_RTM_P (opts->...).
10605 Change TARGET_HLE to TARGET_HLE_P (opts->...).
10606 Change TARGET_RDSEED to TARGET_RDSEED_P (opts->...).
10607 Change TARGET_PRFCHW to TARGET_PRFCHW_P (opts->...).
10608 Change TARGET_ADX to TARGET_ADX_P (opts->...).
10609 Change TARGET_FXSR to TARGET_FXSR_P (opts->...).
10610 Change TARGET_XSAVE to TARGET_XSAVE_P (opts->...).
10611 Change TARGET_XSAVEOPT to TARGET_XSAVEOPT_P (opts->...).
10612 Change TARGET_LP64 to TARGET_LP64_P (opts->...).
10613 Change TARGET_X32 to TARGET_X32_P (opts->...).
10614 Change TARGET_FPMATH_DEFAULT to TARGET_FPMATH_DEFAULT_P (opts->...).
10615 Change TARGET_FLOAT_RETURNS_IN_80387 to
10616 TARGET_FLOAT_RETURNS_IN_80387_P (opts->...).
10617 (ix86_function_specific_save): New parameter. Use opts-> fields
10618 to replace global fields.
10619 (ix86_function_specific_restore): Ditto.
10620 (ix86_valid_target_attribute_inner_p): New parameters.
10621 Fix recursive call.
10622 Fix call to ix86_handle_option and set_option.
10623 (ix86_valid_target_attribute_tree): New parameters.
10624 Change global_options to access opts.
10625 Change global_options_set to access opts_set.
10626 Fix call to ix86_valid_target_attribute_inner_p.
10627 Change ix86_tune_string to access opts->x_ix86_tune_string.
10628 Change ix86_arch_string to access opts->x_ix86_arch_string.
10629 Change ix86_fpmath to access opts->x_ix86_fpmath
10630 Fix call to ix86_option_override_internal.
10631 Fix call to ix86_add_new_builtins.
10632 Fix calls to build_optimization_node and build_target_option_node.
10633 (ix86_valid_target_attribute_p): Remove access to global_options.
10634 Use new gcc_options structure func_options.
10635 Fix call to ix86_valid_target_attribute_tree.
10636 Fix call to build_optimization_node.
10637 (get_builtin_code_for_version): Fix call to
10638 ix86_valid_target_attribute_tree.
10640 2013-10-15 David Malcolm <dmalcolm@redhat.com>
10642 * Makefile.in (PICFLAG): New.
10643 (enable_host_shared): New.
10644 (INTERNAL_CFLAGS): Use PICFLAG.
10645 (LIBIBERTY): Use pic build of libiberty.a if configured with
10646 --enable-host-shared.
10647 * configure.ac: Add --enable-host-shared, setting up new
10649 * configure: Regenerate.
10650 * doc/install.texi (--enable-shared): Add note contrasting it with ...
10651 (--enable-host-shared): New option.
10653 2013-10-15 Richard Biener <rguenther@suse.de>
10655 * tree-tailcall.c (find_tail_calls): Don't use tail-call recursion
10656 for built-in functions.
10658 2013-10-15 Zhenqiang Chen <zhenqiang.chen@arm.com>
10660 * tree-ssa-reassoc.c: Include rtl.h and tm_p.h.
10661 (optimize_range_tests_1): New function,
10662 extracted from optimize_range_tests.
10663 (optimize_range_tests_xor): Similarly.
10664 (optimize_range_tests_diff): New function.
10665 (optimize_range_tests): Use optimize_range_tests_1.
10667 2013-10-15 Cong Hou <congh@google.com>
10669 * tree-vect-loop.c (vect_is_simple_reduction_1): Relax the
10670 requirement of the reduction pattern so that one operand of the
10671 reduction operation can come from outside of the loop.
10673 2013-10-15 James Greenhalgh <james.greenhalgh@arm.com>
10675 * config/arm/neon-schedgen.ml: Remove.
10676 * config/arm/cortex-a9-neon.md: Remove comment regarding
10679 2013-10-15 James Greenhalgh <james.greenhalgh@arm.com>
10681 * config/arm/types: Remove old neon types.
10683 2013-10-15 James Greenhalgh <james.greenhalgh@arm.com>
10685 * config/arm/cortex-a7.md
10686 (cortex_a7_neon_type): New.
10687 (cortex_a7_neon_mul): Update for new types.
10688 (cortex_a7_neon_mla): Likewise.
10689 (cortex_a7_neon): Likewise.
10691 2013-10-15 James Greenhalgh <james.greenhalgh@arm.com>
10693 * config/arm/cortex-a15-neon.md
10694 (cortex_a15_neon_type): New,
10696 (cortex_a15_neon_int_1): Remove.
10697 (cortex_a15_neon_int_2): Likewise.
10698 (cortex_a15_neon_int_3): Likewise.
10699 (cortex_a15_neon_int_4): Likewise.
10700 (cortex_a15_neon_int_5): Likewise.
10701 (cortex_a15_neon_vqneg_vqabs): Likewise.
10702 (cortex_a15_neon_vmov): Likewise.
10703 (cortex_a15_neon_vaba): Likewise.
10704 (cortex_a15_neon_vaba_qqq): Likewise.
10705 (cortex_a15_neon_mul_ddd_8_16_qdd_16_8_long_32_16_long): Likewise.
10706 (cortex_a15_neon_mul_qqq_8_16_32_ddd_32): Likewise.
10707 (cortex_a15_neon_mul_qdd_64_32_long_qqd_16_ddd_32_scalar_64_32_long_scalar):
10709 (cortex_a15_neon_mla_ddd_8_16_qdd_16_8_long_32_16_long): Likewise.
10710 (cortex_a15_neon_mla_qqq_8_16): Likewise.
10711 (cortex_a15_neon_mla_ddd_32_qqd_16_ddd_32_scalar): Likewise.
10712 (cortex_a15_neon_mla_qqq_32_qqd_32_scalar): Likewise.
10713 (cortex_a15_neon_mul_ddd_16_scalar_32_16_long_scalar): Likewise.
10714 (cortex_a15_neon_mul_qqd_32_scalar): Likewise.
10715 (cortex_a15_neon_mla_ddd_16_scalar_qdd_32_16_long_scalar): Likewise.
10716 (cortex_a15_neon_shift_1): Likewise.
10717 (cortex_a15_neon_shift_2): Likewise.
10718 (cortex_a15_neon_shift_3): Likewise.
10719 (cortex_a15_neon_vshl_ddd): Likewise.
10720 (cortex_a15_neon_vqshl_vrshl_vqrshl_qqq): Likewise.
10721 (cortex_a15_neon_vsra_vrsra): Likewise.
10722 (cortex_a15_neon_fp_vmla_ddd_scalar): Likewise.
10723 (cortex_a15_neon_fp_vmla_qqq_scalar): Likewise.
10724 (cortex_a15_neon_bp_3cycle): Likewise.
10725 (cortex_a15_neon_ldm_2): Likewise.
10726 (cortex_a15_neon_stm_2): Likewise.
10727 (cortex_a15_neon_mcr): Likewise.
10728 (cortex_a15_neon_mrc): Likewise.
10729 (cortex_a15_neon_fp_vadd_ddd_vabs_dd): Likewise.
10730 (cortex_a15_neon_fp_vadd_qqq_vabs_qq): Likewise.
10731 (cortex_a15_neon_fp_vmul_ddd): Likewise.
10732 (cortex_a15_neon_fp_vmul_qqd): Likewise.
10733 (cortex_a15_neon_fp_vmla_ddd): Likewise.
10734 (cortex_a15_neon_fp_vmla_qqq): Likewise.
10735 (cortex_a15_neon_fp_vmla_ddd_scalar): Likewise.
10736 (cortex_a15_neon_fp_vmla_qqq_scalar): Likewise.
10737 (cortex_a15_neon_fp_vrecps_vrsqrts_ddd): Likewise.
10738 (cortex_a15_neon_fp_vrecps_vrsqrts_qqq): Likewise.
10739 (cortex_a15_neon_bp_simple): Likewise.
10740 (cortex_a15_neon_bp_2cycle): Likewise.
10741 (cortex_a15_neon_bp_3cycle): Likewise.
10742 (cortex_a15_neon_vld1_1_2_regs): Likewise.
10743 (cortex_a15_neon_vld1_3_4_regs): Likewise.
10744 (cortex_a15_neon_vld2_2_regs_vld1_vld2_all_lanes): Likewise.
10745 (cortex_a15_neon_vld2_4_regs): Likewise.
10746 (cortex_a15_neon_vld3_vld4): Likewise.
10747 (cortex_a15_neon_vst1_1_2_regs_vst2_2_regs): Likewise.
10748 (cortex_a15_neon_vst1_3_4_regs): Likewise.
10749 (cortex_a15_neon_vst2_4_regs_vst3_vst4): Rename to...
10750 (cortex_a15_neon_vst2_4_regs_vst3): ...This, update for new attributes.
10751 (cortex_a15_neon_vst3_vst4): Rename to...
10752 (cortex_a15_neon_vst4): This, update for new attributes.
10753 (cortex_a15_neon_vld1_vld2_lane): Update for new attributes.
10754 (cortex_a15_neon_vld3_vld4_lane): Likewise.
10755 (cortex_a15_neon_vst1_vst2_lane): Likewise.
10756 (cortex_a15_neon_vst3_vst4_lane): Likewise.
10757 (cortex_a15_neon_vld3_vld4_all_lanes): Likewise.
10758 (cortex_a15_neon_ldm_2): Likewise.
10759 (cortex_a15_neon_stm_2): Likewise.
10760 (cortex_a15_neon_mcr): Likewise.
10761 (cortex_a15_neon_mcr_2_mcrr): Likewise.
10762 (cortex_a15_neon_mrc): Likewise.
10763 (cortex_a15_neon_mrrc): Likewise.
10765 (cortex_a15_neon_abd): New.
10766 (cortex_a15_neon_abd_q): Likewise.
10767 (cortex_a15_neon_aba): Likewise.
10768 (cortex_a15_neon_aba_q): Likewise.
10769 (cortex_a15_neon_acc): Likewise.
10770 (cortex_a15_neon_acc_q): Likewise.
10771 (cortex_a15_neon_arith_basic): Likewise.
10772 (cortex_a15_neon_arith_complex): Likewise.
10773 (cortex_a15_neon_multiply): Likewise.
10774 (cortex_a15_neon_multiply_q): Likewise.
10775 (cortex_a15_neon_mla): Likewise.
10776 (cortex_a15_neon_mla_q): Likewise.
10777 (cortex_a15_neon_sat_mla_long): Likewise.
10778 (cortex_a15_neon_shift_acc): Likewise.
10779 (cortex_a15_neon_shift_imm_basic): Likewise.
10780 (cortex_a15_neon_shift_imm_complex): Likewise.
10781 (cortex_a15_neon_shift_reg_basic): Likewise.
10782 (cortex_a15_neon_shift_reg_basic_q): Likewise.
10783 (cortex_a15_neon_shift_reg_complex): Likewise.
10784 (cortex_a15_neon_shift_reg_complex_q): Likewise.
10785 (cortex_a15_neon_fp_negabs): Likewise
10786 (cortex_a15_neon_fp_arith): Likewise
10787 (cortex_a15_neon_fp_arith_q): Likewise
10788 (cortex_a15_neon_fp_cvt_int): Likewise
10789 (cortex_a15_neon_fp_cvt_int_q): Likewise
10790 (cortex_a15_neon_fp_cvt_16): Likewise
10791 (cortex_a15_neon_fp_mul): Likewise
10792 (cortex_a15_neon_fp_mul_q): Likewise
10793 (cortex_a15_neon_fp_mla): Likewise
10794 (cortex_a15_neon_fp_mla_q): Likewise
10795 (cortex_a15_neon_fp_recps_rsqrte): Likewise.
10796 (cortex_a15_neon_fp_recps_rsqrte_q): Likewise.
10797 (cortex_a15_neon_bitops): Likewise.
10798 (cortex_a15_neon_bitops_q): Likewise.
10799 (cortex_a15_neon_from_gp): Likewise.
10800 (cortex_a15_neon_from_gp_q): Likewise.
10801 (cortex_a15_neon_tbl3_tbl4): Likewise.
10802 (cortex_a15_neon_zip_q): Likewise.
10803 (cortex_a15_neon_to_gp): Likewise.
10804 (cortex_a15_neon_load_a): Likewise.
10805 (cortex_a15_neon_load_b): Likewise.
10806 (cortex_a15_neon_load_c): Likewise.
10807 (cortex_a15_neon_load_d): Likewise.
10808 (cortex_a15_neon_load_e): Likewise.
10809 (cortex_a15_neon_load_f): Likewise.
10810 (cortex_a15_neon_store_a): Likewise.
10811 (cortex_a15_neon_store_b): Likewise.
10812 (cortex_a15_neon_store_c): Likewise.
10813 (cortex_a15_neon_store_d): Likewise.
10814 (cortex_a15_neon_store_e): Likewise.
10815 (cortex_a15_neon_store_f): Likewise.
10816 (cortex_a15_neon_store_g): Likewise.
10817 (cortex_a15_neon_store_h): Likewise.
10818 (cortex_a15_vfp_to_from_gp): Likewise.
10820 2013-10-15 James Greenhalgh <james.greenhalgh@arm.com>
10822 * config/arm/cortex-a9-neon.md (cortex_a9_neon_type): New.
10824 (cortex_a9_neon_vshl_ddd): Remove.
10825 (cortex_a9_neon_vst3_vst4): Likewise.
10826 (cortex_a9_neon_vld3_vld4_all_lanes): Likewise.
10828 (cortex_a9_neon_bit_ops_q): New.
10830 (cortex_a9_neon_int_1): Use cortex_a8_neon_type.
10831 (cortex_a9_neon_int_2): Likewise.
10832 (cortex_a9_neon_int_3): Likewise.
10833 (cortex_a9_neon_int_4): Likewise.
10834 (cortex_a9_neon_int_5): Likewise.
10835 (cortex_a9_neon_vqneg_vqabs): Likewise.
10836 (cortex_a9_neon_vmov): Likewise.
10837 (cortex_a9_neon_vaba): Likewise.
10838 (cortex_a9_neon_vaba_qqq): Likewise.
10839 (cortex_a9_neon_shift_1): Likewise.
10840 (cortex_a9_neon_shift_2): Likewise.
10841 (cortex_a9_neon_shift_3): Likewise.
10842 (cortex_a9_neon_vqshl_vrshl_vqrshl_qqq): Likewise.
10843 (cortex_a9_neon_vsra_vrsra): Likewise.
10844 (cortex_a9_neon_mul_ddd_8_16_qdd_16_8_long_32_16_long): Likewise.
10845 (cortex_a9_neon_mul_qqq_8_16_32_ddd_32): Likewise.
10846 (cortex_a9_neon_mul_qdd_64_32_long_qqd_16_ddd_32_scalar_64_32_long_scalar):
10848 (cortex_a9_neon_mla_ddd_8_16_qdd_16_8_long_32_16_long): Likewise.
10849 (cortex_a9_neon_mla_qqq_8_16): Likewise.
10850 (cortex_a9_neon_mla_ddd_32_qqd_16_ddd_32_scalar_qdd_64_32_long_scalar_qdd_64_32_long):
10852 (cortex_a9_neon_mla_qqq_32_qqd_32_scalar): Likewise.
10853 (cortex_a9_neon_mul_ddd_16_scalar_32_16_long_scalar): Likewise.
10854 (cortex_a9_neon_mul_qqd_32_scalar): Likewise.
10855 (cortex_a9_neon_mla_ddd_16_scalar_qdd_32_16_long_scalar): Likewise.
10856 (cortex_a9_neon_fp_vadd_ddd_vabs_dd): Likewise.
10857 (cortex_a9_neon_fp_vadd_qqq_vabs_qq): Likewise.
10858 (cortex_a9_neon_fp_vsum): Likewise.
10859 (cortex_a9_neon_fp_vmul_ddd): Likewise.
10860 (cortex_a9_neon_fp_vmul_qqd): Likewise.
10861 (cortex_a9_neon_fp_vmla_ddd): Likewise.
10862 (cortex_a9_neon_fp_vmla_qqq): Likewise.
10863 (cortex_a9_neon_fp_vmla_ddd_scalar): Likewise.
10864 (cortex_a9_neon_fp_vmla_qqq_scalar): Likewise.
10865 (cortex_a9_neon_fp_vrecps_vrsqrts_ddd): Likewise.
10866 (cortex_a9_neon_fp_vrecps_vrsqrts_qqq): Likewise.
10867 (cortex_a9_neon_bp_simple): Likewise.
10868 (cortex_a9_neon_bp_2cycle): Likewise.
10869 (cortex_a9_neon_bp_3cycle): Likewise.
10870 (cortex_a9_neon_ldr): Likewise.
10871 (cortex_a9_neon_str): Likewise.
10872 (cortex_a9_neon_vld1_1_2_regs): Likewise.
10873 (cortex_a9_neon_vld1_3_4_regs): Likewise.
10874 (cortex_a9_neon_vld2_2_regs_vld1_vld2_all_lanes): Likewise.
10875 (cortex_a9_neon_vld2_4_regs): Likewise.
10876 (cortex_a9_neon_vld3_vld4): Likewise.
10877 (cortex_a9_neon_vld1_vld2_lane): Likewise.
10878 (cortex_a9_neon_vld3_vld4_lane): Likewise.
10879 (cortex_a9_neon_vld3_vld4_all_lanes): Likewise.
10880 (cortex_a9_neon_vst1_1_2_regs_vst2_2_regs): Likewise.
10881 (cortex_a9_neon_vst1_3_4_regs): Likewise.
10882 (cortex_a9_neon_vst2_4_regs_vst3_vst4): Likewise.
10883 (cortex_a9_neon_vst1_vst2_lane): Likewise.
10884 (cortex_a9_neon_vst3_vst4_lane): Likewise.
10885 (cortex_a9_neon_mcr): Likewise.
10886 (cortex_a9_neon_mcr_2_mcrr): Likewise.
10887 (cortex_a9_neon_mrc): Likewise.
10888 (cortex_a9_neon_mrrc): Likewise.
10890 2013-10-15 James Greenhalgh <james.greenhalgh@arm.com>
10892 * config/arm/cortex-a8-neon.md (cortex_a8_neon_type): New.
10894 (cortex_a8_neon_vshl_ddd): Remove.
10895 (cortex_a8_neon_vst3_vst4): Likewise.
10896 (cortex_a8_neon_vld3_vld4_all_lanes): Likewise.
10898 (cortex_a8_neon_bit_ops_q): New.
10900 (cortex_a8_neon_int_1): Use cortex_a8_neon_type.
10901 (cortex_a8_neon_int_2): Likewise..
10902 (cortex_a8_neon_int_3): Likewise.
10903 (cortex_a8_neon_int_5): Likewise.
10904 (cortex_a8_neon_vqneg_vqabs): Likewise.
10905 (cortex_a8_neon_int_4): Likewise.
10906 (cortex_a8_neon_vaba): Likewise.
10907 (cortex_a8_neon_vaba_qqq): Likewise.
10908 (cortex_a8_neon_shift_1): Likewise.
10909 (cortex_a8_neon_shift_2): Likewise.
10910 (cortex_a8_neon_shift_3): Likewise.
10911 (cortex_a8_neon_vqshl_vrshl_vqrshl_qqq): Likewise.
10912 (cortex_a8_neon_vsra_vrsra): Likewise.
10913 (cortex_a8_neon_mul_ddd_8_16_qdd_16_8_long_32_16_long): Likewise.
10914 (cortex_a8_neon_mul_qqq_8_16_32_ddd_32): Likewise.
10915 (cortex_a8_neon_mul_qdd_64_32_long_qqd_16_ddd_32_scalar_64_32_long_scalar):
10917 (cortex_a8_neon_mla_ddd_8_16_qdd_16_8_long_32_16_long): Likewise.
10918 (cortex_a8_neon_mla_qqq_8_16): Likewise.
10919 (cortex_a8_neon_mla_ddd_32_qqd_16_ddd_32_scalar_qdd_64_32_long_scalar_qdd_64_32_long):
10921 (cortex_a8_neon_mla_qqq_32_qqd_32_scalar): Likewise.
10922 (cortex_a8_neon_mul_ddd_16_scalar_32_16_long_scalar): Likewise.
10923 (cortex_a8_neon_mul_qqd_32_scalar): Likewise.
10924 (cortex_a8_neon_mla_ddd_16_scalar_qdd_32_16_long_scalar): Likewise.
10925 (cortex_a8_neon_fp_vadd_ddd_vabs_dd): Likewise.
10926 (cortex_a8_neon_fp_vadd_qqq_vabs_qq): Likewise.
10927 (cortex_a8_neon_fp_vsum): Likewise.
10928 (cortex_a8_neon_fp_vmul_ddd): Likewise.
10929 (cortex_a8_neon_fp_vmul_qqd): Likewise.
10930 (cortex_a8_neon_fp_vmla_ddd): Likewise.
10931 (cortex_a8_neon_fp_vmla_qqq): Likewise.
10932 (cortex_a8_neon_fp_vmla_ddd_scalar): Likewise.
10933 (cortex_a8_neon_fp_vmla_qqq_scalar): Likewise.
10934 (cortex_a8_neon_fp_vrecps_vrsqrts_ddd): Likewise.
10935 (cortex_a8_neon_fp_vrecps_vrsqrts_qqq): Likewise.
10936 (cortex_a8_neon_bp_simple): Likewise.
10937 (cortex_a8_neon_bp_2cycle): Likewise.
10938 (cortex_a8_neon_bp_3cycle): Likewise.
10939 (cortex_a8_neon_ldr): Likewise.
10940 (cortex_a8_neon_str): Likewise.
10941 (cortex_a8_neon_vld1_1_2_regs): Likewise.
10942 (cortex_a8_neon_vld1_3_4_regs): Likewise.
10943 (cortex_a8_neon_vld2_2_regs_vld1_vld2_all_lanes): Likewise.
10944 (cortex_a8_neon_vld2_4_regs): Likewise.
10945 (cortex_a8_neon_vld3_vld4): Likewise.
10946 (cortex_a8_neon_vld1_vld2_lane): Likewise.
10947 (cortex_a8_neon_vld3_vld4_lane): Likewise.
10948 (cortex_a8_neon_vst1_1_2_regs_vst2_2_regs): Likewise.
10949 (cortex_a8_neon_vst1_3_4_regs): Likewise.
10950 (cortex_a8_neon_vst2_4_regs_vst3_vst4): Likewise.
10951 (cortex_a8_neon_vst1_vst2_lane): Likewise.
10952 (cortex_a8_neon_vst3_vst4_lane): Likewise.
10953 (cortex_a8_neon_mcr): Likewise.
10954 (cortex_a8_neon_mcr_2_mcrr): Likewise.
10955 (cortex_a8_neon_mrc): Likewise.
10956 (cortex_a8_neon_mrrc): Likewise.
10958 2013-10-15 James Greenhalgh <james.greenhalgh@arm.com>
10960 * config/aarch64/iterators.md (Vetype): Add SF and DF modes.
10962 * config/aarch64/aarch64-simd.md (neon_type): Remove.
10963 (aarch64_simd_dup<mode>): Add "type" attribute.
10964 (aarch64_dup_lane<mode>): Likewise.
10965 (aarch64_dup_lane_<vswap_width_name><mode>): Likewise.
10966 (*aarch64_simd_mov<mode>): Likewise.
10967 (aarch64_simd_mov_from_<mode>low): Likewise.
10968 (aarch64_simd_mov_from_<mode>high): Likewise.
10969 (orn<mode>3): Likewise.
10970 (bic<mode>3): Likewise.
10971 (add<mode>3): Likewise.
10972 (sub<mode>3): Likewise.
10973 (mul<mode>3): Likewise.
10974 (*aarch64_mul3_elt<mode>): Likewise.
10975 (*aarch64_mul3_elt_<vswap_width_name><mode>): Likewise.
10976 (*aarch64_mul3_elt_to_128df): Likewise.
10977 (*aarch64_mul3_elt_to_64v2df): Likewise.
10978 (neg<mode>2): Likewise.
10979 (abs<mode>2): Likewise.
10980 (abd<mode>_3): Likewise.
10981 (aba<mode>_3): Likewise.
10982 (fabd<mode>_3): Likewise.
10983 (*fabd_scalar<mode>3): Likewise.
10984 (and<mode>3): Likewise.
10985 (ior<mode>3): Likewise.
10986 (xor<mode>3): Likewise.
10987 (one_cmpl<mode>2): Likewise.
10988 (aarch64_simd_vec_set<mode>): Likewise.
10989 (aarch64_simd_lshr<mode>): Likewise.
10990 (aarch64_simd_ashr<mode>): Likewise.
10991 (aarch64_simd_imm_shl<mode>): Likewise.
10992 (aarch64_simd_reg_sshl<mode): Likewise.
10993 (aarch64_simd_reg_shl<mode>_unsigned): Likewise.
10994 (aarch64_simd_reg_shl<mode>_signed): Likewise.
10995 (aarch64_simd_vec_setv2di): Likewise.
10996 (aarch64_simd_vec_set<mode>): Likewise.
10997 (aarch64_mla<mode>): Likewise.
10998 (*aarch64_mla_elt<mode>): Likewise.
10999 (*aarch64_mla_elt_<vswap_width_name><mode>): Likewise.
11000 (aarch64_mls<mode>): Likewise.
11001 (*aarch64_mls_elt<mode>): Likewise.
11002 (*aarch64_mls_elt_<vswap_width_name><mode>): Likewise.
11003 (<su><maxmin><mode>3): Likewise.
11004 (move_lo_quad_<mode>): Likewise.
11005 (aarch64_simd_move_hi_quad_<mode>): Likewise.
11006 (aarch64_simd_vec_pack_trunc_<mode>): Likewise.
11007 (vec_pack_trunc_<mode>): Likewise.
11008 (aarch64_simd_vec_unpack<su>_lo_<mode>): Likewise.
11009 (aarch64_simd_vec_unpack<su>_hi_<mode>): Likewise.
11010 (*aarch64_<su>mlal_lo<mode>): Likewise.
11011 (*aarch64_<su>mlal_hi<mode>): Likewise.
11012 (*aarch64_<su>mlsl_lo<mode>): Likewise.
11013 (*aarch64_<su>mlsl_hi<mode>): Likewise.
11014 (*aarch64_<su>mlal<mode>): Likewise.
11015 (*aarch64_<su>mlsl<mode>): Likewise.
11016 (aarch64_simd_vec_<su>mult_lo_<mode>): Likewise.
11017 (aarch64_simd_vec_<su>mult_hi_<mode>): Likewise.
11018 (add<mode>3): Likewise.
11019 (sub<mode>3): Likewise.
11020 (mul<mode>3): Likewise.
11021 (div<mode>3): Likewise.
11022 (neg<mode>2): Likewise.
11023 (abs<mode>2): Likewise.
11024 (fma<mode>4): Likewise.
11025 (*aarch64_fma4_elt<mode>): Likewise.
11026 (*aarch64_fma4_elt_<vswap_width_name><mode>): Likewise.
11027 (*aarch64_fma4_elt_to_128df): Likewise.
11028 (*aarch64_fma4_elt_to_64v2df): Likewise.
11029 (fnma<mode>4): Likewise.
11030 (*aarch64_fnma4_elt<mode>): Likewise.
11031 (*aarch64_fnma4_elt_<vswap_width_name><mode>
11032 (*aarch64_fnma4_elt_to_128df): Likewise.
11033 (*aarch64_fnma4_elt_to_64v2df): Likewise.
11034 (<frint_pattern><mode>2): Likewise.
11035 (l<fcvt_pattern><su_optab><VDQF:mode><fcvt_target>2): Likewise.
11036 (<optab><fcvt_target><VDQF:VDQF:mode>2): Likewise.
11037 (vec_unpacks_lo_v4sf): Likewise.
11038 (aarch64_float_extend_lo_v2df): Likewise.
11039 (vec_unpacks_hi_v4sf): Likewise.
11040 (aarch64_float_truncate_lo_v2sf): Likewise.
11041 (aarch64_float_truncate_hi_v4sf): Likewise.
11042 (aarch64_vmls<mode>): Likewise.
11043 (<su><maxmin><mode>3): Likewise.
11044 (<maxmin_uns><mode>3): Likewise.
11045 (reduc_<sur>plus_<mode>): Likewise.
11046 (reduc_<sur>plus_v2di): Likewise.
11047 (reduc_<sur>plus_v2si): Likewise.
11048 (reduc_<sur>plus_<mode>): Likewise.
11049 (aarch64_addpv4sf): Likewise.
11050 (clz<mode>2): Likewise.
11051 (reduc_<maxmin_uns>_<mode>): Likewise.
11052 (reduc_<maxmin_uns>_v2di): Likewise.
11053 (reduc_<maxmin_uns>_v2si): Likewise.
11054 (reduc_<maxmin_uns>_<mode>): Likewise.
11055 (reduc_<maxmin_uns>_v4sf): Likewise.
11056 (aarch64_simd_bsl<mode>_internal): Likewise.
11057 (*aarch64_get_lane_extend<GPI:mode><VDQQH:mode>): Likewise.
11058 (*aarch64_get_lane_zero_extendsi<mode>): Likewise.
11059 (aarch64_get_lane<mode>): Likewise.
11060 (*aarch64_combinez<mode>): Likewise.
11061 (aarch64_combine<mode>): Likewise.
11062 (aarch64_simd_combine<mode>): Likewise.
11063 (aarch64_<ANY_EXTEND:su><ADDSUB:optab>l<mode>_hi_internal): Likewise.
11064 (aarch64_<ANY_EXTEND:su><ADDSUB:optab>l<mode>_lo_internal): Likewise.
11065 (aarch64_<ANY_EXTEND:su><ADDSUB:optab>l<mode>): Likewise.
11066 (aarch64_<ANY_EXTEND:su><ADDSUB:optab>w<mode>): Likewise.
11067 (aarch64_<ANY_EXTEND:su><ADDSUB:optab>w2<mode>_internal): Likewise.
11068 (aarch64_<sur>h<addsub><mode>): Likewise.
11069 (aarch64_<sur><addsub>hn<mode>): Likewise.
11070 (aarch64_<sur><addsub>hn2<mode>): Likewise.
11071 (aarch64_pmul<mode>): Likewise.
11072 (aarch64_<su_optab><optab><mode>): Likewise.
11073 (aarch64_<sur>qadd<mode>): Likewise.
11074 (aarch64_sqmovun<mode>): Likewise.
11075 (aarch64_<sur>qmovn<mode>): Likewise.
11076 (aarch64_s<optab><mode>): Likewise.
11077 (aarch64_sq<r>dmulh<mode>): Likewise.
11078 (aarch64_sq<r>dmulh_lane<mode>): Likewise.
11079 (aarch64_sq<r>dmulh_laneq<mode>): Likewise.
11080 (aarch64_sq<r>dmulh_lane<mode>): Likewise.
11081 (aarch64_sqdml<SBINQOPS:as>l<mode>): Likewise.
11082 (aarch64_sqdml<SBINQOPS:as>l_lane<mode>_internal): Likewise.
11083 (aarch64_sqdml<SBINQOPS:as>l_lane<mode>_internal): Likewise.
11084 (aarch64_sqdml<SBINQOPS:as>l_n<mode>): Likewise.
11085 (aarch64_sqdml<SBINQOPS:as>l2<mode>_internal): Likewise.
11086 (aarch64_sqdml<SBINQOPS:as>l2_lane<mode>_internal): Likewise.
11087 (aarch64_sqdml<SBINQOPS:as>l2_n<mode>_internal): Likewise.
11088 (aarch64_sqdmull<mode>): Likewise.
11089 (aarch64_sqdmull_lane<mode>_internal): Likewise.
11090 (aarch64_sqdmull_n<mode>): Likewise.
11091 (aarch64_sqdmull2<mode>_internal): Likewise.
11092 (aarch64_sqdmull2_lane<mode>_internal): Likewise.
11093 (aarch64_sqdmull2_n<mode>_internal): Likewise.
11094 (aarch64_<sur>shl<mode>): Likewise.
11095 (aarch64_<sur>q<r>shl<mode>
11096 (aarch64_<sur>shll_n<mode>): Likewise.
11097 (aarch64_<sur>shll2_n<mode>): Likewise.
11098 (aarch64_<sur>shr_n<mode>): Likewise.
11099 (aarch64_<sur>sra_n<mode>): Likewise.
11100 (aarch64_<sur>s<lr>i_n<mode>): Likewise.
11101 (aarch64_<sur>qshl<u>_n<mode>): Likewise.
11102 (aarch64_<sur>q<r>shr<u>n_n<mode>): Likewise.
11103 (aarch64_cm<optab><mode>): Likewise.
11104 (aarch64_cm<optab>di): Likewise.
11105 (aarch64_cm<optab><mode>): Likewise.
11106 (aarch64_cm<optab>di): Likewise.
11107 (aarch64_cmtst<mode>): Likewise.
11108 (aarch64_cmtstdi): Likewise.
11109 (aarch64_cm<optab><mode>): Likewise.
11110 (*aarch64_fac<optab><mode>): Likewise.
11111 (aarch64_addp<mode>): Likewise.
11112 (aarch64_addpdi): Likewise.
11113 (sqrt<mode>2): Likewise.
11114 (vec_load_lanesoi<mode>): Likewise.
11115 (vec_store_lanesoi<mode>): Likewise.
11116 (vec_load_lanesci<mode>): Likewise.
11117 (vec_store_lanesci<mode>): Likewise.
11118 (vec_load_lanesxi<mode>): Likewise.
11119 (vec_store_lanesxi<mode>): Likewise.
11120 (*aarch64_mov<mode>): Likewise.
11121 (aarch64_ld2<mode>_dreg): Likewise.
11122 (aarch64_ld2<mode>_dreg): Likewise.
11123 (aarch64_ld3<mode>_dreg): Likewise.
11124 (aarch64_ld3<mode>_dreg): Likewise.
11125 (aarch64_ld4<mode>_dreg): Likewise.
11126 (aarch64_ld4<mode>_dreg): Likewise.
11127 (aarch64_tbl1<mode>): Likewise.
11128 (aarch64_tbl2v16qi): Likewise.
11129 (aarch64_combinev16qi): Likewise.
11130 (aarch64_<PERMUTE:perm_insn><PERMUTE:perm_hilo><mode>): Likewise.
11131 (aarch64_st2<mode>_dreg): Likewise.
11132 (aarch64_st2<mode>_dreg): Likewise.
11133 (aarch64_st3<mode>_dreg): Likewise.
11134 (aarch64_st3<mode>_dreg): Likewise.
11135 (aarch64_st4<mode>_dreg): Likewise.
11136 (aarch64_st4<mode>_dreg): Likewise.
11137 (*aarch64_simd_ld1r<mode>): Likewise.
11138 (aarch64_frecpe<mode>): Likewise.
11139 (aarch64_frecp<FRECP:frecp_suffix><mode>): Likewise.
11140 (aarch64_frecps<mode>): Likewise.
11142 2013-10-15 James Greenhalgh <james.greenhalgh@arm.com>
11144 * config/arm/iterators.md (V_elem_ch): New.
11146 (VQH_type): Likewise.
11147 * config/arm/arm.md (is_neon_type): New.
11148 (conds): Use is_neon_type.
11149 (anddi3_insn): Update type attribute.
11150 (xordi3_insn): Likewise.
11151 (one_cmpldi2): Likewise.
11152 * config/arm/vfp.md (movhf_vfp_neon): Update type attribute.
11153 * config/arm/neon.md (neon_mov): Update type attribute.
11154 (*movmisalign<mode>_neon_store): Likewise.
11155 (*movmisalign<mode>_neon_load): Likewise.
11156 (vec_set<mode>_internal): Likewise.
11157 (vec_set<mode>_internal): Likewise.
11158 (vec_setv2di_internal): Likewise.
11159 (vec_extract<mode>): Likewise.
11160 (vec_extract<mode>): Likewise.
11161 (vec_extractv2di): Likewise.
11162 (*add<mode>3_neon): Likewise.
11163 (adddi3_neon): Likewise.
11164 (*sub<mode>3_neon): Likewise.
11165 (subdi3_neon): Likewise.
11166 (fma<VCVTF:mode>4): Likewise.
11167 (fma<VCVTF:mode>4_intrinsic): Likewise.
11168 (*fmsub<VCVTF:mode>4): Likewise.
11169 (fmsub<VCVTF:mode>4_intrinsic): Likewise.
11170 (neon_vrint<NEON_VRINT:nvrint_variant><VCVTF:mode>): Likewise.
11171 (ior<mode>3): Likewise.
11172 (and<mode>3): Likewise.
11173 (orn<mode>3_neon): Likewise.
11174 (orndi3_neon): Likewise.
11175 (bic<mode>3_neon): Likewise.
11176 (bicdi3_neon): Likewise.
11177 (xor<mode>3): Likewise.
11178 (one_cmpl<mode>2): Likewise.
11179 (abs<mode>2): Likewise.
11180 (neg<mode>2): Likewise.
11181 (negdi2_neon): Likewise.
11182 (*umin<mode>3_neon): Likewise.
11183 (*umax<mode>3_neon): Likewise.
11184 (*smin<mode>3_neon): Likewise.
11185 (*smax<mode>3_neon): Likewise.
11186 (vashl<mode>3): Likewise.
11187 (vashr<mode>3_imm): Likewise.
11188 (vlshr<mode>3_imm): Likewise.
11189 (ashl<mode>3_signed): Likewise.
11190 (ashl<mode>3_unsigned): Likewise.
11191 (neon_load_count): Likewise.
11192 (ashldi3_neon_noclobber): Likewise.
11193 (ashldi3_neon): Likewise.
11194 (signed_shift_di3_neon): Likewise.
11195 (unsigned_shift_di3_neon): Likewise.
11196 (ashrdi3_neon_imm_noclobber): Likewise.
11197 (lshrdi3_neon_imm_noclobber): Likewise.
11198 (<shift>di3_neon): Likewise.
11199 (widen_ssum<mode>3): Likewise.
11200 (widen_usum<mode>3): Likewise.
11201 (quad_halves_<code>v4si): Likewise.
11202 (quad_halves_<code>v4sf): Likewise.
11203 (quad_halves_<code>v8hi): Likewise.
11204 (quad_halves_<code>v16qi): Likewise.
11205 (reduc_splus_v2di): Likewise.
11206 (neon_vpadd_internal<mode>): Likewise.
11207 (neon_vpsmin<mode>): Likewise.
11208 (neon_vpsmax<mode>): Likewise.
11209 (neon_vpumin<mode>): Likewise.
11210 (neon_vpumax<mode>): Likewise.
11211 (*ss_add<mode>_neon): Likewise.
11212 (*us_add<mode>_neon): Likewise.
11213 (*ss_sub<mode>_neon): Likewise.
11214 (*us_sub<mode>_neon): Likewise.
11215 (neon_vadd<mode>_unspec): Likewise.
11216 (neon_vaddl<mode>): Likewise.
11217 (neon_vaddw<mode>): Likewise.
11218 (neon_vhadd<mode>): Likewise.
11219 (neon_vqadd<mode>): Likewise.
11220 (neon_vaddhn<mode>): Likewise.
11221 (neon_vmul<mode>): Likewise.
11222 (neon_vfms<VCVTF:mode>): Likewise.
11223 (neon_vmlal<mode>): Likewise.
11224 (neon_vmls<mode>): Likewise.
11225 (neon_vmlsl<mode>): Likewise.
11226 (neon_vqdmulh<mode>): Likewise.
11227 (neon_vqdmlal<mode>): Likewise.
11228 (neon_vqdmlsl<mode>): Likewise.
11229 (neon_vmull<mode>): Likewise.
11230 (neon_vqdmull<mode>): Likewise.
11231 (neon_vsub<mode>_unspec): Likewise.
11232 (neon_vsubl<mode>): Likewise.
11233 (neon_vsubw<mode>): Likewise.
11234 (neon_vqsub<mode>): Likewise.
11235 (neon_vhsub<mode>): Likewise.
11236 (neon_vsubhn<mode>): Likewise.
11237 (neon_vceq<mode>): Likewise.
11238 (neon_vcge<mode>): Likewise.
11239 (neon_vcgeu<mode>): Likewise.
11240 (neon_vcgt<mode>): Likewise.
11241 (neon_vcgtu<mode>): Likewise.
11242 (neon_vcle<mode>): Likewise.
11243 (neon_vclt<mode>): Likewise.
11244 (neon_vcage<mode>): Likewise.
11245 (neon_vcagt<mode>): Likewise.
11246 (neon_vtst<mode>): Likewise.
11247 (neon_vabd<mode>): Likewise.
11248 (neon_vabdl<mode>): Likewise.
11249 (neon_vaba<mode>): Likewise.
11250 (neon_vabal<mode>): Likewise.
11251 (neon_vmax<mode>): Likewise.
11252 (neon_vmin<mode>): Likewise.
11253 (neon_vpaddl<mode>): Likewise.
11254 (neon_vpadal<mode>): Likewise.
11255 (neon_vpmax<mode>): Likewise.
11256 (neon_vpmin<mode>): Likewise.
11257 (neon_vrecps<mode>): Likewise.
11258 (neon_vrsqrts<mode>): Likewise.
11259 (neon_vqabs<mode>): Likewise.
11260 (neon_vqneg<mode>): Likewise.
11261 (neon_vcls<mode>): Likewise.
11262 (clz<mode>2): Likewise.
11263 (popcount<mode>2): Likewise.
11264 (neon_vrecpe<mode>): Likewise.
11265 (neon_vrsqrte<mode>): Likewise.
11266 (neon_vget_lane<mode>_sext_internal): Likewise.
11267 (neon_vget_lane<mode>_zext_internal): Likewise.
11268 (neon_vdup_n<mode>): Likewise.
11269 (neon_vdup_n<mode>): Likewise.
11270 (neon_vdup_nv2di): Likewise.
11271 (neon_vdup_lane<mode>_interal): Likewise.
11272 (*neon_vswp<mode>): Likewise.
11273 (neon_vcombine<mode>): Likewise.
11274 (float<mode><V_cvtto>2): Likewise.
11275 (floatuns<mode><V_cvtto>2): Likewise.
11276 (fix_trunc<mode><V_cvtto>2): Likewise.
11277 (fixuns_trunc<mode><V_cvtto>2
11278 (neon_vcvt<mode>): Likewise.
11279 (neon_vcvt<mode>): Likewise.
11280 (neon_vcvtv4sfv4hf): Likewise.
11281 (neon_vcvtv4hfv4sf): Likewise.
11282 (neon_vcvt_n<mode>): Likewise.
11283 (neon_vcvt_n<mode>): Likewise.
11284 (neon_vmovn<mode>): Likewise.
11285 (neon_vqmovn<mode>): Likewise.
11286 (neon_vqmovun<mode>): Likewise.
11287 (neon_vmovl<mode>): Likewise.
11288 (neon_vmul_lane<mode>): Likewise.
11289 (neon_vmul_lane<mode>): Likewise.
11290 (neon_vmull_lane<mode>): Likewise.
11291 (neon_vqdmull_lane<mode>): Likewise.
11292 (neon_vqdmulh_lane<mode>): Likewise.
11293 (neon_vqdmulh_lane<mode>): Likewise.
11294 (neon_vmla_lane<mode>): Likewise.
11295 (neon_vmla_lane<mode>): Likewise.
11296 (neon_vmlal_lane<mode>): Likewise.
11297 (neon_vqdmlal_lane<mode>): Likewise.
11298 (neon_vmls_lane<mode>): Likewise.
11299 (neon_vmls_lane<mode>): Likewise.
11300 (neon_vmlsl_lane<mode>): Likewise.
11301 (neon_vqdmlsl_lane<mode>): Likewise.
11302 (neon_vext<mode>): Likewise.
11303 (neon_vrev64<mode>): Likewise.
11304 (neon_vrev32<mode>): Likewise.
11305 (neon_vrev16<mode>): Likewise.
11306 (neon_vbsl<mode>_internal): Likewise.
11307 (neon_vshl<mode>): Likewise.
11308 (neon_vqshl<mode>): Likewise.
11309 (neon_vshr_n<mode>): Likewise.
11310 (neon_vshrn_n<mode>): Likewise.
11311 (neon_vqshrn_n<mode>): Likewise.
11312 (neon_vqshrun_n<mode>): Likewise.
11313 (neon_vshl_n<mode>): Likewise.
11314 (neon_vqshl_n<mode>): Likewise.
11315 (neon_vqshlu_n<mode>): Likewise.
11316 (neon_vshll_n<mode>): Likewise.
11317 (neon_vsra_n<mode>): Likewise.
11318 (neon_vsri_n<mode>): Likewise.
11319 (neon_vsli_n<mode>): Likewise.
11320 (neon_vtbl1v8qi): Likewise.
11321 (neon_vtbl2v8qi): Likewise.
11322 (neon_vtbl3v8qi): Likewise.
11323 (neon_vtbl4v8qi): Likewise.
11324 (neon_vtbl1v16qi): Likewise.
11325 (neon_vtbl2v16qi): Likewise.
11326 (neon_vcombinev16qi): Likewise.
11327 (neon_vtbx1v8qi): Likewise.
11328 (neon_vtbx2v8qi): Likewise.
11329 (neon_vtbx3v8qi): Likewise.
11330 (neon_vtbx4v8qi): Likewise.
11331 (*neon_vtrn<mode>_insn): Likewise.
11332 (*neon_vzip<mode>_insn): Likewise.
11333 (*neon_vuzp<mode>_insn): Likewise.
11334 (neon_vld1<mode>): Likewise.
11335 (neon_vld1_lane<mode>): Likewise.
11336 (neon_vld1_lane<mode>): Likewise.
11337 (neon_vld1_dup<mode>): Likewise.
11338 (neon_vld1_dup<mode>): Likewise.
11339 (neon_vld1_dupv2di): Likewise.
11340 (neon_vst1<mode>): Likewise.
11341 (neon_vst1_lane<mode>): Likewise.
11342 (neon_vst1_lane<mode>): Likewise.
11343 (neon_vld2<mode>): Likewise.
11344 (neon_vld2<mode>): Likewise.
11345 (neon_vld2_lane<mode>): Likewise.
11346 (neon_vld2_lane<mode>): Likewise.
11347 (neon_vld2_dup<mode>): Likewise.
11348 (neon_vst2<mode>): Likewise.
11349 (neon_vst2<mode>): Likewise.
11350 (neon_vst2_lane<mode>): Likewise.
11351 (neon_vst2_lane<mode>): Likewise.
11352 (neon_vld3<mode>): Likewise.
11353 (neon_vld3qa<mode>): Likewise.
11354 (neon_vld3qb<mode>): Likewise.
11355 (neon_vld3_lane<mode>): Likewise.
11356 (neon_vld3_lane<mode>): Likewise.
11357 (neon_vld3_dup<mode>): Likewise.
11358 (neon_vst3<mode>): Likewise.
11359 (neon_vst3qa<mode>): Likewise.
11360 (neon_vst3qb<mode>): Likewise.
11361 (neon_vst3_lane<mode>): Likewise.
11362 (neon_vst3_lane<mode>): Likewise.
11363 (neon_vld4<mode>): Likewise.
11364 (neon_vld4qa<mode>): Likewise.
11365 (neon_vld4qb<mode>): Likewise.
11366 (neon_vld4_lane<mode>): Likewise.
11367 (neon_vld4_lane<mode>): Likewise.
11368 (neon_vld4_dup<mode>): Likewise.
11369 (neon_vst4<mode>): Likewise.
11370 (neon_vst4qa<mode>): Likewise.
11371 (neon_vst4qb<mode>): Likewise.
11372 (neon_vst4_lane<mode>): Likewise.
11373 (neon_vst4_lane<mode>): Likewise.
11374 (neon_vec_unpack<US>_lo_<mode>): Likewise.
11375 (neon_vec_unpack<US>_hi_<mode>): Likewise.
11376 (neon_vec_<US>mult_lo_<mode>): Likewise.
11377 (neon_vec_<US>mult_hi_<mode>): Likewise.
11378 (neon_vec_<US>shiftl_<mode>): Likewise.
11379 (neon_unpack<US>_<mode>): Likewise.
11380 (neon_vec_<US>mult_<mode>): Likewise.
11381 (vec_pack_trunc_<mode>): Likewise.
11382 (neon_vec_pack_trunc_<mode>): Likewise.
11383 (neon_vabd<mode>_2): Likewise.
11384 (neon_vabd<mode>_3): Likewise.
11386 2013-10-15 James Greenhalgh <james.greenhalgh@arm.com>
11388 * config/aarch64/aarch64.md (movtf_aarch64): Update type attribute.
11389 (load_pair): Update type attribute.
11390 (store_pair): Update type attribute.
11391 * config/aarch64/iterators.md (q): New.
11393 2013-10-15 James Greenhalgh <james.greenhalgh@arm.com>
11395 * config/arm/types.md: Add new types for Neon insns.
11397 2013-10-15 Alexander Ivchenko <alexander.ivchenko@intel.com>
11398 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
11399 Sergey Lega <sergey.s.lega@intel.com>
11400 Anna Tikhonova <anna.tikhonova@intel.com>
11401 Ilya Tocar <ilya.tocar@intel.com>
11402 Andrey Turetskiy <andrey.turetskiy@intel.com>
11403 Ilya Verbin <ilya.verbin@intel.com>
11404 Kirill Yukhin <kirill.yukhin@intel.com>
11405 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
11407 * config/i386/sse.md (unspec): Add UNSPEC_RCP14, UNSPEC_RSQRT14,
11408 UNSPEC_FIXUPIMM, UNSPEC_SCALEF, UNSPEC_GETEXP, UNSPEC_GETMANT,
11409 UNSPEC_EXP2, UNSPEC_RCP28, UNSPEC_RSQRT28.
11410 (rcp14<mode>): New.
11411 (srcp14<mode>): Ditto.
11412 (rsqrt14<mode>): Ditto.
11413 (rsqrt14<mode>): Ditto.
11414 (avx512f_vmscalef<mode>): Ditto.
11415 (avx512f_scalef<mode>): Ditto.
11416 (avx512f_getexp<mode>): Ditto.
11417 (avx512f_sgetexp<mode>): Ditto.
11418 (avx512f_fixupimm<mode>): Ditto.
11419 (avx512f_sfixupimm<mode>): Ditto.
11420 (avx512f_rndscale<mode>): Ditto.
11421 (*avx512er_exp2<mode>): Ditto.
11422 (*avx512er_rcp28<mode>): Ditto.
11423 (avx512er_rsqrt28<mode>): Ditto.
11424 (avx512f_getmant<mode>): Ditto.
11425 (avx512f_getmant<mode>): Ditto.
11426 (avx512f_rndscale<mode>): Fix formatting.
11428 2013-10-15 Martin Jambor <mjambor@suse.cz>
11430 * ipa-utils.h (ipa_edge_within_scc): Declare.
11431 * ipa-cp.c (edge_within_scc): Moved...
11432 * ipa-utils.c (ipa_edge_within_scc): ...here. Updated all callers.
11434 2013-10-15 Alexander Ivchenko <alexander.ivchenko@intel.com>
11435 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
11436 Sergey Lega <sergey.s.lega@intel.com>
11437 Anna Tikhonova <anna.tikhonova@intel.com>
11438 Ilya Tocar <ilya.tocar@intel.com>
11439 Andrey Turetskiy <andrey.turetskiy@intel.com>
11440 Ilya Verbin <ilya.verbin@intel.com>
11441 Kirill Yukhin <kirill.yukhin@intel.com>
11442 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
11444 * config/i386/predicates.md (const_8_to_15_operand): New.
11445 (const_16_to_31_operand): Ditto.
11446 * config/i386/sse.md (V8FI): New.
11448 (reduc_splus_v8df): Ditto.
11449 (reduc_splus_v16sf): Ditto.
11450 (avx512f_vextract<shuffletype>32x4_1): Ditto.
11451 (vec_extract_hi_<mode>): Ditto.
11452 (avx512f_vinsert<shuffletype>32x4_1): Ditto.
11453 (vec_set_lo_<mode>): Ditto.
11454 (vec_set_hi_<mode>): Ditto.
11455 (avx512f_shuf_<shuffletype>64x2_1): Ditto.
11456 (avx512f_shuf_<shuffletype>32x4_1): Ditto.
11457 (avx512f_pshufd_1): Ditto.
11458 (avx512f_broadcast<mode>): Ditto.
11459 (avx512f_broadcast<mode>): Ditto.
11460 (define_split): Split vec_extract_lo into move.
11461 (ssequartermode): Ditto.
11462 (ssedoublemode): Extened with wider modes.
11463 (vec_extract_lo_<mode>): Ditto.
11465 2013-10-15 Alexander Ivchenko <alexander.ivchenko@intel.com>
11466 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
11467 Sergey Lega <sergey.s.lega@intel.com>
11468 Anna Tikhonova <anna.tikhonova@intel.com>
11469 Ilya Tocar <ilya.tocar@intel.com>
11470 Andrey Turetskiy <andrey.turetskiy@intel.com>
11471 Ilya Verbin <ilya.verbin@intel.com>
11472 Kirill Yukhin <kirill.yukhin@intel.com>
11473 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
11475 * config/i386/predicates.md (register_or_constm1_operand): New.
11476 * config/i386/sse.md (unspec): Add UNSPEC_UNSIGNED_PCMP, UNSPEC_TESTM,
11477 UNSPEC_TESTNM, UNSPEC_VTERNLOG, UNSPEC_ALIGN, UNSPEC_CONFLICT,
11478 UNSPEC_MASKED_EQ, UNSPEC_MASKED_GT, UNSPEC_GATHER_PREFETCH,
11479 UNSPEC_SCATTER_PREFETCH
11481 (avx512f_ucmp<mode>3): Ditto.
11482 (avx512f_vternlog<mode>): Ditto.
11483 (avx512f_align<mode>): Ditto.
11484 (<shift_insn><mode>3): Ditto.
11485 (avx512f_<rotate>v<mode>): Ditto.
11486 (avx512f_<rotate><mode>): Ditto.
11487 (avx512f_eq<mode>3): Ditto.
11488 (avx512f_eq<mode>3_1): Ditto.
11489 (avx512f_gt<mode>3): Ditto.
11490 (avx512f_testm<mode>3): Ditto.
11491 (avx512f_testnm<mode>3): Ditto.
11492 (avx512pf_gatherpf<mode>): Ditto.
11493 (*avx512pf_gatherpf<mode>_mask): Ditto.
11494 (*avx512pf_gatherpf<mode>): Ditto.
11495 (avx512pf_scatterpf<mode>): Ditto.
11496 (*avx512pf_scatterpf<mode>_mask): Ditto.
11497 (*avx512pf_scatterpf<mode>): Ditto.
11498 (avx512f_vec_dup_gpr<mode>): Ditto.
11499 (clz<mode>2): Ditto.
11500 (conflict<mode>): Ditto.
11501 (REDUC_SMINMAX_MODE): Extened with wider modes.
11502 (reduc_<code>_<mode>): Ditto.
11503 (vlshr<mode>3): Ditto.
11504 (vashl<mode>3): Ditto.
11506 2013-10-15 Alexander Ivchenko <alexander.ivchenko@intel.com>
11507 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
11508 Sergey Lega <sergey.s.lega@intel.com>
11509 Anna Tikhonova <anna.tikhonova@intel.com>
11510 Ilya Tocar <ilya.tocar@intel.com>
11511 Andrey Turetskiy <andrey.turetskiy@intel.com>
11512 Ilya Verbin <ilya.verbin@intel.com>
11513 Kirill Yukhin <kirill.yukhin@intel.com>
11514 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
11516 * config/i386/sse.md (unspec): Added UNSPEC_VPERMI2, UNSPEC_VPERMT2,
11519 (avx512fmaskmode): Ditto.
11520 (bcstscalarsuff): Ditto.
11521 (avx512f_blendm<mode>): Ditto.
11522 (cmp_imm_predicate): Ditto.
11523 (avx512f_cmp<mode>3): Ditto.
11524 (avx512f_vec_dup<mode>): Ditto.
11525 (avx512f_vec_dup_mem<mode>): Ditto.
11526 (avx512f_vpermi2var<mode>3): Ditto.
11527 (avx512f_vpermt2var<mode>3): Ditto.
11528 (vec_init<mode>): Ditto.
11529 (avx512f_gathersi<mode>): Ditto.
11530 (*avx512f_gathersi<mode>): Ditto.
11531 (*avx512f_gathersi<mode>_2): Ditto.
11532 (avx512f_gatherdi<mode>): Ditto.
11533 (*avx512f_gatherdi<mode>): Ditto.
11534 (*avx512f_gatherdi<mode>_2): Ditto.
11535 (avx512f_scattersi<mode>): Ditto.
11536 (*avx512f_scattersi<mode>): Ditto.
11537 (avx512f_scatterdi<mode>): Ditto.
11538 (*avx512f_scatterdi<mode>): Ditto.
11539 (sseintprefix): Extened with wider modes.
11540 (VEC_GATHER_IDXSI): Ditto.
11541 (VEC_GATHER_IDXDI): Ditto.
11542 (VEC_GATHER_SRCDI): Ditto.
11544 2013-10-15 Matthew Gretton-Dann <matthew.gretton-dann@arm.com>
11545 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
11547 * config/arm/t-aprofile: New file.
11548 * config.gcc: Handle --with-multilib-list option.
11550 2013-10-15 Bernd Schmidt <bernds@codesourcery.com>
11552 * reload1.c (reloads_unique_chain_p): Ensure that r1 is
11555 2013-10-15 Richard Biener <rguenther@suse.de>
11557 * tree-loop-distribution.c (build_empty_rdg): Inline into
11559 (rdg_flag_vertex): Inline into single user.
11560 (rdg_flag_vertex_and_dependent): Likewise.
11561 (build_rdg_partition_for_vertex): Remove processed bitmap.
11562 (rdg_build_partitions): Simplify.
11564 2013-10-15 Richard Biener <rguenther@suse.de>
11566 * tree-ssa-forwprop.c (forward_propagate_addr_expr_1):
11567 Restructure forwarding through conversions and copies to
11568 avoid performing copy-propagation the wrong way. Adjust
11569 recursion invocations.
11570 (forward_propagate_addr_expr): Add argument stating if we
11571 are recursing from a single-use.
11572 (ssa_forward_propagate_and_combine): Adjust.
11574 2013-10-14 David Malcolm <dmalcolm@redhat.com>
11576 * dumpfile.h (gcc::dump_manager): New class, to hold state
11577 relating to dumpfile management.
11578 (get_dump_file_name): Remove in favor of method of dump_manager.
11579 (dump_initialized_p): Likewise.
11580 (dump_start): Likewise.
11581 (dump_finish): Likewise.
11582 (dump_switch_p): Likewise.
11583 (dump_register): Likewise.
11584 (get_dump_file_info): Likewise.
11585 * context.c (gcc::context::context): Construct the dump_manager
11587 * context.h (gcc::context::get_dumps): New.
11588 (gcc::context::m_dumps): New.
11589 * coverage.c (coverage_init): Port to dump_manager API.
11590 * dumpfile.c (extra_dump_files): Convert to field of gcc::dump_manager.
11591 (extra_dump_files_in_use): Likewise.
11592 (extra_dump_files_alloced): Likewise.
11593 (gcc::dump_manager::dump_manager): New.
11594 (dump_register): Convert to...
11595 (gcc::dump_manager::dump_register): ...method, replacing
11596 function-static next_dump with m_next_dump field.
11597 (get_dump_file_info): Convert to...
11598 (gcc::dump_manager::get_dump_file_info): ...method.
11599 (get_dump_file_name): Convert to...
11600 (gcc::dump_manager::get_dump_file_name): ...method.
11601 (dump_start): Convert to...
11602 (gcc::dump_manager::dump_start): ...method.
11603 (dump_finish): Convert to...
11604 (gcc::dump_manager::dump_finish): ...method.
11605 (dump_begin): Replace body with...
11606 (gcc::dump_manager::dump_begin): ...new method.
11607 (dump_phase_enabled_p): Convert to...
11608 (gcc::dump_manager::dump_phase_enabled_p): ...method.
11609 (dump_phase_enabled_p): Convert to...
11610 (gcc::dump_manager::dump_phase_enabled_p): ...method.
11611 (dump_initialized_p): Convert to...
11612 (gcc::dump_manager::dump_initialized_p): ...method.
11613 (dump_flag_name): Replace body with...
11614 (gcc::dump_manager::dump_flag_name): ...new method.
11615 (dump_enable_all): Convert to...
11616 (gcc::dump_manager::dump_enable_all): ...new method.
11617 (opt_info_enable_passes): Convert to...
11618 (gcc::dump_manager::opt_info_enable_passes): ...new method.
11619 (dump_switch_p_1): Convert to...
11620 (gcc::dump_manager::dump_switch_p_1): ...new method.
11621 (dump_switch_p): Convert to...
11622 (gcc::dump_manager::dump_switch_p): ...new method.
11623 (opt_info_switch_p): Port to dump_manager API.
11624 (enable_rtl_dump_file): Likewise.
11625 * opts-global.c (handle_common_deferred_options): Port to new
11627 * passes.c (pass_manager::finish_optimization_passes): Likewise.
11628 (pass_manager::register_one_dump_file): Likewise.
11629 (pass_manager::register_pass): Likewise.
11630 (pass_init_dump_file): Likewise.
11631 (pass_fini_dump_file): Likewise.
11632 * statistics.c (statistics_early_init): Likewise.
11634 2013-10-14 Richard Biener <rguenther@suse.de>
11636 * gimple.c (gimple_canonical_types, canonical_type_hash_cache,
11637 iterative_hash_canonical_type, gimple_canonical_type_hash,
11638 gimple_canonical_types_compatible_p, gimple_canonical_type_eq,
11639 gimple_register_canonical_type, print_gimple_types_stats,
11640 free_gimple_type_tables): Move to lto/lto.c
11641 (gt-gimple.h): Do not include.
11642 * gimple.h (gimple_register_canonical_type,
11643 print_gimple_types_stats, free_gimple_type_tables): Remove.
11644 * Makefile.in (GTFILES): Remove gimple.c.
11646 2013-10-14 Travis Snoozy <quandary@remstate.com>
11649 * config/msp430/msp430.c (msp430_option_override): Correct thinko
11650 scanning for msp430x targets.
11652 2013-10-14 Eric Botcazou <ebotcazou@adacore.com>
11655 * config/sparc/sparc-protos.h (widen_mem_for_ldd_peep): Declare.
11656 (registers_ok_for_ldd_peep): Move around.
11657 * config/sparc/sparc.c (widen_mem_for_ldd_peep): New.
11658 * config/sparc/sparc.md (widening peepholes): Use it.
11660 2013-10-14 Richard Biener <rguenther@suse.de>
11662 PR middle-end/58712
11663 PR middle-end/55358
11664 * gimple.c (iterative_hash_canonical_type): Make sure to
11665 record the hash into the correct hashtable slot.
11667 2013-10-13 Eric Botcazou <ebotcazou@adacore.com>
11669 PR rtl-optimization/58662
11670 * combine.c (try_combine): Take into account death nodes on I2 when
11671 splitting a PARALLEL of two independent SETs. Fix dump message.
11673 2013-10-12 Oleg Endo <olegendo@gcc.gnu.org>
11676 * config/sh/sh_treg_combine.cc: New SH specific RTL pass.
11677 * config.gcc (sh[123456789lbe]*-*-* | sh-*-*): Add sh_treg_combine.o to
11679 * config/sh/t-sh (sh_treg_combine.o): New entry.
11680 * config/sh/sh.c (sh_fixed_condition_code_regs): New function that
11681 implements the target hook TARGET_FIXED_CONDITION_CODE_REGS.
11682 (register_sh_passes): New function. Register sh_treg_combine pass.
11683 (sh_option_override): Invoke it.
11684 (sh_canonicalize_comparison): Handle op0_preserve_value.
11685 * sh.md (*cbranch_t"): Do not try to optimize missed test and branch
11686 opportunities. Canonicalize branch condition.
11687 (nott): Allow only if pseudos can be created for non-SH2A.
11689 2013-10-12 H.J. Lu <hongjiu.lu@intel.com>
11692 * config/i386/i386.c (ix86_copy_addr_to_reg): New function.
11693 (ix86_expand_movmem): Replace copy_addr_to_reg with
11694 ix86_copy_addr_to_reg.
11695 (ix86_expand_setmem): Likewise.
11697 2013-10-12 Alexander Monakov <amonakov@ispras.ru>
11699 * config/i386/i386.c (ix86_expand_sse_compare_and_jump): Use mode
11700 provided by ix86_fp_compare_mode instead of CCFPUmode.
11702 2013-10-12 James Greenhalgh <james.greenhalgh@arm.com>
11704 * config/aarch64/arm_neon.h
11705 (vtbx<1,3>_<psu>8): Fix register constriants.
11707 2013-10-11 Jeff Law <law@redhat.com>
11709 PR tree-optimization/58640
11710 * tree-ssa-threadupdate.c (mark_threaded_blocks): Truncate jump
11711 threading paths that cross over two loop entry points.
11713 2013-10-11 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
11715 * config/rs6000/vsx.md (*vsx_le_perm_load_v2di): Generalize to
11716 handle vector float as well.
11717 (*vsx_le_perm_load_v4si): Likewise.
11718 (*vsx_le_perm_store_v2di): Likewise.
11719 (*vsx_le_perm_store_v4si): Likewise.
11721 2013-10-11 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
11723 * config/rs6000/vector.md (vec_realign_load<mode>): Generate vperm
11724 directly to circumvent subtract from splat{31} workaround.
11725 * config/rs6000/rs6000-protos.h (altivec_expand_vec_perm_le): New
11727 * config/rs6000/rs6000.c (altivec_expand_vec_perm_le): New.
11728 * config/rs6000/altivec.md (define_c_enum "unspec"): Add
11729 UNSPEC_VPERM_X and UNSPEC_VPERM_UNS_X.
11730 (altivec_vperm_<mode>): Convert to define_insn_and_split to
11731 separate big and little endian logic.
11732 (*altivec_vperm_<mode>_internal): New define_insn.
11733 (altivec_vperm_<mode>_uns): Convert to define_insn_and_split to
11734 separate big and little endian logic.
11735 (*altivec_vperm_<mode>_uns_internal): New define_insn.
11736 (vec_permv16qi): Add little endian logic.
11738 2013-10-11 Marc Glisse <marc.glisse@inria.fr>
11740 * doc/extend.texi (returns_nonnull): Remove arguments.
11742 2013-10-11 Alexander Ivchenko <alexander.ivchenko@intel.com>
11743 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
11744 Sergey Lega <sergey.s.lega@intel.com>
11745 Anna Tikhonova <anna.tikhonova@intel.com>
11746 Ilya Tocar <ilya.tocar@intel.com>
11747 Andrey Turetskiy <andrey.turetskiy@intel.com>
11748 Ilya Verbin <ilya.verbin@intel.com>
11749 Kirill Yukhin <kirill.yukhin@intel.com>
11750 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
11752 * config/i386/sse.md (VI48F_256_512): New.
11753 (avx2_permvar<mode>): Change to ...
11754 (<avx2_avx512f>_permvar<mode>): This.
11756 2013-10-11 Alexander Ivchenko <alexander.ivchenko@intel.com>
11757 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
11758 Sergey Lega <sergey.s.lega@intel.com>
11759 Anna Tikhonova <anna.tikhonova@intel.com>
11760 Ilya Tocar <ilya.tocar@intel.com>
11761 Andrey Turetskiy <andrey.turetskiy@intel.com>
11762 Ilya Verbin <ilya.verbin@intel.com>
11763 Kirill Yukhin <kirill.yukhin@intel.com>
11764 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
11766 * config/i386/i386.c (bdesc_args): Change corresponding pattern for
11767 __builtin_ia32_cvtps2dq, __builtin_ia32_cvtps2dq256.
11768 * config/i386/sse.md (VI4_AVX): New.
11769 (sf2simodelower): Ditto.
11770 (sse2_cvtps2dq): Change to ...
11771 (<sse2_avx_avx512f>_fix_notrunc<sf2simodelower><mode>): This.
11773 2013-10-11 Alexander Ivchenko <alexander.ivchenko@intel.com>
11774 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
11775 Sergey Lega <sergey.s.lega@intel.com>
11776 Anna Tikhonova <anna.tikhonova@intel.com>
11777 Ilya Tocar <ilya.tocar@intel.com>
11778 Andrey Turetskiy <andrey.turetskiy@intel.com>
11779 Ilya Verbin <ilya.verbin@intel.com>
11780 Kirill Yukhin <kirill.yukhin@intel.com>
11781 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
11783 * config/i386/sse.md (V_512): New.
11785 (vcond<V_512:mode><VF_512:mode>): Ditto.
11786 (vcond<V_512:mode><VI_512:mode>): Ditto.
11787 (vcondu<V_512:mode><VI_512:mode>): Ditto.
11789 2013-10-11 Alexander Ivchenko <alexander.ivchenko@intel.com>
11790 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
11791 Sergey Lega <sergey.s.lega@intel.com>
11792 Anna Tikhonova <anna.tikhonova@intel.com>
11793 Ilya Tocar <ilya.tocar@intel.com>
11794 Andrey Turetskiy <andrey.turetskiy@intel.com>
11795 Ilya Verbin <ilya.verbin@intel.com>
11796 Kirill Yukhin <kirill.yukhin@intel.com>
11797 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
11799 * config/i386/i386.c (ix86_rtx_costs): Enable fma for TARGET_AVX512F.
11800 * config/i386/sse.md (FMAMODEM): Changed modes and conditions.
11802 (fma<mode>4): Removed condition.
11803 (fms<mode>4): Ditto.
11804 (fnma<mode>4): Ditto.
11805 (fnms<mode>4): Ditto.
11806 (fma4i_fmadd_<mode>): Ditto.
11807 (*fma_fmadd_<mode>): Ditto.
11808 (*fma_fmsub_<mode>): Ditto.
11809 (*fma_fnmadd_<mode>): Ditto.
11810 (*fma_fnmsub_<mode>): Ditto.
11811 (fmaddsub_<mode>): Allow for TARGET_AVX512F.
11812 (*fma_fmaddsub_<mode>): Ditto.
11813 (*fma_fmsubadd_<mode>): Ditto.
11814 (*fmai_fmadd_<mode>): Ditto.
11815 (*fmai_fmsub_<mode>): Ditto.
11816 (*fmai_fnmadd_<mode>): Ditto.
11817 (*fmai_fnmsub_<mode>): Ditto.
11819 2013-10-11 Alexander Ivchenko <alexander.ivchenko@intel.com>
11820 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
11821 Sergey Lega <sergey.s.lega@intel.com>
11822 Anna Tikhonova <anna.tikhonova@intel.com>
11823 Ilya Tocar <ilya.tocar@intel.com>
11824 Andrey Turetskiy <andrey.turetskiy@intel.com>
11825 Ilya Verbin <ilya.verbin@intel.com>
11826 Kirill Yukhin <kirill.yukhin@intel.com>
11827 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
11829 * config/i386/sse.md (VI248_AVX2_8_AVX512F): New.
11830 (VI124_256): Changed to ...
11831 (VI124_256_48_512): This.
11832 (ssepackmode): Extended with wider modes.
11833 (<code><mode>3): Changed iterator.
11834 (*avx2_<code><mode>3): Ditto.
11835 (vec_pack_trunc_<mode>): Ditto.
11837 2013-10-11 Alexander Ivchenko <alexander.ivchenko@intel.com>
11838 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
11839 Sergey Lega <sergey.s.lega@intel.com>
11840 Anna Tikhonova <anna.tikhonova@intel.com>
11841 Ilya Tocar <ilya.tocar@intel.com>
11842 Andrey Turetskiy <andrey.turetskiy@intel.com>
11843 Ilya Verbin <ilya.verbin@intel.com>
11844 Kirill Yukhin <kirill.yukhin@intel.com>
11845 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
11847 * config/i386/sse.md (VI124_AVX2_48_AVX512F): New.
11848 (VI8F_256_512): Ditto.
11849 (abs<mode>2): Changed iterator.
11850 (avx2_perm<mode>): Changed to ...
11851 (<avx2_avx512f>_perm<mode>): This.
11852 (avx2_perm<mode>_1): Changed to ...
11853 (<avx2_avx512f>_perm<mode>_1): This.
11855 2013-10-11 Alexander Ivchenko <alexander.ivchenko@intel.com>
11856 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
11857 Sergey Lega <sergey.s.lega@intel.com>
11858 Anna Tikhonova <anna.tikhonova@intel.com>
11859 Ilya Tocar <ilya.tocar@intel.com>
11860 Andrey Turetskiy <andrey.turetskiy@intel.com>
11861 Ilya Verbin <ilya.verbin@intel.com>
11862 Kirill Yukhin <kirill.yukhin@intel.com>
11863 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
11865 * config/i386/sse.md (VI48_AVX512F): New.
11866 (VI48_AVX2): Changed to ...
11867 (VI48_AVX2_48_AVX512F): This.
11868 (avx2_ashrv<mode>): Changed to ...
11869 (<avx2_avx512f>_ashrv<mode>): This.
11870 (avx2_<shift_insn>v<mode>): Changed to ...
11871 (<avx2_avx512f>_<shift_insn>v<mode>): This.
11873 2013-10-11 Alexander Ivchenko <alexander.ivchenko@intel.com>
11874 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
11875 Sergey Lega <sergey.s.lega@intel.com>
11876 Anna Tikhonova <anna.tikhonova@intel.com>
11877 Ilya Tocar <ilya.tocar@intel.com>
11878 Andrey Turetskiy <andrey.turetskiy@intel.com>
11879 Ilya Verbin <ilya.verbin@intel.com>
11880 Kirill Yukhin <kirill.yukhin@intel.com>
11881 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
11883 * config/i386/sse.md (VI4_AVX512F): New.
11884 (VI8_AVX2_AVX512F): Ditto.
11885 (mul<mode>3): Extended with wider modes.
11886 (*<sse4_1_avx2>_mul<mode>3): Ditto.
11887 (mul<mode>3): Ditto.
11888 (vec_widen_<s>mult_odd_<mode>): Ditto.
11890 2013-10-11 Alexander Ivchenko <alexander.ivchenko@intel.com>
11891 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
11892 Sergey Lega <sergey.s.lega@intel.com>
11893 Anna Tikhonova <anna.tikhonova@intel.com>
11894 Ilya Tocar <ilya.tocar@intel.com>
11895 Andrey Turetskiy <andrey.turetskiy@intel.com>
11896 Ilya Verbin <ilya.verbin@intel.com>
11897 Kirill Yukhin <kirill.yukhin@intel.com>
11898 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
11900 * config/i386/sse.md (VI2_AVX512F): New.
11901 (VI124_AVX512F): Ditto.
11902 (sseunpackmode): Extended with wider modes.
11903 (sseunpackfltmode): Ditto.
11904 (vec_unpacks_float_hi_<mode>): Ditto.
11905 (vec_unpacks_float_lo_<mode>): Ditto.
11906 (vec_unpacku_float_hi_<mode>): Ditto.
11907 (vec_unpacku_float_lo_<mode>): Ditto.
11908 (vec_unpacks_lo_<mode>): Ditto.
11909 (vec_unpacks_hi_<mode>): Ditto.
11910 (vec_unpacku_lo_<mode>): Ditto.
11911 (vec_unpacku_hi_<mode>): Ditto.
11913 2013-10-11 Alexander Ivchenko <alexander.ivchenko@intel.com>
11914 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
11915 Sergey Lega <sergey.s.lega@intel.com>
11916 Anna Tikhonova <anna.tikhonova@intel.com>
11917 Ilya Tocar <ilya.tocar@intel.com>
11918 Andrey Turetskiy <andrey.turetskiy@intel.com>
11919 Ilya Verbin <ilya.verbin@intel.com>
11920 Kirill Yukhin <kirill.yukhin@intel.com>
11921 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
11923 * config/i386/i386.md (multdiv): New.
11924 (multdiv_mnemonic): Ditto.
11925 * config/i386/sse.md (<sse>_vmmul<mode>3): Changed to...
11926 (<sse>_vm<multdiv_mnemonic><mode>3): This.
11927 (<sse>_vmdiv<mode>3): Removed.
11929 2013-10-11 Alexander Ivchenko <alexander.ivchenko@intel.com>
11930 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
11931 Sergey Lega <sergey.s.lega@intel.com>
11932 Anna Tikhonova <anna.tikhonova@intel.com>
11933 Ilya Tocar <ilya.tocar@intel.com>
11934 Andrey Turetskiy <andrey.turetskiy@intel.com>
11935 Ilya Verbin <ilya.verbin@intel.com>
11936 Kirill Yukhin <kirill.yukhin@intel.com>
11937 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
11939 * config/i386/sse.md (V): Extended with wider modes.
11941 (ssehalfvecmode): Ditto.
11943 (ssepackfltmode): Ditto.
11944 (avx_vec_concat<mode>): Ditto.
11945 (V_256_512): New iterator.
11946 (VF2_512_256): Ditto.
11947 (si2dfmode): New attribute.
11948 (si2dfmodelower): Ditto.
11949 (sf2dfmode): Ditto.
11950 (concat_tg_mode): Ditto.
11951 (floatv4siv4df2): Changed to ...
11952 (float<si2dfmodelower><mode>2): This.
11953 (avx_cvtps2pd256): Changed to ...
11954 (<sse2_avx_avx512f>_cvtps2pd<avxsizesuffix>): This.
11955 (vec_pack_trunc_v4df): Changed to ...
11956 (vec_pack_trunc_<mode>): This.
11957 (avx_vpermil<mode>): Changed to ...
11958 (<sse2_avx_avx512f>_vpermil<mode>): This.
11959 (<fixsuffix>fix_truncv8dfv8si2): New.
11960 (vec_pack_sfix_trunc_v8df): Ditto.
11961 (avx512f_rndscale<mode>): Ditto.
11962 (avx512f_roundpd512): Ditto.
11963 (vec_pack_ufix_trunc_<mode>): Updated iterator.
11965 2013-10-11 Alexander Ivchenko <alexander.ivchenko@intel.com>
11966 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
11967 Sergey Lega <sergey.s.lega@intel.com>
11968 Anna Tikhonova <anna.tikhonova@intel.com>
11969 Ilya Tocar <ilya.tocar@intel.com>
11970 Andrey Turetskiy <andrey.turetskiy@intel.com>
11971 Ilya Verbin <ilya.verbin@intel.com>
11972 Kirill Yukhin <kirill.yukhin@intel.com>
11973 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
11975 * config/i386/i386.md (any_fix): New iterator.
11976 (fixsuffix): New attribute.
11977 * config/i386/sse.md (VF1): Extened with wider modes.
11981 (sseintvecmodelower): Ditto.
11982 (ssescalarmode): Ditto.
11983 (ssescalarnum): Ditto.
11984 (VF1_128_256): New.
11985 (ssexmmmode): Ditto.
11986 (<fixsuffix>fix_truncv16sfv16si2): Ditto.
11987 (<sse>_rcp<mode>2): Change iterator.
11988 (rsqrt<mode>2): Ditto.
11989 (<sse>_rsqrt<mode>2): Ditto.
11990 (avx2_vec_dup<mode>): Ditto.
11991 (<sse4_1>_round<ssemodesuffix>_sfix<avxsizesuffix>): Ditto.
11992 (round<mode>2_sfix): Ditto.
11993 (avx2_pbroadcast<mode>): Ditto.
11994 (*andnot<mode>3): Handle XI mode.
11995 (*<code><mode>3): Ditto.
11996 (AVXTOSSEMODE): Removed.
11997 (avx_vpermil<mode>): Changed to ...
11998 (<sse2_avx_avx512f>_vpermil<mode>): This.
12000 2013-10-11 Alexander Ivchenko <alexander.ivchenko@intel.com>
12001 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
12002 Sergey Lega <sergey.s.lega@intel.com>
12003 Anna Tikhonova <anna.tikhonova@intel.com>
12004 Ilya Tocar <ilya.tocar@intel.com>
12005 Andrey Turetskiy <andrey.turetskiy@intel.com>
12006 Ilya Verbin <ilya.verbin@intel.com>
12007 Kirill Yukhin <kirill.yukhin@intel.com>
12008 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
12010 * config/i386/sse.md (<sse2>_movnt<mode>): Update constraint to "v".
12011 (<sse>_comi): Ditto.
12012 (<sse>_ucomi): Ditto.
12013 (sse_cvtss2siq_2): Ditto.
12014 (sse2_cvtsd2si): Ditto.
12015 (sse2_cvtsd2siq): Ditto.
12016 (sse2_cvttsd2si): Ditto.
12017 (sse2_cvttsd2siq): Ditto.
12018 (<shift_insn><mode>3): Ditto.
12019 (sse2_cvtsi2sdq): Update constraint and prefix.
12020 (sse_cvtsi2ss): Update prefix.
12021 (sse_cvtsi2ssq): Ditto.
12023 2013-10-11 Jakub Jelinek <jakub@redhat.com>
12025 * tree-vrp.c (infer_nonnull_range): Use is_gimple_call,
12026 ignore internal calls.
12028 2013-10-11 Richard Biener <rguenther@suse.de>
12030 * tree-pretty-print.c (dump_generic_node): Allow to dump both (D)
12031 and (ab) for SSA_NAMEs. Mark INTEGER_CSTs with (OVF) if
12032 TREE_OVERFLOW is set.
12034 2013-10-11 Thomas Schwinge <thomas@codesourcery.com>
12036 * tree.h (OMP_CLAUSE_CODE): Remove duplicate definition.
12038 * gimple.c: GIMPLE statements have subcodes, not sub-codes.
12039 * gimple.h: Likewise.
12041 * doc/generic.texi (OpenMP): OMP_CLAUSE_* are subcodes, not sub-codes.
12043 * doc/generic.texi (Adding new DECL node types): Explain *_CHECK
12046 * doc/gimple.texi (is_gimple_omp): Move into the correct section.
12048 * acinclude.m4 (gcc_GAS_FLAGS): Add more gcc_cv_as_flags overrides.
12049 * configure: Regenerate.
12051 2013-10-11 Jakub Jelinek <jakub@redhat.com>
12053 * tree-pretty-print.c (dump_omp_clause): Handle OMP_CLAUSE__LOOPTEMP_
12054 and new OpenMP 4.0 clauses, handle UDR OMP_CLAUSE_REDUCTION,
12055 formatting fixes, use pp_colon instead of pp_character (..., ':'),
12056 similarly pp_right_paren.
12057 (dump_generic_node): Handle OMP_DISTRIBUTE, OMP_TEAMS,
12058 OMP_TARGET_DATA, OMP_TARGET, OMP_TARGET_UPDATE, OMP_TASKGROUP,
12059 allow OMP_FOR_INIT to be NULL, handle OMP_ATOMIC_SEQ_CST.
12060 * tree.c (omp_clause_num_ops, omp_clause_code_name): Add OpenMP 4.0
12062 (omp_declare_simd_clauses_equal,
12063 omp_remove_redundant_declare_simd_attrs): New functions.
12064 (attribute_value_equal): Use omp_declare_simd_clauses_equal.
12065 (walk_tree_1): Handle new OpenMP 4.0 clauses.
12066 * tree.h (OMP_LOOP_CHECK): Define.
12067 (OMP_FOR_BODY, OMP_FOR_CLAUSES, OMP_FOR_INIT, OMP_FOR_COND,
12068 OMP_FOR_INCR, OMP_FOR_PRE_BODY): Use it.
12069 (OMP_TASKGROUP_BODY, OMP_TEAMS_BODY, OMP_TEAMS_CLAUSES,
12070 OMP_TARGET_DATA_BODY, OMP_TARGET_DATA_CLAUSES, OMP_TARGET_BODY,
12071 OMP_TARGET_CLAUSES, OMP_TARGET_UPDATE_CLAUSES, OMP_CLAUSE_SIZE,
12072 OMP_ATOMIC_SEQ_CST, OMP_CLAUSE_DEPEND_KIND, OMP_CLAUSE_MAP_KIND,
12073 OMP_CLAUSE_MAP_ZERO_BIAS_ARRAY_SECTION, OMP_CLAUSE_PROC_BIND_KIND,
12074 OMP_CLAUSE_REDUCTION_OMP_ORIG_REF, OMP_CLAUSE_ALIGNED_ALIGNMENT,
12075 OMP_CLAUSE_NUM_TEAMS_EXPR, OMP_CLAUSE_THREAD_LIMIT_EXPR,
12076 OMP_CLAUSE_DEVICE_ID, OMP_CLAUSE_DIST_SCHEDULE_CHUNK_EXPR,
12077 OMP_CLAUSE_SIMDLEN_EXPR): Define.
12078 (OMP_CLAUSE_DECL): Change range up to OMP_CLAUSE__LOOPTEMP_.
12079 (omp_remove_redundant_declare_simd_attrs): New prototype.
12080 * gimple.def (GIMPLE_OMP_TASKGROUP, GIMPLE_OMP_TARGET,
12081 GIMPLE_OMP_TEAMS): New codes.
12082 (GIMPLE_OMP_RETURN): Use GSS_OMP_ATOMIC_STORE instead of GSS_BASE.
12083 * omp-low.c (struct omp_context): Add cancel_label and cancellable
12085 (target_nesting_level): New variable.
12086 (extract_omp_for_data): Handle GF_OMP_FOR_KIND_DISTRIBUTE and
12087 OMP_CLAUSE_DIST_SCHEDULE. Don't fallback to library implementation
12088 for collapse > 1 static schedule unless ordered.
12089 (get_ws_args_for): Add par_stmt argument. Handle combined loops.
12090 (determine_parallel_type): Adjust get_ws_args_for caller.
12091 (install_var_field): Handle mask & 4 for double indirection.
12092 (scan_sharing_clauses): Ignore shared clause on teams construct.
12093 Handle OMP_CLAUSE__LOOPTEMP_ and new OpenMP 4.0 clauses.
12094 (create_omp_child_function): If inside target or declare target
12095 constructs, set "omp declare target" attribute on the child function.
12096 (find_combined_for): New function.
12097 (scan_omp_parallel): Handle combined loops.
12098 (scan_omp_target, scan_omp_teams): New functions.
12099 (check_omp_nesting_restrictions): Check new OpenMP 4.0 nesting
12100 restrictions and set ctx->cancellable for cancellable constructs.
12101 (scan_omp_1_stmt): Call check_omp_nesting_restrictions also on
12102 selected builtin calls. Handle GIMPLE_OMP_TASKGROUP,
12103 GIMPLE_OMP_TARGET, GIMPLE_OMP_TEAMS.
12104 (build_omp_barrier): Add lhs argument, return gimple rather than tree.
12105 (omp_clause_aligned_alignment): New function.
12106 (lower_rec_simd_input_clauses): Only call SET_DECL_VALUE_EXPR on decls.
12107 (lower_rec_input_clauses): Add FD argument. Ignore shared clauses
12108 on teams constructs. Handle user defined reductions and new
12109 OpenMP 4.0 clauses.
12110 (lower_reduction_clauses): Don't set placeholder to address of ref
12111 if it has already the right type.
12112 (lower_send_clauses): Handle OMP_CLAUSE__LOOPTEMP_.
12113 (expand_parallel_call): Use the new non-_start suffixed builtins,
12114 handle OMP_CLAUSE_PROC_BIND, don't call the outlined function
12115 and GOMP_parallel_end after the call.
12116 (expand_task_call): Handle OMP_CLAUSE_DEPEND.
12117 (expand_omp_for_init_counts): Handle combined loops.
12118 (expand_omp_for_init_vars): Add inner_stmt argument, handle combined
12120 (expand_omp_for_generic): Likewise. Use GOMP_loop_end_cancel at the
12121 end of cancellable loops.
12122 (expand_omp_for_static_nochunk, expand_omp_for_static_chunk):
12123 Likewise. Handle collapse > 1 loops.
12124 (expand_omp_simd): Handle combined loops.
12125 (expand_omp_for): Add inner_stmt argument, adjust callers of
12126 expand_omp_for* functions, use expand_omp_for_static*chunk even
12127 for collapse > 1 unless ordered.
12128 (expand_omp_sections): Use GOMP_sections_end_cancel at the end
12129 of cancellable sections.
12130 (expand_omp_single): Remove need_barrier variable, just rely on
12131 gimple_omp_return_nowait_p. Adjust build_omp_barrier caller.
12132 (expand_omp_synch): Allow GIMPLE_OMP_TASKGROUP and GIMPLE_OMP_TEAMS.
12133 (expand_omp_atomic_load, expand_omp_atomic_store,
12134 expand_omp_atomic_fetch_op): Handle gimple_omp_atomic_seq_cst_p.
12135 (expand_omp_target): New function.
12136 (expand_omp): Handle combined loops. Handle GIMPLE_OMP_TASKGROUP,
12137 GIMPLE_OMP_TEAMS, GIMPLE_OMP_TARGET.
12138 (build_omp_regions_1): Immediately close region for
12139 GF_OMP_TARGET_KIND_UPDATE.
12140 (maybe_add_implicit_barrier_cancel): New function.
12141 (lower_omp_sections): Adjust lower_rec_input_clauses caller. Handle
12143 (lower_omp_single): Likewise. Add clobber after the barrier.
12144 (lower_omp_taskgroup): New function.
12145 (lower_omp_for): Handle combined loops. Adjust
12146 lower_rec_input_clauses caller. Handle cancellation.
12147 (lower_depend_clauses): New function.
12148 (lower_omp_taskreg): Lower depend clauses. Adjust
12149 lower_rec_input_clauses caller. Add clobber after the call. Handle
12151 (lower_omp_target, lower_omp_teams): New functions.
12152 (lower_omp_1): Handle cancellation. Handle GIMPLE_OMP_TASKGROUP,
12153 GIMPLE_OMP_TARGET, GIMPLE_OMP_TEAMS and GOMP_barrier, GOMP_cancel
12154 and GOMP_cancellation_point calls.
12155 (lower_omp): Fold stmts inside of target region.
12156 (diagnose_sb_1, diagnose_sb_2): Handle GIMPLE_OMP_TASKGROUP,
12157 GIMPLE_OMP_TARGET and GIMPLE_OMP_TEAMS.
12158 * builtin-types.def (DEF_FUNCTION_TYPE_8): Document.
12159 (BT_FN_VOID_OMPFN_PTR_UINT,
12160 BT_FN_VOID_OMPFN_PTR_UINT_LONG_LONG_LONG,
12161 BT_FN_VOID_OMPFN_PTR_UINT_LONG_LONG_LONG_LONG,
12162 BT_FN_VOID_OMPFN_PTR_OMPCPYFN_LONG_LONG_BOOL_UINT): Remove.
12163 (BT_FN_VOID_OMPFN_PTR_UINT_UINT_UINT,
12164 BT_FN_VOID_OMPFN_PTR_UINT_LONG_LONG_LONG_UINT,
12165 BT_FN_VOID_OMPFN_PTR_UINT_LONG_LONG_LONG_LONG_UINT,
12166 BT_FN_BOOL_INT, BT_FN_BOOL_INT_BOOL, BT_FN_VOID_UINT_UINT,
12167 BT_FN_VOID_INT_PTR_SIZE_PTR_PTR_PTR,
12168 BT_FN_VOID_INT_OMPFN_PTR_SIZE_PTR_PTR_PTR,
12169 BT_FN_VOID_OMPFN_PTR_OMPCPYFN_LONG_LONG_BOOL_UINT_PTR): New.
12170 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1,
12171 call_may_clobber_ref_p_1): Handle BUILT_IN_GOMP_BARRIER_CANCEL,
12172 BUILT_IN_GOMP_TASKGROUP_END, BUILT_IN_GOMP_LOOP_END_CANCEL,
12173 BUILT_IN_GOMP_SECTIONS_END_CANCEL. Don't handle
12174 BUILT_IN_GOMP_PARALLEL_END.
12175 * gimple-low.c (lower_stmt): Handle GIMPLE_OMP_TASKGROUP,
12176 GIMPLE_OMP_TARGET and GIMPLE_OMP_TEAMS.
12177 * gimple-pretty-print.c (dump_gimple_omp_for): Handle
12178 GF_OMP_FOR_KIND_DISTRIBUTE.
12179 (dump_gimple_omp_target, dump_gimple_omp_teams): New functions.
12180 (dump_gimple_omp_block): Handle GIMPLE_OMP_TASKGROUP.
12181 (dump_gimple_omp_return): Print lhs if it has any.
12182 (dump_gimple_omp_atomic_load, dump_gimple_omp_atomic_store): Handle
12183 gimple_omp_atomic_seq_cst_p.
12184 (pp_gimple_stmt_1): Handle GIMPLE_OMP_TASKGROUP, GIMPLE_OMP_TARGET
12185 and GIMPLE_OMP_TEAMS.
12186 * langhooks.c (lhd_omp_mappable_type): New function.
12187 * tree-vectorizer.c (struct simd_array_to_simduid): Fix up comment.
12188 * langhooks.h (struct lang_hooks_for_types): Add omp_mappable_type
12190 * gimplify.c (enum gimplify_omp_var_data): Add GOVD_MAP,
12191 GOVD_ALIGNED and GOVD_MAP_TO_ONLY.
12192 (enum omp_region_type): Add ORT_TEAMS, ORT_TARGET_DATA and ORT_TARGET.
12193 (struct gimplify_omp_ctx): Add combined_loop field.
12194 (gimplify_call_expr, gimplify_modify_expr): Don't call fold_stmt
12195 on stmts inside of target region.
12196 (is_gimple_stmt): Return true for OMP_DISTRIBUTE and OMP_TASKGROUP.
12197 (omp_firstprivatize_variable): Handle GOVD_MAP, GOVD_ALIGNED,
12198 ORT_TARGET and ORT_TARGET_DATA.
12199 (omp_add_variable): Avoid checks on readding var for GOVD_ALIGNED.
12201 (omp_notice_threadprivate_variable): Complain about threadprivate
12202 variables in target region.
12203 (omp_notice_variable): Complain about vars with non-mappable type
12204 in target region. Handle ORT_TEAMS, ORT_TARGET and ORT_TARGET_DATA.
12205 (omp_check_private): Ignore ORT_TARGET* regions.
12206 (gimplify_scan_omp_clauses, gimplify_adjust_omp_clauses_1,
12207 gimplify_adjust_omp_clauses): Handle new OpenMP 4.0 clauses.
12208 (find_combined_omp_for): New function.
12209 (gimplify_omp_for): Handle gimplification of combined loops.
12210 (gimplify_omp_workshare): Gimplify also OMP_TARGET, OMP_TARGET_DATA,
12212 (gimplify_omp_target_update): New function.
12213 (gimplify_omp_atomic): Handle OMP_ATOMIC_SEQ_CST.
12214 (gimplify_expr): Handle OMP_DISTRIBUTE, OMP_TARGET, OMP_TARGET_DATA,
12215 OMP_TARGET_UPDATE, OMP_TEAMS, OMP_TASKGROUP.
12216 (gimplify_body): If fndecl has "omp declare target" attribute, add
12217 implicit ORT_TARGET context around it.
12218 * tree.def (OMP_DISTRIBUTE, OMP_TEAMS, OMP_TARGET_DATA, OMP_TARGET,
12219 OMP_TASKGROUP, OMP_TARGET_UPDATE): New tree codes.
12220 * tree-nested.c (convert_nonlocal_reference_stmt,
12221 convert_local_reference_stmt, convert_gimple_call): Handle
12222 GIMPLE_OMP_TARGET, GIMPLE_OMP_TEAMS and GIMPLE_OMP_TASKGROUP.
12223 * omp-builtins.def (BUILT_IN_GOMP_TASK): Use
12224 BT_FN_VOID_OMPFN_PTR_OMPCPYFN_LONG_LONG_BOOL_UINT_PTR
12225 instead of BT_FN_VOID_OMPFN_PTR_OMPCPYFN_LONG_LONG_BOOL_UINT.
12226 (BUILT_IN_GOMP_TARGET, BUILT_IN_GOMP_TARGET_DATA,
12227 BUILT_IN_GOMP_TARGET_END_DATA, BUILT_IN_GOMP_TARGET_UPDATE,
12228 BUILT_IN_GOMP_TEAMS, BUILT_IN_BARRIER_CANCEL,
12229 BUILT_IN_GOMP_LOOP_END_CANCEL,
12230 BUILT_IN_GOMP_SECTIONS_END_CANCEL, BUILT_IN_OMP_GET_TEAM_NUM,
12231 BUILT_IN_OMP_GET_NUM_TEAMS, BUILT_IN_GOMP_TASKGROUP_START,
12232 BUILT_IN_GOMP_TASKGROUP_END, BUILT_IN_GOMP_PARALLEL_LOOP_STATIC,
12233 BUILT_IN_GOMP_PARALLEL_LOOP_DYNAMIC,
12234 BUILT_IN_GOMP_PARALLEL_LOOP_GUIDED,
12235 BUILT_IN_GOMP_PARALLEL_LOOP_RUNTIME, BUILT_IN_GOMP_PARALLEL,
12236 BUILT_IN_GOMP_PARALLEL_SECTIONS, BUILT_IN_GOMP_CANCEL,
12237 BUILT_IN_GOMP_CANCELLATION_POINT): New built-ins.
12238 (BUILT_IN_GOMP_PARALLEL_LOOP_STATIC_START,
12239 BUILT_IN_GOMP_PARALLEL_LOOP_DYNAMIC_START,
12240 BUILT_IN_GOMP_PARALLEL_LOOP_GUIDED_START,
12241 BUILT_IN_GOMP_PARALLEL_LOOP_RUNTIME_START,
12242 BUILT_IN_GOMP_PARALLEL_START, BUILT_IN_GOMP_PARALLEL_END,
12243 BUILT_IN_GOMP_PARALLEL_SECTIONS_START): Remove.
12244 * tree-inline.c (remap_gimple_stmt, estimate_num_insns):
12245 Handle GIMPLE_OMP_TARGET, GIMPLE_OMP_TEAMS and GIMPLE_OMP_TASKGROUP.
12246 * gimple.c (gimple_build_omp_taskgroup, gimple_build_omp_target,
12247 gimple_build_omp_teams): New functions.
12248 (walk_gimple_op): Handle GIMPLE_OMP_TARGET, GIMPLE_OMP_TEAMS and
12249 GIMPLE_OMP_TASKGROUP. Walk optional lhs on GIMPLE_OMP_RETURN.
12250 (walk_gimple_stmt, gimple_copy): Handle GIMPLE_OMP_TARGET,
12251 GIMPLE_OMP_TEAMS and GIMPLE_OMP_TASKGROUP.
12252 * gimple.h (enum gf_mask): GF_OMP_FOR_KIND_DISTRIBUTE,
12253 GF_OMP_FOR_COMBINED, GF_OMP_FOR_COMBINED_INTO,
12254 GF_OMP_TARGET_KIND_MASK, GF_OMP_TARGET_KIND_REGION,
12255 GF_OMP_TARGET_KIND_DATA, GF_OMP_TARGET_KIND_UPDATE,
12256 GF_OMP_ATOMIC_SEQ_CST): New.
12257 (gimple_build_omp_taskgroup, gimple_build_omp_target,
12258 gimple_build_omp_teams): New prototypes.
12259 (gimple_has_substatements): Handle GIMPLE_OMP_TARGET,
12260 GIMPLE_OMP_TEAMS and GIMPLE_OMP_TASKGROUP.
12261 (gimple_omp_subcode): Use GIMPLE_OMP_TEAMS instead of
12262 GIMPLE_OMP_SINGLE as end of range.
12263 (gimple_omp_return_set_lhs, gimple_omp_return_lhs,
12264 gimple_omp_return_lhs_ptr, gimple_omp_atomic_seq_cst_p,
12265 gimple_omp_atomic_set_seq_cst, gimple_omp_for_combined_p,
12266 gimple_omp_for_set_combined_p, gimple_omp_for_combined_into_p,
12267 gimple_omp_for_set_combined_into_p, gimple_omp_target_clauses,
12268 gimple_omp_target_clauses_ptr, gimple_omp_target_set_clauses,
12269 gimple_omp_target_kind, gimple_omp_target_set_kind,
12270 gimple_omp_target_child_fn, gimple_omp_target_child_fn_ptr,
12271 gimple_omp_target_set_child_fn, gimple_omp_target_data_arg,
12272 gimple_omp_target_data_arg_ptr, gimple_omp_target_set_data_arg,
12273 gimple_omp_teams_clauses, gimple_omp_teams_clauses_ptr,
12274 gimple_omp_teams_set_clauses): New inlines.
12275 (CASE_GIMPLE_OMP): Add GIMPLE_OMP_TARGET, GIMPLE_OMP_TEAMS
12276 and GIMPLE_OMP_TASKGROUP.
12277 * tree-core.h (enum omp_clause_code): Add new OpenMP 4.0 clause codes.
12278 (enum omp_clause_depend_kind, enum omp_clause_map_kind,
12279 enum omp_clause_proc_bind_kind): New.
12280 (union omp_clause_subcode): Add depend_kind, map_kind and
12281 proc_bind_kind fields.
12282 * tree-cfg.c (make_edges): Handle GIMPLE_OMP_TARGET,
12283 GIMPLE_OMP_TEAMS and GIMPLE_OMP_TASKGROUP.
12284 * langhooks-def.h (lhd_omp_mappable_type): New prototype.
12285 (LANG_HOOKS_OMP_MAPPABLE_TYPE): Define.
12286 (LANG_HOOKS_FOR_TYPES_INITIALIZER): Add it.
12288 2013-10-10 Teresa Johnson <tejohnson@google.com>
12290 * predict.c (tree_estimate_probability): Add new parameter
12291 for estimate_bb_frequencies.
12292 (estimate_bb_frequencies): Add new parameter to force estimation.
12293 (rebuild_frequencies): When max frequency in function is small,
12294 recompute counts from frequencies.
12295 * predict.h (estimate_bb_frequencies): New parameter.
12297 2013-10-10 David Malcolm <dmalcolm@redhat.com>
12299 * ipa-inline.c (ipa_inline): Fix leak of "order" when
12300 optimizations are disabled.
12302 2013-10-10 David Malcolm <dmalcolm@redhat.com>
12304 * coverage.c (coverage_finish): Fix leak of da_file_name.
12306 2013-10-10 Jan Hubicka <jh@suse.cz>
12308 * config/i386/x86-tune.def: Enable X86_TUNE_SSE_TYPELESS_STORES
12309 for generic, enable X86_TUNE_SSE_LOAD0_BY_PXOR for Bulldozer,
12310 Bobcat and generic.
12312 2013-10-10 Jakub Jelinek <jakub@redhat.com>
12314 PR middle-end/58670
12315 * stmt.c (expand_asm_operands): Add FALLTHRU_BB argument,
12316 if any labels are in FALLTHRU_BB, use a special label emitted
12317 immediately after the asm goto insn rather than label_rtx
12319 (expand_asm_stmt): Adjust caller.
12320 * cfgrtl.c (commit_one_edge_insertion): Force splitting of
12321 edge if the last insn in predecessor is a jump with single successor,
12322 but it isn't simplejump_p.
12324 2013-10-10 Richard Biener <rguenther@suse.de>
12326 PR tree-optimization/58656
12327 * tree-ssa-pre.c (phi_translate): Do not cache failed translations.
12329 2013-10-10 Andrew MacLeod <amacleod@redhat.com>
12331 * gimplify.c: Include expr.h and tm_p.h for targets with special
12332 va-arg padding requirements.
12334 2013-10-10 Andrew MacLeod <amacleod@redhat.com>
12336 * tree-flow.h: Move some prototypes to gimple.h.
12337 (gimple_fold_indirect_ref): Move prototype to gimple-fold.h.
12338 * gimple.h: Relocate some prototypes from tree-flow.h
12339 * builtins.c (std_gimplify_va_arg_expr, build_va_arg_indirect_ref):
12340 Move to gimplify.c.
12341 * gimplify.c (gimple_fold_indirect_ref): Move to gimple-fold.c.
12342 (build_va_arg_indirect_ref): Relocate and make static.
12343 (std_gimplify_va_arg_expr): Relocate here.
12344 * gimple-fold.c (gimple_fold_indirect_ref): Relocate here.
12345 * gimple-fold.h (gimple_fold_indirect_ref): Add prototype.
12347 2013-10-10 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
12349 * doc/md.texi: Document the mnemonic attribute.
12351 2013-10-10 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
12354 * gensupport.c (gen_mnemonic_attr): Handle (set (attr x) y) and
12355 (set_attr_alternative x ...) when searching for user defined
12356 mnemonic attribute.
12358 2013-10-10 Andrew MacLeod <amacleod@redhat.com>
12360 * config/aplha/alpha.c: Add gimple-ssa.h to include list.
12362 2013-10-09 Easwaran Raman <eraman@google.com>
12364 * params.def (PARAM_MIN_SIZE_FOR_STACK_SHARING): New param...
12365 * cfgexpand.c (defer_stack_allocation): ...use here
12366 * doc/invoke.texi: Add documentation for min-size-for-stack-sharing.
12368 2013-10-09 Zhenqiang Chen <zhenqiang.chen@arm.com>
12370 * tree-ssa-phiopts.c (rhs_is_fed_for_value_replacement): New function.
12371 (operand_equal_for_value_replacement): New function, extracted from
12372 value_replacement and enhanced to catch more cases.
12373 (value_replacement): Use operand_equal_for_value_replacement.
12375 2013-10-09 Andrew MacLeod <amacleod@redhat.com>
12377 * loop-doloop.c (doloop_modify, doloop_optimize): Use
12378 get_max_loop_iterations.
12380 2013-10-09 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
12382 * config/arm/aarch-common.c (arm_early_load_addr_dep):
12383 Place comment above function.
12385 2013-10-09 Andrew MacLeod <amacleod@redhat.com>
12387 * tree-flow.h: Remove all remaining prototypes, enums and structs that
12388 are not related to tree-cfg.c.
12389 * tree-ssa-address.h: New file. Relocate prototypes.
12390 * tree-ssa-address.c: (struct mem_address): Relocate from tree-flow.h.
12391 (addr_for_mem_ref): New. Combine call to get_address_description and
12392 return addr_for_mem_ref.
12393 * expr.c (expand_expr_real_1): Use new addr_for_mem_ref routine.
12394 * tree-ssa-live.h: Adjust prototypes.
12395 * passes.c: Include tree-ssa-live.h.
12396 * gimple-pretty-print.h (gimple_dump_bb): Add prototype.
12397 * graphite.c (graphite_transform_loops): Make static.
12398 (graphite_transforms, gate_graphite_transforms, pass_data_graphite,
12399 make_pass_graphite, pass_data_graphite_transforms,
12400 make_pass_graphite_transforms): Relocate here from tree-ssa-loop.c.
12401 * ipa-pure-const.c (warn_function_noreturn): Make static.
12402 (execute_warn_function_noreturn, gate_warn_function_noreturn,
12403 class pass_warn_function_noreturn, make_pass_warn_function_noreturn):
12404 Relocate from tree-cfg.c
12405 * tree-cfg.c (tree_node_can_be_shared, gimple_empty_block_p): Make
12407 (execute_warn_function_noreturn, gate_warn_function_noreturn,
12408 class pass_warn_function_noreturn, make_pass_warn_function_noreturn):
12409 Move to ipa-pure-const.c.
12410 (execute_fixup_cfg, class pass_fixup_cfg, make_pass_fixup_cfg):
12411 Relocate from tree-optimize.c.
12412 * tree-optimize.c (execute_fixup_cfg, class pass_fixup_cfg,
12413 make_pass_fixup_cfg): Move to tree-cfg.c.
12414 * tree-chrec.h: (enum ev_direction): Relocate here from tree-flow.h.
12415 Relocate some prototypes.
12416 * tree-data-ref.h (tree_check_data_deps) Add prototype.
12417 * tree-dump.c (dump_function_to_file): Remove prototype.
12418 Add tree-flow.h to the include file.
12419 * tree-dump.h: Remove prototype.
12420 * tree-parloops.h: New File. Add prototypes.
12421 * tree-parloops.c (gate_tree_parallelize_loops, tree_parallelize_loops,
12422 pass_data_parallelize_loops, make_pass_parallelize_loops): Relocate
12423 from tree-ssa-loop.c.
12424 * tree-predcom.c (run_tree_predictive_commoning,
12425 gate_tree_predictive_commoning, pass_data_predcom, make_pass_predcom):
12426 Relocate here from tree-ssa-loop.c.
12427 * tree-ssa-dom.c (tree_ssa_dominator_optimize) Don't call
12428 ssa_name_values.release ().
12429 * tree-ssa-threadedge.h: New File. Relocate prototypes here.
12430 (ssa_name_values): Relocate from tree-flow.h.
12431 * tree-ssa.h: Include tree-ssa-threadedge.h and tree-ssa-address.h.
12432 * tree-ssa-loop.c (run_tree_predictive_commoning,
12433 gate_tree_predictive_commoning, pass_data_predcom, make_pass_predcom,
12434 graphite_transforms, gate_graphite_transforms, pass_data_graphite,
12435 make_pass_graphite, pass_data_graphite_transforms,
12436 make_pass_graphite_transforms, gate_tree_parallelize_loops,
12437 tree_parallelize_loops, pass_data_parallelize_loops,
12438 make_pass_parallelize_loops): Move to other files.
12439 * tree-vectorizer.h (lpeel_tree_duplicate_loop_to_edge_cfg): Prototype
12441 * tree.h: Remove prototypes from tree-address.c.
12443 2013-10-09 Andrew MacLeod <amacleod@redhat.com>
12445 * tree-flow.h (tm_restart_node, gimple_df): Move to gimple-ssa.h.
12446 (struct int_tree_map): Move to tree-hasher.h
12447 (SCALE, LABEL, PERCENT): Move to gimple.h
12448 * tree-flow-inline.h: Delete. Move functions to other files.
12449 (unmodifiable_var_p, ref_contains_array_ref): Unused, so delete.
12450 * gimple-ssa.h (tm_restart_node, gimple_df): Relocate from tree-flow.h.
12451 (gimple_in_ssa_p, gimple_vop): Relocate from tree-flow-inline.h
12452 * gimple.h (imple_stmt_max_uid, set_gimple_stmt_max_uid,
12453 inc_gimple_stmt_max_uid, get_lineno): Relocate from tree-flow-inline.h.
12454 (SCALE, LABEL, PERCENT): Relocate from tree-flow.h
12455 * tree-hasher.h: Don't include tree-flow.h.
12456 (struct int_tree_map): Relocate from tree-flow.h.
12457 * tree-sra.c (contains_view_convert_expr_p): Relocate from
12458 tree-flow-inline.h and make static.
12459 * tree-ssa-alias.h (ranges_overlap_p): Relocate from
12460 tree-flow-inline.h.
12461 * tree-ssa-operands.c (gimple_ssa_operands): Relocate from
12462 tree-flow-inline.h and make static.
12463 * tree.h (is_global_var, may_be_aliased): Relocate from
12464 tree-flow-inline.h.
12465 * Makefile.in (GTFILES): Remove tree-flow.h and add gimple-ssa.h.
12466 * value-prof.c: No longer include tree-flow-inline.h.
12467 * tree-switch-conversion.c: No longer include tree-flow-inline.h.
12469 2013-10-09 Andrew MacLeod <amacleod@redhat.com>
12471 * tree-flow.h: Move some protoypes. Include new tree-ssa-loop.h.
12472 (struct affine_iv, struct tree_niter_desc): Move to tree-ssa-loop.h.
12473 (enum move_pos): Move to tree-ssa-loop-im.h
12474 * cfgloop.h: Move some prototypes.
12475 (gcov_type_to_double_int): relocate from tree-ssa-loop.niter.c.
12476 * tree-flow-inline.h (loop_containing_stmt): Move to tree-ssa-loop.h.
12477 * tree-ssa-loop.h: New File. Include other tree-ssa-loop-*.h files.
12478 (struct affine_iv, struct tree_niter_desc): Relocate from tree-flow.h.
12479 (loop_containing_stmt): Relocate from tree-flow-inline.h.
12480 * tree-ssa-loop-ch.c: (do_while_loop_p): Make static.
12481 * tree-ssa-loop-im.c (for_each_index): Move to tree-ssa-loop.c.
12482 (enum move_pos): Relocate here.
12483 (lsm_tmp_name_add, gen_lsm_tmp_name, get_lsm_tmp_name): Move to
12485 (execute_sm_if_changed_flag_set): Change get_lsm_tmp_name call.
12486 (tree_ssa_loop_im, gate_tree_ssa_loop_im, pass_data_lim,
12487 make_pass_lim): Relocate here from tree-ssa-loop.c.
12488 * tree-ssa-loop-ivcanon.c (tree_num_loop_insns): Move to
12490 (loop_edge_to_cancel, unloop_loops): Make static.
12491 (tree_ssa_loop_ivcanon, gate_tree_ssa_loop_ivcanon, pass_data_iv_canon,
12492 make_pass_iv_canon): Relocate from tree-ssa-loop.c.
12493 (tree_complete_unroll, gate_tree_complete_unroll,
12494 pass_data_complete_unroll, make_pass_complete_unroll): Relocate here.
12495 (tree_complete_unroll_inner, gate_tree_complete_unroll_inner,
12496 pass_data_complete_unrolli, make_pass_complete_unrolli): Relocate here.
12497 * tree-ssa-loop-ivopts.c: Remove local prototypes.
12498 (stmt_invariant_in_loop_p): Remove unused function.
12499 * tree-ssa-loop-ivopts.h: New file. Add prototypes.
12500 * tree-ssa-loop-manip.h: New file. Add prototypes.
12501 * tree-ssa-loop-niter.c (record_niter_bound): Move to cfgloop.c.
12502 (gcov_type_to_double_int): Move to cfgloop.h.
12503 (double_int_cmp, bound_index,
12504 estimate_numbers_of_iterations_loop): Make static.
12505 (estimated_loop_iterations): Factor out get_estimated_loop_iterations.
12506 (max_loop_iterations): Factor out get_max_loop_iterations.
12507 (estimated_loop_iterations_int, max_stmt_executions_int): Move to
12509 * tree-ssa-loop-niter.h: New file. Add prototypes.
12510 * tree-ssa-loop-prefetch.c (tree_ssa_loop_prefetch,
12511 gate_tree_ssa_loop_prefetch, pass_data_loop_prefetch,
12512 make_pass_loop_prefetch): Relocate from tree-ssa-loop.c.
12513 * tree-ssa-loop-unswitch.c (tree_ssa_loop_unswitch,
12514 gate_tree_ssa_loop_unswitch, pass_data_tree_unswitch,
12515 make_pass_tree_unswitch): Relocate from tree-ssa-loop.c.
12516 * tree-ssa-loop.c (tree_ssa_loop_im, gate_tree_ssa_loop_im,
12517 pass_data_lim, make_pass_lim): Move to tree-ssa-loop-im.c.
12518 (tree_ssa_loop_unswitch, gate_tree_ssa_loop_unswitch,
12519 pass_data_tree_unswitch, make_pass_tree_unswitch): Move.
12520 (tree_ssa_loop_ivcanon, gate_tree_ssa_loop_ivcanon, pass_data_iv_canon,
12521 make_pass_iv_canon, tree_complete_unroll, gate_tree_complete_unroll,
12522 pass_data_complete_unroll, make_pass_complete_unroll,
12523 tree_complete_unroll_inner, gate_tree_complete_unroll_inner,
12524 pass_data_complete_unrolli, make_pass_complete_unrolli): Move to
12525 tree-ssa-loop-ivcanon.c.
12526 (tree_ssa_loop_prefetch, gate_tree_ssa_loop_prefetch,
12527 pass_data_loop_prefetch, make_pass_loop_prefetch): Move to
12528 tree-ssa-loop-prefetch.c.
12529 (for_each_index, lsm_tmp_name_add, gen_lsm_tmp_name): Relocate from
12530 tree-ssa-loop-im.c.
12531 (get_lsm_tmp_name): Relocate and add suffix parameter.
12532 (tree_num_loop_insns): Relocate from tree-ssa-ivcanon.c.
12533 * tree-scalar-evolution.h (simple_iv): Don't use affive_iv typedef.
12534 * cfgloop.c (record_niter_bound, estimated_loop_iterations_int,
12535 max_stmt_executions_int): Move from tree-ssa-loop-niter.c.
12536 (get_estimated_loop_iterations): Factor out accessor from
12537 estimated_loop_iterations in tree-ssa-loop-niter.c.
12538 (get_max_loop_iterations): Factor out accessor from
12539 _max_loop_iterations in tree-ssa-niter.c.
12540 * loop-unroll.c (decide_unroll_constant_iterations,
12541 decide_unroll_runtime_iterations, decide_peel_simple,
12542 decide_unroll_stupid): Use new get_* accessors.
12544 2013-10-09 Marc Glisse <marc.glisse@inria.fr>
12546 PR tree-optimization/20318
12547 * doc/extend.texi (returns_nonnull): New function attribute.
12548 * fold-const.c (tree_expr_nonzero_warnv_p): Look for returns_nonnull
12550 * tree-vrp.c (gimple_stmt_nonzero_warnv_p): Likewise.
12551 (stmt_interesting_for_vrp): Accept all GIMPLE_CALL.
12553 2013-10-09 Eric Botcazou <ebotcazou@adacore.com>
12555 PR middle-end/58570
12556 * tree-ssa-alias.c (nonoverlapping_component_refs_of_decl_p): Return
12557 false if both components are bitfields.
12559 2013-10-09 Alex Velenko <Alex.Velenko@arm.com>
12561 * config/aarch64/arm_neon.h (vclz_s8, vclz_s16, vclz_s32)
12562 (vclzq_s8, vclzq_s16, vclzq_s32, vclz_u8, vclz_u16, vclz_u32)
12563 (vclzq_u8, vclzq_u16, vclzq_u32): Replace ASM with C.
12564 * config/aarch64/aarch64.h
12565 (CLZ_DEFINED_VALUE_AT_ZERO): Macro fixed for clz.
12566 * config/aarch64/aarch64-simd-builtins.def
12567 (VAR1 (UNOP, clz, 0, v4si)): Replaced with iterator.
12569 2013-10-09 Alex Velenko <Alex.Velenko@arm.com>
12571 * config/aarch64/arm_neon.h (vadd_f64, vsub_f64): Implementation added.
12573 2013-10-09 Alex Velenko <Alex.Velenko@arm.com>
12575 * config/aarch64/arm_neon.h (vdiv_f64): Added.
12577 2013-10-09 Alex Velenko <Alex.Velenko@arm.com>
12579 * config/aarch64/arm_neon.h (vneg_f32): Asm replaced with C.
12580 (vneg_f64): New intrinsic.
12581 (vneg_s8): Asm replaced with C.
12582 (vneg_s16): Likewise.
12583 (vneg_s32): Likewise.
12584 (vneg_s64): New intrinsic.
12585 (vnegq_f32): Asm replaced with C.
12586 (vnegq_f64): Likewise.
12587 (vnegq_s8): Likewise.
12588 (vnegq_s16): Likewise.
12589 (vnegq_s32): Likewise.
12590 (vnegq_s64): Likewise.
12592 2013-10-09 Renlin Li <Renlin.Li@arm.com>
12594 * config/arm/arm.c (arm_output_mi_thunk): Use plus_constant.
12596 2013-10-09 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
12598 * config/s390/s390.c (s390_register_info_stdarg_fpr): Remove
12599 packed stack special handling.
12600 (s390_frame_info, s390_emit_prologue, s390_emit_epilogue): Switch
12601 back to fixed stack slots for FPRs saved due to stdarg.
12603 2013-10-09 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
12605 * config/s390/s390.c (s390_frame_info): Restructure function.
12607 2013-10-09 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
12609 * config/s390/s390.c (struct s390_frame_layout): New field
12611 (cfun_save_arg_fprs_p, cfun_gpr_save_slot): New macros.
12612 (s390_reg_clobbered_rtx, s390_regs_ever_clobbered): Change type of
12613 regs_ever_clobbered to char*.
12614 (s390_regs_ever_clobbered): Check crtl->saves_all_registers instead
12615 of cfun->has_nonlocal_label. Ignore frame related restore INSNs.
12616 (s390_register_info): Enable FPR save slots. Move/Copy some
12617 functionality into ...
12618 (s390_register_info_gprtofpr, s390_register_info_stdarg_fpr)
12619 (s390_register_info_stdarg_gpr, s390_optimize_register_info): New
12621 (s390_frame_info): Do gpr slot allocation here now. stdarg does
12622 not imply a stack frame.
12623 (s390_init_frame_layout): Remove variable clobbered_regs.
12624 (s390_update_register_info): Remove function.
12625 (s390_hard_regno_rename_ok): Call-saved regs without a save slot
12626 cannot be used for register renaming.
12627 (s390_hard_regno_scratch_ok): New function.
12628 (TARGET_HARD_REGNO_SCRATCH_OK): Define target hook.
12629 (s390_initial_elimination_offset): Change offset calculation of
12630 the return address pointer.
12631 (save_gprs): Deal with only r6 being saved from the call-saved regs.
12632 (restore_gprs): Set frame related flag.
12633 (s390_save_gprs_to_fprs, s390_restore_gprs_from_fprs): New functions.
12634 (s390_emit_prologue): Call s390_register_info instead of
12635 s390_update_frame_layout. Call s390_save_gprs_to_fprs.
12636 (s390_emit_epilogue): Call s390_restore_gprs_from_fprs.
12637 (s390_optimize_prologue): Call s390_optimize_register_info.
12638 Try to remove also FPR slot save/restore INSNs. Remove frame
12639 related flags from restore INSNs.
12641 2013-10-08 DJ Delorie <dj@redhat.com>
12643 * config/rl78/rl78-expand.md (movqi): use operands[] not operandN.
12646 * config/rl78/rl78.c (rl78_print_operand_1): Change %c to %C to
12647 avoid conflict with the MI use of %c.
12648 * config/rl78/rl78-real.md: change %c to %C throughout.
12649 * config/rl78/rl78-virt.md: Likewise.
12651 2013-10-08 Jan Hubicka <jh@suse.cz>
12653 * config/i386/i386.c (ix86_option_override_internal): Switch
12654 to SSE math for -ffast-math when target ISA supports SSE2.
12656 2013-10-08 Andrew MacLeod <amacleod@redhat.com>
12658 * tree-flow.h: Remove some prototypes.
12659 * tree.h: Remove some protypes, add a couple.
12660 * tree.c (using_eh_for_cleanups_flag, using_eh_for_cleanups,
12661 using_eh_for_cleanups_p): Add interface routines for front ends.
12662 * tree-eh.h: New file. Add protoptyes.
12663 * tree-eh.c (using_eh_for_cleanups_p, using_eh_for_cleanups): Delete.
12664 (add_stmt_to_eh_lp_fn): Make static.
12665 (lower_try_finally): Use new using_eh_for_cleanups_p.
12666 * emit-rtl.c: Include tree-eh.h.
12667 * gimple.h: Include tree-eh.h.
12669 2013-10-08 Marc Glisse <marc.glisse@inria.fr>
12671 PR tree-optimization/58480
12672 * tree-vrp.c (infer_nonnull_range): New function.
12673 (infer_value_range): Call infer_nonnull_range.
12675 2013-10-08 Dehao Chen <dehao@google.com>
12677 PR tree-optimization/58619
12678 * tree-inline.c (copy_phis_for_bb): Combine location data
12681 2013-10-08 Zhenqiang Chen <zhenqiang.chen@linaro.org>
12684 * config/arm/arm.c (arm_emit_ldrd_pop): Attach
12685 RTX_FRAME_RELATED_P on INSN.
12687 2013-10-07 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
12689 * config/rs6000/rs6000.c (altivec_expand_vec_perm_const_le): New.
12690 (altivec_expand_vec_perm_const): Call it.
12692 2013-10-07 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
12694 * config/rs6000/vector.md (mov<mode>): Emit permuted move
12695 sequences for LE VSX loads and stores at expand time.
12696 * config/rs6000/rs6000-protos.h (rs6000_emit_le_vsx_move): New
12698 * config/rs6000/rs6000.c (rs6000_const_vec): New.
12699 (rs6000_gen_le_vsx_permute): New.
12700 (rs6000_gen_le_vsx_load): New.
12701 (rs6000_gen_le_vsx_store): New.
12702 (rs6000_gen_le_vsx_move): New.
12703 * config/rs6000/vsx.md (*vsx_le_perm_load_v2di): New.
12704 (*vsx_le_perm_load_v4si): New.
12705 (*vsx_le_perm_load_v8hi): New.
12706 (*vsx_le_perm_load_v16qi): New.
12707 (*vsx_le_perm_store_v2di): New.
12708 (*vsx_le_perm_store_v4si): New.
12709 (*vsx_le_perm_store_v8hi): New.
12710 (*vsx_le_perm_store_v16qi): New.
12711 (*vsx_xxpermdi2_le_<mode>): New.
12712 (*vsx_xxpermdi4_le_<mode>): New.
12713 (*vsx_xxpermdi8_le_V8HI): New.
12714 (*vsx_xxpermdi16_le_V16QI): New.
12715 (*vsx_lxvd2x2_le_<mode>): New.
12716 (*vsx_lxvd2x4_le_<mode>): New.
12717 (*vsx_lxvd2x8_le_V8HI): New.
12718 (*vsx_lxvd2x16_le_V16QI): New.
12719 (*vsx_stxvd2x2_le_<mode>): New.
12720 (*vsx_stxvd2x4_le_<mode>): New.
12721 (*vsx_stxvd2x8_le_V8HI): New.
12722 (*vsx_stxvd2x16_le_V16QI): New.
12724 2013-10-07 Renlin Li <Renlin.Li@arm.com>
12726 * config/arm/arm-cores.def (cortex-a53): Use cortex tuning.
12728 2013-10-07 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
12730 * config/s390/s390.c (s390_register_info): Make the call-saved FPR
12731 loop to work also for 31bit ABI.
12732 Save the stack pointer for frame_size > 0.
12734 2013-10-07 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
12736 * config/s390/s390.md ("tbegin", "tbegin_nofloat", "tbegin_retry")
12737 ("tbegin_retry_nofloat", "tend", "tabort", "tx_assist"): Remove
12738 constraint letters from expanders.
12739 ("tbegin_retry", "tbegin_retry_nofloat"): Change predicate of the
12740 retry count to general_operand.
12741 ("tabort"): Give operand 0 a mode.
12742 ("tabort_1"): Add mode and constraint letter for operand 0.
12743 * doc/extend.texi: Fix protoype of __builtin_non_tx_store.
12745 2013-10-04 Jeff Law <law@redhat.com>
12747 * tree-ssa-threadedge.c: Fix some trailing whitespace problems.
12749 * tree-ssa-threadedge.c (thread_through_normal_block): Broken
12751 (thread_across_edge): Here. Call it.
12753 2013-10-04 Cary Coutant <ccoutant@google.com>
12755 * dwarf2out.c (dw_sra_loc_expr): Release addr_table entries when
12756 discarding a location list expression (or a piece of one).
12758 2013-10-03 Jan Hubicka <jh@suse.cz>
12760 * config/i386/i386.c (ix86_issue_rate): Pentium4, Nocona has issue
12761 rate of 2. Core2, Corei7 and Haswell has issue rate of 4.
12762 (ix86_adjust_cost): Remove Atom case; fix core2/corei7/Haswell case.
12764 2013-10-03 Jan Hubicka <jh@suse.cz>
12766 * config/i386/i386.c (ix86_option_override_internal): Do not enable
12767 accumulate-outgoing-args when producing unwind info.
12769 2013-10-03 Wei Mi <wmi@google.com>
12771 * lra-constraints.c (insert_move_for_subreg): New function
12772 extracted from simplify_operand_subreg.
12773 (simplify_operand_subreg): Add reload for paradoxical subreg.
12775 2013-10-03 Rong Xu <xur@google.com>
12777 * ipa-inline-analysis.c (find_foldable_builtin_expect): Find
12778 the candidate of builtin_expect such that we should fix the
12779 size/time estimation.
12780 (estimate_function_body_sizes): Do the acutally size/time fix-up
12781 for builtin_expect.
12783 2013-10-03 Rong Xu <xur@google.com>
12785 * predict.c (tree_predict_by_opcode): Get the probability
12786 for builtin_expect from param builtin_expect_probability.
12787 * params.def (BUILTIN_EXPECT_PROBABILITY): New parameter.
12788 * predict.def (PRED_BUILTIN_EXPECT_RELAXED): Fix comments.
12789 * doc/invoke.texi: Add documentation for builtin-expect-probability.
12791 2013-10-03 Marc Glisse <marc.glisse@inria.fr>
12794 * common.opt (fcheck-new): Moved from c.opt. Make it 'Common'.
12795 * calls.c (alloca_call_p): Use get_callee_fndecl.
12796 * fold-const.c (tree_expr_nonzero_warnv_p): Handle operator new.
12797 * tree-vrp.c (gimple_stmt_nonzero_warnv_p, stmt_interesting_for_vrp):
12799 (vrp_visit_stmt): Remove duplicated code.
12801 2013-10-03 Michael Meissner <meissner@linux.vnet.ibm.com>
12803 * config/rs6000/rs6000-builtin.def (XSRDPIM): Use floatdf2,
12804 ceildf2, btruncdf2, instead of vsx_* name.
12806 * config/rs6000/vsx.md (vsx_add<mode>3): Change arithmetic
12807 iterators to only do V2DF and V4SF here. Move the DF code to
12808 rs6000.md where it is combined with SF mode. Replace <VSv> with
12809 just 'v' since only vector operations are handled with these insns
12810 after moving the DF support to rs6000.md.
12811 (vsx_sub<mode>3): Likewise.
12812 (vsx_mul<mode>3): Likewise.
12813 (vsx_div<mode>3): Likewise.
12814 (vsx_fre<mode>2): Likewise.
12815 (vsx_neg<mode>2): Likewise.
12816 (vsx_abs<mode>2): Likewise.
12817 (vsx_nabs<mode>2): Likewise.
12818 (vsx_smax<mode>3): Likewise.
12819 (vsx_smin<mode>3): Likewise.
12820 (vsx_sqrt<mode>2): Likewise.
12821 (vsx_rsqrte<mode>2): Likewise.
12822 (vsx_fms<mode>4): Likewise.
12823 (vsx_nfma<mode>4): Likewise.
12824 (vsx_copysign<mode>3): Likewise.
12825 (vsx_btrunc<mode>2): Likewise.
12826 (vsx_floor<mode>2): Likewise.
12827 (vsx_ceil<mode>2): Likewise.
12828 (vsx_smaxsf3): Delete scalar ops that were moved to rs6000.md.
12829 (vsx_sminsf3): Likewise.
12830 (vsx_fmadf4): Likewise.
12831 (vsx_fmsdf4): Likewise.
12832 (vsx_nfmadf4): Likewise.
12833 (vsx_nfmsdf4): Likewise.
12834 (vsx_cmpdf_internal1): Likewise.
12836 * config/rs6000/rs6000.h (TARGET_SF_SPE): Define macros to make it
12837 simpler to select whether a target has SPE or traditional floating
12838 point support in iterators.
12839 (TARGET_DF_SPE): Likewise.
12840 (TARGET_SF_FPR): Likewise.
12841 (TARGET_DF_FPR): Likewise.
12842 (TARGET_SF_INSN): Macros to say whether floating point support
12843 exists for a given operation for expanders.
12844 (TARGET_DF_INSN): Likewise.
12846 * config/rs6000/rs6000.c (Ftrad): New mode attributes to allow
12847 combining of SF/DF mode operations, using both traditional and VSX
12855 (abs<mode>2): Combine SF/DF modes using traditional floating point
12856 instructions. Add support for using the upper DF registers with
12857 VSX support, and SF registers with power8-vector support. Update
12858 expanders for operations supported by both the SPE and traditional
12859 floating point units.
12860 (abs<mode>2_fpr): Likewise.
12861 (nabs<mode>2): Likewise.
12862 (nabs<mode>2_fpr): Likewise.
12863 (neg<mode>2): Likewise.
12864 (neg<mode>2_fpr): Likewise.
12865 (add<mode>3): Likewise.
12866 (add<mode>3_fpr): Likewise.
12867 (sub<mode>3): Likewise.
12868 (sub<mode>3_fpr): Likewise.
12869 (mul<mode>3): Likewise.
12870 (mul<mode>3_fpr): Likewise.
12871 (div<mode>3): Likewise.
12872 (div<mode>3_fpr): Likewise.
12873 (sqrt<mode>3): Likewise.
12874 (sqrt<mode>3_fpr): Likewise.
12875 (fre<Fs>): Likewise.
12876 (rsqrt<mode>2): Likewise.
12877 (cmp<mode>_fpr): Likewise.
12878 (smax<mode>3): Likewise.
12879 (smin<mode>3): Likewise.
12880 (smax<mode>3_vsx): Likewise.
12881 (smin<mode>3_vsx): Likewise.
12882 (negsf2): Delete SF operations that are merged with DF.
12883 (abssf2): Likewise.
12884 (addsf3): Likewise.
12885 (subsf3): Likewise.
12886 (mulsf3): Likewise.
12887 (divsf3): Likewise.
12889 (fmasf4_fpr): Likewise.
12890 (fmssf4_fpr): Likewise.
12891 (nfmasf4_fpr): Likewise.
12892 (nfmssf4_fpr): Likewise.
12893 (sqrtsf2): Likewise.
12894 (rsqrtsf_internal1): Likewise.
12895 (smaxsf3): Likewise.
12896 (sminsf3): Likewise.
12897 (cmpsf_internal1): Likewise.
12898 (copysign<mode>3_fcpsgn): Add VSX/power8-vector support.
12899 (negdf2): Delete DF operations that are merged with SF.
12900 (absdf2): Likewise.
12901 (nabsdf2): Likewise.
12902 (adddf3): Likewise.
12903 (subdf3): Likewise.
12904 (muldf3): Likewise.
12905 (divdf3): Likewise.
12907 (rsqrtdf_internal1): Likewise.
12908 (fmadf4_fpr): Likewise.
12909 (fmsdf4_fpr): Likewise.
12910 (nfmadf4_fpr): Likewise.
12911 (nfmsdf4_fpr): Likewise.
12912 (sqrtdf2): Likewise.
12913 (smaxdf3): Likewise.
12914 (smindf3): Likewise.
12915 (cmpdf_internal1): Likewise.
12916 (lrint<mode>di2): Use TARGET_<MODE>_FPR macro.
12917 (btrunc<mode>2): Delete separate expander, and combine with the
12918 insn and add VSX instruction support. Use TARGET_<MODE>_FPR.
12919 (btrunc<mode>2_fpr): Likewise.
12920 (ceil<mode>2): Likewise.
12921 (ceil<mode>2_fpr): Likewise.
12922 (floor<mode>2): Likewise.
12923 (floor<mode>2_fpr): Likewise.
12924 (fma<mode>4_fpr): Combine SF and DF fused multiply/add support.
12925 Add support for using the upper registers with VSX and
12926 power8-vector. Move insns to be closer to the define_expands. On
12927 VSX systems, prefer the traditional form of FMA over the VSX
12928 version, since the traditional form allows the target not to
12929 overlap with the inputs.
12930 (fms<mode>4_fpr): Likewise.
12931 (nfma<mode>4_fpr): Likewise.
12932 (nfms<mode>4_fpr): Likewise.
12934 2013-10-03 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
12935 Richard Earnshaw <richard.earnshaw@arm.com>
12937 * config/arm/aarch-common-protos.h (struct alu_cost_table): New.
12938 (struct mult_cost_table): Likewise.
12939 (struct mem_cost_table): Likewise.
12940 (struct fp_cost_table): Likewise.
12941 (struct vector_cost_table): Likewise.
12942 (cpu_cost_table): Likewise.
12943 * config/arm/arm.opt (mold-rts-costs): New option.
12944 (mnew-generic-costs): Likewise.
12945 * config/arm/arm.c (generic_extra_costs): New table.
12946 (cortexa15_extra_costs): Likewise.
12947 (arm_slowmul_tune): Use NULL as new costs.
12948 (arm_fastmul_tune): Likewise.
12949 (arm_strongarm_tune): Likewise.
12950 (arm_xscale_tune): Likewise.
12951 (arm_9e_tune): Likewise.
12952 (arm_v6t2_tune): Likewise.
12953 (arm_cortex_a5_tune): Likewise.
12954 (arm_cortex_a9_tune): Likewise.
12955 (arm_v6m_tune): Likewise.
12956 (arm_fa726te_tune): Likewise.
12957 (arm_cortex_a15_tune): Use cortex15_extra_costs.
12958 (arm_cortex_tune): Use generict_extra_costs.
12959 (shifter_op_p): New function.
12960 (arm_unspec_cost): Likewise.
12961 (LIBCALL_COST): Define.
12962 (arm_new_rtx_costs): New function.
12963 (arm_rtx_costs): Use arm_new_rtx_costs when core-specific
12964 table is available. Use old costs otherwise unless mnew-generic-costs
12966 * config/arm/arm-protos.h (tune_params): Add insn_extra_cost field.
12967 (cpu_cost_table): Declare.
12969 2013-10-03 Marcus Shawcroft <marcus.shawcroft@arm.com>
12972 * config/aarch64/aarch64.md (*adds_mul_imm_<mode>)
12973 (*subs_mul_imm_<mode>)
12974 (*add_<shift>_<mode>, *add_<shift>_si_uxtw,*add_mul_imm_<mode>)
12975 (*sub_<shift>_<mode>)
12976 (*sub_<shift>_si_uxtw,*sub_mul_imm_<mode>, *sub_mul_imm_si_uxtw):
12977 Remove k constraint.
12979 2013-10-03 Ian Bolton <ian.bolton@arm.com>
12981 * config/aarch64/aarch64.c (aarch64_secondary_reload): Remove legacy
12983 * config/aarch64/aarch64.md (reload_sp_immediate): Likewise.
12985 2013-10-02 Teresa Johnson <tejohnson@google.com>
12987 * predict.c (probably_never_executed): New function.
12988 (probably_never_executed_bb_p): Invoke probably_never_executed.
12989 (probably_never_executed_edge_p): Ditto.
12990 * bb-reorder.c (find_rarely_executed_basic_blocks_and_crossing_edges):
12991 Treat profile insanities conservatively.
12993 2013-10-02 John David Anglin <danglin@gcc.gnu.org>
12995 * config.gcc (hppa*64*-*-linux*): Don't add pa/t-linux to tmake_file.
12997 2013-10-02 Vladimir Makarov <vmakarov@redhat.com>
12999 * lra-constraints.c (process_alt_operand): Calculate scratch_p and
13000 use it. Use smaller increase for scratch. Don't increase reject
13001 for early clobber scratch.
13002 * lra-eliminations.c (eliminate_regs_in_insn): Remove all insns
13003 setting eliminated regs except setting fp from hfp.
13004 (lra_eliminate): Check lra_insn_recog_data on NULL.
13006 2013-10-02 Michael Meissner <meissner@linux.vnet.ibm.com>
13009 * config/rs6000/rs6000-cpus.def (ISA_2_6_MASKS_SERVER): Turn off
13010 setting -mvsx-timode by default until the underlying problem is fixed.
13011 (RS6000_CPU, power7 defaults): Likewise.
13013 2013-10-02 Uros Bizjak <ubizjak@gmail.com>
13015 * config/x-linux (host-linux.o): Remove header dependencies.
13016 Use $(COMPILE) and $(POSTCOMPILE).
13017 * config/t-linux-android (linux-android.o): Ditto.
13019 2013-10-02 Uros Bizjak <ubizjak@gmail.com>
13021 * Makefile.in (expmed.o-warn): Remove.
13023 2013-10-02 Andrew MacLeod <amacleod@redhat.com>
13025 * graphite-scop-detection.c: Include tree-ssa-propagate,h.
13026 * graphite-sese-to-poly.c: Include tree-ssa-propagate.h.
13028 2013-10-02 Teresa Johnson <tejohnson@google.com>
13030 * dojump.c (do_jump_1): Divide probability between
13031 both conditions of a TRUTH_ANDIF_EXPR/TRUTH_ORIF_EXPR.
13033 2013-10-02 Tom Tromey <tromey@redhat.com>
13035 * Makefile.in (DRIVER_DEFINES): Use $(if), not $(and).
13037 2013-10-02 Andrew MacLeod <amacleod@redhat.com>
13039 * tree-flow.h: Remove some prototypes.
13040 * tree-ssa-dce.c (mark_virtual_operand_for_renaming,
13041 mark_virtual_phi_result_for_renaming): Move to tree-into-ssa.c.
13042 * tree-into-ssa.c (mark_virtual_operand_for_renaming,
13043 mark_virtual_phi_result_for_renaming): Relocate here.
13044 * tree-into-ssa.h: Add prototypes.
13045 * tree-ssa-phiopt.c: (tree_ssa_phiopt_worker) Use
13046 single_pred_before_succ_order.
13047 (blocks_in_phiopt_order): Rename and move to cfganal.c.
13048 (nonfreeing_call_p) Move to gimple.c.
13049 * cfganal.c (single_pred_before_succ_order): Move and renamed from
13051 * basic-block.h (single_pred_before_succ_order): Add prototype.
13052 * gimple.c (nonfreeing_call_p): Relocate here.
13053 * gimple.h: Add prototype.
13054 * tree-ssa-ifcombine.c: Include tree-ssa-phiopt.h.
13055 * tree-ssa-dom.h: New file. Relocate prototypes here.
13056 * tree-ssa.h: Include tree-ssa-dom.h.
13058 2013-10-02 Uros Bizjak <ubizjak@gmail.com>
13060 * config/i386/x-i386 (driver-i386.o): Remove header dependencies.
13061 Use $(COMPILE) and $(POSTCOMPILE).
13063 * config/alpha/x-alpha (driver-alpha.o): Ditto.
13065 2013-10-02 Andrew MacLeod <amacleod@redhat.com>
13067 * tree-flow.h: Remove some prototypes.
13068 * gimple-fold.h: Add prototypes from gimple.h and tree-flow.h.
13069 * tree-ssa-propagate.h: Relocate prototypes from tree-flow.h.
13070 * tree-ssa-copy.c (may_propagate*, propagate_value, replace_exp,
13071 propagate_tree_value*): Move from here to...
13072 * tree-ssa-propagate.c (may_propagate*, propagate_value, replace_exp,
13073 propagate_tree_value*): Relocate here.
13074 * tree-ssa-propagate.h: Relocate prototypes from tree-flow.h.
13075 * gimple.h: Include gimple-fold.h, move prototypes into gimple-fold.h.
13076 * gimple-fold.c: Remove gimple-fold.h from include list.
13077 * tree-vrp.c: Remove gimple-fold.h from include list.
13078 * tree-ssa-sccvn.c: Remove gimple-fold.h from include list.
13079 * tree-ssa-ccp.c: Remove gimple-fold.h from include list.
13080 * tree-scalar-evolution.c: Add tree-ssa-propagate.h to include list.
13081 * tree-ssa-pre.c: Add tree-ssa-propagate.h to include list.
13082 * sese.c: Add tree-ssa-propagate.h to include list.
13084 2013-10-02 Richard Biener <rguenther@suse.de>
13086 * tree-loop-distribution.c: Include tree-vectorizer.h for
13087 find_loop_location.
13088 (enum partition_kind): Remove PKIND_REDUCTION.
13089 (struct partition_s): Remove has_writes member, add reduction_p member.
13090 (partition_alloc): Adjust.
13091 (partition_builtin_p): Likewise.
13092 (partition_has_writes): Remove.
13093 (partition_reduction_p): New function.
13094 (partition_merge_into): Likewise.
13095 (generate_code_for_partition): Commonize builtin partition
13097 (rdg_cannot_recompute_vertex_p): Remove.
13098 (already_processed_vertex_p): Likewise.
13099 (rdg_flag_vertex): Do not set has_writes.
13100 (classify_partition): Adjust.
13101 (rdg_build_partitions): Do not set has_writes, treat all
13102 partitions as useful.
13103 (distribute_loop): Record number of library calls generated. Adjust.
13104 (tree_loop_distribution): Report number of loops and library
13105 calls generated as opt-info.
13107 2013-10-02 Andrew MacLeod <amacleod@redhat.com>
13109 * tree-flow.h: Include new .h files. Move prototypes.
13110 * tree-cfgcleanup.h: New file. Add prototypes from tree-flow.h.
13111 * tree-dfa.h: New File. Add prototypes from tree-flow.h.
13112 (get_addr_base_and_unit_offset_1) Move from tree-flow-inline.h.
13113 * tree-pretty-print.h: Add prototypes from tree-flow.h.
13114 * tree-into-ssa.h: New File. Add prototypes from tree-flow.h.
13115 ({debug|dump}*): Move debugging prototypes out of tree-into-ssa.c.
13116 * tree-into-ssa.c ({debug|dump}*): Move prototypes to header file.
13117 * tree.h (get_ref_base_and_extent): Move prototype out.
13118 * tree-flow-inline.h (get_addr_base_and_unit_offset_1): Move to
13120 * gimple-low.h: New File. Add prototypes from tree-flow.h.
13121 * gimple-low.c (try_catch_may_fallthru, block_may_fallthru): Move to...
13122 * tree.c (try_catch_may_fallthru, block_may_fallthru): Here.
13123 * tree-scalar-evolution.c: Include tree.h.
13124 * sese.c: Include tree.h.
13125 * dumpfile.c: Move gimple-pretty-print.h include after tree.h.
13126 * dwarf2out.c: Include tree-dfa.h.
13127 * tree-chrec.c: Include tree.h.
13128 * tree-data-ref.c: Include tree.h.
13130 2013-10-02 Yufeng Zhang <yufeng.zhang@arm.com>
13132 * gimple-ssa-strength-reduction.c (backtrace_base_for_ref):
13135 2013-10-02 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
13137 * config/t-sol2 (sol2-c.o): Remove header dependencies.
13138 Use $(COMPILE) and $(POSTCOMPILE).
13139 (sol2-cxx.o): Likewise.
13140 (sol2-stubs.o): Likewise.
13141 (sol2.o): Likewise.
13142 * config/x-solaris (host-solaris.o): Likewise.
13144 * config/sparc/t-sparc (sparc.o): Remove.
13145 (sparc-c.o): Remove header dependencies.
13146 Use $(COMPILE) and $(POSTCOMPILE).
13147 * config/sparc/x-sparc: Likewise.
13149 2013-10-02 Joern Rennecke <joern.rennecke@embecosm.com>
13151 * config/arc/arc-opts.h: Add 2013 to Copyright years.
13152 * config/arc/arc700.md: Likewise.
13153 * config/arc/arc-modes.def: Likewise.
13154 * config/arc/arc-simd.h: Likewise.
13155 * config/arc/t-arc-uClibc: Likewise.
13156 * config/arc/t-arc-newlib: Likewise.
13158 2013-10-02 Renlin Li <renlin.li@arm.com>
13160 * config/aarch64/aarch64.c (aarch64_expand_prologue): Use
13162 (aarch64_expand_epilogue): Likewise.
13164 2013-10-02 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
13165 Yufeng Zhang <yufeng.zhang@arm.com>
13167 * gimple-ssa-strength-reduction.c (legal_cast_p_1): Forward
13169 (backtrace_base_for_ref): Call get_unwidened with 'base_in' if
13170 'base_in' represent a conversion and legal_cast_p_1 holds; set
13171 'base_in' with the returned value from get_unwidened.
13173 2013-10-02 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
13175 * config/arm/arm.c (arm_legitimize_reload_address): Explain why
13176 plus_constant is not used.
13178 2013-10-01 Wei Mi <wmi@google.com>
13180 * config/i386/x86-tune.def (DEF_TUNE): Remove m_CORE_ALL.
13181 * config/i386/i386.md: Add define_peephole2 to
13182 break partial reg stall for cvtss2sd/cvtsd2ss.
13184 2013-10-01 Joern Rennecke <joern.rennecke@embecosm.com>
13186 * config/arc/arc.c (pass_arc_ifcvt::clone):
13187 Update for ctxt_ -> m_ctxt change.
13189 2013-10-01 Jeff Law <law@redhat.com>
13191 * tree-ssa-threadupdate.c (struct redirection_data): Delete
13192 outgoing_edge and intermediate_edge fields. Instead store the path.
13193 (redirection_data::hash): Hash on the last edge's destination index.
13194 (redirection_data::equal): Check the entire thread path.
13195 (lookup_redirectio_data): Corresponding changes.
13196 (create_edge_and_update_destination_phis): Likewise.
13197 (thread_single_edge): Likewise.
13199 2013-10-01 Joern Rennecke <joern.rennecke@embecosm.com>
13200 Diego Novillo <dnovillo@google.com>
13202 * config/arc/simdext.md (UNSPEC_ARC_SIMD_VLD32WH): Delete.
13203 (UNSPEC_ARC_SIMD_VLD32WL): Likewise.
13204 (vld32wh_insn, vld32wl_insn): Delete commented-out old
13205 versions of these patterns.
13207 * doc/extend.texi (long_call/medium_call/short_call): Typo fix.
13208 (__builtin_arc_aligned): Likewise.
13210 * config/arc/arc.md: Expand adc_0 comment stating the intended
13211 purpose and why it isn't ready.
13212 Replace commented out call_value_via_label_mixed with a
13213 plain comment about bl_s.
13215 * config/arc/arc.c (stdio.h): Don't include directly.
13216 (arc_expand_epilogue): Remove [0]: Remove fp_restored_p.
13217 Remove if (1) condition.
13218 (arc_encode_section_info): Fix comment.
13220 2013-10-01 Joern Rennecke <joern.rennecke@embecosm.com>
13222 * config/arc/arc.c (arc_conditional_register_usage):
13223 Use ARC_FIRST_SIMD_VR_REG / ARC_LAST_SIMD_VR_REG.
13224 Also set reg_alloc_order for DMA config regs.
13226 2013-10-01 Joern Rennecke <joern.rennecke@embecosm.com>
13227 Jeremy Bennett <jeremy.bennett@embecosm.com>
13229 * doc/install.texi (--with-cpu): Mention ARC.
13230 (arc-*-elf32): New paragraph.
13231 (arc-linux-uclibc): Likewise.
13232 * doc/md.texi (Machine Constraints): Add ARC part.
13233 * doc/invoke.texi: (menu): Add ARC Options.
13234 (Machine Dependent Options) <ARC Options>: Add synopsis.
13235 (node ARC Options): Add.
13236 * doc/extend.texi (long_call / short_call attribute): Add ARC.
13237 (ARC Built-in Functions): New section defining
13238 generic ARC built-in functions.
13239 (ARC SIMD Built-in Functions): New section defining SIMD specific
13240 built-in functions.
13241 (Declaring Attributes of Functions): Extended
13242 description of short_call and long_call attributes for ARC and
13243 added index entries.
13245 2013-10-01 Saurabh Verma <saurabh.verma@codito.com>
13246 Ramana Radhakrishnan <ramana.radhakrishnan@codito.com>
13247 Joern Rennecke <joern.rennecke@embecosm.com>
13248 Muhammad Khurram Riaz <khurram.riaz@arc.com>
13249 Brendan Kehoe <brendan@zen.org>
13250 Michael Eager <eager@eagercon.com>
13251 Simon Cook <simon.cook@embecosm.com>
13252 Jeremy Bennett <jeremy.bennett@embecosm.com>
13254 * config/arc, common/config/arc: New directories.
13256 2013-10-01 Joern Rennecke <joern.rennecke@embecosm.com>
13257 Brendan Kehoe <brendan@zen.org>
13258 Simon Cook <simon.cook@embecosm.com>
13260 * config.gcc (arc*-*-elf*, arc*-*-linux-uclibc*): New configurations.
13262 2013-10-01 Andrew MacLeod <amacleod@redhat.com>
13264 * tree-ssa-live.h (coalesce_ssa_name): Move Prototype to...
13265 * tree-ssa-coalesce.h: New. Move prototype to here.
13266 * tree-outof-ssa.h: Include tree-ssa-coalesce.h.
13267 * tree-ssa-coalesce.c: Include tree-outof-ssa.h.
13268 (gimple_can_coalesce_p): Move to...
13269 * gimple.c (gimple_can_coalesce_p): Here.
13271 2013-10-01 Andrew MacLeod <amacleod@redhat.com>
13273 * tree-into-ssa.c (enum need_phi_state): Relocate from tree-flow.h.
13274 (dump_decl_set): Move to gimple.c.
13275 * gimple.h: Don't include tree-ssa-operands.h.
13276 (dump_decl_set): Add prototype.
13277 (gimple_vuse_op, gimple_vdef_op, update_stmt, update_stmt_if_modified):
13278 Move to gimple-ssa.h.
13279 (phi_ssa_name_p, phi_nodes, phi_nodes_ptr, gimple_phi_arg_def,
13280 gimple_phi_arg_def_ptr, gimple_phi_arg_edge, gimple_phi_arg_location,
13281 gimple_phi_arg_location_from_edge, gimple_phi_arg_set_location,
13282 gimple_phi_arg_has_location): Relocate from tree-flow-inline.h
13283 * gimple.c (walk_stmt_load_store_ops): Use gimple_phi_arg_def rather
13285 (dump_decl_set): Relocate here.
13286 * gimple-ssa.h: New file.
13287 (gimple_vuse_op, gimple_vdef_op, update_stmt, update_stmt_if_modified):
13288 Relocate from gimple.h.
13289 * tree-cfg.c (has_zero_uses_1, single_imm_use_1): Move to...
13290 * tree-ssa-operands.c (swap_ssa_operands): Rename from
13291 swap_tree_operands and remove non-ssa path.
13292 (has_zero_uses_1, single_imm_use_1): Relocate from tree-cfg.c.
13293 * tree-ssa-reassoc.c (linearize_expr_tree, repropagate_negates): Use
13295 * tree-vect-loop.c (destroy_loop_vec_info, vect_is_slp_reduction,
13296 vect_is_simple_reduction_1): Use swap_ssa_operands.
13297 * tree-flow.h: Move various prototypes to tree-phinodes.h.
13298 (enum need_phi_state): Move to tree-into-ssa.c.
13299 (struct immediate_use_iterator_d, FOR_EACH_IMM_*,
13300 BREAK_FROM_IMM_USE_STMT): Move to ssa-iterators.h.
13301 (swap_tree_operands): Rename and move prototype to tree-ssa-operands.h.
13302 * tree-flow-inline.h (delink_imm_use, link_imm_use_to_list,
13303 link_imm_use, set_ssa_use_from_ptr, link_imm_use_stmt, relink_imm_use,
13304 relink_imm_use_stmt, end_readonly_imm_use_p, first_readonly_imm_use,
13305 next_readonly_imm_use, has_zero_uses, has_single_use, single_imm_use,
13306 num_imm_uses): Move to ssa-iterators.h.
13307 (get_use_from_ptr, get_def_from_ptr): Move to tree-ssa-operands.h
13308 (gimple_phi_arg_imm_use_ptr, phi_arg_index_from_use): Move to
13310 (op_iter_done, op_iter_next_def, op_iter_next_tree,
13311 clear_and_done_ssa_iter, op_iter_init, op_iter_init_use,
13312 op_iter_init_def, op_iter_init_tree, single_ssa_tree_operand,
13313 single_ssa_use_operand, single_ssa_def_operand, zero_ssa_operands,
13314 num_ssa_operands, delink_stmt_imm_use, single_phi_def,
13315 op_iter_init_phiuse, op_iter_init_phidef, end_imm_use_stmt_p,
13316 end_imm_use_stmt_traverse, move_use_after_head, link_use_stmts_after,
13317 first_imm_use_stmt, next_imm_use_stmt, first_imm_use_on_stmt,
13318 end_imm_use_on_stmt_p, next_imm_use_on_stmt): Move to ssa-iterators.h.
13319 (gimple_phi_arg_def, gimple_phi_arg_def_ptr, gimple_phi_arg_edge,
13320 gimple_phi_arg_location, gimple_phi_arg_location_from_edge,
13321 gimple_phi_arg_set_location, gimple_phi_arg_has_location, phi_nodes,
13322 phi_nodes_ptr, phi_ssa_name_p): Move to gimple.h.
13323 (set_phi_nodes): Move to tree-phinodes.h.
13324 * tree-ssa-operands.h (enum ssa_op_iter_type,
13325 struct ssa_operand_iterator_d, SSA_OP*, FOR_EACH_SSA*, SINGLE_SSA*,
13326 ZERO_SSA_OPERANDS, NUM_SSA_OPERANDS): Move to ssa-iterators.h.
13327 (dump_decl_set): Remove prototype.
13328 (get_use_from_ptr, get_def_from_ptr): Relocate from tree-flow.h.
13329 * tree-phinodes.h: New file. Move some prototypes from tree-flow.h.
13330 (set_phi_nodes): Relocate from tree-flow-inline.h.
13331 (gimple_phi_arg_imm_use_ptr, phi_arg_index_from_use): Relocate from
13333 * tree-ssa.h: Add tree-phinodes.h, gimple-ssa.h, ssa-iterators.h to
13334 include list. Temporarily add gimple.h to include list.
13335 * ssa-iterators.h: New file.
13336 (struct immediate_use_iterator_d, FOR_EACH_IMM_*,
13337 BREAK_FROM_IMM_USE_STMT): Relocate from tree-flow.h.
13338 (enum ssa_op_iter_type, struct ssa_operand_iterator_d, SSA_OP*,
13339 FOR_EACH_SSA*, SINGLE_SSA*, ZERO_SSA_OPERANDS, NUM_SSA_OPERANDS):
13340 Relocate from tree-ssa-operands.h.
13341 (delink_imm_use, link_imm_use_to_list, link_imm_use,
13342 set_ssa_use_from_ptr, link_imm_use_stmt, relink_imm_use,
13343 relink_imm_use_stmt, end_readonly_imm_use_p, first_readonly_imm_use,
13344 next_readonly_imm_use, has_zero_uses, has_single_use, single_imm_use,
13345 num_imm_uses, get_use_from_ptr, get_def_from_ptr,
13346 phi_arg_index_from_use, op_iter_done, op_iter_next_def,
13347 op_iter_next_tree, clear_and_done_ssa_iter, op_iter_init,
13348 op_iter_init_use, op_iter_init_def, op_iter_init_tree,
13349 single_ssa_tree_operand, single_ssa_use_operand, single_ssa_def_operand,
13350 zero_ssa_operands, num_ssa_operands, delink_stmt_imm_use,
13351 single_phi_def, op_iter_init_phiuse, op_iter_init_phidef,
13352 end_imm_use_stmt_p, end_imm_use_stmt_traverse, move_use_after_head,
13353 link_use_stmts_after, first_imm_use_stmt, next_imm_use_stmt,
13354 first_imm_use_on_stmt, end_imm_use_on_stmt_p, next_imm_use_on_stmt):
13355 Relocate from tree-flow-inline.h.
13356 * tree-outof-ssa.h: Change _SSAEXPAND_H macro to GCC_TREE_OUTOF_SSA_H.
13358 2013-10-01 Vidya Praveen <vidyapraveen@arm.com>
13361 (aarch64_<ANY_EXTEND:su><ADDSUB:optab>l2<mode>_internal): Rename to ...
13362 (aarch64_<ANY_EXTEND:su><ADDSUB:optab>l<mode>_hi_internal): ... this;
13363 Insert '\t' to output template.
13364 (aarch64_<ANY_EXTEND:su><ADDSUB:optab>l<mode>_lo_internal): New.
13365 (aarch64_saddl2<mode>, aarch64_uaddl2<mode>): Modify to call
13366 gen_aarch64_<ANY_EXTEND:su><ADDSUB:optab>l<mode>_hi_internal() instead.
13367 (aarch64_ssubl2<mode>, aarch64_usubl2<mode>): Ditto.
13369 2013-10-01 Uros Bizjak <ubizjak@gmail.com>
13371 * doc/install.texi (Host/target specific installation notes for GCC):
13372 Put @anchor before @heading.
13373 * doc/gcc.texi (titlepage): Use @uref and http:// prefix for website.
13374 Use @email for email addresses.
13376 2013-10-01 Jeff Law <law@redhat.com>
13378 * tree-ssa-threadedge.c (thread_across_edge): Make path a pointer to
13379 a vec. Only delete the path if we create one without successfully
13380 registering a jump thread.
13381 * tree-ssa-threadupdate.h (register_jump_thread): Pass in path vector
13383 * tree-ssa-threadupdate.c (threaded_edges): Remove. No longer used
13384 (paths): New vector of jump threading paths.
13385 (THREAD_TARGET, THREAD_TARGET2): Remove accessor macros.
13386 (THREAD_PATH): New accessor macro for the entire thread path.
13387 (lookup_redirection_data): Get intermediate and final outgoing edge
13388 from the thread path.
13389 (create_edge_and_update_destination_phis): Copy the threading path.
13390 (ssa_fix_duplicate_block_edges): Get edges and block types from the
13391 jump threading path.
13392 (ssa_redirect_edges): Get edges and block types from the jump threading
13393 path. Free the path vector.
13394 (thread_block): Get edges from the jump threading path. Look at the
13395 entire path to see if we thread to a loop exit. If we cancel a jump
13396 thread request, then free the path vector.
13397 (thread_single_edge): Get edges and block types from the jump threading
13398 path. Free the path vector.
13399 (thread_through_loop_header): Get edges and block types from the jump
13400 threading path. Free the path vector.
13401 (mark_threaded_blocks): Iterate over the vector of paths and store
13402 the path on the appropriate edge. Get edges and block types from the
13403 jump threading path.
13404 (mark_threaded_blocks): Get edges and block types from the jump
13405 threading path. Free the path vector.
13406 (thread_through_all_blocks): Use the vector of paths rather than
13407 a vector of 3-edge sets.
13408 (register_jump_thread): Accept pointer to a path vector rather
13409 than the path vector itself. Store the path vector for later use.
13412 2013-10-01 Jakub Jelinek <jakub@redhat.com>
13413 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
13416 * config/s390/s390.c (s390_split_branches): Modify check for table
13418 (s390_chunkify_start): Rearrange table jump insn check in order to
13419 deal with compare and branch insns correctly.
13421 2013-10-01 Kugan Vivekanandarajah <kuganv@linaro.org>
13425 2013-04-05 Greta Yorsh <Greta.Yorsh@arm.com>
13426 * config/arm/arm.md (arm_ashldi3_1bit): define_insn into
13427 define_insn_and_split.
13428 (arm_ashrdi3_1bit,arm_lshrdi3_1bit): Likewise.
13429 (shiftsi3_compare): New pattern.
13430 (rrx): New pattern.
13431 * config/arm/unspecs.md (UNSPEC_RRX): New.
13433 2013-10-01 Alan Modra <amodra@gmail.com>
13435 * stmt.c (expand_asm_operands): Revert part of 2013-09-24 special
13436 casing inout operands.
13438 2013-10-01 Richard Biener <rguenther@suse.de>
13440 PR tree-optimization/58553
13441 * tree-loop-distribution.c (struct partition_s): Add niter member.
13442 (classify_partition): Populate niter member for the partition
13443 and properly identify whether the relevant store happens before
13444 or after the loop exit.
13445 (generate_memset_builtin): Use niter member from the partition.
13446 (generate_memcpy_builtin): Likewise.
13448 2013-09-30 Richard Sandiford <rdsandiford@googlemail.com>
13450 * vec.h (vec_prefix, vec): Prefix member names with "m_".
13451 * vec.c (vec_prefix::calculate_allocation): Update accordingly.
13453 2013-09-30 Richard Sandiford <rdsandiford@googlemail.com>
13455 * basic-block.h (edge_list): Prefix member names with "m_".
13456 * context.h (context): Likewise.
13457 * domwalk.h (dom_walker): Likewise.
13458 * gengtype-state.c (s_expr_writer, state_writer): Likewise.
13459 * graphite-sese-to-poly.c (sese_dom_walker): Likewise.
13460 * hash-table.h (hash_table): Likewise.
13461 * machmode.h (bit_field_mode_iterator): Likewise.
13462 * pass_manager.h (pass_list): Likewise.
13463 * tree-into-ssa.c (mark_def_dom_walker): Likewise.
13464 * tree-pass.h (pass_data): Likewise.
13465 * tree-ssa-dom.c (dom_opt_dom_walker): Likewise.
13466 * tree-ssa-phiopt.c (nontrapping_dom_walker): Likewise,
13467 * tree-ssa-uncprop.c (uncprop_dom_walker): Likewise.
13468 * asan.c (pass_data_asan): Update accordingly.
13469 * cfganal.c (control_dependences::find_control_dependence): Likewise.
13470 (control_dependences::control_dependences): Likewise.
13471 (control_dependences::~control_dependences): Likewise.
13472 (control_dependences::~control_dependences): Likewise.
13473 (control_dependences::get_edges_dependent_on): Likewise.
13474 * cgraphbuild.c (pass_data_rebuild_cgraph_edges::clone): Likewise.
13475 (pass_data_remove_cgraph_callee_edges::clone): Likewise.
13476 * context.c (gcc::context::context): Likewise.
13477 * cprop.c (pass_rtl_cprop::clone): Likewise.
13478 * domwalk.c (dom_walker::walk): Likewise.
13479 * ipa-inline-analysis.c (pass_inline_parameters::clone): Likewise.
13480 * ipa-pure-const.c (pass_local_pure_const::clone): Likewise.
13481 * mode-switching.c (pass_mode_switching::clone): Likewise.
13482 * passes.c (opt_pass::opt_pass): Likewise.
13483 (pass_manager::pass_manager): Likewise.
13484 * predict.c (pass_strip_predict_hints::clone): Likewise.
13485 * recog.c (pass_data pass_data_peephole2::clone): Likewise.
13486 (pass_split_all_insns::clone): Likewise.
13487 * stor-layout.c (bit_field_mode_iterator::bit_field_mode_iterator):
13489 (bit_field_mode_iterator::next_mode): Likewise.
13490 (bit_field_mode_iterator::prefer_smaller_modes): Likewise.
13491 * tree-cfg.c (pass_split_crit_edges::clone): Likewise.
13492 * tree-cfgcleanup.c (pass_merge_phi::clone): Likewise.
13493 * tree-complex.c (pass_lower_complex::clone): Likewise.
13494 * tree-eh.c (pass_cleanup_eh::clone): Likewise.
13495 * tree-object-size.c (pass_object_sizes::clone): Likewise.
13496 * tree-optimize.c (pass_fixup_cfg::clone): Likewise.
13497 * tree-ssa-ccp.c (pass_data_ccp::clone): Likewise.
13498 (pass_fold_builtins::clone): Likewise.
13499 * tree-ssa-copy.c (pass_data_copy_prop::clone): Likewise.
13500 * tree-ssa-copyrename.c (pass_rename_ssa_copies::clone): Likewise.
13501 * tree-ssa-dce.c (pass_dce::clone, pass_dce_loop::clone): Likewise.
13502 (pass_cd_dce::clone): Likewise.
13503 * tree-ssa-dom.c (pass_dominator::clone): Likewise.
13504 (pass_phi_only_cprop::clone): Likewise.
13505 * tree-ssa-dse.c (pass_dse::clone): Likewise.
13506 * tree-ssa-forwprop.c (pass_forwprop::clone): Likewise.
13507 * tree-ssa-loop.c (pass_lim::clone): Likewise.
13508 * tree-ssa-phiopt.c (pass_phiopt::clone): Likewise.
13509 * tree-ssa-pre.c (pass_fre::clone): Likewise.
13510 * tree-ssa-reassoc.c (pass_reassoc::clone): Likewise.
13511 * tree-ssa-uninit.c (pass_late_warn_uninitialized::clone): Likewise.
13512 * tree-tailcall.c (pass_tail_recursion::clone): Likewise.
13513 * tree-vect-generic.c (pass_lower_vector_ssa::clone): Likewise.
13514 * tree-vrp.c (pass_vrp::clone): Likewise.
13515 * tsan.c (pass_tsan::clone): Likewise.
13517 2013-09-30 Jakub Jelinek <jakub@redhat.com>
13519 PR middle-end/58564
13520 * fold-const.c (tree_unary_nonnegative_warnv_p): Use
13521 INTEGRAL_TYPE_P (t) instead of TREE_CODE (t) == INTEGER_TYPE.
13523 PR middle-end/58564
13524 * fold-const.c (fold_ternary_loc): For A < 0 : <sign bit of A> : 0
13525 optimization, punt if sign_bit_p looked through any zero extension.
13527 2013-09-30 Teresa Johnson <tejohnson@google.com>
13529 * tree-ssa-threadupdate.c (ssa_fix_duplicate_block_edges):
13530 Update redirected out edge count in joiner case.
13531 (ssa_redirect_edges): Common the joiner and non-joiner cases
13532 so that joiner case gets profile updates.
13534 2013-09-30 Richard Biener <rguenther@suse.de>
13536 PR tree-optimization/58554
13537 * tree-loop-distribution.c (classify_partition): Require
13538 unconditionally executed stores for memcpy and memset recognition.
13539 (tree_loop_distribution): Calculate dominance info.
13541 2013-09-30 Venkataramanan Kumar <venkataramanan.kumar@linaro.org>
13543 * config/aarch64/aarch64.h (MCOUNT_NAME): Define.
13544 (NO_PROFILE_COUNTERS): Likewise.
13545 (PROFILE_HOOK): Likewise.
13546 (FUNCTION_PROFILER): Likewise.
13547 * config/aarch64/aarch64.c (aarch64_function_profiler): Remove.
13549 2013-09-30 Iain Sandoe <iain@codesourcery.com>
13551 * config/rs6000/darwin.md (load_macho_picbase_si): Wrap machopic
13552 calls and defines in TARGET_MACHO conditional.
13553 (load_macho_picbase_di): Likewise.
13554 (reload_macho_picbase): Likewise.
13555 (reload_macho_picbase_si): Likewise.
13556 (reload_macho_picbase_di): Likewise.
13557 (nonlocal_goto_receiver): Likewise.
13559 2013-09-30 Nick Clifton <nickc@redhat.com>
13561 * config/msp430/msp430.c (msp430x_names): New array. Lists MCUs
13562 that use the MSP430X ISA.
13563 (msp430_option_override): Scan -mmcu command line option for any
13564 MCU name that supports the MSP430X ISA.
13565 * config/msp430/t-msp430 (MULTILIB_MATCHES): Add matches for known
13566 -mmcu options which enable the MSP430X ISA.
13568 2013-09-30 Richard Biener <rguenther@suse.de>
13570 PR middle-end/58532
13571 * tree-cfg.c (make_abnormal_goto_edges): Skip debug statements
13572 before looking for setjmp-like calls.
13574 2013-09-29 Iain Sandoe <iain@codesourcery.com>
13577 * config/darwin-protos.h (machopic_get_function_picbase): New.
13578 * config/darwin.c (machopic_get_function_picbase): New.
13579 * config/rs6000/darwin.md (load_macho_picbase_si): Update picbase
13580 label for a new func. (load_macho_picbase_di): Likewise.
13581 (reload_macho_picbase): New expand.
13582 (reload_macho_picbase_si): New insn.
13583 (reload_macho_picbase_di): New insn.
13584 (nonlocal_goto_receiver): New define and split.
13585 * config/rs6000/rs6000.md (unspec enum): Add UNSPEC_RELD_MPIC.
13586 (unspecv enum): Add UNSPECV_NLGR.
13588 2013-09-29 Iain Sandoe <iain@codesourcery.com>
13590 * config/rs6000/rs6000.c (rs6000_init_dwarf_reg_sizes_extra): Ensure
13591 that altivec registers are correctly sized on Darwin.
13593 2013-09-29 Iain Sandoe <iain@codesourcery.com>
13595 * config/t-darwin (darwin.o, darwin-c.o, darwin-f.o,
13596 darwin-driver.o): Use COMPILE and POSTCOMPILE.
13597 * config/x-darwin (host-darwin.o): Likewise.
13598 * config/i386/x-darwin (host-i386-darwin.o): Likewise.
13599 * config/rs6000/x-darwin (host-ppc-darwin.o): Likewise.
13600 * config/rs6000/x-darwin64 (host-ppc64-darwin.o): Likewise.
13602 2013-09-29 Uros Bizjak <ubizjak@gmail.com>
13604 * doc/invoke.texi: Fix usage of @tie{} command.
13606 2013-09-29 Eric Botcazou <ebotcazou@adacore.com>
13608 * config/sparc/sync.md: Add peephole for consecutive memory barriers.
13610 2013-09-28 Jan Hubicka <jh@suse.cz>
13612 * config/i386/x86-tune.def: Add documentation for each of the options;
13615 2013-09-28 Jan Hubicka <jh@suse.cz>
13617 * x86-tune.def (X86_TUNE_SSE_UNALIGNED_LOAD_OPTIMAL): Enable for
13619 (X86_TUNE_SSE_UNALIGNED_STORE_OPTIMAL): Likewise.
13620 (X86_TUNE_FOUR_JUMP_LIMIT): Drop for generic and buldozer.
13621 (X86_TUNE_PAD_RETURNS): Drop for buldozer chips.
13622 (X86_TUNE_AVOID_VECTOR_DECODE): Drop for generic.
13623 (X86_TUNE_REASSOC_FP_TO_PARALLEL): Enable for generic.
13625 2013-09-28 Richard Sandiford <rdsandiford@googlemail.com>
13627 * alloc-pool.c, asan.c, auto-inc-dec.c, basic-block.h, bb-reorder.c,
13628 bitmap.c, bitmap.h, bt-load.c, builtins.c, calls.c, cfgcleanup.c,
13629 cfgexpand.c, cfghooks.c, cfgloop.c, cfgloopmanip.c, cfgrtl.c, cgraph.c,
13630 cgraph.h, cgraphbuild.c, cgraphclones.c, cgraphunit.c, collect2.c,
13631 combine-stack-adj.c, combine.c, compare-elim.c, context.c, context.h,
13632 cprop.c, cse.c, cselib.c, dbxout.c, dce.c, defaults.h, df-core.c,
13633 df-problems.c, df-scan.c, df.h, diagnostic.c, double-int.c, dse.c,
13634 dumpfile.c, dwarf2asm.c, dwarf2cfi.c, dwarf2out.c, emit-rtl.c,
13635 errors.c, except.c, expmed.c, expr.c, file-find.c, final.c,
13636 fixed-value.c, fold-const.c, function.c, fwprop.c, gcc-ar.c, gcc.c,
13637 gcov-io.c, gcov-io.h, gcov.c, gcse.c, genattr-common.c, genattr.c,
13638 genattrtab.c, genautomata.c, genconfig.c, genemit.c, genextract.c,
13639 genflags.c, gengenrtl.c, gengtype-state.c, gengtype.c, genmodes.c,
13640 genopinit.c, genoutput.c, genpeep.c, genpreds.c, genrecog.c,
13641 gensupport.c, ggc-common.c, ggc-page.c, gimple-fold.c, gimple-low.c,
13642 gimple-pretty-print.c, gimple-ssa-strength-reduction.c, gimple.c,
13643 gimple.h, godump.c, graphite-clast-to-gimple.c,
13644 graphite-optimize-isl.c, graphite-poly.h, graphite-sese-to-poly.c,
13645 graphite.c, haifa-sched.c, hash-table.c, hash-table.h, hwint.c,
13646 hwint.h, ifcvt.c, incpath.c, init-regs.c, input.h, intl.c, intl.h,
13647 ipa-cp.c, ipa-devirt.c, ipa-inline-analysis.c, ipa-inline.c,
13648 ipa-profile.c, ipa-pure-const.c, ipa-reference.c, ipa-split.c,
13649 ipa-utils.c, ipa.c, ira-build.c, ira.c, jump.c, loop-doloop.c,
13650 loop-init.c, loop-invariant.c, loop-iv.c, lower-subreg.c, lto-cgraph.c,
13651 lto-streamer-in.c, lto-streamer-out.c, lto-wrapper.c, mcf.c,
13652 mode-switching.c, modulo-sched.c, omp-low.c, optabs.c, opts.c,
13653 pass_manager.h, passes.c, plugin.c, postreload-gcse.c, postreload.c,
13654 predict.c, prefix.c, pretty-print.c, print-rtl.c, print-tree.c,
13655 profile.c, read-md.c, real.c, real.h, recog.c, ree.c, reg-stack.c,
13656 regcprop.c, reginfo.c, regmove.c, regrename.c, regs.h, regstat.c,
13657 reload1.c, reorg.c, rtl.c, rtl.h, rtlanal.c, sbitmap.c, sched-rgn.c,
13658 sdbout.c, sel-sched-ir.c, sel-sched.c, sparseset.c, stack-ptr-mod.c,
13659 statistics.c, stmt.c, stor-layout.c, store-motion.c, streamer-hooks.h,
13660 system.h, target-hooks-macros.h, targhooks.c, targhooks.h, toplev.c,
13661 tracer.c, trans-mem.c, tree-browser.c, tree-call-cdce.c, tree-cfg.c,
13662 tree-cfgcleanup.c, tree-complex.c, tree-data-ref.c, tree-data-ref.h,
13663 tree-eh.c, tree-emutls.c, tree-flow.h, tree-if-conv.c, tree-into-ssa.c,
13664 tree-iterator.c, tree-loop-distribution.c, tree-mudflap.c,
13665 tree-nested.c, tree-nomudflap.c, tree-nrv.c, tree-object-size.c,
13666 tree-optimize.c, tree-pass.h, tree-pretty-print.c, tree-profile.c,
13667 tree-scalar-evolution.c, tree-sra.c, tree-ssa-ccp.c,
13668 tree-ssa-coalesce.c, tree-ssa-copy.c, tree-ssa-copyrename.c,
13669 tree-ssa-dce.c, tree-ssa-dom.c, tree-ssa-dse.c, tree-ssa-forwprop.c,
13670 tree-ssa-ifcombine.c, tree-ssa-live.c, tree-ssa-loop-ch.c,
13671 tree-ssa-loop-im.c, tree-ssa-loop-ivopts.c, tree-ssa-loop-prefetch.c,
13672 tree-ssa-loop.c, tree-ssa-math-opts.c, tree-ssa-operands.c,
13673 tree-ssa-phiopt.c, tree-ssa-phiprop.c, tree-ssa-pre.c,
13674 tree-ssa-reassoc.c, tree-ssa-sink.c, tree-ssa-strlen.c,
13675 tree-ssa-structalias.c, tree-ssa-threadedge.c, tree-ssa-threadupdate.c,
13676 tree-ssa-uncprop.c, tree-ssa-uninit.c, tree-ssa.c, tree-ssanames.c,
13677 tree-stdarg.c, tree-switch-conversion.c, tree-tailcall.c,
13678 tree-vect-data-refs.c, tree-vect-generic.c, tree-vect-loop-manip.c,
13679 tree-vect-stmts.c, tree-vectorizer.c, tree-vectorizer.h, tree-vrp.c,
13680 tree.c, tree.h, tsan.c, tsystem.h, value-prof.c, var-tracking.c,
13681 varasm.c, vec.h, vmsdbgout.c, vtable-verify.c, web.c: Add missing
13682 whitespace before "(".
13684 2013-09-28 Sandra Loosemore <sandra@codesourcery.com>
13686 * expr.h (extract_bit_field): Remove packedp parameter.
13687 * expmed.c (extract_fixed_bit_field): Remove packedp parameter
13688 from forward declaration.
13689 (store_split_bit_field): Remove packedp arg from calls to
13690 extract_fixed_bit_field.
13691 (extract_bit_field_1): Remove packedp parameter and packedp
13692 argument from recursive calls and calls to extract_fixed_bit_field.
13693 (extract_bit_field): Remove packedp parameter and corresponding
13694 arg to extract_bit_field_1.
13695 (extract_fixed_bit_field): Remove packedp parameter. Remove code
13697 (extract_split_bit_field): Remove packedp arg from call to
13698 extract_fixed_bit_field.
13699 * expr.c (emit_group_load_1): Adjust calls to extract_bit_field.
13700 (copy_blkmode_from_reg): Likewise.
13701 (copy_blkmode_to_reg): Likewise.
13702 (read_complex_part): Likewise.
13703 (store_field): Likewise.
13704 (expand_expr_real_1): Likewise.
13705 * calls.c (store_unaligned_arguments_into_pseudos): Adjust call
13706 to extract_bit_field.
13707 * config/tilegx/tilegx.c (tilegx_expand_unaligned_load): Adjust
13708 call to extract_bit_field.
13709 * config/tilepro/tilepro.c (tilepro_expand_unaligned_load): Adjust
13710 call to extract_bit_field.
13711 * doc/invoke.texi (Code Gen Options): Remove mention of warnings
13712 and special packedp behavior from -fstrict-volatile-bitfields
13715 2013-09-27 Jan-Benedict Glaw <jbglaw@lug-owl.de>
13717 * lra-eliminations.c (init_elim_table): Guard value_p.
13719 2013-09-27 Michael Meissner <meissner@linux.vnet.ibm.com>
13721 * config/rs6000/rs6000.c (rs6000_hard_regno_mode_ok): Allow
13722 DFmode, DImode, and SFmode in the upper VSX registers based on the
13723 -mupper-regs-{df,sf} flags. Fix wu constraint to be ALTIVEC_REGS
13724 if -mpower8-vector. Combine -mvsx-timode handling with the rest
13725 of the VSX register handling.
13727 * config/rs6000/rs6000.md (f32_lv): Use %x0 for VSX regsters.
13728 (f32_sv): Likewise.
13729 (zero_extendsidi2_lfiwzx): Add support for loading into the
13730 Altivec registers with -mpower8-vector. Use wu/wv constraints to
13731 only do VSX memory options on Altivec registers.
13732 (extendsidi2_lfiwax): Likewise.
13733 (extendsfdf2_fpr): Likewise.
13734 (mov<mode>_hardfloat, SF/SD modes): Likewise.
13735 (mov<mode>_hardfloat32, DF/DD modes): Likewise.
13736 (mov<mode>_hardfloat64, DF/DD modes): Likewise.
13737 (movdi_internal64): Likewise.
13739 2013-09-27 Xinliang David Li <davidxl@google.com>
13741 * opts.c (finish_options): Adjust parameters
13742 according to vect cost model.
13743 (common_handle_option): Set dynamic vect cost
13745 targhooks.c (default_add_stmt_cost): Compute stmt cost
13747 * tree-vect-loop.c (vect_estimate_min_profitable_iters):
13748 Use helper function.
13749 * tree-vectorizer.h (unlimited_cost_model): New function.
13750 * tree-vect-slp.c (vect_slp_analyze_bb_1): Use helper function.
13751 * tree-vect-data-refs.c (vect_peeling_hash_insert): Use helper
13753 (vect_enhance_data_refs_alignment): Ditto.
13754 * flag-types.h: New enum.
13755 * common/config/i386/i386-common.c (ix86_option_init_struct):
13756 No need to initialize vect_cost_model flag.
13757 * config/i386/i386.c (ix86_add_stmt_cost): Compute stmt cost
13760 2013-09-27 Diego Novillo <dnovillo@google.com>
13762 * gimple.h (enum ssa_mode): Remove.
13764 2013-09-27 Paulo Matos <pmatos@broadcom.com>
13766 * cfgloop.h (number_of_loops): Fix typo in check for null.
13768 2013-09-27 Jakub Jelinek <jakub@redhat.com>
13770 PR middle-end/58551
13771 * tree-cfg.c (move_sese_region_to_fn): Also move loops that
13772 are children of outermost saved_cfun's loop, and set it up to
13773 be moved to dest_cfun's outermost loop. Fix up num_nodes adjustments
13774 if loop != loop0 and SESE region contains bbs that belong to loop0.
13776 2013-09-27 Richard Sandiford <rdsandiford@googlemail.com>
13778 * rtlanal.c (must_be_base_p, must_be_index_p): Delete.
13779 (binary_scale_code_p, get_base_term, get_index_term): New functions.
13780 (set_address_segment, set_address_base, set_address_index)
13781 (set_address_disp): Accept the argument unconditionally.
13782 (baseness): Remove must_be_base_p and must_be_index_p checks.
13783 (decompose_normal_address): Classify as much as possible in the
13786 2013-09-27 Richard Sandiford <rdsandiford@googlemail.com>
13788 * cse.c (count_reg_usage): Handle INT_LIST.
13789 * lra-eliminations.c (lra_eliminate_regs_1): Likewise.
13790 * reginfo.c (reg_scan_mark_refs): Likewise.
13791 * reload1.c (eliminate_regs_1): Likewise.
13793 2013-09-27 Iain Sandoe <iain@codesourcery.com>
13795 PR middle-end/58547
13796 * rtlanal.c (lsb_bitfield_op_p): Make both parts of the comparison
13799 2013-09-27 Richard Biener <rguenther@suse.de>
13801 PR tree-optimization/58459
13802 * tree-ssa-forwprop.c (forward_propagate_addr_expr): Remove
13803 restriction not propagating into loops.
13805 2013-09-26 Florian Weimer <fw@deneb.enyo.de>
13807 * tree-ssa.h (walk_use_def_chains_fn, walk_use_def_chains): Delete.
13808 * tree-ssa.c (walk_use_def_chains_1, walk_use_def_chains): Delete.
13809 * doc/tree-ssa.texi (Walking use-def chains): Delete.
13811 2013-09-26 Richard Biener <rguenther@suse.de>
13813 * tree-into-ssa.c (rewrite_into_ssa): Make more SSA names to anonymous.
13815 2013-09-26 Richard Biener <rguenther@suse.de>
13817 * alias.h (component_uses_parent_alias_set): Rename to ...
13818 (component_uses_parent_alias_set_from): ... this.
13819 * alias.c (component_uses_parent_alias_set): Rename to ...
13820 (component_uses_parent_alias_set_from): ... this and return
13821 the desired parent.
13822 (reference_alias_ptr_type_1): Use the result from
13823 component_uses_parent_alias_set_from instead of stripping
13824 components one at a time.
13825 * emit-rtl.c (set_mem_attributes_minus_bitpos): Adjust.
13827 2013-09-26 Andrew MacLeod <amacleod@redhat.com>
13829 * tree-ssa-live.h (find_replaceable_exprs, dump_replaceable_exprs):
13830 Move prototypes to...
13831 * tree-ssa-ter.h: New File. Move prototypes here.
13832 * tree-flow.h (stmt_is_replaceable_p): Remove prototype.
13833 * tree-outof-ssa.h: New. Rename ssaexpand.h, include tree-ssa-ter.h.
13834 * tree-outof-ssa.c (ssa_is_replaceable_p): New. Refactor common bits
13835 from is_replaceable_p.
13836 * tree-ssa-ter.c (is_replaceable_p, stmt_is_replaceable_p): Delete.
13837 (ter_is_replaceable_p): New. Use new refactored ssa_is_replaceable_p.
13838 (process_replaceable): Use ter_is_replaceable_p.
13839 (find_replaceable_in_bb): Use ter_is_replaceable_p.
13840 * expr.c (stmt_is_replaceable_p): Relocate from tree-ssa-ter.c. Use
13841 newly refactored ssa_is_replaceable_p.
13842 * cfgexpand.c: Include tree-outof-ssa.h.
13843 * ssaexpand.h: Delete.
13845 2013-09-26 Andrew MacLeod <amacleod@redhat.com>
13847 * gimple.c (gimple_replace_lhs): Move to tree-ssa.c and rename.
13848 (struct count_ptr_d, count_ptr_derefs, count_uses_and_derefs): Move to
13850 (create_gimple_tmp): Delete.
13851 (get_expr_type, build_assign, build_type_cast): Move to...
13852 * gimple-builder.c: New File.
13853 (get_expr_type): Relocate from gimple.c.
13854 (build_assign, build_type_cast): Change to only create ssanames.
13855 * gimple.h: Move prototypes to...
13856 * gimple-builder.h: New File. Here.
13857 * tree-ssa.h: And here.
13858 * tree-ssa.c (struct count_ptr_d, count_ptr_derefs,
13859 count_uses_and_derefs): Relocate from gimple.c.
13860 (gimple_replace_ssa_lhs): Renamed gimple_replace_ssa from gimple.c
13861 * tree-ssa-reassoc.c (repropagate_negates): Use gimple_replace_ssa_lhs.
13862 * tree-ssa-math-opts (execute_cse_reciprocals): Use
13863 gimple_replace_ssa_lhs.
13864 * asan.c: Include gimple-builder.h.
13865 * Makefile.in: Add gimple-builder.o.
13867 2013-09-26 Richard Biener <rguenther@suse.de>
13869 * tree-ssa-live.c (var_map_base_init): Handle SSA names with
13870 DECL_IGNORED_P base VAR_DECLs like anonymous SSA names.
13871 (loe_visit_block): Use gcc_checking_assert.
13872 * tree-ssa-coalesce.c (create_outofssa_var_map): Use
13873 gimple_assign_ssa_name_copy_p.
13874 (gimple_can_coalesce_p): Adjust according to the var_map_base_init
13877 2013-09-26 David Edelsohn <dje.gcc@gmail.com>
13879 * config/rs6000/t-rs6000 (rs6000.o): Remove.
13880 (rs6000-c.o): Use COMPILE and POSTCOMPILE.
13882 2013-09-26 Richard Biener <rguenther@suse.de>
13884 PR tree-optimization/58539
13885 * tree-vect-loop.c (vect_create_epilog_for_reduction): Honor
13886 the fact that debug statements are not taking part in loop-closed
13889 2013-09-26 Nick Clifton <nickc@redhat.com>
13891 * config/msp430/msp430.c (msp430_expand_epilogue): Fix compile
13892 time warning message.
13893 (msp430_print_operand_raw): Delete unused letter parameter.
13894 (TARGET_PRINT_OPERAND_ADDRESS): Define.
13895 (msp430_print_operand_address): New function.
13896 (msp430_print_operand): Move address printing code from here to
13898 * config/msp430/msp430.md (movsipsi2): Add comment in generated
13900 (zero_extendpsisi2): Likewise.
13901 (extendpsisi2): New pattern.
13902 (andneghi3): New pattern.
13904 2013-09-26 Yvan Roux <yvan.roux@linaro.org>
13906 * config/aarch64/aarch64.opt (mlra): New option.
13907 * config/aarch64/aarch64.c (aarch64_lra_p): New function.
13908 (TARGET_LRA_P): Define.
13910 2013-09-26 Eric Botcazou <ebotcazou@adacore.com>
13912 * expr.c (expand_assignment): Remove obsolete comment.
13914 2013-09-25 Jeff Law <law@redhat.com>
13916 * tree-flow.h (thread_through_all_blocks): Prototype moved into
13917 tree-ssa-threadupdate.h.
13918 (register_jump_thread): Similarly.
13919 * tree-ssa-threadupdate.h: New header file.
13920 * tree-ssa-dom.c: Include tree-ssa-threadupdate.h.
13921 * tree-vrp.c: Likewise.
13922 * tree-ssa-threadedge.c: Include tree-ssa-threadupdate.h.
13923 (thread_around_empty_blocks): Change type of path vector argument to
13924 an edge,type pair from just an edge. Initialize both elements when
13925 appending to a jump threading path. Tweak references to elements
13927 (thread_across_edge): Similarly. Release memory for the elements
13929 * tree-ssa-threadupdate.c: Include tree-ssa-threadupdate.h.
13930 (dump_jump_thread_path): New function broken out from
13931 register_jump_thread.
13932 (register_jump_thread): Use dump_jump_thread_path. Change type of
13933 path vector entries. Search the path for NULL edges and dump
13934 the path if one is found. Tweak the conversion of path to 3-edge
13935 form to use the block copy type information embedded in the path.
13937 2013-09-25 Yvan Roux <yvan.roux@linaro.org>
13939 * lra.c (update_inc_notes): Remove all REG_DEAD and REG_UNUSED notes.
13941 2013-09-25 Yvan Roux <yvan.roux@linaro.org>
13942 Vladimir Makarov <vmakarov@redhat.com>
13944 * rtlanal.c (lsb_bitfield_op_p): New predicate for bitfield operations
13945 from the least significant bit.
13946 (strip_address_mutations): Add bitfield operations handling.
13947 (must_be_index_p): Add shifting and rotate operations handling.
13948 (set_address_base): Use must_be_base_p predicate.
13949 (set_address_index): Use must_be_index_p predicate.
13951 2013-09-25 Alexander Ivchenko <alexander.ivchenko@intel.com>
13952 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
13953 Sergey Lega <sergey.s.lega@intel.com>
13954 Anna Tikhonova <anna.tikhonova@intel.com>
13955 Ilya Tocar <ilya.tocar@intel.com>
13956 Andrey Turetskiy <andrey.turetskiy@intel.com>
13957 Ilya Verbin <ilya.verbin@intel.com>
13958 Kirill Yukhin <kirill.yukhin@intel.com>
13959 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
13961 * config/i386/i386.c (ix86_avx256_split_vector_move_misalign):
13963 (ix86_expand_vector_move_misalign): Support new unaligned load and
13964 stores and use new names.
13965 (CODE_FOR_sse2_storedqu): Rename to ...
13966 (CODE_FOR_sse2_storedquv16qi): ... this.
13967 (CODE_FOR_sse2_loaddqu): Rename to ...
13968 (CODE_FOR_sse2_loaddquv16qi): ... this.
13969 (CODE_FOR_avx_loaddqu256): Rename to ...
13970 (CODE_FOR_avx_loaddquv32qi): ... this.
13971 (CODE_FOR_avx_storedqu256): Rename to ...
13972 (CODE_FOR_avx_storedquv32qi): ... this.
13973 * config/i386/i386.md (fpint_logic): New.
13974 * config/i386/sse.md (VMOVE): Extend for AVX512.
13978 (VI_UNALIGNED_LOADSTORE): Ditto.
13979 (sse2_avx_avx512f): Ditto.
13980 (sse2_avx2): Extend for AVX512.
13981 (sse4_1_avx2): Ditto.
13982 (avx2_avx512f): New.
13983 (sse): Extend for AVX512.
13986 (avxsizesuffix): Ditto.
13987 (sseintvecmode): Ditto.
13988 (ssePSmode): Ditto.
13989 (<sse>_loadu<ssemodesuffix><avxsizesuffix>): Ditto.
13990 (<sse>_storeu<ssemodesuffix><avxsizesuffix>): Ditto.
13991 (<sse2>_loaddqu<avxsizesuffix>): Extend for AVX512 and rename to ...
13992 (<sse2_avx_avx512f>_loaddqu<mode>): ... this.
13993 (<sse2>_storedqu<avxsizesuffix>): Extend for AVX512 and rename to ...
13994 (<sse2_avx_avx512f>_storedqu<mode): ... this.
13995 (<sse>_movnt<mode>): Replace constraint "x" with "v".
13996 (STORENT_MODE): Extend for AVX512.
13997 (*absneg<mode>2): Replace constraint "x" with "v".
13998 (*mul<mode>3): Ditto.
13999 (*ieee_smin<mode>3): Ditto.
14000 (*ieee_smax<mode>3): Ditto.
14001 (avx_cmp<mode>3): Replace VF with VF_128_256.
14002 (*<sse>_maskcmp<mode>3_comm): Ditto.
14003 (<sse>_maskcmp<mode>3): Ditto.
14004 (<sse>_andnot<mode>3): Extend for AVX512.
14005 (<code><mode>3, anylogic): Replace VF with VF_128_256.
14006 (<code><mode>3, fpint_logic): New.
14007 (*<code><mode>3): Extend for AVX512.
14008 (avx512flogicsuff): New.
14009 (avx512f_<logic><mode>): Ditto.
14010 (<sse>_movmsk<ssemodesuffix><avxsizesuffix>): Replace VF with
14012 (<sse4_1>_blend<ssemodesuffix><avxsizesuffix>): Ditto.
14013 (<sse4_1>_blendv<ssemodesuffix><avxsizesuffix>): Ditto.
14014 (<sse4_1>_dp<ssemodesuffix><avxsizesuffix>): Ditto.
14015 (avx_vtest<ssemodesuffix><avxsizesuffix>): Ditto.
14016 (<sse4_1>_round<ssemodesuffix><avxsizesuffix>): Ditto.
14017 (xop_vpermil2<mode>3): Ditto.
14018 (*avx_vpermilp<mode>): Extend for AVX512 and rename to ...
14019 (*<sse2_avx_avx512f>_vpermilp<mode>): ... this.
14020 (avx_vpermilvar<mode>3): Extend for AVX512 and rename to ...
14021 (<sse2_avx_avx512f>_vpermilvar<mode>3): ... this.
14023 2013-09-25 Tom Tromey <tromey@redhat.com>
14025 * Makefile.in (PARTITION_H, LTO_SYMTAB_H, COMMON_TARGET_DEF_H)
14026 (RTL_ERROR_H, TRANS_MEM_H, COVERAGE_H, DEMANGLE_H, ALIAS_H)
14027 (SCHED_INT_H, SEL_SCHED_IR_H, SEL_SCHED_DUMP_H, VALTRACK_H, DDG_H)
14028 (GGC_INTERNAL_H, DECNUM_H, BACKTRACE_H, MKDEPS_H, TREE_HASHER_H)
14029 (TREE_SSA_LIVE_H, SSAEXPAND_H, DWARF2OUT_H, SCEV_H, OMEGA_H)
14030 (TREE_DATA_REF_H, IRA_INT_H, LRA_INT_H, DBGCNT_H, DATA_STREAMER_H)
14031 (GIMPLE_STREAMER_H, TREE_STREAMER_H, STREAMER_HOOKS_H)
14032 (TREE_VECTORIZER_H, IPA_INLINE_H, GSTAB_H, LIBFUNCS_H)
14033 (GRAPHITE_HTAB_H): Remove.
14035 2013-09-25 Tom Tromey <tromey@redhat.com>
14037 * config/mcore/t-mcore (CROSS_FLOAT_H): Remove.
14039 2013-09-25 Tom Tromey <tromey@redhat.com>
14041 * config/t-glibc (glibc-c.o): Use COMPILE and POSTCOMPILE.
14043 2013-09-25 Tom Tromey <tromey@redhat.com>
14045 * config/i386/t-i386 (i386.o): Remove.
14046 (i386-c.o): Use COMPILE and POSTCOMPILE.
14048 2013-09-25 Tom Tromey <tromey@redhat.com>
14050 * Makefile.in ($(out_object_file)): Use COMPILE and POSTCOMPILE.
14052 2013-09-25 Tom Tromey <tromey@redhat.com>
14054 * Makefile.in (graph.o, sbitmap.o, sparseset.o, gcc-ar.o)
14055 (gcc-ranlib.o, gcc-nm.o, collect2.o, collect2-aix.o, tlink.o)
14056 (lto-wrapper.o, default-c.o, attribs.o, incpath.o, prefix.o)
14057 (gcc.o, options.o, options-save.o, version.o, gtype-desc.o)
14058 (trans-mem.o, ggc-common.o, ggc-page.o, ggc-none.o, stringpool.o)
14059 (convert.o, double-int.o, lto-compress.o, data-streamer-in.o)
14060 (data-streamer-out.o, data-streamer.o, gimple-streamer-in.o)
14061 (gimple-streamer-out.o, tree-streamer.o, tree-streamer-in.o)
14062 (tree-streamer-out.o, streamer-hooks.o, lto-cgraph.o)
14063 (lto-streamer-in.o, lto-streamer-out.o, lto-section-in.o)
14064 (lto-section-out.o, lto-opts.o, lto-streamer.o, langhooks.o)
14065 (test-dump.o, tree.o, tree-dump.o, tree-inline.o, print-tree.o)
14066 (stor-layout.o, asan.o, tsan.o, ubsan.o, tree-ssa-tail-merge.o)
14067 (tree-ssa-structalias.o, tree-ssa-uninit.o, tree-ssa.o)
14068 (tree-into-ssa.o, tree-ssa-ter.o, tree-ssa-coalesce.o)
14069 (tree-outof-ssa.o, tree-ssa-dse.o, tree-ssa-forwprop.o)
14070 (tree-ssa-phiprop.o, tree-ssa-ifcombine.o, tree-ssa-phiopt.o)
14071 (tree-nrv.o, tree-ssa-copy.o, tree-ssa-propagate.o)
14072 (tree-ssa-dom.o, tree-ssa-uncprop.o, tree-ssa-threadedge.o)
14073 (tree-ssa-threadupdate.o, tree-ssanames.o, tree-phinodes.o)
14074 (domwalk.o, tree-ssa-live.o, tree-ssa-copyrename.o)
14075 (tree-ssa-pre.o, tree-ssa-sccvn.o)
14076 (gimple-ssa-strength-reduction.o, tree-vrp.o, tree-cfg.o)
14077 (tree-cfgcleanup.o, tree-tailcall.o, tree-ssa-sink.o)
14078 (tree-nested.o, tree-if-conv.o, tree-iterator.o, tree-dfa.o)
14079 (tree-ssa-operands.o, tree-eh.o, tree-ssa-loop.o)
14080 (tree-ssa-loop-unswitch.o, tree-ssa-address.o)
14081 (tree-ssa-loop-niter.o, tree-ssa-loop-ivcanon.o)
14082 (tree-ssa-loop-ch.o, tree-ssa-loop-prefetch.o, tree-predcom.o)
14083 (tree-ssa-loop-ivopts.o, tree-affine.o, tree-ssa-loop-manip.o)
14084 (tree-ssa-loop-im.o, tree-ssa-math-opts.o, tree-ssa-alias.o)
14085 (tree-ssa-reassoc.o, tree-optimize.o, gimplify.o)
14086 (gimple-iterator.o, gimple-fold.o, gimple-low.o, omp-low.o)
14087 (tree-browser.o, omega.o, tree-chrec.o, tree-scalar-evolution.o)
14088 (tree-data-ref.o, sese.o, graphite.o, graphite-blocking.o)
14089 (graphite-clast-to-gimple.o, graphite-dependences.o)
14090 (graphite-interchange.o, graphite-poly.o)
14091 (graphite-scop-detection.o, graphite-sese-to-poly.o)
14092 (graphite-optimize-isl.o, tree-vect-loop.o)
14093 (tree-vect-loop-manip.o, tree-vect-patterns.o, tree-vect-slp.o)
14094 (tree-vect-stmts.o, tree-vect-data-refs.o, tree-vectorizer.o)
14095 (vtable-verify.o, tree-loop-distribution.o, tree-parloops.o)
14096 (tree-stdarg.o, tree-object-size.o, internal-fn.o, gimple.o)
14097 (gimple-pretty-print.o, tree-mudflap.o, tree-nomudflap.o)
14098 (tree-pretty-print.o, tree-diagnostic.o, fold-const.o)
14099 (diagnostic.o, diagnostic-color.o, opts.o, opts-global.o)
14100 (opts-common.o, targhooks.o, common/common-targhooks.o, input.o)
14101 (toplev.o, hwint.o, passes.o, plugin.o, main.o, host-default.o)
14102 (rtl-error.o, rtl.o, print-rtl.o, rtlanal.o, varasm.o, function.o)
14103 (statistics.o, stmt.o, except.o, expr.o, dojump.o, builtins.o)
14104 (calls.o, expmed.o, explow.o, optabs.o, dbxout.o, debug.o)
14105 (sdbout.o, dwarf2out.o, dwarf2cfi.o, dwarf2asm.o, vmsdbgout.o)
14106 (xcoffout.o, godump.o, emit-rtl.o, real.o, realmpfr.o, dfp.o)
14107 (fixed-value.o, jump.o, simplify-rtx.o, symtab.o, cgraph.o)
14108 (cgraphunit.o, cgraphclones.o, cgraphbuild.o, varpool.o, ipa.o)
14109 (ipa-profile.o, ipa-devirt.o, ipa-prop.o, ipa-ref.o, ipa-cp.o)
14110 (ipa-split.o, ipa-inline.o, ipa-inline-analysis.o)
14111 (ipa-inline-transform.o, ipa-utils.o, ipa-reference.o)
14112 (ipa-pure-const.o, coverage.o, cselib.o, cse.o, dce.o, dumpfile.o)
14113 (dse.o, fwprop.o, web.o, ree.o, cprop.o, gcse.o, store-motion.o)
14114 (resource.o, lcm.o, mode-switching.o, tree-ssa-dce.o)
14115 (tree-call-cdce.o, tree-ssa-ccp.o, tree-ssa-strlen.o, tree-sra.o)
14116 (tree-switch-conversion.o, tree-complex.o, tree-emutls.o)
14117 (tree-vect-generic.o, df-core.o, df-problems.o, df-scan.o)
14118 (regstat.o, valtrack.o, var-tracking.o, profile.o, mcf.o)
14119 (tree-profile.o, value-prof.o, loop-doloop.o, alloc-pool.o)
14120 (auto-inc-dec.o, cfg.o, cfghooks.o, cfgexpand.o, cfgrtl.o)
14121 (cfganal.o, cfgbuild.o, cfgcleanup.o, cfgloop.o, cfgloopanal.o)
14122 (graphds.o, loop-iv.o, loop-invariant.o, cfgloopmanip.o)
14123 (loop-init.o, loop-unswitch.o, loop-unroll.o, dominance.o)
14124 (et-forest.o, combine.o, reginfo.o, bitmap.o, vec.o, hash-table.o)
14125 (reload.o, reload1.o, rtlhooks.o, postreload.o, postreload-gcse.o)
14126 (caller-save.o, bt-load.o, reorg.o, alias.o, stack-ptr-mod.o)
14127 (init-regs.o, ira-build.o, ira-costs.o, ira-conflicts.o)
14128 (ira-color.o, ira-emit.o, ira-lives.o, ira.o, lra.o)
14129 (lra-assigns.o, lra-coalesce.o, lra-constraints.o)
14130 (lra-eliminations.o, lra-lives.o, lra-spills.o, regmove.o)
14131 (combine-stack-adj.o, compare-elim.o, ddg.o, modulo-sched.o)
14132 (haifa-sched.o, sched-deps.o, sched-rgn.o, sched-ebb.o)
14133 (sched-vis.o, sel-sched.o, sel-sched-dump.o, sel-sched-ir.o)
14134 (final.o, recog.o, reg-stack.o, sreal.o, predict.o, lists.o)
14135 (bb-reorder.o, tracer.o, timevar.o, regcprop.o, regrename.o)
14136 (ifcvt.o, params.o, pointer-set.o, hooks.o, pretty-print.o)
14137 (errors.o, dbgcnt.o, lower-subreg.o, target-globals.o)
14138 (hw-doloop.o, file-find.o, context.o, $(common_out_object_file))
14139 (insn-attrtab.o, insn-automata.o, insn-dfatab.o, insn-emit.o)
14140 (insn-enums.o, insn-extract.o, insn-latencytab.o, insn-modes.o)
14141 (insn-opinit.o, insn-output.o, insn-peep.o, insn-preds.o)
14142 (insn-recog.o, intl.o, cppbuiltin.o, cppdefault.o, gcov.o)
14143 (gcov-dump.o): Remove.
14144 (default-c.o): Use COMPILE and POSTCOMPILE.
14145 (CFLAGS-gcc.o): New variable.
14146 ($(common_out_object_file)): Use COMPILE and POSTCOMPILE.
14148 2013-09-25 Tom Tromey <tromey@redhat.com>
14150 * Makefile.in (c-family/cppspec.o, c-family/c-common.o)
14151 (c-family/c-cppbuiltin.o, c-family/c-dump.o, c-family/c-format.o)
14152 (c-family/c-gimplify.o, c-family/c-lex.o, c-family/c-omp.o)
14153 (c-family/c-opts.o, c-family/c-pch.o, c-family/c-ppoutput.o)
14154 (c-family/c-pragma.o, c-family/c-pretty-print.o)
14155 (c-family/c-semantics.o, c-family/c-ada-spec.o)
14156 (c-family/array-notation-common.o, c-family/stub-objc.o)
14157 (c-family/c-ubsan.o): Remove.
14159 2013-09-25 Tom Tromey <tromey@redhat.com>
14161 * Makefile.in (C_TREE_H): Reference c/c-tree.h.
14163 2013-09-25 Tom Tromey <tromey@redhat.com>
14165 * Makefile.in (DRIVER_DEFINES): Use $(and), not shell code,
14166 to add -DENABLE_SHARED_LIBGCC.
14167 (gcc.o): Don't use subshell.
14169 2013-09-25 Tom Tromey <tromey@redhat.com>
14171 * Makefile.in (OUTPUT_OPTION): Define as "-o $@".
14172 * configure.ac: Don't invoke AM_PROG_CC_C_O.
14173 (NO_MINUS_C_MINUS_O, OUTPUT_OPTION): Don't subst.
14174 * configure, config.in: Rebuild.
14176 2013-09-25 Tom Tromey <tromey@redhat.com>
14178 * Makefile.in (CCDEPMODE, DEPDIR, depcomp, COMPILE.base)
14179 (COMPILE, POSTCOMPILE): New variables.
14180 (.cc.o .c.o): Use COMPILE, POSTCOMPILE.
14181 (DEPFILES): New variable.
14182 Include ".Po" files.
14183 * configure.ac: Add checks for dependency checking.
14184 * configure, aclocal.m4: Regenerate.
14186 2013-09-25 Tom Tromey <tromey@redhat.com>
14188 * Makefile.in (ALL_HOST_BACKEND_OBJS): Add lto-wrapper.o.
14189 ($(ALL_HOST_OBJS)): Move order-only dependency to end of file.
14191 2013-09-25 Tom Tromey <tromey@redhat.com>
14193 * Makefile.in (generated_files): Add options.h,
14194 target-hooks-def.h, insn-opinit.h,
14195 common/common-target-hooks-def.h, pass-instances.def,
14196 c-family/c-target-hooks-def.h.
14198 2013-09-25 Jeff Law <law@redhat.com>
14200 * tree-ssa-threadedge.c (thread_across_edge): Use foo.last () rather
14201 than foo[foo.length () - 1] to access last member in a vec.
14202 * tree-ssa-threadupdate.c (register_jump_thread): Similarly.
14204 2013-09-25 Richard Biener <rguenther@suse.de>
14206 PR middle-end/58521
14207 * tree.c (iterative_hash_expr): Remove MEM_REF special handling.
14209 2013-09-25 Jan Hubicka <jh@suse.cz>
14211 * cgraph.c (cgraph_resolve_speculation): Use semantical equivalency
14214 2013-09-25 Marek Polacek <polacek@redhat.com>
14217 * ubsan.c (ubsan_type_descriptor): Handle IDENTIFIER_NODEs
14218 when determining the type name.
14220 2013-09-24 Oleg Endo <olegendo@gcc.gnu.org>
14222 * config/sh/sh.md: Fix formatting.
14224 2013-09-24 Xinliang David Li <davidxl@google.com>
14226 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment): Check
14227 max peel iterations parameter.
14228 * param.def: New parameter.
14229 * doc/invoke.texi: Document New parameter.
14231 2013-09-24 Christophe Lyon <christophe.lyon@linaro.org>
14233 * gimple-pretty-print.c: Various whitespace tweaks.
14234 * tree-core.h: Likewise.
14235 * tree-pretty-print.c: Likewise.
14236 * tree-ssa-alias.c: Likewise.
14237 * tree-ssa-copy.c: Likewise.
14238 * tree-ssanames.c: Likewise.
14239 * tree-ssanames.h: Likewise.
14240 * tree-vrp.c: Likewise.
14242 2013-09-24 Alan Modra <amodra@gmail.com>
14244 PR middle-end/57134
14245 PR middle-end/57586
14246 * stmt.c (expand_asm_operands): Call expand_expr with EXPAND_MEMORY
14247 for output operands that disallow regs. Don't use EXPAND_WRITE on
14250 2013-09-24 Richard Biener <rguenther@suse.de>
14252 PR middle-end/58513
14253 * tree.c (reference_alias_ptr_type): Move ...
14254 * alias.c (reference_alias_ptr_type): ... here and implement
14255 in terms of the new reference_alias_ptr_type_1.
14256 (ref_all_alias_ptr_type_p): New helper.
14257 (get_deref_alias_set_1): Drop flag_strict_aliasing here,
14258 use ref_all_alias_ptr_type_p.
14259 (get_deref_alias_set): Add flag_strict_aliasing check here.
14260 (reference_alias_ptr_type_1): New function, split out from ...
14261 (get_alias_set): ... here.
14262 (alias_ptr_types_compatible_p): New function.
14263 * alias.h (reference_alias_ptr_type): Declare.
14264 (alias_ptr_types_compatible_p): Likewise.
14265 * tree.h (reference_alias_ptr_type): Remove.
14266 * fold-const.c (operand_equal_p): Use alias_ptr_types_compatible_p
14267 to compare MEM_REF alias types.
14269 2013-09-24 Richard Biener <rguenther@suse.de>
14271 * tree-vrp.c (vrp_finalize): Check for SSA name presence.
14273 2013-09-23 Michael Meissner <meissner@linux.vnet.ibm.com>
14275 * config/rs6000/rs6000.c (rs6000_vector_reload): Delete, combine
14276 reload helper function arrays into a single array reg_addr.
14277 (reload_fpr_gpr): Likewise.
14278 (reload_gpr_vsx): Likewise.
14279 (reload_vsx_gpr): Likewise.
14280 (struct rs6000_reg_addr): Likewise.
14281 (reg_addr): Likewise.
14282 (rs6000_debug_reg_global): Change rs6000_vector_reload,
14283 reload_fpr_gpr, reload_gpr_vsx, reload_vsx_gpr uses to reg_addr.
14284 (rs6000_init_hard_regno_mode_ok): Likewise.
14285 (rs6000_secondary_reload_direct_move): Likewise.
14286 (rs6000_secondary_reload): Likewise.
14288 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Add new
14289 constraints: wu, ww, and wy. Repurpose wv constraint added during
14290 power8 changes. Put wg constraint in alphabetical order.
14292 * config/rs6000/rs6000.opt (-mvsx-scalar-float): New debug switch
14293 for future work to add ISA 2.07 VSX single precision support.
14294 (-mvsx-scalar-double): Change default from -1 to 1, update
14295 documentation comment.
14296 (-mvsx-scalar-memory): Rename debug switch to -mupper-regs-df.
14297 (-mupper-regs-df): New debug switch to control whether DF values
14298 can go in the traditional Altivec registers.
14299 (-mupper-regs-sf): New debug switch to control whether SF values
14300 can go in the traditional Altivec registers.
14302 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Print wu, ww,
14303 and wy constraints.
14304 (rs6000_init_hard_regno_mode_ok): Use ssize_t instead of int for
14305 loop variables. Rename -mvsx-scalar-memory to -mupper-regs-df.
14306 Add new constraints, wu/ww/wy. Repurpose wv constraint.
14307 (rs6000_debug_legitimate_address_p): Print if we are running
14308 before, during, or after reload.
14309 (rs6000_secondary_reload): Add a comment.
14310 (rs6000_opt_masks): Add -mupper-regs-df, -mupper-regs-sf.
14312 * config/rs6000/constraints.md (wa constraint): Sort w<x>
14313 constraints. Update documentation string.
14314 (wd constraint): Likewise.
14315 (wf constraint): Likewise.
14316 (wg constraint): Likewise.
14317 (wn constraint): Likewise.
14318 (ws constraint): Likewise.
14319 (wt constraint): Likewise.
14320 (wx constraint): Likewise.
14321 (wz constraint): Likewise.
14322 (wu constraint): New constraint for ISA 2.07 SFmode scalar
14324 (ww constraint): Likewise.
14325 (wy constraint): Likewise.
14326 (wv constraint): Repurpose ISA 2.07 constraint that we did not use
14327 in the previous submissions.
14328 * doc/md.texi (PowerPC and IBM RS6000): Likewise.
14330 2013-09-23 Richard Sandiford <rdsandiford@googlemail.com>
14332 * doc/rtl.texi (REG_NOTES): Say that int_list can also be used.
14333 (REG_BR_PROB): Say that the probability is stored in an int_list.
14334 * reg-notes.def: Update commentary to mention INT_LIST.
14335 * rtl.def (EXPR_LIST, INSN_LIST): Capitalize comments.
14336 (INT_LIST): New rtx.
14337 * rtl.h (add_int_reg_note, add_shallow_copy_of_reg_note): Declare.
14338 * rtlanal.c (int_reg_note_p): New function.
14339 (alloc_reg_note): Assert that the note does not have an int argument.
14340 (add_int_reg_note, add_shallow_copy_of_reg_note): New functions.
14341 * combine.c (distribute_notes): Use add_shallow_copy_of_rtx.
14342 * cse.c (cse_process_notes_1): Expect REG_EQUAL to be an EXPR_LIST
14343 rather than an INSN_LIST. Handle INT_LIST.
14344 * ifcvt.c (cond_exec_process_insns): Take the probability as an int
14345 rather than an rtx. Use gen_rtx_INT_LIST to create a REG_BR_PROB note.
14346 (cond_exec_process_if_block): Use XINT to extract REG_BR_PROB values.
14347 Manipulate them as ints rather than rtxes.
14348 * reg-stack.c (subst_asm_stack_regs): Only handle EXPR_LIST notes.
14349 * regmove.c (copy_src_to_dest): Likewise.
14350 * sched-vis.c (print_insn_with_notes): Handle INT_LIST.
14352 * config/i386/winnt.c (i386_pe_seh_unwind_emit): Sink pat assignment
14353 into the cases that need it.
14354 * config/arm/arm.c (arm_unwind_emit): Likewise.
14356 * asan.c (asan_clear_shadow): Use add_int_reg_note for REG_BR_PROB.
14357 * emit-rtl.c (try_split, emit_copy_of_insn_after): Likewise.
14358 * loop-doloop.c (add_test, doloop_modify): Likewise.
14359 * loop-unswitch.c (compare_and_jump_seq): Likewise.
14360 * optabs.c (emit_cmp_and_jump_insn_1): Likewise.
14361 * predict.c (combine_predictions_for_insn): Likewise.
14362 * print-rtl.c (print_rtx): Handle INT_LIST.
14363 * config/aarch64/aarch64.c (aarch64_emit_unlikely_jump): Likewise.
14364 * config/alpha/alpha.c (emit_unlikely_jump): Likewise.
14365 * config/arm/arm.c (emit_unlikely_jump): Likewise.
14366 * config/i386/i386.c (ix86_expand_split_stack_prologue): Likewise.
14367 (ix86_split_fp_branch, predict_jump): Likewise.
14368 * config/rs6000/rs6000.c (emit_unlikely_jump): Likewise.
14369 * config/sh/sh.c (expand_cbranchsi4): Likewise.
14370 * config/spu/spu.c (ea_load_store_inline): Likewise.
14372 * cfgbuild.c (compute_outgoing_frequencies): Use XINT to access the
14373 value of a REG_BR_PROB note.
14374 * cfgrtl.c (force_nonfallthru_and_redirect): Likewise.
14375 (update_br_prob_note, rtl_verify_edges, purge_dead_edges): Likewise.
14376 * emit-rtl.c (try_split): Likewise.
14377 * predict.c (br_prob_note_reliable_p): Likewise.
14378 (invert_br_probabilities, combine_predictions_for_insn): Likewise.
14379 * reorg.c (mostly_true_jump): Likewise.
14380 * config/bfin/bfin.c (cbranch_predicted_taken_p): Likewise.
14381 * config/frv/frv.c (frv_print_operand_jump_hint): Likewise.
14382 * config/i386/i386.c (ix86_print_operand): Likewise.
14383 * config/ia64/ia64.c (ia64_print_operand): Likewise.
14384 * config/mmix/mmix.c (mmix_print_operand): Likewise.
14385 * config/rs6000/rs6000.c (output_cbranch): Likewise.
14386 * config/s390/s390.c (s390_expand_tbegin): Likewise.
14387 * config/sh/sh.c (sh_print_operand, sh_adjust_cost): Likewise.
14388 * config/sparc/sparc.c (output_cbranch): Likewise.
14389 * config/spu/spu.c (get_branch_target): Likewise.
14390 * config/tilegx/tilegx.c (cbranch_predicted_p): Likewise.
14391 * config/tilepro/tilepro.c (cbranch_predicted_p): Likewise.
14393 2013-09-23 Jan Hubicka <jh@suse.cz>
14395 * ipa-cp.c (ipa_get_indirect_edge_target_1): Add sanity check
14397 * ipa-utils.h (possible_polymorphic_call_target_p): New function.
14398 * ipa-devirt.c (possible_polymorphic_call_target_p): Be tolerant
14400 * gimple-fold.c: Include ipa-utils.h and gimple-pretty-print.h
14401 (gimple_fold_call): Dump inconsistent devirtualizations; add
14402 sanity check for type based devirtualizations.
14403 * ipa-prop.c: Include ipa-utils.h
14404 (ipa_intraprocedural_devirtualization): Add sanity check.
14405 (try_make_edge_direct_virtual_call): Likewise.
14407 2013-09-23 Eric Botcazou <ebotcazou@adacore.com>
14409 * tree-ssa-ccp.c (insert_clobber_before_stack_restore): Recurse on copy
14410 assignment statements.
14412 2013-09-23 Kugan Vivekanandarajah <kuganv@linaro.org>
14414 * gimple-pretty-print.c (dump_ssaname_info): New function.
14415 (dump_gimple_phi): Call it.
14416 (pp_gimple_stmt_1): Likewise.
14417 * tree-core.h (tree_ssa_name): New union ssa_name_info_type field.
14418 (range_info_def): Declare.
14419 * tree-pretty-print.c (pp_double_int): New function.
14420 (dump_generic_node): Call it.
14421 * tree-pretty-print.h (pp_double_int): Declare.
14422 * tree-ssa-alias.c (dump_alias_info): Check pointer type.
14423 * tree-ssanames.h (range_info_def): New structure.
14424 (value_range_type): Move definition here.
14425 (set_range_info, value_range_type, duplicate_ssa_name_range_info):
14427 * tree-ssanames.c (make_ssa_name_fn): Check pointer type at
14429 (set_range_info): New function.
14430 (get_range_info): Likewise.
14431 (duplicate_ssa_name_range_info): Likewise.
14432 (duplicate_ssa_name_fn): Check pointer type and call
14433 duplicate_ssa_name_range_info.
14434 * tree-ssa-copy.c (fini_copy_prop): Likewise.
14435 * tree-vrp.c (value_range_type): Remove definition, now in
14437 (vrp_finalize): Call set_range_info to update value range of SSA_NAMEs.
14438 * tree.h (SSA_NAME_PTR_INFO): Macro changed to access via union.
14439 (SSA_NAME_RANGE_INFO): New macro.
14441 2013-09-23 Richard Biener <rguenther@suse.de>
14443 PR tree-optimization/58464
14444 * tree-ssa-pre.c (phi_trans_lookup): Remove.
14445 (phi_trans_add): Change to add conditionally on being not present.
14446 (phi_translate_1): Remove recursion detection here.
14447 (phi_translate): Pre-seed the cache with NULL to catch
14448 recursion here in a more generic way.
14449 (bitmap_find_leader): Adjust comment.
14450 (get_representative_for): Dump value-numbers.
14451 (create_expression_by_pieces): Likewise.
14452 (insert_into_preds_of_block): Likewise.
14454 2013-09-23 Christian Bruel <christian.bruel@st.com>
14457 * config/sh/sh.md (movsf_ie): Allow fpul_operand.
14458 * config/sh/predicate.md (arith_reg_operand): Disallow FPUL_REG.
14460 2013-09-23 James Greenhalgh <james.greenhalgh@arm.com>
14463 2013-09-20 Renlin Li <renlin.li@arm.com>
14465 * config/aarch64/aarch64.c (aarch64_expand_prologue): Use
14467 (aarch64_expand_epilogue): Likewise.
14468 (aarch64_legitimize_reload_address): Likewise.
14470 2013-09-22 Eric Botcazou <ebotcazou@adacore.com>
14472 * gimplify.c (gimplify_asm_expr): Reset the TREE_CHAIN of clobbers to
14473 NULL_TREE before pushing them onto the vector. Likewise for labels.
14475 2013-09-21 Eric Botcazou <ebotcazou@adacore.com>
14477 * config/ia64/predicates.md (ia64_cbranch_operator): Accept unordered
14478 comparison operators when -fno-trapping-math is in effect.
14479 * config/ia64/ia64.c (ia64_expand_compare): Add support for unordered
14480 comparison operators in TFmode and assert that unsupported operators
14482 (ia64_print_operand): Likewise.
14484 2013-09-21 Jan Hubicka <jh@suse.cz>
14486 * x86-tune.def (partial_reg_stall): Disable for CoreI7 and newer.
14487 (sse_typeless_stores): Enable for core
14488 (sse_load0_by_pxor): Likewise.
14489 (four_jump_limit): Disable for core.
14490 (pad_returns): Likewise.
14491 (avoid_vector_decode): Likewise.
14492 (fuse_cmp_and_branch): Enable for cores.
14493 * i386.c (x86_accumulate_outgoing_args): Disable for cores.
14495 2013-09-20 John David Anglin <danglin@gcc.gnu.org>
14497 PR middle-end/56791
14498 * config/pa/pa.c (pa_option_override): Disable auto increment and
14499 decrement instructions until reload is completed.
14501 * config/pa/pa-linux.h (TARGET_OS_CPP_BUILTINS): Define
14502 __GCC_HAVE_SYNC_COMPARE_AND_SWAP_1, __GCC_HAVE_SYNC_COMPARE_AND_SWAP_2,
14503 and __GCC_HAVE_SYNC_COMPARE_AND_SWAP_4.
14505 2013-09-20 DJ Delorie <dj@redhat.com>
14506 Nick Clifton <nickc@redhat.com>
14508 * config/rl78/rl78.c: Various whitespace and comment tweaks.
14509 (need_to_save): Save bank 0 on interrupts.
14510 (characterize_address): Strip far address wrappers.
14511 (rl78_as_legitimate_address): Likewise.
14512 (transcode_memory_rtx): Likewise.
14513 (rl78_peep_movhi_p): Disable this peephole after devirt.
14514 (rl78_propogate_register_origins): Forget all origins when a
14516 * config/rl78/rl78-virt.md: Various whitespace tweaks.
14517 * config/rl78/rl78-real.md: Various whitespace tweaks. Additional
14519 * config/rl78/rl78.md (sel_rb): Disable for G10 just in case.
14520 * config/rl78/rl78-expand.md (movqi): Check for subregs of consts.
14521 * config/rl78/rl78.h (LINK_SPEC): Pass -gc-sections unless
14523 * config/rl78/constraints.md: Various whitespace and paren tweaks.
14525 2013-09-20 John David Anglin <danglin@gcc.gnu.org>
14527 * config/pa/pa.md: In "scc" insn patterns, change output template to
14528 handle const0_rtx in reg_or_0_operand operands.
14530 2013-09-20 Martin Husemann <martin@NetBSD.org>
14533 * config/vax/vax.c (vax_output_int_move): Use D format specifier.
14534 * config/vax/vax.md (ashldi3, <unnamed>): Ditto.
14536 2013-09-20 Richard Biener <rguenther@suse.de>
14538 PR middle-end/58484
14539 * tree-scalar-evolution.c (struct scev_info_str): Shrink by
14540 remembering SSA name version and block index.
14541 (new_scev_info_str): Adjust.
14542 (hash_scev_info): Likewise. Also hash the block index.
14543 (eq_scev_info): Adjust.
14544 (find_var_scev_info): Likewise.
14545 (struct instantiate_cache_entry): Remove.
14546 (struct instantiate_cache_type): Use a htab to map name, block
14548 (instantiate_cache_type::~instantiate_cache_type): Adjust.
14549 (get_instantiated_value_entry): Likewise.
14550 (hash_idx_scev_info, eq_idx_scev_info): New functions.
14551 (instantiate_scev_name): Adjust.
14553 2013-09-20 Jeff Law <law@redhat.com>
14555 * tree-ssa-dom.c (record_temporary_equivalences): Add comment.
14557 2013-09-20 Yufeng Zhang <yufeng.zhang@arm.com>
14559 * config/aarch64/aarch64-builtins.c (aarch64_simd_expand_args):
14560 Call aarch64_simd_expand_args to update op[argc].
14562 2013-09-20 Basile Starynkevitch <basile@starynkevitch.net>
14564 * plugin.c (parse_plugin_arg_opt): Accept equal sign inside
14567 2013-09-20 Basile Starynkevitch <basile@starynkevitch.net>
14569 * gengtype.c (file_rules): Added rule for *.cc files.
14570 (get_output_file_with_visibility): Give fatal message when no
14573 2013-09-20 Renlin Li <renlin.li@arm.com>
14575 * config/aarch64/aarch64.c (aarch64_expand_prologue): Use plus_constant.
14576 (aarch64_expand_epilogue): Likewise.
14577 (aarch64_legitimize_reload_address): Likewise.
14579 2013-09-20 Bernd Edlinger <bernd.edlinger@hotmail.de>
14581 PR middle-end/57748
14582 * expr.c (expand_assignment): Remove misalignp code path.
14584 2013-09-20 Marek Polacek <polacek@redhat.com>
14587 * ubsan.c (get_ubsan_type_info_for_type): Use TYPE_SIZE instead of
14588 TYPE_PRECISION. Add asserts.
14590 2013-09-20 Richard Biener <rguenther@suse.de>
14592 PR tree-optimization/58453
14593 * tree-loop-distribution.c (distribute_loop): Apply the cost
14594 model for -ftree-loop-distribute-patterns, too.
14596 2013-09-20 Richard Biener <rguenther@suse.de>
14598 PR middle-end/58473
14599 * tree-chrec.h (build_polynomial_chrec): Use gcc_checking_assert,
14600 make type comparison less strict.
14602 2013-09-20 Alan Modra <amodra@gmail.com>
14604 * configure: Regenerate.
14605 * aclocal.m4: Regenerate.
14607 2013-09-20 Marek Polacek <polacek@redhat.com>
14610 * doc/extend.texi: Document that attribute used is meant to be used
14611 on variables with static storage duration.
14613 2013-09-19 Jakub Jelinek <jakub@redhat.com>
14615 PR tree-optimization/58472
14616 * tree-vect-stmts.c (vectorizable_store, vectorizable_load): For
14617 simd_lane_access set inv_p = false.
14618 * omp-low.c (lower_rec_input_clauses): Set TREE_NO_WARNING on
14619 the simduid magic VAR_DECL.
14621 2013-09-19 Jan Hubicka <jh@suse.cz>
14623 * i386.c (generic_memcpy, generic_memset): Fix 32bit template.
14625 2013-09-17 Jeff Law <law@redhat.com>
14627 * tree-ssa-dom.c (record_temporary_equivalences): New function
14628 split out of dom_opt_dom_walker::after_dom_children.
14629 (dom_opt_dom_walker::thread_across_edge): Move common code
14630 in here from dom_opt_dom_walker::after_dom_children.
14631 (dom_opt_dom_walker::after_dom_children): Corresponding simplifictions.
14633 2013-09-19 Jan Hubicka <jh@suse.cz>
14635 * i386.h (TARGET_GENERIC32, TARGET_GENERIC64): Remove.
14636 (TARGET_GENERIC): Use PROCESOR_GENERIC
14637 (enum processor_type): Unify generic32 and 64.
14638 * i386.md (cpu): Likewise.
14639 * x86-tune.def (use_leave): Enable for generic32.
14640 (avoid_vector_decode, slow_imul_imm32_mem, slow_imul_imm8): Likewise.
14641 * athlon.md: Change generic64 to generic in all occurences.
14642 * i386-c.c (ix86_target_macros_internal): Unify generic64 and 32.
14643 (ix86_target_macros_internal): Likewise.
14644 * driver-i386.c (host_detect_local_cpu): Likewise.
14645 * i386.c (generic64_memcpy, generic64_memset, generic64_cost): Rename
14647 (generic_memcpy, generic_memset, generic_cost): This one.
14648 (generic32_memcpy, generic32_memset, generic32_cost): Remove.
14649 (m_GENERIC32, m_GENERIC64): Remove.
14650 (m_GENERIC): Turn into one flag.
14651 (processor_target): Unify generic tunnings.
14652 (ix86_option_override_internal): Replace generic32/64 by generic.
14653 (ix86_issue_rate): Likewise.
14654 (ix86_adjust_cost): Likewise.
14656 2013-09-19 Jan Hubicka <jh@suse.cz>
14658 * cgraph.c (cgraph_create_edge_1): Avoid uninitialized read
14659 of speculative flag.
14661 2013-09-19 Jakub Jelinek <jakub@redhat.com>
14663 * omp-low.c (expand_omp_sections): Always pass len - 1 to
14664 GOMP_sections_start, even if !exit_reachable.
14666 2013-09-18 Vladimir Makarov <vmakarov@redhat.com>
14668 * lra-constraints.c (need_for_all_save_p): Use macro
14669 HARD_REGNO_CALL_PART_CLOBBERED.
14670 * lra-lives.c (check_pseudos_live_through_calls): Use the macro to
14671 set up pseudo conflict hard regs.
14673 2013-09-18 Michael Meissner <meissner@linux.vnet.ibm.com>
14676 * config/rs6000/paired.md (movmisalignv2sf): Fix to allow memory
14679 2013-09-18 Vladimir Makarov <vmakarov@redhat.com>
14681 PR rtl-optimization/58438
14682 * lra.c (lra): Clear lra_optional_reload_pseudos in upper loop.
14683 * lra-constraints.c (undo_optional_reloads): Keep optional reloads
14684 from previous subpasses.
14686 2013-09-18 Richard Earnshaw <rearnsha@arm.com>
14688 * arm.c (arm_get_frame_offsets): Validate architecture supports
14689 LDRD/STRD before accepting the tuning preference.
14690 (arm_expand_prologue): Likewise.
14691 (arm_expand_epilogue): Likewise.
14693 2013-09-18 Richard Biener <rguenther@suse.de>
14695 PR tree-optimization/58417
14696 * tree-chrec.c (chrec_fold_plus_1): Assert that we do not
14697 have chrecs with symbols defined in the loop as operands.
14698 (chrec_fold_multiply): Likewise.
14699 * tree-scalar-evolution.c (interpret_rhs_expr): Instantiate
14700 parameters before folding binary operations.
14701 (struct instantiate_cache_entry_hasher): Remove.
14702 (struct instantiate_cache_type): Use a pointer-map.
14703 (instantiate_cache_type::instantiate_cache_type): New function.
14704 (instantiate_cache_type::get): Likewise.
14705 (instantiate_cache_type::set): Likewise.
14706 (instantiate_cache_type::~instantiate_cache_type): Adjust.
14707 (get_instantiated_value_entry): Likewise.
14708 (global_cache): New global.
14709 (instantiate_scev_r, instantiate_scev_poly, instantiate_scev_binary,
14710 instantiate_array_ref, instantiate_scev_convert, instantiate_scev_3,
14711 instantiate_scev_2, instantiate_scev_1): Do not pass along cache.
14712 (instantiate_scev_name): Adjust.
14713 (instantiate_scev): Construct global instead of local cache.
14714 (resolve_mixers): Likewise.
14716 2013-09-18 Daniel Morris <danielm@ecoscentric.com>
14717 Paolo Carlini <paolo.carlini@oracle.com>
14720 * doc/implement-cxx.texi: Fix references to the C++ standards.
14722 2013-09-18 Jakub Jelinek <jakub@redhat.com>
14724 * omp-low.c (copy_var_decl): Copy DECL_ATTRIBUTES.
14725 * tree-vect-data-refs.c (vect_analyze_data_refs): For
14726 simd_lane_access drs, update also DR_ALIGNED_TO.
14728 2013-09-18 Marek Polacek <polacek@redhat.com>
14731 * doc/extend.texi: Document no_sanitize_undefined attribute.
14732 * builtins.c (fold_builtin_0): Don't sanitize function if it has the
14733 no_sanitize_undefined attribute.
14735 2013-09-18 Nick Clifton <nickc@redhat.com>
14737 * config/msp430/msp430.h (ASM_SPEC): Pass -md on to the assembler.
14738 (ASM_DECLARE_FUNCTION_NAME): Define.
14740 2013-09-17 Trevor Saunders <tsaunders@mozilla.com>
14742 * compare-elim.c (find_comparison_dom_walker): New class
14743 (find_comparisons_in_bb): Rename to
14744 find_comparison_dom_walker::before_dom_children
14745 (find_comparisons): Adjust
14746 * domwalk.c (walk_dominator_tree): Rename to dom_walker::walk, and
14748 (init_walk_dominator_tree, fini_walk_dominator_tree): Remove
14749 * domwalk.h (dom_walk_data): Convert it To a class dom_walker.
14750 (init_walk_dominator_tree): Remove declaration.
14751 (fini_walk_dominator_tree): Remove declaration.
14752 * fwprop.c (single_def_use_dom_walker): New class
14753 (single_def_use_enter_block): Convert to
14754 single_def_use_dom_walker::before_dom_children.
14755 (single_def_use_leave_block): Convert to
14756 single_def_use_dom_walker::after_dom_children.
14757 (build_single_def_use_links): Adjust.
14758 * gimple-ssa-strength-reduction.c (find_candidates_dom_walker): New
14760 (find_candidates_in_block): Convert to
14761 find_candidates_dom_walker::before_dom_children.
14762 (execute_strength_reduction): Adjust.
14763 * graphite-sese-to-poly.c (struct bsc, build_sese_conditions): Remove.
14764 (sese_dom_walker): New class.
14765 (sese_dom_walker::sese_dom_walker): New constructor.
14766 (sese_dom_walker::~sese_dom_walker): New destructor.
14767 (build_sese_conditions_before): Convert to
14768 sese_dom_walker::before_dom_children.
14769 (build_sese_conditions_after): Convert to
14770 sese_dom_walker::after_dom_children.
14771 (build_poly_scop): Adjust
14772 * tree-into-ssa.c (rewrite_dom_walker): New class
14773 (rewrite_enter_block): Convert to
14774 rewrite_dom_walker::before_dom_children.
14775 (rewrite_leave_block): Convert to
14776 rewrite_dom_walker::after_dom_children.
14777 (rewrite_update_dom_walker): New class.
14778 (rewrite_update_enter_block): Convert to
14779 rewrite_update_dom_walker::before_dom_children.
14780 (rewrite_update_leave_block): Convert to
14781 rewrite_update_dom_walker::after_dom_children.
14782 (rewrite_blocks, rewrite_into_ssa): Adjust.
14783 (mark_def_dom_walker): New class.
14784 (mark_def_dom_walker::mark_def_dom_walker): New constructor.
14785 (mark_def_dom_walker::~mark_def_dom_walker): New destructor.
14786 (mark_def_sites_blocks): Convert to
14787 mark_def_dom_walker::before_dom_children.
14788 (mark_def_site_blocks): Remove.
14789 * tree-ssa-dom.c (dom_opt_dom_walker): New class.
14790 (tree_ssa_dominator_optimize): Adjust.
14791 (dom_thread_across_edge): Convert to method
14792 dom_opt_dom_walker::thread_across_edge.
14793 (dom_opt_enter_block): Convert to member function
14794 dom_opt_dom_walker::before_dom_children.
14795 (dom_opt_leave_block): Convert to member function
14796 dom_opt_dom_walker::after_dom_children.
14797 * tree-ssa-dse.c (dse_dom_walker): New class.
14798 (dse_enter_block): Convert to member function
14799 dse_dom_walker::before_dom_children.
14800 (tree_ssa_dse): Adjust.
14801 * tree-ssa-loop-im.c (invariantness_dom_walker): New class.
14802 (determine_invariantness_stmt): Convert to method
14803 invariantness_dom_walker::before_dom_children.
14804 (determine_invariantness): Remove
14805 (move_computations_dom_walker): New class.
14806 (move_computations_stmt): Convert to method
14807 move_computations_dom_walker::before_dom_children.
14808 (move_computations, tree_ssa_lim): Adjust.
14809 * tree-ssa-phiopt.c (nontrapping_dom_walker): New class.
14810 (nt_init_block): Convert to method
14811 notrappping_dom_walker::before_dom_children.
14812 (nt_fini_block): Convert to method
14813 method nontrapping_dom_walker::after_dom_children.
14814 (get_non_trapping): Adjust.
14815 * tree-ssa-pre.c (eliminate_dom_walker): New class.
14816 (eliminate_bb): Convert to method
14817 eliminate_dom_walker::before_dom_children.
14818 (eliminate_leave_block): Convert to method
14819 eliminate_dom_walker::after_dom_children.
14820 (eliminate): Adjust.
14821 * tree-ssa-strlen.c (strlen_dom_walker): New class.
14822 (strlen_enter_block): Convert to method
14823 strlen_dom_walker::before_dom_children.
14824 (strlen_leave_block): Convert to method
14825 method strlen_dom_walker::after_dom_children.
14826 (tree_ssa_strlen): Adjust.
14827 * tree-ssa-uncprop.c (uncprop_dom_walker): New class.
14828 (tree_ssa_uncprop): Adjust.
14829 (uncprop_leave_block): Convert to method
14830 uncprop_dom_walker::after_dom_children.
14831 (uncprop_leave_block): Convert to method
14832 uncprop_dom_walker::before_dom_children.
14834 2013-09-18 Bin Cheng <bin.cheng@arm.com>
14836 * config/arm/arm.c (thumb1_reorg): Search for flag setting insn before
14837 branch in same basic block. Check both src and dest of the move insn.
14839 2013-09-17 Nick Clifton <nickc@redhat.com>
14841 * config/rl78/rl78-real.md (bf): New pattern.
14843 * config/rl78/rl78.c (rl78_print_operand_1): Handle %B.
14844 (rl78_print_operand): Do not put a # before a %B.
14845 * config/rl78/rl78.opt: Tweak doc strings.
14847 2013-09-17 DJ Delorie <dj@redhat.com>
14849 * config/rl78/constraints.md (Wcv): Allow up to $r31.
14850 * config/rl78/rl78.c (rl78_asm_file_start: Likewise.
14851 (rl78_option_override): Likewise, if -mallregs.
14852 (is_virtual_register): Likewise.
14853 * config/rl78/rl78.h (reg_class): Extend VREGS to $r31.
14854 (REGNO_OK_FOR_BASE_P): Likewise.
14855 * config/rl78/rl78.opt (-mallregs): New.
14857 2013-09-17 Nick Clifton <nickc@redhat.com>
14859 * config/rl78/rl78.c (need_to_save): Change return type to bool.
14860 For interrupt functions: save all call clobbered registers if the
14861 interrupt handler is not a leaf function.
14862 (rl78_expand_prologue): Always recompute the frame information.
14863 For interrupt functions: only select bank 0 if one of the bank 0
14864 registers is going to be psuhed.
14866 2013-09-17 DJ Delorie <dj@redhat.com>
14868 * config/rl78/constraints.md: For each W* constraint, rename to C*
14869 and create a W* constraint that checks for an optional ES: prefix
14871 * config/rl78/rl78.md (UNS_ES_ADDR): New.
14872 (es_addr): New. Used to wrap far addresses.
14873 * config/rl78/rl78-protos.h (rl78_es_addr): New.
14874 (rl78_es_base): New.
14875 * config/rl78/rl78.c (rl78_as_legitimate_address): Accept "unspec"
14876 wrapped far addresses.
14877 (rl78_print_operand_1): Unwrap far addresses before processing.
14878 (rl78_lo16): Wrap far addresses in unspecs.
14879 (rl78_es_addr): New.
14880 (rl78_es_base): New.
14881 (insn_ok_now): Check for not-yet-wrapped far addresses.
14882 (transcode_memory_rtx): Properly re-wrap far addresses.
14884 2013-09-17 Sebastian Huber <sebastian.huber@embedded-brains.de>
14886 * config/sparc/t-rtems: Add leon3 multilibs.
14888 2013-09-17 Cong Hou <congh@google.com>
14890 * tree-vect-patterns.c (vect_recog_dot_prod_pattern): Fix a bug
14891 when checking the dot production pattern. The type of rhs operand
14892 of multiply is now checked correctly.
14894 2013-09-17 Jeff Law <law@redhat.com>
14896 * tree-ssa-dom.c (cprop_into_successor_phis): Also propagate
14897 edge implied equivalences into successor phis.
14898 * tree-ssa-threadupdate.c (phi_args_equal_on_edges): Moved into
14899 here from tree-ssa-threadedge.c.
14900 (mark_threaded_blocks): When threading through a joiner, if both
14901 successors of the joiner's clone reach the same block, verify the
14902 PHI arguments are equal. If not, cancel the jump threading request.
14903 * tree-ssa-threadedge.c (phi_args_equal_on_edges): Moved into
14904 tree-ssa-threadupdate.c
14905 (thread_across_edge): Don't check PHI argument equality when
14906 threading through joiner block here.
14908 2013-09-17 Andrew MacLeod <amacleod@redhat.com>
14910 * tree-flow.h (ssa_undefined_value_p): Remove prototype.
14911 * tree-ssa.c (ssa_undefined_value_p): Move pass independent parts here.
14912 (warn_uninit, warn_uninitialized_vars,
14913 execute_early_warn_uninitialized, make_pass_early_warn_uninitialized):
14914 Move to tree-ssa-uninit.c.
14915 * tree-ssa-uninit.c (ssa_undefined_value_p): Move to tree-ssa.c.
14916 (has_undefined_value_p): New. Pass dependant parts of
14917 ssa_undefined_value_p.
14918 (uninit_undefined_value_p): Use has_undefined_value_p.
14919 (warn_uninit, warn_uninitialized_vars,
14920 execute_early_warn_uninitialized, make_pass_early_warn_uninitialized):
14921 Move from tree-ssa.c.
14922 * tree-ssa.h: Adjust prototypes.
14924 2013-09-17 Jan Hubicka <jh@suse.cz>
14926 PR middle-end/58332
14927 * cif-code.def (FUNCTION_NOT_OPTIMIZED): New CIF code.
14928 * ipa-inline.c (can_inline_edge_p): Do not downgrade
14929 FUNCTION_NOT_OPTIMIZED.
14930 * ipa-inline-analysis.c (compute_inline_parameters): Function
14931 not optimized is not inlinable unless it is alwaysinline.
14932 (inline_analyze_function): Force calls in not optimized
14933 function not inlinable.
14935 2013-09-17 Jan Hubicka <jh@suse.cz>
14937 PR middle-end/58329
14938 * ipa-devirt.c (ipa_devirt): Be ready for symtab_nonoverwritable_alias
14940 * ipa.c (function_and_variable_visibility): Likewise.
14941 * ipa-profile.c (ipa_profile): Likewise.
14943 2013-09-17 Bernd Edlinger <bernd.edlinger@hotmail.de>
14946 * cgraph.c (cgraph_function_body_availability): Check for ifunc
14947 attribute, and don't inline the resolver in this case.
14949 2013-09-17 Teresa Johnson <tejohnson@google.com>
14951 * coverage.c (get_coverage_counts): Add missing newline.
14953 2013-09-17 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
14955 PR tree-optimization/58088
14956 * fold-const.c (mask_with_trailing_zeros): New function.
14957 (fold_binary_loc): Make sure we don't recurse infinitely
14958 when the X in (X & C1) | C2 is a tree of the form (Y * K1) & K2.
14959 Use mask_with_trailing_zeros where appropriate.
14961 2013-09-17 Yuri Rumyantsev <ysrumyan@gmail.com>
14963 * config/i386/i386.c (distance_agu_use_in_bb) : Proper initialization
14964 of 'prev' var to get better distance estimation.
14966 2013-09-17 Eric Botcazou <ebotcazou@adacore.com>
14968 * tree-inline.h (struct copy_body_data): Add transform_parameter.
14969 * tree-inline.c (is_parameter_of): New predicate.
14970 (remap_gimple_op_r): Do not propagate TREE_THIS_NOTRAP on MEM_REF if
14971 a parameter has been remapped.
14972 (copy_tree_body_r): Likewise on INDIRECT_REF and MEM_REF.
14973 (optimize_inline_calls): Initialize transform_parameter.
14974 (copy_gimple_seq_and_replace_locals): Likewise.
14975 (tree_function_versioning): Likewise.
14976 (maybe_inline_call_in_expr): Likewise.
14978 2013-09-17 Nick Clifton <nickc@redhat.com>
14980 * config/msp430/msp430-protos.h: Add prototypes for new functions.
14981 * config/msp430/msp430.c (msp430_preserve_reg_p): Add support for
14982 interrupt handlers.
14983 (is_attr_func): New function.
14984 (msp430_is_interrupt_func): New function.
14985 (is_naked_func): New function.
14986 (is_reentrant_func): New function.
14987 (is_critical_func): New function.
14988 (msp430_start_function): Add annotations for function attributes.
14989 (msp430_attr): New function.
14990 (msp430_attribute_table): New.
14991 (msp430_function_section): New function.
14992 (TARGET_ASM_FUNCTION_SECTION): Define.
14993 (msp430_builtin): New enum.
14994 (msp430_init_builtins): New function.
14995 (msp430_builtin_devl): New function.
14996 (msp430_expand_builtin): New function.
14997 (TARGET_INIT_BUILTINS): Define.
14998 (TARGET_EXPAND_BUILTINS): Define.
14999 (TARGET_BUILTIN_DECL): Define.
15000 (msp430_expand_prologue): Add support for naked, interrupt,
15001 critical and reentrant functions.
15002 (msp430_expand_epilogue): Likewise.
15003 (msp430_print_operand): Handle 'O' character.
15004 * config/msp430/msp430.h (TARGET_CPU_CPP_BUILTINS): Define
15006 * config/msp430/msp430.md (unspec): Add UNS_DINT, UNS_EINT,
15007 UNS_PUSH_INTR, UNS_POP_INTR, UNS_BIC_SR, UNS_BIS_SR.
15008 (pushm): Use a 'n' rather than an 'i' constraint.
15009 (msp_return): Add generation of the interrupt return instruction.
15010 (disable_interrupts): New pattern.
15011 (enable_interrupts): New pattern.
15012 (push_intr_state): New pattern.
15013 (pop_intr_state): New pattern.
15014 (bic_SR): New pattern.
15015 (bis_SR): New pattern.
15016 * doc/extend.texi: Document MSP430 function attributes and builtin
15019 2013-09-17 Richard Biener <rguenther@suse.de>
15021 PR tree-optimization/58432
15022 * tree-loop-distribution.c (tree_loop_distribution): Also
15023 scan PHIs for outside loop uses and seed a partition from them.
15025 2013-09-17 Bin Cheng <bin.cheng@arm.com>
15027 * gimple-ssa-strength-reduction.c (backtrace_base_for_ref): New.
15028 (restructure_reference): Call backtrace_base_for_ref.
15030 2013-09-17 Alan Modra <amodra@gmail.com>
15033 * config/rs6000/driver-rs6000.c (elf_platform): Revert 2013-06-11
15036 2013-09-16 DJ Delorie <dj@redhat.com>
15038 * config/rl78/rl78.c (rl78_asm_file_start): Specify alternate
15039 vregs location for RL78/G10.
15040 (rl78_expand_prologue): Avoid SEL on G10.
15041 (rl78_expand_epilogue): Likewise.
15042 (rl78_peep_movhi_p): Can't move a constant to memory in HImode.
15043 * config/rl78/rl78.h (TARGET_CPU_CPP_BUILTINS): Define
15044 __RL78_G10__ when appropriate.
15045 (ASM_SPEC): Pass -mg10 along to the assembler.
15046 * config/rl78/rl78.md (sel_rb): Disable for G10.
15047 * config/rl78/rl78.opt: Add -mg10 option.
15048 * config/rl78/t-rl78: Add -mg10 multilib.
15050 2013-09-16 Xinliang David Li <davidxl@google.com>
15052 * tree-if-conv.c (main_tree_if_conversion): Check new flag.
15053 * omp-low.c (omp_max_vf): Ditto.
15054 (expand_omp_simd): Ditto.
15055 * tree-vectorizer.c (vectorize_loops): Ditto.
15056 (gate_vect_slp): Ditto.
15057 (gate_increase_alignment): Ditto.
15058 * tree-ssa-pre.c (inhibit_phi_insertion): Ditto.
15059 * tree-ssa-loop.c (gate_tree_vectorize): Ditto.
15060 (gate_tree_vectorize): Name change.
15061 (tree_vectorize): Ditto.
15062 (pass_vectorize::gate): Call new function.
15063 (pass_vectorize::execute): Ditto.
15064 * opts.c: O3 default setting change.
15065 (finish_options): Check new flag.
15066 * doc/invoke.texi: Document new flags.
15067 * common.opt: New flags.
15069 2013-09-16 Andreas Schwab <schwab@linux-m68k.org>
15071 * doc/tm.texi.in (Cond Exec Macros): Remove node.
15072 (Condition Code): Don't reference it.
15073 * doc/tm.texi: Regenerate.
15075 2013-09-16 Vladimir Makarov <vmakarov@redhat.com>
15077 PR middle-end/58418
15078 * lra-constraints.c (undo_optional_reloads): Consider all optional
15079 reload even if it did not get a hard reg.
15081 2013-09-16 Teresa Johnson <tejohnson@google.com>
15083 * dumpfile.c (dump_loc): Remove newline emission.
15084 * tree-vect-data-refs.c (vect_lanes_optab_supported_p): Add newline
15085 emission to dump_printf_loc calls where missing.
15086 (vect_mark_for_runtime_alias_test): Ditto.
15087 (vect_analyze_data_ref_dependence): Ditto.
15088 (vect_analyze_data_ref_dependences): Ditto.
15089 (vect_slp_analyze_data_ref_dependence): Ditto.
15090 (vect_slp_analyze_data_ref_dependences): Ditto.
15091 (vect_compute_data_ref_alignment): Ditto.
15092 (vect_update_misalignment_for_peel): Ditto.
15093 (vect_verify_datarefs_alignment): Ditto.
15094 (vector_alignment_reachable_p): Ditto.
15095 (vect_get_data_access_cost): Ditto.
15096 (vect_enhance_data_refs_alignment): Ditto.
15097 (vect_find_same_alignment_drs): Ditto.
15098 (vect_analyze_data_refs_alignment): Ditto.
15099 (vect_analyze_group_access): Ditto.
15100 (vect_analyze_data_ref_access): Ditto.
15101 (vect_analyze_data_ref_accesses): Ditto.
15102 (vect_prune_runtime_alias_test_list): Ditto.
15103 (vect_analyze_data_refs): Ditto.
15104 (vect_create_addr_base_for_vector_ref): Ditto.
15105 (vect_create_data_ref_ptr): Ditto.
15106 (vect_grouped_store_supported): Ditto.
15107 (vect_grouped_load_supported): Ditto.
15108 * value-prof.c (check_counter): Ditto.
15109 (check_ic_target): Ditto.
15110 * tree-vect-patterns.c (vect_recog_dot_prod_pattern): Ditto.
15111 (vect_recog_widen_mult_pattern): Ditto.
15112 (vect_recog_widen_sum_pattern): Ditto.
15113 (vect_recog_over_widening_pattern): Ditto.
15114 (vect_recog_widen_shift_pattern): Ditto.
15115 (vect_recog_rotate_pattern): Ditto.
15116 (vect_recog_vector_vector_shift_pattern): Ditto.
15117 (vect_recog_divmod_pattern): Ditto.
15118 (vect_recog_mixed_size_cond_pattern): Ditto.
15119 (vect_recog_bool_pattern): Ditto.
15120 (vect_pattern_recog_1): Ditto.
15121 (vect_pattern_recog): Ditto.
15122 * tree-vect-loop.c (vect_determine_vectorization_factor): Ditto.
15123 (vect_is_simple_iv_evolution): Ditto.
15124 (vect_analyze_scalar_cycles_1): Ditto.
15125 (vect_get_loop_niters): Ditto.
15126 (vect_analyze_loop_1): Ditto.
15127 (vect_analyze_loop_form): Ditto.
15128 (vect_analyze_loop_operations): Ditto.
15129 (vect_analyze_loop_2): Ditto.
15130 (vect_analyze_loop): Ditto.
15131 (report_vect_op): Ditto.
15132 (vect_is_slp_reduction): Ditto.
15133 (vect_is_simple_reduction_1): Ditto.
15134 (vect_get_known_peeling_cost): Ditto.
15135 (vect_estimate_min_profitable_iters): Ditto.
15136 (vect_model_reduction_cost): Ditto.
15137 (vect_model_induction_cost): Ditto.
15138 (get_initial_def_for_induction): Ditto.
15139 (vect_create_epilog_for_reduction): Ditto.
15140 (vectorizable_reduction): Ditto.
15141 (vectorizable_induction): Ditto.
15142 (vectorizable_live_operation): Ditto.
15143 (vect_loop_kill_debug_uses): Ditto.
15144 (vect_transform_loop): Ditto.
15145 * tree-vect-stmts.c (vect_mark_relevant): Ditto.
15146 (vect_stmt_relevant_p): Ditto.
15147 (process_use): Ditto.
15148 (vect_mark_stmts_to_be_vectorized): Ditto.
15149 (vect_model_simple_cost): Ditto.
15150 (vect_model_promotion_demotion_cost): Ditto.
15151 (vect_model_store_cost): Ditto.
15152 (vect_get_store_cost): Ditto.
15153 (vect_model_load_cost): Ditto.
15154 (vect_get_load_cost): Ditto.
15155 (vect_init_vector_1): Ditto.
15156 (vect_get_vec_def_for_operand): Ditto.
15157 (vect_finish_stmt_generation): Ditto.
15158 (vectorizable_call): Ditto.
15159 (vectorizable_conversion): Ditto.
15160 (vectorizable_assignment): Ditto.
15161 (vectorizable_shift): Ditto.
15162 (vectorizable_operation): Ditto.
15163 (vectorizable_store): Ditto.
15164 (vectorizable_load): Ditto.
15165 (vectorizable_condition): Ditto.
15166 (vect_analyze_stmt): Ditto.
15167 (vect_transform_stmt): Ditto.
15168 (vect_is_simple_use): Ditto.
15169 * tree-vect-loop-manip.c (slpeel_make_loop_iterate_ntimes): Ditto.
15170 (vect_can_advance_ivs_p): Ditto.
15171 (vect_update_ivs_after_vectorizer): Ditto.
15172 (vect_do_peeling_for_loop_bound): Ditto.
15173 (vect_gen_niters_for_prolog_loop): Ditto.
15174 (vect_update_inits_of_drs): Ditto.
15175 (vect_create_cond_for_alias_checks): Ditto.
15176 * tree-vect-slp.c (vect_get_and_check_slp_defs): Ditto.
15177 (vect_build_slp_tree_1): Ditto.
15178 (vect_supported_load_permutation_p): Ditto.
15179 (vect_analyze_slp_instance): Ditto.
15180 (vect_analyze_slp): Ditto.
15181 (vect_make_slp_decision): Ditto.
15182 (vect_detect_hybrid_slp): Ditto.
15183 (vect_bb_vectorization_profitable_p): Ditto.
15184 (vect_slp_analyze_bb_1): Ditto.
15185 (vect_update_slp_costs_according_to_vf): Ditto.
15186 (vect_get_mask_element): Ditto.
15187 (vect_transform_slp_perm_load): Ditto.
15188 (vect_schedule_slp_instance): Ditto.
15189 (vect_schedule_slp): Ditto.
15190 (vect_slp_transform_bb): Ditto.
15191 * profile.c (read_profile_edge_counts): Ditto.
15192 (compute_branch_probabilities): Ditto.
15193 * coverage.c (get_coverage_counts): Ditto.
15195 2013-09-16 Diego Novillo <dnovillo@google.com>
15197 * tree-core.h: Add missing comment lines from refactoring of tree.h.
15199 2013-09-16 Jan Hubicka <jh@suse.cz>
15201 * gimple-fold.c (can_refer_decl_in_current_unit_p): Do not accept
15202 abstract functions; for static functions check the presence of body.
15204 2013-09-16 James Greenhalgh <james.greenhalgh@arm.com>
15206 * config/aarch64/aarch64-simd-builtins.def (fma): New.
15207 * config/aarch64/aarch64-simd.md
15208 (aarch64_mla_elt<mode>): New.
15209 (aarch64_mla_elt_<vswap_width_name><mode>): Likewise.
15210 (aarch64_mls_elt<mode>): Likewise.
15211 (aarch64_mls_elt_<vswap_width_name><mode>): Likewise.
15212 (aarch64_fma4_elt<mode>): Likewise.
15213 (aarch64_fma4_elt_<vswap_width_name><mode>): Likewise.
15214 (aarch64_fma4_elt_to_128v2df): Likewise.
15215 (aarch64_fma4_elt_to_64df): Likewise.
15216 (fnma<mode>4): Likewise.
15217 (aarch64_fnma4_elt<mode>): Likewise.
15218 (aarch64_fnma4_elt_<vswap_width_name><mode>): Likewise.
15219 (aarch64_fnma4_elt_to_128v2df): Likewise.
15220 (aarch64_fnma4_elt_to_64df): Likewise.
15221 * config/aarch64/iterators.md (VDQSF): New.
15222 * config/aarch64/arm_neon.h
15223 (vfm<as><sdq>_lane<q>_f<32, 64>): Convert to C implementation.
15224 (vml<sa><q>_lane<q>_<fsu><16, 32, 64>): Likewise.
15226 2013-09-16 James Greenhalgh <james.greenhalgh@arm.com>
15228 * config/aarch64/aarch64-simd.md (aarch64_mul3_elt<mode>): New.
15229 (aarch64_mul3_elt_<vswap_width_name><mode>): Likewise.
15230 (aarch64_mul3_elt_to_128df): Likewise.
15231 (aarch64_mul3_elt_to_64v2df): Likewise.
15232 * config/aarch64/iterators.md (VEL): Also handle DFmode.
15234 (VMUL_CHANGE_NLANES) Likewise.
15237 * config/aarch64/arm_neon.h
15238 (vmul<q>_lane<q>_<suf><16,32,64>): Convert to C implementation.
15240 2013-09-16 James Greenhalgh <james.greenhalgh@arm.com>
15242 * config/aarch64/arm_neon.h
15243 (vcvtx_high_f32_f64): Fix parameters.
15245 2013-09-16 Jan-Benedict Glaw <jbglaw@lug-owl.de>
15246 Uros Bizjak <ubizjak@gmail.com>
15248 * config/alpha.c: Include tree-ssanames.h.
15250 2013-09-16 Richard Biener <rguenther@suse.de>
15252 * tree-loop-distribution.c (enum rdg_dep_type): Add control_dd.
15253 (dot_rdg_1): Handle control_dd.
15254 (create_edge_for_control_dependence): New function.
15255 (create_rdg_edges): Add control dependences if asked for.
15256 (build_rdg): Likewise.
15257 (generate_loops_for_partition): If there are not necessary
15258 control stmts remove all their dependencies.
15259 (collect_condition_stmts, rdg_flag_loop_exits): Remove.
15260 (distribute_loop): Pass on control dependences.
15261 (tree_loop_distribution): Compute control dependences and remove
15262 restriction on number of loop nodes.
15264 2013-09-16 Jakub Jelinek <jakub@redhat.com>
15266 * ipa-prop.c (ipa_compute_jump_functions_for_edge): Return early
15267 for internal calls.
15269 2013-09-16 Richard Sandiford <rdsandiford@googlemail.com>
15271 * cse.c (try_const_anchors): Punt on CC modes.
15273 2013-09-15 Jan-Benedict Glaw <jbglaw@lug-owl.de>
15275 * config/vax/constraints.md (T): Add missing CONSTANT_P check.
15277 2013-09-14 John David Anglin <danglin@gcc.gnu.org>
15280 * config/pa/pa.c (pa_expand_prologue): Change mode in gen_rtx_POST_INC
15281 calls to word_mode.
15283 2013-09-14 Iain Sandoe <iain@codesourcery.com>
15286 * config/darwin.c (darwin_objc2_section): Note if ObjC Metadata is
15288 (darwin_objc1_section): Likewise.
15289 (darwin_file_end): Emit Image Info section when required.
15291 2013-09-14 Jan Hubicka <jh@suse.cz>
15293 * tree-into-ssa.c (gate_into_ssa): New.
15294 (pass_data_build_ssa): Use it.
15295 * cgraph.h (expand_thunk): Update prototype.
15296 * cgraphunit.c (analyze_function): Expand thunks early.
15297 (expand_thunk): Fix DECL_CONTEXT of reust_decl;
15298 build proper cgraph; set in_ssa_p; clear bogus TREE_ASM_WRITTEN;
15299 set lowered flag; do not add new function.
15300 (assemble_thunks_and_aliases): Update.
15301 * tree-ssa.c (gate_init_datastructures): New gate.
15302 (pass_data_init_datastructures): Use it.
15304 2013-09-14 Iain Sandoe <iain@codesourcery.com>
15307 * config/i386/i386.c (ix86_function_arg_regno_p): Make Darwin use the
15308 xmm register set described in the psABI.
15310 2013-09-13 Evgeny Gavrin <e.gavrin@samsung.com>
15312 * dwarf2out.c (should_emit_struct_debug): Add check
15313 for type_decl variable is not NULL.
15315 2013-09-13 Jacek Caban <jacek@codeweavers.com>
15317 * config.gcc: Use new winnt-c.c target hooks
15318 * config/t-winnt: New file
15319 * config/winnt-c.c: New file
15320 * doc/tm.texi.in: Document new hook
15321 * doc/tm.texi: Regenerated
15323 2013-09-13 Jan Hubicka <jh@suse.cz>
15325 PR middle-end/58094
15326 * ipa-inline.c (check_callers): New function.
15327 (check_caller_edge): Remove.
15328 (want_inline_function_to_all_callers_p): Also permit alises that are
15330 (inline_to_all_callers): Terminate the walk when devirtualization
15331 introduce new calls.
15333 2013-09-13 Jan Hubicka <jh@suse.cz>
15335 * ipa-inline-analysis.c (struct growth_data): Add node.
15336 (do_estimate_growth_1): Fix detection of recursion.
15338 2013-09-13 Jakub Jelinek <jakub@redhat.com>
15340 PR tree-optimization/58392
15341 * tree-cfg.c (move_sese_region_to_fn): Rename loop variable
15342 to avoid shadowing of outer loop variable. If
15343 saved_cfun->has_simduid_loops or saved_cfun->has_force_vect_loops,
15344 replace_by_duplicate_decl simduid of loops that have it set and
15345 set dest_cfun->has_simduid_loops and/or
15346 dest_cfun->has_force_vect_loops.
15347 * omp-low.c (build_outer_var_ref): Call maybe_lookup_decl_in_outer_ctx
15348 instead of maybe_lookup_decl.
15349 * tree-inline.c (copy_loops): Change blocks_to_copy argument to id.
15350 Use id->blocks_to_copy instead of blocks_to_copy. Adjust recursive
15351 call. Copy over force_vect and copy and remap simduid. Set
15352 cfun->has_simduid_loops and/or cfun->has_force_vect_loops.
15353 (copy_cfg_body): Remove blocks_to_copy argument. Use
15354 id->blocks_to_copy instead of blocks_to_copy. Adjust copy_loops
15355 caller. Don't set cfun->has_simduid_loops and/or
15356 cfun->has_force_vect_loops here.
15357 (copy_body): Remove blocks_to_copy argument. Adjust copy_cfg_body
15359 (expand_call_inline, tree_function_versioning): Adjust copy_body
15362 2013-09-13 Martin Jambor <mjambor@suse.cz>
15365 * ipa-prop.c (try_make_edge_direct_simple_call): Be less strict in
15366 the assert if the edge was a speculative one.
15368 2013-09-13 Richard Biener <rguenther@suse.de>
15370 * tree-data-ref.h (known_dependences_p): Move here ...
15371 * tree-loop-distribution.c (known_dependences_p): ... from here.
15372 (dump_rdg_component, debug_rdg_component): Remove.
15373 (dump_rdg): Adjust.
15374 (generate_loops_for_partition): Use gimple_uid instead of
15375 relying on matching stmt visit order.
15376 (rdg_build_partitions): Take starting stmt vector.
15377 (ldist_gen): Merge into ...
15378 (distribute_loop): ... this function. Do not compute starting
15380 * tree-cfg.c (gimple_duplicate_bb): Copy UID for PHIs.
15382 2013-09-13 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
15384 * config/arm/arm.md (arm_cmpsi_insn): Split rI alternative.
15385 Set type attribute correctly. Set predicable_short_it attribute.
15386 (cmpsi_shiftsi): Remove %? from output template.
15388 2013-09-13 Richard Biener <rguenther@suse.de>
15390 * tree-loop-distribution.c (struct rdg_component,
15391 rdg_defs_used_in_other_loops_p, free_rdg_components,
15392 rdg_build_components): Remove.
15393 (stmts_from_loop): Do not record virtual PHIs.
15394 (generate_loops_for_partition): Skip virtual PHIs.
15395 (build_rdg_partition_for_component): Rename to ...
15396 (build_rdg_partition_for_vertex): ... this and adjust.
15397 (rdg_build_partitions): Take a vector of starting vertices
15398 instead of components. Remove unnecessary leftover handling.
15399 (ldist_gen): Do not build components or record other stores.
15400 (distribute_loop): Do not distribute loops containing stmts
15403 2013-09-13 Christian Bruel <christian.bruel@st.com>
15406 * config/sh/sh.md (mov<mode>_reg_reg): Allow memory reloads.
15408 2013-09-13 Kai Tietz <ktietz@redhat.com>
15410 * config.gcc: Separate cases for mingw and cygwin targets,
15411 and add 64-bit cygwin target case.
15413 * config/i386/winnt-cxx.c (i386_pe_type_dllexport_p): Don't
15414 dll-export inline-functions.
15415 * config/i386/winnt.c (i386_pe_determine_dllexport_p): Likewise.
15417 2013-09-13 Jeff Law <law@redhat.com>
15419 PR middle-end/58387
15421 2013-09-06 Jeff Law <law@redhat.com>
15423 * tree-ssa-dom.c (cprop_into_successor_phis): Also propagate
15424 edge implied equivalences into successor phis.
15426 2013-09-12 DJ Delorie <dj@redhat.com>
15428 * config/rl78/rl78-virt.md: Change from | to \; for asm line
15431 2013-09-12 Brooks Moses <bmoses@google.com>
15434 * Makefile.in: Do not install driver binaries in $(target)/bin.
15436 2013-09-12 DJ Delorie <dj@redhat.com>
15438 * config/rl78/rl78.opt (mrelax): New.
15439 * config/rl78/rl78.h (ASM_SPEC): New, pass on -mrelax to gas.
15440 * config/rl78/rl78.h (LINK_SPEC): New, pass on -mrelax to ld.
15442 * config/rl78/rl78.c (rl78_expand_prologue): Use AX to copy
15444 (rl78_expand_epilogue): Likewise.
15446 2013-09-12 Vladimir Makarov <vmakarov@redhat.com>
15448 PR middle-end/58335
15449 * lra-eliminations.c (remove_reg_equal_offset_note): New.
15450 (eliminate_regs_in_insn): Rewrite frame pointer to hard frame
15451 pointer elimination with using remove_reg_equal_offset_note.
15453 2013-09-12 DJ Delorie <dj@redhat.com>
15455 * config/msp430/: New port.
15456 * config.gcc (msp430): Added.
15457 * doc/invoke.texi: Document MSP430 options.
15458 * doc/install.texi: Document msp430-elf
15459 * doc/md.texi: Document msp430-elf
15460 * doc/contrib.texi: Document msp430-elf
15462 * cfgexpand.c (expand_debug_expr): Avoid sign-extending SImode to
15465 2013-09-12 Martin Jambor <mjambor@suse.cz>
15468 * ipa-prop.c (remove_described_reference): Give up if the edge in the
15469 reference descriptor is NULL.
15470 (ipa_edge_removal_hook): If owning a reference descriptor, set its
15473 2013-09-12 Andrew MacLeod <amacleod@redhat.com>
15475 * tree-flow.h (FREE_SSANAMES): Move to tree-ssanames.c
15476 (SSANAMES, MODIFIED_NORETURN_CALLS, DEFAULT_DEFS, ptr_info_def,
15477 num_ssa_names, ssa_name): Move to tree-ssanames.h + prototypes.
15478 * tree-flow-inline.h (make_ssa_name, copy_ssa_name, duplicate_ssa_name,
15479 make_temp_ssa_name): move to tree-ssanames.h
15480 * tree-ssa-alias.h: Move prototype.
15481 * tree-ssa.h: Include tree-ssanames.h.
15482 * tree-ssanames.c (FREE_SSANAMES): Move to here.
15483 * tree-ssanames.h: New. Move items from tree-flow*.h
15484 * Makefile.in (tree-ssanames.h): Add to tree-ssanames.o and GTFILES.
15486 2013-09-12 Richard Biener <rguenther@suse.de>
15488 PR tree-optimization/58404
15489 * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Also
15490 propagate non-invariant addresses into dereferences wrapped
15491 in component references.
15493 2013-09-12 Richard Biener <rguenther@suse.de>
15495 PR tree-optimization/58402
15496 * passes.def: Move pass_late_warn_uninitialized later.
15498 2013-09-12 Andrew MacLeod <amacleod@redhat.com>
15500 * tree-ssa.h: New. Move content from tree-flow.h and
15501 tree-flow-inline.h.
15502 * tree-flow.h (_edge_var_map, edge_var_map_vector): Move to tree-ssa.h.
15503 Move prototypes belonging to tree-ssa.c.
15504 * tree-flow-inline.h (redirect_edge_var_map_def,
15505 redirect_edge_var_map_result, redirect_edge_var_map_location): Move to
15507 * gimple.h: Adjust prototypes.
15508 * tree-ssa.c (useless_type_conversion_p, types_compatible_p): Move
15510 * gimple.c (useless_type_conversion_p, types_compatible_p): Here.
15511 * tree.h: Move prototype to tree-ssa.h.
15512 * gengtype.c (open_base_files): Replace tree-flow.h with tree-ssa.h.
15513 * Makefile.in: (TREE_SSA_H, TREE_FLOW_H): Adjust dependencies.
15514 * alias.c, asan.c, builtins.c, calls.c, cfgexpand.c, cfghooks.c,
15515 cfgloop.c, cfgloopmanip.c, cgraph.c, cgraphbuild.c, cgraphclones.c,
15516 cgraphunit.c, dse.c, except.c, expr.c, final.c, fold-const.c,
15517 ggc-page.c, gimple-fold.c, gimple-iterator.c, gimple-low.c,
15518 gimple-pretty-print.c, gimple-ssa-strength-reduction.c,
15519 gimple-streamer-in.c, gimple-streamer-out.c, gimple.c, gimplify.c,
15520 graphite-blocking.c, graphite-clast-to-gimple.c,
15521 graphite-dependences.c, graphite-interchange.c,
15522 graphite-optimize-isl.c, graphite-poly.c, graphite-scop-detection.c,
15523 graphite-sese-to-poly.c, graphite.c, ipa-cp.c, ipa-inline-analysis.c,
15524 ipa-inline-transform.c, ipa-inline.c, ipa-prop.c, ipa-pure-const.c,
15525 ipa-reference.c, ipa-split.c, ipa-utils.c,
15526 loop-init.c, lto-cgraph.c, lto-section-in.c, lto-section-out.c,
15527 lto-streamer-in.c, lto-streamer-out.c, lto-streamer.c, omp-low.c,
15528 passes.c, predict.c, print-tree.c, profile.c, sese.c, targhooks.c,
15529 tracer.c, trans-mem.c, tree-call-cdce.c, tree-cfg.c, tree-cfgcleanup.c,
15530 tree-chrec.c, tree-complex.c, tree-data-ref.c, tree-dfa.c, tree-eh.c,
15531 tree-emutls.c, tree-if-conv.c, tree-inline.c, tree-into-ssa.c,
15532 tree-loop-distribution.c, tree-mudflap.c, tree-nested.c, tree-nrv.c,
15533 tree-object-size.c, tree-optimize.c, tree-outof-ssa.c, tree-parloops.c,
15534 tree-phinodes.c, tree-predcom.c, tree-pretty-print.c, tree-profile.c,
15535 tree-scalar-evolution.c, tree-sra.c, tree-ssa*.c, tree-stdarg.c,
15536 tree-streamer-in.c, tree-switch-conversion.c, tree-tailcall.c,
15537 tree-vect-data-refs.c, tree-vect-generic.c, tree-vect-loop-manip.c,
15538 tree-vect-loop.c, tree-vect-patterns.c, tree-vect-slp.c,
15539 tree-vect-stmts.c, tree-vectorizer.c, tree-vrp.c, tsan.c,
15540 value-prof.c, var-tracking.c,
15541 varpool.c, vtable-verify.c: Replace tree-flow.h with tree-ssa.h
15543 2013-09-12 Richard Biener <rguenther@suse.de>
15545 PR tree-optimization/58396
15546 * tree-loop-distribution.c (create_rdg_edges): Free unused DDRs.
15547 (build_rdg): Take a loop-nest parameter, fix memleaks.
15548 (distribute_loop): Compute loop-nest here and pass it to build_rdg.
15550 2013-09-12 Yuri Rumyantsev <ysrumyan@gmail.com>
15552 * config/i386/x86-tune.def: Turn on X86_TUNE_AVOID_MEM_OPND_FOR_CMOVE
15555 2013-09-12 Cameron McInally <cameron.mcinally@nyu.edu>
15557 * doc/extend.texi: Fix errors in x86 FMA builtin naming.
15558 The FMA instruction names should have a 'v' prefix.
15560 2013-09-12 Richard Biener <rguenther@suse.de>
15562 * tree-loop-distribution.c (dot_rdg_1): Make graph prettier.
15563 (dot_rdg): Use popen instead of system in optional code.
15564 (remaining_stmts, upstream_mem_writes): Remove global bitmaps.
15565 (already_processed_vertex_p): Adjust.
15566 (has_anti_or_output_dependence, predecessor_has_mem_write,
15567 mark_nodes_having_upstream_mem_writes, has_upstream_mem_writes,
15568 rdg_flag_uses): Remove.
15569 (rdg_flag_vertex): Simplify.
15570 (rdg_flag_vertex_and_dependent): Rely on a correct RDG and
15572 (build_rdg_partition_for_component): Process the first vertex
15573 of a component only.
15574 (ldist_gen): Do not compute remaining_stmts or upstream_mem_writes.
15576 2013-09-12 Alan Modra <amodra@gmail.com>
15578 * config/rs6000/rs6000.c (toc_relative_expr_p): Use add_cint_operand.
15580 2013-09-11 DJ Delorie <dj@redhat.com>
15581 Nick Clifton <nickc@redhat.com>
15583 * config/rl78/predicates.md (rl78_cmp_operator_signed): New.
15584 (rl78_stack_based_mem): New.
15585 * config/rl78/constraints.md (Iv08): New.
15594 * config/rl78/rl78-expand.md (movqi): Reject more SUBREG operands.
15596 (movsi): Change from expand to insn-and-split.
15597 (ashrsi3): Clobber AX.
15601 * config/rl78/rl78.md (CC_REG): Fix.
15602 (addsi3): Allow memory and immediate operands.
15603 (addsi3_internal): Split into...
15604 (addsi3_internal_virt): ...new, and ...
15605 (addsi3_internal_real): ...new.
15607 (subsi3_internal_virt): New.
15608 (subsi3_internal_real): New.
15609 (mulsi3): Add memory operand.
15610 (mulsi3_rl78): Likewise.
15611 (mulsi3_g13): Likewise.
15612 * config/rl78/rl78-real.md (cbranchqi4_real_signed): New.
15613 (cbranchqi4_real): Add more constraint options.
15614 (cbranchhi4_real): Expand pattern.
15615 (cbranchhi4_real_signed): New.
15616 (cbranchhi4_real_inverted): New.
15617 (cbranchsi4_real_lt): New.
15618 (cbranchsi4_real_ge): New.
15619 (cbranchsi4_real_signed): New.
15620 (cbranchsi4_real): New.
15622 * config/rl78/rl78-virt.md (ashrsi3_virt): Add custom cases for
15624 (lshrsi3_virt): Likewise.
15625 (ashlsi3_virt): Likewise.
15626 (cbranchqi4_virt_signed): New.
15627 (cbranchhi4_virt_signed): New.
15628 (cbranchsi4_virt): New.
15629 * config/rl78/rl78.c: Whitespace fixes throughout.
15630 (move_elim_pass): New.
15631 (pass_data_rl78_move_elim): New.
15632 (pass_rl78_move_elim): New.
15633 (make_pass_rl78_move_elim): New.
15634 (rl78_devirt_info): Run devirt earlier.
15635 (rl78_move_elim_info): New.
15636 (rl78_asm_file_start): Register it.
15637 (rl78_split_movsi): New.
15638 (rl78_as_legitimate_address): Allow virtual base registers when
15640 (rl78_addr_space_convert): Remove spurious debug stuff.
15641 (rl78_print_operand_1): Add z,s,S,r,E modifiers.
15642 (rl78_print_operand): More cases for not printing '#'.
15643 (rl78_expand_compare): Remove most of the logic.
15644 (content_memory): New.
15645 (clear_content_memory): New.
15646 (get_content_index): New.
15647 (get_content_name): New.
15648 (display_content_memory): New.
15649 (update_content): New.
15650 (record_content): New.
15651 (already_contains): New.
15652 (insn_ok_now): Re-recog insns with virtual registers.
15653 (add_postponed_content_update): New.
15654 (process_postponed_content_update): New.
15655 (gen_and_emit_move): New.
15656 (transcode_memory_rtx): Record new location content.
15657 Use gen_and_emit_move.
15658 (force_into_acc): New.
15659 (move_to_acc): Use gen_and_emit_move.
15660 (move_from_acc): Likewise.
15661 (move_acc_to_reg): Likewise.
15662 (move_to_x): Likewise.
15663 (move_to_hl): Likewise.
15664 (move_to_de): Likewise.
15665 (rl78_alloc_physical_registers_op1): Record location content.
15666 (has_constraint): New.
15667 (rl78_alloc_physical_registers_op2): Record location content.
15668 Optimize use of HL.
15669 (rl78_alloc_physical_registers_ro1): Likewise.
15670 (rl78_alloc_physical_registers_cmp): Likewise.
15671 (rl78_alloc_physical_registers_umul): Likewise.
15672 (rl78_alloc_address_registers_macax): New.
15673 (rl78_alloc_physical_registers): Initialize and set location
15674 content memory as needed.
15675 (rl78_reorg): Make sure split2 is called.
15676 (rl78_rtx_costs): New.
15678 2013-09-11 Richard Sandiford <rdsandiford@googlemail.com>
15680 * simplify-rtx.c (simplify_unary_operation_1): Use simplify_gen_binary
15681 for (not (neg ...)) and (neg (not ...)) cases.
15683 2013-09-11 Richard Biener <rguenther@suse.de>
15685 PR middle-end/58377
15686 * passes.def: Split critical edges before late uninit warning passes.
15687 * tree-cfg.c (pass_split_crit_edges): Implement clone method.
15689 2013-09-11 Jakub Jelinek <jakub@redhat.com>
15691 PR tree-optimization/58385
15692 * fold-const.c (build_range_check): If both low and high are NULL,
15693 use omit_one_operand_loc to preserve exp side-effects.
15695 2013-09-11 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
15697 * config/arm/arm.md (arm_shiftsi3): New alternative l/l/M.
15699 2013-09-11 Richard Biener <rguenther@suse.de>
15701 * tree-data-ref.c (dump_rdg_vertex, debug_rdg_vertex,
15702 dump_rdg_component, debug_rdg_component, dump_rdg, debug_rdg,
15703 dot_rdg_1, dot_rdg, rdg_vertex_for_stmt, create_rdg_edge_for_ddr,
15704 create_rdg_edges_for_scalar, create_rdg_edges, create_rdg_vertices,
15705 stmts_from_loop, known_dependences_p, build_empty_rdg,
15706 build_rdg, free_rdg, rdg_defs_used_in_other_loops_p): Move ...
15707 * tree-loop-distribution.c: ... here.
15708 * tree-data-ref.h (struct rdg_vertex, RDGV_STMT, RDGV_DATAREFS,
15709 RDGV_HAS_MEM_WRITE, RDGV_HAS_MEM_READS, RDG_STMT, RDG_DATAREFS,
15710 RDG_MEM_WRITE_STMT, RDG_MEM_READS_STMT, enum rdg_dep_type,
15711 struct rdg_edge, RDGE_TYPE, RDGE_LEVEL, RDGE_RELATION): Move ...
15712 * tree-loop-distribution.c: ... here.
15713 * tree-loop-distribution.c: Include gimple-pretty-print.h.
15714 (struct partition_s): Add loops member.
15715 (partition_alloc, partition_free, rdg_flag_uses, rdg_flag_vertex,
15716 rdg_flag_vertex_and_dependent, rdg_flag_loop_exits,
15717 build_rdg_partition_for_component, rdg_build_partitions): Adjust.
15719 2013-09-11 Alexander Ivchenko <alexander.ivchenko@intel.com>
15720 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
15721 Sergey Lega <sergey.s.lega@intel.com>
15722 Anna Tikhonova <anna.tikhonova@intel.com>
15723 Ilya Tocar <ilya.tocar@intel.com>
15724 Andrey Turetskiy <andrey.turetskiy@intel.com>
15725 Ilya Verbin <ilya.verbin@intel.com>
15726 Kirill Yukhin <kirill.yukhin@intel.com>
15727 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
15729 * config/i386/constraints.md (k): New.
15731 * config/i386/i386.c (const regclass_map): Add new mask registers.
15732 (dbx_register_map): Ditto.
15733 (dbx64_register_map): Ditto.
15734 (svr4_dbx_register_map): Ditto.
15735 (ix86_conditional_register_usage): Squash mask registers if AVX512F is
15737 (ix86_preferred_reload_class): Disable constants for mask registers.
15738 (ix86_secondary_reload): Do spill of mask register using 32-bit insn.
15739 (ix86_hard_regno_mode_ok): Support new mask registers.
15740 (x86_order_regs_for_local_alloc): Ditto.
15741 * config/i386/i386.h (FIRST_PSEUDO_REGISTER): Update.
15742 (FIXED_REGISTERS): Add new mask registers.
15743 (CALL_USED_REGISTERS): Ditto.
15744 (REG_ALLOC_ORDER): Ditto.
15745 (VALID_MASK_REG_MODE): New.
15746 (FIRST_MASK_REG): Ditto.
15747 (LAST_MASK_REG): Ditto.
15748 (reg_class): Add MASK_EVEX_REGS, MASK_REGS.
15749 (MAYBE_MASK_CLASS_P): New.
15750 (REG_CLASS_NAMES): Add MASK_EVEX_REGS, MASK_REGS.
15751 (REG_CLASS_CONTENTS): Ditto.
15752 (MASK_REGNO_P): New.
15753 (ANY_MASK_REG_P): Ditto.
15754 (HI_REGISTER_NAMES): Add new mask registers.
15755 * config/i386/i386.md (MASK0_REG, MASK1_REG, MASK2_REG, MASK3_REG,
15756 MASK4_REG, MASK5_REG, MASK6_REG, MASK7_REG): Constants for new
15758 (attribute "type"): Add mskmov, msklog.
15759 (attribute "length_immediate"): Support them.
15760 (attribute "memory"): Ditto.
15761 (attribute "prefix_0f"): Ditto.
15762 (*movhi_internal): Support new mask registers.
15763 (*movqi_internal): Ditto.
15764 (define_split): Split out clobber pattern is a logic
15765 insn on mask registers.
15766 (*k<logic><mode>): New.
15767 (*andhi_1): Extend to support mask regs.
15768 (*andqi_1): Extend to support mask regs.
15769 (kandn<mode>): New.
15770 (define_split): Split and-not to and and not if operands
15772 (*<code><mode>_1): Separate HI mode to new pattern...
15773 (*<code>hi_1): This.
15774 (*<code>qi_1): Extend to support mask regs.
15775 (kxnor<mode>): New.
15776 (kortestzhi): Ditto.
15777 (kortestchi): Ditto.
15779 (*one_cmpl<mode>2_1): Remove HImode and handle it...
15780 (*one_cmplhi2_1): ...Here, now with mask registers support.
15781 (*one_cmplqi2_1): Support new mask registers.
15782 (HI/QImode arithmetics splitter): Don't split if mask registers
15784 (HI/QImode not splitter): Ditto.
15785 * config/i386/predicated.md (mask_reg_operand): New.
15786 (general_reg_operand): Ditto.
15788 2013-09-11 Alexander Ivchenko <alexander.ivchenko@intel.com>
15790 * doc/invoke.texi: Document fxsr, xsave and xsaveopt options.
15791 * doc/extend.texi: Document fxsr, xsave and xsaveopt builtins.
15793 2013-09-10 Jeff Law <law@redhat.com>
15795 PR tree-optimization/58380
15796 * tree-ssa-threadupdate.c (thread_block): Recognize another case
15797 of threading through a buried loop header.
15799 * tree-ssa-threadedge.c (thread_around_empty_blocks): Correct
15800 return value for single successor case.
15802 2013-09-10 Jan Hubicka <jh@suse.cz>
15804 * ipa-devirt.c (ipa_devirt): Enable with LTO.
15806 2013-09-10 Richard Earnshaw <rearnsha@arm.com>
15809 * arm/vfp.md (combine_vcvt_f32_<FCVTI32typename>): Fix pattern to
15810 support conditional execution.
15811 (combine_vcvt_f64_<FCVTI32typename>): Likewise.
15813 2013-09-10 Vladimir Makarov <vmakarov@redhat.com>
15815 * lra.c (lra): Clear lra_optional_reload_pseudos before every
15817 * lra-constraints.c (curr_insn_transform): Switch on optional reloads.
15818 Check destination too to check move insn.
15819 (undo_optional_reloads): Add check that the original peudo did not
15820 changed its allocation and the optional reload was inherited on last
15821 inheritance pass. Break loop after deciding to keep optional reload.
15822 (lra_undo_inheritance): Add check that inherited pseudo still in
15825 2013-09-10 James Greenhalgh <james.greenhalgh@arm.com>
15827 * config/aarch64/aarch64.md (generic_sched): New.
15828 * config/aarch64/aarch64-generic.md (load): Make conditional
15829 on generic_sched attribute.
15830 (nonload): Likewise.
15832 2013-09-10 Jan Hubicka <jh@suse.cz>
15834 * lto-cgraph.c: Include ipa-utils.h.
15835 (compute_ltrans_boundary): Also add possible targets into the boundary.
15837 2013-09-10 Jan Hubicka <jh@suse.cz>
15839 * gimple-fold.c (gimple_get_virt_method_for_binfo): Pass real
15840 VAR_DECL of vtable rather than full expression.
15842 2013-09-10 Jan Hubicka <jh@suse.cz>
15843 Paolo Carlini <paolo.carlini@oracle.com>
15845 * cgraphunit.c (analyze_functions): Save input_location, set it
15846 to UNKNOWN_LOCATION and restore it at the end.
15848 2013-09-10 Martin Jambor <mjambor@suse.cz>
15850 * ipa-cp.c (propagate_constants_topo): Do not ignore SCC
15851 represented by a thunk.
15853 2013-09-10 Jeff Law <law@redhat.com>
15855 PR tree-optimization/58343
15856 * tree-ssa-threadupdate.c (thread_block): Identify and disable
15857 jump threading requests through loop headers buried in the middle
15858 of a jump threading path.
15860 * tree-ssa-threadedge.c (thread_around_empty_blocks): Fix thinko
15861 in return value/type.
15863 2013-09-10 Jakub Jelinek <jakub@redhat.com>
15865 PR rtl-optimization/58365
15866 * cfgcleanup.c (merge_memattrs): Also clear MEM_READONLY_P
15867 resp. MEM_NOTRAP_P if they differ, or set MEM_VOLATILE_P if
15870 2013-09-10 Richard Biener <rguenther@suse.de>
15872 * tree-data-ref.h (build_rdg): Drop all parameters but loop.
15873 * tree-data-ref.c (create_rdg_vertices): Collect all data
15874 references, signal failure to the caller, use data-ref API.
15875 (build_rdg): Compute data references only once. Maintain lifetime
15876 of data references and data dependences from within RDG.
15877 (free_rdg): Free dependence relations.
15878 * tree-loop-distribution.c (rdg_flag_uses): Drop weird code
15879 inventing extra dependences.
15880 (distribute_loop): Update for RDG API changes.
15882 2013-09-10 Kai Tietz <ktietz@redhat.com>
15884 * doc/invoke.texi (fms-extensions): Document changed
15885 behavior for ms-abi targets.
15886 * config/i386/i386.c (ix86_option_override_internal):
15887 Set default value of option -fms-extension for ms-abi targets.
15889 2013-09-10 Michael Zolotukhin <michael.v.zolotukhin@gmail.com>
15891 * config/i386/i386.c (ix86_expand_movmem): Fix epilogue generation.
15893 2013-09-10 Alan Modra <amodra@gmail.com>
15896 * config/rs6000/rs6000.md (bswapdi2_64bit): Disable for volatile mems.
15898 2013-09-10 Alan Modra <amodra@gmail.com>
15900 * config/rs6000/predicates.md (add_cint_operand): New.
15901 (reg_or_add_cint_operand, small_toc_ref): Use add_cint_operand.
15902 * config/rs6000/rs6000.md (largetoc_high_plus): Restrict offset
15903 using add_cint_operand.
15904 (largetoc_high_plus_aix): Likewise.
15906 2013-09-09 Jakub Jelinek <jakub@redhat.com>
15908 PR tree-optimization/58364
15909 * tree-ssa-reassoc.c (init_range_entry): For BIT_NOT_EXPR on
15910 BOOLEAN_TYPE, only invert in_p and continue with arg0 if
15911 the current range can't be an unconditional true or false.
15913 2013-09-09 James Greenhalgh <james.greenhalgh@arm.com>
15915 * config/aarch64/arm_neon.h (vrsqrte_f64): Fix parameter type.
15917 2013-09-09 Uros Bizjak <ubizjak@gmail.com>
15919 * ipa-prop.c (ipa_modify_call_arguments): Initialize deref_align.
15921 2013-09-09 Paolo Carlini <paolo.carlini@oracle.com>
15924 * doc/invoke.texi (-Wdelete-incomplete): Document it.
15926 2013-09-09 Ian Bolton <ian.bolton@arm.com>
15928 * config/aarch64/aarch64.c (aarch64_preferred_reload_class): Return
15929 NO_REGS for immediate that can't be moved directly into FP_REGS.
15931 2013-09-09 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
15933 * config/aarch64/aarch64.c (aarch64_select_cc_mode): Return CC_SWP for
15934 comparison with negated operand.
15935 * config/aarch64/aarch64.md (compare_neg<mode>): Match canonical
15938 2013-09-09 Richard Biener <rguenther@suse.de>
15940 PR middle-end/58326
15941 * cfgloopmanip.c (fix_bb_placements): When fixing the placement
15942 of a subloop record all its block as affecting loop-closed SSA form.
15944 2013-09-09 Richard Sandiford <rdsandiford@googlemail.com>
15946 * expmed.c (lshift_value): Take an unsigned HOST_WIDE_INT instead
15947 of an rtx/bitpos pair.
15948 (store_fixed_bit_field): Update accordingly.
15950 2013-09-09 Richard Sandiford <rdsandiford@googlemail.com>
15952 * asan.c (asan_emit_stack_protection): Use gen_int_mode instead of
15954 * builtins.c (expand_errno_check): Likewise.
15955 * dwarf2cfi.c (init_return_column_size): Likewise.
15956 * except.c (sjlj_mark_call_sites): Likewise.
15957 * expr.c (move_by_pieces_1, store_by_pieces_2): Likewise.
15958 * lra-constraints.c (emit_inc): Likewise.
15959 * ree.c (combine_set_extension): Likewise.
15960 * regmove.c (fixup_match_2): Likewise.
15961 * reload1.c (inc_for_reload): Likewise.
15963 2013-09-09 Richard Sandiford <rdsandiford@googlemail.com>
15965 * combine.c (simplify_set, expand_field_assignment, extract_left_shift)
15966 (force_to_mode, simplify_shift_const_1, simplify_comparison):
15967 Use gen_int_mode with the mode of the associated simplify_* call.
15968 * explow.c (probe_stack_range, anti_adjust_stack_and_probe): Likewise.
15969 * expmed.c (expand_shift_1): Likewise.
15970 * function.c (instantiate_virtual_regs_in_insn): Likewise.
15971 * loop-iv.c (iv_number_of_iterations): Likewise.
15972 * loop-unroll.c (unroll_loop_runtime_iterations): Likewise.
15973 * simplify-rtx.c (simplify_binary_operation_1): Likewise.
15975 2013-09-09 Richard Sandiford <rdsandiford@googlemail.com>
15977 * asan.c (asan_clear_shadow): Use gen_int_mode with the mode
15978 of the associated expand_* call.
15979 (asan_emit_stack_protection): Likewise.
15980 * builtins.c (round_trampoline_addr): Likewise.
15981 * explow.c (allocate_dynamic_stack_space, probe_stack_range): Likewise.
15982 * expmed.c (expand_smod_pow2, expand_sdiv_pow2, expand_divmod)
15983 (emit_store_flag): Likewise.
15984 * expr.c (emit_move_resolve_push, push_block, emit_single_push_insn_1)
15985 (emit_push_insn, optimize_bitfield_assignment_op, expand_expr_real_1):
15987 * function.c (instantiate_virtual_regs_in_insn): Likewise.
15988 * ifcvt.c (noce_try_store_flag_constants): Likewise.
15989 * loop-unroll.c (unroll_loop_runtime_iterations): Likewise.
15990 * modulo-sched.c (generate_prolog_epilog): Likewise.
15991 * optabs.c (expand_binop, widen_leading, expand_doubleword_clz)
15992 (expand_ctz, expand_ffs, expand_unop): Likewise.
15994 2013-09-09 Richard Sandiford <rdsandiford@googlemail.com>
15996 * alias.c (addr_side_effect_eval): Use gen_int_mode with the mode
15997 of the associated gen_rtx_* call.
15998 * caller-save.c (init_caller_save): Likewise.
15999 * combine.c (find_split_point, make_extraction): Likewise.
16000 (make_compound_operation): Likewise.
16001 * dwarf2out.c (mem_loc_descriptor): Likewise.
16002 * explow.c (plus_constant, probe_stack_range): Likewise.
16003 * expmed.c (expand_mult_const): Likewise.
16004 * expr.c (emit_single_push_insn_1, do_tablejump): Likewise.
16005 * reload1.c (init_reload): Likewise.
16006 * valtrack.c (cleanup_auto_inc_dec): Likewise.
16007 * var-tracking.c (adjust_mems): Likewise.
16008 * modulo-sched.c (sms_schedule): Likewise, but use gen_rtx_GT
16009 rather than gen_rtx_fmt_ee.
16011 2013-09-09 Jan Hubicka <jh@suse.cz>
16013 PR middle-end/58294
16014 * value-prof.c (gimple_ic): Copy also abnormal edges.
16016 2013-09-09 Richard Sandiford <rdsandiford@googlemail.com>
16018 * asan.c (asan_shadow_cst): Use gen_int_mode.
16020 2013-09-08 Jan Hubicka <jh@suse.cz>
16022 * ipa-profile.c: Add toplevel comment.
16023 (ipa_propagate_frequency_1): Be more conservative when profile is read.
16024 (contains_hot_call_p): New function.
16025 (ipa_propagate_frequency): Set frequencies based on counts when
16027 * predict.c (compute_function_frequency): Use PROFILE_READ gueard for
16028 profile; do not tamper with profile after inlining if it is read.
16030 2013-09-08 Jan Hubicka <jh@suse.cz>
16032 * ipa-prop.c (try_make_edge_direct_simple_call): Do not special case
16035 2013-09-08 Jan Hubicka <jh@suse.cz>
16037 * ipa.c (walk_polymorphic_call_targets): Fix redirection before IPA
16038 summary generation.
16040 2013-09-08 Jeff Law <law@redhat.com>
16043 * tree-ssa-threadedge.c (thread_across_edge): Fix initialization
16046 2013-09-08 Andi Kleen <ak@linux.intel.com>
16048 * tree-inline.c (estimate_num_insns): Limit asm cost to 1000.
16050 2013-09-08 Jan Hubicka <jh@suse.cz>
16052 * ipa.c (walk_polymorphic_call_targets): Fix inliner summary update.
16054 2013-09-08 Richard Sandiford <rdsandiford@googlemail.com>
16056 * ira.c (update_equiv_regs): Only call set_paradoxical_subreg
16057 for non-debug insns.
16058 * lra.c (new_insn_reg): Take the containing insn as a parameter.
16059 Only modify lra_reg_info[].biggest_mode if it's non-debug insn.
16060 (collect_non_operand_hard_regs, add_regs_to_insn_regno_info): Update
16063 2013-09-08 Jan Hubicka <jh@suse.cz>
16065 * cgraphunit.c (walk_polymorphic_call_targets): Permit 0 possible
16066 targets and devirtualize to BUILT_IN_UNREACHABLE.
16067 * timevar.def (TV_IPA_UNREACHABLE): New timevar.
16068 * ipa.c (walk_polymorphic_call_targets): New function.
16069 (symtab_remove_unreachable_nodes): Use it; do not keep all virtual
16070 functions; use the new timevar.
16071 * ipa-devirt.c (maybe_record_node): Do not insert static nodes that
16072 was removed from the program.
16073 (record_binfo): If BINFO corresponds to an anonymous namespace, we may
16074 not consider it in the walk when its vtable is dead.
16075 (possible_polymorphic_call_targets_1): Pass anonymous flag to
16077 (devirt_variable_node_removal_hook): New function.
16078 (possible_polymorphic_call_targets): Also register
16079 devirt_variable_node_removal_hook.
16080 (ipa_devirt): Do not do non-speculative devirtualization.
16081 (gate_ipa_devirt): One execute if devirtualizing speculatively.
16083 2013-09-08 Jan Hubicka <jh@suse.cz>
16085 * cgraph.h (varpool_node_hook, varpool_node_hook_list,
16086 varpool_add_node_removal_hook, varpool_add_variable_insertion_hook,
16087 varpool_remove_variable_insertion_hook): Declare.
16088 * varpool.c (varpool_node_hook_list): New structure.
16089 (first_varpool_node_removal_hook,
16090 first_varpool_variable_insertion_hook): New variables.
16091 (varpool_add_node_removal_hook, varpool_remove_node_removal_hook,
16092 varpool_call_node_removal_hooks, varpool_add_variable_insertion_hook,
16093 varpool_remove_variable_insertion_hook,
16094 varpool_call_variable_insertion_hooks): New functions.
16095 (varpool_remove_node): Use it.
16097 2013-09-08 Paolo Carlini <paolo.carlini@oracle.com>
16100 * diagnostic.c (diagnostic_build_prefix): When s.file is
16101 "<built-in>" don't output line and column numbers.
16103 2013-09-06 Jan Hubicka <jh@suse.cz>
16105 * cgraphunit.c (expand_thunk): Get body before touching arguments.
16106 * lto-streamer-out.c: Stream thunks, too.
16107 * lto-streamer-in.c (input_function): Pop cfun here
16108 (lto_read_body): Instead of here.
16110 2013-09-06 Caroline Tice <cmtice@google.com>
16112 * doc/install.texi: Add documentation for the --enable-vtable-verify
16113 and the --disable-libvtv configure options.
16115 2013-09-06 Jeff Law <law@redhat.com>
16117 * tree-ssa-dom.c (cprop_into_successor_phis): Also propagate
16118 edge implied equivalences into successor phis.
16120 2013-09-06 Joern Rennecke <joern.rennecke@embecosm.com>
16122 * resource.c (mark_referenced_resources): Handle COND_EXEC.
16124 2013-09-06 Claudiu Zissulescu <claziss@synopsys.com>
16126 * resource.c (mark_target_live_regs): Compute resources taking
16127 into account if a call is predicated or not.
16129 2013-09-06 Eric Botcazou <ebotcazou@adacore.com>
16131 * toplev.c (output_stack_usage): Be prepared for suffixes created by
16132 the compiler in the function names.
16134 2013-09-06 Jan Hubicka <jh@suse.cz>
16136 PR middle-end/58094
16137 * ipa-inline.c (has_caller_p): New function.
16138 (want_inline_function_to_all_callers_p): Use it.
16139 (sum_callers, inline_to_all_callers): Break out from ...
16140 (ipa_inline): ... here.
16142 2013-09-06 Jan Hubicka <jh@suse.cz>
16144 * config/i386/i386.c (ix86_hard_regno_mode_ok): AVX modes are valid
16145 only when AVX is enabled.
16147 2013-09-06 James Greenhalgh <james.greenhalgh@arm.com>
16149 * config/aarch64/aarch64.md
16150 (*movtf_aarch64): Use neon_<ls>dm_2 as type where v8type
16151 is fpsimd_<load/store>2.
16152 (load_pair<mode>): Likewise.
16153 (store_pair<mode>): Likewise.
16155 2013-09-06 James Greenhalgh <james.greenhalgh@arm.com>
16157 * config/arm/types.md (type): Add "mrs" type.
16158 * config/aarch64/aarch64.md
16159 (aarch64_load_tp_hard): Make type "mrs".
16160 * config/arm/arm.md
16161 (load_tp_hard): Make type "mrs".
16162 * config/arm/cortex-a15.md: Update with new attributes.
16163 * config/arm/cortex-a5.md: Update with new attributes.
16164 * config/arm/cortex-a53.md: Update with new attributes.
16165 * config/arm/cortex-a7.md: Update with new attributes.
16166 * config/arm/cortex-a8.md: Update with new attributes.
16167 * config/arm/cortex-a9.md: Update with new attributes.
16168 * config/arm/cortex-m4.md: Update with new attributes.
16169 * config/arm/cortex-r4.md: Update with new attributes.
16170 * config/arm/fa526.md: Update with new attributes.
16171 * config/arm/fa606te.md: Update with new attributes.
16172 * config/arm/fa626te.md: Update with new attributes.
16173 * config/arm/fa726te.md: Update with new attributes.
16175 2013-09-06 James Greenhalgh <james.greenhalgh@arm.com>
16177 * config/aarch64/aarch64.md
16178 (*movti_aarch64): Use "multiple" for type where v8type is "move2".
16179 (*movtf_aarch64): Likewise.
16180 * config/arm/arm.md
16181 (thumb1_movdi_insn): Use "multiple" for type where more than one
16182 instruction is used for a move.
16183 (*arm32_movhf): Likewise.
16184 (*thumb_movdf_insn): Likewise.
16186 2013-09-06 James Greenhalgh <james.greenhalgh@arm.com>
16188 * config/arm/types.md (type): Rename fcpys to fmov.
16189 * config/arm/vfp.md
16190 (*arm_movsi_vfp): Rename type fcpys as fmov.
16191 (*thumb2_movsi_vfp): Likewise
16192 (*movhf_vfp_neon): Likewise
16193 (*movhf_vfp): Likewise
16194 (*movsf_vfp): Likewise
16195 (*thumb2_movsf_vfp): Likewise
16196 (*movsfcc_vfp): Likewise
16197 (*thumb2_movsfcc_vfp): Likewise
16198 * config/aarch64/aarch64-simd.md
16199 (move_lo_quad_<mode>): Replace type mov_reg with fmovs.
16200 * config/aarch64/aarch64.md
16201 (*movsi_aarch64): Replace type mov_reg with fmovs.
16202 (*movdi_aarch64): Likewise
16203 (*movsf_aarch64): Likewise
16204 (*movdf_aarch64): Likewise
16206 (cortexa7_older_only): Rename TYPE_FCPYS to TYPE_FMOV.
16207 * config/arm/iwmmxt.md
16208 (*iwmmxt_movsi_insn): Rename type fcpys as fmov.
16209 * config/arm/arm1020e.md: Update with new attributes.
16210 * config/arm/cortex-a15-neon.md: Update with new attributes.
16211 * config/arm/cortex-a5.md: Update with new attributes.
16212 * config/arm/cortex-a53.md: Update with new attributes.
16213 * config/arm/cortex-a7.md: Update with new attributes.
16214 * config/arm/cortex-a8-neon.md: Update with new attributes.
16215 * config/arm/cortex-a9.md: Update with new attributes.
16216 * config/arm/cortex-m4-fpu.md: Update with new attributes.
16217 * config/arm/cortex-r4f.md: Update with new attributes.
16218 * config/arm/marvell-pj4.md: Update with new attributes.
16219 * config/arm/vfp11.md: Update with new attributes.
16221 2013-09-06 James Greenhalgh <james.greenhalgh@arm.com>
16223 * config/aarch64/aarch64.md
16224 (*madd<mode>): Fix type attribute.
16225 (*maddsi_uxtw): Likewise.
16226 (*msub<mode>): Likewise.
16227 (*msubsi_uxtw): Likewise.
16228 (<su_optab>maddsidi4): Likewise.
16229 (<su_optab>msubsidi4): Likewise.
16231 2013-09-06 James Greenhalgh <james.greenhalgh@arm.com>
16233 * config/arm/types.md: Split fdiv<sd> as fsqrt<sd>, fdiv<sd>.
16234 * config/arm/arm.md (core_cycles): Remove fdiv.
16235 * config/arm/vfp.md:
16236 (*sqrtsf2_vfp): Update for attribute changes.
16237 (*sqrtdf2_vfp): Likewise.
16238 * config/aarch64/aarch64.md:
16239 (sqrt<mode>2): Update for attribute changes.
16240 * config/arm/arm1020e.md: Update with new attributes.
16241 * config/arm/cortex-a15-neon.md: Update with new attributes.
16242 * config/arm/cortex-a5.md: Update with new attributes.
16243 * config/arm/cortex-a53.md: Update with new attributes.
16244 * config/arm/cortex-a7.md: Update with new attributes.
16245 * config/arm/cortex-a8-neon.md: Update with new attributes.
16246 * config/arm/cortex-a9.md: Update with new attributes.
16247 * config/arm/cortex-m4-fpu.md: Update with new attributes.
16248 * config/arm/cortex-r4f.md: Update with new attributes.
16249 * config/arm/marvell-pj4.md: Update with new attributes.
16250 * config/arm/vfp11.md: Update with new attributes.
16252 2013-09-06 James Greenhalgh <james.greenhalgh@arm.com>
16254 * config/arm/types.md
16255 (type): Split f_cvt as f_cvt, f_cvtf2i, f_cvti2f.
16256 * config/aarch64/aarch64.md
16257 (l<fcvt_pattern><su_optab><GPF:mode><GPI:mode>2): Update with
16259 (fix_trunc<GPF:mode><GPI:mode>2): Likewise.
16260 (fixuns_trunc<GPF:mode><GPI:mode>2): Likewise.
16261 (float<GPI:mode><GPF:mode>2): Likewise.
16262 * config/arm/vfp.md
16263 (*truncsisf2_vfp): Update with new attributes.
16264 (*truncsidf2_vfp): Likewise.
16265 (fixuns_truncsfsi2): Likewise.
16266 (fixuns_truncdfsi2): Likewise.
16267 (*floatsisf2_vfp): Likewise.
16268 (*floatsidf2_vfp): Likewise.
16269 (floatunssisf2): Likewise.
16270 (floatunssidf2): Likewise.
16271 (*combine_vcvt_f32_<FCVTI32typename>): Likewise.
16272 (*combine_vcvt_f64_<FCVTI32typename>): Likewise.
16273 * config/arm/arm1020e.md: Update with new attributes.
16274 * config/arm/cortex-a15-neon.md: Update with new attributes.
16275 * config/arm/cortex-a5.md: Update with new attributes.
16276 * config/arm/cortex-a53.md: Update with new attributes.
16277 * config/arm/cortex-a7.md: Update with new attributes.
16278 * config/arm/cortex-a8-neon.md: Update with new attributes.
16279 * config/arm/cortex-a9.md: Update with new attributes.
16280 * config/arm/cortex-m4-fpu.md: Update with new attributes.
16281 * config/arm/cortex-r4f.md: Update with new attributes.
16282 * config/arm/marvell-pj4.md: Update with new attributes.
16283 * config/arm/vfp11.md: Update with new attributes.
16285 2013-09-06 James Greenhalgh <james.greenhalgh@arm.com>
16287 * config/aarch64/arm_neon.h
16288 (vqtbl<1,2,3,4><q>_s8): Fix control vector parameter type.
16289 (vqtbx<1,2,3,4><q>_s8): Likewise.
16291 2013-09-06 James Greenhalgh <james.greenhalgh@arm.com>
16293 * config/arm/types.md: Add "no_insn", "multiple" and "untyped" types.
16294 * config/arm/arm-fixed.md: Add type attribute to all insn patterns.
16295 (add<mode>3): Add type attribute.
16296 (add<mode>3): Likewise.
16297 (usadd<mode>3): Likewise.
16298 (ssadd<mode>3): Likewise.
16299 (sub<mode>3): Likewise.
16300 (sub<mode>3): Likewise.
16301 (ussub<mode>3): Likewise.
16302 (sssub<mode>3): Likewise.
16303 (ssmulsa3): Likewise.
16304 (usmulusa3): Likewise.
16305 (arm_usatsihi): Likewise.
16306 * config/arm/vfp.md
16307 (*movdi_vfp): Add types for all instructions.
16308 (*movdi_vfp_cortexa8): Likewise.
16309 (*movhf_vfp_neon): Likewise.
16310 (*movhf_vfp): Likewise.
16311 (*movdf_vfp): Likewise.
16312 (*thumb2_movdf_vfp): Likewise.
16313 (*thumb2_movdfcc_vfp): Likewise.
16314 * config/arm/arm.md: Add type attribute to all insn patterns.
16315 (*thumb1_adddi3): Add type attribute.
16316 (*arm_adddi3): Likewise.
16317 (*adddi_sesidi_di): Likewise.
16318 (*adddi_zesidi_di): Likewise.
16319 (*thumb1_addsi3): Likewise.
16320 (addsi3_compare0): Likewise.
16321 (*addsi3_compare0_scratch): Likewise.
16322 (*compare_negsi_si): Likewise.
16323 (cmpsi2_addneg): Likewise.
16324 (*addsi3_carryin_<optab>): Likewise.
16325 (*addsi3_carryin_alt2_<optab>): Likewise.
16326 (*addsi3_carryin_clobercc_<optab>): Likewise.
16327 (*subsi3_carryin): Likewise.
16328 (*subsi3_carryin_const): Likewise.
16329 (*subsi3_carryin_compare): Likewise.
16330 (*subsi3_carryin_compare_const): Likewise.
16331 (*arm_subdi3): Likewise.
16332 (*thumb_subdi3): Likewise.
16333 (*subdi_di_zesidi): Likewise.
16334 (*subdi_di_sesidi): Likewise.
16335 (*subdi_zesidi_di): Likewise.
16336 (*subdi_sesidi_di): Likewise.
16337 (*subdi_zesidi_ze): Likewise.
16338 (thumb1_subsi3_insn): Likewise.
16339 (*arm_subsi3_insn): Likewise.
16340 (*anddi3_insn): Likewise.
16341 (*anddi_zesidi_di): Likewise.
16342 (*anddi_sesdi_di): Likewise.
16343 (*ne_zeroextracts): Likewise.
16344 (*ne_zeroextracts): Likewise.
16345 (*ite_ne_zeroextr): Likewise.
16346 (*ite_ne_zeroextr): Likewise.
16347 (*anddi_notdi_di): Likewise.
16348 (*anddi_notzesidi): Likewise.
16349 (*anddi_notsesidi): Likewise.
16350 (andsi_notsi_si): Likewise.
16351 (thumb1_bicsi3): Likewise.
16352 (*iordi3_insn): Likewise.
16353 (*iordi_zesidi_di): Likewise.
16354 (*iordi_sesidi_di): Likewise.
16355 (*thumb1_iorsi3_insn): Likewise.
16356 (*xordi3_insn): Likewise.
16357 (*xordi_zesidi_di): Likewise.
16358 (*xordi_sesidi_di): Likewise.
16359 (*arm_xorsi3): Likewise.
16360 (*andsi_iorsi3_no): Likewise.
16361 (*smax_0): Likewise.
16362 (*smax_m1): Likewise.
16363 (*arm_smax_insn): Likewise.
16364 (*smin_0): Likewise.
16365 (*arm_smin_insn): Likewise.
16366 (*arm_umaxsi3): Likewise.
16367 (*arm_uminsi3): Likewise.
16368 (*minmax_arithsi): Likewise.
16369 (*minmax_arithsi_): Likewise.
16370 (*satsi_<SAT:code>): Likewise.
16371 (arm_ashldi3_1bit): Likewise.
16372 (arm_ashrdi3_1bit): Likewise.
16373 (arm_lshrdi3_1bit): Likewise.
16374 (*arm_negdi2): Likewise.
16375 (*thumb1_negdi2): Likewise.
16376 (*arm_negsi2): Likewise.
16377 (*thumb1_negsi2): Likewise.
16378 (*negdi_extendsid): Likewise.
16379 (*negdi_zero_extend): Likewise.
16380 (*arm_abssi2): Likewise.
16381 (*thumb1_abssi2): Likewise.
16382 (*arm_neg_abssi2): Likewise.
16383 (*thumb1_neg_abss): Likewise.
16384 (one_cmpldi2): Likewise.
16385 (extend<mode>di2): Likewise.
16386 (*compareqi_eq0): Likewise.
16387 (*arm_extendhisi2addsi): Likewise.
16388 (*arm_movdi): Likewise.
16389 (*thumb1_movdi_insn): Likewise.
16390 (*arm_movt): Likewise.
16391 (*thumb1_movsi_insn): Likewise.
16392 (pic_add_dot_plus_four): Likewise.
16393 (pic_add_dot_plus_eight): Likewise.
16394 (tls_load_dot_plus_eight): Likewise.
16395 (*thumb1_movhi_insn): Likewise.
16396 (*thumb1_movsf_insn): Likewise.
16397 (*movdf_soft_insn): Likewise.
16398 (*thumb_movdf_insn): Likewise.
16399 (cbranchsi4_insn): Likewise.
16400 (cbranchsi4_scratch): Likewise.
16401 (*negated_cbranchsi4): Likewise.
16402 (*tbit_cbranch): Likewise.
16403 (*tlobits_cbranch): Likewise.
16404 (*tstsi3_cbranch): Likewise.
16405 (*cbranchne_decr1): Likewise.
16406 (*addsi3_cbranch): Likewise.
16407 (*addsi3_cbranch_scratch): Likewise.
16408 (*arm_cmpdi_insn): Likewise.
16409 (*arm_cmpdi_unsig): Likewise.
16410 (*arm_cmpdi_zero): Likewise.
16411 (*thumb_cmpdi_zero): Likewise.
16412 (*deleted_compare): Likewise.
16413 (*mov_scc): Likewise.
16414 (*mov_negscc): Likewise.
16415 (*mov_notscc): Likewise.
16416 (*cstoresi_eq0_thumb1_insn): Likewise.
16417 (cstoresi_nltu_thumb1): Likewise.
16418 (cstoresi_ltu_thu): Likewise.
16419 (thumb1_addsi3_addgeu): Likewise.
16420 (*arm_jump): Likewise.
16421 (*thumb_jump): Likewise.
16422 (*check_arch2): Likewise.
16423 (arm_casesi_internal): Likewise.
16424 (thumb1_casesi_dispatch): Likewise.
16425 (*arm_indirect_jump): Likewise.
16426 (*thumb1_indirect_jump): Likewise.
16428 (*and_scc): Likewise.
16429 (*ior_scc): Likewise.
16430 (*compare_scc): Likewise.
16431 (*cond_move): Likewise.
16432 (*cond_arith): Likewise.
16433 (*cond_sub): Likewise.
16434 (*cmp_ite0): Likewise.
16435 (*cmp_ite1): Likewise.
16436 (*cmp_and): Likewise.
16437 (*cmp_ior): Likewise.
16438 (*ior_scc_scc): Likewise.
16439 (*ior_scc_scc_cmp): Likewise.
16440 (*and_scc_scc): Likewise.
16441 (*and_scc_scc_cmp): Likewise.
16442 (*and_scc_scc_nod): Likewise.
16443 (*negscc): Likewise.
16444 (movcond_addsi): Likewise.
16445 (movcond): Likewise.
16446 (*ifcompare_plus_move): Likewise.
16447 (*if_plus_move): Likewise.
16448 (*ifcompare_move_plus): Likewise.
16449 (*if_move_plus): Likewise.
16450 (*ifcompare_arith_arith): Likewise.
16451 (*if_arith_arith): Likewise.
16452 (*ifcompare_arith_move): Likewise.
16453 (*if_arith_move): Likewise.
16454 (*ifcompare_move_arith): Likewise.
16455 (*if_move_arith): Likewise.
16456 (*ifcompare_move_not): Likewise.
16457 (*if_move_not): Likewise.
16458 (*ifcompare_not_move): Likewise.
16459 (*if_not_move): Likewise.
16460 (*ifcompare_shift_move): Likewise.
16461 (*if_shift_move): Likewise.
16462 (*ifcompare_move_shift): Likewise.
16463 (*if_move_shift): Likewise.
16464 (*ifcompare_shift_shift): Likewise.
16465 (*ifcompare_not_arith): Likewise.
16466 (*ifcompare_arith_not): Likewise.
16467 (*if_arith_not): Likewise.
16468 (*ifcompare_neg_move): Likewise.
16469 (*if_neg_move): Likewise.
16470 (*ifcompare_move_neg): Likewise.
16471 (*if_move_neg): Likewise.
16472 (prologue_thumb1_interwork): Likewise.
16473 (*cond_move_not): Likewise.
16474 (*sign_extract_onebit): Likewise.
16475 (*not_signextract_onebit): Likewise.
16476 (stack_tie): Likewise.
16477 (align_4): Likewise.
16478 (align_8): Likewise.
16479 (consttable_end): Likewise.
16480 (consttable_1): Likewise.
16481 (consttable_2): Likewise.
16482 (consttable_4): Likewise.
16483 (consttable_8): Likewise.
16484 (consttable_16): Likewise.
16485 (*thumb1_tablejump): Likewise.
16486 (prefetch): Likewise.
16487 (force_register_use): Likewise.
16488 (thumb_eh_return): Likewise.
16489 (load_tp_hard): Likewise.
16490 (load_tp_soft): Likewise.
16491 (tlscall): Likewise.
16492 (*arm_movtas_ze): Likewise.
16493 (*arm_rev): Likewise.
16494 (*arm_revsh): Likewise.
16495 (*arm_rev16): Likewise.
16496 * config/arm/thumb2.md
16497 (*thumb2_smaxsi3): Likewise.
16498 (*thumb2_sminsi3): Likewise.
16499 (*thumb32_umaxsi3): Likewise.
16500 (*thumb2_uminsi3): Likewise.
16501 (*thumb2_negdi2): Likewise.
16502 (*thumb2_abssi2): Likewise.
16503 (*thumb2_neg_abss): Likewise.
16504 (*thumb2_movsi_insn): Likewise.
16505 (tls_load_dot_plus_four): Likewise.
16506 (*thumb2_movhi_insn): Likewise.
16507 (*thumb2_mov_scc): Likewise.
16508 (*thumb2_mov_negs): Likewise.
16509 (*thumb2_mov_negs): Likewise.
16510 (*thumb2_mov_nots): Likewise.
16511 (*thumb2_mov_nots): Likewise.
16512 (*thumb2_movsicc_): Likewise.
16513 (*thumb2_movsfcc_soft_insn): Likewise.
16514 (*thumb2_indirect_jump): Likewise.
16515 (*thumb2_and_scc): Likewise.
16516 (*thumb2_ior_scc): Likewise.
16517 (*thumb2_ior_scc_strict_it): Likewise.
16518 (*thumb2_cond_move): Likewise.
16519 (*thumb2_cond_arith): Likewise.
16520 (*thumb2_cond_ari): Likewise.
16521 (*thumb2_cond_sub): Likewise.
16522 (*thumb2_negscc): Likewise.
16523 (*thumb2_movcond): Likewise.
16524 (thumb2_casesi_internal): Likewise.
16525 (thumb2_casesi_internal_pic): Likewise.
16526 (*thumb2_alusi3_short): Likewise.
16527 (*thumb2_mov<mode>_shortim): Likewise.
16528 (*thumb2_addsi_short): Likewise.
16529 (*thumb2_subsi_short): Likewise.
16530 (thumb2_addsi3_compare0): Likewise.
16531 (*thumb2_cbz): Likewise.
16532 (*thumb2_cbnz): Likewise.
16533 (*thumb2_one_cmplsi2_short): Likewise.
16534 (*thumb2_negsi2_short): Likewise.
16535 (*orsi_notsi_si): Likewise.
16536 * config/arm/arm1020e.md: Update with new attributes.
16537 * config/arm/arm1026ejs.md: Update with new attributes.
16538 * config/arm/arm1136jfs.md: Update with new attributes.
16539 * config/arm/arm926ejs.md: Update with new attributes.
16540 * config/arm/cortex-a15.md: Update with new attributes.
16541 * config/arm/cortex-a5.md: Update with new attributes.
16542 * config/arm/cortex-a53.md: Update with new attributes.
16543 * config/arm/cortex-a7.md: Update with new attributes.
16544 * config/arm/cortex-a8.md: Update with new attributes.
16545 * config/arm/cortex-a9.md: Update with new attributes.
16546 * config/arm/cortex-m4.md: Update with new attributes.
16547 * config/arm/cortex-r4.md: Update with new attributes.
16548 * config/arm/fa526.md: Update with new attributes.
16549 * config/arm/fa606te.md: Update with new attributes.
16550 * config/arm/fa626te.md: Update with new attributes.
16551 * config/arm/fa726te.md: Update with new attributes.
16553 2013-09-06 James Greenhalgh <james.greenhalgh@arm.com>
16555 * config/aarch64/aarch64-simd.md
16556 (aarch64_sqdml<SBINQOPS:as>l_n<mode>_internal): Use
16557 <vwx> iterator to ensure correct register choice.
16558 (aarch64_sqdml<SBINQOPS:as>l2_n<mode>_internal): Likewise.
16559 (aarch64_sqdmull_n<mode>): Likewise.
16560 (aarch64_sqdmull2_n<mode>_internal): Likewise.
16561 * config/aarch64/arm_neon.h
16562 (vml<as><q>_lane<q>_<su>16): Use 'x' constraint for element vector.
16563 (vml<as><q>_n_<su>16): Likewise.
16564 (vml<as>l_high_lane<q>_<su>16): Likewise.
16565 (vml<as>l_high_n_<su>16): Likewise.
16566 (vml<as>l_lane<q>_<su>16): Likewise.
16567 (vml<as>l_n_<su>16): Likewise.
16568 (vmul<q>_lane<q>_<su>16): Likewise.
16569 (vmul<q>_n_<su>16): Likewise.
16570 (vmull_lane<q>_<su>16): Likewise.
16571 (vmull_n_<su>16): Likewise.
16572 (vmull_high_lane<q>_<su>16): Likewise.
16573 (vmull_high_n_<su>16): Likewise.
16574 (vqrdmulh<q>_n_s16): Likewise.
16576 2013-09-06 Tejas Belagod <tejas.belagod@arm.com>
16578 * config/aarch64/arm_neon.h: Fix all vdup<bhsd_lane<q> intrinsics to
16579 have the correct lane parameter.
16581 2013-09-06 Richard Biener <rguenther@suse.de>
16583 * cfganal.c (control_dependences::~control_dependences):
16584 Properly free all of the vector.
16586 2013-09-06 Kirill Yukhin <kirill.yukhin@intel.com>
16589 * config/i386/i386.c (ix86_conditional_register_usage):
16590 Proper initialize extended SSE registers.
16592 2013-09-06 Jan Hubicka <jh@suse.cz>
16594 PR tree-optimization/58311
16595 * ipa-devirt.c (gate_ipa_devirt): Only execute when optimizing.
16597 2013-09-06 Jan Hubicka <jh@suse.cz>
16599 * Makefile.in (tree-sra.o): Update dependencies.
16600 * tree-sra.c: Include ipa-utils.h
16601 (scan_function): Use recursive_call_p.
16602 (has_caller_p): New function.
16603 (cgraph_for_node_and_aliases): Count also callers of aliases.
16605 2013-09-06 Jan Hubicka <jh@suse.cz>
16607 PR middle-end/58094
16608 * cgraph.h (symtab_semantically_equivalent_p): Declare.
16609 * tree-tailcall.c: Include ipa-utils.h.
16610 (find_tail_calls): Use it.
16611 * ipa-pure-const.c (check_call): Likewise.
16612 * ipa-utils.c (recursive_call_p): New function.
16613 * ipa-utils.h (recursive_call_p): Dclare.
16614 * symtab.c (symtab_nonoverwritable_alias): Fix formatting.
16615 (symtab_semantically_equivalent_p): New function.
16616 * Makefile.in (tree-tailcall.o): Update dependencies.
16618 2013-09-06 Eric Botcazou <ebotcazou@adacore.com>
16620 * ipa-split.c (split_function): Set DECL_NO_INLINE_WARNING_P on the
16621 non-inlinable part.
16623 2013-09-06 Richard Biener <rguenther@suse.de>
16625 * lto-streamer.h (lto_global_var_decls): Remove.
16626 * Makefile.in (OBJS): Remove lto-symtab.o.
16627 (lto-symtab.o): Remove.
16628 (GTFILES): Remove lto-symtab.c
16629 * lto-symtab.c: Move to lto/
16631 2013-09-06 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
16633 * config/s390/s390.md (UNSPEC_FPINT_FLOOR, UNSPEC_FPINT_BTRUNC)
16634 (UNSPEC_FPINT_ROUND, UNSPEC_FPINT_CEIL, UNSPEC_FPINT_NEARBYINT)
16635 (UNSPEC_FPINT_RINT): New constant definitions.
16636 (FPINT, fpint_name, fpint_roundingmode): New integer iterator
16637 definition with 2 attributes.
16638 ("<FPINT:fpint_name><BFP:mode>2", "rint<BFP:mode>2")
16639 ("<FPINT:fpint_name><DFP:mode>2", "rint<DFP:mode>2"): New pattern
16642 2013-09-06 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
16644 * config/s390/s390.md: Add "bcr_flush" value to mnemonic attribute.
16645 ("mem_thread_fence_1"): Use bcr 14,0 for z196 and later.
16646 Set the mnemonic attribute to "bcr_flush". Set the "z196prop"
16647 attribute to "z196_alone".
16648 * config/s390/2827.md: Add "bcr_flush" to "ooo_groupalone" and
16651 2013-09-06 Richard Biener <rguenther@suse.de>
16653 * basic-block.h (class control_dependences): New.
16654 * tree-ssa-dce.c (control_dependence_map): Remove.
16656 (EXECUTE_IF_CONTROL_DEPENDENT): Remove.
16657 (set_control_dependence_map_bit, clear_control_dependence_bitmap,
16658 find_pdom, find_control_dependence, find_all_control_dependences):
16660 (mark_control_dependent_edges_necessary,
16661 find_obviously_necessary_stmts, propagate_necessity, tree_dce_init,
16662 tree_dce_done, perform_tree_ssa_dce): Adjust.
16663 * cfganal.c (set_control_dependence_map_bit,
16664 clear_control_dependence_bitmap, find_pdom, find_control_dependence,
16665 find_all_control_dependences): Move from tree-ssa-dce.c and
16666 implement as methods of control_dependences class.
16667 (control_dependences::control_dependences): New.
16668 (control_dependences::~control_dependences): Likewise.
16669 (control_dependences::get_edges_dependent_on): Likewise.
16670 (control_dependences::get_edge): Likewise.
16672 2013-09-04 Jan Hubicka <jh@suse.cz>
16674 * tree.c (types_same_for_odr): Drop overactive check.
16675 * ipa-devirt.c (hash_type_name): Likewise.
16677 2013-09-04 Jan Hubicka <jh@suse.cz>
16679 * cgraphunit.c (walk_polymorphic_call_targets): Break out from ...
16680 (analyze_functions): ... here.
16682 2013-09-04 Jan Hubicka <jh@suse.cz>
16684 PR middle-end/58201
16685 * cgraphunit.c (analyze_functions): Clear AUX fields
16686 after processing; initialize assembler name has.
16688 2013-09-05 Jeff Law <law@redhat.com>
16690 * tree-ssa-threadedge.c (thread_around_empty_blocks): Renamed
16691 from thread_around_empty_block. Record threading path into PATH.
16692 Recurse if threading through the initial block is successful.
16693 (thread_across_edge): Corresponding changes to slightly simplify.
16695 2013-09-05 James Greenhalgh <james.greenhalgh@arm.com>
16697 * config/aarch64/aarch64.md
16698 (type): Remove frecpe, frecps, frecpx.
16699 (aarch64_frecp<FRECP:frecp_suffix><mode>): Move to aarch64-simd.md,
16700 fix to be a TARGET_SIMD instruction.
16701 (aarch64_frecps): Remove.
16702 * config/aarch64/aarch64-simd.md
16703 (aarch64_frecp<FRECP:frecp_suffix><mode>): New, moved from aarch64.md
16704 (aarch64_frecps<mode>): Handle all float/vector of float modes.
16706 2013-09-05 James Greenhalgh <james.greenhalgh@arm.com>
16707 Sofiane Naci <sofiane.naci@arm.com>
16709 * config/arm/types.md (define_attr "type"): Expand "arlo_imm"
16710 into "adr", "alu_imm", "alus_imm", "logic_imm", "logics_imm".
16711 Expand "arlo_reg" into "adc_reg", "adc_imm", "adcs_reg", "adcs_imm",
16712 "alu_ext", "alu_reg", "alus_ext", "alus_reg", "bfm", "csel",
16713 "logic_reg", "logics_reg", "rev". Expand "arlo_shift" into
16714 "alu_shift_imm", "alus_shift_imm", "logic_shift_imm",
16715 "logics_shift_imm". Expand "arlo_shift_reg" into "alu_shift_reg",
16716 "alus_shift_reg", "logic_shift_reg", "logics_shift_reg". Expand "clz"
16717 into "clz, "rbit". Rename "shift" to "shift_imm".
16718 * config/arm/arm.md (define_attr "core_cycles"): Update for attribute
16719 changes. Update for attribute changes all occurrences of arlo_* and
16721 * config/arm/arm-fixed.md: Update for attribute changes
16722 all occurrences of arlo_* types.
16723 * config/arm/thumb2.md: Update for attribute changes all occurrences
16725 * config/arm/arm.c (xscale_sched_adjust_cost): (rtx insn, rtx
16726 (cortexa7_older_only): Likewise.
16727 (cortexa7_younger): Likewise.
16728 * config/arm/arm1020e.md (1020alu_op): Update for attribute changes.
16729 (1020alu_shift_op): Likewise.
16730 (1020alu_shift_reg_op): Likewise.
16731 * config/arm/arm1026ejs.md (alu_op): Update for attribute changes.
16732 (alu_shift_op): Likewise.
16733 (alu_shift_reg_op): Likewise.
16734 * config/arm/arm1136jfs.md (11_alu_op): Update for attribute changes.
16735 (11_alu_shift_op): Likewise.
16736 (11_alu_shift_reg_op): Likewise.
16737 * config/arm/arm926ejs.md (9_alu_op): Update for attribute changes.
16738 (9_alu_shift_reg_op): Likewise.
16739 * config/arm/cortex-a15.md (cortex_a15_alu): Update for
16741 (cortex_a15_alu_shift): Likewise.
16742 (cortex_a15_alu_shift_reg): Likewise.
16743 * config/arm/cortex-a5.md (cortex_a5_alu): Update for
16745 (cortex_a5_alu_shift): Likewise.
16746 * config/arm/cortex-a53.md (cortex_a53_alu): Update for
16748 (cortex_a53_alu_shift): Likewise.
16749 * config/arm/cortex-a7.md (cortex_a7_alu_imm): Update for
16751 (cortex_a7_alu_reg): Likewise.
16752 (cortex_a7_alu_shift): Likewise.
16753 * config/arm/cortex-a8.md (cortex_a8_alu): Update for
16755 (cortex_a8_alu_shift): Likewise.
16756 (cortex_a8_alu_shift_reg): Likewise.
16757 * config/arm/cortex-a9.md (cortex_a9_dp): Update for attribute changes.
16758 (cortex_a9_dp_shift): Likewise.
16759 * config/arm/cortex-m4.md (cortex_m4_alu): Update for
16761 * config/arm/cortex-r4.md
16762 (cortex_r4_alu): Update for attribute changes.
16763 (cortex_r4_mov): Likewise.
16764 (cortex_r4_alu_shift_reg): Likewise.
16765 * config/arm/fa526.md (526_alu_op): Update for attribute changes.
16766 (526_alu_shift_op): Likewise.
16767 * config/arm/fa606te.md (606te_alu_op): Update for attribute changes.
16768 * config/arm/fa626te.md (626te_alu_op): Update for attribute changes.
16769 (626te_alu_shift_op): Likewise.
16770 * config/arm/fa726te.md (726te_alu_op): Update for attribute changes.
16771 (726te_alu_shift_op): Likewise.
16772 (726te_alu_shift_reg_op): Likewise.
16773 * config/arm/fmp626.md (mp626_alu_op): Update for attribute changes.
16774 (mp626_alu_shift_op): Likewise.
16775 * config/arm/marvell-pj4.md (pj4_alu): Update for attribute changes.
16776 (pj4_alu_conds): Likewise.
16777 (pj4_shift): Likewise.
16778 (pj4_shift_conds): Likewise.
16779 (pj4_alu_shift): Likewise.
16780 (pj4_alu_shift_conds): Likewise.
16781 * config/aarch64/aarch64.md: Update for attribute change
16782 all occurrences of arlo_* and shift* types.
16784 2013-09-05 Mike Stump <mikestump@comcast.net>
16786 * tree.h: Move documentation for tree_function_decl to tree-core.h
16787 with the declaration.
16789 2013-09-05 Peter Bergner <bergner@vnet.ibm.com>
16792 * reginfo.c (choose_hard_reg_mode): Scan through all mode classes
16793 looking for widest mode.
16795 2013-09-05 Eric Botcazou <ebotcazou@adacore.com>
16797 * config.gcc (*-*-vxworks*): Do not override an existing extra_objs.
16799 2013-09-05 Richard Biener <rguenther@suse.de>
16801 PR tree-optimization/58137
16802 * tree-vect-stmts.c (get_vectype_for_scalar_type_and_size):
16803 Do not create vectors of pointers.
16804 * tree-vect-loop.c (get_initial_def_for_induction): Use proper
16805 types for the components of the vector initializer.
16806 * tree-cfg.c (verify_gimple_assign_binary): Remove special-casing
16807 allowing pointer vectors with PLUS_EXPR/MINUS_EXPR.
16809 2013-09-05 Martin Jambor <mjambor@suse.cz>
16811 * ipa-prop.c (remove_described_reference): Accept missing references,
16812 return false if that hppens, otherwise return true.
16813 (cgraph_node_for_jfunc): New function.
16814 (try_decrement_rdesc_refcount): Likewise.
16815 (try_make_edge_direct_simple_call): Use them.
16816 (ipa_edge_removal_hook): Remove references from rdescs.
16817 (ipa_edge_duplication_hook): Clone rdescs and their references
16818 when the new edge has the same caller as the old one.
16819 * cgraph.c (cgraph_resolve_speculation): Remove speculative
16820 reference before removing any edges.
16822 2013-09-05 Richard Earnshaw <rearnsha@arm.com>
16824 * arm.c (thumb2_emit_strd_push): Rewrite to use pre-decrement on
16826 * thumb2.md (thumb2_storewb_parisi): New pattern.
16828 2013-09-05 Yufeng Zhang <yufeng.zhang@arm.com>
16830 * config/aarch64/aarch64-option-extensions.def: Add
16831 AARCH64_OPT_EXTENSION of 'crc'.
16832 * config/aarch64/aarch64.h (AARCH64_FL_CRC): New define.
16833 (AARCH64_ISA_CRC): Ditto.
16834 * doc/invoke.texi (-march and -mcpu feature modifiers): Add
16835 description of the CRC extension.
16837 2013-09-05 Alexander Ivchenko <alexander.ivchenko@intel.com>
16839 * config/rs6000/linux64.h: Define OPTION_BIONIC and OPTION_UCLIBC.
16840 * config/rs6000/linux.h: Ditto.
16841 * alpha/linux.h: Ditto.
16842 * config/bfin/uclinux.h: Define TARGET_LIBC_HAS_FUNCTION as
16843 no_c99_libc_has_function.
16844 * config/c6x/uclinux-elf.h: Ditto.
16845 * config/lm32/uclinux-elf.h: Ditto.
16846 * config/m68k/uclinux.h: Ditto.
16847 * config/moxie/uclinux.h: Ditto.
16848 * config.gcc (bfin*-linux-uclibc*): Add t-linux-android to tmake_file.
16849 (crisv32-*-linux*, cris-*-linux*): Ditto.
16850 * config/bfin/bfin.c: Include "tm_p.h".
16852 2013-09-05 Richard Biener <rguenther@suse.de>
16854 * tree-vect-loop.c (vect_analyze_loop_operations): Properly
16855 check for a definition without a basic-block.
16857 2013-09-05 James Greenhalgh <james.greenhalgh@arm.com>
16858 Sofiane Naci <sofiane.naci@arm.com>
16860 * config/aarch64/aarch64.md
16861 (*movti_aarch64): Rename r_2_f and f_2_r.
16862 (*movsf_aarch64): Likewise.
16863 (*movdf_aarch64): Likewise.
16864 (*movtf_aarch64): Likewise.
16865 (aarch64_movdi_<mode>low): Likewise.
16866 (aarch64_movdi_<mode>high): Likewise.
16867 (aarch64_mov<mode>high_di): Likewise.
16868 (aarch64_mov<mode>low_di): Likewise.
16869 (aarch64_movtilow_tilow): Likewise.
16870 * config/arm/arm.md (attribute "neon_type"): Delete. Move attribute
16871 values to config/arm/types.md
16872 (attribute "conds"): Update for attribute change.
16873 (anddi3_insn): Likewise.
16874 (iordi3_insn): Likewise.
16875 (xordi3_insn): Likewise.
16876 (one_cmpldi2): Likewise.
16877 * config/arm/types.md (type): Add Neon types.
16878 * config/arm/neon.md (neon_mov<mode>): Remove "neon_type" attribute,
16879 use "type" attribute.
16880 (movmisalign<mode>_neon_store): Likewise.
16881 (movmisalign<mode>_neon_load): Likewise.
16882 (vec_set<mode>_internal): Likewise.
16883 (vec_setv2di_internal): Likewise.
16884 (vec_extract<mode>): Likewise.
16885 (vec_extractv2di): Likewise.
16886 (add<mode>3_neon): Likewise.
16887 (adddi3_neon): Likewise.
16888 (sub<mode>3_neon): Likewise.
16889 (subdi3_neon): Likewise.
16890 (mul<mode>3_neon): Likewise.
16891 (mul<mode>3add<mode>_neon): Likewise.
16892 (mul<mode>3neg<mode>add<mode>_neon): Likewise.
16893 (fma<VCVTF:mode>4)): Likewise.
16894 (fma<VCVTF:mode>4_intrinsic): Likewise.
16895 (fmsub<VCVTF:mode>4)): Likewise.
16896 (fmsub<VCVTF:mode>4_intrinsic): Likewise.
16897 (neon_vrint<NEON_VRINT:nvrint_variant><VCVTF:mode>): Likewise.
16898 (ior<mode>3): Likewise.
16899 (and<mode>3): Likewise.
16900 (anddi3_neon): Likewise.
16901 (orn<mode>3_neon): Likewise.
16902 (orndi3_neon): Likewise.
16903 (bic<mode>3_neon): Likewise.
16904 (bicdi3_neon): Likewise.
16905 (xor<mode>3): Likewise.
16906 (one_cmpl<mode>2): Likewise.
16907 (abs<mode>2): Likewise.
16908 (neg<mode>2): Likewise.
16909 (umin<mode>3_neon): Likewise.
16910 (umax<mode>3_neon): Likewise.
16911 (smin<mode>3_neon): Likewise.
16912 (smax<mode>3_neon): Likewise.
16913 (vashl<mode>3): Likewise.
16914 (vashr<mode>3_imm): Likewise.
16915 (vlshr<mode>3_imm): Likewise.
16916 (ashl<mode>3_signed): Likewise.
16917 (ashl<mode>3_unsigned): Likewise.
16918 (neon_load_count): Likewise.
16919 (ashldi3_neon_noclobber): Likewise.
16920 (signed_shift_di3_neon): Likewise.
16921 (unsigned_shift_di3_neon): Likewise.
16922 (ashrdi3_neon_imm_noclobber): Likewise.
16923 (lshrdi3_neon_imm_noclobber): Likewise.
16924 (widen_ssum<mode>3): Likewise.
16925 (widen_usum<mode>3): Likewise.
16926 (quad_halves_<code>v4si): Likewise.
16927 (quad_halves_<code>v4sf): Likewise.
16928 (quad_halves_<code>v8hi): Likewise.
16929 (quad_halves_<code>v16qi): Likewise.
16930 (reduc_splus_v2di): Likewise.
16931 (neon_vpadd_internal<mode>): Likewise.
16932 (neon_vpsmin<mode>): Likewise.
16933 (neon_vpsmax<mode>): Likewise.
16934 (neon_vpumin<mode>): Likewise.
16935 (neon_vpumax<mode>): Likewise.
16936 (ss_add<mode>_neon): Likewise.
16937 (us_add<mode>_neon): Likewise.
16938 (ss_sub<mode>_neon): Likewise.
16939 (us_sub<mode>_neon): Likewise.
16940 (neon_vadd<mode>_unspec): Likewise.
16941 (neon_vaddl<mode>): Likewise.
16942 (neon_vaddw<mode>): Likewise.
16943 (neon_vhadd<mode>): Likewise.
16944 (neon_vqadd<mode>): Likewise.
16945 (neon_vaddhn<mode>): Likewise.
16946 (neon_vmul<mode>): Likewise.
16947 (neon_vmla<mode>): Likewise.
16948 (neon_vmlal<mode>): Likewise.
16949 (neon_vmls<mode>): Likewise.
16950 (neon_vmlsl<mode>): Likewise.
16951 (neon_vqdmulh<mode>): Likewise.
16952 (neon_vqdmlal<mode>): Likewise.
16953 (neon_vqdmlsl<mode>): Likewise.
16954 (neon_vmull<mode>): Likewise.
16955 (neon_vqdmull<mode>): Likewise.
16956 (neon_vsub<mode>_unspec): Likewise.
16957 (neon_vsubl<mode>): Likewise.
16958 (neon_vsubw<mode>): Likewise.
16959 (neon_vqsub<mode>): Likewise.
16960 (neon_vhsub<mode>): Likewise.
16961 (neon_vsubhn<mode>): Likewise.
16962 (neon_vceq<mode>): Likewise.
16963 (neon_vcge<mode>): Likewise.
16964 (neon_vcgeu<mode>): Likewise.
16965 (neon_vcgt<mode>): Likewise.
16966 (neon_vcgtu<mode>): Likewise.
16967 (neon_vcle<mode>): Likewise.
16968 (neon_vclt<mode>): Likewise.
16969 (neon_vcage<mode>): Likewise.
16970 (neon_vcagt<mode>): Likewise.
16971 (neon_vtst<mode>): Likewise.
16972 (neon_vabd<mode>): Likewise.
16973 (neon_vabdl<mode>): Likewise.
16974 (neon_vaba<mode>): Likewise.
16975 (neon_vabal<mode>): Likewise.
16976 (neon_vmax<mode>): Likewise.
16977 (neon_vmin<mode>): Likewise.
16978 (neon_vpaddl<mode>): Likewise.
16979 (neon_vpadal<mode>): Likewise.
16980 (neon_vpmax<mode>): Likewise.
16981 (neon_vpmin<mode>): Likewise.
16982 (neon_vrecps<mode>): Likewise.
16983 (neon_vrsqrts<mode>): Likewise.
16984 (neon_vqabs<mode>): Likewise.
16985 (neon_vqneg<mode>): Likewise.
16986 (neon_vcls<mode>): Likewise.
16987 (clz<mode>2): Likewise.
16988 (popcount<mode>2): Likewise.
16989 (neon_vrecpe): Likewise.
16990 (neon_vrsqrte): Likewise.
16991 (neon_vget_lane<mode>_sext_internal): Likewise.
16992 (neon_vget_lane<mode>_zext_internal): Likewise.
16993 (neon_vdup_n<mode>): Likewise.
16994 (neon_vdup_nv2di): Likewise.
16995 (neon_vdpu_lane<mode>_internal): Likewise.
16996 (neon_vswp<mode>): Likewise.
16997 (float<mode><V_cvtto>2): Likewise.
16998 (floatuns<mode><V_cvtto>2): Likewise.
16999 (fix_trunc<mode><V_cvtto>)2): Likewise
17000 (fixuns_trunc<mode><V_cvtto)2): Likewise.
17001 (neon_vcvt<mode>): Likewise.
17002 (neon_vcvtv4sfv4hf): Likewise.
17003 (neon_vcvtv4hfv4sf): Likewise.
17004 (neon_vcvt_n<mode>): Likewise.
17005 (neon_vmovn<mode>): Likewise.
17006 (neon_vqmovn<mode>): Likewise.
17007 (neon_vqmovun<mode>): Likewise.
17008 (neon_vmovl<mode>): Likewise.
17009 (neon_vmul_lane<mode>): Likewise.
17010 (neon_vmull_lane<mode>): Likewise.
17011 (neon_vqdmull_lane<mode>): Likewise.
17012 (neon_vqdmulh_lane<mode>): Likewise.
17013 (neon_vmla_lane<mode>): Likewise.
17014 (neon_vmlal_lane<mode>): Likewise.
17015 (neon_vqdmlal_lane<mode>): Likewise.
17016 (neon_vmls_lane<mode>): Likewise.
17017 (neon_vmlsl_lane<mode>): Likewise.
17018 (neon_vqdmlsl_lane<mode>): Likewise.
17019 (neon_vext<mode>): Likewise.
17020 (neon_vrev64<mode>): Likewise.
17021 (neon_vrev32<mode>): Likewise.
17022 (neon_vrev16<mode>): Likewise.
17023 (neon_vbsl<mode>_internal): Likewise.
17024 (neon_vshl<mode>): Likewise.
17025 (neon_vqshl<mode>): Likewise.
17026 (neon_vshr_n<mode>): Likewise.
17027 (neon_vshrn_n<mode>): Likewise.
17028 (neon_vqshrn_n<mode>): Likewise.
17029 (neon_vqshrun_n<mode>): Likewise.
17030 (neon_vshl_n<mode>): Likewise.
17031 (neon_vqshl_n<mode>): Likewise.
17032 (neon_vqshlu_n<mode>): Likewise.
17033 (neon_vshll_n<mode>): Likewise.
17034 (neon_vsra_n<mode>): Likewise.
17035 (neon_vsri_n<mode>): Likewise.
17036 (neon_vsli_n<mode>): Likewise.
17037 (neon_vtbl1v8qi): Likewise.
17038 (neon_vtbl2v8qi): Likewise.
17039 (neon_vtbl3v8qi): Likewise.
17040 (neon_vtbl4v8qi): Likewise.
17041 (neon_vtbx1v8qi): Likewise.
17042 (neon_vtbx2v8qi): Likewise.
17043 (neon_vtbx3v8qi): Likewise.
17044 (neon_vtbx4v8qi): Likewise.
17045 (neon_vtrn<mode>_internal): Likewise.
17046 (neon_vzip<mode>_internal): Likewise.
17047 (neon_vuzp<mode>_internal): Likewise.
17048 (neon_vld1<mode>): Likewise.
17049 (neon_vld1_lane<mode>): Likewise.
17050 (neon_vld1_dup<mode>): Likewise.
17051 (neon_vld1_dupv2di): Likewise.
17052 (neon_vst1<mode>): Likewise.
17053 (neon_vst1_lane<mode>): Likewise.
17054 (neon_vld2<mode>): Likewise.
17055 (neon_vld2_lane<mode>): Likewise.
17056 (neon_vld2_dup<mode>): Likewise.
17057 (neon_vst2<mode>): Likewise.
17058 (neon_vst2_lane<mode>): Likewise.
17059 (neon_vld3<mode>): Likewise.
17060 (neon_vld3qa<mode>): Likewise.
17061 (neon_vld3qb<mode>): Likewise.
17062 (neon_vld3_lane<mode>): Likewise.
17063 (neon_vld3_dup<mode>): Likewise.
17064 (neon_vst3<mode>): Likewise.
17065 (neon_vst3qa<mode>): Likewise.
17066 (neon_vst3qb<mode>): Likewise.
17067 (neon_vst3_lane<mode>): Likewise.
17068 (neon_vld4<mode>): Likewise.
17069 (neon_vld4qa<mode>): Likewise.
17070 (neon_vld4qb<mode>): Likewise.
17071 (neon_vld4_lane<mode>): Likewise.
17072 (neon_vld4_dup<mode>): Likewise.
17073 (neon_vst4<mode>): Likewise.
17074 (neon_vst4qa<mode>): Likewise.
17075 (neon_vst4qb<mode>): Likewise.
17076 (neon_vst4_lane<mode>): Likewise.
17077 (neon_vec_unpack<US>_lo_<mode>): Likewise.
17078 (neon_vec_unpack<US>_hi_<mode>): Likewise.
17079 (neon_vec_<US>mult_lo_<mode>): Likewise.
17080 (neon_vec_<US>mult_hi_<mode>): Likewise.
17081 (neon_vec_<US>shiftl_<mode>): Likewise.
17082 (neon_unpack<US>_<mode>): Likewise.
17083 (neon_vec_<US>mult_<mode>): Likewise.
17084 (vec_pack_trunc_<mode>): Likewise.
17085 (neon_vec_pack_trunk_<mode>): Likewise.
17086 (neon_vabd<mode>_2): Likewise.
17087 (neon_vabd<mode>_3): Likewise.
17088 * config/arm/vfp.md (arm_movsi_vfp): Update for attribute changes.
17089 (thumb2_movsi_vfp): Likewise.
17090 (movdi_vfp): Likewise.
17091 (movdi_vfp_cortexa8): Likewise.
17092 (movhf_vfp_neon): Likewise.
17093 (movhf_vfp): Likewiwse.
17094 (movsf_vfp): Likewiwse.
17095 (thumb2_movsf_vfp): Likewiwse.
17096 (movdf_vfp): Likewise.
17097 (thumb2_movdf_vfp): Likewise.
17098 (movsfcc_vfp): Likewise.
17099 (thumb2_movsfcc_vfp): Likewise.
17100 (movdfcc_vfp): Likewise.
17101 (thumb2_movdfcc_vfp): Likewise.
17102 * config/arm/arm.c (cortexa7_older_only): Update for attribute change.
17103 * config/arm/arm1020e.md (v10_c2v): Update for attribute change.
17104 (v10_v2c): Likewise.
17105 * config/arm/cortex-a15-neon.md (cortex_a15_neon_int_1): Update for
17107 (cortex_a15_neon_int_2): Likewise.
17108 (cortex_a15_neon_int_3): Likewise.
17109 (cortex_a15_neon_int_4): Likewise.
17110 (cortex_a15_neon_int_5): Likewise.
17111 (cortex_a15_neon_vqneg_vqabs): Likewise.
17112 (cortex_a15_neon_vmov): Likewise.
17113 (cortex_a15_neon_vaba): Likewise.
17114 (cortex_a15_neon_vaba_qqq): Likewise.
17115 (cortex_a15_neon_mul_ddd_8_16_qdd_16_8_long_32_16_long): Likewise.
17116 (cortex_a15_neon_mul_qqq_8_16_32_ddd_32): Likewise.
17117 (cortex_a15_neon_mul_qdd_64_32_long_qqd_16_ddd_32_\
17118 scalar_64_32_long_scalar): Likewise.
17119 (cortex_a15_neon_mla_ddd_8_16_qdd_16_8_long_32_16_long): Likewise.
17120 (cortex_a15_neon_mla_qqq_8_16): Likewise.
17121 (cortex_a15_neon_mla_ddd_32_qqd_16_ddd_32_scalar_qdd_64_32_\
17122 lotype_qdd_64_32_long): Likewise.
17123 (cortex_a15_neon_mla_qqq_32_qqd_32_scalar): Likewise.
17124 (cortex_a15_neon_mul_ddd_16_scalar_32_16_long_scalar): Likewise.
17125 (cortex_a15_neon_mul_qqd_32_scalar): Likewise.
17126 (cortex_a15_neon_mla_ddd_16_scalar_qdd_32_16_long_scalar): Likewise.
17127 (cortex_a15_neon_shift_1): Likewise.
17128 (cortex_a15_neon_shift_2): Likewise.
17129 (cortex_a15_neon_shift_3): Likewise.
17130 (cortex_a15_neon_vshl_ddd): Likewise.
17131 (cortex_a15_neon_vqshl_vrshl_vqrshl_qqq): Likewise.
17132 (cortex_a15_neon_vsra_vrsra): Likewise.
17133 (cortex_a15_neon_fp_vadd_ddd_vabs_dd): Likewise.
17134 (cortex_a15_neon_fp_vadd_qqq_vabs_qq): Likewise.
17135 (cortex_a15_neon_fp_vmul_ddd): Likewise.
17136 (cortex_a15_neon_fp_vmul_qqd): Likewise.
17137 (cortex_a15_neon_fp_vmla_ddd): Likewise.
17138 (cortex_a15_neon_fp_vmla_qqq): Likewise.
17139 (cortex_a15_neon_fp_vmla_ddd_scalar): Likewise.
17140 (cortex_a15_neon_fp_vmla_qqq_scalar): Likewise.
17141 (cortex_a15_neon_fp_vrecps_vrsqrts_ddd): Likewise.
17142 (cortex_a15_neon_fp_vrecps_vrsqrts_qqq): Likewise.
17143 (cortex_a15_neon_bp_simple): Likewise.
17144 (cortex_a15_neon_bp_2cycle): Likewise.
17145 (cortex_a15_neon_bp_3cycle): Likewise.
17146 (cortex_a15_neon_vld1_1_2_regs): Likewise.
17147 (cortex_a15_neon_vld1_3_4_regs): Likewise.
17148 (cortex_a15_neon_vld2_2_regs_vld1_vld2_all_lanes): Likewise.
17149 (cortex_a15_neon_vld2_4_regs): Likewise.
17150 (cortex_a15_neon_vld3_vld4): Likewise.
17151 (cortex_a15_neon_vst1_1_2_regs_vst2_2_regs): Likewise.
17152 (cortex_a15_neon_vst1_3_4_regs): Likewise.
17153 (cortex_a15_neon_vst2_4_regs_vst3_vst4): Likewise.
17154 (cortex_a15_neon_vst3_vst4): Likewise.
17155 (cortex_a15_neon_vld1_vld2_lane): Likewise.
17156 (cortex_a15_neon_vld3_vld4_lane" 10
17157 (cortex_a15_neon_vst1_vst2_lane): Likewise.
17158 (cortex_a15_neon_vst3_vst4_lane): Likewise.
17159 (cortex_a15_neon_vld3_vld4_all_lanes): Likewise.
17160 (cortex_a15_neon_ldm_2): Likewise.0
17161 (cortex_a15_neon_stm_2): Likewise.
17162 (cortex_a15_neon_mcr): Likewise.
17163 (cortex_a15_neon_mcr_2_mcrr): Likewise.
17164 (cortex_a15_neon_mrc): Likewise.
17165 (cortex_a15_neon_mrrc): Likewise.
17166 * config/arm/cortex-a15.md (cortex_a15_alu): Update for attribute
17168 (cortex_a15_alu_shift): Likewise.
17169 (cortex_a15_alu_shift_reg): Likewise.
17170 (cortex_a15_mult32): Likewise.
17171 (cortex_a15_mult64): Likewise.
17172 (cortex_a15_block): Likewise.
17173 (cortex_a15_branch): Likewise.
17174 (cortex_a15_load1): Likewise.
17175 (cortex_a15_load3): Likewise.
17176 (cortex_a15_store1): Likewise.
17177 (cortex_a15_store3): Likewise.
17178 (cortex_a15_call): Likewise.
17179 * config/arm/cortex-a5.md (cortex_a5_r2f): Update for attribute change.
17180 (cortex_a5_f2r): Likewise.
17181 * config/arm/cortex-a53.md (cortex_a53_r2f): Update for attribute
17183 (cortex_a53_f2r): Likewise.
17184 * config/arm/cortex-a7.md
17185 (cortex_a7_branch): Update for attribute change.
17186 (cortex_a7_call): Likewise.
17187 (cortex_a7_alu_imm): Likewise.
17188 (cortex_a7_alu_reg): Likewise.
17189 (cortex_a7_alu_shift): Likewise.
17190 (cortex_a7_mul): Likewise.
17191 (cortex_a7_load1): Likewise.
17192 (cortex_a7_store1): Likewise.
17193 (cortex_a7_load2): Likewise.
17194 (cortex_a7_store2): Likewise.
17195 (cortex_a7_load3): Likewise.
17196 (cortex_a7_store3): Likewise.
17197 (cortex_a7_load4): Likewise.
17198 (cortex_a7_store4): Likewise.
17199 (cortex_a7_fpalu): Likewise.
17200 (cortex_a7_fconst): Likewise.
17201 (cortex_a7_fpmuls): Likewise.
17202 (cortex_a7_neon_mul): Likewise.
17203 (cortex_a7_fpmacs): Likewise.
17204 (cortex_a7_neon_mla: Likewise.
17205 (cortex_a7_fpmuld: Likewise.
17206 (cortex_a7_fpmacd: Likewise.
17207 (cortex_a7_fpfmad: Likewise.
17208 (cortex_a7_fdivs: Likewise.
17209 (cortex_a7_fdivd: Likewise.
17210 (cortex_a7_r2f: Likewise.
17211 (cortex_a7_f2r: Likewise.
17212 (cortex_a7_f_flags: Likewise.
17213 (cortex_a7_f_loads: Likewise.
17214 (cortex_a7_f_loadd: Likewise.
17215 (cortex_a7_f_stores: Likewise.
17216 (cortex_a7_f_stored: Likewise.
17217 (cortex_a7_neon): Likewise.
17218 * config/arm/cortex-a8-neon.md
17219 (cortex_a8_neon_mrc): Update for attribute change.
17220 (cortex_a8_neon_mrrc): Likewise.
17221 (cortex_a8_neon_int_1): Likewise.
17222 (cortex_a8_neon_int_2): Likewise.
17223 (cortex_a8_neon_int_3): Likewise.
17224 (cortex_a8_neon_int_4): Likewise.
17225 (cortex_a8_neon_int_5): Likewise.
17226 (cortex_a8_neon_vqneg_vqabs): Likewise.
17227 (cortex_a8_neon_vmov): Likewise.
17228 (cortex_a8_neon_vaba): Likewise.
17229 (cortex_a8_neon_vaba_qqq): Likewise.
17230 (cortex_a8_neon_vsma): Likewise.
17231 (cortex_a8_neon_mul_ddd_8_16_qdd_16_8_long_32_16_long): Likewise.
17232 (cortex_a8_neon_mul_qqq_8_16_32_ddd_32): Likewise.
17233 (cortex_a8_neon_mul_qdd_64_32_long_qqd_16_ddd_32_scalar_64_32_\
17234 long_scalar): Likewise.
17235 (cortex_a8_neon_mla_ddd_8_16_qdd_16_8_long_32_16_long): Likewise.
17236 (cortex_a8_neon_mla_qqq_8_16): Likewise.
17237 (cortex_a8_neon_mla_ddd_32_qqd_16_ddd_32_scalar_qdd_64_32_\
17238 long_scalar_qdd_64_32_long): Likewise.
17239 (cortex_a8_neon_mla_qqq_32_qqd_32_scalar): Likewise.
17240 (cortex_a8_neon_mul_ddd_16_scalar_32_16_long_scalar): Likewise.
17241 (cortex_a8_neon_mul_qqd_32_scalar): Likewise.
17242 (cortex_a8_neon_mla_ddd_16_scalar_qdd_32_16_long_scalar): Likewise.
17243 (cortex_a8_neon_shift_1): Likewise.
17244 (cortex_a8_neon_shift_2): Likewise.
17245 (cortex_a8_neon_shift_3): Likewise.
17246 (cortex_a8_neon_vshl_ddd): Likewise.
17247 (cortex_a8_neon_vqshl_vrshl_vqrshl_qqq): Likewise.
17248 (cortex_a8_neon_vsra_vrsra): Likewise.
17249 (cortex_a8_neon_fp_vadd_ddd_vabs_dd): Likewise.
17250 (cortex_a8_neon_fp_vadd_qqq_vabs_qq): Likewise.
17251 (cortex_a8_neon_fp_vsum): Likewise.
17252 (cortex_a8_neon_fp_vmul_ddd): Likewise.
17253 (cortex_a8_neon_fp_vmul_qqd): Likewise.
17254 (cortex_a8_neon_fp_vmla_ddd): Likewise.
17255 (cortex_a8_neon_fp_vmla_qqq): Likewise.
17256 (cortex_a8_neon_fp_vmla_ddd_scalar): Likewise.
17257 (cortex_a8_neon_fp_vmla_qqq_scalar): Likewise.
17258 (cortex_a8_neon_fp_vrecps_vrsqrts_ddd): Likewise.
17259 (cortex_a8_neon_fp_vrecps_vrsqrts_qqq): Likewise.
17260 (cortex_a8_neon_bp_simple): Likewise.
17261 (cortex_a8_neon_bp_2cycle): Likewise.
17262 (cortex_a8_neon_bp_3cycle): Likewise.
17263 (cortex_a8_neon_ldr): Likewise.
17264 (cortex_a8_neon_str): Likewise.
17265 (cortex_a8_neon_vld1_1_2_regs): Likewise.
17266 (cortex_a8_neon_vld1_3_4_regs): Likewise.
17267 (cortex_a8_neon_vld2_2_regs_vld1_vld2_all_lanes): Likewise.
17268 (cortex_a8_neon_vld2_4_regs): Likewise.
17269 (cortex_a8_neon_vld3_vld4): Likewise.
17270 (cortex_a8_neon_vst1_1_2_regs_vst2_2_regs): Likewise.
17271 (cortex_a8_neon_vst1_3_4_regs): Likewise.
17272 (cortex_a8_neon_vst2_4_regs_vst3_vst4): Likewise.
17273 (cortex_a8_neon_vst3_vst4): Likewise.
17274 (cortex_a8_neon_vld1_vld2_lane): Likewise.
17275 (cortex_a8_neon_vld3_vld4_lane): Likewise.
17276 (cortex_a8_neon_vst1_vst2_lane): Likewise.
17277 (cortex_a8_neon_vst3_vst4_lane): Likewise.
17278 (cortex_a8_neon_vld3_vld4_all_lanes): Likewise.
17279 (cortex_a8_neon_mcr): Likewise.
17280 (cortex_a8_neon_mcr_2_mcrr): Likewise.
17281 * config/arm/cortex-a8.md (cortex_a8_alu): Update for attribute change.
17282 * config/arm/cortex-a9-neon.md (ca9_neon_mrc): Update for attribute
17284 (ca9_neon_mrrc): Likewise.
17285 (cortex_a9_neon_int_1): Likewise.
17286 (cortex_a9_neon_int_2): Likewise.
17287 (cortex_a9_neon_int_3): Likewise.
17288 (cortex_a9_neon_int_4): Likewise.
17289 (cortex_a9_neon_int_5): Likewise.
17290 (cortex_a9_neon_vqneg_vqabs): Likewise.
17291 (cortex_a9_neon_vmov): Likewise.
17292 (cortex_a9_neon_vaba): Likewise.
17293 (cortex_a9_neon_vaba_qqq): Likewise.
17294 (cortex_a9_neon_vsma): Likewise.
17295 (cortex_a9_neon_mul_ddd_8_16_qdd_16_8_long_32_16_long): Likewise.
17296 (cortex_a9_neon_mul_qqq_8_16_32_ddd_32): Likewise.
17297 (cortex_a9_neon_mul_qdd_64_32_long_qqd_16_ddd_32_scalar_64_32_\
17298 long_scalar): Likewise.
17299 (cortex_a9_neon_mla_ddd_8_16_qdd_16_8_long_32_16_long): Likewise.
17300 (cortex_a9_neon_mla_qqq_8_16): Likewise.
17301 (cortex_a9_neon_mla_ddd_32_qqd_16_ddd_32_scalar_qdd_64_32_\
17302 long_scalar_qdd_64_32_long): Likewise.
17303 (cortex_a9_neon_mla_qqq_32_qqd_32_scalar): Likewise.
17304 (cortex_a9_neon_mul_ddd_16_scalar_32_16_long_scalar): Likewise.
17305 (cortex_a9_neon_mul_qqd_32_scalar): Likewise.
17306 (cortex_a9_neon_mla_ddd_16_scalar_qdd_32_16_long_scalar): Likewise.
17307 (cortex_a9_neon_shift_1): Likewise.
17308 (cortex_a9_neon_shift_2): Likewise.
17309 (cortex_a9_neon_shift_3): Likewise.
17310 (cortex_a9_neon_vshl_ddd): Likewise.
17311 (cortex_a9_neon_vqshl_vrshl_vqrshl_qqq): Likewise.
17312 (cortex_a9_neon_vsra_vrsra): Likewise.
17313 (cortex_a9_neon_fp_vadd_ddd_vabs_dd): Likewise.
17314 (cortex_a9_neon_fp_vadd_qqq_vabs_qq): Likewise.
17315 (cortex_a9_neon_fp_vsum): Likewise.
17316 (cortex_a9_neon_fp_vmul_ddd): Likewise.
17317 (cortex_a9_neon_fp_vmul_qqd): Likewise.
17318 (cortex_a9_neon_fp_vmla_ddd): Likewise.
17319 (cortex_a9_neon_fp_vmla_qqq): Likewise.
17320 (cortex_a9_neon_fp_vmla_ddd_scalar): Likewise.
17321 (cortex_a9_neon_fp_vmla_qqq_scalar): Likewise.
17322 (cortex_a9_neon_fp_vrecps_vrsqrts_ddd): Likewise.
17323 (cortex_a9_neon_fp_vrecps_vrsqrts_qqq): Likewise.
17324 (cortex_a9_neon_bp_simple): Likewise.
17325 (cortex_a9_neon_bp_2cycle): Likewise.
17326 (cortex_a9_neon_bp_3cycle): Likewise.
17327 (cortex_a9_neon_ldr): Likewise.
17328 (cortex_a9_neon_str): Likewise.
17329 (cortex_a9_neon_vld1_1_2_regs): Likewise.
17330 (cortex_a9_neon_vld1_3_4_regs): Likewise.
17331 (cortex_a9_neon_vld2_2_regs_vld1_vld2_all_lanes): Likewise.
17332 (cortex_a9_neon_vld2_4_regs): Likewise.
17333 (cortex_a9_neon_vld3_vld4): Likewise.
17334 (cortex_a9_neon_vst1_1_2_regs_vst2_2_regs): Likewise.
17335 (cortex_a9_neon_vst1_3_4_regs): Likewise.
17336 (cortex_a9_neon_vst2_4_regs_vst3_vst4): Likewise.
17337 (cortex_a9_neon_vst3_vst4): Likewise.
17338 (cortex_a9_neon_vld1_vld2_lane): Likewise.
17339 (cortex_a9_neon_vld3_vld4_lane): Likewise.
17340 (cortex_a9_neon_vst1_vst2_lane): Likewise.
17341 (cortex_a9_neon_vst3_vst4_lane): Likewise.
17342 (cortex_a9_neon_vld3_vld4_all_lanes): Likewise.
17343 (cortex_a9_neon_mcr): Likewise.
17344 (cortex_a9_neon_mcr_2_mcrr): Likewise.
17345 * config/arm/cortex-a9.md (cortex_a9_dp): Update for attribute change.
17346 (cortex_a9_fps): Likewise.
17347 * config/arm/cortex-m4-fpu.md (cortex_m4_vmov_2): Update for attribute
17349 (cortex_m4_fmuls): Likewise.
17350 * config/arm/cortex-r4f.md (cortex_r4_mcr): Update for attribute
17352 (cortex_r4_mrc): Likewise.
17353 * config/arm/iterators.md: Update comment referring to neon_type.
17354 * config/arm/iwmmxt.md (iwmmxt_arm_movdi): Update for attribute change.
17355 (iwmmxt_movsi_insn): Likewise.
17356 * config/arm/marvell-pj4.md (pj4_vfp_to_core): Update for
17358 (pj4_core_to_vfp): Likewise.
17359 * config/arm/neon-schedgen.ml (emit_insn_reservations): Update for
17361 * config/arm/vfp11.md (vfp_fload): Update for attribute change.
17362 (vfp_fstore): Likewise.
17363 * doc/md.texi: Change references to neon_type to refer to type.
17365 2013-09-04 Dodji Seketeli <dodji@redhat.com>
17367 * tree.h (DECL_BUILT_IN): Fix typo in comment.
17369 2013-09-04 David Edelsohn <dje.gcc@gmail.com>
17371 * config/rs6000/rs6000.h (ASM_OUTPUT_DEF_FROM_DECLS): Only emit
17372 lglobl if not weak.
17374 2013-09-04 Easwaran Raman <eraman@google.com>
17376 PR middle-end/57370
17377 * tree-ssa-reassoc.c (get_stmt_uid_with_default): New function,
17378 (build_and_add_sum): Use it.
17379 (appears_later_in_bb): Simplify code.
17381 2013-09-04 Teresa Johnson <tejohnson@google.com>
17383 * dumpfile.c (dump_finish): Don't close stderr/stdout.
17385 2013-09-04 James Greenhalgh <james.greenhalgh@arm.com>
17387 * config/aarch64/arm_neon.h (vaddvq_<su>64): Fix return types.
17389 2013-09-04 Jan Hubicka <jh@suse.cz>
17391 * Makefile.in (ipa-devirt.o): Add dependency on diagnostic.h
17392 * ipa-devirt.c: Include diganostic.h
17393 (odr_type_d): Add types and types_set.
17394 (hash_type_name): Work for types with vtables during LTO.
17395 (odr_hasher::remove): Fix comment; destroy types_set.
17396 (add_type_duplicate): New function,
17397 (get_odr_type): Use it.
17398 (dump_type_inheritance_graph): Dump type duplicates.
17399 * ipa.c (symtab_remove_unreachable_nodes): Build type inheritance
17401 * tree.c (types_same_for_odr): Give exact answers on types with
17404 2013-09-04 Dodji Seketeli <dodji@redhat.com>
17406 * tree.h (DECL_BUILT_IN, DECL_IS_BUILTIN): Add more comments
17407 explaining their differences.
17409 2013-09-04 Sandeep Kumar Singh<Sandeep.Singh2@kpitcummins.com>
17411 * config/rx/rx.h: Add option -mcpu for target variants RX100 and RX200.
17413 2013-09-03 Jeff Law <law@redhat.com>
17415 * tree-ssa-threadedge.c (thread_across_edge): Record entire path
17416 when not threading through a joiner block. Pass joiner/no joiner
17417 state to register_jump_thread.
17418 * tree-ssa-threadupdate.c (register_jump_thread): Get joiner/no joiner
17419 state from argument rather than implying on path length.
17420 Dump the entire jump thread path into debugging dump.
17421 * tree-flow.h (register_jump_thread): Update prototype.
17423 2013-08-29 Xinliang David Li <davidxl@google.com>
17425 * tree-vect-data-refs.c (vect_compute_data_ref_alignment):
17426 Remove a trivial gcc_assert.
17428 2013-08-29 Xinliang David Li <davidxl@google.com>
17430 * tree-vect-slp.c (destroy_bb_vec_info): Data ref cleanup.
17431 * tree-vect-loop.c (destroy_bb_vec_info): Ditto.
17432 * tree-vect-data-refs.c (vect_compute_data_ref_alignment):
17433 Delay base decl alignment adjustment.
17434 * tree-vectorizer.c (vect_destroy_datarefs): New function.
17435 * tree-vectorizer.h: New data structure.
17436 (set_dr_misalignment): New function.
17437 (dr_misalignment): Ditto.
17438 * tree-vect-stmts.c (vectorizable_store): Ensure alignment.
17439 (vectorizable_load): Ditto.
17440 (ensure_base_align): New function.
17441 (vectorize_loops): Add dbg_cnt support.
17442 (execute_vect_slp): Ditto.
17443 * dbgcnt.def: New debug counter.
17444 * Makefile: New dependency.
17446 2013-09-03 Meador Inge <meadori@codesourcery.com>
17450 2013-08-30 Meador Inge <meadori@codesourcery.com>
17452 * tree-vrp.c (check_array_ref): Bail out on zero-length arrays.
17454 2013-09-03 David Edelsohn <dje.gcc@gmail.com>
17456 * config/rs6000/rs6000.h (ASM_OUTPUT_DEF_FROM_DECLS): Emit lglobl for
17457 function descriptor.
17459 2013-09-03 Richard Biener <rguenther@suse.de>
17461 * tree-affine.c (add_elt_to_tree): Fix association issue,
17462 avoid useless converts and make sure to always return a
17463 properly typed result.
17465 2013-09-03 Richard Biener <rguenther@suse.de>
17467 PR middle-end/57656
17468 * fold-const.c (negate_expr_p): Fix division case.
17469 (negate_expr): Likewise.
17471 2013-09-03 Richard Biener <rguenther@suse.de>
17474 * tree-streamer-out.c: Include tm.h.
17475 * Makefile.in (tree-streamer-out.o): Depend on $(TM_H).
17477 2013-09-03 Jan Hubicka <jh@suse.cz>
17479 * tree-profile.c (tree_profiling): Cleanup CFG when done.
17481 2013-09-03 Alan Modra <amodra@gmail.com>
17483 * config.gcc (powerpc*-*-linux*): Add support for little-endian
17484 multilibs to big-endian target and vice versa.
17485 * config/rs6000/t-linux64: Use := assignment on all vars.
17486 (MULTILIB_EXTRA_OPTS): Remove fPIC.
17487 (MULTILIB_OSDIRNAMES): Specify using mapping from multilib_options.
17488 * config/rs6000/t-linux64le: New file.
17489 * config/rs6000/t-linux64bele: New file.
17490 * config/rs6000/t-linux64lebe: New file.
17492 2013-09-02 Jan Hubicka <jh@suse.cz>
17494 * ipa-inline-transform.c (inline_transform): Do not
17495 optimize_inline_calls when not optimizing.
17497 2013-09-02 Jan Hubicka <jh@suse.cz>
17499 * lto-symtab.c (lto_symtab_merge_symbols): Add comments; merge
17500 duplicated nodes for assembler names.
17501 * symtab.c (symtab_unregister_node): Do not attempt to unlink
17502 hard registers from assembler name hash.
17504 2013-09-02 Jan Hubicka <jh@suse.cz>
17506 * ipa-split.c (execute_split_functions): Split externally visible
17507 functions called once.
17509 2013-09-02 Martin Jambor <mjambor@suse.cz>
17512 * ipa-prop.c (ipa_edge_duplication_hook): Always put new rdesc to the
17513 linked list. When finding the correct duplicate, also consider also
17514 the caller in additon to its inlined_to node.
17516 2013-09-02 James Greenhalgh <james.greenhalgh@arm.com>
17518 * config/aarch64/aarch64-simd-builtins.def
17519 (dup_lane_scalar): Remove.
17520 * config/aarch64/aarch64-simd.md
17521 (aarch64_simd_dup): Add 'w->w' alternative.
17522 (aarch64_dup_lane<mode>): Allow for VALL.
17523 (aarch64_dup_lane_scalar<mode>): Remove.
17524 (aarch64_dup_lane_<vswap_width_name><mode>): New.
17525 (aarch64_get_lane_signed<mode>): Add w->w altenative.
17526 (aarch64_get_lane_unsigned<mode>): Likewise.
17527 (aarch64_get_lane<mode>): Likewise.
17528 * config/aarch64/aarch64.c (aarch64_evpc_dup): New.
17529 (aarch64_expand_vec_perm_const_1): Use aarch64_evpc_dup.
17530 * config/aarch64/iterators.md (VSWAP_WIDTH): New.
17531 (VCON): Change container of V2SF.
17532 (vswap_width_name): Likewise.
17533 * config/aarch64/arm_neon.h
17534 (__aarch64_vdup_lane_any): New.
17535 (__aarch64_vdup<q>_lane<q>_<fpsu><8,16,32,64>): Likewise.
17536 (vdup<q>_n_<psuf><8,16,32,64>): Convert to C implementation.
17537 (vdup<q>_lane<q>_<fpsu><8,16,32,64>): Likewise.
17539 2013-09-02 Eric Botcazou <ebotcazou@adacore.com>
17541 PR middle-end/56382
17542 * expr.c (emit_move_complex): Do not move complex FP values as parts if
17543 the source or the destination is a single hard register.
17545 2013-09-02 Richard Biener <rguenther@suse.de>
17547 PR middle-end/57511
17548 * tree-scalar-evolution.c (instantiate_scev_name): Allow
17551 2013-09-02 Richard Biener <rguenther@suse.de>
17553 * tree-affine.c (add_elt_to_tree): Avoid converting all pointer
17554 arithmetic to sizetype.
17556 2013-09-02 Bin Cheng <bin.cheng@arm.com>
17558 * tree-ssa-loop-ivopts.c (set_autoinc_for_original_candidates):
17559 Find auto-increment use both before and after candidate.
17561 2013-09-02 Marek Polacek <polacek@redhat.com>
17563 * Makefile.in (ubsan.o): Add $(TM_P_H) dependency.
17565 2013-09-01 Jan Hubicka <jh@suse.cz>
17567 * Makefile.in: Add ipa-profile.o
17568 (ipa.o, ipa-devrit.o, ipa-inline-analysis.o): Adjust dependencies.
17569 * cgraph.c (struct cgraph_propagate_frequency_data,
17570 cgraph_propagate_frequency_1, cgraph_propagate_frequency): Move to
17571 ipa-profile.c; replace cgraph_ by ipa_ prefix.
17572 * cgraph.h (cgraph_propagate_frequency): Remove.
17573 * ipa-inline-analysis.c: Include ipa-utils.h;
17574 drop duplicated cfgloop.h.
17575 (inline_update_callee_summaries): Update.
17576 * ipa-profile.c: New file.
17577 * ipa-utils.h (ipa_propagate_frequency): Declare.
17578 * ipa.c: Do not include pointer-set.h, hash-table.h, lto-streamer.h,
17579 data-streamer.h, value-prof.h.
17580 (symtab_remove_unreachable_nodes): Update profile.
17581 (struct histogram_entry, histogram, histogram_pool, histogram_hash,
17582 account_time_size, cmp_counts, dump_histogram,
17583 ipa_profile_generate_summary, ipa_profile_write_summary,
17584 ipa_profile_read_summary, ipa_profile, gate_ipa_profile,
17585 pass_data_ipa_profile, pass_ipa_profile, make_pass_ipa_profile):
17586 Move to ipa-profile.c.
17588 2013-09-01 John David Anglin <danglin@gcc.gnu.org>
17590 * config/pa/pa.md: Allow "const 0" operand 1 in "scc" insns.
17592 2013-09-01 Jan Hubicka <jh@suse.cz>
17594 * common.opt (fdevirtualize-speculatively): New function.
17595 * invoke.texi (fdevirtualize-speculatively): Document.
17596 * ipa-devirt.c: Include ipa-inline.h
17597 (likely_target_p): New function.
17598 (ipa_devirt): New function.
17599 (gate_ipa_devirt): New function.
17600 (pass_data_ipa_devirt): New static var.
17601 (pass_ipa_devirt): Likewise.
17602 (make_pass_ipa_devirt): New function.
17603 * opts.c (default_options): Add OPT_fdevirtualize_speculatively.
17604 (common_handle_option): Disable devirtualization when
17605 value range profiling is available.
17606 * passes.def (pass_ipa_devirt): Add.
17607 * timever.def (TV_IPA_DEVIRT): New timevar.
17608 * tree-pass.h (make_pass_ipa_devirt):
17610 2013-09-01 Iain Sandoe <iain@codesourcery.com>
17612 * config/darwin.h (LINK_COMMAND_SPEC_A): Revise sanitizer specs to
17613 include sanitize(undefined).
17615 2013-08-31 Diego Novillo <dnovillo@google.com>
17617 * Makefile.in (TREE_CORE_H): Define.
17619 (GTFILES): Add tree-core.h.
17620 * builtins.c (built_in_class_names): Use BUILT_IN_LAST to
17622 * tree-core.h: New file.
17623 Move all data structures, enum, typedefs, global
17624 declarations and constants from ...
17625 * tree.h: ... here.
17627 2013-08-31 Jan Hubicka <jh@suse.cz>
17629 * bulitins.c (expand_builtin): Do not early exit for gcov
17630 instrumented functions.
17632 2013-08-31 Marek Polacek <polacek@redhat.com>
17634 * ubsan.c: Include tm_p.h.
17636 2013-08-31 Jan Hubicka <jh@suse.cz>
17638 * gimple-streamer-in.c (input_gimple_stmt): Silence parameter unused
17641 * cgraph.c (cgraph_get_body): Update call of lto_input_function_body.
17642 * gimple-streamer-in.c (input_gimple_stmt): Move sanity check to ...
17643 * tree-cfg.c (verify_gimple_label): ... here.
17644 * ipa-utils.c: Include lto-streamer.h, ipa-inline.h
17645 (ipa_merge_profiles): New function.
17646 * lto-streamer-in.c (lto_read_body): Take node instead of fn_decl.
17647 (lto_input_function_body): Likewise.
17648 * ipa-utils.h (ipa_merge_profiles): Declare.
17649 * lto-streamer.h (lto_input_function_body): Update prototype.
17650 (emit_label_in_global_context_p): Remove.
17651 * lto-symtab.c: Include ipa-utils.h
17652 (lto_cgraph_replace_node): Use ipa_merge_profiles.
17654 2013-08-31 Jan Hubicka <jh@suse.cz>
17656 * cgraph.c (cgraph_speculative_call_info): Fix ref lookup
17658 2013-08-31 Jan Hubicka <jh@suse.cz>
17660 * basic-block.h (apply_scale): Make scale parmeter gcov_type.
17662 2013-08-31 Uros Bizjak <ubizjak@gmail.com>
17664 * config/alpha/alpha.c (alpha_emit_conditional_move): Update
17665 "cmp" RTX before signed_comparison_operator check to account
17666 for "code" changes.
17668 2013-08-30 Jan Hubicka <jh@suse.cz>
17670 * ipa-prop.c (ipa_set_jf_known_type): Check that we add only records.
17671 (detect_type_change_1): Rename to ...
17672 (detect_type_change): ... this one; early return on non-polymorphic
17674 (detect_type_change_ssa): Add comp_type parameter; update
17675 use of detect_type_change.
17676 (compute_complex_assign_jump_func): Add param_type parameter;
17677 update use of detect_type_change_ssa.
17678 (compute_complex_ancestor_jump_func): Likewise.
17679 (ipa_get_callee_param_type): New function.
17680 (ipa_compute_jump_functions_for_edge): Compute parameter type;
17681 update calls to the jump function computation functions.
17683 2013-08-30 Teresa Johnson <tejohnson@google.com>
17684 Steven Bosscher <steven@gcc.gnu.org>
17686 * cfgrtl.c (fixup_new_cold_bb): New routine.
17687 (commit_edge_insertions): Invoke fixup_partitions.
17688 (find_partition_fixes): New routine.
17689 (fixup_partitions): Ditto.
17690 (verify_hot_cold_block_grouping): Update comments.
17691 (rtl_verify_edges): Invoke find_partition_fixes.
17692 (rtl_verify_bb_pointers): Update comments.
17693 (rtl_verify_bb_layout): Ditto.
17694 * basic-block.h (probably_never_executed_edge_p): Declare.
17695 (fixup_partitions): Ditto.
17696 * cfgcleanup.c (try_optimize_cfg): Invoke fixup_partitions.
17697 * bb-reorder.c (sanitize_hot_paths): New function.
17698 (find_rarely_executed_basic_blocks_and_crossing_edges): Invoke
17699 sanitize_hot_paths.
17700 * predict.c (probably_never_executed_edge_p): New routine.
17701 * cfg.c (check_bb_profile): Add partition insanity warnings.
17703 2013-08-30 Meador Inge <meadori@codesourcery.com>
17705 * tree-vrp.c (check_array_ref): Bail out on zero-length arrays.
17707 2013-08-30 Marek Polacek <polacek@redhat.com>
17709 * Makefile.in (ubsan.o): Add.
17710 (c-family/c-ubsan.o): Add.
17711 (builtins.o): Add ubsan.h dependency.
17712 * ubsan.h: New file.
17713 * ubsan.c: New file.
17714 * common.opt: Add -fsanitize=undefined option.
17715 (flag_sanitize): Add variable.
17716 (fsanitize=): Add option. Add Driver.
17717 (fsanitize=thread): Remove option.
17718 (fsanitize=address): Likewise.
17719 (static-libubsan): New option.
17720 * doc/invoke.texi: Document the new flag and -static-libubsan.
17721 * sanitizer.def (DEF_SANITIZER_BUILTIN): Define.
17722 (BUILT_IN_UBSAN_HANDLE_BUILTIN_UNREACHABLE): Define.
17723 * builtin-attrs.def (ATTR_COLD): Define.
17724 (ATTR_COLD_NOTHROW_LEAF_LIST): Define.
17725 * builtins.def (BUILT_IN_UBSAN_HANDLE_DIVREM_OVERFLOW,
17726 BUILT_IN_UBSAN_HANDLE_SHIFT_OUT_OF_BOUNDS): Define.
17727 * flag-types.h (sanitize_code): New enum.
17728 * opts.c (common_handle_option): Parse command line arguments
17729 of -fsanitize=. Add -fsanitize=unreachable option.
17730 * varasm.c (get_variable_section): Adjust.
17731 (assemble_noswitch_variable): Likewise.
17732 (assemble_variable): Likewise.
17733 (output_constant_def_contents): Likewise.
17734 (categorize_decl_for_section): Likewise.
17735 (place_block_symbol): Likewise.
17736 (output_object_block): Likewise.
17737 * builtins.def: Likewise.
17738 * toplev.c (compile_file): Likewise.
17739 (process_options): Likewise.
17740 * cppbuiltin.c: Likewise.
17741 * tsan.c (tsan_pass): Likewise.
17742 (tsan_gate): Likewise.
17743 (tsan_gate_O0): Likewise.
17744 * cfgexpand.c (partition_stack_vars): Likewise.
17745 (expand_stack_vars): Likewise.
17746 (defer_stack_allocation): Likewise.
17747 (expand_used_vars): Likewise.
17748 * cfgcleanup.c (old_insns_match_p): Likewise.
17749 * asan.c (asan_finish_file): Likewise.
17750 (asan_instrument): Likewise.
17751 (gate_asan): Likewise.
17752 (initialize_sanitizer_builtins): Build BT_FN_VOID_PTR_PTR_PTR.
17753 (ATTR_COLD_NOTHROW_LEAF_LIST): Define.
17754 (asan_global_struct): Use pointer_sized_int_node instead
17755 calling build_nonstandard_integer_type.
17756 (initialize_sanitizer_builtins): Likewise.
17757 (asan_finish_file): Likewise.
17758 * gcc.c: Document %{%:function(args):X}.
17759 (static_spec_functions): Add sanitize.
17760 (handle_spec_function): Add retval_nonnull argument and if non-NULL,
17761 store funcval != NULL there.
17762 (do_spec_1): Adjust handle_spec_function caller.
17763 (handle_braces): Allow %:function(args) as condition.
17764 (sanitize_spec_function): New function.
17765 (ADD_STATIC_LIBUBSAN_LIBS): Define.
17766 (LIBUBSAN_SPEC): Likewise.
17767 (LIBUBSAN_EARLY_SPEC): Likewise.
17768 (SANITIZER_SPEC): Handle libubsan.
17769 (SANITIZER_EARLY_SPEC): Likewise.
17770 * config/darwin.h (LINK_COMMAND_SPEC_A): Use %:sanitize(address)
17771 instead of fsanitize=address.
17772 * config/arm/linux-eabi.h (ASAN_CC1_SPEC): Use %:sanitize(address)
17773 instead of fsanitize=address*.
17774 * builtins.c: Include ubsan.h.
17775 (fold_builtin_0): Instrument __builtin_unreachable.
17776 * config/rs6000/rs6000.h (FRAME_GROWS_DOWNWARD): Use flag_sanitize
17777 instead of flag_asan.
17778 * tree.h (enum tree_index): Add TI_POINTER_SIZED_TYPE.
17779 (pointer_sized_int_node): Define.
17780 * tree.c (build_common_tree_nodes): Initialize pointer_sized_int_node.
17782 2013-08-30 Mike Stump <mikestump@comcast.net>
17784 * doc/install.texi (Prerequisites): Note regression in Tcl 8.6
17787 2013-08-29 Jan Hubicka <jh@suse.cz>
17789 * cgraph.c (cgraph_function_body_availability): Handle weakref
17791 * passes.def: Remove pass_fixup_cfg.
17792 * ipa-inline.c (ipa_inline): When not optimizing, do not inline;
17793 track when we need to remove functions.
17794 (gate_ipa_inline): Execute inlining always; add comment why.
17795 (pass_data_ipa_inline): Remove TODO_remove_functions.
17796 * ipa-inline-analysis.c (inline_generate_summary): When not optimizing
17797 do not produce summaries.
17798 * symtab.c (change_decl_assembler_name): Handle renaming of weakrefs.
17799 (symtab_nonoverwritable_alias): Assert we are not called on weakref.
17800 * varpool.c (cgraph_variable_initializer_availability): Fix weakrefs,
17801 constant pool and vtable.
17803 2013-08-30 Tejas Belagod <tejas.belagod@arm.com>
17805 * config/aarch64/arm_neon.h (__AARCH64_UINT64_C, __AARCH64_INT64_C):
17806 New arm_neon.h's internal macros to specify 64-bit constants.
17807 Avoid using stdint.h's macros.
17809 2013-08-30 Joern Rennecke <joern.rennecke@embecosm.com>
17811 * recog.c (verify_changes): Verify that changes[i].old is non-zero
17812 before applying REG_P.
17814 2013-08-30 Jakub Jelinek <jakub@redhat.com>
17816 PR tree-optimization/58277
17817 * tree-ssa-strlen.c (strlen_enter_block): If do_invalidate gave up
17818 after seeing too many stmts with vdef in between dombb and current
17819 bb, invalidate everything.
17821 2013-08-30 Richard Biener <rguenther@suse.de>
17823 * fold-const.c (fold_single_bit_test): Fix overflow test.
17825 2013-08-30 Eric Botcazou <ebotcazou@adacore.com>
17827 * function.c (assign_parm_setup_reg): For a parameter passed by pointer
17828 and which can live in a register, always retrieve the value on entry.
17829 * var-tracking.c (add_stores): Treat the copy on entry for a parameter
17830 passed by invisible reference specially.
17831 (emit_notes_in_bb) <MO_VAL_USE>: Emit notes before the instruction.
17832 (vt_add_function_parameter): Correctly deal with a parameter passed by
17833 invisible reference.
17835 2013-08-30 Jan Hubicka <jh@suse.cz>
17837 * tree.c (set_call_expr_flags): Fix handling of TM_PURE.
17839 2013-08-30 Richard Biener <rguenther@suse.de>
17841 PR tree-optimization/58228
17842 * tree-vect-data-refs.c (vect_analyze_data_ref_access): Do not
17843 allow invariant loads in nested loop vectorization.
17845 2013-08-30 Richard Biener <rguenther@suse.de>
17847 PR tree-optimization/58223
17848 * tree-loop-distribution.c (has_anti_dependence): Rename to ...
17849 (has_anti_or_output_dependence): ... this and adjust to also
17850 look for output dependences.
17851 (mark_nodes_having_upstream_mem_writes): Adjust.
17852 (rdg_flag_uses): Likewise.
17854 2013-08-30 Richard Biener <rguenther@suse.de>
17856 PR tree-optimization/58010
17857 * tree-vect-loop.c (vect_create_epilog_for_reduction): Remove
17858 assert that we have a loop-closed PHI.
17860 2013-08-29 Jan Hubicka <jh@suse.cz>
17862 * lto-symtab.c (lto_cgraph_replace_node): Free decl_in_state.
17863 * cgraph.c (cgraph_release_function_body): Free decl_in_state.
17864 * lto-section-in.c (lto_free_function_in_decl_state): New function.
17865 (lto_free_function_in_decl_state_for_node): New function.
17867 2013-08-29 Xinliang David Li <davidxl@google.com>
17869 * loop-unroll.c (report_unroll_peel): Minor message change.
17870 * tree-vect-loop-manip.c (vect_do_peeling_for_alignment):
17871 Emit alignment peeling message with default -fopt-info.
17872 (vect_loop_versioning): Emit loop version info message.
17873 * tree-vectorizer.c (vectorize_loops): Minor message change.
17874 (execute_vect_slp): Ditto.
17876 2013-08-29 Eric Botcazou <ebotcazou@adacore.com>
17878 * cgraphclones.c (cgraph_create_virtual_clone): Compute the DECL_NAME
17879 of the clone from the DECL_NAME of the original function.
17881 2013-08-29 Oleg Endo <olegendo@gcc.gnu.org>
17883 * passes.c (register_pass): Add overload.
17884 * tree-pass.h (register_pass): Forward declare it. Add comment.
17886 2013-08-29 Jan Hubicka <jh@suse.cz>
17888 * lto-streamer-out.c (hash_tree): Stream DECL_FINAL_P,
17889 DECL_CXX_CONSTRUCTOR_P, DECL_CXX_DESTRUCTOR_P and TYPE_FINAL_P.
17890 * lto-streamer-in.c (unpack_ts_decl_with_vis_value_fields): Stream
17891 DECL_FINAL_P, DECL_CXX_CONSTRUCTOR_P and DECL_CXX_DESTRUCTOR_P.
17892 (unpack_ts_type_common_value_fields): Stream TYPE_FINAL_P.
17893 * tree-streamer-out.c (pack_ts_decl_with_vis_value_fields):
17894 Add DECL_FINAL_P, DECL_CXX_CONSTRUCTOR_P and DECL_CXX_DESTRUCTOR_P.
17895 (pack_ts_type_common_value_fields): Add TYPE_FINAL_P.
17897 2013-08-29 Teresa Johnson <tejohnson@google.com>
17899 * dumpfile.c (dump_loc): Output column number.
17900 * dumpfile.h (OPTGROUP_OTHER): Add and enable under OPTGROUP_ALL.
17901 * doc/invoke.texi: Document optall -fopt-info flag.
17902 * profile.c (read_profile_edge_counts): Use new dump framework.
17903 (compute_branch_probabilities): Ditto.
17904 * passes.c (pass_manager::register_one_dump_file): Use OPTGROUP_OTHER
17905 when pass not in any opt group.
17906 * pass_manager.h (pass_manager::get_pass_profile): New method.
17907 * value-prof.c (check_counter): Use new dump framework.
17908 (check_ic_target): Ditto.
17909 * coverage.c (get_coverage_counts): Ditto.
17910 (coverage_init): Setup new dump framework.
17912 2013-08-29 Richard Biener <rguenther@suse.de>
17914 PR tree-optimization/58246
17915 * tree-ssa-dce.c (mark_aliased_reaching_defs_necessary_1): Properly
17916 handle the dominance check inside a basic-block.
17918 2013-08-29 Richard Biener <rguenther@suse.de>
17920 PR middle-end/57287
17921 * tree-ssa-copy.c (may_propagate_copy): Allow propagating
17922 of default defs that appear in abnormal PHI nodes.
17924 2013-08-29 Richard Biener <rguenther@suse.de>
17926 PR tree-optimization/57685
17927 * tree-vrp.c (register_edge_assert_for_1): Recurse only for
17928 single-use operands to avoid exponential complexity.
17930 2013-08-28 Dehao Chen <dehao@google.com>
17932 * ipa-inline.c (edge_badness): Fix integer underflow.
17934 2013-08-28 Uros Bizjak <ubizjak@gmail.com>
17936 * gtm-builtins.def (_ITM_free): Declare leaf.
17938 2013-08-28 Jakub Jelinek <jakub@redhat.com>
17941 * config/i386/i386.md (*tls_global_dynamic_64_largepic): New insn.
17942 (*tls_local_dynamic_base_64_largepic): Likewise.
17943 (tls_global_dynamic_64_<mode>, tls_local_dynamic_base_64_<mode>):
17944 Remove predicate from call operand.
17945 * config/i386/i386.c (ix86_tls_get_addr): For -mcmodel=large -fpic
17946 return sum of pic_offset_table_rtx and UNSPEC_PLTOFF of the symbol.
17948 2013-08-28 Jeff Law <law@redhat.com>
17950 * tree-ssa-threadedge.c (thread_around_empty_block): Remove
17951 checks for the number of predecessors and successors allowed.
17952 * tree-ssa-threadupdate.c (mark_threaded_blocks): Ignore requests
17953 which require copying a joiner block if there is a request which
17954 is a subpath that requires no joiner block copying.
17956 2013-08-28 Jan Hubicka <jh@suse.cz>
17958 * lto-streamer-out.c (DFS_write_tree_body): Drop
17959 BINFO_INHERITANCE_CHAIN, BINFO_SUBVTT_INDEX and BINFO_VPTR_INDEX.
17960 (hash_tree): Do not hash DECL_DEFER_OUTPUT, BINFO_INHERITANCE_CHAIN,
17961 BINFO_SUBVTT_INDEX, BINFO_VPTR_INDEX, DECL_IN_TEXT_SECTION.
17962 * tree-streamer-in.c (unpack_ts_decl_common_value_fields):
17963 Do not read DECL_ERROR_ISSUED.
17964 (unpack_ts_decl_with_vis_value_fields): Do not read
17966 (lto_input_ts_binfo_tree_pointers): Do not read
17967 BINFO_INHERITANCE_CHAIN, BINFO_SUBVTT_INDEX, BINFO_VPTR_INDEX
17968 * tree-streamer-out.c (pack_ts_decl_common_value_fields): Do not
17969 write DECL_ERROR_ISSUED..
17970 (pack_ts_decl_with_vis_value_fields): Do not write
17972 (write_ts_binfo_tree_pointers): Do not read BINFO_INHERITANCE_CHAIN,
17973 BINFO_SUBVTT_INDEX, BINFO_VPTR_INDEX.
17974 * print-tree.c (print_node): Do not print DECL_ERROR_ISSUED.
17975 * tree.h (tree_decl_common): Update comment.
17976 (DECL_ERROR_ISSUED): Remove.
17978 2013-08-28 Jakub Jelinek <jakub@redhat.com>
17980 PR middle-end/58257
17981 * omp-low.c (copy_var_decl): Copy over TREE_NO_WARNING flag.
17983 2013-08-28 Jan Hubicka <jh@suse.cz>
17985 * builtins.def (free): Declare leaf.
17987 2013-08-27 David Malcolm <dmalcolm@redhat.com>
17989 * gdbhooks.py: New.
17990 * configure.ac (gdbinit.in): Add import of gcc/gdbhooks.py.
17991 * configure: Regenerate.
17993 2013-08-27 Martin Jambor <mjambor@suse.cz>
17995 * ipa-prop.h (ipa_pass_through_data): New field type_preserved.
17996 (ipa_ancestor_jf_data): Likewise.
17997 (ipa_get_jf_pass_through_agg_preserved): Fix comment typo.
17998 (ipa_get_jf_pass_through_type_preserved): New function.
17999 (ipa_get_jf_ancestor_agg_preserved): Fix comment typo.
18000 (ipa_get_jf_ancestor_type_preserved): New function.
18001 * ipa-cp.c (ipa_get_jf_pass_through_result): Honor type_preserved flag.
18002 (ipa_get_jf_ancestor_result): Likewise.
18003 (propagate_vals_accross_pass_through): Use
18004 ipa_get_jf_pass_through_result to do all the value mappings.
18005 * ipa-prop.c (ipa_print_node_jump_functions_for_edge): Dump the
18006 type_preserved flag.
18007 (ipa_set_jf_cst_copy): New function.
18008 (ipa_set_jf_simple_pass_through): Set the type_preserved flag.
18009 (ipa_set_jf_arith_pass_through): Likewise.
18010 (ipa_set_ancestor_jf): Likewise.
18011 (compute_complex_assign_jump_func): Set type_preserved instead of
18013 (ipa_compute_jump_functions_for_edge): Likewise.
18014 (combine_known_type_and_ancestor_jfs): Honor type_preserved.
18015 (update_jump_functions_after_inlining): Update type_preserved.
18016 Explicitely create jump functions when combining one with pass_through.
18017 (ipa_write_jump_function): Stream the type_preserved flags.
18018 (ipa_read_jump_function): Likewise.
18020 2013-08-27 Jakub Jelinek <jakub@redhat.com>
18021 Aldy Hernandez <aldyh@redhat.com>
18023 * Makefile.in (omp-low.o): Depend on $(TARGET_H).
18024 * cfgloop.h (struct loop): Add safelen, force_vect, simduid.
18025 * function.h (struct function): Add has_force_vect_loops and
18027 * gimple-pretty-print.c (dump_gimple_omp_for): Handle GF_OMP_FOR_KIND*.
18028 * gimple.c (gimple_build_omp_critical): Add KIND argument and
18030 * gimple.def: Update CLAUSES comments.
18031 * gimple.h (enum gf_mask): Add GF_OMP_FOR_KIND_{FOR,SIMD}.
18032 (gimple_build_omp_for): Add argument to prototype.
18033 (gimple_omp_for_kind): New.
18034 (gimple_omp_for_set_kind): New.
18035 * gimplify.c (enum gimplify_omp_var_data): Add GOVD_LINEAR to
18036 GOVD_DATA_SHARE_CLASS.
18037 (enum omp_region_type): Add ORT_SIMD.
18038 (gimple_add_tmp_var): Handle ORT_SIMD.
18039 (gimplify_var_or_parm_decl): Same.
18040 (is_gimple_stmt): Same.
18041 (omp_firstprivatize_variable): Same.
18042 (omp_add_variable): Only use splay_tree_insert if lookup failed.
18043 (omp_notice_variable): Handle ORT_SIMD.
18044 (omp_is_private): Add SIMD argument and handle it as well as ORT_SIMD.
18045 (omp_check_private): Handle ORT_SIMD.
18046 (gimplify_scan_omp_clauses): Handle OMP_CLAUSE_LINEAR and
18047 OMP_CLAUSE_SAFELEN.
18048 (gimplify_adjust_omp_clauses_1): Handle GOVD_LINEAR.
18049 Handle OMP_CLAUSE_LASTPRIVATE.
18050 (gimplify_adjust_omp_clauses): Handle OMP_CLAUSE_LINEAR and
18051 OMP_CLAUSE_SAFELEN.
18052 (gimplify_omp_for): Handle OMP_SIMD and OMP_CLAUSE_LINEAR.
18053 (gimplify_expr): Handle OMP_SIMD.
18054 * internal-fn.c (expand_GOMP_SIMD_LANE): New.
18055 (expand_GOMP_SIMD_VF): New.
18056 (expand_GOMP_SIMD_LAST_LANE): New.
18057 * internal-fn.def (GOMP_SIMD_LANE): New.
18058 (GOMP_SIMD_VF): New.
18059 (GOMP_SIMD_LAST_LANE): New.
18060 * omp-low.c: Include target.h.
18061 (extract_omp_for_data): Handle OMP_SIMD, OMP_CLAUSE_LINEAR,
18062 OMP_CLAUSE_SAFELEN.
18063 (check_omp_nesting_restrictions): Same.
18065 (lower_rec_simd_input_clauses): New.
18066 (lower_rec_input_clauses): Handle OMP_SIMD, GF_OMP_FOR_KIND_SIMD,
18068 (lower_lastprivate_clauses): Handle OMP_CLAUSE_LINEAR,
18069 GF_OMP_FOR_KIND_SIMD, OMP_SIMD.
18070 (expand_omp_build_assign): New.
18071 (expand_omp_for_init_counts): New.
18072 (expand_omp_for_init_vars): New.
18073 (extract_omp_for_update_vars): New.
18074 (expand_omp_for_generic): Use expand_omp_for_{init,update}_vars
18075 and rewrite accordingly.
18076 (expand_omp_simd): New.
18077 (expand_omp_for): Use expand_omp_simd.
18078 (lower_omp_for_lastprivate): Unshare vinit when appropriate.
18079 (lower_omp_for): Do not lower the body.
18080 * tree-data-ref (get_references_in_stmt): Allow IFN_GOMP_SIMD_LANE
18081 in their own loops.
18082 * tree-flow.h (find_omp_clause): Remove prototype.
18083 * tree-if-conv.c (main_tree_if_conversion): Run if doing if conversion,
18084 forcing vectorization of the loop, or if flag_tree_vectorize.
18085 (gate_tree_if_conversion): Similarly.
18086 * tree-inline.c (remap_gimple_stmt): Pass for kind argument to
18087 gimple_build_omp_for.
18088 (copy_cfg_body): set has_force_vect_loops and has_simduid_loops.
18089 * tree-parloops (create_parallel_loop): Pass kind argument to
18090 gimple_build_omp_for.
18091 * tree-pretty-print.c (dump_omp_clause): Add cases for
18092 OMP_CLAUSE_UNIFORM, OMP_CLAUSE_LINEAR, OMP_CLAUSE_SAFELEN,
18093 OMP_CLAUSE__SIMDUID_.
18094 (dump_generic_node): Handle OMP_SIMD.
18095 * tree-ssa-ccp.c (likely_value): Handle IFN_GOMP_SIMD*.
18096 * tree-ssa-loop-ivcanon.c (tree_unroll_loops_completely_1): Do not
18097 unroll OMP_SIMD loops here.
18098 * tree-ssa-loop.c (gate_tree_vectorize): Run if has_force_vect_loops.
18099 * tree-vect-data-refs.c (vect_analyze_data_ref_dependence): Handle
18101 (vect_analyze_data_refs): Handle simd loops.
18102 * tree-vect-loop.c (vectorizable_live_operation): Handle
18104 * tree-vect-stmts.c (vectorizable_call): Handle IFN_GOMP_SIMD_LANE.
18105 (vectorizable_store): Handle STMT_VINFO_SIMD_LANE_ACCESS_P.
18106 (vectorizable_load): Same.
18107 * tree-vectorizer.c: Include hash-table.h and tree-ssa-propagate.h.
18108 (struct simduid_to_vf): New.
18109 (simduid_to_vf::hash): New.
18110 (simduid_to-vf::equal): New.
18111 (struct simd_array_to_simduid): New.
18112 (simd_array_to_simduid::hash): New.
18113 (simd_array_to_simduid::equal): New.
18114 (adjust_simduid_builtins): New.
18115 (struct note_simd_array_uses_struct): New.
18116 (note_simd_array_uses_cb): New.
18117 (note_simd_array_uses): New.
18118 (vectorize_loops): Handle simd hints and adjust simd builtins
18120 * tree-vectorizer.h (struct _stmt_vec_info): Add
18121 simd_lane_access_p field.
18122 (STMT_VINFO_SIMD_LANE_ACCESS_P): New macro.
18123 * tree.c (omp_clause_num_ops): Add entries for OMP_CLAUSE_LINEAR,
18124 OMP_CLAUSE_SAFELEN, OMP_CLAUSE__SIMDUID_, OMP_CLAUSE_UNIFORM.
18125 (omp_clause_code_name): Same.
18126 (walk_tree_1): Handle OMP_CLAUSE_UNIFORM, OMP_CLAUSE_SAFELEN,
18127 OMP_CLAUSE__SIMDUID_, OMP_CLAUSE_LINEAR.
18128 * tree.def (OMP_SIMD): New entry.
18129 * tree.h (enum omp_clause_code): Add entries for OMP_CLAUSE_LINEAR,
18130 OMP_CLAUSE_UNIFORM, OMP_CLAUSE_SAFELEN, OMP_CLAUSE__SIMDUID_.
18131 (OMP_CLAUSE_DECL): Adjust range for new clauses.
18132 (OMP_CLAUSE_LINEAR_NO_COPYIN): New.
18133 (OMP_CLAUSE_LINEAR_NO_COPYOUT): New.
18134 (OMP_CLAUSE_LINEAR_STEP): New.
18135 (OMP_CLAUSE_SAFELEN_EXPR): New.
18136 (OMP_CLAUSE__SIMDUID__DECL): New.
18137 (find_omp_clause): New prototype.
18139 2013-08-27 H.J. Lu <hongjiu.lu@intel.com>
18141 * config/i386/driver-i386.c (host_detect_local_cpu): Update
18142 Haswell processor detection.
18144 2013-08-27 Christian Widmer <shadow@umbrox.de>
18147 * config/i386/driver-i386.c (host_detect_local_cpu): Add detection
18148 of Ivy Bridge and Haswell processors. Assume core-avx2 for unknown
18149 AVX2 capable processors.
18151 2013-08-27 Tejas Belagod <tejas.belagod@arm.com>
18153 * config/aarch64/arm_neon.h: Replace all inline asm implementations
18154 of vget_low_* with implementations in terms of other intrinsics.
18156 2013-08-27 Marc Glisse <marc.glisse@inria.fr>
18158 PR middle-end/57219
18159 * doc/extend.texi (__builtin_isinf_sign): Restrict the return
18160 values to -1, 0 and 1.
18162 2013-08-27 Vidya Praveen <vidyapraveen@arm.com>
18164 * config/aarch64/aarch64.md (unspec): Add UNSPEC_SISD_SSHL,
18165 UNSPEC_SISD_USHL, UNSPEC_USHL_2S, UNSPEC_SSHL_2S, UNSPEC_SISD_NEG.
18166 (<optab><mode>3_insn): Remove.
18167 (aarch64_ashl_sisd_or_int_<mode>3): New Pattern.
18168 (aarch64_lshr_sisd_or_int_<mode>3): Likewise.
18169 (aarch64_ashr_sisd_or_int_<mode>3): Likewise.
18170 (define_split for aarch64_lshr_sisd_or_int_di3): Likewise.
18171 (define_split for aarch64_lshr_sisd_or_int_si3): Likewise.
18172 (define_split for aarch64_ashr_sisd_or_int_di3): Likewise.
18173 (define_split for aarch64_ashr_sisd_or_int_si3): Likewise.
18174 (aarch64_sisd_ushl, aarch64_sisd_sshl): Likewise.
18175 (aarch64_ushl_2s, aarch64_sshl_2s, aarch64_sisd_neg_qi): Likewise.
18176 (ror<mode>3_insn): Likewise.
18177 * config/aarch64/predicates.md (aarch64_simd_register): New.
18179 2013-08-27 Richard Biener <rguenther@suse.de>
18181 PR tree-optimization/57521
18182 * tree-if-conv.c (if_convertible_bb_p): Verify that at least
18183 one edge is non-critical.
18184 (find_phi_replacement_condition): Make sure to use a non-critical
18185 edge. Cleanup and remove old bug workarounds.
18186 (bb_postdominates_preds): Remove.
18187 (if_convertible_loop_p_1): Do not compute post-dominators.
18188 (combine_blocks): Do not free post-dominators.
18189 (main_tree_if_conversion): Likewise.
18190 (pass_data_if_conversion): Add TODO_verify_ssa.
18192 2013-08-27 DJ Delorie <dj@redhat.com>
18194 * config/i386/djgpp.h (ASM_DECLARE_FUNCTION_NAME): New.
18196 2013-08-27 Yufeng Zhang <yufeng.zhang@arm.com>
18198 * function.c (assign_parm_find_data_types): Set passed_mode and
18199 nominal_mode to the TYPE_MODE of nominal_type for the built
18200 pointer type in case of the struct-pass-by-reference.
18202 2013-08-26 Joern Rennecke <joern.rennecke@embecosm.com>
18204 * config/avr/avr-stdint.h (INT16_TYPE): Change default to "int".
18205 (UINT16_TYPE): Change default to "unsigned int".
18207 * config/avr/avr.opt (mfract-convert-truncate): New option.
18208 * config/avr/avr.c (avr_out_fract): Unless TARGET_FRACT_CONV_TRUNC
18209 is set, round negative fractional integers according to n1169
18210 when converting to integer types.
18212 2013-08-26 Jan Hubicka <jh@suse.cz>
18214 * cgraph.c (cgraph_propagate_frequency): Do not assume that virtual
18215 methods can not be called indirectly when their address is not taken.
18217 2013-08-26 Jan Hubicka <jh@suse.cz>
18219 * gimple-fold.c (gimple_get_virt_method_for_binfo): Use
18222 2013-08-26 Jan Hubicka <jh@suse.cz>
18224 * ipa.c (comdat_can_be_unshared_p_1): C++ constructors and destructors
18227 2013-08-26 Joern Rennecke <joern.rennecke@embecosm.com>
18229 * reload.c (find_valid_class): Allow classes that do not include
18230 FIRST_PSEUDO_REGISTER - 1.
18232 2013-08-26 Jan Hubicka <jh@suse.cz>
18234 * cgraph.c (cgraph_redirect_edge_call_stmt_to_callee): Fix formatting;
18235 fix edge count/frequency when speculation failed; fix type check
18236 for the direct call.
18238 2013-08-26 Jan Hubicka <jh@suse.cz>
18240 * ipa-prop.c (ipa_print_node_params): Do not ICE during WPA.
18242 2013-08-26 Jan Hubicka <jh@suse.cz>
18244 * ipa-inline-transform.c (inline_transform): Be ready for basic block
18245 to be changed by edge redirection.
18247 2013-08-26 Jan Hubicka <jh@suse.cz>
18249 * cgraph.c (cgraph_speculative_call_info): Fix parameter order and
18250 formating; add sanity check.
18251 (cgraph_resolve_speculation): Add FIXME about scaling profiles.
18252 (cgraph_redirect_edge_call_stmt_to_callee): Fix ICE in debug dump.
18253 * ipa-inline.c (heap_edge_removal_hook): Reset node growth cache.
18254 (resolve_noninline_speculation): Update callee keys, too.
18256 2013-08-26 Jan Hubicka <jh@suse.cz>
18258 * tree.h (tree_decl_with_vis): Add cxx_constructor, cxx_destructor.
18259 (DECL_CXX_CONSTRUCTOR_P, DECL_CXX_DESTRUCTOR_P): New macros.
18261 2013-08-26 Joern Rennecke <joern.rennecke@embecosm.com>
18263 * config/i386/i386.c (x86_64_elf_select_section): Put ATTRIBUTE_UNUSED
18266 2013-08-26 Uros Bizjak <ubizjak@gmail.com>
18268 * config/i386/i386.c (ix86_debug_options): Remove prototype.
18269 (x86_64_elf_select_section): Ditto.
18270 (ix86_handle_tm_regparm_attribute): Remove ATTRIBUTE_UNUSED on used
18272 (ix86_pass_by_reference): Ditto.
18273 (output_set_got): Ditto.
18274 (ix86_unary_operator_ok): Ditto.
18275 (ix86_expand_builtin): Ditto.
18277 2013-08-23 Jan Hubicka <jh@suse.cz>
18279 * cgraph.c (cgraph_turn_edge_to_speculative): Fix debug output.
18281 2013-08-23 Jan Hubicka <jh@suse.cz>
18283 * tree.h (TYPE_FINAL_P, DECL_FINAL_P): New macros.
18284 (tree_decl_with_vis): Add FINAL field.
18286 2013-08-23 Jeff Law <law@redhat.com>
18288 * tree-ssa-pre.c (do_regular_insertion): Include the expression in
18289 the debugging dump when the expression is fully redundant.
18291 2013-08-23 Gabriel Dos Reis <gdr@integrable-solutions.net>
18293 * diagnostic.c (diagnostic_set_caret_max_width): Use pp_buffer.
18294 * gimple-pretty-print.c (gimple_dump_bb_buff): Likewise.
18295 * pretty-print.c (pp_formatted_text_data): Likewise.
18296 (pp_write_text_to_stream): Likewise.
18297 (pp_write_text_as_dot_label_to_stream): Likewise.
18298 (pp_append_r): Likewise.
18299 (pp_format): Likewise.
18300 (pp_flush): Likewise.
18301 (pp_clear_output_area): Likewise.
18302 (pp_append_text): Likewise.
18303 (pp_formatted_text): Likewise.
18304 (pp_remaining_character_count_for_line): Likewise.
18305 (pp_newline): Likewise.
18306 (pp_character): Likewise.
18307 (output_buffer::~output_buffer): Define.
18308 (pretty_printer::~pretty_printer): Destruct output buffer.
18309 * pretty-print.h (output_buffer::~output_buffer): Declare.
18310 (pretty_printer::~pretty_printer): Declare virtual.
18312 2013-08-24 Marc Glisse <marc.glisse@inria.fr>
18315 * hwint.h (HOST_WIDE_INT_UC, HOST_WIDE_INT_1U, HOST_WIDE_INT_M1,
18316 HOST_WIDE_INT_M1U): New macros.
18317 * fold-const.c (sign_bit_p, build_range_check, fold_unary_loc,
18318 fold_binary_loc, fold_ternary_loc): Use the new macros. Use an
18319 unsigned -1 for lshift.
18320 * cse.c (cse_insn): Likewise.
18321 * double-int.c (rshift_double, lshift_double): Likewise.
18322 * builtins.c (fold_builtin_bitop): Likewise.
18323 * combine.c (force_to_mode): Likewise.
18324 * tree.c (integer_pow2p, tree_log2, tree_floor_log2): Likewise.
18325 * simplify-rtx.c (simplify_const_unary_operation,
18326 simplify_const_binary_operation): Likewise.
18327 * tree-stdarg.c (va_list_counter_bump, va_list_ptr_read,
18328 check_va_list_escapes): Likewise.
18329 * rtlanal.c (nonzero_bits1): Likewise.
18330 * expmed.c (expand_smod_pow2): Likewise.
18331 * tree-ssa-structalias.c (UNKNOWN_OFFSET): Use HOST_WIDE_INT_MIN.
18333 2013-08-23 Jan Hubicka <jh@suse.cz>
18335 * cgraph.c (cgraph_turn_edge_to_speculative): Mark target node
18336 as having address taken.
18338 2013-08-23 Jan Hubicka <jh@suse.cz>
18340 * ipa-utils.h (method_class_type): Declare.
18341 * ipa-devirt.c (method_class_type): Export.
18343 * cgraphunit.c (analyze_functions): Do basic devirtualization;
18344 do not walk base classes of anonymous types.
18346 2013-08-23 Kaz Kojima <kkojima@gcc.gnu.org>
18348 PR rtl-optimization/58220
18349 PR regression/58221
18350 * final.c (reemit_insn_block_notes): Use NEXT_INSN to
18351 handle SEQUENCE insns properly.
18353 2013-08-23 Gabriel Dos Reis <gdr@integrable-solutions.net>
18355 * pretty-print.h (pp_newline_and_flush): Declare. Remove macro
18357 (pp_newline_and_indent): Likewise.
18358 (pp_separate_with): Likewise.
18359 * pretty-print.c (pp_newline_and_flush): Define.
18360 (pp_newline_and_indent): Likewise.
18361 (pp_separate_with): Likewise.
18363 2013-08-23 Jakub Jelinek <jakub@redhat.com>
18366 * config/i386/x86-64.h (TARGET_SECTION_TYPE_FLAGS): Define.
18367 * config/i386/i386.c (x86_64_elf_section_type_flags): New function.
18369 2013-08-23 Kirill Yukhin <kirill.yukhin@intel.com>
18371 * config/i386/predicates.md (ext_sse_reg_operand): New.
18372 * config/i386/i386.md (*movti_internal): Use
18373 predicate to determine if EVEX is needed.
18374 (*movsi_internal): Ditto.
18375 (*movdf_internal): Ditto.
18376 (*movsf_internal): Ditto.
18377 * config/i386/mmx.md (*mov<mode>_internal): Ditto.
18379 2013-08-23 Jakub Jelinek <jakub@redhat.com>
18381 PR tree-optimization/58209
18382 * tree-tailcall.c (process_assignment): Handle POINTER_PLUS_EXPR.
18383 (find_tail_calls): Give up for pointer result types if m is non-NULL.
18384 (adjust_return_value_with_ops): For PLUS_EXPR and pointer result type
18385 emit POINTER_PLUS_EXPR.
18386 (create_tailcall_accumulator): For pointer result type accumulate in
18389 2013-08-22 Paolo Carlini <paolo.carlini@oracle.com>
18391 * configure.ac: Add backslashes missing from the last change.
18392 * configure: Regenerate.
18394 2013-08-22 Jan Hubicka <jh@susue.cz>
18396 * ipa.c (function_and_variable_visibility): First remember function
18397 was global and then make it local.
18399 2013-08-22 Julian Brown <julian@codesourcery.com>
18401 * configure.ac: Add aarch64 to list of arches which use "nop" in
18403 * configure: Regenerate.
18405 2013-08-22 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
18407 * config/s390/linux.h (TARGET_LIBC_HAS_FUNCTION): Define as
18408 gnu_libc_has_function.
18409 * config/s390/tpf.h: Likewise.
18411 2013-08-22 Jan Hubicka <jh@susue.cz>
18413 * timevar.c (validate_phases): Add cast.
18415 2013-08-22 Jan Hubicka <jh@susue.cz>
18417 * timevar.c (validate_phases): Use size_t for memory.
18418 * timevar.h (struct timevar_time_def): Use size_t for ggc_mem.
18420 2013-08-22 Gabriel Dos Reis <gdr@integrable-solutions.net>
18422 * pretty-print.h (output_buffer::output_buffer): Declare.
18423 (pretty_printer::pretty_printer): Likewise.
18424 (pp_construct): Remove.
18425 * pretty-print.c (output_buffer::output_buffer): Define.
18426 (pretty_printer::pretty_printer): Rename from pp_construct. Simplify.
18427 * gimple-pretty-print.c (print_gimple_stmt): Do not call pp_construct.
18428 (print_gimple_expr): Likewise.
18429 (print_gimple_seq): Likewise.
18430 (gimple_dump_bb): Likewise.
18431 * sched-vis.c (dump_value_slim): Likewise.
18432 (dump_insn_slim): Likewise.
18433 (dump_rtl_slim): Likewise.
18434 (str_pattern_slim): Likewise.
18435 * tree-mudflap.c (mf_varname_tree): Likewise.
18436 * graph.c (print_graph_cfg): Likewise.
18437 (start_graph_dump): Likewise.
18438 * tree-pretty-print.c (maybe_init_pretty_print): Likewise. Use
18440 * diagnostic.c (diagnostic_initialize): Simplify early diagnostic
18441 pretty printer initialization.
18442 * coretypes.h (diagnostic_context): Remove superflous type alias
18444 (pretty_printer): Likewise. Declare directly as a class.
18445 (pretty_print_info): Remove declaration as class.
18446 * asan.c (asan_emit_stack_protection): Remove call to pp_construct
18447 and pp_clear_output_area.
18448 (asan_add_global): Likewise.
18450 2013-08-22 Jan Hubicka <jh@suse.cz>
18452 * cgraphunit.c (analyze_functions) Use update_type_inheritance_graph.
18453 * ipa-utils.h (update_type_inheritance_graph): Declare.
18454 (possible_polymorphic_call_target_p): Declare.
18455 (possible_polymorphic_call_target_p): New.
18456 * ipa-devirt.c: Update toplevel comments.
18457 (cached_polymorphic_call_targets): Move up.
18458 (odr_type_d): Move ID down.
18459 (polymorphic_type_binfo_p): Update comment.
18460 (odr_hasher::remove): Likewise;
18461 (get_odr_type): Set anonymous_namespace.
18462 (dump_odr_type): Dump it.
18463 (dump_type_inheritance_graph): Do not ICE when there are no ODR types.
18464 (maybe_record_node): Record node in cached_polymorphic_call_targets.
18465 (record_binfo): Add comment.
18466 (free_polymorphic_call_targets_hash): Do not ICE when cache is not
18468 (devirt_node_removal_hook): Do not iCE when cache is freed.
18469 (possible_polymorphic_call_target_p): New predicate.
18470 (update_type_inheritance_graph): New function.
18472 2013-08-22 Alexander Ivchenko <alexander.ivchenko@intel.com>
18473 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
18474 Sergey Lega <sergey.s.lega@intel.com>
18475 Anna Tikhonova <anna.tikhonova@intel.com>
18476 Ilya Tocar <ilya.tocar@intel.com>
18477 Andrey Turetskiy <andrey.turetskiy@intel.com>
18478 Ilya Verbin <ilya.verbin@intel.com>
18479 Kirill Yukhin <kirill.yukhin@intel.com>
18480 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
18482 * common/config/i386/i386-common.c (OPTION_MASK_ISA_AVX512F_SET): New.
18483 (OPTION_MASK_ISA_AVX512CD_SET): Ditto.
18484 (OPTION_MASK_ISA_AVX512PF_SET): Ditto.
18485 (OPTION_MASK_ISA_AVX512ER_SET): Ditto.
18486 (OPTION_MASK_ISA_AVX2_UNSET): Update.
18487 (OPTION_MASK_ISA_AVX512F_UNSET): New.
18488 (OPTION_MASK_ISA_AVX512CD_UNSET): Ditto.
18489 (OPTION_MASK_ISA_AVX512PF_UNSET): Ditto.
18490 (OPTION_MASK_ISA_AVX512ER_UNSET): Ditto.
18491 (ix86_handle_option): Handle OPT_mavx512f, OPT_mavx512cd,
18492 OPT_mavx512pf, OPT_mavx512er cases.
18493 * config/i386/constraints.md (v): New constraint.
18494 (Yi, Yj): Replace SSE_REGS with ALL_SSE_REGS.
18495 * config/i386/cpuid.h (bit_AVX512F, bit_AVX512PF, bit_AVX512ER)
18496 (bit_AVX512CD): New.
18497 * config/i386/driver-i386.c (host_detect_local_cpu): Detect
18498 AVX512F, AVX512ER, AVX512PF, AVX512CD features.
18499 * config/i386/i386-c.c (ix86_target_macros_internal):
18500 Conditionally define __AVX512F__, __AVX512ER__, __AVX512CD__,
18502 * config/i386/i386-modes.def (VECTOR_MODES (INT, 128))
18503 (VECTOR_MODES (FLOAT, 128), INT_MODE (XI, 64)): New modes.
18504 * config/i386/i386.c (regclass_map, dbx_register_map)
18505 (dbx64_register_map, svr4_dbx_register_map): Add new SSE registers.
18506 (gate_insert_vzeroupper): Disable vzeroupper for TARGET_AVX512F.
18507 (ix86_target_string): Define -mavx512f, -mavx512er, -mavx512cd,
18508 -mavx512pf options.
18509 (ix86_option_override_internal): Define PTA_AVX512F, PTA_AVX512ER,
18510 PTA_AVX512PF, PTA_AVX512CD. Handle -mavx512f, -mavx512er, -mavx512cd,
18511 -mavx512pf options. Fix formatting.
18512 (ix86_conditional_register_usage): Squash EXT_REX_SSE_REGs for 32-bit
18513 targets. Squash EVEX_SSE_REGS if AVX512F is disabled.
18514 (ix86_valid_target_attribute_inner_p): Handle -mavx512f, -mavx512er,
18515 -mavx512cd, -mavx512pf options.
18516 (standard_sse_constant_opcode): Add vpternlogd for 512-bit modes.
18517 (print_reg, ix86_print_operand): Handle 'g' to output 512-bit operands.
18518 (ix86_preferred_output_reload_class): Replace SSE_REGS with
18520 (ix86_hard_regno_mode_ok): Support 512-bit registers.
18521 (ix86_set_reg_reg_cost): Ditto.
18522 (x86_order_regs_for_local_alloc): Ditto.
18523 (MAX_VECT_LEN): Extend to 64-byte.
18524 (ix86_spill_class): Replace SSE_REGS with ALL_SSE_REGS.
18525 * config/i386/i386.h (TARGET_AVX512F, TARGET_AVX512PF)
18526 (TARGET_AVX512ER, TARGET_AVX512CD): New.
18527 (BIGGEST_ALIGNMENT): Extend to 512-bits.
18528 (FIRST_PSEUDO_REGISTER, FIXED_REGISTERS): Add new registers.
18529 (CALL_USED_REGISTERS, REG_ALLOC_ORDER): Likewise.
18530 (VALID_AVX512F_SCALAR_MODE, VALID_AVX512F_REG_MODE): New.
18531 (SSE_REG_MODE_P): Support new modes.
18532 (FIRST_MMX_REG, FIRST_REX_INT_REG, FIRST_REX_SSE_REG): Add comments.
18533 (FIRST_EXT_REX_SSE_REG, LAST_EXT_REX_SSE_REG): New.
18534 (reg_class, REG_CLASS_NAMES): Add EVEX_SSE_REGS, ALL_SSE_REGS.
18535 (SSE_CLASS_P, MAYBE_SSE_CLASS_P): Replace SSE_REGS with ALL_SSE_REGS.
18536 (REG_CLASS_CONTENTS): Add new registers.
18537 (SSE_REGNO_P, SSE_REGNO, HARD_REGNO_RENAME_OK): Support new registers.
18538 (EXT_REX_SSE_REGNO_P): New.
18539 (HI_REGISTER_NAMES): Add new registers.
18540 * config/i386/i386.md: Define constants for new registers.
18541 (mode): Add new 512-bit modes.
18542 (prefix): Support evex prefix.
18543 (isa): Support avx512f, noavx512f, fma_avx512f.
18544 (ssemodesuffix): Add new 512-bit modes.
18546 (*movxi_internal_avx512f): Ditto.
18547 (*movdi_internal): Replace constraint "x" with the new constraint "v".
18549 (*movsi_internal): Likewise.
18550 (*movdf_internal): Likewise.
18551 (*movsf_internal): Likewise.
18552 (*fop_<mode>_comm_sse): Replace constraint "x" with new constraint "v".
18553 (<code><mode>3): Likewise.
18554 * config/i386/i386.opt (mavx512f, mavx512pf, mavx512er, mavx512cd):
18556 * config/i386/mmx.md (*mov<mode>_internal): Replace constraint "x"
18557 with the new constraint "v".
18558 * config/i386/sse.md (*mov<mode>_internal): Support new registers and
18560 (<sse>_loadu<ssemodesuffix><avxsizesuffix>): Replace constraint "x"
18561 with the new constraint "v".
18562 (<sse2>_loaddqu<avxsizesuffix>): Likewise.
18563 (<sse2>_storedqu<avxsizesuffix>): Likewise.
18564 (*<plusminus_insn><mode>3): Likewise.
18565 (<sse>_vm<plusminus_insn><mode>3): Likewise.
18566 (*mul<mode>3): Likewise.
18567 (<sse>_vmmul<mode>3): Likewise.
18568 (<sse>_div<mode>3): Likewise.
18569 (<sse>_vmdiv<mode>3): Likewise.
18570 (<sse>_sqrt<mode>2): Likewise.
18571 (<sse>_vmsqrt<mode>2): Likewise.
18572 (*<code><mode>3_finite): Likewise.
18573 (*<code><mode>3) <smaxmin>: Likewise.
18574 (<sse>_vm<code><mode>3): Likewise.
18575 (*<code><mode>3) <any_logic>: Likewise.
18576 (*fma_fmadd_<mode>): Likewise.
18577 (*fma_fmsub_<mode>): Likewise.
18578 (*fma_fnmadd_<mode>): Likewise.
18579 (*fma_fnmsub_<mode>): Likewise.
18580 (*fma_fmaddsub_<mode>): Likewise.
18581 (*fma_fmsubadd_<mode>): Likewise.
18582 (*fmai_fmadd_<mode>): Likewise.
18583 (*fmai_fmsub_<mode>): Likewise.
18584 (*fmai_fnmadd_<mode>): Likewise.
18585 (*fmai_fnmsub_<mode>): Likewise.
18586 (sse_cvtsi2ss): Likewise.
18587 (sse_cvtsi2ssq): Likewise.
18588 (sse_cvtss2si): Likewise.
18589 (sse_cvtss2si_2): Likewise.
18590 (sse_cvtss2siq): Likewise.
18591 (sse_cvtss2siq_2): Likewise.
18592 (sse_cvttss2si): Likewise.
18593 (sse_cvtss2siq_2): Likewise.
18594 (float<sseintvecmodelower><mode>2): Likewise.
18595 (sse2_cvtsd2si_2): Likewise.
18596 (sse2_cvtsd2siq_2): Likewise.
18597 (*<plusminus_insn><mode>3): Likewise.
18598 (*<sse2_avx2>_<plusminus_insn><mode>3): Likewise.
18599 (*<sse4_1_avx2>_mul<mode>3): Likewise.
18600 (ashr<mode>3): Likewise.
18601 (<shift_insn><mode>3): Likewise.
18602 (avx2_<code><mode>3): Likewise.
18603 (*avx2_<code><mode>3): Likewise.
18604 (*andnot<mode>3): Likewise.
18605 (*<code><mode>3) <any_logic>: Likewise.
18606 (abs<mode>2): Likewise.
18607 (avx2_permvar<mode>): Likewise.
18608 (avx2_perm<mode>_1): Likewise.
18609 (*avx_vpermilp<mode>): Likewise.
18610 (avx_vpermilvar<mode>3): Likewise.
18611 (avx2_ashrv<mode>): Likewise.
18612 (avx2_<shift_insn>v<mode>): Likewise.
18613 * doc/invoke.texi: Document -mavx512f, -mavx512pf, -mavx512er,
18615 * doc/rtl.texi: Document XImode.
18617 2013-08-21 Jeff Law <law@redhat.com>
18619 * tree-flow.h (register_jump_thread): Pass vector of edges
18620 instead of each important edge.
18621 * tree-ssa-threadedge.c (thread_across_edge): Build the jump
18622 thread path into a vector and pass that to register_jump_thread.
18623 * tree-ssa-threadupdate.c (register_jump_thread): Conver the
18624 passed in edge vector to the current 3-edge form.
18627 2013-08-20 Alexey Makhalov <makhaloff@gmail.com>
18629 * dce.c (fini_dce): Call df_analyze again just in case
18630 delete_unmarked_insns removed anything.
18632 2013-08-21 Joern Rennecke <joern.rennecke@embecosm.com>
18634 * reload.h (struct reg_equivs): Rename to ..
18635 (struct reg_equivs_s): .. this.
18637 2013-08-20 Martin Liska <marxin.liska@gmail.com>
18639 * ipa.c (ipa_profile_read_summary): Fix buffer overflow.
18641 2013-08-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
18643 * config/sol2-10.h (TARGET_LIBC_HAS_FUNCTION): Don't nest comment.
18645 2013-08-21 Jeff Law <law@redhat.com>
18647 * tree-vrp.c (simplify_stmt_for_jump_threading): Try to
18648 simplify assignments too. If the RHS collapses to a singleton
18649 range, then return the value for the range.
18651 2013-08-21 Kirill Yukhin <kirill.yukhin@intel.com>
18653 * config/i386/sse.md (V16): Rename to...
18655 (mov<mode>): Update iterator name.
18656 (*mov<mode>_internal): Ditto.
18657 (push<mode>1): Ditto.
18658 (movmisalign<mode>): Ditto.
18660 2013-08-20 Jan Hubicka <jh@suse.cz>
18663 * cgraph.c (cgraph_add_edge_to_call_site_hash): Overwrite hash
18664 entry for direct edges.
18665 (cgraph_turn_edge_to_speculative): Fix setting of can_throw_external.
18667 2013-08-20 David Malcolm <dmalcolm@redhat.com>
18669 Revert my last two changes, r201865 and r201864:
18672 2013-08-20 David Malcolm <dmalcolm@redhat.com>
18674 Make opt_pass and gcc::pass_manager be GC-managed, so that pass
18675 instances can own GC refs.
18677 * Makefile.in (GTFILES): Add pass_manager.h and tree-pass.h.
18678 * context.c (gcc::context::gt_ggc_mx): Traverse passes_.
18679 (gcc::context::gt_pch_nx): Likewise.
18680 (gcc::context::gt_pch_nx): Likewise.
18681 * ggc.h (gt_ggc_mx <T>): New.
18682 (gt_pch_nx_with_op <T>): New.
18683 (gt_pch_nx <T>): New.
18684 * passes.c (opt_pass::gt_ggc_mx): New.
18685 (opt_pass::gt_pch_nx): New.
18686 (opt_pass::gt_pch_nx_with_op): New.
18687 (pass_manager::gt_ggc_mx): New.
18688 (pass_manager::gt_pch_nx): New.
18689 (pass_manager::gt_pch_nx_with_op): New.
18690 (pass_manager::operator new): Use
18691 ggc_internal_cleared_alloc_stat rather than xcalloc.
18692 * pass_manager.h (class pass_manager): Add GTY((user)) marking.
18693 (pass_manager::gt_ggc_mx): New.
18694 (pass_manager::gt_pch_nx): New.
18695 (pass_manager::gt_pch_nx_with_op): New.
18696 * tree-pass.h (class opt_pass): Add GTY((user)) marking.
18697 (opt_pass::operator new): New.
18698 (opt_pass::gt_ggc_mx): New.
18699 (opt_pass::gt_pch_nx): New.
18700 (opt_pass::gt_pch_nx_with_op): New.
18703 2013-08-20 David Malcolm <dmalcolm@redhat.com>
18705 * Makefile.in (GTFILES): Add context.h.
18706 * context.c (gcc::context::operator new): New.
18707 (gcc::context::gt_ggc_mx): New.
18708 (gcc::context::gt_pch_nx): New.
18709 (gcc::context::gt_pch_nx): New.
18710 * context.h (gcc::context): Add GTY((user)) marking.
18711 (gcc::context::operator new): New.
18712 (gcc::context::gt_ggc_mx): New.
18713 (gcc::context::gt_pch_nx): New.
18714 (gcc::context::gt_pch_nx): New.
18715 (g): Add GTY marking.
18716 (gt_ggc_mx (gcc::context *)): New.
18717 (gt_pch_nx (gcc::context *)): New.
18718 (gt_pch_nx (gcc::context *ctxt, gt_pointer_operator op,
18719 void *cookie)): New.
18720 * gengtype.c (open_base_files) <ifiles>: Add context.h.
18722 2013-08-20 Alexey Makhalov <makhaloff@gmail.com>
18724 * dce.c (fini_dce): Call df_analyze again just in case
18725 delete_unmarked_insns removed anything.
18727 2013-08-20 Teresa Johnson <tejohnson@google.com>
18729 PR rtl-optimizations/57451
18730 * final.c (reemit_insn_block_notes): Prevent lexical blocks
18731 from crossing split section boundaries.
18733 2013-08-20 Matthew Gretton-Dann <matthew.gretton-dann@linaro.org>
18735 * config/arm/linux-elf.h (MULTILIB_DEFAULTS): Remove definition.
18736 * config/arm/t-linux-eabi (MULTILIB_OPTIONS): Document association
18737 with MULTLIB_DEFAULTS.
18739 2013-08-20 Nick Clifton <nickc@redhat.com>
18741 * target.def (narrow_volatile_bitfield): Note that the default
18742 value is false, not !TARGET_STRICT_ALIGN.
18743 * doc/tm.texi: Regenerate.
18745 2013-08-20 Pavel Chupin <pavel.v.chupin@intel.com>
18747 Fix LIB_SPEC for systems without libpthread.
18749 * config/gnu-user.h: Introduce GNU_USER_TARGET_NO_PTHREADS_LIB_SPEC.
18750 * config/arm/linux-eabi.h: Use GNU_USER_TARGET_NO_PTHREADS_LIB_SPEC
18752 * config/i386/linux-common.h: Likewise.
18753 * config/mips/linux-common.h: Likewise.
18755 2013-08-20 Zhouyi Zhou <yizhouzhou@ict.ac.cn>
18757 * tree-ssa-ccp.c (get_default_value): Remove redundant condition
18760 2013-08-20 David Malcolm <dmalcolm@redhat.com>
18762 Make opt_pass and gcc::pass_manager be GC-managed, so that pass
18763 instances can own GC refs.
18765 * Makefile.in (GTFILES): Add pass_manager.h and tree-pass.h.
18766 * context.c (gcc::context::gt_ggc_mx): Traverse passes_.
18767 (gcc::context::gt_pch_nx): Likewise.
18768 (gcc::context::gt_pch_nx): Likewise.
18769 * ggc.h (gt_ggc_mx <T>): New.
18770 (gt_pch_nx_with_op <T>): New.
18771 (gt_pch_nx <T>): New.
18772 * passes.c (opt_pass::gt_ggc_mx): New.
18773 (opt_pass::gt_pch_nx): New.
18774 (opt_pass::gt_pch_nx_with_op): New.
18775 (pass_manager::gt_ggc_mx): New.
18776 (pass_manager::gt_pch_nx): New.
18777 (pass_manager::gt_pch_nx_with_op): New.
18778 (pass_manager::operator new): Use
18779 ggc_internal_cleared_alloc_stat rather than xcalloc.
18780 * pass_manager.h (class pass_manager): Add GTY((user)) marking.
18781 (pass_manager::gt_ggc_mx): New.
18782 (pass_manager::gt_pch_nx): New.
18783 (pass_manager::gt_pch_nx_with_op): New.
18784 * tree-pass.h (class opt_pass): Add GTY((user)) marking.
18785 (opt_pass::operator new): New.
18786 (opt_pass::gt_ggc_mx): New.
18787 (opt_pass::gt_pch_nx): New.
18788 (opt_pass::gt_pch_nx_with_op): New.
18790 2013-08-20 David Malcolm <dmalcolm@redhat.com>
18792 * Makefile.in (GTFILES): Add context.h.
18793 * context.c (gcc::context::operator new): New.
18794 (gcc::context::gt_ggc_mx): New.
18795 (gcc::context::gt_pch_nx): New.
18796 (gcc::context::gt_pch_nx): New.
18797 * context.h (gcc::context): Add GTY((user)) marking.
18798 (gcc::context::operator new): New.
18799 (gcc::context::gt_ggc_mx): New.
18800 (gcc::context::gt_pch_nx): New.
18801 (gcc::context::gt_pch_nx): New.
18802 (g): Add GTY marking.
18803 (gt_ggc_mx (gcc::context *)): New.
18804 (gt_pch_nx (gcc::context *)): New.
18805 (gt_pch_nx (gcc::context *ctxt, gt_pointer_operator op,
18806 void *cookie)): New.
18807 * gengtype.c (open_base_files) <ifiles>: Add context.h.
18809 2013-08-20 Alan Modra <amodra@gmail.com>
18812 * config/rs6000/rs6000.c (rs6000_emit_prologue): Correct ool_adjust.
18813 (rs6000_emit_epilogue): Likewise.
18815 2013-08-19 Dehao Chen <dehao@google.com>
18817 * value-prof.c (gimple_ic): Fix the bug of adding EH edge.
18819 2013-08-19 Peter Bergner <bergner@vnet.ibm.com>
18820 Jakub Jelinek <jakub@redhat.com>
18822 * builtins.def (BUILT_IN_FABSD32): New DFP ABS builtin.
18823 (BUILT_IN_FABSD64): Likewise.
18824 (BUILT_IN_FABSD128): Likewise.
18825 * builtins.c (expand_builtin): Add support for new DFP ABS builtins.
18826 (fold_builtin_1): Likewise.
18827 * config/rs6000/dfp.md (*negtd2_fpr): Handle non-overlapping
18828 destination and source operands.
18829 (*abstd2_fpr): Likewise.
18830 (*nabstd2_fpr): Likewise.
18832 2013-08-19 Richard Sandiford <rdsandiford@googlemail.com>
18834 * config/mips/mips.c (mips_adjust_insn_length): Add checks for
18837 2013-08-19 Aldy Hernandez <aldyh@redhat.com>
18839 * doc/invoke.texi (-fcilkplus): Clarify that implementation is
18842 2013-08-19 Alexander Ivchenko <alexander.ivchenko@intel.com>
18844 * target.def (TARGET_LIBC_HAS_FUNCTION): New target hook.
18845 * builtins.c (default_libc_has_function): New.
18846 (gnu_libc_has_function): Ditto.
18847 (no_c99_libc_has_function): Ditto.
18848 (expand_builtin_cexpi): Using new target hook TARGET_LIBC_HAS_FUNCTION
18849 instead of TARGET_HAS_SINCOS and TARGET_C99_FUNCTIONS.
18850 (fold_builtin_sincos): Likewise.
18851 (fold_builtin_cexp): Likewise.
18852 * builtins.def (DEF_C94_BUILTIN): Likewise.
18853 (DEF_C99_BUILTIN): Likewise.
18854 (DEF_C99_C90RES_BUILTIN): Likewise.
18855 (DEF_C99_COMPL_BUILTIN): New define. Change all complex c99 builtin
18856 definitions to using this define.
18857 * config/darwin-protos.h (darwin_libc_has_function): New.
18858 * config/darwin.c (darwin_libc_has_function): Ditto.
18859 * config/alpha/linux.h: Remove TARGET_C99_FUNCTIONS and
18860 TARGET_HAS_SINCOS. Redefine TARGET_LIBC_HAS_FUNCTION.
18861 * config/darwin.h: Ditto.
18862 * config/elfos.h: Ditto.
18863 * config/freebsd.h: Ditto.
18864 * config/i386/cygming.h: Ditto.
18865 * config/i386/djgpp.h: Ditto.
18866 * config/i386/i386-interix.h: Ditto.
18867 * config/microblaze/microblaze.h: Ditto.
18868 * config/mmix/mmix.h: Ditto.
18869 * config/gnu-user.h: Ditto.
18870 * config/ia64/hpux.h: Ditto.
18871 * config/pa/pa-hpux.h: Ditto.
18872 * config/pdp11/pdp11.h: Ditto.
18873 * config/picochip/picochip.h: Ditto.
18874 * config/linux.h: Ditto.
18875 * config/netbsd.h: Ditto.
18876 * config/openbsd.h: Ditto.
18877 * config/rs6000/aix43.h: Ditto.
18878 * config/rs6000/aix51.h: Ditto.
18879 * config/rs6000/aix52.h: Ditto.
18880 * config/rs6000/aix53.h: Ditto.
18881 * config/rs6000/aix61.h: Ditto.
18882 * config/rs6000/darwin.h: Ditto.
18883 * config/rs6000/linux.h: Ditto.
18884 * config/rs6000/linux64.h: Ditto.
18885 * config/s390/tpf.h: Ditto.
18886 * config/sol2-10.h: Ditto.
18887 * config/sol2.h: Ditto.
18888 * config/vms/vms.h: Ditto.
18889 * config/vxworks.h: Ditto.
18890 * config/linux-android.c (linux_android_libc_has_function):
18891 New linux-specific implementation of TARGET_LIBC_HAS_FUNCTION.
18892 * config/linux-protos.h (linux_android_libc_has_function):
18894 * config/i386/i386.c (ix86_libc_has_function): New.
18895 * config/i386/i386-protos.h
18896 (ix86_libc_has_function): New declaration.
18897 * config/i386/i386.md
18898 ("isinfxf2"): Change condition for TARGET_LIBC_HAS_FUNCTION.
18899 ("isinf<mode>2): Likewise.
18900 * convert.c (convert_to_integer): Using new target hook
18901 TARGET_LIBC_HAS_FUNCTION istead of TARGET_HAS_SINCOS and
18902 TARGET_C99_FUNCTIONS.
18903 * fortran/f95-lang.c (gfc_init_builtin_functions): Ditto.
18904 * tree-ssa-math-opts.c (execute_cse_sincos): Ditto.
18905 * coretypes.h (function_class): New enum for different
18906 classes of functions.
18907 * defaults.h: Remove TARGET_C99_FUNCTIONS and TARGET_HAS_SINCOS.
18908 * doc/tm.texi.in (TARGET_C99_FUNCTIONS): Remove documentation.
18909 (TARGET_HAS_SINCOS): Likewise.
18910 (TARGET_LIBC_HAS_FUNCTION): New.
18911 * doc/tm.texi: Regenerated.
18912 * targhooks.h (default_libc_has_function): New declaration.
18913 (no_c99_libc_has_function): Ditto.
18914 (gnu_libc_has_function): Ditto.
18915 * system.h: Add the poisoning of TARGET_C99_FUNCTIONS
18916 and TARGET_HAS_SINCOS.
18918 2013-08-18 Jan Hubicka <jh@suse.cz>
18920 * Makeifle-in (ipa-devirt.o): New.
18921 (GTFILES): Add ipa-utils.h and ipa-devirt.c
18922 * cgraphunit.c (decide_is_symbol_needed): Do not care about virtuals.
18923 (analyze_functions): Look into possible targets of polymorphic call.
18924 * dumpfile.c (dump_files): Add type-inheritance dump.
18925 * dumpfile.h (TDI_inheritance): New.
18926 * ipa-devirt.c: New file.
18927 * ipa-utils.h (odr_type_d): Forward declare.
18928 (odr_type): New type.
18929 (build_type_inheritance_graph): Declare.
18930 (possible_polymorphic_call_targets): Declare and introduce inline
18931 variant when only edge is pased.
18932 (dump_possible_polymorphic_call_targets): Likewise.
18933 * timevar.def (TV_IPA_INHERITANCE, TV_IPA_VIRTUAL_CALL): New.
18934 * tree.c (type_in_anonymous_namespace_p): Break out from ...
18935 (types_same_for_odr): ... here.
18936 * tree.h (type_in_anonymous_namespace_p): Declare.
18938 2013-08-18 Jakub Jelinek <jakub@redhat.com>
18940 PR tree-optimization/58006
18941 * tree-parloops.c (take_address_of): Don't ICE if get_name
18943 (eliminate_local_variables_stmt): Remove clobber stmts.
18945 2013-08-18 Eric Botcazou <ebotcazou@adacore.com>
18947 * cgraphunit.c (handle_alias_pairs): Reset the alias flag after the
18948 error message is issued for an alias to undefined symbol.
18950 2013-08-18 Jan Hubicka <jh@suse.cz>
18952 * cgraph.c (cgraph_create_indirect_edge): Discover
18953 polymorphic calls and record basic info into indirect_info.
18954 * gimple-fold.c (gimple_fold_call): When doing BINFO based
18955 devirtualization, ignore objc function calls.
18956 * ipa-cp.c (initialize_node_lattices): Be ready for polymorphic
18957 call with no parm index info.
18958 * ipa-prop.c (ipa_analyze_call_uses): Likewise.
18959 * tree.c (virtual_method_call_p): New function.
18960 * tree.h (virtual_method_call_p): Declare.
18962 2013-08-16 Jan Hubicka <jh@suse.cz>
18964 PR middle-end/58179
18965 * tree.c (obj_type_ref_class): Do not ICE on non-method calls.
18967 2013-08-16 David Edelsohn <dje.gcc@gmail.com>
18969 * config/rs6000/rs6000.md (rs6000_get_timebase_ppc32): Add length
18972 2013-08-16 David Malcolm <dmalcolm@redhat.com>
18974 * gengtype.c (type_for_name): Add special-case support for
18975 locating types within the "gcc::" namespace.
18976 (open_base_files): Emit a "using namespace gcc" directive.
18978 2013-08-16 Michael Meissner <meissner@linux.vnet.ibm.com>
18981 * config/rs6000/predicates.md (fusion_gpr_mem_load): Allow the
18982 memory rtx to contain ZERO_EXTEND and SIGN_EXTEND.
18984 * config/rs6000/rs6000-protos.h (fusion_gpr_load_p): Pass operands
18985 array instead of each individual operand as a separate argument.
18986 (emit_fusion_gpr_load): Likewise.
18987 (expand_fusion_gpr_load): Add new function declaration.
18989 * config/rs6000/rs6000.c (fusion_gpr_load_p): Change the calling
18990 signature to have the operands passed as an array, instead of as
18991 separate arguments. Allow ZERO_EXTEND to be in the memory
18992 address, and also SIGN_EXTEND if -mpower8-fusion-sign. Do not
18993 depend on the register live/dead flags when peepholes are run.
18994 (expand_fusion_gpr_load): New function to be called from the
18995 peephole2 pass, to change the register that addis sets to be the
18997 (emit_fusion_gpr_load): Change the calling signature to have the
18998 operands passed as an array, instead of as separate arguments.
18999 Allow ZERO_EXTEND to be in the memory address, and also
19000 SIGN_EXTEND if -mpower8-fusion-sign.
19002 * config/rs6000/rs6000.md (UNSPEC_FUSION_GPR): Delete unused
19003 unspec enumeration.
19004 (power8 fusion peephole/peephole2): Rework the fusion peepholes to
19005 adjust the register addis loads up in the peephole2 pass. Do not
19006 depend on the register live/dead state when the peephole pass is done.
19008 2013-08-16 David Malcolm <dmalcolm@redhat.com>
19010 * gengtype.c (create_user_defined_type): Ensure that the kind
19011 is set to TYPE_USER_STRUCT, fixing a bug seen when an incomplete
19012 declaration is seen before the GTY((user)) marking.
19014 2013-08-16 Bernd Edlinger <bernd.edlinger@hotmail.de>
19017 * config/i386/i386.c (make_resolver_func): Set DECL_UNINLINABLE.
19019 2013-08-16 Jan Hubicka <jh@suse.cz>
19021 * gimple-fold.c (gimple_extract_devirt_binfo_from_cst): Add new
19022 arugment expected_type.
19023 (gimple_fold_call): Use it.
19024 * gimple.h (gimple_extract_devirt_binfo_from_cst): Update prototype.
19025 * ipa-cp.c (ipa_get_indirect_edge_target_1): Update.
19026 * ipa-prop.c (ipa_analyze_virtual_call_uses): Use obj_type_ref_class.
19027 (try_make_edge_direct_virtual_call): Likewise.
19028 * tree.c (obj_type_ref_class): New.
19029 * tree.h (obj_type_ref_class): Use it.
19031 2013-08-16 Gabriel Dos Reis <gdr@integrable-solutions.net>
19033 * sched-vis.c (rtl_slim_pp_initialized): Remove.
19034 (rtl_slim_pp): Likewise.
19035 (init_rtl_slim_pretty_print): Likewise.
19036 (dump_value_slim): Don't call it. Use local pretty printer.
19037 (dump_insn_slim): Likewise.
19038 (dump_rtl_slim): Likewise.
19039 (str_pattern_slim): Likewise.
19040 * tree-mudflap.c (mf_varname_tree): Use local pretty printer.
19043 2013-08-16 Jakub Jelinek <jakub@redhat.com>
19045 PR tree-optimization/58164
19046 * gimple.c (walk_stmt_load_store_addr_ops): For visit_addr
19047 walk gimple_goto_dest of GIMPLE_GOTO.
19049 PR tree-optimization/58165
19050 * tree-call-cdce.c (shrink_wrap_one_built_in_call): If
19051 bi_call must be the last stmt in a bb, don't split_block, instead
19052 use fallthru edge from it and give up if there is none.
19053 Release conds vector when returning early.
19055 2013-08-14 Xinliang David Li <davidxl@google.com>
19057 * config/i386/i386.c (ix86_option_override_internal):
19058 Remove unused variable and field.
19060 2013-08-14 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
19063 * doc/invoke.texi: Add documentation of mcompat-align-parm option.
19064 * config/rs6000/rs6000.opt: Add mcompat-align-parm option.
19065 * config/rs6000/rs6000.c (rs6000_function_arg_boundary): For AIX
19066 and Linux, correct BLKmode alignment when 128-bit alignment is
19067 required and compatibility flag is not set.
19068 (rs6000_gimplify_va_arg): For AIX and Linux, honor specified alignment
19069 for zero-size arguments when compatibility flag is not set.
19071 2013-08-14 Jakub Jelinek <jakub@redhat.com>
19073 PR tree-optimization/58145
19074 * tree-sra.c (build_ref_for_offset): If prev_base has
19075 TREE_THIS_VOLATILE or TREE_SIDE_EFFECTS, propagate it to MEM_REF.
19077 2013-08-14 Xinliang David Li <davidxl@google.com>
19079 * config/i386/i386.c (ix86_option_override_internal):
19080 Fix uninitialized variable error.
19082 2013-08-14 Xinliang David Li <davidxl@google.com>
19084 * config/i386/i386.opt: Define two new options.
19085 * config/i386/x86-tune.def: Add arch selector field in macros.
19086 * config/i386/i386.h: Adjust macro definition.
19087 * config/i386/i386.c (ix86_option_override_internal):
19089 (parse_mtune_ctrl_str): New function.
19090 (set_ix86_tune_features): New function.
19091 (ix86_function_specific_restore): Call the new helper function.
19093 2013-08-14 Andrey Belevantsev <abel@ispras.ru>
19095 PR rtl-optimization/57662
19096 * sel-sched.c (code_motion_process_successors): When the current insn
19097 is removed after the recursive traversal, break from the loop.
19098 Add comments and debug printouts.
19100 2013-08-14 Jakub Jelinek <jakub@redhat.com>
19101 Alexandre Oliva <aoliva@redhat.com>
19104 * config/i386/i386.c (ix86_delegitimize_address): For CM_MEDIUM_PIC
19105 and CM_LARGE_PIC ix86_cmodel fall thru into the -m32 code, handle
19106 there also UNSPEC_PLTOFF.
19108 2013-08-14 Marek Polacek <polacek@redhat.com>
19110 * ipa-inline-analysis.c (add_clause): Avoid shifting integer
19111 NUM_CONDITIONS bit positions.
19113 2013-08-13 Cary Coutant <ccoutant@google.com>
19115 * dwarf2out.c (CHECKSUM_BLOCK): New macro.
19116 (attr_checksum): Hash vector contents instead of pointer.
19117 (attr_checksum_ordered): Likewise.
19119 2013-08-13 Uros Bizjak <ubizjak@gmail.com>
19121 * config/i386/sse.md (*sse2_maskmovdqu): Emit addr32 prefix
19122 when Pmode != word_mode. Add length_address attribute.
19123 (sse3_monitor_<mode>): Merge from sse3_monitor and
19124 sse3_monitor64_<mode> insn patterns. Emit addr32 prefix when
19125 Pmode != word_mode. Update insn length attribute.
19126 * config/i386/i386.c (ix86_option_override_internal): Update
19127 ix86_gen_monitor selection for merged sse3_monitor insn.
19129 2013-08-13 Julian Brown <julian@codesourcery.com>
19131 * config/rs6000/rs6000.c (rs6000_legitimize_reload_address): Don't
19132 perform invalid legitimization on greater-than-word-size modes for
19133 TARGET_E500_DOUBLE.
19135 2013-08-13 Vladimir Makarov <vmakarov@redhat.com>
19137 * ira.c (setup_class_translate_array): Use aclass instead of cl
19138 for classes not fully covered by allocno classes.
19140 2013-08-13 Jakub Jelinek <jakub@redhat.com>
19142 PR tree-optimization/57661
19143 * tree-inline.h (struct copy_body_data): Add blocks_to_copy field.
19144 * tree-inline.c (tree_function_versioning): Initialize it.
19145 (remap_gimple_stmt): Return GIMPLE_NOP for MEM_REF lhs clobber stmts
19146 if id->blocks_to_copy and MEM_REF's SSA_NAME is defined in a block
19147 that is not being copied.
19150 * asan.c (instrument_strlen_call): Fix typo in comment.
19151 Use char * type even for the lhs of POINTER_PLUS_EXPR.
19153 2013-08-13 Steve Ellcey <sellcey@mips.com>
19155 * config/mips/mips.md (prefetch): Use lw instead of ld on
19156 loongson in 32bit mode.
19158 2013-08-13 Nick Clifton <nickc@redhat.com>
19160 * config.gcc: (avr-linux): Allow for tmake_file not being empty.
19162 2013-08-13 Jan Hubicka <jh@suse.cz>
19164 * cgraph.c (cgraph_turn_edge_to_speculative): Return newly
19165 introduced edge; fix typo in sanity check.
19166 (cgraph_resolve_speculation): Export; improve diagnostic.
19167 (cgraph_redirect_edge_call_stmt_to_callee): Better diagnostic; cancel
19168 speculation at type mismatch.
19169 * cgraph.h (cgraph_turn_edge_to_speculative): Update.
19170 (cgraph_resolve_speculation): Declare.
19171 (symtab_can_be_discarded): New function.
19172 * value-prof.c (gimple_ic_transform): Remove actual transform code.
19173 * ipa-inline-transform.c (speculation_removed): New global var.
19174 (clone_inlined_nodes): See if speculation can be removed.
19175 (inline_call): If speculations was removed, we growths may not match.
19176 * ipa-inline.c (can_inline_edge_p): Add DISREGARD_LIMITS parameter.
19177 (speculation_useful_p): New function.
19178 (resolve_noninline_speculation): New function.
19179 (inline_small_functions): Resolve useless speculations.
19180 * ipa-inline.h (speculation_useful_p): Declare
19181 * ipa.c (can_replace_by_local_alias): Simplify.
19182 (ipa_profile): Produce speculative calls in non-lto, too;
19183 add simple cost model; produce local aliases.
19185 2013-08-13 David Malcolm <dmalcolm@redhat.com>
19187 * config/i386/t-i386 (i386.o): Rename stray PIPELINE_H to
19190 2013-08-12 Paolo Carlini <paolo.carlini@oracle.com>
19192 * config/i386/i386.c (ix86_function_versions): Use error + inform.
19194 2013-08-12 Uros Bizjak <ubizjak@gmail.com>
19196 * config/i386/i386.md (floatunssi<mode>2 expand): Use MODEF mode
19197 iterator instead of X87MODEF.
19199 2013-08-12 Perez Read <netfirewall@gmail.com>
19202 * config/i386/i386.md (*movabs<mode>_1): Add <ptrsize> PTR before
19203 operand 0 for intel asm alternative.
19204 (*movabs<mode>_2): Ditto for operand 1.
19206 2013-08-12 James Greenhalgh <james.greenhalgh@arm.com>
19208 * config/aarch64/arm_none.h
19209 (vdup<bhsd>_lane_<su><8,16,32,64>): Fix macro call.
19211 2013-08-12 Nick Clifton <nickc@redhat.com>
19213 * config.gcc (m32r-linux): Allow for tmake_file not being empty.
19215 2013-08-12 Yuri Rumyantsev <ysrumyan@gmail.com>
19217 * config/i386/i386.md (floatunssi<mode>2 expand): Add new
19218 expand for QI/HImode operand to produce more effictive code for
19219 unsigned char(short) --> float(double) conversion.
19221 2013-08-12 Alexander Monakov <amonakov@ispras.ru>
19223 * doc/invoke.texi: Mention that -ftls-model does not force the final
19226 2013-08-12 Marek Polacek <polacek@redhat.com>
19227 Marc Glisse <marc.glisse@inria.fr>
19229 PR tree-optimization/57980
19230 * tree-tailcall.c (process_assignment): Call build_minus_one_cst
19231 when creating -1 constant.
19233 2013-08-10 Jan Hubicka <jh@suse.cz>
19235 Workaround binutils PR14342.
19236 * tree-profile.c (init_ic_make_global_vars): Add LTO path.
19237 (gimple_init_edge_profiler): Likewise.
19238 (gimple_gen_ic_func_profiler): Likewise.
19240 2013-08-09 Jan Hubicka <jh@suse.cz>
19242 * cgraph.c (cgraph_create_edge_1): Clear speculative flag.
19244 2013-08-09 Xinliang David Li <davidxl@google.com>
19246 * config/i386/stringop.def: New file.
19247 * config/i386/stringop.opt: New file.
19248 * config/i386/i386-opts.h: Include stringopt.def.
19249 * config/i386/i386.opt: Include stringopt.opt.
19250 * config/i386/i386.c (ix86_option_override_internal):
19251 Override default size based stringop inline strategies with options.
19252 * config/i386/i386.c (ix86_parse_stringop_strategy_string):
19255 2013-08-09 Jan Hubicka <jh@suse.cz>
19257 * ipa-ref.c (ipa_clear_stmts_in_references): Clear lto_stmt_uid, too.
19259 2013-08-09 Jan Hubicka <jh@suse.cz>
19261 * cgraph.c (cgraph_resolve_speculation): Cut frequency to
19263 (dump_cgraph_node): Dump profile-id.
19264 * cgraph.h (cgraph_indirect_call_info): Add common_target_id
19265 and common_target_probability.
19266 * lto-cgraph.c (lto_output_edge): Stream common targets.
19267 (lto_output_node): Stream profile ids.
19268 (input_node): Stream profile ids.
19269 (input_edge): Stream common targets.
19270 * lto-streamer-in.c (fixup_call_stmt_edges_1): Fix formatting.
19271 * ipa.c: Include value-prof.h
19272 (ipa_profile_generate_summary): Turn indirect call statement histograms
19273 into common targets.
19274 (ipa_profile): Turn common targets into speculative edges.
19276 2013-08-09 Jan Hubicka <jh@suse.cz>
19278 * cgraph.h (cgraph_node): Add profile_id.
19279 * value-prof.c (cgraph_node_map): Turn into pointer_map.
19280 (init_node_map): Rewrite to handle hashes increas of incremental IDs.
19281 (del_node_map): Update.
19282 (find_func_by_funcdef_no): Replace by ...
19283 (find_func_by_profile_id): ... this one.
19284 (gimple_ic_transform): Do not remove useful histograms when
19285 speculation is not done; dump info when indirect call removal
19287 * value-prof.h (find_func_by_profile_id, gimple_ic): Declare.
19288 * gcov-io.h (__gcov_indirect_call_profiler): Replace by ...
19289 (__gcov_indirect_call_profiler_v2): .. this one.
19290 * profile.h (init_node_map): Update.
19291 * coverage.c (coverage_compute_profile_id): New function.
19292 * coverage.h (coverage_compute_profile_id): Declare.
19293 * tree-profile.c (init_ic_make_global_vars): Make
19294 __gcov_indirect_call_callee and __gcov_indirect_call_counters global.
19295 (gimple_init_edge_profiler): Update prototype of
19296 __gcov_indirect_call_profiler.
19297 (gimple_gen_ic_func_profiler): Simplify.
19298 (tree_profiling): Use init_node_map
19300 2013-08-09 Jan Hubicka <jh@suse.cz>
19302 * cgraphbuild.c (cgraph_rebuild_references): Rebuild only
19303 non-speculative refs.
19304 * cgraph.c (cgraph_update_edge_in_call_site_hash): New function.
19305 (cgraph_add_edge_to_call_site_hash): Deal with speculative calls.
19306 (cgraph_set_call_stmt): Likewise.
19307 (cgraph_create_edge_1): Fix release checking compilatoin;
19308 clear lto_stmt_uid.
19309 (cgraph_free_edge): Free indirect info.
19310 (cgraph_turn_edge_to_speculative): New function.
19311 (cgraph_speculative_call_info): New function.
19312 (cgraph_make_edge_direct): Return direct edge; handle speculation.
19313 (cgraph_redirect_edge_call_stmt_to_callee): Expand speculative edges.
19314 (dump_cgraph_node): Dump speculation.
19315 (verify_edge_count_and_frequency): Accept speculative edges.
19316 (verify_edge_corresponds_to_fndecl): Handle partitioned cgraph.
19317 (verify_cgraph_node): Handle speculation.
19318 * cgraph.h (cgraph_edge): Add SPECULATIVE flag.
19319 (cgraph_set_call_stmt): Update prototype.
19320 (cgraph_make_edge_direct): Update prototype.
19321 (cgraph_speculative_call_info): Declare.
19322 * ipa-cp.c (ipcp_discover_new_direct_edges): Be ready for edge
19323 to change; update call of ipa_find_references.
19324 * ipa-ref.c (ipa_record_reference): Fix return value; clear
19325 lto_stmt_uid and speculative flags.
19326 (ipa_dump_references): Dump speculation.
19327 (ipa_clone_references): Clone speculative flag.
19328 (ipa_clone_referring): Likewise.
19329 (ipa_clone_ref): New function.
19330 (ipa_find_reference): Look into lto_stmt_uids
19331 (ipa_clear_stmts_in_references): Do not clear speculative calls.
19332 * ipa-ref.h (ipa_ref): Add lto_stmt_uid and speculative flags.
19333 (ipa_find_reference): Update declaration.
19334 (ipa_clone_ref): Declare.
19335 * lto-cgraph.c (lto_output_edge): Make lto_stmt_uids start from 0;
19336 stream speculative flag.
19337 (lto_output_ref): Stream statements uids and speculation.
19338 (input_ref): Likewise.
19339 (input_edge): Stream speuclation.
19340 * cgraphclones.c (cgraph_clone_edge): Clone speculation.
19341 (cgraph_set_call_stmt_including_clones): Handle speculation.
19342 * ipa-inline.c (heap_edge_removal_hook): New function.
19343 (inline_small_functions): Register it.
19344 * lto-streamer-in.c (fixup_call_stmt_edges_1): Bounds checking;
19345 also initialize refs.
19346 * ipa-prop.c (ipa_make_edge_direct_to_target): Be ready for
19348 (try_make_edge_direct_simple_call): Likewise.
19349 (try_make_edge_direct_simple_call): Likewise.
19350 (update_indirect_edges_after_inlining): Likewise.
19351 (remove_described_reference): Look proper lto_stmt_uid.
19352 (propagate_controlled_uses): Likewise.
19353 (propagate_controlled_uses): Liekwise.
19354 * tree-inline.c (copy_bb): Copy speculative edges.
19355 (redirect_all_calls): New function.
19356 (copy_cfg_body): Do redirection after loop info is updated.
19357 (delete_unreachable_blocks_update_callgraph): Updadte speculation.
19359 2013-08-09 Jan Hubicka <jh@suse.cz>
19361 * lto-streamer-out.c (output_function): Renumber PHIs.
19362 * lto-streamer-in.c (input_function): Likewise.
19364 2013-08-09 James Greenhalgh <james.greenhalgh@arm.com>
19366 * config/aarch64/aarch64-simd-builtins.def (get_lane_signed): Remove.
19367 (get_lane_unsigned): Likewise.
19368 (dup_lane_scalar): Likewise.
19369 (get_lane): enable for VALL.
19370 * config/aarch64/aarch64-simd.md
19371 (aarch64_dup_lane_scalar<mode>): Remove.
19372 (aarch64_get_lane_signed<mode>): Likewise.
19373 (aarch64_get_lane_unsigned<mode>): Likewise.
19374 (aarch64_get_lane_extend<GPI:mode><VDQQH:mode>): New.
19375 (aarch64_get_lane_zero_extendsi<mode>): Likewise.
19376 (aarch64_get_lane<mode>): Enable for all vector modes.
19377 (aarch64_get_lanedi): Remove misleading constraints.
19378 * config/aarch64/arm_neon.h
19379 (__aarch64_vget_lane_any): Define.
19380 (__aarch64_vget<q>_lane_<fpsu><8,16,32,64>): Likewise.
19381 (vget<q>_lane_<fpsu><8,16,32,64>): Use __aarch64_vget_lane macros.
19382 (vdup<bhsd>_lane_<su><8,16,32,64>): Likewise.
19383 * config/aarch64/iterators.md (VDQQH): New.
19384 (VDQQHS): Likewise.
19385 (vwcore): Likewise.
19387 2013-08-09 Eric Botcazou <ebotcazou@adacore.com>
19389 * configure.ac: Add GAS check for LEON instructions on SPARC.
19390 * configure: Regenerate.
19391 * config.in: Likewise.
19392 * config.gcc (with_cpu): Remove sparc-leon*-* and deal with LEON in the
19394 * config/sparc/sparc.opt (LEON, LEON3): New masks.
19395 * config/sparc/sparc.h (ASM_CPU32_DEFAULT_SPEC): Set to AS_LEON_FLAG
19397 (ASM_CPU_SPEC): Pass AS_LEON_FLAG if -mcpu=leon or -mcpu=leon3.
19398 (AS_LEON_FLAG): New macro.
19399 * config/sparc/sparc.c (sparc_option_override): Set MASK_LEON for leon
19400 and MASK_LEON3 for leon3 and unset them if HAVE_AS_LEON is not defined.
19401 Deal with LEON and LEON3 for the memory model.
19402 * config/sparc/sync.md (atomic_compare_and_swap<mode>): Enable if LEON3
19403 (atomic_compare_and_swap<mode>_1): Likewise.
19404 (*atomic_compare_and_swap<mode>_1): Likewise.
19406 2013-08-09 Zhenqiang Chen <zhenqiang.chen@linaro.org>
19408 * config/arm/neon.md (vcond): Fix floating-point vector
19409 comparisons against 0.
19411 2013-08-08 Vladimir Makarov <vmakarov@redhat.com>
19413 * lra-constraints.c (emit_spill_move): Remove assert.
19414 (process_alt_operands): Add more debugging
19415 output. Increase reject for spilling into memory. Decrease
19416 reject for reloading scratch.
19417 (split_reg): Use HARD_REGNO_CALLER_SAVE_MODE.
19419 2013-08-08 Steve Ellcey <sellcey@mips.com>
19421 * config/mips/mti-linux.h (SYSROOT_SUFFIX_SPEC): Add nan2008.
19422 * config/mips/t-mti-elf (MULTILIB_OPTIONS): Make mips16 and
19423 micromips incompatible. Add nan2008.
19424 (MULTILIB_DIRNAMES): Add nan2008.
19425 (MULTILIB_EXCEPTIONS): Remove mips16/micromips entry.
19426 * config/mips/t-mti-linux (MULTILIB_OPTIONS): Make mips16
19427 and micromips incompatible. Add nan2008.
19428 (MULTILIB_DIRNAMES): Add nan2008.
19429 (MULTILIB_EXCEPTIONS): Remove mips16/micromips entry.
19431 2013-08-08 Richard Sandiford <rdsandiford@googlemail.com>
19433 PR rtl-optimization/58079
19434 * combine.c (combine_simplify_rtx): Avoid using SUBST if
19435 simplify_comparison has widened a comparison with an integer.
19437 2013-08-08 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
19439 * config/arm/neon.md (movmisalign<mode>): Disable when we
19440 don't allow unaligned accesses.
19441 (*movmisalign<mode>_neon_store): Likewise.
19442 (*movmisalign<mode>_neon_load): Likewise.
19443 (*movmisalign<mode>_neon_store): Likewise.
19444 (*movmisalign<mode>_neon_load): Likewise.
19446 2013-08-08 Jan Hubicka <jh@suse.cz>
19448 * cgraphbuild.c (build_cgraph_edges): Do not walk into debugs.
19449 (make_pass_rebuild_cgraph_edges): Also clear references.
19450 * cgraph.c (verify_cgraph_node): Add basic ipa-ref verifier.
19451 * ipa-inline-transform.c (inline_transform): Remove all references
19453 * cgraphunit.c (expand_function): Remove all references after
19455 * ipa-ref.c (ipa_ref_has_aliases_p): Fix formatting.
19456 (ipa_find_reference): Rewrite to iterator.
19457 (remove_stmt_references): Likewise.
19458 (ipa_clear_stmts_in_references): New function.
19459 * ipa-ref.h (ipa_clear_stmts_in_references): Declare.
19460 * cgraphclones.c (cgraph_materialize_all_clones): Remove or
19462 * ipa-split.c (split_function): Remove references in split function.
19464 2013-08-08 Richard Earnshaw <rearnsha@arm.com>
19467 * config/arm/arm/neon.md (neon_vld1_dupdi): New expand pattern.
19468 (neon_vld1_dup<mode> VD iterator): Iterate over VD not VDX.
19470 2013-08-08 Richard Earnshaw <rearnsha@arm.com>
19473 * config/arm/arm.c (aapcs_vfp_allocate): Decompose the argument if the
19474 suggested mode for the assignment isn't compatible with the
19475 registers required.
19477 2013-08-08 Bernd Edlinger <bernd.edlinger@hotmail.de>
19480 * config/arm/arm.h (MALLOC_ABI_ALIGNMENT): Define.
19482 2013-08-07 Xinliang David Li <davidxl@google.com>
19484 * config/i386/i386.opt: New option -mtune-ctrl=.
19485 * config/i386/x86-tune.def: New file.
19486 * config/i386/i386.h: include x86-tune.def.
19487 * config/i386/i386.c (ix86_option_override_internal):
19488 Parsing -mtune-ctrl= option and set tune features.
19490 2013-08-07 Oleg Endo <olegendo@gcc.gnu.org>
19493 * config/rs6000/rs6000.c (gen_2arg_fn_t): Remove typedef.
19494 (rs6000_emit_swdiv, rs6000_emit_swrsqrt): Don't cast result of GEN_FCN
19497 2013-08-07 Eric Botcazou <ebotcazou@adacore.com>
19499 * rtl.h (update_alignments): Declare.
19500 * final.c (grow_label_align): New function extracted from...
19501 (shorten_branches): ...here. Call it.
19502 (update_alignments): New function.
19503 * reorg.c (sibling_labels): New variable.
19504 (get_label_before): Add SIBLING parameter. If it is non-zero, push
19505 the new label along with it onto the sibling_labels vector.
19506 (fill_simple_delay_slots): Adjust call to get_label_before.
19507 (fill_slots_from_thread): Likewise.
19508 (relax_delay_slots): Likewise.
19509 (make_return_insns): Likewise.
19510 (dbr_schedule): Invoke update_alignment on the sibling_labels vector.
19512 2013-08-07 Eric Botcazou <ebotcazou@adacore.com>
19514 * diagnostic.c (diagnostic_classify_diagnostic): Accept zero index and
19515 document its semantics.
19516 (diagnostic_report_diagnostic): Adjust accordingly.
19518 2013-08-07 David Malcolm <dmalcolm@redhat.com>
19520 * config/sparc/sparc.c (insert_pass_work_around_errata): Move into...
19521 (sparc_option_override): ...and port to new C++ pass API.
19522 * config/sparc/t-sparc (sparc.o): Add dep on CONTEXT_H
19524 2013-08-07 Peter Bergner <bergner@vnet.ibm.com>
19526 * config/rs6000/rs6000.c (htm_expand_builtin) <case 0>: Remove.
19528 2013-08-06 Caroline Tice <cmtice@google.com>
19530 * gcc.c (VTABLE_VERIFICATION_SPEC): New definition.
19531 (LINK_COMMAND_SPEC): Add VTABLE_VERIFICATION_SPEC.
19532 * tree-pass.h: Add pass_vtable_verify.
19533 * varasm.c (assemble_variable): Add code to properly set the comdat
19534 section and name for the .vtable_map_vars section.
19535 (assemble_vtyv_preinit_initializer): New function.
19536 (default_sectin_type_flags): Make sure .vtable_map_vars section has
19538 * output.h: Add function decl for assemble_vtv_preinit_initializer.
19539 * vtable-verify.c: New file.
19540 * vtable-verify.h: New file.
19541 * flag-types.h (enum vtv_priority): Defintions for flag_vtable_verify
19542 initialiation levels.
19543 * timevar.def (TV_VTABLE_VERIFICATION): New definition.
19544 * passes.def: Insert pass_vtable_verify.
19545 * aclocal.m4: Reorder includes.
19546 * doc/invoke.texi: Document the -fvtable-verify=, -fvtv-debug, and
19547 -fvtv-counts options.
19548 * config/gnu-user.h (GNU_USER_TARGET_STARTFILE_SPEC): Add vtv_start*.o,
19549 as appropriate, if -fvtable-verify=... is used.
19550 (GNU_USER_TARGET_ENDFILE_SPEC): Add vtv_end*.o as appropriate, if
19551 -fvtable-verify=... is used.
19552 * Makefile.in (OBJS): Add vtable-verify.o to list.
19553 (vtable-verify.o): Add new build rule.
19554 (GTFILES): Add vtable-verify.c to list.
19555 * common.opt (fvtable-verify=): New flag.
19556 (vtv_priority): Values for fvtable-verify= flag.
19557 (fvtv-counts): New flag.
19558 (fvtv-debug): New flag.
19559 * tree.h (save_vtable_map_decl): New extern function decl.
19561 2013-08-07 David Malcolm <dmalcolm@redhat.com>
19563 * config/rl78/rl78.c (rl78_devirt_pass): Convert from a struct to...
19564 (pass_rl78_devirt): ...new subclass of rtl_opt_pass along with...
19565 (pass_data_rl78_devirt): ...new pass_data instance and...
19566 (make_pass_rl78_devirt): ...new function.
19567 (rl78_asm_file_start): Port pass registration to new C++ API.
19569 2013-08-07 David Malcolm <dmalcolm@redhat.com>
19571 * coretypes.h (rtl_opt_pass): Add.
19572 (gcc::context): Add.
19573 * config/epiphany/epiphany.c (pass_mode_switch_use): New.
19574 (epiphany_init): Port to new C++ pass API.
19575 (epiphany_optimize_mode_switching): Likewise.
19576 * pass_manager.h (pass_manager::get_pass_split_all_insns): New.
19577 (pass_manager::get_pass_mode_switching): New.
19578 (pass_manager::get_pass_peephole2): New.
19579 * mode-switching.c (pass_mode_switching): Add clone method.
19580 * recog.c (pass_peephole2): Add clone method.
19581 (pass_split_all_insns): Add clone method.
19583 2013-08-06 David Malcolm <dmalcolm@redhat.com>
19585 * config/mips/mips.c (insert_pass_mips_machine_reorg2): Move into...
19586 (mips_option_override): ...here, porting to new C++ API for passes.
19588 2013-08-06 Jan Hubicka <jh@suse.cz>
19590 * cgraph.c (cgraph_get_body): New function based on lto.c
19592 * cgraph.h (cgraph_get_body): Declare.
19593 * cgraphclones.c (cgraph_create_virtual_clone): Commonize WPA and
19595 * cgraphunit.c (expand_function): Get body prior expanding.
19596 * ipa.c (function_and_variable_visibility): Use gimple_has_body_p test.
19597 * lto-cgraph.c (lto_output_node): Do not stream bodies we don't
19599 * passes.c (do_per_function_toporder): Get body.
19600 * tree-inline.c (expand_call_inline): Get body prior inlining it.
19601 * tree-ssa-structalias.c (ipa_pta_execute): Get body; skip clones.
19603 2013-08-06 Martin Jambor <mjambor@suse.cz>
19606 * cgraphunit.c (cgraph_finalize_function): Assert that nested function
19607 is not re-finalized. Rename second parameter to no_collect.
19609 2013-08-06 Martin Jambor <mjambor@suse.cz>
19611 PR middle-end/58041
19612 * gimple-ssa-strength-reduction.c (replace_ref): Make sure built
19613 MEM_REF has proper alignment information.
19615 2013-08-05 Oleg Endo <olegendo@gcc.gnu.org>
19618 * recog.h (rtx (*insn_gen_fn) (rtx, ...)): Replace typedef with new
19620 * expr.c (move_by_pieces_1, store_by_pieces_2): Replace argument
19621 rtx (*) (rtx, ...) with insn_gen_fn.
19622 * genoutput.c (output_insn_data): Cast gen_? function pointers to
19623 insn_gen_fn::stored_funcptr. Add initializer braces.
19625 2013-08-05 David Malcolm <dmalcolm@redhat.com>
19627 Rewrite how instances of passes are cloned to remove assumptions
19628 about their sizes (thus allowing pass subclasses to have
19629 additional data fields, albeit non-GC-managed ones at this point).
19631 * passes.c (make_pass_instance): Now that passes have clone
19632 methods, rewrite this function to eliminate XNEW and memcpy
19633 calls that used hardcoded sizes. Since this function no longer
19634 creates pass instances, rename it to...
19635 (add_pass_instance): ...this. Document the old way that passes were
19636 numbered and flagged, and rework this function to continue using it.
19637 (next_pass_1): Add an initial_pass argument for use by
19639 (position_pass): When adding multiple instances of a pass, use
19640 the pass's clone method, rather than relying on the XNEW/memcpy
19641 within the former make_pass_instance (now add_pass_instance).
19642 (pass_manager::pass_manager): When invoking next_pass_1, also supply
19643 the initial instance of the current pass within the pass manager.
19645 2013-08-05 David Malcolm <dmalcolm@redhat.com>
19647 This is the automated part of the conversion of passes from C
19648 structs to C++ classes.
19650 Patch autogenerated by refactor_passes.py from
19651 https://github.com/davidmalcolm/gcc-refactoring-scripts
19652 revision 03fe39476a4c4ea450b49e087cfa817b5f92021e
19654 * asan.c (pass_asan): Convert from a global struct to a subclass of
19655 gimple_opt_pass along with...
19656 (pass_data_asan): ...new pass_data instance and...
19657 (make_pass_asan): ...new function.
19658 (pass_asan_O0): Convert from a global struct to a subclass of
19659 gimple_opt_pass along with...
19660 (pass_data_asan_O0): ...new pass_data instance and...
19661 (make_pass_asan_O0): ...new function.
19662 * auto-inc-dec.c (pass_inc_dec): Convert from a global struct to a
19663 subclass of rtl_opt_pass along with...
19664 (pass_data_inc_dec): ...new pass_data instance and...
19665 (make_pass_inc_dec): ...new function.
19666 * bb-reorder.c (pass_reorder_blocks): Convert from a global struct to
19667 a subclass of rtl_opt_pass along with...
19668 (pass_data_reorder_blocks): ...new pass_data instance and...
19669 (make_pass_reorder_blocks): ...new function.
19670 (pass_duplicate_computed_gotos): Convert from a global struct to a
19671 subclass of rtl_opt_pass along with...
19672 (pass_data_duplicate_computed_gotos): ...new pass_data instance and...
19673 (make_pass_duplicate_computed_gotos): ...new function.
19674 (pass_partition_blocks): Convert from a global struct to a subclass of
19675 rtl_opt_pass along with...
19676 (pass_data_partition_blocks): ...new pass_data instance and...
19677 (make_pass_partition_blocks): ...new function.
19678 * bt-load.c (pass_branch_target_load_optimize1): Convert from a global
19679 struct to a subclass of rtl_opt_pass along with...
19680 (pass_data_branch_target_load_optimize1): ...new pass_data instance
19682 (make_pass_branch_target_load_optimize1): ...new function.
19683 (pass_branch_target_load_optimize2): Convert from a global struct to a
19684 subclass of rtl_opt_pass along with...
19685 (pass_data_branch_target_load_optimize2): ...new pass_data instance
19687 (make_pass_branch_target_load_optimize2): ...new function.
19688 * cfgcleanup.c (pass_jump): Convert from a global struct to a subclass
19689 of rtl_opt_pass along with...
19690 (pass_data_jump): ...new pass_data instance and...
19691 (make_pass_jump): ...new function.
19692 (pass_jump2): Convert from a global struct to a subclass of
19693 rtl_opt_pass along with...
19694 (pass_data_jump2): ...new pass_data instance and...
19695 (make_pass_jump2): ...new function.
19696 * cfgexpand.c (pass_expand): Convert from a global struct to a
19697 subclass of rtl_opt_pass along with...
19698 (pass_data_expand): ...new pass_data instance and...
19699 (make_pass_expand): ...new function.
19700 * cfgrtl.c (pass_free_cfg): Convert from a global struct to a subclass
19701 of rtl_opt_pass along with...
19702 (pass_data_free_cfg): ...new pass_data instance and...
19703 (make_pass_free_cfg): ...new function.
19704 (pass_into_cfg_layout_mode): Convert from a global struct to a
19705 subclass of rtl_opt_pass along with...
19706 (pass_data_into_cfg_layout_mode): ...new pass_data instance and...
19707 (make_pass_into_cfg_layout_mode): ...new function.
19708 (pass_outof_cfg_layout_mode): Convert from a global struct to a
19709 subclass of rtl_opt_pass along with...
19710 (pass_data_outof_cfg_layout_mode): ...new pass_data instance and...
19711 (make_pass_outof_cfg_layout_mode): ...new function.
19712 * cgraphbuild.c (pass_build_cgraph_edges): Convert from a global
19713 struct to a subclass of gimple_opt_pass along with...
19714 (pass_data_build_cgraph_edges): ...new pass_data instance and...
19715 (make_pass_build_cgraph_edges): ...new function.
19716 (pass_rebuild_cgraph_edges): Convert from a global struct to a
19717 subclass of gimple_opt_pass along with...
19718 (pass_data_rebuild_cgraph_edges): ...new pass_data instance and...
19719 (make_pass_rebuild_cgraph_edges): ...new function.
19720 (pass_remove_cgraph_callee_edges): Convert from a global struct to a
19721 subclass of gimple_opt_pass along with...
19722 (pass_data_remove_cgraph_callee_edges): ...new pass_data instance
19724 (make_pass_remove_cgraph_callee_edges): ...new function.
19725 * combine-stack-adj.c (pass_stack_adjustments): Convert from a global
19726 struct to a subclass of rtl_opt_pass along with...
19727 (pass_data_stack_adjustments): ...new pass_data instance and...
19728 (make_pass_stack_adjustments): ...new function.
19729 * combine.c (pass_combine): Convert from a global struct to a subclass
19730 of rtl_opt_pass along with...
19731 (pass_data_combine): ...new pass_data instance and...
19732 (make_pass_combine): ...new function.
19733 * compare-elim.c (pass_compare_elim_after_reload): Convert from a
19734 global struct to a subclass of rtl_opt_pass along with...
19735 (pass_data_compare_elim_after_reload): ...new pass_data instance
19737 (make_pass_compare_elim_after_reload): ...new function.
19738 * cprop.c (pass_rtl_cprop): Convert from a global struct to a subclass
19739 of rtl_opt_pass along with...
19740 (pass_data_rtl_cprop): ...new pass_data instance and...
19741 (make_pass_rtl_cprop): ...new function.
19742 * cse.c (pass_cse): Convert from a global struct to a subclass of
19743 rtl_opt_pass along with...
19744 (pass_data_cse): ...new pass_data instance and...
19745 (make_pass_cse): ...new function.
19746 (pass_cse2): Convert from a global struct to a subclass of
19747 rtl_opt_pass along with...
19748 (pass_data_cse2): ...new pass_data instance and...
19749 (make_pass_cse2): ...new function.
19750 (pass_cse_after_global_opts): Convert from a global struct to a
19751 subclass of rtl_opt_pass along with...
19752 (pass_data_cse_after_global_opts): ...new pass_data instance and...
19753 (make_pass_cse_after_global_opts): ...new function.
19754 * dce.c (pass_ud_rtl_dce): Convert from a global struct to a subclass
19755 of rtl_opt_pass along with...
19756 (pass_data_ud_rtl_dce): ...new pass_data instance and...
19757 (make_pass_ud_rtl_dce): ...new function.
19758 (pass_fast_rtl_dce): Convert from a global struct to a subclass of
19759 rtl_opt_pass along with...
19760 (pass_data_fast_rtl_dce): ...new pass_data instance and...
19761 (make_pass_fast_rtl_dce): ...new function.
19762 * df-core.c (pass_df_initialize_opt): Convert from a global struct to
19763 a subclass of rtl_opt_pass along with...
19764 (pass_data_df_initialize_opt): ...new pass_data instance and...
19765 (make_pass_df_initialize_opt): ...new function.
19766 (pass_df_initialize_no_opt): Convert from a global struct to a
19767 subclass of rtl_opt_pass along with...
19768 (pass_data_df_initialize_no_opt): ...new pass_data instance and...
19769 (make_pass_df_initialize_no_opt): ...new function.
19770 (pass_df_finish): Convert from a global struct to a subclass of
19771 rtl_opt_pass along with...
19772 (pass_data_df_finish): ...new pass_data instance and...
19773 (make_pass_df_finish): ...new function.
19774 * dse.c (pass_rtl_dse1): Convert from a global struct to a subclass of
19775 rtl_opt_pass along with...
19776 (pass_data_rtl_dse1): ...new pass_data instance and...
19777 (make_pass_rtl_dse1): ...new function.
19778 (pass_rtl_dse2): Convert from a global struct to a subclass of
19779 rtl_opt_pass along with...
19780 (pass_data_rtl_dse2): ...new pass_data instance and...
19781 (make_pass_rtl_dse2): ...new function.
19782 * dwarf2cfi.c (pass_dwarf2_frame): Convert from a global struct to a
19783 subclass of rtl_opt_pass along with...
19784 (pass_data_dwarf2_frame): ...new pass_data instance and...
19785 (make_pass_dwarf2_frame): ...new function.
19786 * except.c (pass_set_nothrow_function_flags): Convert from a global
19787 struct to a subclass of rtl_opt_pass along with...
19788 (pass_data_set_nothrow_function_flags): ...new pass_data instance
19790 (make_pass_set_nothrow_function_flags): ...new function.
19791 (pass_convert_to_eh_region_ranges): Convert from a global struct to a
19792 subclass of rtl_opt_pass along with...
19793 (pass_data_convert_to_eh_region_ranges): ...new pass_data instance
19795 (make_pass_convert_to_eh_region_ranges): ...new function.
19796 * final.c (pass_compute_alignments): Convert from a global struct to a
19797 subclass of rtl_opt_pass along with...
19798 (pass_data_compute_alignments): ...new pass_data instance and...
19799 (make_pass_compute_alignments): ...new function.
19800 (pass_final): Convert from a global struct to a subclass of
19801 rtl_opt_pass along with...
19802 (pass_data_final): ...new pass_data instance and...
19803 (make_pass_final): ...new function.
19804 (pass_shorten_branches): Convert from a global struct to a subclass of
19805 rtl_opt_pass along with...
19806 (pass_data_shorten_branches): ...new pass_data instance and...
19807 (make_pass_shorten_branches): ...new function.
19808 (pass_clean_state): Convert from a global struct to a subclass of
19809 rtl_opt_pass along with...
19810 (pass_data_clean_state): ...new pass_data instance and...
19811 (make_pass_clean_state): ...new function.
19812 * function.c (pass_instantiate_virtual_regs): Convert from a global
19813 struct to a subclass of rtl_opt_pass along with...
19814 (pass_data_instantiate_virtual_regs): ...new pass_data instance and...
19815 (make_pass_instantiate_virtual_regs): ...new function.
19816 (pass_leaf_regs): Convert from a global struct to a subclass of
19817 rtl_opt_pass along with...
19818 (pass_data_leaf_regs): ...new pass_data instance and...
19819 (make_pass_leaf_regs): ...new function.
19820 (pass_thread_prologue_and_epilogue): Convert from a global struct to a
19821 subclass of rtl_opt_pass along with...
19822 (pass_data_thread_prologue_and_epilogue): ...new pass_data instance
19824 (make_pass_thread_prologue_and_epilogue): ...new function.
19825 (pass_match_asm_constraints): Convert from a global struct to a
19826 subclass of rtl_opt_pass along with...
19827 (pass_data_match_asm_constraints): ...new pass_data instance and...
19828 (make_pass_match_asm_constraints): ...new function.
19829 * fwprop.c (pass_rtl_fwprop): Convert from a global struct to a
19830 subclass of rtl_opt_pass along with...
19831 (pass_data_rtl_fwprop): ...new pass_data instance and...
19832 (make_pass_rtl_fwprop): ...new function.
19833 (pass_rtl_fwprop_addr): Convert from a global struct to a subclass of
19834 rtl_opt_pass along with...
19835 (pass_data_rtl_fwprop_addr): ...new pass_data instance and...
19836 (make_pass_rtl_fwprop_addr): ...new function.
19837 * gcse.c (pass_rtl_pre): Convert from a global struct to a subclass of
19838 rtl_opt_pass along with...
19839 (pass_data_rtl_pre): ...new pass_data instance and...
19840 (make_pass_rtl_pre): ...new function.
19841 (pass_rtl_hoist): Convert from a global struct to a subclass of
19842 rtl_opt_pass along with...
19843 (pass_data_rtl_hoist): ...new pass_data instance and...
19844 (make_pass_rtl_hoist): ...new function.
19845 * gimple-low.c (pass_lower_cf): Convert from a global struct to a
19846 subclass of gimple_opt_pass along with...
19847 (pass_data_lower_cf): ...new pass_data instance and...
19848 (make_pass_lower_cf): ...new function.
19849 * gimple-ssa-strength-reduction.c (pass_strength_reduction): Convert
19850 from a global struct to a subclass of gimple_opt_pass along with...
19851 (pass_data_strength_reduction): ...new pass_data instance and...
19852 (make_pass_strength_reduction): ...new function.
19853 * ifcvt.c (pass_rtl_ifcvt): Convert from a global struct to a subclass
19854 of rtl_opt_pass along with...
19855 (pass_data_rtl_ifcvt): ...new pass_data instance and...
19856 (make_pass_rtl_ifcvt): ...new function.
19857 (pass_if_after_combine): Convert from a global struct to a subclass of
19858 rtl_opt_pass along with...
19859 (pass_data_if_after_combine): ...new pass_data instance and...
19860 (make_pass_if_after_combine): ...new function.
19861 (pass_if_after_reload): Convert from a global struct to a subclass of
19862 rtl_opt_pass along with...
19863 (pass_data_if_after_reload): ...new pass_data instance and...
19864 (make_pass_if_after_reload): ...new function.
19865 * init-regs.c (pass_initialize_regs): Convert from a global struct to
19866 a subclass of rtl_opt_pass along with...
19867 (pass_data_initialize_regs): ...new pass_data instance and...
19868 (make_pass_initialize_regs): ...new function.
19869 * ipa-cp.c (pass_ipa_cp): Convert from a global struct to a subclass
19870 of ipa_opt_pass_d along with...
19871 (pass_data_ipa_cp): ...new pass_data instance and...
19872 (make_pass_ipa_cp): ...new function.
19873 * ipa-inline-analysis.c (pass_inline_parameters): Convert from a
19874 global struct to a subclass of gimple_opt_pass along with...
19875 (pass_data_inline_parameters): ...new pass_data instance and...
19876 (make_pass_inline_parameters): ...new function.
19877 * ipa-inline.c (pass_early_inline): Convert from a global struct to a
19878 subclass of gimple_opt_pass along with...
19879 (pass_data_early_inline): ...new pass_data instance and...
19880 (make_pass_early_inline): ...new function.
19881 (pass_ipa_inline): Convert from a global struct to a subclass of
19882 ipa_opt_pass_d along with...
19883 (pass_data_ipa_inline): ...new pass_data instance and...
19884 (make_pass_ipa_inline): ...new function.
19885 * ipa-pure-const.c (pass_local_pure_const): Convert from a global
19886 struct to a subclass of gimple_opt_pass along with...
19887 (pass_data_local_pure_const): ...new pass_data instance and...
19888 (make_pass_local_pure_const): ...new function.
19889 (pass_ipa_pure_const): Convert from a global struct to a subclass of
19890 ipa_opt_pass_d along with...
19891 (pass_data_ipa_pure_const): ...new pass_data instance and...
19892 (make_pass_ipa_pure_const): ...new function.
19893 * ipa-reference.c (pass_ipa_reference): Convert from a global struct
19894 to a subclass of ipa_opt_pass_d along with...
19895 (pass_data_ipa_reference): ...new pass_data instance and...
19896 (make_pass_ipa_reference): ...new function.
19897 * ipa-split.c (pass_split_functions): Convert from a global struct to
19898 a subclass of gimple_opt_pass along with...
19899 (pass_data_split_functions): ...new pass_data instance and...
19900 (make_pass_split_functions): ...new function.
19901 (pass_feedback_split_functions): Convert from a global struct to a
19902 subclass of gimple_opt_pass along with...
19903 (pass_data_feedback_split_functions): ...new pass_data instance and...
19904 (make_pass_feedback_split_functions): ...new function.
19905 * ipa.c (pass_ipa_function_and_variable_visibility): Convert from a
19906 global struct to a subclass of simple_ipa_opt_pass along with...
19907 (pass_data_ipa_function_and_variable_visibility): ...new pass_data
19909 (make_pass_ipa_function_and_variable_visibility): ...new function.
19910 (pass_ipa_free_inline_summary): Convert from a global struct to a
19911 subclass of simple_ipa_opt_pass along with...
19912 (pass_data_ipa_free_inline_summary): ...new pass_data instance and...
19913 (make_pass_ipa_free_inline_summary): ...new function.
19914 (pass_ipa_whole_program_visibility): Convert from a global struct to a
19915 subclass of ipa_opt_pass_d along with...
19916 (pass_data_ipa_whole_program_visibility): ...new pass_data instance
19918 (make_pass_ipa_whole_program_visibility): ...new function.
19919 (pass_ipa_profile): Convert from a global struct to a subclass of
19920 ipa_opt_pass_d along with...
19921 (pass_data_ipa_profile): ...new pass_data instance and...
19922 (make_pass_ipa_profile): ...new function.
19923 (pass_ipa_cdtor_merge): Convert from a global struct to a subclass of
19924 ipa_opt_pass_d along with...
19925 (pass_data_ipa_cdtor_merge): ...new pass_data instance and...
19926 (make_pass_ipa_cdtor_merge): ...new function.
19927 * ira.c (pass_ira): Convert from a global struct to a subclass of
19928 rtl_opt_pass along with...
19929 (pass_data_ira): ...new pass_data instance and...
19930 (make_pass_ira): ...new function.
19931 (pass_reload): Convert from a global struct to a subclass of
19932 rtl_opt_pass along with...
19933 (pass_data_reload): ...new pass_data instance and...
19934 (make_pass_reload): ...new function.
19935 * jump.c (pass_cleanup_barriers): Convert from a global struct to a
19936 subclass of rtl_opt_pass along with...
19937 (pass_data_cleanup_barriers): ...new pass_data instance and...
19938 (make_pass_cleanup_barriers): ...new function.
19939 * loop-init.c (pass_loop2): Convert from a global struct to a subclass
19940 of rtl_opt_pass along with...
19941 (pass_data_loop2): ...new pass_data instance and...
19942 (make_pass_loop2): ...new function.
19943 (pass_rtl_loop_init): Convert from a global struct to a subclass of
19944 rtl_opt_pass along with...
19945 (pass_data_rtl_loop_init): ...new pass_data instance and...
19946 (make_pass_rtl_loop_init): ...new function.
19947 (pass_rtl_loop_done): Convert from a global struct to a subclass of
19948 rtl_opt_pass along with...
19949 (pass_data_rtl_loop_done): ...new pass_data instance and...
19950 (make_pass_rtl_loop_done): ...new function.
19951 (pass_rtl_move_loop_invariants): Convert from a global struct to a
19952 subclass of rtl_opt_pass along with...
19953 (pass_data_rtl_move_loop_invariants): ...new pass_data instance and...
19954 (make_pass_rtl_move_loop_invariants): ...new function.
19955 (pass_rtl_unswitch): Convert from a global struct to a subclass of
19956 rtl_opt_pass along with...
19957 (pass_data_rtl_unswitch): ...new pass_data instance and...
19958 (make_pass_rtl_unswitch): ...new function.
19959 (pass_rtl_unroll_and_peel_loops): Convert from a global struct to a
19960 subclass of rtl_opt_pass along with...
19961 (pass_data_rtl_unroll_and_peel_loops): ...new pass_data instance
19963 (make_pass_rtl_unroll_and_peel_loops): ...new function.
19964 (pass_rtl_doloop): Convert from a global struct to a subclass of
19965 rtl_opt_pass along with...
19966 (pass_data_rtl_doloop): ...new pass_data instance and...
19967 (make_pass_rtl_doloop): ...new function.
19968 * lower-subreg.c (pass_lower_subreg): Convert from a global struct to
19969 a subclass of rtl_opt_pass along with...
19970 (pass_data_lower_subreg): ...new pass_data instance and...
19971 (make_pass_lower_subreg): ...new function.
19972 (pass_lower_subreg2): Convert from a global struct to a subclass of
19973 rtl_opt_pass along with...
19974 (pass_data_lower_subreg2): ...new pass_data instance and...
19975 (make_pass_lower_subreg2): ...new function.
19976 * lto-streamer-out.c (pass_ipa_lto_gimple_out): Convert from a global
19977 struct to a subclass of ipa_opt_pass_d along with...
19978 (pass_data_ipa_lto_gimple_out): ...new pass_data instance and...
19979 (make_pass_ipa_lto_gimple_out): ...new function.
19980 (pass_ipa_lto_finish_out): Convert from a global struct to a subclass
19981 of ipa_opt_pass_d along with...
19982 (pass_data_ipa_lto_finish_out): ...new pass_data instance and...
19983 (make_pass_ipa_lto_finish_out): ...new function.
19984 * mode-switching.c (pass_mode_switching): Convert from a global struct
19985 to a subclass of rtl_opt_pass along with...
19986 (pass_data_mode_switching): ...new pass_data instance and...
19987 (make_pass_mode_switching): ...new function.
19988 * modulo-sched.c (pass_sms): Convert from a global struct to a
19989 subclass of rtl_opt_pass along with...
19990 (pass_data_sms): ...new pass_data instance and...
19991 (make_pass_sms): ...new function.
19992 * omp-low.c (pass_expand_omp): Convert from a global struct to a
19993 subclass of gimple_opt_pass along with...
19994 (pass_data_expand_omp): ...new pass_data instance and...
19995 (make_pass_expand_omp): ...new function.
19996 (pass_lower_omp): Convert from a global struct to a subclass of
19997 gimple_opt_pass along with...
19998 (pass_data_lower_omp): ...new pass_data instance and...
19999 (make_pass_lower_omp): ...new function.
20000 (pass_diagnose_omp_blocks): Convert from a global struct to a subclass
20001 of gimple_opt_pass along with...
20002 (pass_data_diagnose_omp_blocks): ...new pass_data instance and...
20003 (make_pass_diagnose_omp_blocks): ...new function.
20004 * passes.c (pass_early_local_passes): Convert from a global struct to
20005 a subclass of simple_ipa_opt_pass along with...
20006 (pass_data_early_local_passes): ...new pass_data instance and...
20007 (make_pass_early_local_passes): ...new function.
20008 (pass_all_early_optimizations): Convert from a global struct to a
20009 subclass of gimple_opt_pass along with...
20010 (pass_data_all_early_optimizations): ...new pass_data instance and...
20011 (make_pass_all_early_optimizations): ...new function.
20012 (pass_all_optimizations): Convert from a global struct to a subclass
20013 of gimple_opt_pass along with...
20014 (pass_data_all_optimizations): ...new pass_data instance and...
20015 (make_pass_all_optimizations): ...new function.
20016 (pass_all_optimizations_g): Convert from a global struct to a subclass
20017 of gimple_opt_pass along with...
20018 (pass_data_all_optimizations_g): ...new pass_data instance and...
20019 (make_pass_all_optimizations_g): ...new function.
20020 (pass_rest_of_compilation): Convert from a global struct to a subclass
20021 of rtl_opt_pass along with...
20022 (pass_data_rest_of_compilation): ...new pass_data instance and...
20023 (make_pass_rest_of_compilation): ...new function.
20024 (pass_postreload): Convert from a global struct to a subclass of
20025 rtl_opt_pass along with...
20026 (pass_data_postreload): ...new pass_data instance and...
20027 (make_pass_postreload): ...new function.
20028 * postreload-gcse.c (pass_gcse2): Convert from a global struct to a
20029 subclass of rtl_opt_pass along with...
20030 (pass_data_gcse2): ...new pass_data instance and...
20031 (make_pass_gcse2): ...new function.
20032 * postreload.c (pass_postreload_cse): Convert from a global struct to
20033 a subclass of rtl_opt_pass along with...
20034 (pass_data_postreload_cse): ...new pass_data instance and...
20035 (make_pass_postreload_cse): ...new function.
20036 * predict.c (pass_profile): Convert from a global struct to a subclass
20037 of gimple_opt_pass along with...
20038 (pass_data_profile): ...new pass_data instance and...
20039 (make_pass_profile): ...new function.
20040 (pass_strip_predict_hints): Convert from a global struct to a subclass
20041 of gimple_opt_pass along with...
20042 (pass_data_strip_predict_hints): ...new pass_data instance and...
20043 (make_pass_strip_predict_hints): ...new function.
20044 * recog.c (pass_peephole2): Convert from a global struct to a subclass
20045 of rtl_opt_pass along with...
20046 (pass_data_peephole2): ...new pass_data instance and...
20047 (make_pass_peephole2): ...new function.
20048 (pass_split_all_insns): Convert from a global struct to a subclass of
20049 rtl_opt_pass along with...
20050 (pass_data_split_all_insns): ...new pass_data instance and...
20051 (make_pass_split_all_insns): ...new function.
20052 (pass_split_after_reload): Convert from a global struct to a subclass
20053 of rtl_opt_pass along with...
20054 (pass_data_split_after_reload): ...new pass_data instance and...
20055 (make_pass_split_after_reload): ...new function.
20056 (pass_split_before_regstack): Convert from a global struct to a
20057 subclass of rtl_opt_pass along with...
20058 (pass_data_split_before_regstack): ...new pass_data instance and...
20059 (make_pass_split_before_regstack): ...new function.
20060 (pass_split_before_sched2): Convert from a global struct to a subclass
20061 of rtl_opt_pass along with...
20062 (pass_data_split_before_sched2): ...new pass_data instance and...
20063 (make_pass_split_before_sched2): ...new function.
20064 (pass_split_for_shorten_branches): Convert from a global struct to a
20065 subclass of rtl_opt_pass along with...
20066 (pass_data_split_for_shorten_branches): ...new pass_data instance
20068 (make_pass_split_for_shorten_branches): ...new function.
20069 * ree.c (pass_ree): Convert from a global struct to a subclass of
20070 rtl_opt_pass along with...
20071 (pass_data_ree): ...new pass_data instance and...
20072 (make_pass_ree): ...new function.
20073 * reg-stack.c (pass_stack_regs): Convert from a global struct to a
20074 subclass of rtl_opt_pass along with...
20075 (pass_data_stack_regs): ...new pass_data instance and...
20076 (make_pass_stack_regs): ...new function.
20077 (pass_stack_regs_run): Convert from a global struct to a subclass of
20078 rtl_opt_pass along with...
20079 (pass_data_stack_regs_run): ...new pass_data instance and...
20080 (make_pass_stack_regs_run): ...new function.
20081 * regcprop.c (pass_cprop_hardreg): Convert from a global struct to a
20082 subclass of rtl_opt_pass along with...
20083 (pass_data_cprop_hardreg): ...new pass_data instance and...
20084 (make_pass_cprop_hardreg): ...new function.
20085 * reginfo.c (pass_reginfo_init): Convert from a global struct to a
20086 subclass of rtl_opt_pass along with...
20087 (pass_data_reginfo_init): ...new pass_data instance and...
20088 (make_pass_reginfo_init): ...new function.
20089 * regmove.c (pass_regmove): Convert from a global struct to a subclass
20090 of rtl_opt_pass along with...
20091 (pass_data_regmove): ...new pass_data instance and...
20092 (make_pass_regmove): ...new function.
20093 * regrename.c (pass_regrename): Convert from a global struct to a
20094 subclass of rtl_opt_pass along with...
20095 (pass_data_regrename): ...new pass_data instance and...
20096 (make_pass_regrename): ...new function.
20097 * reorg.c (pass_delay_slots): Convert from a global struct to a
20098 subclass of rtl_opt_pass along with...
20099 (pass_data_delay_slots): ...new pass_data instance and...
20100 (make_pass_delay_slots): ...new function.
20101 (pass_machine_reorg): Convert from a global struct to a subclass of
20102 rtl_opt_pass along with...
20103 (pass_data_machine_reorg): ...new pass_data instance and...
20104 (make_pass_machine_reorg): ...new function.
20105 * sched-rgn.c (pass_sched): Convert from a global struct to a subclass
20106 of rtl_opt_pass along with...
20107 (pass_data_sched): ...new pass_data instance and...
20108 (make_pass_sched): ...new function.
20109 (pass_sched2): Convert from a global struct to a subclass of
20110 rtl_opt_pass along with...
20111 (pass_data_sched2): ...new pass_data instance and...
20112 (make_pass_sched2): ...new function.
20113 * stack-ptr-mod.c (pass_stack_ptr_mod): Convert from a global struct
20114 to a subclass of rtl_opt_pass along with...
20115 (pass_data_stack_ptr_mod): ...new pass_data instance and...
20116 (make_pass_stack_ptr_mod): ...new function.
20117 * store-motion.c (pass_rtl_store_motion): Convert from a global struct
20118 to a subclass of rtl_opt_pass along with...
20119 (pass_data_rtl_store_motion): ...new pass_data instance and...
20120 (make_pass_rtl_store_motion): ...new function.
20121 * tracer.c (pass_tracer): Convert from a global struct to a subclass
20122 of gimple_opt_pass along with...
20123 (pass_data_tracer): ...new pass_data instance and...
20124 (make_pass_tracer): ...new function.
20125 * trans-mem.c (pass_diagnose_tm_blocks): Convert from a global struct
20126 to a subclass of gimple_opt_pass along with...
20127 (pass_data_diagnose_tm_blocks): ...new pass_data instance and...
20128 (make_pass_diagnose_tm_blocks): ...new function.
20129 (pass_lower_tm): Convert from a global struct to a subclass of
20130 gimple_opt_pass along with...
20131 (pass_data_lower_tm): ...new pass_data instance and...
20132 (make_pass_lower_tm): ...new function.
20133 (pass_tm_init): Convert from a global struct to a subclass of
20134 gimple_opt_pass along with...
20135 (pass_data_tm_init): ...new pass_data instance and...
20136 (make_pass_tm_init): ...new function.
20137 (pass_tm_mark): Convert from a global struct to a subclass of
20138 gimple_opt_pass along with...
20139 (pass_data_tm_mark): ...new pass_data instance and...
20140 (make_pass_tm_mark): ...new function.
20141 (pass_tm_edges): Convert from a global struct to a subclass of
20142 gimple_opt_pass along with...
20143 (pass_data_tm_edges): ...new pass_data instance and...
20144 (make_pass_tm_edges): ...new function.
20145 (pass_tm_memopt): Convert from a global struct to a subclass of
20146 gimple_opt_pass along with...
20147 (pass_data_tm_memopt): ...new pass_data instance and...
20148 (make_pass_tm_memopt): ...new function.
20149 (pass_ipa_tm): Convert from a global struct to a subclass of
20150 simple_ipa_opt_pass along with...
20151 (pass_data_ipa_tm): ...new pass_data instance and...
20152 (make_pass_ipa_tm): ...new function.
20153 * tree-call-cdce.c (pass_call_cdce): Convert from a global struct to a
20154 subclass of gimple_opt_pass along with...
20155 (pass_data_call_cdce): ...new pass_data instance and...
20156 (make_pass_call_cdce): ...new function.
20157 * tree-cfg.c (pass_build_cfg): Convert from a global struct to a
20158 subclass of gimple_opt_pass along with...
20159 (pass_data_build_cfg): ...new pass_data instance and...
20160 (make_pass_build_cfg): ...new function.
20161 (pass_split_crit_edges): Convert from a global struct to a subclass of
20162 gimple_opt_pass along with...
20163 (pass_data_split_crit_edges): ...new pass_data instance and...
20164 (make_pass_split_crit_edges): ...new function.
20165 (pass_warn_function_return): Convert from a global struct to a
20166 subclass of gimple_opt_pass along with...
20167 (pass_data_warn_function_return): ...new pass_data instance and...
20168 (make_pass_warn_function_return): ...new function.
20169 (pass_warn_function_noreturn): Convert from a global struct to a
20170 subclass of gimple_opt_pass along with...
20171 (pass_data_warn_function_noreturn): ...new pass_data instance and...
20172 (make_pass_warn_function_noreturn): ...new function.
20173 (pass_warn_unused_result): Convert from a global struct to a subclass
20174 of gimple_opt_pass along with...
20175 (pass_data_warn_unused_result): ...new pass_data instance and...
20176 (make_pass_warn_unused_result): ...new function.
20177 * tree-cfgcleanup.c (pass_merge_phi): Convert from a global struct to
20178 a subclass of gimple_opt_pass along with...
20179 (pass_data_merge_phi): ...new pass_data instance and...
20180 (make_pass_merge_phi): ...new function.
20181 * tree-complex.c (pass_lower_complex): Convert from a global struct to
20182 a subclass of gimple_opt_pass along with...
20183 (pass_data_lower_complex): ...new pass_data instance and...
20184 (make_pass_lower_complex): ...new function.
20185 (pass_lower_complex_O0): Convert from a global struct to a subclass of
20186 gimple_opt_pass along with...
20187 (pass_data_lower_complex_O0): ...new pass_data instance and...
20188 (make_pass_lower_complex_O0): ...new function.
20189 * tree-eh.c (pass_lower_eh): Convert from a global struct to a
20190 subclass of gimple_opt_pass along with...
20191 (pass_data_lower_eh): ...new pass_data instance and...
20192 (make_pass_lower_eh): ...new function.
20193 (pass_refactor_eh): Convert from a global struct to a subclass of
20194 gimple_opt_pass along with...
20195 (pass_data_refactor_eh): ...new pass_data instance and...
20196 (make_pass_refactor_eh): ...new function.
20197 (pass_lower_resx): Convert from a global struct to a subclass of
20198 gimple_opt_pass along with...
20199 (pass_data_lower_resx): ...new pass_data instance and...
20200 (make_pass_lower_resx): ...new function.
20201 (pass_lower_eh_dispatch): Convert from a global struct to a subclass
20202 of gimple_opt_pass along with...
20203 (pass_data_lower_eh_dispatch): ...new pass_data instance and...
20204 (make_pass_lower_eh_dispatch): ...new function.
20205 (pass_cleanup_eh): Convert from a global struct to a subclass of
20206 gimple_opt_pass along with...
20207 (pass_data_cleanup_eh): ...new pass_data instance and...
20208 (make_pass_cleanup_eh): ...new function.
20209 * tree-emutls.c (pass_ipa_lower_emutls): Convert from a global struct
20210 to a subclass of simple_ipa_opt_pass along with...
20211 (pass_data_ipa_lower_emutls): ...new pass_data instance and...
20212 (make_pass_ipa_lower_emutls): ...new function.
20213 * tree-if-conv.c (pass_if_conversion): Convert from a global struct to
20214 a subclass of gimple_opt_pass along with...
20215 (pass_data_if_conversion): ...new pass_data instance and...
20216 (make_pass_if_conversion): ...new function.
20217 * tree-into-ssa.c (pass_build_ssa): Convert from a global struct to a
20218 subclass of gimple_opt_pass along with...
20219 (pass_data_build_ssa): ...new pass_data instance and...
20220 (make_pass_build_ssa): ...new function.
20221 * tree-loop-distribution.c (pass_loop_distribution): Convert from a
20222 global struct to a subclass of gimple_opt_pass along with...
20223 (pass_data_loop_distribution): ...new pass_data instance and...
20224 (make_pass_loop_distribution): ...new function.
20225 * tree-mudflap.c (pass_mudflap_1): Convert from a global struct to a
20226 subclass of gimple_opt_pass along with...
20227 (pass_data_mudflap_1): ...new pass_data instance and...
20228 (make_pass_mudflap_1): ...new function.
20229 (pass_mudflap_2): Convert from a global struct to a subclass of
20230 gimple_opt_pass along with...
20231 (pass_data_mudflap_2): ...new pass_data instance and...
20232 (make_pass_mudflap_2): ...new function.
20233 * tree-nomudflap.c (pass_mudflap_1): Convert from a global struct to a
20234 subclass of gimple_opt_pass along with...
20235 (pass_data_mudflap_1): ...new pass_data instance and...
20236 (make_pass_mudflap_1): ...new function.
20237 (pass_mudflap_2): Convert from a global struct to a subclass of
20238 gimple_opt_pass along with...
20239 (pass_data_mudflap_2): ...new pass_data instance and...
20240 (make_pass_mudflap_2): ...new function.
20241 * tree-nrv.c (pass_nrv): Convert from a global struct to a subclass of
20242 gimple_opt_pass along with...
20243 (pass_data_nrv): ...new pass_data instance and...
20244 (make_pass_nrv): ...new function.
20245 (pass_return_slot): Convert from a global struct to a subclass of
20246 gimple_opt_pass along with...
20247 (pass_data_return_slot): ...new pass_data instance and...
20248 (make_pass_return_slot): ...new function.
20249 * tree-object-size.c (pass_object_sizes): Convert from a global struct
20250 to a subclass of gimple_opt_pass along with...
20251 (pass_data_object_sizes): ...new pass_data instance and...
20252 (make_pass_object_sizes): ...new function.
20253 * tree-optimize.c (pass_cleanup_cfg_post_optimizing): Convert from a
20254 global struct to a subclass of gimple_opt_pass along with...
20255 (pass_data_cleanup_cfg_post_optimizing): ...new pass_data instance
20257 (make_pass_cleanup_cfg_post_optimizing): ...new function.
20258 (pass_fixup_cfg): Convert from a global struct to a subclass of
20259 gimple_opt_pass along with...
20260 (pass_data_fixup_cfg): ...new pass_data instance and...
20261 (make_pass_fixup_cfg): ...new function.
20262 * tree-pass.h (pass_mudflap_1): Replace declaration with that of...
20263 (make_pass_mudflap_1): ...new function.
20264 (pass_mudflap_2): Replace declaration with that of...
20265 (make_pass_mudflap_2): ...new function.
20266 (pass_asan): Replace declaration with that of...
20267 (make_pass_asan): ...new function.
20268 (pass_asan_O0): Replace declaration with that of...
20269 (make_pass_asan_O0): ...new function.
20270 (pass_tsan): Replace declaration with that of...
20271 (make_pass_tsan): ...new function.
20272 (pass_tsan_O0): Replace declaration with that of...
20273 (make_pass_tsan_O0): ...new function.
20274 (pass_lower_cf): Replace declaration with that of...
20275 (make_pass_lower_cf): ...new function.
20276 (pass_refactor_eh): Replace declaration with that of...
20277 (make_pass_refactor_eh): ...new function.
20278 (pass_lower_eh): Replace declaration with that of...
20279 (make_pass_lower_eh): ...new function.
20280 (pass_lower_eh_dispatch): Replace declaration with that of...
20281 (make_pass_lower_eh_dispatch): ...new function.
20282 (pass_lower_resx): Replace declaration with that of...
20283 (make_pass_lower_resx): ...new function.
20284 (pass_build_cfg): Replace declaration with that of...
20285 (make_pass_build_cfg): ...new function.
20286 (pass_early_tree_profile): Replace declaration with that of...
20287 (make_pass_early_tree_profile): ...new function.
20288 (pass_cleanup_eh): Replace declaration with that of...
20289 (make_pass_cleanup_eh): ...new function.
20290 (pass_sra): Replace declaration with that of...
20291 (make_pass_sra): ...new function.
20292 (pass_sra_early): Replace declaration with that of...
20293 (make_pass_sra_early): ...new function.
20294 (pass_early_ipa_sra): Replace declaration with that of...
20295 (make_pass_early_ipa_sra): ...new function.
20296 (pass_tail_recursion): Replace declaration with that of...
20297 (make_pass_tail_recursion): ...new function.
20298 (pass_tail_calls): Replace declaration with that of...
20299 (make_pass_tail_calls): ...new function.
20300 (pass_tree_loop): Replace declaration with that of...
20301 (make_pass_tree_loop): ...new function.
20302 (pass_tree_loop_init): Replace declaration with that of...
20303 (make_pass_tree_loop_init): ...new function.
20304 (pass_lim): Replace declaration with that of...
20305 (make_pass_lim): ...new function.
20306 (pass_tree_unswitch): Replace declaration with that of...
20307 (make_pass_tree_unswitch): ...new function.
20308 (pass_predcom): Replace declaration with that of...
20309 (make_pass_predcom): ...new function.
20310 (pass_iv_canon): Replace declaration with that of...
20311 (make_pass_iv_canon): ...new function.
20312 (pass_scev_cprop): Replace declaration with that of...
20313 (make_pass_scev_cprop): ...new function.
20314 (pass_empty_loop): Replace declaration with that of...
20315 (make_pass_empty_loop): ...new function.
20316 (pass_record_bounds): Replace declaration with that of...
20317 (make_pass_record_bounds): ...new function.
20318 (pass_graphite): Replace declaration with that of...
20319 (make_pass_graphite): ...new function.
20320 (pass_graphite_transforms): Replace declaration with that of...
20321 (make_pass_graphite_transforms): ...new function.
20322 (pass_if_conversion): Replace declaration with that of...
20323 (make_pass_if_conversion): ...new function.
20324 (pass_loop_distribution): Replace declaration with that of...
20325 (make_pass_loop_distribution): ...new function.
20326 (pass_vectorize): Replace declaration with that of...
20327 (make_pass_vectorize): ...new function.
20328 (pass_slp_vectorize): Replace declaration with that of...
20329 (make_pass_slp_vectorize): ...new function.
20330 (pass_complete_unroll): Replace declaration with that of...
20331 (make_pass_complete_unroll): ...new function.
20332 (pass_complete_unrolli): Replace declaration with that of...
20333 (make_pass_complete_unrolli): ...new function.
20334 (pass_parallelize_loops): Replace declaration with that of...
20335 (make_pass_parallelize_loops): ...new function.
20336 (pass_loop_prefetch): Replace declaration with that of...
20337 (make_pass_loop_prefetch): ...new function.
20338 (pass_iv_optimize): Replace declaration with that of...
20339 (make_pass_iv_optimize): ...new function.
20340 (pass_tree_loop_done): Replace declaration with that of...
20341 (make_pass_tree_loop_done): ...new function.
20342 (pass_ch): Replace declaration with that of...
20343 (make_pass_ch): ...new function.
20344 (pass_ccp): Replace declaration with that of...
20345 (make_pass_ccp): ...new function.
20346 (pass_phi_only_cprop): Replace declaration with that of...
20347 (make_pass_phi_only_cprop): ...new function.
20348 (pass_build_ssa): Replace declaration with that of...
20349 (make_pass_build_ssa): ...new function.
20350 (pass_build_alias): Replace declaration with that of...
20351 (make_pass_build_alias): ...new function.
20352 (pass_build_ealias): Replace declaration with that of...
20353 (make_pass_build_ealias): ...new function.
20354 (pass_dominator): Replace declaration with that of...
20355 (make_pass_dominator): ...new function.
20356 (pass_dce): Replace declaration with that of...
20357 (make_pass_dce): ...new function.
20358 (pass_dce_loop): Replace declaration with that of...
20359 (make_pass_dce_loop): ...new function.
20360 (pass_cd_dce): Replace declaration with that of...
20361 (make_pass_cd_dce): ...new function.
20362 (pass_call_cdce): Replace declaration with that of...
20363 (make_pass_call_cdce): ...new function.
20364 (pass_merge_phi): Replace declaration with that of...
20365 (make_pass_merge_phi): ...new function.
20366 (pass_split_crit_edges): Replace declaration with that of...
20367 (make_pass_split_crit_edges): ...new function.
20368 (pass_pre): Replace declaration with that of...
20369 (make_pass_pre): ...new function.
20370 (pass_profile): Replace declaration with that of...
20371 (make_pass_profile): ...new function.
20372 (pass_strip_predict_hints): Replace declaration with that of...
20373 (make_pass_strip_predict_hints): ...new function.
20374 (pass_lower_complex_O0): Replace declaration with that of...
20375 (make_pass_lower_complex_O0): ...new function.
20376 (pass_lower_complex): Replace declaration with that of...
20377 (make_pass_lower_complex): ...new function.
20378 (pass_lower_vector): Replace declaration with that of...
20379 (make_pass_lower_vector): ...new function.
20380 (pass_lower_vector_ssa): Replace declaration with that of...
20381 (make_pass_lower_vector_ssa): ...new function.
20382 (pass_lower_omp): Replace declaration with that of...
20383 (make_pass_lower_omp): ...new function.
20384 (pass_diagnose_omp_blocks): Replace declaration with that of...
20385 (make_pass_diagnose_omp_blocks): ...new function.
20386 (pass_expand_omp): Replace declaration with that of...
20387 (make_pass_expand_omp): ...new function.
20388 (pass_expand_omp_ssa): Replace declaration with that of...
20389 (make_pass_expand_omp_ssa): ...new function.
20390 (pass_object_sizes): Replace declaration with that of...
20391 (make_pass_object_sizes): ...new function.
20392 (pass_strlen): Replace declaration with that of...
20393 (make_pass_strlen): ...new function.
20394 (pass_fold_builtins): Replace declaration with that of...
20395 (make_pass_fold_builtins): ...new function.
20396 (pass_stdarg): Replace declaration with that of...
20397 (make_pass_stdarg): ...new function.
20398 (pass_early_warn_uninitialized): Replace declaration with that of...
20399 (make_pass_early_warn_uninitialized): ...new function.
20400 (pass_late_warn_uninitialized): Replace declaration with that of...
20401 (make_pass_late_warn_uninitialized): ...new function.
20402 (pass_cse_reciprocals): Replace declaration with that of...
20403 (make_pass_cse_reciprocals): ...new function.
20404 (pass_cse_sincos): Replace declaration with that of...
20405 (make_pass_cse_sincos): ...new function.
20406 (pass_optimize_bswap): Replace declaration with that of...
20407 (make_pass_optimize_bswap): ...new function.
20408 (pass_optimize_widening_mul): Replace declaration with that of...
20409 (make_pass_optimize_widening_mul): ...new function.
20410 (pass_warn_function_return): Replace declaration with that of...
20411 (make_pass_warn_function_return): ...new function.
20412 (pass_warn_function_noreturn): Replace declaration with that of...
20413 (make_pass_warn_function_noreturn): ...new function.
20414 (pass_cselim): Replace declaration with that of...
20415 (make_pass_cselim): ...new function.
20416 (pass_phiopt): Replace declaration with that of...
20417 (make_pass_phiopt): ...new function.
20418 (pass_forwprop): Replace declaration with that of...
20419 (make_pass_forwprop): ...new function.
20420 (pass_phiprop): Replace declaration with that of...
20421 (make_pass_phiprop): ...new function.
20422 (pass_tree_ifcombine): Replace declaration with that of...
20423 (make_pass_tree_ifcombine): ...new function.
20424 (pass_dse): Replace declaration with that of...
20425 (make_pass_dse): ...new function.
20426 (pass_nrv): Replace declaration with that of...
20427 (make_pass_nrv): ...new function.
20428 (pass_rename_ssa_copies): Replace declaration with that of...
20429 (make_pass_rename_ssa_copies): ...new function.
20430 (pass_sink_code): Replace declaration with that of...
20431 (make_pass_sink_code): ...new function.
20432 (pass_fre): Replace declaration with that of...
20433 (make_pass_fre): ...new function.
20434 (pass_check_data_deps): Replace declaration with that of...
20435 (make_pass_check_data_deps): ...new function.
20436 (pass_copy_prop): Replace declaration with that of...
20437 (make_pass_copy_prop): ...new function.
20438 (pass_vrp): Replace declaration with that of...
20439 (make_pass_vrp): ...new function.
20440 (pass_uncprop): Replace declaration with that of...
20441 (make_pass_uncprop): ...new function.
20442 (pass_return_slot): Replace declaration with that of...
20443 (make_pass_return_slot): ...new function.
20444 (pass_reassoc): Replace declaration with that of...
20445 (make_pass_reassoc): ...new function.
20446 (pass_rebuild_cgraph_edges): Replace declaration with that of...
20447 (make_pass_rebuild_cgraph_edges): ...new function.
20448 (pass_remove_cgraph_callee_edges): Replace declaration with that of...
20449 (make_pass_remove_cgraph_callee_edges): ...new function.
20450 (pass_build_cgraph_edges): Replace declaration with that of...
20451 (make_pass_build_cgraph_edges): ...new function.
20452 (pass_local_pure_const): Replace declaration with that of...
20453 (make_pass_local_pure_const): ...new function.
20454 (pass_tracer): Replace declaration with that of...
20455 (make_pass_tracer): ...new function.
20456 (pass_warn_unused_result): Replace declaration with that of...
20457 (make_pass_warn_unused_result): ...new function.
20458 (pass_diagnose_tm_blocks): Replace declaration with that of...
20459 (make_pass_diagnose_tm_blocks): ...new function.
20460 (pass_lower_tm): Replace declaration with that of...
20461 (make_pass_lower_tm): ...new function.
20462 (pass_tm_init): Replace declaration with that of...
20463 (make_pass_tm_init): ...new function.
20464 (pass_tm_mark): Replace declaration with that of...
20465 (make_pass_tm_mark): ...new function.
20466 (pass_tm_memopt): Replace declaration with that of...
20467 (make_pass_tm_memopt): ...new function.
20468 (pass_tm_edges): Replace declaration with that of...
20469 (make_pass_tm_edges): ...new function.
20470 (pass_split_functions): Replace declaration with that of...
20471 (make_pass_split_functions): ...new function.
20472 (pass_feedback_split_functions): Replace declaration with that of...
20473 (make_pass_feedback_split_functions): ...new function.
20474 (pass_strength_reduction): Replace declaration with that of...
20475 (make_pass_strength_reduction): ...new function.
20476 (pass_ipa_lower_emutls): Replace declaration with that of...
20477 (make_pass_ipa_lower_emutls): ...new function.
20478 (pass_ipa_function_and_variable_visibility): Replace declaration with
20480 (make_pass_ipa_function_and_variable_visibility): ...new function.
20481 (pass_ipa_tree_profile): Replace declaration with that of...
20482 (make_pass_ipa_tree_profile): ...new function.
20483 (pass_early_local_passes): Replace declaration with that of...
20484 (make_pass_early_local_passes): ...new function.
20485 (pass_ipa_whole_program_visibility): Replace declaration with that
20487 (make_pass_ipa_whole_program_visibility): ...new function.
20488 (pass_ipa_lto_gimple_out): Replace declaration with that of...
20489 (make_pass_ipa_lto_gimple_out): ...new function.
20490 (pass_ipa_increase_alignment): Replace declaration with that of...
20491 (make_pass_ipa_increase_alignment): ...new function.
20492 (pass_ipa_inline): Replace declaration with that of...
20493 (make_pass_ipa_inline): ...new function.
20494 (pass_ipa_free_lang_data): Replace declaration with that of...
20495 (make_pass_ipa_free_lang_data): ...new function.
20496 (pass_ipa_free_inline_summary): Replace declaration with that of...
20497 (make_pass_ipa_free_inline_summary): ...new function.
20498 (pass_ipa_cp): Replace declaration with that of...
20499 (make_pass_ipa_cp): ...new function.
20500 (pass_ipa_reference): Replace declaration with that of...
20501 (make_pass_ipa_reference): ...new function.
20502 (pass_ipa_pure_const): Replace declaration with that of...
20503 (make_pass_ipa_pure_const): ...new function.
20504 (pass_ipa_pta): Replace declaration with that of...
20505 (make_pass_ipa_pta): ...new function.
20506 (pass_ipa_lto_finish_out): Replace declaration with that of...
20507 (make_pass_ipa_lto_finish_out): ...new function.
20508 (pass_ipa_tm): Replace declaration with that of...
20509 (make_pass_ipa_tm): ...new function.
20510 (pass_ipa_profile): Replace declaration with that of...
20511 (make_pass_ipa_profile): ...new function.
20512 (pass_ipa_cdtor_merge): Replace declaration with that of...
20513 (make_pass_ipa_cdtor_merge): ...new function.
20514 (pass_cleanup_cfg_post_optimizing): Replace declaration with that
20516 (make_pass_cleanup_cfg_post_optimizing): ...new function.
20517 (pass_init_datastructures): Replace declaration with that of...
20518 (make_pass_init_datastructures): ...new function.
20519 (pass_fixup_cfg): Replace declaration with that of...
20520 (make_pass_fixup_cfg): ...new function.
20521 (pass_expand): Replace declaration with that of...
20522 (make_pass_expand): ...new function.
20523 (pass_instantiate_virtual_regs): Replace declaration with that of...
20524 (make_pass_instantiate_virtual_regs): ...new function.
20525 (pass_rtl_fwprop): Replace declaration with that of...
20526 (make_pass_rtl_fwprop): ...new function.
20527 (pass_rtl_fwprop_addr): Replace declaration with that of...
20528 (make_pass_rtl_fwprop_addr): ...new function.
20529 (pass_jump): Replace declaration with that of...
20530 (make_pass_jump): ...new function.
20531 (pass_jump2): Replace declaration with that of...
20532 (make_pass_jump2): ...new function.
20533 (pass_lower_subreg): Replace declaration with that of...
20534 (make_pass_lower_subreg): ...new function.
20535 (pass_cse): Replace declaration with that of...
20536 (make_pass_cse): ...new function.
20537 (pass_fast_rtl_dce): Replace declaration with that of...
20538 (make_pass_fast_rtl_dce): ...new function.
20539 (pass_ud_rtl_dce): Replace declaration with that of...
20540 (make_pass_ud_rtl_dce): ...new function.
20541 (pass_rtl_dce): Replace declaration with that of...
20542 (make_pass_rtl_dce): ...new function.
20543 (pass_rtl_dse1): Replace declaration with that of...
20544 (make_pass_rtl_dse1): ...new function.
20545 (pass_rtl_dse2): Replace declaration with that of...
20546 (make_pass_rtl_dse2): ...new function.
20547 (pass_rtl_dse3): Replace declaration with that of...
20548 (make_pass_rtl_dse3): ...new function.
20549 (pass_rtl_cprop): Replace declaration with that of...
20550 (make_pass_rtl_cprop): ...new function.
20551 (pass_rtl_pre): Replace declaration with that of...
20552 (make_pass_rtl_pre): ...new function.
20553 (pass_rtl_hoist): Replace declaration with that of...
20554 (make_pass_rtl_hoist): ...new function.
20555 (pass_rtl_store_motion): Replace declaration with that of...
20556 (make_pass_rtl_store_motion): ...new function.
20557 (pass_cse_after_global_opts): Replace declaration with that of...
20558 (make_pass_cse_after_global_opts): ...new function.
20559 (pass_rtl_ifcvt): Replace declaration with that of...
20560 (make_pass_rtl_ifcvt): ...new function.
20561 (pass_into_cfg_layout_mode): Replace declaration with that of...
20562 (make_pass_into_cfg_layout_mode): ...new function.
20563 (pass_outof_cfg_layout_mode): Replace declaration with that of...
20564 (make_pass_outof_cfg_layout_mode): ...new function.
20565 (pass_loop2): Replace declaration with that of...
20566 (make_pass_loop2): ...new function.
20567 (pass_rtl_loop_init): Replace declaration with that of...
20568 (make_pass_rtl_loop_init): ...new function.
20569 (pass_rtl_move_loop_invariants): Replace declaration with that of...
20570 (make_pass_rtl_move_loop_invariants): ...new function.
20571 (pass_rtl_unswitch): Replace declaration with that of...
20572 (make_pass_rtl_unswitch): ...new function.
20573 (pass_rtl_unroll_and_peel_loops): Replace declaration with that of...
20574 (make_pass_rtl_unroll_and_peel_loops): ...new function.
20575 (pass_rtl_doloop): Replace declaration with that of...
20576 (make_pass_rtl_doloop): ...new function.
20577 (pass_rtl_loop_done): Replace declaration with that of...
20578 (make_pass_rtl_loop_done): ...new function.
20579 (pass_web): Replace declaration with that of...
20580 (make_pass_web): ...new function.
20581 (pass_cse2): Replace declaration with that of...
20582 (make_pass_cse2): ...new function.
20583 (pass_df_initialize_opt): Replace declaration with that of...
20584 (make_pass_df_initialize_opt): ...new function.
20585 (pass_df_initialize_no_opt): Replace declaration with that of...
20586 (make_pass_df_initialize_no_opt): ...new function.
20587 (pass_reginfo_init): Replace declaration with that of...
20588 (make_pass_reginfo_init): ...new function.
20589 (pass_inc_dec): Replace declaration with that of...
20590 (make_pass_inc_dec): ...new function.
20591 (pass_stack_ptr_mod): Replace declaration with that of...
20592 (make_pass_stack_ptr_mod): ...new function.
20593 (pass_initialize_regs): Replace declaration with that of...
20594 (make_pass_initialize_regs): ...new function.
20595 (pass_combine): Replace declaration with that of...
20596 (make_pass_combine): ...new function.
20597 (pass_if_after_combine): Replace declaration with that of...
20598 (make_pass_if_after_combine): ...new function.
20599 (pass_ree): Replace declaration with that of...
20600 (make_pass_ree): ...new function.
20601 (pass_partition_blocks): Replace declaration with that of...
20602 (make_pass_partition_blocks): ...new function.
20603 (pass_match_asm_constraints): Replace declaration with that of...
20604 (make_pass_match_asm_constraints): ...new function.
20605 (pass_regmove): Replace declaration with that of...
20606 (make_pass_regmove): ...new function.
20607 (pass_split_all_insns): Replace declaration with that of...
20608 (make_pass_split_all_insns): ...new function.
20609 (pass_fast_rtl_byte_dce): Replace declaration with that of...
20610 (make_pass_fast_rtl_byte_dce): ...new function.
20611 (pass_lower_subreg2): Replace declaration with that of...
20612 (make_pass_lower_subreg2): ...new function.
20613 (pass_mode_switching): Replace declaration with that of...
20614 (make_pass_mode_switching): ...new function.
20615 (pass_sms): Replace declaration with that of...
20616 (make_pass_sms): ...new function.
20617 (pass_sched): Replace declaration with that of...
20618 (make_pass_sched): ...new function.
20619 (pass_ira): Replace declaration with that of...
20620 (make_pass_ira): ...new function.
20621 (pass_reload): Replace declaration with that of...
20622 (make_pass_reload): ...new function.
20623 (pass_clean_state): Replace declaration with that of...
20624 (make_pass_clean_state): ...new function.
20625 (pass_branch_prob): Replace declaration with that of...
20626 (make_pass_branch_prob): ...new function.
20627 (pass_value_profile_transformations): Replace declaration with that
20629 (make_pass_value_profile_transformations): ...new function.
20630 (pass_postreload_cse): Replace declaration with that of...
20631 (make_pass_postreload_cse): ...new function.
20632 (pass_gcse2): Replace declaration with that of...
20633 (make_pass_gcse2): ...new function.
20634 (pass_split_after_reload): Replace declaration with that of...
20635 (make_pass_split_after_reload): ...new function.
20636 (pass_branch_target_load_optimize1): Replace declaration with that
20638 (make_pass_branch_target_load_optimize1): ...new function.
20639 (pass_thread_prologue_and_epilogue): Replace declaration with that
20641 (make_pass_thread_prologue_and_epilogue): ...new function.
20642 (pass_stack_adjustments): Replace declaration with that of...
20643 (make_pass_stack_adjustments): ...new function.
20644 (pass_peephole2): Replace declaration with that of...
20645 (make_pass_peephole2): ...new function.
20646 (pass_if_after_reload): Replace declaration with that of...
20647 (make_pass_if_after_reload): ...new function.
20648 (pass_regrename): Replace declaration with that of...
20649 (make_pass_regrename): ...new function.
20650 (pass_cprop_hardreg): Replace declaration with that of...
20651 (make_pass_cprop_hardreg): ...new function.
20652 (pass_reorder_blocks): Replace declaration with that of...
20653 (make_pass_reorder_blocks): ...new function.
20654 (pass_branch_target_load_optimize2): Replace declaration with that
20656 (make_pass_branch_target_load_optimize2): ...new function.
20657 (pass_leaf_regs): Replace declaration with that of...
20658 (make_pass_leaf_regs): ...new function.
20659 (pass_split_before_sched2): Replace declaration with that of...
20660 (make_pass_split_before_sched2): ...new function.
20661 (pass_compare_elim_after_reload): Replace declaration with that of...
20662 (make_pass_compare_elim_after_reload): ...new function.
20663 (pass_sched2): Replace declaration with that of...
20664 (make_pass_sched2): ...new function.
20665 (pass_stack_regs): Replace declaration with that of...
20666 (make_pass_stack_regs): ...new function.
20667 (pass_stack_regs_run): Replace declaration with that of...
20668 (make_pass_stack_regs_run): ...new function.
20669 (pass_df_finish): Replace declaration with that of...
20670 (make_pass_df_finish): ...new function.
20671 (pass_compute_alignments): Replace declaration with that of...
20672 (make_pass_compute_alignments): ...new function.
20673 (pass_duplicate_computed_gotos): Replace declaration with that of...
20674 (make_pass_duplicate_computed_gotos): ...new function.
20675 (pass_variable_tracking): Replace declaration with that of...
20676 (make_pass_variable_tracking): ...new function.
20677 (pass_free_cfg): Replace declaration with that of...
20678 (make_pass_free_cfg): ...new function.
20679 (pass_machine_reorg): Replace declaration with that of...
20680 (make_pass_machine_reorg): ...new function.
20681 (pass_cleanup_barriers): Replace declaration with that of...
20682 (make_pass_cleanup_barriers): ...new function.
20683 (pass_delay_slots): Replace declaration with that of...
20684 (make_pass_delay_slots): ...new function.
20685 (pass_split_for_shorten_branches): Replace declaration with that of...
20686 (make_pass_split_for_shorten_branches): ...new function.
20687 (pass_split_before_regstack): Replace declaration with that of...
20688 (make_pass_split_before_regstack): ...new function.
20689 (pass_convert_to_eh_region_ranges): Replace declaration with that
20691 (make_pass_convert_to_eh_region_ranges): ...new function.
20692 (pass_shorten_branches): Replace declaration with that of...
20693 (make_pass_shorten_branches): ...new function.
20694 (pass_set_nothrow_function_flags): Replace declaration with that of...
20695 (make_pass_set_nothrow_function_flags): ...new function.
20696 (pass_dwarf2_frame): Replace declaration with that of...
20697 (make_pass_dwarf2_frame): ...new function.
20698 (pass_final): Replace declaration with that of...
20699 (make_pass_final): ...new function.
20700 (pass_rtl_seqabstr): Replace declaration with that of...
20701 (make_pass_rtl_seqabstr): ...new function.
20702 (pass_release_ssa_names): Replace declaration with that of...
20703 (make_pass_release_ssa_names): ...new function.
20704 (pass_early_inline): Replace declaration with that of...
20705 (make_pass_early_inline): ...new function.
20706 (pass_inline_parameters): Replace declaration with that of...
20707 (make_pass_inline_parameters): ...new function.
20708 (pass_update_address_taken): Replace declaration with that of...
20709 (make_pass_update_address_taken): ...new function.
20710 (pass_convert_switch): Replace declaration with that of...
20711 (make_pass_convert_switch): ...new function.
20712 * tree-profile.c (pass_ipa_tree_profile): Convert from a global struct
20713 to a subclass of simple_ipa_opt_pass along with...
20714 (pass_data_ipa_tree_profile): ...new pass_data instance and...
20715 (make_pass_ipa_tree_profile): ...new function.
20716 * tree-sra.c (pass_sra_early): Convert from a global struct to a
20717 subclass of gimple_opt_pass along with...
20718 (pass_data_sra_early): ...new pass_data instance and...
20719 (make_pass_sra_early): ...new function.
20720 (pass_sra): Convert from a global struct to a subclass of
20721 gimple_opt_pass along with...
20722 (pass_data_sra): ...new pass_data instance and...
20723 (make_pass_sra): ...new function.
20724 (pass_early_ipa_sra): Convert from a global struct to a subclass of
20725 gimple_opt_pass along with...
20726 (pass_data_early_ipa_sra): ...new pass_data instance and...
20727 (make_pass_early_ipa_sra): ...new function.
20728 * tree-ssa-ccp.c (pass_ccp): Convert from a global struct to a
20729 subclass of gimple_opt_pass along with...
20730 (pass_data_ccp): ...new pass_data instance and...
20731 (make_pass_ccp): ...new function.
20732 (pass_fold_builtins): Convert from a global struct to a subclass of
20733 gimple_opt_pass along with...
20734 (pass_data_fold_builtins): ...new pass_data instance and...
20735 (make_pass_fold_builtins): ...new function.
20736 * tree-ssa-copy.c (pass_copy_prop): Convert from a global struct to a
20737 subclass of gimple_opt_pass along with...
20738 (pass_data_copy_prop): ...new pass_data instance and...
20739 (make_pass_copy_prop): ...new function.
20740 * tree-ssa-copyrename.c (pass_rename_ssa_copies): Convert from a
20741 global struct to a subclass of gimple_opt_pass along with...
20742 (pass_data_rename_ssa_copies): ...new pass_data instance and...
20743 (make_pass_rename_ssa_copies): ...new function.
20744 * tree-ssa-dce.c (pass_dce): Convert from a global struct to a
20745 subclass of gimple_opt_pass along with...
20746 (pass_data_dce): ...new pass_data instance and...
20747 (make_pass_dce): ...new function.
20748 (pass_dce_loop): Convert from a global struct to a subclass of
20749 gimple_opt_pass along with...
20750 (pass_data_dce_loop): ...new pass_data instance and...
20751 (make_pass_dce_loop): ...new function.
20752 (pass_cd_dce): Convert from a global struct to a subclass of
20753 gimple_opt_pass along with...
20754 (pass_data_cd_dce): ...new pass_data instance and...
20755 (make_pass_cd_dce): ...new function.
20756 * tree-ssa-dom.c (pass_dominator): Convert from a global struct to a
20757 subclass of gimple_opt_pass along with...
20758 (pass_data_dominator): ...new pass_data instance and...
20759 (make_pass_dominator): ...new function.
20760 (pass_phi_only_cprop): Convert from a global struct to a subclass of
20761 gimple_opt_pass along with...
20762 (pass_data_phi_only_cprop): ...new pass_data instance and...
20763 (make_pass_phi_only_cprop): ...new function.
20764 * tree-ssa-dse.c (pass_dse): Convert from a global struct to a
20765 subclass of gimple_opt_pass along with...
20766 (pass_data_dse): ...new pass_data instance and...
20767 (make_pass_dse): ...new function.
20768 * tree-ssa-forwprop.c (pass_forwprop): Convert from a global struct to
20769 a subclass of gimple_opt_pass along with...
20770 (pass_data_forwprop): ...new pass_data instance and...
20771 (make_pass_forwprop): ...new function.
20772 * tree-ssa-ifcombine.c (pass_tree_ifcombine): Convert from a global
20773 struct to a subclass of gimple_opt_pass along with...
20774 (pass_data_tree_ifcombine): ...new pass_data instance and...
20775 (make_pass_tree_ifcombine): ...new function.
20776 * tree-ssa-loop-ch.c (pass_ch): Convert from a global struct to a
20777 subclass of gimple_opt_pass along with...
20778 (pass_data_ch): ...new pass_data instance and...
20779 (make_pass_ch): ...new function.
20780 * tree-ssa-loop.c (pass_tree_loop): Convert from a global struct to a
20781 subclass of gimple_opt_pass along with...
20782 (pass_data_tree_loop): ...new pass_data instance and...
20783 (make_pass_tree_loop): ...new function.
20784 (pass_tree_loop_init): Convert from a global struct to a subclass of
20785 gimple_opt_pass along with...
20786 (pass_data_tree_loop_init): ...new pass_data instance and...
20787 (make_pass_tree_loop_init): ...new function.
20788 (pass_lim): Convert from a global struct to a subclass of
20789 gimple_opt_pass along with...
20790 (pass_data_lim): ...new pass_data instance and...
20791 (make_pass_lim): ...new function.
20792 (pass_tree_unswitch): Convert from a global struct to a subclass of
20793 gimple_opt_pass along with...
20794 (pass_data_tree_unswitch): ...new pass_data instance and...
20795 (make_pass_tree_unswitch): ...new function.
20796 (pass_predcom): Convert from a global struct to a subclass of
20797 gimple_opt_pass along with...
20798 (pass_data_predcom): ...new pass_data instance and...
20799 (make_pass_predcom): ...new function.
20800 (pass_vectorize): Convert from a global struct to a subclass of
20801 gimple_opt_pass along with...
20802 (pass_data_vectorize): ...new pass_data instance and...
20803 (make_pass_vectorize): ...new function.
20804 (pass_graphite): Convert from a global struct to a subclass of
20805 gimple_opt_pass along with...
20806 (pass_data_graphite): ...new pass_data instance and...
20807 (make_pass_graphite): ...new function.
20808 (pass_graphite_transforms): Convert from a global struct to a subclass
20809 of gimple_opt_pass along with...
20810 (pass_data_graphite_transforms): ...new pass_data instance and...
20811 (make_pass_graphite_transforms): ...new function.
20812 (pass_check_data_deps): Convert from a global struct to a subclass of
20813 gimple_opt_pass along with...
20814 (pass_data_check_data_deps): ...new pass_data instance and...
20815 (make_pass_check_data_deps): ...new function.
20816 (pass_iv_canon): Convert from a global struct to a subclass of
20817 gimple_opt_pass along with...
20818 (pass_data_iv_canon): ...new pass_data instance and...
20819 (make_pass_iv_canon): ...new function.
20820 (pass_scev_cprop): Convert from a global struct to a subclass of
20821 gimple_opt_pass along with...
20822 (pass_data_scev_cprop): ...new pass_data instance and...
20823 (make_pass_scev_cprop): ...new function.
20824 (pass_record_bounds): Convert from a global struct to a subclass of
20825 gimple_opt_pass along with...
20826 (pass_data_record_bounds): ...new pass_data instance and...
20827 (make_pass_record_bounds): ...new function.
20828 (pass_complete_unroll): Convert from a global struct to a subclass of
20829 gimple_opt_pass along with...
20830 (pass_data_complete_unroll): ...new pass_data instance and...
20831 (make_pass_complete_unroll): ...new function.
20832 (pass_complete_unrolli): Convert from a global struct to a subclass of
20833 gimple_opt_pass along with...
20834 (pass_data_complete_unrolli): ...new pass_data instance and...
20835 (make_pass_complete_unrolli): ...new function.
20836 (pass_parallelize_loops): Convert from a global struct to a subclass
20837 of gimple_opt_pass along with...
20838 (pass_data_parallelize_loops): ...new pass_data instance and...
20839 (make_pass_parallelize_loops): ...new function.
20840 (pass_loop_prefetch): Convert from a global struct to a subclass of
20841 gimple_opt_pass along with...
20842 (pass_data_loop_prefetch): ...new pass_data instance and...
20843 (make_pass_loop_prefetch): ...new function.
20844 (pass_iv_optimize): Convert from a global struct to a subclass of
20845 gimple_opt_pass along with...
20846 (pass_data_iv_optimize): ...new pass_data instance and...
20847 (make_pass_iv_optimize): ...new function.
20848 (pass_tree_loop_done): Convert from a global struct to a subclass of
20849 gimple_opt_pass along with...
20850 (pass_data_tree_loop_done): ...new pass_data instance and...
20851 (make_pass_tree_loop_done): ...new function.
20852 * tree-ssa-math-opts.c (pass_cse_reciprocals): Convert from a global
20853 struct to a subclass of gimple_opt_pass along with...
20854 (pass_data_cse_reciprocals): ...new pass_data instance and...
20855 (make_pass_cse_reciprocals): ...new function.
20856 (pass_cse_sincos): Convert from a global struct to a subclass of
20857 gimple_opt_pass along with...
20858 (pass_data_cse_sincos): ...new pass_data instance and...
20859 (make_pass_cse_sincos): ...new function.
20860 (pass_optimize_bswap): Convert from a global struct to a subclass of
20861 gimple_opt_pass along with...
20862 (pass_data_optimize_bswap): ...new pass_data instance and...
20863 (make_pass_optimize_bswap): ...new function.
20864 (pass_optimize_widening_mul): Convert from a global struct to a
20865 subclass of gimple_opt_pass along with...
20866 (pass_data_optimize_widening_mul): ...new pass_data instance and...
20867 (make_pass_optimize_widening_mul): ...new function.
20868 * tree-ssa-phiopt.c (pass_phiopt): Convert from a global struct to a
20869 subclass of gimple_opt_pass along with...
20870 (pass_data_phiopt): ...new pass_data instance and...
20871 (make_pass_phiopt): ...new function.
20872 (pass_cselim): Convert from a global struct to a subclass of
20873 gimple_opt_pass along with...
20874 (pass_data_cselim): ...new pass_data instance and...
20875 (make_pass_cselim): ...new function.
20876 * tree-ssa-phiprop.c (pass_phiprop): Convert from a global struct to a
20877 subclass of gimple_opt_pass along with...
20878 (pass_data_phiprop): ...new pass_data instance and...
20879 (make_pass_phiprop): ...new function.
20880 * tree-ssa-pre.c (pass_pre): Convert from a global struct to a
20881 subclass of gimple_opt_pass along with...
20882 (pass_data_pre): ...new pass_data instance and...
20883 (make_pass_pre): ...new function.
20884 (pass_fre): Convert from a global struct to a subclass of
20885 gimple_opt_pass along with...
20886 (pass_data_fre): ...new pass_data instance and...
20887 (make_pass_fre): ...new function.
20888 * tree-ssa-reassoc.c (pass_reassoc): Convert from a global struct to a
20889 subclass of gimple_opt_pass along with...
20890 (pass_data_reassoc): ...new pass_data instance and...
20891 (make_pass_reassoc): ...new function.
20892 * tree-ssa-sink.c (pass_sink_code): Convert from a global struct to a
20893 subclass of gimple_opt_pass along with...
20894 (pass_data_sink_code): ...new pass_data instance and...
20895 (make_pass_sink_code): ...new function.
20896 * tree-ssa-strlen.c (pass_strlen): Convert from a global struct to a
20897 subclass of gimple_opt_pass along with...
20898 (pass_data_strlen): ...new pass_data instance and...
20899 (make_pass_strlen): ...new function.
20900 * tree-ssa-structalias.c (pass_build_alias): Convert from a global
20901 struct to a subclass of gimple_opt_pass along with...
20902 (pass_data_build_alias): ...new pass_data instance and...
20903 (make_pass_build_alias): ...new function.
20904 (pass_build_ealias): Convert from a global struct to a subclass of
20905 gimple_opt_pass along with...
20906 (pass_data_build_ealias): ...new pass_data instance and...
20907 (make_pass_build_ealias): ...new function.
20908 (pass_ipa_pta): Convert from a global struct to a subclass of
20909 simple_ipa_opt_pass along with...
20910 (pass_data_ipa_pta): ...new pass_data instance and...
20911 (make_pass_ipa_pta): ...new function.
20912 * tree-ssa-uncprop.c (pass_uncprop): Convert from a global struct to a
20913 subclass of gimple_opt_pass along with...
20914 (pass_data_uncprop): ...new pass_data instance and...
20915 (make_pass_uncprop): ...new function.
20916 * tree-ssa-uninit.c (pass_late_warn_uninitialized): Convert from a
20917 global struct to a subclass of gimple_opt_pass along with...
20918 (pass_data_late_warn_uninitialized): ...new pass_data instance and...
20919 (make_pass_late_warn_uninitialized): ...new function.
20920 * tree-ssa.c (pass_init_datastructures): Convert from a global struct
20921 to a subclass of gimple_opt_pass along with...
20922 (pass_data_init_datastructures): ...new pass_data instance and...
20923 (make_pass_init_datastructures): ...new function.
20924 (pass_early_warn_uninitialized): Convert from a global struct to a
20925 subclass of gimple_opt_pass along with...
20926 (pass_data_early_warn_uninitialized): ...new pass_data instance and...
20927 (make_pass_early_warn_uninitialized): ...new function.
20928 (pass_update_address_taken): Convert from a global struct to a
20929 subclass of gimple_opt_pass along with...
20930 (pass_data_update_address_taken): ...new pass_data instance and...
20931 (make_pass_update_address_taken): ...new function.
20932 * tree-ssanames.c (pass_release_ssa_names): Convert from a global
20933 struct to a subclass of gimple_opt_pass along with...
20934 (pass_data_release_ssa_names): ...new pass_data instance and...
20935 (make_pass_release_ssa_names): ...new function.
20936 * tree-stdarg.c (pass_stdarg): Convert from a global struct to a
20937 subclass of gimple_opt_pass along with...
20938 (pass_data_stdarg): ...new pass_data instance and...
20939 (make_pass_stdarg): ...new function.
20940 * tree-switch-conversion.c (pass_convert_switch): Convert from a
20941 global struct to a subclass of gimple_opt_pass along with...
20942 (pass_data_convert_switch): ...new pass_data instance and...
20943 (make_pass_convert_switch): ...new function.
20944 * tree-tailcall.c (pass_tail_recursion): Convert from a global struct
20945 to a subclass of gimple_opt_pass along with...
20946 (pass_data_tail_recursion): ...new pass_data instance and...
20947 (make_pass_tail_recursion): ...new function.
20948 (pass_tail_calls): Convert from a global struct to a subclass of
20949 gimple_opt_pass along with...
20950 (pass_data_tail_calls): ...new pass_data instance and...
20951 (make_pass_tail_calls): ...new function.
20952 * tree-vect-generic.c (pass_lower_vector): Convert from a global
20953 struct to a subclass of gimple_opt_pass along with...
20954 (pass_data_lower_vector): ...new pass_data instance and...
20955 (make_pass_lower_vector): ...new function.
20956 (pass_lower_vector_ssa): Convert from a global struct to a subclass of
20957 gimple_opt_pass along with...
20958 (pass_data_lower_vector_ssa): ...new pass_data instance and...
20959 (make_pass_lower_vector_ssa): ...new function.
20960 * tree-vectorizer.c (pass_slp_vectorize): Convert from a global struct
20961 to a subclass of gimple_opt_pass along with...
20962 (pass_data_slp_vectorize): ...new pass_data instance and...
20963 (make_pass_slp_vectorize): ...new function.
20964 (pass_ipa_increase_alignment): Convert from a global struct to a
20965 subclass of simple_ipa_opt_pass along with...
20966 (pass_data_ipa_increase_alignment): ...new pass_data instance and...
20967 (make_pass_ipa_increase_alignment): ...new function.
20968 * tree-vrp.c (pass_vrp): Convert from a global struct to a subclass of
20969 gimple_opt_pass along with...
20970 (pass_data_vrp): ...new pass_data instance and...
20971 (make_pass_vrp): ...new function.
20972 * tree.c (pass_ipa_free_lang_data): Convert from a global struct to a
20973 subclass of simple_ipa_opt_pass along with...
20974 (pass_data_ipa_free_lang_data): ...new pass_data instance and...
20975 (make_pass_ipa_free_lang_data): ...new function.
20976 * tsan.c (pass_tsan): Convert from a global struct to a subclass of
20977 gimple_opt_pass along with...
20978 (pass_data_tsan): ...new pass_data instance and...
20979 (make_pass_tsan): ...new function.
20980 (pass_tsan_O0): Convert from a global struct to a subclass of
20981 gimple_opt_pass along with...
20982 (pass_data_tsan_O0): ...new pass_data instance and...
20983 (make_pass_tsan_O0): ...new function.
20984 * var-tracking.c (pass_variable_tracking): Convert from a global
20985 struct to a subclass of rtl_opt_pass along with...
20986 (pass_data_variable_tracking): ...new pass_data instance and...
20987 (make_pass_variable_tracking): ...new function.
20988 * web.c (pass_web): Convert from a global struct to a subclass of
20989 rtl_opt_pass along with...
20990 (pass_data_web): ...new pass_data instance and...
20991 (make_pass_web): ...new function.
20992 * config/epiphany/epiphany.h (pass_mode_switch_use): Replace
20993 declaration with that of...
20994 (make_pass_mode_switch_use): ...new function.
20995 (pass_resolve_sw_modes): Replace declaration with that of...
20996 (make_pass_resolve_sw_modes): ...new function.
20997 * config/epiphany/mode-switch-use.c (pass_mode_switch_use): Convert
20998 from a global struct to a subclass of rtl_opt_pass along with...
20999 (pass_data_mode_switch_use): ...new pass_data instance and...
21000 (make_pass_mode_switch_use): ...new function.
21001 * config/epiphany/resolve-sw-modes.c (pass_resolve_sw_modes): Convert
21002 from a global struct to a subclass of rtl_opt_pass along with...
21003 (pass_data_resolve_sw_modes): ...new pass_data instance and...
21004 (make_pass_resolve_sw_modes): ...new function.
21005 * config/i386/i386.c (pass_insert_vzeroupper): Convert from a global
21006 struct to a subclass of rtl_opt_pass along with...
21007 (pass_data_insert_vzeroupper): ...new pass_data instance and...
21008 (make_pass_insert_vzeroupper): ...new function.
21009 * config/sparc/sparc.c (pass_work_around_errata): Convert from a
21010 global struct to a subclass of rtl_opt_pass along with...
21011 (pass_data_work_around_errata): ...new pass_data instance and...
21012 (make_pass_work_around_errata): ...new function.
21013 * config/mips/mips.c (pass_mips_machine_reorg2): Convert from a global
21014 struct to a subclass of rtl_opt_pass along with...
21015 (pass_data_mips_machine_reorg2): ...new pass_data instance and...
21016 (make_pass_mips_machine_reorg2): ...new function.
21018 2013-08-05 David Malcolm <dmalcolm@redhat.com>
21020 * passes.c (pass_manager::operator new): New.
21022 2013-08-05 David Malcolm <dmalcolm@redhat.com>
21024 Handwritten part of conversion of passes to C++ classes.
21026 * Makefile.in (PASS_MANAGER_H): Add dep on pass-instances.def.
21027 (toplev.o): Add dep on PASS_MANAGER_H.
21028 * cgraphunit.c (cgraph_process_new_functions): Rework invocation
21029 of early local pases to reflect this moving from a global to a
21030 member of gcc::pass_manager.
21031 (cgraph_add_new_function): Likewise.
21032 * lto-cgraph.c (lto_output_node): Update for conversion of
21033 struct ipa_opt_pass_d to a C++ subclass of opt_pass.
21034 * passes.c (opt_pass::clone): New.
21035 (opt_pass::gate): New.
21036 (opt_pass::execute): New.
21037 (opt_pass::opt_pass): New.
21038 (pass_manager::execute_early_local_passes): New.
21039 (pass_manager::execute_pass_mode_switching): new.
21040 (finish_optimization_passes): Convert to...
21041 (pass_manager::finish_optimization_passes): ...this.
21042 (finish_optimization_passes): Update for conversion of passes to
21044 (register_dump_files_1): Use has_gate since we cannot portably
21045 check a vtable entry against NULL.
21046 (dump_one_pass): Likewise.
21047 (ipa_write_summaries_2): Likewise.
21048 (ipa_write_optimization_summaries_1): Likewise.
21049 (ipa_read_summaries_1): Likewise.
21050 (ipa_read_optimization_summaries_1): Likewise.
21051 (execute_ipa_stmt_fixups): Likewise.
21052 (pass_manager::pass_manager): Rewrite pass-creation, invoking
21053 pass-creation functions rather than wiring up globals, and
21054 storing the results in fields of pass_manager generated using
21055 pass-instances.def.
21056 (pass_manager::dump_profile_report): Update for conversion of
21057 passes to C++ classes.
21058 (pass_manager::execute_ipa_summary_passes): Likewise.
21059 (execute_one_ipa_transform_pass): Likewise.
21060 (execute_one_pass): Use has_gate and has_execute since we cannot
21061 portably check a vtable entry against NULL.
21062 * pass_manager.h (pass_manager::finish_optimization_passes): New.
21063 (pass_manager): Use pass-instances.def to add fields for the
21064 various pass instances.
21065 * toplev.c (finalize): Update for move of
21066 finish_optimization_passes to a method of gcc::pass_manager.
21067 * toplev.h (finish_optimization_passes): Move to method of class
21069 * tree-pass.h (struct pass_data): New.
21070 (opt_pass): Convert to C++ class, make it a subclass of pass_data.
21071 (opt_pass::gate): Convert to virtual function.
21072 (opt_pass::~opt_pass): New.
21073 (opt_pass::clone): New.
21074 (opt_pass::execute): Convert to virtual function.
21075 (opt_pass::opt_pass): New.
21076 (opt_pass::ctxt_): new.
21077 (gimple_opt_pass): Convert to subclass of opt_pass.
21078 (gimple_opt_pass::gimple_opt_pass): New.
21079 (rtl_opt_pass): Convert to subclass of opt_pass.
21080 (rtl_opt_pass::rtl_opt_pass): New.
21081 (ipa_opt_pass_d): Convert to subclass of opt_pass.
21082 (ipa_opt_pass_d::ipa_opt_pass_d): New.
21083 (simple_ipa_opt_pass): Convert to subclass of opt_pass.
21084 (simple_ipa_opt_pass::simple_ipa_opt_pass): New.
21085 * config/i386/i386.c (rest_of_handle_insert_vzeroupper): Rework
21086 invocation of pass_mode_switching to reflect this moving from a
21087 global to a member of gcc::pass_manager.
21088 (ix86_option_override): Rework how pass_insert_vzeroupper is
21089 added to the pass_manager to reflect autogenerated changes.
21090 * config/i386/t-i386 (i386.o) Add deps on CONTEXT_H and PASS_MANAGER_H.
21092 2013-08-05 Richard Earnshaw <rearnsha@arm.com>
21094 PR rtl-optimization/57708
21095 * recog.c (peep2_find_free_register): Validate all regs in a
21098 2013-08-05 Jan Hubicka <jh@suse.cz>
21101 * cgraph.c (verify_cgraph_node): Accept local flags from other
21103 * ipa.c (symtab_remove_unreachable_nodes): Do not clear local flag.
21104 (function_and_variable_visibility): Likewise.
21105 * trans-mem.c (ipa_tm_create_version): TM versions are not local.
21107 2013-08-05 Gabriel Dos Reis <gdr@integrable-solutions.net>
21109 * graph.c (init_graph_slim_pretty_print): Remove.
21110 (print_graph_cfg): Do not call it. Use local pretty printer.
21111 (start_graph_dump): Likewise.
21113 2013-08-05 Gabriel Dos Reis <gdr@integrable-solutions.net>
21115 * gimple-pretty-print.c (buffer): Remove.
21116 (initialized): Likewise.
21117 (maybe_init_pretty_print): Likewise.
21118 (print_gimple_stmt): Do not call it. Use non-static local
21119 pretty_printer variable.
21120 (print_gimple_expr): Likewise.
21121 (print_gimple_seq): Likewise.
21122 (gimple_dump_bb): Likewise.
21124 2013-08-05 Gabriel Dos Reis <gdr@integrable-solutions.net>
21126 * asan.c (asan_pp): Remove.
21127 (asan_pp_initialized): Likewise.
21128 (asan_pp_initialize): Likewise.
21129 (asan_pp_string): Take a pretty_printer parameter. Adjust callers.
21130 (asan_emit_stack_protection): Tidy. Use local pretty printer.
21131 (asan_add_global): Likewise.
21133 2013-08-04 Gabriel Dos Reis <gdr@integrable-solutions.net>
21135 * pretty-print.h (pp_base): Remove. Adjust dependent macros.
21136 * diagnostic.h (diagnostic_flush_buffer): Adjust.
21137 * pretty-print.c (pp_formatted_text_data): Likewise.
21138 (pp_indent): Rename from pp_base_indent.
21139 (pp_format): Rename from pp_base_format.
21140 (pp_output_formatted_text): Rename from pp_base_output_formatted_text.
21141 (pp_format_verbatim): Rename from pp_base_format_verbatim.
21142 (pp_flush): Rename from pp_base_flush.
21143 (pp_set_line_maximum_length): Rename from
21144 pp_base_set_line_maximum_length.
21145 (pp_clear_output_area): Rename from pp_base_clear_output_area.
21146 (pp_set_prefix): Rename from pp_base_set_prefix.
21147 (pp_destroy_prefix): Rename from pp_base_destroy_prefix.
21148 (pp_emit_prefix): Rename from pp_base_emit_prefix.
21149 (pp_append_text): Rename from pp_base_append_text.
21150 (pp_formatted_text): Rename from pp_base_formatted_text.
21151 (pp_last_position_in_text): Rename from pp_base_last_position_in_text.
21152 (pp_remaining_character_count_for_line): Rename from
21153 pp_base_remaining_character_count_for_line.
21154 (pp_newline): Rename from pp_base_newline.
21155 (pp_character): Rename from pp_base_character.
21156 (pp_string): Rename from pp_base_string.
21157 (pp_maybe_space): Rename from pp_base_maybe_space.
21158 * asan.c (asan_pp_string): Adjust.
21159 (asan_emit_stack_protection): Likewise.
21160 (asan_add_global): Likewise.
21161 * sched-vis.c (str_pattern_slim): Adjust pretty printer function call.
21162 * tree-mudflap.c (mf_varname_tree): Likewise.
21163 * tree-pretty-print.c (pp_tree_identifier): Rename from
21164 pp_base_tree_identifier.
21165 * tree-pretty-print.h (pp_tree_identifier): Remove macro definition.
21166 Declare as function.
21168 2013-08-03 Gabriel Dos Reis <gdr@integrable-solutions.net>
21170 * pretty-print.h (pp_bar_bar): New.
21171 (pp_ampersand_ampersand): Likewise.
21172 (pp_less_equal): Likewise.
21173 (pp_greater_equal): Likewise.
21174 * gimple-pretty-print.c (dump_ternary_rhs): Use specialized pretty
21175 printer functions instead of pp_string or operators and punctuators.
21176 (dump_gimple_call): Likewise.
21177 (dump_gimple_omp_for): Likewise.
21178 (dump_gimple_transaction): Likewise.
21179 (dump_gimple_phi): Likewise.
21180 (pp_gimple_stmt_1): Likewise.
21181 * sched-vis.c (print_insn): Likewise.
21182 * tree-mudflap.c (mf_varname_tree): Likewise.
21183 * tree-pretty-print.c (dump_block_node): Likewise.
21184 (dump_generic_node): Likewise.
21186 2013-08-02 Jan Hubicka <jh@suse.cz>
21188 * lto-cgraph.c (compute_ltrans_boundary): Add abstract origins into
21190 * lto-streamer-out.c (tree_is_indexable): Results decls and
21191 parm decls are not indexable.
21192 (DFS_write_tree_body): Do not follow args and results.
21193 (hash_tree): Likewise.
21194 (output_functions): Rearrange so struct function is needed
21195 only when real body is output; be able to also ouptut abstract
21196 functions; output DECL_ARGUMENTS and DECL_RESULT.
21197 (lto_output): When not in WPA, ale store abstract functions.
21198 (write_symbol): Do not care about RESULT_DECL.
21199 (output_symbol_p): Handle correctly sbtract decls.
21200 * lto-streamer-in.c (input_function): Rearrange so struct
21201 function can be NULL at entry; allow streaming of
21202 functions w/o body; store DECL_ARGUMENTS and DECL_RESULT.
21203 * ipa.c (symtab_remove_unreachable_nodes): Silence confused
21204 sanity check during LTO.
21205 * tree-streamer-out.c (write_ts_decl_non_common_tree_pointers): Skip
21206 RESULT_DECl and DECL_ARGUMENTS.
21207 * tree-streamer-in.c (lto_input_ts_decl_non_common_tree_pointers):
21210 2013-08-03 Gabriel Dos Reis <gdr@integrable-solutions.net>
21212 * pretty-print.h (pp_underscore): New.
21214 * gimple-pretty-print.c (dump_unary_rhs): Use specialized pretty
21215 printer functions instead of pp_character.
21216 (dump_binary_rhs): Likewise.
21217 (dump_ternary_rhs): Likewise.
21218 (dump_gimple_call_args): Likewise.
21219 (pp_points_to_solution): Likewise.
21220 (dump_gimple_call): Likewise.
21221 (dump_gimple_switch): Likewise.
21222 (dump_gimple_cond): Likewise.
21223 (dump_gimple_bind): Likewise.
21224 (dump_gimple_try): Likewise.
21225 (dump_gimple_omp_for): Likewise.
21226 (dump_gimple_omp_continue): Likewise.
21227 (dump_gimple_omp_single): Likewise.
21228 (dump_gimple_omp_sections): Likewise.
21229 (dump_gimple_omp_block): Likewise.
21230 (dump_gimple_omp_critical): Likewise.
21231 (dump_gimple_transaction): Likewise.
21232 (dump_gimple_asm): Likewise.
21233 (dump_gimple_phi): Likewise.
21234 (dump_gimple_omp_parallel): Likewise.
21235 (dump_gimple_omp_task): Likewise.
21236 (dump_gimple_omp_atomic_load): Likewise.
21237 (dump_gimple_omp_atomic_store): Likewise.
21238 (dump_gimple_mem_ops): Likewise.
21239 (pp_gimple_stmt_1): Likewise.
21240 (pp_cfg_jump): Likewise.
21241 (dump_implicit_edges): Likewise.
21242 (gimple_dump_bb_for_graph): Likewise.
21243 * graph.c (draw_cfg_node): Likewise.
21244 * langhooks.c (lhd_print_error_function): Likewise.
21245 * sched-vis.c (print_exp): Likewise.
21246 (print_value): Likewise.
21247 (print_pattern): Likewise.
21248 (print_insn): Likewise.
21249 (rtl_dump_bb_for_graph): Likewise.
21250 * tree-pretty-print.c (dump_function_declaration): Likewise.
21251 (dump_array_domain): Likewise.
21252 (dump_omp_clause): Likewise.
21253 (dump_location): Likewise.
21254 (dump_generic_node): Likewise.
21255 (print_struct_decl): Likewise.
21256 * diagnostic.c (diagnostic_show_locus): Use pp_space.
21258 2013-08-03 Bill Schmidt <wschmidt@vnet.linux.ibm.com>
21260 * gimple-ssa-strength-reduction.c (replace_mult_candidate): Update
21261 candidate table when replacing a candidate statement.
21262 (replace_rhs_if_not_dup): Likewise.
21263 (replace_one_candidate): Likewise.
21265 2013-08-02 Jan Hubicka <jh@suse.cz>
21266 Martin Liska <marxin.liska@gmail.com>
21268 * cgraphunit.c (add_new_function): Fix logic when adding from
21270 (assemble_thunk): Rename to ...
21271 (expand_thunk); .. this one; export; get it working with
21272 general functions; make produced gimple valid.
21273 * cgraph.h (expand_thunk): Declare.
21275 2013-08-02 Jan Hubicka <jh@suse.cz>
21277 * ipa-cp.c (gather_context_independent_values): Use
21278 ipa_get_param_move_cost.
21279 (get_replacement_map): Remove PARAM; move parameter folding
21281 (create_specialized_node): Update.
21282 * ipa-prop.c (ipa_populate_param_decls): Do not look for origins;
21283 assert that we have gimple body; update move_cost.
21284 (count_formal_params): Assert that we have gimple body.
21285 (ipa_dump_param): New function.
21286 (ipa_alloc_node_params): Break out from ...
21287 (ipa_initialize_node_params): ... here.
21288 (ipa_get_vector_of_formal_parms): ICE when used in WPA.
21289 (ipa_write_node_info): Stream move costs.
21290 (ipa_read_node_info): Read move costs.
21291 (ipa_update_after_lto_read): Do not recompute node params.
21292 * ipa-prop.h (ipa_param_descriptor): Add move_cost.
21293 (ipa_get_param): Check we are not in WPA.
21294 (ipa_get_param_move_cost): New.
21295 * tree-inline.c (tree_function_versioning): Fold replacement as needed.
21296 * ipa-inline-analysis.c (inline_node_duplication_hook): Expect only
21297 parm numbers to be present.
21299 2013-08-02 Vladimir Makarov <vmakarov@redhat.com>
21301 PR rtl-optimization/58048
21302 * lra-constraints.c (process_alt_operands): Don't check asm
21303 operand on register.
21305 2013-08-02 Eric Botcazou <ebotcazou@adacore.com>
21307 * config/sparc/sparc.c (sparc_emit_membar_for_model) <SMM_TSO>: Add
21308 the implied StoreLoad barrier for atomic operations if before.
21310 2013-08-02 Jan Hubicka <jh@suse.cz>
21311 Martin Liska <marxin.liska@gmail.com>
21313 * cgraph.c (cgraph_function_body_availability): Do not check
21315 * cgraph.h (symtab_for_node_and_aliases, symtab_nonoverwritable_alias,
21316 symtab_node_availability): Declare.
21317 * ipa.c (can_replace_by_local_alias): New.
21318 (function_and_variable_visibility): Use it.
21319 * symtab.c (symtab_for_node_and_aliases,
21320 symtab_nonoverwritable_alias_1, symtab_nonoverwritable_alias): New.
21322 2013-08-02 Vladimir Makarov <vmakarov@redhat.com>
21324 PR rtl-optimization/57963
21325 * lra-constraints.c (reverse_equiv_p, contains_reloaded_insn_p): New.
21326 (lra_constraints): Use them.
21328 2013-08-02 Sofiane Naci <sofiane.naci@arm.com>
21330 * config/arm/types.md (define_attr "type"): Add "load_acq"
21332 * config/arm/cortex-a53.md (cortex_a53_load1): Update for attribute
21334 (cortex_a53_store1): Likewise.
21336 2013-08-01 Jan Hubicka <jh@suse.cz>
21338 * ipa.c (symtab_remove_unreachable_nodes): Nodes in other
21339 partitions are not needed.
21341 2013-08-01 Uros Bizjak <ubizjak@gmail.com>
21343 * config/i386/i386.h (MAYBE_NON_Q_CLASS_P): New.
21344 * config/i386/i386.c (ix86_secondary_reload): Use INTEGER_CLASS_P and
21345 MAYBE_NON_Q_CLASS_P where appropriate.
21347 2013-08-01 Jan Hubicka <jh@suse.cz>
21349 * cgraph.h (release_function_body): Declare.
21350 * tree.c (free_lang_data_in_decl): Free, parameters and return values
21351 of unused delcarations.
21353 2013-08-01 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
21355 * config/arm/arm.md (minmax_arithsi_non_canon): Emit canonical
21356 RTL form when subtracting a constant.
21358 2013-08-01 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
21360 * config/arm/arm.md (peepholes for eq (reg1) (reg2/imm)):
21361 Generate canonical plus rtx with negated immediate instead of minus
21363 * config/arm/arm.c (thumb2_reorg): Handle ADCS <Rd>, <Rn> case.
21365 2013-08-01 Jan Hubicka <jh@suse.cz>
21367 * cgraph.c (cgraph_release_function_body): Use used_as_abstract_origin.
21368 (cgraph_release_function_body): Likewise.
21369 (cgraph_can_remove_if_no_direct_calls_p): Likewise.
21370 * cgraph.h (cgrpah_node): Rename abstract_and_needed
21371 to used_as_abstract_origin.
21372 * tree-inline-transfrom.c (can_remove_node_now_p_1): Do not remove
21373 symbols used as abstract origins.
21374 * cgraphunit.c (analyze_functions): Update.
21375 * ipa.c (symtab_remove_unreachable_nodes): Recompute
21376 used_as_abstract_origin.
21377 * tree-inline.c (tree_function_versioning): Update
21378 used_as_abstract_origin; be ready for DECL_RESULT and
21379 DECL_ARGUMENTS to be NULL.
21381 * lto-symtab.c (lto_symtab_merge_symbols): Merge duplicated nodes
21382 for abstract functions.
21383 * cgraph.h (symtab_real_symbol_p): Abstract declarations are not
21386 2013-08-01 Jan Hubicka <jh@suse.cz>
21388 * profile.c (compute_value_histograms): Fix thinko.
21390 2013-08-01 Sofiane Naci <sofiane.naci@arm.com>
21392 * config.gcc (aarch64*-*-*): Add aarch-common.o to extra_objs. Add
21393 aarch-common-protos.h to extra_headers.
21394 (aarch64*-*-*): Add arm/aarch-common-protos.h to tm_p_file.
21395 * config/aarch64/aarch64.md: Include "../arm/cortex-a53.md".
21396 * config/aarch64/t-aarch64 (aarch-common.o): Define.
21398 2013-08-01 Sofiane Naci <sofiane.naci@arm.com>
21400 * config/aarch64/aarch64.md (define_attr "type"): Delete.
21401 Include "../arm/types.md". Define "type" attribute for all patterns.
21402 * config/aarch64/aarch64-simd.md (move_lo_quad_<mode>): Update for
21405 2013-07-31 Michael Meissner <meissner@linux.vnet.ibm.com>
21407 * config/rs6000/predicates.md (fusion_gpr_addis): New predicates
21408 to support power8 load fusion.
21409 (fusion_gpr_mem_load): Likewise.
21411 * config/rs6000/rs6000-modes.def (PTImode): Update a comment.
21413 * config/rs6000/rs6000-protos.h (fusion_gpr_load_p): New
21414 declarations for power8 load fusion.
21415 (emit_fusion_gpr_load): Likewise.
21417 * config/rs6000/rs6000.c (rs6000_option_override_internal): If
21418 tuning for power8, turn on fusion mode by default. Turn on sign
21419 extending fusion mode if normal fusion mode is on, and we are at
21421 (fusion_gpr_load_p): New function, return true if we can fuse an
21422 addis instruction with a dependent load to a GPR.
21423 (emit_fusion_gpr_load): Emit the instructions for power8 load
21426 * config/rs6000/vsx.md (VSX_M2): New iterator for fusion peepholes.
21427 (VSX load fusion peepholes): New peepholes to fuse together an
21428 addi instruction with a VSX load instruction.
21430 * config/rs6000/rs6000.md (GPR load fusion peepholes): New
21431 peepholes to fuse an addis instruction with a load to a GPR base
21432 register. If we are supporting sign extending fusions, convert
21433 sign extending loads to zero extending loads and add an explicit
21436 2013-07-31 Sofiane Naci <sofiane.naci@arm.com>
21438 * config.gcc (arm*-*-*): Add aarch-common.o to extra_objs. Add
21439 aarch-common-protos.h to extra_headers.
21440 (arm*-*-*): Add arm/aarch-common-protos.h to tm_p_file.
21441 * config/arm/arm.c (arm_early_load_addr_dep): Move from here to ...
21442 (arm_early_store_addr_dep): Likewise.
21443 (arm_no_early_alu_shift_dep): Likewise.
21444 (arm_no_early_alu_shift_value_dep): Likewise.
21445 (arm_no_early_mul_dep): Likewise.
21446 (arm_no_early_store_addr_dep): Likewise.
21447 (arm_mac_accumulator_is_mul_result): Likewise.
21448 (arm_mac_accumulator_is_result): Likewise.
21449 * config/arm/aarch-common.c: ... here. New file.
21450 * config/arm/arm-protos.h (arm_early_load_addr_dep): Move from
21452 (arm_early_store_addr_dep): Likewise.
21453 (arm_no_early_alu_shift_dep): Likewise.
21454 (arm_no_early_alu_shift_value_dep): Likewise.
21455 (arm_no_early_mul_dep): Likewise.
21456 (arm_no_early_store_addr_dep): Likewise.
21457 (arm_mac_accumulator_is_mul_result): Likewise.
21458 (arm_mac_accumulator_is_result): Likewise.
21459 * config/arm/aarch-common-protos.h: ... here. New file.
21460 * config/arm/t-arm (aarch-common.o): Define.
21462 2013-07-31 Sofiane Naci <sofiane.naci@arm.com>
21464 * config/arm/arm.md: Include new file "types.md".
21465 (define_attr "type"): Move from here to ...
21466 (define_attr "mul32"): Likewise.
21467 (define_attr "mul64"): Likewise.
21468 * config/arm/types.md: ... here. New file.
21470 2013-07-31 Sebastian Huber <sebastian.huber@embedded-brains.de>
21472 * config.gcc (*-*-rtems*): Use __cxa_atexit by default.
21473 * config/rs6000/rtems.h (TARGET_LIBGCC_SDATA_SECTION): Define.
21475 2013-07-31 Jan-Benedict Glaw <jbglaw@lug-owl.de>
21477 * gen-pass-instances.awk: Fix offset of substr().
21479 2013-07-31 David Malcolm <dmalcolm@redhat.com>
21481 * Makefile.in (pass-instances.def): New.
21482 (passes.o): Replace dependency on passes.def with one on
21485 * gen-pass-instances.awk: New.
21487 * passes.c (pass_manager::pass_manager): Use pass-instances.def
21488 rather than passes.def, updating local definition of NEXT_PASS
21489 macro to add an extra NUM parameter (currently unused).
21491 2013-07-30 David Malcolm <dmalcolm@redhat.com>
21493 * Makefile.in (PASS_MANAGER_H): New.
21494 (lto-cgraph.o): Depend on CONTEXT_H and PASS_MANAGER_H.
21495 (passes.o): Likewise.
21496 (statistics.o): Likewise.
21497 (cgraphunit.o): Likewise.
21498 (context.o): Depend on PASS_MANAGER_H.
21500 * pass_manager.h: New.
21502 * cgraphunit.c (cgraph_add_new_function): Update for moves
21503 of globals to fields of pass_manager.
21504 (analyze_function): Likewise.
21505 (expand_function): Likewise.
21506 (ipa_passes): Likewise.
21507 (compile): Likewise.
21509 * context.c (context::context): New.
21510 * context.h (context::context): New.
21511 (context::get_passes): New.
21512 (context::passes_): New.
21514 * lto-cgraph.c (input_node): Update for moves of globals to
21515 fields of pass_manager.
21517 * passes.c (all_passes): Remove, in favor of a field of the
21518 same name within the new class pass_manager.
21519 (all_small_ipa_passes): Likewise.
21520 (all_lowering_passes): Likewise.
21521 (all_regular_ipa_passes): Likewise.
21522 (all_late_ipa_passes): Likewise.
21523 (all_lto_gen_passes): Likewise.
21524 (passes_by_id): Likewise.
21525 (passes_by_id_size): Likewise.
21526 (gcc_pass_lists): Remove, in favor of "pass_lists" field within
21527 the new class pass_manager.
21528 (set_pass_for_id): Convert to...
21529 (pass_manager::set_pass_for_id): ...method.
21530 (get_pass_for_id): Convert to...
21531 (pass_manager::get_pass_for_id): ...method.
21532 (register_one_dump_file): Move body of implementation into...
21533 (pass_manager::register_one_dump_file): ...here.
21534 (register_dump_files_1): Convert to...
21535 (pass_manager::register_dump_files_1): ...method.
21536 (register_dump_files): Convert to...
21537 (pass_manager::register_dump_files): ...method.
21538 (create_pass_tab): Update for moves of globals to fields of
21540 (dump_passes): Move body of implementation into...
21541 (pass_manager::dump_passes): ...here.
21542 (register_pass): Move body of implementation into...
21543 (pass_manager::register_pass): ...here.
21544 (init_optimization_passes): Convert into...
21545 (pass_manager::pass_manager): ...constructor for new
21546 pass_manager class, and initialize the pass_lists array.
21547 (check_profile_consistency): Update for moves of globals to
21548 fields of pass_manager.
21549 (dump_profile_report): Move body of implementation into...
21550 (pass_manager::dump_profile_report): ...here.
21551 (ipa_write_summaries_1): Update for moves of pass lists from
21552 being globals to fields of pass_manager.
21553 (ipa_write_optimization_summaries): Likewise.
21554 (ipa_read_summaries): Likewise.
21555 (ipa_read_optimization_summaries): Likewise.
21556 (execute_all_ipa_stmt_fixups): Likewise.
21558 * statistics.c (statistics_fini): Update for moves of globals to
21559 fields of pass_manager.
21561 * toplev.c (general_init): Replace call to
21562 init_optimization_passes with construction of the pass_manager
21565 * tree-pass.h (all_passes): Remove, in favor of a field of the
21566 same name within the new class pass_manager.
21567 (all_small_ipa_passes): Likewise.
21568 (all_lowering_passes): Likewise.
21569 (all_regular_ipa_passes): Likewise.
21570 (all_lto_gen_passes): Likewise.
21571 (all_late_ipa_passes): Likewise.
21572 (passes_by_id): Likewise.
21573 (passes_by_id_size): Likewise.
21574 (gcc_pass_lists): Remove, in favor of "pass_lists" field within
21575 the new class pass_manager.
21576 (get_pass_for_id): Remove.
21578 2013-07-30 Richard Earnshaw <rearnsha@arm.com>
21580 * config.gcc (arm): Require 64-bit host-wide-int for all ARM target
21583 2013-07-30 Richard Earnshaw <rearnsha@arm.com>
21585 * arm.md (mulhi3): New expand pattern.
21587 2013-07-30 Jan Hubicka <jh@suse.cz>
21588 Martin Liska <marxin.liska@gmail.com>
21590 * profile.c (compute_value_histograms): Do not ICE when
21591 there is mismatch only on some counters.
21593 2013-07-30 Zhenqiang Chen <zhenqiang.chen@linaro.org>
21595 PR rtl-optimization/57637
21596 * function.c (move_insn_for_shrink_wrap): Also check the
21597 GEN set of the LIVE problem for the liveness analysis
21598 if it exists, otherwise give up.
21600 2013-07-29 Bill Schmidt <wschmidt@vnet.linux.ibm.com>
21602 PR tree-optimization/57993
21603 * gimple-ssa-strength-reduction.c (replace_mult_candidate): Record
21604 replaced statement in the candidate table.
21605 (phi_add_costs): Return infinite cost when the hidden basis does
21606 not dominate all phis on which the candidate is dependent.
21607 (replace_one_candidate): Record replaced statement in the
21610 2013-07-29 Joern Rennecke <joern.rennecke@embecosm.com>
21612 * config/epiphany/epiphany.md (*isub_i+2): New peephole.
21613 (ashlv2si3): New expander.
21614 (*ashlv2si3_i): New define_insn_and_split.
21615 * predicates.md (float_operation): Allow patterns with three
21616 basic sub-patterns.
21618 PR rtl-optimization/58021
21619 * mode-switching.c (create_pre_exit): Always split off preceding
21620 insns if we are not at the basic block head.
21622 2013-07-29 Maciej W. Rozycki <macro@codesourcery.com>
21624 * config/mips/linux.h (GLIBC_DYNAMIC_LINKER): Handle `-mnan=2008'.
21625 (UCLIBC_DYNAMIC_LINKER): New macro.
21626 * config/mips/linux64.h (GLIBC_DYNAMIC_LINKER32): Handle
21628 (GLIBC_DYNAMIC_LINKER64, GLIBC_DYNAMIC_LINKERN32): Likewise.
21629 (UCLIBC_DYNAMIC_LINKER32): Undefine macro first. Handle
21631 (UCLIBC_DYNAMIC_LINKER64): Redefine macro.
21632 (UCLIBC_DYNAMIC_LINKERN32): Likewise.
21633 * config/mips/mips-modes.def: Remove RESET_FLOAT_FORMAT calls
21634 for SF and DF modes. Use ieee_quad_format for TF mode.
21635 * config/mips/mips-opts.h (mips_ieee_754_setting): New enum.
21636 * config/mips/mips.c (mips_file_start): Output a `.nan' directive.
21637 (mips_option_override): Handle `-mnan=legacy'.
21638 * config/mips/mips.h (TARGET_CPU_CPP_BUILTINS): Handle
21639 `-mabs=2008' and `-mnan=2008'.
21640 (OPTION_DEFAULT_SPECS): Add "nan" default.
21641 (ASM_SPEC): Handle `-mnan='.
21642 [!HAVE_AS_NAN] (HAVE_AS_NAN): New macro.
21643 * config/mips/mips.md (abs<mode>2): Handle `-mabs=2008', update
21644 comment accordingly.
21645 (neg<mode>2): Likewise.
21646 * config/mips/mips.opt (mabs, mnan): New options.
21647 * doc/install.texi (Configuration): Document `--with-nan=' option.
21648 * doc/invoke.texi (Option Summary): List MIPS `-mabs=' and
21650 (MIPS Options): Document them.
21651 * config.gcc <mips*-*-*>: Handle `--with-nan='.
21652 * configure.ac <mips*-*-*>: Check for GAS `-mnan=2008' support.
21653 * configure: Regenerate.
21654 * config.in: Regenerate.
21656 2013-07-29 Uros Bizjak <ubizjak@gmail.com>
21658 * config/i386/i386.md (float post-reload splitters): Do not check
21659 for subregs of SSE registers.
21661 2013-07-29 Uros Bizjak <ubizjak@gmail.com>
21662 H.J. Lu <hongjiu.lu@intel.com>
21666 * config/i386/i386.md (post-reload splitter
21667 to avoid partial SSE reg dependency stalls): New pattern.
21669 2013-07-29 Dominik Vogt <vogt@linux.vnet.ibm.com>
21671 * config/s390/s390.md ("movcc"): Swap load and store instructions.
21673 2013-07-27 Joern Rennecke <joern.rennecke@embecosm.com>
21675 * config/epiphany/epiphany.c (epiphany_compute_frame_size):
21676 Also reserve space for saving UNKNOWN_REGNUM for leaf functions.
21678 2013-07-26 Cary Coutant <ccoutant@google.com>
21680 * dwarf2out.c (die_checksum_ordered): Don't include template
21681 instantiations in signature.
21682 (is_template_parameter): New function.
21683 (is_template_instantiation): New function.
21684 (generate_skeleton_bottom_up): Don't include template instantiations
21686 (generate_skeleton): Likewise.
21687 (break_out_comdat_types): Move recursive call to break out nested
21689 (prune_unused_types_mark_generic_parms_dies): Call
21690 is_template_parameter.
21692 2013-07-26 Ian Bolton <ian.bolton@arm.com>
21694 * config/aarch64/aarch64.md (neg<mode>2): Offer alternative that
21695 uses vector registers.
21696 * config/aarch64/iterators.md: Add attributes rtn and vas.
21698 2013-07-26 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
21699 Richard Earnshaw <richard.earnshaw@arm.com>
21701 * combine.c (simplify_comparison): Re-canonicalize operands
21703 * config/arm/arm.md (movcond_addsi): New splitter.
21705 2013-07-25 Sterling Augustine <saugustine@google.com>
21707 * dwarf2out.c (size_of_pubnames): Move code to...
21708 (include_pubname_in_output): ...here. New.
21709 (want_pubnames): Rearrange.
21710 (output_pubnames): Call include_pubname_in_output. Move assertion.
21712 2013-07-25 Cameron McInally <cameron.mcinally@nyu.edu>
21714 * doc/extend.texi: Fix return types for __builtin_ia32_cmp*s builtins.
21716 2013-07-25 Cameron McInally <cameron.mcinally@nyu.edu>
21719 * doc/extend.texi: Remove obsolete builtins. Fix
21720 typo for __builtin_ia32_loadss and __builtin_ia32_cmpnltss.
21722 2013-07-25 Jan Hubicka <jh@suse.cz>
21724 * cgraph.c (release_function_body): Break out from ...
21725 (cgraph_release_function_body): ... this one; also release DECL_RESULT
21726 and DECL_ARGUMENTS.
21727 * ipa-cp.c (get_replacement_map): Add parm_num argument; do not set
21728 old_tree in the map.
21729 (create_specialized_node): Update.
21730 * lto-cgraph.c (output_node_opt_summary): Do not translate old_tree
21732 * cgraphclones.c (cgraph_create_virtual_clone): Do not copy
21733 DECL_ARGUMENTS, DECL_INITIAL and DECL_RESULT.
21734 * ipa-prop.c (ipa_populate_param_decls): Look for origin of clones.
21735 * tree-inline.c (initialize_cfun): Initialize DECL_ARGUMENTS and
21738 2013-07-25 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
21740 * config/arm/arm.md (arm_addsi3, addsi3_carryin_<optab>,
21741 addsi3_carryin_alt2_<optab>): Correct output template.
21743 2013-07-25 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
21745 * config/arm/arm-fixed.md (ssmulsa3, usmulusa3):
21746 Adjust for arm_restrict_it.
21747 Remove trailing whitespace.
21749 2013-07-25  Mark Kettenis  <kettenis@openbsd.org>
21751 * config/pa/pa.c (pa_trampoline_init): Emit __enable_execute_stack
21752 libcall if HAVE_ENABLE_EXECUTE_STACK is defined.
21754 * config.gcc (hppa-*-openbsd*): Don't set tmake_file.
21756 2013-07-25 Vladimir Makarov <vmakarov@redhat.com>
21758 PR rtl-optimization/57960
21759 * lra-constraints.c (process_alt_operands): Use the right mode
21760 when checking strict_low.
21762 2013-07-25 Jan Hubicka <jh@suse.cz>
21764 * lto-symtab.c (lto_cgraph_replace_node): Release function body.
21765 * cgraph.c (cgraph_remove_node): Do not release function body
21766 when in cgraph streaming.
21767 * ipa.c (process_references, symtab_remove_unreachable_nodes): Objects
21768 in other partitions are not considered reachable; fix handling of
21771 2013-07-25 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
21773 * config/arm/arm.md (*sibcall_insn): Remove unnecessary space.
21775 2013-07-25 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
21780 * config/arm/arm.md ("*sibcall_insn): Replace use of
21781 Ss with US. Adjust output for v5 and v4t.
21782 (*sibcall_value_insn): Likewise and loosen predicate on operand0.
21784 * config/arm/constraints.md ("Ss"): Rename to US.
21786 2013-07-25 Terry Guo <terry.guo@arm.com>
21788 * config/arm/arm.c (thumb1_size_rtx_costs): Assign proper cost for
21789 shift_add/shift_sub0/shift_sub1 RTXs.
21791 2013-07-24 Bill Schmidt <wschmidt@linux.ibm.com>
21792 Anton Blanchard <anton@au1.ibm.com>
21794 * config/rs6000/altivec.md (altivec_vpkpx): Handle little endian.
21795 (altivec_vpks<VI_char>ss): Likewise.
21796 (altivec_vpks<VI_char>us): Likewise.
21797 (altivec_vpku<VI_char>us): Likewise.
21798 (altivec_vpku<VI_char>um): Likewise.
21800 2013-07-24 David Malcolm <dmalcolm@redhat.com>
21802 Introduce context class.
21804 * Makefile.in (CONTEXT_H): New.
21805 (OBJS): Add context.o.
21806 (toplev.o): Add CONTEXT_H to dependencies.
21809 * toplev.c (general_init): Create the singleton gcc::context instance.
21815 2013-07-24 Joern Rennecke <joern.rennecke@embecosm.com>
21817 PR rtl-optimization/57968
21818 * mode-switching.c (create_pre_exit): Allow instructions that
21819 don't set a return register to need a non-exit mode.
21821 2013-07-24 Bill Schmidt <wschmidt@vnet.linux.ibm.com>
21822 Anton Blanchard <anton@au1.ibm.com>
21824 * config/rs6000/vector.md (vec_realign_load_<mode>): Reorder input
21825 operands to vperm for little endian.
21826 * config/rs6000/rs6000.c (rs6000_expand_builtin): Use lvsr instead
21827 of lvsl to create the control mask for a vperm for little endian.
21829 2013-07-23 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
21830 Anton Blanchard <anton@au1.ibm.com>
21832 * config/rs6000/rs6000.c (altivec_expand_vec_perm_const): Reverse
21833 two operands for little-endian.
21835 2013-07-23 Steve Ellcey <sellcey@mips.com>
21837 * config/mips/mips.c (mips_case_values_threshold): New.
21838 (TARGET_CASE_VALUES_THRESHOLD): Define.
21840 2013-07-23 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
21841 Anton Blanchard <anton@au1.ibm.com>
21843 * config/rs6000/rs6000.c (altivec_expand_vec_perm_const): Correct
21844 selection of field for vector splat in little endian mode.
21846 2013-07-23 Michael Meissner <meissner@linux.vnet.ibm.com>
21848 * config/rs6000/vector.md (xor<mode>3): Move 128-bit boolean
21849 expanders to rs6000.md.
21850 (ior<mode>3): Likewise.
21851 (and<mode>3): Likewise.
21852 (one_cmpl<mode>2): Likewise.
21853 (nor<mode>3): Likewise.
21854 (andc<mode>3): Likewise.
21855 (eqv<mode>3): Likewise.
21856 (nand<mode>3): Likewise.
21857 (orc<mode>3): Likewise.
21859 * config/rs6000/rs6000-protos.h (rs6000_split_logical): New
21862 * config/rs6000/rs6000.c (rs6000_split_logical_inner): Add support
21863 to split multi-word logical operations.
21864 (rs6000_split_logical_di): Likewise.
21865 (rs6000_split_logical): Likewise.
21867 * config/rs6000/vsx.md (VSX_L2): Delete, no longer used.
21868 (vsx_and<mode>3_32bit): Move 128-bit logical insns to rs6000.md,
21869 and allow TImode operations in 32-bit.
21870 (vsx_and<mode>3_64bit): Likewise.
21871 (vsx_ior<mode>3_32bit): Likewise.
21872 (vsx_ior<mode>3_64bit): Likewise.
21873 (vsx_xor<mode>3_32bit): Likewise.
21874 (vsx_xor<mode>3_64bit): Likewise.
21875 (vsx_one_cmpl<mode>2_32bit): Likewise.
21876 (vsx_one_cmpl<mode>2_64bit): Likewise.
21877 (vsx_nor<mode>3_32bit): Likewise.
21878 (vsx_nor<mode>3_64bit): Likewise.
21879 (vsx_andc<mode>3_32bit): Likewise.
21880 (vsx_andc<mode>3_64bit): Likewise.
21881 (vsx_eqv<mode>3_32bit): Likewise.
21882 (vsx_eqv<mode>3_64bit): Likewise.
21883 (vsx_nand<mode>3_32bit): Likewise.
21884 (vsx_nand<mode>3_64bit): Likewise.
21885 (vsx_orc<mode>3_32bit): Likewise.
21886 (vsx_orc<mode>3_64bit): Likewise.
21888 * config/rs6000/rs6000.h (VLOGICAL_REGNO_P): Always allow vector
21889 logical types in GPRs.
21891 * config/rs6000/altivec.md (altivec_and<mode>3): Move 128-bit
21892 logical insns to rs6000.md, and allow TImode operations in
21894 (altivec_ior<mode>3): Likewise.
21895 (altivec_xor<mode>3): Likewise.
21896 (altivec_one_cmpl<mode>2): Likewise.
21897 (altivec_nor<mode>3): Likewise.
21898 (altivec_andc<mode>3): Likewise.
21900 * config/rs6000/rs6000.md (BOOL_128): New mode iterators and mode
21901 attributes for moving the 128-bit logical operations into
21903 (BOOL_REGS_OUTPUT): Likewise.
21904 (BOOL_REGS_OP1): Likewise.
21905 (BOOL_REGS_OP2): Likewise.
21906 (BOOL_REGS_UNARY): Likewise.
21907 (BOOL_REGS_AND_CR0): Likewise.
21908 (one_cmpl<mode>2): Add support for DI logical operations on
21909 32-bit, splitting the operations to 32-bit.
21910 (anddi3): Likewise.
21911 (iordi3): Likewise.
21912 (xordi3): Likewise.
21913 (and<mode>3, 128-bit types): Rewrite 2013-06-06 logical operator
21914 changes to combine the 32/64-bit code, allow logical operations on
21915 TI mode in 32-bit, and to use similar match_operator patterns like
21916 scalar mode uses. Combine the Altivec and VSX code for logical
21917 operations, and move it here.
21918 (ior<mode>3, 128-bit types): Likewise.
21919 (xor<mode>3, 128-bit types): Likewise.
21920 (one_cmpl<mode>3, 128-bit types): Likewise.
21921 (nor<mode>3, 128-bit types): Likewise.
21922 (andc<mode>3, 128-bit types): Likewise.
21923 (eqv<mode>3, 128-bit types): Likewise.
21924 (nand<mode>3, 128-bit types): Likewise.
21925 (orc<mode>3, 128-bit types): Likewise.
21926 (and<mode>3_internal): Likewise.
21927 (bool<mode>3_internal): Likewise.
21928 (boolc<mode>3_internal1): Likewise.
21929 (boolc<mode>3_internal2): Likewise.
21930 (boolcc<mode>3_internal1): Likewise.
21931 (boolcc<mode>3_internal2): Likewise.
21932 (eqv<mode>3_internal1): Likewise.
21933 (eqv<mode>3_internal2): Likewise.
21934 (one_cmpl1<mode>3_internal): Likewise.
21936 2013-07-23 David Holsgrove <david.holsgrove@xilinx.com>
21938 * config/microblaze/microblaze.c (microblaze_expand_prologue):
21939 Rename flag_stack_usage to flag_stack_usage_info.
21941 2013-07-23 David Holsgrove <david.holsgrove@xilinx.com>
21943 * config/microblaze/sync.md: New file.
21944 * config/microblaze/microblaze.md: Include sync.md
21945 * config/microblaze/microblaze.c: Add print_operand 'y'.
21946 * config/microblaze/constraints.md: Add memory_contraint
21947 'Q' which is a single register.
21949 2013-07-23 Eric Botcazou <ebotcazou@adacore.com>
21951 * doc/invoke.texi (SPARC Options): Document new leon3 processor value.
21953 2013-07-22 Po-Chun Chang <pchang9@cs.wisc.edu>
21955 * reload.c (find_reloads): Exit loop once we find this operand
21956 cannot be reloaded somehow for this alternative.
21958 * reload.c (find_reloads): Exit loop once we find a hard register.
21960 * rtlanal.c (computed_jump_p): Exit loop once we find label
21963 * i386.c (ix86_pad_returns): Exit loop after setting replace.
21965 * cfgloopmanip.c (remove_path): Exit loop after setting
21968 * gensupport.c (subst_dup): Avoid loop if code is not
21969 MATCH_DUP nor MATCH_OP_DUP.
21971 2013-07-23 Nicklas Bo Jensen <nbjensen@gmail.com>
21973 * doc/md.texi (Machine-Specific Peephole Optimizers): Fix a typo.
21975 2013-07-23 Yufeng Zhang <yufeng.zhang@arm.com>
21977 * config/aarch64/aarch64.c (aarch64_hard_regno_mode_ok): Also return
21978 true for SP_REGNUM if mode == ptr_mode.
21979 * config/aarch64/aarch64.h (ADDITIONAL_REGISTER_NAMES): Add "wsp"
21980 with value R0_REGNUM + 31.
21982 2013-07-23 Yufeng Zhang <yufeng.zhang@arm.com>
21984 * config/aarch64/aarch64.c (aarch64_pad_arg_upward): In big-endian,
21985 pad pointer-typed argument downward.
21987 2013-07-23 Yufeng Zhang <yufeng.zhang@arm.com>
21989 * config/aarch64/aarch64.h (TARGET_CPU_CPP_BUILTINS): Define _ILP32
21990 and __ILP32__ when the ILP32 model is in use.
21992 2013-07-23 Yufeng Zhang <yufeng.zhang@arm.com>
21994 * config/aarch64/aarch64.c (POINTER_BYTES): New define.
21995 (aarch64_load_symref_appropriately): In the case of
21996 SYMBOL_SMALL_ABSOLUTE, use the mode of 'dest' instead of Pmode
21997 to generate new rtx; likewise to the case of SYMBOL_SMALL_GOT.
21998 (aarch64_expand_mov_immediate): In the case of SYMBOL_FORCE_TO_MEM,
21999 change to pass 'ptr_mode' to force_const_mem and zero-extend 'mem'
22000 if 'mode' doesn't equal to 'ptr_mode'.
22001 (aarch64_output_mi_thunk): Add an assertion on the alignment of
22002 'vcall_offset'; change to call aarch64_emit_move differently depending
22003 on whether 'Pmode' equals to 'ptr_mode' or not; use 'POINTER_BYTES'
22004 to calculate the upper bound of 'vcall_offset'.
22005 (aarch64_cannot_force_const_mem): Change to also return true if
22007 (aarch64_legitimize_reload_address): In the case of large
22008 displacements, add new local variable 'xmode' and an assertion
22009 based on it; change to use 'xmode' to generate the new rtx and
22011 (aarch64_asm_trampoline_template): Change to generate the template
22012 differently depending on TARGET_ILP32 or not; change to use
22013 'POINTER_BYTES' in the argument passed to assemble_aligned_integer.
22014 (aarch64_trampoline_size): Removed.
22015 (aarch64_trampoline_init): Add new local constant 'tramp_code_sz'
22016 and replace immediate literals with it. Change to use 'ptr_mode'
22017 instead of 'DImode' and call convert_memory_address if the mode
22018 of 'fnaddr' doesn't equal to 'ptr_mode'.
22019 (aarch64_elf_asm_constructor): Change to use assemble_aligned_integer
22021 (aarch64_elf_asm_destructor): Likewise.
22022 * config/aarch64/aarch64.h (TRAMPOLINE_SIZE): Change to be dependent
22023 on TARGET_ILP32 instead of aarch64_trampoline_size.
22024 * config/aarch64/aarch64.md (movsi_aarch64): Add new alternatives
22025 of 'mov' between WSP and W registers as well as 'adr' and 'adrp'.
22026 (loadwb_pair<GPI:mode>_<PTR:mode>): Rename to ...
22027 (loadwb_pair<GPI:mode>_<P:mode>): ... this. Replace PTR with P.
22028 (storewb_pair<GPI:mode>_<PTR:mode>): Likewise; rename to ...
22029 (storewb_pair<GPI:mode>_<P:mode>): ... this.
22030 (add_losym): Change to 'define_expand' and call gen_add_losym_<mode>
22031 depending on the value of 'mode'.
22032 (add_losym_<mode>): New.
22033 (ldr_got_small_<mode>): New, based on ldr_got_small.
22034 (ldr_got_small): Remove.
22035 (ldr_got_small_sidi): New.
22036 * config/aarch64/iterators.md (P): New.
22037 (PTR): Change to 'ptr_mode' in the condition.
22039 2013-07-23 Yufeng Zhang <yufeng.zhang@arm.com>
22041 * config.gcc (aarch64*-*-*): Support --with-abi.
22042 (aarch64*-*-elf): Support --with-multilib-list.
22043 (aarch64*-*-linux*): Likewise.
22044 (supported_defaults): Add abi to aarch64*-*-*.
22045 * configure.ac: Mention AArch64 for --with-multilib-list.
22046 * configure: Re-generated.
22047 * config/aarch64/biarchilp32.h: New file.
22048 * config/aarch64/biarchlp64.h: New file.
22049 * config/aarch64/aarch64-elf.h (ENDIAN_SPEC): New define.
22051 (MULTILIB_DEFAULTS): Ditto.
22052 (DRIVER_SELF_SPECS): Ditto.
22053 (ASM_SPEC): Update to also substitute -mabi.
22054 * config/aarch64/aarch64-elf-raw.h (LINK_SPEC): Add linker script
22055 file whose name depends on -mabi= and -mbig-endian.
22056 * config/aarch64/aarch64.h (LONG_TYPE_SIZE): Change to depend on
22058 (POINTER_SIZE): New define.
22059 (POINTERS_EXTEND_UNSIGNED): Ditto.
22060 (enum aarch64_abi_type): New enumeration tag.
22061 (AARCH64_ABI_LP64, AARCH64_ABI_ILP32): New enumerators.
22062 (AARCH64_ABI_DEFAULT): Define to AARCH64_ABI_LP64 if undefined.
22063 (TARGET_ILP32): New define.
22064 * config/aarch64/aarch64.opt (mabi): New.
22065 (aarch64_abi): New.
22066 (ilp32, lp64): New values for -mabi.
22067 * config/aarch64/t-aarch64 (comma): New define.
22068 (MULTILIB_OPTIONS): Ditto.
22069 (MULTILIB_DIRNAMES): Ditto.
22070 * config/aarch64/t-aarch64-linux (MULTIARCH_DIRNAME): New define.
22071 * doc/invoke.texi: Document -mabi for AArch64.
22073 2013-07-23 Georg-Johann Lay <avr@gjlay.de>
22075 * config/avr/avr.md: Explain asm print modifier 'r' for REG.
22077 2013-07-22 Bill Schmidt <wschmidt@vnet.linux.ibm.com>
22078 Anton Blanchard <anton@au1.ibm.com>
22080 * config/rs6000/rs6000.c (rs6000_expand_vector_init): Fix
22081 endianness when selecting field to splat.
22083 2013-07-22 Eric Christopher <echristo@gmail.com>
22085 * dwarf2out.c (die_odr_checksum): New function to use
22086 CHECKSUM_ macros and ULEB128 for DIE tag.
22087 (generate_type_signature): Use.
22089 2013-07-22 Eric Botcazou <ebotcazou@adacore.com>
22091 * config.gcc (sparc*-*-*): Accept leon3 processor.
22092 (sparc-leon*-*): Merge with sparc*-*-* and add leon3 support.
22093 * doc/invoke.texi (SPARC Options): Adjust -mfix-ut699 entry.
22094 * config/sparc/sparc-opts.h (enum processor_type): Add PROCESSOR_LEON3.
22095 * config/sparc/sparc.opt (enum processor_type): Add leon3.
22096 (mfix-ut699): Adjust comment.
22097 * config/sparc/sparc.h (TARGET_CPU_leon3): New define.
22098 (CPP_CPU32_DEFAULT_SPEC): Add leon3 support.
22099 (CPP_CPU_SPEC): Likewise.
22100 (ASM_CPU_SPEC): Likewise.
22101 * config/sparc/sparc.c (leon3_cost): New constant.
22102 (sparc_option_override): Add leon3 support.
22103 (mem_ref): New function.
22104 (sparc_gate_work_around_errata): Return true if -mfix-ut699 is enabled.
22105 (sparc_do_work_around_errata): Look into the instruction in the delay
22106 slot and adjust accordingly. Add fix for the data cache nullify issues
22107 of the UT699. Change insertion position for the NOP.
22108 * config/sparc/leon.md (leon_fpalu, leon_fpmds, write_buf): Delete.
22109 (leon3_load): New reservation.
22110 (leon_store): Bump latency to 2.
22111 (grfpu): New automaton.
22112 (grfpu_alu): New unit.
22113 (grfpu_ds): Likewise.
22114 (leon_fp_alu): Adjust.
22115 (leon_fp_mult): Delete.
22116 (leon_fp_div): Split into leon_fp_divs and leon_fp_divd.
22117 (leon_fp_sqrt): Split into leon_fp_sqrts and leon_fp_sqrtd.
22118 * config/sparc/sparc.md (cpu): Add leon3.
22119 * config/sparc/sync.md (atomic_exchangesi): Disable if -mfix-ut699.
22120 (swapsi): Likewise.
22121 (atomic_test_and_set): Likewise.
22122 (ldstub): Likewise.
22124 2013-07-22 Jürgen Urban <JuergenUrban@gmx.de>
22126 * config.gcc (mips*-*-*): Add --with-fpu support. Make single the
22127 default for R5900 targets.
22128 * config/mips/mips.h (OPTION_DEFAULT_SPECS): Handle --with-fpu.
22129 (ISA_HAS_LDC1_SDC1): Set to false for TARGET_MIPS5900.
22130 * config/mips/mips.c (mips_option_override): Report an error for
22131 -march=r5900 -mhard-float -mdouble-float. Use spu_single_format
22132 for -march=r5900 -mhard-float.
22134 2013-07-22 Po-Chun Chang <pchang9@cs.wisc.edu>
22136 * df-problems.c (can_move_insns_across): Exit loop once we
22137 find a non-fixed, non-global register.
22139 * ipa-pure-const.c (propagate_nothrow): Exit loop after
22142 * omega.c (omega_eliminate_red): Break after setting red_found.
22143 (omega_problem_has_red_equations): Similarly after setting found.
22144 (omega_query_variable): Similarly after setting coupled.
22146 2013-07-22 Marek Polacek <polacek@redhat.com>
22148 * gimplify.c: Don't include gimple.h twice.
22150 2013-07-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
22152 * config/arm/constraints.md (Pd): Allow TARGET_THUMB
22153 instead of TARGET_THUMB1.
22154 (Pz): New constraint.
22155 * config/arm/arm.md (arm_addsi3): Add alternatives for 16-bit
22157 (compare_negsi_si): Likewise.
22158 (compare_addsi2_op0): Likewise.
22159 (compare_addsi2_op1): Likewise.
22160 (addsi3_carryin_<optab>): Likewise.
22161 (addsi3_carryin_alt2_<optab>): Likewise.
22162 (addsi3_carryin_shift_<optab>): Disable cond_exec variant
22163 for arm_restrict_it.
22164 (subsi3_carryin): Likewise.
22165 (arm_subsi3_insn): Add alternatives for 16-bit encoding.
22166 (minmax_arithsi): Disable for arm_restrict_it.
22167 (minmax_arithsi_non_canon): Adjust for arm_restrict_it.
22168 (satsi_<SAT:code>): Disable cond_exec variant for arm_restrict_it.
22169 (satsi_<SAT:code>_shift): Likewise.
22170 (arm_shiftsi3): Add alternative for 16-bit encoding.
22171 (arm32_movhf): Disable for arm_restrict_it.
22172 (arm_cmpdi_unsigned): Add alternatives for 16-bit encoding.
22173 (arm_movtas_ze): Disable cond_exec variant for arm_restrict_it.
22175 2013-07-22 Sofiane Naci <sofiane.naci@arm.com>
22177 * config/arm/arm.md (attribute "insn"): Delete.
22178 (attribute "type"): Add "mov_imm", "mov_reg", "mov_shift",
22179 "mov_shift_reg", "mvn_imm", "mvn_reg", "mvn_shift" and "mvn_shift_reg".
22180 (not_shiftsi): Update for attribute change.
22181 (not_shiftsi_compare0): Likewise.
22182 (not_shiftsi_compare0_scratch): Likewise.
22183 (arm_one_cmplsi2): Likewise.
22184 (thumb1_one_cmplsi2): Likewise.
22185 (notsi_compare0): Likewise.
22186 (notsi_compare0_scratch): Likewise.
22187 (thumb1_movdi_insn): Likewise.
22188 (arm_movsi_insn): Likewise.
22189 (movhi_insn_arch4): Likewise.
22190 (movhi_bytes): Likewise.
22191 (arm_movqi_insn): Likewise.
22192 (thumb1_movqi_insn): Likewise.
22193 (arm32_movhf): Likewise.
22194 (thumb1_movhf): Likewise.
22195 (arm_movsf_soft_insn): Likewise.
22196 (thumb1_movsf_insn): Likewise.
22197 (thumb_movdf_insn): Likewise.
22198 (movsicc_insn): Likewise.
22199 (movsfcc_soft_insn): Likewise.
22200 (and_scc): Likewise.
22201 (cond_move): Likewise.
22202 (if_move_not): Likewise.
22203 (if_not_move): Likewise.
22204 (if_shift_move): Likewise.
22205 (if_move_shift): Likewise.
22206 (if_shift_shift): Likewise.
22207 (if_not_arith): Likewise.
22208 (if_arith_not): Likewise.
22209 (cond_move_not): Likewise.
22210 * config/arm/neon.md (neon_mov<mode>): Update for attribute change.
22211 (neon_mov<mode>): Likewise.
22212 * config/arm/vfp.md (arm_movsi_vfp): Update for attribute change.
22213 (thumb2_movsi_vfp): Likewise.
22214 (movsf_vfp): Likewise.
22215 (thumb2_movsf_vfp): Likewise.
22216 * config/arm/arm.c (xscale_sched_adjust_cost): Update for attribute
22218 (cortexa7_older_only): Likewise.
22219 (cortexa7_younger): Likewise.
22220 * config/arm/arm1020e.md (1020alu_op): Update for attribute change.
22221 (1020alu_shift_op): Likewise.
22222 (1020alu_shift_reg_op): Likewise.
22223 * config/arm/arm1026ejs.md (alu_op): Update for attribute change.
22224 (alu_shift_op): Likewise.
22225 (alu_shift_reg_op): Likewise.
22226 * config/arm/arm1136jfs.md (11_alu_op): Update for attribute change.
22227 (11_alu_shift_op): Likewise.
22228 (11_alu_shift_reg_op): Likewise.
22229 * config/arm/arm926ejs.md (9_alu_op): Update for attribute change.
22230 (9_alu_shift_reg_op): Likewise.
22231 * config/arm/cortex-a15.md (cortex_a15_alu): Update for attribute
22233 (cortex_a15_alu_shift): Likewise.
22234 (cortex_a15_alu_shift_reg): Likewise.
22235 * config/arm/cortex-a5.md (cortex_a5_alu): Update for attribute change.
22236 (cortex_a5_alu_shift): Likewise.
22237 * config/arm/cortex-a53.md (cortex_a53_alu): Update for attribute
22239 (cortex_a53_alu_shift): Likewise.
22240 * config/arm/cortex-a7.md (cortex_a7_alu_imm): Update for attribute
22242 (cortex_a7_alu_reg): Likewise.
22243 (cortex_a7_alu_shift): Likewise.
22244 * config/arm/cortex-a8.md (cortex_a8_alu): Update for attribute change.
22245 (cortex_a8_alu_shift): Likewise.
22246 (cortex_a8_alu_shift_reg): Likewise.
22247 (cortex_a8_mov): Likewise.
22248 * config/arm/cortex-a9.md (cortex_a9_dp): Update for attribute change.
22249 (cortex_a9_dp_shift): Likewise.
22250 * config/arm/cortex-m4.md (cortex_m4_alu): Update for attribute change.
22251 * config/arm/cortex-r4.md (cortex_r4_alu): Update for attribute change.
22252 (cortex_r4_mov): Likewise.
22253 (cortex_r4_alu_shift): Likewise.
22254 (cortex_r4_alu_shift_reg): Likewise.
22255 * config/arm/fa526.md (526_alu_op): Update for attribute change.
22256 (526_alu_shift_op): Likewise.
22257 * config/arm/fa606te.md (606te_alu_op): Update for attribute change.
22258 * config/arm/fa626te.md (626te_alu_op): Update for attribute change.
22259 (626te_alu_shift_op): Likewise.
22260 * config/arm/fa726te.md (726te_shift_op): Update for attribute change.
22261 (726te_alu_op): Likewise.
22262 (726te_alu_shift_op): Likewise.
22263 (726te_alu_shift_reg_op): Likewise.
22264 * config/arm/fmp626.md (mp626_alu_op): Update for attribute change.
22265 (mp626_alu_shift_op): Likewise.
22266 * config/arm/marvell-pj4.md (pj4_alu_e1): Update for attribute change.
22267 (pj4_alu_e1_conds): Likewise.
22268 (pj4_alu): Likewise.
22269 (pj4_alu_conds): Likewise.
22270 (pj4_shift): Likewise.
22271 (pj4_shift_conds): Likewise.
22272 (pj4_alu_shift): Likewise.
22273 (pj4_alu_shift_conds): Likewise.
22275 2013-07-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
22277 * config/arm/predicates.md (shiftable_operator_strict_it):
22279 * config/arm/thumb2.md (thumb_andsi_not_shiftsi_si):
22280 Disable cond_exec version for arm_restrict_it.
22281 (thumb2_smaxsi3): Convert to generate cond_exec.
22282 (thumb2_sminsi3): Likewise.
22283 (thumb32_umaxsi3): Likewise.
22284 (thumb2_uminsi3): Likewise.
22285 (thumb2_abssi2): Adjust constraints for arm_restrict_it.
22286 (thumb2_neg_abssi2): Likewise.
22287 (thumb2_mov_scc): Add alternative for 16-bit encoding.
22288 (thumb2_movsicc_insn): Adjust alternatives.
22289 (thumb2_mov_negscc): Disable for arm_restrict_it.
22290 (thumb2_mov_negscc_strict_it): New pattern.
22291 (thumb2_mov_notscc_strict_it): New pattern.
22292 (thumb2_mov_notscc): Disable for arm_restrict_it.
22293 (thumb2_ior_scc): Likewise.
22294 (thumb2_ior_scc_strict_it): New pattern.
22295 (thumb2_cond_move): Adjust for arm_restrict_it.
22296 (thumb2_cond_arith): Disable for arm_restrict_it.
22297 (thumb2_cond_arith_strict_it): New pattern.
22298 (thumb2_cond_sub): Adjust for arm_restrict_it.
22299 (thumb2_movcond): Likewise.
22300 (thumb2_extendqisi_v6): Disable cond_exec variant for arm_restrict_it.
22301 (thumb2_zero_extendhisi2_v6): Likewise.
22302 (thumb2_zero_extendqisi2_v6): Likewise.
22303 (orsi_notsi_si): Likewise.
22304 (orsi_not_shiftsi_si): Likewise.
22306 2013-07-22 Georg-Johann Lay <avr@gjlay.de>
22308 * config/avr/avr.c (avr_out_xload): No SBIS around LPM so that
22309 instruction sequence is 1 byte shorter.
22311 2013-07-22 Uros Bizjak <ubizjak@gmail.com>
22313 * config/i386/i386.md (nonlocal_goto_receiver): Delete insn if
22314 it is not needed after split.
22316 2013-07-20 Iain Sandoe <iain@codesourcery.com>
22319 * config/i386/i386.c (output_set_got) [TARGET_MACHO]: Adjust to emit a
22320 second label for nonlocal goto receivers. Don't output pic base labels
22321 unless we're producing PIC; mark that action unreachable().
22322 (ix86_save_reg): If the function contains a nonlocal label, save the
22324 * config/darwin-protos.h (machopic_should_output_picbase_label): New.
22325 * config/darwin.c (emitted_pic_label_num): New GTY.
22326 (update_pic_label_number_if_needed): New.
22327 (machopic_output_function_base_name): Adjust for nonlocal receiver
22329 (machopic_should_output_picbase_label): New.
22330 * config/i386/i386.md (enum unspecv): UNSPECV_NLGR: New.
22331 (nonlocal_goto_receiver): New insn and split.
22333 2013-07-20 James Greenhalgh <james.greenhalgh@arm.com>
22335 * config/aarch64/aarch64-builtins.c
22336 (aarch64_fold_builtin): Fold abs in all modes.
22337 * config/aarch64/aarch64-simd-builtins.def
22338 (abs): Enable for all modes.
22339 * config/aarch64/arm_neon.h
22340 (vabs<q>_s<8,16,32,64): Rewrite using builtins.
22341 (vabs_f64): Add missing intrinsic.
22343 2013-07-19 Ian Bolton <ian.bolton@arm.com>
22345 * config/aarch64/arm_neon.h (vabs_s64): New function
22347 2013-07-19 Georg-Johann Lay <avr@gjlay.de>
22350 * config/avr/avr-fixed.md (round<mode>3_const): Turn expander to insn.
22351 * config/avr/avr.md (adjust_len): Add `round'.
22352 * config/avr/avr-protos.h (avr_out_round): New prototype.
22353 (avr_out_plus): Add `out_label' argument.
22354 * config/avr/avr.c (avr_out_plus_1): Add `out_label' argument.
22355 (avr_out_plus): Pass down `out_label' to avr_out_plus_1.
22356 Handle the case where `insn' is just a pattern.
22357 (avr_out_bitop): Handle the case where `insn' is just a pattern.
22358 (avr_out_round): New function.
22359 (avr_adjust_insn_length): Handle ADJUST_LEN_ROUND.
22361 2013-07-18 David Holsgrove <david.holsgrove@xilinx.com>
22363 * config/microblaze/microblaze.c (microblaze_expand_prologue):
22364 Add check for flag_stack_usage to handle -fstack-usage support
22366 2013-07-18 Pat Haugen <pthaugen@us.ibm.com>
22368 * config/rs6000/rs6000.c (rs6000_option_override_internal): Adjust flag
22369 interaction for new Power8 flags and VSX.
22371 2013-07-18 Sriraman Tallam <tmsriram@google.com>
22373 PR middle-end/57698
22374 * tree-inline.c (expand_call_inline): Emit errors during
22375 early_inlining only if optimization is not turned on.
22377 2013-07-18 David Malcolm <dmalcolm@redhat.com>
22381 * passes.c (init_optimization_passes): Move the construction of
22382 the pass hierarchy into a new passes.def file.
22384 * Makefile.in (passes.o): Add dependency on passes.def.
22386 2013-07-18 David Malcolm <dmalcolm@redhat.com>
22388 * passes.c (init_optimization_passes): Introduce macros for
22389 constructing the tree of passes (INSERT_PASSES_AFTER,
22390 PUSH_INSERT_PASSES_WITHIN, POP_INSERT_PASSES,
22391 TERMINATE_PASS_LIST).
22393 2013-07-18 Vladimir Makarov <vmakarov@redhat.com>
22394 Wei Mi <wmi@google.com>
22396 PR rtl-optimization/57878
22397 * lra-assigns.c (assign_by_spills): Move non_reload_pseudos to the
22399 (reload_pseudo_compare_func): Check nregs first for reload
22402 2013-07-18 David Malcolm <dmalcolm@redhat.com>
22404 * tree-pass.h (pass_ipa_lto_wpa_fixup): Remove redundant decl.
22406 2013-07-18 Po-Chun Chang <pchang9@cs.wisc.edu>
22408 * read-rtl.c (validate_const_int): Once an invalid character is
22409 seen, quit the loop.
22411 * gengtype.c (write_roots): Similarly once we find the "deletable"
22412 or "if_marked" option.
22414 2013-07-18 Sofiane Naci <sofiane.naci@arm.com>
22416 * config/arm/arm.md (attribute "insn"): Delete values "mrs", "msr",
22417 "xtab" and "sat". Move value "clz" from here to ...
22418 (attriubte "type"): ... here.
22419 (satsi_<SAT:code>): Delete "insn" attribute.
22420 (satsi_<SAT:code>_shift): Likewise.
22421 (arm_zero_extendqisi2addsi): Likewise.
22422 (arm_extendqisi2addsi): Likewise.
22423 (clzsi2): Update for attribute changes.
22424 (rbitsi2): Likewise.
22425 * config/arm/arm-fixed.md (arm_ssatsihi_shift): Delete "insn"
22427 (arm_usatsihi): Likewise.
22428 * config/arm/cortex-a8.md (cortex_a8_alu): Update for attribute change.
22430 2013-07-18 Sofiane Naci <sofiane.naci@arm.com>
22432 * config/arm/arm.md (attribute "type"): Rename "simple_alu_imm" to
22433 "arlo_imm". Rename "alu_reg" to "arlo_reg". Rename "simple_alu_shift"
22434 to "extend". Split "alu_shift" into "shift" and "arlo_shift". Split
22435 "alu_shift_reg" into "shift_reg" and "arlo_shift_reg". List types
22436 in alphabetical order.
22437 (attribute "core_cycles"): Update for attribute changes.
22438 (arm_addsi3): Likewise.
22439 (addsi3_compare0): Likewise.
22440 (addsi3_compare0_scratch): Likewise.
22441 (addsi3_compare_op1): Likewise.
22442 (addsi3_compare_op2): Likewise.
22443 (compare_addsi2_op0): Likewise.
22444 (compare_addsi2_op1): Likewise.
22445 (addsi3_carryin_shift_<optab>): Likewise.
22446 (subsi3_carryin_shift): Likewise.
22447 (rsbsi3_carryin_shift): Likewise.
22448 (arm_subsi3_insn): Likewise.
22449 (subsi3_compare0): Likewise.
22450 (subsi3_compare): Likewise.
22451 (arm_andsi3_insn): Likewise.
22452 (thumb1_andsi3_insn): Likewise.
22453 (andsi3_compare0): Likewise.
22454 (andsi3_compare0_scratch): Likewise.
22455 (zeroextractsi_compare0_scratch
22456 (andsi_not_shiftsi_si): Likewise.
22457 (iorsi3_insn): Likewise.
22458 (iorsi3_compare0): Likewise.
22459 (iorsi3_compare0_scratch): Likewise.
22460 (arm_xorsi3): Likewise.
22461 (thumb1_xorsi3_insn): Likewise.
22462 (xorsi3_compare0): Likewise.
22463 (xorsi3_compare0_scratch): Likewise.
22464 (satsi_<SAT:code>_shift): Likewise.
22466 (arm_shiftsi3): Likewise.
22467 (shiftsi3_compare0): Likewise.
22468 (not_shiftsi): Likewise.
22469 (not_shiftsi_compare0): Likewise.
22470 (not_shiftsi_compare0_scratch): Likewise.
22471 (arm_one_cmplsi2): Likewise.
22472 (thumb_one_complsi2): Likewise.
22473 (notsi_compare0): Likewise.
22474 (notsi_compare0_scratch): Likewise.
22475 (thumb1_zero_extendhisi2): Likewise.
22476 (arm_zero_extendhisi2): Likewise.
22477 (arm_zero_extendhisi2_v6): Likewise.
22478 (arm_zero_extendhisi2addsi): Likewise.
22479 (thumb1_zero_extendqisi2): Likewise.
22480 (thumb1_zero_extendqisi2_v6): Likewise.
22481 (arm_zero_extendqisi2): Likewise.
22482 (arm_zero_extendqisi2_v6): Likewise.
22483 (arm_zero_extendqisi2addsi): Likewise.
22484 (thumb1_extendhisi2): Likewise.
22485 (arm_extendhisi2): Likewise.
22486 (arm_extendhisi2_v6): Likewise.
22487 (arm_extendqisi): Likewise.
22488 (arm_extendqisi_v6): Likewise.
22489 (arm_extendqisi2addsi): Likewise.
22490 (thumb1_extendqisi2): Likewise.
22491 (thumb1_movdi_insn): Likewise.
22492 (arm_movsi_insn): Likewise.
22493 (movsi_compare0): Likewise.
22494 (movhi_insn_arch4): Likewise.
22495 (movhi_bytes): Likewise.
22496 (arm_movqi_insn): Likewise.
22497 (thumb1_movqi_insn): Likewise.
22498 (arm32_movhf): Likewise.
22499 (thumb1_movhf): Likewise.
22500 (arm_movsf_soft_insn): Likewise.
22501 (thumb1_movsf_insn): Likewise.
22502 (movdf_soft_insn): Likewise.
22503 (thumb_movdf_insn): Likewise.
22504 (arm_cmpsi_insn): Likewise.
22505 (cmpsi_shiftsi): Likewise.
22506 (cmpsi_shiftsi_swp): Likewise.
22507 (arm_cmpsi_negshiftsi_si): Likewise.
22508 (movsicc_insn): Likewise.
22509 (movsfcc_soft_insn): Likewise.
22510 (arith_shiftsi): Likewise.
22511 (arith_shiftsi_compare0
22512 (arith_shiftsi_compare0_scratch
22513 (sub_shiftsi): Likewise.
22514 (sub_shiftsi_compare0
22515 (sub_shiftsi_compare0_scratch
22516 (and_scc): Likewise.
22517 (cond_move): Likewise.
22518 (if_plus_move): Likewise.
22519 (if_move_plus): Likewise.
22520 (if_move_not): Likewise.
22521 (if_not_move): Likewise.
22522 (if_shift_move): Likewise.
22523 (if_move_shift): Likewise.
22524 (if_shift_shift): Likewise.
22525 (if_not_arith): Likewise.
22526 (if_arith_not): Likewise.
22527 (cond_move_not): Likewise.
22528 (thumb1_ashlsi3): Set type attribute.
22529 (thumb1_ashrsi3): Likewise.
22530 (thumb1_lshrsi3): Likewise.
22531 (thumb1_rotrsi3): Likewise.
22532 (shiftsi3_compare0_scratch): Likewise.
22533 * config/arm/neon.md (neon_mov<mode>): Update for attribute changes.
22534 (neon_mov<mode>): Likewise.
22535 * config/arm/thumb2.md (thumb_andsi_not_shiftsi_si): Update for
22537 (thumb2_movsi_insn): Likewise.
22538 (thumb2_cmpsi_neg_shiftsi): Likewise.
22539 (thumb2_extendqisi_v6): Likewise.
22540 (thumb2_zero_extendhisi2_v6): Likewise.
22541 (thumb2_zero_extendqisi2_v6): Likewise.
22542 (thumb2_shiftsi3_short): Likewise.
22543 (thumb2_addsi3_compare0_scratch): Likewise.
22544 (orsi_not_shiftsi_si): Likewise.
22545 * config/arm/vfp.md (arm_movsi_vfp): Update for attribute changes.
22546 * config/arm/arm-fixed.md (arm_ssatsihi_shift): Update for attribute
22548 * config/arm/arm1020e.md (1020alu_op): Update for attribute changes.
22549 (1020alu_shift_op): Likewise.
22550 (1020alu_shift_reg_op): Likewise.
22551 * config/arm/arm1026ejs.md (alu_op): Update for attribute changes.
22552 (alu_shift_op): Likewise.
22553 (alu_shift_reg_op): Likewise.
22554 * config/arm/arm1136jfs.md (11_alu_op): Update for attribute changes.
22555 (11_alu_shift_op): Likewise.
22556 (11_alu_shift_reg_op): Likewise.
22557 * config/arm/arm926ejs.md (9_alu_op): Update for attribute changes.
22558 (9_alu_shift_reg_op): Likewise.
22559 * config/arm/cortex-a15.md (cortex_a15_alu): Update for attribute
22561 (cortex_a15_alu_shift): Likewise.
22562 (cortex_a15_alu_shift_reg): Likewise.
22563 * config/arm/cortex-a5.md (cortex_a5_alu): Update for attribute
22565 (cortex_a5_alu_shift): Likewise.
22566 * config/arm/cortex-a53.md (cortex_a53_alu) : Update for attribute
22568 (cortex_a53_alu_shift): Likewise.
22569 * config/arm/cortex-a7.md (cortex_a7_alu_imm): Update for attribute
22571 (cortex_a7_alu_reg): Likewise.
22572 (cortex_a7_alu_shift): Likewise.
22573 * config/arm/cortex-a8.md (cortex_a8_alu): Update for attribute
22575 (cortex_a8_alu_shift): Likewise.
22576 (cortex_a8_alu_shift_reg): Likewise.
22577 (cortex_a8_mov): Likewise.
22578 * config/arm/cortex-a9.md (cortex_a9_dp): Update for attribute changes.
22579 (cortex_a9_dp_shift): Likewise.
22580 * config/arm/cortex-m4.md (cortex_m4_alu): Update for attribute
22582 * config/arm/cortex-r4.md (cortex_r4_alu): Update for attribute
22584 (cortex_r4_mov): Likewise.
22585 (cortex_r4_alu_shift): Likewise.
22586 (cortex_r4_alu_shift_reg): Likewise.
22587 * config/arm/fa526.md (526_alu_op): Update for attribute changes.
22588 (526_alu_shift_op): Likewise.
22589 * config/arm/fa606te.md (606te_alu_op): Update for attribute changes.
22590 * config/arm/fa626te.md (626te_alu_op): Update for attribute changes.
22591 (626te_alu_shift_op): Likewise.
22592 * config/arm/fa726te.md (726te_shift_op): Update for attribute changes.
22593 (726te_alu_op): Likewise.
22594 (726te_alu_shift_op): Likewise.
22595 (726te_alu_shift_reg_op): Likewise.
22596 * config/arm/fmp626.md (mp626_alu_op): Update for attribute changes.
22597 (mp626_alu_shift_op): Likewise.
22598 * config/arm/marvell-pj4.md (pj4_alu_e1): Update for attribute changes.
22599 (pj4_alu_e1_conds): Likewise.
22600 (pj4_alu): Likewise.
22601 (pj4_alu_conds): Likewise.
22602 (pj4_shift): Likewise.
22603 (pj4_shift_conds): Likewise.
22604 (pj4_alu_shift): Likewise.
22605 (pj4_alu_shift_conds): Likewise.
22606 * config/arm/arm.c (xscale_sched_adjust_cost): Update for attribute
22608 (cortexa7_older_only): Likewise.
22609 (cortexa7_younger): Likewise.
22611 2013-07-18 David Malcolm <dmalcolm@redhat.com>
22613 * ipa-pure-const.c (generate_summary): Rename to...
22614 (pure_const_generate_summary): ... this.
22616 2013-07-17 Iain Sandoe <iain@codesourcery.com>
22618 * config/rs6000/darwin.h (REGISTER_NAMES): Add HTM registers.
22620 2013-07-17 Yvan Roux <yvan.roux@linaro.org>
22623 * config/arm/arm.c (gen_movmem_ldrd_strd): Fix unaligned load/store
22626 2013-07-17 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
22628 * config/s390/s390.c: (s390_expand_builtin): Allow -mhtm to be
22629 enabled without -march=zEC12.
22630 * config/s390/s390.h (TARGET_HTM): Do not require EC12 machine
22633 2013-07-16 Maciej W. Rozycki <macro@codesourcery.com>
22635 * config/mips/mips.h (ISA_HAS_FP4): Correct formatting.
22636 (ISA_HAS_FP_MADD4_MSUB4): Also enable for ISA_MIPS32R2.
22637 (ISA_HAS_NMADD4_NMSUB4): Remove the MODE argument; rewrite in
22638 terms of ISA_HAS_FP4, and also enable for ISA_MIPS32R2.
22639 (ISA_HAS_NMADD3_NMSUB3): Remove the MODE argument.
22640 * config/mips/mips.c (mips_rtx_costs) <PLUS>: Check for
22641 ISA_HAS_FP_MADD4_MSUB4 || ISA_HAS_FP_MADD3_MSUB3 rather than
22643 <MINUS, NEG>: Update according to changes to ISA_HAS_NMADD4_NMSUB4
22644 and ISA_HAS_NMADD3_NMSUB3.
22645 * config/mips/mips.md (nmadd4<mode>, nmadd3<mode>): Likewise.
22646 (nmadd4<mode>_fastmath, nmadd3<mode>_fastmath): Likewise.
22647 (nmsub4<mode>, nmsub3<mode>): Likewise.
22648 (nmsub4<mode>_fastmath, nmsub3<mode>_fastmath): Likewise.
22650 2013-07-16 Maciej W. Rozycki <macro@codesourcery.com>
22652 * config/mips/mips.h (ISA_HAS_NMADD4_NMSUB4): Remove
22653 TARGET_MIPS5400 checking.
22655 2013-07-16 Jakub Jelinek <jakub@redhat.com>
22656 Peter Bergner <bergner@vnet.ibm.com>
22658 * config/rs6000/rs6000.h (FIRST_PSEUDO_REGISTERS): Mention HTM
22659 registers in the comment.
22660 (DWARF_FRAME_REGISTERS): Subtract also the 3 HTM registers.
22661 (DWARF_REG_TO_UNWIND_COLUMN): Use DWARF_FRAME_REGISTERS
22662 rather than FIRST_PSEUDO_REGISTERS.
22664 2013-07-16 Peter Bergner <bergner@vnet.ibm.com>
22666 * config/rs6000/rs6000.c (rs6000_option_override_internal): Do not
22667 enable extra ISA flags with TARGET_HTM.
22669 2013-07-16 Maciej W. Rozycki <macro@codesourcery.com>
22671 * config/mips/mips.h (ISA_HAS_MULS, ISA_HAS_MSAC, ISA_HAS_MACC):
22674 2013-07-15 Cong Hou <congh@google.com>
22676 * tree-vect-data-refs.c (dr_group_sort_cmp): Do not use hash function
22677 in compare function for sorting.
22679 2013-07-15 Peter Bergner <bergner@vnet.ibm.com>
22681 * config.gcc (powerpc*-*-*): Install htmintrin.h and htmxlintrin.h.
22682 * config/rs6000/t-rs6000 (MD_INCLUDES): Add htm.md.
22683 * config/rs6000/rs6000.opt: Add -mhtm option.
22684 * config/rs6000/rs6000-cpus.def (POWERPC_MASKS): Add OPTION_MASK_HTM.
22685 (ISA_2_7_MASKS_SERVER): Add OPTION_MASK_HTM.
22686 * config/rs6000/rs6000-c.c (rs6000_target_modify_macros): Define
22687 __HTM__ if the HTM instructions are available.
22688 * config/rs6000/predicates.md (u3bit_cint_operand, u10bit_cint_operand,
22689 htm_spr_reg_operand): New define_predicates.
22690 * config/rs6000/rs6000.md (define_attr "type"): Add htm.
22691 (TFHAR_REGNO, TFIAR_REGNO, TEXASR_REGNO): New define_constants.
22693 * config/rs6000/rs6000-builtin.def (BU_HTM_0, BU_HTM_1, BU_HTM_2,
22694 BU_HTM_3, BU_HTM_SPR0, BU_HTM_SPR1): Add support macros for defining
22695 HTM builtin functions.
22696 * config/rs6000/rs6000.c (RS6000_BUILTIN_H): New macro.
22697 (rs6000_reg_names, alt_reg_names): Add HTM SPR register names.
22698 (rs6000_init_hard_regno_mode_ok): Add support for HTM instructions.
22699 (rs6000_builtin_mask_calculate): Likewise.
22700 (rs6000_option_override_internal): Likewise.
22701 (bdesc_htm): Add new HTM builtin support.
22702 (htm_spr_num): New function.
22703 (htm_spr_regno): Likewise.
22704 (rs6000_htm_spr_icode): Likewise.
22705 (htm_expand_builtin): Likewise.
22706 (htm_init_builtins): Likewise.
22707 (rs6000_expand_builtin): Add support for HTM builtin functions.
22708 (rs6000_init_builtins): Likewise.
22709 (rs6000_invalid_builtin, rs6000_opt_mask): Add support for -mhtm
22711 * config/rs6000/rs6000.h (ASM_CPU_SPEC): Add support for -mhtm.
22712 (TARGET_HTM, MASK_HTM): Define macros.
22713 (FIRST_PSEUDO_REGISTER): Adjust for new HTM SPR registers.
22714 (FIXED_REGISTERS): Likewise.
22715 (CALL_USED_REGISTERS): Likewise.
22716 (CALL_REALLY_USED_REGISTERS): Likewise.
22717 (REG_ALLOC_ORDER): Likewise.
22718 (enum reg_class): Likewise.
22719 (REG_CLASS_NAMES): Likewise.
22720 (REG_CLASS_CONTENTS): Likewise.
22721 (REGISTER_NAMES): Likewise.
22722 (ADDITIONAL_REGISTER_NAMES): Likewise.
22723 (RS6000_BTC_SPR, RS6000_BTC_VOID, RS6000_BTC_32BIT, RS6000_BTC_64BIT,
22724 RS6000_BTC_MISC_MASK, RS6000_BTM_HTM): New macros.
22725 (RS6000_BTM_COMMON): Add RS6000_BTM_HTM.
22726 * config/rs6000/htm.md: New file.
22727 * config/rs6000/htmintrin.h: New file.
22728 * config/rs6000/htmxlintrin.h: New file.
22730 2013-07-15 Marcus Shawcroft <marcus.shawcroft@arm.com>
22732 * config/aarch64/aarch64-protos.h (aarch64_symbol_type):
22733 Define SYMBOL_TINY_GOT, update comment.
22734 * config/aarch64/aarch64.c
22735 (aarch64_load_symref_appropriately): Handle SYMBOL_TINY_GOT.
22736 (aarch64_expand_mov_immediate): Likewise.
22737 (aarch64_print_operand): Likewise.
22738 (aarch64_classify_symbol): Likewise.
22739 * config/aarch64/aarch64.md (UNSPEC_GOTTINYPIC): Define.
22740 (ldr_got_tiny): Define.
22742 2013-07-13 Tobias Grosser <tobias@grosser.es>
22744 PR tree-optimization/54094
22745 * graphite-clast-to-gimple.c (translate_clast_for_loop): Derive the
22746 scheduling dimension for the parallelism check from the polyhedral
22747 information in the AST.
22748 * graphite-dependences.c (carries_deps): Do not assume the schedule is
22751 2013-07-13 Jason Merrill <jason@redhat.com>
22753 * print-tree.c (debug_vec_tree): Use debug_raw.
22754 (debug_raw (vec<tree, va_gc> &)): New.
22755 (debug_raw (vec<tree, va_gc> *)): New.
22756 * tree.h: Declare them.
22758 2013-07-13 Bin Cheng <bin.cheng@arm.com>
22760 * ifcvt.c (ifcvt_after_combine): New static variable.
22761 (cheap_bb_rtx_cost_p): Set scale to REG_BR_PROB_BASE when optimizing
22763 (if_convert): New parameter after_combine. Set ifcvt_after_combine.
22764 (rest_of_handle_if_conversion, rest_of_handle_if_after_combine,
22765 rest_of_handle_if_after_reload): Pass new argument for if_convert.
22767 2013-07-12 Maciej W. Rozycki <macro@codesourcery.com>
22769 * config/mips/mips.c (mips_expand_call): Remove empty statement.
22771 2013-07-12 Michael Matz <matz@suse.de>
22773 PR middle-end/55771
22774 * convert.c (convert_to_real): Reject non-float inner types.
22776 2013-07-12 Tejas Belagod <tejas.belagod@arm.com>
22778 * config/aarch64/aarch64-protos.h
22779 (aarch64_simd_immediate_valid_for_move): Remove.
22780 * config/aarch64/aarch64.c (simd_immediate_info): New member.
22781 (aarch64_simd_valid_immediate): Recognize idioms for shifting ones
22783 (aarch64_output_simd_mov_immediate): Print the correct shift specifier.
22785 2013-07-11 Steve Ellcey <sellcey@mips.com>
22787 * config/mips/mips.c (mips_conditional_register_usage): Do not
22788 use t[0-7] registers in MIPS16 mode when optimizing for size.
22790 2013-07-11 Sriraman Tallam <tmsriram@google.com>
22792 * config/i386/i386.c (dispatch_function_versions): Fix array
22793 indexing of function_version_info to match actual_versions.
22795 2013-07-11 Teresa Johnson <tejohnson@google.com>
22797 * vec.h (struct va_gc): Move release out-of-line.
22798 (va_gc::release): Call ggc_free on released vec.
22800 2013-07-11 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
22802 * config/rs6000/rs6000.md (""*tls_gd_low<TLSmode:tls_abi_suffix>"):
22803 Require GOT register as additional operand in UNSPEC.
22804 ("*tls_ld_low<TLSmode:tls_abi_suffix>"): Likewise.
22805 ("*tls_got_dtprel_low<TLSmode:tls_abi_suffix>"): Likewise.
22806 ("*tls_got_tprel_low<TLSmode:tls_abi_suffix>"): Likewise.
22807 ("*tls_gd<TLSmode:tls_abi_suffix>"): Update splitter.
22808 ("*tls_ld<TLSmode:tls_abi_suffix>"): Likewise.
22809 ("tls_got_dtprel_<TLSmode:tls_abi_suffix>"): Likewise.
22810 ("tls_got_tprel_<TLSmode:tls_abi_suffix>"): Likewise.
22812 2013-07-11 Georg-Johann Lay <avr@gjlay.de>
22815 * config/avr/avr.c (avr_set_current_function): Sanity-check signal
22816 name seen by assembler/linker rather if available.
22818 2013-07-11 Andreas Schwab <schwab@suse.de>
22820 * config/aarch64/aarch64-linux.h (CPP_SPEC): Define.
22822 2013-07-10 Vladimir Makarov <vmakarov@redhat.com>
22824 * lra-constraints.c (curr_insn_transform): Switch off optional reloads.
22826 2013-07-10 Joseph Myers <joseph@codesourcery.com>
22828 * doc/tm.texi.in: Move hook documentation to ....
22829 * target.def: ... here.
22831 * doc/tm.texi.in (TARGET_CANONICALIZE_COMPARISON): Remove stray
22832 text on @hook line.
22833 * doc/tm.texi: Regenerate.
22835 2013-07-10 Paolo Carlini <paolo.carlini@oracle.com>
22838 * doc/invoke.texi: Document -Wconditionally-supported.
22840 2013-07-10 Georg-Johann Lay <avr@gjlay.de>
22843 * config/avr/avr.c (avr_prologue_setup_frame): Trunk -size to mode
22846 2013-07-10 Georg-Johann Lay <avr@gjlay.de>
22849 * config/avr/avr-mcus.def (atmega16hva, atmega16hva2, atmega16hvb)
22850 (atmega16m1, atmega16u4, atmega32a, atmega32c1, atmega32hvb)
22851 (atmega32m1, atmega32u4, atmega32u6, atmega64c1, atmega64m1):
22852 Remove duplicate devices.
22853 * config/avr/gen-avr-mmcu-texi.c (print_mcus): Fail on duplicate MCUs.
22854 * config/avr/t-multilib: Regenerate.
22855 * config/avr/avr-tables.opt: Regenerate.
22856 * doc/avr-mmcu.texi: Regenerate.
22858 2013-07-10 Georg-Johann Lay <avr@gjlay.de>
22861 * config/avr/avr.opt (Waddr-space-convert): Fix typo.
22863 2013-07-10 Graham Stott <graham.stott@btinternet.com>
22865 * config/mips/mips.c (mips_rtx_costs): Very slightly increase
22866 the cost of MULT when optimizing for size.
22868 2013-07-10 Jan-Benedict Glaw <jbglaw@lug-owl.de>
22870 * config/cr16/cr16-protos.h: Don't include target.h.
22872 2013-07-09 Joseph Myers <joseph@codesourcery.com>
22874 * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Only
22875 adjust register size for TDmode and TFmode for VSX registers.
22877 2013-07-08 Kai Tietz <ktietz@redhat.com>
22880 * config/i386/i386.c (TARGET_FUNCTION_ATTRIBUTE_INLINABLE_P): Define as
22881 hook_bool_const_tree_true.
22883 2013-07-08 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
22885 * config/s390/s390.c: Replace F*_REGNUM with FPR*_REGNUM.
22886 * config/s390/s390.h: Remove F*_REGNUM macro definitions.
22887 * config/s390/s390.md: Define FPR*_REGNUM constants.
22888 Fix FPR2_REGNUM constant (18 -> 17).
22889 ("*trunc<BFP:mode><DFP_ALL:mode>2")
22890 ("*trunc<DFP_ALL:mode><BFP:mode>2")
22891 ("trunc<BFP:mode><DFP_ALL:mode>2")
22892 ("trunc<DFP_ALL:mode><BFP:mode>2")
22893 ("*extend<BFP:mode><DFP_ALL:mode>2")
22894 ("*extend<DFP_ALL:mode><BFP:mode>2")
22895 ("extend<BFP:mode><DFP_ALL:mode>2")
22896 ("extend<DFP_ALL:mode><BFP:mode>2"): Replace FPR2_REGNUM with
22899 2013-07-08 Graham Stott <graham.stott@btinternet.com>
22901 * Makefile.in: (c-family-warn): Define to $(STRICT_WARN)
22903 2013-07-08 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
22905 * config/s390/s390.c: Rename cfun_set_fpr_bit to cfun_set_fpr_save
22906 and cfun_fpr_bit_p to cfun_fpr_save_p.
22907 (s390_frame_area, s390_register_info, s390_frame_info)
22908 (s390_emit_prologue, s390_emit_epilogue)
22909 (s390_conditional_register_usage): Use the *_REGNUM macros for FPR
22911 * config/s390/s390.h: Define *_REGNUM macros for floating point
22914 2013-07-08 Eric Botcazou <ebotcazou@adacore.com>
22916 * Makefile.in (tree-ssa-reassoc.o): Add dependency on $(PARAMS_H).
22918 2013-07-08 Po-Chun Chang <pchang9@cs.wisc.edu>
22920 PR rtl-optimization/57786
22921 * combine.c (distribute_notes) <case REG_DEAD>: Change all_used to bool
22922 and break out of the loop when it is set to false.
22924 2013-07-08 Jakub Jelinek <jakub@redhat.com>
22927 * simplify-rtx.c (simplify_unary_operation_1) <case ZERO_EXTEND>:
22928 Simplify (zero_extend:SI (subreg:QI (and:SI (reg:SI)
22929 (const_int 63)) 0)).
22930 * combine.c (make_extraction): Create ZERO_EXTEND or SIGN_EXTEND
22931 using simplify_gen_unary instead of gen_rtx_*_EXTEND.
22932 * config/i386/i386.md (*jcc_bt<mode>_1): New define_insn_and_split.
22934 PR rtl-optimization/57829
22935 * simplify-rtx.c (simplify_binary_operation_1) <case IOR>: Ensure that
22936 mask bits outside of mode are just sign-extension from mode to HWI.
22938 2013-07-08 Michael Zolotukhin <michael.v.zolotukhin@gmail.com>
22940 * config/i386/i386-opts.h (enum stringop_alg): Add vector_loop.
22941 * config/i386/i386.c (expand_set_or_movmem_via_loop): Use
22942 adjust_address instead of change_address to keep info about alignment.
22943 (emit_strmov): Remove.
22944 (emit_memmov): New function.
22945 (expand_movmem_epilogue): Refactor to properly handle bigger sizes.
22946 (expand_movmem_epilogue): Likewise and return updated rtx for
22948 (expand_constant_movmem_prologue): Likewise and return updated rtx for
22949 destination and source.
22950 (decide_alignment): Refactor, handle vector_loop.
22951 (ix86_expand_movmem): Likewise.
22952 (ix86_expand_setmem): Likewise.
22953 * config/i386/i386.opt (Enum): Add vector_loop to option stringop_alg.
22955 2013-07-07 Uros Bizjak <ubizjak@gmail.com>
22957 * config/i386/driver-i386.c (host_detect_local_cpu): Do not check
22958 signature_TM2_ebx, it interferes with signature_INTEL_ebx.
22960 2013-07-06 Uros Bizjak <ubizjak@gmail.com>
22962 * config/i386/sse.md (sse_movlhps): Change alternative 3
22963 of operand 2 to "m".
22965 2013-07-06 Uros Bizjak <ubizjak@gmail.com>
22968 * config/i386/sse.md (iptr): New mode attribute.
22969 (sse2_movq128): Add pointer size overrides for Intel asm dialect.
22970 (<sse>_vm<plusminus_insn><mode>3): Ditto.
22971 (<sse>_vmmul<mode>3): Ditto.
22972 (<sse>_vmdiv<mode>3): Ditto.
22973 (sse_vmrcpv4sf2): Ditto.
22974 (<sse>_vmsqrt<mode>2): Ditto.
22975 (sse_vmrsqrtv4sf2): Ditto.
22976 (<sse>_vm<code><mode>3): Ditto.
22977 (avx_vmcmp<mode>3): Ditto.
22978 (<sse>_vmmaskcmp<mode>3): Ditto.
22979 (<sse>_comi): Ditto.
22980 (<sse>_ucomi): Ditto.
22981 (*xop_vmfrcz_<mode>): Ditto.
22982 (*fmai_fmadd_<mode>): Ditto.
22983 (*fmai_fmsub_<mode>): Ditto.
22984 (*fmai_fnmadd_<mode>): Ditto.
22985 (*fmai_fnmsub_<mode>): Ditto.
22986 (*fma4i_vmfmadd_<mode>): Ditto.
22987 (*fma4i_vmfmsub_<mode>): Ditto.
22988 (*fma4i_vmfnmadd_<mode>): Ditto.
22989 (*fma4i_vmfnmsub_<mode>): Ditto.
22990 (*xop_vmfrcz_<mode>): Ditto.
22991 (sse_cvtps2pi): Ditto.
22992 (sse_cvttps2pi): Ditto.
22993 (sse_cvtss2si): Ditto.
22994 (sse_cvtss2si_2): Ditto.
22995 (sse_cvtss2siq_2): Ditto.
22996 (sse_cvttss2si): Ditto.
22997 (sse_cvttss2siq): Ditto.
22998 (sse_cvtsd2si): Ditto.
22999 (sse_cvtsd2si_2): Ditto.
23000 (sse_cvtsd2siq_2): Ditto.
23001 (sse_cvttsd2si): Ditto.
23002 (sse_cvttsd2siq): Ditto.
23003 (sse_cvtsd2ss): Ditto.
23004 (sse_cvtss2sd): Ditto.
23005 (avx2_pbroadcast<mode>): Ditto.
23006 (avx2_pbroadcast<mode>_1): Ditto.
23007 (*avx_vperm_broadcast_v4sf): Ditto.
23009 (sse_movhlps): Ditto for movlp[sd]/movhp[sd] alternatives.
23010 (sse_movlhps): Ditto.
23011 (sse_storehps): Ditto.
23012 (sse_loadhps): Ditto.
23013 (sse_storelps): Ditto.
23014 (sse_loadlps): Ditto.
23015 (*vec_concatv4sf): Ditto.
23016 (*vec_interleave_highv2df): Ditto.
23017 (*vec_interleave_lowv2df): Ditto.
23018 (*vec_extractv2df_1_sse): Ditto.
23019 (*vec_extractv2df_0_sse): Ditto.
23020 (sse2_storelpd): Ditto.
23021 (sse2_loadlpd): Ditto.
23022 (sse2_movsd): Ditto.
23023 (*vec_concatv4si): Ditto.
23024 (vec_concatv2di): Ditto.
23026 * config/i386/mmx.md (mmx_punpcklbw): Add pointer size overrides
23027 for Intel asm dialect.
23028 (mmx_punpcklwd): Ditto.
23029 (mmx_punpckldq): Ditto.
23031 * config/i386/i386.c (ix86_print_operand) ['H']: Output 'qword ptr'
23032 for intel assembler dialect.
23034 2013-07-06 Jakub Jelinek <jakub@redhat.com>
23037 * fold-const.c (tree_call_nonnegative_warnv_p): Return true
23038 for BUILT_IN_C{LZ,LRSB}*.
23039 * tree.h (CASE_INT_FN): Add FN##IMAX case.
23040 * tree-vrp.c (extract_range_basic): Handle
23041 BUILT_IN_{FFS,PARITY,POPCOUNT,C{LZ,TZ,LRSB}}*. For
23042 BUILT_IN_CONSTANT_P if argument isn't (D) of PARM_DECL,
23043 fall thru to code calling set_value*.
23044 * builtins.c (expand_builtin): Remove *IMAX cases.
23045 (fold_builtin_bitop): For BUILT_IN_CLRSB* return NULL_TREE
23046 if width is bigger than 2*HWI.
23048 2013-07-05 Vladimir Makarov <vmakarov@redhat.com>
23050 PR rtl-optimization/55342
23051 * lra-int.h (lra_subreg_reload_pseudos): New.
23052 * lra.c: Add undoing optional reloads to the block diagram.
23053 (lra_subreg_reload_pseudos): New.
23054 (lra_optional_reload_pseudos): Change comments.
23055 (lra): Init and clear lra_subreg_reload_pseudos. Clear
23056 lra_optional_reload_pseudos after undo transformations.
23057 * lra-assigns.c (pseudo_prefix_title): New.
23058 (lra_setup_reg_renumber): Use it.
23059 (spill_for): Ditto. Check subreg reload pseudos too.
23060 (assign_by_spills): Consider subreg reload pseudos too.
23061 * lra-constraints.c (simplify_operand_subreg): Use
23062 lra_subreg_reload_pseudos instead of lra_optional_reload_pseudos.
23063 (curr_insn_transform): Recognize and do optional reloads.
23064 (undo_optional_reloads): New.
23065 (lra_undo_inheritance): Call undo_optional_reloads.
23067 2013-07-05 Thomas Quinot <quinot@adacore.com>
23069 * tree-complex.c (expand_complex_operations_1): Fix typo.
23071 2013-07-04 Tejas Belagod <tejas.belagod@arm.com>
23073 * config/aarch64/aarch64-protos.h (cpu_vector_cost): New.
23074 (tune_params): New member 'const vec_costs'.
23075 * config/aarch64/aarch64.c (generic_vector_cost): New.
23076 (generic_tunings): New member 'generic_vector_cost'.
23077 (aarch64_builtin_vectorization_cost): New.
23078 (aarch64_add_stmt_cost): New.
23079 (TARGET_VECTORIZE_ADD_STMT_COST): New.
23080 (TARGET_VECTORIZE_BUILTIN_VECTORIZATION_COST): New.
23082 2013-07-03 Jakub Jelinek <jakub@redhat.com>
23085 * config/i386/predicates.md (vsib_address_operand): Disallow
23086 SYMBOL_REF or LABEL_REF in parts.disp if TARGET_64BIT && flag_pic.
23088 2013-07-03 Hans-Peter Nilsson <hp@bitrange.com>
23090 PR middle-end/55030
23091 * stmt.c (expand_nl_goto_receiver): Remove almost-copy of
23092 expand_builtin_setjmp_receiver.
23093 (expand_label): Adjust, call expand_builtin_setjmp_receiver
23094 with NULL for the label parameter.
23095 * builtins.c (expand_builtin_setjmp_receiver): Don't clobber
23096 the frame-pointer. Adjust comments.
23097 [HAVE_builtin_setjmp_receiver]: Emit builtin_setjmp_receiver
23098 only if LABEL is non-NULL.
23100 2013-07-03 Yufeng Zhang <yufeng.zhang@arm.com>
23102 * config/aarch64/aarch64.h (enum arm_abi_type): Remove.
23103 (ARM_ABI_AAPCS64): Ditto.
23105 (ARM_DEFAULT_ABI): Ditto.
23107 2013-07-03 James Greenhalgh <james.greenhalgh@arm.com>
23109 * config/aarch64/aarch64-builtins.c
23110 (aarch64_simd_expand_builtin): Handle AARCH64_SIMD_STORE1.
23111 * config/aarch64/aarch64-simd-builtins.def (ld1): New.
23113 * config/aarch64/aarch64-simd.md
23114 (aarch64_ld1<VALL:mode>): New.
23115 (aarch64_st1<VALL:mode>): Likewise.
23116 * config/aarch64/arm_neon.h
23117 (vld1<q>_<fpsu><8, 16, 32, 64>): Convert to RTL builtins.
23119 2013-07-02 Sriraman Tallam <tmsriram@google.com>
23121 * config/i386/i386.c (gate_insert_vzeroupper): Check if
23123 (ix86_option_override_internal):Turn on all -mavx target flags by
23124 default as they are dependent on AVX anyway.
23126 2013-07-02 Cary Coutant <ccoutant@google.com>
23128 * dwarf2out.c (loc_checksum): Call hash_loc_operands for a
23129 deterministic hash.
23130 (loc_checksum_ordered): Likewise.
23131 (hash_loc_operands): Remove inline keyword.
23133 2013-07-02 Jakub Jelinek <jakub@redhat.com>
23135 PR tree-optimization/57741
23136 * tree-vect-loop.c (vect_is_simple_iv_evolution): Disallow
23137 non-INTEGRAL_TYPE_P non-SCALAR_FLOAT_TYPE_P SSA_NAME step_exprs,
23138 or SCALAR_FLOAT_TYPE_P SSA_NAMEs if !flag_associative_math.
23139 Allow REAL_CST step_exprs if flag_associative_math.
23140 (get_initial_def_for_induction): Handle SCALAR_FLOAT_TYPE_P step_expr.
23142 2013-07-02 Ian Bolton <ian.bolton@arm.com>
23144 * config/aarch64/aarch64-simd.md (absdi2): Support abs for DI mode.
23146 2013-07-02 Ian Bolton <ian.bolton@arm.com>
23148 * config/aarch64/aarch64.md (*extr_insv_reg<mode>): New pattern.
23150 2013-07-02 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
23152 * config/arm/arm.md (arm_andsi3_insn): Add alternatives for 16-bit
23154 (iorsi3_insn): Likewise.
23155 (arm_xorsi3): Likewise.
23157 2013-07-01 Sofiane Naci <sofiane.naci@arm.com>
23159 * arm.md (attribute "wtype"): Delete. Move attribute values from here
23161 (attribute "type"): ... here, and prefix with "wmmx_".
23162 (attribute "core_cycles"): Update for attribute changes.
23163 * iwmmxt.md (tbcstv8qi): Update for attribute changes.
23164 (tbcstv4hi): Likewise.
23165 (tbcstv2si): Likewise.
23166 (iwmmxt_iordi3): Likewise.
23167 (iwmmxt_xordi3): Likewise.
23168 (iwmmxt_anddi3): Likewise.
23169 (iwmmxt_nanddi3): Likewise.
23170 (iwmmxt_arm_movdi): Likewise.
23171 (iwmmxt_movsi_insn): Likewise.
23172 (mov<mode>_internal): Likewise.
23173 (and<mode>3_iwmmxt): Likewise.
23174 (ior<mode>3_iwmmxt): Likewise.
23175 (xor<mode>3_iwmmxt): Likewise.
23176 (add<mode>3_iwmmxt): Likewise.
23177 (ssaddv8qi3): Likewise.
23178 (ssaddv4hi3): Likewise.
23179 (ssaddv2si3): Likewise.
23180 (usaddv8qi3): Likewise.
23181 (usaddv4hi3): Likewise.
23182 (usaddv2si3): Likewise.
23183 (sub<mode>3_iwmmxt): Likewise.
23184 (sssubv8qi3): Likewise.
23185 (sssubv4hi3): Likewise.
23186 (sssubv2si3): Likewise.
23187 (ussubv8qi3): Likewise.
23188 (ussubv4hi3): Likewise.
23189 (ussubv2si3): Likewise.
23190 (mulv4hi3_iwmmxt): Likewise.
23191 (smulv4hi3_highpart): Likewise.
23192 (umulv4hi3_highpart): Likewise.
23193 (iwmmxt_wmacs): Likewise.
23194 (iwmmxt_wmacsz): Likewise.
23195 (iwmmxt_wmacu): Likewise.
23196 (iwmmxt_wmacuz): Likewise.
23197 (iwmmxt_clrdi): Likewise.
23198 (iwmmxt_clrv8qi): Likewise.
23199 (iwmmxt_clr4hi): Likewise.
23200 (iwmmxt_clr2si): Likewise.
23201 (iwmmxt_uavgrndv8qi3): Likewise.
23202 (iwmmxt_uavgrndv4hi3): Likewise.
23203 (iwmmxt_uavgv8qi3): Likewise.
23204 (iwmmxt_uavgv4hi3): Likewise.
23205 (iwmmxt_tinsrb): Likewise.
23206 (iwmmxt_tinsrh): Likewise.
23207 (iwmmxt_tinsrw): Likewise.
23208 (iwmmxt_textrmub): Likewise.
23209 (iwmmxt_textrmsb): Likewise.
23210 (iwmmxt_textrmuh): Likewise.
23211 (iwmmxt_textrmsh): Likewise.
23212 (iwmmxt_textrmw): Likewise.
23213 (iwmxxt_wshufh): Likewise.
23214 (eqv8qi3): Likewise.
23215 (eqv4hi3): Likewise.
23216 (eqv2si3): Likewise.
23217 (gtuv8qi3): Likewise.
23218 (gtuv4hi3): Likewise.
23219 (gtuv2si3): Likewise.
23220 (gtv8qi3): Likewise.
23221 (gtv4hi3): Likewise.
23222 (gtv2si3): Likewise.
23223 (smax<mode>3_iwmmxt): Likewise.
23224 (umax<mode>3_iwmmxt): Likewise.
23225 (smin<mode>3_iwmmxt): Likewise.
23226 (umin<mode>3_iwmmxt): Likewise.
23227 (iwmmxt_wpackhss): Likewise.
23228 (iwmmxt_wpackwss): Likewise.
23229 (iwmmxt_wpackdss): Likewise.
23230 (iwmmxt_wpackhus): Likewise.
23231 (iwmmxt_wpackwus): Likewise.
23232 (iwmmxt_wpackdus): Likewise.
23233 (iwmmxt_wunpckihb): Likewise.
23234 (iwmmxt_wunpckihh): Likewise.
23235 (iwmmxt_wunpckihw): Likewise.
23236 (iwmmxt_wunpckilb): Likewise.
23237 (iwmmxt_wunpckilh): Likewise.
23238 (iwmmxt_wunpckilw): Likewise.
23239 (iwmmxt_wunpckehub): Likewise.
23240 (iwmmxt_wunpckehuh): Likewise.
23241 (iwmmxt_wunpckehuw): Likewise.
23242 (iwmmxt_wunpckehsb): Likewise.
23243 (iwmmxt_wunpckehsh): Likewise.
23244 (iwmmxt_wunpckehsw): Likewise.
23245 (iwmmxt_wunpckelub): Likewise.
23246 (iwmmxt_wunpckeluh): Likewise.
23247 (iwmmxt_wunpckeluw): Likewise.
23248 (iwmmxt_wunpckelsb): Likewise.
23249 (iwmmxt_wunpckelsh): Likewise.
23250 (iwmmxt_wunpckelsw): Likewise.
23251 (ror<mode>3): Likewise.
23252 (ashr<mode>3_iwmmxt): Likewise.
23253 (lshr<mode>3_iwmmxt): Likewise.
23254 (ashl<mode>3_iwmmxt): Likewise.
23255 (ror<mode>3_di): Likewise.
23256 (ashr<mode>3_di): Likewise.
23257 (lshr<mode>3_di): Likewise.
23258 (ashl<mode>3_di): Likewise.
23259 (iwmmxt_wmadds): Likewise.
23260 (iwmmxt_wmaddu): Likewise.
23261 (iwmmxt_tmia): Likewise.
23262 (iwmmxt_tmiaph): Likewise.
23263 (iwmmxt_tmiabb): Likewise.
23264 (iwmmxt_tmiatb): Likewise.
23265 (iwmmxt_tmiabt): Likewise.
23266 (iwmmxt_tmiatt): Likewise.
23267 (iwmmxt_tmovmskb): Likewise.
23268 (iwmmxt_tmovmskh): Likewise.
23269 (iwmmxt_tmovmskw): Likewise.
23270 (iwmmxt_waccb): Likewise.
23271 (iwmmxt_wacch): Likewise.
23272 (iwmmxt_waccw): Likewise.
23273 (iwmmxt_waligni): Likewise.
23274 (iwmmxt_walignr): Likewise.
23275 (iwmmxt_walignr0): Likewise.
23276 (iwmmxt_walignr1): Likewise.
23277 (iwmmxt_walignr2): Likewise.
23278 (iwmmxt_walignr3): Likewise.
23279 (iwmmxt_wsadb): Likewise.
23280 (iwmmxt_wsadh): Likewise.
23281 (iwmmxt_wsadbz): Likewise.
23282 (iwmmxt_wsadhz): Likewise.
23283 * iwmmxt2.md (iwmmxt_wabs<mode>3): Update for attribute changes.
23284 (iwmmxt_wabsdiffb): Likewise.
23285 (iwmmxt_wabsdiffh): Likewise.
23286 (iwmmxt_wabsdiffw): Likewise.
23287 (iwmmxt_waddsubhx): Likewise
23288 (iwmmxt_wsubaddhx): Likewise.
23289 (addc<mode>3): Likewise.
23290 (iwmmxt_avg4): Likewise.
23291 (iwmmxt_avg4r): Likewise.
23292 (iwmmxt_wmaddsx): Likewise.
23293 (iwmmxt_wmaddux): Likewise.
23294 (iwmmxt_wmaddsn): Likewise.
23295 (iwmmxt_wmaddun): Likewise.
23296 (iwmmxt_wmulwsm): Likewise.
23297 (iwmmxt_wmulwum): Likewise.
23298 (iwmmxt_wmulsmr): Likewise.
23299 (iwmmxt_wmulumr): Likewise.
23300 (iwmmxt_wmulwsmr): Likewise.
23301 (iwmmxt_wmulwumr): Likewise.
23302 (iwmmxt_wmulwl): Likewise.
23303 (iwmmxt_wqmulm): Likewise.
23304 (iwmmxt_wqmulwm): Likewise.
23305 (iwmmxt_wqmulmr): Likewise.
23306 (iwmmxt_wqmulwmr): Likewise.
23307 (iwmmxt_waddbhusm): Likewise.
23308 (iwmmxt_waddbhusl): Likewise.
23309 (iwmmxt_wqmiabb): Likewise.
23310 (iwmmxt_wqmiabt): Likewise.
23311 (iwmmxt_wqmiatb): Likewise.
23312 (iwmmxt_wqmiatt): Likewise.
23313 (iwmmxt_wqmiabbn): Likewise.
23314 (iwmmxt_wqmiabtn): Likewise.
23315 (iwmmxt_wqmiatbn): Likewise.
23316 (iwmmxt_wqmiattn): Likewise.
23317 (iwmmxt_wmiabb): Likewise.
23318 (iwmmxt_wmiabt): Likewise.
23319 (iwmmxt_wmiatb): Likewise.
23320 (iwmmxt_wmiatt): Likewise.
23321 (iwmmxt_wmiabbn): Likewise.
23322 (iwmmxt_wmiabtn): Likewise.
23323 (iwmmxt_wmiatbn): Likewise.
23324 (iwmmxt_wmiattn): Likewise.
23325 (iwmmxt_wmiawbb): Likewise.
23326 (iwmmxt_wmiawbt): Likewise.
23327 (iwmmxt_wmiawtb): Likewise.
23328 (iwmmxt_wmiawtt): Likewise.
23329 (iwmmxt_wmiawbbn): Likewise.
23330 (iwmmxt_wmiawbtn): Likewise.
23331 (iwmmxt_wmiawtbn): Likewise.
23332 (iwmmxt_wmiawttn): Likewise.
23333 (iwmmxt_wmerge): Likewise.
23334 (iwmmxt_tandc<mode>3): Likewise.
23335 (iwmmxt_torc<mode>3): Likewise.
23336 (iwmmxt_torvsc<mode>3): Likewise.
23337 (iwmmxt_textrc<mode>3): Likewise.
23338 * marvell-f-iwmmxt.md (wmmxt_shift): Update for attribute changes.
23339 (wmmxt_pack): Likewise.
23340 (wmmxt_mult_c1): Likewise.
23341 (wmmxt_mult_c2): Likewise.
23342 (wmmxt_alu_c1): Likewise.
23343 (wmmxt_alu_c2): Likewise.
23344 (wmmxt_alu_c3): Likewise.
23345 (wmmxt_transfer_c1): Likewise.
23346 (wmmxt_transfer_c2): Likewise.
23347 (wmmxt_transfer_c3): Likewise.
23348 (marvell_f_iwmmxt_wstr): Likewise.
23349 (marvell_f_iwmmxt_wldr): Likewise.
23351 2013-06-29 Yufeng Zhang <yufeng.zhang@arm.com>
23353 * config/aarch64/aarch64.c: Remove junk from the beginning of the file.
23355 2013-06-28 Vladimir Makarov <vmakarov@redhat.com>
23358 2013-06-28 Vladimir Makarov <vmakarov@redhat.com>
23359 * lra-constraints.c (need_for_split_p): Check call used hard regs
23360 living through calls.
23362 * lra-constraints.c (inherit_in_ebb): Reset live_hard_regs for
23363 call used regs for call insn.
23365 2013-06-28 Jakub Jelinek <jakub@redhat.com>
23368 * config/i386/i386.c (ix86_expand_builtin): If target == NULL and
23369 mode is VOIDmode, don't create a VOIDmode pseudo to copy result into.
23371 2013-06-28 Balaji V. Iyer <balaji.v.iyer@intel.com>
23373 * builtins.def: Fixed the function type of CILKPLUS_BUILTIN.
23375 2013-06-28 Vladimir Makarov <vmakarov@redhat.com>
23377 * lra-constraints.c (need_for_split_p): Check call used hard regs
23378 living through calls.
23380 2013-06-28 Michael Meissner <meissner@linux.vnet.ibm.com>
23383 * config/rs6000/rs6000.h (MODES_TIEABLE_P): Do not allow PTImode
23384 to tie with any other modes. Eliminate Altivec vector mode tests,
23385 since these are a subset of ALTIVEC or VSX vector modes. Simplify
23386 code, to return 0 if testing MODE2 for a condition, if we've
23387 already tested MODE1 for the same condition.
23389 2013-06-28 Marcus Shawcroft <marcus.shawcroft@arm.com>
23391 * config/aarch64/aarch64.c (aarch64_cannot_force_const_mem): Adjust
23394 2013-06-28 Marcus Shawcroft <marcus.shawcroft@arm.com>
23396 * config/aarch64/aarch64-protos.h (aarch64_symbol_type):
23397 Update comment w.r.t SYMBOL_TINY_ABSOLUTE.
23399 2013-06-28 Marcus Shawcroft <marcus.shawcroft@arm.com>
23401 * config/aarch64/aarch64-protos.h (aarch64_classify_symbol_expression):
23403 (aarch64_symbolic_constant_p): Remove.
23404 * config/aarch64/aarch64.c (aarch64_classify_symbol_expression): Remove
23405 static. Fix line length and white space.
23406 (aarch64_symbolic_constant_p): Remove.
23407 * config/aarch64/predicates.md (aarch64_valid_symref):
23408 Use aarch64_classify_symbol_expression.
23410 2013-06-28 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
23412 * config/arm/constraints.md (Ts): New constraint.
23413 * config/arm/arm.md (arm_movqi_insn): Add alternatives for
23415 (compare_scc): Use "Ts" constraint for operand 0.
23416 (ior_scc_scc): Likewise.
23417 (and_scc_scc): Likewise.
23418 (and_scc_scc_nodom): Likewise.
23419 (ior_scc_scc_cmp): Likewise for operand 7.
23420 (and_scc_scc_cmp): Likewise.
23421 * config/arm/thumb2.md (thumb2_movsi_insn):
23422 Add alternatives for 16-bit encodings.
23423 (thumb2_movhi_insn): Likewise.
23424 (thumb2_movsicc_insn): Likewise.
23425 (thumb2_and_scc): Take 'and' outside cond_exec. Use "Ts" constraint.
23426 (thumb2_negscc): Use "Ts" constraint.
23427 Move mvn instruction outside cond_exec block.
23428 * config/arm/vfp.md (thumb2_movsi_vfp): Add alternatives
23429 for 16-bit encodings.
23431 2013-06-28 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
23433 * config/arm/arm.md (arm_mulsi3_v6): Add alternative for 16-bit
23435 (mulsi3addsi_v6): Disable predicable variant for arm_restrict_it.
23436 (mulsi3subsi): Likewise.
23437 (mulsidi3adddi): Likewise.
23438 (mulsidi3_v6): Likewise.
23439 (umulsidi3_v6): Likewise.
23440 (umulsidi3adddi_v6): Likewise.
23441 (smulsi3_highpart_v6): Likewise.
23442 (umulsi3_highpart_v6): Likewise.
23443 (mulhisi3tb): Likewise.
23444 (mulhisi3bt): Likewise.
23445 (mulhisi3tt): Likewise.
23446 (maddhisi4): Likewise.
23447 (maddhisi4tb): Likewise.
23448 (maddhisi4tt): Likewise.
23449 (maddhidi4): Likewise.
23450 (maddhidi4tb): Likewise.
23451 (maddhidi4tt): Likewise.
23452 (zeroextractsi_compare0_scratch): Likewise.
23453 (insv_zero): Likewise.
23454 (insv_t2): Likewise.
23455 (anddi_notzesidi_di): Likewise.
23456 (anddi_notsesidi_di): Likewise.
23457 (andsi_notsi_si): Likewise.
23458 (iordi_zesidi_di): Likewise.
23459 (xordi_zesidi_di): Likewise.
23460 (andsi_iorsi3_notsi): Likewise.
23461 (smax_0): Likewise.
23462 (smax_m1): Likewise.
23463 (smin_0): Likewise.
23464 (not_shiftsi): Likewise.
23465 (unaligned_loadsi): Likewise.
23466 (unaligned_loadhis): Likewise.
23467 (unaligned_loadhiu): Likewise.
23468 (unaligned_storesi): Likewise.
23469 (unaligned_storehi): Likewise.
23470 (extv_reg): Likewise.
23471 (extzv_t2): Likewise.
23472 (divsi3): Likewise.
23473 (udivsi3): Likewise.
23474 (arm_zero_extendhisi2addsi): Likewise.
23475 (arm_zero_extendqisi2addsi): Likewise.
23476 (compareqi_eq0): Likewise.
23477 (arm_extendhisi2_v6): Likewise.
23478 (arm_extendqisi2addsi): Likewise.
23479 (arm_movt): Likewise.
23480 (thumb2_ldrd): Likewise.
23481 (thumb2_ldrd_base): Likewise.
23482 (thumb2_ldrd_base_neg): Likewise.
23483 (thumb2_strd): Likewise.
23484 (thumb2_strd_base): Likewise.
23485 (thumb2_strd_base_neg): Likewise.
23486 (arm_negsi2): Add alternative for 16-bit encoding.
23487 (arm_one_cmplsi2): Likewise.
23489 2013-06-28 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
23491 * config/arm/predicates.md (arm_cond_move_operator): New predicate.
23492 * config/arm/arm.md (movsfcc): Use arm_cond_move_operator predicate.
23493 (movdfcc): Likewise.
23494 * config/arm/vfp.md (*thumb2_movsf_vfp):
23495 Disable predication for arm_restrict_it.
23496 (*thumb2_movsfcc_vfp): Disable for arm_restrict_it.
23497 (*thumb2_movdfcc_vfp): Likewise.
23498 (*abssf2_vfp, *absdf2_vfp, *negsf2_vfp, *negdf2_vfp,*addsf3_vfp,
23499 *adddf3_vfp, *subsf3_vfp, *subdf3_vfpc, *divsf3_vfp,*divdf3_vfp,
23500 *mulsf3_vfp, *muldf3_vfp, *mulsf3negsf_vfp, *muldf3negdf_vfp,
23501 *mulsf3addsf_vfp, *muldf3adddf_vfp, *mulsf3subsf_vfp,
23502 *muldf3subdf_vfp, *mulsf3negsfaddsf_vfp, *fmuldf3negdfadddf_vfp,
23503 *mulsf3negsfsubsf_vfp, *muldf3negdfsubdf_vfp, *fma<SDF:mode>4,
23504 *fmsub<SDF:mode>4, *fnmsub<SDF:mode>4, *fnmadd<SDF:mode>4,
23505 *extendsfdf2_vfp, *truncdfsf2_vfp, *extendhfsf2, *truncsfhf2,
23506 *truncsisf2_vfp, *truncsidf2_vfp, fixuns_truncsfsi2, fixuns_truncdfsi2,
23507 *floatsisf2_vfp, *floatsidf2_vfp, floatunssisf2, floatunssidf2,
23508 *sqrtsf2_vfp, *sqrtdf2_vfp, *cmpsf_vfp, *cmpsf_trap_vfp, *cmpdf_vfp,
23509 *cmpdf_trap_vfp, <vrint_pattern><SDF:mode>2):
23510 Disable predication for arm_restrict_it.
23512 2013-06-28 Kirill Yukhin <kirill.yukhin@intel.com>
23514 * config/i386/bmiintrin.h (_bextr_u32): New.
23515 (_bextr_u64): Ditto.
23517 2013-06-27 Richard Sandiford <rdsandiford@googlemail.com>
23519 * config.gcc (mips*-mti-elf*, mips*-sde-elf*, mips64r5900-*-elf*)
23520 (mips64r5900el-*-elf*): Include mips/n32-elf.h.
23521 * config/mips/sde.h (LOCAL_LABEL_PREFIX, NO_DOLLAR_IN_LABEL)
23522 (LONG_DOUBLE_TYPE_SIZE, LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Move to...
23523 * config/mips/n32-elf.h: ...this new file.
23525 2013-06-27 Marc Glisse <marc.glisse@inria.fr>
23528 * config/i386/i386.c (enum ix86_builtins, bdesc_args): Remove
23529 IX86_BUILTIN_CMPNGTSS and IX86_BUILTIN_CMPNGESS.
23531 2013-06-27 Catherine Moore <clm@codesourcery.com>
23533 * config/mips/mips-tables.opt: Regenerate.
23534 * config/mips/mips-cpus.def: Add m14ke and m14kec.
23535 * config/mips/mips.h (BASE_DRIVER_SELF_SPECS): m14ke* implies -mdspr2.
23536 * doc/invoke.texi: Add -m14kc.
23538 2013-06-27 Jakub Jelinek <jakub@redhat.com>
23541 * config/i386/i386.md (bmi_bextr_<mode>): Swap predicates and
23542 constraints of operand 1 and 2.
23545 * config/i386/i386.md (bmi2_bzhi_<mode>3): Swap AND arguments
23546 to match RTL canonicalization. Swap predicates and
23547 constraints of operand 1 and 2.
23549 2013-06-27 Vladimir Makarov <vmakarov@redhat.com>
23551 * lra-constraints.c (inherit_in_ebb): Process static hard regs too.
23552 Process OP_INOUT regs for splitting too.
23554 2013-06-27 Jakub Jelinek <jakub@redhat.com>
23556 * tree-vect-stmts.c (vectorizable_store): Move ptr_incr var
23557 decl before the loop, initialize to NULL.
23558 (vectorizable_load): Initialize ptr_incr to NULL.
23560 2013-06-27 Martin Jambor <mjambor@suse.cz>
23563 * ipa-ref.h (ipa_maybe_record_reference): Declare.
23564 * ipa-ref.c (ipa_maybe_record_reference): New function.
23565 * cgraphclones.c (cgraph_create_virtual_clone): Use it.
23566 * ipa-cp.c (create_specialized_node): Record potential references from
23568 * Makefile.in (ipa-ref.o): Add IPA_REF_H to dependencies.
23570 2013-06-27 Yufeng Zhang <yufeng.zhang@arm.com>
23572 * config/aarch64/aarch64.c (aarch64_force_temporary): Add an extra
23573 parameter 'mode' of type 'enum machine_mode mode'; change to pass
23574 'mode' to force_reg.
23575 (aarch64_add_offset): Update calls to aarch64_force_temporary.
23576 (aarch64_expand_mov_immediate): Likewise.
23578 2013-06-27 Yufeng Zhang <yufeng.zhang@arm.com>
23580 * config/aarch64/aarch64.c (aarch64_add_offset): Change to pass
23581 'mode' to aarch64_plus_immediate and gen_rtx_PLUS.
23583 2013-06-27 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
23585 * config/s390/s390.c: Rename UNSPEC_CCU_TO_INT to
23586 UNSPEC_STRCMPCC_TO_INT and UNSPEC_CCZ_TO_INT to UNSPEC_CC_TO_INT.
23587 (struct machine_function): Add tbegin_p.
23588 (s390_canonicalize_comparison): Fold CC mode compares to
23589 conditional jump if possible.
23590 (s390_emit_jump): Return the emitted jump.
23591 (s390_branch_condition_mask, s390_branch_condition_mnemonic):
23592 Handle CCRAWmode compares.
23593 (s390_option_override): Default to -mhtm if available.
23594 (s390_reg_clobbered_rtx): Handle floating point regs as well.
23595 (s390_regs_ever_clobbered): Use s390_regs_ever_clobbered also for
23596 FPRs instead of df_regs_ever_live_p.
23597 (s390_optimize_nonescaping_tx): New function.
23598 (s390_init_frame_layout): Extend clobbered_regs array to cover
23600 (s390_emit_prologue): Call s390_optimize_nonescaping_tx.
23601 (s390_expand_tbegin): New function.
23602 (enum s390_builtin): New enum definition.
23603 (code_for_builtin): New array definition.
23604 (s390_init_builtins): New function.
23605 (s390_expand_builtin): New function.
23606 (TARGET_INIT_BUILTINS): Define.
23607 (TARGET_EXPAND_BUILTIN): Define.
23608 * common/config/s390/s390-common.c (processor_flags_table): Add PF_TX.
23609 * config/s390/predicates.md (s390_comparison): Handle CCRAWmode.
23610 (s390_alc_comparison): Likewise.
23611 * config/s390/s390-modes.def: Add CCRAWmode.
23612 * config/s390/s390.h (processor_flags): Add PF_TX.
23613 (TARGET_CPU_HTM): Define macro.
23614 (TARGET_HTM): Define macro.
23615 (TARGET_CPU_CPP_BUILTINS): Define __HTM__ for htm.
23616 * config/s390/s390.md: Rename UNSPEC_CCU_TO_INT to
23617 UNSPEC_STRCMPCC_TO_INT and UNSPEC_CCZ_TO_INT to UNSPEC_CC_TO_INT.
23618 (UNSPECV_TBEGIN, UNSPECV_TBEGINC, UNSPECV_TEND, UNSPECV_TABORT)
23619 (UNSPECV_ETND, UNSPECV_NTSTG, UNSPECV_PPA): New unspecv enum values.
23620 (TBEGIN_MASK, TBEGINC_MASK): New constants.
23621 ("*cc_to_int"): Move up.
23622 ("*mov<mode>cc", "*cjump_64", "*cjump_31"): Accept integer
23623 constants other than 0.
23624 ("*ccraw_to_int"): New insn and splitter definition.
23625 ("tbegin", "tbegin_nofloat", "tbegin_retry")
23626 ("tbegin_retry_nofloat", "tbeginc", "tend", "tabort")
23627 ("tx_assist"): New expander.
23628 ("tbegin_1", "tbegin_nofloat_1", "*tbeginc_1", "*tend_1")
23629 ("*tabort_1", "etnd", "ntstg", "*ppa"): New insn definition.
23630 * config/s390/s390.opt: Add -mhtm option.
23631 * config/s390/s390-protos.h (s390_emit_jump): Add return type.
23632 * config/s390/htmxlintrin.h: New file.
23633 * config/s390/htmintrin.h: New file.
23634 * config/s390/s390intrin.h: New file.
23635 * doc/extend.texi: Document htm builtins.
23636 * config.gcc: Add the new header files to extra_headers.
23638 2013-06-26 Thomas Schwinge <thomas@codesourcery.com>
23640 * config/i386/gnu.h [TARGET_LIBC_PROVIDES_SSP]
23641 (TARGET_CAN_SPLIT_STACK, TARGET_THREAD_SPLIT_STACK_OFFSET): Undefine.
23643 2013-06-26 Michael Meissner <meissner@linux.vnet.ibm.com>
23644 Pat Haugen <pthaugen@us.ibm.com>
23645 Peter Bergner <bergner@vnet.ibm.com>
23647 * config/rs6000/power8.md: New.
23648 * config/rs6000/rs6000-cpus.def (RS6000_CPU table): Adjust processor
23649 setting for power8 entry.
23650 * config/rs6000/t-rs6000 (MD_INCLUDES): Add power8.md.
23651 * config/rs6000/rs6000.c (is_microcoded_insn, is_cracked_insn): Adjust
23652 test for Power4/Power5 only.
23653 (insn_must_be_first_in_group, insn_must_be_last_in_group): Add Power8
23655 (force_new_group): Adjust comment.
23656 * config/rs6000/rs6000.md: Include power8.md.
23658 2013-06-26 Greta Yorsh <Greta.Yorsh@arm.com>
23660 * config/arm/arm.h (MAX_CONDITIONAL_EXECUTE): Define macro.
23661 * config/arm/arm-protos.h (arm_max_conditional_execute): New
23663 (tune_params): Update comment.
23664 * config/arm/arm.c (arm_cortex_a15_tune): Set max_cond_insns to 2.
23665 (arm_max_conditional_execute): New function.
23666 (thumb2_final_prescan_insn): Use max_insn_skipped and
23667 MAX_INSN_PER_IT_BLOCK to compute maximum instructions in a block.
23669 2013-06-25 Jakub Jelinek <jakub@redhat.com>
23671 PR tree-optimization/57705
23672 * tree-vect-loop.c (vect_is_simple_iv_evolution): Allow
23673 SSA_NAME step, provided that it is not defined inside the loop.
23674 (vect_analyze_scalar_cycles_1): Disallow SSA_NAME step in nested loop.
23675 (get_initial_def_for_induction): Handle SSA_NAME IV step.
23677 2013-06-25 Martin Jambor <mjambor@suse.cz>
23679 PR middle-end/57670
23680 * cgraph.h (cgraph_indirect_call_info): New flag member_ptr.
23681 * ipa-prop.c (ipa_print_node_jump_functions): Mark member pointer
23683 (ipa_note_param_call): Initialize member_ptr flag.
23684 (ipa_analyze_indirect_call_uses): Set member_ptr flag.
23685 (ipa_make_edge_direct_to_target): Bail out if member_ptr is set.
23686 (ipa_write_indirect_edge_info): Stream member_ptr flag.
23687 (ipa_read_indirect_edge_info): Likewise.
23689 2013-06-25 Richard Biener <rguenther@suse.de>
23691 PR middle-end/56977
23692 * passes.c (init_optimization_passes): Move pass_fold_builtins
23693 and pass_dce earlier with -Og.
23695 2013-06-25 Eric Botcazou <ebotcazou@adacore.com>
23697 * expr.c (expand_expr_real_1) <ARRAY_REF>: Fix formatting glitches.
23698 <BIT_FIELD_REF>: Remove trailing TAB.
23699 * varasm.c (output_constructor_bitfield): Fix formatting glitch and
23702 2013-06-24 Martin Jambor <mjambor@suse.cz>
23704 PR tree-optimization/57358
23705 * ipa-prop.c (ipa_func_spec_opts_forbid_analysis_p): New function.
23706 (ipa_compute_jump_functions_for_edge): Bail out if it returns true.
23707 (ipa_analyze_params_uses): Generate pessimistic info when true.
23709 2013-06-24 Martin Jambor <mjambor@suse.cz>
23711 PR tree-optimization/57539
23712 * cgraphclones.c (cgraph_clone_node): Add parameter new_inlined_to, set
23713 global.inlined_to of the new node to it. All callers changed.
23714 * ipa-inline-transform.c (clone_inlined_nodes): New variable
23715 inlining_into, pass it to cgraph_clone_node.
23716 * ipa-prop.c (ipa_propagate_indirect_call_infos): Do not call
23717 ipa_free_edge_args_substructures.
23718 (ipa_edge_duplication_hook): Only add edges from inlined nodes to
23719 rdesc linked list. Do not assert rdesc edges have inlined caller.
23720 Assert we have found an rdesc in the rdesc list.
23722 2013-06-24 Richard Biener <rguenther@suse.de>
23724 * pointer-set.h (struct pointer_set_t): Move here from pointer-set.c.
23725 (pointer_set_lookup): Declare.
23726 (class pointer_map): New template class implementing a
23727 generic pointer to T map.
23728 (pointer_map<T>::pointer_map, pointer_map<T>::~pointer_map,
23729 pointer_map<T>::contains, pointer_map<T>::insert,
23730 pointer_map<T>::traverse): New functions.
23731 * pointer-set.c (struct pointer_set_t): Moved to pointer-set.h.
23732 (pointer_set_lookup): New function.
23733 (pointer_set_contains): Use pointer_set_lookup.
23734 (pointer_set_insert): Likewise.
23735 (insert_aux): Remove.
23736 (struct pointer_map_t): Embed a pointer_set_t.
23737 (pointer_map_create): Adjust.
23738 (pointer_map_destroy): Likewise.
23739 (pointer_map_contains): Likewise.
23740 (pointer_map_insert): Likewise.
23741 (pointer_map_traverse): Likewise.
23742 * tree-streamer.h (struct streamer_tree_cache_d): Use a
23743 pointer_map<unsigned> instead of a pointer_map_t.
23744 * tree-streamer.c (streamer_tree_cache_insert_1): Adjust.
23745 (streamer_tree_cache_lookup): Likewise.
23746 (streamer_tree_cache_create): Likewise.
23747 (streamer_tree_cache_delete): Likewise.
23748 * lto-streamer.h (struct lto_tree_ref_encoder): Use a
23749 pointer_map<unsigned> instead of a pointer_map_t.
23750 (lto_init_tree_ref_encoder): Adjust.
23751 (lto_destroy_tree_ref_encoder): Likewise.
23752 * lto-section-out.c (lto_output_decl_index): Likewise.
23753 (lto_record_function_out_decl_state): Likewise.
23754 * dominance.c (iterate_fix_dominators): Use pointer_map<int>.
23756 2013-06-24 Richard Biener <rguenther@suse.de>
23758 PR tree-optimization/57488
23759 * tree-ssa-pre.c (insert): Clear NEW sets before each iteration.
23761 2013-06-24 Alan Modra <amodra@gmail.com>
23763 * config/rs6000/rs6000.c (vspltis_constant): Correct for little-endian.
23764 (gen_easy_altivec_constant): Likewise.
23765 * config/rs6000/predicates.md (easy_vector_constant_add_self,
23766 easy_vector_constant_msb): Likewise.
23768 2013-06-23 Jakub Jelinek <jakub@redhat.com>
23771 * common/config/i386/i386-common.c (ix86_handle_option): For OPT_mlzcnt
23772 add missing return true.
23774 2013-06-23 Oleg Endo <olegendo@gcc.gnu.org>
23777 * config/sh/predicates.md (general_extend_operand): Invoke
23778 general_movsrc_operand for memory operands.
23779 (general_movsrc_operand): Allow reg+reg addressing, do not use
23780 general_operand for memory operands.
23782 2013-06-23 Sriraman Tallam <tmsriram@google.com>
23784 * config/i386/i386.c (ix86_pragma_target_parse): Restore target
23785 when current target options does not apply.
23786 * config/i386/i386-protos.h (ix86_reset_previous_fndecl): New function.
23787 * config/i386/i386.c (ix86_reset_previous_fndecl): Ditto.
23788 * config/i386/bmiintrin.h: Pass appropriate target
23789 attributes to header.
23790 * config/i386/mmintrin.h: Ditto.
23791 * config/i386/nmmintrin.h: Ditto.
23792 * config/i386/avx2intrin.h: Ditto.
23793 * config/i386/fxsrintrin.h: Ditto.
23794 * config/i386/tbmintrin.h: Ditto.
23795 * config/i386/xsaveintrin.h: Ditto.
23796 * config/i386/f16cintrin.h: Ditto.
23797 * config/i386/xtestintrin.h: Ditto.
23798 * config/i386/xsaveoptintrin.h: Ditto.
23799 * config/i386/bmi2intrin.h: Ditto.
23800 * config/i386/lzcntintrin.h: Ditto.
23801 * config/i386/smmintrin.h: Ditto.
23802 * config/i386/wmmintrin.h: Ditto.
23803 * config/i386/x86intrin.h: Remove all header include guards.
23804 * config/i386/prfchwintrin.h: Ditto.
23805 * config/i386/pmmintrin.h: Ditto.
23806 * config/i386/tmmintrin.h: Ditto.
23807 * config/i386/xmmintrin.h: Ditto.
23808 * config/i386/popcntintrin.h: Ditto.
23809 * config/i386/rdseedintrin.h: Ditto.
23810 * config/i386/ammintrin.h: Ditto.
23811 * config/i386/emmintrin.h: Ditto.
23812 * config/i386/immintrin.h: Remove all header include guards.
23813 * config/i386/fma4intrin.h: Ditto.
23814 * config/i386/lwpintrin.h: Ditto.
23815 * config/i386/xopintrin.h: Ditto.
23816 * config/i386/ia32intrin.h: Ditto.
23817 * config/i386/avxintrin.h: Ditto.
23818 * config/i386/rtmintrin.h: Ditto.
23819 * config/i386/fmaintrin.h: Ditto.
23820 * config/i386/mm3dnow.h: Ditto.
23822 2013-06-22 Sriraman Tallam <tmsriram@google.com>
23824 * common/config/i386/i386-common.c: Handle LZCNT.
23826 2013-06-22 Andi Kleen <ak@linux.intel.com>
23828 * doc/extend.texi: Use __atomic_store_n instead of
23829 __atomic_store in HLE example.
23831 2013-06-22 Oleg Endo <olegendo@gcc.gnu.org>
23833 * config/sh/sh.c: Remove <cstdlib> workaround.
23835 2013-06-21 Andi Kleen <ak@linux.intel.com>
23837 * doc/extend.texi: Dont use __atomic_clear in HLE example. Fix typo.
23839 2013-06-21 Andi Kleen <ak@linux.intel.com>
23841 * doc/extend.texi: Document that __atomic_clear and
23842 __atomic_test_and_set should only be used with bool.
23844 2013-06-20 Jan Hubicka <jh@suse.cz>
23846 * gimple-fold.c (gimple_extract_devirt_binfo_from_cst): Use
23847 types_same_for_odr.
23848 * tree.c (decls_same_for_odr): New function.
23849 (same_for_edr): New function.
23850 (types_same_for_odr): New function.
23851 (get_binfo_at_offset): Use it.
23852 * tree.h (types_same_for_odr): Declare.
23854 2013-06-20 Oleg Endo <olegendo@gcc.gnu.org>
23855 Jason Merrill <jason@redhat.com>
23857 * system.h: Include <cstdlib> as well as <stdlib.h>.
23859 2013-06-20 Uros Bizjak <ubizjak@gmail.com>
23862 * config/i386/i386.c (construct_container): Report error if
23863 long double is used with disabled x87 float returns.
23865 2013-06-20 Jan Hubicka <jh@suse.cz>
23867 * lto-cgraph.c (input_symtab): Do not set cgraph state.
23869 2013-06-20 Joern Rennecke <joern.rennecke@embecosm.com>
23871 PR rtl-optimization/57425
23872 PR rtl-optimization/57569
23873 * alias.c (write_dependence_p): Remove parameters mem_mode and
23874 canon_mem_addr. Add parameters x_mode, x_addr and x_canonicalized.
23875 Changed all callers.
23876 (canon_anti_dependence): Get comments and semantics in sync.
23877 Add parameter mem_canonicalized. Changed all callers.
23878 * rtl.h (canon_anti_dependence): Update prototype.
23880 2013-06-20 Richard Biener <rguenther@suse.de>
23882 * data-streamer-in.c (streamer_read_uhwi): Optimize single
23883 byte case, inline streamer_read_uchar and defer section
23886 2013-06-20 Richard Biener <rguenther@suse.de>
23888 PR tree-optimization/57584
23889 * tree-ssa-loop-niter.c (expand_simple_operations): Avoid including
23890 SSA names into the expanded expression that take part in
23891 abnormal coalescing.
23893 2013-06-19 Sharad Singhai <singhai@google.com>
23895 * gcov.c (print_usage): Handle new option.
23896 (process_args): Ditto.
23897 (get_gcov_intermediate_filename): New function.
23898 (output_intermediate_file): New function.
23899 (output_gcov_file): New function
23900 (generate_results): Handle new option.
23901 (release_function): Relase demangled name.
23902 (read_graph_file): Handle demangled name.
23903 (output_lines): Ditto.
23904 * doc/gcov.texi: Document gcov intermediate format.
23906 2013-06-19 Vladimir Makarov <vmakarov@redhat.com>
23909 * lra.c (emit_add3_insn, emit_add2_insn): New functions.
23910 (lra_emit_add): Use the functions. Add comment about Y as an
23913 2013-06-19 David Edelsohn <dje.gcc@gmail.com>
23916 * collect2.c (collect_atexit): New.
23917 (collect_exit): Delete.
23918 (main): Register collect_atexit with atexit.
23919 (collect_wait): Change collect_exit to exit.
23921 * collect2.h (collect_exit): Delete.
23922 * tlink.c (do_tlink): Rename exit to ret. Change collect_exit to exit.
23924 2013-06-19 Wei Mi <wmi@google.com>
23926 PR rtl-optimization/57518
23927 * ira.c (set_paradoxical_subreg): Set pdx_subregs[regno]
23928 if regno is used in paradoxical subreg.
23929 (update_equiv_regs): Check pdx_subregs[regno] before
23930 set a reg to be equivalent with a mem.
23932 2013-06-19 Matthias Klose <doko@ubuntu.com>
23935 * file-find.h (find_a_file): Add a mode parameter.
23936 * file-find.c (find_a_file): Likewise.
23937 * gcc-ar.c (main): Call find_a_file with R_OK for the plugin,
23938 with X_OK for the executables.
23939 * collect2.c (main): Call find_a_file with X_OK.
23941 2013-06-19 Steve Ellcey <sellcey@mips.com>
23944 * config/mips/mips.md (casesi_internal_mips16_<mode>):
23945 Use NEXT_INSN instead of next_real_insn.
23947 2013-06-19 Jan Hubicka <jh@suse.cz>
23949 * cgraph.h (const_value_known_p): Replace by ...
23950 (ctor_for_folding): .. this one.
23951 * cgraphunit.c (process_function_and_variable_attributes): Use it.
23952 * lto-cgraph.c (compute_ltrans_boundary): Use ctor_for_folding.
23953 * expr.c (expand_expr_real_1): Likewise.
23954 (string_constant): Likewise.
23955 * tree-ssa-loop-ivcanon.c (constant_after_peeling): Likewise.
23956 * ipa.c (process_references): Likewise.
23957 (symtab_remove_unreachable_nodes): Likewise.
23958 * ipa-inline-analysis.c (param_change_prob): Likewise.
23959 * gimple-fold.c (canonicalize_constructor_val): Likewise.
23960 (get_base_constructor): Likwise.
23961 * varpool.c (varpool_remove_node): Likewise.
23962 (varpool_remove_initializer): LIkewise.
23963 (dump_varpool_node): LIkwise.
23964 (const_value_known_p): Rewrite to ...
23965 (ctor_for_folding): ... this one.
23967 2013-06-19 Jakub Jelinek <jakub@redhat.com>
23970 * gcc-ar.c (main): If not CROSS_DIRECTORY_STRUCTURE, look for
23971 PERSONALITY in $PATH derived prefixes.
23973 2013-06-19 Jeff Law <law@redhat.com>
23975 * tree-ssa-forwprop.c (simplify_bitwise_binary_boolean): Fix typo
23978 * tree-ssa-forwprop.c (simplify_bitwise_binary_boolean): New function.
23979 (simplify_bitwise_binary): Use it to simpify certain binary ops on
23982 2013-06-19 Sofiane Naci <sofiane.naci@arm.com>
23984 * config/arm/vfp.md: Move VFP instruction classification documentation
23986 * config/arm/arm.md: ... here. Update instruction classification
23989 2013-06-19 Richard Earnshaw <rearnsha@arm.com>
23991 arm.md (split for eq(reg, 0)): Add variants for ARMv5 and Thumb2.
23992 (peepholes for eq(reg, not-0)): Ensure condition register is dead after
23993 pattern. Use more efficient sequences on ARMv5 and Thumb2.
23995 2013-06-19 Steven Bosscher <steven@gcc.gnu.org>
23998 * config/s390/s390.c (s390_chunkify_start): Replace next_real_insn
23999 with NEXT_INSN. Use tablejump_p to check for jump table data
24002 2013-06-19 Paolo Carlini <paolo.carlini@oracle.com>
24005 * doc/cpp.texi [Standard Predefined Macros, __cplusplus]: Document
24006 that now in C++ the value is correct per the C++ standards.
24008 2013-06-19 Richard Biener <rguenther@suse.de>
24010 * expr.c (expand_expr_real_1): Use SCOPE_FILE_SCOPE_P to check
24011 for global context.
24013 2013-06-19 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
24016 2013-06-18 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
24019 * config/s390/s390.c (s390_chunkify_start): Replace next_real_insn
24020 with next_active_insn.
24022 2013-06-18 Sriraman Tallam <tmsriram@google.com>
24024 * ipa-inline.c (inline_always_inline_functions): Pretend always_inline
24025 functions are inlined during failures to flag an error.
24026 * tree-inline.c (expand_call_inline): Allow the error to be flagged
24027 in early inline pass.
24029 2013-06-18 H.J. Lu <hongjiu.lu@intel.com>
24031 * config/i386/i386.c (initial_ix86_tune_features): Fix a typo
24034 2013-06-18 Julian Brown <julian@codesourcery.com>
24036 * config/arm/arm.c (neon_vector_mem_operand): Add strict argument.
24037 Permit virtual register pre-reload if !strict.
24038 (coproc_secondary_reload_class): Adjust for neon_vector_mem_operand
24040 * config/arm/arm-protos.h (neon_vector_mem_operand): Adjust
24042 * config/arm/neon.md (movmisalign<mode>): Use
24043 neon_perm_struct_or_reg_operand instead of
24044 neon_struct_or_register_operand.
24045 (*movmisalign<mode>_neon_load, *movmisalign<mode>_neon_store): Use
24046 neon_permissive_struct_operand instead of neon_struct_operand.
24047 * config/arm/constraints.md (Un, Um, Us): Adjust calls to
24048 neon_vector_mem_operand.
24049 * config/arm/predicates.md (neon_struct_operand): Adjust call to
24050 neon_vector_mem_operand.
24051 (neon_permissive_struct_operand): New.
24052 (neon_struct_or_register_operand): Rename to...
24053 (neon_perm_struct_or_reg_operand): This. Adjust call to
24054 neon_vector_mem_operand.
24056 2013-06-18 Richard Biener <rguenther@suse.de>
24058 * Makefile.in (LTO_STREAMER_H): Add pointer-set.h dependency.
24059 * lto-streamer.h: Include pointer-set.h.
24060 (struct lto_decl_slot): Remove.
24061 (struct lto_tree_ref_encoder): Make tree_hash_table a pointer-map.
24062 Remove next_index entry.
24063 (lto_hash_decl_slot_node, lto_eq_decl_slot_node,
24064 lto_hash_type_slot_node, lto_eq_type_slot_node): Remove.
24065 (lto_init_tree_ref_encoder): Adjust.
24066 (lto_destroy_tree_ref_encoder): Likewise.
24067 * lto-section-out.c (lto_hash_decl_slot_node, lto_eq_decl_slot_node,
24068 lto_hash_type_slot_node, lto_eq_type_slot_node): Remove.
24069 (lto_output_decl_index): Adjust.
24070 (lto_new_out_decl_state): Likewise.
24071 (lto_record_function_out_decl_state): Likewise.
24072 * lto-streamer-out.c (copy_function): Likewise.
24074 2013-06-18 Richard Biener <rguenther@suse.de>
24076 * Makefile.in (cgraphunit.o): Add $(CFGLOOP_H) dependency.
24077 * cgraphunit.c: Include cfgloop.h.
24078 (init_lowered_empty_function): Initialize the loop tree.
24079 (assemble_thunk): Insert new BBs into loops.
24081 2013-06-18 Richard Biener <rguenther@suse.de>
24083 * tree-streamer.h (streamer_tree_cache_create): Adjust prototype.
24084 * tree-streamer.c (streamer_tree_cache_create): Make maintaining
24085 the map from cache entry to cache index optional.
24086 (streamer_tree_cache_replace_tree): Adjust accordingly.
24087 (streamer_tree_cache_append): Likewise.
24088 (streamer_tree_cache_delete): Likewise.
24089 * lto-streamer-in.c (lto_data_in_create): Do not maintain the
24090 streamer cache map from cache entry to cache index.
24091 * lto-streamer-out.c (create_output_block): Adjust.
24093 2013-06-18 Sofiane Naci <sofiane.naci@arm.com>
24095 * config/arm/arm.md (attribute "insn"): Move multiplication and
24096 division attributes to...
24097 (attribute "type"): ... here. Remove mult.
24098 (attribute "mul32"): New attribute.
24099 (attribute "mul64"): Add umaal.
24100 (*arm_mulsi3): Update attributes.
24101 (*arm_mulsi3_v6): Likewise.
24102 (*thumb_mulsi3): Likewise.
24103 (*thumb_mulsi3_v6): Likewise.
24104 (*mulsi3_compare0): Likewise.
24105 (*mulsi3_compare0_v6): Likewise.
24106 (*mulsi_compare0_scratch): Likewise.
24107 (*mulsi_compare0_scratch_v6): Likewise.
24108 (*mulsi3addsi): Likewise.
24109 (*mulsi3addsi_v6): Likewise.
24110 (*mulsi3addsi_compare0): Likewise.
24111 (*mulsi3addsi_compare0_v6): Likewise.
24112 (*mulsi3addsi_compare0_scratch): Likewise.
24113 (*mulsi3addsi_compare0_scratch_v6): Likewise.
24114 (*mulsi3subsi): Likewise.
24115 (*mulsidi3adddi): Likewise.
24116 (*mulsi3addsi_v6): Likewise.
24117 (*mulsidi3adddi_v6): Likewise.
24118 (*mulsidi3_nov6): Likewise.
24119 (*mulsidi3_v6): Likewise.
24120 (*umulsidi3_nov6): Likewise.
24121 (*umulsidi3_v6): Likewise.
24122 (*umulsidi3adddi): Likewise.
24123 (*umulsidi3adddi_v6): Likewise.
24124 (*smulsi3_highpart_nov6): Likewise.
24125 (*smulsi3_highpart_v6): Likewise.
24126 (*umulsi3_highpart_nov6): Likewise.
24127 (*umulsi3_highpart_v6): Likewise.
24128 (mulhisi3): Likewise.
24129 (*mulhisi3tb): Likewise.
24130 (*mulhisi3bt): Likewise.
24131 (*mulhisi3tt): Likewise.
24132 (maddhisi4): Likewise.
24133 (*maddhisi4tb): Likewise.
24134 (*maddhisi4tt): Likewise.
24135 (maddhidi4): Likewise.
24136 (*maddhidi4tb): Likewise.
24137 (*maddhidi4tt): Likewise.
24138 (divsi3): Likewise.
24139 (udivsi3): Likewise.
24140 * config/arm/thumb2.md (thumb2_mulsi_short): Update attributes.
24141 (thumb2_mulsi_short_compare0): Likewise.
24142 (thumb2_mulsi_short_compare0_scratch): Likewise.
24143 * config/arm/arm1020e.md (1020mult1): Update attribute change.
24144 (1020mult2): Likewise.
24145 (1020mult3): Likewise.
24146 (1020mult4): Likewise.
24147 (1020mult5): Likewise.
24148 (1020mult6): Likewise.
24149 * config/arm/cortex-a15.md (cortex_a15_mult32): Update attribute
24151 (cortex_a15_mult64): Likewise.
24152 (cortex_a15_sdiv): Likewise.
24153 (cortex_a15_udiv): Likewise.
24154 * config/arm/arm1026ejs.md (mult1): Update attribute change.
24160 * config/arm/marvell-pj4.md (pj4_ir_mul): Update attribute change.
24161 (pj4_ir_div): Likewise.
24162 * config/arm/arm1136jfs.md (11_mult1): Update attribute change.
24163 (11_mult2): Likewise.
24164 (11_mult3): Likewise.
24165 (11_mult4): Likewise.
24166 (11_mult5): Likewise.
24167 (11_mult6): Likewise.
24168 (11_mult7): Likewise.
24169 * config/arm/cortex-a8.md (cortex_a8_mul): Update attribute change.
24170 (cortex_a8_mla): Likewise.
24171 (cortex_a8_mull): Likewise.
24172 (cortex_a8_smulwy): Likewise.
24173 (cortex_a8_smlald): Likewise.
24174 * config/arm/cortex-m4.md (cortex_m4_alu): Update attribute change.
24175 * config/arm/cortex-r4.md (cortex_r4_mul_4): Update attribute change.
24176 (cortex_r4_mul_3): Likewise.
24177 (cortex_r4_mla_4): Likewise.
24178 (cortex_r4_mla_3): Likewise.
24179 (cortex_r4_smlald): Likewise.
24180 (cortex_r4_mull): Likewise.
24181 (cortex_r4_sdiv): Likewise.
24182 (cortex_r4_udiv): Likewise.
24183 * config/arm/cortex-a7.md (cortex_a7_mul): Update attribute change.
24184 (cortex_a7_idiv): Likewise.
24185 * config/arm/arm926ejs.md (9_mult1): Update attribute change.
24186 (9_mult2): Likewise.
24187 (9_mult3): Likewise.
24188 (9_mult4): Likewise.
24189 (9_mult5): Likewise.
24190 (9_mult6): Likewise.
24191 * config/arm/cortex-a53.md (cortex_a53_mul): Update attribute change.
24192 (cortex_a53_sdiv): Likewise.
24193 (cortex_a53_udiv): Likewise.
24194 * config/arm/fa726te.md (726te_mult_op): Update attribute change.
24195 * config/arm/fmp626.md (mp626_mult1): Update attribute change.
24196 (mp626_mult2): Likewise.
24197 (mp626_mult3): Likewise.
24198 (mp626_mult4): Likewise.
24199 * config/arm/fa526.md (526_mult1): Update attribute change.
24200 (526_mult2): Likewise.
24201 * config/arm/arm-generic.md (mult): Update attribute change.
24202 (mult_ldsched_strongarm): Likewise.
24203 (mult_ldsched): Likewise.
24204 (multi_cycle): Likewise.
24205 * config/arm/cortex-a5.md (cortex_a5_mul): Update attribute change.
24206 * config/arm/fa606te.md (606te_mult1): Update attribute change.
24207 (606te_mult2): Likewise.
24208 (606te_mult3): Likewise.
24209 (606te_mult4): Likewise.
24210 * config/arm/cortex-a9.md (cortex_a9_mult16): Update attribute change.
24211 (cortex_a9_mac16): Likewise.
24212 (cortex_a9_multiply): Likewise.
24213 (cortex_a9_mac): Likewise.
24214 (cortex_a9_multiply_long): Likewise.
24215 * config/arm/fa626te.md (626te_mult1): Update attribute change.
24216 (626te_mult2): Likewise.
24217 (626te_mult3): Likewise.
24218 (626te_mult4): Likewise.
24220 2013-06-18 Richard Biener <rguenther@suse.de>
24223 * lto-symtab.c (lto_symtab_merge_decls): Process nodes properly.
24225 2013-06-18 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
24228 * config/s390/s390.c (s390_chunkify_start): Replace next_real_insn
24229 with next_active_insn.
24231 2013-06-18 Alan Modra <amodra@gmail.com>
24233 * config/rs6000/rs6000.h (enum data_align): New.
24234 (LOCAL_ALIGNMENT, DATA_ALIGNMENT): Use rs6000_data_alignment.
24235 (DATA_ABI_ALIGNMENT): Define.
24236 (CONSTANT_ALIGNMENT): Correct comment.
24237 * config/rs6000/rs6000-protos.h (rs6000_data_alignment): Declare.
24238 * config/rs6000/rs6000.c (rs6000_data_alignment): New function.
24240 2013-06-17 David Malcolm <dmalcolm@redhat.com>
24242 * ggc-page.c (ggc_pch_write_object) <d>: Remove erroneous
24243 ATTRIBUTE_UNUSED marking.
24245 2013-06-17 Sofiane Naci <sofiane.naci@arm.com>
24247 * config/aarch64/aarch64-simd.md (aarch64_dup_lane<mode>): Add r<-w
24248 alternative and update.
24249 (aarch64_dup_lanedi): Delete.
24250 * config/aarch64/arm_neon.h (vdup<bhsd>_lane_*): Update.
24251 * config/aarch64/aarch64-simd-builtins.def: Update.
24253 2013-06-17 Richard Biener <rguenther@suse.de>
24255 * lto-streamer.h (enum LTO_tags): Add LTO_tree_scc.
24256 (lto_input_scc): Declare.
24257 (lto_input_tree_1): Likewise.
24258 (struct lto_stats_d): Add num_tree_bodies_output and
24259 num_pickle_refs_output.
24260 * lto-streamer-in.c (lto_read_body): Use streamer_tree_cache_get_tree.
24261 (lto_read_tree_1): Split out from ...
24262 (lto_read_tree): ... this.
24263 (lto_input_scc): New function.
24264 (lto_input_tree_1): Split out from ...
24265 (lto_input_tree): ... this. Handle LTO_tree_scc.
24266 (lto_data_in_create): Create the streamer cache without hashes.
24267 * lto-streamer-out.c (create_output_block): Create the streamer
24268 cache with hashes when not doing WPA.
24269 (lto_write_tree_1): Split out from ...
24270 (lto_write_tree): ... this.
24271 (get_symbol_initial_value): New function.
24272 (lto_output_tree_1): Split out from ...
24273 (lto_output_tree): ... this. Write trees as series of SCCs
24274 using a DFS walk via DFS_write_tree.
24275 (struct sccs, struct scc_entry): New types.
24276 (next_dfs_num, sccstack, sccstate, sccstate_obstack): New globals.
24277 (DFS_write_tree_body): New function.
24278 (DFS_write_tree): Likewise.
24279 (hash_tree): Likewise.
24280 (scc_entry_compare): Likewise.
24281 (hash_scc): Likewise.
24282 (tree_is_indexable): DEBUG_EXPR_DECLs are local entities.
24283 * tree-streamer-in.c (lto_input_ts_list_tree_pointers): Stream
24284 TREE_CHAIN as regular reference.
24285 (streamer_read_integer_cst): Remove.
24286 (streamer_get_pickled_tree): Adjust.
24287 * tree-streamer-out.c (streamer_write_chain): Disable streaming
24288 of DECL_EXTERNALs in BLOCK_VARS for now.
24289 (write_ts_list_tree_pointers): Stream TREE_CHAIN as regular
24291 * tree-streamer.c (streamer_tree_cache_add_to_node_array):
24292 Add hash value argument and record that if hashes are recorded
24294 (streamer_tree_cache_insert_1): Adjust.
24295 (streamer_tree_cache_insert): Likewise.
24296 (streamer_tree_cache_insert_at): Rename to ...
24297 (streamer_tree_cache_replace_tree): ... this and adjust.
24298 (streamer_tree_cache_append): Adjust.
24299 (record_common_node): Likewise.
24300 (streamer_tree_cache_create): Add argument whether to
24301 record hash values together with trees.
24302 (streamer_tree_cache_delete): Adjust.
24303 * tree-streamer.h (struct streamer_tree_cache_d): Add
24305 (streamer_read_integer_cst): Remove.
24306 (streamer_tree_cache_insert): Adjust.
24307 (streamer_tree_cache_append): Likewise.
24308 (streamer_tree_cache_insert_at): Rename to ...
24309 (streamer_tree_cache_replace_tree): ... this and adjust.
24310 (streamer_tree_cache_create): Add argument whether to record hashes.
24311 (streamer_tree_cache_get): Rename to ...
24312 (streamer_tree_cache_get_tree): ... this.
24313 (streamer_tree_cache_get_hash): New function.
24314 * tree.c (cache_integer_cst): New function.
24315 * tree.h (cache_integer_cst): Declare.
24316 (ANON_AGGRNAME_FORMAT, ANON_AGGRNAME_P): Move here from cp/cp-tree.h.
24317 * lto-symtab.c (lto_varpool_replace_node): Only release
24318 DECL_INITIAL of non-prevailing decls.
24319 * varpool.c (varpool_remove_initializer): Do not release
24320 DECL_INITIAL when we are still in CGRAPH_LTO_STREAMING.
24322 2013-06-16 Jürgen Urban <JuergenUrban@gmx.de>
24324 * config/mips/mips.h (ISA_HAS_MUL3): Include TARGET_MIPS5900.
24325 (ISA_HAS_MULT, ISA_HAS_DMULT, ISA_HAS_DIV, ISA_HAS_DDIV): New macros.
24326 * config/mips/mips.md (mul<mode>3, mul<mode>3_internal)
24327 (mul<mode>3_r4000): Require ISA_HAS_<D>MULT.
24328 (mul<mode>3_mul3): Handle TARGET_MIPS5900.
24329 (mulsidi3_64bit_dmul): Remove redundant TARGET_64BIT test.
24330 (<su>muldi3_highpart, <su>muldi3_highpart_internal, <u>mulditi3)
24331 (<u>mulditi3_internal, <u>mulditi3_r4000): Require ISA_HAS_DMULT
24332 instead of TARGET_64BIT.
24333 (divmod<mode>4, udivmod<mode>4, <u>divmod<GPR:mode>4_hilo_<HILO:mode>):
24334 Require ISA_HAS_<D>DIV.
24336 2013-06-16 Richard Sandiford <rdsandiford@googlemail.com>
24338 * config.gcc (mips*-mti-linux*, mips64*-*-linux*, mipsisa64*-*-linux*)
24339 (mips*-*-linux*): Move default with_llsc setting to where other
24341 (mips*-*-vxworks*): Move with_arch default from with_cpu block to
24343 (mips64r5900-*-*, mips64r5900el-*-*, mipsr5900-*-*, mipsr5900el-*-*):
24344 Likewise. Remove default with_tune setting. Move default float
24345 setting to its own block. Handle with_llsc in the same block as above.
24347 2013-06-16 Joern Rennecke <joern.rennecke@embecosm.com>
24349 PR rtl-optimization/57425
24350 PR rtl-optimization/57569
24351 * alias.c (write_dependence_p): Add new parameters mem_mode,
24352 canon_mem_addr and mem_canonicalized. Change type of writep to bool.
24353 Changed all callers.
24354 (canon_anti_dependence): New function.
24355 * cse.c (check_dependence): Use canon_anti_dependence.
24356 * cselib.c (cselib_invalidate_mem): Likewise.
24357 * rtl.h (canon_anti_dependence): Declare.
24359 2013-06-16 Jürgen Urban <JuergenUrban@gmx.de>
24361 * config/mips/mips.h (ISA_HAS_LL_SC): Exclude TARGET_MIPS5900.
24362 * config/mips/mips.c (mips_start_ll_sc_sync_block): Output
24363 ".set mips3" for 64-bit targets.
24365 2013-06-15 Dehao Chen <dehao@google.com>
24367 * tree-flow.h (gimple_check_call_matching_types): Add new argument.
24368 * gimple-low.c (gimple_check_call_matching_types): Likewise.
24369 (gimple_check_call_args): Likewise.
24370 * value-prof.c (check_ic_target): Likewise.
24371 * ipa-inline.c (early_inliner): Likewise.
24372 * ipa-prop.c (update_indirect_edges_after_inlining): Likewise.
24373 * cgraph.c (cgraph_create_edge_1): Likewise.
24374 (cgraph_make_edge_direct): Likewise.
24376 2013-06-14 Michael Meissner <meissner@linux.vnet.ibm.com>
24379 * config/rs6000/rs6000.md (mov<mode>_ppc64): Call
24380 rs6000_output_move_128bit to handle emitting quad memory
24381 operations. Set attribute length to 8 bytes.
24383 2013-06-14 Vidya Praveen <vidyapraveen@arm.com>
24385 * config/aarch64/aarch64-simd.md (aarch64_<su>mlal_lo<mode>):
24387 (aarch64_<su>mlal_hi<mode>, aarch64_<su>mlsl_lo<mode>): Likewise.
24388 (aarch64_<su>mlsl_hi<mode>, aarch64_<su>mlal<mode>): Likewise.
24389 (aarch64_<su>mlsl<mode>): Likewise.
24391 2013-06-14 Mike Stump <mikestump@comcast.net>
24393 * Makefile.in (TARGET_H): Add insn-codes.h.
24395 2013-06-14 Alan Modra <amodra@gmail.com>
24397 PR middle-end/57134
24398 PR middle-end/57586
24399 * expr.c (expand_expr_real_1 <normal_inner_ref>): Pass
24400 EXPAND_MEMORY and EXPAND_WRITE to recursive call. Don't use
24401 bitfield expansion when EXPAND_MEMORY.
24402 (expand_expr_real_1 <VIEW_CONVERT_EXPR>): Pass modifier likewise.
24404 2013-06-13 Michael Meissner <meissner@linux.vnet.ibm.com>
24406 * config/rs6000/rs6000.c (rs6000_option_override_internal): Move
24407 test for clearing quad memory on 32-bit later.
24409 2013-06-13 Marc Glisse <marc.glisse@inria.fr>
24411 * fold-const.c (negate_expr_p): Handle VECTOR_CST.
24412 (fold_negate_expr): Likewise.
24413 (fold_real_zero_addition_p): Handle vectors.
24414 (fold_binary_loc) <PLUS_EXPR, MINUS_EXPR>: Likewise.
24416 2013-06-14 Alan Modra <amodra@gmail.com>
24418 * varasm.c (force_const_mem): Revert 2013-06-07 change.
24420 2013-06-13 Jan Hubicka <jh@suse.cz>
24422 * ipa.c (cgraph_externally_visible_p, varpool_externally_visible_p):
24423 Local comdats are not externally visible.
24424 * symtab.c (dump_symtab_base): Dump externally visible.
24425 (verify_symtab_base): Verify back links in the symtab hash.
24427 2013-06-13 Bin Cheng <bin.cheng@arm.com>
24429 * fold-const.c (operand_equal_p): Consider NOP_EXPR and
24430 CONVERT_EXPR as equal nodes.
24432 2013-06-13 Bin Cheng <bin.cheng@arm.com>
24434 * rtlanal.c (noop_move_p): Check the code to be executed for COND_EXEC.
24436 2013-06-13 Marc Glisse <marc.glisse@inria.fr>
24438 * tree-ssa-forwprop.c (simplify_bitwise_binary, associate_plusminus):
24439 Generalize to complex and vector.
24440 * tree.c (build_all_ones_cst): New function.
24441 * tree.h (build_all_ones_cst): Declare it.
24443 2013-06-13 Alan Modra <amodra@gmail.com>
24445 * config/rs6000/rs6000.h (LONG_DOUBLE_LARGE_FIRST): Define.
24446 * config/rs6000/rs6000.md (signbittf2): New insn.
24447 (extenddftf2_internal): Use LONG_DOUBLE_LARGE_FIRST.
24448 (abstf2_internal, cmptf_internal2): Likewise.
24449 * config/rs6000/spe.md (spe_abstf2_cmp, spe_abstf2_tst): Likewise.
24451 2013-06-12 Michael Meissner <meissner@linux.vnet.ibm.com>
24452 Pat Haugen <pthaugen@us.ibm.com>
24453 Peter Bergner <bergner@vnet.ibm.com>
24455 * config/rs6000/rs6000.c (emit_load_locked): Add support for
24456 power8 byte, half-word, and quad-word atomic instructions.
24457 (emit_store_conditional): Likewise.
24458 (rs6000_expand_atomic_compare_and_swap): Likewise.
24459 (rs6000_expand_atomic_op): Likewise.
24461 * config/rs6000/sync.md (larx): Add new modes for power8.
24463 (AINT): New mode iterator to include TImode as well as normal
24464 integer modes on power8.
24465 (fetchop_pred): Use int_reg_operand instead of gpc_reg_operand so
24466 that VSX registers are not considered. Use AINT mode iterator
24467 instead of INT1 to allow inclusion of quad word atomic operations
24469 (load_locked<mode>): Likewise.
24470 (store_conditional<mode>): Likewise.
24471 (atomic_compare_and_swap<mode>): Likewise.
24472 (atomic_exchange<mode>): Likewise.
24473 (atomic_nand<mode>): Likewise.
24474 (atomic_fetch_<fetchop_name><mode>): Likewise.
24475 (atomic_nand_fetch<mode>): Likewise.
24476 (mem_thread_fence): Use gen_loadsync_<mode> instead of enumerating
24478 (ATOMIC): On power8, add QImode, HImode modes.
24479 (load_locked<QHI:mode>_si): Varients of load_locked for QI/HI
24480 modes that promote to SImode.
24481 (load_lockedti): Convert TImode arguments to PTImode, so that we
24482 get a guaranteed even/odd register pair.
24483 (load_lockedpti): Likewise.
24484 (store_conditionalti): Likewise.
24485 (store_conditionalpti): Likewise.
24487 * config/rs6000/rs6000.md (QHI): New mode iterator for power8
24488 atomic load/store instructions.
24491 2013-06-12 Richard Sandiford <rdsandiford@googlemail.com>
24493 * config/mips/mips.md (extended_mips16): Include GOT and constant-pool
24495 (insn_count): New attribute, with most cases extracted from...
24496 (length): ...here. Redefine most cases in terms of insn_count.
24497 (single_insn): Delete.
24498 (can_delay): Use insn_count to check for single instructions.
24499 (*mul<mode>3_r4300, mul<mode>3_r4000, *mul_acc_si, *mul_acc_si_r3900)
24500 (*msac_using_macc, *mul_sub_si, <u>mulsidi3_32bit_r4000)
24501 (<u>mulsidi3_64bit_r4000, <su>muldi3_highpart_internal)
24502 (<su>mulsi3_highpart_split, <su>muldi3_highpart_internal)
24503 (<u>mulditi3_r4000, *div<mode>3, *recip<mode>3, divmod<mode>4)
24504 (udivmod<mode>4, sqrt<mode>2, *rsqrt<mode>a, *rsqrt<mode>b)
24505 (fix_truncdfsi2_macro, fix_truncsfsi2_macro, *lea_high64)
24506 (*lea64, cprestore_<mode>, clear_hazard_<mode>, <unnamed insn>)
24507 (casesi_internal_mips16_<mode>, *tls_get_tp_<mode>_split)
24508 (tls_get_tp_mips16, *tls_get_tp_mips16_call_<mode>): Use "insn_count"
24509 rather than "length".
24510 (tls_get_tp_<mode>): Likewise. Remove redundant "no_delay" attribute.
24511 * config/mips/mips-ps-3d.md (mips_c_cond_4s, mips_cabs_cond_4s):
24512 Use "insn_count" rather than "length".
24513 * config/mips/mips-dsp.md
24514 (mips_l<SHORT:size><u>x_ext<GPR:mode>_<P:mode>)
24515 (mips_l<GPR:size>x_<P:mode>, *mips_lw<u>x_<P:mode>_ext): Remove
24518 2013-06-12 Marc Glisse <marc.glisse@inria.fr>
24520 PR tree-optimization/57361
24521 * tree-ssa-dse.c (dse_possible_dead_store_p): Handle self-assignment.
24523 2013-06-12 Sofiane Naci <sofiane.naci@arm.com>
24525 * config/aarch64/aarch64-simd.md (aarch64_combine<mode>): Convert
24527 (aarch64_simd_combine<mode>): New instruction expansion.
24528 * config/aarch64/aarch64-protos.h (aarch64_split_simd_combine): New
24529 function prototype.
24530 * config/aarch64/aarch64.c (aarch64_split_combine): New function.
24531 * config/aarch64/iterators.md (Vdbl): Add entry for DF.
24533 2013-06-12 Jan Hubicka <jh@suse.cz>
24535 * cgraph.c (verify_edge_corresponds_to_fndecl): Be lax about
24536 decl has when in streaming stage.
24537 * lto-symtab.c (lto_symtab_merge_symbols): Likewise.
24538 * cgraph.h (cgraph_state): Add CGRAPH_LTO_STREAMING.
24540 2013-06-12 Roland Stigge <stigge@antcom.de>
24543 * config/rs6000/t-linux (MULTIARCH_DIRNAME): Fix SPE version detection.
24545 2013-06-12 Jakub Jelinek <jakub@redhat.com>
24547 PR tree-optimization/57537
24548 * tree-vect-patterns.c (vect_recog_widen_mult_pattern): If
24549 vect_handle_widen_op_by_const, convert oprnd1 to half_type1.
24551 2013-06-12 Richard Biener <rguenther@suse.de>
24553 * data-streamer.h (streamer_write_char_stream): CSE
24554 obs->current_pointer.
24555 * data-streamer-out.c (streamer_write_uhwi_stream): Inline
24556 streamer_write_char_stream manually and optimize the resulting loop.
24557 (streamer_write_hwi_stream): Likewise.
24559 2013-06-12 Jan Hubicka <jh@suse.cz>
24561 * lto-symtab.c (lto_symtab_merge_symbols): Populate symtab hashtable.
24562 * cgraph.h (varpool_create_empty_node): Declare.
24563 * lto-cgraph.c (input_node, input_varpool_node): Forcingly create
24565 * symtab.c (symtab_unregister_node): Be lax about missin entries
24567 (symtab_get_node): Update comment.
24568 * varpool.c (varpool_create_empty_node): Break out from ...
24569 (varpool_node_for_decl): ... here.
24570 * lto-streamer.h (lto_file_decl_data): Add RESOLUTION_MAP.
24572 2013-06-12 Eric Botcazou <ebotcazou@adacore.com>
24574 * expr.c (expand_expr_real_1) <TARGET_MEM_REF>: Use straight-line flow.
24575 <MEM_REF>: Use 'type' instead of TREE_TYPE (exp) and tidy up the first
24576 part. Use straight-line flow at the end.
24577 <COMPONENT_REF>: Remove superfluous else.
24578 <VIEW_CONVERT_EXPR>: Use 'type' instead of TREE_TYPE (exp).
24580 2013-06-12 Jakub Jelinek <jakub@redhat.com>
24583 * varasm.c (decl_binds_to_current_def_p): Call binds_local_p
24584 target hook even for !TREE_PUBLIC decls. If no resolution info
24585 is available, return false for common and external decls.
24587 2013-06-12 Kaushik Phatak <kaushik.phatak@kpitcummins.com>
24589 * config/rl78/constraints.md (U): New constraint.
24590 * config/rl78/rl78.md (*mulqi3_rl78,*mulhi3_rl78,*mulhi3_g13): Add
24593 2013-06-11 Michael Meissner <meissner@linux.vnet.ibm.com>
24596 * config/rs6000/driver-rs6000.c (elf_platform): Make buffer static
24597 to allow returning address to AT_PLATFORM name.
24599 2013-06-11 Jan Hubicka <jh@suse.cz>
24601 * cgraph.c (cgraph_create_function_alias): Set weakref flag.
24602 * cgraph.h (symtab_node_base): Add weakref flag.
24603 * cgraphunit.c (cgraph_reset_node): Clear weakref flag.
24604 (handle_alias_pairs): Set weakref flag, do not set DECL_EXTERNAL.
24605 (output_weakrefs): Use weakref flag.
24606 * fold-const.c (simple_operand_p): Handle WEAK.
24607 * gimple-fold.c (can_refer_decl_in_current_unit_p): Drop weakref.
24608 * ipa.c (varpool_externally_visible_p): Drop weakref.
24609 (function_and_variable_visibility): Update comment; fix weakref
24610 sanity checks; do not clear DECL_WEAK on them.
24611 * lto-cgraph.c (lto_output_node): update.
24612 (lto_output_varpool_node): Update.
24613 (input_overwrite_node): Update.
24614 (input_node): Update.
24615 (input_varpool_node): Update.
24616 * lto-symtab.c (lto_symtab_symbol_p): Do not special case weakrefs.
24617 (lto_symtab_merge_symbols): Add sanity check.
24618 (lto_symtab_prevailing_decl): Do not special case weakrefs.
24619 * passes.c (rest_of_decl_compilation): Set static flag, too.
24620 * symtab.c (dump_symtab_base): Dump weakref.
24621 (verify_symtab_base): Sanity check weakrefs.
24622 (symtab_make_decl_local): Remove duplicated code.
24623 (symtab_alias_ultimate_target): Simplify.
24624 * varpool.c (varpool_create_variable_alias): Set weakref flag.
24626 2013-06-11 Tom de Vries <tom@codesourcery.com>
24628 * genautomata.c (gen_regexp_sequence): Handle els_num == -1. Handle
24629 sequence_vect == NULL.
24631 2013-06-11 DJ Delorie <dj@redhat.com>
24633 * config/rl78/rl78.c (TARGET_UNWIND_WORD_MODE): Define.
24634 (rl78_unwind_word_mode): New.
24636 2013-06-11 David Malcolm <dmalcolm@redhat.com>
24638 * final.c (debug_prefix_maps): Make static.
24640 2013-06-11 David Malcolm <dmalcolm@redhat.com>
24642 * function.c (initial_trampoline): Remove stray copy.
24644 2013-06-11 Sofiane Naci <sofiane.naci@arm.com>
24646 * config/aarch64/aarch64-simd.md (move_lo_quad_<mode>): Update.
24648 2013-06-11 Martin Jambor <mjambor@suse.cz>
24650 * ipa-cp.c (ipa_get_indirect_edge_target_1): Check that param_index is
24651 within bounds at the beginning of the function.
24653 2013-06-11 Alan Modra <amodra@gmail.com>
24655 * varasm.c (get_section): Don't die on !DECL_P decl. Tidy error
24657 (get_named_section): Don't NULL !DECL_P decl.
24659 2013-06-11 Igor Zamyatin <igor.zamyatin@intel.com>
24661 * doc/invoke.texi (core-avx2): Document.
24663 (atom): Updated with MOVBE.
24665 2013-06-11 Richard Biener <rguenther@suse.de>
24667 * collect2.c (main): Do not redirect ld stdout/stderr when debugging.
24669 2013-06-11 Anton Blanchard <anton@samba.org>
24671 * config/rs6000/rs6000.c (rs6000_adjust_atomic_subword): Calculate
24672 correct shift value in little-endian mode.
24674 2013-06-11 Jakub Jelinek <jakub@redhat.com>
24677 * varasm.c (get_variable_align): Move #endif to the right place.
24679 2013-06-10 Cary Coutant <ccoutant@google.com>
24681 * dwarf2out.c (hash_external_ref): Use die_symbol or signature
24682 for hash so that hash table traversal order is deterministic.
24684 2013-06-10 Michael Meissner <meissner@linux.vnet.ibm.com>
24685 Pat Haugen <pthaugen@us.ibm.com>
24686 Peter Bergner <bergner@vnet.ibm.com>
24688 * config/rs6000/vector.md (GPR move splitter): Do not split moves
24689 of vectors in GPRS if they are direct moves or quad word load or
24692 * config/rs6000/rs6000-protos.h (rs6000_output_move_128bit): Add
24694 (direct_move_p): Likewise.
24695 (quad_load_store_p): Likewise.
24697 * config/rs6000/rs6000.c (enum rs6000_reg_type): Simplify register
24698 classes into bins based on the physical register type.
24699 (reg_class_to_reg_type): Likewise.
24700 (IS_STD_REG_TYPE): Likewise.
24701 (IS_FP_VECT_REG_TYPE): Likewise.
24702 (reload_fpr_gpr): Arrays to determine what insn to use if we can
24703 use direct move instructions.
24704 (reload_gpr_vsx): Likewise.
24705 (reload_vsx_gpr): Likewise.
24706 (rs6000_init_hard_regno_mode_ok): Precalculate the register type
24707 information that is a simplification of register classes. Also
24708 precalculate direct move reload helpers.
24709 (direct_move_p): New function to return true if the operation can
24710 be done as a direct move instruciton.
24711 (quad_load_store_p): New function to return true if the operation
24712 is a quad memory operation.
24713 (rs6000_legitimize_address): If quad memory, only allow register
24714 indirect for TImode addresses.
24715 (rs6000_legitimate_address_p): Likewise.
24716 (enum reload_reg_type): Delete, replace with rs6000_reg_type.
24717 (rs6000_reload_register_type): Likewise.
24718 (register_to_reg_type): Return register type.
24719 (rs6000_secondary_reload_simple_move): New helper function for
24720 secondary reload and secondary memory needed to identify anything
24721 that is a simple move, and does not need reloading.
24722 (rs6000_secondary_reload_direct_move): New helper function for
24723 secondary reload to identify cases that can be done with several
24724 instructions via the direct move instructions.
24725 (rs6000_secondary_reload_move): New helper function for secondary
24726 reload to identify moves between register types that can be done.
24727 (rs6000_secondary_reload): Add support for quad memory operations
24728 and for direct move.
24729 (rs6000_secondary_memory_needed): Likewise.
24730 (rs6000_debug_secondary_memory_needed): Change argument names.
24731 (rs6000_output_move_128bit): New function to return the move to
24732 use for 128-bit moves, including knowing about the various
24733 limitations of quad memory operations.
24735 * config/rs6000/vsx.md (vsx_mov<mode>): Add support for quad
24736 memory operations. call rs6000_output_move_128bit for the actual
24737 instruciton(s) to generate.
24738 (vsx_movti_64bit): Likewise.
24740 * config/rs6000/rs6000.md (UNSPEC_P8V_FMRGOW): New unspec values.
24741 (UNSPEC_P8V_MTVSRWZ): Likewise.
24742 (UNSPEC_P8V_RELOAD_FROM_GPR): Likewise.
24743 (UNSPEC_P8V_MTVSRD): Likewise.
24744 (UNSPEC_P8V_XXPERMDI): Likewise.
24745 (UNSPEC_P8V_RELOAD_FROM_VSX): Likewise.
24746 (UNSPEC_FUSION_GPR): Likewise.
24747 (FMOVE128_GPR): New iterator for direct move.
24748 (f32_lv): New mode attribute for load/store of SFmode/SDmode values.
24749 (f32_sv): Likewise.
24750 (f32_dm): Likewise.
24751 (zero_extend<mode>di2_internal1): Add support for power8 32-bit
24752 loads and direct move instructions.
24753 (zero_extendsidi2_lfiwzx): Likewise.
24754 (extendsidi2_lfiwax): Likewise.
24755 (extendsidi2_nocell): Likewise.
24756 (floatsi<mode>2_lfiwax): Likewise.
24757 (lfiwax): Likewise.
24758 (floatunssi<mode>2_lfiwzx): Likewise.
24759 (lfiwzx): Likewise.
24760 (fix_trunc<mode>_stfiwx): Likewise.
24761 (fixuns_trunc<mode>_stfiwx): Likewise.
24762 (mov<mode>_hardfloat, 32-bit floating point): Likewise.
24763 (mov<move>_hardfloat64, 64-bit floating point): Likewise.
24764 (parity<mode>2_cmpb): Set length/type attr.
24765 (unnamed shift right patterns, mov<mode>_internal2): Change type attr
24766 for 'mr.' to fast_compare.
24767 (bpermd_<mode>): Change type attr to popcnt.
24768 (p8_fmrgow_<mode>): New insns for power8 direct move support.
24769 (p8_mtvsrwz_1): Likewise.
24770 (p8_mtvsrwz_2): Likewise.
24771 (reload_fpr_from_gpr<mode>): Likewise.
24772 (p8_mtvsrd_1): Likewise.
24773 (p8_mtvsrd_2): Likewise.
24774 (p8_xxpermdi_<mode>): Likewise.
24775 (reload_vsx_from_gpr<mode>): Likewise.
24776 (reload_vsx_from_gprsf): Likewise.
24777 (p8_mfvsrd_3_<mode>): LIkewise.
24778 (reload_gpr_from_vsx<mode>): Likewise.
24779 (reload_gpr_from_vsxsf): Likewise.
24780 (p8_mfvsrd_4_disf): Likewise.
24781 (multi-word GPR splits): Do not split direct moves or quad memory
24784 2013-06-10 David Malcolm <dmalcolm@redhat.com>
24786 * tree-into-ssa.c (interesting_blocks): Make static.
24788 2013-06-10 Jakub Jelinek <jakub@redhat.com>
24791 * varasm.c (align_variable): Don't use DATA_ALIGNMENT or
24792 CONSTANT_ALIGNMENT if !decl_binds_to_current_def_p (decl).
24793 Use DATA_ABI_ALIGNMENT for that case instead if defined.
24794 (get_variable_align): New function.
24795 (get_variable_section, emit_bss, emit_common,
24796 assemble_variable_contents, place_block_symbol): Use
24797 get_variable_align instead of DECL_ALIGN.
24798 (assemble_noswitch_variable): Add align argument, use it
24799 instead of DECL_ALIGN.
24800 (assemble_variable): Adjust caller. Use get_variable_align
24801 instead of DECL_ALIGN.
24802 * config/i386/i386.h (DATA_ALIGNMENT): Adjust x86_data_alignment
24804 (DATA_ABI_ALIGNMENT): Define.
24805 * config/i386/i386-protos.h (x86_data_alignment): Adjust prototype.
24806 * config/i386/i386.c (x86_data_alignment): Add opt argument. If
24807 opt is false, only return the psABI mandated alignment increase.
24808 * config/c6x/c6x.h (DATA_ALIGNMENT): Renamed to...
24809 (DATA_ABI_ALIGNMENT): ... this.
24810 * config/mmix/mmix.h (DATA_ALIGNMENT): Renamed to...
24811 (DATA_ABI_ALIGNMENT): ... this.
24812 * config/mmix/mmix.c (mmix_data_alignment): Adjust function comment.
24813 * config/s390/s390.h (DATA_ALIGNMENT): Renamed to...
24814 (DATA_ABI_ALIGNMENT): ... this.
24815 * doc/tm.texi.in (DATA_ABI_ALIGNMENT): Document.
24816 * doc/tm.texi: Regenerated.
24818 2013-06-10 Uros Bizjak <ubizjak@gmail.com>
24820 * config/alpha/alpha.c (alpha_emit_xfloating_compare): Also use
24821 cmp_code to construct REG_EQUAL note.
24823 2013-06-09 Jakub Jelinek <jakub@redhat.com>
24826 * config/i386/i386.md (TARGET_READ_MODIFY_WRITE peepholes): Ensure
24827 that operands[2] doesn't overlap with operands[0].
24829 2013-06-09 David Edelsohn <dje.gcc@gmail.com>
24830 Jan Hubicka <jh@suse.cz>
24832 * config/rs6000/rs6000.c (print_operand, 'z'): Remove historical
24833 hack to mark symbols as used.
24835 2013-06-08 Vladimir Makarov <vmakarov@redhat.com>
24837 PR rtl-optimization/57559
24838 * lra-constraints.c (process_alt_operands): Don't discourage
24839 memory with known offset for offsetable memory constraint.
24840 * lra.c (lra_emit_add): Exchange y and z for 2-op add insn.
24842 2013-06-08 Eric Botcazou <ebotcazou@adacore.com>
24844 * varasm.c (struct oc_local_state): Reorder fields.
24845 (output_constructor_bitfield): Replace OUTER parameter with BIT_OFFSET
24846 and adjust accordingly.
24847 (output_constructor): Reorder initialization code and adjust call to
24848 output_constructor_bitfield.
24850 2013-06-07 Jan Hubicka <jh@suse.cz>
24852 * symtab.c (symtab_resolve_alias): Do not remove alias attribute.
24854 2013-06-07 David Malcolm <dmalcolm@redhat.com>
24856 * tree-object-size.c (unknown): Make const.
24858 2013-06-07 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
24860 * config/s390/s390.md (cpu_facility): Add cpu_zarch.
24861 ("*movmem_short", "*clrmem_short", "*cmpmem_short): Use cpu_zarch
24862 for last alternative in the cpu_facility attribute.
24864 2013-06-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
24867 * config/arm/arm.md (*xordi3_insn): Change to insn_and_split.
24868 (xordi3): Change operand 2 constraint to arm_xordi_operand.
24869 * config/arm/arm.c (const_ok_for_dimode_op): Handle XOR.
24870 * config/arm/constraints.md (Dg): New constraint.
24871 * config/arm/neon.md (xordi3_neon): Remove.
24872 (neon_veor<mode>): Generate xordi3 instead of xordi3_neon.
24873 * config/arm/predicates.md (arm_xordi_operand): New predicate.
24875 2013-06-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
24877 * config/arm/arm.md (anddi3_insn): Remove duplicate alternatives.
24878 Clean up alternatives.
24880 2013-06-07 Alan Modra <amodra@gmail.com>
24882 * config/rs6000/rs6000.c (setup_incoming_varargs): Round up
24885 2013-06-07 Alan Modra <amodra@gmail.com>
24887 * varasm.c (force_const_mem): Assert mode is not VOID or BLK.
24889 2013-06-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
24891 * config/arm/constraints.md (Df): New constraint.
24892 * config/arm/arm.md (iordi3_insn): Use Df constraint instead of De.
24893 Correct length attribute for last two alternatives.
24895 2013-06-07 Alan Modra <amodra@gmail.com>
24897 * config/rs6000/rs6000.c (rs6000_option_override_internal): Don't
24898 override user -mfp-in-toc.
24899 (offsettable_ok_by_alignment): Consider just the current access
24900 rather than the whole object, unless BLKmode. Handle
24901 CONSTANT_POOL_ADDRESS_P constants that lack a decl too.
24902 (use_toc_relative_ref): Allow CONSTANT_POOL_ADDRESS_P constants
24903 for -mcmodel=medium.
24904 * config/rs6000/linux64.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Don't
24905 override user -mfp-in-toc or -msum-in-toc. Default to
24906 -mno-fp-in-toc for -mcmodel=medium.
24908 2013-06-06 DJ Delorie <dj@redhat.com>
24910 * config/rl78/rl78.c (rl78_valid_pointer_mode): New, implements
24911 TARGET_VALID_POINTER_MODE.
24913 2013-06-06 Michael Meissner <meissner@linux.vnet.ibm.com>
24914 Pat Haugen <pthaugen@us.ibm.com>
24915 Peter Bergner <bergner@vnet.ibm.com>
24917 * doc/extend.texi (PowerPC AltiVec/VSX Built-in Functions):
24918 Document new power8 builtins.
24920 * config/rs6000/vector.md (and<mode>3): Add a clobber/scratch of a
24921 condition code register, to allow 128-bit logical operations to be
24922 done in the VSX or GPR registers.
24923 (nor<mode>3): Use the canonical form for nor.
24924 (eqv<mode>3): Add expanders for power8 xxleqv, xxlnand, xxlorc,
24925 vclz*, and vpopcnt* vector instructions.
24926 (nand<mode>3): Likewise.
24927 (orc<mode>3): Likewise.
24928 (clz<mode>2): LIkewise.
24929 (popcount<mode>2): Likewise.
24931 * config/rs6000/predicates.md (int_reg_operand): Rework tests so
24932 that only the GPRs are recognized.
24934 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
24935 support for new power8 builtins.
24937 * config/rs6000/rs6000-builtin.def (xscvspdpn): Add new power8
24939 (xscvdpspn): Likewise.
24945 (vpopcnt): Likewise.
24946 (vpopcntb): Likewise.
24947 (vpopcnth): Likewise.
24948 (vpopcntw): Likewise.
24949 (vpopcntd): Likewise.
24951 (vmrgew): Likewise.
24952 (vmrgow): Likewise.
24954 (eqv_v16qi3): Likewise.
24955 (eqv_v8hi3): Likewise.
24956 (eqv_v4si3): Likewise.
24957 (eqv_v2di3): Likewise.
24958 (eqv_v4sf3): Likewise.
24959 (eqv_v2df3): Likewise.
24961 (nand_v16qi3): Likewise.
24962 (nand_v8hi3): Likewise.
24963 (nand_v4si3): Likewise.
24964 (nand_v2di3): Likewise.
24965 (nand_v4sf3): Likewise.
24966 (nand_v2df3): Likewise.
24968 (orc_v16qi3): Likewise.
24969 (orc_v8hi3): Likewise.
24970 (orc_v4si3): Likewise.
24971 (orc_v2di3): Likewise.
24972 (orc_v4sf3): Likewise.
24973 (orc_v2df3): Likewise.
24975 * config/rs6000/rs6000.c (rs6000_option_override_internal): Only
24976 allow power8 quad mode in 64-bit.
24977 (rs6000_builtin_vectorized_function): Add support to vectorize
24978 ISA 2.07 count leading zeros, population count builtins.
24979 (rs6000_expand_vector_init): On ISA 2.07 use xscvdpspn to form
24980 V4SF vectors instead of xscvdpsp to avoid IEEE related traps.
24981 (builtin_function_type): Add vgbbd builtin function which takes an
24983 (altivec_expand_vec_perm_const): Add support for new power8 merge
24986 * config/rs6000/vsx.md (VSX_L2): New iterator for 128-bit types,
24987 that does not include TImdoe for use with 32-bit.
24988 (UNSPEC_VSX_CVSPDPN): Support for power8 xscvdpspn and xscvspdpn
24990 (UNSPEC_VSX_CVDPSPN): Likewise.
24991 (vsx_xscvdpspn): Likewise.
24992 (vsx_xscvspdpn): Likewise.
24993 (vsx_xscvdpspn_scalar): Likewise.
24994 (vsx_xscvspdpn_directmove): Likewise.
24995 (vsx_and<mode>3): Split logical operations into 32-bit and
24996 64-bit. Add support to do logical operations on TImode as well as
24997 VSX vector types. Allow logical operations to be done in either
24998 VSX registers or in general purpose registers in 64-bit mode. Add
24999 splitters if GPRs were used. For AND, add clobber of CCmode to
25000 allow use of ANDI on GPRs. Rewrite nor to use the canonical RTL
25002 (vsx_and<mode>3_32bit): Likewise.
25003 (vsx_and<mode>3_64bit): Likewise.
25004 (vsx_ior<mode>3): Likewise.
25005 (vsx_ior<mode>3_32bit): Likewise.
25006 (vsx_ior<mode>3_64bit): Likewise.
25007 (vsx_xor<mode>3): Likewise.
25008 (vsx_xor<mode>3_32bit): Likewise.
25009 (vsx_xor<mode>3_64bit): Likewise.
25010 (vsx_one_cmpl<mode>2): Likewise.
25011 (vsx_one_cmpl<mode>2_32bit): Likewise.
25012 (vsx_one_cmpl<mode>2_64bit): Likewise.
25013 (vsx_nor<mode>3): Likewise.
25014 (vsx_nor<mode>3_32bit): Likewise.
25015 (vsx_nor<mode>3_64bit): Likewise.
25016 (vsx_andc<mode>3): Likewise.
25017 (vsx_andc<mode>3_32bit): Likewise.
25018 (vsx_andc<mode>3_64bit): Likewise.
25019 (vsx_eqv<mode>3_32bit): Add support for power8 xxleqv, xxlnand,
25020 and xxlorc instructions.
25021 (vsx_eqv<mode>3_64bit): Likewise.
25022 (vsx_nand<mode>3_32bit): Likewise.
25023 (vsx_nand<mode>3_64bit): Likewise.
25024 (vsx_orc<mode>3_32bit): Likewise.
25025 (vsx_orc<mode>3_64bit): Likewise.
25027 * config/rs6000/rs6000.h (VLOGICAL_REGNO_P): Update comment.
25029 * config/rs6000/altivec.md (UNSPEC_VGBBD): Add power8 vgbbd
25031 (p8_vmrgew): Add power8 vmrgew and vmrgow instructions.
25032 (p8_vmrgow): Likewise.
25033 (altivec_and<mode>3): Add clobber of CCmode to allow AND using
25034 GPRs to be split under VSX.
25035 (p8v_clz<mode>2): Add power8 count leading zero support.
25036 (p8v_popcount<mode>2): Add power8 population count support.
25037 (p8v_vgbbd): Add power8 gather bits by bytes by doubleword
25040 * config/rs6000/rs6000.md (eqv<mode>3): Add support for powerp eqv
25043 * config/rs6000/altivec.h (vec_eqv): Add defines to export power8
25045 (vec_nand): Likewise.
25046 (vec_vclz): Likewise.
25047 (vec_vclzb): Likewise.
25048 (vec_vclzd): Likewise.
25049 (vec_vclzh): Likewise.
25050 (vec_vclzw): Likewise.
25051 (vec_vgbbd): Likewise.
25052 (vec_vmrgew): Likewise.
25053 (vec_vmrgow): Likewise.
25054 (vec_vpopcnt): Likewise.
25055 (vec_vpopcntb): Likewise.
25056 (vec_vpopcntd): Likewise.
25057 (vec_vpopcnth): Likewise.
25058 (vec_vpopcntw): Likewise.
25060 2013-06-06 Vladimir Makarov <vmakarov@redhat.com>
25062 PR rtl-optimization/57468
25063 * config/i386/i386.c (inline_secondary_memory_needed): Ignore
25066 2013-06-06 Vladimir Makarov <vmakarov@redhat.com>
25068 PR rtl-optimization/57459
25069 * lra-constraints.c (update_ebb_live_info): Fix typo for operand
25070 type when setting live regs.
25072 2013-06-06 Vladimir Makarov <vmakarov@redhat.com>
25074 * config/s390/s390.opt (mlra): New option.
25075 * config/s390/s390.c (s390_decompose_address): Check displacement
25076 for all registers for LRA.
25077 (s390_secondary_reload): Don't used secondary reloads for LRA.
25078 (s390_lra_p): New function.
25079 (TARGET_LRA_P): Define.
25080 * config/s390/s390.md (*movmem_short, *clrmem_short): Change value
25081 of attribute cpu_facility to zarch for the last alternative.
25082 (*cmpmem_short): Ditto.
25084 2013-06-06 Eric Botcazou <ebotcazou@adacore.com>
25086 * config/arm/arm.c (arm_r3_live_at_start_p): New predicate.
25087 (arm_compute_static_chain_stack_bytes): Use it. Tidy up.
25088 (arm_expand_prologue): Likewise.
25090 2013-06-06 Teresa Johnson <tejohnson@google.com>
25093 * ifcvt.c (find_if_case_1): Replace BB_COPY_PARTITION with assert
25094 as this is now done by redirect_edge_and_branch_force.
25095 * function.c (thread_prologue_and_epilogue_insns): Insert new bb after
25096 barriers, and fix interaction with splitting.
25097 * emit-rtl.c (try_split): Copy REG_CROSSING_JUMP notes.
25098 * cfgcleanup.c (try_forward_edges): Fix early return value to properly
25099 reflect changes made in the routine.
25100 * bb-reorder.c (emit_barrier_after_bb): Move to cfgrtl.c.
25101 (fix_up_fall_thru_edges): Remove incorrect check for bb layout order
25102 since this is called in cfglayout mode, and replace partition fixup
25103 with assert as that is now done by force_nonfallthru_and_redirect.
25104 (add_reg_crossing_jump_notes): Handle the fact that some jumps may
25105 already be marked with region crossing note.
25106 (insert_section_boundary_note): Make non-static, gate on flag
25107 has_bb_partition, rewrite to also check for multiple partitions.
25108 (rest_of_handle_reorder_blocks): Remove call to
25109 insert_section_boundary_note, now done later during free_cfg.
25110 (duplicate_computed_gotos): Don't duplicate partition crossing edge.
25111 * bb-reorder.h (insert_section_boundary_note): Declare.
25112 * Makefile.in (cfgrtl.o): Depend on bb-reorder.h
25113 * cfgrtl.c (rest_of_pass_free_cfg): If partitions exist
25114 invoke insert_section_boundary_note.
25115 (try_redirect_by_replacing_jump): Remove unnecessary
25116 check for region crossing note.
25117 (fixup_partition_crossing): New function.
25118 (rtl_redirect_edge_and_branch): Fixup partition boundaries.
25119 (emit_barrier_after_bb): Move here from bb-reorder.c, handle insertion
25120 in non-cfglayout mode.
25121 (force_nonfallthru_and_redirect): Fixup partition boundaries,
25122 remove old code that tried to do this. Emit barrier correctly
25123 when we are in cfglayout mode.
25124 (last_bb_in_partition): New function.
25125 (rtl_split_edge): Correctly fixup partition boundaries.
25126 (commit_one_edge_insertion): Remove old code that tried to
25127 fixup region crossing edge since this is now handled in
25128 split_block, and set up insertion point correctly since
25129 block may now end in a jump.
25130 (verify_hot_cold_block_grouping): Guard against checking when not in
25131 linearized RTL mode.
25132 (rtl_verify_edges): Add checks for incorrect/missing REG_CROSSING_JUMP
25134 (rtl_verify_flow_info_1): Move verify_hot_cold_block_grouping to
25135 rtl_verify_flow_info, so not called in cfglayout mode.
25136 (rtl_verify_flow_info): Move verify_hot_cold_block_grouping here.
25137 (fixup_reorder_chain): Remove old code that attempted to fixup region
25138 crossing note as this is now handled in force_nonfallthru_and_redirect.
25139 (duplicate_insn_chain): Don't duplicate switch section notes.
25140 (rtl_can_remove_branch_p): Remove unnecessary check for region crossing
25142 * basic-block.h (emit_barrier_after_bb): Declare.
25144 2013-06-06 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
25146 * config/arm/arm-fixed.md (add<mode>3,usadd<mode>3,ssadd<mode>3,
25147 sub<mode>3, ussub<mode>3, sssub<mode>3, arm_ssatsihi_shift,
25148 arm_usatsihi): Adjust alternatives for arm_restrict_it.
25150 2013-06-06 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
25152 * config/arm/arm-ldmstm.ml: Set "predicable_short_it" to "no"
25154 * config/arm/ldmstm.md: Regenerate.
25156 2013-06-06 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
25158 * config/arm/sync.md (atomic_loaddi_1):
25159 Disable predication for arm_restrict_it.
25160 (arm_load_exclusive<mode>): Likewise.
25161 (arm_load_exclusivesi): Likewise.
25162 (arm_load_exclusivedi): Likewise.
25163 (arm_load_acquire_exclusive<mode>): Likewise.
25164 (arm_load_acquire_exclusivesi): Likewise.
25165 (arm_load_acquire_exclusivedi): Likewise.
25166 (arm_store_exclusive<mode>): Likewise.
25167 (arm_store_exclusive<mode>): Likewise.
25168 (arm_store_release_exclusivedi): Likewise.
25169 (arm_store_release_exclusive<mode>): Likewise.
25171 2013-06-06 Richard Biener <rguenther@suse.de>
25173 * lto-streamer.h (enum LTO_tags): Move LTO_tree_pickle_reference
25175 (lto_tag_is_tree_code_p): Adjust.
25176 (lto_tag_is_gimple_code_p): Likewise.
25177 (lto_gimple_code_to_tag): Likewise.
25178 (lto_tag_to_gimple_code): Likewise.
25179 (lto_tree_code_to_tag): Likewise.
25180 (lto_tag_to_tree_code): Likewise.
25181 * data-streamer.h (streamer_write_hwi_in_range): Use
25182 uhwi streaming to stream the normalized range.
25183 (streamer_read_hwi_in_range): Likewise.
25185 2013-06-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
25187 * config/arm/arm.md (enabled_for_depr_it): New attribute.
25188 (predicable_short_it): Likewise.
25189 (predicated): Likewise.
25190 (enabled): Handle above.
25191 (define_cond_exec): Set predicated attribute to yes.
25193 2013-06-05 Mike Stump <mikestump@comcast.net>
25195 * gdbinit.in (__FUNCTION__): Add.
25197 2013-06-05 Uros Bizjak <ubizjak@gmail.com>
25199 * config/alpha/alpha.c (alpha_emit_conditional_move): Swap all
25200 GE, GT, GEU and GTU compares, modulo DImode compares with zero.
25202 2013-06-05 Jan Hubicka <jh@suse.cz>
25204 * varasm.c (mark_decl_referenced): Revert the removal until targets
25207 2013-06-05 David Edelsohn <dje.gcc@gmail.com>
25209 * config/rs6000/rs6000.c (print_operand, 'z'): Use DECL_PRESERVE_P
25210 instead of mark_decl_referenced.
25212 2013-06-05 Jan Hubicka <jh@suse.cz>
25214 * cgraph.c (cgraph_remove_node): Clear forced_by_abi.
25215 (cgraph_node_cannot_be_local_p_1): Honnor symbol.forced_by_abi
25216 and symtab_used_from_object_file_p.
25217 (cgraph_make_node_local_1): Clear forced_by_abi.
25218 (cgraph_can_remove_if_no_direct_calls_and): Use forced_by_abi
25219 * cgraph.h (symtab_node_base): Add forced_by_abi.
25220 (decide_is_variable_needed): Remove.
25221 (varpool_can_remove_if_no_refs): Honnor symbol.forced_by_abi.
25222 * cgraphunit.c (cgraph_decide_is_function_needed): Rename to ..
25223 (decide_is_symbol_needed): ... this one; handle symbols in general;
25224 always analyze virtuals; honnor forced_by_abi.
25225 (cgraph_finalize_function): Update.
25226 (varpool_finalize_decl): Update.
25227 (symbol_defined_and_needed): Remove.
25228 (analyze_functions): Update.
25229 * lto-cgraph.c (lto_output_node, lto_output_varpool_node,
25230 output_refs, input_overwrite_node): Handle forced_by_abi.
25231 * ipa.c (cgraph_address_taken_from_non_vtable_p): Rename to ...
25232 (address_taken_from_non_vtable_p): ... this one.
25233 (comdat_can_be_unshared_p_1): New function.
25234 (cgraph_comdat_can_be_unshared_p): Rename to ...
25235 (comdat_can_be_unshared_p): ... this one; handle symbols in general.
25236 (varpool_externally_visible_p): Use comdat_can_be_unshared_p.
25237 (function_and_variable_visibility): Clear forced_by_abi as needed.
25238 * trans-mem.c (ipa_tm_mark_forced_by_abi_node): New functoin.
25239 (ipa_tm_create_version_alias, ipa_tm_create_version): Update.
25240 * symtab.c (dump_symtab_base): Dump forced_by_abi.
25241 * varpool.c (decide_is_variable_needed): Remove.
25243 2013-06-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
25245 * config/arm/arm.c (MAX_INSN_PER_IT_BLOCK): New macro.
25246 (arm_option_override): Override arm_restrict_it where appropriate.
25247 (thumb2_final_prescan_insn): Use MAX_INSN_PER_IT_BLOCK.
25248 * config/arm/arm.opt (mrestrict-it): New command-line option.
25249 * doc/invoke.texi: Document -mrestrict-it.
25251 2013-06-05 David Malcolm <dmalcolm@redhat.com>
25253 * tsan.c (tsan_atomic_table): Make const.
25255 2013-06-05 Richard Biener <rguenther@suse.de>
25257 * tree-streamer.c (streamer_tree_cache_insert_1): Update the
25258 index associated with the tree we are supposed to replace.
25259 * tree-streamer-out.c (pack_ts_base_value_fields): Output
25260 TREE_ASM_WRITTEN as zero for everything but SSA names.
25262 2013-06-05 David Malcolm <dmalcolm@redhat.com>
25264 * tree-ssa-structalias.c (call_stmt_vars): Make static.
25266 2013-06-04 Jan Hubicka <jh@suse.cz>
25268 * lto-cgraph.c (get_alias_symbol): Remove weakref sanity check.
25269 (input_node, input_varpool_node): Handle correctly external same
25271 * ipa.c (symtab_remove_unreachable_nodes): Do not remove external
25272 nodes at ltrans stage.
25274 2013-06-04 Jan Hubicka <jh@suse.cz>
25276 * ipa-inline.c (update_caller_keys): Fix availability test.
25277 (update_callee_keys): Likewise.
25278 * symtab.c (symtab_alias_ultimate_target): Make availaiblity logic
25279 to follow ELF standard.
25281 2013-06-04 Jürgen Urban <JuergenUrban@gmx.de>
25283 * config.gcc (mipsr5900-*-elf*, mipsr5900el-*-elf*, mips64r5900-*-elf*)
25284 (mips64r5900el-*-elf*): New configurations.
25285 * config/mips/mips-cpus.def (r5900): New processor.
25286 * config/mips/mips-tables.opt: Regenerate.
25287 * config/mips/mips.c (mips_rtx_cost_data): Add an R5900 entry.
25288 (mips_issue_rate): Handle PROCESSOR_R5900.
25289 (mips_reorg_process_insns): Force reorder mode for the R5900.
25290 * config/mips/mips.h (TARGET_MIPS5900): Define.
25291 (ISA_HAS_CONDMOVE, ISA_HAS_PREFETCH, ISA_HAS_HILO_INTERLOCKS): Include
25293 (ISA_HAS_LOAD_DELAY, ISA_HAS_XFER_DELAY, ISA_HAS_FCMP_DELAY): Exclude
25295 * config/mips/mips.md (processor): Add r5900.
25296 (MOVECC): Disallow CCmode conditions for TARGET_MIPS5900.
25298 2013-06-04 Ian Bolton <ian.bolton@arm.com>
25300 * config/aarch64/aarch64.md (*mov<mode>_aarch64): Call
25301 into function to generate MOVI instruction.
25302 * config/aarch64/aarch64.c (aarch64_simd_container_mode): New function.
25303 (aarch64_preferred_simd_mode): Turn into wrapper.
25304 (aarch64_output_scalar_simd_mov_immediate): New function.
25305 * config/aarch64/aarch64-protos.h: Add prototype for above.
25307 2013-06-04 Ian Bolton <ian.bolton@arm.com>
25309 * config/aarch64/aarch64.c (simd_immediate_info): Remove
25310 element_char member.
25311 (sizetochar): Return signed char.
25312 (aarch64_simd_valid_immediate): Remove elchar and other
25313 unnecessary variables.
25314 (aarch64_output_simd_mov_immediate): Take rtx instead of &rtx.
25315 Calculate element_char as required.
25316 * config/aarch64/aarch64-protos.h: Update and move prototype
25317 for aarch64_output_simd_mov_immediate.
25318 * config/aarch64/aarch64-simd.md (*aarch64_simd_mov<mode>):
25321 2013-06-04 Ian Bolton <ian.bolton@arm.com>
25323 * config/aarch64/aarch64.c (simd_immediate_info): Struct to hold
25324 information completed by aarch64_simd_valid_immediate.
25325 (aarch64_legitimate_constant_p): Update arguments.
25326 (aarch64_simd_valid_immediate): Work with struct rather than many
25328 (aarch64_simd_scalar_immediate_valid_for_move): Update arguments.
25329 (aarch64_simd_make_constant): Update arguments.
25330 (aarch64_output_simd_mov_immediate): Work with struct rather than
25331 many pointers. Output immediate directly rather than as operand.
25332 * config/aarch64/aarch64-protos.h (aarch64_simd_valid_immediate):
25334 * config/aarch64/constraints.md (Dn): Update arguments.
25336 2013-06-04 Ian Bolton <ian.bolton@arm.com>
25338 * config/aarch64/aarch64.c (aarch64_simd_valid_immediate): No
25340 (aarch64_simd_immediate_valid_for_move): Remove.
25341 (aarch64_simd_scalar_immediate_valid_for_move): Update call.
25342 (aarch64_simd_make_constant): Update call.
25343 (aarch64_output_simd_mov_immediate): Update call.
25344 * config/aarch64/aarch64-protos.h (aarch64_simd_valid_immediate):
25346 * config/aarch64/constraints.md (Dn): Update call.
25348 2013-06-04 Ian Bolton <ian.bolton@arm.com>
25350 * config/aarch64/aarch64.c (aarch64_simd_valid_immediate): Change
25351 return type to bool for prototype.
25352 (aarch64_legitimate_constant_p): Check for true instead of not -1.
25353 (aarch64_simd_valid_immediate): Fix up each return to return a bool.
25354 (aarch64_simd_immediate_valid_for_move): Update retval for bool.
25356 2013-06-04 Catherine Moore <clm@codesourcery.com>
25358 * config/mips/mips.opt (meva): New.
25359 * config/mips/mips.h (TARGET_CPU_CPP_BUILTINS): Define __mips_eva.
25360 (ASM_SPEC): Handle -meva.
25361 * doc/invoke.texi (meva): Document.
25363 2013-06-04 Alan Modra <amodra@gmail.com>
25365 * config/rs6000/rs6000.c (output_toc): Correct little-endian float
25368 2013-06-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
25370 * rtl.def: Add extra fourth optional field to define_cond_exec.
25371 * gensupport.c (process_one_cond_exec): Process attributes from
25373 * doc/md.texi: Document fourth field in define_cond_exec.
25375 2013-06-04 Eric Botcazou <ebotcazou@adacore.com>
25377 * expmed.c (extract_bit_field_1): In the larger-than-a-word case, factor
25378 out the processing order as in store_bit_field_1.
25380 2013-06-04 Jan Hubicka <jh@suse.cz>
25382 PR middle-end/57500
25383 * cgraphunit.c (cgraph_process_same_body_aliases): Create
25384 non-VAR_DECL node if it does not exist yet.
25386 2013-06-03 Richard Sandiford <rdsandiford@googlemail.com>
25388 * config.gcc (mipsisa64sr71k-*-elf*, mipsisa64sb1-*-elf*)
25389 (mipsisa64sb1el-*-elf*, mips64-*-elf*, mips64el-*-elf*)
25390 (mips64orion-*-elf*, mips64orionel-*-elf*): Remove
25391 target_cpu_default setting.
25393 2013-06-03 Teresa Johnson <tejohnson@google.com>
25395 * dumpfile.c (opt_info_switch_p): Change -fopt-info
25396 default to -fopt-info=optimized instead of all.
25397 * doc/invoke.texi: Ditto.
25398 * tree-vectorizer.c (vectorize_loops): Emit loop vectorization
25399 success under MSG_OPTIMIZED_LOCATIONS, and use dump_printf_loc.
25400 (execute_vect_slp): Emit BB vectorization success under
25401 MSG_OPTIMIZED_LOCATIONS.
25402 * tree-vect-slp.c (vect_slp_transform_bb): Change
25403 MSG_OPTIMIZED_LOCATIONS to MSG_NOTE.
25404 * tree-vect-loop.c (vect_transform_loop): Ditto.
25406 2013-06-03 Jason Merrill <jason@redhat.com>
25409 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
25410 Use TARGET_EXPR for C++.
25412 2013-06-03 Jakub Jelinek <jakub@redhat.com>
25414 PR rtl-optimization/57268
25415 * sched-deps.c (sched_analyze_2): Don't flush_pending_lists
25416 if DEBUG_INSN_P (insn).
25419 2013-05-31 Dinar Temirbulatov <dinar@kugelworks.com>
25421 PR rtl-optimization/57268
25422 * sched-deps.c (sched_analyze_2): Flush dependence lists if
25423 the sum of the read and write lists exceeds MAX_PENDING_LIST_LENGTH.
25425 2013-06-03 Yuri Rumyantsev <yuri.s.rumyantsev@intel.com>
25427 * config/i386/i386.c (ix86_lea_outperforms): Fix formatting.
25428 (ix86_avoid_lea_for_addr): Likewise.
25429 (exact_dependency_1): Likewise.
25430 (ix86_adjust_cost): Likewise.
25431 (swap_top_of_ready_list): Fix formatting and !reload_completed check
25433 (do_reorder_for_imul): Fix typo, formatting and
25434 !reload_completed check removed.
25435 (ix86_sched_reorder): Fix typo and formatting.
25436 (fold_builtin_cpu): Move M_INTEL_SLM at the end of processor types
25439 2013-06-03 Sofiane Naci <sofiane.naci@arm.com>
25441 * config/aarch64/aarch64.md (*movdi_aarch64): Define "simd" attribute.
25443 2013-06-03 Eric Botcazou <ebotcazou@adacore.com>
25445 * varasm.c (output_constant) <CONSTRUCTOR>: Minor formatting tweak.
25446 <STRING_CST>: Likewise.
25447 <VECTOR_CST>: Likewise.
25449 2013-06-01 Janus Weil <janus@gcc.gnu.org>
25450 Mikael Morin <mikael@gcc.gnu.org>
25452 * configure.ac: Add AC_HEADER_TIOCGWINSZ macro.
25453 * config.in: Regenerated.
25454 * configure: Regenerated.
25456 2013-06-01 Jan Hubicka <jh@suse.cz>
25458 PR middle-end/57366
25459 * cgraphunit.c (compile): When weakref is not supported,
25460 set up transparent aliases before final output pass.
25461 * varasm.c (assemble_alias): Do not try to do it here.
25463 2013-06-01 Jan Hubicka <jh@suse.cz>
25465 PR middle-end/57467
25466 * passes.c (for_per_function): Skip unanalyzed functions.
25468 2013-06-01 Jan Hubicka <jh@suse.cz>
25470 * lto-symtab.c (lto_symtab_merge_cgraph_nodes_1): Rename to ...
25471 (lto_symtab_merge_symbols_1): ... this one.
25472 (lto_symtab_merge_cgraph_nodes): Rename to ...
25473 (lto_symtab_merge_symbols): ... this one; simplify.
25474 * cgraph.c (same_body_aliases_done): Rename to ...
25475 (cpp_implicit_aliases_done): ... this one.
25476 (cgraph_create_function_alias): Update.
25477 (cgraph_same_body_alias): Update.
25478 (dump_cgraph_node): Remove alias dumping; simplify thunk dumping.
25479 (verify_edge_corresponds_to_fndecl): Simplify.
25480 * cgraph.h (symtab_node_base): Add cpp_implicit_alias, alias_target.
25481 (cgraph_node): Remove same_body_alias.
25482 (varpool_node): Remove alias_of and extra_name_alias.
25483 (same_body_aliases_done): Rename to ..
25484 (cpp_implicit_aliases_done): ... this one.
25485 (symtab_alias_ultimate_target): Add default parameter.
25486 (symtab_resolve_alias): New function.
25487 (fixup_same_cpp_alias_visibility): Declare.
25488 (cgraph_function_node): Add default parameter.
25489 (cgraph_node_asm_name): Likewise.
25490 (cgraph_function_or_thunk_node): Add default parameter; do
25491 not ICE when it is NULL.
25492 (varpool_variable_node): Likewise.
25493 * tree-emutls.c (create_emultls_var): Update.
25494 (ipa_lower_emutls): Update.
25495 * cgraphunit.c (cgraph_decide_is_function_needed): Update.
25496 (cgraph_reset_node): Reset alias info.
25497 (cgraph_finalize_function): Update.
25498 (fixup_same_cpp_alias_visibility): Move to symtab.c.
25499 (analyze_function): Simplify.
25500 (cgraph_process_same_body_aliases): Simplify.
25501 (analyze_functions): Fixup same body aliases.
25502 (handle_alias_pairs): Simplify.
25503 (assemble_thunk): Update.
25504 (assemble_thunks_and_aliases): Update.
25505 (output_weakrefs): Rewrite.
25506 * lto-cgraph.c (lto_output_node): Rewrite alias handling.
25507 (lto_output_varpool_node): Likewise.
25508 (compute_ltrans_boundary): Remve assert.
25509 (get_alias_symbol): New functoin.
25510 (input_node): Rewrite alias handling.
25511 (input_varpool_node): Likewise.
25512 * ipa-pure-const.c (propagate_pure_const): Fix formating.
25513 * ipa.c (process_references): Handle weakrefs correctly.
25514 (symtab_remove_unreachable_nodes): Likewise.
25515 * trans-mem.c (get_cg_data): Update.
25516 (ipa_tm_create_version_alias): Update.
25517 (ipa_tm_execute): Update.
25518 * symtab.c (dump_symtab_base): Dump aliases.
25519 (verify_symtab_base): Verify aliases.
25520 (symtab_node_availability): New function.
25521 (symtab_alias_ultimate_target): Simplify.
25522 (fixup_same_cpp_alias_visibility): Move here from cgraphunit.c;
25523 handle all the fixup cases.
25524 (symtab_resolve_alias): New function.
25525 * passes.c (ipa_write_summaries): Handle weakrefs.
25526 * varpool.c (varpool_analyze_node): Simplify.
25527 (assemble_aliases): Update.
25528 (varpool_create_variable_alias): Simplify.
25529 (varpool_extra_name_alias): Simplify.
25530 * lto-streamer.h (lto_symtab_merge_cgraph_nodes): Rename to...
25531 (lto_symtab_merge_symbols): ... this one.
25533 2013-06-01 Dinar Temirbulatov <dinar@kugelworks.com>
25536 PR rtl-optimization/57268
25537 * sched-deps.c (sched_analyze_2): Flush dependence lists if
25538 the sum of the read and write lists exceeds MAX_PENDING_LIST_LENGTH.
25540 2013-06-01 Tobias Burnus <burnus@net-b.de>
25542 Partially reverted:
25543 2013-05-31 Tobias Burnus <burnus@net-b.de>
25545 PR middle-end/57073
25546 * tree-ssa-math-opts.c (execute_cse_sincos): Move check
25549 2013-05-31 Dinar Temirbulatov <dinar@kugelworks.com>
25551 PR rtl-optimization/57268
25552 * sched-deps.c (sched_analyze_2): Flush dependence lists if
25553 the sum of the read and write lists exceeds MAX_PENDING_LIST_LENGTH.
25555 2013-05-31 Eric Botcazou <ebotcazou@adacore.com>
25557 * config/rs6000/predicates.md (rs6000_cbranch_operator): Accept some
25558 unordered comparison operators when -fno-trapping-math is in effect
25560 * config/rs6000/rs6000.c (rs6000_generate_compare): Remove dead code
25561 and implement unordered comparison operators properly on the e500.
25563 2013-05-31 Eric Botcazou <ebotcazou@adacore.com>
25565 * simplify-rtx.c (simplify_byte_swapping_operation): Use proper macro
25566 for constant scalar integers.
25567 (simplify_relational_operation_1): Likewise.
25569 2013-05-31 Segher Boessenkool <segher@kernel.crashing.org>
25571 * config/rs6000/rs6000-opts.h (enum processor_type): Reorder.
25572 * config/rs6000/rs6000.md (cpu): Reorder. Split long line.
25575 2013-05-31 Yuri Rumyantsev <yuri.s.rumyantsev@intel.com>
25576 Igor Zamyatin <igor.zamyatin@intel.com>
25578 Silvermont (SLM) architecture performance tuning.
25579 * config/i386/i386.h (enum ix86_tune_indices): Add
25580 X86_TUNE_SPLIT_MEM_OPND_FOR_FP_CONVERTS.
25581 (TARGET_SPLIT_MEM_OPND_FOR_FP_CONVERTS): New define.
25583 * config/i386/i386.c (initial_ix86_tune_features)
25584 <X86_TUNE_SPLIT_MEM_OPND_FOR_FP_CONVERTS>: Initialize.
25585 (ix86_lea_outperforms): Handle Silvermont tuning.
25586 (ix86_avoid_lea_for_add): Add new argument to ix86_lea_outperforms
25588 (ix86_use_lea_for_mov): Likewise.
25589 (ix86_avoid_lea_for_addr): Likewise.
25590 (ix86_lea_for_add_ok): Likewise.
25591 (exact_dependency_1): New function.
25592 (exact_store_load_dependency): Likewise.
25593 (ix86_adjust_cost): Handle Silvermont tuning.
25594 (do_reoder_for_imul): Likewise.
25595 (swap_top_of_ready_list): New function.
25596 (ix86_sched_reorder): Changed to handle Silvermont tuning.
25598 * config/i386/i386.md (peepholes that split memory operand in fp
25601 2013-05-31 Marcus Shawcroft <marcus.shawcroft@arm.com>
25603 * config/aarch64/aarch64.c (aarch64_load_symref_appropriately):
25604 Remove un-necessary braces.
25606 2013-05-31 Marcus Shawcroft <marcus.shawcroft@arm.com>
25608 * config/aarch64/aarch64.c (aarch64_classify_symbol):
25609 Use SYMBOL_TINY_ABSOLUTE for AARCH64_CMODEL_TINY_PIC.
25611 2013-05-31 Tobias Burnus <burnus@net-b.de>
25613 PR middle-end/57073
25614 * tree-ssa-math-opts.c (execute_cse_sincos): Move check further up.
25616 2013-05-31 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
25619 * config/arm/arm.c (const_ok_for_dimode_op): Handle IOR.
25620 * config/arm/arm.md (*iordi3_insn): Change to insn_and_split.
25621 * config/arm/neon.md (iordi3_neon): Remove.
25622 (neon_vorr<mode>): Generate iordi3 instead of iordi3_neon.
25623 * config/arm/predicates.md (imm_for_neon_logic_operand):
25624 Move to earlier in the file.
25625 (neon_logic_op2): Likewise.
25626 (arm_iordi_operand_neon): New predicate.
25628 2013-05-31 Richard Biener <rguenther@suse.de>
25630 PR tree-optimization/57478
25631 PR tree-optimization/57453
25632 * tree-vect-slp.c (vect_bb_slp_scalar_cost): Uses in PHI nodes
25635 2013-05-31 Kaushik Phatak <kaushik.phatak@kpitcummins.com>
25637 * config/rl78/rl78.md (mulqi3,mulhi3): New define_expands.
25638 (*mulqi3_rl78,*mulhi3_rl78,*mulhi3_g13): New define_insns.
25640 2013-05-30 Tobias Burnus <burnus@net-b.de>
25641 Thomas Koenig <tkoenig@gcc.gnu.org>
25643 PR middle-end/57073
25644 * tree-ssa-math-opts.c (execute_cse_sincos): Optimize
25645 powi (-1.0, k) to (k & 1) ? -1.0 : 1.0.
25647 2013-05-30 Steven Bosscher <steven@gcc.gnu.org>
25649 * rtlanal.c (tablejump_p): Expect table and label to be adjacent.
25651 2013-05-30 Vladimir Makarov <vmakarov@redhat.com>
25653 * target.def (register_usage_leveling_p): New hook.
25654 * targhooks.c (default_register_usage_leveling_p): New.
25655 * targhooks.h (default_register_usage_leveling_p): New prototype.
25656 * lra-assigns.c (register_usage_leveling_p): Use the hook.
25657 * doc/tm.texi.in (TARGET_REGISTER_USAGE_LEVELING_P): New hook.
25658 * doc/tm.texi: Update.
25659 * config/i386/i386.c (TARGET_REGISTER_USAGE_LEVELING_P): Define.
25661 2013-05-30 Ian Bolton <ian.bolton@arm.com>
25663 * config/aarch64/aarch64.md (insv<mode>): New define_expand.
25664 (*insv_reg<mode>): New define_insn.
25666 2013-05-30 Joern Rennecke <joern.rennecke@embecosm.com>
25668 PR rtl-optimization/57439
25669 * postreload.c (move2add_valid_value_p): Check that we have
25670 a zero subreg_regno_offset when accessing the register in
25671 the requested mode.
25673 2013-05-30 Yuri Rumyantsev <yuri.s.rumyantsev@intel.com>
25674 Igor Zamyatin <igor.zamyatin@intel.com>
25676 Silvermont (SLM) architecture pipeline model, tuning and
25678 * config.gcc: Add slm config options and target.
25680 * config/i386/slm.md: New.
25682 * config/i386/driver-i386.c (host_detect_local_cpu): Check movbe.
25684 * config/i386/i386-c.c (ix86_target_macros_internal): New case
25686 (ix86_target_macros_internal): Likewise.
25688 * config/i386/i386.c (slm_cost): New cost.
25689 (m_SLM): New macro flag.
25690 (initial_ix86_tune_features): Set m_SLM.
25691 (x86_accumulate_outgoing_args): Likewise.
25692 (x86_arch_always_fancy_math_387): Likewise.
25693 (processor_target_table): Add slm cost.
25694 (cpu_names): Add slm cpu name.
25695 (x86_option_override_internal): Set SLM ISA.
25696 (ix86_issue_rate): New case PROCESSOR_SLM.
25697 (ia32_multipass_dfa_lookahead): Likewise.
25698 (fold_builtin_cpu): Add slm.
25700 * config/i386/i386.h (TARGET_SLM): New target macro.
25701 (target_cpu_default): Add TARGET_CPU_DEFAULT_slm.
25702 (processor_type): Add PROCESSOR_SLM.
25704 * config/i386/i386.md (cpu): Add new value "slm".
25705 (slm.md): Include slm.md.
25707 2013-05-30 Bernd Schmidt <bernds@codesourcery.com>
25708 Zhenqiang Chen <zhenqiang.chen@linaro.org>
25710 * config/arm/arm-protos.h: Add and update function protos.
25711 * config/arm/arm.c (use_simple_return_p): New added.
25712 (thumb2_expand_return): Check simple_return flag.
25713 * config/arm/arm.md: Add simple_return and conditional simple_return.
25714 * config/arm/iterators.md: Add iterator for return and simple_return.
25716 2013-05-30 Zhenqiang Chen <zhenqiang.chen@linaro.org>
25718 * config/arm/arm.c (arm_add_cfa_adjust_cfa_note): New added.
25719 (arm_emit_multi_reg_pop): Add REG_CFA_ADJUST_CFA notes.
25720 (arm_emit_vfp_multi_reg_pop): Likewise.
25721 (thumb2_emit_ldrd_pop): Likewise.
25722 (arm_expand_epilogue): Add misc REG_CFA notes.
25723 (arm_unwind_emit): Skip REG_CFA_ADJUST_CFA and REG_CFA_RESTORE.
25725 2013-05-29 Lawrence Crowl <crowl@google.com>
25727 * config/arm/t-arm: Update for below.
25729 * config/arm/arm.c (arm_libcall_uses_aapcs_base::libcall_htab):
25730 Change type to hash_table. Update dependent calls and types.
25732 * config/i386/t-cygming: Update for below.
25734 * config/i386/t-interix: Update for below.
25736 * config/i386/winnt.c (i386_pe_section_type_flags::htab):
25737 Change type to hash_table. Update dependent calls and types.
25738 (i386_find_on_wrapper_list::wrappers): Likewise.
25740 * config/ia64/t-ia64: Update for below.
25742 * config/ia64/ia64.c (bundle_state_table):
25743 Change type to hash_table. Update dependent calls and types.
25745 * config/mips/mips.c (mips_reorg_process_insns::htab):
25746 Change type to hash_table. Update dependent calls and types.
25748 * config/sol2.c (solaris_comdat_htab):
25749 Change type to hash_table. Update dependent calls and types.
25751 * config/t-sol2: Update for above.
25753 2013-05-29 Teresa Johnson <tejohnson@google.com>
25755 * passes.c (dump_passes): Use FOR_EACH_FUNCTION since
25756 functions are not yet marked as defined.
25758 2013-05-29 Michael Meissner <meissner@linux.vnet.ibm.com>
25759 Pat Haugen <pthaugen@us.ibm.com>
25760 Peter Bergner <bergner@vnet.ibm.com>
25762 * config/rs6000/vector.md (VEC_I): Add support for new power8 V2DI
25766 (vrotl<mode>3): Likewise.
25767 (vashl<mode>3): Likewise.
25768 (vlshr<mode>3): Likewise.
25769 (vashr<mode>3): Likewise.
25771 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
25772 support for power8 V2DI builtins.
25774 * config/rs6000/rs6000-builtin.def (abs_v2di): Add support for
25775 power8 V2DI builtins.
25776 (vupkhsw): Likewise.
25777 (vupklsw): Likewise.
25778 (vaddudm): Likewise.
25779 (vminsd): Likewise.
25780 (vmaxsd): Likewise.
25781 (vminud): Likewise.
25782 (vmaxud): Likewise.
25783 (vpkudum): Likewise.
25784 (vpksdss): Likewise.
25785 (vpkudus): Likewise.
25786 (vpksdus): Likewise.
25791 (vsubudm): Likewise.
25792 (vcmpequd): Likewise.
25793 (vcmpgtsd): Likewise.
25794 (vcmpgtud): Likewise.
25795 (vcmpequd_p): Likewise.
25796 (vcmpgtsd_p): Likewise.
25797 (vcmpgtud_p): Likewise.
25798 (vupkhsw): Likewise.
25799 (vupklsw): Likewise.
25800 (vaddudm): Likewise.
25801 (vmaxsd): Likewise.
25802 (vmaxud): Likewise.
25803 (vminsd): Likewise.
25804 (vminud): Likewise.
25805 (vpksdss): Likewise.
25806 (vpksdus): Likewise.
25807 (vpkudum): Likewise.
25808 (vpkudus): Likewise.
25813 (vsubudm): Likewise.
25815 * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Add
25816 support for power8 V2DI instructions.
25818 * config/rs6000/altivec.md (UNSPEC_VPKUHUM): Add support for
25819 power8 V2DI instructions. Combine pack and unpack insns to use an
25820 iterator for each mode. Check whether a particular mode supports
25821 Altivec instructions instead of just checking TARGET_ALTIVEC.
25822 (UNSPEC_VPKUWUM): Likewise.
25823 (UNSPEC_VPKSHSS): Likewise.
25824 (UNSPEC_VPKSWSS): Likewise.
25825 (UNSPEC_VPKUHUS): Likewise.
25826 (UNSPEC_VPKSHUS): Likewise.
25827 (UNSPEC_VPKUWUS): Likewise.
25828 (UNSPEC_VPKSWUS): Likewise.
25829 (UNSPEC_VPACK_SIGN_SIGN_SAT): Likewise.
25830 (UNSPEC_VPACK_SIGN_UNS_SAT): Likewise.
25831 (UNSPEC_VPACK_UNS_UNS_SAT): Likewise.
25832 (UNSPEC_VPACK_UNS_UNS_MOD): Likewise.
25833 (UNSPEC_VUPKHSB): Likewise.
25834 (UNSPEC_VUNPACK_HI_SIGN): Likewise.
25835 (UNSPEC_VUNPACK_LO_SIGN): Likewise.
25836 (UNSPEC_VUPKHSH): Likewise.
25837 (UNSPEC_VUPKLSB): Likewise.
25838 (UNSPEC_VUPKLSH): Likewise.
25840 (VI_char): Likewise.
25841 (VI_scalar): Likewise.
25842 (VI_unit): Likewise.
25844 (VP_small): Likewise.
25845 (VP_small_lc): Likewise.
25846 (VU_char): Likewise.
25847 (add<mode>3): Likewise.
25848 (altivec_vaddcuw): Likewise.
25849 (altivec_vaddu<VI_char>s): Likewise.
25850 (altivec_vadds<VI_char>s): Likewise.
25851 (sub<mode>3): Likewise.
25852 (altivec_vsubcuw): Likewise.
25853 (altivec_vsubu<VI_char>s): Likewise.
25854 (altivec_vsubs<VI_char>s): Likewise.
25855 (altivec_vavgs<VI_char>): Likewise.
25856 (altivec_vcmpbfp): Likewise.
25857 (altivec_eq<mode>): Likewise.
25858 (altivec_gt<mode>): Likewise.
25859 (altivec_gtu<mode>): Likewise.
25860 (umax<mode>3): Likewise.
25861 (smax<mode>3): Likewise.
25862 (umin<mode>3): Likewise.
25863 (smin<mode>3): Likewise.
25864 (altivec_vpkuhum): Likewise.
25865 (altivec_vpkuwum): Likewise.
25866 (altivec_vpkshss): Likewise.
25867 (altivec_vpkswss): Likewise.
25868 (altivec_vpkuhus): Likewise.
25869 (altivec_vpkshus): Likewise.
25870 (altivec_vpkuwus): Likewise.
25871 (altivec_vpkswus): Likewise.
25872 (altivec_vpks<VI_char>ss): Likewise.
25873 (altivec_vpks<VI_char>us): Likewise.
25874 (altivec_vpku<VI_char>us): Likewise.
25875 (altivec_vpku<VI_char>um): Likewise.
25876 (altivec_vrl<VI_char>): Likewise.
25877 (altivec_vsl<VI_char>): Likewise.
25878 (altivec_vsr<VI_char>): Likewise.
25879 (altivec_vsra<VI_char>): Likewise.
25880 (altivec_vsldoi_<mode>): Likewise.
25881 (altivec_vupkhsb): Likewise.
25882 (altivec_vupkhs<VU_char>): Likewise.
25883 (altivec_vupkls<VU_char>): Likewise.
25884 (altivec_vupkhsh): Likewise.
25885 (altivec_vupklsb): Likewise.
25886 (altivec_vupklsh): Likewise.
25887 (altivec_vcmpequ<VI_char>_p): Likewise.
25888 (altivec_vcmpgts<VI_char>_p): Likewise.
25889 (altivec_vcmpgtu<VI_char>_p): Likewise.
25890 (abs<mode>2): Likewise.
25891 (vec_unpacks_hi_v16qi): Likewise.
25892 (vec_unpacks_hi_v8hi): Likewise.
25893 (vec_unpacks_lo_v16qi): Likewise.
25894 (vec_unpacks_hi_<VP_small_lc>): Likewise.
25895 (vec_unpacks_lo_v8hi): Likewise.
25896 (vec_unpacks_lo_<VP_small_lc>): Likewise.
25897 (vec_pack_trunc_v8h): Likewise.
25898 (vec_pack_trunc_v4si): Likewise.
25899 (vec_pack_trunc_<mode>): Likewise.
25901 * config/rs6000/altivec.h (vec_vaddudm): Add defines for power8
25903 (vec_vmaxsd): Likewise.
25904 (vec_vmaxud): Likewise.
25905 (vec_vminsd): Likewise.
25906 (vec_vminud): Likewise.
25907 (vec_vpksdss): Likewise.
25908 (vec_vpksdus): Likewise.
25909 (vec_vpkudum): Likewise.
25910 (vec_vpkudus): Likewise.
25911 (vec_vrld): Likewise.
25912 (vec_vsld): Likewise.
25913 (vec_vsrad): Likewise.
25914 (vec_vsrd): Likewise.
25915 (vec_vsubudm): Likewise.
25916 (vec_vupkhsw): Likewise.
25917 (vec_vupklsw): Likewise.
25919 2013-05-29 Jan Hubicka <jh@suse.cz>
25921 * cgraph.h (symtab_node_base): Add definition, alias and analyzed
25922 flags; reorder rest of fields in more consistent way.
25923 (varpool_node): Remove analyzed, finalized and alias.
25924 (cgraph_ndoe): Likewise.
25925 (symtab_alias_ultimate_target): New function.
25926 (cgraph_function_node): Move offline.
25927 (cgraph_reset_node): Declare.
25928 (cgraph_comdat_can_be_unshared_p): Remove.
25929 (varpool_remove_initializer): Declare.
25930 (varpool_first_defined_variable, varpool_next_defined_variable
25931 cgraph_first_defined_function, cgraph_next_defined_function): Update.
25932 (cgraph_function_with_gimple_body_p): Update.
25933 (varpool_all_refs_explicit_p): Update.
25934 (symtab_alias_target): New function.
25935 (cgraph_alias_aliased_node, varpool_alias_aliased_node): Rename to ...
25936 (cgraph_alias_target, varpool_alias_target): .. this one; simplify.
25937 (cgraph_function_or_thunk_node): Simplify using
25938 symtab_alias_ultimate_target.
25939 (varpool_variable_node): Likewise.
25940 * cgraph.c (cgraph_create_function_alias): Update.
25941 (cgraph_add_thunk): Update.
25942 (cgraph_remove_node): Update.
25943 (dump_cgraph_node): Do not dump removed flags.
25944 (cgraph_function_body_availability): Update.
25945 (cgraph_propagate_frequency): Update.
25946 (verify_cgraph_node): Check sanity of local flag.
25947 (cgraph_function_node): Move here from cgraph.h; revamp for
25948 cgraph_function_or_thunk_node.
25949 * lto-symtab.c (lto_varpool_replace_node): Update.
25950 (lto_symtab_resolve_can_prevail_p): Update.
25951 (lto_symtab_merge_cgraph_nodes): Update.
25952 * ipa-cp.c (determine_versionability, initialize_node_lattices,
25953 propagate_constants_accross_call, devirtualization_time_bonus,
25954 ipcp_propagate_stage): Update.
25955 * tree-emutls.c (create_emultls_var, ipa_lower_emutls): Update.
25956 * ipa-inline-transform.c (clone_inlined_nodes,
25957 preserve_function_body_p): Update.
25958 * ipa-reference.c (propagate): Update.
25959 (write_node_summary_p): Update.
25960 * toplev.c (wrapup_global_declaration_2): Update.
25961 * cgraphunit.c (cgraph_analyze_function): Rename to ...
25962 (analyze_function) ... this one.
25963 (cgraph_process_new_functions): Update.
25964 (cgraph_reset_node): Export.
25965 (cgraph_finalize_function): Update.
25966 (cgraph_add_new_function): Update.
25967 (process_function_and_variable_attributes): Update.
25968 (varpool_finalize_decl): Update.
25969 (symbol_finalized): Remove.
25970 (symbol_finalized_and_needed): Rename to ...
25971 (symbol_defined_and_needed): ... update.
25972 (cgraph_analyze_functions): Update.
25973 (handle_alias_pairs): Update.
25974 (mark_functions_to_output): Update.
25975 (assemble_thunk): Update.
25976 (output_in_order): Update.
25977 (output_weakrefs): Update.
25978 (finalize_compilation_unit): Update.
25979 * lto-cgraph.c (reachable_from_other_partition_p, lto_output_node,
25980 lto_output_varpool_node, compute_ltrans_boundary, input_overwrite_node,
25981 input_node, input_varpool_node): Update.
25982 * dbxout.c (dbxout_expand_expr): Update.
25983 * cgraphclones.c (cgraph_clone_node): Update.
25984 (cgraph_copy_node_for_versioning): Update.
25985 (cgraph_materialize_clone): Update.
25986 (cgraph_materialize_all_clones): Update.
25987 * ipa-pure-const.c (analyze_function, pure_const_write_summary,
25988 propagate_pure_const, propagate_nothrow): Update.
25989 * lto-streamer-out.c (lto_output, write_symbol): Update.
25990 * ipa-utils.c (ipa_reverse_postorder): Update.
25991 * ipa-inline.c (can_inline_edge_p): Update.
25992 (update_caller_keys, ipa_inline): Update.
25993 * dwarf2out.c (reference_to_unused,
25994 premark_types_used_by_global_vars_helper): Update.
25995 * tree-eh.c (tree_could_trap_p): Update.
25996 * ipa-split.c (consider_split, execute_split_functions): Update.
25997 * ipa.c (cgraph_non_local_node_p_1, cgraph_local_node_p,
25998 has_addr_references_p): Update; move ahead in file for better
26000 (process_references): Simplify.
26001 (symtab_remove_unreachable_nodes): Update; cleanup way function/var
26002 bodies are removed.
26003 (cgraph_comdat_can_be_unshared_p): Make static.
26004 (cgraph_externally_visible_p): Update.
26005 (varpool_externally_visible_p): Update.
26006 (function_and_variable_visibility): Update.
26007 * trans-mem.c (get_cg_data, ipa_tm_mayenterirr_function,
26008 ipa_tm_mark_force_output_node): Update.
26009 * ipa-inline-analysis.c (dump_inline_summary, initialize_inline_failed,
26010 estimate_edge_devirt_benefit, inline_generate_summary,
26011 inline_write_summary): Update.
26012 * gimple-fold.c (can_refer_decl_in_current_unit_p): Update.
26013 * ipa-prop.c (ipa_compute_jump_functions): Update.
26014 (ipa_print_node_params, ipa_prop_read_section,
26015 ipa_update_after_lto_read, read_replacements_section): Update.
26016 * varasm.c (mark_decl_referenced): Update.
26017 (assemble_alias, dump_tm_clone_pairs): Update.
26018 * tree-inline.c (copy_bb): Update.
26019 (estimate_num_insns, optimize_inline_calls, tree_function_versioning):
26021 * symtab.c (dump_symtab_base): Print new flags.
26022 (verify_symtab_base): Verify new flags.
26023 (symtab_alias_ultimate_target): New function.
26024 * tree-ssa-structalias.c (get_constraint_for_ssa_var,
26025 create_variable_info_for, associate_varinfo_to_alias, ipa_pta_execute):
26027 * passes.c (ipa_write_summaries, ipa_write_optimization_summaries):
26029 * i386.c (ix86_get_function_versions_dispatcher,
26030 ix86_generate_version_dispatcher_body): Update.
26031 (fold_builtin_cpu): Use varpool_add_new_variable.
26032 * varpool.c (varpool_remove_initializer): Break out from ...
26033 (varpool_remove_node): ... this one.
26034 (dump_varpool_node, varpool_node_for_asm,
26035 cgraph_variable_initializer_availability, varpool_analyze_node,
26036 varpool_assemble_decl, varpool_remove_unreferenced_decls,
26037 varpool_finalize_named_section_flags, varpool_create_variable_alias):
26040 2013-05-29 Jan Hubicka <jh@suse.cz>
26042 * passes.c (init_optimization_passes): Move OMP expansion into lowering.
26044 2013-05-29 Easwaran Raman <eraman@google.com>
26046 PR tree-optimization/57442
26047 * tree-ssa-reassoc.c (appears_later_in_bb): Return correct value
26048 when control exits the main loop.
26050 2013-05-29 Sandeep Kumar Singh <Sandeep.Singh2@kpitcummins.com>
26052 * rx/rx.h (TARGET_CPU_CPP_BUILTINS): Add macros for RX100, RX200,
26054 * rx/rx.opt: Add macro for rx100 with string rx100 and value RX100.
26055 * rx/rx-opts.h (rx_cpu_types): Add new cpu type rx100.
26056 * rx/t-rx: Add rx100 under multi library matches option for nofpu
26059 2013-05-29 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
26061 PR tree-optimization/57441
26062 * gimple-ssa-strength-reduction.c (analyze_candidates_and_replace):
26063 Don't limit size of incr_vec to number of candidates.
26065 2013-05-29 Steve Ellcey <sellcey@imgtec.com>
26067 * config/mips/mti-linux.h (SYSROOT_SUFFIX_SPEC): Add micromips
26068 and mips16 directories.
26069 * config/mips/t-mti-linux (MULTILIB_OPTIONS): Add micromips and mips16.
26070 (MULTILIB_DIRNAMES): Ditto.
26071 (MULTILIB_EXCEPTIONS): Add new exceptions.
26072 * config/mips/t-mti-elf (MULTILIB_OPTIONS): Add micromips.
26073 (MULTILIB_DIRNAMES): Ditto.
26074 (MULTILIB_EXCEPTIONS): Add new exceptions.
26076 2012-05-29 Chris Schlumberger-Socha <chris.schlumberger-socha@arm.com>
26077 Marcus Shawcroft <marcus.shawcroft@arm.com>
26079 * config/aarch64/aarch64-protos.h (aarch64_symbol_type): Define
26080 SYMBOL_TINY_ABSOLUTE.
26081 * config/aarch64/aarch64.c (aarch64_load_symref_appropriately): Handle
26082 SYMBOL_TINY_ABSOLUTE.
26083 (aarch64_expand_mov_immediate): Likewise.
26084 (aarch64_classify_symbol): Likewise.
26085 (aarch64_mov_operand_p): Remove ATTRIBUTE_UNUSED.
26086 Permit SYMBOL_TINY_ABSOLUTE.
26087 * config/aarch64/predicates.md (aarch64_mov_operand): Permit CONST.
26089 2013-05-29 Chris Schlumberger-Socha <chris.schlumberger-socha@arm.com>
26090 Marcus Shawcroft <marcus.shawcroft@arm.com>
26092 * config/aarch64/aarch64.c (aarch64_classify_symbol): Remove comment.
26093 Refactor if/switch. Replace gcc_assert with if.
26095 2013-05-29 Ganesh Gopalasubramanian <Ganesh.Gopalasubramanian@amd.com>
26097 * config/i386/i386.c (initial_ix86_tune_features): Enable
26098 FP Reassociation for AMD bdver1 and bdver2.
26100 2013-05-29 Martin Jambor <mjambor@suse.cz>
26102 * tree-cfg.c (verify_expr): Verify that BIT_FIELD_REF, REALPART_EXPR
26103 and IMAGPART_EXPR do not occur within other handled_components.
26105 2013-05-29 Richard Biener <rguenther@suse.de>
26107 * tree-vect-slp.c (vect_bb_slp_scalar_cost): Guard vinfo
26108 access on whether the use is in the BB we currently try to
26110 (vect_bb_vectorization_profitable_p): Pass the BB we currently
26111 vectorize to vect_bb_slp_scalar_cost.
26113 2013-05-29 Richard Biener <rguenther@suse.de>
26115 * tree-vect-slp.c (vect_bb_slp_scalar_cost): New function
26116 computing scalar cost offsetted by stmts that are kept live
26118 (vect_bb_vectorization_profitable_p): Use vect_bb_slp_scalar_cost
26119 for computation of scalar cost.
26121 2013-05-28 Steve Ellcey <sellcey@mips.com>
26123 * config/mips/mips-cpus.def (mips32r2): Change processor type.
26125 2013-05-28 Balaji V. Iyer <balaji.v.iyer@intel.com>
26127 * doc/extend.texi (C Extensions): Added documentation about Cilk Plus
26128 array notation built-in reduction functions.
26129 * doc/passes.texi (Passes): Added documentation about changes done
26131 * doc/invoke.texi (C Dialect Options): Added documentation about
26132 the -fcilkplus flag.
26133 * Makefile.in (C_COMMON_OBJS): Added c-family/array-notation-common.o.
26134 (BUILTINS_DEF): Depend on cilkplus.def.
26135 * builtins.def: Include cilkplus.def. Define DEF_CILKPLUS_BUILTIN.
26136 * builtin-types.def: Define BT_FN_INT_PTR_PTR_PTR.
26137 * cilkplus.def: New file.
26139 2013-05-28 Joern Rennecke <joern.rennecke@embecosm.com>
26141 PR rtl-optimization/57439
26142 * postreload.c (move2add_use_add2_insn): Use gen_lowpart_common.
26144 2013-05-28 Easwaran Raman <eraman@google.com>
26146 PR tree-optimization/57337
26147 * tree-ssa-reassoc.c (appears_later_in_bb): New function.
26148 (find_insert_point): Correctly identify the insertion point
26149 when two statements with the same UID is compared.
26151 2013-05-28 Richard Biener <rguenther@suse.de>
26153 PR tree-optimization/56787
26154 * tree-vect-data-refs.c (vect_analyze_data_refs): Drop clobbers
26155 from the list of data references.
26156 * tree-vect-loop.c (vect_determine_vectorization_factor): Skip
26158 (vect_analyze_loop_operations): Likewise.
26159 (vect_transform_loop): Remove clobbers.
26161 2013-05-28 Martin Jambor <mjambor@suse.cz>
26163 * tree-cfg.c (verify_expr): Verify that BIT_FIELD_REFs, IMAGPART_EXPRs
26164 and REALPART_EXPRs have scalar type.
26166 2013-05-28 Richard Biener <rguenther@suse.de>
26168 PR tree-optimization/57411
26169 * tree-ssa-copy.c (may_propagate_copy): Cannot propagate
26171 * tree-ssa-dom.c (eliminate_const_or_copy): Special-case
26172 virtual operand propagation.
26174 2013-05-28 Eric Botcazou <ebotcazou@adacore.com>
26176 * config/sparc/sparc.c (sparc_expand_vec_perm_bmask): Use %g0 as
26177 destination register for bmasksi_vis.
26178 (vector_init_bshuffle): Likewise.
26179 * config/sparc/sparc.md (vec_perm_constv8qi): Likewise.
26181 2013-05-28 Eric Botcazou <ebotcazou@adacore.com>
26183 * doc/invoke.texi (SPARC Options): Document -mfix-ut699.
26184 * builtins.c (expand_builtin_mathfn) <BUILT_IN_SQRT>: Try to widen the
26185 mode if the instruction isn't available in the original mode.
26186 * config/sparc/sparc.opt (mfix-ut699): New option.
26187 * config/sparc/sparc.md (muldf3_extend): Disable if -mfix-ut699.
26188 (divdf3): Turn into expander.
26189 (divdf3_nofix): New insn.
26190 (divdf3_fix): Likewise.
26191 (divsf3): Disable if -mfix-ut699.
26192 (sqrtdf2): Turn into expander.
26193 (sqrtdf2_nofix): New insn.
26194 (sqrtdf2_fix): Likewise.
26195 (sqrtsf2): Disable if -mfix-ut699.
26197 2013-05-27 Richard Biener <rguenther@suse.de>
26199 PR middle-end/57412
26200 * omp-low.c (expand_omp_atomic_pipeline): Use the correct latch
26201 block for the new loop.
26203 2013-05-27 Richard Biener <rguenther@suse.de>
26205 PR tree-optimization/57343
26206 * tree-ssa-loop-niter.c (number_of_iterations_ne_max): Do not
26207 use multiple_of_p if not TYPE_OVERFLOW_UNDEFINED.
26208 (number_of_iterations_cond): Do not build the folded tree.
26210 2013-05-27 Richard Biener <rguenther@suse.de>
26213 PR middle-end/57381
26214 * fold-const.c (operand_equal_p): Compare FIELD_DECLs with
26215 OEP_CONSTANT_ADDRESS_OF retained.
26217 PR tree-optimization/57417
26218 * tree-ssa-sccvn.c (vn_reference_fold_indirect): Fix test
26219 for unchanged base.
26220 (set_ssa_val_to): Compare addresses using
26221 get_addr_base_and_unit_offset.
26223 2013-05-27 Joern Rennecke <joern.rennecke@embecosm.com>
26225 PR rtl-optimization/56833
26226 * postreload.c (move2add_record_mode): New function.
26227 (move2add_record_sym_value, move2add_valid_value_p): Likewise.
26228 (move2add_use_add2_insn): Use move2add_record_sym_value.
26229 (move2add_use_add3_insn): Likewise.
26230 (reload_cse_move2add): Use move2add_valid_value_p and
26231 move2add_record_mode. Invalidate call-clobbered and REG_INC
26232 affected regs by setting reg_mode to VOIDmode.
26233 (move2add_note_store): Don't pretend the inside of a SUBREG is
26234 the actual destination. Invalidate single/leading registers by
26235 setting reg_mode to VOIDmode.
26236 Use move2add_record_sym_value, move2add_valid_value_p and
26237 move2add_record_mode.
26239 2013-05-27 Richard Biener <rguenther@suse.de>
26241 PR tree-optimization/57396
26242 * tree-affine.c (double_int_constant_multiple_p): Properly
26243 return false for val == 0 and div != 0.
26245 2013-05-25 Richard Sandiford <rdsandiford@googlemail.com>
26247 * config/mips/mips.h: Use #elif in preprocessor conditions.
26249 2013-05-25 Richard Sandiford <rdsandiford@googlemail.com>
26252 * config/mips/constraints.md (kl): New constraint.
26253 * config/mips/mips.md (divmod<mode>4, udivmod<mode>4): Delete.
26254 (divmod<mode>4_internal): Rename to divmod<mode>4. Use "kl" as the
26255 constraint for operand 0. Split after CSE for MIPS16. Emit a move
26256 from LO for MIPS16.
26257 (udivmod<mode>4_internal): Likewise udivmod<mode>4.
26259 2013-05-25 Richard Sandiford <rdsandiford@googlemail.com>
26262 * config/mips/mips.c (mips_can_inline_p): New function.
26263 (TARGET_CAN_INLINE_P): Define.
26265 2013-05-25 Steven Bosscher <steven@gcc.gnu.org>
26267 * sched-int.h (ds_t, dw_t): Make unsigned int.
26268 Fix documentation that describes how all the ds_t bits are used.
26269 Reserve the last bit for delayed-branch scheduling.
26270 (BITS_PER_DEP_STATUS): Move to ds_t typedef.
26271 (BITS_PER_DEP_WEAK): Fix definition and documentation.
26272 (gen_dep_weak_1): Remove prototype.
26273 * sched-deps.c (get_dep_weak_1): Make static.
26274 * target.def (speculate_insn, needs_block_p, gen_spec_check,
26275 get_insn_spec_ds, get_insn_checked_ds): Adjust hook prototypes.
26276 * doc/tm.texi: Regenerate.
26277 * config/ia64/ia64.c (ia64_needs_block_p): Update prototype.
26279 2013-05-24 Steven Bosscher <steven@gcc.gnu.org>
26282 * haifa-sched.c (sched_extend_bb): Ignore DEBUG_INSNs.
26284 2013-05-24 Nathan Sidwell <nathan@codesourcery.com>
26285 Sandra Loosemore <sandra@codesourcery.com>
26287 * config.gcc (powerpc-*): Allow native for with-cpu.
26289 2013-05-24 Jeff Law <law@redhat.com>
26291 PR tree-optimization/57124
26292 * tree-vrp.c (simplify_cond_using_ranges): Only simplify a
26293 conversion feeding a condition if the range has an overflow
26294 if -fstrict-overflow. Add warnings for when we do make the
26297 2013-05-24 Dehao Chen <dehao@google.com>
26299 * tree-cfg.c (locus_discrim_map): Fix the typo.
26300 (locus_discrim_hasher): Likewise.
26301 (locus_discrim_hasher::hash): Likewise.
26302 (locus_discrim_hasher::equal): Likewise.
26304 2013-05-24 Martin Jambor <mjambor@suse.cz>
26306 PR tree-optimization/57294
26307 * cgraph.h (ipa_record_stmt_references): Declare.
26308 * cgraphbuild.c (ipa_record_stmt_references): New function.
26309 (build_cgraph_edges): Use ipa_record_stmt_references.
26310 (rebuild_cgraph_edges): Likewise.
26311 (cgraph_rebuild_references): Likewise.
26312 * ipa-prop.c (ipa_modify_call_arguments): Discard references
26313 associated with the old statement and build references from the
26314 newly built statements.
26315 * ipa-ref.c (ipa_remove_stmt_references): New function.
26316 * ipa-ref.h (ipa_remove_stmt_references): Declare.
26318 2013-05-24 Vladimir Makarov <vmakarov@redhat.com>
26320 * lra-constraints.c (emit_spill_move): Use smaller mode for
26322 (check_and_process_move): Consider mem-reg moves for secondary
26324 (curr_insn_transform): Don't lose insns emitted before for
26325 secondary memory moves.
26326 (inherit_in_ebb): Mark defined reg. Add usage only if it is not a
26327 reg set up in the current insn.
26329 2013-05-24 Dehao Chen <dehao@google.com>
26331 * tree-cfg.c (locus_descrim_hasher::hash): Change discriminator
26333 (locus_descrim_hasher::equal): Likewise.
26334 (build_gimple_cfg): New discriminator assignment algorithm.
26335 (make_edges): Likewise.
26336 (next_discriminator_for_locus): Likewise.
26337 (same_line_p): Likewise.
26338 (assign_discriminators): Likewise.
26339 (make_cond_expr_edges): Likewise.
26340 (make_gimple_switch_edges): Likewise.
26341 (make_goto_expr_edges): Likewise.
26342 (make_gimple_asm_edges): Likewise.
26344 2013-05-24 Ian Bolton <ian.bolton@arm.com>
26346 * config/aarch64/aarch64.c (aarch64_print_operand): Change the
26347 X format specifier to only display bottom 16 bits.
26348 * config/aarch64/aarch64.md (insv_imm<mode>): Allow any size of
26349 immediate to match for operand 2, since it will be masked.
26351 2013-05-24 Richard Biener <rguenther@suse.de>
26353 PR tree-optimization/57287
26354 * tree-ssa-uninit.c (compute_uninit_opnds_pos): Disregard
26355 all SSA names that occur in abnormal PHIs.
26357 2013-05-24 Alexander Ivchenko <alexander.ivchenko@intel.com>
26360 * tree-ssa-sccvn.c (fully_constant_vn_reference_p): Check
26361 that index is not negative.
26363 2013-05-24 Eric Botcazou <ebotcazou@adacore.com>
26365 PR rtl-optimization/55177
26366 * simplify-rtx.c (simplify_unary_operation_1) <NOT>: Deal with BSWAP.
26367 (simplify_byte_swapping_operation): New.
26368 (simplify_binary_operation_1): Call it for AND, IOR and XOR.
26369 (simplify_relational_operation_1): Deal with BSWAP.
26371 2013-05-23 Richard Henderson <rth@redhat.com>
26374 * config/i386/i386.c (ix86_seh_fixup_eh_fallthru): New.
26375 (ix86_reorg): Call it.
26377 2013-05-23 Uros Bizjak <ubizjak@gmail.com>
26380 * config/alpha/alpha.md (unspec): Add UNSPEC_XFLT_COMPARE.
26381 * config/alpha/alpha.c (alpha_emit_xfloating_compare): Construct
26382 REG_EQUAL note as UNSPEC_XFLT_COMPARE unspec.
26384 2013-05-23 Christian Bruel <christian.bruel@st.com>
26387 * config/arm/arm.c (arm_dwarf_register_span): Do not use dbx number.
26389 2013-05-23 Chris Schlumberger-Socha <chris.schlumberger-socha@arm.com>
26390 Marcus Shawcroft <marcus.shawcroft@arm.com>
26392 * config/aarch64/aarch64.md (*movdi_aarch64): Replace Usa with S.
26393 * config/aarch64/constraints.md (Usa): Remove.
26394 * doc/md.texi (AArch64 Usa): Remove.
26396 2013-05-23 Chris Schlumberger-Socha <chris.schlumberger-socha@arm.com>
26397 Marcus Shawcroft <marcus.shawcroft@arm.com>
26399 * config/aarch64/aarch64-protos.h (aarch64_mov_operand_p): Define.
26400 * config/aarch64/aarch64.c (aarch64_mov_operand_p): Define.
26401 * config/aarch64/predicates.md (aarch64_const_address): Remove.
26402 (aarch64_mov_operand): Use aarch64_mov_operand_p.
26404 2013-05-23 Vidya Praveen <vidyapraveen@arm.com>
26406 * config/aarch64/aarch64-simd.md (clzv4si2): Support for CLZ
26407 instruction (AdvSIMD).
26408 * config/aarch64/aarch64-builtins.c
26409 (aarch64_builtin_vectorized_function): Handler for BUILT_IN_CLZ.
26410 * config/aarch64/aarch-simd-builtins.def: Entry for CLZ.
26412 2013-05-23 Martin Jambor <mjambor@suse.cz>
26414 PR middle-end/57347
26415 * tree.h (contains_bitfld_component_ref_p): Declare.
26416 * tree-sra.c (contains_bitfld_comp_ref_p): Move...
26417 * tree.c (contains_bitfld_component_ref_p): ...here. Adjust its
26419 * ipa-prop.c (determine_known_aggregate_parts): Check that LHS does
26420 not access a bit-field. Assert all final offsets are byte-aligned.
26422 2013-05-23 Richard Biener <rguenther@suse.de>
26424 PR tree-optimization/57380
26425 * tree-ssa-phiprop.c (propagate_with_phi): Do not require at
26426 least one invariant or re-used load.
26427 * passes.c (init_optimization_passes): Move pass_phiprop before
26430 2013-05-23 James Greenhalgh <james.greenhalgh@arm.com>
26432 * config/aarch64/aarch64-simd.md
26433 (aarch64_cm<optab>di): Add clobber of CC_REGNUM to unsplit pattern.
26435 2013-05-23 Richard Biener <rguenther@suse.de>
26437 PR middle-end/57381
26438 * fold-const.c (operand_equal_p): Compare FIELD_DECLs with
26439 OEP_CONSTANT_ADDRESS_OF retained.
26441 2013-05-23 Jakub Jelinek <jakub@redhat.com>
26443 PR middle-end/57344
26444 * expmed.c (store_split_bit_field): If op0 is a REG or SUBREG of a REG,
26445 don't lower unit. Handle unit not being always BITS_PER_WORD.
26447 2013-05-23 Richard Biener <rguenther@suse.de>
26449 PR rtl-optimization/57341
26450 * ira.c (validate_equiv_mem_from_store): Use anti_dependence
26451 instead of true_dependence.
26453 2013-05-22 David Malcolm <dmalcolm@redhat.com>
26455 * bb-reorder.c (branch_threshold): Make const.
26456 (exec_threshold): Ditto.
26458 2013-05-22 Michael Meissner <meissner@linux.vnet.ibm.com>
26459 Pat Haugen <pthaugen@us.ibm.com>
26460 Peter Bergner <bergner@vnet.ibm.com>
26462 * doc/extend.texi (PowerPC AltiVec/VSX Built-in Functions): Add
26463 documentation for the power8 crypto builtins.
26465 * config/rs6000/t-rs6000 (MD_INCLUDES): Add crypto.md.
26467 * config/rs6000/rs6000-builtin.def (BU_P8V_AV_1): Add support
26468 macros for defining power8 builtin functions.
26469 (BU_P8V_AV_2): Likewise.
26470 (BU_P8V_AV_P): Likewise.
26471 (BU_P8V_VSX_1): Likewise.
26472 (BU_P8V_OVERLOAD_1): Likewise.
26473 (BU_P8V_OVERLOAD_2): Likewise.
26474 (BU_CRYPTO_1): Likewise.
26475 (BU_CRYPTO_2): Likewise.
26476 (BU_CRYPTO_3): Likewise.
26477 (BU_CRYPTO_OVERLOAD_1): Likewise.
26478 (BU_CRYPTO_OVERLOAD_2): Likewise.
26479 (XSCVSPDP): Fix typo, point to the correct instruction.
26480 (VCIPHER): Add power8 crypto builtins.
26481 (VCIPHERLAST): Likewise.
26482 (VNCIPHER): Likewise.
26483 (VNCIPHERLAST): Likewise.
26484 (VPMSUMB): Likewise.
26485 (VPMSUMH): Likewise.
26486 (VPMSUMW): Likewise.
26487 (VPERMXOR_V2DI): Likewise.
26488 (VPERMXOR_V4SI: Likewise.
26489 (VPERMXOR_V8HI: Likewise.
26490 (VPERMXOR_V16QI: Likewise.
26491 (VSHASIGMAW): Likewise.
26492 (VSHASIGMAD): Likewise.
26493 (VPMSUM): Likewise.
26494 (VPERMXOR): Likewise.
26495 (VSHASIGMA): Likewise.
26497 * config/rs6000/rs6000-c.c (rs6000_target_modify_macros): Define
26498 __CRYPTO__ if the crypto instructions are available.
26499 (altivec_overloaded_builtins): Add support for overloaded power8
26502 * config/rs6000/rs6000.c (rs6000_expand_ternop_builtin): Add
26503 support for power8 crypto builtins.
26504 (builtin_function_type): Likewise.
26505 (altivec_init_builtins): Add support for builtins that take vector
26506 long long (V2DI) arguments.
26508 * config/rs6000/crypto.md: New file, define power8 crypto
26511 2013-05-22 Michael Meissner <meissner@linux.vnet.ibm.com>
26512 Pat Haugen <pthaugen@us.ibm.com>
26513 Peter Bergner <bergner@vnet.ibm.com>
26515 * doc/invoke.texi (Option Summary): Add power8 options.
26516 (RS/6000 and PowerPC Options): Likewise.
26518 * doc/md.texi (PowerPC and IBM RS6000 constraints): Update to use
26519 constraints.md instead of rs6000.h. Reorder w* constraints. Add
26520 wm, wn, wr documentation.
26522 * config/rs6000/constraints.md (wm): New constraint for VSX
26523 registers if direct move instructions are enabled.
26524 (wn): New constraint for no registers.
26525 (wq): New constraint for quad word even GPR registers.
26526 (wr): New constraint if 64-bit instructions are enabled.
26527 (wv): New constraint if power8 vector instructions are enabled.
26528 (wQ): New constraint for quad word memory locations.
26530 * config/rs6000/predicates.md (const_0_to_15_operand): New
26531 constraint for 0..15 for crypto instructions.
26532 (gpc_reg_operand): If VSX allow registers in VSX registers as well
26533 as GPR and floating point registers.
26534 (int_reg_operand): New predicate to match only GPR registers.
26535 (base_reg_operand): New predicate to match base registers.
26536 (quad_int_reg_operand): New predicate to match even GPR registers
26537 for quad memory operations.
26538 (vsx_reg_or_cint_operand): New predicate to allow vector logical
26539 operations in both GPR and VSX registers.
26540 (quad_memory_operand): New predicate for quad memory operations.
26541 (reg_or_indexed_operand): New predicate for direct move support.
26543 * config/rs6000/rs6000-cpus.def (ISA_2_5_MASKS_EMBEDDED):
26544 Inherit from ISA_2_4_MASKS, not ISA_2_2_MASKS.
26545 (ISA_2_7_MASKS_SERVER): New mask for ISA 2.07 (i.e. power8).
26546 (POWERPC_MASKS): Add power8 options.
26547 (power8 cpu): Use ISA_2_7_MASKS_SERVER instead of specifying the
26550 * config/rs6000/rs6000-c.c (rs6000_target_modify_macros):
26551 Define _ARCH_PWR8 and __POWER8_VECTOR__ for power8.
26553 * config/rs6000/rs6000.opt (-mvsx-timode): Add documentation.
26554 (-mpower8-fusion): New power8 options.
26555 (-mpower8-fusion-sign): Likewise.
26556 (-mpower8-vector): Likewise.
26557 (-mcrypto): Likewise.
26558 (-mdirect-move): Likewise.
26559 (-mquad-memory): Likewise.
26561 * config/rs6000/rs6000.c (power8_cost): Initial definition for power8.
26562 (rs6000_hard_regno_mode_ok): Make PTImode only match even GPR
26564 (rs6000_debug_reg_print): Print the base register class if -mdebug=reg.
26565 (rs6000_debug_vector_unit): Add p8_vector.
26566 (rs6000_debug_reg_global): If -mdebug=reg, print power8 constraint
26567 definitions. Also print fusion state.
26568 (rs6000_init_hard_regno_mode_ok): Set up power8 constraints.
26569 (rs6000_builtin_mask_calculate): Add power8 builtin support.
26570 (rs6000_option_override_internal): Add support for power8.
26571 (rs6000_common_init_builtins): Add debugging for skipped builtins
26572 if -mdebug=builtin.
26573 (rs6000_adjust_cost): Add power8 support.
26574 (rs6000_issue_rate): Likewise.
26575 (insn_must_be_first_in_group): Likewise.
26576 (insn_must_be_last_in_group): Likewise.
26577 (force_new_group): Likewise.
26578 (rs6000_register_move_cost): Likewise.
26579 (rs6000_opt_masks): Likewise.
26581 * config/rs6000/rs6000.h (ASM_CPU_POWER8_SPEC): If we don't have a
26582 power8 capable assembler, default to power7 options.
26583 (TARGET_DIRECT_MOVE): Likewise.
26584 (TARGET_CRYPTO): Likewise.
26585 (TARGET_P8_VECTOR): Likewise.
26586 (VECTOR_UNIT_P8_VECTOR_P): Define power8 vector support.
26587 (VECTOR_UNIT_VSX_OR_P8_VECTOR_P): Likewise.
26588 (VECTOR_MEM_P8_VECTOR_P): Likewise.
26589 (VECTOR_MEM_VSX_OR_P8_VECTOR_P): Likewise.
26590 (VECTOR_MEM_ALTIVEC_OR_VSX_P): Likewise.
26591 (TARGET_XSCVDPSPN): Likewise.
26592 (TARGET_XSCVSPDPN): Likewsie.
26593 (TARGET_SYNC_HI_QI): Likewise.
26594 (TARGET_SYNC_TI): Likewise.
26595 (MASK_CRYPTO): Likewise.
26596 (MASK_DIRECT_MOVE): Likewise.
26597 (MASK_P8_FUSION): Likewise.
26598 (MASK_P8_VECTOR): Likewise.
26599 (REG_ALLOC_ORDER): Move fr13 to be lower in priority so that the TFmode
26600 temporary used by some of the direct move instructions to get two FP
26601 temporary registers does not force creation of a stack frame.
26602 (VLOGICAL_REGNO_P): Allow vector logical operations in GPRs.
26603 (MODES_TIEABLE_P): Move the VSX tests above the Altivec tests so
26604 that any VSX registers are tieable, even if they are also an
26605 Altivec vector mode.
26606 (r6000_reg_class_enum): Add wm, wr, wv constraints.
26607 (RS6000_BTM_P8_VECTOR): Power8 builtin support.
26608 (RS6000_BTM_CRYPTO): Likewise.
26609 (RS6000_BTM_COMMON): Likewise.
26611 * config/rs6000/rs6000.md (cpu attribute): Add power8.
26612 * config/rs6000/rs6000-opts.h (PROCESSOR_POWER8): Likewise.
26613 (enum rs6000_vector): Add power8 vector support.
26615 2013-05-22 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
26619 * config/arm/arm.c (any_sibcall_uses_r3): Rename to ..
26620 (any_sibcall_could_use_r3): this and handle indirect calls.
26621 (arm_get_frame_offsets): Rename use of any_sibcall_uses_r3.
26623 2013-05-22 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
26625 * config/rs6000/rs6000.h (MALLOC_ABI_ALIGNMENT): New #define.
26627 2013-05-22 Richard Biener <rguenther@suse.de>
26629 PR middle-end/57349
26630 * profile.c (branch_prob): Do not split blocks that are
26631 abnormally receiving from ECF_RETURNS_TWICE functions.
26633 2013-05-22 Richard Sandiford <rsandifo@linux.vnet.ibm.com>
26635 * recog.c (offsettable_address_addr_space_p): Fix calculation of
26636 address mode. Move pointer mode initialization to the same place.
26638 2013-05-22 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
26640 * read-rtl.c (copy_rtx_for_iterators): Continue applying iterators
26641 while it has any effect.
26643 2013-05-21 Easwaran Raman <eraman@google.com>
26645 PR tree-optimization/57322
26646 * tree-ssa-reassoc.c (build_and_add_sum): If a BB is empty, set the
26647 UID of the statement added to the BB to be 1.
26649 2013-05-21 Jakub Jelinek <jakub@redhat.com>
26651 PR tree-optimization/57331
26652 * tree-vrp.c (simplify_cond_using_ranges): Don't optimize comparison
26653 of conversion from pointer type to integral type with integer.
26655 2013-05-21 Martin Jambor <mjambor@suse.cz>
26658 * ipa-prop.c (ipa_read_node_info): Process param_used and
26659 controlled_uses in the same order as when writing.
26661 2013-05-21 Magnus Granberg <baldrick@free.fr>
26664 * Makefile.in (PLUGIN_HEADERS): Add $(TARGET_H).
26666 2013-05-21 Richard Biener <rguenther@suse.de>
26668 PR tree-optimization/57318
26669 * tree-ssa-loop-ivcanon.c (tree_estimate_loop_size): Do not
26670 estimate stmts with side-effects as likely eliminated.
26672 2013-05-21 Richard Biener <rguenther@suse.de>
26674 PR tree-optimization/57330
26675 * cgraph.c (cgraph_redirect_edge_call_stmt_to_callee): Properly
26676 preserve the call stmts fntype.
26678 2013-05-21 Richard Biener <rguenther@suse.de>
26680 PR tree-optimization/57303
26681 * tree-ssa-sink.c (statement_sink_location): Improve killing
26682 stmt detection and properly handle self-assignments.
26684 2013-05-21 Christian Bruel <christian.bruel@st.com>
26686 * dwarf2out.c (multiple_reg_loc_descriptor): Use dbx_reg_number for
26687 spanning registers. LEAF_REG_REMAP is supported only for contiguous
26688 registers. Set register size out of the PARALLEL loop.
26690 2013-05-20 Oleg Endo <olegendo@gcc.gnu.org>
26693 * config/sh/sh.md (fmasf4): Remove empty constraints strings.
26694 (*fmasf4, *fmasf4_media): New insns.
26696 2013-05-19 Richard Sandiford <rdsandiford@googlemail.com>
26698 * config/mips/mips.h (BASE_INSN_LENGTH, NOP_INSN_LENGTH): New macros.
26699 * config/mips/mips.c (mips_symbol_insns, mips_address_insns)
26700 (mips_const_insns, mips_split_const_insns, mips_load_store_insns)
26701 (mips_idiv_insns): Update the comments to say that the returned
26702 instruction counts are in units of BASE_INSN_LENGTH.
26703 (mips_adjust_insn_length): Multiply the mips_load_label_num_insns
26704 by BASE_INSN_LENGTH rather than 4. Add the jump separately,
26705 using 2 rather than 4 as the length of indirect MIPS16 and
26706 microMIPS jumps. Use NOP_INSN_LENGTH rather than 4 as the
26707 length of a NOP. Don't divide MIPS16 lengths by 2.
26708 (mips16_split_long_branches): Assume a branch is long if the
26709 length is greater than 4 rather than 8.
26710 * config/mips/mips.md (length): Give MIPS16 lengths directly,
26711 rather than multiplying them by 2. Multiply instruction counts
26712 by BASE_INSN_LENGTH rather than 4.
26713 (*jump_mips16, tls_get_tp_mips16_<mode>)
26714 (*tls_get_tp_mips16_call_<mode>): Divide lengths by 2.
26716 2013-05-19 Richard Sandiford <rdsandiford@googlemail.com>
26718 * config/mips/mips.md (extended_mips16): Remove branch case.
26719 (length): Remove duplicated extended_mips16 test.
26721 2013-05-19 Richard Sandiford <rdsandiford@googlemail.com>
26723 * config/mips/t-sde: Don't build 64-bit microMIPS multilibs.
26725 2013-05-18 Richard Sandiford <rdsandiford@googlemail.com>
26727 * recog.h (Recog_data): Rename to...
26728 (recog_data_d): ...this.
26729 (recog_data): Update accordingly.
26730 * recog.c (recog_data): Likewise.
26731 * reload.c (save_recog_data): Likewise.
26732 * config/picochip/picochip.c (picochip_saved_recog_data): Likewise.
26733 (picochip_save_recog_data, picochip_restore_recog_data): Likewise.
26735 2013-05-17 Julian Brown <julian@codesourcery.com>
26737 * gcse.c (compute_ld_motion_mems): If a non-simple MEM is
26738 found in a REG_EQUAL note, invalidate it.
26740 2013-05-17 Easwaran Raman <eraman@google.com>
26742 * tree-ssa-reassoc.c (find_insert_point): New function.
26743 (insert_stmt_after): Likewise.
26744 (get_def_stmt): Likewise.
26745 (ensure_ops_are_available): Likewise.
26746 (not_dominated_by): Likewise.
26747 (rewrite_expr_tree): Do not move statements beyond what is
26748 necessary. Remove call to swap_ops_for_binary_stmt...
26749 (reassociate_bb): ... and move it here.
26750 (build_and_add_sum): Assign UIDs for new statements.
26751 (linearize_expr): Likewise.
26752 (do_reassoc): Renumber gimple statement UIDs.
26754 2013-05-17 Jan Hubicka <jh@suse.cz>
26756 * lto-symtab.c (lto_symtab_merge_cgraph_nodes): Resolve cross module
26758 * cgraph.c (dump_cgraph_node): Do not ice on unresolved alias.
26759 * cgraphunit.c (handle_alias_pairs): Store target of unresolved
26761 (output_weakrefs): Update.
26763 2013-05-17 Po-Chun Chang <pchang9@cs.wisc.edu>
26764 Martin Jambor <mjambor@suse.cz>
26766 PR middle-end/57276
26767 * ipa-cp.c (cgraph_edge_brings_all_agg_vals_for_node): Break when a
26768 value that corresponds to the given aggval is found in values vector.
26770 2013-05-17 Uros Bizjak <ubizjak@gmail.com>
26772 * config/i386/driver-i386.c (host_detect_local_cpu): Pass mmx, 3dnow,
26773 sse, sse2, sse3, ssse3 and sse4a flags to options.
26775 2013-05-17 David Malcolm <dmalcolm@redhat.com>
26777 * gengtype-state.c: (s_expr_writer): New class, to handle
26778 prettifying of output layout of s-expressions.
26779 (state_writer): New class, to write out gtype.state.
26780 (state_written_type_count): Move this variable into member data of
26782 (s_expr_writer::s_expr_writer): New code: constructor for new class
26783 (state_writer::state_writer(): ditto
26784 (s_expr_writer::write_new_line): New function
26785 (s_expr_writer::write_any_indent): ditto
26786 (s_expr_writer::begin_s_expr): ditto
26787 (s_expr_writer::end_s_expr): ditto
26788 (write_state_fileloc): convert to method of state_writer...
26789 (state_writer:: write_state_fileloc): ...and use methods of
26790 s_expr_writer to write indentation into the gtype.state output file
26791 to visually represent the hierarchical structure of the list
26793 (write_state_fields): ditto, renaming to...
26794 (state_writer::write_state_fields)
26795 (write_state_a_string): ditto, renaming to...
26796 (state_writer::write_state_a_string)
26797 (write_state_string_option): ditto, renaming to...
26798 (state_writer::write_state_string_option)
26799 (write_state_type_option): ditto, renaming to...
26800 (state_writer::write_state_type_option)
26801 (write_state_nested_option): ditto, renaming to...
26802 (state_writer::write_state_nested_option)
26803 (write_state_option): ditto, renaming to...
26804 (state_writer::write_state_option)
26805 (write_state_options): ditto, renaming to...
26806 (state_writer::write_state_options)
26807 (write_state_lang_bitmap): ditto, renaming to...
26808 (state_writer::write_state_lang_bitmap)
26809 (write_state_version): ditto, renaming to...
26810 (state_writer::write_state_version)
26811 (write_state_scalar_type): ditto, renaming to...
26812 (state_writer::write_state_scalar_type)
26813 (write_state_string_type): ditto, renaming to...
26814 (state_writer::write_state_string_type)
26815 (write_state_undefined_type): ditto, renaming to...
26816 (state_writer::write_state_undefined_type)
26817 (write_state_struct_union_type): ditto, renaming to...
26818 (state_writer::write_state_struct_union_type)
26819 (write_state_struct_type): ditto, renaming to...
26820 (state_writer::write_state_struct_type)
26821 (write_state_user_struct_type): ditto, renaming to...
26822 (state_writer::write_state_user_struct_type)
26823 (write_state_lang_struct_type): ditto, renaming to...
26824 (state_writer::write_state_lang_struct_type)
26825 (write_state_param_struct_type): ditto, renaming to...
26826 (state_writer::write_state_param_struct_type)
26827 (write_state_pointer_type): ditto, renaming to...
26828 (state_writer::write_state_pointer_type)
26829 (write_state_array_type): ditto, renaming to...
26830 (state_writer::write_state_array_type)
26831 (write_state_gc_used): ditto, renaming to...
26832 (state_writer::write_state_gc_used)
26833 (write_state_common_type_content): ditto, renaming to...
26834 (state_writer::write_state_common_type_content)
26835 (write_state_type): ditto, renaming to...
26836 (state_writer::write_state_type)
26837 (write_state_pair_list): ditto, renaming to...
26838 (state_writer::write_state_pair_list)
26839 (write_state_pair): ditto, renaming to...
26840 (state_writer::write_state_pair)
26841 (write_state_typedefs): ditto, renaming to...
26842 (state_writer::write_state_typedefs)
26843 (write_state_structures): ditto, renaming to...
26844 (state_writer::write_state_structures)
26845 (write_state_param_structs): ditto, renaming to...
26846 (state_writer::write_state_param_structs)
26847 (write_state_variables): ditto, renaming to...
26848 (state_writer::write_state_variables)
26849 (write_state_srcdir): ditto, renaming to...
26850 (state_writer::write_state_srcdir)
26851 (write_state_files_list): ditto, renaming to...
26852 (state_writer::write_state_files_list)
26853 (write_state_languages): ditto, renaming to...
26854 (state_writer::write_state_languages)
26855 (write_state): create a state_writer instance and use it when
26856 writing out the state file
26858 2013-05-17 Mike Stump <mikestump@comcast.net>
26860 PR rtl-optimization/57304
26861 * web.c (union_match_dups): Ensure that DF_REF_LOC exists before
26862 accessing DF_REF_REAL_LOC.
26864 2013-05-17 Jakub Jelinek <jakub@redhat.com>
26866 PR rtl-optimization/57281
26867 PR rtl-optimization/57300
26868 * config/i386/i386.md (extendsidi2_1 dead reg splitter): Remove.
26869 (extendsidi2_1 peephole2s): Add instead 2 new peephole2s, that undo
26870 what the other splitter did if the registers are dead.
26872 2013-05-17 Richard Biener <rguenther@suse.de>
26874 * tree-ssa-alias.c (stmt_kills_ref_p_1): Properly compare
26877 2013-05-17 Jakub Jelinek <jakub@redhat.com>
26879 * gcc.c (SANITIZER_SPEC): Reject -fsanitize=address -fsanitize=thread
26882 2013-05-17 Marek Polacek <polacek@redhat.com>
26884 * tree-ssa-strlen.c (handle_char_store): Don't invalidate cached
26885 length when doing non-zero store of storing '\0' to '\0'.
26887 2013-05-17 Jakub Jelinek <jakub@redhat.com>
26889 * tree-vect-patterns.c (vect_recog_rotate_pattern): For
26890 vect_external_def oprnd1 with loop_vinfo, try to emit
26891 optional cast, negation and and stmts on the loop preheader
26892 edge instead of into the pattern def seq.
26894 PR tree-optimization/57051
26895 * fold-const.c (const_binop) <case VEC_LSHIFT_EXPR,
26896 case VEC_RSHIFT_EXPR>: Fix BYTES_BIG_ENDIAN handling.
26898 2013-05-16 Nick Clifton <nickc@redhat.com>
26900 * config/rl78/rl78.c (rl78_attribute_table): Add naked.
26901 (rl78_is_naked_func): New function.
26902 (rl78_expand_prologue): Skip prologue generation for naked functions.
26903 (rl78_expand_epilogue): Skip epilogue generation for naked functions.
26904 * doc/extend.texi (naked): Add RL78 to the list of processors
26905 that supports this attribute.
26907 2013-05-16 Jeff Law <law@redhat.com>
26909 * Makefile.in (tree-switch-conversion.o): Depend on $(OPTABS_H).
26911 2013-05-16 Uros Bizjak <ubizjak@gmail.com>
26913 * config/i386/driver-i386.c (host_detect_local_cpu): Determine
26914 cache parameters using detect_caches_amd also for CYRIX,
26915 NSC and TM2 signatures.
26917 2013-05-16 Uros Bizjak <ubizjak@gmail.com>
26918 Dzianis Kahanovich <mahatma@eu.by>
26922 * config/i386/driver-i386.c (host_detect_local_cpu): Detect
26923 VIA/Centaur processors and determine their cache parameters
26924 using detect_caches_amd.
26926 2013-05-16 Teresa Johnson <tejohnson@google.com>
26928 * cfgrtl.c (verify_hot_cold_block_grouping): Return err.
26929 (rtl_verify_edges): New function.
26930 (rtl_verify_bb_insns): Ditto.
26931 (rtl_verify_bb_pointers): Ditto.
26932 (rtl_verify_bb_insn_chain): Ditto.
26933 (rtl_verify_fallthru): Ditto.
26934 (rtl_verify_bb_layout): Ditto.
26935 (rtl_verify_flow_info_1): Outline checks into new functions.
26936 (rtl_verify_flow_info): Ditto.
26938 2013-05-16 Steve Ellcey <sellcey@imgtec.com>
26940 * cfghooks.c (copy_bbs): Add update_dominance argument.
26941 * cfghooks.h (copy_bbs): Update prototype.
26942 * tree-cfg.c (gimple_duplicate_sese_region):
26943 Add update_dominance argument.
26944 * tree-flow.h (gimple_duplicate_sese_region): Update prototype.
26945 * tree-ssa-loop-ch.c (copy_loop_headers): Update
26946 gimple_duplicate_sese_region call.
26947 * tree-vect-loop-manip.c (slpeel_tree_duplicate_loop_to_edge_cfg):
26948 Update copy_bbs call.
26949 * cfgloopmanip.c (duplicate_loop_to_header_edge): Ditto.
26950 * trans-mem.c (ipa_uninstrument_transaction): Ditto.
26952 2013-05-16 Jakub Jelinek <jakub@redhat.com>
26954 * tree-vectorizer.h (NUM_PATTERNS): Increment.
26955 * tree-vect-patterns.c (vect_vect_recog_func_ptrs): Add
26956 vect_recog_rotate_pattern.
26957 (vect_recog_rotate_pattern): New function.
26959 2013-05-16 Jason Merrill <jason@redhat.com>
26961 * Makefile.in (LLINKER): New variable.
26962 (mostlyclean): Remove link mutex.
26963 * configure.ac: Handle --enable-link-mutex.
26964 * lock-and-run.sh: New script.
26966 2013-05-16 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
26969 * config/arm/arm.c (arm_function_ok_for_sibcall): Add check
26972 2013-05-16 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
26974 * reorg.c (link_cc0_insns): Wrap in #ifdef HAVE_cc0.
26976 2013-05-16 Greta Yorsh <Greta.Yorsh@arm.com>
26978 * config/arm/arm-protos.h (gen_movmem_ldrd_strd): New declaration.
26979 * config/arm/arm.c (next_consecutive_mem): New function.
26980 (gen_movmem_ldrd_strd): Likewise.
26981 * config/arm/arm.md (movmemqi): Update condition and code.
26982 (unaligned_loaddi, unaligned_storedi): New patterns.
26984 2013-05-16 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
26986 * config.gcc: Obsolete *-*-solaris2.9*.
26987 * doc/install.texi (Specific, *-*-solaris2*): Document it.
26989 2013-05-16 Richard Biener <rguenther@suse.de>
26991 * passes.c (init_optimization_passes): Move pass_parallelize_loops
26992 earlier, after GRAPHITE transforms and IV canonicalization.
26994 2013-05-16 Jakub Jelinek <jakub@redhat.com>
26996 * omp-low.c (extract_omp_for_data): For collapsed loops,
26997 if at least one of the loops is known at compile time to
26998 iterate zero times, set count to 0.
26999 (expand_omp_regimplify_p): New function.
27000 (expand_omp_for_generic): For collapsed loops, if at least
27001 one of the loops isn't known to iterate at least once,
27002 add runtime check with setting count to 0.
27003 (expand_omp_for_static_nochunk, expand_omp_for_static_chunk):
27004 For unsigned types if it isn't known at compile time that
27005 the loop will iterate at least once, add runtime check to bypass
27006 the whole loop if initial condition isn't true.
27008 2013-05-16 Nathan Sidwell <nathan@codesourcery.com>
27010 * varasm.c (default_use_anchors_for_symbol_p): Use decl_replaceable_p.
27012 2013-05-16 Marc Glisse <marc.glisse@inria.fr>
27014 PR middle-end/57286
27015 * fold-const.c (fold_ternary_loc) <VEC_COND_EXPR>: Disable some
27016 transformations to avoid an infinite loop.
27018 2013-05-16 Marek Polacek <polacek@redhat.com>
27020 * tree-scalar-evolution.c (scev_const_prop): Add more dumps.
27022 2013-05-15 Leif Ekblad <leif@rdos.net>
27024 * config/i386/i386.c (ix86_decompose_address): Use
27025 DEFAULT_TLS_SEG_REG to access TLS segment register.
27026 * config/i386/i386.h (DEFAULT_TLS_SEG_REG): New define.
27027 * config/i386/rdos.h (DEFAULT_TLS_SEG_REG): Ditto.
27028 (TARGET_TLS_DIRECT_SEG_REFS_DEFAULT): Ditto.
27030 2013-05-15 Richard Sandiford <rdsandiford@googlemail.com>
27033 * config/mips/mips.c (mips_function_ok_for_sibcall): Don't allow
27034 sibling calls to functions that would normally be lazily bound,
27035 unless $gp is call-clobbered.
27037 2013-05-15 Uros Bizjak <ubizjak@gmail.com>
27039 * config/i386/i386.c (ix86_option_override_internal): Update
27040 processor_alias_table for missing PTA_PRFCHW and PTA_FXSR flags. Add
27041 PTA_POPCNT to corei7 entry. Do not enable SSE prefetch on
27042 non-SSE 3dNow! targets. Enable TARGET_PRFCHW for TARGET_3DNOW targets.
27043 * config/i386/i386.md (prefetch): Enable for TARGET_PRFCHW instead
27045 (*prefetch_3dnow): Enable for TARGET_PRFCHW only.
27047 2013-05-15 Andreas Schwab <schwab@suse.de>
27049 * config/m68k/m68k.md (*rotlhi3_lowpart, *rotlqi3_lowpart): Name
27050 for rotlhi3+1 and rotlqi3+1, resp. Fix reference to non-existing
27053 2013-05-15 Teresa Johnson <tejohnson@google.com>
27055 * loop-unroll.c (report_unroll_peel): Check decision before
27056 emitting unroll/peel message.
27058 2013-05-15 Teresa Johnson <tejohnson@google.com>
27060 * function.h (has_bb_partition): New rtl_data flag.
27061 (bb_reorder_complete): Ditto.
27062 * cfgcleanup.c (try_crossjump_to_edge): Check for has_bb_partition
27063 instead of flag_reorder_blocks_and_partition.
27064 * cfgrtl.c (verify_hot_cold_block_grouping): Moved from bb-reorder.c,
27065 with some enhancements.
27066 (rtl_verify_flow_info_1): Call verify_hot_cold_block_grouping.
27067 * bb-reorder.c (connect_traces): Check for has_bb_partition
27068 instead of flag_reorder_blocks_and_partition.
27069 (verify_hot_cold_block_grouping): Moved to cfgrtl.c.
27070 (reorder_basic_blocks): Set bb_reorder_complete flag, remove call to
27071 verify_hot_cold_block_grouping.
27072 (partition_hot_cold_basic_blocks): Set has_bb_partition.
27074 2013-05-15 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
27077 * config/arm/predicates.md (call_insn_operand): New predicate.
27078 * config/arm/constraints.md ("Cs", "Ss"): New constraints.
27079 * config/arm/arm.md (*call_insn, *call_value_insn): Match only
27080 if insn is not a tail call.
27081 (*sibcall_insn, *sibcall_value_insn): Adjust for tailcalling through
27083 * config/arm/arm.h (enum reg_class): New caller save register class.
27084 (REG_CLASS_NAMES): Likewise.
27085 (REG_CLASS_CONTENTS): Likewise.
27086 * config/arm/arm.c (arm_function_ok_for_sibcall): Allow tailcalling
27089 2013-05-15 Richard Biener <rguenther@suse.de>
27091 * tree-vect-loop.c (vect_transform_loop): Use MSG_NOTE instead
27092 of MSG_OPTIMIZED_LOCATIONS.
27093 * tree-vect-slp.c (vect_make_slp_decision): Likewise.
27094 (vect_slp_transform_bb): Indicate location in MSG_OPTIMIZED_LOCATIONS
27096 * tree-vectorizer.c (vectorize_loops): Use MSG_NOTE instead
27097 of MSG_OPTIMIZED_LOCATIONS.
27098 (execute_vect_slp): Likewise.
27099 * tree-vect-loop-manip.c (vect_do_peeling_for_loop_bound): Likewise.
27100 (vect_create_cond_for_alias_checks): Likewise.
27101 * tree-vect-patterns.c (vect_recog_dot_prod_pattern): Likewise.
27102 (vect_recog_widen_mult_pattern): Likewise.
27103 (vect_recog_widen_sum_pattern): Likewise.
27104 (vect_recog_over_widening_pattern): Likewise.
27105 (vect_recog_widen_shift_pattern): Likewise.
27106 (vect_recog_vector_vector_shift_pattern): Likewise.
27107 (vect_recog_divmod_pattern): Likewise.
27108 (vect_recog_mixed_size_cond_pattern): Likewise.
27109 (vect_recog_bool_pattern): Likewise.
27110 (vect_pattern_recog_1): Likewise.
27112 2013-05-15 Martin Jambor <mjambor@suse.cz>
27114 * ipa-prop.c (ipa_make_edge_direct_to_target): Redirect calls to
27115 non-functions to builtin_unreachable.
27116 * ipa-inline-transform.c (inline_call): Do not assert estimates were
27117 correct when new direct edges were discovered.
27119 2013-05-15 Martin Jambor <mjambor@suse.cz>
27121 * ipa-prop.c (ipa_print_node_jump_functions): Print symbol order in
27122 header, print symbol order instead of node uid, print more information
27123 about indirect edge targets.
27124 (ipa_make_edge_direct_to_target): Print symbol order instead of node
27126 (ipa_make_edge_direct_to_target): Likewise.
27127 (remove_described_reference): Likewise.
27128 (propagate_controlled_uses): Likewise.
27129 (ipa_print_node_params): Also print symbol order.
27130 (ipcp_transform_function): Print symbol order instead of node uids.
27131 * cgraph.c (cgraph_redirect_edge_call_stmt_to_callee): Likewise.
27132 (cgraph_get_create_real_symbol_node): Likewise.
27133 * ipa-cp.c (print_lattice): Likewise.
27134 (print_all_lattices): Likewise.
27135 (determine_versionability): Likewise.
27136 (initialize_node_lattices): Likewise.
27137 (estimate_local_effects): Likewise.
27138 (update_profiling_info): Likewise.
27139 (create_specialized_node): Likewise.
27140 (perhaps_add_new_callers): Likewise.
27141 (decide_about_value): Likewise.
27142 (decide_whether_version_node): Likewise.
27143 (identify_dead_nodes): Likewise.
27144 * ipa-inline-analysis.c (dump_inline_edge_summary): Likewise.
27145 (dump_inline_summary): Likewise.
27146 (estimate_node_size_and_time): Likewise.
27147 (inline_analyze_function): Likewise.
27148 * ipa-inline.c (report_inline_failed_reason): Likewise.
27149 (want_early_inline_function_p): Likewise.
27150 (edge_badness): Likewise.
27151 (update_edge_key): Likewise.
27152 (inline_small_functions): Likewise. Add dumping of order to two other
27154 * ipa-pure-const.c (pure_const_read_summary): Print symbol order
27155 instead of node uids.
27156 (propagate_pure_const): Likewise.
27157 (propagate_pure_const): Likewise.
27158 * ipa-utils.c (dump_cgraph_node_set): Likewise.
27159 * lto-cgraph.c (input_node): Explicitly specify we dump uid.
27160 * lto-symtab.c (lto_cgraph_replace_node): Print symbol order instead
27162 * tree-pretty-print.c (dump_function_header): Likewise.
27163 * tree-sra.c (convert_callers_for_node): Dump in traditional format.
27164 Print symbol order instead of node uids.
27166 2013-05-15 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
27168 * config/s390/s390.c (s390_register_move_cost): Don't impose the
27169 FPR<->GPR move cost penalty if ldgr/lgdr can be used.
27171 2013-05-15 Richard Biener <rguenther@suse.de>
27173 PR tree-optimization/57275
27174 * tree-vect-data-refs.c (vect_analyze_data_ref_dependence): Fix
27175 return value for fail to do runtime alias checks for gather loads.
27177 2013-05-15 Jan Hubicka <jh@suse.cz>
27181 * lto-symtab.c (lto_symtab_symbol_p): Add external symbol;
27182 weakrefs are not external.
27183 (lto_symtab_merge_decls): Fix thinko when dealing with
27184 non-lto_symtab decls.
27185 (lto_symtab_merge_cgraph_nodes): Use lto_symtab_symbol_p.
27186 (lto_symtab_prevailing_decl): Get int sync with lto_symtab_symbol_p.
27187 * varpool.c (dump_varpool_node): Dump more flags.
27189 2013-05-15 Ganesh Gopalasubramanian <Ganesh.Gopalasubramanian@amd.com>
27191 * config/i386/i386.c (processor_alias_table): Add instruction
27192 FSGSBASE for AMD bdver3 architecture.
27194 2013-05-14 Jakub Jelinek <jakub@redhat.com>
27196 * tree.c (warn_deprecated_use): Print file:line using locus color.
27197 * diagnostic.c (diagnostic_report_current_module): Print file:line
27198 and file:line:column using locus color.
27200 2013-05-14 Mike Stump <mikestump@comcast.net>
27202 * gdbinit.in: Add __null.
27204 2013-05-14 Mike Stump <mikestump@comcast.net>
27206 * recog.h: Rename struct recog_data to Recog_data.
27207 * recog.c: Likewise.
27208 * reload.c (can_reload_into): Likewise.
27209 * config/picochip/picochip.c: Likewise.
27211 2013-05-14 Mike Stump <mikestump@comcast.net>
27213 * web.c (union_match_dups): Also check DF_REF_REAL_LOC.
27215 2013-05-14 Steven Bosscher <steven@gcc.gnu.org>
27217 * resource.h (struct resources): Remove unch_memory member.
27218 (CLEAR_RESOURCE): Don't clear unch_memory.
27219 * resource.c (mark_referenced_resources): Don't set it.
27220 (mark_set_resources): Likewise.
27221 (mark_target_live_regs): Don't clear it.
27222 (init_resource_info): Likewise.
27223 * reorg.c (resource_conflicts_p): Don't compare it.
27224 (redundant_insn): Don't set it.
27226 * rtl.h (next_label, skip_consecutive_labels, link_cc0_insns):
27228 * emit-rtl.c (next_label): Remove unused function.
27229 (skip_consecutive_labels, link_cc0_insns): Move to ...
27230 * reorg.c (skip_consecutive_labels, link_cc0_insns): ... here, the
27231 only place where these functions are used, and make them static.
27233 2013-05-14 Marc Glisse <marc.glisse@inria.fr>
27235 * fold-const.c (fold_negate_expr): Handle vectors.
27236 (fold_truth_not_expr): Make it static.
27237 (fold_invert_truthvalue): New static function.
27238 (invert_truthvalue_loc): Handle vectors. Do not call
27239 fold_truth_not_expr directly.
27240 (fold_unary_loc) <BIT_NOT_EXPR>: Handle comparisons.
27241 <TRUTH_NOT_EXPR>: Do not cast to boolean.
27242 (fold_comparison): Handle vector constants.
27243 (fold_binary_loc) <TRUTH_XOR_EXPR>: Remove redundant code.
27244 (fold_ternary_loc) <VEC_COND_EXPR>: Adapt more COND_EXPR optimizations.
27245 * tree.h (fold_truth_not_expr): Remove declaration.
27247 2013-05-14 James Greenhalgh <james.greenhalgh@arm.com>
27249 * config/aarch64/aarch64-simd.md
27250 (aarch64_vcond_internal<mode>): Rename to...
27251 (aarch64_vcond_internal<mode><mode>): ...This, for integer modes.
27252 (aarch64_vcond_internal<VDQF_COND:mode><VDQF:mode>): ...This for
27253 float modes. Clarify all iterator modes.
27254 (vcond<mode><mode>): Use new name for vcond expanders.
27255 (vcond<v_cmp_result><mode>): Likewise.
27256 (vcondu<mode><mode>: Likewise.
27257 * config/aarch64/iterators.md (VDQF_COND): New.
27259 2013-05-14 Marc Glisse <marc.glisse@inria.fr>
27262 * fold-const.c (fold_binary_loc) <shift>: Use an unsigned
27263 variable for the shift amount. Check that we shift by non-negative
27266 2013-05-14 Chung-Lin Tang <cltang@codesourcery.com>
27269 * config/arm/arm.h (EPILOGUE_USES): Only return true
27270 for LR_REGNUM after epilogue_completed.
27272 2013-05-14 Joern Rennecke <joern.rennecke@embecosm.com>
27274 * config/avr/avr.c (avr_encode_section_info): Bail out if the type
27275 is error_mark_node.
27277 2013-05-14 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
27280 * configure.ac (gcc_cv_ld_as_needed): Disable before Solaris 11
27281 and Solaris 11+/x86 with gld.
27282 * configure: Regenerate.
27284 2013-05-14 Jakub Jelinek <jakub@redhat.com>
27286 * expmed.c (expand_shift_1): Canonicalize rotates by
27287 constant bitsize / 2 to bitsize - 1.
27288 * simplify-rtx.c (simplify_binary_operation_1) <case ROTATE,
27289 case ROTATERT>: Likewise.
27292 2013-05-10 Jakub Jelinek <jakub@redhat.com>
27294 * config/i386/i386.md (rotateinv): New code attr.
27295 (*<rotate_insn><mode>3_1, *<rotate_insn>si3_1_zext,
27296 *<rotate_insn>qi3_1_slp): Emit rorl %eax instead of
27297 roll $31, %eax, etc.
27299 2013-05-14 Richard Biener <rguenther@suse.de>
27301 PR middle-end/57235
27302 * tree-eh.c (sink_clobbers): Give up for successors with
27303 multiple predecessors and no virtual uses.
27305 2013-05-14 Eric Botcazou <ebotcazou@adacore.com>
27307 * config/sparc/sp64-elf.h (CPP_SUBTARGET_SPEC): Delete.
27308 * config/sparc/openbsd64.h (CPP_SUBTARGET_SPEC): Likewise.
27310 2013-05-14 Jakub Jelinek <jakub@redhat.com>
27312 PR middle-end/57251
27313 * expr.c (expand_expr_real_2) <case WIDEN_MULT_EXPR>: Handle
27314 the case when both op0 and op1 have VOIDmode.
27316 2013-05-14 Kaushik Phatak <kaushik.phatak@kpitcummins.com>
27318 * config/rl78/rl78.md(mulsi3_g13): Add additional 'nop' required
27319 in multiply-accumulate mode.
27321 2013-05-13 Guozhi Wei <carrot@google.com>
27323 * dwarf2asm.c (dw2_output_indirect_constant_1): Mark new decl STATIC.
27325 2013-05-13 Kai Tietz <ktietz@redhat.com>
27328 * config/i386/cygming.h (TARGET_PECOFF): Define as true.
27329 * config/i386/i386.h (TARGET_PECOFF): Define by default as false.
27330 (PIC_OFFSET_TABLE_REGNUM): Use TARGET_PECOFF.
27331 * config/i386/i386.c (ix86_option_override_internal): Likewise.
27332 (ix86_expand_prologue): Likewise.
27333 (ix86_expand_split_stack_prologue): Likewise.
27334 (legitimate_pic_address_disp_p): Likewise.
27335 (legitimize_pic_address): Likewise.
27336 (legitimize_tls_address): Likewise.
27337 (legitimize_pe_coff_symbol): Likewise.
27338 (output_pic_addr_const): Likewise.
27339 (construct_plt_address): Likewise.
27340 (ix86_expand_call): Likewise.
27341 (x86_output_mi_thunk): Likewise.
27342 (x86_function_profiler): Likewise.
27344 2013-05-13 Sofiane Naci <sofiane.naci@arm.com>
27346 * config/aarch64/aarch64-simd.md (aarch64_simd_mov<mode>): Group
27347 similar switch cases.
27348 (aarch64_simd_mov): Rename to aarch64_split_simd_mov. Update.
27349 (aarch64_simd_mov_to_<mode>low): Delete.
27350 (aarch64_simd_mov_to_<mode>high): Delete.
27351 (move_lo_quad_<mode>): Add w<-r alternative.
27352 (aarch64_simd_move_hi_quad_<mode>): Likewise.
27353 (aarch64_simd_mov_from_*): Update type attribute.
27354 * config/aarch64/aarch64.c (aarch64_split_simd_move): Refacror switch
27357 2013-05-13 Jan Hubicka <jh@suse.cz>
27359 * mode-switching.c (optimize_mode_switching): Set correct RTL profile.
27360 * config/i386/i386.c (ix86_compute_frame_layout,
27361 ix86_expand_epilogue, emit_i387_cw_initialization,
27362 ix86_expand_vector_move_misalign, ix86_fp_comparison_strategy,
27363 ix86_local_alignment): Fix use of size/speed predicates.
27365 2013-05-13 Jakub Jelinek <jakub@redhat.com>
27367 PR tree-optimization/45216
27368 PR tree-optimization/57157
27369 * tree-ssa-forwprop.c (simplify_rotate): Only recognize
27370 the (-Y) & (B - 1) variant if OP is |.
27371 * expmed.c (expand_shift_1): For rotations by const0_rtx just
27372 return shifted. Use (-op1) & (prec - 1) as other_amount
27373 instead of prec - op1.
27375 2013-05-13 Martin Jambor <mjambor@suse.cz>
27377 PR middle-end/42371
27378 * ipa-prop.h (IPA_UNDESCRIBED_USE): New macro.
27379 (ipa_constant_data): New type.
27380 (ipa_jump_func): Use ipa_constant_data to hold information about
27381 constant jump functions.
27382 (ipa_get_jf_constant): Adjust to jump function type changes.
27383 (ipa_get_jf_constant_rdesc): New function.
27384 (ipa_param_descriptor): New field controlled_uses.
27385 (ipa_get_controlled_uses): New function.
27386 (ipa_set_controlled_uses): Likewise.
27387 * ipa-ref.h (ipa_find_reference): Declare.
27388 * ipa-prop.c (ipa_cst_ref_desc): New type.
27389 (ipa_print_node_jump_functions_for_edge): Adjust for jump function type
27391 (ipa_set_jf_constant): Likewise. Also create reference descriptions.
27392 New parameter cs. Adjust all callers.
27393 (ipa_analyze_params_uses): Detect uncontrolled and controlled uses.
27394 (remove_described_reference): New function.
27395 (jfunc_rdesc_usable): Likewise.
27396 (try_make_edge_direct_simple_call): Decrement controlled use count,
27397 attempt to remove reference if it hits zero.
27398 (combine_controlled_uses_counters): New function.
27399 (propagate_controlled_uses): Likewise.
27400 (ipa_propagate_indirect_call_infos): Call propagate_controlled_uses.
27401 (ipa_edge_duplication_hook): Duplicate reference descriptions.
27402 (ipa_print_node_params): Print described use counter.
27403 (ipa_write_jump_function): Adjust to jump function type changes.
27404 (ipa_read_jump_function): New parameter CS, pass it to
27405 ipa_set_jf_constant. Adjust caller.
27406 (ipa_write_node_info): Stream controlled use count
27407 (ipa_read_node_info): Likewise.
27408 * cgraph.c (cgraph_mark_address_taken_node): Bail out instead of
27410 * ipa-cp.c (ipcp_discover_new_direct_edges): Decrement controlled use
27411 count. Remove cloning-added reference if it reaches zero.
27412 * ipa-ref.c (ipa_find_reference): New function.
27414 2013-05-13 Ganesh Gopalasubramanian <Ganesh.Gopalasubramanian@amd.com>
27416 * config/i386/i386.c (processor_target_table): Modified default
27417 alignment values for AMD BD and BT architectures.
27419 2013-05-13 Marc Glisse <marc.glisse@inria.fr>
27421 * tree-vect-generic.c (uniform_vector_p): Move ...
27422 * tree.c (uniform_vector_p): ... here.
27423 * tree.h (uniform_vector_p): Declare it.
27424 * fold-const.c (fold_binary_loc) <shift>: Turn the second argument
27427 2013-05-13 Jakub Jelinek <jakub@redhat.com>
27429 PR tree-optimization/57230
27430 * tree-ssa-strlen.c (handle_char_store): Record length for
27431 array store from STRING_CST.
27433 PR tree-optimization/57230
27434 * tree-ssa-strlen.c (handle_char_store): Add missing integer_zerop
27437 2013-05-12 Joern Rennecke <joern.rennecke@embecosm.com>
27439 * config/epiphany/epiphany.c (epiphany_init): Check size of
27440 NUM_MODES_FOR_MODE_SWITCHING.
27441 (epiphany_expand_prologue):
27442 Remove CONFIG_REGNUM initial value handling code.
27443 (epiphany_optimize_mode_switching): Handle EPIPHANY_MSW_ENTITY_CONFIG.
27444 (epiphany_mode_needed, epiphany_mode_entry_exit): Likewise.
27445 (emit_set_fp_mode, epiphany_mode_after): Likewise.
27446 (epiphany_mode_needed) <Handle EPIPHANY_MSW_ENTITY_AND>:
27447 Don't return 1 for FP_MODE_NONE.
27448 * config/epiphany/epiphany.h (NUM_MODES_FOR_MODE_SWITCHING):
27449 Add value for EPIPHANY_MSW_ENTITY_CONFIG.
27450 (EPIPHANY_MSW_ENTITY_CONFIG, EPIPHANY_MSW_ENTITY_NUM): Define.
27451 * config/epiphany/epiphany.md (save_config): New pattern.
27453 2013-05-12 Uros Bizjak <ubizjak@gmail.com>
27455 * config/i386/i386.md (*zero_extendsidi2): Add *x->?r alternative.
27457 2013-05-10 Uros Bizjak <ubizjak@gmail.com>
27459 * config/i386/i386.md (memory): Handle sseishft1.
27460 * config/i386/sse.md (*vec_extractv4si): Remove memory attribute.
27461 (*vec_extractv2di_1): Ditto.
27463 2013-05-10 Vladimir Makarov <vmakarov@redhat.com>
27465 * lra-assigns.c (find_hard_regno_for): Add 1 to the cost of call
27468 2013-05-10 Sebastian Huber <sebastian.huber@embedded-brains.de>
27470 * config/arm/t-rtems-eabi: Remove mthumb/march=armv7 multilib.
27471 Add mthumb/march=armv7-a multilib.
27472 Add mthumb/march=armv7-r multilib.
27473 Add mthumb/march=armv7-a/mfpu=neon/mfloat-abi=hard multilib.
27475 2013-05-10 Ralf Corsépius <ralf.corsepius@rtems.org>
27477 * config/v850/t-rtems: Add more multilibs.
27479 2013-05-10 Richard Biener <rguenther@suse.de>
27481 PR tree-optimization/57214
27482 * tree-ssa-loop-ivcanon.c (propagate_constants_for_unrolling): Do
27483 not propagate from SSA names that occur in abnormal PHI nodes.
27485 2013-05-10 Marc Glisse <marc.glisse@inria.fr>
27487 * stor-layout.c (element_precision): New function.
27488 * machmode.h (element_precision): Declare it.
27489 * tree.c (build_minus_one_cst): New function.
27490 (element_precision): Likewise.
27491 * tree.h (build_minus_one_cst): Declare new function.
27492 (element_precision): Likewise.
27493 * fold-const.c (operand_equal_p): Use element_precision.
27494 (fold_binary_loc): Handle vector types.
27495 * convert.c (convert_to_integer): Use element_precision.
27496 * gimple.c (iterative_hash_canonical_type): Handle complex and vectors
27499 2013-05-10 Richard Sandiford <rdsandiford@googlemail.com>
27501 * config/mips/mips-protos.h (m16_uimm3_b, m16_simm4_1, m16_nsimm4_1)
27502 (m16_simm5_1, m16_nsimm5_1, m16_uimm5_4, m16_nuimm5_4, m16_simm8_1)
27503 (m16_nsimm8_1, m16_uimm8_1, m16_nuimm8_1, m16_uimm8_m1_1, m16_uimm8_4)
27504 (m16_nuimm8_4, m16_simm8_8, m16_nsimm8_8): Delete.
27505 * config/mips/mips.c (m16_check_op, m16_uimm3_b, m16_simm4_1)
27506 (m16_nsimm4_1, m16_simm5_1, m16_nsimm5_1, m16_uimm5_4, m16_nuimm5_4)
27507 (m16_simm8_1, m16_nsimm8_1, m16_uimm8_1, m16_nuimm8_1, m16_uimm8_m1_1)
27508 (m16_uimm8_4, m16_nuimm8_4, m16_simm8_8, m16_nsimm8_8): Delete.
27509 * config/mips/constraints.md (Udb8, Usb5, Usb8, Usd8, Uub8, Uuw5)
27510 (Uuw8): New constraints.
27511 (Usb4): Move into alphabetical order.
27512 * config/mips/predicates.md (db8_operand, sb5_operand, sb8_operand)
27513 (sd8_operand, ub8_operand, uw8_operand): New predicates.
27514 * config/mips/mips.md (*xor<mode>3, *xor<mode>3_mips16): Name
27515 previously unnamed patterns.
27516 (*add<mode>3_mips16, *xor<mode>3_mips16, *<optab>si3_mips16)
27517 (*ashldi3_mips16, *ashrdi3_mips16, *lshrdi3_mips16)
27518 (*slt<u>_<GPR:mode><GPR2:mode>_mips16)
27519 (*sle<u>_<GPR:mode><GPR2:mode>_mips16): Use constraints instead
27520 of set_attr_alternative/if_then_else. Use extended_mips16 instead
27521 of specific lengths.
27523 2013-05-10 Jakub Jelinek <jakub@redhat.com>
27525 * config/i386/i386.md (rotateinv): New code attr.
27526 (*<rotate_insn><mode>3_1, *<rotate_insn>si3_1_zext,
27527 *<rotate_insn>qi3_1_slp): Emit rorl %eax instead of
27528 roll $31, %eax, etc.
27530 PR tree-optimization/45216
27531 PR tree-optimization/57157
27532 * tree-ssa-forwprop.c (simplify_rotate): New function.
27533 (ssa_forward_propagate_and_combine): Call it.
27535 2013-05-10 Richard Biener <rguenther@suse.de>
27537 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment): Do not
27538 disable peeling when we version for aliasing.
27539 (vector_alignment_reachable_p): Honor explicit user alignment.
27540 (vect_supportable_dr_alignment): Likewise.
27541 * tree-vect-loop-manip.c (vect_can_advance_ivs_p): Use
27542 STMT_VINFO_LOOP_PHI_EVOLUTION_PART instead of recomputing it.
27543 * tree-vect-loop.c (vect_transform_loop): First apply versioning,
27544 then peeling to arrange for the cost-model check to come first.
27546 2013-05-10 Alan Modra <amodra@gmail.com>
27548 * configure.ac (HAVE_AS_TLS): Swap powerpc64 and powerpc cases.
27549 (HAVE_LD_LARGE_TOC): Don't mention AIX in help text.
27550 * configure: Regenerate.
27552 2013-05-10 Alan Modra <amodra@gmail.com>
27555 * varasm.c (default_elf_select_section): Move !DECL_P check..
27556 (get_named_section): ..to here before calling get_section_name.
27558 (default_section_type_flags): Add DECL_P check.
27559 * config/i386/winnt.c (i386_pe_section_type_flags): Likewise.
27560 * config/rs6000/rs6000.c (rs6000_xcoff_section_type_flags): Likewise.
27562 2013-05-09 Joern Rennecke <joern.rennecke@embecosm.com>
27564 * config/epiphany/epiphany.c (epiphany_expand_prologue):
27565 When using gen_stack_adjust_str with a register offset, add a
27566 REG_FRAME_RELATED_EXPR note.
27568 2013-05-09 Uros Bizjak <ubizjak@gmail.com>
27570 * config/i386/sse.md (*vec_extractv4si_0_zext): New pattern.
27571 (*vec_extractv4si_zext_mem): Ditto.
27572 (*vec_extractv2di): Add 0->x and x->x alternatives.
27573 * config/i386/mmx.md (*vec_extractv2si_zext_mem): New pattern.
27574 * config/i386/i386.md (*zero_extendsidi2): Add *Yj->?r alternative.
27576 2013-05-09 Jason Merrill <jason@redhat.com>
27578 N3639 C++1y VLA support
27579 * gimplify.c (gimplify_vla_decl): Don't touch an existing
27582 * tree.c (build_constructor_va): New.
27583 * tree.h: Declare it.
27585 2013-05-09 Martin Jambor <mjambor@suse.cz>
27588 * gimple-fold.c (canonicalize_constructor_val): Call
27589 cgraph_get_create_real_symbol_node instead of cgraph_get_create_node.
27591 2013-05-09 Jan Hubicka <jh@suse.cz>
27592 Richard Biener <rguenther@suse.de>
27595 * symtab.c (symtab_make_decl_local): Do not add private names.
27597 2013-05-09 Jan Hubicka <jh@suse.cz>
27600 * symtab.c (insert_to_assembler_name_hash): Handle clones.
27601 (unlink_from_assembler_name_hash): Likewise.
27602 (symtab_prevail_in_asm_name_hash, symtab_register_node,
27603 symtab_unregister_node, symtab_initialize_asm_name_hash,
27604 change_decl_assembler_name): Update.
27606 2013-05-09 Sofiane Naci <sofiane.naci@arm.com>
27608 * config/aarch64/aarch64.md: New movtf split.
27609 (*movtf_aarch64): Update.
27610 (aarch64_movdi_tilow): Handle TF modes and rename to
27611 aarch64_movdi_<mode>low.
27612 (aarch64_movdi_tihigh): Handle TF modes and rename to
27613 aarch64_movdi_<mode>high
27614 (aarch64_movtihigh_di): Handle TF modes and rename to
27615 aarch64_mov<mode>high_di
27616 (aarch64_movtilow_di): Handle TF modes and rename to
27617 aarch64_mov<mode>low_di
27618 (aarch64_movtilow_tilow): Remove spurious whitespace.
27619 * config/aarch64/aarch64.c (aarch64_split_128bit_move): Handle TFmode
27621 (aarch64_print_operand): Update.
27623 2013-05-09 Alan Modra <amodra@gmail.com>
27625 * configure.ac (HAVE_AS_TLS): Enable tests for powerpcle and
27627 * configure: Regenerate.
27629 2013-05-08 Uros Bizjak <ubizjak@gmail.com>
27631 * config/i386/mmx.md (*vec_extract* splitters): Simplify post-reload
27632 splitter preparation statements.
27633 * config/i386/sse.md (*vec_extract* splitters): Ditto.
27634 (*avx_vperm_broadcast_<mode>): Use adjust_address instead of
27637 2013-05-08 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
27639 * gimple-ssa-strength-reduction.c (count_candidates): Change
27640 return value to int.
27641 (analyze_candidates_and_replace): Change type of length to int.
27643 2013-05-08 Uros Bizjak <ubizjak@gmail.com>
27645 * config/i386/sse.md (PEXTR_MODE, PEXTR_MODEx): Remove.
27646 (*vec_extract<mode>): Use VI12_128 mode iterator.
27647 (*vec_extract<mode>_mem): Ditto.
27648 (*vec_extract*_mem splitters): Merge splitters using VI_128 mode
27651 2013-05-08 Diego Novillo <dnovillo@google.com>
27656 2012-08-17 Diego Novillo <dnovillo@google.com>
27659 * configure.ac: Add libintl.h to AC_CHECK_HEADERS list.
27660 * config.in: Regenerate.
27661 * configure: Regenerate.
27662 * intl.h: Always include libintl.h if HAVE_LIBINTL_H is set.
27664 2013-05-08 Jan Hubicka <jh@suse.cz>
27667 * cgraph.c (cgraph_make_node_local_1): Se unique_name.
27668 * cgraph.h (symtab_node_base): Add unique_name.
27669 * lto-cgraph.c (lto_output_node, lto_output_varpool_node,
27670 input_overwrite_node, input_varpool_node): Stream unique_name.
27671 * cgraphclones.c (cgraph_create_virtual_clone,
27672 cgraph_function_versioning): Set unique_name.
27673 * ipa.c (function_and_variable_visibility): Set unique_name.
27675 2013-05-08 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
27677 * gimple-ssa-strength-reduction.c (find_phi_def): Revert former "fix."
27678 (alloc_cand_and_find_basis): Restrict conditional candidate
27679 processing to CAND_MULTs.
27681 2013-05-08 Jan Hubicka <jh@suse.cz>
27684 lto-symtab.c (lto_symtab_symbol_p): New function.
27685 (lto_symtab_resolve_can_prevail_p, lto_symtab_resolve_symbols,
27686 lto_symtab_resolve_symbols, lto_symtab_merge_decls_2,
27687 lto_symtab_merge_decls_1, lto_symtab_merge_cgraph_nodes_1):
27688 Skip static symbols.
27690 2013-05-08 Paolo Carlini <paolo.carlini@oracle.com>
27692 PR tree-optimization/57200
27693 * tree-ssa-loop-niter.c (do_warn_aggressive_loop_optimizations):
27694 Only call inform if the preceding warning_at returns true.
27696 2013-05-07 Han Shen <shenhan@google.com>
27698 * cfgexpand.c (record_or_union_type_has_array_p): New function.
27699 (expand_used_vars): Add logic handling '-fstack-protector-strong'.
27700 * common.opt (fstack-protector-strong): New option.
27701 * doc/cpp.texi (__SSP_STRONG__): New builtin "__SSP_STRONG__".
27702 * doc/invoke.texi (Optimization Options): Document
27703 "-fstack-protector-strong".
27704 * gcc.c (LINK_SSP_SPEC): Add 'fstack-protector-strong'.
27706 2013-05-06 Steven Bosscher <steven@gcc.gnu.org>
27708 * config/mips/mips.c (mips_machine_reorg2): Return 0.
27710 2013-05-07 Vladimir Makarov <vmakarov@redhat.com>
27712 * ira.c (update_equiv_regs): Add insn having equiv memory even if
27713 it is not lhs of the insn.
27714 (setup_reg_equiv): Remove insn having equiv memory which it is not
27716 * lra-constraints.c (process_address): Try to improve generation
27717 code for address base + disp.
27718 (lra_constraints): Make correct the code for checking insn setting
27719 up backward equivalence. Remove insn only if it is in the init
27721 * lra-eliminations.c (update_reg_eliminate): Change return value.
27722 (lra_eliminate): Use the result.
27724 2013-05-07 Uros Bizjak <ubizjak@gmail.com>
27726 * config/i386/sse.md (ssescalarnummask): New mode attribute.
27727 (PEXTR_MODE, PEXTR_MODEx): New mode iterators.
27728 (*vec_extract<mode>): Merge from *sse4_1_pextrb_memory and
27729 *sse4_1_pextrw_memory using PEXTR_MODE mode iterator. Handle
27730 register target operands.
27731 (*vec_extractv8hi_sse2): New pattern.
27732 (*vec_extractv16qi_zext): Rename from *sse4_1_pextrb_<mode>.
27733 (*vec_extractv8hi_zext): Rename from *sse2_pextrw_<mode>.
27734 (*vec_extract<mode>_mem): New insn and split pattern.
27736 2013-05-07 Christophe Lyon <christophe.lyon@linaro.org>
27738 * config/arm/arm.c (arm_asan_shadow_offset): New function.
27739 (TARGET_ASAN_SHADOW_OFFSET): Define.
27740 * config/arm/linux-eabi.h (ASAN_CC1_SPEC): Define.
27741 (LINUX_OR_ANDROID_CC): Add ASAN_CC1_SPEC.
27743 2013-05-07 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
27745 * gimple-ssa-strength-reduction.c (MAX_INCR_VEC_LEN): New constant.
27746 (incr_vec_index): Return -1 if increment not found.
27747 (create_add_on_incoming_edge): Assert if increment not found.
27748 (record_increment): Limit number of increments recorded.
27749 (all_phi_incrs_profitable): Return false if an increment not found.
27750 (replace_profitable_candidates): Don't process increments that were
27752 (analyze_candidates_and_replace): Limit size of incr_vec.
27754 2013-05-07 Richard Biener <rguenther@suse.de>
27756 * calls.c (special_function_p): setjmp-like functions are leaf.
27757 * builtins.def (BUILT_IN_SETJMP): setjmp is leaf.
27758 * tree-inline.c (update_ssa_across_abnormal_edges): Remove assert.
27760 2013-05-07 Sofiane Naci <sofiane.naci@arm.com>
27762 * config/aarch64/aarch64-simd.md (*aarch64_simd_mov<mode>): call splitter.
27763 (aarch64_simd_mov<mode>): New expander.
27764 (aarch64_simd_mov_to_<mode>low): New instruction pattern.
27765 (aarch64_simd_mov_to_<mode>high): Likewise.
27766 (aarch64_simd_mov_from_<mode>low): Likewise.
27767 (aarch64_simd_mov_from_<mode>high): Likewise.
27768 (aarch64_dup_lane<mode>): Update.
27769 (aarch64_dup_lanedi): New instruction pattern.
27770 * config/aarch64/aarch64-protos.h (aarch64_split_simd_move): New prototype.
27771 * config/aarch64/aarch64.c (aarch64_split_simd_move): New function.
27773 2013-05-07 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
27775 * gimple-ssa-strength-reduction.c (lazy_create_slsr_reg): Remove.
27776 (replace_mult_candidate): Remove unnecessary argument; remove
27777 unnecessary parameter from call to introduce_cast_before_cand.
27778 (replace_unconditional_candidate): Remove unnecessary parameter
27779 from call to replace_mult_candidate.
27780 (replace_conditional_candidate): Likewise.
27781 (insert_initializers): Use make_temp_ssa_name.
27782 (introduce_cast_before_cand): Remove unnecessary argument; use
27783 make_temp_ssa_name.
27784 (replace_one_candidate): Remove unnecessary argument; remove
27785 unnecessary parameter from calls to introduce_cast_before_cand.
27786 (replace_profitable_candidates): Remove unnecessary parameters
27787 from calls to replace_one_candidate.
27789 2013-05-07 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
27791 * gimple-ssa-strength-reduction.c (find_phi_def): Don't record a
27792 phi def as possibly hiding a basis for a CAND_ADD whose operands
27793 have been commuted in the analysis.
27794 (alloc_cand_and_find_basis): Add parms to call to find_phi_def.
27796 2013-05-07 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
27798 * config/aarch64/aarch64.md
27799 (cmp_swp_<optab><ALLX:mode>_shft_<GPI:mode>): Restrict the
27800 shift value between 0-4.
27802 2013-05-07 Richard Biener <rguenther@suse.de>
27804 * double-int.h (rshift): New overload.
27805 * double-int.c (rshift): New function.
27806 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Optimize.
27807 (create_reference_ops_from_ref): Remove.
27808 (vn_reference_insert): Use shared ops for constructing the
27809 reference and copy it.
27811 2013-05-07 Richard Biener <rguenther@suse.de>
27813 PR middle-end/57190
27814 * tree-eh.c (sink_clobbers): Properly propagate
27815 SSA_NAME_OCCURS_IN_ABNORMAL_PHI.
27817 2013-05-07 Jakub Jelinek <jakub@redhat.com>
27819 PR tree-optimization/57149
27820 * tree-ssa-uninit.c (uninit_undefined_value_p): New inline.
27821 (can_skip_redundant_opnd, compute_uninit_opnds_pos,
27822 collect_phi_def_edges, execute_late_warn_uninitialized): Use
27823 uninit_undefined_value_p instead of ssa_undefined_value_p.
27826 * expr.c (expand_expr_addr_expr_1): Handle COMPOUND_LITERAL_EXPR
27827 for modifier == EXPAND_INITIALIZER.
27829 2013-05-07 Anton Blanchard <anton@samba.org>
27831 * configure.ac (HAVE_LD_LARGE_TOC): Use correct linker emulation
27832 for powerpc64 little endian.
27833 * configure: Regenerate.
27835 2013-05-06 Graham Stott <grahams@btinternet.com>
27837 * expmed.c (init_expmed_rtl): Remove unused fields reg_fld, plus_fld,
27838 mult_fld, sdiv_fld1, udiv_fld1, sdiv_32_fld1, smod_32_fld1,
27839 wide_mult_fld1, wide_lshr_fld1, shift_fld1, shift_mult_fld1,
27840 shift_add_fld1, shift_sub0_fld1, shift_sub1_fld1.
27842 2013-05-06 Graham Stott <grahams@btinternet.com>
27844 * gensupport.c (add_predicate_code): Also exclude SCRATCH from rtx
27845 codes which allow non-lvalues.
27847 2013-05-06 Marc Glisse <marc.glisse@inria.fr>
27849 * tree.c (integer_all_onesp) <COMPLEX_CST>: Test that both
27850 components are all 1s.
27851 (integer_minus_onep): New function.
27852 * tree.h (integer_minus_onep): Declare it.
27853 * fold-const.c (fold_binary_loc) <MULT_EXPR>: Test
27854 integer_minus_onep instead of integer_all_onesp.
27856 2013-05-06 Oleg Endo <olegendo@gcc.gnu.org>
27859 * config/sh/sh.md (*cmp_div0s_0, *cmp_div0s_1, *movsicc_div0s): Add
27860 variations of these patterns.
27862 2013-05-06 Uros Bizjak <ubizjak@gmail.com>
27864 * config/i386/i386.md (isa): Add x64_sse4 member.
27865 (enabled): Handle x64_sse4.
27866 (*movdi_internal): Add *x->?r alternative to emit pextrq $0,%xmm,%reg
27867 instruction for 64bit SSE4_1 targets. Update insn attributes.
27868 (*movsi_internal): Add *x->?r alternative to emit pextrd $0,%xmm,%reg
27869 instruction for SSE4_1 targets. Update insn attributes.
27870 * config/i386/sse.md (*vec_extract<ssevecmodelower>_0): Merge
27871 with *sse4_1_pextrd and *sse4_1_pextrq having const_0 selector.
27872 (*vec_extractv2di_1): Merge with *sse4_1_pextrq having
27874 (*vec_extractv4si): Rename from *sse4_1_pextrd.
27875 (*vec_extractv4si_zext): Rename from *sse4_1_pextrd_zext.
27876 (*vec_extract<ssevecmodelower>_0 splitters): Merge splitters together.
27878 2013-05-06 Oleg Endo <olegendo@gcc.gnu.org>
27881 * config/sh/sh.md (tstsi_t_zero_extract_eq): Use QIHISIDI mode iterator.
27883 2013-05-06 Maxim Kuznetsov <maks.kuznetsov@gmail.com>
27885 * final.c (do_assembler_dialects): Don't handle curly braces and
27886 vertical bar escaped by % as dialect delimiters.
27887 (output_asm_insn): Print curly braces and vertical bar if escaped
27888 by % and ASSEMBLER_DIALECT defined.
27889 * doc/tm.texi.in (ASSEMBLER_DIALECT): Document new standard escapes.
27890 * doc/tm.texi: Regenerated.
27892 2013-05-06 Steven Bosscher <steven@gcc.gnu.org>
27894 * config/mips/mips.c: Include tree-pass.h.
27895 (mips_reorg): Split in pre- and post-dbr_schedule parts.
27896 (mips_machine_reorg2): Move mips_reorg post-dbr_schedule parts here.
27897 (pass_mips_machine_reorg2): New machine specific pass.
27898 (insert_pass_mips_machine_reorg2): New pass plugin definition.
27899 (mips_option_override): Register the new pass.
27900 * rtl.h (cleanup_barriers): Remove prototype.
27901 (dbr_schedule): Likewise.
27902 * jump.c (cleanup_barriers): Make static.
27903 * reorg.c (dbr_schedule): Likewise.
27905 2013-05-06 Richard Biener <rguenther@suse.de>
27907 PR tree-optimization/57185
27908 * tree-parloops.c (add_field_for_reduction): Handle anonymous
27909 SSA names properly.
27911 2013-05-06 Uros Bizjak <ubizjak@gmail.com>
27914 * config/i386/i386.c (add_parameter_dependencies): Add dependence
27915 between "first_arg" and "insn", not "last" and "insn".
27917 2013-05-06 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
27919 * gimple-ssa-strength-reduction.c (slsr_process_phi): Re-enable.
27920 (find_candidates_in_block): Re-enable slsr_process_phi.
27921 (create_phi_basis): Fix double counting of candidate adjustment.
27923 2013-05-06 Richard Biener <rguenther@suse.de>
27925 PR middle-end/57147
27926 * tree-cfg.c (gimple_purge_dead_abnormal_call_edges): If
27927 the edge is also fallthru, preserve it and just clear the
27929 * tree-cfgcleanup.c (remove_fallthru_edge): If the edge is
27930 also complex, preserve that and just clear the fallthru flag.
27931 * tree-inline.c (update_ssa_across_abnormal_edges): Also
27932 update virtual operands.
27934 2013-05-06 Alan Modra <amodra@gmail.com>
27936 * config/rs6000/linux.h (DEFAULT_ASM_ENDIAN): Define.
27937 (LINK_OS_LINUX_EMUL): Use ENDIAN_SELECT.
27938 * config/rs6000/linux64.h (DEFAULT_ASM_ENDIAN): Define.
27939 * config/rs6000/sysv4le.h (DEFAULT_ASM_ENDIAN): Define.
27940 (LINK_TARGET_SPEC): Use ENDIAN_SELECT.
27941 * config/rs6000/sysv4.h (DEFAULT_ASM_ENDIAN): Define as -mbig.
27943 2013-05-06 Alan Modra <amodra@gmail.com>
27945 * config/rs6000/sysv4.h (ENDIAN_SELECT): Define, extracted from
27946 (ASM_SPEC): ..here. Emit DEFAULT_ASM_ENDIAN too.
27947 (DEFAULT_ASM_ENDIAN): Define.
27948 (CC1_SPEC, LINK_TARGET_SPEC): Use ENDIAN_SELECT.
27949 * config/rs6000/linux64.h (ASM_SPEC32): Remove endian options.
27950 Update -K PIC clause from sysv4.h.
27951 (ASM_SPEC_COMMON): Use ENDIAN_SELECT.
27952 (LINK_OS_LINUX_EMUL32, LINK_OS_LINUX_EMUL64): Likewise.
27954 2013-05-06 Alan Modra <amodra@gmail.com>
27956 * config/rs6000/rs6000.md (bswapdi 2nd splitter): Don't swap words
27957 twice for little-endian.
27958 (ashrdi3_no_power, ashrdi3): Support little-endian.
27960 2013-05-06 Oleg Endo <olegendo@gcc.gnu.org>
27963 * config/sh/sh.c (sh_rtx_costs): Handle SMIN and SMAX cases.
27964 * config/sh/sh.md (*clips, uminsi3, *clipu, clipu_one): New insns and
27966 * config/sh/iterators.md (SMIN_SMAX): New code iterator.
27967 * config/sh/predicates.md (arith_reg_or_0_or_1_operand,
27968 clips_min_const_int, clips_max_const_int, clipu_max_const_int):
27971 2013-05-05 Steven Bosscher <steven@gcc.gnu.org>
27972 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
27974 * config.gcc (hppa*-*-*): Remove MASK_BIG_SWITCH from CPU default.
27975 * config/pa/pa.opt: Make mbig-switch a no-op.
27976 * config/pa/pa.h (TARGET_DEFAULT): Remove MASK_BIG_SWITCH.
27977 (CASE_VECTOR_MODE): Always return SImode.
27978 (ASM_OUTPUT_ADDR_VEC_ELT, ASM_OUTPUT_ADDR_DIFF_ELT): Remove code
27979 for the !TARGET_BIG_SWITCH case.
27980 * config/pa/pa-linux.h: Likewise.
27981 * config/pa/pa-openbsd.h: Likewise.
27982 * config/pa/pa-hpux.h: Define TARGET_DEFAULT to 0.
27983 * config/pa/pa.md (short_jump): Remove define_insn.
27984 (casesi): Remove code for the !TARGET_BIG_SWITCH case.
27985 (casesi0): Remove define_insn.
27986 (type): Remove btable_branch.
27987 (pa_combine_type): Likewise.
27988 (in_nullified_branch_delay): Likewise.
27989 (in_call_delay): Likewise.
27990 (define_delay): Likewise.
27991 (define_insn_reservation "Z3"): Likewise.
27992 (define_insn_reservation "Z4"): Likewise.
27993 * config/pa/pa.c (pa_reorg): Remove code for !TARGET_BIG_SWITCH.
27994 (pa_adjust_insn_length): Remove adjustment for btable branches.
27995 * doc/invoke.texi (HPPA Options): Delete documentation for mbig-switch
27998 2013-05-05 Uros Bizjak <ubizjak@gmail.com>
28000 * config/i386/sse.md (*vec_extract<ssevecmodelower>_0): Merge
28001 from sse2_stored and *sse2_storeq_rex64 using SWI48 mode iterator.
28002 Add m->r,x alternatives.
28003 (*vec_extract<ssevecmodelower>_0 splitters): Merge V2DI and V4SI
28004 splitters using SWI48x mode iterator.
28005 (*vec_extract_v2di_0_sse): Rename from *sse2_storeq. Disable for
28006 TARGET_64BIT. Add m->x alternative.
28007 (*vec_extractv4si_mem): Rename from *vec_ext_v4si_mem.
28008 Add o->x alternative. Enable for TARGET_SSE.
28009 (sse_storeq): Remove expander.
28010 (*vec_extractv2di_1): Enable for TARGET_SSE. Split alternatives
28011 with memory input operand.
28012 (*vec_extractv2di_1 splitter): New.
28013 (*vec_extractv4sf_mem): Rename from *vec_extract_v4sf_mem.
28014 * config/i386/i386.md (ssevecmodelower): New mode attribute.
28016 2013-05-04 Segher Boessenkool <segher@kernel.crashing.org>
28018 * config/rs6000/rs6000.c (INT_P): Reformat. Delete obsolete comment.
28019 (INT_LOWPART): Delete.
28020 (extract_MB): Adjust.
28021 (extract_ME): Adjust.
28022 (print_operand): Adjust.
28024 2013-05-04 Segher Boessenkool <segher@kernel.crashing.org>
28026 * config/rs6000/predicates.md (reg_or_add_cint_operand,
28027 reg_or_sub_cint_operand): Delete "HOST_BITS_PER_WIDE_INT == 32" case.
28028 (reg_or_logical_cint_operand, easy_fp_constant,
28029 logical_const_operand): Delete "CONST_DOUBLE" case.
28030 * config/rs6000/rs6000.c (num_insns_constant_wide): Delete
28031 "HOST_BITS_PER_WIDE_INT == 64" test.
28032 (num_insns_constant): Ditto. Delete CONST_DOUBLE DImode/VOIDmode case.
28033 (build_mask64_2_operands): Delete "HOST_BITS_PER_WIDE_INT >= 64" test.
28034 (rs6000_emit_set_const): Delete CONST_DOUBLE case.
28035 (rs6000_emit_set_long_const): Delete "HOST_BITS_PER_WIDE_INT >= 64"
28037 (includes_rldic_lshift_p, includes_rldicr_lshift_p): Delete
28038 CONST_DOUBLE DImode/VOIDmode case.
28039 (INT_P, INT_LOWPART): Delete CONST_DOUBLE case.
28040 (print_operand): Delete "HOST_BITS_PER_WIDE_INT == 32" case. Delete
28041 CONST_DOUBLE VOIDmode case.
28042 (output_toc): Delete "HOST_BITS_PER_WIDE_INT == 32" case.
28043 (rs6000_rtx_costs): Delete CONST_DOUBLE DImode/VOIDmode case.
28044 * config/rs6000/rs6000.md (iordi3, xordi3, splitter for these):
28045 Delete CONST_DOUBLE case.
28046 (splitters for mov FMOVE64 const_double): Delete
28047 "HOST_BITS_PER_WIDE_INT == 32" case. Delete
28048 "HOST_BITS_PER_WIDE_INT >= 64" test.
28049 (splitter for mov DI const_int): Delete "HOST_BITS_PER_WIDE_INT == 32"
28051 (mov DI const_double): Delete.
28053 2013-05-04 Jakub Jelinek <jakub@redhat.com>
28055 * combine.c (combine_simplify_rtx) <case SUBREG>: If nonzero_bits
28056 on op shows all bits zero in mode of a lowpart subreg, return zero.
28058 2013-05-03 Michael Meissner <meissner@linux.vnet.ibm.com>
28061 * config/rs6000/rs6000.h (HARD_REGNO_CALLER_SAVE_MODE): Use DFmode
28062 to save TFmode registers and DImode to save TImode registers for
28063 caller save operations.
28064 (HARD_REGNO_CALL_PART_CLOBBERED): TFmode and TDmode do not need to
28065 mark being partially clobbered since they only use the first
28068 * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): TFmode
28069 and TDmode only use the upper 64-bits of each VSX register.
28071 2013-05-03 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
28073 * gimple-ssa-strength-reduction.c (slsr_process_phi): Disable.
28074 (find_candidates_in_block): Disable slsr_process_phi.
28076 2013-05-03 Guozhi Wei <carrot@google.com>
28078 * coverage.c (coverage_obj_init): Move the construction of gcov
28080 (build_init_ctor): ... here.
28082 2013-05-03 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
28084 * gimple-ssa-strength-reduction.c (cand_kind): Add CAND_PHI.
28085 (slsr_cand_d): Redefine def_phi.
28086 (stride_status, phi_adjust_status, count_phis_status): New enums.
28087 (find_phi_def): New.
28088 (find_basis_for_base_expr): New.
28089 (find_basis_for_candidate): Handle hidden bases.
28090 (alloc_cand_and_find_basis): Handle phi candidates.
28091 (slsr_process_phi): New.
28092 (create_mul_ssa_cand): Exclude phi base candidates; use integer_onep.
28093 (create_mul_imm_cand): Likewise.
28094 (create_add_ssa_cand): Exclude phi base candidates.
28095 (create_add_imm_cand): Likewise.
28096 (slsr_process_cast): Likewise.
28097 (slsr_process_copy): Likewise.
28098 (find_candidates_in_block): Handle phi candidates.
28099 (dump_candidate): Likewise.
28100 (unconditional_cands): Delete.
28101 (unconditional_cands_with_known_stride_p): Delete.
28102 (phi_dependent_cand_p): New.
28103 (cand_increment): Handle phi-dependent candidates.
28104 (replace_dependent): Delete.
28105 (replace_mult_candidate): New.
28106 (replace_unconditional_candidate): New.
28107 (incr_vec_index): Move to avoid forward reference.
28108 (create_add_on_incoming_edge): New.
28109 (create_phi_basis): New.
28110 (replace_dependents): Delete.
28111 (replace_conditional_candidate): New.
28112 (phi_add_costs): New.
28113 (replace_uncond_cands_and_profitable_phis): New.
28114 (record_increment): Handle phi adjustments.
28115 (record_phi_increments): New.
28116 (record_increments): Handle phi adjustments.
28117 (phi_incr_cost): New.
28118 (lowest_cost_path): Handle phis.
28119 (total_savings): Likewise.
28120 (analyze_increments): Likewise.
28121 (ncd_with_phi): New.
28122 (ncd_of_cand_and_phis): New.
28123 (nearest_common_dominator_for_cands): Handle phi increments.
28124 (all_phi_incrs_profitable): New.
28125 (replace_profitable_candidates): Handle phi-dependent candidates.
28126 (analyze_candidates_and_replace): Likewise.
28128 2013-05-03 Teresa Johnson <tejohnson@google.com>
28131 * sched-rgn.c (compute_dom_prob_ps): Ensure accumulated probabilities
28132 do not exceed REG_BR_PROB_BASE.
28134 2013-05-03 Jeff Law <law@redhat.com>
28136 PR tree-optimization/57144
28137 * tree-vrp.c (simplify_cond_using_ranges): Verify the constant
28138 operand of the condition will bit into the new type when eliminating
28139 a cast feeding a condition.
28141 2013-05-03 Jakub Jelinek <jakub@redhat.com>
28143 PR rtl-optimization/57130
28144 * combine.c (make_compound_operation) <case SUBREG>: Pass SET instead
28145 of COMPARE as in_code to the recursive call if needed.
28147 2013-05-03 Uros Bizjak <ubizjak@gmail.com>
28149 * config/i386/i386.md (isa): Add x64_sse4_noavx and x64_avx members.
28150 (enabled): Handle new members.
28151 * config/i386/sse.md (*vec_concatv2si): Merge from
28152 *vec_concatv2si_sse2 and vec_concatv2si_sse.
28153 (vec_concatv2di): Merge with *vec_concatv2di_rex64.
28155 2013-05-03 Joern Rennecke <joern.rennecke@embecosm.com>
28157 PR tree-optimization/57027
28158 * tree-ssa-math-opts.c (convert_mult_to_fma): When checking
28159 for fnms opportunity, check we got the prerequisite kind
28160 of tree / gimple before using accessor functions.
28162 2013-05-03 Richard Biener <rguenther@suse.de>
28164 * double-int.h (lshift): New overload without precision
28165 and arith argument.
28166 (operator *=, operator +=, operator -=): Move ...
28167 * double-int.c (operator *=, operator +=, operator -=): ... here
28168 and implement more efficiently.
28169 (mul_double_with_sign): Remove.
28170 (lshift_double): Adjust to take unsinged shift argument, push
28171 dispatching code to callers.
28172 (mul_double_wide_with_sign): Add early out for callers that
28173 are not interested in high parts or overflow.
28174 (lshift): New function.
28175 (lshift, rshift, alshift, arshift, llshift, lrshift): Add
28176 dispatch code here.
28177 (lrotate, rrotate): Use logical shifts.
28178 * expr.c (get_inner_reference): Use lshift.
28179 * fixed-value.c (do_fixed_divide): Likewise.
28180 * tree-dfa.c (get_ref_base_and_extent): Likewise.
28181 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Likewise.
28182 (indirect_refs_may_alias_p): Likewise.
28183 (stmt_kills_ref_p_1): Likewise.
28185 2013-05-03 Vidya Praveen <vidyapraveen@arm.com>
28187 * config/aarch64/aarch64-simd.md (simd_fabd): Correct the description.
28189 2013-05-03 Vidya Praveen <vidyapraveen@arm.com>
28191 * config/aarch64/aarch64-simd.md (*fabd_scalar<mode>3): Support
28192 scalar form of FABD instruction.
28194 2013-05-02 Vladimir Makarov <vmakarov@redhat.com>
28196 * lra-constraints.c (process_alt_operands): Add checking alt
28197 number to choose the best alternative.
28199 2013-05-02 Richard Biener <rguenther@suse.de>
28201 * tree-eh.c (cleanup_empty_eh_merge_phis): Remove rename_virts
28202 bitmap and its handling.
28203 (pass_cleanup_eh): Set todo_flags_finish to TODO_verify_ssa.
28205 2013-05-02 Richard Biener <rguenther@suse.de>
28207 PR middle-end/57140
28208 * tree-inline.c (copy_loops): Properly handle removed loops.
28209 (copy_cfg_body): Mark destination loops for fixup if source
28210 loops needed fixup.
28212 2013-05-02 Greta Yorsh <Greta.Yorsh@arm.com>
28215 * config/arm/arm.c (arm_expand_epilogue): Check really_return before
28216 generating simple_return for naked functions.
28218 2013-05-02 Martin Jambor <mjambor@suse.cz>
28220 PR middle-end/56988
28221 * ipa-prop.h (ipa_agg_replacement_value): New flag by_ref.
28222 * ipa-cp.c (ipa_get_indirect_edge_target_1): Also check that by_ref
28224 (find_aggregate_values_for_callers_subset): Fill in the by_ref flag of
28225 ipa_agg_replacement_value structures.
28226 (known_aggs_to_agg_replacement_list): Likewise.
28227 * ipa-prop.c (write_agg_replacement_chain): Stream by_ref flag.
28228 (read_agg_replacement_chain): Likewise.
28229 (ipcp_transform_function): Also check that by_ref flags match.
28231 2013-05-02 Richard Biener <rguenther@suse.de>
28233 * graphds.h (struct graph): Add obstack member.
28234 * graphds.c (new_graph): Initialize obstack and allocate
28236 (add_edge): Allocate edge from the obstack.
28237 (free_graph): Free the obstack instead of all edges and vertices.
28239 2013-05-02 Teresa Johnson <tejohnson@google.com>
28241 * loop-unswitch.c (unswitch_loop): Use helper routines with rounding
28243 * cfg.c (update_bb_profile_for_threading): Ditto.
28244 * tree-inline.c (copy_bb): Ditto.
28245 (copy_edges_for_bb): Ditto.
28246 (initialize_cfun): Ditto.
28247 (copy_cfg_body): Ditto.
28248 (expand_call_inline): Ditto.
28249 * ipa-inline-analysis.c (estimate_edge_size_and_time): Ditto.
28250 (estimate_node_size_and_time): Ditto.
28251 (inline_merge_summary): Ditto.
28252 * cgraphclones.c (cgraph_clone_edge): Ditto.
28253 (cgraph_clone_node): Ditto.
28254 * sched-rgn.c (compute_dom_prob_ps): Ditto.
28255 (compute_trg_info): Ditto.
28257 2013-05-02 Ian Bolton <ian.bolton@arm.com>
28259 * config/aarch64/aarch64.md (movsi_aarch64): Only allow to/from
28260 S reg when fp attribute set.
28261 (movdi_aarch64): Only allow to/from D reg when fp attribute set.
28263 2013-05-02 Ian Bolton <ian.bolton@arm.com>
28265 * config/aarch64/aarch64.md (*and_one_cmpl<mode>3_compare0):
28267 (*and_one_cmplsi3_compare0_uxtw): Likewise.
28268 (*and_one_cmpl_<SHIFT:optab><mode>3_compare0): Likewise.
28269 (*and_one_cmpl_<SHIFT:optab>si3_compare0_uxtw): Likewise.
28271 2013-05-02 Richard Biener <rguenther@suse.de>
28273 * tree-scalar-evolution.c (scev_info_hasher): Remove.
28274 (struct instantiate_cache_entry): New type.
28275 (struct instantiate_cache_entry_hasher): New hashtable descriptor.
28276 (struct instantiate_cache_type): New type.
28277 (set_instantiated_value, get_instantiated_value): Remove.
28278 (get_instantiated_value_entry): New function.
28279 (instantiate_scev_name): Use the new cache and adjust.
28280 (instantiate_scev_poly): Adjust.
28281 (instantiate_scev_binary): Likewise.
28282 (instantiate_array_ref): Likewise.
28283 (instantiate_scev_convert): Likewise.
28284 (instantiate_scev_not): Likewise.
28285 (instantiate_scev_3): Likewise.
28286 (instantiate_scev_2): Likewise.
28287 (instantiate_scev_r): Likewise.
28288 (instantiate_scev): Likewise.
28289 (resolve_mixers): Likewise.
28291 2013-05-01 Vladimir Makarov <vmakarov@redhat.com>
28294 * lra-constraints.c (best_small_class_operands_num): Remove.
28295 (process_alt_operands): Remove small_class_operands_num. Take
28296 small classes operands into losers and only if the operand is not
28297 matched. Modify debugging output.
28298 (curr_insn_transform): Remove best_small_class_operands_num.
28301 2013-05-01 James Greenhalgh <james.greenhalgh@arm.com>
28303 * config/aarch64/aarch64-builtins.c
28304 (aarch64_gimple_fold_builtin.c): Fold more modes for reduc_splus_.
28305 * config/aarch64/aarch64-simd-builtins.def
28306 (reduc_splus_): Add new modes.
28307 (reduc_uplus_): New.
28308 * config/aarch64/aarch64-simd.md (aarch64_addvv4sf): Remove.
28309 (reduc_uplus_v4sf): Likewise.
28310 (reduc_splus_v4sf): Likewise.
28311 (aarch64_addv<mode>): Likewise.
28312 (reduc_uplus_<mode>): Likewise.
28313 (reduc_splus_<mode>): Likewise.
28314 (aarch64_addvv2di): Likewise.
28315 (reduc_uplus_v2di): Likewise.
28316 (reduc_splus_v2di): Likewise.
28317 (aarch64_addvv2si): Likewise.
28318 (reduc_uplus_v2si): Likewise.
28319 (reduc_splus_v2si): Likewise.
28320 (reduc_<sur>plus_<mode>): New.
28321 (reduc_<sur>plus_v2di): Likewise.
28322 (reduc_<sur>plus_v2si): Likewise.
28323 (reduc_<sur>plus_v4sf): Likewise.
28324 (aarch64_addpv4sf): Likewise.
28325 * config/aarch64/arm_neon.h
28326 (vaddv<q>_<s,u,f><8, 16, 32, 64): Rewrite using builtins.
28327 * config/aarch64/iterators.md (unspec): Remove UNSPEC_ADDV,
28328 add UNSPEC_SADDV, UNSPEC_UADDV.
28330 (sur): Add UNSPEC_SADDV, UNSPEC_UADDV.
28332 2013-05-01 James Greenhalgh <james.greenhalgh@arm.com>
28334 * config/aarch64/arm_neon.h
28335 (v<max,min><nm><q><v>_<sfu><8, 16, 32, 64>): Rewrite using builtins.
28337 2013-05-01 James Greenhalgh <james.greenhalgh@arm.com>
28339 * config/aarch64/aarch64-builtins
28340 (aarch64_gimple_fold_builtin): Fold reduc_<su><maxmin>_ builtins.
28342 2013-05-01 James Greenhalgh <james.greenhalgh@arm.com>
28344 * config/aarch64/aarch64-simd-builtins.def
28345 (reduc_smax_): New.
28346 (reduc_smin_): Likewise.
28347 (reduc_umax_): Likewise.
28348 (reduc_umin_): Likewise.
28349 (reduc_smax_nan_): Likewise.
28350 (reduc_smin_nan_): Likewise.
28353 (smax): Update for V2SF, V4SF and V2DF modes.
28356 (smin_nan): Likewise.
28357 * config/aarch64/aarch64-simd.md (<maxmin><mode>3): Rename to...
28358 (<su><maxmin><mode>3): ...This, refactor.
28359 (s<maxmin><mode>3): New.
28360 (<maxmin_uns><mode>3): Likewise.
28361 (reduc_<maxmin_uns>_<mode>): Refactor.
28362 (reduc_<maxmin_uns>_v4sf): Likewise.
28363 (reduc_<maxmin_uns>_v2si): Likewise.
28364 (aarch64_<fmaxmin><mode>: Remove.
28365 * config/aarch64/arm_neon.h (vmax<q>_f<32,64>): Rewrite to use
28367 (vmin<q>_f<32,64>): Likewise.
28368 * config/iterators.md (unspec): Add UNSPEC_FMAXNMV, UNSPEC_FMINNMV.
28370 (su): Add mappings for smax, smin, umax, umin.
28372 (FMAXMINV): Add UNSPEC_FMAXNMV, UNSPEC_FMINNMV.
28373 (FMAXMIN): Rename as...
28374 (FMAXMIN_UNS): ...This.
28376 (fmaxminv): Likewise.
28377 (fmaxmin): Likewise.
28379 (maxmin_uns_op): Likewise.
28381 2013-05-01 James Greenhalgh <james.greenhalgh@arm.com>
28383 * config/aarch64/arm_neon.h
28384 (vac<ge, gt><sd>_f<32, 64>): Rename to...
28385 (vca<ge, gt><sd>_f<32, 64>): ...this, reimpliment in C.
28386 (vca<ge, gt, lt, le><q>_f<32, 64>): Reimpliment in C.
28388 2013-05-01 James Greenhalgh <james.greenhalgh@arm.com>
28390 * config/aarch64/aarch64-simd.md (*aarch64_fac<optab><mode>): New.
28391 * config/aarch64/iterators.md (FAC_COMPARISONS): New.
28393 2013-05-01 James Greenhalgh <james.greenhalgh@arm.com>
28395 * config/aarch64/aarch64-simd.md
28396 (vcond<mode>_internal): Handle special cases for constant masks.
28397 (vcond<mode><mode>): Allow nonmemory_operands for outcome vectors.
28398 (vcondu<mode><mode>): Likewise.
28399 (vcond<v_cmp_result><mode>): New.
28401 2013-05-01 James Greenhalgh <james.greenhalgh@arm.com>
28403 * config/aarch64/aarch64-builtins.c (BUILTIN_VALLDI): Define.
28404 (aarch64_fold_builtin): Add folding for cm<eq,ge,gt,tst>.
28405 * config/aarch64/aarch64-simd-builtins.def
28406 (cmeq): Update to BUILTIN_VALLDI.
28411 * config/aarch64/arm_neon.h
28412 (vc<eq, lt, le, gt, ge, tst><z><qsd>_<fpsu><8,16,32,64>): Remap
28413 to builtins or C as appropriate.
28415 2013-05-01 James Greenhalgh <james.greenhalgh@arm.com>
28417 * config/aarch64/aarch64-simd-builtins.def (cmhs): Rename to...
28419 (cmhi): Rename to...
28421 * config/aarch64/aarch64-simd.md
28422 (simd_mode): Add SF.
28423 (aarch64_vcond_internal): Use new names for unsigned comparison insns.
28424 (aarch64_cm<optab><mode>): Rewrite to not use UNSPECs.
28425 * config/aarch64/aarch64.md (*cstore<mode>_neg): Rename to...
28426 (cstore<mode>_neg): ...This.
28427 * config/aarch64/iterators.md
28429 (unspec): Remove UNSPEC_CM<EQ, LE, LT, GE, GT, HS, HI, TST>.
28430 (COMPARISONS): New.
28431 (UCOMPARISONS): Likewise.
28432 (optab): Add missing comparisons.
28438 (VCMP_S): Likewise.
28439 (VCMP_U): Likewise.
28440 (V_cmp_result): Add DF, SF modes.
28441 (v_cmp_result): Likewise.
28443 (vmtype): Likewise.
28444 * config/aarch64/predicates.md (aarch64_reg_or_fp_zero): New.
28446 2013-05-01 Greta Yorsh <Greta.Yorsh@arm.com>
28448 * config/arm/thumb2.md (thumb2_smaxsi3,thumb2_sminsi3): Convert
28449 define_insn to define_insn_and_split.
28450 (thumb32_umaxsi3,thumb2_uminsi3): Likewise.
28451 (thumb2_negdi2,thumb2_abssi2,thumb2_neg_abssi2): Likewise.
28452 (thumb2_mov_scc,thumb2_mov_negscc,thumb2_mov_notscc): Likewise.
28453 (thumb2_movsicc_insn,thumb2_and_scc,thumb2_ior_scc): Likewise.
28454 (thumb2_negscc): Likewise.
28456 2013-04-30 Greta Yorsh <Greta.Yorsh@arm.com>
28458 * config/arm/thumb2.md (thumb2_incscc, thumb2_decscc): Delete.
28460 2013-04-30 Greta Yorsh <Greta.Yorsh@arm.com>
28462 * config/arm/thumb2.md: Remove trailing whitespaces.
28464 2013-04-30 Richard Sandiford <rsandifo@linux.vnet.ibm.com>
28466 * explow.c (plus_constant): Pass "mode" to immed_double_int_const.
28467 Use gen_int_mode rather than GEN_INT.
28469 2013-04-30 H.J. Lu <hongjiu.lu@intel.com>
28471 * value-prof.c (stream_in_histogram_value): Remove the strayed
28474 2013-04-30 Richard Biener <rguenther@suse.de>
28476 PR middle-end/57122
28477 * cfghooks.c (split_edge): Properly check for the loop latch edge.
28479 2013-04-30 Richard Biener <rguenther@suse.de>
28481 PR middle-end/57107
28482 * tree-eh.c (sink_clobbers): Preserve virtual SSA form.
28484 2013-04-30 Andrey Belevantsev <abel@ispras.ru>
28486 PR rtl-optimization/56957
28487 PR rtl-optimization/57105
28488 * sel-sched.c (move_op_orig_expr_found): Remove insn_emitted
28489 variable. Use just INSN_UID for determining whether an insn
28490 should be only disconnected from the insn stream.
28491 * sel-sched-ir.h (EXPR_WAS_CHANGED): Remove.
28493 2013-04-30 Jakub Jelinek <jakub@redhat.com>
28495 PR tree-optimization/57104
28496 * tsan.c (instrument_expr): Don't instrument accesses to
28497 DECL_HARD_REGISTER VAR_DECLs.
28499 2013-04-30 Richard Biener <rguenther@suse.de>
28501 * function.h (loops_for_fn): New inline function.
28502 (set_loops_for_fn): Likewise.
28503 * cfgloop.h (place_new_loop): Add struct function parameter.
28504 (get_loop): Likewise.
28505 (get_loops): Likewise.
28506 (number_of_loops): Likewise.
28507 (fel_next): Adjust.
28508 (fel_init): Likewise.
28509 * cfg.c (get_loop_copy): Adjust.
28510 * cfgloop.c (flow_loops_dump): Likewise.
28511 (record_loop_exits): Likewise.
28512 (verify_loop_structure): Likewise.
28513 * cfgloopanal.c (mark_irreducible_loops): Likewise.
28514 (estimate_reg_pressure_cost): Likewise.
28515 (mark_loop_exit_edges): Likewise.
28516 * cfgloopmanip.c (place_new_loop): Likewise.
28517 (add_loop): Likewise.
28518 (duplicate_loop): Likewise.
28519 * graph.c (draw_cfg_nodes): Likewise.
28520 * graphite-clast-to-gimple.c (translate_clast_user): Likewise.
28521 * graphite-sese-to-poly.c (build_scop_scattering): Likewise.
28522 (extract_affine_chrec): Likewise.
28523 (build_scop_iteration_domain): Likewise.
28524 * graphite.c (graphite_initialize): Likewise.
28525 * ira-build.c (create_loop_tree_nodes): Likewise.
28526 (more_one_region_p): Likewise.
28527 (rebuild_regno_allocno_maps): Likewise.
28528 (mark_loops_for_removal): Likewise.
28529 (mark_all_loops_for_removal): Likewise.
28530 (remove_unnecessary_regions): Likewise.
28531 (ira_build): Likewise.
28532 * ira-emit.c (setup_entered_from_non_parent_p): Likewise.
28533 * loop-init.c (fix_loop_structure): Likewise.
28534 (gate_rtl_move_loop_invariants): Likewise.
28535 (gate_rtl_unswitch): Likewise.
28536 (gate_rtl_unroll_and_peel_loops): Likewise.
28537 (rtl_doloop): Likewise.
28538 * lto-streamer-in.c (input_cfg): Likewise.
28539 * lto-streamer-out.c (output_cfg): Likewise.
28540 * modulo-sched.c (sms_schedule): Likewise.
28541 * predict.c (tree_estimate_probability): Likewise.
28542 (tree_estimate_probability_driver): Likewise.
28543 (estimate_loops): Likewise.
28544 * tree-cfg.c (fixup_loop_arrays_after_move): Likewise.
28545 (move_sese_region_to_fn): Likewise.
28546 (debug_loop_num): Likewise.
28547 * tree-chrec.c (chrec_evaluate): Likewise.
28548 (hide_evolution_in_other_loops_than_loop): Likewise.
28549 (chrec_component_in_loop_num): Likewise.
28550 (reset_evolution_in_loop): Likewise.
28551 (evolution_function_is_invariant_rec_p): Likewise.
28552 * tree-if-conv.c (main_tree_if_conversion): Likewise.
28553 * tree-inline.c (copy_loops): Likewise.
28554 (copy_cfg_body): Likewise.
28555 (tree_function_versioning): Likewise.
28556 * tree-loop-distribution.c (rdg_flag_loop_exits): Likewise.
28557 * tree-scalar-evolution.c (chrec_contains_symbols_defined_in_loop):
28559 (add_to_evolution_1): Likewise.
28560 (scev_const_prop): Likewise.
28561 * tree-scalar-evolution.h (get_chrec_loop): Likewise.
28562 * tree-ssa-loop-ch.c (copy_loop_headers): Likewise.
28563 * tree-ssa-loop-im.c (analyze_memory_references): Likewise.
28564 (tree_ssa_lim_initialize): Likewise.
28565 * tree-ssa-loop-manip.c (rewrite_into_loop_closed_ssa): Likewise.
28566 (verify_loop_closed_ssa): Likewise.
28567 * tree-ssa-loop.c (tree_ssa_loop_init): Likewise.
28568 (tree_ssa_loop_im): Likewise.
28569 (tree_ssa_loop_unswitch): Likewise.
28570 (tree_vectorize): Likewise.
28571 (check_data_deps): Likewise.
28572 (tree_ssa_loop_ivcanon): Likewise.
28573 (tree_ssa_loop_bounds): Likewise.
28574 (tree_complete_unroll): Likewise.
28575 (tree_complete_unroll_inner): Likewise.
28576 (tree_parallelize_loops): Likewise.
28577 (tree_ssa_loop_prefetch): Likewise.
28578 (tree_ssa_loop_ivopts): Likewise.
28579 * tree-ssa.c (execute_update_addresses_taken): Liekwise.
28580 * tree-vectorizer.c (vectorize_loops): Likewise.
28582 2013-04-29 Mike Frysinger <vapier@gentoo.org>
28584 * config/arm/bpabi.h (EABI_LINK_SPEC): Define.
28585 (BPABI_LINK_SPEC): Use new EABI_LINK_SPEC.
28586 * config/arm/linux-eabi.h (LINK_SPEC): Replace BE8_LINK_SPEC
28587 with EABI_LINK_SPEC.
28589 2013-04-29 Uros Bizjak <ubizjak@gmail.com>
28592 * config/i386/i386.md (*zero_extendsidi2): Add "!" to m->?*y
28595 2013-04-29 Vladimir Makarov <vmakarov@redhat.com>
28598 * lra-constraints.c (process_alt_operands): Discourage a bit more
28599 using memory for pseudos. Print cost dump for alternatives.
28600 Modify cost values for conflicts with early clobbers.
28601 (curr_insn_transform): Spill pseudos reassigned to NO_REGS.
28603 2013-04-29 Uros Bizjak <ubizjak@gmail.com>
28606 * config/i386/i386.c (ix86_expand_vec_perm): Validize constant memory.
28608 2013-04-29 Ian Bolton <ian.bolton@arm.com>
28610 * config/aarch64/aarch64.md (movsi_aarch64): Support LDR/STR
28611 from/to S register.
28612 (movdi_aarch64): Support LDR/STR from/to D register.
28614 2013-04-29 Ian Bolton <ian.bolton@arm.com>
28616 * common/config/aarch64/aarch64-common.c: Enable REE pass at O2
28617 or higher by default.
28619 2013-04-29 Richard Biener <rguenther@suse.de>
28621 PR middle-end/57075
28622 * tree-inline.c (copy_edges_for_bb): Still split the bbs,
28623 even if not adding abnormal edges for calls that can make
28626 2013-04-29 Richard Biener <rguenther@suse.de>
28628 PR middle-end/57103
28629 * tree-cfg.c (move_stmt_op): Fix condition under which to update
28631 (move_stmt_r): Remove redundant checking.
28633 2013-04-29 Teresa Johnson <tejohnson@google.com>
28636 * basic-block.h (apply_scale): New function.
28637 (apply_probability): Use apply_scale.
28638 * gimple-streamer-in.c (input_bb): Ditto.
28639 * lto-streamer-in.c (input_cfg): Ditto.
28640 * lto-cgraph.c (merge_profile_summaries): Ditto.
28641 * tree-optimize.c (execute_fixup_cfg): Ditto.
28642 * tree-inline.c (copy_bb): Update comment to use apply_scale.
28643 (copy_edges_for_bb): Ditto.
28644 (copy_cfg_body): Ditto.
28646 2013-04-29 Tom de Vries <tom@codesourcery.com>
28648 * tree-ssa-tail-merge.c (find_same_succ_bb): Skip loop latch bbs.
28649 (replace_block_by): Don't set LOOPS_NEED_FIXUP.
28650 (tail_merge_optimize): Handle current_loops == NULL.
28652 2013-04-26 Jeff Law <law@redhat.com>
28654 * tree-vrp.c (range_fits_type_p): Move to earlier point in file.
28655 (simplify_cond_using_ranges): Generalize code to simplify
28656 COND_EXPRs where one argument is a constant and the other
28657 is an SSA_NAME created by an integral type conversion.
28659 2013-04-29 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
28661 * config/arm/arm.md (store_minmaxsi): Use only when
28662 optimize_insn_for_size_p.
28664 2013-04-29 Christian Bruel <christian.bruel@st.com>
28667 * sh.md (tstsi_t_zero_extract_eq): Set mode for operand 0.
28669 2013-04-29 Richard Biener <rguenther@suse.de>
28671 PR middle-end/57089
28672 * omp-low.c (expand_omp_taskreg): If the parent function had a broken
28673 loop tree make sure to schedule a fixup for the child as well.
28674 (expand_omp_for_generic): Properly add loops.
28675 (expand_omp_for_static_nochunk): Likewise.
28676 (expand_omp_for_static_chunk): Likewise.
28677 (expand_omp_for): For the degenerate case fixup loops.
28678 (expand_omp_sections): Fix default bb placement in loops.
28679 (expand_omp_atomic_pipeline): Properly add loops.
28681 2013-04-29 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
28683 * predict.c: Fix typo in comment above #define PROB_VERY_UNLIKELY.
28685 2013-04-29 Tom de Vries <tom@codesourcery.com>
28687 * tree-ssa-tail-merge.c: Update header comment.
28689 2013-04-29 James Greenhalgh <james.greenhalgh@arm.com>
28691 * config/aarch64/arm_neon.h
28692 (vcvt<sd>_f<32,64>_s<32,64>): Rewrite in C.
28693 (vcvt<q>_f<32,64>_s<32,64>): Rewrite using builtins.
28694 (vcvt_<high_>_f<32,64>_f<32,64>): Likewise.
28695 (vcvt<qsd>_<su><32,64>_f<32,64>): Likewise.
28696 (vcvta<qsd>_<su><32,64>_f<32,64>): Likewise.
28697 (vcvtm<qsd>_<su><32,64>_f<32,64>): Likewise.
28698 (vcvtn<qsd>_<su><32,64>_f<32,64>): Likewise.
28699 (vcvtp<qsd>_<su><32,64>_f<32,64>): Likewise.
28701 2013-04-29 James Greenhalgh <james.greenhalgh@arm.com>
28703 * config/aarch64/aarch64-simd.md
28704 (<optab><VDQF:mode><fcvt_target>2): New, maps to fix, fixuns.
28705 (<fix_trunc_optab><VDQF:mode><fcvt_target>2): New, maps to
28706 fix_trunc, fixuns_trunc.
28707 (ftrunc<VDQF:mode>2): New.
28708 * config/aarch64/iterators.md (optab): Add fix, fixuns.
28709 (fix_trunc_optab): New.
28711 2013-04-29 James Greenhalgh <james.greenhalgh@arm.com>
28713 * config/aarch64/aarch64-builtins.c
28714 (aarch64_builtin_vectorized_function): Vectorize over ifloorf,
28715 iceilf, lround, iroundf.
28717 2013-04-29 Uros Bizjak <ubizjak@gmail.com>
28720 * config/i386/i386.h (enum ix86_tune_indices)
28721 <X86_TUNE_INTER_UNIT_MOVES_TO_VEC, X86_TUNE_INTER_UNIT_MOVES_FROM_VEC>:
28722 New, split from X86_TUNE_INTER_UNIT_MOVES.
28723 <X86_TUNE_INTER_UNIT_MOVES>: Remove.
28724 (TARGET_INTER_UNIT_MOVES_TO_VEC): New define.
28725 (TARGET_INTER_UNIT_MOVES_FROM_VEC): Ditto.
28726 (TARGET_INTER_UNIT_MOVES): Remove.
28727 * config/i386/i386.c (initial_ix86_tune_features): Update.
28728 Disable X86_TUNE_INTER_UNIT_MOVES_FROM_VEC for m_ATHLON_K8 only.
28729 (ix86_expand_convert_uns_didf_sse): Use
28730 TARGET_INTER_UNIT_MOVES_TO_VEC instead of TARGET_INTER_UNIT_MOVES.
28731 (ix86_expand_vector_init_one_nonzero): Ditto.
28732 (ix86_expand_vector_init_interleave): Ditto.
28733 (inline_secondary_memory_needed): Return true for moves from SSE class
28734 registers for !TARGET_INTER_UNIT_MOVES_FROM_VEC targets and for moves
28735 to SSE class registers for !TARGET_INTER_UNIT_MOVES_TO_VEC targets.
28736 * config/i386/constraints.md (Yi, Ym): Depend on
28737 TARGET_INTER_UNIT_MOVES_TO_VEC.
28738 (Yj, Yn): New constraints.
28739 * config/i386/i386.md (*movdi_internal): Change constraints of
28740 operand 1 from Yi to Yj and from Ym to Yn.
28741 (*movsi_internal): Ditto.
28742 (*movdf_internal): Ditto.
28743 (*movsf_internal): Ditto.
28744 (*float<SWI48x:mode><X87MODEF:mode>2_1): Use
28745 TARGET_INTER_UNIT_MOVES_TO_VEC instead of TARGET_INTER_UNIT_MOVES.
28746 (*float<SWI48x:mode><X87MODEF:mode>2_1 splitters): Ditto.
28747 (floatdi<X87MODEF:mode>2_i387_with_xmm): Ditto.
28748 (floatdi<X87MODEF:mode>2_i387_with_xmm splitters): Ditto.
28749 * config/i386/sse.md (movdi_to_sse): Ditto.
28750 (sse2_stored): Change constraint of operand 1 from Yi to Yj.
28751 Use TARGET_INTER_UNIT_MOVES_FROM_VEC instead of
28752 TARGET_INTER_UNIT_MOVES.
28753 (sse_storeq_rex64): Change constraint of operand 1 from Yi to Yj.
28754 (sse_storeq_rex64 splitter): Use TARGET_INTER_UNIT_MOVES_FROM_VEC
28755 instead of TARGET_INTER_UNIT_MOVES.
28756 * config/i386/mmx.md (*mov<mode>_internal): Change constraint of
28757 operand 1 from Yi to Yj and from Ym to Yn.
28759 2013-04-29 James Greenhalgh <james.greenhalgh@arm.com>
28761 * config/aarch64/aarch64-simd-builtins.def (vec_unpacks_hi_): New.
28762 (float_truncate_hi_): Likewise.
28763 (float_extend_lo_): Likewise.
28764 (float_truncate_lo_): Likewise.
28765 * config/aarch64/aarch64-simd.md (vec_unpacks_lo_v4sf): New.
28766 (aarch64_float_extend_lo_v2df): Likewise.
28767 (vec_unpacks_hi_v4sf): Likewise.
28768 (aarch64_float_truncate_lo_v2sf): Likewise.
28769 (aarch64_float_truncate_hi_v4sf): Likewise.
28770 (vec_pack_trunc_v2df): Likewise.
28771 (vec_pack_trunc_df): Likewise.
28773 2013-04-29 James Greenhalgh <james.greenhalgh@arm.com>
28775 * config/aarch64/aarch64-builtins.c
28776 (aarch64_fold_builtin): Fold float conversions.
28777 * config/aarch64/aarch64-simd-builtins.def
28778 (floatv2si, floatv4si, floatv2di): New.
28779 (floatunsv2si, floatunsv4si, floatunsv2di): Likewise.
28780 * config/aarch64/aarch64-simd.md
28781 (<optab><fcvt_target><VDQF:mode>2): New, expands to float and floatuns.
28782 * config/aarch64/iterators.md (FLOATUORS): New.
28783 (optab): Add float, floatuns.
28784 (su_optab): Likewise.
28786 2013-04-29 James Greenhalgh <james.greenhalgh@arm.com>
28788 * config/aarch64/aarch64-builtins.c
28789 (aarch64_builtin_vectorized_function): Use new names for
28791 * config/aarch64/aarch64-simd-builtins.def (fcvtzs): Split as...
28792 (lbtruncv2sf, lbtruncv4sf, lbtruncv2df): ...This.
28793 (fcvtzu): Split as...
28794 (lbtruncuv2sf, lbtruncuv4sf, lbtruncuv2df): ...This.
28795 (fcvtas): Split as...
28796 (lroundv2sf, lroundv4sf, lroundv2df, lroundsf, lrounddf): ...This.
28797 (fcvtau): Split as...
28798 (lrounduv2sf, lrounduv4sf, lrounduv2df, lroundusf, lroundudf): ...This.
28799 (fcvtps): Split as...
28800 (lceilv2sf, lceilv4sf, lceilv2df): ...This.
28801 (fcvtpu): Split as...
28802 (lceiluv2sf, lceiluv4sf, lceiluv2df, lceilusf, lceiludf): ...This.
28803 (fcvtms): Split as...
28804 (lfloorv2sf, lfloorv4sf, lfloorv2df): ...This.
28805 (fcvtmu): Split as...
28806 (lflooruv2sf, lflooruv4sf, lflooruv2df, lfloorusf, lfloorudf): ...This.
28807 (lfrintnv2sf, lfrintnv4sf, lfrintnv2df, lfrintnsf, lfrintndf): New.
28808 (lfrintnuv2sf, lfrintnuv4sf, lfrintnuv2df): Likewise.
28809 (lfrintnusf, lfrintnudf): Likewise.
28810 * config/aarch64/aarch64-simd.md
28811 (l<fcvt_pattern><su_optab><fcvt_target><VDQF:mode>2): Convert to
28813 (aarch64_fcvt<frint_suffix><su><mode>): Remove.
28814 * config/aarch64/iterators.md (FCVT): Include UNSPEC_FRINTN.
28815 (fcvt_pattern): Likewise.
28817 2013-04-29 James Greenhalgh <james.greenhalgh@arm.com>
28819 * config/aarch64/aarch64-simd.md
28820 (l<fcvt_pattern><su_optab><fcvt_target><VDQF:mode>2): Rename to...
28821 (l<fcvt_pattern><su_optab><VDQF:mode><fcvt_target>2): ... This.
28823 2013-04-29 James Greenhalgh <james.greenhalgh@arm.com>
28825 * config/aarch64/arm_neon.h (vrndq<a,m,n,p>_f<32, 64>): Rename to...
28826 (vrnd<a,m,n,p>q_f<32, 64>): ...This, implement using builtin.
28827 (vrnd<a,m,n,p>_f32): Implement using builtins.
28828 (vrnd<i,x><q>_f<32, 64>): New.
28830 2013-04-29 James Greenhalgh <james.greenhalgh@arm.com>
28832 * config/aarch64/aarch64-builtins.c
28833 (aarch64_builtin_vectorized_function): Fold to standard pattern names.
28834 * config/aarch64/aarch64-simd-builtins.def (frintn): New.
28835 (frintz): Rename to...
28837 (frintp): Rename to...
28839 (frintm): Rename to...
28841 (frinti): Rename to...
28842 (nearbyint): ...this.
28843 (frintx): Rename to...
28845 (frinta): Rename to...
28847 * config/aarch64/aarch64-simd.md
28848 (aarch64_frint<frint_suffix><mode>): Delete.
28849 (<frint_pattern><mode>2): Convert to insn.
28850 * config/aarch64/aarch64.md (unspec): Add UNSPEC_FRINTN.
28851 * config/aarch64/iterators.md (FRINT): Add UNSPEC_FRINTN.
28852 (frint_pattern): Likewise.
28853 (frint_suffix): Likewise.
28855 2013-04-29 Richard Biener <rguenther@suse.de>
28857 PR tree-optimization/57081
28858 * loop-init.c: Include tree-flow.h.
28859 (loop_optimizer_finalize): Free number of iteration estimates.
28860 * Makefile.in (loop-init.o): Add $(TREE_FLOW_H) dependency.
28862 2013-04-29 Jakub Jelinek <jakub@redhat.com>
28864 PR tree-optimization/57083
28865 * tree-vrp.c (extract_range_from_binary_expr_1): For LSHIFT_EXPR with
28866 non-singleton shift count range, zero extend low_bound for uns case.
28868 * config/i386/predicates.md (general_vector_operand): New predicate.
28869 * config/i386/i386.c (const_vector_equal_evenodd_p): New function.
28870 (ix86_expand_mul_widen_evenodd): Force op1 resp. op2 into register
28871 if they aren't nonimmediate operands. If their original values
28872 satisfy const_vector_equal_evenodd_p, don't shift them.
28873 * config/i386/sse.md (mul<mode>3): Use general_vector_operand
28874 predicates. For the SSE4.1 case force operands[{1,2}] into registers
28875 if not nonimmediate_operand.
28876 (vec_widen_smult_even_v4si): Use nonimmediate_operand predicates
28877 instead of register_operand.
28878 (vec_widen_<s>mult_odd_<mode>): Use general_vector_operand predicates.
28880 2013-04-28 Eric Botcazou <ebotcazou@adacore.com>
28882 * stor-layout.c (finalize_size_functions): Allocate a structure and
28883 reset cfun before dumping the functions.
28885 2013-04-27 Jakub Jelinek <jakub@redhat.com>
28887 * config/i386/i386.c (ix86_expand_call): Make cregs_size unsigned.
28890 * config/i386/i386.c (ix86_expand_mul_widen_evenodd): Don't
28891 use xop_pmacsdqh if uns_p.
28892 * config/i386/sse.md (xop_rotr<mode>3): Fix up computation of
28893 the immediate rotate count.
28895 2013-04-26 Vladimir Makarov <vmakarov@redhat.com>
28897 * rtl.h (struct rtx_def): Add comment for field jump.
28898 (LRA_SUBREG_P): New macro.
28899 * recog.c (register_operand): Check LRA_SUBREG_P.
28900 * lra.c (lra): Add note at the end of RTL code. Align non-empty
28902 * lra-spills.c (lra_spill): Align stack after spilling pseudos.
28903 (lra_final_code_change): Skip subreg change for operators.
28904 * lra-eliminations.c (eliminate_regs_in_insn): Make return earlier
28905 if there are no operand changes.
28906 * lra-constraints.c (curr_insn_set): New.
28907 (match_reload): Set LRA_SUBREG_P.
28908 (emit_spill_move): Ditto.
28909 (check_and_process_move): Use curr_insn_set. Process only single
28910 set insns. Don't initialize sec_mem_p and change_p.
28911 (simplify_operand_subreg): Use LRA_SUBREG_P.
28912 (reg_in_class_p): New function.
28913 (process_alt_operands): Use it. Use #if HAVE_ATTR_enabled instead
28914 of #ifdef. Add code to remove cycling.
28915 (process_address): Check EXTRA_CONSTRAINT_STR. Process even if
28916 non-null disp. Reload inner instead of disp when base and index
28917 are null. Try to put lo_sum into register.
28918 (EBB_PROBABILITY_CUTOFF): Redefine probability in percents.
28919 (check_and_process_move): Move code for move cost check to
28920 simple_move_p. Remove equiv_substitution.
28921 (simple_move_p): New function.
28922 (curr_insn_transform): Initialize sec_mem_p and change_p. Set up
28923 curr_insn_set. Call check_and_process_move only for single set
28924 insns. Use the new function. Move call of check_and_process_move
28925 after operand equiv substitution and address process.
28927 2013-04-26 Jakub Jelinek <jakub@redhat.com>
28930 * tree-ssa-uninit.c (compute_uninit_opnds_pos): In functions
28931 with nonlocal goto receivers or returns twice calls, ignore
28932 unininitialized values from abnormal edges to nl goto receiver
28933 or returns twice call.
28935 2013-04-26 Jakub Jelinek <jakub@redhat.com>
28937 PR tree-optimization/57051
28938 * fold-const.c (const_binop): Handle VEC_LSHIFT_EXPR
28939 and VEC_RSHIFT_EXPR if shift count is a multiple of element
28942 2013-04-26 Richard Biener <rguenther@suse.de>
28944 * omp-low.c (finalize_task_copyfn): Do not drop PROP_loops.
28945 (expand_omp_taskreg): Likewise. Mark loops for fixup.
28946 * tree-cfg.c (move_block_to_fn): Remap loop fathers.
28947 (fixup_loop_arrays_after_move): New function.
28948 (move_sese_region_to_fn): Properly outline the loop tree parts
28949 of the SESE region.
28951 2013-04-26 Uros Bizjak <ubizjak@gmail.com>
28953 * config/i386/i386.md (type, unit): Fix long lines.
28955 2013-04-26 Richard Biener <rguenther@suse.de>
28957 * Makefile.in (lto-streamer-in.o): Add $(CFGLOOP_H) dependency.
28958 (lto-streamer-out.o): Likewise.
28959 * cfgloop.c (init_loops_structure): Export, add struct function
28960 argument and adjust.
28961 (flow_loops_find): Adjust.
28962 * cfgloop.h (enum loop_estimation): Add EST_LAST.
28963 (init_loops_structure): Declare.
28964 * lto-streamer-in.c: Include cfgloop.h.
28965 (input_cfg): Input the loop tree.
28966 * lto-streamer-out.c: Include cfgloop.h.
28967 (output_cfg): Output the loop tree.
28968 (output_struct_function_base): Do not drop PROP_loops.
28970 2013-03-26 Richard Biener <rguenther@suse.de>
28972 * tree-cfg.c (execute_build_cfg): Build the loop tree.
28973 (pass_build_cfg): Provide PROP_loops.
28974 (move_sese_region_to_fn): Remove loops that are outlined into fn
28976 * tree-inline.c: Include cfgloop.h.
28977 (initialize_cfun): Do not drop PROP_loops.
28978 (copy_loops): New function.
28979 (copy_cfg_body): Copy loop structure.
28980 (tree_function_versioning): Initialize destination loop tree.
28981 * tree-ssa-loop.c (pass_tree_loop_init): Do not provide PROP_loops.
28982 (pass_parallelize_loops): Do IL verification.
28983 * loop-init.c (loop_optimizer_init): Fixup loops if required.
28984 * tree-optimize.c (execute_fixup_cfg): If we need to cleanup
28985 the CFG make sure we fixup loops as well.
28986 * tree-ssa-tail-merge.c: Include cfgloop.h.
28987 (replace_block_by): When merging loop latches mark loops for fixup.
28988 * lto-streamer-out.c (output_struct_function_base): Drop
28989 PROP_loops for now.
28990 * tree-ssa-phiopt.c: Include tree-scalar-evolution.h.
28991 (tree_ssa_cs_elim): Initialize the loop optimizer and SCEV.
28992 * ipa-split.c: Include cfgloop.h.
28993 (split_function): Add the new return block to the loop tree root.
28994 * tree-cfgcleanup.c (remove_forwarder_block_with_phi): Return
28995 whether we have removed the forwarder block.
28996 (merge_phi_nodes): If we removed a forwarder mark loops for fixup.
28997 * cfgloop.h (place_new_loop): Declare.
28998 * cfgloopmanip.c (place_new_loop): Export.
28999 * Makefile.in (asan.o): Add $(CFGLOOP_H) dependency.
29000 (tree-switch-conversion.o): Likewise.
29001 (tree-complex.o): Likewise.
29002 (tree-inline.o): Likewise.
29003 (tree-ssa-tailmerge.o): Likewise.
29004 (ipa-split.o): Likewise.
29005 (tree-ssa-phiopt.o): Add $(SCEV_H) dependency.
29006 (tree-ssa-copy.o): Likewise.
29007 * tree-switch-conversion.c: Include cfgloop.h
29008 (process_switch): If we emit a bit-test cascade, schedule loops
29010 * tree-complex.c: Include cfgloop.h.
29011 (expand_complex_div_wide): Properly add new basic-blocks to loops.
29012 * asan.c: Include cfgloop.h.
29013 (create_cond_insert_point): Properly add new basic-blocks to
29014 loops, schedule loop fixup.
29015 * cfgloop.c (verify_loop_structure): Check that looks are not
29017 * omp-low.c (expand_parallel_call): Properly add new basic-blocks
29019 (expand_omp_for_generic): Likewise.
29020 (expand_omp_sections): Likewise.
29021 (expand_omp_atomic_pipeline): Schedule loops for fixup.
29022 * tree-ssa-copy.c: Include tree-scalar-evolution.h.
29023 (fini_copy_prop): Disable DCE in substitute_and_fold if SCEV
29024 is initialized, not when loops are present.
29025 * tree-parloops.c (parallelize_loops): Remove checking here.
29026 * passes.c (init_optimization_passes): Schedule a copy-propagation
29027 pass before complete unrolling of inner loops.
29029 2013-04-26 Jakub Jelinek <jakub@redhat.com>
29031 * Makefile.in (toplev.o): Depend on diagnostic-color.h.
29032 * diagnostic-color.c (should_colorize): Remove _WIN32 version.
29033 (colorize_init): Add argument to _WIN32 version.
29034 * toplev.c: Include diagnostic-color.h.
29035 (process_options): Default to -fdiagnostics-color=auto if
29036 GCC_COLORS env var is in the environment.
29037 * common.opt (fdiagnostics-color=): Add Var and Init.
29038 * doc/invoke.texi (-fdiagnostics-color=): Document that if GCC_COLORS
29039 env var is in the environment, the default is auto rather than never.
29041 * diagnostic.h (file_name_as_prefix): Add context argument.
29042 * diagnostic.c (file_name_as_prefix): Likewise. Colorize
29043 the string as locus.
29044 * langhooks.c (lhd_print_error_function): Adjust caller.
29046 2013-04-25 Lawrence Crowl <crowl@google.com>
29048 * var-tracking.c (shared_hash_def::htab):
29049 Change type to hash_table. Update dependent calls and types.
29051 2013-04-25 Lawrence Crowl <crowl@google.com>
29053 * Makefile.in: Update as needed below.
29055 * alloc-pool.c (static hash_table <alloc_pool_hasher> alloc_pool_hash):
29056 Move declaration to after the type's method definitons.
29058 * attribs.c (htab_t scoped_attributes::attribute_hash):
29059 Change type to hash_table. Update dependent calls and types.
29061 * bitmap.c (htab_t bitmap_desc_hash):
29062 Change type to hash_table. Update dependent calls and types.
29064 * cselib.c (htab_t cselib_hash_table):
29065 Change type to hash_table. Update dependent calls and types.
29067 * data-streamer.h (struct string_slot): Move to lto-streamer.h.
29068 (hash_string_slot_node): Move implementation into lto-streamer.h
29069 struct string_slot_hasher.
29070 (eq_string_slot_node): Likewise.
29072 * data-streamer-out.c: Update output_block::string_hash_table
29073 dependent calls and types.
29075 * dwarf2cfi.c (htab_t trace_index):
29076 Change type to hash_table. Update dependent calls and types.
29078 * dwarf2out.c (htab_t break_out_includes::cu_hash_table):
29079 Change type to hash_table. Update dependent calls and types.
29080 (htab_t copy_decls_for_unworthy_types::decl_table): Likewise.
29081 (htab_t optimize_external_refs::map): Likewise.
29082 (htab_t output_comp_unit::extern_map): Likewise.
29083 (htab_t output_comdat_type_unit::extern_map): Likewise.
29084 (htab_t output_macinfo::macinfo_htab): Likewise.
29085 (htab_t optimize_location_lists::htab): Likewise.
29086 (htab_t dwarf2out_finish::comdat_type_table): Likewise.
29088 * except.c (htab_t ehspec_hash_type):
29089 Change type to hash_table. Update dependent calls and types.
29090 (assign_filter_values::ttypes): Likewise.
29091 (assign_filter_values::ehspec): Likewise.
29092 (sjlj_assign_call_site_values::ar_hash): Likewise.
29093 (convert_to_eh_region_ranges::ar_hash): Likewise.
29095 * gcse.c (htab_t pre_ldst_table):
29096 Change type to hash_table. Update dependent calls and types.
29098 * ggc-common.c (htab_t saving_htab):
29099 Change type to hash_table. Update dependent calls and types.
29100 (htab_t loc_hash): Likewise.
29101 (htab_t ptr_hash): Likewise.
29102 (call_count): Rename ggc_call_count.
29103 (call_alloc): Rename ggc_call_alloc.
29104 (loc_descriptor): Rename make_loc_descriptor.
29105 (add_statistics): Rename ggc_add_statistics.
29107 * ggc-common.c (saving_htab):
29108 Change type to hash_table. Update dependent calls and types.
29110 * gimple.h (struct gimplify_ctx): Move to gimplify-ctx.h.
29111 (push_gimplify_context): Likewise.
29112 (pop_gimplify_context): Likewise.
29113 (struct gimple_temp_hash_elt): Added.
29114 (struct gimplify_hasher): Likewise.
29115 (struct gimplify_ctx.temp_htab):
29116 Change type to hash_table. Update dependent calls and types.
29118 * gimple-fold.c: Include gimplify-ctx.h.
29120 * gimple-ssa-strength-reduction.c (htab_t base_cand_map):
29121 Change type to hash_table. Update dependent calls and types.
29122 (base_cand_dump_callback): Rename to ssa_base_cand_dump_callback to
29123 avoid potential global name collision.
29125 * gimplify.c: Include gimplify-ctx.h.
29126 (struct gimple_temp_hash_elt): Move to gimplify-ctx.h.
29127 (htab_t gimplify_ctx::temp_htab):
29128 Update dependent calls and types for new type hash_table.
29129 (gimple_tree_hash): Move into gimplify_hasher in gimplify-ctx.h.
29130 (gimple_tree_eq): Move into gimplify_hasher in gimplify-ctx.h.
29132 * gimplify-ctx.h: New.
29133 (struct gimple_temp_hash_elt): Move from gimplify.c.
29134 (class gimplify_hasher): New.
29135 (struct gimplify_ctx): Move from gimple.h.
29136 (htab_t gimplify_ctx::temp_htab):
29137 Change type to hash_table. Update dependent calls and types.
29139 * graphite-clast-to-gimple.c: Include graphite-htab.h.
29140 (htab_t ivs_params::newivs_index):
29141 Change type to hash_table. Update dependent calls and types.
29142 (htab_t ivs_params::params_index): Likewise.
29143 (htab_t print_generated_program::params_index): Likewise.
29144 (htab_t gloog::newivs_index): Likewise.
29145 (htab_t gloog::params_index): Likewise.
29147 * graphite.c: Include graphite-htab.h.
29148 4htab_t graphite_transform_loops::bb_pbb_mapping):
29149 Change type to hash_table. Update dependent calls and types.
29151 * graphite-clast-to-gimple.h: (extern gloog) Move to graphite-htab.h.
29152 (bb_pbb_map_hash): Fold into bb_pbb_htab_type in graphite-htab.h.
29153 (eq_bb_pbb_map): Fold into bb_pbb_htab_type in graphite-htab.h.
29155 * graphite-dependences.c: Include graphite-htab.h.
29156 (loop_is_parallel_p): Change hash table type of parameter.
29158 * graphite-htab.h: New.
29159 (typedef hash_table <bb_pbb_hasher> bb_pbb_htab_type): New.
29160 (extern find_pbb_via_hash): Move from graphite-poly.h.
29161 (extern loop_is_parallel_p): Move from graphite-poly.h.
29162 (extern get_loop_body_pbbs): Move from graphite-poly.h.
29164 * graphite-poly.h (extern find_pbb_via_hash): Move to graphite-htab.h.
29165 (extern loop_is_parallel_p): Move to graphite-htab.h.
29166 (extern get_loop_body_pbbs): Move to graphite-htab.h.
29168 * haifa-sched.c (htab_t delay_htab):
29169 Change type to hash_table. Update dependent calls and types.
29170 (htab_t delay_htab_i2): Likewise.
29172 * ira-color.c (htab_t allocno_hard_regs_htab):
29173 Change type to hash_table. Update dependent calls and types.
29175 * ira-costs.c (htab_t cost_classes_htab):
29176 Change type to hash_table. Update dependent calls and types.
29178 * loop-invariant.c (htab_t merge_identical_invariants::eq):
29179 Change type to hash_table. Update dependent calls and types.
29181 * loop-iv.c (htab_t bivs):
29182 Change type to hash_table. Update dependent calls and types.
29184 * loop-unroll.c (htab_t opt_info::insns_to_split):
29185 Change type to hash_table. Update dependent calls and types.
29186 (htab_t opt_info::insns_with_var_to_expand): Likewise.
29188 * lto-streamer.h (struct string_slot): Move from data-streamer.h
29189 (struct string_slot_hasher): New.
29190 (htab_t output_block::string_hash_table):
29191 Change type to hash_table. Update dependent calls and types.
29193 * lto-streamer-in.c (freeing_string_slot_hasher): New.
29194 (htab_t file_name_hash_table):
29195 Change type to hash_table. Update dependent calls and types.
29197 * lto-streamer-out.c: Update output_block::string_hash_table dependent
29200 * lto-streamer.c (htab_t tree_htab):
29201 Change type to hash_table. Update dependent calls and types.
29203 * omp-low.c: Include gimplify-ctx.h.
29205 * passes.c (htab_t name_to_pass_map):
29206 Change type to hash_table. Update dependent calls and types.
29207 (pass_traverse): Rename to passes_pass_traverse.
29209 * plugin.c (htab_t event_tab):
29210 Change type to hash_table. Update dependent calls and types.
29212 * postreload-gcse.c (htab_t expr_table):
29213 Change type to hash_table. Update dependent calls and types.
29214 (dump_hash_table_entry): Rename dump_expr_hash_table_entry.
29216 * sese.c (debug_rename_map_1): Make extern.
29217 (htab_t copy_bb_and_scalar_dependences::rename_map):
29218 Change type to hash_table. Update dependent calls and types.
29220 * sese.h (extern debug_rename_map): Move to .c file.
29222 * store-motion.c (htab_t store_motion_mems_table):
29223 Change type to hash_table. Update dependent calls and types.
29225 * trans-mem.c (htab_t tm_new_mem_hash):
29226 Change type to hash_table. Update dependent calls and types.
29228 * tree-browser.c (htab_t TB_up_ht):
29229 Change type to hash_table. Update dependent calls and types.
29231 * tree-cfg.c (htab_t discriminator_per_locus):
29232 Change type to hash_table. Update dependent calls and types.
29234 * tree-complex.c: Include tree-hasher.h
29235 (htab_t complex_variable_components):
29236 Change type to hash_table. Update dependent calls and types.
29238 * tree-eh.c (htab_t finally_tree):
29239 Change type to hash_table. Update dependent calls and types.
29241 * tree-flow.h (extern int_tree_map_hash): Moved into tree-hasher
29242 struct int_tree_hasher.
29243 (extern int_tree_map_eq): Likewise.
29244 (uid_decl_map_hash): Removed.
29245 (extern decl_tree_map_eq): Likewise.
29247 * tree-hasher.h: New.
29248 (struct int_tree_hasher): New.
29249 (typedef int_tree_htab_type): New.
29251 * tree-inline.c: Include gimplify-ctx.h.
29253 * tree-mudflap.c: Include gimplify-ctx.h.
29255 * tree-parloops.c: Include tree-hasher.h.
29256 (htab_t eliminate_local_variables_stmt::decl_address):
29257 Change type to hash_table. Update dependent calls and types.
29258 (htab_t separate_decls_in_region::decl_copies): Likewise.
29260 * tree-scalar-evolution.c (htab_t resolve_mixers::cache):
29261 Change type to hash_table. Update dependent calls and types.
29263 * tree-sra.c (candidates):
29264 Change type to hash_table. Update dependent calls and types.
29266 * tree-ssa.c (int_tree_map_eq): Moved into struct int_tree_hasher
29268 (int_tree_map_hash): Likewise.
29270 * tree-ssa-dom.c (htab_t avail_exprs):
29271 Change type to hash_table. Update dependent calls and types.
29273 * tree-ssa-live.c (var_map_base_init::tree_to_index):
29274 Change type to hash_table. Update dependent calls and types.
29276 * tree-ssa-loop-ivopts.c (struct ivopts_data.inv_expr_tab):
29277 Change type to hash_table. Update dependent calls and types.
29279 * tree-ssa-phiopt.c (seen_ssa_names):
29280 Change type to hash_table. Update dependent calls and types.
29282 * tree-ssa-strlen.c (decl_to_stridxlist_htab):
29283 Change type to hash_table. Update dependent calls and types.
29285 * tree-ssa-uncprop.c (equiv):
29286 Change type to hash_table. Update dependent calls and types.
29288 2013-04-25 Jakub Jelinek <jakub@redhat.com>
29290 PR rtl-optimization/57003
29291 * regcprop.c (copyprop_hardreg_forward_1): If ksvd.ignore_set_reg,
29292 call note_stores with kill_clobbered_value callback again after
29293 killing regs_invalidated_by_call.
29295 2013-04-25 James Greenhalgh <james.greenhalgh@arm.com>
29297 * config/aarch64/aarch64-simd.md
29298 (aarch64_simd_bsl<mode>_internal): Rewrite RTL to not use UNSPEC_BSL.
29299 (aarch64_simd_bsl<mode>): Likewise.
29300 * config/aarch64/iterators.md (unspec): Remove UNSPEC_BSL.
29302 2013-04-25 Marek Polacek <polacek@redhat.com>
29304 PR tree-optimization/57066
29305 * builtins.c (fold_builtin_logb): Return +Inf for -Inf.
29307 2013-04-25 James Greenhalgh <james.greenhalgh@arm.com>
29309 * config/aarch64/aarch64-simd.md (neg<mode>2): Use VDQ iterator.
29311 2013-04-25 James Greenhalgh <james.greenhalgh@arm.com>
29313 * config/aarch64/aarch64-builtins.c
29314 (aarch64_fold_builtin): New.
29315 * config/aarch64/aarch64-protos.h (aarch64_fold_builtin): New.
29316 * config/aarch64/aarch64.c (TARGET_FOLD_BUILTIN): Define.
29317 * config/aarch64/aarch64-simd-builtins.def (abs): New.
29318 * config/aarch64/arm_neon.h
29319 (vabs<q>_<f32, 64>): Implement using __builtin_aarch64_fabs.
29321 2013-04-25 James Greenhalgh <james.greenhalgh@arm.com>
29322 Tejas Belagod <tejas.belagod@arm.com>
29324 * config/aarch64/aarch64-builtins.c
29325 (aarch64_gimple_fold_builtin): New.
29326 * config/aarch64/aarch64-protos.h (aarch64_gimple_fold_builtin): New.
29327 * config/aarch64/aarch64-simd-builtins.def (addv): New.
29328 * config/aarch64/aarch64-simd.md (addpv4sf): New.
29329 (addvv4sf): Update.
29330 * config/aarch64/aarch64.c (TARGET_GIMPLE_FOLD_BUILTIN): Define.
29332 2013-04-25 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
29334 * config/aarch64/aarch64.md
29335 (*cmp_swp_<optab><ALLX:mode>_shft_<GPI:mode>): New pattern.
29337 2013-04-25 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
29339 * config/aarch64/aarch64.md (*ngc<mode>): New pattern.
29340 (*ngcsi_uxtw): New pattern.
29342 2013-04-25 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
29343 Julian Brown <julian@codesourcery.com>
29345 * config/arm/arm.c (neon_builtin_type_mode): Add T_V4HF.
29346 (TB_DREG): Add T_V4HF.
29347 (v4hf_UP): New macro.
29348 (neon_itype): Add NEON_FLOAT_WIDEN, NEON_FLOAT_NARROW.
29349 (arm_init_neon_builtins): Handle NEON_FLOAT_WIDEN, NEON_FLOAT_NARROW.
29350 Handle initialisation of V4HF. Adjust initialisation of reinterpret
29352 (arm_expand_neon_builtin): Handle NEON_FLOAT_WIDEN, NEON_FLOAT_NARROW.
29353 (arm_vector_mode_supported_p): Handle V4HF.
29354 (arm_mangle_map): Handle V4HFmode.
29355 * config/arm/arm.h (VALID_NEON_DREG_MODE): Add V4HF.
29356 * config/arm/arm_neon_builtins.def: Add entries for
29357 vcvtv4hfv4sf, vcvtv4sfv4hf.
29358 * config/arm/neon.md (neon_vcvtv4sfv4hf): New pattern.
29359 (neon_vcvtv4hfv4sf): Likewise.
29360 * config/arm/neon-gen.ml: Handle half-precision floating point
29362 * config/arm/neon-testgen.ml: Handle Requires_FP_bit feature.
29363 * config/arm/arm_neon.h: Regenerate.
29364 * config/arm/neon.ml (type elts): Add F16.
29365 (type vectype): Add T_float16x4, T_floatHF.
29366 (type vecmode): Add V4HF.
29367 (type features): Add Requires_FP_bit feature.
29368 (elt_width): Handle F16.
29369 (elt_class): Likewise.
29370 (elt_of_class_width): Likewise.
29371 (mode_of_elt): Refactor.
29372 (type_for_elt): Handle F16, fix error messages.
29373 (vectype_size): Handle T_float16x4.
29374 (vcvt_sh): New function.
29375 (ops): Add entries for vcvt_f16_f32, vcvt_f32_f16.
29376 (string_of_vectype): Handle T_floatHF, T_float16, T_float16x4.
29377 (string_of_mode): Handle V4HF.
29378 * doc/arm-neon-intrinsics.texi: Regenerate.
29380 2013-04-25 James Greenhalgh <james.greenhalgh@arm.com>
29382 * config/aarch64/aarch64.c (aarch64_print_operand): Fix asm_fprintf
29383 format specifier in 'X' case.
29385 2013-04-25 Alan Modra <amodra@gmail.com>
29388 * config/rs6000/rs6000.md (rotlsi3_internal7): Rename to
29389 rotlsi3_internal7le and condition on !BYTES_BIG_ENDIAN.
29390 (rotlsi3_internal8be): New BYTES_BIG_ENDIAN insn.
29391 Repeat for many other rotate/shift and mask patterns using subregs.
29392 Name lshiftrt insns.
29393 (ashrdisi3_noppc64): Rename to ashrdisi3_noppc64be and condition
29394 on WORDS_BIG_ENDIAN.
29396 2013-04-25 Alan Modra <amodra@gmail.com>
29398 * config.gcc: Support little-endian powerpc-linux targets.
29399 * config/rs6000/linux.h (LINK_OS_LINUX_EMUL): Define.
29400 (LINK_OS_LINUX_SPEC): Define.
29401 * config/rs6000/linuxspe.h (TARGET_DEFAULT):
29402 Preserve MASK_LITTLE_ENDIAN.
29403 * config/rs6000/default64.h (TARGET_DEFAULT): Likewise.
29404 * config/rs6000/linuxaltivec.h (TARGET_DEFAULT): Likewise.
29405 * config/rs6000/linux64.h (OPTION_LITTLE_ENDIAN): Don't zero.
29406 (LINK_OS_LINUX_EMUL32, LINK_OS_LINUX_EMUL64): Define.
29407 (LINK_OS_LINUX_SPEC32, LINK_OS_LINUX_SPEC64): Use above.
29408 * config/rs6000/rs6000.c (output_toc): Don't use .tc for TARGET_ELF.
29409 Correct fp word order for little-endian. Don't shift toc entries
29410 smaller than a word for little-endian.
29411 * config/rs6000/rs6000.md (bswaphi2, bswapsi2 split): Comment.
29412 (bswapdi2 splits): Correct low-part subreg for little-endian.
29413 Remove wrong BYTES_BIG_ENDIAN tests, and rename vars to remove
29414 low/high where such is correct only for be.
29415 * config/rs6000/sysv4.h (SUBTARGET_OVERRIDE_OPTIONS): Allow
29416 little-endian for -mcall-aixdesc.
29418 2013-04-25 Alan Modra <amodra@gmail.com>
29420 * config/rs6000/rs6000.c (rs6000_secondary_reload_inner): Use
29421 replace_equiv_address_nv.
29423 2013-04-25 Alan Modra <amodra@gmail.com>
29425 * config/rs6000/rs6000.c (rs6000_emit_set_long_const): Tidy.
29427 2013-04-24 Vladimir Makarov <vmakarov@redhat.com>
29430 2013-04-24 Vladimir Makarov <vmakarov@redhat.com>
29431 * rtl.h (struct rtx_def): ...
29433 2013-04-24 Vladimir Makarov <vmakarov@redhat.com>
29435 PR rtl-optimizations/57046
29436 * lra-constraints (split_reg): Set up lra_risky_transformations_p
29437 for multi-reg splits.
29439 2013-04-24 H.J. Lu <hongjiu.lu@intel.com>
29441 * config/i386/x86-64.h (ASM_SPEC): Support -mx32.
29443 2013-04-24 Sterling Augustine <saugustine@google.com>
29445 * dwarf2out.c (skeleton_debug_str_hash, add_skeleton_AT_string)
29446 (comp_dir_string, debug_str_dwo_section): New.
29447 (DEBUG_STR_DWO_SECTION): Rename to ...
29448 (DEBUG_DWO_STR_SECTION): ... this.
29449 (DEBUG_NORM_STR_SECTION): Delete.
29450 (DEBUG_STR_SECTION, DEBUG_STR_SECTION_FLAGS): Edit definitions.
29451 (DEBUG_STR_DWO_SECTION_FLAGS): New.
29452 (find_AT_string): Move most logic to ...
29453 (find_AT_string_in_table): ... here. New.
29454 (add_top_level_skeleton_die_attrs): Call comp_dir_string and
29455 add_skeleton_AT_string. Delete logic.
29456 (output_skeleton_debug_sections): Remove call to
29457 add_top_level_skeleton_die_attrs.
29458 (add_comp_dir_attribute): Move logic to comp_dir_string.
29459 (dwarf2out_init): Initialize debug_str_dwo_section.
29460 (output_indirect_string): Call find_string_form.
29461 (output_indirect_strings): Rewrite.
29462 (prune_unused_types): Empty skeleton_debug_str_hash.
29463 Call get_skeleton_type_unit and add_top_level_skeleton_die_attrs.
29464 (dwarf2out_finish): Call output_indirect_strings.
29466 2013-04-24 Paolo Carlini <paolo.carlini@oracle.com>
29468 * doc/cpp.texi: Remove __GXX_EXPERIMENTAL_CXX1Y__.
29470 2013-04-24 Vladimir Makarov <vmakarov@redhat.com>
29472 * rtl.h (struct rtx_def): Add comment for field jump.
29473 (LRA_SUBREG_P): New macro.
29474 * recog.c (register_operand): Check LRA_SUBREG_P.
29475 * lra.c (lra): Add note at the end of RTL code. Align non-empty
29477 * lra-spills.c (lra_spill): Align stack after spilling pseudos.
29478 (lra_final_code_change): Skip subreg change for operators.
29479 * lra-eliminations.c (eliminate_regs_in_insn): Make return earlier
29480 if there are no operand changes.
29481 * lra-constraints.c (curr_insn_set): New.
29482 (match_reload): Set LRA_SUBREG_P.
29483 (emit_spill_move): Ditto.
29484 (check_and_process_move): Use curr_insn_set. Process only single
29485 set insns. Don't initialize sec_mem_p and change_p.
29486 (simplify_operand_subreg): Use LRA_SUBREG_P.
29487 (reg_in_class_p): New function.
29488 (process_alt_operands): Use it. Use #if HAVE_ATTR_enabled instead
29489 of #ifdef. Add code to remove cycling.
29490 (process_address): Check EXTRA_CONSTRAINT_STR. Process even if
29491 non-null disp. Reload inner instead of disp when base and index
29492 are null. Try to put lo_sum into register.
29493 (EBB_PROBABILITY_CUTOFF): Redefine probability in percents.
29494 (check_and_process_move): Move code for move cost check to
29495 simple_move_p. Remove equiv_substitution.
29496 (simple_move_p): New function.
29497 (curr_insn_transform): Initialize sec_mem_p and change_p. Set up
29498 curr_insn_set. Call check_and_process_move only for single set
29499 insns. Use the new function. Move call of check_and_process_move
29500 after operand equiv substitution and address process.
29502 2013-04-24 James Greenhalgh <james.greenhalgh@arm.com>
29504 * config/aarch64/arm_neon.h (vld1<q>_lane*): Fix constraints.
29505 (vld1<q>_dup_<sufp><8, 16, 32, 64>): Likewise.
29506 (vld1<q>_<sufp><8, 16, 32, 64>): Likewise.
29508 2013-04-24 Paolo Carlini <paolo.carlini@oracle.com>
29510 * doc/cpp.texi: Document __GXX_EXPERIMENTAL_CXX1Y__.
29512 2013-04-24 Marek Polacek <polacek@redhat.com>
29514 * tree-scalar-evolution.h (analyze_scalar_evolution): Remove.
29515 * tree-scalar-evolution.c (get_exit_conditions_rec): Likewise.
29516 (select_loops_exit_conditions): Likewise.
29517 (number_of_iterations_for_all_loops): Likewise.
29518 (analyze_scalar_evolution_for_all_loop_phi_nodes): Likewise.
29519 (scev_analysis): Likewise.
29521 2013-04-02 Catherine Moore <clm@codesourcery.com>
29522 Chao-ying Fu <fu@mips.com>
29524 * config/mips/micromips.md (jraddiusp): New pattern.
29525 * config/mips/mips.c (mips_expand_epilogue): Use the JRADDIUSP
29526 instruction if possible.
29528 2013-04-24 Alan Modra <amodra@gmail.com>
29530 * config/rs6000/driver-rs6000.c (elf_dcachebsize): Fix comment pasto.
29532 2013-04-24 Julian Brown <julian@codesourcery.com>
29533 Chung-Lin Tang <cltang@codesourcery.com>
29535 * dwarf2out.c (gen_enumeration_type_die): Fix HOST_BITS_PER_WIDE_INT
29536 dependency behavior in enumeration type DIE generation. Add TODO note
29537 to comments about future DW_FORM_sdata/udata re-work of related code.
29539 2013-04-23 Lawrence Crowl <crowl@google.com>
29541 * Makefile.in: Update as needed below.
29543 * hash-table.h (class hash_table):
29544 Correct many methods with parameter types compare_type to the correct
29545 value_type. (Correct code was unlikely to notice the change.)
29546 (hash_table::elements_with_deleted) New.
29547 (class hashtable::iterator): New.
29548 (hashtable::begin()): New.
29549 (hashtable::end()): New.
29550 (FOR_EACH_HASH_TABLE_ELEMENT): New.
29552 * statistics.c (statistics_hashes):
29553 Change type to hash_table. Update dependent calls and types.
29555 * tree-into-ssa.c (var_infos):
29556 Change type to hash_table. Update dependent calls and types.
29558 * tree-ssa-coalesce.c (struct coalesce_list_d.list):
29559 Change type to hash_table. Update dependent calls and types.
29561 * tree-ssa-loop-im.c (struct mem_ref.refs):
29562 Change type to hash_table. Update dependent calls and types.
29564 * tree-ssa-reassoc.c (undistribute_ops_list::ctable):
29565 Change type to hash_table. Update dependent calls and types.
29567 * tree-ssa-sccvn.c (vn_tables_s::nary):
29568 Change type to hash_table. Update dependent calls and types.
29569 (vn_tables_s::phis): Likewise.
29570 (vn_tables_s::references): Likewise.
29572 * tree-ssa-sccvn.h (vn_nary_op_eq): Update parameter and return types.
29573 (vn_reference_eq): Update parameter and return types.
29575 * tree-ssa-structalias.c (pointer_equiv_class_table):
29576 Change type to hash_table. Update dependent calls and types.
29577 (location_equiv_class_table): Likewise.
29579 * tree-vect-data-refs.c: Consequential changes for making
29580 peeling a hash_table.
29582 * tree-vect-loop.c (new_loop_vec_info): Dependent hash_table update.
29583 (destroy_loop_vec_info): Dependent hash_table update.
29585 * tree-vectorizer.h (peeling_htab):
29586 Change type to hash_table. Update dependent calls and types.
29588 2013-04-23 Shiva Chen <shiva0217@gmail.com>
29590 * lra-assigns.c (find_hard_regno_for): Use lra_reg_val_equal_p
29591 to check the register content is equal or not.
29592 * lra-constraints.c (match_reload): Use lra_assign_reg_val
29593 to assign register content record.
29594 * lra-eliminations.c (update_reg_eliminate): Use
29595 lra_update_reg_val_offset to update register content offset.
29596 * lra-int.h (struct lra_reg): Add offset member.
29597 (lra_reg_val_equal_p): New static inline function.
29598 (lra_update_reg_val_offset): New static inline function.
29599 (lra_assign_reg_val): New static inline function.
29600 * lra.c (lra_create_new_reg): Use lra_assign_reg_val
29601 to assign register content record.
29602 (initialize_lra_reg_info_element): Initial offset to zero.
29604 2013-04-23 Catherine Moore <clm@codesourcery.com>
29606 * config/mips/mips.md (*movhi_internal, *movqi_internal): New
29607 operands. Record compression.
29609 2013-04-23 Xinliang David Li <davidxl@google.com>
29611 * cfghhooks.c (dump_bb_for_graph): Support 'slim' graph dump.
29613 2013-04-23 Richard Biener <rguenther@suse.de>
29615 PR middle-end/57036
29616 * tree-inline.c (copy_edges_for_bb): Add can_make_abnormal_goto
29617 parameter, only add abnormal goto edges from the copied body
29618 if the call could perform abnormal gotos.
29619 (copy_cfg_body): Adjust.
29621 2013-04-23 Sofiane Naci <sofiane.naci@arm.com>
29623 * config/aarch64/aarch64.md (*mov<mode>_aarch64): Add simd attribute.
29625 2013-04-23 Andreas Schwab <schwab@linux-m68k.org>
29627 * coretypes.h (gimple_stmt_iterator): Add struct to make
29630 2013-04-23 Richard Biener <rguenther@suse.de>
29632 PR tree-optimization/57026
29633 * tree-vrp.c (simplify_conversion_using_ranges): Do not propagate
29634 from SSA names occuring in abnormal PHI nodes.
29636 2013-04-22 Andi Kleen <ak@linux.intel.com>
29638 * lto/lto.c (print_lto_report_1): Fix LTO report names.
29640 2013-04-22 Andi Kleen <ak@linux.intel.com>
29642 * lto/lto.c (print_lto_report_1): Declare early.
29643 (read_cgraph_and_symbols): Call print_lto_report_1 early.
29645 2013-04-22 Andi Kleen <ak@linux.intel.com>
29647 * common.opt (-flto-report-wpa): Add.
29648 * doc/invoke.texi (-flto-report-wpa): Add.
29649 * lto/lto.c (do_whole_program_analysis): Check for lto-report-wpa.
29652 2013-04-22 Xinliang David Li <davidxl@google.com>
29654 * graph.c (draw_cfg_node_succ_edges): Add branch probility as label.
29655 * cfghhooks.c (dump_bb_for_graph): Dump profile count and frquency.
29656 * Makefile.in: New dependency
29658 David Daney <ddaney.cavm@gmail.com>
29660 * configure.ac (gcc_cv_as_micromips_support): Use the
29661 --fatal-warnings option.
29662 * configure: Regenerate.
29664 2013-04-22 Marek Polacek <polacek@redhat.com>
29667 * tsan.c (instrument_expr): Don't instrument expression
29668 in case its size is zero.
29670 2013-04-22 Uros Bizjak <ubizjak@gmail.com>
29674 2013-03-17 Uros Bizjak <ubizjak@gmail.com>
29676 * config/alpha/alpha.c (TARGET_LRA_P): New define.
29678 2013-04-22 James Greenhalgh <james.greenhalgh@arm.com>
29680 * coretypes.h (gimple_stmt_iterator_d): Forward declare.
29681 (gimple_stmt_iterator): New typedef.
29682 * gimple.h (gimple_stmt_iterator): Rename to...
29683 (gimple_stmt_iterator_d): ... This.
29684 * doc/tm.texi.in (TARGET_FOLD_BUILTIN): Detail restriction that
29685 trees be valid for GIMPLE and GENERIC.
29686 (TARGET_GIMPLE_FOLD_BUILTIN): New.
29687 * gimple-fold.c (gimple_fold_call): Call target hook
29688 gimple_fold_builtin.
29689 * hooks.c (hook_bool_gsiptr_false): New.
29690 * hooks.h (hook_bool_gsiptr_false): New.
29691 * target.def (fold_stmt): New.
29692 * doc/tm.texi: Regenerate.
29694 2013-04-22 Vladimir Makarov <vmakarov@redhat.com>
29697 * lra-eliminations.c (mark_not_eliminable): Prevent elimination of
29698 a set sp if no stack realignment.
29700 2013-04-22 Nick Clifton <nickc@redhat.com>
29702 * config.gcc (tilegx-linux): Extend extra_objs rather than
29704 (tilepro-linux): Likewise.
29706 2013-04-22 James Greenhalgh <james.greenhalgh@arm.com>
29708 * config/aarch64/aarch64-builtins.c
29710 (CF0, CF1, CF2, CF3, CF4, CF10): New.
29711 (VAR<1-12>): Add MAP parameter.
29712 (BUILTIN_*): Likewise.
29713 * config/aarch64/aarch64-simd-builtins.def: Set MAP parameter.
29714 * config/aarch64/aarch64-simd.md (aarch64_sshl_n<mode>): Remove.
29715 (aarch64_ushl_n<mode>): Likewise.
29716 (aarch64_sshr_n<mode>): Likewise.
29717 (aarch64_ushr_n<mode>): Likewise.
29718 (aarch64_<maxmin><mode>): Likewise.
29719 (aarch64_sqrt<mode>): Likewise.
29720 * config/aarch64/arm_neon.h (vshl<q>_n_*): Use new builtin names.
29721 (vshr<q>_n_*): Likewise.
29723 2013-04-22 James Greenhalgh <james.greenhalgh@arm.com>
29725 * config/aarch64/aarch64-builtins.c
29726 (aarch64_simd_builtin_type_mode): Handle SF types.
29728 (BUILTIN_GPF): Define.
29729 (aarch64_init_simd_builtins): Handle SF types.
29730 * config/aarch64/aarch64-simd-builtins.def (frecpe): Add support.
29731 (frecps): Likewise.
29732 (frecpx): Likewise.
29733 * config/aarch64/aarch64-simd.md
29734 (simd_types): Update simd_frcp<esx> to simd_frecp<esx>.
29735 (aarch64_frecpe<mode>): New.
29736 (aarch64_frecps<mode>): Likewise.
29737 * config/aarch64/aarch64.md (unspec): Add UNSPEC_FRECP<ESX>.
29738 (v8type): Add frecp<esx>.
29739 (aarch64_frecp<FRECP:frecp_suffix><mode>): New.
29740 (aarch64_frecps<mode>): Likewise.
29741 * config/aarch64/iterators.md (FRECP): New.
29742 (frecp_suffix): Likewise.
29743 * config/aarch64/arm_neon.h
29744 (vrecp<esx><qsd>_<fd><32, 64>): Convert to using builtins.
29746 2013-04-22 Christian Bruel <christian.bruel@st.com>
29749 * config/sh/sh.h (enum reg_class): Remove DF_HI_REGS.
29750 (REG_CLASS_NAMES): Idem.
29751 (REG_CLASS_CONTENTS): Idem.
29752 (REGCLASS_HAS_FP_REG): Idem.
29753 * config/sh/sh.c (sh_cannot_change_mode_class): Idem.
29754 (sh_conditional_register_usage): Idem.
29756 2013-04-21 Jeff Law <law@redhat.com>
29758 * tree-ssa-forwprop.c (simplify_conversion_from_bitmask): New function.
29759 (ssa_forward_propagate_and_combine): Use it.
29761 2013-04-19 Vladimir Makarov <vmakarov@redhat.com>
29763 * lra.c: Update the flow chart diagram.
29765 2013-04-19 Vladimir Makarov <vmakarov@redhat.com>
29767 PR rtl-optimization/56847
29768 * lra-constraints.c (process_alt_operands): Discourage alternative
29769 with non-matche doffsettable memory constraint fro memory with
29772 2013-04-19 Richard Biener <rguenther@suse.de>
29774 PR tree-optimization/56982
29775 * builtins.def (BUILT_IN_LONGJMP): longjmp is not a leaf
29777 * gimplify.c (gimplify_call_expr): Notice special calls.
29778 (gimplify_modify_expr): Likewise.
29779 * tree-cfg.c (make_abnormal_goto_edges): Handle setjmp-like
29780 abnormal control flow receivers.
29781 (call_can_make_abnormal_goto): Handle cfun->calls_setjmp
29782 in the same way as cfun->has_nonlocal_labels.
29783 (gimple_purge_dead_abnormal_call_edges): Likewise.
29784 (stmt_starts_bb_p): Make setjmp-like abnormal control flow
29785 receivers start a basic-block.
29787 2013-04-19 Richard Biener <rguenther@suse.de>
29789 * tree-vectorizer.h (struct _slp_instance): Move load_permutation
29791 (struct _slp_tree): ... here. Make it a vector of unsigned ints.
29792 (SLP_INSTANCE_LOAD_PERMUTATION): Remove.
29793 (SLP_TREE_LOAD_PERMUTATION): Add.
29794 (vect_transform_slp_perm_load): Adjust prototype.
29795 * tree-vect-slp.c (vect_free_slp_tree): Adjust.
29796 (vect_free_slp_instance): Likewise.
29797 (vect_create_new_slp_node): Likewise.
29798 (vect_supported_slp_permutation_p): Remove.
29799 (vect_slp_rearrange_stmts): Adjust.
29800 (vect_supported_load_permutation_p): Likewise. Inline
29801 vect_supported_slp_permutation_p here.
29802 (vect_analyze_slp_instance): Compute load permutations per
29803 slp node instead of per instance.
29804 (vect_get_slp_defs): Adjust.
29805 (vect_transform_slp_perm_load): Likewise.
29806 (vect_schedule_slp_instance): Remove redundant code.
29807 (vect_schedule_slp): Remove hack for PR56270, add it ...
29808 * tree-vect-stmts.c (vectorizable_load): ... here, do not
29809 CSE loads for SLP. Adjust.
29811 2013-04-19 Greta Yorsh <Greta.Yorsh@arm.com>
29813 * config/arm/arm.c (load_multiple_sequence, ldm_stm_operation_p): Fix
29814 spelling in two comments.
29816 2013-04-19 Greta Yorsh <Greta.Yorsh@arm.com>
29819 * config/arm/arm.c (load_multiple_sequence): Require SP
29820 as base register for loads if SP is in the register list.
29822 2013-04-19 Martin Jambor <mjambor@suse.cz>
29824 PR tree-optimization/56718
29825 * ipa-cp.c (ipa_value_from_known_type_jfunc): Moved...
29826 * ipa-prop.c (ipa_binfo_from_known_type_jfunc): ...here, renamed
29827 and made public. Adjusted all callers.
29828 (ipa_intraprocedural_devirtualization): New function.
29829 * ipa-prop.h (ipa_binfo_from_known_type_jfunc): Declare.
29830 (ipa_intraprocedural_devirtualization): Likewise.
29831 * Makefile.in (tree-ssa-pre.o): Add ipa-prop.h to dependencies.
29833 2013-04-19 Richard Biener <rguenther@suse.de>
29835 PR tree-optimization/57000
29836 * tree-ssa-reassoc.c (pass_reassoc): Add TODO_update_ssa_only_virtuals.
29838 2013-04-19 Terry Guo <terry.guo@arm.com>
29840 * config/arm/cortex-m4-fpu.md (cortex_m4_v): Delete cpu unit.
29842 (cortex_m4_v_a, cortex_m4_v_b): ... new cpu units.
29843 (cortex_m4_v, cortex_m4_exa_va, cortex_m4_exb_vb): New reservations.
29844 (cortex_m4_fmacs): Use new reservations.
29845 (cortex_m4_f_load, cortex_m4_f_store): Likewise.
29847 2013-04-18 Vladimir Makarov <vmakarov@redhat.com>
29849 PR rtl-optimization/56999
29850 * lra-coalesce.c (coalescable_pseudo_p): Remove 2nd parameter and
29852 (lra_coalesce): Remove split_origin_bitmap and related code.
29853 * lra.c (lra): Coalesce after undoing inheritance. Recreate live
29854 ranges if necessary.
29856 2013-04-18 Uros Bizjak <ubizjak@gmail.com>
29858 * config/i386/i386.c (x86_64_ms_sysv_extra_clobbered_registers):
29860 (ix86_expand_call): Remove clobbered_registers array and use
29861 x86_64_ms_sysv_extra_clobbered_registers instead.
29862 * config/i386/i386.h (x86_64_ms_sysv_extra_clobbered_registers):
29864 * config/i386/predicates.md (call_rex64_ms_sysv_operation): New
29866 * config/i386/i386.md (*call_rex64_ms_sysv): Use
29867 call_rex64_ms_sysv_operation predicate. Remove explicit clobbers.
29868 (*call_value_rex64_ms_sysv): Ditto.
29870 2013-04-18 Cary Coutant <ccoutant@google.com>
29872 * dwarf2out.c (output_pubnames): Check die_perennial_p of
29873 parent instead of die_mark.
29875 2013-04-18 Diego Novillo <dnovillo@google.com>
29877 * gimple.c (create_gimple_tmp): New.
29878 (get_expr_type): New.
29879 (build_assign): New.
29880 (build_type_cast): New.
29881 * gimple.h (enum ssa_mode): Define.
29882 (gimple_seq_set_location): New.
29883 * asan.c (build_check_stmt): Change some gimple_build_* calls
29884 to use build_assign and build_type_cast.
29886 2013-04-18 Richard Biener <rguenther@suse.de>
29888 * tree-vect-data-refs.c (vect_analyze_group_access): Properly
29889 handle negative step. Remove redundant checks.
29890 (vect_create_data_ref_ptr): Avoid ICEs with non-constant steps.
29891 * tree-vect-stmts.c (vectorizable_load): Instead of asserting
29892 for negative step and grouped loads fail to vectorize.
29894 2013-04-18 Steven Bosscher <steven@gcc.gnu.org>
29896 * emit-rtl.c (reset_insn_used_flags): New function.
29897 (reset_all_used_flags): Use it.
29898 (verify_insn_sharing): New function.
29899 (verify_rtl_sharing): Fix verification for SEQUENCEs.
29901 2013-04-18 Jakub Jelinek <jakub@redhat.com>
29903 PR tree-optimization/56984
29904 * tree-vrp.c (register_edge_assert_for_2): For (x >> M) < N
29905 and (x >> M) >= N don't register any assertion if N << M is the
29908 2013-04-18 Steven Bosscher <steven@gcc.gnu.org>
29910 * lower-subreg.c (resolve_simple_move): If called self-recursive,
29911 do not delete_insn insns that have not yet been emitted, only
29912 unlink them with remove_insn.
29913 * df-scan.c (df_insn_delete): Revert r197492.
29915 2013-04-17 Steven Bosscher <steven@gcc.gnu.org>
29917 * emit-rtl.c (link_insn_into_chain): Handle chaining of SEQUENCEs.
29918 * reorg.c (emit_delay_sequence): Simplify with emit-rtl API.
29920 2013-04-17 Greta Yorsh <Greta.Yorsh@arm.com>
29922 * config/arm/arm.md (movsicc_insn): Convert define_insn into
29923 define_insn_and_split.
29924 (and_scc,ior_scc,negscc): Likewise.
29925 (cmpsi2_addneg, subsi3_compare): Convert to named patterns.
29927 2013-04-17 Greta Yorsh <Greta.Yorsh@arm.com>
29929 * config/arm/arm.c (use_return_insn): Return 0 for targets that
29930 can benefit from using a sequence of LDRD instructions in epilogue
29931 instead of a single LDM instruction.
29933 2013-04-17 Manuel López-Ibáñez <manu@gcc.gnu.org>
29936 * doc/extend.texi: Fix typo.
29938 2013-04-17 Richard Biener <rguenther@suse.de>
29940 * tree-vect-slp.c (vect_build_slp_tree_1): Split out from ...
29941 (vect_build_slp_tree): ... here.
29942 (vect_build_slp_tree_1): Compute which stmts of the SLP group
29943 match. Remove special-casing of mismatched complex loads.
29944 (vect_build_slp_tree): Based on the result from vect_build_slp_tree_1
29945 re-try the match with swapped commutative operands.
29946 (vect_supported_load_permutation_p): Remove special-casing of
29947 mismatched complex loads.
29948 (vect_analyze_slp_instance): Adjust.
29950 2013-04-17 Richard Biener <rguenther@suse.de>
29952 PR rtl-optimization/56921
29953 * cfgloop.h (struct loop): Add simple_loop_desc member.
29954 (struct niter_desc): Mark with GTY(()).
29955 (simple_loop_desc): Do not use aux field but simple_loop_desc.
29956 * loop-iv.c (get_simple_loop_desc): Likewise.
29957 (free_simple_loop_desc): Likewise.
29960 2013-04-16 Richard Biener <rguenther@suse.de>
29962 PR rtl-optimization/56921
29963 * loop-init.c (pass_rtl_move_loop_invariants): Add
29964 TODO_do_not_ggc_collect to todo_flags_finish.
29965 (pass_rtl_unswitch): Same.
29966 (pass_rtl_unroll_and_peel_loops): Same.
29967 (pass_rtl_doloop): Same.
29969 2013-04-17 Eric Botcazou <ebotcazou@adacore.com>
29971 * tree-ssa-alias.c (nonoverlapping_component_refs_of_decl_p): New.
29972 (decl_refs_may_alias_p): Add REF1 and REF2 parameters.
29973 Use nonoverlapping_component_refs_of_decl_p to disambiguate component
29975 (refs_may_alias_p_1): Adjust call to decl_refs_may_alias_p.
29976 * tree-streamer.c (record_common_node): Adjust reference in comment.
29978 2013-04-17 Terry Guo <terry.guo@arm.com>
29980 * config/arm/cortex-m4.md: Add a new bypass.
29982 2013-04-16 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
29984 * config/aarch64/aarch64.md (*adds_<optab><mode>_multp2):
29986 (*subs_<optab><mode>_multp2): New pattern.
29987 (*adds_<optab><ALLX:mode>_<GPI:mode>): New pattern.
29988 (*subs_<optab><ALLX:mode>_<GPI:mode>): New pattern.
29990 2013-04-16 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
29992 * config/aarch64/aarch64.md (*adds_mul_imm_<mode>): New pattern.
29993 (*subs_mul_imm_<mode>): New pattern.
29995 2013-04-16 David Edelsohn <dje.gcc@gmail.com>
29998 * config/rs6000/vsx.md (vsx_mov<mode>): Add j->r alternative.
29999 (vsx_movti_64bit): Change j->wa to O->wa. Add n->r alternative.
30000 (vsx_movti_32bit): Change j->wa to O->wa.
30002 2013-04-16 Richard Biener <rguenther@suse.de>
30004 PR rtl-optimization/56921
30005 * loop-init.c (pass_rtl_move_loop_invariants): Add
30006 TODO_do_not_ggc_collect to todo_flags_finish.
30007 (pass_rtl_unswitch): Same.
30008 (pass_rtl_unroll_and_peel_loops): Same.
30009 (pass_rtl_doloop): Same.
30011 2013-04-16 Greta Yorsh <Greta.Yorsh@arm.com>
30013 * config/arm/arm.c (emit_multi_reg_push): New declaration
30014 for an existing function.
30015 (arm_emit_strd_push): New function.
30016 (arm_expand_prologue): Used here.
30017 (arm_emit_ldrd_pop): New function.
30018 (arm_expand_epilogue): Used here.
30019 (arm_get_frame_offsets): Update condition.
30020 (arm_emit_multi_reg_pop): Add a special case for load of a single
30021 register with writeback.
30023 2013-04-16 Uros Bizjak <ubizjak@gmail.com>
30025 * doc/invoke.texi (i386 Option): Reword -mstack-protector-guard
30028 2013-04-16 Richard Biener <rguenther@suse.de>
30030 PR tree-optimization/56756
30031 * tree-ssa-loop-im.c (struct first_mem_ref_loc_1): New functor.
30032 (first_mem_ref_loc): New.
30033 (execute_sm): Place the load temporarily before a previous
30034 access instead of in the latch edge to ensure its SSA dependencies
30035 are defined at points dominating the load.
30037 2013-04-16 Steven Bosscher <steven@gcc.gnu.org>
30039 * cfgrtl.c (cfg_layout_merge_blocks): Revert r184005, implement
30040 correct fix by moving header and footer insn to the footer of
30041 the merged basic block. Clear BB_END of the merged-away block.
30043 PR middle-end/43631
30044 * emit-rtl.c (make_note_raw): New function.
30045 (link_insn_into_chain): New static inline function.
30046 (add_insn): Use it.
30047 (add_insn_before, add_insn_after): Factor insn chain linking code...
30048 (add_insn_before_nobb, add_insn_after_nobb): ...here, new functions
30049 using link_insn_into_chain.
30050 (note_outside_basic_block_p): New helper function for emit_note_after
30051 and emit_note_before.
30052 (emit_note_after): Use nobb variant of add_insn_after if the note
30053 should not be contained in a basic block.
30054 (emit_note_before): Use nobb variant of add_insn_before if the note
30055 should not be contained in a basic block.
30056 (emit_note_copy): Use make_note_raw.
30057 (emit_note): Likewise.
30058 * bb-reorder.c (insert_section_boundary_note): Remove hack to set
30059 BLOCK_FOR_INSN to NULL manually for NOTE_INSN_SWITCH_TEXT_SECTIONS.
30060 * jump.c (cleanup_barriers): Use reorder_insns_nobb to avoid making
30061 the moved barrier the tail of the basic block it follows.
30062 * var-tracking.c (pass_variable_tracking): Add TODO_verify_flow.
30064 2013-04-15 Jakub Jelinek <jakub@redhat.com>
30066 PR tree-optimization/56962
30067 * gimple-ssa-strength-reduction.c (record_increment): Only set
30068 initializer if gimple_assign_rhs_code is {,POINTER_}PLUS_EXPR and
30069 either rhs1 or rhs2 is equal to c->base_expr.
30071 2013-04-15 Richard Biener <rguenther@suse.de>
30073 PR tree-optimization/56933
30074 * tree-vectorizer.h (struct _stmt_vec_info): Remove read_write_dep
30076 (GROUP_READ_WRITE_DEPENDENCE): Remove.
30077 (STMT_VINFO_GROUP_READ_WRITE_DEPENDENCE): Likewise.
30078 * tree-vect-data-refs.c (vect_analyze_group_access): Move
30079 dependence check ...
30080 vect_analyze_data_ref_dependence (vect_analyze_data_ref_dependence):
30082 * tree-vect-stmts.c (new_stmt_vec_info): Do not initialize
30083 GROUP_READ_WRITE_DEPENDENCE.
30085 2013-04-15 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
30087 * emit-rtl.c (reset_all_used_flags): New function.
30088 (verify_rtl_sharing): Call reset_all_used_flags before and after
30089 performing the checks.
30091 2013-04-15 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
30093 * config/arm/arm.c (const_ok_for_dimode_op): Handle AND case.
30094 * config/arm/arm.md (*anddi3_insn): Change to insn_and_split.
30095 * config/arm/constraints.md (De): New constraint.
30096 * config/arm/neon.md (anddi3_neon): Delete.
30097 (neon_vand<mode>): Expand to standard anddi3 pattern.
30098 * config/arm/predicates.md (imm_for_neon_inv_logic_operand):
30099 Move earlier in the file.
30100 (neon_inv_logic_op2): Likewise.
30101 (arm_anddi_operand_neon): New predicate.
30103 2013-04-15 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
30105 * configure.ac (gcc_cv_ld_as_needed): Set
30106 gcc_cv_ld_as_needed_option, gcc_cv_no_as_needed_option.
30107 Use -z ignore, -z record on *-*-solaris2*.
30108 (HAVE_LD_AS_NEEDED): Update comment.
30109 (LD_AS_NEEDED_OPTION, LD_NO_AS_NEEDED_OPTION): Define.
30110 * configure: Regenerate.
30111 * config.in: Regenerate.
30112 * gcc.c (init_gcc_specs) [USE_LD_AS_NEEDED]: Use
30113 LD_AS_NEEDED_OPTION, LD_NO_AS_NEEDED_OPTION.
30114 * config/sol2.h [HAVE_LD_AS_NEEDED] (USE_LD_AS_NEEDED): Define.
30115 * doc/tm.texi.in (USE_LD_AS_NEEDED): Allow for --as-needed
30116 equivalents. Fix markup.
30117 * doc/tm.texi: Regenerate.
30119 2013-04-15 Andrew Hsieh <andrewhsieh.google.com>
30121 * config/i386/i386.opt: New option mstack-protector-guard=.
30122 * config/i386/i386-opts.h: Add enum stack_protector_guard.
30123 * config/i386/i386.h: Define TARGET_SSP_GLOBAL_GUARD and
30124 TARGET_SSP_TLS_GUARD.
30125 * config/i386/i386.c (ix86_option_override_internal): Set
30126 ix86_stack_protector_guard.
30127 * config/i386/i386.md (stack_protect_set): Enable for
30128 TARGET_SSP_TLS_GUARD only.
30129 (stack_protect_set_<mode>): Ditto.
30130 (stack_protect_test): Ditto.
30131 (stack_protect_test_<mode>): Ditto.
30132 * doc/invoke.texi (i386 Option): Document.
30134 2013-04-15 Eric Botcazou <ebotcazou@adacore.com>
30137 * config/sparc/sparc.c (enum sparc_mode_class): Add H_MODE value.
30138 (S_MODES): Set H_MODE bit.
30139 (SF_MODES): Set only S_MODE and SF_MODE bits.
30140 (DF_MODES): Set SF_MODES and only D_MODE and DF_MODE bits.
30141 (sparc_init_modes) <MODE_INT>: Set H_MODE bit for sub-word modes.
30142 <MODE_VECTOR_INT>: Do not set SF_MODE for sub-word modes.
30143 <MODE_FLOAT>: Likewise.
30145 2013-04-15 Joey Ye <joey.ye@arm.com>
30147 * config/arm/arm.c (thumb_far_jump_used_p): Fix typo in comments.
30149 2013-04-15 Joey Ye <joey.ye@arm.com>
30151 * config/arm/arm.c (thumb1_final_prescan_insn): Assert lr save
30153 (thumb_far_jump_used_p): Count instruction size and set
30156 2013-04-14 Eric Botcazou <ebotcazou@adacore.com>
30158 * reorg.c (fill_simple_delay_slots): Reindent block of code.
30159 * resource.c (mark_target_live_regs): Reformat conditional block.
30161 2013-04-13 Steven Bosscher <steven@gcc.gnu.org>
30163 * sched-deps.c (deps_analyze_insn): Do not check for EH_REGION insn
30164 notes, they are emitted only just before final.
30165 * sched-int.h: Include insn-attr.h before checking INSN_SCHEDULING.
30167 2013-04-13 Steven Bosscher <steven@gcc.gnu.org>
30169 * emit-rtl.c (remove_insn): Do not call df_insn_delete here.
30170 * cfgrtl.c (delete_insn): Call it here instead.
30171 * lra-spills.c (lra_final_code_change): Use delete_insn.
30172 * haifa-sched.c (sched_remove_insn): Likewise.
30173 * sel-sched-ir.c (return_nop_to_pool): Clear INSN_DELETED_P for nops
30174 returning to the nop pool.
30175 (sel_remove_insn): Simplify the only_disconnect case via remove_insn,
30176 use delete_insn for definitive removal. Clear BLOCK_FOR_INSN.
30178 2013-04-12 Steven Bosscher <steven@gcc.gnu.org>
30180 * doc/tm.texi.in (LOOP_ALIGN): Remove loop note references.
30181 * doc/tm.texi: Regenerated.
30183 2013-04-12 Uros Bizjak <ubizjak@gmail.com>
30185 * config/i386/i386.c (ix86_hard_regno_mode_ok): Use ANY_QI_REGNO_P in
30188 2013-04-12 Steven Bosscher <steven@gcc.gnu.org>
30190 * df-core.c (df_find_def): Compare register numbers.
30191 (df_find_use): Likewise.
30193 2013-04-12 Vladimir Makarov <vmakarov@redhat.com>
30196 * config/i386/i386.c (ix86_hard_regno_mode_ok): Add
30197 lra_in_progress for return.
30199 2013-04-12 Greta Yorsh <Greta.Yorsh@arm.com>
30201 * config/arm/arm.md (mov_scc,mov_negscc,mov_notscc): Convert
30202 define_insn into define_insn_and_split and emit movsicc patterns.
30204 2013-04-12 Greta Yorsh <Greta.Yorsh@arm.com>
30206 * config/arm/arm.c (gen_operands_ldrd_strd): Initialize "base".
30208 2013-04-12 Richard Biener <rguenther@suse.de>
30210 * tree-pass.h (TODO_do_not_ggc_collect): New.
30211 * passes.c (execute_one_ipa_transform_pass): Honor
30212 TODO_do_not_ggc_collect.
30213 (execute_one_pass): Likewise.
30216 2013-04-10 Richard Biener <rguenther@suse.de>
30218 * passes.c (init_optimization_passes): Remove reload pass.
30219 * ira.c (do_reload): Merge into ...
30221 (rest_of_handle_reload): Remove.
30222 (pass_reload): Likewise.
30223 * config/i386/i386.c (ix86_option_override): Refer to ira instead
30224 of reload for vzeroupper pass placement.
30226 2013-04-12 Jakub Jelinek <jakub@redhat.com>
30228 PR tree-optimization/56918
30229 PR tree-optimization/56920
30230 * fold-const.c (int_const_binop_1): Use op1.mul_with_sign (op2, ...)
30231 instead of op1 - op2. Pass 2 * TYPE_PRECISION (type) as second
30232 argument to rshift method. For 2 * HOST_BITS_PER_WIDE_INT precision
30233 use wide_mul_with_sign method.
30235 2013-04-12 Richard Biener <rguenther@suse.de>
30237 * gimple.c (is_gimple_constant): Vector CONSTRUCTORs should
30238 not be considered a gimple constant.
30240 2013-04-12 Marc Glisse <marc.glisse@inria.fr>
30242 * fold-const.c (const_binop): Handle vector shifts by a scalar.
30243 (fold_binary_loc): Call const_binop also for mixed vector-scalar
30246 2013-04-12 Manuel López-Ibáñez <manu@gcc.gnu.org>
30247 Jakub Jelinek <jakub@redhat.com>
30249 * opts.c: Include diagnostic-color.h.
30250 (common_handle_option): Handle OPT_fdiagnostics_color_.
30251 * Makefile.in (OBJS-libcommon): Add diagnostic-color.o.
30252 (diagnostic.o, opts.o, pretty-print.o): Depend on diagnostic-color.h.
30253 (diagnostic-color.o): New.
30254 * common.opt (fdiagnostics-color, fdiagnostics-color=): New options.
30255 (diagnostic_color_rule): New enum.
30256 * dwarf2out.c (gen_producer_string): Don't print -fdiagnostics-color*.
30257 * langhooks.c (lhd_print_error_function): Add %r "locus" and %R around
30258 the location string.
30259 * diagnostic.def: Add 3rd argument to DEFINE_DIAGNOSTIC_KIND macros,
30260 either NULL, or color kind.
30261 * diagnostic-color.c: New file.
30262 * diagnostic-color.h: New file.
30263 * diagnostic-core.h (DEFINE_DIAGNOSTIC_KIND): Adjust macro for 3
30265 * doc/invoke.texi (-fdiagnostics-color): Document.
30266 * pretty-print.h (pp_show_color): Define.
30267 (struct pretty_print_info): Add show_color field.
30268 * diagnostic.c: Include diagnostic-color.h.
30269 (diagnostic_build_prefix): Adjust for 3 argument DEFINE_DIAGNOSTIC_KIND
30270 macros. Colorize error:, warning: etc. strings and also the location
30272 (diagnostic_show_locus): Colorize the caret line.
30273 * pretty-print.c: Include diagnostic-color.h.
30274 (pp_base_format): Handle %r and %R format specifiers. Colorize strings
30275 inside of %< %> quotes or quoted through q format modifier.
30277 2013-04-12 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
30279 * ifcvt.c (end_ifcvt_sequence): Mark a and b for unsharing as well.
30281 2013-04-11 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
30283 * config/aarch64/aarch64.c (aarch64_select_cc_mode): Allow NEG
30284 code in CC_NZ mode.
30285 * config/aarch64/aarch64.md (*neg_<shift><mode>3_compare0): New
30288 2013-04-11 Marek Polacek <polacek@redhat.com>
30290 PR tree-optimization/48184
30291 * params.def (PARAM_ALIGN_THRESHOLD): Increase the minimum value to 1.
30293 2013-04-11 Eric Botcazou <ebotcazou@adacore.com>
30295 * stor-layout.c (skip_simple_constant_arithmetic): Move to...
30296 * tree.c (skip_simple_constant_arithmetic): ...here and make public.
30297 (skip_simple_arithmetic): Tidy up.
30298 * tree.h (skip_simple_constant_arithmetic): Declare.
30300 2013-04-11 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
30302 * config/aarch64/aarch64.h (REVERSIBLE_CC_MODE): Define.
30304 2013-04-11 Richard Biener <rguenther@suse.de>
30306 * tree-vect-loop.c (get_initial_def_for_induction): Properly
30307 generate vector constants.
30309 2013-04-11 Richard Biener <rguenther@suse.de>
30311 PR tree-optimization/56878
30312 * tree-flow.h (outermost_invariant_loop_for_expr): Declare.
30313 * tree-ssa-loop-ivopts.c (outermost_invariant_loop_for_expr):
30315 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment):
30316 Prefer to align the DR with the most invariant base address.
30318 2013-04-11 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
30320 * opts.c (common_handle_option): Fix formatting and add FALLTHRU
30323 2013-04-11 James Greenhalgh <james.greenhalgh@arm.com>
30325 * config/aarch64/aarch64-simd.md (aarch64_vcond_internal): Fix
30326 floating-point vector comparisons against 0.
30328 2013-04-11 Jakub Jelinek <jakub@redhat.com>
30330 PR tree-optimization/56899
30331 * fold-const.c (extract_muldiv_1): Apply distributive law
30332 only if TYPE_OVERFLOW_WRAPS (ctype).
30334 2013-04-11 Bin Cheng <bin.cheng@arm.com>
30337 * ira-costs.c (scan_one_insn): Check whether the source rtx of
30338 loading has side effect.
30340 2013-04-10 Steven Bosscher <steven@gcc.gnu.org>
30342 * config/sparc/sparc.c: Include tree-pass.h.
30343 (TARGET_MACHINE_DEPENDENT_REORG): Do not redefine.
30344 (sparc_reorg): Rename to sparc_do_work_around_errata. Move to
30345 head of file. Change return type. Split off gate function.
30346 (sparc_gate_work_around_errata): New function.
30347 (pass_work_around_errata): New pass definition.
30348 (insert_pass_work_around_errata) New pass insert definition to
30349 insert pass_work_around_errata just after delayed-branch scheduling.
30350 (sparc_option_override): Insert the pass.
30351 * config/sparc/t-sparc (sparc.o): Add TREE_PASS_H dependence.
30353 2013-04-10 David S. Miller <davem@davemloft.net>
30355 * config/sparc/sparc.h (ASM_CPU_SPEC): Pass -Av8 if -mcpu=supersparc
30356 or -mcpu=hypersparc.
30358 * target.def (cstore_mode): New hook.
30359 * target.h: Include insn-codes.h
30360 * targhooks.c: Likewise.
30361 (default_cstore_mode): New function.
30362 * targhooks.h: Declare it.
30363 * doc/tm.texi.in: New hook slot for TARGET_CSTORE_MODE.
30364 * doc/tm.texi: Rebuild.
30365 * expmed.c (emit_cstore): Obtain cstore boolean result mode using
30366 target hook, rather than inspecting the insn_data.
30367 * config/sparc/sparc.c (sparc_cstore_mode): New function.
30368 (TARGET_CSTORE_MODE): Redefine.
30369 (emit_scc_insn): When TARGET_ARCH64, emit new 64-bit boolean
30371 * config/sparc/predicates.md (cstore_result_operand): New special
30373 * config/sparc/sparc.md (cstoresi4, cstoredi4, cstore<F:mode>4):
30374 Use it for operand 0.
30375 (*seqsi_special): Rewrite using 'P' mode iterator on operand 0.
30376 (*snesi_special): Likewise.
30377 (*snesi_zero): Likewise.
30378 (*seqsi_zero): Likewise.
30379 (*sltu_insn): Likewise.
30380 (*sgeu_insn): Likewise.
30381 (*seqdi_special): Make operand 0 and comparison operation be of
30383 (*snedi_special): Likewise.
30384 (*snedi_special_vis3): Likewise.
30385 (*neg_snesi_zero): Rename to *neg_snesisi_zero.
30386 (*neg_snesi_sign_extend): Rename to *neg_snesidi_zero.
30387 (*snesi_zero_extend): Delete, covered by 'P' mode iterator.
30388 (*neg_seqsi_zero): Rename to *neg_seqsisi_zero.
30389 (*neg_seqsi_sign_extend): Rename to *neg_seqsidi_zero.
30390 (*seqsi_zero_extend): Delete, covered by 'P' mode iterator.
30391 (*sltu_extend_sp64): Likewise.
30392 (*neg_sltu_insn): Rename to *neg_sltusi_insn.
30393 (*neg_sltu_extend_sp64): Rename to *neg_sltudi_insn.
30394 (*sgeu_extend_sp64): Delete, covered by 'P' mode iterator.
30395 (*neg_sgeu_insn): Rename to *neg_sgeusi_insn.
30396 (*neg_sgeu_extend_sp64): Rename to *neg_sgeudi_insn.
30398 2013-04-10 Yufeng Zhang <yufeng.zhang@arm.com>
30400 * config/aarch64/aarch64.c (aarch64_print_extension): New function.
30401 (aarch64_start_file): Use the new function.
30403 2013-04-10 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
30404 Jason Merrill <jason@redhat.com>
30406 * common.opt: Add -gdwarf.
30407 * opts.c (common_handle_option): Handle it.
30408 * gcc.c (ASM_DEBUG_SPEC): Don't expect "-2" for DWARF.
30410 2013-04-10 Richard Biener <rguenther@suse.de>
30412 * passes.c (execute_todo): Do not call ggc_collect conditional here.
30413 (execute_one_ipa_transform_pass): But unconditionally here.
30414 (execute_one_pass): And here.
30415 (init_optimization_passes): Remove reload pass.
30416 * tree-pass.h (TODO_ggc_collect): Remove.
30417 (pass_reload): Likewise.
30418 * ira.c (do_reload): Merge into ...
30420 (rest_of_handle_reload): Remove.
30421 (pass_reload): Likewise.
30422 * config/i386/i386.c (ix86_option_override): Refer to ira instead
30423 of reload for vzeroupper pass placement.
30424 * <everywhere>: Remove TODO_ggc_collect from todo_flags_start
30425 and todo_flags_finish of all passes.
30427 2013-04-10 Richard Biener <rguenther@suse.de>
30429 * tree-vectorizer.h (struct _slp_oprnd_info): Remove
30430 first_const_oprnd field, rename first_def_type to first_op_type.
30431 * tree-vect-slp.c (vect_create_oprnd_info): Adjust.
30432 (vect_get_and_check_slp_defs): Always use the type of the
30433 operand. Allow mixed vect_external_def, vect_constant_def types.
30434 (vect_get_constant_vectors): Handle mixed vect_external_def,
30435 vect_constant_def types.
30437 2013-04-10 Joern Rennecke <joern.rennecke@embecosm.com>
30439 PR tree-optimization/55524
30440 * tree-ssa-math-opts.c
30441 (convert_mult_to_fma): Don't use an fms construct
30442 when we don't have an fms operation, but fnma, and it looks
30443 likely that we'll be able to use the latter.
30445 2013-04-10 Zhouyi Zhou <yizhouzhou@ict.ac.cn>
30447 * cif-code.def (OVERWRITABLE): Correct the comment for overwritable
30449 * ipa-inline.c (can_inline_edge_p): Let dump mechanism report the
30450 inline fail caused by overwritable functions.
30452 2013-04-10 Chung-Ju Wu <jasonwucj@gmail.com>
30454 * combine.c (simplify_compare_const): Use GET_MODE_MASK to filter out
30455 unnecessary bits in the constant power of two case.
30457 2013-04-10 Richard Biener <rguenther@suse.de>
30459 * tree-vect-slp.c (vect_get_and_check_slp_defs): Remove
30460 broken code swapping operands.
30461 (vect_build_slp_tree): Do not compute load permutations here.
30462 (vect_analyze_slp_instance): Compute load permutations here,
30463 after building the SLP tree.
30465 2013-04-09 Christian Bruel <christian.bruel@st.com>
30467 * config/sh/sh.md (barrier_align): Use next/prev_active_insn instead
30468 of next/prev_real_insn.
30470 2013-04-09 Jan Hubicka <jh@suse.cz>
30472 * ipa.c (cgraph_externally_visible_p, varpool_externally_visible_p):
30473 Drop aliased parameter.
30474 (function_and_variable_visibility): Do not handle alias pairs.
30475 * cgraph.c (varpool_externally_visible_p): Update prototype.
30476 * varpool.c (varpool_add_new_variable): Update.
30478 2013-04-09 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
30480 * config/arm/arm.md (minmax_arithsi_non_canon): New pattern.
30482 2013-04-09 Steven Bosscher <steven@gcc.gnu.org>
30484 * sched-vis.c (print_pattern): Print SEQUENCE of insns as insns.
30486 * config/sparc/sparc.md: Use define_c_enum for "unspec" and "unspecv".
30488 2013-04-09 Marek Polacek <polacek@redhat.com>
30490 PR tree-optimization/48762
30491 * params.def (PARAM_MAX_CSE_INSNS): Increase the minimum value to 1.
30493 2013-04-09 Richard Biener <rguenther@suse.de>
30495 * tree-vect-slp.c (vect_get_and_check_slp_defs): Remove code
30497 (vect_build_slp_tree): Likewise.
30498 (vect_analyze_slp_cost_1, vect_analyze_slp_cost): New functions
30499 calculating the cost of a SLP instance.
30500 (vect_analyze_slp_instance): Use it from here, after building
30503 2013-04-09 Jakub Jelinek <jakub@redhat.com>
30505 PR middle-end/56883
30506 * omp-low.c (expand_omp_for_generic, expand_omp_for_static_nochunk,
30507 expand_omp_for_static_chunk): Use simple_p = true in
30508 force_gimple_operand_gsi calls when assigning to addressable decls.
30510 2013-04-09 Jeff Law <law@redhat.com>
30512 * tree-vrp.c (simplify_cond_using_ranges): Simplify test of boolean
30513 when the boolean was created by converting a wider object which
30514 had a boolean range.
30516 2013-04-09 Richard Biener <rguenther@suse.de>
30518 * tree-vectorizer.h (slp_void_p): Remove.
30519 (slp_tree): Typedef before _slp_tree declaration.
30520 (struct _slp_tree): Use a vector of slp_tree as children.
30521 (vect_get_place_in_interleaving_chain): Remove.
30522 * tree-vect-data-refs.c (vect_get_place_in_interleaving_chain):
30524 * tree-vect-slp.c (vect_get_place_in_interleaving_chain): ... here
30526 (vect_free_slp_tree, vect_print_slp_tree, vect_mark_slp_stmts,
30527 vect_mark_slp_stmts_relevant, vect_slp_rearrange_stmts,
30528 vect_detect_hybrid_slp_stmts, vect_slp_analyze_node_operations,
30529 vect_schedule_slp_instance, vect_remove_slp_scalar_calls):
30530 Use slp_node instead of slp_void_p and adjust.
30532 2013-04-09 Richard Biener <rguenther@suse.de>
30534 * tree-ssa-loop-manip.c (rewrite_into_loop_closed_ssa): Avoid
30535 work that is not necessary.
30537 2013-04-09 Jakub Jelinek <jakub@redhat.com>
30539 PR tree-optimization/56854
30540 * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Don't
30541 forward into clobber stmts if it would change MEM_REF lhs into
30544 2013-04-09 Maxim Kuvyrkov <maxim@kugelworks.com>
30546 * tree.c (type_hash_lookup, type_hash_add): Make static.
30547 * tree.h (type_hash_lookup, type_hash_add): Remove global declarations.
30549 2013-04-09 Richard Biener <rguenther@suse.de>
30551 * tree.h (unsave_expr_now): Remove.
30552 * tree-inline.c (mark_local_for_remap_r): Remove.
30553 (unsave_expr_1): Likewise.
30554 (unsave_r): Likewise.
30555 (unsave_expr_now): Likewise.
30556 * tree-ssa-copy.c (replace_exp_1): Use unshare_expr.
30557 (propagate_tree_value): Likewise.
30559 2013-04-08 Steven Bosscher <steven@gcc.gnu.org>
30561 * doc/rtl.texi (sequence): Rewrite documentation to match the
30562 current use of SEQUENCE rtl objects.
30563 * rtl.def (SEQUENCE): Likewise.
30565 * doc/rtl.texi (NOTE_INSN_EH_REGION_BEG, NOTE_INSN_EH_REGION_END):
30566 Update documentation.
30567 (NOTE_INSN_LOOP_BEG, NOTE_INSN_LOOP_END, NOTE_INSN_LOOP_CONT,
30568 NOTE_INSN_LOOP_VTOP): Remove documentation for non-existing notes.
30570 * reg-notes.def (REG_EH_CONTEXT): Remove unused note.
30572 2013-04-08 Teresa Johnson <tejohnson@google.com>
30574 * basic-block.h (GCOV_COMPUTE_SCALE): Define.
30575 * ipa-inline-analysis.c (param_change_prob): Use helper rounding divide
30577 (estimate_edge_size_and_time): Add comment to suggest using rounding
30579 (estimate_node_size_and_time): Ditto.
30580 (remap_edge_change_prob): Use helper rounding divide methods.
30581 * value-prof.c (gimple_divmod_fixed_value_transform): Ditto.
30582 (gimple_mod_pow2_value_transform): Ditto.
30583 (gimple_mod_subtract_transform): Ditto.
30584 (gimple_ic_transform): Ditto.
30585 (gimple_stringops_transform): Ditto.
30586 * stmt.c (conditional_probability): Ditto.
30587 (emit_case_dispatch_table): Ditto.
30588 * lto-cgraph.c (merge_profile_summaries): Ditto.
30589 * tree-optimize.c (execute_fixup_cfg): Ditto.
30590 * cfgcleanup.c (try_forward_edges): Ditto.
30591 * cfgloopmanip.c (scale_loop_profile): Ditto.
30593 (duplicate_loop_to_header_edge): Ditto.
30594 (lv_adjust_loop_entry_edge): Ditto.
30595 * tree-vect-loop.c (vect_transform_loop): Ditto.
30596 * profile.c (compute_branch_probabilities): Ditto.
30597 * cfgbuild.c (compute_outgoing_frequencies): Ditto.
30598 * lto-streamer-in.c (input_cfg): Ditto.
30599 * gimple-streamer-in.c (input_bb): Ditto.
30600 * ipa-cp.c (update_profiling_info): Ditto.
30601 (update_specialized_profile): Ditto.
30602 * tree-vect-loop-manip.c (slpeel_tree_peel_loop_to_edge): Ditto.
30603 * cfg.c (update_bb_profile_for_threading): Add comment to suggest using
30605 * sched-rgn.c (compute_dom_prob_ps): Ditto.
30606 (compute_trg_info): Ditto.
30607 * cfgrtl.c (force_nonfallthru_and_redirect): Ditto.
30608 (purge_dead_edges): Ditto.
30609 * loop-unswitch.c (unswitch_loop): Ditto.
30610 * cgraphclones.c (cgraph_clone_edge): Ditto.
30611 (cgraph_clone_node): Ditto.
30612 * tree-inline.c (copy_bb): Ditto.
30613 (copy_edges_for_bb): Ditto.
30614 (initialize_cfun): Ditto.
30615 (copy_cfg_body): Ditto.
30616 (expand_call_inline): Ditto.
30618 2013-04-08 Kai Tietz <ktietz@redhat.com>
30620 * config/i386/cygwin.h (EXTRA_OS_CPP_BUILTINS): Replaced
30621 TARGET_CYGWIN64 by TARGET_64BIT.
30623 2013-04-08 Joern Rennecke <joern.rennecke@embecosm.com>
30625 * config/epiphany/epiphany.md (GPR_1): New constant.
30626 (define_expand "mov<mode>cc): FAIL if gen_compare_reg returned 0.
30627 * config/epiphany/epiphany.c (gen_compare_reg):
30628 For flag_finite_math_only, avoid swapping operands when r0 and/or r1
30629 is already in place.
30630 Use GPR_0 / GPR_1 instead of 0/1 for r0/r1 register numbers.
30631 Don't require being called during rtl expansion; If y operlaps r0,
30633 (epiphany_compute_frame_size, epiphany_expand_prologue): Use GPR_1.
30634 (epiphany_expand_epilogue): Likewise.
30636 * config/epiphany/epiphany.c (epiphany_select_cc_mode):
30637 Don't use CC_FPmode for ORDERED / UNORDERED.
30638 * config/epiphany/epiphany.md (cmpsf_ord): Make pattern unconditional.
30640 * config/epiphany/constraints.md (CnL): New constraint.
30641 * config/epiphany/epiphany.md (addsi3_i): Add r/r/CnL alternative.
30642 * config/epiphany/predicates.md (add_operand): Allow 1024.
30644 * config/epiphany/epiphany.md (logical_op): New code iterator.
30645 (op_mnc): New code attribute.
30646 (<op_mnc>_f, mov_f, cstoresi4): New patterns.
30647 (mov_f+1, mov_f+2): New peephole2 patterns.
30649 * config/epiphany/epiphany.md (mov_f+2): New peephole2 pattern.
30650 (cstoresi4): Also allow re-use of zero result when doing a NE
30651 comparison to a non-zero operand.
30652 Use (clobber (scratch)) for first insn if the gpr output is not needed.
30654 * config/epiphany/epiphany.md (<insn_opname>v2si3):
30655 Use gen_addsi3_i / gen_subsi3_i.
30657 2013-04-08 Jakub Jelinek <jakub@redhat.com>
30661 * tree-eh.c (optimize_clobbers): Only remove clobbers if bb doesn't
30662 contain anything but clobbers, at most one __builtin_stack_restore,
30663 optionally debug stmts and final resx, and if it has at least one
30664 incoming EH edge. Don't check for SSA_NAME on LHS of a clobber.
30665 (sink_clobbers): Don't check for SSA_NAME on LHS of a clobber.
30666 Instead of moving clobbers with MEM_REF LHS with SSA_NAME address
30667 which isn't defaut definition, remove them.
30668 (unsplit_eh, cleanup_empty_eh): Use single_{pred,succ}_{p,edge}
30669 instead of EDGE_COUNT comparisons or EDGE_{PRED,SUCC}.
30670 * tree-ssa-ccp.c (execute_fold_all_builtins): Remove clobbers
30671 with MEM_REF LHS with SSA_NAME address.
30673 2013-04-08 Jeff Law <law@redhat.com>
30675 * gimple.c (canonicalize_cond_expr_cond): Rewrite x ^ y into x != y.
30677 2013-04-08 Richard Biener <rguenther@suse.de>
30679 * gimple-pretty-print.c (debug_gimple_stmt): Do not print
30681 * tree-vect-loop.c (vect_determine_vectorization_factor): Dump
30682 determined vector type.
30683 (vect_analyze_data_refs): Likewise.
30684 (vect_get_new_vect_var): Adjust.
30685 (vect_create_destination_var): Preserve SSA name versions.
30686 * tree-vect-stmts.c (get_vectype_for_scalar_type_and_size): Do
30687 not dump anything here.
30689 2013-04-08 Joern Rennecke <joern.rennecke@embecosm.com>
30691 * config/epiphany/epiphany.h (struct GTY (()) machine_function):
30692 Add member lr_slot_known.
30693 * config/epiphany/epiphany.md (reload_insi_ra): Compute lr_slot_offs
30695 * config/epiphany/epiphany.c (epiphany_compute_frame_size):
30696 Remove code that sets lr_slot_offset according to what a previous
30697 version of epiphany_emit_save_restore used to do.
30698 (epiphany_emit_save_restore): When doing an lr save or restore,
30699 set/verify lr_slot_known and lr_slot_offset.
30701 2013-04-08 Xinyu Qi <xyqi@marvell.com>
30704 * config/arm/arm.h (REG_CLASS_CONTENTS): Include IWMMXT_GR_REGS
30707 2013-04-08 Richard Biener <rguenther@suse.de>
30709 * alias.c (find_base_term): Fix thinko in previous change.
30711 2013-04-08 Jakub Jelinek <jakub@redhat.com>
30713 * tree-loop-distribution.c (const_with_all_bytes_same): New function.
30714 (generate_memset_builtin): Only handle integer_all_onesp as -1 val if
30715 TYPE_PRECISION is equal to mode bitsize. Use const_with_all_bytes_same
30716 if possible to compute val.
30717 (classify_partition): Verify CONSTRUCTOR doesn't have any elts.
30718 For QImode integers don't require anything about precision. Use
30719 const_with_all_bytes_same to find out if the constant doesn't have
30720 repeated bytes in it.
30722 2013-04-08 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
30724 * config/s390/s390.c (s390_expand_insv): Only accept insertions
30727 2013-04-08 Marek Polacek <polacek@redhat.com>
30729 PR rtl-optimization/48182
30730 * params.def (PARAM_MIN_CROSSJUMP_INSNS): Increase the minimum
30733 2013-04-06 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
30736 * config/pa/pa.c (legitimize_pic_address): Before incrementing label
30737 nuses, make sure we have a label.
30739 2013-04-05 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
30742 * config/rs6000/rs6000.c (rs6000_emit_swdiv_high_precision): Remove.
30743 (rs6000_emit_swdiv_low_precision): Remove.
30744 (rs6000_emit_swdiv): Rewrite to handle between one and four
30745 iterations of Newton-Raphson generally; modify required number of
30746 iterations for some cases.
30747 * config/rs6000/rs6000.h (RS6000_RECIP_HIGH_PRECISION_P): Remove.
30749 2013-04-05 Steven Bosscher <steven@gcc.gnu.org>
30751 * bb-reorder.c (fix_crossing_unconditional_branches): Remove a
30752 set-but-unused variable.
30754 * cgraph.c (cgraph_release_function_body): Clear cfun->cfg to make
30755 basic blocks of released function bodies garbage-collectable.
30757 * ree.c (find_and_remove_re): Do not call df_finish_pass here.
30758 (struct rtl_opt_pass): Add TODO_df_finish.
30760 * rtl.def (DEFINE_SUBST, DEFINE_SUBST_ATTR): Add documentation.
30762 2013-04-05 Greta Yorsh <Greta.Yorsh@arm.com>
30764 * config/arm/constraints.md (q): New constraint.
30765 * config/arm/ldrdstrd.md: New file.
30766 * config/arm/arm.md (ldrdstrd.md) New include.
30767 (arm_movdi): Use "q" instead of "r" constraint
30768 for double-word memory access.
30769 (movdf_soft_insn): Likewise.
30770 * config/arm/vfp.md (movdi_vfp): Likewise.
30771 * config/arm/t-arm (MD_INCLUDES): Add ldrdstrd.md.
30772 * config/arm/arm-protos.h (gen_operands_ldrd_strd): New declaration.
30773 * config/arm/arm.c (gen_operands_ldrd_strd): New function.
30774 (mem_ok_for_ldrd_strd): Likewise.
30775 (output_move_double): Update assertion.
30777 2013-04-05 Greta Yorsh <Greta.Yorsh@arm.com>
30779 * config/arm/arm.md: Comment on splitting Thumb1 patterns.
30781 2013-04-05 Greta Yorsh <Greta.Yorsh@arm.com>
30783 * config/arm/arm.md (arm_smax_insn): Convert define_insn into
30784 define_insn_and_split.
30785 (arm_smin_insn,arm_umaxsi3,arm_uminsi3): Likewise.
30787 2013-04-05 Greta Yorsh <Greta.Yorsh@arm.com>
30789 * config/arm/arm.md (arm_ashldi3_1bit): Convert define_insn into
30790 define_insn_and_split.
30791 (arm_ashrdi3_1bit,arm_lshrdi3_1bit): Likewise.
30792 (shiftsi3_compare): New pattern.
30793 (rrx): New pattern.
30794 * config/arm/unspecs.md (UNSPEC_RRX): New.
30796 2013-04-05 Greta Yorsh <Greta.Yorsh@arm.com>
30798 * config/arm/arm.md (negdi_extendsidi): New pattern.
30799 (negdi_zero_extendsidi): Likewise.
30801 2013-04-05 Greta Yorsh <Greta.Yorsh@arm.com>
30803 * config/arm/arm.md (andsi_iorsi3_notsi): Convert define_insn into
30804 define_insn_and_split.
30805 (arm_negdi2,arm_abssi2,arm_neg_abssi2): Likewise.
30806 (arm_cmpdi_insn,arm_cmpdi_unsigned): Likewise.
30808 2013-04-05 Greta Yorsh <Greta.Yorsh@arm.com>
30810 * config/arm/arm.md (arm_subdi3): Convert define_insn into
30811 define_insn_and_split.
30812 (subdi_di_zesidi,subdi_di_sesidi): Likewise.
30813 (subdi_zesidi_di,subdi_sesidi_di,subdi_zesidi_zesidi): Likewise.
30815 2013-04-05 Greta Yorsh <Greta.Yorsh@arm.com>
30817 * config/arm/arm.md (subsi3_carryin): New pattern.
30818 (subsi3_carryin_const): Likewise.
30819 (subsi3_carryin_compare,subsi3_carryin_compare_const): Likewise.
30820 (subsi3_carryin_shift,rsbsi3_carryin_shift): Likewise.
30822 2013-04-05 Greta Yorsh <Greta.Yorsh@arm.com>
30824 * config/arm/arm.md (incscc,arm_incscc,decscc,arm_decscc): Delete.
30826 2013-04-05 Greta Yorsh <Greta.Yorsh@arm.com>
30828 * config/arm/arm.md (addsi3_carryin_<optab>): Set attribute predicable.
30829 (addsi3_carryin_alt2_<optab>,addsi3_carryin_shift_<optab>): Likewise.
30831 2013-04-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
30833 * config/arm/arm.c (arm_expand_builtin): Change fcode
30834 type to unsigned int.
30836 2013-04-05 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
30838 * doc/invoke.texi (ARM Options): Document cortex-a53 support.
30840 2013-04-04 Ian Lance Taylor <iant@google.com>
30842 * doc/standards.texi (Standards): The Go frontend supports the Go 1
30845 2013-04-04 Steven Bosscher <steven@gcc.gnu.org>
30847 PR middle-end/56729
30848 * df-scan.c (df_insn_delete): Disable failing assert.
30850 2013-04-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
30852 * config/arm/arm-protos.h (arm_builtin_vectorized_function):
30853 New function prototype.
30854 * config/arm/arm.c (TARGET_VECTORIZE_BUILTINS): Define.
30855 (TARGET_VECTORIZE_BUILTIN_VECTORIZED_FUNCTION): Likewise.
30856 (arm_builtin_vectorized_function): New function.
30858 2013-04-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
30860 * config/arm/arm_neon_builtins.def: New file.
30861 * config/arm/arm.c (neon_builtin_data): Move contents to
30862 arm_neon_builtins.def.
30863 (enum arm_builtins): Include neon builtin definitions.
30864 (ARM_BUILTIN_NEON_BASE): Move from enum to macro.
30865 * config/arm/t-arm (arm.o): Add dependency on arm_neon_builtins.def.
30867 2013-04-04 Marek Polacek <polacek@redhat.com>
30869 PR tree-optimization/48186
30870 * predict.c (maybe_hot_frequency_p): Return false if
30871 HOT_BB_FREQUENCY_FRACTION is 0.
30872 (cgraph_maybe_hot_edge_p): Likewise.
30874 2013-04-04 Richard Biener <rguenther@suse.de>
30876 PR tree-optimization/56826
30877 * tree-vect-slp.c (vect_build_slp_tree): Compute ncopies
30880 2013-04-04 Richard Biener <rguenther@suse.de>
30882 PR tree-optimization/56213
30883 * tree-vect-data-refs.c (vect_check_strided_load): Remove.
30884 (vect_analyze_data_refs): Allow all non-nested loads as strided loads.
30886 2013-04-04 Richard Biener <rguenther@suse.de>
30888 PR tree-optimization/56837
30889 * tree-loop-distribution.c (classify_partition): For non-zero
30890 values require that the value has the same precision as its
30891 mode to be useful as memset value.
30893 2013-04-03 Nick Clifton <nickc@redhat.com>
30895 * config/v850/v850e3v5.md (fmasf4): Use fmaf.s on E3V5 architectures.
30896 (fmssf4): Use fmsf.s on E3V5 architectures.
30897 (fnmasf4): Use fnmaf.s on E3V5 architectures.
30898 (fnmssf4): Use fnmsf.s on E3V5 architectures.
30900 2013-04-03 Jeff Law <law@redhat.com>
30902 * Makefile.in (lra-constraints.o): Depend on $(OPTABS_H).
30903 (lra-eliminations.o): Likewise.
30905 2013-04-03 Teresa Johnson <tejohnson@google.com>
30907 * gcov-io.c (compute_working_sets): Moved most of body of old
30908 compute_working_sets here from profile.c.
30909 * gcov-io.h (NUM_GCOV_WORKING_SETS): Moved here from profile.c.
30910 (gcov_working_set_t): Moved typedef here from basic-block.h
30911 (compute_working_set): Declare.
30912 * profile.c (NUM_GCOV_WORKING_SETS): Moved to gcov-io.h.
30913 (get_working_sets): Renamed from compute_working_set,
30914 replace most of body with call to new compute_working_sets.
30915 (get_exec_counts): Replace call to compute_working_sets
30916 to get_working_sets.
30917 * profile.h (get_working_sets): Renamed from compute_working_set.
30918 * lto-cgraph.c (input_symtab): Replace call to compute_working_sets
30919 to get_working_sets.
30920 * basic-block.h (gcov_working_set_t): Moved to gcov-io.h.
30921 * gcov-dump.c (dump_working_sets): New function.
30923 2013-04-03 Kenneth Zadeck <zadeck@naturalbridge.com>
30925 * hwint.c (sext_hwi, zext_hwi): New functions.
30926 * hwint.h (HOST_BITS_PER_HALF_WIDE_INT, HOST_HALF_WIDE_INT,
30927 HOST_HALF_WIDE_INT_PRINT, HOST_HALF_WIDE_INT_PRINT_C,
30928 HOST_HALF_WIDE_INT_PRINT_DEC, HOST_HALF_WIDE_INT_PRINT_DEC_C,
30929 HOST_HALF_WIDE_INT_PRINT_UNSIGNED, HOST_HALF_WIDE_INT_PRINT_HEX,
30930 HOST_HALF_WIDE_INT_PRINT_HEX_PURE): New symbols.
30931 (sext_hwi, zext_hwi): New functions.
30933 2013-04-03 Jeff Law <law@redhat.com>
30935 PR tree-optimization/56799
30936 * tree-ssa-dom.c (record_equivalences_from_incoming_edge): Bring
30937 back test for widening conversion erroneously dropped in prior change.
30939 2013-04-03 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
30942 * config/aarch64/aarch64.c (is_jump_table): Use next_active_insn
30943 instead of next_real_insn.
30945 2013-04-03 Marek Polacek <polacek@redhat.com>
30948 * tsan.c (instrument_func_exit): Allow BUILT_IN_RETURN functions.
30950 2013-04-03 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
30953 * config/arm/arm.c (is_jump_table): Use next_active_insn instead of
30955 (thumb1_output_casesi): Likewise.
30956 (thumb2_output_casesi): Likewise.
30958 2013-04-03 Richard Biener <rguenther@suse.de>
30960 PR tree-optimization/56817
30961 * tree-ssa-loop-ivcanon.c (tree_unroll_loops_completely):
30963 (tree_unroll_loops_completely_1): ... new function to manually
30964 walk the loop tree, properly defering outer loops of unrolled
30965 loops to later iterations.
30967 2013-04-03 Marc Glisse <marc.glisse@inria.fr>
30969 * tree-vect-stmts.c (vectorizable_store): Accept BIT_FIELD_REF.
30970 (vectorizable_load): Likewise.
30971 * tree-vect-slp.c (vect_build_slp_tree): Likewise.
30972 * tree-vect-data-refs.c (vect_create_data_ref_ptr): Handle VECTOR_TYPE.
30974 2013-04-03 Marc Glisse <marc.glisse@inria.fr>
30976 * tree-flow-inline.h (get_addr_base_and_unit_offset_1): Handle
30979 2013-04-03 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
30981 * config/spu/spu.c (emit_nop_for_insn): Handle JUMP_TABLE_DATA.
30983 2013-04-03 Bin Cheng <bin.cheng@arm.com>
30985 * rtl.h (AUTO_INC_DEC): Fix typo of HAVE_POST_MODIFY_DISP.
30987 2013-04-03 Marc Glisse <marc.glisse@inria.fr>
30989 PR tree-optimization/56790
30990 * fold-const.c (fold_ternary_loc) <VEC_COND_EXPR>: Add constant
30993 2013-04-03 Marc Glisse <marc.glisse@inria.fr>
30995 * simplify-rtx.c (simplify_binary_operation_1) <VEC_SELECT>:
30997 (simplify_ternary_operation) <VEC_MERGE>: Use unsigned HOST_WIDE_INT
30998 for masks. Test for side effects. Handle nested VEC_MERGE. Handle
31001 2013-04-03 Jakub Jelinek <jakub@redhat.com>
31004 * tree.h (force_folding_builtin_constant_p): New decl.
31005 * builtins.c (force_folding_builtin_constant_p): New variable.
31006 (fold_builtin_constant_p): Fold immediately also if
31007 force_folding_builtin_constant_p.
31009 2013-04-03 Richard Biener <rguenther@suse.de>
31011 PR tree-optimization/56812
31012 * tree-vect-data-refs.c (vect_slp_analyze_data_ref_dependence):
31013 DRs of the same interleaving chain are independent.
31015 2013-04-02 Jason Merrill <jason@redhat.com>
31017 * gdbinit.in (pbb): Use debug fn.
31019 2013-04-02 Lawrence Crowl <crowl@google.com>
31021 * sese.h (struct ivtype_map_elt_s): Remove unused.
31022 (extern debug_ivtype_map): Remove unused.
31023 (extern eq_ivtype_map_elts): Remove unused.
31024 * sese.c (debug_ivtype_map): Removed unused.
31025 (debug_ivtype_map_1): Removed unused.
31026 (debug_ivtype_elt): Remove unused.
31027 (eq_ivtype_map_elts): Remove unused.
31029 2013-04-02 Kai Tietz <ktietz@redhat.com>
31032 * config/i386/cygming.h (SUB_TARGET_RECORD_STUB): New sub-target macro.
31033 * config/i386/i386-protos.h (i386_pe_record_stub): Add new prototype.
31034 * config/i386/i386.c (legitimize_pe_coff_extern_decl): New static
31036 (legitimize_pe_coff_symbol): Likewise.
31037 (is_imported_p): New helper-function.
31038 (ix86_option_override_internal): Make MEDIUM_PIC the default code-model
31039 for Windows x64 targets.
31040 (ix86_expand_prologue): Optimize for pe-coff targets.
31041 (ix86_expand_split_stack_prologue): Adjust for pe-coff targets.
31042 (legitimate_pic_address_disp_p): Adjust for x64 pe-coff to support
31043 medium/large code-model.
31044 (legitimize_pic_address): Likewise.
31045 (legitimize_tls_address): Likewise.
31046 (ix86_expand_call): Likewise.
31047 (x86_output_mi_thunk): Likewise.
31048 (get_dllimport_decl): Add new beimport argument.
31049 (construct_plt_address): Don't assert for x64 pe-coff targets.
31050 * config/i386/i386.h (PIC_OFFSET_TABLE_REGNUM): Adjust for x64 pe-coff
31052 (SYMBOL_FLAG_STUBVAR): New macro.
31053 (SYMBOL_REF_STUBVAR_P): Likewise.
31054 * config/i386/winnt.c (stub_list): New structure.
31055 (stub_head): New local variable.
31056 (i386_pe_record_stub): New function.
31057 (i386_pe_file_end): Emit refptr-stubs.
31059 2013-04-02 Jakub Jelinek <jakub@redhat.com>
31061 PR rtl-optimization/56745
31062 * ifcvt.c (cond_exec_find_if_block): Don't try to optimize
31063 if then_bb has no successors and else_bb is EXIT_BLOCK_PTR.
31066 * tree-ssa-alias.c (stmt_kills_ref_p_1): If base != ref->base
31067 and both of them are MEM_REFs, just compare first argument for
31068 equality and attempt to deal even with differing offsets.
31071 * tree-cfg.c (verify_gimple_assign_single): Allow lhs
31072 of gimple_clobber_p to be MEM_REF.
31073 * gimplify.c (gimplify_modify_expr): Gimplify *to_p of
31074 an assignment from TREE_CLOBBER_P. Allow it to be MEM_REF
31075 after gimplification.
31076 * asan.c (get_mem_ref_of_assignment): Don't instrument
31077 gimple_clobber_p stmts.
31078 * tree-ssa-dse.c (dse_optimize_stmt): Allow DSE of
31079 gimple_clobber_p stmt if they have MEM_REF lhs and
31080 are dead because of another gimple_clobber_p stmt.
31081 * tree-ssa-live.c (clear_unused_block_pointer): Treat
31082 gimple_clobber_p stmts like debug stmts.
31083 (remove_unused_locals): Remove clobbers with MEM_REF lhs
31084 that refer to unused VAR_DECLs or uninitialized values.
31085 * tree-sra.c (sra_ipa_reset_debug_stmts): Also remove
31086 gimple_clobber_p stmts if they refer to removed parameters.
31087 (get_repl_default_def_ssa_name, sra_ipa_modify_expr): Fix up
31090 2013-04-02 Uros Bizjak <ubizjak@gmail.com>
31092 * config/i386/i386.md (*testqi_ext_3): Merge with *testqi_ext_3_rex64
31093 using SWI48 mode attribute.
31095 2013-04-02 Wei Mi <wmi@google.com>
31097 * config/i386/i386.c (ix86_rtx_costs): Set proper rtx cost for
31098 ashl<mode>3_mask, *<shift_insn><mode>3_mask and
31099 *<rotate_insn><mode>3_mask in i386.md.
31101 2013-04-02 Alexander Ivchenko <alexander.ivchenko@intel.com>
31103 * config.gcc (arm*-*-linux-*): Remove duplicate t-linux-android.
31105 2013-04-02 Richard Biener <rguenther@suse.de>
31107 PR tree-optimization/56778
31108 * tree-vect-data-refs.c (vect_analyze_data_ref_dependence):
31109 Runtime alias tests are not supported for gather loads.
31110 * tree-vect-loop-manip.c (vect_loop_versioning): Insert
31111 stmts referenced from SSA operands before updating SSA form.
31113 2013-04-02 Ian Caulfield <ian.caulfield@arm.com>
31114 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
31116 * config/arm/arm-arches.def (armv8-a): Default to cortex-a53.
31117 * config/arm/t-arm (MD_INCLUDES): Depend on cortex-a53.md.
31118 * config/arm/cortex-a53.md: New file.
31119 * config/arm/bpabi.h (BE8_LINK_SPEC): Handle cortex-a53.
31120 * config/arm/arm.md (generic_sched, generic_vfp): Handle cortex-a53.
31121 * config/arm/arm.c (arm_issue_rate): Likewise.
31122 * config/arm/arm-tune.md: Regenerate
31123 * config/arm/arm-tables.opt: Regenerate.
31124 * config/arm/arm-cores.def: Add cortex-a53.
31126 2013-04-02 Zhenqiang Chen <zhenqiang.chen@arm.com>
31128 * config/arm/uclinux-elf.h: Add %L to LINK_GCC_C_SEQUENCE_SPEC for
31131 2013-04-02 Sofiane Naci <sofiane.naci@arm.com>
31133 * config/aarch64/aarch64.md (*mov<mode>_aarch64): Add variants for
31134 scalar load/store operations using B/H registers.
31135 (*zero_extend<SHORT:mode><GPI:mode>2_aarch64): Likewise.
31137 2013-04-02 Sofiane Naci <sofiane.naci@arm.com>
31139 * config/aarch64/aarch64.md (*mov<mode>_aarch64): Add alternatives for
31141 * config/aarch64/aarch64.c
31142 (aarch64_simd_scalar_immediate_valid_for_move): New.
31143 * config/aarch64/aarch64-protos.h
31144 (aarch64_simd_scalar_immediate_valid_for_move): New.
31145 * config/aarch64/constraints.md (Dh, Dq): New.
31146 * config/aarch64/iterators.md (hq): New.
31148 2013-04-02 Eric Botcazou <ebotcazou@adacore.com>
31150 * reorg.c (get_branch_condition): Deal with conditional returns.
31151 (fill_simple_delay_slots): Remove dead code dealing with jumps.
31153 2013-04-01 Wei Mi <wmi@google.com>
31155 * config/i386/i386.md (*ashl<mode>3_mask): Rewrite as define_insn.
31156 Truncate operand 2 using %b asm operand modifier.
31157 (*<shift_insn><mode>3_mask): Ditto.
31158 (*<rotate_insn><mode>3_mask): Ditto.
31160 2013-04-01 Steven Bosscher <steven@gcc.gnu.org>
31162 PR middle-end/56798
31163 * cfgbuild.c (inside_basic_block_p): Restore check broken at r197234.
31165 2013-03-31 Kaz Kojima <kkojima@gcc.gnu.org>
31167 * config/sh/sh.md (casesi_worker_1): Use next_active_insn instead
31169 (casesi_worker_2, casesi_shift_media, casesi_load_media): Likewise.
31171 2013-03-30 Lawrence Crowl <crowl@google.com>
31173 * dse.c (clear_alias_sets): Remove never set.
31174 (disqualified_clear_alias_sets): Remove never set.
31175 (clear_alias_mode_pool): Remove never set.
31176 (dse_step0): Remove condition that is never true.
31177 (canon_address): Remove condition that is never true.
31178 (dse_step7): Remove condition that is never true.
31179 (rest_of_handle_dse): Remove condition that is never true.
31180 (rest_of_handle_dse::did_global): Remove never read from above.
31181 (dse_step2_spill): Remove never called from above.
31182 (dse_step5_spill): Remove never called from above.
31184 2013-03-30 Steven Bosscher <steven@gcc.gnu.org>
31186 * doc/md.texi (Standard Names) <casesi>: Update documentation for
31187 JUMP_TABLE_DATA changes.
31188 * doc/tm.texi.in (Dispatch Tables) <ASM_OUTPUT_CASE_LABEL>: Likewise.
31189 * doc/rtl.texi (Flags) <INSN_DELETED_P, SCHED_GROUP_P>: Likewise.
31190 (Insns) <jump_table_data>: New entry.
31191 * doc/tm.texi: Regenerate.
31193 * cfgrtl.c (fixup_reorder_chain): Do not emit barriers to BB_FOOTER.
31195 * postreload-gcse.c (bb_has_well_behaved_predecessors): Correct test
31196 for table jump at the end of a basic block using tablejump_p.
31197 * targhooks.c (default_invalid_within_doloop): Likewise.
31198 * config/rs6000/rs6000.c (TARGET_INVALID_WITHIN_DOLOOP): Remove
31199 target hook implementation that is identical to the default hook.
31200 (rs6000_invalid_within_doloop): Remove.
31202 * bb-reorder.c (fix_crossing_unconditional_branches): Remove set but
31203 unused variable from tablejump_p call.
31205 * rtl.def (JUMP_TABLE_DATA): New RTX_INSN object.
31206 * rtl.h (RTX_PREV, RTX_NEXT): Adjust for new JUMP_TABLE_DATA.
31207 (INSN_DELETED_P): Likewise.
31208 (emit_jump_table_data): New prototype.
31209 * gengtype.c (adjust_field_rtx_def): Handle JUMP_TABLE_DATA fields
31210 after 4th as unused.
31211 * print-rtl.c (print_rtl): Handle JUMP_TABLE_DATA.
31212 * sched-vis.c (print_insn): Likewise.
31213 * emit-rtl.c (active_insn_p): Consider JUMP_TABLE_DATA an active
31214 insn for compatibility with back ends that use next_active_insn to
31215 identify jump table data.
31216 (set_insn_deleted): Remove no longer useful JUMP_TABLE_DATA_P check.
31217 (remove_insn): Likewise.
31218 (emit_insn): Do not accept JUMP_TABLE_DATA objects in insn chains
31220 (emit_debug_insn, emit_jump_insn, emit_call_insn, emit_label): Idem.
31221 (emit_jump_table_data): New function.
31223 * cfgbuild.c (inside_basic_block_p): A JUMP_INSN is always inside a
31224 basic block, a JUMP_TABLE_DATA never is.
31225 (control_flow_insn_p): JUMP_TABLE_DATA is not a control flow insn.
31226 * cfgrtl.c (duplicate_insn_chain): Split handling of JUMP_TABLE_DATA
31227 off from code handling real insns.
31228 * final.c (get_attr_length_1): Simplify for JUMP_INSNs.
31229 * function.c (instantiate_virtual_regs): Remove JUMP_TABLE_DATA_P
31230 test, now redundant because JUMP_TABLE_DATA is not an INSN_P insn.
31231 * gcse.c (insert_insn_end_basic_block): Likewise, JUMP_TABLE_DATA_P
31232 is not a NONDEBUG_INSN_P.
31233 * ira-costs.c (scan_one_insn): Likewise.
31234 * jump.c (mark_all_labels): Likewise.
31235 (mark_jump_label_1): Likewise.
31236 * lra-eliminations.c (eliminate_regs_in_insn): Likewise.
31237 * lra.c (get_insn_freq): Expect all insns reaching here to be in
31239 (check_rtl): Remove JUMP_TABLE_DATA_P test, not a NONDEBUG_INSN_P insn.
31240 * predict.c (expensive_function_p): Use FOR_BB_INSNS.
31241 * reload1.c (calculate_needs_all_insns): Call set_label_offsets for
31242 JUMP_TABLE_DATA_P insns.
31243 (calculate_elim_costs_all_insns): Likewise.
31244 (set_label_offsets): Recurse on the PATTERN of JUMP_TABLE_DATA insns.
31245 (elimination_costs_in_insn): Remove redundant JUMP_TABLE_DATA_P test.
31246 (delete_output_reload): Code style fixups.
31247 * reorg.c (dbr_schedule): Move JUMP_TABLE_DATA_P up to avoid setting
31248 insn flags on this non-insn.
31249 * sched-rgn.c (add_branch_dependences): Treat JUMP_TABLE_DATA insns
31250 as scheduling barriers, for pre-change compatibility.
31251 * stmt.c (emit_case_dispatch_table): Emit jump table data not as
31252 JUMP_INSN objects but instead as JUMP_TABLE_DATA objects.
31254 * config/alpha/alpha.c (alpha_does_function_need_gp): Remove
31255 redundant JUMP_TABLE_DATA_P test.
31256 * config/arm/arm.c (thumb_far_jump_used_p): Likewise.
31257 * config/frv/frv.c (frv_function_contains_far_jump): Likewise.
31258 (frv_for_each_packet): Likewise.
31259 * config/i386/i386.c (min_insn_size): Likewise.
31260 (ix86_avoid_jump_mispredicts): Likewise.
31261 * config/m32r/m32r.c (m32r_is_insn): Likewise.
31262 * config/mep/mep.c (mep_reorg_erepeat): Likewise.
31263 * config/mips/mips.c (USEFUL_INSN_P): Likewise.
31264 (mips16_insn_length): Robustify.
31265 (mips_has_long_branch_p): Remove redundant JUMP_TABLE_DATA_P test.
31266 (mips16_split_long_branches): Likewise.
31267 * config/pa/pa.c (pa_combine_instructions): Likewise.
31268 * config/rs6000/rs6000.c (get_next_active_insn): Treat
31269 JUMP_TABLE_DATA objects as active insns, like in active_insn_p.
31270 * config/s390/s390.c (s390_chunkify_start): Treat JUMP_TABLE_DATA
31271 as contributing to pool range lengths.
31272 * config/sh/sh.c (find_barrier): Restore check for ADDR_DIFF_VEC.
31273 Remove redundant JUMP_TABLE_DATA_P test.
31274 (sh_loop_align): Likewise.
31275 (split_branches): Likewise.
31276 (sh_insn_length_adjustment): Likewise.
31277 * config/spu/spu.c (get_branch_target): Likewise.
31279 2013-03-29 Jan Hubicka <jh@suse.cz>
31281 * lto-cgraph.c (output_profile_summary, input_profile_summary): Use
31282 gcov streaming; stream hot bb threshold to ltrans.
31283 * predict.c (get_hot_bb_threshold): Break out from ....
31284 (maybe_hot_count_p): ... here.
31285 (set_hot_bb_threshold): New function.
31286 * lto-section-in.c (lto_section_name): Add profile.
31287 * profile.h (get_hot_bb_threshold, set_hot_bb_threshold): Declare.
31288 * ipa.c: Include hash-table.h, tree-inline.h, profile.h, lto-streamer.h
31289 and data-streamer.h
31290 (histogram_entry): New structure.
31291 (histogram, histogram_pool): New global vars.
31292 (histogram_hash): New structure.
31293 (histogram_hash::hash): New method.
31294 (histogram_hash::equal): Likewise.
31295 (account_time_size): New function.
31296 (cmp_counts): New function.
31297 (dump_histogram): New function.
31298 (ipa_profile_generate_summary): New function.
31299 (ipa_profile_write_summary): New function.
31300 (ipa_profile_read_summary): New function.
31301 (ipa_profile): Decide on threshold.
31302 (pass_ipa_profile): Add ipa_profile_write_summary and
31303 ipa_profile_read_summary.
31304 * Makefile.in (ipa.o): Update dependencies.
31305 * lto-streamer.h (LTO_section_ipa_profile): New section.
31307 2013-03-29 Gabriel Dos Reis <gdr@integrable-solutions.net>
31309 * tree.h (VAR_P): New.
31311 2013-03-29 Paolo Carlini <paolo.carlini@oracle.com>
31314 * doc/invoke.texi ([-fwhole-program]): Fix typo.
31316 2013-03-29 Steven Bosscher <steven@gcc.gnu.org>
31318 * cfgbuild.c (inside_basic_block_p): Use JUMP_TABLE_DATA_P in lieu
31319 of tests for JUMP_P and a ADDR_DIFF_VEC or ADDR_VEC pattern.
31320 (control_flow_insn_p): Likewise.
31321 * cfgrtl.c (duplicate_insn_chain): Likewise.
31322 * final.c (get_attr_length_1): Likewise.
31323 (shorten_branches): Likewise.
31324 (final_scan_insn): Likewise.
31325 * function.c (instantiate_virtual_regs): Likewise.
31326 * gcse.c (insert_insn_end_basic_block): Likewise.
31327 * ira-costs.c (scan_one_insn): Likewise.
31328 * lra-eliminations.c (eliminate_regs_in_insn): Likewise.
31329 * lra.c (check_rtl): Likewise.
31330 * reload1.c (elimination_costs_in_insn): Likewise.
31331 * reorg.c (follow_jumps): Likewise.
31333 * config/arm/arm.c (is_jump_table): Use JUMP_TABLE_DATA_P in lieu
31334 of tests for JUMP_P and a ADDR_DIFF_VEC or ADDR_VEC pattern.
31335 (thumb_far_jump_used_p): Likewise.
31336 * config/bfin/bfin.c (workaround_rts_anomaly): Likewise.
31337 (workaround_speculation): Likewise.
31338 (add_sched_insns_for_speculation): Likewise.
31339 * config/c6x/c6x.c (reorg_emit_nops): Likewise.
31340 * config/frv/frv.c (frv_function_contains_far_jump): Likewise.
31341 (frv_for_each_packet): Likewise.
31342 * config/i386/i386.c (ix86_avoid_jump_mispredicts): Likewise.
31343 * config/ia64/ia64.c (emit_all_insn_group_barriers): Likewise.
31344 (final_emit_insn_group_barriers): Likewise.
31345 * config/m32r/m32r.c (m32r_is_insn): Likewise.
31346 * config/mips/mips.c (USEFUL_INSN_P): Likewise.
31347 (mips16_insn_length): Likewise.
31348 * config/pa/pa.c (pa_reorg): Likewise.
31349 (pa_combine_instructions): Likewise.
31350 * config/rs6000/rs6000.c (rs6000_invalid_within_doloop): Likewise.
31351 * config/sh/sh.c (fixup_addr_diff_vecs): Likewise.
31352 (sh_reorg): Likewise.
31353 (split_branches): Likewise.
31354 * config/spu/spu.c (get_branch_target): Likewise.
31356 * config/s390/s390.c (s390_chunkify_start): Simplify logic using
31359 2013-03-29 Kirill Yukhin <kirill.yukhin@intel.com>
31361 * config/i386/avx2intrin.h (_mm256_broadcastsi128_si256):
31362 Fix declaration name.
31364 2013-03-28 Lawrence Crowl <crowl@google.com>
31366 * graphds.h (struct graph.indicies): Remove unused.
31367 * graphite-poly.h (struct graph.original_pddrs): Remove unused.
31368 (SCOP_ORIGINAL_PDDRS): Remove unused.
31369 * sese.h (extern insert_loop_close_phis): Removed unused.
31370 (extern insert_guard_phis): Removed unused.
31371 (extern ivtype_map_elt_info): Removed unused.
31372 (new_ivtype_map_elt): Removed unused.
31373 * sese.c (ivtype_map_elt_info): Removed unused.
31375 2013-03-28 Lawrence Crowl <crowl@google.com>
31377 * Makefile.in: Add several missing include dependences.
31379 (test-dump.o): New. This object is not added to any executable,
31380 but is present for ad-hoc testing.
31382 (debug (const bitmap_head_def &)): New.
31383 (debug (const bitmap_head_def *)): New.
31385 (extern debug (const bitmap_head_def &)): New.
31386 (extern debug (const bitmap_head_def *)): New.
31388 (debug (edge_def &)): New.
31389 (debug (edge_def *)): New.
31391 (debug (basic_block_def &)): New.
31392 (debug (basic_block_def *)): New.
31394 (dump_node (const_tree, int, FILE *)): Correct source file.
31396 (debug (die_struct &)): New.
31397 (debug (die_struct *)): New.
31399 (extern debug (die_struct &)): New.
31400 (extern debug (die_struct *)): New.
31401 * gimple-pretty-print.c
31402 (debug (gimple_statement_d &)): New.
31403 (debug (gimple_statement_d *)): New.
31404 * gimple-pretty-print.h
31405 (extern debug (gimple_statement_d &)): New.
31406 (extern debug (gimple_statement_d *)): New.
31408 (debug (ira_allocno_copy &)): New.
31409 (debug (ira_allocno_copy *)): New.
31410 (debug (ira_allocno &)): New.
31411 (debug (ira_allocno *)): New.
31413 (extern debug (ira_allocno_copy &)): New.
31414 (extern debug (ira_allocno_copy *)): New.
31415 (extern debug (ira_allocno &)): New.
31416 (extern debug (ira_allocno *)): New.
31418 (debug (live_range &)): New.
31419 (debug (live_range *)): New.
31421 (debug (lra_live_range &)): New.
31422 (debug (lra_live_range *)): New.
31424 (debug (lra_live_range &)): New.
31425 (debug (lra_live_range *)): New.
31427 (debug (omega_pb_d &)): New.
31428 (debug (omega_pb_d *)): New.
31430 (extern debug (omega_pb_d &)): New.
31431 (extern debug (omega_pb_d *)): New.
31433 (debug (const rtx_def &)): New.
31434 (debug (const rtx_def *)): New.
31436 (debug_tree (tree): Move within file.
31437 (debug_raw (const tree_node &)): New.
31438 (debug_raw (const tree_node *)): New.
31439 (dump_tree_via_hooks (const tree_node *, int)): New.
31440 (debug (const tree_node &)): New.
31441 (debug (const tree_node *)): New.
31442 (debug_verbose (const tree_node &)): New.
31443 (debug_verbose (const tree_node *)): New.
31444 (debug_head (const tree_node &)): New.
31445 (debug_head (const tree_node *)): New.
31446 (debug_body (const tree_node &)): New.
31447 (debug_body (const tree_node *)): New.
31448 (debug_vec_tree (tree): Move and reimplement in terms of dump.
31449 (debug (vec<tree, va_gc> &)): New.
31450 (debug (vec<tree, va_gc> *)): New.
31452 (extern debug (const rtx_def &)): New.
31453 (extern debug (const rtx_def *)): New.
31455 (debug_raw (simple_bitmap_def &)): New.
31456 (debug_raw (simple_bitmap_def *)): New.
31457 (debug (simple_bitmap_def &)): New.
31458 (debug (simple_bitmap_def *)): New.
31460 (extern debug (simple_bitmap_def &)): New.
31461 (extern debug (simple_bitmap_def *)): New.
31462 (extern debug_raw (simple_bitmap_def &)): New.
31463 (extern debug_raw (simple_bitmap_def *)): New.
31465 (debug (vinsn_def &)): New.
31466 (debug (vinsn_def *)): New.
31467 (debug_verbose (vinsn_def &)): New.
31468 (debug_verbose (vinsn_def *)): New.
31469 (debug (expr_def &)): New.
31470 (debug (expr_def *)): New.
31471 (debug_verbose (expr_def &)): New.
31472 (debug_verbose (expr_def *)): New.
31473 (debug (vec<rtx> &)): New.
31474 (debug (vec<rtx> *)): New.
31476 (extern debug (vinsn_def &)): New.
31477 (extern debug (vinsn_def *)): New.
31478 (extern debug_verbose (vinsn_def &)): New.
31479 (extern debug_verbose (vinsn_def *)): New.
31480 (extern debug (expr_def &)): New.
31481 (extern debug (expr_def *)): New.
31482 (extern debug_verbose (expr_def &)): New.
31483 (extern debug_verbose (expr_def *)): New.
31484 (extern debug (vec<rtx> &)): New.
31485 (extern debug (vec<rtx> *)): New.
31487 (_list_iter_cond_expr): Make inline instead of static.
31489 (debug (sreal &)): New.
31490 (debug (sreal *)): New.
31492 (extern debug (sreal &)): New.
31493 (extern debug (sreal *)): New.
31495 (extern debug_raw (const tree_node &)): New.
31496 (extern debug_raw (const tree_node *)): New.
31497 (extern debug (const tree_node &)): New.
31498 (extern debug (const tree_node *)): New.
31499 (extern debug_verbose (const tree_node &)): New.
31500 (extern debug_verbose (const tree_node *)): New.
31501 (extern debug_head (const tree_node &)): New.
31502 (extern debug_head (const tree_node *)): New.
31503 (extern debug_body (const tree_node &)): New.
31504 (extern debug_body (const tree_node *)): New.
31505 (extern debug (vec<tree, va_gc> &)): New.
31506 (extern debug (vec<tree, va_gc> *)): New.
31508 (debug (struct loop &)): New.
31509 (debug (struct loop *)): New.
31510 (debug_verbose (struct loop &)): New.
31511 (debug_verbose (struct loop *)): New.
31512 * tree-dump.c: Add header dependence.
31514 (extern debug (struct loop &)): New.
31515 (extern debug (struct loop *)): New.
31516 (extern debug_verbose (struct loop &)): New.
31517 (extern debug_verbose (struct loop *)): New.
31519 (debug (data_reference &)): New.
31520 (debug (data_reference *)): New.
31521 (debug (vec<data_reference_p> &)): New.
31522 (debug (vec<data_reference_p> *)): New.
31523 (debug (vec<ddr_p> &)): New.
31524 (debug (vec<ddr_p> *)): New.
31526 (extern debug (data_reference &)): New.
31527 (extern debug (data_reference *)): New.
31528 (extern debug (vec<data_reference_p> &)): New.
31529 (extern debug (vec<data_reference_p> *)): New.
31530 (extern debug (vec<ddr_p> &)): New.
31531 (extern debug (vec<ddr_p> *)): New.
31533 (debug (pt_solution &)): New.
31534 (debug (pt_solution *)): New.
31536 (extern debug (pt_solution &)): New.
31537 (extern debug (pt_solution *)): New.
31539 (debug (_var_map &)): New.
31540 (debug (_var_map *)): New.
31541 (debug (tree_live_info_d &)): New.
31542 (debug (tree_live_info_d *)): New.
31544 (extern debug (_var_map &)): New.
31545 (extern debug (_var_map *)): New.
31546 (extern debug (tree_live_info_d &)): New.
31547 (extern debug (tree_live_info_d *)): New.
31549 2013-03-28 Jan Hubicka <jh@suse.cz>
31551 * lto-cgraph.c (merge_profile_summaries): Fix overflows.
31553 2013-03-28 Ian Bolton <ian.bolton@arm.com>
31555 * config/aarch64/aarch64.md (aarch64_can_eliminate): Keep frame
31556 record only when desired or required.
31558 2013-03-28 Uros Bizjak <ubizjak@gmail.com>
31560 * config/i386/i386.md (*vec_extract2vdi_1): Merge with
31561 *vec_extractv2di_1_rex64. Use x64 isa attribute.
31563 2013-03-28 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
31565 * config/aarch64/aarch64.md (*and<mode>3_compare0): New pattern.
31566 (*andsi3_compare0_uxtw): New pattern.
31567 (*and_<SHIFT:optab><mode>3_compare0): New pattern.
31568 (*and_<SHIFT:optab>si3_compare0_uxtw): New pattern.
31570 2013-03-28 Jan Hubicka <jh@suse.cz>
31572 * data-streamer-in.c (streamer_read_gcov_count): New function.
31573 * gimple-streamer-out.c: Include value-prof.h.
31574 (output_gimple_stmt): Output histogram.
31575 (output_bb): Use streamer_write_gcov_count.
31576 * value-prof.c: Include data-streamer.h
31577 (dump_histogram_value): Add HIST_TYPE_MAX.
31578 (stream_out_histogram_value): New function.
31579 (stream_in_histogram_value): New function.
31580 * value-prof.h (enum hist_type): Add HIST_TYPE_MAX.
31581 (stream_out_histogram_value, stream_in_histogram_value): Declare.
31582 * data-streamer-out.c (streamer_write_gcov_count): New function.
31583 (streamer_write_gcov_count_stream): New function.
31584 * lto-cgraph.c (lto_output_edge): Update counter streaming.
31585 (lto_output_node): Likewise.
31586 (input_node, input_edge): Likewise.
31587 * lto-streamer-out.c (output_cfg): Update streaming.
31588 * lto-streamer-in.c (input_cfg): Likewise.
31589 * data-streamer.h (streamer_write_gcov_count,
31590 streamer_write_gcov_count_stream, streamer_read_gcov_count): Declare.
31591 * gimple-streamer-in.c: Include value-prof.h
31592 (input_gimple_stmt): Input histograms.
31593 (input_bb): Update profile streaming.
31595 2013-03-28 Kenneth Zadeck <zadeck@naturalbridge.com>
31597 * genmodes.c (emit_max_int): New function.
31598 (emit_insn_modes_h): Added call to emit_max_function.
31599 * doc/rtl.texi (MAX_BITSIZE_MODE_ANY_INT, MAX_BITSIZE_MODE_ANY_MODE):
31601 * machmode.def: Fixed comment.
31603 2013-03-28 Kenneth Zadeck <zadeck@naturalbridge.com>
31605 * combine.c (try_combine): Removed useless assert.
31606 * cselib.c (rtx_equal_for_cselib_1): Removed unnecessary parens.
31608 2013-03-28 Marek Polacek <polacek@redhat.com>
31609 Richard Biener <rguenther@suse.de>
31611 PR tree-optimization/56695
31612 * tree-vect-stmts.c (vectorizable_condition): Unconditionally
31613 build signed result of a vector comparison.
31614 * tree-cfg.c (verify_gimple_comparison): Check that a result
31615 of a vector comparison has signed type.
31617 2013-03-28 Richard Biener <rguenther@suse.de>
31619 PR tree-optimization/37021
31620 * tree-vect-slp.c (vect_build_slp_tree): When not unrolling
31621 do not restrict gaps between groups.
31622 * tree-vect-stmts.c (vectorizable_load): Properly account for
31623 a gap between groups.
31625 2013-03-28 Eric Botcazou <ebotcazou@adacore.com>
31627 * toplev.c (process_options): Do not disable -fomit-frame-pointer on a
31628 general basis if unwind info is requested and ACCUMULATE_OUTGOING_ARGS
31631 2013-03-27 Gerald Pfeifer <gerald@pfeifer.com>
31633 * doc/invoke.texi (AVR Options): Tweak link for AVR-LibC user manual.
31634 * doc/extend.texi (Named Address Spaces): Ditto.
31635 (Variable Attributes): Ditto.
31637 2013-03-27 Kai Tietz <ktietz@redhat.com>
31639 * config.build: Add support for cygwin x64 target.
31640 * config.gcc: Likewise.
31641 * config.host: Likewise.
31642 * configure.ac: Likewise
31643 * configure: Regenerated.
31645 2013-03-27 Kai Tietz <ktietz@redhat.com>
31647 * config/i386/cygwin-stdint.h: Add support for cygwin x64 target.
31648 * config/i386/t-cygwin-w64: New file.
31649 * config/i386/cygwin-w64.h: New file.
31650 * config/i386/cygwin.h (EXTRA_OS_CPP_BUILTINS): Extend
31651 and add support for x64-cygwin target.
31652 (CPP_SPEC): Likewise.
31653 (CXX_WRAP_SPEC_LIST): Undefine before define.
31654 (LIBGCJ_SONAME): Use 15 as version.
31656 2013-03-27 Richard Biener <rguenther@suse.de>
31658 PR tree-optimization/56716
31659 * tree-ssa-structalias.c (perform_var_substitution): Adjust
31660 dumping for ref nodes.
31662 2013-03-27 Martin Jambor <mjambor@suse.cz>
31664 PR tree-optimization/55334
31665 * ipa-cp.c (initialize_node_lattices): Allow IPA-CP through and to
31666 restricted pointers to arrays.
31668 2013-03-27 Gabriel Dos Reis <gdr@integrable-solutions.net>
31670 * Makefile.in (.SUFFIXES): Add .cc.
31671 (.c.o): Apply same recipe for implicit rule .cc.o.
31673 2013-03-27 Richard Biener <rguenther@suse.de>
31675 PR tree-optimization/37021
31676 * tree-vect-data-refs.c (vect_check_strided_load): Allow
31677 REALPART/IMAGPART_EXPRs around the supported refs.
31678 * tree-ssa-structalias.c (find_func_aliases): Assume that
31679 floating-point values are not used to transfer pointers.
31681 2013-03-27 Alexander Ivchenko <alexander.ivchenko@intel.com>
31683 * target.def (TARGET_HAS_IFUNC_P): New target hook.
31684 * doc/tm.texi.in (TARGET_HAS_IFUNC_P): New.
31685 * doc/tm.texi: Regenerate.
31686 * targhooks.h (default_has_ifunc_p): New.
31687 * targhooks.c (default_has_ifunc_p): Ditto.
31688 * config/linux-protos.h: New file.
31689 * config/linux-android.h (TARGET_HAS_IFUNC_P): Using version of this
31690 hook for linux which disables support of indirect functions in android.
31691 * config/linux-android.c: New file.
31692 * config/t-linux-android.c: Ditto.
31693 * config.gcc: Added new object file linux-android.o.
31694 * config/i386/i386.c (ix86_get_function_versions_dispatcher):
31695 Using TARGET_HAS_IFUNC hook instead of HAVE_GNU_INDIRECT_FUNCTION.
31696 * varasm.c (do_assemble_alias): Likewise.
31697 * configure.ac: Define HAVE_GNU_INDIRECT_FUNCTION as zero if the target
31698 doesn't support indirect functions.
31699 * configure: Regenerate.
31701 2013-03-27 Bin Cheng <bin.cheng@arm.com>
31704 * config/arm/arm.c (thumb1_rtx_costs, thumb1_size_rtx_costs): Fix
31705 rtx costs for SET/ASHIFT/ASHIFTRT/LSHIFTRT/ROTATERT patterns with
31708 2013-03-27 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
31710 * config/s390/s390.h (TARGET_FLT_EVAL_METHOD): Define.
31712 2013-03-27 Terry Guo <terry.guo@arm.com>
31714 * config/arm/arm-cores.def: Added core cortex-r7.
31715 * config/arm/arm-tune.md: Regenerated.
31716 * config/arm/arm-tables.opt: Regenerated.
31717 * doc/invoke.texi: Added entry for core cortex-r7.
31719 2013-03-27 Walter Lee <walt@tilera.com>
31721 * config/tilegx/tilegx.c (tilegx_expand_prologue): Avoid
31722 double-decrement of next_scratch_regno.
31724 2013-03-27 Walter Lee <walt@tilera.com>
31726 * config/tilegx/tilegx.md (insn_v1mulu): Fix predicates on
31728 (insn_v1mulus): Ditto.
31729 (insn_v2muls): Ditto.
31731 2013-03-27 Walter Lee <walt@tilera.com>
31733 * config/tilegx/tilegx.h (ASM_OUTPUT_ADDR_VEC_ELT): Delete extra tab.
31734 (ASM_OUTPUT_ADDR_DIFF_ELT): Ditto.
31736 2013-03-27 Walter Lee <walt@tilera.com>
31738 * config/tilegx/tilegx.md (*sibcall_insn): Fix type atribute for jr.
31739 (*sibcall_value): Ditto.
31741 2013-03-27 Walter Lee <walt@tilera.com>
31743 * config/tilegx/tilegx.md (insn_mnz_<mode>): Replaced by ...
31744 (insn_mnz_v8qi): ... this ...
31745 (insn_mnz_v4hi): ... and this. Replace (const_int 0) with the
31747 (insn_v<n>mnz): Replaced by ...
31748 (insn_v1mnz): ... this ...
31749 (insn_v2mnz): ... and this. Replace (const_int 0) with the vector
31751 (insn_mz_<mode>): Replaced by ...
31752 (insn_mz_v8qi): ... this ...
31753 (insn_mz_v4hi): ... and this. Replace (const_int 0) with the
31755 (insn_v<n>mz): Replaced by ...
31756 (insn_v1mz): ... this ...
31757 (insn_v2mz): ... and this. Replace (const_int 0) with the vector
31760 2013-03-26 Eric Botcazou <ebotcazou@adacore.com>
31762 * doc/invoke.texi (SPARC options): Remove -mlittle-endian.
31764 2013-03-26 Roland McGrath <mcgrathr@google.com>
31766 * config/arm/arm.c (arm_print_operand: case 'w'): Use fputs rather
31767 than fprintf with a non-constant, non-format string.
31769 2013-03-26 Uros Bizjak <ubizjak@gmail.com>
31771 * config/i386/i386.md (*cmpqi_ext_1): Merge with *cmpqi_ext_1_rex64
31772 using nox64 isa attribute. Use nonimmediate_x86nomem_operand as
31773 operand 0 predicate.
31774 (*cmpqi_ext_3): Merge with *cmpqi_ext_3_rex64 using nox64 isa
31775 attribute. Use general_x64nomem_operand as operand 1 predicate.
31776 (*movqi_extv_1): Merge with *movqi_extv_1_rex64 using nox64 isa
31777 attribute. Use nonimmediate_x64nomem_operand as operand 0 predicate.
31778 (*movqi_extzv_2): Merge with *movqi_extzv_2_rex64 using nox64 isa
31779 attribute. Use nonimmediate_x64nomem_operand as operand 0 predicate.
31780 (mov<mode>_insv_1): Remove expander. Merge insn with
31781 movsi_insv_1 using SWI48 mode iterator and nox64 isa attribute.
31782 Use general_x64nomem_operand as operand 1 predicate.
31783 (addqi_ext_1): Merge with *addqi_ext_1_rex64 using nox64 isa attribute.
31784 (*testqi_ext_1): Merge with *testqi_ext_1_rex64 using nox64 isa
31785 attribute. Use nonimmediate_x64nomem_operand as operand 1 predicate.
31786 (*andqi_ext_1): Merge with *andqi_ext_1_rex64 using nox64 isa
31787 attribute. Use nonimmediate_x64nomem_operand as operand 2 predicate.
31788 (*<code>qi_ext_1): Merge with *<code>qi_ext_1_rex64 using nox64 isa
31789 attribute. Use nonimmediate_x64nomem_operand as operand 1 predicate.
31790 (*xorqi_cc_ext_1): Merge with *xorqi_cc_ext_1_rex64 using nox64
31791 isa attribute. Use general_x64nomem_operand as operand 2 predicate.
31792 * config/i386/predicates.md (nonimmediate_x64nomem_operand): New.
31793 (general_x64nomem_operand): Ditto.
31795 2013-03-26 Sebastian Huber <sebastian.huber@embedded-brains.de>
31797 * config/rtems.opt: Add -pthread option.
31799 2013-03-26 Richard Biener <rguenther@suse.de>
31801 * alias.c (find_base_term): Avoid redundant and not used recursion.
31802 (base_alias_check): Get the initial base term from the caller.
31803 (true_dependence_1): Compute and pass base terms to base_alias_check.
31804 (write_dependence_p): Likewise.
31805 (may_alias_p): Likewise.
31807 2013-03-26 Sofiane Naci <sofiane.naci@arm.com>
31809 * config/aarch64/aarch64.c (aarch64_classify_address): Support
31810 PC-relative load in SI modes and above only.
31812 2013-03-26 Xinyu Qi <xyqi@marvell.com>
31814 * config/arm/arm.h (FIRST_IWMMXT_GR_REGNUM): Add comment.
31815 * config/arm/iwmmxt.md (WCGR0): Update.
31816 (WCGR1, WCGR2, WCGR3): Likewise.
31818 2013-03-26 Uros Bizjak <ubizjak@gmail.com>
31820 * config/i386/i386.md (*movdfcc_1): Merge with *movdfcc_1_rex64.
31821 Use x64 and nox64 isa attributes.
31823 2013-03-26 Richard Biener <rguenther@suse.de>
31825 * emit-rtl.c (set_mem_attributes_minus_bitpos): Remove
31826 alignment computations and rely on get_object_alignment_1
31827 for the !TYPE_P case.
31828 Commonize DECL/COMPONENT_REF handling in the ARRAY_REF path.
31830 2013-03-26 Walter Lee <walt@tilera.com>
31832 * config/tilegx/tilegx.h (PROFILE_BEFORE_PROLOGUE): Define.
31833 * config/tilegx/tilepro.h (PROFILE_BEFORE_PROLOGUE): Define.
31835 2013-03-25 Jeff Law <law@redhat.com>
31837 * tree-ssa-dom.c (record_equivalences_from_incoming_edge): Add missing
31838 check for INTEGRAL_TYPE_P that was missing due to checking in
31839 wrong version of prior patch.
31841 2013-03-25 Walter Lee <walt@tilera.com>
31843 * config/tilegx/tilegx-builtins.h (enum tilegx_builtin): Add
31844 TILEGX_INSN_SHUFFLEBYTES1.
31845 * config/tilegx/tilegx.c (tilegx_builtin_info): Add entry for
31847 (tilegx_builtins): Ditto.
31848 * config/tilegx/tilegx.md (insn_shufflebytes1): New pattern.
31850 2013-03-25 Walter Lee <walt@tilera.com>
31852 * config/tilegx/tilegx.md (floatsisf2): New pattern.
31853 (floatunssisf2): New pattern.
31854 (floatsidf2): New pattern.
31855 (floatunssidf2): New pattern.
31857 2013-03-25 Walter Lee <walt@tilera.com>
31859 * config/tilegx/tilegx.c (expand_set_cint64_one_inst): Inline
31860 tests for constraint J, K, N, P.
31862 2013-03-25 Walter Lee <walt@tilera.com>
31864 * config/tilegx/tilegx.c (tilegx_asm_preferred_eh_data_format):
31865 Use indirect/pcrel encoding.
31866 * config/tilepro/tilepro.c (tilepro_asm_preferred_eh_data_format):
31869 2013-03-25 Steve Ellcey <sellcey@mips.com>
31871 * config/mips/mmips-cpus.def (74kc, 74kf2_1, 74kf, 74kf, 74kf1_1,
31872 74kfx, 74kx, 74kf3_2): Add PTF_AVOID_IMADD.
31873 * config/mips/mips.c (mips_option_override): Set IMADD default.
31874 * config/mips/mips.h (PTF_AVOID_IMADD): New.
31875 (ISA_HAS_MADD_MSUB): Remove MIPS16 check.
31876 (GENERATE_MADD_MSUB): Remove TUNE_74K check, add MIPS16 check.
31877 * config/mips/mips.md (mimadd): New flag for integer madd/msub.
31878 * doc/invoke.texi (-mimadd/-mno-imadd): New.
31880 2013-03-25 Jeff Law <law@redhat.com>
31882 * tree-ssa-dom.c (record_equivalences_from_incoming_edge): Rework
31883 slightly to avoid creating and folding useless trees. Simplify
31884 slightly by restricting to INTEGER_CSTs and using int_fits_type_p.
31886 2013-03-25 Uros Bizjak <ubizjak@gmail.com>
31888 * config/i386/i386.md (*zero_extendsidi2): Merge with
31889 *zero_extendsidi2_rex64. Use x64 and nox64 isa attributes.
31890 * config/i386/predicates.md (x86_64_zext_operand): Rename from
31891 x86_64_zext_general_operand. Use nonimmediate_operand on 32bit
31892 targets. Clarify comment.
31894 2013-03-25 Martin Jambor <mjambor@suse.cz>
31896 * ipa-prop.c (ipa_write_jump_function): Stream simple and aritmetic
31897 pass-through jump functions differently.
31898 (ipa_read_jump_function): Likewise. Also use setter functions to set
31901 2013-03-25 Martin Jambor <mjambor@suse.cz>
31903 * ipa-cp.c (ipa_get_indirect_edge_target): Renamed to
31904 ipa_get_indirect_edge_target_1, added parameter agg_reps and ability to
31906 (ipa_get_indirect_edge_target): New function.
31907 (devirtualization_time_bonus): New parameter known_aggs, pass it to
31908 ipa_get_indirect_edge_target. Update all callers.
31909 (ipcp_discover_new_direct_edges): New parameter aggvals. Pass it to
31910 ipa_get_indirect_edge_target_1 instead of calling
31911 ipa_get_indirect_edge_target.
31912 (create_specialized_node): Pass aggvlas to
31913 ipcp_discover_new_direct_edges.
31915 2013-03-25 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
31917 * config/arm/arm.md (f_sels, f_seld): New types.
31918 (*cmov<mode>): New pattern.
31919 * config/arm/predicates.md (arm_vsel_comparison_operator): New
31922 2013-03-25 Kai Tietz <ktietz@redhat.com>
31924 * config/i386/xm-mingw32.h (__USE_MINGW_ANSI_STDIO): Enable
31925 POSIX-printf for mingw-hosted builds.
31927 2013-03-25 Richard Biener <rguenther@suse.de>
31929 PR middle-end/56694
31930 * tree-eh.c (lower_eh_must_not_throw): Strip BLOCKs from the
31931 must-not-throw stmt location.
31933 2013-03-25 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
31935 * config/arm/arm.c (arm_emit_load_exclusive): Add acq parameter.
31936 Emit load-acquire versions when acq is true.
31937 (arm_emit_store_exclusive): Add rel parameter.
31938 Emit store-release versions when rel is true.
31939 (arm_split_compare_and_swap): Use acquire-release instructions
31941 of barriers when appropriate.
31942 (arm_split_atomic_op): Likewise.
31943 * config/arm/arm.h (TARGET_HAVE_LDACQ): New macro.
31944 * config/arm/unspecs.md (VUNSPEC_LAX): New unspec.
31945 (VUNSPEC_SLX): Likewise.
31946 (VUNSPEC_LDA): Likewise.
31947 (VUNSPEC_STL): Likewise.
31948 * config/arm/sync.md (atomic_load<mode>): New pattern.
31949 (atomic_store<mode>): Likewise.
31950 (arm_load_acquire_exclusive<mode>): Likewise.
31951 (arm_load_acquire_exclusivesi): Likewise.
31952 (arm_load_acquire_exclusivedi): Likewise.
31953 (arm_store_release_exclusive<mode>): Likewise.
31955 2013-03-25 Catherine Moore <clm@codesourcery.com>
31957 * config/mips/constraints.md (u, Udb7 Uead, Uean, Uesp, Uib3,
31958 Uuw6, Usb4, ZS, ZT, ZU, ZV, ZW): New constraints.
31959 * config/mip/predicates.md (lwsp_swsp_operand,
31960 lw16_sw16_operand, lhu16_sh16_operand, lbu16_operand,
31961 sb16_operand, db4_operand, db7_operand, ib3_operand,
31962 sb4_operand, ub4_operand, uh4_operand, uw4_operand,
31963 uw5_operand, uw6_operand, addiur2_operand, addiusp_operand,
31964 andi16_operand): New predicates.
31965 * config/mips/mips.md (compression): New attribute.
31966 (enabled): New attribute.
31967 (length): Consider compression in computing length.
31968 (shift_compression): New code attribute.
31969 (*add<mode>3): New operands. Record compression.
31970 (sub<mode>3): Likewise.
31971 (one_cmpl<mode>2): Likewise.
31972 (*and<mode>3): Likewise.
31973 (*ior<mode>3): Likewise.
31974 (unnamed pattern for xor): Likewise.
31975 (*zero_extend<SHORT:mode><GPR:mode>2): Likewise.
31976 (*<optab><mode>3): Likewise.
31977 (*mov<mode>_internal: Likewise.
31978 * config/mips/mips-protos.h (mips_signed_immediate_p): New.
31979 (mips_unsigned_immediate_p): New.
31980 (umips_lwsp_swsp_address_p): New.
31981 (m16_based_address_p): New.
31982 * config/mips/mips-protos.h (mips_signed_immediate_p): New prototype.
31983 (mips_unsigned_immediate_p): New prototype.
31984 (lwsp_swsp_address_p): New prototype.
31985 (m16_based_address_p): New prototype.
31986 * config/mips/mips.c (mips_unsigned_immediate_p): New function.
31987 (mips_signed_immediate_p): New function.
31988 (m16_based_address_p): New function.
31989 (lwsp_swsp_address_p): New function.
31990 (mips_print_operand_punctuation): Recognize short delay slot insns
31991 for microMIPS.add<mode>3"
31993 2013-03-25 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
31996 * config/arm/iterators.md (v_cmp_result): New mode attribute.
31997 * config/arm/neon.md (vcond<mode><mode>): Handle unordered cases.
31999 2013-03-25 Richard Biener <rguenther@suse.de>
32001 PR tree-optimization/56689
32002 * tree-vrp.c (execute_vrp): Mark loops for fixup if we removed
32005 2013-03-25 Richard Biener <rguenther@suse.de>
32007 * tree-ssa-loop-im.c (struct mem_ref): Use bitmap_head instead
32009 (memory_references): Likewise.
32010 (outermost_indep_loop, mem_ref_alloc, mark_ref_stored,
32011 gather_mem_refs_stmt, record_dep_loop, ref_indep_loop_p_1,
32012 ref_indep_loop_p_2, find_refs_for_sm): Adjust.
32013 (gather_mem_refs_in_loops): Fold into ...
32014 (analyze_memory_references): ... this. Move initialization
32015 to tree_ssa_lim_initialize.
32016 (fill_always_executed_in): Rename to ...
32017 (fill_always_executed_in_1): ... this.
32018 (fill_always_executed_in): Move contains_call computation to
32019 this new function from ...
32020 (tree_ssa_lim_initialize): ... here.
32021 (tree_ssa_lim): Call fill_always_executed_in.
32023 2013-03-25 Eric Botcazou <ebotcazou@adacore.com>
32025 * postreload.c (reload_combine): Fix code detecting returns.
32027 2013-03-25 Eric Botcazou <ebotcazou@adacore.com>
32029 * function.c (emit_use_return_register_into_block): On cc0 targets,
32030 do not emit the sequence between cc0 setter and user.
32032 2013-03-25 Kai Tietz <ktietz@redhat.com>
32034 * config/i386/predicates.md (local_symbolic_operand): Interpret
32035 dll-imported symbols as none-local.
32037 2013-03-25 Richard Biener <rguenther@suse.de>
32039 * tree-ssa-loop-im.c (struct depend): Remove.
32040 (struct lim_aux_data): Make depends a vec of gimples.
32041 (free_lim_aux_data): Adjust.
32042 (add_dependency): Likewise.
32043 (set_level): Likewise.
32045 2013-03-25 Richard Biener <rguenther@suse.de>
32047 PR middle-end/56434
32048 * calls.c (expand_call): Use MALLOC_ABI_ALIGNMENT to annotate
32049 the pointer returned by calls with ECF_MALLOC set.
32051 2013-03-24 Uros Bizjak <ubizjak@gmail.com>
32053 * config/i386/mmx.md (mov<mode>): Add ?!Ym,r and r,?!Ym alternatives.
32055 2013-03-24 Uros Bizjak <ubizjak@gmail.com>
32057 * config/i386/mmx.md (mov<mode>): Merge with movv2sf expander
32058 using MMXMODE mode iterator.
32059 (*move<mode>_internal): Merge with *movv2sf_internal and
32060 *movv2sf_internal_rex64 using MMXMODE mode iterator.
32062 2013-03-23 Steven Bosscher <steven@gcc.gnu.org>
32064 * gcse.c (oprs_unchanged_p): Respect flag_gcse_lm.
32065 (record_last_mem_set_info): Likewise.
32067 * df-core.c (rest_of_handle_df_initialize): Use XCNEWVEC instead
32068 of XNEWVEC followed by memset.
32069 (df_worklist_dataflow): Use XNEWVEC instead of xmalloc with a cast.
32071 2013-03-23 Steven Bosscher <steven@gcc.gnu.org>
32073 * config/avr/avr.c, config/bfin/bfin.c, config/c6x/c6x.c,
32074 config/epiphany/epiphany.c, config/frv/frv.c, config/ia64/ia64.c,
32075 config/iq2000/iq2000.c, config/mcore/mcore.c, config/mep/mep.c,
32076 config/mmix/mmix.c, config/pa/pa.c, config/rs6000/rs6000.c,
32077 config/s390/s390.c, config/sparc/sparc.c, config/spu/spu.c,
32078 config/stormy16/stormy16.c, config/v850/v850.c, config/xtensa/xtensa.c,
32079 dwarf2out.c, hw-doloop.c, resource.c, rtl.h : Where applicable, use
32080 the predicates NOTE_P, NONJUMP_INSN_P, JUMP_P, CALL_P, LABEL_P, and
32081 BARRIER_P instead of GET_CODE.
32083 2013-03-23 Eric Botcazou <ebotcazou@adacore.com>
32085 * config/sparc/sparc.c (sparc_emit_probe_stack_range): Fix small
32086 inaccuracy in the probing code.
32088 * config/sparc/sparc.md (ctrapsi4): Add predicate for operand #3.
32089 (ctrapdi4): Likewise.
32091 2013-03-23 Eric Botcazou <ebotcazou@adacore.com>
32093 * calls.c (expand_call): Add missing guard to code handling return
32094 of non-BLKmode structures in MSB.
32095 * function.c (expand_function_end): Likewise.
32097 2013-03-23 Eric Botcazou <ebotcazou@adacore.com>
32099 * combine.c (try_combine): Adjust comment. Do not add the set of
32100 insn #0 if the destination indirectly is set or dies in insn #2.
32101 Tidy up code to distribute a new note.
32103 2013-03-22 Uros Bizjak <ubizjak@gmail.com>
32105 * config/i386/i386.md (*movdi_internal): Set prefix_rex attribute
32106 also for alternatives 16 and 17.
32108 2013-03-22 Uros Bizjak <ubizjak@gmail.com>
32110 * config/i386/sse.md (*mov<mode>_internal): Merge with
32111 *mov<mode>_internal_rex64. Use x64 and nox64 isa attributes.
32112 Emit insn template depending on type attribute. Use
32113 HAVE_AS_IX86_INTERUNIT_MOVQ to handle broken assemblers that require
32114 movd instead of movq mnemonic for interunit moves. Rewrite mode
32115 attribute calculation. Remove unit attribute calculation.
32116 Set prefix attribute to maybe_vex for sselog1 and ssemov types.
32117 Set prefix_data16 attribute for DImode ssemov types.
32118 Use Ym instead of y for SSE-MMX conversion alternatives.
32119 Reorder operand constraints.
32121 2013-03-22 Steven Bosscher <steven@gcc.gnu.org>
32123 * df.h (df_insn_delete): Adjust prototype.
32124 * emit-rtl.c (remove_insn): Pass a basic block to df_insn_delete
32125 and let it decide whether mark the basic block dirty.
32126 (set_insn_deleted): Only pass INSN_P insns to df_insn_delete.
32127 * df-scan.c (df_insn_info_delete): New helper function, split
32128 off from df_insn_delete.
32129 (df_scan_free_bb_info): Use it.
32130 (df_insn_rescan, df_insn_rescan_all, df_process_deferred_rescans):
32132 (df_insn_delete): Likewise. Take insn rtx as argument. Verify
32133 that the insn is actually an insn and it has a non-NULL basic block.
32134 Do not mark basic block dirty if only deleting a DEBUG_INSN.
32136 2013-03-22 Richard Biener <rguenther@suse.de>
32138 * tree-ssa-loop-im.c (struct mem_ref): Remove indep_ref and
32140 (mem_ref_alloc): Do not allocate them.
32141 (refs_independent_p): Do not query or maintain a cache.
32143 2013-03-22 Richard Biener <rguenther@suse.de>
32145 * tree-ssa-loop-im.c (memory_references): Drop all_refs_in_loop.
32146 (gather_mem_refs_in_loops): Do not compute it.
32147 (analyze_memory_references): Do not allocate it.
32148 (tree_ssa_lim_finalize): Do not free it.
32149 (for_all_locs_in_loop): Do not query all_refs_in_loop.
32151 2013-03-22 Richard Biener <rguenther@suse.de>
32153 * is-a.h (as_a): Use gcc_checking_assert.
32155 2013-03-22 Ian Bolton <ian.bolton@arm.com>
32157 * config/aarch64/aarch64.c (aarch64_print_operand): New
32158 format specifier for printing a constant in hex.
32159 * config/aarch64/aarch64.md (insv_imm<mode>): Use the X
32160 format specifier for printing second operand.
32162 2013-03-22 Richard Biener <rguenther@suse.de>
32164 * tree-ssa-loop-im.c (memory_references): Add refs_stored_in_loop
32166 (gather_mem_refs_in_loops): Perform store accumulation here.
32167 (create_vop_ref_mapping_loop): Remove.
32168 (create_vop_ref_mapping): Likewise.
32169 (analyze_memory_references): Initialize refs_stored_in_loop.
32170 (LOOP_DEP_BIT): New define to map to bits in (in)dep_loop bitmaps.
32171 (record_indep_loop): Remove.
32172 (record_dep_loop): New function.
32173 (ref_indep_loop_p_1): Adjust to only walk over references
32174 in the loop, not its subloops.
32175 (ref_indep_loop_p): Rename to ...
32176 (ref_indep_loop_p_2): ... this and recurse over the loop tree,
32177 maintaining a more fine-grained cache.
32178 (ref_indep_loop_p): Wrap ref_indep_loop_p_2.
32179 (tree_ssa_lim_finalize): Free refs_stored_in_loop.
32181 2013-03-22 Richard Biener <rguenther@suse.de>
32183 * tree-ssa-loop-im.c (struct mem_ref_locs): Remove.
32184 (struct mem_ref): Make accesses_in_loop a vec of a vec of
32185 aggregate mem_ref_loc.
32186 (free_mem_ref_locs): Inline into ...
32187 (memref_free): ... this and adjust.
32188 (mem_ref_alloc): Adjust.
32189 (mem_ref_locs_alloc): Remove.
32190 (record_mem_ref_loc): Adjust.
32191 (get_all_locs_in_loop): Rewrite into ...
32192 (for_all_locs_in_loop): ... this iterator.
32193 (rewrite_mem_ref_loc): New functor.
32194 (rewrite_mem_refs): Use for_all_locs_in_loop.
32195 (sm_set_flag_if_changed): New functor.
32196 (execute_sm_if_changed_flag_set): Use for_all_locs_in_loop.
32197 (ref_always_accessed): New functor.
32198 (ref_always_accessed_p): Use for_all_locs_in_loop.
32200 2013-03-21 Marc Glisse <marc.glisse@inria.fr>
32202 * tree-pass.h (PROP_gimple_lvec): New.
32203 * passes.c (dump_properties): Handle PROP_gimple_lvec.
32204 (init_optimization_passes): Move pass_lower_vector.
32205 * tree-vect-generic.c (gate_expand_vector_operations_ssa): Test
32207 (pass_lower_vector): Provide PROP_gimple_lvec.
32208 (pass_lower_vector_ssa): Likewise.
32209 * cfgexpand.c (pass_expand): Require PROP_gimple_lvec.
32211 2013-03-21 Mark Wielaard <mjw@redhat.com>
32213 * dwarf2out.c (size_of_aranges): Skip DECL_IGNORED_P functions.
32215 2013-03-21 Uros Bizjak <ubizjak@gmail.com>
32217 * config/i386/i386.md (*movdi_internal): Disparage slightly
32218 all MMX moves to/from memory. Use Yi instead of x for SSE-MMX
32219 conversion alternatives.
32221 2013-03-21 Jakub Jelinek <jakub@redhat.com>
32223 PR middle-end/48087
32224 * diagnostic.def (DK_WERROR): New kind.
32225 * diagnostic.h (werrorcount): Define.
32226 * diagnostic.c (diagnostic_report_diagnostic): For DK_WARNING
32227 promoted to DK_ERROR, increment DK_WERROR counter instead of
32229 * toplev.c (toplev_main): Call print_ignored_options even if
32230 just werrorcount is non-zero. Exit with FATAL_EXIT_CODE
32231 even if just werrorcount is non-zero.
32234 * dwarf2out.c (tree_add_const_value_attribute): Call ggc_free (array)
32236 (resolve_one_addr): Fail if referenced STRING_CST hasn't been written.
32237 (string_cst_pool_decl): New function.
32238 (optimize_one_addr_into_implicit_ptr): New function.
32239 (resolve_addr_in_expr): Optimize DWARF location expression
32240 DW_OP_addr DW_OP_stack_value where DW_OP_addr refers to some variable
32241 which doesn't live in memory, but has DW_AT_location or
32242 DW_AT_const_value, or refers to a string literal, into
32243 DW_OP_GNU_implicit_pointer.
32244 (optimize_location_into_implicit_ptr): New function.
32245 (resolve_addr): If removing DW_AT_location of a variable because
32246 it was DW_OP_addr of address of the variable, but the variable doesn't
32247 live in memory, try to emit const value attribute for the initializer.
32249 2013-03-21 Marc Glisse <marc.glisse@inria.fr>
32251 * tree.h (VECTOR_TYPE_P): New macro.
32252 (VECTOR_INTEGER_TYPE_P, VECTOR_FLOAT_TYPE_P, FLOAT_TYPE_P,
32253 TYPE_MODE): Use it.
32254 * fold-const.c (fold_cond_expr_with_comparison): Use build_zero_cst.
32255 VEC_COND_EXPR cannot be lvalues.
32256 (fold_ternary_loc) <VEC_COND_EXPR>: Merge with the COND_EXPR case.
32258 2013-03-21 Marc Glisse <marc.glisse@inria.fr>
32260 * simplify-rtx.c (simplify_binary_operation_1) <VEC_CONCAT>:
32261 Restrict the transformation to equal modes.
32263 2013-03-21 Richard Biener <rguenther@suse.de>
32265 PR tree-optimization/39326
32266 * tree-ssa-loop-im.c (UNANALYZABLE_MEM_ID): New define.
32267 (MEM_ANALYZABLE): Adjust.
32268 (record_mem_ref_loc): Move bitmap ops ...
32269 (gather_mem_refs_stmt): ... here. Use the shared mem-ref for
32270 unanalyzable refs, do not record locations for it.
32271 (analyze_memory_references): Allocate ref zero as shared
32273 (refs_independent_p): Do not test for unanalyzed mems here.
32274 (ref_indep_loop_p_1): Special-case disambiguation against
32275 the unanalyzed ref.
32276 (ref_indep_loop_p): Assert we are not queried for the unanalyzed mem.
32278 2013-03-21 Christophe Lyon <christophe.lyon@linaro.org>
32280 * config/arm/arm-protos.h (tune_params): Add
32281 prefer_neon_for_64bits field.
32282 * config/arm/arm.c (prefer_neon_for_64bits): New variable.
32283 (arm_slowmul_tune): Default prefer_neon_for_64bits to false.
32284 (arm_fastmul_tune, arm_strongarm_tune, arm_xscale_tune): Ditto.
32285 (arm_9e_tune, arm_v6t2_tune, arm_cortex_tune): Ditto.
32286 (arm_cortex_a15_tune, arm_cortex_a5_tune): Ditto.
32287 (arm_cortex_a9_tune, arm_v6m_tune, arm_fa726te_tune): Ditto.
32288 (arm_option_override): Handle -mneon-for-64bits new option.
32289 * config/arm/arm.h (TARGET_PREFER_NEON_64BITS): New macro.
32290 (prefer_neon_for_64bits): Declare new variable.
32291 * config/arm/arm.md (arch): Rename neon_onlya8 and neon_nota8 to
32292 avoid_neon_for_64bits and neon_for_64bits. Remove onlya8 and nota8.
32293 (arch_enabled): Handle new arch types. Remove support for onlya8
32295 (one_cmpldi2): Use new arch names.
32296 (zero_extend<mode>di2, extend<mode>di2): Ditto.
32297 * config/arm/arm.opt (mneon-for-64bits): Add option.
32298 * config/arm/neon.md (adddi3_neon, subdi3_neon, iordi3_neon)
32299 (anddi3_neon, xordi3_neon, ashldi3_neon, <shift>di3_neon): Use
32300 neon_for_64bits instead of nota8 and avoid_neon_for_64bits instead
32302 * doc/invoke.texi (-mneon-for-64bits): Document.
32304 2013-03-21 Richard Biener <rguenther@suse.de>
32306 PR tree-optimization/39326
32307 * tree-ssa-loop-im.c (bb_loop_postorder): New global static.
32308 (sort_bbs_in_loop_postorder_cmp): New function.
32309 (gather_mem_refs_in_loops): Assign mem-ref IDs in loop postorder.
32311 2013-03-21 Richard Biener <rguenther@suse.de>
32313 * tree-vect-data-refs.c (vect_update_interleaving_chain): Remove.
32314 (vect_insert_into_interleaving_chain): Likewise.
32315 (vect_drs_dependent_in_basic_block): Inline ...
32316 (vect_slp_analyze_data_ref_dependence): ... here. New function,
32318 (vect_analyze_data_ref_dependence): ... here. Simplify.
32319 (vect_check_interleaving): Simplify.
32320 (vect_analyze_data_ref_dependences): Likewise. Split out ...
32321 (vect_slp_analyze_data_ref_dependences): ... this new function.
32322 (dr_group_sort_cmp): New function.
32323 (vect_analyze_data_ref_accesses): Compute data-reference groups
32324 here instead of in vect_analyze_data_ref_dependence. Use
32325 a more efficient algorithm.
32326 * tree-vect-slp.c (vect_slp_analyze_bb_1): Use
32327 vect_slp_analyze_data_ref_dependences. Call
32328 vect_analyze_data_ref_accesses earlier.
32329 * tree-vect-loop.c (vect_analyze_loop_2): Likewise.
32330 * tree-vectorizer.h (vect_analyze_data_ref_dependences): Adjust.
32331 (vect_slp_analyze_data_ref_dependences): New prototype.
32333 2013-03-21 Richard Biener <rguenther@suse.de>
32335 * tree-ssa-loop-im.c (can_sm_ref_p): Do not test whether
32336 ref is stored in the loop.
32337 (find_refs_for_sm): Walk only over all stores.
32338 (store_motion_loop): Allocate from lim_bitmap_obstack.
32339 (store_motion): Likewise.
32341 2013-03-21 Richard Biener <rguenther@suse.de>
32343 * tree-vect-loop-manip.c (slpeel_tree_peel_loop_to_edge):
32344 Update virtual SSA form.
32346 2013-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
32348 * configure.ac (gcc_cv_ld_eh_frame_ciev3): New test.
32349 * configure: Regenerate.
32350 * config.in: Regenerate.
32351 * config/sol2.c (solaris_override_options): Only enforce DWARF 2
32352 if !HAVE_LD_EH_FRAME_CIEV3.
32354 2013-03-21 Richard Biener <rguenther@suse.de>
32356 * tree-cfg.c (verify_expr_no_block): New function.
32357 (verify_expr_location_1): Verify that neither DECL_DEBUG_EXPR
32358 nor DECL_VALUE_EXPR have locations with associated blocks.
32359 * tree-ssa-live.c (clear_unused_block_pointer_1): Remove.
32360 (clear_unused_block_pointer): Remove code dealing with
32361 blocks in DECL_DEBUG_EXPR locations.
32363 2013-03-21 Richard Biener <rguenther@suse.de>
32365 * tree.h (DECL_DEBUG_EXPR_IS_FROM): Rename to ...
32366 (DECL_HAS_DEBUG_EXPR_P): ... this. Guard properly.
32367 * tree.c (copy_node_stat): Do not copy DECL_HAS_DEBUG_EXPR_P.
32368 * dwarf2out.c (add_var_loc_to_decl): Use DECL_HAS_DEBUG_EXPR_P
32369 instead of DECL_DEBUG_EXPR_IS_FROM.
32370 * gimplify.c (gimplify_modify_expr): Likewise.
32371 * tree-cfg.c (verify_expr_location_1): Likewise.
32372 * tree-complex.c (create_one_component_var): Likewise.
32373 * tree-sra.c (create_access_replacement): Likewise.
32374 * tree-ssa-live.c (clear_unused_block_pointer_1): Likewise.
32375 (clear_unused_block_pointer): Likewise.
32376 * tree-streamer-in.c (unpack_ts_decl_common_value_fields): Likewise.
32377 * tree-streamer-out.c (pack_ts_decl_common_value_fields): Likewise.
32378 * var-tracking.c (var_debug_decl): Likewise.
32379 (track_expr_p): Likewise.
32380 * tree-inline.c (add_local_variables): Likewise. Set
32381 DECL_HAS_DEBUG_EXPR_P after copying it.
32382 * tree-diagnostic.c (default_tree_printer): Use DECL_HAS_DEBUG_EXPR_P
32383 instead of DECL_DEBUG_EXPR_IS_FROM. Guard properly.
32385 2013-03-21 Uros Bizjak <ubizjak@gmail.com>
32388 * configure.ac (HAVE_AS_IX86_INTERUNIT_MOVQ): New test.
32389 * configure: Regenerate.
32390 * config.in: Regenerate.
32391 * config/i386/i386.md (*movdf_internal): Use
32392 HAVE_AS_IX86_INTERUNIT_MOVQ to handle broken assemblers that require
32393 movd instead of movq mnemonic for interunit moves.
32394 (*movdi_internal): Ditto.
32396 2013-03-21 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
32398 * config/aarch64/aarch64-simd.md (simd_fabd): New Attribute.
32399 (abd<mode>_3): New pattern.
32400 (aba<mode>_3): New pattern.
32401 (fabd<mode>_3): New pattern.
32403 2013-03-21 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
32405 * config/aarch64/aarch64-elf.h (REGISTER_PREFIX): Remove.
32406 * config/aarch64/aarch64.c (aarch64_print_operand): Remove all
32407 occurrence of REGISTER_PREFIX as its empty string.
32409 2013-03-20 Jeff Law <law@redhat.com>
32411 * tree-ssa-dom.c (record_equivalences_from_incoming_edge): Record
32412 addititional equivalences for equality comparisons between an SSA_NAME
32413 and a constant where the SSA_NAME was set from a widening conversion.
32415 2013-03-20 Walter Lee <walt@tilera.com>
32417 * config/tilegx/sync.md (atomic_test_and_set): New pattern.
32419 2013-03-20 Uros Bizjak <ubizjak@gmail.com>
32421 * config/i386/i386.md (*movoi_internal_avx): Emit insn template
32422 depending on type attribute.
32423 (*movti_internal): Ditto.
32424 (*movtf_internal): Ditto.
32425 (*movxf_internal): Ditto.
32426 (*movdf_internal): Ditto.
32427 (*movsf_internal): Ditto.
32429 2013-03-20 Uros Bizjak <ubizjak@gmail.com>
32431 * config/i386/i386.md (*movti_internal): Set prefix attribute to
32432 maybe_vex for sselog1 and ssemov types.
32433 (*movdi_internal): Reorder operand constraints.
32434 (*movsi_internal): Ditto. Set prefix attribute to
32435 maybe_vex for sselog1 and ssemov types.
32436 (*movtf_internal): Set prefix attribute to maybe_vex
32437 for sselog1 and ssemov types.
32438 (*movdf_internal): Ditto. Set prefix_data16 attribute for
32439 DImode ssemov types. Reorder operand constraints.
32440 (*movsf_internal): Set type of alternatives 3,4 to imov. Set prefix
32441 attribute to maybe_vex for sselog1 and ssemov types. Set prefix_data16
32442 attribute for SImode ssemov types. Reorder operand constraints.
32444 2013-03-20 Martin Jambor <mjambor@suse.cz>
32446 * params.def (PARAM_IPA_CP_ARRAY_INDEX_HINT_BONUS): New parameter.
32447 * ipa-cp.c (hint_time_bonus): Add abonus for known array indices.
32449 2013-03-20 Pat Haugen <pthaugen@us.ibm.com>
32451 * config/rs6000/predicates.md (indexed_address, update_address_mem
32452 update_indexed_address_mem): New predicates.
32453 * config/rs6000/vsx.md (vsx_extract_<mode>_zero): Set correct "type"
32454 attribute for load/store instructions.
32455 * config/rs6000/dfp.md (movsd_store): Likewise.
32456 (movsd_load): Likewise.
32457 * config/rs6000/rs6000.md (zero_extend<mode>di2_internal1): Likewise.
32458 (unnamed HI->DI extend define_insn): Likewise.
32459 (unnamed SI->DI extend define_insn): Likewise.
32460 (unnamed QI->SI extend define_insn): Likewise.
32461 (unnamed QI->HI extend define_insn): Likewise.
32462 (unnamed HI->SI extend define_insn): Likewise.
32463 (unnamed HI->SI extend define_insn): Likewise.
32464 (extendsfdf2_fpr): Likewise.
32465 (movsi_internal1): Likewise.
32466 (movsi_internal1_single): Likewise.
32467 (movhi_internal): Likewise.
32468 (movqi_internal): Likewise.
32469 (movcc_internal1): Correct mnemonic for stw insn. Set correct "type"
32470 attribute for load/store instructions.
32471 (mov<mode>_hardfloat): Set correct "type" attribute for load/store
32473 (mov<mode>_softfloat): Likewise.
32474 (mov<mode>_hardfloat32): Likewise.
32475 (mov<mode>_hardfloat64): Likewise.
32476 (mov<mode>_softfloat64): Likewise.
32477 (movdi_internal32): Likewise.
32478 (movdi_internal64): Likewise.
32479 (probe_stack_<mode>): Likewise.
32481 2013-03-20 Michael Meissner <meissner@linux.vnet.ibm.com>
32483 * config/rs6000/vector.md (VEC_R): Add 32-bit integer, binary
32484 floating point, and decimal floating point to reload iterator.
32486 * config/rs6000/constraints.md (wl constraint): New constraints to
32487 return FLOAT_REGS if certain options are used to reduce the number
32488 of separate patterns that exist in the file.
32489 (wx constraint): Likewise.
32490 (wz constraint): Likewise.
32492 * config/rs6000/rs6000.c (rs6000_debug_reg_global): If
32493 -mdebug=reg, print wg, wl, wx, and wz constraints.
32494 (rs6000_init_hard_regno_mode_ok): Initialize new constraints.
32495 Initialize the reload functions for 64-bit binary/decimal floating
32497 (reg_offset_addressing_ok_p): If we are on a power7 or later, use
32498 LFIWZX and STFIWX to load/store 32-bit decimal types, and don't
32499 create the buffer on the stack to overcome not having a 32-bit
32501 (rs6000_emit_move): Likewise.
32502 (rs6000_secondary_memory_needed_rtx): Likewise.
32503 (rs6000_alloc_sdmode_stack_slot): Likewise.
32504 (rs6000_preferred_reload_class): On VSX, we can create SFmode 0.0f
32505 via xxlxor, just like DFmode 0.0.
32507 * config/rs6000/rs6000.h (TARGET_NO_SDMODE_STACK): New macro,
32508 define as 1 if we are running on a power7 or newer.
32509 (enum r6000_reg_class_enum): Add new constraints.
32511 * config/rs6000/dfp.md (movsd): Delete, combine with binary
32512 floating point moves in rs6000.md. Combine power6x (mfpgpr) moves
32513 with other moves by using conditional constraits (wg). Use LFIWZX
32514 and STFIWX for loading SDmode on power7. Use xxlxor to create 0.0f.
32515 (movsd splitter): Likewise.
32516 (movsd_hardfloat): Likewise.
32517 (movsd_softfloat): Likewise.
32519 * config/rs6000/rs6000.md (FMOVE32): New iterators to combine
32520 binary and decimal floating point moves.
32521 (fmove_ok): New attributes to combine binary and decimal floating
32522 point moves, and to combine power6x (mfpgpr) moves along normal
32524 (real_value_to_target): Likewise.
32525 (f32_lr): Likewise.
32526 (f32_lm): Likewise.
32527 (f32_li): Likewise.
32528 (f32_sr): Likewise.
32529 (f32_sm): Likewise.
32530 (f32_si): Likewise.
32531 (movsf): Combine binary and decimal floating point moves. Combine
32532 power6x (mfpgpr) moves with other moves by using conditional
32533 constraits (wg). Use LFIWZX and STFIWX for loading SDmode on power7.
32534 (mov<mode> for SFmode/SDmode); Likewise.
32535 (SFmode/SDmode splitters): Likewise.
32536 (movsf_hardfloat): Likewise.
32537 (mov<mode>_hardfloat for SFmode/SDmode): Likewise.
32538 (movsf_softfloat): Likewise.
32539 (mov<mode>_softfloat for SFmode/SDmode): Likewise.
32541 * doc/md.texi (PowerPC and IBM RS6000 constraints): Document wl,
32542 wx and wz constraints.
32544 * config/rs6000/constraints.md (wg constraint): New constraint to
32545 return FLOAT_REGS if -mmfpgpr (power6x) was used.
32547 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Add wg
32550 * config/rs6000/rs6000.c (rs6000_debug_reg_global): If
32551 -mdebug=reg, print wg, wl, wx, and wz constraints.
32552 (rs6000_init_hard_regno_mode_ok): Initialize new constraints.
32553 Initialize the reload functions for 64-bit binary/decimal floating
32555 (reg_offset_addressing_ok_p): If we are on a power7 or later, use
32556 LFIWZX and STFIWX to load/store 32-bit decimal types, and don't
32557 create the buffer on the stack to overcome not having a 32-bit
32559 (rs6000_emit_move): Likewise.
32560 (rs6000_secondary_memory_needed_rtx): Likewise.
32561 (rs6000_alloc_sdmode_stack_slot): Likewise.
32562 (rs6000_preferred_reload_class): On VSX, we can create SFmode 0.0f
32563 via xxlxor, just like DFmode 0.0.
32565 * config/rs6000/dfp.md (movdd): Delete, combine with binary
32566 floating point moves in rs6000.md. Combine power6x (mfpgpr) moves
32567 with other moves by using conditional constraits (wg). Use LFIWZX
32568 and STFIWX for loading SDmode on power7.
32569 (movdd splitters): Likewise.
32570 (movdd_hardfloat32): Likewise.
32571 (movdd_softfloat32): Likewise.
32572 (movdd_hardfloat64_mfpgpr): Likewise.
32573 (movdd_hardfloat64): Likewise.
32574 (movdd_softfloat64): Likewise.
32576 * config/rs6000/rs6000.md (FMOVE64): New iterators to combine
32577 64-bit binary and decimal floating point moves.
32578 (FMOVE64X): Likewise.
32579 (movdf): Combine 64-bit binary and decimal floating point moves.
32580 Combine power6x (mfpgpr) moves with other moves by using
32581 conditional constraits (wg).
32582 (mov<mode> for DFmode/DDmode): Likewise.
32583 (DFmode/DDmode splitters): Likewise.
32584 (movdf_hardfloat32): Likewise.
32585 (mov<mode>_hardfloat32 for DFmode/DDmode): Likewise.
32586 (movdf_softfloat32): Likewise.
32587 (movdf_hardfloat64_mfpgpr): Likewise.
32588 (movdf_hardfloat64): Likewise.
32589 (mov<mode>_hardfloat64 for DFmode/DDmode): Likewise.
32590 (movdf_softfloat64): Likewise.
32591 (mov<mode>_softfloat64 for DFmode/DDmode): Likewise.
32592 (reload_<mode>_load): Move to later in the file so they aren't in
32593 the middle of the floating point move insns.
32594 (reload_<mode>_store): Likewise.
32596 * doc/md.texi (PowerPC and IBM RS6000 constraints): Document wg
32599 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Print out wg
32600 constraint if -mdebug=reg.
32601 (rs6000_initi_hard_regno_mode_ok): Enable wg constraint if -mfpgpr.
32602 Enable using dd reload support if needed.
32604 * config/rs6000/dfp.md (movtd): Delete, combine with 128-bit
32605 binary and decimal floating point moves in rs6000.md.
32606 (movtd_internal): Likewise.
32608 * config/rs6000/rs6000.md (FMOVE128): Combine 128-bit binary and
32609 decimal floating point moves.
32611 (movtf_internal): Likewise.
32612 (mov<mode>_internal, TDmode/TFmode): Likewise.
32613 (movtf_softfloat): Likewise.
32614 (mov<mode>_softfloat, TDmode/TFmode): Likewise.
32616 * config/rs6000/rs6000.md (movdi_mfpgpr): Delete, combine with
32617 movdi_internal64, using wg constraint for move direct operations.
32618 (movdi_internal64): Likewise.
32620 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Print
32621 MODES_TIEABLE_P for selected modes. Print the numerical value of
32622 the various virtual registers. Use GPR/FPR first/last values,
32623 instead of hard coding the register numbers. Print which modes
32624 have reload functions registered.
32625 (rs6000_option_override_internal): If -mdebug=reg, trace the options
32626 settings before/after setting cpu, target and subtarget settings.
32627 (rs6000_secondary_reload_trace): Improve the RTL dump for -mdebug=addr
32628 and for secondary reload failures in rs6000_secondary_reload_inner.
32629 (rs6000_secondary_reload_fail): Likewise.
32630 (rs6000_secondary_reload_inner): Likewise.
32632 * config/rs6000/rs6000.md (FIRST_GPR_REGNO): Add convenience
32633 macros for first/last GPR and FPR registers.
32634 (LAST_GPR_REGNO): Likewise.
32635 (FIRST_FPR_REGNO): Likewise.
32636 (LAST_FPR_REGNO): Likewise.
32638 * config/rs6000/vector.md (mul<mode>3): Use the combined macro
32639 VECTOR_UNIT_ALTIVEC_OR_VSX_P instead of separate calls to
32640 VECTOR_UNIT_ALTIVEC_P and VECTOR_UNIT_VSX_P.
32641 (vcond<mode><mode>): Likewise.
32642 (vcondu<mode><mode>): Likewise.
32643 (vector_gtu<mode>): Likewise.
32644 (vector_gte<mode>): Likewise.
32645 (xor<mode>3): Don't allow logical operations on TImode in 32-bit
32646 to prevent the compiler from converting DImode operations to TImode.
32647 (ior<mode>3): Likewise.
32648 (and<mode>3): Likewise.
32649 (one_cmpl<mode>2): Likewise.
32650 (nor<mode>3): Likewise.
32651 (andc<mode>3): Likewise.
32653 * config/rs6000/constraints.md (wt constraint): New constraint
32654 that returns VSX_REGS if TImode is allowed in VSX registers.
32656 * config/rs6000/predicates.md (easy_fp_constant): 0.0f is an easy
32657 constant under VSX.
32659 * config/rs6000/rs6000-modes.def (PTImode): Define, PTImode is
32660 similar to TImode, but it is restricted to being in the GPRs.
32662 * config/rs6000/rs6000.opt (-mvsx-timode): New switch to allow
32663 TImode to occupy a single VSX register.
32665 * config/rs6000/rs6000-cpus.def (ISA_2_6_MASKS_SERVER): Default to
32666 -mvsx-timode for power7/power8.
32667 (power7 cpu): Likewise.
32668 (power8 cpu): Likewise.
32670 * config/rs6000/rs6000.c (rs6000_hard_regno_nregs_internal): Make
32671 sure that TFmode/TDmode take up two registers if they are ever
32672 allowed in the upper VSX registers.
32673 (rs6000_hard_regno_mode_ok): If -mvsx-timode, allow TImode in VSX
32675 (rs6000_init_hard_regno_mode_ok): Likewise.
32676 (rs6000_debug_reg_global): Add debugging for PTImode and wt
32677 constraint. Print if LRA is turned on.
32678 (rs6000_option_override_internal): Give an error if -mvsx-timode
32679 and VSX is not enabled.
32680 (invalid_e500_subreg): Handle PTImode, restricting it to GPRs. If
32681 -mvsx-timode, restrict TImode to reg+reg addressing, and PTImode
32682 to reg+offset addressing. Use PTImode when checking offset
32683 addresses for validity.
32684 (reg_offset_addressing_ok_p): Likewise.
32685 (rs6000_legitimate_offset_address_p): Likewise.
32686 (rs6000_legitimize_address): Likewise.
32687 (rs6000_legitimize_reload_address): Likewise.
32688 (rs6000_legitimate_address_p): Likewise.
32689 (rs6000_eliminate_indexed_memrefs): Likewise.
32690 (rs6000_emit_move): Likewise.
32691 (rs6000_secondary_reload): Likewise.
32692 (rs6000_secondary_reload_inner): Handle PTImode. Allow 64-bit
32693 reloads to fpr registers to continue to use reg+offset addressing,
32694 but 64-bit reloads to altivec registers need reg+reg addressing.
32695 Drop test for PRE_MODIFY, since VSX loads/stores no longer support
32696 it. Treat LO_SUM like a PLUS operation.
32697 (rs6000_secondary_reload_class): If type is 64-bit, prefer to use
32698 FLOAT_REGS instead of VSX_RGS to allow use of reg+offset addressing.
32699 (rs6000_cannot_change_mode_class): Do not allow TImode in VSX
32700 registers to share a register with a smaller sized type, since VSX
32701 puts scalars in the upper 64-bits.
32702 (print_operand): Add support for PTImode.
32703 (rs6000_register_move_cost): Use VECTOR_MEM_VSX_P instead of
32704 VECTOR_UNIT_VSX_P to catch types that can be loaded in VSX
32705 registers, but don't have arithmetic support.
32706 (rs6000_memory_move_cost): Add test for VSX.
32707 (rs6000_opt_masks): Add -mvsx-timode.
32709 * config/rs6000/vsx.md (VSm): Change to use 64-bit aligned moves
32712 (VSr): Use wt constraint for TImode.
32713 (VSv): Drop TImode support.
32714 (vsx_movti): Delete, replace with versions for 32-bit and 64-bit.
32715 (vsx_movti_64bit): Likewise.
32716 (vsx_movti_32bit): Likewise.
32717 (vec_store_<mode>): Use VSX iterator instead of vector iterator.
32718 (vsx_and<mode>3): Delete use of '?' constraint on inputs, just put
32719 one '?' on the appropriate output constraint. Do not allow TImode
32720 logical operations on 32-bit systems.
32721 (vsx_ior<mode>3): Likewise.
32722 (vsx_xor<mode>3): Likewise.
32723 (vsx_one_cmpl<mode>2): Likewise.
32724 (vsx_nor<mode>3): Likewise.
32725 (vsx_andc<mode>3): Likewise.
32726 (vsx_concat_<mode>): Likewise.
32727 (vsx_xxpermdi_<mode>): Fix thinko for non V2DF/V2DI modes.
32729 * config/rs6000/rs6000.h (MASK_VSX_TIMODE): Map from
32730 OPTION_MASK_VSX_TIMODE.
32731 (enum rs6000_reg_class_enum): Add RS6000_CONSTRAINT_wt.
32732 (STACK_SAVEAREA_MODE): Use PTImode instead of TImode.
32734 * config/rs6000/rs6000.md (INT mode attribute): Add PTImode.
32735 (TI2 iterator): New iterator for TImode, PTImode.
32736 (wd mode attribute): Add values for vector types.
32737 (movti_string): Replace TI move operations with operations for TImode
32738 and PTImode. Add support for TImode being allowed in VSX registers.
32739 (mov<mode>_string, TImode/PTImode): Likewise.
32740 (movti_ppc64): Likewise.
32741 (mov<mode>_ppc64, TImode/PTImode): Likewise.
32742 (TI mode splitters): Likewise.
32744 * doc/md.texi (PowerPC and IBM RS6000 constraints): Document wt
32747 2013-03-20 Marc Glisse <marc.glisse@inria.fr>
32749 PR tree-optimization/56355
32750 * fold-const.c (tree_binary_nonnegative_warnv_p) <MULT_EXPR>:
32751 Also handle integers with undefined overflow.
32753 2013-03-20 Catherine Moore <clm@codesourcery.com>
32754 Maciej W. Rozycki <macro@codesourcery.com>
32755 Tom de Vries <tom@codesourcery.com>
32756 Nathan Sidwell <nathan@codesourcery.com>
32757 Iain Sandoe <iain@codesourcery.com>
32758 Nathan Froyd <froydnj@codesourcery.com>
32759 Chao-ying Fu <fu@mips.com>
32761 * doc/extend.texi: (micromips, nomicromips, nocompression):
32762 Document new function attributes.
32763 * doc/invoke.texi (minterlink-compressed, mmicromips,
32764 m14k, m14ke, m14kec): Document new options.
32765 (minterlink-mips16): Update documentation.
32766 * doc/md.texi (ZC, ZD): Document new constraints.
32767 * configure.ac (gcc_cv_as_micromips): Check if linker
32768 supports the .set micromips directive.
32769 * configure: Regenerate.
32770 * config.in: Regenerate.
32771 * config/mips/mips-tables.opt: Regenerate.
32772 * config/mips/micromips.md: New file.
32773 * constraints.md (ZC, ZD): New constraints.
32774 * config/mips/predicates.md (movep_src_register): New predicate.
32775 (movep_src_operand): New predicate.
32776 (non_volatile_mem_operand): New predicate.
32777 * config/mips/mips.md (multimem): New type.
32778 (length): Differentiate between 17-bit and 18-bit branch offsets.
32779 (MOVEP1, MOVEP2): New mode iterator.
32780 (mov_<load>l): Use ZC constraint.
32781 (mov_<load>r): Likewise.
32782 (mov_<store>l): Likewise.
32783 (mov_<store>r): Likewise.
32784 (*branch_equality<mode>_inverted): Add microMIPS support.
32785 (*branch_equality<mode>): Likewise.
32786 (*jump_absolute): Likewise.
32787 (indirect_jump_<mode>): Likewise.
32788 (tablejump_<mode>): Likewise.
32789 (<optab>_internal): Likewise.
32790 (sibcall_internal): Likewise.
32791 (sibcall_value_internal): Likewise.
32792 (prefetch): Use constraint ZD.
32793 * config/mips/mips.opt (minterlink-compressed): New option.
32794 (minterlink-mips16): Now an alias for minterlink-compressed.
32795 (mmicromips): New option.
32796 * config/mips/sync.md (sync_compare_and_swap<mode>): Use ZR constraint.
32797 (compare_and_swap_12): Likewise.
32798 (sync_add<mode>): Likewise.
32799 (sync_<optab>_12): Likewise.
32800 (sync_old_<optab>_12): Likewise.
32801 (sync_new_<optab>_12): Likewise.
32802 (sync_nand_12): Likewise.
32803 (sync_old_nand_12): Likewise.
32804 (sync_new_nand_12): Likewise.
32805 (sync_sub<mode>): Likewise.
32806 (sync_old_add<mode>): Likewise.
32807 (sync_old_sub<mode>): Likewise.
32808 (sync_new_add<mode>): Likewise.
32809 (sync_new_sub<mode>): Likewise.
32810 (sync_<optab><mode>): Likewise.
32811 (sync_old_<optab><mode>): Likewise.
32812 (sync_new_<optab><mode>): Likewise.
32813 (sync_nand<mode>): Likewise.
32814 (sync_old_nand<mode>): Likewise.
32815 (sync_new_nand<mode>): Likewise.
32816 (sync_lock_test_and_set<mode>): Likewise.
32817 (test_and_set_12): Likewise.
32818 (atomic_compare_and_swap<mode>): Likewise.
32819 (atomic_exchange<mode>_llsc): Likewise.
32820 (atomic_fetch_add<mode>_llsc): Likewise.
32821 * config/mips/mips-cpus.def (m14kc, m14k): New processors.
32822 * config/mips/mips-protos.h (umips_output_save_restore): New prototype.
32823 (umips_save_restore_pattern_p): Likewise.
32824 (umips_load_store_pair_p): Likewise.
32825 (umips_output_load_store_pair): Likewise.
32826 (umips_movep_target_p): Likewise.
32827 (umips_12bit_offset_address_p): Likewise.
32828 * config/mips/mips.c (MIPS_MAX_FIRST_STEP): Update for microMIPS.
32829 (mips_base_mips16): Rename this...
32830 (mips_base_compression_flags): ...to this. Update all uses.
32831 (mips_attribute_table): Add micromips, nomicromips and nocompression.
32832 (mips_mips16_decl_p): Delete.
32833 (mips_nomips16_decl_p): Delete.
32834 (mips_get_compress_on_flags): New function.
32835 (mips_get_compress_off_flags): New function.
32836 (mips_get_compress_mode): New function.
32837 (mips_get_compress_on_name): New function.
32838 (mips_get_compress_off_name): New function.
32839 (mips_insert_attributes): Support multiple compression types.
32840 (mips_merge_decl_attributes): Likewise.
32841 (umips_12bit_offset_address_p): New function.
32842 (mips_start_function_definition): Emit .set micromips directive.
32843 (mips_call_may_need_jalx_p): New function.
32844 (mips_function_ok_for_sibcall): Add microMIPS support.
32845 (mips_print_operand_punctuation): Support short delay slots and
32847 (umips_swm_mask, umips_swm_encoding): New.
32848 (umips_build_save_restore): New function.
32849 (mips_for_each_saved_gpr_and_fpr): Add microMIPS support.
32850 (was_mips16_p): Remove.
32851 (old_compression_mode): New.
32852 (mips_set_compression_mode): New function.
32853 (mips_set_current_function): Add microMIPS support.
32854 (mips_option_override): Likewise.
32855 (umips_save_restore_pattern_p): New function.
32856 (umips_output_save_restore): New function.
32857 (umips_load_store_pair_p_1): New function.
32858 (umips_load_store_pair_p): New function.
32859 (umips_output_load_store_pair_1): New function.
32860 (umips_output_load_store_pair): New function.
32861 (umips_movep_target_p) New function.
32862 (mips_prepare_pch_save): Add microMIPS support.
32863 * config/mips/mips.h (TARGET_COMPRESSION): New.
32864 (TARGET_CPU_CPP_BUILTINS): Update macro
32865 to use new compression flags and to support microMIPS.
32866 (MIPS_ISA_LEVEL_SPEC): Add m14k processors.
32867 (MIPS_ARCH_FLOAT_SPEC): Likewise.
32868 (ISA_HAS_LWXS): Include TARGET_MICROMIPS.
32869 (ISA_HAS_LOAD_DELAY): Exclude TARGET_MICROMIPS.
32870 (ASM_SPEC): Support mmicromips and mno-micromips.
32871 (M16STORE_REG_P): New macro.
32872 (MIPS_CALL): Support TARGET_MICROMIPS.
32873 (MICROMIPS_J): New macro.
32874 (mips_base_mips16): Rename this...
32875 (mips_base_compression_flags): ...to this.
32876 (UMIPS_12BIT_OFFSET_P): New macro.
32877 * config/mips/t-sde: (MULTILIB_OPTIONS): Add microMIPS.
32878 (MULTILIB_DIRNAMES): Likewise.
32879 2013-03-20 Richard Biener <rguenther@suse.de>
32881 PR tree-optimization/56661
32882 * tree-ssa-sccvn.c (visit_use): Only value-number calls if
32883 the result does not have to be distinct.
32885 2013-03-20 Richard Biener <rguenther@suse.de>
32887 * tree-inline.c (copy_tree_body_r): Sync MEM_REF code with
32890 2013-03-20 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
32891 Steven Bosscher <steven@gcc.gnu.org>
32893 PR rtl-optimization/56605
32894 * loop-iv.c (implies_p): Handle equal RTXs and subregs.
32896 2013-03-20 Uros Bizjak <ubizjak@gmail.com>
32899 * config/i386/i386.md (*movdi_internal): Handle broken assemblers
32900 that require movd instead of movq.
32902 2013-03-20 Richard Biener <rguenther@suse.de>
32904 * tree-ssa-structalias.c (struct variable_info): Add pointer
32905 to the first field of an aggregate with sub-vars. Make
32906 this and the pointer to the next subfield its ID.
32907 (vi_next): New function.
32908 (nothing_id, anything_id, readonly_id, escaped_id, nonlocal_id,
32909 storedanything_id, integer_id): Increment by one.
32910 (new_var_info, get_call_vi, lookup_call_clobber_vi,
32911 get_call_clobber_vi): Adjust.
32912 (solution_set_expand): Simplify and speedup.
32913 (solution_set_add): Inline into ...
32914 (set_union_with_increment): ... this. Adjust accordingly.
32915 (do_sd_constraint): Likewise.
32916 (do_ds_constraint): Likewise.
32917 (do_complex_constraint): Simplify.
32918 (build_pred_graph): Adjust.
32919 (solve_graph): Likewise. Simplify and speedup.
32920 (get_constraint_for_ssa_var, get_constraint_for_ptr_offset,
32921 get_constraint_for_component_ref, get_constraint_for_1,
32922 first_vi_for_offset, first_or_preceding_vi_for_offset,
32923 create_function_info_for, create_variable_info_for_1,
32924 create_variable_info_for, intra_create_variable_infos): Adjust.
32925 (init_base_vars): Push NULL for ID zero.
32926 (compute_points_to_sets): Adjust.
32928 2013-03-20 Richard Biener <rguenther@suse.de>
32930 * cfgloop.c (verify_loop_structure): Streamline and avoid
32931 ICEing on corrupt loop tree.
32932 * graph.c (draw_cfg_nodes_for_loop): Avoid ICEing on corrupt
32935 2013-03-20 Richard Biener <rguenther@suse.de>
32937 * tree-vect-loop-manip.c (slpeel_can_duplicate_loop_p): Do not
32938 check whether an SSA update is needed.
32940 2013-03-20 Richard Sandiford <rdsandiford@googlemail.com>
32942 * config/mips/constraints.md (T): Rename to...
32946 * config/mips/mips.md (*movdi_64bit, *movdi_64bit_mips16)
32947 (*mov<mode>_internal, *mov<mode>_mips16): Update accordingly.
32949 2013-03-19 Ian Bolton <ian.bolton@arm.com>
32951 * config/aarch64/aarch64.md (*sub<mode>3_carryin): New pattern.
32952 (*subsi3_carryin_uxtw): Likewise.
32954 2013-03-19 Ian Bolton <ian.bolton@arm.com>
32956 * config/aarch64/aarch64.md (*ror<mode>3_insn): New pattern.
32957 (*rorsi3_insn_uxtw): Likewise.
32959 2013-03-19 Ian Bolton <ian.bolton@arm.com>
32961 * config/aarch64/aarch64.md (*extr<mode>5_insn): New pattern.
32962 (*extrsi5_insn_uxtw): Likewise.
32964 2013-03-19 Richard Biener <rguenther@suse.de>
32966 PR tree-optimization/56273
32967 * passes.c (init_optimization_passes): Move second VRP after DOM.
32969 2013-03-19 Uros Bizjak <ubizjak@gmail.com>
32971 * config/i386/i386.md (*movti_internal): Merge from
32972 *movti_internal_rex64 and *movti_internal_sse. Use x64 isa attribute.
32973 (*movdi_internal): Merge with *movdi_internal_rex64. Use x64 and
32974 nox64 isa attributes.
32976 2013-03-18 Richard Biener <rguenther@suse.de>
32978 * tree-ssa-structalias.c (find): Use gcc_checking_assert.
32980 (merge_node_constraints): Likewise.
32981 (build_succ_graph): Likewise.
32982 (valid_graph_edge): Inline into single caller.
32983 (unify_nodes): Likewise. Use bitmap_set_bit return value
32985 (scc_visit): Fix formatting and variable use.
32986 (do_sd_constraint): Use gcc_checking_assert.
32987 (do_ds_constraint): Likewise.
32988 (do_complex_constraint): Likewise.
32989 (condense_visit): Likewise. Cleanup.
32990 (dump_pred_graph): New function.
32991 (perform_var_substitution): Dump the pred-graph before
32992 variable substitution.
32993 (find_equivalent_node): Use gcc_checking_assert.
32994 (rewrite_constraints): Guard checking loop with ENABLE_CHECKING.
32996 2013-03-18 Richard Biener <rguenther@suse.de>
32998 * tree-vect-loop-manip.c (vect_create_cond_for_alias_checks):
32999 Remove cond_expr_stmt_list argument and do not gimplify the
33001 (vect_loop_versioning): Adjust.
33002 * tree-vect-data-refs.c (vect_create_addr_base_for_vector_ref):
33003 Cleanup to use less temporaries.
33004 (vect_create_data_ref_ptr): Cleanup.
33006 2013-03-18 Jakub Jelinek <jakub@redhat.com>
33008 PR tree-optimization/56635
33009 * fold-const.c (operand_equal_p): For MEM_REF and TARGET_MEM_REF,
33010 require types_compatible_p types.
33012 2013-03-18 Nick Clifton <nickc@redhat.com>
33014 * config/stormy16/stormy16.c (xstormy16_expand_prologue): Remove
33015 spurious backslash.
33017 * config/mn10300/mn10300.c (mn10300_get_live_callee_saved_regs):
33018 Add missing line to comment describing function.
33020 2013-03-18 Richard Biener <rguenther@suse.de>
33022 PR tree-optimization/56210
33023 * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
33024 Handle string / character search functions.
33025 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Likewise.
33027 2013-03-18 Richard Biener <rguenther@suse.de>
33029 PR middle-end/56483
33030 * cfgexpand.c (expand_gimple_cond): Inline gimple_cond_single_var_p
33031 and implement properly.
33032 * gimple.h (gimple_cond_single_var_p): Remove.
33034 2013-03-18 Richard Biener <rguenther@suse.de>
33036 * tree-data-ref.h (find_data_references_in_loop): Declare.
33037 * tree-data-ref.c (get_references_in_stmt): Use a stack
33038 vector pre-allocated in the callers.
33039 (find_data_references_in_stmt): Adjust.
33040 (graphite_find_data_references_in_stmt): Likewise.
33041 (create_rdg_vertices): Likewise.
33042 (find_data_references_in_loop): Export.
33043 * tree-vect-data-refs.c (vect_analyze_data_ref_dependences):
33044 Compute dependences here...
33045 (vect_analyze_data_refs): ...not here. When we encounter
33046 a non-vectorizable data reference in basic-block vectorization
33047 truncate the data reference vector. Do not bother to
33048 fixup data-dependence information for gather loads.
33049 * tree-vect-slp.c (vect_slp_analyze_bb_1): Check the number
33050 of data references, as reported.
33052 2013-03-18 Richard Biener <rguenther@suse.de>
33054 PR tree-optimization/3713
33055 * tree-ssa-sccvn.c (visit_copy): Simplify. Always propagate
33056 has_constants and expr.
33057 (stmt_has_constants): Properly valueize SSA names when deciding
33058 whether the stmt has constants.
33060 2013-03-18 Richard Biener <rguenther@suse.de>
33062 * tree-ssa-loop-manip.c (find_uses_to_rename): Do not scan the
33063 whole function when there is nothing to do.
33064 * tree-ssa-loop.c (pass_vectorize): Remove TODO_update_ssa.
33065 * tree-vectorizer.c (vectorize_loops): Update virtual and
33066 loop-closed SSA once.
33067 * tree-vect-loop.c (vect_transform_loop): Do not update SSA here.
33069 2013-03-18 Richard Biener <rguenther@suse.de>
33071 PR middle-end/56113
33072 * domwalk.c (bb_postorder): New global static.
33073 (cmp_bb_postorder): New function.
33074 (walk_dominator_tree): Replace scheme imposing an order for
33075 visiting dominator sons by one sorting them at the time they
33076 are pushed on the stack.
33078 2013-03-18 Richard Biener <rguenther@suse.de>
33080 PR tree-optimization/39326
33081 * tree-ssa-loop-im.c (refs_independent_p): Exploit symmetry.
33082 (struct mem_ref): Replace mem member with ao_ref typed member.
33083 (MEM_ANALYZABLE): Adjust.
33084 (memref_eq): Likewise.
33085 (mem_ref_alloc): Likewise.
33086 (gather_mem_refs_stmt): Likewise.
33087 (mem_refs_may_alias_p): Use the ao_ref to query the alias oracle.
33088 (execute_sm_if_changed_flag_set): Adjust.
33089 (execute_sm): Likewise.
33090 (ref_always_accessed_p): Likewise.
33091 (refs_independent_p): Likewise.
33092 (can_sm_ref_p): Likewise.
33094 2013-03-18 Jakub Jelinek <jakub@redhat.com>
33097 * tree.c (tree_int_cst_min_precision): For integer_zerop (value)
33098 return 1 even for !unsignedp.
33100 2013-03-17 Uros Bizjak <ubizjak@gmail.com>
33102 * config/i386/i386.md (isa): Add x64 and nox64.
33103 (enabled): Define x64 for TARGET_64BIT and nox64 for !TARGET_64BIT.
33104 (*pushtf): Enable *roF alternative for x64 isa only.
33105 (*pushxf): Merge with *pushxf_nointeger. Use Yx*r constraint. Set
33106 mode attribute of integer alternatives to DImode for TARGET_64BIT.
33107 (*pushdf): Merge with *pushdf_rex64. Use x64 and nox64 isa attributes.
33108 (*movtf_internal): Merge from *movtf_internal_rex64 and
33109 *movtf_internal_sse. Use x64 and nox64 isa attributes.
33110 (*movxf_internal): Merge with *movxf_internal_rex64. Use x64 and
33111 nox64 isa attributes.
33112 (*movdf_internal): Merge with *movdf_internal_rex64. Use x64 and
33113 nox64 isa attributes.
33114 * config/i386/constraints.md (Yd): Do not set for TARGET_64BIT.
33116 2013-03-17 Uros Bizjak <ubizjak@gmail.com>
33118 * config/alpha/alpha.c (TARGET_LRA_P): New define.
33120 2013-03-17 Jakub Jelinek <jakub@redhat.com>
33123 * config/arm/arm.h (REG_CLASS_NAMES): Add "SFP_REG" and "AFP_REG"
33124 class names. Remove trailing comma after "ALL_REGS".
33126 2013-03-16 Jan Hubicka <jh@suse.cz>
33128 * cgraph.h (cgraph_get_create_real_symbol_node): Declare.
33129 * cgraph.c (cgraph_get_create_real_symbol_node): New function.
33130 * cgrpahbuild.c: Use cgraph_get_create_real_symbol_node instead
33131 of cgraph_get_create_node.
33132 * ipa-prop.c (ipa_make_edge_direct_to_target): Likewise.
33134 2013-03-16 Jason Merrill <jason@redhat.com>
33137 * dwarf2out.c (gen_generic_params_dies): Indicate default arguments
33138 with DW_AT_default_value.
33140 2013-03-16 Jakub Jelinek <jakub@redhat.com>
33142 * BASE-VER: Set to 4.9.0.
33144 2013-03-14 Andi Kleen <ak@linux.intel.com>
33147 * doc/extend.texi: Document __ATOMIC_HLE_ACQUIRE,
33148 __ATOMIC_HLE_RELEASE. Document __builtin_ia32 TSX intrincs.
33149 Document _x* TSX intrinsics.
33151 2013-03-14 Edgar E. Iglesias <edgar.iglesias@xilinx.com>
33152 David Holsgrove <david.holsgrove@xilinx.com>
33154 * configure.ac: Add MicroBlaze TLS support detection.
33155 * configure: Regenerate.
33156 * config/microblaze/microblaze-protos.h
33157 (microblaze_cannot_force_const_mem, microblaze_tls_referenced_p,
33158 symbol_mentioned_p, label_mentioned_p): Add prototypes.
33159 * config/microblaze/microblaze.c (microblaze_address_type): Add
33160 ADDRESS_TLS and tls_reloc address types.
33161 (microblaze_address_info): Add tls_reloc.
33162 (TARGET_HAVE_TLS): Define.
33163 (get_tls_get_addr, microblaze_tls_symbol_p, microblaze_tls_operand_p_1,
33164 microblaze_tls_referenced_p, microblaze_cannot_force_const_mem,
33165 symbol_mentioned_p, label_mentioned_p, tls_mentioned_p,
33166 load_tls_operand, microblaze_call_tls_get_addr,
33167 microblaze_legitimize_tls_address): New functions.
33168 (microblaze_classify_unspec): Handle UNSPEC_TLS.
33169 (get_base_reg): Use microblaze_tls_symbol_p.
33170 (microblaze_classify_address): Handle TLS.
33171 (microblaze_legitimate_pic_operand): Use symbol_mentioned_p,
33172 label_mentioned_p and microblaze_tls_referenced_p.
33173 (microblaze_legitimize_address): Handle TLS.
33174 (microblaze_address_insns): Handle ADDRESS_TLS.
33175 (pic_address_needs_scratch): Handle TLS.
33176 (print_operand_address): Handle TLS.
33177 (microblaze_expand_prologue): Check TLS_NEEDS_GOT.
33178 (microblaze_expand_move): Handle TLS.
33179 (microblaze_legitimate_constant_p): Check
33180 microblaze_cannot_force_const_mem and microblaze_tls_symbol_p.
33181 (TARGET_CANNOT_FORCE_CONST_MEM): Define.
33182 * config/microblaze/microblaze.h (TLS_NEEDS_GOT): Define
33183 (PIC_OFFSET_TABLE_REGNUM): Set.
33184 * config/microblaze/linux.h (TLS_NEEDS_GOT): Define.
33185 * config/microblaze/microblaze.md (UNSPEC_TLS): Define.
33186 (addsi3, movsi_internal2, movdf_internal): Update constraints
33187 * config/microblaze/predicates.md (arith_plus_operand): Define
33188 (move_operand): Redefine as move_src_operand,
33189 check microblaze_tls_referenced_p.
33191 2013-03-14 Ian Bolton <ian.bolton@arm.com>
33193 * config/aarch64/aarch64.md: (*and<mode>3nr_compare0): Use CC_NZ.
33194 (*and_<SHIFT:optab><mode>3nr_compare0): Likewise.
33196 2013-03-14 Ian Bolton <ian.bolton@arm.com>
33198 * config/aarch64/aarch64.c (aarch64_select_cc_mode): Return correct
33201 2013-03-14 Jakub Jelinek <jakub@redhat.com>
33203 PR tree-optimization/53265
33204 * common.opt (Waggressive-loop-optimizations): New option.
33205 * tree-ssa-loop-niter.c: Include tree-pass.h.
33206 (do_warn_aggressive_loop_optimizations): New function.
33207 (record_estimate): Call it. Don't add !is_exit bounds to loop->bounds
33208 if number_of_latch_executions returned constant.
33209 (estimate_numbers_of_iterations_loop): Call number_of_latch_executions
33210 early. If number_of_latch_executions returned constant, set
33211 nb_iterations_upper_bound back to it.
33212 * cfgloop.h (struct loop): Add warned_aggressive_loop_optimizations
33214 * Makefile.in (tree-ssa-loop-niter.o): Depend on $(TREE_PASS_H).
33215 * doc/invoke.texi (-Wno-aggressive-loop-optimizations): Document.
33217 * config/aarch64/t-aarch64-linux (MULTARCH_DIRNAME): Remove.
33218 (MULTILIB_OSDIRNAMES): Set.
33219 * genmultilib: If defaultosdirname doesn't start with :: , set
33220 defaultosdirname2 instead, clear it and emit two . multilib_raw
33221 entries instead of just one.
33223 2013-03-14 Kaz Kojima <kkojima@gcc.gnu.org>
33225 * config/sh/linux.h (TARGET_DEFAULT): Remove MASK_USERMODE.
33226 (SUBTARGET_OVERRIDE_OPTIONS): Set TARGET_USERMODE as default.
33227 * config/sh/netbsd-elf.h (TARGET_DEFAULT): Remove MASK_USERMODE.
33228 (SUBTARGET_OVERRIDE_OPTIONS): New.
33230 2013-03-13 Oleg Endo <olegendo@gcc.gnu.org>
33233 * config/sh/sh.opt (FPU_SINGLE_ONLY): New mask.
33234 (musermode): Convert to Var(TARGET_USERMODE).
33235 * config/sh/sh.h (SELECT_SH2A_SINGLE_ONLY, SELECT_SH4_SINGLE_ONLY,
33236 MASK_ARCH): Add MASK_FPU_SINGLE_ONLY.
33237 * config/sh/sh.c (sh_option_override): Use
33238 TARGET_FPU_DOUBLE || TARGET_FPU_SINGLE_ONLY for call-fp case.
33239 * config/sh/sh.md (udivsi3_i1, divsi3_i1): Remove ! TARGET_SH4
33241 (udivsi3_i4, divsi3_i4): Use TARGET_FPU_DOUBLE condition instead of
33243 (udivsi3_i4_single, divsi3_i4_single): Use
33244 TARGET_FPU_SINGLE_ONLY || TARGET_FPU_DOUBLE instead of TARGET_HARD_SH4.
33246 2013-03-13 Dave Korn <dave.korn.cygwin@gmail.com>
33248 * config/i386/cygwin.h (SHARED_LIBGCC_SPEC): Make shared libgcc the
33251 2013-03-13 Richard Biener <rguenther@suse.de>
33253 PR tree-optimization/56608
33254 * tree-vect-slp.c (vect_schedule_slp): Do not remove scalar
33255 calls when vectorizing basic-blocks.
33257 2013-03-13 Jakub Jelinek <jakub@redhat.com>
33260 * config.gcc: On arm, mips, sh and sparc add vxworks-dummy.h to
33263 2013-03-12 Jakub Jelinek <jakub@redhat.com>
33265 * doc/invoke.texi (-Waddr-space-convert): Move into the table earlier.
33267 2013-03-11 Jan Hubicka <jh@suse.cz>
33270 * lto-streamer-out.c (output_symbol_p): Skip references from
33271 constructors of external variables.
33273 2013-03-11 Jan Hubicka <jh@suse.cz>
33275 PR middle-end/56571
33276 * valtrack.c (cleanup_auto_inc_dec): Unshare clobbers originating
33278 * emit-rtl.c (verify_rtx_sharing): Likewise.
33279 (copy_insn_1): Likewise.
33280 * rtl.c (copy_rtx): Likewise.
33282 2013-03-11 Georg-Johann Lay <avr@gjlay.de>
33285 * config/avr/avr.c (avr_print_operand): Add space after '%c' in
33286 output_operand_lossage message.
33288 2013-03-11 Richard Earnshaw <rearnsha@arm.com>
33291 * arm.c (shift_op): Validate RTL pattern on the fly.
33292 (arm_print_operand, case 'S'): Don't use shift_operator to validate
33295 2013-03-10 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
33298 * config/pa/pa.md (call_value): Check for calls to powf and direct to
33299 new call patterns that clobber %fr12.
33300 (call_val_powf, call_val_powf_pic, call_val_powf_64bit): New insn,
33301 split and postreload patterns.
33302 * config/pa/pa.c (pa_conditional_register_usage): Revert marking
33303 registers %fr12 and %fr12R as call used.
33305 2013-03-09 Steven Bosscher <steven@gcc.gnu.org>
33307 * dse.c (delete_dead_store_insn): Respect TDF_DETAILS.
33308 (canon_address, record_store, replace_read, check_mem_read_rtx,
33309 scan_insn, dse_step1, dse_step2_init, dse_step2_spill,
33310 dse_step4, dse_step5_nospill, dse_step5_spill, dse_step6,
33311 rest_of_handle_dse): Likewise.
33313 2013-03-09 Richard Sandiford <rdsandiford@googlemail.com>
33315 PR middle-end/56524
33316 * tree.h (tree_optimization_option): Rename target_optabs to optabs.
33318 (TREE_OPTIMIZATION_OPTABS): Update after previous field change.
33319 (TREE_OPTIMIZATION_BASE_OPTABS): New macro.
33320 (save_optabs_if_changed): Replace with...
33321 (init_tree_optimization_optabs): ...this.
33322 * optabs.c (save_optabs_if_changed): Rename to...
33323 (init_tree_optimization_optabs): ...this. Take the optimization node
33324 as argument. Do nothing if the base optabs are already correct.
33325 Reuse the existing TREE_OPTIMIZATION_OPTABS memory if we need
33326 to recompute optabs.
33327 * function.h (function): Remove optabs field.
33328 * function.c (invoke_set_current_function_hook): Call
33329 init_tree_optimization_optabs. Use the result to initialize
33332 2013-02-27 Aldy Hernandez <aldyh@redhat.com>
33334 * trans-mem.c (expand_transaction): Do not set PR_INSTRUMENTEDCODE
33335 if GTMA_HAS_NO_INSTRUMENTATION.
33336 (generate_tm_state): Keep GTMA_HAS_NO_INSTRUMENTATION bit.
33337 (ipa_tm_transform_transaction): Set GTMA_HAS_NO_INSTRUMENTATION.
33338 * gimple.h (GTMA_HAS_NO_INSTRUMENTATION): Define.
33339 * gimple-pretty-print.c (dump_gimple_transaction): Handle
33340 GTMA_HAS_NO_INSTRUMENTATION.
33342 2013-03-08 Jakub Jelinek <jakub@redhat.com>
33344 * config/gnu-user.h (LIBTSAN_EARLY_SPEC): Don't link against
33347 2013-03-08 Marek Polacek <polacek@redhat.com>
33348 Jakub Jelinek <jakub@redhat.com>
33350 PR tree-optimization/56478
33351 * predict.c (is_comparison_with_loop_invariant_p): Change the
33352 type of loop_step to tree.
33353 (predict_loops): Adjust.
33354 (predict_iv_comparison): Perform the computations on double_ints.
33356 2013-03-08 Richard Biener <rguenther@suse.de>
33358 PR tree-optimization/56570
33359 * tree-cfg.c (verify_expr_location_1): Verify locations for
33361 * tree-sra.c (create_access_replacement): Strip locations
33362 from DECL_DEBUG_EXPRs.
33364 2013-03-08 Richard Biener <rguenther@suse.de>
33366 * tree-inline.c (expand_call_inline): Do not associate
33367 a BLOCK with the location in BLOCK_SOURCE_LOCATION.
33368 * tree-cfg.c (verify_location): Verify BLOCK_SOURCE_LOCATION.
33370 2013-03-08 Richard Biener <rguenther@suse.de>
33372 * tree-ssa-ter.c (is_replaceable_p): Do not TER across location
33373 or block changes with -Og. Fix for location / block encoding
33374 changes and PHI arguments with locations.
33376 2013-03-07 Steven Bosscher <steven@gcc.gnu.org>
33378 * bitmap.c (struct bitmap_descriptor_d): Use unsigned HOST_WIDEST_INT
33380 (struct output_info): Likewise.
33381 (register_overhead): Remove bad gcc_assert.
33382 (bitmap_find_bit): If there is only a single bitmap element, do not
33383 count a miss as a search.
33384 (print_statistics): Update for counter type changes.
33385 (dump_bitmap_statistics): Likewise. Print headers such that they
33386 are properly lined up with the printed counters.
33388 2013-03-07 Jakub Jelinek <jakub@redhat.com>
33390 PR tree-optimization/56559
33391 * tree-ssa-reassoc.c (zero_one_operation): When looking at rhs2,
33392 check that it has only a single use.
33394 2013-03-07 Richard Biener <rguenther@suse.de>
33396 * doc/invoke.texi (fwhole-program): Discourage use in combination
33399 2013-03-06 Jakub Jelinek <jakub@redhat.com>
33401 * config/arm/t-arm (TM_H, OPTIONS_H_EXTRA): Add arm-cores.def.
33403 PR tree-optimization/56539
33404 * tree-tailcall.c (adjust_return_value_with_ops): Use GSI_SAME_STMT
33405 instead of GSI_CONTINUE_LINKING as last argument to
33406 force_gimple_operand_gsi. Adjust function comment.
33408 * config/aarch64/t-aarch64 (TM_H, OPTIONS_H_EXTRA): Add
33411 PR middle-end/56548
33412 * expr.c (expand_cond_expr_using_cmove): When expanding cmove in
33413 promoted mode, convert the result back to the original mode.
33415 2013-03-06 Richard Biener <rguenther@suse.de>
33417 PR middle-end/56294
33418 * tree-into-ssa.c (insert_phi_nodes_for): Add dumping.
33419 (insert_updated_phi_nodes_compare_uids): New function.
33420 (update_ssa): Sort symbols_to_rename after UID before
33421 traversing it to insert PHI nodes.
33423 2013-03-06 Richard Biener <rguenther@suse.de>
33425 PR middle-end/50494
33426 * tree-vect-data-refs.c (vect_can_force_dr_alignment_p):
33427 Do not adjust alignment of DECL_IN_CONSTANT_POOL decls.
33430 2013-02-13 Richard Biener <rguenther@suse.de>
33433 * varasm.c (output_constant_def_1): Get the decl representing
33434 the constant as argument.
33435 (output_constant_def): Wrap output_constant_def_1.
33436 (make_decl_rtl): Use output_constant_def_1 with the decl
33437 representing the constant.
33438 (build_constant_desc): Optionally re-use a decl already
33439 representing the constant.
33440 (tree_output_constant_def): Adjust.
33442 2013-03-06 Joey Ye <joey.ye@arm.com>
33445 * gcc.c (convert_white_space): New function.
33446 (main): Handles white space in function name.
33448 2013-03-06 Oleg Endo <olegendo@gcc.gnu.org>
33451 * config/sh/sh.c (sh_option_override): Check for TARGET_DYNSHIFT
33452 instead of TARGET_SH2 for call-table case. Do not set sh_div_strategy
33453 to SH_DIV_CALL_TABLE for TARGET_SH2.
33454 * config.gcc (sh_multilibs): Add m2 and m2a to sh*-*-linux* multilib
33456 * doc/invoke.texi (SH options): Document mdiv= call-div1, call-fp,
33457 call-table options.
33459 2013-03-05 Sterling Augustine <saugustine@google.com>
33460 Cary Coutant <ccoutant@google.com>
33463 * dwarf2out.c (resolve_addr): Don't call
33464 remove_loc_list_addr_table_entries a second time for the same
33467 2013-03-05 Jakub Jelinek <jakub@redhat.com>
33470 * cfgexpand.c (expand_debug_parm_decl): Call copy_rtx on incoming.
33471 (avoid_complex_debug_insns): New function.
33472 (expand_debug_locations): Call it.
33474 PR rtl-optimization/56484
33475 * ifcvt.c (noce_process_if_block): If else_bb is NULL, avoid extending
33476 lifetimes of hard registers on small register class machines.
33478 2013-03-05 David Holsgrove <david.holsgrove@xilinx.com>
33480 * config/microblaze/microblaze-protos.h: Rename
33481 microblaze_is_interrupt_handler to microblaze_is_interrupt_variant.
33482 * config/microblaze/microblaze.c (microblaze_attribute_table): Add
33484 (microblaze_fast_interrupt_function_p): New function.
33485 (microblaze_is_interrupt_handler): Rename to
33486 microblaze_is_interrupt_variant and add fast_interrupt check.
33487 (microblaze_must_save_register): Use microblaze_is_interrupt_variant.
33488 (save_restore_insns): Likewise.
33489 (compute_frame_size): Likewise.
33490 (microblaze_function_prologue): Add FAST_INTERRUPT_NAME.
33491 (microblaze_globalize_label): Likewise.
33492 * config/microblaze/microblaze.h: Define FAST_INTERRUPT_NAME.
33493 * config/microblaze/microblaze.md: Use wrapper
33494 microblaze_is_interrupt_variant.
33496 2013-03-05 Kai Tietz <ktietz@redhat.com>
33498 * sdbout.c (sdbout_one_type): Switch to current function's section
33499 supporting cold/hot.
33501 2013-03-05 David Holsgrove <david.holsgrove@xilinx.com>
33503 * doc/invoke.texi (MicroBlaze): Add -mbig-endian, -mlittle-endian,
33506 2013-03-05 Jakub Jelinek <jakub@redhat.com>
33508 PR middle-end/56461
33509 * ggc-common.c (gt_pch_save): For ENABLE_VALGRIND_CHECKING,
33510 if VALGRIND_GET_VBITS is defined, temporarily make object
33511 memory all defined, and restore previous valgrind addressability
33512 and definability afterwards. Free this_object at the end.
33514 PR middle-end/56461
33515 * lra.c (lra): Call lra_clear_live_ranges if live_p,
33516 right before calling lra_create_live_ranges, also call it
33517 when clearing live_p. Only call lra_clear_live_ranges
33518 at the end if live_p.
33520 PR middle-end/56461
33521 * sched-deps.c (delete_dep_node): Free DEP_REPLACE.
33523 2013-03-05 Richard Biener <rguenther@suse.de>
33525 PR tree-optimization/56521
33526 * tree-ssa-sccvn.c (set_value_id_for_result): Always initialize
33529 2013-03-05 Steven Bosscher <steven@gcc.gnu.org>
33532 * except.h (remove_unreachable_eh_regions): New prototype.
33533 * except.c (remove_eh_handler_splicer): New function, split out
33534 of remove_eh_handler.
33535 (remove_eh_handler): Use remove_eh_handler_splicer. Add comment
33536 warning about running it on many EH regions one at a time.
33537 (remove_unreachable_eh_regions_worker): New function, walk the
33538 EH tree in depth-first order and remove non-marked regions.
33539 (remove_unreachable_eh_regions): New function.
33540 * tree-eh.c (mark_reachable_handlers): New function, split out
33541 from remove_unreachable_handlers.
33542 (remove_unreachable_handlers): Use mark_reachable_handlers and
33543 remove_unreachable_eh_regions.
33544 (remove_unreachable_handlers_no_lp): Use mark_reachable_handlers
33545 and remove_unreachable_eh_regions.
33547 2013-03-05 Richard Biener <rguenther@suse.de>
33549 PR middle-end/56525
33550 * loop-init.c (fix_loop_structure): Remove loops in two stages,
33551 not freeing them until the end.
33553 2013-03-05 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
33555 * config/s390/s390.h: Define DWARF2_ASM_LINE_DEBUG_INFO.
33557 2013-03-05 Richard Biener <rguenther@suse.de>
33559 PR tree-optimization/56270
33560 * tree-vect-slp.c (vect_schedule_slp): Clear vectorized stmts
33561 of loads after scheduling an SLP instance.
33563 2013-03-05 Jakub Jelinek <jakub@redhat.com>
33565 * Makefile.in (dg_target_exps): Add aarch64.exp, epiphany.exp and
33567 (check_gcc_parallelize): Run guality.exp as a separate job from
33568 vect.exp with unsorted.exp and $(dg_target_exps) separately from
33569 struct-layout-1.exp with stackalign.exp.
33571 * alias.c (init_alias_analysis): Clear reg_known_equiv_p bitmap.
33573 PR middle-end/56461
33574 * tree-vect-slp.c (vect_supported_load_permutation_p): Free
33575 load_index sbitmap even if some bit in it isn't set.
33577 PR middle-end/56461
33578 * tree-ssa-loop-niter.c (bb_queue): Remove typedef.
33579 (discover_iteration_bound_by_body_walk): Change queues to
33580 vec<vec<basic_block> > and queue to vec<basic_block>. Fix up
33581 spelling in comment. Call safe_push on queues[bound_index] directly.
33582 Release queues[queue_index] in every iteration unconditionally.
33583 Release bounds vector.
33585 PR middle-end/56461
33586 * tree-vect-stmts.c (free_stmt_vec_info_vec): Call
33587 free_stmt_vec_info on any left-over stmt_vec_info in the vector.
33588 * tree-vect-loop.c (vect_create_epilog_for_reduction): Release
33591 2013-03-05 Richard Biener <rguenther@suse.de>
33594 * tree-inline.c (remap_blocks_to_null): New function.
33595 (expand_call_inline): When expanding a call stmt without
33596 an associated block inline remap all callee blocks to NULL.
33598 2013-03-05 Jakub Jelinek <jakub@redhat.com>
33600 PR rtl-optimization/56494
33601 * simplify-rtx.c (simplify_truncation): If C is narrower than A,
33602 optimize (truncate:A (subreg:B (truncate:C X) 0)) into
33603 (subreg:A (truncate:C X) 0) instead of (truncate:A X).
33605 PR middle-end/56461
33606 * sel-sched-ir.c (free_sched_pools): Release
33607 succs_info_pool.stack[succs_info_pool.max_top] vectors too
33608 if succs_info_pool.max_top isn't -1.
33611 * opts.c (opts_obstack, opts_concat): Moved to...
33612 * opts-common.c (opts_obstack, opts_concat): ... here.
33614 2013-03-04 Jakub Jelinek <jakub@redhat.com>
33616 PR middle-end/56461
33617 * diagnostic.c (diagnostic_append_note): Save and restore old prefix.
33619 2013-03-04 Martin Jambor <mjambor@suse.cz>
33621 * tree-dfa.c (get_or_create_ssa_default_def): Use parameter fn in
33622 all appropriate places.
33624 2013-01-04 Eric Botcazou <ebotcazou@adacore.com>
33626 PR tree-optimization/56424
33627 * ipa-split.c (split_function): Do not set the RSO flag if result is
33628 not by reference and its type is a register type.
33630 2013-03-04 David Holsgrove <david.holsgrove@xilinx.com>
33632 * config/microblaze/microblaze.c (microblaze_valid_pic_const): New
33633 (microblaze_legitimate_pic_operand): Likewise
33634 * config/microblaze/microblaze.h (LEGITIMATE_PIC_OPERAND_P): calls
33635 new function microblaze_legitimate_pic_operand
33636 * config/microblaze/microblaze-protos.h
33637 (microblaze_legitimate_pic_operand): Declare.
33639 2013-03-04 Edgar E. Iglesias <edgar.iglesias@gmail.com>
33641 * config/microblaze/predicates.md (call_insn_simple_operand):
33642 New predicate for supported rtx code types.
33643 * config/microblaze/microblaze.md (call_internal1): Use
33644 call_insn_simple_operand predicate.
33646 2013-03-04 Jakub Jelinek <jakub@redhat.com>
33648 PR middle-end/56461
33649 * tree-loop-distribution.c (ldist_gen): Call partition_free after each
33650 partitions.ordered_remove.
33652 PR middle-end/56461
33653 * tree-vect-stmts.c (vectorizable_conversion): Don't call
33654 vec_oprnds0.create (1) for modifier == NONE.
33656 PR middle-end/56461
33657 * tree-vect-stmts.c (vectorizable_shift): Don't call create methods
33658 on vec_oprnds0 or vec_oprnds1 before loop, only call it on
33659 vec_oprnds1 right before pushing anything to it for
33662 PR middle-end/56461
33663 * tree-vect-loop.c (destroy_loop_vec_info): For !clean_stmts, just
33664 set nbbs to 0 instead of having separate code path.
33665 (vect_analyze_loop_form): Call destroy_loop_vec_info with true
33666 instead of false as last argument if returning NULL.
33668 2013-03-03 Sandra Loosemore <sandra@codesourcery.com>
33670 * target.def (TARGET_OPTION_VALID_ATTRIBUTE_P): Update comments;
33671 the attribute is now called "target" instead of "option".
33672 (TARGET_OPTION_PRAGMA_PARSE): Likewise, for the pragma.
33673 * doc/tm.texi.in (Target Attributes): Likewise document the correct
33674 attribute/pragma name for TARGET_OPTION_VALID_P and
33675 TARGET_OPTION_PRAGMA_PARSE. Also copy-edit and correct markup.
33676 * doc/tm.texi: Regenerated.
33678 2013-03-02 David Holsgrove <david.holsgrove@xilinx.com>
33680 * config/microblaze/microblaze.c:
33681 Check mcpu, pcmp requirement and set TARGET_REORDER to 0 if not met.
33682 * config/microblaze/microblaze.h: Add -mxl-reorder to
33684 * config/microblaze/microblaze.md: New bswapsi2 and bswaphi2.
33685 instructions emitted if TARGET_REORDER.
33686 * config/microblaze/microblaze.opt: New option -mxl-reorder set to 1
33687 or 0 for -m/-mno case, but initialises as 2 to detect default use case
33690 2013-03-01 Xinliang David Li <davidxl@google.com>
33692 * tree-ssa-uninit.c (compute_control_dep_chain): Limit post-dom
33695 2013-03-01 Jakub Jelinek <jakub@redhat.com>
33697 PR middle-end/56461
33698 * tree-ssa-loop-ivcanon.c (tree_estimate_loop_size): Release path
33699 vector even when returning true. Fix up function comment formatting.
33701 PR middle-end/56461
33702 * ira-build.c (ira_loop_nodes_count): New variable.
33703 (create_loop_tree_nodes): Initialize it.
33704 (finish_loop_tree_nodes): Use it instead of looking at current_loops.
33706 PR middle-end/56461
33707 * tree-vect-data-refs.c (vect_permute_store_chain): Avoid using copy
33708 method on dr_chain and result_chain.
33709 * tree-vect-stmts.c (vectorizable_store): Only call
33710 result_chain.create if j == 0.
33712 PR middle-end/56461
33713 * tree-vect-stmts.c (vect_create_vectorized_promotion_stmts): Call
33714 vec_oprnds0->release (); rather than vec_oprnds0->truncate (0)
33715 before overwriting it.
33717 2013-03-01 Tobias Burnus <burnus@net-b.de>
33719 * doc/extended.texi (C Extensions): Change order in @menu
33721 (Other MIPS Built-in Functions): Move last MIPS entry before
33722 "picoChip Built-in Functions".
33723 (SH Built-in Functions): Move after RX Built-in Functions.
33724 * doc/gcc.texi (Introduction): Change order in @menu
33726 * doc/md.texi (Constraints): Ditto.
33727 * gty.texi (Type Information): Ditto.
33728 (User-provided marking routines for template types): Make
33730 * doc/invoke.texi (AArch64 Options): Move before
33731 "Adapteva Epiphany Options".
33733 2013-02-28 Konstantin Serebryany <konstantin.s.serebryany@gmail.com>
33734 Jakub Jelinek <jakub@redhat.com>
33737 * asan.c (gate_asan): Lookup no_sanitize_address instead of
33738 no_address_safety_analysis attribute.
33739 * doc/extend.texi (no_address_safety_attribute): Rename to
33740 no_sanitize_address attribute, mention no_address_safety_analysis
33741 attribute as deprecated alias.
33743 2013-02-28 Jakub Jelinek <jakub@redhat.com>
33745 PR middle-end/56461
33746 * tree-vectorizer.h (vect_get_slp_defs): Change 3rd argument
33747 type to vec<vec<tree> > *.
33748 * tree-vect-slp.c (vect_get_slp_defs): Likewise. Change vec_defs
33749 to be vec<tree> instead of vec<tree> *, set vec_defs
33750 to vNULL and call vec_defs.create (number_of_vects), adjust other
33752 * tree-vect-stmts.c (vect_get_vec_defs, vectorizable_call,
33753 vectorizable_condition): Adjust vect_get_slp_defs callers.
33755 2013-02-28 James Greenhalgh <james.greenhalgh@arm.com>
33757 * config/aarch64/aarch64.c
33758 (aarch64_float_const_representable): Remove unused variable.
33760 2013-02-28 James Greenhalgh <james.greenhalgh@arm.com>
33762 * config/aarch64/aarch64.c (aarch64_mangle_type): Make static.
33764 2013-02-28 James Greenhalgh <james.greenhalgh@arm.com>
33766 * config/aarch64/aarch64-builtins.c
33767 (aarch64_init_simd_builtins): Make static.
33769 2013-02-28 James Greenhalgh <james.greenhalgh@arm.com>
33771 * config/aarch64/aarch64.c
33772 (aarch64_simd_make_constant): Make static.
33774 2013-02-28 Martin Jambor <mjambor@suse.cz>
33776 * tree-sra.c (load_assign_lhs_subreplacements): Do not put replacements
33777 with no initialization to the RHS of debug statements.
33779 2013-02-28 Martin Jambor <mjambor@suse.cz>
33781 PR tree-optimization/56294
33782 * tree-sra.c (analyze_access_subtree): Create replacement declarations.
33784 (get_access_replacement): Do not call create_access_replacement.
33785 Assert a replacement exists.
33786 (get_repl_default_def_ssa_name): Create the replacement declaration
33789 2013-02-28 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
33791 * config/arm/arm.c (arm_output_mi_thunk): Call final_start_function and
33792 final_end_function.
33794 2013-02-28 Marek Polacek <polacek@redhat.com>
33796 PR rtl-optimization/56466
33797 * loop-unroll.c (unroll_and_peel_loops): Call fix_loop_structure
33798 if we're changing a loop.
33799 (peel_loops_completely): Likewise.
33801 2013-02-28 Paolo Carlini <paolo.carlini@oracle.com>
33804 * doc/invoke.texi ([-Wctor-dtor-privacy]): Complete.
33806 2013-02-28 Georg-Johann Lay <avr@gjlay.de>
33809 * config/avr/avr.c (avr_init_builtins): Use 'n' instead of empty
33810 macro parameters with: FX_FTYPE_FX, FX_FTYPE_FX_INT, INT_FTYPE_FX,
33811 INTX_FTYPE_FX, FX_FTYPE_INTX.
33812 * config/avr/builtins.def: Adjust respective DEF_BUILTIN.
33814 2013-02-28 Georg-Johann Lay <avr@gjlay.de>
33816 * avr/avr-mcus.def (ata5272, ata5505, attiny1634, ata6285)
33817 (ata6286, atmega8a, atmega48pa, ata5790, ata5790n, ata5795)
33818 (atmega164pa, atmega165pa, atmega168pa, atmega16hva, atmega16hvb)
33819 (atmega16hvbrevb, atmega16m1, atmega16u4, atmega26hvg, atmega32a)
33820 (atmega32a, atmega3250pa, atmega3290pa, atmega32c1, atmega32m1)
33821 (atmega32u4, atmega32u6, atmega64a, atmega6490a, atmega6490p)
33822 (atmega64c1, atmega64m1, atmega64rfa2, atmega64rfr2, atmega32hvb)
33823 (atmega32hvbrevb, atmega16hva2, atmega48hvf, at90pwm161)
33824 (atmega128a, atmega1284, atmxt112sl, atmxt224, atmxt224e)
33825 (atmxt336s, atxmega16a4u, atxmega16c4, atxmega32a4u, atxmega32c4)
33826 (atxmega32e5, atxmega64a3u, atxmega64a4u, atxmega64b1, atxmega64b3)
33827 (atxmega64c3, atxmega64d4, atxmega128a3u, atxmega128b1)
33828 (atxmega128b3, atxmega128c3, atxmega128d4, atmxt540s, atmxt540sreva)
33829 (atxmega192a3u, atxmega192c3, atxmega256a3u, atxmega256c3)
33830 (atxmega384c3, atxmega384d3, atxmega128a4u): New AVR_MCU.
33831 (avrxmega6): Increase max flash segments from 5 to 6.
33832 * config/avr/t-multilib: Regenerate.
33833 * config/avr/avr-tables.opt: Regenerate.
33834 * doc/avr-mmcu.texi: Regenerate.
33836 2013-02-28 Georg-Johann Lay <avr@gjlay.de>
33838 * config/avr/avr.h (device_to_arch): Rename to device_to_ld.
33839 (avr_device_to_arch): Rename to avr_device_to_ld.
33840 (avr_device_to_as): New prototype.
33841 (EXTRA_SPEC_FUNCTIONS): Add device_to_as.
33842 (ASM_SPEC): Use device_to_as to get -mmcu= and -mno-skip-bug=.
33843 * config/avr/driver-avr.c (avr_device_to_as): New.
33844 (avr_device_to_arch): Rename to avr_device_to_ld.
33846 2013-02-27 Jakub Jelinek <jakub@redhat.com>
33848 PR middle-end/56461
33849 * tree-vect-data-refs.c (vect_permute_load_chain): Avoid using copy
33850 method on dr_chain and result_chain.
33852 PR middle-end/56461
33853 * tree-ssa-loop-niter.c (maybe_lower_iteration_bound): Call
33854 pointer_set_destroy on not_executed_last_iteration.
33856 PR middle-end/56461
33857 * tree-vect-loop.c (vectorizable_reduction): Release vect_defs vector.
33859 PR middle-end/56461
33860 * ipa-pure-const.c (propagate): Use FOR_EACH_FUNCTION instead of
33861 FOR_EACH_DEFINED_FUNCTION when freeing state.
33863 PR middle-end/56461
33864 * df-scan.c (df_insn_delete): Use df_scan_free_mws_vec before
33866 (df_insn_rescan_debug_internal): Use df_scan_free_mws_vec before
33869 PR middle-end/56461
33870 * ipa-cp.c (decide_whether_version_node): Call vec_free on
33871 known_aggs[i].items and release known_aggs vector.
33873 PR middle-end/56461
33874 * ipa-reference.c (propagate): Free node_info even for alias nodes.
33876 2013-02-27 Edgar E. Iglesias <edgar.iglesias@gmail.com>
33878 * config/microblaze/microblaze.c (microblaze_emit_compare):
33879 Use xor for EQ/NE comparisions.
33880 * config/microblaze/microblaze.md (cstoresf4): Add constraints
33881 (cbranchsf4): Adjust operator to comparison_operator.
33883 2013-02-27 Jakub Jelinek <jakub@redhat.com>
33885 PR middle-end/56461
33886 * tree-flow.h (edge_var_map_vector): Change into va_heap, vl_embed
33888 * tree-ssa.c (redirect_edge_var_map_add): Use vec_safe_reserve and
33889 vec_safe_push, always update *slot.
33890 (redirect_edge_var_map_clear): Use vec_free.
33891 (redirect_edge_var_map_dup): Use vec_safe_copy and vec_safe_reserve.
33892 (free_var_map_entry): Use vec_free.
33893 * tree-cfgcleanup.c (remove_forwarder_block_with_phi): Use
33894 FOR_EACH_VEC_SAFE_ELT instead of FOR_EACH_VEC_ELT.
33896 2013-02-27 Andrey Belevantsev <abel@ispras.ru>
33898 PR middle-end/45472
33899 * sel-sched-ir.c (merge_expr): Also change vinsn of merged expr
33900 when the may_trap_p bit of the exprs being merged differs.
33901 Reorder tests for speculativeness in the logical and operator.
33903 2013-02-27 Jakub Jelinek <jakub@redhat.com>
33905 * incpath.c (add_standard_paths): Use reconcat instead of concat
33906 where appropriate and avoid leaking memory.
33908 * opts.h: Include obstack.h.
33909 (opts_concat): New prototype.
33910 (opts_obstack): New declaration.
33911 * opts.c (opts_concat): New function.
33912 (opts_obstack): New variable.
33913 (init_options_struct): Call gcc_init_obstack on opts_obstack.
33914 (finish_options): Use opts_concat instead of concat
33915 and XOBNEWVEC instead of XNEWVEC.
33916 * opts-common.c (generate_canonical_option, decode_cmdline_option,
33917 generate_option): Likewise.
33918 * Makefile.in (OPTS_H): Depend on $(OBSTACK_H).
33919 * lto-wrapper.c (main): Call gcc_init_obstack on opts_obstack.
33922 * stmt.c (expand_switch_as_decision_tree_p): If flag_pic
33923 and ASM_OUTPUT_ADDR_DIFF_ELT isn't defined, return true.
33925 2013-02-26 Jakub Jelinek <jakub@redhat.com>
33927 PR middle-end/56461
33928 * lra-spills.c (lra_spill): Free spill_hard_reg at the end.
33930 2013-02-26 Joern Rennecke <joern.rennecke@embecosm.com>
33932 * config/arm/arm.c (const_ok_for_dimode_op): Back out last change.
33933 (arm_block_move_unaligned_straight): Likewise.
33934 (arm_adjust_block_mem): Likewise.
33936 2013-02-26 Joern Rennecke <joern.rennecke@embecosm.com>
33939 * config/lm32/lm32.c (gen_int_relational): Remove unused variables
33940 temp, cond and label.
33941 * config/lm32/lm32.md (ashlsi3): Remove unused variable one.
33944 * config/c6x/c6x.c (dbx_register_map): Change to unsigned.
33945 * config/c6x/c6x.h (dbx_register_map): Update declaration.
33948 * config/cr16/cr16-protos.h: Move end of RTX_CODE guard below end
33949 of prologue/epilogue functions.
33952 * config/tilegx/tilegx.c (tilegx_expand_prologue):
33953 Remove unused variable cfa_offset.
33954 * config/tilepro/tilepro.c (tilepro_expand_prologue): Likewise.
33957 * config/mn10300/mn10300.c (mn10300_expand_epilogue): Avoid offset
33958 type promotion to unsigned.
33961 * config/arm/arm.c (const_ok_for_dimode_op): Make code consistent
33962 for HOST_WIDE_INT of 32 bit / same size as int.
33963 (arm_block_move_unaligned_straight): Likewise.
33964 (arm_adjust_block_mem): Likewise.
33967 * config/mep/t-mep (mep-pragma.o): Use ALL_COMPILERFLAGS instead of
33970 2013-02-26 Marek Polacek <polacek@redhat.com>
33972 PR tree-optimization/56426
33973 * tree-ssa-loop.c (tree_ssa_loop_init): Always call scev_initialize.
33975 2013-02-26 Richard Biener <rguenther@suse.de>
33978 * config/mn10300/mn10300.c (mn10300_scan_for_setlb_lcc): Remove
33979 unused variable loops.
33981 2013-02-26 Jakub Jelinek <jakub@redhat.com>
33983 PR tree-optimization/56448
33984 * fold-const.c (operand_equal_p) <case tcc_reference>: Don't look at
33985 TREE_SIDE_EFFECTS if flags contain OEP_CONSTANT_ADDRESS_OF.
33986 Clear OEP_CONSTANT_ADDRESS_OF from flags before recursing on second or
33987 later operands of the references, or even first operand for
33988 INDIRECT_REF, TARGET_MEM_REF or MEM_REF.
33990 PR tree-optimization/56443
33991 * tree-vect-stmts.c (get_vectype_for_scalar_type_and_size): For
33992 overaligned types, pass TYPE_UNSIGNED (scalar_type) as second argument
33993 to type_for_mode langhook.
33995 2013-02-25 Matt Turner <mattst88@gmail.com>
33997 * doc/invoke.texi: Document r4700.
33999 2013-02-25 Richard Biener <rguenther@suse.de>
34001 PR tree-optimization/56175
34002 * tree-ssa-forwprop.c (hoist_conversion_for_bitop_p): New predicate,
34004 (simplify_bitwise_binary): ... here. Also guard the conversion
34005 of (type) X op CST to (type) (X op ((type-x) CST)) with it.
34007 2013-02-25 Catherine Moore <clm@codesourcery.com>
34010 2013-02-24 Catherine Moore <clm@codesourcery.com>
34011 Maciej W. Rozycki <macro@codesourcery.com>
34012 Tom de Vries <tom@codesourcery.com>
34013 Nathan Sidwell <nathan@codesourcery.com>
34014 Iain Sandoe <iain@codesourcery.com>
34015 Nathan Froyd <froydnj@codesourcery.com>
34016 Chao-ying Fu <fu@mips.com>
34018 * doc/extend.texi: (micromips, nomicromips, nocompression):
34019 Document new function attributes.
34020 * doc/invoke.texi (minterlink-compressed, mmicromips,
34021 m14k, m14ke, m14kec): Document new options.
34022 (minterlink-mips16): Update documentation.
34023 * doc/md.texi (ZC, ZD): Document new constraints.
34024 * configure.ac (gcc_cv_as_micromips): Check if linker
34025 supports the .set micromips directive.
34026 * configure: Regenerate.
34027 * config.in: Regenerate.
34028 * config/mips/mips-tables.opt: Regenerate.
34029 * config/mips/micromips.md: New file.
34030 * constraints.md (ZC, AD): New constraints.
34031 * config/mips/predicates.md (movep_src_register): New predicate.
34032 (movep_src_operand): New predicate.
34033 (non_volatile_mem_operand): New predicate.
34034 * config/mips/mips.md (multimem): New type.
34035 (length): Differentiate between 17-bit and 18-bit branch offsets.
34036 (MOVEP1, MOVEP2): New mode iterator.
34037 (mov_<load>l): Use ZC constraint.
34038 (mov_<load>r): Likewise.
34039 (mov_<store>l): Likewise.
34040 (mov_<store>r): Likewise.
34041 (*branch_equality<mode>_inverted): Add microMIPS support.
34042 (*branch_equality<mode>): Likewise.
34043 (*jump_absolute): Likewise.
34044 (indirect_jump_<mode>): Likewise.
34045 (tablejump_<mode>): Likewise.
34046 (<optab>_internal): Likewise.
34047 (sibcall_internal): Likewise.
34048 (sibcall_value_internal): Likewise.
34049 (prefetch): Use constraint ZD.
34050 * config/mips/mips.opt (minterlink-compressed): New option.
34051 (minterlink-mips16): Now an alias for minterlink-compressed.
34052 (mmicromips): New option.
34053 * config/mips/sync.md (sync_compare_and_swap<mode>): Use ZR constraint.
34054 (compare_and_swap_12): Likewise.
34055 (sync_add<mode>): Likewise.
34056 (sync_<optab>_12): Likewise.
34057 (sync_old_<optab>_12): Likewise.
34058 (sync_new_<optab>_12): Likewise.
34059 (sync_nand_12): Likewise.
34060 (sync_old_nand_12): Likewise.
34061 (sync_new_nand_12): Likewise.
34062 (sync_sub<mode>): Likewise.
34063 (sync_old_add<mode>): Likewise.
34064 (sync_old_sub<mode>): Likewise.
34065 (sync_new_add<mode>): Likewise.
34066 (sync_new_sub<mode>): Likewise.
34067 (sync_<optab><mode>): Likewise.
34068 (sync_old_<optab><mode>): Likewise.
34069 (sync_new_<optab><mode>): Likewise.
34070 (sync_nand<mode>): Likewise.
34071 (sync_old_nand<mode>): Likewise.
34072 (sync_new_nand<mode>): Likewise.
34073 (sync_lock_test_and_set<mode>): Likewise.
34074 (test_and_set_12): Likewise.
34075 (atomic_compare_and_swap<mode>): Likewise.
34076 (atomic_exchange<mode>_llsc): Likewise.
34077 (atomic_fetch_add<mode>_llsc): Likewise.
34078 * config/mips/mips-cpus.def (m14kc, m14k): New processors.
34079 * config/mips/mips-protos.h (umips_output_save_restore): New prototype.
34080 (umips_save_restore_pattern_p): Likewise.
34081 (umips_load_store_pair_p): Likewise.
34082 (umips_output_load_store_pair): Likewise.
34083 (umips_movep_target_p): Likewise.
34084 (umips_12bit_offset_address_p): Likewise.
34085 * config/mips/mips.c (MIPS_MAX_FIRST_STEP): Update for microMIPS.
34086 (mips_base_mips16): Rename this...
34087 (mips_base_compression_flags): ...to this. Update all uses.
34088 (mips_attribute_table): Add micromips, nomicromips and nocompression.
34089 (mips_mips16_decl_p): Delete.
34090 (mips_nomips16_decl_p): Delete.
34091 (mips_get_compress_on_flags): New function.
34092 (mips_get_compress_off_flags): New function.
34093 (mips_get_compress_mode): New function.
34094 (mips_get_compress_on_name): New function.
34095 (mips_get_compress_off_name): New function.
34096 (mips_insert_attributes): Support multiple compression types.
34097 (mips_merge_decl_attributes): Likewise.
34098 (umips_12bit_offset_address_p): New function.
34099 (mips_start_function_definition): Emit .set micromips directive.
34100 (mips_call_may_need_jalx_p): New function.
34101 (mips_function_ok_for_sibcall): Add microMIPS support.
34102 (mips_print_operand_punctuation): Support short delay slots and
34104 (umips_swm_mask, umips_swm_encoding): New.
34105 (umips_build_save_restore): New function.
34106 (mips_for_each_saved_gpr_and_fpr): Add microMIPS support.
34107 (was_mips16_p): Remove.
34108 (old_compression_mode): New.
34109 (mips_set_compression_mode): New function.
34110 (mips_set_current_function): Add microMIPS support.
34111 (mips_option_override): Likewise.
34112 (umips_save_restore_pattern_p): New function.
34113 (umips_output_save_restore): New function.
34114 (umips_load_store_pair_p_1): New function.
34115 (umips_load_store_pair_p): New function.
34116 (umips_output_load_store_pair_1): New function.
34117 (umips_output_load_store_pair): New function.
34118 (umips_movep_target_p) New function.
34119 (mips_prepare_pch_save): Add microMIPS support.
34120 * config/mips/mips.h (TARGET_COMPRESSION): New.
34121 (TARGET_CPU_CPP_BUILTINS): Update macro
34122 to use new compression flags and to support microMIPS.
34123 (MIPS_ISA_LEVEL_SPEC): Add m14k processors.
34124 (MIPS_ARCH_FLOAT_SPEC): Likewise.
34125 (ISA_HAS_LWXS): Include TARGET_MICROMIPS.
34126 (ISA_HAS_LOAD_DELAY): Exclude TARGET_MICROMIPS.
34127 (ASM_SPEC): Support mmicromips and mno-micromips.
34128 (M16STORE_REG_P): New macro.
34129 (MIPS_CALL): Support TARGET_MICROMIPS.
34130 (MICROMIPS_J): New macro.
34131 (mips_base_mips16): Rename this...
34132 (mips_base_compression_flags): ...to this.
34133 (UMIPS_12BIT_OFFSET_P): New macro.
34134 * config/mips/t-sde: (MULTILIB_OPTIONS): Add microMIPS.
34135 (MULTILIB_DIRNAMES): Likewise.
34137 2013-02-25 Tom de Vries <tom@codesourcery.com>
34139 PR rtl-optimization/56131
34140 * insn-notes.def (INSN_NOTE_BASIC_BLOCK): Update comment.
34141 * cfgrtl.c (delete_insn): Don't reorder NOTE_INSN_DELETED_LABEL and
34142 NOTE_INSN_BASIC_BLOCK if BLOCK_FOR_INSN == NULL.
34144 2013-02-25 Tobias Burnus <burnus@net-b.de>
34146 * doc/invoke.texi (-fsanitize=): Move from optimization
34147 to debugging options.
34149 2013-02-25 Andrey Belevantsev <abel@ispras.ru>
34151 * sched-deps.c (sched_analyze_insn): Fix typo in comment.
34153 2013-02-25 Andrey Belevantsev <abel@ispras.ru>
34154 Alexander Monakov <amonakov@ispras.ru>
34156 PR middle-end/56077
34157 * sched-deps.c (sched_analyze_insn): When reg_pending_barrier,
34158 flush pending lists also on non-jumps. Adjust comment.
34160 2013-02-24 Catherine Moore <clm@codesourcery.com>
34161 Maciej W. Rozycki <macro@codesourcery.com>
34162 Tom de Vries <tom@codesourcery.com>
34163 Nathan Sidwell <nathan@codesourcery.com>
34164 Iain Sandoe <iain@codesourcery.com>
34165 Nathan Froyd <froydnj@codesourcery.com>
34166 Chao-ying Fu <fu@mips.com>
34168 * doc/extend.texi: (micromips, nomicromips, nocompression):
34169 Document new function attributes.
34170 * doc/invoke.texi (minterlink-compressed, mmicromips,
34171 m14k, m14ke, m14kec): Document new options.
34172 (minterlink-mips16): Update documentation.
34173 * doc/md.texi (ZC, ZD): Document new constraints.
34174 * configure.ac (gcc_cv_as_micromips): Check if linker
34175 supports the .set micromips directive.
34176 * configure: Regenerate.
34177 * config.in: Regenerate.
34178 * config/mips/mips-tables.opt: Regenerate.
34179 * config/mips/micromips.md: New file.
34180 * constraints.md (ZC, AD): New constraints.
34181 * config/mips/predicates.md (movep_src_register): New predicate.
34182 (movep_src_operand): New predicate.
34183 (non_volatile_mem_operand): New predicate.
34184 * config/mips/mips.md (multimem): New type.
34185 (length): Differentiate between 17-bit and 18-bit branch offsets.
34186 (MOVEP1, MOVEP2): New mode iterator.
34187 (mov_<load>l): Use ZC constraint.
34188 (mov_<load>r): Likewise.
34189 (mov_<store>l): Likewise.
34190 (mov_<store>r): Likewise.
34191 (*branch_equality<mode>_inverted): Add microMIPS support.
34192 (*branch_equality<mode>): Likewise.
34193 (*jump_absolute): Likewise.
34194 (indirect_jump_<mode>): Likewise.
34195 (tablejump_<mode>): Likewise.
34196 (<optab>_internal): Likewise.
34197 (sibcall_internal): Likewise.
34198 (sibcall_value_internal): Likewise.
34199 (prefetch): Use constraint ZD.
34200 * config/mips/mips.opt (minterlink-compressed): New option.
34201 (minterlink-mips16): Now an alias for minterlink-compressed.
34202 (mmicromips): New option.
34203 * config/mips/sync.md (sync_compare_and_swap<mode>): Use ZR constraint.
34204 (compare_and_swap_12): Likewise.
34205 (sync_add<mode>): Likewise.
34206 (sync_<optab>_12): Likewise.
34207 (sync_old_<optab>_12): Likewise.
34208 (sync_new_<optab>_12): Likewise.
34209 (sync_nand_12): Likewise.
34210 (sync_old_nand_12): Likewise.
34211 (sync_new_nand_12): Likewise.
34212 (sync_sub<mode>): Likewise.
34213 (sync_old_add<mode>): Likewise.
34214 (sync_old_sub<mode>): Likewise.
34215 (sync_new_add<mode>): Likewise.
34216 (sync_new_sub<mode>): Likewise.
34217 (sync_<optab><mode>): Likewise.
34218 (sync_old_<optab><mode>): Likewise.
34219 (sync_new_<optab><mode>): Likewise.
34220 (sync_nand<mode>): Likewise.
34221 (sync_old_nand<mode>): Likewise.
34222 (sync_new_nand<mode>): Likewise.
34223 (sync_lock_test_and_set<mode>): Likewise.
34224 (test_and_set_12): Likewise.
34225 (atomic_compare_and_swap<mode>): Likewise.
34226 (atomic_exchange<mode>_llsc): Likewise.
34227 (atomic_fetch_add<mode>_llsc): Likewise.
34228 * config/mips/mips-cpus.def (m14kc, m14k): New processors.
34229 * config/mips/mips-protos.h (umips_output_save_restore): New prototype.
34230 (umips_save_restore_pattern_p): Likewise.
34231 (umips_load_store_pair_p): Likewise.
34232 (umips_output_load_store_pair): Likewise.
34233 (umips_movep_target_p): Likewise.
34234 (umips_12bit_offset_address_p): Likewise.
34235 * config/mips/mips.c (MIPS_MAX_FIRST_STEP): Update for microMIPS.
34236 (mips_base_mips16): Rename this...
34237 (mips_base_compression_flags): ...to this. Update all uses.
34238 (mips_attribute_table): Add micromips, nomicromips and nocompression.
34239 (mips_mips16_decl_p): Delete.
34240 (mips_nomips16_decl_p): Delete.
34241 (mips_get_compress_on_flags): New function.
34242 (mips_get_compress_off_flags): New function.
34243 (mips_get_compress_mode): New function.
34244 (mips_get_compress_on_name): New function.
34245 (mips_get_compress_off_name): New function.
34246 (mips_insert_attributes): Support multiple compression types.
34247 (mips_merge_decl_attributes): Likewise.
34248 (umips_12bit_offset_address_p): New function.
34249 (mips_start_function_definition): Emit .set micromips directive.
34250 (mips_call_may_need_jalx_p): New function.
34251 (mips_function_ok_for_sibcall): Add microMIPS support.
34252 (mips_print_operand_punctuation): Support short delay slots and
34254 (umips_swm_mask, umips_swm_encoding): New.
34255 (umips_build_save_restore): New function.
34256 (mips_for_each_saved_gpr_and_fpr): Add microMIPS support.
34257 (was_mips16_p): Remove.
34258 (old_compression_mode): New.
34259 (mips_set_compression_mode): New function.
34260 (mips_set_current_function): Add microMIPS support.
34261 (mips_option_override): Likewise.
34262 (umips_save_restore_pattern_p): New function.
34263 (umips_output_save_restore): New function.
34264 (umips_load_store_pair_p_1): New function.
34265 (umips_load_store_pair_p): New function.
34266 (umips_output_load_store_pair_1): New function.
34267 (umips_output_load_store_pair): New function.
34268 (umips_movep_target_p) New function.
34269 (mips_prepare_pch_save): Add microMIPS support.
34270 * config/mips/mips.h (TARGET_COMPRESSION): New.
34271 (TARGET_CPU_CPP_BUILTINS): Update macro
34272 to use new compression flags and to support microMIPS.
34273 (MIPS_ISA_LEVEL_SPEC): Add m14k processors.
34274 (MIPS_ARCH_FLOAT_SPEC): Likewise.
34275 (ISA_HAS_LWXS): Include TARGET_MICROMIPS.
34276 (ISA_HAS_LOAD_DELAY): Exclude TARGET_MICROMIPS.
34277 (ASM_SPEC): Support mmicromips and mno-micromips.
34278 (M16STORE_REG_P): New macro.
34279 (MIPS_CALL): Support TARGET_MICROMIPS.
34280 (MICROMIPS_J): New macro.
34281 (mips_base_mips16): Rename this...
34282 (mips_base_compression_flags): ...to this.
34283 (UMIPS_12BIT_OFFSET_P): New macro.
34284 * config/mips/t-sde: (MULTILIB_OPTIONS): Add microMIPS.
34285 (MULTILIB_DIRNAMES): Likewise.
34287 2013-02-24 Jakub Jelinek <jakub@redhat.com>
34290 * target-globals.c (save_target_globals): For init_reg_sets and
34291 target_reinit remporarily set this_fn_optabs to this_target_optabs.
34293 2013-02-22 James Greenhalgh <james.greenhalgh@arm.com>
34295 * config/aarch64/aarch64-simd-builtins.def: Add copyright header.
34296 * config/aarch64/t-aarch64
34297 (aarch64-builtins.o): Depend on aarch64-simd-builtins.def.
34299 2013-02-22 Vladimir Makarov <vmakarov@redhat.com>
34301 PR inline-asm/56148
34302 * lra-constraints.c (process_alt_operands): Reload operand
34303 conflicting with earlier clobber only if no more other conflicting
34306 2013-02-22 Jakub Jelinek <jakub@redhat.com>
34309 * config/gnu-user.h (LIBASAN_EARLY_SPEC): Link in libasan_preinit.o
34310 if not linking a shared library.
34312 2013-02-22 Seth LaForge <sethml@google.com>
34314 * config.gcc (arm*-*-eabi*): Treat arm*eb as big-endian.
34316 2013-02-22 Greta Yorsh <Greta.Yorsh@arm.com>
34318 * config/arm/arm.md (split for extendsidi): Update condition.
34319 (zero_extend<mode>di2,extend<mode>di2): Add an alternative.
34320 * config/arm/iterators.md (qhs_extenddi_cstr): Likewise.
34321 (qhs_zextenddi_cstr): Likewise.
34323 2013-02-21 Jakub Jelinek <jakub@redhat.com>
34325 PR middle-end/56420
34326 * expmed.c (EXACT_POWER_OF_2_OR_ZERO_P): Do subtraction in uhwi, to
34327 avoid signed wrapping.
34328 (expand_mult): Handle properly multiplication by
34329 ((dword_type) -1) << (BITS_PER_WORD - 1). Improve multiplication by
34330 ((dword_type) 1) << (BITS_PER_WORD - 1). Avoid undefined behavior
34331 in the compiler if coeff is HOST_WIDE_INT_MIN.
34332 (expand_divmod): Don't make ext_op1 static, change it's type to
34333 uhwi. Avoid undefined behavior in -INTVAL (op1).
34335 PR rtl-optimization/50339
34336 * lower-subreg.h (struct lower_subreg_choices): Add splitting_ashiftrt
34338 * lower-subreg.c (compute_splitting_shift): Handle ASHIFTRT.
34339 (compute_costs): Call compute_splitting_shift also for ASHIFTRT
34340 into splitting_ashiftrt field.
34341 (find_decomposable_shift_zext, resolve_shift_zext): Handle also
34343 (dump_choices): Fix up printing LSHIFTRT choices, print ASHIFTRT
34346 2013-02-20 Aldy Hernandez <aldyh@redhat.com>
34348 PR middle-end/56108
34349 * trans-mem.c (execute_tm_mark): Do not expand transactions that
34350 are sure to go irrevocable.
34352 2013-02-21 Hans-Peter Nilsson <hp@axis.com>
34354 * doc/rtl.texi (vec_concat, vec_duplicate): Mention that
34355 scalars are valid operands.
34357 2013-02-21 Martin Jambor <mjambor@suse.cz>
34359 PR tree-optimization/56310
34360 * ipa-cp.c (agg_replacements_to_vector): New parameter index, copy
34361 only matching indices and non-negative final offsets.
34362 (intersect_aggregates_with_edge): Pass src_idx to
34363 agg_replacements_to_vector. Pass src_idx insstead of index to
34364 intersect_with_agg_replacements.
34366 2013-02-21 Martin Jambor <mjambor@suse.cz>
34368 * ipa-cp.c (good_cloning_opportunity_p): Dump the real threshold
34369 instead of hard-wired defaults.
34371 2013-02-21 Maciej W. Rozycki <macro@codesourcery.com>
34373 * doc/invoke.texi (MIPS Options): Update documentation of the
34374 floating-point multiply-accumulate instruction restrictions.
34376 2013-02-21 Kostya Serebryany <kcc@google.com>
34378 * config/i386/i386.c (ix86_asan_shadow_offset): Use 0x7fff8000 as
34379 asan_shadow_offset on x86_64 linux.
34381 2013-02-21 Richard Biener <rguenther@suse.de>
34383 PR tree-optimization/56415
34385 2013-02-11 Richard Biener <rguenther@suse.de>
34387 PR tree-optimization/56273
34388 * tree-vrp.c (simplify_cond_using_ranges): Disable for the
34391 2013-02-21 Jakub Jelinek <jakub@redhat.com>
34394 * doc/invoke.texi (-fdump-rtl-pro_and_epilogue): Use @item
34397 PR inline-asm/56405
34398 * expr.c (expand_expr_real_1) <case TARGET_MEM_REF, MEM_REF>: Don't
34399 use movmisalign or extract_bit_field for EXPAND_MEMORY modifier.
34401 2013-02-20 Jan Hubicka <jh@suse.cz>
34403 PR tree-optimization/56265
34404 * ipa-prop.c (ipa_make_edge_direct_to_target): Fixup callgraph
34405 when target is referenced for first time.
34407 2013-02-20 Richard Biener <rguenther@suse.de>
34409 * tree-call-cdce.c (tree_call_cdce): Do not remove unused locals.
34410 * tree-ssa-forwprop.c (ssa_forward_propagate_and_combine): Likewise.
34411 * tree-ssa-dce.c (perform_tree_ssa_dce): Likewise.
34412 * tree-ssa-copyrename.c (copy_rename_partition_coalesce): Do
34413 not return anything.
34414 (rename_ssa_copies): Do not remove unused locals.
34415 * tree-ssa-ccp.c (do_ssa_ccp): Likewise.
34416 * tree-ssanames.c (pass_release_ssa_names): Remove unused locals first.
34417 * passes.c (execute_function_todo): Do not schedule unused locals
34418 removal if cleanup_tree_cfg did something.
34419 * tree-ssa-live.c (remove_unused_locals): Dump statistics
34420 about the number of removed locals.
34422 2013-02-20 Richard Biener <rguenther@suse.de>
34424 PR tree-optimization/56398
34425 * tree-vect-loop-manip.c (adjust_debug_stmts): Skip SSA default defs.
34427 2013-02-20 Martin Jambor <mjambor@suse.cz>
34429 PR tree-optimization/55334
34430 * ipa-cp.c (initialize_node_lattices): Disable IPA-CP through and to
34431 restricted pointers to arrays.
34433 2013-02-20 Richard Biener <rguenther@suse.de>
34434 Jakub Jelinek <jakub@redhat.com>
34436 PR tree-optimization/56396
34437 * tree-ssa-ccp.c (n_const_val): New static variable.
34438 (get_value): Return NULL for SSA names we don't have a lattice
34440 (ccp_initialize): Initialize n_const_val.
34441 * tree-ssa-copy.c (n_copy_of): New static variable.
34442 (init_copy_prop): Initialize n_copy_of.
34443 (get_value): Return NULL_TREE for SSA names we don't have a
34446 2013-02-20 Martin Jambor <mjambor@suse.cz>
34448 * ipa-cp.c (initialize_node_lattices): Fix dumping condition.
34450 2013-02-20 Richard Biener <rguenther@suse.de>
34452 * genpreds.c (write_lookup_constraint): Do not compare first
34453 letter of the constraint again.
34455 2013-02-20 Richard Biener <rguenther@suse.de>
34457 * tree-ssa-loop-ivopts.c (alloc_use_cost_map): Use bitmap_count_bits
34459 (get_use_iv_cost): Terminate hashtable walk when coming across
34462 2013-02-20 Igor Zamyatin <igor.zamyatin@intel.com>
34464 * config/i386/i386.c (initial_ix86_tune_features): Turn on fp
34465 reassociation for avx2 targets.
34467 2012-02-19 Edgar E. Iglesias <edgar.iglesias@gmail.com>
34469 * config/microblaze/microblaze.c: microblaze_has_clz = 0
34470 Add version check for v8.10.a to enable microblaze_has_clz
34471 * config/microblaze/microblaze.h: Add TARGET_HAS_CLZ as combined
34472 version and TARGET_PATTERN_COMPARE check
34473 * config/microblaze/microblaze.md: New clzsi2 instruction
34475 2012-02-19 Edgar E. Iglesias <edgar.iglesias@gmail.com>
34477 * config/microblaze/microblaze.md (call_value_intern): Check symbol is
34478 function before branching.
34480 2012-02-19 Andrey Belevantsev <abel@ispras.ru>
34482 * sel-sched-dump.c (dump_insn_rtx_flags): Explicitly set
34484 (dump_insn_rtx_1): Pass PATTERN (insn) to str_pattern_slim.
34486 2012-02-19 Andrey Belevantsev <abel@ispras.ru>
34488 PR middle-end/55889
34489 * sel-sched.c: Include ira.h.
34490 (implicit_clobber_conflict_p): New function.
34491 (moveup_expr): Use it.
34492 * Makefile.in (sel-sched.o): Depend on ira.h.
34494 2013-02-19 Richard Biener <rguenther@suse.de>
34496 PR tree-optimization/56384
34497 * tree-ssa-sccvn.h (struct vn_phi_s): Add type member.
34498 (vn_hash_type): Split out from ...
34499 (vn_hash_constant_with_type): ... here.
34500 * tree-ssa-sccvn.c (vn_phi_compute_hash): Use vn_hash_type.
34501 (vn_phi_eq): Compare types from vn_phi_s structure.
34502 (vn_phi_lookup): Populate vn_phi_s type.
34503 (vn_phi_insert): Likewise.
34505 2013-02-19 Jakub Jelinek <jakub@redhat.com>
34507 PR tree-optimization/56350
34508 * tree-vect-loop.c (vectorizable_reduction): If orig_stmt, return false
34509 if haven't found reduction or nested cycle operand, rather than
34510 asserting we must find it.
34512 PR tree-optimization/56381
34513 * tree-ssa-pre.c (create_expression_by_pieces): Fix up last argument
34516 2013-02-18 Aldy Hernandez <aldyh@redhat.com>
34517 Jakub Jelinek <jakub@redhat.com>
34520 * genopinit.c (raw_optab_handler): Use this_fn_optabs.
34521 (swap_optab_enable): Same.
34522 (init_all_optabs): Use argument instead of global.
34523 * tree.h (struct tree_optimization_option): New field target_optabs.
34524 * expr.h (init_all_optabs): Add argument to prototype.
34525 (TREE_OPTIMIZATION_OPTABS): New.
34526 (save_optabs_if_changed): Protoize.
34527 * optabs.h: Declare this_fn_optabs.
34528 * optabs.c (save_optabs_if_changed): New.
34529 Declare this_fn_optabs.
34530 (init_optabs): Add argument to init_all_optabs() call.
34531 * function.c (invoke_set_current_function_hook): Handle per
34533 * function.h (struct function): New field optabs.
34534 * config/mips/mips.c (mips_set_mips16_mode): Handle when
34535 optimization_current_node has changed.
34536 * target-globals.h (save_target_globals_default_opts): Protoize.
34537 * target-globals.c (save_target_globals_default_opts): New.
34539 2013-02-18 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
34542 * config/pa/pa.c (pa_conditional_register_usage): On HP-UX, mark
34543 registers %fr12 and %fr12R as call used.
34546 * config/pa/predicates.md (base14_operand): Except for BLKmode, QImode
34547 and HImode, require all displacements to be an integer multiple of
34549 * config/pa/pa.c (pa_legitimate_address_p): For REG+BASE addresses,
34550 only allow QImode and HImode when reload is in progress and strict is
34551 true. Likewise for symbolic addresses. Use base14_operand to check
34552 displacements in REG+BASE addresses.
34554 2013-02-18 Richard Biener <rguenther@suse.de>
34556 PR tree-optimization/56366
34557 * tree-vect-loop.c (get_initial_def_for_induction): Properly
34558 handle sign-conversion of outer-loop initial induction value.
34560 2013-02-18 Richard Biener <rguenther@suse.de>
34562 PR middle-end/56349
34563 * cfghooks.c (merge_blocks): If we merge a latch into another
34564 block adjust references to it.
34565 * cfgloop.c (flow_loops_find): Reset latch before recomputing it.
34566 (verify_loop_structure): Verify that a recorded latch is in fact
34569 2013-02-18 Richard Biener <rguenther@suse.de>
34571 PR tree-optimization/56321
34572 * tree-ssa-reassoc.c (propagate_op_to_single_use): Properly
34573 order SSA name release and virtual operand unlinking.
34575 2013-02-17 Edgar E. Iglesias <edgar.iglesias@gmail.com>
34577 * config/microblaze/microblaze.md (save_stack_block): Define.
34578 (restore_stack_block): Likewise.
34580 2013-02-16 Edgar E. Iglesias <edgar.iglesias@gmail.com>
34582 * config/microblaze/linux.h (TARGET_SUPPORTS_PIC): Define as 1.
34583 * config/microblaze/microblaze.h (TARGET_SUPPORTS_PIC): Define as 1.
34584 * config/microblaze/microblaze.c (microblaze_option_override):
34585 Bail out early for PIC modes when target does not support PIC.
34587 2013-02-16 Edgar E. Iglesias <edgar.iglesias@gmail.com>
34589 * config/microblaze/microblaze.c (microblaze_asm_trampoline_template):
34590 Replace with a microblaze version.
34591 (microblaze_trampoline_init): Adapt for microblaze.
34592 * config/microblaze/microblaze.h (TRAMPOLINE_SIZE): Adapt for
34595 2013-02-16 Jakub Jelinek <jakub@redhat.com>
34596 Dodji Seketeli <dodji@redhat.com>
34599 * asan.c (get_mem_refs_of_builtin_call): White space and style cleanup.
34600 (instrument_mem_region_access): Do not forget to always put
34601 instrumentation of the of 'base' and 'base + len' in a "if (len !=
34602 0) statement, even for cases where either 'base' or 'base + len'
34603 are not instrumented -- because they have been previously
34604 instrumented. Simplify the logic by putting all the statements
34605 instrument 'base + len' inside a sequence, and then insert that
34606 sequence right before the current insertion point. Then, to
34607 instrument 'base + len', just get an iterator on that statement.
34608 And do not forget to update the pointer to iterator the function
34609 received as argument.
34611 2013-02-15 Vladimir Makarov <vmakarov@redhat.com>
34613 PR rtl-optimization/56348
34614 * lra-assigns.c (reload_pseudo_compare_func): Prefer bigger pseudos.
34616 2013-02-15 Steven Bosscher <steven@gcc.gnu.org>
34618 * graph.c (start_graph_dump): Print dumpfile base as digraph label.
34619 (clean_graph_dump_file): Pass base to start_graph_dump.
34621 2013-02-14 Richard Henderson <rth@redhat.com>
34624 * lower-subreg.c (simple_move): Check dest mode instead of src mode.
34626 2013-02-14 Steven Bosscher <steven@gcc.gnu.org>
34628 * collect2-aix.h: Define F_LOADONLY.
34630 2013-02-14 Richard Biener <rguenther@suse.de>
34633 * varasm.c (output_constant_def_1): Get the decl representing
34634 the constant as argument.
34635 (output_constant_def): Wrap output_constant_def_1.
34636 (make_decl_rtl): Use output_constant_def_1 with the decl
34637 representing the constant.
34638 (build_constant_desc): Optionally re-use a decl already
34639 representing the constant.
34640 (tree_output_constant_def): Adjust.
34642 2013-02-14 Dodji Seketeli <dodji@redhat.com>
34645 * asan.c (instrument_builtin_call): Really put the length of the
34646 second source argument into src1_len.
34648 2013-02-13 Jakub Jelinek <jakub@redhat.com>
34650 * asan.c (create_cond_insert_point): Add create_then_fallthru_edge
34651 argument. If it is false, don't create edge from then_bb to
34653 (insert_if_then_before_iter): Pass true to it.
34654 (build_check_stmt): Pass false to it.
34655 (transform_statements): Flush hash table only on extended basic
34656 block boundaries, rather than at the beginning of every bb.
34657 Don't flush hash table on nonfreeing_call_p calls.
34658 * tree-flow.h (nonfreeing_call_p): New prototype.
34659 * tree-ssa-phiopt.c (nonfreeing_call_p): No longer static.
34661 2013-02-13 David S. Miller <davem@davemloft.net>
34663 * expmed.c (expand_shift_1): Only strip scalar integer subregs.
34665 2013-02-13 Vladimir Makarov <vmakarov@redhat.com>
34668 * ira.c (max_regno_before_ira): Move from ...
34670 (fix_reg_equiv_init): Use max_regno_before_ira instead of
34673 2013-02-13 Jakub Jelinek <jakub@redhat.com>
34675 * config/i386/i386.c (ix86_asan_shadow_offset): Revert last change.
34677 2013-02-13 Richard Biener <rguenther@suse.de>
34680 * gimple-streamer-out.c (output_gimple_stmt): Undo wrapping
34681 globals in MEM_REFs.
34683 2013-02-13 Richard Biener <rguenther@suse.de>
34685 * loop-init.c (loop_optimizer_init): Clear loop state when
34686 re-initializing preserved loops.
34687 * loop-unswitch.c (unswitch_single_loop): Return whether
34688 we unswitched the loop. Do not verify loop state here.
34689 (unswitch_loops): When we unswitched a loop discover new loops.
34691 2013-02-13 Kostya Serebryany <kcc@google.com>
34693 * config/i386/i386.c: Use 0x7fff8000 as asan_shadow_offset
34695 * sanitizer.def: Rename __asan_init to __asan_init_v1.
34697 2013-02-12 Dodji Seketeli <dodji@redhat.com>
34699 Avoid instrumenting duplicated memory access in the same basic block
34700 * Makefile.in (asan.o): Add new dependency on hash-table.h
34701 * asan.c (struct asan_mem_ref, struct mem_ref_hasher): New types.
34702 (asan_mem_ref_init, asan_mem_ref_get_end, get_mem_ref_hash_table)
34703 (has_stmt_been_instrumented_p, empty_mem_ref_hash_table)
34704 (free_mem_ref_resources, has_mem_ref_been_instrumented)
34705 (has_stmt_been_instrumented_p, update_mem_ref_hash_table)
34706 (get_mem_ref_of_assignment): New functions.
34707 (get_mem_refs_of_builtin_call): Extract from
34708 instrument_builtin_call and tweak a little bit to make it fit with
34710 (instrument_builtin_call): Use the new
34711 get_mem_refs_of_builtin_call. Use gimple_call_builtin_p instead
34712 of is_gimple_builtin_call.
34713 (instrument_derefs, instrument_mem_region_access): Insert the
34714 instrumented memory reference into the hash table.
34715 (maybe_instrument_assignment): Renamed instrument_assignment into
34716 this, and change it to advance the iterator when instrumentation
34717 actually happened and return true in that case. This makes it
34718 homogeneous with maybe_instrument_assignment, and thus give a
34719 chance to callers to be more 'regular'.
34720 (transform_statements): Clear the memory reference hash table
34721 whenever we enter a new BB, when we cross a function call, or when
34722 we are done transforming statements. Use
34723 maybe_instrument_assignment instead of instrumentation. No more
34724 need to special case maybe_instrument_assignment and advance the
34725 iterator after calling it; it's now handled just like
34726 maybe_instrument_call. Update comment.
34728 2013-02-13 Richard Biener <rguenther@suse.de>
34730 * config/mn10300/mn10300.c (mn10300_scan_for_setlb_lcc):
34731 Fix loop discovery code.
34733 2013-02-12 Vladimir Makarov <vmakarov@redhat.com>
34735 PR inline-asm/56148
34736 * lra-constraints.c (process_alt_operands): Match early clobber
34737 operand with itself. Check conflicts with earlyclobber only if
34738 the operand is not reloaded. Prefer to reload conflicting operand
34739 if earlyclobber and matching operands are the same.
34741 2013-02-12 Richard Biener <rguenther@suse.de>
34744 * lto-streamer-out.c (write_symbol): Do not output symbols
34745 for hard register variables.
34747 2013-02-12 Georg-Johann Lay <avr@gjlay.de>
34750 * config/avr/avr-dimode.md (umulsidi3, mulsidi3): New expanders.
34751 (umulsidi3_insn, mulsidi3_insn): New insns.
34753 2013-02-12 Christophe Lyon <christophe.lyon@linaro.org>
34755 * config/arm/arm-protos.h (struct cpu_vec_costs): New struct type.
34756 (struct tune_params): Add vec_costs field.
34757 * config/arm/arm.c (arm_builtin_vectorization_cost)
34758 (arm_add_stmt_cost): New functions.
34759 (TARGET_VECTORIZE_BUILTIN_VECTORIZATION_COST)
34760 (TARGET_VECTORIZE_ADD_STMT_COST): Define.
34761 (arm_default_vec_cost): New struct of type cpu_vec_costs.
34762 (arm_slowmul_tune, arm_fastmul_tune, arm_strongarm_tune)
34763 (arm_xscale_tune, arm_9e_tune, arm_v6t2_tune, arm_cortex_tune)
34764 (arm_cortex_a15_tune, arm_cortex_a5_tune, arm_cortex_a9_tune)
34765 (arm_v6m_tune, arm_fa726te_tune): Define new vec_costs field.
34767 2013-02-12 Richard Biener <rguenther@suse.de>
34770 * gimple-streamer-in.c (input_gimple_stmt): Strip MEM_REFs off
34771 decls again if possible.
34773 2013-02-12 Richard Biener <rguenther@suse.de>
34775 PR middle-end/56288
34776 * tree-ssa.c (verify_ssa_name): Fix check, move
34777 SSA_NAME_IN_FREE_LIST check up.
34779 2013-02-12 Jakub Jelinek <jakub@redhat.com>
34780 Steven Bosscher <steven@gcc.gnu.org>
34782 PR rtl-optimization/56151
34783 * optabs.c (add_equal_note): Don't return 0 if target is a MEM,
34784 equal to op0 or op1, and last_insn pattern is CODE operation
34785 with MEM dest and one of the operands matches that MEM.
34787 2013-02-11 Sriraman Tallam <tmsriram@google.com>
34789 * doc/extend.texi: Document Function Multiversioning and "default"
34790 parameter string to target attribute.
34791 * config/i386/i386.c (get_builtin_code_for_version): Return 0 if
34792 target attribute parameter is "default".
34793 (ix86_compare_version_priority): Remove checks for target attribute.
34794 (ix86_mangle_function_version_assembler_name): Change error to sorry.
34795 Remove check for target attribute equal to NULL. Add assert.
34796 (ix86_generate_version_dispatcher_body): Change error to sorry.
34798 2013-02-11 Iain Sandoe <iain@codesourcery.com>
34799 Jack Howarth <howarth@bromo.med.uc.edu>
34800 Patrick Marlier <patrick.marlier@gmail.com>
34803 * config/darwin.h: Replace ENDFILE_SPEC with TM_DESTRUCTOR and
34804 define ENDFILE_SPEC as TM_DESTRUCTOR.
34805 * config/i386/darwin.h (ENDFILE_SPEC): Use TM_DESTRUCTOR.
34807 2013-02-11 Alexander Potapenko <glider@google.com>
34808 Jack Howarth <howarth@bromo.med.uc.edu>
34809 Jakub Jelinek <jakub@redhat.com>
34812 * config/darwin.c (cdtor_record): Rename ctor_record.
34813 (sort_cdtor_records): Rename sort_ctor_records.
34814 (finalize_dtors): New routine to sort destructors by
34815 priority before use in assemble_integer.
34816 (machopic_asm_out_destructor): Use finalize_dtors if needed.
34818 2013-02-11 Uros Bizjak <ubizjak@gmail.com>
34820 PR rtl-optimization/56275
34821 * simplify-rtx.c (avoid_constant_pool_reference): Check that
34822 offset is non-negative and less than cmode size before
34823 calling simplify_subreg.
34825 2013-02-11 Richard Biener <rguenther@suse.de>
34827 PR tree-optimization/56264
34828 * cfgloop.h (fix_loop_structure): Adjust prototype.
34829 * loop-init.c (fix_loop_structure): Return the number of
34830 newly discovered loops.
34831 * tree-cfgcleanup.c (repair_loop_structures): When new loops
34832 are discovered, do a full loop-closed SSA rewrite.
34834 2013-02-11 Richard Biener <rguenther@suse.de>
34836 PR tree-optimization/56273
34837 * tree-vrp.c (simplify_cond_using_ranges): Disable for the
34839 (check_array_ref): Fix missing newline in dumps.
34840 (search_for_addr_array): Likewise.
34842 2013-02-09 David Edelsohn <dje.gcc@gmail.com>
34844 * config/rs6000/aix61.h (OS_MISSING_ALTIVEC): Undefine.
34846 2013-02-09 Jakub Jelinek <jakub@redhat.com>
34849 * config/rs6000/rs6000.h (ASSEMBLER_DIALECT): Define.
34851 2013-02-08 Vladimir Makarov <vmakarov@redhat.com>
34853 PR rtl-optimization/56246
34854 * lra-constraints.c (simplify_operand_subreg): Try to reuse
34856 * lra.c (lra): Clear lra_optional_reload_pseudos only when all
34857 constraints are satisfied.
34859 2013-02-08 Jeff Law <law@redhat.com>
34862 * emit-rtl.c (reg_is_parm_p): New function.
34863 * regs.h (reg_is_parm_p): New prototype.
34864 * ira-conflicts.c (ira_build_conflicts): Allow parameters in
34865 callee-clobbered registers.
34867 2013-02-08 Michael Meissner <meissner@linux.vnet.ibm.com>
34870 * config/rs6000/rs6000.c (rs6000_builtin_vectorized_libmass):
34871 If there is no implicit builtin declaration, just return NULL.
34873 2013-02-08 Uros Bizjak <ubizjak@gmail.com>
34875 * config/i386/sse.md (FMAMODEM): New mode iterator.
34876 (fma<mode>4, fms<mode>4, fnma<mode>4, fnms<mode>4): Use FMAMODEM
34877 mode iterator. Do not use TARGET_SSE_MATH in insn constraint.
34879 2013-02-08 Uros Bizjak <ubizjak@gmail.com>
34881 * config/i386/gnu-user.h (TARGET_CAN_SPLIT_STACK): Define only
34882 when HAVE_GAS_CFI_PERSONALITY_DIRECTIVE is set.
34883 * config/i386/gnu-user64.h (TARGET_CAN_SPLIT_STACK): Ditto.
34885 2013-02-08 Edgar E. Iglesias <edgar.iglesias@gmail.com>
34887 * config.gcc (microblaze*-linux*): Add TARGET_BIG_ENDIAN_DEFAULT.
34888 (microblaze*-*-elf): Likewise.
34889 * config/microblaze/linux.h: Add -mbig-endian / -mlittle-endian to
34891 * config/microblaze/microblaze-c.c: Add builtin defines for
34892 _LITTLE_ENDIAN and _BIG_ENDIAN.
34893 * config/microblaze/microblaze.h: Add TARGET_ENDIAN_DEFAULT and
34894 add to TARGET_DEFAULT flags.
34895 Expand ASM_SPEC and LINK_SPEC.
34896 Update BYTES_BIG_ENDIAN and WORDS_BIG_ENDIAN.
34897 * config/microblaze/microblaze.md: Update extendsidi2 and
34898 movdi_internal instructions to use low-order / high-order reg
34900 * config/microblaze/microblaze.opt: Add mbig-endian and mlittle-endian
34901 options and inversemask / mask of LITTLE_ENDIAN.
34902 * config/microblaze/t-microblaze: Expand multilib options to
34903 include mlittle-endian (le) and update exceptions patterns.
34905 2013-02-08 Jakub Jelinek <jakub@redhat.com>
34907 PR rtl-optimization/56195
34908 * lra-constraints.c (get_reload_reg): Don't reuse regs
34909 if they have smaller mode than requested, if they have
34910 wider mode than requested, try to return a SUBREG.
34912 PR tree-optimization/56250
34913 * fold-const.c (extract_muldiv_1) <case NEGATE_EXPR>: Don't optimize
34914 if type is unsigned and code isn't MULT_EXPR.
34916 2013-02-08 Georg-Johann Lay <avr@gjlay.de>
34918 PR tree-optimization/56064
34919 * fixed-value.c (fixed_from_double_int): Sign/zero extend payload
34920 bits according to mode.
34921 * fixed-value.h (fixed_from_double_int)
34922 (const_fixed_from_double_int): Adjust comments.
34924 2013-02-08 Richard Biener <rguenther@suse.de>
34927 * lto-streamer.h (struct data_in): Remove current_file, current_line
34928 and current_col members.
34929 * lto-streamer-out.c (lto_output_location): Stream changed bits
34930 en-block for efficiency.
34931 * lto-streamer-in.c (clear_line_info): Remove.
34932 (lto_input_location): Cache current file, line and column
34933 globally via local statics. Read changed bits en-block.
34934 (input_function): Do not call clear_line_info.
34935 (lto_read_body): Likewise.
34936 (lto_input_toplevel_asms): Likewise.
34938 2013-02-08 Michael Matz <matz@suse.de>
34940 PR tree-optimization/52448
34941 * tree-ssa-phiopt.c (struct name_to_bb): Add phase member.
34942 (nt_call_phase): New static.
34943 (add_or_mark_expr): Only mark accesses with newer phase than any
34945 (nonfreeing_call_p): New.
34946 (nt_init_block): Update nt_call_phase, mark blocks as visited.
34947 (nt_fini_block): Keep blocks marked as visited.
34948 (get_non_trapping): Initialize nt_call_phase, and reset aux pointer.
34950 2013-02-08 Richard Biener <rguenther@suse.de>
34952 * ira.c (ira): Free broken dominator information.
34954 2013-02-08 Uros Bizjak <ubizjak@gmail.com>
34956 * config/i386/i386.c (ix86_spill_class): Use INTEGER_CLASS_P macro.
34958 2013-02-08 Marek Polacek <polacek@redhat.com>
34960 * cfgloop.c (verify_loop_structure): Add more checking of headers.
34962 2013-02-08 Richard Biener <rguenther@suse.de>
34964 PR middle-end/56181
34965 * cfgloop.h (flow_loops_find): Adjust.
34966 (bb_loop_header_p): Declare.
34967 * cfgloop.c (bb_loop_header_p): New function split out from ...
34968 (flow_loops_find): ... here. Adjust function signature,
34969 support incremental loop structure update.
34970 (verify_loop_structure): Cleanup. Verify a loop is a loop.
34971 * cfgloopmanip.c (fix_loop_structure): Move ...
34972 * loop-init.c (fix_loop_structure): ... here.
34973 (apply_loop_flags): Split out from ...
34974 (loop_optimizer_init): ... here.
34975 (fix_loop_structure): Use apply_loop_flags. Use flow_loops_find
34976 in incremental mode, only remove dead loops here.
34978 2013-02-08 Georg-Johann Lay <avr@gjlay.de>
34981 * config/avr/avr.md (unspec) <UNSPEC_ROUND>: Add.
34982 * config/avr/avr-fixed.md (ALL4QA, ALL124QA): New mode iterators.
34983 (round<mode>3, round<mode>3_const): New expanders for fixed-mode.
34984 (*round<mode>3.libgcc): New insns for fixed-modes.
34985 * config/avr/builtins.def (ABSxx): Use a non-NULL LIBNAME.
34986 (ROUNDxx, COUNTLSxx, BITSxx, xxBITS): New DEF_BUILTINs.
34987 (ROUNDFX, COUNTLSFX, ABSFX): New DEF_BUILTINs.
34988 * config/avr/stdfix.h (absFX, bitsFX, FXbits): Remove inline
34989 implementations. Define to __builtin_avr_absFX,
34990 __builtin_avr_bitsFX, __builtin_avr_FXbits, respectively.
34991 (roundFX, countlsFX): Define to __builtin_avr_roundFX,
34992 __builtin_avr_countlsFX, respectively.
34993 * config/avr/avr-c.c (target.h): Include it.
34994 (enum avr_builtin_id): New enum.
34995 (avr_resolve_overloaded_builtin): New static function.
34996 (avr_register_target_pragmas): Use it to set
34997 targetm.resolve_overloaded_builtin.
34998 * config/avr/avr.c (avr_init_builtins): Supply myriads of local
34999 tree nodes used by DEF_BUILTIN.
35000 (avr_expand_builtin) <AVR_BUILTIN_ROUNDxx>: Sanity-check them.
35001 (avr_fold_builtin) <AVR_BUILTIN_BITSxx>: Fold to VIEW_COVERT_EXPR.
35002 <AVR_BUILTIN_xxBITS>: Same.
35004 2013-02-08 Richard Biener <rguenther@suse.de>
35006 * cfgloop.c (verify_loop_structure): Properly handle
35007 a loop exiting to another loop header.
35008 * ira-int.h (ira_loops): Remove.
35009 * ira.c (ira_loops): Remove.
35010 (ira): Use loop_optimizer_init and loop_optimizer_finalize.
35011 (do_reload): Use loop_optimizer_finalize.
35012 * ira-build.c (create_loop_tree_nodes): Use get_loops and
35013 number_of_loops to access the loop tree.
35014 (more_one_region_p): Likewise.
35015 (finish_loop_tree_nodes): Likewise.
35016 (rebuild_regno_allocno_maps): Likewise.
35017 (mark_loops_for_removal): Likewise.
35018 (mark_all_loops_for_removal): Likewise.
35019 (remove_unnecessary_regions): Likewise.
35020 (ira_build): Likewise.
35021 * ira-emit.c (setup_entered_from_non_parent_p): Likewise.
35023 2013-02-08 Richard Biener <rguenther@suse.de>
35025 * Makefile.in (tree-tailcall.o): Add $(CFGLOOP_H) dependency.
35026 * ipa-pure-const.c (analyze_function): Avoid calling
35027 mark_irreducible_loops twice.
35028 * tree-tailcall.c (tree_optimize_tail_calls_1): Mark loops for fixup.
35030 2013-02-07 David S. Miller <davem@davemloft.net>
35032 * dwarf2out.c (based_loc_descr): Perform leaf register remapping
35034 * var-tracking.c (vt_add_function_parameter): Test the presence of
35035 HAVE_window_save properly and do not remap argument registers when
35036 we have a leaf function.
35038 2013-02-07 Uros Bizjak <ubizjak@gmail.com>
35041 * ggc-page.c (ggc_print_statistics): Use HOST_LONG_LONG_FORMAT
35043 * config/i386/i386.c (ix86_print_operand): Ditto.
35045 2013-02-07 Vladimir Makarov <vmakarov@redhat.com>
35047 * lra-constraints.c (process_alt_operands): Fix recently added comment.
35049 2013-02-07 Vladimir Makarov <vmakarov@redhat.com>
35051 PR rtl-optimization/56225
35052 * lra-constraints.c (process_alt_operands): Check that reload hard
35053 reg can hold value for strict_low_part.
35055 2013-02-07 Jakub Jelinek <jakub@redhat.com>
35058 * dwarf2out.c (dwarf2_debug_hooks): Set end_function hook to
35059 dwarf2out_end_function.
35060 (in_first_function_p, maybe_at_text_label_p,
35061 first_loclabel_num_not_at_text_label): New variables.
35062 (dwarf2out_var_location): In the first function find out
35063 lowest loclabel_num N where .LVLN is known not to be equal to .Ltext0.
35064 (find_empty_loc_ranges_at_text_label, dwarf2out_end_function): New
35067 2013-02-07 Eric Botcazou <ebotcazou@adacore.com>
35069 PR rtl-optimization/56178
35070 * cse.c (cse_insn): Do not create a REG_EQUAL note if the source is a
35071 SUBREG of a register. Tidy up related block of code.
35072 * fwprop.c (forward_propagate_and_simplify): Do not create a REG_EQUAL
35073 note if the source is a register or a SUBREG of a register.
35075 2013-02-07 Jakub Jelinek <jakub@redhat.com>
35078 * config/rs6000/rs6000.md (ptrm): New mode attr.
35079 (call_indirect_aix<ptrsize>, call_indirect_aix<ptrsize>_nor11,
35080 call_value_indirect_aix<pttrsize>,
35081 call_value_indirect_aix<pttrsize>_nor11): Use <ptrm> instead of
35084 2013-02-07 Michael Haubenwallner <michael.haubenwallner@salomon.at>
35086 * collect2.c (main): Set aix64_flag for -G and -bsvr4 too, disable
35087 if -bnortl. Convert to strcmp and strncmp.
35089 2013-02-07 Alan Modra <amodra@gmail.com>
35092 * config/rs6000/rs6000.c (mem_operand_gpr): Check that LO_SUM
35093 addresses won't wrap when offsetting.
35094 (rs6000_secondary_reload): Provide secondary reloads needed for
35095 wrapping LO_SUM addresses.
35097 2013-02-06 Thomas Schwinge <thomas@codesourcery.com>
35099 * config/gnu.h (GNU_USER_TARGET_OS_CPP_BUILTINS): Never define
35100 MACH, just __MACH__.
35102 2013-02-06 Richard Biener <rguenther@suse.de>
35104 * tracer.c (tracer): Mark loops with LOOPS_NEED_FIXUP
35105 instead of calling fix_loop_structure.
35107 2013-02-06 Jakub Jelinek <jakub@redhat.com>
35109 PR middle-end/56217
35110 * omp-low.c (use_pointer_for_field): Return false if
35111 lower_send_shared_vars doesn't generate any copy-out code.
35113 2013-02-06 Tom de Vries <tom@codesourcery.com>
35115 PR rtl-optimization/56131
35116 * cfgrtl.c (delete_insn): Use NOTE_BASIC_BLOCK instead of BLOCK_FOR_INSN
35117 to get the bb of a NOTE_INSN_BASIC_BLOCK. Handle the case that the bb
35118 of the label is NULL. Add comment.
35120 2013-02-05 Jakub Jelinek <jakub@redhat.com>
35122 * tree.h (struct tree_decl_with_vis): Remove thread_local field.
35125 * config/gnu-user.h (LIBTSAN_EARLY_SPEC): Define.
35126 (STATIC_LIBTSAN_LIBS): Likewise.
35127 * gcc.c (ADD_STATIC_LIBTSAN_LIBS, LIBTSAN_EARLY_SPEC): Define.
35128 (LIBTSAN_SPEC): Add ADD_STATIC_LIBTSAN_LIBS, if LIBTSAN_EARLY_SPEC
35129 is defined, don't add anything else beyond that.
35130 (SANITIZER_EARLY_SPEC, SANITIZER_SPEC): Define.
35131 (LINK_COMMAND_SPEC): Use them.
35133 PR tree-optimization/56205
35134 * tree-stdarg.c (check_all_va_list_escapes): Return true if
35135 there are any PHI nodes that set non-va_list_escape_vars SSA_NAME
35136 and some va_list_escape_vars SSA_NAME appears in some PHI argument.
35138 2013-02-05 Richard Biener <rguenther@suse.de>
35140 PR tree-optimization/53342
35141 PR tree-optimization/53185
35142 * tree-vectorizer.h (vect_check_strided_load): Remove.
35143 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment): Do
35144 not disallow peeling for vectorized strided loads.
35145 (vect_check_strided_load): Make static and simplify.
35146 (vect_analyze_data_refs): Adjust.
35147 * tree-vect-stmts.c (vectorizable_load): Handle peeled loops
35148 correctly when vectorizing strided loads.
35150 2013-02-05 Richard Biener <rguenther@suse.de>
35152 * doc/install.texi: Refer to ISL, not PPL.
35154 2013-02-05 Jan Hubicka <jh@suse.cz>
35156 PR tree-optimization/55789
35157 * params.def (PARAM_EARLY_INLINER_MAX_ITERATIONS): Drop to 1.
35159 2013-02-05 Jan Hubicka <jh@suse.cz>
35161 PR tree-optimization/55789
35162 * cgraphclones.c (cgraph_remove_node_and_inline_clones): Remove
35163 the dead call anyway.
35165 2013-02-05 Eric Botcazou <ebotcazou@adacore.com>
35168 * config/gnu-user.h (LIBASAN_EARLY_SPEC): Add missing guard.
35170 2013-02-04 Alexander Potapenko <glider@google.com>
35171 Jack Howarth <howarth@bromo.med.uc.edu>
35172 Jakub Jelinek <jakub@redhat.com>
35175 * config/darwin.c (sort_ctor_records): Stabilized qsort
35176 on constructor priority by using original position.
35177 (finalize_ctors): New routine to sort constructors by
35178 priority before use in assemble_integer.
35179 (machopic_asm_out_constructor): Use finalize_ctors if needed.
35181 2013-02-04 Jakub Jelinek <jakub@redhat.com>
35184 * config/i386/winnt.c (i386_pe_assemble_visibility): Don't warn
35185 about visibility on artificial decls.
35186 * config/sol2.c (solaris_assemble_visibility): Likewise.
35188 2013-02-04 Kai Tietz <ktietz@redhat.com>
35191 * config/i386/i386.c (function_value_ms_64): Add additional valtype
35192 argument and improve checking of return-argument types for 16-byte
35194 (ix86_function_value_1): Add additional valtype argument on call
35195 of function_value_64.
35196 (return_in_memory_ms_64): Sync 16-byte sized mode handling with
35197 handling infunction_value_64 function.
35199 2013-02-04 Matthew Gretton-Dann <matthew.gretton-dann@linaro.org>
35201 * reload.c (subst_reloads): Fix DEBUG_RELOAD build issue.
35203 2013-02-04 Richard Biener <rguenther@suse.de>
35205 PR tree-optimization/56188
35206 * tree-ssa-structalias.c (label_visit): Consider case with
35207 initially non-empty points-to set.
35208 (perform_var_substitution): Dump node mapping and clean up.
35210 2013-02-04 Richard Guenther <rguenther@suse.de>
35213 * lto-symtab.c (lto_symtab_merge_decls_1): Make non-builtin
35214 node prevail as last resort.
35215 (lto_symtab_merge_decls): Remove guard on LTRANS here.
35216 (lto_symtab_prevailing_decl): Builtins are their own prevailing decl.
35218 2013-02-04 Richard Biener <rguenther@suse.de>
35220 PR tree-optimization/56113
35221 * tree-ssa-structalias.c (equiv_class_lookup, equiv_class_add):
35223 (equiv_class_lookup_or_add): ... this.
35224 (label_visit): Adjust and fix error in previous patch.
35225 (perform_var_substitution): Adjust.
35227 2013-02-03 Oleg Endo <olegendo@gcc.gnu.org>
35229 * config/sh/divtab.c: Fix formatting and comments throughout the file.
35230 * config/sh/sh4-300.md: Likewise.
35231 * config/sh/sh4a.md: Likewise.
35232 * config/sh/constraints.md: Likewise.
35233 * config/sh/sh.md: Likewise.
35234 * config/sh/netbsd-elf.h: Likewise.
35235 * config/sh/predicates.md: Likewise.
35236 * config/sh/sh-protos.h: Likewise.
35237 * config/sh/ushmedia.h: Likewise.
35238 * config/sh/linux.h: Likewise.
35239 * config/sh/sh.c: Likewise.
35240 * config/sh/superh.h: Likewise.
35241 * config/sh/elf.h: Likewise.
35242 * config/sh/sh4.md: Likewise.
35243 * config/sh/sh.h: Likewise.
35245 2013-02-03 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
35247 * config/pa/constraints.md: Adjust unused letters. Change "T"
35248 constraint to match_test floating_point_store_memory_operand().
35249 * config/pa/predicates.md (reg_plus_base_memory_operand): New.
35250 (base14_operand): New.
35251 (floating_point_store_memory_operand): New.
35252 (integer_store_memory_operand): Revise to use base14_operand and
35253 reg_plus_base_memory_operand.
35254 (move_dest_operand): Allow symbolic_memory_operands.
35255 (symbolic_memory_operand): Check for LO_SOM.
35256 (symbolic_operand): Change default case to break.
35257 * config/pa/pa.md: Remove unamed DFmode and SFmode patterns to force
35258 CONST_DOUBLE values to be reloaded by putting them into memory when
35259 the destination is a floating point register.
35260 (movdf): Remove code to handle CONST_DOUBLE.
35262 (reload_indf_r1): New.
35263 (reload_insf_r1): New.
35264 Consistently use "Q" and "T" constraints with integer and floating
35265 point move instructions, respectively.
35266 (movdi): Remove FAIL.
35267 Change predicate for source operand unamed DImode move from
35268 general_operand to move_src_operand.
35269 (umulsidi3): Change predicate for destination operand to
35271 Likewise for similar unamed patterns.
35272 * config/pa/pa-protos.h (pa_legitimize_reload_address): Declare.
35273 * config/pa/pa.c (pa_symbolic_expression_p): Remove extra parenthesis.
35274 (hppa_legitimize_address): Simplify mask calculation.
35275 (pa_emit_move_sequence): Revised handling of secondary reloads from
35276 REG+D addresses for floating point loads and stores. Directly handle
35277 loading CONST0_RTX (mode) to a floating point register.
35278 (pa_secondary_reload): Handle reloading DF and SFmode constant values
35279 to floating point registers. Don't restrict secondary reloads to
35280 floating point registers to integer modes. Revise some comments and
35282 (TARGET_LEGITIMATE_ADDRESS_P): Define.
35283 (pa_legitimate_address_p): New.
35284 (pa_legitimize_reload_address): New.
35285 * config/pa/pa.h (STRICT_REG_OK_FOR_INDEX_P): New.
35286 (STRICT_REG_OK_FOR_BASE_P): New.
35287 (GO_IF_LEGITIMATE_ADDRESS): Delete. Update some related comments.
35288 (LEGITIMIZE_RELOAD_ADDRESS): Revise to use pa_legitimize_reload_address.
35290 2013-02-03 David Edelsohn <dje.gcc@gmail.com>
35291 Andrew Dixie <andrewd@gentrack.com>
35293 * collect2.c (GCC_CHECK_HDR): Do not scan objects with F_LOADONLY
35296 2013-02-03 Richard Sandiford <rdsandiford@googlemail.com>
35298 * expmed.c (extract_bit_field_1): Pass the full width of the
35299 structure to get_best_reg_extraction_insn.
35301 2013-02-01 David Edelsohn <dje.gcc@gmail.com>
35304 * configure.ac (use_cxa_atexit): Add AIX.
35305 * configure: Regenerate.
35307 * config/rs6000/aix61.h (STARTFILE_SPEC): Add crtcxa.o.
35309 2013-02-01 Jakub Jelinek <jakub@redhat.com>
35312 * final.c (need_profile_function): New variable.
35313 (final_start_function): Drop ATTRIBUTE_UNUSED from first argument.
35314 If first of NOTE_INSN_BASIC_BLOCK or NOTE_INSN_FUNCTION_BEG
35315 is only preceeded by NOTE_INSN_VAR_LOCATION or NOTE_INSN_DELETED
35316 notes, targetm.asm_out.function_prologue doesn't emit anything,
35317 HAVE_prologue and profiler should be emitted before prologue,
35318 set need_profile_function instead of emitting it.
35319 (final_scan_insn): If need_profile_function, emit
35320 profile_function on the first NOTE_INSN_BASIC_BLOCK or
35321 NOTE_INSN_FUNCTION_BEG note.
35323 2013-02-01 Richard Henderson <rth@redhat.com>
35325 * config/rs6000/rs6000.md (smulditi3): New.
35328 * config/alpha/alpha.md (umulditi3): New.
35330 2013-02-01 David Edelsohn <dje.gcc@gmail.com>
35332 * config/rs6000/xcoff.h (ASM_OUTPUT_ALIGNED_COMMON): Use floor_log2.
35333 (ASM_OUTPUT_ALIGNED_LOCAL): New.
35335 2013-02-01 Richard Biener <rguenther@suse.de>
35337 PR tree-optimization/56113
35338 * tree-ssa-structalias.c (label_visit): Reduce work for
35339 single-predecessor nodes.
35341 2013-02-01 Eric Botcazou <ebotcazou@adacore.com>
35343 * fold-const.c (make_range_step) <TRUTH_NOT_EXPR>: Bail out if the
35344 range isn't testing for zero.
35346 2013-01-31 Steven Bosscher <steven@gcc.gnu.org>
35348 PR middle-end/56113
35349 * fwprop.c (fwprop_init): Set up loops without CFG modifications.
35351 2013-01-31 Hiroyuki Ono <hiroyuki.ono.jc@renesas.com>
35352 Nick Clifton <nickc@redhat.com>
35354 * config/v850/constraints.md (Q): Define as a memory constraint.
35355 * config/v850/predicates.md (label_ref_operand): New predicate.
35356 (e3v5_shift_operand): New predicate.
35357 (ior_operator): New predicate.
35358 * config/v850/t-v850: Add e3v5 multilib.
35359 * config/v850/v850-protos.h (v850_adjust_insn_length): Prototype.
35360 (v850_gen_movdi): Prototype.
35361 * config/v850/v850.c: Add support for e3v5 architecture.
35362 Rename all uses of TARGET_V850E || TARGET_V850E2_ALL to
35364 (construct_save_jarl): Add e3v5 long JARL support.
35365 (v850_adjust_insn_length): New function. Adjust length of call
35366 insns when using e3v5 instructions.
35367 (v850_gen_movdi): New function: Generate instructions to move a
35369 * config/v850/v850.h (TARGET_CPU_v850e3v5): Define.
35370 (CPP_SPEC): Define __v850e3v5__ as appropriate.
35371 (TARGET_USE_FPU): Enable for e3v5.
35372 (CONST_OK_FOR_W): New macro.
35373 (ADJUST_INSN_LENGTH): Define.
35374 * config/v850/v850.md (UNSPEC_LOOP): Define.
35375 (attr cpu): Add v850e3v5.
35376 Rename all uses of TARGET_V850E2 to TARGET_V850E2V3_UP.
35377 (movdi): New pattern.
35378 (movdi_internal): New pattern.
35379 (cbranchsf4): Conditionalize on TARGET_USE_FPU.
35380 (cbranchdf4): Conditionalize on TARGET_USE_FPU.
35381 (cstoresf4): Likewise.
35382 (cstoredf4): Likewise.
35383 (insv): New pattern.
35384 (rotlso3_a): New pattern.
35385 (rotlsi3_b): New pattern
35386 (rotlsi3_v850e3v5): New pattern.
35387 (doloop_begin): New pattern.
35388 (fix_loop_counter): New pattern.
35389 (doloop_end): New pattern.
35390 (branch_normal): Add e3v5 long branch support.
35391 (branch_invert): Likewise.
35392 (branch_z_normal): Likewise.
35393 (branch_z_invert): Likewise.
35394 (branch_nz_normal): Likewise.
35395 (branch_nz_invert): Likewise.
35396 (call_internal_short): Add e3v5 register-indirect JARL support.
35397 (call_internal_long): Likewise.
35398 (call_value_internal_short): Likewise.
35399 (call_value_internal_long): Likewise.
35400 * config/v850/v850.opt (mv850e3v5, mv850e2v4): New options.
35401 (mloop): New option.
35402 * config.gcc: Add support for configuring v840e3v5 target.
35403 * doc/invoke.texi: Document new v850 specific command line options.
35405 2013-01-31 Paul Koning <ni1d@arrl.net>
35409 * dwarf2out.c (prune_unused_types_mark): Mark all of parent's
35410 children if parent is a class.
35411 (prune_unused_types_prune): Don't add DW_AT_declaration.
35413 2013-01-31 Richard Biener <rguenther@suse.de>
35415 PR tree-optimization/56157
35416 * tree-vect-slp.c (vect_get_slp_defs): More thoroughly try to
35417 match up operand with SLP child.
35419 2013-01-31 Jason Merrill <jason@redhat.com>
35422 * dwarf2out.c (gen_struct_or_union_type_die): Always schedule template
35423 parameters the first time.
35424 (gen_scheduled_generic_parms_dies): Check completeness here.
35426 2013-01-31 Richard Biener <rguenther@suse.de>
35428 PR middle-end/53073
35429 * common.opt (faggressive-loop-optimizations): New flag,
35430 enabled by default.
35431 * doc/invoke.texi (faggressive-loop-optimizations): Document.
35432 * tree-ssa-loop-niter.c (estimate_numbers_of_iterations_loop): Guard
35433 infer_loop_bounds_from_undefined by it.
35435 2013-01-31 Richard Biener <rguenther@suse.de>
35437 PR tree-optimization/56150
35438 * tree-ssa-loop-manip.c (find_uses_to_rename_stmt): Do not
35439 visit virtual operands.
35440 (find_uses_to_rename_bb): Likewise.
35442 2013-01-31 Richard Biener <rguenther@suse.de>
35444 PR tree-optimization/56150
35445 * tree-ssa-tail-merge.c (gimple_equal_p): Properly handle
35446 mixed store non-store stmts.
35448 2013-01-30 Jakub Jelinek <jakub@redhat.com>
35451 * gcc.c (LIBASAN_SPEC): Define just to ADD_STATIC_LIBASAN_LIBS if
35452 LIBASAN_EARLY_SPEC is defined.
35453 (LIBASAN_EARLY_SPEC): Define to empty string if not already defined.
35454 (LINK_COMMAND_SPEC): Add LIBASAN_EARLY_SPEC for -fsanitize=address,
35456 * config/gnu-user.h (LIBASAN_EARLY_SPEC): Define.
35459 * config/i386/i386.c (ix86_valid_target_attribute_inner_p): Diagnose
35460 invalid args instead of ICEing on it.
35461 (ix86_valid_target_attribute_tree): Return error_mark_node if
35462 ix86_valid_target_attribute_inner_p failed.
35463 (ix86_valid_target_attribute_p): Return false only if
35464 ix86_valid_target_attribute_tree returned error_mark_node. Allow
35465 target("default") attribute.
35466 (sorted_attr_string): Change argument from const char * to tree,
35467 merge in all target attribute arguments rather than just one.
35468 Formatting fix. Use XNEWVEC instead of xmalloc and XDELETEVEC
35469 instead of free. Avoid using strcat.
35470 (ix86_mangle_function_version_assembler_name): Mangle
35471 target("default") as if no target attribute is present. Adjust
35472 sorted_attr_string caller. Avoid leaking memory. Use XNEWVEC
35473 instead of xmalloc and XDELETEVEC instead of free.
35474 (ix86_function_versions): Don't return true if one of the decls
35475 doesn't have target attribute. If they don't and one of the decls
35476 is DECL_FUNCTION_VERSIONED, report an error. Adjust
35477 sorted_attr_string caller. Use XDELETEVEC instead of free.
35478 (ix86_supports_function_versions): Remove.
35479 (make_name): Fix up formatting.
35480 (make_dispatcher_decl): Remove resolver_name and its initialization.
35481 Avoid leaking memory.
35482 (is_function_default_version): Return true if there is
35483 target("default") attribute rather than no target attribute at all.
35484 (make_resolver_func): Avoid leaking memory.
35485 (ix86_generate_version_dispatcher_body): Likewise.
35486 (TARGET_OPTION_SUPPORTS_FUNCTION_VERSIONS): Remove.
35487 * target.def (supports_function_versions): Remove.
35488 * doc/tm.texi.in (SUPPORTS_FUNCTION_VERSIONS): Remove.
35489 * doc/tm.texi: Regenerated.
35491 2013-01-30 Vladimir Makarov <vmakarov@redhat.com>
35493 PR rtl-optimization/56144
35494 * lra-constraints.c (get_reload_reg): Don't reuse reload pseudo
35495 for values with side effects.
35497 2013-01-30 Richard Biener <rguenther@suse.de>
35499 * sparseset.h (sparseset_bit_p): Use gcc_checking_assert.
35500 (sparseset_pop): Likewise.
35501 * cfganal.c (compute_idf): Likewise. Increase work-stack size
35502 to be able to use quick_push in the worker loop.
35504 2013-01-30 Marek Polacek <polacek@redhat.com>
35506 * cfgcleanup.c (cleanup_cfg): Don't mark affected BBs.
35508 2013-01-30 Richard Biener <rguenther@suse.de>
35511 * lto-symtab.c (lto_symtab_merge_decls_1): Guard DECL_BUILT_IN check.
35513 2013-01-30 Georg-Johann Lay <avr@gjlay.de>
35515 PR tree-optimization/56064
35516 * fixed-value.c (fixed_from_double_int): New function.
35517 * fixed-value.h (fixed_from_double_int): New prototype.
35518 (const_fixed_from_double_int): New static inline function.
35519 * fold-const.c (native_interpret_fixed): New static function.
35520 (native_interpret_expr) <FIXED_POINT_TYPE>: Use it.
35521 (can_native_interpret_type_p) <FIXED_POINT_TYPE>: Return true.
35522 (native_encode_fixed): New static function.
35523 (native_encode_expr) <FIXED_CST>: Use it.
35524 (native_interpret_int): Move double_int worker code to...
35525 * double-int.c (double_int::from_buffer): ...this new static method.
35526 * double-int.h (double_int::from_buffer): Prototype it.
35528 2013-01-30 Richard Biener <rguenther@suse.de>
35530 * tree-ssa-structalias.c (final_solutions, final_solutions_obstack):
35531 New pointer-map and obstack.
35532 (init_alias_vars): Allocate pointer-map and obstack.
35533 (delete_points_to_sets): Free them.
35534 (find_what_var_points_to): Cache result.
35535 (find_what_p_points_to): Adjust for changed interface of
35536 find_what_var_points_to.
35537 (compute_points_to_sets): Likewise.
35538 (ipa_pta_execute): Likewise.
35540 2013-01-30 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
35542 * configure.ac (HAVE_AS_SPARC_NOBITS): New test.
35543 * configure: Regenerate.
35544 * config.in: Regenerate.
35545 * config/sparc/sparc.c (sparc_solaris_elf_asm_named_section): Emit
35546 #nobits/#progbits if supported.
35548 2013-01-29 Oleg Endo <olegendo@gcc.gnu.org>
35551 * config/sh/sh.md (bclr_m2a, bset_m2a, bst_m2a, bld_m2a, bldsign_m2a,
35552 bld_reg, *bld_regqi, band_m2a, bandreg_m2a, bor_m2a, borreg_m2a,
35553 bxor_m2a, bxorreg_m2a): Add satisfies_constraint_K03 condition.
35555 2013-01-29 Greta Yorsh <Greta.Yorsh@arm.com>
35557 * config/arm/cortex-a7.md (cortex_a7_neon, cortex_a7_all): Remove.
35558 (cortex_a7_idiv): Use cortex_a7_both instead of cortex_a7_all.
35560 2013-01-29 Greta Yorsh <Greta.Yorsh@arm.com>
35562 * config/arm/arm.c (cortexa7_younger): Return true for TYPE_CALL.
35563 * config/arm/cortex-a7.md (cortex_a7_call): Update required units.
35565 2013-01-29 Greta Yorsh <Greta.Yorsh@arm.com>
35567 * config/arm/arm-protos.h (arm_mac_accumulator_is_result): New
35569 * config/arm/arm.c (arm_mac_accumulator_is_result): New function.
35570 * config/arm/cortex-a7.md: New bypasses using
35571 arm_mac_accumulator_is_result.
35573 2013-01-29 Greta Yorsh <Greta.Yorsh@arm.com>
35575 * config/arm/cortex-a7.md (cortex_a7_neon_mul): New reservation.
35576 (cortex_a7_neon_mla): Likewise.
35577 (cortex_a7_fpfmad): New reservation.
35578 (cortex_a7_fpmacs): Use ffmas and update required units.
35579 (cortex_a7_fpmuld): Update required units and latency.
35580 (cortex_a7_fpmacd): Likewise.
35581 (cortex_a7_fdivs, cortex_a7_fdivd): Likewise.
35582 (cortex_a7_neon). Likewise.
35583 (bypass) Update participating units.
35585 2013-01-29 Greta Yorsh <Greta.Yorsh@arm.com>
35587 * config/arm/arm.md (type): Add ffmas and ffmad to "type" attribute.
35588 * config/arm/vfp.md (fma,fmsub,fnmsub,fnmadd): Change type
35590 * config/arm/vfp11.md (vfp_farith): Use ffmas.
35591 (vfp_fmul): Use ffmad.
35592 * config/arm/cortex-r4f.md (cortex_r4_fmacs): Use ffmas.
35593 (cortex_r4_fmacd): Use ffmad.
35594 * config/arm/cortex-m4-fpu.md (cortex_m4_fmacs): Use ffmas.
35595 * config/arm/cortex-a9.md (cortex_a9_fmacs): Use ffmas.
35596 (cortex_a9_fmacd): Use ffmad.
35597 * config/arm/cortex-a8-neon.md (cortex_a8_vfp_macs): Use ffmas.
35598 (cortex_a8_vfp_macd): Use ffmad.
35599 * config/arm/cortex-a5.md (cortex_a5_fpmacs): Use ffmas.
35600 (cortex_a5_fpmacd): Use ffmad.
35601 * config/arm/cortex-a15-neon.md (cortex_a15_vfp_macs) Use ffmas.
35602 (cortex_a15_vfp_macd): Use ffmad.
35603 * config/arm/arm1020e.md (v10_fmul): Use ffmas and ffmad.
35605 2013-01-29 Jason Merrill <jason@redhat.com>
35608 * varasm.c (default_assemble_visibility): Don't warn about
35609 visibility on artificial decls.
35611 2013-01-29 Richard Biener <rguenther@suse.de>
35613 PR tree-optimization/56113
35614 * tree-ssa-structalias.c (equiv_class_lookup): Also return
35616 (label_visit): Free duplicate bitmaps and record the leader instead.
35617 (perform_var_substitution): Adjust.
35619 2013-01-29 Richard Biener <rguenther@suse.de>
35621 PR tree-optimization/55270
35622 * tree-ssa-dom.c (eliminate_degenerate_phis): If we changed
35623 the CFG, schedule loops for fixup.
35625 2013-01-29 Nick Clifton <nickc@redhat.com>
35627 * config/rl78/rl78.c (rl78_regno_mode_code_ok_for_base_p): Allow
35630 2013-01-28 Leif Ekblad <leif@rdos.net>
35632 * config.gcc (i[34567]86-*-rdos*, x86_64-*-rdos*): New targets.
35633 * config/i386/i386.h (TARGET_RDOS): New macro.
35634 (DEFAULT_LARGE_SECTION_THRESHOLD): New macro.
35635 * config/i386/i386.c (ix86_option_override_internal): For 64bit
35636 TARGET_RDOS, set ix86_cmodel to CM_MEDIUM_PIC and flag_pic to 1.
35637 * config/i386/i386.opt (mlarge-data-threshold): Initialize to
35638 DEFAULT_LARGE_SECTION_THRESHOLD.
35639 * config/i386/i386.md (R14_REG, R15_REG): New constants.
35640 * config/i386/rdos.h: New file.
35641 * config/i386/rdos64.h: New file.
35643 2013-01-28 Bernd Schmidt <bernds@codesourcery.com>
35646 * reload.c (find_valid_class_1): Use in_hard_reg_set_p instead of
35649 2013-01-28 Jakub Jelinek <jakub@redhat.com>
35651 PR rtl-optimization/56117
35652 * sched-deps.c (sched_analyze_2) <case PREFETCH>: For use_cselib
35653 call cselib_lookup_from_insn on the MEM before calling
35654 add_insn_mem_dependence.
35656 2013-01-28 Richard Biener <rguenther@suse.de>
35658 * tree-inline.c (remap_gimple_stmt): Do not assing a BLOCK
35659 to a stmt that didn't have one.
35660 (copy_phis_for_bb): Likewise for PHI arguments.
35661 (copy_debug_stmt): Likewise for debug stmts.
35663 2013-01-28 Richard Biener <rguenther@suse.de>
35665 PR tree-optimization/56034
35666 * tree-loop-distribution.c (enum partition_kind): Add PKIND_REDUCTION.
35667 (partition_builtin_p): Adjust.
35668 (generate_code_for_partition): Handle PKIND_REDUCTION. Assert
35669 it is the last partition.
35670 (rdg_flag_uses): Check SSA_NAME_IS_DEFAULT_DEF before looking
35671 up the vertex for the definition.
35672 (classify_partition): Classify whether a partition is a
35673 PKIND_REDUCTION, thus has uses outside of the loop.
35674 (ldist_gen): Inherit PKIND_REDUCTION when merging partitions.
35675 Merge all PKIND_REDUCTION partitions into the last partition.
35676 (tree_loop_distribution): Seed partitions from reductions as well.
35678 2013-01-28 Jakub Jelinek <jakub@redhat.com>
35680 PR tree-optimization/56125
35681 * tree-ssa-math-opts.c (gimple_expand_builtin_pow): Don't optimize
35682 pow(x,c) into sqrt(x) * powi(x, n/2) or
35683 1.0 / (sqrt(x) * powi(x, abs(n/2))) if c is an integer or when
35684 optimizing for size.
35685 Don't optimize pow(x,c) into powi(x, n/3) * powi(cbrt(x), n%3) or
35686 1.0 / (powi(x, abs(n)/3) * powi(cbrt(x), abs(n)%3)) if 2c is an
35689 PR tree-optimization/56094
35690 * gimplify.c (force_gimple_operand_1): Temporarily set input_location
35691 to UNKNOWN_LOCATION while gimplifying expr.
35693 2013-01-27 Uros Bizjak <ubizjak@gmail.com>
35696 * config/i386/i386.md (*movabs<mode>_1): Add square brackets around
35697 operand 0 in movabs insn template for -masm=intel asm alternative.
35698 (*movabs<mode>_2): Ditto for operand 1.
35700 2013-01-26 David Holsgrove <david.holsgrove@xilinx.com>
35703 * config.gcc (microblaze*-linux*): Add tmake_file to allow building
35706 2013-01-26 Edgar E. Iglesias <edgar.iglesias@gmail.com>
35708 * config.gcc (microblaze*-*-*): Rename microblaze*-*-elf, update
35711 2013-01-25 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
35713 * config/aarch64/aarch64.c (TARGET_FIXED_CONDITION_CODE_REGS):
35714 Undef to avoid warning.
35716 2013-01-25 Michael Haubenwallner <michael.haubenwallner@salomon.at>
35718 * configure.ac (gcc_cv_ld_static_dynamic): Define for AIX native ld.
35719 * configure: Regenerate.
35721 2013-01-25 Jakub Jelinek <jakub@redhat.com>
35723 PR tree-optimization/56098
35724 * tree-ssa-phiopt.c (nt_init_block): Don't call add_or_mark_expr
35725 for stmts with volatile ops.
35726 (cond_store_replacement): Don't optimize if assign has volatile ops.
35727 (cond_if_else_store_replacement_1): Don't optimize if either
35728 then_assign or else_assign have volatile ops.
35729 (hoist_adjacent_loads): Don't optimize if either def1 or def2 have
35732 2013-01-25 Georg-Johann Lay <avr@gjlay.de>
35734 * doc/invoke.texi (AVR Built-in Macros): Document __XMEGA__.
35736 2013-01-25 Georg-Johann Lay <avr@gjlay.de>
35738 * doc/extend.texi (Example of asm with clobbered asm reg): Fix
35739 missing ':' in asm example.
35741 2013-01-25 Tejas Belagod <tejas.belagod@arm.com>
35743 * config/aarch64/aarch64-simd-builtins.def: Separate sq<r>dmulh_lane
35744 entries into lane and laneq entries.
35745 * config/aarch64/aarch64-simd.md (aarch64_sq<r>dmulh_lane<mode>):
35746 Remove AdvSIMD scalar modes.
35747 (aarch64_sq<r>dmulh_laneq<mode>): New.
35748 (aarch64_sq<r>dmulh_lane<mode>): New RTL pattern for Scalar AdvSIMD
35750 * config/aarch64/arm_neon.h: Fix all the vq<r>dmulh_lane* intrinsics'
35751 builtin implementations to relfect changes in RTL in aarch64-simd.md.
35752 * config/aarch64/iterators.md (VCOND): New.
35755 2013-01-25 Georg-Johann Lay <avr@gjlay.de>
35758 * config/avr/builtins.def (DEF_BUILTIN): Add LIBNAME argument.
35759 Add NULL LIBNAME argument to existing definitions.
35760 (ABSHR, ABSR, ABSLR, ABSLLR, ABSHK, ABSK, ABSLK, ABSLLK): New.
35761 * config/avr/avr-c.c (DEF_BUILTIN): Add LIBNAME argument.
35762 * config/avr/avr.c (DEF_BUILTIN): Same.
35763 (avr_init_builtins): Pass down LIBNAME to add_builtin_function.
35764 (avr_expand_builtin): Expand to a vanilla call if a libgcc
35765 implementation is available (DECL_ASSEMBLER_NAME is set).
35766 (avr_fold_absfx): New static function.
35767 (avr_fold_builtin): Use it to handle: AVR_BUILTIN_ABSHR,
35768 AVR_BUILTIN_ABSR, AVR_BUILTIN_ABSLR, AVR_BUILTIN_ABSLLR,
35769 AVR_BUILTIN_ABSHK, AVR_BUILTIN_ABSK, AVR_BUILTIN_ABSLK,
35770 AVR_BUILTIN_ABSLLK.
35771 * config/avr/stdfix.h (abshr, absr, abslr, absllr)
35772 (abshk, absk, abslk, absllk): Provide as static inline functions.
35774 2013-01-25 Marek Polacek <polacek@redhat.com>
35776 PR tree-optimization/56035
35777 * cfgloopmanip.c (fix_loop_structure): Remove redundant condition.
35779 2012-01-24 Uros Bizjak <ubizjak@gmail.com>
35781 * config/i386/i386.md (*movti_internal_rex64): Add (o,e) alternative.
35782 (*movtf_internal_rex64): Add (!o,C) alternative
35783 (*movxf_internal_rex64): Ditto.
35784 (*movdf_internal_rex64): Add (?r,C) and (?m,C) alternatives.
35786 2013-01-24 Shenghou Ma <minux.ma@gmail.com>
35788 * doc/invoke.texi: fix typo.
35789 * doc/objc.texi: fix typo.
35791 2013-01-24 Richard Sandiford <rdsandiford@googlemail.com>
35793 * config/mips/mips.md (*and<mode>3_mips16): Use the "W" constraint
35794 for the first two alternatives.
35796 2013-01-24 Diego Novillo <dnovillo@google.com>
35798 * Makefile.in (GGC): Remove. Replace all instances with ggc-page.o.
35799 (ggc-zone.o): Remove.
35800 * configure.ac: Remove option --with-gc.
35801 * configure: Re-generate.
35802 * doc/install.texi: Remove documentation for --with-gc.
35803 * gengtype.c (write_enum_defn): Remove. Update all users.
35804 (write_Types_process_field): Remove generation of gt_e_* argument.
35805 (output_type_enum): Remove. Update all users.
35806 (write_enum_defn): Remove. Update all users.
35807 (enum alloc_zone): Remove. Update all users.
35808 (write_splay_tree_allocator_def): Remove generation of gt_e_* argument.
35809 * ggc-common.c (ggc_splay_alloc): Remove first argument.
35810 Update all callers.
35811 (struct ptr_data): Remove field TYPE. Update all users.
35812 (gt_pch_note_object): Remove argument TYPE. Update all users.
35813 * ggc-internal.h (ggc_pch_alloc_object): Remove last argument.
35815 * ggc-none.c (ggc_alloc_typed_stat): Remove.
35816 (struct alloc_zone): Remove.
35817 (ggc_internal_alloc_zone_stat): Remove.
35818 (ggc_internal_cleared_alloc_zone_stat): Remove.
35819 * ggc-page.c (ggc_alloc_typed_stat): Remove.
35820 (ggc_pch_count_object): Remove last argument. Update all users.
35821 (ggc_pch_alloc_object): Remove last argument. Update all users.
35822 (struct alloc_zone): Remove.
35823 * ggc-zone.c: Remove.
35824 * ggc.h (gt_pch_note_object): Remove last argument. Update all users.
35825 (struct alloc_zone): Remove.
35826 (ggc_alloc_typed_stat): Remove.
35827 (ggc_alloc_typed): Remove.
35828 (ggc_splay_alloc): Remove first argument.
35829 (rtl_zone): Remove. Update all users.
35830 (tree_zone): Remove. Update all users.
35831 (tree_id_zone): Remove. Update all users.
35832 (ggc_internal_zone_alloc_stat): Remove. Update all users.
35833 (ggc_internal_zone_cleared_alloc_stat): Remove. Update all users.
35834 (ggc_internal_zone_vec_alloc_stat): Remove. Update all users.
35835 * tree-ssanames.c: Remove references to zone allocator in comments.
35837 2013-01-24 Georg-Johann Lay <avr@gjlay.de>
35839 * config/avr/avr.c (avr_out_fract): Make register numbers that
35840 might be outside of source operand signed.
35842 2013-01-24 Uros Bizjak <ubizjak@gmail.com>
35844 * config/i386/constraints.md (Yf): New constraint.
35845 * config/i386/i386.md (*movdf_internal_rex64): Use Yf*f instead
35846 of f constraint to conditionaly disable x87 register preferences.
35847 (*movdf_internal): Ditto.
35848 (*movsf_internal): Ditto.
35850 2013-01-24 Steven Bosscher <steven@gcc.gnu.org>
35852 PR inline-asm/55934
35853 * lra-assigns.c (assign_by_spills): Throw away the pattern of asms
35854 that have operands with impossible constraints.
35855 Add a FIXME for a speed-up opportunity.
35856 * lra-constraints.c (process_alt_operands): Verify that a class
35857 selected from constraints on asms is valid for the operand mode.
35858 (curr_insn_transform): Remove incorrect comment.
35860 2013-01-23 David Edelsohn <dje.gcc@gmail.com>
35862 * config/rs6000/rs6000.c (rs6000_delegitimize_address): Check that
35863 TOC operand is a valid symbol ref in the constant pool.
35865 2013-01-23 Edgar E. Iglesias <edgar.iglesias@gmail.com>
35867 * config/microblaze/linux.h: Add TARGET_OS_CPP_BUILTINS
35869 2013-01-23 Georg-Johann Lay <avr@gjlay.de>
35872 * config/avr/stdfix.h: New file.
35873 * t-avr (stdfix-gcc.h): New rule to build it.
35874 (EXTRA_HEADERS): Set it to install stdfix.h, stdfix-gcc.h.
35876 2013-01-23 Kostya Serebryany <kcc@google.com>
35878 * config/darwin.h: remove dependency on
35879 CoreFoundation (asan on Mac OS).
35881 2013-01-23 Jakub Jelinek <jakub@redhat.com>
35884 * config/arm/arm.md (cbranchdi4, cstoredi4): Use s_register_operand
35885 instead of cmpdi_operand for first comparison operand.
35886 Don't assert that comparison operands aren't both constants.
35888 2013-01-22 Jonathan Wakely <jwakely.gcc@gmail.com>
35890 * doc/install.texi (Downloading the Source): Update references to
35891 downloading separate components.
35893 2013-01-22 Jonathan Wakely <jwakely.gcc@gmail.com>
35895 * doc/extend.texi (__int128): Improve grammar.
35897 2013-01-22 Uros Bizjak <ubizjak@gmail.com>
35900 * config/i386/i386.md (*movti_internal_rex64): Change (o,riF)
35901 alternative to (o,r).
35902 (*movdi_internal_rex64): Remove (!o,n) alternative.
35903 (DImode immediate->memory splitter): Remove.
35904 (DImode immediate->memory peephole2): Remove.
35905 (movtf): Enable for TARGET_64BIT || TARGET_SSE.
35906 (*movtf_internal_rex64): Rename from *movtf_internal. Change (!o,F*r)
35907 alternative to (!o,*r).
35908 (*movtf_internal_sse): New pattern.
35909 (*movxf_internal_rex64): New pattern.
35910 (*movxf_internal): Disable for TARGET_64BIT.
35911 (*movdf_internal_rex64): Remove (!o,F) alternative.
35913 2013-01-22 Jakub Jelinek <jakub@redhat.com>
35915 PR middle-end/56074
35916 * dumpfile.c (dump_loc): Only print loc if LOCATION_LOCUS (loc)
35917 isn't UNKNOWN_LOCATION nor BUILTINS_LOCATION.
35918 * tree-vect-loop-manip.c (find_loop_location): Also ignore
35919 stmt locations where LOCATION_LOCUS of the stmt location is
35920 UNKNOWN_LOCATION or BUILTINS_LOCATION.
35923 * config/i386/i386.md (UNSPEC_STOS): New.
35924 (strset_singleop, *strsetdi_rex_1, *strsetsi_1, *strsethi_1,
35925 *strsetqi_1): Add UNSPEC_STOS.
35927 2013-01-22 Paolo Carlini <paolo.carlini@oracle.com>
35930 * doc/invoke.texi: Remove left over -Wsynth example.
35932 2013-01-21 Jakub Jelinek <jakub@redhat.com>
35934 PR tree-optimization/56051
35935 * fold-const.c (fold_binary_loc): Don't fold
35936 X < (cast) (1 << Y) into (X >> Y) != 0 if cast is either
35937 a narrowing conversion, or widening conversion from signed
35940 2013-01-21 Uros Bizjak <ubizjak@gmail.com>
35942 PR rtl-optimization/56023
35943 * haifa-sched.c (fix_inter_tick): Do not update ticks of instructions,
35944 dependent on debug instruction.
35946 2013-01-21 Martin Jambor <mjambor@suse.cz>
35948 PR middle-end/56022
35949 * function.c (allocate_struct_function): Call
35950 invoke_set_current_function_hook earlier.
35952 2013-01-21 Jakub Jelinek <jakub@redhat.com>
35954 * reload1.c (init_reload): Only initialize reload_obstack
35955 during the first call.
35957 2013-01-21 Marek Polacek <polacek@redhat.com>
35959 * cfgloop.c (verify_loop_structure): Fix up grammar.
35961 2013-01-21 Yi-Hsiu Hsu <ahsu@marvell.com>
35963 * config/arm/marvell-pj4.md (pj4_shift_conds, pj4_alu_shift,
35964 pj4_alu_shift_conds, pj4_shift): Handle simple_alu_shift.
35966 2013-01-21 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
35969 * config/arm/marvell-pj4.md: Update copyright year.
35970 Fix up use of alu to alu_reg and simple_alu_imm.
35972 2013-01-21 Uros Bizjak <ubizjak@gmail.com>
35974 * config/i386/i386.md (enabled): Do not disable fma4 for TARGET_FMA.
35976 2013-01-20 Vladimir Makarov <vmakarov@redhat.com>
35979 * lra-constraints.c (curr_insn_transform): Don't reuse original
35980 insn for secondary memory move when memory mode should be different.
35982 2013-01-20 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
35984 * config/pa/pa.md (atomic_loaddi, atomic_loaddi_1, atomic_storedi,
35985 atomic_storedi_1): New patterns.
35987 2013-01-20 Venkataramanan Kumar <venkataramanan.kumar@amd.com>
35989 btver2 pipeline descriptions.
35990 * config/i386/i386.c: Enable CPU_BTVER2 to use btver2 pipeline
35992 * config/i386/i386.md (btver2_decode): New type attributes.
35993 * config/i386/sse.md (btver2_decode, btver2_sse_attr): New
35995 * config/i386/btver2.md: New file describing btver2 pipelines.
35997 2013-01-19 Andrew Pinski <apinski@cavium.com>
35999 PR tree-optimization/52631
36000 * tree-ssa-sccvn (visit_use): Before looking up the original
36001 statement, try looking up the simplified expression.
36003 2013-01-19 Anthony Green <green@moxielogic.com>
36005 * config/moxie/moxie.c (moxie_expand_prologue): Set
36006 current_function_static_stack_size.
36008 2013-01-18 Jakub Jelinek <jakub@redhat.com>
36010 PR tree-optimization/56029
36011 * tree-phinodes.c (reserve_phi_args_for_new_edge): Set
36012 gimple_phi_arg_location for the new arg to UNKNOWN_LOCATION.
36014 2013-01-18 Sharad Singhai <singhai@google.com>
36016 PR tree-optimization/55995
36017 * dumpfile.c (dump_loc): Print location only if available.
36018 * tree-vectorizer.c (increase_alignment): Intialize vect_location.
36020 2013-01-18 Vladimir Makarov <vmakarov@redhat.com>
36023 * lra-constraints.c (curr_insn_transform): Reuse original insn for
36024 secondary memory move.
36025 (inherit_reload_reg): Use rclass instead of cl for
36026 check_secondary_memory_needed_p.
36028 2013-01-18 Jakub Jelinek <jakub@redhat.com>
36030 PR middle-end/56015
36031 * expr.c (expand_expr_real_2) <case COMPLEX_EXPR>: Handle
36032 the case where writing real complex part of target modifies op1.
36034 2013-01-18 James Greenhalgh <james.greenhalgh@arm.com>
36036 * config/aarch64/aarch64-simd.md
36037 (aarch64_vcond_internal<mode>): Handle unordered cases.
36038 * config/aarch64/iterators.md (v_cmp_result): New.
36040 2013-01-18 Yi-Hsiu Hsu <ahsu@marvell.com>
36041 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
36043 * config/arm/marvell-pj4.md: New file.
36044 * config/arm/arm.c (arm_issue_rate): Add marvell_pj4.
36045 * config/arm/arm.md (generic_sched): Add marvell_pj4.
36046 (generic_vfp): Likewise.
36047 * config/arm/arm-cores.def: Add marvell-pj4.
36048 * config/arm/arm-tune.md: Regenerate.
36049 * config/arm/arm-tables.opt: Regenerate.
36050 * config/arm/bpabi.h (BE8_LINK_SPEC): Add marvell_pj4.
36051 * doc/invoke.texi: Document marvell-pj4.
36053 2013-01-18 Tejas Belagod <tejas.belagod@arm.com>
36055 * config/aarch64/arm_neon.h: Map scalar types to standard types.
36057 2013-01-18 Alexandre Oliva <aoliva@redhat.com>
36062 * var-tracking.c (negative_power_of_two_p): New.
36063 (global_get_addr_cache, local_get_addr_cache): New.
36064 (get_addr_from_global_cache, get_addr_from_local_cache): New.
36065 (vt_canonicalize_addr): Rewrite using the above. Adjust the
36067 (vt_stack_offset_p): Remove.
36068 (vt_canon_true_dep): Always canonicalize loc's address.
36069 (clobber_overlapping_mems): Make sure we have a MEM.
36070 (local_get_addr_clear_given_value): New.
36071 (val_reset): Clear local cached entries.
36072 (compute_bb_dataflow): Create and release the local cache.
36073 Disable duplicate MEMs clobbering.
36074 (emit_notes_in_bb): Clobber MEMs likewise.
36075 (vt_emit_notes): Create and release the local cache.
36076 (vt_initialize, vt_finalize): Create and release the global
36077 cache, respectively.
36078 * alias.c (rtx_equal_for_memref_p): Compare operands of ENTRY_VALUEs.
36080 2013-01-18 Alexandre Oliva <aoliva@redhat.com>
36082 PR libmudflap/53359
36083 * tree-mudflap.c (mudflap_finish_file): Skip deferred decls
36084 not found in the symtab.
36086 2013-01-18 Alexandre Oliva <aoliva@redhat.com>
36089 PR rtl-optimization/55547
36090 PR rtl-optimization/53827
36093 * alias.c (offset_overlap_p): New, factored out of...
36094 (memrefs_conflict_p): ... this. Use absolute sizes. Retain
36095 the conservative special case for symbolic constants. Don't
36096 adjust zero sizes on alignment.
36098 2013-01-18 Bernd Schmidt <bernds@codesourcery.com>
36100 PR rtl-optimization/52573
36101 * regrename.c (build_def_use): Ignore REG_DEAD notes if there is a
36102 REG_UNUSED for the same register.
36104 2013-01-17 Richard Biener <rguenther@suse.de>
36105 Marek Polacek <polacek@redhat.com>
36107 PR rtl-optimization/55833
36108 * loop-unswitch.c (unswitch_loops): Move loop verification...
36109 (unswitch_single_loop): ...here. Call mark_irreducible_loops.
36110 * cfgloopmanip.c (fix_loop_placement): Add IRRED_INVALIDATED parameter.
36111 Set it to true when we're removing a loop from hierarchy tree in
36112 an irreducible region.
36113 (fix_bb_placements): Adjust caller.
36114 (fix_loop_placements): Likewise.
36116 2013-01-17 Georg-Johann Lay <avr@gjlay.de>
36118 * config/avr/builtins.def (DEF_BUILTIN): Factor out
36119 "__builtin_avr_" from NAME, turn NAME to an uppercase identifier.
36120 Factor out 'CODE_FOR_' from ICODE, use 'nothing' instead of '-1'.
36121 Remove ID. Adjust comments.
36122 * config/avr/avr-c.c (avr_builtin_name): Remove.
36123 (avr_cpu_cpp_builtins): Use DEF_BUILTIN instead of for-loop.
36124 * config/avr/avr.c (avr_tolower): New static function.
36125 (DEF_BUILTIN): Remove parameter ID. Prefix ICODE by 'CODE_FOR_'.
36126 Stringify NAME, prefix it with "__builtin_avr_" and lowercase it.
36127 (avr_expand_builtin): Assert insn_code != CODE_FOR_nothing for
36130 2013-01-17 Jan Hubicka <jh@suse.cz>
36132 PR tree-optimization/55273
36133 * loop-iv.c (iv_number_of_iterations): Consider zero iteration case.
36135 2013-01-17 Uros Bizjak <ubizjak@gmail.com>
36138 * config/i386/sync.md (atomic_store<mode>): Always generate SWImode
36139 store through atomic_store<mode>_1.
36140 (atomic_store<mode>_1): Macroize insn using SWI mode iterator.
36142 2013-01-17 Martin Jambor <mjambor@suse.cz>
36144 PR tree-optimizations/55264
36145 * ipa-inline-transform.c (can_remove_node_now_p_1): Never return true
36146 for virtual methods.
36147 * ipa.c (symtab_remove_unreachable_nodes): Never return true for
36148 virtual methods before inlining is over.
36149 * cgraph.h (cgraph_only_called_directly_or_aliased_p): Return false for
36151 * cgraphclones.c (cgraph_create_virtual_clone): Mark clones as
36154 2013-01-16 Vladimir Makarov <vmakarov@redhat.com>
36156 PR rtl-optimization/56005
36157 * sched-deps.c (sched_analyze_2): Check deps->readonly for adding
36158 pending reads for prefetch.
36160 2013-01-16 Ian Bolton <ian.bolton@arm.com>
36162 * config/aarch64/aarch64.md
36163 (*cstoresi_neg_uxtw): New pattern.
36164 (*cmovsi_insn_uxtw): New pattern.
36165 (*<optab>si3_uxtw): New pattern.
36166 (*<LOGICAL:optab>_<SHIFT:optab>si3_uxtw): New pattern.
36167 (*<optab>si3_insn_uxtw): New pattern.
36168 (*bswapsi2_uxtw): New pattern.
36170 2013-01-16 Richard Biener <rguenther@suse.de>
36172 * tree-inline.c (tree_function_versioning): Remove set but
36173 never used variable.
36175 2013-01-16 Richard Biener <rguenther@suse.de>
36177 PR tree-optimization/55964
36178 * tree-flow.h (rename_variables_in_loop): Remove.
36179 (rename_variables_in_bb): Likewise.
36180 * tree-loop-distribution.c (update_phis_for_loop_copy): Remove.
36181 (copy_loop_before): Adjust and delete update-ssa status.
36182 * tree-vect-loop-manip.c (rename_variables_in_bb): Make static.
36183 (rename_variables_in_bb): Likewise. Properly walk over predecessors.
36184 (rename_variables_in_loop): Remove.
36185 (slpeel_update_phis_for_duplicate_loop): Likewise.
36186 (slpeel_tree_duplicate_loop_to_edge_cfg): Handle nested loops,
36187 use available cfg machinery instead of duplicating it.
36188 Update PHI nodes and perform poor-mans SSA update here.
36189 (slpeel_tree_peel_loop_to_edge): Adjust.
36191 2013-01-16 Richard Biener <rguenther@suse.de>
36193 PR tree-optimization/54767
36194 PR tree-optimization/53465
36195 * tree-vrp.c (vrp_meet_1): Revert original fix for PR53465.
36196 (vrp_visit_phi_node): For PHI arguments coming via backedges
36197 drop all symbolical range information.
36198 (execute_vrp): Compute backedges.
36200 2013-01-16 Richard Biener <rguenther@suse.de>
36202 * doc/install.texi: Update CLooG and ISL requirements to
36205 2013-01-16 Christian Bruel <christian.bruel@st.com>
36208 * config/sh/sh.c (sh_expand_prologue): Postpone new_stack mem symbol.
36209 (broken_move): Handle UNSPECV_SP_SWITCH_B.
36210 * config/sh/sh.md (sp_switch_1): Use set (reg:SI SP_REG).
36212 2013-01-16 DJ Delorie <dj@redhat.com>
36214 * config/sh/sh.md (UNSPECV_SP_SWITCH_B): New.
36215 (UNSPECV_SP_SWITCH_E): New.
36216 (sp_switch_1): Change to an unspec.
36217 (sp_switch_2): Change to an unspec. Don't use post-inc when we
36220 2013-01-16 Uros Bizjak <ubizjak@gmail.com>
36222 * emit-rtl.c (need_atomic_barrier_p): Mask memory model argument
36223 with MEMMODEL_MASK before comparing with MEMMODEL_* memory types.
36224 * optabs.c (maybe_emit_sync_lock_test_and_set): Ditto.
36225 (expand_mem_thread_fence): Ditto.
36226 (expand_mem_signal_fence): Ditto.
36227 (expand_atomic_load): Ditto.
36228 (expand_atomic_store): Ditto.
36230 2013-01-16 Alexandre Oliva <aoliva@redhat.com>
36232 PR rtl-optimization/55547
36233 PR rtl-optimization/53827
36236 * alias.c (memrefs_conflict_p): Set sizes to negative after
36239 2013-01-15 Jakub Jelinek <jakub@redhat.com>
36242 * function.c (thread_prologue_and_epilogue_insns): Always
36243 add crtl->drap_reg to set_up_by_prologue.set, even if
36244 stack_realign_drap is false.
36246 2013-01-15 Jan-Benedict Glaw <jbglaw@lug-owl.de>
36248 * config/vax/vax.md (add<mode>3, sub<mode>3, mul<mode>3, div<mode>3,
36249 and<mode>3, *and<mode>_const_int, ior<mode>3, xor<mode>3, ashrsi3,
36250 *call): Fix indention.
36252 2013-01-15 Tom de Vries <tom@codesourcery.com>
36255 * optabs.c (widen_operand): Use gen_lowpart instead of gen_rtx_SUBREG.
36258 2013-01-15 Vladimir Makarov <vmakarov@redhat.com>
36260 PR rtl-optimization/55153
36261 * sched-deps.c (sched_analyze_2): Add pending reads for prefetch.
36263 2013-01-15 Martin Jambor <mjambor@suse.cz>
36265 PR tree-optimization/55920
36266 * tree-sra.c (analyze_access_subtree): Do not mark non-removable
36267 accesses as grp_to_be_debug_replaced.
36269 2013-01-15 Jakub Jelinek <jakub@redhat.com>
36271 PR tree-optimization/55920
36272 * tree-sra.c (sra_modify_assign): If for lacc->grp_to_be_debug_replaced
36273 there is non-useless type conversion needed from debug rhs to lhs,
36274 use build_debug_ref_for_model and/or VIEW_CONVERT_EXPR.
36276 2013-01-15 Joseph Myers <joseph@codesourcery.com>
36277 Mikael Pettersson <mikpe@it.uu.se>
36280 * config/arm/arm.h (ADDR_VEC_ALIGN): Align SImode jump tables for
36282 (ASM_OUTPUT_CASE_LABEL): Remove.
36283 (ASM_OUTPUT_BEFORE_CASE_LABEL): Define to empty.
36284 * final.c (shorten_branches): Update alignment of labels before
36285 jump tables if CASE_VECTOR_SHORTEN_MODE.
36287 2013-01-15 Richard Biener <rguenther@suse.de>
36290 * system.h: Do not include gmp.h for building host tools.
36292 2013-01-15 Richard Biener <rguenther@suse.de>
36294 PR middle-end/55882
36295 * emit-rtl.c (set_mem_attributes_minus_bitpos): Correctly
36296 account for bitpos when computing alignment.
36298 2013-01-15 Vladimir Yakovlev <vladimir.b.yakovlev@intel.com>
36300 * config/i386/i386-c.c (ix86_target_macros_internal): New case.
36301 (ix86_target_macros_internal): Likewise.
36303 * config/i386/i386.c (m_CORE2I7): Removed.
36304 (m_CORE_HASWELL): New macro.
36305 (m_CORE_ALL): Likewise.
36306 (initial_ix86_tune_features): m_CORE2I7 is replaced by m_CORE_ALL.
36307 (initial_ix86_arch_features): Likewise.
36308 (processor_target_table): Initializations for Core avx2.
36309 (cpu_names): New names "core-avx2".
36310 (ix86_option_override_internal): Changed PROCESSOR_COREI7 by
36311 PROCESSOR_CORE_HASWELL.
36312 (ix86_issue_rate): New case.
36313 (ia32_multipass_dfa_lookahead): Likewise.
36314 (ix86_sched_init_global): Likewise.
36316 * config/i386/i386.h (TARGET_HASWELL): New macro.
36317 (target_cpu_default): New TARGET_CPU_DEFAULT_haswell.
36318 (processor_type): New PROCESSOR_HASWELL.
36320 2013-01-15 Jakub Jelinek <jakub@redhat.com>
36322 PR tree-optimization/55955
36323 * tree-vect-loop.c (vectorizable_reduction): Give up early on
36324 *SHIFT_EXPR and *ROTATE_EXPR codes.
36326 PR tree-optimization/48766
36327 * opts.c (common_handle_option): For -fwrapv disable -ftrapv, for
36328 -ftrapv disable -fwrapv.
36330 2013-01-14 Georg-Johann Lay <avr@gjlay.de>
36333 * config/avr/avr-c.c (avr_cpu_cpp_builtins): Define __FLASH
36334 etc. to 1 and not to __flash.
36335 Use LL suffix for __INT24_MAX__ with -mint8.
36336 Use ULL suffix for __UINT24_MAX__ with -mint8.
36338 2013-01-14 Georg-Johann Lay <avr@gjlay.de>
36340 * config/avr/avr-arch.h
36341 (struct base_arch_s): Use typedef avr_arch_t instead.
36342 (struct arch_info_s): Use typedef avr_arch_info_t instead.
36343 (struct mcu_type_s): Use typedef avr_mcu_t instead.
36344 * config/avr/avr.c: Same.
36345 * config/avr/avr-devices.c: Same.
36346 * config/avr/driver-avr.c: Same.
36347 * config/avr/gen-avr-mmcu-texi.c: Same.
36348 * config/avr/avr-mcus.def: Adjust comment.
36350 2013-01-14 Tejas Belagod <tejas.belagod@arm.com>
36352 * config/aarch64/aarch64-simd.md (*aarch64_simd_ld1r<mode>): New.
36353 * config/aarch64/iterators.md (VALLDI): New.
36355 2013-01-14 Uros Bizjak <ubizjak@gmail.com>
36356 Andi Kleen <ak@linux.intel.com>
36359 * config/i386/sync.md (atomic_store<mode>_1): New pattern.
36360 (atomic_store<mode>): Call atomic_store<mode>_1 for IX86_HLE_RELEASE
36363 2013-01-14 Georg-Johann Lay <avr@gjlay.de>
36365 * config/avr/avr-stdint.h: Remove trailing blanks.
36366 * config/avr/avr-log.h: Same.
36367 * config/avr/avr-arch.h: Same.
36368 * config/avr/avr-devices.c: Same.
36369 * config/avr/avr-dimode.md: Same.
36370 * config/avr/predicates.md: Same.
36371 * config/avr/avr-c.c: Same. And fix typo.
36373 * config/avr/avr-protos.h: Same. And:
36374 (function_arg_regno_p): Rename to avr_function_arg_regno_p.
36375 (init_cumulative_args): Rename to avr_init_cumulative_args.
36376 (expand_prologue): Rename to avr_expand_prologue.
36377 (expand_epilogue): Rename to avr_expand_epilogue.
36378 (adjust_insn_length): Rename to avr_adjust_insn_length.
36379 (notice_update_cc): Rename to avr_notice_update_cc.
36380 (final_prescan_insn): Rename to avr_final_prescan_insn.
36381 * config/avr/avr.c: Same.
36382 * config/avr/avr.h: Same.
36383 * config/avr/avr.md: Remove trailing blanks.
36384 (prologue): Use avr_expand_prologue.
36385 (epilogue, sibcall_epilogue): Use avr_expand_epilogue.
36387 2013-01-14 Richard Biener <rguenther@suse.de>
36389 * tree-cfg.c (verify_expr_location, verify_expr_location_1,
36390 verify_location, collect_subblocks): New functions.
36391 (verify_gimple_in_cfg): Verify that locations only reference
36392 BLOCKs in the functions BLOCK tree.
36394 2013-01-14 Richard Biener <rguenther@suse.de>
36396 * tree-cfgcleanup.c (remove_forwarder_block): Unshare propagated
36398 * graphite-sese-to-poly.c (insert_out_of_ssa_copy): Properly
36400 (insert_out_of_ssa_copy_on_edge): Likewise.
36401 (rewrite_close_phi_out_of_ssa): Likewise.
36402 * tree-ssa.c (insert_debug_temp_for_var_def): Properly unshare
36404 * tree-ssa-pre.c (insert_into_preds_of_block): Properly unshare
36405 propagated constants.
36406 * tree-cfg.c (tree_node_can_be_shared): Handled component-refs
36409 2013-01-14 Georg-Johann Lay <avr@gjlay.de>
36411 * config/avr/avr-modes.def: Add GPL copyright notice.
36413 2013-01-13 Uros Bizjak <ubizjak@gmail.com>
36415 * config/i386/sync.md (mem_thread_fence): Mask operands[0] with
36416 MEMMODEL_MASK to determine memory model.
36417 (atomic_store<mode>): Ditto from operands[2].
36418 * config/i386/i386.c (ix86_memmodel_check): Declare "strong" as bool.
36420 2013-01-13 Jakub Jelinek <jakub@redhat.com>
36423 * gimple-fold.c (get_symbol_constant_value): Call unshare_expr.
36424 (fold_gimple_assign): Don't call unshare_expr here.
36425 (fold_ctor_reference): Call unshare_expr.
36427 2013-01-13 Terry Guo <terry.guo@arm.com>
36429 * Makefile.in (s-mlib): New argument MULTILIB_REUSE.
36430 * doc/fragments.texi: Document MULTILIB_REUSE.
36431 * gcc.c (multilib_reuse): New internal spec.
36432 (set_multilib_dir): Also search multilib from multilib_reuse.
36433 * genmultilib (tmpmultilib3): Refactor code.
36434 (tmpmultilib4): Ditto.
36435 (multilib_reuse): New multilib argument.
36437 2013-01-13 Richard Sandiford <rdsandiford@googlemail.com>
36439 * Makefile.in: Update copyright.
36441 2013-01-12 Tom de Vries <tom@codesourcery.com>
36443 PR middle-end/55890
36444 * calls.c (expand_call): Check if arg_nr is valid.
36446 2013-01-11 Michael Meissner <meissner@linux.vnet.ibm.com>
36448 * doc/extend.texi (X86 Built-in Functions): Add whitespace in
36449 __builtin_ia32_paddb256 and __builtin_ia32_pavgb256
36450 documentation. Add missing '__' in front of
36451 __builtin_ia32_packssdw256.
36453 2013-01-11 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
36456 * config/s390/s390.c (s390_preferred_reload_class): Do not return
36457 NO_REGS for larl operands.
36458 (s390_reload_larl_operand): Use s390_load_address instead of
36461 2013-01-11 Richard Biener <rguenther@suse.de>
36463 * tree-cfg.c (verify_node_sharing_1): Split out from ...
36464 (verify_node_sharing): ... here.
36465 (verify_gimple_in_cfg): Use verify_node_sharing_1 for walk_tree.
36467 2013-01-11 Eric Botcazou <ebotcazou@adacore.com>
36469 * configure.ac (Tree checking): Set TREECHECKING to yes if enabled.
36470 Substitute TREECHECKING.
36471 * configure: Regenerate.
36472 * Makefile.in (TREECHECKING): New.
36474 2013-01-11 Richard Guenther <rguenther@suse.de>
36476 PR tree-optimization/44061
36477 * tree-vrp.c (extract_range_basic): Compute zero as
36478 value-range for __builtin_constant_p of function parameters.
36480 2013-01-10 Richard Sandiford <rdsandiford@googlemail.com>
36482 Update copyright years.
36484 2013-01-10 Vladimir Makarov <vmakarov@redhat.com>
36486 PR rtl-optimization/55672
36487 * lra-eliminations.c (mark_not_eliminable): Permit addition with
36488 const to be eliminable.
36490 2013-01-10 David Edelsohn <dje.gcc@gmail.com>
36492 * configure.ac (HAVE_AS_TLS): Add check for powerpc-ibm-aix.
36493 * configure: Regenerate.
36495 2013-01-10 Richard Biener <rguenther@suse.de>
36497 * builtins.c (expand_builtin_init_trampoline): Use set_mem_attributes.
36499 2013-01-10 Richard Biener <rguenther@suse.de>
36502 * tree-into-ssa.c (rewrite_add_phi_arguments): Do not set
36503 locations for virtual PHI arguments.
36504 (rewrite_update_phi_arguments): Likewise.
36506 2013-01-10 Joel Sherrill <joel.sherrill@OARcorp.com>
36508 * config/v850/rtems.h (ASM_SPEC): Pass -m8byte-align and -mgcc-abi
36511 2013-01-10 Jakub Jelinek <jakub@redhat.com>
36513 PR tree-optimization/55921
36514 * tree-complex.c (expand_complex_asm): New function.
36515 (expand_complex_operations_1): Call it for GIMPLE_ASM.
36517 2013-01-10 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
36520 * config/s390/s390.c (s390_symref_operand_p)
36521 (s390_loadrelative_operand_p): Merge the two functions.
36522 (s390_check_qrst_address, print_operand_address): Add parameters
36523 to s390_loadrelative_operand_p invokation.
36524 (s390_check_symref_alignment): Use s390_loadrelative_operand_p.
36525 (s390_reload_larl_operand, s390_secondary_reload): Use
36526 s390_loadrelative_operand_p instead of s390_symref_operand_p.
36527 (legitimize_pic_address): Handle @GOTENT and @PLT + addend.
36529 2013-01-09 Mike Stump <mikestump@comcast.net>
36531 * dse.c (record_store): Remove unnecessary assert.
36533 2013-01-09 Jan Hubicka <jh@suse.cz>
36535 PR tree-optimization/55569
36536 * cfgloopmanip.c (scale_loop_profile): Make ITERATION_BOUND gcov_type.
36537 * cfgloop.h (scale_loop_profile): Likewise.
36539 2013-01-09 Jan Hubicka <jh@suse.cz>
36542 * ipa-inline.c (ipa_inline): Remove extern inlines and virtual
36544 * cgraphclones.c (cgraph_clone_node): Cpoy also LTO file data.
36546 2013-01-09 Richard Sandiford <rdsandiford@googlemail.com>
36548 PR middle-end/55114
36549 * expr.h (maybe_emit_group_store): Declare.
36550 * expr.c (maybe_emit_group_store): New function.
36551 * builtins.c (expand_builtin_int_roundingfn): Call it.
36552 (expand_builtin_int_roundingfn_2): Likewise.
36554 2013-01-09 Vladimir Makarov <vmakarov@redhat.com>
36556 PR rtl-optimization/55829
36557 * lra-constraints.c (match_reload): Add code for absent output.
36558 (curr_insn_transform): Add code for reloads of matched inputs
36561 2013-01-09 Uros Bizjak <ubizjak@gmail.com>
36563 * config/i386/sse.md (*vec_interleave_highv2df): Change mode
36564 attribute of movddup insn to DF.
36565 (*vec_interleave_lowv2df): Ditto.
36566 (vec_dupv2df): Ditto.
36568 2013-01-09 Jan Hubicka <jh@suse.cz>
36570 PR tree-optimiation/55875
36571 * tree-ssa-loop-niter.c (number_of_iterations_cond): Add
36572 EVERY_ITERATION parameter.
36573 (number_of_iterations_exit): Check if exit is executed every iteration.
36574 (idx_infer_loop_bounds): Similarly here.
36575 (n_of_executions_at_most): Simplify
36576 to only test for cases where statement is dominated by the
36577 particular bound; handle correctly the "postdominance" test.
36578 (scev_probably_wraps_p): Use max loop iterations info
36579 as a global bound first.
36581 2013-01-09 Nguyen Duy Dat <dat.nguyen.yn@rvc.renesas.com>
36582 Nick Clifton <nickc@redhat.com>
36584 * config/v850/v850.md (cbranchsf4): New pattern.
36585 (cstoresf4): New pattern.
36586 (cbranchdf4): New pattern.
36587 (cstoredf4): New pattern.
36588 (movsicc): Disallow floating point comparisons.
36589 (cmpsf_le_insn): Fix order of operators.
36590 (cmpsf_lt_insn): Likewise.
36591 (cmpsf_eq_insn): Likewise.
36592 (cmpdf_le_insn): Likewise.
36593 (cmpdf_lt_insn): Likewise.
36594 (cmpdf_eq_insn): Likewise.
36595 (cmpsf_ge_insn): Use LE comparison.
36596 (cmpdf_ge_insn): Likewise.
36597 (cmpsf_gt_insn): Use LT comparison.
36598 (cmpdf_gt_insn): Likewise.
36599 (cmpsf_ne_insn): Delete pattern.
36600 (cmpdf_ne_insn): Delete pattern.
36601 * config/v850/v850.c (v850_gen_float_compare): Use
36602 gen_cmpdf_eq_insn for NE comparison.
36603 (v850_float_z_comparison_operator)
36604 (v850_float_nz_comparison_operator): Move from here ...
36605 * config/v850/predicates.md: ... to here. Move GT and GE
36606 comparisons into v850_float_z_comparison_operator.
36607 * config/v850/v850-protos.h (v850_float_z_comparison_operator):
36609 (v850_float_nz_comparison_operator): Likewise.
36611 2013-01-09 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
36613 * config/pa/pa.c (pa_emit_move_sequence): Replace calls to gen_insv
36614 with calls to gen_insvsi/gen_insvdi.
36616 2013-01-09 Venkataramanan Kumar <venkataramanan.kumar@amd.com>
36618 * config/i386/i386.c (initial_ix86_tune_features): Set up
36619 X86_TUNE_AVX128_OPTIMAL for m_BTVER2.
36621 2013-01-09 Steven Bosscher <steven@gcc.gnu.org>
36622 Jakub Jelinek <jakub@redhat.com>
36624 PR tree-optimization/48189
36625 * predict.c (predict_loops): If max is 0, don't call compare_tree_int.
36626 If nitercst is 0, don't predict the exit edge.
36628 2013-01-08 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
36630 * config/aarch64/aarch64.c (aarch64_print_operand): Replace %r
36631 in asm_fprintf with reg_names.
36632 (aarch64_print_operand_address): Likewise.
36633 (aarch64_return_addr): Likewise.
36634 * config/aarch64/aarch64.h (ASM_FPRINTF_EXTENSIONS): Remove.
36636 2013-01-08 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
36638 * config/pa/pa.h (VAL_U6_BITS_P): Define.
36639 (INT_U6_BITS): Likewise.
36640 * config/pa/predicates.md (uint6_operand): New predicate.
36641 (shift5_operand, shift6_operand): Likewise.
36642 * config/pa/pa.md (lshrsi3, rotrsi3): Use shift5_operand instead of
36644 (lshrdi3): Use shift6_operand.
36645 (shrpsi4, shrpdi4): New insn patterns.
36646 (extzv): Delete expander.
36647 (extzvsi, extzvdi): New expanders. Use uint5_operand and uint6_operand
36648 predicates in unamed zero extract patterns. Tighten common constraint.
36649 (extv): Delete expander.
36650 (extvsi, extvdi): New expanders. Use uint5_operand and uint6_operand
36651 predicates in unamed sign extract patterns. Tighten common constraint.
36652 (insv): Delete expander.
36653 (insvsi, insvdi): New expanders. Use uint5_operand and uint6_operand
36654 predicates in unamed insert patterns. Tighten common constraint.
36655 Change uint32_operand predicate to uint6_operand predicate in unamed
36656 DImode pattern to insert constant values of type 1...1xxxx.
36658 2013-01-04 Jan Hubicka <jh@suse.cz>
36660 PR tree-optimization/55823
36661 * ipa-prop.c (update_indirect_edges_after_inlining): Fix ordering
36664 2013-01-08 Jakub Jelinek <jakub@redhat.com>
36665 Uros Bizjak <ubizjak@gmail.com>
36667 PR rtl-optimization/55845
36668 * df-problems.c (can_move_insns_across): Stop scanning at
36669 volatile_insn_p source instruction or give up if
36670 across_from .. across_to range contains any volatile_insn_p
36673 2013-01-08 Tejas Belagod <tejas.belagod@arm.com>
36675 * config/aarch64/aarch64-simd.md (vec_init<mode>): New.
36676 * config/aarch64/aarch64-protos.h (aarch64_expand_vector_init):
36678 * config/aarch64/aarch64.c (aarch64_simd_dup_constant,
36679 aarch64_simd_make_constant, aarch64_expand_vector_init): New.
36681 2013-01-08 Jakub Jelinek <jakub@redhat.com>
36684 * asan.c (asan_clear_shadow): New function.
36685 (asan_emit_stack_protection): Use it.
36687 2013-01-08 Tejas Belagod <tejas.belagod@arm.com>
36689 * config/aarch64/aarch64-simd.md (aarch64_simd_vec_<su>mult_lo_<mode>,
36690 aarch64_simd_vec_<su>mult_hi_<mode>): Separate instruction and operand
36691 with tab instead of space.
36693 2013-01-08 Nick Clifton <nickc@redhat.com>
36695 * config/rl78/rl78.c (rl78_expand_prologue): Always select
36696 register bank 0 at the start of an interrupt handler.
36697 * config/rl78/rl78.md (mulsi3_g13): Correct values for MDBL and
36700 2013-01-08 James Greenhalgh <james.greenhalgh@arm.com>
36702 * config/aarch64/aarch64-simd.md
36703 (aarch64_simd_bsl<mode>_internal): Add floating-point modes.
36704 (aarch64_simd_bsl): Likewise.
36705 (aarch64_vcond_internal<mode>): Likewise.
36706 (vcond<mode><mode>): Likewise.
36707 (aarch64_cm<cmp><mode>): Fix constraints, add new modes.
36708 * config/aarch64/iterators.md (V_cmp_result): Add V2DF.
36710 2013-01-08 James Greenhalgh <james.greenhalgh@arm.com>
36712 * config/aarch64/aarch64-builtins.c
36713 (aarch64_builtin_vectorized_function): Handle sqrt, sqrtf.
36715 2013-01-08 Martin Jambor <mjambor@suse.cz>
36718 * tree-sra.c (analyze_access_subtree): Return true also after
36719 potentially creating a debug-only replacement.
36721 2013-01-08 Jakub Jelinek <jakub@redhat.com>
36723 PR middle-end/55890
36724 * tree-ssa-ccp.c (evaluate_stmt): Use gimple_call_builtin_p.
36726 PR tree-optimization/54120
36727 * tree-vrp.c (range_fits_type_p): Don't allow
36728 src_precision < precision from signed vr to unsigned_p
36729 if vr->min or vr->max is negative.
36730 (simplify_float_conversion_using_ranges): Test can_float_p
36731 against CODE_FOR_nothing.
36733 2013-01-08 Jakub Jelinek <jakub@redhat.com>
36734 Richard Biener <rguenther@suse.de>
36736 PR middle-end/55851
36737 * fold-const.c (int_binop_types_match_p): Allow all INTEGRAL_TYPE_P
36738 types instead of just INTEGER_TYPE types.
36740 2013-01-07 Mark Kettenis <kettenis@openbsd.org>
36742 * config/i386/openbsdelf.h (LIBGCC2_HAS_TF_MODE, LIBGCC2_TF_CEXT,
36745 2013-01-07 Steve Ellcey <sellcey@mips.com>
36748 * config/mips/mips.opt: Change mad to mmad to match documentation.
36750 2013-01-07 Georg-Johann Lay <avr@gjlay.de>
36753 * doc/extend.texi (AVR Named Address Spaces): __memx goes into
36754 .progmemx.data now.
36756 2013-01-07 Georg-Johann Lay <avr@gjlay.de>
36759 * config/avr/avr.h (ADDR_SPACE_COUNT): New enum.
36760 (avr_addrspace_t): Add .section_name field.
36761 * config/avr/avr.c (progmem_section): Use ADDR_SPACE_COUNT as
36763 (avr_addrspace): Same. Initialize .section_name. Remove last
36764 NULL entry. Put __memx into .progmemx.data.
36765 (progmem_section_prefix): Remove.
36766 (avr_asm_init_sections): No need to initialize progmem_section.
36767 (avr_asm_named_section): Use avr_addrspace[].section_name to get
36768 section name prefix.
36769 (avr_asm_select_section): Ditto. And use get_unnamed_section to
36770 retrieve the progmem section.
36771 * avr-c.c (avr_cpu_cpp_builtins): Use ADDR_SPACE_COUNT as loop
36772 boundary to run over avr_addrspace[].
36773 (avr_register_target_pragmas): Ditto.
36775 2013-01-06 Jakub Jelinek <jakub@redhat.com>
36777 * varasm.c (output_constant_def_contents): For asan_protect_global
36778 protected strings, adjust DECL_ALIGN if needed, before testing for
36780 (place_block_symbol): Adjust size for asan protected STRING_CSTs if
36781 TREE_CONSTANT_POOL_ADDRESS_P. Increase alignment for asan protected
36783 (output_object_block): For asan protected decls, emit asan padding
36784 after their contents.
36785 * asan.c (asan_protect_global): Don't check TREE_ASM_WRITTEN here.
36786 (asan_finish_file): Test it here instead.
36788 2013-01-07 Nick Clifton <nickc@redhat.com>
36789 Matthias Klose <doko@debian.org>
36790 Doug Kwan <dougkwan@google.com>
36791 H.J. Lu <hongjiu.lu@intel.com>
36794 * collect2.c (main): Support -fuse-ld=bfd and -fuse-ld=gold.
36796 * common.opt: Add fuse-ld=bfd and fuse-ld=gold.
36798 * gcc.c (LINK_COMMAND_SPEC): Pass -fuse-ld=* to collect2.
36800 * opts.c (comman_handle_option): Ignore -fuse-ld=bfd and -fuse-ld=gold.
36802 * doc/invoke.texi: Document -fuse-ld=bfd and -fuse-ld=gold.
36804 2013-01-07 Georg-Johann Lay <avr@gjlay.de>
36807 * doc/install.texi (Cross-Compiler-Specific Options): Document
36810 2013-01-07 Tejas Belagod <tejas.belagod@arm.com>
36812 * config/aarch64/arm_neon.h (vmovn_high_is16, vmovn_high_s32,
36813 vmovn_high_s64, vmovn_high_u16, vmovn_high_u32, vmovn_high_u64,
36814 vqmovn_high_s16, vqmovn_high_s32, vqmovn_high_s64, vqmovn_high_u16,
36815 vqmovn_high_u32, vqmovn_high_u64, vqmovun_high_s16, vqmovun_high_s32,
36816 vqmovun_high_s64): Fix source operand number and update copyright.
36818 2013-01-07 Richard Biener <rguenther@suse.de>
36820 PR middle-end/55890
36821 * gimple.h (gimple_call_builtin_p): New overload.
36822 * gimple.c (validate_call): New function.
36823 (gimple_call_builtin_p): Likewise.
36824 * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
36825 Use gimple_call_builtin_p.
36826 (find_func_clobbers): Likewise.
36827 * tree-ssa-strlen.c (adjust_last_stmt): Likewise.
36828 (strlen_optimize_stmt): Likewise.
36830 2013-01-07 James Greenhalgh <james.greenhalgh@arm.com>
36832 * config/aarch64/arm_neon.h (vld1_dup_*): Make argument const.
36833 (vld1q_dup_*): Likewise.
36834 (vld1_*): Likewise.
36835 (vld1q_*): Likewise.
36836 (vld1_lane_*): Likewise.
36837 (vld1q_lane_*): Likewise.
36839 2013-01-07 Richard Biener <rguenther@suse.de>
36841 * lto-streamer.h (LTO_minor_version): Bump to 2.
36843 2013-01-07 James Greenhalgh <james.greenhalgh@arm.com>
36845 * config/aarch64/aarch64-protos.h
36846 (aarch64_const_double_zero_rtx_p): Rename to...
36847 (aarch64_float_const_zero_rtx_p): ...this.
36848 (aarch64_float_const_representable_p): New.
36849 (aarch64_output_simd_mov_immediate): Likewise.
36850 * config/aarch64/aarch64-simd.md (*aarch64_simd_mov<mode>): Refactor
36851 move immediate case.
36852 * config/aarch64/aarch64.c
36853 (aarch64_const_double_zero_rtx_p): Rename to...
36854 (aarch64_float_const_zero_rtx_p): ...this.
36855 (aarch64_print_operand): Allow printing of new constants.
36856 (aarch64_valid_floating_const): New.
36857 (aarch64_legitimate_constant_p): Check for valid floating-point
36859 (aarch64_simd_valid_immediate): Likewise.
36860 (aarch64_vect_float_const_representable_p): New.
36861 (aarch64_float_const_representable_p): Likewise.
36862 (aarch64_simd_imm_zero_p): Also allow for floating-point 0.0.
36863 (aarch64_output_simd_mov_immediate): New.
36864 * config/aarch64/aarch64.md (*movsf_aarch64): Add new alternative.
36865 (*movdf_aarch64): Likewise.
36866 * config/aarch64/constraints.md (Ufc): New.
36867 (Y): call aarch64_float_const_zero_rtx.
36868 * config/aarch64/predicates.md (aarch64_fp_compare_operand): New.
36870 2013-01-07 Richard Biener <rguenther@suse.de>
36872 PR tree-optimization/55888
36873 PR tree-optimization/55862
36874 * tree-ssa-pre.c (phi_translate_1): Revert previous change.
36875 (valid_in_sets): Check if a NAME has a leader in AVAIL_OUT,
36876 not if it is contained therein.
36878 2013-01-07 Georg-Johann Lay <avr@gjlay.de>
36880 * config/avr/t-avr: Typo.
36882 2013-01-07 Georg-Johann Lay <avr@gjlay.de>
36885 * config/avr/t-avr: Don't automatically rebuild
36886 $(srcdir)/config/avr/t-multilib
36887 $(srcdir)/config/avr/avr-tables.opt
36888 $(srcdir)/doc/avr-mmcu.texi
36889 (avr-mcus): New phony target to build them on request.
36890 (s-avr-mlib, s-avr-mmcu-texi): Remove.
36891 * avr/avr-mcus.def: Adjust comments.
36893 2013-01-07 Uros Bizjak <ubizjak@gmail.com>
36895 * config/i386/i386.c (DEFAULT_PCC_STRUCT_RETURN): Remove.
36897 2013-01-06 Richard Sandiford <rdsandiford@googlemail.com>
36899 * file-find.c, file-find.h, realmpfr.c: Add FSF as copyright holder.
36901 2013-01-06 Richard Sandiford <rdsandiford@googlemail.com>
36903 * config/tilepro/gen-mul-tables.cc: Put copyright on one line.
36905 2013-01-05 David Edelsohn <dje.gcc@gmail.com>
36907 * config/rs6000/aix53.h (LIB_SPEC): Add -lpthreads when compiling
36908 to generate profiling.
36909 * config/rs6000/aix64.h (LIB_SPEC): Same.
36911 2013-01-04 Andrew Pinski <apinski@cavium.com>
36913 * config/aarch64/aarch64.c (aarch64_fixed_condition_code_regs):
36915 (TARGET_FIXED_CONDITION_CODE_REGS): Define.
36917 2013-01-04 Uros Bizjak <ubizjak@gmail.com>
36919 * config/i386/i386.c (ix86_legitimize_address): Call convert_to_mode
36921 (ix86_expand_move): Ditto.
36922 (ix86_zero_extend_to_Pmode): Ditto.
36923 (ix86_expand_call): Ditto.
36924 (ix86_expand_special_args_builtin): Ditto.
36925 (ix86_expand_builtin): Ditto.
36927 2013-01-04 Richard Biener <rguenther@suse.de>
36929 PR tree-optimization/55862
36930 * tree-ssa-pre.c (phi_translate_1): Valueize SSA names after
36931 translating them through PHI nodes.
36933 2013-01-04 Martin Jambor <mjambor@suse.cz>
36935 PR tree-optimization/55755
36936 * tree-sra.c (sra_modify_assign): Do not check that an access has no
36937 children when trying to avoid producing a VIEW_CONVERT_EXPR.
36939 2013-01-04 Marek Polacek <polacek@redhat.com>
36941 PR middle-end/55859
36942 * opts.c (default_options_optimization): Clarify error message.
36944 2013-01-04 Richard Biener <rguenther@suse.de>
36946 PR middle-end/55863
36947 * fold-const.c (split_tree): Undo -X - 1 to ~X folding for
36950 2013-01-03 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
36953 * config/pa/pa.md (movsi): Revert previous change.
36954 * config/pa/pa.c (pa_legitimate_constant_p): Reject all TLS symbol
36957 2013-01-03 Richard Henderson <rth@redhat.com>
36959 * config/i386/i386.c (ix86_expand_move): Always assign to op1
36960 after eliminating TLS symbols.
36962 2013-01-03 Marc Glisse <marc.glisse@inria.fr>
36965 * graphite-interchange.c (pdr_stride_in_loop): Use gmp_fprintf.
36966 * graphite-poly.c (debug_gmp_value): Likewise.
36968 2013-01-03 Uros Bizjak <ubizjak@gmail.com>
36971 * config/i386/i386-c.c (ix86_target_macros_internal): Depending on
36972 selected code model, define __code_mode_small__, __code_model_medium__,
36973 __code_model_large__, __code_model_32__ or __code_model_kernel__.
36974 * config/i386/cpuid.h (__cpuid, __cpuid_count) [__i386__]: Prefix
36975 xchg temporary register with %k. Declare temporary register as
36977 [__x86_64__]: For medium and large code models, preserve %rbx register.
36979 2013-01-03 Richard Biener <rguenther@suse.de>
36981 * tree-data-ref.c (dump_conflict_function): Use less vertical spacing.
36982 (dump_subscript): Adjust.
36983 (finalize_ddr_dependent): Do not dump redundant info.
36984 (analyze_siv_subscript): Adjust.
36985 (subscript_dependence_tester): Likewise.
36986 (compute_affine_dependence): Likewise.
36988 2013-01-03 Richard Biener <rguenther@suse.de>
36991 2013-01-03 Richard Biener <rguenther@suse.de>
36993 PR tree-optimization/55857
36994 * tree-vect-stmts.c (vectorizable_load): Do not setup
36995 re-alignment for invariant loads.
36997 2013-01-02 Richard Biener <rguenther@suse.de>
36999 * tree-vect-stmts.c (vectorizable_load): When vectorizing an
37000 invariant load do not generate a vector load from the scalar location.
37002 2013-01-03 Richard Biener <rguenther@suse.de>
37004 * tree-vect-loop.c (vect_analyze_loop_form): Clarify reason
37005 for not vectorizing.
37006 * tree-vect-data-refs.c (vect_create_addr_base_for_vector_ref): Do
37007 not build INDIRECT_REFs, call get_name once only.
37008 (vect_create_data_ref_ptr): Likewise. Dump base object kind
37009 based on DR_BASE_OBJECT, not DR_BASE_ADDRESS.
37011 2013-01-03 Richard Biener <rguenther@suse.de>
37013 PR tree-optimization/55857
37014 * tree-vect-stmts.c (vectorizable_load): Do not setup
37015 re-alignment for invariant loads.
37017 2013-01-03 Richard Biener <rguenther@suse.de>
37020 * lto-symtab.c (lto_symtab_merge_decls_1): As last resort, always
37021 prefer a built-in decl.
37023 2013-01-03 Jakub Jelinek <jakub@redhat.com>
37025 * gcc.c (process_command): Update copyright notice dates.
37026 * gcov.c (print_version): Likewise.
37027 * gcov-dump.c (print_version): Likewise.
37029 PR rtl-optimization/55838
37030 * loop-iv.c (iv_number_of_iterations): Call lowpart_subreg on
37031 iv0.step, iv1.step and step.
37033 2013-01-03 Jakub Jelinek <jakub@redhat.com>
37034 Marc Glisse <marc.glisse@inria.fr>
37036 PR tree-optimization/55832
37037 * fold-const.c (fold_binary_loc): For ABS_EXPR<x> >= 0 and
37038 ABS_EXPR<x> < 0 folding use constant_boolean_node instead of
37039 integer_{one,zero}_node.
37041 2013-01-03 Jakub Jelinek <jakub@redhat.com>
37044 * params.def (PARAM_MAX_VARTRACK_REVERSE_OP_SIZE): New param.
37045 * var-tracking.c (reverse_op): Don't add reverse ops to
37046 VALUEs that have already
37047 PARAM_VALUE (PARAM_MAX_VARTRACK_REVERSE_OP_SIZE) or longer locs list.
37049 2013-01-02 Gerald Pfeifer <gerald@pfeifer.com>
37051 * doc/contrib.texi: Note years as release manager for Mark Mitchell.
37053 2013-01-02 Teresa Johnson <tejohnson@google.com>
37055 * dumpfile.c (dump_loc): Print filename with location.
37056 * tree-ssa-loop-ivcanon.c (try_unroll_loop_completely): Use
37057 new location_t parameter to emit complete unroll message with
37058 new dump framework.
37059 (canonicalize_loop_induction_variables): Compute loops location
37060 and pass to try_unroll_loop_completely.
37061 * loop-unroll.c (report_unroll_peel): New function.
37062 (peel_loops_completely): Use new dump format with location
37063 for main dumpfile message, and invoke report_unroll_peel on success.
37064 (decide_unrolling_and_peeling): Ditto.
37065 (decide_peel_once_rolling): Remove old dumpfile message subsumed
37066 by report_unroll_peel.
37067 (decide_peel_completely): Ditto.
37068 (decide_unroll_constant_iterations): Ditto.
37069 (decide_unroll_runtime_iterations): Ditto.
37070 (decide_peel_simple): Ditto.
37071 (decide_unroll_stupid): Ditto.
37072 * cfgloop.c (get_loop_location): New function.
37073 * cfgloop.h (get_loop_location): Declare.
37075 2013-01-02 Sriraman Tallam <tmsriram@google.com>
37077 * config/i386/i386.c (fold_builtin_cpu): Remove unnecessary checks for
37080 2013-01-02 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
37082 PR middle-end/55198
37083 * expr.c (expand_expr_real_1): Don't use bitfield extraction for non
37084 BLKmode objects when EXPAND_MEMORY is specified.
37086 2013-01-02 Sriraman Tallam <tmsriram@google.com>
37088 * config/i386/i386.c (ix86_get_function_versions_dispatcher): Fix bug
37090 (fold_builtin_cpu): Do not share cpu model decls across statements.
37092 2013-01-02 Jason Merrill <jason@redhat.com>
37095 * tree.c (build_array_type_1): Revert earlier change.
37097 2013-01-02 Yufeng Zhang <yufeng.zhang@arm.com>
37099 * config/aarch64/aarch64-cores.def: Add entries for "cortex-a53" and
37101 * config/aarch64/aarch64-tune.md: Re-generate.
37103 2013-01-02 Richard Biener <rguenther@suse.de>
37105 * tree-vect-stmts.c (vectorizable_load): When vectorizing an
37106 invariant load do not generate a vector load from the scalar location.
37108 2013-01-02 Richard Biener <rguenther@suse.de>
37111 * configure.ac: Add $GMPINC to CFLAGS/CXXFLAGS.
37112 * configure: Regenerate.
37114 2013-01-02 Richard Sandiford <rdsandiford@googlemail.com>
37116 * builtins.c (expand_builtin_mathfn, expand_builtin_mathfn_2)
37117 (expand_builtin_mathfn_ternary, expand_builtin_mathfn_3)
37118 (expand_builtin_int_roundingfn_2): Keep the original target around
37119 for the fallback case.
37121 2013-01-02 Richard Sandiford <rdsandiford@googlemail.com>
37123 * tree-vrp.c (range_fits_type_p): Require the MSB of the double_int
37124 to be clear for sign changes.
37126 2013-01-01 Jan Hubicka <jh@suse.cz>
37128 * ipa-inline-analysis.c: Fix formatting.
37130 2013-01-01 Jakub Jelinek <jakub@redhat.com>
37132 PR tree-optimization/55831
37133 * tree-vect-loop.c (get_initial_def_for_induction): Use
37134 gsi_after_labels instead of gsi_start_bb.
37136 Copyright (C) 2013 Free Software Foundation, Inc.
37138 Copying and distribution of this file, with or without modification,
37139 are permitted in any medium without royalty provided the copyright
37140 notice and this notice are preserved.